@nocobase/plugin-workflow 0.9.1-alpha.1 → 0.9.2-alpha.1
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 +50 -86
- package/lib/client/Branch.js +0 -13
- package/lib/client/ExecutionCanvas.js +16 -63
- package/lib/client/ExecutionLink.js +3 -21
- package/lib/client/ExecutionPage.js +1 -19
- package/lib/client/ExecutionResourceProvider.js +6 -23
- package/lib/client/FlowContext.js +0 -8
- package/lib/client/WorkflowCanvas.js +57 -129
- package/lib/client/WorkflowLink.js +3 -21
- package/lib/client/WorkflowPage.js +1 -19
- package/lib/client/WorkflowProvider.js +24 -47
- package/lib/client/WorkflowShortcut.js +0 -16
- package/lib/client/components/CollectionBlockInitializer.js +12 -22
- package/lib/client/components/CollectionFieldInitializers.js +5 -24
- package/lib/client/components/CollectionFieldset.js +33 -85
- package/lib/client/components/Duration.js +0 -14
- package/lib/client/components/DynamicExpression.d.ts +4 -0
- package/lib/client/components/DynamicExpression.js +102 -0
- package/lib/client/components/FieldsSelect.d.ts +2 -0
- package/lib/client/components/FieldsSelect.js +66 -0
- package/lib/client/components/FilterDynamicComponent.js +1 -10
- package/lib/client/components/NullRender.js +0 -1
- package/lib/client/components/OpenDrawer.js +10 -35
- package/lib/client/components/RadioWithTooltip.js +5 -27
- package/lib/client/components/renderEngineReference.d.ts +1 -0
- package/lib/client/components/renderEngineReference.js +55 -0
- package/lib/client/constants.js +0 -9
- package/lib/client/index.js +0 -6
- package/lib/client/interfaces/expression.d.ts +3 -0
- package/lib/client/interfaces/expression.js +37 -0
- package/lib/client/locale/index.js +5 -15
- package/lib/client/locale/pt-BR.d.ts +130 -0
- package/lib/client/locale/pt-BR.js +136 -0
- package/lib/client/locale/zh-CN.d.ts +16 -1
- package/lib/client/locale/zh-CN.js +17 -2
- package/lib/client/nodes/calculation.d.ts +56 -7
- package/lib/client/nodes/calculation.js +141 -74
- package/lib/client/nodes/condition.d.ts +5 -9
- package/lib/client/nodes/condition.js +30 -93
- package/lib/client/nodes/create.d.ts +36 -12
- package/lib/client/nodes/create.js +14 -28
- package/lib/client/nodes/delay.d.ts +3 -7
- package/lib/client/nodes/delay.js +5 -14
- package/lib/client/nodes/destroy.d.ts +3 -11
- package/lib/client/nodes/destroy.js +14 -12
- package/lib/client/nodes/index.d.ts +2 -2
- package/lib/client/nodes/index.js +181 -222
- package/lib/client/nodes/manual/AssigneesSelect.js +8 -18
- package/lib/client/nodes/manual/ModeConfig.js +0 -27
- package/lib/client/nodes/manual/SchemaConfig.js +87 -449
- package/lib/client/nodes/manual/WorkflowTodo.js +99 -163
- package/lib/client/nodes/manual/WorkflowTodoBlockInitializer.js +4 -20
- package/lib/client/nodes/manual/forms/customForm.d.ts +40 -0
- package/lib/client/nodes/manual/forms/customForm.js +411 -0
- package/lib/client/nodes/manual/index.d.ts +15 -6
- package/lib/client/nodes/manual/index.js +58 -54
- package/lib/client/nodes/parallel.d.ts +1 -2
- package/lib/client/nodes/parallel.js +16 -45
- package/lib/client/nodes/query.d.ts +30 -12
- package/lib/client/nodes/query.js +17 -25
- package/lib/client/nodes/request.d.ts +9 -17
- package/lib/client/nodes/request.js +13 -37
- package/lib/client/nodes/update.d.ts +27 -28
- package/lib/client/nodes/update.js +17 -18
- package/lib/client/schemas/collection.d.ts +20 -7
- package/lib/client/schemas/collection.js +27 -28
- package/lib/client/schemas/executions.js +3 -18
- package/lib/client/schemas/workflows.js +10 -33
- package/lib/client/style.js +75 -26
- package/lib/client/triggers/collection.d.ts +47 -18
- package/lib/client/triggers/collection.js +65 -123
- package/lib/client/triggers/index.d.ts +3 -6
- package/lib/client/triggers/index.js +146 -146
- package/lib/client/triggers/schedule/DateFieldsSelect.js +7 -32
- package/lib/client/triggers/schedule/EndsByField.js +1 -18
- package/lib/client/triggers/schedule/OnField.js +10 -38
- package/lib/client/triggers/schedule/RepeatField.js +4 -32
- package/lib/client/triggers/schedule/ScheduleConfig.js +25 -68
- package/lib/client/triggers/schedule/index.d.ts +21 -1
- package/lib/client/triggers/schedule/index.js +22 -24
- package/lib/client/triggers/schedule/locale/Cron.zh-CN.js +8 -4
- package/lib/client/utils.d.ts +1 -0
- package/lib/client/utils.js +31 -10
- package/lib/client/variable.d.ts +7 -6
- package/lib/client/variable.js +132 -71
- package/lib/index.js +0 -2
- package/lib/server/Plugin.d.ts +7 -7
- package/lib/server/Plugin.js +76 -111
- package/lib/server/Processor.d.ts +2 -0
- package/lib/server/Processor.js +62 -125
- package/lib/server/actions/index.js +3 -10
- package/lib/server/actions/nodes.js +34 -87
- package/lib/server/actions/workflows.js +46 -96
- package/lib/server/collections/executions.js +1 -1
- package/lib/server/collections/flow_nodes.js +7 -4
- package/lib/server/collections/jobs.js +1 -1
- package/lib/server/collections/workflows.js +3 -4
- package/lib/server/fields/expression-field.d.ts +8 -0
- package/lib/server/fields/expression-field.js +26 -0
- package/lib/server/fields/index.d.ts +1 -0
- package/lib/server/fields/index.js +12 -0
- package/lib/server/functions/index.js +3 -14
- package/lib/server/index.js +0 -6
- package/lib/server/instructions/calculation.js +22 -17
- package/lib/server/instructions/condition.js +8 -52
- package/lib/server/instructions/create.js +31 -15
- package/lib/server/instructions/delay.js +4 -32
- package/lib/server/instructions/destroy.js +6 -12
- package/lib/server/instructions/index.js +6 -23
- package/lib/server/instructions/manual/actions.js +22 -31
- package/lib/server/instructions/manual/collecions/users_jobs.js +1 -1
- package/lib/server/instructions/manual/index.d.ts +13 -12
- package/lib/server/instructions/manual/index.js +9 -47
- package/lib/server/instructions/parallel.js +9 -36
- package/lib/server/instructions/query.js +17 -15
- package/lib/server/instructions/request.js +7 -30
- package/lib/server/instructions/update.js +8 -14
- package/lib/server/migrations/20221129153547-calculation-variables.js +3 -27
- package/lib/server/migrations/20230221032941-change-request-body-type.js +3 -26
- package/lib/server/migrations/20230221071831-calculation-expression.js +1 -33
- package/lib/server/migrations/20230221121203-condition-calculation.js +5 -28
- package/lib/server/migrations/20230221162902-jsonb-to-json.js +3 -18
- package/lib/server/migrations/20230411034722-manual-multi-form.d.ts +4 -0
- package/lib/server/migrations/20230411034722-manual-multi-form.js +303 -0
- package/lib/server/models/Execution.js +0 -5
- package/lib/server/models/FlowNode.js +0 -5
- package/lib/server/models/Job.js +0 -5
- package/lib/server/models/Workflow.js +0 -5
- package/lib/server/triggers/collection.js +39 -61
- package/lib/server/triggers/index.js +3 -22
- package/lib/server/triggers/schedule.js +72 -194
- package/package.json +14 -11
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Workflow: string;
|
|
3
|
+
"Execution history": string;
|
|
4
|
+
Executed: string;
|
|
5
|
+
"Trigger type": string;
|
|
6
|
+
Status: string;
|
|
7
|
+
On: string;
|
|
8
|
+
Off: string;
|
|
9
|
+
Version: string;
|
|
10
|
+
"Copy to new version": string;
|
|
11
|
+
Duplicate: string;
|
|
12
|
+
Loading: string;
|
|
13
|
+
"Load failed": string;
|
|
14
|
+
Trigger: string;
|
|
15
|
+
"Trigger variables": string;
|
|
16
|
+
"Trigger data": string;
|
|
17
|
+
"Trigger time": string;
|
|
18
|
+
"Triggered at": string;
|
|
19
|
+
"Collection event": string;
|
|
20
|
+
"Trigger on": string;
|
|
21
|
+
"After record added": string;
|
|
22
|
+
"After record updated": string;
|
|
23
|
+
"After record added or updated": string;
|
|
24
|
+
"After record deleted": string;
|
|
25
|
+
"Changed fields": string;
|
|
26
|
+
"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;
|
|
27
|
+
"Only triggers when match conditions": string;
|
|
28
|
+
"Schedule event": string;
|
|
29
|
+
"Trigger mode": string;
|
|
30
|
+
"Based on certain date": string;
|
|
31
|
+
"Based on date field of collection": string;
|
|
32
|
+
"Starts on": string;
|
|
33
|
+
"Ends on": string;
|
|
34
|
+
"No end": string;
|
|
35
|
+
"Exactly at": string;
|
|
36
|
+
"Repeat mode": string;
|
|
37
|
+
"Repeat limit": string;
|
|
38
|
+
"No limit": string;
|
|
39
|
+
Seconds: string;
|
|
40
|
+
Minutes: string;
|
|
41
|
+
Hours: string;
|
|
42
|
+
Days: string;
|
|
43
|
+
Weeks: string;
|
|
44
|
+
Months: string;
|
|
45
|
+
"No repeat": string;
|
|
46
|
+
Every: string;
|
|
47
|
+
"By minute": string;
|
|
48
|
+
"By hour": string;
|
|
49
|
+
"By day": string;
|
|
50
|
+
"By week": string;
|
|
51
|
+
"By month": string;
|
|
52
|
+
"By field": string;
|
|
53
|
+
"By custom date": string;
|
|
54
|
+
Advanced: string;
|
|
55
|
+
End: string;
|
|
56
|
+
"Node result": string;
|
|
57
|
+
Constant: string;
|
|
58
|
+
Null: string;
|
|
59
|
+
Boolean: string;
|
|
60
|
+
String: string;
|
|
61
|
+
Calculator: string;
|
|
62
|
+
"Arithmetic calculation": string;
|
|
63
|
+
"String operation": string;
|
|
64
|
+
"Executed at": string;
|
|
65
|
+
Queueing: string;
|
|
66
|
+
"On going": string;
|
|
67
|
+
Succeeded: string;
|
|
68
|
+
Failed: string;
|
|
69
|
+
Pending: string;
|
|
70
|
+
Canceled: string;
|
|
71
|
+
"This node contains branches, deleting will also be preformed to them, are you sure?": string;
|
|
72
|
+
Control: string;
|
|
73
|
+
"Collection operations": string;
|
|
74
|
+
"Extended types": string;
|
|
75
|
+
"Node type": string;
|
|
76
|
+
Calculation: string;
|
|
77
|
+
"Configure calculation": string;
|
|
78
|
+
"Calculation result": string;
|
|
79
|
+
True: string;
|
|
80
|
+
False: string;
|
|
81
|
+
concat: string;
|
|
82
|
+
Condition: string;
|
|
83
|
+
Mode: string;
|
|
84
|
+
"Continue when \"Yes\"": string;
|
|
85
|
+
"Branch into \"Yes\" and \"No\"": string;
|
|
86
|
+
Conditions: string;
|
|
87
|
+
"Parallel branch": string;
|
|
88
|
+
"Add branch": string;
|
|
89
|
+
"All succeeded": string;
|
|
90
|
+
"Any succeeded": string;
|
|
91
|
+
"Any succeeded or failed": string;
|
|
92
|
+
"Continue after all branches succeeded": string;
|
|
93
|
+
"Continue after any branch succeeded": string;
|
|
94
|
+
"Continue after any branch succeeded, or exit after any branch failed": string;
|
|
95
|
+
Delay: string;
|
|
96
|
+
Duration: string;
|
|
97
|
+
"End Status": string;
|
|
98
|
+
"Select status": string;
|
|
99
|
+
"Succeed and continue": string;
|
|
100
|
+
"Fail and exit": string;
|
|
101
|
+
"Create record": string;
|
|
102
|
+
"Update record": string;
|
|
103
|
+
"Query record": string;
|
|
104
|
+
"Multiple records": string;
|
|
105
|
+
"Please select collection first": string;
|
|
106
|
+
"Only update records matching conditions": string;
|
|
107
|
+
"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;
|
|
108
|
+
"Trigger in executed workflow cannot be modified": string;
|
|
109
|
+
"Node in executed workflow cannot be modified": string;
|
|
110
|
+
'Can not delete': string;
|
|
111
|
+
'The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.': string;
|
|
112
|
+
'HTTP request': string;
|
|
113
|
+
'HTTP method': string;
|
|
114
|
+
URL: string;
|
|
115
|
+
Headers: string;
|
|
116
|
+
'Add request header': string;
|
|
117
|
+
Parameters: string;
|
|
118
|
+
'Add parameter': string;
|
|
119
|
+
Body: string;
|
|
120
|
+
'Use variable': string;
|
|
121
|
+
Format: string;
|
|
122
|
+
Insert: string;
|
|
123
|
+
'Timeout config': string;
|
|
124
|
+
ms: string;
|
|
125
|
+
'Input request data': string;
|
|
126
|
+
'Only support standard JSON data': string;
|
|
127
|
+
'"Content-Type" only support "application/json", and no need to specify': string;
|
|
128
|
+
'Ignore fail request and continue workflow': string;
|
|
129
|
+
};
|
|
130
|
+
export default _default;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
"Workflow": "Fluxo de trabalho",
|
|
9
|
+
"Execution history": "Histórico de execução",
|
|
10
|
+
"Executed": "Executado",
|
|
11
|
+
"Trigger type": "Tipo de acionador",
|
|
12
|
+
"Status": "Status",
|
|
13
|
+
"On": "Ligado",
|
|
14
|
+
"Off": "Desligado",
|
|
15
|
+
"Version": "Versão",
|
|
16
|
+
"Copy to new version": "Copiar para nova versão",
|
|
17
|
+
"Duplicate": "Duplicar",
|
|
18
|
+
"Loading": "Carregando",
|
|
19
|
+
"Load failed": "Falha ao carregar",
|
|
20
|
+
"Trigger": "Acionador",
|
|
21
|
+
"Trigger variables": "Variáveis do acionador",
|
|
22
|
+
"Trigger data": "Dados do acionador",
|
|
23
|
+
"Trigger time": "Tempo do acionador",
|
|
24
|
+
"Triggered at": "Acionado em",
|
|
25
|
+
"Collection event": "Evento da coleção",
|
|
26
|
+
"Trigger on": "Acionar em",
|
|
27
|
+
"After record added": "Depois do registro ser adicionado",
|
|
28
|
+
"After record updated": "Depois do registro ser atualizado",
|
|
29
|
+
"After record added or updated": "Depois do registro ser adicionado ou atualizado",
|
|
30
|
+
"After record deleted": "Depois do registro ser excluído",
|
|
31
|
+
"Changed fields": "Campos alterados",
|
|
32
|
+
"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.": "Acionado apenas se um dos campos selecionados for alterado. Se não estiver selecionado, será acionado quando qualquer campo for alterado. Quando um registro é adicionado ou excluído, qualquer campo é considerado como tendo sido alterado.",
|
|
33
|
+
"Only triggers when match conditions": "Aciona somente quando as condições correspondem",
|
|
34
|
+
"Schedule event": "Evento programado",
|
|
35
|
+
"Trigger mode": "Modo de acionamento",
|
|
36
|
+
"Based on certain date": "Com base em uma data específica",
|
|
37
|
+
"Based on date field of collection": "Com base no campo de data da coleção",
|
|
38
|
+
"Starts on": "Começa em",
|
|
39
|
+
"Ends on": "Termina em",
|
|
40
|
+
"No end": "Sem fim",
|
|
41
|
+
"Exactly at": "Exatamente às",
|
|
42
|
+
"Repeat mode": "Modo de repetição",
|
|
43
|
+
"Repeat limit": "Limite de repetição",
|
|
44
|
+
"No limit": "Sem limite",
|
|
45
|
+
"Seconds": "Segundos",
|
|
46
|
+
"Minutes": "Minutos",
|
|
47
|
+
"Hours": "Horas",
|
|
48
|
+
"Days": "Dias",
|
|
49
|
+
"Weeks": "Semanas",
|
|
50
|
+
"Months": "Meses",
|
|
51
|
+
"No repeat": "Sem repetição",
|
|
52
|
+
"Every": "Cada",
|
|
53
|
+
"By minute": "Por minuto",
|
|
54
|
+
"By hour": "Por hora",
|
|
55
|
+
"By day": "Por dia",
|
|
56
|
+
"By week": "Por semana",
|
|
57
|
+
"By month": "Por mês",
|
|
58
|
+
"By field": "Por campo",
|
|
59
|
+
"By custom date": "Por data personalizada",
|
|
60
|
+
"Advanced": "Avançado",
|
|
61
|
+
"End": "Fim",
|
|
62
|
+
"Node result": "Resultado do nó",
|
|
63
|
+
"Constant": "Constante",
|
|
64
|
+
"Null": "Nulo",
|
|
65
|
+
"Boolean": "Booleano",
|
|
66
|
+
"String": "String",
|
|
67
|
+
"Calculator": "Calculadora",
|
|
68
|
+
"Arithmetic calculation": "Cálculo aritmético",
|
|
69
|
+
"String operation": "Operação de string",
|
|
70
|
+
"Executed at": "Executado em",
|
|
71
|
+
"Queueing": "Em fila",
|
|
72
|
+
"On going": "Em andamento",
|
|
73
|
+
"Succeeded": "Sucesso",
|
|
74
|
+
"Failed": "Falhou",
|
|
75
|
+
"Pending": "Pendente",
|
|
76
|
+
"Canceled": "Cancelado",
|
|
77
|
+
"This node contains branches, deleting will also be preformed to them, are you sure?": "Este nó contém ramos, a exclusão também será realizada neles, você tem certeza?",
|
|
78
|
+
"Control": "Controle",
|
|
79
|
+
"Collection operations": "Operações de coleção",
|
|
80
|
+
"Extended types": "Tipos estendidos",
|
|
81
|
+
"Node type": "Tipo de nó",
|
|
82
|
+
"Calculation": "Cálculo",
|
|
83
|
+
"Configure calculation": "Configurar cálculo",
|
|
84
|
+
"Calculation result": "Resultado do cálculo",
|
|
85
|
+
"True": "Verdadeiro",
|
|
86
|
+
"False": "Falso",
|
|
87
|
+
"concat": "concatenar",
|
|
88
|
+
"Condition": "Condição",
|
|
89
|
+
"Mode": "Modo",
|
|
90
|
+
"Continue when \"Yes\"": "Continuar quando \"Sim\"",
|
|
91
|
+
"Branch into \"Yes\" and \"No\"": "Ramo em \"Sim\" e \"Não\"",
|
|
92
|
+
"Conditions": "Condições",
|
|
93
|
+
"Parallel branch": "Ramo paralelo",
|
|
94
|
+
"Add branch": "Adicionar ramo",
|
|
95
|
+
"All succeeded": "Todos com sucesso",
|
|
96
|
+
"Any succeeded": "Qualquer um com sucesso",
|
|
97
|
+
"Any succeeded or failed": "Qualquer um com sucesso ou falha",
|
|
98
|
+
"Continue after all branches succeeded": "Continuar após todos os ramos com sucesso",
|
|
99
|
+
"Continue after any branch succeeded": "Continuar após qualquer ramo com sucesso",
|
|
100
|
+
"Continue after any branch succeeded, or exit after any branch failed": "Continuar após qualquer ramo com sucesso ou sair após qualquer ramo falhar",
|
|
101
|
+
"Delay": "Atraso",
|
|
102
|
+
"Duration": "Duração",
|
|
103
|
+
"End Status": "Status final",
|
|
104
|
+
"Select status": "Selecionar status",
|
|
105
|
+
"Succeed and continue": "Ter sucesso e continuar",
|
|
106
|
+
"Fail and exit": "Falhar e sair",
|
|
107
|
+
"Create record": "Criar registro",
|
|
108
|
+
"Update record": "Atualizar registro",
|
|
109
|
+
"Query record": "Consultar registro",
|
|
110
|
+
"Multiple records": "Múltiplos registros",
|
|
111
|
+
"Please select collection first": "Por favor, selecione uma coleção primeiro",
|
|
112
|
+
"Only update records matching conditions": "Atualizar somente registros que atendem às condições",
|
|
113
|
+
"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.": "Campos que não recebem valor serão definidos como valor padrão e aqueles sem valor padrão serão definidos como nulo.",
|
|
114
|
+
"Trigger in executed workflow cannot be modified": "O acionador em fluxo de trabalho executado não pode ser modificado",
|
|
115
|
+
"Node in executed workflow cannot be modified": "O nó em fluxo de trabalho executado não pode ser modificado",
|
|
116
|
+
'Can not delete': 'Não é possível excluir',
|
|
117
|
+
'The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.': 'O resultado deste nó foi referenciado por outros nós ({{nodes}}), por favor, remova a referência antes de excluir.',
|
|
118
|
+
'HTTP request': 'Requisição HTTP',
|
|
119
|
+
'HTTP method': 'Método HTTP',
|
|
120
|
+
'URL': 'URL',
|
|
121
|
+
'Headers': 'Cabeçalhos',
|
|
122
|
+
'Add request header': 'Adicionar cabeçalho de requisição',
|
|
123
|
+
'Parameters': 'Parâmetros',
|
|
124
|
+
'Add parameter': 'Adicionar parâmetro',
|
|
125
|
+
'Body': 'Corpo',
|
|
126
|
+
'Use variable': 'Usar variável',
|
|
127
|
+
'Format': 'Formato',
|
|
128
|
+
'Insert': 'Inserir',
|
|
129
|
+
'Timeout config': 'Configuração de tempo limite',
|
|
130
|
+
'ms': 'ms',
|
|
131
|
+
'Input request data': 'Dados de entrada da requisição',
|
|
132
|
+
'Only support standard JSON data': 'Suporta somente dados JSON padrão',
|
|
133
|
+
'"Content-Type" only support "application/json", and no need to specify': '"Content-Type" somente suporta "application/json" e não precisa ser especificado',
|
|
134
|
+
'Ignore fail request and continue workflow': 'Ignorar falhas na requisição e continuar o fluxo de trabalho'
|
|
135
|
+
};
|
|
136
|
+
exports.default = _default;
|
|
@@ -25,6 +25,8 @@ declare const _default: {
|
|
|
25
25
|
'Changed fields': string;
|
|
26
26
|
'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;
|
|
27
27
|
'Only triggers when match conditions': string;
|
|
28
|
+
'Preload associations': string;
|
|
29
|
+
'Only configured association field could be accessed in following nodes': string;
|
|
28
30
|
'Schedule event': string;
|
|
29
31
|
'Trigger mode': string;
|
|
30
32
|
'Based on certain date': string;
|
|
@@ -58,7 +60,8 @@ declare const _default: {
|
|
|
58
60
|
'Arithmetic calculation': string;
|
|
59
61
|
'String operation': string;
|
|
60
62
|
'System variables': string;
|
|
61
|
-
'
|
|
63
|
+
'System time': string;
|
|
64
|
+
'Date variables': string;
|
|
62
65
|
'Executed at': string;
|
|
63
66
|
Queueing: string;
|
|
64
67
|
'On going': string;
|
|
@@ -80,6 +83,11 @@ declare const _default: {
|
|
|
80
83
|
'Extended types': string;
|
|
81
84
|
'Node type': string;
|
|
82
85
|
Calculation: string;
|
|
86
|
+
'Expression type': string;
|
|
87
|
+
Static: string;
|
|
88
|
+
Dynamic: string;
|
|
89
|
+
'Select dynamic expression': string;
|
|
90
|
+
'Variable datasource': string;
|
|
83
91
|
'Calculation engine': string;
|
|
84
92
|
Basic: string;
|
|
85
93
|
'Calculation expression': string;
|
|
@@ -123,12 +131,16 @@ declare const _default: {
|
|
|
123
131
|
'Any pass': string;
|
|
124
132
|
'Anyone pass': string;
|
|
125
133
|
'Field name existed in form': string;
|
|
134
|
+
'Custom form': string;
|
|
135
|
+
'Data record': string;
|
|
126
136
|
'Create record': string;
|
|
127
137
|
'Update record': string;
|
|
128
138
|
'Query record': string;
|
|
129
139
|
'Multiple records': string;
|
|
140
|
+
'Fail on no data': string;
|
|
130
141
|
'Please select collection first': string;
|
|
131
142
|
'Only update records matching conditions': string;
|
|
143
|
+
'Please add at least one condition': string;
|
|
132
144
|
'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;
|
|
133
145
|
'Trigger in executed workflow cannot be modified': string;
|
|
134
146
|
'Node in executed workflow cannot be modified': string;
|
|
@@ -153,5 +165,8 @@ declare const _default: {
|
|
|
153
165
|
'Ignore fail request and continue workflow': string;
|
|
154
166
|
'Workflow todos': string;
|
|
155
167
|
Task: string;
|
|
168
|
+
'Dynamic expression': string;
|
|
169
|
+
'An expression for calculation in each rows': string;
|
|
170
|
+
Unconfigured: string;
|
|
156
171
|
};
|
|
157
172
|
export default _default;
|
|
@@ -31,6 +31,8 @@ var _default = {
|
|
|
31
31
|
'Changed fields': '发生变动的字段',
|
|
32
32
|
'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.': '只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增或删除数据时,任意字段都被认为发生变动。',
|
|
33
33
|
'Only triggers when match conditions': '满足以下条件才触发',
|
|
34
|
+
'Preload associations': '预加载关联数据',
|
|
35
|
+
'Only configured association field could be accessed in following nodes': '仅已配置的关系数据可以在后续节点中被访问',
|
|
34
36
|
'Schedule event': '定时任务',
|
|
35
37
|
'Trigger mode': '触发模式',
|
|
36
38
|
'Based on certain date': '自定义时间',
|
|
@@ -64,7 +66,8 @@ var _default = {
|
|
|
64
66
|
'Arithmetic calculation': '算术运算',
|
|
65
67
|
'String operation': '字符串',
|
|
66
68
|
'System variables': '系统变量',
|
|
67
|
-
'
|
|
69
|
+
'System time': '系统时间',
|
|
70
|
+
'Date variables': '日期变量',
|
|
68
71
|
'Executed at': '执行于',
|
|
69
72
|
'Queueing': '队列中',
|
|
70
73
|
'On going': '进行中',
|
|
@@ -86,6 +89,11 @@ var _default = {
|
|
|
86
89
|
'Extended types': '扩展类型',
|
|
87
90
|
'Node type': '节点类型',
|
|
88
91
|
'Calculation': '运算',
|
|
92
|
+
'Expression type': '表达式类型',
|
|
93
|
+
'Static': '静态',
|
|
94
|
+
'Dynamic': '动态',
|
|
95
|
+
'Select dynamic expression': '选择动态表达式',
|
|
96
|
+
'Variable datasource': '变量数据源',
|
|
89
97
|
'Calculation engine': '运算引擎',
|
|
90
98
|
'Basic': '基础',
|
|
91
99
|
'Calculation expression': '运算表达式',
|
|
@@ -129,12 +137,16 @@ var _default = {
|
|
|
129
137
|
'Any pass': '任意通过',
|
|
130
138
|
'Anyone pass': '任何一人通过即通过',
|
|
131
139
|
'Field name existed in form': '表单中已有对应标识的字段',
|
|
140
|
+
'Custom form': '自定义表单',
|
|
141
|
+
'Data record': '数据记录',
|
|
132
142
|
'Create record': '新增数据',
|
|
133
143
|
'Update record': '更新数据',
|
|
134
144
|
'Query record': '查询数据',
|
|
135
145
|
'Multiple records': '多条数据',
|
|
146
|
+
'Fail on no data': '无数据时报错',
|
|
136
147
|
'Please select collection first': '请先选择数据表',
|
|
137
148
|
'Only update records matching conditions': '只更新满足条件的数据',
|
|
149
|
+
'Please add at least one condition': '请添加至少一个条件',
|
|
138
150
|
'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.': '未被赋值的字段将被设置为默认值,没有默认值的设置为空值。',
|
|
139
151
|
'Trigger in executed workflow cannot be modified': '已经执行过工作流的触发器不能被修改',
|
|
140
152
|
'Node in executed workflow cannot be modified': '已经执行过工作流中的节点不能被修改',
|
|
@@ -158,6 +170,9 @@ var _default = {
|
|
|
158
170
|
'"Content-Type" only support "application/json", and no need to specify': '"Content-Type" 请求头仅支持 "application/json",无需填写',
|
|
159
171
|
'Ignore fail request and continue workflow': '忽略失败的请求并继续工作流',
|
|
160
172
|
'Workflow todos': '工作流待办',
|
|
161
|
-
'Task': '任务'
|
|
173
|
+
'Task': '任务',
|
|
174
|
+
'Dynamic expression': '动态表达式',
|
|
175
|
+
'An expression for calculation in each rows': '每行数据计算规则不同时使用',
|
|
176
|
+
'Unconfigured': '未配置'
|
|
162
177
|
};
|
|
163
178
|
exports.default = _default;
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { SchemaInitializerItemOptions } from '@nocobase/client';
|
|
2
2
|
import { useWorkflowVariableOptions } from '../variable';
|
|
3
3
|
import { RadioWithTooltip } from '../components/RadioWithTooltip';
|
|
4
|
+
declare function useWorkflowVariableEntityOptions(): {
|
|
5
|
+
label: any;
|
|
6
|
+
value: any;
|
|
7
|
+
key: any;
|
|
8
|
+
children: any;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}[];
|
|
4
11
|
declare const _default: {
|
|
5
12
|
title: string;
|
|
6
13
|
type: string;
|
|
7
14
|
group: string;
|
|
8
15
|
fieldset: {
|
|
9
|
-
|
|
16
|
+
dynamic: {
|
|
17
|
+
type: string;
|
|
18
|
+
'x-component': string;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
engine: {
|
|
10
22
|
type: string;
|
|
11
23
|
title: string;
|
|
12
|
-
name: string;
|
|
13
24
|
'x-decorator': string;
|
|
14
25
|
'x-component': string;
|
|
15
26
|
'x-component-props': {
|
|
@@ -17,11 +28,18 @@ declare const _default: {
|
|
|
17
28
|
};
|
|
18
29
|
required: boolean;
|
|
19
30
|
default: string;
|
|
31
|
+
'x-reactions': {
|
|
32
|
+
dependencies: string[];
|
|
33
|
+
fulfill: {
|
|
34
|
+
state: {
|
|
35
|
+
visible: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
20
39
|
};
|
|
21
|
-
|
|
40
|
+
expression: {
|
|
22
41
|
type: string;
|
|
23
42
|
title: string;
|
|
24
|
-
name: string;
|
|
25
43
|
'x-decorator': string;
|
|
26
44
|
'x-component': string;
|
|
27
45
|
'x-component-props': {
|
|
@@ -30,27 +48,58 @@ declare const _default: {
|
|
|
30
48
|
"x-validator"(value: any, rules: any, { form }: {
|
|
31
49
|
form: any;
|
|
32
50
|
}): string;
|
|
33
|
-
'x-reactions': {
|
|
51
|
+
'x-reactions': ({
|
|
52
|
+
dependencies: string[];
|
|
53
|
+
fulfill: {
|
|
54
|
+
state: {
|
|
55
|
+
visible: string;
|
|
56
|
+
};
|
|
57
|
+
schema?: undefined;
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
34
60
|
dependencies: string[];
|
|
35
61
|
fulfill: {
|
|
36
62
|
schema: {
|
|
37
63
|
description: string;
|
|
38
64
|
};
|
|
65
|
+
state?: undefined;
|
|
39
66
|
};
|
|
40
|
-
};
|
|
67
|
+
})[];
|
|
41
68
|
required: boolean;
|
|
42
69
|
};
|
|
70
|
+
scope: {
|
|
71
|
+
type: string;
|
|
72
|
+
title: string;
|
|
73
|
+
'x-decorator': string;
|
|
74
|
+
'x-component': string;
|
|
75
|
+
'x-component-props': {
|
|
76
|
+
scope: string;
|
|
77
|
+
};
|
|
78
|
+
'x-reactions': {
|
|
79
|
+
dependencies: string[];
|
|
80
|
+
fulfill: {
|
|
81
|
+
state: {
|
|
82
|
+
visible: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
43
87
|
};
|
|
44
88
|
view: {};
|
|
45
89
|
scope: {
|
|
46
90
|
useWorkflowVariableOptions: typeof useWorkflowVariableOptions;
|
|
47
|
-
|
|
91
|
+
useWorkflowVariableEntityOptions: typeof useWorkflowVariableEntityOptions;
|
|
92
|
+
renderEngineReference: (key: string) => JSX.Element;
|
|
48
93
|
};
|
|
49
94
|
components: {
|
|
50
95
|
CalculationResult({ dataSource }: {
|
|
51
96
|
dataSource: any;
|
|
52
97
|
}): string | JSX.Element;
|
|
53
98
|
RadioWithTooltip: typeof RadioWithTooltip;
|
|
99
|
+
DynamicConfig: ({ value, onChange }: {
|
|
100
|
+
value: any;
|
|
101
|
+
onChange: any;
|
|
102
|
+
}) => JSX.Element;
|
|
54
103
|
};
|
|
55
104
|
getOptions(config: any, types: any): any[];
|
|
56
105
|
useInitializers(node: any): SchemaInitializerItemOptions;
|