@gisce/react-ooui 2.106.0-alpha.1 → 2.106.0-alpha.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.
@@ -15019,7 +15019,10 @@ const yv = (t) => {
15019
15019
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
15020
15020
  }, [r, o, i.length]), d = I((m) => {
15021
15021
  c.current = m;
15022
- }, []), f = I(() => c.current, []), u = Z(() => Zt(t), [t]);
15022
+ }, []), f = I(() => c.current, []), u = Z(() => {
15023
+ if (t)
15024
+ return Zt(t);
15025
+ }, [t]);
15023
15026
  return {
15024
15027
  onTreeFetchRows: ct(
15025
15028
  async ({
@@ -15094,7 +15097,7 @@ const yv = (t) => {
15094
15097
  }))[0], v = (await B.getHandler().readObjects({
15095
15098
  model: e,
15096
15099
  ids: [g],
15097
- fields: r.fields,
15100
+ fields: r == null ? void 0 : r.fields,
15098
15101
  context: n
15099
15102
  }))[0];
15100
15103
  return t.map((b) => b.id === g ? {
@@ -15104,7 +15107,7 @@ const yv = (t) => {
15104
15107
  treeValues: v
15105
15108
  } : b);
15106
15109
  },
15107
- [n, o, t, e, r.fields]
15110
+ [n, o, t, e, r == null ? void 0 : r.fields]
15108
15111
  ), u = I(
15109
15112
  (g) => {
15110
15113
  c(!0), i(g);
@@ -15827,7 +15830,7 @@ const Nc = ({
15827
15830
  }
15828
15831
  }
15829
15832
  ),
15830
- d === "tree" && /* @__PURE__ */ s(
15833
+ d === "tree" && i.get("tree") && /* @__PURE__ */ s(
15831
15834
  wv,
15832
15835
  {
15833
15836
  gridRef: e,
@@ -15855,7 +15858,7 @@ const Nc = ({
15855
15858
  onChangeTreeType: Fe ? we : void 0
15856
15859
  }
15857
15860
  ),
15858
- d === "form" && /* @__PURE__ */ s(
15861
+ d === "form" && i.get("form") && /* @__PURE__ */ s(
15859
15862
  Ws,
15860
15863
  {
15861
15864
  ref: S,
@@ -15899,7 +15902,7 @@ const Nc = ({
15899
15902
  onCloseModal: Y
15900
15903
  }
15901
15904
  ),
15902
- d === "graph" && /* @__PURE__ */ s(
15905
+ d === "graph" && i.get("graph") && /* @__PURE__ */ s(
15903
15906
  _n,
15904
15907
  {
15905
15908
  viewData: i.get("graph"),
@@ -15928,7 +15931,10 @@ const Nc = ({
15928
15931
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
15929
15932
  }, [r, o, i.length]), d = I((m) => {
15930
15933
  c.current = m;
15931
- }, []), f = I(() => c.current, []), u = Z(() => Zt(t), [t]);
15934
+ }, []), f = I(() => c.current, []), u = Z(() => {
15935
+ if (t)
15936
+ return Zt(t);
15937
+ }, [t]);
15932
15938
  return {
15933
15939
  onTreeFetchRows: ct(
15934
15940
  async ({
@@ -16246,7 +16252,7 @@ const Nc = ({
16246
16252
  }
16247
16253
  }
16248
16254
  ),
16249
- l === "tree" && /* @__PURE__ */ s(
16255
+ l === "tree" && i.get("tree") && /* @__PURE__ */ s(
16250
16256
  Fv,
16251
16257
  {
16252
16258
  gridRef: e,
@@ -16272,7 +16278,7 @@ const Nc = ({
16272
16278
  aggregates: P
16273
16279
  }
16274
16280
  ),
16275
- l === "form" && /* @__PURE__ */ s(
16281
+ l === "form" && i.get("form") && /* @__PURE__ */ s(
16276
16282
  Ws,
16277
16283
  {
16278
16284
  ref: w,
@@ -16316,7 +16322,7 @@ const Nc = ({
16316
16322
  onCloseModal: le
16317
16323
  }
16318
16324
  ),
16319
- l === "graph" && /* @__PURE__ */ s(
16325
+ l === "graph" && i.get("graph") && /* @__PURE__ */ s(
16320
16326
  _n,
16321
16327
  {
16322
16328
  viewData: i.get("graph"),
@@ -16384,11 +16390,11 @@ const Nc = ({
16384
16390
  d(!0), u(void 0);
16385
16391
  try {
16386
16392
  if (n && n.length > 0) {
16387
- const R = ["tree", "form"], T = /* @__PURE__ */ new Set([...R, ...n]), _ = Array.from(T).map(async (M) => {
16388
- const N = await A(M);
16389
- p.set(M, N);
16393
+ const R = n.map(async (T) => {
16394
+ const _ = await A(T);
16395
+ p.set(T, _);
16390
16396
  });
16391
- await Promise.all(_), m(p);
16397
+ await Promise.all(R), m(p);
16392
16398
  } else {
16393
16399
  const [R, T] = await Promise.all([
16394
16400
  A("form"),