@nocobase/plugin-workflow-cc 2.2.0-beta.13 → 2.2.0-beta.15
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 +3 -0
- package/dist/client/164.feee9c6f7d571d46.js +10 -0
- package/dist/client/208.d91a659a2b3502bd.js +10 -0
- package/dist/client/352.4012efde85e3acaf.js +10 -0
- package/dist/client/437.78f2b52a4a3fac84.js +10 -0
- package/dist/client/458.da07eac3bc1412d1.js +10 -0
- package/dist/client/486.5966b38a176b8313.js +10 -0
- package/dist/client/746.9362358210d85302.js +10 -0
- package/dist/client/86.e6c4759f3e699b2d.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client/instruction/index.d.ts +2 -128
- package/dist/client-v2/164.e2c25964de2486b9.js +10 -0
- package/dist/client-v2/352.a8dbaca3691905cb.js +10 -0
- package/dist/client-v2/437.cbf01251aba7d74f.js +10 -0
- package/dist/client-v2/458.51f1362d12aefe62.js +10 -0
- package/dist/client-v2/486.d0a505ec5bea795c.js +10 -0
- package/dist/client-v2/679.1a40558fb0f1c4e6.js +10 -0
- package/dist/client-v2/746.b0fb6ac7c4f7e83b.js +10 -0
- package/dist/client-v2/86.f7881bb89e51a4b6.js +10 -0
- package/dist/client-v2/components/FlowModelConfigInput.d.ts +20 -0
- package/dist/{client → client-v2}/flow/RemoteFlowModelRenderer.d.ts +5 -5
- package/dist/client-v2/hooks/useTempAssociationSources.d.ts +11 -0
- package/dist/{client/models/CCChildPageModel.d.ts → client-v2/index.d.ts} +2 -4
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +12 -0
- package/dist/{client → client-v2}/models/CCBlockGridModel.d.ts +2 -1
- package/dist/client-v2/models/CCChildPageModel.d.ts +23 -0
- package/dist/{client → client-v2}/models/CCTaskCardDetailsAssociationFieldGroupModel.d.ts +3 -2
- package/dist/{client → client-v2}/models/CCTaskCardDetailsItemModel.d.ts +16 -10
- package/dist/{client → client-v2}/models/CCTaskCardDetailsModel.d.ts +6 -9
- package/dist/{client → client-v2}/models/CCTaskCardGridModel.d.ts +2 -4
- package/dist/{client → client-v2}/models/CCTriggerBlockGridModel.d.ts +2 -1
- package/dist/client-v2/models/registerModelLoaders.d.ts +10 -0
- package/dist/client-v2/nodes/cc.d.ts +21 -0
- package/dist/client-v2/nodes/components/RecipientsInput.d.ts +19 -0
- package/dist/{client/models/CCChildPageTabModel.d.ts → client-v2/nodes/components/cc.d.ts} +2 -4
- package/dist/client-v2/plugin.d.ts +16 -0
- package/dist/client-v2/tasks.d.ts +15 -0
- package/dist/client-v2/utils/registerWorkflowCcCollections.d.ts +10 -0
- package/dist/client-v2/workflowPluginCompat.d.ts +41 -0
- package/dist/externalVersion.js +12 -12
- package/dist/locale/en-US.json +6 -0
- package/dist/locale/zh-CN.json +4 -0
- package/package.json +8 -3
- package/dist/client/instruction/SchemaConfig.d.ts +0 -17
|
@@ -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 { type FlowEngine } from '@nocobase/flow-engine';
|
|
10
|
+
export declare function registerWorkflowCcCollections(flowEngine: FlowEngine): void;
|
|
@@ -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 { type SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
+
import { type TempAssociationSource } from '@nocobase/plugin-workflow/client-v2';
|
|
11
|
+
export type WorkflowLike = {
|
|
12
|
+
config?: Record<string, unknown>;
|
|
13
|
+
id?: number | string;
|
|
14
|
+
type?: string;
|
|
15
|
+
};
|
|
16
|
+
export type CanvasNodeLike = {
|
|
17
|
+
config?: Record<string, unknown>;
|
|
18
|
+
id?: number | string;
|
|
19
|
+
key?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
};
|
|
22
|
+
type WorkflowTriggerLike = {
|
|
23
|
+
getCreateModelMenuItem?: (args: {
|
|
24
|
+
config: Record<string, unknown>;
|
|
25
|
+
nodeType?: string;
|
|
26
|
+
workflow?: WorkflowLike;
|
|
27
|
+
}) => SubModelItem | SubModelItem[] | null;
|
|
28
|
+
useTempAssociationSource?: (config?: Record<string, unknown>, workflow?: WorkflowLike) => TempAssociationSource | null;
|
|
29
|
+
};
|
|
30
|
+
type WorkflowInstructionLike = {
|
|
31
|
+
getCreateModelMenuItem?: (args: {
|
|
32
|
+
node: CanvasNodeLike;
|
|
33
|
+
workflow?: WorkflowLike;
|
|
34
|
+
}) => SubModelItem | SubModelItem[] | null;
|
|
35
|
+
useTempAssociationSource?: (node: CanvasNodeLike) => TempAssociationSource | null;
|
|
36
|
+
};
|
|
37
|
+
export declare function useWorkflowPluginCompat(): {
|
|
38
|
+
getInstruction: (type?: string) => WorkflowInstructionLike;
|
|
39
|
+
getTrigger: (type?: string) => WorkflowTriggerLike;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "2.2.0-beta.
|
|
13
|
-
"@nocobase/plugin-workflow": "2.2.0-beta.
|
|
12
|
+
"@nocobase/client": "2.2.0-beta.15",
|
|
13
|
+
"@nocobase/plugin-workflow": "2.2.0-beta.15",
|
|
14
14
|
"react-i18next": "11.18.6",
|
|
15
15
|
"antd-style": "3.7.1",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"react-router-dom": "6.30.1",
|
|
18
18
|
"lodash": "4.18.1",
|
|
19
|
-
"@nocobase/
|
|
20
|
-
"@nocobase/
|
|
21
|
-
"@nocobase/actions": "2.2.0-beta.13",
|
|
22
|
-
"@nocobase/server": "2.2.0-beta.13",
|
|
23
|
-
"@nocobase/database": "2.2.0-beta.13",
|
|
24
|
-
"@nocobase/data-source-manager": "2.2.0-beta.13",
|
|
25
|
-
"@nocobase/flow-engine": "2.2.0-beta.13",
|
|
26
|
-
"@formily/shared": "2.3.7",
|
|
27
|
-
"@formily/react": "2.3.7",
|
|
19
|
+
"@nocobase/flow-engine": "2.2.0-beta.15",
|
|
20
|
+
"@nocobase/client-v2": "2.2.0-beta.15",
|
|
28
21
|
"@ant-design/icons": "5.6.1",
|
|
29
|
-
"
|
|
22
|
+
"ahooks": "3.7.8",
|
|
23
|
+
"@nocobase/utils": "2.2.0-beta.15",
|
|
24
|
+
"@nocobase/plugin-ui-schema-storage": "2.2.0-beta.15",
|
|
25
|
+
"@nocobase/actions": "2.2.0-beta.15",
|
|
26
|
+
"@nocobase/server": "2.2.0-beta.15",
|
|
27
|
+
"@nocobase/database": "2.2.0-beta.15",
|
|
28
|
+
"@nocobase/data-source-manager": "2.2.0-beta.15",
|
|
29
|
+
"@nocobase/plugin-notification-manager": "2.2.0-beta.15"
|
|
30
30
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"CC": "CC",
|
|
3
|
+
"CC node": "CC node",
|
|
3
4
|
"CC to me": "CC to me",
|
|
4
5
|
"CC information": "CC information",
|
|
5
6
|
"Configure user interface": "Configure user interface",
|
|
@@ -11,14 +12,19 @@
|
|
|
11
12
|
"Mark all as read": "Mark all as read",
|
|
12
13
|
"Mark as read": "Mark as read",
|
|
13
14
|
"Mark as unread": "Mark as unread",
|
|
15
|
+
"Please wait for the workflow model configuration to finish opening.": "Please wait for the workflow model configuration to finish opening.",
|
|
14
16
|
"Refresh": "Refresh",
|
|
15
17
|
"Filter": "Filter",
|
|
18
|
+
"Execution": "Execution",
|
|
19
|
+
"Load failed": "Load failed",
|
|
20
|
+
"Workflow": "Workflow",
|
|
16
21
|
"Provide a CC (carbon copy) feature in workflows to send approvals, or any other type of information to specified users.": "Provide a CC (carbon copy) feature in workflows to send approvals, or any other type of information to specified users.",
|
|
17
22
|
"Read": "Read",
|
|
18
23
|
"Recipients": "Recipients",
|
|
19
24
|
"Task card": "Task card",
|
|
20
25
|
"Task title": "Task title",
|
|
21
26
|
"Title of each CC item in tasks center. Could use variables in string template. Default to node title.": "Title of each CC item in tasks center. Could use variables in string template. Default to node title.",
|
|
27
|
+
"Status": "Status",
|
|
22
28
|
"Read at": "Read at",
|
|
23
29
|
"Created at": "Created at",
|
|
24
30
|
"Updated at": "Updated at",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -13,14 +13,18 @@
|
|
|
13
13
|
"Mark all as read": "全部标为已读",
|
|
14
14
|
"Mark as read": "标为已读",
|
|
15
15
|
"Mark as unread": "标为未读",
|
|
16
|
+
"Please wait for the workflow model configuration to finish opening.": "请等待工作流模型配置打开完成。",
|
|
16
17
|
"Refresh": "刷新",
|
|
17
18
|
"Filter": "筛选",
|
|
19
|
+
"Execution": "执行",
|
|
20
|
+
"Load failed": "加载失败",
|
|
18
21
|
"Provide a CC (carbon copy) feature in workflows to send approvals, or any other type of information to specified users.": "在工作流中提供抄送功能,将审批或其他任意信息抄送给特定的用户。",
|
|
19
22
|
"Read": "已读",
|
|
20
23
|
"Recipients": "接收人",
|
|
21
24
|
"Task card": "任务卡片",
|
|
22
25
|
"Task title": "任务标题",
|
|
23
26
|
"Status": "状态",
|
|
27
|
+
"Workflow": "工作流",
|
|
24
28
|
"Read at": "阅读时间",
|
|
25
29
|
"Created at": "创建时间",
|
|
26
30
|
"Updated at": "更新时间",
|
package/package.json
CHANGED
|
@@ -10,20 +10,25 @@
|
|
|
10
10
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/workflow-cc",
|
|
11
11
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-cc",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
|
-
"version": "2.2.0-beta.
|
|
13
|
+
"version": "2.2.0-beta.15",
|
|
14
14
|
"main": "dist/server/index.js",
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@nocobase/actions": "2.x",
|
|
17
17
|
"@nocobase/client": "2.x",
|
|
18
|
+
"@nocobase/client-v2": "2.x",
|
|
19
|
+
"@nocobase/flow-engine": "2.x",
|
|
20
|
+
"@nocobase/plugin-flow-engine": "2.x",
|
|
21
|
+
"@nocobase/plugin-notification-manager": "2.x",
|
|
18
22
|
"@nocobase/plugin-ui-schema-storage": "2.x",
|
|
19
23
|
"@nocobase/plugin-users": "2.x",
|
|
20
24
|
"@nocobase/plugin-workflow": "2.x",
|
|
21
25
|
"@nocobase/server": "2.x",
|
|
22
26
|
"@nocobase/test": "2.x",
|
|
23
|
-
"@nocobase/utils": "2.x"
|
|
27
|
+
"@nocobase/utils": "2.x",
|
|
28
|
+
"ahooks": "^3.7.2"
|
|
24
29
|
},
|
|
25
30
|
"keywords": [
|
|
26
31
|
"Workflow"
|
|
27
32
|
],
|
|
28
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "4c471f6b7d26adc412b2cc1d91264572296ca873"
|
|
29
34
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { SchemaInitializer } from '@nocobase/client';
|
|
11
|
-
export declare const addBlockButton: SchemaInitializer<import("antd").ButtonProps, {}>;
|
|
12
|
-
export declare function SchemaConfig(): React.JSX.Element;
|
|
13
|
-
export declare function SchemaConfigButton(props: any): React.JSX.Element;
|
|
14
|
-
export declare function CCInterfaceConfig({ children }: {
|
|
15
|
-
children: any;
|
|
16
|
-
}): React.JSX.Element;
|
|
17
|
-
export declare function CCTaskCardConfigButton(): React.JSX.Element;
|