@nocobase/plugin-flow-engine 2.1.0-beta.37 → 2.1.0-beta.38
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 +9 -9
- package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
- package/dist/node_modules/acorn/package.json +1 -1
- package/dist/node_modules/acorn-jsx/package.json +1 -1
- package/dist/node_modules/acorn-walk/package.json +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/apply/compiler.js +18 -3
- package/dist/server/flow-surfaces/apply/matching.js +2 -0
- package/dist/server/flow-surfaces/authoring-validation.js +621 -66
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +21 -3
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +9 -9
- package/dist/server/flow-surfaces/catalog.js +3 -0
- package/dist/server/flow-surfaces/chart-config.js +14 -1
- package/dist/server/flow-surfaces/compose-compiler.d.ts +2 -0
- package/dist/server/flow-surfaces/compose-compiler.js +2 -0
- package/dist/server/flow-surfaces/compose-runtime.js +4 -7
- package/dist/server/flow-surfaces/configure-options.js +18 -7
- package/dist/server/flow-surfaces/locator.js +16 -2
- package/dist/server/flow-surfaces/runjs-authoring/index.js +5909 -2214
- package/dist/server/flow-surfaces/service-utils.d.ts +2 -0
- package/dist/server/flow-surfaces/service-utils.js +8 -0
- package/dist/server/flow-surfaces/service.d.ts +22 -0
- package/dist/server/flow-surfaces/service.js +722 -59
- package/dist/server/flow-surfaces/template-service-utils.d.ts +1 -0
- package/dist/swagger/flow-surfaces.d.ts +4 -2
- package/dist/swagger/flow-surfaces.examples.d.ts +6 -17
- package/dist/swagger/flow-surfaces.examples.js +5 -5
- package/dist/swagger/flow-surfaces.js +5 -3
- package/dist/swagger/index.d.ts +4 -2
- package/package.json +2 -2
|
@@ -75,6 +75,8 @@ export type NormalizedComposeFieldSpec = {
|
|
|
75
75
|
pageSize?: number;
|
|
76
76
|
showIndex?: boolean;
|
|
77
77
|
target?: string;
|
|
78
|
+
defaultTargetUid?: string;
|
|
79
|
+
targetBlockUid?: string;
|
|
78
80
|
settings: Record<string, any>;
|
|
79
81
|
popup?: Record<string, any>;
|
|
80
82
|
__autoPopupForRelationField?: boolean;
|
|
@@ -410,6 +410,12 @@ function normalizeComposeFieldSpec(input, index) {
|
|
|
410
410
|
if (!import_lodash.default.isUndefined(input.target) && typeof input.target !== "string") {
|
|
411
411
|
(0, import_errors.throwBadRequest)(`flowSurfaces compose field #${index + 1} target must be a string block key`);
|
|
412
412
|
}
|
|
413
|
+
if (!import_lodash.default.isUndefined(input.defaultTargetUid) && typeof input.defaultTargetUid !== "string") {
|
|
414
|
+
(0, import_errors.throwBadRequest)(`flowSurfaces compose field #${index + 1} defaultTargetUid must be a string`);
|
|
415
|
+
}
|
|
416
|
+
if (!import_lodash.default.isUndefined(input.targetBlockUid) && typeof input.targetBlockUid !== "string") {
|
|
417
|
+
(0, import_errors.throwBadRequest)(`flowSurfaces compose field #${index + 1} targetBlockUid must be a string`);
|
|
418
|
+
}
|
|
413
419
|
const rawKey = String(input.key || semanticType || (renderer === "js" ? `js:${fieldPath}` : fieldPath)).trim();
|
|
414
420
|
const key = normalizeFlowSurfaceComposeKey(rawKey, `flowSurfaces compose field #${index + 1}`);
|
|
415
421
|
const popupDefaultsMetadata = import_lodash.default.isPlainObject(input[import_defaults.FLOW_SURFACE_APPLY_BLUEPRINT_POPUP_DEFAULTS_KEY]) ? input[import_defaults.FLOW_SURFACE_APPLY_BLUEPRINT_POPUP_DEFAULTS_KEY] : void 0;
|
|
@@ -428,6 +434,8 @@ function normalizeComposeFieldSpec(input, index) {
|
|
|
428
434
|
...!import_lodash.default.isUndefined(pageSize) && Number.isFinite(pageSize) ? { pageSize } : {},
|
|
429
435
|
...!import_lodash.default.isUndefined(showIndex) ? { showIndex } : {},
|
|
430
436
|
target: typeof input.target === "string" ? String(input.target || "").trim() || void 0 : void 0,
|
|
437
|
+
defaultTargetUid: typeof input.defaultTargetUid === "string" ? String(input.defaultTargetUid || "").trim() || void 0 : void 0,
|
|
438
|
+
targetBlockUid: typeof input.targetBlockUid === "string" ? String(input.targetBlockUid || "").trim() || void 0 : void 0,
|
|
431
439
|
settings: import_lodash.default.isPlainObject(input.settings) ? input.settings : {},
|
|
432
440
|
popup: import_lodash.default.isPlainObject(input.popup) ? input.popup : void 0,
|
|
433
441
|
__autoPopupForRelationField: input.__autoPopupForRelationField === true,
|
|
@@ -73,12 +73,17 @@ export declare class FlowSurfacesService {
|
|
|
73
73
|
private readRouteOptions;
|
|
74
74
|
private findMenuRouteById;
|
|
75
75
|
private findMenuGroupRoutesByTitle;
|
|
76
|
+
private routeParentIdMatches;
|
|
77
|
+
private findMenuGroupRoutesByParentIdAndTitle;
|
|
76
78
|
private findFlowPageRoutesByParentIdAndTitle;
|
|
77
79
|
private assertMenuParentIsGroup;
|
|
78
80
|
private assertMenuRouteBindable;
|
|
79
81
|
private assertMenuRouteUpdatable;
|
|
80
82
|
private assertMenuParentNotSelfOrDescendant;
|
|
81
83
|
private buildMenuResult;
|
|
84
|
+
private isValidMenuIconName;
|
|
85
|
+
private assertVisibleNavigationIcon;
|
|
86
|
+
private assertVisibleNavigationRouteIconUpdate;
|
|
82
87
|
private createFlowMenuGroup;
|
|
83
88
|
private createFlowMenuItem;
|
|
84
89
|
private sanitizePublicCreateMenuValues;
|
|
@@ -568,6 +573,7 @@ export declare class FlowSurfacesService {
|
|
|
568
573
|
private resolveDefaultActionPopupTemplateOpenViewTitle;
|
|
569
574
|
private buildInlinePopupTemplateOpenView;
|
|
570
575
|
private peekInlineFieldSettingsOpenView;
|
|
576
|
+
private isInlineFieldClickToOpenEnabled;
|
|
571
577
|
private assertOpenViewUidTarget;
|
|
572
578
|
private normalizeFlowTemplateMode;
|
|
573
579
|
private normalizeFlowTemplateUsage;
|
|
@@ -602,6 +608,11 @@ export declare class FlowSurfacesService {
|
|
|
602
608
|
private tryResolvePopupTemplateForHost;
|
|
603
609
|
private tryResolveExistingDefaultActionPopupTemplate;
|
|
604
610
|
private getFlowTemplateOrThrow;
|
|
611
|
+
private shouldUseRuntimeRecordFilterByTkForOpenView;
|
|
612
|
+
private resolveOpenViewFilterTargetKey;
|
|
613
|
+
private resolvePopupHostCurrentRecordFilterTargetKey;
|
|
614
|
+
private resolveOpenViewRuntimeRecordFilterTargetKey;
|
|
615
|
+
private shouldOmitRuntimeRecordFilterByTk;
|
|
605
616
|
private buildPopupTemplateOpenView;
|
|
606
617
|
private isReferencedPopupTemplateOpenView;
|
|
607
618
|
private isPopupTemplateReferenceOpenViewState;
|
|
@@ -631,6 +642,7 @@ export declare class FlowSurfacesService {
|
|
|
631
642
|
private getActionButtonTitle;
|
|
632
643
|
private isSemanticallyEmptyInlinePopup;
|
|
633
644
|
private isEmptyInlinePopupPayload;
|
|
645
|
+
private isInlineFieldPopupDefaultShell;
|
|
634
646
|
private shouldAutoCompleteDefaultFieldPopup;
|
|
635
647
|
private isInlineFieldPopupBlockMissingResource;
|
|
636
648
|
private buildRelationFieldPopupCurrentRecordResource;
|
|
@@ -952,6 +964,10 @@ export declare class FlowSurfacesService {
|
|
|
952
964
|
private buildAutoComposeFieldsLayout;
|
|
953
965
|
private normalizeComposeFieldGroups;
|
|
954
966
|
private applyDefaultActionsForCreatedBlock;
|
|
967
|
+
private hasActionWithPublicType;
|
|
968
|
+
private ensureTableDefaultActionIntegrity;
|
|
969
|
+
private collectNodeTreeDescendants;
|
|
970
|
+
private ensureSurfaceTableDefaultActionIntegrity;
|
|
955
971
|
private resolveReusableSingletonAction;
|
|
956
972
|
private normalizeComposeBlock;
|
|
957
973
|
private normalizeComposeBlocks;
|
|
@@ -1012,8 +1028,14 @@ export declare class FlowSurfacesService {
|
|
|
1012
1028
|
private normalizeActionAssignValues;
|
|
1013
1029
|
private normalizeActionTriggerWorkflows;
|
|
1014
1030
|
private isAIEmployeeActionUse;
|
|
1031
|
+
private stableSerializeAIEmployeeValue;
|
|
1032
|
+
private buildAIEmployeeActionDedupIdentity;
|
|
1033
|
+
private normalizeAIEmployeeWorkContextForDedupIdentity;
|
|
1034
|
+
private normalizeAIEmployeeTasksForDedupIdentity;
|
|
1035
|
+
private assertNoDuplicateAIEmployeeAction;
|
|
1015
1036
|
private hasAIEmployeePublicSettings;
|
|
1016
1037
|
private assertOnlyAIEmployeePublicSettings;
|
|
1038
|
+
private aiEmployeeNestedRepairHint;
|
|
1017
1039
|
private assertOnlyAIEmployeeNestedPublicSettings;
|
|
1018
1040
|
private assertNoAIEmployeeInternalPropSettings;
|
|
1019
1041
|
private readAIEmployeePersistedTasks;
|