@nocobase/plugin-workflow 2.2.0-alpha.7 → 2.2.0-beta.10
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/client/618.c91be3f6e4d73501.js +10 -0
- package/dist/client/67.61e70b8b777f8638.js +10 -0
- package/dist/client/964.5e11e1820fece37b.js +10 -0
- package/dist/client/AddNodeContext.d.ts +9 -1
- package/dist/client/BranchContext.d.ts +10 -2
- package/dist/client/FlowContext.d.ts +5 -10
- package/dist/client/NodeClipboardContext.d.ts +2 -12
- package/dist/client/NodeDragContext.d.ts +2 -14
- package/dist/client/RemoveNodeContext.d.ts +2 -16
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/{client-v2 → client}/models/NodeDetailsGridModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/NodeDetailsModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/NodeValueModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/TaskCardCommonItemModel.d.ts +1 -1
- package/dist/{client-v2 → client}/models/index.d.ts +0 -2
- package/dist/client/nodeVariableUtils.d.ts +6 -7
- package/dist/client/nodes/calculation.d.ts +75 -3
- package/dist/client/nodes/condition.d.ts +111 -7
- package/dist/client/nodes/create.d.ts +124 -3
- package/dist/client/nodes/destroy.d.ts +57 -2
- package/dist/client/nodes/end.d.ts +23 -2
- package/dist/client/nodes/index.d.ts +91 -2
- package/dist/client/nodes/multi-conditions.d.ts +48 -10
- package/dist/client/nodes/output.d.ts +44 -2
- package/dist/client/nodes/query.d.ts +255 -3
- package/dist/client/nodes/update.d.ts +117 -2
- package/dist/client/style.d.ts +27 -7
- package/dist/client/triggers/collection.d.ts +181 -3
- package/dist/client/triggers/index.d.ts +36 -2
- package/dist/{client-v2/canvas/JobButton.d.ts → client/triggers/schedule/EndsByField.d.ts} +3 -3
- package/dist/{client-v2/components/SyncModeTag.d.ts → client/triggers/schedule/OnField.d.ts} +3 -3
- package/dist/{client-v2/components/ExecutionStatusTag.d.ts → client/triggers/schedule/RepeatField.d.ts} +4 -3
- package/dist/{client-v2/pages/WorkflowPane.d.ts → client/triggers/schedule/ScheduleConfig.d.ts} +1 -1
- package/dist/client/triggers/schedule/ScheduleModes.d.ts +170 -0
- package/dist/{client-v2 → client}/triggers/schedule/TriggerScheduleConfig.d.ts +0 -1
- package/dist/{client-v2 → client}/triggers/schedule/constants.d.ts +5 -8
- package/dist/client/triggers/schedule/index.d.ts +65 -8
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +42 -0
- package/dist/client/utils.d.ts +5 -4
- package/dist/client/variable.d.ts +53 -7
- package/dist/common/collections/workflows.d.ts +0 -18
- package/dist/common/collections/workflows.js +0 -5
- package/dist/externalVersion.js +13 -16
- package/dist/locale/de-DE.json +1 -13
- package/dist/locale/en-US.json +1 -23
- package/dist/locale/es-ES.json +1 -13
- package/dist/locale/fr-FR.json +1 -13
- package/dist/locale/hu-HU.json +1 -13
- package/dist/locale/id-ID.json +1 -13
- package/dist/locale/it-IT.json +1 -13
- package/dist/locale/ja-JP.json +1 -13
- package/dist/locale/ko-KR.json +1 -13
- package/dist/locale/nl-NL.json +1 -13
- package/dist/locale/pt-BR.json +1 -13
- package/dist/locale/ru-RU.json +1 -13
- package/dist/locale/tr-TR.json +1 -13
- package/dist/locale/uk-UA.json +1 -13
- package/dist/locale/vi-VN.json +1 -13
- package/dist/locale/zh-CN.json +1 -22
- package/dist/locale/zh-TW.json +1 -19
- 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/Dispatcher.js +1 -2
- package/dist/server/ExecutionTimeoutManager.js +1 -2
- package/dist/server/actions/workflows.d.ts +0 -1
- package/dist/server/actions/workflows.js +0 -5
- package/dist/server/types/Workflow.d.ts +0 -1
- package/package.json +2 -4
- package/client-v2.d.ts +0 -2
- package/client-v2.js +0 -1
- package/dist/client/119.e7dbd037d52d1286.js +0 -10
- package/dist/client/142.fb4936d78fc80007.js +0 -10
- package/dist/client/159.cc9a0f2d92cab2c1.js +0 -10
- package/dist/client/276.69fb2aea13bc7c37.js +0 -10
- package/dist/client/346.66d060d37843d3d1.js +0 -10
- package/dist/client/382.d37fba14a6b91b0b.js +0 -10
- package/dist/client/394.a37310b78419ad7a.js +0 -10
- package/dist/client/438.6c6409d821d8c353.js +0 -10
- package/dist/client/509.e8d543f308a5823c.js +0 -10
- package/dist/client/54.d81b710f7b4c1cd5.js +0 -10
- package/dist/client/618.1aa6c21d0f2840cb.js +0 -10
- package/dist/client/635.ff6085589e23d39b.js +0 -10
- package/dist/client/67.ea0c78153b4842ef.js +0 -10
- package/dist/client/719.cd8ca7c9f00584be.js +0 -10
- package/dist/client/728.711fd4f1ed7d4e6a.js +0 -10
- package/dist/client/739.49407722fca8d236.js +0 -10
- package/dist/client/759.13aab01e6912ed8d.js +0 -10
- package/dist/client/772.1ebaef11a0ac8688.js +0 -10
- package/dist/client/782.e058403fcb6b1750.js +0 -10
- package/dist/client/828.78ff0c90212276c0.js +0 -10
- package/dist/client/87.083467b89aaf3e53.js +0 -10
- package/dist/client/938.26493fc09ba1ccbc.js +0 -10
- package/dist/client/964.5ab736effd480a42.js +0 -10
- package/dist/client/972.600a190e71978122.js +0 -10
- package/dist/client-v2/119.81195bcd0d451279.js +0 -10
- package/dist/client-v2/142.fe4f9b7869876ff1.js +0 -10
- package/dist/client-v2/159.cb221540c286cd32.js +0 -10
- package/dist/client-v2/276.8ca10542a0424df3.js +0 -10
- package/dist/client-v2/326.bdc99ad8e7590970.js +0 -10
- package/dist/client-v2/346.8c038b3c99d4fdc9.js +0 -10
- package/dist/client-v2/382.05f5482bb512b179.js +0 -10
- package/dist/client-v2/387.fd0a379e808b069f.js +0 -10
- package/dist/client-v2/394.515ed058e7f72797.js +0 -10
- package/dist/client-v2/438.b7df0416b66f8f64.js +0 -10
- package/dist/client-v2/513.19fe2e75d7cb18f8.js +0 -10
- package/dist/client-v2/54.d3daf06e53092726.js +0 -10
- package/dist/client-v2/635.20680bb5710698d0.js +0 -10
- package/dist/client-v2/677.a8c841cd3c3a6f7d.js +0 -10
- package/dist/client-v2/719.05cf070ef89a78f4.js +0 -10
- package/dist/client-v2/728.4e8322ff8fce87b9.js +0 -10
- package/dist/client-v2/739.5b60845103064f8d.js +0 -10
- package/dist/client-v2/759.7b162ad3adf450f1.js +0 -10
- package/dist/client-v2/772.8e5148d8c1518449.js +0 -10
- package/dist/client-v2/938.717e47af39485b29.js +0 -10
- package/dist/client-v2/ExecutionCanvas.d.ts +0 -15
- package/dist/client-v2/canvas/AddNodeContext.d.ts +0 -35
- package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +0 -33
- package/dist/client-v2/canvas/AddNodeSlot.d.ts +0 -20
- package/dist/client-v2/canvas/Branch.d.ts +0 -32
- package/dist/client-v2/canvas/BranchContext.d.ts +0 -29
- package/dist/client-v2/canvas/BranchRenderContext.d.ts +0 -14
- package/dist/client-v2/canvas/CanvasContent.d.ts +0 -20
- package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +0 -20
- package/dist/client-v2/canvas/Instruction.d.ts +0 -139
- package/dist/client-v2/canvas/Node.d.ts +0 -38
- package/dist/client-v2/canvas/NodeClipboardContext.d.ts +0 -64
- package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +0 -27
- package/dist/client-v2/canvas/NodeDragContext.d.ts +0 -83
- package/dist/client-v2/canvas/RemoveNodeContext.d.ts +0 -45
- package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +0 -16
- package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +0 -40
- package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +0 -15
- package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +0 -22
- package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +0 -18
- package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +0 -48
- package/dist/client-v2/canvas/addNodeController.d.ts +0 -70
- package/dist/client-v2/canvas/collectionFieldOptions.d.ts +0 -57
- package/dist/client-v2/canvas/contexts.d.ts +0 -86
- package/dist/client-v2/canvas/dropImpact.d.ts +0 -28
- package/dist/client-v2/canvas/instructionAvailability.d.ts +0 -26
- package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +0 -79
- package/dist/client-v2/canvas/nodeTree.d.ts +0 -21
- package/dist/client-v2/canvas/nodeVariableUtils.d.ts +0 -14
- package/dist/client-v2/canvas/removeNodeUtils.d.ts +0 -31
- package/dist/client-v2/canvas/style.d.ts +0 -35
- package/dist/client-v2/canvas/textAreaInsertion.d.ts +0 -14
- package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +0 -23
- package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +0 -40
- package/dist/client-v2/canvas/workflowVariableConverters.d.ts +0 -13
- package/dist/client-v2/components/Calculation.d.ts +0 -18
- package/dist/client-v2/components/ExecutionStatusIcon.d.ts +0 -18
- package/dist/client-v2/components/ExecutionViewHeader.d.ts +0 -29
- package/dist/client-v2/components/ExecutionsDropdown.d.ts +0 -25
- package/dist/client-v2/components/FilterDynamicComponent.d.ts +0 -27
- package/dist/client-v2/components/HideVariableContext.d.ts +0 -11
- package/dist/client-v2/components/JobResultModal.d.ts +0 -11
- package/dist/client-v2/components/RadioWithTooltip.d.ts +0 -23
- package/dist/client-v2/components/SyncModeSelect.d.ts +0 -16
- package/dist/client-v2/components/TestRunButton.d.ts +0 -36
- package/dist/client-v2/components/TimeoutInput.d.ts +0 -15
- package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +0 -17
- package/dist/client-v2/components/WorkflowDetailsModal.d.ts +0 -25
- package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +0 -16
- package/dist/client-v2/components/WorkflowMenu.d.ts +0 -17
- package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +0 -15
- package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +0 -25
- package/dist/client-v2/components/collection/AppendsSelect.d.ts +0 -15
- package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +0 -24
- package/dist/client-v2/components/collection/CollectionCascader.d.ts +0 -15
- package/dist/client-v2/components/collection/FieldsSelect.d.ts +0 -16
- package/dist/client-v2/components/collection/PaginationFields.d.ts +0 -14
- package/dist/client-v2/components/collection/SortFieldsInput.d.ts +0 -19
- package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +0 -15
- package/dist/client-v2/components/collection/index.d.ts +0 -16
- package/dist/client-v2/components/collection/utils.d.ts +0 -42
- package/dist/client-v2/components/formatResultForDisplay.d.ts +0 -17
- package/dist/client-v2/components/jobStatus.d.ts +0 -27
- package/dist/client-v2/components/renderEngineReference.d.ts +0 -10
- package/dist/client-v2/components/workflowCanvas.d.ts +0 -41
- package/dist/client-v2/constants.d.ts +0 -19
- package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +0 -16
- package/dist/client-v2/index.d.ts +0 -48
- package/dist/client-v2/index.js +0 -10
- package/dist/client-v2/locale.d.ts +0 -41
- package/dist/client-v2/models/WorkflowTasksTopbarActionModel.d.ts +0 -18
- package/dist/client-v2/models/triggerWorkflows.d.ts +0 -43
- package/dist/client-v2/nodes/calculation.d.ts +0 -38
- package/dist/client-v2/nodes/collectionNode.d.ts +0 -29
- package/dist/client-v2/nodes/components/calculation.d.ts +0 -11
- package/dist/client-v2/nodes/components/collection.d.ts +0 -15
- package/dist/client-v2/nodes/components/condition.d.ts +0 -25
- package/dist/client-v2/nodes/components/conditionShared.d.ts +0 -20
- package/dist/client-v2/nodes/components/create.d.ts +0 -12
- package/dist/client-v2/nodes/components/destroy.d.ts +0 -12
- package/dist/client-v2/nodes/components/end.d.ts +0 -10
- package/dist/client-v2/nodes/components/filter.d.ts +0 -17
- package/dist/client-v2/nodes/components/multi-conditions.d.ts +0 -13
- package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +0 -20
- package/dist/client-v2/nodes/components/output.d.ts +0 -10
- package/dist/client-v2/nodes/components/query.d.ts +0 -12
- package/dist/client-v2/nodes/components/update.d.ts +0 -12
- package/dist/client-v2/nodes/condition.d.ts +0 -46
- package/dist/client-v2/nodes/create.d.ts +0 -30
- package/dist/client-v2/nodes/destroy.d.ts +0 -24
- package/dist/client-v2/nodes/end.d.ts +0 -21
- package/dist/client-v2/nodes/multi-conditions.d.ts +0 -34
- package/dist/client-v2/nodes/output.d.ts +0 -29
- package/dist/client-v2/nodes/query.d.ts +0 -32
- package/dist/client-v2/nodes/update.d.ts +0 -25
- package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +0 -13
- package/dist/client-v2/pages/ExecutionViewPage.d.ts +0 -10
- package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +0 -10
- package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +0 -25
- package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +0 -39
- package/dist/client-v2/pages/WorkflowTasksPage.d.ts +0 -10
- package/dist/client-v2/plugin.d.ts +0 -119
- package/dist/client-v2/taskCenter.d.ts +0 -105
- package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +0 -35
- package/dist/client-v2/triggers/TriggerConfig.d.ts +0 -22
- package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +0 -13
- package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +0 -14
- package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +0 -11
- package/dist/client-v2/triggers/collection/constants.d.ts +0 -28
- package/dist/client-v2/triggers/collection/index.d.ts +0 -40
- package/dist/client-v2/triggers/index.d.ts +0 -63
- package/dist/client-v2/triggers/schedule/EndsByField.d.ts +0 -17
- package/dist/client-v2/triggers/schedule/OnField.d.ts +0 -20
- package/dist/client-v2/triggers/schedule/RepeatField.d.ts +0 -23
- package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +0 -17
- package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +0 -41
- package/dist/client-v2/triggers/schedule/index.d.ts +0 -40
- package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -11
- package/dist/client-v2/utils/contextSingleton.d.ts +0 -9
- package/dist/common/defaultWorkflowFilter.d.ts +0 -21
- package/dist/common/defaultWorkflowFilter.js +0 -38
- package/dist/common/executionStatus.d.ts +0 -44
- package/dist/common/executionStatus.js +0 -133
|
@@ -7,8 +7,42 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import { ISchema } from '@formily/react';
|
|
11
|
+
import { SchemaInitializerItemType } from '@nocobase/client';
|
|
12
|
+
import { UseVariableOptions, VariableOption } from '../variable';
|
|
13
|
+
export declare abstract class Trigger {
|
|
14
|
+
sync: boolean;
|
|
15
|
+
title: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
useVariables?(config: Record<string, any>, options?: UseVariableOptions): VariableOption[];
|
|
18
|
+
fieldset: Record<string, ISchema>;
|
|
19
|
+
/**
|
|
20
|
+
* @experimental
|
|
21
|
+
*/
|
|
22
|
+
presetFieldset?: Record<string, ISchema>;
|
|
23
|
+
triggerFieldset?: Record<string, ISchema>;
|
|
24
|
+
validate(config: Record<string, any>): boolean;
|
|
25
|
+
view?: ISchema;
|
|
26
|
+
scope?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
components?: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
useInitializers?(config: any): SchemaInitializerItemType | null;
|
|
33
|
+
initializers?: any;
|
|
34
|
+
isActionTriggerable_deprecated?: boolean | ((config: object, context?: object) => boolean);
|
|
35
|
+
/**
|
|
36
|
+
* @experimental
|
|
37
|
+
*/
|
|
38
|
+
useTempAssociationSource?(config: any, workflow: any): TriggerTempAssociationSource | null;
|
|
39
|
+
}
|
|
40
|
+
export type TriggerTempAssociationSource = {
|
|
41
|
+
collection: string;
|
|
42
|
+
nodeId: string | number;
|
|
43
|
+
nodeKey: string;
|
|
44
|
+
nodeType: 'workflow';
|
|
45
|
+
};
|
|
12
46
|
export declare const TriggerConfig: () => React.JSX.Element;
|
|
13
47
|
/**
|
|
14
48
|
* @experimental
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
10
|
+
export declare function EndsByField({ value, onChange }: {
|
|
11
|
+
value: any;
|
|
12
|
+
onChange: any;
|
|
12
13
|
}): React.JSX.Element;
|
|
13
|
-
export default JobButton;
|
package/dist/{client-v2/components/SyncModeTag.d.ts → client/triggers/schedule/OnField.d.ts}
RENAMED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare function
|
|
11
|
-
value
|
|
10
|
+
export declare function OnField({ value: propsValue, onChange }: {
|
|
11
|
+
value: any;
|
|
12
|
+
onChange: any;
|
|
12
13
|
}): React.JSX.Element;
|
|
13
|
-
export default SyncModeTag;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare function
|
|
11
|
-
value
|
|
10
|
+
export declare function RepeatField({ value, onChange, disabled }: {
|
|
11
|
+
value?: any;
|
|
12
|
+
onChange: any;
|
|
13
|
+
disabled: any;
|
|
12
14
|
}): React.JSX.Element;
|
|
13
|
-
export default ExecutionStatusTag;
|
|
@@ -0,0 +1,170 @@
|
|
|
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 const ScheduleModes: {
|
|
11
|
+
[x: number]: {
|
|
12
|
+
fieldset: {
|
|
13
|
+
startsOn: {
|
|
14
|
+
type: string;
|
|
15
|
+
title: string;
|
|
16
|
+
'x-decorator': string;
|
|
17
|
+
'x-component': string;
|
|
18
|
+
'x-component-props': {
|
|
19
|
+
showTime: boolean;
|
|
20
|
+
};
|
|
21
|
+
required: boolean;
|
|
22
|
+
'x-reactions'?: undefined;
|
|
23
|
+
};
|
|
24
|
+
repeat: {
|
|
25
|
+
type: string;
|
|
26
|
+
title: string;
|
|
27
|
+
'x-decorator': string;
|
|
28
|
+
'x-component': string;
|
|
29
|
+
'x-reactions': {
|
|
30
|
+
target: string;
|
|
31
|
+
fulfill: {
|
|
32
|
+
state: {
|
|
33
|
+
visible: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
endsOn: {
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
'x-decorator': string;
|
|
42
|
+
'x-component': string;
|
|
43
|
+
'x-component-props': {
|
|
44
|
+
showTime: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
limit: {
|
|
48
|
+
type: string;
|
|
49
|
+
title: string;
|
|
50
|
+
'x-decorator': string;
|
|
51
|
+
'x-component': string;
|
|
52
|
+
'x-component-props': {
|
|
53
|
+
placeholder: string;
|
|
54
|
+
min: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
collection?: undefined;
|
|
58
|
+
appends?: undefined;
|
|
59
|
+
};
|
|
60
|
+
triggerFieldset: {
|
|
61
|
+
date: {
|
|
62
|
+
type: string;
|
|
63
|
+
title: string;
|
|
64
|
+
'x-decorator': string;
|
|
65
|
+
'x-component': string;
|
|
66
|
+
'x-component-props': {
|
|
67
|
+
nullable: boolean;
|
|
68
|
+
changeOnSelect: boolean;
|
|
69
|
+
render(props: any): React.JSX.Element;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
data?: undefined;
|
|
73
|
+
};
|
|
74
|
+
validate(config: any): boolean;
|
|
75
|
+
} | {
|
|
76
|
+
fieldset: {
|
|
77
|
+
collection: {
|
|
78
|
+
'x-component-props': {
|
|
79
|
+
dataSourceFilter(item: any): any;
|
|
80
|
+
};
|
|
81
|
+
'x-reactions': any[];
|
|
82
|
+
type: string;
|
|
83
|
+
title: string;
|
|
84
|
+
required: boolean;
|
|
85
|
+
'x-decorator': string;
|
|
86
|
+
'x-component': string;
|
|
87
|
+
};
|
|
88
|
+
startsOn: {
|
|
89
|
+
type: string;
|
|
90
|
+
title: string;
|
|
91
|
+
'x-decorator': string;
|
|
92
|
+
'x-component': string;
|
|
93
|
+
'x-reactions': {
|
|
94
|
+
target: string;
|
|
95
|
+
fulfill: {
|
|
96
|
+
state: {
|
|
97
|
+
visible: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}[];
|
|
101
|
+
required: boolean;
|
|
102
|
+
'x-component-props'?: undefined;
|
|
103
|
+
};
|
|
104
|
+
repeat: {
|
|
105
|
+
type: string;
|
|
106
|
+
title: string;
|
|
107
|
+
'x-decorator': string;
|
|
108
|
+
'x-component': string;
|
|
109
|
+
'x-reactions': {
|
|
110
|
+
target: string;
|
|
111
|
+
fulfill: {
|
|
112
|
+
state: {
|
|
113
|
+
visible: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}[];
|
|
117
|
+
};
|
|
118
|
+
endsOn: {
|
|
119
|
+
type: string;
|
|
120
|
+
title: string;
|
|
121
|
+
'x-decorator': string;
|
|
122
|
+
'x-component': string;
|
|
123
|
+
'x-component-props'?: undefined;
|
|
124
|
+
};
|
|
125
|
+
limit: {
|
|
126
|
+
type: string;
|
|
127
|
+
title: string;
|
|
128
|
+
'x-decorator': string;
|
|
129
|
+
'x-component': string;
|
|
130
|
+
'x-component-props': {
|
|
131
|
+
placeholder: string;
|
|
132
|
+
min: number;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
appends: {
|
|
136
|
+
'x-reactions': {
|
|
137
|
+
dependencies: string[];
|
|
138
|
+
fulfill: {
|
|
139
|
+
state: {
|
|
140
|
+
visible: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}[];
|
|
144
|
+
type: string;
|
|
145
|
+
title: string;
|
|
146
|
+
description: string;
|
|
147
|
+
'x-decorator': string;
|
|
148
|
+
'x-component': string;
|
|
149
|
+
'x-component-props': {
|
|
150
|
+
title: string;
|
|
151
|
+
multiple: boolean;
|
|
152
|
+
useCollection(): any;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
triggerFieldset: {
|
|
157
|
+
data: {
|
|
158
|
+
type: string;
|
|
159
|
+
title: string;
|
|
160
|
+
description: string;
|
|
161
|
+
'x-decorator': string;
|
|
162
|
+
'x-component': string;
|
|
163
|
+
default: any;
|
|
164
|
+
required: boolean;
|
|
165
|
+
};
|
|
166
|
+
date?: undefined;
|
|
167
|
+
};
|
|
168
|
+
validate(config: any): any;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
@@ -7,13 +7,10 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
export declare const SCHEDULE_MODE: {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
STATIC: number;
|
|
11
|
+
DATE_FIELD: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const scheduleModeOptions:
|
|
14
|
-
value:
|
|
13
|
+
export declare const scheduleModeOptions: {
|
|
14
|
+
value: number;
|
|
15
15
|
label: string;
|
|
16
|
-
}
|
|
17
|
-
value: 1;
|
|
18
|
-
label: string;
|
|
19
|
-
})[];
|
|
16
|
+
}[];
|
|
@@ -6,12 +6,69 @@
|
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
|
|
9
|
+
/// <reference types="react" />
|
|
10
|
+
import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
|
|
11
|
+
import { Trigger } from '..';
|
|
12
|
+
import { TriggerScheduleConfig } from './TriggerScheduleConfig';
|
|
13
|
+
import { WorkflowVariableWrapper } from '../../variable';
|
|
14
|
+
import { TriggerCollectionRecordSelect } from '../../components/TriggerCollectionRecordSelect';
|
|
15
|
+
import { SubModelItem } from '@nocobase/flow-engine';
|
|
16
|
+
declare function useVariables(config: any, opts: any): any[];
|
|
17
|
+
export default class extends Trigger {
|
|
18
|
+
sync: boolean;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
presetFieldset: {
|
|
22
|
+
mode: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
name: string;
|
|
26
|
+
'x-decorator': string;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
enum: {
|
|
29
|
+
value: number;
|
|
30
|
+
label: string;
|
|
31
|
+
}[];
|
|
32
|
+
required: boolean;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
fieldset: {
|
|
37
|
+
config: {
|
|
38
|
+
type: string;
|
|
39
|
+
'x-component': string;
|
|
40
|
+
'x-component-props': {};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
triggerFieldset: {
|
|
44
|
+
proxy: {
|
|
45
|
+
type: string;
|
|
46
|
+
'x-component': string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
validate(config: any): any;
|
|
50
|
+
scope: {
|
|
51
|
+
useCollectionDataSource: typeof useCollectionDataSource;
|
|
52
|
+
};
|
|
53
|
+
components: {
|
|
54
|
+
ScheduleConfig: () => import("react").JSX.Element;
|
|
55
|
+
TriggerScheduleConfig: typeof TriggerScheduleConfig;
|
|
56
|
+
TriggerCollectionRecordSelect: typeof TriggerCollectionRecordSelect;
|
|
57
|
+
WorkflowVariableWrapper: typeof WorkflowVariableWrapper;
|
|
58
|
+
};
|
|
59
|
+
useVariables: typeof useVariables;
|
|
60
|
+
useInitializers(config: any): SchemaInitializerItemType | null;
|
|
61
|
+
/**
|
|
62
|
+
* 2.0
|
|
63
|
+
*/
|
|
64
|
+
getCreateModelMenuItem({ config }: {
|
|
65
|
+
config: any;
|
|
66
|
+
}): SubModelItem | null;
|
|
67
|
+
useTempAssociationSource(config: any, workflow: any): {
|
|
68
|
+
collection: any;
|
|
69
|
+
nodeId: any;
|
|
70
|
+
nodeKey: string;
|
|
71
|
+
nodeType: "workflow";
|
|
72
|
+
};
|
|
17
73
|
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
declare const _default: {
|
|
10
|
+
everyText: string;
|
|
11
|
+
emptyMonths: string;
|
|
12
|
+
emptyMonthDays: string;
|
|
13
|
+
emptyMonthDaysShort: string;
|
|
14
|
+
emptyWeekDays: string;
|
|
15
|
+
emptyWeekDaysShort: string;
|
|
16
|
+
emptyHours: string;
|
|
17
|
+
emptyMinutes: string;
|
|
18
|
+
emptyMinutesForHourPeriod: string;
|
|
19
|
+
yearOption: string;
|
|
20
|
+
monthOption: string;
|
|
21
|
+
weekOption: string;
|
|
22
|
+
dayOption: string;
|
|
23
|
+
hourOption: string;
|
|
24
|
+
minuteOption: string;
|
|
25
|
+
rebootOption: string;
|
|
26
|
+
prefixPeriod: string;
|
|
27
|
+
prefixMonths: string;
|
|
28
|
+
prefixMonthDays: string;
|
|
29
|
+
prefixWeekDays: string;
|
|
30
|
+
prefixWeekDaysForMonthAndYearPeriod: string;
|
|
31
|
+
prefixHours: string;
|
|
32
|
+
prefixMinutes: string;
|
|
33
|
+
prefixMinutesForHourPeriod: string;
|
|
34
|
+
suffixMinutesForHourPeriod: string;
|
|
35
|
+
errorInvalidCron: string;
|
|
36
|
+
clearButtonText: string;
|
|
37
|
+
weekDays: string[];
|
|
38
|
+
months: string[];
|
|
39
|
+
altWeekDays: string[];
|
|
40
|
+
altMonths: string[];
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
package/dist/client/utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import type { BranchContextValue } from './BranchContext';
|
|
10
|
-
export
|
|
10
|
+
export declare function linkNodes(nodes: any): void;
|
|
11
11
|
export declare function traverseSchema(schema: any, fn: any): void;
|
|
12
12
|
export declare function getWorkflowDetailPath(id: string | number): string;
|
|
13
13
|
export declare function getWorkflowExecutionsPath(id: string | number): string;
|
|
@@ -15,9 +15,9 @@ type WorkflowCapabilityContext = {
|
|
|
15
15
|
engine: {
|
|
16
16
|
isWorkflowSync(workflow: any): boolean;
|
|
17
17
|
};
|
|
18
|
-
workflow
|
|
19
|
-
upstream
|
|
20
|
-
branchIndex
|
|
18
|
+
workflow: any;
|
|
19
|
+
upstream: any;
|
|
20
|
+
branchIndex: number | null;
|
|
21
21
|
syncOnly?: boolean;
|
|
22
22
|
branchContext?: Pick<BranchContextValue, 'syncOnly'> | null;
|
|
23
23
|
};
|
|
@@ -26,3 +26,4 @@ type AvailableInstruction = {
|
|
|
26
26
|
isAvailable?(ctx: WorkflowCapabilityContext): boolean;
|
|
27
27
|
};
|
|
28
28
|
export declare function getInstructionAvailable(instruction: AvailableInstruction, ctx: WorkflowCapabilityContext): string;
|
|
29
|
+
export {};
|
|
@@ -6,11 +6,40 @@
|
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { CollectionManager } from '@nocobase/client';
|
|
11
|
+
export type VariableOption = {
|
|
12
|
+
key?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
label?: string | React.ReactNode;
|
|
15
|
+
children?: VariableOption[] | null;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export type VariableDataType = 'boolean' | 'number' | 'string' | 'date' | {
|
|
19
|
+
type: 'reference';
|
|
20
|
+
options: {
|
|
21
|
+
collection: string;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
entity?: boolean;
|
|
24
|
+
};
|
|
25
|
+
} | ((field: any, options: {
|
|
26
|
+
collectionManager?: CollectionManager;
|
|
27
|
+
}) => boolean);
|
|
28
|
+
export type UseVariableOptions = {
|
|
29
|
+
types?: VariableDataType[];
|
|
30
|
+
fieldNames?: {
|
|
31
|
+
label?: string;
|
|
32
|
+
value?: string;
|
|
33
|
+
children?: string;
|
|
34
|
+
};
|
|
35
|
+
appends?: string[] | null;
|
|
36
|
+
depth?: number;
|
|
37
|
+
};
|
|
38
|
+
export declare const defaultFieldNames: {
|
|
39
|
+
readonly label: "label";
|
|
40
|
+
readonly value: "value";
|
|
41
|
+
readonly children: "children";
|
|
42
|
+
};
|
|
14
43
|
export declare const nodesOptions: {
|
|
15
44
|
label: string;
|
|
16
45
|
value: string;
|
|
@@ -33,8 +62,18 @@ export declare const systemOptions: {
|
|
|
33
62
|
value: string;
|
|
34
63
|
useOptions(options: UseVariableOptions): any;
|
|
35
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
*/
|
|
68
|
+
export declare const BaseTypeSets: {
|
|
69
|
+
boolean: Set<string>;
|
|
70
|
+
number: Set<string>;
|
|
71
|
+
string: Set<string>;
|
|
72
|
+
date: Set<string>;
|
|
73
|
+
};
|
|
36
74
|
export declare function useWorkflowVariableOptions(options?: UseVariableOptions, preset?: VariableOption[]): VariableOption[];
|
|
37
|
-
export declare function
|
|
75
|
+
export declare function getCollectionFieldOptions(options: any): VariableOption[];
|
|
76
|
+
export declare function useGetDataSourceCollectionManager(dataSourceName?: any): CollectionManager;
|
|
38
77
|
export declare function WorkflowVariableInput({ variableOptions, ...props }: {
|
|
39
78
|
[x: string]: any;
|
|
40
79
|
variableOptions: any;
|
|
@@ -55,4 +94,11 @@ export declare function WorkflowVariableJSON({ variableOptions, ...props }: {
|
|
|
55
94
|
* @experimental
|
|
56
95
|
*/
|
|
57
96
|
export declare function WorkflowVariableWrapper(props: any): JSX.Element;
|
|
58
|
-
|
|
97
|
+
/**
|
|
98
|
+
* @experimental
|
|
99
|
+
*/
|
|
100
|
+
export declare const HideVariableContext: React.Context<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* @experimental
|
|
103
|
+
*/
|
|
104
|
+
export declare function useHideVariable(): boolean;
|
|
@@ -188,24 +188,6 @@ declare const _default: {
|
|
|
188
188
|
constraints?: undefined;
|
|
189
189
|
through?: undefined;
|
|
190
190
|
otherKey?: undefined;
|
|
191
|
-
} | {
|
|
192
|
-
type: string;
|
|
193
|
-
name: string;
|
|
194
|
-
defaultValue: {
|
|
195
|
-
timeout?: undefined;
|
|
196
|
-
};
|
|
197
|
-
primaryKey?: undefined;
|
|
198
|
-
allowNull?: undefined;
|
|
199
|
-
interface?: undefined;
|
|
200
|
-
uiSchema?: undefined;
|
|
201
|
-
required?: undefined;
|
|
202
|
-
target?: undefined;
|
|
203
|
-
onDelete?: undefined;
|
|
204
|
-
foreignKey?: undefined;
|
|
205
|
-
sourceKey?: undefined;
|
|
206
|
-
constraints?: undefined;
|
|
207
|
-
through?: undefined;
|
|
208
|
-
otherKey?: undefined;
|
|
209
191
|
} | {
|
|
210
192
|
type: string;
|
|
211
193
|
name: string;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,33 +11,30 @@ module.exports = {
|
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"@formily/core": "2.3.7",
|
|
13
13
|
"@formily/react": "2.3.7",
|
|
14
|
-
"@nocobase/client": "2.2.0-
|
|
15
|
-
"@nocobase/utils": "2.2.0-
|
|
14
|
+
"@nocobase/client": "2.2.0-beta.10",
|
|
15
|
+
"@nocobase/utils": "2.2.0-beta.10",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
|
-
"@nocobase/flow-engine": "2.2.0-alpha.7",
|
|
19
|
-
"ahooks": "3.7.8",
|
|
20
18
|
"react-router-dom": "6.30.1",
|
|
21
19
|
"react-i18next": "11.18.6",
|
|
22
20
|
"lodash": "4.18.1",
|
|
23
21
|
"@dnd-kit/core": "6.1.0",
|
|
24
22
|
"@formily/shared": "2.3.7",
|
|
25
|
-
"@nocobase/
|
|
26
|
-
"@nocobase/
|
|
23
|
+
"@nocobase/flow-engine": "2.2.0-beta.10",
|
|
24
|
+
"@nocobase/plugin-mobile": "2.2.0-beta.10",
|
|
27
25
|
"sequelize": "6.35.2",
|
|
28
|
-
"@nocobase/server": "2.2.0-
|
|
29
|
-
"@nocobase/database": "2.2.0-
|
|
30
|
-
"@nocobase/data-source-manager": "2.2.0-
|
|
31
|
-
"@nocobase/logger": "2.2.0-
|
|
32
|
-
"@nocobase/evaluators": "2.2.0-
|
|
26
|
+
"@nocobase/server": "2.2.0-beta.10",
|
|
27
|
+
"@nocobase/database": "2.2.0-beta.10",
|
|
28
|
+
"@nocobase/data-source-manager": "2.2.0-beta.10",
|
|
29
|
+
"@nocobase/logger": "2.2.0-beta.10",
|
|
30
|
+
"@nocobase/evaluators": "2.2.0-beta.10",
|
|
33
31
|
"@formily/antd-v5": "1.2.3",
|
|
34
32
|
"@formily/reactive": "2.3.7",
|
|
35
33
|
"@emotion/css": "11.13.0",
|
|
36
34
|
"@formily/json-schema": "2.3.7",
|
|
37
|
-
"
|
|
35
|
+
"@formily/reactive-react": "2.3.7",
|
|
36
|
+
"@nocobase/actions": "2.2.0-beta.10",
|
|
38
37
|
"dayjs": "1.11.13",
|
|
39
|
-
"@nocobase/
|
|
40
|
-
"@nocobase/
|
|
41
|
-
"@nocobase/test": "2.2.0-alpha.7",
|
|
42
|
-
"@dnd-kit/sortable": "7.0.2"
|
|
38
|
+
"@nocobase/plugin-workflow-test": "2.2.0-beta.10",
|
|
39
|
+
"@nocobase/test": "2.2.0-beta.10"
|
|
43
40
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -102,9 +102,6 @@
|
|
|
102
102
|
"Executed at": "Ausgeführt am",
|
|
103
103
|
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Ausgeführter Workflow kann nicht geändert werden. Kann in eine neue Version kopiert werden, um Änderungen vorzunehmen.",
|
|
104
104
|
"Execution history": "Ausführungsverlauf",
|
|
105
|
-
"Version ID": "Versions-ID",
|
|
106
|
-
"Parent execution ID": "Übergeordnete Ausführungs-ID",
|
|
107
|
-
"Triggered manually": "Manuell ausgelöst",
|
|
108
105
|
"Timeout settings": "Zeitlimit-Einstellungen",
|
|
109
106
|
"0 means unlimited. If you set any other value and the execution is still not completed when the timeout is reached, the execution plan will be terminated and the remaining nodes will not be executed. Time spent in queue is not counted; timing starts only after it first enters a processor.": "0 bedeutet unbegrenzt. Wenn Sie einen anderen Wert festlegen und die Ausführung beim Erreichen des Zeitlimits noch nicht abgeschlossen ist, wird der Ausführungsplan beendet und die verbleibenden Knoten werden nicht mehr ausgeführt. Die Zeit in der Warteschlange wird nicht mitgezählt; die Zeitmessung beginnt erst, nachdem die Ausführung erstmals einen Prozessor erreicht hat.",
|
|
110
107
|
"Exit when query result is null": "Beenden, wenn das Abfrageergebnis null ist",
|
|
@@ -269,14 +266,5 @@
|
|
|
269
266
|
"Impacted dependent node variables": "Knoten, die Variablen des aktuellen Knotens referenzieren",
|
|
270
267
|
"Keep variable references": "Variablenreferenzen beibehalten",
|
|
271
268
|
"Keeping variable references requires manual adjustment, otherwise workflow may fail.": "Das Beibehalten von Variablenreferenzen erfordert eine manuelle Anpassung, andernfalls kann der Workflow fehlschlagen.",
|
|
272
|
-
"Failed to update node variables": "Aktualisierung der Knotenvariablen fehlgeschlagen"
|
|
273
|
-
"Unsupported node": "Unsupported node",
|
|
274
|
-
"This node type is not available in the new canvas yet.": "This node type is not available in the new canvas yet.",
|
|
275
|
-
"This node's configuration has not been migrated to the new canvas yet.": "This node's configuration has not been migrated to the new canvas yet.",
|
|
276
|
-
"Node title": "Node title",
|
|
277
|
-
"Failed to add node": "Failed to add node",
|
|
278
|
-
"Failed to delete node": "Failed to delete node",
|
|
279
|
-
"Failed to save node": "Failed to save node",
|
|
280
|
-
"Failed to run": "Failed to run",
|
|
281
|
-
"Copied node": "Copied node"
|
|
269
|
+
"Failed to update node variables": "Aktualisierung der Knotenvariablen fehlgeschlagen"
|
|
282
270
|
}
|