@nocobase/plugin-workflow 0.9.2-alpha.1 → 0.9.2-alpha.3
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/lib/client/AddButton.js +1 -3
- package/lib/client/Branch.d.ts +1 -1
- package/lib/client/ExecutionCanvas.js +1 -1
- package/lib/client/FlowContext.d.ts +1 -1
- package/lib/client/WorkflowProvider.js +0 -1
- package/lib/client/components/CollectionFieldset.d.ts +1 -1
- package/lib/client/components/CollectionFieldset.js +13 -13
- package/lib/client/components/Duration.js +3 -3
- package/lib/client/components/DynamicExpression.d.ts +1 -1
- package/lib/client/components/RadioWithTooltip.js +4 -4
- package/lib/client/components/renderEngineReference.js +3 -2
- package/lib/client/interfaces/expression.d.ts +1 -1
- package/lib/client/locale/en-US.d.ts +70 -70
- package/lib/client/locale/en-US.js +115 -115
- package/lib/client/locale/ja-JP.d.ts +57 -57
- package/lib/client/locale/ja-JP.js +85 -85
- package/lib/client/locale/pt-BR.d.ts +70 -70
- package/lib/client/locale/pt-BR.js +115 -115
- package/lib/client/locale/ru-RU.d.ts +57 -57
- package/lib/client/locale/ru-RU.js +85 -85
- package/lib/client/locale/tr-TR.d.ts +57 -57
- package/lib/client/locale/tr-TR.js +85 -85
- package/lib/client/locale/zh-CN.js +55 -55
- package/lib/client/nodes/calculation.js +6 -6
- package/lib/client/nodes/condition.d.ts +3 -3
- package/lib/client/nodes/condition.js +46 -42
- package/lib/client/nodes/delay.d.ts +1 -1
- package/lib/client/nodes/index.js +35 -37
- package/lib/client/nodes/manual/ModeConfig.js +5 -5
- package/lib/client/nodes/manual/SchemaConfig.js +2 -5
- package/lib/client/nodes/manual/WorkflowTodo.js +3 -3
- package/lib/client/nodes/manual/forms/customForm.js +1 -2
- package/lib/client/nodes/parallel.d.ts +1 -1
- package/lib/client/nodes/parallel.js +6 -6
- package/lib/client/nodes/request.d.ts +2 -0
- package/lib/client/nodes/request.js +7 -5
- package/lib/client/style.js +67 -63
- package/lib/client/triggers/index.d.ts +4 -4
- package/lib/client/triggers/index.js +5 -7
- package/lib/client/triggers/schedule/DateFieldsSelect.d.ts +1 -1
- package/lib/client/triggers/schedule/EndsByField.js +3 -3
- package/lib/client/triggers/schedule/OnField.js +3 -3
- package/lib/client/triggers/schedule/RepeatField.js +16 -16
- package/lib/client/triggers/schedule/ScheduleConfig.js +2 -2
- package/lib/client/utils.js +1 -1
- package/lib/client/variable.js +4 -4
- package/lib/server/Processor.js +1 -1
- package/lib/server/functions/index.d.ts +1 -1
- package/lib/server/functions/index.js +1 -2
- package/lib/server/instructions/calculation.d.ts +1 -1
- package/lib/server/instructions/condition.d.ts +2 -2
- package/lib/server/instructions/create.d.ts +1 -1
- package/lib/server/instructions/destroy.d.ts +1 -1
- package/lib/server/instructions/manual/index.js +1 -2
- package/lib/server/instructions/parallel.d.ts +3 -3
- package/lib/server/instructions/query.d.ts +2 -2
- package/lib/server/instructions/request.js +0 -1
- package/lib/server/instructions/update.d.ts +2 -2
- package/lib/server/migrations/20230221071831-calculation-expression.js +11 -11
- package/lib/server/migrations/20230221121203-condition-calculation.js +6 -6
- package/lib/server/migrations/20230221162902-jsonb-to-json.js +3 -5
- package/lib/server/migrations/20230411034722-manual-multi-form.js +3 -2
- package/lib/server/triggers/collection.d.ts +2 -2
- package/lib/server/triggers/collection.js +2 -2
- package/lib/server/triggers/schedule.js +26 -20
- package/package.json +12 -12
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
Workflow: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
'Execution history': string;
|
|
4
|
+
'Trigger type': string;
|
|
5
5
|
Status: string;
|
|
6
6
|
On: string;
|
|
7
7
|
Off: string;
|
|
8
8
|
Version: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
'Copy to new version': string;
|
|
10
|
+
'Load failed': string;
|
|
11
11
|
Trigger: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
'Collection event': string;
|
|
13
|
+
'Trigger on': string;
|
|
14
|
+
'After record added': string;
|
|
15
|
+
'After record updated': string;
|
|
16
|
+
'After record added or updated': string;
|
|
17
|
+
'After record deleted': string;
|
|
18
|
+
'Changed fields': string;
|
|
19
|
+
'Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.': string;
|
|
20
|
+
'Only triggers when match conditions': string;
|
|
21
|
+
'Schedule event': string;
|
|
22
|
+
'Trigger mode': string;
|
|
23
|
+
'Based on certain date': string;
|
|
24
|
+
'Based on date field of collection': string;
|
|
25
|
+
'Starts on': string;
|
|
26
|
+
'Ends on': string;
|
|
27
|
+
'Exactly at': string;
|
|
28
|
+
'Repeat mode': string;
|
|
29
|
+
'Repeat limit': string;
|
|
30
|
+
'No limit': string;
|
|
31
31
|
Seconds: string;
|
|
32
32
|
Minutes: string;
|
|
33
33
|
Hours: string;
|
|
34
34
|
Days: string;
|
|
35
35
|
Weeks: string;
|
|
36
36
|
Months: string;
|
|
37
|
-
|
|
37
|
+
'No repeat': string;
|
|
38
38
|
Every: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
'By minute': string;
|
|
40
|
+
'By hour': string;
|
|
41
|
+
'By day': string;
|
|
42
|
+
'By week': string;
|
|
43
|
+
'By month': string;
|
|
44
|
+
'By field': string;
|
|
45
|
+
'By custom date': string;
|
|
46
46
|
Advanced: string;
|
|
47
47
|
End: string;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
'Trigger variables': string;
|
|
49
|
+
'Node result': string;
|
|
50
50
|
Constant: string;
|
|
51
51
|
Boolean: string;
|
|
52
52
|
String: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
'Arithmetic calculation': string;
|
|
54
|
+
'String operation': string;
|
|
55
|
+
'On going': string;
|
|
56
56
|
Succeeded: string;
|
|
57
57
|
Failed: string;
|
|
58
58
|
Canceled: string;
|
|
59
|
-
|
|
59
|
+
'This node contains branches, deleting will also be preformed to them, are you sure?': string;
|
|
60
60
|
Control: string;
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
'Collection operations': string;
|
|
62
|
+
'Node type': string;
|
|
63
63
|
Calculation: string;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
'Configure calculation': string;
|
|
65
|
+
'Calculation result': string;
|
|
66
66
|
True: string;
|
|
67
67
|
False: string;
|
|
68
68
|
Condition: string;
|
|
69
69
|
Mode: string;
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
'Continue when "Yes"': string;
|
|
71
|
+
'Branch into "Yes" and "No"': string;
|
|
72
72
|
Conditions: string;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
73
|
+
'Parallel branch': string;
|
|
74
|
+
'All succeeded': string;
|
|
75
|
+
'Any succeeded': string;
|
|
76
|
+
'Continue after all branches succeeded': string;
|
|
77
|
+
'Continue after any branch succeeded': string;
|
|
78
|
+
'Create record': string;
|
|
79
|
+
'Update record': string;
|
|
80
|
+
'Query record': string;
|
|
81
|
+
'Multiple records': string;
|
|
82
|
+
'Please select collection first': string;
|
|
83
|
+
'Only update records matching conditions': string;
|
|
84
|
+
'Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.': string;
|
|
85
|
+
'Trigger in executed workflow cannot be modified': string;
|
|
86
|
+
'Node in executed workflow cannot be modified': string;
|
|
87
87
|
};
|
|
88
88
|
export default _default;
|
|
@@ -5,90 +5,90 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
8
|
+
Workflow: 'İş Akışı',
|
|
9
|
+
'Execution history': 'Yürütme Geçmişi',
|
|
10
|
+
'Trigger type': 'Tetikleme türü',
|
|
11
|
+
Status: 'Durum',
|
|
12
|
+
On: 'Aç',
|
|
13
|
+
Off: 'Kapa',
|
|
14
|
+
Version: 'Sürüm',
|
|
15
|
+
'Copy to new version': 'Yeni sürüme kopyala',
|
|
16
|
+
'Load failed': 'Yükleme başarısız',
|
|
17
|
+
Trigger: 'Tetikle',
|
|
18
|
+
'Collection event': 'Koleksiyon etkinliği',
|
|
19
|
+
'Trigger on': 'Tetikleme açık',
|
|
20
|
+
'After record added': 'Kayıt eklendikten sonra',
|
|
21
|
+
'After record updated': 'Kayıt güncellendikten sonra',
|
|
22
|
+
'After record added or updated': 'Kayıt eklendikten veya güncellendikten sonra',
|
|
23
|
+
'After record deleted': 'Kayıt silindikten sonra',
|
|
24
|
+
'Changed fields': 'Değiştirilen alanlar',
|
|
25
|
+
'Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.': 'Yalnızca seçilen alanlardan biri değiştiğinde tetiklenir. Seçili değilse, herhangi bir alan değiştiğinde tetikleneceği anlamına gelir. Kayıt eklendiğinde veya silindiğinde, herhangi bir alan değiştirilmiş olarak kabul edilir.',
|
|
26
|
+
'Only triggers when match conditions': 'Yalnızca eşleşme koşulları olduğunda tetiklenir',
|
|
27
|
+
'Schedule event': 'Etkinlik planla',
|
|
28
|
+
'Trigger mode': 'Tetikleme modu',
|
|
29
|
+
'Based on certain date': 'Belirli bir tarihe göre',
|
|
30
|
+
'Based on date field of collection': 'Koleksiyonun tarih alanına göre',
|
|
31
|
+
'Starts on': 'Başlangıç',
|
|
32
|
+
'Ends on': 'Bitiş',
|
|
33
|
+
'Exactly at': 'Tam zamanı',
|
|
34
|
+
'Repeat mode': 'Tekrarlama modu',
|
|
35
|
+
'Repeat limit': 'Tekrarlama limiti',
|
|
36
|
+
'No limit': 'Limit yok',
|
|
37
|
+
Seconds: 'Saniye',
|
|
38
|
+
Minutes: 'Dakika',
|
|
39
|
+
Hours: 'Saat',
|
|
40
|
+
Days: 'Gün',
|
|
41
|
+
Weeks: 'Hafta',
|
|
42
|
+
Months: 'Ay',
|
|
43
|
+
'No repeat': 'Tekrar yok',
|
|
44
|
+
Every: 'Her',
|
|
45
|
+
'By minute': 'Dakikada',
|
|
46
|
+
'By hour': 'Saatte',
|
|
47
|
+
'By day': 'Günde',
|
|
48
|
+
'By week': 'Haftada',
|
|
49
|
+
'By month': 'Ayda',
|
|
50
|
+
'By field': 'Alanda',
|
|
51
|
+
'By custom date': 'Özel tarihe göre',
|
|
52
|
+
Advanced: 'Gelişmiş',
|
|
53
|
+
End: 'Son',
|
|
54
|
+
'Trigger variables': 'Tetikleyici bağlamı',
|
|
55
|
+
'Node result': 'Düğüm sonucu',
|
|
56
|
+
Constant: 'Devamlı',
|
|
57
|
+
Boolean: 'Boolean',
|
|
58
|
+
String: 'String',
|
|
59
|
+
'Arithmetic calculation': 'Aritmetik hesaplama',
|
|
60
|
+
'String operation': 'String operation',
|
|
61
|
+
'On going': 'Devam eden',
|
|
62
|
+
Succeeded: 'Başarılı',
|
|
63
|
+
Failed: 'Başarısız',
|
|
64
|
+
Canceled: 'İptal edilen',
|
|
65
|
+
'This node contains branches, deleting will also be preformed to them, are you sure?': 'Bu düğüm başka içeriklerle bağlantı içeriyor, silme işlemini onaylarsanız o bağlantılarda silinecek, emin misiniz?',
|
|
66
|
+
Control: 'Kontrol',
|
|
67
|
+
'Collection operations': 'Koleksiyon operasyonları',
|
|
68
|
+
'Node type': 'Düğüm türü',
|
|
69
|
+
Calculation: 'Hesaplama',
|
|
70
|
+
'Configure calculation': 'Hesaplamayı yapılandır',
|
|
71
|
+
'Calculation result': 'Hesaplama sonucu',
|
|
72
|
+
True: 'Doğru',
|
|
73
|
+
False: 'Yanlış',
|
|
74
|
+
Condition: 'Koşul',
|
|
75
|
+
Mode: 'Tür',
|
|
76
|
+
'Continue when "Yes"': '"Evet" durumunda devam',
|
|
77
|
+
'Branch into "Yes" and "No"': '"Evet" ve "Hayır" olarak dallandırın',
|
|
78
|
+
Conditions: 'Koşullar',
|
|
79
|
+
'Parallel branch': 'Paralel dal',
|
|
80
|
+
'All succeeded': 'Hepsi başarılı',
|
|
81
|
+
'Any succeeded': 'Herhangi biri başarılı',
|
|
82
|
+
'Continue after all branches succeeded': 'Tüm dallar başarılı olduktan sonra devam et',
|
|
83
|
+
'Continue after any branch succeeded': 'Herhangi bir dal başarılı olduktan sonra devam et',
|
|
84
|
+
'Create record': 'Kayıt oluştur',
|
|
85
|
+
'Update record': 'Kayıt güncelle',
|
|
86
|
+
'Query record': 'Sorgu kaydı',
|
|
87
|
+
'Multiple records': 'Birden çok kayıt',
|
|
88
|
+
'Please select collection first': 'Lütfen önce koleksiyonu seçin',
|
|
89
|
+
'Only update records matching conditions': 'Yalnızca koşullarla eşleşen kayıtları güncelleyin',
|
|
90
|
+
'Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.': 'Değer atanmamış alanlar varsayılan değere, varsayılan değeri olmayan alanlar ise null olarak ayarlanır.',
|
|
91
|
+
'Trigger in executed workflow cannot be modified': 'Yürütülen iş akışındaki tetikleyici değiştirilemez',
|
|
92
|
+
'Node in executed workflow cannot be modified': 'Yürütülen iş akışındaki düğüm değiştirilemez'
|
|
93
93
|
};
|
|
94
94
|
exports.default = _default;
|
|
@@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
|
|
8
|
+
Workflow: '工作流',
|
|
9
9
|
'Execution history': '执行历史',
|
|
10
|
-
|
|
10
|
+
Executed: '已执行',
|
|
11
11
|
'Trigger type': '触发方式',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
Status: '状态',
|
|
13
|
+
On: '启用',
|
|
14
|
+
Off: '停用',
|
|
15
|
+
Version: '版本',
|
|
16
16
|
'Copy to new version': '复制到新版本',
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
Duplicate: '复制',
|
|
18
|
+
Loading: '加载中',
|
|
19
19
|
'Load failed': '加载失败',
|
|
20
|
-
|
|
20
|
+
Trigger: '触发器',
|
|
21
21
|
'Trigger variables': '触发器变量',
|
|
22
22
|
'Trigger data': '触发数据',
|
|
23
23
|
'Trigger time': '触发时间',
|
|
@@ -44,14 +44,14 @@ var _default = {
|
|
|
44
44
|
'Repeat mode': '重复模式',
|
|
45
45
|
'Repeat limit': '重复次数',
|
|
46
46
|
'No limit': '不限',
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
Seconds: '秒',
|
|
48
|
+
Minutes: '分钟',
|
|
49
|
+
Hours: '小时',
|
|
50
|
+
Days: '天',
|
|
51
|
+
Weeks: '周',
|
|
52
|
+
Months: '月',
|
|
53
53
|
'No repeat': '不重复',
|
|
54
|
-
|
|
54
|
+
Every: '每',
|
|
55
55
|
'By minute': '按分钟',
|
|
56
56
|
'By hour': '按小时',
|
|
57
57
|
'By day': '按天',
|
|
@@ -59,52 +59,52 @@ var _default = {
|
|
|
59
59
|
'By month': '按月',
|
|
60
60
|
'By field': '数据表字段',
|
|
61
61
|
'By custom date': '自定义时间',
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
Advanced: '高级模式',
|
|
63
|
+
End: '结束',
|
|
64
64
|
'Node result': '节点数据',
|
|
65
|
-
|
|
65
|
+
Calculator: '运算',
|
|
66
66
|
'Arithmetic calculation': '算术运算',
|
|
67
67
|
'String operation': '字符串',
|
|
68
68
|
'System variables': '系统变量',
|
|
69
69
|
'System time': '系统时间',
|
|
70
70
|
'Date variables': '日期变量',
|
|
71
71
|
'Executed at': '执行于',
|
|
72
|
-
|
|
72
|
+
Queueing: '队列中',
|
|
73
73
|
'On going': '进行中',
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
Resolved: '完成',
|
|
75
|
+
Pending: '待处理',
|
|
76
|
+
Failed: '失败',
|
|
77
|
+
Error: '出错',
|
|
78
|
+
Aborted: '已终止',
|
|
79
|
+
Canceled: '已取消',
|
|
80
|
+
Rejected: '已拒绝',
|
|
81
81
|
'Continue the process': '继续流程',
|
|
82
82
|
'Terminate the process': '终止流程',
|
|
83
83
|
'Save temporarily': '暂存',
|
|
84
|
-
|
|
84
|
+
Operations: '操作',
|
|
85
85
|
'This node contains branches, deleting will also be preformed to them, are you sure?': '节点包含分支,将同时删除其所有分支下的子节点,确定继续?',
|
|
86
|
-
|
|
86
|
+
Control: '流程控制',
|
|
87
87
|
'Collection operations': '数据表操作',
|
|
88
|
-
|
|
88
|
+
Manual: '人工处理',
|
|
89
89
|
'Extended types': '扩展类型',
|
|
90
90
|
'Node type': '节点类型',
|
|
91
|
-
|
|
91
|
+
Calculation: '运算',
|
|
92
92
|
'Expression type': '表达式类型',
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Static: '静态',
|
|
94
|
+
Dynamic: '动态',
|
|
95
95
|
'Select dynamic expression': '选择动态表达式',
|
|
96
96
|
'Variable datasource': '变量数据源',
|
|
97
97
|
'Calculation engine': '运算引擎',
|
|
98
|
-
|
|
98
|
+
Basic: '基础',
|
|
99
99
|
'Calculation expression': '运算表达式',
|
|
100
100
|
'Expression syntax error': '表达式语法错误',
|
|
101
101
|
'Syntax references: ': '语法参考:',
|
|
102
102
|
'Calculation result': '运算结果',
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
True: '真',
|
|
104
|
+
False: '假',
|
|
105
|
+
concat: '连接',
|
|
106
|
+
Condition: '条件判断',
|
|
107
|
+
Mode: '模式',
|
|
108
108
|
'Continue when "Yes"': '“是”则继续',
|
|
109
109
|
'Branch into "Yes" and "No"': '“是”和“否”分别继续',
|
|
110
110
|
'Condition expression': '条件表达式',
|
|
@@ -116,22 +116,22 @@ var _default = {
|
|
|
116
116
|
'Continue after all branches succeeded': '全部分支都成功后才能继续',
|
|
117
117
|
'Continue after any branch succeeded': '任意分支成功后就继续',
|
|
118
118
|
'Continue after any branch succeeded, or exit after any branch failed': '任意分支成功继续,或失败后退出',
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
Delay: '延时',
|
|
120
|
+
Duration: '时长',
|
|
121
121
|
'End Status': '到时状态',
|
|
122
122
|
'Select status': '选择状态',
|
|
123
123
|
'Succeed and continue': '通过并继续',
|
|
124
124
|
'Fail and exit': '失败并退出',
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
Assignee: '负责人',
|
|
126
|
+
Assignees: '负责人',
|
|
127
127
|
'User interface': '操作界面',
|
|
128
128
|
'Configure user interface': '配置界面',
|
|
129
129
|
'View user interface': '查看界面',
|
|
130
|
-
|
|
130
|
+
Separately: '分别处理',
|
|
131
131
|
'Each user has own task': '每个人处理各自的任务',
|
|
132
|
-
|
|
132
|
+
Collaboratively: '协作处理',
|
|
133
133
|
'Everyone shares one task': '所有人共享同一个任务',
|
|
134
|
-
|
|
134
|
+
Negotiation: '协商机制',
|
|
135
135
|
'All pass': '全部通过',
|
|
136
136
|
'Everyone should pass': '每个人通过才通过',
|
|
137
137
|
'Any pass': '任意通过',
|
|
@@ -154,25 +154,25 @@ var _default = {
|
|
|
154
154
|
'The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.': '该节点的执行结果已被其他节点({{nodes}})引用,删除前请先移除引用。',
|
|
155
155
|
'HTTP request': 'HTTP 请求',
|
|
156
156
|
'HTTP method': 'HTTP 方法',
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
URL: '地址',
|
|
158
|
+
Headers: '请求头',
|
|
159
159
|
'Add request header': '添加请求头',
|
|
160
|
-
|
|
160
|
+
Parameters: '参数',
|
|
161
161
|
'Add parameter': '添加参数',
|
|
162
|
-
|
|
162
|
+
Body: '请求体',
|
|
163
163
|
'Use variable': '使用变量',
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
Format: '格式化',
|
|
165
|
+
Insert: '插入',
|
|
166
166
|
'Timeout config': '超时设置',
|
|
167
|
-
|
|
167
|
+
ms: '毫秒',
|
|
168
168
|
'Input request data': '输入请求数据',
|
|
169
169
|
'Only support standard JSON data': '仅支持标准 JSON 数据',
|
|
170
170
|
'"Content-Type" only support "application/json", and no need to specify': '"Content-Type" 请求头仅支持 "application/json",无需填写',
|
|
171
171
|
'Ignore fail request and continue workflow': '忽略失败的请求并继续工作流',
|
|
172
172
|
'Workflow todos': '工作流待办',
|
|
173
|
-
|
|
173
|
+
Task: '任务',
|
|
174
174
|
'Dynamic expression': '动态表达式',
|
|
175
175
|
'An expression for calculation in each rows': '每行数据计算规则不同时使用',
|
|
176
|
-
|
|
176
|
+
Unconfigured: '未配置'
|
|
177
177
|
};
|
|
178
178
|
exports.default = _default;
|
|
@@ -104,11 +104,11 @@ const DynamicConfig = ({
|
|
|
104
104
|
}
|
|
105
105
|
}, _react().default.createElement(_antd2().Radio, {
|
|
106
106
|
value: false
|
|
107
|
-
}, t(
|
|
107
|
+
}, t('Static', {
|
|
108
108
|
ns: _locale.NAMESPACE
|
|
109
109
|
})), _react().default.createElement(_antd2().Radio, {
|
|
110
110
|
value: value || null
|
|
111
|
-
}, t(
|
|
111
|
+
}, t('Dynamic', {
|
|
112
112
|
ns: _locale.NAMESPACE
|
|
113
113
|
})))), value !== false ? _react().default.createElement(_antd().FormItem, {
|
|
114
114
|
label: t('Select dynamic expression', {
|
|
@@ -122,9 +122,9 @@ const DynamicConfig = ({
|
|
|
122
122
|
};
|
|
123
123
|
function useWorkflowVariableEntityOptions() {
|
|
124
124
|
return (0, _variable.useWorkflowVariableOptions)([{
|
|
125
|
-
type:
|
|
125
|
+
type: 'reference',
|
|
126
126
|
options: {
|
|
127
|
-
collection:
|
|
127
|
+
collection: '*',
|
|
128
128
|
entity: true
|
|
129
129
|
}
|
|
130
130
|
}]);
|
|
@@ -238,8 +238,8 @@ var _default = {
|
|
|
238
238
|
});
|
|
239
239
|
return _react().default.createElement("pre", {
|
|
240
240
|
className: (0, _css().css)`
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
margin: 0;
|
|
242
|
+
`
|
|
243
243
|
}, JSON.stringify(result, null, 2));
|
|
244
244
|
},
|
|
245
245
|
RadioWithTooltip: _RadioWithTooltip.RadioWithTooltip,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Registry } from
|
|
3
|
-
import { useWorkflowVariableOptions } from
|
|
4
|
-
import { RadioWithTooltip } from
|
|
2
|
+
import { Registry } from '@nocobase/utils/client';
|
|
3
|
+
import { useWorkflowVariableOptions } from '../variable';
|
|
4
|
+
import { RadioWithTooltip } from '../components/RadioWithTooltip';
|
|
5
5
|
interface Calculator {
|
|
6
6
|
name: string;
|
|
7
7
|
type: 'boolean' | 'number' | 'string' | 'date' | 'unknown' | 'null' | 'array';
|