@gisce/react-ooui 2.0.0-alpha.25 → 2.0.0-alpha.26
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.
- package/dist/react-ooui.es.js +402 -402
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/index.ts +1 -1
- package/src/widgets/custom/MultiCheckbox.tsx +1 -1
- package/src/widgets/custom/Tags.tsx +1 -1
- package/src/widgets/modals/TranslationModal.tsx +1 -1
- package/src/widgets/views/Form.tsx +1 -1
- package/src/widgets/views/Graph/useGraphData.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -2,11 +2,11 @@ var Go = Object.defineProperty;
|
|
|
2
2
|
var Uo = (t, e, r) => e in t ? Go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var sr = (t, e, r) => (Uo(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
4
|
import { jsxs as V, jsx as n, Fragment as Q } from "react/jsx-runtime";
|
|
5
|
-
import Qe, { useContext as H, useState as b, useEffect as me, useRef as de, useCallback as De, forwardRef as
|
|
6
|
-
import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as
|
|
7
|
-
import { Label as Dt, Field as Rn, Tree as kr, Reference as ti, Selection as Bn, Many2one as Er, Boolean as ni, Container as ri, parseContext as
|
|
5
|
+
import Qe, { useContext as H, useState as b, useEffect as me, useRef as de, useCallback as De, forwardRef as wt, useImperativeHandle as bt } from "react";
|
|
6
|
+
import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as we, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as $e, Spin as Ae, Divider as cn, Space as We, Input as it, Select as Ct, Checkbox as Ht, Alert as et, Timeline as _n, Statistic as qo, Card as Nn, Tag as Rr, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ln, Progress as zo, Avatar as Ar, Badge as Jo, Pagination as Zo, Tabs as Dr, Popover as Xo, Radio as ar, Switch as Qo, Steps as lr, Layout as ei } from "antd";
|
|
7
|
+
import { Label as Dt, Field as Rn, Tree as kr, Reference as ti, Selection as Bn, Many2one as Er, Boolean as ni, Container as ri, parseContext as vt, Form as Mr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as oi, parseContextFields as Sn, parseDomainFields as cr, transformDomainForChildWidget as Nr, graphProcessor as Pr, parseGraph as $n, graphFieldUtils as ii } from "@gisce/ooui";
|
|
8
8
|
import * as dr from "@ant-design/icons";
|
|
9
|
-
import Lr, { QuestionCircleOutlined as Br, ExclamationCircleOutlined as pt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as $r, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Hr, FolderOpenOutlined as Hn, DownloadOutlined as Kn, ClearOutlined as Wn, StarFilled as Kr, StarOutlined as Wr, UpOutlined as si, SearchOutlined as jn, RightCircleOutlined as ai, ThunderboltOutlined as Yn, PrinterOutlined as Gn, EnterOutlined as jr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as dn, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Un, LeftOutlined as Yr, RightOutlined as Gr, EyeOutlined as fi, FormOutlined as Kt, TableOutlined as qn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as Ur, SaveOutlined as pi, CopyOutlined as zn, InfoCircleOutlined as qr, ReloadOutlined as un, EditOutlined as zr, FilterOutlined as Jr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as
|
|
9
|
+
import Lr, { QuestionCircleOutlined as Br, ExclamationCircleOutlined as pt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as $r, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Hr, FolderOpenOutlined as Hn, DownloadOutlined as Kn, ClearOutlined as Wn, StarFilled as Kr, StarOutlined as Wr, UpOutlined as si, SearchOutlined as jn, RightCircleOutlined as ai, ThunderboltOutlined as Yn, PrinterOutlined as Gn, EnterOutlined as jr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as dn, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Un, LeftOutlined as Yr, RightOutlined as Gr, EyeOutlined as fi, FormOutlined as Kt, TableOutlined as qn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as Ur, SaveOutlined as pi, CopyOutlined as zn, InfoCircleOutlined as qr, ReloadOutlined as un, EditOutlined as zr, FilterOutlined as Jr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as vi, ExportOutlined as wi } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as Jn } from "interweave";
|
|
11
11
|
import * as ur from "@tabler/icons-react";
|
|
12
12
|
import bi from "antd/lib/input/TextArea";
|
|
@@ -398,7 +398,7 @@ function ge({
|
|
|
398
398
|
align: s
|
|
399
399
|
}
|
|
400
400
|
);
|
|
401
|
-
return r === "horizontal" ? (() => /* @__PURE__ */ V(
|
|
401
|
+
return r === "horizontal" ? (() => /* @__PURE__ */ V(we, { align: "middle", className: "pb-1 pt-1", children: [
|
|
402
402
|
/* @__PURE__ */ n(ae, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ n("div", { className: "flex flex-col items-end", children: p }) }),
|
|
403
403
|
/* @__PURE__ */ n(ae, { flex: "auto", children: h() })
|
|
404
404
|
] }))() : (() => /* @__PURE__ */ V(Q, { children: [
|
|
@@ -611,7 +611,7 @@ const Xr = (t) => {
|
|
|
611
611
|
}
|
|
612
612
|
p();
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function v() {
|
|
615
615
|
if (m)
|
|
616
616
|
return /* @__PURE__ */ n(st, {});
|
|
617
617
|
if (l) {
|
|
@@ -625,7 +625,7 @@ const Xr = (t) => {
|
|
|
625
625
|
block: !0,
|
|
626
626
|
disabled: !o || u,
|
|
627
627
|
onClick: y,
|
|
628
|
-
icon:
|
|
628
|
+
icon: v(),
|
|
629
629
|
type: e.primary ? "primary" : "default",
|
|
630
630
|
danger: e.danger,
|
|
631
631
|
style: { whiteSpace: "normal", height: "auto" },
|
|
@@ -644,7 +644,7 @@ const Xr = (t) => {
|
|
|
644
644
|
danger: f,
|
|
645
645
|
context: m,
|
|
646
646
|
readOnly: g
|
|
647
|
-
} = r || {}, h = H(Ne), { executeButtonAction: p } = h || {}, [y,
|
|
647
|
+
} = r || {}, h = H(Ne), { executeButtonAction: p } = h || {}, [y, v] = b(!1), { lang: T } = H(he);
|
|
648
648
|
function I() {
|
|
649
649
|
if (y)
|
|
650
650
|
return /* @__PURE__ */ n(st, {});
|
|
@@ -654,7 +654,7 @@ const Xr = (t) => {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
async function C() {
|
|
657
|
-
l && o && (
|
|
657
|
+
l && o && (v(!0), await p({ type: l, action: o, context: m }), v(!1));
|
|
658
658
|
}
|
|
659
659
|
function O() {
|
|
660
660
|
if (d) {
|
|
@@ -711,7 +711,7 @@ const Xr = (t) => {
|
|
|
711
711
|
readOnly: g,
|
|
712
712
|
danger: h
|
|
713
713
|
} = s, [p, y] = b(!1);
|
|
714
|
-
async function
|
|
714
|
+
async function v() {
|
|
715
715
|
y(!0), await r({ type: u, action: a, context: m }), y(!1);
|
|
716
716
|
}
|
|
717
717
|
function T() {
|
|
@@ -720,12 +720,12 @@ const Xr = (t) => {
|
|
|
720
720
|
confirmMessage: c,
|
|
721
721
|
lang: i,
|
|
722
722
|
onOk: () => {
|
|
723
|
-
|
|
723
|
+
v();
|
|
724
724
|
}
|
|
725
725
|
});
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
|
-
|
|
728
|
+
v();
|
|
729
729
|
}
|
|
730
730
|
function I() {
|
|
731
731
|
if (p)
|
|
@@ -810,7 +810,7 @@ const Qr = (t) => {
|
|
|
810
810
|
content: e
|
|
811
811
|
});
|
|
812
812
|
}, eo = (t) => {
|
|
813
|
-
const { visible: e, onCloseModal: r, model: i, id: o, field: s, onSubmitSucceed: a } = t, { modalWidth: l } = mn(), { t: d } = H(he), [u, c] = b([]), [f, m] = b(!1), [g, h] = b(!1), [p, y] = b({}),
|
|
813
|
+
const { visible: e, onCloseModal: r, model: i, id: o, field: s, onSubmitSucceed: a } = t, { modalWidth: l } = mn(), { t: d } = H(he), [u, c] = b([]), [f, m] = b(!1), [g, h] = b(!1), [p, y] = b({}), v = de();
|
|
814
814
|
me(() => {
|
|
815
815
|
e ? T() : y({});
|
|
816
816
|
}, [e]);
|
|
@@ -827,7 +827,7 @@ const Qr = (t) => {
|
|
|
827
827
|
async function I() {
|
|
828
828
|
const S = (await D.getHandler().search({
|
|
829
829
|
params: [["translatable", "=", "1"]],
|
|
830
|
-
|
|
830
|
+
fieldsToRetrieve: ["code", "name"],
|
|
831
831
|
model: "res.lang"
|
|
832
832
|
})).map((F) => ({
|
|
833
833
|
code: F.code,
|
|
@@ -838,18 +838,18 @@ const Qr = (t) => {
|
|
|
838
838
|
async function C(x) {
|
|
839
839
|
const S = {};
|
|
840
840
|
for (const F of x) {
|
|
841
|
-
const
|
|
841
|
+
const w = (await D.getHandler().readObjects({
|
|
842
842
|
model: i,
|
|
843
843
|
ids: [o],
|
|
844
844
|
fieldsToRetrieve: [s],
|
|
845
845
|
context: { lang: F.code }
|
|
846
846
|
}))[0];
|
|
847
|
-
S[F.code] =
|
|
847
|
+
S[F.code] = w[s] || "";
|
|
848
848
|
}
|
|
849
|
-
|
|
849
|
+
v.current = S, y(S);
|
|
850
850
|
}
|
|
851
851
|
function O() {
|
|
852
|
-
return u.map((x, S) => /* @__PURE__ */ V(
|
|
852
|
+
return u.map((x, S) => /* @__PURE__ */ V(we, { style: { paddingBottom: 20 }, children: [
|
|
853
853
|
/* @__PURE__ */ n(ae, { flex: "8rem", style: { paddingRight: 10 }, children: x.name }),
|
|
854
854
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
855
855
|
bi,
|
|
@@ -871,7 +871,7 @@ const Qr = (t) => {
|
|
|
871
871
|
h(!0);
|
|
872
872
|
try {
|
|
873
873
|
for (const x of Object.keys(p))
|
|
874
|
-
p[x] !==
|
|
874
|
+
p[x] !== v.current[x] && await D.getHandler().update({
|
|
875
875
|
model: i,
|
|
876
876
|
id: o,
|
|
877
877
|
values: { [s]: p[x] },
|
|
@@ -889,7 +889,7 @@ const Qr = (t) => {
|
|
|
889
889
|
return f ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ V(Q, { children: [
|
|
890
890
|
O(),
|
|
891
891
|
/* @__PURE__ */ n(cn, {}),
|
|
892
|
-
/* @__PURE__ */ n(
|
|
892
|
+
/* @__PURE__ */ n(we, { justify: "end", children: /* @__PURE__ */ V(We, { children: [
|
|
893
893
|
/* @__PURE__ */ n(
|
|
894
894
|
Oe,
|
|
895
895
|
{
|
|
@@ -1013,7 +1013,7 @@ const { info: cs } = Je, ft = (t) => {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
)
|
|
1016
|
-
] }) : /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ V(
|
|
1016
|
+
] }) : /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ V(we, { gutter: 8, wrap: !1, children: [
|
|
1017
1017
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
1018
1018
|
it,
|
|
1019
1019
|
{
|
|
@@ -1062,7 +1062,7 @@ const { info: cs } = Je, ft = (t) => {
|
|
|
1062
1062
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1063
1063
|
background-color: ${hs.colorPrimaryBg};
|
|
1064
1064
|
}
|
|
1065
|
-
`, { defaultAlgorithm: ys, defaultSeed:
|
|
1065
|
+
`, { defaultAlgorithm: ys, defaultSeed: vs } = Pe, pr = ys(vs), ws = (t) => {
|
|
1066
1066
|
const { ooui: e } = t, { id: r, readOnly: i, required: o } = e;
|
|
1067
1067
|
return /* @__PURE__ */ n(ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ n(bs, { id: r, readOnly: i, required: o }) });
|
|
1068
1068
|
}, bs = (t) => {
|
|
@@ -1121,7 +1121,7 @@ const Ss = (t) => {
|
|
|
1121
1121
|
l(void 0);
|
|
1122
1122
|
}
|
|
1123
1123
|
return /* @__PURE__ */ V(Q, { children: [
|
|
1124
|
-
/* @__PURE__ */ V(
|
|
1124
|
+
/* @__PURE__ */ V(we, { gutter: 8, wrap: !1, justify: "center", children: [
|
|
1125
1125
|
r && /* @__PURE__ */ n(
|
|
1126
1126
|
"img",
|
|
1127
1127
|
{
|
|
@@ -1141,7 +1141,7 @@ const Ss = (t) => {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
)
|
|
1143
1143
|
] }),
|
|
1144
|
-
/* @__PURE__ */ n(
|
|
1144
|
+
/* @__PURE__ */ n(we, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ V(We, { children: [
|
|
1145
1145
|
/* @__PURE__ */ n(
|
|
1146
1146
|
Xe,
|
|
1147
1147
|
{
|
|
@@ -1297,18 +1297,18 @@ const Xn = async (t) => {
|
|
|
1297
1297
|
});
|
|
1298
1298
|
const m = c.map((p) => {
|
|
1299
1299
|
const y = {};
|
|
1300
|
-
return Object.keys(p).forEach((
|
|
1301
|
-
(u[a].hasOwnProperty(
|
|
1300
|
+
return Object.keys(p).forEach((v) => {
|
|
1301
|
+
(u[a].hasOwnProperty(v) || v === "id") && (y[v] = p[v]);
|
|
1302
1302
|
}), y;
|
|
1303
1303
|
});
|
|
1304
1304
|
return [
|
|
1305
1305
|
e.map((p) => {
|
|
1306
1306
|
const y = m.find(
|
|
1307
1307
|
(T) => T.id === p.id
|
|
1308
|
-
),
|
|
1308
|
+
), v = {
|
|
1309
1309
|
...p
|
|
1310
1310
|
};
|
|
1311
|
-
return a === "form" ?
|
|
1311
|
+
return a === "form" ? v.values = y : a === "tree" && (v.treeValues = y), v;
|
|
1312
1312
|
}).concat(l),
|
|
1313
1313
|
f
|
|
1314
1314
|
];
|
|
@@ -1345,7 +1345,7 @@ const Xn = async (t) => {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(et, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(Ds, { ooui: e, views: u }) });
|
|
1347
1347
|
}, Ds = (t) => {
|
|
1348
|
-
const { value: e, views: r, ooui: i, onChange: o } = t, { items: s = [] } = e || {}, [a, l] = b(!1), [d, u] = b(), [c, f] = b(!1), [m, g] = b(), { relation: h, context: p, readOnly: y, summaryField:
|
|
1348
|
+
const { value: e, views: r, ooui: i, onChange: o } = t, { items: s = [] } = e || {}, [a, l] = b(!1), [d, u] = b(), [c, f] = b(!1), [m, g] = b(), { relation: h, context: p, readOnly: y, summaryField: v, titleField: T } = i, I = s.filter((x) => x.values), C = H(Ne), { getContext: O } = C || {};
|
|
1349
1349
|
xt(() => {
|
|
1350
1350
|
A();
|
|
1351
1351
|
}, [s]);
|
|
@@ -1379,7 +1379,7 @@ const Xn = async (t) => {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
return d ? /* @__PURE__ */ n(et, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ V(Q, { children: [
|
|
1381
1381
|
/* @__PURE__ */ n(_n, { style: { padding: "1rem" }, children: I.map((x, S) => {
|
|
1382
|
-
var F,
|
|
1382
|
+
var F, w;
|
|
1383
1383
|
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ V(_n.Item, { children: [
|
|
1384
1384
|
/* @__PURE__ */ n(
|
|
1385
1385
|
"div",
|
|
@@ -1407,7 +1407,7 @@ const Xn = async (t) => {
|
|
|
1407
1407
|
)
|
|
1408
1408
|
), f(!0);
|
|
1409
1409
|
},
|
|
1410
|
-
children: (
|
|
1410
|
+
children: (w = x.values) == null ? void 0 : w[v]
|
|
1411
1411
|
}
|
|
1412
1412
|
)
|
|
1413
1413
|
] }, S) }, S);
|
|
@@ -1613,7 +1613,7 @@ const Nt = ({
|
|
|
1613
1613
|
const { ooui: e } = t;
|
|
1614
1614
|
return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(js, { ooui: e }) });
|
|
1615
1615
|
}, js = (t) => {
|
|
1616
|
-
const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p } = r, y = H(Ne), { getContext:
|
|
1616
|
+
const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p } = r, y = H(Ne), { getContext: v } = y || {};
|
|
1617
1617
|
xt(() => {
|
|
1618
1618
|
I();
|
|
1619
1619
|
}, [o]);
|
|
@@ -1641,12 +1641,12 @@ const Nt = ({
|
|
|
1641
1641
|
const x = (await D.getHandler().search({
|
|
1642
1642
|
model: m,
|
|
1643
1643
|
params: _,
|
|
1644
|
-
|
|
1645
|
-
context: { ...
|
|
1644
|
+
fieldsToRetrieve: [p],
|
|
1645
|
+
context: { ...v == null ? void 0 : v(), ...g }
|
|
1646
1646
|
})).map((S) => {
|
|
1647
1647
|
const F = S[p];
|
|
1648
|
-
let
|
|
1649
|
-
return Array.isArray(F) && (
|
|
1648
|
+
let w = F;
|
|
1649
|
+
return Array.isArray(F) && (w = F[1]), { label: w, value: S.id };
|
|
1650
1650
|
});
|
|
1651
1651
|
l(x);
|
|
1652
1652
|
} catch (A) {
|
|
@@ -1666,15 +1666,15 @@ const Nt = ({
|
|
|
1666
1666
|
}, O = (_) => {
|
|
1667
1667
|
const { label: A, closable: x, onClose: S } = _, F = (E) => {
|
|
1668
1668
|
E.preventDefault(), E.stopPropagation();
|
|
1669
|
-
},
|
|
1669
|
+
}, w = nn(A);
|
|
1670
1670
|
return /* @__PURE__ */ n(
|
|
1671
1671
|
co,
|
|
1672
1672
|
{
|
|
1673
|
-
color:
|
|
1673
|
+
color: w,
|
|
1674
1674
|
onMouseDown: F,
|
|
1675
1675
|
closable: x,
|
|
1676
1676
|
onClose: S,
|
|
1677
|
-
closeIcon: /* @__PURE__ */ n("span", { style: { color:
|
|
1677
|
+
closeIcon: /* @__PURE__ */ n("span", { style: { color: w }, children: "X" }),
|
|
1678
1678
|
children: A
|
|
1679
1679
|
}
|
|
1680
1680
|
);
|
|
@@ -1717,7 +1717,7 @@ const Nt = ({
|
|
|
1717
1717
|
case "many2one":
|
|
1718
1718
|
return cl;
|
|
1719
1719
|
case "boolean":
|
|
1720
|
-
return
|
|
1720
|
+
return ws;
|
|
1721
1721
|
case "integer":
|
|
1722
1722
|
return rn;
|
|
1723
1723
|
case "float":
|
|
@@ -1743,9 +1743,9 @@ const Nt = ({
|
|
|
1743
1743
|
case "image":
|
|
1744
1744
|
return Ss;
|
|
1745
1745
|
case "url":
|
|
1746
|
-
return wc;
|
|
1747
|
-
case "email":
|
|
1748
1746
|
return vc;
|
|
1747
|
+
case "email":
|
|
1748
|
+
return wc;
|
|
1749
1749
|
case "float_time":
|
|
1750
1750
|
return Bl;
|
|
1751
1751
|
case "fiber_grid":
|
|
@@ -1872,7 +1872,7 @@ const Nt = ({
|
|
|
1872
1872
|
onCancel: e,
|
|
1873
1873
|
cancelText: Ie("cancel", r)
|
|
1874
1874
|
});
|
|
1875
|
-
}, { error: ea } = Je,
|
|
1875
|
+
}, { error: ea } = Je, vr = (t) => {
|
|
1876
1876
|
ea({
|
|
1877
1877
|
title: Ie("formHasErrors", t),
|
|
1878
1878
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
@@ -1898,7 +1898,7 @@ const Nt = ({
|
|
|
1898
1898
|
children: e
|
|
1899
1899
|
}
|
|
1900
1900
|
);
|
|
1901
|
-
},
|
|
1901
|
+
}, wr = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, oa = (t, e) => {
|
|
1902
1902
|
const r = da(t), i = la(r), o = ca(
|
|
1903
1903
|
i,
|
|
1904
1904
|
e
|
|
@@ -1925,9 +1925,9 @@ const Nt = ({
|
|
|
1925
1925
|
t,
|
|
1926
1926
|
"in",
|
|
1927
1927
|
e.map(
|
|
1928
|
-
(a) =>
|
|
1928
|
+
(a) => wr(a)
|
|
1929
1929
|
)
|
|
1930
|
-
] : [t, "=",
|
|
1930
|
+
] : [t, "=", wr(e)];
|
|
1931
1931
|
}, sa = (t) => Object.keys(t).filter((e) => e.indexOf("#date") !== -1), aa = (t) => {
|
|
1932
1932
|
const e = { ...t };
|
|
1933
1933
|
return Object.keys(e).forEach(
|
|
@@ -1989,16 +1989,16 @@ const Nt = ({
|
|
|
1989
1989
|
setSorter: h,
|
|
1990
1990
|
setCurrentItemIndex: p,
|
|
1991
1991
|
setResultsActionView: y,
|
|
1992
|
-
resultsActionView:
|
|
1992
|
+
resultsActionView: v,
|
|
1993
1993
|
domain: T,
|
|
1994
1994
|
currentId: I,
|
|
1995
1995
|
limit: C,
|
|
1996
1996
|
setLimit: O,
|
|
1997
1997
|
searchParams: _ = [],
|
|
1998
1998
|
setSearchValues: A
|
|
1999
|
-
} = t, [x, S] = b(!1), [F,
|
|
1999
|
+
} = t, [x, S] = b(!1), [F, w] = b(!1), [E, P] = b(), [M, j] = b(1), [N, B] = b(0), [K, R] = b(), [U, ne] = b([]), [X, Y] = b(void 0), [G, k] = b(void 0), L = de(C || jt), ee = de([]), le = De((oe) => {
|
|
2000
2000
|
y == null || y([...oe]), ne([...oe]);
|
|
2001
|
-
}, []), Fe = De(() =>
|
|
2001
|
+
}, []), Fe = De(() => v || U, [v, U]), J = De(async () => {
|
|
2002
2002
|
const oe = await D.getHandler().nameSearch({
|
|
2003
2003
|
model: e,
|
|
2004
2004
|
payload: l,
|
|
@@ -2058,7 +2058,7 @@ const Nt = ({
|
|
|
2058
2058
|
sorter: g,
|
|
2059
2059
|
fields: { ...f.fields, ...m.fields }
|
|
2060
2060
|
}) : [...ee.current];
|
|
2061
|
-
if (le(ue),
|
|
2061
|
+
if (le(ue), v && ue.length > 0) {
|
|
2062
2062
|
const ce = ue.findIndex(
|
|
2063
2063
|
(ot) => I === ot.id
|
|
2064
2064
|
);
|
|
@@ -2071,7 +2071,7 @@ const Nt = ({
|
|
|
2071
2071
|
},
|
|
2072
2072
|
[
|
|
2073
2073
|
p,
|
|
2074
|
-
|
|
2074
|
+
v,
|
|
2075
2075
|
le,
|
|
2076
2076
|
I,
|
|
2077
2077
|
e,
|
|
@@ -2092,7 +2092,7 @@ const Nt = ({
|
|
|
2092
2092
|
} catch (Ee) {
|
|
2093
2093
|
P(Ee.message);
|
|
2094
2094
|
} finally {
|
|
2095
|
-
i == null || i([]),
|
|
2095
|
+
i == null || i([]), w(!1), a == null || a(!1);
|
|
2096
2096
|
}
|
|
2097
2097
|
},
|
|
2098
2098
|
[
|
|
@@ -2104,19 +2104,19 @@ const Nt = ({
|
|
|
2104
2104
|
e,
|
|
2105
2105
|
l,
|
|
2106
2106
|
N,
|
|
2107
|
-
|
|
2107
|
+
v,
|
|
2108
2108
|
d,
|
|
2109
2109
|
c,
|
|
2110
2110
|
p,
|
|
2111
2111
|
le,
|
|
2112
2112
|
P,
|
|
2113
|
-
|
|
2113
|
+
w,
|
|
2114
2114
|
S,
|
|
2115
2115
|
a,
|
|
2116
2116
|
g,
|
|
2117
2117
|
f
|
|
2118
2118
|
]
|
|
2119
|
-
),
|
|
2119
|
+
), ve = De(
|
|
2120
2120
|
(oe) => {
|
|
2121
2121
|
if (JSON.stringify(oe) === JSON.stringify(g))
|
|
2122
2122
|
return;
|
|
@@ -2132,7 +2132,7 @@ const Nt = ({
|
|
|
2132
2132
|
), je = De(
|
|
2133
2133
|
(oe) => {
|
|
2134
2134
|
const { params: Ee, searchValues: ye, limit: Me, offset: He } = oe;
|
|
2135
|
-
x || (r == null || r(void 0), i == null || i([]), A == null || A(ye), o == null || o(Ee), s == null || s(!1),
|
|
2135
|
+
x || (r == null || r(void 0), i == null || i([]), A == null || A(ye), o == null || o(Ee), s == null || s(!1), w(!0), P(void 0), j(1), Me && (L.current = Me, O == null || O(Me)), He && B(He), be({
|
|
2136
2136
|
params: Ee,
|
|
2137
2137
|
newOffset: He
|
|
2138
2138
|
}));
|
|
@@ -2143,7 +2143,7 @@ const Nt = ({
|
|
|
2143
2143
|
i,
|
|
2144
2144
|
o,
|
|
2145
2145
|
s,
|
|
2146
|
-
|
|
2146
|
+
w,
|
|
2147
2147
|
P,
|
|
2148
2148
|
j,
|
|
2149
2149
|
O,
|
|
@@ -2195,7 +2195,7 @@ const Nt = ({
|
|
|
2195
2195
|
limit: C,
|
|
2196
2196
|
getResults: Fe,
|
|
2197
2197
|
requestPageChange: ke,
|
|
2198
|
-
changeSort:
|
|
2198
|
+
changeSort: ve,
|
|
2199
2199
|
fetchChildrenForRecord: Ge,
|
|
2200
2200
|
colorsForResults: X,
|
|
2201
2201
|
statusForResults: G,
|
|
@@ -2220,7 +2220,7 @@ const Nt = ({
|
|
|
2220
2220
|
setCurrentItemIndex: h,
|
|
2221
2221
|
currentModel: p,
|
|
2222
2222
|
sorter: y,
|
|
2223
|
-
setSorter:
|
|
2223
|
+
setSorter: v,
|
|
2224
2224
|
totalItems: T,
|
|
2225
2225
|
setTotalItems: I,
|
|
2226
2226
|
setSelectedRowItems: C,
|
|
@@ -2229,7 +2229,7 @@ const Nt = ({
|
|
|
2229
2229
|
setSearchTreeNameSearch: A,
|
|
2230
2230
|
goToResourceId: x,
|
|
2231
2231
|
limit: S
|
|
2232
|
-
} = t, [F,
|
|
2232
|
+
} = t, [F, w] = b(!1), [E, P] = b(!1), [M, j] = b(!1), [N, B] = b(!0), [K, R] = b(!0), [U, ne] = b([]), [X, Y] = b(!1), [G, k] = b([]), [L, ee] = b(!1), [le, Fe] = b(!0), [J, q] = b(), [be, ve] = b({}), [je, ke] = b(
|
|
2233
2233
|
S !== void 0 ? S : jt
|
|
2234
2234
|
), [Le, Ge] = b(i);
|
|
2235
2235
|
me(() => {
|
|
@@ -2262,7 +2262,7 @@ const Nt = ({
|
|
|
2262
2262
|
setCurrentView: o,
|
|
2263
2263
|
availableViews: s,
|
|
2264
2264
|
formIsSaving: F,
|
|
2265
|
-
setFormIsSaving:
|
|
2265
|
+
setFormIsSaving: w,
|
|
2266
2266
|
formHasChanges: E,
|
|
2267
2267
|
setFormHasChanges: P,
|
|
2268
2268
|
formRef: a,
|
|
@@ -2293,7 +2293,7 @@ const Nt = ({
|
|
|
2293
2293
|
searchVisible: L,
|
|
2294
2294
|
setSearchVisible: ee,
|
|
2295
2295
|
sorter: y,
|
|
2296
|
-
setSorter:
|
|
2296
|
+
setSorter: v,
|
|
2297
2297
|
totalItems: T,
|
|
2298
2298
|
setTotalItems: I,
|
|
2299
2299
|
searchTreeNameSearch: _,
|
|
@@ -2304,7 +2304,7 @@ const Nt = ({
|
|
|
2304
2304
|
setPreviousView: q,
|
|
2305
2305
|
goToResourceId: x,
|
|
2306
2306
|
searchValues: be,
|
|
2307
|
-
setSearchValues:
|
|
2307
|
+
setSearchValues: ve,
|
|
2308
2308
|
limit: je,
|
|
2309
2309
|
setLimit: ke,
|
|
2310
2310
|
setTitle: Ge
|
|
@@ -2361,7 +2361,7 @@ const Nt = ({
|
|
|
2361
2361
|
}
|
|
2362
2362
|
);
|
|
2363
2363
|
async function y(A) {
|
|
2364
|
-
const { reportData: x, fields: S, values: F, context:
|
|
2364
|
+
const { reportData: x, fields: S, values: F, context: w = {} } = A, {
|
|
2365
2365
|
context: E,
|
|
2366
2366
|
model: P,
|
|
2367
2367
|
datas: M = {},
|
|
@@ -2372,7 +2372,7 @@ const Nt = ({
|
|
|
2372
2372
|
ze(`${N} action not supported`);
|
|
2373
2373
|
return;
|
|
2374
2374
|
}
|
|
2375
|
-
const { ids: B } = M || {}, K = B || [], R = typeof E == "string" ?
|
|
2375
|
+
const { ids: B } = M || {}, K = B || [], R = typeof E == "string" ? vt({
|
|
2376
2376
|
context: E,
|
|
2377
2377
|
fields: S,
|
|
2378
2378
|
values: F
|
|
@@ -2383,16 +2383,16 @@ const Nt = ({
|
|
|
2383
2383
|
name: j,
|
|
2384
2384
|
datas: M,
|
|
2385
2385
|
ids: K,
|
|
2386
|
-
context: { ...
|
|
2386
|
+
context: { ...w, ...R }
|
|
2387
2387
|
});
|
|
2388
2388
|
l(!0), s.current = !0, o.current = setInterval(() => {
|
|
2389
|
-
|
|
2389
|
+
v(U);
|
|
2390
2390
|
}, 1e3);
|
|
2391
2391
|
} catch (U) {
|
|
2392
2392
|
s.current = !1, clearInterval(o.current), ze(U), l(!1);
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
async function
|
|
2395
|
+
async function v(A) {
|
|
2396
2396
|
let x;
|
|
2397
2397
|
try {
|
|
2398
2398
|
if (x = await D.getHandler().getReport({
|
|
@@ -2411,10 +2411,10 @@ const Nt = ({
|
|
|
2411
2411
|
fields: x,
|
|
2412
2412
|
values: S,
|
|
2413
2413
|
context: F,
|
|
2414
|
-
onRefreshParentValues:
|
|
2414
|
+
onRefreshParentValues: w
|
|
2415
2415
|
}) {
|
|
2416
2416
|
const { type: E } = A;
|
|
2417
|
-
if (c.current.push(
|
|
2417
|
+
if (c.current.push(w), E === "ir.actions.report.xml")
|
|
2418
2418
|
return await y({
|
|
2419
2419
|
reportData: A,
|
|
2420
2420
|
fields: x,
|
|
@@ -2438,59 +2438,59 @@ const Nt = ({
|
|
|
2438
2438
|
context: F = {}
|
|
2439
2439
|
}) {
|
|
2440
2440
|
var j;
|
|
2441
|
-
let
|
|
2442
|
-
A.res_model || (
|
|
2441
|
+
let w = A;
|
|
2442
|
+
A.res_model || (w = (await D.getHandler().readObjects({
|
|
2443
2443
|
model: "ir.actions.act_window",
|
|
2444
2444
|
ids: [parseInt(A.id)],
|
|
2445
2445
|
context: F
|
|
2446
2446
|
}))[0]);
|
|
2447
|
-
const E = typeof (
|
|
2448
|
-
context:
|
|
2447
|
+
const E = typeof (w == null ? void 0 : w.context) == "string" ? vt({
|
|
2448
|
+
context: w.context,
|
|
2449
2449
|
fields: x,
|
|
2450
2450
|
values: { ...S, ...i }
|
|
2451
|
-
}) :
|
|
2451
|
+
}) : w.context, P = {
|
|
2452
2452
|
...F,
|
|
2453
2453
|
...E
|
|
2454
2454
|
};
|
|
2455
2455
|
let M = [];
|
|
2456
|
-
if (
|
|
2457
|
-
domain:
|
|
2456
|
+
if (w.domain && (M = await D.getHandler().evalDomain({
|
|
2457
|
+
domain: w.domain,
|
|
2458
2458
|
values: Nt({
|
|
2459
2459
|
fields: x,
|
|
2460
2460
|
values: { ...S, ...i }
|
|
2461
2461
|
}),
|
|
2462
2462
|
fields: x,
|
|
2463
2463
|
context: P
|
|
2464
|
-
})),
|
|
2464
|
+
})), w.target === "new") {
|
|
2465
2465
|
const N = await D.getHandler().getView({
|
|
2466
|
-
model:
|
|
2466
|
+
model: w.res_model,
|
|
2467
2467
|
type: "form",
|
|
2468
|
-
id: ((j =
|
|
2468
|
+
id: ((j = w == null ? void 0 : w.view_id) == null ? void 0 : j[0]) || void 0,
|
|
2469
2469
|
context: P
|
|
2470
2470
|
});
|
|
2471
2471
|
return C({
|
|
2472
2472
|
domain: M,
|
|
2473
|
-
model:
|
|
2473
|
+
model: w.res_model,
|
|
2474
2474
|
formView: N,
|
|
2475
2475
|
context: P
|
|
2476
2476
|
}), {};
|
|
2477
2477
|
} else {
|
|
2478
2478
|
const { initialView: N, views: B } = await pa({
|
|
2479
|
-
model:
|
|
2479
|
+
model: w.res_model,
|
|
2480
2480
|
context: P,
|
|
2481
|
-
view_mode:
|
|
2482
|
-
views:
|
|
2481
|
+
view_mode: w.view_mode,
|
|
2482
|
+
views: w.views
|
|
2483
2483
|
});
|
|
2484
2484
|
return u == null || u({
|
|
2485
2485
|
target: "current",
|
|
2486
2486
|
context: P,
|
|
2487
2487
|
domain: M,
|
|
2488
|
-
model:
|
|
2488
|
+
model: w.res_model,
|
|
2489
2489
|
views: B,
|
|
2490
|
-
title:
|
|
2490
|
+
title: w.name,
|
|
2491
2491
|
initialView: N,
|
|
2492
|
-
action_id:
|
|
2493
|
-
action_type:
|
|
2492
|
+
action_id: w.id,
|
|
2493
|
+
action_type: w.type
|
|
2494
2494
|
}), { closeParent: !0 };
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
@@ -2499,16 +2499,16 @@ const Nt = ({
|
|
|
2499
2499
|
model: x,
|
|
2500
2500
|
formView: S,
|
|
2501
2501
|
context: F,
|
|
2502
|
-
actionData:
|
|
2502
|
+
actionData: w
|
|
2503
2503
|
}) {
|
|
2504
|
-
m ? O({ domain: A, model: x, formView: S, context: F, actionData:
|
|
2504
|
+
m ? O({ domain: A, model: x, formView: S, context: F, actionData: w }) : (p({ domain: A, model: x, context: F, formView: S, actionData: w }), g(!0));
|
|
2505
2505
|
}
|
|
2506
2506
|
async function O({
|
|
2507
2507
|
domain: A,
|
|
2508
2508
|
model: x,
|
|
2509
2509
|
formView: S,
|
|
2510
2510
|
context: F,
|
|
2511
|
-
actionData:
|
|
2511
|
+
actionData: w
|
|
2512
2512
|
}) {
|
|
2513
2513
|
p({
|
|
2514
2514
|
domain: void 0,
|
|
@@ -2516,7 +2516,7 @@ const Nt = ({
|
|
|
2516
2516
|
context: {},
|
|
2517
2517
|
formView: void 0,
|
|
2518
2518
|
actionData: void 0
|
|
2519
|
-
}), g(!1), await new Promise((E) => setTimeout(E, 300)), p({ domain: A, model: x, context: F, formView: S, actionData:
|
|
2519
|
+
}), g(!1), await new Promise((E) => setTimeout(E, 300)), p({ domain: A, model: x, context: F, formView: S, actionData: w }), g(!0);
|
|
2520
2520
|
}
|
|
2521
2521
|
async function _() {
|
|
2522
2522
|
br(c.current), c.current = [], g(!1), p({
|
|
@@ -2625,7 +2625,7 @@ async function pa({
|
|
|
2625
2625
|
}
|
|
2626
2626
|
return { views: s, initialView: a };
|
|
2627
2627
|
}
|
|
2628
|
-
const ga =
|
|
2628
|
+
const ga = wt(ha), ya = ({
|
|
2629
2629
|
error: t,
|
|
2630
2630
|
className: e
|
|
2631
2631
|
}) => {
|
|
@@ -2646,8 +2646,8 @@ const ga = vt(ha), ya = ({
|
|
|
2646
2646
|
banner: !0
|
|
2647
2647
|
}
|
|
2648
2648
|
);
|
|
2649
|
-
},
|
|
2650
|
-
function
|
|
2649
|
+
}, va = 800;
|
|
2650
|
+
function wa(t, e) {
|
|
2651
2651
|
const {
|
|
2652
2652
|
model: r,
|
|
2653
2653
|
id: i,
|
|
@@ -2664,14 +2664,14 @@ function va(t, e) {
|
|
|
2664
2664
|
formView: h,
|
|
2665
2665
|
postSaveAction: p,
|
|
2666
2666
|
insideButtonModal: y = !1,
|
|
2667
|
-
parentContext:
|
|
2667
|
+
parentContext: v = {},
|
|
2668
2668
|
actionDomain: T,
|
|
2669
2669
|
visible: I = !0,
|
|
2670
2670
|
rootForm: C = !1,
|
|
2671
2671
|
defaultValues: O,
|
|
2672
2672
|
forcedValues: _ = {},
|
|
2673
2673
|
parentWidth: A
|
|
2674
|
-
} = t, { t: x, lang: S } = H(he), [F,
|
|
2674
|
+
} = t, { t: x, lang: S } = H(he), [F, w] = b(!1), [E, P] = b(), [M, j] = b(), [N] = lt.useForm(), [B, K] = b(), [R, U] = b(), ne = H(uo), [X, Y] = b(), [G, k] = b(!1), L = de(), ee = de({}), le = de({}), Fe = de(!1), J = de(!1), q = de(!1), ve = (A !== void 0 ? A : X) < va, je = H(Ne), { activeId: ke, getPlainValues: Le } = je || {}, Ge = H(
|
|
2675
2675
|
rt
|
|
2676
2676
|
), {
|
|
2677
2677
|
setFormIsSaving: Ce = void 0,
|
|
@@ -2704,7 +2704,7 @@ function va(t, e) {
|
|
|
2704
2704
|
(i === void 0 && R || i !== void 0 && R && i < 0) && (L.current = void 0, j(void 0)), nr();
|
|
2705
2705
|
}
|
|
2706
2706
|
}, [i, r, g, h, I]), me(() => {
|
|
2707
|
-
G && (
|
|
2707
|
+
G && (vn({
|
|
2708
2708
|
elementHasLostFocus: !0
|
|
2709
2709
|
}), k(!1));
|
|
2710
2710
|
}, [G]);
|
|
@@ -2746,7 +2746,7 @@ function va(t, e) {
|
|
|
2746
2746
|
return $;
|
|
2747
2747
|
}
|
|
2748
2748
|
function Se() {
|
|
2749
|
-
return { ...
|
|
2749
|
+
return { ...v, ...M == null ? void 0 : M.context };
|
|
2750
2750
|
}
|
|
2751
2751
|
function pe() {
|
|
2752
2752
|
return ce() ? { active_id: ce(), active_ids: [ce()] } : {};
|
|
@@ -2765,7 +2765,7 @@ function va(t, e) {
|
|
|
2765
2765
|
return await D.getHandler().defaultGet({
|
|
2766
2766
|
model: r,
|
|
2767
2767
|
fields: $,
|
|
2768
|
-
context: { ...
|
|
2768
|
+
context: { ...v, ...W },
|
|
2769
2769
|
extraValues: O
|
|
2770
2770
|
});
|
|
2771
2771
|
}, tt = () => Object.keys(
|
|
@@ -2833,13 +2833,13 @@ function va(t, e) {
|
|
|
2833
2833
|
const $ = await D.getHandler().getActionStringForModel(r);
|
|
2834
2834
|
return (await D.getHandler().getViewsForAction({
|
|
2835
2835
|
action: $,
|
|
2836
|
-
context:
|
|
2836
|
+
context: v
|
|
2837
2837
|
})).views.get("form");
|
|
2838
2838
|
}
|
|
2839
2839
|
return await D.getHandler().getView({
|
|
2840
2840
|
model: r,
|
|
2841
2841
|
type: "form",
|
|
2842
|
-
context:
|
|
2842
|
+
context: v
|
|
2843
2843
|
});
|
|
2844
2844
|
}, Lt = ({
|
|
2845
2845
|
values: $,
|
|
@@ -2866,14 +2866,14 @@ function va(t, e) {
|
|
|
2866
2866
|
model: r,
|
|
2867
2867
|
ids: [ce()],
|
|
2868
2868
|
fields: $,
|
|
2869
|
-
context:
|
|
2869
|
+
context: v
|
|
2870
2870
|
}))[0];
|
|
2871
2871
|
const fe = await D.getHandler().search({
|
|
2872
2872
|
params: [
|
|
2873
2873
|
["res_model", "=", r],
|
|
2874
2874
|
["res_id", "=", ce()]
|
|
2875
2875
|
],
|
|
2876
|
-
|
|
2876
|
+
fieldsToRetrieve: ["id", "name"],
|
|
2877
2877
|
context: Se(),
|
|
2878
2878
|
model: "ir.attachment"
|
|
2879
2879
|
});
|
|
@@ -2895,7 +2895,7 @@ function va(t, e) {
|
|
|
2895
2895
|
values: { ...te, ..._ },
|
|
2896
2896
|
fields: R,
|
|
2897
2897
|
context: {
|
|
2898
|
-
...
|
|
2898
|
+
...v,
|
|
2899
2899
|
...M == null ? void 0 : M.context
|
|
2900
2900
|
}
|
|
2901
2901
|
}), ee.current = qe(R);
|
|
@@ -2905,7 +2905,7 @@ function va(t, e) {
|
|
|
2905
2905
|
values: { ...te, ..._ },
|
|
2906
2906
|
fields: R,
|
|
2907
2907
|
context: {
|
|
2908
|
-
...
|
|
2908
|
+
...v,
|
|
2909
2909
|
...M == null ? void 0 : M.context
|
|
2910
2910
|
}
|
|
2911
2911
|
});
|
|
@@ -2931,14 +2931,14 @@ function va(t, e) {
|
|
|
2931
2931
|
if (!tt() && ce() && te)
|
|
2932
2932
|
return J.current = !1, oe == null || oe(!1), ue == null || ue(), { succeed: !0, id: ce() };
|
|
2933
2933
|
if (await St())
|
|
2934
|
-
return J.current = !1,
|
|
2935
|
-
|
|
2934
|
+
return J.current = !1, vr(S), { succeed: !1, id: ce() };
|
|
2935
|
+
w(!0), Ce == null || Ce(!0);
|
|
2936
2936
|
try {
|
|
2937
2937
|
m === "api" ? await or($) : await ko($), f && (L.current = void 0, Lt({ values: {}, fields: R, reset: !0 })), await gt({ forceRefresh: !0 }), W = !0, xn.success(x("savedRegisters"));
|
|
2938
2938
|
} catch (re) {
|
|
2939
|
-
J.current = !1,
|
|
2939
|
+
J.current = !1, w(!1), Ce == null || Ce(!1), Ue == null || Ue(re), xn.error(x("errorWhileSavingForm")), P(re != null && re.message ? re.message : re);
|
|
2940
2940
|
} finally {
|
|
2941
|
-
J.current = !1, Ce == null || Ce(!1),
|
|
2941
|
+
J.current = !1, Ce == null || Ce(!1), w(!1);
|
|
2942
2942
|
}
|
|
2943
2943
|
return { succeed: W, id: ce() };
|
|
2944
2944
|
}, Bt = ({
|
|
@@ -2959,7 +2959,7 @@ function va(t, e) {
|
|
|
2959
2959
|
$
|
|
2960
2960
|
)
|
|
2961
2961
|
}), j(fe), fe.string && fe.string !== He && (Z == null || Z(fe.string)), ne && fe.string && ((nt = ne.setTitle) == null || nt.call(ne, fe.string));
|
|
2962
|
-
},
|
|
2962
|
+
}, vn = async ({
|
|
2963
2963
|
elementHasLostFocus: $ = !1
|
|
2964
2964
|
}) => {
|
|
2965
2965
|
if (J.current)
|
|
@@ -2987,7 +2987,7 @@ function va(t, e) {
|
|
|
2987
2987
|
const re = It(N.getFieldsValue(!0), R);
|
|
2988
2988
|
le.current = re, d == null || d(re), oe == null || oe(!0), Mo(te);
|
|
2989
2989
|
}
|
|
2990
|
-
}, Eo = Ci(
|
|
2990
|
+
}, Eo = Ci(vn, 100), Mo = async ($) => {
|
|
2991
2991
|
try {
|
|
2992
2992
|
for (let W = 0; W < $.length; W += 1) {
|
|
2993
2993
|
const te = $[W];
|
|
@@ -3010,7 +3010,7 @@ function va(t, e) {
|
|
|
3010
3010
|
values: {
|
|
3011
3011
|
...qe(R),
|
|
3012
3012
|
context: {
|
|
3013
|
-
...
|
|
3013
|
+
...v,
|
|
3014
3014
|
...M == null ? void 0 : M.context
|
|
3015
3015
|
}
|
|
3016
3016
|
},
|
|
@@ -3062,7 +3062,7 @@ function va(t, e) {
|
|
|
3062
3062
|
payload: [ce()],
|
|
3063
3063
|
context: {
|
|
3064
3064
|
...M == null ? void 0 : M.context,
|
|
3065
|
-
...
|
|
3065
|
+
...v,
|
|
3066
3066
|
...W
|
|
3067
3067
|
}
|
|
3068
3068
|
});
|
|
@@ -3072,7 +3072,7 @@ function va(t, e) {
|
|
|
3072
3072
|
ie == null || ie(ce(), Ke(), se());
|
|
3073
3073
|
else if (te.type) {
|
|
3074
3074
|
let re = {};
|
|
3075
|
-
te.context && (re =
|
|
3075
|
+
te.context && (re = vt({
|
|
3076
3076
|
context: te.context,
|
|
3077
3077
|
fields: R,
|
|
3078
3078
|
values: Ke()
|
|
@@ -3098,7 +3098,7 @@ function va(t, e) {
|
|
|
3098
3098
|
const te = (await D.getHandler().readObjects({
|
|
3099
3099
|
model: "ir.actions.actions",
|
|
3100
3100
|
ids: [parseInt($)],
|
|
3101
|
-
context:
|
|
3101
|
+
context: v
|
|
3102
3102
|
}))[0];
|
|
3103
3103
|
await ir({ actionData: te, context: W });
|
|
3104
3104
|
}
|
|
@@ -3111,7 +3111,7 @@ function va(t, e) {
|
|
|
3111
3111
|
fields: R,
|
|
3112
3112
|
values: Ke(),
|
|
3113
3113
|
context: {
|
|
3114
|
-
...
|
|
3114
|
+
...v,
|
|
3115
3115
|
...M == null ? void 0 : M.context,
|
|
3116
3116
|
...W
|
|
3117
3117
|
},
|
|
@@ -3122,9 +3122,9 @@ function va(t, e) {
|
|
|
3122
3122
|
!C && te && (ie == null || ie(ce(), Ke(), se()));
|
|
3123
3123
|
}
|
|
3124
3124
|
function $o() {
|
|
3125
|
-
|
|
3125
|
+
vn({ elementHasLostFocus: !0 });
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3127
|
+
function wn($) {
|
|
3128
3128
|
Bt({
|
|
3129
3129
|
fields: R,
|
|
3130
3130
|
arch: B,
|
|
@@ -3142,16 +3142,16 @@ function va(t, e) {
|
|
|
3142
3142
|
return;
|
|
3143
3143
|
}
|
|
3144
3144
|
if (await St()) {
|
|
3145
|
-
|
|
3145
|
+
vr(S);
|
|
3146
3146
|
return;
|
|
3147
3147
|
}
|
|
3148
3148
|
let re = !1;
|
|
3149
3149
|
try {
|
|
3150
|
-
!c && (tt() || ce() === void 0) && (re = !0,
|
|
3150
|
+
!c && (tt() || ce() === void 0) && (re = !0, wn(!0), m === "2many" ? (await or({ callOnSubmitSucceed: !1 }), q.current = !0) : await Xt({ callOnSubmitSucceed: !1 }));
|
|
3151
3151
|
const fe = q.current ? pe() : {}, nt = { ...te, ...fe };
|
|
3152
|
-
$ === "object" ? await Po({ action: W, context: nt }) : $ === "workflow" ? await Lo({ action: W }) : $ === "action" && await Bo({ action: W, context: nt }), re &&
|
|
3152
|
+
$ === "object" ? await Po({ action: W, context: nt }) : $ === "workflow" ? await Lo({ action: W }) : $ === "action" && await Bo({ action: W, context: nt }), re && wn(!1);
|
|
3153
3153
|
} catch (fe) {
|
|
3154
|
-
re &&
|
|
3154
|
+
re && wn(!1), ze(fe);
|
|
3155
3155
|
}
|
|
3156
3156
|
}
|
|
3157
3157
|
const Ko = () => !M && !E ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !I ? null : /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(
|
|
@@ -3183,7 +3183,7 @@ function va(t, e) {
|
|
|
3183
3183
|
Dn,
|
|
3184
3184
|
{
|
|
3185
3185
|
container: M.container,
|
|
3186
|
-
responsiveBehaviour:
|
|
3186
|
+
responsiveBehaviour: ve
|
|
3187
3187
|
}
|
|
3188
3188
|
)
|
|
3189
3189
|
}
|
|
@@ -3191,7 +3191,7 @@ function va(t, e) {
|
|
|
3191
3191
|
}
|
|
3192
3192
|
) }), Wo = () => /* @__PURE__ */ V(Q, { children: [
|
|
3193
3193
|
/* @__PURE__ */ n(cn, {}),
|
|
3194
|
-
/* @__PURE__ */ n(
|
|
3194
|
+
/* @__PURE__ */ n(we, { justify: "end", children: /* @__PURE__ */ V(We, { children: [
|
|
3195
3195
|
/* @__PURE__ */ n(
|
|
3196
3196
|
Oe,
|
|
3197
3197
|
{
|
|
@@ -3234,7 +3234,7 @@ function va(t, e) {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
) : null;
|
|
3236
3236
|
}
|
|
3237
|
-
const Jt =
|
|
3237
|
+
const Jt = wt(wa), Zt = (t) => {
|
|
3238
3238
|
const {
|
|
3239
3239
|
visible: e,
|
|
3240
3240
|
id: r,
|
|
@@ -3257,7 +3257,7 @@ const Jt = vt(va), Zt = (t) => {
|
|
|
3257
3257
|
});
|
|
3258
3258
|
g(x !== !1), x !== !1 && p(x);
|
|
3259
3259
|
}
|
|
3260
|
-
async function
|
|
3260
|
+
async function v() {
|
|
3261
3261
|
if (m && h)
|
|
3262
3262
|
await D.getHandler().removeFavourite({
|
|
3263
3263
|
shortcut_id: h
|
|
@@ -3274,14 +3274,14 @@ const Jt = vt(va), Zt = (t) => {
|
|
|
3274
3274
|
g(!m);
|
|
3275
3275
|
}
|
|
3276
3276
|
function T() {
|
|
3277
|
-
return /* @__PURE__ */ V(
|
|
3277
|
+
return /* @__PURE__ */ V(we, { align: "middle", children: [
|
|
3278
3278
|
/* @__PURE__ */ n(ae, { children: /* @__PURE__ */ n(
|
|
3279
3279
|
Oe,
|
|
3280
3280
|
{
|
|
3281
3281
|
type: m ? "primary" : "default",
|
|
3282
3282
|
icon: m ? /* @__PURE__ */ n(Kr, { style: { color: "white" } }) : /* @__PURE__ */ n(Wr, {}),
|
|
3283
3283
|
style: { width: 30 },
|
|
3284
|
-
onClick:
|
|
3284
|
+
onClick: v
|
|
3285
3285
|
}
|
|
3286
3286
|
) }),
|
|
3287
3287
|
/* @__PURE__ */ n(ae, { style: { paddingLeft: 10 }, children: c })
|
|
@@ -3342,7 +3342,7 @@ const Jt = vt(va), Zt = (t) => {
|
|
|
3342
3342
|
align: "left"
|
|
3343
3343
|
}
|
|
3344
3344
|
),
|
|
3345
|
-
/* @__PURE__ */ V(
|
|
3345
|
+
/* @__PURE__ */ V(we, { align: "bottom", className: "p-0", children: [
|
|
3346
3346
|
/* @__PURE__ */ n(ae, { className: "mr-2", children: /* @__PURE__ */ n(ge, { ...t, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ n(
|
|
3347
3347
|
Pn.RangePicker,
|
|
3348
3348
|
{
|
|
@@ -3421,7 +3421,7 @@ function Ta(t) {
|
|
|
3421
3421
|
align: "left"
|
|
3422
3422
|
}
|
|
3423
3423
|
),
|
|
3424
|
-
/* @__PURE__ */ V(
|
|
3424
|
+
/* @__PURE__ */ V(we, { align: "bottom", className: "mt-0", wrap: !1, children: [
|
|
3425
3425
|
/* @__PURE__ */ n(ae, { children: l("#from") }),
|
|
3426
3426
|
/* @__PURE__ */ n(ae, { className: "pb-1", children: /* @__PURE__ */ n("span", { className: "pl-2 pr-2 h-full", children: " - " }) }),
|
|
3427
3427
|
/* @__PURE__ */ n(ae, { children: l("#to") })
|
|
@@ -3499,7 +3499,7 @@ function Da(t) {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
function ka(t) {
|
|
3501
3501
|
const { onAdvancedFilterToggle: e, advancedFilter: r, onClear: i, isSearching: o } = t, { t: s } = H(he);
|
|
3502
|
-
return /* @__PURE__ */ V(
|
|
3502
|
+
return /* @__PURE__ */ V(we, { children: [
|
|
3503
3503
|
/* @__PURE__ */ n(ae, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ V("a", { className: "text-xs", onClick: e, children: [
|
|
3504
3504
|
r ? /* @__PURE__ */ n(si, { className: "pr-1" }) : /* @__PURE__ */ n(kt, { className: "pr-1" }),
|
|
3505
3505
|
s(r ? "simple_search" : "advanced_search")
|
|
@@ -3523,7 +3523,7 @@ function ka(t) {
|
|
|
3523
3523
|
function Ea(t) {
|
|
3524
3524
|
const { onLimitChange: e } = t, { t: r } = H(he), i = new Vn({ name: "limit" }), o = new Vn({ name: "offset" });
|
|
3525
3525
|
return /* @__PURE__ */ V("div", { className: "pl-2 pt-2", children: [
|
|
3526
|
-
/* @__PURE__ */ n(
|
|
3526
|
+
/* @__PURE__ */ n(we, { children: r("parameters") }, "count_params"),
|
|
3527
3527
|
/* @__PURE__ */ V(We, { align: "center", children: [
|
|
3528
3528
|
r("limit") + " :",
|
|
3529
3529
|
/* @__PURE__ */ n(
|
|
@@ -3556,36 +3556,36 @@ function ho(t) {
|
|
|
3556
3556
|
searchError: f,
|
|
3557
3557
|
searchValues: m,
|
|
3558
3558
|
showLimitOptions: g = !0
|
|
3559
|
-
} = t, [h, p] = b(), [y,
|
|
3559
|
+
} = t, [h, p] = b(), [y, v] = b(), [T, I] = b(!1), C = de(), { token: O } = Ma(), [_] = lt.useForm();
|
|
3560
3560
|
me(() => {
|
|
3561
3561
|
_.setFieldsValue(m);
|
|
3562
3562
|
}, [m]);
|
|
3563
3563
|
const A = () => {
|
|
3564
3564
|
if (!y)
|
|
3565
3565
|
return;
|
|
3566
|
-
const F = T ? y : h,
|
|
3567
|
-
return
|
|
3566
|
+
const F = T ? y : h, w = F == null ? void 0 : F.rows;
|
|
3567
|
+
return w == null ? void 0 : w.map((E, P) => /* @__PURE__ */ n(we, { children: E.map((M, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Da, { field: M }) }, j)) }, P));
|
|
3568
3568
|
};
|
|
3569
3569
|
xt(() => {
|
|
3570
|
-
I(!1), C.current = new oi(r, e), C.current.parse(), p(C.current._simpleSearchContainer),
|
|
3570
|
+
I(!1), C.current = new oi(r, e), C.current.parse(), p(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
|
|
3571
3571
|
}, [e, r]);
|
|
3572
3572
|
const x = A(), S = (F) => {
|
|
3573
3573
|
var M;
|
|
3574
|
-
const { limit:
|
|
3574
|
+
const { limit: w, offset: E } = F;
|
|
3575
3575
|
delete F.offset, delete F.limit;
|
|
3576
3576
|
const P = oa(
|
|
3577
3577
|
F,
|
|
3578
3578
|
(M = C.current) == null ? void 0 : M._advancedSearchContainer
|
|
3579
3579
|
);
|
|
3580
|
-
o({ params: P, offset: E, limit:
|
|
3580
|
+
o({ params: P, offset: E, limit: w, searchValues: F });
|
|
3581
3581
|
};
|
|
3582
3582
|
return /* @__PURE__ */ n(
|
|
3583
3583
|
Zn,
|
|
3584
3584
|
{
|
|
3585
3585
|
bounds: !0,
|
|
3586
3586
|
onResize: (F) => {
|
|
3587
|
-
var
|
|
3588
|
-
c == null || c((
|
|
3587
|
+
var w;
|
|
3588
|
+
c == null || c((w = F.bounds) == null ? void 0 : w.height);
|
|
3589
3589
|
},
|
|
3590
3590
|
children: ({ measureRef: F }) => /* @__PURE__ */ n("div", { ref: F, children: /* @__PURE__ */ V("div", { style: { display: u ? "block" : "none" }, children: [
|
|
3591
3591
|
/* @__PURE__ */ V(
|
|
@@ -3732,13 +3732,13 @@ const La = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
|
|
|
3732
3732
|
var x, S;
|
|
3733
3733
|
const { id: e, model: r, context: i = {} } = t, [o, s] = b(!1), [a, l] = b(!1), [d, u] = b(!1), [c, f] = b(), [m, g] = b(), { t: h } = H(he), p = H(
|
|
3734
3734
|
dt
|
|
3735
|
-
), { openRelate: y } = p || {},
|
|
3735
|
+
), { openRelate: y } = p || {}, v = H(
|
|
3736
3736
|
Pt
|
|
3737
|
-
), { processAction: T } =
|
|
3737
|
+
), { processAction: T } = v || {};
|
|
3738
3738
|
if (!e)
|
|
3739
3739
|
return null;
|
|
3740
3740
|
async function I() {
|
|
3741
|
-
var F,
|
|
3741
|
+
var F, w, E, P, M;
|
|
3742
3742
|
u(!0);
|
|
3743
3743
|
try {
|
|
3744
3744
|
const j = await D.getHandler().getView({
|
|
@@ -3749,7 +3749,7 @@ const La = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
|
|
|
3749
3749
|
f(j);
|
|
3750
3750
|
let N = [];
|
|
3751
3751
|
const { toolbar: B } = j;
|
|
3752
|
-
(F = B.action) == null || F.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...Sn(R.context))), (
|
|
3752
|
+
(F = B.action) == null || F.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...Sn(R.context))), (w = B.action) == null || w.filter((R) => R.hasOwnProperty("domain")).map((R) => N.push(...cr(R.domain))), (E = B.relate) == null || E.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...Sn(R.context))), (P = B.relate) == null || P.filter((R) => R.hasOwnProperty("domain")).map((R) => N.push(...cr(R.domain))), (M = B.print) == null || M.filter((R) => R.hasOwnProperty("context")).map((R) => N.push(...Sn(R.context))), N = N.filter(
|
|
3753
3753
|
(R) => Object.keys(j.fields).indexOf(R) > -1
|
|
3754
3754
|
);
|
|
3755
3755
|
let K = {};
|
|
@@ -3764,12 +3764,12 @@ const La = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
|
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
3766
3766
|
function C() {
|
|
3767
|
-
var
|
|
3767
|
+
var w;
|
|
3768
3768
|
if (d)
|
|
3769
3769
|
return /* @__PURE__ */ n($e, { children: /* @__PURE__ */ n("div", { style: { padding: 15 }, children: /* @__PURE__ */ n(Ae, {}) }) });
|
|
3770
3770
|
if (!c || !c.toolbar)
|
|
3771
3771
|
return /* @__PURE__ */ n($e, {});
|
|
3772
|
-
const F = (
|
|
3772
|
+
const F = (w = c == null ? void 0 : c.toolbar) == null ? void 0 : w.relate.map((E) => /* @__PURE__ */ n($e.Item, { children: E.name }, E.id));
|
|
3773
3773
|
return /* @__PURE__ */ n($e, { onClick: O, children: [
|
|
3774
3774
|
/* @__PURE__ */ n(
|
|
3775
3775
|
$e.Item,
|
|
@@ -3812,15 +3812,15 @@ const La = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
|
|
|
3812
3812
|
else if (F.key === "print")
|
|
3813
3813
|
l(!0);
|
|
3814
3814
|
else {
|
|
3815
|
-
const
|
|
3816
|
-
if (!
|
|
3815
|
+
const w = c.toolbar.relate.find((E) => E.id === parseInt(F.key));
|
|
3816
|
+
if (!w)
|
|
3817
3817
|
return;
|
|
3818
3818
|
y({
|
|
3819
|
-
relateData:
|
|
3819
|
+
relateData: w,
|
|
3820
3820
|
values: m,
|
|
3821
3821
|
fields: c.fields,
|
|
3822
|
-
action_id:
|
|
3823
|
-
action_type:
|
|
3822
|
+
action_id: w.id,
|
|
3823
|
+
action_type: w.type
|
|
3824
3824
|
});
|
|
3825
3825
|
}
|
|
3826
3826
|
}
|
|
@@ -4052,18 +4052,18 @@ function pn(t) {
|
|
|
4052
4052
|
onChangeSort: h,
|
|
4053
4053
|
sorter: p,
|
|
4054
4054
|
onFetchChildrenForRecord: y,
|
|
4055
|
-
childField:
|
|
4055
|
+
childField: v,
|
|
4056
4056
|
rootTree: T = !1,
|
|
4057
4057
|
context: I,
|
|
4058
4058
|
readonly: C,
|
|
4059
4059
|
onSelectAllRecords: O
|
|
4060
|
-
} = t, [_, A] = b([]), [x, S] = b([]), F = de(!1),
|
|
4060
|
+
} = t, [_, A] = b([]), [x, S] = b([]), F = de(!1), w = de(null), { t: E } = H(he), P = de(r), M = H(
|
|
4061
4061
|
rt
|
|
4062
4062
|
), { title: j = void 0, setTitle: N = void 0 } = (T ? M : {}) || {};
|
|
4063
4063
|
me(() => {
|
|
4064
|
-
|
|
4064
|
+
w.current = _t(o);
|
|
4065
4065
|
const k = Os(
|
|
4066
|
-
|
|
4066
|
+
w.current,
|
|
4067
4067
|
{
|
|
4068
4068
|
boolean: Ua,
|
|
4069
4069
|
many2one: qa,
|
|
@@ -4084,10 +4084,10 @@ function pn(t) {
|
|
|
4084
4084
|
},
|
|
4085
4085
|
I
|
|
4086
4086
|
);
|
|
4087
|
-
S(k),
|
|
4087
|
+
S(k), w.current.string && j !== w.current.string && (N == null || N(w.current.string));
|
|
4088
4088
|
}, [o]), me(() => {
|
|
4089
4089
|
F.current = !1;
|
|
4090
|
-
const k = io(
|
|
4090
|
+
const k = io(w.current, s);
|
|
4091
4091
|
A(k), P.current = r;
|
|
4092
4092
|
}, [s]);
|
|
4093
4093
|
const B = (e - 1) * P.current + 1, K = B - 1 + _.length, R = i === void 0 ? null : i === 0 ? E("no_results") : E("summary").replace("{from}", B == null ? void 0 : B.toString()).replace("{to}", K == null ? void 0 : K.toString()).replace("{total}", i == null ? void 0 : i.toString()), U = () => {
|
|
@@ -4097,7 +4097,7 @@ function pn(t) {
|
|
|
4097
4097
|
const k = _ == null ? void 0 : _.filter(
|
|
4098
4098
|
(ee) => (c == null ? void 0 : c.selectedRowKeys) && (c == null ? void 0 : c.selectedRowKeys.includes(ee.id))
|
|
4099
4099
|
).length;
|
|
4100
|
-
return l ? null : i === void 0 ? /* @__PURE__ */ n(Ae, { className: "pb-4" }) : /* @__PURE__ */ V(
|
|
4100
|
+
return l ? null : i === void 0 ? /* @__PURE__ */ n(Ae, { className: "pb-4" }) : /* @__PURE__ */ V(we, { align: "bottom", className: "pb-4", children: [
|
|
4101
4101
|
/* @__PURE__ */ n(ae, { span: O ? 8 : 12, children: /* @__PURE__ */ n(
|
|
4102
4102
|
Zo,
|
|
4103
4103
|
{
|
|
@@ -4123,22 +4123,22 @@ function pn(t) {
|
|
|
4123
4123
|
};
|
|
4124
4124
|
function ne() {
|
|
4125
4125
|
var Fe;
|
|
4126
|
-
const L =
|
|
4126
|
+
const L = w.current.columns.filter((J) => J.sum !== void 0).map((J) => ({ label: J.sum, field: J.id }));
|
|
4127
4127
|
if (!L || L.length === 0)
|
|
4128
4128
|
return null;
|
|
4129
4129
|
const ee = [], le = ((Fe = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : Fe.length) > 0 ? _.filter((J) => c == null ? void 0 : c.selectedRowKeys.includes(J.id)) : _;
|
|
4130
4130
|
return L.forEach((J) => {
|
|
4131
|
-
const q = le.reduce((be,
|
|
4131
|
+
const q = le.reduce((be, ve) => ve[J.field] && !isNaN(ve[J.field]) ? be + ve[J.field] : be, 0);
|
|
4132
4132
|
ee.push(`${J.label}: ${Math.round(q * 100) / 100}`);
|
|
4133
4133
|
}), /* @__PURE__ */ n("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ee.join(", ") });
|
|
4134
4134
|
}
|
|
4135
4135
|
let X, Y = f;
|
|
4136
|
-
if (
|
|
4136
|
+
if (w.current !== null) {
|
|
4137
4137
|
X = Na(x, _, 600);
|
|
4138
|
-
const L =
|
|
4138
|
+
const L = w.current;
|
|
4139
4139
|
f && L.columns.some((ee) => ee.sum !== void 0) && (Y = f - 30);
|
|
4140
4140
|
}
|
|
4141
|
-
return
|
|
4141
|
+
return w.current === null || !X || ((G = X.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : /* @__PURE__ */ V("div", { children: [
|
|
4142
4142
|
U(),
|
|
4143
4143
|
/* @__PURE__ */ n(
|
|
4144
4144
|
Fi,
|
|
@@ -4167,7 +4167,7 @@ function pn(t) {
|
|
|
4167
4167
|
collapseIcon: ci,
|
|
4168
4168
|
loadingIcon: st,
|
|
4169
4169
|
onFetchChildrenForRecord: y,
|
|
4170
|
-
childField:
|
|
4170
|
+
childField: v
|
|
4171
4171
|
} : void 0
|
|
4172
4172
|
}
|
|
4173
4173
|
),
|
|
@@ -4187,7 +4187,7 @@ function il(t, e) {
|
|
|
4187
4187
|
rootTree: c = !1,
|
|
4188
4188
|
parentContext: f = {},
|
|
4189
4189
|
onChangeSelectedRowKeys: m
|
|
4190
|
-
} = t, [g, h] = b(!1), [p, y] = b(!1),
|
|
4190
|
+
} = t, [g, h] = b(!1), [p, y] = b(!1), v = de(!1), [T, I] = b(), [C, O] = b(), [_, A] = b(), [x, S] = b(), [F, w] = b(200), E = de(), { height: P } = mn(), M = H(
|
|
4191
4191
|
Pt
|
|
4192
4192
|
), { processAction: j } = M || {}, N = H(
|
|
4193
4193
|
rt
|
|
@@ -4208,7 +4208,7 @@ function il(t, e) {
|
|
|
4208
4208
|
setSearchTreeNameSearch: J = void 0,
|
|
4209
4209
|
setTreeIsLoading: q = void 0,
|
|
4210
4210
|
searchValues: be = {},
|
|
4211
|
-
setSearchValues:
|
|
4211
|
+
setSearchValues: ve = void 0,
|
|
4212
4212
|
limit: je = jt,
|
|
4213
4213
|
setLimit: ke = void 0
|
|
4214
4214
|
} = (c ? N : {}) || {}, {
|
|
@@ -4233,12 +4233,12 @@ function il(t, e) {
|
|
|
4233
4233
|
setSearchTreeNameSearch: J,
|
|
4234
4234
|
setSelectedRowItems: pe,
|
|
4235
4235
|
setSearchParams: G,
|
|
4236
|
-
setSearchValues:
|
|
4236
|
+
setSearchValues: ve,
|
|
4237
4237
|
searchParams: Y,
|
|
4238
4238
|
setSearchVisible: L,
|
|
4239
4239
|
setTreeIsLoading: q,
|
|
4240
4240
|
nameSearch: a,
|
|
4241
|
-
searchNameGetDoneRef:
|
|
4241
|
+
searchNameGetDoneRef: v,
|
|
4242
4242
|
context: f,
|
|
4243
4243
|
formView: _,
|
|
4244
4244
|
treeView: C,
|
|
@@ -4255,12 +4255,12 @@ function il(t, e) {
|
|
|
4255
4255
|
});
|
|
4256
4256
|
bt(e, () => ({
|
|
4257
4257
|
refreshResults: () => {
|
|
4258
|
-
|
|
4258
|
+
v.current = !1, Ce();
|
|
4259
4259
|
},
|
|
4260
4260
|
getFields: () => C == null ? void 0 : C.fields,
|
|
4261
4261
|
getDomain: () => d
|
|
4262
4262
|
})), me(() => {
|
|
4263
|
-
p && u && C && (
|
|
4263
|
+
p && u && C && (v.current = !1, Ce());
|
|
4264
4264
|
}, [Me, He, p, u, a, C]);
|
|
4265
4265
|
const ot = async () => {
|
|
4266
4266
|
y(!1), h(!0), S(void 0), q == null || q(!0);
|
|
@@ -4350,7 +4350,7 @@ function il(t, e) {
|
|
|
4350
4350
|
isSearching: Ee,
|
|
4351
4351
|
onSubmit: Le,
|
|
4352
4352
|
onLimitChange: z,
|
|
4353
|
-
setSearchFilterHeight:
|
|
4353
|
+
setSearchFilterHeight: w,
|
|
4354
4354
|
searchError: ye,
|
|
4355
4355
|
searchVisible: k,
|
|
4356
4356
|
searchValues: be
|
|
@@ -4386,7 +4386,7 @@ function il(t, e) {
|
|
|
4386
4386
|
] }), qe = x || ye;
|
|
4387
4387
|
return qe ? /* @__PURE__ */ n(et, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: g ? /* @__PURE__ */ n(Ae, {}) : tt() });
|
|
4388
4388
|
}
|
|
4389
|
-
const
|
|
4389
|
+
const vo = wt(il), wo = (t) => {
|
|
4390
4390
|
const {
|
|
4391
4391
|
visible: e,
|
|
4392
4392
|
onCloseModal: r,
|
|
@@ -4401,7 +4401,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4401
4401
|
const { id: C } = I;
|
|
4402
4402
|
i([C]);
|
|
4403
4403
|
};
|
|
4404
|
-
function
|
|
4404
|
+
function v() {
|
|
4405
4405
|
if (g.length === 0) {
|
|
4406
4406
|
p();
|
|
4407
4407
|
return;
|
|
@@ -4410,7 +4410,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4410
4410
|
}
|
|
4411
4411
|
const T = () => /* @__PURE__ */ V(Q, { children: [
|
|
4412
4412
|
/* @__PURE__ */ n(
|
|
4413
|
-
|
|
4413
|
+
vo,
|
|
4414
4414
|
{
|
|
4415
4415
|
model: o,
|
|
4416
4416
|
nameSearch: s,
|
|
@@ -4424,7 +4424,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
),
|
|
4426
4426
|
/* @__PURE__ */ n(cn, {}),
|
|
4427
|
-
/* @__PURE__ */ n(
|
|
4427
|
+
/* @__PURE__ */ n(we, { justify: "end", children: /* @__PURE__ */ V(We, { children: [
|
|
4428
4428
|
/* @__PURE__ */ n(
|
|
4429
4429
|
Oe,
|
|
4430
4430
|
{
|
|
@@ -4440,7 +4440,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4440
4440
|
{
|
|
4441
4441
|
icon: /* @__PURE__ */ n(Et, {}),
|
|
4442
4442
|
onClick: () => {
|
|
4443
|
-
|
|
4443
|
+
v();
|
|
4444
4444
|
},
|
|
4445
4445
|
type: "primary",
|
|
4446
4446
|
children: m("ok")
|
|
@@ -4505,7 +4505,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4505
4505
|
context: l,
|
|
4506
4506
|
id: d,
|
|
4507
4507
|
domain: u
|
|
4508
|
-
} = i, c = o && !a ? { backgroundColor: bo.colorPrimaryBg } : void 0, [f, m] = b(!1), [g, h] = b(!1), [p, y] = b(!1), [
|
|
4508
|
+
} = i, c = o && !a ? { backgroundColor: bo.colorPrimaryBg } : void 0, [f, m] = b(!1), [g, h] = b(!1), [p, y] = b(!1), [v, T] = b(), I = de(!1), [C, O] = b(""), _ = de(), A = H(Ne), { domain: x, getValues: S, getFields: F, getContext: w, elementHasLostFocus: E } = A || {}, P = de([]), [M, j] = b([]), N = e && e[0] || void 0, B = e && e[1] || "";
|
|
4509
4509
|
me(() => {
|
|
4510
4510
|
!Array.isArray(e) && e && X(e);
|
|
4511
4511
|
}, [e]), me(() => {
|
|
@@ -4529,7 +4529,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4529
4529
|
const L = await D.getHandler().nameSearch({
|
|
4530
4530
|
model: s,
|
|
4531
4531
|
payload: _.current,
|
|
4532
|
-
context: { ...
|
|
4532
|
+
context: { ...w == null ? void 0 : w(), ...l }
|
|
4533
4533
|
});
|
|
4534
4534
|
L.length === 1 ? (_.current = void 0, K(L[0])) : ne(_.current);
|
|
4535
4535
|
}
|
|
@@ -4544,7 +4544,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4544
4544
|
const ee = await D.getHandler().searchAllIds({
|
|
4545
4545
|
params: P.current,
|
|
4546
4546
|
model: s,
|
|
4547
|
-
context: { ...
|
|
4547
|
+
context: { ...w == null ? void 0 : w(), ...l },
|
|
4548
4548
|
totalItems: 2
|
|
4549
4549
|
});
|
|
4550
4550
|
ee.length === 1 ? X(ee[0]) : (T(L), m(!0));
|
|
@@ -4558,7 +4558,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4558
4558
|
action: "name_get",
|
|
4559
4559
|
payload: [L],
|
|
4560
4560
|
model: s,
|
|
4561
|
-
context: { ...
|
|
4561
|
+
context: { ...w == null ? void 0 : w(), ...l }
|
|
4562
4562
|
});
|
|
4563
4563
|
K([L, ee[0][1]]);
|
|
4564
4564
|
} catch (ee) {
|
|
@@ -4575,7 +4575,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4575
4575
|
values: S()
|
|
4576
4576
|
}),
|
|
4577
4577
|
fields: F(),
|
|
4578
|
-
context:
|
|
4578
|
+
context: w()
|
|
4579
4579
|
})), x && x.length > 0 && (P.current = P.current.concat(
|
|
4580
4580
|
Nr({
|
|
4581
4581
|
domain: x,
|
|
@@ -4586,7 +4586,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4586
4586
|
async function G(L) {
|
|
4587
4587
|
L.keyCode === 13 ? (L.preventDefault(), L.stopPropagation(), await U()) : L.code === "Backspace" && N !== void 0 && (L.preventDefault(), L.stopPropagation(), K([void 0, ""]));
|
|
4588
4588
|
}
|
|
4589
|
-
return /* @__PURE__ */ V(
|
|
4589
|
+
return /* @__PURE__ */ V(we, { gutter: 8, wrap: !1, children: [
|
|
4590
4590
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
4591
4591
|
o && !a ? dl : it,
|
|
4592
4592
|
{
|
|
@@ -4602,7 +4602,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4602
4602
|
{
|
|
4603
4603
|
id: N,
|
|
4604
4604
|
model: s,
|
|
4605
|
-
context: { ...
|
|
4605
|
+
context: { ...w == null ? void 0 : w(), ...l }
|
|
4606
4606
|
}
|
|
4607
4607
|
)
|
|
4608
4608
|
}
|
|
@@ -4632,13 +4632,13 @@ const wo = vt(il), vo = (t) => {
|
|
|
4632
4632
|
}
|
|
4633
4633
|
) }),
|
|
4634
4634
|
/* @__PURE__ */ n(
|
|
4635
|
-
|
|
4635
|
+
wo,
|
|
4636
4636
|
{
|
|
4637
4637
|
model: s,
|
|
4638
4638
|
domain: M,
|
|
4639
|
-
context: { ...
|
|
4639
|
+
context: { ...w == null ? void 0 : w(), ...l },
|
|
4640
4640
|
visible: f,
|
|
4641
|
-
nameSearch: N ? void 0 :
|
|
4641
|
+
nameSearch: N ? void 0 : v,
|
|
4642
4642
|
onSelectValues: (L) => {
|
|
4643
4643
|
m(!1), X(L[0]), I.current = !1, _.current = void 0;
|
|
4644
4644
|
},
|
|
@@ -4651,7 +4651,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4651
4651
|
Zt,
|
|
4652
4652
|
{
|
|
4653
4653
|
model: s,
|
|
4654
|
-
parentContext: { ...
|
|
4654
|
+
parentContext: { ...w == null ? void 0 : w(), ...l },
|
|
4655
4655
|
id: e && e[0],
|
|
4656
4656
|
visible: g,
|
|
4657
4657
|
onSubmitSucceed: (L) => {
|
|
@@ -4703,7 +4703,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4703
4703
|
field: u,
|
|
4704
4704
|
operator: c,
|
|
4705
4705
|
manualIds: f
|
|
4706
|
-
} = t, [m, g] = b(!1), [h, p] = b(), [y,
|
|
4706
|
+
} = t, [m, g] = b(!1), [h, p] = b(), [y, v] = b(), [T, I] = b(), [C, O] = b(0), [_, A] = b(0), [x, S] = b(), [F, w] = b(), [E, P] = b();
|
|
4707
4707
|
me(() => {
|
|
4708
4708
|
N();
|
|
4709
4709
|
}, [e, o]);
|
|
@@ -4774,7 +4774,7 @@ const wo = vt(il), vo = (t) => {
|
|
|
4774
4774
|
isTotal: !0
|
|
4775
4775
|
}), I(B);
|
|
4776
4776
|
}
|
|
4777
|
-
if (B ? (K = Math.round(R / B * 100 * 100) / 100,
|
|
4777
|
+
if (B ? (K = Math.round(R / B * 100 * 100) / 100, v(K)) : v(0), o) {
|
|
4778
4778
|
const U = await D.getHandler().parseCondition({
|
|
4779
4779
|
condition: o,
|
|
4780
4780
|
values: { value: R, percent: K },
|
|
@@ -4791,9 +4791,9 @@ const wo = vt(il), vo = (t) => {
|
|
|
4791
4791
|
context: i
|
|
4792
4792
|
}
|
|
4793
4793
|
);
|
|
4794
|
-
|
|
4794
|
+
w(U);
|
|
4795
4795
|
} else
|
|
4796
|
-
|
|
4796
|
+
w(l);
|
|
4797
4797
|
} catch (R) {
|
|
4798
4798
|
P(JSON.stringify(R));
|
|
4799
4799
|
}
|
|
@@ -4924,7 +4924,7 @@ function hl({
|
|
|
4924
4924
|
flexDirection: "column",
|
|
4925
4925
|
padding: "0.2rem"
|
|
4926
4926
|
},
|
|
4927
|
-
children: /* @__PURE__ */ V(
|
|
4927
|
+
children: /* @__PURE__ */ V(we, { align: "middle", children: [
|
|
4928
4928
|
p && /* @__PURE__ */ n(ae, { style: { fontSize: c * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ n(p, {}) }),
|
|
4929
4929
|
/* @__PURE__ */ V(ae, { children: [
|
|
4930
4930
|
/* @__PURE__ */ n(An, { style: { fontSize: c * 0.8, margin: 0, color: a }, children: p ? ` ${i}%` : `${i}%` }),
|
|
@@ -4960,7 +4960,7 @@ const Fn = (t) => (e) => {
|
|
|
4960
4960
|
useGrouping: !0
|
|
4961
4961
|
});
|
|
4962
4962
|
if (yl(t)) {
|
|
4963
|
-
const e =
|
|
4963
|
+
const e = vl(t);
|
|
4964
4964
|
return e === null ? t : at(t, ln.input[e]).format(
|
|
4965
4965
|
ln.output[e]
|
|
4966
4966
|
);
|
|
@@ -5067,7 +5067,7 @@ const ln = {
|
|
|
5067
5067
|
years: "YYYY"
|
|
5068
5068
|
}
|
|
5069
5069
|
};
|
|
5070
|
-
function
|
|
5070
|
+
function vl(t) {
|
|
5071
5071
|
for (const e in ln.input)
|
|
5072
5072
|
if (at(
|
|
5073
5073
|
t,
|
|
@@ -5077,7 +5077,7 @@ function wl(t) {
|
|
|
5077
5077
|
return e;
|
|
5078
5078
|
return null;
|
|
5079
5079
|
}
|
|
5080
|
-
const { processGraphData:
|
|
5080
|
+
const { processGraphData: wl } = Pr, { getFieldsToRetrieve: bl } = ii, Cl = (t) => {
|
|
5081
5081
|
const {
|
|
5082
5082
|
model: e,
|
|
5083
5083
|
domain: r = [],
|
|
@@ -5086,12 +5086,12 @@ const { processGraphData: vl } = Pr, { getFieldsToRetrieve: bl } = ii, Cl = (t)
|
|
|
5086
5086
|
limit: s,
|
|
5087
5087
|
uninformedString: a,
|
|
5088
5088
|
manualIds: l
|
|
5089
|
-
} = t, [d, u] = b(!1), [c, f] = b(), [m, g] = b(), [h, p] = b(), [y,
|
|
5089
|
+
} = t, [d, u] = b(!1), [c, f] = b(), [m, g] = b(), [h, p] = b(), [y, v] = b("line");
|
|
5090
5090
|
return xt(() => {
|
|
5091
5091
|
(async () => {
|
|
5092
5092
|
u(!0), f(void 0);
|
|
5093
5093
|
const T = $n(o);
|
|
5094
|
-
|
|
5094
|
+
v(T.type || "line");
|
|
5095
5095
|
const I = bl({ ooui: T });
|
|
5096
5096
|
let C, O;
|
|
5097
5097
|
try {
|
|
@@ -5114,7 +5114,7 @@ const { processGraphData: vl } = Pr, { getFieldsToRetrieve: bl } = ii, Cl = (t)
|
|
|
5114
5114
|
return;
|
|
5115
5115
|
}
|
|
5116
5116
|
p(C);
|
|
5117
|
-
const _ =
|
|
5117
|
+
const _ = wl({
|
|
5118
5118
|
ooui: T,
|
|
5119
5119
|
values: C,
|
|
5120
5120
|
fields: O,
|
|
@@ -5174,7 +5174,7 @@ async function Sl({
|
|
|
5174
5174
|
values: await D.getHandler().search({
|
|
5175
5175
|
model: e,
|
|
5176
5176
|
params: r,
|
|
5177
|
-
|
|
5177
|
+
fieldsToRetrieve: t,
|
|
5178
5178
|
context: i,
|
|
5179
5179
|
limit: s,
|
|
5180
5180
|
order: o
|
|
@@ -5187,7 +5187,7 @@ const Tl = {
|
|
|
5187
5187
|
bar: Si,
|
|
5188
5188
|
pie: Ti
|
|
5189
5189
|
}, Fl = (t) => {
|
|
5190
|
-
var
|
|
5190
|
+
var v;
|
|
5191
5191
|
const { model: e, domain: r, context: i, xml: o, limit: s, manualIds: a } = t, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = Cl({
|
|
5192
5192
|
model: e,
|
|
5193
5193
|
xml: o,
|
|
@@ -5205,7 +5205,7 @@ const Tl = {
|
|
|
5205
5205
|
return /* @__PURE__ */ n(et, { message: "No data to display", type: "info" });
|
|
5206
5206
|
const { data: g, isGroup: h, isStack: p } = c, y = Tl[f];
|
|
5207
5207
|
return y ? /* @__PURE__ */ V("div", { style: { padding: "1rem" }, children: [
|
|
5208
|
-
/* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(
|
|
5208
|
+
/* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString(
|
|
5209
5209
|
"es-ES",
|
|
5210
5210
|
{
|
|
5211
5211
|
useGrouping: !0
|
|
@@ -5243,17 +5243,17 @@ const Ol = (t, e) => {
|
|
|
5243
5243
|
async function y() {
|
|
5244
5244
|
u(!0), p == null || p(!0);
|
|
5245
5245
|
try {
|
|
5246
|
-
const
|
|
5246
|
+
const v = await D.getHandler().getView({
|
|
5247
5247
|
model: i,
|
|
5248
5248
|
id: r,
|
|
5249
5249
|
type: "graph",
|
|
5250
5250
|
context: o
|
|
5251
5251
|
});
|
|
5252
|
-
g(
|
|
5253
|
-
const T = $n(
|
|
5252
|
+
g(v.arch);
|
|
5253
|
+
const T = $n(v.arch);
|
|
5254
5254
|
f(T);
|
|
5255
|
-
} catch (
|
|
5256
|
-
return console.error(
|
|
5255
|
+
} catch (v) {
|
|
5256
|
+
return console.error(v), /* @__PURE__ */ n(Q, { children: JSON.stringify(v) });
|
|
5257
5257
|
}
|
|
5258
5258
|
u(!1), p == null || p(!1);
|
|
5259
5259
|
}
|
|
@@ -5277,21 +5277,21 @@ const Ol = (t, e) => {
|
|
|
5277
5277
|
switch (c.type) {
|
|
5278
5278
|
case "indicatorField":
|
|
5279
5279
|
case "indicator": {
|
|
5280
|
-
const
|
|
5281
|
-
field:
|
|
5282
|
-
operator:
|
|
5280
|
+
const v = c, T = v.type === "indicatorField" ? {
|
|
5281
|
+
field: v.field,
|
|
5282
|
+
operator: v.operator
|
|
5283
5283
|
} : {};
|
|
5284
5284
|
return /* @__PURE__ */ n(
|
|
5285
5285
|
fl,
|
|
5286
5286
|
{
|
|
5287
|
-
showPercent:
|
|
5288
|
-
totalDomain:
|
|
5289
|
-
colorCondition:
|
|
5287
|
+
showPercent: v.showPercent,
|
|
5288
|
+
totalDomain: v.totalDomain,
|
|
5289
|
+
colorCondition: v.color,
|
|
5290
5290
|
model: i,
|
|
5291
5291
|
context: o,
|
|
5292
5292
|
domain: s,
|
|
5293
|
-
icon:
|
|
5294
|
-
suffix:
|
|
5293
|
+
icon: v.icon,
|
|
5294
|
+
suffix: v.suffix,
|
|
5295
5295
|
manualIds: l,
|
|
5296
5296
|
...T
|
|
5297
5297
|
}
|
|
@@ -5314,7 +5314,7 @@ const Ol = (t, e) => {
|
|
|
5314
5314
|
default:
|
|
5315
5315
|
return /* @__PURE__ */ n(Q, { children: `Graph ${c.type} not implemented` });
|
|
5316
5316
|
}
|
|
5317
|
-
}, gn =
|
|
5317
|
+
}, gn = wt(Ol), { confirm: _l } = Je, Rl = ({ onOk: t, lang: e }) => {
|
|
5318
5318
|
_l({
|
|
5319
5319
|
title: Ie("removeItems", e),
|
|
5320
5320
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
@@ -5352,7 +5352,7 @@ const Ol = (t, e) => {
|
|
|
5352
5352
|
showCreateButton: h,
|
|
5353
5353
|
showToggleButton: p
|
|
5354
5354
|
} = t, { token: y } = Dl();
|
|
5355
|
-
function
|
|
5355
|
+
function v() {
|
|
5356
5356
|
return /* @__PURE__ */ n("div", { className: "inline-block w-3" });
|
|
5357
5357
|
}
|
|
5358
5358
|
function T() {
|
|
@@ -5391,7 +5391,7 @@ const Ol = (t, e) => {
|
|
|
5391
5391
|
}
|
|
5392
5392
|
function O() {
|
|
5393
5393
|
return /* @__PURE__ */ V(Q, { children: [
|
|
5394
|
-
|
|
5394
|
+
v(),
|
|
5395
5395
|
/* @__PURE__ */ n(
|
|
5396
5396
|
Xe,
|
|
5397
5397
|
{
|
|
@@ -5432,10 +5432,10 @@ const Ol = (t, e) => {
|
|
|
5432
5432
|
onClick: m
|
|
5433
5433
|
}
|
|
5434
5434
|
),
|
|
5435
|
-
s !== "graph" &&
|
|
5435
|
+
s !== "graph" && v(),
|
|
5436
5436
|
s !== "graph" && I(),
|
|
5437
5437
|
s === "form" && O(),
|
|
5438
|
-
|
|
5438
|
+
v(),
|
|
5439
5439
|
p && /* @__PURE__ */ n(
|
|
5440
5440
|
Xe,
|
|
5441
5441
|
{
|
|
@@ -5462,7 +5462,7 @@ const Nl = (t) => {
|
|
|
5462
5462
|
var Ke;
|
|
5463
5463
|
const { value: e, onChange: r, ooui: i, views: o } = t, { items: s = [] } = e || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
|
|
5464
5464
|
xo
|
|
5465
|
-
), c = H(Ne), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = c || {}, { lang: y, t:
|
|
5465
|
+
), c = H(Ne), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = c || {}, { lang: y, t: v } = H(he), [T, I] = b(!1), [C, O] = b(!1), [_, A] = b(), [x, S] = b(!1), [F, w] = b(!1), [E, P] = b(), [M, j] = b([]), [N, B] = b(!1), K = de([]), [R, U] = b(), ne = de(), [X, Y] = b(void 0), {
|
|
5466
5466
|
readOnly: G,
|
|
5467
5467
|
relation: k,
|
|
5468
5468
|
context: L,
|
|
@@ -5483,7 +5483,7 @@ const Nl = (t) => {
|
|
|
5483
5483
|
me(() => {
|
|
5484
5484
|
Le();
|
|
5485
5485
|
}, [p]);
|
|
5486
|
-
const
|
|
5486
|
+
const ve = (z) => {
|
|
5487
5487
|
var se, Se;
|
|
5488
5488
|
r == null || r({
|
|
5489
5489
|
fields: ((se = o.get("form")) == null ? void 0 : se.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
|
|
@@ -5508,7 +5508,7 @@ const Nl = (t) => {
|
|
|
5508
5508
|
context: { ...h == null ? void 0 : h(), ...L },
|
|
5509
5509
|
currentView: z || a
|
|
5510
5510
|
});
|
|
5511
|
-
return ne.current || (ne.current = Te.map((tt) => tt.id)), (a || z) === "tree" && _e && Y(_e),
|
|
5511
|
+
return ne.current || (ne.current = Te.map((tt) => tt.id)), (a || z) === "tree" && _e && Y(_e), ve(Te), Te;
|
|
5512
5512
|
} catch (Te) {
|
|
5513
5513
|
A(Te);
|
|
5514
5514
|
} finally {
|
|
@@ -5562,7 +5562,7 @@ const Nl = (t) => {
|
|
|
5562
5562
|
values: se,
|
|
5563
5563
|
treeValues: Se
|
|
5564
5564
|
} : Te);
|
|
5565
|
-
|
|
5565
|
+
ve(pe);
|
|
5566
5566
|
}, ye = (z) => {
|
|
5567
5567
|
T ? zt({
|
|
5568
5568
|
lang: y,
|
|
@@ -5594,8 +5594,8 @@ const Nl = (t) => {
|
|
|
5594
5594
|
}) : (B(!0), P({ defaultValues: se }), S(!0));
|
|
5595
5595
|
}, Z = async () => {
|
|
5596
5596
|
a === "form" ? ye(() => {
|
|
5597
|
-
|
|
5598
|
-
}) :
|
|
5597
|
+
w(!0);
|
|
5598
|
+
}) : w(!0);
|
|
5599
5599
|
}, xe = async () => {
|
|
5600
5600
|
O(!0), I(!1), A(void 0);
|
|
5601
5601
|
try {
|
|
@@ -5604,9 +5604,9 @@ const Nl = (t) => {
|
|
|
5604
5604
|
...se,
|
|
5605
5605
|
operation: "pendingRemove"
|
|
5606
5606
|
} : se);
|
|
5607
|
-
|
|
5607
|
+
ve(z);
|
|
5608
5608
|
} else
|
|
5609
|
-
|
|
5609
|
+
ve(
|
|
5610
5610
|
s.filter((z) => z.id !== J[d].id)
|
|
5611
5611
|
);
|
|
5612
5612
|
} catch (z) {
|
|
@@ -5621,7 +5621,7 @@ const Nl = (t) => {
|
|
|
5621
5621
|
...pe,
|
|
5622
5622
|
operation: "pendingRemove"
|
|
5623
5623
|
} : pe);
|
|
5624
|
-
|
|
5624
|
+
ve(Se);
|
|
5625
5625
|
} catch (se) {
|
|
5626
5626
|
A(se);
|
|
5627
5627
|
}
|
|
@@ -5651,7 +5651,7 @@ const Nl = (t) => {
|
|
|
5651
5651
|
treeValues: { ...Se, id: _e }
|
|
5652
5652
|
});
|
|
5653
5653
|
}
|
|
5654
|
-
|
|
5654
|
+
ve(Te), N || S(!1);
|
|
5655
5655
|
}, ie = async (z) => {
|
|
5656
5656
|
const { id: se } = z;
|
|
5657
5657
|
let Se = s;
|
|
@@ -5680,7 +5680,7 @@ const Nl = (t) => {
|
|
|
5680
5680
|
treeValues: _e
|
|
5681
5681
|
});
|
|
5682
5682
|
}
|
|
5683
|
-
|
|
5683
|
+
ve(se);
|
|
5684
5684
|
} catch (pe) {
|
|
5685
5685
|
A(pe);
|
|
5686
5686
|
} finally {
|
|
@@ -5699,7 +5699,7 @@ const Nl = (t) => {
|
|
|
5699
5699
|
const ce = () => {
|
|
5700
5700
|
var se, Se, pe, Te;
|
|
5701
5701
|
if (a === "form")
|
|
5702
|
-
return J.length === 0 ?
|
|
5702
|
+
return J.length === 0 ? v("noCurrentEntries") : a !== q.current && s.some((_e) => !_e.values) ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(
|
|
5703
5703
|
Jt,
|
|
5704
5704
|
{
|
|
5705
5705
|
formView: o.get("form"),
|
|
@@ -5716,7 +5716,7 @@ const Nl = (t) => {
|
|
|
5716
5716
|
values: { ..._e, id: tt },
|
|
5717
5717
|
treeValues: { ..._e, id: tt }
|
|
5718
5718
|
} : Ye);
|
|
5719
|
-
|
|
5719
|
+
ve(qe), I(!0);
|
|
5720
5720
|
},
|
|
5721
5721
|
readOnly: G
|
|
5722
5722
|
}
|
|
@@ -5811,17 +5811,17 @@ const Nl = (t) => {
|
|
|
5811
5811
|
}
|
|
5812
5812
|
),
|
|
5813
5813
|
/* @__PURE__ */ n(
|
|
5814
|
-
|
|
5814
|
+
wo,
|
|
5815
5815
|
{
|
|
5816
5816
|
domain: K.current,
|
|
5817
5817
|
model: k,
|
|
5818
5818
|
context: { ...h == null ? void 0 : h(), ...L },
|
|
5819
5819
|
visible: F,
|
|
5820
5820
|
onSelectValues: async (z) => {
|
|
5821
|
-
|
|
5821
|
+
w(!1), ue(z);
|
|
5822
5822
|
},
|
|
5823
5823
|
onCloseModal: () => {
|
|
5824
|
-
|
|
5824
|
+
w(!1);
|
|
5825
5825
|
}
|
|
5826
5826
|
}
|
|
5827
5827
|
)
|
|
@@ -5831,13 +5831,13 @@ const Nl = (t) => {
|
|
|
5831
5831
|
let l;
|
|
5832
5832
|
const [d, u] = b(!0), [c, f] = b(), [m, g] = b(/* @__PURE__ */ new Map()), h = H(Ne), { getContext: p } = h || {};
|
|
5833
5833
|
xt(() => {
|
|
5834
|
-
|
|
5834
|
+
v();
|
|
5835
5835
|
}, [e]);
|
|
5836
5836
|
const y = async (I) => o && o[I] ? o[I] : await D.getHandler().getView({
|
|
5837
5837
|
model: i,
|
|
5838
5838
|
type: I,
|
|
5839
5839
|
context: { ...p == null ? void 0 : p(), ...a }
|
|
5840
|
-
}),
|
|
5840
|
+
}), v = async () => {
|
|
5841
5841
|
u(!0), f(void 0);
|
|
5842
5842
|
try {
|
|
5843
5843
|
if (r && r.length > 0) {
|
|
@@ -5883,14 +5883,14 @@ const Nl = (t) => {
|
|
|
5883
5883
|
me(() => {
|
|
5884
5884
|
f(po(r));
|
|
5885
5885
|
}, [r]);
|
|
5886
|
-
const h = (
|
|
5887
|
-
i == null || i(
|
|
5886
|
+
const h = (v) => {
|
|
5887
|
+
i == null || i(v);
|
|
5888
5888
|
};
|
|
5889
|
-
function p(
|
|
5890
|
-
u.current =
|
|
5889
|
+
function p(v) {
|
|
5890
|
+
u.current = v.target.value, f(v.target.value);
|
|
5891
5891
|
}
|
|
5892
5892
|
async function y() {
|
|
5893
|
-
h(Pa(c)), await new Promise((
|
|
5893
|
+
h(Pa(c)), await new Promise((v) => setTimeout(v, 300)), g == null || g();
|
|
5894
5894
|
}
|
|
5895
5895
|
return /* @__PURE__ */ n(
|
|
5896
5896
|
it,
|
|
@@ -6034,7 +6034,7 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6034
6034
|
}
|
|
6035
6035
|
)
|
|
6036
6036
|
] }) : /* @__PURE__ */ V(Q, { children: [
|
|
6037
|
-
/* @__PURE__ */ n(
|
|
6037
|
+
/* @__PURE__ */ n(we, { gutter: 8, wrap: !1, children: /* @__PURE__ */ n(
|
|
6038
6038
|
kn,
|
|
6039
6039
|
{
|
|
6040
6040
|
value: t,
|
|
@@ -6050,7 +6050,7 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6050
6050
|
onBlur: c
|
|
6051
6051
|
}
|
|
6052
6052
|
) }),
|
|
6053
|
-
/* @__PURE__ */ n(
|
|
6053
|
+
/* @__PURE__ */ n(we, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ n(
|
|
6054
6054
|
Xe,
|
|
6055
6055
|
{
|
|
6056
6056
|
tooltip: g("translate"),
|
|
@@ -6083,8 +6083,8 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6083
6083
|
ft(Ie("selectAtLeastOneField", r));
|
|
6084
6084
|
return;
|
|
6085
6085
|
}
|
|
6086
|
-
let
|
|
6087
|
-
y.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (
|
|
6086
|
+
let v = o;
|
|
6087
|
+
y.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (v = [
|
|
6088
6088
|
["id", "in", i == null ? void 0 : i.map((C) => C.id)]
|
|
6089
6089
|
]);
|
|
6090
6090
|
const { datas: T } = await D.getHandler().exportData({
|
|
@@ -6093,7 +6093,7 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6093
6093
|
keys: y.selectedKeys,
|
|
6094
6094
|
fields: l.current
|
|
6095
6095
|
}),
|
|
6096
|
-
domain:
|
|
6096
|
+
domain: v,
|
|
6097
6097
|
limit: y.registersAmount === "all" ? 0 : s,
|
|
6098
6098
|
context: e,
|
|
6099
6099
|
format: y.exportType
|
|
@@ -6129,7 +6129,7 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6129
6129
|
},
|
|
6130
6130
|
[l.current, t, e]
|
|
6131
6131
|
), m = De(async () => {
|
|
6132
|
-
const y = await Jl({ model: t, context: e }),
|
|
6132
|
+
const y = await Jl({ model: t, context: e }), v = await Xl({
|
|
6133
6133
|
predefinedExports: y,
|
|
6134
6134
|
fields: l.current,
|
|
6135
6135
|
onGetFieldChilds: f
|
|
@@ -6145,17 +6145,17 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6145
6145
|
};
|
|
6146
6146
|
})
|
|
6147
6147
|
})),
|
|
6148
|
-
keysWithChilds:
|
|
6148
|
+
keysWithChilds: v
|
|
6149
6149
|
};
|
|
6150
6150
|
}, [l.current]), g = De(
|
|
6151
6151
|
async (y) => {
|
|
6152
|
-
const
|
|
6152
|
+
const v = await p("ir.exports"), T = await p("ir.exports.line"), I = await D.getHandler().create({
|
|
6153
6153
|
model: "ir.exports",
|
|
6154
6154
|
values: {
|
|
6155
6155
|
name: y.name,
|
|
6156
6156
|
resource: t
|
|
6157
6157
|
},
|
|
6158
|
-
fields:
|
|
6158
|
+
fields: v,
|
|
6159
6159
|
context: e
|
|
6160
6160
|
});
|
|
6161
6161
|
return await Promise.all(
|
|
@@ -6183,12 +6183,12 @@ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
|
|
|
6183
6183
|
async (y) => {
|
|
6184
6184
|
if (d.current.has(y))
|
|
6185
6185
|
return d.current.get(y);
|
|
6186
|
-
const
|
|
6186
|
+
const v = D.getHandler().getFields({
|
|
6187
6187
|
model: y,
|
|
6188
6188
|
context: e,
|
|
6189
6189
|
fields: []
|
|
6190
6190
|
});
|
|
6191
|
-
d.current.set(y,
|
|
6191
|
+
d.current.set(y, v);
|
|
6192
6192
|
},
|
|
6193
6193
|
[d, e]
|
|
6194
6194
|
);
|
|
@@ -6377,7 +6377,7 @@ const oc = (t) => {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
const m = e && l && l[0], g = e && l && l[1] && parseInt(l[1]);
|
|
6379
6379
|
u([g, void 0]), f(m);
|
|
6380
|
-
}, [e]), /* @__PURE__ */ V(
|
|
6380
|
+
}, [e]), /* @__PURE__ */ V(we, { gutter: 8, wrap: !1, children: [
|
|
6381
6381
|
/* @__PURE__ */ n(ae, { flex: "1", children: /* @__PURE__ */ n(
|
|
6382
6382
|
ro,
|
|
6383
6383
|
{
|
|
@@ -6430,7 +6430,7 @@ const oc = (t) => {
|
|
|
6430
6430
|
const I = await At(r);
|
|
6431
6431
|
hn(r, I.mime);
|
|
6432
6432
|
}
|
|
6433
|
-
async function
|
|
6433
|
+
async function v(I) {
|
|
6434
6434
|
I.stopPropagation(), I.preventDefault();
|
|
6435
6435
|
const C = I.target.files[0], O = await oo(C);
|
|
6436
6436
|
h(O), a && c(a, C.name);
|
|
@@ -6438,7 +6438,7 @@ const oc = (t) => {
|
|
|
6438
6438
|
function T() {
|
|
6439
6439
|
c(a, void 0), h(void 0);
|
|
6440
6440
|
}
|
|
6441
|
-
return /* @__PURE__ */ V(
|
|
6441
|
+
return /* @__PURE__ */ V(we, { gutter: 8, children: [
|
|
6442
6442
|
/* @__PURE__ */ V(ae, { style: { paddingBottom: 5 }, children: [
|
|
6443
6443
|
/* @__PURE__ */ n(
|
|
6444
6444
|
"input",
|
|
@@ -6447,7 +6447,7 @@ const oc = (t) => {
|
|
|
6447
6447
|
id: "file",
|
|
6448
6448
|
ref: u,
|
|
6449
6449
|
style: { display: "none" },
|
|
6450
|
-
onChange:
|
|
6450
|
+
onChange: v
|
|
6451
6451
|
}
|
|
6452
6452
|
),
|
|
6453
6453
|
/* @__PURE__ */ n(
|
|
@@ -6512,7 +6512,7 @@ function er(t) {
|
|
|
6512
6512
|
previousView: a
|
|
6513
6513
|
} = t, { t: l, lang: d } = H(he);
|
|
6514
6514
|
function u() {
|
|
6515
|
-
const m = r.map((g, h) => /* @__PURE__ */ n($e.Item, { children: /* @__PURE__ */ V(
|
|
6515
|
+
const m = r.map((g, h) => /* @__PURE__ */ n($e.Item, { children: /* @__PURE__ */ V(we, { wrap: !1, children: [
|
|
6516
6516
|
/* @__PURE__ */ n(ae, { flex: "none", style: { paddingRight: 20 }, children: _r(g) }),
|
|
6517
6517
|
/* @__PURE__ */ n(ae, { flex: "auto", style: { paddingRight: 20 }, children: g.type.charAt(0).toUpperCase() + g.type.slice(1) }),
|
|
6518
6518
|
/* @__PURE__ */ n(ae, { flex: "none", children: /* @__PURE__ */ n(
|
|
@@ -6767,7 +6767,7 @@ const mc = (t) => {
|
|
|
6767
6767
|
i.map((u) => {
|
|
6768
6768
|
const c = u.link ? Ur : Kn;
|
|
6769
6769
|
return /* @__PURE__ */ V(
|
|
6770
|
-
|
|
6770
|
+
we,
|
|
6771
6771
|
{
|
|
6772
6772
|
style: { paddingTop: 4, paddingBottom: 4 },
|
|
6773
6773
|
wrap: !1,
|
|
@@ -6816,27 +6816,27 @@ function pc(t) {
|
|
|
6816
6816
|
} = t, { formRef: a } = H(rt), [l, d] = b(!1), [u, c] = b([]), [f, m] = b(!1), { t: g } = H(he), h = De(async () => {
|
|
6817
6817
|
d(!0);
|
|
6818
6818
|
try {
|
|
6819
|
-
const
|
|
6819
|
+
const v = await D.getHandler().readObjects({
|
|
6820
6820
|
model: "ir.attachment",
|
|
6821
6821
|
ids: e.map((T) => T.id),
|
|
6822
6822
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
6823
6823
|
context: a.current.getContext()
|
|
6824
6824
|
});
|
|
6825
6825
|
c(
|
|
6826
|
-
|
|
6826
|
+
v.map((T) => ({
|
|
6827
6827
|
id: T.id,
|
|
6828
6828
|
name: T.name,
|
|
6829
6829
|
datas_fname: T.datas_fname,
|
|
6830
6830
|
link: T.link
|
|
6831
6831
|
}))
|
|
6832
6832
|
);
|
|
6833
|
-
} catch (
|
|
6834
|
-
ze(
|
|
6833
|
+
} catch (v) {
|
|
6834
|
+
ze(v);
|
|
6835
6835
|
}
|
|
6836
6836
|
d(!1);
|
|
6837
|
-
}, e), p = De(async (
|
|
6838
|
-
if (
|
|
6839
|
-
window.open(
|
|
6837
|
+
}, e), p = De(async (v) => {
|
|
6838
|
+
if (v.link) {
|
|
6839
|
+
window.open(v.link);
|
|
6840
6840
|
return;
|
|
6841
6841
|
}
|
|
6842
6842
|
m(!0);
|
|
@@ -6844,7 +6844,7 @@ function pc(t) {
|
|
|
6844
6844
|
try {
|
|
6845
6845
|
T = (await D.getHandler().readObjects({
|
|
6846
6846
|
model: "ir.attachment",
|
|
6847
|
-
ids: [
|
|
6847
|
+
ids: [v.id],
|
|
6848
6848
|
context: a.current.getContext()
|
|
6849
6849
|
}))[0];
|
|
6850
6850
|
} catch (I) {
|
|
@@ -6856,8 +6856,8 @@ function pc(t) {
|
|
|
6856
6856
|
hn(T.datas, I.mime);
|
|
6857
6857
|
} else
|
|
6858
6858
|
s(T);
|
|
6859
|
-
}, []), y = De(async (
|
|
6860
|
-
s(
|
|
6859
|
+
}, []), y = De(async (v) => {
|
|
6860
|
+
s(v);
|
|
6861
6861
|
}, []);
|
|
6862
6862
|
return me(() => {
|
|
6863
6863
|
h();
|
|
@@ -6907,7 +6907,7 @@ function gc({ toolbar: t }) {
|
|
|
6907
6907
|
removingItem: h,
|
|
6908
6908
|
duplicatingItem: p,
|
|
6909
6909
|
setDuplicatingItem: y,
|
|
6910
|
-
setResults:
|
|
6910
|
+
setResults: v,
|
|
6911
6911
|
formIsLoading: T,
|
|
6912
6912
|
attachments: I,
|
|
6913
6913
|
formRef: C,
|
|
@@ -6915,9 +6915,9 @@ function gc({ toolbar: t }) {
|
|
|
6915
6915
|
previousView: _,
|
|
6916
6916
|
setPreviousView: A,
|
|
6917
6917
|
goToResourceId: x
|
|
6918
|
-
} = H(rt), { t: S, lang: F } = H(he),
|
|
6918
|
+
} = H(rt), { t: S, lang: F } = H(he), w = H(
|
|
6919
6919
|
Pt
|
|
6920
|
-
), { processAction: E } =
|
|
6920
|
+
), { processAction: E } = w || {}, P = H(
|
|
6921
6921
|
dt
|
|
6922
6922
|
), { openRelate: M, openDefaultActionForModel: j } = P || {};
|
|
6923
6923
|
function N(k) {
|
|
@@ -6966,7 +6966,7 @@ function gc({ toolbar: t }) {
|
|
|
6966
6966
|
ids: [l]
|
|
6967
6967
|
});
|
|
6968
6968
|
const k = d == null ? void 0 : d.filter((ee) => ee.id !== l);
|
|
6969
|
-
|
|
6969
|
+
v == null || v(k);
|
|
6970
6970
|
let L = 0;
|
|
6971
6971
|
c > 0 && c <= d.length - 1 && (L = c - 1), k != null && k[L] ? (f == null || f(k == null ? void 0 : k[L].id), u == null || u(L)) : (f == null || f(void 0), u == null || u(void 0));
|
|
6972
6972
|
} catch (k) {
|
|
@@ -7237,10 +7237,10 @@ const { useToken: yc } = Pe, _o = (t) => {
|
|
|
7237
7237
|
me(() => {
|
|
7238
7238
|
l && !g && y(!1), !r && !l && (h(!0), y(!0));
|
|
7239
7239
|
}, [g, l]);
|
|
7240
|
-
const
|
|
7240
|
+
const v = (T) => {
|
|
7241
7241
|
i == null || i(T.target.value);
|
|
7242
7242
|
};
|
|
7243
|
-
return /* @__PURE__ */ V(
|
|
7243
|
+
return /* @__PURE__ */ V(we, { gutter: 8, wrap: !1, align: "middle", children: [
|
|
7244
7244
|
l ? null : /* @__PURE__ */ n(ae, { flex: "32px", children: g ? /* @__PURE__ */ n(
|
|
7245
7245
|
Oe,
|
|
7246
7246
|
{
|
|
@@ -7271,7 +7271,7 @@ const { useToken: yc } = Pe, _o = (t) => {
|
|
|
7271
7271
|
...c
|
|
7272
7272
|
},
|
|
7273
7273
|
id: a,
|
|
7274
|
-
onChange:
|
|
7274
|
+
onChange: v,
|
|
7275
7275
|
value: r,
|
|
7276
7276
|
onBlur: () => {
|
|
7277
7277
|
o(r) && (h(!1), y(!1), m == null || m());
|
|
@@ -7288,7 +7288,7 @@ const { useToken: yc } = Pe, _o = (t) => {
|
|
|
7288
7288
|
}
|
|
7289
7289
|
) })
|
|
7290
7290
|
] });
|
|
7291
|
-
},
|
|
7291
|
+
}, vc = (t) => {
|
|
7292
7292
|
const { ooui: e } = t, { required: r } = e;
|
|
7293
7293
|
return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(
|
|
7294
7294
|
_o,
|
|
@@ -7297,7 +7297,7 @@ const { useToken: yc } = Pe, _o = (t) => {
|
|
|
7297
7297
|
valueValidator: (i) => i ? Ni(i) : !1
|
|
7298
7298
|
}
|
|
7299
7299
|
) });
|
|
7300
|
-
},
|
|
7300
|
+
}, wc = (t) => {
|
|
7301
7301
|
const { ooui: e } = t, { required: r } = e;
|
|
7302
7302
|
return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(
|
|
7303
7303
|
_o,
|
|
@@ -7348,7 +7348,7 @@ const { useToken: yc } = Pe, _o = (t) => {
|
|
|
7348
7348
|
)
|
|
7349
7349
|
}
|
|
7350
7350
|
),
|
|
7351
|
-
/* @__PURE__ */ n(
|
|
7351
|
+
/* @__PURE__ */ n(we, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ae, { children: /* @__PURE__ */ V(We, { children: [
|
|
7352
7352
|
/* @__PURE__ */ n(
|
|
7353
7353
|
Oe,
|
|
7354
7354
|
{
|
|
@@ -7533,7 +7533,7 @@ function yn(t) {
|
|
|
7533
7533
|
}
|
|
7534
7534
|
return /* @__PURE__ */ V("div", { style: { position: "sticky", top: 80, zIndex: 3 }, children: [
|
|
7535
7535
|
/* @__PURE__ */ V(
|
|
7536
|
-
|
|
7536
|
+
we,
|
|
7537
7537
|
{
|
|
7538
7538
|
className: "shadow-md",
|
|
7539
7539
|
style: {
|
|
@@ -7547,7 +7547,7 @@ function yn(t) {
|
|
|
7547
7547
|
/* @__PURE__ */ n(Tc, { level: 3, style: { marginBottom: 0 }, children: e || i }),
|
|
7548
7548
|
m()
|
|
7549
7549
|
] }),
|
|
7550
|
-
/* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(
|
|
7550
|
+
/* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(we, { justify: "end", children: r }) })
|
|
7551
7551
|
]
|
|
7552
7552
|
}
|
|
7553
7553
|
),
|
|
@@ -7565,7 +7565,7 @@ const Fc = (t) => {
|
|
|
7565
7565
|
setSelectedRowItems: h = void 0,
|
|
7566
7566
|
setSearchParams: p = void 0,
|
|
7567
7567
|
searchVisible: y = !0,
|
|
7568
|
-
setSearchVisible:
|
|
7568
|
+
setSearchVisible: v = void 0,
|
|
7569
7569
|
sorter: T = void 0,
|
|
7570
7570
|
setSorter: I = void 0,
|
|
7571
7571
|
setTotalItems: C = void 0,
|
|
@@ -7575,7 +7575,7 @@ const Fc = (t) => {
|
|
|
7575
7575
|
setLimit: x,
|
|
7576
7576
|
searchParams: S,
|
|
7577
7577
|
searchValues: F,
|
|
7578
|
-
setSearchValues:
|
|
7578
|
+
setSearchValues: w,
|
|
7579
7579
|
currentView: E
|
|
7580
7580
|
} = u || {}, [P, M] = b(!0);
|
|
7581
7581
|
me(() => {
|
|
@@ -7589,9 +7589,9 @@ const Fc = (t) => {
|
|
|
7589
7589
|
setSearchTreeNameSearch: O,
|
|
7590
7590
|
setSelectedRowItems: h,
|
|
7591
7591
|
searchParams: S,
|
|
7592
|
-
setSearchValues:
|
|
7592
|
+
setSearchValues: w,
|
|
7593
7593
|
setSearchParams: p,
|
|
7594
|
-
setSearchVisible:
|
|
7594
|
+
setSearchVisible: v,
|
|
7595
7595
|
setTreeIsLoading: _,
|
|
7596
7596
|
context: o,
|
|
7597
7597
|
formView: a,
|
|
@@ -7629,7 +7629,7 @@ const Fc = (t) => {
|
|
|
7629
7629
|
offset: K,
|
|
7630
7630
|
isSearching: N,
|
|
7631
7631
|
onSubmit: (U) => {
|
|
7632
|
-
M(!1), p == null || p(U.params),
|
|
7632
|
+
M(!1), p == null || p(U.params), v == null || v(!1);
|
|
7633
7633
|
},
|
|
7634
7634
|
searchError: B,
|
|
7635
7635
|
searchVisible: y,
|
|
@@ -7697,7 +7697,7 @@ function Oc(t) {
|
|
|
7697
7697
|
function u() {
|
|
7698
7698
|
l(!1), s.setFieldsValue({ search: void 0 }), e(void 0);
|
|
7699
7699
|
}
|
|
7700
|
-
return /* @__PURE__ */ n(lt, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ V(
|
|
7700
|
+
return /* @__PURE__ */ n(lt, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ V(we, { align: "middle", justify: "end", children: [
|
|
7701
7701
|
/* @__PURE__ */ n(ae, { children: /* @__PURE__ */ n(lt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
|
|
7702
7702
|
it,
|
|
7703
7703
|
{
|
|
@@ -7749,7 +7749,7 @@ function Rc(t) {
|
|
|
7749
7749
|
searchVisible: h,
|
|
7750
7750
|
setSearchVisible: p,
|
|
7751
7751
|
setSearchTreeNameSearch: y,
|
|
7752
|
-
searchTreeNameSearch:
|
|
7752
|
+
searchTreeNameSearch: v,
|
|
7753
7753
|
treeIsLoading: T,
|
|
7754
7754
|
setPreviousView: I,
|
|
7755
7755
|
previousView: C,
|
|
@@ -7758,12 +7758,12 @@ function Rc(t) {
|
|
|
7758
7758
|
totalItems: A
|
|
7759
7759
|
} = H(rt), { parentContext: x = {}, treeExpandable: S, toolbar: F } = t;
|
|
7760
7760
|
H(_c);
|
|
7761
|
-
const { t:
|
|
7761
|
+
const { t: w, lang: E } = H(he), P = H(
|
|
7762
7762
|
Pt
|
|
7763
|
-
), { processAction: M } = P || {}, [j, N] = b(!1), B =
|
|
7763
|
+
), { processAction: M } = P || {}, [j, N] = b(!1), B = v !== void 0 && v.trim().length > 0;
|
|
7764
7764
|
function K() {
|
|
7765
7765
|
qt({
|
|
7766
|
-
confirmMessage:
|
|
7766
|
+
confirmMessage: w("confirmRemove"),
|
|
7767
7767
|
lang: E,
|
|
7768
7768
|
onOk: () => {
|
|
7769
7769
|
R();
|
|
@@ -7829,7 +7829,7 @@ function Rc(t) {
|
|
|
7829
7829
|
Oc,
|
|
7830
7830
|
{
|
|
7831
7831
|
disabled: l || a || T,
|
|
7832
|
-
searchText:
|
|
7832
|
+
searchText: v,
|
|
7833
7833
|
onSearch: (Y) => {
|
|
7834
7834
|
Y && Y.trim().length > 0 ? y == null || y(Y) : y == null || y(void 0);
|
|
7835
7835
|
}
|
|
@@ -7844,7 +7844,7 @@ function Rc(t) {
|
|
|
7844
7844
|
style: { color: h ? "white" : void 0 }
|
|
7845
7845
|
}
|
|
7846
7846
|
),
|
|
7847
|
-
tooltip:
|
|
7847
|
+
tooltip: w("advanced_search"),
|
|
7848
7848
|
type: h ? "primary" : "default",
|
|
7849
7849
|
onClick: () => {
|
|
7850
7850
|
p == null || p(!h);
|
|
@@ -7859,7 +7859,7 @@ function Rc(t) {
|
|
|
7859
7859
|
Ze,
|
|
7860
7860
|
{
|
|
7861
7861
|
icon: /* @__PURE__ */ n(zn, {}),
|
|
7862
|
-
tooltip:
|
|
7862
|
+
tooltip: w("duplicate"),
|
|
7863
7863
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || T,
|
|
7864
7864
|
loading: l,
|
|
7865
7865
|
onClick: U
|
|
@@ -7869,7 +7869,7 @@ function Rc(t) {
|
|
|
7869
7869
|
Ze,
|
|
7870
7870
|
{
|
|
7871
7871
|
icon: /* @__PURE__ */ n(Un, {}),
|
|
7872
|
-
tooltip:
|
|
7872
|
+
tooltip: w("delete"),
|
|
7873
7873
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
7874
7874
|
loading: a,
|
|
7875
7875
|
onClick: K
|
|
@@ -7881,11 +7881,11 @@ function Rc(t) {
|
|
|
7881
7881
|
Ze,
|
|
7882
7882
|
{
|
|
7883
7883
|
icon: /* @__PURE__ */ n(qr, {}),
|
|
7884
|
-
tooltip:
|
|
7884
|
+
tooltip: w("showLogs"),
|
|
7885
7885
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
7886
7886
|
loading: !1,
|
|
7887
7887
|
onClick: () => {
|
|
7888
|
-
Oo(u, o[0].id,
|
|
7888
|
+
Oo(u, o[0].id, w);
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
7891
7891
|
),
|
|
@@ -7893,7 +7893,7 @@ function Rc(t) {
|
|
|
7893
7893
|
Ze,
|
|
7894
7894
|
{
|
|
7895
7895
|
icon: /* @__PURE__ */ n(un, {}),
|
|
7896
|
-
tooltip:
|
|
7896
|
+
tooltip: w("refresh"),
|
|
7897
7897
|
disabled: l || a || T,
|
|
7898
7898
|
loading: !1,
|
|
7899
7899
|
onClick: () => {
|
|
@@ -7923,7 +7923,7 @@ function Rc(t) {
|
|
|
7923
7923
|
{
|
|
7924
7924
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
7925
7925
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
7926
|
-
tooltip:
|
|
7926
|
+
tooltip: w("actions"),
|
|
7927
7927
|
items: F == null ? void 0 : F.action,
|
|
7928
7928
|
onItemClick: (Y) => {
|
|
7929
7929
|
Y && ne(Y);
|
|
@@ -7935,7 +7935,7 @@ function Rc(t) {
|
|
|
7935
7935
|
{
|
|
7936
7936
|
icon: /* @__PURE__ */ n(Gn, {}),
|
|
7937
7937
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
7938
|
-
tooltip:
|
|
7938
|
+
tooltip: w("reports"),
|
|
7939
7939
|
items: F == null ? void 0 : F.print,
|
|
7940
7940
|
onItemClick: (Y) => {
|
|
7941
7941
|
Y && ne({
|
|
@@ -7978,15 +7978,15 @@ function Rc(t) {
|
|
|
7978
7978
|
)
|
|
7979
7979
|
}
|
|
7980
7980
|
),
|
|
7981
|
-
tooltip:
|
|
7981
|
+
tooltip: w("export"),
|
|
7982
7982
|
items: [
|
|
7983
7983
|
{
|
|
7984
7984
|
id: "print_screen",
|
|
7985
|
-
name:
|
|
7985
|
+
name: w("printScreen")
|
|
7986
7986
|
},
|
|
7987
7987
|
{
|
|
7988
7988
|
id: "export",
|
|
7989
|
-
name:
|
|
7989
|
+
name: w("advancedExport")
|
|
7990
7990
|
}
|
|
7991
7991
|
],
|
|
7992
7992
|
onItemClick: (Y) => {
|
|
@@ -8060,7 +8060,7 @@ const Vc = (t) => {
|
|
|
8060
8060
|
}
|
|
8061
8061
|
) }),
|
|
8062
8062
|
/* @__PURE__ */ n(
|
|
8063
|
-
|
|
8063
|
+
vo,
|
|
8064
8064
|
{
|
|
8065
8065
|
ref: r,
|
|
8066
8066
|
rootTree: !0,
|
|
@@ -8071,9 +8071,9 @@ const Vc = (t) => {
|
|
|
8071
8071
|
treeView: a,
|
|
8072
8072
|
domain: l,
|
|
8073
8073
|
onRowClicked: (y) => {
|
|
8074
|
-
const { id:
|
|
8075
|
-
c(
|
|
8076
|
-
const T = u.findIndex((C) => C.id ===
|
|
8074
|
+
const { id: v } = y;
|
|
8075
|
+
c(v);
|
|
8076
|
+
const T = u.findIndex((C) => C.id === v);
|
|
8077
8077
|
p == null || p(h), d(T);
|
|
8078
8078
|
const I = m.find(
|
|
8079
8079
|
(C) => C.type === "form"
|
|
@@ -8125,7 +8125,7 @@ function Dc() {
|
|
|
8125
8125
|
/* @__PURE__ */ n(
|
|
8126
8126
|
Ze,
|
|
8127
8127
|
{
|
|
8128
|
-
icon: /* @__PURE__ */ n(
|
|
8128
|
+
icon: /* @__PURE__ */ n(vi, {}),
|
|
8129
8129
|
tooltip: o("configDashboard"),
|
|
8130
8130
|
disabled: t,
|
|
8131
8131
|
loading: !1,
|
|
@@ -8210,15 +8210,15 @@ function Nc(t, e) {
|
|
|
8210
8210
|
action_type: h,
|
|
8211
8211
|
treeExpandable: p = !1,
|
|
8212
8212
|
limit: y
|
|
8213
|
-
} = t, [
|
|
8213
|
+
} = t, [v, T] = b(), [I, C] = b([]), [O, _] = b(!0), A = m || void 0, [x, S] = b(
|
|
8214
8214
|
A
|
|
8215
|
-
), [F,
|
|
8215
|
+
), [F, w] = b([]), [E, P] = b(), [M, j] = b([]), [N, B] = b(), [K, R] = b(0), [U, ne] = b(!1), [X, Y] = b(!1), [G, k] = b(), { t: L } = H(he) || {}, ee = de(), le = de(), Fe = H(
|
|
8216
8216
|
dt
|
|
8217
8217
|
), {
|
|
8218
8218
|
setCurrentView: J,
|
|
8219
8219
|
setCurrentId: q,
|
|
8220
8220
|
tabs: be,
|
|
8221
|
-
activeKey:
|
|
8221
|
+
activeKey: ve,
|
|
8222
8222
|
openAction: je,
|
|
8223
8223
|
onRemoveTab: ke
|
|
8224
8224
|
} = Fe || {};
|
|
@@ -8227,7 +8227,7 @@ function Nc(t, e) {
|
|
|
8227
8227
|
(Z) => {
|
|
8228
8228
|
Z.preventDefault(), Ee();
|
|
8229
8229
|
},
|
|
8230
|
-
[
|
|
8230
|
+
[ve, be, v, E, M]
|
|
8231
8231
|
);
|
|
8232
8232
|
function Le(Z) {
|
|
8233
8233
|
S(Z), q == null || q(Z);
|
|
@@ -8322,13 +8322,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8322
8322
|
const Z = I.find((Ve) => Ve.type === "tree"), xe = I.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
|
|
8323
8323
|
Ge(xe || Z), m ? q == null || q(A) : (Le(void 0), P(void 0)), Ce();
|
|
8324
8324
|
}, [i, s, m]), me(() => {
|
|
8325
|
-
|
|
8326
|
-
}, [be,
|
|
8325
|
+
ve === d && (q == null || q(x), J == null || J(v));
|
|
8326
|
+
}, [be, ve]);
|
|
8327
8327
|
async function oe() {
|
|
8328
|
-
return
|
|
8328
|
+
return v && v.type === "form" ? await ee.current.cancelUnsavedChanges() : !0;
|
|
8329
8329
|
}
|
|
8330
8330
|
async function Ee() {
|
|
8331
|
-
|
|
8331
|
+
ve === d && (v.type === "form" && !await ee.current.cancelUnsavedChanges() || ne(!0));
|
|
8332
8332
|
}
|
|
8333
8333
|
async function ye(Z) {
|
|
8334
8334
|
var ie;
|
|
@@ -8374,7 +8374,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8374
8374
|
{
|
|
8375
8375
|
formRef: ee,
|
|
8376
8376
|
currentId: x,
|
|
8377
|
-
visible:
|
|
8377
|
+
visible: v.type === Z.type && v.view_id === Z.view_id,
|
|
8378
8378
|
formView: Z,
|
|
8379
8379
|
model: i,
|
|
8380
8380
|
context: o,
|
|
@@ -8391,7 +8391,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8391
8391
|
return /* @__PURE__ */ n(
|
|
8392
8392
|
Vc,
|
|
8393
8393
|
{
|
|
8394
|
-
visible:
|
|
8394
|
+
visible: v.type === Z.type && v.view_id === Z.view_id,
|
|
8395
8395
|
limit: y,
|
|
8396
8396
|
model: i,
|
|
8397
8397
|
context: o,
|
|
@@ -8412,7 +8412,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8412
8412
|
return /* @__PURE__ */ n(
|
|
8413
8413
|
Fc,
|
|
8414
8414
|
{
|
|
8415
|
-
visible:
|
|
8415
|
+
visible: v.type === Z.type && v.view_id === Z.view_id,
|
|
8416
8416
|
viewData: Z,
|
|
8417
8417
|
model: i,
|
|
8418
8418
|
context: o,
|
|
@@ -8434,7 +8434,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8434
8434
|
});
|
|
8435
8435
|
}
|
|
8436
8436
|
function He() {
|
|
8437
|
-
if (x === void 0 &&
|
|
8437
|
+
if (x === void 0 && v.type === "form")
|
|
8438
8438
|
ee.current.clearAndReload();
|
|
8439
8439
|
else {
|
|
8440
8440
|
Le(void 0);
|
|
@@ -8444,11 +8444,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8444
8444
|
Ge(Z);
|
|
8445
8445
|
}
|
|
8446
8446
|
}
|
|
8447
|
-
return O ? /* @__PURE__ */ n(Ae, {}) :
|
|
8447
|
+
return O ? /* @__PURE__ */ n(Ae, {}) : v ? /* @__PURE__ */ V(
|
|
8448
8448
|
fa,
|
|
8449
8449
|
{
|
|
8450
8450
|
title: a,
|
|
8451
|
-
currentView:
|
|
8451
|
+
currentView: v,
|
|
8452
8452
|
setCurrentView: Ge,
|
|
8453
8453
|
availableViews: I,
|
|
8454
8454
|
formRef: ee,
|
|
@@ -8466,7 +8466,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8466
8466
|
totalItems: K,
|
|
8467
8467
|
setTotalItems: R,
|
|
8468
8468
|
selectedRowItems: F,
|
|
8469
|
-
setSelectedRowItems:
|
|
8469
|
+
setSelectedRowItems: w,
|
|
8470
8470
|
setSearchTreeNameSearch: k,
|
|
8471
8471
|
searchTreeNameSearch: G,
|
|
8472
8472
|
goToResourceId: ye,
|
|
@@ -8488,7 +8488,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8488
8488
|
}
|
|
8489
8489
|
) : null;
|
|
8490
8490
|
}
|
|
8491
|
-
const Vo =
|
|
8491
|
+
const Vo = wt(Nc);
|
|
8492
8492
|
async function Pc({
|
|
8493
8493
|
actionId: t,
|
|
8494
8494
|
rootContext: e = {},
|
|
@@ -8497,7 +8497,7 @@ async function Pc({
|
|
|
8497
8497
|
const i = "ir.actions.act_window", o = `${i},${t}`, s = await D.getHandler().getActionData({
|
|
8498
8498
|
action: o,
|
|
8499
8499
|
context: e
|
|
8500
|
-
}), a =
|
|
8500
|
+
}), a = vt({
|
|
8501
8501
|
context: s.context,
|
|
8502
8502
|
values: r,
|
|
8503
8503
|
fields: {}
|
|
@@ -8526,7 +8526,7 @@ async function Pc({
|
|
|
8526
8526
|
h.push([O, C]);
|
|
8527
8527
|
}
|
|
8528
8528
|
}
|
|
8529
|
-
const [p, y] = h[0],
|
|
8529
|
+
const [p, y] = h[0], v = { id: p, type: y };
|
|
8530
8530
|
return {
|
|
8531
8531
|
title: c,
|
|
8532
8532
|
actionId: t,
|
|
@@ -8536,7 +8536,7 @@ async function Pc({
|
|
|
8536
8536
|
model: d,
|
|
8537
8537
|
context: { ...e, ...a },
|
|
8538
8538
|
domain: l,
|
|
8539
|
-
initialView:
|
|
8539
|
+
initialView: v,
|
|
8540
8540
|
limit: f,
|
|
8541
8541
|
treeExpandable: g
|
|
8542
8542
|
};
|
|
@@ -8587,7 +8587,7 @@ const Lc = ji(Yi), Bc = (t) => {
|
|
|
8587
8587
|
},
|
|
8588
8588
|
children: [
|
|
8589
8589
|
/* @__PURE__ */ V(
|
|
8590
|
-
|
|
8590
|
+
we,
|
|
8591
8591
|
{
|
|
8592
8592
|
align: "middle",
|
|
8593
8593
|
style: {
|
|
@@ -8610,8 +8610,8 @@ const Lc = ji(Yi), Bc = (t) => {
|
|
|
8610
8610
|
children: /* @__PURE__ */ n(Hc, { ellipsis: !0, children: e })
|
|
8611
8611
|
}
|
|
8612
8612
|
),
|
|
8613
|
-
i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(
|
|
8614
|
-
|
|
8613
|
+
i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(we, { justify: "end", align: "middle", children: /* @__PURE__ */ n(
|
|
8614
|
+
wi,
|
|
8615
8615
|
{
|
|
8616
8616
|
style: { cursor: "pointer" },
|
|
8617
8617
|
onClick: () => {
|
|
@@ -8636,17 +8636,17 @@ function jc(t) {
|
|
|
8636
8636
|
domain: s = [],
|
|
8637
8637
|
visible: a = !0,
|
|
8638
8638
|
parentContext: l = {}
|
|
8639
|
-
} = t, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y,
|
|
8639
|
+
} = t, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y, v] = b(), [T, I] = b(1), [C, O] = b(0), _ = de(Wc), A = de([]), [x, S] = b(0), [F, w] = b([]), [E, P] = b(void 0), [M, j] = b(), [N, B] = b(), [K, R] = b(), [U, ne] = b(!1), X = de([]), Y = (q) => {
|
|
8640
8640
|
ne(!0), I(q), O((q - 1) * _.current);
|
|
8641
8641
|
}, G = async () => {
|
|
8642
|
-
const q = X.current.length > 0 ? X.current : s, be = Wt(A.current, q), { colors:
|
|
8642
|
+
const q = X.current.length > 0 ? X.current : s, be = Wt(A.current, q), { colors: ve } = _t(h), { totalItems: je, results: ke, attrsEvaluated: Le } = await D.getHandler().searchForTree({
|
|
8643
8643
|
params: be,
|
|
8644
8644
|
limit: _.current,
|
|
8645
8645
|
offset: C,
|
|
8646
8646
|
model: m,
|
|
8647
8647
|
fields: h.fields,
|
|
8648
8648
|
context: l,
|
|
8649
|
-
attrs:
|
|
8649
|
+
attrs: ve && { colors: ve }
|
|
8650
8650
|
});
|
|
8651
8651
|
P(tn(Le));
|
|
8652
8652
|
const Ge = Rt({
|
|
@@ -8654,7 +8654,7 @@ function jc(t) {
|
|
|
8654
8654
|
sorter: M,
|
|
8655
8655
|
fields: { ...h.fields, ...y.fields }
|
|
8656
8656
|
});
|
|
8657
|
-
ne(!1),
|
|
8657
|
+
ne(!1), w(Ge);
|
|
8658
8658
|
const Ce = await je;
|
|
8659
8659
|
S(Ce);
|
|
8660
8660
|
}, k = async () => {
|
|
@@ -8681,7 +8681,7 @@ function jc(t) {
|
|
|
8681
8681
|
action: e,
|
|
8682
8682
|
context: l
|
|
8683
8683
|
});
|
|
8684
|
-
X.current = q.domain,
|
|
8684
|
+
X.current = q.domain, v(q.views.get("form")), p(q.views.get("tree")), g(q.model), _.current = q.limit;
|
|
8685
8685
|
}, le = async () => {
|
|
8686
8686
|
g(r);
|
|
8687
8687
|
const q = await D.getHandler().getView({
|
|
@@ -8689,7 +8689,7 @@ function jc(t) {
|
|
|
8689
8689
|
type: "form",
|
|
8690
8690
|
context: l
|
|
8691
8691
|
});
|
|
8692
|
-
|
|
8692
|
+
v(q);
|
|
8693
8693
|
const be = await D.getHandler().getView({
|
|
8694
8694
|
model: r,
|
|
8695
8695
|
type: "tree",
|
|
@@ -8731,7 +8731,7 @@ function jc(t) {
|
|
|
8731
8731
|
sorter: q,
|
|
8732
8732
|
fields: { ...h.fields, ...y.fields }
|
|
8733
8733
|
});
|
|
8734
|
-
|
|
8734
|
+
w(be);
|
|
8735
8735
|
},
|
|
8736
8736
|
context: l
|
|
8737
8737
|
}
|
|
@@ -8761,20 +8761,20 @@ function Gc(t, e) {
|
|
|
8761
8761
|
moveItemsEnabled: h
|
|
8762
8762
|
} = H(tr), p = de(), y = de();
|
|
8763
8763
|
me(() => {
|
|
8764
|
-
|
|
8764
|
+
v();
|
|
8765
8765
|
}, [r, o, i]), bt(e, () => ({
|
|
8766
8766
|
refresh: () => {
|
|
8767
|
-
|
|
8767
|
+
v();
|
|
8768
8768
|
},
|
|
8769
8769
|
configDashboard: A
|
|
8770
8770
|
}));
|
|
8771
|
-
async function
|
|
8771
|
+
async function v() {
|
|
8772
8772
|
u(!0), m(!0), f(void 0);
|
|
8773
8773
|
try {
|
|
8774
|
-
const x = await T(), S = await C(x), F = x.fields[On].relation,
|
|
8774
|
+
const x = await T(), S = await C(x), F = x.fields[On].relation, w = S[On].items;
|
|
8775
8775
|
y.current = x.fields;
|
|
8776
8776
|
const E = await I({
|
|
8777
|
-
items:
|
|
8777
|
+
items: w,
|
|
8778
8778
|
model: F,
|
|
8779
8779
|
context: i
|
|
8780
8780
|
}), P = await O(E);
|
|
@@ -8800,7 +8800,7 @@ function Gc(t, e) {
|
|
|
8800
8800
|
type: "form",
|
|
8801
8801
|
context: F
|
|
8802
8802
|
})).fields;
|
|
8803
|
-
const [
|
|
8803
|
+
const [w] = await Xn({
|
|
8804
8804
|
treeView: {
|
|
8805
8805
|
fields: p.current
|
|
8806
8806
|
},
|
|
@@ -8812,7 +8812,7 @@ function Gc(t, e) {
|
|
|
8812
8812
|
context: F,
|
|
8813
8813
|
currentView: "form"
|
|
8814
8814
|
});
|
|
8815
|
-
return
|
|
8815
|
+
return w;
|
|
8816
8816
|
}
|
|
8817
8817
|
async function C(x) {
|
|
8818
8818
|
return (await D.getHandler().readObjects({
|
|
@@ -8825,9 +8825,9 @@ function Gc(t, e) {
|
|
|
8825
8825
|
async function O(x) {
|
|
8826
8826
|
const S = [];
|
|
8827
8827
|
for (const F of x) {
|
|
8828
|
-
const { values:
|
|
8829
|
-
if (
|
|
8830
|
-
const E = parseInt(
|
|
8828
|
+
const { values: w } = F;
|
|
8829
|
+
if (w.action_id && w.action_id.length > 0) {
|
|
8830
|
+
const E = parseInt(w.action_id[0], 10), P = await Pc({
|
|
8831
8831
|
actionId: E,
|
|
8832
8832
|
rootContext: i
|
|
8833
8833
|
});
|
|
@@ -8855,7 +8855,7 @@ function Gc(t, e) {
|
|
|
8855
8855
|
});
|
|
8856
8856
|
if (S.length === 0)
|
|
8857
8857
|
return;
|
|
8858
|
-
const
|
|
8858
|
+
const w = a.filter((P) => S.map((M) => M.id).includes(P.id)).map((P) => {
|
|
8859
8859
|
const M = {
|
|
8860
8860
|
...S.find((j) => j.id === P.id)
|
|
8861
8861
|
};
|
|
@@ -8869,7 +8869,7 @@ function Gc(t, e) {
|
|
|
8869
8869
|
};
|
|
8870
8870
|
}), E = {
|
|
8871
8871
|
fields: p.current,
|
|
8872
|
-
items:
|
|
8872
|
+
items: w
|
|
8873
8873
|
};
|
|
8874
8874
|
await D.getHandler().update({
|
|
8875
8875
|
model: r,
|
|
@@ -8883,7 +8883,7 @@ function Gc(t, e) {
|
|
|
8883
8883
|
g(s);
|
|
8884
8884
|
}
|
|
8885
8885
|
return c ? (console.log(c), /* @__PURE__ */ n(et, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Bc, { onPositionItemsChanged: _, children: a.map((x, S) => {
|
|
8886
|
-
const { actionData: F, values:
|
|
8886
|
+
const { actionData: F, values: w } = x, { position: E, id: P } = w, {
|
|
8887
8887
|
actionId: M,
|
|
8888
8888
|
actionType: j,
|
|
8889
8889
|
key: N,
|
|
@@ -8934,12 +8934,12 @@ function Gc(t, e) {
|
|
|
8934
8934
|
if (Fe) {
|
|
8935
8935
|
const [J, q] = Fe, {
|
|
8936
8936
|
actionId: be,
|
|
8937
|
-
actionType:
|
|
8937
|
+
actionType: ve,
|
|
8938
8938
|
title: je,
|
|
8939
8939
|
model: ke
|
|
8940
8940
|
} = F, Le = {
|
|
8941
8941
|
action_id: be,
|
|
8942
|
-
action_type:
|
|
8942
|
+
action_type: ve,
|
|
8943
8943
|
name: je,
|
|
8944
8944
|
res_id: le.id,
|
|
8945
8945
|
res_model: ke,
|
|
@@ -8981,14 +8981,14 @@ function Gc(t, e) {
|
|
|
8981
8981
|
actionId: J,
|
|
8982
8982
|
actionType: q,
|
|
8983
8983
|
title: be,
|
|
8984
|
-
model:
|
|
8984
|
+
model: ve
|
|
8985
8985
|
} = F;
|
|
8986
8986
|
L = {
|
|
8987
8987
|
action_id: J,
|
|
8988
8988
|
action_type: q,
|
|
8989
8989
|
name: be,
|
|
8990
8990
|
res_id: !1,
|
|
8991
|
-
res_model:
|
|
8991
|
+
res_model: ve,
|
|
8992
8992
|
view_id: le,
|
|
8993
8993
|
view_type: Fe
|
|
8994
8994
|
};
|
|
@@ -9007,11 +9007,11 @@ function Gc(t, e) {
|
|
|
9007
9007
|
);
|
|
9008
9008
|
}) });
|
|
9009
9009
|
}
|
|
9010
|
-
const Uc =
|
|
9010
|
+
const Uc = wt(Gc), qc = (t) => {
|
|
9011
9011
|
const { ooui: e } = t;
|
|
9012
9012
|
return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(zc, { ooui: e }) });
|
|
9013
9013
|
}, zc = (t) => {
|
|
9014
|
-
const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p, columns: y } = r,
|
|
9014
|
+
const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p, columns: y } = r, v = H(Ne), { getContext: T } = v || {};
|
|
9015
9015
|
xt(() => {
|
|
9016
9016
|
C();
|
|
9017
9017
|
}, [o]);
|
|
@@ -9027,11 +9027,11 @@ const Uc = vt(Gc), qc = (t) => {
|
|
|
9027
9027
|
const S = await D.getHandler().evalDomain({
|
|
9028
9028
|
domain: r.domain,
|
|
9029
9029
|
values: Nt({
|
|
9030
|
-
fields:
|
|
9031
|
-
values:
|
|
9030
|
+
fields: v == null ? void 0 : v.getFields(),
|
|
9031
|
+
values: v.getPlainValues()
|
|
9032
9032
|
}),
|
|
9033
|
-
fields:
|
|
9034
|
-
context:
|
|
9033
|
+
fields: v == null ? void 0 : v.getFields(),
|
|
9034
|
+
context: v.getContext()
|
|
9035
9035
|
});
|
|
9036
9036
|
x = [...x, ...S];
|
|
9037
9037
|
}
|
|
@@ -9039,12 +9039,12 @@ const Uc = vt(Gc), qc = (t) => {
|
|
|
9039
9039
|
const F = (await D.getHandler().search({
|
|
9040
9040
|
model: m,
|
|
9041
9041
|
params: x,
|
|
9042
|
-
|
|
9042
|
+
fieldsToRetrieve: [p],
|
|
9043
9043
|
context: { ...T == null ? void 0 : T(), ...g }
|
|
9044
|
-
})).map((
|
|
9045
|
-
const E =
|
|
9044
|
+
})).map((w) => {
|
|
9045
|
+
const E = w[p];
|
|
9046
9046
|
let P = E;
|
|
9047
|
-
return Array.isArray(E) && (P = E[1]), { label: P, value:
|
|
9047
|
+
return Array.isArray(E) && (P = E[1]), { label: P, value: w.id };
|
|
9048
9048
|
});
|
|
9049
9049
|
l(F);
|
|
9050
9050
|
} catch (S) {
|
|
@@ -9060,12 +9060,12 @@ const Uc = vt(Gc), qc = (t) => {
|
|
|
9060
9060
|
}, _ = () => {
|
|
9061
9061
|
A([]);
|
|
9062
9062
|
}, A = (x) => {
|
|
9063
|
-
const S = o.map((
|
|
9064
|
-
...
|
|
9063
|
+
const S = o.map((w) => x.includes(w.id) ? w.operation == "pendingRemove" ? {
|
|
9064
|
+
...w,
|
|
9065
9065
|
operation: "original"
|
|
9066
|
-
} :
|
|
9067
|
-
x.filter((
|
|
9068
|
-
S.push({ id:
|
|
9066
|
+
} : w : { id: w.id, operation: "pendingRemove" }), F = S.map((w) => w.id);
|
|
9067
|
+
x.filter((w) => !F.includes(w)).map((w) => {
|
|
9068
|
+
S.push({ id: w, operation: "pendingLink" });
|
|
9069
9069
|
}), I(S);
|
|
9070
9070
|
};
|
|
9071
9071
|
return c && a.length === 0 ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ V("div", { className: "flex flex-row", children: [
|
|
@@ -9076,7 +9076,7 @@ const Uc = vt(Gc), qc = (t) => {
|
|
|
9076
9076
|
disabled: h,
|
|
9077
9077
|
onChange: A,
|
|
9078
9078
|
style: { width: "100%" },
|
|
9079
|
-
children: /* @__PURE__ */ n(
|
|
9079
|
+
children: /* @__PURE__ */ n(we, { children: a.map((x) => /* @__PURE__ */ n(ae, { span: Math.floor(24 / y), children: /* @__PURE__ */ n(Ht, { value: x.value, children: x.label }) })) })
|
|
9080
9080
|
}
|
|
9081
9081
|
),
|
|
9082
9082
|
!h && /* @__PURE__ */ V(We, { children: [
|
|
@@ -9214,7 +9214,7 @@ function pd(t, e) {
|
|
|
9214
9214
|
]), c = de(/* @__PURE__ */ new Map()), f = de();
|
|
9215
9215
|
bt(e, () => ({
|
|
9216
9216
|
retrieveAndOpenAction: h,
|
|
9217
|
-
openShortcut:
|
|
9217
|
+
openShortcut: v
|
|
9218
9218
|
}));
|
|
9219
9219
|
function m(C) {
|
|
9220
9220
|
if (C === a) {
|
|
@@ -9245,7 +9245,7 @@ function pd(t, e) {
|
|
|
9245
9245
|
ze("Action type not supported");
|
|
9246
9246
|
return;
|
|
9247
9247
|
}
|
|
9248
|
-
const [
|
|
9248
|
+
const [w, E] = C.split(","), P = parseInt(E), M = vt({
|
|
9249
9249
|
context: F.context,
|
|
9250
9250
|
values: i,
|
|
9251
9251
|
fields: {}
|
|
@@ -9295,7 +9295,7 @@ function pd(t, e) {
|
|
|
9295
9295
|
title: K,
|
|
9296
9296
|
target: R,
|
|
9297
9297
|
initialView: G,
|
|
9298
|
-
action_type:
|
|
9298
|
+
action_type: w,
|
|
9299
9299
|
action_id: P,
|
|
9300
9300
|
values: O,
|
|
9301
9301
|
forced_values: _,
|
|
@@ -9332,17 +9332,17 @@ function pd(t, e) {
|
|
|
9332
9332
|
const {
|
|
9333
9333
|
res_model: S,
|
|
9334
9334
|
context: F,
|
|
9335
|
-
domain:
|
|
9335
|
+
domain: w,
|
|
9336
9336
|
views: E,
|
|
9337
9337
|
target: P,
|
|
9338
9338
|
string: M,
|
|
9339
9339
|
limit: j
|
|
9340
|
-
} = C, [N, B] = E[0], K = { id: N, type: B }, R =
|
|
9340
|
+
} = C, [N, B] = E[0], K = { id: N, type: B }, R = vt({
|
|
9341
9341
|
context: F,
|
|
9342
9342
|
values: { ..._, ...i },
|
|
9343
9343
|
fields: O
|
|
9344
|
-
}), U =
|
|
9345
|
-
domain:
|
|
9344
|
+
}), U = w ? await D.getHandler().evalDomain({
|
|
9345
|
+
domain: w,
|
|
9346
9346
|
values: Nt({
|
|
9347
9347
|
fields: O,
|
|
9348
9348
|
values: { ..._, ...i }
|
|
@@ -9363,18 +9363,18 @@ function pd(t, e) {
|
|
|
9363
9363
|
limit: j
|
|
9364
9364
|
});
|
|
9365
9365
|
}
|
|
9366
|
-
async function
|
|
9366
|
+
async function v(C) {
|
|
9367
9367
|
const { action_id: O, action_type: _, res_id: A, view_id: x } = C, S = `${_},${O}`, F = await D.getHandler().getActionData({
|
|
9368
9368
|
action: S,
|
|
9369
9369
|
context: o
|
|
9370
|
-
}),
|
|
9370
|
+
}), w = vt({
|
|
9371
9371
|
context: F.context,
|
|
9372
9372
|
values: i,
|
|
9373
9373
|
fields: {}
|
|
9374
9374
|
}), E = F.domain ? await D.getHandler().evalDomain({
|
|
9375
9375
|
domain: F.domain,
|
|
9376
9376
|
values: i,
|
|
9377
|
-
context: { ...o, ...
|
|
9377
|
+
context: { ...o, ...w }
|
|
9378
9378
|
}) : [], {
|
|
9379
9379
|
res_model: P,
|
|
9380
9380
|
views: M,
|
|
@@ -9394,7 +9394,7 @@ function pd(t, e) {
|
|
|
9394
9394
|
model: P,
|
|
9395
9395
|
type: L,
|
|
9396
9396
|
id: k,
|
|
9397
|
-
context: { ...o, ...
|
|
9397
|
+
context: { ...o, ...w }
|
|
9398
9398
|
});
|
|
9399
9399
|
U.push([ee, L]);
|
|
9400
9400
|
}
|
|
@@ -9408,7 +9408,7 @@ function pd(t, e) {
|
|
|
9408
9408
|
const Y = { id: ne, type: X };
|
|
9409
9409
|
I({
|
|
9410
9410
|
domain: E,
|
|
9411
|
-
context: { ...o, ...
|
|
9411
|
+
context: { ...o, ...w },
|
|
9412
9412
|
model: P,
|
|
9413
9413
|
views: U,
|
|
9414
9414
|
title: j,
|
|
@@ -9447,7 +9447,7 @@ function pd(t, e) {
|
|
|
9447
9447
|
title: x,
|
|
9448
9448
|
target: S,
|
|
9449
9449
|
initialView: F,
|
|
9450
|
-
action_id:
|
|
9450
|
+
action_id: w,
|
|
9451
9451
|
action_type: E,
|
|
9452
9452
|
res_id: P,
|
|
9453
9453
|
values: M,
|
|
@@ -9469,7 +9469,7 @@ function pd(t, e) {
|
|
|
9469
9469
|
formView: R,
|
|
9470
9470
|
context: { ...o, ...O },
|
|
9471
9471
|
actionData: {
|
|
9472
|
-
action_id:
|
|
9472
|
+
action_id: w,
|
|
9473
9473
|
action_type: E,
|
|
9474
9474
|
res_id: P,
|
|
9475
9475
|
view_id: R.view_id
|
|
@@ -9480,13 +9480,13 @@ function pd(t, e) {
|
|
|
9480
9480
|
p({
|
|
9481
9481
|
title: x,
|
|
9482
9482
|
action: {
|
|
9483
|
-
id:
|
|
9483
|
+
id: w,
|
|
9484
9484
|
type: E
|
|
9485
9485
|
},
|
|
9486
9486
|
content: /* @__PURE__ */ n(
|
|
9487
9487
|
Vo,
|
|
9488
9488
|
{
|
|
9489
|
-
action_id:
|
|
9489
|
+
action_id: w,
|
|
9490
9490
|
action_type: E,
|
|
9491
9491
|
tabKey: K,
|
|
9492
9492
|
title: x,
|
|
@@ -9510,7 +9510,7 @@ function pd(t, e) {
|
|
|
9510
9510
|
return /* @__PURE__ */ n(es, { lang: s, children: /* @__PURE__ */ n(
|
|
9511
9511
|
ma,
|
|
9512
9512
|
{
|
|
9513
|
-
openShortcut:
|
|
9513
|
+
openShortcut: v,
|
|
9514
9514
|
openAction: I,
|
|
9515
9515
|
openRelate: y,
|
|
9516
9516
|
openDefaultActionForModel: T,
|
|
@@ -9536,7 +9536,7 @@ function pd(t, e) {
|
|
|
9536
9536
|
}
|
|
9537
9537
|
) });
|
|
9538
9538
|
}
|
|
9539
|
-
const nu =
|
|
9539
|
+
const nu = wt(pd), { useToken: gd } = Pe;
|
|
9540
9540
|
function yd(t) {
|
|
9541
9541
|
const { label: e, onClose: r, tabKey: i, isActive: o, onSelected: s } = t, { token: a } = gd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
9542
9542
|
return /* @__PURE__ */ V(
|
|
@@ -9624,7 +9624,7 @@ function ru() {
|
|
|
9624
9624
|
s.key
|
|
9625
9625
|
)) });
|
|
9626
9626
|
}
|
|
9627
|
-
function
|
|
9627
|
+
function vd(t) {
|
|
9628
9628
|
const { tab: e } = t, r = H(
|
|
9629
9629
|
dt
|
|
9630
9630
|
), { activeKey: i } = r || {}, o = {
|
|
@@ -9632,11 +9632,11 @@ function wd(t) {
|
|
|
9632
9632
|
};
|
|
9633
9633
|
return /* @__PURE__ */ n("div", { style: e.key !== i ? o : void 0, children: e.content });
|
|
9634
9634
|
}
|
|
9635
|
-
const
|
|
9635
|
+
const wd = Qe.memo(vd, () => !0);
|
|
9636
9636
|
function ou() {
|
|
9637
9637
|
const t = H(
|
|
9638
9638
|
dt
|
|
9639
|
-
), { tabs: e } = t || {}, r = (e == null ? void 0 : e.map((i) => /* @__PURE__ */ n(
|
|
9639
|
+
), { tabs: e } = t || {}, r = (e == null ? void 0 : e.map((i) => /* @__PURE__ */ n(wd, { tab: i }, i.key))) || null;
|
|
9640
9640
|
return /* @__PURE__ */ n(Q, { children: r });
|
|
9641
9641
|
}
|
|
9642
9642
|
const { useToken: bd } = Pe, iu = (t) => {
|
|
@@ -9645,7 +9645,7 @@ const { useToken: bd } = Pe, iu = (t) => {
|
|
|
9645
9645
|
onCheckIsFavourite: r,
|
|
9646
9646
|
onAddFavourite: i,
|
|
9647
9647
|
onRemoveFavourite: o
|
|
9648
|
-
} = t, [s, a] = b(!1), [l, d] = b(!1), [u, c] = b([]), [f, m] = b(!0), [g, h] = b(), { t: p } = H(he) || {}, { token: y } = bd(),
|
|
9648
|
+
} = t, [s, a] = b(!1), [l, d] = b(!1), [u, c] = b([]), [f, m] = b(!0), [g, h] = b(), { t: p } = H(he) || {}, { token: y } = bd(), v = H(
|
|
9649
9649
|
dt
|
|
9650
9650
|
), {
|
|
9651
9651
|
openShortcut: T,
|
|
@@ -9654,11 +9654,11 @@ const { useToken: bd } = Pe, iu = (t) => {
|
|
|
9654
9654
|
currentView: O,
|
|
9655
9655
|
currentId: _,
|
|
9656
9656
|
openDefaultActionForModel: A
|
|
9657
|
-
} =
|
|
9657
|
+
} = v || {};
|
|
9658
9658
|
me(() => {
|
|
9659
9659
|
x();
|
|
9660
9660
|
}, []), me(() => {
|
|
9661
|
-
|
|
9661
|
+
w();
|
|
9662
9662
|
}, [I, C, O, _]);
|
|
9663
9663
|
async function x() {
|
|
9664
9664
|
try {
|
|
@@ -9678,7 +9678,7 @@ const { useToken: bd } = Pe, iu = (t) => {
|
|
|
9678
9678
|
function F(N) {
|
|
9679
9679
|
N && x(), d(N);
|
|
9680
9680
|
}
|
|
9681
|
-
async function
|
|
9681
|
+
async function w() {
|
|
9682
9682
|
if (!O)
|
|
9683
9683
|
return;
|
|
9684
9684
|
const N = I.find((X) => X.key === C), { id: B, type: K } = (N == null ? void 0 : N.action) || {};
|
|
@@ -9721,7 +9721,7 @@ const { useToken: bd } = Pe, iu = (t) => {
|
|
|
9721
9721
|
) }, N.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
|
|
9722
9722
|
] });
|
|
9723
9723
|
function M({ title: N, type: B }) {
|
|
9724
|
-
return /* @__PURE__ */ V(
|
|
9724
|
+
return /* @__PURE__ */ V(we, { wrap: !1, children: [
|
|
9725
9725
|
/* @__PURE__ */ n(ae, { flex: "none", style: { paddingRight: 20 }, children: B === "tree" ? /* @__PURE__ */ n(qn, {}) : /* @__PURE__ */ n(Kt, {}) }),
|
|
9726
9726
|
/* @__PURE__ */ n(ae, { flex: "auto", children: N })
|
|
9727
9727
|
] });
|
|
@@ -9787,7 +9787,7 @@ export {
|
|
|
9787
9787
|
gc as ActionBar,
|
|
9788
9788
|
Vo as ActionView,
|
|
9789
9789
|
cc as Binary,
|
|
9790
|
-
|
|
9790
|
+
ws as Boolean,
|
|
9791
9791
|
Xr as Button,
|
|
9792
9792
|
os as ButtonGroup,
|
|
9793
9793
|
to as Char,
|
|
@@ -9802,7 +9802,7 @@ export {
|
|
|
9802
9802
|
Kc as DashboardGridItem,
|
|
9803
9803
|
nc as Date,
|
|
9804
9804
|
rc as DateTime,
|
|
9805
|
-
|
|
9805
|
+
wc as Email,
|
|
9806
9806
|
tc as ExportModal,
|
|
9807
9807
|
iu as FavouriteButton,
|
|
9808
9808
|
mo as Float,
|
|
@@ -9824,8 +9824,8 @@ export {
|
|
|
9824
9824
|
sc as Reference,
|
|
9825
9825
|
nu as RootView,
|
|
9826
9826
|
ho as SearchFilter,
|
|
9827
|
-
|
|
9828
|
-
|
|
9827
|
+
wo as SearchModal,
|
|
9828
|
+
vo as SearchTree,
|
|
9829
9829
|
no as Selection,
|
|
9830
9830
|
Gl as Separator,
|
|
9831
9831
|
nd as Steps,
|
|
@@ -9837,7 +9837,7 @@ export {
|
|
|
9837
9837
|
jl as Text,
|
|
9838
9838
|
oc as Time,
|
|
9839
9839
|
pn as Tree,
|
|
9840
|
-
|
|
9840
|
+
vc as Url,
|
|
9841
9841
|
ct as iconMapper,
|
|
9842
9842
|
qt as showConfirmDialog
|
|
9843
9843
|
};
|