treege 3.0.0-beta.30 → 3.0.0-beta.31
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/README.md +1 -3
- package/dist/ThemeContext-Cw-S1U8B.js +990 -0
- package/dist/editor/constants/inputTypeIcons.d.ts +3 -0
- package/dist/editor/features/TreegeEditor/nodes/components/InputTypeBadge.d.ts +7 -0
- package/dist/editor/features/TreegeEditor/nodes/components/NodeMoreMenu.d.ts +6 -0
- package/dist/editor/features/TreegeEditor/nodes/components/OptionsEditor.d.ts +7 -0
- package/dist/editor/features/TreegeEditor/nodes/components/RequiredBadge.d.ts +6 -0
- package/dist/editor/hooks/useFlowActions.d.ts +1 -0
- package/dist/editor/utils/inputTypeIcon.d.ts +6 -0
- package/dist/{editor-DnrJgSrC.js → editor-Bs1sHj4p.js} +898 -714
- package/dist/editor.js +2 -2
- package/dist/main.js +4 -4
- package/dist/renderer/features/TreegeRenderer/native/components/DefaultInputs.d.ts +1 -6
- package/dist/renderer/features/TreegeRenderer/native/components/DefaultUI.d.ts +1 -1
- package/dist/{renderer-MCPhNlp1.js → renderer-CsU2Y0iu.js} +92 -45
- package/dist/renderer-native.js +143 -55
- package/dist/renderer.js +3 -3
- package/dist/{separator-gO82kpxa.js → separator-B9rc85M6.js} +3 -2
- package/dist/shared/components/ui/alert-dialog.d.ts +1 -1
- package/dist/shared/components/ui/button.d.ts +1 -1
- package/dist/shared/components/ui/collapsible.d.ts +1 -1
- package/dist/shared/components/ui/command.d.ts +1 -1
- package/dist/shared/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/shared/components/ui/form.d.ts +1 -1
- package/dist/shared/components/ui/popover.d.ts +1 -1
- package/dist/shared/components/ui/sheet.d.ts +1 -1
- package/dist/shared/components/ui/tooltip.d.ts +1 -1
- package/dist/shared/locales/ar.json.d.ts +7 -1
- package/dist/shared/locales/de.json.d.ts +8 -2
- package/dist/shared/locales/en.json.d.ts +8 -2
- package/dist/shared/locales/es.json.d.ts +8 -2
- package/dist/shared/locales/fr.json.d.ts +8 -2
- package/dist/shared/locales/it.json.d.ts +8 -2
- package/dist/shared/locales/pt.json.d.ts +8 -2
- package/dist/shared/types/node.d.ts +10 -2
- package/dist/{useRenderNode-B_GPMTPf.js → useRenderNode-IL6mmCOS.js} +1 -1
- package/package.json +5 -5
- package/dist/ThemeContext-D49eu_oE.js +0 -1472
- package/dist/editor/features/TreegeEditor/nodes/components/NodeTypeBadge.d.ts +0 -8
- package/dist/editor/features/TreegeEditor/nodes/components/OpenSheetButton.d.ts +0 -6
- package/dist/editor/features/TreegeEditor/nodes/components/SubTypeBadge.d.ts +0 -8
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Sonstige",
|
|
9
9
|
"retry": "Erneut versuchen",
|
|
10
10
|
"save": "Speichern",
|
|
11
|
+
"settings": "Einstellungen",
|
|
11
12
|
"submit": "Senden",
|
|
12
13
|
"toggle": "Umschalten"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Fügen Sie Eingabefelder vor diesem Knoten hinzu, um sie zu referenzieren",
|
|
138
139
|
"addMapping": "Zuordnung hinzufügen",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Option hinzufügen",
|
|
140
141
|
"advancedConfiguration": "Erweiterte Konfiguration",
|
|
141
142
|
"defaultChecked": "Standardmäßig aktiviert",
|
|
142
143
|
"defaultValuesCommaSeparated": "Standardwerte (durch Kommas getrennt)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "Keine übergeordneten Felder verfügbar",
|
|
158
159
|
"objectMapping": "Objektzuordnung",
|
|
159
160
|
"objectMappingDesc": "Eigenschaften des Quellobjekts auf eine neue Struktur abbilden",
|
|
161
|
+
"optional": "Optional",
|
|
162
|
+
"optionDescription": "Beschreibung",
|
|
160
163
|
"optionImageAdd": "Bild hinzufügen",
|
|
161
164
|
"optionImageError": "Bild konnte nicht verarbeitet werden.",
|
|
162
165
|
"optionImageInvalid": "Nicht unterstütztes Bildformat.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "In Zahl konvertieren",
|
|
189
192
|
"transformString": "In String konvertieren",
|
|
190
193
|
"transformType": "Transformationstyp",
|
|
191
|
-
"validation": "Validierung"
|
|
194
|
+
"validation": "Validierung",
|
|
195
|
+
"variant": "Variante",
|
|
196
|
+
"variantCard": "Karte",
|
|
197
|
+
"variantDefault": "Standard"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Knoten löschen",
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Other",
|
|
9
9
|
"retry": "Retry",
|
|
10
10
|
"save": "Save",
|
|
11
|
+
"settings": "Settings",
|
|
11
12
|
"submit": "Submit",
|
|
12
13
|
"toggle": "Toggle"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Add input fields before this node to reference them",
|
|
138
139
|
"addMapping": "Add Mapping",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Add option",
|
|
140
141
|
"advancedConfiguration": "Advanced Configuration",
|
|
141
142
|
"defaultChecked": "Default Checked",
|
|
142
143
|
"defaultValuesCommaSeparated": "Default Values (comma-separated)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "No parent fields available",
|
|
158
159
|
"objectMapping": "Object Mapping",
|
|
159
160
|
"objectMappingDesc": "Map properties from the source object to a new structure",
|
|
161
|
+
"optional": "Optional",
|
|
162
|
+
"optionDescription": "Description",
|
|
160
163
|
"optionImageAdd": "Add image",
|
|
161
164
|
"optionImageError": "Unable to process image.",
|
|
162
165
|
"optionImageInvalid": "Unsupported image format.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "Convert to Number",
|
|
189
192
|
"transformString": "Convert to String",
|
|
190
193
|
"transformType": "Transform Type",
|
|
191
|
-
"validation": "Validation"
|
|
194
|
+
"validation": "Validation",
|
|
195
|
+
"variant": "Variant",
|
|
196
|
+
"variantCard": "Card",
|
|
197
|
+
"variantDefault": "Default"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Delete node",
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Otro",
|
|
9
9
|
"retry": "Reintentar",
|
|
10
10
|
"save": "Guardar",
|
|
11
|
+
"settings": "Configuración",
|
|
11
12
|
"submit": "Enviar",
|
|
12
13
|
"toggle": "Alternar"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Agregue campos de entrada antes de este nodo para referenciarlos",
|
|
138
139
|
"addMapping": "Agregar mapeo",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Agregar opción",
|
|
140
141
|
"advancedConfiguration": "Configuración avanzada",
|
|
141
142
|
"defaultChecked": "Marcado por defecto",
|
|
142
143
|
"defaultValuesCommaSeparated": "Valores predeterminados (separados por comas)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "No hay campos principales disponibles",
|
|
158
159
|
"objectMapping": "Mapeo de objetos",
|
|
159
160
|
"objectMappingDesc": "Mapear las propiedades del objeto de origen a una nueva estructura",
|
|
161
|
+
"optional": "Opcional",
|
|
162
|
+
"optionDescription": "Descripción",
|
|
160
163
|
"optionImageAdd": "Agregar imagen",
|
|
161
164
|
"optionImageError": "No se pudo procesar la imagen.",
|
|
162
165
|
"optionImageInvalid": "Formato de imagen no compatible.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "Convertir a número",
|
|
189
192
|
"transformString": "Convertir a texto",
|
|
190
193
|
"transformType": "Tipo de transformación",
|
|
191
|
-
"validation": "Validación"
|
|
194
|
+
"validation": "Validación",
|
|
195
|
+
"variant": "Variante",
|
|
196
|
+
"variantCard": "Tarjeta",
|
|
197
|
+
"variantDefault": "Predeterminado"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Eliminar nodo",
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Autre",
|
|
9
9
|
"retry": "Réessayer",
|
|
10
10
|
"save": "Enregistrer",
|
|
11
|
+
"settings": "Paramètres",
|
|
11
12
|
"submit": "Soumettre",
|
|
12
13
|
"toggle": "Basculer"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Ajoutez des champs de saisie avant ce nœud pour les référencer",
|
|
138
139
|
"addMapping": "Ajouter un mappage",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Ajouter une option",
|
|
140
141
|
"advancedConfiguration": "Configuration avancée",
|
|
141
142
|
"defaultChecked": "Coché par défaut",
|
|
142
143
|
"defaultValuesCommaSeparated": "Valeurs par défaut (séparées par des virgules)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "Aucun champ parent disponible",
|
|
158
159
|
"objectMapping": "Mappage d'objet",
|
|
159
160
|
"objectMappingDesc": "Mapper les propriétés de l'objet source vers une nouvelle structure",
|
|
161
|
+
"optional": "Optionnel",
|
|
162
|
+
"optionDescription": "Description",
|
|
160
163
|
"optionImageAdd": "Ajouter une image",
|
|
161
164
|
"optionImageError": "Impossible de traiter l'image.",
|
|
162
165
|
"optionImageInvalid": "Format d'image non pris en charge.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "Convertir en nombre",
|
|
189
192
|
"transformString": "Convertir en chaîne",
|
|
190
193
|
"transformType": "Type de transformation",
|
|
191
|
-
"validation": "Validation"
|
|
194
|
+
"validation": "Validation",
|
|
195
|
+
"variant": "Variante",
|
|
196
|
+
"variantCard": "Carte",
|
|
197
|
+
"variantDefault": "Par défaut"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Supprimer le nœud",
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Altro",
|
|
9
9
|
"retry": "Riprova",
|
|
10
10
|
"save": "Salva",
|
|
11
|
+
"settings": "Impostazioni",
|
|
11
12
|
"submit": "Invia",
|
|
12
13
|
"toggle": "Attiva/Disattiva"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Aggiungi campi di input prima di questo nodo per riferirli",
|
|
138
139
|
"addMapping": "Aggiungi mappatura",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Aggiungi opzione",
|
|
140
141
|
"advancedConfiguration": "Configurazione avanzata",
|
|
141
142
|
"defaultChecked": "Selezionato per impostazione predefinita",
|
|
142
143
|
"defaultValuesCommaSeparated": "Valori predefiniti (separati da virgole)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "Nessun campo genitore disponibile",
|
|
158
159
|
"objectMapping": "Mappatura oggetto",
|
|
159
160
|
"objectMappingDesc": "Mappa le proprietà dell'oggetto sorgente su una nuova struttura",
|
|
161
|
+
"optional": "Opzionale",
|
|
162
|
+
"optionDescription": "Descrizione",
|
|
160
163
|
"optionImageAdd": "Aggiungi immagine",
|
|
161
164
|
"optionImageError": "Impossibile elaborare l'immagine.",
|
|
162
165
|
"optionImageInvalid": "Formato immagine non supportato.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "Converti in numero",
|
|
189
192
|
"transformString": "Converti in stringa",
|
|
190
193
|
"transformType": "Tipo di trasformazione",
|
|
191
|
-
"validation": "Validazione"
|
|
194
|
+
"validation": "Validazione",
|
|
195
|
+
"variant": "Variante",
|
|
196
|
+
"variantCard": "Scheda",
|
|
197
|
+
"variantDefault": "Predefinito"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Elimina nodo",
|
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"other": "Outro",
|
|
9
9
|
"retry": "Tentar novamente",
|
|
10
10
|
"save": "Salvar",
|
|
11
|
+
"settings": "Configurações",
|
|
11
12
|
"submit": "Enviar",
|
|
12
13
|
"toggle": "Alternar"
|
|
13
14
|
},
|
|
@@ -136,7 +137,7 @@ declare const _default: {
|
|
|
136
137
|
"inputNodeForm": {
|
|
137
138
|
"addInputFieldsBeforeReference": "Adicione campos de entrada antes deste nó para referenciá-los",
|
|
138
139
|
"addMapping": "Adicionar mapeamento",
|
|
139
|
-
"addOption": "
|
|
140
|
+
"addOption": "Adicionar opção",
|
|
140
141
|
"advancedConfiguration": "Configuração avançada",
|
|
141
142
|
"defaultChecked": "Marcado por padrão",
|
|
142
143
|
"defaultValuesCommaSeparated": "Valores padrão (separados por vírgulas)",
|
|
@@ -157,6 +158,8 @@ declare const _default: {
|
|
|
157
158
|
"noParentFieldsAvailable": "Nenhum campo pai disponível",
|
|
158
159
|
"objectMapping": "Mapeamento de objeto",
|
|
159
160
|
"objectMappingDesc": "Mapear as propriedades do objeto de origem para uma nova estrutura",
|
|
161
|
+
"optional": "Opcional",
|
|
162
|
+
"optionDescription": "Descrição",
|
|
160
163
|
"optionImageAdd": "Adicionar imagem",
|
|
161
164
|
"optionImageError": "Não foi possível processar a imagem.",
|
|
162
165
|
"optionImageInvalid": "Formato de imagem não suportado.",
|
|
@@ -188,7 +191,10 @@ declare const _default: {
|
|
|
188
191
|
"transformNumber": "Converter para número",
|
|
189
192
|
"transformString": "Converter para string",
|
|
190
193
|
"transformType": "Tipo de transformação",
|
|
191
|
-
"validation": "Validação"
|
|
194
|
+
"validation": "Validação",
|
|
195
|
+
"variant": "Variante",
|
|
196
|
+
"variantCard": "Cartão",
|
|
197
|
+
"variantDefault": "Padrão"
|
|
192
198
|
},
|
|
193
199
|
"nodeActionsSheet": {
|
|
194
200
|
"deleteNode": "Excluir nó",
|
|
@@ -18,13 +18,17 @@ export type InputOption = {
|
|
|
18
18
|
* The label of the option, which can be translated
|
|
19
19
|
*/
|
|
20
20
|
label: Translatable;
|
|
21
|
+
/**
|
|
22
|
+
* Optional secondary description, shown under the label (translatable)
|
|
23
|
+
*/
|
|
24
|
+
description?: Translatable;
|
|
21
25
|
/**
|
|
22
26
|
* Whether the option is disabled and cannot be selected
|
|
23
27
|
*/
|
|
24
28
|
disabled?: boolean;
|
|
25
29
|
/**
|
|
26
|
-
* Optional image for the option, stored as base64 data URL.
|
|
27
|
-
* Currently displayed by radio inputs; automatically resized and compressed
|
|
30
|
+
* Optional image for the option, stored as base64 data URL or remote URL.
|
|
31
|
+
* Currently displayed by radio inputs; uploads are automatically resized and compressed.
|
|
28
32
|
*/
|
|
29
33
|
image?: string;
|
|
30
34
|
};
|
|
@@ -185,6 +189,10 @@ export type InputNodeData = BaseNodeData & {
|
|
|
185
189
|
* Whether multiple selections are allowed (for select and checkbox types)
|
|
186
190
|
*/
|
|
187
191
|
multiple?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Visual variant (currently used by radio inputs)
|
|
194
|
+
*/
|
|
195
|
+
variant?: "default" | "card";
|
|
188
196
|
/**
|
|
189
197
|
* Whether past dates should be disabled (for date and daterange types)
|
|
190
198
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, r as o, s, u as c } from "./ThemeContext-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, r as o, s, u as c } from "./ThemeContext-Cw-S1U8B.js";
|
|
2
2
|
import { Fragment as l, createContext as u, useCallback as d, useContext as f, useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
3
3
|
import _ from "dompurify";
|
|
4
4
|
//#region src/renderer/context/TreegeConfigContext.tsx
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "treege",
|
|
3
3
|
"description": "Powerful form generator",
|
|
4
4
|
"license": "ISC",
|
|
5
|
-
"version": "3.0.0-beta.
|
|
5
|
+
"version": "3.0.0-beta.31",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/main.d.ts",
|
|
8
8
|
"module": "./dist/main.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"react-native": "./dist/renderer-native.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"repository": "git@github.com:
|
|
34
|
+
"repository": "git@github.com:MickaelAustoni/treege.git",
|
|
35
35
|
"author": "Mickaël Austoni",
|
|
36
36
|
"bugs": {
|
|
37
|
-
"url": "https://github.com/
|
|
37
|
+
"url": "https://github.com/MickaelAustoni/treege/issues"
|
|
38
38
|
},
|
|
39
|
-
"homepage": "https://github.com/
|
|
39
|
+
"homepage": "https://github.com/MickaelAustoni/treege",
|
|
40
40
|
"scripts": {
|
|
41
41
|
"dev": "vite",
|
|
42
42
|
"build": "vite build",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@babel/runtime": "^7.28.4",
|
|
85
|
+
"@biomejs/biome": "^2.3.6",
|
|
85
86
|
"@tailwindcss/vite": "^4.1.13",
|
|
86
87
|
"@testing-library/dom": "^10.4.1",
|
|
87
88
|
"@testing-library/jest-dom": "^6.9.1",
|
|
88
89
|
"@testing-library/react": "^16.3.0",
|
|
89
90
|
"@testing-library/react-hooks": "^8.0.1",
|
|
90
|
-
"@tracktor/biome-config-react": "^1.4.0",
|
|
91
91
|
"@types/dompurify": "^3.2.0",
|
|
92
92
|
"@types/google.maps": "^3.58.1",
|
|
93
93
|
"@types/node": "^24.5.2",
|