@gisce/react-ooui 2.115.0-alpha.17 → 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,EAmER,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,GAA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AM,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")
@@ -2118,7 +2118,7 @@ const Us = (t, e, n, r = !1) => t.columns.map((i) => {
2118
2118
  d[f] = l[f];
2119
2119
  } else
2120
2120
  d[f] = l[f];
2121
- else if (g instanceof uo && g.fieldType === "many2one")
2121
+ else if (g instanceof uo && g.type === "selection" && g.fieldType === "many2one")
2122
2122
  d[f] = l[f] && Array.isArray(l[f]) && l[f].length === 2 && {
2123
2123
  model: (u = g.raw_props) == null ? void 0 : u.relation,
2124
2124
  id: l[f][0],
@@ -2254,7 +2254,7 @@ const gs = (t) => {
2254
2254
  console.error("Error extracting visible tree fields:", e);
2255
2255
  return;
2256
2256
  }
2257
- }, Sn = an.createContext(null), Di = async (t) => {
2257
+ }, Tn = an.createContext(null), Di = async (t) => {
2258
2258
  var e;
2259
2259
  for (let n = 0; n < t.length; n++)
2260
2260
  await ((e = t == null ? void 0 : t[n]) == null ? void 0 : e.call(t));
@@ -2310,7 +2310,7 @@ const gs = (t) => {
2310
2310
  });
2311
2311
  return;
2312
2312
  }
2313
- const { ids: j } = L || {}, B = j || [], J = typeof H == "string" ? Fn({
2313
+ const { ids: j } = L || {}, B = j || [], J = typeof H == "string" ? En({
2314
2314
  context: H,
2315
2315
  fields: R,
2316
2316
  values: E
@@ -2400,7 +2400,7 @@ const gs = (t) => {
2400
2400
  ids: [parseInt(D.id)],
2401
2401
  context: E
2402
2402
  }))[0]);
2403
- 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({
2404
2404
  context: A.context,
2405
2405
  fields: N,
2406
2406
  values: { ...R, ...r }
@@ -2505,7 +2505,7 @@ const gs = (t) => {
2505
2505
  });
2506
2506
  }
2507
2507
  return /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(
2508
- Sn.Provider,
2508
+ Tn.Provider,
2509
2509
  {
2510
2510
  value: {
2511
2511
  processAction: F,
@@ -2527,7 +2527,7 @@ const gs = (t) => {
2527
2527
  }
2528
2528
  ),
2529
2529
  /* @__PURE__ */ s(
2530
- Tn,
2530
+ An,
2531
2531
  {
2532
2532
  buttonModal: !0,
2533
2533
  parentContext: v.context,
@@ -2702,7 +2702,7 @@ const Fm = Ht(Im), Em = ({
2702
2702
  const { id: e, model: n, context: r = {}, openOnly: o } = t, [i, a] = _(), [c, l] = _(), d = Re(
2703
2703
  Qt
2704
2704
  ), { openRelate: f, openAction: u } = d || {}, m = Re(
2705
- Sn
2705
+ Tn
2706
2706
  ), { processAction: p } = m || {}, [g, h] = Ee(
2707
2707
  Y.getHandler().getView
2708
2708
  ), [y, b] = Ee(
@@ -3197,7 +3197,7 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
3197
3197
  /* @__PURE__ */ s("span", { children: Ce }),
3198
3198
  X && !c && /* @__PURE__ */ s(Um, { onClick: (Ne) => {
3199
3199
  Ne.preventDefault(), Ne.stopPropagation(), ve(G), ce();
3200
- }, children: /* @__PURE__ */ s(xn, {}) })
3200
+ }, children: /* @__PURE__ */ s(Sn, {}) })
3201
3201
  ] });
3202
3202
  },
3203
3203
  [W, ve, c]
@@ -3251,7 +3251,7 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
3251
3251
  }
3252
3252
  ),
