@gisce/react-ooui 1.4.5-rc.0 → 1.4.5
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 +211 -217
- 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 +2 -2
- 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,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 _e, 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 _e, 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 Qo, Card as ei, Tag as ti, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Vr, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
|
|
3
|
+
import { Label as Vt, Field as _n, Tree as Ar, Reference as ci, Selection as $n, Many2one as Rr, Boolean as di, Container as ui, parseContext as vt, Form as kr, Integer as In, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
|
|
4
4
|
import * as or from "@ant-design/icons";
|
|
5
|
-
import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as
|
|
5
|
+
import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as At, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as Rt, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Wr, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as _i } 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, isPresetColor as Ei } 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: d,
|
|
@@ -704,7 +704,7 @@ const Jr = (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(is, {
|
|
710
710
|
ooui: i,
|
|
@@ -944,7 +944,7 @@ const Zr = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return d ? /* @__PURE__ */ n(
|
|
947
|
+
return d ? /* @__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 Zr = (e) => {
|
|
|
954
954
|
disabled: v,
|
|
955
955
|
children: u("cancel")
|
|
956
956
|
}), /* @__PURE__ */ n(_e, {
|
|
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: ms
|
|
1122
1122
|
} = Pe, hs = fs(ms), {
|
|
1123
1123
|
Option: ps
|
|
1124
|
-
} =
|
|
1124
|
+
} = xt, 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 ? gs :
|
|
1154
|
+
return /* @__PURE__ */ n(a && !s ? gs : 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: u
|
|
1162
1162
|
});
|
|
1163
|
-
}, gs = Kt(
|
|
1163
|
+
}, gs = Kt(xt)`
|
|
1164
1164
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1165
1165
|
background-color: ${hs.colorPrimaryBg};
|
|
1166
1166
|
}
|
|
@@ -1223,16 +1223,16 @@ var ks = Rs, Ms = ks, Es = /^\s+/;
|
|
|
1223
1223
|
function $s(e) {
|
|
1224
1224
|
return e && e.slice(0, Ms(e) + 1).replace(Es, "");
|
|
1225
1225
|
}
|
|
1226
|
-
var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString,
|
|
1226
|
+
var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString, Et = dr ? dr.toStringTag : void 0;
|
|
1227
1227
|
function js(e) {
|
|
1228
|
-
var t = Hs.call(e,
|
|
1228
|
+
var t = Hs.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 = Bs.call(e);
|
|
1235
|
-
return i && (t ? e[
|
|
1235
|
+
return i && (t ? e[Et] = r : delete e[Et]), o;
|
|
1236
1236
|
}
|
|
1237
1237
|
var Ks = js, Ys = Object.prototype, Ws = Ys.toString;
|
|
1238
1238
|
function Us(e) {
|
|
@@ -1319,7 +1319,7 @@ function xa(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 Ca = (e) => {
|
|
|
1365
1365
|
i == null || i(d);
|
|
1366
1366
|
};
|
|
1367
1367
|
async function u() {
|
|
1368
|
-
const d = await
|
|
1368
|
+
const d = await Dt(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) {
|
|
@@ -1452,7 +1452,7 @@ const Ca = (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 Ar(r);
|
|
1457
1457
|
return i.parse(t), i;
|
|
1458
1458
|
}, Oa = (e, t, r) => e.columns.map((o) => {
|
|
@@ -1498,7 +1498,7 @@ function lo(e, t) {
|
|
|
1498
1498
|
r[i.id] = i[t];
|
|
1499
1499
|
}), r;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function _t({
|
|
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 = [], d;
|
|
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: u,
|
|
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, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = Y(Ne), {
|
|
1586
1586
|
getContext: m
|
|
1587
1587
|
} = d || {};
|
|
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, 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: u,
|
|
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) => Ma(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
|
}) => {
|
|
@@ -1959,7 +1959,7 @@ const Mt = ({
|
|
|
1959
1959
|
} = r, g = Y(Ne), {
|
|
1960
1960
|
getContext: y
|
|
1961
1961
|
} = g || {};
|
|
1962
|
-
|
|
1962
|
+
Ct(() => {
|
|
1963
1963
|
I();
|
|
1964
1964
|
}, [o]);
|
|
1965
1965
|
const O = (D) => {
|
|
@@ -1974,7 +1974,7 @@ const Mt = ({
|
|
|
1974
1974
|
if (p && (D = [["id", "in", s]]), r.domain) {
|
|
1975
1975
|
const C = await H.getHandler().evalDomain({
|
|
1976
1976
|
domain: r.domain,
|
|
1977
|
-
values:
|
|
1977
|
+
values: kt({
|
|
1978
1978
|
fields: g == null ? void 0 : g.getFields(),
|
|
1979
1979
|
values: g.getPlainValues()
|
|
1980
1980
|
}),
|
|
@@ -2050,7 +2050,7 @@ const Mt = ({
|
|
|
2050
2050
|
}) : /* @__PURE__ */ n(ne, {
|
|
2051
2051
|
children: /* @__PURE__ */ n("div", {
|
|
2052
2052
|
className: "flex flex-row",
|
|
2053
|
-
children: /* @__PURE__ */ n(
|
|
2053
|
+
children: /* @__PURE__ */ n(xt, {
|
|
2054
2054
|
mode: "multiple",
|
|
2055
2055
|
value: a.length ? s : [],
|
|
2056
2056
|
tagRender: V,
|
|
@@ -2171,14 +2171,14 @@ const Mt = ({
|
|
|
2171
2171
|
if (i.push(a), s(l)) {
|
|
2172
2172
|
const u = r - o;
|
|
2173
2173
|
for (let c = 0; c < u; c += 1)
|
|
2174
|
-
i.push(new
|
|
2174
|
+
i.push(new Vt({ string: "" }));
|
|
2175
2175
|
}
|
|
2176
2176
|
}), i;
|
|
2177
2177
|
}, Ga = ({
|
|
2178
2178
|
row: e,
|
|
2179
2179
|
numberOfColumns: t
|
|
2180
2180
|
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), qa = (e, t) => {
|
|
2181
|
-
const r = e.map((i) => i instanceof
|
|
2181
|
+
const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
|
|
2182
2182
|
if (r.length < t) {
|
|
2183
2183
|
const i = t - r.length;
|
|
2184
2184
|
for (let o = 0; o < i; o++)
|
|
@@ -2214,7 +2214,7 @@ const Mt = ({
|
|
|
2214
2214
|
row: p,
|
|
2215
2215
|
numberOfColumns: o,
|
|
2216
2216
|
mustFillWithEmpties: r
|
|
2217
|
-
}), l = l.concat(h)), h.map((g) => (g instanceof
|
|
2217
|
+
}), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2218
2218
|
style: {
|
|
2219
2219
|
...Wa({
|
|
2220
2220
|
item: g,
|
|
@@ -2381,9 +2381,9 @@ const Mt = ({
|
|
|
2381
2381
|
setLimit: V,
|
|
2382
2382
|
searchParams: D = [],
|
|
2383
2383
|
setSearchValues: E
|
|
2384
|
-
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = 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 =
|
|
2384
|
+
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = 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) => {
|
|
2385
2385
|
g == null || g([...se]), q([...se]);
|
|
2386
|
-
}, []), ie =
|
|
2386
|
+
}, []), ie = $e(() => y || j, [y, j]), Q = $e(async () => {
|
|
2387
2387
|
const se = await H.getHandler().nameSearch({
|
|
2388
2388
|
model: t,
|
|
2389
2389
|
payload: l,
|
|
@@ -2392,7 +2392,7 @@ const Mt = ({
|
|
|
2392
2392
|
context: c
|
|
2393
2393
|
});
|
|
2394
2394
|
if (k(se.length), f == null || f(se.length), se.length > 0) {
|
|
2395
|
-
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } =
|
|
2395
|
+
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = Ot(d), je = {};
|
|
2396
2396
|
De && (je.colors = De), Ve && (je.status = Ve);
|
|
2397
2397
|
const We = await H.getHandler().readEvalUiObjects({
|
|
2398
2398
|
model: t,
|
|
@@ -2403,12 +2403,12 @@ const Mt = ({
|
|
|
2403
2403
|
attrs: je
|
|
2404
2404
|
}), te = We[0];
|
|
2405
2405
|
ee.current = [...te], z(Qt(We[1])), L(gr(We[1]));
|
|
2406
|
-
const Fe = te.map((ce) => ce.id),
|
|
2406
|
+
const Fe = te.map((ce) => ce.id), Me = v !== void 0 ? _t({
|
|
2407
2407
|
resultsToSort: te,
|
|
2408
2408
|
sorter: v,
|
|
2409
2409
|
fields: { ...d.fields, ...m.fields }
|
|
2410
2410
|
}) : [...ee.current];
|
|
2411
|
-
Z(
|
|
2411
|
+
Z(Me), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2412
2412
|
} else
|
|
2413
2413
|
Z([]), h == null || h(void 0);
|
|
2414
2414
|
C(!1), u.current = !0;
|
|
@@ -2424,11 +2424,11 @@ const Mt = ({
|
|
|
2424
2424
|
v,
|
|
2425
2425
|
h,
|
|
2426
2426
|
f
|
|
2427
|
-
]), J =
|
|
2427
|
+
]), J = $e(
|
|
2428
2428
|
async (se) => {
|
|
2429
|
-
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } =
|
|
2429
|
+
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(d), te = {};
|
|
2430
2430
|
je && (te.colors = je), We && (te.status = We);
|
|
2431
|
-
const { totalItems: Fe, results:
|
|
2431
|
+
const { totalItems: Fe, results: Me, attrsEvaluated: ce } = await H.getHandler().searchForTree({
|
|
2432
2432
|
params: Ve,
|
|
2433
2433
|
limit: B.current,
|
|
2434
2434
|
offset: De || M,
|
|
@@ -2437,9 +2437,9 @@ const Mt = ({
|
|
|
2437
2437
|
context: c,
|
|
2438
2438
|
attrs: te
|
|
2439
2439
|
});
|
|
2440
|
-
z(Qt(ce)), L(gr(ce)), ee.current = [...
|
|
2441
|
-
const me = v !== void 0 ?
|
|
2442
|
-
resultsToSort:
|
|
2440
|
+
z(Qt(ce)), L(gr(ce)), ee.current = [...Me];
|
|
2441
|
+
const me = v !== void 0 ? _t({
|
|
2442
|
+
resultsToSort: Me,
|
|
2443
2443
|
sorter: v,
|
|
2444
2444
|
fields: { ...d.fields, ...m.fields }
|
|
2445
2445
|
}) : [...ee.current];
|
|
@@ -2470,7 +2470,7 @@ const Mt = ({
|
|
|
2470
2470
|
M,
|
|
2471
2471
|
D
|
|
2472
2472
|
]
|
|
2473
|
-
), fe =
|
|
2473
|
+
), fe = $e(
|
|
2474
2474
|
async (se) => {
|
|
2475
2475
|
try {
|
|
2476
2476
|
C(!0), a == null || a(!0), l && !u.current ? await Q() : await J(se);
|
|
@@ -2501,12 +2501,10 @@ const Mt = ({
|
|
|
2501
2501
|
v,
|
|
2502
2502
|
d
|
|
2503
2503
|
]
|
|
2504
|
-
), be =
|
|
2504
|
+
), be = $e(
|
|
2505
2505
|
(se) => {
|
|
2506
|
-
if (JSON.stringify(se) === JSON.stringify(v))
|
|
2507
|
-
return;
|
|
2508
2506
|
p == null || p(se);
|
|
2509
|
-
const Se = se !== void 0 ?
|
|
2507
|
+
const Se = se !== void 0 ? _t({
|
|
2510
2508
|
resultsToSort: ie(),
|
|
2511
2509
|
sorter: se,
|
|
2512
2510
|
fields: { ...d.fields, ...m.fields }
|
|
@@ -2514,7 +2512,7 @@ const Mt = ({
|
|
|
2514
2512
|
Z(Se);
|
|
2515
2513
|
},
|
|
2516
2514
|
[p, ie, d, m, Z]
|
|
2517
|
-
),
|
|
2515
|
+
), Ee = $e(
|
|
2518
2516
|
(se) => {
|
|
2519
2517
|
const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
|
|
2520
2518
|
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 && _(je), fe({
|
|
@@ -2535,12 +2533,12 @@ const Mt = ({
|
|
|
2535
2533
|
_,
|
|
2536
2534
|
fe
|
|
2537
2535
|
]
|
|
2538
|
-
), Ie =
|
|
2536
|
+
), Ie = $e(
|
|
2539
2537
|
(se) => {
|
|
2540
2538
|
C(!0), A(se), _((se - 1) * w);
|
|
2541
2539
|
},
|
|
2542
2540
|
[C, w, _, A]
|
|
2543
|
-
), Be =
|
|
2541
|
+
), Be = $e(() => {
|
|
2544
2542
|
b || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), _(0), A(1), V == null || V(w || Ht));
|
|
2545
2543
|
}, [
|
|
2546
2544
|
b,
|
|
@@ -2551,7 +2549,7 @@ const Mt = ({
|
|
|
2551
2549
|
A,
|
|
2552
2550
|
V,
|
|
2553
2551
|
w
|
|
2554
|
-
]), ge =
|
|
2552
|
+
]), ge = $e(
|
|
2555
2553
|
async (se) => {
|
|
2556
2554
|
const Se = se[(d == null ? void 0 : d.field_parent) || "child_id"], De = await H.getHandler().readObjects({
|
|
2557
2555
|
model: t,
|
|
@@ -2559,12 +2557,12 @@ const Mt = ({
|
|
|
2559
2557
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
2560
2558
|
context: c
|
|
2561
2559
|
});
|
|
2562
|
-
return Z([...ie(), ...De]), ao(
|
|
2560
|
+
return Z([...ie(), ...De]), ao(Ot(d), De);
|
|
2563
2561
|
},
|
|
2564
2562
|
[d, t, c, ie, Z]
|
|
2565
2563
|
);
|
|
2566
2564
|
return {
|
|
2567
|
-
submit:
|
|
2565
|
+
submit: Ee,
|
|
2568
2566
|
clear: Be,
|
|
2569
2567
|
fetchResults: fe,
|
|
2570
2568
|
tableRefreshing: b,
|
|
@@ -2608,7 +2606,7 @@ const Mt = ({
|
|
|
2608
2606
|
setSearchTreeNameSearch: E,
|
|
2609
2607
|
goToResourceId: b,
|
|
2610
2608
|
limit: C
|
|
2611
|
-
} = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = 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({}), [
|
|
2609
|
+
} = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = 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, Ie] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
|
|
2612
2610
|
pe(() => {
|
|
2613
2611
|
m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
|
|
2614
2612
|
}, [m]), pe(() => {
|
|
@@ -2672,7 +2670,7 @@ const Mt = ({
|
|
|
2672
2670
|
goToResourceId: b,
|
|
2673
2671
|
searchValues: fe,
|
|
2674
2672
|
setSearchValues: be,
|
|
2675
|
-
limit:
|
|
2673
|
+
limit: Ee,
|
|
2676
2674
|
setLimit: Ie,
|
|
2677
2675
|
setTitle: ge
|
|
2678
2676
|
},
|
|
@@ -2707,7 +2705,7 @@ const Mt = ({
|
|
|
2707
2705
|
},
|
|
2708
2706
|
children: t
|
|
2709
2707
|
});
|
|
2710
|
-
},
|
|
2708
|
+
}, Mt = Je.createContext(null), br = async (e) => {
|
|
2711
2709
|
var t;
|
|
2712
2710
|
for (let r = 0; r < e.length; r++)
|
|
2713
2711
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2720,7 +2718,7 @@ const Mt = ({
|
|
|
2720
2718
|
} = u || {}, f = de([]), {
|
|
2721
2719
|
t: d
|
|
2722
2720
|
} = Y(we);
|
|
2723
|
-
|
|
2721
|
+
bt(t, () => ({
|
|
2724
2722
|
openActionModal: w
|
|
2725
2723
|
}));
|
|
2726
2724
|
const [m, v] = T(!1), [p, h] = T({
|
|
@@ -2747,7 +2745,7 @@ const Mt = ({
|
|
|
2747
2745
|
ids: _
|
|
2748
2746
|
} = F || {};
|
|
2749
2747
|
let N = _ || [];
|
|
2750
|
-
const k = typeof $ == "string" ?
|
|
2748
|
+
const k = typeof $ == "string" ? vt({
|
|
2751
2749
|
context: $,
|
|
2752
2750
|
fields: C,
|
|
2753
2751
|
values: S
|
|
@@ -2777,7 +2775,7 @@ const Mt = ({
|
|
|
2777
2775
|
id: E
|
|
2778
2776
|
}), b.state && s.current === !0) {
|
|
2779
2777
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2780
|
-
const C = await
|
|
2778
|
+
const C = await Dt(b.result);
|
|
2781
2779
|
mn(b.result, C.mime);
|
|
2782
2780
|
}
|
|
2783
2781
|
} catch (C) {
|
|
@@ -2830,7 +2828,7 @@ const Mt = ({
|
|
|
2830
2828
|
context: S
|
|
2831
2829
|
}))[0]);
|
|
2832
2830
|
const R = {
|
|
2833
|
-
...typeof (x == null ? void 0 : x.context) == "string" ?
|
|
2831
|
+
...typeof (x == null ? void 0 : x.context) == "string" ? vt({
|
|
2834
2832
|
context: x.context,
|
|
2835
2833
|
fields: b,
|
|
2836
2834
|
values: {
|
|
@@ -2843,7 +2841,7 @@ const Mt = ({
|
|
|
2843
2841
|
let F = [];
|
|
2844
2842
|
if (x.domain && (F = await H.getHandler().evalDomain({
|
|
2845
2843
|
domain: x.domain,
|
|
2846
|
-
values:
|
|
2844
|
+
values: kt({
|
|
2847
2845
|
fields: b,
|
|
2848
2846
|
values: {
|
|
2849
2847
|
...C,
|
|
@@ -2942,7 +2940,7 @@ const Mt = ({
|
|
|
2942
2940
|
});
|
|
2943
2941
|
}
|
|
2944
2942
|
return /* @__PURE__ */ n(ne, {
|
|
2945
|
-
children: /* @__PURE__ */ n(
|
|
2943
|
+
children: /* @__PURE__ */ n(Mt.Provider, {
|
|
2946
2944
|
value: {
|
|
2947
2945
|
processAction: O,
|
|
2948
2946
|
globalValues: i
|
|
@@ -2955,7 +2953,7 @@ const Mt = ({
|
|
|
2955
2953
|
closable: !1,
|
|
2956
2954
|
centered: !0,
|
|
2957
2955
|
maskClosable: !1,
|
|
2958
|
-
children: /* @__PURE__ */ n(
|
|
2956
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
2959
2957
|
}), /* @__PURE__ */ n(Gt, {
|
|
2960
2958
|
buttonModal: !0,
|
|
2961
2959
|
parentContext: p.context,
|
|
@@ -3034,7 +3032,7 @@ async function ml({
|
|
|
3034
3032
|
initialView: a
|
|
3035
3033
|
};
|
|
3036
3034
|
}
|
|
3037
|
-
const hl =
|
|
3035
|
+
const hl = wt(fl), pl = ({
|
|
3038
3036
|
error: e,
|
|
3039
3037
|
className: t
|
|
3040
3038
|
}) => {
|
|
@@ -3087,7 +3085,7 @@ function yl(e, t) {
|
|
|
3087
3085
|
t: b,
|
|
3088
3086
|
lang: C
|
|
3089
3087
|
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, 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) < gl, be = Y(Ne), {
|
|
3090
|
-
activeId:
|
|
3088
|
+
activeId: Ee,
|
|
3091
3089
|
getPlainValues: Ie
|
|
3092
3090
|
} = be || {}, Be = Y(Qe), {
|
|
3093
3091
|
setFormIsSaving: ge = void 0,
|
|
@@ -3097,11 +3095,11 @@ function yl(e, t) {
|
|
|
3097
3095
|
setAttachments: Ve = void 0,
|
|
3098
3096
|
title: je = void 0,
|
|
3099
3097
|
setTitle: We = void 0
|
|
3100
|
-
} = (w ? Be : {}) || {}, te = Y(
|
|
3098
|
+
} = (w ? Be : {}) || {}, te = Y(Mt), {
|
|
3101
3099
|
processAction: Fe,
|
|
3102
|
-
globalValues:
|
|
3100
|
+
globalValues: Me
|
|
3103
3101
|
} = te || {};
|
|
3104
|
-
|
|
3102
|
+
bt(t, () => ({
|
|
3105
3103
|
submitForm: zt,
|
|
3106
3104
|
getFields: Xe,
|
|
3107
3105
|
getValues: Ke,
|
|
@@ -3174,8 +3172,8 @@ function yl(e, t) {
|
|
|
3174
3172
|
id: ue(),
|
|
3175
3173
|
active_id: ue(),
|
|
3176
3174
|
active_ids: [ue()],
|
|
3177
|
-
parent_id:
|
|
3178
|
-
...
|
|
3175
|
+
parent_id: Ee,
|
|
3176
|
+
...Me
|
|
3179
3177
|
};
|
|
3180
3178
|
}
|
|
3181
3179
|
const he = async (K) => {
|
|
@@ -3195,11 +3193,11 @@ function yl(e, t) {
|
|
|
3195
3193
|
fields: k
|
|
3196
3194
|
})).length !== 0, xe = (K) => {
|
|
3197
3195
|
const G = M.getFieldsValue(!0);
|
|
3198
|
-
return
|
|
3196
|
+
return Ft(G, K);
|
|
3199
3197
|
}, ke = (K, G) => {
|
|
3200
3198
|
qt({
|
|
3201
3199
|
values: {
|
|
3202
|
-
...
|
|
3200
|
+
...Ft(M.getFieldsValue(!0), k),
|
|
3203
3201
|
[K]: G
|
|
3204
3202
|
},
|
|
3205
3203
|
fields: k,
|
|
@@ -3243,7 +3241,7 @@ function yl(e, t) {
|
|
|
3243
3241
|
}), O && (G = {
|
|
3244
3242
|
...La(O),
|
|
3245
3243
|
...G
|
|
3246
|
-
}), ee.current =
|
|
3244
|
+
}), ee.current = Ft(G, re), qt({
|
|
3247
3245
|
values: G,
|
|
3248
3246
|
fields: re,
|
|
3249
3247
|
reset: !0,
|
|
@@ -3285,7 +3283,7 @@ function yl(e, t) {
|
|
|
3285
3283
|
const yt = {
|
|
3286
3284
|
...re ? {} : M.getFieldsValue(!0),
|
|
3287
3285
|
...K
|
|
3288
|
-
}, wn =
|
|
3286
|
+
}, wn = Ft(yt, G), Zo = Object.keys(G).map((bn) => {
|
|
3289
3287
|
const Xo = wn[bn] !== void 0 ? wn[bn] : void 0;
|
|
3290
3288
|
return {
|
|
3291
3289
|
name: bn,
|
|
@@ -3428,7 +3426,7 @@ function yl(e, t) {
|
|
|
3428
3426
|
}) && K !== !0)
|
|
3429
3427
|
return;
|
|
3430
3428
|
{
|
|
3431
|
-
const oe =
|
|
3429
|
+
const oe = Ft(M.getFieldsValue(!0), k);
|
|
3432
3430
|
Z.current = oe, u == null || u(oe), se == null || se(!0), jo(re);
|
|
3433
3431
|
}
|
|
3434
3432
|
}
|
|
@@ -3524,7 +3522,7 @@ function yl(e, t) {
|
|
|
3524
3522
|
ce == null || ce(ue(), Ke(), X());
|
|
3525
3523
|
else if (re.type) {
|
|
3526
3524
|
let oe = {};
|
|
3527
|
-
re.context && (oe =
|
|
3525
|
+
re.context && (oe = vt({
|
|
3528
3526
|
context: re.context,
|
|
3529
3527
|
fields: k,
|
|
3530
3528
|
values: Ke()
|
|
@@ -3623,7 +3621,7 @@ function yl(e, t) {
|
|
|
3623
3621
|
Ue(oe);
|
|
3624
3622
|
}
|
|
3625
3623
|
}
|
|
3626
|
-
const zo = () => !F && !$ ? /* @__PURE__ */ n(
|
|
3624
|
+
const zo = () => !F && !$ ? /* @__PURE__ */ n(Le, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
|
|
3627
3625
|
children: /* @__PURE__ */ n(ns, {
|
|
3628
3626
|
getValues: Ke,
|
|
3629
3627
|
getPlainValues: at,
|
|
@@ -3667,7 +3665,7 @@ function yl(e, t) {
|
|
|
3667
3665
|
}), /* @__PURE__ */ n(_e, {
|
|
3668
3666
|
disabled: S || f,
|
|
3669
3667
|
loading: S,
|
|
3670
|
-
icon: /* @__PURE__ */ n(
|
|
3668
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
3671
3669
|
onClick: async () => {
|
|
3672
3670
|
await zt();
|
|
3673
3671
|
},
|
|
@@ -3695,7 +3693,7 @@ function yl(e, t) {
|
|
|
3695
3693
|
})
|
|
3696
3694
|
}) : null;
|
|
3697
3695
|
}
|
|
3698
|
-
const Ut =
|
|
3696
|
+
const Ut = wt(yl), Gt = (e) => {
|
|
3699
3697
|
const {
|
|
3700
3698
|
visible: t,
|
|
3701
3699
|
id: r,
|
|
@@ -3815,7 +3813,7 @@ const Ut = bt(yl), Gt = (e) => {
|
|
|
3815
3813
|
})];
|
|
3816
3814
|
return /* @__PURE__ */ P(ne, {
|
|
3817
3815
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3818
|
-
ooui: new
|
|
3816
|
+
ooui: new Vt({
|
|
3819
3817
|
name: o + "_label",
|
|
3820
3818
|
string: i,
|
|
3821
3819
|
help: t.tooltip,
|
|
@@ -3940,7 +3938,7 @@ function Cl(e) {
|
|
|
3940
3938
|
});
|
|
3941
3939
|
return /* @__PURE__ */ P(ne, {
|
|
3942
3940
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3943
|
-
ooui: new
|
|
3941
|
+
ooui: new Vt({
|
|
3944
3942
|
name: i + "_label",
|
|
3945
3943
|
string: o,
|
|
3946
3944
|
help: s,
|
|
@@ -3970,7 +3968,7 @@ const {
|
|
|
3970
3968
|
defaultSeed: Tl
|
|
3971
3969
|
} = Pe, Fl = Sl(Tl), {
|
|
3972
3970
|
Option: Ol
|
|
3973
|
-
} =
|
|
3971
|
+
} = xt, _l = (e) => {
|
|
3974
3972
|
const {
|
|
3975
3973
|
ooui: t
|
|
3976
3974
|
} = e, {
|
|
@@ -4002,7 +4000,7 @@ const {
|
|
|
4002
4000
|
value: v,
|
|
4003
4001
|
children: v
|
|
4004
4002
|
}, m);
|
|
4005
|
-
}), c = a && !s ? Dl :
|
|
4003
|
+
}), c = a && !s ? Dl : xt;
|
|
4006
4004
|
function f(d) {
|
|
4007
4005
|
const m = d.map((v) => {
|
|
4008
4006
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -4022,7 +4020,7 @@ const {
|
|
|
4022
4020
|
showArrow: !0,
|
|
4023
4021
|
children: u
|
|
4024
4022
|
});
|
|
4025
|
-
}, Dl = Kt(
|
|
4023
|
+
}, Dl = Kt(xt)`
|
|
4026
4024
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4027
4025
|
background-color: ${Fl.colorPrimaryBg};
|
|
4028
4026
|
}
|
|
@@ -4101,7 +4099,7 @@ function Al(e) {
|
|
|
4101
4099
|
onClick: t,
|
|
4102
4100
|
children: [r ? /* @__PURE__ */ n(hi, {
|
|
4103
4101
|
className: "pr-1"
|
|
4104
|
-
}) : /* @__PURE__ */ n(
|
|
4102
|
+
}) : /* @__PURE__ */ n(At, {
|
|
4105
4103
|
className: "pr-1"
|
|
4106
4104
|
}), s(r ? "simple_search" : "advanced_search")]
|
|
4107
4105
|
})
|
|
@@ -4194,7 +4192,7 @@ function go(e) {
|
|
|
4194
4192
|
}, M))
|
|
4195
4193
|
}, F));
|
|
4196
4194
|
};
|
|
4197
|
-
|
|
4195
|
+
Ct(() => {
|
|
4198
4196
|
w(!1), V.current = new fi(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), O(V.current._advancedSearchContainer);
|
|
4199
4197
|
}, [t, r]);
|
|
4200
4198
|
const C = b(), S = (x) => {
|
|
@@ -4392,7 +4390,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4392
4390
|
t: p
|
|
4393
4391
|
} = Y(we), h = Y(st), {
|
|
4394
4392
|
openRelate: g
|
|
4395
|
-
} = h || {}, y = Y(
|
|
4393
|
+
} = h || {}, y = Y(Mt), {
|
|
4396
4394
|
processAction: O
|
|
4397
4395
|
} = y || {};
|
|
4398
4396
|
if (!t)
|
|
@@ -4416,7 +4414,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4416
4414
|
context: i
|
|
4417
4415
|
}))[0];
|
|
4418
4416
|
v({
|
|
4419
|
-
...
|
|
4417
|
+
...Ft(R, x),
|
|
4420
4418
|
active_id: t
|
|
4421
4419
|
}), c(!1);
|
|
4422
4420
|
} catch (S) {
|
|
@@ -4432,7 +4430,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4432
4430
|
style: {
|
|
4433
4431
|
padding: 15
|
|
4434
4432
|
},
|
|
4435
|
-
children: /* @__PURE__ */ n(
|
|
4433
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
4436
4434
|
})
|
|
4437
4435
|
});
|
|
4438
4436
|
if (!f || !f.toolbar)
|
|
@@ -4543,7 +4541,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4543
4541
|
value: t,
|
|
4544
4542
|
context: r,
|
|
4545
4543
|
selectionValues: i
|
|
4546
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d =
|
|
4544
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = $e(async () => {
|
|
4547
4545
|
if (!t || t && o)
|
|
4548
4546
|
return;
|
|
4549
4547
|
l(!0);
|
|
@@ -5054,7 +5052,7 @@ function pn(e) {
|
|
|
5054
5052
|
setTitle: A = void 0
|
|
5055
5053
|
} = (O ? R : {}) || {};
|
|
5056
5054
|
pe(() => {
|
|
5057
|
-
S.current =
|
|
5055
|
+
S.current = Ot(o);
|
|
5058
5056
|
const z = Oa(S.current, {
|
|
5059
5057
|
boolean: Wl,
|
|
5060
5058
|
many2one: Ul,
|
|
@@ -5079,7 +5077,7 @@ function pn(e) {
|
|
|
5079
5077
|
const z = ao(S.current, s);
|
|
5080
5078
|
D(z), $.current = r;
|
|
5081
5079
|
}, [s]);
|
|
5082
|
-
const M = (t - 1) * $.current + 1, _ = 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}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5080
|
+
const M = (t - 1) * $.current + 1, _ = 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}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Le, {
|
|
5083
5081
|
className: "pb-4"
|
|
5084
5082
|
}) : /* @__PURE__ */ P(Ce, {
|
|
5085
5083
|
align: "bottom",
|
|
@@ -5122,19 +5120,17 @@ function pn(e) {
|
|
|
5122
5120
|
const U = S.current;
|
|
5123
5121
|
d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
|
|
5124
5122
|
}
|
|
5125
|
-
return S.current === null ? /* @__PURE__ */ n(
|
|
5123
|
+
return S.current === null ? /* @__PURE__ */ n(Le, {
|
|
5126
5124
|
style: {
|
|
5127
5125
|
padding: "2rem"
|
|
5128
5126
|
}
|
|
5129
5127
|
}) : /* @__PURE__ */ P("div", {
|
|
5130
|
-
children: [k(),
|
|
5131
|
-
className: "pb-4"
|
|
5132
|
-
}), /* @__PURE__ */ n(Ri, {
|
|
5128
|
+
children: [k(), /* @__PURE__ */ n(Ri, {
|
|
5133
5129
|
height: W,
|
|
5134
5130
|
columns: q.columns,
|
|
5135
5131
|
dataSource: V,
|
|
5136
|
-
loading:
|
|
5137
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5132
|
+
loading: l,
|
|
5133
|
+
loadingComponent: /* @__PURE__ */ n(Le, {}),
|
|
5138
5134
|
onRowStyle: (z) => {
|
|
5139
5135
|
if (m[z.id])
|
|
5140
5136
|
return {
|
|
@@ -5177,7 +5173,7 @@ function rc(e, t) {
|
|
|
5177
5173
|
onChangeSelectedRowKeys: m
|
|
5178
5174
|
} = e, [v, p] = T(!1), [h, g] = T(!1), y = de(!1), [O, I] = T(), [w, V] = T(), [D, E] = T(), [b, C] = T(), [S, x] = T(200), $ = de(), {
|
|
5179
5175
|
height: R
|
|
5180
|
-
} = fn(), F = Y(
|
|
5176
|
+
} = fn(), F = Y(Mt), {
|
|
5181
5177
|
processAction: A
|
|
5182
5178
|
} = F || {}, M = Y(Qe), {
|
|
5183
5179
|
setResults: _ = void 0,
|
|
@@ -5197,7 +5193,7 @@ function rc(e, t) {
|
|
|
5197
5193
|
setTreeIsLoading: J = void 0,
|
|
5198
5194
|
searchValues: fe = {},
|
|
5199
5195
|
setSearchValues: be = void 0,
|
|
5200
|
-
limit:
|
|
5196
|
+
limit: Ee = Ht,
|
|
5201
5197
|
setLimit: Ie = void 0
|
|
5202
5198
|
} = (f ? M : {}) || {}, {
|
|
5203
5199
|
submit: Be,
|
|
@@ -5210,7 +5206,7 @@ function rc(e, t) {
|
|
|
5210
5206
|
offset: We,
|
|
5211
5207
|
getResults: te,
|
|
5212
5208
|
requestPageChange: Fe,
|
|
5213
|
-
changeSort:
|
|
5209
|
+
changeSort: Me,
|
|
5214
5210
|
fetchChildrenForRecord: ce,
|
|
5215
5211
|
colorsForResults: me,
|
|
5216
5212
|
statusForResults: Te,
|
|
@@ -5237,10 +5233,10 @@ function rc(e, t) {
|
|
|
5237
5233
|
domain: u,
|
|
5238
5234
|
currentId: k,
|
|
5239
5235
|
setActionViewTotalItems: ie,
|
|
5240
|
-
limit:
|
|
5236
|
+
limit: Ee,
|
|
5241
5237
|
setLimit: Ie
|
|
5242
5238
|
});
|
|
5243
|
-
|
|
5239
|
+
bt(t, () => ({
|
|
5244
5240
|
refreshResults: () => {
|
|
5245
5241
|
y.current = !1, se();
|
|
5246
5242
|
},
|
|
@@ -5254,9 +5250,9 @@ function rc(e, t) {
|
|
|
5254
5250
|
try {
|
|
5255
5251
|
await Ke(), g(!0);
|
|
5256
5252
|
} catch (ke) {
|
|
5257
|
-
C(ke)
|
|
5253
|
+
C(ke);
|
|
5258
5254
|
} finally {
|
|
5259
|
-
p(!1);
|
|
5255
|
+
p(!1), J == null || J(!1);
|
|
5260
5256
|
}
|
|
5261
5257
|
}, Ke = async () => {
|
|
5262
5258
|
I(r);
|
|
@@ -5332,7 +5328,7 @@ function rc(e, t) {
|
|
|
5332
5328
|
searchFields: co([D.search_fields, w.search_fields]),
|
|
5333
5329
|
formXml: D.arch,
|
|
5334
5330
|
onClear: ge,
|
|
5335
|
-
limit:
|
|
5331
|
+
limit: Ee,
|
|
5336
5332
|
offset: We,
|
|
5337
5333
|
isSearching: De,
|
|
5338
5334
|
onSubmit: Be,
|
|
@@ -5344,7 +5340,7 @@ function rc(e, t) {
|
|
|
5344
5340
|
}), /* @__PURE__ */ n(pn, {
|
|
5345
5341
|
context: d,
|
|
5346
5342
|
total: ue,
|
|
5347
|
-
limit:
|
|
5343
|
+
limit: Ee,
|
|
5348
5344
|
page: je,
|
|
5349
5345
|
treeView: w,
|
|
5350
5346
|
results: te(),
|
|
@@ -5359,7 +5355,7 @@ function rc(e, t) {
|
|
|
5359
5355
|
onChange: Ae
|
|
5360
5356
|
},
|
|
5361
5357
|
sorter: ee,
|
|
5362
|
-
onChangeSort:
|
|
5358
|
+
onChangeSort: Me,
|
|
5363
5359
|
onFetchChildrenForRecord: w.isExpandable ? ce : void 0,
|
|
5364
5360
|
childField: w.field_parent,
|
|
5365
5361
|
rootTree: f
|
|
@@ -5374,10 +5370,10 @@ function rc(e, t) {
|
|
|
5374
5370
|
style: c ? {} : {
|
|
5375
5371
|
display: "none"
|
|
5376
5372
|
},
|
|
5377
|
-
children: v ? /* @__PURE__ */ n(
|
|
5373
|
+
children: v ? /* @__PURE__ */ n(Le, {}) : ye()
|
|
5378
5374
|
});
|
|
5379
5375
|
}
|
|
5380
|
-
const So =
|
|
5376
|
+
const So = wt(rc), To = (e) => {
|
|
5381
5377
|
const {
|
|
5382
5378
|
visible: t,
|
|
5383
5379
|
onCloseModal: r,
|
|
@@ -5427,7 +5423,7 @@ const So = bt(rc), To = (e) => {
|
|
|
5427
5423
|
},
|
|
5428
5424
|
children: m("new")
|
|
5429
5425
|
}), /* @__PURE__ */ n(_e, {
|
|
5430
|
-
icon: /* @__PURE__ */ n(
|
|
5426
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
5431
5427
|
onClick: () => {
|
|
5432
5428
|
y();
|
|
5433
5429
|
},
|
|
@@ -5593,7 +5589,7 @@ const So = bt(rc), To = (e) => {
|
|
|
5593
5589
|
async function z() {
|
|
5594
5590
|
c && (R.current = await H.getHandler().evalDomain({
|
|
5595
5591
|
domain: c,
|
|
5596
|
-
values:
|
|
5592
|
+
values: kt({
|
|
5597
5593
|
fields: S(),
|
|
5598
5594
|
values: C()
|
|
5599
5595
|
}),
|
|
@@ -6143,7 +6139,7 @@ const {
|
|
|
6143
6139
|
uninformedString: a,
|
|
6144
6140
|
manualIds: l
|
|
6145
6141
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6146
|
-
return
|
|
6142
|
+
return Ct(() => {
|
|
6147
6143
|
(async () => {
|
|
6148
6144
|
c(!0), d(void 0);
|
|
6149
6145
|
const O = Ln(o);
|
|
@@ -6284,7 +6280,7 @@ const Cc = {
|
|
|
6284
6280
|
banner: !0
|
|
6285
6281
|
});
|
|
6286
6282
|
if (c)
|
|
6287
|
-
return /* @__PURE__ */ n(
|
|
6283
|
+
return /* @__PURE__ */ n(Le, {});
|
|
6288
6284
|
if (!f)
|
|
6289
6285
|
return /* @__PURE__ */ n(Ze, {
|
|
6290
6286
|
message: "No data to display",
|
|
@@ -6339,7 +6335,7 @@ const Fc = (e, t) => {
|
|
|
6339
6335
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = Y(Qe), {
|
|
6340
6336
|
setGraphIsLoading: h = void 0
|
|
6341
6337
|
} = p || {};
|
|
6342
|
-
|
|
6338
|
+
bt(t, () => ({
|
|
6343
6339
|
refresh: () => {
|
|
6344
6340
|
g();
|
|
6345
6341
|
}
|
|
@@ -6419,7 +6415,7 @@ const Fc = (e, t) => {
|
|
|
6419
6415
|
children: `Graph ${f.type} not implemented`
|
|
6420
6416
|
});
|
|
6421
6417
|
}
|
|
6422
|
-
}, gn =
|
|
6418
|
+
}, gn = wt(Fc), {
|
|
6423
6419
|
confirm: Oc
|
|
6424
6420
|
} = Ge, _c = ({
|
|
6425
6421
|
onOk: e,
|
|
@@ -6593,8 +6589,8 @@ const Mc = (e) => {
|
|
|
6593
6589
|
}
|
|
6594
6590
|
fe();
|
|
6595
6591
|
}, [s, a]);
|
|
6596
|
-
const fe =
|
|
6597
|
-
(a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) &&
|
|
6592
|
+
const fe = $e(() => {
|
|
6593
|
+
(a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Ee();
|
|
6598
6594
|
}, [s, a]);
|
|
6599
6595
|
pe(() => {
|
|
6600
6596
|
Be();
|
|
@@ -6605,7 +6601,7 @@ const Mc = (e) => {
|
|
|
6605
6601
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
|
|
6606
6602
|
items: kc(X)
|
|
6607
6603
|
});
|
|
6608
|
-
},
|
|
6604
|
+
}, Ee = async () => {
|
|
6609
6605
|
await Ie(), u > Q.length - 1 && u !== 0 && c(0);
|
|
6610
6606
|
}, Ie = async (X) => {
|
|
6611
6607
|
var ae, Ae, he;
|
|
@@ -6637,7 +6633,7 @@ const Mc = (e) => {
|
|
|
6637
6633
|
async function Be() {
|
|
6638
6634
|
ee && (N.current = await H.getHandler().evalDomain({
|
|
6639
6635
|
domain: ee,
|
|
6640
|
-
values:
|
|
6636
|
+
values: kt({
|
|
6641
6637
|
fields: m(),
|
|
6642
6638
|
values: v()
|
|
6643
6639
|
}),
|
|
@@ -6698,7 +6694,7 @@ const Mc = (e) => {
|
|
|
6698
6694
|
Dc({
|
|
6699
6695
|
lang: g,
|
|
6700
6696
|
onOk: () => {
|
|
6701
|
-
a === "form" ? Fe() :
|
|
6697
|
+
a === "form" ? Fe() : Me();
|
|
6702
6698
|
}
|
|
6703
6699
|
});
|
|
6704
6700
|
return;
|
|
@@ -6706,7 +6702,7 @@ const Mc = (e) => {
|
|
|
6706
6702
|
_c({
|
|
6707
6703
|
lang: g,
|
|
6708
6704
|
onOk: () => {
|
|
6709
|
-
a === "form" ? Fe() :
|
|
6705
|
+
a === "form" ? Fe() : Me();
|
|
6710
6706
|
}
|
|
6711
6707
|
});
|
|
6712
6708
|
}, We = async () => {
|
|
@@ -6742,7 +6738,7 @@ const Mc = (e) => {
|
|
|
6742
6738
|
E(X);
|
|
6743
6739
|
}
|
|
6744
6740
|
c(0), V(!1);
|
|
6745
|
-
},
|
|
6741
|
+
}, Me = async () => {
|
|
6746
6742
|
const X = Q.filter((ae) => F.includes(ae.id));
|
|
6747
6743
|
V(!0), I(!1), E(void 0);
|
|
6748
6744
|
try {
|
|
@@ -6842,7 +6838,7 @@ const Mc = (e) => {
|
|
|
6842
6838
|
const Xe = () => {
|
|
6843
6839
|
var ae, Ae, he, ye;
|
|
6844
6840
|
if (a === "form")
|
|
6845
|
-
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(
|
|
6841
|
+
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
|
|
6846
6842
|
formView: o.get("form"),
|
|
6847
6843
|
values: (ae = Q[u]) == null ? void 0 : ae.values,
|
|
6848
6844
|
parentContext: {
|
|
@@ -6871,7 +6867,7 @@ const Mc = (e) => {
|
|
|
6871
6867
|
readOnly: U
|
|
6872
6868
|
});
|
|
6873
6869
|
let X = [];
|
|
6874
|
-
if (Q.some((xe) => xe.treeValues) && (X = k ?
|
|
6870
|
+
if (Q.some((xe) => xe.treeValues) && (X = k ? _t({
|
|
6875
6871
|
resultsToSort: Q.map((xe) => xe.treeValues),
|
|
6876
6872
|
sorter: k,
|
|
6877
6873
|
fields: {
|
|
@@ -6922,7 +6918,7 @@ const Mc = (e) => {
|
|
|
6922
6918
|
banner: !0
|
|
6923
6919
|
});
|
|
6924
6920
|
const Ke = M;
|
|
6925
|
-
return w ? /* @__PURE__ */ n(
|
|
6921
|
+
return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
6926
6922
|
children: [/* @__PURE__ */ n(Ac, {
|
|
6927
6923
|
mode: a,
|
|
6928
6924
|
title: ue(),
|
|
@@ -6988,7 +6984,7 @@ const Mc = (e) => {
|
|
|
6988
6984
|
const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
|
|
6989
6985
|
getContext: h
|
|
6990
6986
|
} = p || {};
|
|
6991
|
-
|
|
6987
|
+
Ct(() => {
|
|
6992
6988
|
y();
|
|
6993
6989
|
}, [t]);
|
|
6994
6990
|
const g = async (I) => o && o[I] ? o[I] : await H.getHandler().getView({
|
|
@@ -7017,7 +7013,7 @@ const Mc = (e) => {
|
|
|
7017
7013
|
c(!1);
|
|
7018
7014
|
}
|
|
7019
7015
|
};
|
|
7020
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(
|
|
7016
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
|
|
7021
7017
|
className: "mt-10",
|
|
7022
7018
|
message: f,
|
|
7023
7019
|
type: "error",
|
|
@@ -7293,7 +7289,7 @@ const {
|
|
|
7293
7289
|
limit: s,
|
|
7294
7290
|
onClose: a
|
|
7295
7291
|
}) => {
|
|
7296
|
-
const l = de({}), u = de(/* @__PURE__ */ new Map()), c =
|
|
7292
|
+
const l = de({}), u = de(/* @__PURE__ */ new Map()), c = $e(
|
|
7297
7293
|
async (g) => {
|
|
7298
7294
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7299
7295
|
ct(Oe("selectAtLeastOneField", r));
|
|
@@ -7315,18 +7311,18 @@ const {
|
|
|
7315
7311
|
format: g.exportType
|
|
7316
7312
|
});
|
|
7317
7313
|
a(), await new Promise((w) => setTimeout(w, 200));
|
|
7318
|
-
const I = await
|
|
7314
|
+
const I = await Dt(O);
|
|
7319
7315
|
mn(O, I.mime);
|
|
7320
7316
|
},
|
|
7321
7317
|
[r, e, o, s, t, a]
|
|
7322
|
-
), f =
|
|
7318
|
+
), f = $e(async () => {
|
|
7323
7319
|
const g = await H.getHandler().getFields({
|
|
7324
7320
|
model: e,
|
|
7325
7321
|
context: t,
|
|
7326
7322
|
fields: []
|
|
7327
7323
|
});
|
|
7328
7324
|
return l.current["/"] = g, _r({ fields: g });
|
|
7329
|
-
}, [e, t, l]), d =
|
|
7325
|
+
}, [e, t, l]), d = $e(
|
|
7330
7326
|
async (g) => {
|
|
7331
7327
|
const O = kn(g, l.current)[Rn(g)], I = O.relation, w = await H.getHandler().getFields({
|
|
7332
7328
|
model: I,
|
|
@@ -7344,7 +7340,7 @@ const {
|
|
|
7344
7340
|
});
|
|
7345
7341
|
},
|
|
7346
7342
|
[l.current, e, t]
|
|
7347
|
-
), m =
|
|
7343
|
+
), m = $e(async () => {
|
|
7348
7344
|
const g = await qc({ model: e, context: t }), y = await Jc({
|
|
7349
7345
|
predefinedExports: g,
|
|
7350
7346
|
fields: l.current,
|
|
@@ -7363,7 +7359,7 @@ const {
|
|
|
7363
7359
|
})),
|
|
7364
7360
|
keysWithChilds: y
|
|
7365
7361
|
};
|
|
7366
|
-
}, [l.current]), v =
|
|
7362
|
+
}, [l.current]), v = $e(
|
|
7367
7363
|
async (g) => {
|
|
7368
7364
|
const y = await h("ir.exports"), O = await h("ir.exports.line"), I = await H.getHandler().create({
|
|
7369
7365
|
model: "ir.exports",
|
|
@@ -7387,7 +7383,7 @@ const {
|
|
|
7387
7383
|
), { ...g, id: I };
|
|
7388
7384
|
},
|
|
7389
7385
|
[]
|
|
7390
|
-
), p =
|
|
7386
|
+
), p = $e(
|
|
7391
7387
|
async (g) => {
|
|
7392
7388
|
await H.getHandler().delete({
|
|
7393
7389
|
model: "ir.exports",
|
|
@@ -7395,7 +7391,7 @@ const {
|
|
|
7395
7391
|
});
|
|
7396
7392
|
},
|
|
7397
7393
|
[]
|
|
7398
|
-
), h =
|
|
7394
|
+
), h = $e(
|
|
7399
7395
|
async (g) => {
|
|
7400
7396
|
if (u.current.has(g))
|
|
7401
7397
|
return u.current.get(g);
|
|
@@ -7683,8 +7679,8 @@ var Ao = { exports: {} };
|
|
|
7683
7679
|
return new Date((_ === "X" ? 1e3 : 1) * M);
|
|
7684
7680
|
var k = p(_)(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;
|
|
7685
7681
|
j && !q || (J = q > 0 ? q - 1 : Z.getMonth());
|
|
7686
|
-
var fe = z || 0, be = U || 0,
|
|
7687
|
-
return ee ? new Date(Date.UTC(Q, J, ie, fe, be,
|
|
7682
|
+
var fe = z || 0, be = U || 0, Ee = L || 0, Ie = B || 0;
|
|
7683
|
+
return ee ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie)) : new Date(Q, J, ie, fe, be, Ee, Ie);
|
|
7688
7684
|
} catch {
|
|
7689
7685
|
return new Date("");
|
|
7690
7686
|
}
|
|
@@ -7828,11 +7824,11 @@ const rd = (e) => {
|
|
|
7828
7824
|
i == null || i(I);
|
|
7829
7825
|
};
|
|
7830
7826
|
async function h() {
|
|
7831
|
-
const I = await
|
|
7827
|
+
const I = await Dt(r), w = `data:${I == null ? void 0 : I.mime};base64,${r}`, V = document.createElement("a"), D = d(a), E = d("name");
|
|
7832
7828
|
V.href = w, V.download = D || E, V.click();
|
|
7833
7829
|
}
|
|
7834
7830
|
async function g() {
|
|
7835
|
-
const I = await
|
|
7831
|
+
const I = await Dt(r);
|
|
7836
7832
|
mn(r, I.mime);
|
|
7837
7833
|
}
|
|
7838
7834
|
async function y(I) {
|
|
@@ -7930,7 +7926,7 @@ function Zn(e) {
|
|
|
7930
7926
|
children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
|
|
7931
7927
|
}), /* @__PURE__ */ n(le, {
|
|
7932
7928
|
flex: "none",
|
|
7933
|
-
children: /* @__PURE__ */ n(
|
|
7929
|
+
children: /* @__PURE__ */ n(Rt, {
|
|
7934
7930
|
style: {
|
|
7935
7931
|
opacity: t.view_id === v.view_id ? 1 : 0
|
|
7936
7932
|
}
|
|
@@ -7991,7 +7987,7 @@ function Zn(e) {
|
|
|
7991
7987
|
borderTopLeftRadius: 0,
|
|
7992
7988
|
borderBottomLeftRadius: 0
|
|
7993
7989
|
},
|
|
7994
|
-
icon: /* @__PURE__ */ n(
|
|
7990
|
+
icon: /* @__PURE__ */ n(At, {
|
|
7995
7991
|
style: {
|
|
7996
7992
|
fontSize: "0.5em"
|
|
7997
7993
|
}
|
|
@@ -8001,7 +7997,7 @@ function Zn(e) {
|
|
|
8001
7997
|
})]
|
|
8002
7998
|
});
|
|
8003
7999
|
}
|
|
8004
|
-
function
|
|
8000
|
+
function It(e) {
|
|
8005
8001
|
const {
|
|
8006
8002
|
icon: t,
|
|
8007
8003
|
tooltip: r,
|
|
@@ -8030,7 +8026,7 @@ function Dt(e) {
|
|
|
8030
8026
|
overlay: l(),
|
|
8031
8027
|
disabled: a || !i || i.length === 0,
|
|
8032
8028
|
children: /* @__PURE__ */ P(_e, {
|
|
8033
|
-
children: [t, " ", s, " ", /* @__PURE__ */ n(
|
|
8029
|
+
children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
|
|
8034
8030
|
})
|
|
8035
8031
|
});
|
|
8036
8032
|
}
|
|
@@ -8122,7 +8118,7 @@ const fd = (e) => {
|
|
|
8122
8118
|
lang: o
|
|
8123
8119
|
} = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ P(_e, {
|
|
8124
8120
|
disabled: r,
|
|
8125
|
-
children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(
|
|
8121
|
+
children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(At, {
|
|
8126
8122
|
style: {
|
|
8127
8123
|
fontSize: 12
|
|
8128
8124
|
}
|
|
@@ -8146,7 +8142,7 @@ const fd = (e) => {
|
|
|
8146
8142
|
onOpenAttachmentDetail: l,
|
|
8147
8143
|
onListAllAttachments: u
|
|
8148
8144
|
} = e;
|
|
8149
|
-
return o ? /* @__PURE__ */ n(
|
|
8145
|
+
return o ? /* @__PURE__ */ n(Le, {
|
|
8150
8146
|
style: {
|
|
8151
8147
|
padding: 20
|
|
8152
8148
|
}
|
|
@@ -8234,7 +8230,7 @@ function hd(e) {
|
|
|
8234
8230
|
formRef: a
|
|
8235
8231
|
} = Y(Qe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
|
|
8236
8232
|
t: v
|
|
8237
|
-
} = Y(we), p =
|
|
8233
|
+
} = Y(we), p = $e(async () => {
|
|
8238
8234
|
u(!0);
|
|
8239
8235
|
try {
|
|
8240
8236
|
const y = await H.getHandler().readObjects({
|
|
@@ -8253,7 +8249,7 @@ function hd(e) {
|
|
|
8253
8249
|
Ue(y);
|
|
8254
8250
|
}
|
|
8255
8251
|
u(!1);
|
|
8256
|
-
}, t), h =
|
|
8252
|
+
}, t), h = $e(async (y) => {
|
|
8257
8253
|
if (y.link) {
|
|
8258
8254
|
window.open(y.link);
|
|
8259
8255
|
return;
|
|
@@ -8271,11 +8267,11 @@ function hd(e) {
|
|
|
8271
8267
|
}
|
|
8272
8268
|
if (m(!1), !!O)
|
|
8273
8269
|
if (O.datas) {
|
|
8274
|
-
const I = await
|
|
8270
|
+
const I = await Dt(O.datas);
|
|
8275
8271
|
mn(O.datas, I.mime);
|
|
8276
8272
|
} else
|
|
8277
8273
|
s(O);
|
|
8278
|
-
}, []), g =
|
|
8274
|
+
}, []), g = $e(async (y) => {
|
|
8279
8275
|
s(y);
|
|
8280
8276
|
}, []);
|
|
8281
8277
|
return pe(() => {
|
|
@@ -8297,7 +8293,7 @@ function hd(e) {
|
|
|
8297
8293
|
closable: !1,
|
|
8298
8294
|
centered: !0,
|
|
8299
8295
|
maskClosable: !1,
|
|
8300
|
-
children: /* @__PURE__ */ n(
|
|
8296
|
+
children: /* @__PURE__ */ n(Le, {})
|
|
8301
8297
|
})]
|
|
8302
8298
|
});
|
|
8303
8299
|
}
|
|
@@ -8332,7 +8328,7 @@ function pd({
|
|
|
8332
8328
|
} = Y(Qe), {
|
|
8333
8329
|
t: C,
|
|
8334
8330
|
lang: S
|
|
8335
|
-
} = Y(we), x = Y(
|
|
8331
|
+
} = Y(we), x = Y(Mt), {
|
|
8336
8332
|
processAction: $
|
|
8337
8333
|
} = x || {}, R = Y(st), {
|
|
8338
8334
|
openRelate: F,
|
|
@@ -8423,7 +8419,7 @@ function pd({
|
|
|
8423
8419
|
return r ? /* @__PURE__ */ P(Ye, {
|
|
8424
8420
|
wrap: !0,
|
|
8425
8421
|
children: [O && /* @__PURE__ */ P(ne, {
|
|
8426
|
-
children: [/* @__PURE__ */ n(
|
|
8422
|
+
children: [/* @__PURE__ */ n(Le, {}), St(), St()]
|
|
8427
8423
|
}), /* @__PURE__ */ n(Ro, {
|
|
8428
8424
|
disabled: a || O || p || h
|
|
8429
8425
|
}), /* @__PURE__ */ n(qe, {
|
|
@@ -8444,7 +8440,7 @@ function pd({
|
|
|
8444
8440
|
disabled: a || l === void 0 || p || h || O,
|
|
8445
8441
|
loading: p,
|
|
8446
8442
|
onClick: j
|
|
8447
|
-
}),
|
|
8443
|
+
}), St(), /* @__PURE__ */ n(qe, {
|
|
8448
8444
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
8449
8445
|
tooltip: C("showLogs"),
|
|
8450
8446
|
disabled: a || l === void 0 || p || h || O,
|
|
@@ -8462,7 +8458,7 @@ function pd({
|
|
|
8462
8458
|
w.current.fetchValues();
|
|
8463
8459
|
});
|
|
8464
8460
|
}
|
|
8465
|
-
}),
|
|
8461
|
+
}), St(), /* @__PURE__ */ n(Zn, {
|
|
8466
8462
|
currentView: r,
|
|
8467
8463
|
previousView: D,
|
|
8468
8464
|
availableViews: t,
|
|
@@ -8471,7 +8467,7 @@ function pd({
|
|
|
8471
8467
|
},
|
|
8472
8468
|
disabled: z,
|
|
8473
8469
|
formHasChanges: s
|
|
8474
|
-
}),
|
|
8470
|
+
}), St(), /* @__PURE__ */ P(Ye, {
|
|
8475
8471
|
children: [/* @__PURE__ */ n(qe, {
|
|
8476
8472
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8477
8473
|
tooltip: C("previous"),
|
|
@@ -8489,17 +8485,17 @@ function pd({
|
|
|
8489
8485
|
_(N);
|
|
8490
8486
|
}
|
|
8491
8487
|
})]
|
|
8492
|
-
}),
|
|
8488
|
+
}), St(), /* @__PURE__ */ n(It, {
|
|
8493
8489
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
8494
8490
|
disabled: z,
|
|
8495
8491
|
tooltip: C("actions"),
|
|
8496
8492
|
items: e == null ? void 0 : e.action,
|
|
8497
8493
|
onItemClick: async (L) => {
|
|
8498
|
-
!L || !(await
|
|
8494
|
+
!L || !(await Tt({
|
|
8499
8495
|
onFormSave: o
|
|
8500
8496
|
})).succeed || U(L);
|
|
8501
8497
|
}
|
|
8502
|
-
}), /* @__PURE__ */ n(
|
|
8498
|
+
}), /* @__PURE__ */ n(It, {
|
|
8503
8499
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8504
8500
|
disabled: z,
|
|
8505
8501
|
tooltip: C("reports"),
|
|
@@ -8507,7 +8503,7 @@ function pd({
|
|
|
8507
8503
|
onItemClick: async (L) => {
|
|
8508
8504
|
if (!L)
|
|
8509
8505
|
return;
|
|
8510
|
-
const B = await
|
|
8506
|
+
const B = await Tt({
|
|
8511
8507
|
onFormSave: o
|
|
8512
8508
|
});
|
|
8513
8509
|
!B.succeed || U({
|
|
@@ -8518,13 +8514,13 @@ function pd({
|
|
|
8518
8514
|
}
|
|
8519
8515
|
});
|
|
8520
8516
|
}
|
|
8521
|
-
}), /* @__PURE__ */ n(
|
|
8517
|
+
}), /* @__PURE__ */ n(It, {
|
|
8522
8518
|
icon: /* @__PURE__ */ n(jr, {}),
|
|
8523
8519
|
disabled: z,
|
|
8524
8520
|
tooltip: C("related"),
|
|
8525
8521
|
items: e == null ? void 0 : e.relate,
|
|
8526
8522
|
onItemClick: async (L) => {
|
|
8527
|
-
!L || !(await
|
|
8523
|
+
!L || !(await Tt({
|
|
8528
8524
|
onFormSave: o
|
|
8529
8525
|
})).succeed || F({
|
|
8530
8526
|
relateData: L,
|
|
@@ -8538,7 +8534,7 @@ function pd({
|
|
|
8538
8534
|
disabled: z,
|
|
8539
8535
|
attachments: I,
|
|
8540
8536
|
onAddNewAttachment: async () => {
|
|
8541
|
-
const L = await
|
|
8537
|
+
const L = await Tt({
|
|
8542
8538
|
onFormSave: o
|
|
8543
8539
|
});
|
|
8544
8540
|
if (!L.succeed)
|
|
@@ -8557,7 +8553,7 @@ function pd({
|
|
|
8557
8553
|
});
|
|
8558
8554
|
},
|
|
8559
8555
|
onListAllAttachments: async () => {
|
|
8560
|
-
const L = await
|
|
8556
|
+
const L = await Tt({
|
|
8561
8557
|
onFormSave: o
|
|
8562
8558
|
});
|
|
8563
8559
|
if (!L.succeed)
|
|
@@ -8570,7 +8566,7 @@ function pd({
|
|
|
8570
8566
|
});
|
|
8571
8567
|
},
|
|
8572
8568
|
onViewAttachmentDetails: async (L) => {
|
|
8573
|
-
!(await
|
|
8569
|
+
!(await Tt({
|
|
8574
8570
|
onFormSave: o
|
|
8575
8571
|
})).succeed || A({
|
|
8576
8572
|
model: "ir.attachment",
|
|
@@ -8581,12 +8577,12 @@ function pd({
|
|
|
8581
8577
|
})]
|
|
8582
8578
|
}) : null;
|
|
8583
8579
|
}
|
|
8584
|
-
function
|
|
8580
|
+
function St() {
|
|
8585
8581
|
return /* @__PURE__ */ n("div", {
|
|
8586
8582
|
className: "inline-block w-2"
|
|
8587
8583
|
});
|
|
8588
8584
|
}
|
|
8589
|
-
async function
|
|
8585
|
+
async function Tt({
|
|
8590
8586
|
onFormSave: e
|
|
8591
8587
|
}) {
|
|
8592
8588
|
const t = await (e == null ? void 0 : e());
|
|
@@ -8631,7 +8627,7 @@ const {
|
|
|
8631
8627
|
children: [l ? null : /* @__PURE__ */ n(le, {
|
|
8632
8628
|
flex: "32px",
|
|
8633
8629
|
children: v ? /* @__PURE__ */ n(_e, {
|
|
8634
|
-
icon: /* @__PURE__ */ n(
|
|
8630
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
8635
8631
|
onClick: () => {
|
|
8636
8632
|
o(r) && (p(!1), g(!1));
|
|
8637
8633
|
},
|
|
@@ -8763,7 +8759,7 @@ const {
|
|
|
8763
8759
|
style: {
|
|
8764
8760
|
marginLeft: 15
|
|
8765
8761
|
},
|
|
8766
|
-
icon: /* @__PURE__ */ n(
|
|
8762
|
+
icon: /* @__PURE__ */ n(Rt, {}),
|
|
8767
8763
|
htmlType: "submit",
|
|
8768
8764
|
type: "primary",
|
|
8769
8765
|
disabled: o,
|
|
@@ -9054,7 +9050,7 @@ const Td = (e) => {
|
|
|
9054
9050
|
searchVisible: g,
|
|
9055
9051
|
searchValues: S,
|
|
9056
9052
|
showLimitOptions: !1
|
|
9057
|
-
}), k ? /* @__PURE__ */ n(
|
|
9053
|
+
}), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
|
|
9058
9054
|
ref: u,
|
|
9059
9055
|
view_id: t.view_id,
|
|
9060
9056
|
model: i,
|
|
@@ -9205,7 +9201,7 @@ function Id(e) {
|
|
|
9205
9201
|
} = Y(_d), {
|
|
9206
9202
|
t: $,
|
|
9207
9203
|
lang: R
|
|
9208
|
-
} = Y(we), F = Y(
|
|
9204
|
+
} = Y(we), F = Y(Mt), {
|
|
9209
9205
|
processAction: A
|
|
9210
9206
|
} = F || {}, [M, _] = T(!1), N = y !== void 0 && y.trim().length > 0;
|
|
9211
9207
|
function k() {
|
|
@@ -9269,9 +9265,7 @@ function Id(e) {
|
|
|
9269
9265
|
}
|
|
9270
9266
|
return /* @__PURE__ */ P(Ye, {
|
|
9271
9267
|
wrap: !0,
|
|
9272
|
-
children: [
|
|
9273
|
-
children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
|
|
9274
|
-
}), C ? null : /* @__PURE__ */ P(ne, {
|
|
9268
|
+
children: [C ? null : /* @__PURE__ */ P(ne, {
|
|
9275
9269
|
children: [/* @__PURE__ */ n(Od, {
|
|
9276
9270
|
disabled: l || a || O,
|
|
9277
9271
|
searchText: y,
|
|
@@ -9291,7 +9285,7 @@ function Id(e) {
|
|
|
9291
9285
|
},
|
|
9292
9286
|
disabled: l || a || O,
|
|
9293
9287
|
badgeNumber: v == null ? void 0 : v.length
|
|
9294
|
-
}),
|
|
9288
|
+
}), $t(), /* @__PURE__ */ n(Ro, {
|
|
9295
9289
|
disabled: O
|
|
9296
9290
|
}), /* @__PURE__ */ n(qe, {
|
|
9297
9291
|
icon: /* @__PURE__ */ n(Un, {}),
|
|
@@ -9305,7 +9299,7 @@ function Id(e) {
|
|
|
9305
9299
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9306
9300
|
loading: a,
|
|
9307
9301
|
onClick: k
|
|
9308
|
-
}),
|
|
9302
|
+
}), $t()]
|
|
9309
9303
|
}), /* @__PURE__ */ n(qe, {
|
|
9310
9304
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
9311
9305
|
tooltip: $("showLogs"),
|
|
@@ -9324,7 +9318,7 @@ function Id(e) {
|
|
|
9324
9318
|
(U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9325
9319
|
}
|
|
9326
9320
|
}), !C && /* @__PURE__ */ P(ne, {
|
|
9327
|
-
children: [
|
|
9321
|
+
children: [$t(), /* @__PURE__ */ n(Zn, {
|
|
9328
9322
|
currentView: r,
|
|
9329
9323
|
availableViews: t,
|
|
9330
9324
|
onChangeView: (U) => {
|
|
@@ -9333,7 +9327,7 @@ function Id(e) {
|
|
|
9333
9327
|
previousView: w,
|
|
9334
9328
|
disabled: O
|
|
9335
9329
|
})]
|
|
9336
|
-
}),
|
|
9330
|
+
}), $t(), /* @__PURE__ */ n(It, {
|
|
9337
9331
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9338
9332
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9339
9333
|
tooltip: $("actions"),
|
|
@@ -9341,7 +9335,7 @@ function Id(e) {
|
|
|
9341
9335
|
onItemClick: (U) => {
|
|
9342
9336
|
!U || W(U);
|
|
9343
9337
|
}
|
|
9344
|
-
}), /* @__PURE__ */ n(
|
|
9338
|
+
}), /* @__PURE__ */ n(It, {
|
|
9345
9339
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9346
9340
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9347
9341
|
tooltip: $("reports"),
|
|
@@ -9356,7 +9350,7 @@ function Id(e) {
|
|
|
9356
9350
|
});
|
|
9357
9351
|
}
|
|
9358
9352
|
}), x && /* @__PURE__ */ P(ne, {
|
|
9359
|
-
children: [
|
|
9353
|
+
children: [$t(), /* @__PURE__ */ n(It, {
|
|
9360
9354
|
icon: /* @__PURE__ */ n($r, {
|
|
9361
9355
|
component: () => /* @__PURE__ */ P("svg", {
|
|
9362
9356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9426,7 +9420,7 @@ function Id(e) {
|
|
|
9426
9420
|
})]
|
|
9427
9421
|
});
|
|
9428
9422
|
}
|
|
9429
|
-
function
|
|
9423
|
+
function $t() {
|
|
9430
9424
|
return /* @__PURE__ */ n("div", {
|
|
9431
9425
|
className: "inline-block w-2"
|
|
9432
9426
|
});
|
|
@@ -9605,7 +9599,7 @@ function Ed(e, t) {
|
|
|
9605
9599
|
setCurrentId: J,
|
|
9606
9600
|
tabs: fe,
|
|
9607
9601
|
activeKey: be,
|
|
9608
|
-
openAction:
|
|
9602
|
+
openAction: Ee,
|
|
9609
9603
|
onRemoveTab: Ie
|
|
9610
9604
|
} = ie || {};
|
|
9611
9605
|
Bi("ctrl+g,command+g", (te) => {
|
|
@@ -9617,7 +9611,7 @@ function Ed(e, t) {
|
|
|
9617
9611
|
function ge(te) {
|
|
9618
9612
|
O(te), Q == null || Q(te);
|
|
9619
9613
|
}
|
|
9620
|
-
|
|
9614
|
+
bt(t, () => ({
|
|
9621
9615
|
canWeClose: Se
|
|
9622
9616
|
}));
|
|
9623
9617
|
const se = async () => {
|
|
@@ -9637,8 +9631,8 @@ function Ed(e, t) {
|
|
|
9637
9631
|
viewTuple: me
|
|
9638
9632
|
});
|
|
9639
9633
|
}
|
|
9640
|
-
const
|
|
9641
|
-
for (const me of
|
|
9634
|
+
const Me = await Md(Fe);
|
|
9635
|
+
for (const me of Me) {
|
|
9642
9636
|
if (!me)
|
|
9643
9637
|
continue;
|
|
9644
9638
|
const [, Te] = me.viewTuple;
|
|
@@ -9699,7 +9693,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9699
9693
|
tabKey: u,
|
|
9700
9694
|
canWeClose: Se
|
|
9701
9695
|
}), pe(() => {
|
|
9702
|
-
const te = I.find((
|
|
9696
|
+
const te = I.find((Me) => Me.type === "tree"), Fe = I.find((Me) => c.id ? Me.type === c.type && Me.view_id === c.id : Me.type === c.type);
|
|
9703
9697
|
ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
|
|
9704
9698
|
}, [i, s, m]), pe(() => {
|
|
9705
9699
|
be === u && (J == null || J(b), Q == null || Q(y));
|
|
@@ -9714,25 +9708,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9714
9708
|
var me;
|
|
9715
9709
|
z(!0);
|
|
9716
9710
|
const Fe = F.findIndex((Te) => Te.id === te);
|
|
9717
|
-
let
|
|
9711
|
+
let Me;
|
|
9718
9712
|
if (Fe === -1) {
|
|
9719
9713
|
try {
|
|
9720
|
-
|
|
9714
|
+
Me = (me = await H.getHandler().readObjects({
|
|
9721
9715
|
model: i,
|
|
9722
9716
|
ids: [te],
|
|
9723
9717
|
context: o
|
|
9724
9718
|
})) == null ? void 0 : me[0];
|
|
9725
9719
|
} catch {
|
|
9726
9720
|
}
|
|
9727
|
-
if (!
|
|
9721
|
+
if (!Me) {
|
|
9728
9722
|
z(!1), q(!1), ct(B("idNotFound"));
|
|
9729
9723
|
return;
|
|
9730
9724
|
}
|
|
9731
9725
|
} else
|
|
9732
|
-
|
|
9726
|
+
Me = F[Fe];
|
|
9733
9727
|
z(!1), q(!1);
|
|
9734
9728
|
const ce = s.find((Te) => Te[1] === "form");
|
|
9735
|
-
|
|
9729
|
+
Ee({
|
|
9736
9730
|
domain: [],
|
|
9737
9731
|
context: o,
|
|
9738
9732
|
model: i,
|
|
@@ -9809,7 +9803,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9809
9803
|
ge(te);
|
|
9810
9804
|
}
|
|
9811
9805
|
}
|
|
9812
|
-
return V ? /* @__PURE__ */ n(
|
|
9806
|
+
return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(dl, {
|
|
9813
9807
|
title: a,
|
|
9814
9808
|
currentView: y,
|
|
9815
9809
|
setCurrentView: ge,
|
|
@@ -9844,7 +9838,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9844
9838
|
})]
|
|
9845
9839
|
}) : null;
|
|
9846
9840
|
}
|
|
9847
|
-
const $o =
|
|
9841
|
+
const $o = wt(Ed);
|
|
9848
9842
|
async function $d({
|
|
9849
9843
|
actionId: e,
|
|
9850
9844
|
rootContext: t = {},
|
|
@@ -9853,7 +9847,7 @@ async function $d({
|
|
|
9853
9847
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
|
|
9854
9848
|
action: o,
|
|
9855
9849
|
context: t
|
|
9856
|
-
}), a =
|
|
9850
|
+
}), a = vt({
|
|
9857
9851
|
context: s.context,
|
|
9858
9852
|
values: r,
|
|
9859
9853
|
fields: {}
|
|
@@ -10012,8 +10006,8 @@ function Kd(e) {
|
|
|
10012
10006
|
}, U = async () => {
|
|
10013
10007
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
10014
10008
|
colors: be
|
|
10015
|
-
} =
|
|
10016
|
-
totalItems:
|
|
10009
|
+
} = Ot(p), {
|
|
10010
|
+
totalItems: Ee,
|
|
10017
10011
|
results: Ie,
|
|
10018
10012
|
attrsEvaluated: Be
|
|
10019
10013
|
} = await H.getHandler().searchForTree({
|
|
@@ -10028,7 +10022,7 @@ function Kd(e) {
|
|
|
10028
10022
|
}
|
|
10029
10023
|
});
|
|
10030
10024
|
R(Qt(Be));
|
|
10031
|
-
const ge =
|
|
10025
|
+
const ge = _t({
|
|
10032
10026
|
resultsToSort: Ie,
|
|
10033
10027
|
sorter: F,
|
|
10034
10028
|
fields: {
|
|
@@ -10037,7 +10031,7 @@ function Kd(e) {
|
|
|
10037
10031
|
}
|
|
10038
10032
|
});
|
|
10039
10033
|
q(!1), x(ge);
|
|
10040
|
-
const se = await
|
|
10034
|
+
const se = await Ee;
|
|
10041
10035
|
C(se);
|
|
10042
10036
|
}, L = async () => {
|
|
10043
10037
|
try {
|
|
@@ -10115,7 +10109,7 @@ function Kd(e) {
|
|
|
10115
10109
|
sorter: F,
|
|
10116
10110
|
onChangeSort: (J) => {
|
|
10117
10111
|
A == null || A(J);
|
|
10118
|
-
const fe =
|
|
10112
|
+
const fe = _t({
|
|
10119
10113
|
resultsToSort: S,
|
|
10120
10114
|
sorter: J,
|
|
10121
10115
|
fields: {
|
|
@@ -10133,7 +10127,7 @@ function Kd(e) {
|
|
|
10133
10127
|
message: N,
|
|
10134
10128
|
type: "error",
|
|
10135
10129
|
banner: !0
|
|
10136
|
-
}) : u ? /* @__PURE__ */ n(
|
|
10130
|
+
}) : u ? /* @__PURE__ */ n(Le, {
|
|
10137
10131
|
style: {
|
|
10138
10132
|
padding: "2rem"
|
|
10139
10133
|
}
|
|
@@ -10180,7 +10174,7 @@ function Wd(e, t) {
|
|
|
10180
10174
|
} = Y(Xn), h = de(), g = de();
|
|
10181
10175
|
pe(() => {
|
|
10182
10176
|
y();
|
|
10183
|
-
}, [r, o, i]),
|
|
10177
|
+
}, [r, o, i]), bt(t, () => ({
|
|
10184
10178
|
refresh: () => {
|
|
10185
10179
|
y();
|
|
10186
10180
|
},
|
|
@@ -10372,12 +10366,12 @@ function Wd(e, t) {
|
|
|
10372
10366
|
const [Q, J] = ie, {
|
|
10373
10367
|
actionId: fe,
|
|
10374
10368
|
actionType: be,
|
|
10375
|
-
title:
|
|
10369
|
+
title: Ee,
|
|
10376
10370
|
model: Ie
|
|
10377
10371
|
} = S, Be = {
|
|
10378
10372
|
action_id: fe,
|
|
10379
10373
|
action_type: be,
|
|
10380
|
-
name:
|
|
10374
|
+
name: Ee,
|
|
10381
10375
|
res_id: Z.id,
|
|
10382
10376
|
res_model: Ie,
|
|
10383
10377
|
view_id: Q,
|
|
@@ -10440,7 +10434,7 @@ function Wd(e, t) {
|
|
|
10440
10434
|
})
|
|
10441
10435
|
});
|
|
10442
10436
|
}
|
|
10443
|
-
const Ud =
|
|
10437
|
+
const Ud = wt(Wd), Gd = (e) => {
|
|
10444
10438
|
const {
|
|
10445
10439
|
ooui: t
|
|
10446
10440
|
} = e;
|
|
@@ -10467,7 +10461,7 @@ const Ud = bt(Wd), Gd = (e) => {
|
|
|
10467
10461
|
} = r, y = Y(Ne), {
|
|
10468
10462
|
getContext: O
|
|
10469
10463
|
} = y || {};
|
|
10470
|
-
|
|
10464
|
+
Ct(() => {
|
|
10471
10465
|
w();
|
|
10472
10466
|
}, [o]);
|
|
10473
10467
|
const I = (b) => {
|
|
@@ -10481,7 +10475,7 @@ const Ud = bt(Wd), Gd = (e) => {
|
|
|
10481
10475
|
if (r.domain) {
|
|
10482
10476
|
const C = await H.getHandler().evalDomain({
|
|
10483
10477
|
domain: r.domain,
|
|
10484
|
-
values:
|
|
10478
|
+
values: kt({
|
|
10485
10479
|
fields: y == null ? void 0 : y.getFields(),
|
|
10486
10480
|
values: y.getPlainValues()
|
|
10487
10481
|
}),
|
|
@@ -10540,7 +10534,7 @@ const Ud = bt(Wd), Gd = (e) => {
|
|
|
10540
10534
|
});
|
|
10541
10535
|
}), I(C);
|
|
10542
10536
|
};
|
|
10543
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(
|
|
10537
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(ne, {
|
|
10544
10538
|
children: /* @__PURE__ */ P("div", {
|
|
10545
10539
|
className: "flex flex-row",
|
|
10546
10540
|
children: [/* @__PURE__ */ n(Nt.Group, {
|
|
@@ -10740,7 +10734,7 @@ function au(e, t) {
|
|
|
10740
10734
|
closable: !0,
|
|
10741
10735
|
content: /* @__PURE__ */ n(su, {})
|
|
10742
10736
|
}]), f = de(/* @__PURE__ */ new Map()), d = de();
|
|
10743
|
-
|
|
10737
|
+
bt(t, () => ({
|
|
10744
10738
|
retrieveAndOpenAction: p,
|
|
10745
10739
|
openShortcut: y
|
|
10746
10740
|
}));
|
|
@@ -10773,7 +10767,7 @@ function au(e, t) {
|
|
|
10773
10767
|
Ue("Action type not supported");
|
|
10774
10768
|
return;
|
|
10775
10769
|
}
|
|
10776
|
-
const [x, $] = w.split(","), R = parseInt($), F =
|
|
10770
|
+
const [x, $] = w.split(","), R = parseInt($), F = vt({
|
|
10777
10771
|
context: S.context,
|
|
10778
10772
|
values: i,
|
|
10779
10773
|
fields: {}
|
|
@@ -10880,7 +10874,7 @@ function au(e, t) {
|
|
|
10880
10874
|
} = w, [M, _] = $[0], N = {
|
|
10881
10875
|
id: M,
|
|
10882
10876
|
type: _
|
|
10883
|
-
}, k =
|
|
10877
|
+
}, k = vt({
|
|
10884
10878
|
context: S,
|
|
10885
10879
|
values: {
|
|
10886
10880
|
...D,
|
|
@@ -10889,7 +10883,7 @@ function au(e, t) {
|
|
|
10889
10883
|
fields: V
|
|
10890
10884
|
}), j = x ? await H.getHandler().evalDomain({
|
|
10891
10885
|
domain: x,
|
|
10892
|
-
values:
|
|
10886
|
+
values: kt({
|
|
10893
10887
|
fields: V,
|
|
10894
10888
|
values: {
|
|
10895
10889
|
...D,
|
|
@@ -10927,7 +10921,7 @@ function au(e, t) {
|
|
|
10927
10921
|
} = w, C = `${D},${V}`, S = await H.getHandler().getActionData({
|
|
10928
10922
|
action: C,
|
|
10929
10923
|
context: o
|
|
10930
|
-
}), x =
|
|
10924
|
+
}), x = vt({
|
|
10931
10925
|
context: S.context,
|
|
10932
10926
|
values: i,
|
|
10933
10927
|
fields: {}
|
|
@@ -11114,7 +11108,7 @@ function au(e, t) {
|
|
|
11114
11108
|
})
|
|
11115
11109
|
});
|
|
11116
11110
|
}
|
|
11117
|
-
const Nu =
|
|
11111
|
+
const Nu = wt(au), {
|
|
11118
11112
|
useToken: lu
|
|
11119
11113
|
} = Pe;
|
|
11120
11114
|
function cu(e) {
|
|
@@ -11324,7 +11318,7 @@ const {
|
|
|
11324
11318
|
})
|
|
11325
11319
|
})
|
|
11326
11320
|
})]
|
|
11327
|
-
}), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(
|
|
11321
|
+
}), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Le, {
|
|
11328
11322
|
style: {
|
|
11329
11323
|
padding: "1rem"
|
|
11330
11324
|
}
|
|
@@ -11410,7 +11404,7 @@ const {
|
|
|
11410
11404
|
borderTopLeftRadius: 0,
|
|
11411
11405
|
borderBottomLeftRadius: 0
|
|
11412
11406
|
},
|
|
11413
|
-
icon: /* @__PURE__ */ n(
|
|
11407
|
+
icon: /* @__PURE__ */ n(At, {
|
|
11414
11408
|
style: {
|
|
11415
11409
|
fontSize: "0.5em"
|
|
11416
11410
|
}
|