soma-kit 0.0.0-stage → 0.1.1
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.
- package/README.md +541 -2
- package/bin/soma-kit.mjs +27 -0
- package/package.json +66 -4
- package/packs/ai/agent-run-card.ts +64 -0
- package/packs/ai/evaluation-card.ts +51 -0
- package/packs/ai/guardrail-policy-card.ts +48 -0
- package/packs/ai/index.ts +31 -0
- package/packs/ai/model-card.ts +55 -0
- package/packs/ai/model-routing-card.ts +49 -0
- package/packs/ai/prompt-template-card.ts +49 -0
- package/packs/ai/texts.ts +19 -0
- package/packs/commerce/address-card.ts +58 -0
- package/packs/commerce/coupon-card.ts +64 -0
- package/packs/commerce/index.ts +25 -0
- package/packs/commerce/order-card.ts +60 -0
- package/packs/commerce/purchase-order-card.ts +74 -0
- package/packs/commerce/texts.ts +14 -0
- package/packs/finance/index.ts +30 -0
- package/packs/finance/invoice-summary-card.ts +48 -0
- package/packs/finance/reconcile-board.ts +450 -0
- package/packs/finance/reconcile-case-card.ts +70 -0
- package/packs/finance/reconcile-desk/compile.ts +208 -0
- package/packs/finance/reconcile-desk/index.ts +20 -0
- package/packs/finance/reconcile-desk/shell.ts +27 -0
- package/packs/finance/texts.ts +21 -0
- package/packs/ops/change-window-card.ts +54 -0
- package/packs/ops/dependency-status-card.ts +50 -0
- package/packs/ops/error-budget-card.ts +60 -0
- package/packs/ops/execution-task-runner.ts +61 -0
- package/packs/ops/index.ts +36 -0
- package/packs/ops/integration-status-card.ts +45 -0
- package/packs/ops/release-readiness-card.ts +63 -0
- package/packs/ops/runbook-execution-card.ts +81 -0
- package/packs/ops/texts.ts +21 -0
- package/packs/security/control-evidence-card.ts +54 -0
- package/packs/security/finding-card.ts +96 -0
- package/packs/security/index.ts +29 -0
- package/packs/security/texts.ts +31 -0
- package/packs/shared/card-util.ts +60 -0
- package/packs/shared/wrap.ts +12 -0
- package/spec/generated/kit-app.schema.json +84 -0
- package/spec/generated/kit-page.schema.json +2766 -0
- package/spec/kit-grammar.json +1357 -0
- package/spec/kit-grammar.schema.json +715 -0
- package/src/app/app-config.ts +108 -0
- package/src/app/compose-apps.ts +155 -0
- package/src/app/define-kit-actions.ts +89 -0
- package/src/app/define-kit-app.ts +383 -0
- package/src/app/define-kit-pack.ts +114 -0
- package/src/app/envelope.ts +138 -0
- package/src/app/index.ts +53 -0
- package/src/app/notify-renderer.ts +114 -0
- package/src/app/paged-list-adapter.ts +240 -0
- package/src/app/server-pages.ts +303 -0
- package/src/app/server.ts +244 -0
- package/src/app/submit.types.ts +87 -0
- package/src/base/action-busy.ts +159 -0
- package/src/base/action-gate.ts +267 -0
- package/src/base/action-status.ts +31 -0
- package/src/base/alert.ts +136 -0
- package/src/base/avatar.ts +271 -0
- package/src/base/button.ts +139 -0
- package/src/base/cascader.ts +523 -0
- package/src/base/check-core.ts +214 -0
- package/src/base/checkbox.ts +35 -0
- package/src/base/choice.ts +183 -0
- package/src/base/color-picker.ts +316 -0
- package/src/base/combobox.ts +61 -0
- package/src/base/command-palette.ts +371 -0
- package/src/base/context-menu.ts +103 -0
- package/src/base/countdown.ts +168 -0
- package/src/base/date-range.ts +444 -0
- package/src/base/date.ts +899 -0
- package/src/base/divider.ts +156 -0
- package/src/base/fab.ts +192 -0
- package/src/base/icons.ts +106 -0
- package/src/base/image.ts +177 -0
- package/src/base/index.ts +214 -0
- package/src/base/input.ts +316 -0
- package/src/base/kbd.ts +99 -0
- package/src/base/link.ts +167 -0
- package/src/base/listbox-core.ts +965 -0
- package/src/base/mentions.ts +323 -0
- package/src/base/menu-button.ts +240 -0
- package/src/base/menu-core.ts +341 -0
- package/src/base/month-grid.ts +171 -0
- package/src/base/motion/aura.ts +94 -0
- package/src/base/motion/hover-3d.ts +154 -0
- package/src/base/motion/hover-gallery.ts +185 -0
- package/src/base/motion/index.ts +27 -0
- package/src/base/motion/limits.ts +75 -0
- package/src/base/motion/marquee.ts +157 -0
- package/src/base/motion/text-rotate.ts +195 -0
- package/src/base/number.ts +121 -0
- package/src/base/otp.ts +259 -0
- package/src/base/permission-gate.ts +99 -0
- package/src/base/popover.ts +352 -0
- package/src/base/popup.ts +542 -0
- package/src/base/portal-core.ts +297 -0
- package/src/base/price-text.ts +126 -0
- package/src/base/progress.ts +216 -0
- package/src/base/qr-code.ts +446 -0
- package/src/base/qty-stepper.ts +241 -0
- package/src/base/radio.ts +33 -0
- package/src/base/range.ts +444 -0
- package/src/base/rating.ts +249 -0
- package/src/base/segmented.ts +286 -0
- package/src/base/select.ts +57 -0
- package/src/base/shared.ts +708 -0
- package/src/base/swap.ts +86 -0
- package/src/base/switch.ts +111 -0
- package/src/base/tag-input.ts +464 -0
- package/src/base/tag.ts +250 -0
- package/src/base/text.ts +126 -0
- package/src/base/textarea.ts +129 -0
- package/src/base/time-picker.ts +606 -0
- package/src/base/tree-select.ts +629 -0
- package/src/base/upload.ts +548 -0
- package/src/base/virtual-list.ts +286 -0
- package/src/biz/approval-desk/compile.ts +179 -0
- package/src/biz/approval-desk/index.ts +21 -0
- package/src/biz/approval-desk/shell.ts +50 -0
- package/src/biz/auth-panel/compile.ts +196 -0
- package/src/biz/auth-panel/index.ts +24 -0
- package/src/biz/auth-panel/shell.ts +46 -0
- package/src/biz/category-crud/compile.ts +173 -0
- package/src/biz/category-crud/index.ts +19 -0
- package/src/biz/category-crud/shell.ts +29 -0
- package/src/biz/checkout-page/compile.ts +111 -0
- package/src/biz/checkout-page/index.ts +20 -0
- package/src/biz/checkout-page/shell.ts +50 -0
- package/src/biz/compose.ts +313 -0
- package/src/biz/data-components.ts +26 -0
- package/src/biz/define.ts +23 -0
- package/src/biz/import-wizard/compile.ts +204 -0
- package/src/biz/import-wizard/hub.ts +540 -0
- package/src/biz/import-wizard/index.ts +24 -0
- package/src/biz/import-wizard/shell.ts +161 -0
- package/src/biz/index.ts +80 -0
- package/src/biz/landing-page/compile.ts +67 -0
- package/src/biz/landing-page/index.ts +20 -0
- package/src/biz/landing-page/shell.ts +48 -0
- package/src/biz/link/hub.ts +255 -0
- package/src/biz/link/shared.ts +493 -0
- package/src/biz/master-sub/compile.ts +232 -0
- package/src/biz/master-sub/index.ts +20 -0
- package/src/biz/master-sub/shell.ts +56 -0
- package/src/biz/multi-board/compile.ts +234 -0
- package/src/biz/multi-board/index.ts +19 -0
- package/src/biz/multi-board/shell.ts +70 -0
- package/src/biz/names.ts +30 -0
- package/src/biz/notification-center/compile.ts +138 -0
- package/src/biz/notification-center/index.ts +29 -0
- package/src/biz/notification-center/shell.ts +42 -0
- package/src/biz/page-templates/result-page/compile.ts +46 -0
- package/src/biz/page-templates/result-page/index.ts +19 -0
- package/src/biz/page-templates/result-page/shell.ts +31 -0
- package/src/biz/page-templates/shared.ts +121 -0
- package/src/biz/page-templates/sign-in-page/compile.ts +176 -0
- package/src/biz/page-templates/sign-in-page/index.ts +18 -0
- package/src/biz/page-templates/sign-in-page/shell.ts +116 -0
- package/src/biz/record-detail/compile.ts +290 -0
- package/src/biz/record-detail/index.ts +22 -0
- package/src/biz/record-detail/shell.ts +64 -0
- package/src/biz/settings-center/compile.ts +100 -0
- package/src/biz/settings-center/index.ts +18 -0
- package/src/biz/settings-center/shell.ts +51 -0
- package/src/biz/shared/action-host.ts +469 -0
- package/src/biz/shared/coordinator.ts +516 -0
- package/src/biz/shared/index.ts +9 -0
- package/src/biz/shared/pipes.ts +58 -0
- package/src/biz/shared/runtime-hub.ts +112 -0
- package/src/biz/shared/step-values.ts +25 -0
- package/src/biz/single-form/compile.ts +146 -0
- package/src/biz/single-form/index.ts +18 -0
- package/src/biz/single-form/shell.ts +38 -0
- package/src/biz/standard-crud/compile.ts +546 -0
- package/src/biz/standard-crud/index.ts +18 -0
- package/src/biz/standard-crud/shell.ts +157 -0
- package/src/biz/step-form/compile.ts +400 -0
- package/src/biz/step-form/hub.ts +412 -0
- package/src/biz/step-form/index.ts +23 -0
- package/src/biz/step-form/shell.ts +96 -0
- package/src/biz/step-form/steps-ref.ts +112 -0
- package/src/biz/types.ts +96 -0
- package/src/cli/kit-cli.ts +102 -0
- package/src/compile/action-host-attach.ts +76 -0
- package/src/compile/compile-page.ts +472 -0
- package/src/compile/component-candidates.ts +147 -0
- package/src/compile/fragment.ts +104 -0
- package/src/compile/hints.ts +255 -0
- package/src/compile/index.ts +16 -0
- package/src/compile/locate.ts +166 -0
- package/src/compile/page-params.ts +80 -0
- package/src/compile/parse.ts +355 -0
- package/src/compile/redirect.ts +90 -0
- package/src/compile/registry.ts +30 -0
- package/src/compile/remove-guard.ts +99 -0
- package/src/compile/styles.ts +244 -0
- package/src/compile/types.ts +106 -0
- package/src/data/amount-breakdown.ts +132 -0
- package/src/data/anchor-nav.ts +225 -0
- package/src/data/approval-flow.ts +269 -0
- package/src/data/assignment-picker.ts +652 -0
- package/src/data/async-result-panel.ts +308 -0
- package/src/data/breadcrumbs.ts +197 -0
- package/src/data/calendar.ts +363 -0
- package/src/data/carousel.ts +408 -0
- package/src/data/chart.ts +726 -0
- package/src/data/checklist.ts +215 -0
- package/src/data/code-view.ts +415 -0
- package/src/data/comment-thread.ts +342 -0
- package/src/data/confirm-dialog.ts +144 -0
- package/src/data/context-menu.ts +216 -0
- package/src/data/d9-limits.ts +42 -0
- package/src/data/d9-util.ts +81 -0
- package/src/data/diff.ts +239 -0
- package/src/data/display-util.ts +135 -0
- package/src/data/dock.ts +152 -0
- package/src/data/embed.ts +200 -0
- package/src/data/field-mapper.ts +544 -0
- package/src/data/flow-editor-contract.ts +41 -0
- package/src/data/flow-editor.ts +2622 -0
- package/src/data/flow-remote-options.ts +257 -0
- package/src/data/footer.ts +157 -0
- package/src/data/form-draft-registry.ts +76 -0
- package/src/data/gantt.ts +430 -0
- package/src/data/hero.ts +149 -0
- package/src/data/image-viewer.ts +333 -0
- package/src/data/index.ts +268 -0
- package/src/data/item-list.ts +335 -0
- package/src/data/kanban.ts +667 -0
- package/src/data/media-grid.ts +246 -0
- package/src/data/mega-menu.ts +257 -0
- package/src/data/menu-dom.ts +169 -0
- package/src/data/menu.ts +464 -0
- package/src/data/mockup.ts +176 -0
- package/src/data/modal-dialog.ts +182 -0
- package/src/data/navbar.ts +292 -0
- package/src/data/object-form.ts +1981 -0
- package/src/data/options-bus.ts +24 -0
- package/src/data/outcome-watch.ts +40 -0
- package/src/data/overlay-portal.ts +6 -0
- package/src/data/pager.ts +472 -0
- package/src/data/permission-matrix.ts +432 -0
- package/src/data/permission-tree.ts +916 -0
- package/src/data/pricing-table.ts +269 -0
- package/src/data/prompt-dialog.ts +235 -0
- package/src/data/reaction-bar.ts +236 -0
- package/src/data/record-card.ts +413 -0
- package/src/data/record-picker.ts +489 -0
- package/src/data/redirect.ts +109 -0
- package/src/data/remote-options.ts +54 -0
- package/src/data/request-console.ts +399 -0
- package/src/data/resident.ts +58 -0
- package/src/data/result-panel.ts +160 -0
- package/src/data/rich-text.ts +626 -0
- package/src/data/row-editor.ts +1066 -0
- package/src/data/rule-builder.ts +1135 -0
- package/src/data/shape-util.ts +221 -0
- package/src/data/staged-rows.ts +69 -0
- package/src/data/stat-group.ts +231 -0
- package/src/data/static-lazy.ts +63 -0
- package/src/data/static-registry.ts +227 -0
- package/src/data/steps.ts +195 -0
- package/src/data/survey.ts +455 -0
- package/src/data/system-switcher.ts +243 -0
- package/src/data/timeline.ts +204 -0
- package/src/data/tour-guide.ts +392 -0
- package/src/data/transfer.ts +597 -0
- package/src/data/tree-check.ts +30 -0
- package/src/data/tree-table.ts +674 -0
- package/src/data/tree.ts +656 -0
- package/src/data/trend-line.ts +147 -0
- package/src/data/virtual-rows.ts +556 -0
- package/src/data/watermark.ts +140 -0
- package/src/data/wrap.ts +264 -0
- package/src/data/wrapped-candidates.ts +96 -0
- package/src/frames/blank-frame.ts +19 -0
- package/src/frames/index.ts +44 -0
- package/src/frames/page-bar.ts +185 -0
- package/src/frames/page-header.ts +185 -0
- package/src/frames/page-status.ts +54 -0
- package/src/frames/resize-handle.ts +147 -0
- package/src/frames/shared.ts +216 -0
- package/src/frames/single-frame.ts +16 -0
- package/src/frames/split-frame/index.ts +4 -0
- package/src/frames/split-frame/shell.ts +219 -0
- package/src/frames/split-frame/span.ts +64 -0
- package/src/frames/split-frame/wiring.ts +164 -0
- package/src/frames/tabs-frame/index.ts +3 -0
- package/src/frames/tabs-frame/shell.ts +112 -0
- package/src/frames/tabs-frame/wiring.ts +69 -0
- package/src/frames/top-main-frame.ts +20 -0
- package/src/frames/types.ts +72 -0
- package/src/frames/workspace-frame/extras.ts +197 -0
- package/src/frames/workspace-frame/index.ts +13 -0
- package/src/frames/workspace-frame/shell.ts +282 -0
- package/src/frames/workspace-frame/state.ts +152 -0
- package/src/frames/workspace-frame/view.ts +1013 -0
- package/src/generated/kit-grammar-runtime.ts +2811 -0
- package/src/generated/page-origin.ts +57 -0
- package/src/i18n/index.ts +22 -0
- package/src/i18n/kit-text.ts +692 -0
- package/src/i18n/resolve-text-refs.ts +128 -0
- package/src/index.ts +6 -0
- package/src/object-renderer/action-gate.ts +216 -0
- package/src/object-renderer/adopt-gate.ts +333 -0
- package/src/object-renderer/arrange.ts +411 -0
- package/src/object-renderer/candidates.ts +68 -0
- package/src/object-renderer/collapse-wiring.ts +99 -0
- package/src/object-renderer/collection-expand.ts +185 -0
- package/src/object-renderer/collection-parts.ts +653 -0
- package/src/object-renderer/collection-table.ts +503 -0
- package/src/object-renderer/collection.ts +626 -0
- package/src/object-renderer/compile-data.ts +549 -0
- package/src/object-renderer/defaults.ts +252 -0
- package/src/object-renderer/display-checks.ts +169 -0
- package/src/object-renderer/emit-events.ts +498 -0
- package/src/object-renderer/emit-object.ts +98 -0
- package/src/object-renderer/emit-static.ts +1035 -0
- package/src/object-renderer/field-policy.ts +89 -0
- package/src/object-renderer/field-value.ts +581 -0
- package/src/object-renderer/form-detail.ts +116 -0
- package/src/object-renderer/index.ts +13 -0
- package/src/object-renderer/linkage.ts +370 -0
- package/src/object-renderer/merge-class.ts +126 -0
- package/src/object-renderer/mode.ts +25 -0
- package/src/object-renderer/outcome-draft.ts +61 -0
- package/src/object-renderer/parts.ts +136 -0
- package/src/object-renderer/pick-component.ts +36 -0
- package/src/object-renderer/render-object.ts +724 -0
- package/src/object-renderer/request-actions.ts +581 -0
- package/src/object-renderer/skeleton.ts +101 -0
- package/src/object-renderer/table-actions.ts +438 -0
- package/src/object-renderer/table-summary.ts +105 -0
- package/src/object-renderer/table-tools.ts +1072 -0
- package/src/object-renderer/types.ts +933 -0
- package/src/page-target/ai-surface.ts +154 -0
- package/src/page-target/compile.ts +354 -0
- package/src/page-target/drift.ts +186 -0
- package/src/page-target/index.ts +25 -0
- package/src/page-target/intent-map.ts +137 -0
- package/src/page-target/intent-schema.ts +711 -0
- package/src/page-target/origin.ts +17 -0
- package/src/page-target/target.ts +450 -0
- package/src/page-target/writer-policy.ts +315 -0
- package/src/theme/block-theme.ts +202 -0
- package/src/theme/kit-theme-text.ts +2 -0
- package/src/theme/kit-theme.css +275 -0
- package/src/theme/kit-theme.tpl +275 -0
- package/src/theme/theme-tokens.ts +135 -0
|
@@ -0,0 +1,2766 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "soma-kit/kit-page.schema.json",
|
|
4
|
+
"title": "soma-kit 页面(*.kit.yaml)",
|
|
5
|
+
"description": "由 spec/kit-grammar.json 生成,勿手改;重新生成:npm run schema:build -w soma-kit",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"page": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"required": [
|
|
13
|
+
"url",
|
|
14
|
+
"title"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"url": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^/",
|
|
20
|
+
"description": "页面路径,以 / 开头"
|
|
21
|
+
},
|
|
22
|
+
"title": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"maxLength": 32,
|
|
25
|
+
"description": "页面标题(≤32 字,KIT-PAGE-003)"
|
|
26
|
+
},
|
|
27
|
+
"subtitle": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"maxLength": 80,
|
|
30
|
+
"description": "副标题(≤80 字,KIT-PAGE-003)"
|
|
31
|
+
},
|
|
32
|
+
"eyebrow": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"maxLength": 32,
|
|
35
|
+
"description": "眉题(≤32 字,KIT-PAGE-003)"
|
|
36
|
+
},
|
|
37
|
+
"roles": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"description": "kit-grammar.json#pageKeys.roles"
|
|
43
|
+
},
|
|
44
|
+
"redirect": {
|
|
45
|
+
"description": "内置页面类型:page.redirect: { to, replace?, query? }。进入即跳转,不要 product / frame.slots(可保留 frame 供页头外壳)。to 只收站内绝对路径(单个 / 开头,不是 // 、不含反斜杠,防开放重定向);replace 缺省 true(location.replace);query: true 透传当前 search + hash,字符串数组只透传这些 search 键(不带 hash),缺省 false。页面体是写死形状数据组件 KitRedirect:跳转前显示说明(page.redirect.message,缺省「正在跳转…」)与兜底链接 <a href>,并带 <noscript> 兜底,无脚本时用户点链接。同一页同时写 redirect 与 product 报 KIT-PAGE-004"
|
|
46
|
+
},
|
|
47
|
+
"breadcrumbs": {
|
|
48
|
+
"description": "workspace-frame(后台工作台页面框):frame.config 的键与限值真源。页面不写 product / frame.slots;内容来自菜单项 url,每个标签一个 iframe。page.breadcrumbs 对所有页面框的页头开放(静态 <nav>,末项 aria-current)。"
|
|
49
|
+
},
|
|
50
|
+
"actions": {
|
|
51
|
+
"description": "kit-grammar.json#pageKeys.actions"
|
|
52
|
+
},
|
|
53
|
+
"back": {
|
|
54
|
+
"description": "kit-grammar.json#pageKeys.back"
|
|
55
|
+
},
|
|
56
|
+
"status": {
|
|
57
|
+
"description": "kit-grammar.json#pageKeys.status"
|
|
58
|
+
},
|
|
59
|
+
"max_width": {
|
|
60
|
+
"description": "kit-grammar.json#pageKeys.max_width"
|
|
61
|
+
},
|
|
62
|
+
"sticky": {
|
|
63
|
+
"description": "kit-grammar.json#pageKeys.sticky"
|
|
64
|
+
},
|
|
65
|
+
"params": {
|
|
66
|
+
"description": "kit-grammar.json#pageKeys.params"
|
|
67
|
+
},
|
|
68
|
+
"query": {
|
|
69
|
+
"description": "kit-grammar.json#pageKeys.query"
|
|
70
|
+
},
|
|
71
|
+
"locale": {
|
|
72
|
+
"description": "kit-grammar.json#pageKeys.locale"
|
|
73
|
+
},
|
|
74
|
+
"dir": {
|
|
75
|
+
"description": "kit-grammar.json#pageKeys.dir"
|
|
76
|
+
},
|
|
77
|
+
"theme": {
|
|
78
|
+
"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…",
|
|
79
|
+
"anyOf": [
|
|
80
|
+
{
|
|
81
|
+
"enum": [
|
|
82
|
+
"inverse",
|
|
83
|
+
"dark",
|
|
84
|
+
"light"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"minProperties": 1,
|
|
91
|
+
"properties": {
|
|
92
|
+
"mode": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "mode 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
|
|
95
|
+
},
|
|
96
|
+
"color": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "color 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"envelope": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"description": "业务信封约定:failWhen 命中即业务失败(编进 core 的 failWhen);messagePath 失败文案位置;dataPath 成功数据位置",
|
|
108
|
+
"properties": {
|
|
109
|
+
"failWhen": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"description": "闭集谓词 { field, op, value } 或 all_of / any_of / none_of"
|
|
112
|
+
},
|
|
113
|
+
"messagePath": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "失败时业务文案在响应里的点路径(须与 failWhen 一起写)"
|
|
116
|
+
},
|
|
117
|
+
"dataPath": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "成功时数据在响应里的点路径(缺省不拆)"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"description": "kit-grammar.json#pageTopKeys.page"
|
|
125
|
+
},
|
|
126
|
+
"frame": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"properties": {
|
|
130
|
+
"kind": {
|
|
131
|
+
"description": "workspace-frame(后台工作台页面框):frame.config 的键与限值真源。页面不写 product / frame.slots;内容来自菜单项 url,每个标签一个 iframe。page.breadcrumbs 对所有页面框的页头开放(静态 <nav>,末项 aria-current)。",
|
|
132
|
+
"anyOf": [
|
|
133
|
+
{
|
|
134
|
+
"enum": [
|
|
135
|
+
"single-frame",
|
|
136
|
+
"blank-frame",
|
|
137
|
+
"top-main-frame",
|
|
138
|
+
"tabs-frame",
|
|
139
|
+
"split-frame",
|
|
140
|
+
"workspace-frame"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "应用登记的页面框"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"class": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"slotClass": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"slots": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"description": "槽名 -> 产品声明,或页签数组 [{ id, title, product }]",
|
|
161
|
+
"additionalProperties": {
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"$ref": "#/definitions/product"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": [
|
|
172
|
+
"id",
|
|
173
|
+
"title",
|
|
174
|
+
"product"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"id": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"title": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"product": {
|
|
184
|
+
"$ref": "#/definitions/product"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"config": {
|
|
193
|
+
"description": "kit-grammar.json#frameKeys.config"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"description": "kit-grammar.json#pageTopKeys.frame"
|
|
197
|
+
},
|
|
198
|
+
"product": {
|
|
199
|
+
"$ref": "#/definitions/product",
|
|
200
|
+
"description": "kit-grammar.json#pageTopKeys.product"
|
|
201
|
+
},
|
|
202
|
+
"locales": {
|
|
203
|
+
"description": "kit-grammar.json#pageTopKeys.locales"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": [
|
|
207
|
+
"page"
|
|
208
|
+
],
|
|
209
|
+
"definitions": {
|
|
210
|
+
"product": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"properties": {
|
|
214
|
+
"kind": {
|
|
215
|
+
"description": "业务组件闭集(真源:src/biz/*/index.ts 与 shell.ts)。roles 的 required / views / many 与 areas(可用 areaClass 覆写的区域名)以代码为准",
|
|
216
|
+
"anyOf": [
|
|
217
|
+
{
|
|
218
|
+
"enum": [
|
|
219
|
+
"limitsRef",
|
|
220
|
+
"StandardCrud",
|
|
221
|
+
"MasterSubWorkstation",
|
|
222
|
+
"CategoryCrud",
|
|
223
|
+
"MultiObjectBoard",
|
|
224
|
+
"SingleObjectForm",
|
|
225
|
+
"ApprovalDesk",
|
|
226
|
+
"RecordDetail",
|
|
227
|
+
"StepForm",
|
|
228
|
+
"SettingsCenter",
|
|
229
|
+
"CheckoutPage",
|
|
230
|
+
"LandingPage",
|
|
231
|
+
"ResultPage",
|
|
232
|
+
"ImportWizard",
|
|
233
|
+
"SignInPage"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "string"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"objects": {
|
|
242
|
+
"type": "object",
|
|
243
|
+
"description": "对象角色表:角色名 -> 对象声明(角色集合由业务组件决定,见 kit-grammar.json#bizComponents)",
|
|
244
|
+
"additionalProperties": {
|
|
245
|
+
"$ref": "#/definitions/object"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"class": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"areaClass": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"additionalProperties": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"config": {
|
|
258
|
+
"description": "kit-grammar.json#productKeys.config"
|
|
259
|
+
},
|
|
260
|
+
"theme": {
|
|
261
|
+
"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…",
|
|
262
|
+
"anyOf": [
|
|
263
|
+
{
|
|
264
|
+
"enum": [
|
|
265
|
+
"inverse",
|
|
266
|
+
"dark",
|
|
267
|
+
"light"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "object",
|
|
272
|
+
"additionalProperties": false,
|
|
273
|
+
"minProperties": 1,
|
|
274
|
+
"properties": {
|
|
275
|
+
"mode": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "mode 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
|
|
278
|
+
},
|
|
279
|
+
"color": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "color 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"required": [
|
|
289
|
+
"kind",
|
|
290
|
+
"objects"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"object": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"description": "对象声明:schema(字段)+ behavior(取数 / 写入 / 动作)+ view(视图)",
|
|
296
|
+
"properties": {
|
|
297
|
+
"title": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "从属对象与浮层的标题"
|
|
300
|
+
},
|
|
301
|
+
"schema": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"description": "kit-grammar.json#objectKeys.schema",
|
|
304
|
+
"additionalProperties": {
|
|
305
|
+
"$ref": "#/definitions/field"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"behavior": {
|
|
309
|
+
"$ref": "#/definitions/behavior"
|
|
310
|
+
},
|
|
311
|
+
"view": {
|
|
312
|
+
"$ref": "#/definitions/view"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"additionalProperties": true
|
|
316
|
+
},
|
|
317
|
+
"field": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"properties": {
|
|
321
|
+
"name": {
|
|
322
|
+
"description": "kit-grammar.json#objectKeys.schema.name"
|
|
323
|
+
},
|
|
324
|
+
"type": {
|
|
325
|
+
"enum": [
|
|
326
|
+
"text",
|
|
327
|
+
"longtext",
|
|
328
|
+
"int",
|
|
329
|
+
"decimal",
|
|
330
|
+
"money",
|
|
331
|
+
"percent",
|
|
332
|
+
"bool",
|
|
333
|
+
"enum",
|
|
334
|
+
"enums",
|
|
335
|
+
"date",
|
|
336
|
+
"datetime",
|
|
337
|
+
"daterange"
|
|
338
|
+
],
|
|
339
|
+
"description": "只读态一律 Text:bool、0/1、enum 在有 options 时显示选项文字,没有时显示原值,不擅自变成开关或色块;要变成 Switch、Tag 等必须在 view 或 schema 里显式传入"
|
|
340
|
+
},
|
|
341
|
+
"key": {
|
|
342
|
+
"description": "kit-grammar.json#objectKeys.schema.key"
|
|
343
|
+
},
|
|
344
|
+
"permission": {
|
|
345
|
+
"enum": [
|
|
346
|
+
"r",
|
|
347
|
+
"w",
|
|
348
|
+
"create"
|
|
349
|
+
],
|
|
350
|
+
"description": "kit-grammar.json#permission.permission"
|
|
351
|
+
},
|
|
352
|
+
"options": {
|
|
353
|
+
"description": "kit-grammar.json#objectKeys.schema.options"
|
|
354
|
+
},
|
|
355
|
+
"rules": {
|
|
356
|
+
"description": "D12 组 RuleBuilder(任意嵌套布尔规则构建器)与共享单条条件行 src/data/rule-builder.ts 的闭集与限值真源;代码经 rule-builder.ts 读取,不手抄。输出 { op: and|or, not?: true, rules: [条件 | 子组] },条件为 { field, operator, value? };为空类运算符不带 value"
|
|
357
|
+
},
|
|
358
|
+
"show": {
|
|
359
|
+
"description": "kit-grammar.json#objectKeys.schema.show"
|
|
360
|
+
},
|
|
361
|
+
"edit": {
|
|
362
|
+
"description": "kit-grammar.json#objectKeys.schema.edit"
|
|
363
|
+
},
|
|
364
|
+
"format": {
|
|
365
|
+
"description": "kit-grammar.json#objectKeys.schema.format"
|
|
366
|
+
},
|
|
367
|
+
"ref": {
|
|
368
|
+
"description": "kit-grammar.json#objectKeys.schema.ref"
|
|
369
|
+
},
|
|
370
|
+
"default": {
|
|
371
|
+
"description": "kit-grammar.json#objectKeys.schema.default"
|
|
372
|
+
},
|
|
373
|
+
"hidden": {
|
|
374
|
+
"description": "kit-grammar.json#objectKeys.schema.hidden"
|
|
375
|
+
},
|
|
376
|
+
"derive": {
|
|
377
|
+
"description": "kit-grammar.json#objectKeys.schema.derive"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"behavior": {
|
|
382
|
+
"type": "object",
|
|
383
|
+
"additionalProperties": false,
|
|
384
|
+
"properties": {
|
|
385
|
+
"from": {
|
|
386
|
+
"description": "kit-grammar.json#objectKeys.behavior.from"
|
|
387
|
+
},
|
|
388
|
+
"write": {
|
|
389
|
+
"description": "kit-grammar.json#objectKeys.behavior.write"
|
|
390
|
+
},
|
|
391
|
+
"linkKey": {
|
|
392
|
+
"description": "kit-grammar.json#objectKeys.behavior.linkKey"
|
|
393
|
+
},
|
|
394
|
+
"actions": {
|
|
395
|
+
"type": "array",
|
|
396
|
+
"items": {
|
|
397
|
+
"$ref": "#/definitions/action"
|
|
398
|
+
},
|
|
399
|
+
"description": "kit-grammar.json#objectKeys.behavior.actions"
|
|
400
|
+
},
|
|
401
|
+
"poll": {
|
|
402
|
+
"description": "D9 组数据组件(Calendar / ImageViewer / MediaGrid / EmojiReactionBar / RichTextEditor / Questionnaire(含投票用法)/ TourGuide / TrendLine,以及 CommentThread 的 chat 变体)的限值与闭集真源;代码经 src/data/d9-limits.ts 读取,不手抄"
|
|
403
|
+
},
|
|
404
|
+
"subscribe": {
|
|
405
|
+
"description": "kit-grammar.json#objectKeys.behavior.subscribe"
|
|
406
|
+
},
|
|
407
|
+
"validateOn": {
|
|
408
|
+
"description": "kit-grammar.json#objectKeys.behavior.validateOn"
|
|
409
|
+
},
|
|
410
|
+
"leaveGuard": {
|
|
411
|
+
"description": "kit-grammar.json#objectKeys.behavior.leaveGuard"
|
|
412
|
+
},
|
|
413
|
+
"adapter": {
|
|
414
|
+
"description": "kit-grammar.json#objectKeys.behavior.adapter"
|
|
415
|
+
},
|
|
416
|
+
"params": {
|
|
417
|
+
"description": "kit-grammar.json#objectKeys.behavior.params"
|
|
418
|
+
},
|
|
419
|
+
"syncUrl": {
|
|
420
|
+
"description": "kit-grammar.json#objectKeys.behavior.syncUrl"
|
|
421
|
+
},
|
|
422
|
+
"detail": {
|
|
423
|
+
"description": "kit-grammar.json#objectKeys.behavior.detail"
|
|
424
|
+
},
|
|
425
|
+
"list": {
|
|
426
|
+
"description": "kit-grammar.json#objectKeys.behavior.list"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"view": {
|
|
431
|
+
"type": "object",
|
|
432
|
+
"additionalProperties": false,
|
|
433
|
+
"properties": {
|
|
434
|
+
"list": {
|
|
435
|
+
"$ref": "#/definitions/viewSlot"
|
|
436
|
+
},
|
|
437
|
+
"summary": {
|
|
438
|
+
"$ref": "#/definitions/viewSlot"
|
|
439
|
+
},
|
|
440
|
+
"filter": {
|
|
441
|
+
"$ref": "#/definitions/viewSlot"
|
|
442
|
+
},
|
|
443
|
+
"form": {
|
|
444
|
+
"$ref": "#/definitions/viewSlot"
|
|
445
|
+
},
|
|
446
|
+
"arrange": {
|
|
447
|
+
"description": "kit-grammar.json#objectKeys.view.arrange"
|
|
448
|
+
},
|
|
449
|
+
"collection": {
|
|
450
|
+
"$ref": "#/definitions/collection"
|
|
451
|
+
},
|
|
452
|
+
"fields": {
|
|
453
|
+
"type": "array",
|
|
454
|
+
"items": {
|
|
455
|
+
"$ref": "#/definitions/fieldRef"
|
|
456
|
+
},
|
|
457
|
+
"description": "kit-grammar.json#objectKeys.view.fields"
|
|
458
|
+
},
|
|
459
|
+
"page": {
|
|
460
|
+
"description": "kit-grammar.json#objectKeys.view.page"
|
|
461
|
+
},
|
|
462
|
+
"rowActions": {
|
|
463
|
+
"description": "kit-grammar.json#objectKeys.view.rowActions"
|
|
464
|
+
},
|
|
465
|
+
"staticComponent": {
|
|
466
|
+
"description": "view.props 把配置类 prop 原样透传给写死形状数据组件;view.value 是可编辑组件的值绑定路径(非空字符串,有它时 saved / cancel 接回协调组件)。真源只放规则,各组件用到的键以组件契约为准"
|
|
467
|
+
},
|
|
468
|
+
"accept": {
|
|
469
|
+
"description": "view.props 把配置类 prop 原样透传给写死形状数据组件;view.value 是可编辑组件的值绑定路径(非空字符串,有它时 saved / cancel 接回协调组件)。真源只放规则,各组件用到的键以组件契约为准"
|
|
470
|
+
},
|
|
471
|
+
"map": {
|
|
472
|
+
"description": "kit-grammar.json#objectKeys.view.map"
|
|
473
|
+
},
|
|
474
|
+
"class": {
|
|
475
|
+
"description": "kit-grammar.json#objectKeys.view.class"
|
|
476
|
+
},
|
|
477
|
+
"cellClass": {
|
|
478
|
+
"description": "kit-grammar.json#objectKeys.view.cellClass"
|
|
479
|
+
},
|
|
480
|
+
"rowClass": {
|
|
481
|
+
"description": "kit-grammar.json#objectKeys.view.rowClass"
|
|
482
|
+
},
|
|
483
|
+
"rowClassWhen": {
|
|
484
|
+
"description": "kit-grammar.json#objectKeys.view.rowClassWhen"
|
|
485
|
+
},
|
|
486
|
+
"replaceClass": {
|
|
487
|
+
"description": "kit-grammar.json#objectKeys.view.replaceClass"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"viewSlot": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"description": "视图槽位闭集(11-02 裁决):edit 一律拒收报 KIT-OBJ-005,不当 form 的别名;filter 里的字段恒为编辑态(筛选条件是输入,与 permission 无关)",
|
|
494
|
+
"properties": {
|
|
495
|
+
"arrange": {
|
|
496
|
+
"description": "kit-grammar.json#viewFormKeys.arrange",
|
|
497
|
+
"properties": {
|
|
498
|
+
"cols": {
|
|
499
|
+
"description": "kit-grammar.json#arrangeKeys.cols"
|
|
500
|
+
},
|
|
501
|
+
"matrix": {
|
|
502
|
+
"description": "kit-grammar.json#arrangeKeys.matrix"
|
|
503
|
+
},
|
|
504
|
+
"rows": {
|
|
505
|
+
"description": "kit-grammar.json#arrangeKeys.rows"
|
|
506
|
+
},
|
|
507
|
+
"inline": {
|
|
508
|
+
"description": "kit-grammar.json#arrangeKeys.inline"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"collection": {
|
|
513
|
+
"$ref": "#/definitions/collection"
|
|
514
|
+
},
|
|
515
|
+
"fields": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"items": {
|
|
518
|
+
"$ref": "#/definitions/fieldRef"
|
|
519
|
+
},
|
|
520
|
+
"description": "kit-grammar.json#viewFormKeys.fields"
|
|
521
|
+
},
|
|
522
|
+
"class": {
|
|
523
|
+
"description": "kit-grammar.json#viewFormKeys.class"
|
|
524
|
+
},
|
|
525
|
+
"cellClass": {
|
|
526
|
+
"description": "kit-grammar.json#viewFormKeys.cellClass"
|
|
527
|
+
},
|
|
528
|
+
"rowClass": {
|
|
529
|
+
"description": "kit-grammar.json#viewFormKeys.rowClass"
|
|
530
|
+
},
|
|
531
|
+
"rowClassWhen": {
|
|
532
|
+
"description": "kit-grammar.json#viewFormKeys.rowClassWhen"
|
|
533
|
+
},
|
|
534
|
+
"replaceClass": {
|
|
535
|
+
"description": "kit-grammar.json#viewFormKeys.replaceClass"
|
|
536
|
+
},
|
|
537
|
+
"staticComponent": {
|
|
538
|
+
"description": "内置写死形状数据组件闭集(真源:src/data/static-registry.ts 的 KIT_STATIC_BUILTIN_SPECS);视图里 staticComponent 选用,accept 与登记不一致报 KIT-STATIC-001;应用登记的必须以 App 开头",
|
|
539
|
+
"anyOf": [
|
|
540
|
+
{
|
|
541
|
+
"enum": [
|
|
542
|
+
"Tree",
|
|
543
|
+
"StatGroup",
|
|
544
|
+
"Pager",
|
|
545
|
+
"Chart",
|
|
546
|
+
"Timeline",
|
|
547
|
+
"Steps",
|
|
548
|
+
"ApprovalFlow",
|
|
549
|
+
"Checklist",
|
|
550
|
+
"CommentThread",
|
|
551
|
+
"RecordCard",
|
|
552
|
+
"AmountBreakdown",
|
|
553
|
+
"Hero",
|
|
554
|
+
"Carousel",
|
|
555
|
+
"Dock",
|
|
556
|
+
"Diff",
|
|
557
|
+
"Mockup",
|
|
558
|
+
"Footer",
|
|
559
|
+
"PricingTable",
|
|
560
|
+
"Transfer",
|
|
561
|
+
"PermissionMatrix",
|
|
562
|
+
"FieldMapper",
|
|
563
|
+
"Gantt",
|
|
564
|
+
"FlowEditor",
|
|
565
|
+
"Kanban",
|
|
566
|
+
"Calendar",
|
|
567
|
+
"ImageViewer",
|
|
568
|
+
"MediaGrid",
|
|
569
|
+
"EmojiReactionBar",
|
|
570
|
+
"RichTextEditor",
|
|
571
|
+
"Questionnaire",
|
|
572
|
+
"TourGuide",
|
|
573
|
+
"TrendLine",
|
|
574
|
+
"PermissionTree",
|
|
575
|
+
"AssignmentPicker",
|
|
576
|
+
"CodeView",
|
|
577
|
+
"ItemList",
|
|
578
|
+
"SystemSwitcher",
|
|
579
|
+
"RowEditor",
|
|
580
|
+
"RecordPicker",
|
|
581
|
+
"AsyncResultPanel",
|
|
582
|
+
"ResultPanel",
|
|
583
|
+
"RequestConsole",
|
|
584
|
+
"RuleBuilder",
|
|
585
|
+
"Menu",
|
|
586
|
+
"Navbar",
|
|
587
|
+
"Breadcrumbs",
|
|
588
|
+
"Watermark",
|
|
589
|
+
"AnchorNav"
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"type": "string",
|
|
594
|
+
"pattern": "^App[A-Z][A-Za-z0-9]*$"
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"accept": {
|
|
599
|
+
"description": "view.props 把配置类 prop 原样透传给写死形状数据组件;view.value 是可编辑组件的值绑定路径(非空字符串,有它时 saved / cancel 接回协调组件)。真源只放规则,各组件用到的键以组件契约为准"
|
|
600
|
+
},
|
|
601
|
+
"map": {
|
|
602
|
+
"description": "kit-grammar.json#viewFormKeys.map"
|
|
603
|
+
},
|
|
604
|
+
"chart": {
|
|
605
|
+
"description": "kit-grammar.json#viewFormKeys.chart"
|
|
606
|
+
},
|
|
607
|
+
"props": {
|
|
608
|
+
"description": "view.props 把配置类 prop 原样透传给写死形状数据组件;view.value 是可编辑组件的值绑定路径(非空字符串,有它时 saved / cancel 接回协调组件)。真源只放规则,各组件用到的键以组件契约为准"
|
|
609
|
+
},
|
|
610
|
+
"value": {
|
|
611
|
+
"description": "view.props 把配置类 prop 原样透传给写死形状数据组件;view.value 是可编辑组件的值绑定路径(非空字符串,有它时 saved / cancel 接回协调组件)。真源只放规则,各组件用到的键以组件契约为准"
|
|
612
|
+
},
|
|
613
|
+
"on": {
|
|
614
|
+
"description": "view.on(写死形状数据组件的视图):{ 组件事件名: 动作 },把组件 emit 接到动作。事件名必须在该组件契约 emits 里(否则 KIT-STATIC-001);动作取值见 values,具名动作未登记报 KIT-EVT-001。浮层里的同类接线仍用 overlays.<名>.events"
|
|
615
|
+
},
|
|
616
|
+
"title": {
|
|
617
|
+
"description": "kit-grammar.json#viewFormKeys.title"
|
|
618
|
+
},
|
|
619
|
+
"submitLabel": {
|
|
620
|
+
"description": "kit-grammar.json#viewFormKeys.submitLabel"
|
|
621
|
+
},
|
|
622
|
+
"hideEmpty": {
|
|
623
|
+
"description": "kit-grammar.json#viewFormKeys.hideEmpty"
|
|
624
|
+
},
|
|
625
|
+
"emptyText": {
|
|
626
|
+
"description": "kit-grammar.json#viewFormKeys.emptyText"
|
|
627
|
+
},
|
|
628
|
+
"groups": {
|
|
629
|
+
"description": "kit-grammar.json#viewFormKeys.groups"
|
|
630
|
+
},
|
|
631
|
+
"collapsible": {
|
|
632
|
+
"description": "kit-grammar.json#viewFormKeys.collapsible"
|
|
633
|
+
},
|
|
634
|
+
"defaultOpen": {
|
|
635
|
+
"description": "kit-grammar.json#viewFormKeys.defaultOpen"
|
|
636
|
+
},
|
|
637
|
+
"accordion": {
|
|
638
|
+
"description": "kit-grammar.json#viewFormKeys.accordion"
|
|
639
|
+
},
|
|
640
|
+
"marker": {
|
|
641
|
+
"description": "kit-grammar.json#viewFormKeys.marker"
|
|
642
|
+
},
|
|
643
|
+
"loading": {
|
|
644
|
+
"description": "kit-grammar.json#viewFormKeys.loading"
|
|
645
|
+
},
|
|
646
|
+
"groupsAs": {
|
|
647
|
+
"description": "kit-grammar.json#viewFormKeys.groupsAs"
|
|
648
|
+
},
|
|
649
|
+
"labelPosition": {
|
|
650
|
+
"description": "kit-grammar.json#viewFormKeys.labelPosition"
|
|
651
|
+
},
|
|
652
|
+
"labelWidth": {
|
|
653
|
+
"description": "kit-grammar.json#viewFormKeys.labelWidth"
|
|
654
|
+
},
|
|
655
|
+
"requiredMark": {
|
|
656
|
+
"description": "kit-grammar.json#viewFormKeys.requiredMark"
|
|
657
|
+
},
|
|
658
|
+
"inline": {
|
|
659
|
+
"description": "kit-grammar.json#viewFormKeys.inline"
|
|
660
|
+
},
|
|
661
|
+
"scrollToError": {
|
|
662
|
+
"description": "kit-grammar.json#viewFormKeys.scrollToError"
|
|
663
|
+
},
|
|
664
|
+
"afterSave": {
|
|
665
|
+
"description": "kit-grammar.json#viewFormKeys.afterSave"
|
|
666
|
+
},
|
|
667
|
+
"collapsedRows": {
|
|
668
|
+
"description": "kit-grammar.json#viewFormKeys.collapsedRows"
|
|
669
|
+
},
|
|
670
|
+
"trigger": {
|
|
671
|
+
"description": "kit-grammar.json#viewFormKeys.trigger"
|
|
672
|
+
},
|
|
673
|
+
"contextMenu": {
|
|
674
|
+
"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 才接管右…"
|
|
675
|
+
},
|
|
676
|
+
"policy": {
|
|
677
|
+
"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 与策略表叠加(都成…"
|
|
678
|
+
},
|
|
679
|
+
"adopt": {
|
|
680
|
+
"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,不渲染…"
|
|
681
|
+
},
|
|
682
|
+
"footerActions": {
|
|
683
|
+
"description": "kit-grammar.json#viewFormKeys.footerActions"
|
|
684
|
+
},
|
|
685
|
+
"result": {
|
|
686
|
+
"description": "kit-grammar.json#viewFormKeys.result"
|
|
687
|
+
},
|
|
688
|
+
"onChange": {
|
|
689
|
+
"description": "kit-grammar.json#viewFormKeys.onChange"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"collection": {
|
|
694
|
+
"type": "object",
|
|
695
|
+
"description": "collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 { list, link } 二选一(否则 KIT-OBJ-005;list 形见 expandList 与 KIT-TBL-003);stickyHeader 与 expand 仅 table",
|
|
696
|
+
"properties": {
|
|
697
|
+
"type": {
|
|
698
|
+
"enum": [
|
|
699
|
+
"table",
|
|
700
|
+
"treeTable",
|
|
701
|
+
"cards",
|
|
702
|
+
"stack"
|
|
703
|
+
],
|
|
704
|
+
"description": "treeTable 不是另一套表格:`type: treeTable` 等价于 `type: table` + `tree: {...}`,同一条列 / 表头 / 密度 / 三态 / 分页路径,只有表体换成 KitTreeTable(详见顶层 treeTable)。骨架屏同理:KitCollectionState 一个实现,按 table / cards / stack / single 形态参数化(顶层 skeleton)。折叠分组与手风琴同一个实现(KitCollapseWiring + accordion 参数)"
|
|
705
|
+
},
|
|
706
|
+
"select": {
|
|
707
|
+
"description": "kit-grammar.json#collectionKeys.select。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
708
|
+
},
|
|
709
|
+
"rowActions": {
|
|
710
|
+
"description": "kit-grammar.json#collectionKeys.rowActions。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
711
|
+
},
|
|
712
|
+
"page": {
|
|
713
|
+
"description": "kit-grammar.json#collectionKeys.page。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
714
|
+
},
|
|
715
|
+
"stickyHeader": {
|
|
716
|
+
"description": "kit-grammar.json#collectionKeys.stickyHeader。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
717
|
+
},
|
|
718
|
+
"expand": {
|
|
719
|
+
"description": "kit-grammar.json#collectionKeys.expand。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
720
|
+
},
|
|
721
|
+
"density": {
|
|
722
|
+
"enum": [
|
|
723
|
+
"compact",
|
|
724
|
+
"standard",
|
|
725
|
+
"comfortable"
|
|
726
|
+
],
|
|
727
|
+
"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…"
|
|
728
|
+
},
|
|
729
|
+
"striped": {
|
|
730
|
+
"description": "kit-grammar.json#collectionKeys.striped。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
731
|
+
},
|
|
732
|
+
"tree": {
|
|
733
|
+
"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。键…"
|
|
734
|
+
},
|
|
735
|
+
"toolbar": {
|
|
736
|
+
"description": "kit-grammar.json#collectionKeys.toolbar。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
737
|
+
},
|
|
738
|
+
"batchActions": {
|
|
739
|
+
"description": "kit-grammar.json#collectionKeys.batchActions。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
740
|
+
},
|
|
741
|
+
"summary": {
|
|
742
|
+
"description": "kit-grammar.json#collectionKeys.summary。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
743
|
+
},
|
|
744
|
+
"edit_mode": {
|
|
745
|
+
"description": "kit-grammar.json#collectionKeys.edit_mode。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
746
|
+
},
|
|
747
|
+
"virtual": {
|
|
748
|
+
"description": "kit-grammar.json#collectionKeys.virtual。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
749
|
+
},
|
|
750
|
+
"columnGroups": {
|
|
751
|
+
"description": "kit-grammar.json#collectionKeys.columnGroups。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
752
|
+
},
|
|
753
|
+
"resizable": {
|
|
754
|
+
"description": "kit-grammar.json#collectionKeys.resizable。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
|
|
755
|
+
},
|
|
756
|
+
"contextMenu": {
|
|
757
|
+
"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 才接管右…"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"fieldRef": {
|
|
762
|
+
"description": "字段引用:字段名字符串,或带显式组件 / 参数的对象",
|
|
763
|
+
"anyOf": [
|
|
764
|
+
{
|
|
765
|
+
"type": "string"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"type": "object",
|
|
769
|
+
"description": "kit-grammar.json#fieldRefKeys.fields[]",
|
|
770
|
+
"properties": {
|
|
771
|
+
"label": {
|
|
772
|
+
"description": "kit-grammar.json#fieldRefKeys.label"
|
|
773
|
+
},
|
|
774
|
+
"placeholder": {
|
|
775
|
+
"description": "kit-grammar.json#fieldRefKeys.placeholder"
|
|
776
|
+
},
|
|
777
|
+
"component": {
|
|
778
|
+
"description": "kit-grammar.json#fieldRefKeys.component",
|
|
779
|
+
"anyOf": [
|
|
780
|
+
{
|
|
781
|
+
"enum": [
|
|
782
|
+
"Text",
|
|
783
|
+
"Tag",
|
|
784
|
+
"Input",
|
|
785
|
+
"Textarea",
|
|
786
|
+
"Number",
|
|
787
|
+
"Select",
|
|
788
|
+
"Radio",
|
|
789
|
+
"Checkbox",
|
|
790
|
+
"Switch",
|
|
791
|
+
"Date",
|
|
792
|
+
"DateRange",
|
|
793
|
+
"Button",
|
|
794
|
+
"Link",
|
|
795
|
+
"TagInput",
|
|
796
|
+
"Upload",
|
|
797
|
+
"TimePicker",
|
|
798
|
+
"TreeSelect",
|
|
799
|
+
"Alert",
|
|
800
|
+
"KitDivider",
|
|
801
|
+
"TextRotate",
|
|
802
|
+
"Hover3d",
|
|
803
|
+
"HoverGallery",
|
|
804
|
+
"Aura",
|
|
805
|
+
"Marquee",
|
|
806
|
+
"Range",
|
|
807
|
+
"Rating",
|
|
808
|
+
"Otp",
|
|
809
|
+
"Avatar",
|
|
810
|
+
"AvatarGroup",
|
|
811
|
+
"Kbd",
|
|
812
|
+
"KitProgress",
|
|
813
|
+
"Countdown",
|
|
814
|
+
"Swap",
|
|
815
|
+
"Fab",
|
|
816
|
+
"Image",
|
|
817
|
+
"MenuButton",
|
|
818
|
+
"Cascader",
|
|
819
|
+
"Combobox",
|
|
820
|
+
"ColorPicker",
|
|
821
|
+
"Mentions",
|
|
822
|
+
"Popover",
|
|
823
|
+
"PriceText",
|
|
824
|
+
"QrCode",
|
|
825
|
+
"CommandPalette",
|
|
826
|
+
"RowEditor",
|
|
827
|
+
"FlowEditor"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"type": "string",
|
|
832
|
+
"pattern": "^App[A-Z][A-Za-z0-9]*$",
|
|
833
|
+
"description": "应用在 kit.app.yaml 登记的扩展基础组件"
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
"props": {
|
|
838
|
+
"type": "object",
|
|
839
|
+
"description": "新增 prop 与事件(以 src/base 为准)"
|
|
840
|
+
},
|
|
841
|
+
"action": {
|
|
842
|
+
"description": "kit-grammar.json#fieldRefKeys.action"
|
|
843
|
+
},
|
|
844
|
+
"width": {
|
|
845
|
+
"description": "规格 11.3:DSL 只描述这一块要多宽(分栏比例、列宽份数、字段跨列),kit 内置写死规则换算成 Tailwind 栅格类与断点类,确定性、不打分"
|
|
846
|
+
},
|
|
847
|
+
"sortable": {
|
|
848
|
+
"description": "kit-grammar.json#fieldRefKeys.sortable"
|
|
849
|
+
},
|
|
850
|
+
"span": {
|
|
851
|
+
"type": "integer",
|
|
852
|
+
"minimum": 1,
|
|
853
|
+
"maximum": 12,
|
|
854
|
+
"description": "规格 11.3:DSL 只描述这一块要多宽(分栏比例、列宽份数、字段跨列),kit 内置写死规则换算成 Tailwind 栅格类与断点类,确定性、不打分"
|
|
855
|
+
},
|
|
856
|
+
"class": {
|
|
857
|
+
"description": "kit-grammar.json#fieldRefKeys.class"
|
|
858
|
+
},
|
|
859
|
+
"labelClass": {
|
|
860
|
+
"description": "kit-grammar.json#fieldRefKeys.labelClass"
|
|
861
|
+
},
|
|
862
|
+
"valueClass": {
|
|
863
|
+
"description": "kit-grammar.json#fieldRefKeys.valueClass"
|
|
864
|
+
},
|
|
865
|
+
"help": {
|
|
866
|
+
"type": "string",
|
|
867
|
+
"description": "fields[].help:表单字段说明文字,字符串(非字符串报 KIT-OBJ-009)。只在编辑态格(form / filter 的 KitObjectForm)渲染,位置写死 = 控件下、错误行上,类 classDefaults.help;只读的 summary / list 不显示(写了丢弃)。"
|
|
868
|
+
},
|
|
869
|
+
"showWhen": {
|
|
870
|
+
"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: 字段 })"
|
|
871
|
+
},
|
|
872
|
+
"requiredWhen": {
|
|
873
|
+
"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: 字段 })"
|
|
874
|
+
},
|
|
875
|
+
"disabledWhen": {
|
|
876
|
+
"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: 字段 })"
|
|
877
|
+
},
|
|
878
|
+
"when": {
|
|
879
|
+
"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: 字段 })"
|
|
880
|
+
},
|
|
881
|
+
"on": {
|
|
882
|
+
"description": "view.on(写死形状数据组件的视图):{ 组件事件名: 动作 },把组件 emit 接到动作。事件名必须在该组件契约 emits 里(否则 KIT-STATIC-001);动作取值见 values,具名动作未登记报 KIT-EVT-001。浮层里的同类接线仍用 overlays.<名>.events"
|
|
883
|
+
},
|
|
884
|
+
"fill": {
|
|
885
|
+
"description": "kit-grammar.json#fieldRefKeys.fill"
|
|
886
|
+
},
|
|
887
|
+
"fixed": {
|
|
888
|
+
"description": "kit-grammar.json#fieldRefKeys.fixed"
|
|
889
|
+
},
|
|
890
|
+
"align": {
|
|
891
|
+
"description": "kit-grammar.json#fieldRefKeys.align"
|
|
892
|
+
},
|
|
893
|
+
"ellipsis": {
|
|
894
|
+
"description": "kit-grammar.json#fieldRefKeys.ellipsis"
|
|
895
|
+
},
|
|
896
|
+
"min": {
|
|
897
|
+
"description": "kit-grammar.json#fieldRefKeys.min"
|
|
898
|
+
},
|
|
899
|
+
"editable": {
|
|
900
|
+
"description": "kit-grammar.json#fieldRefKeys.editable"
|
|
901
|
+
},
|
|
902
|
+
"columnFilter": {
|
|
903
|
+
"description": "kit-grammar.json#fieldRefKeys.columnFilter"
|
|
904
|
+
},
|
|
905
|
+
"resizable": {
|
|
906
|
+
"description": "kit-grammar.json#fieldRefKeys.resizable"
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"allOf": [
|
|
910
|
+
{
|
|
911
|
+
"if": {
|
|
912
|
+
"properties": {
|
|
913
|
+
"component": {
|
|
914
|
+
"const": "Text"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"required": [
|
|
918
|
+
"component"
|
|
919
|
+
]
|
|
920
|
+
},
|
|
921
|
+
"then": {
|
|
922
|
+
"properties": {
|
|
923
|
+
"props": {
|
|
924
|
+
"type": "object",
|
|
925
|
+
"description": "Text 的 props(kit-grammar.json#baseComponentProps.Text;未列出的键以组件契约为准)",
|
|
926
|
+
"properties": {
|
|
927
|
+
"copyable": {
|
|
928
|
+
"description": "Text.copyable(kit-grammar.json#baseComponentProps.Text)"
|
|
929
|
+
},
|
|
930
|
+
"copy_label": {
|
|
931
|
+
"description": "Text.copy_label(kit-grammar.json#baseComponentProps.Text)"
|
|
932
|
+
},
|
|
933
|
+
"copied_label": {
|
|
934
|
+
"description": "Text.copied_label(kit-grammar.json#baseComponentProps.Text)"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"if": {
|
|
943
|
+
"properties": {
|
|
944
|
+
"component": {
|
|
945
|
+
"const": "Tag"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"required": [
|
|
949
|
+
"component"
|
|
950
|
+
]
|
|
951
|
+
},
|
|
952
|
+
"then": {
|
|
953
|
+
"properties": {
|
|
954
|
+
"props": {
|
|
955
|
+
"type": "object",
|
|
956
|
+
"description": "Tag 的 props(kit-grammar.json#baseComponentProps.Tag;未列出的键以组件契约为准)",
|
|
957
|
+
"properties": {
|
|
958
|
+
"dot": {
|
|
959
|
+
"description": "Tag.dot(kit-grammar.json#baseComponentProps.Tag)"
|
|
960
|
+
},
|
|
961
|
+
"variant": {
|
|
962
|
+
"description": "Tag.variant(kit-grammar.json#baseComponentProps.Tag)"
|
|
963
|
+
},
|
|
964
|
+
"pulse": {
|
|
965
|
+
"description": "Tag.pulse(kit-grammar.json#baseComponentProps.Tag)"
|
|
966
|
+
},
|
|
967
|
+
"removable": {
|
|
968
|
+
"description": "Tag.removable(kit-grammar.json#baseComponentProps.Tag)"
|
|
969
|
+
},
|
|
970
|
+
"clickable": {
|
|
971
|
+
"description": "Tag.clickable(kit-grammar.json#baseComponentProps.Tag)"
|
|
972
|
+
},
|
|
973
|
+
"icon": {
|
|
974
|
+
"description": "Tag.icon(kit-grammar.json#baseComponentProps.Tag)"
|
|
975
|
+
},
|
|
976
|
+
"remove_label": {
|
|
977
|
+
"description": "Tag.remove_label(kit-grammar.json#baseComponentProps.Tag)"
|
|
978
|
+
},
|
|
979
|
+
"badge": {
|
|
980
|
+
"description": "Tag.badge(kit-grammar.json#baseComponentProps.Tag)"
|
|
981
|
+
},
|
|
982
|
+
"badge_max": {
|
|
983
|
+
"description": "Tag.badge_max(kit-grammar.json#baseComponentProps.Tag)"
|
|
984
|
+
},
|
|
985
|
+
"badge_dot": {
|
|
986
|
+
"description": "Tag.badge_dot(kit-grammar.json#baseComponentProps.Tag)"
|
|
987
|
+
},
|
|
988
|
+
"tooltip": {
|
|
989
|
+
"description": "Tag.tooltip(kit-grammar.json#baseComponentProps.Tag)"
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"if": {
|
|
998
|
+
"properties": {
|
|
999
|
+
"component": {
|
|
1000
|
+
"const": "Input"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"required": [
|
|
1004
|
+
"component"
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"then": {
|
|
1008
|
+
"properties": {
|
|
1009
|
+
"props": {
|
|
1010
|
+
"type": "object",
|
|
1011
|
+
"description": "Input 的 props(kit-grammar.json#baseComponentProps.Input;未列出的键以组件契约为准)",
|
|
1012
|
+
"properties": {
|
|
1013
|
+
"variant": {
|
|
1014
|
+
"description": "Input.variant(kit-grammar.json#baseComponentProps.Input)"
|
|
1015
|
+
},
|
|
1016
|
+
"clearable": {
|
|
1017
|
+
"description": "Input.clearable(kit-grammar.json#baseComponentProps.Input)"
|
|
1018
|
+
},
|
|
1019
|
+
"prefix": {
|
|
1020
|
+
"description": "Input.prefix(kit-grammar.json#baseComponentProps.Input)"
|
|
1021
|
+
},
|
|
1022
|
+
"suffix": {
|
|
1023
|
+
"description": "Input.suffix(kit-grammar.json#baseComponentProps.Input)"
|
|
1024
|
+
},
|
|
1025
|
+
"counter": {
|
|
1026
|
+
"description": "Input.counter(kit-grammar.json#baseComponentProps.Input)"
|
|
1027
|
+
},
|
|
1028
|
+
"max": {
|
|
1029
|
+
"description": "Input.max(kit-grammar.json#baseComponentProps.Input)"
|
|
1030
|
+
},
|
|
1031
|
+
"password_toggle": {
|
|
1032
|
+
"description": "Input.password_toggle(kit-grammar.json#baseComponentProps.Input)"
|
|
1033
|
+
},
|
|
1034
|
+
"show_label": {
|
|
1035
|
+
"description": "Input.show_label(kit-grammar.json#baseComponentProps.Input)"
|
|
1036
|
+
},
|
|
1037
|
+
"hide_label": {
|
|
1038
|
+
"description": "Input.hide_label(kit-grammar.json#baseComponentProps.Input)"
|
|
1039
|
+
},
|
|
1040
|
+
"clear_label": {
|
|
1041
|
+
"description": "Input.clear_label(kit-grammar.json#baseComponentProps.Input)"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"if": {
|
|
1050
|
+
"properties": {
|
|
1051
|
+
"component": {
|
|
1052
|
+
"const": "Textarea"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
"required": [
|
|
1056
|
+
"component"
|
|
1057
|
+
]
|
|
1058
|
+
},
|
|
1059
|
+
"then": {
|
|
1060
|
+
"properties": {
|
|
1061
|
+
"props": {
|
|
1062
|
+
"type": "object",
|
|
1063
|
+
"description": "Textarea 的 props(kit-grammar.json#baseComponentProps.Textarea;未列出的键以组件契约为准)",
|
|
1064
|
+
"properties": {
|
|
1065
|
+
"auto_size": {
|
|
1066
|
+
"description": "Textarea.auto_size(kit-grammar.json#baseComponentProps.Textarea)"
|
|
1067
|
+
},
|
|
1068
|
+
"min_rows": {
|
|
1069
|
+
"description": "Textarea.min_rows(kit-grammar.json#baseComponentProps.Textarea)"
|
|
1070
|
+
},
|
|
1071
|
+
"max_rows": {
|
|
1072
|
+
"description": "Textarea.max_rows(kit-grammar.json#baseComponentProps.Textarea)"
|
|
1073
|
+
},
|
|
1074
|
+
"counter": {
|
|
1075
|
+
"description": "Textarea.counter(kit-grammar.json#baseComponentProps.Textarea)"
|
|
1076
|
+
},
|
|
1077
|
+
"max": {
|
|
1078
|
+
"description": "Textarea.max(kit-grammar.json#baseComponentProps.Textarea)"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"if": {
|
|
1087
|
+
"properties": {
|
|
1088
|
+
"component": {
|
|
1089
|
+
"const": "Number"
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"required": [
|
|
1093
|
+
"component"
|
|
1094
|
+
]
|
|
1095
|
+
},
|
|
1096
|
+
"then": {
|
|
1097
|
+
"properties": {
|
|
1098
|
+
"props": {
|
|
1099
|
+
"type": "object",
|
|
1100
|
+
"description": "Number 的 props(kit-grammar.json#baseComponentProps.Number;未列出的键以组件契约为准)",
|
|
1101
|
+
"properties": {
|
|
1102
|
+
"variant": {
|
|
1103
|
+
"description": "Number.variant(kit-grammar.json#baseComponentProps.Number)"
|
|
1104
|
+
},
|
|
1105
|
+
"decrease_label": {
|
|
1106
|
+
"description": "Number.decrease_label(kit-grammar.json#baseComponentProps.Number)"
|
|
1107
|
+
},
|
|
1108
|
+
"increase_label": {
|
|
1109
|
+
"description": "Number.increase_label(kit-grammar.json#baseComponentProps.Number)"
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"if": {
|
|
1118
|
+
"properties": {
|
|
1119
|
+
"component": {
|
|
1120
|
+
"const": "Select"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"required": [
|
|
1124
|
+
"component"
|
|
1125
|
+
]
|
|
1126
|
+
},
|
|
1127
|
+
"then": {
|
|
1128
|
+
"properties": {
|
|
1129
|
+
"props": {
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"description": "Select 的 props(kit-grammar.json#baseComponentProps.Select;未列出的键以组件契约为准)",
|
|
1132
|
+
"properties": {
|
|
1133
|
+
"searchable": {
|
|
1134
|
+
"description": "Select.searchable(kit-grammar.json#baseComponentProps.Select)"
|
|
1135
|
+
},
|
|
1136
|
+
"empty_text": {
|
|
1137
|
+
"description": "Select.empty_text(kit-grammar.json#baseComponentProps.Select)"
|
|
1138
|
+
},
|
|
1139
|
+
"multiple": {
|
|
1140
|
+
"description": "Select.multiple(kit-grammar.json#baseComponentProps.Select)"
|
|
1141
|
+
},
|
|
1142
|
+
"group": {
|
|
1143
|
+
"description": "Select.group(kit-grammar.json#baseComponentProps.Select)"
|
|
1144
|
+
},
|
|
1145
|
+
"clearable": {
|
|
1146
|
+
"description": "Select.clearable(kit-grammar.json#baseComponentProps.Select)"
|
|
1147
|
+
},
|
|
1148
|
+
"display": {
|
|
1149
|
+
"description": "Select.display(kit-grammar.json#baseComponentProps.Select)"
|
|
1150
|
+
},
|
|
1151
|
+
"virtual": {
|
|
1152
|
+
"description": "Select.virtual(kit-grammar.json#baseComponentProps.Select)"
|
|
1153
|
+
},
|
|
1154
|
+
"row_height": {
|
|
1155
|
+
"description": "Select.row_height(kit-grammar.json#baseComponentProps.Select)"
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"if": {
|
|
1164
|
+
"properties": {
|
|
1165
|
+
"component": {
|
|
1166
|
+
"const": "Radio"
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"required": [
|
|
1170
|
+
"component"
|
|
1171
|
+
]
|
|
1172
|
+
},
|
|
1173
|
+
"then": {
|
|
1174
|
+
"properties": {
|
|
1175
|
+
"props": {
|
|
1176
|
+
"type": "object",
|
|
1177
|
+
"description": "Radio 的 props(kit-grammar.json#baseComponentProps.Radio;未列出的键以组件契约为准)",
|
|
1178
|
+
"properties": {
|
|
1179
|
+
"variant": {
|
|
1180
|
+
"description": "Radio.variant(kit-grammar.json#baseComponentProps.Radio)"
|
|
1181
|
+
},
|
|
1182
|
+
"block": {
|
|
1183
|
+
"description": "Radio.block(kit-grammar.json#baseComponentProps.Radio)"
|
|
1184
|
+
},
|
|
1185
|
+
"orientation": {
|
|
1186
|
+
"description": "Radio.orientation(kit-grammar.json#baseComponentProps.Radio)"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"if": {
|
|
1195
|
+
"properties": {
|
|
1196
|
+
"component": {
|
|
1197
|
+
"const": "Checkbox"
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
"required": [
|
|
1201
|
+
"component"
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1204
|
+
"then": {
|
|
1205
|
+
"properties": {
|
|
1206
|
+
"props": {
|
|
1207
|
+
"type": "object",
|
|
1208
|
+
"description": "Checkbox 的 props(kit-grammar.json#baseComponentProps.Checkbox;未列出的键以组件契约为准)",
|
|
1209
|
+
"properties": {
|
|
1210
|
+
"variant": {
|
|
1211
|
+
"description": "Checkbox.variant(kit-grammar.json#baseComponentProps.Checkbox)"
|
|
1212
|
+
},
|
|
1213
|
+
"min": {
|
|
1214
|
+
"description": "Checkbox.min(kit-grammar.json#baseComponentProps.Checkbox)"
|
|
1215
|
+
},
|
|
1216
|
+
"max": {
|
|
1217
|
+
"description": "Checkbox.max(kit-grammar.json#baseComponentProps.Checkbox)"
|
|
1218
|
+
},
|
|
1219
|
+
"orientation": {
|
|
1220
|
+
"description": "Checkbox.orientation(kit-grammar.json#baseComponentProps.Checkbox)"
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"if": {
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"component": {
|
|
1231
|
+
"const": "Date"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"required": [
|
|
1235
|
+
"component"
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
"then": {
|
|
1239
|
+
"properties": {
|
|
1240
|
+
"props": {
|
|
1241
|
+
"type": "object",
|
|
1242
|
+
"description": "Date 的 props(kit-grammar.json#baseComponentProps.Date;未列出的键以组件契约为准)",
|
|
1243
|
+
"properties": {
|
|
1244
|
+
"disabled_dates": {
|
|
1245
|
+
"description": "Date.disabled_dates(kit-grammar.json#baseComponentProps.Date)"
|
|
1246
|
+
},
|
|
1247
|
+
"week_start": {
|
|
1248
|
+
"description": "Date.week_start(kit-grammar.json#baseComponentProps.Date)"
|
|
1249
|
+
},
|
|
1250
|
+
"placeholder": {
|
|
1251
|
+
"description": "Date.placeholder(kit-grammar.json#baseComponentProps.Date)"
|
|
1252
|
+
},
|
|
1253
|
+
"clearable": {
|
|
1254
|
+
"description": "Date.clearable(kit-grammar.json#baseComponentProps.Date)"
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"if": {
|
|
1263
|
+
"properties": {
|
|
1264
|
+
"component": {
|
|
1265
|
+
"const": "DateRange"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"required": [
|
|
1269
|
+
"component"
|
|
1270
|
+
]
|
|
1271
|
+
},
|
|
1272
|
+
"then": {
|
|
1273
|
+
"properties": {
|
|
1274
|
+
"props": {
|
|
1275
|
+
"type": "object",
|
|
1276
|
+
"description": "DateRange 的 props(kit-grammar.json#baseComponentProps.DateRange;未列出的键以组件契约为准)",
|
|
1277
|
+
"properties": {
|
|
1278
|
+
"presets": {
|
|
1279
|
+
"description": "DateRange.presets(kit-grammar.json#baseComponentProps.DateRange)"
|
|
1280
|
+
},
|
|
1281
|
+
"disabled_dates": {
|
|
1282
|
+
"description": "DateRange.disabled_dates(kit-grammar.json#baseComponentProps.DateRange)"
|
|
1283
|
+
},
|
|
1284
|
+
"week_start": {
|
|
1285
|
+
"description": "DateRange.week_start(kit-grammar.json#baseComponentProps.DateRange)"
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"if": {
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"component": {
|
|
1296
|
+
"const": "Button"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"required": [
|
|
1300
|
+
"component"
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
"then": {
|
|
1304
|
+
"properties": {
|
|
1305
|
+
"props": {
|
|
1306
|
+
"type": "object",
|
|
1307
|
+
"description": "Button 的 props(kit-grammar.json#baseComponentProps.Button;未列出的键以组件契约为准)",
|
|
1308
|
+
"properties": {
|
|
1309
|
+
"variant": {
|
|
1310
|
+
"description": "Button.variant(kit-grammar.json#baseComponentProps.Button)"
|
|
1311
|
+
},
|
|
1312
|
+
"icon_only": {
|
|
1313
|
+
"description": "Button.icon_only(kit-grammar.json#baseComponentProps.Button)"
|
|
1314
|
+
},
|
|
1315
|
+
"badge": {
|
|
1316
|
+
"description": "Button.badge(kit-grammar.json#baseComponentProps.Button)"
|
|
1317
|
+
},
|
|
1318
|
+
"badge_max": {
|
|
1319
|
+
"description": "Button.badge_max(kit-grammar.json#baseComponentProps.Button)"
|
|
1320
|
+
},
|
|
1321
|
+
"badge_dot": {
|
|
1322
|
+
"description": "Button.badge_dot(kit-grammar.json#baseComponentProps.Button)"
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"if": {
|
|
1331
|
+
"properties": {
|
|
1332
|
+
"component": {
|
|
1333
|
+
"const": "Link"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
"required": [
|
|
1337
|
+
"component"
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
"then": {
|
|
1341
|
+
"properties": {
|
|
1342
|
+
"props": {
|
|
1343
|
+
"type": "object",
|
|
1344
|
+
"description": "Link 的 props(kit-grammar.json#baseComponentProps.Link;未列出的键以组件契约为准)",
|
|
1345
|
+
"properties": {
|
|
1346
|
+
"value": {
|
|
1347
|
+
"description": "Link.value(kit-grammar.json#baseComponentProps.Link)"
|
|
1348
|
+
},
|
|
1349
|
+
"underline": {
|
|
1350
|
+
"description": "Link.underline(kit-grammar.json#baseComponentProps.Link)"
|
|
1351
|
+
},
|
|
1352
|
+
"external": {
|
|
1353
|
+
"description": "Link.external(kit-grammar.json#baseComponentProps.Link)"
|
|
1354
|
+
},
|
|
1355
|
+
"external_label": {
|
|
1356
|
+
"description": "Link.external_label(kit-grammar.json#baseComponentProps.Link)"
|
|
1357
|
+
},
|
|
1358
|
+
"badge": {
|
|
1359
|
+
"description": "Link.badge(kit-grammar.json#baseComponentProps.Link)"
|
|
1360
|
+
},
|
|
1361
|
+
"badge_max": {
|
|
1362
|
+
"description": "Link.badge_max(kit-grammar.json#baseComponentProps.Link)"
|
|
1363
|
+
},
|
|
1364
|
+
"badge_dot": {
|
|
1365
|
+
"description": "Link.badge_dot(kit-grammar.json#baseComponentProps.Link)"
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"if": {
|
|
1374
|
+
"properties": {
|
|
1375
|
+
"component": {
|
|
1376
|
+
"const": "Upload"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
"required": [
|
|
1380
|
+
"component"
|
|
1381
|
+
]
|
|
1382
|
+
},
|
|
1383
|
+
"then": {
|
|
1384
|
+
"properties": {
|
|
1385
|
+
"props": {
|
|
1386
|
+
"type": "object",
|
|
1387
|
+
"description": "Upload 的 props(kit-grammar.json#baseComponentProps.Upload;未列出的键以组件契约为准)",
|
|
1388
|
+
"properties": {
|
|
1389
|
+
"list": {
|
|
1390
|
+
"description": "Upload.list(kit-grammar.json#baseComponentProps.Upload)"
|
|
1391
|
+
},
|
|
1392
|
+
"manual": {
|
|
1393
|
+
"description": "Upload.manual(kit-grammar.json#baseComponentProps.Upload)"
|
|
1394
|
+
},
|
|
1395
|
+
"upload_text": {
|
|
1396
|
+
"description": "Upload.upload_text(kit-grammar.json#baseComponentProps.Upload)"
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"if": {
|
|
1405
|
+
"properties": {
|
|
1406
|
+
"component": {
|
|
1407
|
+
"const": "TimePicker"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
"required": [
|
|
1411
|
+
"component"
|
|
1412
|
+
]
|
|
1413
|
+
},
|
|
1414
|
+
"then": {
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"props": {
|
|
1417
|
+
"type": "object",
|
|
1418
|
+
"description": "TimePicker 的 props(kit-grammar.json#baseComponentProps.TimePicker;未列出的键以组件契约为准)",
|
|
1419
|
+
"properties": {
|
|
1420
|
+
"seconds": {
|
|
1421
|
+
"description": "TimePicker.seconds(kit-grammar.json#baseComponentProps.TimePicker)"
|
|
1422
|
+
},
|
|
1423
|
+
"hour12": {
|
|
1424
|
+
"description": "TimePicker.hour12(kit-grammar.json#baseComponentProps.TimePicker)"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"if": {
|
|
1433
|
+
"properties": {
|
|
1434
|
+
"component": {
|
|
1435
|
+
"const": "TextRotate"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"required": [
|
|
1439
|
+
"component"
|
|
1440
|
+
]
|
|
1441
|
+
},
|
|
1442
|
+
"then": {
|
|
1443
|
+
"properties": {
|
|
1444
|
+
"props": {
|
|
1445
|
+
"type": "object",
|
|
1446
|
+
"description": "TextRotate 的 props(kit-grammar.json#baseComponentProps.TextRotate;未列出的键以组件契约为准)",
|
|
1447
|
+
"properties": {
|
|
1448
|
+
"items": {
|
|
1449
|
+
"description": "TextRotate.items(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1450
|
+
},
|
|
1451
|
+
"interval": {
|
|
1452
|
+
"description": "TextRotate.interval(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1453
|
+
},
|
|
1454
|
+
"prefix": {
|
|
1455
|
+
"description": "TextRotate.prefix(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1456
|
+
},
|
|
1457
|
+
"suffix": {
|
|
1458
|
+
"description": "TextRotate.suffix(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1459
|
+
},
|
|
1460
|
+
"pause_on_hover": {
|
|
1461
|
+
"description": "TextRotate.pause_on_hover(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1462
|
+
},
|
|
1463
|
+
"tone": {
|
|
1464
|
+
"description": "TextRotate.tone(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1465
|
+
},
|
|
1466
|
+
"size": {
|
|
1467
|
+
"description": "TextRotate.size(kit-grammar.json#baseComponentProps.TextRotate)"
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"if": {
|
|
1476
|
+
"properties": {
|
|
1477
|
+
"component": {
|
|
1478
|
+
"const": "Hover3d"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
"required": [
|
|
1482
|
+
"component"
|
|
1483
|
+
]
|
|
1484
|
+
},
|
|
1485
|
+
"then": {
|
|
1486
|
+
"properties": {
|
|
1487
|
+
"props": {
|
|
1488
|
+
"type": "object",
|
|
1489
|
+
"description": "Hover3d 的 props(kit-grammar.json#baseComponentProps.Hover3d;未列出的键以组件契约为准)",
|
|
1490
|
+
"properties": {
|
|
1491
|
+
"title": {
|
|
1492
|
+
"description": "Hover3d.title(kit-grammar.json#baseComponentProps.Hover3d)"
|
|
1493
|
+
},
|
|
1494
|
+
"image": {
|
|
1495
|
+
"description": "Hover3d.image(kit-grammar.json#baseComponentProps.Hover3d)"
|
|
1496
|
+
},
|
|
1497
|
+
"image_alt": {
|
|
1498
|
+
"description": "Hover3d.image_alt(kit-grammar.json#baseComponentProps.Hover3d)"
|
|
1499
|
+
},
|
|
1500
|
+
"href": {
|
|
1501
|
+
"description": "Hover3d.href(kit-grammar.json#baseComponentProps.Hover3d)"
|
|
1502
|
+
},
|
|
1503
|
+
"strength": {
|
|
1504
|
+
"description": "Hover3d.strength(kit-grammar.json#baseComponentProps.Hover3d)"
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"if": {
|
|
1513
|
+
"properties": {
|
|
1514
|
+
"component": {
|
|
1515
|
+
"const": "HoverGallery"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"required": [
|
|
1519
|
+
"component"
|
|
1520
|
+
]
|
|
1521
|
+
},
|
|
1522
|
+
"then": {
|
|
1523
|
+
"properties": {
|
|
1524
|
+
"props": {
|
|
1525
|
+
"type": "object",
|
|
1526
|
+
"description": "HoverGallery 的 props(kit-grammar.json#baseComponentProps.HoverGallery;未列出的键以组件契约为准)",
|
|
1527
|
+
"properties": {
|
|
1528
|
+
"images": {
|
|
1529
|
+
"description": "HoverGallery.images(kit-grammar.json#baseComponentProps.HoverGallery)"
|
|
1530
|
+
},
|
|
1531
|
+
"height": {
|
|
1532
|
+
"description": "HoverGallery.height(kit-grammar.json#baseComponentProps.HoverGallery)"
|
|
1533
|
+
},
|
|
1534
|
+
"aria_label": {
|
|
1535
|
+
"description": "HoverGallery.aria_label(kit-grammar.json#baseComponentProps.HoverGallery)"
|
|
1536
|
+
},
|
|
1537
|
+
"status_prefix": {
|
|
1538
|
+
"description": "HoverGallery.status_prefix(kit-grammar.json#baseComponentProps.HoverGallery)"
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"if": {
|
|
1547
|
+
"properties": {
|
|
1548
|
+
"component": {
|
|
1549
|
+
"const": "Aura"
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
"required": [
|
|
1553
|
+
"component"
|
|
1554
|
+
]
|
|
1555
|
+
},
|
|
1556
|
+
"then": {
|
|
1557
|
+
"properties": {
|
|
1558
|
+
"props": {
|
|
1559
|
+
"type": "object",
|
|
1560
|
+
"description": "Aura 的 props(kit-grammar.json#baseComponentProps.Aura;未列出的键以组件契约为准)",
|
|
1561
|
+
"properties": {
|
|
1562
|
+
"title": {
|
|
1563
|
+
"description": "Aura.title(kit-grammar.json#baseComponentProps.Aura)"
|
|
1564
|
+
},
|
|
1565
|
+
"tone": {
|
|
1566
|
+
"description": "Aura.tone(kit-grammar.json#baseComponentProps.Aura)"
|
|
1567
|
+
},
|
|
1568
|
+
"strength": {
|
|
1569
|
+
"description": "Aura.strength(kit-grammar.json#baseComponentProps.Aura)"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"if": {
|
|
1578
|
+
"properties": {
|
|
1579
|
+
"component": {
|
|
1580
|
+
"const": "Marquee"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"required": [
|
|
1584
|
+
"component"
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
"then": {
|
|
1588
|
+
"properties": {
|
|
1589
|
+
"props": {
|
|
1590
|
+
"type": "object",
|
|
1591
|
+
"description": "Marquee 的 props(kit-grammar.json#baseComponentProps.Marquee;未列出的键以组件契约为准)",
|
|
1592
|
+
"properties": {
|
|
1593
|
+
"items": {
|
|
1594
|
+
"description": "Marquee.items(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1595
|
+
},
|
|
1596
|
+
"speed": {
|
|
1597
|
+
"description": "Marquee.speed(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1598
|
+
},
|
|
1599
|
+
"paused": {
|
|
1600
|
+
"description": "Marquee.paused(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1601
|
+
},
|
|
1602
|
+
"pause_label": {
|
|
1603
|
+
"description": "Marquee.pause_label(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1604
|
+
},
|
|
1605
|
+
"resume_label": {
|
|
1606
|
+
"description": "Marquee.resume_label(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1607
|
+
},
|
|
1608
|
+
"paused_label": {
|
|
1609
|
+
"description": "Marquee.paused_label(kit-grammar.json#baseComponentProps.Marquee)"
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"if": {
|
|
1618
|
+
"properties": {
|
|
1619
|
+
"component": {
|
|
1620
|
+
"const": "Range"
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
"required": [
|
|
1624
|
+
"component"
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
1627
|
+
"then": {
|
|
1628
|
+
"properties": {
|
|
1629
|
+
"props": {
|
|
1630
|
+
"type": "object",
|
|
1631
|
+
"description": "Range 的 props(kit-grammar.json#baseComponentProps.Range;未列出的键以组件契约为准)",
|
|
1632
|
+
"properties": {
|
|
1633
|
+
"value": {
|
|
1634
|
+
"description": "Range.value(kit-grammar.json#baseComponentProps.Range)"
|
|
1635
|
+
},
|
|
1636
|
+
"min": {
|
|
1637
|
+
"description": "Range.min(kit-grammar.json#baseComponentProps.Range)"
|
|
1638
|
+
},
|
|
1639
|
+
"max": {
|
|
1640
|
+
"description": "Range.max(kit-grammar.json#baseComponentProps.Range)"
|
|
1641
|
+
},
|
|
1642
|
+
"step": {
|
|
1643
|
+
"description": "Range.step(kit-grammar.json#baseComponentProps.Range)"
|
|
1644
|
+
},
|
|
1645
|
+
"page_step": {
|
|
1646
|
+
"description": "Range.page_step(kit-grammar.json#baseComponentProps.Range)"
|
|
1647
|
+
},
|
|
1648
|
+
"value_text": {
|
|
1649
|
+
"description": "Range.value_text(kit-grammar.json#baseComponentProps.Range)"
|
|
1650
|
+
},
|
|
1651
|
+
"range": {
|
|
1652
|
+
"description": "Range.range(kit-grammar.json#baseComponentProps.Range)"
|
|
1653
|
+
},
|
|
1654
|
+
"marks": {
|
|
1655
|
+
"description": "Range.marks(kit-grammar.json#baseComponentProps.Range)"
|
|
1656
|
+
},
|
|
1657
|
+
"value_label": {
|
|
1658
|
+
"description": "Range.value_label(kit-grammar.json#baseComponentProps.Range)"
|
|
1659
|
+
},
|
|
1660
|
+
"orientation": {
|
|
1661
|
+
"description": "Range.orientation(kit-grammar.json#baseComponentProps.Range)"
|
|
1662
|
+
},
|
|
1663
|
+
"disabled": {
|
|
1664
|
+
"description": "Range.disabled(kit-grammar.json#baseComponentProps.Range)"
|
|
1665
|
+
},
|
|
1666
|
+
"readonly": {
|
|
1667
|
+
"description": "Range.readonly(kit-grammar.json#baseComponentProps.Range)"
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"if": {
|
|
1676
|
+
"properties": {
|
|
1677
|
+
"component": {
|
|
1678
|
+
"const": "Rating"
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
"required": [
|
|
1682
|
+
"component"
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
"then": {
|
|
1686
|
+
"properties": {
|
|
1687
|
+
"props": {
|
|
1688
|
+
"type": "object",
|
|
1689
|
+
"description": "Rating 的 props(kit-grammar.json#baseComponentProps.Rating;未列出的键以组件契约为准)",
|
|
1690
|
+
"properties": {
|
|
1691
|
+
"value": {
|
|
1692
|
+
"description": "Rating.value(kit-grammar.json#baseComponentProps.Rating)"
|
|
1693
|
+
},
|
|
1694
|
+
"count": {
|
|
1695
|
+
"description": "Rating.count(kit-grammar.json#baseComponentProps.Rating)"
|
|
1696
|
+
},
|
|
1697
|
+
"allow_half": {
|
|
1698
|
+
"description": "Rating.allow_half(kit-grammar.json#baseComponentProps.Rating)"
|
|
1699
|
+
},
|
|
1700
|
+
"symbol": {
|
|
1701
|
+
"description": "Rating.symbol(kit-grammar.json#baseComponentProps.Rating)"
|
|
1702
|
+
},
|
|
1703
|
+
"clearable": {
|
|
1704
|
+
"description": "Rating.clearable(kit-grammar.json#baseComponentProps.Rating)"
|
|
1705
|
+
},
|
|
1706
|
+
"disabled": {
|
|
1707
|
+
"description": "Rating.disabled(kit-grammar.json#baseComponentProps.Rating)"
|
|
1708
|
+
},
|
|
1709
|
+
"readonly": {
|
|
1710
|
+
"description": "Rating.readonly(kit-grammar.json#baseComponentProps.Rating)"
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"if": {
|
|
1719
|
+
"properties": {
|
|
1720
|
+
"component": {
|
|
1721
|
+
"const": "Otp"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
"required": [
|
|
1725
|
+
"component"
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
"then": {
|
|
1729
|
+
"properties": {
|
|
1730
|
+
"props": {
|
|
1731
|
+
"type": "object",
|
|
1732
|
+
"description": "Otp 的 props(kit-grammar.json#baseComponentProps.Otp;未列出的键以组件契约为准)",
|
|
1733
|
+
"properties": {
|
|
1734
|
+
"value": {
|
|
1735
|
+
"description": "Otp.value(kit-grammar.json#baseComponentProps.Otp)"
|
|
1736
|
+
},
|
|
1737
|
+
"length": {
|
|
1738
|
+
"description": "Otp.length(kit-grammar.json#baseComponentProps.Otp)"
|
|
1739
|
+
},
|
|
1740
|
+
"mode": {
|
|
1741
|
+
"description": "Otp.mode(kit-grammar.json#baseComponentProps.Otp)"
|
|
1742
|
+
},
|
|
1743
|
+
"mask": {
|
|
1744
|
+
"description": "Otp.mask(kit-grammar.json#baseComponentProps.Otp)"
|
|
1745
|
+
},
|
|
1746
|
+
"disabled": {
|
|
1747
|
+
"description": "Otp.disabled(kit-grammar.json#baseComponentProps.Otp)"
|
|
1748
|
+
},
|
|
1749
|
+
"readonly": {
|
|
1750
|
+
"description": "Otp.readonly(kit-grammar.json#baseComponentProps.Otp)"
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"if": {
|
|
1759
|
+
"properties": {
|
|
1760
|
+
"component": {
|
|
1761
|
+
"const": "Avatar"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
"required": [
|
|
1765
|
+
"component"
|
|
1766
|
+
]
|
|
1767
|
+
},
|
|
1768
|
+
"then": {
|
|
1769
|
+
"properties": {
|
|
1770
|
+
"props": {
|
|
1771
|
+
"type": "object",
|
|
1772
|
+
"description": "Avatar 的 props(kit-grammar.json#baseComponentProps.Avatar;未列出的键以组件契约为准)",
|
|
1773
|
+
"properties": {
|
|
1774
|
+
"src": {
|
|
1775
|
+
"description": "Avatar.src(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1776
|
+
},
|
|
1777
|
+
"name": {
|
|
1778
|
+
"description": "Avatar.name(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1779
|
+
},
|
|
1780
|
+
"value": {
|
|
1781
|
+
"description": "Avatar.value(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1782
|
+
},
|
|
1783
|
+
"alt": {
|
|
1784
|
+
"description": "Avatar.alt(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1785
|
+
},
|
|
1786
|
+
"shape": {
|
|
1787
|
+
"description": "Avatar.shape(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1788
|
+
},
|
|
1789
|
+
"status": {
|
|
1790
|
+
"description": "Avatar.status(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1791
|
+
},
|
|
1792
|
+
"badge": {
|
|
1793
|
+
"description": "Avatar.badge(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1794
|
+
},
|
|
1795
|
+
"badge_max": {
|
|
1796
|
+
"description": "Avatar.badge_max(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1797
|
+
},
|
|
1798
|
+
"tooltip": {
|
|
1799
|
+
"description": "Avatar.tooltip(kit-grammar.json#baseComponentProps.Avatar)"
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"if": {
|
|
1808
|
+
"properties": {
|
|
1809
|
+
"component": {
|
|
1810
|
+
"const": "AvatarGroup"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"required": [
|
|
1814
|
+
"component"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"then": {
|
|
1818
|
+
"properties": {
|
|
1819
|
+
"props": {
|
|
1820
|
+
"type": "object",
|
|
1821
|
+
"description": "AvatarGroup 的 props(kit-grammar.json#baseComponentProps.AvatarGroup;未列出的键以组件契约为准)",
|
|
1822
|
+
"properties": {
|
|
1823
|
+
"items": {
|
|
1824
|
+
"description": "AvatarGroup.items(kit-grammar.json#baseComponentProps.AvatarGroup)"
|
|
1825
|
+
},
|
|
1826
|
+
"max": {
|
|
1827
|
+
"description": "AvatarGroup.max(kit-grammar.json#baseComponentProps.AvatarGroup)"
|
|
1828
|
+
},
|
|
1829
|
+
"shape": {
|
|
1830
|
+
"description": "AvatarGroup.shape(kit-grammar.json#baseComponentProps.AvatarGroup)"
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"if": {
|
|
1839
|
+
"properties": {
|
|
1840
|
+
"component": {
|
|
1841
|
+
"const": "Kbd"
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1844
|
+
"required": [
|
|
1845
|
+
"component"
|
|
1846
|
+
]
|
|
1847
|
+
},
|
|
1848
|
+
"then": {
|
|
1849
|
+
"properties": {
|
|
1850
|
+
"props": {
|
|
1851
|
+
"type": "object",
|
|
1852
|
+
"description": "Kbd 的 props(kit-grammar.json#baseComponentProps.Kbd;未列出的键以组件契约为准)",
|
|
1853
|
+
"properties": {
|
|
1854
|
+
"keys": {
|
|
1855
|
+
"description": "Kbd.keys(kit-grammar.json#baseComponentProps.Kbd)"
|
|
1856
|
+
},
|
|
1857
|
+
"symbols": {
|
|
1858
|
+
"description": "Kbd.symbols(kit-grammar.json#baseComponentProps.Kbd)"
|
|
1859
|
+
},
|
|
1860
|
+
"tooltip": {
|
|
1861
|
+
"description": "Kbd.tooltip(kit-grammar.json#baseComponentProps.Kbd)"
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"if": {
|
|
1870
|
+
"properties": {
|
|
1871
|
+
"component": {
|
|
1872
|
+
"const": "KitProgress"
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
"required": [
|
|
1876
|
+
"component"
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1879
|
+
"then": {
|
|
1880
|
+
"properties": {
|
|
1881
|
+
"props": {
|
|
1882
|
+
"type": "object",
|
|
1883
|
+
"description": "KitProgress 的 props(kit-grammar.json#baseComponentProps.KitProgress;未列出的键以组件契约为准)",
|
|
1884
|
+
"properties": {
|
|
1885
|
+
"value": {
|
|
1886
|
+
"description": "KitProgress.value(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1887
|
+
},
|
|
1888
|
+
"shape": {
|
|
1889
|
+
"description": "KitProgress.shape(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1890
|
+
},
|
|
1891
|
+
"tone": {
|
|
1892
|
+
"description": "KitProgress.tone(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1893
|
+
},
|
|
1894
|
+
"show_text": {
|
|
1895
|
+
"description": "KitProgress.show_text(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1896
|
+
},
|
|
1897
|
+
"label": {
|
|
1898
|
+
"description": "KitProgress.label(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1899
|
+
},
|
|
1900
|
+
"indeterminate": {
|
|
1901
|
+
"description": "KitProgress.indeterminate(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1902
|
+
},
|
|
1903
|
+
"buffer": {
|
|
1904
|
+
"description": "KitProgress.buffer(kit-grammar.json#baseComponentProps.KitProgress)"
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"if": {
|
|
1913
|
+
"properties": {
|
|
1914
|
+
"component": {
|
|
1915
|
+
"const": "Countdown"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
"required": [
|
|
1919
|
+
"component"
|
|
1920
|
+
]
|
|
1921
|
+
},
|
|
1922
|
+
"then": {
|
|
1923
|
+
"properties": {
|
|
1924
|
+
"props": {
|
|
1925
|
+
"type": "object",
|
|
1926
|
+
"description": "Countdown 的 props(kit-grammar.json#baseComponentProps.Countdown;未列出的键以组件契约为准)",
|
|
1927
|
+
"properties": {
|
|
1928
|
+
"target": {
|
|
1929
|
+
"description": "Countdown.target(kit-grammar.json#baseComponentProps.Countdown)"
|
|
1930
|
+
},
|
|
1931
|
+
"seconds": {
|
|
1932
|
+
"description": "Countdown.seconds(kit-grammar.json#baseComponentProps.Countdown)"
|
|
1933
|
+
},
|
|
1934
|
+
"format": {
|
|
1935
|
+
"description": "Countdown.format(kit-grammar.json#baseComponentProps.Countdown)"
|
|
1936
|
+
},
|
|
1937
|
+
"label": {
|
|
1938
|
+
"description": "Countdown.label(kit-grammar.json#baseComponentProps.Countdown)"
|
|
1939
|
+
},
|
|
1940
|
+
"finished_text": {
|
|
1941
|
+
"description": "Countdown.finished_text(kit-grammar.json#baseComponentProps.Countdown)"
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"if": {
|
|
1950
|
+
"properties": {
|
|
1951
|
+
"component": {
|
|
1952
|
+
"const": "Swap"
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
"required": [
|
|
1956
|
+
"component"
|
|
1957
|
+
]
|
|
1958
|
+
},
|
|
1959
|
+
"then": {
|
|
1960
|
+
"properties": {
|
|
1961
|
+
"props": {
|
|
1962
|
+
"type": "object",
|
|
1963
|
+
"description": "Swap 的 props(kit-grammar.json#baseComponentProps.Swap;未列出的键以组件契约为准)",
|
|
1964
|
+
"properties": {
|
|
1965
|
+
"value": {
|
|
1966
|
+
"description": "Swap.value(kit-grammar.json#baseComponentProps.Swap)"
|
|
1967
|
+
},
|
|
1968
|
+
"on": {
|
|
1969
|
+
"description": "Swap.on(kit-grammar.json#baseComponentProps.Swap)"
|
|
1970
|
+
},
|
|
1971
|
+
"off": {
|
|
1972
|
+
"description": "Swap.off(kit-grammar.json#baseComponentProps.Swap)"
|
|
1973
|
+
},
|
|
1974
|
+
"disabled": {
|
|
1975
|
+
"description": "Swap.disabled(kit-grammar.json#baseComponentProps.Swap)"
|
|
1976
|
+
},
|
|
1977
|
+
"readonly": {
|
|
1978
|
+
"description": "Swap.readonly(kit-grammar.json#baseComponentProps.Swap)"
|
|
1979
|
+
},
|
|
1980
|
+
"tooltip": {
|
|
1981
|
+
"description": "Swap.tooltip(kit-grammar.json#baseComponentProps.Swap)"
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"if": {
|
|
1990
|
+
"properties": {
|
|
1991
|
+
"component": {
|
|
1992
|
+
"const": "Fab"
|
|
1993
|
+
}
|
|
1994
|
+
},
|
|
1995
|
+
"required": [
|
|
1996
|
+
"component"
|
|
1997
|
+
]
|
|
1998
|
+
},
|
|
1999
|
+
"then": {
|
|
2000
|
+
"properties": {
|
|
2001
|
+
"props": {
|
|
2002
|
+
"type": "object",
|
|
2003
|
+
"description": "Fab 的 props(kit-grammar.json#baseComponentProps.Fab;未列出的键以组件契约为准)",
|
|
2004
|
+
"properties": {
|
|
2005
|
+
"icon": {
|
|
2006
|
+
"description": "Fab.icon(kit-grammar.json#baseComponentProps.Fab)"
|
|
2007
|
+
},
|
|
2008
|
+
"label": {
|
|
2009
|
+
"description": "Fab.label(kit-grammar.json#baseComponentProps.Fab)"
|
|
2010
|
+
},
|
|
2011
|
+
"items": {
|
|
2012
|
+
"description": "Fab.items(kit-grammar.json#baseComponentProps.Fab)"
|
|
2013
|
+
},
|
|
2014
|
+
"placement": {
|
|
2015
|
+
"description": "Fab.placement(kit-grammar.json#baseComponentProps.Fab)"
|
|
2016
|
+
},
|
|
2017
|
+
"direction": {
|
|
2018
|
+
"description": "Fab.direction(kit-grammar.json#baseComponentProps.Fab)"
|
|
2019
|
+
},
|
|
2020
|
+
"back_top": {
|
|
2021
|
+
"description": "Fab.back_top(kit-grammar.json#baseComponentProps.Fab)"
|
|
2022
|
+
},
|
|
2023
|
+
"back_top_offset": {
|
|
2024
|
+
"description": "Fab.back_top_offset(kit-grammar.json#baseComponentProps.Fab)"
|
|
2025
|
+
},
|
|
2026
|
+
"disabled": {
|
|
2027
|
+
"description": "Fab.disabled(kit-grammar.json#baseComponentProps.Fab)"
|
|
2028
|
+
},
|
|
2029
|
+
"tooltip": {
|
|
2030
|
+
"description": "Fab.tooltip(kit-grammar.json#baseComponentProps.Fab)"
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"if": {
|
|
2039
|
+
"properties": {
|
|
2040
|
+
"component": {
|
|
2041
|
+
"const": "Image"
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
"required": [
|
|
2045
|
+
"component"
|
|
2046
|
+
]
|
|
2047
|
+
},
|
|
2048
|
+
"then": {
|
|
2049
|
+
"properties": {
|
|
2050
|
+
"props": {
|
|
2051
|
+
"type": "object",
|
|
2052
|
+
"description": "Image 的 props(kit-grammar.json#baseComponentProps.Image;未列出的键以组件契约为准)",
|
|
2053
|
+
"properties": {
|
|
2054
|
+
"src": {
|
|
2055
|
+
"description": "Image.src(kit-grammar.json#baseComponentProps.Image)"
|
|
2056
|
+
},
|
|
2057
|
+
"alt": {
|
|
2058
|
+
"description": "Image.alt(kit-grammar.json#baseComponentProps.Image)"
|
|
2059
|
+
},
|
|
2060
|
+
"aspect": {
|
|
2061
|
+
"description": "Image.aspect(kit-grammar.json#baseComponentProps.Image)"
|
|
2062
|
+
},
|
|
2063
|
+
"fit": {
|
|
2064
|
+
"description": "Image.fit(kit-grammar.json#baseComponentProps.Image)"
|
|
2065
|
+
},
|
|
2066
|
+
"mask": {
|
|
2067
|
+
"description": "Image.mask(kit-grammar.json#baseComponentProps.Image)"
|
|
2068
|
+
},
|
|
2069
|
+
"lazy": {
|
|
2070
|
+
"description": "Image.lazy(kit-grammar.json#baseComponentProps.Image)"
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"if": {
|
|
2079
|
+
"properties": {
|
|
2080
|
+
"component": {
|
|
2081
|
+
"const": "MenuButton"
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"required": [
|
|
2085
|
+
"component"
|
|
2086
|
+
]
|
|
2087
|
+
},
|
|
2088
|
+
"then": {
|
|
2089
|
+
"properties": {
|
|
2090
|
+
"props": {
|
|
2091
|
+
"type": "object",
|
|
2092
|
+
"description": "MenuButton 的 props(kit-grammar.json#baseComponentProps.MenuButton;未列出的键以组件契约为准)",
|
|
2093
|
+
"properties": {
|
|
2094
|
+
"label": {
|
|
2095
|
+
"description": "MenuButton.label(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2096
|
+
},
|
|
2097
|
+
"icon": {
|
|
2098
|
+
"description": "MenuButton.icon(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2099
|
+
},
|
|
2100
|
+
"variant": {
|
|
2101
|
+
"description": "MenuButton.variant(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2102
|
+
},
|
|
2103
|
+
"trigger": {
|
|
2104
|
+
"description": "MenuButton.trigger(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2105
|
+
},
|
|
2106
|
+
"items": {
|
|
2107
|
+
"description": "MenuButton.items(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2108
|
+
},
|
|
2109
|
+
"disabled": {
|
|
2110
|
+
"description": "MenuButton.disabled(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2111
|
+
},
|
|
2112
|
+
"tooltip": {
|
|
2113
|
+
"description": "MenuButton.tooltip(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2114
|
+
},
|
|
2115
|
+
"split": {
|
|
2116
|
+
"description": "MenuButton.split(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2117
|
+
},
|
|
2118
|
+
"more_label": {
|
|
2119
|
+
"description": "MenuButton.more_label(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2120
|
+
},
|
|
2121
|
+
"badge": {
|
|
2122
|
+
"description": "MenuButton.badge(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2123
|
+
},
|
|
2124
|
+
"badge_max": {
|
|
2125
|
+
"description": "MenuButton.badge_max(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2126
|
+
},
|
|
2127
|
+
"badge_dot": {
|
|
2128
|
+
"description": "MenuButton.badge_dot(kit-grammar.json#baseComponentProps.MenuButton)"
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"if": {
|
|
2137
|
+
"properties": {
|
|
2138
|
+
"component": {
|
|
2139
|
+
"const": "Cascader"
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2142
|
+
"required": [
|
|
2143
|
+
"component"
|
|
2144
|
+
]
|
|
2145
|
+
},
|
|
2146
|
+
"then": {
|
|
2147
|
+
"properties": {
|
|
2148
|
+
"props": {
|
|
2149
|
+
"type": "object",
|
|
2150
|
+
"description": "Cascader 的 props(kit-grammar.json#baseComponentProps.Cascader;未列出的键以组件契约为准)",
|
|
2151
|
+
"properties": {
|
|
2152
|
+
"value": {
|
|
2153
|
+
"description": "Cascader.value(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2154
|
+
},
|
|
2155
|
+
"options": {
|
|
2156
|
+
"description": "Cascader.options(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2157
|
+
},
|
|
2158
|
+
"placeholder": {
|
|
2159
|
+
"description": "Cascader.placeholder(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2160
|
+
},
|
|
2161
|
+
"searchable": {
|
|
2162
|
+
"description": "Cascader.searchable(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2163
|
+
},
|
|
2164
|
+
"change_on_select": {
|
|
2165
|
+
"description": "Cascader.change_on_select(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2166
|
+
},
|
|
2167
|
+
"separator": {
|
|
2168
|
+
"description": "Cascader.separator(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2169
|
+
},
|
|
2170
|
+
"empty_text": {
|
|
2171
|
+
"description": "Cascader.empty_text(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2172
|
+
},
|
|
2173
|
+
"loading_text": {
|
|
2174
|
+
"description": "Cascader.loading_text(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2175
|
+
},
|
|
2176
|
+
"disabled": {
|
|
2177
|
+
"description": "Cascader.disabled(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2178
|
+
},
|
|
2179
|
+
"readonly": {
|
|
2180
|
+
"description": "Cascader.readonly(kit-grammar.json#baseComponentProps.Cascader)"
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"if": {
|
|
2189
|
+
"properties": {
|
|
2190
|
+
"component": {
|
|
2191
|
+
"const": "Combobox"
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"required": [
|
|
2195
|
+
"component"
|
|
2196
|
+
]
|
|
2197
|
+
},
|
|
2198
|
+
"then": {
|
|
2199
|
+
"properties": {
|
|
2200
|
+
"props": {
|
|
2201
|
+
"type": "object",
|
|
2202
|
+
"description": "Combobox 的 props(kit-grammar.json#baseComponentProps.Combobox;未列出的键以组件契约为准)",
|
|
2203
|
+
"properties": {
|
|
2204
|
+
"value": {
|
|
2205
|
+
"description": "Combobox.value(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2206
|
+
},
|
|
2207
|
+
"display": {
|
|
2208
|
+
"description": "Combobox.display(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2209
|
+
},
|
|
2210
|
+
"options": {
|
|
2211
|
+
"description": "Combobox.options(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2212
|
+
},
|
|
2213
|
+
"placeholder": {
|
|
2214
|
+
"description": "Combobox.placeholder(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2215
|
+
},
|
|
2216
|
+
"filter": {
|
|
2217
|
+
"description": "Combobox.filter(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2218
|
+
},
|
|
2219
|
+
"allow_free": {
|
|
2220
|
+
"description": "Combobox.allow_free(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2221
|
+
},
|
|
2222
|
+
"loading": {
|
|
2223
|
+
"description": "Combobox.loading(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2224
|
+
},
|
|
2225
|
+
"loading_text": {
|
|
2226
|
+
"description": "Combobox.loading_text(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2227
|
+
},
|
|
2228
|
+
"empty_text": {
|
|
2229
|
+
"description": "Combobox.empty_text(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2230
|
+
},
|
|
2231
|
+
"search_delay": {
|
|
2232
|
+
"description": "Combobox.search_delay(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2233
|
+
},
|
|
2234
|
+
"multiple": {
|
|
2235
|
+
"description": "Combobox.multiple(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2236
|
+
},
|
|
2237
|
+
"limit_tags": {
|
|
2238
|
+
"description": "Combobox.limit_tags(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2239
|
+
},
|
|
2240
|
+
"group": {
|
|
2241
|
+
"description": "Combobox.group(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2242
|
+
},
|
|
2243
|
+
"disabled": {
|
|
2244
|
+
"description": "Combobox.disabled(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2245
|
+
},
|
|
2246
|
+
"readonly": {
|
|
2247
|
+
"description": "Combobox.readonly(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2248
|
+
},
|
|
2249
|
+
"virtual": {
|
|
2250
|
+
"description": "Combobox.virtual(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2251
|
+
},
|
|
2252
|
+
"row_height": {
|
|
2253
|
+
"description": "Combobox.row_height(kit-grammar.json#baseComponentProps.Combobox)"
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"if": {
|
|
2262
|
+
"properties": {
|
|
2263
|
+
"component": {
|
|
2264
|
+
"const": "ColorPicker"
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"required": [
|
|
2268
|
+
"component"
|
|
2269
|
+
]
|
|
2270
|
+
},
|
|
2271
|
+
"then": {
|
|
2272
|
+
"properties": {
|
|
2273
|
+
"props": {
|
|
2274
|
+
"type": "object",
|
|
2275
|
+
"description": "ColorPicker 的 props(kit-grammar.json#baseComponentProps.ColorPicker;未列出的键以组件契约为准)",
|
|
2276
|
+
"properties": {
|
|
2277
|
+
"value": {
|
|
2278
|
+
"description": "ColorPicker.value(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2279
|
+
},
|
|
2280
|
+
"presets": {
|
|
2281
|
+
"description": "ColorPicker.presets(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2282
|
+
},
|
|
2283
|
+
"allow_custom": {
|
|
2284
|
+
"description": "ColorPicker.allow_custom(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2285
|
+
},
|
|
2286
|
+
"placeholder": {
|
|
2287
|
+
"description": "ColorPicker.placeholder(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2288
|
+
},
|
|
2289
|
+
"invalid_text": {
|
|
2290
|
+
"description": "ColorPicker.invalid_text(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2291
|
+
},
|
|
2292
|
+
"disabled": {
|
|
2293
|
+
"description": "ColorPicker.disabled(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2294
|
+
},
|
|
2295
|
+
"readonly": {
|
|
2296
|
+
"description": "ColorPicker.readonly(kit-grammar.json#baseComponentProps.ColorPicker)"
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"if": {
|
|
2305
|
+
"properties": {
|
|
2306
|
+
"component": {
|
|
2307
|
+
"const": "Mentions"
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
"required": [
|
|
2311
|
+
"component"
|
|
2312
|
+
]
|
|
2313
|
+
},
|
|
2314
|
+
"then": {
|
|
2315
|
+
"properties": {
|
|
2316
|
+
"props": {
|
|
2317
|
+
"type": "object",
|
|
2318
|
+
"description": "Mentions 的 props(kit-grammar.json#baseComponentProps.Mentions;未列出的键以组件契约为准)",
|
|
2319
|
+
"properties": {
|
|
2320
|
+
"value": {
|
|
2321
|
+
"description": "Mentions.value(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2322
|
+
},
|
|
2323
|
+
"options": {
|
|
2324
|
+
"description": "Mentions.options(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2325
|
+
},
|
|
2326
|
+
"trigger": {
|
|
2327
|
+
"description": "Mentions.trigger(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2328
|
+
},
|
|
2329
|
+
"markup": {
|
|
2330
|
+
"description": "Mentions.markup(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2331
|
+
},
|
|
2332
|
+
"filter": {
|
|
2333
|
+
"description": "Mentions.filter(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2334
|
+
},
|
|
2335
|
+
"placeholder": {
|
|
2336
|
+
"description": "Mentions.placeholder(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2337
|
+
},
|
|
2338
|
+
"rows": {
|
|
2339
|
+
"description": "Mentions.rows(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2340
|
+
},
|
|
2341
|
+
"empty_text": {
|
|
2342
|
+
"description": "Mentions.empty_text(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2343
|
+
},
|
|
2344
|
+
"disabled": {
|
|
2345
|
+
"description": "Mentions.disabled(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2346
|
+
},
|
|
2347
|
+
"readonly": {
|
|
2348
|
+
"description": "Mentions.readonly(kit-grammar.json#baseComponentProps.Mentions)"
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"if": {
|
|
2357
|
+
"properties": {
|
|
2358
|
+
"component": {
|
|
2359
|
+
"const": "Popover"
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
"required": [
|
|
2363
|
+
"component"
|
|
2364
|
+
]
|
|
2365
|
+
},
|
|
2366
|
+
"then": {
|
|
2367
|
+
"properties": {
|
|
2368
|
+
"props": {
|
|
2369
|
+
"type": "object",
|
|
2370
|
+
"description": "Popover 的 props(kit-grammar.json#baseComponentProps.Popover;未列出的键以组件契约为准)",
|
|
2371
|
+
"properties": {
|
|
2372
|
+
"label": {
|
|
2373
|
+
"description": "Popover.label(kit-grammar.json#baseComponentProps.Popover)"
|
|
2374
|
+
},
|
|
2375
|
+
"title": {
|
|
2376
|
+
"description": "Popover.title(kit-grammar.json#baseComponentProps.Popover)"
|
|
2377
|
+
},
|
|
2378
|
+
"content": {
|
|
2379
|
+
"description": "Popover.content(kit-grammar.json#baseComponentProps.Popover)"
|
|
2380
|
+
},
|
|
2381
|
+
"placement": {
|
|
2382
|
+
"description": "Popover.placement(kit-grammar.json#baseComponentProps.Popover)"
|
|
2383
|
+
},
|
|
2384
|
+
"variant": {
|
|
2385
|
+
"description": "Popover.variant(kit-grammar.json#baseComponentProps.Popover)"
|
|
2386
|
+
},
|
|
2387
|
+
"open": {
|
|
2388
|
+
"description": "Popover.open(kit-grammar.json#baseComponentProps.Popover)"
|
|
2389
|
+
},
|
|
2390
|
+
"confirm": {
|
|
2391
|
+
"description": "Popover.confirm(kit-grammar.json#baseComponentProps.Popover)"
|
|
2392
|
+
},
|
|
2393
|
+
"confirm_text": {
|
|
2394
|
+
"description": "Popover.confirm_text(kit-grammar.json#baseComponentProps.Popover)"
|
|
2395
|
+
},
|
|
2396
|
+
"cancel_text": {
|
|
2397
|
+
"description": "Popover.cancel_text(kit-grammar.json#baseComponentProps.Popover)"
|
|
2398
|
+
},
|
|
2399
|
+
"confirm_variant": {
|
|
2400
|
+
"description": "Popover.confirm_variant(kit-grammar.json#baseComponentProps.Popover)"
|
|
2401
|
+
},
|
|
2402
|
+
"disabled": {
|
|
2403
|
+
"description": "Popover.disabled(kit-grammar.json#baseComponentProps.Popover)"
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"if": {
|
|
2412
|
+
"properties": {
|
|
2413
|
+
"component": {
|
|
2414
|
+
"const": "PriceText"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
"required": [
|
|
2418
|
+
"component"
|
|
2419
|
+
]
|
|
2420
|
+
},
|
|
2421
|
+
"then": {
|
|
2422
|
+
"properties": {
|
|
2423
|
+
"props": {
|
|
2424
|
+
"type": "object",
|
|
2425
|
+
"description": "PriceText 的 props(kit-grammar.json#baseComponentProps.PriceText;未列出的键以组件契约为准)",
|
|
2426
|
+
"properties": {
|
|
2427
|
+
"value": {
|
|
2428
|
+
"description": "PriceText.value(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2429
|
+
},
|
|
2430
|
+
"original": {
|
|
2431
|
+
"description": "PriceText.original(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2432
|
+
},
|
|
2433
|
+
"currency": {
|
|
2434
|
+
"description": "PriceText.currency(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2435
|
+
},
|
|
2436
|
+
"digits": {
|
|
2437
|
+
"description": "PriceText.digits(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2438
|
+
},
|
|
2439
|
+
"locale": {
|
|
2440
|
+
"description": "PriceText.locale(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2441
|
+
},
|
|
2442
|
+
"negative": {
|
|
2443
|
+
"description": "PriceText.negative(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2444
|
+
},
|
|
2445
|
+
"placeholder": {
|
|
2446
|
+
"description": "PriceText.placeholder(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2447
|
+
},
|
|
2448
|
+
"muted": {
|
|
2449
|
+
"description": "PriceText.muted(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2450
|
+
},
|
|
2451
|
+
"size": {
|
|
2452
|
+
"description": "PriceText.size(kit-grammar.json#baseComponentProps.PriceText)"
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
"if": {
|
|
2461
|
+
"properties": {
|
|
2462
|
+
"component": {
|
|
2463
|
+
"const": "QrCode"
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2466
|
+
"required": [
|
|
2467
|
+
"component"
|
|
2468
|
+
]
|
|
2469
|
+
},
|
|
2470
|
+
"then": {
|
|
2471
|
+
"properties": {
|
|
2472
|
+
"props": {
|
|
2473
|
+
"type": "object",
|
|
2474
|
+
"description": "QrCode 的 props(kit-grammar.json#baseComponentProps.QrCode;未列出的键以组件契约为准)",
|
|
2475
|
+
"properties": {
|
|
2476
|
+
"value": {
|
|
2477
|
+
"description": "QrCode.value(kit-grammar.json#baseComponentProps.QrCode)"
|
|
2478
|
+
},
|
|
2479
|
+
"ecc": {
|
|
2480
|
+
"description": "QrCode.ecc(kit-grammar.json#baseComponentProps.QrCode)"
|
|
2481
|
+
},
|
|
2482
|
+
"quiet": {
|
|
2483
|
+
"description": "QrCode.quiet(kit-grammar.json#baseComponentProps.QrCode)"
|
|
2484
|
+
},
|
|
2485
|
+
"label": {
|
|
2486
|
+
"description": "QrCode.label(kit-grammar.json#baseComponentProps.QrCode)"
|
|
2487
|
+
},
|
|
2488
|
+
"size": {
|
|
2489
|
+
"description": "QrCode.size(kit-grammar.json#baseComponentProps.QrCode)"
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"if": {
|
|
2498
|
+
"properties": {
|
|
2499
|
+
"component": {
|
|
2500
|
+
"const": "CommandPalette"
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2503
|
+
"required": [
|
|
2504
|
+
"component"
|
|
2505
|
+
]
|
|
2506
|
+
},
|
|
2507
|
+
"then": {
|
|
2508
|
+
"properties": {
|
|
2509
|
+
"props": {
|
|
2510
|
+
"type": "object",
|
|
2511
|
+
"description": "CommandPalette 的 props(kit-grammar.json#baseComponentProps.CommandPalette;未列出的键以组件契约为准)",
|
|
2512
|
+
"properties": {
|
|
2513
|
+
"items": {
|
|
2514
|
+
"description": "CommandPalette.items(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2515
|
+
},
|
|
2516
|
+
"open": {
|
|
2517
|
+
"description": "CommandPalette.open(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2518
|
+
},
|
|
2519
|
+
"hotkey": {
|
|
2520
|
+
"description": "CommandPalette.hotkey(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2521
|
+
},
|
|
2522
|
+
"trigger_label": {
|
|
2523
|
+
"description": "CommandPalette.trigger_label(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2524
|
+
},
|
|
2525
|
+
"placeholder": {
|
|
2526
|
+
"description": "CommandPalette.placeholder(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2527
|
+
},
|
|
2528
|
+
"label": {
|
|
2529
|
+
"description": "CommandPalette.label(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2530
|
+
},
|
|
2531
|
+
"empty_text": {
|
|
2532
|
+
"description": "CommandPalette.empty_text(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2533
|
+
},
|
|
2534
|
+
"disabled": {
|
|
2535
|
+
"description": "CommandPalette.disabled(kit-grammar.json#baseComponentProps.CommandPalette)"
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
]
|
|
2543
|
+
}
|
|
2544
|
+
]
|
|
2545
|
+
},
|
|
2546
|
+
"action": {
|
|
2547
|
+
"type": "object",
|
|
2548
|
+
"additionalProperties": false,
|
|
2549
|
+
"properties": {
|
|
2550
|
+
"id": {
|
|
2551
|
+
"description": "kit-grammar.json#actionKeys.id",
|
|
2552
|
+
"type": "string"
|
|
2553
|
+
},
|
|
2554
|
+
"name": {
|
|
2555
|
+
"description": "kit-grammar.json#actionKeys.name",
|
|
2556
|
+
"type": "string"
|
|
2557
|
+
},
|
|
2558
|
+
"on": {
|
|
2559
|
+
"description": "kit-grammar.json#actionKeys.on",
|
|
2560
|
+
"enum": [
|
|
2561
|
+
"row",
|
|
2562
|
+
"toolbar",
|
|
2563
|
+
"field"
|
|
2564
|
+
]
|
|
2565
|
+
},
|
|
2566
|
+
"submit": {
|
|
2567
|
+
"description": "kit-grammar.json#actionKeys.submit"
|
|
2568
|
+
},
|
|
2569
|
+
"builtin": {
|
|
2570
|
+
"description": "kit 层解释的内置动作;reload 经协调组件 kit_reload 重取(K-2)。after: reload 让具名动作成功后经协调组件重取(K-5,行操作恒自动刷新,主要给工具栏)"
|
|
2571
|
+
},
|
|
2572
|
+
"targetOverlay": {
|
|
2573
|
+
"description": "kit-grammar.json#actionKeys.targetOverlay"
|
|
2574
|
+
},
|
|
2575
|
+
"confirm": {
|
|
2576
|
+
"description": "kit-grammar.json#actionKeys.confirm"
|
|
2577
|
+
},
|
|
2578
|
+
"tone": {
|
|
2579
|
+
"description": "kit-grammar.json#actionKeys.tone",
|
|
2580
|
+
"anyOf": [
|
|
2581
|
+
{
|
|
2582
|
+
"enum": [
|
|
2583
|
+
"primary",
|
|
2584
|
+
"neutral",
|
|
2585
|
+
"info",
|
|
2586
|
+
"success",
|
|
2587
|
+
"warning",
|
|
2588
|
+
"danger"
|
|
2589
|
+
]
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"type": "string"
|
|
2593
|
+
}
|
|
2594
|
+
]
|
|
2595
|
+
},
|
|
2596
|
+
"permission": {
|
|
2597
|
+
"description": "kit-grammar.json#actionKeys.permission",
|
|
2598
|
+
"type": "string"
|
|
2599
|
+
},
|
|
2600
|
+
"after": {
|
|
2601
|
+
"description": "kit 层解释的内置动作;reload 经协调组件 kit_reload 重取(K-2)。after: reload 让具名动作成功后经协调组件重取(K-5,行操作恒自动刷新,主要给工具栏)"
|
|
2602
|
+
},
|
|
2603
|
+
"then": {
|
|
2604
|
+
"description": "M 波 G3:表单与字段联动、动作后续链、远程选项、接口适配、behavior 透传、表单布局与筛选折叠。能编成 core 现有声明的编成 core(rules[].when / transform / write.validate_on / 事件 steps / NAV_STATIC / NOTIFY / SCOPE window-reload / 顶层 subscribe),core 没有的在 KitObjectForm 内用同一份闭集谓词求值,不在 core 加 kit 包络"
|
|
2605
|
+
},
|
|
2606
|
+
"when": {
|
|
2607
|
+
"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: 字段 })"
|
|
2608
|
+
},
|
|
2609
|
+
"more": {
|
|
2610
|
+
"description": "kit-grammar.json#actionKeys.more"
|
|
2611
|
+
},
|
|
2612
|
+
"request": {
|
|
2613
|
+
"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.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存…",
|
|
2614
|
+
"type": "object",
|
|
2615
|
+
"additionalProperties": false,
|
|
2616
|
+
"required": [
|
|
2617
|
+
"api"
|
|
2618
|
+
],
|
|
2619
|
+
"properties": {
|
|
2620
|
+
"api": {
|
|
2621
|
+
"type": "string"
|
|
2622
|
+
},
|
|
2623
|
+
"method": {
|
|
2624
|
+
"enum": [
|
|
2625
|
+
"POST",
|
|
2626
|
+
"PUT",
|
|
2627
|
+
"PATCH"
|
|
2628
|
+
]
|
|
2629
|
+
},
|
|
2630
|
+
"body": {
|
|
2631
|
+
"type": "object"
|
|
2632
|
+
},
|
|
2633
|
+
"into": {
|
|
2634
|
+
"anyOf": [
|
|
2635
|
+
{
|
|
2636
|
+
"type": "string",
|
|
2637
|
+
"pattern": "^[a-z][a-zA-Z0-9_]*$"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"type": "object",
|
|
2641
|
+
"additionalProperties": false,
|
|
2642
|
+
"required": [
|
|
2643
|
+
"name",
|
|
2644
|
+
"key"
|
|
2645
|
+
],
|
|
2646
|
+
"properties": {
|
|
2647
|
+
"name": {
|
|
2648
|
+
"type": "string",
|
|
2649
|
+
"pattern": "^[a-z][a-zA-Z0-9_]*$"
|
|
2650
|
+
},
|
|
2651
|
+
"key": {
|
|
2652
|
+
"type": "string",
|
|
2653
|
+
"pattern": "^\\$row\\.[A-Za-z_][A-Za-z0-9_]*$"
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
]
|
|
2658
|
+
},
|
|
2659
|
+
"ok": {
|
|
2660
|
+
"type": "object",
|
|
2661
|
+
"additionalProperties": false,
|
|
2662
|
+
"properties": {
|
|
2663
|
+
"path": {},
|
|
2664
|
+
"equals": {},
|
|
2665
|
+
"message": {}
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
"notify": {
|
|
2669
|
+
"type": "string"
|
|
2670
|
+
},
|
|
2671
|
+
"then": {
|
|
2672
|
+
"anyOf": [
|
|
2673
|
+
{
|
|
2674
|
+
"enum": [
|
|
2675
|
+
"reload",
|
|
2676
|
+
"none"
|
|
2677
|
+
]
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
"type": "array",
|
|
2681
|
+
"items": {
|
|
2682
|
+
"type": "object",
|
|
2683
|
+
"additionalProperties": false,
|
|
2684
|
+
"required": [
|
|
2685
|
+
"reload"
|
|
2686
|
+
],
|
|
2687
|
+
"properties": {
|
|
2688
|
+
"reload": {
|
|
2689
|
+
"anyOf": [
|
|
2690
|
+
{
|
|
2691
|
+
"const": true
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
"type": "string"
|
|
2695
|
+
}
|
|
2696
|
+
]
|
|
2697
|
+
},
|
|
2698
|
+
"on": {
|
|
2699
|
+
"enum": [
|
|
2700
|
+
"success",
|
|
2701
|
+
"failed",
|
|
2702
|
+
"always"
|
|
2703
|
+
]
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
]
|
|
2709
|
+
},
|
|
2710
|
+
"read": {
|
|
2711
|
+
"type": "boolean"
|
|
2712
|
+
},
|
|
2713
|
+
"on": {
|
|
2714
|
+
"enum": [
|
|
2715
|
+
"mount"
|
|
2716
|
+
]
|
|
2717
|
+
},
|
|
2718
|
+
"prompt": {
|
|
2719
|
+
"type": "object"
|
|
2720
|
+
},
|
|
2721
|
+
"timeoutMs": {
|
|
2722
|
+
"type": "integer"
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
},
|
|
2726
|
+
"download": {
|
|
2727
|
+
"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.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存…",
|
|
2728
|
+
"type": "object",
|
|
2729
|
+
"additionalProperties": false,
|
|
2730
|
+
"required": [
|
|
2731
|
+
"api"
|
|
2732
|
+
],
|
|
2733
|
+
"properties": {
|
|
2734
|
+
"api": {
|
|
2735
|
+
"type": "string"
|
|
2736
|
+
},
|
|
2737
|
+
"method": {
|
|
2738
|
+
"enum": [
|
|
2739
|
+
"GET",
|
|
2740
|
+
"POST"
|
|
2741
|
+
]
|
|
2742
|
+
},
|
|
2743
|
+
"body": {
|
|
2744
|
+
"type": "object"
|
|
2745
|
+
},
|
|
2746
|
+
"query": {
|
|
2747
|
+
"type": "object"
|
|
2748
|
+
},
|
|
2749
|
+
"filename": {
|
|
2750
|
+
"type": "string"
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
"disabledWhen": {
|
|
2755
|
+
"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: 字段 })"
|
|
2756
|
+
},
|
|
2757
|
+
"hiddenWhen": {
|
|
2758
|
+
"description": "kit-grammar.json#actionKeys.hiddenWhen"
|
|
2759
|
+
},
|
|
2760
|
+
"prefill": {
|
|
2761
|
+
"description": "kit-grammar.json#actionKeys.prefill"
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|