treege 3.0.0-beta.37 → 3.0.0-beta.39
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/ThemeContext-PGG6Ht__.js +813 -0
- package/dist/editor/constants/nodeSpacing.d.ts +13 -0
- package/dist/editor/hooks/useAutoLayout.d.ts +15 -0
- package/dist/editor/utils/dagreLayout.d.ts +17 -0
- package/dist/{editor-D3GqztXU.js → editor-CAj1BX2r.js} +459 -379
- package/dist/editor.js +2 -2
- package/dist/main.js +4 -4
- package/dist/{renderer-JJGxelGQ.js → renderer-BOjgk8F8.js} +2 -2
- package/dist/renderer-native.js +2 -2
- package/dist/renderer.js +3 -3
- package/dist/shared/locales/ar.json.d.ts +1 -0
- package/dist/shared/locales/de.json.d.ts +1 -0
- package/dist/shared/locales/en.json.d.ts +1 -0
- package/dist/shared/locales/es.json.d.ts +1 -0
- package/dist/shared/locales/fr.json.d.ts +1 -0
- package/dist/shared/locales/it.json.d.ts +1 -0
- package/dist/shared/locales/pt.json.d.ts +1 -0
- package/dist/shared/types/edge.d.ts +6 -0
- package/dist/{useRenderNode-BTzgPipn.js → useRenderNode-OgRe_mb5.js} +1 -1
- package/package.json +2 -1
- package/dist/ThemeContext-DBFles56.js +0 -812
package/dist/editor.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./editor-
|
|
2
|
-
import { n as t, t as n } from "./ThemeContext-
|
|
1
|
+
import { t as e } from "./editor-CAj1BX2r.js";
|
|
2
|
+
import { n as t, t as n } from "./ThemeContext-PGG6Ht__.js";
|
|
3
3
|
export { n as ThemeProvider, e as TreegeEditor, t as useTheme };
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./editor-
|
|
2
|
-
import { c as t, d as n, l as r, n as i, o as a, s as o, t as s, u as c } from "./ThemeContext-
|
|
3
|
-
import { C as l, _ as u, a as d, b as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, p as x, r as S, u as C, v as w, w as T, x as E, y as D } from "./useRenderNode-
|
|
4
|
-
import { C as O, S as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, x as Y, y as X } from "./renderer-
|
|
1
|
+
import { t as e } from "./editor-CAj1BX2r.js";
|
|
2
|
+
import { c as t, d as n, l as r, n as i, o as a, s as o, t as s, u as c } from "./ThemeContext-PGG6Ht__.js";
|
|
3
|
+
import { C as l, _ as u, a as d, b as f, d as p, f as m, g as h, h as g, i as _, l as v, m as y, n as b, p as x, r as S, u as C, v as w, w as T, x as E, y as D } from "./useRenderNode-OgRe_mb5.js";
|
|
4
|
+
import { C as O, S as k, _ as A, a as j, b as M, c as N, d as P, f as F, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q, v as J, x as Y, y as X } from "./renderer-BOjgk8F8.js";
|
|
5
5
|
export { k as DefaultAddressInput, Y as DefaultAutocompleteInput, M as DefaultCheckboxInput, X as DefaultDateInput, J as DefaultDateRangeInput, A as DefaultFileInput, O as DefaultGroup, I as DefaultHiddenInput, L as DefaultHttpInput, B as DefaultNumberInput, U as DefaultPasswordInput, F as DefaultRadioInput, P as DefaultSelectInput, q as DefaultSwitchInput, z as DefaultTextAreaInput, N as DefaultTextInput, G as DefaultTimeInput, H as DefaultTimeRangeInput, V as Divider, s as ThemeProvider, W as Title, l as TreegeConfigProvider, e as TreegeEditor, K as TreegeRenderer, u as applyReferenceTransformation, w as calculateReferenceFieldUpdates, D as checkFormFieldHasValue, f as convertFormValuesToNamedFormat, j as defaultInputRenderers, R as defaultUI, x as evaluateCondition, y as evaluateConditions, b as fileToSerializable, S as filesToSerializable, v as findStartNode, C as getFlowRenderState, a as getStaticTranslations, o as getTranslatedText, E as isFieldEmpty, t as isFlowNode, r as isGroupNode, c as isInputNode, p as isStartNode, n as isUINode, m as mergeFlows, g as sanitize, h as sanitizeHttpResponse, _ as serializableToFile, i as useTheme, T as useTreegeConfig, d as useTreegeRenderer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./ThemeContext-
|
|
1
|
+
import { t as e } from "./ThemeContext-PGG6Ht__.js";
|
|
2
2
|
import { A as t, C as n, D as r, E as i, F as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, a as p, b as m, c as h, i as g, j as _, k as v, l as y, n as b, o as ee, r as te, s as x, t as S, v as C, w, y as T } from "./separator-Cdfv5nIR.js";
|
|
3
|
-
import { S as E, a as D, b as ne, c as O, d as k, g as re, n as A, o as j, r as M, s as N, t as P, w as F } from "./useRenderNode-
|
|
3
|
+
import { S as E, a as D, b as ne, c as O, d as k, g as re, n as A, o as j, r as M, s as N, t as P, w as F } from "./useRenderNode-OgRe_mb5.js";
|
|
4
4
|
import { Fragment as ie, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
5
5
|
import { Check as ae, ChevronDownIcon as R, ChevronLeftIcon as oe, ChevronRightIcon as z, ChevronsUpDown as se, CircleIcon as ce, Loader2 as le, MapPin as ue } from "lucide-react";
|
|
6
6
|
import * as de from "react";
|
package/dist/renderer-native.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, s as t, t as n } from "./ThemeContext-
|
|
2
|
-
import { C as r, S as i, _ as a, a as o, b as s, c, d as l, f as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./useRenderNode-
|
|
1
|
+
import { n as e, s as t, t as n } from "./ThemeContext-PGG6Ht__.js";
|
|
2
|
+
import { C as r, S as i, _ as a, a as o, b as s, c, d as l, f as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./useRenderNode-OgRe_mb5.js";
|
|
3
3
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
4
4
|
import { useCallback as ee, useEffect as D, useMemo as O, useRef as k, useState as A } from "react";
|
|
5
5
|
import { ActivityIndicator as j, Alert as M, FlatList as N, Image as P, Modal as F, ScrollView as I, StyleSheet as L, Switch as te, Text as R, TextInput as z, TouchableOpacity as B, View as V } from "react-native";
|
package/dist/renderer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, s as t, t as n } from "./ThemeContext-
|
|
2
|
-
import { C as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, p as h, r as g, u as _, v, w as y, x as b, y as x } from "./useRenderNode-
|
|
3
|
-
import { C as S, S as C, _ as w, a as T, b as E, c as D, d as O, f as k, g as A, h as j, i as M, l as N, m as P, n as F, o as I, p as L, r as R, s as z, t as B, u as V, v as H, x as U, y as W } from "./renderer-
|
|
1
|
+
import { n as e, s as t, t as n } from "./ThemeContext-PGG6Ht__.js";
|
|
2
|
+
import { C as r, _ as i, a, b as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, p as h, r as g, u as _, v, w as y, x as b, y as x } from "./useRenderNode-OgRe_mb5.js";
|
|
3
|
+
import { C as S, S as C, _ as w, a as T, b as E, c as D, d as O, f as k, g as A, h as j, i as M, l as N, m as P, n as F, o as I, p as L, r as R, s as z, t as B, u as V, v as H, x as U, y as W } from "./renderer-BOjgk8F8.js";
|
|
4
4
|
export { C as DefaultAddressInput, U as DefaultAutocompleteInput, E as DefaultCheckboxInput, W as DefaultDateInput, H as DefaultDateRangeInput, w as DefaultFileInput, S as DefaultGroup, A as DefaultHiddenInput, j as DefaultHttpInput, P as DefaultNumberInput, L as DefaultPasswordInput, k as DefaultRadioInput, O as DefaultSelectInput, V as DefaultSwitchInput, N as DefaultTextAreaInput, D as DefaultTextInput, z as DefaultTimeInput, I as DefaultTimeRangeInput, F as Divider, n as ThemeProvider, R as Title, r as TreegeConfigProvider, B as TreegeRenderer, i as applyReferenceTransformation, v as calculateReferenceFieldUpdates, x as checkFormFieldHasValue, o as convertFormValuesToNamedFormat, T as defaultInputRenderers, M as defaultUI, h as evaluateCondition, p as evaluateConditions, m as fileToSerializable, g as filesToSerializable, f as findStartNode, _ as getFlowRenderState, t as getTranslatedText, b as isFieldEmpty, s as isStartNode, c as mergeFlows, u as sanitize, l as sanitizeHttpResponse, d as serializableToFile, e as useTheme, y as useTreegeConfig, a as useTreegeRenderer };
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "شروط (و)",
|
|
70
70
|
"conditionsMixed": "شروط (مختلطة)",
|
|
71
71
|
"conditionsOr": "شروط (أو)",
|
|
72
|
+
"defineCondition": "تعريف شرط",
|
|
72
73
|
"displayConditions": "عرض الشروط",
|
|
73
74
|
"displayConditionsDesc": "سيتم عرض هذا الحقل إذا تم استيفاء الشروط التالية.",
|
|
74
75
|
"fallback": "افتراضي",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "Bedingungen (UND)",
|
|
70
70
|
"conditionsMixed": "Bedingungen (gemischt)",
|
|
71
71
|
"conditionsOr": "Bedingungen (ODER)",
|
|
72
|
+
"defineCondition": "Bedingung definieren",
|
|
72
73
|
"displayConditions": "Bedingungen anzeigen",
|
|
73
74
|
"displayConditionsDesc": "Dieses Feld wird angezeigt, wenn die folgenden Bedingungen erfüllt sind.",
|
|
74
75
|
"fallback": "Standard",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "conditions (AND)",
|
|
70
70
|
"conditionsMixed": "conditions (mixed)",
|
|
71
71
|
"conditionsOr": "conditions (OR)",
|
|
72
|
+
"defineCondition": "Define a condition",
|
|
72
73
|
"displayConditions": "Display conditions",
|
|
73
74
|
"displayConditionsDesc": "This field will be shown if the following conditions are met.",
|
|
74
75
|
"fallback": "Fallback",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "condiciones (Y)",
|
|
70
70
|
"conditionsMixed": "condiciones (mixtas)",
|
|
71
71
|
"conditionsOr": "condiciones (O)",
|
|
72
|
+
"defineCondition": "Definir una condición",
|
|
72
73
|
"displayConditions": "Mostrar condiciones",
|
|
73
74
|
"displayConditionsDesc": "Este campo se mostrará si se cumplen las siguientes condiciones.",
|
|
74
75
|
"fallback": "Predeterminado",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "conditions (ET)",
|
|
70
70
|
"conditionsMixed": "conditions (mixtes)",
|
|
71
71
|
"conditionsOr": "conditions (OU)",
|
|
72
|
+
"defineCondition": "Définir une condition",
|
|
72
73
|
"displayConditions": "Afficher les conditions",
|
|
73
74
|
"displayConditionsDesc": "Ce champ sera affiché si les conditions suivantes sont remplies.",
|
|
74
75
|
"fallback": "Par défaut",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "condizioni (E)",
|
|
70
70
|
"conditionsMixed": "condizioni (miste)",
|
|
71
71
|
"conditionsOr": "condizioni (O)",
|
|
72
|
+
"defineCondition": "Definisci una condizione",
|
|
72
73
|
"displayConditions": "Mostra condizioni",
|
|
73
74
|
"displayConditionsDesc": "Questo campo verrà mostrato se vengono soddisfatte le seguenti condizioni.",
|
|
74
75
|
"fallback": "Predefinito",
|
|
@@ -69,6 +69,7 @@ declare const _default: {
|
|
|
69
69
|
"conditionsAnd": "condições (E)",
|
|
70
70
|
"conditionsMixed": "condições (mistas)",
|
|
71
71
|
"conditionsOr": "condições (OU)",
|
|
72
|
+
"defineCondition": "Definir uma condição",
|
|
72
73
|
"displayConditions": "Exibir condições",
|
|
73
74
|
"displayConditionsDesc": "Este campo será exibido se as seguintes condições forem atendidas.",
|
|
74
75
|
"fallback": "Padrão",
|
|
@@ -31,4 +31,10 @@ export type ConditionalEdgeData = {
|
|
|
31
31
|
* Fallback edges are followed when no other conditional edges match
|
|
32
32
|
*/
|
|
33
33
|
isFallback?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Set to `true` the first time the user commits a change through the
|
|
36
|
+
* condition editor. Used only by the editor for visual state — the
|
|
37
|
+
* renderer ignores it.
|
|
38
|
+
*/
|
|
39
|
+
configured?: boolean;
|
|
34
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, r as a, s as o, u as s } from "./ThemeContext-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, r as a, s as o, u as s } from "./ThemeContext-PGG6Ht__.js";
|
|
2
2
|
import { jsx as c } from "react/jsx-runtime";
|
|
3
3
|
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";
|
|
4
4
|
import _ from "dompurify";
|
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.39",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/main.d.ts",
|
|
8
8
|
"module": "./dist/main.js",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"test:watch": "vitest"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@dagrejs/dagre": "^3.0.0",
|
|
53
54
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
54
55
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
55
56
|
"@radix-ui/react-dialog": "^1.1.15",
|