@gisce/react-ooui 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ze, { useContext as
|
|
1
|
+
import ze, { useContext as W, useState as T, useEffect as pe, useRef as ue, useCallback as Ee, forwardRef as vt, useImperativeHandle as wt } from "react";
|
|
2
2
|
import { Tooltip as mt, theme as Pe, Typography as an, Form as nt, Row as Se, Col as le, Modal as We, Button as Oe, Dropdown as Bt, Menu as He, Spin as $e, Divider as ln, Space as Ke, Input as et, Select as bt, Checkbox as Nt, Alert as Je, Timeline as tr, Statistic as Xo, Card as Qo, Tag as Ir, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ei, Avatar as ti, Pagination as ni, Tabs as Vr, Popover as ri, Radio as nr, Switch as oi, Steps as rr, Layout as ii } from "antd";
|
|
3
|
-
import { Label as Dt, Field as _n, Tree as Ar, Reference as si, Selection as $n, Many2one as
|
|
3
|
+
import { Label as Dt, Field as _n, Tree as Ar, Reference as si, Selection as $n, Many2one as Rr, Boolean as ai, Container as li, parseContext as yt, Form as kr, Integer as In, SearchFieldTypes as ut, SearchFilter as ci, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as di } from "@gisce/ooui";
|
|
4
4
|
import * as or from "@ant-design/icons";
|
|
5
5
|
import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as ht, LoadingOutlined as tt, DownOutlined as Vt, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as At, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as ui, SearchOutlined as Bn, RightCircleOutlined as fi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as mi, MinusSquareOutlined as hi, FileAddOutlined as cn, AlignLeftOutlined as pi, ApiOutlined as gi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as yi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as vi, CalendarOutlined as wi, LinkOutlined as Wr, SaveOutlined as bi, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as xi, BorderOuterOutlined as Ci, SettingOutlined as Si, ExportOutlined as Ti } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
@@ -15,8 +15,8 @@ import xt from "use-deep-compare-effect";
|
|
|
15
15
|
import { Table as Di } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as Vi } from "file-type-buffer-browser";
|
|
17
17
|
import { isPresetStatusColor as Ai } from "antd/lib/_util/colors";
|
|
18
|
-
import { GridUi as
|
|
19
|
-
import { FieldSet as
|
|
18
|
+
import { GridUi as Ri } from "@gisce/fiber-diagram";
|
|
19
|
+
import { FieldSet as ki, ExportModal as Mi } from "@gisce/react-formiga-components";
|
|
20
20
|
import Ei from "validator/lib/isURL";
|
|
21
21
|
import $i from "validator/lib/isEmail";
|
|
22
22
|
import { useHotkeys as Li } from "react-hotkeys-hook";
|
|
@@ -367,7 +367,7 @@ function ve({
|
|
|
367
367
|
tooltip: d
|
|
368
368
|
} = e, {
|
|
369
369
|
t: m
|
|
370
|
-
} =
|
|
370
|
+
} = W(we), v = a ? [{
|
|
371
371
|
required: !0,
|
|
372
372
|
message: m("fillRequiredField"),
|
|
373
373
|
type: l,
|
|
@@ -595,11 +595,11 @@ const Jr = (e) => {
|
|
|
595
595
|
icon: l,
|
|
596
596
|
context: u,
|
|
597
597
|
readOnly: c
|
|
598
|
-
} = t, f =
|
|
598
|
+
} = t, f = W(Le), {
|
|
599
599
|
executeButtonAction: d
|
|
600
600
|
} = f || {}, [m, v] = T(!1), {
|
|
601
601
|
lang: p
|
|
602
|
-
} =
|
|
602
|
+
} = W(we);
|
|
603
603
|
async function h() {
|
|
604
604
|
v(!0), await d({
|
|
605
605
|
type: s,
|
|
@@ -661,11 +661,11 @@ const Jr = (e) => {
|
|
|
661
661
|
danger: d,
|
|
662
662
|
context: m,
|
|
663
663
|
readOnly: v
|
|
664
|
-
} = r || {}, p =
|
|
664
|
+
} = r || {}, p = W(Le), {
|
|
665
665
|
executeButtonAction: h
|
|
666
666
|
} = p || {}, [g, y] = T(!1), {
|
|
667
667
|
lang: F
|
|
668
|
-
} =
|
|
668
|
+
} = W(we);
|
|
669
669
|
function _() {
|
|
670
670
|
if (g)
|
|
671
671
|
return /* @__PURE__ */ n(tt, {});
|
|
@@ -856,7 +856,7 @@ const Zr = (e) => {
|
|
|
856
856
|
modalWidth: l
|
|
857
857
|
} = fn(), {
|
|
858
858
|
t: u
|
|
859
|
-
} =
|
|
859
|
+
} = W(we), [c, f] = T([]), [d, m] = T(!1), [v, p] = T(!1), [h, g] = T({}), y = ue();
|
|
860
860
|
pe(() => {
|
|
861
861
|
t ? F() : g({});
|
|
862
862
|
}, [t]);
|
|
@@ -1016,7 +1016,7 @@ const {
|
|
|
1016
1016
|
token: u
|
|
1017
1017
|
} = ss(), c = a && !o ? {
|
|
1018
1018
|
backgroundColor: u.colorPrimaryBg
|
|
1019
|
-
} : void 0, f =
|
|
1019
|
+
} : void 0, f = W(Le), {
|
|
1020
1020
|
elementHasLostFocus: d
|
|
1021
1021
|
} = f || {};
|
|
1022
1022
|
let m = /* @__PURE__ */ n(et, {
|
|
@@ -1044,7 +1044,7 @@ const {
|
|
|
1044
1044
|
requiredStyle: r,
|
|
1045
1045
|
onChange: i
|
|
1046
1046
|
}) => {
|
|
1047
|
-
const o =
|
|
1047
|
+
const o = W(Le), {
|
|
1048
1048
|
activeId: s,
|
|
1049
1049
|
activeModel: a,
|
|
1050
1050
|
fetchValues: l,
|
|
@@ -1052,7 +1052,7 @@ const {
|
|
|
1052
1052
|
elementHasLostFocus: c
|
|
1053
1053
|
} = o || {}, [f, d] = T(!1), {
|
|
1054
1054
|
t: m
|
|
1055
|
-
} =
|
|
1055
|
+
} = W(we);
|
|
1056
1056
|
return s ? /* @__PURE__ */ H(ee, {
|
|
1057
1057
|
children: [/* @__PURE__ */ n("div", {
|
|
1058
1058
|
onClick: () => {
|
|
@@ -1219,10 +1219,10 @@ function Is(e) {
|
|
|
1219
1219
|
return t;
|
|
1220
1220
|
}
|
|
1221
1221
|
var Ds = Is, Vs = Ds, As = /^\s+/;
|
|
1222
|
-
function
|
|
1222
|
+
function Rs(e) {
|
|
1223
1223
|
return e && e.slice(0, Vs(e) + 1).replace(As, "");
|
|
1224
1224
|
}
|
|
1225
|
-
var
|
|
1225
|
+
var ks = Rs, Ms = ro, Es = Ms.Symbol, oo = Es, dr = oo, io = Object.prototype, $s = io.hasOwnProperty, Ls = io.toString, Et = dr ? dr.toStringTag : void 0;
|
|
1226
1226
|
function Ns(e) {
|
|
1227
1227
|
var t = $s.call(e, Et), r = e[Et];
|
|
1228
1228
|
try {
|
|
@@ -1249,7 +1249,7 @@ var Zs = Js, Xs = zs, Qs = Zs, ea = "[object Symbol]";
|
|
|
1249
1249
|
function ta(e) {
|
|
1250
1250
|
return typeof e == "symbol" || Qs(e) && Xs(e) == ea;
|
|
1251
1251
|
}
|
|
1252
|
-
var na = ta, ra =
|
|
1252
|
+
var na = ta, ra = ks, mr = no, oa = na, hr = 0 / 0, ia = /^[-+]0x[0-9a-f]+$/i, sa = /^0b[01]+$/i, aa = /^0o[0-7]+$/i, la = parseInt;
|
|
1253
1253
|
function ca(e) {
|
|
1254
1254
|
if (typeof e == "number")
|
|
1255
1255
|
return e;
|
|
@@ -1360,7 +1360,7 @@ const va = (e) => {
|
|
|
1360
1360
|
readOnly: o
|
|
1361
1361
|
} = t, s = ue(null), {
|
|
1362
1362
|
t: a
|
|
1363
|
-
} =
|
|
1363
|
+
} = W(we), l = (d) => {
|
|
1364
1364
|
i == null || i(d);
|
|
1365
1365
|
};
|
|
1366
1366
|
async function u() {
|
|
@@ -1445,7 +1445,7 @@ const va = (e) => {
|
|
|
1445
1445
|
} catch (i) {
|
|
1446
1446
|
return console.log(i), null;
|
|
1447
1447
|
}
|
|
1448
|
-
return /* @__PURE__ */ n(
|
|
1448
|
+
return /* @__PURE__ */ n(Ri, {
|
|
1449
1449
|
inputJson: t,
|
|
1450
1450
|
onChange: (i) => {
|
|
1451
1451
|
r && r(i);
|
|
@@ -1475,7 +1475,7 @@ const va = (e) => {
|
|
|
1475
1475
|
o[s] = i[s];
|
|
1476
1476
|
else {
|
|
1477
1477
|
const a = e.findById(s);
|
|
1478
|
-
a instanceof si || a instanceof $n ? o[s] = i[s] : a instanceof
|
|
1478
|
+
a instanceof si || a instanceof $n ? o[s] = i[s] : a instanceof Rr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
|
|
1479
1479
|
model: a.relation,
|
|
1480
1480
|
id: i[s][0],
|
|
1481
1481
|
value: i[s][1]
|
|
@@ -1575,7 +1575,7 @@ const zn = async (e) => {
|
|
|
1575
1575
|
relation: r,
|
|
1576
1576
|
context: i,
|
|
1577
1577
|
views: o
|
|
1578
|
-
} = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d =
|
|
1578
|
+
} = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = W(Le), {
|
|
1579
1579
|
getContext: m
|
|
1580
1580
|
} = d || {};
|
|
1581
1581
|
xt(() => {
|
|
@@ -1626,7 +1626,7 @@ const zn = async (e) => {
|
|
|
1626
1626
|
readOnly: g,
|
|
1627
1627
|
summaryField: y,
|
|
1628
1628
|
titleField: F
|
|
1629
|
-
} = i, _ = s.filter((x) => x.values), w =
|
|
1629
|
+
} = i, _ = s.filter((x) => x.values), w = W(Le), {
|
|
1630
1630
|
getContext: V
|
|
1631
1631
|
} = w || {};
|
|
1632
1632
|
xt(() => {
|
|
@@ -1819,7 +1819,7 @@ const zn = async (e) => {
|
|
|
1819
1819
|
var a;
|
|
1820
1820
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1821
1821
|
return r.includes(s);
|
|
1822
|
-
}).some((o) => o === !0),
|
|
1822
|
+
}).some((o) => o === !0), Ra = ({
|
|
1823
1823
|
fieldsDomain: e,
|
|
1824
1824
|
fields: t
|
|
1825
1825
|
}) => {
|
|
@@ -1827,7 +1827,7 @@ const zn = async (e) => {
|
|
|
1827
1827
|
return Object.keys(t).forEach((i) => {
|
|
1828
1828
|
r[i] = t[i], e[i] && (r[i].domain = e[i]);
|
|
1829
1829
|
}), r;
|
|
1830
|
-
},
|
|
1830
|
+
}, ka = (e) => {
|
|
1831
1831
|
const t = {};
|
|
1832
1832
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
|
|
1833
1833
|
(r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
|
|
@@ -1873,7 +1873,7 @@ const zn = async (e) => {
|
|
|
1873
1873
|
function gr(e, t, r) {
|
|
1874
1874
|
return r.indexOf(e) === t;
|
|
1875
1875
|
}
|
|
1876
|
-
const
|
|
1876
|
+
const Rt = ({
|
|
1877
1877
|
values: e,
|
|
1878
1878
|
fields: t
|
|
1879
1879
|
}) => {
|
|
@@ -1941,7 +1941,7 @@ const kt = ({
|
|
|
1941
1941
|
context: v,
|
|
1942
1942
|
readOnly: p,
|
|
1943
1943
|
field: h
|
|
1944
|
-
} = r, g =
|
|
1944
|
+
} = r, g = W(Le), {
|
|
1945
1945
|
getContext: y
|
|
1946
1946
|
} = g || {};
|
|
1947
1947
|
xt(() => {
|
|
@@ -1959,7 +1959,7 @@ const kt = ({
|
|
|
1959
1959
|
if (p && (I = [["id", "in", s]]), r.domain) {
|
|
1960
1960
|
const b = await B.getHandler().evalDomain({
|
|
1961
1961
|
domain: r.domain,
|
|
1962
|
-
values:
|
|
1962
|
+
values: Rt({
|
|
1963
1963
|
fields: g == null ? void 0 : g.getFields(),
|
|
1964
1964
|
values: g.getPlainValues()
|
|
1965
1965
|
}),
|
|
@@ -2100,7 +2100,7 @@ const kt = ({
|
|
|
2100
2100
|
case "email":
|
|
2101
2101
|
return hd;
|
|
2102
2102
|
case "float_time":
|
|
2103
|
-
return
|
|
2103
|
+
return kc;
|
|
2104
2104
|
case "fiber_grid":
|
|
2105
2105
|
return ba;
|
|
2106
2106
|
case "timeline":
|
|
@@ -2364,18 +2364,18 @@ const kt = ({
|
|
|
2364
2364
|
setLimit: V,
|
|
2365
2365
|
searchParams: I = [],
|
|
2366
2366
|
setSearchValues: E
|
|
2367
|
-
} = e, [x, b] = T(!1), [O, C] = T(!1), [$,
|
|
2368
|
-
g == null || g([...de]),
|
|
2367
|
+
} = e, [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T(1), [M, D] = T(0), [N, k] = T(), [j, q] = T([]), [K, J] = T(void 0), U = ue(w || Ht), L = ue([]), P = Ee((de) => {
|
|
2368
|
+
g == null || g([...de]), q([...de]);
|
|
2369
2369
|
}, []), z = Ee(() => y || j, [y, j]), oe = Ee(async () => {
|
|
2370
2370
|
const de = await B.getHandler().nameSearch({
|
|
2371
2371
|
model: t,
|
|
2372
2372
|
payload: l,
|
|
2373
|
-
limit:
|
|
2373
|
+
limit: U.current,
|
|
2374
2374
|
attrs: F,
|
|
2375
2375
|
context: c
|
|
2376
2376
|
});
|
|
2377
|
-
if (
|
|
2378
|
-
const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ft(d),
|
|
2377
|
+
if (k(de.length), f == null || f(de.length), de.length > 0) {
|
|
2378
|
+
const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ft(d), Re = await B.getHandler().readEvalUiObjects({
|
|
2379
2379
|
model: t,
|
|
2380
2380
|
ids: se,
|
|
2381
2381
|
arch: d == null ? void 0 : d.arch,
|
|
@@ -2384,8 +2384,8 @@ const kt = ({
|
|
|
2384
2384
|
attrs: be && {
|
|
2385
2385
|
colors: be
|
|
2386
2386
|
}
|
|
2387
|
-
}), Te =
|
|
2388
|
-
L.current = [...Te], J(Qt(
|
|
2387
|
+
}), Te = Re[0];
|
|
2388
|
+
L.current = [...Te], J(Qt(Re[1]));
|
|
2389
2389
|
const Me = Te.map((Be) => Be.id), Ze = v !== void 0 ? Ot({
|
|
2390
2390
|
resultsToSort: Te,
|
|
2391
2391
|
sorter: v,
|
|
@@ -2409,9 +2409,9 @@ const kt = ({
|
|
|
2409
2409
|
f
|
|
2410
2410
|
]), ce = Ee(
|
|
2411
2411
|
async (de) => {
|
|
2412
|
-
const { params: se, newOffset: be } = de || {},
|
|
2413
|
-
params:
|
|
2414
|
-
limit:
|
|
2412
|
+
const { params: se, newOffset: be } = de || {}, Re = hn(se || I, F), { colors: Te } = Ft(d), { totalItems: Me, results: Ze, attrsEvaluated: Be } = await B.getHandler().searchForTree({
|
|
2413
|
+
params: Re,
|
|
2414
|
+
limit: U.current,
|
|
2415
2415
|
offset: be || M,
|
|
2416
2416
|
model: t,
|
|
2417
2417
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
@@ -2433,7 +2433,7 @@ const kt = ({
|
|
|
2433
2433
|
h == null || h(void 0);
|
|
2434
2434
|
b(!1);
|
|
2435
2435
|
const Ie = await Me;
|
|
2436
|
-
|
|
2436
|
+
k(Ie), f == null || f(Ie);
|
|
2437
2437
|
},
|
|
2438
2438
|
[
|
|
2439
2439
|
h,
|
|
@@ -2456,7 +2456,7 @@ const kt = ({
|
|
|
2456
2456
|
try {
|
|
2457
2457
|
b(!0), a == null || a(!0), l && !u.current ? await oe() : await ce(de);
|
|
2458
2458
|
} catch (se) {
|
|
2459
|
-
|
|
2459
|
+
R(se.message);
|
|
2460
2460
|
} finally {
|
|
2461
2461
|
C(!1), a == null || a(!1);
|
|
2462
2462
|
}
|
|
@@ -2475,7 +2475,7 @@ const kt = ({
|
|
|
2475
2475
|
f,
|
|
2476
2476
|
h,
|
|
2477
2477
|
P,
|
|
2478
|
-
|
|
2478
|
+
R,
|
|
2479
2479
|
C,
|
|
2480
2480
|
b,
|
|
2481
2481
|
a,
|
|
@@ -2495,8 +2495,8 @@ const kt = ({
|
|
|
2495
2495
|
[p, z, d, m, P]
|
|
2496
2496
|
), fe = Ee(
|
|
2497
2497
|
(de) => {
|
|
2498
|
-
const { params: se, searchValues: be, limit:
|
|
2499
|
-
x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(se), s == null || s(!1), C(!0),
|
|
2498
|
+
const { params: se, searchValues: be, limit: Re, offset: Te } = de;
|
|
2499
|
+
x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(se), s == null || s(!1), C(!0), R(void 0), A(1), Re && (U.current = Re, V == null || V(Re)), Te && D(Te), Z({
|
|
2500
2500
|
params: se,
|
|
2501
2501
|
newOffset: Te
|
|
2502
2502
|
}));
|
|
@@ -2508,7 +2508,7 @@ const kt = ({
|
|
|
2508
2508
|
o,
|
|
2509
2509
|
s,
|
|
2510
2510
|
C,
|
|
2511
|
-
|
|
2511
|
+
R,
|
|
2512
2512
|
A,
|
|
2513
2513
|
V,
|
|
2514
2514
|
D,
|
|
@@ -2519,13 +2519,13 @@ const kt = ({
|
|
|
2519
2519
|
b(!0), A(de), D((de - 1) * w);
|
|
2520
2520
|
},
|
|
2521
2521
|
[b, w, D, A]
|
|
2522
|
-
),
|
|
2523
|
-
x || (r == null || r(void 0), o == null || o([]), E == null || E({}),
|
|
2522
|
+
), ke = Ee(() => {
|
|
2523
|
+
x || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), D(0), A(1), V == null || V(w || Ht));
|
|
2524
2524
|
}, [
|
|
2525
2525
|
x,
|
|
2526
2526
|
r,
|
|
2527
2527
|
o,
|
|
2528
|
-
|
|
2528
|
+
R,
|
|
2529
2529
|
D,
|
|
2530
2530
|
A,
|
|
2531
2531
|
V,
|
|
@@ -2544,7 +2544,7 @@ const kt = ({
|
|
|
2544
2544
|
);
|
|
2545
2545
|
return {
|
|
2546
2546
|
submit: fe,
|
|
2547
|
-
clear:
|
|
2547
|
+
clear: ke,
|
|
2548
2548
|
fetchResults: Z,
|
|
2549
2549
|
tableRefreshing: x,
|
|
2550
2550
|
searchFilterLoading: O,
|
|
@@ -2586,19 +2586,19 @@ const kt = ({
|
|
|
2586
2586
|
setSearchTreeNameSearch: E,
|
|
2587
2587
|
goToResourceId: x,
|
|
2588
2588
|
limit: b
|
|
2589
|
-
} = e, [O, C] = T(!1), [$,
|
|
2589
|
+
} = e, [O, C] = T(!1), [$, R] = T(!1), [S, A] = T(!1), [M, D] = T(!0), [N, k] = T(!0), [j, q] = T([]), [K, J] = T(!1), [U, L] = T([]), [P, z] = T(!1), [oe, ce] = T(!0), [Z, X] = T(), [fe, xe] = T({}), [ke, _e] = T(b !== void 0 ? b : Ht), [de, se] = T(i);
|
|
2590
2590
|
pe(() => {
|
|
2591
2591
|
m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
|
|
2592
2592
|
}, [m]), pe(() => {
|
|
2593
2593
|
_e(b !== void 0 ? b : Ht);
|
|
2594
2594
|
}, [b]), pe(() => {
|
|
2595
|
-
s.length === 1 ? X(s[0]) : s.length > 1 && X(s.filter((
|
|
2595
|
+
s.length === 1 ? X(s[0]) : s.length > 1 && X(s.filter((Re) => Re.view_id !== r.view_id)[0]);
|
|
2596
2596
|
}, [s]), pe(() => {
|
|
2597
|
-
(Z == null ? void 0 : Z.view_id) === r.view_id && s.length > 1 && X(s.filter((
|
|
2597
|
+
(Z == null ? void 0 : Z.view_id) === r.view_id && s.length > 1 && X(s.filter((Re) => Re.view_id !== r.view_id)[0]);
|
|
2598
2598
|
}, [r]);
|
|
2599
2599
|
const be = async () => {
|
|
2600
|
-
var
|
|
2601
|
-
return await ((
|
|
2600
|
+
var Re;
|
|
2601
|
+
return await ((Re = a.current) == null ? void 0 : Re.submitForm());
|
|
2602
2602
|
};
|
|
2603
2603
|
return /* @__PURE__ */ n(Xe.Provider, {
|
|
2604
2604
|
value: {
|
|
@@ -2609,7 +2609,7 @@ const kt = ({
|
|
|
2609
2609
|
formIsSaving: O,
|
|
2610
2610
|
setFormIsSaving: C,
|
|
2611
2611
|
formHasChanges: $,
|
|
2612
|
-
setFormHasChanges:
|
|
2612
|
+
setFormHasChanges: R,
|
|
2613
2613
|
formRef: a,
|
|
2614
2614
|
searchTreeRef: l,
|
|
2615
2615
|
onFormSave: be,
|
|
@@ -2626,15 +2626,15 @@ const kt = ({
|
|
|
2626
2626
|
formIsLoading: M,
|
|
2627
2627
|
setFormIsLoading: D,
|
|
2628
2628
|
treeIsLoading: N,
|
|
2629
|
-
setTreeIsLoading:
|
|
2629
|
+
setTreeIsLoading: k,
|
|
2630
2630
|
attachments: j,
|
|
2631
|
-
setAttachments:
|
|
2631
|
+
setAttachments: q,
|
|
2632
2632
|
selectedRowItems: V,
|
|
2633
2633
|
setSelectedRowItems: w,
|
|
2634
2634
|
duplicatingItem: K,
|
|
2635
2635
|
setDuplicatingItem: J,
|
|
2636
2636
|
setSearchParams: L,
|
|
2637
|
-
searchParams:
|
|
2637
|
+
searchParams: U,
|
|
2638
2638
|
searchVisible: P,
|
|
2639
2639
|
setSearchVisible: z,
|
|
2640
2640
|
sorter: g,
|
|
@@ -2650,7 +2650,7 @@ const kt = ({
|
|
|
2650
2650
|
goToResourceId: x,
|
|
2651
2651
|
searchValues: fe,
|
|
2652
2652
|
setSearchValues: xe,
|
|
2653
|
-
limit:
|
|
2653
|
+
limit: ke,
|
|
2654
2654
|
setLimit: _e,
|
|
2655
2655
|
setTitle: se
|
|
2656
2656
|
},
|
|
@@ -2685,7 +2685,7 @@ const kt = ({
|
|
|
2685
2685
|
},
|
|
2686
2686
|
children: t
|
|
2687
2687
|
});
|
|
2688
|
-
},
|
|
2688
|
+
}, kt = ze.createContext(null), wr = async (e) => {
|
|
2689
2689
|
var t;
|
|
2690
2690
|
for (let r = 0; r < e.length; r++)
|
|
2691
2691
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2693,11 +2693,11 @@ const kt = ({
|
|
|
2693
2693
|
const {
|
|
2694
2694
|
children: r,
|
|
2695
2695
|
globalValues: i = {}
|
|
2696
|
-
} = e, o = ue(), s = ue(), [a, l] = T(!1), u =
|
|
2696
|
+
} = e, o = ue(), s = ue(), [a, l] = T(!1), u = W(ot), {
|
|
2697
2697
|
openAction: c
|
|
2698
2698
|
} = u || {}, f = ue([]), {
|
|
2699
2699
|
t: d
|
|
2700
|
-
} =
|
|
2700
|
+
} = W(we);
|
|
2701
2701
|
wt(t, () => ({
|
|
2702
2702
|
openActionModal: w
|
|
2703
2703
|
}));
|
|
@@ -2712,7 +2712,7 @@ const kt = ({
|
|
|
2712
2712
|
context: C = {}
|
|
2713
2713
|
} = E, {
|
|
2714
2714
|
context: $,
|
|
2715
|
-
model:
|
|
2715
|
+
model: R,
|
|
2716
2716
|
datas: S = {},
|
|
2717
2717
|
report_name: A,
|
|
2718
2718
|
type: M
|
|
@@ -2725,20 +2725,20 @@ const kt = ({
|
|
|
2725
2725
|
ids: D
|
|
2726
2726
|
} = S || {};
|
|
2727
2727
|
let N = D || [];
|
|
2728
|
-
const
|
|
2728
|
+
const k = typeof $ == "string" ? yt({
|
|
2729
2729
|
context: $,
|
|
2730
2730
|
fields: b,
|
|
2731
2731
|
values: O
|
|
2732
2732
|
}) : $;
|
|
2733
2733
|
try {
|
|
2734
2734
|
const j = await B.getHandler().createReport({
|
|
2735
|
-
model:
|
|
2735
|
+
model: R,
|
|
2736
2736
|
name: A,
|
|
2737
2737
|
datas: S,
|
|
2738
2738
|
ids: N,
|
|
2739
2739
|
context: {
|
|
2740
2740
|
...C,
|
|
2741
|
-
...
|
|
2741
|
+
...k
|
|
2742
2742
|
}
|
|
2743
2743
|
});
|
|
2744
2744
|
l(!0), s.current = !0, o.current = setInterval(() => {
|
|
@@ -2797,7 +2797,7 @@ const kt = ({
|
|
|
2797
2797
|
ids: [parseInt(E.id)],
|
|
2798
2798
|
context: O
|
|
2799
2799
|
}))[0]);
|
|
2800
|
-
const
|
|
2800
|
+
const R = {
|
|
2801
2801
|
...typeof (C == null ? void 0 : C.context) == "string" ? yt({
|
|
2802
2802
|
context: C.context,
|
|
2803
2803
|
fields: x,
|
|
@@ -2811,7 +2811,7 @@ const kt = ({
|
|
|
2811
2811
|
let S = [];
|
|
2812
2812
|
if (C.domain && (S = await B.getHandler().evalDomain({
|
|
2813
2813
|
domain: C.domain,
|
|
2814
|
-
values:
|
|
2814
|
+
values: Rt({
|
|
2815
2815
|
fields: x,
|
|
2816
2816
|
values: {
|
|
2817
2817
|
...b,
|
|
@@ -2819,19 +2819,19 @@ const kt = ({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
}),
|
|
2821
2821
|
fields: x,
|
|
2822
|
-
context:
|
|
2822
|
+
context: R
|
|
2823
2823
|
})), C.target === "new") {
|
|
2824
2824
|
const M = await B.getHandler().getView({
|
|
2825
2825
|
model: C.res_model,
|
|
2826
2826
|
type: "form",
|
|
2827
2827
|
id: ((A = C == null ? void 0 : C.view_id) == null ? void 0 : A[0]) || void 0,
|
|
2828
|
-
context:
|
|
2828
|
+
context: R
|
|
2829
2829
|
});
|
|
2830
2830
|
return w({
|
|
2831
2831
|
domain: S,
|
|
2832
2832
|
model: C.res_model,
|
|
2833
2833
|
formView: M,
|
|
2834
|
-
context:
|
|
2834
|
+
context: R
|
|
2835
2835
|
}), {};
|
|
2836
2836
|
} else {
|
|
2837
2837
|
const {
|
|
@@ -2839,13 +2839,13 @@ const kt = ({
|
|
|
2839
2839
|
views: D
|
|
2840
2840
|
} = await ll({
|
|
2841
2841
|
model: C.res_model,
|
|
2842
|
-
context:
|
|
2842
|
+
context: R,
|
|
2843
2843
|
view_mode: C.view_mode,
|
|
2844
2844
|
views: C.views
|
|
2845
2845
|
});
|
|
2846
2846
|
return c == null || c({
|
|
2847
2847
|
target: "current",
|
|
2848
|
-
context:
|
|
2848
|
+
context: R,
|
|
2849
2849
|
domain: S,
|
|
2850
2850
|
model: C.res_model,
|
|
2851
2851
|
views: D,
|
|
@@ -2910,7 +2910,7 @@ const kt = ({
|
|
|
2910
2910
|
});
|
|
2911
2911
|
}
|
|
2912
2912
|
return /* @__PURE__ */ n(ee, {
|
|
2913
|
-
children: /* @__PURE__ */ n(
|
|
2913
|
+
children: /* @__PURE__ */ n(kt.Provider, {
|
|
2914
2914
|
value: {
|
|
2915
2915
|
processAction: F,
|
|
2916
2916
|
globalValues: i
|
|
@@ -3054,18 +3054,18 @@ function fl(e, t) {
|
|
|
3054
3054
|
} = e, {
|
|
3055
3055
|
t: x,
|
|
3056
3056
|
lang: b
|
|
3057
|
-
} =
|
|
3058
|
-
activeId:
|
|
3057
|
+
} = W(we), [O, C] = T(!1), [$, R] = T(), [S, A] = T(), [M] = nt.useForm(), [D, N] = T(), [k, j] = T(), q = W(uo), [K, J] = T(), [U, L] = T(!1), P = ue(), z = ue({}), oe = ue({}), ce = ue(!1), Z = ue(!1), fe = (E !== void 0 ? E : K) < ul, xe = W(Le), {
|
|
3058
|
+
activeId: ke,
|
|
3059
3059
|
getPlainValues: _e
|
|
3060
|
-
} = xe || {}, de =
|
|
3060
|
+
} = xe || {}, de = W(Xe), {
|
|
3061
3061
|
setFormIsSaving: se = void 0,
|
|
3062
3062
|
setFormHasChanges: be = void 0,
|
|
3063
|
-
setCurrentId:
|
|
3063
|
+
setCurrentId: Re = void 0,
|
|
3064
3064
|
setFormIsLoading: Te = void 0,
|
|
3065
3065
|
setAttachments: Me = void 0,
|
|
3066
3066
|
title: Ze = void 0,
|
|
3067
3067
|
setTitle: Be = void 0
|
|
3068
|
-
} = (w ? de : {}) || {}, te =
|
|
3068
|
+
} = (w ? de : {}) || {}, te = W(kt), {
|
|
3069
3069
|
processAction: Ie,
|
|
3070
3070
|
globalValues: Ne
|
|
3071
3071
|
} = te || {};
|
|
@@ -3081,55 +3081,55 @@ function fl(e, t) {
|
|
|
3081
3081
|
P.current = void 0, A(void 0), dt();
|
|
3082
3082
|
}
|
|
3083
3083
|
})), pe(() => {
|
|
3084
|
-
if (
|
|
3084
|
+
if (R(void 0), !(!r && !p)) {
|
|
3085
3085
|
if (!_) {
|
|
3086
3086
|
P.current = void 0, A(void 0);
|
|
3087
3087
|
return;
|
|
3088
3088
|
}
|
|
3089
|
-
(i === void 0 &&
|
|
3089
|
+
(i === void 0 && k || i !== void 0 && k && i < 0) && (P.current = void 0, A(void 0)), dt();
|
|
3090
3090
|
}
|
|
3091
3091
|
}, [i, r, v, p, _]), pe(() => {
|
|
3092
|
-
|
|
3092
|
+
U && (vn({
|
|
3093
3093
|
elementHasLostFocus: !0
|
|
3094
3094
|
}), L(!1));
|
|
3095
|
-
}, [
|
|
3096
|
-
const ye = (
|
|
3097
|
-
be == null || be(!1), se == null || se(!1), s == null || s(
|
|
3095
|
+
}, [U]);
|
|
3096
|
+
const ye = (Y, G, ne) => {
|
|
3097
|
+
be == null || be(!1), se == null || se(!1), s == null || s(Y, G, ne), Re == null || Re(Y);
|
|
3098
3098
|
}, Ce = () => {
|
|
3099
3099
|
se == null || se(!1), o == null || o();
|
|
3100
|
-
}, De = (
|
|
3101
|
-
se == null || se(!1), c == null || c(
|
|
3100
|
+
}, De = (Y) => {
|
|
3101
|
+
se == null || se(!1), c == null || c(Y);
|
|
3102
3102
|
};
|
|
3103
3103
|
function me() {
|
|
3104
3104
|
return i || P.current;
|
|
3105
3105
|
}
|
|
3106
3106
|
function Qe() {
|
|
3107
|
-
return
|
|
3107
|
+
return k;
|
|
3108
3108
|
}
|
|
3109
3109
|
function je() {
|
|
3110
|
-
const
|
|
3111
|
-
...ie(
|
|
3110
|
+
const Y = {
|
|
3111
|
+
...ie(k),
|
|
3112
3112
|
...Ve()
|
|
3113
3113
|
};
|
|
3114
|
-
for (const
|
|
3115
|
-
|
|
3116
|
-
return
|
|
3114
|
+
for (const G in Y)
|
|
3115
|
+
Y[G] === void 0 && delete Y[G];
|
|
3116
|
+
return Y;
|
|
3117
3117
|
}
|
|
3118
3118
|
function it() {
|
|
3119
|
-
const
|
|
3119
|
+
const Y = je(), G = Qe();
|
|
3120
3120
|
let ne = {};
|
|
3121
|
-
return Object.keys(
|
|
3122
|
-
const Ae =
|
|
3123
|
-
|
|
3121
|
+
return Object.keys(Y).forEach((re) => {
|
|
3122
|
+
const Ae = Y[re];
|
|
3123
|
+
G[re] && G[re].type === "many2one" && Ae && Array.isArray(Ae) && Ae.length === 2 ? ne[re] = Ae[0] : G[re] && (G[re].type === "one2many" || G[re].type === "many2many") && Ae && Ae.items ? ne[re] = Ae.items.filter((gt) => gt.operation !== "pendingRemove").map((gt) => gt.id) : ne[re] = Ae;
|
|
3124
3124
|
}), ne;
|
|
3125
3125
|
}
|
|
3126
3126
|
function Q() {
|
|
3127
|
-
const
|
|
3128
|
-
...ie(
|
|
3127
|
+
const Y = {
|
|
3128
|
+
...ie(k)
|
|
3129
3129
|
};
|
|
3130
|
-
for (const
|
|
3131
|
-
|
|
3132
|
-
return
|
|
3130
|
+
for (const G in Y)
|
|
3131
|
+
Y[G] === void 0 && delete Y[G];
|
|
3132
|
+
return Y;
|
|
3133
3133
|
}
|
|
3134
3134
|
function ae() {
|
|
3135
3135
|
return {
|
|
@@ -3142,38 +3142,38 @@ function fl(e, t) {
|
|
|
3142
3142
|
id: me(),
|
|
3143
3143
|
active_id: me(),
|
|
3144
3144
|
active_ids: [me()],
|
|
3145
|
-
parent_id:
|
|
3145
|
+
parent_id: ke,
|
|
3146
3146
|
...Ne
|
|
3147
3147
|
};
|
|
3148
3148
|
}
|
|
3149
|
-
const he = async (
|
|
3150
|
-
const
|
|
3149
|
+
const he = async (Y) => {
|
|
3150
|
+
const G = me() ? S == null ? void 0 : S.context : {};
|
|
3151
3151
|
return await B.getHandler().defaultGet({
|
|
3152
3152
|
model: r,
|
|
3153
|
-
fields:
|
|
3153
|
+
fields: Y,
|
|
3154
3154
|
context: {
|
|
3155
3155
|
...y,
|
|
3156
|
-
...
|
|
3156
|
+
...G
|
|
3157
3157
|
},
|
|
3158
3158
|
extraValues: V
|
|
3159
3159
|
});
|
|
3160
3160
|
}, ge = () => Object.keys(Sn({
|
|
3161
3161
|
source: z.current,
|
|
3162
|
-
target: ie(
|
|
3163
|
-
fields:
|
|
3164
|
-
})).length !== 0, ie = (
|
|
3165
|
-
const
|
|
3166
|
-
return Tt(
|
|
3167
|
-
}, Ue = (
|
|
3162
|
+
target: ie(k),
|
|
3163
|
+
fields: k
|
|
3164
|
+
})).length !== 0, ie = (Y) => {
|
|
3165
|
+
const G = M.getFieldsValue(!0);
|
|
3166
|
+
return Tt(G, Y);
|
|
3167
|
+
}, Ue = (Y, G) => {
|
|
3168
3168
|
qt({
|
|
3169
3169
|
values: {
|
|
3170
|
-
...Tt(M.getFieldsValue(!0),
|
|
3171
|
-
[
|
|
3170
|
+
...Tt(M.getFieldsValue(!0), k),
|
|
3171
|
+
[Y]: G
|
|
3172
3172
|
},
|
|
3173
|
-
fields:
|
|
3173
|
+
fields: k,
|
|
3174
3174
|
reset: !1
|
|
3175
3175
|
});
|
|
3176
|
-
}, st = (
|
|
3176
|
+
}, st = (Y) => M.getFieldsValue(!0)[Y];
|
|
3177
3177
|
async function Mt() {
|
|
3178
3178
|
try {
|
|
3179
3179
|
return await M.validateFields(), !1;
|
|
@@ -3182,60 +3182,60 @@ function fl(e, t) {
|
|
|
3182
3182
|
}
|
|
3183
3183
|
}
|
|
3184
3184
|
const dt = async () => {
|
|
3185
|
-
|
|
3186
|
-
let
|
|
3185
|
+
R(void 0), Te == null || Te(!0);
|
|
3186
|
+
let Y;
|
|
3187
3187
|
try {
|
|
3188
|
-
p ?
|
|
3188
|
+
p ? Y = {
|
|
3189
3189
|
arch: p.arch,
|
|
3190
3190
|
fields: p.fields
|
|
3191
|
-
} :
|
|
3191
|
+
} : Y = await $o();
|
|
3192
3192
|
const {
|
|
3193
|
-
fields:
|
|
3193
|
+
fields: G,
|
|
3194
3194
|
arch: ne
|
|
3195
|
-
} =
|
|
3196
|
-
j(
|
|
3197
|
-
fields:
|
|
3195
|
+
} = Y;
|
|
3196
|
+
j(G), N(ne), await pt({
|
|
3197
|
+
fields: G,
|
|
3198
3198
|
arch: ne
|
|
3199
3199
|
});
|
|
3200
|
-
} catch (
|
|
3201
|
-
|
|
3200
|
+
} catch (G) {
|
|
3201
|
+
R(G != null && G.message ? G.message + G.stack : G), Te == null || Te(!1);
|
|
3202
3202
|
}
|
|
3203
|
-
}, pt = async (
|
|
3204
|
-
let
|
|
3205
|
-
Te == null || Te(!0),
|
|
3206
|
-
values:
|
|
3203
|
+
}, pt = async (Y) => {
|
|
3204
|
+
let G, ne, re, Ae;
|
|
3205
|
+
Te == null || Te(!0), R(void 0), Y != null && Y.fields ? (ne = Y.fields, re = Y.arch) : (ne = k, re = D), v && (Y == null ? void 0 : Y.forceRefresh) !== !0 ? G = v : {
|
|
3206
|
+
values: G,
|
|
3207
3207
|
defaultGetCalled: Ae
|
|
3208
3208
|
} = await Lo({
|
|
3209
3209
|
fields: ne,
|
|
3210
3210
|
arch: re
|
|
3211
|
-
}), F && (
|
|
3212
|
-
...
|
|
3213
|
-
...
|
|
3214
|
-
}), z.current = Tt(
|
|
3215
|
-
values:
|
|
3211
|
+
}), F && (G = {
|
|
3212
|
+
...ka(F),
|
|
3213
|
+
...G
|
|
3214
|
+
}), z.current = Tt(G, ne), qt({
|
|
3215
|
+
values: G,
|
|
3216
3216
|
fields: ne,
|
|
3217
3217
|
reset: !0,
|
|
3218
3218
|
isDefaultGet: Ae
|
|
3219
3219
|
}), Jt({
|
|
3220
3220
|
fields: ne,
|
|
3221
3221
|
arch: re,
|
|
3222
|
-
values:
|
|
3222
|
+
values: G
|
|
3223
3223
|
}), Te == null || Te(!1), be == null || be(!1), Ae && L(!0);
|
|
3224
|
-
}, Qn = async () => new Promise(async (
|
|
3224
|
+
}, Qn = async () => new Promise(async (Y) => {
|
|
3225
3225
|
ge() ? Wt({
|
|
3226
3226
|
lang: b,
|
|
3227
3227
|
onOk: () => {
|
|
3228
|
-
Ce == null || Ce(),
|
|
3228
|
+
Ce == null || Ce(), Y(!0);
|
|
3229
3229
|
},
|
|
3230
3230
|
onCancel: () => {
|
|
3231
|
-
|
|
3231
|
+
Y(!1);
|
|
3232
3232
|
}
|
|
3233
|
-
}) : (Ce == null || Ce(),
|
|
3233
|
+
}) : (Ce == null || Ce(), Y(!0));
|
|
3234
3234
|
}), $o = async () => {
|
|
3235
3235
|
if (l) {
|
|
3236
|
-
const
|
|
3236
|
+
const Y = await B.getHandler().getActionStringForModel(r);
|
|
3237
3237
|
return (await B.getHandler().getViewsForAction({
|
|
3238
|
-
action:
|
|
3238
|
+
action: Y,
|
|
3239
3239
|
context: y
|
|
3240
3240
|
})).views.get("form");
|
|
3241
3241
|
}
|
|
@@ -3245,15 +3245,15 @@ function fl(e, t) {
|
|
|
3245
3245
|
context: y
|
|
3246
3246
|
});
|
|
3247
3247
|
}, qt = ({
|
|
3248
|
-
values:
|
|
3249
|
-
fields:
|
|
3248
|
+
values: Y,
|
|
3249
|
+
fields: G,
|
|
3250
3250
|
reset: ne,
|
|
3251
3251
|
isDefaultGet: re = !1
|
|
3252
3252
|
}) => {
|
|
3253
3253
|
const gt = {
|
|
3254
3254
|
...ne ? {} : M.getFieldsValue(!0),
|
|
3255
|
-
...
|
|
3256
|
-
}, wn = Tt(gt,
|
|
3255
|
+
...Y
|
|
3256
|
+
}, wn = Tt(gt, G), Jo = Object.keys(G).map((bn) => {
|
|
3257
3257
|
const Zo = wn[bn] !== void 0 ? wn[bn] : void 0;
|
|
3258
3258
|
return {
|
|
3259
3259
|
name: bn,
|
|
@@ -3263,15 +3263,15 @@ function fl(e, t) {
|
|
|
3263
3263
|
});
|
|
3264
3264
|
re || (oe.current = wn), M.setFields(Jo);
|
|
3265
3265
|
}, Lo = async ({
|
|
3266
|
-
fields:
|
|
3267
|
-
arch:
|
|
3266
|
+
fields: Y,
|
|
3267
|
+
arch: G
|
|
3268
3268
|
}) => {
|
|
3269
3269
|
let ne = {}, re = !1;
|
|
3270
3270
|
if (me()) {
|
|
3271
3271
|
ne = (await B.getHandler().readObjects({
|
|
3272
3272
|
model: r,
|
|
3273
3273
|
ids: [me()],
|
|
3274
|
-
fields:
|
|
3274
|
+
fields: Y,
|
|
3275
3275
|
context: y
|
|
3276
3276
|
}))[0];
|
|
3277
3277
|
const Ae = await B.getHandler().search({
|
|
@@ -3282,20 +3282,20 @@ function fl(e, t) {
|
|
|
3282
3282
|
});
|
|
3283
3283
|
Me == null || Me(Ae);
|
|
3284
3284
|
} else
|
|
3285
|
-
Me == null || Me([]), ne = await he(
|
|
3285
|
+
Me == null || Me([]), ne = await he(Y), re = !0;
|
|
3286
3286
|
return {
|
|
3287
3287
|
values: ne,
|
|
3288
3288
|
defaultGetCalled: re
|
|
3289
3289
|
};
|
|
3290
|
-
}, No = async (
|
|
3290
|
+
}, No = async (Y) => {
|
|
3291
3291
|
const {
|
|
3292
|
-
callOnSubmitSucceed:
|
|
3293
|
-
} =
|
|
3292
|
+
callOnSubmitSucceed: G = !0
|
|
3293
|
+
} = Y || {};
|
|
3294
3294
|
if (me()) {
|
|
3295
3295
|
const ne = Sn({
|
|
3296
3296
|
source: z.current,
|
|
3297
|
-
target: ie(
|
|
3298
|
-
fields:
|
|
3297
|
+
target: ie(k),
|
|
3298
|
+
fields: k
|
|
3299
3299
|
});
|
|
3300
3300
|
await B.getHandler().update({
|
|
3301
3301
|
model: r,
|
|
@@ -3304,20 +3304,20 @@ function fl(e, t) {
|
|
|
3304
3304
|
...ne,
|
|
3305
3305
|
...I
|
|
3306
3306
|
},
|
|
3307
|
-
fields:
|
|
3307
|
+
fields: k,
|
|
3308
3308
|
context: {
|
|
3309
3309
|
...y,
|
|
3310
3310
|
...S == null ? void 0 : S.context
|
|
3311
3311
|
}
|
|
3312
|
-
}), z.current = ie(
|
|
3312
|
+
}), z.current = ie(k);
|
|
3313
3313
|
} else {
|
|
3314
|
-
const ne = ie(
|
|
3314
|
+
const ne = ie(k), re = await B.getHandler().create({
|
|
3315
3315
|
model: r,
|
|
3316
3316
|
values: {
|
|
3317
3317
|
...ne,
|
|
3318
3318
|
...I
|
|
3319
3319
|
},
|
|
3320
|
-
fields:
|
|
3320
|
+
fields: k,
|
|
3321
3321
|
context: {
|
|
3322
3322
|
...y,
|
|
3323
3323
|
...S == null ? void 0 : S.context
|
|
@@ -3325,18 +3325,18 @@ function fl(e, t) {
|
|
|
3325
3325
|
});
|
|
3326
3326
|
P.current = re, z.current = ne;
|
|
3327
3327
|
}
|
|
3328
|
-
h && await h([me()]), !g &&
|
|
3329
|
-
}, Po = async (
|
|
3328
|
+
h && await h([me()]), !g && G && (ye == null || ye(me(), je(), Q()));
|
|
3329
|
+
}, Po = async (Y) => {
|
|
3330
3330
|
const {
|
|
3331
|
-
callOnSubmitSucceed:
|
|
3332
|
-
} =
|
|
3333
|
-
!g &&
|
|
3334
|
-
}, zt = async (
|
|
3335
|
-
let
|
|
3331
|
+
callOnSubmitSucceed: G = !0
|
|
3332
|
+
} = Y || {};
|
|
3333
|
+
!g && G && (ye == null || ye(me(), je(), Q()));
|
|
3334
|
+
}, zt = async (Y) => {
|
|
3335
|
+
let G = !1;
|
|
3336
3336
|
const {
|
|
3337
3337
|
callOnSubmitSucceed: ne = !0
|
|
3338
|
-
} =
|
|
3339
|
-
if (Z.current = !0,
|
|
3338
|
+
} = Y || {};
|
|
3339
|
+
if (Z.current = !0, R(void 0), !ge() && me() && ne)
|
|
3340
3340
|
return Z.current = !1, be == null || be(!1), Ce == null || Ce(), {
|
|
3341
3341
|
succeed: !0,
|
|
3342
3342
|
id: me()
|
|
@@ -3348,104 +3348,106 @@ function fl(e, t) {
|
|
|
3348
3348
|
};
|
|
3349
3349
|
C(!0), se == null || se(!0);
|
|
3350
3350
|
try {
|
|
3351
|
-
m === "api" ? await No(
|
|
3351
|
+
m === "api" ? await No(Y) : await Po(Y), d && (P.current = void 0, qt({
|
|
3352
3352
|
values: {},
|
|
3353
|
-
fields:
|
|
3353
|
+
fields: k,
|
|
3354
3354
|
reset: !0
|
|
3355
|
-
})), await pt(
|
|
3355
|
+
})), await pt({
|
|
3356
|
+
forceRefresh: !0
|
|
3357
|
+
}), G = !0, xn.success(x("savedRegisters"));
|
|
3356
3358
|
} catch (re) {
|
|
3357
|
-
Z.current = !1, C(!1), se == null || se(!1), De == null || De(re), xn.error(x("errorWhileSavingForm")),
|
|
3359
|
+
Z.current = !1, C(!1), se == null || se(!1), De == null || De(re), xn.error(x("errorWhileSavingForm")), R(re != null && re.message ? re.message : re);
|
|
3358
3360
|
} finally {
|
|
3359
3361
|
Z.current = !1, se == null || se(!1), C(!1);
|
|
3360
3362
|
}
|
|
3361
3363
|
return {
|
|
3362
|
-
succeed:
|
|
3364
|
+
succeed: G,
|
|
3363
3365
|
id: me()
|
|
3364
3366
|
};
|
|
3365
3367
|
}, Jt = ({
|
|
3366
|
-
fields:
|
|
3367
|
-
arch:
|
|
3368
|
+
fields: Y,
|
|
3369
|
+
arch: G,
|
|
3368
3370
|
values: ne
|
|
3369
3371
|
}) => {
|
|
3370
3372
|
var Ae;
|
|
3371
|
-
const re = new
|
|
3372
|
-
re.parse(
|
|
3373
|
+
const re = new kr(Y);
|
|
3374
|
+
re.parse(G, {
|
|
3373
3375
|
readOnly: f,
|
|
3374
3376
|
values: Ta({
|
|
3375
3377
|
...ne,
|
|
3376
3378
|
...Ve()
|
|
3377
|
-
},
|
|
3378
|
-
}), A(re), re.string && re.string !== Ze && (Be == null || Be(re.string)),
|
|
3379
|
+
}, Y)
|
|
3380
|
+
}), A(re), re.string && re.string !== Ze && (Be == null || Be(re.string)), q && re.string && ((Ae = q.setTitle) == null || Ae.call(q, re.string));
|
|
3379
3381
|
}, vn = async ({
|
|
3380
|
-
elementHasLostFocus:
|
|
3382
|
+
elementHasLostFocus: Y = !1
|
|
3381
3383
|
}) => {
|
|
3382
3384
|
if (Z.current)
|
|
3383
3385
|
return;
|
|
3384
|
-
const
|
|
3386
|
+
const G = Sn({
|
|
3385
3387
|
source: oe.current,
|
|
3386
|
-
target: ie(
|
|
3387
|
-
fields:
|
|
3388
|
-
}), ne = Object.keys(
|
|
3388
|
+
target: ie(k),
|
|
3389
|
+
fields: k
|
|
3390
|
+
}), ne = Object.keys(G);
|
|
3389
3391
|
if (ne.length !== 0) {
|
|
3390
3392
|
if (Aa({
|
|
3391
3393
|
changedFields: ne,
|
|
3392
3394
|
formOoui: S,
|
|
3393
3395
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
3394
|
-
}) &&
|
|
3396
|
+
}) && Y !== !0)
|
|
3395
3397
|
return;
|
|
3396
3398
|
{
|
|
3397
|
-
const re = Tt(M.getFieldsValue(!0),
|
|
3399
|
+
const re = Tt(M.getFieldsValue(!0), k);
|
|
3398
3400
|
oe.current = re, u == null || u(re), be == null || be(!0), Bo(ne);
|
|
3399
3401
|
}
|
|
3400
3402
|
}
|
|
3401
|
-
}, Ho = ga(vn, 100), Bo = async (
|
|
3403
|
+
}, Ho = ga(vn, 100), Bo = async (Y) => {
|
|
3402
3404
|
try {
|
|
3403
|
-
for (let
|
|
3404
|
-
const ne =
|
|
3405
|
+
for (let G = 0; G < Y.length; G += 1) {
|
|
3406
|
+
const ne = Y[G];
|
|
3405
3407
|
await jo(ne);
|
|
3406
3408
|
}
|
|
3407
|
-
} catch (
|
|
3408
|
-
Ye(
|
|
3409
|
+
} catch (G) {
|
|
3410
|
+
Ye(G);
|
|
3409
3411
|
}
|
|
3410
|
-
}, jo = async (
|
|
3411
|
-
const
|
|
3412
|
-
if (!
|
|
3412
|
+
}, jo = async (Y) => {
|
|
3413
|
+
const G = S == null ? void 0 : S.onChangeFields[Y];
|
|
3414
|
+
if (!G) {
|
|
3413
3415
|
Jt({
|
|
3414
|
-
fields:
|
|
3416
|
+
fields: k,
|
|
3415
3417
|
arch: D,
|
|
3416
|
-
values: ie(
|
|
3418
|
+
values: ie(k)
|
|
3417
3419
|
});
|
|
3418
3420
|
return;
|
|
3419
3421
|
}
|
|
3420
3422
|
const ne = Ma({
|
|
3421
3423
|
values: {
|
|
3422
|
-
...ie(
|
|
3424
|
+
...ie(k),
|
|
3423
3425
|
context: {
|
|
3424
3426
|
...y,
|
|
3425
3427
|
...S == null ? void 0 : S.context
|
|
3426
3428
|
}
|
|
3427
3429
|
},
|
|
3428
3430
|
parentValues: _e == null ? void 0 : _e(),
|
|
3429
|
-
onChangeFieldActionArgs:
|
|
3431
|
+
onChangeFieldActionArgs: G.args
|
|
3430
3432
|
}), re = await B.getHandler().executeOnChange({
|
|
3431
3433
|
model: r,
|
|
3432
|
-
action:
|
|
3434
|
+
action: G.method,
|
|
3433
3435
|
ids: me() ? [me()] : [],
|
|
3434
3436
|
payload: ne,
|
|
3435
|
-
fields:
|
|
3437
|
+
fields: k
|
|
3436
3438
|
});
|
|
3437
3439
|
if (re.value) {
|
|
3438
3440
|
const Ae = {
|
|
3439
|
-
...ie(
|
|
3441
|
+
...ie(k),
|
|
3440
3442
|
...re.value
|
|
3441
3443
|
};
|
|
3442
3444
|
Jt({
|
|
3443
|
-
fields:
|
|
3445
|
+
fields: k,
|
|
3444
3446
|
arch: D,
|
|
3445
3447
|
values: Ae
|
|
3446
3448
|
}), qt({
|
|
3447
3449
|
values: Ae,
|
|
3448
|
-
fields:
|
|
3450
|
+
fields: k,
|
|
3449
3451
|
reset: !1
|
|
3450
3452
|
});
|
|
3451
3453
|
}
|
|
@@ -3459,9 +3461,9 @@ function fl(e, t) {
|
|
|
3459
3461
|
});
|
|
3460
3462
|
}
|
|
3461
3463
|
if (re.domain && Object.keys(re.domain).length > 0) {
|
|
3462
|
-
const Ae =
|
|
3464
|
+
const Ae = Ra({
|
|
3463
3465
|
fieldsDomain: re.domain,
|
|
3464
|
-
fields:
|
|
3466
|
+
fields: k
|
|
3465
3467
|
});
|
|
3466
3468
|
Jt({
|
|
3467
3469
|
fields: Ae,
|
|
@@ -3471,15 +3473,15 @@ function fl(e, t) {
|
|
|
3471
3473
|
}
|
|
3472
3474
|
};
|
|
3473
3475
|
async function Ko({
|
|
3474
|
-
action:
|
|
3475
|
-
context:
|
|
3476
|
+
action: Y,
|
|
3477
|
+
context: G
|
|
3476
3478
|
}) {
|
|
3477
3479
|
const ne = await B.getHandler().execute({
|
|
3478
3480
|
model: r,
|
|
3479
|
-
action:
|
|
3481
|
+
action: Y,
|
|
3480
3482
|
payload: [me()],
|
|
3481
3483
|
context: {
|
|
3482
|
-
...
|
|
3484
|
+
...G,
|
|
3483
3485
|
...S == null ? void 0 : S.context,
|
|
3484
3486
|
...y
|
|
3485
3487
|
}
|
|
@@ -3492,59 +3494,65 @@ function fl(e, t) {
|
|
|
3492
3494
|
let re = {};
|
|
3493
3495
|
ne.context && (re = yt({
|
|
3494
3496
|
context: ne.context,
|
|
3495
|
-
fields:
|
|
3497
|
+
fields: k,
|
|
3496
3498
|
values: je()
|
|
3497
3499
|
})), await er({
|
|
3498
3500
|
actionData: ne,
|
|
3499
3501
|
context: {
|
|
3500
|
-
...
|
|
3502
|
+
...G,
|
|
3501
3503
|
...re
|
|
3502
3504
|
}
|
|
3503
3505
|
});
|
|
3504
3506
|
} else
|
|
3505
|
-
await pt(
|
|
3507
|
+
await pt({
|
|
3508
|
+
forceRefresh: !0
|
|
3509
|
+
});
|
|
3506
3510
|
}
|
|
3507
3511
|
async function Yo({
|
|
3508
|
-
action:
|
|
3512
|
+
action: Y
|
|
3509
3513
|
}) {
|
|
3510
|
-
const
|
|
3514
|
+
const G = await B.getHandler().executeWorkflow({
|
|
3511
3515
|
model: r,
|
|
3512
|
-
action:
|
|
3516
|
+
action: Y,
|
|
3513
3517
|
payload: me()
|
|
3514
3518
|
});
|
|
3515
|
-
|
|
3519
|
+
G.type && G.type === "ir.actions.act_window_close" ? ye == null || ye(me(), je(), Q()) : await pt({
|
|
3520
|
+
forceRefresh: !0
|
|
3521
|
+
});
|
|
3516
3522
|
}
|
|
3517
3523
|
async function Wo({
|
|
3518
|
-
action:
|
|
3519
|
-
context:
|
|
3524
|
+
action: Y,
|
|
3525
|
+
context: G
|
|
3520
3526
|
}) {
|
|
3521
3527
|
const ne = (await B.getHandler().readObjects({
|
|
3522
3528
|
model: "ir.actions.actions",
|
|
3523
|
-
ids: [parseInt(
|
|
3529
|
+
ids: [parseInt(Y)],
|
|
3524
3530
|
context: y
|
|
3525
3531
|
}))[0];
|
|
3526
3532
|
await er({
|
|
3527
3533
|
actionData: ne,
|
|
3528
|
-
context:
|
|
3534
|
+
context: G
|
|
3529
3535
|
});
|
|
3530
3536
|
}
|
|
3531
3537
|
async function er({
|
|
3532
|
-
actionData:
|
|
3533
|
-
context:
|
|
3538
|
+
actionData: Y,
|
|
3539
|
+
context: G
|
|
3534
3540
|
}) {
|
|
3535
3541
|
const {
|
|
3536
3542
|
closeParent: ne
|
|
3537
3543
|
} = await (Ie == null ? void 0 : Ie({
|
|
3538
|
-
actionData:
|
|
3539
|
-
fields:
|
|
3544
|
+
actionData: Y,
|
|
3545
|
+
fields: k,
|
|
3540
3546
|
values: je(),
|
|
3541
3547
|
context: {
|
|
3542
3548
|
...y,
|
|
3543
3549
|
...S == null ? void 0 : S.context,
|
|
3544
|
-
...
|
|
3550
|
+
...G
|
|
3545
3551
|
},
|
|
3546
3552
|
onRefreshParentValues: () => {
|
|
3547
|
-
pt(
|
|
3553
|
+
pt({
|
|
3554
|
+
forceRefresh: !0
|
|
3555
|
+
});
|
|
3548
3556
|
}
|
|
3549
3557
|
})) || {};
|
|
3550
3558
|
!w && ne && (ye == null || ye(me(), je(), Q()));
|
|
@@ -3555,11 +3563,11 @@ function fl(e, t) {
|
|
|
3555
3563
|
});
|
|
3556
3564
|
}
|
|
3557
3565
|
async function Go({
|
|
3558
|
-
type:
|
|
3559
|
-
action:
|
|
3566
|
+
type: Y,
|
|
3567
|
+
action: G,
|
|
3560
3568
|
context: ne
|
|
3561
3569
|
}) {
|
|
3562
|
-
if (
|
|
3570
|
+
if (Y === "cancel") {
|
|
3563
3571
|
Ce == null || Ce();
|
|
3564
3572
|
return;
|
|
3565
3573
|
}
|
|
@@ -3570,13 +3578,13 @@ function fl(e, t) {
|
|
|
3570
3578
|
try {
|
|
3571
3579
|
(ge() || me() === void 0) && await zt({
|
|
3572
3580
|
callOnSubmitSucceed: !1
|
|
3573
|
-
}),
|
|
3574
|
-
action:
|
|
3581
|
+
}), Y === "object" ? await Ko({
|
|
3582
|
+
action: G,
|
|
3575
3583
|
context: ne
|
|
3576
|
-
}) :
|
|
3577
|
-
action:
|
|
3578
|
-
}) :
|
|
3579
|
-
action:
|
|
3584
|
+
}) : Y === "workflow" ? await Yo({
|
|
3585
|
+
action: G
|
|
3586
|
+
}) : Y === "action" && await Wo({
|
|
3587
|
+
action: G,
|
|
3580
3588
|
context: ne
|
|
3581
3589
|
});
|
|
3582
3590
|
} catch (re) {
|
|
@@ -3639,15 +3647,15 @@ function fl(e, t) {
|
|
|
3639
3647
|
});
|
|
3640
3648
|
return _ ? /* @__PURE__ */ n(qn, {
|
|
3641
3649
|
bounds: !0,
|
|
3642
|
-
onResize: (
|
|
3643
|
-
var
|
|
3644
|
-
J((
|
|
3650
|
+
onResize: (Y) => {
|
|
3651
|
+
var G;
|
|
3652
|
+
J((G = Y.bounds) == null ? void 0 : G.width);
|
|
3645
3653
|
},
|
|
3646
3654
|
children: ({
|
|
3647
|
-
measureRef:
|
|
3655
|
+
measureRef: Y
|
|
3648
3656
|
}) => /* @__PURE__ */ H("div", {
|
|
3649
3657
|
className: "pb-2",
|
|
3650
|
-
ref:
|
|
3658
|
+
ref: Y,
|
|
3651
3659
|
children: [$ && /* @__PURE__ */ n(dl, {
|
|
3652
3660
|
className: "mt-5 mb-10",
|
|
3653
3661
|
error: $
|
|
@@ -3825,7 +3833,7 @@ const Ut = vt(fl), Gt = (e) => {
|
|
|
3825
3833
|
token: a
|
|
3826
3834
|
} = pl(), l = s && !o ? {
|
|
3827
3835
|
backgroundColor: a.colorPrimaryBg
|
|
3828
|
-
} : void 0, u =
|
|
3836
|
+
} : void 0, u = W(Le), {
|
|
3829
3837
|
elementHasLostFocus: c
|
|
3830
3838
|
} = u || {};
|
|
3831
3839
|
return /* @__PURE__ */ n(ve, {
|
|
@@ -3858,7 +3866,7 @@ const Ut = vt(fl), Gt = (e) => {
|
|
|
3858
3866
|
token: a
|
|
3859
3867
|
} = gl(), l = s && !o ? {
|
|
3860
3868
|
backgroundColor: a.colorPrimaryBg
|
|
3861
|
-
} : void 0, u =
|
|
3869
|
+
} : void 0, u = W(Le), {
|
|
3862
3870
|
elementHasLostFocus: c
|
|
3863
3871
|
} = u || {};
|
|
3864
3872
|
return /* @__PURE__ */ n(ve, {
|
|
@@ -3994,7 +4002,7 @@ function Fl(e) {
|
|
|
3994
4002
|
t.readOnly = !1, t.required = !1;
|
|
3995
4003
|
const {
|
|
3996
4004
|
t: r
|
|
3997
|
-
} =
|
|
4005
|
+
} = W(we);
|
|
3998
4006
|
switch (t.type) {
|
|
3999
4007
|
case ut.boolean: {
|
|
4000
4008
|
const o = new $n({
|
|
@@ -4051,7 +4059,7 @@ function Ol(e) {
|
|
|
4051
4059
|
isSearching: o
|
|
4052
4060
|
} = e, {
|
|
4053
4061
|
t: s
|
|
4054
|
-
} =
|
|
4062
|
+
} = W(we);
|
|
4055
4063
|
return /* @__PURE__ */ H(Se, {
|
|
4056
4064
|
children: [/* @__PURE__ */ n(le, {
|
|
4057
4065
|
span: 12,
|
|
@@ -4089,7 +4097,7 @@ function _l(e) {
|
|
|
4089
4097
|
onLimitChange: t
|
|
4090
4098
|
} = e, {
|
|
4091
4099
|
t: r
|
|
4092
|
-
} =
|
|
4100
|
+
} = W(we), i = new In({
|
|
4093
4101
|
name: "limit"
|
|
4094
4102
|
}), o = new In({
|
|
4095
4103
|
name: "offset"
|
|
@@ -4143,8 +4151,8 @@ function ho(e) {
|
|
|
4143
4151
|
if (!y)
|
|
4144
4152
|
return;
|
|
4145
4153
|
const C = _ ? y : h, $ = C == null ? void 0 : C.rows;
|
|
4146
|
-
return $ == null ? void 0 : $.map((
|
|
4147
|
-
children:
|
|
4154
|
+
return $ == null ? void 0 : $.map((R, S) => /* @__PURE__ */ n(Se, {
|
|
4155
|
+
children: R.map((A, M) => /* @__PURE__ */ n(le, {
|
|
4148
4156
|
xs: 24,
|
|
4149
4157
|
className: "p-2",
|
|
4150
4158
|
xl: 6,
|
|
@@ -4161,13 +4169,13 @@ function ho(e) {
|
|
|
4161
4169
|
var A;
|
|
4162
4170
|
const {
|
|
4163
4171
|
limit: $,
|
|
4164
|
-
offset:
|
|
4172
|
+
offset: R
|
|
4165
4173
|
} = C;
|
|
4166
4174
|
delete C.offset, delete C.limit;
|
|
4167
4175
|
const S = Za(C, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
|
|
4168
4176
|
o({
|
|
4169
4177
|
params: S,
|
|
4170
|
-
offset:
|
|
4178
|
+
offset: R,
|
|
4171
4179
|
limit: $,
|
|
4172
4180
|
searchValues: C
|
|
4173
4181
|
});
|
|
@@ -4295,7 +4303,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4295
4303
|
display: "flex",
|
|
4296
4304
|
alignItems: "center"
|
|
4297
4305
|
},
|
|
4298
|
-
children: [/* @__PURE__ */ n(
|
|
4306
|
+
children: [/* @__PURE__ */ n(Rl, {
|
|
4299
4307
|
percent: e
|
|
4300
4308
|
}), /* @__PURE__ */ n("div", {
|
|
4301
4309
|
style: {
|
|
@@ -4305,7 +4313,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4305
4313
|
children: t
|
|
4306
4314
|
})]
|
|
4307
4315
|
});
|
|
4308
|
-
},
|
|
4316
|
+
}, Rl = Kt(ei)`
|
|
4309
4317
|
.ant-progress-outer {
|
|
4310
4318
|
margin-right: 0px;
|
|
4311
4319
|
padding-right: 0px;
|
|
@@ -4321,7 +4329,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4321
4329
|
onItemClicked: o
|
|
4322
4330
|
} = e, {
|
|
4323
4331
|
t: s
|
|
4324
|
-
} =
|
|
4332
|
+
} = W(we);
|
|
4325
4333
|
return /* @__PURE__ */ n(We, {
|
|
4326
4334
|
title: s("selectAction"),
|
|
4327
4335
|
centered: !0,
|
|
@@ -4350,9 +4358,9 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4350
4358
|
context: i = {}
|
|
4351
4359
|
} = e, [o, s] = T(!1), [a, l] = T(!1), [u, c] = T(!1), [f, d] = T(), [m, v] = T(), {
|
|
4352
4360
|
t: p
|
|
4353
|
-
} =
|
|
4361
|
+
} = W(we), h = W(ot), {
|
|
4354
4362
|
openRelate: g
|
|
4355
|
-
} = h || {}, y =
|
|
4363
|
+
} = h || {}, y = W(kt), {
|
|
4356
4364
|
processAction: F
|
|
4357
4365
|
} = y || {};
|
|
4358
4366
|
if (!t)
|
|
@@ -4369,14 +4377,14 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4369
4377
|
const {
|
|
4370
4378
|
fields: C,
|
|
4371
4379
|
arch: $
|
|
4372
|
-
} = O,
|
|
4380
|
+
} = O, R = (await B.getHandler().readObjects({
|
|
4373
4381
|
model: r,
|
|
4374
4382
|
ids: [t],
|
|
4375
4383
|
fields: C,
|
|
4376
4384
|
context: i
|
|
4377
4385
|
}))[0];
|
|
4378
4386
|
v({
|
|
4379
|
-
...Tt(
|
|
4387
|
+
...Tt(R, C),
|
|
4380
4388
|
active_id: t
|
|
4381
4389
|
}), c(!1);
|
|
4382
4390
|
} catch (O) {
|
|
@@ -4486,7 +4494,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4486
4494
|
onCancel: () => l(!1)
|
|
4487
4495
|
})]
|
|
4488
4496
|
});
|
|
4489
|
-
},
|
|
4497
|
+
}, kl = (e) => {
|
|
4490
4498
|
const {
|
|
4491
4499
|
m2oField: t
|
|
4492
4500
|
} = e;
|
|
@@ -4538,59 +4546,59 @@ var yo = { exports: {} };
|
|
|
4538
4546
|
(function(r, i) {
|
|
4539
4547
|
e.exports = i();
|
|
4540
4548
|
})(ft, function() {
|
|
4541
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", u = "hour", c = "day", f = "week", d = "month", m = "quarter", v = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
4542
|
-
var S = ["th", "st", "nd", "rd"], A =
|
|
4543
|
-
return "[" +
|
|
4544
|
-
} }, _ = function(
|
|
4545
|
-
var M = String(
|
|
4546
|
-
return !M || M.length >= S ?
|
|
4547
|
-
}, w = { s: _, z: function(
|
|
4548
|
-
var S = -
|
|
4549
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", u = "hour", c = "day", f = "week", d = "month", m = "quarter", v = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
4550
|
+
var S = ["th", "st", "nd", "rd"], A = R % 100;
|
|
4551
|
+
return "[" + R + (S[(A - 20) % 10] || S[A] || S[0]) + "]";
|
|
4552
|
+
} }, _ = function(R, S, A) {
|
|
4553
|
+
var M = String(R);
|
|
4554
|
+
return !M || M.length >= S ? R : "" + Array(S + 1 - M.length).join(A) + R;
|
|
4555
|
+
}, w = { s: _, z: function(R) {
|
|
4556
|
+
var S = -R.utcOffset(), A = Math.abs(S), M = Math.floor(A / 60), D = A % 60;
|
|
4549
4557
|
return (S <= 0 ? "+" : "-") + _(M, 2, "0") + ":" + _(D, 2, "0");
|
|
4550
|
-
}, m: function
|
|
4558
|
+
}, m: function R(S, A) {
|
|
4551
4559
|
if (S.date() < A.date())
|
|
4552
|
-
return -
|
|
4553
|
-
var M = 12 * (A.year() - S.year()) + (A.month() - S.month()), D = S.clone().add(M, d), N = A - D < 0,
|
|
4554
|
-
return +(-(M + (A - D) / (N ? D -
|
|
4555
|
-
}, a: function(
|
|
4556
|
-
return
|
|
4557
|
-
}, p: function(
|
|
4558
|
-
return { M: d, y: v, w: f, d: c, D: p, h: u, m: l, s: a, ms: s, Q: m }[
|
|
4559
|
-
}, u: function(
|
|
4560
|
-
return
|
|
4560
|
+
return -R(A, S);
|
|
4561
|
+
var M = 12 * (A.year() - S.year()) + (A.month() - S.month()), D = S.clone().add(M, d), N = A - D < 0, k = S.clone().add(M + (N ? -1 : 1), d);
|
|
4562
|
+
return +(-(M + (A - D) / (N ? D - k : k - D)) || 0);
|
|
4563
|
+
}, a: function(R) {
|
|
4564
|
+
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
4565
|
+
}, p: function(R) {
|
|
4566
|
+
return { M: d, y: v, w: f, d: c, D: p, h: u, m: l, s: a, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
4567
|
+
}, u: function(R) {
|
|
4568
|
+
return R === void 0;
|
|
4561
4569
|
} }, V = "en", I = {};
|
|
4562
4570
|
I[V] = F;
|
|
4563
|
-
var E = function(
|
|
4564
|
-
return
|
|
4565
|
-
}, x = function
|
|
4571
|
+
var E = function(R) {
|
|
4572
|
+
return R instanceof C;
|
|
4573
|
+
}, x = function R(S, A, M) {
|
|
4566
4574
|
var D;
|
|
4567
4575
|
if (!S)
|
|
4568
4576
|
return V;
|
|
4569
4577
|
if (typeof S == "string") {
|
|
4570
4578
|
var N = S.toLowerCase();
|
|
4571
4579
|
I[N] && (D = N), A && (I[N] = A, D = N);
|
|
4572
|
-
var
|
|
4573
|
-
if (!D &&
|
|
4574
|
-
return k
|
|
4580
|
+
var k = S.split("-");
|
|
4581
|
+
if (!D && k.length > 1)
|
|
4582
|
+
return R(k[0]);
|
|
4575
4583
|
} else {
|
|
4576
4584
|
var j = S.name;
|
|
4577
4585
|
I[j] = S, D = j;
|
|
4578
4586
|
}
|
|
4579
4587
|
return !M && D && (V = D), D || !M && V;
|
|
4580
|
-
}, b = function(
|
|
4581
|
-
if (E(
|
|
4582
|
-
return
|
|
4588
|
+
}, b = function(R, S) {
|
|
4589
|
+
if (E(R))
|
|
4590
|
+
return R.clone();
|
|
4583
4591
|
var A = typeof S == "object" ? S : {};
|
|
4584
|
-
return A.date =
|
|
4592
|
+
return A.date = R, A.args = arguments, new C(A);
|
|
4585
4593
|
}, O = w;
|
|
4586
|
-
O.l = x, O.i = E, O.w = function(
|
|
4587
|
-
return b(
|
|
4594
|
+
O.l = x, O.i = E, O.w = function(R, S) {
|
|
4595
|
+
return b(R, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
|
|
4588
4596
|
};
|
|
4589
4597
|
var C = function() {
|
|
4590
|
-
function
|
|
4598
|
+
function R(A) {
|
|
4591
4599
|
this.$L = x(A.locale, null, !0), this.parse(A);
|
|
4592
4600
|
}
|
|
4593
|
-
var S =
|
|
4601
|
+
var S = R.prototype;
|
|
4594
4602
|
return S.parse = function(A) {
|
|
4595
4603
|
this.$d = function(M) {
|
|
4596
4604
|
var D = M.date, N = M.utc;
|
|
@@ -4601,10 +4609,10 @@ var yo = { exports: {} };
|
|
|
4601
4609
|
if (D instanceof Date)
|
|
4602
4610
|
return new Date(D);
|
|
4603
4611
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
4604
|
-
var
|
|
4605
|
-
if (
|
|
4606
|
-
var j =
|
|
4607
|
-
return N ? new Date(Date.UTC(
|
|
4612
|
+
var k = D.match(g);
|
|
4613
|
+
if (k) {
|
|
4614
|
+
var j = k[2] - 1 || 0, q = (k[7] || "0").substring(0, 3);
|
|
4615
|
+
return N ? new Date(Date.UTC(k[1], j, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, q)) : new Date(k[1], j, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, q);
|
|
4608
4616
|
}
|
|
4609
4617
|
}
|
|
4610
4618
|
return new Date(D);
|
|
@@ -4630,41 +4638,41 @@ var yo = { exports: {} };
|
|
|
4630
4638
|
}, S.valueOf = function() {
|
|
4631
4639
|
return this.$d.getTime();
|
|
4632
4640
|
}, S.startOf = function(A, M) {
|
|
4633
|
-
var D = this, N = !!O.u(M) || M,
|
|
4641
|
+
var D = this, N = !!O.u(M) || M, k = O.p(A), j = function(oe, ce) {
|
|
4634
4642
|
var Z = O.w(D.$u ? Date.UTC(D.$y, ce, oe) : new Date(D.$y, ce, oe), D);
|
|
4635
4643
|
return N ? Z : Z.endOf(c);
|
|
4636
|
-
},
|
|
4644
|
+
}, q = function(oe, ce) {
|
|
4637
4645
|
return O.w(D.toDate()[oe].apply(D.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), D);
|
|
4638
|
-
}, K = this.$W, J = this.$M,
|
|
4639
|
-
switch (
|
|
4646
|
+
}, K = this.$W, J = this.$M, U = this.$D, L = "set" + (this.$u ? "UTC" : "");
|
|
4647
|
+
switch (k) {
|
|
4640
4648
|
case v:
|
|
4641
4649
|
return N ? j(1, 0) : j(31, 11);
|
|
4642
4650
|
case d:
|
|
4643
4651
|
return N ? j(1, J) : j(0, J + 1);
|
|
4644
4652
|
case f:
|
|
4645
4653
|
var P = this.$locale().weekStart || 0, z = (K < P ? K + 7 : K) - P;
|
|
4646
|
-
return j(N ?
|
|
4654
|
+
return j(N ? U - z : U + (6 - z), J);
|
|
4647
4655
|
case c:
|
|
4648
4656
|
case p:
|
|
4649
|
-
return
|
|
4657
|
+
return q(L + "Hours", 0);
|
|
4650
4658
|
case u:
|
|
4651
|
-
return
|
|
4659
|
+
return q(L + "Minutes", 1);
|
|
4652
4660
|
case l:
|
|
4653
|
-
return
|
|
4661
|
+
return q(L + "Seconds", 2);
|
|
4654
4662
|
case a:
|
|
4655
|
-
return
|
|
4663
|
+
return q(L + "Milliseconds", 3);
|
|
4656
4664
|
default:
|
|
4657
4665
|
return this.clone();
|
|
4658
4666
|
}
|
|
4659
4667
|
}, S.endOf = function(A) {
|
|
4660
4668
|
return this.startOf(A, !1);
|
|
4661
4669
|
}, S.$set = function(A, M) {
|
|
4662
|
-
var D, N = O.p(A),
|
|
4670
|
+
var D, N = O.p(A), k = "set" + (this.$u ? "UTC" : ""), j = (D = {}, D[c] = k + "Date", D[p] = k + "Date", D[d] = k + "Month", D[v] = k + "FullYear", D[u] = k + "Hours", D[l] = k + "Minutes", D[a] = k + "Seconds", D[s] = k + "Milliseconds", D)[N], q = N === c ? this.$D + (M - this.$W) : M;
|
|
4663
4671
|
if (N === d || N === v) {
|
|
4664
4672
|
var K = this.clone().set(p, 1);
|
|
4665
|
-
K.$d[j](
|
|
4673
|
+
K.$d[j](q), K.init(), this.$d = K.set(p, Math.min(this.$D, K.daysInMonth())).$d;
|
|
4666
4674
|
} else
|
|
4667
|
-
j && this.$d[j](
|
|
4675
|
+
j && this.$d[j](q);
|
|
4668
4676
|
return this.init(), this;
|
|
4669
4677
|
}, S.set = function(A, M) {
|
|
4670
4678
|
return this.clone().$set(A, M);
|
|
@@ -4673,19 +4681,19 @@ var yo = { exports: {} };
|
|
|
4673
4681
|
}, S.add = function(A, M) {
|
|
4674
4682
|
var D, N = this;
|
|
4675
4683
|
A = Number(A);
|
|
4676
|
-
var
|
|
4677
|
-
var
|
|
4678
|
-
return O.w(
|
|
4684
|
+
var k = O.p(M), j = function(J) {
|
|
4685
|
+
var U = b(N);
|
|
4686
|
+
return O.w(U.date(U.date() + Math.round(J * A)), N);
|
|
4679
4687
|
};
|
|
4680
|
-
if (
|
|
4688
|
+
if (k === d)
|
|
4681
4689
|
return this.set(d, this.$M + A);
|
|
4682
|
-
if (
|
|
4690
|
+
if (k === v)
|
|
4683
4691
|
return this.set(v, this.$y + A);
|
|
4684
|
-
if (
|
|
4692
|
+
if (k === c)
|
|
4685
4693
|
return j(1);
|
|
4686
|
-
if (
|
|
4694
|
+
if (k === f)
|
|
4687
4695
|
return j(7);
|
|
4688
|
-
var
|
|
4696
|
+
var q = (D = {}, D[l] = i, D[u] = o, D[a] = r, D)[k] || 1, K = this.$d.getTime() + A * q;
|
|
4689
4697
|
return O.w(K, this);
|
|
4690
4698
|
}, S.subtract = function(A, M) {
|
|
4691
4699
|
return this.add(-1 * A, M);
|
|
@@ -4693,22 +4701,22 @@ var yo = { exports: {} };
|
|
|
4693
4701
|
var M = this, D = this.$locale();
|
|
4694
4702
|
if (!this.isValid())
|
|
4695
4703
|
return D.invalidDate || h;
|
|
4696
|
-
var N = A || "YYYY-MM-DDTHH:mm:ssZ",
|
|
4704
|
+
var N = A || "YYYY-MM-DDTHH:mm:ssZ", k = O.z(this), j = this.$H, q = this.$m, K = this.$M, J = D.weekdays, U = D.months, L = function(ce, Z, X, fe) {
|
|
4697
4705
|
return ce && (ce[Z] || ce(M, N)) || X[Z].slice(0, fe);
|
|
4698
4706
|
}, P = function(ce) {
|
|
4699
4707
|
return O.s(j % 12 || 12, ce, "0");
|
|
4700
4708
|
}, z = D.meridiem || function(ce, Z, X) {
|
|
4701
4709
|
var fe = ce < 12 ? "AM" : "PM";
|
|
4702
4710
|
return X ? fe.toLowerCase() : fe;
|
|
4703
|
-
}, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K,
|
|
4711
|
+
}, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K, U, 3), MMMM: L(U, K), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: L(D.weekdaysMin, this.$W, J, 2), ddd: L(D.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: O.s(j, 2, "0"), h: P(1), hh: P(2), a: z(j, q, !0), A: z(j, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: k };
|
|
4704
4712
|
return N.replace(y, function(ce, Z) {
|
|
4705
|
-
return Z || oe[ce] ||
|
|
4713
|
+
return Z || oe[ce] || k.replace(":", "");
|
|
4706
4714
|
});
|
|
4707
4715
|
}, S.utcOffset = function() {
|
|
4708
4716
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4709
4717
|
}, S.diff = function(A, M, D) {
|
|
4710
|
-
var N,
|
|
4711
|
-
return J = (N = {}, N[v] = J / 12, N[d] = J, N[m] = J / 3, N[f] = (K -
|
|
4718
|
+
var N, k = O.p(M), j = b(A), q = (j.utcOffset() - this.utcOffset()) * i, K = this - j, J = O.m(this, j);
|
|
4719
|
+
return J = (N = {}, N[v] = J / 12, N[d] = J, N[m] = J / 3, N[f] = (K - q) / 6048e5, N[c] = (K - q) / 864e5, N[u] = K / o, N[l] = K / i, N[a] = K / r, N)[k] || K, D ? J : O.a(J);
|
|
4712
4720
|
}, S.daysInMonth = function() {
|
|
4713
4721
|
return this.endOf(d).$D;
|
|
4714
4722
|
}, S.$locale = function() {
|
|
@@ -4728,16 +4736,16 @@ var yo = { exports: {} };
|
|
|
4728
4736
|
return this.$d.toISOString();
|
|
4729
4737
|
}, S.toString = function() {
|
|
4730
4738
|
return this.$d.toUTCString();
|
|
4731
|
-
},
|
|
4739
|
+
}, R;
|
|
4732
4740
|
}(), $ = C.prototype;
|
|
4733
|
-
return b.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H", u], ["$W", c], ["$M", d], ["$y", v], ["$D", p]].forEach(function(
|
|
4734
|
-
$[
|
|
4735
|
-
return this.$g(S,
|
|
4741
|
+
return b.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H", u], ["$W", c], ["$M", d], ["$y", v], ["$D", p]].forEach(function(R) {
|
|
4742
|
+
$[R[1]] = function(S) {
|
|
4743
|
+
return this.$g(S, R[0], R[1]);
|
|
4736
4744
|
};
|
|
4737
|
-
}), b.extend = function(
|
|
4738
|
-
return
|
|
4739
|
-
}, b.locale = x, b.isDayjs = E, b.unix = function(
|
|
4740
|
-
return b(1e3 *
|
|
4745
|
+
}), b.extend = function(R, S) {
|
|
4746
|
+
return R.$i || (R(S, C, b), R.$i = !0), b;
|
|
4747
|
+
}, b.locale = x, b.isDayjs = E, b.unix = function(R) {
|
|
4748
|
+
return b(1e3 * R);
|
|
4741
4749
|
}, b.en = I[V], b.Ls = I, b.p = {}, b;
|
|
4742
4750
|
});
|
|
4743
4751
|
})(yo);
|
|
@@ -4953,7 +4961,7 @@ const at = {
|
|
|
4953
4961
|
checked: e,
|
|
4954
4962
|
disabled: !0
|
|
4955
4963
|
})
|
|
4956
|
-
}), jl = (e) => /* @__PURE__ */ n(
|
|
4964
|
+
}), jl = (e) => /* @__PURE__ */ n(kl, {
|
|
4957
4965
|
m2oField: e
|
|
4958
4966
|
}), Kl = (e) => /* @__PURE__ */ n(Gn, {
|
|
4959
4967
|
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
@@ -5029,8 +5037,8 @@ function pn(e) {
|
|
|
5029
5037
|
readonly: _
|
|
5030
5038
|
} = e, [w, V] = T([]), [I, E] = T([]), x = ue(!1), b = ue(null), {
|
|
5031
5039
|
t: O
|
|
5032
|
-
} =
|
|
5033
|
-
title:
|
|
5040
|
+
} = W(we), C = ue(r), $ = W(Xe), {
|
|
5041
|
+
title: R = void 0,
|
|
5034
5042
|
setTitle: S = void 0
|
|
5035
5043
|
} = (y ? $ : {}) || {};
|
|
5036
5044
|
pe(() => {
|
|
@@ -5053,7 +5061,7 @@ function pn(e) {
|
|
|
5053
5061
|
datetime: Wl,
|
|
5054
5062
|
avatar: Xl
|
|
5055
5063
|
}, F);
|
|
5056
|
-
E(K), b.current.string &&
|
|
5064
|
+
E(K), b.current.string && R !== b.current.string && (S == null || S(b.current.string));
|
|
5057
5065
|
}, [o]), pe(() => {
|
|
5058
5066
|
x.current = !1;
|
|
5059
5067
|
const K = ao(b.current, s);
|
|
@@ -5079,7 +5087,7 @@ function pn(e) {
|
|
|
5079
5087
|
children: D
|
|
5080
5088
|
})]
|
|
5081
5089
|
});
|
|
5082
|
-
function
|
|
5090
|
+
function k() {
|
|
5083
5091
|
var P;
|
|
5084
5092
|
const J = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
|
|
5085
5093
|
label: z.sum,
|
|
@@ -5087,20 +5095,20 @@ function pn(e) {
|
|
|
5087
5095
|
}));
|
|
5088
5096
|
if (!J || J.length === 0)
|
|
5089
5097
|
return null;
|
|
5090
|
-
let
|
|
5098
|
+
let U = [], L = ((P = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : P.length) > 0 ? w.filter((z) => f == null ? void 0 : f.selectedRowKeys.includes(z.id)) : w;
|
|
5091
5099
|
return J.forEach((z) => {
|
|
5092
5100
|
const oe = L.reduce((ce, Z) => Z[z.field] && !isNaN(Z[z.field]) ? ce + Z[z.field] : ce, 0);
|
|
5093
|
-
|
|
5101
|
+
U.push(`${z.label}: ${Math.round(oe * 100) / 100}`);
|
|
5094
5102
|
}), /* @__PURE__ */ n("div", {
|
|
5095
5103
|
className: "p-1 pb-0 pl-2 mt-2 ",
|
|
5096
|
-
children:
|
|
5104
|
+
children: U.join(", ")
|
|
5097
5105
|
});
|
|
5098
5106
|
}
|
|
5099
|
-
let j,
|
|
5107
|
+
let j, q = d;
|
|
5100
5108
|
if (b.current !== null) {
|
|
5101
5109
|
j = Dl(I, w, 600);
|
|
5102
5110
|
const J = b.current;
|
|
5103
|
-
d && J.columns.some((
|
|
5111
|
+
d && J.columns.some((U) => U.sum !== void 0) && (q = d - 30);
|
|
5104
5112
|
}
|
|
5105
5113
|
return b.current === null ? /* @__PURE__ */ n($e, {
|
|
5106
5114
|
style: {
|
|
@@ -5108,7 +5116,7 @@ function pn(e) {
|
|
|
5108
5116
|
}
|
|
5109
5117
|
}) : /* @__PURE__ */ H("div", {
|
|
5110
5118
|
children: [N(), /* @__PURE__ */ n(Di, {
|
|
5111
|
-
height:
|
|
5119
|
+
height: q,
|
|
5112
5120
|
columns: j.columns,
|
|
5113
5121
|
dataSource: w,
|
|
5114
5122
|
loading: l,
|
|
@@ -5131,7 +5139,7 @@ function pn(e) {
|
|
|
5131
5139
|
onFetchChildrenForRecord: h,
|
|
5132
5140
|
childField: g
|
|
5133
5141
|
} : void 0
|
|
5134
|
-
}),
|
|
5142
|
+
}), k()]
|
|
5135
5143
|
});
|
|
5136
5144
|
}
|
|
5137
5145
|
function Ql(e, t) {
|
|
@@ -5148,18 +5156,18 @@ function Ql(e, t) {
|
|
|
5148
5156
|
parentContext: d = {},
|
|
5149
5157
|
onChangeSelectedRowKeys: m
|
|
5150
5158
|
} = e, [v, p] = T(!1), [h, g] = T(!1), y = ue(!1), [F, _] = T(), [w, V] = T(), [I, E] = T(), [x, b] = T(), [O, C] = T(200), $ = ue(), {
|
|
5151
|
-
height:
|
|
5152
|
-
} = fn(), S =
|
|
5159
|
+
height: R
|
|
5160
|
+
} = fn(), S = W(kt), {
|
|
5153
5161
|
processAction: A
|
|
5154
|
-
} = S || {}, M =
|
|
5162
|
+
} = S || {}, M = W(Xe), {
|
|
5155
5163
|
setResults: D = void 0,
|
|
5156
5164
|
setCurrentItemIndex: N = void 0,
|
|
5157
|
-
currentId:
|
|
5165
|
+
currentId: k = void 0,
|
|
5158
5166
|
results: j = void 0,
|
|
5159
|
-
selectedRowItems:
|
|
5167
|
+
selectedRowItems: q = void 0,
|
|
5160
5168
|
setSelectedRowItems: K = void 0,
|
|
5161
5169
|
searchParams: J = [],
|
|
5162
|
-
setSearchParams:
|
|
5170
|
+
setSearchParams: U = void 0,
|
|
5163
5171
|
searchVisible: L = !0,
|
|
5164
5172
|
setSearchVisible: P = void 0,
|
|
5165
5173
|
sorter: z = void 0,
|
|
@@ -5169,13 +5177,13 @@ function Ql(e, t) {
|
|
|
5169
5177
|
setTreeIsLoading: X = void 0,
|
|
5170
5178
|
searchValues: fe = {},
|
|
5171
5179
|
setSearchValues: xe = void 0,
|
|
5172
|
-
limit:
|
|
5180
|
+
limit: ke = Ht,
|
|
5173
5181
|
setLimit: _e = void 0
|
|
5174
5182
|
} = (f ? M : {}) || {}, {
|
|
5175
5183
|
submit: de,
|
|
5176
5184
|
clear: se,
|
|
5177
5185
|
fetchResults: be,
|
|
5178
|
-
tableRefreshing:
|
|
5186
|
+
tableRefreshing: Re,
|
|
5179
5187
|
searchFilterLoading: Te,
|
|
5180
5188
|
searchError: Me,
|
|
5181
5189
|
page: Ze,
|
|
@@ -5190,7 +5198,7 @@ function Ql(e, t) {
|
|
|
5190
5198
|
model: F,
|
|
5191
5199
|
setSearchTreeNameSearch: Z,
|
|
5192
5200
|
setSelectedRowItems: K,
|
|
5193
|
-
setSearchParams:
|
|
5201
|
+
setSearchParams: U,
|
|
5194
5202
|
setSearchValues: xe,
|
|
5195
5203
|
searchParams: J,
|
|
5196
5204
|
setSearchVisible: P,
|
|
@@ -5206,9 +5214,9 @@ function Ql(e, t) {
|
|
|
5206
5214
|
setResultsActionView: D,
|
|
5207
5215
|
resultsActionView: j,
|
|
5208
5216
|
domain: u,
|
|
5209
|
-
currentId:
|
|
5217
|
+
currentId: k,
|
|
5210
5218
|
setActionViewTotalItems: ce,
|
|
5211
|
-
limit:
|
|
5219
|
+
limit: ke,
|
|
5212
5220
|
setLimit: _e
|
|
5213
5221
|
});
|
|
5214
5222
|
wt(t, () => ({
|
|
@@ -5292,7 +5300,7 @@ function Ql(e, t) {
|
|
|
5292
5300
|
K == null || K(Ue), m == null || m(ie);
|
|
5293
5301
|
}
|
|
5294
5302
|
function Ve() {
|
|
5295
|
-
return w != null && w.isExpandable ?
|
|
5303
|
+
return w != null && w.isExpandable ? R - 160 : R - (O + 210);
|
|
5296
5304
|
}
|
|
5297
5305
|
const he = () => !w || !I ? null : /* @__PURE__ */ H(ee, {
|
|
5298
5306
|
children: [/* @__PURE__ */ n(ho, {
|
|
@@ -5303,7 +5311,7 @@ function Ql(e, t) {
|
|
|
5303
5311
|
searchFields: lo([I.search_fields, w.search_fields]),
|
|
5304
5312
|
formXml: I.arch,
|
|
5305
5313
|
onClear: se,
|
|
5306
|
-
limit:
|
|
5314
|
+
limit: ke,
|
|
5307
5315
|
offset: Be,
|
|
5308
5316
|
isSearching: Te,
|
|
5309
5317
|
onSubmit: de,
|
|
@@ -5315,17 +5323,17 @@ function Ql(e, t) {
|
|
|
5315
5323
|
}), /* @__PURE__ */ n(pn, {
|
|
5316
5324
|
context: d,
|
|
5317
5325
|
total: De,
|
|
5318
|
-
limit:
|
|
5326
|
+
limit: ke,
|
|
5319
5327
|
page: Ze,
|
|
5320
5328
|
treeView: w,
|
|
5321
5329
|
results: te(),
|
|
5322
5330
|
onRequestPageChange: Ie,
|
|
5323
|
-
loading:
|
|
5331
|
+
loading: Re,
|
|
5324
5332
|
onRowClicked: Q,
|
|
5325
5333
|
scrollY: l || Ve(),
|
|
5326
5334
|
colorsForResults: Ce,
|
|
5327
5335
|
rowSelection: {
|
|
5328
|
-
selectedRowKeys:
|
|
5336
|
+
selectedRowKeys: q == null ? void 0 : q.map((ie) => ie.id),
|
|
5329
5337
|
onChange: ae
|
|
5330
5338
|
},
|
|
5331
5339
|
sorter: z,
|
|
@@ -5361,7 +5369,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5361
5369
|
modalHeight: d
|
|
5362
5370
|
} = fn(), {
|
|
5363
5371
|
t: m
|
|
5364
|
-
} =
|
|
5372
|
+
} = W(we), [v, p] = T([]), h = async () => {
|
|
5365
5373
|
await new Promise((_) => setTimeout(_, 5)), r();
|
|
5366
5374
|
}, g = async (_) => {
|
|
5367
5375
|
const {
|
|
@@ -5483,13 +5491,13 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5483
5491
|
domain: c
|
|
5484
5492
|
} = i, f = o && !a ? {
|
|
5485
5493
|
backgroundColor: To.colorPrimaryBg
|
|
5486
|
-
} : void 0, [d, m] = T(!1), [v, p] = T(!1), [h, g] = T(!1), [y, F] = T(), _ = ue(!1), [w, V] = T(""), I = ue(), E =
|
|
5494
|
+
} : void 0, [d, m] = T(!1), [v, p] = T(!1), [h, g] = T(!1), [y, F] = T(), _ = ue(!1), [w, V] = T(""), I = ue(), E = W(Le), {
|
|
5487
5495
|
domain: x,
|
|
5488
5496
|
getValues: b,
|
|
5489
5497
|
getFields: O,
|
|
5490
5498
|
getContext: C,
|
|
5491
5499
|
elementHasLostFocus: $
|
|
5492
|
-
} = E || {},
|
|
5500
|
+
} = E || {}, R = ue([]), [S, A] = T([]), M = t && t[0] || void 0, D = t && t[1] || "";
|
|
5493
5501
|
pe(() => {
|
|
5494
5502
|
!Array.isArray(t) && t && K(t);
|
|
5495
5503
|
}, [t]), pe(() => {
|
|
@@ -5497,7 +5505,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5497
5505
|
}, [t]);
|
|
5498
5506
|
const N = (P) => {
|
|
5499
5507
|
r == null || r(P), $ == null || $();
|
|
5500
|
-
},
|
|
5508
|
+
}, k = (P) => {
|
|
5501
5509
|
I.current = P.target.value, N([void 0, ""]);
|
|
5502
5510
|
}, j = async () => {
|
|
5503
5511
|
if (!h && w !== D) {
|
|
@@ -5507,8 +5515,8 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5507
5515
|
}
|
|
5508
5516
|
g(!0);
|
|
5509
5517
|
try {
|
|
5510
|
-
if (
|
|
5511
|
-
|
|
5518
|
+
if (R.current && R.current.length > 0)
|
|
5519
|
+
q(I.current);
|
|
5512
5520
|
else {
|
|
5513
5521
|
const P = await B.getHandler().nameSearch({
|
|
5514
5522
|
model: s,
|
|
@@ -5518,7 +5526,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5518
5526
|
...l
|
|
5519
5527
|
}
|
|
5520
5528
|
});
|
|
5521
|
-
P.length === 1 ? (I.current = void 0, N(P[0])) :
|
|
5529
|
+
P.length === 1 ? (I.current = void 0, N(P[0])) : q(I.current);
|
|
5522
5530
|
}
|
|
5523
5531
|
} catch (P) {
|
|
5524
5532
|
nn(P);
|
|
@@ -5526,10 +5534,10 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5526
5534
|
g(!1);
|
|
5527
5535
|
}
|
|
5528
5536
|
}
|
|
5529
|
-
},
|
|
5530
|
-
if (await J(),
|
|
5537
|
+
}, q = async (P) => {
|
|
5538
|
+
if (await J(), R.current && R.current.length > 0) {
|
|
5531
5539
|
const z = await B.getHandler().searchAllIds({
|
|
5532
|
-
params:
|
|
5540
|
+
params: R.current,
|
|
5533
5541
|
model: s,
|
|
5534
5542
|
context: {
|
|
5535
5543
|
...C == null ? void 0 : C(),
|
|
@@ -5561,20 +5569,20 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5561
5569
|
}
|
|
5562
5570
|
};
|
|
5563
5571
|
async function J() {
|
|
5564
|
-
c && (
|
|
5572
|
+
c && (R.current = await B.getHandler().evalDomain({
|
|
5565
5573
|
domain: c,
|
|
5566
|
-
values:
|
|
5574
|
+
values: Rt({
|
|
5567
5575
|
fields: O(),
|
|
5568
5576
|
values: b()
|
|
5569
5577
|
}),
|
|
5570
5578
|
fields: O(),
|
|
5571
5579
|
context: C()
|
|
5572
|
-
})), x && x.length > 0 && (
|
|
5580
|
+
})), x && x.length > 0 && (R.current = R.current.concat(Mr({
|
|
5573
5581
|
domain: x,
|
|
5574
5582
|
widgetFieldName: u
|
|
5575
|
-
}))), A(
|
|
5583
|
+
}))), A(R.current);
|
|
5576
5584
|
}
|
|
5577
|
-
async function
|
|
5585
|
+
async function U(P) {
|
|
5578
5586
|
P.keyCode === 13 ? (P.preventDefault(), P.stopPropagation(), await j()) : P.code === "Backspace" && M !== void 0 && (P.preventDefault(), P.stopPropagation(), N([void 0, ""]));
|
|
5579
5587
|
}
|
|
5580
5588
|
return /* @__PURE__ */ H(Se, {
|
|
@@ -5586,10 +5594,10 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5586
5594
|
type: "text",
|
|
5587
5595
|
value: w,
|
|
5588
5596
|
disabled: a,
|
|
5589
|
-
onChange:
|
|
5597
|
+
onChange: k,
|
|
5590
5598
|
style: f,
|
|
5591
5599
|
onBlur: j,
|
|
5592
|
-
onKeyDown:
|
|
5600
|
+
onKeyDown: U,
|
|
5593
5601
|
suffix: /* @__PURE__ */ n(Jn, {
|
|
5594
5602
|
id: M,
|
|
5595
5603
|
model: s,
|
|
@@ -5625,7 +5633,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5625
5633
|
icon: h ? /* @__PURE__ */ n(tt, {}) : /* @__PURE__ */ n(Bn, {}),
|
|
5626
5634
|
disabled: a || h,
|
|
5627
5635
|
onClick: () => {
|
|
5628
|
-
_.current = !0,
|
|
5636
|
+
_.current = !0, q(D);
|
|
5629
5637
|
},
|
|
5630
5638
|
style: {
|
|
5631
5639
|
borderTopLeftRadius: 0,
|
|
@@ -5701,7 +5709,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5701
5709
|
field: c,
|
|
5702
5710
|
operator: f,
|
|
5703
5711
|
manualIds: d
|
|
5704
|
-
} = e, [m, v] = T(!1), [p, h] = T(), [g, y] = T(), [F, _] = T(), [w, V] = T(0), [I, E] = T(0), [x, b] = T(), [O, C] = T(), [$,
|
|
5712
|
+
} = e, [m, v] = T(!1), [p, h] = T(), [g, y] = T(), [F, _] = T(), [w, V] = T(0), [I, E] = T(0), [x, b] = T(), [O, C] = T(), [$, R] = T();
|
|
5705
5713
|
pe(() => {
|
|
5706
5714
|
M();
|
|
5707
5715
|
}, [t, o]);
|
|
@@ -5714,18 +5722,18 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5714
5722
|
domain: D
|
|
5715
5723
|
});
|
|
5716
5724
|
if (c && f) {
|
|
5717
|
-
const
|
|
5725
|
+
const k = d || await B.getHandler().searchAllIds({
|
|
5718
5726
|
params: D,
|
|
5719
5727
|
model: t,
|
|
5720
5728
|
context: i
|
|
5721
5729
|
}), j = await B.getHandler().readObjects({
|
|
5722
5730
|
model: t,
|
|
5723
|
-
ids:
|
|
5731
|
+
ids: k,
|
|
5724
5732
|
fieldsToRetrieve: [c],
|
|
5725
5733
|
context: i
|
|
5726
5734
|
});
|
|
5727
5735
|
return Tr({
|
|
5728
|
-
values: j.map((
|
|
5736
|
+
values: j.map((q) => q[c]),
|
|
5729
5737
|
operator: f
|
|
5730
5738
|
});
|
|
5731
5739
|
} else
|
|
@@ -5743,14 +5751,14 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5743
5751
|
params: D,
|
|
5744
5752
|
model: t,
|
|
5745
5753
|
context: i
|
|
5746
|
-
}),
|
|
5754
|
+
}), k = await B.getHandler().readObjects({
|
|
5747
5755
|
model: t,
|
|
5748
5756
|
ids: N,
|
|
5749
5757
|
fieldsToRetrieve: [c],
|
|
5750
5758
|
context: i
|
|
5751
5759
|
});
|
|
5752
5760
|
return Tr({
|
|
5753
|
-
values:
|
|
5761
|
+
values: k.map((j) => j[c]),
|
|
5754
5762
|
operator: f
|
|
5755
5763
|
});
|
|
5756
5764
|
} else
|
|
@@ -5764,11 +5772,11 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5764
5772
|
v(!0);
|
|
5765
5773
|
let D, N;
|
|
5766
5774
|
try {
|
|
5767
|
-
const
|
|
5775
|
+
const k = await S({
|
|
5768
5776
|
domain: r,
|
|
5769
5777
|
isTotal: !1
|
|
5770
5778
|
});
|
|
5771
|
-
if (h(
|
|
5779
|
+
if (h(k), s) {
|
|
5772
5780
|
const j = await B.getHandler().evalDomain({
|
|
5773
5781
|
domain: s,
|
|
5774
5782
|
values: {},
|
|
@@ -5779,11 +5787,11 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5779
5787
|
isTotal: !0
|
|
5780
5788
|
}), _(D);
|
|
5781
5789
|
}
|
|
5782
|
-
if (D ? (N = Math.round(
|
|
5790
|
+
if (D ? (N = Math.round(k / D * 100 * 100) / 100, y(N)) : y(0), o) {
|
|
5783
5791
|
const j = await B.getHandler().parseCondition({
|
|
5784
5792
|
condition: o,
|
|
5785
5793
|
values: {
|
|
5786
|
-
value:
|
|
5794
|
+
value: k,
|
|
5787
5795
|
percent: N
|
|
5788
5796
|
},
|
|
5789
5797
|
context: i
|
|
@@ -5795,7 +5803,7 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5795
5803
|
const j = await B.getHandler().parseCondition({
|
|
5796
5804
|
condition: l,
|
|
5797
5805
|
values: {
|
|
5798
|
-
value:
|
|
5806
|
+
value: k,
|
|
5799
5807
|
percent: N
|
|
5800
5808
|
},
|
|
5801
5809
|
context: i
|
|
@@ -5803,8 +5811,8 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5803
5811
|
C(j);
|
|
5804
5812
|
} else
|
|
5805
5813
|
C(l);
|
|
5806
|
-
} catch (
|
|
5807
|
-
|
|
5814
|
+
} catch (k) {
|
|
5815
|
+
R(JSON.stringify(k));
|
|
5808
5816
|
}
|
|
5809
5817
|
v(!1);
|
|
5810
5818
|
}
|
|
@@ -5825,8 +5833,8 @@ const Co = vt(Ql), So = (e) => {
|
|
|
5825
5833
|
}) : /* @__PURE__ */ n(qn, {
|
|
5826
5834
|
bounds: !0,
|
|
5827
5835
|
onResize: (D) => {
|
|
5828
|
-
var N,
|
|
5829
|
-
V((N = D.bounds) == null ? void 0 : N.height), E((
|
|
5836
|
+
var N, k;
|
|
5837
|
+
V((N = D.bounds) == null ? void 0 : N.height), E((k = D.bounds) == null ? void 0 : k.width);
|
|
5830
5838
|
},
|
|
5831
5839
|
children: ({
|
|
5832
5840
|
measureRef: D
|
|
@@ -6232,7 +6240,7 @@ const vc = {
|
|
|
6232
6240
|
manualIds: a
|
|
6233
6241
|
} = e, {
|
|
6234
6242
|
t: l
|
|
6235
|
-
} =
|
|
6243
|
+
} = W(we), {
|
|
6236
6244
|
error: u,
|
|
6237
6245
|
loading: c,
|
|
6238
6246
|
values: f,
|
|
@@ -6306,7 +6314,7 @@ const xc = (e, t) => {
|
|
|
6306
6314
|
domain: s,
|
|
6307
6315
|
limit: a,
|
|
6308
6316
|
manualIds: l
|
|
6309
|
-
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p =
|
|
6317
|
+
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = W(Xe), {
|
|
6310
6318
|
setGraphIsLoading: h = void 0
|
|
6311
6319
|
} = p || {};
|
|
6312
6320
|
wt(t, () => ({
|
|
@@ -6512,7 +6520,7 @@ const xc = (e, t) => {
|
|
|
6512
6520
|
})]
|
|
6513
6521
|
});
|
|
6514
6522
|
}, Ic = {
|
|
6515
|
-
form:
|
|
6523
|
+
form: kr,
|
|
6516
6524
|
tree: Ar,
|
|
6517
6525
|
graph: gn
|
|
6518
6526
|
};
|
|
@@ -6539,7 +6547,7 @@ const Vc = (e) => {
|
|
|
6539
6547
|
setCurrentView: l,
|
|
6540
6548
|
itemIndex: u,
|
|
6541
6549
|
setItemIndex: c
|
|
6542
|
-
} =
|
|
6550
|
+
} = W(Oo), f = W(Le), {
|
|
6543
6551
|
activeId: d,
|
|
6544
6552
|
getFields: m,
|
|
6545
6553
|
getValues: v,
|
|
@@ -6548,8 +6556,8 @@ const Vc = (e) => {
|
|
|
6548
6556
|
} = f || {}, {
|
|
6549
6557
|
lang: g,
|
|
6550
6558
|
t: y
|
|
6551
|
-
} =
|
|
6552
|
-
readOnly:
|
|
6559
|
+
} = W(we), [F, _] = T(!1), [w, V] = T(!1), [I, E] = T(), [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T([]), [M, D] = T(!1), N = ue([]), [k, j] = T(), q = ue(), [K, J] = T(void 0), {
|
|
6560
|
+
readOnly: U,
|
|
6553
6561
|
relation: L,
|
|
6554
6562
|
context: P,
|
|
6555
6563
|
domain: z
|
|
@@ -6564,7 +6572,7 @@ const Vc = (e) => {
|
|
|
6564
6572
|
fe();
|
|
6565
6573
|
}, [s, a]);
|
|
6566
6574
|
const fe = Ee(() => {
|
|
6567
|
-
(a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) &&
|
|
6575
|
+
(a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) && ke();
|
|
6568
6576
|
}, [s, a]);
|
|
6569
6577
|
pe(() => {
|
|
6570
6578
|
de();
|
|
@@ -6575,7 +6583,7 @@ const Vc = (e) => {
|
|
|
6575
6583
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ve = o.get("tree")) == null ? void 0 : Ve.fields),
|
|
6576
6584
|
items: Dc(Q)
|
|
6577
6585
|
});
|
|
6578
|
-
},
|
|
6586
|
+
}, ke = async () => {
|
|
6579
6587
|
await _e(), u > Z.length - 1 && u !== 0 && c(0);
|
|
6580
6588
|
}, _e = async (Q) => {
|
|
6581
6589
|
var ae, Ve, he;
|
|
@@ -6597,7 +6605,7 @@ const Vc = (e) => {
|
|
|
6597
6605
|
},
|
|
6598
6606
|
currentView: Q || a
|
|
6599
6607
|
});
|
|
6600
|
-
return
|
|
6608
|
+
return q.current || (q.current = ge.map((Ue) => Ue.id)), (a || Q) === "tree" && ie && J(ie), xe(ge), ge;
|
|
6601
6609
|
} catch (ge) {
|
|
6602
6610
|
E(ge);
|
|
6603
6611
|
} finally {
|
|
@@ -6607,7 +6615,7 @@ const Vc = (e) => {
|
|
|
6607
6615
|
async function de() {
|
|
6608
6616
|
z && (N.current = await B.getHandler().evalDomain({
|
|
6609
6617
|
domain: z,
|
|
6610
|
-
values:
|
|
6618
|
+
values: Rt({
|
|
6611
6619
|
fields: m(),
|
|
6612
6620
|
values: v()
|
|
6613
6621
|
}),
|
|
@@ -6627,7 +6635,7 @@ const Vc = (e) => {
|
|
|
6627
6635
|
u > 0 && (a === "form" ? Me(() => {
|
|
6628
6636
|
c(u - 1);
|
|
6629
6637
|
}) : c(u - 1));
|
|
6630
|
-
},
|
|
6638
|
+
}, Re = () => {
|
|
6631
6639
|
const Q = Z.length;
|
|
6632
6640
|
u < Q - 1 && (a === "form" ? Me(() => {
|
|
6633
6641
|
c(u + 1);
|
|
@@ -6687,10 +6695,10 @@ const Vc = (e) => {
|
|
|
6687
6695
|
Q && d && (ae = {
|
|
6688
6696
|
[Q]: d
|
|
6689
6697
|
}), a === "form" ? Me(() => {
|
|
6690
|
-
D(!0),
|
|
6698
|
+
D(!0), R({
|
|
6691
6699
|
defaultValues: ae
|
|
6692
6700
|
}), b(!0);
|
|
6693
|
-
}) : (D(!0),
|
|
6701
|
+
}) : (D(!0), R({
|
|
6694
6702
|
defaultValues: ae
|
|
6695
6703
|
}), b(!0));
|
|
6696
6704
|
}, te = async () => {
|
|
@@ -6762,7 +6770,7 @@ const Vc = (e) => {
|
|
|
6762
6770
|
} = Q;
|
|
6763
6771
|
let Ve = s;
|
|
6764
6772
|
const he = s.find((ge) => ge.id === ae);
|
|
6765
|
-
(he == null ? void 0 : he.values) === void 0 && (Ve = await _e("form")),
|
|
6773
|
+
(he == null ? void 0 : he.values) === void 0 && (Ve = await _e("form")), R(Ve.find((ge) => ge.id === ae)), D(!1), b(!0);
|
|
6766
6774
|
}, De = async (Q) => {
|
|
6767
6775
|
V(!0);
|
|
6768
6776
|
let ae = s;
|
|
@@ -6838,12 +6846,12 @@ const Vc = (e) => {
|
|
|
6838
6846
|
} : dt);
|
|
6839
6847
|
xe(st), _(!0);
|
|
6840
6848
|
},
|
|
6841
|
-
readOnly:
|
|
6849
|
+
readOnly: U
|
|
6842
6850
|
});
|
|
6843
6851
|
let Q = [];
|
|
6844
|
-
if (Z.some((ie) => ie.treeValues) && (Q =
|
|
6852
|
+
if (Z.some((ie) => ie.treeValues) && (Q = k ? Ot({
|
|
6845
6853
|
resultsToSort: Z.map((ie) => ie.treeValues),
|
|
6846
|
-
sorter:
|
|
6854
|
+
sorter: k,
|
|
6847
6855
|
fields: {
|
|
6848
6856
|
...o.get("tree").fields,
|
|
6849
6857
|
...((he = o.get("form")) == null ? void 0 : he.fields) || {}
|
|
@@ -6861,14 +6869,14 @@ const Vc = (e) => {
|
|
|
6861
6869
|
selectedRowKeys: S,
|
|
6862
6870
|
onChange: A
|
|
6863
6871
|
},
|
|
6864
|
-
sorter:
|
|
6872
|
+
sorter: k,
|
|
6865
6873
|
onChangeSort: j,
|
|
6866
6874
|
context: {
|
|
6867
6875
|
...p == null ? void 0 : p(),
|
|
6868
6876
|
...P
|
|
6869
6877
|
},
|
|
6870
6878
|
colorsForResults: K,
|
|
6871
|
-
readonly:
|
|
6879
|
+
readonly: U
|
|
6872
6880
|
});
|
|
6873
6881
|
if (a === "graph") {
|
|
6874
6882
|
const ie = [[`${i.inv_field}`, "=", d]];
|
|
@@ -6896,7 +6904,7 @@ const Vc = (e) => {
|
|
|
6896
6904
|
children: [/* @__PURE__ */ n(_c, {
|
|
6897
6905
|
mode: a,
|
|
6898
6906
|
title: me(),
|
|
6899
|
-
readOnly:
|
|
6907
|
+
readOnly: U,
|
|
6900
6908
|
isMany2Many: oe,
|
|
6901
6909
|
formHasChanges: F,
|
|
6902
6910
|
totalItems: Z.length,
|
|
@@ -6905,7 +6913,7 @@ const Vc = (e) => {
|
|
|
6905
6913
|
onCreateItem: Be,
|
|
6906
6914
|
onToggleViewMode: se,
|
|
6907
6915
|
onPreviousItem: be,
|
|
6908
|
-
onNextItem:
|
|
6916
|
+
onNextItem: Re,
|
|
6909
6917
|
onSearchItem: te,
|
|
6910
6918
|
selectedRowKeys: S,
|
|
6911
6919
|
showCreateButton: ((it = o.get("form")) == null ? void 0 : it.fields) !== void 0,
|
|
@@ -6926,7 +6934,7 @@ const Vc = (e) => {
|
|
|
6926
6934
|
onCancel: () => {
|
|
6927
6935
|
D(!1), b(!1);
|
|
6928
6936
|
},
|
|
6929
|
-
readOnly:
|
|
6937
|
+
readOnly: U,
|
|
6930
6938
|
mustClearAfterSave: je
|
|
6931
6939
|
}), /* @__PURE__ */ n(So, {
|
|
6932
6940
|
domain: N.current,
|
|
@@ -6955,7 +6963,7 @@ const Vc = (e) => {
|
|
|
6955
6963
|
context: a
|
|
6956
6964
|
} = t;
|
|
6957
6965
|
let l;
|
|
6958
|
-
const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p =
|
|
6966
|
+
const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = W(Le), {
|
|
6959
6967
|
getContext: h
|
|
6960
6968
|
} = p || {};
|
|
6961
6969
|
xt(() => {
|
|
@@ -7015,8 +7023,8 @@ const Vc = (e) => {
|
|
|
7015
7023
|
})
|
|
7016
7024
|
});
|
|
7017
7025
|
}, {
|
|
7018
|
-
useToken:
|
|
7019
|
-
} = Pe,
|
|
7026
|
+
useToken: Rc
|
|
7027
|
+
} = Pe, kc = (e) => {
|
|
7020
7028
|
const {
|
|
7021
7029
|
ooui: t
|
|
7022
7030
|
} = e, {
|
|
@@ -7041,9 +7049,9 @@ const Vc = (e) => {
|
|
|
7041
7049
|
required: a
|
|
7042
7050
|
} = t, {
|
|
7043
7051
|
token: l
|
|
7044
|
-
} =
|
|
7052
|
+
} = Rc(), u = a && !s ? {
|
|
7045
7053
|
backgroundColor: l.colorPrimaryBg
|
|
7046
|
-
} : void 0, c = ue(), [f, d] = T(), m =
|
|
7054
|
+
} : void 0, c = ue(), [f, d] = T(), m = W(Le), {
|
|
7047
7055
|
elementHasLostFocus: v
|
|
7048
7056
|
} = m || {};
|
|
7049
7057
|
pe(() => {
|
|
@@ -7076,7 +7084,7 @@ function Io(e) {
|
|
|
7076
7084
|
responsiveBehaviour: i
|
|
7077
7085
|
} = e, o = rt(t.icon || "");
|
|
7078
7086
|
return /* @__PURE__ */ n(ee, {
|
|
7079
|
-
children: (t.label || o) && r ? /* @__PURE__ */ n(
|
|
7087
|
+
children: (t.label || o) && r ? /* @__PURE__ */ n(ki, {
|
|
7080
7088
|
label: t.label,
|
|
7081
7089
|
icon: o,
|
|
7082
7090
|
children: /* @__PURE__ */ n(Vn, {
|
|
@@ -7135,7 +7143,7 @@ const {
|
|
|
7135
7143
|
token: l
|
|
7136
7144
|
} = Lc(), u = o && !i ? {
|
|
7137
7145
|
backgroundColor: l.colorPrimaryBg
|
|
7138
|
-
} : void 0, c =
|
|
7146
|
+
} : void 0, c = W(Le), {
|
|
7139
7147
|
elementHasLostFocus: f
|
|
7140
7148
|
} = c || {};
|
|
7141
7149
|
return /* @__PURE__ */ n(ve, {
|
|
@@ -7162,7 +7170,7 @@ const {
|
|
|
7162
7170
|
onChange: i,
|
|
7163
7171
|
height: o
|
|
7164
7172
|
}) => {
|
|
7165
|
-
const s =
|
|
7173
|
+
const s = W(Le), {
|
|
7166
7174
|
activeId: a,
|
|
7167
7175
|
activeModel: l,
|
|
7168
7176
|
fetchValues: u,
|
|
@@ -7170,7 +7178,7 @@ const {
|
|
|
7170
7178
|
elementHasLostFocus: f
|
|
7171
7179
|
} = s || {}, [d, m] = T(!1), {
|
|
7172
7180
|
t: v
|
|
7173
|
-
} =
|
|
7181
|
+
} = W(we);
|
|
7174
7182
|
return a ? /* @__PURE__ */ H(ee, {
|
|
7175
7183
|
children: [/* @__PURE__ */ n("div", {
|
|
7176
7184
|
onClick: () => {
|
|
@@ -7297,7 +7305,7 @@ const {
|
|
|
7297
7305
|
return l.current["/"] = g, Or({ fields: g });
|
|
7298
7306
|
}, [e, t, l]), d = Ee(
|
|
7299
7307
|
async (g) => {
|
|
7300
|
-
const F =
|
|
7308
|
+
const F = kn(g, l.current)[Rn(g)], _ = F.relation, w = await B.getHandler().getFields({
|
|
7301
7309
|
model: _,
|
|
7302
7310
|
context: t,
|
|
7303
7311
|
fields: []
|
|
@@ -7323,7 +7331,7 @@ const {
|
|
|
7323
7331
|
predefinedExports: g.map((_) => ({
|
|
7324
7332
|
..._,
|
|
7325
7333
|
fields: _.fields.map((w) => {
|
|
7326
|
-
const V =
|
|
7334
|
+
const V = Rn(w.key), E = kn(w.key, l.current)[V];
|
|
7327
7335
|
return {
|
|
7328
7336
|
key: w.key,
|
|
7329
7337
|
title: E.string
|
|
@@ -7407,12 +7415,12 @@ const {
|
|
|
7407
7415
|
}, Do = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", jc = ({
|
|
7408
7416
|
parentKey: e,
|
|
7409
7417
|
key: t
|
|
7410
|
-
}) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"),
|
|
7418
|
+
}) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Rn = (e) => {
|
|
7411
7419
|
if (e.indexOf("/") === -1)
|
|
7412
7420
|
return e;
|
|
7413
7421
|
const t = e.split("/");
|
|
7414
7422
|
return t[t.length - 1];
|
|
7415
|
-
},
|
|
7423
|
+
}, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Kc = ({
|
|
7416
7424
|
title: e,
|
|
7417
7425
|
parentTitle: t
|
|
7418
7426
|
}) => `${t ? t + " \u2192 " : ""}${e}`, Yc = async ({
|
|
@@ -7470,7 +7478,7 @@ const {
|
|
|
7470
7478
|
keys: e,
|
|
7471
7479
|
fields: t
|
|
7472
7480
|
}) => e.map((r) => {
|
|
7473
|
-
const i =
|
|
7481
|
+
const i = Rn(r), s = kn(r, t)[i];
|
|
7474
7482
|
return Do(s) ? `${r}/id` : r;
|
|
7475
7483
|
}), qc = (e) => {
|
|
7476
7484
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -7611,7 +7619,7 @@ var Vo = { exports: {} };
|
|
|
7611
7619
|
g = h, y = l && l.formats;
|
|
7612
7620
|
for (var F = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, O, C) {
|
|
7613
7621
|
var $ = C && C.toUpperCase();
|
|
7614
|
-
return O || y[C] || r[C] || y[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(
|
|
7622
|
+
return O || y[C] || r[C] || y[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, S, A) {
|
|
7615
7623
|
return S || A.slice(1);
|
|
7616
7624
|
});
|
|
7617
7625
|
})).match(i), _ = F.length, w = 0; w < _; w += 1) {
|
|
@@ -7620,19 +7628,19 @@ var Vo = { exports: {} };
|
|
|
7620
7628
|
}
|
|
7621
7629
|
return function(b) {
|
|
7622
7630
|
for (var O = {}, C = 0, $ = 0; C < _; C += 1) {
|
|
7623
|
-
var
|
|
7624
|
-
if (typeof
|
|
7625
|
-
$ +=
|
|
7631
|
+
var R = F[C];
|
|
7632
|
+
if (typeof R == "string")
|
|
7633
|
+
$ += R.length;
|
|
7626
7634
|
else {
|
|
7627
|
-
var S =
|
|
7635
|
+
var S = R.regex, A = R.parser, M = b.slice($), D = S.exec(M)[0];
|
|
7628
7636
|
A.call(O, D), b = b.replace(D, "");
|
|
7629
7637
|
}
|
|
7630
7638
|
}
|
|
7631
7639
|
return function(N) {
|
|
7632
|
-
var
|
|
7633
|
-
if (
|
|
7640
|
+
var k = N.afternoon;
|
|
7641
|
+
if (k !== void 0) {
|
|
7634
7642
|
var j = N.hours;
|
|
7635
|
-
|
|
7643
|
+
k ? j < 12 && (N.hours += 12) : j === 12 && (N.hours = 0), delete N.afternoon;
|
|
7636
7644
|
}
|
|
7637
7645
|
}(O), O;
|
|
7638
7646
|
};
|
|
@@ -7650,23 +7658,23 @@ var Vo = { exports: {} };
|
|
|
7650
7658
|
try {
|
|
7651
7659
|
if (["x", "X"].indexOf(D) > -1)
|
|
7652
7660
|
return new Date((D === "X" ? 1e3 : 1) * M);
|
|
7653
|
-
var
|
|
7654
|
-
j && !
|
|
7655
|
-
var fe = J || 0, xe =
|
|
7656
|
-
return z ? new Date(Date.UTC(Z, X, ce, fe, xe,
|
|
7661
|
+
var k = p(D)(M), j = k.year, q = k.month, K = k.day, J = k.hours, U = k.minutes, L = k.seconds, P = k.milliseconds, z = k.zone, oe = new Date(), ce = K || (j || q ? 1 : oe.getDate()), Z = j || oe.getFullYear(), X = 0;
|
|
7662
|
+
j && !q || (X = q > 0 ? q - 1 : oe.getMonth());
|
|
7663
|
+
var fe = J || 0, xe = U || 0, ke = L || 0, _e = P || 0;
|
|
7664
|
+
return z ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e + 60 * z.offset * 1e3)) : N ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e)) : new Date(Z, X, ce, fe, xe, ke, _e);
|
|
7657
7665
|
} catch {
|
|
7658
7666
|
return new Date("");
|
|
7659
7667
|
}
|
|
7660
7668
|
}(V, x, I), this.init(), $ && $ !== !0 && (this.$L = this.locale($).$L), C && V != this.format(x) && (this.$d = new Date("")), l = {};
|
|
7661
7669
|
} else if (x instanceof Array)
|
|
7662
|
-
for (var
|
|
7670
|
+
for (var R = x.length, S = 1; S <= R; S += 1) {
|
|
7663
7671
|
E[1] = x[S - 1];
|
|
7664
7672
|
var A = y.apply(this, E);
|
|
7665
7673
|
if (A.isValid()) {
|
|
7666
7674
|
this.$d = A.$d, this.$L = A.$L, this.init();
|
|
7667
7675
|
break;
|
|
7668
7676
|
}
|
|
7669
|
-
S ===
|
|
7677
|
+
S === R && (this.$d = new Date(""));
|
|
7670
7678
|
}
|
|
7671
7679
|
else
|
|
7672
7680
|
_.call(this, w);
|
|
@@ -7745,7 +7753,7 @@ const Qc = (e) => {
|
|
|
7745
7753
|
}), /* @__PURE__ */ n(le, {
|
|
7746
7754
|
flex: "3",
|
|
7747
7755
|
children: /* @__PURE__ */ n(Fo, {
|
|
7748
|
-
ooui: new
|
|
7756
|
+
ooui: new Rr({
|
|
7749
7757
|
name: "object_value",
|
|
7750
7758
|
relation: f,
|
|
7751
7759
|
readonly: a,
|
|
@@ -7791,9 +7799,9 @@ const Qc = (e) => {
|
|
|
7791
7799
|
} : void 0, c = ue(null), {
|
|
7792
7800
|
setFieldValue: f,
|
|
7793
7801
|
getFieldValue: d
|
|
7794
|
-
} =
|
|
7802
|
+
} = W(Le) || {}, {
|
|
7795
7803
|
t: m
|
|
7796
|
-
} =
|
|
7804
|
+
} = W(we), v = r ? ya(r) : "", p = (_) => {
|
|
7797
7805
|
i == null || i(_);
|
|
7798
7806
|
};
|
|
7799
7807
|
async function h() {
|
|
@@ -7880,7 +7888,7 @@ function Zn(e) {
|
|
|
7880
7888
|
} = e, {
|
|
7881
7889
|
t: l,
|
|
7882
7890
|
lang: u
|
|
7883
|
-
} =
|
|
7891
|
+
} = W(we);
|
|
7884
7892
|
function c() {
|
|
7885
7893
|
const m = r.map((v, p) => /* @__PURE__ */ n(He.Item, {
|
|
7886
7894
|
children: /* @__PURE__ */ H(Se, {
|
|
@@ -8027,10 +8035,10 @@ function Ao(e) {
|
|
|
8027
8035
|
} = e, {
|
|
8028
8036
|
formHasChanges: r,
|
|
8029
8037
|
onNewClicked: i
|
|
8030
|
-
} =
|
|
8038
|
+
} = W(Xe), {
|
|
8031
8039
|
t: o,
|
|
8032
8040
|
lang: s
|
|
8033
|
-
} =
|
|
8041
|
+
} = W(we), a = () => {
|
|
8034
8042
|
if (r) {
|
|
8035
8043
|
Wt({
|
|
8036
8044
|
lang: s,
|
|
@@ -8067,7 +8075,7 @@ const {
|
|
|
8067
8075
|
onCancel: t
|
|
8068
8076
|
});
|
|
8069
8077
|
};
|
|
8070
|
-
async function
|
|
8078
|
+
async function Ro(e, t, r) {
|
|
8071
8079
|
const i = (await B.getHandler().getLogInfo({
|
|
8072
8080
|
model: e,
|
|
8073
8081
|
ids: [t]
|
|
@@ -8089,7 +8097,7 @@ const ld = (e) => {
|
|
|
8089
8097
|
} = e, {
|
|
8090
8098
|
t: i,
|
|
8091
8099
|
lang: o
|
|
8092
|
-
} =
|
|
8100
|
+
} = W(we), [s, a] = T(!1), l = /* @__PURE__ */ H(Oe, {
|
|
8093
8101
|
disabled: r,
|
|
8094
8102
|
children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
|
|
8095
8103
|
style: {
|
|
@@ -8201,9 +8209,9 @@ function dd(e) {
|
|
|
8201
8209
|
onViewAttachmentDetails: s
|
|
8202
8210
|
} = e, {
|
|
8203
8211
|
formRef: a
|
|
8204
|
-
} =
|
|
8212
|
+
} = W(Xe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
|
|
8205
8213
|
t: v
|
|
8206
|
-
} =
|
|
8214
|
+
} = W(we), p = Ee(async () => {
|
|
8207
8215
|
u(!0);
|
|
8208
8216
|
try {
|
|
8209
8217
|
const y = await B.getHandler().readObjects({
|
|
@@ -8298,15 +8306,15 @@ function ud({
|
|
|
8298
8306
|
previousView: I,
|
|
8299
8307
|
setPreviousView: E,
|
|
8300
8308
|
goToResourceId: x
|
|
8301
|
-
} =
|
|
8309
|
+
} = W(Xe), {
|
|
8302
8310
|
t: b,
|
|
8303
8311
|
lang: O
|
|
8304
|
-
} =
|
|
8312
|
+
} = W(we), C = W(kt), {
|
|
8305
8313
|
processAction: $
|
|
8306
|
-
} = C || {},
|
|
8314
|
+
} = C || {}, R = W(ot), {
|
|
8307
8315
|
openRelate: S,
|
|
8308
8316
|
openDefaultActionForModel: A
|
|
8309
|
-
} =
|
|
8317
|
+
} = R || {};
|
|
8310
8318
|
function M(L) {
|
|
8311
8319
|
if (s) {
|
|
8312
8320
|
ad({
|
|
@@ -8334,7 +8342,7 @@ function ud({
|
|
|
8334
8342
|
function N() {
|
|
8335
8343
|
u && u.length > f + 1 ? (c == null || c(f + 1), d == null || d(u[f + 1].id)) : u && f + 1 === u.length && (c == null || c(0), d == null || d(u[0].id));
|
|
8336
8344
|
}
|
|
8337
|
-
function
|
|
8345
|
+
function k() {
|
|
8338
8346
|
u && f > 0 ? (c == null || c(f - 1), d == null || d(u[f - 1].id)) : u && f === 0 && (c == null || c(u.length - 1), d == null || d(u[u.length - 1].id));
|
|
8339
8347
|
}
|
|
8340
8348
|
function j() {
|
|
@@ -8342,11 +8350,11 @@ function ud({
|
|
|
8342
8350
|
confirmMessage: b("confirmRemoveItem"),
|
|
8343
8351
|
lang: O,
|
|
8344
8352
|
onOk: () => {
|
|
8345
|
-
|
|
8353
|
+
q();
|
|
8346
8354
|
}
|
|
8347
8355
|
});
|
|
8348
8356
|
}
|
|
8349
|
-
async function
|
|
8357
|
+
async function q() {
|
|
8350
8358
|
try {
|
|
8351
8359
|
v == null || v(!0), await B.getHandler().delete({
|
|
8352
8360
|
model: m,
|
|
@@ -8378,7 +8386,7 @@ function ud({
|
|
|
8378
8386
|
}
|
|
8379
8387
|
}
|
|
8380
8388
|
const J = a || p || F || h;
|
|
8381
|
-
function
|
|
8389
|
+
function U(L) {
|
|
8382
8390
|
$ == null || $({
|
|
8383
8391
|
actionData: L,
|
|
8384
8392
|
values: w.current.getValues(),
|
|
@@ -8419,7 +8427,7 @@ function ud({
|
|
|
8419
8427
|
disabled: a || l === void 0 || p || h || F,
|
|
8420
8428
|
loading: !1,
|
|
8421
8429
|
onClick: () => {
|
|
8422
|
-
|
|
8430
|
+
Ro(m, l, b);
|
|
8423
8431
|
}
|
|
8424
8432
|
}), /* @__PURE__ */ n(Ge, {
|
|
8425
8433
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
@@ -8447,7 +8455,7 @@ function ud({
|
|
|
8447
8455
|
disabled: J,
|
|
8448
8456
|
loading: !1,
|
|
8449
8457
|
onClick: () => {
|
|
8450
|
-
D(
|
|
8458
|
+
D(k);
|
|
8451
8459
|
}
|
|
8452
8460
|
}), /* @__PURE__ */ n(Ge, {
|
|
8453
8461
|
icon: /* @__PURE__ */ n(Yr, {}),
|
|
@@ -8466,7 +8474,7 @@ function ud({
|
|
|
8466
8474
|
onItemClick: async (L) => {
|
|
8467
8475
|
!L || !(await St({
|
|
8468
8476
|
onFormSave: o
|
|
8469
|
-
})).succeed ||
|
|
8477
|
+
})).succeed || U(L);
|
|
8470
8478
|
}
|
|
8471
8479
|
}), /* @__PURE__ */ n(_t, {
|
|
8472
8480
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
@@ -8479,7 +8487,7 @@ function ud({
|
|
|
8479
8487
|
const P = await St({
|
|
8480
8488
|
onFormSave: o
|
|
8481
8489
|
});
|
|
8482
|
-
!P.succeed ||
|
|
8490
|
+
!P.succeed || U({
|
|
8483
8491
|
...L,
|
|
8484
8492
|
datas: {
|
|
8485
8493
|
...L.datas || {},
|
|
@@ -8569,7 +8577,7 @@ async function St({
|
|
|
8569
8577
|
}
|
|
8570
8578
|
const {
|
|
8571
8579
|
useToken: fd
|
|
8572
|
-
} = Pe,
|
|
8580
|
+
} = Pe, ko = (e) => {
|
|
8573
8581
|
const {
|
|
8574
8582
|
ooui: t,
|
|
8575
8583
|
value: r,
|
|
@@ -8584,7 +8592,7 @@ const {
|
|
|
8584
8592
|
token: c
|
|
8585
8593
|
} = fd(), f = u && !l ? {
|
|
8586
8594
|
backgroundColor: c.colorPrimaryBg
|
|
8587
|
-
} : void 0, d =
|
|
8595
|
+
} : void 0, d = W(Le), {
|
|
8588
8596
|
elementHasLostFocus: m
|
|
8589
8597
|
} = d || {}, [v, p] = T(!1), [h, g] = T(!1);
|
|
8590
8598
|
pe(() => {
|
|
@@ -8654,7 +8662,7 @@ const {
|
|
|
8654
8662
|
return /* @__PURE__ */ n(ve, {
|
|
8655
8663
|
required: r,
|
|
8656
8664
|
...e,
|
|
8657
|
-
children: /* @__PURE__ */ n(
|
|
8665
|
+
children: /* @__PURE__ */ n(ko, {
|
|
8658
8666
|
ooui: t,
|
|
8659
8667
|
valueValidator: (i) => i ? Ei(i) : !1
|
|
8660
8668
|
})
|
|
@@ -8668,7 +8676,7 @@ const {
|
|
|
8668
8676
|
return /* @__PURE__ */ n(ve, {
|
|
8669
8677
|
required: r,
|
|
8670
8678
|
...e,
|
|
8671
|
-
children: /* @__PURE__ */ n(
|
|
8679
|
+
children: /* @__PURE__ */ n(ko, {
|
|
8672
8680
|
ooui: t,
|
|
8673
8681
|
linkPrefix: "mailto:",
|
|
8674
8682
|
valueValidator: (i) => i ? $i(i) : !1
|
|
@@ -8682,7 +8690,7 @@ const {
|
|
|
8682
8690
|
isSearching: o
|
|
8683
8691
|
} = e, {
|
|
8684
8692
|
t: s
|
|
8685
|
-
} =
|
|
8693
|
+
} = W(we);
|
|
8686
8694
|
function a(l) {
|
|
8687
8695
|
r(l.id);
|
|
8688
8696
|
}
|
|
@@ -8786,7 +8794,7 @@ function yd({
|
|
|
8786
8794
|
}) {
|
|
8787
8795
|
const {
|
|
8788
8796
|
t
|
|
8789
|
-
} =
|
|
8797
|
+
} = W(we), {
|
|
8790
8798
|
availableViews: r,
|
|
8791
8799
|
currentView: i,
|
|
8792
8800
|
setCurrentView: o,
|
|
@@ -8796,7 +8804,7 @@ function yd({
|
|
|
8796
8804
|
graphIsLoading: u,
|
|
8797
8805
|
previousView: c,
|
|
8798
8806
|
setPreviousView: f
|
|
8799
|
-
} =
|
|
8807
|
+
} = W(Xe);
|
|
8800
8808
|
return /* @__PURE__ */ H(Ke, {
|
|
8801
8809
|
wrap: !0,
|
|
8802
8810
|
children: [/* @__PURE__ */ n(Mo, {
|
|
@@ -8849,9 +8857,9 @@ function yn(e) {
|
|
|
8849
8857
|
results: l,
|
|
8850
8858
|
totalItems: u,
|
|
8851
8859
|
selectedRowItems: c
|
|
8852
|
-
} =
|
|
8860
|
+
} = W(Xe), {
|
|
8853
8861
|
t: f
|
|
8854
|
-
} =
|
|
8862
|
+
} = W(we), {
|
|
8855
8863
|
token: d
|
|
8856
8864
|
} = vd();
|
|
8857
8865
|
function m() {
|
|
@@ -8936,7 +8944,7 @@ const bd = (e) => {
|
|
|
8936
8944
|
domain: s,
|
|
8937
8945
|
formView: a,
|
|
8938
8946
|
treeView: l
|
|
8939
|
-
} = e, u = ue(), c =
|
|
8947
|
+
} = e, u = ue(), c = W(Xe), {
|
|
8940
8948
|
setResults: f = void 0,
|
|
8941
8949
|
setCurrentItemIndex: d = void 0,
|
|
8942
8950
|
currentId: m = void 0,
|
|
@@ -8956,7 +8964,7 @@ const bd = (e) => {
|
|
|
8956
8964
|
searchValues: O,
|
|
8957
8965
|
setSearchValues: C,
|
|
8958
8966
|
currentView: $
|
|
8959
|
-
} = c || {}, [
|
|
8967
|
+
} = c || {}, [R, S] = T(!0);
|
|
8960
8968
|
pe(() => {
|
|
8961
8969
|
var j;
|
|
8962
8970
|
(j = u.current) == null || j.refresh();
|
|
@@ -8968,7 +8976,7 @@ const bd = (e) => {
|
|
|
8968
8976
|
searchFilterLoading: M,
|
|
8969
8977
|
searchError: D,
|
|
8970
8978
|
offset: N,
|
|
8971
|
-
tableRefreshing:
|
|
8979
|
+
tableRefreshing: k
|
|
8972
8980
|
} = fo({
|
|
8973
8981
|
model: i,
|
|
8974
8982
|
setSearchTreeNameSearch: V,
|
|
@@ -9018,14 +9026,14 @@ const bd = (e) => {
|
|
|
9018
9026
|
searchVisible: g,
|
|
9019
9027
|
searchValues: O,
|
|
9020
9028
|
showLimitOptions: !1
|
|
9021
|
-
}),
|
|
9029
|
+
}), k ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(gn, {
|
|
9022
9030
|
ref: u,
|
|
9023
9031
|
view_id: t.view_id,
|
|
9024
9032
|
model: i,
|
|
9025
9033
|
context: o,
|
|
9026
9034
|
domain: hn(b || [], s),
|
|
9027
|
-
limit:
|
|
9028
|
-
manualIds:
|
|
9035
|
+
limit: R ? E : void 0,
|
|
9036
|
+
manualIds: R ? v == null ? void 0 : v.map((j) => j.id) : void 0
|
|
9029
9037
|
})]
|
|
9030
9038
|
});
|
|
9031
9039
|
}, xd = (e) => {
|
|
@@ -9071,7 +9079,7 @@ function Cd(e) {
|
|
|
9071
9079
|
searchText: i
|
|
9072
9080
|
} = e, {
|
|
9073
9081
|
t: o
|
|
9074
|
-
} =
|
|
9082
|
+
} = W(we), [s] = nt.useForm(), [a, l] = T(!1);
|
|
9075
9083
|
function u(f) {
|
|
9076
9084
|
t(f.search);
|
|
9077
9085
|
}
|
|
@@ -9160,42 +9168,42 @@ function Td(e) {
|
|
|
9160
9168
|
results: V,
|
|
9161
9169
|
limit: I,
|
|
9162
9170
|
totalItems: E
|
|
9163
|
-
} =
|
|
9171
|
+
} = W(Xe), {
|
|
9164
9172
|
parentContext: x = {},
|
|
9165
9173
|
treeExpandable: b,
|
|
9166
9174
|
toolbar: O
|
|
9167
9175
|
} = e, {
|
|
9168
9176
|
previewFeatures: C
|
|
9169
|
-
} =
|
|
9177
|
+
} = W(Sd), {
|
|
9170
9178
|
t: $,
|
|
9171
|
-
lang:
|
|
9172
|
-
} =
|
|
9179
|
+
lang: R
|
|
9180
|
+
} = W(we), S = W(kt), {
|
|
9173
9181
|
processAction: A
|
|
9174
9182
|
} = S || {}, [M, D] = T(!1), N = y !== void 0 && y.trim().length > 0;
|
|
9175
|
-
function
|
|
9183
|
+
function k() {
|
|
9176
9184
|
Yt({
|
|
9177
9185
|
confirmMessage: $("confirmRemove"),
|
|
9178
|
-
lang:
|
|
9186
|
+
lang: R,
|
|
9179
9187
|
onOk: () => {
|
|
9180
9188
|
j();
|
|
9181
9189
|
}
|
|
9182
9190
|
});
|
|
9183
9191
|
}
|
|
9184
9192
|
async function j() {
|
|
9185
|
-
var
|
|
9193
|
+
var U;
|
|
9186
9194
|
try {
|
|
9187
9195
|
s == null || s(!0), await B.getHandler().delete({
|
|
9188
9196
|
model: c,
|
|
9189
9197
|
ids: o.map((L) => L.id)
|
|
9190
|
-
}), d == null || d(void 0), m == null || m(void 0), (
|
|
9198
|
+
}), d == null || d(void 0), m == null || m(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9191
9199
|
} catch (L) {
|
|
9192
9200
|
Ye(L);
|
|
9193
9201
|
} finally {
|
|
9194
9202
|
s == null || s(!1);
|
|
9195
9203
|
}
|
|
9196
9204
|
}
|
|
9197
|
-
async function
|
|
9198
|
-
var
|
|
9205
|
+
async function q() {
|
|
9206
|
+
var U;
|
|
9199
9207
|
try {
|
|
9200
9208
|
u == null || u(!0);
|
|
9201
9209
|
const L = o[0].id;
|
|
@@ -9205,16 +9213,16 @@ function Td(e) {
|
|
|
9205
9213
|
context: {
|
|
9206
9214
|
...x
|
|
9207
9215
|
}
|
|
9208
|
-
}) && ((
|
|
9216
|
+
}) && ((U = f == null ? void 0 : f.current) == null || U.refreshResults());
|
|
9209
9217
|
} catch (L) {
|
|
9210
9218
|
Ye(L);
|
|
9211
9219
|
} finally {
|
|
9212
9220
|
u == null || u(!1);
|
|
9213
9221
|
}
|
|
9214
9222
|
}
|
|
9215
|
-
function K(
|
|
9223
|
+
function K(U) {
|
|
9216
9224
|
A == null || A({
|
|
9217
|
-
actionData:
|
|
9225
|
+
actionData: U,
|
|
9218
9226
|
values: {
|
|
9219
9227
|
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
9220
9228
|
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
@@ -9237,8 +9245,8 @@ function Td(e) {
|
|
|
9237
9245
|
children: [/* @__PURE__ */ n(Cd, {
|
|
9238
9246
|
disabled: l || a || F,
|
|
9239
9247
|
searchText: y,
|
|
9240
|
-
onSearch: (
|
|
9241
|
-
|
|
9248
|
+
onSearch: (U) => {
|
|
9249
|
+
U && U.trim().length > 0 ? g == null || g(U) : g == null || g(void 0);
|
|
9242
9250
|
}
|
|
9243
9251
|
}), !b && /* @__PURE__ */ n(Mo, {
|
|
9244
9252
|
icon: /* @__PURE__ */ n(qr, {
|
|
@@ -9260,13 +9268,13 @@ function Td(e) {
|
|
|
9260
9268
|
tooltip: $("duplicate"),
|
|
9261
9269
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || F,
|
|
9262
9270
|
loading: l,
|
|
9263
|
-
onClick:
|
|
9271
|
+
onClick: q
|
|
9264
9272
|
}), /* @__PURE__ */ n(Ge, {
|
|
9265
9273
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
9266
9274
|
tooltip: $("delete"),
|
|
9267
9275
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9268
9276
|
loading: a,
|
|
9269
|
-
onClick:
|
|
9277
|
+
onClick: k
|
|
9270
9278
|
}), $t()]
|
|
9271
9279
|
}), /* @__PURE__ */ n(Ge, {
|
|
9272
9280
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
@@ -9274,7 +9282,7 @@ function Td(e) {
|
|
|
9274
9282
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9275
9283
|
loading: !1,
|
|
9276
9284
|
onClick: () => {
|
|
9277
|
-
|
|
9285
|
+
Ro(c, o[0].id, $);
|
|
9278
9286
|
}
|
|
9279
9287
|
}), /* @__PURE__ */ n(Ge, {
|
|
9280
9288
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
@@ -9282,15 +9290,15 @@ function Td(e) {
|
|
|
9282
9290
|
disabled: l || a || F,
|
|
9283
9291
|
loading: !1,
|
|
9284
9292
|
onClick: () => {
|
|
9285
|
-
var
|
|
9286
|
-
(
|
|
9293
|
+
var U;
|
|
9294
|
+
(U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9287
9295
|
}
|
|
9288
9296
|
}), !b && /* @__PURE__ */ H(ee, {
|
|
9289
9297
|
children: [$t(), /* @__PURE__ */ n(Zn, {
|
|
9290
9298
|
currentView: r,
|
|
9291
9299
|
availableViews: t,
|
|
9292
|
-
onChangeView: (
|
|
9293
|
-
_ == null || _(r), i == null || i(
|
|
9300
|
+
onChangeView: (U) => {
|
|
9301
|
+
_ == null || _(r), i == null || i(U);
|
|
9294
9302
|
},
|
|
9295
9303
|
previousView: w,
|
|
9296
9304
|
disabled: F
|
|
@@ -9300,19 +9308,19 @@ function Td(e) {
|
|
|
9300
9308
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9301
9309
|
tooltip: $("actions"),
|
|
9302
9310
|
items: O == null ? void 0 : O.action,
|
|
9303
|
-
onItemClick: (
|
|
9304
|
-
!
|
|
9311
|
+
onItemClick: (U) => {
|
|
9312
|
+
!U || K(U);
|
|
9305
9313
|
}
|
|
9306
9314
|
}), /* @__PURE__ */ n(_t, {
|
|
9307
9315
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9308
9316
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
|
|
9309
9317
|
tooltip: $("reports"),
|
|
9310
9318
|
items: O == null ? void 0 : O.print,
|
|
9311
|
-
onItemClick: (
|
|
9312
|
-
!
|
|
9313
|
-
...
|
|
9319
|
+
onItemClick: (U) => {
|
|
9320
|
+
!U || K({
|
|
9321
|
+
...U,
|
|
9314
9322
|
datas: {
|
|
9315
|
-
...
|
|
9323
|
+
...U.datas || {},
|
|
9316
9324
|
ids: o.map((L) => L.id)
|
|
9317
9325
|
}
|
|
9318
9326
|
});
|
|
@@ -9355,8 +9363,8 @@ function Td(e) {
|
|
|
9355
9363
|
id: "export",
|
|
9356
9364
|
name: $("advancedExport")
|
|
9357
9365
|
}],
|
|
9358
|
-
onItemClick: (
|
|
9359
|
-
if (
|
|
9366
|
+
onItemClick: (U) => {
|
|
9367
|
+
if (U.id === "print_screen") {
|
|
9360
9368
|
let L = (o == null ? void 0 : o.map((P) => P.id)) || [];
|
|
9361
9369
|
L.length === 0 && (L = (V == null ? void 0 : V.map((P) => P.id)) || []), K({
|
|
9362
9370
|
id: -1,
|
|
@@ -9375,7 +9383,7 @@ function Td(e) {
|
|
|
9375
9383
|
disabled: l || a || F || N
|
|
9376
9384
|
}), /* @__PURE__ */ n(zc, {
|
|
9377
9385
|
visible: M,
|
|
9378
|
-
locale:
|
|
9386
|
+
locale: R,
|
|
9379
9387
|
onClose: () => D(!1),
|
|
9380
9388
|
model: c,
|
|
9381
9389
|
domain: hn(((J = f == null ? void 0 : f.current) == null ? void 0 : J.getDomain()) || [], v || []),
|
|
@@ -9411,7 +9419,7 @@ const Fd = (e) => {
|
|
|
9411
9419
|
} = e, {
|
|
9412
9420
|
currentView: p,
|
|
9413
9421
|
setPreviousView: h
|
|
9414
|
-
} =
|
|
9422
|
+
} = W(Xe);
|
|
9415
9423
|
return t ? /* @__PURE__ */ H(ee, {
|
|
9416
9424
|
children: [/* @__PURE__ */ n(yn, {
|
|
9417
9425
|
children: /* @__PURE__ */ n(Td, {
|
|
@@ -9464,9 +9472,9 @@ function _d() {
|
|
|
9464
9472
|
dashboardRef: t,
|
|
9465
9473
|
moveItemsEnabled: r,
|
|
9466
9474
|
setMoveItemsEnabled: i
|
|
9467
|
-
} =
|
|
9475
|
+
} = W(Xn), {
|
|
9468
9476
|
t: o
|
|
9469
|
-
} =
|
|
9477
|
+
} = W(we);
|
|
9470
9478
|
return /* @__PURE__ */ H(Ke, {
|
|
9471
9479
|
wrap: !0,
|
|
9472
9480
|
children: [/* @__PURE__ */ n(Ge, {
|
|
@@ -9509,7 +9517,7 @@ function Id() {
|
|
|
9509
9517
|
const Dd = (e) => {
|
|
9510
9518
|
const {
|
|
9511
9519
|
dashboardData: t
|
|
9512
|
-
} = e, r = ue(), i =
|
|
9520
|
+
} = e, r = ue(), i = W(ot), {
|
|
9513
9521
|
openShortcut: o
|
|
9514
9522
|
} = i || {};
|
|
9515
9523
|
return t ? /* @__PURE__ */ H(Od, {
|
|
@@ -9560,14 +9568,14 @@ function Ad(e, t) {
|
|
|
9560
9568
|
action_type: p,
|
|
9561
9569
|
treeExpandable: h = !1,
|
|
9562
9570
|
limit: g
|
|
9563
|
-
} = e, [y, F] = T(), [_, w] = T([]), [V, I] = T(!0), E = m || void 0, [x, b] = T(E), [O, C] = T([]), [$,
|
|
9571
|
+
} = e, [y, F] = T(), [_, w] = T([]), [V, I] = T(!0), E = m || void 0, [x, b] = T(E), [O, C] = T([]), [$, R] = T(), [S, A] = T([]), [M, D] = T(), [N, k] = T(0), [j, q] = T(!1), [K, J] = T(!1), [U, L] = T(), {
|
|
9564
9572
|
t: P
|
|
9565
|
-
} =
|
|
9573
|
+
} = W(we), z = ue(), oe = ue(), ce = W(ot), {
|
|
9566
9574
|
setCurrentView: Z,
|
|
9567
9575
|
setCurrentId: X,
|
|
9568
9576
|
tabs: fe,
|
|
9569
9577
|
activeKey: xe,
|
|
9570
|
-
openAction:
|
|
9578
|
+
openAction: ke,
|
|
9571
9579
|
onRemoveTab: _e
|
|
9572
9580
|
} = ce || {};
|
|
9573
9581
|
Li("ctrl+g,command+g", (te) => {
|
|
@@ -9580,7 +9588,7 @@ function Ad(e, t) {
|
|
|
9580
9588
|
F(te), Z == null || Z(te);
|
|
9581
9589
|
}
|
|
9582
9590
|
wt(t, () => ({
|
|
9583
|
-
canWeClose:
|
|
9591
|
+
canWeClose: Re
|
|
9584
9592
|
}));
|
|
9585
9593
|
const be = async () => {
|
|
9586
9594
|
I(!0);
|
|
@@ -9659,18 +9667,18 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9659
9667
|
};
|
|
9660
9668
|
l({
|
|
9661
9669
|
tabKey: u,
|
|
9662
|
-
canWeClose:
|
|
9670
|
+
canWeClose: Re
|
|
9663
9671
|
}), pe(() => {
|
|
9664
9672
|
const te = _.find((Ne) => Ne.type === "tree"), Ie = _.find((Ne) => c.id ? Ne.type === c.type && Ne.view_id === c.id : Ne.type === c.type);
|
|
9665
|
-
se(Ie || te), m ? X == null || X(E) : (de(void 0),
|
|
9673
|
+
se(Ie || te), m ? X == null || X(E) : (de(void 0), R(void 0)), be();
|
|
9666
9674
|
}, [i, s, m]), pe(() => {
|
|
9667
9675
|
xe === u && (X == null || X(x), Z == null || Z(y));
|
|
9668
9676
|
}, [fe, xe]);
|
|
9669
|
-
async function
|
|
9677
|
+
async function Re() {
|
|
9670
9678
|
return y && y.type === "form" ? await z.current.cancelUnsavedChanges() : !0;
|
|
9671
9679
|
}
|
|
9672
9680
|
async function Te() {
|
|
9673
|
-
xe === u && (y.type === "form" && !await z.current.cancelUnsavedChanges() ||
|
|
9681
|
+
xe === u && (y.type === "form" && !await z.current.cancelUnsavedChanges() || q(!0));
|
|
9674
9682
|
}
|
|
9675
9683
|
async function Me(te) {
|
|
9676
9684
|
var Ce;
|
|
@@ -9687,14 +9695,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9687
9695
|
} catch {
|
|
9688
9696
|
}
|
|
9689
9697
|
if (!Ne) {
|
|
9690
|
-
J(!1),
|
|
9698
|
+
J(!1), q(!1), lt(P("idNotFound"));
|
|
9691
9699
|
return;
|
|
9692
9700
|
}
|
|
9693
9701
|
} else
|
|
9694
9702
|
Ne = S[Ie];
|
|
9695
|
-
J(!1),
|
|
9703
|
+
J(!1), q(!1);
|
|
9696
9704
|
const ye = s.find((De) => De[1] === "form");
|
|
9697
|
-
|
|
9705
|
+
ke({
|
|
9698
9706
|
domain: [],
|
|
9699
9707
|
context: o,
|
|
9700
9708
|
model: i,
|
|
@@ -9726,7 +9734,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9726
9734
|
forcedValues: d,
|
|
9727
9735
|
results: S,
|
|
9728
9736
|
setResults: A,
|
|
9729
|
-
setCurrentItemIndex:
|
|
9737
|
+
setCurrentItemIndex: R
|
|
9730
9738
|
}, `${te.type}-${te.view_id}`);
|
|
9731
9739
|
case "tree":
|
|
9732
9740
|
return /* @__PURE__ */ n(Fd, {
|
|
@@ -9738,10 +9746,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9738
9746
|
formView: _.find((Ie) => Ie.type === "form"),
|
|
9739
9747
|
treeView: te,
|
|
9740
9748
|
searchTreeRef: oe,
|
|
9741
|
-
searchTreeNameSearch:
|
|
9749
|
+
searchTreeNameSearch: U,
|
|
9742
9750
|
availableViews: _,
|
|
9743
9751
|
results: S,
|
|
9744
|
-
setCurrentItemIndex:
|
|
9752
|
+
setCurrentItemIndex: R,
|
|
9745
9753
|
setCurrentId: de,
|
|
9746
9754
|
setCurrentView: se
|
|
9747
9755
|
}, `${te.type}-${te.view_id}`);
|
|
@@ -9781,7 +9789,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9781
9789
|
onNewClicked: Be,
|
|
9782
9790
|
currentId: x,
|
|
9783
9791
|
setCurrentId: de,
|
|
9784
|
-
setCurrentItemIndex:
|
|
9792
|
+
setCurrentItemIndex: R,
|
|
9785
9793
|
currentItemIndex: $,
|
|
9786
9794
|
results: S,
|
|
9787
9795
|
setResults: A,
|
|
@@ -9789,11 +9797,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9789
9797
|
sorter: M,
|
|
9790
9798
|
setSorter: D,
|
|
9791
9799
|
totalItems: N,
|
|
9792
|
-
setTotalItems:
|
|
9800
|
+
setTotalItems: k,
|
|
9793
9801
|
selectedRowItems: O,
|
|
9794
9802
|
setSelectedRowItems: C,
|
|
9795
9803
|
setSearchTreeNameSearch: L,
|
|
9796
|
-
searchTreeNameSearch:
|
|
9804
|
+
searchTreeNameSearch: U,
|
|
9797
9805
|
goToResourceId: Me,
|
|
9798
9806
|
limit: g,
|
|
9799
9807
|
children: [Ze(), /* @__PURE__ */ n(pd, {
|
|
@@ -9801,13 +9809,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9801
9809
|
onIdSubmitted: Me,
|
|
9802
9810
|
isSearching: K,
|
|
9803
9811
|
onCancel: () => {
|
|
9804
|
-
|
|
9812
|
+
q(!1);
|
|
9805
9813
|
}
|
|
9806
9814
|
})]
|
|
9807
9815
|
}) : null;
|
|
9808
9816
|
}
|
|
9809
9817
|
const Eo = vt(Ad);
|
|
9810
|
-
async function
|
|
9818
|
+
async function Rd({
|
|
9811
9819
|
actionId: e,
|
|
9812
9820
|
rootContext: t = {},
|
|
9813
9821
|
globalValues: r = {}
|
|
@@ -9859,7 +9867,7 @@ async function kd({
|
|
|
9859
9867
|
treeExpandable: v
|
|
9860
9868
|
};
|
|
9861
9869
|
}
|
|
9862
|
-
const
|
|
9870
|
+
const kd = Hi(Bi), Md = (e) => {
|
|
9863
9871
|
const {
|
|
9864
9872
|
children: t = [],
|
|
9865
9873
|
onPositionItemsChanged: r
|
|
@@ -9873,7 +9881,7 @@ const Rd = Hi(Bi), Md = (e) => {
|
|
|
9873
9881
|
children: o
|
|
9874
9882
|
}, a);
|
|
9875
9883
|
});
|
|
9876
|
-
return /* @__PURE__ */ n(
|
|
9884
|
+
return /* @__PURE__ */ n(kd, {
|
|
9877
9885
|
className: "layout",
|
|
9878
9886
|
cols: {
|
|
9879
9887
|
lg: 12,
|
|
@@ -9969,13 +9977,13 @@ function Pd(e) {
|
|
|
9969
9977
|
domain: s = [],
|
|
9970
9978
|
visible: a = !0,
|
|
9971
9979
|
parentContext: l = {}
|
|
9972
|
-
} = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [F, _] = T(1), [w, V] = T(0), I = ue(Nd), E = ue([]), [x, b] = T(0), [O, C] = T([]), [$,
|
|
9973
|
-
|
|
9974
|
-
},
|
|
9980
|
+
} = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [F, _] = T(1), [w, V] = T(0), I = ue(Nd), E = ue([]), [x, b] = T(0), [O, C] = T([]), [$, R] = T(void 0), [S, A] = T(), [M, D] = T(), [N, k] = T(), [j, q] = T(!1), K = ue([]), J = (X) => {
|
|
9981
|
+
q(!0), _(X), V((X - 1) * I.current);
|
|
9982
|
+
}, U = async () => {
|
|
9975
9983
|
const X = K.current.length > 0 ? K.current : s, fe = hn(E.current, X), {
|
|
9976
9984
|
colors: xe
|
|
9977
9985
|
} = Ft(p), {
|
|
9978
|
-
totalItems:
|
|
9986
|
+
totalItems: ke,
|
|
9979
9987
|
results: _e,
|
|
9980
9988
|
attrsEvaluated: de
|
|
9981
9989
|
} = await B.getHandler().searchForTree({
|
|
@@ -9989,7 +9997,7 @@ function Pd(e) {
|
|
|
9989
9997
|
colors: xe
|
|
9990
9998
|
}
|
|
9991
9999
|
});
|
|
9992
|
-
|
|
10000
|
+
R(Qt(de));
|
|
9993
10001
|
const se = Ot({
|
|
9994
10002
|
resultsToSort: _e,
|
|
9995
10003
|
sorter: S,
|
|
@@ -9998,12 +10006,12 @@ function Pd(e) {
|
|
|
9998
10006
|
...g.fields
|
|
9999
10007
|
}
|
|
10000
10008
|
});
|
|
10001
|
-
|
|
10002
|
-
const be = await
|
|
10009
|
+
q(!1), C(se);
|
|
10010
|
+
const be = await ke;
|
|
10003
10011
|
b(be);
|
|
10004
10012
|
}, L = async () => {
|
|
10005
10013
|
try {
|
|
10006
|
-
|
|
10014
|
+
q(!0), await U();
|
|
10007
10015
|
} catch (X) {
|
|
10008
10016
|
D(JSON.stringify(X));
|
|
10009
10017
|
}
|
|
@@ -10012,11 +10020,11 @@ function Pd(e) {
|
|
|
10012
10020
|
!f || a && L();
|
|
10013
10021
|
}, [F, w, f, a]);
|
|
10014
10022
|
const P = async (X) => {
|
|
10015
|
-
d(!1), c(!0),
|
|
10023
|
+
d(!1), c(!0), k(void 0);
|
|
10016
10024
|
try {
|
|
10017
10025
|
X === "action" ? await z() : await oe(), d(!0);
|
|
10018
10026
|
} catch (fe) {
|
|
10019
|
-
|
|
10027
|
+
k(fe);
|
|
10020
10028
|
} finally {
|
|
10021
10029
|
c(!1);
|
|
10022
10030
|
}
|
|
@@ -10139,7 +10147,7 @@ function Bd(e, t) {
|
|
|
10139
10147
|
setIsLoading: m,
|
|
10140
10148
|
openAction: v,
|
|
10141
10149
|
moveItemsEnabled: p
|
|
10142
|
-
} =
|
|
10150
|
+
} = W(Xn), h = ue(), g = ue();
|
|
10143
10151
|
pe(() => {
|
|
10144
10152
|
y();
|
|
10145
10153
|
}, [r, o, i]), wt(t, () => ({
|
|
@@ -10157,8 +10165,8 @@ function Bd(e, t) {
|
|
|
10157
10165
|
items: C,
|
|
10158
10166
|
model: O,
|
|
10159
10167
|
context: i
|
|
10160
|
-
}),
|
|
10161
|
-
l(
|
|
10168
|
+
}), R = await V($);
|
|
10169
|
+
l(R), c(!1), m(!1);
|
|
10162
10170
|
} catch (x) {
|
|
10163
10171
|
d(JSON.stringify(x));
|
|
10164
10172
|
}
|
|
@@ -10209,13 +10217,13 @@ function Bd(e, t) {
|
|
|
10209
10217
|
values: C
|
|
10210
10218
|
} = O;
|
|
10211
10219
|
if (C.action_id && C.action_id.length > 0) {
|
|
10212
|
-
const $ = parseInt(C.action_id[0], 10),
|
|
10220
|
+
const $ = parseInt(C.action_id[0], 10), R = await Rd({
|
|
10213
10221
|
actionId: $,
|
|
10214
10222
|
rootContext: i
|
|
10215
10223
|
});
|
|
10216
10224
|
b.push({
|
|
10217
10225
|
...O,
|
|
10218
|
-
actionData:
|
|
10226
|
+
actionData: R
|
|
10219
10227
|
});
|
|
10220
10228
|
}
|
|
10221
10229
|
}
|
|
@@ -10224,8 +10232,8 @@ function Bd(e, t) {
|
|
|
10224
10232
|
async function I(x) {
|
|
10225
10233
|
if (!p)
|
|
10226
10234
|
return;
|
|
10227
|
-
const b = x.filter((
|
|
10228
|
-
const S = a.find((M) => M.id ===
|
|
10235
|
+
const b = x.filter((R) => {
|
|
10236
|
+
const S = a.find((M) => M.id === R.id);
|
|
10229
10237
|
if (!S)
|
|
10230
10238
|
return !1;
|
|
10231
10239
|
if (!S.position)
|
|
@@ -10234,21 +10242,21 @@ function Bd(e, t) {
|
|
|
10234
10242
|
...JSON.parse(S.position.replace(/'/g, '"')),
|
|
10235
10243
|
id: S.id
|
|
10236
10244
|
};
|
|
10237
|
-
return JSON.stringify(
|
|
10245
|
+
return JSON.stringify(R) !== JSON.stringify(A);
|
|
10238
10246
|
});
|
|
10239
10247
|
if (b.length === 0)
|
|
10240
10248
|
return;
|
|
10241
|
-
const C = a.filter((
|
|
10249
|
+
const C = a.filter((R) => b.map((S) => S.id).includes(R.id)).map((R) => {
|
|
10242
10250
|
const S = {
|
|
10243
|
-
...b.find((A) => A.id ===
|
|
10251
|
+
...b.find((A) => A.id === R.id)
|
|
10244
10252
|
};
|
|
10245
10253
|
return delete S.id, {
|
|
10246
|
-
...
|
|
10254
|
+
...R
|
|
10247
10255
|
}, {
|
|
10248
|
-
...
|
|
10256
|
+
...R,
|
|
10249
10257
|
operation: "pendingUpdate",
|
|
10250
10258
|
values: {
|
|
10251
|
-
...
|
|
10259
|
+
...R.values,
|
|
10252
10260
|
position: JSON.stringify(S).replace(/"/g, "'")
|
|
10253
10261
|
}
|
|
10254
10262
|
};
|
|
@@ -10282,24 +10290,24 @@ function Bd(e, t) {
|
|
|
10282
10290
|
values: C
|
|
10283
10291
|
} = x, {
|
|
10284
10292
|
position: $,
|
|
10285
|
-
id:
|
|
10293
|
+
id: R
|
|
10286
10294
|
} = C, {
|
|
10287
10295
|
actionId: S,
|
|
10288
10296
|
actionType: A,
|
|
10289
10297
|
key: M,
|
|
10290
10298
|
title: D,
|
|
10291
10299
|
views: N,
|
|
10292
|
-
model:
|
|
10300
|
+
model: k,
|
|
10293
10301
|
context: j,
|
|
10294
|
-
domain:
|
|
10302
|
+
domain: q,
|
|
10295
10303
|
initialView: K,
|
|
10296
10304
|
limit: J
|
|
10297
10305
|
} = O;
|
|
10298
|
-
let
|
|
10306
|
+
let U = {};
|
|
10299
10307
|
try {
|
|
10300
|
-
|
|
10308
|
+
U = JSON.parse($.replace(/'/g, '"'));
|
|
10301
10309
|
} catch {
|
|
10302
|
-
|
|
10310
|
+
U = {
|
|
10303
10311
|
x: b * 2,
|
|
10304
10312
|
y: 0,
|
|
10305
10313
|
w: 2,
|
|
@@ -10310,20 +10318,20 @@ function Bd(e, t) {
|
|
|
10310
10318
|
if ((K == null ? void 0 : K.type) === "graph")
|
|
10311
10319
|
L = /* @__PURE__ */ n(gn, {
|
|
10312
10320
|
view_id: N.filter((oe) => oe[1] === "graph")[0][0],
|
|
10313
|
-
model:
|
|
10321
|
+
model: k,
|
|
10314
10322
|
context: j,
|
|
10315
|
-
domain:
|
|
10323
|
+
domain: q,
|
|
10316
10324
|
limit: J
|
|
10317
10325
|
});
|
|
10318
10326
|
else if ((K == null ? void 0 : K.type) === "form")
|
|
10319
10327
|
L = /* @__PURE__ */ n(Hd, {
|
|
10320
|
-
model:
|
|
10321
|
-
actionDomain:
|
|
10328
|
+
model: k,
|
|
10329
|
+
actionDomain: q
|
|
10322
10330
|
});
|
|
10323
10331
|
else if ((K == null ? void 0 : K.type) === "tree")
|
|
10324
10332
|
L = /* @__PURE__ */ n(Pd, {
|
|
10325
|
-
model:
|
|
10326
|
-
domain:
|
|
10333
|
+
model: k,
|
|
10334
|
+
domain: q,
|
|
10327
10335
|
view_id: N.filter((oe) => oe[1] === "tree")[0][0],
|
|
10328
10336
|
onRowClicked: (oe) => {
|
|
10329
10337
|
const ce = N.find((Z) => {
|
|
@@ -10334,12 +10342,12 @@ function Bd(e, t) {
|
|
|
10334
10342
|
const [Z, X] = ce, {
|
|
10335
10343
|
actionId: fe,
|
|
10336
10344
|
actionType: xe,
|
|
10337
|
-
title:
|
|
10345
|
+
title: ke,
|
|
10338
10346
|
model: _e
|
|
10339
10347
|
} = O, de = {
|
|
10340
10348
|
action_id: fe,
|
|
10341
10349
|
action_type: xe,
|
|
10342
|
-
name:
|
|
10350
|
+
name: ke,
|
|
10343
10351
|
res_id: oe.id,
|
|
10344
10352
|
res_model: _e,
|
|
10345
10353
|
view_id: Z,
|
|
@@ -10360,9 +10368,9 @@ function Bd(e, t) {
|
|
|
10360
10368
|
tabKey: M,
|
|
10361
10369
|
title: D,
|
|
10362
10370
|
views: N,
|
|
10363
|
-
model:
|
|
10371
|
+
model: k,
|
|
10364
10372
|
context: j,
|
|
10365
|
-
domain:
|
|
10373
|
+
domain: q,
|
|
10366
10374
|
setCanWeClose: () => {
|
|
10367
10375
|
},
|
|
10368
10376
|
initialView: oe,
|
|
@@ -10392,13 +10400,13 @@ function Bd(e, t) {
|
|
|
10392
10400
|
};
|
|
10393
10401
|
}
|
|
10394
10402
|
return /* @__PURE__ */ n(Ld, {
|
|
10395
|
-
id:
|
|
10403
|
+
id: R,
|
|
10396
10404
|
title: D,
|
|
10397
|
-
parms:
|
|
10405
|
+
parms: U,
|
|
10398
10406
|
action: P,
|
|
10399
10407
|
openAction: v,
|
|
10400
10408
|
children: L
|
|
10401
|
-
},
|
|
10409
|
+
}, R);
|
|
10402
10410
|
})
|
|
10403
10411
|
});
|
|
10404
10412
|
}
|
|
@@ -10426,7 +10434,7 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10426
10434
|
readOnly: p,
|
|
10427
10435
|
field: h,
|
|
10428
10436
|
columns: g
|
|
10429
|
-
} = r, y =
|
|
10437
|
+
} = r, y = W(Le), {
|
|
10430
10438
|
getContext: F
|
|
10431
10439
|
} = y || {};
|
|
10432
10440
|
xt(() => {
|
|
@@ -10443,7 +10451,7 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10443
10451
|
if (r.domain) {
|
|
10444
10452
|
const b = await B.getHandler().evalDomain({
|
|
10445
10453
|
domain: r.domain,
|
|
10446
|
-
values:
|
|
10454
|
+
values: Rt({
|
|
10447
10455
|
fields: y == null ? void 0 : y.getFields(),
|
|
10448
10456
|
values: y.getPlainValues()
|
|
10449
10457
|
}),
|
|
@@ -10463,9 +10471,9 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10463
10471
|
}
|
|
10464
10472
|
})).map((C) => {
|
|
10465
10473
|
const $ = C[h];
|
|
10466
|
-
let
|
|
10467
|
-
return Array.isArray($) && (
|
|
10468
|
-
label:
|
|
10474
|
+
let R = $;
|
|
10475
|
+
return Array.isArray($) && (R = $[1]), {
|
|
10476
|
+
label: R,
|
|
10469
10477
|
value: C.id
|
|
10470
10478
|
};
|
|
10471
10479
|
});
|
|
@@ -10644,7 +10652,7 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10644
10652
|
} = e, {
|
|
10645
10653
|
selectionValues: i,
|
|
10646
10654
|
errorField: o
|
|
10647
|
-
} = t, s =
|
|
10655
|
+
} = t, s = W(Le), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(r);
|
|
10648
10656
|
let u = "process", c = "";
|
|
10649
10657
|
return o && (c = s.getFieldValue(o), c && (u = "error")), /* @__PURE__ */ n(rr, {
|
|
10650
10658
|
current: l,
|
|
@@ -10660,7 +10668,7 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10660
10668
|
} = e, {
|
|
10661
10669
|
lang: r,
|
|
10662
10670
|
height: i
|
|
10663
|
-
} = t, o =
|
|
10671
|
+
} = t, o = W(Le), {
|
|
10664
10672
|
elementHasLostFocus: s
|
|
10665
10673
|
} = o || {};
|
|
10666
10674
|
return /* @__PURE__ */ n(ve, {
|
|
@@ -10681,7 +10689,7 @@ const jd = vt(Bd), Kd = (e) => {
|
|
|
10681
10689
|
function nu() {
|
|
10682
10690
|
const {
|
|
10683
10691
|
t: e
|
|
10684
|
-
} =
|
|
10692
|
+
} = W(we);
|
|
10685
10693
|
return /* @__PURE__ */ n(eu, {
|
|
10686
10694
|
className: "m-5 select-none",
|
|
10687
10695
|
children: /* @__PURE__ */ n(tu, {
|
|
@@ -10735,7 +10743,7 @@ function ru(e, t) {
|
|
|
10735
10743
|
Ye("Action type not supported");
|
|
10736
10744
|
return;
|
|
10737
10745
|
}
|
|
10738
|
-
const [C, $] = w.split(","),
|
|
10746
|
+
const [C, $] = w.split(","), R = parseInt($), S = yt({
|
|
10739
10747
|
context: O.context,
|
|
10740
10748
|
values: i,
|
|
10741
10749
|
fields: {}
|
|
@@ -10750,9 +10758,9 @@ function ru(e, t) {
|
|
|
10750
10758
|
res_model: M,
|
|
10751
10759
|
views: D,
|
|
10752
10760
|
name: N,
|
|
10753
|
-
target:
|
|
10761
|
+
target: k,
|
|
10754
10762
|
view_type: j,
|
|
10755
|
-
limit:
|
|
10763
|
+
limit: q
|
|
10756
10764
|
} = O, K = j === "tree", J = [];
|
|
10757
10765
|
for (const L of D) {
|
|
10758
10766
|
const [P, z] = L;
|
|
@@ -10775,16 +10783,16 @@ function ru(e, t) {
|
|
|
10775
10783
|
J.push([oe, z]);
|
|
10776
10784
|
}
|
|
10777
10785
|
}
|
|
10778
|
-
let
|
|
10786
|
+
let U;
|
|
10779
10787
|
if (E) {
|
|
10780
10788
|
const [L, P] = J.find(([z, oe]) => oe === E);
|
|
10781
|
-
|
|
10789
|
+
U = {
|
|
10782
10790
|
id: L,
|
|
10783
10791
|
type: P
|
|
10784
10792
|
};
|
|
10785
10793
|
} else {
|
|
10786
10794
|
const [L, P] = J[0];
|
|
10787
|
-
|
|
10795
|
+
U = {
|
|
10788
10796
|
id: L,
|
|
10789
10797
|
type: P
|
|
10790
10798
|
};
|
|
@@ -10798,15 +10806,15 @@ function ru(e, t) {
|
|
|
10798
10806
|
model: M,
|
|
10799
10807
|
views: J,
|
|
10800
10808
|
title: N,
|
|
10801
|
-
target:
|
|
10802
|
-
initialView:
|
|
10809
|
+
target: k,
|
|
10810
|
+
initialView: U,
|
|
10803
10811
|
action_type: C,
|
|
10804
|
-
action_id:
|
|
10812
|
+
action_id: R,
|
|
10805
10813
|
values: V,
|
|
10806
10814
|
forced_values: I,
|
|
10807
10815
|
res_id: x,
|
|
10808
10816
|
treeExpandable: K,
|
|
10809
|
-
limit:
|
|
10817
|
+
limit: q
|
|
10810
10818
|
});
|
|
10811
10819
|
}
|
|
10812
10820
|
function h({
|
|
@@ -10836,13 +10844,13 @@ function ru(e, t) {
|
|
|
10836
10844
|
context: O,
|
|
10837
10845
|
domain: C,
|
|
10838
10846
|
views: $,
|
|
10839
|
-
target:
|
|
10847
|
+
target: R,
|
|
10840
10848
|
string: S,
|
|
10841
10849
|
limit: A
|
|
10842
10850
|
} = w, [M, D] = $[0], N = {
|
|
10843
10851
|
id: M,
|
|
10844
10852
|
type: D
|
|
10845
|
-
},
|
|
10853
|
+
}, k = yt({
|
|
10846
10854
|
context: O,
|
|
10847
10855
|
values: {
|
|
10848
10856
|
...I,
|
|
@@ -10851,7 +10859,7 @@ function ru(e, t) {
|
|
|
10851
10859
|
fields: V
|
|
10852
10860
|
}), j = C ? await B.getHandler().evalDomain({
|
|
10853
10861
|
domain: C,
|
|
10854
|
-
values:
|
|
10862
|
+
values: Rt({
|
|
10855
10863
|
fields: V,
|
|
10856
10864
|
values: {
|
|
10857
10865
|
...I,
|
|
@@ -10861,16 +10869,16 @@ function ru(e, t) {
|
|
|
10861
10869
|
fields: V,
|
|
10862
10870
|
context: {
|
|
10863
10871
|
...o,
|
|
10864
|
-
...
|
|
10872
|
+
...k
|
|
10865
10873
|
}
|
|
10866
10874
|
}) : [];
|
|
10867
10875
|
_({
|
|
10868
10876
|
model: b,
|
|
10869
|
-
target:
|
|
10877
|
+
target: R,
|
|
10870
10878
|
views: $,
|
|
10871
10879
|
context: {
|
|
10872
10880
|
...o,
|
|
10873
|
-
...
|
|
10881
|
+
...k
|
|
10874
10882
|
},
|
|
10875
10883
|
domain: j,
|
|
10876
10884
|
title: S,
|
|
@@ -10901,24 +10909,24 @@ function ru(e, t) {
|
|
|
10901
10909
|
...C
|
|
10902
10910
|
}
|
|
10903
10911
|
}) : [], {
|
|
10904
|
-
res_model:
|
|
10912
|
+
res_model: R,
|
|
10905
10913
|
views: S,
|
|
10906
10914
|
name: A,
|
|
10907
10915
|
target: M,
|
|
10908
10916
|
view_type: D,
|
|
10909
10917
|
limit: N
|
|
10910
|
-
} = O,
|
|
10911
|
-
for (const
|
|
10912
|
-
const [L, P] =
|
|
10918
|
+
} = O, k = D === "tree", j = [];
|
|
10919
|
+
for (const U of S) {
|
|
10920
|
+
const [L, P] = U;
|
|
10913
10921
|
if (L)
|
|
10914
|
-
j.push(
|
|
10922
|
+
j.push(U);
|
|
10915
10923
|
else if (P === "dashboard")
|
|
10916
10924
|
j.push([void 0, "dashboard"]);
|
|
10917
10925
|
else {
|
|
10918
10926
|
const {
|
|
10919
10927
|
view_id: z
|
|
10920
10928
|
} = await B.getHandler().getView({
|
|
10921
|
-
model:
|
|
10929
|
+
model: R,
|
|
10922
10930
|
type: P,
|
|
10923
10931
|
id: L,
|
|
10924
10932
|
context: {
|
|
@@ -10929,14 +10937,14 @@ function ru(e, t) {
|
|
|
10929
10937
|
j.push([z, P]);
|
|
10930
10938
|
}
|
|
10931
10939
|
}
|
|
10932
|
-
let
|
|
10940
|
+
let q, K;
|
|
10933
10941
|
if (x == null) {
|
|
10934
|
-
const
|
|
10935
|
-
|
|
10942
|
+
const U = j.find((L) => L[0] === void 0);
|
|
10943
|
+
q = void 0, K = U[1];
|
|
10936
10944
|
} else
|
|
10937
|
-
[
|
|
10945
|
+
[q, K] = j.find((U) => U[0] === void 0 ? !1 : U[0] === x);
|
|
10938
10946
|
const J = {
|
|
10939
|
-
id:
|
|
10947
|
+
id: q,
|
|
10940
10948
|
type: K
|
|
10941
10949
|
};
|
|
10942
10950
|
_({
|
|
@@ -10945,7 +10953,7 @@ function ru(e, t) {
|
|
|
10945
10953
|
...o,
|
|
10946
10954
|
...C
|
|
10947
10955
|
},
|
|
10948
|
-
model:
|
|
10956
|
+
model: R,
|
|
10949
10957
|
views: j,
|
|
10950
10958
|
title: A,
|
|
10951
10959
|
target: M,
|
|
@@ -10953,7 +10961,7 @@ function ru(e, t) {
|
|
|
10953
10961
|
action_id: V,
|
|
10954
10962
|
action_type: I,
|
|
10955
10963
|
res_id: E,
|
|
10956
|
-
treeExpandable:
|
|
10964
|
+
treeExpandable: k,
|
|
10957
10965
|
limit: N
|
|
10958
10966
|
});
|
|
10959
10967
|
}
|
|
@@ -10985,7 +10993,7 @@ function ru(e, t) {
|
|
|
10985
10993
|
initialView: O,
|
|
10986
10994
|
action_id: C,
|
|
10987
10995
|
action_type: $,
|
|
10988
|
-
res_id:
|
|
10996
|
+
res_id: R,
|
|
10989
10997
|
values: S,
|
|
10990
10998
|
forced_values: A,
|
|
10991
10999
|
treeExpandable: M = !1,
|
|
@@ -10993,7 +11001,7 @@ function ru(e, t) {
|
|
|
10993
11001
|
}) {
|
|
10994
11002
|
const N = zr();
|
|
10995
11003
|
if (b !== "current") {
|
|
10996
|
-
const
|
|
11004
|
+
const k = await B.getHandler().getView({
|
|
10997
11005
|
model: I,
|
|
10998
11006
|
type: "form",
|
|
10999
11007
|
id: O.type === "form" ? O.id : void 0,
|
|
@@ -11005,7 +11013,7 @@ function ru(e, t) {
|
|
|
11005
11013
|
d.current.openActionModal({
|
|
11006
11014
|
domain: w,
|
|
11007
11015
|
model: I,
|
|
11008
|
-
formView:
|
|
11016
|
+
formView: k,
|
|
11009
11017
|
context: {
|
|
11010
11018
|
...o,
|
|
11011
11019
|
...V
|
|
@@ -11013,12 +11021,12 @@ function ru(e, t) {
|
|
|
11013
11021
|
actionData: {
|
|
11014
11022
|
action_id: C,
|
|
11015
11023
|
action_type: $,
|
|
11016
|
-
res_id:
|
|
11017
|
-
view_id:
|
|
11024
|
+
res_id: R,
|
|
11025
|
+
view_id: k.view_id
|
|
11018
11026
|
}
|
|
11019
11027
|
});
|
|
11020
11028
|
} else {
|
|
11021
|
-
const
|
|
11029
|
+
const k = O && Array.isArray(O.id) ? {
|
|
11022
11030
|
...O,
|
|
11023
11031
|
id: O.id[0]
|
|
11024
11032
|
} : O;
|
|
@@ -11041,8 +11049,8 @@ function ru(e, t) {
|
|
|
11041
11049
|
},
|
|
11042
11050
|
domain: w,
|
|
11043
11051
|
setCanWeClose: v,
|
|
11044
|
-
initialView:
|
|
11045
|
-
res_id:
|
|
11052
|
+
initialView: k,
|
|
11053
|
+
res_id: R,
|
|
11046
11054
|
formDefaultValues: S,
|
|
11047
11055
|
formForcedValues: A,
|
|
11048
11056
|
treeExpandable: M,
|
|
@@ -11144,7 +11152,7 @@ function iu(e) {
|
|
|
11144
11152
|
});
|
|
11145
11153
|
}
|
|
11146
11154
|
function Eu() {
|
|
11147
|
-
const e =
|
|
11155
|
+
const e = W(ot), {
|
|
11148
11156
|
activeKey: t,
|
|
11149
11157
|
tabs: r,
|
|
11150
11158
|
onRemoveTab: i,
|
|
@@ -11163,7 +11171,7 @@ function Eu() {
|
|
|
11163
11171
|
function su(e) {
|
|
11164
11172
|
const {
|
|
11165
11173
|
tab: t
|
|
11166
|
-
} = e, r =
|
|
11174
|
+
} = e, r = W(ot), {
|
|
11167
11175
|
activeKey: i
|
|
11168
11176
|
} = r || {}, o = {
|
|
11169
11177
|
display: "none"
|
|
@@ -11175,7 +11183,7 @@ function su(e) {
|
|
|
11175
11183
|
}
|
|
11176
11184
|
const au = ze.memo(su, () => !0);
|
|
11177
11185
|
function $u() {
|
|
11178
|
-
const e =
|
|
11186
|
+
const e = W(ot), {
|
|
11179
11187
|
tabs: t
|
|
11180
11188
|
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(au, {
|
|
11181
11189
|
tab: i
|
|
@@ -11194,9 +11202,9 @@ const {
|
|
|
11194
11202
|
onRemoveFavourite: o
|
|
11195
11203
|
} = e, [s, a] = T(!1), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!0), [v, p] = T(), {
|
|
11196
11204
|
t: h
|
|
11197
|
-
} =
|
|
11205
|
+
} = W(we) || {}, {
|
|
11198
11206
|
token: g
|
|
11199
|
-
} = lu(), y =
|
|
11207
|
+
} = lu(), y = W(ot), {
|
|
11200
11208
|
openShortcut: F,
|
|
11201
11209
|
tabs: _,
|
|
11202
11210
|
activeKey: w,
|
|
@@ -11223,7 +11231,7 @@ const {
|
|
|
11223
11231
|
function b(M) {
|
|
11224
11232
|
const {
|
|
11225
11233
|
key: D
|
|
11226
|
-
} = M, N = c.find((
|
|
11234
|
+
} = M, N = c.find((k) => k.id === Number(D));
|
|
11227
11235
|
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && F(N), u(!1));
|
|
11228
11236
|
}
|
|
11229
11237
|
function O(M) {
|
|
@@ -11240,23 +11248,23 @@ const {
|
|
|
11240
11248
|
a(!1);
|
|
11241
11249
|
return;
|
|
11242
11250
|
}
|
|
11243
|
-
const
|
|
11251
|
+
const k = V.view_id;
|
|
11244
11252
|
let j = !1;
|
|
11245
11253
|
V.type === "form" && (j = I || !1);
|
|
11246
|
-
const
|
|
11254
|
+
const q = await r({
|
|
11247
11255
|
action_id: D,
|
|
11248
11256
|
action_type: N,
|
|
11249
|
-
view_id:
|
|
11257
|
+
view_id: k,
|
|
11250
11258
|
res_id: j
|
|
11251
11259
|
});
|
|
11252
|
-
|
|
11260
|
+
q !== !1 && p(q), a(q !== !1);
|
|
11253
11261
|
}
|
|
11254
11262
|
async function $() {
|
|
11255
11263
|
u(!1), E == null || E({
|
|
11256
11264
|
model: "ir.ui.view_sc"
|
|
11257
11265
|
});
|
|
11258
11266
|
}
|
|
11259
|
-
const
|
|
11267
|
+
const R = /* @__PURE__ */ H(He, {
|
|
11260
11268
|
onClick: b,
|
|
11261
11269
|
children: [/* @__PURE__ */ H("div", {
|
|
11262
11270
|
style: {
|
|
@@ -11330,10 +11338,10 @@ const {
|
|
|
11330
11338
|
else {
|
|
11331
11339
|
if (!V)
|
|
11332
11340
|
return;
|
|
11333
|
-
const M = _.find((
|
|
11341
|
+
const M = _.find((q) => q.key === w), {
|
|
11334
11342
|
id: D,
|
|
11335
11343
|
type: N
|
|
11336
|
-
} = (M == null ? void 0 : M.action) || {},
|
|
11344
|
+
} = (M == null ? void 0 : M.action) || {}, k = V.view_id;
|
|
11337
11345
|
let j = !1;
|
|
11338
11346
|
if (!D || !N) {
|
|
11339
11347
|
a(!1);
|
|
@@ -11342,7 +11350,7 @@ const {
|
|
|
11342
11350
|
V.type === "form" && (j = I || !1), await i({
|
|
11343
11351
|
action_id: D,
|
|
11344
11352
|
action_type: N,
|
|
11345
|
-
view_id:
|
|
11353
|
+
view_id: k,
|
|
11346
11354
|
res_id: j
|
|
11347
11355
|
});
|
|
11348
11356
|
}
|
|
@@ -11363,7 +11371,7 @@ const {
|
|
|
11363
11371
|
},
|
|
11364
11372
|
onClick: A
|
|
11365
11373
|
}), /* @__PURE__ */ n(Bt, {
|
|
11366
|
-
overlay:
|
|
11374
|
+
overlay: R,
|
|
11367
11375
|
onVisibleChange: O,
|
|
11368
11376
|
open: l,
|
|
11369
11377
|
children: /* @__PURE__ */ n(Oe, {
|
|
@@ -11403,7 +11411,7 @@ export {
|
|
|
11403
11411
|
zc as ExportModal,
|
|
11404
11412
|
Lu as FavouriteButton,
|
|
11405
11413
|
mo as Float,
|
|
11406
|
-
|
|
11414
|
+
kc as FloatTime,
|
|
11407
11415
|
Ut as Form,
|
|
11408
11416
|
Gt as FormModal,
|
|
11409
11417
|
sc as GraphIndicator,
|