@nocobase/plugin-workflow 2.1.11 → 2.2.0-alpha.2
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/119.e7dbd037d52d1286.js +10 -0
- package/dist/client/142.d84a976875799df4.js +10 -0
- package/dist/client/159.3d5abee06b818db3.js +10 -0
- package/dist/client/276.69fb2aea13bc7c37.js +10 -0
- package/dist/client/346.66d060d37843d3d1.js +10 -0
- package/dist/client/382.80ebd002a9971b65.js +10 -0
- package/dist/client/394.d7eacf666590a6ae.js +10 -0
- package/dist/client/438.c4de8f085e490158.js +10 -0
- package/dist/client/509.2f72dd97808f12d1.js +10 -0
- package/dist/client/54.c452a382e9b3953d.js +10 -0
- package/dist/client/{618.c91be3f6e4d73501.js → 618.a97bc812678ab2a7.js} +1 -1
- package/dist/client/635.3f165e9ed7e940b2.js +10 -0
- package/dist/client/67.4117e04bd42f9d42.js +10 -0
- package/dist/client/719.5801e3f1cf81b97b.js +10 -0
- package/dist/client/739.955f18b3dc31ae3a.js +10 -0
- package/dist/client/759.13aab01e6912ed8d.js +10 -0
- package/dist/client/772.1ebaef11a0ac8688.js +10 -0
- package/dist/client/782.332fd345a98b82c2.js +10 -0
- package/dist/client/828.77de843c49fb307a.js +10 -0
- package/dist/client/87.d2c2b5b1cae08bfc.js +10 -0
- package/dist/client/938.77649c32dae1c225.js +10 -0
- package/dist/client/964.cb1ecff7a46687b7.js +10 -0
- package/dist/client/972.4da2796f3f2df874.js +10 -0
- package/dist/client/AddNodeContext.d.ts +1 -9
- package/dist/client/Branch.d.ts +1 -1
- package/dist/client/BranchContext.d.ts +2 -10
- package/dist/client/FlowContext.d.ts +10 -5
- package/dist/client/NodeClipboardContext.d.ts +12 -2
- package/dist/client/NodeDragContext.d.ts +14 -2
- package/dist/client/RemoveNodeContext.d.ts +16 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/nodeVariableUtils.d.ts +7 -6
- package/dist/client/nodes/calculation.d.ts +3 -75
- package/dist/client/nodes/condition.d.ts +7 -111
- package/dist/client/nodes/create.d.ts +3 -124
- package/dist/client/nodes/destroy.d.ts +2 -57
- package/dist/client/nodes/end.d.ts +2 -23
- package/dist/client/nodes/index.d.ts +2 -91
- package/dist/client/nodes/multi-conditions.d.ts +10 -48
- package/dist/client/nodes/output.d.ts +2 -44
- package/dist/client/nodes/query.d.ts +3 -255
- package/dist/client/nodes/update.d.ts +2 -117
- package/dist/client/style.d.ts +7 -27
- package/dist/client/triggers/collection.d.ts +3 -154
- package/dist/client/triggers/index.d.ts +2 -36
- package/dist/client/triggers/schedule/index.d.ts +8 -65
- package/dist/client/utils.d.ts +4 -5
- package/dist/client/variable.d.ts +4 -44
- package/dist/client-v2/119.81195bcd0d451279.js +10 -0
- package/dist/client-v2/142.3d386748090ff6d3.js +10 -0
- package/dist/client-v2/159.cb221540c286cd32.js +10 -0
- package/dist/client-v2/224.44a5e1227bee33fb.js +10 -0
- package/dist/client-v2/276.43297f402f31970e.js +10 -0
- package/dist/client-v2/326.bdc99ad8e7590970.js +10 -0
- package/dist/client-v2/346.8c038b3c99d4fdc9.js +10 -0
- package/dist/client-v2/382.05f5482bb512b179.js +10 -0
- package/dist/client-v2/387.ab3eac2eb447f36f.js +10 -0
- package/dist/client-v2/394.515ed058e7f72797.js +10 -0
- package/dist/client-v2/438.b7df0416b66f8f64.js +10 -0
- package/dist/client-v2/513.ab2bdd96ad9ece4d.js +10 -0
- package/dist/client-v2/54.287764bc467d65da.js +10 -0
- package/dist/client-v2/635.37de4abe241b30e8.js +10 -0
- package/dist/client-v2/719.05cf070ef89a78f4.js +10 -0
- package/dist/client-v2/739.906e94bbe6d52a3d.js +10 -0
- package/dist/client-v2/759.7b162ad3adf450f1.js +10 -0
- package/dist/client-v2/772.8e5148d8c1518449.js +10 -0
- package/dist/client-v2/938.717e47af39485b29.js +10 -0
- package/dist/client-v2/ExecutionCanvas.d.ts +15 -0
- package/dist/client-v2/canvas/AddNodeContext.d.ts +35 -0
- package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +33 -0
- package/dist/client-v2/canvas/AddNodeSlot.d.ts +20 -0
- package/dist/client-v2/canvas/Branch.d.ts +32 -0
- package/dist/client-v2/canvas/BranchContext.d.ts +20 -0
- package/dist/client-v2/canvas/BranchRenderContext.d.ts +14 -0
- package/dist/client-v2/canvas/CanvasContent.d.ts +20 -0
- package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +20 -0
- package/dist/client-v2/canvas/Instruction.d.ts +139 -0
- package/dist/{client/triggers/schedule/EndsByField.d.ts → client-v2/canvas/JobButton.d.ts} +3 -3
- package/dist/client-v2/canvas/Node.d.ts +36 -0
- package/dist/client-v2/canvas/NodeClipboardContext.d.ts +64 -0
- package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +27 -0
- package/dist/client-v2/canvas/NodeDragContext.d.ts +83 -0
- package/dist/client-v2/canvas/RemoveNodeContext.d.ts +45 -0
- package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +16 -0
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +39 -0
- package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +15 -0
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +18 -0
- package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +48 -0
- package/dist/client-v2/canvas/addNodeController.d.ts +70 -0
- package/dist/client-v2/canvas/collectionFieldOptions.d.ts +57 -0
- package/dist/client-v2/canvas/contexts.d.ts +84 -0
- package/dist/client-v2/canvas/dropImpact.d.ts +28 -0
- package/dist/client-v2/canvas/instructionAvailability.d.ts +26 -0
- package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +79 -0
- package/dist/client-v2/canvas/nodeTree.d.ts +21 -0
- package/dist/client-v2/canvas/nodeVariableUtils.d.ts +14 -0
- package/dist/client-v2/canvas/removeNodeUtils.d.ts +31 -0
- package/dist/client-v2/canvas/style.d.ts +35 -0
- package/dist/client-v2/canvas/textAreaInsertion.d.ts +14 -0
- package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +23 -0
- package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +40 -0
- package/dist/client-v2/canvas/workflowVariableConverters.d.ts +13 -0
- package/dist/client-v2/components/Calculation.d.ts +18 -0
- package/dist/client-v2/components/ExecutionStatusIcon.d.ts +18 -0
- package/dist/{client/triggers/schedule/RepeatField.d.ts → client-v2/components/ExecutionStatusTag.d.ts} +3 -4
- package/dist/client-v2/components/ExecutionViewHeader.d.ts +29 -0
- package/dist/client-v2/components/ExecutionsDropdown.d.ts +25 -0
- package/dist/client-v2/components/FilterDynamicComponent.d.ts +22 -0
- package/dist/client-v2/components/HideVariableContext.d.ts +11 -0
- package/dist/client-v2/components/JobResultModal.d.ts +11 -0
- package/dist/client-v2/components/RadioWithTooltip.d.ts +23 -0
- package/dist/client-v2/components/SyncModeSelect.d.ts +16 -0
- package/dist/{client/triggers/schedule/OnField.d.ts → client-v2/components/SyncModeTag.d.ts} +3 -3
- package/dist/client-v2/components/TestRunButton.d.ts +36 -0
- package/dist/client-v2/components/TimeoutInput.d.ts +15 -0
- package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +17 -0
- package/dist/client-v2/components/WorkflowDetailsModal.d.ts +25 -0
- package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +16 -0
- package/dist/client-v2/components/WorkflowMenu.d.ts +17 -0
- package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +15 -0
- package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +25 -0
- package/dist/client-v2/components/collection/AppendsSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +16 -0
- package/dist/client-v2/components/collection/CollectionCascader.d.ts +15 -0
- package/dist/client-v2/components/collection/FieldsSelect.d.ts +16 -0
- package/dist/client-v2/components/collection/PaginationFields.d.ts +14 -0
- package/dist/client-v2/components/collection/SortFieldsInput.d.ts +19 -0
- package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +15 -0
- package/dist/client-v2/components/collection/index.d.ts +16 -0
- package/dist/client-v2/components/collection/utils.d.ts +42 -0
- package/dist/client-v2/components/formatResultForDisplay.d.ts +17 -0
- package/dist/client-v2/components/jobStatus.d.ts +27 -0
- package/dist/client-v2/components/renderEngineReference.d.ts +10 -0
- package/dist/client-v2/components/workflowCanvas.d.ts +41 -0
- package/dist/client-v2/constants.d.ts +14 -0
- package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +37 -0
- package/dist/client-v2/index.d.ts +43 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +41 -0
- package/dist/{client → client-v2}/models/NodeDetailsGridModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeDetailsModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/NodeValueModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/TaskCardCommonItemModel.d.ts +1 -1
- package/dist/{client → client-v2}/models/index.d.ts +1 -0
- package/dist/client-v2/models/triggerWorkflows.d.ts +43 -0
- package/dist/client-v2/nodes/calculation.d.ts +38 -0
- package/dist/client-v2/nodes/collectionNode.d.ts +29 -0
- package/dist/client-v2/nodes/components/calculation.d.ts +11 -0
- package/dist/client-v2/nodes/components/collection.d.ts +15 -0
- package/dist/client-v2/nodes/components/condition.d.ts +25 -0
- package/dist/client-v2/nodes/components/conditionShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/create.d.ts +12 -0
- package/dist/client-v2/nodes/components/destroy.d.ts +12 -0
- package/dist/{client/triggers/schedule/ScheduleConfig.d.ts → client-v2/nodes/components/end.d.ts} +1 -1
- package/dist/client-v2/nodes/components/filter.d.ts +16 -0
- package/dist/client-v2/nodes/components/multi-conditions.d.ts +13 -0
- package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +20 -0
- package/dist/client-v2/nodes/components/output.d.ts +10 -0
- package/dist/client-v2/nodes/components/query.d.ts +12 -0
- package/dist/client-v2/nodes/components/update.d.ts +12 -0
- package/dist/client-v2/nodes/condition.d.ts +46 -0
- package/dist/client-v2/nodes/create.d.ts +30 -0
- package/dist/client-v2/nodes/destroy.d.ts +24 -0
- package/dist/client-v2/nodes/end.d.ts +21 -0
- package/dist/client-v2/nodes/multi-conditions.d.ts +34 -0
- package/dist/client-v2/nodes/output.d.ts +29 -0
- package/dist/client-v2/nodes/query.d.ts +32 -0
- package/dist/client-v2/nodes/update.d.ts +25 -0
- package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +13 -0
- package/dist/client-v2/pages/ExecutionViewPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +10 -0
- package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +25 -0
- package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +39 -0
- package/dist/client-v2/pages/WorkflowPane.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +67 -0
- package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +35 -0
- package/dist/client-v2/triggers/TriggerConfig.d.ts +22 -0
- package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +13 -0
- package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +14 -0
- package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +11 -0
- package/dist/client-v2/triggers/collection/constants.d.ts +28 -0
- package/dist/client-v2/triggers/collection/index.d.ts +40 -0
- package/dist/client-v2/triggers/index.d.ts +61 -0
- package/dist/client-v2/triggers/schedule/EndsByField.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/OnField.d.ts +20 -0
- package/dist/client-v2/triggers/schedule/RepeatField.d.ts +23 -0
- package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +17 -0
- package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +41 -0
- package/dist/{client → client-v2}/triggers/schedule/TriggerScheduleConfig.d.ts +1 -0
- package/dist/{client → client-v2}/triggers/schedule/constants.d.ts +8 -5
- package/dist/client-v2/triggers/schedule/index.d.ts +40 -0
- package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +11 -0
- package/dist/common/executionStatus.d.ts +44 -0
- package/dist/common/executionStatus.js +133 -0
- package/dist/externalVersion.js +16 -12
- package/dist/locale/de-DE.json +14 -1
- package/dist/locale/en-US.json +21 -1
- package/dist/locale/es-ES.json +14 -1
- package/dist/locale/fr-FR.json +14 -1
- package/dist/locale/hu-HU.json +14 -1
- package/dist/locale/id-ID.json +14 -1
- package/dist/locale/it-IT.json +14 -1
- package/dist/locale/ja-JP.json +14 -1
- package/dist/locale/ko-KR.json +14 -1
- package/dist/locale/nl-NL.json +14 -1
- package/dist/locale/pt-BR.json +14 -1
- package/dist/locale/ru-RU.json +14 -1
- package/dist/locale/tr-TR.json +14 -1
- package/dist/locale/uk-UA.json +14 -1
- package/dist/locale/vi-VN.json +14 -1
- package/dist/locale/zh-CN.json +20 -1
- package/dist/locale/zh-TW.json +14 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/joi/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/server/Processor.d.ts +16 -0
- package/dist/server/Processor.js +112 -0
- package/dist/server/index.d.ts +1 -1
- package/dist/server/instructions/CreateInstruction.js +6 -2
- package/dist/server/instructions/DestroyInstruction.js +2 -1
- package/dist/server/instructions/QueryInstruction.js +2 -1
- package/dist/server/instructions/UpdateInstruction.js +2 -1
- package/dist/server/triggers/CollectionTrigger.d.ts +5 -0
- package/dist/server/triggers/CollectionTrigger.js +26 -1
- package/package.json +3 -2
- package/dist/client/67.61e70b8b777f8638.js +0 -10
- package/dist/client/964.ffbf5b47ed12bbdc.js +0 -10
- package/dist/client/triggers/schedule/ScheduleModes.d.ts +0 -170
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
|
@@ -0,0 +1,41 @@
|
|
|
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 { NAMESPACE } from '../common/constants';
|
|
10
|
+
export { NAMESPACE };
|
|
11
|
+
export declare function tExpr(key: string, options?: Record<string, any>): string;
|
|
12
|
+
/**
|
|
13
|
+
* The standard react-i18next hook, scoped to the workflow namespace with a
|
|
14
|
+
* `client` fallback. Returns the full `{ t, i18n, ... }` object.
|
|
15
|
+
*
|
|
16
|
+
* Use this when you need react-i18next features beyond a plain string lookup:
|
|
17
|
+
* - the `<Trans>` component (composite/JSX keys like "Meet <1>…</1> conditions
|
|
18
|
+
* in the group"), which needs a react-i18next `t` via its `t=` prop;
|
|
19
|
+
* - the `i18n` instance itself (current language, `changeLanguage`, etc.);
|
|
20
|
+
* - parity with v1 code being ported, which used `useTranslation()`.
|
|
21
|
+
*
|
|
22
|
+
* Its `t` does a **plain key lookup** — it does NOT expand `{{t("…")}}` template
|
|
23
|
+
* strings. For those, use {@link useT}.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useWorkflowTranslation(): import("react-i18next").UseTranslationResponse<("workflow" | "client")[], undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* The FlowEngine translator (`flowEngine.context.t`), scoped to the workflow
|
|
28
|
+
* namespace with a `client` fallback. Returns a bare `t(key, options?)` function
|
|
29
|
+
* — the default choice for translating a single string in canvas / FlowModel UI.
|
|
30
|
+
*
|
|
31
|
+
* The key difference from {@link useWorkflowTranslation}'s `t`: this one also
|
|
32
|
+
* **expands `{{t("…")}}` template strings**. Instruction/trigger metadata
|
|
33
|
+
* (`title`, `description`, field labels) is authored as `{{t("Foo", { ns })}}`
|
|
34
|
+
* templates, and `useT()('{{t("Foo")}}')` compiles them to the translation —
|
|
35
|
+
* a plain react-i18next `t` would return the literal template unchanged. It of
|
|
36
|
+
* course also handles plain keys (`useT()('Submit')`), so it covers both cases.
|
|
37
|
+
*
|
|
38
|
+
* Rule of thumb: reach for `useT` by default; switch to `useWorkflowTranslation`
|
|
39
|
+
* only when you specifically need `<Trans>` or the `i18n` instance.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useT(): (key: string, options?: Record<string, any>) => string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import { DetailsGridModel } from '@nocobase/client';
|
|
9
|
+
import { DetailsGridModel } from '@nocobase/client-v2';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
export declare class NodeDetailsGridModel extends DetailsGridModel {
|
|
12
12
|
renderAddSubModelButton(): React.JSX.Element;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import { BlockGridModel, CollectionBlockModel, DetailsGridModel } from '@nocobase/client';
|
|
9
|
+
import { BlockGridModel, CollectionBlockModel, DetailsGridModel } from '@nocobase/client-v2';
|
|
10
10
|
import { SingleRecordResource } from '@nocobase/flow-engine';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
export declare class NodeDetailsModel extends CollectionBlockModel<{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import { BlockModel } from '@nocobase/client';
|
|
9
|
+
import { BlockModel } from '@nocobase/client-v2';
|
|
10
10
|
export declare class NodeValueModel extends BlockModel {
|
|
11
11
|
get execution(): any;
|
|
12
12
|
get dataSource(): any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import { DetailsCustomItemModel } from '@nocobase/client';
|
|
9
|
+
import { DetailsCustomItemModel } from '@nocobase/client-v2';
|
|
10
10
|
import { FlowModelContext, ModelRenderMode, SubModelItem } from '@nocobase/flow-engine';
|
|
11
11
|
export declare class TaskCardCommonItemModel extends DetailsCustomItemModel {
|
|
12
12
|
static renderMode: ModelRenderMode;
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
export { NodeDetailsModel } from './NodeDetailsModel';
|
|
10
|
+
export { NodeDetailsGridModel } from './NodeDetailsGridModel';
|
|
10
11
|
export { NodeValueModel } from './NodeValueModel';
|
|
11
12
|
export { TaskCardCommonItemModel } from './TaskCardCommonItemModel';
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
type WorkflowCollection = {
|
|
10
|
+
name?: string;
|
|
11
|
+
dataSourceKey?: string;
|
|
12
|
+
dataSource?: {
|
|
13
|
+
key?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type WorkflowOption = {
|
|
18
|
+
title?: string;
|
|
19
|
+
key?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
config?: Record<string, unknown> | null;
|
|
22
|
+
};
|
|
23
|
+
type TriggerWorkflowBinding = {
|
|
24
|
+
workflowKey?: string;
|
|
25
|
+
};
|
|
26
|
+
type ActionTriggerableTrigger = {
|
|
27
|
+
title?: string;
|
|
28
|
+
actionTriggerableScope?: boolean | ((config: Record<string, unknown>, scope: string) => boolean);
|
|
29
|
+
};
|
|
30
|
+
type WorkflowPlugin = {
|
|
31
|
+
getTriggerOptions?: (type?: string) => ActionTriggerableTrigger | undefined;
|
|
32
|
+
triggers?: {
|
|
33
|
+
get(type: string): ActionTriggerableTrigger | undefined;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type PluginManagerLike = {
|
|
37
|
+
get(name: string): unknown;
|
|
38
|
+
};
|
|
39
|
+
export declare function getWorkflowPlugin(pm: PluginManagerLike): WorkflowPlugin | undefined;
|
|
40
|
+
export declare function getWorkflowCollectionName(collection?: WorkflowCollection | null): string;
|
|
41
|
+
export declare function buildTriggerWorkflows(group?: TriggerWorkflowBinding[]): string;
|
|
42
|
+
export declare function getWorkflowOptionFilter(plugin: unknown, currentValue?: string): (option: WorkflowOption) => boolean;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Instruction } from '../canvas/Instruction';
|
|
12
|
+
import { type UseVariableOptions, type VariableOption } from '../canvas/collectionFieldOptions';
|
|
13
|
+
type CalculationVariableNode = {
|
|
14
|
+
key: string;
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
type CalculationResultNode = {
|
|
18
|
+
id?: string | number;
|
|
19
|
+
key: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
config?: unknown;
|
|
22
|
+
};
|
|
23
|
+
export default class extends Instruction {
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
group: string;
|
|
27
|
+
description: string;
|
|
28
|
+
icon: React.JSX.Element;
|
|
29
|
+
testable: boolean;
|
|
30
|
+
FieldsetLoader: () => Promise<{
|
|
31
|
+
default: typeof import("./components/calculation").CalculationFieldset;
|
|
32
|
+
}>;
|
|
33
|
+
useVariables({ key, title }: CalculationVariableNode, { types }?: UseVariableOptions): VariableOption | null;
|
|
34
|
+
getCreateModelMenuItem({ node }: {
|
|
35
|
+
node: CalculationResultNode;
|
|
36
|
+
}): SubModelItem;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
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 SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
+
import { type UseVariableOptions } from '../canvas/collectionFieldOptions';
|
|
11
|
+
import type { TempAssociationSource } from '../canvas/Instruction';
|
|
12
|
+
export type CollectionResultNodeLike = {
|
|
13
|
+
id?: string | number;
|
|
14
|
+
key: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
config: {
|
|
17
|
+
collection?: string;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
params?: {
|
|
20
|
+
appends?: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare function useCollectionNodeVariables({ key: name, title, config }: CollectionResultNodeLike, options?: UseVariableOptions): import("../canvas/collectionFieldOptions").VariableOption;
|
|
25
|
+
export declare function getSingleRecordCreateModelMenuItem({ node, title, }: {
|
|
26
|
+
node: CollectionResultNodeLike;
|
|
27
|
+
title: string;
|
|
28
|
+
}): SubModelItem | null;
|
|
29
|
+
export declare function getSingleRecordTempAssociationSource(node: CollectionResultNodeLike): TempAssociationSource | null;
|
|
@@ -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 React from 'react';
|
|
10
|
+
export declare function CalculationFieldset(): React.JSX.Element;
|
|
11
|
+
export default CalculationFieldset;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 React from 'react';
|
|
10
|
+
type CollectionChangedHandler = (previous: string, next?: string) => void;
|
|
11
|
+
export declare function NodeCollectionField({ disabled, onCollectionChanged, }: {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onCollectionChanged?: CollectionChangedHandler;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
export default NodeCollectionField;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Lazy-loaded UI for the condition node, kept in a SEPARATE module from the
|
|
11
|
+
* Instruction (`nodes/condition.tsx`) so the Instruction's loaders
|
|
12
|
+
* (`() => import('./components/condition')`) are genuine code-split chunks — the
|
|
13
|
+
* config-drawer form, the add-time preset, and the in-canvas render only load
|
|
14
|
+
* when actually opened, never with the lightweight Instruction registration.
|
|
15
|
+
*
|
|
16
|
+
* This is the reference layout for node components: a node's `Instruction` lives
|
|
17
|
+
* in `nodes/<type>.tsx`; its lazily-loaded components live in
|
|
18
|
+
* `nodes/components/<type>.tsx` and are pulled in via the Instruction's loaders.
|
|
19
|
+
*/
|
|
20
|
+
import React from 'react';
|
|
21
|
+
export declare function ConditionFieldset(): React.JSX.Element;
|
|
22
|
+
export declare function ConditionPresetFieldset(): React.JSX.Element;
|
|
23
|
+
export declare function ConditionCanvasComponent({ data }: {
|
|
24
|
+
data: any;
|
|
25
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { type FormItemProps } from 'antd';
|
|
11
|
+
import { type RadioWithTooltipOption } from '../../components/RadioWithTooltip';
|
|
12
|
+
export declare const BASIC_ENGINE = "basic";
|
|
13
|
+
export type ConditionFieldPrefix = string[];
|
|
14
|
+
export declare function useConditionEngineOptions(): RadioWithTooltipOption[];
|
|
15
|
+
export declare function ConditionRuleFields({ prefix, calculationLabel, expressionLabel, expressionItemProps, }: {
|
|
16
|
+
prefix: ConditionFieldPrefix;
|
|
17
|
+
calculationLabel?: React.ReactNode;
|
|
18
|
+
expressionLabel?: React.ReactNode;
|
|
19
|
+
expressionItemProps?: Partial<FormItemProps>;
|
|
20
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function CreateFieldset(): React.JSX.Element;
|
|
11
|
+
export declare function CreatePresetFieldset(): React.JSX.Element;
|
|
12
|
+
export default CreateFieldset;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function DestroyFieldset(): React.JSX.Element;
|
|
11
|
+
export declare function DestroyPresetFieldset(): React.JSX.Element;
|
|
12
|
+
export default DestroyFieldset;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function NodeFilterField({ collection, label, name, required, }: {
|
|
11
|
+
collection?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
name?: Array<string | number>;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export default NodeFilterField;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function MultiConditionsFieldset(): React.JSX.Element;
|
|
11
|
+
export declare function MultiConditionsCanvasComponent({ data }: {
|
|
12
|
+
data: any;
|
|
13
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare const MULTI_CONDITION_BRANCH_INDEX: {
|
|
10
|
+
readonly DEFAULT: 1;
|
|
11
|
+
readonly OTHERWISE: 0;
|
|
12
|
+
};
|
|
13
|
+
export type MultiConditionConfigItem = {
|
|
14
|
+
uid: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
engine?: string;
|
|
17
|
+
calculation?: any;
|
|
18
|
+
expression?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function createEmptyMultiCondition(): MultiConditionConfigItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function OutputFieldset(): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function QueryFieldset(): React.JSX.Element;
|
|
11
|
+
export declare function QueryPresetFieldset(): React.JSX.Element;
|
|
12
|
+
export default QueryFieldset;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare function UpdateFieldset(): React.JSX.Element;
|
|
11
|
+
export declare function UpdatePresetFieldset(): React.JSX.Element;
|
|
12
|
+
export default UpdateFieldset;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* v2 condition node — the modern-canvas counterpart of v1's
|
|
11
|
+
* `client/nodes/condition.tsx`. This file holds ONLY the lightweight
|
|
12
|
+
* `Instruction` (static metadata + loaders); its lazily-loaded UI lives in
|
|
13
|
+
* `nodes/components/condition.tsx`, so the loaders are real code-split chunks
|
|
14
|
+
* (the form / preset / canvas render load on demand, not with registration).
|
|
15
|
+
*
|
|
16
|
+
* This is the reference layout for core nodes: `nodes/<type>.tsx` = Instruction,
|
|
17
|
+
* `nodes/components/<type>.tsx` = its lazily-loaded components.
|
|
18
|
+
*/
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import { Instruction } from '../canvas/Instruction';
|
|
21
|
+
export default class extends Instruction {
|
|
22
|
+
type: string;
|
|
23
|
+
title: string;
|
|
24
|
+
group: string;
|
|
25
|
+
description: string;
|
|
26
|
+
icon: React.JSX.Element;
|
|
27
|
+
testable: boolean;
|
|
28
|
+
branching: ({ rejectOnFalse }?: {
|
|
29
|
+
rejectOnFalse?: boolean;
|
|
30
|
+
}) => false | ({
|
|
31
|
+
label: string;
|
|
32
|
+
value: 1;
|
|
33
|
+
} | {
|
|
34
|
+
label: string;
|
|
35
|
+
value: 0;
|
|
36
|
+
})[];
|
|
37
|
+
FieldsetLoader: () => Promise<{
|
|
38
|
+
default: typeof import("./components/condition").ConditionFieldset;
|
|
39
|
+
}>;
|
|
40
|
+
PresetFieldsetLoader: () => Promise<{
|
|
41
|
+
default: typeof import("./components/condition").ConditionPresetFieldset;
|
|
42
|
+
}>;
|
|
43
|
+
ComponentLoader: () => Promise<{
|
|
44
|
+
default: typeof import("./components/condition").ConditionCanvasComponent;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
import { type CollectionResultNodeLike, useCollectionNodeVariables } from './collectionNode';
|
|
12
|
+
export default class extends Instruction {
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
group: string;
|
|
16
|
+
description: string;
|
|
17
|
+
icon: React.JSX.Element;
|
|
18
|
+
FieldsetLoader: () => Promise<{
|
|
19
|
+
default: typeof import("./components/create").CreateFieldset;
|
|
20
|
+
}>;
|
|
21
|
+
PresetFieldsetLoader: () => Promise<{
|
|
22
|
+
default: typeof import("./components/create").CreatePresetFieldset;
|
|
23
|
+
}>;
|
|
24
|
+
createDefaultConfig(): {};
|
|
25
|
+
useVariables: typeof useCollectionNodeVariables;
|
|
26
|
+
getCreateModelMenuItem({ node }: {
|
|
27
|
+
node: CollectionResultNodeLike;
|
|
28
|
+
}): import("@nocobase/flow-engine").SubModelItem;
|
|
29
|
+
useTempAssociationSource(node: CollectionResultNodeLike): import("../canvas/Instruction").TempAssociationSource;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
export default class extends Instruction {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
group: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: React.JSX.Element;
|
|
17
|
+
FieldsetLoader: () => Promise<{
|
|
18
|
+
default: typeof import("./components/destroy").DestroyFieldset;
|
|
19
|
+
}>;
|
|
20
|
+
PresetFieldsetLoader: () => Promise<{
|
|
21
|
+
default: typeof import("./components/destroy").DestroyPresetFieldset;
|
|
22
|
+
}>;
|
|
23
|
+
useTempAssociationSource(): any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
export default class extends Instruction {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
group: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: React.JSX.Element;
|
|
17
|
+
FieldsetLoader: () => Promise<{
|
|
18
|
+
default: typeof import("./components/end").EndFieldset;
|
|
19
|
+
}>;
|
|
20
|
+
end: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
export default class extends Instruction {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
group: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: React.JSX.Element;
|
|
17
|
+
branching: ({
|
|
18
|
+
label: string;
|
|
19
|
+
value: 1;
|
|
20
|
+
} | {
|
|
21
|
+
label: string;
|
|
22
|
+
value: 0;
|
|
23
|
+
})[];
|
|
24
|
+
FieldsetLoader: () => Promise<{
|
|
25
|
+
default: typeof import("./components/multi-conditions").MultiConditionsFieldset;
|
|
26
|
+
}>;
|
|
27
|
+
ComponentLoader: () => Promise<{
|
|
28
|
+
default: typeof import("./components/multi-conditions").MultiConditionsCanvasComponent;
|
|
29
|
+
}>;
|
|
30
|
+
createDefaultConfig(): {
|
|
31
|
+
conditions: import("./components/multiConditionsShared").MultiConditionConfigItem[];
|
|
32
|
+
continueOnNoMatch: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
export default class extends Instruction {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
group: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: React.JSX.Element;
|
|
17
|
+
FieldsetLoader: () => Promise<{
|
|
18
|
+
default: typeof import("./components/output").OutputFieldset;
|
|
19
|
+
}>;
|
|
20
|
+
useVariables({ key, title }: {
|
|
21
|
+
key: any;
|
|
22
|
+
title: any;
|
|
23
|
+
}, { types }: {
|
|
24
|
+
types: any;
|
|
25
|
+
}): {
|
|
26
|
+
value: any;
|
|
27
|
+
label: any;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
import { type CollectionResultNodeLike, useCollectionNodeVariables } from './collectionNode';
|
|
12
|
+
export default class extends Instruction {
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
group: string;
|
|
16
|
+
description: string;
|
|
17
|
+
icon: React.JSX.Element;
|
|
18
|
+
FieldsetLoader: () => Promise<{
|
|
19
|
+
default: typeof import("./components/query").QueryFieldset;
|
|
20
|
+
}>;
|
|
21
|
+
PresetFieldsetLoader: () => Promise<{
|
|
22
|
+
default: typeof import("./components/query").QueryPresetFieldset;
|
|
23
|
+
}>;
|
|
24
|
+
createDefaultConfig(): {
|
|
25
|
+
multiple: boolean;
|
|
26
|
+
};
|
|
27
|
+
useVariables: typeof useCollectionNodeVariables;
|
|
28
|
+
getCreateModelMenuItem({ node }: {
|
|
29
|
+
node: CollectionResultNodeLike;
|
|
30
|
+
}): import("@nocobase/flow-engine").SubModelItem;
|
|
31
|
+
useTempAssociationSource(node: CollectionResultNodeLike): import("../canvas/Instruction").TempAssociationSource;
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { Instruction } from '../canvas/Instruction';
|
|
11
|
+
export default class extends Instruction {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
group: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: React.JSX.Element;
|
|
17
|
+
FieldsetLoader: () => Promise<{
|
|
18
|
+
default: typeof import("./components/update").UpdateFieldset;
|
|
19
|
+
}>;
|
|
20
|
+
PresetFieldsetLoader: () => Promise<{
|
|
21
|
+
default: typeof import("./components/update").UpdatePresetFieldset;
|
|
22
|
+
}>;
|
|
23
|
+
createDefaultConfig(): {};
|
|
24
|
+
useTempAssociationSource(): any;
|
|
25
|
+
}
|