@gisce/react-ooui 2.88.1 → 2.88.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.
@@ -1 +1 @@
1
- {"version":3,"file":"usePermissions.d.ts","sourceRoot":"","sources":["../../src/hooks/usePermissions.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,cAAc;8BAcd,MAAM,eACA,cAAc,EAAE,KAC5B,QAAQ,cAAc,CAAC;;CA8B7B,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qCAI7B,0BAA0B,KAAG,yBAkD/B,CAAC"}
1
+ {"version":3,"file":"usePermissions.d.ts","sourceRoot":"","sources":["../../src/hooks/usePermissions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,cAAc;8BAcd,MAAM,eACA,cAAc,EAAE,KAC5B,QAAQ,cAAc,CAAC;;CA8B7B,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qCAI7B,0BAA0B,KAAG,yBAsD/B,CAAC"}
@@ -7,7 +7,7 @@ import { Tooltip as Wt, theme as Ze, Typography as ln, Form as $t, Row as We, Co
7
7
  import { Label as Hn, Field as Io, Tree as Ui, Reference as Tc, Selection as Wo, Many2one as Wi, Boolean as Ic, parseContext as sn, graphProcessor as Yi, graphFieldUtils as Ac, Integer as Ao, SearchFieldTypes as on, SearchFilter as qi, parseContextFields as Rc, parseDomainFields as _c, parseGraph as Gi, Container as Ec, Form as zi, transformDomainForChildWidget as Yo, Button as Oc } from "@gisce/ooui";
8
8
  import Dc, { QuestionCircleOutlined as Ki, ExclamationCircleOutlined as Nr, LoadingOutlined as Bt, DownOutlined as Vr, CloseOutlined as Bn, CheckOutlined as ar, TranslationOutlined as Ji, FolderOpenOutlined as qo, DownloadOutlined as Go, ClearOutlined as lr, FormOutlined as Xn, TableOutlined as zo, AreaChartOutlined as Pc, CalendarOutlined as Mc, FileAddOutlined as Lr, CloseCircleFilled as kc, CopyOutlined as cr, FilterOutlined as Qi, DeleteOutlined as Ko, InfoCircleOutlined as Hr, ReloadOutlined as Br, ThunderboltOutlined as jr, PrinterOutlined as Ur, SearchOutlined as dr, UpOutlined as $c, ExportOutlined as Xi, EnterOutlined as Wr, PlusSquareOutlined as Zi, MinusSquareOutlined as ea, StarFilled as Nc, StarOutlined as Vc, LeftOutlined as ta, RightOutlined as na, ApiOutlined as Lc, AlignLeftOutlined as Hc, EyeOutlined as Bc, LinkOutlined as Ds, SaveOutlined as jc, EditOutlined as ra, PlusOutlined as Uc, BorderOuterOutlined as Wc, SettingOutlined as Yc } from "@ant-design/icons";
9
9
  import { Interweave as Kt } from "interweave";
10
- import Je from "dayjs";
10
+ import Qe from "dayjs";
11
11
  import { default as Ow } from "dayjs";
12
12
  import qc from "dayjs/plugin/advancedFormat";
13
13
  import Gc from "dayjs/plugin/customParseFormat";
@@ -24,7 +24,7 @@ import Jo from "react-measure";
24
24
  import ud from "lodash/debounce";
25
25
  import { nanoid as Qo } from "nanoid";
26
26
  import _o from "antd/lib/typography/Title";
27
- import { useDeepCompareEffect as Qe, useDeepCompareCallback as Et, useDeepCompareMemo as Mn } from "use-deep-compare";
27
+ import { useDeepCompareEffect as Je, useDeepCompareCallback as Et, useDeepCompareMemo as Mn } from "use-deep-compare";
28
28
  import { Line as fd, Column as pd, Pie as md } from "@ant-design/plots";
29
29
  import { createRoot as ia } from "react-dom/client";
30
30
  import { fileTypeFromBuffer as hd } from "file-type-buffer-browser";
@@ -233,7 +233,7 @@ const Nd = /* @__PURE__ */ ua($d);
233
233
  var Vd = { exports: {} };
234
234
  (function(e, t) {
235
235
  (function(n, r) {
236
- e.exports = r(Je);
236
+ e.exports = r(Qe);
237
237
  })(Yr, function(n) {
238
238
  function r(a) {
239
239
  return a && typeof a == "object" && "default" in a ? a : { default: a };
@@ -258,7 +258,7 @@ var Ld = { exports: {} };
258
258
  var Hd = { exports: {} };
259
259
  (function(e, t) {
260
260
  (function(n, r) {
261
- e.exports = r(Je);
261
+ e.exports = r(Qe);
262
262
  })(Yr, function(n) {
263
263
  function r(a) {
264
264
  return a && typeof a == "object" && "default" in a ? a : { default: a };
@@ -269,15 +269,15 @@ var Hd = { exports: {} };
269
269
  return o.default.locale(i, null, !0), i;
270
270
  });
271
271
  })(Hd);
272
- Je.extend(Nd);
273
- Je.extend(qc);
274
- Je.extend(Gc);
275
- Je.extend(zc);
276
- Je.extend(Kc);
277
- Je.extend(Jc);
278
- Je.extend(Qc);
279
- Je.extend(Xc);
280
- Je.extend(Zc);
272
+ Qe.extend(Nd);
273
+ Qe.extend(qc);
274
+ Qe.extend(Gc);
275
+ Qe.extend(zc);
276
+ Qe.extend(Kc);
277
+ Qe.extend(Jc);
278
+ Qe.extend(Qc);
279
+ Qe.extend(Xc);
280
+ Qe.extend(Zc);
281
281
  const { Text: Bd, Title: jd } = ln, { useToken: Ud } = Ze, Wd = {
282
282
  left: "justify-start",
283
283
  center: "justify-center",
@@ -291,9 +291,9 @@ const { Text: Bd, Title: jd } = ln, { useToken: Ud } = Ze, Wd = {
291
291
  time: "HH:mm",
292
292
  datetime: "DD/MM/YYYY HH:mm"
293
293
  };
294
- f = u ? Je(u).format(
294
+ f = u ? Qe(u).format(
295
295
  v[t.fieldType]
296
- ) : "", t.humanDate ? u = u ? Je(u).fromNow() : "" : (u = f, f = "");
296
+ ) : "", t.humanDate ? u = u ? Qe(u).fromNow() : "" : (u = f, f = "");
297
297
  }
298
298
  const h = n || (a ? r ? "left" : "right" : "left"), { token: g } = Ud(), y = l === void 0 ? Bd : jd;
299
299
  return /* @__PURE__ */ N(
@@ -1583,7 +1583,7 @@ const vn = ({
1583
1583
  }
1584
1584
  ), ku = (e) => {
1585
1585
  const { ooui: t } = e, { relation: n, context: r, views: o } = t, [i, a] = T(!0), [l, c] = T(), [d, p] = T(/* @__PURE__ */ new Map()), u = de(Xe), { getContext: f } = u || {};
1586
- Qe(() => {
1586
+ Je(() => {
1587
1587
  h();
1588
1588
  }, [t]);
1589
1589
  const m = async (g) => o && o[g] ? o[g] : await V.getHandler().getView({
@@ -1612,7 +1612,7 @@ const vn = ({
1612
1612
  iconField: F,
1613
1613
  colorField: C
1614
1614
  } = r, S = i.filter((x) => x.values), R = de(Xe), { getContext: I } = R || {};
1615
- Qe(() => {
1615
+ Je(() => {
1616
1616
  w();
1617
1617
  }, [i]);
1618
1618
  const E = (x) => {
@@ -2787,7 +2787,7 @@ const so = (e) => (t) => {
2787
2787
  });
2788
2788
  if (tf(e)) {
2789
2789
  const t = nf(e);
2790
- return t === null ? e : Je(e, Er.input[t]).format(
2790
+ return t === null ? e : Qe(e, Er.input[t]).format(
2791
2791
  Er.output[t]
2792
2792
  );
2793
2793
  } else
@@ -2888,7 +2888,7 @@ const Er = {
2888
2888
  };
2889
2889
  function nf(e) {
2890
2890
  for (const t in Er.input)
2891
- if (Je(
2891
+ if (Qe(
2892
2892
  e,
2893
2893
  Er.input[t],
2894
2894
  !0
@@ -3050,7 +3050,7 @@ const ff = ({
3050
3050
  uninformedString: l("uninformed"),
3051
3051
  manualIds: i
3052
3052
  });
3053
- if (Qe(() => {
3053
+ if (Je(() => {
3054
3054
  m();
3055
3055
  }, [e, t, o, r, n]), d || !p)
3056
3056
  return /* @__PURE__ */ s(fr, {});
@@ -3141,9 +3141,9 @@ const ff = ({
3141
3141
  if (Array.isArray(o)) {
3142
3142
  const [a, l, c] = o, d = a.split("#")[0], p = (i = t == null ? void 0 : t[d]) == null ? void 0 : i.type;
3143
3143
  if (p === "date")
3144
- r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = Je(c) : l === "<=" && (r[d][1] = Je(c));
3144
+ r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = Qe(c) : l === "<=" && (r[d][1] = Qe(c));
3145
3145
  else if (p === "datetime") {
3146
- const u = Je(c), f = a.split("#")[0];
3146
+ const u = Qe(c), f = a.split("#")[0];
3147
3147
  r[f + "#date"] || (r[f + "#date"] = [null, null]), r[f + "#time"] || (r[f + "#time"] = [null, null]), l === ">=" ? (r[f + "#date"][0] = u, r[f + "#time"][0] = u) : l === "<=" && (r[f + "#date"][1] = u, r[f + "#time"][1] = u);
3148
3148
  } else
3149
3149
  r[a] = c;
@@ -4380,7 +4380,7 @@ const { useToken: $f } = Ze, { Title: Nf, Text: br } = ln, Qr = ({
4380
4380
  const [i, a] = T(!0), [l, c] = T(), [d, p] = T(), u = J(!1), [f, m] = je(
4381
4381
  V.getHandler().getView
4382
4382
  ), { showErrorNotification: h } = yt();
4383
- Qe(() => (o && g(), () => {
4383
+ Je(() => (o && g(), () => {
4384
4384
  m();
4385
4385
  }), [r, t, e, n, o]);
4386
4386
  const g = _(async () => {
@@ -4613,7 +4613,7 @@ const { useToken: $f } = Ze, { Title: Nf, Text: br } = ln, Qr = ({
4613
4613
  l(!1);
4614
4614
  }
4615
4615
  }, [n, p, t, e == null ? void 0 : e.columns, c]);
4616
- Qe(() => {
4616
+ Je(() => {
4617
4617
  if (!(!p || Object.keys(p).length === 0))
4618
4618
  return u(), () => {
4619
4619
  d();
@@ -4699,11 +4699,11 @@ const { useToken: $f } = Ze, { Title: Nf, Text: br } = ln, Qr = ({
4699
4699
  i.preventDefault();
4700
4700
  const c = Wf(
4701
4701
  l,
4702
- Je(),
4702
+ Qe(),
4703
4703
  n
4704
4704
  );
4705
4705
  if (c) {
4706
- const d = Je(`2000-01-01 ${c}`);
4706
+ const d = Qe(`2000-01-01 ${c}`);
4707
4707
  t == null || t(d, c);
4708
4708
  }
4709
4709
  } else if (i.key === "Escape") {
@@ -4801,7 +4801,7 @@ const { useToken: $f } = Ze, { Title: Nf, Text: br } = ln, Qr = ({
4801
4801
  onChange: t
4802
4802
  }) => {
4803
4803
  const n = X(
4804
- () => Je().hour(0).minute(0).second(0),
4804
+ () => Qe().hour(0).minute(0).second(0),
4805
4805
  []
4806
4806
  );
4807
4807
  return /* @__PURE__ */ N(We, { gutter: 8, children: [
@@ -6080,7 +6080,7 @@ const Fl = (e) => {
6080
6080
  );
6081
6081
  C instanceof HTMLElement && C.focus();
6082
6082
  }, 300));
6083
- }, [n]), Qe(() => {
6083
+ }, [n]), Je(() => {
6084
6084
  l.current = new qi(o, i, 1), l.current.parse(), p(l.current._advancedSearchContainer);
6085
6085
  }, [i, o, n]);
6086
6086
  const h = _(
@@ -6281,7 +6281,7 @@ function eo(e) {
6281
6281
  const A = b ? y : h, x = A == null ? void 0 : A.rows;
6282
6282
  return x == null ? void 0 : x.map((P, D) => /* @__PURE__ */ s(We, { children: P.map((M, L) => /* @__PURE__ */ s(Ie, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(qa, { field: M }) }, L)) }, D));
6283
6283
  };
6284
- Qe(() => {
6284
+ Je(() => {
6285
6285
  F(!1), C.current = new qi(n, t), C.current.parse(), g(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
6286
6286
  }, [t, n]);
6287
6287
  const E = I(), w = (A) => {
@@ -6581,7 +6581,7 @@ const sr = ({
6581
6581
  ]);
6582
6582
  le(() => () => {
6583
6583
  v(), F();
6584
- }, []), Qe(() => ((o == null ? void 0 : o.length) && h && (E(), m.current = setInterval(E, $h)), () => {
6584
+ }, []), Je(() => ((o == null ? void 0 : o.length) && h && (E(), m.current = setInterval(E, $h)), () => {
6585
6585
  m.current && (clearInterval(m.current), m.current = null);
6586
6586
  }), [
6587
6587
  o,
@@ -6677,7 +6677,7 @@ const sr = ({
6677
6677
  a,
6678
6678
  R
6679
6679
  ]);
6680
- Qe(() => {
6680
+ Je(() => {
6681
6681
  g.size !== 0 && x();
6682
6682
  }, [g, x]);
6683
6683
  const P = _(
@@ -6736,7 +6736,7 @@ const sr = ({
6736
6736
  }).filter(Boolean);
6737
6737
  j.length > 0 && (j.forEach((W) => v.current.delete(W.id)), D(j), (Z = n == null ? void 0 : n.current) == null || Z.updateRows(j));
6738
6738
  }, [n, D]), L = _((H, j) => f.current.includes(j) ? !b.current.find((B) => B.id === (H == null ? void 0 : H.id)) : !1, []);
6739
- Qe(() => (p && C && (M(), F.current = setInterval(
6739
+ Je(() => (p && C && (M(), F.current = setInterval(
6740
6740
  M,
6741
6741
  Nh
6742
6742
  )), () => {
@@ -7134,7 +7134,7 @@ const Fw = Object.values(hn), Gh = (e) => {
7134
7134
  }))[0];
7135
7135
  g && g[1] && i(g[1]), l(!1);
7136
7136
  }, [t, o, a, p, c, n]);
7137
- Qe(() => {
7137
+ Je(() => {
7138
7138
  u();
7139
7139
  }, [t]);
7140
7140
  const f = er(
@@ -7242,7 +7242,7 @@ const Qh = (e) => /* @__PURE__ */ s(Ve, { ...e, children: /* @__PURE__ */ s(Dl,
7242
7242
  const { token: o } = Ze.useToken(), [i, a] = T(
7243
7243
  e ? e.replace(/,/g, ";").split(";").map((y) => y.trim()).filter((y) => y) : []
7244
7244
  ), [l, c] = T(""), d = J(null), p = de(Xe), { elementHasLostFocus: u } = p || {};
7245
- Qe(() => {
7245
+ Je(() => {
7246
7246
  if (e) {
7247
7247
  const y = e.replace(/,/g, ";").split(";").map((v) => v.trim()).filter(Boolean);
7248
7248
  a(y);
@@ -7474,7 +7474,7 @@ const Qh = (e) => /* @__PURE__ */ s(Ve, { ...e, children: /* @__PURE__ */ s(Dl,
7474
7474
  }, ig = ({ value: e }) => X(() => {
7475
7475
  if (!e || e && e.length === 0)
7476
7476
  return /* @__PURE__ */ s(pe, {});
7477
- const t = Je(
7477
+ const t = Qe(
7478
7478
  e,
7479
7479
  wt.date.dateInternalFormat
7480
7480
  ).format(wt.date.dateDisplayFormat);
@@ -7488,7 +7488,7 @@ const Qh = (e) => /* @__PURE__ */ s(Ve, { ...e, children: /* @__PURE__ */ s(Dl,
7488
7488
  }) => X(() => {
7489
7489
  if (!e || e && e.length === 0)
7490
7490
  return /* @__PURE__ */ s(pe, {});
7491
- const n = Je.tz(
7491
+ const n = Qe.tz(
7492
7492
  e,
7493
7493
  wt.time.dateInternalFormat,
7494
7494
  t.timezone || "Europe/Madrid"
@@ -8007,7 +8007,7 @@ function wg(e, t) {
8007
8007
  se,
8008
8008
  m
8009
8009
  ]), xn = J(j), Cn = J(P);
8010
- Qe(() => {
8010
+ Je(() => {
8011
8011
  const ve = !vs(
8012
8012
  j,
8013
8013
  xn.current
@@ -9015,7 +9015,7 @@ const Hl = Nt(Fg), Tg = Ft, Ig = (e) => {
9015
9015
  };
9016
9016
  }, [t]), le(() => () => {
9017
9017
  _e();
9018
- }, []), Qe(() => {
9018
+ }, []), Je(() => {
9019
9019
  !n || !r || t || Pt();
9020
9020
  }, [
9021
9021
  r,
@@ -9034,7 +9034,7 @@ const Hl = Nt(Fg), Tg = Ft, Ig = (e) => {
9034
9034
  }
9035
9035
  ne === void 0 && ue.current !== void 0 && ee(!0), ue.current = ne;
9036
9036
  }
9037
- }, [ne]), Qe(() => {
9037
+ }, [ne]), Je(() => {
9038
9038
  const fe = !vs(
9039
9039
  E,
9040
9040
  q.current
@@ -9649,7 +9649,7 @@ const Dg = Nt(Og), gn = "legacy", Pg = (e) => {
9649
9649
  searchTreeNameSearch: m,
9650
9650
  limit: h
9651
9651
  } = e, g = J(t), [y, v] = T(gn), { treeMaxLimit: b } = Jt(), { setLimit: F } = Sn();
9652
- Qe(() => {
9652
+ Je(() => {
9653
9653
  if (a.isExpandable) {
9654
9654
  v("paginated");
9655
9655
  return;
@@ -10315,7 +10315,7 @@ const Dg = Nt(Og), gn = "legacy", Pg = (e) => {
10315
10315
  time: "HH:mm",
10316
10316
  datetime: "DD/MM/YYYY HH:mm"
10317
10317
  };
10318
- g = r ? Je(r).format(b[n.fieldType]) : " ";
10318
+ g = r ? Qe(r).format(b[n.fieldType]) : " ";
10319
10319
  }
10320
10320
  if (n.fieldType === "many2one" && r && ((v = n.raw_props) != null && v.relation) && (g = /* @__PURE__ */ N(lt, { children: [
10321
10321
  g,
@@ -10394,7 +10394,7 @@ const Dg = Nt(Og), gn = "legacy", Pg = (e) => {
10394
10394
  return /* @__PURE__ */ s(Ve, { type: "array", ...e, children: /* @__PURE__ */ s(qg, { ooui: t }) });
10395
10395
  }, qg = (e) => {
10396
10396
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, i = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = T([]), [c, d] = T(), [p, u] = T(!1), { relation: f, context: m, readOnly: h, field: g } = n, y = de(Xe), { getContext: v } = y || {};
10397
- Qe(() => {
10397
+ Je(() => {
10398
10398
  F();
10399
10399
  }, [o]);
10400
10400
  const b = (R) => {
@@ -10706,7 +10706,7 @@ const Dg = Nt(Og), gn = "legacy", Pg = (e) => {
10706
10706
  r,
10707
10707
  a
10708
10708
  ]);
10709
- Qe(() => (n && (o == null ? void 0 : o.length) && d && (h(), c.current = setInterval(h, ry)), () => {
10709
+ Je(() => (n && (o == null ? void 0 : o.length) && d && (h(), c.current = setInterval(h, ry)), () => {
10710
10710
  f(), c.current && (clearInterval(c.current), c.current = null);
10711
10711
  }), [
10712
10712
  o,
@@ -10838,7 +10838,7 @@ function ay(e, t) {
10838
10838
  W && (fe({
10839
10839
  elementHasLostFocus: !0
10840
10840
  }), ce(!1));
10841
- }, [W]), Qe(() => {
10841
+ }, [W]), Je(() => {
10842
10842
  var K;
10843
10843
  if (x) {
10844
10844
  const te = x;
@@ -11711,23 +11711,23 @@ const Wn = Nt(ay), Yn = (e) => {
11711
11711
  permissions: t,
11712
11712
  enabled: n = !0
11713
11713
  }) => {
11714
- const [r, o] = T(null), [i, a] = T(!0), [l, c] = T(null), { checkPermissions: d, cancelRequest: p } = ly(), u = _(async () => {
11715
- if (!(!n || !e || !t.length)) {
11716
- a(!0), c(null);
11714
+ const [r, o] = T(null), [i, a] = T(!0), [l, c] = T(null), d = J(!1), { checkPermissions: p, cancelRequest: u } = ly();
11715
+ return Je(() => !n || !e || !t.length ? void 0 : ((async () => {
11716
+ if (!d.current) {
11717
+ d.current = !0, a(!0), c(null);
11717
11718
  try {
11718
- const m = await d(e, t);
11719
- o(m);
11720
- } catch (m) {
11721
- const h = m instanceof Error ? m : new Error("Unknown error occurred");
11722
- c(h), o(null);
11719
+ const h = await p(e, t);
11720
+ o(h);
11721
+ } catch (h) {
11722
+ const g = h instanceof Error ? h : new Error("Unknown error occurred");
11723
+ c(g), o(null);
11723
11724
  } finally {
11724
- a(!1);
11725
+ a(!1), d.current = !1;
11725
11726
  }
11726
11727
  }
11727
- }, [d, n, e, t]);
11728
- return le(() => (u(), () => {
11729
- p();
11730
- }), []), X(
11728
+ })(), () => {
11729
+ u();
11730
+ }), [e, t, n]), X(
11731
11731
  () => ({
11732
11732
  permissions: r,
11733
11733
  loading: i,
@@ -12453,7 +12453,7 @@ const by = (e) => {
12453
12453
  const ue = _(() => {
12454
12454
  (a === "form" && i.some((G) => !G.values) || a === "tree" && i.some((G) => !G.treeValues)) && ae();
12455
12455
  }, [i, a]);
12456
- Qe(() => {
12456
+ Je(() => {
12457
12457
  he();
12458
12458
  }, [h]);
12459
12459
  const q = (G) => {
@@ -12488,7 +12488,7 @@ const by = (e) => {
12488
12488
  S(!1);
12489
12489
  }
12490
12490
  };
12491
- Qe(() => {
12491
+ Je(() => {
12492
12492
  he();
12493
12493
  }, [y()]);
12494
12494
  async function he() {
@@ -12838,9 +12838,9 @@ const by = (e) => {
12838
12838
  domain: a,
12839
12839
  getAllHierarchyValues: l
12840
12840
  } = de(Xe) || {};
12841
- Qe(() => {
12841
+ Je(() => {
12842
12842
  c();
12843
- }, [a]), Qe(() => {
12843
+ }, [a]), Je(() => {
12844
12844
  c();
12845
12845
  }, [l()]);
12846
12846
  async function c() {
@@ -13279,7 +13279,7 @@ const Iy = ({
13279
13279
  const v = J(), b = c || v, F = J({}), C = J(), S = J(), R = J(e), { t: I } = ye(), E = nn(
13280
13280
  jt.FEATURE_MANY2ONE_SORT
13281
13281
  );
13282
- Qe(() => {
13282
+ Je(() => {
13283
13283
  var L, k;
13284
13284
  if (R.current = e, S.current === void 0) {
13285
13285
  S.current = e;
@@ -13618,7 +13618,7 @@ const Iy = ({
13618
13618
  const { ooui: t } = e, { mode: n, relation: r, views: o, required: i, context: a } = t;
13619
13619
  let l;
13620
13620
  const [c, d] = T(!0), [p, u] = T(), [f, m] = T(/* @__PURE__ */ new Map()), h = de(Xe), { getContext: g, formView: y } = h || {}, { view_id: v } = y || {};
13621
- Qe(() => {
13621
+ Je(() => {
13622
13622
  C();
13623
13623
  }, [t]);
13624
13624
  const b = nn(
@@ -13689,7 +13689,7 @@ const Iy = ({
13689
13689
  ) });
13690
13690
  }, $y = (e) => {
13691
13691
  const { ooui: t, value: n } = e, { treeType: r, setTreeType: o } = kl();
13692
- return Qe(() => {
13692
+ return Je(() => {
13693
13693
  if (t.infinite) {
13694
13694
  o("infinite");
13695
13695
  return;
@@ -14241,7 +14241,7 @@ const { useToken: Uy } = Ze, { TextArea: Vo } = xt, Wy = (e) => {
14241
14241
  (a) => {
14242
14242
  const l = a.target;
14243
14243
  if (l.value) {
14244
- const c = Je(
14244
+ const c = Qe(
14245
14245
  l.value,
14246
14246
  wt[e].dateDisplayFormat
14247
14247
  ).format(wt[e].dateInternalFormat);
@@ -14260,7 +14260,7 @@ const { useToken: Uy } = Ze, { TextArea: Vo } = xt, Wy = (e) => {
14260
14260
  return;
14261
14261
  a.preventDefault(), Zh({
14262
14262
  currentValue: c,
14263
- now: Je(),
14263
+ now: Qe(),
14264
14264
  mode: e,
14265
14265
  showTime: t,
14266
14266
  onChange: (d) => n == null ? void 0 : n(d)
@@ -14273,7 +14273,7 @@ const { useToken: Uy } = Ze, { TextArea: Vo } = xt, Wy = (e) => {
14273
14273
  if (l.value === "")
14274
14274
  n == null || n(null);
14275
14275
  else {
14276
- const u = Je(
14276
+ const u = Qe(
14277
14277
  l.value,
14278
14278
  wt[e].dateDisplayFormat
14279
14279
  ).format(wt[e].dateInternalFormat);
@@ -14303,7 +14303,7 @@ const { useToken: Uy } = Ze, { TextArea: Vo } = xt, Wy = (e) => {
14303
14303
  return /* @__PURE__ */ s(Ve, { required: r, ...e, children: /* @__PURE__ */ s(oc, { ooui: t, showTime: n }) });
14304
14304
  }, iv = (e, t, n) => {
14305
14305
  try {
14306
- return Je.tz(e, t, n);
14306
+ return Qe.tz(e, t, n);
14307
14307
  } catch (r) {
14308
14308
  return console.error("Parse error:", r), null;
14309
14309
  }
@@ -14409,7 +14409,7 @@ const sc = ot(sv), av = (e) => {
14409
14409
  e.onChange && e.onChange(o);
14410
14410
  },
14411
14411
  numberOfSelectsToHide: 3,
14412
- value: e.value ? Je(e.value, "HH:mm:ss") : void 0,
14412
+ value: e.value ? Qe(e.value, "HH:mm:ss") : void 0,
14413
14413
  disabled: t
14414
14414
  }
14415
14415
  );
@@ -15407,7 +15407,7 @@ const Iv = (e) => {
15407
15407
  H(!1);
15408
15408
  }
15409
15409
  }, [n, M, g, W, k]);
15410
- Qe(() => {
15410
+ Je(() => {
15411
15411
  ce();
15412
15412
  }, [
15413
15413
  n,
@@ -15850,10 +15850,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15850
15850
  c,
15851
15851
  se
15852
15852
  ]);
15853
- l({ tabKey: c, canWeClose: Be }), Qe(() => {
15853
+ l({ tabKey: c, canWeClose: Be }), Je(() => {
15854
15854
  const Se = R.find((qe) => qe.type === "tree"), Ye = R.find((qe) => d.id ? qe.type === d.type && qe.view_id === d.id : qe.type === d.type);
15855
15855
  Pe(Ye || Se), f ? he == null || he(O) : (_e(void 0), L(void 0)), Ce();
15856
- }, [r, i, f]), Qe(() => {
15856
+ }, [r, i, f]), Je(() => {
15857
15857
  if (me === c) {
15858
15858
  he == null || he(A);
15859
15859
  const Se = { action_id: m, action_type: h };
@@ -16516,7 +16516,7 @@ const jv = Nt(Bv), Uv = (e) => {
16516
16516
  return /* @__PURE__ */ s(Ve, { type: "array", ...e, children: /* @__PURE__ */ s(Wv, { ooui: t }) });
16517
16517
  }, Wv = (e) => {
16518
16518
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, i = o.filter((E) => E.operation !== "pendingRemove").map((E) => E.id), [a, l] = T([]), [c, d] = T(), [p, u] = T(!1), { relation: f, context: m, readOnly: h, field: g, columns: y } = n, v = de(Xe), { getContext: b } = v || {};
16519
- Qe(() => {
16519
+ Je(() => {
16520
16520
  C();
16521
16521
  }, [o]);
16522
16522
  const F = (E) => {
@@ -16758,7 +16758,7 @@ const ab = (e) => {
16758
16758
  avatar: /* @__PURE__ */ s(sb, { email: t.email, theme: "mp" }),
16759
16759
  title: t.author,
16760
16760
  description: /* @__PURE__ */ N(lt, { direction: "horizontal", children: [
16761
- /* @__PURE__ */ s("span", { title: t.date, children: Je(t.date).fromNow() }),
16761
+ /* @__PURE__ */ s("span", { title: t.date, children: Qe(t.date).fromNow() }),
16762
16762
  t.isAuthor && /* @__PURE__ */ s(jo, { color: "blue", children: r("author") })
16763
16763
  ] }),
16764
16764
  style: { marginBottom: "5px" }