@nocobase/plugin-flow-engine 2.1.0-alpha.17 → 2.1.0-alpha.19
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/externalVersion.js +11 -11
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.js +3 -1
- package/dist/server/flow-surfaces/apply/compiler.js +84 -5
- package/dist/server/flow-surfaces/approval/blueprint-service.d.ts +84 -0
- package/dist/server/flow-surfaces/approval/blueprint-service.js +589 -0
- package/dist/server/flow-surfaces/approval/blueprint.d.ts +21 -0
- package/dist/server/flow-surfaces/approval/blueprint.js +190 -0
- package/dist/server/flow-surfaces/approval/builder.d.ts +225 -0
- package/dist/server/flow-surfaces/approval/builder.js +384 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.d.ts +33 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.js +156 -0
- package/dist/server/flow-surfaces/approval/index.d.ts +14 -0
- package/dist/server/flow-surfaces/approval/index.js +40 -0
- package/dist/server/flow-surfaces/approval/runtime-config.d.ts +44 -0
- package/dist/server/flow-surfaces/approval/runtime-config.js +299 -0
- package/dist/server/flow-surfaces/approval/semantic-use.d.ts +23 -0
- package/dist/server/flow-surfaces/approval/semantic-use.js +155 -0
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +36 -2
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +7 -0
- package/dist/server/flow-surfaces/builder.d.ts +2 -0
- package/dist/server/flow-surfaces/builder.js +83 -10
- package/dist/server/flow-surfaces/catalog.d.ts +10 -0
- package/dist/server/flow-surfaces/catalog.js +368 -9
- package/dist/server/flow-surfaces/chart-config.d.ts +1 -1
- package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -0
- package/dist/server/flow-surfaces/compose-compiler.js +2 -1
- package/dist/server/flow-surfaces/configure-options.js +61 -3
- package/dist/server/flow-surfaces/constants.d.ts +342 -5
- package/dist/server/flow-surfaces/constants.js +59 -125
- package/dist/server/flow-surfaces/default-action-popup.d.ts +1 -0
- package/dist/server/flow-surfaces/default-action-popup.js +6 -2
- package/dist/server/flow-surfaces/field-semantics.js +2 -1
- package/dist/server/flow-surfaces/index.js +21 -273
- package/dist/server/flow-surfaces/locator.js +8 -6
- package/dist/server/flow-surfaces/node-use-sets.js +15 -3
- package/dist/server/flow-surfaces/placement.js +11 -7
- package/dist/server/flow-surfaces/planning/action-specs.d.ts +1 -1
- package/dist/server/flow-surfaces/planning/compiler.d.ts +1 -1
- package/dist/server/flow-surfaces/planning/key-kind.js +7 -5
- package/dist/server/flow-surfaces/reaction/registry.d.ts +13 -0
- package/dist/server/flow-surfaces/reaction/registry.js +13 -0
- package/dist/server/flow-surfaces/service-utils.d.ts +10 -14
- package/dist/server/flow-surfaces/service-utils.js +4 -2
- package/dist/server/flow-surfaces/service.d.ts +63 -1
- package/dist/server/flow-surfaces/service.js +1058 -109
- package/dist/server/flow-surfaces/surface-context.d.ts +1 -0
- package/dist/server/flow-surfaces/surface-context.js +99 -19
- package/dist/server/flow-surfaces/types.d.ts +4 -1
- package/dist/swagger/flow-surfaces.d.ts +406 -2
- package/dist/swagger/flow-surfaces.examples.d.ts +164 -0
- package/dist/swagger/flow-surfaces.examples.js +184 -0
- package/dist/swagger/flow-surfaces.js +390 -76
- package/dist/swagger/index.d.ts +406 -2
- package/package.json +2 -2
|
@@ -233,6 +233,85 @@ const flowSurfaceExamples = {
|
|
|
233
233
|
}
|
|
234
234
|
]
|
|
235
235
|
},
|
|
236
|
+
applyApprovalBlueprintInitiator: {
|
|
237
|
+
version: "1",
|
|
238
|
+
surface: "initiator",
|
|
239
|
+
workflowId: 101,
|
|
240
|
+
blocks: [
|
|
241
|
+
{
|
|
242
|
+
key: "initiatorForm",
|
|
243
|
+
type: "approvalInitiator",
|
|
244
|
+
resource: {
|
|
245
|
+
dataSourceKey: "main",
|
|
246
|
+
collectionName: "employees"
|
|
247
|
+
},
|
|
248
|
+
fields: ["nickname", "status"],
|
|
249
|
+
actions: ["approvalSaveDraft", "approvalWithdraw"]
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
layout: {
|
|
253
|
+
rows: [["initiatorForm"]]
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
applyApprovalBlueprintApprover: {
|
|
257
|
+
version: "1",
|
|
258
|
+
surface: "approver",
|
|
259
|
+
nodeId: 201,
|
|
260
|
+
blocks: [
|
|
261
|
+
{
|
|
262
|
+
key: "processForm",
|
|
263
|
+
type: "approvalApprover",
|
|
264
|
+
resource: {
|
|
265
|
+
dataSourceKey: "main",
|
|
266
|
+
collectionName: "employees"
|
|
267
|
+
},
|
|
268
|
+
fields: ["nickname"],
|
|
269
|
+
actions: [
|
|
270
|
+
"approvalApprove",
|
|
271
|
+
"approvalReject",
|
|
272
|
+
{
|
|
273
|
+
type: "approvalReturn",
|
|
274
|
+
settings: {
|
|
275
|
+
approvalReturn: {
|
|
276
|
+
type: "count",
|
|
277
|
+
count: 1
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
key: "approvalInfo",
|
|
285
|
+
type: "approvalInformation",
|
|
286
|
+
resource: {
|
|
287
|
+
dataSourceKey: "main",
|
|
288
|
+
collectionName: "employees"
|
|
289
|
+
},
|
|
290
|
+
fields: ["status"]
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
layout: {
|
|
294
|
+
rows: [["processForm"], ["approvalInfo"]]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
applyApprovalBlueprintTaskCard: {
|
|
298
|
+
version: "1",
|
|
299
|
+
surface: "taskCard",
|
|
300
|
+
nodeId: 201,
|
|
301
|
+
fields: [
|
|
302
|
+
{
|
|
303
|
+
key: "nickname",
|
|
304
|
+
fieldPath: "nickname"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
key: "status",
|
|
308
|
+
fieldPath: "status"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
layout: {
|
|
312
|
+
rows: [["nickname", "status"]]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
236
315
|
setFieldValueRules: {
|
|
237
316
|
target: {
|
|
238
317
|
uid: "employees-form-uid"
|
|
@@ -987,6 +1066,46 @@ const flowSurfaceExamples = {
|
|
|
987
1066
|
}
|
|
988
1067
|
}
|
|
989
1068
|
},
|
|
1069
|
+
addFieldAutoPopupTemplate: {
|
|
1070
|
+
target: {
|
|
1071
|
+
uid: "details-block-uid"
|
|
1072
|
+
},
|
|
1073
|
+
fieldPath: "department.title",
|
|
1074
|
+
popup: {
|
|
1075
|
+
tryTemplate: true
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
addFieldDefaultEditPopup: {
|
|
1079
|
+
target: {
|
|
1080
|
+
uid: "details-block-uid"
|
|
1081
|
+
},
|
|
1082
|
+
fieldPath: "department.title",
|
|
1083
|
+
popup: {
|
|
1084
|
+
defaultType: "edit"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
addFieldSavePopupTemplate: {
|
|
1088
|
+
target: {
|
|
1089
|
+
uid: "details-block-uid"
|
|
1090
|
+
},
|
|
1091
|
+
fieldPath: "nickname",
|
|
1092
|
+
popup: {
|
|
1093
|
+
blocks: [
|
|
1094
|
+
{
|
|
1095
|
+
key: "employee-popup-details",
|
|
1096
|
+
type: "details",
|
|
1097
|
+
resource: {
|
|
1098
|
+
binding: "currentRecord"
|
|
1099
|
+
},
|
|
1100
|
+
fields: ["nickname"]
|
|
1101
|
+
}
|
|
1102
|
+
],
|
|
1103
|
+
saveAsTemplate: {
|
|
1104
|
+
name: "employee-popup-template",
|
|
1105
|
+
description: "Save this explicit field popup as a reusable popup template."
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
990
1109
|
addAction: {
|
|
991
1110
|
target: {
|
|
992
1111
|
uid: "filter-form-block-uid"
|
|
@@ -1006,6 +1125,37 @@ const flowSurfaceExamples = {
|
|
|
1006
1125
|
title: "Open docs"
|
|
1007
1126
|
}
|
|
1008
1127
|
},
|
|
1128
|
+
addAutoPopupAction: {
|
|
1129
|
+
target: {
|
|
1130
|
+
uid: "table-block-uid"
|
|
1131
|
+
},
|
|
1132
|
+
type: "popup",
|
|
1133
|
+
popup: {
|
|
1134
|
+
tryTemplate: true
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
addSavePopupAction: {
|
|
1138
|
+
target: {
|
|
1139
|
+
uid: "table-block-uid"
|
|
1140
|
+
},
|
|
1141
|
+
type: "popup",
|
|
1142
|
+
popup: {
|
|
1143
|
+
blocks: [
|
|
1144
|
+
{
|
|
1145
|
+
key: "employee-popup-table",
|
|
1146
|
+
type: "table",
|
|
1147
|
+
resource: {
|
|
1148
|
+
binding: "currentCollection"
|
|
1149
|
+
},
|
|
1150
|
+
fields: ["username", "nickname"]
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
saveAsTemplate: {
|
|
1154
|
+
name: "employee-popup-template",
|
|
1155
|
+
description: "Save this explicit action popup as a reusable popup template."
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1009
1159
|
addJsAction: {
|
|
1010
1160
|
target: {
|
|
1011
1161
|
uid: "action-panel-uid"
|
|
@@ -1058,6 +1208,37 @@ const flowSurfaceExamples = {
|
|
|
1058
1208
|
]
|
|
1059
1209
|
}
|
|
1060
1210
|
},
|
|
1211
|
+
addRecordAutoPopupTemplate: {
|
|
1212
|
+
target: {
|
|
1213
|
+
uid: "table-block-uid"
|
|
1214
|
+
},
|
|
1215
|
+
type: "view",
|
|
1216
|
+
popup: {
|
|
1217
|
+
tryTemplate: true
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
addRecordSavePopupTemplate: {
|
|
1221
|
+
target: {
|
|
1222
|
+
uid: "table-block-uid"
|
|
1223
|
+
},
|
|
1224
|
+
type: "view",
|
|
1225
|
+
popup: {
|
|
1226
|
+
blocks: [
|
|
1227
|
+
{
|
|
1228
|
+
key: "employee-record-popup-details",
|
|
1229
|
+
type: "details",
|
|
1230
|
+
resource: {
|
|
1231
|
+
binding: "currentRecord"
|
|
1232
|
+
},
|
|
1233
|
+
fields: ["username", "nickname"]
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
saveAsTemplate: {
|
|
1237
|
+
name: "employee-popup-template",
|
|
1238
|
+
description: "Save this explicit record-action popup as a reusable popup template."
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1061
1242
|
addRecordAddChildAction: {
|
|
1062
1243
|
target: {
|
|
1063
1244
|
uid: "tree-table-block-uid"
|
|
@@ -1358,6 +1539,9 @@ const flowSurfaceExamples = {
|
|
|
1358
1539
|
},
|
|
1359
1540
|
mode: "replace",
|
|
1360
1541
|
spec: {
|
|
1542
|
+
popup: {
|
|
1543
|
+
tryTemplate: true
|
|
1544
|
+
},
|
|
1361
1545
|
subModels: {
|
|
1362
1546
|
items: [
|
|
1363
1547
|
{
|