@nocobase/plugin-workflow 2.0.20 → 2.0.21
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/b41523353a3db32b.js +10 -0
- package/dist/client/c1b4661e7caee9c0.js +10 -0
- package/dist/client/hooks/{useWorkflowFilterActionProps.d.ts → useResourceFilterActionProps.d.ts} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/schemas/executions.d.ts +41 -22
- package/dist/common/collections/executions.d.ts +22 -22
- package/dist/common/collections/executions.js +12 -0
- package/dist/common/collections/workflows.d.ts +22 -9
- package/dist/common/collections/workflows.js +9 -1
- package/dist/externalVersion.js +12 -12
- package/dist/node_modules/cron-parser/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/package.json +2 -2
- package/dist/client/0e458d99e9fc5e65.js +0 -10
- package/dist/client/27bd65abee87cafa.js +0 -10
|
@@ -46,6 +46,28 @@ export declare const executionSchema: {
|
|
|
46
46
|
unique?: undefined;
|
|
47
47
|
onDelete?: undefined;
|
|
48
48
|
defaultValue?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
type: string;
|
|
51
|
+
name: string;
|
|
52
|
+
interface: string;
|
|
53
|
+
uiSchema: {
|
|
54
|
+
type: string;
|
|
55
|
+
title: string;
|
|
56
|
+
'x-component': string;
|
|
57
|
+
'x-component-props': {
|
|
58
|
+
fieldNames?: undefined;
|
|
59
|
+
};
|
|
60
|
+
'x-read-pretty': boolean;
|
|
61
|
+
'x-decorator'?: undefined;
|
|
62
|
+
enum?: undefined;
|
|
63
|
+
};
|
|
64
|
+
primaryKey?: undefined;
|
|
65
|
+
allowNull?: undefined;
|
|
66
|
+
target?: undefined;
|
|
67
|
+
foreignKey?: undefined;
|
|
68
|
+
unique?: undefined;
|
|
69
|
+
onDelete?: undefined;
|
|
70
|
+
defaultValue?: undefined;
|
|
49
71
|
} | {
|
|
50
72
|
type: string;
|
|
51
73
|
name: string;
|
|
@@ -139,28 +161,6 @@ export declare const executionSchema: {
|
|
|
139
161
|
foreignKey?: undefined;
|
|
140
162
|
unique?: undefined;
|
|
141
163
|
onDelete?: undefined;
|
|
142
|
-
} | {
|
|
143
|
-
type: string;
|
|
144
|
-
name: string;
|
|
145
|
-
interface: string;
|
|
146
|
-
uiSchema: {
|
|
147
|
-
type: string;
|
|
148
|
-
title: string;
|
|
149
|
-
'x-component': string;
|
|
150
|
-
'x-component-props': {
|
|
151
|
-
fieldNames?: undefined;
|
|
152
|
-
};
|
|
153
|
-
'x-read-pretty': boolean;
|
|
154
|
-
'x-decorator'?: undefined;
|
|
155
|
-
enum?: undefined;
|
|
156
|
-
};
|
|
157
|
-
primaryKey?: undefined;
|
|
158
|
-
allowNull?: undefined;
|
|
159
|
-
target?: undefined;
|
|
160
|
-
foreignKey?: undefined;
|
|
161
|
-
unique?: undefined;
|
|
162
|
-
onDelete?: undefined;
|
|
163
|
-
defaultValue?: undefined;
|
|
164
164
|
})[];
|
|
165
165
|
indexes: {
|
|
166
166
|
fields: string[];
|
|
@@ -189,6 +189,25 @@ export declare const executionSchema: {
|
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
191
|
properties: {
|
|
192
|
+
filter: {
|
|
193
|
+
type: string;
|
|
194
|
+
title: string;
|
|
195
|
+
'x-action': string;
|
|
196
|
+
'x-component': string;
|
|
197
|
+
'x-use-component-props': string;
|
|
198
|
+
'x-component-props': {
|
|
199
|
+
icon: string;
|
|
200
|
+
nonfilterable: string[];
|
|
201
|
+
};
|
|
202
|
+
'x-align': string;
|
|
203
|
+
default: {
|
|
204
|
+
$and: {
|
|
205
|
+
status: {
|
|
206
|
+
$eq: any;
|
|
207
|
+
};
|
|
208
|
+
}[];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
192
211
|
refresher: {
|
|
193
212
|
type: string;
|
|
194
213
|
title: string;
|
|
@@ -35,6 +35,28 @@ declare const _default: {
|
|
|
35
35
|
unique?: undefined;
|
|
36
36
|
onDelete?: undefined;
|
|
37
37
|
defaultValue?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
name: string;
|
|
41
|
+
interface: string;
|
|
42
|
+
uiSchema: {
|
|
43
|
+
type: string;
|
|
44
|
+
title: string;
|
|
45
|
+
'x-component': string;
|
|
46
|
+
'x-component-props': {
|
|
47
|
+
fieldNames?: undefined;
|
|
48
|
+
};
|
|
49
|
+
'x-read-pretty': boolean;
|
|
50
|
+
'x-decorator'?: undefined;
|
|
51
|
+
enum?: undefined;
|
|
52
|
+
};
|
|
53
|
+
primaryKey?: undefined;
|
|
54
|
+
allowNull?: undefined;
|
|
55
|
+
target?: undefined;
|
|
56
|
+
foreignKey?: undefined;
|
|
57
|
+
unique?: undefined;
|
|
58
|
+
onDelete?: undefined;
|
|
59
|
+
defaultValue?: undefined;
|
|
38
60
|
} | {
|
|
39
61
|
type: string;
|
|
40
62
|
name: string;
|
|
@@ -128,28 +150,6 @@ declare const _default: {
|
|
|
128
150
|
foreignKey?: undefined;
|
|
129
151
|
unique?: undefined;
|
|
130
152
|
onDelete?: undefined;
|
|
131
|
-
} | {
|
|
132
|
-
type: string;
|
|
133
|
-
name: string;
|
|
134
|
-
interface: string;
|
|
135
|
-
uiSchema: {
|
|
136
|
-
type: string;
|
|
137
|
-
title: string;
|
|
138
|
-
'x-component': string;
|
|
139
|
-
'x-component-props': {
|
|
140
|
-
fieldNames?: undefined;
|
|
141
|
-
};
|
|
142
|
-
'x-read-pretty': boolean;
|
|
143
|
-
'x-decorator'?: undefined;
|
|
144
|
-
enum?: undefined;
|
|
145
|
-
};
|
|
146
|
-
primaryKey?: undefined;
|
|
147
|
-
allowNull?: undefined;
|
|
148
|
-
target?: undefined;
|
|
149
|
-
foreignKey?: undefined;
|
|
150
|
-
unique?: undefined;
|
|
151
|
-
onDelete?: undefined;
|
|
152
|
-
defaultValue?: undefined;
|
|
153
153
|
})[];
|
|
154
154
|
indexes: {
|
|
155
155
|
fields: string[];
|
|
@@ -52,6 +52,18 @@ var executions_default = {
|
|
|
52
52
|
primaryKey: true,
|
|
53
53
|
allowNull: false
|
|
54
54
|
},
|
|
55
|
+
{
|
|
56
|
+
type: "bigInt",
|
|
57
|
+
name: "workflowId",
|
|
58
|
+
interface: "id",
|
|
59
|
+
uiSchema: {
|
|
60
|
+
type: "number",
|
|
61
|
+
title: `{{t("Version ID", { ns: "${import_constants.NAMESPACE}" })}}`,
|
|
62
|
+
"x-component": "InputNumber",
|
|
63
|
+
"x-component-props": {},
|
|
64
|
+
"x-read-pretty": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
55
67
|
{
|
|
56
68
|
type: "belongsTo",
|
|
57
69
|
name: "workflow",
|
|
@@ -17,8 +17,21 @@ declare const _default: {
|
|
|
17
17
|
type: string;
|
|
18
18
|
primaryKey: boolean;
|
|
19
19
|
allowNull: boolean;
|
|
20
|
-
interface
|
|
21
|
-
uiSchema
|
|
20
|
+
interface: string;
|
|
21
|
+
uiSchema: {
|
|
22
|
+
type: string;
|
|
23
|
+
title: string;
|
|
24
|
+
'x-component': string;
|
|
25
|
+
'x-component-props': {
|
|
26
|
+
multiple?: undefined;
|
|
27
|
+
fieldNames?: undefined;
|
|
28
|
+
mode?: undefined;
|
|
29
|
+
};
|
|
30
|
+
'x-read-pretty': boolean;
|
|
31
|
+
required?: undefined;
|
|
32
|
+
enum?: undefined;
|
|
33
|
+
default?: undefined;
|
|
34
|
+
};
|
|
22
35
|
defaultValue?: undefined;
|
|
23
36
|
required?: undefined;
|
|
24
37
|
target?: undefined;
|
|
@@ -53,10 +66,10 @@ declare const _default: {
|
|
|
53
66
|
type: string;
|
|
54
67
|
'x-component': string;
|
|
55
68
|
required: boolean;
|
|
56
|
-
enum?: undefined;
|
|
57
|
-
default?: undefined;
|
|
58
69
|
'x-component-props'?: undefined;
|
|
59
70
|
'x-read-pretty'?: undefined;
|
|
71
|
+
enum?: undefined;
|
|
72
|
+
default?: undefined;
|
|
60
73
|
};
|
|
61
74
|
primaryKey?: undefined;
|
|
62
75
|
allowNull?: undefined;
|
|
@@ -88,9 +101,9 @@ declare const _default: {
|
|
|
88
101
|
})[];
|
|
89
102
|
'x-component': string;
|
|
90
103
|
default: boolean;
|
|
91
|
-
required?: undefined;
|
|
92
104
|
'x-component-props'?: undefined;
|
|
93
105
|
'x-read-pretty'?: undefined;
|
|
106
|
+
required?: undefined;
|
|
94
107
|
};
|
|
95
108
|
primaryKey?: undefined;
|
|
96
109
|
allowNull?: undefined;
|
|
@@ -110,11 +123,11 @@ declare const _default: {
|
|
|
110
123
|
title: string;
|
|
111
124
|
type: string;
|
|
112
125
|
'x-component': string;
|
|
126
|
+
'x-component-props'?: undefined;
|
|
127
|
+
'x-read-pretty'?: undefined;
|
|
113
128
|
required?: undefined;
|
|
114
129
|
enum?: undefined;
|
|
115
130
|
default?: undefined;
|
|
116
|
-
'x-component-props'?: undefined;
|
|
117
|
-
'x-read-pretty'?: undefined;
|
|
118
131
|
};
|
|
119
132
|
primaryKey?: undefined;
|
|
120
133
|
allowNull?: undefined;
|
|
@@ -138,9 +151,9 @@ declare const _default: {
|
|
|
138
151
|
'x-component': string;
|
|
139
152
|
enum: string;
|
|
140
153
|
required: boolean;
|
|
141
|
-
default?: undefined;
|
|
142
154
|
'x-component-props'?: undefined;
|
|
143
155
|
'x-read-pretty'?: undefined;
|
|
156
|
+
default?: undefined;
|
|
144
157
|
};
|
|
145
158
|
primaryKey?: undefined;
|
|
146
159
|
allowNull?: undefined;
|
|
@@ -215,9 +228,9 @@ declare const _default: {
|
|
|
215
228
|
color: string;
|
|
216
229
|
}[];
|
|
217
230
|
required: boolean;
|
|
218
|
-
default?: undefined;
|
|
219
231
|
'x-component-props'?: undefined;
|
|
220
232
|
'x-read-pretty'?: undefined;
|
|
233
|
+
default?: undefined;
|
|
221
234
|
};
|
|
222
235
|
primaryKey?: undefined;
|
|
223
236
|
allowNull?: undefined;
|
|
@@ -41,7 +41,15 @@ var workflows_default = {
|
|
|
41
41
|
name: "id",
|
|
42
42
|
type: "snowflakeId",
|
|
43
43
|
primaryKey: true,
|
|
44
|
-
allowNull: false
|
|
44
|
+
allowNull: false,
|
|
45
|
+
interface: "id",
|
|
46
|
+
uiSchema: {
|
|
47
|
+
type: "number",
|
|
48
|
+
title: '{{t("ID")}}',
|
|
49
|
+
"x-component": "InputNumber",
|
|
50
|
+
"x-component-props": {},
|
|
51
|
+
"x-read-pretty": true
|
|
52
|
+
}
|
|
45
53
|
},
|
|
46
54
|
{
|
|
47
55
|
name: "key",
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,8 +11,8 @@ 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.0.
|
|
15
|
-
"@nocobase/utils": "2.0.
|
|
14
|
+
"@nocobase/client": "2.0.21",
|
|
15
|
+
"@nocobase/utils": "2.0.21",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"@ant-design/icons": "5.6.1",
|
|
18
18
|
"react-router-dom": "6.30.1",
|
|
@@ -20,18 +20,18 @@ module.exports = {
|
|
|
20
20
|
"lodash": "4.17.21",
|
|
21
21
|
"@dnd-kit/core": "6.1.0",
|
|
22
22
|
"@formily/shared": "2.3.7",
|
|
23
|
-
"@nocobase/flow-engine": "2.0.
|
|
24
|
-
"@nocobase/plugin-mobile": "2.0.
|
|
23
|
+
"@nocobase/flow-engine": "2.0.21",
|
|
24
|
+
"@nocobase/plugin-mobile": "2.0.21",
|
|
25
25
|
"sequelize": "6.35.2",
|
|
26
|
-
"@nocobase/server": "2.0.
|
|
27
|
-
"@nocobase/database": "2.0.
|
|
28
|
-
"@nocobase/data-source-manager": "2.0.
|
|
29
|
-
"@nocobase/logger": "2.0.
|
|
30
|
-
"@nocobase/evaluators": "2.0.
|
|
26
|
+
"@nocobase/server": "2.0.21",
|
|
27
|
+
"@nocobase/database": "2.0.21",
|
|
28
|
+
"@nocobase/data-source-manager": "2.0.21",
|
|
29
|
+
"@nocobase/logger": "2.0.21",
|
|
30
|
+
"@nocobase/evaluators": "2.0.21",
|
|
31
31
|
"@formily/antd-v5": "1.2.3",
|
|
32
32
|
"@formily/reactive": "2.3.7",
|
|
33
|
-
"@nocobase/actions": "2.0.
|
|
33
|
+
"@nocobase/actions": "2.0.21",
|
|
34
34
|
"dayjs": "1.11.13",
|
|
35
|
-
"@nocobase/plugin-workflow-test": "2.0.
|
|
36
|
-
"@nocobase/test": "2.0.
|
|
35
|
+
"@nocobase/plugin-workflow-test": "2.0.21",
|
|
36
|
+
"@nocobase/test": "2.0.21"
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-03-
|
|
1
|
+
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2026-03-20T01:43:56.800Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-03-
|
|
1
|
+
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2026-03-20T01:43:56.469Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-03-
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-03-20T01:43:56.272Z"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.",
|
|
7
7
|
"description.zh-CN": "一个强大的 BPM 工具,为业务自动化提供基础支持,并且可任意扩展更多的触发器和节点。",
|
|
8
8
|
"description.ru-RU": "Мощный инструмент BPM, обеспечивающий базовую поддержку автоматизации бизнес-процессов с возможностью неограниченного расширения триггеров и узлов.",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.21",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/workflow",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@nocobase/test": "2.x",
|
|
49
49
|
"@nocobase/utils": "2.x"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "147f39c871299c60820cc9b98034fbfcc342a629",
|
|
52
52
|
"keywords": [
|
|
53
53
|
"Workflow"
|
|
54
54
|
]
|
|
@@ -1,10 +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
|
-
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_workflow=self.webpackChunk_nocobase_plugin_workflow||[]).push([["830"],{7482:function(e,t,r){r.r(t),r.d(t,{WorkflowPane:function(){return ep}});var n=r(8156),o=r.n(n),i=r(2721),c=r(8563),a=r(3505),l=r(3772),s=r(1113);function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var m=function(e){var t,r=e.request,n=(e.filter,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["request","filter"])),i=(0,l.useRecord)(),c=p(u({},n),{request:p(u({},r),{params:p(u({},null==r?void 0:r.params),{filter:p(u({},null==r||null==(t=r.params)?void 0:t.filter),{key:i.key})})})});return o().createElement(l.ResourceActionProvider,c)},d=r(3238),f=r(6128),y=r(9315),b=function(){var e=(0,d.useTranslation)().t,t=(0,l.useRecord)().id,r=(0,l.useActionContext)().setVisible,n=(0,l.useGetAriaLabelOfAction)("Configure").getAriaLabel;return o().createElement(f.Link,{"aria-label":n(),to:(0,y.SI)(t),onClick:function(){return r(!1)}},e("Configure"))};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e){var t,r,i,c=e.component,s=e.children,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["component","children"]),p=(t=(0,n.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,a=!1;try{for(o=o.call(e);!(c=(r=o.next()).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){a=!0,n=e}finally{try{c||null==o.return||o.return()}finally{if(a)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return v(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],d=p[1],f=(0,a.useFieldSchema)();return o().createElement(l.ActionContextProvider,{value:{visible:m,setVisible:d,fieldSchema:f}},o().createElement(void 0===c?"div":c,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},u),i=i={onClick:function(){d(!0)}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}),r),s),o().createElement(l.SchemaComponent,{schema:f,onlyRenderProperties:!0}))}var g=r(8551),h=r(1685),A=r(1682),O=r(8833),w=r(4665),C={title:{"x-component":"CollectionField","x-decorator":"FormItem"},type:{"x-decorator":"FormItem",title:'{{t("Trigger type", { ns: "'.concat(g.A7,'" })}}'),"x-component":"Select","x-component-props":{optionRender:"{{TriggerOptionRender}}",popupMatchSelectWidth:!0,listHeight:300},enum:"{{useTriggersOptions()}}",required:!0},sync:{type:"boolean",title:'{{ t("Execute mode", { ns: "'.concat(g.A7,'" }) }}'),description:'{{ t("Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.", { ns: "'.concat(g.A7,'" }) }}'),"x-decorator":"FormItem","x-component":"SyncOptionSelect","x-component-props":{options:[{label:'{{ t("Asynchronously", { ns: "'.concat(g.A7,'" }) }}'),value:!1,tooltip:'{{ t("Will be executed in the background as a queued task.", { ns: "'.concat(g.A7,'" }) }}')},{label:'{{ t("Synchronously", { ns: "'.concat(g.A7,'" }) }}'),value:!0,tooltip:'{{ t("For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.", { ns: "'.concat(g.A7,'" }) }}')}]}},enabled:{"x-component":"CollectionField","x-decorator":"FormItem"},description:{"x-component":"CollectionField","x-decorator":"FormItem"},categories:{type:"array",title:'{{ t("Category", { ns: "'.concat(g.A7,'" }) }}'),"x-decorator":"FormItem","x-component":"CollectionField","x-collection-field":"workflows.categories"},options:{type:"object","x-component":"fieldset",properties:{deleteExecutionOnStatus:{type:"array",title:'{{ t("Auto delete history when execution is on end status", { ns: "'.concat(g.A7,'" }) }}'),"x-decorator":"FormItem","x-component":"Select","x-component-props":{multiple:!0,optionRender:w.uL,tagRender:w.qo},enum:A.C6.filter(function(e){return!!e.value})},stackLimit:{type:"number",title:'{{ t("Maximum number of cycling triggers", { ns: "'.concat(g.A7,'" }) }}'),description:'{{ t("The triggers of same workflow by some node (create, update and sub-flow etc.) more than this number will be ignored. Large number may cause performance issues. Please use with caution.", { ns: "'.concat(g.A7,'" }) }}'),"x-decorator":"FormItem",default:1,"x-component":"InputNumber","x-component-props":{min:1,precision:0,className:"auto-width"}}}}},S={name:"workflow",type:"void",properties:{provider:{type:"void","x-decorator":"ResourceActionProvider","x-decorator-props":{collection:O.Z,resourceName:"workflows",request:{resource:"workflows",action:"list",params:{filter:{current:!0},sort:["-createdAt"],except:["config"]}}},"x-component":"CategoryTabs",properties:{main:{type:"void","x-component":"CardItem",properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{filter:{type:"void",title:'{{ t("Filter") }}',default:{$and:[{title:{$includes:""}}]},"x-action":"filter","x-component":"Filter.Action","x-use-component-props":"useWorkflowFilterActionProps","x-component-props":{icon:"FilterOutlined",nonfilterable:["description","categories"]},"x-align":"left"},refresher:{type:"void",title:'{{ t("Refresh") }}',"x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},sync:{type:"void",title:'{{t("Sync", { ns: "'.concat(g.A7,'" })}}'),"x-decorator":"Tooltip","x-decorator-props":{title:'{{ t("Sync enabled status of all workflows from database", { ns: "'.concat(g.A7,'" }) }}')},"x-component":"Action","x-component-props":{icon:"SyncOutlined",useAction:"{{ useSyncAction }}"},"x-reactions":["{{useWorkflowSyncReaction}}"]},delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-component-props":{icon:"DeleteOutlined",useAction:"{{ cm.useBulkDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},create:{type:"void",title:'{{t("Add new")}}',"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{initialValue:{current:!0}},title:'{{t("Add new")}}',properties:{title:C.title,type:C.type,sync:C.sync,categories:C.categories,description:C.description,options:C.options,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useCreateAction }}"}}}}}}}}}},table:{type:"array","x-component":"Table.Void","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useDataSource:"{{cm.useDataSourceFromRAC }}"},properties:{title:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Title") }}',properties:{title:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},categories:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Category", { ns: "'.concat(g.A7,'" }) }}'),properties:{categories:{type:"array","x-component":"EnumerationField","x-component-props":{multiple:!0,fieldNames:{label:"title",value:"id",color:"color"}}}}},type:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Trigger type", { ns: "'.concat(g.A7,'" }) }}'),properties:{type:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},sync:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Execute mode", { ns: "'.concat(g.A7,'" }) }}'),properties:{sync:{type:"boolean","x-component":"CollectionField","x-read-pretty":!0}}},enabled:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Status", { ns: "'.concat(g.A7,'" }) }}'),properties:{enabled:{type:"boolean","x-component":"WorkflowEnabledSwitch",default:!1}}},"stats.executed":{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{ t("Executed", { ns: "'.concat(g.A7,'" }) }}'),properties:{"stats.executed":{type:"number","x-decorator":"OpenDrawer","x-decorator-props":{component:function(e){var t=(0,l.useCollectionRecordData)();return o().createElement("a",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"aria-label":"executed-".concat(t.title)},e))}},"x-component":"InputNumber","x-read-pretty":!0,properties:{drawer:h.V}}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{configure:{type:"void","x-component":"WorkflowLink"},update:{type:"void",title:'{{ t("Edit") }}',"x-component":"Action.Link","x-component-props":{type:"primary"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{ t("Edit") }}',properties:{title:C.title,sync:C.sync,categories:C.categories,description:C.description,options:C.options,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ cm.useUpdateAction }}"}}}}}}}},revision:{type:"void",title:'{{t("Duplicate", { ns: "'.concat(g.A7,'" })}}'),"x-component":"Action.Link","x-component-props":{openSize:"small"},properties:{modal:{type:"void",title:'{{t("Duplicate to new workflow", { ns: "'.concat(g.A7,'" })}}'),"x-decorator":"FormV2","x-component":"Action.Modal",properties:{title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input"},footer:{type:"void","x-component":"Action.Modal.Footer",properties:{submit:{type:"void",title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ useRevisionAction }}"}},cancel:{type:"void",title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"},useAction:"{{ cm.useDestroyActionAndRefreshCM }}"}}}}}}}}}}}}}},P=r(8218),k=r(5588),E=r(1600);function j(e){var t=e.data,r=t.label,n=t.color,c=t.options,a=(0,l.useCompile)();return o().createElement(i.Space,{direction:"vertical"},o().createElement(i.Tag,{color:n},a(r)),o().createElement(i.Typography.Text,{type:"secondary",style:{whiteSpace:"normal"}},a(c.description)))}var F=r(482),T=r(2948),D=r(8875),R=r(467);function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function V(e,t,r,n,o,i,c){try{var a=e[i](c),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function M(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function c(e){V(i,n,o,c,a,"next",e)}function a(e){V(i,n,o,c,a,"throw",e)}c(void 0)})}}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function L(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,a=!1;try{for(o=o.call(e);!(c=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){a=!0,n=e}finally{try{c||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){var l=[i,a];if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return c.label++,{value:l[1],done:!1};case 5:c.label++,n=l[1],l=[0];continue;case 7:l=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){c=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){c.label=l[1];break}if(6===l[0]&&c.label<o[1]){c.label=o[1],o=l;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(l);break}o[2]&&c.ops.pop(),c.trys.pop();continue}l=t.call(e,c)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function B(){var e,t,r=(e=["\n .ant-tabs-nav-list > :first-child {\n border: none;\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return B=function(){return r},r}function K(e){var t=(0,T.useDraggable)({id:e.id,data:e.data}),r=t.attributes,n=t.listeners,i=t.setNodeRef;return o().createElement("div",q({ref:i},n,r),o().createElement("div",null,e.children))}function $(e){var t=(0,T.useDroppable)({id:e.id,data:e.data}),r=t.isOver,n=t.setNodeRef;return o().createElement("div",{ref:n,style:r?{color:"green"}:void 0},e.children)}var _=(0,a.observer)(function(e){var t=e.item;return o().createElement($,{id:t.id.toString(),data:t},o().createElement("div",null,o().createElement(K,{id:t.id.toString(),data:t},o().createElement(z,{item:t}))))},{displayName:"TabTitle"}),z=function(e){var t=e.item,r=(0,d.useTranslation)().t,n=(0,l.useCompile)();return o().createElement(i.Space,null,o().createElement(i.Badge,{color:t.color}),r(n(t.title)))},Q=(0,a.observer)(function(e){var t,r=N((0,n.useState)(null),2),i=r[0],c=r[1],a=(0,n.useContext)(U).refresh,s=(0,l.useAPIClient)(),u=(t=M(function(e){var t,r;return W(this,function(n){switch(n.label){case 0:if(t=e.active,r=e.over,setTimeout(function(){c(null)}),!(r&&r.id!==t.id))return[3,2];return[4,s.resource("workflowCategories").move({sourceId:t.id,targetId:r.id})];case 1:n.sent(),a(),n.label=2;case 2:return[2]}})}),function(e){return t.apply(this,arguments)}),p=(0,T.useSensor)(T.MouseSensor,{activationConstraint:{distance:10}}),m=(0,T.useSensors)(p);return o().createElement(T.DndContext,{sensors:m,onDragEnd:u,onDragStart:function(e){var t;c(null==(t=e.active)?void 0:t.data.current)}},e.children,o().createElement(T.DragOverlay,null,i?o().createElement("span",{style:{whiteSpace:"nowrap"}},o().createElement(z,{item:i})):null))},{displayName:"DndProvider"}),U=(0,n.createContext)({});function G(e){var t=e.values,r=e.onEdit,c=e.onRemove,a=(0,l.useCompile)(),s=(0,n.useCallback)(function(e){switch(e.key){case"edit":r(t);break;case"delete":c(t.id)}},[r,c,t]);return o().createElement(i.Dropdown,{menu:{items:[{key:"edit",label:(0,g.KQ)("Edit category")},{key:"delete",label:(0,g.KQ)("Delete category")}],onClick:s}},o().createElement(F.MenuOutlined,{role:"button","aria-label":a(t.title),style:{padding:8,margin:"-8px"}}))}function H(){var e,t=(0,l.useResourceActionContext)(),r=t.run,s=t.setState,u=t.defaultRequest,p=N((0,n.useState)({tab:"all"}),2),m=p[0],d=p[1],f=N((0,n.useState)(m.tab),2),y=f[0],b=f[1],v=(0,l.useCompile)(),x=(0,l.useAPIClient)(),h=(0,a.useFieldSchema)(),A=i.App.useApp().modal,O=(0,l.useRequest)({resource:"workflowCategories",action:"list",params:{paginate:!1,sort:["sort"]}}),w=O.data,C=O.refresh,S=N((0,n.useState)(!1),2),P=S[0],k=S[1],E=(0,n.useMemo)(function(){return(0,c.createForm)()},[]),j=(0,n.useCallback)(function(e){k(!0);var t=(0,R.cloneDeep)(e);E.setValues(t)},[E]),F=(0,n.useCallback)(function(){k(!1),E.reset()},[E]),T=(0,n.useCallback)(function(e){A.confirm({title:v("{{t('Delete category')}}"),content:v("{{t('Are you sure you want to delete it?')}}"),onOk:M(function(){return W(this,function(t){switch(t.label){case 0:return[4,x.resource("workflowCategories").destroy({filter:{id:e}})];case 1:return t.sent(),e===+m.tab&&d({tab:"all"}),C(),r(),[2]}})})})},[m.tab]),I=(0,n.useMemo)(function(){if(!(null==w?void 0:w.data))return[];var e=w.data.sort(function(e,t){return e.sort-t.sort}).concat().map(function(e){return L(q({},e),{schema:h.properties.main})});return e.find(function(e){return"all"===e.id})||e.unshift({title:'{{t("All", { ns: "'.concat(g.A7,'" })}}'),id:"all",sort:0,closable:!1,schema:h.properties.main}),e.map(function(e){return{label:"all"!==e.id?o().createElement("div",{"data-no-dnd":"true"},o().createElement(_,{item:e})):v(e.title),key:String(e.id),closable:e.closable,closeIcon:o().createElement(G,{values:e,onEdit:j,onRemove:T}),children:o().createElement(i.Card,{variant:"borderless",style:{borderRadius:"0 0.5em 0.5em 0.5em"}},o().createElement(a.RecursionField,{name:y,schema:e.schema,onlyRenderProperties:!0}))}})},[v,null==w?void 0:w.data,y,j,T,h.properties.main]),V=(0,n.useCallback)(function(e){if(d({tab:e}),b((0,D.uid)()),"all"!==e){var t,n={$and:[null==u||null==(t=u.params)?void 0:t.filter,{"categories.id":e}]};r({filter:n}),null==s||s({categories:[+e],params:[{filter:n}]})}else r(),null==s||s({categories:[],params:[]})},[null==u||null==(e=u.params)?void 0:e.filter,r,s]);return((0,n.useEffect)(function(){"all"!==m.tab&&V(m.tab)},[m.tab,V]),w)?o().createElement(U.Provider,{value:{refresh:C}},o().createElement(Q,null,o().createElement(i.Tabs,{addIcon:o().createElement(l.SchemaComponent,{components:{AddCategory:Y},schema:{type:"void",properties:{addCategories:{type:"void",title:'{{ t("Add category", { ns: "'.concat(g.A7,'" }) }}'),"x-component":"AddCategory","x-component-props":{type:"primary"}}}}}),onChange:V,defaultActiveKey:m.tab||"all",type:"editable-card",destroyInactiveTabPane:!0,tabBarStyle:{marginBottom:"0px"},className:(0,l.css)(B()),items:I})),o().createElement(l.ActionContextProvider,{value:{visible:P,setVisible:F,openSize:"small"}},o().createElement(l.SchemaComponent,{scope:{useFormProviderProps:Z,useCancelAction:l.useCancelAction,useEditSubmit:X},schema:{name:(0,D.uid)(),type:"void","x-decorator":"FormV2","x-decorator-props":{form:E},title:'{{ t("Edit category", { ns: "'.concat(g.A7,'" }) }}'),"x-component":"Action.Modal","x-component-props":{delay:0},properties:{title:{type:"string",title:'{{t("Title")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},color:{type:"string",title:'{{t("Color")}}',required:!1,"x-decorator":"FormItem","x-component":"ColorSelect"},footer:{type:"void","x-component":"Action.Modal.Footer",properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-component-props":{useAction:"{{ useCancelAction }}"}},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ useEditSubmit }}",style:{marginLeft:"8px"}}}}}}}}))):null}function X(){var e=(0,a.useForm)(),t=(0,l.useActionContext)(),r=(0,l.useResourceActionContext)(),o=(0,n.useContext)(U).refresh,i=(0,l.useAPIClient)();return{run:function(){return M(function(){var n;return W(this,function(c){switch(c.label){case 0:return[4,e.submit()];case 1:return c.sent(),[4,i.resource("workflowCategories").update({filterByTk:null==(n=e.values)?void 0:n.id,values:e.values})];case 2:return c.sent(),t.setVisible(!1),[4,e.reset()];case 3:return c.sent(),null==o||o(),null==r||r.refresh(),[2]}})})()}}}function Z(){return{form:(0,a.useForm)()}}function J(){var e=(0,a.useForm)(),t=(0,l.useActionContext)().setVisible,r=(0,n.useContext)(U).refresh,o=(0,l.useAPIClient)();return{run:function(){return M(function(){var n;return W(this,function(i){switch(i.label){case 0:return[4,e.submit()];case 1:return i.sent(),n=(0,R.cloneDeep)(e.values),[4,o.resource("workflowCategories").create({values:n})];case 2:return i.sent(),t(!1),e.reset(),r(),[2]}})})()}}}function Y(e){var t=N((0,n.useState)(!1),2),r=t[0],i=t[1],a=(0,d.useTranslation)().t,s=(0,n.useMemo)(function(){return(0,c.createForm)()},[]);return o().createElement(l.ActionContextProvider,{value:{visible:r,setVisible:i,openSize:"small"}},o().createElement("div",{onClick:function(){return i(!0)},title:a("Add category")},o().createElement(F.PlusOutlined,null)),o().createElement(l.SchemaComponent,{schema:{name:"modal",type:"void","x-decorator":"FormV2","x-decorator-props":{form:s},title:'{{ t("Add category") }}',"x-component":"Action.Modal","x-component-props":L(q({},e),{delay:0}),properties:{title:{type:"string",title:'{{t("Title")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},color:{type:"string",title:'{{t("Color")}}',required:!1,"x-decorator":"FormItem","x-component":"ColorSelect"},footer:{type:"void","x-component":"Action.Modal.Footer",properties:{cancel:{title:'{{ t("Cancel") }}',"x-component":"Action","x-component-props":{useAction:"{{ useCancelAction }}"}},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-component-props":{type:"primary",useAction:"{{ useCreateSubmit }}",style:{marginLeft:"8px"}}}}}}},scope:{useCancelAction:l.useCancelAction,useCreateSubmit:J}}))}function ee(e){var t=e.value,r=e.multiple,n=e.fieldNames,c=void 0===n?l.defaultFieldNames:n,a=(0,l.useCompile)();return(r?null!=t?t:[]:t?[t]:[]).map(function(e){return o().createElement(i.Tag,{key:e[c.value],color:e[c.color]},a(e[c.label]))})}var et=function(){var e,t,r=(0,l.useResourceContext)().collection,n=(0,l.useFilterFieldOptions)(r.fields),o=(0,l.useResourceActionContext)();return(0,l.useFilterFieldProps)({options:n,params:(null==(t=o.state)||null==(e=t.params)?void 0:e[0])||o.params,service:o})};function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function en(e,t,r,n,o,i,c){try{var a=e[i](c),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function eo(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function c(e){en(i,n,o,c,a,"next",e)}function a(e){en(i,n,o,c,a,"throw",e)}c(void 0)})}}function ei(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){var l=[i,a];if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return c.label++,{value:l[1],done:!1};case 5:c.label++,n=l[1],l=[0];continue;case 7:l=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){c=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){c.label=l[1];break}if(6===l[0]&&c.label<o[1]){c.label=o[1],o=l;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(l);break}o[2]&&c.ops.pop(),c.trys.pop();continue}l=t.call(e,c)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function ec(e){var t=(0,a.useField)(),r=(0,l.useRecord)(),i=(0,l.usePlugin)(P.default);return(0,a.useFormEffects)(function(e){(0,c.onFieldChange)("type",function(e){var n=r.id||!e.value;if(e.value){var o=i.triggers.get(e.value);null!=o.sync?(n=!0,t.setValue(o.sync)):t.setInitialValue(!1)}t.setPattern(n?"disabled":"editable")})}),(0,n.useEffect)(function(){if(r.id){t.setPattern("disabled");var n,o=i.triggers.get(r.type);null!=o.sync?t.setValue(o.sync):t.setInitialValue(null!=(n=e.value)&&n)}},[r.id,t,i.triggers,r.type,e.value]),o().createElement(k.W5,e)}function ea(e){var t=(0,l.useApp)();e.visible=!!((0,l.usePlugin)("multi-app-share-collection")||"main"!==t.name)}function el(){var e=i.App.useApp().message,t=(0,d.useTranslation)().t,r=(0,l.useResourceContext)().resource;return{run:function(){return eo(function(){return ei(this,function(n){switch(n.label){case 0:return[4,r.sync()];case 1:return n.sent(),e.success(t("Operation succeeded")),[2]}})})()}}}function es(){var e=i.App.useApp().message,t=(0,d.useTranslation)().t,r=(0,l.useResourceActionContext)().refresh,n=(0,l.useResourceContext)(),o=n.resource,c=n.targetKey,s=(0,l.useActionContext)().setVisible,u=(0,l.useRecord)()[c],p=(0,a.useForm)(),m=(0,a.useField)();return{run:function(){return eo(function(){return ei(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,4,5]),[4,p.submit()];case 1:return n.sent(),m.data=m.data||{},m.data.loading=!0,[4,o.revision({filterByTk:u,values:p.values})];case 2:return n.sent(),e.success(t("Operation succeeded")),r(),s(!1),[3,5];case 3:return console.error(n.sent()),[3,5];case 4:return m.data&&(m.data.loading=!1),[7];case 5:return[2]}})})()}}}function eu(){var e,t,r=i.App.useApp().message,c=(0,d.useTranslation)().t,a=(0,l.useRecord)(),s=(0,l.useResourceContext)().resource,u=(0,l.useResourceActionContext)().refresh,p=(e=(0,n.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,a=!1;try{for(o=o.call(e);!(c=(r=o.next()).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){a=!0,n=e}finally{try{c||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return er(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return er(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],f=p[1],y=(0,n.useCallback)((t=eo(function(e){return ei(this,function(t){switch(t.label){case 0:if(!(null==a?void 0:a.id))return[2];f(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,s.update({filterByTk:a.id,values:{enabled:e}})];case 2:return t.sent(),setTimeout(function(){return null==u?void 0:u()},0),[3,5];case 3:return console.error(t.sent()),r.error(c("Operation failed")),[3,5];case 4:return f(!1),[7];case 5:return[2]}})}),function(e){return t.apply(this,arguments)}),[r,a,u,s,c]);return o().createElement(i.Switch,{checked:!!(null==a?void 0:a.enabled),checkedChildren:(0,g.KQ)("On"),unCheckedChildren:(0,g.KQ)("Off"),disabled:m||!(null==a?void 0:a.id),loading:m,onClick:function(e,t){var r;return null==t||null==(r=t.stopPropagation)?void 0:r.call(t)},onChange:y})}function ep(){var e,t,r=(0,n.useContext)(l.SchemaComponentContext),c=(0,l.usePlugin)(P.default).useTriggersOptions;return o().createElement(l.SchemaComponentContext.Provider,{value:(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),t=t={designable:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)},o().createElement(l.SchemaComponent,{schema:S,components:{CollectionProvider:l.CollectionProvider,WorkflowLink:b,ExecutionResourceProvider:m,ExecutionLink:s.a,OpenDrawer:x,SyncOptionSelect:ec,ExecutionStatusColumn:w.rV,Tooltip:i.Tooltip,CategoryTabs:H,EnumerationField:ee,WorkflowEnabledSwitch:eu},scope:{useTriggersOptions:c,useWorkflowSyncReaction:ea,useSyncAction:el,useWorkflowFilterActionProps:et,useRefreshActionProps:E.X,useRevisionAction:es,TriggerOptionRender:j,ExecutionStatusOptions:A.C6}}))}}}]);
|
|
@@ -1,10 +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
|
-
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_workflow=self.webpackChunk_nocobase_plugin_workflow||[]).push([["914"],{1113:function(e,t,n){n.d(t,{a:function(){return a}});var o=n(8156),r=n.n(o),c=n(3238),i=n(6128),l=n(3772),u=n(9315),a=function(){var e=(0,c.useTranslation)().t,t=(0,l.useRecord)().id,n=(0,l.useActionContext)().setVisible;return r().createElement(i.Link,{to:(0,u.s_)(t),onClick:function(){return n(!1)}},e("View"))}},4665:function(e,t,n){n.d(t,{qo:function(){return f},rV:function(){return m},uL:function(){return d}});var o=n(8156),r=n.n(o),c=n(2721),i=n(482),l=n(3238),u=n(3772),a=n(1682),s=n(8551);function p(){var e,t,n=(e=["\n display: flex;\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return p=function(){return n},n}function f(e){var t,n=(0,u.useCompile)()(e.label),o=(null!=(t=a.uy[e.value])?t:{}).color;return r().createElement(c.Tag,{color:o,closable:e.closable,onClose:e.onClose},n)}function d(e){var t=(0,u.useCompile)();return r().createElement(r().Fragment,null,r().createElement(f,e.data),e.data.description?r().createElement("span",null,t(e.data.description)):null)}function m(e){var t=(0,l.useTranslation)().t,n=(0,u.useResourceActionContext)().refresh,a=(0,u.useResourceContext)().resource,f=(0,u.useRecord)(),d=(0,o.useCallback)(function(){c.Modal.confirm({title:(0,s.KQ)("Cancel the execution"),icon:r().createElement(i.ExclamationCircleFilled,null),content:(0,s.KQ)("Are you sure you want to cancel the execution?"),onOk:function(){a.cancel({filterByTk:f.id}).then(function(){c.message.success(t("Operation succeeded")),n()}).catch(function(e){console.error(e.data.error)})}})},[f]);return r().createElement("div",{className:(0,u.css)(p())},e.children,f.status?null:r().createElement(c.Tooltip,{title:(0,s.KQ)("Cancel the execution")},r().createElement(c.Button,{type:"link",danger:!0,onClick:d,shape:"circle",size:"small",icon:r().createElement(i.StopOutlined,null)})))}},1685:function(e,t,n){n.d(t,{V:function(){return y}});var o,r=n(8156),c=n.n(r),i=n(6128),l=n(3238),u=n(2721),a=n(3772),s=n(9601),p=n(1682),f=n(8551),d=n(9315);function m(e,t,n,o,r,c,i){try{var l=e[c](i),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(o,r)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={type:"void",name:"executionHistoryDrawer",title:'{{t("Execution history", { ns: "'.concat(f.A7,'" })}}'),"x-component":"Action.Drawer",properties:{content:{type:"void","x-decorator":"ExecutionResourceProvider","x-decorator-props":{collection:s.Z,resourceName:"executions",request:{resource:"executions",action:"list",params:{appends:["workflow.id","workflow.title"],pageSize:20,sort:["-createdAt"],except:["context","output"],filter:{}}}},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{refresher:{type:"void",title:'{{ t("Refresh") }}',"x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-component-props":{icon:"DeleteOutlined",useAction:"{{ cm.useBulkDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},clear:{type:"void",title:'{{t("Clear")}}',"x-component":"Action","x-component-props":{useAction:function(){var e=(0,l.useTranslation)().t,t=(0,a.useResourceActionContext)(),n=t.refresh,o=t.defaultRequest,r=(0,a.useResourceContext)().resource,c=(0,a.useActionContext)().setVisible;return{run:function(){var t;return(t=function(){var t;return function(e,t){var n,o,r,c,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return c={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(c){return function(l){var u=[c,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],o=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:return[4,r.destroy({filter:null==(t=o.params)?void 0:t.filter})];case 1:return i.sent(),u.message.success(e("Operation succeeded")),n(),c(!1),[2]}})},function(){var e=this,n=arguments;return new Promise(function(o,r){var c=t.apply(e,n);function i(e){m(c,o,r,i,l,"next",e)}function l(e){m(c,o,r,i,l,"throw",e)}i(void 0)})})()}}},confirm:{title:'{{t("Clear all executions", { ns: "'.concat(f.A7,'" })}}'),content:'{{t("Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?", { ns: "'.concat(f.A7,'" })}}')}}}}},table:{type:"void","x-component":"Table.Void","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useDataSource:"{{ cm.useDataSourceFromRAC }}"},properties:{id:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{id:{type:"number","x-component":"CollectionField","x-read-pretty":!0}}},createdAt:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",properties:{createdAt:{type:"string","x-component":"CollectionField","x-component-props":{showTime:!0},"x-read-pretty":!0}}},workflowId:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{t("Version", { ns: "'.concat(f.A7,'" })}}'),properties:{workflowId:(x(o={type:"number"},"x-component",function(e){var t=e.value,n=(0,a.useActionContext)().setVisible;return c().createElement(i.Link,{to:(0,d.SI)(t),onClick:function(){return n(!1)}},"#".concat(t))}),x(o,"x-read-pretty",!0),o)}},status:{type:"void","x-decorator":"Table.Column.Decorator","x-component":"Table.Column",title:'{{t("Status", { ns: "'.concat(f.A7,'" })}}'),properties:{status:{type:"number","x-decorator":"ExecutionStatusColumn","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{link:{type:"void","x-component":"ExecutionLink"},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"},useAction:"{{ cm.useDestroyActionAndRefreshCM }}"},"x-reactions":[{dependencies:["..status"],fulfill:{state:{visible:"{{ $deps[0] !== ".concat(p.r9.STARTED," }}")}}}]}}}}}}}}}}}},1600:function(e,t,n){n.d(t,{X:function(){return c}});var o=n(3772);function r(e,t,n,o,r,c,i){try{var l=e[c](i),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(o,r)}function c(){var e=(0,o.useResourceActionContext)();return{onClick:function(){var t;return(t=function(){var t;return function(e,t){var n,o,r,c,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return c={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(c){return function(l){var u=[c,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],o=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){return null==e||null==(t=e.refresh)||t.call(e),[2]})},function(){var e=this,n=arguments;return new Promise(function(o,c){var i=t.apply(e,n);function l(e){r(i,o,c,l,u,"next",e)}function u(e){r(i,o,c,l,u,"throw",e)}l(void 0)})})()}}}}}]);
|