@gisce/react-ooui 2.74.0-alpha.3 → 2.74.0-alpha.4

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.
@@ -23,7 +23,7 @@ export type DateTimePatterns = {
23
23
  export declare const createFormatRegex: (format: string) => RegExp;
24
24
  export declare const createDateTimePatterns: () => DateTimePatterns;
25
25
  type UpdateDateTimeParams = {
26
- currentValue: string;
26
+ currentValue: string | undefined;
27
27
  now: Dayjs;
28
28
  mode: DateMode;
29
29
  showTime: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.helpers.d.ts","sourceRoot":"","sources":["../../src/common/DatePicker.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,MAAM,KAAG,MAclD,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAO,gBAOxC,CAAC;AAEH,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,KAAK,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,oBAAoB,SAqD1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBACd,MAAM,YACV,OAAO,KAChB,OAaF,CAAC"}
1
+ {"version":3,"file":"DatePicker.helpers.d.ts","sourceRoot":"","sources":["../../src/common/DatePicker.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,MAAM,KAAG,MAclD,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAO,gBAOxC,CAAC;AAEH,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,KAAK,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,oBAAoB,SA2D1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBACd,MAAM,YACV,OAAO,KAChB,OAaF,CAAC"}
@@ -367,7 +367,7 @@ const { confirm: fd } = xt, zt = ({
367
367
  STOCK_CLEAR: "CloseSquare",
368
368
  STOCK_UNINDENT: "AlignLeft",
369
369
  STOCK_PREFERENCES: "Setting"
370
- }, wt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), hs.hasOwnProperty(e) ? gs(hs[e], t) : gs(e, t));
370
+ }, St = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), hs.hasOwnProperty(e) ? gs(hs[e], t) : gs(e, t));
371
371
  function md(e) {
372
372
  return `${e.split("-").map(
373
373
  (t) => t.replace(
@@ -442,7 +442,7 @@ const No = (e) => {
442
442
  if (m)
443
443
  return /* @__PURE__ */ s($t, {});
444
444
  if (l) {
445
- const b = wt(l);
445
+ const b = St(l);
446
446
  return b && /* @__PURE__ */ s(b, {});
447
447
  }
448
448
  }
@@ -475,7 +475,7 @@ const No = (e) => {
475
475
  if (y)
476
476
  return /* @__PURE__ */ s($t, {});
477
477
  if (d) {
478
- const x = wt(d);
478
+ const x = St(d);
479
479
  return x && /* @__PURE__ */ s(x, {});
480
480
  }
481
481
  }
@@ -556,7 +556,7 @@ const No = (e) => {
556
556
  if (y)
557
557
  return /* @__PURE__ */ s($t, {});
558
558
  if (u) {
559
- const C = wt(u);
559
+ const C = St(u);
560
560
  return C && /* @__PURE__ */ s(C, {});
561
561
  }
562
562
  }
@@ -627,7 +627,7 @@ const ji = (e) => {
627
627
  message: t,
628
628
  title: r
629
629
  };
630
- }, { error: yd, warning: vd } = xt, bt = (e) => {
630
+ }, { error: yd, warning: vd } = xt, wt = (e) => {
631
631
  const { message: t, type: n, title: r } = ji(e);
632
632
  (n === "error" ? yd : vd)({
633
633
  title: r,
@@ -646,7 +646,7 @@ const ji = (e) => {
646
646
  const w = await _();
647
647
  await C(w);
648
648
  } catch (w) {
649
- bt(w);
649
+ wt(w);
650
650
  }
651
651
  m(!1);
652
652
  }
@@ -707,7 +707,7 @@ const ji = (e) => {
707
707
  fields: {}
708
708
  });
709
709
  } catch (w) {
710
- bt(w);
710
+ wt(w);
711
711
  }
712
712
  p(!1), i();
713
713
  }
@@ -1019,7 +1019,7 @@ function $r(e, t) {
1019
1019
  const $o = (e) => {
1020
1020
  const { value: t, style: n = {} } = e;
1021
1021
  if (t) {
1022
- const r = wt(t);
1022
+ const r = St(t);
1023
1023
  return r ? /* @__PURE__ */ s(r, {}) : /* @__PURE__ */ s(
1024
1024
  "img",
1025
1025
  {
@@ -1030,7 +1030,7 @@ const $o = (e) => {
1030
1030
  }
1031
1031
  }, Md = (e) => {
1032
1032
  const { ooui: t } = e, { required: n, id: r } = t;
1033
- return wt(r) ? /* @__PURE__ */ s($o, { value: r }) : /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s($d, { ooui: t }) });
1033
+ return St(r) ? /* @__PURE__ */ s($o, { value: r }) : /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s($d, { ooui: t }) });
1034
1034
  }, $d = (e) => {
1035
1035
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, a = q(null), { t: i } = ge(), l = (u) => {
1036
1036
  r == null || r(u);
@@ -1588,7 +1588,7 @@ const pn = ({
1588
1588
  if (i)
1589
1589
  return /* @__PURE__ */ s(et, {});
1590
1590
  const k = (F) => {
1591
- const P = wt(F);
1591
+ const P = St(F);
1592
1592
  return P && /* @__PURE__ */ s(P, {});
1593
1593
  }, S = x.map((F) => {
1594
1594
  var E, H, V, $;
@@ -2266,7 +2266,7 @@ function pu({
2266
2266
  `bold ${Math.floor(c * 1.03)}px sans-serif`
2267
2267
  );
2268
2268
  i && (m = m * 2), m >= t * 0.85 && (c = t * 0.85 / m * c);
2269
- const h = i && wt(i, { style: { fontSize: c * 0.7 } });
2269
+ const h = i && St(i, { style: { fontSize: c * 0.7 } });
2270
2270
  return /* @__PURE__ */ s(
2271
2271
  "div",
2272
2272
  {
@@ -2314,7 +2314,7 @@ function hu({
2314
2314
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2315
2315
  );
2316
2316
  l && (p = p * 1.5), (p >= n * 0.85 || f * 2 < d) && (f = n * 0.85 / p * f);
2317
- const y = l && wt(l, { style: { fontSize: f } });
2317
+ const y = l && St(l, { style: { fontSize: f } });
2318
2318
  return /* @__PURE__ */ s(
2319
2319
  "div",
2320
2320
  {
@@ -3147,7 +3147,7 @@ function yt(e) {
3147
3147
  const da = (e) => /* @__PURE__ */ s(yt, { ...e, type: "primary", danger: !0 });
3148
3148
  function ua(e) {
3149
3149
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ae(
3150
- St
3150
+ Ct
3151
3151
  ), { t: o } = ge(), a = () => {
3152
3152
  if (n) {
3153
3153
  Vn({
@@ -3344,7 +3344,7 @@ const Nn = It.createContext(null), As = async (e) => {
3344
3344
  type: V
3345
3345
  } = w;
3346
3346
  if (V !== "ir.actions.report.xml") {
3347
- bt(`${V} action not supported`);
3347
+ wt(`${V} action not supported`);
3348
3348
  return;
3349
3349
  }
3350
3350
  const { ids: $ } = E || {}, L = $ || [], D = typeof F == "string" ? Zt({
@@ -3364,7 +3364,7 @@ const Nn = It.createContext(null), As = async (e) => {
3364
3364
  v(W);
3365
3365
  }, 1e3);
3366
3366
  } catch (W) {
3367
- a.current = !1, clearInterval(o.current), bt(W), l(!1);
3367
+ a.current = !1, clearInterval(o.current), wt(W), l(!1);
3368
3368
  }
3369
3369
  }
3370
3370
  async function v(T) {
@@ -3378,7 +3378,7 @@ const Nn = It.createContext(null), As = async (e) => {
3378
3378
  $r(w.result, A.mime);
3379
3379
  }
3380
3380
  } catch (A) {
3381
- a.current = !1, clearInterval(o.current), l(!1), bt(A.exception || A);
3381
+ a.current = !1, clearInterval(o.current), l(!1), wt(A.exception || A);
3382
3382
  }
3383
3383
  }
3384
3384
  async function b({
@@ -3404,7 +3404,7 @@ const Nn = It.createContext(null), As = async (e) => {
3404
3404
  "_blank"
3405
3405
  );
3406
3406
  else
3407
- return bt(`${F} action not supported`), {};
3407
+ return wt(`${F} action not supported`), {};
3408
3408
  }
3409
3409
  async function _({
3410
3410
  actionData: T,
@@ -3813,7 +3813,7 @@ function Zu({
3813
3813
  treeType: F,
3814
3814
  setSearchParams: P,
3815
3815
  setSearchValues: E
3816
- } = ae(St), H = Jt(
3816
+ } = ae(Ct), H = Jt(
3817
3817
  Lt.FEATURE_ADVANCED_EXPORT
3818
3818
  ), { t: V } = ge(), [$, L] = I(!1), D = q(!0), W = O(() => {
3819
3819
  var z;
@@ -3841,7 +3841,7 @@ function Zu({
3841
3841
  context: { ...e }
3842
3842
  }) && ((z = h == null ? void 0 : h.current) == null || z.refreshResults());
3843
3843
  } catch (Y) {
3844
- bt(Y);
3844
+ wt(Y);
3845
3845
  } finally {
3846
3846
  u == null || u(!1);
3847
3847
  }
@@ -3860,7 +3860,7 @@ function Zu({
3860
3860
  context: { ...e }
3861
3861
  }), p == null || p(void 0), y == null || y(void 0), (z = h == null ? void 0 : h.current) == null || z.refreshResults();
3862
3862
  } catch (Y) {
3863
- bt(Y);
3863
+ wt(Y);
3864
3864
  } finally {
3865
3865
  c == null || c(!1);
3866
3866
  }
@@ -4129,7 +4129,7 @@ const { useToken: tf } = Qe, { Title: nf, Text: fr } = nn, Br = ({
4129
4129
  totalItems: c,
4130
4130
  selectedRowItems: d,
4131
4131
  treeType: f
4132
- } = ae(St), { t: u } = ge(), { token: m } = tf(), h = Q(() => {
4132
+ } = ae(Ct), { t: u } = ge(), { token: m } = tf(), h = Q(() => {
4133
4133
  if (!n)
4134
4134
  return null;
4135
4135
  if ((o == null ? void 0 : o.type) === "form" && a) {
@@ -4703,7 +4703,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4703
4703
  ]
4704
4704
  }
4705
4705
  );
4706
- }, Ct = {
4706
+ }, bt = {
4707
4707
  date: {
4708
4708
  placeholder: "__/__/____",
4709
4709
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4725,28 +4725,32 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4725
4725
  withSeconds: yn("DD/MM/YYYY HH:mm:ss")
4726
4726
  }), vf = (e) => {
4727
4727
  const { currentValue: t, now: n, mode: r, showTime: o, onChange: a } = e, i = Ca();
4728
+ if (!t || t.trim() === "") {
4729
+ a(n.format(bt[r].dateInternalFormat));
4730
+ return;
4731
+ }
4728
4732
  if (i.day.test(t)) {
4729
4733
  const l = n.date(parseInt(t));
4730
- a(l.format(Ct[r].dateInternalFormat));
4734
+ a(l.format(bt[r].dateInternalFormat));
4731
4735
  }
4732
4736
  if (i.dayMonth.test(t)) {
4733
4737
  const [l, c] = t.split("/").map((f) => parseInt(f)), d = n.date(l).month(c - 1);
4734
- a(d.format(Ct[r].dateInternalFormat));
4738
+ a(d.format(bt[r].dateInternalFormat));
4735
4739
  }
4736
4740
  if (i.fullDate.test(t)) {
4737
4741
  const [l, c, d] = t.split("/").map((u) => parseInt(u)), f = n.date(l).month(c - 1).year(d);
4738
- o || a(f.format(Ct.date.dateInternalFormat)), a(f.format(Ct.time.dateInternalFormat));
4742
+ o || a(f.format(bt.date.dateInternalFormat)), a(f.format(bt.time.dateInternalFormat));
4739
4743
  }
4740
4744
  if (o) {
4741
4745
  const [l, c] = t.split(" "), [d, f, u] = l.split("/").map((h) => parseInt(h));
4742
4746
  let m = n.date(d).month(f - 1).year(u);
4743
4747
  if (i.withHours.test(t)) {
4744
4748
  const [h] = c.split(":").map((p) => parseInt(p));
4745
- m = m.hour(h), a(m.format(Ct.time.dateInternalFormat));
4749
+ m = m.hour(h), a(m.format(bt.time.dateInternalFormat));
4746
4750
  }
4747
4751
  if (i.withMinutes.test(t)) {
4748
4752
  const [h, p] = c.split(":").map((y) => parseInt(y));
4749
- m = m.hour(h).minute(p), a(m.format(Ct.time.dateInternalFormat));
4753
+ m = m.hour(h).minute(p), a(m.format(bt.time.dateInternalFormat));
4750
4754
  }
4751
4755
  }
4752
4756
  }, bf = (e, t) => {
@@ -4785,8 +4789,8 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4785
4789
  return /* @__PURE__ */ s(oe, {});
4786
4790
  const t = tt(
4787
4791
  e,
4788
- Ct.date.dateInternalFormat
4789
- ).format(Ct.date.dateDisplayFormat);
4792
+ bt.date.dateInternalFormat
4793
+ ).format(bt.date.dateDisplayFormat);
4790
4794
  return /* @__PURE__ */ s(oe, { children: t });
4791
4795
  }, [e]), If = ({
4792
4796
  value: e,
@@ -4796,8 +4800,8 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4796
4800
  return /* @__PURE__ */ s(oe, {});
4797
4801
  const t = tt(
4798
4802
  e,
4799
- Ct.time.dateInternalFormat
4800
- ).format(Ct.time.dateDisplayFormat);
4803
+ bt.time.dateInternalFormat
4804
+ ).format(bt.time.dateDisplayFormat);
4801
4805
  return /* @__PURE__ */ s(oe, { children: t });
4802
4806
  }, [e]), _s = ({
4803
4807
  value: e
@@ -7792,7 +7796,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7792
7796
  readonly: R,
7793
7797
  onSelectAllRecords: T
7794
7798
  } = e, w = q(null), [A, k] = I([]), S = q(!1), [F, P] = I(), { t: E } = ge(), H = q(r), V = ae(
7795
- St
7799
+ Ct
7796
7800
  ), { title: $ = void 0, setTitle: L = void 0 } = (C ? V : {}) || {}, D = Jt(
7797
7801
  Lt.FEATURE_MANY2ONE_SORT
7798
7802
  ), W = Q(() => {
@@ -8159,7 +8163,7 @@ function Ah(e, t) {
8159
8163
  } = e, [h, p] = I(!1), [y, g] = I(!1), v = q(!1), b = q(null), [_, C] = I(), [x, R] = I(), [T, w] = I(), [A, k] = I(), [S, F] = I(200), P = q(), { height: E } = Nr(), H = ae(
8160
8164
  Nn
8161
8165
  ), { processAction: V } = H || {}, $ = ae(
8162
- St
8166
+ Ct
8163
8167
  ), {
8164
8168
  setResults: L = void 0,
8165
8169
  setCurrentItemIndex: D = void 0,
@@ -8296,7 +8300,7 @@ function Ah(e, t) {
8296
8300
  try {
8297
8301
  await he(We);
8298
8302
  } catch (Pt) {
8299
- bt(Pt);
8303
+ wt(Pt);
8300
8304
  }
8301
8305
  return;
8302
8306
  }
@@ -9157,7 +9161,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9157
9161
  setPreviousView: x,
9158
9162
  setTreeType: R,
9159
9163
  setSelectedRowItems: T
9160
- } = ae(St);
9164
+ } = ae(Ct);
9161
9165
  le(() => {
9162
9166
  R == null || R(g);
9163
9167
  }, [g]);
@@ -9242,7 +9246,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9242
9246
  }
9243
9247
  )
9244
9248
  ] }) : null;
9245
- }, St = Vl(
9249
+ }, Ct = Vl(
9246
9250
  null
9247
9251
  ), Nh = (e) => {
9248
9252
  const {
@@ -9311,7 +9315,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9311
9315
  return await ((st = i.current) == null ? void 0 : st.submitForm());
9312
9316
  };
9313
9317
  return /* @__PURE__ */ s(
9314
- St.Provider,
9318
+ Ct.Provider,
9315
9319
  {
9316
9320
  value: {
9317
9321
  title: ve,
@@ -9382,8 +9386,8 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9382
9386
  children: t
9383
9387
  }
9384
9388
  );
9385
- }, Mh = () => !!ae(St), Mn = () => {
9386
- const e = ae(St);
9389
+ }, Mh = () => !!ae(Ct), Mn = () => {
9390
+ const e = ae(Ct);
9387
9391
  return e || {
9388
9392
  title: "",
9389
9393
  currentView: {},
@@ -9491,7 +9495,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9491
9495
  fixedHeight: c,
9492
9496
  viewData: d
9493
9497
  } = e, [f, u] = I(!1), [m, h] = I(), p = ae(
9494
- St
9498
+ Ct
9495
9499
  ), { setGraphIsLoading: y = void 0 } = p || {}, [g] = ze(M.getHandler().getView);
9496
9500
  Dt(t, () => ({
9497
9501
  refresh: () => {
@@ -9584,7 +9588,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9584
9588
  };
9585
9589
  }, Hh = (e, t) => {
9586
9590
  const { view_id: n, model: r, context: o, domain: a, manualIds: i, fixedHeight: l } = e, c = ae(
9587
- St
9591
+ Ct
9588
9592
  ), { setGraphIsLoading: d = void 0 } = c || {}, { error: f, loading: u, graphData: m, fetchData: h } = Lh({
9589
9593
  view_id: n,
9590
9594
  model: r,
@@ -9758,7 +9762,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9758
9762
  style: { color: t.colorPrimaryBg }
9759
9763
  }
9760
9764
  ) })
9761
- ] }), u = wt(a);
9765
+ ] }), u = St(a);
9762
9766
  let m = r;
9763
9767
  if (n.selectionValues.size)
9764
9768
  m = n.selectionValues.get(r);
@@ -10223,7 +10227,7 @@ function ug(e, t) {
10223
10227
  parentWidth: T,
10224
10228
  onMustRefreshParent: w
10225
10229
  } = e, { t: A } = ge(), [k, S] = I(!1), [F, P] = I(), [E, H] = I(), [V] = Et.useForm(), [$, L] = I(), [D, W] = I(), G = ae(fl), [j, ne] = I(), [X, we] = I(!1), B = q(), U = q({}), me = q({}), ee = q(!1), se = q(!1), Z = q(!1), z = (T !== void 0 ? T : j) < dg, Y = ae(Je), { activeId: be, getPlainValues: Oe } = Y || {}, je = q(!1), xe = ae(
10226
- St
10230
+ Ct
10227
10231
  ), {
10228
10232
  setFormIsSaving: Ce = void 0,
10229
10233
  setFormHasChanges: fe = void 0,
@@ -10573,7 +10577,7 @@ function ug(e, t) {
10573
10577
  await Wn(pe);
10574
10578
  }
10575
10579
  } catch (J) {
10576
- bt(J);
10580
+ wt(J);
10577
10581
  }
10578
10582
  }, Wn = async (K) => {
10579
10583
  const J = E == null ? void 0 : E.onChangeFields[K];
@@ -10762,7 +10766,7 @@ function ug(e, t) {
10762
10766
  const De = Z.current ? he() : {}, ct = { ...pe, ...De };
10763
10767
  K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await Ze({ action: J, context: ct }), ie && rt(!1);
10764
10768
  } catch (De) {
10765
- ie && rt(!1), bt(De);
10769
+ ie && rt(!1), wt(De);
10766
10770
  }
10767
10771
  }
10768
10772
  const dr = () => !E && !F ? /* @__PURE__ */ s(et, {}) : !n && !p || !_ ? null : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
@@ -13009,7 +13013,7 @@ const Og = ({
13009
13013
  ) });
13010
13014
  };
13011
13015
  function Il(e) {
13012
- const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = wt(t.icon || ""), { t: a } = ge();
13016
+ const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = St(t.icon || ""), { t: a } = ge();
13013
13017
  return /* @__PURE__ */ s(
13014
13018
  "div",
13015
13019
  {
@@ -13060,7 +13064,7 @@ function Gg(e) {
13060
13064
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Qe.useToken();
13061
13065
  function a(i) {
13062
13066
  if (i) {
13063
- const l = wt(i);
13067
+ const l = St(i);
13064
13068
  return l && /* @__PURE__ */ s(l, {});
13065
13069
  }
13066
13070
  }
@@ -13206,7 +13210,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13206
13210
  ) })
13207
13211
  ] });
13208
13212
  }, Jg = (e) => {
13209
- const { ooui: t } = e, { label: n, icon: r } = t, o = wt(r || "");
13213
+ const { ooui: t } = e, { label: n, icon: r } = t, o = St(r || "");
13210
13214
  return /* @__PURE__ */ s(Ir, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ N(it, { children: [
13211
13215
  o ? /* @__PURE__ */ s(o, {}) : null,
13212
13216
  n
@@ -13530,7 +13534,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13530
13534
  }, Al = nt(
13531
13535
  (e) => {
13532
13536
  const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: i, required: l } = r, c = Ia(), d = ly(l, !!i), f = o ? "time" : "date", u = Q(
13533
- () => t ? tt(t, Ct[f].dateInternalFormat) : void 0,
13537
+ () => t ? tt(t, bt[f].dateInternalFormat) : void 0,
13534
13538
  [t, f]
13535
13539
  ), m = O(
13536
13540
  (g) => {
@@ -13539,7 +13543,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13539
13543
  return;
13540
13544
  }
13541
13545
  n == null || n(
13542
- g.format(Ct[f].dateInternalFormat)
13546
+ g.format(bt[f].dateInternalFormat)
13543
13547
  );
13544
13548
  },
13545
13549
  [n, f]
@@ -13551,8 +13555,8 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13551
13555
  }), y = Q(
13552
13556
  () => ({
13553
13557
  style: { width: "100%", ...d },
13554
- placeholder: Ct[f].placeholder,
13555
- format: Ct[f].dateDisplayFormat
13558
+ placeholder: bt[f].placeholder,
13559
+ format: bt[f].dateDisplayFormat
13556
13560
  }),
13557
13561
  [f, d]
13558
13562
  );
@@ -13833,7 +13837,7 @@ function wy(e) {
13833
13837
  onAddNewAttachment: r,
13834
13838
  onListAllAttachments: o,
13835
13839
  onViewAttachmentDetails: a
13836
- } = e, { formRef: i } = ae(St), [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { t: h } = ge(), p = O(async () => {
13840
+ } = e, { formRef: i } = ae(Ct), [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { t: h } = ge(), p = O(async () => {
13837
13841
  if (!(!t || t.length === 0)) {
13838
13842
  c(!0);
13839
13843
  try {
@@ -13852,7 +13856,7 @@ function wy(e) {
13852
13856
  }))
13853
13857
  );
13854
13858
  } catch (v) {
13855
- bt(v);
13859
+ wt(v);
13856
13860
  }
13857
13861
  c(!1);
13858
13862
  }
@@ -13871,7 +13875,7 @@ function wy(e) {
13871
13875
  context: i.current.getContext()
13872
13876
  }))[0];
13873
13877
  } catch (_) {
13874
- bt(_);
13878
+ wt(_);
13875
13879
  }
13876
13880
  if (m(!1), !!b)
13877
13881
  if (b.datas) {
@@ -14464,7 +14468,7 @@ function _y({ refreshGraph: e }) {
14464
14468
  graphIsLoading: c,
14465
14469
  previousView: d,
14466
14470
  setPreviousView: f
14467
- } = ae(St);
14471
+ } = ae(Ct);
14468
14472
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
14469
14473
  /* @__PURE__ */ s(
14470
14474
  fa,
@@ -14523,7 +14527,7 @@ const Ry = (e) => {
14523
14527
  treeView: l,
14524
14528
  graphView: c
14525
14529
  } = e, d = q(), f = ae(
14526
- St
14530
+ Ct
14527
14531
  ), {
14528
14532
  setResults: u = void 0,
14529
14533
  setCurrentItemIndex: m = void 0,
@@ -14937,7 +14941,7 @@ function My(e, t) {
14937
14941
  (Ae) => Ae.type === "tree"
14938
14942
  ) : d ? Ne = ce.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type) : Ne = ce.find(
14939
14943
  (Ae) => Ae.type === "form"
14940
- ), Ne || (bt(
14944
+ ), Ne || (wt(
14941
14945
  `Error determining the first view to show for model ${r}.
14942
14946
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
14943
14947
  ), console.error(
@@ -15804,7 +15808,7 @@ const Yy = _t(Wy), Gy = (e) => {
15804
15808
  borderTop: "16px solid transparent",
15805
15809
  borderBottom: "16px solid transparent"
15806
15810
  }), m = (h) => {
15807
- const p = wt(h);
15811
+ const p = St(h);
15808
15812
  return p && /* @__PURE__ */ s(p, {});
15809
15813
  };
