@nocobase/plugin-workflow 0.17.0-alpha.3 → 0.17.0-alpha.4
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/WorkflowPane.d.ts +2 -0
- package/dist/client/components/index.d.ts +5 -0
- package/dist/client/hooks/useTriggerWorkflowActionProps.d.ts +3 -0
- package/dist/client/index.d.ts +14 -6
- package/dist/client/index.js +136 -186
- package/dist/client/nodes/calculation.d.ts +8 -62
- package/dist/client/nodes/condition.d.ts +9 -9
- package/dist/client/nodes/create.d.ts +3 -5
- package/dist/client/nodes/destroy.d.ts +3 -4
- package/dist/client/nodes/index.d.ts +2 -6
- package/dist/client/nodes/query.d.ts +3 -5
- package/dist/client/nodes/update.d.ts +4 -4
- package/dist/client/triggers/collection.d.ts +3 -4
- package/dist/client/triggers/index.d.ts +2 -11
- package/dist/client/triggers/schedule/index.d.ts +3 -4
- package/dist/client/utils.d.ts +1 -0
- package/dist/externalVersion.js +11 -13
- package/dist/locale/en-US.json +1 -32
- package/dist/locale/es-ES.json +1 -32
- package/dist/locale/fr-FR.json +1 -32
- package/dist/locale/ja-JP.json +0 -5
- package/dist/locale/pt-BR.json +1 -32
- package/dist/locale/ru-RU.json +0 -5
- package/dist/locale/tr-TR.json +0 -5
- package/dist/locale/zh-CN.json +42 -114
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/server/Plugin.d.ts +12 -2
- package/dist/server/Plugin.js +31 -7
- package/dist/server/Processor.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -0
- package/dist/server/instructions/CalculationInstruction.d.ts +15 -0
- package/dist/server/instructions/{calculation.js → CalculationInstruction.js} +13 -6
- package/dist/server/instructions/ConditionInstruction.d.ts +19 -0
- package/dist/server/instructions/{condition.js → ConditionInstruction.js} +11 -7
- package/dist/server/instructions/CreateInstruction.d.ts +10 -0
- package/dist/server/instructions/{create.js → CreateInstruction.js} +13 -6
- package/dist/server/instructions/DestroyInstruction.d.ts +10 -0
- package/dist/server/instructions/{destroy.js → DestroyInstruction.js} +13 -6
- package/dist/server/instructions/{update.d.ts → QueryInstruction.d.ts} +5 -4
- package/dist/server/instructions/{query.js → QueryInstruction.js} +13 -6
- package/dist/server/instructions/{aggregate.d.ts → UpdateInstruction.d.ts} +5 -4
- package/dist/server/instructions/{update.js → UpdateInstruction.js} +13 -6
- package/dist/server/instructions/index.d.ts +10 -14
- package/dist/server/instructions/index.js +9 -39
- package/dist/server/migrations/20231122143143-split-to-plugins.d.ts +4 -0
- package/dist/server/migrations/20231122143143-split-to-plugins.js +87 -0
- package/dist/server/triggers/{collection.d.ts → CollectionTrigger.d.ts} +1 -1
- package/dist/server/triggers/{collection.js → CollectionTrigger.js} +15 -5
- package/dist/server/triggers/{schedule.d.ts → ScheduleTrigger.d.ts} +2 -1
- package/dist/server/triggers/{schedule.js → ScheduleTrigger.js} +5 -5
- package/dist/server/triggers/index.d.ts +2 -6
- package/dist/server/triggers/index.js +1 -21
- package/package.json +3 -2
- package/dist/client/WorkflowProvider.d.ts +0 -5
- package/dist/client/components/Duration.d.ts +0 -5
- package/dist/client/components/DynamicExpression.d.ts +0 -6
- package/dist/client/components/NullRender.d.ts +0 -1
- package/dist/client/interfaces/expression.d.ts +0 -3
- package/dist/client/nodes/aggregate.d.ts +0 -196
- package/dist/client/nodes/delay.d.ts +0 -35
- package/dist/client/nodes/loop.d.ts +0 -33
- package/dist/client/nodes/manual/AssigneesSelect.d.ts +0 -6
- package/dist/client/nodes/manual/DetailsBlockProvider.d.ts +0 -2
- package/dist/client/nodes/manual/FormBlockInitializer.d.ts +0 -2
- package/dist/client/nodes/manual/FormBlockProvider.d.ts +0 -2
- package/dist/client/nodes/manual/ModeConfig.d.ts +0 -5
- package/dist/client/nodes/manual/SchemaConfig.d.ts +0 -49
- package/dist/client/nodes/manual/WorkflowTodo.d.ts +0 -5
- package/dist/client/nodes/manual/WorkflowTodoBlockInitializer.d.ts +0 -2
- package/dist/client/nodes/manual/forms/create.d.ts +0 -3
- package/dist/client/nodes/manual/forms/custom.d.ts +0 -5
- package/dist/client/nodes/manual/forms/update.d.ts +0 -3
- package/dist/client/nodes/manual/index.d.ts +0 -86
- package/dist/client/nodes/manual/utils.d.ts +0 -2
- package/dist/client/nodes/parallel.d.ts +0 -32
- package/dist/client/nodes/request.d.ts +0 -183
- package/dist/client/nodes/sql.d.ts +0 -35
- package/dist/client/triggers/form.d.ts +0 -52
- package/dist/server/fields/expression-field.d.ts +0 -7
- package/dist/server/fields/expression-field.js +0 -32
- package/dist/server/fields/index.d.ts +0 -1
- package/dist/server/fields/index.js +0 -28
- package/dist/server/instructions/aggregate.js +0 -54
- package/dist/server/instructions/calculation.d.ts +0 -3
- package/dist/server/instructions/condition.d.ts +0 -6
- package/dist/server/instructions/create.d.ts +0 -8
- package/dist/server/instructions/delay.d.ts +0 -15
- package/dist/server/instructions/delay.js +0 -104
- package/dist/server/instructions/destroy.d.ts +0 -8
- package/dist/server/instructions/loop.d.ts +0 -15
- package/dist/server/instructions/loop.js +0 -94
- package/dist/server/instructions/manual/actions.d.ts +0 -2
- package/dist/server/instructions/manual/actions.js +0 -94
- package/dist/server/instructions/manual/collecions/jobs.d.ts +0 -19
- package/dist/server/instructions/manual/collecions/jobs.js +0 -39
- package/dist/server/instructions/manual/collecions/users.d.ts +0 -15
- package/dist/server/instructions/manual/collecions/users.js +0 -37
- package/dist/server/instructions/manual/collecions/users_jobs.d.ts +0 -3
- package/dist/server/instructions/manual/collecions/users_jobs.js +0 -70
- package/dist/server/instructions/manual/forms/create.d.ts +0 -5
- package/dist/server/instructions/manual/forms/create.js +0 -41
- package/dist/server/instructions/manual/forms/index.d.ts +0 -6
- package/dist/server/instructions/manual/forms/index.js +0 -38
- package/dist/server/instructions/manual/forms/update.d.ts +0 -6
- package/dist/server/instructions/manual/forms/update.js +0 -41
- package/dist/server/instructions/manual/index.d.ts +0 -29
- package/dist/server/instructions/manual/index.js +0 -179
- package/dist/server/instructions/parallel.d.ts +0 -12
- package/dist/server/instructions/parallel.js +0 -124
- package/dist/server/instructions/query.d.ts +0 -9
- package/dist/server/instructions/request.d.ts +0 -18
- package/dist/server/instructions/request.js +0 -92
- package/dist/server/instructions/sql.d.ts +0 -12
- package/dist/server/instructions/sql.js +0 -43
- package/dist/server/triggers/form.d.ts +0 -11
- package/dist/server/triggers/form.js +0 -116
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
|
|
3
|
-
import { FilterDynamicComponent } from '../components/FilterDynamicComponent';
|
|
4
|
-
declare function AssociatedConfig({ value, onChange, ...props }: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
value: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
title: string;
|
|
11
|
-
type: string;
|
|
12
|
-
group: string;
|
|
13
|
-
description: string;
|
|
14
|
-
fieldset: {
|
|
15
|
-
aggregator: {
|
|
16
|
-
type: string;
|
|
17
|
-
title: string;
|
|
18
|
-
'x-decorator': string;
|
|
19
|
-
'x-component': string;
|
|
20
|
-
enum: {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
required: boolean;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
associated: {
|
|
28
|
-
type: string;
|
|
29
|
-
title: string;
|
|
30
|
-
'x-decorator': string;
|
|
31
|
-
'x-component': string;
|
|
32
|
-
enum: {
|
|
33
|
-
label: string;
|
|
34
|
-
value: boolean;
|
|
35
|
-
}[];
|
|
36
|
-
required: boolean;
|
|
37
|
-
default: boolean;
|
|
38
|
-
'x-reactions': {
|
|
39
|
-
target: string;
|
|
40
|
-
effects: string[];
|
|
41
|
-
fulfill: {
|
|
42
|
-
state: {
|
|
43
|
-
value: any;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
collectionField: {
|
|
49
|
-
type: string;
|
|
50
|
-
'x-decorator': string;
|
|
51
|
-
'x-decorator-props': {
|
|
52
|
-
value: {
|
|
53
|
-
designable: boolean;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
'x-component': string;
|
|
57
|
-
properties: {
|
|
58
|
-
row: {
|
|
59
|
-
type: string;
|
|
60
|
-
'x-component': string;
|
|
61
|
-
properties: {
|
|
62
|
-
target: {
|
|
63
|
-
type: string;
|
|
64
|
-
'x-component': string;
|
|
65
|
-
properties: {
|
|
66
|
-
collection: {
|
|
67
|
-
title: string;
|
|
68
|
-
'x-component-props': {
|
|
69
|
-
className: any;
|
|
70
|
-
};
|
|
71
|
-
'x-reactions': any[];
|
|
72
|
-
type: string;
|
|
73
|
-
required: boolean;
|
|
74
|
-
'x-decorator': string;
|
|
75
|
-
'x-component': string;
|
|
76
|
-
};
|
|
77
|
-
association: {
|
|
78
|
-
type: string;
|
|
79
|
-
title: string;
|
|
80
|
-
'x-decorator': string;
|
|
81
|
-
'x-component': string;
|
|
82
|
-
'x-component-props': {
|
|
83
|
-
changeOnSelect: boolean;
|
|
84
|
-
};
|
|
85
|
-
'x-reactions': {
|
|
86
|
-
dependencies: string[];
|
|
87
|
-
fulfill: {
|
|
88
|
-
state: {
|
|
89
|
-
visible: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
}[];
|
|
93
|
-
required: boolean;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
field: {
|
|
98
|
-
type: string;
|
|
99
|
-
'x-component': string;
|
|
100
|
-
properties: {
|
|
101
|
-
'params.field': {
|
|
102
|
-
type: string;
|
|
103
|
-
title: string;
|
|
104
|
-
'x-decorator': string;
|
|
105
|
-
'x-component': string;
|
|
106
|
-
'x-component-props': {
|
|
107
|
-
filter(field: any): boolean;
|
|
108
|
-
};
|
|
109
|
-
required: boolean;
|
|
110
|
-
'x-reactions': {
|
|
111
|
-
dependencies: string[];
|
|
112
|
-
fulfill: {
|
|
113
|
-
state: {
|
|
114
|
-
visible: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
}[];
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
params: {
|
|
126
|
-
type: string;
|
|
127
|
-
properties: {
|
|
128
|
-
distinct: {
|
|
129
|
-
type: string;
|
|
130
|
-
title: string;
|
|
131
|
-
'x-decorator': string;
|
|
132
|
-
'x-component': string;
|
|
133
|
-
'x-reactions': {
|
|
134
|
-
dependencies: string[];
|
|
135
|
-
fulfill: {
|
|
136
|
-
state: {
|
|
137
|
-
visible: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
}[];
|
|
141
|
-
};
|
|
142
|
-
filter: {
|
|
143
|
-
'x-reactions': {
|
|
144
|
-
dependencies: string[];
|
|
145
|
-
fulfill: {
|
|
146
|
-
state: {
|
|
147
|
-
visible: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
}[];
|
|
151
|
-
type: string;
|
|
152
|
-
title: string;
|
|
153
|
-
'x-decorator': string;
|
|
154
|
-
'x-component': string;
|
|
155
|
-
'x-component-props': {
|
|
156
|
-
useProps(): {
|
|
157
|
-
options: any[];
|
|
158
|
-
className: string;
|
|
159
|
-
};
|
|
160
|
-
dynamicComponent: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
view: {};
|
|
167
|
-
scope: {
|
|
168
|
-
useCollectionDataSource: typeof useCollectionDataSource;
|
|
169
|
-
};
|
|
170
|
-
components: {
|
|
171
|
-
SchemaComponentContext: React.Context<import("@nocobase/client").ISchemaComponentContext>;
|
|
172
|
-
FilterDynamicComponent: typeof FilterDynamicComponent;
|
|
173
|
-
FieldsSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
|
|
174
|
-
ValueBlock: (() => JSX.Element) & {
|
|
175
|
-
Initializer: () => JSX.Element;
|
|
176
|
-
Result: (props: any) => JSX.Element;
|
|
177
|
-
};
|
|
178
|
-
AssociatedConfig: typeof AssociatedConfig;
|
|
179
|
-
};
|
|
180
|
-
useVariables({ key, title }: {
|
|
181
|
-
key: any;
|
|
182
|
-
title: any;
|
|
183
|
-
}, { types, fieldNames }: {
|
|
184
|
-
types: any;
|
|
185
|
-
fieldNames?: {
|
|
186
|
-
readonly label: "label";
|
|
187
|
-
readonly value: "value";
|
|
188
|
-
readonly children: "children";
|
|
189
|
-
};
|
|
190
|
-
}): {
|
|
191
|
-
value: any;
|
|
192
|
-
label: any;
|
|
193
|
-
};
|
|
194
|
-
useInitializers(node: any): SchemaInitializerItemType | null;
|
|
195
|
-
};
|
|
196
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import Duration from '../components/Duration';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
group: string;
|
|
6
|
-
description: string;
|
|
7
|
-
fieldset: {
|
|
8
|
-
duration: {
|
|
9
|
-
type: string;
|
|
10
|
-
title: string;
|
|
11
|
-
'x-decorator': string;
|
|
12
|
-
'x-component': string;
|
|
13
|
-
default: number;
|
|
14
|
-
required: boolean;
|
|
15
|
-
};
|
|
16
|
-
endStatus: {
|
|
17
|
-
type: string;
|
|
18
|
-
title: string;
|
|
19
|
-
'x-decorator': string;
|
|
20
|
-
'x-component': string;
|
|
21
|
-
enum: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: number;
|
|
24
|
-
}[];
|
|
25
|
-
required: boolean;
|
|
26
|
-
default: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
view: {};
|
|
30
|
-
scope: {};
|
|
31
|
-
components: {
|
|
32
|
-
Duration: typeof Duration;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VariableOption, WorkflowVariableInput } from '../variable';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
type: string;
|
|
6
|
-
group: string;
|
|
7
|
-
description: string;
|
|
8
|
-
fieldset: {
|
|
9
|
-
target: {
|
|
10
|
-
type: string;
|
|
11
|
-
title: string;
|
|
12
|
-
description: string;
|
|
13
|
-
'x-decorator': string;
|
|
14
|
-
'x-component': string;
|
|
15
|
-
'x-component-props': {
|
|
16
|
-
changeOnSelect: boolean;
|
|
17
|
-
useTypedConstant: string[];
|
|
18
|
-
className: string;
|
|
19
|
-
};
|
|
20
|
-
required: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
view: {};
|
|
24
|
-
component: ({ data }: {
|
|
25
|
-
data: any;
|
|
26
|
-
}) => React.JSX.Element;
|
|
27
|
-
scope: {};
|
|
28
|
-
components: {
|
|
29
|
-
WorkflowVariableInput: typeof WorkflowVariableInput;
|
|
30
|
-
};
|
|
31
|
-
useScopeVariables(node: any, options: any): VariableOption[];
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ISchema } from '@formily/react';
|
|
3
|
-
import { SchemaInitializer, SchemaInitializerItemType } from '@nocobase/client';
|
|
4
|
-
import { JOB_STATUS } from '../../constants';
|
|
5
|
-
type ValueOf<T> = T[keyof T];
|
|
6
|
-
export type FormType = {
|
|
7
|
-
type: 'create' | 'update' | 'custom';
|
|
8
|
-
title: string;
|
|
9
|
-
actions: ValueOf<typeof JOB_STATUS>[];
|
|
10
|
-
collection: string | {
|
|
11
|
-
name: string;
|
|
12
|
-
fields: any[];
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type ManualFormType = {
|
|
17
|
-
title: string;
|
|
18
|
-
config: {
|
|
19
|
-
useInitializer: ({ collections }?: {
|
|
20
|
-
collections: any[];
|
|
21
|
-
}) => SchemaInitializerItemType;
|
|
22
|
-
initializers?: {
|
|
23
|
-
[key: string]: React.FC;
|
|
24
|
-
};
|
|
25
|
-
components?: {
|
|
26
|
-
[key: string]: React.FC;
|
|
27
|
-
};
|
|
28
|
-
parseFormOptions(root: ISchema): {
|
|
29
|
-
[key: string]: FormType;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
block: {
|
|
33
|
-
scope?: {
|
|
34
|
-
[key: string]: () => any;
|
|
35
|
-
};
|
|
36
|
-
components?: {
|
|
37
|
-
[key: string]: React.FC;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export declare const manualFormTypes: any;
|
|
42
|
-
export declare const addBlockButton: SchemaInitializer<import("antd").ButtonProps, {}>;
|
|
43
|
-
export declare const addActionButton: SchemaInitializer<import("antd").ButtonProps, {}>;
|
|
44
|
-
export declare function SchemaConfig({ value, onChange }: {
|
|
45
|
-
value: any;
|
|
46
|
-
onChange: any;
|
|
47
|
-
}): React.JSX.Element;
|
|
48
|
-
export declare function SchemaConfigButton(props: any): React.JSX.Element;
|
|
49
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { SchemaInitializerItemType } from '@nocobase/client';
|
|
2
|
-
import { AssigneesSelect } from './AssigneesSelect';
|
|
3
|
-
import { ModeConfig } from './ModeConfig';
|
|
4
|
-
import { SchemaConfig, SchemaConfigButton } from './SchemaConfig';
|
|
5
|
-
declare const _default: {
|
|
6
|
-
title: string;
|
|
7
|
-
type: string;
|
|
8
|
-
group: string;
|
|
9
|
-
description: string;
|
|
10
|
-
fieldset: {
|
|
11
|
-
assignees: {
|
|
12
|
-
type: string;
|
|
13
|
-
title: string;
|
|
14
|
-
'x-decorator': string;
|
|
15
|
-
'x-component': string;
|
|
16
|
-
'x-component-props': {};
|
|
17
|
-
required: boolean;
|
|
18
|
-
default: any[];
|
|
19
|
-
};
|
|
20
|
-
mode: {
|
|
21
|
-
type: string;
|
|
22
|
-
title: string;
|
|
23
|
-
'x-decorator': string;
|
|
24
|
-
'x-component': string;
|
|
25
|
-
default: number;
|
|
26
|
-
'x-reactions': {
|
|
27
|
-
dependencies: string[];
|
|
28
|
-
fulfill: {
|
|
29
|
-
state: {
|
|
30
|
-
visible: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
schema: {
|
|
36
|
-
type: string;
|
|
37
|
-
title: string;
|
|
38
|
-
'x-decorator': string;
|
|
39
|
-
'x-component': string;
|
|
40
|
-
properties: {
|
|
41
|
-
schema: {
|
|
42
|
-
type: string;
|
|
43
|
-
'x-component': string;
|
|
44
|
-
default: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
forms: {
|
|
49
|
-
type: string;
|
|
50
|
-
default: {};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
view: {};
|
|
54
|
-
scope: {};
|
|
55
|
-
components: {
|
|
56
|
-
SchemaConfigButton: typeof SchemaConfigButton;
|
|
57
|
-
SchemaConfig: typeof SchemaConfig;
|
|
58
|
-
ModeConfig: typeof ModeConfig;
|
|
59
|
-
AssigneesSelect: typeof AssigneesSelect;
|
|
60
|
-
};
|
|
61
|
-
useVariables({ key, title, config }: {
|
|
62
|
-
key: any;
|
|
63
|
-
title: any;
|
|
64
|
-
config: any;
|
|
65
|
-
}, { types, fieldNames }: {
|
|
66
|
-
types: any;
|
|
67
|
-
fieldNames?: {
|
|
68
|
-
readonly label: "label";
|
|
69
|
-
readonly value: "value";
|
|
70
|
-
readonly children: "children";
|
|
71
|
-
};
|
|
72
|
-
}): {
|
|
73
|
-
value: any;
|
|
74
|
-
label: any;
|
|
75
|
-
children: {
|
|
76
|
-
key: string;
|
|
77
|
-
value: string;
|
|
78
|
-
label: any;
|
|
79
|
-
title: any;
|
|
80
|
-
children: import("../../variable").VariableOption[];
|
|
81
|
-
}[];
|
|
82
|
-
};
|
|
83
|
-
useInitializers(node: any): SchemaInitializerItemType | null;
|
|
84
|
-
initializers: {};
|
|
85
|
-
};
|
|
86
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioWithTooltip } from '../components/RadioWithTooltip';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
type: string;
|
|
6
|
-
group: string;
|
|
7
|
-
description: string;
|
|
8
|
-
fieldset: {
|
|
9
|
-
mode: {
|
|
10
|
-
type: string;
|
|
11
|
-
title: string;
|
|
12
|
-
'x-decorator': string;
|
|
13
|
-
'x-component': string;
|
|
14
|
-
'x-component-props': {
|
|
15
|
-
options: {
|
|
16
|
-
value: string;
|
|
17
|
-
label: string;
|
|
18
|
-
tooltip: string;
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
view: {};
|
|
25
|
-
component: ({ data }: {
|
|
26
|
-
data: any;
|
|
27
|
-
}) => React.JSX.Element;
|
|
28
|
-
components: {
|
|
29
|
-
RadioWithTooltip: typeof RadioWithTooltip;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { WorkflowVariableInput, WorkflowVariableJSON } from '../variable';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
group: string;
|
|
6
|
-
description: string;
|
|
7
|
-
fieldset: {
|
|
8
|
-
method: {
|
|
9
|
-
type: string;
|
|
10
|
-
required: boolean;
|
|
11
|
-
title: string;
|
|
12
|
-
'x-decorator': string;
|
|
13
|
-
'x-component': string;
|
|
14
|
-
'x-component-props': {
|
|
15
|
-
showSearch: boolean;
|
|
16
|
-
allowClear: boolean;
|
|
17
|
-
className: string;
|
|
18
|
-
};
|
|
19
|
-
enum: {
|
|
20
|
-
label: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}[];
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
url: {
|
|
26
|
-
type: string;
|
|
27
|
-
required: boolean;
|
|
28
|
-
title: string;
|
|
29
|
-
'x-decorator': string;
|
|
30
|
-
'x-decorator-props': {};
|
|
31
|
-
'x-component': string;
|
|
32
|
-
'x-component-props': {
|
|
33
|
-
placeholder: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
headers: {
|
|
37
|
-
type: string;
|
|
38
|
-
'x-component': string;
|
|
39
|
-
'x-decorator': string;
|
|
40
|
-
title: string;
|
|
41
|
-
description: string;
|
|
42
|
-
items: {
|
|
43
|
-
type: string;
|
|
44
|
-
properties: {
|
|
45
|
-
space: {
|
|
46
|
-
type: string;
|
|
47
|
-
'x-component': string;
|
|
48
|
-
properties: {
|
|
49
|
-
name: {
|
|
50
|
-
type: string;
|
|
51
|
-
'x-decorator': string;
|
|
52
|
-
'x-component': string;
|
|
53
|
-
'x-component-props': {
|
|
54
|
-
placeholder: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
value: {
|
|
58
|
-
type: string;
|
|
59
|
-
'x-decorator': string;
|
|
60
|
-
'x-component': string;
|
|
61
|
-
'x-component-props': {
|
|
62
|
-
useTypedConstant: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
remove: {
|
|
66
|
-
type: string;
|
|
67
|
-
'x-decorator': string;
|
|
68
|
-
'x-component': string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
properties: {
|
|
75
|
-
add: {
|
|
76
|
-
type: string;
|
|
77
|
-
title: string;
|
|
78
|
-
'x-component': string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
params: {
|
|
83
|
-
type: string;
|
|
84
|
-
'x-component': string;
|
|
85
|
-
'x-decorator': string;
|
|
86
|
-
title: string;
|
|
87
|
-
items: {
|
|
88
|
-
type: string;
|
|
89
|
-
properties: {
|
|
90
|
-
space: {
|
|
91
|
-
type: string;
|
|
92
|
-
'x-component': string;
|
|
93
|
-
properties: {
|
|
94
|
-
name: {
|
|
95
|
-
type: string;
|
|
96
|
-
'x-decorator': string;
|
|
97
|
-
'x-component': string;
|
|
98
|
-
'x-component-props': {
|
|
99
|
-
placeholder: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
value: {
|
|
103
|
-
type: string;
|
|
104
|
-
'x-decorator': string;
|
|
105
|
-
'x-component': string;
|
|
106
|
-
'x-component-props': {
|
|
107
|
-
useTypedConstant: boolean;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
remove: {
|
|
111
|
-
type: string;
|
|
112
|
-
'x-decorator': string;
|
|
113
|
-
'x-component': string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
properties: {
|
|
120
|
-
add: {
|
|
121
|
-
type: string;
|
|
122
|
-
title: string;
|
|
123
|
-
'x-component': string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
data: {
|
|
128
|
-
type: string;
|
|
129
|
-
title: string;
|
|
130
|
-
'x-decorator': string;
|
|
131
|
-
'x-decorator-props': {};
|
|
132
|
-
'x-component': string;
|
|
133
|
-
'x-component-props': {
|
|
134
|
-
changeOnSelect: boolean;
|
|
135
|
-
autoSize: {
|
|
136
|
-
minRows: number;
|
|
137
|
-
};
|
|
138
|
-
placeholder: string;
|
|
139
|
-
};
|
|
140
|
-
description: string;
|
|
141
|
-
};
|
|
142
|
-
timeout: {
|
|
143
|
-
type: string;
|
|
144
|
-
title: string;
|
|
145
|
-
'x-decorator': string;
|
|
146
|
-
'x-decorator-props': {};
|
|
147
|
-
'x-component': string;
|
|
148
|
-
'x-component-props': {
|
|
149
|
-
addonAfter: string;
|
|
150
|
-
min: number;
|
|
151
|
-
step: number;
|
|
152
|
-
defaultValue: number;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
ignoreFail: {
|
|
156
|
-
type: string;
|
|
157
|
-
title: string;
|
|
158
|
-
'x-decorator': string;
|
|
159
|
-
'x-component': string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
view: {};
|
|
163
|
-
scope: {};
|
|
164
|
-
components: {
|
|
165
|
-
ArrayItems: import("@formily/reactive-react").ReactFC<import("react").HTMLAttributes<HTMLDivElement>> & import("@formily/antd-v5").ArrayBaseMixins & {
|
|
166
|
-
Item: import("@formily/reactive-react").ReactFC<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
167
|
-
type?: "divide" | "card";
|
|
168
|
-
}>;
|
|
169
|
-
};
|
|
170
|
-
WorkflowVariableInput: typeof WorkflowVariableInput;
|
|
171
|
-
WorkflowVariableJSON: typeof WorkflowVariableJSON;
|
|
172
|
-
};
|
|
173
|
-
useVariables({ key, title }: {
|
|
174
|
-
key: any;
|
|
175
|
-
title: any;
|
|
176
|
-
}, { types, fieldNames }: {
|
|
177
|
-
types: any;
|
|
178
|
-
fieldNames?: import("@nocobase/client").FieldNames;
|
|
179
|
-
}): {
|
|
180
|
-
[x: string]: any;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
export default _default;
|