treege 3.0.0-beta.86 → 3.0.0-beta.88
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 +112 -56
- package/dist/{editor-BK8Mbi-D.js → editor-BPx-285N.js} +2 -2
- package/dist/editor.js +1 -1
- package/dist/main.js +4 -4
- package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +1 -1
- package/dist/renderer/features/TreegeRenderer/web/TreegeRenderer.d.ts +1 -1
- package/dist/renderer/features/TreegeViewer/utils/viewerFields.d.ts +26 -2
- package/dist/renderer/features/TreegeViewer/web/TreegeViewer.d.ts +41 -27
- package/dist/renderer/hooks/useSubmitHandler.d.ts +3 -2
- package/dist/renderer/types/renderer.d.ts +24 -0
- package/dist/renderer/utils/extraPayload.d.ts +21 -0
- package/dist/renderer/utils/submit.d.ts +3 -2
- package/dist/renderer-Bpgwbsub.js +446 -0
- package/dist/renderer-native.js +167 -166
- package/dist/renderer.js +3 -3
- package/dist/{useRenderNode-DQ5lvXuj.js → useRenderNode-CgDdKXTw.js} +203 -192
- package/package.json +1 -1
- package/dist/renderer-8xCEZin9.js +0 -424
package/dist/renderer-native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as e, F as t, G as n, J as r, M as i, N as a, P as o, R as s, T as c, _ as l, a as u, b as d, c as f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, v as w, w as T, x as E, y as D, z as ee } from "./ThemeContext-BnPOFQC7.js";
|
|
2
|
-
import { a as O, c as k, i as A, l as
|
|
3
|
-
import { useCallback as
|
|
2
|
+
import { a as O, c as k, i as A, l as te, n as ne, o as re, r as ie, s as ae, t as j } from "./useRenderNode-CgDdKXTw.js";
|
|
3
|
+
import { useCallback as oe, useEffect as M, useMemo as se, useRef as N, useState as P } from "react";
|
|
4
4
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
5
5
|
import { ActivityIndicator as ce, Alert as R, Animated as le, FlatList as ue, Image as de, Modal as fe, ScrollView as pe, StyleSheet as z, Switch as me, Text as B, TextInput as he, TouchableOpacity as V, View as H } from "react-native";
|
|
6
6
|
//#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
|
|
@@ -53,12 +53,12 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
53
53
|
return console.error("Google Places fetch error:", e), [];
|
|
54
54
|
}
|
|
55
55
|
}, Se = ({ field: e, extra: n }) => {
|
|
56
|
-
let [r, i] = P(""), [a, o] = P([]), [s, c] = P(!1), [l, u] = P(!1), { value: d, placeholder: f, id: p, name: m } = e, { InputLabel: h, node: g, setValue: _, error: v, label: b, helperText: x } = n, { language: S, googleApiKey: C } = ee(), w = t(), { colors: T } = y(), E =
|
|
56
|
+
let [r, i] = P(""), [a, o] = P([]), [s, c] = P(!1), [l, u] = P(!1), { value: d, placeholder: f, id: p, name: m } = e, { InputLabel: h, node: g, setValue: _, error: v, label: b, helperText: x } = n, { language: S, googleApiKey: C } = ee(), w = t(), { colors: T } = y(), E = oe((e) => {
|
|
57
57
|
_(e.value), i(""), c(!1), o([]);
|
|
58
58
|
}, [_]), D = () => {
|
|
59
59
|
c(!1);
|
|
60
60
|
};
|
|
61
|
-
return
|
|
61
|
+
return M(() => {
|
|
62
62
|
if (!r || r.trim().length < 3) {
|
|
63
63
|
o([]), u(!1);
|
|
64
64
|
return;
|
|
@@ -771,7 +771,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
771
771
|
isCurrentMonth: !1
|
|
772
772
|
});
|
|
773
773
|
return r;
|
|
774
|
-
}, [b, S]), E =
|
|
774
|
+
}, [b, S]), E = oe((e) => {
|
|
775
775
|
c.data.disablePast && e < v || (l(e.toISOString()), i(!1));
|
|
776
776
|
}, [
|
|
777
777
|
c.data.disablePast,
|
|
@@ -1071,7 +1071,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1071
1071
|
isCurrentMonth: !1
|
|
1072
1072
|
});
|
|
1073
1073
|
return r;
|
|
1074
|
-
}, [C, T]), O =
|
|
1074
|
+
}, [C, T]), O = oe((e) => {
|
|
1075
1075
|
l.data.disablePast && e < S || (a ? (u([e.toISOString(), v?.toISOString()]), o(!1)) : (u(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), i(!1), o(!0)));
|
|
1076
1076
|
}, [
|
|
1077
1077
|
l.data.disablePast,
|
|
@@ -1084,7 +1084,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1084
1084
|
T === 0 ? (E(11), w(C - 1)) : E(T - 1);
|
|
1085
1085
|
}, A = () => {
|
|
1086
1086
|
T === 11 ? (E(0), w(C + 1)) : E(T + 1);
|
|
1087
|
-
},
|
|
1087
|
+
}, te = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), ne = (e) => l.data.disablePast ? e < S : !1, re = (e) => _ && v ? e >= _ && e <= v : !1, ie = (e) => {
|
|
1088
1088
|
if (!(_ || v)) return !1;
|
|
1089
1089
|
let t = _ && e.getDate() === _.getDate() && e.getMonth() === _.getMonth() && e.getFullYear() === _.getFullYear(), n = v && e.getDate() === v.getDate() && e.getMonth() === v.getMonth() && e.getFullYear() === v.getFullYear();
|
|
1090
1090
|
return t || n;
|
|
@@ -1114,7 +1114,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1114
1114
|
!_ && { color: h.textMuted }
|
|
1115
1115
|
],
|
|
1116
1116
|
numberOfLines: 1,
|
|
1117
|
-
children:
|
|
1117
|
+
children: te()
|
|
1118
1118
|
}), /* @__PURE__ */ I(B, {
|
|
1119
1119
|
style: q.icon,
|
|
1120
1120
|
children: "📅"
|
|
@@ -1206,7 +1206,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1206
1206
|
style: q.calendar,
|
|
1207
1207
|
contentContainerStyle: q.calendarContent,
|
|
1208
1208
|
renderItem: ({ item: e }) => {
|
|
1209
|
-
let t =
|
|
1209
|
+
let t = ne(e.date), n = re(e.date), r = ie(e.date);
|
|
1210
1210
|
return /* @__PURE__ */ I(V, {
|
|
1211
1211
|
style: [
|
|
1212
1212
|
q.dayCell,
|
|
@@ -1358,7 +1358,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1358
1358
|
marginBottom: 8
|
|
1359
1359
|
}
|
|
1360
1360
|
}), ke = ({ field: e, extra: n }) => {
|
|
1361
|
-
let [r, i] = P(null), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: u, setValue: d, error: f, label: p, helperText: m } = n, { colors: h } = y(), g = t(), _ = D(s), v = u.data.multiple, b =
|
|
1361
|
+
let [r, i] = P(null), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: u, setValue: d, error: f, label: p, helperText: m } = n, { colors: h } = y(), g = t(), _ = D(s), v = u.data.multiple, b = oe(async () => {
|
|
1362
1362
|
if (r) try {
|
|
1363
1363
|
let e = (await r({ allowMultiSelection: v })).map((e) => ({
|
|
1364
1364
|
data: e.uri,
|
|
@@ -1377,11 +1377,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1377
1377
|
v,
|
|
1378
1378
|
d,
|
|
1379
1379
|
g
|
|
1380
|
-
]), x =
|
|
1380
|
+
]), x = oe((e) => {
|
|
1381
1381
|
let t = _.filter((t, n) => n !== e);
|
|
1382
1382
|
d(t.length > 0 ? t : null);
|
|
1383
1383
|
}, [_, d]);
|
|
1384
|
-
return
|
|
1384
|
+
return M(() => {
|
|
1385
1385
|
(async () => {
|
|
1386
1386
|
try {
|
|
1387
1387
|
let { pick: e } = await import("react-native-document-picker");
|
|
@@ -1595,11 +1595,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1595
1595
|
let i = t[r], a = i == null ? "" : String(i);
|
|
1596
1596
|
return n ? encodeURIComponent(a) : a;
|
|
1597
1597
|
}), Ve = ({ field: n, extra: r }) => {
|
|
1598
|
-
let [s, l] = P(!1), [u, d] = P(null), [f, p] = P([]), [m, h] = P(""), [_, v] = P(!1), { value: b, placeholder: x } = n, { InputLabel: C, node: w, setValue: D, error: O, label: k, helperText: A, missingDependencies:
|
|
1598
|
+
let [s, l] = P(!1), [u, d] = P(null), [f, p] = P([]), [m, h] = P(""), [_, v] = P(!1), { value: b, placeholder: x } = n, { InputLabel: C, node: w, setValue: D, error: O, label: k, helperText: A, missingDependencies: te } = r, { formValues: ne, inputNodes: re, headers: ie, baseUrl: ae } = ee(), { colors: j } = y(), { httpConfig: F } = w.data, R = t(), le = N(!1), de = N(!1), pe = N(""), z = N(F), me = N(ne), ge = N(re), _e = N(ie), ve = N(ae), ye = N(D), be = N(null), xe = N(null), Se = N(w.data.normalizeOptionLabels !== !1), U = se(() => F?.url ? Re(F.url) : [], [F?.url]), we = U.length > 0, Te = se(() => U.map((e) => `${e}:${String(ne[e] ?? "")}`).join("|"), [U, ne]), W = se(() => F?.url ? we ? ze(F.url, ne) : !0 : !1, [
|
|
1599
1599
|
F?.url,
|
|
1600
1600
|
we,
|
|
1601
|
-
|
|
1602
|
-
]), Ee =
|
|
1601
|
+
ne
|
|
1602
|
+
]), Ee = oe(async (t) => {
|
|
1603
1603
|
xe.current && xe.current.abort();
|
|
1604
1604
|
let n = new AbortController();
|
|
1605
1605
|
xe.current = n;
|
|
@@ -1653,25 +1653,25 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1653
1653
|
xe.current === n && (l(!1), xe.current = null);
|
|
1654
1654
|
}
|
|
1655
1655
|
}, [R]);
|
|
1656
|
-
if (
|
|
1657
|
-
z.current = F, me.current =
|
|
1656
|
+
if (M(() => {
|
|
1657
|
+
z.current = F, me.current = ne, ge.current = re, _e.current = ie, ve.current = ae, ye.current = D, be.current = Ee, Se.current = w.data.normalizeOptionLabels !== !1;
|
|
1658
1658
|
}, [
|
|
1659
1659
|
F,
|
|
1660
|
-
te,
|
|
1661
1660
|
ne,
|
|
1662
1661
|
re,
|
|
1663
1662
|
ie,
|
|
1663
|
+
ae,
|
|
1664
1664
|
D,
|
|
1665
1665
|
Ee,
|
|
1666
1666
|
w.data.normalizeOptionLabels
|
|
1667
|
-
]),
|
|
1667
|
+
]), M(() => () => {
|
|
1668
1668
|
xe.current && xe.current.abort(), le.current = !1, de.current = !1;
|
|
1669
|
-
}, []),
|
|
1669
|
+
}, []), M(() => {
|
|
1670
1670
|
if (le.current) return;
|
|
1671
1671
|
le.current = !0;
|
|
1672
1672
|
let e = z.current, t = me.current, n = be.current, r = e?.url && ze(e.url, t);
|
|
1673
1673
|
e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Re(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1674
|
-
}, []),
|
|
1674
|
+
}, []), M(() => {
|
|
1675
1675
|
if (!le.current || !we || pe.current === Te || !W) return;
|
|
1676
1676
|
let e = setTimeout(() => {
|
|
1677
1677
|
Ee(), pe.current = Te;
|
|
@@ -1682,7 +1682,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1682
1682
|
we,
|
|
1683
1683
|
W,
|
|
1684
1684
|
Ee
|
|
1685
|
-
]),
|
|
1685
|
+
]), M(() => {
|
|
1686
1686
|
if (!de.current) {
|
|
1687
1687
|
de.current = !0;
|
|
1688
1688
|
return;
|
|
@@ -1700,7 +1700,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1700
1700
|
searchParam: F?.searchParam,
|
|
1701
1701
|
sendAllFormValues: F?.sendAllFormValues,
|
|
1702
1702
|
url: F?.url
|
|
1703
|
-
}), [F])]),
|
|
1703
|
+
}), [F])]), M(() => {
|
|
1704
1704
|
if (!(F?.searchParam && m)) return;
|
|
1705
1705
|
let e = setTimeout(() => {
|
|
1706
1706
|
Ee(m);
|
|
@@ -1722,33 +1722,33 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1722
1722
|
required: w.data.required
|
|
1723
1723
|
}),
|
|
1724
1724
|
/* @__PURE__ */ I(je, {
|
|
1725
|
-
missing:
|
|
1725
|
+
missing: te,
|
|
1726
1726
|
children: /* @__PURE__ */ L(V, {
|
|
1727
1727
|
style: [
|
|
1728
1728
|
Y.trigger,
|
|
1729
1729
|
{
|
|
1730
|
-
backgroundColor:
|
|
1731
|
-
borderColor:
|
|
1730
|
+
backgroundColor: j.input,
|
|
1731
|
+
borderColor: j.border
|
|
1732
1732
|
},
|
|
1733
|
-
O && { borderColor:
|
|
1734
|
-
|
|
1733
|
+
O && { borderColor: j.error },
|
|
1734
|
+
te.length > 0 && { backgroundColor: j.muted }
|
|
1735
1735
|
],
|
|
1736
1736
|
onPress: () => v(!0),
|
|
1737
|
-
disabled:
|
|
1737
|
+
disabled: te.length > 0,
|
|
1738
1738
|
activeOpacity: .7,
|
|
1739
1739
|
children: [
|
|
1740
1740
|
/* @__PURE__ */ I(B, {
|
|
1741
1741
|
style: [
|
|
1742
1742
|
Y.triggerText,
|
|
1743
|
-
{ color:
|
|
1744
|
-
!t && { color:
|
|
1743
|
+
{ color: j.text },
|
|
1744
|
+
!t && { color: j.textMuted }
|
|
1745
1745
|
],
|
|
1746
1746
|
numberOfLines: 1,
|
|
1747
1747
|
children: t?.label || x || R("renderer.defaultHttpInput.search")
|
|
1748
1748
|
}),
|
|
1749
1749
|
n && /* @__PURE__ */ I(ce, {
|
|
1750
1750
|
size: "small",
|
|
1751
|
-
color:
|
|
1751
|
+
color: j.primary,
|
|
1752
1752
|
style: Y.triggerLoader
|
|
1753
1753
|
}),
|
|
1754
1754
|
e ? /* @__PURE__ */ I(V, {
|
|
@@ -1761,12 +1761,12 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1761
1761
|
},
|
|
1762
1762
|
style: Y.clearButton,
|
|
1763
1763
|
children: /* @__PURE__ */ I(B, {
|
|
1764
|
-
style: [Y.clearIcon, { color:
|
|
1764
|
+
style: [Y.clearIcon, { color: j.textMuted }],
|
|
1765
1765
|
children: "✕"
|
|
1766
1766
|
})
|
|
1767
1767
|
}) : null,
|
|
1768
1768
|
/* @__PURE__ */ I(B, {
|
|
1769
|
-
style: [Y.arrow, { color:
|
|
1769
|
+
style: [Y.arrow, { color: j.textMuted }],
|
|
1770
1770
|
children: "▼"
|
|
1771
1771
|
})
|
|
1772
1772
|
]
|
|
@@ -1782,19 +1782,19 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1782
1782
|
activeOpacity: 1,
|
|
1783
1783
|
onPress: () => v(!1),
|
|
1784
1784
|
children: /* @__PURE__ */ L(V, {
|
|
1785
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1785
|
+
style: [Y.modalContent, { backgroundColor: j.card }],
|
|
1786
1786
|
activeOpacity: 1,
|
|
1787
1787
|
onPress: () => {},
|
|
1788
1788
|
children: [
|
|
1789
1789
|
/* @__PURE__ */ L(H, {
|
|
1790
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1790
|
+
style: [Y.modalHeader, { borderBottomColor: j.separator }],
|
|
1791
1791
|
children: [/* @__PURE__ */ I(B, {
|
|
1792
|
-
style: [Y.modalTitle, { color:
|
|
1792
|
+
style: [Y.modalTitle, { color: j.text }],
|
|
1793
1793
|
children: k || x || R("renderer.defaultHttpInput.search")
|
|
1794
1794
|
}), /* @__PURE__ */ I(V, {
|
|
1795
1795
|
onPress: () => v(!1),
|
|
1796
1796
|
children: /* @__PURE__ */ I(B, {
|
|
1797
|
-
style: [Y.closeButton, { color:
|
|
1797
|
+
style: [Y.closeButton, { color: j.textMuted }],
|
|
1798
1798
|
children: "✕"
|
|
1799
1799
|
})
|
|
1800
1800
|
})]
|
|
@@ -1803,12 +1803,12 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1803
1803
|
style: Y.searchContainer,
|
|
1804
1804
|
children: /* @__PURE__ */ I(he, {
|
|
1805
1805
|
style: [Y.searchInput, {
|
|
1806
|
-
backgroundColor:
|
|
1807
|
-
borderColor:
|
|
1808
|
-
color:
|
|
1806
|
+
backgroundColor: j.muted,
|
|
1807
|
+
borderColor: j.border,
|
|
1808
|
+
color: j.text
|
|
1809
1809
|
}],
|
|
1810
1810
|
placeholder: R("renderer.defaultHttpInput.search"),
|
|
1811
|
-
placeholderTextColor:
|
|
1811
|
+
placeholderTextColor: j.textMuted,
|
|
1812
1812
|
value: m,
|
|
1813
1813
|
onChangeText: (e) => {
|
|
1814
1814
|
h(e), d(null);
|
|
@@ -1822,18 +1822,18 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1822
1822
|
style: Y.loadingContainer,
|
|
1823
1823
|
children: /* @__PURE__ */ I(ce, {
|
|
1824
1824
|
size: "small",
|
|
1825
|
-
color:
|
|
1825
|
+
color: j.primary
|
|
1826
1826
|
})
|
|
1827
1827
|
}) : u ? /* @__PURE__ */ L(H, {
|
|
1828
1828
|
style: Y.errorContainer,
|
|
1829
1829
|
children: [/* @__PURE__ */ I(B, {
|
|
1830
|
-
style: [Y.errorText, { color:
|
|
1830
|
+
style: [Y.errorText, { color: j.error }],
|
|
1831
1831
|
children: u
|
|
1832
1832
|
}), /* @__PURE__ */ I(V, {
|
|
1833
1833
|
onPress: () => Ee(m),
|
|
1834
1834
|
style: Y.retryButton,
|
|
1835
1835
|
children: /* @__PURE__ */ I(B, {
|
|
1836
|
-
style: [Y.retryButtonText, { color:
|
|
1836
|
+
style: [Y.retryButtonText, { color: j.primary }],
|
|
1837
1837
|
children: R("renderer.defaultHttpInput.retry")
|
|
1838
1838
|
})
|
|
1839
1839
|
})]
|
|
@@ -1845,14 +1845,14 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1845
1845
|
ListEmptyComponent: /* @__PURE__ */ I(H, {
|
|
1846
1846
|
style: Y.emptyContainer,
|
|
1847
1847
|
children: /* @__PURE__ */ I(B, {
|
|
1848
|
-
style: [Y.emptyText, { color:
|
|
1848
|
+
style: [Y.emptyText, { color: j.textMuted }],
|
|
1849
1849
|
children: R("renderer.defaultHttpInput.noResults")
|
|
1850
1850
|
})
|
|
1851
1851
|
}),
|
|
1852
1852
|
renderItem: ({ item: t }) => {
|
|
1853
1853
|
let n = t.value === e;
|
|
1854
1854
|
return /* @__PURE__ */ L(V, {
|
|
1855
|
-
style: [Y.option, n && { backgroundColor:
|
|
1855
|
+
style: [Y.option, n && { backgroundColor: j.primaryLight }],
|
|
1856
1856
|
onPress: () => {
|
|
1857
1857
|
D(t.value), v(!1);
|
|
1858
1858
|
},
|
|
@@ -1862,7 +1862,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1862
1862
|
description: t.description,
|
|
1863
1863
|
image: t.image
|
|
1864
1864
|
}), n && /* @__PURE__ */ I(B, {
|
|
1865
|
-
style: [Y.checkmark, { color:
|
|
1865
|
+
style: [Y.checkmark, { color: j.primary }],
|
|
1866
1866
|
children: "✓"
|
|
1867
1867
|
})]
|
|
1868
1868
|
});
|
|
@@ -1873,17 +1873,17 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1873
1873
|
})
|
|
1874
1874
|
}),
|
|
1875
1875
|
O && /* @__PURE__ */ I(B, {
|
|
1876
|
-
style: [Y.error, { color:
|
|
1876
|
+
style: [Y.error, { color: j.error }],
|
|
1877
1877
|
children: O
|
|
1878
1878
|
}),
|
|
1879
1879
|
A && !O && /* @__PURE__ */ I(B, {
|
|
1880
|
-
style: [Y.helperText, { color:
|
|
1880
|
+
style: [Y.helperText, { color: j.textMuted }],
|
|
1881
1881
|
children: A
|
|
1882
1882
|
})
|
|
1883
1883
|
]
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
|
-
let n = s && F?.showLoading, r =
|
|
1886
|
+
let n = s && F?.showLoading, r = te.length === 0 && f.length === 0 && !n ? u ?? R("renderer.defaultHttpInput.noDataAvailable") : void 0;
|
|
1887
1887
|
return /* @__PURE__ */ L(H, {
|
|
1888
1888
|
style: Y.container,
|
|
1889
1889
|
children: [
|
|
@@ -1892,16 +1892,16 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1892
1892
|
required: w.data.required
|
|
1893
1893
|
}),
|
|
1894
1894
|
/* @__PURE__ */ I(je, {
|
|
1895
|
-
missing:
|
|
1895
|
+
missing: te,
|
|
1896
1896
|
children: /* @__PURE__ */ L(V, {
|
|
1897
1897
|
style: [
|
|
1898
1898
|
Y.trigger,
|
|
1899
1899
|
{
|
|
1900
|
-
backgroundColor:
|
|
1901
|
-
borderColor:
|
|
1900
|
+
backgroundColor: j.input,
|
|
1901
|
+
borderColor: j.border
|
|
1902
1902
|
},
|
|
1903
|
-
O && { borderColor:
|
|
1904
|
-
(n || f.length === 0) && { backgroundColor:
|
|
1903
|
+
O && { borderColor: j.error },
|
|
1904
|
+
(n || f.length === 0) && { backgroundColor: j.muted }
|
|
1905
1905
|
],
|
|
1906
1906
|
onPress: () => v(!0),
|
|
1907
1907
|
disabled: n || f.length === 0,
|
|
@@ -1910,15 +1910,15 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1910
1910
|
/* @__PURE__ */ I(B, {
|
|
1911
1911
|
style: [
|
|
1912
1912
|
Y.triggerText,
|
|
1913
|
-
{ color:
|
|
1914
|
-
!t && { color:
|
|
1913
|
+
{ color: j.text },
|
|
1914
|
+
!t && { color: j.textMuted }
|
|
1915
1915
|
],
|
|
1916
1916
|
numberOfLines: 1,
|
|
1917
1917
|
children: t?.label || x || R("renderer.defaultHttpInput.selectOption")
|
|
1918
1918
|
}),
|
|
1919
1919
|
n && /* @__PURE__ */ I(ce, {
|
|
1920
1920
|
size: "small",
|
|
1921
|
-
color:
|
|
1921
|
+
color: j.primary,
|
|
1922
1922
|
style: Y.triggerLoader
|
|
1923
1923
|
}),
|
|
1924
1924
|
e ? /* @__PURE__ */ I(V, {
|
|
@@ -1931,19 +1931,19 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1931
1931
|
},
|
|
1932
1932
|
style: Y.clearButton,
|
|
1933
1933
|
children: /* @__PURE__ */ I(B, {
|
|
1934
|
-
style: [Y.clearIcon, { color:
|
|
1934
|
+
style: [Y.clearIcon, { color: j.textMuted }],
|
|
1935
1935
|
children: "✕"
|
|
1936
1936
|
})
|
|
1937
1937
|
}) : null,
|
|
1938
1938
|
/* @__PURE__ */ I(B, {
|
|
1939
|
-
style: [Y.arrow, { color:
|
|
1939
|
+
style: [Y.arrow, { color: j.textMuted }],
|
|
1940
1940
|
children: "▼"
|
|
1941
1941
|
})
|
|
1942
1942
|
]
|
|
1943
1943
|
})
|
|
1944
1944
|
}),
|
|
1945
1945
|
r && /* @__PURE__ */ I(B, {
|
|
1946
|
-
style: [Y.disabledMessage, { color:
|
|
1946
|
+
style: [Y.disabledMessage, { color: j.error }],
|
|
1947
1947
|
children: r
|
|
1948
1948
|
}),
|
|
1949
1949
|
/* @__PURE__ */ I(fe, {
|
|
@@ -1956,18 +1956,18 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1956
1956
|
activeOpacity: 1,
|
|
1957
1957
|
onPress: () => v(!1),
|
|
1958
1958
|
children: /* @__PURE__ */ L(V, {
|
|
1959
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1959
|
+
style: [Y.modalContent, { backgroundColor: j.card }],
|
|
1960
1960
|
activeOpacity: 1,
|
|
1961
1961
|
onPress: () => {},
|
|
1962
1962
|
children: [/* @__PURE__ */ L(H, {
|
|
1963
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1963
|
+
style: [Y.modalHeader, { borderBottomColor: j.separator }],
|
|
1964
1964
|
children: [/* @__PURE__ */ I(B, {
|
|
1965
|
-
style: [Y.modalTitle, { color:
|
|
1965
|
+
style: [Y.modalTitle, { color: j.text }],
|
|
1966
1966
|
children: k || x || R("renderer.defaultHttpInput.selectOption")
|
|
1967
1967
|
}), /* @__PURE__ */ I(V, {
|
|
1968
1968
|
onPress: () => v(!1),
|
|
1969
1969
|
children: /* @__PURE__ */ I(B, {
|
|
1970
|
-
style: [Y.closeButton, { color:
|
|
1970
|
+
style: [Y.closeButton, { color: j.textMuted }],
|
|
1971
1971
|
children: "✕"
|
|
1972
1972
|
})
|
|
1973
1973
|
})]
|
|
@@ -1979,7 +1979,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1979
1979
|
renderItem: ({ item: t }) => {
|
|
1980
1980
|
let n = t.value === e;
|
|
1981
1981
|
return /* @__PURE__ */ L(V, {
|
|
1982
|
-
style: [Y.option, n && { backgroundColor:
|
|
1982
|
+
style: [Y.option, n && { backgroundColor: j.primaryLight }],
|
|
1983
1983
|
onPress: () => {
|
|
1984
1984
|
D(t.value), v(!1);
|
|
1985
1985
|
},
|
|
@@ -1989,7 +1989,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1989
1989
|
description: t.description,
|
|
1990
1990
|
image: t.image
|
|
1991
1991
|
}), n && /* @__PURE__ */ I(B, {
|
|
1992
|
-
style: [Y.checkmark, { color:
|
|
1992
|
+
style: [Y.checkmark, { color: j.primary }],
|
|
1993
1993
|
children: "✓"
|
|
1994
1994
|
})]
|
|
1995
1995
|
});
|
|
@@ -1999,11 +1999,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
1999
1999
|
})
|
|
2000
2000
|
}),
|
|
2001
2001
|
O && /* @__PURE__ */ I(B, {
|
|
2002
|
-
style: [Y.error, { color:
|
|
2002
|
+
style: [Y.error, { color: j.error }],
|
|
2003
2003
|
children: O
|
|
2004
2004
|
}),
|
|
2005
2005
|
A && !O && /* @__PURE__ */ I(B, {
|
|
2006
|
-
style: [Y.helperText, { color:
|
|
2006
|
+
style: [Y.helperText, { color: j.textMuted }],
|
|
2007
2007
|
children: A
|
|
2008
2008
|
})
|
|
2009
2009
|
]
|
|
@@ -2018,19 +2018,19 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
2018
2018
|
}),
|
|
2019
2019
|
/* @__PURE__ */ I(he, {
|
|
2020
2020
|
style: [Y.input, {
|
|
2021
|
-
backgroundColor:
|
|
2022
|
-
borderColor:
|
|
2023
|
-
color:
|
|
2021
|
+
backgroundColor: j.muted,
|
|
2022
|
+
borderColor: j.border,
|
|
2023
|
+
color: j.textMuted
|
|
2024
2024
|
}],
|
|
2025
2025
|
value: typeof b == "string" ? b : JSON.stringify(b),
|
|
2026
2026
|
editable: !1
|
|
2027
2027
|
}),
|
|
2028
2028
|
O && /* @__PURE__ */ I(B, {
|
|
2029
|
-
style: [Y.error, { color:
|
|
2029
|
+
style: [Y.error, { color: j.error }],
|
|
2030
2030
|
children: O
|
|
2031
2031
|
}),
|
|
2032
2032
|
A && !O && /* @__PURE__ */ I(B, {
|
|
2033
|
-
style: [Y.helperText, { color:
|
|
2033
|
+
style: [Y.helperText, { color: j.textMuted }],
|
|
2034
2034
|
children: A
|
|
2035
2035
|
})
|
|
2036
2036
|
]
|
|
@@ -2153,7 +2153,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
}), He = ({ field: e, extra: t }) => {
|
|
2155
2155
|
let { value: n, placeholder: r, name: i } = e, [a, o] = P(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = y();
|
|
2156
|
-
return
|
|
2156
|
+
return M(() => {
|
|
2157
2157
|
o(n?.toString() ?? "");
|
|
2158
2158
|
}, [n]), /* @__PURE__ */ L(H, {
|
|
2159
2159
|
style: Ue.container,
|
|
@@ -2831,7 +2831,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
2831
2831
|
paddingVertical: 8
|
|
2832
2832
|
}
|
|
2833
2833
|
}), tt = ({ field: e, extra: n }) => {
|
|
2834
|
-
let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = P(c || 0), [f, p] = P(l || 0), [m, h] = P(!1), { InputLabel: g, node: _, setValue: v, error: b, label: x, helperText: S } = n, { colors: C } = y(), w = t(), T = N(null), E = N(null), D = Array.from({ length: 24 }, (e, t) => t), ee = Array.from({ length: 60 }, (e, t) => t), O = () => r || i || w("renderer.defaultInputs.selectTime"), k =
|
|
2834
|
+
let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = P(c || 0), [f, p] = P(l || 0), [m, h] = P(!1), { InputLabel: g, node: _, setValue: v, error: b, label: x, helperText: S } = n, { colors: C } = y(), w = t(), T = N(null), E = N(null), D = Array.from({ length: 24 }, (e, t) => t), ee = Array.from({ length: 60 }, (e, t) => t), O = () => r || i || w("renderer.defaultInputs.selectTime"), k = oe(() => {
|
|
2835
2835
|
v(`${String(u).padStart(2, "0")}:${String(f).padStart(2, "0")}`), h(!1);
|
|
2836
2836
|
}, [
|
|
2837
2837
|
u,
|
|
@@ -3073,13 +3073,13 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3073
3073
|
fontSize: 14
|
|
3074
3074
|
}
|
|
3075
3075
|
}), nt = ({ field: e, extra: n }) => {
|
|
3076
|
-
let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = n, { colors: m } = y(), h = t(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", b = _.split(":"), x = Number.parseInt(b[0], 10), S = Number.parseInt(b[1], 10), C = Number.isNaN(x) ? 0 : x, w = Number.isNaN(S) ? 0 : S, T = v.split(":"), E = Number.parseInt(T[0], 10), D = Number.parseInt(T[1], 10), ee = Number.isNaN(E) ? 0 : E, O = Number.isNaN(D) ? 0 : D, [k, A] = P(0), [
|
|
3077
|
-
let e = `${String(k).padStart(2, "0")}:${String(
|
|
3078
|
-
a ? (u([e, v]), o(!1), A(ee || 0),
|
|
3076
|
+
let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = n, { colors: m } = y(), h = t(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", b = _.split(":"), x = Number.parseInt(b[0], 10), S = Number.parseInt(b[1], 10), C = Number.isNaN(x) ? 0 : x, w = Number.isNaN(S) ? 0 : S, T = v.split(":"), E = Number.parseInt(T[0], 10), D = Number.parseInt(T[1], 10), ee = Number.isNaN(E) ? 0 : E, O = Number.isNaN(D) ? 0 : D, [k, A] = P(0), [te, ne] = P(0), re = Array.from({ length: 24 }, (e, t) => t), ie = Array.from({ length: 60 }, (e, t) => t), ae = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), j = oe(() => {
|
|
3077
|
+
let e = `${String(k).padStart(2, "0")}:${String(te).padStart(2, "0")}`;
|
|
3078
|
+
a ? (u([e, v]), o(!1), A(ee || 0), ne(O || 0)) : (u([_, e]), i(!1), o(!0));
|
|
3079
3079
|
}, [
|
|
3080
3080
|
a,
|
|
3081
3081
|
k,
|
|
3082
|
-
|
|
3082
|
+
te,
|
|
3083
3083
|
_,
|
|
3084
3084
|
v,
|
|
3085
3085
|
ee,
|
|
@@ -3103,7 +3103,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3103
3103
|
d && { borderColor: m.error }
|
|
3104
3104
|
],
|
|
3105
3105
|
onPress: () => {
|
|
3106
|
-
A(C || 0),
|
|
3106
|
+
A(C || 0), ne(w || 0), o(!0), i(!0);
|
|
3107
3107
|
},
|
|
3108
3108
|
activeOpacity: .7,
|
|
3109
3109
|
children: [/* @__PURE__ */ I(B, {
|
|
@@ -3113,7 +3113,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3113
3113
|
!_ && { color: m.textMuted }
|
|
3114
3114
|
],
|
|
3115
3115
|
numberOfLines: 1,
|
|
3116
|
-
children:
|
|
3116
|
+
children: ae()
|
|
3117
3117
|
}), /* @__PURE__ */ I(B, {
|
|
3118
3118
|
style: $.icon,
|
|
3119
3119
|
children: "🕐"
|
|
@@ -3165,7 +3165,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3165
3165
|
style: $.picker,
|
|
3166
3166
|
contentContainerStyle: $.pickerContent,
|
|
3167
3167
|
showsVerticalScrollIndicator: !1,
|
|
3168
|
-
children:
|
|
3168
|
+
children: re.map((e) => /* @__PURE__ */ I(V, {
|
|
3169
3169
|
style: [$.pickerItem, k === e && { backgroundColor: m.primary }],
|
|
3170
3170
|
onPress: () => A(e),
|
|
3171
3171
|
activeOpacity: .7,
|
|
@@ -3196,15 +3196,15 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3196
3196
|
style: $.picker,
|
|
3197
3197
|
contentContainerStyle: $.pickerContent,
|
|
3198
3198
|
showsVerticalScrollIndicator: !1,
|
|
3199
|
-
children:
|
|
3200
|
-
style: [$.pickerItem,
|
|
3201
|
-
onPress: () =>
|
|
3199
|
+
children: ie.map((e) => /* @__PURE__ */ I(V, {
|
|
3200
|
+
style: [$.pickerItem, te === e && { backgroundColor: m.primary }],
|
|
3201
|
+
onPress: () => ne(e),
|
|
3202
3202
|
activeOpacity: .7,
|
|
3203
3203
|
children: /* @__PURE__ */ I(B, {
|
|
3204
3204
|
style: [
|
|
3205
3205
|
$.pickerItemText,
|
|
3206
3206
|
{ color: m.text },
|
|
3207
|
-
|
|
3207
|
+
te === e && {
|
|
3208
3208
|
color: m.background,
|
|
3209
3209
|
fontWeight: "600"
|
|
3210
3210
|
}
|
|
@@ -3218,7 +3218,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3218
3218
|
}),
|
|
3219
3219
|
/* @__PURE__ */ I(V, {
|
|
3220
3220
|
style: [$.confirmButton, { backgroundColor: m.primary }],
|
|
3221
|
-
onPress:
|
|
3221
|
+
onPress: j,
|
|
3222
3222
|
activeOpacity: .7,
|
|
3223
3223
|
children: /* @__PURE__ */ I(B, {
|
|
3224
3224
|
style: [$.confirmButtonText, { color: m.background }],
|
|
@@ -3503,7 +3503,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3503
3503
|
width: "100%"
|
|
3504
3504
|
} }), ht = ({ style: e }) => {
|
|
3505
3505
|
let { colors: t } = y(), n = N(new le.Value(.5)).current;
|
|
3506
|
-
return
|
|
3506
|
+
return M(() => {
|
|
3507
3507
|
let e = le.loop(le.sequence([le.timing(n, {
|
|
3508
3508
|
duration: 600,
|
|
3509
3509
|
toValue: 1,
|
|
@@ -3567,23 +3567,24 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3567
3567
|
marginBottom: 24,
|
|
3568
3568
|
width: "33%"
|
|
3569
3569
|
}
|
|
3570
|
-
}), vt = ({ baseUrl: e, components: t, contentContainerStyle: n,
|
|
3571
|
-
let { colors:
|
|
3570
|
+
}), vt = ({ baseUrl: e, components: t, contentContainerStyle: n, extraPayload: r, flow: i, googleApiKey: a, headers: o, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, validate: v, validationMode: b }) => {
|
|
3571
|
+
let { colors: x } = y(), { canContinueStep: S, canSubmit: C, clearSubmitMessage: w, config: T, currentStep: E, currentStepGroupNode: D, currentStepIndex: ee, formErrors: O, formValues: k, goToNextStep: A, goToPreviousStep: te, handleSubmit: re, inputNodes: ie, isFirstStep: ae, isLastStep: M, isSubmitting: N, missingRequiredFields: P, setFieldValue: F, steps: ce, submitMessage: R, t: le } = ne({
|
|
3572
3572
|
baseUrl: e,
|
|
3573
3573
|
components: t,
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3574
|
+
extraPayload: r,
|
|
3575
|
+
flow: i,
|
|
3576
|
+
googleApiKey: a,
|
|
3577
|
+
headers: o,
|
|
3578
|
+
initialValues: c,
|
|
3579
|
+
language: d,
|
|
3580
|
+
onChange: p,
|
|
3581
|
+
onSubmit: m,
|
|
3582
|
+
showPoweredBy: h,
|
|
3583
|
+
theme: _,
|
|
3584
|
+
validate: v,
|
|
3585
|
+
validationMode: b
|
|
3586
|
+
}), ue = u || N, { FormWrapper: de, SubmitButtonWrapper: fe, renderNode: z } = j({
|
|
3587
|
+
config: T,
|
|
3587
3588
|
DefaultFormWrapper: ge,
|
|
3588
3589
|
DefaultInputLabel: ve,
|
|
3589
3590
|
DefaultInputWrapper: pt,
|
|
@@ -3591,85 +3592,85 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3591
3592
|
DefaultSubmitButtonWrapper: ct,
|
|
3592
3593
|
defaultInputRenderers: rt,
|
|
3593
3594
|
defaultUI: ft,
|
|
3594
|
-
formErrors:
|
|
3595
|
-
formValues:
|
|
3596
|
-
inputNodes:
|
|
3597
|
-
isSubmitting:
|
|
3598
|
-
missingRequiredFields:
|
|
3599
|
-
setFieldValue:
|
|
3600
|
-
}),
|
|
3601
|
-
if (
|
|
3602
|
-
|
|
3603
|
-
return;
|
|
3604
|
-
}
|
|
3605
|
-
k();
|
|
3606
|
-
}, [
|
|
3607
|
-
ie,
|
|
3608
|
-
j,
|
|
3609
|
-
k
|
|
3610
|
-
]), _e = ae(() => {
|
|
3611
|
-
if (re) {
|
|
3612
|
-
d?.();
|
|
3595
|
+
formErrors: O,
|
|
3596
|
+
formValues: k,
|
|
3597
|
+
inputNodes: ie,
|
|
3598
|
+
isSubmitting: ue,
|
|
3599
|
+
missingRequiredFields: P,
|
|
3600
|
+
setFieldValue: F
|
|
3601
|
+
}), me = T.components.step ?? it, he = T.components.loadingSkeleton ?? gt, V = se(() => le(D?.data?.label), [le, D]), _e = oe(() => {
|
|
3602
|
+
if (M) {
|
|
3603
|
+
re();
|
|
3613
3604
|
return;
|
|
3614
3605
|
}
|
|
3615
3606
|
A();
|
|
3616
3607
|
}, [
|
|
3608
|
+
M,
|
|
3617
3609
|
re,
|
|
3618
|
-
d,
|
|
3619
3610
|
A
|
|
3620
|
-
]), ye =
|
|
3611
|
+
]), ye = oe(() => {
|
|
3612
|
+
if (ae) {
|
|
3613
|
+
f?.();
|
|
3614
|
+
return;
|
|
3615
|
+
}
|
|
3616
|
+
te();
|
|
3617
|
+
}, [
|
|
3618
|
+
ae,
|
|
3619
|
+
f,
|
|
3620
|
+
te
|
|
3621
|
+
]), be = !ae || !!f;
|
|
3621
3622
|
return /* @__PURE__ */ I(pe, {
|
|
3622
3623
|
nestedScrollEnabled: !0,
|
|
3623
3624
|
style: [
|
|
3624
3625
|
bt.container,
|
|
3625
|
-
{ backgroundColor:
|
|
3626
|
-
|
|
3626
|
+
{ backgroundColor: x.background },
|
|
3627
|
+
g
|
|
3627
3628
|
],
|
|
3628
3629
|
contentContainerStyle: n,
|
|
3629
|
-
children:
|
|
3630
|
+
children: l ? /* @__PURE__ */ I(he, {}) : /* @__PURE__ */ L(s, {
|
|
3630
3631
|
value: {
|
|
3631
|
-
baseUrl:
|
|
3632
|
-
flow:
|
|
3633
|
-
formErrors:
|
|
3634
|
-
formValues:
|
|
3635
|
-
googleApiKey:
|
|
3636
|
-
headers:
|
|
3637
|
-
inputNodes:
|
|
3638
|
-
language:
|
|
3639
|
-
setFieldValue:
|
|
3632
|
+
baseUrl: T.baseUrl,
|
|
3633
|
+
flow: i,
|
|
3634
|
+
formErrors: O,
|
|
3635
|
+
formValues: k,
|
|
3636
|
+
googleApiKey: T.googleApiKey,
|
|
3637
|
+
headers: T.headers,
|
|
3638
|
+
inputNodes: ie,
|
|
3639
|
+
language: T.language,
|
|
3640
|
+
setFieldValue: F
|
|
3640
3641
|
},
|
|
3641
|
-
children: [/* @__PURE__ */ L(
|
|
3642
|
-
onSubmit:
|
|
3643
|
-
children: [
|
|
3644
|
-
missingFields:
|
|
3645
|
-
children: /* @__PURE__ */ I(
|
|
3646
|
-
step:
|
|
3647
|
-
groupNode:
|
|
3648
|
-
stepIndex:
|
|
3649
|
-
totalSteps:
|
|
3650
|
-
isFirstStep:
|
|
3651
|
-
isLastStep:
|
|
3652
|
-
canContinue:
|
|
3653
|
-
canGoBack:
|
|
3654
|
-
isSubmitting:
|
|
3655
|
-
onBack:
|
|
3656
|
-
onContinue:
|
|
3657
|
-
label:
|
|
3658
|
-
children:
|
|
3642
|
+
children: [/* @__PURE__ */ L(de, {
|
|
3643
|
+
onSubmit: re,
|
|
3644
|
+
children: [E && /* @__PURE__ */ I(fe, {
|
|
3645
|
+
missingFields: P,
|
|
3646
|
+
children: /* @__PURE__ */ I(me, {
|
|
3647
|
+
step: E,
|
|
3648
|
+
groupNode: D,
|
|
3649
|
+
stepIndex: ee,
|
|
3650
|
+
totalSteps: ce.length,
|
|
3651
|
+
isFirstStep: ae,
|
|
3652
|
+
isLastStep: M,
|
|
3653
|
+
canContinue: S && (!M || C),
|
|
3654
|
+
canGoBack: be,
|
|
3655
|
+
isSubmitting: ue,
|
|
3656
|
+
onBack: ye,
|
|
3657
|
+
onContinue: _e,
|
|
3658
|
+
label: V,
|
|
3659
|
+
children: E.nodes.map((e) => z(e))
|
|
3659
3660
|
})
|
|
3660
|
-
}),
|
|
3661
|
-
style: [bt.poweredBy, { color:
|
|
3661
|
+
}), T.showPoweredBy && /* @__PURE__ */ I(B, {
|
|
3662
|
+
style: [bt.poweredBy, { color: x.textMuted }],
|
|
3662
3663
|
children: "Powered by Treege"
|
|
3663
3664
|
})]
|
|
3664
|
-
}),
|
|
3665
|
-
style: [bt.message, { backgroundColor:
|
|
3665
|
+
}), R && /* @__PURE__ */ L(H, {
|
|
3666
|
+
style: [bt.message, { backgroundColor: R.type === "success" ? x.successBg : x.errorBg }],
|
|
3666
3667
|
children: [/* @__PURE__ */ I(B, {
|
|
3667
|
-
style: [bt.messageText, { color:
|
|
3668
|
-
children:
|
|
3668
|
+
style: [bt.messageText, { color: R.type === "success" ? x.success : x.error }],
|
|
3669
|
+
children: R.message
|
|
3669
3670
|
}), /* @__PURE__ */ I(B, {
|
|
3670
|
-
style: [bt.messageClose, { color:
|
|
3671
|
-
onPress:
|
|
3672
|
-
children:
|
|
3671
|
+
style: [bt.messageClose, { color: R.type === "success" ? x.success : x.error }],
|
|
3672
|
+
onPress: w,
|
|
3673
|
+
children: le("common.close")
|
|
3673
3674
|
})]
|
|
3674
3675
|
})]
|
|
3675
3676
|
})
|
|
@@ -3701,4 +3702,4 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
|
3701
3702
|
}
|
|
3702
3703
|
});
|
|
3703
3704
|
//#endregion
|
|
3704
|
-
export { Se as DefaultAddressInput, Te as DefaultAutocompleteInput, Ee as DefaultCheckboxInput, De as DefaultDateInput, Oe as DefaultDateRangeInput, ut as DefaultDividerUI, ke as DefaultFileInput, Ae as DefaultHiddenInput, Ve as DefaultHttpInput, ve as DefaultInputLabel, He as DefaultNumberInput, We as DefaultPasswordInput, Ke as DefaultRadioInput, qe as DefaultSelectInput, Ye as DefaultSwitchInput, $e as DefaultTextInput, Ze as DefaultTextareaInput, tt as DefaultTimeInput, nt as DefaultTimeRangeInput, lt as DefaultTitleUI, yt as TreegeRenderer, k as TreegeRendererProvider, x as applyReferenceTransformation, h as buildInitialFormValues, u as calculateReferenceFieldUpdates, b as checkFormFieldHasValue, S as convertFormValuesToNamedFormat, rt as defaultInputRenderers, ft as defaultUI,
|
|
3705
|
+
export { Se as DefaultAddressInput, Te as DefaultAutocompleteInput, Ee as DefaultCheckboxInput, De as DefaultDateInput, Oe as DefaultDateRangeInput, ut as DefaultDividerUI, ke as DefaultFileInput, Ae as DefaultHiddenInput, Ve as DefaultHttpInput, ve as DefaultInputLabel, He as DefaultNumberInput, We as DefaultPasswordInput, Ke as DefaultRadioInput, qe as DefaultSelectInput, Ye as DefaultSwitchInput, $e as DefaultTextInput, Ze as DefaultTextareaInput, tt as DefaultTimeInput, nt as DefaultTimeRangeInput, lt as DefaultTitleUI, yt as TreegeRenderer, k as TreegeRendererProvider, x as applyReferenceTransformation, h as buildInitialFormValues, u as calculateReferenceFieldUpdates, b as checkFormFieldHasValue, S as convertFormValuesToNamedFormat, rt as defaultInputRenderers, ft as defaultUI, re as evaluateCondition, ae as evaluateConditions, v as fileNameFromUrl, m as fileToSerializable, p as filesToSerializable, ie as findStartNode, l as formatFileSize, A as getFlowRenderState, n as getTranslatedText, f as isFieldEmpty, w as isRemoteFileData, O as isStartNode, D as normalizeSerializableFiles, _ as resolveNodeDefaultValue, Fe as sanitize, Le as sanitizeHttpResponse, d as serializableToFile, ne as useTreegeRenderer, te as useTreegeRendererConfig };
|