base-screen 0.3.0 → 0.4.0
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/dist/_internal/contracts/document/schema.d.ts +7 -0
- package/dist/_internal/contracts/document/schema.js +1 -1
- package/dist/_internal/contracts/document/validate-value-ref.js +6 -1
- package/dist/_internal/contracts/screen-document.schema.json +15 -3
- package/dist/_internal/contracts/types/diagnostics.d.ts +1 -1
- package/dist/_internal/contracts/types/document.d.ts +3 -1
- package/dist/_internal/core/blueprint/runtime-simulate.d.ts +57 -0
- package/dist/_internal/core/blueprint/runtime-simulate.js +177 -0
- package/dist/_internal/core/blueprint/runtime.d.ts +1 -0
- package/dist/_internal/core/blueprint/runtime.js +1 -0
- package/dist/_internal/core/commands/apply-collection-commands.d.ts +32 -0
- package/dist/_internal/core/commands/apply-collection-commands.js +174 -0
- package/dist/_internal/core/commands/apply.js +13 -0
- package/dist/_internal/core/commands/parse-command.js +12 -0
- package/dist/_internal/core/commands/types.d.ts +29 -1
- package/dist/_internal/core/data/data-candidates.d.ts +38 -0
- package/dist/_internal/core/data/data-candidates.js +186 -0
- package/dist/_internal/core/data/dataset-profile.d.ts +71 -0
- package/dist/_internal/core/data/dataset-profile.js +170 -0
- package/dist/_internal/core/data/sample-values.d.ts +25 -0
- package/dist/_internal/core/data/sample-values.js +45 -0
- package/dist/_internal/core/diff/screen-diff.js +6 -0
- package/dist/_internal/core/index.d.ts +7 -1
- package/dist/_internal/core/index.js +7 -1
- package/dist/_internal/core/state/state-preset.d.ts +32 -0
- package/dist/_internal/core/state/state-preset.js +37 -0
- package/dist/_internal/core/validation/layout-audit.d.ts +17 -0
- package/dist/_internal/core/validation/layout-audit.js +228 -0
- package/dist/_internal/core/validation/legibility.d.ts +9 -0
- package/dist/_internal/core/validation/legibility.js +33 -0
- package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-draft-controller.d.ts +6 -1
- package/dist/_internal/engine/browser/controllers/designer-change-controller.d.ts +27 -0
- package/dist/_internal/engine/browser/dom/change/designer-change-dom.d.ts +21 -5
- package/dist/_internal/engine/browser/dom/dataset/designer-data-section-diff.d.ts +4 -6
- package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-types.d.ts +2 -0
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids-types.d.ts +3 -3
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids.d.ts +5 -3
- package/dist/_internal/engine/browser/viewport/designer-canvas-measurements.d.ts +2 -14
- package/dist/_internal/engine/browser/viewport/designer-guide-overlay-nodes.d.ts +2 -0
- package/dist/_internal/engine/browser/viewport/designer-snap-tuning.d.ts +14 -0
- package/dist/_internal/engine/common/operations/change/designer-change-events.d.ts +2 -0
- package/dist/_internal/engine/common/operations/change/designer-change-proposal.d.ts +35 -2
- package/dist/_internal/engine/common/operations/display/designer-target-display.d.ts +2 -2
- package/dist/_internal/engine/common/operations/style/designer-component-states.d.ts +7 -2
- package/dist/_internal/engine/common/ui-text/designer-ui-text.d.ts +42 -2
- package/dist/_internal/engine/{designer-blueprint-workbench-panel-CJ3iZo5v.js → designer-blueprint-workbench-panel-BWSglfAb.js} +210 -290
- package/dist/_internal/engine/{designer-dataset-controller-CrfOg2Ys.js → designer-dataset-controller-DdbY4ILC.js} +619 -561
- package/dist/_internal/engine/designer-element/api/designer-element-change.d.ts +24 -0
- package/dist/_internal/engine/designer-element/base-screen-designer-element.d.ts +12 -0
- package/dist/_internal/engine/designer-element/designer-element-public-api.d.ts +2 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-rendering.d.ts +1 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-runtime.d.ts +4 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-sample-data.d.ts +23 -0
- package/dist/_internal/engine/{designer-field-primitives-KBZuWN_D.js → designer-field-primitives-Crn464Qg.js} +44 -3
- package/dist/_internal/engine/{designer-left-panel-groups-dom-N2OHOWjl.js → designer-left-panel-groups-dom-DFdLWxxY.js} +2 -2
- package/dist/_internal/engine/{host-resource-selection-xo2mLCD4.js → host-resource-selection-CWrPLVOc.js} +2 -2
- package/dist/_internal/engine/index.js +4742 -4360
- package/dist/_internal/host-kit/index.d.ts +1 -0
- package/dist/_internal/host-kit/index.js +1 -0
- package/dist/_internal/host-kit/intent/index.d.ts +16 -0
- package/dist/_internal/host-kit/intent/index.js +13 -0
- package/dist/_internal/host-kit/intent/intent-behavior.d.ts +59 -0
- package/dist/_internal/host-kit/intent/intent-behavior.js +812 -0
- package/dist/_internal/host-kit/intent/intent-block.d.ts +59 -0
- package/dist/_internal/host-kit/intent/intent-block.js +359 -0
- package/dist/_internal/host-kit/intent/intent-catalog.d.ts +105 -0
- package/dist/_internal/host-kit/intent/intent-catalog.js +60 -0
- package/dist/_internal/host-kit/intent/intent-compile-types.d.ts +222 -0
- package/dist/_internal/host-kit/intent/intent-compile-types.js +10 -0
- package/dist/_internal/host-kit/intent/intent-compile.d.ts +35 -0
- package/dist/_internal/host-kit/intent/intent-compile.js +465 -0
- package/dist/_internal/host-kit/intent/intent-data-check.d.ts +50 -0
- package/dist/_internal/host-kit/intent/intent-data-check.js +163 -0
- package/dist/_internal/host-kit/intent/intent-data-context.d.ts +53 -0
- package/dist/_internal/host-kit/intent/intent-data-context.js +200 -0
- package/dist/_internal/host-kit/intent/intent-dataset.d.ts +52 -0
- package/dist/_internal/host-kit/intent/intent-dataset.js +125 -0
- package/dist/_internal/host-kit/intent/intent-format.d.ts +33 -0
- package/dist/_internal/host-kit/intent/intent-format.js +94 -0
- package/dist/_internal/host-kit/intent/intent-kpi-bind.d.ts +29 -0
- package/dist/_internal/host-kit/intent/intent-kpi-bind.js +59 -0
- package/dist/_internal/host-kit/intent/intent-layout.d.ts +102 -0
- package/dist/_internal/host-kit/intent/intent-layout.js +264 -0
- package/dist/_internal/host-kit/intent/intent-parse.d.ts +39 -0
- package/dist/_internal/host-kit/intent/intent-parse.js +930 -0
- package/dist/_internal/host-kit/intent/intent-prepare.d.ts +52 -0
- package/dist/_internal/host-kit/intent/intent-prepare.js +104 -0
- package/dist/_internal/host-kit/intent/intent-session.d.ts +202 -0
- package/dist/_internal/host-kit/intent/intent-session.js +1001 -0
- package/dist/_internal/host-kit/intent/intent-stream.d.ts +28 -0
- package/dist/_internal/host-kit/intent/intent-stream.js +183 -0
- package/dist/_internal/host-kit/intent/intent-style.d.ts +37 -0
- package/dist/_internal/host-kit/intent/intent-style.js +77 -0
- package/dist/_internal/host-kit/intent/intent-types.d.ts +234 -0
- package/dist/_internal/host-kit/intent/intent-types.js +10 -0
- package/dist/_internal/material/chart.js +34 -12
- package/dist/_internal/material/table.js +52 -21
- package/dist/_internal/plugin-sdk/index.d.ts +6 -0
- package/dist/_internal/plugin-sdk/index.js +6 -0
- package/dist/_internal/plugin-sdk/material-isolated-csp.d.ts +38 -0
- package/dist/_internal/plugin-sdk/material-isolated-csp.js +67 -0
- package/dist/_internal/plugin-sdk/material-isolated-runtime.d.ts +22 -0
- package/dist/_internal/plugin-sdk/material-isolated-runtime.js +262 -0
- package/dist/_internal/plugin-sdk/material-isolated.d.ts +94 -0
- package/dist/_internal/plugin-sdk/material-isolated.js +1024 -0
- package/dist/_internal/plugin-sdk/material-rendered-element.d.ts +10 -2
- package/dist/_internal/plugin-sdk/material-rendered-element.js +71 -7
- package/dist/_internal/plugin-sdk/material-spec-audit.d.ts +2 -0
- package/dist/_internal/plugin-sdk/material-spec-audit.js +26 -6
- package/dist/_internal/plugin-sdk/material-spec.d.ts +20 -0
- package/dist/_internal/plugin-sdk/material-spec.js +78 -3
- package/dist/_internal/plugin-sdk/material-template-audit.d.ts +12 -0
- package/dist/_internal/plugin-sdk/material-template-audit.js +302 -0
- package/dist/_internal/plugin-sdk/material-template-expression.d.ts +98 -0
- package/dist/_internal/plugin-sdk/material-template-expression.js +549 -0
- package/dist/_internal/plugin-sdk/material-template-render.d.ts +32 -0
- package/dist/_internal/plugin-sdk/material-template-render.js +579 -0
- package/dist/_internal/plugin-sdk/material-template.d.ts +185 -0
- package/dist/_internal/plugin-sdk/material-template.js +879 -0
- package/dist/auto-register.js +10 -10
- package/dist/contracts.js +5 -5
- package/dist/contrast-DRPezUIl.js +131 -0
- package/dist/contrast-DRPezUIl.js.map +1 -0
- package/dist/core.js +156 -136
- package/dist/core.js.map +1 -1
- package/dist/dataset-profile-Dk6xdtsM.js +261 -0
- package/dist/dataset-profile-Dk6xdtsM.js.map +1 -0
- package/dist/{designer-3Tb0EIDV.js → designer-CFOvOmLn.js} +2 -2
- package/dist/{designer-3Tb0EIDV.js.map → designer-CFOvOmLn.js.map} +1 -1
- package/dist/designer-auto-register.js +5 -5
- package/dist/{designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js → designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js} +452 -531
- package/dist/designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js.map +1 -0
- package/dist/{designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js → designer-dataset-controller-DdbY4ILC-CMdGdGbr.js} +862 -804
- package/dist/designer-dataset-controller-DdbY4ILC-CMdGdGbr.js.map +1 -0
- package/dist/{designer-field-primitives-KBZuWN_D-B3h4jpYe.js → designer-field-primitives-Crn464Qg-Bi7q8s5J.js} +45 -4
- package/dist/designer-field-primitives-Crn464Qg-Bi7q8s5J.js.map +1 -0
- package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js → designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js} +4 -4
- package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js.map → designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js.map} +1 -1
- package/dist/designer.js +5 -5
- package/dist/{dist-6GRboBs-.js → dist-B2bW2Tru.js} +4 -4
- package/dist/{dist-6GRboBs-.js.map → dist-B2bW2Tru.js.map} +1 -1
- package/dist/{dist-BjLjFUy1.js → dist-CHK9BTXX.js} +3833 -3453
- package/dist/dist-CHK9BTXX.js.map +1 -0
- package/dist/engine.js +5 -5
- package/dist/{fragment-Y6YnW6wy.js → fragment-B-oP0Fru.js} +3 -3
- package/dist/{fragment-Y6YnW6wy.js.map → fragment-B-oP0Fru.js.map} +1 -1
- package/dist/host-kit.js +3963 -187
- package/dist/host-kit.js.map +1 -1
- package/dist/{host-resource-selection-xo2mLCD4-BR5XCcim.js → host-resource-selection-CWrPLVOc-DPDq3jau.js} +5 -5
- package/dist/{host-resource-selection-xo2mLCD4-BR5XCcim.js.map → host-resource-selection-CWrPLVOc-DPDq3jau.js.map} +1 -1
- package/dist/index.js +10 -10
- package/dist/legibility-CS28ivEz.js +12 -0
- package/dist/legibility-CS28ivEz.js.map +1 -0
- package/dist/{level-scale-BzUjE31V.js → level-scale-CwHqFEVd.js} +2 -2
- package/dist/{level-scale-BzUjE31V.js.map → level-scale-CwHqFEVd.js.map} +1 -1
- package/dist/{manager-Ch0RTu_i.js → manager-CeB4Jnr9.js} +3 -3
- package/dist/{manager-Ch0RTu_i.js.map → manager-CeB4Jnr9.js.map} +1 -1
- package/dist/{material-UbSfiuZq.js → material-DeVkzSoT.js} +2 -2
- package/dist/{material-UbSfiuZq.js.map → material-DeVkzSoT.js.map} +1 -1
- package/dist/material-auto-register.js +1 -1
- package/dist/material.js +2 -2
- package/dist/{migrate-document-D3HhCVlZ.js → migrate-document-BM888PtC.js} +2 -2
- package/dist/{migrate-document-D3HhCVlZ.js.map → migrate-document-BM888PtC.js.map} +1 -1
- package/dist/{parse-AOTE9WnD.js → parse-Ji7kE9ZT.js} +9 -4
- package/dist/parse-Ji7kE9ZT.js.map +1 -0
- package/dist/{parse-B1OD1teS.js → parse-aZat9tAS.js} +3 -3
- package/dist/{parse-B1OD1teS.js.map → parse-aZat9tAS.js.map} +1 -1
- package/dist/{parse-parts-BNrpdG5o.js → parse-parts-qzl4suzk.js} +2 -2
- package/dist/{parse-parts-BNrpdG5o.js.map → parse-parts-qzl4suzk.js.map} +1 -1
- package/dist/{plugin-DHgh9uHh.js → plugin-CstHQ5ws.js} +4 -4
- package/dist/{plugin-DHgh9uHh.js.map → plugin-CstHQ5ws.js.map} +1 -1
- package/dist/plugin-core.js +2 -2
- package/dist/plugin-manager.js +1 -1
- package/dist/plugin-package-DWifuHi1.js +4206 -0
- package/dist/plugin-package-DWifuHi1.js.map +1 -0
- package/dist/{plugin-registration-rsmb4GvS.js → plugin-registration-DTwBvnHX.js} +2 -2
- package/dist/{plugin-registration-rsmb4GvS.js.map → plugin-registration-DTwBvnHX.js.map} +1 -1
- package/dist/plugin-sdk.js +6 -6
- package/dist/{plugins-DGRHgREK.js → plugins-QDL0yIql.js} +2 -2
- package/dist/{plugins-DGRHgREK.js.map → plugins-QDL0yIql.js.map} +1 -1
- package/dist/plugins.js +8 -8
- package/dist/renderer.js +1 -1
- package/dist/{runtime-dispatch-BfnRDtMe.js → runtime-dispatch-C0gyIrTv.js} +2 -2
- package/dist/{runtime-dispatch-BfnRDtMe.js.map → runtime-dispatch-C0gyIrTv.js.map} +1 -1
- package/dist/runtime-simulate-aSYO9yDX.js +147 -0
- package/dist/runtime-simulate-aSYO9yDX.js.map +1 -0
- package/dist/{src-Bm7u11mN-_0u6cMEw.js → src-Bm7u11mN-Bi1hDVkh.js} +39 -39
- package/dist/{src-Bm7u11mN-_0u6cMEw.js.map → src-Bm7u11mN-Bi1hDVkh.js.map} +1 -1
- package/dist/state-preset-DtpygJOH.js +22 -0
- package/dist/state-preset-DtpygJOH.js.map +1 -0
- package/dist/{text-BNksUr5J.js → text-BSTz0pFQ.js} +87 -34
- package/dist/text-BSTz0pFQ.js.map +1 -0
- package/dist/{value-ref-BG_MV9C-.js → value-ref-XkLuckGV.js} +2 -2
- package/dist/{value-ref-BG_MV9C-.js.map → value-ref-XkLuckGV.js.map} +1 -1
- package/dist/{viewer-CrJupI8I-D9dVcNw4.js → viewer-CrJupI8I-BJiz1cvW.js} +4 -4
- package/dist/{viewer-CrJupI8I-D9dVcNw4.js.map → viewer-CrJupI8I-BJiz1cvW.js.map} +1 -1
- package/dist/viewer-auto-register.js +2 -2
- package/dist/viewer.js +2 -2
- package/dist/{viewport-CiCKeAQH.js → viewport-BNIRWjiT.js} +354 -155
- package/dist/viewport-BNIRWjiT.js.map +1 -0
- package/package.json +12 -12
- package/dist/designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js.map +0 -1
- package/dist/designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js.map +0 -1
- package/dist/designer-field-primitives-KBZuWN_D-B3h4jpYe.js.map +0 -1
- package/dist/dist-BjLjFUy1.js.map +0 -1
- package/dist/parse-AOTE9WnD.js.map +0 -1
- package/dist/plugin-package-Dr5ro6h6.js +0 -1221
- package/dist/plugin-package-Dr5ro6h6.js.map +0 -1
- package/dist/text-BNksUr5J.js.map +0 -1
- package/dist/viewport-CiCKeAQH.js.map +0 -1
|
@@ -8,8 +8,32 @@ export type { BaseScreenDesignerChangeProposalSummary };
|
|
|
8
8
|
*
|
|
9
9
|
* 提案在这里**不写入文档**;采纳是独立的一步(UI 或宿主调用),写入时作为一次
|
|
10
10
|
* 普通事务提交。宿主负责产出提案内容,引擎不调用模型。
|
|
11
|
+
*
|
|
12
|
+
* 不变式(ADR-0111 §2.4):返回 `ok: false` 时至少带一条诊断——命令非法透传事务诊断,
|
|
13
|
+
* 其余拒绝原因用 `CHANGE_*`,宿主与模型据此修复,不必猜。
|
|
11
14
|
*/
|
|
12
15
|
export declare function submitChangeProposal(element: DesignerElementHost, input: DesignerChangeProposalInput): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
16
|
+
/**
|
|
17
|
+
* 流式落稿第一步(ADR-0112 §2.5):提交骨架命令并整批试算,成功后草案进入「生成中」,不可采纳。
|
|
18
|
+
*
|
|
19
|
+
* 骨架要一次给全几何:之后的 `extendChangeProposal` 只能填内容,不能再动已出现组件的位置与尺寸,
|
|
20
|
+
* 这样从第一帧起画面就不会抖。
|
|
21
|
+
*/
|
|
22
|
+
export declare function beginChangeProposal(element: DesignerElementHost, input: DesignerChangeProposalInput): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
23
|
+
/**
|
|
24
|
+
* 流式落稿:追加命令后整批重算同一份草案。失败时保留上一版草案并返回诊断;
|
|
25
|
+
* 追加的命令若改变了已出现组件的位置或尺寸,按协议错误拒绝(`CHANGE_STREAM_GEOMETRY_CHANGED`)。
|
|
26
|
+
*/
|
|
27
|
+
export declare function extendChangeProposal(element: DesignerElementHost, id: string, commands: DesignerChangeProposalInput['commands']): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
28
|
+
/**
|
|
29
|
+
* 结束生成:草案变为可采纳,单元照常拆分。
|
|
30
|
+
*
|
|
31
|
+
* `details.rationale` 用来在收尾时换上最终理由——降级告警这类信息只有整份结果到齐才知道,
|
|
32
|
+
* 骨架挂出时写的只能是「生成中」。只换理由、不改命令,几何与内容都不动。
|
|
33
|
+
*/
|
|
34
|
+
export declare function finishChangeProposal(element: DesignerElementHost, id: string, details?: {
|
|
35
|
+
readonly rationale?: string;
|
|
36
|
+
}): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
13
37
|
/**
|
|
14
38
|
* 读当前待决提案的摘要:标题、作用域、理由、单元与归属。
|
|
15
39
|
*
|
|
@@ -120,6 +120,18 @@ export declare class BaseScreenDesignerElement extends ElementBase {
|
|
|
120
120
|
* 宿主负责产出提案(含命令与理由),引擎不调用模型。
|
|
121
121
|
*/
|
|
122
122
|
submitChangeProposal(input: DesignerChangeProposalInput): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
123
|
+
/**
|
|
124
|
+
* 流式落稿(ADR-0112 §2.5):先提交骨架命令(全部几何),草案以「生成中」挂出、不可采纳;
|
|
125
|
+
* 之后用 `extendChangeProposal` 逐块追加内容,用 `finishChangeProposal` 结束。
|
|
126
|
+
* 中途取消用 `discardPendingChange`。传输由宿主负责,引擎不感知。
|
|
127
|
+
*/
|
|
128
|
+
beginChangeProposal(input: DesignerChangeProposalInput): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
129
|
+
/** 给生成中的草案追加命令;不得改变已出现组件的几何。失败时保留上一版草案。 */
|
|
130
|
+
extendChangeProposal(id: string, commands: DesignerChangeProposalInput['commands']): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
131
|
+
/** 结束生成:草案变为可采纳;可同时换上最终理由(如整份结果到齐后才知道的降级告警)。 */
|
|
132
|
+
finishChangeProposal(id: string, details?: {
|
|
133
|
+
readonly rationale?: string;
|
|
134
|
+
}): ScreenParseResult<BaseScreenDesignerChangeProposalSummary>;
|
|
123
135
|
/** 读当前待决提案的摘要;没有待决提案时为 undefined。 */
|
|
124
136
|
readPendingChange(): BaseScreenDesignerChangeProposalSummary | undefined;
|
|
125
137
|
/** 采纳一个可独立成立的单元;其余单元会按当前文档重新编译。 */
|
|
@@ -4,7 +4,7 @@ export { BASE_SCREEN_BLUEPRINT_CANVAS_COMMAND_EVENT, BASE_SCREEN_BLUEPRINT_CANVA
|
|
|
4
4
|
export { BASE_SCREEN_CANVAS_PRESENTATION_CHANGE_EVENT, type BaseScreenCanvasPresentationChangeEventDetail, type BaseScreenCanvasScaleMode, } from '../common/operations/canvas/canvas-presentation.js';
|
|
5
5
|
export type { BaseScreenMaterialCatalogRefreshOptions, BaseScreenMaterialCatalogRefreshResult, } from '../common/operations/catalog/designer-catalog-refresh.js';
|
|
6
6
|
export { BASE_SCREEN_CHANGE_STATE_EVENT, type BaseScreenDesignerChangeProposalSummary, type BaseScreenDesignerChangeStateDetail, type BaseScreenDesignerChangeUnitSummary, type DesignerChangeUnitKind, } from '../common/operations/change/designer-change-events.js';
|
|
7
|
-
export type { DesignerChangeProposalInput, DesignerChangeProposalOrigin, DesignerChangeUnitPresentation, } from '../common/operations/change/designer-change-proposal.js';
|
|
7
|
+
export type { DesignerChangeProposalGroup, DesignerChangeProposalInput, DesignerChangeProposalOrigin, DesignerChangeUnitPresentation, } from '../common/operations/change/designer-change-proposal.js';
|
|
8
8
|
export type { DesignerReviewMeta } from '../common/operations/change/designer-review.js';
|
|
9
9
|
export { type DesignerDisplayAngularSize, type DesignerDisplayMetrics, type DesignerDisplayOverlayKind, type DesignerDisplayPhysicalSize, type DesignerDisplayReadability, } from '../common/operations/display/designer-target-display.js';
|
|
10
10
|
export { BASE_SCREEN_HOST_RESOURCE_DRAG_MIME, type BaseScreenHostResourceAuthoringIntent, type BaseScreenHostResourceDragDataTransfer, parseBaseScreenHostResourceAuthoringIntent, writeBaseScreenHostResourceDragData, } from '../common/operations/host-resource/host-resource-authoring.js';
|
|
@@ -16,6 +16,7 @@ export { parseBaseScreenMaterialLibraryFragments } from '../common/operations/ma
|
|
|
16
16
|
export { type BaseScreenMaterialLibraryGroup, type BaseScreenMaterialLibraryGrouping, parseBaseScreenMaterialLibraryGrouping, } from '../common/operations/material-library/material-library-grouping.js';
|
|
17
17
|
export { type BaseScreenMaterialLibraryItem, parseBaseScreenMaterialLibraryItems, } from '../common/operations/material-library/material-library-items.js';
|
|
18
18
|
export { BASE_SCREEN_MATERIAL_LIBRARY_ACTION_EVENT, type BaseScreenMaterialLibraryAction, type BaseScreenMaterialLibraryActionEventDetail, type BaseScreenMaterialLibraryState, type BaseScreenMaterialLibraryStatus, parseBaseScreenMaterialLibraryState, } from '../common/operations/material-library/material-library-state.js';
|
|
19
|
+
export { readDesignerStatePresetSource } from '../common/operations/style/designer-component-states.js';
|
|
19
20
|
export { BASE_SCREEN_DESIGNER_LEFT_PANEL_GROUP_CHANGE_EVENT, BASE_SCREEN_DESIGNER_LEFT_PANEL_GROUP_ICONS, BASE_SCREEN_DESIGNER_LEFT_PANEL_SLOT_PREFIX, type BaseScreenDesignerLeftPanelGroup, type BaseScreenDesignerLeftPanelGroupChangeEventDetail, type BaseScreenDesignerLeftPanelGroupIcon, baseScreenDesignerLeftPanelSlotName, parseBaseScreenDesignerLeftPanelGroups, } from '../common/operations/workbench/designer-left-panel-groups.js';
|
|
20
21
|
export { BASE_SCREEN_DESIGNER_BACK_REQUEST_EVENT, type BaseScreenDesignerBackRequestEventDetail, } from '../common/operations/workbench/designer-navigation.js';
|
|
21
22
|
//# sourceMappingURL=designer-element-public-api.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ScreenDocument, type ScreenParseResult } from '../../../contracts/index.js';
|
|
2
2
|
import { type BaseScreenCanvasChange, type BaseScreenMaterialEvent, type BaseScreenRenderer } from '../../../renderer/index.js';
|
|
3
3
|
import { type BaseScreenMaterialLibraryAction } from '../../common/operations/material-library/material-library-state.js';
|
|
4
4
|
import { type DesignerElementHost } from './designer-element-state.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cancelAuthoringEdit, commitComponentTextEdit, commitGuardFailure, focusedComponentType, getAuthoringEditorContext, invalidateAuthoringRequests, requestComponentTextEdit } from '../api/designer-element-authoring.js';
|
|
2
2
|
import { refreshCatalog } from '../api/designer-element-catalog.js';
|
|
3
|
-
import { adoptAllChanges, adoptChangeUnit, discardPendingChange, readPendingChange, rejectChangeUnit, submitChangeProposal } from '../api/designer-element-change.js';
|
|
3
|
+
import { adoptAllChanges, adoptChangeUnit, beginChangeProposal, discardPendingChange, extendChangeProposal, finishChangeProposal, readPendingChange, rejectChangeUnit, submitChangeProposal } from '../api/designer-element-change.js';
|
|
4
4
|
import { configure, readCatalog, readLeftPanelGroups, writeCatalog, writeLeftPanelGroups } from '../api/designer-element-configuration.js';
|
|
5
5
|
import { readDisplayMetrics, readTargetDisplayOverlay, readTargetDisplayProfile, setTargetDisplayOverlay, setTargetDisplayProfile } from '../api/designer-element-display.js';
|
|
6
6
|
import { executeCommand, executeTransaction, getDocument, getSelection, readHistory, readInstanceId, replaceDocument, revertToHistoryState, setCanvasBackground, setCanvasBackgroundImage } from '../api/designer-element-document.js';
|
|
@@ -96,6 +96,9 @@ export declare const designerElementRuntime: {
|
|
|
96
96
|
executeCommand: typeof executeCommand;
|
|
97
97
|
executeTransaction: typeof executeTransaction;
|
|
98
98
|
submitChangeProposal: typeof submitChangeProposal;
|
|
99
|
+
beginChangeProposal: typeof beginChangeProposal;
|
|
100
|
+
extendChangeProposal: typeof extendChangeProposal;
|
|
101
|
+
finishChangeProposal: typeof finishChangeProposal;
|
|
99
102
|
discardPendingChange: typeof discardPendingChange;
|
|
100
103
|
readPendingChange: typeof readPendingChange;
|
|
101
104
|
adoptChangeUnit: typeof adoptChangeUnit;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ScreenDocument } from '../../../contracts/index.js';
|
|
2
|
+
import { type DesignerElementHost } from './designer-element-state.js';
|
|
3
|
+
/** 带示例数据取值的组件 id(文档顺序)。数据源参数与变量上的示例值没有画布位置,只计数不定位。 */
|
|
4
|
+
export declare function sampleComponentIds(document: ScreenDocument): readonly string[];
|
|
5
|
+
/**
|
|
6
|
+
* 画布徽标:在内容层组件的左上角贴一个「示例数据」标签。
|
|
7
|
+
* 用刚渲染的那份文档:渲染时会话里的文档可能还是上一版。
|
|
8
|
+
*/
|
|
9
|
+
export declare function renderSampleMarks(element: DesignerElementHost, document: ScreenDocument | undefined): void;
|
|
10
|
+
/** 状态栏:总数、「下一处」与「保留为常量」(选中里有示例数据时才出现)。 */
|
|
11
|
+
export declare function renderSampleStatus(element: DesignerElementHost): void;
|
|
12
|
+
export declare function onSampleStatusClick(element: DesignerElementHost, target: Element): boolean;
|
|
13
|
+
/** 「保留为常量」:去掉选中组件取值上的示例标记,值不变;一次事务、进历史、可撤销。 */
|
|
14
|
+
export declare function keepSelectedSamplesAsConstants(element: DesignerElementHost): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 发布被示例数据拦截时的逐项列表(ADR-0112 §2.3):哪些组件还带着示例数据,点一项定位到画布。
|
|
17
|
+
*
|
|
18
|
+
* 数据源参数与变量上的示例值没有画布位置,只计数。弹层不提供「强制发布」——出路只有绑定数据集
|
|
19
|
+
* 或显式保留为常量,两者都在检查器数据段与状态栏里。
|
|
20
|
+
*/
|
|
21
|
+
export declare function openSampleBlockedDialog(element: DesignerElementHost): void;
|
|
22
|
+
export declare function closeSampleBlockedDialog(element: DesignerElementHost): void;
|
|
23
|
+
//# sourceMappingURL=designer-element-sample-data.d.ts.map
|
|
@@ -254,17 +254,41 @@ var n = {
|
|
|
254
254
|
removed: "删除此旧组件",
|
|
255
255
|
removedUnit: "删除旧组件",
|
|
256
256
|
wholeScreenReplacement: (e) => `整屏替换 · ${e} 个组件`,
|
|
257
|
+
wholeScreenHint: "整屏替换不能拆开采纳:请用底部「全部采纳」或「放弃」整体处理。",
|
|
258
|
+
wholeScreenGroup: {
|
|
259
|
+
added: (e) => `新增 ${e}`,
|
|
260
|
+
removed: (e) => `移除 ${e}`,
|
|
261
|
+
document: "画布与数据源"
|
|
262
|
+
},
|
|
263
|
+
wholeScreenEmpty: "无",
|
|
264
|
+
wholeScreenDocumentLabels: {
|
|
265
|
+
canvas: "画布",
|
|
266
|
+
dataSources: "数据源"
|
|
267
|
+
},
|
|
268
|
+
wholeScreenKind: "替换",
|
|
269
|
+
wholeScreenNames: (e) => e.length <= 6 ? e.join("、") : `${e.slice(0, 6).join("、")} 等\u00a0${e.length}\u00a0个`,
|
|
270
|
+
removalMark: "将移除",
|
|
271
|
+
viewingOldLabel: "旧版 · 当前文档",
|
|
272
|
+
streamingLabel: "草案 · 生成中",
|
|
273
|
+
streamingHint: "正在逐块生成,完成后才能采纳。",
|
|
274
|
+
cancelStreaming: "取消生成",
|
|
257
275
|
diffPath: {
|
|
276
|
+
type: "物料类型",
|
|
258
277
|
name: "名称",
|
|
278
|
+
parentId: "父组件",
|
|
259
279
|
positionX: "X",
|
|
260
280
|
positionY: "Y",
|
|
261
281
|
sizeWidth: "宽度",
|
|
262
282
|
sizeHeight: "高度",
|
|
263
283
|
rotation: "旋转",
|
|
264
284
|
zIndex: "层级",
|
|
285
|
+
status: "锁定与隐藏",
|
|
265
286
|
dataValue: "数据取值",
|
|
266
287
|
dataSource: "数据源",
|
|
288
|
+
dataBinding: "字段绑定",
|
|
267
289
|
states: "组件状态",
|
|
290
|
+
canvasId: "所属画板",
|
|
291
|
+
belowSubCanvas: "置于页面下方",
|
|
268
292
|
prop: (e) => `属性 · ${e}`,
|
|
269
293
|
style: (e) => `样式 · ${e}`,
|
|
270
294
|
propKeys: {
|
|
@@ -321,8 +345,8 @@ var n = {
|
|
|
321
345
|
document: "文档级"
|
|
322
346
|
},
|
|
323
347
|
remainingUnits: (e) => `剩余 ${e} 项`,
|
|
324
|
-
compare: "
|
|
325
|
-
exitCompare: "
|
|
348
|
+
compare: "查看旧版",
|
|
349
|
+
exitCompare: "返回草案",
|
|
326
350
|
close: "关闭",
|
|
327
351
|
draftAria: (e, t) => `草案未写入:${e},影响 ${t} 个组件`,
|
|
328
352
|
historyTitle: "历史",
|
|
@@ -567,6 +591,21 @@ var n = {
|
|
|
567
591
|
selectedSingle: "已选中 1 个组件",
|
|
568
592
|
selectedCount: (e) => `已选中 ${e} 个组件`,
|
|
569
593
|
componentCount: (e) => `${e} 个组件`,
|
|
594
|
+
sampleData: {
|
|
595
|
+
badge: "示例数据",
|
|
596
|
+
count: (e) => `示例数据 ${e} 处`,
|
|
597
|
+
locateTip: "逐个定位示例数据;发布前要绑定数据集或保留为常量",
|
|
598
|
+
keep: "保留为常量",
|
|
599
|
+
keepTip: "去掉选中组件的示例数据标记,值不变",
|
|
600
|
+
keepHistory: "示例数据保留为常量",
|
|
601
|
+
inspectorNotice: "示例数据:由智能体生成,发布前需绑定数据集,或确认保留为常量。",
|
|
602
|
+
bind: "绑定数据集",
|
|
603
|
+
bindTip: "为这个组件选择真实数据来源",
|
|
604
|
+
publishBlockedTitle: (e) => `还有 ${e} 处示例数据,暂不能发布`,
|
|
605
|
+
publishBlockedHint: "逐项绑定数据集或保留为常量后再发布。点一项可定位到画布上的组件。",
|
|
606
|
+
publishBlockedOther: (e) => `另有 ${e} 处在数据源参数或变量上,请在数据面板处理`,
|
|
607
|
+
publishBlockedClose: "知道了"
|
|
608
|
+
},
|
|
570
609
|
groupEditingPath: (e) => `组内:${e}`,
|
|
571
610
|
notifications: "操作通知",
|
|
572
611
|
errorConsole: {
|
|
@@ -1337,6 +1376,7 @@ var n = {
|
|
|
1337
1376
|
projectAborted: "项目操作已取消。",
|
|
1338
1377
|
projectDirty: "请先保存项目。",
|
|
1339
1378
|
projectPublishUnavailable: "当前项目不能发布。",
|
|
1379
|
+
publishSampleData: "还有智能体生成的示例数据,发布前请绑定数据集或保留为常量。",
|
|
1340
1380
|
blueprintCapabilityUnavailable: "当前素材不支持蓝图。",
|
|
1341
1381
|
hostResourceUnavailable: "资源数据不可用。",
|
|
1342
1382
|
commandTargetLocked: "选中组件已锁定。",
|
|
@@ -2057,6 +2097,7 @@ function r(e) {
|
|
|
2057
2097
|
case "PROJECT_ABORTED": return n.diagnostics.projectAborted;
|
|
2058
2098
|
case "PROJECT_DIRTY": return n.diagnostics.projectDirty;
|
|
2059
2099
|
case "PROJECT_PUBLISH_UNAVAILABLE": return n.diagnostics.projectPublishUnavailable;
|
|
2100
|
+
case "PUBLISH_SAMPLE_DATA_PRESENT": return n.diagnostics.publishSampleData;
|
|
2060
2101
|
case "BLUEPRINT_CAPABILITY_UNAVAILABLE": return n.diagnostics.blueprintCapabilityUnavailable;
|
|
2061
2102
|
case "HOST_RESOURCE_TIMEOUT":
|
|
2062
2103
|
case "HOST_RESOURCE_FAILED":
|
|
@@ -2682,4 +2723,4 @@ function Z(e) {
|
|
|
2682
2723
|
//#endregion
|
|
2683
2724
|
export { n as A, l as C, c as D, S as E, a as O, g as S, v as T, h as _, H as a, u as b, U as c, L as d, j as f, f as g, y as h, B as i, r as j, s as k, W as l, A as m, G as n, q as o, M as p, K as r, J as s, R as t, z as u, p as v, d as w, _ as x, m as y };
|
|
2684
2725
|
|
|
2685
|
-
//# sourceMappingURL=designer-field-primitives-
|
|
2726
|
+
//# sourceMappingURL=designer-field-primitives-Crn464Qg.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as t, O as n, T as r, m as i, x as a, y as o } from "./designer-field-primitives-
|
|
1
|
+
import { A as e, C as t, O as n, T as r, m as i, x as a, y as o } from "./designer-field-primitives-Crn464Qg.js";
|
|
2
2
|
import { MAX_BLUEPRINT_NODE_NAME_CODE_POINTS as s, SCREEN_BLUEPRINT_PORT_PATTERN as c, isScreenBlueprintInputPort as l, isScreenBlueprintOutputPort as u, parseScreenJsonValue as d, readScreenBlueprintActionPort as f, screenBlueprintEdgeFieldRule as p } from "@base-screen/contracts";
|
|
3
3
|
//#region src/common/tools/designer-json-snapshot.ts
|
|
4
4
|
function m(e) {
|
|
@@ -1279,4 +1279,4 @@ function Nt(e) {
|
|
|
1279
1279
|
//#endregion
|
|
1280
1280
|
export { ue as A, we as B, A as C, Ce as D, Le as E, _ as F, ge as G, ve as H, g as I, C as K, v as L, Se as M, ye as N, be as O, Te as P, y as R, Oe as S, M as T, _e as U, me as V, he as W, Ye as _, Mt as a, Ze as b, Tt as c, xt as d, mt as f, qe as g, Je as h, Dt as i, pe as j, xe as k, wt as l, nt as m, Ot as n, Et as o, dt as p, m as q, Nt as r, Ct as s, jt as t, St as u, Ke as v, N as w, De as x, Xe as y, le as z };
|
|
1281
1281
|
|
|
1282
|
-
//# sourceMappingURL=designer-left-panel-groups-dom-
|
|
1282
|
+
//# sourceMappingURL=designer-left-panel-groups-dom-DFdLWxxY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, E as t, O as n, S as r, T as i, a, b as o, c as s, d as c, g as l, h as u, i as d, m as f, n as p, o as m, s as h, t as g, u as _, v, x as y, y as b } from "./designer-field-primitives-
|
|
1
|
+
import { A as e, E as t, O as n, S as r, T as i, a, b as o, c as s, d as c, g as l, h as u, i as d, m as f, n as p, o as m, s as h, t as g, u as _, v, x as y, y as b } from "./designer-field-primitives-Crn464Qg.js";
|
|
2
2
|
import { isBaseScreenBoundedName as x, resolveBaseScreenMaterialDefaultStyle as S, resolveSchema as C } from "@base-screen/plugin-core";
|
|
3
3
|
import { MAX_AUTHORING_REQUEST_ID_LENGTH as w, SCREEN_THEME_SLOTS as T, isBoundedScreenImageUrl as E, isScreenMaterialType as D, isScreenThemeStatusSlot as O, parseScreenDataSource as k, parseScreenJsonValue as ee, readScreenComponentValueRef as te, readScreenDocumentDataSources as ne, readScreenThemeColor as re, resolveScreenThemeRef as ie } from "@base-screen/contracts";
|
|
4
4
|
//#region src/common/operations/element/designer-geometry.ts
|
|
@@ -2479,4 +2479,4 @@ function $(e, t, n) {
|
|
|
2479
2479
|
//#endregion
|
|
2480
2480
|
export { se as A, kn as C, Cn as D, yn as E, ae as M, oe as N, xe as O, Vn as S, An as T, Pn as _, ci as a, In as b, gr as c, tr as d, Zn as f, Rn as g, $n as h, si as i, ce as j, N as k, Gn as l, er as m, ai as n, oi as o, Qn as p, ii as r, ei as s, ti as t, nr as u, Ln as v, On as w, zn as x, Fn as y };
|
|
2481
2481
|
|
|
2482
|
-
//# sourceMappingURL=host-resource-selection-
|
|
2482
|
+
//# sourceMappingURL=host-resource-selection-CWrPLVOc.js.map
|