@nocobase/plugin-flow-engine 2.1.0-alpha.15 → 2.1.0-alpha.17
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/externalVersion.js +10 -10
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/{compiler.d.ts → apply/compiler.d.ts} +1 -10
- package/dist/server/flow-surfaces/{compiler.js → apply/compiler.js} +41 -280
- package/dist/server/flow-surfaces/apply/layout.d.ts +34 -0
- package/dist/server/flow-surfaces/apply/layout.js +175 -0
- package/dist/server/flow-surfaces/apply/matching.d.ts +16 -0
- package/dist/server/flow-surfaces/apply/matching.js +181 -0
- package/dist/server/flow-surfaces/association-title-field.d.ts +20 -0
- package/dist/server/flow-surfaces/association-title-field.js +158 -0
- package/dist/server/flow-surfaces/blueprint/compile-blocks.d.ts +14 -0
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +717 -0
- package/dist/server/flow-surfaces/blueprint/compile-plan.d.ts +13 -0
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +308 -0
- package/dist/server/flow-surfaces/blueprint/compile-reaction.d.ts +11 -0
- package/dist/server/flow-surfaces/blueprint/compile-reaction.js +72 -0
- package/dist/server/flow-surfaces/blueprint/index.d.ts +12 -0
- package/dist/server/flow-surfaces/blueprint/index.js +44 -0
- package/dist/server/flow-surfaces/blueprint/normalize-document.d.ts +10 -0
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +296 -0
- package/dist/server/flow-surfaces/blueprint/private-utils.d.ts +26 -0
- package/dist/server/flow-surfaces/blueprint/private-utils.js +182 -0
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +153 -0
- package/dist/server/flow-surfaces/blueprint/public-types.js +24 -0
- package/dist/server/flow-surfaces/catalog-smart.d.ts +18 -0
- package/dist/server/flow-surfaces/catalog-smart.js +239 -0
- package/dist/server/flow-surfaces/catalog-smart.projector.d.ts +15 -0
- package/dist/server/flow-surfaces/catalog-smart.projector.js +157 -0
- package/dist/server/flow-surfaces/catalog-smart.types.d.ts +99 -0
- package/dist/server/flow-surfaces/catalog-smart.types.js +24 -0
- package/dist/server/flow-surfaces/catalog.d.ts +3 -0
- package/dist/server/flow-surfaces/catalog.js +163 -34
- package/dist/server/flow-surfaces/compose-compiler.d.ts +104 -0
- package/dist/server/flow-surfaces/compose-compiler.js +162 -0
- package/dist/server/flow-surfaces/compose-runtime.d.ts +89 -0
- package/dist/server/flow-surfaces/compose-runtime.js +338 -0
- package/dist/server/flow-surfaces/configure-options.js +12 -3
- package/dist/server/flow-surfaces/constants.d.ts +3 -2
- package/dist/server/flow-surfaces/constants.js +36 -3
- package/dist/server/flow-surfaces/default-action-popup.d.ts +52 -0
- package/dist/server/flow-surfaces/default-action-popup.js +258 -0
- package/dist/server/flow-surfaces/executor.d.ts +10 -0
- package/dist/server/flow-surfaces/executor.js +59 -24
- package/dist/server/flow-surfaces/field-binding-registry.d.ts +23 -0
- package/dist/server/flow-surfaces/field-binding-registry.js +391 -0
- package/dist/server/flow-surfaces/field-semantics.d.ts +1 -1
- package/dist/server/flow-surfaces/index.js +75 -0
- package/dist/server/flow-surfaces/node-use-sets.d.ts +15 -0
- package/dist/server/flow-surfaces/node-use-sets.js +114 -0
- package/dist/server/flow-surfaces/payload-shape.d.ts +9 -0
- package/dist/server/flow-surfaces/payload-shape.js +61 -0
- package/dist/server/flow-surfaces/placement.js +2 -6
- package/dist/server/flow-surfaces/planning/action-specs.d.ts +179 -0
- package/dist/server/flow-surfaces/planning/action-specs.js +190 -0
- package/dist/server/flow-surfaces/planning/compiler.d.ts +37 -0
- package/dist/server/flow-surfaces/planning/compiler.js +376 -0
- package/dist/server/flow-surfaces/planning/context.d.ts +30 -0
- package/dist/server/flow-surfaces/planning/context.js +139 -0
- package/dist/server/flow-surfaces/planning/created-keys.d.ts +34 -0
- package/dist/server/flow-surfaces/planning/created-keys.js +375 -0
- package/dist/server/flow-surfaces/planning/key-kind.d.ts +11 -0
- package/dist/server/flow-surfaces/planning/key-kind.js +86 -0
- package/dist/server/flow-surfaces/planning/key-persistence.d.ts +34 -0
- package/dist/server/flow-surfaces/planning/key-persistence.js +148 -0
- package/dist/server/flow-surfaces/planning/key-registry.d.ts +40 -0
- package/dist/server/flow-surfaces/planning/key-registry.js +206 -0
- package/dist/server/flow-surfaces/planning/runtime.d.ts +37 -0
- package/dist/server/flow-surfaces/planning/runtime.js +259 -0
- package/dist/server/flow-surfaces/planning/step-link.d.ts +14 -0
- package/dist/server/flow-surfaces/planning/step-link.js +104 -0
- package/dist/server/flow-surfaces/planning/types.d.ts +55 -0
- package/dist/server/flow-surfaces/planning/types.js +24 -0
- package/dist/server/flow-surfaces/reaction/errors.d.ts +20 -0
- package/dist/server/flow-surfaces/reaction/errors.js +69 -0
- package/dist/server/flow-surfaces/reaction/field-value.d.ts +34 -0
- package/dist/server/flow-surfaces/reaction/field-value.js +181 -0
- package/dist/server/flow-surfaces/reaction/fingerprint.d.ts +16 -0
- package/dist/server/flow-surfaces/reaction/fingerprint.js +71 -0
- package/dist/server/flow-surfaces/reaction/linkage.d.ts +136 -0
- package/dist/server/flow-surfaces/reaction/linkage.js +882 -0
- package/dist/server/flow-surfaces/reaction/meta.d.ts +11 -0
- package/dist/server/flow-surfaces/reaction/meta.js +451 -0
- package/dist/server/flow-surfaces/reaction/registry.d.ts +136 -0
- package/dist/server/flow-surfaces/reaction/registry.js +186 -0
- package/dist/server/flow-surfaces/reaction/resolver.d.ts +22 -0
- package/dist/server/flow-surfaces/reaction/resolver.js +202 -0
- package/dist/server/flow-surfaces/reaction/types.d.ts +241 -0
- package/dist/server/flow-surfaces/reaction/types.js +24 -0
- package/dist/server/flow-surfaces/reaction/utils.d.ts +17 -0
- package/dist/server/flow-surfaces/reaction/utils.js +67 -0
- package/dist/server/flow-surfaces/reaction/value-expr.d.ts +15 -0
- package/dist/server/flow-surfaces/reaction/value-expr.js +209 -0
- package/dist/server/flow-surfaces/reference-guards.d.ts +19 -0
- package/dist/server/flow-surfaces/reference-guards.js +103 -0
- package/dist/server/flow-surfaces/service-helpers.d.ts +42 -0
- package/dist/server/flow-surfaces/service-helpers.js +377 -0
- package/dist/server/flow-surfaces/service-utils.d.ts +105 -0
- package/dist/server/flow-surfaces/service-utils.js +760 -0
- package/dist/server/flow-surfaces/service.d.ts +199 -104
- package/dist/server/flow-surfaces/service.js +4158 -1890
- package/dist/server/flow-surfaces/template-compatibility.d.ts +42 -0
- package/dist/server/flow-surfaces/template-compatibility.js +189 -0
- package/dist/server/flow-surfaces/template-service-utils.d.ts +62 -0
- package/dist/server/flow-surfaces/template-service-utils.js +281 -0
- package/dist/server/flow-surfaces/types.d.ts +129 -37
- package/dist/swagger/flow-surfaces.d.ts +3777 -1581
- package/dist/swagger/flow-surfaces.examples.d.ts +1246 -0
- package/dist/swagger/flow-surfaces.examples.js +1396 -0
- package/dist/swagger/flow-surfaces.js +2020 -1469
- package/dist/swagger/flow-surfaces.template-action-docs.d.ts +62 -0
- package/dist/swagger/flow-surfaces.template-action-docs.js +121 -0
- package/dist/swagger/flow-surfaces.template-schemas.d.ts +239 -0
- package/dist/swagger/flow-surfaces.template-schemas.js +255 -0
- package/dist/swagger/index.d.ts +3777 -1581
- package/package.json +2 -2
|
@@ -10,7 +10,9 @@ import type { Plugin } from '@nocobase/server';
|
|
|
10
10
|
import _ from 'lodash';
|
|
11
11
|
import FlowModelRepository from '../repository';
|
|
12
12
|
import { SurfaceLocator } from './locator';
|
|
13
|
-
import type {
|
|
13
|
+
import type { FlowSurfaceActionLinkageRule, FlowSurfaceBlockLinkageRule, FlowSurfaceFieldLinkageRule, FlowSurfaceFieldValueRule, FlowSurfaceGetReactionMetaResult, FlowSurfaceGetReactionMetaValues, FlowSurfaceReactionWriteResult, FlowSurfaceReactionWriteValues } from './reaction/types';
|
|
14
|
+
import { type FlowSurfaceTemplateListValues, type FlowSurfaceTemplateRow } from './template-service-utils';
|
|
15
|
+
import type { FlowSurfaceApplyValues, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
|
|
14
16
|
type FlowSurfaceAddFieldResult = {
|
|
15
17
|
uid?: string;
|
|
16
18
|
parentUid?: string;
|
|
@@ -35,6 +37,10 @@ export declare class FlowSurfacesService {
|
|
|
35
37
|
get repository(): FlowModelRepository;
|
|
36
38
|
get locator(): SurfaceLocator;
|
|
37
39
|
private get routeSync();
|
|
40
|
+
private getFlowTemplateRepository;
|
|
41
|
+
private getFlowTemplateUsageRepository;
|
|
42
|
+
private getFlowTemplateUsageModel;
|
|
43
|
+
private getFlowTemplateUsageRepositorySafe;
|
|
38
44
|
private get contractGuard();
|
|
39
45
|
private get surfaceContext();
|
|
40
46
|
private loadEnabledPluginPackages;
|
|
@@ -43,6 +49,7 @@ export declare class FlowSurfacesService {
|
|
|
43
49
|
private readRouteField;
|
|
44
50
|
private readRouteOptions;
|
|
45
51
|
private findMenuRouteById;
|
|
52
|
+
private findMenuGroupRoutesByTitle;
|
|
46
53
|
private assertMenuParentIsGroup;
|
|
47
54
|
private assertMenuRouteBindable;
|
|
48
55
|
private assertMenuRouteUpdatable;
|
|
@@ -54,60 +61,13 @@ export declare class FlowSurfacesService {
|
|
|
54
61
|
private loadRouteBackedPageStructure;
|
|
55
62
|
private isBindableMenuRoutePendingInitialization;
|
|
56
63
|
private isRouteBackedPageInitialized;
|
|
57
|
-
catalog(input: {
|
|
58
|
-
target?: FlowSurfaceWriteTarget;
|
|
59
|
-
}, options?: {
|
|
64
|
+
catalog(input: FlowSurfaceCatalogValues, options?: {
|
|
60
65
|
transaction?: any;
|
|
61
66
|
enabledPackages?: ReadonlySet<string>;
|
|
62
|
-
}): Promise<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
configureOptions: import("./types").FlowSurfaceConfigureOptions;
|
|
67
|
-
}[];
|
|
68
|
-
actions: {
|
|
69
|
-
configureOptions: import("./types").FlowSurfaceConfigureOptions;
|
|
70
|
-
key: string;
|
|
71
|
-
label: string;
|
|
72
|
-
use: string;
|
|
73
|
-
kind: "block" | "page" | "tab" | "field" | "action";
|
|
74
|
-
scope?: import("./types").FlowSurfaceActionScope;
|
|
75
|
-
scene?: string;
|
|
76
|
-
requiredInitParams?: string[];
|
|
77
|
-
allowedContainerUses?: string[];
|
|
78
|
-
editableDomains: FlowSurfaceNodeDomain[];
|
|
79
|
-
settingsSchema: Record<string, any>;
|
|
80
|
-
settingsContract?: Partial<Record<FlowSurfaceNodeDomain, import("./types").FlowSurfaceDomainContract>>;
|
|
81
|
-
resourceBindings?: FlowSurfaceResourceBindingOption[];
|
|
82
|
-
eventCapabilities?: import("./types").FlowSurfaceEventCapabilities;
|
|
83
|
-
layoutCapabilities?: import("./types").FlowSurfaceLayoutCapabilities;
|
|
84
|
-
createSupported?: boolean;
|
|
85
|
-
}[];
|
|
86
|
-
recordActions: {
|
|
87
|
-
configureOptions: import("./types").FlowSurfaceConfigureOptions;
|
|
88
|
-
key: string;
|
|
89
|
-
label: string;
|
|
90
|
-
use: string;
|
|
91
|
-
kind: "block" | "page" | "tab" | "field" | "action";
|
|
92
|
-
scope?: import("./types").FlowSurfaceActionScope;
|
|
93
|
-
scene?: string;
|
|
94
|
-
requiredInitParams?: string[];
|
|
95
|
-
allowedContainerUses?: string[];
|
|
96
|
-
editableDomains: FlowSurfaceNodeDomain[];
|
|
97
|
-
settingsSchema: Record<string, any>;
|
|
98
|
-
settingsContract?: Partial<Record<FlowSurfaceNodeDomain, import("./types").FlowSurfaceDomainContract>>;
|
|
99
|
-
resourceBindings?: FlowSurfaceResourceBindingOption[];
|
|
100
|
-
eventCapabilities?: import("./types").FlowSurfaceEventCapabilities;
|
|
101
|
-
layoutCapabilities?: import("./types").FlowSurfaceLayoutCapabilities;
|
|
102
|
-
createSupported?: boolean;
|
|
103
|
-
}[];
|
|
104
|
-
editableDomains: FlowSurfaceNodeDomain[];
|
|
105
|
-
configureOptions: import("./types").FlowSurfaceConfigureOptions;
|
|
106
|
-
settingsSchema: Record<string, any>;
|
|
107
|
-
settingsContract: Partial<Record<FlowSurfaceNodeDomain, import("./types").FlowSurfaceDomainContract>>;
|
|
108
|
-
eventCapabilities: import("./types").FlowSurfaceEventCapabilities;
|
|
109
|
-
layoutCapabilities: import("./types").FlowSurfaceLayoutCapabilities;
|
|
110
|
-
}>;
|
|
67
|
+
}): Promise<FlowSurfaceCatalogResponse>;
|
|
68
|
+
private analyzeCatalogTarget;
|
|
69
|
+
private projectCatalogNode;
|
|
70
|
+
private projectCatalogItem;
|
|
111
71
|
private buildCatalogBlockItem;
|
|
112
72
|
private isCollectionBlockUse;
|
|
113
73
|
private isPopupFieldHostUse;
|
|
@@ -145,34 +105,139 @@ export declare class FlowSurfacesService {
|
|
|
145
105
|
context(values: FlowSurfaceContextValues, options?: {
|
|
146
106
|
transaction?: any;
|
|
147
107
|
}): Promise<import("./types").FlowSurfaceContextResponse>;
|
|
108
|
+
private extractReactionCanonicalRules;
|
|
109
|
+
private buildReactionFieldPathMaps;
|
|
110
|
+
private requireReactionFieldUid;
|
|
111
|
+
private buildReactionRuleNormalizers;
|
|
112
|
+
private buildReactionFingerprintForSlot;
|
|
113
|
+
private assertReactionFingerprint;
|
|
114
|
+
private resolveReactionRequest;
|
|
115
|
+
private persistReactionSlot;
|
|
116
|
+
private buildLinkageWriteResult;
|
|
117
|
+
private getLiveLinkageCapability;
|
|
118
|
+
getReactionMeta(values: FlowSurfaceGetReactionMetaValues, options?: {
|
|
119
|
+
transaction?: any;
|
|
120
|
+
}): Promise<FlowSurfaceGetReactionMetaResult>;
|
|
121
|
+
setFieldValueRules(values: FlowSurfaceReactionWriteValues<FlowSurfaceFieldValueRule>, options?: {
|
|
122
|
+
transaction?: any;
|
|
123
|
+
}): Promise<import("./reaction/field-value").FlowSurfaceFieldValueCompileResult>;
|
|
124
|
+
setBlockLinkageRules(values: FlowSurfaceReactionWriteValues<FlowSurfaceBlockLinkageRule>, options?: {
|
|
125
|
+
transaction?: any;
|
|
126
|
+
}): Promise<FlowSurfaceReactionWriteResult<FlowSurfaceBlockLinkageRule>>;
|
|
127
|
+
setFieldLinkageRules(values: FlowSurfaceReactionWriteValues<FlowSurfaceFieldLinkageRule>, options?: {
|
|
128
|
+
transaction?: any;
|
|
129
|
+
}): Promise<FlowSurfaceReactionWriteResult<FlowSurfaceFieldLinkageRule>>;
|
|
130
|
+
setActionLinkageRules(values: FlowSurfaceReactionWriteValues<FlowSurfaceActionLinkageRule>, options?: {
|
|
131
|
+
transaction?: any;
|
|
132
|
+
}): Promise<FlowSurfaceReactionWriteResult<FlowSurfaceActionLinkageRule>>;
|
|
133
|
+
private buildStableFingerprintString;
|
|
134
|
+
private buildSurfaceFingerprint;
|
|
135
|
+
private getDeclaredKeyFromNode;
|
|
136
|
+
private stripInternalSurfaceMetaFromNodeTree;
|
|
137
|
+
private buildSurfaceReadPayload;
|
|
138
|
+
private buildSurfaceContextFingerprint;
|
|
148
139
|
get(input: Record<string, any>, options?: {
|
|
149
140
|
transaction?: any;
|
|
150
141
|
}): Promise<Record<string, any>>;
|
|
151
|
-
|
|
142
|
+
private getDeclaredKeyPersistenceDeps;
|
|
143
|
+
private patchDeclaredKeyModel;
|
|
144
|
+
private persistCreatedKeysForAction;
|
|
145
|
+
private buildPlanningRuntimeDeps;
|
|
146
|
+
describeSurface(values: FlowSurfaceDescribeValues, options?: {
|
|
147
|
+
transaction?: any;
|
|
148
|
+
}): Promise<any>;
|
|
149
|
+
private dispatchPlanOnlyAction;
|
|
150
|
+
private resolveApplyBlueprintReplaceTargetInfo;
|
|
151
|
+
private resolveApplyBlueprintCreateNavigationGroup;
|
|
152
|
+
private prepareApplyBlueprintRequest;
|
|
153
|
+
applyBlueprint(values: Record<string, any>, options?: {
|
|
152
154
|
transaction?: any;
|
|
153
|
-
enabledPackages?: ReadonlySet<string>;
|
|
154
155
|
}): Promise<{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
156
|
+
version: string;
|
|
157
|
+
mode: import("./blueprint").FlowSurfaceApplyBlueprintMode;
|
|
158
|
+
target: _.Dictionary<any>;
|
|
159
|
+
surface: Record<string, any>;
|
|
160
|
+
}>;
|
|
161
|
+
private resolveTemplateResourceInfo;
|
|
162
|
+
private resolveBlockTemplateExpectedResourceInfo;
|
|
163
|
+
private getTemplateResourceCompatibilityDisabledReason;
|
|
164
|
+
private getFieldsTemplateDisabledReason;
|
|
165
|
+
private assertFieldsTemplateCompatibility;
|
|
166
|
+
private loadTemplateListTargetContext;
|
|
167
|
+
private inferTemplateListCurrentRecordCapability;
|
|
168
|
+
private normalizeOptionalTemplateListActionType;
|
|
169
|
+
private normalizeOptionalTemplateListActionScope;
|
|
170
|
+
private assertTemplateListPopupActionScopeSupported;
|
|
171
|
+
private resolveTemplateListPopupActionItem;
|
|
172
|
+
private resolveTemplateListPopupActionContext;
|
|
173
|
+
private getBlockTemplateDisabledReason;
|
|
174
|
+
private assertBlockTemplateCompatibility;
|
|
175
|
+
private getPopupTemplateDisabledReason;
|
|
176
|
+
private getTemplateListDisabledReason;
|
|
177
|
+
private withTemplateAvailability;
|
|
178
|
+
private assertPopupTemplateCompatibility;
|
|
179
|
+
private normalizeOptionalFlowTemplateType;
|
|
180
|
+
private withFlowTemplateUsageCounts;
|
|
181
|
+
listTemplates(values?: FlowSurfaceTemplateListValues, options?: {
|
|
182
|
+
transaction?: any;
|
|
183
|
+
}): Promise<{
|
|
184
|
+
rows: FlowSurfaceTemplateRow[];
|
|
185
|
+
count: number;
|
|
186
|
+
page: number;
|
|
187
|
+
pageSize: number;
|
|
188
|
+
totalPage: number;
|
|
189
|
+
}>;
|
|
190
|
+
getTemplate(values: Record<string, any>, options?: {
|
|
191
|
+
transaction?: any;
|
|
192
|
+
}): Promise<FlowSurfaceTemplateRow>;
|
|
193
|
+
private inferSaveTemplateTarget;
|
|
194
|
+
private createFlowTemplateReferenceBlockModel;
|
|
195
|
+
private buildPopupTemplateReferenceOpenView;
|
|
196
|
+
private clearFlowTemplateUsagesByModelUids;
|
|
197
|
+
private clearFlowTemplateUsagesForNodeTree;
|
|
198
|
+
private syncFlowTemplateUsagesForNodeTree;
|
|
199
|
+
private clearFlowTemplateUsagesForRouteSchemaUid;
|
|
200
|
+
private syncTemplateMetaToReferencedModels;
|
|
201
|
+
private resolveFlowModelAttachPosition;
|
|
202
|
+
private repositionFlowModelInParent;
|
|
203
|
+
private convertBlockSourceToTemplateReference;
|
|
204
|
+
private convertPopupSourceToTemplateReference;
|
|
205
|
+
saveTemplate(values: Record<string, any>, options?: {
|
|
206
|
+
transaction?: any;
|
|
207
|
+
}): Promise<FlowSurfaceTemplateRow>;
|
|
208
|
+
updateTemplate(values: Record<string, any>, options?: {
|
|
209
|
+
transaction?: any;
|
|
210
|
+
}): Promise<FlowSurfaceTemplateRow>;
|
|
211
|
+
destroyTemplate(values: Record<string, any>, options?: {
|
|
212
|
+
transaction?: any;
|
|
213
|
+
}): Promise<{
|
|
214
|
+
uid: string;
|
|
175
215
|
}>;
|
|
216
|
+
private resolveTemplateCopySource;
|
|
217
|
+
private duplicateDetachedFlowModelTree;
|
|
218
|
+
private cloneFlowModelTree;
|
|
219
|
+
convertTemplateToCopy(values: Record<string, any>, options?: {
|
|
220
|
+
transaction?: any;
|
|
221
|
+
}): Promise<{
|
|
222
|
+
uid: any;
|
|
223
|
+
type: string;
|
|
224
|
+
popupUid: string;
|
|
225
|
+
} | {
|
|
226
|
+
gridUid: string;
|
|
227
|
+
uid: string;
|
|
228
|
+
type: string;
|
|
229
|
+
popupUid?: undefined;
|
|
230
|
+
} | {
|
|
231
|
+
uid: any;
|
|
232
|
+
type: string;
|
|
233
|
+
popupUid?: undefined;
|
|
234
|
+
}>;
|
|
235
|
+
private buildPopupSurfaceSummaryFromHost;
|
|
236
|
+
private decorateTemplateReadbackTree;
|
|
237
|
+
compose(values: FlowSurfaceComposeValues, options?: {
|
|
238
|
+
transaction?: any;
|
|
239
|
+
enabledPackages?: ReadonlySet<string>;
|
|
240
|
+
}): Promise<import("./compose-runtime").FlowSurfaceComposeExecutionResult>;
|
|
176
241
|
configure(values: FlowSurfaceConfigureValues, options?: {
|
|
177
242
|
transaction?: any;
|
|
178
243
|
}): Promise<{
|
|
@@ -199,16 +264,7 @@ export declare class FlowSurfacesService {
|
|
|
199
264
|
private initializeFlowPageForRoute;
|
|
200
265
|
createPage(values: Record<string, any>, options?: {
|
|
201
266
|
transaction?: any;
|
|
202
|
-
}): Promise<
|
|
203
|
-
routeId: any;
|
|
204
|
-
parentMenuRouteId: any;
|
|
205
|
-
pageSchemaUid: any;
|
|
206
|
-
pageUid: string;
|
|
207
|
-
tabSchemaUid: any;
|
|
208
|
-
tabRouteId: any;
|
|
209
|
-
tabSchemaName: any;
|
|
210
|
-
gridUid: any;
|
|
211
|
-
}>;
|
|
267
|
+
}): Promise<any>;
|
|
212
268
|
destroyPage(values: Record<string, any>, options?: {
|
|
213
269
|
transaction?: any;
|
|
214
270
|
}): Promise<{
|
|
@@ -265,25 +321,19 @@ export declare class FlowSurfacesService {
|
|
|
265
321
|
}): Promise<{
|
|
266
322
|
uid: any;
|
|
267
323
|
}>;
|
|
324
|
+
private buildFlowTemplateReferenceBlockTree;
|
|
325
|
+
private patchCopiedTemplateGridFromRoot;
|
|
326
|
+
private buildBlockCreateResult;
|
|
327
|
+
private appendAddedBlockLayout;
|
|
328
|
+
private applyTemplateFieldsToBlock;
|
|
329
|
+
private addBlockFromFieldsTemplate;
|
|
330
|
+
private addBlockFromTemplate;
|
|
331
|
+
private addFieldFromTemplate;
|
|
268
332
|
addBlock(values: Record<string, any>, options?: {
|
|
269
333
|
transaction?: any;
|
|
270
334
|
deferAutoLayout?: boolean;
|
|
271
335
|
enabledPackages?: ReadonlySet<string>;
|
|
272
|
-
}):
|
|
273
|
-
pageUid?: any;
|
|
274
|
-
tabUid?: any;
|
|
275
|
-
popupPageUid?: any;
|
|
276
|
-
popupTabUid?: any;
|
|
277
|
-
popupGridUid?: any;
|
|
278
|
-
actionsColumnUid?: any;
|
|
279
|
-
itemGridUid?: string;
|
|
280
|
-
itemUid?: string;
|
|
281
|
-
blockGridUid?: string;
|
|
282
|
-
gridUid?: any;
|
|
283
|
-
uid: string;
|
|
284
|
-
parentUid: any;
|
|
285
|
-
subKey: any;
|
|
286
|
-
}>;
|
|
336
|
+
}): any;
|
|
287
337
|
addField(values: Record<string, any>, options?: {
|
|
288
338
|
transaction?: any;
|
|
289
339
|
enabledPackages?: ReadonlySet<string>;
|
|
@@ -291,6 +341,7 @@ export declare class FlowSurfacesService {
|
|
|
291
341
|
addAction(values: Record<string, any>, options?: {
|
|
292
342
|
transaction?: any;
|
|
293
343
|
enabledPackages?: ReadonlySet<string>;
|
|
344
|
+
autoCompleteDefaultPopup?: boolean;
|
|
294
345
|
}): Promise<{
|
|
295
346
|
uid: string;
|
|
296
347
|
parentUid: any;
|
|
@@ -300,6 +351,7 @@ export declare class FlowSurfacesService {
|
|
|
300
351
|
addRecordAction(values: Record<string, any>, options?: {
|
|
301
352
|
transaction?: any;
|
|
302
353
|
enabledPackages?: ReadonlySet<string>;
|
|
354
|
+
autoCompleteDefaultPopup?: boolean;
|
|
303
355
|
}): Promise<{
|
|
304
356
|
uid: string;
|
|
305
357
|
parentUid: any;
|
|
@@ -328,8 +380,18 @@ export declare class FlowSurfacesService {
|
|
|
328
380
|
}>;
|
|
329
381
|
private normalizeInlineSettings;
|
|
330
382
|
private normalizeInlinePopup;
|
|
383
|
+
private buildInlinePopupTemplateOpenView;
|
|
331
384
|
private peekInlineFieldSettingsOpenView;
|
|
332
385
|
private assertOpenViewUidTarget;
|
|
386
|
+
private normalizeFlowTemplateMode;
|
|
387
|
+
private normalizeFlowTemplateUsage;
|
|
388
|
+
private normalizeFlowTemplateReference;
|
|
389
|
+
private getFlowTemplateOrThrow;
|
|
390
|
+
private buildPopupTemplateOpenView;
|
|
391
|
+
private resolveExternalPopupHostUid;
|
|
392
|
+
private resolveDetachedPopupCopyUid;
|
|
393
|
+
private cleanupLocalPopupSurfaceForHost;
|
|
394
|
+
private reconcilePopupOpenViewTransition;
|
|
333
395
|
private normalizeOpenView;
|
|
334
396
|
private isExternalPopupOpenView;
|
|
335
397
|
private loadFieldHostNodes;
|
|
@@ -341,10 +403,29 @@ export declare class FlowSurfacesService {
|
|
|
341
403
|
private applyInlineFieldPopup;
|
|
342
404
|
private applyInlineFieldSettings;
|
|
343
405
|
private applyInlineStandaloneFieldSettings;
|
|
406
|
+
private getActionButtonTitle;
|
|
407
|
+
private isSemanticallyEmptyInlinePopup;
|
|
408
|
+
private shouldAutoCompleteDefaultActionPopup;
|
|
409
|
+
private buildDefaultActionPopupFieldPaths;
|
|
410
|
+
private buildDefaultActionPopupNamespace;
|
|
411
|
+
private buildDefaultActionPopupKeyMap;
|
|
412
|
+
private remapDefaultActionPopupField;
|
|
413
|
+
private remapDefaultActionPopupBlocks;
|
|
414
|
+
private remapDefaultActionPopupLayout;
|
|
415
|
+
private buildDefaultActionPopupBlocks;
|
|
416
|
+
private buildDefaultActionPopupComposeValues;
|
|
417
|
+
private resolveDefaultActionPopupSurfaceState;
|
|
418
|
+
private shouldResetDefaultActionPopupFormLinkageRules;
|
|
419
|
+
private resetDefaultActionPopupFormLinkageRules;
|
|
420
|
+
private resolvePopupTabTitle;
|
|
421
|
+
private syncDefaultActionPopupTabTitle;
|
|
422
|
+
private applyDefaultActionPopupContent;
|
|
344
423
|
private applyInlineActionPopup;
|
|
345
424
|
updateSettings(values: Record<string, any>, options?: {
|
|
346
425
|
transaction?: any;
|
|
347
426
|
replaceChartCardSettings?: boolean;
|
|
427
|
+
openViewActionName?: string;
|
|
428
|
+
popupTemplateHostUid?: string;
|
|
348
429
|
}): Promise<{
|
|
349
430
|
uid: any;
|
|
350
431
|
updated?: undefined;
|
|
@@ -435,10 +516,19 @@ export declare class FlowSurfacesService {
|
|
|
435
516
|
private resolveAddRecordActionCatalogItem;
|
|
436
517
|
private resolveComposeBlockActionCatalogItem;
|
|
437
518
|
private resolveComposeRecordActionCatalogItem;
|
|
438
|
-
private
|
|
519
|
+
private isAddChildCatalogItem;
|
|
520
|
+
private isTreeCollection;
|
|
521
|
+
private isTreeTableEnabled;
|
|
522
|
+
private resolveAddChildOwnerNode;
|
|
523
|
+
private resolveOwnerCollectionForAddChild;
|
|
524
|
+
private canUseAddChildOnOwnerNode;
|
|
525
|
+
private assertAddChildSupportedForOwnerNode;
|
|
526
|
+
private filterTargetRecordActions;
|
|
527
|
+
private inspectRecordActionContainer;
|
|
528
|
+
private materializeRecordActionContainer;
|
|
439
529
|
private runBatchCreate;
|
|
440
530
|
private normalizeComposeBlock;
|
|
441
|
-
private
|
|
531
|
+
private normalizeComposeBlocks;
|
|
442
532
|
private resolveComposeActionContainerUid;
|
|
443
533
|
private resolveComposeFieldContainerUid;
|
|
444
534
|
private resolveComposeRecordActionContainerUid;
|
|
@@ -449,8 +539,8 @@ export declare class FlowSurfacesService {
|
|
|
449
539
|
private isGridLayoutValid;
|
|
450
540
|
private hasMaterialGridLayout;
|
|
451
541
|
private appendRowsToLayout;
|
|
452
|
-
private
|
|
453
|
-
private
|
|
542
|
+
private collectComposeActionKeys;
|
|
543
|
+
private collectPopupSurfaceKeys;
|
|
454
544
|
private removeNodeTreeWithBindings;
|
|
455
545
|
private cleanupNodeBindings;
|
|
456
546
|
private configurePage;
|
|
@@ -475,11 +565,13 @@ export declare class FlowSurfacesService {
|
|
|
475
565
|
private configureActionNode;
|
|
476
566
|
private buildFieldCatalog;
|
|
477
567
|
private getFieldMenuCatalogMode;
|
|
568
|
+
private resolveRegisteredFieldBinding;
|
|
478
569
|
private resolveAssociationLeafDisplaySemantics;
|
|
479
570
|
private buildFieldMenuDirectCandidates;
|
|
480
571
|
private collectFieldMenuAssociationLeafCandidates;
|
|
481
572
|
private buildFieldMenuCandidates;
|
|
482
573
|
private findFieldMenuCandidate;
|
|
574
|
+
private buildCatalogItemOptionalFields;
|
|
483
575
|
private buildFieldCatalogEntriesForResource;
|
|
484
576
|
private buildLegacyFieldCatalogEntriesForResource;
|
|
485
577
|
private findOwningBlockGrid;
|
|
@@ -509,6 +601,9 @@ export declare class FlowSurfacesService {
|
|
|
509
601
|
private getCollection;
|
|
510
602
|
private resolveFieldDefinition;
|
|
511
603
|
private getAssociationDefaultTitleFieldName;
|
|
604
|
+
private getAssociationTitleFieldTargetCollection;
|
|
605
|
+
private buildAssociationTitleFieldUnavailableMessage;
|
|
606
|
+
private resolveTitleFieldSyncDecision;
|
|
512
607
|
private resolvePreferredFieldForCapability;
|
|
513
608
|
private ensureGridChild;
|
|
514
609
|
private ensureTableActionsColumn;
|