3253
3253
  /* @__PURE__ */ s(
3254
- Tn,
3254
+ An,
3255
3255
  {
3256
3256
  model: a,
3257
3257
  parentContext: { ...y == null ? void 0 : y(), ...l },
@@ -3710,7 +3710,7 @@ const zl = ({
3710
3710
  return /* @__PURE__ */ U(Fe, { children: [
3711
3711
  /* @__PURE__ */ s(Ha, { style: { padding: "1rem" }, items: D }),
3712
3712
  /* @__PURE__ */ s(
3713
- Tn,
3713
+ An,
3714
3714
  {
3715
3715
  formView: n.get("form"),
3716
3716
  model: g,
@@ -3739,7 +3739,7 @@ async function Xl({
3739
3739
  const r = Dn, o = `${r},${t}`, i = await Y.getHandler().getActionData({
3740
3740
  action: o,
3741
3741
  context: e
3742
- }), a = Fn({
3742
+ }), a = En({
3743
3743
  context: i.context,
3744
3744
  values: n,
3745
3745
  fields: {}
@@ -5267,7 +5267,7 @@ const { useToken: Mp } = at, kp = (t) => {
5267
5267
  view_id: r
5268
5268
  }) => {
5269
5269
  const o = Re(
5270
- Sn
5270
+ Tn
5271
5271
  ), { processAction: i } = o || {};
5272
5272
  return x(
5273
5273
  (a, c = {}) => {
@@ -7238,7 +7238,7 @@ function Tc(t) {
7238
7238
  }, /* @__PURE__ */ s(Ze, { ooui: u, layout: "vertical", showLabel: !0, children: /* @__PURE__ */ s(Wl, { ooui: u, allowMultiSelect: !0 }) });
7239
7239
  }
7240
7240
  switch (r) {
7241
- case Rn.boolean: {
7241
+ case Fn.boolean: {
7242
7242
  const u = new uo({
7243
7243
  name: e._id,
7244
7244
  string: e.label,
@@ -7249,16 +7249,16 @@ function Tc(t) {
7249
7249
  });
7250
7250
  return /* @__PURE__ */ s(Ol, { layout: "vertical", ooui: u, showLabel: !0 });
7251
7251
  }
7252
- case Rn.float:
7253
- case Rn.progressbar:
7254
- case Rn.float_time:
7255
- case Rn.integer:
7252
+ case Fn.float:
7253
+ case Fn.progressbar:
7254
+ case Fn.float_time:
7255
+ case Fn.integer:
7256
7256
  return /* @__PURE__ */ s(Lh, { ooui: e, showLabel: !0 });
7257
- case Rn.date:
7257
+ case Fn.date:
7258
7258
  return /* @__PURE__ */ s(Sc, { ooui: e, layout: "vertical", showLabel: !0 });
7259
- case Rn.datetime:
7259
+ case Fn.datetime:
7260
7260
  return /* @__PURE__ */ s(Ih, { ooui: e, layout: "vertical", showLabel: !0 });
7261
- case Rn.selection:
7261
+ case Fn.selection:
7262
7262
  return /* @__PURE__ */ s(Uh, { layout: "vertical", ooui: e, showLabel: !0 });
7263
7263
  default:
7264
7264
  return /* @__PURE__ */ s(
@@ -7393,7 +7393,7 @@ const { useToken: Yh } = at, { Title: zh } = Kt, { Header: Gh, Content: Kh, Foot
7393
7393
  Qe,
7394
7394
  {
7395
7395
  type: "text",
7396
- icon: /* @__PURE__ */ s(xn, {}),
7396
+ icon: /* @__PURE__ */ s(Sn, {}),
7397
7397
  onClick: e,
7398
7398
  "aria-label": "Close"
7399
7399
  }
@@ -9838,7 +9838,7 @@ const Sr = () => {
9838
9838
  record: e,
9839
9839
  column: n,
9840
9840
  isFieldLoading: r
9841
- }) => 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) })
9842
9842
  );
9843
9843
  Vo.displayName = "CellRenderer";
9844
9844
  const rd = ({
@@ -10026,10 +10026,10 @@ function Av(t, e) {
10026
10026
  });
10027
10027
  St = Pr(It);
10028
10028
  } else {
10029
- const It = Nt == null ? void 0 : Nt.filter((In) => In.sort || In.sortIndex).map((In) => ({
10030
- sort: In.sort || void 0,
10031
- sortIndex: In.sortIndex || void 0,
10032
- 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
10033
10033
  })), no = It && (It == null ? void 0 : It.length) > 0 ? It : void 0, Bo = ur({
10034
10034
  state: no
10035
10035
  });
@@ -10099,7 +10099,7 @@ function Av(t, e) {
10099
10099
  de,
10100
10100
  xt
10101
10101
  ]
10102
- ), An = x(async () => be ? C.current : S ? (await z({
10102
+ ), _n = x(async () => be ? C.current : S ? (await z({
10103
10103
  params: be ? a : ht,
10104
10104
  model: n,
10105
10105
  context: d,
@@ -10122,7 +10122,7 @@ function Av(t, e) {
10122
10122
  onChangeSelectedRowKeys: f,
10123
10123
  totalRows: S,
10124
10124
  maxRowsToSelect: Tv,
10125
- onSelectAll: An
10125
+ onSelectAll: _n
10126
10126
  }), bt = x(
10127
10127
  async ({
10128
10128
  startRow: tt,
@@ -10281,7 +10281,7 @@ function Av(t, e) {
10281
10281
  ye,
10282
10282
  ae
10283
10283
  ]
10284
- ), _n = K(
10284
+ ), In = K(
10285
10285
  () => ({
10286
10286
  isOpen: B,
10287
10287
  fields: { ...k == null ? void 0 : k.fields, ...$ == null ? void 0 : $.fields },
@@ -10335,7 +10335,7 @@ function Av(t, e) {
10335
10335
  m === "side" && /* @__PURE__ */ s(
10336
10336
  li,
10337
10337
  {
10338
- ..._n,
10338
+ ...In,
10339
10339
  onClose: mn,
10340
10340
  onSubmit: wn
10341
10341
  }
@@ -10592,7 +10592,7 @@ const od = Ht(
10592
10592
  if (R !== null && $ && $.length > 0)
10593
10593
  return _v($, O, 600);
10594
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]);
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(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: [
10596
10596
  B,
10597
10597
  /* @__PURE__ */ s(
10598
10598
  Ku,
@@ -10872,7 +10872,7 @@ function Fv(t, e) {
10872
10872
  parentContext: u = {},
10873
10873
  onChangeSelectedRowKeys: m
10874
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(
10875
- Sn
10875
+ Tn
10876
10876
  ), { processAction: V } = A || {}, P = Re(
10877
10877
  qt
10878
10878
  ), {
@@ -11399,7 +11399,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11399
11399
  ), et = Pe.current && !T;
11400
11400
  We && (et || f === "top") && tn(), ke.current = E, Pe.current = T;
11401
11401
  }, [E, T]);
11402
- const An = x(
11402
+ const _n = x(
11403
11403
  (We, et) => {
11404
11404
  if (et === -1) {
11405
11405
  u == null || u("infinite");
@@ -11458,7 +11458,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11458
11458
  const et = We[(r == null ? void 0 : r.field_parent) || "child_id"];
11459
11459
  let nt = r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields;
11460
11460
  ze && (nt = Object.entries(nt).reduce(
11461
- (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),
11462
11462
  {}
11463
11463
  ));
11464
11464
  const gt = await Y.getHandler().readObjects({
@@ -11512,7 +11512,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
11512
11512
  totalRows: ae,
11513
11513
  onRowStyle: pt,
11514
11514
  results: pe,
11515
- onRequestPageChange: An,
11515
+ onRequestPageChange: _n,
11516
11516
  treeIsLoading: v,
11517
11517
  selectAllRecords: ot,
11518
11518
  onHeaderCheckboxClick: bt,
@@ -11686,7 +11686,7 @@ const Mv = it(mi), sn = (t) => {
11686
11686
  parentContext: n
11687
11687
  }) => {
11688
11688
  const r = Q(), o = Re(
11689
- Sn
11689
+ Tn
11690
11690
  ), { processAction: i } = o || {}, [a, c] = Ee(
11691
11691
  Y.getHandler().treeButOpen
11692
11692
  ), { showErrorNotification: l } = At();
@@ -12090,7 +12090,7 @@ const ad = Ht(Pv), { useToken: Lv } = at, ld = ({
12090
12090
  }
12091
12091
  ),
12092
12092
  /* @__PURE__ */ s(Wt, { title: a("clear_search"), children: /* @__PURE__ */ s(
12093
- xn,
12093
+ Sn,
12094
12094
  {
12095
12095
  style: {
12096
12096
  marginLeft: "4px",
@@ -12781,8 +12781,8 @@ const ad = Ht(Pv), { useToken: Lv } = at, ld = ({
12781
12781
  ]
12782
12782
  }
12783
12783
  ),
12784
- !d && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(En, { children: n }) }),
12785
- 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 })
12786
12786
  ]
12787
12787
  }
12788
12788
  );
@@ -13084,7 +13084,7 @@ function Gv(t) {
13084
13084
  }
13085
13085
  const ud = it(Gv), { useToken: Kv } = at, Jv = 3 * 1e3, Qv = (t) => {
13086
13086
  const { ooui: e } = t, { refreshCounter: n } = zr(), r = e.actionId !== void 0, o = e.actionField !== void 0;
13087
- 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) });
13088
13088
  }, Xv = (t) => {
13089
13089
  var S;
13090
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(
@@ -13408,11 +13408,11 @@ const ud = it(Gv), { useToken: Kv } = at, Jv = 3 * 1e3, Qv = (t) => {
13408
13408
  ) }) });
13409
13409
  }, ob = (t) => {
13410
13410
  const { ooui: e } = t;
13411
- 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 }) }) });
13412
13412
  }, sb = (t) => {
13413
13413
  var u, m, p;
13414
13414
  const { value: e, ooui: n } = t, r = Re(
13415
- Sn
13415
+ Tn
13416
13416
  ), o = Re(dt), i = K(() => {
13417
13417
  if (!e)
13418
13418
  return console.warn("ActionButtons: No value provided"), [];
@@ -13949,7 +13949,7 @@ function Ab(t, e) {
13949
13949
  setTitle: qe = void 0,
13950
13950
  isActive: De = void 0
13951
13951
  } = (w ? Pe : {}) || {}, He = Re(
13952
- Sn
13952
+ Tn
13953
13953
  ), { processAction: Se, globalValues: Ve } = He || {}, ze = Re(
13954
13954
  Qt
13955
13955
  ), { openAction: Ie } = ze || {}, { onActionTriggered: Ue } = Jt(), { showErrorNotification: ie } = At({
@@ -13966,7 +13966,7 @@ function Ab(t, e) {
13966
13966
  setFieldMessagesArray: Me
13967
13967
  } = Sb();
13968
13968
  Yt(e, () => ({
13969
- submitForm: _n,
13969
+ submitForm: In,
13970
13970
  getFields: xt,
13971
13971
  getValues: Ct,
13972
13972
  getPlainValues: ut,
@@ -14046,7 +14046,7 @@ function Ab(t, e) {
14046
14046
  active_ids: [Te()],
14047
14047
  parent_id: se,
14048
14048
  ...Ve
14049
- }), [Te, se, Ve]), An = async (ge) => {
14049
+ }), [Te, se, Ve]), _n = async (ge) => {
14050
14050
  const xe = Te() ? A == null ? void 0 : A.context : {};
14051
14051
  return await Y.getHandler().defaultGet({
14052
14052
  model: n,
@@ -14221,7 +14221,7 @@ function Ab(t, e) {
14221
14221
  Le == null || Le(Rt);
14222
14222
  } else {
14223
14223
  Le == null || Le([]);
14224
- const Ke = await An(ge);
14224
+ const Ke = await _n(ge);
14225
14225
  oe.current = Ke, $e = Ke, $e.id && (ue.current = $e.id), je = !0;
14226
14226
  }
14227
14227
  return { values: $e, defaultGetCalled: je };
@@ -14259,7 +14259,7 @@ function Ab(t, e) {
14259
14259
  }, on = async (ge) => {
14260
14260
  const { callOnSubmitSucceed: xe = !0 } = ge || {};
14261
14261
  !b && xe && (Ne == null || Ne(Te(), Ct(), ht()));
14262
- }, _n = async (ge) => {
14262
+ }, In = async (ge) => {
14263
14263
  let xe = !1;
14264
14264
  const { callOnSubmitSucceed: $e = !0 } = ge || {};
14265
14265
  if (q.current = !0, E(void 0), Ce(), pe.current && !Xe() && Te() && $e) {
@@ -14479,7 +14479,7 @@ function Ab(t, e) {
14479
14479
  Ue == null || Ue($e);
14480
14480
  else if ($e.type) {
14481
14481
  let je = {};
14482
- $e.context && (je = Fn({
14482
+ $e.context && (je = En({
14483
14483
  context: $e.context,
14484
14484
  fields: L,
14485
14485
  values: Ct()
@@ -14583,7 +14583,7 @@ function Ab(t, e) {
14583
14583
  }
14584
14584
  let je = !1;
14585
14585
  try {
14586
- !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 }));
14587
14587
  const Ke = pe.current ? tn() : {}, Rt = { ...$e, ...Ke };
14588
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);
14589
14589
  } catch (Ke) {
@@ -14604,7 +14604,7 @@ function Ab(t, e) {
14604
14604
  getFieldValue: vn,
14605
14605
  executeButtonAction: no,
14606
14606
  getContext: jt,
14607
- submitForm: _n,
14607
+ submitForm: In,
14608
14608
  fetchValues: nt,
14609
14609
  formHasChanges: Xe,
14610
14610
  elementHasLostFocus: Jn,
@@ -14634,7 +14634,7 @@ function Ab(t, e) {
14634
14634
  }
14635
14635
  )
14636
14636
  }
14637
- ) }), In = () => {
14637
+ ) }), Rn = () => {
14638
14638
  const xe = Te() && Ie;
14639
14639
  return /* @__PURE__ */ U(Fe, { children: [
14640
14640
  /* @__PURE__ */ s(jr, {}),
@@ -14652,7 +14652,7 @@ function Ab(t, e) {
14652
14652
  /* @__PURE__ */ s(
14653
14653
  Qe,
14654
14654
  {
14655
- icon: /* @__PURE__ */ s(xn, {}),
14655
+ icon: /* @__PURE__ */ s(Sn, {}),
14656
14656
  disabled: D,
14657
14657
  onClick: async () => {
14658
14658
  await gt();
@@ -14667,7 +14667,7 @@ function Ab(t, e) {
14667
14667
  loading: D,
14668
14668
  icon: /* @__PURE__ */ s(hr, {}),
14669
14669
  onClick: async () => {
14670
- await _n();
14670
+ await In();
14671
14671
  },
14672
14672
  type: "primary",
14673
14673
  children: "OK"
@@ -14687,7 +14687,7 @@ function Ab(t, e) {
14687
14687
  },
14688
14688
  children: ({ measureRef: ge }) => /* @__PURE__ */ U("div", { className: "pb-2", ref: ge, children: [
14689
14689
  Bo(),
14690
- c && In()
14690
+ c && Rn()
14691
14691
  ] })
14692
14692
  }
14693
14693
  ) : null;
@@ -14822,7 +14822,7 @@ const Tr = Ht(Ab), md = (t) => {
14822
14822
  handleCancelNameModal: h,
14823
14823
  initialName: r
14824
14824
  };
14825
- }, Tn = (t) => {
14825
+ }, An = (t) => {
14826
14826
  const {
14827
14827
  visible: e,
14828
14828
  id: n,
@@ -15031,13 +15031,13 @@ const Tr = Ht(Ab), md = (t) => {
15031
15031
  children: y("ok")
15032
15032
  }
15033
15033
  ),
15034
- /* @__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") })
15035
15035
  ] }) })
15036
15036
  ]
15037
15037
  }
15038
15038
  ),
15039
15039
  /* @__PURE__ */ s(
15040
- Tn,
15040
+ An,
15041
15041
  {
15042
15042
  model: r,
15043
15043
  visible: l,
@@ -15233,7 +15233,7 @@ const Tr = Ht(Ab), md = (t) => {
15233
15233
  }
15234
15234
  ),
15235
15235
  /* @__PURE__ */ s(
15236
- Tn,
15236
+ An,
15237
15237
  {
15238
15238
  model: i,
15239
15239
  parentContext: { ...M == null ? void 0 : M(), ...c },
@@ -15352,7 +15352,7 @@ const Tr = Ht(Ab), md = (t) => {
15352
15352
  toolbar: o
15353
15353
  }) => {
15354
15354
  const { t: i } = Oe(), a = Re(
15355
- Sn
15355
+ Tn
15356
15356
  ), c = Re(
15357
15357
  Qt
15358
15358
  ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = _(null), [m, p] = _(!1), [g] = Ee(
@@ -16149,7 +16149,7 @@ const Pb = (t) => {
16149
16149
  ),
16150
16150
  Se(),
16151
16151
  /* @__PURE__ */ s(
16152
- Tn,
16152
+ An,
16153
16153
  {
16154
16154
  formView: o.get("form"),
16155
16155
  model: ne,
@@ -17116,7 +17116,7 @@ const Rd = ({
17116
17116
  }
17117
17117
  ),
17118
17118
  /* @__PURE__ */ s(
17119
- Tn,
17119
+ An,
17120
17120
  {
17121
17121
  formView: i.get("form"),
17122
17122
  model: y,
@@ -17551,7 +17551,7 @@ const Rd = ({
17551
17551
  }
17552
17552
  ),
17553
17553
  /* @__PURE__ */ s(
17554
- Tn,
17554
+ An,
17555
17555
  {
17556
17556
  formView: i.get("form"),
17557
17557
  model: p,
@@ -19145,7 +19145,7 @@ const Ma = (t, e) => ({
19145
19145
  /* @__PURE__ */ s(
19146
19146
  Qe,
19147
19147
  {
19148
- icon: /* @__PURE__ */ s(xn, {}),
19148
+ icon: /* @__PURE__ */ s(Sn, {}),
19149
19149
  htmlType: "button",
19150
19150
  onClick: r,
19151
19151
  disabled: o,
@@ -19514,7 +19514,7 @@ const Bw = {
19514
19514
  },
19515
19515
  ...i
19516
19516
  };
19517
- 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(
19518
19518
  nf,
19519
19519
  {
19520
19520
  remarkPlugins: [rf],
@@ -19534,7 +19534,7 @@ const Yw = {
19534
19534
  comment: t,
19535
19535
  model: e,
19536
19536
  resourceId: n
19537
- }) => /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(Ft, { children: /* @__PURE__ */ s(
19537
+ }) => /* @__PURE__ */ s(xn, { children: /* @__PURE__ */ s(Ft, { children: /* @__PURE__ */ s(
19538
19538
  Ft.Item,
19539
19539
  {
19540
19540
  name: `comment_${t.id}`,
@@ -19849,13 +19849,13 @@ const r0 = (t) => {
19849
19849
  Qe,
19850
19850
  {
19851
19851
  type: "text",
19852
- icon: /* @__PURE__ */ s(xn, {}),
19852
+ icon: /* @__PURE__ */ s(Sn, {}),
19853
19853
  onClick: a,
19854
19854
  size: "small"
19855
19855
  }
19856
19856
  )
19857
19857
  ] }),
19858
- /* @__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(
19859
19859
  lr,
19860
19860
  {
19861
19861
  description: p("noComments"),
@@ -20192,7 +20192,7 @@ function Ld({
20192
20192
  context: r,
20193
20193
  onRefreshParentValues: o
20194
20194
  }) {
20195
- const i = Re(Sn), { processAction: a } = i || {};
20195
+ const i = Re(Tn), { processAction: a } = i || {};
20196
20196
  return { runAction: x(
20197
20197
  async ({
20198
20198
  actionData: l,
@@ -21480,7 +21480,7 @@ const Na = ({ value: t }) => K(
21480
21480
  onRefreshParentValues: we
21481
21481
  }), Ae = x(
21482
21482
  async (G) => {
21483
- var tn, Xt, An;
21483
+ var tn, Xt, _n;
21484
21484
  const { active: X, over: ce } = G, de = E, Ce = V, Me = () => {
21485
21485
  O(null), D(null), A(null), P(null);
21486
21486
  };
@@ -21549,7 +21549,7 @@ const Na = ({ value: t }) => K(
21549
21549
  Te.originalValue,
21550
21550
  xt,
21551
21551
  F
21552
- ), 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";
21553
21553
  if (!(Xe != null && Xe.id) || !(ot != null && ot.id) || parseInt(Xe == null ? void 0 : Xe.id) === parseInt(ot == null ? void 0 : ot.id))
21554
21554
  return;
21555
21555
  const bt = await ye({
@@ -22369,7 +22369,7 @@ const Na = ({ value: t }) => K(
22369
22369
  }
22370
22370
  ),
22371
22371
  ke && /* @__PURE__ */ s(
22372
- Tn,
22372
+ An,
22373
22373
  {
22374
22374
  formView: ke,
22375
22375
  model: r,
@@ -23587,7 +23587,7 @@ function _C(t, e) {
23587
23587
  H = { ...H, ...k[0] };
23588
23588
  }
23589
23589
  let L;
23590
- 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({
23591
23591
  context: E.context,
23592
23592
  fields: P,
23593
23593
  values: { ...c, ...H || {} }
@@ -23661,7 +23661,7 @@ function _C(t, e) {
23661
23661
  });
23662
23662
  return;
23663
23663
  }
23664
- 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({
23665
23665
  context: j,
23666
23666
  values: c
23667
23667
  }), J = L.domain, ne = await (async () => {
@@ -23762,7 +23762,7 @@ function _C(t, e) {
23762
23762
  target: k,
23763
23763
  string: W,
23764
23764
  limit: j
23765
- } = 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({
23766
23766
  context: Z,
23767
23767
  values: { ...A, ...c }
23768
23768
  }), re = L, ye = L ? await Y.getHandler().evalDomain({
@@ -23806,7 +23806,7 @@ function _C(t, e) {
23806
23806
  } = R, k = `${A},${E}`, W = await Y.getHandler().getActionData({
23807
23807
  action: k,
23808
23808
  context: l
23809
- }), j = W.context, B = Fn({
23809
+ }), j = W.context, B = En({
23810
23810
  context: j,
23811
23811
  values: { ...c, ...z },
23812
23812
  fields: {}
@@ -24180,7 +24180,7 @@ function RC(t) {
24180
24180
  alignItems: "center"
24181
24181
  },
24182
24182
  children: /* @__PURE__ */ s(
24183
- xn,
24183
+ Sn,
24184
24184
  {
24185
24185
  style: {
24186
24186
  color: c.colorPrimaryActive
@@ -24542,7 +24542,7 @@ export {
24542
24542
  ew as FloatTime,
24543
24543
  Tr as Form,
24544
24544
  a0 as FormActionView,
24545
- Tn as FormModal,
24545
+ An as FormModal,
24546
24546
  cd as GraphCard,
24547
24547
  sp as GraphIndicator,
24548
24548
  Od as Group,