15810
15814
  return /* @__PURE__ */ s("ul", { style: c, children: (e.value || []).map((h, p) => /* @__PURE__ */ N("li", { style: d(h.active), children: [
@@ -15876,7 +15880,7 @@ const dv = (e) => {
15876
15880
  /* @__PURE__ */ s(av, { children: /* @__PURE__ */ s(cv, { text: t.text }) })
15877
15881
  ] }, t.id);
15878
15882
  }, ui = (e) => {
15879
- const t = wt(e);
15883
+ const t = St(e);
15880
15884
  return t && /* @__PURE__ */ s(t, {});
15881
15885
  }, uv = (e) => {
15882
15886
  const { value: t, ooui: n } = e, r = (t || []).map((o) => {
@@ -15925,7 +15929,7 @@ const dv = (e) => {
15925
15929
  }
15926
15930
  function c(f) {
15927
15931
  if (f) {
15928
- const u = wt(f);
15932
+ const u = St(f);
15929
15933
  return u && /* @__PURE__ */ s(u, {});
15930
15934
  }
15931
15935
  }
@@ -16094,7 +16098,7 @@ function Tv(e, t) {
16094
16098
  context: l
16095
16099
  });
16096
16100
  if (P.type === "ir.actions.wizard") {
16097
- bt("Action type not supported");
16101
+ wt("Action type not supported");
16098
16102
  return;
16099
16103
  }
16100
16104
  const [E, H] = T.split(","), V = parseInt(H), $ = P.context, L = Zt({
@@ -16719,7 +16723,7 @@ export {
16719
16723
  cr as Tree,
16720
16724
  Iy as Url,
16721
16725
  kb as dayjs,
16722
- wt as iconMapper,
16726
+ St as iconMapper,
16723
16727
  zt as showConfirmDialog
16724
16728
  };
16725
16729
  //# sourceMappingURL=react-ooui.es.js.map