treege 3.0.0-beta.47 → 3.0.0-beta.49
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/DefaultInputs-CLKy3v8A.js +1761 -0
- package/dist/ThemeContext-Ct1JesKT.js +1353 -0
- package/dist/editor/constants/edgeTypes.d.ts +2 -2
- package/dist/editor/constants/nodeTypes.d.ts +0 -1
- package/dist/editor/features/TreegeEditor/edges/ConditionalEdge.d.ts +1 -1
- package/dist/editor/features/TreegeEditor/edges/DefaultEdge.d.ts +1 -1
- package/dist/editor/features/TreegeEditor/inputs/SelectNodeGroup.d.ts +16 -1
- package/dist/editor/features/TreegeEditor/nodes/TreegeNode.d.ts +2 -2
- package/dist/editor/features/TreegeEditor/nodes/components/BottomHandleDropdown.d.ts +3 -1
- package/dist/editor/features/TreegeEditor/nodes/components/NodeGroupBadge.d.ts +2 -1
- package/dist/editor/features/TreegeEditor/nodes/components/NodeInputPreview.d.ts +6 -1
- package/dist/editor/features/TreegeEditor/nodes/components/NodeLabelInput.d.ts +2 -1
- package/dist/editor/features/TreegeEditor/nodes/layout/NodeWrapper.d.ts +3 -1
- package/dist/editor/features/TreegeEditor/panel/MultiSelectionPanel.d.ts +7 -0
- package/dist/editor/hooks/useAvailableParentFields.d.ts +13 -0
- package/dist/editor/hooks/useFlowActions.d.ts +1 -0
- package/dist/editor/hooks/useIsStackedEdge.d.ts +8 -0
- package/dist/editor/hooks/useStackPosition.d.ts +2 -0
- package/dist/editor/utils/dagreLayout.d.ts +0 -12
- package/dist/editor/utils/stackPositionIndex.d.ts +9 -0
- package/dist/editor-DwBsZEzm.js +5495 -0
- package/dist/editor.js +2 -2
- package/dist/main.js +4 -4
- package/dist/renderer/context/TreegeRendererContext.d.ts +2 -4
- package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +3 -4
- package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultCheckboxInput.d.ts +1 -1
- package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultRadioInput.d.ts +1 -1
- package/dist/renderer/types/renderer.d.ts +23 -5
- package/dist/renderer/utils/flow.d.ts +1 -18
- package/dist/renderer/utils/step.d.ts +1 -1
- package/dist/renderer-native.js +950 -950
- package/dist/renderer.js +3 -3
- package/dist/shared/constants/node.d.ts +0 -1
- package/dist/shared/locales/ar.json.d.ts +10 -8
- package/dist/shared/locales/de.json.d.ts +10 -8
- package/dist/shared/locales/en.json.d.ts +10 -8
- package/dist/shared/locales/es.json.d.ts +10 -8
- package/dist/shared/locales/fr.json.d.ts +10 -8
- package/dist/shared/locales/it.json.d.ts +10 -8
- package/dist/shared/locales/pt.json.d.ts +10 -8
- package/dist/shared/types/node.d.ts +1 -7
- package/dist/shared/utils/inputTypeGuards.d.ts +7 -0
- package/dist/shared/utils/nodeTypeGuards.d.ts +1 -6
- package/package.json +1 -1
- package/dist/DefaultInputs-UkiUaJcf.js +0 -1734
- package/dist/ThemeContext-CNsS53ku.js +0 -1454
- package/dist/editor/features/TreegeEditor/forms/FlowNodeForm.d.ts +0 -2
- package/dist/editor/features/TreegeEditor/nodes/components/NodeOptions.d.ts +0 -12
- package/dist/editor/hooks/useEdgesSelection.d.ts +0 -11
- package/dist/editor-DrGQB__b.js +0 -5313
package/dist/renderer.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
3
|
-
export {
|
|
1
|
+
import { A as e, L as t, S as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, k as d, l as f, m as p, n as m, o as h, p as g, s as _, t as v, u as y, x as b } from "./ThemeContext-Ct1JesKT.js";
|
|
2
|
+
import { C as x, E as S, S as C, T as w, _ as T, a as E, b as D, d as O, f as k, i as A, l as j, m as M, n as N, p as P, r as F, s as I, t as L, u as R, v as z, w as B, x as V, y as H } from "./DefaultInputs-CLKy3v8A.js";
|
|
3
|
+
export { S as DefaultAddressInput, w as DefaultAutocompleteInput, B as DefaultCheckboxInput, x as DefaultDateInput, C as DefaultDateRangeInput, V as DefaultFileInput, D as DefaultHiddenInput, H as DefaultHttpInput, z as DefaultNumberInput, T as DefaultPasswordInput, M as DefaultRadioInput, P as DefaultSelectInput, I as DefaultSwitchInput, E as DefaultTextAreaInput, A as DefaultTextInput, F as DefaultTimeInput, N as DefaultTimeRangeInput, R as Divider, v as ThemeProvider, O as Title, y as TreegeConfigProvider, j as TreegeRenderer, s as applyReferenceTransformation, g as calculateReferenceFieldUpdates, p as checkFormFieldHasValue, l as convertFormValuesToNamedFormat, L as defaultInputRenderers, k as defaultUI, a as evaluateCondition, f as evaluateConditions, i as fileToSerializable, b as filesToSerializable, r as findStartNode, h as getFlowRenderState, t as getTranslatedText, c as isFieldEmpty, _ as isStartNode, d as sanitize, e as sanitizeHttpResponse, n as serializableToFile, m as useTheme, o as useTreegeConfig, u as useTreegeRenderer };
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "مسح التدفق",
|
|
20
20
|
"clearSuccess": "تم مسح التدفق!",
|
|
21
21
|
"clearSuccessDesc": "تم إزالة جميع العقد والحواف.",
|
|
22
|
-
"copyFailed": "فشل نسخ معرف التدفق",
|
|
23
22
|
"downloadSuccess": "تم التنزيل بنجاح.",
|
|
24
23
|
"downloadSuccessDesc": "تم تصدير التدفق بنجاح.",
|
|
25
24
|
"exportJson": "تصدير JSON",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "تم نسخ معرف التدفق!",
|
|
28
26
|
"importJson": "استيراد JSON",
|
|
29
27
|
"importSuccess": "تم الاستيراد بنجاح!",
|
|
30
28
|
"importSuccessDesc": "تم استيراد التدفق بنجاح.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "إضافة شرط",
|
|
91
|
+
"advanced": "متقدم",
|
|
93
92
|
"and": "و",
|
|
93
|
+
"basic": "أساسي",
|
|
94
|
+
"basicConditionLabel": "إذا كان \"{name}\" يساوي",
|
|
94
95
|
"condition": "شرط",
|
|
95
96
|
"conditions": "الشروط",
|
|
96
97
|
"conditionsAnd": "شروط (و)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "أو",
|
|
112
113
|
"removeCondition": "إزالة الشرط",
|
|
113
114
|
"selectField": "اختر حقلاً",
|
|
115
|
+
"selectValue": "اختر قيمة",
|
|
114
116
|
"value": "قيمة",
|
|
115
117
|
"valuePlaceholder": "مثال: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "التسمية",
|
|
119
|
-
"targetId": "معرف الوجهة",
|
|
120
|
-
"targetIdDesc": "المعرف الفريد للتدفق المستهدف."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "التسمية"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "بطاقة",
|
|
236
233
|
"variantDefault": "افتراضي"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "إلغاء التحديد",
|
|
237
|
+
"deleteSelected": "حذف العقد المحددة",
|
|
238
|
+
"nodesSelected": "عقدة محددة"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "حذف العقدة",
|
|
240
242
|
"deleteNodeConfirm": "هل أنت متأكد من أنك تريد حذف هذه العقدة؟",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "تم إنشاء المجموعة \"{groupName}\" بنجاح.",
|
|
296
298
|
"groupName": "اسم المجموعة",
|
|
297
299
|
"groupNamePlaceholder": "مثال: الخطوة 1 - معلومات شخصية",
|
|
300
|
+
"mixed": "مجموعات مختلطة",
|
|
298
301
|
"newGroup": "مجموعة جديدة",
|
|
299
302
|
"newGroupDescription": "سيتم إنشاء المجموعة حول العقدة المحددة.",
|
|
300
303
|
"noGroup": "بدون مجموعة",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "نوع العقدة",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "تدفق خارجي",
|
|
307
309
|
"group": "مجموعة",
|
|
308
310
|
"input": "سؤال",
|
|
309
311
|
"ui": "عنصر تصميم"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Löschen",
|
|
20
20
|
"clearSuccess": "Fluss geleert!",
|
|
21
21
|
"clearSuccessDesc": "Alle Knoten und Kanten wurden entfernt.",
|
|
22
|
-
"copyFailed": "Kopieren der Flow‑ID fehlgeschlagen",
|
|
23
22
|
"downloadSuccess": "Download erfolgreich.",
|
|
24
23
|
"downloadSuccessDesc": "Der Ablauf wurde erfolgreich exportiert.",
|
|
25
24
|
"exportJson": "JSON exportieren",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "Flow‑ID kopiert!",
|
|
28
26
|
"importJson": "JSON importieren",
|
|
29
27
|
"importSuccess": "Import erfolgreich!",
|
|
30
28
|
"importSuccessDesc": "Der Ablauf wurde erfolgreich importiert.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Bedingung hinzufügen",
|
|
91
|
+
"advanced": "Erweitert",
|
|
93
92
|
"and": "UND",
|
|
93
|
+
"basic": "Einfach",
|
|
94
|
+
"basicConditionLabel": "Wenn \"{name}\" gleich",
|
|
94
95
|
"condition": "Bedingung",
|
|
95
96
|
"conditions": "Bedingungen",
|
|
96
97
|
"conditionsAnd": "Bedingungen (UND)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "ODER",
|
|
112
113
|
"removeCondition": "Bedingung entfernen",
|
|
113
114
|
"selectField": "Feld auswählen",
|
|
115
|
+
"selectValue": "Wert auswählen",
|
|
114
116
|
"value": "Wert",
|
|
115
117
|
"valuePlaceholder": "z.B.: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Bezeichnung",
|
|
119
|
-
"targetId": "Ziel-ID",
|
|
120
|
-
"targetIdDesc": "Eindeutige Kennung des Zielablaufs."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Bezeichnung"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Karte",
|
|
236
233
|
"variantDefault": "Standard"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Auswahl aufheben",
|
|
237
|
+
"deleteSelected": "Ausgewählte Knoten löschen",
|
|
238
|
+
"nodesSelected": "Knoten ausgewählt"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Knoten löschen",
|
|
240
242
|
"deleteNodeConfirm": "Sind Sie sicher, dass Sie diesen Knoten löschen möchten?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "Die Gruppe \"{groupName}\" wurde erfolgreich erstellt.",
|
|
296
298
|
"groupName": "Gruppenname",
|
|
297
299
|
"groupNamePlaceholder": "z.B.: Schritt 1 - Persönliche Informationen",
|
|
300
|
+
"mixed": "Gemischte Gruppen",
|
|
298
301
|
"newGroup": "Neue Gruppe",
|
|
299
302
|
"newGroupDescription": "Die Gruppe wird um den ausgewählten Knoten herum erstellt.",
|
|
300
303
|
"noGroup": "Keine Gruppe",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Knotentyp",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "Externer Ablauf",
|
|
307
309
|
"group": "Gruppe",
|
|
308
310
|
"input": "Frage",
|
|
309
311
|
"ui": "Designelement"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Clear",
|
|
20
20
|
"clearSuccess": "Flow cleared!",
|
|
21
21
|
"clearSuccessDesc": "All nodes and edges have been removed.",
|
|
22
|
-
"copyFailed": "Failed to copy Flow ID",
|
|
23
22
|
"downloadSuccess": "Download successfully.",
|
|
24
23
|
"downloadSuccessDesc": "The flow has been exported successfully.",
|
|
25
24
|
"exportJson": "Export JSON",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "Flow ID copied!",
|
|
28
26
|
"importJson": "Import JSON",
|
|
29
27
|
"importSuccess": "Import successful!",
|
|
30
28
|
"importSuccessDesc": "The flow has been imported successfully.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Add condition",
|
|
91
|
+
"advanced": "Advanced",
|
|
93
92
|
"and": "AND",
|
|
93
|
+
"basic": "Basic",
|
|
94
|
+
"basicConditionLabel": "If \"{name}\" equals",
|
|
94
95
|
"condition": "Condition",
|
|
95
96
|
"conditions": "Conditions",
|
|
96
97
|
"conditionsAnd": "conditions (AND)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "OR",
|
|
112
113
|
"removeCondition": "Remove condition",
|
|
113
114
|
"selectField": "Select a field",
|
|
115
|
+
"selectValue": "Select a value",
|
|
114
116
|
"value": "Value",
|
|
115
117
|
"valuePlaceholder": "Ex: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Label",
|
|
119
|
-
"targetId": "Target id",
|
|
120
|
-
"targetIdDesc": "Unique identifier of the target flow."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Label"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Card",
|
|
236
233
|
"variantDefault": "Default"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Clear selection",
|
|
237
|
+
"deleteSelected": "Delete selected nodes",
|
|
238
|
+
"nodesSelected": "nodes selected"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Delete node",
|
|
240
242
|
"deleteNodeConfirm": "Are you sure you want to delete this node?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "The group \"{groupName}\" has been created successfully.",
|
|
296
298
|
"groupName": "Group name",
|
|
297
299
|
"groupNamePlaceholder": "Ex: Step 1 - Personal info",
|
|
300
|
+
"mixed": "Mixed groups",
|
|
298
301
|
"newGroup": "New group",
|
|
299
302
|
"newGroupDescription": "The group will be created around the selected node.",
|
|
300
303
|
"noGroup": "No group",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Node Type",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "External Flow",
|
|
307
309
|
"group": "Group",
|
|
308
310
|
"input": "Question",
|
|
309
311
|
"ui": "Design Element"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Limpiar",
|
|
20
20
|
"clearSuccess": "¡Flujo limpiado!",
|
|
21
21
|
"clearSuccessDesc": "Todos los nodos y aristas han sido eliminados.",
|
|
22
|
-
"copyFailed": "No se pudo copiar el ID del flujo",
|
|
23
22
|
"downloadSuccess": "Descarga exitosa.",
|
|
24
23
|
"downloadSuccessDesc": "El flujo se ha exportado correctamente.",
|
|
25
24
|
"exportJson": "Exportar JSON",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "ID del flujo copiado!",
|
|
28
26
|
"importJson": "Importar JSON",
|
|
29
27
|
"importSuccess": "¡Importación exitosa!",
|
|
30
28
|
"importSuccessDesc": "El flujo se ha importado correctamente.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Agregar condición",
|
|
91
|
+
"advanced": "Avanzado",
|
|
93
92
|
"and": "Y",
|
|
93
|
+
"basic": "Básico",
|
|
94
|
+
"basicConditionLabel": "Si \"{name}\" es",
|
|
94
95
|
"condition": "Condición",
|
|
95
96
|
"conditions": "Condiciones",
|
|
96
97
|
"conditionsAnd": "condiciones (Y)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "O",
|
|
112
113
|
"removeCondition": "Eliminar condición",
|
|
113
114
|
"selectField": "Seleccionar un campo",
|
|
115
|
+
"selectValue": "Seleccionar un valor",
|
|
114
116
|
"value": "Valor",
|
|
115
117
|
"valuePlaceholder": "Ej: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Etiqueta",
|
|
119
|
-
"targetId": "ID de destino",
|
|
120
|
-
"targetIdDesc": "Identificador único del flujo de destino."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Etiqueta"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Tarjeta",
|
|
236
233
|
"variantDefault": "Predeterminado"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Borrar selección",
|
|
237
|
+
"deleteSelected": "Eliminar nodos seleccionados",
|
|
238
|
+
"nodesSelected": "nodos seleccionados"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Eliminar nodo",
|
|
240
242
|
"deleteNodeConfirm": "¿Estás seguro de que quieres eliminar este nodo?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "El grupo \"{groupName}\" se ha creado correctamente.",
|
|
296
298
|
"groupName": "Nombre del grupo",
|
|
297
299
|
"groupNamePlaceholder": "Ej: Paso 1 - Información personal",
|
|
300
|
+
"mixed": "Grupos mixtos",
|
|
298
301
|
"newGroup": "Nuevo grupo",
|
|
299
302
|
"newGroupDescription": "El grupo se creará alrededor del nodo seleccionado.",
|
|
300
303
|
"noGroup": "Sin grupo",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Tipo de nodo",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "Flujo externo",
|
|
307
309
|
"group": "Grupo",
|
|
308
310
|
"input": "Pregunta",
|
|
309
311
|
"ui": "Elemento de diseño"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Supprimer",
|
|
20
20
|
"clearSuccess": "Flux vidé !",
|
|
21
21
|
"clearSuccessDesc": "Tous les nœuds et arêtes ont été supprimés.",
|
|
22
|
-
"copyFailed": "Échec de la copie de l'ID du flux",
|
|
23
22
|
"downloadSuccess": "Téléchargement réussi.",
|
|
24
23
|
"downloadSuccessDesc": "Le flux a été exporté avec succès.",
|
|
25
24
|
"exportJson": "Exporter JSON",
|
|
26
25
|
"globalHeaders": "Headers globaux",
|
|
27
|
-
"idCopied": "ID du flux copié !",
|
|
28
26
|
"importJson": "Importer JSON",
|
|
29
27
|
"importSuccess": "Importation réussie !",
|
|
30
28
|
"importSuccessDesc": "Le flux a été importé avec succès.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Ajouter une condition",
|
|
91
|
+
"advanced": "Avancé",
|
|
93
92
|
"and": "ET",
|
|
93
|
+
"basic": "Simple",
|
|
94
|
+
"basicConditionLabel": "Si \"{name}\" vaut",
|
|
94
95
|
"condition": "Condition",
|
|
95
96
|
"conditions": "Conditions",
|
|
96
97
|
"conditionsAnd": "conditions (ET)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "OU",
|
|
112
113
|
"removeCondition": "Supprimer la condition",
|
|
113
114
|
"selectField": "Sélectionner un champ",
|
|
115
|
+
"selectValue": "Sélectionner une valeur",
|
|
114
116
|
"value": "Valeur",
|
|
115
117
|
"valuePlaceholder": "Ex : 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Libellé",
|
|
119
|
-
"targetId": "ID cible",
|
|
120
|
-
"targetIdDesc": "Identifiant unique du flux cible."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Libellé"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Carte",
|
|
236
233
|
"variantDefault": "Par défaut"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Effacer la sélection",
|
|
237
|
+
"deleteSelected": "Supprimer les nœuds sélectionnés",
|
|
238
|
+
"nodesSelected": "nœuds sélectionnés"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Supprimer le nœud",
|
|
240
242
|
"deleteNodeConfirm": "Êtes-vous sûr de vouloir supprimer ce nœud ?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "Le groupe \"{groupName}\" a été créé avec succès.",
|
|
296
298
|
"groupName": "Nom du groupe",
|
|
297
299
|
"groupNamePlaceholder": "Ex : Étape 1 - Informations personnelles",
|
|
300
|
+
"mixed": "Groupes mixtes",
|
|
298
301
|
"newGroup": "Nouveau groupe",
|
|
299
302
|
"newGroupDescription": "Le groupe sera créé autour du nœud sélectionné.",
|
|
300
303
|
"noGroup": "Aucun groupe",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Type de nœud",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "Flux externe",
|
|
307
309
|
"group": "Groupe",
|
|
308
310
|
"input": "Question",
|
|
309
311
|
"ui": "Élément de design"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Pulisci",
|
|
20
20
|
"clearSuccess": "Flusso pulito!",
|
|
21
21
|
"clearSuccessDesc": "Tutti i nodi e gli archi sono stati rimossi.",
|
|
22
|
-
"copyFailed": "Impossibile copiare l'ID del flusso",
|
|
23
22
|
"downloadSuccess": "Download riuscito.",
|
|
24
23
|
"downloadSuccessDesc": "Il flusso è stato esportato con successo.",
|
|
25
24
|
"exportJson": "Esporta JSON",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "ID del flusso copiato!",
|
|
28
26
|
"importJson": "Importa JSON",
|
|
29
27
|
"importSuccess": "Importazione riuscita!",
|
|
30
28
|
"importSuccessDesc": "Il flusso è stato importato con successo.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Aggiungi condizione",
|
|
91
|
+
"advanced": "Avanzato",
|
|
93
92
|
"and": "E",
|
|
93
|
+
"basic": "Base",
|
|
94
|
+
"basicConditionLabel": "Se \"{name}\" è",
|
|
94
95
|
"condition": "Condizione",
|
|
95
96
|
"conditions": "Condizioni",
|
|
96
97
|
"conditionsAnd": "condizioni (E)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "O",
|
|
112
113
|
"removeCondition": "Rimuovi condizione",
|
|
113
114
|
"selectField": "Seleziona un campo",
|
|
115
|
+
"selectValue": "Seleziona un valore",
|
|
114
116
|
"value": "Valore",
|
|
115
117
|
"valuePlaceholder": "Es: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Etichetta",
|
|
119
|
-
"targetId": "ID di destinazione",
|
|
120
|
-
"targetIdDesc": "Identificatore univoco del flusso di destinazione."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Etichetta"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Scheda",
|
|
236
233
|
"variantDefault": "Predefinito"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Cancella selezione",
|
|
237
|
+
"deleteSelected": "Elimina nodi selezionati",
|
|
238
|
+
"nodesSelected": "nodi selezionati"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Elimina nodo",
|
|
240
242
|
"deleteNodeConfirm": "Sei sicuro di voler eliminare questo nodo?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "Il gruppo \"{groupName}\" è stato creato con successo.",
|
|
296
298
|
"groupName": "Nome del gruppo",
|
|
297
299
|
"groupNamePlaceholder": "Es: Passo 1 - Informazioni personali",
|
|
300
|
+
"mixed": "Gruppi misti",
|
|
298
301
|
"newGroup": "Nuovo gruppo",
|
|
299
302
|
"newGroupDescription": "Il gruppo verrà creato attorno al nodo selezionato.",
|
|
300
303
|
"noGroup": "Nessun gruppo",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Tipo di nodo",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "Flusso esterno",
|
|
307
309
|
"group": "Gruppo",
|
|
308
310
|
"input": "Domanda",
|
|
309
311
|
"ui": "Elemento di design"
|
|
@@ -19,12 +19,10 @@ declare const _default: {
|
|
|
19
19
|
"clear": "Limpar",
|
|
20
20
|
"clearSuccess": "Fluxo limpo!",
|
|
21
21
|
"clearSuccessDesc": "Todos os nós e arestas foram removidos.",
|
|
22
|
-
"copyFailed": "Falha ao copiar o ID do fluxo",
|
|
23
22
|
"downloadSuccess": "Download bem-sucedido.",
|
|
24
23
|
"downloadSuccessDesc": "O fluxo foi exportado com sucesso.",
|
|
25
24
|
"exportJson": "Exportar JSON",
|
|
26
25
|
"globalHeaders": "Global headers",
|
|
27
|
-
"idCopied": "ID do fluxo copiado!",
|
|
28
26
|
"importJson": "Importar JSON",
|
|
29
27
|
"importSuccess": "Importação bem-sucedida!",
|
|
30
28
|
"importSuccessDesc": "O fluxo foi importado com sucesso.",
|
|
@@ -90,7 +88,10 @@ declare const _default: {
|
|
|
90
88
|
},
|
|
91
89
|
"conditionalEdge": {
|
|
92
90
|
"addCondition": "Adicionar condição",
|
|
91
|
+
"advanced": "Avançado",
|
|
93
92
|
"and": "E",
|
|
93
|
+
"basic": "Básico",
|
|
94
|
+
"basicConditionLabel": "Se \"{name}\" for igual a",
|
|
94
95
|
"condition": "Condição",
|
|
95
96
|
"conditions": "Condições",
|
|
96
97
|
"conditionsAnd": "condições (E)",
|
|
@@ -111,14 +112,10 @@ declare const _default: {
|
|
|
111
112
|
"or": "OU",
|
|
112
113
|
"removeCondition": "Remover condição",
|
|
113
114
|
"selectField": "Selecione um campo",
|
|
115
|
+
"selectValue": "Selecione um valor",
|
|
114
116
|
"value": "Valor",
|
|
115
117
|
"valuePlaceholder": "Ex: 18"
|
|
116
118
|
},
|
|
117
|
-
"flowNodeForm": {
|
|
118
|
-
"label": "Rótulo",
|
|
119
|
-
"targetId": "ID de destino",
|
|
120
|
-
"targetIdDesc": "Identificador único do fluxo de destino."
|
|
121
|
-
},
|
|
122
119
|
"groupNodeForm": {
|
|
123
120
|
"label": "Rótulo"
|
|
124
121
|
},
|
|
@@ -235,6 +232,11 @@ declare const _default: {
|
|
|
235
232
|
"variantCard": "Cartão",
|
|
236
233
|
"variantDefault": "Padrão"
|
|
237
234
|
},
|
|
235
|
+
"multiSelectionPanel": {
|
|
236
|
+
"clearSelection": "Limpar seleção",
|
|
237
|
+
"deleteSelected": "Excluir nós selecionados",
|
|
238
|
+
"nodesSelected": "nós selecionados"
|
|
239
|
+
},
|
|
238
240
|
"nodeActionsSheet": {
|
|
239
241
|
"deleteNode": "Excluir nó",
|
|
240
242
|
"deleteNodeConfirm": "Tem certeza de que deseja excluir este nó?",
|
|
@@ -295,6 +297,7 @@ declare const _default: {
|
|
|
295
297
|
"groupCreatedDesc": "O grupo \"{groupName}\" foi criado com sucesso.",
|
|
296
298
|
"groupName": "Nome do grupo",
|
|
297
299
|
"groupNamePlaceholder": "Ex: Passo 1 - Informações pessoais",
|
|
300
|
+
"mixed": "Grupos mistos",
|
|
298
301
|
"newGroup": "Novo grupo",
|
|
299
302
|
"newGroupDescription": "O grupo será criado em torno do nó selecionado.",
|
|
300
303
|
"noGroup": "Sem grupo",
|
|
@@ -303,7 +306,6 @@ declare const _default: {
|
|
|
303
306
|
"selectNodeType": {
|
|
304
307
|
"nodeType": "Tipo de nó",
|
|
305
308
|
"options": {
|
|
306
|
-
"flow": "Fluxo externo",
|
|
307
309
|
"group": "Grupo",
|
|
308
310
|
"input": "Pergunta",
|
|
309
311
|
"ui": "Elemento de design"
|
|
@@ -38,12 +38,6 @@ export type BaseNodeData = {
|
|
|
38
38
|
*/
|
|
39
39
|
label?: Translatable;
|
|
40
40
|
};
|
|
41
|
-
export type FlowNodeData = BaseNodeData & {
|
|
42
|
-
/**
|
|
43
|
-
* The ID of the target node to connect to
|
|
44
|
-
*/
|
|
45
|
-
targetId?: string;
|
|
46
|
-
};
|
|
47
41
|
export type GroupNodeData = BaseNodeData & {
|
|
48
42
|
/**
|
|
49
43
|
* A label for the group node, which can be translated
|
|
@@ -272,7 +266,7 @@ export type UINodeData = BaseNodeData & {
|
|
|
272
266
|
/**
|
|
273
267
|
* Union type representing all possible node data types in the Treege system
|
|
274
268
|
*/
|
|
275
|
-
export type TreegeNodeData = InputNodeData | UINodeData |
|
|
269
|
+
export type TreegeNodeData = InputNodeData | UINodeData | GroupNodeData;
|
|
276
270
|
/**
|
|
277
271
|
* A TreegeNode represents a node in the flowchart with specific data and properties
|
|
278
272
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputNodeData, TreegeNodeData } from '../types/node';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard: narrows the node `data` to an `InputNodeData` whose type
|
|
4
|
+
* supports an option list. After a truthy check, `data.options`,
|
|
5
|
+
* `data.optionsSource`, etc. are accessible without casts.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isOptionsInputData: (data: TreegeNodeData | undefined) => data is InputNodeData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node } from '@xyflow/react';
|
|
2
|
-
import {
|
|
2
|
+
import { GroupNodeData, InputNodeData, TreegeNode, UINodeData } from '../types/node';
|
|
3
3
|
/**
|
|
4
4
|
* Type guard to check if a node is an InputNode
|
|
5
5
|
* @param node
|
|
@@ -10,11 +10,6 @@ export declare const isInputNode: (node: TreegeNode | undefined) => node is Node
|
|
|
10
10
|
* @param node
|
|
11
11
|
*/
|
|
12
12
|
export declare const isUINode: (node: TreegeNode | undefined) => node is Node<UINodeData, "ui">;
|
|
13
|
-
/**
|
|
14
|
-
* Type guard to check if a node is a FlowNode
|
|
15
|
-
* @param node
|
|
16
|
-
*/
|
|
17
|
-
export declare const isFlowNode: (node: TreegeNode | undefined) => node is Node<FlowNodeData, "flow">;
|
|
18
13
|
/**
|
|
19
14
|
* Type guard to check if a node is a GroupNode
|
|
20
15
|
* @param node
|