@gisce/react-ooui 1.4.2-rc.0 → 1.4.2
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 +212 -218
- 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 +13 -13
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as
|
|
2
|
-
import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as Ie, Dropdown as Bt, Menu as He, Spin as
|
|
3
|
-
import { Label as
|
|
1
|
+
import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as $e, forwardRef as wt, useImperativeHandle as bt } from "react";
|
|
2
|
+
import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as Ie, Dropdown as Bt, Menu as He, Spin as Le, Divider as ln, Space as Ye, Input as nt, Select as xt, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as ei, Card as ti, Tag as Dr, message as xn, DatePicker as Mn, TimePicker as Vr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Ar, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
|
|
3
|
+
import { Label as Vt, Field as In, Tree as Rr, Reference as ci, Selection as $n, Many2one as kr, Boolean as di, Container as ui, parseContext as vt, Form as Mr, Integer as _n, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Er, graphProcessor as $r, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
|
|
4
4
|
import * as or from "@ant-design/icons";
|
|
5
|
-
import Lr, { QuestionCircleOutlined as Nr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as
|
|
5
|
+
import Lr, { QuestionCircleOutlined as Nr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as At, WarningOutlined as Pr, CloseOutlined as jt, CheckOutlined as Rt, TranslationOutlined as Hr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Br, StarOutlined as jr, UpOutlined as hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as Kr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Yr, RightOutlined as Wr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Ur, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Gr, ReloadOutlined as dn, EditOutlined as qr, FilterOutlined as zr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as Ii } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
7
7
|
import { jsxs as P, jsx as n, Fragment as ne } from "react/jsx-runtime";
|
|
8
8
|
import * as ir from "@tabler/icons-react";
|
|
@@ -11,7 +11,7 @@ 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 Di, Column as Vi, Pie as Ai } from "@ant-design/plots";
|
|
14
|
-
import
|
|
14
|
+
import Ct from "use-deep-compare-effect";
|
|
15
15
|
import { Table as Ri } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as ki } from "file-type-buffer-browser";
|
|
17
17
|
import { isPresetStatusColor as Mi } from "antd/lib/_util/colors";
|
|
@@ -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 Vt({
|
|
386
386
|
name: c + "_label",
|
|
387
387
|
string: f,
|
|
388
388
|
help: u,
|
|
@@ -704,7 +704,7 @@ const Zr = (e) => {
|
|
|
704
704
|
children: /* @__PURE__ */ P(Bt.Button, {
|
|
705
705
|
disabled: !a || v,
|
|
706
706
|
onClick: V,
|
|
707
|
-
icon: /* @__PURE__ */ n(
|
|
707
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
708
708
|
type: f ? "primary" : void 0,
|
|
709
709
|
overlay: /* @__PURE__ */ n(os, {
|
|
710
710
|
ooui: i,
|
|
@@ -944,7 +944,7 @@ const Xr = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return u ? /* @__PURE__ */ n(
|
|
947
|
+
return u ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
948
948
|
children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Ce, {
|
|
949
949
|
justify: "end",
|
|
950
950
|
children: /* @__PURE__ */ P(Ye, {
|
|
@@ -954,7 +954,7 @@ const Xr = (e) => {
|
|
|
954
954
|
disabled: v,
|
|
955
955
|
children: d("cancel")
|
|
956
956
|
}), /* @__PURE__ */ n(Ie, {
|
|
957
|
-
icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(
|
|
957
|
+
icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Rt, {}),
|
|
958
958
|
disabled: v,
|
|
959
959
|
onClick: D,
|
|
960
960
|
style: {
|
|
@@ -1121,7 +1121,7 @@ const {
|
|
|
1121
1121
|
defaultSeed: fs
|
|
1122
1122
|
} = Pe, ms = us(fs), {
|
|
1123
1123
|
Option: hs
|
|
1124
|
-
} =
|
|
1124
|
+
} = xt, to = (e) => {
|
|
1125
1125
|
const {
|
|
1126
1126
|
ooui: t
|
|
1127
1127
|
} = e, {
|
|
@@ -1151,7 +1151,7 @@ const {
|
|
|
1151
1151
|
children: m
|
|
1152
1152
|
}, u);
|
|
1153
1153
|
});
|
|
1154
|
-
return /* @__PURE__ */ n(a && !s ? ps :
|
|
1154
|
+
return /* @__PURE__ */ n(a && !s ? ps : xt, {
|
|
1155
1155
|
disabled: s,
|
|
1156
1156
|
onChange: r,
|
|
1157
1157
|
value: i,
|
|
@@ -1160,7 +1160,7 @@ const {
|
|
|
1160
1160
|
showSearch: !0,
|
|
1161
1161
|
children: d
|
|
1162
1162
|
});
|
|
1163
|
-
}, ps = Kt(
|
|
1163
|
+
}, ps = Kt(xt)`
|
|
1164
1164
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1165
1165
|
background-color: ${ms.colorPrimaryBg};
|
|
1166
1166
|
}
|
|
@@ -1223,16 +1223,16 @@ var Rs = As, ks = Rs, Ms = /^\s+/;
|
|
|
1223
1223
|
function Es(e) {
|
|
1224
1224
|
return e && e.slice(0, ks(e) + 1).replace(Ms, "");
|
|
1225
1225
|
}
|
|
1226
|
-
var $s = Es, Ls = oo, Ns = Ls.Symbol, io = Ns, dr = io, so = Object.prototype, Ps = so.hasOwnProperty, Hs = so.toString,
|
|
1226
|
+
var $s = Es, Ls = oo, Ns = Ls.Symbol, io = Ns, dr = io, so = Object.prototype, Ps = so.hasOwnProperty, Hs = so.toString, Et = dr ? dr.toStringTag : void 0;
|
|
1227
1227
|
function Bs(e) {
|
|
1228
|
-
var t = Ps.call(e,
|
|
1228
|
+
var t = Ps.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 = Hs.call(e);
|
|
1235
|
-
return i && (t ? e[
|
|
1235
|
+
return i && (t ? e[Et] = r : delete e[Et]), o;
|
|
1236
1236
|
}
|
|
1237
1237
|
var js = Bs, Ks = Object.prototype, Ys = Ks.toString;
|
|
1238
1238
|
function Ws(e) {
|
|
@@ -1319,7 +1319,7 @@ function ba(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 Dt(e) {
|
|
1323
1323
|
const t = await ki(
|
|
1324
1324
|
Buffer.from(e, "base64")
|
|
1325
1325
|
);
|
|
@@ -1365,7 +1365,7 @@ const xa = (e) => {
|
|
|
1365
1365
|
i == null || i(u);
|
|
1366
1366
|
};
|
|
1367
1367
|
async function d() {
|
|
1368
|
-
const u = await
|
|
1368
|
+
const u = await Dt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`, v = document.createElement("a");
|
|
1369
1369
|
v.href = m, v.download = `image.${u == null ? void 0 : u.ext}`, v.click();
|
|
1370
1370
|
}
|
|
1371
1371
|
async function c(u) {
|
|
@@ -1452,7 +1452,7 @@ const xa = (e) => {
|
|
|
1452
1452
|
r && r(i);
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
},
|
|
1455
|
+
}, Ot = (e) => {
|
|
1456
1456
|
const t = e.arch, r = e.fields, i = new Rr(r);
|
|
1457
1457
|
return i.parse(t), i;
|
|
1458
1458
|
}, Fa = (e, t, r) => e.columns.map((o) => {
|
|
@@ -1498,7 +1498,7 @@ function co(e, t) {
|
|
|
1498
1498
|
r[i.id] = i[t];
|
|
1499
1499
|
}), r;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function It({
|
|
1502
1502
|
resultsToSort: e,
|
|
1503
1503
|
sorter: t,
|
|
1504
1504
|
fields: r
|
|
@@ -1529,7 +1529,7 @@ const zn = async (e) => {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
let f = [], u;
|
|
1531
1531
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1532
|
-
const h = (p =
|
|
1532
|
+
const h = (p = Ot(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
|
|
1533
1533
|
model: r,
|
|
1534
1534
|
ids: d,
|
|
1535
1535
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1585,7 +1585,7 @@ const zn = async (e) => {
|
|
|
1585
1585
|
} = t, [s, a] = T(!0), [l, d] = T(), [c, f] = T(/* @__PURE__ */ new Map()), u = Y(Ne), {
|
|
1586
1586
|
getContext: m
|
|
1587
1587
|
} = u || {};
|
|
1588
|
-
|
|
1588
|
+
Ct(() => {
|
|
1589
1589
|
p();
|
|
1590
1590
|
}, [t]);
|
|
1591
1591
|
const v = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
|
|
@@ -1606,7 +1606,7 @@ const zn = async (e) => {
|
|
|
1606
1606
|
a(!1);
|
|
1607
1607
|
}
|
|
1608
1608
|
};
|
|
1609
|
-
return s ? /* @__PURE__ */ n(
|
|
1609
|
+
return s ? /* @__PURE__ */ n(Le, {}) : l ? /* @__PURE__ */ n(Ze, {
|
|
1610
1610
|
className: "mt-10",
|
|
1611
1611
|
message: l,
|
|
1612
1612
|
type: "error",
|
|
@@ -1636,7 +1636,7 @@ const zn = async (e) => {
|
|
|
1636
1636
|
} = i, _ = s.filter((b) => b.values), w = Y(Ne), {
|
|
1637
1637
|
getContext: V
|
|
1638
1638
|
} = w || {};
|
|
1639
|
-
|
|
1639
|
+
Ct(() => {
|
|
1640
1640
|
E();
|
|
1641
1641
|
}, [s]);
|
|
1642
1642
|
const D = (b) => {
|
|
@@ -1675,7 +1675,7 @@ const zn = async (e) => {
|
|
|
1675
1675
|
message: d,
|
|
1676
1676
|
type: "error",
|
|
1677
1677
|
banner: !0
|
|
1678
|
-
}) : a ? /* @__PURE__ */ n(
|
|
1678
|
+
}) : a ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
1679
1679
|
children: [/* @__PURE__ */ n(tr, {
|
|
1680
1680
|
style: {
|
|
1681
1681
|
padding: "1rem"
|
|
@@ -1785,7 +1785,7 @@ const zn = async (e) => {
|
|
|
1785
1785
|
} else
|
|
1786
1786
|
r[i] = e[i];
|
|
1787
1787
|
}), r;
|
|
1788
|
-
},
|
|
1788
|
+
}, Ft = (e, t) => ka(e, t), Sn = ({
|
|
1789
1789
|
source: e,
|
|
1790
1790
|
target: t,
|
|
1791
1791
|
fields: r
|
|
@@ -1880,7 +1880,7 @@ const zn = async (e) => {
|
|
|
1880
1880
|
function yr(e, t, r) {
|
|
1881
1881
|
return r.indexOf(e) === t;
|
|
1882
1882
|
}
|
|
1883
|
-
const
|
|
1883
|
+
const kt = ({
|
|
1884
1884
|
values: e,
|
|
1885
1885
|
fields: t
|
|
1886
1886
|
}) => {
|
|
@@ -1951,7 +1951,7 @@ const Mt = ({
|
|
|
1951
1951
|
} = r, g = Y(Ne), {
|
|
1952
1952
|
getContext: y
|
|
1953
1953
|
} = g || {};
|
|
1954
|
-
|
|
1954
|
+
Ct(() => {
|
|
1955
1955
|
_();
|
|
1956
1956
|
}, [o]);
|
|
1957
1957
|
const O = (D) => {
|
|
@@ -1966,7 +1966,7 @@ const Mt = ({
|
|
|
1966
1966
|
if (p && (D = [["id", "in", s]]), r.domain) {
|
|
1967
1967
|
const C = await H.getHandler().evalDomain({
|
|
1968
1968
|
domain: r.domain,
|
|
1969
|
-
values:
|
|
1969
|
+
values: kt({
|
|
1970
1970
|
fields: g == null ? void 0 : g.getFields(),
|
|
1971
1971
|
values: g.getPlainValues()
|
|
1972
1972
|
}),
|
|
@@ -2040,7 +2040,7 @@ const Mt = ({
|
|
|
2040
2040
|
}) : /* @__PURE__ */ n(ne, {
|
|
2041
2041
|
children: /* @__PURE__ */ n("div", {
|
|
2042
2042
|
className: "flex flex-row",
|
|
2043
|
-
children: /* @__PURE__ */ n(
|
|
2043
|
+
children: /* @__PURE__ */ n(xt, {
|
|
2044
2044
|
mode: "multiple",
|
|
2045
2045
|
value: a.length ? s : [],
|
|
2046
2046
|
tagRender: V,
|
|
@@ -2161,14 +2161,14 @@ const Mt = ({
|
|
|
2161
2161
|
if (i.push(a), s(l)) {
|
|
2162
2162
|
const d = r - o;
|
|
2163
2163
|
for (let c = 0; c < d; c += 1)
|
|
2164
|
-
i.push(new
|
|
2164
|
+
i.push(new Vt({ string: "" }));
|
|
2165
2165
|
}
|
|
2166
2166
|
}), i;
|
|
2167
2167
|
}, Wa = ({
|
|
2168
2168
|
row: e,
|
|
2169
2169
|
numberOfColumns: t
|
|
2170
2170
|
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ua = (e, t) => {
|
|
2171
|
-
const r = e.map((i) => i instanceof
|
|
2171
|
+
const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
|
|
2172
2172
|
if (r.length < t) {
|
|
2173
2173
|
const i = t - r.length;
|
|
2174
2174
|
for (let o = 0; o < i; o++)
|
|
@@ -2204,7 +2204,7 @@ const Mt = ({
|
|
|
2204
2204
|
row: p,
|
|
2205
2205
|
numberOfColumns: o,
|
|
2206
2206
|
mustFillWithEmpties: r
|
|
2207
|
-
}), l = l.concat(h)), h.map((g) => (g instanceof
|
|
2207
|
+
}), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2208
2208
|
style: {
|
|
2209
2209
|
...Ka({
|
|
2210
2210
|
item: g,
|
|
@@ -2371,9 +2371,9 @@ const Mt = ({
|
|
|
2371
2371
|
setLimit: V,
|
|
2372
2372
|
searchParams: D = [],
|
|
2373
2373
|
setSearchValues: E
|
|
2374
|
-
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, I] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z =
|
|
2374
|
+
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, I] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = $e((se) => {
|
|
2375
2375
|
g == null || g([...se]), q([...se]);
|
|
2376
|
-
}, []), ie =
|
|
2376
|
+
}, []), ie = $e(() => y || j, [y, j]), Q = $e(async () => {
|
|
2377
2377
|
const se = await H.getHandler().nameSearch({
|
|
2378
2378
|
model: t,
|
|
2379
2379
|
payload: l,
|
|
@@ -2382,7 +2382,7 @@ const Mt = ({
|
|
|
2382
2382
|
context: c
|
|
2383
2383
|
});
|
|
2384
2384
|
if (k(se.length), f == null || f(se.length), se.length > 0) {
|
|
2385
|
-
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } =
|
|
2385
|
+
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = Ot(u), je = {};
|
|
2386
2386
|
De && (je.colors = De), Ve && (je.status = Ve);
|
|
2387
2387
|
const We = await H.getHandler().readEvalUiObjects({
|
|
2388
2388
|
model: t,
|
|
@@ -2393,12 +2393,12 @@ const Mt = ({
|
|
|
2393
2393
|
attrs: je
|
|
2394
2394
|
}), te = We[0];
|
|
2395
2395
|
ee.current = [...te], z(Qt(We[1])), L(gr(We[1]));
|
|
2396
|
-
const Fe = te.map((ce) => ce.id),
|
|
2396
|
+
const Fe = te.map((ce) => ce.id), Me = v !== void 0 ? It({
|
|
2397
2397
|
resultsToSort: te,
|
|
2398
2398
|
sorter: v,
|
|
2399
2399
|
fields: { ...u.fields, ...m.fields }
|
|
2400
2400
|
}) : [...ee.current];
|
|
2401
|
-
Z(
|
|
2401
|
+
Z(Me), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2402
2402
|
} else
|
|
2403
2403
|
Z([]), h == null || h(void 0);
|
|
2404
2404
|
C(!1), d.current = !0;
|
|
@@ -2414,11 +2414,11 @@ const Mt = ({
|
|
|
2414
2414
|
v,
|
|
2415
2415
|
h,
|
|
2416
2416
|
f
|
|
2417
|
-
]), J =
|
|
2417
|
+
]), J = $e(
|
|
2418
2418
|
async (se) => {
|
|
2419
|
-
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } =
|
|
2419
|
+
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(u), te = {};
|
|
2420
2420
|
je && (te.colors = je), We && (te.status = We);
|
|
2421
|
-
const { totalItems: Fe, results:
|
|
2421
|
+
const { totalItems: Fe, results: Me, attrsEvaluated: ce } = await H.getHandler().searchForTree({
|
|
2422
2422
|
params: Ve,
|
|
2423
2423
|
limit: B.current,
|
|
2424
2424
|
offset: De || M,
|
|
@@ -2427,9 +2427,9 @@ const Mt = ({
|
|
|
2427
2427
|
context: c,
|
|
2428
2428
|
attrs: te
|
|
2429
2429
|
});
|
|
2430
|
-
z(Qt(ce)), L(gr(ce)), ee.current = [...
|
|
2431
|
-
const me = v !== void 0 ?
|
|
2432
|
-
resultsToSort:
|
|
2430
|
+
z(Qt(ce)), L(gr(ce)), ee.current = [...Me];
|
|
2431
|
+
const me = v !== void 0 ? It({
|
|
2432
|
+
resultsToSort: Me,
|
|
2433
2433
|
sorter: v,
|
|
2434
2434
|
fields: { ...u.fields, ...m.fields }
|
|
2435
2435
|
}) : [...ee.current];
|
|
@@ -2460,7 +2460,7 @@ const Mt = ({
|
|
|
2460
2460
|
M,
|
|
2461
2461
|
D
|
|
2462
2462
|
]
|
|
2463
|
-
), fe =
|
|
2463
|
+
), fe = $e(
|
|
2464
2464
|
async (se) => {
|
|
2465
2465
|
try {
|
|
2466
2466
|
C(!0), a == null || a(!0), l && !d.current ? await Q() : await J(se);
|
|
@@ -2491,12 +2491,10 @@ const Mt = ({
|
|
|
2491
2491
|
v,
|
|
2492
2492
|
u
|
|
2493
2493
|
]
|
|
2494
|
-
), be =
|
|
2494
|
+
), be = $e(
|
|
2495
2495
|
(se) => {
|
|
2496
|
-
if (JSON.stringify(se) === JSON.stringify(v))
|
|
2497
|
-
return;
|
|
2498
2496
|
p == null || p(se);
|
|
2499
|
-
const Se = se !== void 0 ?
|
|
2497
|
+
const Se = se !== void 0 ? It({
|
|
2500
2498
|
resultsToSort: ie(),
|
|
2501
2499
|
sorter: se,
|
|
2502
2500
|
fields: { ...u.fields, ...m.fields }
|
|
@@ -2504,7 +2502,7 @@ const Mt = ({
|
|
|
2504
2502
|
Z(Se);
|
|
2505
2503
|
},
|
|
2506
2504
|
[p, ie, u, m, Z]
|
|
2507
|
-
),
|
|
2505
|
+
), Ee = $e(
|
|
2508
2506
|
(se) => {
|
|
2509
2507
|
const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
|
|
2510
2508
|
b || (r == null || r(void 0), i == null || i([]), E == null || E(De), o == null || o(Se), s == null || s(!1), x(!0), R(void 0), A(1), Ve && (B.current = Ve, V == null || V(Ve)), je && I(je), fe({
|
|
@@ -2525,12 +2523,12 @@ const Mt = ({
|
|
|
2525
2523
|
I,
|
|
2526
2524
|
fe
|
|
2527
2525
|
]
|
|
2528
|
-
), _e =
|
|
2526
|
+
), _e = $e(
|
|
2529
2527
|
(se) => {
|
|
2530
2528
|
C(!0), A(se), I((se - 1) * w);
|
|
2531
2529
|
},
|
|
2532
2530
|
[C, w, I, A]
|
|
2533
|
-
), Be =
|
|
2531
|
+
), Be = $e(() => {
|
|
2534
2532
|
b || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), I(0), A(1), V == null || V(w || Ht));
|
|
2535
2533
|
}, [
|
|
2536
2534
|
b,
|
|
@@ -2541,7 +2539,7 @@ const Mt = ({
|
|
|
2541
2539
|
A,
|
|
2542
2540
|
V,
|
|
2543
2541
|
w
|
|
2544
|
-
]), ge =
|
|
2542
|
+
]), ge = $e(
|
|
2545
2543
|
async (se) => {
|
|
2546
2544
|
const Se = se[(u == null ? void 0 : u.field_parent) || "child_id"], De = await H.getHandler().readObjects({
|
|
2547
2545
|
model: t,
|
|
@@ -2549,12 +2547,12 @@ const Mt = ({
|
|
|
2549
2547
|
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
2550
2548
|
context: c
|
|
2551
2549
|
});
|
|
2552
|
-
return Z([...ie(), ...De]), lo(
|
|
2550
|
+
return Z([...ie(), ...De]), lo(Ot(u), De);
|
|
2553
2551
|
},
|
|
2554
2552
|
[u, t, c, ie, Z]
|
|
2555
2553
|
);
|
|
2556
2554
|
return {
|
|
2557
|
-
submit:
|
|
2555
|
+
submit: Ee,
|
|
2558
2556
|
clear: Be,
|
|
2559
2557
|
fetchResults: fe,
|
|
2560
2558
|
tableRefreshing: b,
|
|
@@ -2598,7 +2596,7 @@ const Mt = ({
|
|
|
2598
2596
|
setSearchTreeNameSearch: E,
|
|
2599
2597
|
goToResourceId: b,
|
|
2600
2598
|
limit: C
|
|
2601
|
-
} = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, I] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [
|
|
2599
|
+
} = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, I] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [Ee, _e] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
|
|
2602
2600
|
pe(() => {
|
|
2603
2601
|
m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
|
|
2604
2602
|
}, [m]), pe(() => {
|
|
@@ -2662,7 +2660,7 @@ const Mt = ({
|
|
|
2662
2660
|
goToResourceId: b,
|
|
2663
2661
|
searchValues: fe,
|
|
2664
2662
|
setSearchValues: be,
|
|
2665
|
-
limit:
|
|
2663
|
+
limit: Ee,
|
|
2666
2664
|
setLimit: _e,
|
|
2667
2665
|
setTitle: ge
|
|
2668
2666
|
},
|
|
@@ -2697,7 +2695,7 @@ const Mt = ({
|
|
|
2697
2695
|
},
|
|
2698
2696
|
children: t
|
|
2699
2697
|
});
|
|
2700
|
-
},
|
|
2698
|
+
}, Mt = Je.createContext(null), br = async (e) => {
|
|
2701
2699
|
var t;
|
|
2702
2700
|
for (let r = 0; r < e.length; r++)
|
|
2703
2701
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2710,7 +2708,7 @@ const Mt = ({
|
|
|
2710
2708
|
} = d || {}, f = de([]), {
|
|
2711
2709
|
t: u
|
|
2712
2710
|
} = Y(we);
|
|
2713
|
-
|
|
2711
|
+
bt(t, () => ({
|
|
2714
2712
|
openActionModal: w
|
|
2715
2713
|
}));
|
|
2716
2714
|
const [m, v] = T(!1), [p, h] = T({
|
|
@@ -2737,7 +2735,7 @@ const Mt = ({
|
|
|
2737
2735
|
ids: I
|
|
2738
2736
|
} = F || {};
|
|
2739
2737
|
let N = I || [];
|
|
2740
|
-
const k = typeof $ == "string" ?
|
|
2738
|
+
const k = typeof $ == "string" ? vt({
|
|
2741
2739
|
context: $,
|
|
2742
2740
|
fields: C,
|
|
2743
2741
|
values: S
|
|
@@ -2767,7 +2765,7 @@ const Mt = ({
|
|
|
2767
2765
|
id: E
|
|
2768
2766
|
}), b.state && s.current === !0) {
|
|
2769
2767
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2770
|
-
const C = await
|
|
2768
|
+
const C = await Dt(b.result);
|
|
2771
2769
|
mn(b.result, C.mime);
|
|
2772
2770
|
}
|
|
2773
2771
|
} catch (C) {
|
|
@@ -2810,7 +2808,7 @@ const Mt = ({
|
|
|
2810
2808
|
context: S
|
|
2811
2809
|
}))[0]);
|
|
2812
2810
|
const R = {
|
|
2813
|
-
...typeof (x == null ? void 0 : x.context) == "string" ?
|
|
2811
|
+
...typeof (x == null ? void 0 : x.context) == "string" ? vt({
|
|
2814
2812
|
context: x.context,
|
|
2815
2813
|
fields: b,
|
|
2816
2814
|
values: {
|
|
@@ -2823,7 +2821,7 @@ const Mt = ({
|
|
|
2823
2821
|
let F = [];
|
|
2824
2822
|
if (x.domain && (F = await H.getHandler().evalDomain({
|
|
2825
2823
|
domain: x.domain,
|
|
2826
|
-
values:
|
|
2824
|
+
values: kt({
|
|
2827
2825
|
fields: b,
|
|
2828
2826
|
values: {
|
|
2829
2827
|
...C,
|
|
@@ -2922,7 +2920,7 @@ const Mt = ({
|
|
|
2922
2920
|
});
|
|
2923
2921
|
}
|
|
2924
2922
|
return /* @__PURE__ */ n(ne, {
|
|
2925
|
-
children: /* @__PURE__ */ n(
|
|
2923
|
+
children: /* @__PURE__ */ n(Mt.Provider, {
|
|
2926
2924
|
value: {
|
|
2927
2925
|
processAction: O,
|
|
2928
2926
|
globalValues: i
|
|
@@ -2935,7 +2933,7 @@ const Mt = ({
|
|
|
2935
2933
|
closable: !1,
|
|
2936
2934
|
centered: !0,
|
|
2937
2935
|
maskClosable: !1,
|
|
2938
|
-
children: /* @__PURE__ */ n(
|
|
2936
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
2939
2937
|
}), /* @__PURE__ */ n(Gt, {
|
|
2940
2938
|
buttonModal: !0,
|
|
2941
2939
|
parentContext: p.context,
|
|
@@ -3014,7 +3012,7 @@ async function ul({
|
|
|
3014
3012
|
initialView: a
|
|
3015
3013
|
};
|
|
3016
3014
|
}
|
|
3017
|
-
const fl =
|
|
3015
|
+
const fl = wt(dl), ml = ({
|
|
3018
3016
|
error: e,
|
|
3019
3017
|
className: t
|
|
3020
3018
|
}) => {
|
|
@@ -3067,7 +3065,7 @@ function pl(e, t) {
|
|
|
3067
3065
|
t: b,
|
|
3068
3066
|
lang: C
|
|
3069
3067
|
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [I, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < hl, be = Y(Ne), {
|
|
3070
|
-
activeId:
|
|
3068
|
+
activeId: Ee,
|
|
3071
3069
|
getPlainValues: _e
|
|
3072
3070
|
} = be || {}, Be = Y(Qe), {
|
|
3073
3071
|
setFormIsSaving: ge = void 0,
|
|
@@ -3077,11 +3075,11 @@ function pl(e, t) {
|
|
|
3077
3075
|
setAttachments: Ve = void 0,
|
|
3078
3076
|
title: je = void 0,
|
|
3079
3077
|
setTitle: We = void 0
|
|
3080
|
-
} = (w ? Be : {}) || {}, te = Y(
|
|
3078
|
+
} = (w ? Be : {}) || {}, te = Y(Mt), {
|
|
3081
3079
|
processAction: Fe,
|
|
3082
|
-
globalValues:
|
|
3080
|
+
globalValues: Me
|
|
3083
3081
|
} = te || {};
|
|
3084
|
-
|
|
3082
|
+
bt(t, () => ({
|
|
3085
3083
|
submitForm: zt,
|
|
3086
3084
|
getFields: Xe,
|
|
3087
3085
|
getValues: Ke,
|
|
@@ -3154,8 +3152,8 @@ function pl(e, t) {
|
|
|
3154
3152
|
id: ue(),
|
|
3155
3153
|
active_id: ue(),
|
|
3156
3154
|
active_ids: [ue()],
|
|
3157
|
-
parent_id:
|
|
3158
|
-
...
|
|
3155
|
+
parent_id: Ee,
|
|
3156
|
+
...Me
|
|
3159
3157
|
};
|
|
3160
3158
|
}
|
|
3161
3159
|
const he = async (K) => {
|
|
@@ -3175,11 +3173,11 @@ function pl(e, t) {
|
|
|
3175
3173
|
fields: k
|
|
3176
3174
|
})).length !== 0, xe = (K) => {
|
|
3177
3175
|
const G = M.getFieldsValue(!0);
|
|
3178
|
-
return
|
|
3176
|
+
return Ft(G, K);
|
|
3179
3177
|
}, ke = (K, G) => {
|
|
3180
3178
|
qt({
|
|
3181
3179
|
values: {
|
|
3182
|
-
...
|
|
3180
|
+
...Ft(M.getFieldsValue(!0), k),
|
|
3183
3181
|
[K]: G
|
|
3184
3182
|
},
|
|
3185
3183
|
fields: k,
|
|
@@ -3223,7 +3221,7 @@ function pl(e, t) {
|
|
|
3223
3221
|
}), O && (G = {
|
|
3224
3222
|
...$a(O),
|
|
3225
3223
|
...G
|
|
3226
|
-
}), ee.current =
|
|
3224
|
+
}), ee.current = Ft(G, re), qt({
|
|
3227
3225
|
values: G,
|
|
3228
3226
|
fields: re,
|
|
3229
3227
|
reset: !0,
|
|
@@ -3265,7 +3263,7 @@ function pl(e, t) {
|
|
|
3265
3263
|
const yt = {
|
|
3266
3264
|
...re ? {} : M.getFieldsValue(!0),
|
|
3267
3265
|
...K
|
|
3268
|
-
}, wn =
|
|
3266
|
+
}, wn = Ft(yt, G), Xo = Object.keys(G).map((bn) => {
|
|
3269
3267
|
const Qo = wn[bn] !== void 0 ? wn[bn] : void 0;
|
|
3270
3268
|
return {
|
|
3271
3269
|
name: bn,
|
|
@@ -3408,7 +3406,7 @@ function pl(e, t) {
|
|
|
3408
3406
|
}) && K !== !0)
|
|
3409
3407
|
return;
|
|
3410
3408
|
{
|
|
3411
|
-
const oe =
|
|
3409
|
+
const oe = Ft(M.getFieldsValue(!0), k);
|
|
3412
3410
|
Z.current = oe, d == null || d(oe), se == null || se(!0), Ko(re);
|
|
3413
3411
|
}
|
|
3414
3412
|
}
|
|
@@ -3504,7 +3502,7 @@ function pl(e, t) {
|
|
|
3504
3502
|
ce == null || ce(ue(), Ke(), X());
|
|
3505
3503
|
else if (re.type) {
|
|
3506
3504
|
let oe = {};
|
|
3507
|
-
re.context && (oe =
|
|
3505
|
+
re.context && (oe = vt({
|
|
3508
3506
|
context: re.context,
|
|
3509
3507
|
fields: k,
|
|
3510
3508
|
values: Ke()
|
|
@@ -3603,7 +3601,7 @@ function pl(e, t) {
|
|
|
3603
3601
|
Ue(oe);
|
|
3604
3602
|
}
|
|
3605
3603
|
}
|
|
3606
|
-
const Jo = () => !F && !$ ? /* @__PURE__ */ n(
|
|
3604
|
+
const Jo = () => !F && !$ ? /* @__PURE__ */ n(Le, {}) : !r && !p || !_ ? null : /* @__PURE__ */ n(ne, {
|
|
3607
3605
|
children: /* @__PURE__ */ n(ts, {
|
|
3608
3606
|
getValues: Ke,
|
|
3609
3607
|
getPlainValues: at,
|
|
@@ -3647,7 +3645,7 @@ function pl(e, t) {
|
|
|
3647
3645
|
}), /* @__PURE__ */ n(Ie, {
|
|
3648
3646
|
disabled: S || f,
|
|
3649
3647
|
loading: S,
|
|
3650
|
-
icon: /* @__PURE__ */ n(
|
|
3648
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
3651
3649
|
onClick: async () => {
|
|
3652
3650
|
await zt();
|
|
3653
3651
|
},
|
|
@@ -3675,7 +3673,7 @@ function pl(e, t) {
|
|
|
3675
3673
|
})
|
|
3676
3674
|
}) : null;
|
|
3677
3675
|
}
|
|
3678
|
-
const Ut =
|
|
3676
|
+
const Ut = wt(pl), Gt = (e) => {
|
|
3679
3677
|
const {
|
|
3680
3678
|
visible: t,
|
|
3681
3679
|
id: r,
|
|
@@ -3795,7 +3793,7 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3795
3793
|
})];
|
|
3796
3794
|
return /* @__PURE__ */ P(ne, {
|
|
3797
3795
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3798
|
-
ooui: new
|
|
3796
|
+
ooui: new Vt({
|
|
3799
3797
|
name: o + "_label",
|
|
3800
3798
|
string: i,
|
|
3801
3799
|
help: t.tooltip,
|
|
@@ -3920,7 +3918,7 @@ function bl(e) {
|
|
|
3920
3918
|
});
|
|
3921
3919
|
return /* @__PURE__ */ P(ne, {
|
|
3922
3920
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3923
|
-
ooui: new
|
|
3921
|
+
ooui: new Vt({
|
|
3924
3922
|
name: i + "_label",
|
|
3925
3923
|
string: o,
|
|
3926
3924
|
help: s,
|
|
@@ -3950,7 +3948,7 @@ const {
|
|
|
3950
3948
|
defaultSeed: Cl
|
|
3951
3949
|
} = Pe, Sl = xl(Cl), {
|
|
3952
3950
|
Option: Tl
|
|
3953
|
-
} =
|
|
3951
|
+
} = xt, Fl = (e) => {
|
|
3954
3952
|
const {
|
|
3955
3953
|
ooui: t
|
|
3956
3954
|
} = e, {
|
|
@@ -3982,7 +3980,7 @@ const {
|
|
|
3982
3980
|
value: v,
|
|
3983
3981
|
children: v
|
|
3984
3982
|
}, m);
|
|
3985
|
-
}), c = a && !s ? Il :
|
|
3983
|
+
}), c = a && !s ? Il : xt;
|
|
3986
3984
|
function f(u) {
|
|
3987
3985
|
const m = u.map((v) => {
|
|
3988
3986
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -4002,7 +4000,7 @@ const {
|
|
|
4002
4000
|
showArrow: !0,
|
|
4003
4001
|
children: d
|
|
4004
4002
|
});
|
|
4005
|
-
}, Il = Kt(
|
|
4003
|
+
}, Il = Kt(xt)`
|
|
4006
4004
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4007
4005
|
background-color: ${Sl.colorPrimaryBg};
|
|
4008
4006
|
}
|
|
@@ -4081,7 +4079,7 @@ function Dl(e) {
|
|
|
4081
4079
|
onClick: t,
|
|
4082
4080
|
children: [r ? /* @__PURE__ */ n(hi, {
|
|
4083
4081
|
className: "pr-1"
|
|
4084
|
-
}) : /* @__PURE__ */ n(
|
|
4082
|
+
}) : /* @__PURE__ */ n(At, {
|
|
4085
4083
|
className: "pr-1"
|
|
4086
4084
|
}), s(r ? "simple_search" : "advanced_search")]
|
|
4087
4085
|
})
|
|
@@ -4174,7 +4172,7 @@ function go(e) {
|
|
|
4174
4172
|
}, M))
|
|
4175
4173
|
}, F));
|
|
4176
4174
|
};
|
|
4177
|
-
|
|
4175
|
+
Ct(() => {
|
|
4178
4176
|
w(!1), V.current = new fi(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), O(V.current._advancedSearchContainer);
|
|
4179
4177
|
}, [t, r]);
|
|
4180
4178
|
const C = b(), S = (x) => {
|
|
@@ -4372,7 +4370,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4372
4370
|
t: p
|
|
4373
4371
|
} = Y(we), h = Y(st), {
|
|
4374
4372
|
openRelate: g
|
|
4375
|
-
} = h || {}, y = Y(
|
|
4373
|
+
} = h || {}, y = Y(Mt), {
|
|
4376
4374
|
processAction: O
|
|
4377
4375
|
} = y || {};
|
|
4378
4376
|
if (!t)
|
|
@@ -4396,7 +4394,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4396
4394
|
context: i
|
|
4397
4395
|
}))[0];
|
|
4398
4396
|
v({
|
|
4399
|
-
...
|
|
4397
|
+
...Ft(R, x),
|
|
4400
4398
|
active_id: t
|
|
4401
4399
|
}), c(!1);
|
|
4402
4400
|
} catch (S) {
|
|
@@ -4412,7 +4410,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4412
4410
|
style: {
|
|
4413
4411
|
padding: 15
|
|
4414
4412
|
},
|
|
4415
|
-
children: /* @__PURE__ */ n(
|
|
4413
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
4416
4414
|
})
|
|
4417
4415
|
});
|
|
4418
4416
|
if (!f || !f.toolbar)
|
|
@@ -4523,7 +4521,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4523
4521
|
value: t,
|
|
4524
4522
|
context: r,
|
|
4525
4523
|
selectionValues: i
|
|
4526
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [d, c] = t ? t.split(",") : [], f = parseInt(c), u =
|
|
4524
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [d, c] = t ? t.split(",") : [], f = parseInt(c), u = $e(async () => {
|
|
4527
4525
|
if (!t || t && o)
|
|
4528
4526
|
return;
|
|
4529
4527
|
l(!0);
|
|
@@ -4976,7 +4974,7 @@ const lt = {
|
|
|
4976
4974
|
}), Wl = (e) => /* @__PURE__ */ n($l, {
|
|
4977
4975
|
m2oField: e
|
|
4978
4976
|
}), Ul = (e) => /* @__PURE__ */ n(Gn, {
|
|
4979
|
-
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4977
|
+
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4980
4978
|
}), Gl = (e) => {
|
|
4981
4979
|
if (!e || e && e.length === 0)
|
|
4982
4980
|
return /* @__PURE__ */ n(ne, {});
|
|
@@ -5055,7 +5053,7 @@ function pn(e) {
|
|
|
5055
5053
|
setTitle: A = void 0
|
|
5056
5054
|
} = (O ? R : {}) || {};
|
|
5057
5055
|
pe(() => {
|
|
5058
|
-
S.current =
|
|
5056
|
+
S.current = Ot(o);
|
|
5059
5057
|
const z = Fa(S.current, {
|
|
5060
5058
|
boolean: Yl,
|
|
5061
5059
|
many2one: Wl,
|
|
@@ -5080,7 +5078,7 @@ function pn(e) {
|
|
|
5080
5078
|
const z = lo(S.current, s);
|
|
5081
5079
|
D(z), $.current = r;
|
|
5082
5080
|
}, [s]);
|
|
5083
|
-
const M = (t - 1) * $.current + 1, I = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5081
|
+
const M = (t - 1) * $.current + 1, I = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Le, {
|
|
5084
5082
|
className: "pb-4"
|
|
5085
5083
|
}) : /* @__PURE__ */ P(Ce, {
|
|
5086
5084
|
align: "bottom",
|
|
@@ -5123,19 +5121,17 @@ function pn(e) {
|
|
|
5123
5121
|
const U = S.current;
|
|
5124
5122
|
u && U.columns.some((L) => L.sum !== void 0) && (W = u - 30);
|
|
5125
5123
|
}
|
|
5126
|
-
return S.current === null ? /* @__PURE__ */ n(
|
|
5124
|
+
return S.current === null ? /* @__PURE__ */ n(Le, {
|
|
5127
5125
|
style: {
|
|
5128
5126
|
padding: "2rem"
|
|
5129
5127
|
}
|
|
5130
5128
|
}) : /* @__PURE__ */ P("div", {
|
|
5131
|
-
children: [k(),
|
|
5132
|
-
className: "pb-4"
|
|
5133
|
-
}), /* @__PURE__ */ n(Ri, {
|
|
5129
|
+
children: [k(), /* @__PURE__ */ n(Ri, {
|
|
5134
5130
|
height: W,
|
|
5135
5131
|
columns: q.columns,
|
|
5136
5132
|
dataSource: V,
|
|
5137
|
-
loading:
|
|
5138
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5133
|
+
loading: l,
|
|
5134
|
+
loadingComponent: /* @__PURE__ */ n(Le, {}),
|
|
5139
5135
|
onRowStyle: (z) => {
|
|
5140
5136
|
if (m[z.id])
|
|
5141
5137
|
return {
|
|
@@ -5178,7 +5174,7 @@ function nc(e, t) {
|
|
|
5178
5174
|
onChangeSelectedRowKeys: m
|
|
5179
5175
|
} = e, [v, p] = T(!1), [h, g] = T(!1), y = de(!1), [O, _] = T(), [w, V] = T(), [D, E] = T(), [b, C] = T(), [S, x] = T(200), $ = de(), {
|
|
5180
5176
|
height: R
|
|
5181
|
-
} = fn(), F = Y(
|
|
5177
|
+
} = fn(), F = Y(Mt), {
|
|
5182
5178
|
processAction: A
|
|
5183
5179
|
} = F || {}, M = Y(Qe), {
|
|
5184
5180
|
setResults: I = void 0,
|
|
@@ -5198,7 +5194,7 @@ function nc(e, t) {
|
|
|
5198
5194
|
setTreeIsLoading: J = void 0,
|
|
5199
5195
|
searchValues: fe = {},
|
|
5200
5196
|
setSearchValues: be = void 0,
|
|
5201
|
-
limit:
|
|
5197
|
+
limit: Ee = Ht,
|
|
5202
5198
|
setLimit: _e = void 0
|
|
5203
5199
|
} = (f ? M : {}) || {}, {
|
|
5204
5200
|
submit: Be,
|
|
@@ -5211,7 +5207,7 @@ function nc(e, t) {
|
|
|
5211
5207
|
offset: We,
|
|
5212
5208
|
getResults: te,
|
|
5213
5209
|
requestPageChange: Fe,
|
|
5214
|
-
changeSort:
|
|
5210
|
+
changeSort: Me,
|
|
5215
5211
|
fetchChildrenForRecord: ce,
|
|
5216
5212
|
colorsForResults: me,
|
|
5217
5213
|
statusForResults: Te,
|
|
@@ -5238,10 +5234,10 @@ function nc(e, t) {
|
|
|
5238
5234
|
domain: d,
|
|
5239
5235
|
currentId: k,
|
|
5240
5236
|
setActionViewTotalItems: ie,
|
|
5241
|
-
limit:
|
|
5237
|
+
limit: Ee,
|
|
5242
5238
|
setLimit: _e
|
|
5243
5239
|
});
|
|
5244
|
-
|
|
5240
|
+
bt(t, () => ({
|
|
5245
5241
|
refreshResults: () => {
|
|
5246
5242
|
y.current = !1, se();
|
|
5247
5243
|
},
|
|
@@ -5255,9 +5251,9 @@ function nc(e, t) {
|
|
|
5255
5251
|
try {
|
|
5256
5252
|
await Ke(), g(!0);
|
|
5257
5253
|
} catch (ke) {
|
|
5258
|
-
C(ke)
|
|
5254
|
+
C(ke);
|
|
5259
5255
|
} finally {
|
|
5260
|
-
p(!1);
|
|
5256
|
+
p(!1), J == null || J(!1);
|
|
5261
5257
|
}
|
|
5262
5258
|
}, Ke = async () => {
|
|
5263
5259
|
_(r);
|
|
@@ -5333,7 +5329,7 @@ function nc(e, t) {
|
|
|
5333
5329
|
searchFields: uo([D.search_fields, w.search_fields]),
|
|
5334
5330
|
formXml: D.arch,
|
|
5335
5331
|
onClear: ge,
|
|
5336
|
-
limit:
|
|
5332
|
+
limit: Ee,
|
|
5337
5333
|
offset: We,
|
|
5338
5334
|
isSearching: De,
|
|
5339
5335
|
onSubmit: Be,
|
|
@@ -5345,7 +5341,7 @@ function nc(e, t) {
|
|
|
5345
5341
|
}), /* @__PURE__ */ n(pn, {
|
|
5346
5342
|
context: u,
|
|
5347
5343
|
total: ue,
|
|
5348
|
-
limit:
|
|
5344
|
+
limit: Ee,
|
|
5349
5345
|
page: je,
|
|
5350
5346
|
treeView: w,
|
|
5351
5347
|
results: te(),
|
|
@@ -5360,7 +5356,7 @@ function nc(e, t) {
|
|
|
5360
5356
|
onChange: Ae
|
|
5361
5357
|
},
|
|
5362
5358
|
sorter: ee,
|
|
5363
|
-
onChangeSort:
|
|
5359
|
+
onChangeSort: Me,
|
|
5364
5360
|
onFetchChildrenForRecord: w.isExpandable ? ce : void 0,
|
|
5365
5361
|
childField: w.field_parent,
|
|
5366
5362
|
rootTree: f
|
|
@@ -5375,10 +5371,10 @@ function nc(e, t) {
|
|
|
5375
5371
|
style: c ? {} : {
|
|
5376
5372
|
display: "none"
|
|
5377
5373
|
},
|
|
5378
|
-
children: v ? /* @__PURE__ */ n(
|
|
5374
|
+
children: v ? /* @__PURE__ */ n(Le, {}) : ye()
|
|
5379
5375
|
});
|
|
5380
5376
|
}
|
|
5381
|
-
const To =
|
|
5377
|
+
const To = wt(nc), Fo = (e) => {
|
|
5382
5378
|
const {
|
|
5383
5379
|
visible: t,
|
|
5384
5380
|
onCloseModal: r,
|
|
@@ -5428,7 +5424,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5428
5424
|
},
|
|
5429
5425
|
children: m("new")
|
|
5430
5426
|
}), /* @__PURE__ */ n(Ie, {
|
|
5431
|
-
icon: /* @__PURE__ */ n(
|
|
5427
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
5432
5428
|
onClick: () => {
|
|
5433
5429
|
y();
|
|
5434
5430
|
},
|
|
@@ -5594,7 +5590,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5594
5590
|
async function z() {
|
|
5595
5591
|
c && (R.current = await H.getHandler().evalDomain({
|
|
5596
5592
|
domain: c,
|
|
5597
|
-
values:
|
|
5593
|
+
values: kt({
|
|
5598
5594
|
fields: S(),
|
|
5599
5595
|
values: C()
|
|
5600
5596
|
}),
|
|
@@ -6144,7 +6140,7 @@ const {
|
|
|
6144
6140
|
uninformedString: a,
|
|
6145
6141
|
manualIds: l
|
|
6146
6142
|
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6147
|
-
return
|
|
6143
|
+
return Ct(() => {
|
|
6148
6144
|
(async () => {
|
|
6149
6145
|
c(!0), u(void 0);
|
|
6150
6146
|
const O = Ln(o);
|
|
@@ -6285,7 +6281,7 @@ const xc = {
|
|
|
6285
6281
|
banner: !0
|
|
6286
6282
|
});
|
|
6287
6283
|
if (c)
|
|
6288
|
-
return /* @__PURE__ */ n(
|
|
6284
|
+
return /* @__PURE__ */ n(Le, {});
|
|
6289
6285
|
if (!f)
|
|
6290
6286
|
return /* @__PURE__ */ n(Ze, {
|
|
6291
6287
|
message: "No data to display",
|
|
@@ -6340,7 +6336,7 @@ const Tc = (e, t) => {
|
|
|
6340
6336
|
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), p = Y(Qe), {
|
|
6341
6337
|
setGraphIsLoading: h = void 0
|
|
6342
6338
|
} = p || {};
|
|
6343
|
-
|
|
6339
|
+
bt(t, () => ({
|
|
6344
6340
|
refresh: () => {
|
|
6345
6341
|
g();
|
|
6346
6342
|
}
|
|
@@ -6420,7 +6416,7 @@ const Tc = (e, t) => {
|
|
|
6420
6416
|
children: `Graph ${f.type} not implemented`
|
|
6421
6417
|
});
|
|
6422
6418
|
}
|
|
6423
|
-
}, gn =
|
|
6419
|
+
}, gn = wt(Tc), {
|
|
6424
6420
|
confirm: Fc
|
|
6425
6421
|
} = Ge, Oc = ({
|
|
6426
6422
|
onOk: e,
|
|
@@ -6594,8 +6590,8 @@ const kc = (e) => {
|
|
|
6594
6590
|
}
|
|
6595
6591
|
fe();
|
|
6596
6592
|
}, [s, a]);
|
|
6597
|
-
const fe =
|
|
6598
|
-
(a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) &&
|
|
6593
|
+
const fe = $e(() => {
|
|
6594
|
+
(a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Ee();
|
|
6599
6595
|
}, [s, a]);
|
|
6600
6596
|
pe(() => {
|
|
6601
6597
|
Be();
|
|
@@ -6606,7 +6602,7 @@ const kc = (e) => {
|
|
|
6606
6602
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
|
|
6607
6603
|
items: Rc(X)
|
|
6608
6604
|
});
|
|
6609
|
-
},
|
|
6605
|
+
}, Ee = async () => {
|
|
6610
6606
|
await _e(), d > Q.length - 1 && d !== 0 && c(0);
|
|
6611
6607
|
}, _e = async (X) => {
|
|
6612
6608
|
var ae, Ae, he;
|
|
@@ -6638,7 +6634,7 @@ const kc = (e) => {
|
|
|
6638
6634
|
async function Be() {
|
|
6639
6635
|
ee && (N.current = await H.getHandler().evalDomain({
|
|
6640
6636
|
domain: ee,
|
|
6641
|
-
values:
|
|
6637
|
+
values: kt({
|
|
6642
6638
|
fields: m(),
|
|
6643
6639
|
values: v()
|
|
6644
6640
|
}),
|
|
@@ -6699,7 +6695,7 @@ const kc = (e) => {
|
|
|
6699
6695
|
_c({
|
|
6700
6696
|
lang: g,
|
|
6701
6697
|
onOk: () => {
|
|
6702
|
-
a === "form" ? Fe() :
|
|
6698
|
+
a === "form" ? Fe() : Me();
|
|
6703
6699
|
}
|
|
6704
6700
|
});
|
|
6705
6701
|
return;
|
|
@@ -6707,7 +6703,7 @@ const kc = (e) => {
|
|
|
6707
6703
|
Oc({
|
|
6708
6704
|
lang: g,
|
|
6709
6705
|
onOk: () => {
|
|
6710
|
-
a === "form" ? Fe() :
|
|
6706
|
+
a === "form" ? Fe() : Me();
|
|
6711
6707
|
}
|
|
6712
6708
|
});
|
|
6713
6709
|
}, We = async () => {
|
|
@@ -6743,7 +6739,7 @@ const kc = (e) => {
|
|
|
6743
6739
|
E(X);
|
|
6744
6740
|
}
|
|
6745
6741
|
c(0), V(!1);
|
|
6746
|
-
},
|
|
6742
|
+
}, Me = async () => {
|
|
6747
6743
|
const X = Q.filter((ae) => F.includes(ae.id));
|
|
6748
6744
|
V(!0), _(!1), E(void 0);
|
|
6749
6745
|
try {
|
|
@@ -6843,7 +6839,7 @@ const kc = (e) => {
|
|
|
6843
6839
|
const Xe = () => {
|
|
6844
6840
|
var ae, Ae, he, ye;
|
|
6845
6841
|
if (a === "form")
|
|
6846
|
-
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(
|
|
6842
|
+
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
|
|
6847
6843
|
formView: o.get("form"),
|
|
6848
6844
|
values: (ae = Q[d]) == null ? void 0 : ae.values,
|
|
6849
6845
|
parentContext: {
|
|
@@ -6872,7 +6868,7 @@ const kc = (e) => {
|
|
|
6872
6868
|
readOnly: U
|
|
6873
6869
|
});
|
|
6874
6870
|
let X = [];
|
|
6875
|
-
if (Q.some((xe) => xe.treeValues) && (X = k ?
|
|
6871
|
+
if (Q.some((xe) => xe.treeValues) && (X = k ? It({
|
|
6876
6872
|
resultsToSort: Q.map((xe) => xe.treeValues),
|
|
6877
6873
|
sorter: k,
|
|
6878
6874
|
fields: {
|
|
@@ -6923,7 +6919,7 @@ const kc = (e) => {
|
|
|
6923
6919
|
banner: !0
|
|
6924
6920
|
});
|
|
6925
6921
|
const Ke = M;
|
|
6926
|
-
return w ? /* @__PURE__ */ n(
|
|
6922
|
+
return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
6927
6923
|
children: [/* @__PURE__ */ n(Vc, {
|
|
6928
6924
|
mode: a,
|
|
6929
6925
|
title: ue(),
|
|
@@ -6989,7 +6985,7 @@ const kc = (e) => {
|
|
|
6989
6985
|
const [d, c] = T(!0), [f, u] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
|
|
6990
6986
|
getContext: h
|
|
6991
6987
|
} = p || {};
|
|
6992
|
-
|
|
6988
|
+
Ct(() => {
|
|
6993
6989
|
y();
|
|
6994
6990
|
}, [t]);
|
|
6995
6991
|
const g = async (_) => o && o[_] ? o[_] : await H.getHandler().getView({
|
|
@@ -7018,7 +7014,7 @@ const kc = (e) => {
|
|
|
7018
7014
|
c(!1);
|
|
7019
7015
|
}
|
|
7020
7016
|
};
|
|
7021
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(
|
|
7017
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
|
|
7022
7018
|
className: "mt-10",
|
|
7023
7019
|
message: f,
|
|
7024
7020
|
type: "error",
|
|
@@ -7294,7 +7290,7 @@ const {
|
|
|
7294
7290
|
limit: s,
|
|
7295
7291
|
onClose: a
|
|
7296
7292
|
}) => {
|
|
7297
|
-
const l = de({}), d = de(/* @__PURE__ */ new Map()), c =
|
|
7293
|
+
const l = de({}), d = de(/* @__PURE__ */ new Map()), c = $e(
|
|
7298
7294
|
async (g) => {
|
|
7299
7295
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7300
7296
|
ct(Oe("selectAtLeastOneField", r));
|
|
@@ -7316,18 +7312,18 @@ const {
|
|
|
7316
7312
|
format: g.exportType
|
|
7317
7313
|
});
|
|
7318
7314
|
a(), await new Promise((w) => setTimeout(w, 200));
|
|
7319
|
-
const _ = await
|
|
7315
|
+
const _ = await Dt(O);
|
|
7320
7316
|
mn(O, _.mime);
|
|
7321
7317
|
},
|
|
7322
7318
|
[r, e, o, s, t, a]
|
|
7323
|
-
), f =
|
|
7319
|
+
), f = $e(async () => {
|
|
7324
7320
|
const g = await H.getHandler().getFields({
|
|
7325
7321
|
model: e,
|
|
7326
7322
|
context: t,
|
|
7327
7323
|
fields: []
|
|
7328
7324
|
});
|
|
7329
7325
|
return l.current["/"] = g, Ir({ fields: g });
|
|
7330
|
-
}, [e, t, l]), u =
|
|
7326
|
+
}, [e, t, l]), u = $e(
|
|
7331
7327
|
async (g) => {
|
|
7332
7328
|
const O = kn(g, l.current)[Rn(g)], _ = O.relation, w = await H.getHandler().getFields({
|
|
7333
7329
|
model: _,
|
|
@@ -7345,7 +7341,7 @@ const {
|
|
|
7345
7341
|
});
|
|
7346
7342
|
},
|
|
7347
7343
|
[l.current, e, t]
|
|
7348
|
-
), m =
|
|
7344
|
+
), m = $e(async () => {
|
|
7349
7345
|
const g = await Gc({ model: e, context: t }), y = await zc({
|
|
7350
7346
|
predefinedExports: g,
|
|
7351
7347
|
fields: l.current,
|
|
@@ -7364,7 +7360,7 @@ const {
|
|
|
7364
7360
|
})),
|
|
7365
7361
|
keysWithChilds: y
|
|
7366
7362
|
};
|
|
7367
|
-
}, [l.current]), v =
|
|
7363
|
+
}, [l.current]), v = $e(
|
|
7368
7364
|
async (g) => {
|
|
7369
7365
|
const y = await h("ir.exports"), O = await h("ir.exports.line"), _ = await H.getHandler().create({
|
|
7370
7366
|
model: "ir.exports",
|
|
@@ -7388,7 +7384,7 @@ const {
|
|
|
7388
7384
|
), { ...g, id: _ };
|
|
7389
7385
|
},
|
|
7390
7386
|
[]
|
|
7391
|
-
), p =
|
|
7387
|
+
), p = $e(
|
|
7392
7388
|
async (g) => {
|
|
7393
7389
|
await H.getHandler().delete({
|
|
7394
7390
|
model: "ir.exports",
|
|
@@ -7396,7 +7392,7 @@ const {
|
|
|
7396
7392
|
});
|
|
7397
7393
|
},
|
|
7398
7394
|
[]
|
|
7399
|
-
), h =
|
|
7395
|
+
), h = $e(
|
|
7400
7396
|
async (g) => {
|
|
7401
7397
|
if (d.current.has(g))
|
|
7402
7398
|
return d.current.get(g);
|
|
@@ -7684,8 +7680,8 @@ var Ro = { exports: {} };
|
|
|
7684
7680
|
return new Date((I === "X" ? 1e3 : 1) * M);
|
|
7685
7681
|
var k = p(I)(M), j = k.year, q = k.month, W = k.day, z = k.hours, U = k.minutes, L = k.seconds, B = k.milliseconds, ee = k.zone, Z = new Date(), ie = W || (j || q ? 1 : Z.getDate()), Q = j || Z.getFullYear(), J = 0;
|
|
7686
7682
|
j && !q || (J = q > 0 ? q - 1 : Z.getMonth());
|
|
7687
|
-
var fe = z || 0, be = U || 0,
|
|
7688
|
-
return ee ? new Date(Date.UTC(Q, J, ie, fe, be,
|
|
7683
|
+
var fe = z || 0, be = U || 0, Ee = L || 0, _e = B || 0;
|
|
7684
|
+
return ee ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, _e + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, _e)) : new Date(Q, J, ie, fe, be, Ee, _e);
|
|
7689
7685
|
} catch {
|
|
7690
7686
|
return new Date("");
|
|
7691
7687
|
}
|
|
@@ -7829,11 +7825,11 @@ const nd = (e) => {
|
|
|
7829
7825
|
i == null || i(_);
|
|
7830
7826
|
};
|
|
7831
7827
|
async function h() {
|
|
7832
|
-
const _ = await
|
|
7828
|
+
const _ = await Dt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), D = u(a), E = u("name");
|
|
7833
7829
|
V.href = w, V.download = D || E, V.click();
|
|
7834
7830
|
}
|
|
7835
7831
|
async function g() {
|
|
7836
|
-
const _ = await
|
|
7832
|
+
const _ = await Dt(r);
|
|
7837
7833
|
mn(r, _.mime);
|
|
7838
7834
|
}
|
|
7839
7835
|
async function y(_) {
|
|
@@ -7931,7 +7927,7 @@ function Zn(e) {
|
|
|
7931
7927
|
children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
|
|
7932
7928
|
}), /* @__PURE__ */ n(le, {
|
|
7933
7929
|
flex: "none",
|
|
7934
|
-
children: /* @__PURE__ */ n(
|
|
7930
|
+
children: /* @__PURE__ */ n(Rt, {
|
|
7935
7931
|
style: {
|
|
7936
7932
|
opacity: t.view_id === v.view_id ? 1 : 0
|
|
7937
7933
|
}
|
|
@@ -7992,7 +7988,7 @@ function Zn(e) {
|
|
|
7992
7988
|
borderTopLeftRadius: 0,
|
|
7993
7989
|
borderBottomLeftRadius: 0
|
|
7994
7990
|
},
|
|
7995
|
-
icon: /* @__PURE__ */ n(
|
|
7991
|
+
icon: /* @__PURE__ */ n(At, {
|
|
7996
7992
|
style: {
|
|
7997
7993
|
fontSize: "0.5em"
|
|
7998
7994
|
}
|
|
@@ -8002,7 +7998,7 @@ function Zn(e) {
|
|
|
8002
7998
|
})]
|
|
8003
7999
|
});
|
|
8004
8000
|
}
|
|
8005
|
-
function
|
|
8001
|
+
function _t(e) {
|
|
8006
8002
|
const {
|
|
8007
8003
|
icon: t,
|
|
8008
8004
|
tooltip: r,
|
|
@@ -8031,7 +8027,7 @@ function Dt(e) {
|
|
|
8031
8027
|
overlay: l(),
|
|
8032
8028
|
disabled: a || !i || i.length === 0,
|
|
8033
8029
|
children: /* @__PURE__ */ P(Ie, {
|
|
8034
|
-
children: [t, " ", s, " ", /* @__PURE__ */ n(
|
|
8030
|
+
children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
|
|
8035
8031
|
})
|
|
8036
8032
|
});
|
|
8037
8033
|
}
|
|
@@ -8123,7 +8119,7 @@ const ud = (e) => {
|
|
|
8123
8119
|
lang: o
|
|
8124
8120
|
} = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ P(Ie, {
|
|
8125
8121
|
disabled: r,
|
|
8126
|
-
children: [/* @__PURE__ */ n(Ur, {}), `(${t})`, /* @__PURE__ */ n(
|
|
8122
|
+
children: [/* @__PURE__ */ n(Ur, {}), `(${t})`, /* @__PURE__ */ n(At, {
|
|
8127
8123
|
style: {
|
|
8128
8124
|
fontSize: 12
|
|
8129
8125
|
}
|
|
@@ -8147,7 +8143,7 @@ const ud = (e) => {
|
|
|
8147
8143
|
onOpenAttachmentDetail: l,
|
|
8148
8144
|
onListAllAttachments: d
|
|
8149
8145
|
} = e;
|
|
8150
|
-
return o ? /* @__PURE__ */ n(
|
|
8146
|
+
return o ? /* @__PURE__ */ n(Le, {
|
|
8151
8147
|
style: {
|
|
8152
8148
|
padding: 20
|
|
8153
8149
|
}
|
|
@@ -8235,7 +8231,7 @@ function md(e) {
|
|
|
8235
8231
|
formRef: a
|
|
8236
8232
|
} = Y(Qe), [l, d] = T(!1), [c, f] = T([]), [u, m] = T(!1), {
|
|
8237
8233
|
t: v
|
|
8238
|
-
} = Y(we), p =
|
|
8234
|
+
} = Y(we), p = $e(async () => {
|
|
8239
8235
|
d(!0);
|
|
8240
8236
|
try {
|
|
8241
8237
|
const y = await H.getHandler().readObjects({
|
|
@@ -8254,7 +8250,7 @@ function md(e) {
|
|
|
8254
8250
|
Ue(y);
|
|
8255
8251
|
}
|
|
8256
8252
|
d(!1);
|
|
8257
|
-
}, t), h =
|
|
8253
|
+
}, t), h = $e(async (y) => {
|
|
8258
8254
|
if (y.link) {
|
|
8259
8255
|
window.open(y.link);
|
|
8260
8256
|
return;
|
|
@@ -8272,11 +8268,11 @@ function md(e) {
|
|
|
8272
8268
|
}
|
|
8273
8269
|
if (m(!1), !!O)
|
|
8274
8270
|
if (O.datas) {
|
|
8275
|
-
const _ = await
|
|
8271
|
+
const _ = await Dt(O.datas);
|
|
8276
8272
|
mn(O.datas, _.mime);
|
|
8277
8273
|
} else
|
|
8278
8274
|
s(O);
|
|
8279
|
-
}, []), g =
|
|
8275
|
+
}, []), g = $e(async (y) => {
|
|
8280
8276
|
s(y);
|
|
8281
8277
|
}, []);
|
|
8282
8278
|
return pe(() => {
|
|
@@ -8298,7 +8294,7 @@ function md(e) {
|
|
|
8298
8294
|
closable: !1,
|
|
8299
8295
|
centered: !0,
|
|
8300
8296
|
maskClosable: !1,
|
|
8301
|
-
children: /* @__PURE__ */ n(
|
|
8297
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
8302
8298
|
})]
|
|
8303
8299
|
});
|
|
8304
8300
|
}
|
|
@@ -8333,7 +8329,7 @@ function hd({
|
|
|
8333
8329
|
} = Y(Qe), {
|
|
8334
8330
|
t: C,
|
|
8335
8331
|
lang: S
|
|
8336
|
-
} = Y(we), x = Y(
|
|
8332
|
+
} = Y(we), x = Y(Mt), {
|
|
8337
8333
|
processAction: $
|
|
8338
8334
|
} = x || {}, R = Y(st), {
|
|
8339
8335
|
openRelate: F,
|
|
@@ -8424,7 +8420,7 @@ function hd({
|
|
|
8424
8420
|
return r ? /* @__PURE__ */ P(Ye, {
|
|
8425
8421
|
wrap: !0,
|
|
8426
8422
|
children: [O && /* @__PURE__ */ P(ne, {
|
|
8427
|
-
children: [/* @__PURE__ */ n(
|
|
8423
|
+
children: [/* @__PURE__ */ n(Le, {}), St(), St()]
|
|
8428
8424
|
}), /* @__PURE__ */ n(ko, {
|
|
8429
8425
|
disabled: a || O || p || h
|
|
8430
8426
|
}), /* @__PURE__ */ n(qe, {
|
|
@@ -8445,7 +8441,7 @@ function hd({
|
|
|
8445
8441
|
disabled: a || l === void 0 || p || h || O,
|
|
8446
8442
|
loading: p,
|
|
8447
8443
|
onClick: j
|
|
8448
|
-
}),
|
|
8444
|
+
}), St(), /* @__PURE__ */ n(qe, {
|
|
8449
8445
|
icon: /* @__PURE__ */ n(Gr, {}),
|
|
8450
8446
|
tooltip: C("showLogs"),
|
|
8451
8447
|
disabled: a || l === void 0 || p || h || O,
|
|
@@ -8463,7 +8459,7 @@ function hd({
|
|
|
8463
8459
|
w.current.fetchValues();
|
|
8464
8460
|
});
|
|
8465
8461
|
}
|
|
8466
|
-
}),
|
|
8462
|
+
}), St(), /* @__PURE__ */ n(Zn, {
|
|
8467
8463
|
currentView: r,
|
|
8468
8464
|
previousView: D,
|
|
8469
8465
|
availableViews: t,
|
|
@@ -8472,7 +8468,7 @@ function hd({
|
|
|
8472
8468
|
},
|
|
8473
8469
|
disabled: z,
|
|
8474
8470
|
formHasChanges: s
|
|
8475
|
-
}),
|
|
8471
|
+
}), St(), /* @__PURE__ */ P(Ye, {
|
|
8476
8472
|
children: [/* @__PURE__ */ n(qe, {
|
|
8477
8473
|
icon: /* @__PURE__ */ n(Yr, {}),
|
|
8478
8474
|
tooltip: C("previous"),
|
|
@@ -8490,17 +8486,17 @@ function hd({
|
|
|
8490
8486
|
I(N);
|
|
8491
8487
|
}
|
|
8492
8488
|
})]
|
|
8493
|
-
}),
|
|
8489
|
+
}), St(), /* @__PURE__ */ n(_t, {
|
|
8494
8490
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
8495
8491
|
disabled: z,
|
|
8496
8492
|
tooltip: C("actions"),
|
|
8497
8493
|
items: e == null ? void 0 : e.action,
|
|
8498
8494
|
onItemClick: async (L) => {
|
|
8499
|
-
!L || !(await
|
|
8495
|
+
!L || !(await Tt({
|
|
8500
8496
|
onFormSave: o
|
|
8501
8497
|
})).succeed || U(L);
|
|
8502
8498
|
}
|
|
8503
|
-
}), /* @__PURE__ */ n(
|
|
8499
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8504
8500
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8505
8501
|
disabled: z,
|
|
8506
8502
|
tooltip: C("reports"),
|
|
@@ -8508,7 +8504,7 @@ function hd({
|
|
|
8508
8504
|
onItemClick: async (L) => {
|
|
8509
8505
|
if (!L)
|
|
8510
8506
|
return;
|
|
8511
|
-
const B = await
|
|
8507
|
+
const B = await Tt({
|
|
8512
8508
|
onFormSave: o
|
|
8513
8509
|
});
|
|
8514
8510
|
!B.succeed || U({
|
|
@@ -8519,13 +8515,13 @@ function hd({
|
|
|
8519
8515
|
}
|
|
8520
8516
|
});
|
|
8521
8517
|
}
|
|
8522
|
-
}), /* @__PURE__ */ n(
|
|
8518
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8523
8519
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8524
8520
|
disabled: z,
|
|
8525
8521
|
tooltip: C("related"),
|
|
8526
8522
|
items: e == null ? void 0 : e.relate,
|
|
8527
8523
|
onItemClick: async (L) => {
|
|
8528
|
-
!L || !(await
|
|
8524
|
+
!L || !(await Tt({
|
|
8529
8525
|
onFormSave: o
|
|
8530
8526
|
})).succeed || F({
|
|
8531
8527
|
relateData: L,
|
|
@@ -8539,7 +8535,7 @@ function hd({
|
|
|
8539
8535
|
disabled: z,
|
|
8540
8536
|
attachments: _,
|
|
8541
8537
|
onAddNewAttachment: async () => {
|
|
8542
|
-
const L = await
|
|
8538
|
+
const L = await Tt({
|
|
8543
8539
|
onFormSave: o
|
|
8544
8540
|
});
|
|
8545
8541
|
if (!L.succeed)
|
|
@@ -8558,7 +8554,7 @@ function hd({
|
|
|
8558
8554
|
});
|
|
8559
8555
|
},
|
|
8560
8556
|
onListAllAttachments: async () => {
|
|
8561
|
-
const L = await
|
|
8557
|
+
const L = await Tt({
|
|
8562
8558
|
onFormSave: o
|
|
8563
8559
|
});
|
|
8564
8560
|
if (!L.succeed)
|
|
@@ -8571,7 +8567,7 @@ function hd({
|
|
|
8571
8567
|
});
|
|
8572
8568
|
},
|
|
8573
8569
|
onViewAttachmentDetails: async (L) => {
|
|
8574
|
-
!(await
|
|
8570
|
+
!(await Tt({
|
|
8575
8571
|
onFormSave: o
|
|
8576
8572
|
})).succeed || A({
|
|
8577
8573
|
model: "ir.attachment",
|
|
@@ -8582,12 +8578,12 @@ function hd({
|
|
|
8582
8578
|
})]
|
|
8583
8579
|
}) : null;
|
|
8584
8580
|
}
|
|
8585
|
-
function
|
|
8581
|
+
function St() {
|
|
8586
8582
|
return /* @__PURE__ */ n("div", {
|
|
8587
8583
|
className: "inline-block w-2"
|
|
8588
8584
|
});
|
|
8589
8585
|
}
|
|
8590
|
-
async function
|
|
8586
|
+
async function Tt({
|
|
8591
8587
|
onFormSave: e
|
|
8592
8588
|
}) {
|
|
8593
8589
|
const t = await (e == null ? void 0 : e());
|
|
@@ -8632,7 +8628,7 @@ const {
|
|
|
8632
8628
|
children: [l ? null : /* @__PURE__ */ n(le, {
|
|
8633
8629
|
flex: "32px",
|
|
8634
8630
|
children: v ? /* @__PURE__ */ n(Ie, {
|
|
8635
|
-
icon: /* @__PURE__ */ n(
|
|
8631
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
8636
8632
|
onClick: () => {
|
|
8637
8633
|
o(r) && (p(!1), g(!1));
|
|
8638
8634
|
},
|
|
@@ -8764,7 +8760,7 @@ const {
|
|
|
8764
8760
|
style: {
|
|
8765
8761
|
marginLeft: 15
|
|
8766
8762
|
},
|
|
8767
|
-
icon: /* @__PURE__ */ n(
|
|
8763
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
8768
8764
|
htmlType: "submit",
|
|
8769
8765
|
type: "primary",
|
|
8770
8766
|
disabled: o,
|
|
@@ -9055,7 +9051,7 @@ const Sd = (e) => {
|
|
|
9055
9051
|
searchVisible: g,
|
|
9056
9052
|
searchValues: S,
|
|
9057
9053
|
showLimitOptions: !1
|
|
9058
|
-
}), k ? /* @__PURE__ */ n(
|
|
9054
|
+
}), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
|
|
9059
9055
|
ref: d,
|
|
9060
9056
|
view_id: t.view_id,
|
|
9061
9057
|
model: i,
|
|
@@ -9206,7 +9202,7 @@ function Id(e) {
|
|
|
9206
9202
|
} = Y(Od), {
|
|
9207
9203
|
t: $,
|
|
9208
9204
|
lang: R
|
|
9209
|
-
} = Y(we), F = Y(
|
|
9205
|
+
} = Y(we), F = Y(Mt), {
|
|
9210
9206
|
processAction: A
|
|
9211
9207
|
} = F || {}, [M, I] = T(!1), N = y !== void 0 && y.trim().length > 0;
|
|
9212
9208
|
function k() {
|
|
@@ -9270,9 +9266,7 @@ function Id(e) {
|
|
|
9270
9266
|
}
|
|
9271
9267
|
return /* @__PURE__ */ P(Ye, {
|
|
9272
9268
|
wrap: !0,
|
|
9273
|
-
children: [
|
|
9274
|
-
children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
|
|
9275
|
-
}), C ? null : /* @__PURE__ */ P(ne, {
|
|
9269
|
+
children: [C ? null : /* @__PURE__ */ P(ne, {
|
|
9276
9270
|
children: [/* @__PURE__ */ n(Fd, {
|
|
9277
9271
|
disabled: l || a || O,
|
|
9278
9272
|
searchText: y,
|
|
@@ -9292,7 +9286,7 @@ function Id(e) {
|
|
|
9292
9286
|
},
|
|
9293
9287
|
disabled: l || a || O,
|
|
9294
9288
|
badgeNumber: v == null ? void 0 : v.length
|
|
9295
|
-
}),
|
|
9289
|
+
}), $t(), /* @__PURE__ */ n(ko, {
|
|
9296
9290
|
disabled: O
|
|
9297
9291
|
}), /* @__PURE__ */ n(qe, {
|
|
9298
9292
|
icon: /* @__PURE__ */ n(Un, {}),
|
|
@@ -9306,7 +9300,7 @@ function Id(e) {
|
|
|
9306
9300
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9307
9301
|
loading: a,
|
|
9308
9302
|
onClick: k
|
|
9309
|
-
}),
|
|
9303
|
+
}), $t()]
|
|
9310
9304
|
}), /* @__PURE__ */ n(qe, {
|
|
9311
9305
|
icon: /* @__PURE__ */ n(Gr, {}),
|
|
9312
9306
|
tooltip: $("showLogs"),
|
|
@@ -9325,7 +9319,7 @@ function Id(e) {
|
|
|
9325
9319
|
(U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9326
9320
|
}
|
|
9327
9321
|
}), !C && /* @__PURE__ */ P(ne, {
|
|
9328
|
-
children: [
|
|
9322
|
+
children: [$t(), /* @__PURE__ */ n(Zn, {
|
|
9329
9323
|
currentView: r,
|
|
9330
9324
|
availableViews: t,
|
|
9331
9325
|
onChangeView: (U) => {
|
|
@@ -9334,7 +9328,7 @@ function Id(e) {
|
|
|
9334
9328
|
previousView: w,
|
|
9335
9329
|
disabled: O
|
|
9336
9330
|
})]
|
|
9337
|
-
}),
|
|
9331
|
+
}), $t(), /* @__PURE__ */ n(_t, {
|
|
9338
9332
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9339
9333
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9340
9334
|
tooltip: $("actions"),
|
|
@@ -9342,7 +9336,7 @@ function Id(e) {
|
|
|
9342
9336
|
onItemClick: (U) => {
|
|
9343
9337
|
!U || W(U);
|
|
9344
9338
|
}
|
|
9345
|
-
}), /* @__PURE__ */ n(
|
|
9339
|
+
}), /* @__PURE__ */ n(_t, {
|
|
9346
9340
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9347
9341
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9348
9342
|
tooltip: $("reports"),
|
|
@@ -9357,7 +9351,7 @@ function Id(e) {
|
|
|
9357
9351
|
});
|
|
9358
9352
|
}
|
|
9359
9353
|
}), x && /* @__PURE__ */ P(ne, {
|
|
9360
|
-
children: [
|
|
9354
|
+
children: [$t(), /* @__PURE__ */ n(_t, {
|
|
9361
9355
|
icon: /* @__PURE__ */ n(Lr, {
|
|
9362
9356
|
component: () => /* @__PURE__ */ P("svg", {
|
|
9363
9357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9427,7 +9421,7 @@ function Id(e) {
|
|
|
9427
9421
|
})]
|
|
9428
9422
|
});
|
|
9429
9423
|
}
|
|
9430
|
-
function
|
|
9424
|
+
function $t() {
|
|
9431
9425
|
return /* @__PURE__ */ n("div", {
|
|
9432
9426
|
className: "inline-block w-2"
|
|
9433
9427
|
});
|
|
@@ -9606,7 +9600,7 @@ function Md(e, t) {
|
|
|
9606
9600
|
setCurrentId: J,
|
|
9607
9601
|
tabs: fe,
|
|
9608
9602
|
activeKey: be,
|
|
9609
|
-
openAction:
|
|
9603
|
+
openAction: Ee,
|
|
9610
9604
|
onRemoveTab: _e
|
|
9611
9605
|
} = ie || {};
|
|
9612
9606
|
Hi("ctrl+g,command+g", (te) => {
|
|
@@ -9618,7 +9612,7 @@ function Md(e, t) {
|
|
|
9618
9612
|
function ge(te) {
|
|
9619
9613
|
O(te), Q == null || Q(te);
|
|
9620
9614
|
}
|
|
9621
|
-
|
|
9615
|
+
bt(t, () => ({
|
|
9622
9616
|
canWeClose: Se
|
|
9623
9617
|
}));
|
|
9624
9618
|
const se = async () => {
|
|
@@ -9638,8 +9632,8 @@ function Md(e, t) {
|
|
|
9638
9632
|
viewTuple: me
|
|
9639
9633
|
});
|
|
9640
9634
|
}
|
|
9641
|
-
const
|
|
9642
|
-
for (const me of
|
|
9635
|
+
const Me = await kd(Fe);
|
|
9636
|
+
for (const me of Me) {
|
|
9643
9637
|
if (!me)
|
|
9644
9638
|
continue;
|
|
9645
9639
|
const [, Te] = me.viewTuple;
|
|
@@ -9700,7 +9694,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9700
9694
|
tabKey: d,
|
|
9701
9695
|
canWeClose: Se
|
|
9702
9696
|
}), pe(() => {
|
|
9703
|
-
const te = _.find((
|
|
9697
|
+
const te = _.find((Me) => Me.type === "tree"), Fe = _.find((Me) => c.id ? Me.type === c.type && Me.view_id === c.id : Me.type === c.type);
|
|
9704
9698
|
ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
|
|
9705
9699
|
}, [i, s, m]), pe(() => {
|
|
9706
9700
|
be === d && (J == null || J(b), Q == null || Q(y));
|
|
@@ -9715,25 +9709,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9715
9709
|
var me;
|
|
9716
9710
|
z(!0);
|
|
9717
9711
|
const Fe = F.findIndex((Te) => Te.id === te);
|
|
9718
|
-
let
|
|
9712
|
+
let Me;
|
|
9719
9713
|
if (Fe === -1) {
|
|
9720
9714
|
try {
|
|
9721
|
-
|
|
9715
|
+
Me = (me = await H.getHandler().readObjects({
|
|
9722
9716
|
model: i,
|
|
9723
9717
|
ids: [te],
|
|
9724
9718
|
context: o
|
|
9725
9719
|
})) == null ? void 0 : me[0];
|
|
9726
9720
|
} catch {
|
|
9727
9721
|
}
|
|
9728
|
-
if (!
|
|
9722
|
+
if (!Me) {
|
|
9729
9723
|
z(!1), q(!1), ct(B("idNotFound"));
|
|
9730
9724
|
return;
|
|
9731
9725
|
}
|
|
9732
9726
|
} else
|
|
9733
|
-
|
|
9727
|
+
Me = F[Fe];
|
|
9734
9728
|
z(!1), q(!1);
|
|
9735
9729
|
const ce = s.find((Te) => Te[1] === "form");
|
|
9736
|
-
|
|
9730
|
+
Ee({
|
|
9737
9731
|
domain: [],
|
|
9738
9732
|
context: o,
|
|
9739
9733
|
model: i,
|
|
@@ -9810,7 +9804,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9810
9804
|
ge(te);
|
|
9811
9805
|
}
|
|
9812
9806
|
}
|
|
9813
|
-
return V ? /* @__PURE__ */ n(
|
|
9807
|
+
return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(ll, {
|
|
9814
9808
|
title: a,
|
|
9815
9809
|
currentView: y,
|
|
9816
9810
|
setCurrentView: ge,
|
|
@@ -9845,7 +9839,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9845
9839
|
})]
|
|
9846
9840
|
}) : null;
|
|
9847
9841
|
}
|
|
9848
|
-
const Lo =
|
|
9842
|
+
const Lo = wt(Md);
|
|
9849
9843
|
async function Ed({
|
|
9850
9844
|
actionId: e,
|
|
9851
9845
|
rootContext: t = {},
|
|
@@ -9854,7 +9848,7 @@ async function Ed({
|
|
|
9854
9848
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
|
|
9855
9849
|
action: o,
|
|
9856
9850
|
context: t
|
|
9857
|
-
}), a =
|
|
9851
|
+
}), a = vt({
|
|
9858
9852
|
context: s.context,
|
|
9859
9853
|
values: r,
|
|
9860
9854
|
fields: {}
|
|
@@ -10013,8 +10007,8 @@ function jd(e) {
|
|
|
10013
10007
|
}, U = async () => {
|
|
10014
10008
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
10015
10009
|
colors: be
|
|
10016
|
-
} =
|
|
10017
|
-
totalItems:
|
|
10010
|
+
} = Ot(p), {
|
|
10011
|
+
totalItems: Ee,
|
|
10018
10012
|
results: _e,
|
|
10019
10013
|
attrsEvaluated: Be
|
|
10020
10014
|
} = await H.getHandler().searchForTree({
|
|
@@ -10029,7 +10023,7 @@ function jd(e) {
|
|
|
10029
10023
|
}
|
|
10030
10024
|
});
|
|
10031
10025
|
R(Qt(Be));
|
|
10032
|
-
const ge =
|
|
10026
|
+
const ge = It({
|
|
10033
10027
|
resultsToSort: _e,
|
|
10034
10028
|
sorter: F,
|
|
10035
10029
|
fields: {
|
|
@@ -10038,7 +10032,7 @@ function jd(e) {
|
|
|
10038
10032
|
}
|
|
10039
10033
|
});
|
|
10040
10034
|
q(!1), x(ge);
|
|
10041
|
-
const se = await
|
|
10035
|
+
const se = await Ee;
|
|
10042
10036
|
C(se);
|
|
10043
10037
|
}, L = async () => {
|
|
10044
10038
|
try {
|
|
@@ -10116,7 +10110,7 @@ function jd(e) {
|
|
|
10116
10110
|
sorter: F,
|
|
10117
10111
|
onChangeSort: (J) => {
|
|
10118
10112
|
A == null || A(J);
|
|
10119
|
-
const fe =
|
|
10113
|
+
const fe = It({
|
|
10120
10114
|
resultsToSort: S,
|
|
10121
10115
|
sorter: J,
|
|
10122
10116
|
fields: {
|
|
@@ -10134,7 +10128,7 @@ function jd(e) {
|
|
|
10134
10128
|
message: N,
|
|
10135
10129
|
type: "error",
|
|
10136
10130
|
banner: !0
|
|
10137
|
-
}) : d ? /* @__PURE__ */ n(
|
|
10131
|
+
}) : d ? /* @__PURE__ */ n(Le, {
|
|
10138
10132
|
style: {
|
|
10139
10133
|
padding: "2rem"
|
|
10140
10134
|
}
|
|
@@ -10181,7 +10175,7 @@ function Yd(e, t) {
|
|
|
10181
10175
|
} = Y(Xn), h = de(), g = de();
|
|
10182
10176
|
pe(() => {
|
|
10183
10177
|
y();
|
|
10184
|
-
}, [r, o, i]),
|
|
10178
|
+
}, [r, o, i]), bt(t, () => ({
|
|
10185
10179
|
refresh: () => {
|
|
10186
10180
|
y();
|
|
10187
10181
|
},
|
|
@@ -10373,12 +10367,12 @@ function Yd(e, t) {
|
|
|
10373
10367
|
const [Q, J] = ie, {
|
|
10374
10368
|
actionId: fe,
|
|
10375
10369
|
actionType: be,
|
|
10376
|
-
title:
|
|
10370
|
+
title: Ee,
|
|
10377
10371
|
model: _e
|
|
10378
10372
|
} = S, Be = {
|
|
10379
10373
|
action_id: fe,
|
|
10380
10374
|
action_type: be,
|
|
10381
|
-
name:
|
|
10375
|
+
name: Ee,
|
|
10382
10376
|
res_id: Z.id,
|
|
10383
10377
|
res_model: _e,
|
|
10384
10378
|
view_id: Q,
|
|
@@ -10441,7 +10435,7 @@ function Yd(e, t) {
|
|
|
10441
10435
|
})
|
|
10442
10436
|
});
|
|
10443
10437
|
}
|
|
10444
|
-
const Wd =
|
|
10438
|
+
const Wd = wt(Yd), Ud = (e) => {
|
|
10445
10439
|
const {
|
|
10446
10440
|
ooui: t
|
|
10447
10441
|
} = e;
|
|
@@ -10468,7 +10462,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10468
10462
|
} = r, y = Y(Ne), {
|
|
10469
10463
|
getContext: O
|
|
10470
10464
|
} = y || {};
|
|
10471
|
-
|
|
10465
|
+
Ct(() => {
|
|
10472
10466
|
w();
|
|
10473
10467
|
}, [o]);
|
|
10474
10468
|
const _ = (b) => {
|
|
@@ -10482,7 +10476,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10482
10476
|
if (r.domain) {
|
|
10483
10477
|
const C = await H.getHandler().evalDomain({
|
|
10484
10478
|
domain: r.domain,
|
|
10485
|
-
values:
|
|
10479
|
+
values: kt({
|
|
10486
10480
|
fields: y == null ? void 0 : y.getFields(),
|
|
10487
10481
|
values: y.getPlainValues()
|
|
10488
10482
|
}),
|
|
@@ -10541,7 +10535,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10541
10535
|
});
|
|
10542
10536
|
}), _(C);
|
|
10543
10537
|
};
|
|
10544
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(
|
|
10538
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(ne, {
|
|
10545
10539
|
children: /* @__PURE__ */ P("div", {
|
|
10546
10540
|
className: "flex flex-row",
|
|
10547
10541
|
children: [/* @__PURE__ */ n(Nt.Group, {
|
|
@@ -10741,7 +10735,7 @@ function su(e, t) {
|
|
|
10741
10735
|
closable: !0,
|
|
10742
10736
|
content: /* @__PURE__ */ n(iu, {})
|
|
10743
10737
|
}]), f = de(/* @__PURE__ */ new Map()), u = de();
|
|
10744
|
-
|
|
10738
|
+
bt(t, () => ({
|
|
10745
10739
|
retrieveAndOpenAction: p,
|
|
10746
10740
|
openShortcut: y
|
|
10747
10741
|
}));
|
|
@@ -10774,7 +10768,7 @@ function su(e, t) {
|
|
|
10774
10768
|
Ue("Action type not supported");
|
|
10775
10769
|
return;
|
|
10776
10770
|
}
|
|
10777
|
-
const [x, $] = w.split(","), R = parseInt($), F =
|
|
10771
|
+
const [x, $] = w.split(","), R = parseInt($), F = vt({
|
|
10778
10772
|
context: S.context,
|
|
10779
10773
|
values: i,
|
|
10780
10774
|
fields: {}
|
|
@@ -10881,7 +10875,7 @@ function su(e, t) {
|
|
|
10881
10875
|
} = w, [M, I] = $[0], N = {
|
|
10882
10876
|
id: M,
|
|
10883
10877
|
type: I
|
|
10884
|
-
}, k =
|
|
10878
|
+
}, k = vt({
|
|
10885
10879
|
context: S,
|
|
10886
10880
|
values: {
|
|
10887
10881
|
...D,
|
|
@@ -10890,7 +10884,7 @@ function su(e, t) {
|
|
|
10890
10884
|
fields: V
|
|
10891
10885
|
}), j = x ? await H.getHandler().evalDomain({
|
|
10892
10886
|
domain: x,
|
|
10893
|
-
values:
|
|
10887
|
+
values: kt({
|
|
10894
10888
|
fields: V,
|
|
10895
10889
|
values: {
|
|
10896
10890
|
...D,
|
|
@@ -10928,7 +10922,7 @@ function su(e, t) {
|
|
|
10928
10922
|
} = w, C = `${D},${V}`, S = await H.getHandler().getActionData({
|
|
10929
10923
|
action: C,
|
|
10930
10924
|
context: o
|
|
10931
|
-
}), x =
|
|
10925
|
+
}), x = vt({
|
|
10932
10926
|
context: S.context,
|
|
10933
10927
|
values: i,
|
|
10934
10928
|
fields: {}
|
|
@@ -11115,7 +11109,7 @@ function su(e, t) {
|
|
|
11115
11109
|
})
|
|
11116
11110
|
});
|
|
11117
11111
|
}
|
|
11118
|
-
const Lu =
|
|
11112
|
+
const Lu = wt(su), {
|
|
11119
11113
|
useToken: au
|
|
11120
11114
|
} = Pe;
|
|
11121
11115
|
function lu(e) {
|
|
@@ -11325,7 +11319,7 @@ const {
|
|
|
11325
11319
|
})
|
|
11326
11320
|
})
|
|
11327
11321
|
})]
|
|
11328
|
-
}), /* @__PURE__ */ n(He.Divider, {}), u ? /* @__PURE__ */ n(
|
|
11322
|
+
}), /* @__PURE__ */ n(He.Divider, {}), u ? /* @__PURE__ */ n(Le, {
|
|
11329
11323
|
style: {
|
|
11330
11324
|
padding: "1rem"
|
|
11331
11325
|
}
|
|
@@ -11411,7 +11405,7 @@ const {
|
|
|
11411
11405
|
borderTopLeftRadius: 0,
|
|
11412
11406
|
borderBottomLeftRadius: 0
|
|
11413
11407
|
},
|
|
11414
|
-
icon: /* @__PURE__ */ n(
|
|
11408
|
+
icon: /* @__PURE__ */ n(At, {
|
|
11415
11409
|
style: {
|
|
11416
11410
|
fontSize: "0.5em"
|
|
11417
11411
|
}
|