@gisce/react-ooui 2.105.1 → 2.105.2

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.
@@ -14816,7 +14816,10 @@ const av = (t) => {
14816
14816
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
14817
14817
  }, [r, o, i.length]), d = I((m) => {
14818
14818
  c.current = m;
14819
- }, []), f = I(() => c.current, []), u = ee(() => on(t), [t]);
14819
+ }, []), f = I(() => c.current, []), u = ee(() => {
14820
+ if (t)
14821
+ return on(t);
14822
+ }, [t]);
14820
14823
  return {
14821
14824
  onTreeFetchRows: ct(
14822
14825
  async ({
@@ -14891,7 +14894,7 @@ const av = (t) => {
14891
14894
  }))[0], v = (await B.getHandler().readObjects({
14892
14895
  model: e,
14893
14896
  ids: [g],
14894
- fields: r.fields,
14897
+ fields: r == null ? void 0 : r.fields,
14895
14898
  context: n
14896
14899
  }))[0];
14897
14900
  return t.map((b) => b.id === g ? {
@@ -14901,7 +14904,7 @@ const av = (t) => {
14901
14904
  treeValues: v
14902
14905
  } : b);
14903
14906
  },
14904
- [n, o, t, e, r.fields]
14907
+ [n, o, t, e, r == null ? void 0 : r.fields]
14905
14908
  ), u = I(
14906
14909
  (g) => {
14907
14910
  c(!0), i(g);
@@ -15623,7 +15626,7 @@ const Oc = ({
15623
15626
  }
15624
15627
  }
15625
15628
  ),
15626
- d === "tree" && /* @__PURE__ */ s(
15629
+ d === "tree" && i.get("tree") && /* @__PURE__ */ s(
15627
15630
  dv,
15628
15631
  {
15629
15632
  gridRef: e,
@@ -15651,7 +15654,7 @@ const Oc = ({
15651
15654
  onChangeTreeType: Fe ? we : void 0
15652
15655
  }
15653
15656
  ),
15654
- d === "form" && /* @__PURE__ */ s(
15657
+ d === "form" && i.get("form") && /* @__PURE__ */ s(
15655
15658
  js,
15656
15659
  {
15657
15660
  ref: T,
@@ -15695,7 +15698,7 @@ const Oc = ({
15695
15698
  onCloseModal: Y
15696
15699
  }
15697
15700
  ),
15698
- d === "graph" && /* @__PURE__ */ s(
15701
+ d === "graph" && i.get("graph") && /* @__PURE__ */ s(
15699
15702
  Rn,
15700
15703
  {
15701
15704
  viewData: i.get("graph"),
@@ -15724,7 +15727,10 @@ const Oc = ({
15724
15727
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
15725
15728
  }, [r, o, i.length]), d = I((m) => {
15726
15729
  c.current = m;
15727
- }, []), f = I(() => c.current, []), u = ee(() => on(t), [t]);
15730
+ }, []), f = I(() => c.current, []), u = ee(() => {
15731
+ if (t)
15732
+ return on(t);
15733
+ }, [t]);
15728
15734
  return {
15729
15735
  onTreeFetchRows: ct(
15730
15736
  async ({
@@ -16041,7 +16047,7 @@ const Oc = ({
16041
16047
  }
16042
16048
  }
16043
16049
  ),
16044
- l === "tree" && /* @__PURE__ */ s(
16050
+ l === "tree" && i.get("tree") && /* @__PURE__ */ s(
16045
16051
  hv,
16046
16052
  {
16047
16053
  gridRef: e,
@@ -16067,7 +16073,7 @@ const Oc = ({
16067
16073
  aggregates: N
16068
16074
  }
16069
16075
  ),
16070
- l === "form" && /* @__PURE__ */ s(
16076
+ l === "form" && i.get("form") && /* @__PURE__ */ s(
16071
16077
  js,
16072
16078
  {
16073
16079
  ref: w,
@@ -16111,7 +16117,7 @@ const Oc = ({
16111
16117
  onCloseModal: ae
16112
16118
  }
16113
16119
  ),
16114
- l === "graph" && /* @__PURE__ */ s(
16120
+ l === "graph" && i.get("graph") && /* @__PURE__ */ s(
16115
16121
  Rn,
16116
16122
  {
16117
16123
  viewData: i.get("graph"),