@nocobase/plugin-flow-engine 2.1.0-beta.15 → 2.1.0-beta.16
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/ai/ai-employees/nathan/index.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/index.js +41 -0
- package/dist/ai/ai-employees/nathan/prompt.md +132 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +69 -0
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.js +2 -2
- package/dist/ai/docs/runjs/context/block-model.md +35 -35
- package/dist/ai/docs/runjs/context/collection-field.md +53 -51
- package/dist/ai/docs/runjs/context/collection.md +39 -39
- package/dist/ai/docs/runjs/context/data-source-manager.md +40 -30
- package/dist/ai/docs/runjs/context/data-source.md +52 -44
- package/dist/ai/docs/runjs/context/element.md +44 -38
- package/dist/ai/docs/runjs/context/exit-all.md +37 -35
- package/dist/ai/docs/runjs/context/exit.md +38 -35
- package/dist/ai/docs/runjs/context/filter-manager.md +36 -30
- package/dist/ai/docs/runjs/context/form.md +57 -57
- package/dist/ai/docs/runjs/context/get-model.md +22 -21
- package/dist/ai/docs/runjs/context/get-value.md +20 -19
- package/dist/ai/docs/runjs/context/get-var.md +61 -55
- package/dist/ai/docs/runjs/context/i18n.md +17 -14
- package/dist/ai/docs/runjs/context/import-async.md +333 -45
- package/dist/ai/docs/runjs/context/init-resource.md +20 -20
- package/dist/ai/docs/runjs/context/libs.md +31 -31
- package/dist/ai/docs/runjs/context/location.md +34 -31
- package/dist/ai/docs/runjs/context/logger.md +41 -40
- package/dist/ai/docs/runjs/context/make-resource.md +27 -26
- package/dist/ai/docs/runjs/context/message.md +42 -41
- package/dist/ai/docs/runjs/context/modal.md +44 -44
- package/dist/ai/docs/runjs/context/model.md +36 -33
- package/dist/ai/docs/runjs/context/notification.md +41 -40
- package/dist/ai/docs/runjs/context/off.md +14 -14
- package/dist/ai/docs/runjs/context/on.md +30 -29
- package/dist/ai/docs/runjs/context/open-view.md +40 -40
- package/dist/ai/docs/runjs/context/render.md +37 -32
- package/dist/ai/docs/runjs/context/request.md +46 -45
- package/dist/ai/docs/runjs/context/require-async.md +28 -25
- package/dist/ai/docs/runjs/context/resource.md +34 -34
- package/dist/ai/docs/runjs/context/route.md +36 -34
- package/dist/ai/docs/runjs/context/router.md +43 -31
- package/dist/ai/docs/runjs/context/set-value.md +18 -17
- package/dist/ai/docs/runjs/context/t.md +20 -17
- package/dist/ai/docs/runjs/context/view.md +49 -46
- package/dist/ai/docs/runjs/document.md +1 -0
- package/dist/ai/docs/runjs/import-modules.md +32 -32
- package/dist/ai/docs/runjs/index.md +13 -13
- package/dist/ai/docs/runjs/jsx.md +19 -19
- package/dist/ai/docs/runjs/model/form-block-model.md +1 -3
- package/dist/ai/docs/runjs/render.md +15 -15
- package/dist/ai/docs/runjs/resource/api-resource.md +53 -53
- package/dist/ai/docs/runjs/resource/multi-record-resource.md +64 -64
- package/dist/ai/docs/runjs/resource/single-record-resource.md +55 -55
- package/dist/ai/docs/runjs/resource/sql-resource.md +57 -57
- package/dist/ai/docs/runjs/window.md +5 -5
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +11 -10
- package/dist/node_modules/ses/dist/ses.cjs +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +38 -0
- package/dist/server/flow-surfaces/action-scope.js +152 -0
- package/dist/server/flow-surfaces/apply/compiler.d.ts +13 -0
- package/dist/server/flow-surfaces/apply/compiler.js +969 -0
- 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/approval/blueprint-service.d.ts +84 -0
- package/dist/server/flow-surfaces/approval/blueprint-service.js +589 -0
- package/dist/server/flow-surfaces/approval/blueprint.d.ts +21 -0
- package/dist/server/flow-surfaces/approval/blueprint.js +187 -0
- package/dist/server/flow-surfaces/approval/builder.d.ts +225 -0
- package/dist/server/flow-surfaces/approval/builder.js +384 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.d.ts +33 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.js +156 -0
- package/dist/server/flow-surfaces/approval/index.d.ts +14 -0
- package/dist/server/flow-surfaces/approval/index.js +40 -0
- package/dist/server/flow-surfaces/approval/runtime-config.d.ts +44 -0
- package/dist/server/flow-surfaces/approval/runtime-config.js +299 -0
- package/dist/server/flow-surfaces/approval/semantic-use.d.ts +23 -0
- package/dist/server/flow-surfaces/approval/semantic-use.js +155 -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 +1007 -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/defaults.d.ts +26 -0
- package/dist/server/flow-surfaces/blueprint/defaults.js +133 -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 +416 -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 +193 -0
- package/dist/server/flow-surfaces/blueprint/public-types.js +24 -0
- package/dist/server/flow-surfaces/builder.d.ts +211 -0
- package/dist/server/flow-surfaces/builder.js +1029 -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 +78 -0
- package/dist/server/flow-surfaces/catalog.js +3496 -0
- package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
- package/dist/server/flow-surfaces/chart-config.js +1394 -0
- package/dist/server/flow-surfaces/compose-compiler.d.ts +108 -0
- package/dist/server/flow-surfaces/compose-compiler.js +167 -0
- package/dist/server/flow-surfaces/compose-runtime.d.ts +93 -0
- package/dist/server/flow-surfaces/compose-runtime.js +375 -0
- package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
- package/dist/server/flow-surfaces/configure-options.js +827 -0
- package/dist/server/flow-surfaces/constants.d.ts +351 -0
- package/dist/server/flow-surfaces/constants.js +104 -0
- package/dist/server/flow-surfaces/context.d.ts +72 -0
- package/dist/server/flow-surfaces/context.js +556 -0
- package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
- package/dist/server/flow-surfaces/contract-guard.js +402 -0
- package/dist/server/flow-surfaces/default-action-popup.d.ts +63 -0
- package/dist/server/flow-surfaces/default-action-popup.js +322 -0
- package/dist/server/flow-surfaces/default-block-actions.d.ts +32 -0
- package/dist/server/flow-surfaces/default-block-actions.js +185 -0
- package/dist/server/flow-surfaces/errors.d.ts +47 -0
- package/dist/server/flow-surfaces/errors.js +145 -0
- package/dist/server/flow-surfaces/executor.d.ts +23 -0
- package/dist/server/flow-surfaces/executor.js +132 -0
- 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 +15 -0
- package/dist/server/flow-surfaces/field-semantics.js +81 -0
- package/dist/server/flow-surfaces/filter-group.d.ts +15 -0
- package/dist/server/flow-surfaces/filter-group.js +94 -0
- package/dist/server/flow-surfaces/index.d.ts +11 -0
- package/dist/server/flow-surfaces/index.js +243 -0
- package/dist/server/flow-surfaces/locator.d.ts +28 -0
- package/dist/server/flow-surfaces/locator.js +240 -0
- package/dist/server/flow-surfaces/node-use-sets.d.ts +15 -0
- package/dist/server/flow-surfaces/node-use-sets.js +131 -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.d.ts +33 -0
- package/dist/server/flow-surfaces/placement.js +195 -0
- 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 +88 -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/public-data-surface-default-filter.d.ts +20 -0
- package/dist/server/flow-surfaces/public-data-surface-default-filter.js +111 -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 +156 -0
- package/dist/server/flow-surfaces/reaction/registry.js +206 -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/route-sync.d.ts +47 -0
- package/dist/server/flow-surfaces/route-sync.js +392 -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 +108 -0
- package/dist/server/flow-surfaces/service-utils.js +811 -0
- package/dist/server/flow-surfaces/service.d.ts +773 -0
- package/dist/server/flow-surfaces/service.js +13008 -0
- package/dist/server/flow-surfaces/support-matrix.d.ts +31 -0
- package/dist/server/flow-surfaces/support-matrix.js +259 -0
- package/dist/server/flow-surfaces/surface-context.d.ts +52 -0
- package/dist/server/flow-surfaces/surface-context.js +437 -0
- 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-display.d.ts +20 -0
- package/dist/server/flow-surfaces/template-display.js +289 -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 +288 -0
- package/dist/server/flow-surfaces/types.js +24 -0
- package/dist/server/plugin.js +2 -0
- package/dist/swagger/flow-surfaces.d.ts +5964 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +1533 -0
- package/dist/swagger/flow-surfaces.examples.js +1758 -0
- package/dist/swagger/flow-surfaces.js +5315 -0
- 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 +5969 -0
- package/dist/swagger/index.js +50 -0
- package/package.json +2 -2
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { FlowSurfaceBuildReactionMetaCapabilitiesInput, FlowSurfaceGetReactionMetaResult } from './types';
|
|
10
|
+
export declare function buildReactionMetaCapabilities(input: FlowSurfaceBuildReactionMetaCapabilitiesInput): Pick<FlowSurfaceGetReactionMetaResult, 'capabilities' | 'unavailable'>;
|
|
11
|
+
export declare function buildGetReactionMetaResult(input: FlowSurfaceBuildReactionMetaCapabilitiesInput): FlowSurfaceGetReactionMetaResult;
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var meta_exports = {};
|
|
38
|
+
__export(meta_exports, {
|
|
39
|
+
buildGetReactionMetaResult: () => buildGetReactionMetaResult,
|
|
40
|
+
buildReactionMetaCapabilities: () => buildReactionMetaCapabilities
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(meta_exports);
|
|
43
|
+
var import_node_crypto = require("node:crypto");
|
|
44
|
+
var import_lodash = __toESM(require("lodash"));
|
|
45
|
+
var import_service_helpers = require("../service-helpers");
|
|
46
|
+
var import_errors = require("./errors");
|
|
47
|
+
var import_registry = require("./registry");
|
|
48
|
+
var import_resolver = require("./resolver");
|
|
49
|
+
const STRING_OPERATORS = ["$includes", "$notIncludes", "$eq", "$ne", "$empty", "$notEmpty"];
|
|
50
|
+
const ARRAY_OPERATORS = ["$match", "$notMatch", "$anyOf", "$noneOf", "$empty", "$notEmpty"];
|
|
51
|
+
const OBJECT_OPERATORS = ["$eq", "$ne"];
|
|
52
|
+
const DATETIME_OPERATORS = [
|
|
53
|
+
"$dateOn",
|
|
54
|
+
"$dateNotOn",
|
|
55
|
+
"$dateBefore",
|
|
56
|
+
"$dateAfter",
|
|
57
|
+
"$dateNotBefore",
|
|
58
|
+
"$dateNotAfter",
|
|
59
|
+
"$dateBetween",
|
|
60
|
+
"$empty",
|
|
61
|
+
"$notEmpty"
|
|
62
|
+
];
|
|
63
|
+
const NUMBER_OPERATORS = ["$eq", "$ne", "$gt", "$gte", "$lt", "$lte", "$empty", "$notEmpty"];
|
|
64
|
+
const ID_OPERATORS = ["$eq", "$ne", "$exists", "$notExists"];
|
|
65
|
+
const ENUM_OPERATORS = ["$eq", "$ne", "$in", "$notIn", "$empty", "$notEmpty"];
|
|
66
|
+
const TIME_OPERATORS = ["$eq", "$neq", "$empty", "$notEmpty"];
|
|
67
|
+
const BOOLEAN_OPERATORS = ["$isTruly", "$isFalsy", "$empty", "$notEmpty"];
|
|
68
|
+
const FIELD_STATE_BY_SCENE = {
|
|
69
|
+
form: ["visible", "hidden", "hiddenReservedValue", "required", "notRequired", "disabled", "enabled"],
|
|
70
|
+
details: ["visible", "hidden", "hiddenReservedValue"],
|
|
71
|
+
subForm: ["visible", "hidden", "hiddenReservedValue", "required", "notRequired", "disabled", "enabled"]
|
|
72
|
+
};
|
|
73
|
+
const CONTEXT_ROOT_BY_SCENE = {
|
|
74
|
+
form: "formValues",
|
|
75
|
+
details: "record",
|
|
76
|
+
subForm: "formValues"
|
|
77
|
+
};
|
|
78
|
+
function getAllReactionKinds() {
|
|
79
|
+
return Object.keys(import_registry.FLOW_SURFACE_REACTION_SLOT_REGISTRY);
|
|
80
|
+
}
|
|
81
|
+
function buildStableFingerprintString(value) {
|
|
82
|
+
if (import_lodash.default.isNil(value)) {
|
|
83
|
+
return "null";
|
|
84
|
+
}
|
|
85
|
+
if (Array.isArray(value)) {
|
|
86
|
+
return `[${value.map((item) => buildStableFingerprintString(item)).join(",")}]`;
|
|
87
|
+
}
|
|
88
|
+
if (import_lodash.default.isPlainObject(value)) {
|
|
89
|
+
const entries = Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${buildStableFingerprintString(value[key])}`);
|
|
90
|
+
return `{${entries.join(",")}}`;
|
|
91
|
+
}
|
|
92
|
+
return JSON.stringify(value);
|
|
93
|
+
}
|
|
94
|
+
function buildReactionFingerprint(value) {
|
|
95
|
+
return (0, import_node_crypto.createHash)("sha1").update(buildStableFingerprintString(value)).digest("hex");
|
|
96
|
+
}
|
|
97
|
+
function buildConditionOperatorsByPath(context) {
|
|
98
|
+
const operatorsByPath = {};
|
|
99
|
+
for (const [path, info] of collectContextPathEntries(context)) {
|
|
100
|
+
operatorsByPath[path] = getOperatorsForContextInfo(info);
|
|
101
|
+
}
|
|
102
|
+
return operatorsByPath;
|
|
103
|
+
}
|
|
104
|
+
function collectContextPathEntries(context) {
|
|
105
|
+
const result = /* @__PURE__ */ new Map();
|
|
106
|
+
const visit = (prefix, info) => {
|
|
107
|
+
if (!prefix || !info) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
result.set(prefix, info);
|
|
111
|
+
for (const [childKey, childInfo] of Object.entries(info.properties || {})) {
|
|
112
|
+
visit(`${prefix}.${childKey}`, childInfo);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
for (const [key, info] of Object.entries((context == null ? void 0 : context.vars) || {})) {
|
|
116
|
+
visit(key, info);
|
|
117
|
+
}
|
|
118
|
+
return result;
|
|
119
|
+
}
|
|
120
|
+
function getOperatorsForContextInfo(info) {
|
|
121
|
+
const normalizedInterface = String((info == null ? void 0 : info.interface) || "").trim();
|
|
122
|
+
if (normalizedInterface === "checkbox") {
|
|
123
|
+
return BOOLEAN_OPERATORS;
|
|
124
|
+
}
|
|
125
|
+
if (normalizedInterface === "time") {
|
|
126
|
+
return TIME_OPERATORS;
|
|
127
|
+
}
|
|
128
|
+
if (normalizedInterface === "id") {
|
|
129
|
+
return ID_OPERATORS;
|
|
130
|
+
}
|
|
131
|
+
if (normalizedInterface === "multipleSelect" || normalizedInterface === "checkboxGroup") {
|
|
132
|
+
return ARRAY_OPERATORS;
|
|
133
|
+
}
|
|
134
|
+
if (normalizedInterface === "select" || normalizedInterface === "radioGroup" || ((info == null ? void 0 : info.enumValues) || []).length) {
|
|
135
|
+
return ENUM_OPERATORS;
|
|
136
|
+
}
|
|
137
|
+
switch (info == null ? void 0 : info.type) {
|
|
138
|
+
case "number":
|
|
139
|
+
return NUMBER_OPERATORS;
|
|
140
|
+
case "boolean":
|
|
141
|
+
return BOOLEAN_OPERATORS;
|
|
142
|
+
case "array":
|
|
143
|
+
return ARRAY_OPERATORS;
|
|
144
|
+
case "object":
|
|
145
|
+
return OBJECT_OPERATORS;
|
|
146
|
+
default:
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
if (["date", "dateOnly", "datetime", "datetimeNoTz", "createdAt", "updatedAt", "unixTimestamp"].includes(
|
|
150
|
+
normalizedInterface
|
|
151
|
+
)) {
|
|
152
|
+
return DATETIME_OPERATORS;
|
|
153
|
+
}
|
|
154
|
+
return STRING_OPERATORS;
|
|
155
|
+
}
|
|
156
|
+
function getCanonicalRulesFromNode(node, capability) {
|
|
157
|
+
const stepRoot = import_lodash.default.get(node, ["stepParams", capability.resolvedSlot.flowKey, capability.resolvedSlot.stepKey]);
|
|
158
|
+
const rawValue = capability.resolvedSlot.valuePath == null ? stepRoot : import_lodash.default.get(stepRoot, capability.resolvedSlot.valuePath || "");
|
|
159
|
+
return Array.isArray(rawValue) ? import_lodash.default.cloneDeep(rawValue) : [];
|
|
160
|
+
}
|
|
161
|
+
function normalizeCapabilityRules(input, capability, canonicalRules) {
|
|
162
|
+
var _a;
|
|
163
|
+
const normalizer = (_a = input.normalizeRules) == null ? void 0 : _a[capability.kind];
|
|
164
|
+
if (!normalizer) {
|
|
165
|
+
return import_lodash.default.cloneDeep(canonicalRules);
|
|
166
|
+
}
|
|
167
|
+
return normalizer({
|
|
168
|
+
kind: capability.kind,
|
|
169
|
+
resolvedScene: capability.resolvedScene,
|
|
170
|
+
resolvedSlot: capability.resolvedSlot,
|
|
171
|
+
canonicalRules,
|
|
172
|
+
node: input.resolvedTarget.node,
|
|
173
|
+
context: input.context
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function inferFieldOptionSupport(scene) {
|
|
177
|
+
switch (scene) {
|
|
178
|
+
case "form":
|
|
179
|
+
return {
|
|
180
|
+
supportsDefault: true,
|
|
181
|
+
supportsAssign: true,
|
|
182
|
+
supportsState: FIELD_STATE_BY_SCENE.form
|
|
183
|
+
};
|
|
184
|
+
case "details":
|
|
185
|
+
return {
|
|
186
|
+
supportsDefault: false,
|
|
187
|
+
supportsAssign: false,
|
|
188
|
+
supportsState: FIELD_STATE_BY_SCENE.details
|
|
189
|
+
};
|
|
190
|
+
case "subForm":
|
|
191
|
+
return {
|
|
192
|
+
supportsDefault: false,
|
|
193
|
+
supportsAssign: true,
|
|
194
|
+
supportsState: FIELD_STATE_BY_SCENE.subForm
|
|
195
|
+
};
|
|
196
|
+
default:
|
|
197
|
+
return {
|
|
198
|
+
supportsDefault: false,
|
|
199
|
+
supportsAssign: false,
|
|
200
|
+
supportsState: []
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function inferNodeFieldLabel(node, fallback) {
|
|
205
|
+
var _a, _b, _c, _d;
|
|
206
|
+
const labelCandidates = [
|
|
207
|
+
(_a = node == null ? void 0 : node.props) == null ? void 0 : _a.label,
|
|
208
|
+
(_b = node == null ? void 0 : node.decoratorProps) == null ? void 0 : _b.label,
|
|
209
|
+
(_c = node == null ? void 0 : node.props) == null ? void 0 : _c.title,
|
|
210
|
+
(_d = node == null ? void 0 : node.decoratorProps) == null ? void 0 : _d.title,
|
|
211
|
+
import_lodash.default.get(node, ["stepParams", "cardSettings", "titleDescription", "title"])
|
|
212
|
+
];
|
|
213
|
+
for (const candidate of labelCandidates) {
|
|
214
|
+
const normalized = String(candidate || "").trim();
|
|
215
|
+
if (normalized) {
|
|
216
|
+
return normalized;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return fallback;
|
|
220
|
+
}
|
|
221
|
+
function buildContextPathIndex(context) {
|
|
222
|
+
const entries = collectContextPathEntries(context);
|
|
223
|
+
return new Map(entries);
|
|
224
|
+
}
|
|
225
|
+
function enrichFieldOptionFromContext(option, contextPathIndex, scene) {
|
|
226
|
+
const contextRoot = CONTEXT_ROOT_BY_SCENE[scene];
|
|
227
|
+
if (!contextRoot) {
|
|
228
|
+
return option;
|
|
229
|
+
}
|
|
230
|
+
const contextInfo = contextPathIndex.get(`${contextRoot}.${option.path}`);
|
|
231
|
+
return {
|
|
232
|
+
...option,
|
|
233
|
+
...(contextInfo == null ? void 0 : contextInfo.interface) ? { interface: contextInfo.interface } : {},
|
|
234
|
+
...(contextInfo == null ? void 0 : contextInfo.type) ? { type: contextInfo.type } : {}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function collectFieldOptionsFromNode(node, context, scene) {
|
|
238
|
+
const dedupe = /* @__PURE__ */ new Map();
|
|
239
|
+
const support = inferFieldOptionSupport(scene);
|
|
240
|
+
const contextPathIndex = buildContextPathIndex(context);
|
|
241
|
+
const visit = (current) => {
|
|
242
|
+
var _a, _b, _c, _d, _e, _f;
|
|
243
|
+
if (!current || typeof current !== "object") {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
const fieldInit = ((_b = (_a = current == null ? void 0 : current.stepParams) == null ? void 0 : _a.fieldSettings) == null ? void 0 : _b.init) || ((_f = (_e = (_d = (_c = current == null ? void 0 : current.subModels) == null ? void 0 : _c.field) == null ? void 0 : _d.stepParams) == null ? void 0 : _e.fieldSettings) == null ? void 0 : _f.init);
|
|
247
|
+
const fieldPath = String((fieldInit == null ? void 0 : fieldInit.fieldPath) || "").trim();
|
|
248
|
+
if (fieldPath) {
|
|
249
|
+
const normalizedPath = (0, import_service_helpers.normalizeFieldPath)(fieldPath, fieldInit == null ? void 0 : fieldInit.associationPathName);
|
|
250
|
+
if (normalizedPath && !dedupe.has(normalizedPath)) {
|
|
251
|
+
const baseOption = {
|
|
252
|
+
path: normalizedPath,
|
|
253
|
+
label: inferNodeFieldLabel(current, normalizedPath),
|
|
254
|
+
supportsDefault: support.supportsDefault,
|
|
255
|
+
supportsAssign: support.supportsAssign,
|
|
256
|
+
supportsState: support.supportsState
|
|
257
|
+
};
|
|
258
|
+
dedupe.set(normalizedPath, enrichFieldOptionFromContext(baseOption, contextPathIndex, scene));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
for (const child of Object.values(current.subModels || {})) {
|
|
262
|
+
const children = Array.isArray(child) ? child : [child];
|
|
263
|
+
children.forEach((item) => visit(item));
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
visit(node);
|
|
267
|
+
return [...dedupe.values()].sort((a, b) => a.path.localeCompare(b.path));
|
|
268
|
+
}
|
|
269
|
+
function collectFieldOptionsFromContext(context, scene) {
|
|
270
|
+
var _a;
|
|
271
|
+
const contextRoot = CONTEXT_ROOT_BY_SCENE[scene];
|
|
272
|
+
const support = inferFieldOptionSupport(scene);
|
|
273
|
+
if (!contextRoot) {
|
|
274
|
+
return [];
|
|
275
|
+
}
|
|
276
|
+
const root = (_a = context == null ? void 0 : context.vars) == null ? void 0 : _a[contextRoot];
|
|
277
|
+
const result = /* @__PURE__ */ new Map();
|
|
278
|
+
const visit = (prefix, info) => {
|
|
279
|
+
if (!prefix || !info) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
if (!info.properties || !Object.keys(info.properties).length) {
|
|
283
|
+
result.set(prefix, {
|
|
284
|
+
path: prefix,
|
|
285
|
+
label: info.title || prefix,
|
|
286
|
+
interface: info.interface,
|
|
287
|
+
type: info.type,
|
|
288
|
+
supportsDefault: support.supportsDefault,
|
|
289
|
+
supportsAssign: support.supportsAssign,
|
|
290
|
+
supportsState: support.supportsState
|
|
291
|
+
});
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
for (const [childKey, childInfo] of Object.entries(info.properties)) {
|
|
295
|
+
visit(prefix ? `${prefix}.${childKey}` : childKey, childInfo);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
for (const [childKey, childInfo] of Object.entries((root == null ? void 0 : root.properties) || {})) {
|
|
299
|
+
visit(childKey, childInfo);
|
|
300
|
+
}
|
|
301
|
+
return [...result.values()].sort((a, b) => a.path.localeCompare(b.path));
|
|
302
|
+
}
|
|
303
|
+
function collectFieldOptions(node, context, scene) {
|
|
304
|
+
const fromNode = collectFieldOptionsFromNode(node, context, scene);
|
|
305
|
+
return fromNode.length ? fromNode : collectFieldOptionsFromContext(context, scene);
|
|
306
|
+
}
|
|
307
|
+
function buildSupportedActions(capability) {
|
|
308
|
+
switch (capability.kind) {
|
|
309
|
+
case "blockLinkage":
|
|
310
|
+
return [{ type: "setBlockState", states: ["visible", "hidden"] }, { type: "runjs" }];
|
|
311
|
+
case "actionLinkage":
|
|
312
|
+
return [
|
|
313
|
+
{ type: "setActionState", states: ["visible", "hidden", "hiddenText", "enabled", "disabled"] },
|
|
314
|
+
{ type: "runjs" }
|
|
315
|
+
];
|
|
316
|
+
case "fieldLinkage":
|
|
317
|
+
if (capability.resolvedScene === "details") {
|
|
318
|
+
return [{ type: "setFieldState", states: FIELD_STATE_BY_SCENE.details }, { type: "runjs" }];
|
|
319
|
+
}
|
|
320
|
+
if (capability.resolvedScene === "subForm") {
|
|
321
|
+
return [
|
|
322
|
+
{ type: "setFieldState", states: FIELD_STATE_BY_SCENE.subForm },
|
|
323
|
+
{ type: "assignField" },
|
|
324
|
+
{ type: "runjs" }
|
|
325
|
+
];
|
|
326
|
+
}
|
|
327
|
+
return [
|
|
328
|
+
{ type: "setFieldState", states: FIELD_STATE_BY_SCENE.form },
|
|
329
|
+
{ type: "assignField" },
|
|
330
|
+
{ type: "setFieldDefaultValue" },
|
|
331
|
+
{ type: "runjs" }
|
|
332
|
+
];
|
|
333
|
+
default:
|
|
334
|
+
return [];
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function buildUnavailableCapability(kind) {
|
|
338
|
+
if (kind === "fieldValue") {
|
|
339
|
+
return {
|
|
340
|
+
kind,
|
|
341
|
+
code: import_errors.FLOW_SURFACE_REACTION_FORM_ONLY,
|
|
342
|
+
reason: "Field value rules are only available on create/edit form blocks"
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
return {
|
|
346
|
+
kind,
|
|
347
|
+
code: import_errors.FLOW_SURFACE_REACTION_UNSUPPORTED_TARGET_KIND,
|
|
348
|
+
reason: `The current target does not support ${kind}`
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function buildCapabilityFingerprint(capability, canonicalRules) {
|
|
352
|
+
return buildReactionFingerprint({
|
|
353
|
+
kind: capability.kind,
|
|
354
|
+
scene: capability.resolvedScene,
|
|
355
|
+
slot: capability.resolvedSlot,
|
|
356
|
+
canonicalRules
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function buildFieldValueCapability(input, capability) {
|
|
360
|
+
const storageNode = (0, import_resolver.resolveReactionStorageNode)(input.resolvedTarget, capability);
|
|
361
|
+
const canonicalRules = getCanonicalRulesFromNode(storageNode, capability);
|
|
362
|
+
return {
|
|
363
|
+
kind: "fieldValue",
|
|
364
|
+
resolvedScene: capability.resolvedScene,
|
|
365
|
+
resolvedSlot: capability.resolvedSlot,
|
|
366
|
+
fingerprint: buildCapabilityFingerprint(capability, canonicalRules),
|
|
367
|
+
normalizedRules: normalizeCapabilityRules(input, capability, canonicalRules),
|
|
368
|
+
canonicalRules,
|
|
369
|
+
context: input.context,
|
|
370
|
+
targetFields: collectFieldOptions(input.resolvedTarget.node, input.context, capability.resolvedScene),
|
|
371
|
+
valueExprMeta: {
|
|
372
|
+
supportedSources: ["literal", "path", "runjs"],
|
|
373
|
+
runjsScene: "fieldValue"
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
function buildLinkageCapability(input, capability) {
|
|
378
|
+
const storageNode = (0, import_resolver.resolveReactionStorageNode)(input.resolvedTarget, capability);
|
|
379
|
+
const canonicalRules = getCanonicalRulesFromNode(storageNode, capability);
|
|
380
|
+
const base = {
|
|
381
|
+
resolvedScene: capability.resolvedScene,
|
|
382
|
+
resolvedSlot: capability.resolvedSlot,
|
|
383
|
+
fingerprint: buildCapabilityFingerprint(capability, canonicalRules),
|
|
384
|
+
canonicalRules,
|
|
385
|
+
context: input.context,
|
|
386
|
+
supportedActions: buildSupportedActions(capability),
|
|
387
|
+
conditionMeta: {
|
|
388
|
+
operatorsByPath: buildConditionOperatorsByPath(input.context)
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
if (capability.kind === "fieldLinkage") {
|
|
392
|
+
return {
|
|
393
|
+
...base,
|
|
394
|
+
kind: "fieldLinkage",
|
|
395
|
+
normalizedRules: normalizeCapabilityRules(input, capability, canonicalRules),
|
|
396
|
+
targetFields: collectFieldOptions(input.resolvedTarget.node, input.context, capability.resolvedScene),
|
|
397
|
+
...capability.resolvedScene === "details" ? {} : {
|
|
398
|
+
valueExprMeta: {
|
|
399
|
+
supportedSources: ["literal", "path", "runjs"],
|
|
400
|
+
runjsScene: "linkage"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
if (capability.kind === "blockLinkage") {
|
|
406
|
+
return {
|
|
407
|
+
...base,
|
|
408
|
+
kind: "blockLinkage",
|
|
409
|
+
normalizedRules: normalizeCapabilityRules(input, capability, canonicalRules)
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
return {
|
|
413
|
+
...base,
|
|
414
|
+
kind: "actionLinkage",
|
|
415
|
+
normalizedRules: normalizeCapabilityRules(input, capability, canonicalRules)
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
function buildReactionMetaCapabilities(input) {
|
|
419
|
+
const capabilities = [];
|
|
420
|
+
const unavailable = [];
|
|
421
|
+
const capabilityMap = new Map(input.resolvedTarget.capabilities.map((item) => [item.kind, item]));
|
|
422
|
+
for (const kind of getAllReactionKinds()) {
|
|
423
|
+
const capability = capabilityMap.get(kind);
|
|
424
|
+
if (!capability) {
|
|
425
|
+
unavailable.push(buildUnavailableCapability(kind));
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (kind === "fieldValue") {
|
|
429
|
+
capabilities.push(buildFieldValueCapability(input, capability));
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
capabilities.push(buildLinkageCapability(input, capability));
|
|
433
|
+
}
|
|
434
|
+
return {
|
|
435
|
+
capabilities,
|
|
436
|
+
unavailable
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function buildGetReactionMetaResult(input) {
|
|
440
|
+
const { capabilities, unavailable } = buildReactionMetaCapabilities(input);
|
|
441
|
+
return {
|
|
442
|
+
target: input.resolvedTarget.target,
|
|
443
|
+
capabilities,
|
|
444
|
+
unavailable
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
448
|
+
0 && (module.exports = {
|
|
449
|
+
buildGetReactionMetaResult,
|
|
450
|
+
buildReactionMetaCapabilities
|
|
451
|
+
});
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { FlowSurfaceReactionKind, FlowSurfaceReactionScene, FlowSurfaceReactionSlot } from './types';
|
|
10
|
+
export declare const FLOW_SURFACE_REACTION_SLOT_REGISTRY: {
|
|
11
|
+
readonly fieldValue: {
|
|
12
|
+
readonly form: {
|
|
13
|
+
readonly flowKey: "formModelSettings";
|
|
14
|
+
readonly stepKey: "assignRules";
|
|
15
|
+
readonly valuePath: "value";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly blockLinkage: {
|
|
19
|
+
readonly block: {
|
|
20
|
+
readonly flowKey: "cardSettings";
|
|
21
|
+
readonly stepKey: "linkageRules";
|
|
22
|
+
readonly valuePath: any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly fieldLinkage: {
|
|
26
|
+
readonly form: {
|
|
27
|
+
readonly flowKey: "eventSettings";
|
|
28
|
+
readonly stepKey: "linkageRules";
|
|
29
|
+
readonly valuePath: "value";
|
|
30
|
+
};
|
|
31
|
+
readonly details: {
|
|
32
|
+
readonly flowKey: "detailsSettings";
|
|
33
|
+
readonly stepKey: "linkageRules";
|
|
34
|
+
readonly valuePath: "value";
|
|
35
|
+
};
|
|
36
|
+
readonly subForm: {
|
|
37
|
+
readonly flowKey: "eventSettings";
|
|
38
|
+
readonly stepKey: "linkageRules";
|
|
39
|
+
readonly valuePath: "value";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly actionLinkage: {
|
|
43
|
+
readonly action: {
|
|
44
|
+
readonly flowKey: "buttonSettings";
|
|
45
|
+
readonly stepKey: "linkageRules";
|
|
46
|
+
readonly valuePath: any;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const FLOW_SURFACE_REACTION_SUPPORTED_KINDS_BY_USE: {
|
|
51
|
+
readonly CreateFormModel: readonly ["fieldValue", "blockLinkage", "fieldLinkage"];
|
|
52
|
+
readonly EditFormModel: readonly ["fieldValue", "blockLinkage", "fieldLinkage"];
|
|
53
|
+
readonly FormBlockModel: readonly ["blockLinkage", "fieldLinkage"];
|
|
54
|
+
readonly ApplyFormModel: readonly ["fieldValue", "blockLinkage", "fieldLinkage"];
|
|
55
|
+
readonly ProcessFormModel: readonly ["fieldValue", "blockLinkage", "fieldLinkage"];
|
|
56
|
+
readonly DetailsBlockModel: readonly ["blockLinkage", "fieldLinkage"];
|
|
57
|
+
readonly ApprovalDetailsModel: readonly ["blockLinkage", "fieldLinkage"];
|
|
58
|
+
readonly ApplyTaskCardDetailsModel: readonly ["blockLinkage", "fieldLinkage"];
|
|
59
|
+
readonly ApprovalTaskCardDetailsModel: readonly ["blockLinkage", "fieldLinkage"];
|
|
60
|
+
readonly TableBlockModel: readonly ["blockLinkage"];
|
|
61
|
+
readonly CalendarBlockModel: readonly ["blockLinkage"];
|
|
62
|
+
readonly ListBlockModel: readonly ["blockLinkage"];
|
|
63
|
+
readonly GridCardBlockModel: readonly ["blockLinkage"];
|
|
64
|
+
readonly MarkdownBlockModel: readonly ["blockLinkage"];
|
|
65
|
+
readonly IframeBlockModel: readonly ["blockLinkage"];
|
|
66
|
+
readonly MapBlockModel: readonly ["blockLinkage"];
|
|
67
|
+
readonly CommentsBlockModel: readonly ["blockLinkage"];
|
|
68
|
+
readonly ChartBlockModel: readonly ["blockLinkage"];
|
|
69
|
+
readonly ActionPanelBlockModel: readonly ["blockLinkage"];
|
|
70
|
+
readonly AddNewActionModel: readonly ["actionLinkage"];
|
|
71
|
+
readonly ViewActionModel: readonly ["actionLinkage"];
|
|
72
|
+
readonly EditActionModel: readonly ["actionLinkage"];
|
|
73
|
+
readonly PopupCollectionActionModel: readonly ["actionLinkage"];
|
|
74
|
+
readonly DeleteActionModel: readonly ["actionLinkage"];
|
|
75
|
+
readonly UpdateRecordActionModel: readonly ["actionLinkage"];
|
|
76
|
+
readonly BulkUpdateActionModel: readonly ["actionLinkage"];
|
|
77
|
+
readonly BulkDeleteActionModel: readonly ["actionLinkage"];
|
|
78
|
+
readonly BulkEditActionModel: readonly ["actionLinkage"];
|
|
79
|
+
readonly DuplicateActionModel: readonly ["actionLinkage"];
|
|
80
|
+
readonly AddChildActionModel: readonly ["actionLinkage"];
|
|
81
|
+
readonly MailSendActionModel: readonly ["actionLinkage"];
|
|
82
|
+
readonly JSCollectionActionModel: readonly ["actionLinkage"];
|
|
83
|
+
readonly JSRecordActionModel: readonly ["actionLinkage"];
|
|
84
|
+
readonly JSFormActionModel: readonly ["actionLinkage"];
|
|
85
|
+
readonly JSItemActionModel: readonly ["actionLinkage"];
|
|
86
|
+
readonly FilterFormJSActionModel: readonly ["actionLinkage"];
|
|
87
|
+
readonly JSActionModel: readonly ["actionLinkage"];
|
|
88
|
+
readonly CalendarTodayActionModel: readonly ["actionLinkage"];
|
|
89
|
+
readonly CalendarNavActionModel: readonly ["actionLinkage"];
|
|
90
|
+
readonly CalendarTitleActionModel: readonly ["actionLinkage"];
|
|
91
|
+
readonly CalendarViewSelectActionModel: readonly ["actionLinkage"];
|
|
92
|
+
readonly LinkActionModel: readonly ["actionLinkage"];
|
|
93
|
+
readonly ExportActionModel: readonly ["actionLinkage"];
|
|
94
|
+
readonly ExportAttachmentActionModel: readonly ["actionLinkage"];
|
|
95
|
+
readonly ImportActionModel: readonly ["actionLinkage"];
|
|
96
|
+
readonly CollectionTriggerWorkflowActionModel: readonly ["actionLinkage"];
|
|
97
|
+
readonly RecordTriggerWorkflowActionModel: readonly ["actionLinkage"];
|
|
98
|
+
readonly FormTriggerWorkflowActionModel: readonly ["actionLinkage"];
|
|
99
|
+
readonly WorkbenchTriggerWorkflowActionModel: readonly ["actionLinkage"];
|
|
100
|
+
readonly RefreshActionModel: readonly ["actionLinkage"];
|
|
101
|
+
readonly FilterActionModel: readonly ["actionLinkage"];
|
|
102
|
+
readonly ExpandCollapseActionModel: readonly ["actionLinkage"];
|
|
103
|
+
readonly FormSubmitActionModel: readonly ["actionLinkage"];
|
|
104
|
+
readonly ApplyFormSubmitModel: readonly ["actionLinkage"];
|
|
105
|
+
readonly ApplyFormSaveDraftModel: readonly ["actionLinkage"];
|
|
106
|
+
readonly ApplyFormWithdrawModel: readonly ["actionLinkage"];
|
|
107
|
+
readonly ProcessFormApproveModel: readonly ["actionLinkage"];
|
|
108
|
+
readonly ProcessFormRejectModel: readonly ["actionLinkage"];
|
|
109
|
+
readonly ProcessFormReturnModel: readonly ["actionLinkage"];
|
|
110
|
+
readonly ProcessFormDelegateModel: readonly ["actionLinkage"];
|
|
111
|
+
readonly ProcessFormAddAssigneeModel: readonly ["actionLinkage"];
|
|
112
|
+
readonly FilterFormSubmitActionModel: readonly ["actionLinkage"];
|
|
113
|
+
readonly FilterFormResetActionModel: readonly ["actionLinkage"];
|
|
114
|
+
readonly FilterFormCollapseActionModel: readonly ["actionLinkage"];
|
|
115
|
+
readonly SubFormFieldModel: readonly ["fieldLinkage"];
|
|
116
|
+
readonly SubFormListFieldModel: readonly ["fieldLinkage"];
|
|
117
|
+
};
|
|
118
|
+
export declare const FLOW_SURFACE_BLOCK_LINKAGE_STATES: readonly ["visible", "hidden"];
|
|
119
|
+
export declare const FLOW_SURFACE_ACTION_LINKAGE_STATES: readonly ["visible", "hidden", "hiddenText", "enabled", "disabled"];
|
|
120
|
+
export declare const FLOW_SURFACE_FIELD_LINKAGE_STATES_BY_SCENE: {
|
|
121
|
+
readonly form: readonly ["visible", "hidden", "hiddenReservedValue", "required", "notRequired", "disabled", "enabled"];
|
|
122
|
+
readonly details: readonly ["visible", "hidden", "hiddenReservedValue"];
|
|
123
|
+
readonly subForm: readonly ["visible", "hidden", "hiddenReservedValue", "required", "notRequired", "disabled", "enabled"];
|
|
124
|
+
};
|
|
125
|
+
export declare const FLOW_SURFACE_FIELD_LINKAGE_ACTION_TYPES_BY_SCENE: {
|
|
126
|
+
readonly form: readonly ["setFieldState", "assignField", "setFieldDefaultValue", "runjs"];
|
|
127
|
+
readonly details: readonly ["setFieldState", "runjs"];
|
|
128
|
+
readonly subForm: readonly ["setFieldState", "assignField", "runjs"];
|
|
129
|
+
};
|
|
130
|
+
export declare const FLOW_SURFACE_LINKAGE_CANONICAL_ACTION_NAMES: {
|
|
131
|
+
readonly block: {
|
|
132
|
+
readonly setBlockState: "linkageSetBlockProps";
|
|
133
|
+
readonly runjs: "linkageRunjs";
|
|
134
|
+
};
|
|
135
|
+
readonly action: {
|
|
136
|
+
readonly setActionState: "linkageSetActionProps";
|
|
137
|
+
readonly runjs: "linkageRunjs";
|
|
138
|
+
};
|
|
139
|
+
readonly form: {
|
|
140
|
+
readonly setFieldState: "linkageSetFieldProps";
|
|
141
|
+
readonly assignField: "linkageAssignField";
|
|
142
|
+
readonly setFieldDefaultValue: "setFieldsDefaultValue";
|
|
143
|
+
readonly runjs: "linkageRunjs";
|
|
144
|
+
};
|
|
145
|
+
readonly details: {
|
|
146
|
+
readonly setFieldState: "linkageSetDetailsFieldProps";
|
|
147
|
+
readonly runjs: "linkageRunjs";
|
|
148
|
+
};
|
|
149
|
+
readonly subForm: {
|
|
150
|
+
readonly setFieldState: "subFormLinkageSetFieldProps";
|
|
151
|
+
readonly assignField: "subFormLinkageAssignField";
|
|
152
|
+
readonly runjs: "linkageRunjs";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export declare function getReactionKindsForUse(use?: string): FlowSurfaceReactionKind[];
|
|
156
|
+
export declare function getReactionSlot(kind: FlowSurfaceReactionKind, scene: FlowSurfaceReactionScene): FlowSurfaceReactionSlot | undefined;
|