treege 1.0.6 → 1.0.8
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/CHANGELOG.md +2 -2
- package/dist/main.js +31 -4
- package/dist/main.umd.cjs +29 -29
- package/dist/src/locales/en/form-en.d.ts +2 -0
- package/dist/src/locales/fr/form-fr.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -5926,7 +5926,21 @@ const rl = (e, t) => {
|
|
|
5926
5926
|
return a;
|
|
5927
5927
|
}
|
|
5928
5928
|
return null;
|
|
5929
|
-
}, _p = (e, t) =>
|
|
5929
|
+
}, _p = (e, t) => !e || !t ? null : e.attributes.isDecision || t.attributes.isDecision ? (Object.defineProperty(e, "children", {
|
|
5930
|
+
value: [...e.children.filter((n) => n.uuid !== t.uuid)]
|
|
5931
|
+
}), Object.defineProperty(e, "attributes", {
|
|
5932
|
+
value: {
|
|
5933
|
+
...e.attributes,
|
|
5934
|
+
isLeaf: !e.children.length
|
|
5935
|
+
}
|
|
5936
|
+
}), null) : (Object.defineProperty(e, "children", {
|
|
5937
|
+
value: [...e.children.filter((n) => n.uuid !== t.uuid), ...t.children]
|
|
5938
|
+
}), Object.defineProperty(e, "attributes", {
|
|
5939
|
+
value: {
|
|
5940
|
+
...e.attributes,
|
|
5941
|
+
isLeaf: !t.children.length
|
|
5942
|
+
}
|
|
5943
|
+
}), null), Ep = (e, t, n) => {
|
|
5930
5944
|
const r = er(e, t);
|
|
5931
5945
|
return nl(r, n);
|
|
5932
5946
|
}, Tp = ({ tree: e, path: t, uuid: n }) => {
|
|
@@ -7266,7 +7280,7 @@ const E1 = (e) => {
|
|
|
7266
7280
|
/* @__PURE__ */ i.jsx(
|
|
7267
7281
|
Pe,
|
|
7268
7282
|
{
|
|
7269
|
-
sx: { flex:
|
|
7283
|
+
sx: { flex: 3 },
|
|
7270
7284
|
InputProps: {
|
|
7271
7285
|
startAdornment: /* @__PURE__ */ i.jsx(Ns, { position: "start", children: /* @__PURE__ */ i.jsx(bo, {}) })
|
|
7272
7286
|
},
|
|
@@ -7279,7 +7293,18 @@ const E1 = (e) => {
|
|
|
7279
7293
|
}
|
|
7280
7294
|
),
|
|
7281
7295
|
/* @__PURE__ */ i.jsx(ll, {}),
|
|
7282
|
-
/* @__PURE__ */ i.jsx(
|
|
7296
|
+
/* @__PURE__ */ i.jsx(
|
|
7297
|
+
Pe,
|
|
7298
|
+
{
|
|
7299
|
+
InputLabelProps: { shrink: !0 },
|
|
7300
|
+
sx: { flex: 1 },
|
|
7301
|
+
placeholder: t("form:searchKeyPlaceholder"),
|
|
7302
|
+
type: "text",
|
|
7303
|
+
label: t("form:key"),
|
|
7304
|
+
onChange: V,
|
|
7305
|
+
value: He
|
|
7306
|
+
}
|
|
7307
|
+
)
|
|
7283
7308
|
] }) }),
|
|
7284
7309
|
S && /* @__PURE__ */ i.jsxs(pe, { spacing: 1, paddingY: 1, children: [
|
|
7285
7310
|
/* @__PURE__ */ i.jsx("h4", { children: t("form:urlConstruction") }),
|
|
@@ -7861,7 +7886,7 @@ const ze = {
|
|
|
7861
7886
|
/* @__PURE__ */ i.jsx(Va, { open: d, onClose: a, title: l(), children: /* @__PURE__ */ i.jsx(Zp, { onClose: a }) }),
|
|
7862
7887
|
/* @__PURE__ */ i.jsx(zp, { open: t, onClose: o, title: y, children: /* @__PURE__ */ i.jsx(zs, { data: b, renderCustomNodeElement: Wa }) })
|
|
7863
7888
|
] });
|
|
7864
|
-
}, bm = "1.0.
|
|
7889
|
+
}, bm = "1.0.8", ym = ({ children: e, initialTree: t, initialTreeId: n, backendConfig: r }) => {
|
|
7865
7890
|
const [o, s] = be(Qe.currentHierarchyPointNode), [a, l] = be(Qe.modalOpen), [c, d] = be(Qe.treeModalOpen), [f, p] = be(Qe.treePath), [h, y] = Ja(kp, t || Qe.tree), [b, g] = be(
|
|
7866
7891
|
n ? { ...Qe.currentTree, id: n } : Qe.currentTree
|
|
7867
7892
|
), v = kr(
|
|
@@ -7963,6 +7988,7 @@ const ze = {
|
|
|
7963
7988
|
decisionField: "Champs de décision",
|
|
7964
7989
|
helperText: "Texte d'information",
|
|
7965
7990
|
hiddenValue: "Valeur caché",
|
|
7991
|
+
key: "Clé",
|
|
7966
7992
|
label: "Label",
|
|
7967
7993
|
message: "Message",
|
|
7968
7994
|
mustBeUnique: "Doit être unique",
|
|
@@ -7971,6 +7997,7 @@ const ze = {
|
|
|
7971
7997
|
offMessage: "Message (désactiver)",
|
|
7972
7998
|
onMessage: "Message (activer)",
|
|
7973
7999
|
repeatable: "Répétable",
|
|
8000
|
+
searchKeyPlaceholder: "text",
|
|
7974
8001
|
staticFields: "Champs statiques",
|
|
7975
8002
|
step: "Étape",
|
|
7976
8003
|
tree: "Arbre",
|