treege 1.0.0 → 1.0.1

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 CHANGED
@@ -1,6 +1,5 @@
1
1
  # [Versions](https://github.com/Tracktor/treege/releases)
2
2
 
3
- ## v1.0.0
4
- - **[feat]** : add attribute `name` and replace unique root node `name` with `uuid`
5
- - **[feat]** : Add unique select name from dynamic select
6
- - **[feat]** : Bugs fix and improvements
3
+ ## v1.0.1
4
+ - **[fix]** : decision generated `name`
5
+ - **[fix]** : error message decision
package/dist/main.js CHANGED
@@ -6832,6 +6832,7 @@ const T1 = (e) => {
6832
6832
  attributes: {
6833
6833
  depth: _ + 1,
6834
6834
  label: we,
6835
+ name: `${v}:${J}`,
6835
6836
  value: J,
6836
6837
  ...q && { message: q },
6837
6838
  ...yt.length === 0 && { isLeaf: !0 }
@@ -6841,7 +6842,7 @@ const T1 = (e) => {
6841
6842
  };
6842
6843
  }) : [];
6843
6844
  },
6844
- [r, Pt, Br, $, e, f]
6845
+ [r, Pt, Br, $, v, e, f]
6845
6846
  ), ur = K(
6846
6847
  (_) => _.map(({ message: k, ...q }) => ({
6847
6848
  ...q,
@@ -7481,7 +7482,7 @@ const T1 = (e) => {
7481
7482
  /* @__PURE__ */ i.jsx(
7482
7483
  Ie,
7483
7484
  {
7484
- label: "Message",
7485
+ label: t("message", { ns: "form" }),
7485
7486
  sx: { flex: 1 },
7486
7487
  onChange: se,
7487
7488
  value: St,
@@ -7854,7 +7855,7 @@ const ze = {
7854
7855
  /* @__PURE__ */ i.jsx(Va, { open: d, onClose: a, title: l(), children: /* @__PURE__ */ i.jsx(e1, { onClose: a }) }),
7855
7856
  /* @__PURE__ */ i.jsx(Bp, { open: t, onClose: o, title: h, children: x && /* @__PURE__ */ i.jsx(zs, { data: x, renderCustomNodeElement: Wa }) })
7856
7857
  ] });
7857
- }, ym = "1.0.0", xm = ({ children: e, initialTree: t, initialTreeId: n, backendConfig: r }) => {
7858
+ }, ym = "1.0.1", xm = ({ children: e, initialTree: t, initialTreeId: n, backendConfig: r }) => {
7858
7859
  const [o, s] = be(Qe.currentHierarchyPointNode), [a, l] = be(Qe.modalOpen), [c, d] = be(Qe.treeModalOpen), [f, p] = be(Qe.treePath), [h, x] = Ja(Ap, t || Qe.tree), [b, g] = be(
7859
7860
  n ? { ...Qe.currentTree, id: n } : Qe.currentTree
7860
7861
  ), v = Ar(
@@ -7957,6 +7958,7 @@ const ze = {
7957
7958
  helperText: "Texte d'information",
7958
7959
  hiddenValue: "Valeur caché",
7959
7960
  label: "Label",
7961
+ message: "Message",
7960
7962
  mustBeUnique: "Doit être unique",
7961
7963
  newTree: "Nouvel arbre",
7962
7964
  noAncestorFound: "Aucun parent trouvé",