@gisce/react-ooui 1.2.12-rc.0 → 1.2.12
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/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/hooks/useSearch.d.ts.map +1 -1
- package/dist/react-ooui.es.js +406 -412
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +9 -9
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/TreeActionBar.tsx +1 -8
- package/src/hooks/useSearch.ts +0 -1
- package/src/widgets/views/SearchTree.tsx +1 -1
- package/src/widgets/views/Tree.tsx +12 -12
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import ze, { useContext as W, useState as T, useEffect as pe, useRef as ue, useCallback as
|
|
2
|
-
import { Tooltip as mt, theme as Pe, Typography as an, Form as nt, Row as Se, Col as le, Modal as We, Button as Oe, Dropdown as Bt, Menu as He, Spin as
|
|
3
|
-
import { Label as
|
|
1
|
+
import ze, { useContext as W, useState as T, useEffect as pe, useRef as ue, useCallback as Ee, forwardRef as vt, useImperativeHandle as wt } from "react";
|
|
2
|
+
import { Tooltip as mt, theme as Pe, Typography as an, Form as nt, Row as Se, Col as le, Modal as We, Button as Oe, Dropdown as Bt, Menu as He, Spin as $e, Divider as ln, Space as Ke, Input as et, Select as bt, Checkbox as Nt, Alert as Je, Timeline as tr, Statistic as Xo, Card as Qo, Tag as Ir, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ei, Avatar as ti, Pagination as ni, Tabs as Vr, Popover as ri, Radio as nr, Switch as oi, Steps as rr, Layout as ii } from "antd";
|
|
3
|
+
import { Label as Dt, Field as _n, Tree as Ar, Reference as si, Selection as $n, Many2one as Rr, Boolean as ai, Container as li, parseContext as yt, Form as kr, Integer as In, SearchFieldTypes as ut, SearchFilter as ci, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as di } from "@gisce/ooui";
|
|
4
4
|
import * as or from "@ant-design/icons";
|
|
5
|
-
import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as ht, LoadingOutlined as tt, DownOutlined as
|
|
5
|
+
import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as ht, LoadingOutlined as tt, DownOutlined as Vt, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as At, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as ui, SearchOutlined as Bn, RightCircleOutlined as fi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as mi, MinusSquareOutlined as hi, FileAddOutlined as cn, AlignLeftOutlined as pi, ApiOutlined as gi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as yi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as vi, CalendarOutlined as wi, LinkOutlined as Wr, SaveOutlined as bi, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as xi, BorderOuterOutlined as Ci, SettingOutlined as Si, ExportOutlined as Ti } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
7
|
-
import { jsxs as
|
|
7
|
+
import { jsxs as H, jsx as n, Fragment as ee } from "react/jsx-runtime";
|
|
8
8
|
import * as ir from "@tabler/icons-react";
|
|
9
9
|
import Fi from "antd/lib/input/TextArea";
|
|
10
10
|
import Kt from "styled-components";
|
|
11
11
|
import qn from "react-measure";
|
|
12
12
|
import Dn from "antd/lib/typography/Title";
|
|
13
13
|
import { Line as Oi, Column as _i, Pie as Ii } from "@ant-design/plots";
|
|
14
|
-
import
|
|
14
|
+
import xt from "use-deep-compare-effect";
|
|
15
15
|
import { Table as Di } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as Vi } from "file-type-buffer-browser";
|
|
17
17
|
import { isPresetStatusColor as Ai } from "antd/lib/_util/colors";
|
|
@@ -48,7 +48,7 @@ const {
|
|
|
48
48
|
} = t, f = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
49
49
|
token: v
|
|
50
50
|
} = Yi(), p = l === void 0 ? ji : Ki;
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ H("div", {
|
|
52
52
|
className: `flex flex-row items-center pb-1 pt-1 ${Wi[m]}`,
|
|
53
53
|
children: [s && /* @__PURE__ */ n(mt, {
|
|
54
54
|
title: s,
|
|
@@ -382,7 +382,7 @@ function ve({
|
|
|
382
382
|
if (!o)
|
|
383
383
|
return p();
|
|
384
384
|
const h = /* @__PURE__ */ n(un, {
|
|
385
|
-
ooui: new
|
|
385
|
+
ooui: new Dt({
|
|
386
386
|
name: c + "_label",
|
|
387
387
|
string: f,
|
|
388
388
|
help: d,
|
|
@@ -390,7 +390,7 @@ function ve({
|
|
|
390
390
|
}),
|
|
391
391
|
align: s
|
|
392
392
|
});
|
|
393
|
-
return r === "horizontal" ? (() => /* @__PURE__ */
|
|
393
|
+
return r === "horizontal" ? (() => /* @__PURE__ */ H(Se, {
|
|
394
394
|
align: "middle",
|
|
395
395
|
className: "pb-1 pt-1",
|
|
396
396
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -404,7 +404,7 @@ function ve({
|
|
|
404
404
|
flex: "auto",
|
|
405
405
|
children: p()
|
|
406
406
|
})]
|
|
407
|
-
}))() : (() => /* @__PURE__ */
|
|
407
|
+
}))() : (() => /* @__PURE__ */ H(ee, {
|
|
408
408
|
children: [h, p()]
|
|
409
409
|
}))();
|
|
410
410
|
}
|
|
@@ -701,10 +701,10 @@ const Jr = (e) => {
|
|
|
701
701
|
ooui: new _n({
|
|
702
702
|
ooui: t
|
|
703
703
|
}),
|
|
704
|
-
children: /* @__PURE__ */
|
|
704
|
+
children: /* @__PURE__ */ H(Bt.Button, {
|
|
705
705
|
disabled: !a || v,
|
|
706
706
|
onClick: V,
|
|
707
|
-
icon: /* @__PURE__ */ n(
|
|
707
|
+
icon: /* @__PURE__ */ n(Vt, {}),
|
|
708
708
|
type: f ? "primary" : void 0,
|
|
709
709
|
overlay: /* @__PURE__ */ n(ts, {
|
|
710
710
|
ooui: i,
|
|
@@ -897,7 +897,7 @@ const Zr = (e) => {
|
|
|
897
897
|
y.current = b, g(b);
|
|
898
898
|
}
|
|
899
899
|
function V() {
|
|
900
|
-
return c.map((x, b) => /* @__PURE__ */
|
|
900
|
+
return c.map((x, b) => /* @__PURE__ */ H(Se, {
|
|
901
901
|
style: {
|
|
902
902
|
paddingBottom: 20
|
|
903
903
|
},
|
|
@@ -944,17 +944,17 @@ const Zr = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return d ? /* @__PURE__ */ n(
|
|
947
|
+
return d ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
|
|
948
948
|
children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
|
|
949
949
|
justify: "end",
|
|
950
|
-
children: /* @__PURE__ */
|
|
950
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
951
951
|
children: [/* @__PURE__ */ n(Oe, {
|
|
952
952
|
icon: /* @__PURE__ */ n(jt, {}),
|
|
953
953
|
onClick: r,
|
|
954
954
|
disabled: v,
|
|
955
955
|
children: u("cancel")
|
|
956
956
|
}), /* @__PURE__ */ n(Oe, {
|
|
957
|
-
icon: v ? /* @__PURE__ */ n(tt, {}) : /* @__PURE__ */ n(
|
|
957
|
+
icon: v ? /* @__PURE__ */ n(tt, {}) : /* @__PURE__ */ n(At, {}),
|
|
958
958
|
disabled: v,
|
|
959
959
|
onClick: I,
|
|
960
960
|
style: {
|
|
@@ -1053,7 +1053,7 @@ const {
|
|
|
1053
1053
|
} = o || {}, [f, d] = T(!1), {
|
|
1054
1054
|
t: m
|
|
1055
1055
|
} = W(we);
|
|
1056
|
-
return s ? /* @__PURE__ */
|
|
1056
|
+
return s ? /* @__PURE__ */ H(ee, {
|
|
1057
1057
|
children: [/* @__PURE__ */ n("div", {
|
|
1058
1058
|
onClick: () => {
|
|
1059
1059
|
if (u != null && u()) {
|
|
@@ -1089,7 +1089,7 @@ const {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
})]
|
|
1091
1091
|
}) : /* @__PURE__ */ n(ee, {
|
|
1092
|
-
children: /* @__PURE__ */
|
|
1092
|
+
children: /* @__PURE__ */ H(Se, {
|
|
1093
1093
|
gutter: 8,
|
|
1094
1094
|
wrap: !1,
|
|
1095
1095
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -1121,7 +1121,7 @@ const {
|
|
|
1121
1121
|
defaultSeed: cs
|
|
1122
1122
|
} = Pe, ds = ls(cs), {
|
|
1123
1123
|
Option: us
|
|
1124
|
-
} =
|
|
1124
|
+
} = bt, eo = (e) => {
|
|
1125
1125
|
const {
|
|
1126
1126
|
ooui: t
|
|
1127
1127
|
} = e, {
|
|
@@ -1151,7 +1151,7 @@ const {
|
|
|
1151
1151
|
children: m
|
|
1152
1152
|
}, d);
|
|
1153
1153
|
});
|
|
1154
|
-
return /* @__PURE__ */ n(a && !s ? fs :
|
|
1154
|
+
return /* @__PURE__ */ n(a && !s ? fs : bt, {
|
|
1155
1155
|
disabled: s,
|
|
1156
1156
|
onChange: r,
|
|
1157
1157
|
value: i,
|
|
@@ -1160,7 +1160,7 @@ const {
|
|
|
1160
1160
|
showSearch: !0,
|
|
1161
1161
|
children: u
|
|
1162
1162
|
});
|
|
1163
|
-
}, fs = Kt(
|
|
1163
|
+
}, fs = Kt(bt)`
|
|
1164
1164
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1165
1165
|
background-color: ${ds.colorPrimaryBg};
|
|
1166
1166
|
}
|
|
@@ -1223,16 +1223,16 @@ var Ds = Is, Vs = Ds, As = /^\s+/;
|
|
|
1223
1223
|
function Rs(e) {
|
|
1224
1224
|
return e && e.slice(0, Vs(e) + 1).replace(As, "");
|
|
1225
1225
|
}
|
|
1226
|
-
var ks = Rs, Ms = ro, Es = Ms.Symbol, oo = Es, dr = oo, io = Object.prototype, $s = io.hasOwnProperty, Ls = io.toString,
|
|
1226
|
+
var ks = Rs, Ms = ro, Es = Ms.Symbol, oo = Es, dr = oo, io = Object.prototype, $s = io.hasOwnProperty, Ls = io.toString, Et = dr ? dr.toStringTag : void 0;
|
|
1227
1227
|
function Ns(e) {
|
|
1228
|
-
var t = $s.call(e,
|
|
1228
|
+
var t = $s.call(e, Et), r = e[Et];
|
|
1229
1229
|
try {
|
|
1230
|
-
e[
|
|
1230
|
+
e[Et] = void 0;
|
|
1231
1231
|
var i = !0;
|
|
1232
1232
|
} catch {
|
|
1233
1233
|
}
|
|
1234
1234
|
var o = Ls.call(e);
|
|
1235
|
-
return i && (t ? e[
|
|
1235
|
+
return i && (t ? e[Et] = r : delete e[Et]), o;
|
|
1236
1236
|
}
|
|
1237
1237
|
var Ps = Ns, Hs = Object.prototype, Bs = Hs.toString;
|
|
1238
1238
|
function js(e) {
|
|
@@ -1319,7 +1319,7 @@ function ya(e) {
|
|
|
1319
1319
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1320
1320
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1321
1321
|
}
|
|
1322
|
-
async function
|
|
1322
|
+
async function It(e) {
|
|
1323
1323
|
const t = await Vi(
|
|
1324
1324
|
Buffer.from(e, "base64")
|
|
1325
1325
|
);
|
|
@@ -1365,7 +1365,7 @@ const va = (e) => {
|
|
|
1365
1365
|
i == null || i(d);
|
|
1366
1366
|
};
|
|
1367
1367
|
async function u() {
|
|
1368
|
-
const d = await
|
|
1368
|
+
const d = await It(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
|
|
1369
1369
|
v.href = m, v.download = `image.${d == null ? void 0 : d.ext}`, v.click();
|
|
1370
1370
|
}
|
|
1371
1371
|
async function c(d) {
|
|
@@ -1376,8 +1376,8 @@ const va = (e) => {
|
|
|
1376
1376
|
function f() {
|
|
1377
1377
|
l(void 0);
|
|
1378
1378
|
}
|
|
1379
|
-
return /* @__PURE__ */
|
|
1380
|
-
children: [/* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ H(ee, {
|
|
1380
|
+
children: [/* @__PURE__ */ H(Se, {
|
|
1381
1381
|
gutter: 8,
|
|
1382
1382
|
wrap: !1,
|
|
1383
1383
|
justify: "center",
|
|
@@ -1401,7 +1401,7 @@ const va = (e) => {
|
|
|
1401
1401
|
wrap: !1,
|
|
1402
1402
|
justify: "center",
|
|
1403
1403
|
className: "pt-5",
|
|
1404
|
-
children: /* @__PURE__ */
|
|
1404
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
1405
1405
|
children: [/* @__PURE__ */ n(qe, {
|
|
1406
1406
|
tooltip: a("uploadNewImage"),
|
|
1407
1407
|
icon: /* @__PURE__ */ n(Nn, {}),
|
|
@@ -1452,7 +1452,7 @@ const va = (e) => {
|
|
|
1452
1452
|
r && r(i);
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
},
|
|
1455
|
+
}, Ft = (e) => {
|
|
1456
1456
|
const t = e.arch, r = e.fields, i = new Ar(r);
|
|
1457
1457
|
return i.parse(t), i;
|
|
1458
1458
|
}, Ca = (e, t, r) => e.columns.map((o) => {
|
|
@@ -1492,7 +1492,7 @@ function Qt(e) {
|
|
|
1492
1492
|
t[r.id] = r.colors;
|
|
1493
1493
|
}), t;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Ot({
|
|
1496
1496
|
resultsToSort: e,
|
|
1497
1497
|
sorter: t,
|
|
1498
1498
|
fields: r
|
|
@@ -1523,7 +1523,7 @@ const zn = async (e) => {
|
|
|
1523
1523
|
};
|
|
1524
1524
|
let f = [], d;
|
|
1525
1525
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1526
|
-
const h = (p =
|
|
1526
|
+
const h = (p = Ft(o)) == null ? void 0 : p.colors, g = await B.getHandler().readEvalUiObjects({
|
|
1527
1527
|
model: r,
|
|
1528
1528
|
ids: u,
|
|
1529
1529
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1579,7 +1579,7 @@ const zn = async (e) => {
|
|
|
1579
1579
|
} = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = W(Le), {
|
|
1580
1580
|
getContext: m
|
|
1581
1581
|
} = d || {};
|
|
1582
|
-
|
|
1582
|
+
xt(() => {
|
|
1583
1583
|
p();
|
|
1584
1584
|
}, [t]);
|
|
1585
1585
|
const v = async (h) => o && o[h] ? o[h] : await B.getHandler().getView({
|
|
@@ -1600,7 +1600,7 @@ const zn = async (e) => {
|
|
|
1600
1600
|
a(!1);
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
|
-
return s ? /* @__PURE__ */ n(
|
|
1603
|
+
return s ? /* @__PURE__ */ n($e, {}) : l ? /* @__PURE__ */ n(Je, {
|
|
1604
1604
|
className: "mt-10",
|
|
1605
1605
|
message: l,
|
|
1606
1606
|
type: "error",
|
|
@@ -1630,7 +1630,7 @@ const zn = async (e) => {
|
|
|
1630
1630
|
} = i, _ = s.filter((x) => x.values), w = W(Le), {
|
|
1631
1631
|
getContext: V
|
|
1632
1632
|
} = w || {};
|
|
1633
|
-
|
|
1633
|
+
xt(() => {
|
|
1634
1634
|
E();
|
|
1635
1635
|
}, [s]);
|
|
1636
1636
|
const I = (x) => {
|
|
@@ -1669,7 +1669,7 @@ const zn = async (e) => {
|
|
|
1669
1669
|
message: u,
|
|
1670
1670
|
type: "error",
|
|
1671
1671
|
banner: !0
|
|
1672
|
-
}) : a ? /* @__PURE__ */ n(
|
|
1672
|
+
}) : a ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
|
|
1673
1673
|
children: [/* @__PURE__ */ n(tr, {
|
|
1674
1674
|
style: {
|
|
1675
1675
|
padding: "1rem"
|
|
@@ -1677,7 +1677,7 @@ const zn = async (e) => {
|
|
|
1677
1677
|
children: _.map((x, b) => {
|
|
1678
1678
|
var O, C;
|
|
1679
1679
|
return /* @__PURE__ */ n("div", {
|
|
1680
|
-
children: /* @__PURE__ */
|
|
1680
|
+
children: /* @__PURE__ */ H(tr.Item, {
|
|
1681
1681
|
children: [/* @__PURE__ */ n("div", {
|
|
1682
1682
|
style: {
|
|
1683
1683
|
display: "inline-block",
|
|
@@ -1741,8 +1741,8 @@ const zn = async (e) => {
|
|
|
1741
1741
|
} = _a(), {
|
|
1742
1742
|
ooui: r,
|
|
1743
1743
|
value: i
|
|
1744
|
-
} = e, o = /* @__PURE__ */
|
|
1745
|
-
children: [/* @__PURE__ */
|
|
1744
|
+
} = e, o = /* @__PURE__ */ H(ee, {
|
|
1745
|
+
children: [/* @__PURE__ */ H("span", {
|
|
1746
1746
|
children: [r.label, " "]
|
|
1747
1747
|
}), r.tooltip && /* @__PURE__ */ n(mt, {
|
|
1748
1748
|
title: r.tooltip,
|
|
@@ -1779,7 +1779,7 @@ const zn = async (e) => {
|
|
|
1779
1779
|
} else
|
|
1780
1780
|
r[i] = e[i];
|
|
1781
1781
|
}), r;
|
|
1782
|
-
},
|
|
1782
|
+
}, Tt = (e, t) => Va(e, t), Sn = ({
|
|
1783
1783
|
source: e,
|
|
1784
1784
|
target: t,
|
|
1785
1785
|
fields: r
|
|
@@ -1874,7 +1874,7 @@ const zn = async (e) => {
|
|
|
1874
1874
|
function gr(e, t, r) {
|
|
1875
1875
|
return r.indexOf(e) === t;
|
|
1876
1876
|
}
|
|
1877
|
-
const
|
|
1877
|
+
const Rt = ({
|
|
1878
1878
|
values: e,
|
|
1879
1879
|
fields: t
|
|
1880
1880
|
}) => {
|
|
@@ -1945,7 +1945,7 @@ const kt = ({
|
|
|
1945
1945
|
} = r, g = W(Le), {
|
|
1946
1946
|
getContext: y
|
|
1947
1947
|
} = g || {};
|
|
1948
|
-
|
|
1948
|
+
xt(() => {
|
|
1949
1949
|
_();
|
|
1950
1950
|
}, [o]);
|
|
1951
1951
|
const F = (I) => {
|
|
@@ -1960,7 +1960,7 @@ const kt = ({
|
|
|
1960
1960
|
if (p && (I = [["id", "in", s]]), r.domain) {
|
|
1961
1961
|
const b = await B.getHandler().evalDomain({
|
|
1962
1962
|
domain: r.domain,
|
|
1963
|
-
values:
|
|
1963
|
+
values: Rt({
|
|
1964
1964
|
fields: g == null ? void 0 : g.getFields(),
|
|
1965
1965
|
values: g.getPlainValues()
|
|
1966
1966
|
}),
|
|
@@ -2034,7 +2034,7 @@ const kt = ({
|
|
|
2034
2034
|
}) : /* @__PURE__ */ n(ee, {
|
|
2035
2035
|
children: /* @__PURE__ */ n("div", {
|
|
2036
2036
|
className: "flex flex-row",
|
|
2037
|
-
children: /* @__PURE__ */ n(
|
|
2037
|
+
children: /* @__PURE__ */ n(bt, {
|
|
2038
2038
|
mode: "multiple",
|
|
2039
2039
|
value: a.length ? s : [],
|
|
2040
2040
|
tagRender: V,
|
|
@@ -2155,14 +2155,14 @@ const kt = ({
|
|
|
2155
2155
|
if (i.push(a), s(l)) {
|
|
2156
2156
|
const u = r - o;
|
|
2157
2157
|
for (let c = 0; c < u; c += 1)
|
|
2158
|
-
i.push(new
|
|
2158
|
+
i.push(new Dt({ string: "" }));
|
|
2159
2159
|
}
|
|
2160
2160
|
}), i;
|
|
2161
2161
|
}, ja = ({
|
|
2162
2162
|
row: e,
|
|
2163
2163
|
numberOfColumns: t
|
|
2164
2164
|
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ka = (e, t) => {
|
|
2165
|
-
const r = e.map((i) => i instanceof
|
|
2165
|
+
const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof li ? "auto" : "1fr");
|
|
2166
2166
|
if (r.length < t) {
|
|
2167
2167
|
const i = t - r.length;
|
|
2168
2168
|
for (let o = 0; o < i; o++)
|
|
@@ -2198,7 +2198,7 @@ const kt = ({
|
|
|
2198
2198
|
row: p,
|
|
2199
2199
|
numberOfColumns: o,
|
|
2200
2200
|
mustFillWithEmpties: r
|
|
2201
|
-
}), l = l.concat(h)), h.map((g) => (g instanceof
|
|
2201
|
+
}), l = l.concat(h)), h.map((g) => (g instanceof Dt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2202
2202
|
style: {
|
|
2203
2203
|
...Ha({
|
|
2204
2204
|
item: g,
|
|
@@ -2365,9 +2365,9 @@ const kt = ({
|
|
|
2365
2365
|
setLimit: V,
|
|
2366
2366
|
searchParams: I = [],
|
|
2367
2367
|
setSearchValues: E
|
|
2368
|
-
} = e, [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T(1), [M, D] = T(0), [N, k] = T(), [j, q] = T([]), [K, J] = T(void 0), U = ue(w || Ht), L = ue([]),
|
|
2368
|
+
} = e, [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T(1), [M, D] = T(0), [N, k] = T(), [j, q] = T([]), [K, J] = T(void 0), U = ue(w || Ht), L = ue([]), P = Ee((de) => {
|
|
2369
2369
|
g == null || g([...de]), q([...de]);
|
|
2370
|
-
}, []), z =
|
|
2370
|
+
}, []), z = Ee(() => y || j, [y, j]), oe = Ee(async () => {
|
|
2371
2371
|
const de = await B.getHandler().nameSearch({
|
|
2372
2372
|
model: t,
|
|
2373
2373
|
payload: l,
|
|
@@ -2376,7 +2376,7 @@ const kt = ({
|
|
|
2376
2376
|
context: c
|
|
2377
2377
|
});
|
|
2378
2378
|
if (k(de.length), f == null || f(de.length), de.length > 0) {
|
|
2379
|
-
const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } =
|
|
2379
|
+
const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ft(d), Re = await B.getHandler().readEvalUiObjects({
|
|
2380
2380
|
model: t,
|
|
2381
2381
|
ids: se,
|
|
2382
2382
|
arch: d == null ? void 0 : d.arch,
|
|
@@ -2387,17 +2387,17 @@ const kt = ({
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}), Te = Re[0];
|
|
2389
2389
|
L.current = [...Te], J(Qt(Re[1]));
|
|
2390
|
-
const
|
|
2390
|
+
const Me = Te.map((Be) => Be.id), Ze = v !== void 0 ? Ot({
|
|
2391
2391
|
resultsToSort: Te,
|
|
2392
2392
|
sorter: v,
|
|
2393
2393
|
fields: { ...d.fields, ...m.fields }
|
|
2394
2394
|
}) : [...L.current];
|
|
2395
|
-
|
|
2395
|
+
P(Ze), Me.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2396
2396
|
} else
|
|
2397
|
-
|
|
2397
|
+
P([]), h == null || h(void 0);
|
|
2398
2398
|
b(!1), u.current = !0;
|
|
2399
2399
|
}, [
|
|
2400
|
-
|
|
2400
|
+
P,
|
|
2401
2401
|
u,
|
|
2402
2402
|
l,
|
|
2403
2403
|
t,
|
|
@@ -2408,9 +2408,9 @@ const kt = ({
|
|
|
2408
2408
|
v,
|
|
2409
2409
|
h,
|
|
2410
2410
|
f
|
|
2411
|
-
]), ce =
|
|
2411
|
+
]), ce = Ee(
|
|
2412
2412
|
async (de) => {
|
|
2413
|
-
const { params: se, newOffset: be } = de || {}, Re = hn(se || I, F), { colors: Te } =
|
|
2413
|
+
const { params: se, newOffset: be } = de || {}, Re = hn(se || I, F), { colors: Te } = Ft(d), { totalItems: Me, results: Ze, attrsEvaluated: Be } = await B.getHandler().searchForTree({
|
|
2414
2414
|
params: Re,
|
|
2415
2415
|
limit: U.current,
|
|
2416
2416
|
offset: be || M,
|
|
@@ -2420,12 +2420,12 @@ const kt = ({
|
|
|
2420
2420
|
attrs: Te && { colors: Te }
|
|
2421
2421
|
});
|
|
2422
2422
|
J(Qt(Be)), L.current = [...Ze];
|
|
2423
|
-
const te = v !== void 0 ?
|
|
2423
|
+
const te = v !== void 0 ? Ot({
|
|
2424
2424
|
resultsToSort: Ze,
|
|
2425
2425
|
sorter: v,
|
|
2426
2426
|
fields: { ...d.fields, ...m.fields }
|
|
2427
2427
|
}) : [...L.current];
|
|
2428
|
-
if (
|
|
2428
|
+
if (P(te), y && te.length > 0) {
|
|
2429
2429
|
const Ne = te.findIndex(
|
|
2430
2430
|
(ye) => _ === ye.id
|
|
2431
2431
|
);
|
|
@@ -2433,13 +2433,13 @@ const kt = ({
|
|
|
2433
2433
|
} else
|
|
2434
2434
|
h == null || h(void 0);
|
|
2435
2435
|
b(!1);
|
|
2436
|
-
const Ie = await
|
|
2436
|
+
const Ie = await Me;
|
|
2437
2437
|
k(Ie), f == null || f(Ie);
|
|
2438
2438
|
},
|
|
2439
2439
|
[
|
|
2440
2440
|
h,
|
|
2441
2441
|
y,
|
|
2442
|
-
|
|
2442
|
+
P,
|
|
2443
2443
|
_,
|
|
2444
2444
|
t,
|
|
2445
2445
|
c,
|
|
@@ -2452,7 +2452,7 @@ const kt = ({
|
|
|
2452
2452
|
M,
|
|
2453
2453
|
I
|
|
2454
2454
|
]
|
|
2455
|
-
), Z =
|
|
2455
|
+
), Z = Ee(
|
|
2456
2456
|
async (de) => {
|
|
2457
2457
|
try {
|
|
2458
2458
|
b(!0), a == null || a(!0), l && !u.current ? await oe() : await ce(de);
|
|
@@ -2475,7 +2475,7 @@ const kt = ({
|
|
|
2475
2475
|
u,
|
|
2476
2476
|
f,
|
|
2477
2477
|
h,
|
|
2478
|
-
|
|
2478
|
+
P,
|
|
2479
2479
|
R,
|
|
2480
2480
|
C,
|
|
2481
2481
|
b,
|
|
@@ -2483,20 +2483,18 @@ const kt = ({
|
|
|
2483
2483
|
v,
|
|
2484
2484
|
d
|
|
2485
2485
|
]
|
|
2486
|
-
), X =
|
|
2486
|
+
), X = Ee(
|
|
2487
2487
|
(de) => {
|
|
2488
|
-
if (JSON.stringify(de) === JSON.stringify(v))
|
|
2489
|
-
return;
|
|
2490
2488
|
p == null || p(de);
|
|
2491
|
-
const se = de !== void 0 ?
|
|
2489
|
+
const se = de !== void 0 ? Ot({
|
|
2492
2490
|
resultsToSort: z(),
|
|
2493
2491
|
sorter: de,
|
|
2494
2492
|
fields: { ...d.fields, ...m.fields }
|
|
2495
2493
|
}) : [...L.current];
|
|
2496
|
-
|
|
2494
|
+
P(se);
|
|
2497
2495
|
},
|
|
2498
|
-
[p, z, d, m,
|
|
2499
|
-
), fe =
|
|
2496
|
+
[p, z, d, m, P]
|
|
2497
|
+
), fe = Ee(
|
|
2500
2498
|
(de) => {
|
|
2501
2499
|
const { params: se, searchValues: be, limit: Re, offset: Te } = de;
|
|
2502
2500
|
x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(se), s == null || s(!1), C(!0), R(void 0), A(1), Re && (U.current = Re, V == null || V(Re)), Te && D(Te), Z({
|
|
@@ -2517,12 +2515,12 @@ const kt = ({
|
|
|
2517
2515
|
D,
|
|
2518
2516
|
Z
|
|
2519
2517
|
]
|
|
2520
|
-
), xe =
|
|
2518
|
+
), xe = Ee(
|
|
2521
2519
|
(de) => {
|
|
2522
2520
|
b(!0), A(de), D((de - 1) * w);
|
|
2523
2521
|
},
|
|
2524
2522
|
[b, w, D, A]
|
|
2525
|
-
),
|
|
2523
|
+
), ke = Ee(() => {
|
|
2526
2524
|
x || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), D(0), A(1), V == null || V(w || Ht));
|
|
2527
2525
|
}, [
|
|
2528
2526
|
x,
|
|
@@ -2533,7 +2531,7 @@ const kt = ({
|
|
|
2533
2531
|
A,
|
|
2534
2532
|
V,
|
|
2535
2533
|
w
|
|
2536
|
-
]), _e =
|
|
2534
|
+
]), _e = Ee(
|
|
2537
2535
|
async (de) => {
|
|
2538
2536
|
const se = de[(d == null ? void 0 : d.field_parent) || "child_id"], be = await B.getHandler().readObjects({
|
|
2539
2537
|
model: t,
|
|
@@ -2541,13 +2539,13 @@ const kt = ({
|
|
|
2541
2539
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
2542
2540
|
context: c
|
|
2543
2541
|
});
|
|
2544
|
-
return
|
|
2542
|
+
return P([...z(), ...be]), ao(Ft(d), be);
|
|
2545
2543
|
},
|
|
2546
|
-
[d, t, c, z,
|
|
2544
|
+
[d, t, c, z, P]
|
|
2547
2545
|
);
|
|
2548
2546
|
return {
|
|
2549
2547
|
submit: fe,
|
|
2550
|
-
clear:
|
|
2548
|
+
clear: ke,
|
|
2551
2549
|
fetchResults: Z,
|
|
2552
2550
|
tableRefreshing: x,
|
|
2553
2551
|
searchFilterLoading: O,
|
|
@@ -2589,7 +2587,7 @@ const kt = ({
|
|
|
2589
2587
|
setSearchTreeNameSearch: E,
|
|
2590
2588
|
goToResourceId: x,
|
|
2591
2589
|
limit: b
|
|
2592
|
-
} = e, [O, C] = T(!1), [$, R] = T(!1), [S, A] = T(!1), [M, D] = T(!0), [N, k] = T(!0), [j, q] = T([]), [K, J] = T(!1), [U, L] = T([]), [
|
|
2590
|
+
} = e, [O, C] = T(!1), [$, R] = T(!1), [S, A] = T(!1), [M, D] = T(!0), [N, k] = T(!0), [j, q] = T([]), [K, J] = T(!1), [U, L] = T([]), [P, z] = T(!1), [oe, ce] = T(!0), [Z, X] = T(), [fe, xe] = T({}), [ke, _e] = T(b !== void 0 ? b : Ht), [de, se] = T(i);
|
|
2593
2591
|
pe(() => {
|
|
2594
2592
|
m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
|
|
2595
2593
|
}, [m]), pe(() => {
|
|
@@ -2638,7 +2636,7 @@ const kt = ({
|
|
|
2638
2636
|
setDuplicatingItem: J,
|
|
2639
2637
|
setSearchParams: L,
|
|
2640
2638
|
searchParams: U,
|
|
2641
|
-
searchVisible:
|
|
2639
|
+
searchVisible: P,
|
|
2642
2640
|
setSearchVisible: z,
|
|
2643
2641
|
sorter: g,
|
|
2644
2642
|
setSorter: y,
|
|
@@ -2653,7 +2651,7 @@ const kt = ({
|
|
|
2653
2651
|
goToResourceId: x,
|
|
2654
2652
|
searchValues: fe,
|
|
2655
2653
|
setSearchValues: xe,
|
|
2656
|
-
limit:
|
|
2654
|
+
limit: ke,
|
|
2657
2655
|
setLimit: _e,
|
|
2658
2656
|
setTitle: se
|
|
2659
2657
|
},
|
|
@@ -2688,7 +2686,7 @@ const kt = ({
|
|
|
2688
2686
|
},
|
|
2689
2687
|
children: t
|
|
2690
2688
|
});
|
|
2691
|
-
},
|
|
2689
|
+
}, kt = ze.createContext(null), wr = async (e) => {
|
|
2692
2690
|
var t;
|
|
2693
2691
|
for (let r = 0; r < e.length; r++)
|
|
2694
2692
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2701,7 +2699,7 @@ const kt = ({
|
|
|
2701
2699
|
} = u || {}, f = ue([]), {
|
|
2702
2700
|
t: d
|
|
2703
2701
|
} = W(we);
|
|
2704
|
-
|
|
2702
|
+
wt(t, () => ({
|
|
2705
2703
|
openActionModal: w
|
|
2706
2704
|
}));
|
|
2707
2705
|
const [m, v] = T(!1), [p, h] = T({
|
|
@@ -2728,7 +2726,7 @@ const kt = ({
|
|
|
2728
2726
|
ids: D
|
|
2729
2727
|
} = S || {};
|
|
2730
2728
|
let N = D || [];
|
|
2731
|
-
const k = typeof $ == "string" ?
|
|
2729
|
+
const k = typeof $ == "string" ? yt({
|
|
2732
2730
|
context: $,
|
|
2733
2731
|
fields: b,
|
|
2734
2732
|
values: O
|
|
@@ -2758,7 +2756,7 @@ const kt = ({
|
|
|
2758
2756
|
id: E
|
|
2759
2757
|
}), x.state && s.current === !0) {
|
|
2760
2758
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2761
|
-
const b = await
|
|
2759
|
+
const b = await It(x.result);
|
|
2762
2760
|
mn(x.result, b.mime);
|
|
2763
2761
|
}
|
|
2764
2762
|
} catch (b) {
|
|
@@ -2801,7 +2799,7 @@ const kt = ({
|
|
|
2801
2799
|
context: O
|
|
2802
2800
|
}))[0]);
|
|
2803
2801
|
const R = {
|
|
2804
|
-
...typeof (C == null ? void 0 : C.context) == "string" ?
|
|
2802
|
+
...typeof (C == null ? void 0 : C.context) == "string" ? yt({
|
|
2805
2803
|
context: C.context,
|
|
2806
2804
|
fields: x,
|
|
2807
2805
|
values: {
|
|
@@ -2814,7 +2812,7 @@ const kt = ({
|
|
|
2814
2812
|
let S = [];
|
|
2815
2813
|
if (C.domain && (S = await B.getHandler().evalDomain({
|
|
2816
2814
|
domain: C.domain,
|
|
2817
|
-
values:
|
|
2815
|
+
values: Rt({
|
|
2818
2816
|
fields: x,
|
|
2819
2817
|
values: {
|
|
2820
2818
|
...b,
|
|
@@ -2913,12 +2911,12 @@ const kt = ({
|
|
|
2913
2911
|
});
|
|
2914
2912
|
}
|
|
2915
2913
|
return /* @__PURE__ */ n(ee, {
|
|
2916
|
-
children: /* @__PURE__ */ n(
|
|
2914
|
+
children: /* @__PURE__ */ n(kt.Provider, {
|
|
2917
2915
|
value: {
|
|
2918
2916
|
processAction: F,
|
|
2919
2917
|
globalValues: i
|
|
2920
2918
|
},
|
|
2921
|
-
children: /* @__PURE__ */
|
|
2919
|
+
children: /* @__PURE__ */ H(ee, {
|
|
2922
2920
|
children: [r, /* @__PURE__ */ n(We, {
|
|
2923
2921
|
title: d("generatingReport"),
|
|
2924
2922
|
open: a,
|
|
@@ -2926,7 +2924,7 @@ const kt = ({
|
|
|
2926
2924
|
closable: !1,
|
|
2927
2925
|
centered: !0,
|
|
2928
2926
|
maskClosable: !1,
|
|
2929
|
-
children: /* @__PURE__ */ n(
|
|
2927
|
+
children: /* @__PURE__ */ n($e, {})
|
|
2930
2928
|
}), /* @__PURE__ */ n(Gt, {
|
|
2931
2929
|
buttonModal: !0,
|
|
2932
2930
|
parentContext: p.context,
|
|
@@ -3005,7 +3003,7 @@ async function ll({
|
|
|
3005
3003
|
initialView: a
|
|
3006
3004
|
};
|
|
3007
3005
|
}
|
|
3008
|
-
const cl =
|
|
3006
|
+
const cl = vt(al), dl = ({
|
|
3009
3007
|
error: e,
|
|
3010
3008
|
className: t
|
|
3011
3009
|
}) => {
|
|
@@ -3057,22 +3055,22 @@ function fl(e, t) {
|
|
|
3057
3055
|
} = e, {
|
|
3058
3056
|
t: x,
|
|
3059
3057
|
lang: b
|
|
3060
|
-
} = W(we), [O, C] = T(!1), [$, R] = T(), [S, A] = T(), [M] = nt.useForm(), [D, N] = T(), [k, j] = T(), q = W(uo), [K, J] = T(), [U, L] = T(!1),
|
|
3061
|
-
activeId:
|
|
3058
|
+
} = W(we), [O, C] = T(!1), [$, R] = T(), [S, A] = T(), [M] = nt.useForm(), [D, N] = T(), [k, j] = T(), q = W(uo), [K, J] = T(), [U, L] = T(!1), P = ue(), z = ue({}), oe = ue({}), ce = ue(!1), Z = ue(!1), fe = (E !== void 0 ? E : K) < ul, xe = W(Le), {
|
|
3059
|
+
activeId: ke,
|
|
3062
3060
|
getPlainValues: _e
|
|
3063
3061
|
} = xe || {}, de = W(Xe), {
|
|
3064
3062
|
setFormIsSaving: se = void 0,
|
|
3065
3063
|
setFormHasChanges: be = void 0,
|
|
3066
3064
|
setCurrentId: Re = void 0,
|
|
3067
3065
|
setFormIsLoading: Te = void 0,
|
|
3068
|
-
setAttachments:
|
|
3066
|
+
setAttachments: Me = void 0,
|
|
3069
3067
|
title: Ze = void 0,
|
|
3070
3068
|
setTitle: Be = void 0
|
|
3071
|
-
} = (w ? de : {}) || {}, te = W(
|
|
3069
|
+
} = (w ? de : {}) || {}, te = W(kt), {
|
|
3072
3070
|
processAction: Ie,
|
|
3073
3071
|
globalValues: Ne
|
|
3074
3072
|
} = te || {};
|
|
3075
|
-
|
|
3073
|
+
wt(t, () => ({
|
|
3076
3074
|
submitForm: zt,
|
|
3077
3075
|
getFields: Qe,
|
|
3078
3076
|
getValues: je,
|
|
@@ -3081,15 +3079,15 @@ function fl(e, t) {
|
|
|
3081
3079
|
fetchValues: pt,
|
|
3082
3080
|
cancelUnsavedChanges: Qn,
|
|
3083
3081
|
clearAndReload: () => {
|
|
3084
|
-
|
|
3082
|
+
P.current = void 0, A(void 0), dt();
|
|
3085
3083
|
}
|
|
3086
3084
|
})), pe(() => {
|
|
3087
3085
|
if (R(void 0), !(!r && !p)) {
|
|
3088
3086
|
if (!_) {
|
|
3089
|
-
|
|
3087
|
+
P.current = void 0, A(void 0);
|
|
3090
3088
|
return;
|
|
3091
3089
|
}
|
|
3092
|
-
(i === void 0 && k || i !== void 0 && k && i < 0) && (
|
|
3090
|
+
(i === void 0 && k || i !== void 0 && k && i < 0) && (P.current = void 0, A(void 0)), dt();
|
|
3093
3091
|
}
|
|
3094
3092
|
}, [i, r, v, p, _]), pe(() => {
|
|
3095
3093
|
U && (vn({
|
|
@@ -3104,7 +3102,7 @@ function fl(e, t) {
|
|
|
3104
3102
|
se == null || se(!1), c == null || c(Y);
|
|
3105
3103
|
};
|
|
3106
3104
|
function me() {
|
|
3107
|
-
return i ||
|
|
3105
|
+
return i || P.current;
|
|
3108
3106
|
}
|
|
3109
3107
|
function Qe() {
|
|
3110
3108
|
return k;
|
|
@@ -3145,7 +3143,7 @@ function fl(e, t) {
|
|
|
3145
3143
|
id: me(),
|
|
3146
3144
|
active_id: me(),
|
|
3147
3145
|
active_ids: [me()],
|
|
3148
|
-
parent_id:
|
|
3146
|
+
parent_id: ke,
|
|
3149
3147
|
...Ne
|
|
3150
3148
|
};
|
|
3151
3149
|
}
|
|
@@ -3166,18 +3164,18 @@ function fl(e, t) {
|
|
|
3166
3164
|
fields: k
|
|
3167
3165
|
})).length !== 0, ie = (Y) => {
|
|
3168
3166
|
const G = M.getFieldsValue(!0);
|
|
3169
|
-
return
|
|
3167
|
+
return Tt(G, Y);
|
|
3170
3168
|
}, Ue = (Y, G) => {
|
|
3171
3169
|
qt({
|
|
3172
3170
|
values: {
|
|
3173
|
-
...
|
|
3171
|
+
...Tt(M.getFieldsValue(!0), k),
|
|
3174
3172
|
[Y]: G
|
|
3175
3173
|
},
|
|
3176
3174
|
fields: k,
|
|
3177
3175
|
reset: !1
|
|
3178
3176
|
});
|
|
3179
3177
|
}, st = (Y) => M.getFieldsValue(!0)[Y];
|
|
3180
|
-
async function
|
|
3178
|
+
async function Mt() {
|
|
3181
3179
|
try {
|
|
3182
3180
|
return await M.validateFields(), !1;
|
|
3183
3181
|
} catch {
|
|
@@ -3214,7 +3212,7 @@ function fl(e, t) {
|
|
|
3214
3212
|
}), F && (G = {
|
|
3215
3213
|
...ka(F),
|
|
3216
3214
|
...G
|
|
3217
|
-
}), z.current =
|
|
3215
|
+
}), z.current = Tt(G, ne), qt({
|
|
3218
3216
|
values: G,
|
|
3219
3217
|
fields: ne,
|
|
3220
3218
|
reset: !0,
|
|
@@ -3256,7 +3254,7 @@ function fl(e, t) {
|
|
|
3256
3254
|
const gt = {
|
|
3257
3255
|
...ne ? {} : M.getFieldsValue(!0),
|
|
3258
3256
|
...Y
|
|
3259
|
-
}, wn =
|
|
3257
|
+
}, wn = Tt(gt, G), Jo = Object.keys(G).map((bn) => {
|
|
3260
3258
|
const Zo = wn[bn] !== void 0 ? wn[bn] : void 0;
|
|
3261
3259
|
return {
|
|
3262
3260
|
name: bn,
|
|
@@ -3283,9 +3281,9 @@ function fl(e, t) {
|
|
|
3283
3281
|
context: ae(),
|
|
3284
3282
|
model: "ir.attachment"
|
|
3285
3283
|
});
|
|
3286
|
-
|
|
3284
|
+
Me == null || Me(Ae);
|
|
3287
3285
|
} else
|
|
3288
|
-
|
|
3286
|
+
Me == null || Me([]), ne = await he(Y), re = !0;
|
|
3289
3287
|
return {
|
|
3290
3288
|
values: ne,
|
|
3291
3289
|
defaultGetCalled: re
|
|
@@ -3326,7 +3324,7 @@ function fl(e, t) {
|
|
|
3326
3324
|
...S == null ? void 0 : S.context
|
|
3327
3325
|
}
|
|
3328
3326
|
});
|
|
3329
|
-
|
|
3327
|
+
P.current = re, z.current = ne;
|
|
3330
3328
|
}
|
|
3331
3329
|
h && await h([me()]), !g && G && (ye == null || ye(me(), je(), Q()));
|
|
3332
3330
|
}, Po = async (Y) => {
|
|
@@ -3344,14 +3342,14 @@ function fl(e, t) {
|
|
|
3344
3342
|
succeed: !0,
|
|
3345
3343
|
id: me()
|
|
3346
3344
|
};
|
|
3347
|
-
if (await
|
|
3345
|
+
if (await Mt())
|
|
3348
3346
|
return Z.current = !1, yr(b), {
|
|
3349
3347
|
succeed: !1,
|
|
3350
3348
|
id: me()
|
|
3351
3349
|
};
|
|
3352
3350
|
C(!0), se == null || se(!0);
|
|
3353
3351
|
try {
|
|
3354
|
-
m === "api" ? await No(Y) : await Po(Y), d && (
|
|
3352
|
+
m === "api" ? await No(Y) : await Po(Y), d && (P.current = void 0, qt({
|
|
3355
3353
|
values: {},
|
|
3356
3354
|
fields: k,
|
|
3357
3355
|
reset: !0
|
|
@@ -3399,7 +3397,7 @@ function fl(e, t) {
|
|
|
3399
3397
|
}) && Y !== !0)
|
|
3400
3398
|
return;
|
|
3401
3399
|
{
|
|
3402
|
-
const re =
|
|
3400
|
+
const re = Tt(M.getFieldsValue(!0), k);
|
|
3403
3401
|
oe.current = re, u == null || u(re), be == null || be(!0), Bo(ne);
|
|
3404
3402
|
}
|
|
3405
3403
|
}
|
|
@@ -3495,7 +3493,7 @@ function fl(e, t) {
|
|
|
3495
3493
|
ye == null || ye(me(), je(), Q());
|
|
3496
3494
|
else if (ne.type) {
|
|
3497
3495
|
let re = {};
|
|
3498
|
-
ne.context && (re =
|
|
3496
|
+
ne.context && (re = yt({
|
|
3499
3497
|
context: ne.context,
|
|
3500
3498
|
fields: k,
|
|
3501
3499
|
values: je()
|
|
@@ -3574,7 +3572,7 @@ function fl(e, t) {
|
|
|
3574
3572
|
Ce == null || Ce();
|
|
3575
3573
|
return;
|
|
3576
3574
|
}
|
|
3577
|
-
if (await
|
|
3575
|
+
if (await Mt()) {
|
|
3578
3576
|
yr(b);
|
|
3579
3577
|
return;
|
|
3580
3578
|
}
|
|
@@ -3594,7 +3592,7 @@ function fl(e, t) {
|
|
|
3594
3592
|
Ye(re);
|
|
3595
3593
|
}
|
|
3596
3594
|
}
|
|
3597
|
-
const qo = () => !S && !$ ? /* @__PURE__ */ n(
|
|
3595
|
+
const qo = () => !S && !$ ? /* @__PURE__ */ n($e, {}) : !r && !p || !_ ? null : /* @__PURE__ */ n(ee, {
|
|
3598
3596
|
children: /* @__PURE__ */ n(Xi, {
|
|
3599
3597
|
getValues: je,
|
|
3600
3598
|
getPlainValues: it,
|
|
@@ -3624,10 +3622,10 @@ function fl(e, t) {
|
|
|
3624
3622
|
})
|
|
3625
3623
|
})
|
|
3626
3624
|
})
|
|
3627
|
-
}), zo = () => /* @__PURE__ */
|
|
3625
|
+
}), zo = () => /* @__PURE__ */ H(ee, {
|
|
3628
3626
|
children: [/* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
|
|
3629
3627
|
justify: "end",
|
|
3630
|
-
children: /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
3631
3629
|
children: [/* @__PURE__ */ n(Oe, {
|
|
3632
3630
|
icon: /* @__PURE__ */ n(jt, {}),
|
|
3633
3631
|
disabled: O,
|
|
@@ -3638,7 +3636,7 @@ function fl(e, t) {
|
|
|
3638
3636
|
}), /* @__PURE__ */ n(Oe, {
|
|
3639
3637
|
disabled: O || f,
|
|
3640
3638
|
loading: O,
|
|
3641
|
-
icon: /* @__PURE__ */ n(
|
|
3639
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
3642
3640
|
onClick: async () => {
|
|
3643
3641
|
await zt();
|
|
3644
3642
|
},
|
|
@@ -3656,7 +3654,7 @@ function fl(e, t) {
|
|
|
3656
3654
|
},
|
|
3657
3655
|
children: ({
|
|
3658
3656
|
measureRef: Y
|
|
3659
|
-
}) => /* @__PURE__ */
|
|
3657
|
+
}) => /* @__PURE__ */ H("div", {
|
|
3660
3658
|
className: "pb-2",
|
|
3661
3659
|
ref: Y,
|
|
3662
3660
|
children: [$ && /* @__PURE__ */ n(dl, {
|
|
@@ -3666,7 +3664,7 @@ function fl(e, t) {
|
|
|
3666
3664
|
})
|
|
3667
3665
|
}) : null;
|
|
3668
3666
|
}
|
|
3669
|
-
const Ut =
|
|
3667
|
+
const Ut = vt(fl), Gt = (e) => {
|
|
3670
3668
|
const {
|
|
3671
3669
|
visible: t,
|
|
3672
3670
|
id: r,
|
|
@@ -3718,7 +3716,7 @@ const Ut = wt(fl), Gt = (e) => {
|
|
|
3718
3716
|
v(!m);
|
|
3719
3717
|
}
|
|
3720
3718
|
function F() {
|
|
3721
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ H(Se, {
|
|
3722
3720
|
align: "middle",
|
|
3723
3721
|
children: [/* @__PURE__ */ n(le, {
|
|
3724
3722
|
children: /* @__PURE__ */ n(Oe, {
|
|
@@ -3784,16 +3782,16 @@ const Ut = wt(fl), Gt = (e) => {
|
|
|
3784
3782
|
name: o + "#time",
|
|
3785
3783
|
label: ""
|
|
3786
3784
|
})];
|
|
3787
|
-
return /* @__PURE__ */
|
|
3785
|
+
return /* @__PURE__ */ H(ee, {
|
|
3788
3786
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3789
|
-
ooui: new
|
|
3787
|
+
ooui: new Dt({
|
|
3790
3788
|
name: o + "_label",
|
|
3791
3789
|
string: i,
|
|
3792
3790
|
help: t.tooltip,
|
|
3793
3791
|
fieldForLabel: o
|
|
3794
3792
|
}),
|
|
3795
3793
|
align: "left"
|
|
3796
|
-
}), /* @__PURE__ */
|
|
3794
|
+
}), /* @__PURE__ */ H(Se, {
|
|
3797
3795
|
align: "bottom",
|
|
3798
3796
|
className: "p-0",
|
|
3799
3797
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -3909,16 +3907,16 @@ function yl(e) {
|
|
|
3909
3907
|
},
|
|
3910
3908
|
layout: "vertical"
|
|
3911
3909
|
});
|
|
3912
|
-
return /* @__PURE__ */
|
|
3910
|
+
return /* @__PURE__ */ H(ee, {
|
|
3913
3911
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3914
|
-
ooui: new
|
|
3912
|
+
ooui: new Dt({
|
|
3915
3913
|
name: i + "_label",
|
|
3916
3914
|
string: o,
|
|
3917
3915
|
help: s,
|
|
3918
3916
|
fieldForLabel: i
|
|
3919
3917
|
}),
|
|
3920
3918
|
align: "left"
|
|
3921
|
-
}), /* @__PURE__ */
|
|
3919
|
+
}), /* @__PURE__ */ H(Se, {
|
|
3922
3920
|
align: "bottom",
|
|
3923
3921
|
className: "mt-0",
|
|
3924
3922
|
wrap: !1,
|
|
@@ -3941,7 +3939,7 @@ const {
|
|
|
3941
3939
|
defaultSeed: wl
|
|
3942
3940
|
} = Pe, bl = vl(wl), {
|
|
3943
3941
|
Option: xl
|
|
3944
|
-
} =
|
|
3942
|
+
} = bt, Cl = (e) => {
|
|
3945
3943
|
const {
|
|
3946
3944
|
ooui: t
|
|
3947
3945
|
} = e, {
|
|
@@ -3973,7 +3971,7 @@ const {
|
|
|
3973
3971
|
value: v,
|
|
3974
3972
|
children: v
|
|
3975
3973
|
}, m);
|
|
3976
|
-
}), c = a && !s ? Tl :
|
|
3974
|
+
}), c = a && !s ? Tl : bt;
|
|
3977
3975
|
function f(d) {
|
|
3978
3976
|
const m = d.map((v) => {
|
|
3979
3977
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -3993,7 +3991,7 @@ const {
|
|
|
3993
3991
|
showArrow: !0,
|
|
3994
3992
|
children: u
|
|
3995
3993
|
});
|
|
3996
|
-
}, Tl = Kt(
|
|
3994
|
+
}, Tl = Kt(bt)`
|
|
3997
3995
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3998
3996
|
background-color: ${bl.colorPrimaryBg};
|
|
3999
3997
|
}
|
|
@@ -4063,20 +4061,20 @@ function Ol(e) {
|
|
|
4063
4061
|
} = e, {
|
|
4064
4062
|
t: s
|
|
4065
4063
|
} = W(we);
|
|
4066
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ H(Se, {
|
|
4067
4065
|
children: [/* @__PURE__ */ n(le, {
|
|
4068
4066
|
span: 12,
|
|
4069
4067
|
className: "text-left pt-4 pb-2 pl-2",
|
|
4070
|
-
children: /* @__PURE__ */
|
|
4068
|
+
children: /* @__PURE__ */ H("a", {
|
|
4071
4069
|
className: "text-xs",
|
|
4072
4070
|
onClick: t,
|
|
4073
4071
|
children: [r ? /* @__PURE__ */ n(ui, {
|
|
4074
4072
|
className: "pr-1"
|
|
4075
|
-
}) : /* @__PURE__ */ n(
|
|
4073
|
+
}) : /* @__PURE__ */ n(Vt, {
|
|
4076
4074
|
className: "pr-1"
|
|
4077
4075
|
}), s(r ? "simple_search" : "advanced_search")]
|
|
4078
4076
|
})
|
|
4079
|
-
}), /* @__PURE__ */
|
|
4077
|
+
}), /* @__PURE__ */ H(le, {
|
|
4080
4078
|
span: 12,
|
|
4081
4079
|
className: "text-right pb-2",
|
|
4082
4080
|
children: [/* @__PURE__ */ n(Oe, {
|
|
@@ -4105,11 +4103,11 @@ function _l(e) {
|
|
|
4105
4103
|
}), o = new In({
|
|
4106
4104
|
name: "offset"
|
|
4107
4105
|
});
|
|
4108
|
-
return /* @__PURE__ */
|
|
4106
|
+
return /* @__PURE__ */ H("div", {
|
|
4109
4107
|
className: "pl-2 pt-2",
|
|
4110
4108
|
children: [/* @__PURE__ */ n(Se, {
|
|
4111
4109
|
children: r("parameters")
|
|
4112
|
-
}, "count_params"), /* @__PURE__ */
|
|
4110
|
+
}, "count_params"), /* @__PURE__ */ H(Ke, {
|
|
4113
4111
|
align: "center",
|
|
4114
4112
|
children: [r("limit") + " :", /* @__PURE__ */ n(tn, {
|
|
4115
4113
|
ooui: i,
|
|
@@ -4165,7 +4163,7 @@ function ho(e) {
|
|
|
4165
4163
|
}, M))
|
|
4166
4164
|
}, S));
|
|
4167
4165
|
};
|
|
4168
|
-
|
|
4166
|
+
xt(() => {
|
|
4169
4167
|
w(!1), V.current = new ci(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), F(V.current._advancedSearchContainer);
|
|
4170
4168
|
}, [t, r]);
|
|
4171
4169
|
const b = x(), O = (C) => {
|
|
@@ -4193,11 +4191,11 @@ function ho(e) {
|
|
|
4193
4191
|
measureRef: C
|
|
4194
4192
|
}) => /* @__PURE__ */ n("div", {
|
|
4195
4193
|
ref: C,
|
|
4196
|
-
children: /* @__PURE__ */
|
|
4194
|
+
children: /* @__PURE__ */ H("div", {
|
|
4197
4195
|
style: {
|
|
4198
4196
|
display: c ? "block" : "none"
|
|
4199
4197
|
},
|
|
4200
|
-
children: [/* @__PURE__ */
|
|
4198
|
+
children: [/* @__PURE__ */ H(nt, {
|
|
4201
4199
|
className: "p-3 shadow-md",
|
|
4202
4200
|
style: {
|
|
4203
4201
|
borderRadius: I.borderRadius
|
|
@@ -4300,7 +4298,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4300
4298
|
maximumFractionDigits: 4,
|
|
4301
4299
|
useGrouping: !1
|
|
4302
4300
|
})}%`;
|
|
4303
|
-
return /* @__PURE__ */
|
|
4301
|
+
return /* @__PURE__ */ H("div", {
|
|
4304
4302
|
style: {
|
|
4305
4303
|
flex: 1,
|
|
4306
4304
|
display: "flex",
|
|
@@ -4363,7 +4361,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4363
4361
|
t: p
|
|
4364
4362
|
} = W(we), h = W(ot), {
|
|
4365
4363
|
openRelate: g
|
|
4366
|
-
} = h || {}, y = W(
|
|
4364
|
+
} = h || {}, y = W(kt), {
|
|
4367
4365
|
processAction: F
|
|
4368
4366
|
} = y || {};
|
|
4369
4367
|
if (!t)
|
|
@@ -4387,7 +4385,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4387
4385
|
context: i
|
|
4388
4386
|
}))[0];
|
|
4389
4387
|
v({
|
|
4390
|
-
...
|
|
4388
|
+
...Tt(R, C),
|
|
4391
4389
|
active_id: t
|
|
4392
4390
|
}), c(!1);
|
|
4393
4391
|
} catch (O) {
|
|
@@ -4403,7 +4401,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4403
4401
|
style: {
|
|
4404
4402
|
padding: 15
|
|
4405
4403
|
},
|
|
4406
|
-
children: /* @__PURE__ */ n(
|
|
4404
|
+
children: /* @__PURE__ */ n($e, {})
|
|
4407
4405
|
})
|
|
4408
4406
|
});
|
|
4409
4407
|
if (!f || !f.toolbar)
|
|
@@ -4422,8 +4420,8 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4422
4420
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
4423
4421
|
children: p("report")
|
|
4424
4422
|
}, "print"), /* @__PURE__ */ n(He.Divider, {}), /* @__PURE__ */ n(He.ItemGroup, {
|
|
4425
|
-
title: /* @__PURE__ */
|
|
4426
|
-
children: [/* @__PURE__ */ n(jr, {}), " ", /* @__PURE__ */
|
|
4423
|
+
title: /* @__PURE__ */ H(ee, {
|
|
4424
|
+
children: [/* @__PURE__ */ n(jr, {}), " ", /* @__PURE__ */ H("span", {
|
|
4427
4425
|
children: [" ", p("related")]
|
|
4428
4426
|
})]
|
|
4429
4427
|
}),
|
|
@@ -4473,7 +4471,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4473
4471
|
fields: f.fields
|
|
4474
4472
|
});
|
|
4475
4473
|
}
|
|
4476
|
-
return /* @__PURE__ */
|
|
4474
|
+
return /* @__PURE__ */ H(ee, {
|
|
4477
4475
|
children: [/* @__PURE__ */ n(Bt, {
|
|
4478
4476
|
overlay: w(),
|
|
4479
4477
|
trigger: ["click"],
|
|
@@ -4501,7 +4499,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4501
4499
|
const {
|
|
4502
4500
|
m2oField: t
|
|
4503
4501
|
} = e;
|
|
4504
|
-
return t ? /* @__PURE__ */
|
|
4502
|
+
return t ? /* @__PURE__ */ H(Ke, {
|
|
4505
4503
|
children: [/* @__PURE__ */ n(ee, {
|
|
4506
4504
|
children: t.value
|
|
4507
4505
|
}), /* @__PURE__ */ n(Jn, {
|
|
@@ -4514,7 +4512,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4514
4512
|
value: t,
|
|
4515
4513
|
context: r,
|
|
4516
4514
|
selectionValues: i
|
|
4517
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d =
|
|
4515
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Ee(async () => {
|
|
4518
4516
|
if (!t || t && o)
|
|
4519
4517
|
return;
|
|
4520
4518
|
l(!0);
|
|
@@ -4533,7 +4531,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4533
4531
|
if (a)
|
|
4534
4532
|
return /* @__PURE__ */ n(tt, {});
|
|
4535
4533
|
const m = i.get(u);
|
|
4536
|
-
return /* @__PURE__ */
|
|
4534
|
+
return /* @__PURE__ */ H(Ke, {
|
|
4537
4535
|
children: [/* @__PURE__ */ n(ee, {
|
|
4538
4536
|
children: `${m}:`
|
|
4539
4537
|
}), /* @__PURE__ */ n(ee, {
|
|
@@ -4653,7 +4651,7 @@ var yo = { exports: {} };
|
|
|
4653
4651
|
case d:
|
|
4654
4652
|
return N ? j(1, J) : j(0, J + 1);
|
|
4655
4653
|
case f:
|
|
4656
|
-
var
|
|
4654
|
+
var P = this.$locale().weekStart || 0, z = (K < P ? K + 7 : K) - P;
|
|
4657
4655
|
return j(N ? U - z : U + (6 - z), J);
|
|
4658
4656
|
case c:
|
|
4659
4657
|
case p:
|
|
@@ -4706,12 +4704,12 @@ var yo = { exports: {} };
|
|
|
4706
4704
|
return D.invalidDate || h;
|
|
4707
4705
|
var N = A || "YYYY-MM-DDTHH:mm:ssZ", k = O.z(this), j = this.$H, q = this.$m, K = this.$M, J = D.weekdays, U = D.months, L = function(ce, Z, X, fe) {
|
|
4708
4706
|
return ce && (ce[Z] || ce(M, N)) || X[Z].slice(0, fe);
|
|
4709
|
-
},
|
|
4707
|
+
}, P = function(ce) {
|
|
4710
4708
|
return O.s(j % 12 || 12, ce, "0");
|
|
4711
4709
|
}, z = D.meridiem || function(ce, Z, X) {
|
|
4712
4710
|
var fe = ce < 12 ? "AM" : "PM";
|
|
4713
4711
|
return X ? fe.toLowerCase() : fe;
|
|
4714
|
-
}, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K, U, 3), MMMM: L(U, K), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: L(D.weekdaysMin, this.$W, J, 2), ddd: L(D.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: O.s(j, 2, "0"), h:
|
|
4712
|
+
}, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K, U, 3), MMMM: L(U, K), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: L(D.weekdaysMin, this.$W, J, 2), ddd: L(D.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: O.s(j, 2, "0"), h: P(1), hh: P(2), a: z(j, q, !0), A: z(j, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: k };
|
|
4715
4713
|
return N.replace(y, function(ce, Z) {
|
|
4716
4714
|
return Z || oe[ce] || k.replace(":", "");
|
|
4717
4715
|
});
|
|
@@ -5045,7 +5043,7 @@ function pn(e) {
|
|
|
5045
5043
|
setTitle: S = void 0
|
|
5046
5044
|
} = (y ? $ : {}) || {};
|
|
5047
5045
|
pe(() => {
|
|
5048
|
-
b.current =
|
|
5046
|
+
b.current = Ft(o);
|
|
5049
5047
|
const K = Ca(b.current, {
|
|
5050
5048
|
boolean: Bl,
|
|
5051
5049
|
many2one: jl,
|
|
@@ -5070,9 +5068,9 @@ function pn(e) {
|
|
|
5070
5068
|
const K = ao(b.current, s);
|
|
5071
5069
|
V(K), C.current = r;
|
|
5072
5070
|
}, [s]);
|
|
5073
|
-
const A = (t - 1) * C.current + 1, M = A - 1 + w.length, D = i === void 0 ? null : i === 0 ? O("no_results") : O("summary").replace("{from}", A == null ? void 0 : A.toString()).replace("{to}", M == null ? void 0 : M.toString()).replace("{total}", i == null ? void 0 : i.toString()), N = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5071
|
+
const A = (t - 1) * C.current + 1, M = A - 1 + w.length, D = i === void 0 ? null : i === 0 ? O("no_results") : O("summary").replace("{from}", A == null ? void 0 : A.toString()).replace("{to}", M == null ? void 0 : M.toString()).replace("{total}", i == null ? void 0 : i.toString()), N = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n($e, {
|
|
5074
5072
|
className: "pb-4"
|
|
5075
|
-
}) : /* @__PURE__ */
|
|
5073
|
+
}) : /* @__PURE__ */ H(Se, {
|
|
5076
5074
|
align: "bottom",
|
|
5077
5075
|
className: "pb-4",
|
|
5078
5076
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -5091,14 +5089,14 @@ function pn(e) {
|
|
|
5091
5089
|
})]
|
|
5092
5090
|
});
|
|
5093
5091
|
function k() {
|
|
5094
|
-
var
|
|
5092
|
+
var P;
|
|
5095
5093
|
const J = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
|
|
5096
5094
|
label: z.sum,
|
|
5097
5095
|
field: z.id
|
|
5098
5096
|
}));
|
|
5099
5097
|
if (!J || J.length === 0)
|
|
5100
5098
|
return null;
|
|
5101
|
-
let U = [], L = ((
|
|
5099
|
+
let U = [], L = ((P = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : P.length) > 0 ? w.filter((z) => f == null ? void 0 : f.selectedRowKeys.includes(z.id)) : w;
|
|
5102
5100
|
return J.forEach((z) => {
|
|
5103
5101
|
const oe = L.reduce((ce, Z) => Z[z.field] && !isNaN(Z[z.field]) ? ce + Z[z.field] : ce, 0);
|
|
5104
5102
|
U.push(`${z.label}: ${Math.round(oe * 100) / 100}`);
|
|
@@ -5113,19 +5111,17 @@ function pn(e) {
|
|
|
5113
5111
|
const J = b.current;
|
|
5114
5112
|
d && J.columns.some((U) => U.sum !== void 0) && (q = d - 30);
|
|
5115
5113
|
}
|
|
5116
|
-
return b.current === null ? /* @__PURE__ */ n(
|
|
5114
|
+
return b.current === null ? /* @__PURE__ */ n($e, {
|
|
5117
5115
|
style: {
|
|
5118
5116
|
padding: "2rem"
|
|
5119
5117
|
}
|
|
5120
|
-
}) : /* @__PURE__ */
|
|
5121
|
-
children: [N(),
|
|
5122
|
-
className: "pb-4"
|
|
5123
|
-
}), /* @__PURE__ */ n(Di, {
|
|
5118
|
+
}) : /* @__PURE__ */ H("div", {
|
|
5119
|
+
children: [N(), /* @__PURE__ */ n(Di, {
|
|
5124
5120
|
height: q,
|
|
5125
5121
|
columns: j.columns,
|
|
5126
5122
|
dataSource: w,
|
|
5127
|
-
loading:
|
|
5128
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5123
|
+
loading: l,
|
|
5124
|
+
loadingComponent: /* @__PURE__ */ n($e, {}),
|
|
5129
5125
|
onRowStyle: (K) => {
|
|
5130
5126
|
if (m[K.id])
|
|
5131
5127
|
return {
|
|
@@ -5162,7 +5158,7 @@ function Ql(e, t) {
|
|
|
5162
5158
|
onChangeSelectedRowKeys: m
|
|
5163
5159
|
} = e, [v, p] = T(!1), [h, g] = T(!1), y = ue(!1), [F, _] = T(), [w, V] = T(), [I, E] = T(), [x, b] = T(), [O, C] = T(200), $ = ue(), {
|
|
5164
5160
|
height: R
|
|
5165
|
-
} = fn(), S = W(
|
|
5161
|
+
} = fn(), S = W(kt), {
|
|
5166
5162
|
processAction: A
|
|
5167
5163
|
} = S || {}, M = W(Xe), {
|
|
5168
5164
|
setResults: D = void 0,
|
|
@@ -5174,7 +5170,7 @@ function Ql(e, t) {
|
|
|
5174
5170
|
searchParams: J = [],
|
|
5175
5171
|
setSearchParams: U = void 0,
|
|
5176
5172
|
searchVisible: L = !0,
|
|
5177
|
-
setSearchVisible:
|
|
5173
|
+
setSearchVisible: P = void 0,
|
|
5178
5174
|
sorter: z = void 0,
|
|
5179
5175
|
setSorter: oe = void 0,
|
|
5180
5176
|
setTotalItems: ce = void 0,
|
|
@@ -5182,7 +5178,7 @@ function Ql(e, t) {
|
|
|
5182
5178
|
setTreeIsLoading: X = void 0,
|
|
5183
5179
|
searchValues: fe = {},
|
|
5184
5180
|
setSearchValues: xe = void 0,
|
|
5185
|
-
limit:
|
|
5181
|
+
limit: ke = Ht,
|
|
5186
5182
|
setLimit: _e = void 0
|
|
5187
5183
|
} = (f ? M : {}) || {}, {
|
|
5188
5184
|
submit: de,
|
|
@@ -5190,7 +5186,7 @@ function Ql(e, t) {
|
|
|
5190
5186
|
fetchResults: be,
|
|
5191
5187
|
tableRefreshing: Re,
|
|
5192
5188
|
searchFilterLoading: Te,
|
|
5193
|
-
searchError:
|
|
5189
|
+
searchError: Me,
|
|
5194
5190
|
page: Ze,
|
|
5195
5191
|
offset: Be,
|
|
5196
5192
|
getResults: te,
|
|
@@ -5206,7 +5202,7 @@ function Ql(e, t) {
|
|
|
5206
5202
|
setSearchParams: U,
|
|
5207
5203
|
setSearchValues: xe,
|
|
5208
5204
|
searchParams: J,
|
|
5209
|
-
setSearchVisible:
|
|
5205
|
+
setSearchVisible: P,
|
|
5210
5206
|
setTreeIsLoading: X,
|
|
5211
5207
|
nameSearch: a,
|
|
5212
5208
|
searchNameGetDoneRef: y,
|
|
@@ -5221,10 +5217,10 @@ function Ql(e, t) {
|
|
|
5221
5217
|
domain: u,
|
|
5222
5218
|
currentId: k,
|
|
5223
5219
|
setActionViewTotalItems: ce,
|
|
5224
|
-
limit:
|
|
5220
|
+
limit: ke,
|
|
5225
5221
|
setLimit: _e
|
|
5226
5222
|
});
|
|
5227
|
-
|
|
5223
|
+
wt(t, () => ({
|
|
5228
5224
|
refreshResults: () => {
|
|
5229
5225
|
y.current = !1, be();
|
|
5230
5226
|
},
|
|
@@ -5238,9 +5234,9 @@ function Ql(e, t) {
|
|
|
5238
5234
|
try {
|
|
5239
5235
|
await Qe(), g(!0);
|
|
5240
5236
|
} catch (ie) {
|
|
5241
|
-
b(ie)
|
|
5237
|
+
b(ie);
|
|
5242
5238
|
} finally {
|
|
5243
|
-
p(!1);
|
|
5239
|
+
p(!1), X == null || X(!1);
|
|
5244
5240
|
}
|
|
5245
5241
|
}, Qe = async () => {
|
|
5246
5242
|
_(r);
|
|
@@ -5307,7 +5303,7 @@ function Ql(e, t) {
|
|
|
5307
5303
|
function Ve() {
|
|
5308
5304
|
return w != null && w.isExpandable ? R - 160 : R - (O + 210);
|
|
5309
5305
|
}
|
|
5310
|
-
const he = () => !w || !I ? null : /* @__PURE__ */
|
|
5306
|
+
const he = () => !w || !I ? null : /* @__PURE__ */ H(ee, {
|
|
5311
5307
|
children: [/* @__PURE__ */ n(ho, {
|
|
5312
5308
|
fields: {
|
|
5313
5309
|
...w.fields,
|
|
@@ -5316,19 +5312,19 @@ function Ql(e, t) {
|
|
|
5316
5312
|
searchFields: lo([I.search_fields, w.search_fields]),
|
|
5317
5313
|
formXml: I.arch,
|
|
5318
5314
|
onClear: se,
|
|
5319
|
-
limit:
|
|
5315
|
+
limit: ke,
|
|
5320
5316
|
offset: Be,
|
|
5321
5317
|
isSearching: Te,
|
|
5322
5318
|
onSubmit: de,
|
|
5323
5319
|
onLimitChange: je,
|
|
5324
5320
|
setSearchFilterHeight: C,
|
|
5325
|
-
searchError:
|
|
5321
|
+
searchError: Me,
|
|
5326
5322
|
searchVisible: L,
|
|
5327
5323
|
searchValues: fe
|
|
5328
5324
|
}), /* @__PURE__ */ n(pn, {
|
|
5329
5325
|
context: d,
|
|
5330
5326
|
total: De,
|
|
5331
|
-
limit:
|
|
5327
|
+
limit: ke,
|
|
5332
5328
|
page: Ze,
|
|
5333
5329
|
treeView: w,
|
|
5334
5330
|
results: te(),
|
|
@@ -5347,7 +5343,7 @@ function Ql(e, t) {
|
|
|
5347
5343
|
childField: w.field_parent,
|
|
5348
5344
|
rootTree: f
|
|
5349
5345
|
})]
|
|
5350
|
-
}), ge = x ||
|
|
5346
|
+
}), ge = x || Me;
|
|
5351
5347
|
return ge ? /* @__PURE__ */ n(Je, {
|
|
5352
5348
|
className: "mt-10",
|
|
5353
5349
|
message: ge,
|
|
@@ -5357,10 +5353,10 @@ function Ql(e, t) {
|
|
|
5357
5353
|
style: c ? {} : {
|
|
5358
5354
|
display: "none"
|
|
5359
5355
|
},
|
|
5360
|
-
children: v ? /* @__PURE__ */ n(
|
|
5356
|
+
children: v ? /* @__PURE__ */ n($e, {}) : he()
|
|
5361
5357
|
});
|
|
5362
5358
|
}
|
|
5363
|
-
const Co =
|
|
5359
|
+
const Co = vt(Ql), So = (e) => {
|
|
5364
5360
|
const {
|
|
5365
5361
|
visible: t,
|
|
5366
5362
|
onCloseModal: r,
|
|
@@ -5389,7 +5385,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5389
5385
|
}
|
|
5390
5386
|
i(v);
|
|
5391
5387
|
}
|
|
5392
|
-
const F = () => /* @__PURE__ */
|
|
5388
|
+
const F = () => /* @__PURE__ */ H(ee, {
|
|
5393
5389
|
children: [/* @__PURE__ */ n(Co, {
|
|
5394
5390
|
model: o,
|
|
5395
5391
|
nameSearch: s,
|
|
@@ -5402,7 +5398,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5402
5398
|
}
|
|
5403
5399
|
}), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
|
|
5404
5400
|
justify: "end",
|
|
5405
|
-
children: /* @__PURE__ */
|
|
5401
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
5406
5402
|
children: [/* @__PURE__ */ n(Oe, {
|
|
5407
5403
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
5408
5404
|
onClick: () => {
|
|
@@ -5410,7 +5406,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5410
5406
|
},
|
|
5411
5407
|
children: m("new")
|
|
5412
5408
|
}), /* @__PURE__ */ n(Oe, {
|
|
5413
|
-
icon: /* @__PURE__ */ n(
|
|
5409
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
5414
5410
|
onClick: () => {
|
|
5415
5411
|
y();
|
|
5416
5412
|
},
|
|
@@ -5424,7 +5420,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5424
5420
|
})
|
|
5425
5421
|
})]
|
|
5426
5422
|
});
|
|
5427
|
-
return /* @__PURE__ */
|
|
5423
|
+
return /* @__PURE__ */ H(ee, {
|
|
5428
5424
|
children: [/* @__PURE__ */ n(We, {
|
|
5429
5425
|
title: m("search"),
|
|
5430
5426
|
centered: !0,
|
|
@@ -5508,13 +5504,13 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5508
5504
|
}, [t]), pe(() => {
|
|
5509
5505
|
M && D.length === 0 ? K(M) : M && D.length > 0 ? V(D) : !M && !D && V(I.current || "");
|
|
5510
5506
|
}, [t]);
|
|
5511
|
-
const N = (
|
|
5512
|
-
r == null || r(
|
|
5513
|
-
}, k = (
|
|
5514
|
-
I.current =
|
|
5507
|
+
const N = (P) => {
|
|
5508
|
+
r == null || r(P), $ == null || $();
|
|
5509
|
+
}, k = (P) => {
|
|
5510
|
+
I.current = P.target.value, N([void 0, ""]);
|
|
5515
5511
|
}, j = async () => {
|
|
5516
5512
|
if (!h && w !== D) {
|
|
5517
|
-
if (await new Promise((
|
|
5513
|
+
if (await new Promise((P) => setTimeout(P, 100)), _.current) {
|
|
5518
5514
|
N([void 0, ""]);
|
|
5519
5515
|
return;
|
|
5520
5516
|
}
|
|
@@ -5523,7 +5519,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5523
5519
|
if (R.current && R.current.length > 0)
|
|
5524
5520
|
q(I.current);
|
|
5525
5521
|
else {
|
|
5526
|
-
const
|
|
5522
|
+
const P = await B.getHandler().nameSearch({
|
|
5527
5523
|
model: s,
|
|
5528
5524
|
payload: I.current,
|
|
5529
5525
|
context: {
|
|
@@ -5531,15 +5527,15 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5531
5527
|
...l
|
|
5532
5528
|
}
|
|
5533
5529
|
});
|
|
5534
|
-
|
|
5530
|
+
P.length === 1 ? (I.current = void 0, N(P[0])) : q(I.current);
|
|
5535
5531
|
}
|
|
5536
|
-
} catch (
|
|
5537
|
-
nn(
|
|
5532
|
+
} catch (P) {
|
|
5533
|
+
nn(P);
|
|
5538
5534
|
} finally {
|
|
5539
5535
|
g(!1);
|
|
5540
5536
|
}
|
|
5541
5537
|
}
|
|
5542
|
-
}, q = async (
|
|
5538
|
+
}, q = async (P) => {
|
|
5543
5539
|
if (await J(), R.current && R.current.length > 0) {
|
|
5544
5540
|
const z = await B.getHandler().searchAllIds({
|
|
5545
5541
|
params: R.current,
|
|
@@ -5550,23 +5546,23 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5550
5546
|
},
|
|
5551
5547
|
totalItems: 2
|
|
5552
5548
|
});
|
|
5553
|
-
z.length === 1 ? K(z[0]) : (F(
|
|
5549
|
+
z.length === 1 ? K(z[0]) : (F(P), m(!0));
|
|
5554
5550
|
return;
|
|
5555
5551
|
}
|
|
5556
|
-
F(
|
|
5557
|
-
}, K = async (
|
|
5552
|
+
F(P), m(!0);
|
|
5553
|
+
}, K = async (P) => {
|
|
5558
5554
|
g(!0);
|
|
5559
5555
|
try {
|
|
5560
5556
|
const z = await B.getHandler().execute({
|
|
5561
5557
|
action: "name_get",
|
|
5562
|
-
payload: [
|
|
5558
|
+
payload: [P],
|
|
5563
5559
|
model: s,
|
|
5564
5560
|
context: {
|
|
5565
5561
|
...C == null ? void 0 : C(),
|
|
5566
5562
|
...l
|
|
5567
5563
|
}
|
|
5568
5564
|
});
|
|
5569
|
-
N([
|
|
5565
|
+
N([P, z[0][1]]);
|
|
5570
5566
|
} catch (z) {
|
|
5571
5567
|
nn(z);
|
|
5572
5568
|
} finally {
|
|
@@ -5576,7 +5572,7 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5576
5572
|
async function J() {
|
|
5577
5573
|
c && (R.current = await B.getHandler().evalDomain({
|
|
5578
5574
|
domain: c,
|
|
5579
|
-
values:
|
|
5575
|
+
values: Rt({
|
|
5580
5576
|
fields: O(),
|
|
5581
5577
|
values: b()
|
|
5582
5578
|
}),
|
|
@@ -5587,10 +5583,10 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5587
5583
|
widgetFieldName: u
|
|
5588
5584
|
}))), A(R.current);
|
|
5589
5585
|
}
|
|
5590
|
-
async function U(
|
|
5591
|
-
|
|
5586
|
+
async function U(P) {
|
|
5587
|
+
P.keyCode === 13 ? (P.preventDefault(), P.stopPropagation(), await j()) : P.code === "Backspace" && M !== void 0 && (P.preventDefault(), P.stopPropagation(), N([void 0, ""]));
|
|
5592
5588
|
}
|
|
5593
|
-
return /* @__PURE__ */
|
|
5589
|
+
return /* @__PURE__ */ H(Se, {
|
|
5594
5590
|
gutter: 8,
|
|
5595
5591
|
wrap: !1,
|
|
5596
5592
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -5655,8 +5651,8 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5655
5651
|
},
|
|
5656
5652
|
visible: d,
|
|
5657
5653
|
nameSearch: M ? void 0 : y,
|
|
5658
|
-
onSelectValues: (
|
|
5659
|
-
m(!1), K(
|
|
5654
|
+
onSelectValues: (P) => {
|
|
5655
|
+
m(!1), K(P[0]), _.current = !1, I.current = void 0;
|
|
5660
5656
|
},
|
|
5661
5657
|
onCloseModal: () => {
|
|
5662
5658
|
m(!1), _.current = !1;
|
|
@@ -5669,8 +5665,8 @@ const Co = wt(Ql), So = (e) => {
|
|
|
5669
5665
|
},
|
|
5670
5666
|
id: t && t[0],
|
|
5671
5667
|
visible: v,
|
|
5672
|
-
onSubmitSucceed: (
|
|
5673
|
-
p(!1), K(
|
|
5668
|
+
onSubmitSucceed: (P) => {
|
|
5669
|
+
p(!1), K(P);
|
|
5674
5670
|
},
|
|
5675
5671
|
onCancel: () => {
|
|
5676
5672
|
p(!1);
|
|
@@ -5898,7 +5894,7 @@ function ac({
|
|
|
5898
5894
|
justifyContent: "center",
|
|
5899
5895
|
overflow: "hidden"
|
|
5900
5896
|
},
|
|
5901
|
-
children: /* @__PURE__ */
|
|
5897
|
+
children: /* @__PURE__ */ H(Dn, {
|
|
5902
5898
|
style: {
|
|
5903
5899
|
fontSize: u,
|
|
5904
5900
|
margin: 0,
|
|
@@ -5950,7 +5946,7 @@ function lc({
|
|
|
5950
5946
|
flexDirection: "column",
|
|
5951
5947
|
padding: "0.2rem"
|
|
5952
5948
|
},
|
|
5953
|
-
children: /* @__PURE__ */
|
|
5949
|
+
children: /* @__PURE__ */ H(Se, {
|
|
5954
5950
|
align: "middle",
|
|
5955
5951
|
children: [h && /* @__PURE__ */ n(le, {
|
|
5956
5952
|
style: {
|
|
@@ -5959,7 +5955,7 @@ function lc({
|
|
|
5959
5955
|
paddingRight: "10px"
|
|
5960
5956
|
},
|
|
5961
5957
|
children: /* @__PURE__ */ n(h, {})
|
|
5962
|
-
}), /* @__PURE__ */
|
|
5958
|
+
}), /* @__PURE__ */ H(le, {
|
|
5963
5959
|
children: [/* @__PURE__ */ n(Dn, {
|
|
5964
5960
|
style: {
|
|
5965
5961
|
fontSize: f * 0.8,
|
|
@@ -6126,7 +6122,7 @@ const {
|
|
|
6126
6122
|
uninformedString: a,
|
|
6127
6123
|
manualIds: l
|
|
6128
6124
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6129
|
-
return
|
|
6125
|
+
return xt(() => {
|
|
6130
6126
|
(async () => {
|
|
6131
6127
|
c(!0), d(void 0);
|
|
6132
6128
|
const F = Ln(o);
|
|
@@ -6267,7 +6263,7 @@ const vc = {
|
|
|
6267
6263
|
banner: !0
|
|
6268
6264
|
});
|
|
6269
6265
|
if (c)
|
|
6270
|
-
return /* @__PURE__ */ n(
|
|
6266
|
+
return /* @__PURE__ */ n($e, {});
|
|
6271
6267
|
if (!f)
|
|
6272
6268
|
return /* @__PURE__ */ n(Je, {
|
|
6273
6269
|
message: "No data to display",
|
|
@@ -6278,7 +6274,7 @@ const vc = {
|
|
|
6278
6274
|
isGroup: p,
|
|
6279
6275
|
isStack: h
|
|
6280
6276
|
} = f, g = vc[d];
|
|
6281
|
-
return g ? /* @__PURE__ */
|
|
6277
|
+
return g ? /* @__PURE__ */ H("div", {
|
|
6282
6278
|
style: {
|
|
6283
6279
|
padding: "1rem"
|
|
6284
6280
|
},
|
|
@@ -6322,7 +6318,7 @@ const xc = (e, t) => {
|
|
|
6322
6318
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = W(Xe), {
|
|
6323
6319
|
setGraphIsLoading: h = void 0
|
|
6324
6320
|
} = p || {};
|
|
6325
|
-
|
|
6321
|
+
wt(t, () => ({
|
|
6326
6322
|
refresh: () => {
|
|
6327
6323
|
g();
|
|
6328
6324
|
}
|
|
@@ -6402,7 +6398,7 @@ const xc = (e, t) => {
|
|
|
6402
6398
|
children: `Graph ${f.type} not implemented`
|
|
6403
6399
|
});
|
|
6404
6400
|
}
|
|
6405
|
-
}, gn =
|
|
6401
|
+
}, gn = vt(xc), {
|
|
6406
6402
|
confirm: Cc
|
|
6407
6403
|
} = We, Sc = ({
|
|
6408
6404
|
onOk: e,
|
|
@@ -6485,13 +6481,13 @@ const xc = (e, t) => {
|
|
|
6485
6481
|
}
|
|
6486
6482
|
function w() {
|
|
6487
6483
|
let I = "_";
|
|
6488
|
-
return l === 0 ? I = "_" : I = (u + 1).toString(), /* @__PURE__ */
|
|
6484
|
+
return l === 0 ? I = "_" : I = (u + 1).toString(), /* @__PURE__ */ H("span", {
|
|
6489
6485
|
className: "pl-1 pr-1",
|
|
6490
6486
|
children: ["(", I, "/", l, ")"]
|
|
6491
6487
|
});
|
|
6492
6488
|
}
|
|
6493
6489
|
function V() {
|
|
6494
|
-
return /* @__PURE__ */
|
|
6490
|
+
return /* @__PURE__ */ H(ee, {
|
|
6495
6491
|
children: [y(), /* @__PURE__ */ n(qe, {
|
|
6496
6492
|
tooltip: "Previous item",
|
|
6497
6493
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
@@ -6503,9 +6499,9 @@ const xc = (e, t) => {
|
|
|
6503
6499
|
})]
|
|
6504
6500
|
});
|
|
6505
6501
|
}
|
|
6506
|
-
return /* @__PURE__ */
|
|
6502
|
+
return /* @__PURE__ */ H("div", {
|
|
6507
6503
|
className: "flex mb-2",
|
|
6508
|
-
children: [F(), /* @__PURE__ */
|
|
6504
|
+
children: [F(), /* @__PURE__ */ H("div", {
|
|
6509
6505
|
className: "flex-none h-8 pl-2",
|
|
6510
6506
|
children: [s !== "graph" && p && /* @__PURE__ */ n(qe, {
|
|
6511
6507
|
tooltip: "Create new item",
|
|
@@ -6564,7 +6560,7 @@ const Vc = (e) => {
|
|
|
6564
6560
|
} = W(we), [F, _] = T(!1), [w, V] = T(!1), [I, E] = T(), [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T([]), [M, D] = T(!1), N = ue([]), [k, j] = T(), q = ue(), [K, J] = T(void 0), {
|
|
6565
6561
|
readOnly: U,
|
|
6566
6562
|
relation: L,
|
|
6567
|
-
context:
|
|
6563
|
+
context: P,
|
|
6568
6564
|
domain: z
|
|
6569
6565
|
} = i, oe = i.type === "many2many", {
|
|
6570
6566
|
id: ce
|
|
@@ -6576,8 +6572,8 @@ const Vc = (e) => {
|
|
|
6576
6572
|
}
|
|
6577
6573
|
fe();
|
|
6578
6574
|
}, [s, a]);
|
|
6579
|
-
const fe =
|
|
6580
|
-
(a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) &&
|
|
6575
|
+
const fe = Ee(() => {
|
|
6576
|
+
(a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) && ke();
|
|
6581
6577
|
}, [s, a]);
|
|
6582
6578
|
pe(() => {
|
|
6583
6579
|
de();
|
|
@@ -6588,7 +6584,7 @@ const Vc = (e) => {
|
|
|
6588
6584
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ve = o.get("tree")) == null ? void 0 : Ve.fields),
|
|
6589
6585
|
items: Dc(Q)
|
|
6590
6586
|
});
|
|
6591
|
-
},
|
|
6587
|
+
}, ke = async () => {
|
|
6592
6588
|
await _e(), u > Z.length - 1 && u !== 0 && c(0);
|
|
6593
6589
|
}, _e = async (Q) => {
|
|
6594
6590
|
var ae, Ve, he;
|
|
@@ -6606,7 +6602,7 @@ const Vc = (e) => {
|
|
|
6606
6602
|
items: s,
|
|
6607
6603
|
context: {
|
|
6608
6604
|
...p == null ? void 0 : p(),
|
|
6609
|
-
...
|
|
6605
|
+
...P
|
|
6610
6606
|
},
|
|
6611
6607
|
currentView: Q || a
|
|
6612
6608
|
});
|
|
@@ -6620,7 +6616,7 @@ const Vc = (e) => {
|
|
|
6620
6616
|
async function de() {
|
|
6621
6617
|
z && (N.current = await B.getHandler().evalDomain({
|
|
6622
6618
|
domain: z,
|
|
6623
|
-
values:
|
|
6619
|
+
values: Rt({
|
|
6624
6620
|
fields: m(),
|
|
6625
6621
|
values: v()
|
|
6626
6622
|
}),
|
|
@@ -6633,16 +6629,16 @@ const Vc = (e) => {
|
|
|
6633
6629
|
}
|
|
6634
6630
|
const se = () => {
|
|
6635
6631
|
const Q = Array.from(o.keys()), ae = Q[(Q.indexOf(a) + 1) % Q.length];
|
|
6636
|
-
a === "form" ?
|
|
6632
|
+
a === "form" ? Me(() => {
|
|
6637
6633
|
l(ae);
|
|
6638
6634
|
}) : l(ae);
|
|
6639
6635
|
}, be = () => {
|
|
6640
|
-
u > 0 && (a === "form" ?
|
|
6636
|
+
u > 0 && (a === "form" ? Me(() => {
|
|
6641
6637
|
c(u - 1);
|
|
6642
6638
|
}) : c(u - 1));
|
|
6643
6639
|
}, Re = () => {
|
|
6644
6640
|
const Q = Z.length;
|
|
6645
|
-
u < Q - 1 && (a === "form" ?
|
|
6641
|
+
u < Q - 1 && (a === "form" ? Me(() => {
|
|
6646
6642
|
c(u + 1);
|
|
6647
6643
|
}) : c(u + 1));
|
|
6648
6644
|
}, Te = async () => {
|
|
@@ -6652,7 +6648,7 @@ const Vc = (e) => {
|
|
|
6652
6648
|
fields: o.get("form").fields,
|
|
6653
6649
|
context: {
|
|
6654
6650
|
...p == null ? void 0 : p(),
|
|
6655
|
-
...
|
|
6651
|
+
...P
|
|
6656
6652
|
}
|
|
6657
6653
|
}))[0], Ve = (await B.getHandler().readObjects({
|
|
6658
6654
|
model: L,
|
|
@@ -6660,7 +6656,7 @@ const Vc = (e) => {
|
|
|
6660
6656
|
fields: o.get("tree").fields,
|
|
6661
6657
|
context: {
|
|
6662
6658
|
...p == null ? void 0 : p(),
|
|
6663
|
-
...
|
|
6659
|
+
...P
|
|
6664
6660
|
}
|
|
6665
6661
|
}))[0], he = s.map((ge) => ge.id === Q ? {
|
|
6666
6662
|
...ge,
|
|
@@ -6669,7 +6665,7 @@ const Vc = (e) => {
|
|
|
6669
6665
|
treeValues: Ve
|
|
6670
6666
|
} : ge);
|
|
6671
6667
|
xe(he);
|
|
6672
|
-
},
|
|
6668
|
+
}, Me = (Q) => {
|
|
6673
6669
|
F ? Wt({
|
|
6674
6670
|
lang: g,
|
|
6675
6671
|
onOk: () => {
|
|
@@ -6699,7 +6695,7 @@ const Vc = (e) => {
|
|
|
6699
6695
|
let ae;
|
|
6700
6696
|
Q && d && (ae = {
|
|
6701
6697
|
[Q]: d
|
|
6702
|
-
}), a === "form" ?
|
|
6698
|
+
}), a === "form" ? Me(() => {
|
|
6703
6699
|
D(!0), R({
|
|
6704
6700
|
defaultValues: ae
|
|
6705
6701
|
}), b(!0);
|
|
@@ -6707,7 +6703,7 @@ const Vc = (e) => {
|
|
|
6707
6703
|
defaultValues: ae
|
|
6708
6704
|
}), b(!0));
|
|
6709
6705
|
}, te = async () => {
|
|
6710
|
-
a === "form" ?
|
|
6706
|
+
a === "form" ? Me(() => {
|
|
6711
6707
|
C(!0);
|
|
6712
6708
|
}) : C(!0);
|
|
6713
6709
|
}, Ie = async () => {
|
|
@@ -6788,7 +6784,7 @@ const Vc = (e) => {
|
|
|
6788
6784
|
fields: o.get("form").fields,
|
|
6789
6785
|
context: {
|
|
6790
6786
|
...p == null ? void 0 : p(),
|
|
6791
|
-
...
|
|
6787
|
+
...P
|
|
6792
6788
|
}
|
|
6793
6789
|
}))[0], ie = (await B.getHandler().readObjects({
|
|
6794
6790
|
model: L,
|
|
@@ -6796,7 +6792,7 @@ const Vc = (e) => {
|
|
|
6796
6792
|
fields: o.get("tree").fields,
|
|
6797
6793
|
context: {
|
|
6798
6794
|
...p == null ? void 0 : p(),
|
|
6799
|
-
...
|
|
6795
|
+
...P
|
|
6800
6796
|
}
|
|
6801
6797
|
}))[0];
|
|
6802
6798
|
ae.push({
|
|
@@ -6825,19 +6821,19 @@ const Vc = (e) => {
|
|
|
6825
6821
|
const Qe = () => {
|
|
6826
6822
|
var ae, Ve, he, ge;
|
|
6827
6823
|
if (a === "form")
|
|
6828
|
-
return Z.length === 0 ? y("noCurrentEntries") : a !== X.current && s.some((ie) => !ie.values) ? /* @__PURE__ */ n(
|
|
6824
|
+
return Z.length === 0 ? y("noCurrentEntries") : a !== X.current && s.some((ie) => !ie.values) ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(Ut, {
|
|
6829
6825
|
formView: o.get("form"),
|
|
6830
6826
|
values: (ae = Z[u]) == null ? void 0 : ae.values,
|
|
6831
6827
|
parentContext: {
|
|
6832
6828
|
...p == null ? void 0 : p(),
|
|
6833
|
-
...
|
|
6829
|
+
...P
|
|
6834
6830
|
},
|
|
6835
6831
|
model: L,
|
|
6836
6832
|
id: (Ve = Z[u]) == null ? void 0 : Ve.id,
|
|
6837
6833
|
submitMode: "values",
|
|
6838
6834
|
onFieldsChange: (ie) => {
|
|
6839
|
-
var
|
|
6840
|
-
const Ue = (
|
|
6835
|
+
var Mt;
|
|
6836
|
+
const Ue = (Mt = Z[u]) == null ? void 0 : Mt.id, st = s.map((dt) => dt.id === Ue ? {
|
|
6841
6837
|
...dt,
|
|
6842
6838
|
operation: dt.operation === "original" ? "pendingUpdate" : dt.operation,
|
|
6843
6839
|
values: {
|
|
@@ -6854,7 +6850,7 @@ const Vc = (e) => {
|
|
|
6854
6850
|
readOnly: U
|
|
6855
6851
|
});
|
|
6856
6852
|
let Q = [];
|
|
6857
|
-
if (Z.some((ie) => ie.treeValues) && (Q = k ?
|
|
6853
|
+
if (Z.some((ie) => ie.treeValues) && (Q = k ? Ot({
|
|
6858
6854
|
resultsToSort: Z.map((ie) => ie.treeValues),
|
|
6859
6855
|
sorter: k,
|
|
6860
6856
|
fields: {
|
|
@@ -6878,7 +6874,7 @@ const Vc = (e) => {
|
|
|
6878
6874
|
onChangeSort: j,
|
|
6879
6875
|
context: {
|
|
6880
6876
|
...p == null ? void 0 : p(),
|
|
6881
|
-
...
|
|
6877
|
+
...P
|
|
6882
6878
|
},
|
|
6883
6879
|
colorsForResults: K,
|
|
6884
6880
|
readonly: U
|
|
@@ -6891,7 +6887,7 @@ const Vc = (e) => {
|
|
|
6891
6887
|
domain: ie,
|
|
6892
6888
|
context: {
|
|
6893
6889
|
...p == null ? void 0 : p(),
|
|
6894
|
-
...
|
|
6890
|
+
...P
|
|
6895
6891
|
},
|
|
6896
6892
|
limit: 0
|
|
6897
6893
|
});
|
|
@@ -6905,7 +6901,7 @@ const Vc = (e) => {
|
|
|
6905
6901
|
banner: !0
|
|
6906
6902
|
});
|
|
6907
6903
|
const je = M;
|
|
6908
|
-
return w ? /* @__PURE__ */ n(
|
|
6904
|
+
return w ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
|
|
6909
6905
|
children: [/* @__PURE__ */ n(_c, {
|
|
6910
6906
|
mode: a,
|
|
6911
6907
|
title: me(),
|
|
@@ -6934,7 +6930,7 @@ const Vc = (e) => {
|
|
|
6934
6930
|
onSubmitSucceed: ye,
|
|
6935
6931
|
parentContext: {
|
|
6936
6932
|
...p == null ? void 0 : p(),
|
|
6937
|
-
...
|
|
6933
|
+
...P
|
|
6938
6934
|
},
|
|
6939
6935
|
onCancel: () => {
|
|
6940
6936
|
D(!1), b(!1);
|
|
@@ -6946,7 +6942,7 @@ const Vc = (e) => {
|
|
|
6946
6942
|
model: L,
|
|
6947
6943
|
context: {
|
|
6948
6944
|
...p == null ? void 0 : p(),
|
|
6949
|
-
...
|
|
6945
|
+
...P
|
|
6950
6946
|
},
|
|
6951
6947
|
visible: O,
|
|
6952
6948
|
onSelectValues: async (Q) => {
|
|
@@ -6971,7 +6967,7 @@ const Vc = (e) => {
|
|
|
6971
6967
|
const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = W(Le), {
|
|
6972
6968
|
getContext: h
|
|
6973
6969
|
} = p || {};
|
|
6974
|
-
|
|
6970
|
+
xt(() => {
|
|
6975
6971
|
y();
|
|
6976
6972
|
}, [t]);
|
|
6977
6973
|
const g = async (_) => o && o[_] ? o[_] : await B.getHandler().getView({
|
|
@@ -7000,7 +6996,7 @@ const Vc = (e) => {
|
|
|
7000
6996
|
c(!1);
|
|
7001
6997
|
}
|
|
7002
6998
|
};
|
|
7003
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(
|
|
6999
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n($e, {}) : f ? /* @__PURE__ */ n(Je, {
|
|
7004
7000
|
className: "mt-10",
|
|
7005
7001
|
message: f,
|
|
7006
7002
|
type: "error",
|
|
@@ -7120,7 +7116,7 @@ function $c(e) {
|
|
|
7120
7116
|
defaultActiveKey: "1",
|
|
7121
7117
|
tabPosition: t.tabPosition,
|
|
7122
7118
|
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Ec, {
|
|
7123
|
-
tab: /* @__PURE__ */
|
|
7119
|
+
tab: /* @__PURE__ */ H(ee, {
|
|
7124
7120
|
children: [o(s.icon), " ", s.label]
|
|
7125
7121
|
}),
|
|
7126
7122
|
children: /* @__PURE__ */ n(Io, {
|
|
@@ -7184,7 +7180,7 @@ const {
|
|
|
7184
7180
|
} = s || {}, [d, m] = T(!1), {
|
|
7185
7181
|
t: v
|
|
7186
7182
|
} = W(we);
|
|
7187
|
-
return a ? /* @__PURE__ */
|
|
7183
|
+
return a ? /* @__PURE__ */ H(ee, {
|
|
7188
7184
|
children: [/* @__PURE__ */ n("div", {
|
|
7189
7185
|
onClick: () => {
|
|
7190
7186
|
if (c != null && c()) {
|
|
@@ -7221,7 +7217,7 @@ const {
|
|
|
7221
7217
|
m(!1), u == null || u();
|
|
7222
7218
|
}
|
|
7223
7219
|
})]
|
|
7224
|
-
}) : /* @__PURE__ */
|
|
7220
|
+
}) : /* @__PURE__ */ H(ee, {
|
|
7225
7221
|
children: [/* @__PURE__ */ n(Se, {
|
|
7226
7222
|
gutter: 8,
|
|
7227
7223
|
wrap: !1,
|
|
@@ -7263,7 +7259,7 @@ const {
|
|
|
7263
7259
|
return /* @__PURE__ */ n(ln, {
|
|
7264
7260
|
orientation: "left",
|
|
7265
7261
|
className: "text-sm",
|
|
7266
|
-
children: (o || r) && /* @__PURE__ */
|
|
7262
|
+
children: (o || r) && /* @__PURE__ */ H(Ke, {
|
|
7267
7263
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7268
7264
|
})
|
|
7269
7265
|
});
|
|
@@ -7276,7 +7272,7 @@ const {
|
|
|
7276
7272
|
limit: s,
|
|
7277
7273
|
onClose: a
|
|
7278
7274
|
}) => {
|
|
7279
|
-
const l = ue({}), u = ue(/* @__PURE__ */ new Map()), c =
|
|
7275
|
+
const l = ue({}), u = ue(/* @__PURE__ */ new Map()), c = Ee(
|
|
7280
7276
|
async (g) => {
|
|
7281
7277
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7282
7278
|
lt(Fe("selectAtLeastOneField", r));
|
|
@@ -7298,18 +7294,18 @@ const {
|
|
|
7298
7294
|
format: g.exportType
|
|
7299
7295
|
});
|
|
7300
7296
|
a(), await new Promise((w) => setTimeout(w, 200));
|
|
7301
|
-
const _ = await
|
|
7297
|
+
const _ = await It(F);
|
|
7302
7298
|
mn(F, _.mime);
|
|
7303
7299
|
},
|
|
7304
7300
|
[r, e, o, s, t, a]
|
|
7305
|
-
), f =
|
|
7301
|
+
), f = Ee(async () => {
|
|
7306
7302
|
const g = await B.getHandler().getFields({
|
|
7307
7303
|
model: e,
|
|
7308
7304
|
context: t,
|
|
7309
7305
|
fields: []
|
|
7310
7306
|
});
|
|
7311
7307
|
return l.current["/"] = g, Or({ fields: g });
|
|
7312
|
-
}, [e, t, l]), d =
|
|
7308
|
+
}, [e, t, l]), d = Ee(
|
|
7313
7309
|
async (g) => {
|
|
7314
7310
|
const F = kn(g, l.current)[Rn(g)], _ = F.relation, w = await B.getHandler().getFields({
|
|
7315
7311
|
model: _,
|
|
@@ -7327,7 +7323,7 @@ const {
|
|
|
7327
7323
|
});
|
|
7328
7324
|
},
|
|
7329
7325
|
[l.current, e, t]
|
|
7330
|
-
), m =
|
|
7326
|
+
), m = Ee(async () => {
|
|
7331
7327
|
const g = await Yc({ model: e, context: t }), y = await Uc({
|
|
7332
7328
|
predefinedExports: g,
|
|
7333
7329
|
fields: l.current,
|
|
@@ -7346,7 +7342,7 @@ const {
|
|
|
7346
7342
|
})),
|
|
7347
7343
|
keysWithChilds: y
|
|
7348
7344
|
};
|
|
7349
|
-
}, [l.current]), v =
|
|
7345
|
+
}, [l.current]), v = Ee(
|
|
7350
7346
|
async (g) => {
|
|
7351
7347
|
const y = await h("ir.exports"), F = await h("ir.exports.line"), _ = await B.getHandler().create({
|
|
7352
7348
|
model: "ir.exports",
|
|
@@ -7370,7 +7366,7 @@ const {
|
|
|
7370
7366
|
), { ...g, id: _ };
|
|
7371
7367
|
},
|
|
7372
7368
|
[]
|
|
7373
|
-
), p =
|
|
7369
|
+
), p = Ee(
|
|
7374
7370
|
async (g) => {
|
|
7375
7371
|
await B.getHandler().delete({
|
|
7376
7372
|
model: "ir.exports",
|
|
@@ -7378,7 +7374,7 @@ const {
|
|
|
7378
7374
|
});
|
|
7379
7375
|
},
|
|
7380
7376
|
[]
|
|
7381
|
-
), h =
|
|
7377
|
+
), h = Ee(
|
|
7382
7378
|
async (g) => {
|
|
7383
7379
|
if (u.current.has(g))
|
|
7384
7380
|
return u.current.get(g);
|
|
@@ -7664,10 +7660,10 @@ var Vo = { exports: {} };
|
|
|
7664
7660
|
try {
|
|
7665
7661
|
if (["x", "X"].indexOf(D) > -1)
|
|
7666
7662
|
return new Date((D === "X" ? 1e3 : 1) * M);
|
|
7667
|
-
var k = p(D)(M), j = k.year, q = k.month, K = k.day, J = k.hours, U = k.minutes, L = k.seconds,
|
|
7663
|
+
var k = p(D)(M), j = k.year, q = k.month, K = k.day, J = k.hours, U = k.minutes, L = k.seconds, P = k.milliseconds, z = k.zone, oe = new Date(), ce = K || (j || q ? 1 : oe.getDate()), Z = j || oe.getFullYear(), X = 0;
|
|
7668
7664
|
j && !q || (X = q > 0 ? q - 1 : oe.getMonth());
|
|
7669
|
-
var fe = J || 0, xe = U || 0,
|
|
7670
|
-
return z ? new Date(Date.UTC(Z, X, ce, fe, xe,
|
|
7665
|
+
var fe = J || 0, xe = U || 0, ke = L || 0, _e = P || 0;
|
|
7666
|
+
return z ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e + 60 * z.offset * 1e3)) : N ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e)) : new Date(Z, X, ce, fe, xe, ke, _e);
|
|
7671
7667
|
} catch {
|
|
7672
7668
|
return new Date("");
|
|
7673
7669
|
}
|
|
@@ -7735,7 +7731,7 @@ const Qc = (e) => {
|
|
|
7735
7731
|
}
|
|
7736
7732
|
const m = t && l && l[0], v = t && l && l[1] && parseInt(l[1]);
|
|
7737
7733
|
c([v, void 0]), d(m);
|
|
7738
|
-
}, [t]), /* @__PURE__ */
|
|
7734
|
+
}, [t]), /* @__PURE__ */ H(Se, {
|
|
7739
7735
|
gutter: 8,
|
|
7740
7736
|
wrap: !1,
|
|
7741
7737
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -7811,11 +7807,11 @@ const Qc = (e) => {
|
|
|
7811
7807
|
i == null || i(_);
|
|
7812
7808
|
};
|
|
7813
7809
|
async function h() {
|
|
7814
|
-
const _ = await
|
|
7810
|
+
const _ = await It(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), I = d(a), E = d("name");
|
|
7815
7811
|
V.href = w, V.download = I || E, V.click();
|
|
7816
7812
|
}
|
|
7817
7813
|
async function g() {
|
|
7818
|
-
const _ = await
|
|
7814
|
+
const _ = await It(r);
|
|
7819
7815
|
mn(r, _.mime);
|
|
7820
7816
|
}
|
|
7821
7817
|
async function y(_) {
|
|
@@ -7826,9 +7822,9 @@ const Qc = (e) => {
|
|
|
7826
7822
|
function F() {
|
|
7827
7823
|
f(a, void 0), p(void 0);
|
|
7828
7824
|
}
|
|
7829
|
-
return /* @__PURE__ */
|
|
7825
|
+
return /* @__PURE__ */ H(Se, {
|
|
7830
7826
|
gutter: 8,
|
|
7831
|
-
children: [/* @__PURE__ */
|
|
7827
|
+
children: [/* @__PURE__ */ H(le, {
|
|
7832
7828
|
style: {
|
|
7833
7829
|
paddingBottom: 5
|
|
7834
7830
|
},
|
|
@@ -7847,7 +7843,7 @@ const Qc = (e) => {
|
|
|
7847
7843
|
value: v
|
|
7848
7844
|
})]
|
|
7849
7845
|
}), /* @__PURE__ */ n(le, {
|
|
7850
|
-
children: /* @__PURE__ */
|
|
7846
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
7851
7847
|
children: [/* @__PURE__ */ n(Oe, {
|
|
7852
7848
|
icon: /* @__PURE__ */ n(Nn, {}),
|
|
7853
7849
|
disabled: o,
|
|
@@ -7897,7 +7893,7 @@ function Zn(e) {
|
|
|
7897
7893
|
} = W(we);
|
|
7898
7894
|
function c() {
|
|
7899
7895
|
const m = r.map((v, p) => /* @__PURE__ */ n(He.Item, {
|
|
7900
|
-
children: /* @__PURE__ */
|
|
7896
|
+
children: /* @__PURE__ */ H(Se, {
|
|
7901
7897
|
wrap: !1,
|
|
7902
7898
|
children: [/* @__PURE__ */ n(le, {
|
|
7903
7899
|
flex: "none",
|
|
@@ -7913,7 +7909,7 @@ function Zn(e) {
|
|
|
7913
7909
|
children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
|
|
7914
7910
|
}), /* @__PURE__ */ n(le, {
|
|
7915
7911
|
flex: "none",
|
|
7916
|
-
children: /* @__PURE__ */ n(
|
|
7912
|
+
children: /* @__PURE__ */ n(At, {
|
|
7917
7913
|
style: {
|
|
7918
7914
|
opacity: t.view_id === v.view_id ? 1 : 0
|
|
7919
7915
|
}
|
|
@@ -7947,7 +7943,7 @@ function Zn(e) {
|
|
|
7947
7943
|
i(v);
|
|
7948
7944
|
});
|
|
7949
7945
|
}
|
|
7950
|
-
return /* @__PURE__ */
|
|
7946
|
+
return /* @__PURE__ */ H("div", {
|
|
7951
7947
|
style: {
|
|
7952
7948
|
display: "flex"
|
|
7953
7949
|
},
|
|
@@ -7974,7 +7970,7 @@ function Zn(e) {
|
|
|
7974
7970
|
borderTopLeftRadius: 0,
|
|
7975
7971
|
borderBottomLeftRadius: 0
|
|
7976
7972
|
},
|
|
7977
|
-
icon: /* @__PURE__ */ n(
|
|
7973
|
+
icon: /* @__PURE__ */ n(Vt, {
|
|
7978
7974
|
style: {
|
|
7979
7975
|
fontSize: "0.5em"
|
|
7980
7976
|
}
|
|
@@ -7984,7 +7980,7 @@ function Zn(e) {
|
|
|
7984
7980
|
})]
|
|
7985
7981
|
});
|
|
7986
7982
|
}
|
|
7987
|
-
function
|
|
7983
|
+
function _t(e) {
|
|
7988
7984
|
const {
|
|
7989
7985
|
icon: t,
|
|
7990
7986
|
tooltip: r,
|
|
@@ -8012,8 +8008,8 @@ function It(e) {
|
|
|
8012
8008
|
return /* @__PURE__ */ n(Bt, {
|
|
8013
8009
|
overlay: l(),
|
|
8014
8010
|
disabled: a || !i || i.length === 0,
|
|
8015
|
-
children: /* @__PURE__ */
|
|
8016
|
-
children: [t, " ", s, " ", /* @__PURE__ */ n(
|
|
8011
|
+
children: /* @__PURE__ */ H(Oe, {
|
|
8012
|
+
children: [t, " ", s, " ", /* @__PURE__ */ n(Vt, {})]
|
|
8017
8013
|
})
|
|
8018
8014
|
});
|
|
8019
8015
|
}
|
|
@@ -8027,7 +8023,7 @@ function Ge(e) {
|
|
|
8027
8023
|
label: a,
|
|
8028
8024
|
type: l = "default"
|
|
8029
8025
|
} = e;
|
|
8030
|
-
return /* @__PURE__ */
|
|
8026
|
+
return /* @__PURE__ */ H(qe, {
|
|
8031
8027
|
type: l,
|
|
8032
8028
|
tooltip: o,
|
|
8033
8029
|
onClick: t,
|
|
@@ -8092,7 +8088,7 @@ async function Ro(e, t, r) {
|
|
|
8092
8088
|
write_date: l,
|
|
8093
8089
|
write_uid: u
|
|
8094
8090
|
} = i;
|
|
8095
|
-
lt(/* @__PURE__ */
|
|
8091
|
+
lt(/* @__PURE__ */ H("div", {
|
|
8096
8092
|
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + u[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
8097
8093
|
}));
|
|
8098
8094
|
}
|
|
@@ -8103,9 +8099,9 @@ const ld = (e) => {
|
|
|
8103
8099
|
} = e, {
|
|
8104
8100
|
t: i,
|
|
8105
8101
|
lang: o
|
|
8106
|
-
} = W(we), [s, a] = T(!1), l = /* @__PURE__ */
|
|
8102
|
+
} = W(we), [s, a] = T(!1), l = /* @__PURE__ */ H(Oe, {
|
|
8107
8103
|
disabled: r,
|
|
8108
|
-
children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(
|
|
8104
|
+
children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
|
|
8109
8105
|
style: {
|
|
8110
8106
|
fontSize: 12
|
|
8111
8107
|
}
|
|
@@ -8129,12 +8125,12 @@ const ld = (e) => {
|
|
|
8129
8125
|
onOpenAttachmentDetail: l,
|
|
8130
8126
|
onListAllAttachments: u
|
|
8131
8127
|
} = e;
|
|
8132
|
-
return o ? /* @__PURE__ */ n(
|
|
8128
|
+
return o ? /* @__PURE__ */ n($e, {
|
|
8133
8129
|
style: {
|
|
8134
8130
|
padding: 20
|
|
8135
8131
|
}
|
|
8136
|
-
}) : /* @__PURE__ */
|
|
8137
|
-
children: [/* @__PURE__ */
|
|
8132
|
+
}) : /* @__PURE__ */ H(ee, {
|
|
8133
|
+
children: [/* @__PURE__ */ H("a", {
|
|
8138
8134
|
style: {
|
|
8139
8135
|
display: "block",
|
|
8140
8136
|
paddingBottom: 5
|
|
@@ -8144,7 +8140,7 @@ const ld = (e) => {
|
|
|
8144
8140
|
t(!1), u();
|
|
8145
8141
|
},
|
|
8146
8142
|
children: [/* @__PURE__ */ n(Wn, {}), " ", Fe("listAllAttachments", r)]
|
|
8147
|
-
}), /* @__PURE__ */
|
|
8143
|
+
}), /* @__PURE__ */ H("a", {
|
|
8148
8144
|
style: {
|
|
8149
8145
|
display: "block"
|
|
8150
8146
|
},
|
|
@@ -8153,12 +8149,12 @@ const ld = (e) => {
|
|
|
8153
8149
|
t(!1), s();
|
|
8154
8150
|
},
|
|
8155
8151
|
children: [/* @__PURE__ */ n(cn, {}), " ", Fe("addNewAttachment", r)]
|
|
8156
|
-
}), i.length > 0 && /* @__PURE__ */
|
|
8152
|
+
}), i.length > 0 && /* @__PURE__ */ H(ee, {
|
|
8157
8153
|
children: [/* @__PURE__ */ n("li", {
|
|
8158
8154
|
className: "ant-dropdown-menu-item-divider"
|
|
8159
8155
|
}), i.map((c) => {
|
|
8160
8156
|
const f = c.link ? Wr : Pn;
|
|
8161
|
-
return /* @__PURE__ */
|
|
8157
|
+
return /* @__PURE__ */ H(Se, {
|
|
8162
8158
|
style: {
|
|
8163
8159
|
paddingTop: 4,
|
|
8164
8160
|
paddingBottom: 4
|
|
@@ -8217,7 +8213,7 @@ function dd(e) {
|
|
|
8217
8213
|
formRef: a
|
|
8218
8214
|
} = W(Xe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
|
|
8219
8215
|
t: v
|
|
8220
|
-
} = W(we), p =
|
|
8216
|
+
} = W(we), p = Ee(async () => {
|
|
8221
8217
|
u(!0);
|
|
8222
8218
|
try {
|
|
8223
8219
|
const y = await B.getHandler().readObjects({
|
|
@@ -8236,7 +8232,7 @@ function dd(e) {
|
|
|
8236
8232
|
Ye(y);
|
|
8237
8233
|
}
|
|
8238
8234
|
u(!1);
|
|
8239
|
-
}, t), h =
|
|
8235
|
+
}, t), h = Ee(async (y) => {
|
|
8240
8236
|
if (y.link) {
|
|
8241
8237
|
window.open(y.link);
|
|
8242
8238
|
return;
|
|
@@ -8254,16 +8250,16 @@ function dd(e) {
|
|
|
8254
8250
|
}
|
|
8255
8251
|
if (m(!1), !!F)
|
|
8256
8252
|
if (F.datas) {
|
|
8257
|
-
const _ = await
|
|
8253
|
+
const _ = await It(F.datas);
|
|
8258
8254
|
mn(F.datas, _.mime);
|
|
8259
8255
|
} else
|
|
8260
8256
|
s(F);
|
|
8261
|
-
}, []), g =
|
|
8257
|
+
}, []), g = Ee(async (y) => {
|
|
8262
8258
|
s(y);
|
|
8263
8259
|
}, []);
|
|
8264
8260
|
return pe(() => {
|
|
8265
8261
|
p();
|
|
8266
|
-
}, [p]), /* @__PURE__ */
|
|
8262
|
+
}, [p]), /* @__PURE__ */ H(ee, {
|
|
8267
8263
|
children: [/* @__PURE__ */ n(ld, {
|
|
8268
8264
|
numberOfAttachments: t.length,
|
|
8269
8265
|
attachments: c,
|
|
@@ -8280,7 +8276,7 @@ function dd(e) {
|
|
|
8280
8276
|
closable: !1,
|
|
8281
8277
|
centered: !0,
|
|
8282
8278
|
maskClosable: !1,
|
|
8283
|
-
children: /* @__PURE__ */ n(
|
|
8279
|
+
children: /* @__PURE__ */ n($e, {})
|
|
8284
8280
|
})]
|
|
8285
8281
|
});
|
|
8286
8282
|
}
|
|
@@ -8315,7 +8311,7 @@ function ud({
|
|
|
8315
8311
|
} = W(Xe), {
|
|
8316
8312
|
t: b,
|
|
8317
8313
|
lang: O
|
|
8318
|
-
} = W(we), C = W(
|
|
8314
|
+
} = W(we), C = W(kt), {
|
|
8319
8315
|
processAction: $
|
|
8320
8316
|
} = C || {}, R = W(ot), {
|
|
8321
8317
|
openRelate: S,
|
|
@@ -8368,8 +8364,8 @@ function ud({
|
|
|
8368
8364
|
});
|
|
8369
8365
|
const L = u == null ? void 0 : u.filter((z) => z.id !== l);
|
|
8370
8366
|
y == null || y(L);
|
|
8371
|
-
let
|
|
8372
|
-
f > 0 && f <= u.length - 1 && (
|
|
8367
|
+
let P = 0;
|
|
8368
|
+
f > 0 && f <= u.length - 1 && (P = f - 1), L != null && L[P] ? (d == null || d(L == null ? void 0 : L[P].id), c == null || c(P)) : (d == null || d(void 0), c == null || c(void 0));
|
|
8373
8369
|
} catch (L) {
|
|
8374
8370
|
nn(JSON.stringify(L));
|
|
8375
8371
|
} finally {
|
|
@@ -8403,10 +8399,10 @@ function ud({
|
|
|
8403
8399
|
}
|
|
8404
8400
|
});
|
|
8405
8401
|
}
|
|
8406
|
-
return r ? /* @__PURE__ */
|
|
8402
|
+
return r ? /* @__PURE__ */ H(Ke, {
|
|
8407
8403
|
wrap: !0,
|
|
8408
|
-
children: [F && /* @__PURE__ */
|
|
8409
|
-
children: [/* @__PURE__ */ n(
|
|
8404
|
+
children: [F && /* @__PURE__ */ H(ee, {
|
|
8405
|
+
children: [/* @__PURE__ */ n($e, {}), Ct(), Ct()]
|
|
8410
8406
|
}), /* @__PURE__ */ n(Ao, {
|
|
8411
8407
|
disabled: a || F || p || h
|
|
8412
8408
|
}), /* @__PURE__ */ n(Ge, {
|
|
@@ -8427,7 +8423,7 @@ function ud({
|
|
|
8427
8423
|
disabled: a || l === void 0 || p || h || F,
|
|
8428
8424
|
loading: p,
|
|
8429
8425
|
onClick: j
|
|
8430
|
-
}),
|
|
8426
|
+
}), Ct(), /* @__PURE__ */ n(Ge, {
|
|
8431
8427
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
8432
8428
|
tooltip: b("showLogs"),
|
|
8433
8429
|
disabled: a || l === void 0 || p || h || F,
|
|
@@ -8445,7 +8441,7 @@ function ud({
|
|
|
8445
8441
|
w.current.fetchValues();
|
|
8446
8442
|
});
|
|
8447
8443
|
}
|
|
8448
|
-
}),
|
|
8444
|
+
}), Ct(), /* @__PURE__ */ n(Zn, {
|
|
8449
8445
|
currentView: r,
|
|
8450
8446
|
previousView: I,
|
|
8451
8447
|
availableViews: t,
|
|
@@ -8454,7 +8450,7 @@ function ud({
|
|
|
8454
8450
|
},
|
|
8455
8451
|
disabled: J,
|
|
8456
8452
|
formHasChanges: s
|
|
8457
|
-
}),
|
|
8453
|
+
}), Ct(), /* @__PURE__ */ H(Ke, {
|
|
8458
8454
|
children: [/* @__PURE__ */ n(Ge, {
|
|
8459
8455
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8460
8456
|
tooltip: b("previous"),
|
|
@@ -8472,17 +8468,17 @@ function ud({
|
|
|
8472
8468
|
D(N);
|
|
8473
8469
|
}
|
|
8474
8470
|
})]
|
|
8475
|
-
}),
|
|
8471
|
+
}), Ct(), /* @__PURE__ */ n(_t, {
|
|
8476
8472
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
8477
8473
|
disabled: J,
|
|
8478
8474
|
tooltip: b("actions"),
|
|
8479
8475
|
items: e == null ? void 0 : e.action,
|
|
8480
8476
|
onItemClick: async (L) => {
|
|
8481
|
-
!L || !(await
|
|
8477
|
+
!L || !(await St({
|
|
8482
8478
|
onFormSave: o
|
|
8483
8479
|
})).succeed || U(L);
|
|
8484
8480
|
}
|
|
8485
|
-
}), /* @__PURE__ */ n(
|
|
8481
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8486
8482
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8487
8483
|
disabled: J,
|
|
8488
8484
|
tooltip: b("reports"),
|
|
@@ -8490,24 +8486,24 @@ function ud({
|
|
|
8490
8486
|
onItemClick: async (L) => {
|
|
8491
8487
|
if (!L)
|
|
8492
8488
|
return;
|
|
8493
|
-
const
|
|
8489
|
+
const P = await St({
|
|
8494
8490
|
onFormSave: o
|
|
8495
8491
|
});
|
|
8496
|
-
!
|
|
8492
|
+
!P.succeed || U({
|
|
8497
8493
|
...L,
|
|
8498
8494
|
datas: {
|
|
8499
8495
|
...L.datas || {},
|
|
8500
|
-
ids: [
|
|
8496
|
+
ids: [P.currentId]
|
|
8501
8497
|
}
|
|
8502
8498
|
});
|
|
8503
8499
|
}
|
|
8504
|
-
}), /* @__PURE__ */ n(
|
|
8500
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8505
8501
|
icon: /* @__PURE__ */ n(jr, {}),
|
|
8506
8502
|
disabled: J,
|
|
8507
8503
|
tooltip: b("related"),
|
|
8508
8504
|
items: e == null ? void 0 : e.relate,
|
|
8509
8505
|
onItemClick: async (L) => {
|
|
8510
|
-
!L || !(await
|
|
8506
|
+
!L || !(await St({
|
|
8511
8507
|
onFormSave: o
|
|
8512
8508
|
})).succeed || S({
|
|
8513
8509
|
relateData: L,
|
|
@@ -8521,39 +8517,39 @@ function ud({
|
|
|
8521
8517
|
disabled: J,
|
|
8522
8518
|
attachments: _,
|
|
8523
8519
|
onAddNewAttachment: async () => {
|
|
8524
|
-
const L = await
|
|
8520
|
+
const L = await St({
|
|
8525
8521
|
onFormSave: o
|
|
8526
8522
|
});
|
|
8527
8523
|
if (!L.succeed)
|
|
8528
8524
|
return;
|
|
8529
|
-
const
|
|
8525
|
+
const P = L.currentId, z = m;
|
|
8530
8526
|
A({
|
|
8531
8527
|
model: "ir.attachment",
|
|
8532
8528
|
values: {
|
|
8533
|
-
selection_associated_object: `${z},${
|
|
8529
|
+
selection_associated_object: `${z},${P}`
|
|
8534
8530
|
},
|
|
8535
8531
|
forced_values: {
|
|
8536
8532
|
res_model: z,
|
|
8537
|
-
res_id:
|
|
8533
|
+
res_id: P
|
|
8538
8534
|
},
|
|
8539
8535
|
initialViewType: "form"
|
|
8540
8536
|
});
|
|
8541
8537
|
},
|
|
8542
8538
|
onListAllAttachments: async () => {
|
|
8543
|
-
const L = await
|
|
8539
|
+
const L = await St({
|
|
8544
8540
|
onFormSave: o
|
|
8545
8541
|
});
|
|
8546
8542
|
if (!L.succeed)
|
|
8547
8543
|
return;
|
|
8548
|
-
const
|
|
8544
|
+
const P = L.currentId;
|
|
8549
8545
|
A({
|
|
8550
8546
|
model: "ir.attachment",
|
|
8551
|
-
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${
|
|
8547
|
+
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${P}`]],
|
|
8552
8548
|
initialViewType: "tree"
|
|
8553
8549
|
});
|
|
8554
8550
|
},
|
|
8555
8551
|
onViewAttachmentDetails: async (L) => {
|
|
8556
|
-
!(await
|
|
8552
|
+
!(await St({
|
|
8557
8553
|
onFormSave: o
|
|
8558
8554
|
})).succeed || A({
|
|
8559
8555
|
model: "ir.attachment",
|
|
@@ -8564,12 +8560,12 @@ function ud({
|
|
|
8564
8560
|
})]
|
|
8565
8561
|
}) : null;
|
|
8566
8562
|
}
|
|
8567
|
-
function
|
|
8563
|
+
function Ct() {
|
|
8568
8564
|
return /* @__PURE__ */ n("div", {
|
|
8569
8565
|
className: "inline-block w-2"
|
|
8570
8566
|
});
|
|
8571
8567
|
}
|
|
8572
|
-
async function
|
|
8568
|
+
async function St({
|
|
8573
8569
|
onFormSave: e
|
|
8574
8570
|
}) {
|
|
8575
8571
|
const t = await (e == null ? void 0 : e());
|
|
@@ -8607,14 +8603,14 @@ const {
|
|
|
8607
8603
|
const y = (F) => {
|
|
8608
8604
|
i == null || i(F.target.value);
|
|
8609
8605
|
};
|
|
8610
|
-
return /* @__PURE__ */
|
|
8606
|
+
return /* @__PURE__ */ H(Se, {
|
|
8611
8607
|
gutter: 8,
|
|
8612
8608
|
wrap: !1,
|
|
8613
8609
|
align: "middle",
|
|
8614
8610
|
children: [l ? null : /* @__PURE__ */ n(le, {
|
|
8615
8611
|
flex: "32px",
|
|
8616
8612
|
children: v ? /* @__PURE__ */ n(Oe, {
|
|
8617
|
-
icon: /* @__PURE__ */ n(
|
|
8613
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
8618
8614
|
onClick: () => {
|
|
8619
8615
|
o(r) && (p(!1), g(!1));
|
|
8620
8616
|
},
|
|
@@ -8708,7 +8704,7 @@ const {
|
|
|
8708
8704
|
destroyOnClose: !0,
|
|
8709
8705
|
onCancel: i,
|
|
8710
8706
|
maskClosable: !1,
|
|
8711
|
-
children: /* @__PURE__ */
|
|
8707
|
+
children: /* @__PURE__ */ H(nt, {
|
|
8712
8708
|
layout: "vertical",
|
|
8713
8709
|
onFinish: a,
|
|
8714
8710
|
autoComplete: "off",
|
|
@@ -8729,7 +8725,7 @@ const {
|
|
|
8729
8725
|
align: "middle",
|
|
8730
8726
|
justify: "end",
|
|
8731
8727
|
children: /* @__PURE__ */ n(le, {
|
|
8732
|
-
children: /* @__PURE__ */
|
|
8728
|
+
children: /* @__PURE__ */ H(Ke, {
|
|
8733
8729
|
children: [/* @__PURE__ */ n(Oe, {
|
|
8734
8730
|
icon: /* @__PURE__ */ n(jt, {}),
|
|
8735
8731
|
htmlType: "button",
|
|
@@ -8741,7 +8737,7 @@ const {
|
|
|
8741
8737
|
style: {
|
|
8742
8738
|
marginLeft: 15
|
|
8743
8739
|
},
|
|
8744
|
-
icon: /* @__PURE__ */ n(
|
|
8740
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
8745
8741
|
htmlType: "submit",
|
|
8746
8742
|
type: "primary",
|
|
8747
8743
|
disabled: o,
|
|
@@ -8762,7 +8758,7 @@ function Mo(e) {
|
|
|
8762
8758
|
} = e, {
|
|
8763
8759
|
token: i
|
|
8764
8760
|
} = gd();
|
|
8765
|
-
return /* @__PURE__ */
|
|
8761
|
+
return /* @__PURE__ */ H("div", {
|
|
8766
8762
|
style: {
|
|
8767
8763
|
position: "relative"
|
|
8768
8764
|
},
|
|
@@ -8811,7 +8807,7 @@ function yd({
|
|
|
8811
8807
|
previousView: c,
|
|
8812
8808
|
setPreviousView: f
|
|
8813
8809
|
} = W(Xe);
|
|
8814
|
-
return /* @__PURE__ */
|
|
8810
|
+
return /* @__PURE__ */ H(Ke, {
|
|
8815
8811
|
wrap: !0,
|
|
8816
8812
|
children: [/* @__PURE__ */ n(Mo, {
|
|
8817
8813
|
icon: /* @__PURE__ */ n(qr, {
|
|
@@ -8870,7 +8866,7 @@ function yn(e) {
|
|
|
8870
8866
|
} = vd();
|
|
8871
8867
|
function m() {
|
|
8872
8868
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8873
|
-
return s ? u === 0 ? /* @__PURE__ */
|
|
8869
|
+
return s ? u === 0 ? /* @__PURE__ */ H(ee, {
|
|
8874
8870
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8875
8871
|
copyable: {
|
|
8876
8872
|
icon: /* @__PURE__ */ n(Un, {
|
|
@@ -8881,7 +8877,7 @@ function yn(e) {
|
|
|
8881
8877
|
},
|
|
8882
8878
|
children: s
|
|
8883
8879
|
}), ")"]
|
|
8884
|
-
}) : /* @__PURE__ */
|
|
8880
|
+
}) : /* @__PURE__ */ H(ee, {
|
|
8885
8881
|
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", u, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8886
8882
|
copyable: !0,
|
|
8887
8883
|
children: s
|
|
@@ -8889,14 +8885,14 @@ function yn(e) {
|
|
|
8889
8885
|
}) : "";
|
|
8890
8886
|
if ((o == null ? void 0 : o.type) === "tree" && c) {
|
|
8891
8887
|
if (c.length === 1)
|
|
8892
|
-
return /* @__PURE__ */
|
|
8888
|
+
return /* @__PURE__ */ H(ee, {
|
|
8893
8889
|
children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8894
8890
|
copyable: !0,
|
|
8895
8891
|
children: c[0].id
|
|
8896
8892
|
}), ")"]
|
|
8897
8893
|
});
|
|
8898
8894
|
if (c.length > 1)
|
|
8899
|
-
return /* @__PURE__ */
|
|
8895
|
+
return /* @__PURE__ */ H(ee, {
|
|
8900
8896
|
children: [c.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Xt, {
|
|
8901
8897
|
copyable: {
|
|
8902
8898
|
text: c.map((v) => v.id).join(", ")
|
|
@@ -8906,13 +8902,13 @@ function yn(e) {
|
|
|
8906
8902
|
}
|
|
8907
8903
|
return null;
|
|
8908
8904
|
}
|
|
8909
|
-
return /* @__PURE__ */
|
|
8905
|
+
return /* @__PURE__ */ H("div", {
|
|
8910
8906
|
style: {
|
|
8911
8907
|
position: "sticky",
|
|
8912
8908
|
top: 80,
|
|
8913
8909
|
zIndex: 3
|
|
8914
8910
|
},
|
|
8915
|
-
children: [/* @__PURE__ */
|
|
8911
|
+
children: [/* @__PURE__ */ H(Se, {
|
|
8916
8912
|
className: "shadow-md",
|
|
8917
8913
|
style: {
|
|
8918
8914
|
padding: "1em",
|
|
@@ -8920,7 +8916,7 @@ function yn(e) {
|
|
|
8920
8916
|
backgroundColor: d.colorPrimaryBg
|
|
8921
8917
|
},
|
|
8922
8918
|
align: "middle",
|
|
8923
|
-
children: [/* @__PURE__ */
|
|
8919
|
+
children: [/* @__PURE__ */ H(le, {
|
|
8924
8920
|
flex: 2,
|
|
8925
8921
|
children: [/* @__PURE__ */ n(wd, {
|
|
8926
8922
|
level: 3,
|
|
@@ -9006,7 +9002,7 @@ const bd = (e) => {
|
|
|
9006
9002
|
limit: E,
|
|
9007
9003
|
setLimit: x
|
|
9008
9004
|
});
|
|
9009
|
-
return !r || !t ? null : /* @__PURE__ */
|
|
9005
|
+
return !r || !t ? null : /* @__PURE__ */ H(ee, {
|
|
9010
9006
|
children: [/* @__PURE__ */ n(yn, {
|
|
9011
9007
|
title: t.name,
|
|
9012
9008
|
children: /* @__PURE__ */ n(yd, {
|
|
@@ -9032,7 +9028,7 @@ const bd = (e) => {
|
|
|
9032
9028
|
searchVisible: g,
|
|
9033
9029
|
searchValues: O,
|
|
9034
9030
|
showLimitOptions: !1
|
|
9035
|
-
}), k ? /* @__PURE__ */ n(
|
|
9031
|
+
}), k ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(gn, {
|
|
9036
9032
|
ref: u,
|
|
9037
9033
|
view_id: t.view_id,
|
|
9038
9034
|
model: i,
|
|
@@ -9057,7 +9053,7 @@ const bd = (e) => {
|
|
|
9057
9053
|
setResults: d,
|
|
9058
9054
|
setCurrentItemIndex: m
|
|
9059
9055
|
} = e;
|
|
9060
|
-
return t ? /* @__PURE__ */
|
|
9056
|
+
return t ? /* @__PURE__ */ H(ee, {
|
|
9061
9057
|
children: [/* @__PURE__ */ n(yn, {
|
|
9062
9058
|
children: /* @__PURE__ */ n(ud, {
|
|
9063
9059
|
toolbar: a == null ? void 0 : a.toolbar
|
|
@@ -9103,7 +9099,7 @@ function Cd(e) {
|
|
|
9103
9099
|
form: s,
|
|
9104
9100
|
onFinish: u,
|
|
9105
9101
|
autoComplete: "off",
|
|
9106
|
-
children: /* @__PURE__ */
|
|
9102
|
+
children: /* @__PURE__ */ H(Se, {
|
|
9107
9103
|
align: "middle",
|
|
9108
9104
|
justify: "end",
|
|
9109
9105
|
children: [/* @__PURE__ */ n(le, {
|
|
@@ -9183,7 +9179,7 @@ function Td(e) {
|
|
|
9183
9179
|
} = W(Sd), {
|
|
9184
9180
|
t: $,
|
|
9185
9181
|
lang: R
|
|
9186
|
-
} = W(we), S = W(
|
|
9182
|
+
} = W(we), S = W(kt), {
|
|
9187
9183
|
processAction: A
|
|
9188
9184
|
} = S || {}, [M, D] = T(!1), N = y !== void 0 && y.trim().length > 0;
|
|
9189
9185
|
function k() {
|
|
@@ -9245,11 +9241,9 @@ function Td(e) {
|
|
|
9245
9241
|
}
|
|
9246
9242
|
});
|
|
9247
9243
|
}
|
|
9248
|
-
return /* @__PURE__ */
|
|
9244
|
+
return /* @__PURE__ */ H(Ke, {
|
|
9249
9245
|
wrap: !0,
|
|
9250
|
-
children: [
|
|
9251
|
-
children: [/* @__PURE__ */ n(ke, {}), yt(), yt()]
|
|
9252
|
-
}), b ? null : /* @__PURE__ */ P(ee, {
|
|
9246
|
+
children: [b ? null : /* @__PURE__ */ H(ee, {
|
|
9253
9247
|
children: [/* @__PURE__ */ n(Cd, {
|
|
9254
9248
|
disabled: l || a || F,
|
|
9255
9249
|
searchText: y,
|
|
@@ -9269,7 +9263,7 @@ function Td(e) {
|
|
|
9269
9263
|
},
|
|
9270
9264
|
disabled: l || a || F,
|
|
9271
9265
|
badgeNumber: v == null ? void 0 : v.length
|
|
9272
|
-
}),
|
|
9266
|
+
}), $t(), /* @__PURE__ */ n(Ao, {
|
|
9273
9267
|
disabled: F
|
|
9274
9268
|
}), /* @__PURE__ */ n(Ge, {
|
|
9275
9269
|
icon: /* @__PURE__ */ n(Un, {}),
|
|
@@ -9283,7 +9277,7 @@ function Td(e) {
|
|
|
9283
9277
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9284
9278
|
loading: a,
|
|
9285
9279
|
onClick: k
|
|
9286
|
-
}),
|
|
9280
|
+
}), $t()]
|
|
9287
9281
|
}), /* @__PURE__ */ n(Ge, {
|
|
9288
9282
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
9289
9283
|
tooltip: $("showLogs"),
|
|
@@ -9301,8 +9295,8 @@ function Td(e) {
|
|
|
9301
9295
|
var U;
|
|
9302
9296
|
(U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9303
9297
|
}
|
|
9304
|
-
}), !b && /* @__PURE__ */
|
|
9305
|
-
children: [
|
|
9298
|
+
}), !b && /* @__PURE__ */ H(ee, {
|
|
9299
|
+
children: [$t(), /* @__PURE__ */ n(Zn, {
|
|
9306
9300
|
currentView: r,
|
|
9307
9301
|
availableViews: t,
|
|
9308
9302
|
onChangeView: (U) => {
|
|
@@ -9311,7 +9305,7 @@ function Td(e) {
|
|
|
9311
9305
|
previousView: w,
|
|
9312
9306
|
disabled: F
|
|
9313
9307
|
})]
|
|
9314
|
-
}),
|
|
9308
|
+
}), $t(), /* @__PURE__ */ n(_t, {
|
|
9315
9309
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9316
9310
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9317
9311
|
tooltip: $("actions"),
|
|
@@ -9319,7 +9313,7 @@ function Td(e) {
|
|
|
9319
9313
|
onItemClick: (U) => {
|
|
9320
9314
|
!U || K(U);
|
|
9321
9315
|
}
|
|
9322
|
-
}), /* @__PURE__ */ n(
|
|
9316
|
+
}), /* @__PURE__ */ n(_t, {
|
|
9323
9317
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9324
9318
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9325
9319
|
tooltip: $("reports"),
|
|
@@ -9333,10 +9327,10 @@ function Td(e) {
|
|
|
9333
9327
|
}
|
|
9334
9328
|
});
|
|
9335
9329
|
}
|
|
9336
|
-
}), C && /* @__PURE__ */
|
|
9337
|
-
children: [
|
|
9330
|
+
}), C && /* @__PURE__ */ H(ee, {
|
|
9331
|
+
children: [$t(), /* @__PURE__ */ n(_t, {
|
|
9338
9332
|
icon: /* @__PURE__ */ n($r, {
|
|
9339
|
-
component: () => /* @__PURE__ */
|
|
9333
|
+
component: () => /* @__PURE__ */ H("svg", {
|
|
9340
9334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9341
9335
|
className: "icon icon-tabler icon-tabler-database-export",
|
|
9342
9336
|
width: "1em",
|
|
@@ -9373,8 +9367,8 @@ function Td(e) {
|
|
|
9373
9367
|
}],
|
|
9374
9368
|
onItemClick: (U) => {
|
|
9375
9369
|
if (U.id === "print_screen") {
|
|
9376
|
-
let L = (o == null ? void 0 : o.map((
|
|
9377
|
-
L.length === 0 && (L = (V == null ? void 0 : V.map((
|
|
9370
|
+
let L = (o == null ? void 0 : o.map((P) => P.id)) || [];
|
|
9371
|
+
L.length === 0 && (L = (V == null ? void 0 : V.map((P) => P.id)) || []), K({
|
|
9378
9372
|
id: -1,
|
|
9379
9373
|
model: c,
|
|
9380
9374
|
report_name: "printscreen.list",
|
|
@@ -9404,7 +9398,7 @@ function Td(e) {
|
|
|
9404
9398
|
})]
|
|
9405
9399
|
});
|
|
9406
9400
|
}
|
|
9407
|
-
function
|
|
9401
|
+
function $t() {
|
|
9408
9402
|
return /* @__PURE__ */ n("div", {
|
|
9409
9403
|
className: "inline-block w-2"
|
|
9410
9404
|
});
|
|
@@ -9428,7 +9422,7 @@ const Fd = (e) => {
|
|
|
9428
9422
|
currentView: p,
|
|
9429
9423
|
setPreviousView: h
|
|
9430
9424
|
} = W(Xe);
|
|
9431
|
-
return t ? /* @__PURE__ */
|
|
9425
|
+
return t ? /* @__PURE__ */ H(ee, {
|
|
9432
9426
|
children: [/* @__PURE__ */ n(yn, {
|
|
9433
9427
|
children: /* @__PURE__ */ n(Td, {
|
|
9434
9428
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
@@ -9483,7 +9477,7 @@ function _d() {
|
|
|
9483
9477
|
} = W(Xn), {
|
|
9484
9478
|
t: o
|
|
9485
9479
|
} = W(we);
|
|
9486
|
-
return /* @__PURE__ */
|
|
9480
|
+
return /* @__PURE__ */ H(Ke, {
|
|
9487
9481
|
wrap: !0,
|
|
9488
9482
|
children: [/* @__PURE__ */ n(Ge, {
|
|
9489
9483
|
icon: /* @__PURE__ */ n(Ci, {
|
|
@@ -9528,7 +9522,7 @@ const Dd = (e) => {
|
|
|
9528
9522
|
} = e, r = ue(), i = W(ot), {
|
|
9529
9523
|
openShortcut: o
|
|
9530
9524
|
} = i || {};
|
|
9531
|
-
return t ? /* @__PURE__ */
|
|
9525
|
+
return t ? /* @__PURE__ */ H(Od, {
|
|
9532
9526
|
dashboardRef: r,
|
|
9533
9527
|
openAction: (s) => {
|
|
9534
9528
|
o(s);
|
|
@@ -9577,13 +9571,13 @@ function Ad(e, t) {
|
|
|
9577
9571
|
treeExpandable: h = !1,
|
|
9578
9572
|
limit: g
|
|
9579
9573
|
} = e, [y, F] = T(), [_, w] = T([]), [V, I] = T(!0), E = m || void 0, [x, b] = T(E), [O, C] = T([]), [$, R] = T(), [S, A] = T([]), [M, D] = T(), [N, k] = T(0), [j, q] = T(!1), [K, J] = T(!1), [U, L] = T(), {
|
|
9580
|
-
t:
|
|
9574
|
+
t: P
|
|
9581
9575
|
} = W(we), z = ue(), oe = ue(), ce = W(ot), {
|
|
9582
9576
|
setCurrentView: Z,
|
|
9583
9577
|
setCurrentId: X,
|
|
9584
9578
|
tabs: fe,
|
|
9585
9579
|
activeKey: xe,
|
|
9586
|
-
openAction:
|
|
9580
|
+
openAction: ke,
|
|
9587
9581
|
onRemoveTab: _e
|
|
9588
9582
|
} = ce || {};
|
|
9589
9583
|
Li("ctrl+g,command+g", (te) => {
|
|
@@ -9595,7 +9589,7 @@ function Ad(e, t) {
|
|
|
9595
9589
|
function se(te) {
|
|
9596
9590
|
F(te), Z == null || Z(te);
|
|
9597
9591
|
}
|
|
9598
|
-
|
|
9592
|
+
wt(t, () => ({
|
|
9599
9593
|
canWeClose: Re
|
|
9600
9594
|
}));
|
|
9601
9595
|
const be = async () => {
|
|
@@ -9688,7 +9682,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9688
9682
|
async function Te() {
|
|
9689
9683
|
xe === u && (y.type === "form" && !await z.current.cancelUnsavedChanges() || q(!0));
|
|
9690
9684
|
}
|
|
9691
|
-
async function
|
|
9685
|
+
async function Me(te) {
|
|
9692
9686
|
var Ce;
|
|
9693
9687
|
J(!0);
|
|
9694
9688
|
const Ie = S.findIndex((De) => De.id === te);
|
|
@@ -9703,14 +9697,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9703
9697
|
} catch {
|
|
9704
9698
|
}
|
|
9705
9699
|
if (!Ne) {
|
|
9706
|
-
J(!1), q(!1), lt(
|
|
9700
|
+
J(!1), q(!1), lt(P("idNotFound"));
|
|
9707
9701
|
return;
|
|
9708
9702
|
}
|
|
9709
9703
|
} else
|
|
9710
9704
|
Ne = S[Ie];
|
|
9711
9705
|
J(!1), q(!1);
|
|
9712
9706
|
const ye = s.find((De) => De[1] === "form");
|
|
9713
|
-
|
|
9707
|
+
ke({
|
|
9714
9708
|
domain: [],
|
|
9715
9709
|
context: o,
|
|
9716
9710
|
model: i,
|
|
@@ -9787,7 +9781,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9787
9781
|
se(te);
|
|
9788
9782
|
}
|
|
9789
9783
|
}
|
|
9790
|
-
return V ? /* @__PURE__ */ n(
|
|
9784
|
+
return V ? /* @__PURE__ */ n($e, {}) : y ? /* @__PURE__ */ H(il, {
|
|
9791
9785
|
title: a,
|
|
9792
9786
|
currentView: y,
|
|
9793
9787
|
setCurrentView: se,
|
|
@@ -9810,11 +9804,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9810
9804
|
setSelectedRowItems: C,
|
|
9811
9805
|
setSearchTreeNameSearch: L,
|
|
9812
9806
|
searchTreeNameSearch: U,
|
|
9813
|
-
goToResourceId:
|
|
9807
|
+
goToResourceId: Me,
|
|
9814
9808
|
limit: g,
|
|
9815
9809
|
children: [Ze(), /* @__PURE__ */ n(pd, {
|
|
9816
9810
|
visible: j,
|
|
9817
|
-
onIdSubmitted:
|
|
9811
|
+
onIdSubmitted: Me,
|
|
9818
9812
|
isSearching: K,
|
|
9819
9813
|
onCancel: () => {
|
|
9820
9814
|
q(!1);
|
|
@@ -9822,7 +9816,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9822
9816
|
})]
|
|
9823
9817
|
}) : null;
|
|
9824
9818
|
}
|
|
9825
|
-
const Eo =
|
|
9819
|
+
const Eo = vt(Ad);
|
|
9826
9820
|
async function Rd({
|
|
9827
9821
|
actionId: e,
|
|
9828
9822
|
rootContext: t = {},
|
|
@@ -9831,7 +9825,7 @@ async function Rd({
|
|
|
9831
9825
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await B.getHandler().getActionData({
|
|
9832
9826
|
action: o,
|
|
9833
9827
|
context: t
|
|
9834
|
-
}), a =
|
|
9828
|
+
}), a = yt({
|
|
9835
9829
|
context: s.context,
|
|
9836
9830
|
values: r,
|
|
9837
9831
|
fields: {}
|
|
@@ -9924,7 +9918,7 @@ const kd = Hi(Bi), Md = (e) => {
|
|
|
9924
9918
|
} = e, {
|
|
9925
9919
|
token: s
|
|
9926
9920
|
} = Ed();
|
|
9927
|
-
return /* @__PURE__ */
|
|
9921
|
+
return /* @__PURE__ */ H("div", {
|
|
9928
9922
|
className: "shadow-md",
|
|
9929
9923
|
style: {
|
|
9930
9924
|
height: "100%",
|
|
@@ -9935,7 +9929,7 @@ const kd = Hi(Bi), Md = (e) => {
|
|
|
9935
9929
|
backgroundColor: "white",
|
|
9936
9930
|
borderRadius: s.borderRadius
|
|
9937
9931
|
},
|
|
9938
|
-
children: [/* @__PURE__ */
|
|
9932
|
+
children: [/* @__PURE__ */ H(Se, {
|
|
9939
9933
|
align: "middle",
|
|
9940
9934
|
style: {
|
|
9941
9935
|
borderBottom: "1px solid #ddd",
|
|
@@ -9990,8 +9984,8 @@ function Pd(e) {
|
|
|
9990
9984
|
}, U = async () => {
|
|
9991
9985
|
const X = K.current.length > 0 ? K.current : s, fe = hn(E.current, X), {
|
|
9992
9986
|
colors: xe
|
|
9993
|
-
} =
|
|
9994
|
-
totalItems:
|
|
9987
|
+
} = Ft(p), {
|
|
9988
|
+
totalItems: ke,
|
|
9995
9989
|
results: _e,
|
|
9996
9990
|
attrsEvaluated: de
|
|
9997
9991
|
} = await B.getHandler().searchForTree({
|
|
@@ -10006,7 +10000,7 @@ function Pd(e) {
|
|
|
10006
10000
|
}
|
|
10007
10001
|
});
|
|
10008
10002
|
R(Qt(de));
|
|
10009
|
-
const se =
|
|
10003
|
+
const se = Ot({
|
|
10010
10004
|
resultsToSort: _e,
|
|
10011
10005
|
sorter: S,
|
|
10012
10006
|
fields: {
|
|
@@ -10015,7 +10009,7 @@ function Pd(e) {
|
|
|
10015
10009
|
}
|
|
10016
10010
|
});
|
|
10017
10011
|
q(!1), C(se);
|
|
10018
|
-
const be = await
|
|
10012
|
+
const be = await ke;
|
|
10019
10013
|
b(be);
|
|
10020
10014
|
}, L = async () => {
|
|
10021
10015
|
try {
|
|
@@ -10027,7 +10021,7 @@ function Pd(e) {
|
|
|
10027
10021
|
pe(() => {
|
|
10028
10022
|
!f || a && L();
|
|
10029
10023
|
}, [F, w, f, a]);
|
|
10030
|
-
const
|
|
10024
|
+
const P = async (X) => {
|
|
10031
10025
|
d(!1), c(!0), k(void 0);
|
|
10032
10026
|
try {
|
|
10033
10027
|
X === "action" ? await z() : await oe(), d(!0);
|
|
@@ -10059,7 +10053,7 @@ function Pd(e) {
|
|
|
10059
10053
|
h(fe);
|
|
10060
10054
|
};
|
|
10061
10055
|
pe(() => {
|
|
10062
|
-
t ?
|
|
10056
|
+
t ? P("action") : r && P("model");
|
|
10063
10057
|
}, [t, r]);
|
|
10064
10058
|
const ce = (X) => {
|
|
10065
10059
|
const {
|
|
@@ -10070,7 +10064,7 @@ function Pd(e) {
|
|
|
10070
10064
|
model: m,
|
|
10071
10065
|
treeView: p
|
|
10072
10066
|
});
|
|
10073
|
-
}, Z = () => !p || !g ? null : /* @__PURE__ */
|
|
10067
|
+
}, Z = () => !p || !g ? null : /* @__PURE__ */ H("div", {
|
|
10074
10068
|
style: {
|
|
10075
10069
|
overflowY: "scroll"
|
|
10076
10070
|
},
|
|
@@ -10093,7 +10087,7 @@ function Pd(e) {
|
|
|
10093
10087
|
sorter: S,
|
|
10094
10088
|
onChangeSort: (X) => {
|
|
10095
10089
|
A == null || A(X);
|
|
10096
|
-
const fe =
|
|
10090
|
+
const fe = Ot({
|
|
10097
10091
|
resultsToSort: O,
|
|
10098
10092
|
sorter: X,
|
|
10099
10093
|
fields: {
|
|
@@ -10111,7 +10105,7 @@ function Pd(e) {
|
|
|
10111
10105
|
message: N,
|
|
10112
10106
|
type: "error",
|
|
10113
10107
|
banner: !0
|
|
10114
|
-
}) : u ? /* @__PURE__ */ n(
|
|
10108
|
+
}) : u ? /* @__PURE__ */ n($e, {
|
|
10115
10109
|
style: {
|
|
10116
10110
|
padding: "2rem"
|
|
10117
10111
|
}
|
|
@@ -10158,7 +10152,7 @@ function Bd(e, t) {
|
|
|
10158
10152
|
} = W(Xn), h = ue(), g = ue();
|
|
10159
10153
|
pe(() => {
|
|
10160
10154
|
y();
|
|
10161
|
-
}, [r, o, i]),
|
|
10155
|
+
}, [r, o, i]), wt(t, () => ({
|
|
10162
10156
|
refresh: () => {
|
|
10163
10157
|
y();
|
|
10164
10158
|
},
|
|
@@ -10350,12 +10344,12 @@ function Bd(e, t) {
|
|
|
10350
10344
|
const [Z, X] = ce, {
|
|
10351
10345
|
actionId: fe,
|
|
10352
10346
|
actionType: xe,
|
|
10353
|
-
title:
|
|
10347
|
+
title: ke,
|
|
10354
10348
|
model: _e
|
|
10355
10349
|
} = O, de = {
|
|
10356
10350
|
action_id: fe,
|
|
10357
10351
|
action_type: xe,
|
|
10358
|
-
name:
|
|
10352
|
+
name: ke,
|
|
10359
10353
|
res_id: oe.id,
|
|
10360
10354
|
res_model: _e,
|
|
10361
10355
|
view_id: Z,
|
|
@@ -10385,7 +10379,7 @@ function Bd(e, t) {
|
|
|
10385
10379
|
limit: J
|
|
10386
10380
|
});
|
|
10387
10381
|
}
|
|
10388
|
-
let
|
|
10382
|
+
let P;
|
|
10389
10383
|
const z = N.find((oe) => {
|
|
10390
10384
|
const [, ce] = oe;
|
|
10391
10385
|
return ce === "tree";
|
|
@@ -10397,7 +10391,7 @@ function Bd(e, t) {
|
|
|
10397
10391
|
title: fe,
|
|
10398
10392
|
model: xe
|
|
10399
10393
|
} = O;
|
|
10400
|
-
|
|
10394
|
+
P = {
|
|
10401
10395
|
action_id: Z,
|
|
10402
10396
|
action_type: X,
|
|
10403
10397
|
name: fe,
|
|
@@ -10411,14 +10405,14 @@ function Bd(e, t) {
|
|
|
10411
10405
|
id: R,
|
|
10412
10406
|
title: D,
|
|
10413
10407
|
parms: U,
|
|
10414
|
-
action:
|
|
10408
|
+
action: P,
|
|
10415
10409
|
openAction: v,
|
|
10416
10410
|
children: L
|
|
10417
10411
|
}, R);
|
|
10418
10412
|
})
|
|
10419
10413
|
});
|
|
10420
10414
|
}
|
|
10421
|
-
const jd =
|
|
10415
|
+
const jd = vt(Bd), Kd = (e) => {
|
|
10422
10416
|
const {
|
|
10423
10417
|
ooui: t
|
|
10424
10418
|
} = e;
|
|
@@ -10445,7 +10439,7 @@ const jd = wt(Bd), Kd = (e) => {
|
|
|
10445
10439
|
} = r, y = W(Le), {
|
|
10446
10440
|
getContext: F
|
|
10447
10441
|
} = y || {};
|
|
10448
|
-
|
|
10442
|
+
xt(() => {
|
|
10449
10443
|
w();
|
|
10450
10444
|
}, [o]);
|
|
10451
10445
|
const _ = (x) => {
|
|
@@ -10459,7 +10453,7 @@ const jd = wt(Bd), Kd = (e) => {
|
|
|
10459
10453
|
if (r.domain) {
|
|
10460
10454
|
const b = await B.getHandler().evalDomain({
|
|
10461
10455
|
domain: r.domain,
|
|
10462
|
-
values:
|
|
10456
|
+
values: Rt({
|
|
10463
10457
|
fields: y == null ? void 0 : y.getFields(),
|
|
10464
10458
|
values: y.getPlainValues()
|
|
10465
10459
|
}),
|
|
@@ -10518,8 +10512,8 @@ const jd = wt(Bd), Kd = (e) => {
|
|
|
10518
10512
|
});
|
|
10519
10513
|
}), _(b);
|
|
10520
10514
|
};
|
|
10521
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(
|
|
10522
|
-
children: /* @__PURE__ */
|
|
10515
|
+
return f && a.length === 0 ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(ee, {
|
|
10516
|
+
children: /* @__PURE__ */ H("div", {
|
|
10523
10517
|
className: "flex flex-row",
|
|
10524
10518
|
children: [/* @__PURE__ */ n(Nt.Group, {
|
|
10525
10519
|
value: a.length ? s : [],
|
|
@@ -10537,7 +10531,7 @@ const jd = wt(Bd), Kd = (e) => {
|
|
|
10537
10531
|
})
|
|
10538
10532
|
}))
|
|
10539
10533
|
})
|
|
10540
|
-
}), !p && /* @__PURE__ */
|
|
10534
|
+
}), !p && /* @__PURE__ */ H(Ke, {
|
|
10541
10535
|
children: [/* @__PURE__ */ n(Oe, {
|
|
10542
10536
|
onClick: V,
|
|
10543
10537
|
disabled: s.length == a.length,
|
|
@@ -10718,7 +10712,7 @@ function ru(e, t) {
|
|
|
10718
10712
|
closable: !0,
|
|
10719
10713
|
content: /* @__PURE__ */ n(nu, {})
|
|
10720
10714
|
}]), f = ue(/* @__PURE__ */ new Map()), d = ue();
|
|
10721
|
-
|
|
10715
|
+
wt(t, () => ({
|
|
10722
10716
|
retrieveAndOpenAction: p,
|
|
10723
10717
|
openShortcut: y
|
|
10724
10718
|
}));
|
|
@@ -10751,7 +10745,7 @@ function ru(e, t) {
|
|
|
10751
10745
|
Ye("Action type not supported");
|
|
10752
10746
|
return;
|
|
10753
10747
|
}
|
|
10754
|
-
const [C, $] = w.split(","), R = parseInt($), S =
|
|
10748
|
+
const [C, $] = w.split(","), R = parseInt($), S = yt({
|
|
10755
10749
|
context: O.context,
|
|
10756
10750
|
values: i,
|
|
10757
10751
|
fields: {}
|
|
@@ -10771,8 +10765,8 @@ function ru(e, t) {
|
|
|
10771
10765
|
limit: q
|
|
10772
10766
|
} = O, K = j === "tree", J = [];
|
|
10773
10767
|
for (const L of D) {
|
|
10774
|
-
const [
|
|
10775
|
-
if (
|
|
10768
|
+
const [P, z] = L;
|
|
10769
|
+
if (P)
|
|
10776
10770
|
J.push(L);
|
|
10777
10771
|
else if (z === "dashboard")
|
|
10778
10772
|
J.push([void 0, "dashboard"]);
|
|
@@ -10782,7 +10776,7 @@ function ru(e, t) {
|
|
|
10782
10776
|
} = await B.getHandler().getView({
|
|
10783
10777
|
model: M,
|
|
10784
10778
|
type: z,
|
|
10785
|
-
id:
|
|
10779
|
+
id: P,
|
|
10786
10780
|
context: {
|
|
10787
10781
|
...o,
|
|
10788
10782
|
...S
|
|
@@ -10793,16 +10787,16 @@ function ru(e, t) {
|
|
|
10793
10787
|
}
|
|
10794
10788
|
let U;
|
|
10795
10789
|
if (E) {
|
|
10796
|
-
const [L,
|
|
10790
|
+
const [L, P] = J.find(([z, oe]) => oe === E);
|
|
10797
10791
|
U = {
|
|
10798
10792
|
id: L,
|
|
10799
|
-
type:
|
|
10793
|
+
type: P
|
|
10800
10794
|
};
|
|
10801
10795
|
} else {
|
|
10802
|
-
const [L,
|
|
10796
|
+
const [L, P] = J[0];
|
|
10803
10797
|
U = {
|
|
10804
10798
|
id: L,
|
|
10805
|
-
type:
|
|
10799
|
+
type: P
|
|
10806
10800
|
};
|
|
10807
10801
|
}
|
|
10808
10802
|
_({
|
|
@@ -10858,7 +10852,7 @@ function ru(e, t) {
|
|
|
10858
10852
|
} = w, [M, D] = $[0], N = {
|
|
10859
10853
|
id: M,
|
|
10860
10854
|
type: D
|
|
10861
|
-
}, k =
|
|
10855
|
+
}, k = yt({
|
|
10862
10856
|
context: O,
|
|
10863
10857
|
values: {
|
|
10864
10858
|
...I,
|
|
@@ -10867,7 +10861,7 @@ function ru(e, t) {
|
|
|
10867
10861
|
fields: V
|
|
10868
10862
|
}), j = C ? await B.getHandler().evalDomain({
|
|
10869
10863
|
domain: C,
|
|
10870
|
-
values:
|
|
10864
|
+
values: Rt({
|
|
10871
10865
|
fields: V,
|
|
10872
10866
|
values: {
|
|
10873
10867
|
...I,
|
|
@@ -10905,7 +10899,7 @@ function ru(e, t) {
|
|
|
10905
10899
|
} = w, b = `${I},${V}`, O = await B.getHandler().getActionData({
|
|
10906
10900
|
action: b,
|
|
10907
10901
|
context: o
|
|
10908
|
-
}), C =
|
|
10902
|
+
}), C = yt({
|
|
10909
10903
|
context: O.context,
|
|
10910
10904
|
values: i,
|
|
10911
10905
|
fields: {}
|
|
@@ -10925,24 +10919,24 @@ function ru(e, t) {
|
|
|
10925
10919
|
limit: N
|
|
10926
10920
|
} = O, k = D === "tree", j = [];
|
|
10927
10921
|
for (const U of S) {
|
|
10928
|
-
const [L,
|
|
10922
|
+
const [L, P] = U;
|
|
10929
10923
|
if (L)
|
|
10930
10924
|
j.push(U);
|
|
10931
|
-
else if (
|
|
10925
|
+
else if (P === "dashboard")
|
|
10932
10926
|
j.push([void 0, "dashboard"]);
|
|
10933
10927
|
else {
|
|
10934
10928
|
const {
|
|
10935
10929
|
view_id: z
|
|
10936
10930
|
} = await B.getHandler().getView({
|
|
10937
10931
|
model: R,
|
|
10938
|
-
type:
|
|
10932
|
+
type: P,
|
|
10939
10933
|
id: L,
|
|
10940
10934
|
context: {
|
|
10941
10935
|
...o,
|
|
10942
10936
|
...C
|
|
10943
10937
|
}
|
|
10944
10938
|
});
|
|
10945
|
-
j.push([z,
|
|
10939
|
+
j.push([z, P]);
|
|
10946
10940
|
}
|
|
10947
10941
|
}
|
|
10948
10942
|
let q, K;
|
|
@@ -11092,7 +11086,7 @@ function ru(e, t) {
|
|
|
11092
11086
|
})
|
|
11093
11087
|
});
|
|
11094
11088
|
}
|
|
11095
|
-
const Mu =
|
|
11089
|
+
const Mu = vt(ru), {
|
|
11096
11090
|
useToken: ou
|
|
11097
11091
|
} = Pe;
|
|
11098
11092
|
function iu(e) {
|
|
@@ -11105,7 +11099,7 @@ function iu(e) {
|
|
|
11105
11099
|
} = e, {
|
|
11106
11100
|
token: a
|
|
11107
11101
|
} = ou(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
11108
|
-
return /* @__PURE__ */
|
|
11102
|
+
return /* @__PURE__ */ H("div", {
|
|
11109
11103
|
onClick: () => {
|
|
11110
11104
|
!o && s(i);
|
|
11111
11105
|
},
|
|
@@ -11272,9 +11266,9 @@ const {
|
|
|
11272
11266
|
model: "ir.ui.view_sc"
|
|
11273
11267
|
});
|
|
11274
11268
|
}
|
|
11275
|
-
const R = /* @__PURE__ */
|
|
11269
|
+
const R = /* @__PURE__ */ H(He, {
|
|
11276
11270
|
onClick: b,
|
|
11277
|
-
children: [/* @__PURE__ */
|
|
11271
|
+
children: [/* @__PURE__ */ H("div", {
|
|
11278
11272
|
style: {
|
|
11279
11273
|
width: 300,
|
|
11280
11274
|
padding: 5,
|
|
@@ -11302,7 +11296,7 @@ const {
|
|
|
11302
11296
|
})
|
|
11303
11297
|
})
|
|
11304
11298
|
})]
|
|
11305
|
-
}), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(
|
|
11299
|
+
}), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n($e, {
|
|
11306
11300
|
style: {
|
|
11307
11301
|
padding: "1rem"
|
|
11308
11302
|
}
|
|
@@ -11326,7 +11320,7 @@ const {
|
|
|
11326
11320
|
title: M,
|
|
11327
11321
|
type: D
|
|
11328
11322
|
}) {
|
|
11329
|
-
return /* @__PURE__ */
|
|
11323
|
+
return /* @__PURE__ */ H(Se, {
|
|
11330
11324
|
wrap: !1,
|
|
11331
11325
|
children: [/* @__PURE__ */ n(le, {
|
|
11332
11326
|
flex: "none",
|
|
@@ -11364,7 +11358,7 @@ const {
|
|
|
11364
11358
|
}
|
|
11365
11359
|
await x(), a(!s);
|
|
11366
11360
|
}
|
|
11367
|
-
return /* @__PURE__ */
|
|
11361
|
+
return /* @__PURE__ */ H(ee, {
|
|
11368
11362
|
children: [/* @__PURE__ */ n(Oe, {
|
|
11369
11363
|
type: s ? "primary" : "default",
|
|
11370
11364
|
icon: s ? /* @__PURE__ */ n(Hr, {
|
|
@@ -11388,7 +11382,7 @@ const {
|
|
|
11388
11382
|
borderTopLeftRadius: 0,
|
|
11389
11383
|
borderBottomLeftRadius: 0
|
|
11390
11384
|
},
|
|
11391
|
-
icon: /* @__PURE__ */ n(
|
|
11385
|
+
icon: /* @__PURE__ */ n(Vt, {
|
|
11392
11386
|
style: {
|
|
11393
11387
|
fontSize: "0.5em"
|
|
11394
11388
|
}
|