@gisce/react-ooui 2.115.0-alpha.16 → 2.115.0-alpha.18

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":"treeHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/treeHelper.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,IAAI,QAAQ,EAMjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGxE,QAAA,MAAM,OAAO,aAAc,QAAQ,KAAG,QAMrC,CAAC;AAaF,QAAA,MAAM,eAAe,SACb,QAAQ,cACF,GAAG,WACN,GAAG,wBACS,OAAO,KAC3B,MAAM,EA8DR,CAAC;AAEF,QAAA,MAAM,aAAa,aACP,QAAQ,WACT,GAAG,EAAE,YACL,GAAG,KACX,QAAQ,GAAG,EAAE,CA2Lf,CAAC;AAEF,iBAAS,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,WAOxE;AAED,iBAAS,wBAAwB,CAAC,EAChC,MAAM,EACN,MAAM,GACP,EAAE;IACD,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;CACb,OAWA;AAED,iBAAS,WAAW,CAAC,WAAW,EAAE,GAAG,OAEpC;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,GAAG,OAEhC;AAaD,iBAAS,WAAW,CAAC,EACnB,aAAa,EACb,MAAM,EACN,MAAM,GACP,EAAE;IACD,aAAa,EAAE,GAAG,EAAE,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;CACb,SAsDA;AAED,iBAAS,eAAe,CAAC,GA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AAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,iBAAS,iBAAiB,CACxB,OAAO,EAAE,eAAe,GACvB,UAAU,GAAG,WAAW,GAAG,QAAQ,CAiCrC;AAED,QAAA,MAAM,oBAAoB,aAAc,GAAG,KAAG,MAAM,EAAE,GAAG,SAexD,CAAC;AAEF,OAAO,EACL,eAAe,EACf,aAAa,EACb,OAAO,EACP,wBAAwB,EACxB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,GACrB,CAAC"}
@@ -4,8 +4,8 @@ var wi = (t, e, n) => (Ud(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as s, jsxs as U, Fragment as Fe } from "react/jsx-runtime";
5
5
  import an, { useContext as Re, useState as _, useEffect as me, useRef as Q, memo as it, useCallback as x, useMemo as K, forwardRef as Ht, useImperativeHandle as Yt, Fragment as Yn, createContext as Wd, createElement as qd } from "react";
6
6
  import { Tooltip as Wt, theme as at, Typography as Kt, Form as Ft, Row as lt, Col as Je, Modal as Pt, Button as Qe, Dropdown as Es, Menu as Ba, Space as yt, Spin as ct, Divider as jr, Input as Tt, Select as cn, Checkbox as Or, Empty as lr, Alert as Lt, Timeline as Ha, Progress as ja, Badge as zn, message as Ci, Popover as Yd, Avatar as Os, Tag as Ds, ColorPicker as Ua, DatePicker as zd, TimePicker as Gd, InputNumber as Ur, Layout as Wa, Pagination as Kd, Statistic as Jd, Card as Wr, QRCode as Qd, Tabs as qa, Mentions as Xd, Radio as xi, Switch as Zd, Steps as Si, Carousel as eu } from "antd";
7
- import { Label as pr, Field as cs, Tree as Ya, Tags as Ti, Reference as Ai, Selection as uo, Many2one as Co, Boolean as tu, parseContext as Fn, parseContextFields as nu, parseDomainFields as ru, transformDomainForChildWidget as xo, graphProcessor as za, graphFieldUtils as ou, Integer as ds, SearchFieldTypes as Rn, SearchFilter as Ga, parseGraph as Ka, Container as su, Form as Ja, KanbanCard as iu, Button as Qa, Kanban as Xa } from "@gisce/ooui";
8
- import au, { QuestionCircleOutlined as Za, ExclamationCircleOutlined as So, LoadingOutlined as zt, DownOutlined as qr, CloseOutlined as xn, CheckOutlined as hr, TranslationOutlined as el, ExportOutlined as fo, ThunderboltOutlined as To, PrinterOutlined as Ao, EnterOutlined as _o, SearchOutlined as gr, PlusOutlined as Dr, FolderOpenOutlined as Ms, DownloadOutlined as ks, ClearOutlined as yr, FormOutlined as Mr, TableOutlined as Ns, AreaChartOutlined as lu, CalendarOutlined as cu, BorderOuterOutlined as tl, FileAddOutlined as Io, CloseCircleFilled as du, FilterOutlined as rr, EditOutlined as $s, CopyOutlined as Yr, DeleteOutlined as Ps, InfoCircleOutlined as Ro, ReloadOutlined as Fo, SaveOutlined as us, UpOutlined as uu, PlusSquareOutlined as nl, MinusSquareOutlined as rl, StarFilled as fu, StarOutlined as mu, LeftOutlined as ol, RightOutlined as sl, ApiOutlined as pu, AlignLeftOutlined as hu, EyeOutlined as gu, LinkOutlined as _i, MessageOutlined as yu, SendOutlined as vu, SettingOutlined as bu, EllipsisOutlined as wu } from "@ant-design/icons";
7
+ import { Label as pr, Field as cs, Tree as Ya, Tags as Ti, Reference as Ai, Selection as uo, Many2one as Co, Boolean as tu, parseContext as En, parseContextFields as nu, parseDomainFields as ru, transformDomainForChildWidget as xo, graphProcessor as za, graphFieldUtils as ou, Integer as ds, SearchFieldTypes as Fn, SearchFilter as Ga, parseGraph as Ka, Container as su, Form as Ja, KanbanCard as iu, Button as Qa, Kanban as Xa } from "@gisce/ooui";
8
+ import au, { QuestionCircleOutlined as Za, ExclamationCircleOutlined as So, LoadingOutlined as zt, DownOutlined as qr, CloseOutlined as Sn, CheckOutlined as hr, TranslationOutlined as el, ExportOutlined as fo, ThunderboltOutlined as To, PrinterOutlined as Ao, EnterOutlined as _o, SearchOutlined as gr, PlusOutlined as Dr, FolderOpenOutlined as Ms, DownloadOutlined as ks, ClearOutlined as yr, FormOutlined as Mr, TableOutlined as Ns, AreaChartOutlined as lu, CalendarOutlined as cu, BorderOuterOutlined as tl, FileAddOutlined as Io, CloseCircleFilled as du, FilterOutlined as rr, EditOutlined as $s, CopyOutlined as Yr, DeleteOutlined as Ps, InfoCircleOutlined as Ro, ReloadOutlined as Fo, SaveOutlined as us, UpOutlined as uu, PlusSquareOutlined as nl, MinusSquareOutlined as rl, StarFilled as fu, StarOutlined as mu, LeftOutlined as ol, RightOutlined as sl, ApiOutlined as pu, AlignLeftOutlined as hu, EyeOutlined as gu, LinkOutlined as _i, MessageOutlined as yu, SendOutlined as vu, SettingOutlined as bu, EllipsisOutlined as wu } from "@ant-design/icons";
9
9
  import { Interweave as gn } from "interweave";
10
10
  import st from "dayjs";
11
11
  import { default as Px } from "dayjs";
@@ -33,7 +33,7 @@ import { InfiniteTable as Bs, Table as Ku, PaginatedTable as Ju } from "@gisce/r
33
33
  import dl from "antd/es/typography/Link";
34
34
  import { isPresetStatusColor as ul, isPresetColor as fl } from "antd/lib/_util/colors";
35
35
  import Qu from "validator";
36
- import En from "antd/es/alert/ErrorBoundary";
36
+ import xn from "antd/es/alert/ErrorBoundary";
37
37
  import "@gisce/react-formiga-table/style.css";
38
38
  import { GridUi as Xu } from "@gisce/fiber-diagram";
39
39
  import Zu from "tinycolor2";
@@ -890,7 +890,7 @@ const Al = (t) => {
890
890
  /* @__PURE__ */ s(
891
891
  Qe,
892
892
  {
893
- icon: /* @__PURE__ */ s(xn, {}),
893
+ icon: /* @__PURE__ */ s(Sn, {}),
894
894
  onClick: n,
895
895
  disabled: p,
896
896
  children: l("cancel")
@@ -2012,7 +2012,10 @@ function Tm(t) {
2012
2012
  const Us = (t, e, n, r = !1) => t.columns.map((i) => {
2013
2013
  const a = i.type, c = i.id, l = i.fieldType, d = a === "many2one" || a === "many2one_lazy" || a === "selection" && l === "many2one", f = d ? "many2one" : a, u = e == null ? void 0 : e[f];
2014
2014
  let m;
2015
- return u ? m = (p) => u({ value: p, key: c, ooui: i, context: n }) : m = (p) => Tm(p) ? p : /* @__PURE__ */ U("p", { style: { color: "red" }, children: [
2015
+ return u ? m = (p) => {
2016
+ let g = i;
2017
+ return a === "selection" && l === "many2one" && (g = { ...i, showMenu: !1 }), u({ value: p, key: c, ooui: g, context: n });
2018
+ } : m = (p) => Tm(p) ? p : /* @__PURE__ */ U("p", { style: { color: "red" }, children: [
2016
2019
  "Unsupported widget value for a Tree cell:",
2017
2020
  /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ U("strong", { children: [
2018
2021
  "Type: ",
@@ -2115,7 +2118,7 @@ const Us = (t, e, n, r = !1) => t.columns.map((i) => {
2115
2118
  d[f] = l[f];
2116
2119
  } else
2117
2120
  d[f] = l[f];
2118
- else if (g instanceof uo && g.fieldType === "many2one")
2121
+ else if (g instanceof uo && g.type === "selection" && g.fieldType === "many2one")
2119
2122
  d[f] = l[f] && Array.isArray(l[f]) && l[f].length === 2 && {
2120
2123
  model: (u = g.raw_props) == null ? void 0 : u.relation,
2121
2124
  id: l[f][0],
@@ -2251,7 +2254,7 @@ const gs = (t) => {
2251
2254
  console.error("Error extracting visible tree fields:", e);
2252
2255
  return;
2253
2256
  }
2254
- }, Sn = an.createContext(null), Di = async (t) => {
2257
+ }, Tn = an.createContext(null), Di = async (t) => {
2255
2258
  var e;
2256
2259
  for (let n = 0; n < t.length; n++)
2257
2260
  await ((e = t == null ? void 0 : t[n]) == null ? void 0 : e.call(t));
@@ -2307,7 +2310,7 @@ const gs = (t) => {
2307
2310
  });
2308
2311
  return;
2309
2312
  }
2310
- const { ids: j } = L || {}, B = j || [], J = typeof H == "string" ? Fn({
2313
+ const { ids: j } = L || {}, B = j || [], J = typeof H == "string" ? En({
2311
2314
  context: H,
2312
2315
  fields: R,
2313
2316
  values: E
@@ -2397,7 +2400,7 @@ const gs = (t) => {
2397
2400
  ids: [parseInt(D.id)],
2398
2401
  context: E
2399
2402
  }))[0]);
2400
- const V = A.context, P = typeof (A == null ? void 0 : A.context) == "string" ? Fn({
2403
+ const V = A.context, P = typeof (A == null ? void 0 : A.context) == "string" ? En({
2401
2404
  context: A.context,
2402
2405
  fields: N,
2403
2406
  values: { ...R, ...r }
@@ -2502,7 +2505,7 @@ const gs = (t) => {
2502
2505
  });
2503
2506
  }
2504
2507
  return /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(
2505
- Sn.Provider,
2508
+ Tn.Provider,
2506
2509
  {
2507
2510
  value: {
2508
2511
  processAction: F,
@@ -2524,7 +2527,7 @@ const gs = (t) => {
2524
2527
  }
2525
2528
  ),
2526
2529
  /* @__PURE__ */ s(
2527
- Tn,
2530
+ An,
2528
2531
  {
2529
2532
  buttonModal: !0,
2530
2533
  parentContext: v.context,
@@ -2699,7 +2702,7 @@ const Fm = Ht(Im), Em = ({
2699
2702
  const { id: e, model: n, context: r = {}, openOnly: o } = t, [i, a] = _(), [c, l] = _(), d = Re(
2700
2703
  Qt
2701
2704
  ), { openRelate: f, openAction: u } = d || {}, m = Re(
2702
- Sn
2705
+ Tn
2703
2706
  ), { processAction: p } = m || {}, [g, h] = Ee(
2704
2707
  Y.getHandler().getView
2705
2708
  ), [y, b] = Ee(
@@ -3194,7 +3197,7 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
3194
3197
  /* @__PURE__ */ s("span", { children: Ce }),
3195
3198
  X && !c && /* @__PURE__ */ s(Um, { onClick: (Ne) => {
3196
3199
  Ne.preventDefault(), Ne.stopPropagation(), ve(G), ce();
3197
- }, children: /* @__PURE__ */ s(xn, {}) })
3200
+ }, children: /* @__PURE__ */ s(Sn, {}) })
3198
3201
  ] });
3199
3202
  },
3200
3203
  [W, ve, c]
@@ -3248,7 +3251,7 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
3248
3251
  }
3249
3252
  ),
3250
3253
  /* @__PURE__ */ s(
3251
- Tn,
3254
+ An,
3252
3255
  {
3253
3256
  model: a,
3254
3257
  parentContext: { ...y == null ? void 0 : y(), ...l },
@@ -3707,7 +3710,7 @@ const zl = ({
3707
3710
  return /* @__PURE__ */ U(Fe, { children: [
3708
3711
  /* @__PURE__ */ s(Ha, { style: { padding: "1rem" }, items: D }),
3709
3712
  /* @__PURE__ */ s(
3710
- Tn,
3713
+ An,
3711
3714
  {
3712
3715
  formView: n.get("form"),
3713
3716
  model: g,
@@ -3736,7 +3739,7 @@ async function Xl({
3736
3739
  const r = Dn, o = `${r},${t}`, i = await Y.getHandler().getActionData({
3737
3740
  action: o,
3738
3741
  context: e
3739
- }), a = Fn({
3742
+ }), a = En({
3740
3743
  context: i.context,
3741
3744
  values: n,
3742
3745
  fields: {}
@@ -5264,7 +5267,7 @@ const { useToken: Mp } = at, kp = (t) => {
5264
5267
  view_id: r
5265
5268
  }) => {
5266
5269
  const o = Re(
5267
- Sn
5270
+ Tn
5268
5271
  ), { processAction: i } = o || {};
5269
5272
  return x(
5270
5273
  (a, c = {}) => {
@@ -7235,7 +7238,7 @@ function Tc(t) {
7235
7238
  }, /* @__PURE__ */ s(Ze, { ooui: u, layout: "vertical", showLabel: !0, children: /* @__PURE__ */ s(Wl, { ooui: u, allowMultiSelect: !0 }) });
7236
7239
  }
7237
7240
  switch (r) {
7238
- case Rn.boolean: {
7241
+ case Fn.boolean: {
7239
7242
  const u = new uo({
7240
7243
  name: e._id,
7241
7244
  string: e.label,
@@ -7246,16 +7249,16 @@ function Tc(t) {
7246
7249
  });
7247
7250
  return /* @__PURE__ */ s(Ol, { layout: "vertical", ooui: u, showLabel: !0 });
7248
7251
  }
7249
- case Rn.float:
7250
- case Rn.progressbar:
7251
- case Rn.float_time:
7252
- case Rn.integer:
7252
+ case Fn.float:
7253
+ case Fn.progressbar:
7254
+ case Fn.float_time:
7255
+ case Fn.integer:
7253
7256
  return /* @__PURE__ */ s(Lh, { ooui: e, showLabel: !0 });
7254
- case Rn.date:
7257
+ case Fn.date:
7255
7258
  return /* @__PURE__ */ s(Sc, { ooui: e, layout: "vertical", showLabel: !0 });
7256
- case Rn.datetime:
7259
+ case Fn.datetime:
7257
7260
  return /* @__PURE__ */ s(Ih, { ooui: e, layout: "vertical", showLabel: !0 });
7258
- case Rn.selection:
7261
+ case Fn.selection:
7259
7262
  return /* @__PURE__ */ s(Uh, { layout: "vertical", ooui: e, showLabel: !0 });
7260
7263
  default:
7261
7264
  return /* @__PURE__ */ s(
@@ -7390,7 +7393,7 @@ const { useToken: Yh } = at, { Title: zh } = Kt, { Header: Gh, Content: Kh, Foot
7390
7393
  Qe,
7391
7394
  {
7392
7395
  type: "text",
7393
- icon: /* @__PURE__ */ s(xn, {}),
7396
+ icon: /* @__PURE__ */ s(Sn, {}),
7394
7397
  onClick: e,
7395
7398
  "aria-label": "Close"
7396
7399
  }
@@ -9835,7 +9838,7 @@ const Sr = () => {
9835
9838
  record: e,
9836
9839
  column: n,
9837
9840
  isFieldLoading: r
9838
- }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(Pu, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
9841
+ }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(Pu, {}) : /* @__PURE__ */ s(xn, { children: n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context) })
9839
9842
  );
9840
9843
  Vo.displayName = "CellRenderer";
9841
9844
  const rd = ({
@@ -10023,10 +10026,10 @@ function Av(t, e) {
10023
10026
  });
10024
10027
  St = Pr(It);
10025
10028
  } else {
10026
- const It = Nt == null ? void 0 : Nt.filter((In) => In.sort || In.sortIndex).map((In) => ({
10027
- sort: In.sort || void 0,
10028
- sortIndex: In.sortIndex || void 0,
10029
- colId: In.colId
10029
+ const It = Nt == null ? void 0 : Nt.filter((Rn) => Rn.sort || Rn.sortIndex).map((Rn) => ({
10030
+ sort: Rn.sort || void 0,
10031
+ sortIndex: Rn.sortIndex || void 0,
10032
+ colId: Rn.colId
10030
10033
  })), no = It && (It == null ? void 0 : It.length) > 0 ? It : void 0, Bo = ur({
10031
10034
  state: no
10032
10035
  });
@@ -10096,7 +10099,7 @@ function Av(t, e) {
10096
10099
  de,
10097
10100
  xt
10098
10101
  ]
10099
- ), An = x(async () => be ? C.current : S ? (await z({
10102
+ ), _n = x(async () => be ? C.current : S ? (await z({
10100
10103
  params: be ? a : ht,
10101
10104
  model: n,
10102
10105
  context: d,
@@ -10119,7 +10122,7 @@ function Av(t, e) {
10119
10122
  onChangeSelectedRowKeys: f,
10120
10123
  totalRows: S,
10121
10124
  maxRowsToSelect: Tv,
10122
- onSelectAll: An
10125
+ onSelectAll: _n
10123
10126
  }), bt = x(
10124
10127
  async ({
10125
10128
  startRow: tt,
@@ -10278,7 +10281,7 @@ function Av(t, e) {
10278
10281
  ye,
10279
10282
  ae
10280
10283
  ]
10281
- ), _n = K(
10284
+ ), In = K(
10282
10285
  () => ({
10283
10286
  isOpen: B,
10284
10287
  fields: { ...k == null ? void 0 : k.fields, ...$ == null ? void 0 : $.fields },
@@ -10332,7 +10335,7 @@ function Av(t, e) {
10332
10335
  m === "side" && /* @__PURE__ */ s(
10333
10336
  li,
10334
10337
  {
10335
- ..._n,
10338
+ ...In,
10336
10339
  onClose: mn,
10337
10340
  onSubmit: wn
10338
10341
  }
@@ -10589,7 +10592,7 @@ const od = Ht(
10589
10592
  if (R !== null && $ && $.length > 0)
10590
10593
  return _v($, O, 600);
10591
10594
  }, [$, O, R]), Z = K(() => p && (R != null && R.columns.some((re) => re.sum !== void 0)) ? p - 30 : p, [p, R == null ? void 0 : R.columns]);
10592
- return R === null || !ne || ((ue = ne == null ? void 0 : ne.columns) == null ? void 0 : ue.length) === 0 ? /* @__PURE__ */ s(ct, { style: { padding: "2rem" } }) : /* @__PURE__ */ U(En, { children: [
10595
+ return R === null || !ne || ((ue = ne == null ? void 0 : ne.columns) == null ? void 0 : ue.length) === 0 ? /* @__PURE__ */ s(ct, { style: { padding: "2rem" } }) : /* @__PURE__ */ U(xn, { children: [
10593
10596
  B,
10594
10597
  /* @__PURE__ */ s(
10595
10598
  Ku,
@@ -10869,7 +10872,7 @@ function Fv(t, e) {
10869
10872
  parentContext: u = {},
10870
10873
  onChangeSelectedRowKeys: m
10871
10874
  } = t, [p, g] = _(!1), [h, y] = _(!1), b = Q(!1), v = Q(null), [C, T] = _(), [w, F] = _(), [S, I] = _(), [O, M] = _(), [D, N] = _(200), R = Q(), { height: E } = Oo(), A = Re(
10872
- Sn
10875
+ Tn
10873
10876
  ), { processAction: V } = A || {}, P = Re(
10874
10877
  qt
10875
10878
  ), {
@@ -11396,7 +11399,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11396
11399
  ), et = Pe.current && !T;
11397
11400
  We && (et || f === "top") && tn(), ke.current = E, Pe.current = T;
11398
11401
  }, [E, T]);
11399
- const An = x(
11402
+ const _n = x(
11400
11403
  (We, et) => {
11401
11404
  if (et === -1) {
11402
11405
  u == null || u("infinite");
@@ -11455,7 +11458,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11455
11458
  const et = We[(r == null ? void 0 : r.field_parent) || "child_id"];
11456
11459
  let nt = r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields;
11457
11460
  ze && (nt = Object.entries(nt).reduce(
11458
- (on, [_n, mn]) => (mn != null && mn.is_function || (on[_n] = mn), on),
11461
+ (on, [In, mn]) => (mn != null && mn.is_function || (on[In] = mn), on),
11459
11462
  {}
11460
11463
  ));
11461
11464
  const gt = await Y.getHandler().readObjects({
@@ -11509,7 +11512,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11509
11512
  totalRows: ae,
11510
11513
  onRowStyle: pt,
11511
11514
  results: pe,
11512
- onRequestPageChange: An,
11515
+ onRequestPageChange: _n,
11513
11516
  treeIsLoading: v,
11514
11517
  selectAllRecords: ot,
11515
11518
  onHeaderCheckboxClick: bt,
@@ -11683,7 +11686,7 @@ const Mv = it(mi), sn = (t) => {
11683
11686
  parentContext: n
11684
11687
  }) => {
11685
11688
  const r = Q(), o = Re(
11686
- Sn
11689
+ Tn
11687
11690
  ), { processAction: i } = o || {}, [a, c] = Ee(
11688
11691
  Y.getHandler().treeButOpen
11689
11692
  ), { showErrorNotification: l } = At();
@@ -12087,7 +12090,7 @@ const ad = Ht(Pv), { useToken: Lv } = at, ld = ({
12087
12090
  }
12088
12091
  ),
12089
12092
  /* @__PURE__ */ s(Wt, { title: a("clear_search"), children: /* @__PURE__ */ s(
12090
- xn,
12093
+ Sn,
12091
12094
  {
12092
12095
  style: {
12093
12096
  marginLeft: "4px",
@@ -12778,8 +12781,8 @@ const ad = Ht(Pv), { useToken: Lv } = at, ld = ({
12778
12781
  ]
12779
12782
  }
12780
12783
  ),
12781
- !d && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(En, { children: n }) }),
12782
- d && /* @__PURE__ */ s(En, { children: n })
12784
+ !d && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(xn, { children: n }) }),
12785
+ d && /* @__PURE__ */ s(xn, { children: n })
12783
12786
  ]
12784
12787
  }
12785
12788
  );
@@ -13081,7 +13084,7 @@ function Gv(t) {
13081
13084
  }
13082
13085
  const ud = it(Gv), { useToken: Kv } = at, Jv = 3 * 1e3, Qv = (t) => {
13083
13086
  const { ooui: e } = t, { refreshCounter: n } = zr(), r = e.actionId !== void 0, o = e.actionField !== void 0;
13084
- return /* @__PURE__ */ s(Ze, { ooui: e, children: r || o ? /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(Zv, { ooui: e }, n) }) : /* @__PURE__ */ s(Xv, { ooui: e }, n) });
13087
+ return /* @__PURE__ */ s(Ze, { ooui: e, children: r || o ? /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s(Zv, { ooui: e }, n) }) : /* @__PURE__ */ s(Xv, { ooui: e }, n) });
13085
13088
  }, Xv = (t) => {
13086
13089
  var S;
13087
13090
  const { token: e } = Kv(), { ooui: n, value: r } = t, { locale: o } = Oe(), { getContext: i } = zr(), [a, c] = _(n.icon), [l, d] = _(n.color), [f, u] = _(null), [m, p] = _(!1), [g, h] = Ee(
@@ -13405,11 +13408,11 @@ const ud = it(Gv), { useToken: Kv } = at, Jv = 3 * 1e3, Qv = (t) => {
13405
13408
  ) }) });
13406
13409
  }, ob = (t) => {
13407
13410
  const { ooui: e } = t;
13408
- return /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(sb, { ...t, ooui: e }) }) });
13411
+ return /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(sb, { ...t, ooui: e }) }) });
13409
13412
  }, sb = (t) => {
13410
13413
  var u, m, p;
13411
13414
  const { value: e, ooui: n } = t, r = Re(
13412
- Sn
13415
+ Tn
13413
13416
  ), o = Re(dt), i = K(() => {
13414
13417
  if (!e)
13415
13418
  return console.warn("ActionButtons: No value provided"), [];
@@ -13946,7 +13949,7 @@ function Ab(t, e) {
13946
13949
  setTitle: qe = void 0,
13947
13950
  isActive: De = void 0
13948
13951
  } = (w ? Pe : {}) || {}, He = Re(
13949
- Sn
13952
+ Tn
13950
13953
  ), { processAction: Se, globalValues: Ve } = He || {}, ze = Re(
13951
13954
  Qt
13952
13955
  ), { openAction: Ie } = ze || {}, { onActionTriggered: Ue } = Jt(), { showErrorNotification: ie } = At({
@@ -13963,7 +13966,7 @@ function Ab(t, e) {
13963
13966
  setFieldMessagesArray: Me
13964
13967
  } = Sb();
13965
13968
  Yt(e, () => ({
13966
- submitForm: _n,
13969
+ submitForm: In,
13967
13970
  getFields: xt,
13968
13971
  getValues: Ct,
13969
13972
  getPlainValues: ut,
@@ -14043,7 +14046,7 @@ function Ab(t, e) {
14043
14046
  active_ids: [Te()],
14044
14047
  parent_id: se,
14045
14048
  ...Ve
14046
- }), [Te, se, Ve]), An = async (ge) => {
14049
+ }), [Te, se, Ve]), _n = async (ge) => {
14047
14050
  const xe = Te() ? A == null ? void 0 : A.context : {};
14048
14051
  return await Y.getHandler().defaultGet({
14049
14052
  model: n,
@@ -14218,7 +14221,7 @@ function Ab(t, e) {
14218
14221
  Le == null || Le(Rt);
14219
14222
  } else {
14220
14223
  Le == null || Le([]);
14221
- const Ke = await An(ge);
14224
+ const Ke = await _n(ge);
14222
14225
  oe.current = Ke, $e = Ke, $e.id && (ue.current = $e.id), je = !0;
14223
14226
  }
14224
14227
  return { values: $e, defaultGetCalled: je };
@@ -14256,7 +14259,7 @@ function Ab(t, e) {
14256
14259
  }, on = async (ge) => {
14257
14260
  const { callOnSubmitSucceed: xe = !0 } = ge || {};
14258
14261
  !b && xe && (Ne == null || Ne(Te(), Ct(), ht()));
14259
- }, _n = async (ge) => {
14262
+ }, In = async (ge) => {
14260
14263
  let xe = !1;
14261
14264
  const { callOnSubmitSucceed: $e = !0 } = ge || {};
14262
14265
  if (q.current = !0, E(void 0), Ce(), pe.current && !Xe() && Te() && $e) {
@@ -14476,7 +14479,7 @@ function Ab(t, e) {
14476
14479
  Ue == null || Ue($e);
14477
14480
  else if ($e.type) {
14478
14481
  let je = {};
14479
- $e.context && (je = Fn({
14482
+ $e.context && (je = En({
14480
14483
  context: $e.context,
14481
14484
  fields: L,
14482
14485
  values: Ct()
@@ -14580,7 +14583,7 @@ function Ab(t, e) {
14580
14583
  }
14581
14584
  let je = !1;
14582
14585
  try {
14583
- !u && (Xe() || Te() === void 0) && (je = !0, Qn(!0), p === "2many" ? (await Pn({ callOnSubmitSucceed: !1 }), pe.current = !0) : await _n({ callOnSubmitSucceed: !1 }));
14586
+ !u && (Xe() || Te() === void 0) && (je = !0, Qn(!0), p === "2many" ? (await Pn({ callOnSubmitSucceed: !1 }), pe.current = !0) : await In({ callOnSubmitSucceed: !1 }));
14584
14587
  const Ke = pe.current ? tn() : {}, Rt = { ...$e, ...Ke };
14585
14588
  ge === "object" ? await St({ action: xe, context: Rt }) : ge === "workflow" ? await ln({ action: xe }) : ge === "action" && await Kn({ action: xe, context: Rt }), je && Qn(!1);
14586
14589
  } catch (Ke) {
@@ -14601,7 +14604,7 @@ function Ab(t, e) {
14601
14604
  getFieldValue: vn,
14602
14605
  executeButtonAction: no,
14603
14606
  getContext: jt,
14604
- submitForm: _n,
14607
+ submitForm: In,
14605
14608
  fetchValues: nt,
14606
14609
  formHasChanges: Xe,
14607
14610
  elementHasLostFocus: Jn,
@@ -14631,7 +14634,7 @@ function Ab(t, e) {
14631
14634
  }
14632
14635
  )
14633
14636
  }
14634
- ) }), In = () => {
14637
+ ) }), Rn = () => {
14635
14638
  const xe = Te() && Ie;
14636
14639
  return /* @__PURE__ */ U(Fe, { children: [
14637
14640
  /* @__PURE__ */ s(jr, {}),
@@ -14649,7 +14652,7 @@ function Ab(t, e) {
14649
14652
  /* @__PURE__ */ s(
14650
14653
  Qe,
14651
14654
  {
14652
- icon: /* @__PURE__ */ s(xn, {}),
14655
+ icon: /* @__PURE__ */ s(Sn, {}),
14653
14656
  disabled: D,
14654
14657
  onClick: async () => {
14655
14658
  await gt();
@@ -14664,7 +14667,7 @@ function Ab(t, e) {
14664
14667
  loading: D,
14665
14668
  icon: /* @__PURE__ */ s(hr, {}),
14666
14669
  onClick: async () => {
14667
- await _n();
14670
+ await In();
14668
14671
  },
14669
14672
  type: "primary",
14670
14673
  children: "OK"
@@ -14684,7 +14687,7 @@ function Ab(t, e) {
14684
14687
  },
14685
14688
  children: ({ measureRef: ge }) => /* @__PURE__ */ U("div", { className: "pb-2", ref: ge, children: [
14686
14689
  Bo(),
14687
- c && In()
14690
+ c && Rn()
14688
14691
  ] })
14689
14692
  }
14690
14693
  ) : null;
@@ -14819,7 +14822,7 @@ const Tr = Ht(Ab), md = (t) => {
14819
14822
  handleCancelNameModal: h,
14820
14823
  initialName: r
14821
14824
  };
14822
- }, Tn = (t) => {
14825
+ }, An = (t) => {
14823
14826
  const {
14824
14827
  visible: e,
14825
14828
  id: n,
@@ -15028,13 +15031,13 @@ const Tr = Ht(Ab), md = (t) => {
15028
15031
  children: y("ok")
15029
15032
  }
15030
15033
  ),
15031
- /* @__PURE__ */ s(Qe, { icon: /* @__PURE__ */ s(xn, {}), onClick: S, children: y("cancel") })
15034
+ /* @__PURE__ */ s(Qe, { icon: /* @__PURE__ */ s(Sn, {}), onClick: S, children: y("cancel") })
15032
15035
  ] }) })
15033
15036
  ]
15034
15037
  }
15035
15038
  ),
15036
15039
  /* @__PURE__ */ s(
15037
- Tn,
15040
+ An,
15038
15041
  {
15039
15042
  model: r,
15040
15043
  visible: l,
@@ -15230,7 +15233,7 @@ const Tr = Ht(Ab), md = (t) => {
15230
15233
  }
15231
15234
  ),
15232
15235
  /* @__PURE__ */ s(
15233
- Tn,
15236
+ An,
15234
15237
  {
15235
15238
  model: i,
15236
15239
  parentContext: { ...M == null ? void 0 : M(), ...c },
@@ -15349,7 +15352,7 @@ const Tr = Ht(Ab), md = (t) => {
15349
15352
  toolbar: o
15350
15353
  }) => {
15351
15354
  const { t: i } = Oe(), a = Re(
15352
- Sn
15355
+ Tn
15353
15356
  ), c = Re(
15354
15357
  Qt
15355
15358
  ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = _(null), [m, p] = _(!1), [g] = Ee(
@@ -16146,7 +16149,7 @@ const Pb = (t) => {
16146
16149
  ),
16147
16150
  Se(),
16148
16151
  /* @__PURE__ */ s(
16149
- Tn,
16152
+ An,
16150
16153
  {
16151
16154
  formView: o.get("form"),
16152
16155
  model: ne,
@@ -17113,7 +17116,7 @@ const Rd = ({
17113
17116
  }
17114
17117
  ),
17115
17118
  /* @__PURE__ */ s(
17116
- Tn,
17119
+ An,
17117
17120
  {
17118
17121
  formView: i.get("form"),
17119
17122
  model: y,
@@ -17548,7 +17551,7 @@ const Rd = ({
17548
17551
  }
17549
17552
  ),
17550
17553
  /* @__PURE__ */ s(
17551
- Tn,
17554
+ An,
17552
17555
  {
17553
17556
  formView: i.get("form"),
17554
17557
  model: p,
@@ -19142,7 +19145,7 @@ const Ma = (t, e) => ({
19142
19145
  /* @__PURE__ */ s(
19143
19146
  Qe,
19144
19147
  {
19145
- icon: /* @__PURE__ */ s(xn, {}),
19148
+ icon: /* @__PURE__ */ s(Sn, {}),
19146
19149
  htmlType: "button",
19147
19150
  onClick: r,
19148
19151
  disabled: o,
@@ -19511,7 +19514,7 @@ const Bw = {
19511
19514
  },
19512
19515
  ...i
19513
19516
  };
19514
- return /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s("div", { ref: e, style: a ?? m, children: /* @__PURE__ */ s(
19517
+ return /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s("div", { ref: e, style: a ?? m, children: /* @__PURE__ */ s(
19515
19518
  nf,
19516
19519
  {
19517
19520
  remarkPlugins: [rf],
@@ -19531,7 +19534,7 @@ const Yw = {
19531
19534
  comment: t,
19532
19535
  model: e,
19533
19536
  resourceId: n
19534
- }) => /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(Ft, { children: /* @__PURE__ */ s(
19537
+ }) => /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s(Ft, { children: /* @__PURE__ */ s(
19535
19538
  Ft.Item,
19536
19539
  {
19537
19540
  name: `comment_${t.id}`,
@@ -19846,13 +19849,13 @@ const r0 = (t) => {
19846
19849
  Qe,
19847
19850
  {
19848
19851
  type: "text",
19849
- icon: /* @__PURE__ */ s(xn, {}),
19852
+ icon: /* @__PURE__ */ s(Sn, {}),
19850
19853
  onClick: a,
19851
19854
  size: "small"
19852
19855
  }
19853
19856
  )
19854
19857
  ] }),
19855
- /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s("div", { style: $, children: r ? /* @__PURE__ */ s("div", { style: Zw, children: /* @__PURE__ */ s(ct, {}) }) : n.length === 0 ? /* @__PURE__ */ s("div", { style: e0, children: /* @__PURE__ */ s(
19858
+ /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s("div", { style: $, children: r ? /* @__PURE__ */ s("div", { style: Zw, children: /* @__PURE__ */ s(ct, {}) }) : n.length === 0 ? /* @__PURE__ */ s("div", { style: e0, children: /* @__PURE__ */ s(
19856
19859
  lr,
19857
19860
  {
19858
19861
  description: p("noComments"),
@@ -20189,7 +20192,7 @@ function Ld({
20189
20192
  context: r,
20190
20193
  onRefreshParentValues: o
20191
20194
  }) {
20192
- const i = Re(Sn), { processAction: a } = i || {};
20195
+ const i = Re(Tn), { processAction: a } = i || {};
20193
20196
  return { runAction: x(
20194
20197
  async ({
20195
20198
  actionData: l,
@@ -21477,7 +21480,7 @@ const Na = ({ value: t }) => K(
21477
21480
  onRefreshParentValues: we
21478
21481
  }), Ae = x(
21479
21482
  async (G) => {
21480
- var tn, Xt, An;
21483
+ var tn, Xt, _n;
21481
21484
  const { active: X, over: ce } = G, de = E, Ce = V, Me = () => {
21482
21485
  O(null), D(null), A(null), P(null);
21483
21486
  };
@@ -21546,7 +21549,7 @@ const Na = ({ value: t }) => K(
21546
21549
  Te.originalValue,
21547
21550
  xt,
21548
21551
  F
21549
- ), Ct = ((An = f.on_change_column) == null ? void 0 : An.method) || "on_change_column";
21552
+ ), Ct = ((_n = f.on_change_column) == null ? void 0 : _n.method) || "on_change_column";
21550
21553
  if (!(Xe != null && Xe.id) || !(ot != null && ot.id) || parseInt(Xe == null ? void 0 : Xe.id) === parseInt(ot == null ? void 0 : ot.id))
21551
21554
  return;
21552
21555
  const bt = await ye({
@@ -22366,7 +22369,7 @@ const Na = ({ value: t }) => K(
22366
22369
  }
22367
22370
  ),
22368
22371
  ke && /* @__PURE__ */ s(
22369
- Tn,
22372
+ An,
22370
22373
  {
22371
22374
  formView: ke,
22372
22375
  model: r,
@@ -23584,7 +23587,7 @@ function _C(t, e) {
23584
23587
  H = { ...H, ...k[0] };
23585
23588
  }
23586
23589
  let L;
23587
- E != null && E.context && typeof E.context == "object" && E.context !== null ? L = E : E && E.context ? L = E && Fn({
23590
+ E != null && E.context && typeof E.context == "object" && E.context !== null ? L = E : E && E.context ? L = E && En({
23588
23591
  context: E.context,
23589
23592
  fields: P,
23590
23593
  values: { ...c, ...H || {} }
@@ -23658,7 +23661,7 @@ function _C(t, e) {
23658
23661
  });
23659
23662
  return;
23660
23663
  }
23661
- const [$, k] = R.split(","), W = parseInt(k), j = L.context, B = Fn({
23664
+ const [$, k] = R.split(","), W = parseInt(k), j = L.context, B = En({
23662
23665
  context: j,
23663
23666
  values: c
23664
23667
  }), J = L.domain, ne = await (async () => {
@@ -23759,7 +23762,7 @@ function _C(t, e) {
23759
23762
  target: k,
23760
23763
  string: W,
23761
23764
  limit: j
23762
- } = R, [B, J] = $[0], ne = { id: B, type: J }, Z = z, ue = Fn({
23765
+ } = R, [B, J] = $[0], ne = { id: B, type: J }, Z = z, ue = En({
23763
23766
  context: Z,
23764
23767
  values: { ...A, ...c }
23765
23768
  }), re = L, ye = L ? await Y.getHandler().evalDomain({
@@ -23803,7 +23806,7 @@ function _C(t, e) {
23803
23806
  } = R, k = `${A},${E}`, W = await Y.getHandler().getActionData({
23804
23807
  action: k,
23805
23808
  context: l
23806
- }), j = W.context, B = Fn({
23809
+ }), j = W.context, B = En({
23807
23810
  context: j,
23808
23811
  values: { ...c, ...z },
23809
23812
  fields: {}
@@ -24177,7 +24180,7 @@ function RC(t) {
24177
24180
  alignItems: "center"
24178
24181
  },
24179
24182
  children: /* @__PURE__ */ s(
24180
- xn,
24183
+ Sn,
24181
24184
  {
24182
24185
  style: {
24183
24186
  color: c.colorPrimaryActive
@@ -24539,7 +24542,7 @@ export {
24539
24542
  ew as FloatTime,
24540
24543
  Tr as Form,
24541
24544
  a0 as FormActionView,
24542
- Tn as FormModal,
24545
+ An as FormModal,
24543
24546
  cd as GraphCard,
24544
24547
  sp as GraphIndicator,
24545
24548
  Od as Group,