@gisce/react-ooui 1.5.8-rc.0 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar/DropdownButton.d.ts +1 -1
- package/dist/actionbar/DropdownButton.d.ts.map +1 -1
- package/dist/react-ooui.es.js +392 -378
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +10 -10
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/DropdownButton.tsx +37 -11
- package/src/actionbar/FormActionBar.tsx +1 -1
- package/src/stories/mocks/models/cups.ts +1 -18
- package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
- package/src/widgets/views/Form.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -48,7 +48,7 @@ const {
|
|
|
48
48
|
labelSize: l,
|
|
49
49
|
labelType: f
|
|
50
50
|
} = t, d = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
51
|
-
token:
|
|
51
|
+
token: y
|
|
52
52
|
} = ns(), p = l === void 0 ? es : ts;
|
|
53
53
|
return /* @__PURE__ */ P("div", {
|
|
54
54
|
className: `flex flex-row items-center pb-1 pt-1 ${rs[m]}`,
|
|
@@ -57,7 +57,7 @@ const {
|
|
|
57
57
|
children: /* @__PURE__ */ n(Ur, {
|
|
58
58
|
className: "pr-1 text-xs",
|
|
59
59
|
style: {
|
|
60
|
-
color:
|
|
60
|
+
color: y.colorPrimary
|
|
61
61
|
}
|
|
62
62
|
})
|
|
63
63
|
}), /* @__PURE__ */ n("span", {
|
|
@@ -384,7 +384,7 @@ function we({
|
|
|
384
384
|
tooltip: u
|
|
385
385
|
} = e, {
|
|
386
386
|
t: m
|
|
387
|
-
} = W(ye),
|
|
387
|
+
} = W(ye), y = a ? [{
|
|
388
388
|
required: !0,
|
|
389
389
|
message: m("fillRequiredField"),
|
|
390
390
|
type: l,
|
|
@@ -393,7 +393,7 @@ function we({
|
|
|
393
393
|
className: "mb-0",
|
|
394
394
|
name: c,
|
|
395
395
|
valuePropName: i,
|
|
396
|
-
rules:
|
|
396
|
+
rules: y,
|
|
397
397
|
children: t
|
|
398
398
|
});
|
|
399
399
|
if (!o)
|
|
@@ -455,7 +455,7 @@ const {
|
|
|
455
455
|
domain: d,
|
|
456
456
|
submitForm: u,
|
|
457
457
|
fetchValues: m,
|
|
458
|
-
formHasChanges:
|
|
458
|
+
formHasChanges: y,
|
|
459
459
|
elementHasLostFocus: p,
|
|
460
460
|
getFields: h
|
|
461
461
|
} = e;
|
|
@@ -473,7 +473,7 @@ const {
|
|
|
473
473
|
getContext: l,
|
|
474
474
|
submitForm: u,
|
|
475
475
|
fetchValues: m,
|
|
476
|
-
formHasChanges:
|
|
476
|
+
formHasChanges: y,
|
|
477
477
|
elementHasLostFocus: p
|
|
478
478
|
},
|
|
479
479
|
children: t
|
|
@@ -616,17 +616,17 @@ const io = (e) => {
|
|
|
616
616
|
readOnly: c
|
|
617
617
|
} = t, d = W(Le), {
|
|
618
618
|
executeButtonAction: u
|
|
619
|
-
} = d || {}, [m,
|
|
619
|
+
} = d || {}, [m, y] = _(!1), {
|
|
620
620
|
lang: p
|
|
621
621
|
} = W(ye);
|
|
622
622
|
async function h() {
|
|
623
|
-
|
|
623
|
+
y(!0), await u({
|
|
624
624
|
type: s,
|
|
625
625
|
action: r,
|
|
626
626
|
context: f
|
|
627
|
-
}),
|
|
627
|
+
}), y(!1);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function g() {
|
|
630
630
|
if (a) {
|
|
631
631
|
zt({
|
|
632
632
|
confirmMessage: a,
|
|
@@ -652,7 +652,7 @@ const io = (e) => {
|
|
|
652
652
|
children: /* @__PURE__ */ n(Ie, {
|
|
653
653
|
block: !0,
|
|
654
654
|
disabled: !o || c || m,
|
|
655
|
-
onClick:
|
|
655
|
+
onClick: g,
|
|
656
656
|
icon: v(),
|
|
657
657
|
type: t.primary ? "primary" : "default",
|
|
658
658
|
danger: t.danger,
|
|
@@ -679,14 +679,14 @@ const io = (e) => {
|
|
|
679
679
|
primary: d,
|
|
680
680
|
danger: u,
|
|
681
681
|
context: m,
|
|
682
|
-
readOnly:
|
|
682
|
+
readOnly: y
|
|
683
683
|
} = r || {}, p = W(Le), {
|
|
684
684
|
executeButtonAction: h
|
|
685
|
-
} = p || {}, [
|
|
685
|
+
} = p || {}, [g, v] = _(!1), {
|
|
686
686
|
lang: C
|
|
687
687
|
} = W(ye);
|
|
688
688
|
function R() {
|
|
689
|
-
if (
|
|
689
|
+
if (g)
|
|
690
690
|
return /* @__PURE__ */ n(st, {});
|
|
691
691
|
if (c) {
|
|
692
692
|
const S = ct(c);
|
|
@@ -721,7 +721,7 @@ const io = (e) => {
|
|
|
721
721
|
ooui: t
|
|
722
722
|
}),
|
|
723
723
|
children: /* @__PURE__ */ P(Gt.Button, {
|
|
724
|
-
disabled: !a ||
|
|
724
|
+
disabled: !a || y,
|
|
725
725
|
onClick: A,
|
|
726
726
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
727
727
|
type: d ? "primary" : void 0,
|
|
@@ -754,15 +754,15 @@ const io = (e) => {
|
|
|
754
754
|
confirmMessage: d,
|
|
755
755
|
icon: u,
|
|
756
756
|
context: m,
|
|
757
|
-
readOnly:
|
|
757
|
+
readOnly: y,
|
|
758
758
|
danger: p
|
|
759
|
-
} = s, [h,
|
|
759
|
+
} = s, [h, g] = _(!1);
|
|
760
760
|
async function v() {
|
|
761
|
-
|
|
761
|
+
g(!0), await r({
|
|
762
762
|
type: c,
|
|
763
763
|
action: a,
|
|
764
764
|
context: m
|
|
765
|
-
}),
|
|
765
|
+
}), g(!1);
|
|
766
766
|
}
|
|
767
767
|
function C() {
|
|
768
768
|
if (d) {
|
|
@@ -786,7 +786,7 @@ const io = (e) => {
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
return /* @__PURE__ */ n(je.Item, {
|
|
789
|
-
disabled: !f ||
|
|
789
|
+
disabled: !f || y,
|
|
790
790
|
onClick: C,
|
|
791
791
|
icon: R(),
|
|
792
792
|
danger: p,
|
|
@@ -875,9 +875,9 @@ const so = (e) => {
|
|
|
875
875
|
modalWidth: l
|
|
876
876
|
} = hn(), {
|
|
877
877
|
t: f
|
|
878
|
-
} = W(ye), [c, d] = _([]), [u, m] = _(!1), [
|
|
878
|
+
} = W(ye), [c, d] = _([]), [u, m] = _(!1), [y, p] = _(!1), [h, g] = _({}), v = ue();
|
|
879
879
|
ge(() => {
|
|
880
|
-
t ? C() :
|
|
880
|
+
t ? C() : g({});
|
|
881
881
|
}, [t]);
|
|
882
882
|
async function C() {
|
|
883
883
|
m(!0);
|
|
@@ -913,7 +913,7 @@ const so = (e) => {
|
|
|
913
913
|
}))[0];
|
|
914
914
|
T[F.code] = w[s] || "";
|
|
915
915
|
}
|
|
916
|
-
v.current = T,
|
|
916
|
+
v.current = T, g(T);
|
|
917
917
|
}
|
|
918
918
|
function A() {
|
|
919
919
|
return c.map((x, T) => /* @__PURE__ */ P(Ce, {
|
|
@@ -932,12 +932,12 @@ const so = (e) => {
|
|
|
932
932
|
rows: 4,
|
|
933
933
|
value: h[x.code] || "",
|
|
934
934
|
onChange: (F) => {
|
|
935
|
-
|
|
935
|
+
g({
|
|
936
936
|
...h,
|
|
937
937
|
[x.code]: F.target.value
|
|
938
938
|
});
|
|
939
939
|
},
|
|
940
|
-
disabled:
|
|
940
|
+
disabled: y
|
|
941
941
|
})
|
|
942
942
|
})]
|
|
943
943
|
}, T));
|
|
@@ -970,11 +970,11 @@ const so = (e) => {
|
|
|
970
970
|
children: [/* @__PURE__ */ n(Ie, {
|
|
971
971
|
icon: /* @__PURE__ */ n(qt, {}),
|
|
972
972
|
onClick: r,
|
|
973
|
-
disabled:
|
|
973
|
+
disabled: y,
|
|
974
974
|
children: f("cancel")
|
|
975
975
|
}), /* @__PURE__ */ n(Ie, {
|
|
976
|
-
icon:
|
|
977
|
-
disabled:
|
|
976
|
+
icon: y ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Mt, {}),
|
|
977
|
+
disabled: y,
|
|
978
978
|
onClick: S,
|
|
979
979
|
style: {
|
|
980
980
|
marginLeft: 15
|
|
@@ -1085,8 +1085,8 @@ const {
|
|
|
1085
1085
|
value: e,
|
|
1086
1086
|
disabled: !0,
|
|
1087
1087
|
id: t,
|
|
1088
|
-
onChange: (
|
|
1089
|
-
i == null || i(
|
|
1088
|
+
onChange: (y) => {
|
|
1089
|
+
i == null || i(y.target.value);
|
|
1090
1090
|
},
|
|
1091
1091
|
onBlur: c,
|
|
1092
1092
|
style: {
|
|
@@ -1117,8 +1117,8 @@ const {
|
|
|
1117
1117
|
value: e,
|
|
1118
1118
|
id: t,
|
|
1119
1119
|
style: r,
|
|
1120
|
-
onChange: (
|
|
1121
|
-
i == null || i(
|
|
1120
|
+
onChange: (y) => {
|
|
1121
|
+
i == null || i(y.target.value);
|
|
1122
1122
|
},
|
|
1123
1123
|
onBlur: c
|
|
1124
1124
|
})
|
|
@@ -1291,29 +1291,29 @@ function Ia(e, t, r) {
|
|
|
1291
1291
|
if (typeof e != "function")
|
|
1292
1292
|
throw new TypeError(Ta);
|
|
1293
1293
|
t = xr(t) || 0, Sa(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Fa(xr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1294
|
-
function
|
|
1294
|
+
function y(S) {
|
|
1295
1295
|
var E = i, x = o;
|
|
1296
1296
|
return i = o = void 0, c = S, a = e.apply(x, E), a;
|
|
1297
1297
|
}
|
|
1298
1298
|
function p(S) {
|
|
1299
|
-
return c = S, l = setTimeout(v, t), d ?
|
|
1299
|
+
return c = S, l = setTimeout(v, t), d ? y(S) : a;
|
|
1300
1300
|
}
|
|
1301
1301
|
function h(S) {
|
|
1302
1302
|
var E = S - f, x = S - c, T = t - E;
|
|
1303
1303
|
return u ? Oa(T, s - x) : T;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function g(S) {
|
|
1306
1306
|
var E = S - f, x = S - c;
|
|
1307
1307
|
return f === void 0 || E >= t || E < 0 || u && x >= s;
|
|
1308
1308
|
}
|
|
1309
1309
|
function v() {
|
|
1310
1310
|
var S = Fn();
|
|
1311
|
-
if (
|
|
1311
|
+
if (g(S))
|
|
1312
1312
|
return C(S);
|
|
1313
1313
|
l = setTimeout(v, h(S));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(S) {
|
|
1316
|
-
return l = void 0, m && i ?
|
|
1316
|
+
return l = void 0, m && i ? y(S) : (i = o = void 0, a);
|
|
1317
1317
|
}
|
|
1318
1318
|
function R() {
|
|
1319
1319
|
l !== void 0 && clearTimeout(l), c = 0, i = f = o = l = void 0;
|
|
@@ -1322,12 +1322,12 @@ function Ia(e, t, r) {
|
|
|
1322
1322
|
return l === void 0 ? a : C(Fn());
|
|
1323
1323
|
}
|
|
1324
1324
|
function A() {
|
|
1325
|
-
var S = Fn(), E =
|
|
1325
|
+
var S = Fn(), E = g(S);
|
|
1326
1326
|
if (i = arguments, o = this, f = S, E) {
|
|
1327
1327
|
if (l === void 0)
|
|
1328
1328
|
return p(f);
|
|
1329
1329
|
if (u)
|
|
1330
|
-
return clearTimeout(l), l = setTimeout(v, t),
|
|
1330
|
+
return clearTimeout(l), l = setTimeout(v, t), y(f);
|
|
1331
1331
|
}
|
|
1332
1332
|
return l === void 0 && (l = setTimeout(v, t)), a;
|
|
1333
1333
|
}
|
|
@@ -1384,13 +1384,13 @@ const Aa = (e) => {
|
|
|
1384
1384
|
i == null || i(u);
|
|
1385
1385
|
};
|
|
1386
1386
|
async function f() {
|
|
1387
|
-
const u = await Rt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`,
|
|
1388
|
-
|
|
1387
|
+
const u = await Rt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`, y = document.createElement("a");
|
|
1388
|
+
y.href = m, y.download = `image.${u == null ? void 0 : u.ext}`, y.click();
|
|
1389
1389
|
}
|
|
1390
1390
|
async function c(u) {
|
|
1391
1391
|
u.stopPropagation(), u.preventDefault();
|
|
1392
|
-
const m = u.target.files[0],
|
|
1393
|
-
l(
|
|
1392
|
+
const m = u.target.files[0], y = await go(m);
|
|
1393
|
+
l(y);
|
|
1394
1394
|
}
|
|
1395
1395
|
function d() {
|
|
1396
1396
|
l(void 0);
|
|
@@ -1483,9 +1483,9 @@ const Aa = (e) => {
|
|
|
1483
1483
|
title: o.label,
|
|
1484
1484
|
render: f,
|
|
1485
1485
|
sorter: (c, d) => {
|
|
1486
|
-
var
|
|
1486
|
+
var y, p;
|
|
1487
1487
|
let u = c[a] || "", m = d[a] || "";
|
|
1488
|
-
return s === "many2one" && (u = ((
|
|
1488
|
+
return s === "many2one" && (u = ((y = c[a]) == null ? void 0 : y.value) || "", m = ((p = d[a]) == null ? void 0 : p.value) || ""), u < m ? -1 : u > m ? 1 : 0;
|
|
1489
1489
|
}
|
|
1490
1490
|
};
|
|
1491
1491
|
}), yo = (e, t) => t.map((i) => {
|
|
@@ -1525,9 +1525,9 @@ function Dt({
|
|
|
1525
1525
|
if (!t)
|
|
1526
1526
|
return e;
|
|
1527
1527
|
const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (f, c) => {
|
|
1528
|
-
var m,
|
|
1528
|
+
var m, y;
|
|
1529
1529
|
let d = f[i] || "", u = c[i] || "";
|
|
1530
|
-
return a === "many2one" && (d = ((m = f[i]) == null ? void 0 : m[1]) || "", u = ((
|
|
1530
|
+
return a === "many2one" && (d = ((m = f[i]) == null ? void 0 : m[1]) || "", u = ((y = c[i]) == null ? void 0 : y[1]) || ""), d === u ? 0 : s === "ascend" ? d > u ? 1 : -1 : d < u ? 1 : -1;
|
|
1531
1531
|
};
|
|
1532
1532
|
return e.sort(l);
|
|
1533
1533
|
}
|
|
@@ -1554,7 +1554,7 @@ const Qn = async (e) => {
|
|
|
1554
1554
|
};
|
|
1555
1555
|
let d = [], u;
|
|
1556
1556
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1557
|
-
const h = (p = _t(o)) == null ? void 0 : p.colors,
|
|
1557
|
+
const h = (p = _t(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
|
|
1558
1558
|
model: r,
|
|
1559
1559
|
ids: f,
|
|
1560
1560
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1564,7 +1564,7 @@ const Qn = async (e) => {
|
|
|
1564
1564
|
colors: h
|
|
1565
1565
|
}
|
|
1566
1566
|
});
|
|
1567
|
-
d =
|
|
1567
|
+
d = g[0], u = nn(g[1]);
|
|
1568
1568
|
} else
|
|
1569
1569
|
d = await H.getHandler().readObjects({
|
|
1570
1570
|
model: r,
|
|
@@ -1573,19 +1573,19 @@ const Qn = async (e) => {
|
|
|
1573
1573
|
context: s
|
|
1574
1574
|
});
|
|
1575
1575
|
const m = d.map((h) => {
|
|
1576
|
-
const
|
|
1576
|
+
const g = {};
|
|
1577
1577
|
return Object.keys(h).forEach((v) => {
|
|
1578
|
-
(c[a].hasOwnProperty(v) || v === "id") && (
|
|
1579
|
-
}),
|
|
1578
|
+
(c[a].hasOwnProperty(v) || v === "id") && (g[v] = h[v]);
|
|
1579
|
+
}), g;
|
|
1580
1580
|
});
|
|
1581
1581
|
return [
|
|
1582
1582
|
t.map((h) => {
|
|
1583
|
-
const
|
|
1583
|
+
const g = m.find(
|
|
1584
1584
|
(C) => C.id === h.id
|
|
1585
1585
|
), v = {
|
|
1586
1586
|
...h
|
|
1587
1587
|
};
|
|
1588
|
-
return a === "form" ? v.values =
|
|
1588
|
+
return a === "form" ? v.values = g : a === "tree" && (v.treeValues = g), v;
|
|
1589
1589
|
}).concat(l),
|
|
1590
1590
|
u
|
|
1591
1591
|
];
|
|
@@ -1613,7 +1613,7 @@ const Qn = async (e) => {
|
|
|
1613
1613
|
St(() => {
|
|
1614
1614
|
p();
|
|
1615
1615
|
}, [t]);
|
|
1616
|
-
const
|
|
1616
|
+
const y = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
|
|
1617
1617
|
model: r,
|
|
1618
1618
|
type: h,
|
|
1619
1619
|
context: {
|
|
@@ -1623,8 +1623,8 @@ const Qn = async (e) => {
|
|
|
1623
1623
|
}), p = async () => {
|
|
1624
1624
|
a(!0), f(void 0);
|
|
1625
1625
|
try {
|
|
1626
|
-
const h = await
|
|
1627
|
-
c.set("form", h), c.set("tree",
|
|
1626
|
+
const h = await y("form"), g = await y("tree");
|
|
1627
|
+
c.set("form", h), c.set("tree", g), d(c);
|
|
1628
1628
|
} catch (h) {
|
|
1629
1629
|
f(h);
|
|
1630
1630
|
} finally {
|
|
@@ -1652,10 +1652,10 @@ const Qn = async (e) => {
|
|
|
1652
1652
|
onChange: o
|
|
1653
1653
|
} = e, {
|
|
1654
1654
|
items: s = []
|
|
1655
|
-
} = t || {}, [a, l] = _(!1), [f, c] = _(), [d, u] = _(!1), [m,
|
|
1655
|
+
} = t || {}, [a, l] = _(!1), [f, c] = _(), [d, u] = _(!1), [m, y] = _(), {
|
|
1656
1656
|
relation: p,
|
|
1657
1657
|
context: h,
|
|
1658
|
-
readOnly:
|
|
1658
|
+
readOnly: g,
|
|
1659
1659
|
summaryField: v,
|
|
1660
1660
|
titleField: C
|
|
1661
1661
|
} = i, R = s.filter((x) => x.values), b = W(Le), {
|
|
@@ -1715,7 +1715,7 @@ const Qn = async (e) => {
|
|
|
1715
1715
|
cursor: "pointer"
|
|
1716
1716
|
},
|
|
1717
1717
|
onClick: () => {
|
|
1718
|
-
|
|
1718
|
+
y(R.find((L) => x.id === L.id)), u(!0);
|
|
1719
1719
|
},
|
|
1720
1720
|
children: /* @__PURE__ */ n("strong", {
|
|
1721
1721
|
children: (F = x.values) == null ? void 0 : F[C]
|
|
@@ -1726,7 +1726,7 @@ const Qn = async (e) => {
|
|
|
1726
1726
|
cursor: "pointer"
|
|
1727
1727
|
},
|
|
1728
1728
|
onClick: () => {
|
|
1729
|
-
|
|
1729
|
+
y(R.find((L) => x.id === L.id)), u(!0);
|
|
1730
1730
|
},
|
|
1731
1731
|
children: (w = x.values) == null ? void 0 : w[v]
|
|
1732
1732
|
})]
|
|
@@ -1750,7 +1750,7 @@ const Qn = async (e) => {
|
|
|
1750
1750
|
onCancel: () => {
|
|
1751
1751
|
u(!1);
|
|
1752
1752
|
},
|
|
1753
|
-
readOnly:
|
|
1753
|
+
readOnly: g,
|
|
1754
1754
|
postSaveAction: E
|
|
1755
1755
|
})]
|
|
1756
1756
|
});
|
|
@@ -1978,12 +1978,12 @@ const $t = ({
|
|
|
1978
1978
|
items: o = []
|
|
1979
1979
|
} = t || {}, s = o.filter((S) => S.operation !== "pendingRemove").map((S) => S.id), [a, l] = _([]), [f, c] = _(), [d, u] = _(!1), {
|
|
1980
1980
|
relation: m,
|
|
1981
|
-
context:
|
|
1981
|
+
context: y,
|
|
1982
1982
|
readOnly: p,
|
|
1983
1983
|
field: h
|
|
1984
|
-
} = r,
|
|
1984
|
+
} = r, g = W(Le), {
|
|
1985
1985
|
getContext: v
|
|
1986
|
-
} =
|
|
1986
|
+
} = g || {};
|
|
1987
1987
|
St(() => {
|
|
1988
1988
|
R();
|
|
1989
1989
|
}, [o]);
|
|
@@ -2000,11 +2000,11 @@ const $t = ({
|
|
|
2000
2000
|
const T = await H.getHandler().evalDomain({
|
|
2001
2001
|
domain: r.domain,
|
|
2002
2002
|
values: $t({
|
|
2003
|
-
fields:
|
|
2004
|
-
values:
|
|
2003
|
+
fields: g == null ? void 0 : g.getFields(),
|
|
2004
|
+
values: g.getPlainValues()
|
|
2005
2005
|
}),
|
|
2006
|
-
fields:
|
|
2007
|
-
context:
|
|
2006
|
+
fields: g == null ? void 0 : g.getFields(),
|
|
2007
|
+
context: g.getContext()
|
|
2008
2008
|
});
|
|
2009
2009
|
S = [...S, ...T];
|
|
2010
2010
|
}
|
|
@@ -2014,7 +2014,7 @@ const $t = ({
|
|
|
2014
2014
|
fields: [h],
|
|
2015
2015
|
context: {
|
|
2016
2016
|
...v == null ? void 0 : v(),
|
|
2017
|
-
...
|
|
2017
|
+
...y
|
|
2018
2018
|
}
|
|
2019
2019
|
})).map((T) => {
|
|
2020
2020
|
const F = T[h];
|
|
@@ -2232,28 +2232,28 @@ const $t = ({
|
|
|
2232
2232
|
s < o && (o = s);
|
|
2233
2233
|
let a = !1, l = [];
|
|
2234
2234
|
const f = i.map((u, m) => {
|
|
2235
|
-
const
|
|
2236
|
-
row:
|
|
2235
|
+
const y = u.filter((g) => !g.invisible), p = nl({
|
|
2236
|
+
row: y,
|
|
2237
2237
|
numberOfColumns: o
|
|
2238
2238
|
});
|
|
2239
2239
|
let h = p;
|
|
2240
|
-
return (m === 0 || !(u.length === 1 && u.some((
|
|
2240
|
+
return (m === 0 || !(u.length === 1 && u.some((g) => g.type === "group"))) && (h = tl({
|
|
2241
2241
|
row: p,
|
|
2242
2242
|
numberOfColumns: o,
|
|
2243
2243
|
mustFillWithEmpties: r
|
|
2244
|
-
}), l = l.concat(h)), h.map((
|
|
2244
|
+
}), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2245
2245
|
style: {
|
|
2246
2246
|
...el({
|
|
2247
|
-
item:
|
|
2247
|
+
item: g,
|
|
2248
2248
|
responsiveBehaviour: r
|
|
2249
2249
|
}),
|
|
2250
2250
|
minWidth: 0
|
|
2251
2251
|
},
|
|
2252
2252
|
children: Qa({
|
|
2253
|
-
ooui:
|
|
2253
|
+
ooui: g,
|
|
2254
2254
|
responsiveBehaviour: r
|
|
2255
2255
|
})
|
|
2256
|
-
},
|
|
2256
|
+
}, g.key)));
|
|
2257
2257
|
}), c = i.length === 1 ? rl(l, o) : ol(o, a);
|
|
2258
2258
|
return /* @__PURE__ */ n("div", {
|
|
2259
2259
|
style: {
|
|
@@ -2397,10 +2397,10 @@ const $t = ({
|
|
|
2397
2397
|
setActionViewTotalItems: d,
|
|
2398
2398
|
treeView: u,
|
|
2399
2399
|
formView: m,
|
|
2400
|
-
sorter:
|
|
2400
|
+
sorter: y,
|
|
2401
2401
|
setSorter: p,
|
|
2402
2402
|
setCurrentItemIndex: h,
|
|
2403
|
-
setResultsActionView:
|
|
2403
|
+
setResultsActionView: g,
|
|
2404
2404
|
resultsActionView: v,
|
|
2405
2405
|
domain: C,
|
|
2406
2406
|
currentId: R,
|
|
@@ -2409,7 +2409,7 @@ const $t = ({
|
|
|
2409
2409
|
searchParams: S = [],
|
|
2410
2410
|
setSearchValues: E
|
|
2411
2411
|
} = e, [x, T] = _(!1), [F, w] = _(!1), [L, V] = _(), [O, M] = _(1), [k, D] = _(0), [$, I] = _(), [j, G] = _([]), [U, Y] = _(void 0), [z, N] = _(void 0), B = ue(b || Wt), X = ue([]), ne = ke((ie) => {
|
|
2412
|
-
|
|
2412
|
+
g == null || g([...ie]), G([...ie]);
|
|
2413
2413
|
}, []), le = ke(() => v || j, [v, j]), J = ke(async () => {
|
|
2414
2414
|
const ie = await H.getHandler().nameSearch({
|
|
2415
2415
|
model: t,
|
|
@@ -2430,9 +2430,9 @@ const $t = ({
|
|
|
2430
2430
|
attrs: Ke
|
|
2431
2431
|
}), xe = ee[0];
|
|
2432
2432
|
X.current = [...xe], Y(nn(ee[1])), N(Cr(ee[1]));
|
|
2433
|
-
const Ve = xe.map((se) => se.id), He =
|
|
2433
|
+
const Ve = xe.map((se) => se.id), He = y !== void 0 ? Dt({
|
|
2434
2434
|
resultsToSort: xe,
|
|
2435
|
-
sorter:
|
|
2435
|
+
sorter: y,
|
|
2436
2436
|
fields: { ...u.fields, ...m.fields }
|
|
2437
2437
|
}) : [...X.current];
|
|
2438
2438
|
ne(He), Ve.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
@@ -2448,7 +2448,7 @@ const $t = ({
|
|
|
2448
2448
|
C,
|
|
2449
2449
|
u,
|
|
2450
2450
|
m,
|
|
2451
|
-
|
|
2451
|
+
y,
|
|
2452
2452
|
h,
|
|
2453
2453
|
d
|
|
2454
2454
|
]), Z = ke(
|
|
@@ -2465,9 +2465,9 @@ const $t = ({
|
|
|
2465
2465
|
attrs: xe
|
|
2466
2466
|
});
|
|
2467
2467
|
Y(nn(se)), N(Cr(se)), X.current = [...He];
|
|
2468
|
-
const me =
|
|
2468
|
+
const me = y !== void 0 ? Dt({
|
|
2469
2469
|
resultsToSort: He,
|
|
2470
|
-
sorter:
|
|
2470
|
+
sorter: y,
|
|
2471
2471
|
fields: { ...u.fields, ...m.fields }
|
|
2472
2472
|
}) : [...X.current];
|
|
2473
2473
|
if (ne(me), v && me.length > 0) {
|
|
@@ -2491,7 +2491,7 @@ const $t = ({
|
|
|
2491
2491
|
C,
|
|
2492
2492
|
u,
|
|
2493
2493
|
m,
|
|
2494
|
-
|
|
2494
|
+
y,
|
|
2495
2495
|
d,
|
|
2496
2496
|
b,
|
|
2497
2497
|
k,
|
|
@@ -2525,12 +2525,12 @@ const $t = ({
|
|
|
2525
2525
|
w,
|
|
2526
2526
|
T,
|
|
2527
2527
|
a,
|
|
2528
|
-
|
|
2528
|
+
y,
|
|
2529
2529
|
u
|
|
2530
2530
|
]
|
|
2531
2531
|
), he = ke(
|
|
2532
2532
|
(ie) => {
|
|
2533
|
-
if (JSON.stringify(ie) === JSON.stringify(
|
|
2533
|
+
if (JSON.stringify(ie) === JSON.stringify(y))
|
|
2534
2534
|
return;
|
|
2535
2535
|
p == null || p(ie);
|
|
2536
2536
|
const Ee = ie !== void 0 ? Dt({
|
|
@@ -2628,10 +2628,10 @@ const $t = ({
|
|
|
2628
2628
|
setCurrentId: d,
|
|
2629
2629
|
setResults: u,
|
|
2630
2630
|
results: m,
|
|
2631
|
-
currentItemIndex:
|
|
2631
|
+
currentItemIndex: y,
|
|
2632
2632
|
setCurrentItemIndex: p,
|
|
2633
2633
|
currentModel: h,
|
|
2634
|
-
sorter:
|
|
2634
|
+
sorter: g,
|
|
2635
2635
|
setSorter: v,
|
|
2636
2636
|
totalItems: C,
|
|
2637
2637
|
setTotalItems: R,
|
|
@@ -2643,7 +2643,7 @@ const $t = ({
|
|
|
2643
2643
|
limit: T
|
|
2644
2644
|
} = e, [F, w] = _(!1), [L, V] = _(!1), [O, M] = _(!1), [k, D] = _(!0), [$, I] = _(!0), [j, G] = _([]), [U, Y] = _(!1), [z, N] = _([]), [B, X] = _(!1), [ne, le] = _(!0), [J, Z] = _(), [fe, he] = _({}), [Me, De] = _(T !== void 0 ? T : Wt), [Ne, Ge] = _(i);
|
|
2645
2645
|
ge(() => {
|
|
2646
|
-
m && m.length > 0 && !
|
|
2646
|
+
m && m.length > 0 && !y && (p == null || p(0), d == null || d(m[0].id));
|
|
2647
2647
|
}, [m]), ge(() => {
|
|
2648
2648
|
De(T !== void 0 ? T : Wt);
|
|
2649
2649
|
}, [T]), ge(() => {
|
|
@@ -2671,7 +2671,7 @@ const $t = ({
|
|
|
2671
2671
|
onNewClicked: f,
|
|
2672
2672
|
currentId: c,
|
|
2673
2673
|
setCurrentId: d,
|
|
2674
|
-
currentItemIndex:
|
|
2674
|
+
currentItemIndex: y,
|
|
2675
2675
|
setCurrentItemIndex: p,
|
|
2676
2676
|
results: m,
|
|
2677
2677
|
setResults: u,
|
|
@@ -2692,7 +2692,7 @@ const $t = ({
|
|
|
2692
2692
|
searchParams: z,
|
|
2693
2693
|
searchVisible: B,
|
|
2694
2694
|
setSearchVisible: X,
|
|
2695
|
-
sorter:
|
|
2695
|
+
sorter: g,
|
|
2696
2696
|
setSorter: v,
|
|
2697
2697
|
totalItems: C,
|
|
2698
2698
|
setTotalItems: R,
|
|
@@ -2722,7 +2722,7 @@ const $t = ({
|
|
|
2722
2722
|
onChangeTab: l,
|
|
2723
2723
|
onRemoveTab: f,
|
|
2724
2724
|
tabs: c
|
|
2725
|
-
} = e, [d, u] = _(), [m,
|
|
2725
|
+
} = e, [d, u] = _(), [m, y] = _();
|
|
2726
2726
|
return /* @__PURE__ */ n(dt.Provider, {
|
|
2727
2727
|
value: {
|
|
2728
2728
|
openAction: r,
|
|
@@ -2735,7 +2735,7 @@ const $t = ({
|
|
|
2735
2735
|
tabs: c,
|
|
2736
2736
|
currentId: m,
|
|
2737
2737
|
currentView: d,
|
|
2738
|
-
setCurrentId:
|
|
2738
|
+
setCurrentId: y,
|
|
2739
2739
|
setCurrentView: u
|
|
2740
2740
|
},
|
|
2741
2741
|
children: t
|
|
@@ -2756,10 +2756,10 @@ const $t = ({
|
|
|
2756
2756
|
xt(t, () => ({
|
|
2757
2757
|
openActionModal: b
|
|
2758
2758
|
}));
|
|
2759
|
-
const [m,
|
|
2759
|
+
const [m, y] = _(!1), [p, h] = _({
|
|
2760
2760
|
context: {}
|
|
2761
2761
|
});
|
|
2762
|
-
async function
|
|
2762
|
+
async function g(E) {
|
|
2763
2763
|
const {
|
|
2764
2764
|
reportData: x,
|
|
2765
2765
|
fields: T,
|
|
@@ -2828,7 +2828,7 @@ const $t = ({
|
|
|
2828
2828
|
type: L
|
|
2829
2829
|
} = E;
|
|
2830
2830
|
if (d.current.push(w), L === "ir.actions.report.xml")
|
|
2831
|
-
return await
|
|
2831
|
+
return await g({
|
|
2832
2832
|
reportData: E,
|
|
2833
2833
|
fields: x,
|
|
2834
2834
|
values: T,
|
|
@@ -2942,7 +2942,7 @@ const $t = ({
|
|
|
2942
2942
|
context: F,
|
|
2943
2943
|
formView: T,
|
|
2944
2944
|
actionData: w
|
|
2945
|
-
}),
|
|
2945
|
+
}), y(!0));
|
|
2946
2946
|
}
|
|
2947
2947
|
async function A({
|
|
2948
2948
|
domain: E,
|
|
@@ -2957,16 +2957,16 @@ const $t = ({
|
|
|
2957
2957
|
context: {},
|
|
2958
2958
|
formView: void 0,
|
|
2959
2959
|
actionData: void 0
|
|
2960
|
-
}),
|
|
2960
|
+
}), y(!1), await new Promise((L) => setTimeout(L, 300)), h({
|
|
2961
2961
|
domain: E,
|
|
2962
2962
|
model: x,
|
|
2963
2963
|
context: F,
|
|
2964
2964
|
formView: T,
|
|
2965
2965
|
actionData: w
|
|
2966
|
-
}),
|
|
2966
|
+
}), y(!0);
|
|
2967
2967
|
}
|
|
2968
2968
|
async function S() {
|
|
2969
|
-
Or(d.current), d.current = [],
|
|
2969
|
+
Or(d.current), d.current = [], y(!1), h({
|
|
2970
2970
|
domain: void 0,
|
|
2971
2971
|
model: void 0,
|
|
2972
2972
|
context: {},
|
|
@@ -2997,7 +2997,7 @@ const $t = ({
|
|
|
2997
2997
|
visible: m,
|
|
2998
2998
|
onSubmitSucceed: S,
|
|
2999
2999
|
onCancel: () => {
|
|
3000
|
-
Or(d.current), d.current = [],
|
|
3000
|
+
Or(d.current), d.current = [], y(!1), h({
|
|
3001
3001
|
domain: void 0,
|
|
3002
3002
|
model: void 0,
|
|
3003
3003
|
context: {},
|
|
@@ -3105,10 +3105,10 @@ function Ol(e, t) {
|
|
|
3105
3105
|
readOnly: d = !1,
|
|
3106
3106
|
mustClearAfterSave: u = !1,
|
|
3107
3107
|
submitMode: m = "api",
|
|
3108
|
-
values:
|
|
3108
|
+
values: y,
|
|
3109
3109
|
formView: p,
|
|
3110
3110
|
postSaveAction: h,
|
|
3111
|
-
insideButtonModal:
|
|
3111
|
+
insideButtonModal: g = !1,
|
|
3112
3112
|
parentContext: v = {},
|
|
3113
3113
|
actionDomain: C,
|
|
3114
3114
|
visible: R = !0,
|
|
@@ -3153,7 +3153,7 @@ function Ol(e, t) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
(i === void 0 && I || i !== void 0 && I && i < 0) && (B.current = void 0, M(void 0)), rr();
|
|
3155
3155
|
}
|
|
3156
|
-
}, [i, r,
|
|
3156
|
+
}, [i, r, y, p, R]), ge(() => {
|
|
3157
3157
|
z && (wn({
|
|
3158
3158
|
elementHasLostFocus: !0
|
|
3159
3159
|
}), N(!1));
|
|
@@ -3273,7 +3273,7 @@ function Ol(e, t) {
|
|
|
3273
3273
|
}
|
|
3274
3274
|
}, yt = async (K) => {
|
|
3275
3275
|
let q, re, oe, pe;
|
|
3276
|
-
be == null || be(!0), V(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = I, oe = D),
|
|
3276
|
+
be == null || be(!0), V(void 0), K != null && K.fields ? (re = K.fields, oe = K.arch) : (re = I, oe = D), y && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = y : {
|
|
3277
3277
|
values: q,
|
|
3278
3278
|
defaultGetCalled: pe
|
|
3279
3279
|
} = await qo({
|
|
@@ -3396,12 +3396,12 @@ function Ol(e, t) {
|
|
|
3396
3396
|
});
|
|
3397
3397
|
B.current = oe, X.current = re;
|
|
3398
3398
|
}
|
|
3399
|
-
h && await h([ce()]), !
|
|
3399
|
+
h && await h([ce()]), !g && q && (se == null || se(ce(), Ye(), ae()));
|
|
3400
3400
|
}, zo = async (K) => {
|
|
3401
3401
|
const {
|
|
3402
3402
|
callOnSubmitSucceed: q = !0
|
|
3403
3403
|
} = K || {};
|
|
3404
|
-
!
|
|
3404
|
+
!g && q && (se == null || se(ce(), Ye(), ae()));
|
|
3405
3405
|
}, Qt = async (K) => {
|
|
3406
3406
|
let q = !1;
|
|
3407
3407
|
const {
|
|
@@ -3570,7 +3570,7 @@ function Ol(e, t) {
|
|
|
3570
3570
|
...q
|
|
3571
3571
|
}
|
|
3572
3572
|
});
|
|
3573
|
-
if (typeof re == "object" && re !== null && Object.keys(re).length === 0 &&
|
|
3573
|
+
if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && g)
|
|
3574
3574
|
se == null || se(ce(), Ye(), ae());
|
|
3575
3575
|
else if (re.type && re.type === "ir.actions.act_window_close")
|
|
3576
3576
|
se == null || se(ce(), Ye(), ae());
|
|
@@ -3669,7 +3669,7 @@ function Ol(e, t) {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
let oe = !1;
|
|
3671
3671
|
try {
|
|
3672
|
-
|
|
3672
|
+
(nt() || ce() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await ir({
|
|
3673
3673
|
callOnSubmitSucceed: !1
|
|
3674
3674
|
}), Z.current = !0) : await Qt({
|
|
3675
3675
|
callOnSubmitSucceed: !1
|
|
@@ -3775,11 +3775,11 @@ const Zt = bt(Ol), Xt = (e) => {
|
|
|
3775
3775
|
...f
|
|
3776
3776
|
} = e, {
|
|
3777
3777
|
modalWidth: c
|
|
3778
|
-
} = hn(), [d, u] = _(i), [m,
|
|
3778
|
+
} = hn(), [d, u] = _(i), [m, y] = _(!1), [p, h] = _();
|
|
3779
3779
|
ge(() => {
|
|
3780
|
-
a &&
|
|
3780
|
+
a && g();
|
|
3781
3781
|
}, [l, a]);
|
|
3782
|
-
async function
|
|
3782
|
+
async function g() {
|
|
3783
3783
|
const {
|
|
3784
3784
|
action_id: b,
|
|
3785
3785
|
res_id: A,
|
|
@@ -3791,7 +3791,7 @@ const Zt = bt(Ol), Xt = (e) => {
|
|
|
3791
3791
|
view_id: E,
|
|
3792
3792
|
res_id: A || !1
|
|
3793
3793
|
});
|
|
3794
|
-
|
|
3794
|
+
y(x !== !1), x !== !1 && h(x);
|
|
3795
3795
|
}
|
|
3796
3796
|
async function v() {
|
|
3797
3797
|
if (m && p)
|
|
@@ -3812,7 +3812,7 @@ const Zt = bt(Ol), Xt = (e) => {
|
|
|
3812
3812
|
res_id: A || !1
|
|
3813
3813
|
});
|
|
3814
3814
|
}
|
|
3815
|
-
|
|
3815
|
+
y(!m);
|
|
3816
3816
|
}
|
|
3817
3817
|
function C() {
|
|
3818
3818
|
return /* @__PURE__ */ P(Ce, {
|
|
@@ -4063,15 +4063,15 @@ const {
|
|
|
4063
4063
|
const [m] = u;
|
|
4064
4064
|
return i ? !i.includes(m) : !0;
|
|
4065
4065
|
}).map((u) => {
|
|
4066
|
-
const [m,
|
|
4066
|
+
const [m, y] = u;
|
|
4067
4067
|
return /* @__PURE__ */ n(El, {
|
|
4068
|
-
value:
|
|
4069
|
-
children:
|
|
4068
|
+
value: y,
|
|
4069
|
+
children: y
|
|
4070
4070
|
}, m);
|
|
4071
4071
|
}), c = a && !s ? Nl : Ct;
|
|
4072
4072
|
function d(u) {
|
|
4073
|
-
const m = u.map((
|
|
4074
|
-
const p = l.find(([h,
|
|
4073
|
+
const m = u.map((y) => {
|
|
4074
|
+
const p = l.find(([h, g]) => y === g);
|
|
4075
4075
|
return p && p[0];
|
|
4076
4076
|
});
|
|
4077
4077
|
if (m.length === 0) {
|
|
@@ -4237,17 +4237,17 @@ function Fo(e) {
|
|
|
4237
4237
|
setSearchFilterHeight: d,
|
|
4238
4238
|
searchError: u,
|
|
4239
4239
|
searchValues: m,
|
|
4240
|
-
showLimitOptions:
|
|
4241
|
-
} = e, [p, h] = _(), [
|
|
4240
|
+
showLimitOptions: y = !0
|
|
4241
|
+
} = e, [p, h] = _(), [g, v] = _(), [C, R] = _(!1), b = ue(), {
|
|
4242
4242
|
token: A
|
|
4243
4243
|
} = jl(), [S] = lt.useForm();
|
|
4244
4244
|
ge(() => {
|
|
4245
4245
|
S.setFieldsValue(m);
|
|
4246
4246
|
}, [m]);
|
|
4247
4247
|
const E = () => {
|
|
4248
|
-
if (!
|
|
4248
|
+
if (!g)
|
|
4249
4249
|
return;
|
|
4250
|
-
const F = C ?
|
|
4250
|
+
const F = C ? g : p, w = F == null ? void 0 : F.rows;
|
|
4251
4251
|
return w == null ? void 0 : w.map((L, V) => /* @__PURE__ */ n(Ce, {
|
|
4252
4252
|
children: L.map((O, M) => /* @__PURE__ */ n(de, {
|
|
4253
4253
|
xs: 24,
|
|
@@ -4302,7 +4302,7 @@ function Fo(e) {
|
|
|
4302
4302
|
offset: a,
|
|
4303
4303
|
limit: l
|
|
4304
4304
|
},
|
|
4305
|
-
children: [x, C &&
|
|
4305
|
+
children: [x, C && y && /* @__PURE__ */ n(Bl, {
|
|
4306
4306
|
onLimitChange: f
|
|
4307
4307
|
}), /* @__PURE__ */ n(Hl, {
|
|
4308
4308
|
advancedFilter: C,
|
|
@@ -4453,10 +4453,10 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4453
4453
|
id: t,
|
|
4454
4454
|
model: r,
|
|
4455
4455
|
context: i = {}
|
|
4456
|
-
} = e, [o, s] = _(!1), [a, l] = _(!1), [f, c] = _(!1), [d, u] = _(), [m,
|
|
4456
|
+
} = e, [o, s] = _(!1), [a, l] = _(!1), [f, c] = _(!1), [d, u] = _(), [m, y] = _(), {
|
|
4457
4457
|
t: p
|
|
4458
4458
|
} = W(ye), h = W(dt), {
|
|
4459
|
-
openRelate:
|
|
4459
|
+
openRelate: g
|
|
4460
4460
|
} = h || {}, v = W(Lt), {
|
|
4461
4461
|
processAction: C
|
|
4462
4462
|
} = v || {};
|
|
@@ -4486,7 +4486,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4486
4486
|
}))[0]), $ = {
|
|
4487
4487
|
...It($, k),
|
|
4488
4488
|
active_id: t
|
|
4489
|
-
},
|
|
4489
|
+
}, y($), c(!1);
|
|
4490
4490
|
} catch (M) {
|
|
4491
4491
|
c(!1), ze(M);
|
|
4492
4492
|
return;
|
|
@@ -4537,7 +4537,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4537
4537
|
const w = d.toolbar.relate.find((L) => L.id === parseInt(F.key));
|
|
4538
4538
|
if (!w)
|
|
4539
4539
|
return;
|
|
4540
|
-
|
|
4540
|
+
g({
|
|
4541
4541
|
relateData: w,
|
|
4542
4542
|
values: m,
|
|
4543
4543
|
fields: d.fields,
|
|
@@ -4615,13 +4615,13 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4615
4615
|
if (!t || t && o)
|
|
4616
4616
|
return;
|
|
4617
4617
|
l(!0);
|
|
4618
|
-
const
|
|
4618
|
+
const y = await H.getHandler().execute({
|
|
4619
4619
|
action: "name_get",
|
|
4620
4620
|
payload: [d],
|
|
4621
4621
|
model: f,
|
|
4622
4622
|
context: r
|
|
4623
4623
|
});
|
|
4624
|
-
s(
|
|
4624
|
+
s(y[0][1]), l(!1);
|
|
4625
4625
|
}, [t, o]);
|
|
4626
4626
|
if (ge(() => {
|
|
4627
4627
|
u();
|
|
@@ -4646,7 +4646,7 @@ var _o = { exports: {} };
|
|
|
4646
4646
|
(function(r, i) {
|
|
4647
4647
|
e.exports = i();
|
|
4648
4648
|
})(ft, function() {
|
|
4649
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter",
|
|
4649
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", f = "hour", c = "day", d = "week", u = "month", m = "quarter", y = "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+)?$/, v = /\[([^\]]+)]|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, C = { 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(V) {
|
|
4650
4650
|
var O = ["th", "st", "nd", "rd"], M = V % 100;
|
|
4651
4651
|
return "[" + V + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
|
|
4652
4652
|
} }, R = function(V, O, M) {
|
|
@@ -4663,7 +4663,7 @@ var _o = { exports: {} };
|
|
|
4663
4663
|
}, a: function(V) {
|
|
4664
4664
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
|
4665
4665
|
}, p: function(V) {
|
|
4666
|
-
return { M: u, y
|
|
4666
|
+
return { M: u, y, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
|
4667
4667
|
}, u: function(V) {
|
|
4668
4668
|
return V === void 0;
|
|
4669
4669
|
} }, A = "en", S = {};
|
|
@@ -4709,7 +4709,7 @@ var _o = { exports: {} };
|
|
|
4709
4709
|
if (D instanceof Date)
|
|
4710
4710
|
return new Date(D);
|
|
4711
4711
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
4712
|
-
var I = D.match(
|
|
4712
|
+
var I = D.match(g);
|
|
4713
4713
|
if (I) {
|
|
4714
4714
|
var j = I[2] - 1 || 0, G = (I[7] || "0").substring(0, 3);
|
|
4715
4715
|
return $ ? new Date(Date.UTC(I[1], j, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, G)) : new Date(I[1], j, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, G);
|
|
@@ -4745,7 +4745,7 @@ var _o = { exports: {} };
|
|
|
4745
4745
|
return F.w(D.toDate()[ne].apply(D.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), D);
|
|
4746
4746
|
}, U = this.$W, Y = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
4747
4747
|
switch (I) {
|
|
4748
|
-
case
|
|
4748
|
+
case y:
|
|
4749
4749
|
return $ ? j(1, 0) : j(31, 11);
|
|
4750
4750
|
case u:
|
|
4751
4751
|
return $ ? j(1, Y) : j(0, Y + 1);
|
|
@@ -4767,8 +4767,8 @@ var _o = { exports: {} };
|
|
|
4767
4767
|
}, O.endOf = function(M) {
|
|
4768
4768
|
return this.startOf(M, !1);
|
|
4769
4769
|
}, O.$set = function(M, k) {
|
|
4770
|
-
var D, $ = F.p(M), I = "set" + (this.$u ? "UTC" : ""), j = (D = {}, D[c] = I + "Date", D[p] = I + "Date", D[u] = I + "Month", D[
|
|
4771
|
-
if ($ === u || $ ===
|
|
4770
|
+
var D, $ = F.p(M), I = "set" + (this.$u ? "UTC" : ""), j = (D = {}, D[c] = I + "Date", D[p] = I + "Date", D[u] = I + "Month", D[y] = I + "FullYear", D[f] = I + "Hours", D[l] = I + "Minutes", D[a] = I + "Seconds", D[s] = I + "Milliseconds", D)[$], G = $ === c ? this.$D + (k - this.$W) : k;
|
|
4771
|
+
if ($ === u || $ === y) {
|
|
4772
4772
|
var U = this.clone().set(p, 1);
|
|
4773
4773
|
U.$d[j](G), U.init(), this.$d = U.set(p, Math.min(this.$D, U.daysInMonth())).$d;
|
|
4774
4774
|
} else
|
|
@@ -4787,8 +4787,8 @@ var _o = { exports: {} };
|
|
|
4787
4787
|
};
|
|
4788
4788
|
if (I === u)
|
|
4789
4789
|
return this.set(u, this.$M + M);
|
|
4790
|
-
if (I ===
|
|
4791
|
-
return this.set(
|
|
4790
|
+
if (I === y)
|
|
4791
|
+
return this.set(y, this.$y + M);
|
|
4792
4792
|
if (I === c)
|
|
4793
4793
|
return j(1);
|
|
4794
4794
|
if (I === d)
|
|
@@ -4816,7 +4816,7 @@ var _o = { exports: {} };
|
|
|
4816
4816
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4817
4817
|
}, O.diff = function(M, k, D) {
|
|
4818
4818
|
var $, I = F.p(k), j = T(M), G = (j.utcOffset() - this.utcOffset()) * i, U = this - j, Y = F.m(this, j);
|
|
4819
|
-
return Y = ($ = {}, $[
|
|
4819
|
+
return Y = ($ = {}, $[y] = Y / 12, $[u] = Y, $[m] = Y / 3, $[d] = (U - G) / 6048e5, $[c] = (U - G) / 864e5, $[f] = U / o, $[l] = U / i, $[a] = U / r, $)[I] || U, D ? Y : F.a(Y);
|
|
4820
4820
|
}, O.daysInMonth = function() {
|
|
4821
4821
|
return this.endOf(u).$D;
|
|
4822
4822
|
}, O.$locale = function() {
|
|
@@ -4838,7 +4838,7 @@ var _o = { exports: {} };
|
|
|
4838
4838
|
return this.$d.toUTCString();
|
|
4839
4839
|
}, V;
|
|
4840
4840
|
}(), L = w.prototype;
|
|
4841
|
-
return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y",
|
|
4841
|
+
return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", y], ["$D", p]].forEach(function(V) {
|
|
4842
4842
|
L[V[1]] = function(O) {
|
|
4843
4843
|
return this.$g(O, V[0], V[1]);
|
|
4844
4844
|
};
|
|
@@ -4892,22 +4892,22 @@ var Ao = { exports: {} };
|
|
|
4892
4892
|
return function(r, i, o) {
|
|
4893
4893
|
var s = i.prototype, a = function(u) {
|
|
4894
4894
|
return u && (u.indexOf ? u : u.s);
|
|
4895
|
-
}, l = function(u, m,
|
|
4896
|
-
var
|
|
4895
|
+
}, l = function(u, m, y, p, h) {
|
|
4896
|
+
var g = u.name ? u : u.$locale(), v = a(g[m]), C = a(g[y]), R = v || C.map(function(A) {
|
|
4897
4897
|
return A.slice(0, p);
|
|
4898
4898
|
});
|
|
4899
4899
|
if (!h)
|
|
4900
4900
|
return R;
|
|
4901
|
-
var b =
|
|
4901
|
+
var b = g.weekStart;
|
|
4902
4902
|
return R.map(function(A, S) {
|
|
4903
4903
|
return R[(S + (b || 0)) % 7];
|
|
4904
4904
|
});
|
|
4905
4905
|
}, f = function() {
|
|
4906
4906
|
return o.Ls[o.locale()];
|
|
4907
4907
|
}, c = function(u, m) {
|
|
4908
|
-
return u.formats[m] || function(
|
|
4909
|
-
return
|
|
4910
|
-
return h ||
|
|
4908
|
+
return u.formats[m] || function(y) {
|
|
4909
|
+
return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, g) {
|
|
4910
|
+
return h || g.slice(1);
|
|
4911
4911
|
});
|
|
4912
4912
|
}(u.formats[m.toUpperCase()]);
|
|
4913
4913
|
}, d = function() {
|
|
@@ -5014,7 +5014,7 @@ const ut = {
|
|
|
5014
5014
|
return;
|
|
5015
5015
|
}
|
|
5016
5016
|
u(p.format(ut[d].dateInternalFormat));
|
|
5017
|
-
},
|
|
5017
|
+
}, y = t ? at(t, ut[d].dateInternalFormat) : void 0;
|
|
5018
5018
|
return /* @__PURE__ */ n(Pn, {
|
|
5019
5019
|
style: {
|
|
5020
5020
|
width: "100%",
|
|
@@ -5026,7 +5026,7 @@ const ut = {
|
|
|
5026
5026
|
picker: "date",
|
|
5027
5027
|
showTime: o,
|
|
5028
5028
|
format: ut[d].dateDisplayFormat,
|
|
5029
|
-
value:
|
|
5029
|
+
value: y,
|
|
5030
5030
|
onChange: m
|
|
5031
5031
|
});
|
|
5032
5032
|
}, ec = Et.div`
|
|
@@ -5146,10 +5146,10 @@ function gn(e) {
|
|
|
5146
5146
|
rowSelection: d,
|
|
5147
5147
|
scrollY: u,
|
|
5148
5148
|
colorsForResults: m = {},
|
|
5149
|
-
statusForResults:
|
|
5149
|
+
statusForResults: y = {},
|
|
5150
5150
|
onChangeSort: p,
|
|
5151
5151
|
sorter: h,
|
|
5152
|
-
onFetchChildrenForRecord:
|
|
5152
|
+
onFetchChildrenForRecord: g,
|
|
5153
5153
|
childField: v,
|
|
5154
5154
|
rootTree: C = !1,
|
|
5155
5155
|
context: R,
|
|
@@ -5265,10 +5265,10 @@ function gn(e) {
|
|
|
5265
5265
|
color: m[N.id]
|
|
5266
5266
|
};
|
|
5267
5267
|
},
|
|
5268
|
-
onRowStatus: Ea(
|
|
5269
|
-
if (
|
|
5268
|
+
onRowStatus: Ea(y) ? (N) => {
|
|
5269
|
+
if (y[N.id])
|
|
5270
5270
|
return /* @__PURE__ */ n(di, {
|
|
5271
|
-
color:
|
|
5271
|
+
color: y[N.id]
|
|
5272
5272
|
});
|
|
5273
5273
|
} : void 0,
|
|
5274
5274
|
onRowDoubleClick: f,
|
|
@@ -5277,11 +5277,11 @@ function gn(e) {
|
|
|
5277
5277
|
onChangeSort: p,
|
|
5278
5278
|
sorter: h,
|
|
5279
5279
|
readonly: b,
|
|
5280
|
-
expandableOpts:
|
|
5280
|
+
expandableOpts: g ? {
|
|
5281
5281
|
expandIcon: Ci,
|
|
5282
5282
|
collapseIcon: Si,
|
|
5283
5283
|
loadingIcon: st,
|
|
5284
|
-
onFetchChildrenForRecord:
|
|
5284
|
+
onFetchChildrenForRecord: g,
|
|
5285
5285
|
childField: v
|
|
5286
5286
|
} : void 0
|
|
5287
5287
|
}), G()]
|
|
@@ -5300,7 +5300,7 @@ function hc(e, t) {
|
|
|
5300
5300
|
rootTree: d = !1,
|
|
5301
5301
|
parentContext: u = {},
|
|
5302
5302
|
onChangeSelectedRowKeys: m
|
|
5303
|
-
} = e, [
|
|
5303
|
+
} = e, [y, p] = _(!1), [h, g] = _(!1), v = ue(!1), [C, R] = _(), [b, A] = _(), [S, E] = _(), [x, T] = _(), [F, w] = _(200), L = ue(), {
|
|
5304
5304
|
height: V
|
|
5305
5305
|
} = hn(), O = W(Lt), {
|
|
5306
5306
|
processAction: M
|
|
@@ -5376,9 +5376,9 @@ function hc(e, t) {
|
|
|
5376
5376
|
!h || c && (v.current = !1, Se());
|
|
5377
5377
|
}, [$e, Ke, h, c, a]);
|
|
5378
5378
|
const et = async () => {
|
|
5379
|
-
|
|
5379
|
+
g(!1), p(!0), T(void 0), Z == null || Z(!0);
|
|
5380
5380
|
try {
|
|
5381
|
-
await Ye(),
|
|
5381
|
+
await Ye(), g(!0);
|
|
5382
5382
|
} catch (Ae) {
|
|
5383
5383
|
T(Ae), Z == null || Z(!1);
|
|
5384
5384
|
} finally {
|
|
@@ -5507,7 +5507,7 @@ function hc(e, t) {
|
|
|
5507
5507
|
style: c ? {} : {
|
|
5508
5508
|
display: "none"
|
|
5509
5509
|
},
|
|
5510
|
-
children:
|
|
5510
|
+
children: y ? /* @__PURE__ */ n(Re, {}) : nt()
|
|
5511
5511
|
});
|
|
5512
5512
|
}
|
|
5513
5513
|
const Vo = bt(hc), ko = (e) => {
|
|
@@ -5524,26 +5524,26 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5524
5524
|
modalHeight: u
|
|
5525
5525
|
} = hn(), {
|
|
5526
5526
|
t: m
|
|
5527
|
-
} = W(ye), [
|
|
5527
|
+
} = W(ye), [y, p] = _([]), h = async () => {
|
|
5528
5528
|
await new Promise((R) => setTimeout(R, 5)), r();
|
|
5529
|
-
},
|
|
5529
|
+
}, g = async (R) => {
|
|
5530
5530
|
const {
|
|
5531
5531
|
id: b
|
|
5532
5532
|
} = R;
|
|
5533
5533
|
i([b]);
|
|
5534
5534
|
};
|
|
5535
5535
|
function v() {
|
|
5536
|
-
if (
|
|
5536
|
+
if (y.length === 0) {
|
|
5537
5537
|
h();
|
|
5538
5538
|
return;
|
|
5539
5539
|
}
|
|
5540
|
-
i(
|
|
5540
|
+
i(y);
|
|
5541
5541
|
}
|
|
5542
5542
|
const C = () => /* @__PURE__ */ P(te, {
|
|
5543
5543
|
children: [/* @__PURE__ */ n(Vo, {
|
|
5544
5544
|
model: o,
|
|
5545
5545
|
nameSearch: s,
|
|
5546
|
-
onRowClicked:
|
|
5546
|
+
onRowClicked: g,
|
|
5547
5547
|
treeScrollY: u * 0.3,
|
|
5548
5548
|
domain: a,
|
|
5549
5549
|
parentContext: l,
|
|
@@ -5646,7 +5646,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5646
5646
|
domain: c
|
|
5647
5647
|
} = i, d = o && !a ? {
|
|
5648
5648
|
backgroundColor: Mo.colorPrimaryBg
|
|
5649
|
-
} : void 0, [u, m] = _(!1), [
|
|
5649
|
+
} : void 0, [u, m] = _(!1), [y, p] = _(!1), [h, g] = _(!1), [v, C] = _(), R = ue(!1), [b, A] = _(""), S = ue(), E = W(Le), {
|
|
5650
5650
|
domain: x,
|
|
5651
5651
|
getValues: T,
|
|
5652
5652
|
getFields: F,
|
|
@@ -5668,7 +5668,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5668
5668
|
$([void 0, ""]);
|
|
5669
5669
|
return;
|
|
5670
5670
|
}
|
|
5671
|
-
|
|
5671
|
+
g(!0);
|
|
5672
5672
|
try {
|
|
5673
5673
|
if (V.current && V.current.length > 0)
|
|
5674
5674
|
G(S.current);
|
|
@@ -5686,7 +5686,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5686
5686
|
} catch (B) {
|
|
5687
5687
|
sn(B);
|
|
5688
5688
|
} finally {
|
|
5689
|
-
|
|
5689
|
+
g(!1);
|
|
5690
5690
|
}
|
|
5691
5691
|
}
|
|
5692
5692
|
}, G = async (B) => {
|
|
@@ -5705,7 +5705,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5705
5705
|
}
|
|
5706
5706
|
C(B), m(!0);
|
|
5707
5707
|
}, U = async (B) => {
|
|
5708
|
-
|
|
5708
|
+
g(!0);
|
|
5709
5709
|
try {
|
|
5710
5710
|
const X = await H.getHandler().execute({
|
|
5711
5711
|
action: "name_get",
|
|
@@ -5720,7 +5720,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5720
5720
|
} catch (X) {
|
|
5721
5721
|
sn(X);
|
|
5722
5722
|
} finally {
|
|
5723
|
-
|
|
5723
|
+
g(!1);
|
|
5724
5724
|
}
|
|
5725
5725
|
};
|
|
5726
5726
|
async function Y() {
|
|
@@ -5818,7 +5818,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5818
5818
|
...l
|
|
5819
5819
|
},
|
|
5820
5820
|
id: t && t[0],
|
|
5821
|
-
visible:
|
|
5821
|
+
visible: y,
|
|
5822
5822
|
onSubmitSucceed: (B) => {
|
|
5823
5823
|
p(!1), U(B);
|
|
5824
5824
|
},
|
|
@@ -5864,7 +5864,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5864
5864
|
field: c,
|
|
5865
5865
|
operator: d,
|
|
5866
5866
|
manualIds: u
|
|
5867
|
-
} = e, [m,
|
|
5867
|
+
} = e, [m, y] = _(!1), [p, h] = _(), [g, v] = _(), [C, R] = _(), [b, A] = _(0), [S, E] = _(0), [x, T] = _(), [F, w] = _(), [L, V] = _();
|
|
5868
5868
|
ge(() => {
|
|
5869
5869
|
k();
|
|
5870
5870
|
}, [t, o]);
|
|
@@ -5924,7 +5924,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5924
5924
|
});
|
|
5925
5925
|
}
|
|
5926
5926
|
async function k() {
|
|
5927
|
-
|
|
5927
|
+
y(!0);
|
|
5928
5928
|
let D, $;
|
|
5929
5929
|
try {
|
|
5930
5930
|
const I = await O({
|
|
@@ -5969,7 +5969,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5969
5969
|
} catch (I) {
|
|
5970
5970
|
V(JSON.stringify(I));
|
|
5971
5971
|
}
|
|
5972
|
-
|
|
5972
|
+
y(!1);
|
|
5973
5973
|
}
|
|
5974
5974
|
return L ? /* @__PURE__ */ n(tt, {
|
|
5975
5975
|
className: "mt-10",
|
|
@@ -5996,7 +5996,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5996
5996
|
}) => a ? /* @__PURE__ */ n(Sc, {
|
|
5997
5997
|
value: p,
|
|
5998
5998
|
total: C,
|
|
5999
|
-
percent:
|
|
5999
|
+
percent: g,
|
|
6000
6000
|
measureRef: D,
|
|
6001
6001
|
height: b,
|
|
6002
6002
|
width: S,
|
|
@@ -6086,10 +6086,10 @@ function Sc({
|
|
|
6086
6086
|
useGrouping: !0
|
|
6087
6087
|
})}` : `${u}`;
|
|
6088
6088
|
f && (m += " " + f);
|
|
6089
|
-
const
|
|
6089
|
+
const y = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
6090
6090
|
useGrouping: !0
|
|
6091
6091
|
})}%`;
|
|
6092
|
-
let p = Lo(
|
|
6092
|
+
let p = Lo(y, `bold ${Math.floor(d * 1.03)}px sans-serif`);
|
|
6093
6093
|
l && (p = p * 1.5), (p >= r * 0.85 || d * 2 < c) && (d = r * 0.85 / p * d);
|
|
6094
6094
|
const h = l && ct(l, {
|
|
6095
6095
|
style: {
|
|
@@ -6283,7 +6283,7 @@ const {
|
|
|
6283
6283
|
limit: s,
|
|
6284
6284
|
uninformedString: a,
|
|
6285
6285
|
manualIds: l
|
|
6286
|
-
} = e, [f, c] = _(!1), [d, u] = _(), [m,
|
|
6286
|
+
} = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), [p, h] = _(), [g, v] = _("line");
|
|
6287
6287
|
return St(() => {
|
|
6288
6288
|
(async () => {
|
|
6289
6289
|
c(!0), u(void 0);
|
|
@@ -6324,7 +6324,7 @@ const {
|
|
|
6324
6324
|
uninformedString: a
|
|
6325
6325
|
}
|
|
6326
6326
|
});
|
|
6327
|
-
|
|
6327
|
+
y(S);
|
|
6328
6328
|
} catch (S) {
|
|
6329
6329
|
u("Error processing graph data: " + S), c(!1);
|
|
6330
6330
|
return;
|
|
@@ -6334,7 +6334,7 @@ const {
|
|
|
6334
6334
|
}, [o, t, s, i, r]), {
|
|
6335
6335
|
loading: f,
|
|
6336
6336
|
error: d,
|
|
6337
|
-
type:
|
|
6337
|
+
type: g,
|
|
6338
6338
|
values: m,
|
|
6339
6339
|
evaluatedEntries: p
|
|
6340
6340
|
};
|
|
@@ -6432,11 +6432,11 @@ const kc = {
|
|
|
6432
6432
|
type: "info"
|
|
6433
6433
|
});
|
|
6434
6434
|
const {
|
|
6435
|
-
data:
|
|
6435
|
+
data: y,
|
|
6436
6436
|
isGroup: p,
|
|
6437
6437
|
isStack: h
|
|
6438
|
-
} = d,
|
|
6439
|
-
return
|
|
6438
|
+
} = d, g = kc[u];
|
|
6439
|
+
return g ? /* @__PURE__ */ P("div", {
|
|
6440
6440
|
style: {
|
|
6441
6441
|
padding: "1rem"
|
|
6442
6442
|
},
|
|
@@ -6447,10 +6447,10 @@ const kc = {
|
|
|
6447
6447
|
children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString("es-ES", {
|
|
6448
6448
|
useGrouping: !0
|
|
6449
6449
|
})}`
|
|
6450
|
-
}), /* @__PURE__ */ n(
|
|
6450
|
+
}), /* @__PURE__ */ n(g, {
|
|
6451
6451
|
...Ec({
|
|
6452
6452
|
type: u,
|
|
6453
|
-
data:
|
|
6453
|
+
data: y,
|
|
6454
6454
|
isGroup: p,
|
|
6455
6455
|
isStack: h
|
|
6456
6456
|
})
|
|
@@ -6477,17 +6477,17 @@ const $c = (e, t) => {
|
|
|
6477
6477
|
domain: s,
|
|
6478
6478
|
limit: a,
|
|
6479
6479
|
manualIds: l
|
|
6480
|
-
} = e, [f, c] = _(!1), [d, u] = _(), [m,
|
|
6480
|
+
} = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), p = W(it), {
|
|
6481
6481
|
setGraphIsLoading: h = void 0
|
|
6482
6482
|
} = p || {};
|
|
6483
6483
|
xt(t, () => ({
|
|
6484
6484
|
refresh: () => {
|
|
6485
|
-
|
|
6485
|
+
g();
|
|
6486
6486
|
}
|
|
6487
6487
|
})), ge(() => {
|
|
6488
|
-
|
|
6488
|
+
g();
|
|
6489
6489
|
}, [r]);
|
|
6490
|
-
async function
|
|
6490
|
+
async function g() {
|
|
6491
6491
|
c(!0), h == null || h(!0);
|
|
6492
6492
|
try {
|
|
6493
6493
|
const v = await H.getHandler().getView({
|
|
@@ -6496,7 +6496,7 @@ const $c = (e, t) => {
|
|
|
6496
6496
|
type: "graph",
|
|
6497
6497
|
context: o
|
|
6498
6498
|
});
|
|
6499
|
-
|
|
6499
|
+
y(v.arch);
|
|
6500
6500
|
const C = Bn(v.arch);
|
|
6501
6501
|
u(C);
|
|
6502
6502
|
} catch (v) {
|
|
@@ -6606,11 +6606,11 @@ const $c = (e, t) => {
|
|
|
6606
6606
|
onNextItem: d,
|
|
6607
6607
|
isMany2Many: u,
|
|
6608
6608
|
onSearchItem: m,
|
|
6609
|
-
selectedRowKeys:
|
|
6609
|
+
selectedRowKeys: y,
|
|
6610
6610
|
showCreateButton: p,
|
|
6611
6611
|
showToggleButton: h
|
|
6612
6612
|
} = e, {
|
|
6613
|
-
token:
|
|
6613
|
+
token: g
|
|
6614
6614
|
} = Bc();
|
|
6615
6615
|
function v() {
|
|
6616
6616
|
return /* @__PURE__ */ n("div", {
|
|
@@ -6621,8 +6621,8 @@ const $c = (e, t) => {
|
|
|
6621
6621
|
return /* @__PURE__ */ n("div", {
|
|
6622
6622
|
className: "flex flex-grow h-8 text-white",
|
|
6623
6623
|
style: {
|
|
6624
|
-
borderRadius:
|
|
6625
|
-
backgroundColor:
|
|
6624
|
+
borderRadius: g.borderRadius,
|
|
6625
|
+
backgroundColor: g.colorPrimaryActive
|
|
6626
6626
|
},
|
|
6627
6627
|
children: /* @__PURE__ */ n("div", {
|
|
6628
6628
|
className: "flex flex-col items-center justify-center h-full",
|
|
@@ -6638,7 +6638,7 @@ const $c = (e, t) => {
|
|
|
6638
6638
|
tooltip: u ? "Unlink" : "Delete",
|
|
6639
6639
|
icon: u ? /* @__PURE__ */ n(Fi, {}) : /* @__PURE__ */ n(qn, {}),
|
|
6640
6640
|
onClick: a,
|
|
6641
|
-
disabled: l === 0 || r || s !== "form" &&
|
|
6641
|
+
disabled: l === 0 || r || s !== "form" && y.length === 0
|
|
6642
6642
|
});
|
|
6643
6643
|
}
|
|
6644
6644
|
function b() {
|
|
@@ -6713,11 +6713,11 @@ const Wc = (e) => {
|
|
|
6713
6713
|
} = W($o), d = W(Le), {
|
|
6714
6714
|
activeId: u,
|
|
6715
6715
|
getFields: m,
|
|
6716
|
-
getValues:
|
|
6716
|
+
getValues: y,
|
|
6717
6717
|
getContext: p,
|
|
6718
6718
|
domain: h
|
|
6719
6719
|
} = d || {}, {
|
|
6720
|
-
lang:
|
|
6720
|
+
lang: g,
|
|
6721
6721
|
t: v
|
|
6722
6722
|
} = W(ye), [C, R] = _(!1), [b, A] = _(!1), [S, E] = _(), [x, T] = _(!1), [F, w] = _(!1), [L, V] = _(), [O, M] = _([]), [k, D] = _(!1), $ = ue([]), [I, j] = _(), G = ue(), [U, Y] = _(void 0), {
|
|
6723
6723
|
readOnly: z,
|
|
@@ -6780,7 +6780,7 @@ const Wc = (e) => {
|
|
|
6780
6780
|
domain: X,
|
|
6781
6781
|
values: $t({
|
|
6782
6782
|
fields: m(),
|
|
6783
|
-
values:
|
|
6783
|
+
values: y()
|
|
6784
6784
|
}),
|
|
6785
6785
|
fields: m(),
|
|
6786
6786
|
context: p()
|
|
@@ -6829,7 +6829,7 @@ const Wc = (e) => {
|
|
|
6829
6829
|
he(ve);
|
|
6830
6830
|
}, be = (Q) => {
|
|
6831
6831
|
C ? Jt({
|
|
6832
|
-
lang:
|
|
6832
|
+
lang: g,
|
|
6833
6833
|
onOk: () => {
|
|
6834
6834
|
Ee(), Q(), R(!1);
|
|
6835
6835
|
}
|
|
@@ -6837,7 +6837,7 @@ const Wc = (e) => {
|
|
|
6837
6837
|
}, $e = () => {
|
|
6838
6838
|
if (ne) {
|
|
6839
6839
|
Hc({
|
|
6840
|
-
lang:
|
|
6840
|
+
lang: g,
|
|
6841
6841
|
onOk: () => {
|
|
6842
6842
|
a === "form" ? xe() : Ve();
|
|
6843
6843
|
}
|
|
@@ -6845,7 +6845,7 @@ const Wc = (e) => {
|
|
|
6845
6845
|
return;
|
|
6846
6846
|
}
|
|
6847
6847
|
Nc({
|
|
6848
|
-
lang:
|
|
6848
|
+
lang: g,
|
|
6849
6849
|
onOk: () => {
|
|
6850
6850
|
a === "form" ? xe() : Ve();
|
|
6851
6851
|
}
|
|
@@ -7080,7 +7080,7 @@ const Wc = (e) => {
|
|
|
7080
7080
|
children: [/* @__PURE__ */ n(jc, {
|
|
7081
7081
|
mode: a,
|
|
7082
7082
|
title: Be(),
|
|
7083
|
-
readOnly: z
|
|
7083
|
+
readOnly: z,
|
|
7084
7084
|
isMany2Many: ne,
|
|
7085
7085
|
formHasChanges: C,
|
|
7086
7086
|
totalItems: J.length,
|
|
@@ -7139,13 +7139,13 @@ const Wc = (e) => {
|
|
|
7139
7139
|
context: a
|
|
7140
7140
|
} = t;
|
|
7141
7141
|
let l;
|
|
7142
|
-
const [f, c] = _(!0), [d, u] = _(), [m,
|
|
7142
|
+
const [f, c] = _(!0), [d, u] = _(), [m, y] = _(/* @__PURE__ */ new Map()), p = W(Le), {
|
|
7143
7143
|
getContext: h
|
|
7144
7144
|
} = p || {};
|
|
7145
7145
|
St(() => {
|
|
7146
7146
|
v();
|
|
7147
7147
|
}, [t]);
|
|
7148
|
-
const
|
|
7148
|
+
const g = async (R) => o && o[R] ? o[R] : await H.getHandler().getView({
|
|
7149
7149
|
model: i,
|
|
7150
7150
|
type: R,
|
|
7151
7151
|
context: {
|
|
@@ -7157,13 +7157,13 @@ const Wc = (e) => {
|
|
|
7157
7157
|
try {
|
|
7158
7158
|
if (r && r.length > 0) {
|
|
7159
7159
|
for (const R of r) {
|
|
7160
|
-
const b = await
|
|
7160
|
+
const b = await g(R);
|
|
7161
7161
|
m.set(R, b);
|
|
7162
7162
|
}
|
|
7163
|
-
|
|
7163
|
+
y(m);
|
|
7164
7164
|
} else {
|
|
7165
|
-
const R = await
|
|
7166
|
-
m.set("form", R), m.set("tree", b),
|
|
7165
|
+
const R = await g("form"), b = await g("tree");
|
|
7166
|
+
m.set("form", R), m.set("tree", b), y(m);
|
|
7167
7167
|
}
|
|
7168
7168
|
} catch (R) {
|
|
7169
7169
|
u(JSON.stringify(R));
|
|
@@ -7228,7 +7228,7 @@ const Wc = (e) => {
|
|
|
7228
7228
|
} = Gc(), f = a && !s ? {
|
|
7229
7229
|
backgroundColor: l.colorPrimaryBg
|
|
7230
7230
|
} : void 0, c = ue(), [d, u] = _(), m = W(Le), {
|
|
7231
|
-
elementHasLostFocus:
|
|
7231
|
+
elementHasLostFocus: y
|
|
7232
7232
|
} = m || {};
|
|
7233
7233
|
ge(() => {
|
|
7234
7234
|
u(Oo(r));
|
|
@@ -7239,8 +7239,8 @@ const Wc = (e) => {
|
|
|
7239
7239
|
function h(v) {
|
|
7240
7240
|
c.current = v.target.value, u(v.target.value);
|
|
7241
7241
|
}
|
|
7242
|
-
async function
|
|
7243
|
-
p(Yl(d)), await new Promise((v) => setTimeout(v, 300)),
|
|
7242
|
+
async function g() {
|
|
7243
|
+
p(Yl(d)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
|
|
7244
7244
|
}
|
|
7245
7245
|
return /* @__PURE__ */ n(ot, {
|
|
7246
7246
|
value: d,
|
|
@@ -7250,7 +7250,7 @@ const Wc = (e) => {
|
|
|
7250
7250
|
id: o,
|
|
7251
7251
|
placeholder: "00:00",
|
|
7252
7252
|
onChange: h,
|
|
7253
|
-
onBlur:
|
|
7253
|
+
onBlur: g
|
|
7254
7254
|
});
|
|
7255
7255
|
};
|
|
7256
7256
|
function No(e) {
|
|
@@ -7353,13 +7353,13 @@ const {
|
|
|
7353
7353
|
formHasChanges: c,
|
|
7354
7354
|
elementHasLostFocus: d
|
|
7355
7355
|
} = s || {}, [u, m] = _(!1), {
|
|
7356
|
-
t:
|
|
7356
|
+
t: y
|
|
7357
7357
|
} = W(ye);
|
|
7358
7358
|
return a ? /* @__PURE__ */ P(te, {
|
|
7359
7359
|
children: [/* @__PURE__ */ n("div", {
|
|
7360
7360
|
onClick: () => {
|
|
7361
7361
|
if (c != null && c()) {
|
|
7362
|
-
mt(
|
|
7362
|
+
mt(y("saveBeforeTranslate"));
|
|
7363
7363
|
return;
|
|
7364
7364
|
}
|
|
7365
7365
|
u || m(!0);
|
|
@@ -7415,12 +7415,12 @@ const {
|
|
|
7415
7415
|
paddingTop: 5
|
|
7416
7416
|
},
|
|
7417
7417
|
children: /* @__PURE__ */ n(Xe, {
|
|
7418
|
-
tooltip:
|
|
7418
|
+
tooltip: y("translate"),
|
|
7419
7419
|
icon: /* @__PURE__ */ n(qr, {}),
|
|
7420
7420
|
onClick: async () => {
|
|
7421
|
-
c != null && c() ? mt(
|
|
7421
|
+
c != null && c() ? mt(y("saveBeforeTranslate")) : mt(y("enterTextBeforeTranslate"));
|
|
7422
7422
|
},
|
|
7423
|
-
children:
|
|
7423
|
+
children: y("translate")
|
|
7424
7424
|
})
|
|
7425
7425
|
})]
|
|
7426
7426
|
});
|
|
@@ -7448,25 +7448,25 @@ const {
|
|
|
7448
7448
|
onClose: a
|
|
7449
7449
|
}) => {
|
|
7450
7450
|
const l = ue({}), f = ue(/* @__PURE__ */ new Map()), c = ke(
|
|
7451
|
-
async (
|
|
7452
|
-
if (
|
|
7451
|
+
async (g) => {
|
|
7452
|
+
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7453
7453
|
mt(Oe("selectAtLeastOneField", r));
|
|
7454
7454
|
return;
|
|
7455
7455
|
}
|
|
7456
7456
|
let v = o;
|
|
7457
|
-
|
|
7457
|
+
g.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (v = [
|
|
7458
7458
|
["id", "in", i == null ? void 0 : i.map((b) => b.id)]
|
|
7459
7459
|
]);
|
|
7460
7460
|
const { datas: C } = await H.getHandler().exportData({
|
|
7461
7461
|
model: e,
|
|
7462
7462
|
fields: ld({
|
|
7463
|
-
keys:
|
|
7463
|
+
keys: g.selectedKeys,
|
|
7464
7464
|
fields: l.current
|
|
7465
7465
|
}),
|
|
7466
7466
|
domain: v,
|
|
7467
|
-
limit:
|
|
7467
|
+
limit: g.registersAmount === "all" ? 0 : s,
|
|
7468
7468
|
context: t,
|
|
7469
|
-
format:
|
|
7469
|
+
format: g.exportType
|
|
7470
7470
|
});
|
|
7471
7471
|
a(), await new Promise((b) => setTimeout(b, 200));
|
|
7472
7472
|
const R = await Rt(C);
|
|
@@ -7474,15 +7474,15 @@ const {
|
|
|
7474
7474
|
},
|
|
7475
7475
|
[r, e, o, s, t, a]
|
|
7476
7476
|
), d = ke(async () => {
|
|
7477
|
-
const
|
|
7477
|
+
const g = await H.getHandler().getFields({
|
|
7478
7478
|
model: e,
|
|
7479
7479
|
context: t,
|
|
7480
7480
|
fields: []
|
|
7481
7481
|
});
|
|
7482
|
-
return l.current["/"] =
|
|
7482
|
+
return l.current["/"] = g, kr({ fields: g });
|
|
7483
7483
|
}, [e, t, l]), u = ke(
|
|
7484
|
-
async (
|
|
7485
|
-
const C = Ln(
|
|
7484
|
+
async (g) => {
|
|
7485
|
+
const C = Ln(g, l.current)[$n(g)], R = C.relation, b = await H.getHandler().getFields({
|
|
7486
7486
|
model: R,
|
|
7487
7487
|
context: t,
|
|
7488
7488
|
fields: []
|
|
@@ -7492,20 +7492,20 @@ const {
|
|
|
7492
7492
|
parentTitle: C.string,
|
|
7493
7493
|
title: S.string
|
|
7494
7494
|
});
|
|
7495
|
-
return l.current[
|
|
7495
|
+
return l.current[g] = b, kr({
|
|
7496
7496
|
fields: b,
|
|
7497
|
-
parentKey:
|
|
7497
|
+
parentKey: g
|
|
7498
7498
|
});
|
|
7499
7499
|
},
|
|
7500
7500
|
[l.current, e, t]
|
|
7501
7501
|
), m = ke(async () => {
|
|
7502
|
-
const
|
|
7503
|
-
predefinedExports:
|
|
7502
|
+
const g = await id({ model: e, context: t }), v = await ad({
|
|
7503
|
+
predefinedExports: g,
|
|
7504
7504
|
fields: l.current,
|
|
7505
7505
|
onGetFieldChilds: u
|
|
7506
7506
|
});
|
|
7507
7507
|
return {
|
|
7508
|
-
predefinedExports:
|
|
7508
|
+
predefinedExports: g.map((R) => ({
|
|
7509
7509
|
...R,
|
|
7510
7510
|
fields: R.fields.map((b) => {
|
|
7511
7511
|
const A = $n(b.key), E = Ln(b.key, l.current)[A];
|
|
@@ -7517,19 +7517,19 @@ const {
|
|
|
7517
7517
|
})),
|
|
7518
7518
|
keysWithChilds: v
|
|
7519
7519
|
};
|
|
7520
|
-
}, [l.current]),
|
|
7521
|
-
async (
|
|
7520
|
+
}, [l.current]), y = ke(
|
|
7521
|
+
async (g) => {
|
|
7522
7522
|
const v = await h("ir.exports"), C = await h("ir.exports.line"), R = await H.getHandler().create({
|
|
7523
7523
|
model: "ir.exports",
|
|
7524
7524
|
values: {
|
|
7525
|
-
name:
|
|
7525
|
+
name: g.name,
|
|
7526
7526
|
resource: e
|
|
7527
7527
|
},
|
|
7528
7528
|
fields: v,
|
|
7529
7529
|
context: t
|
|
7530
7530
|
});
|
|
7531
7531
|
return await Promise.all(
|
|
7532
|
-
|
|
7532
|
+
g.fields.map(async (b) => await H.getHandler().create({
|
|
7533
7533
|
model: "ir.exports.line",
|
|
7534
7534
|
values: {
|
|
7535
7535
|
name: b.key,
|
|
@@ -7538,27 +7538,27 @@ const {
|
|
|
7538
7538
|
fields: C,
|
|
7539
7539
|
context: t
|
|
7540
7540
|
}))
|
|
7541
|
-
), { ...
|
|
7541
|
+
), { ...g, id: R };
|
|
7542
7542
|
},
|
|
7543
7543
|
[]
|
|
7544
7544
|
), p = ke(
|
|
7545
|
-
async (
|
|
7545
|
+
async (g) => {
|
|
7546
7546
|
await H.getHandler().delete({
|
|
7547
7547
|
model: "ir.exports",
|
|
7548
|
-
ids: [
|
|
7548
|
+
ids: [g.id]
|
|
7549
7549
|
});
|
|
7550
7550
|
},
|
|
7551
7551
|
[]
|
|
7552
7552
|
), h = ke(
|
|
7553
|
-
async (
|
|
7554
|
-
if (f.current.has(
|
|
7555
|
-
return f.current.get(
|
|
7553
|
+
async (g) => {
|
|
7554
|
+
if (f.current.has(g))
|
|
7555
|
+
return f.current.get(g);
|
|
7556
7556
|
const v = H.getHandler().getFields({
|
|
7557
|
-
model:
|
|
7557
|
+
model: g,
|
|
7558
7558
|
context: t,
|
|
7559
7559
|
fields: []
|
|
7560
7560
|
});
|
|
7561
|
-
f.current.set(
|
|
7561
|
+
f.current.set(g, v);
|
|
7562
7562
|
},
|
|
7563
7563
|
[f, t]
|
|
7564
7564
|
);
|
|
@@ -7567,7 +7567,7 @@ const {
|
|
|
7567
7567
|
onGetFieldChilds: u,
|
|
7568
7568
|
onExport: c,
|
|
7569
7569
|
onGetPredefinedExports: m,
|
|
7570
|
-
onSavePredefinedExport:
|
|
7570
|
+
onSavePredefinedExport: y,
|
|
7571
7571
|
onRemovePredefinedExport: p
|
|
7572
7572
|
};
|
|
7573
7573
|
}, kr = ({
|
|
@@ -7686,10 +7686,10 @@ const {
|
|
|
7686
7686
|
} = e, {
|
|
7687
7687
|
onExport: u,
|
|
7688
7688
|
onGetFieldChilds: m,
|
|
7689
|
-
onGetFields:
|
|
7689
|
+
onGetFields: y,
|
|
7690
7690
|
onGetPredefinedExports: p,
|
|
7691
7691
|
onSavePredefinedExport: h,
|
|
7692
|
-
onRemovePredefinedExport:
|
|
7692
|
+
onRemovePredefinedExport: g
|
|
7693
7693
|
} = nd({
|
|
7694
7694
|
model: o,
|
|
7695
7695
|
context: s,
|
|
@@ -7707,11 +7707,11 @@ const {
|
|
|
7707
7707
|
selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
|
|
7708
7708
|
totalRegisters: l,
|
|
7709
7709
|
onGetFieldChilds: m,
|
|
7710
|
-
onGetFields:
|
|
7710
|
+
onGetFields: y,
|
|
7711
7711
|
visibleRegisters: d,
|
|
7712
7712
|
onGetPredefinedExports: p,
|
|
7713
7713
|
onSavePredefinedExport: h,
|
|
7714
|
-
onRemovePredefinedExport:
|
|
7714
|
+
onRemovePredefinedExport: g
|
|
7715
7715
|
});
|
|
7716
7716
|
}, ud = (e) => {
|
|
7717
7717
|
const {
|
|
@@ -7737,31 +7737,31 @@ var Ho = { exports: {} };
|
|
|
7737
7737
|
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d\d/, s = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, l = {}, f = function(h) {
|
|
7738
7738
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
7739
7739
|
}, c = function(h) {
|
|
7740
|
-
return function(
|
|
7741
|
-
this[h] = +
|
|
7740
|
+
return function(g) {
|
|
7741
|
+
this[h] = +g;
|
|
7742
7742
|
};
|
|
7743
7743
|
}, d = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
|
7744
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
7745
|
-
if (!
|
|
7744
|
+
(this.zone || (this.zone = {})).offset = function(g) {
|
|
7745
|
+
if (!g || g === "Z")
|
|
7746
7746
|
return 0;
|
|
7747
|
-
var v =
|
|
7747
|
+
var v = g.match(/([+-]|\d\d)/g), C = 60 * v[1] + (+v[2] || 0);
|
|
7748
7748
|
return C === 0 ? 0 : v[0] === "+" ? -C : C;
|
|
7749
7749
|
}(h);
|
|
7750
7750
|
}], u = function(h) {
|
|
7751
|
-
var
|
|
7752
|
-
return
|
|
7753
|
-
}, m = function(h,
|
|
7751
|
+
var g = l[h];
|
|
7752
|
+
return g && (g.indexOf ? g : g.s.concat(g.f));
|
|
7753
|
+
}, m = function(h, g) {
|
|
7754
7754
|
var v, C = l.meridiem;
|
|
7755
7755
|
if (C) {
|
|
7756
7756
|
for (var R = 1; R <= 24; R += 1)
|
|
7757
|
-
if (h.indexOf(C(R, 0,
|
|
7757
|
+
if (h.indexOf(C(R, 0, g)) > -1) {
|
|
7758
7758
|
v = R > 12;
|
|
7759
7759
|
break;
|
|
7760
7760
|
}
|
|
7761
7761
|
} else
|
|
7762
|
-
v = h === (
|
|
7762
|
+
v = h === (g ? "pm" : "PM");
|
|
7763
7763
|
return v;
|
|
7764
|
-
},
|
|
7764
|
+
}, y = { A: [a, function(h) {
|
|
7765
7765
|
this.afternoon = m(h, !1);
|
|
7766
7766
|
}], a: [a, function(h) {
|
|
7767
7767
|
this.afternoon = m(h, !0);
|
|
@@ -7772,35 +7772,35 @@ var Ho = { exports: {} };
|
|
|
7772
7772
|
}], SSS: [/\d{3}/, function(h) {
|
|
7773
7773
|
this.milliseconds = +h;
|
|
7774
7774
|
}], s: [s, c("seconds")], ss: [s, c("seconds")], m: [s, c("minutes")], mm: [s, c("minutes")], H: [s, c("hours")], h: [s, c("hours")], HH: [s, c("hours")], hh: [s, c("hours")], D: [s, c("day")], DD: [o, c("day")], Do: [a, function(h) {
|
|
7775
|
-
var
|
|
7776
|
-
if (this.day = v[0],
|
|
7775
|
+
var g = l.ordinal, v = h.match(/\d+/);
|
|
7776
|
+
if (this.day = v[0], g)
|
|
7777
7777
|
for (var C = 1; C <= 31; C += 1)
|
|
7778
|
-
|
|
7778
|
+
g(C).replace(/\[|\]/g, "") === h && (this.day = C);
|
|
7779
7779
|
}], M: [s, c("month")], MM: [o, c("month")], MMM: [a, function(h) {
|
|
7780
|
-
var
|
|
7780
|
+
var g = u("months"), v = (u("monthsShort") || g.map(function(C) {
|
|
7781
7781
|
return C.slice(0, 3);
|
|
7782
7782
|
})).indexOf(h) + 1;
|
|
7783
7783
|
if (v < 1)
|
|
7784
7784
|
throw new Error();
|
|
7785
7785
|
this.month = v % 12 || v;
|
|
7786
7786
|
}], MMMM: [a, function(h) {
|
|
7787
|
-
var
|
|
7788
|
-
if (
|
|
7787
|
+
var g = u("months").indexOf(h) + 1;
|
|
7788
|
+
if (g < 1)
|
|
7789
7789
|
throw new Error();
|
|
7790
|
-
this.month =
|
|
7790
|
+
this.month = g % 12 || g;
|
|
7791
7791
|
}], Y: [/[+-]?\d+/, c("year")], YY: [o, function(h) {
|
|
7792
7792
|
this.year = f(h);
|
|
7793
7793
|
}], YYYY: [/\d{4}/, c("year")], Z: d, ZZ: d };
|
|
7794
7794
|
function p(h) {
|
|
7795
|
-
var
|
|
7796
|
-
|
|
7797
|
-
for (var C = (h =
|
|
7795
|
+
var g, v;
|
|
7796
|
+
g = h, v = l && l.formats;
|
|
7797
|
+
for (var C = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F, w) {
|
|
7798
7798
|
var L = w && w.toUpperCase();
|
|
7799
7799
|
return F || v[w] || r[w] || v[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(V, O, M) {
|
|
7800
7800
|
return O || M.slice(1);
|
|
7801
7801
|
});
|
|
7802
7802
|
})).match(i), R = C.length, b = 0; b < R; b += 1) {
|
|
7803
|
-
var A = C[b], S =
|
|
7803
|
+
var A = C[b], S = y[A], E = S && S[0], x = S && S[1];
|
|
7804
7804
|
C[b] = x ? { regex: E, parser: x } : A.replace(/^\[|\]$/g, "");
|
|
7805
7805
|
}
|
|
7806
7806
|
return function(T) {
|
|
@@ -7822,9 +7822,9 @@ var Ho = { exports: {} };
|
|
|
7822
7822
|
}(F), F;
|
|
7823
7823
|
};
|
|
7824
7824
|
}
|
|
7825
|
-
return function(h,
|
|
7825
|
+
return function(h, g, v) {
|
|
7826
7826
|
v.p.customParseFormat = !0, h && h.parseTwoDigitYear && (f = h.parseTwoDigitYear);
|
|
7827
|
-
var C =
|
|
7827
|
+
var C = g.prototype, R = C.parse;
|
|
7828
7828
|
C.parse = function(b) {
|
|
7829
7829
|
var A = b.date, S = b.utc, E = b.args;
|
|
7830
7830
|
this.$u = S;
|
|
@@ -7904,8 +7904,8 @@ const hd = (e) => {
|
|
|
7904
7904
|
u(void 0), c([]);
|
|
7905
7905
|
return;
|
|
7906
7906
|
}
|
|
7907
|
-
const m = t && l && l[0],
|
|
7908
|
-
c([
|
|
7907
|
+
const m = t && l && l[0], y = t && l && l[1] && parseInt(l[1]);
|
|
7908
|
+
c([y, void 0]), u(m);
|
|
7909
7909
|
}, [t]), /* @__PURE__ */ P(Ce, {
|
|
7910
7910
|
gutter: 8,
|
|
7911
7911
|
wrap: !1,
|
|
@@ -7920,9 +7920,9 @@ const hd = (e) => {
|
|
|
7920
7920
|
}),
|
|
7921
7921
|
onChange: (m) => {
|
|
7922
7922
|
u(m);
|
|
7923
|
-
let
|
|
7924
|
-
m !== d && (c([]),
|
|
7925
|
-
const p = `${m},${
|
|
7923
|
+
let y = f[0] || 0;
|
|
7924
|
+
m !== d && (c([]), y = 0);
|
|
7925
|
+
const p = `${m},${y}`;
|
|
7926
7926
|
p !== t && (r == null || r(p));
|
|
7927
7927
|
},
|
|
7928
7928
|
value: d
|
|
@@ -7939,8 +7939,8 @@ const hd = (e) => {
|
|
|
7939
7939
|
value: f,
|
|
7940
7940
|
onChange: (m) => {
|
|
7941
7941
|
c(m);
|
|
7942
|
-
const
|
|
7943
|
-
|
|
7942
|
+
const y = `${d},${m[0] || 0}`;
|
|
7943
|
+
y !== t && (r == null || r(y));
|
|
7944
7944
|
}
|
|
7945
7945
|
})
|
|
7946
7946
|
})]
|
|
@@ -7978,14 +7978,14 @@ const hd = (e) => {
|
|
|
7978
7978
|
getFieldValue: u
|
|
7979
7979
|
} = W(Le) || {}, {
|
|
7980
7980
|
t: m
|
|
7981
|
-
} = W(ye),
|
|
7981
|
+
} = W(ye), y = r ? Da(r) : "", p = (R) => {
|
|
7982
7982
|
i == null || i(R);
|
|
7983
7983
|
};
|
|
7984
7984
|
async function h() {
|
|
7985
7985
|
const R = await Rt(r), b = `data:${R == null ? void 0 : R.mime};base64,${r}`, A = document.createElement("a"), S = u(a), E = u("name");
|
|
7986
7986
|
A.href = b, A.download = S || E, A.click();
|
|
7987
7987
|
}
|
|
7988
|
-
async function
|
|
7988
|
+
async function g() {
|
|
7989
7989
|
const R = await Rt(r);
|
|
7990
7990
|
pn(r, R.mime);
|
|
7991
7991
|
}
|
|
@@ -8015,7 +8015,7 @@ const hd = (e) => {
|
|
|
8015
8015
|
type: "text",
|
|
8016
8016
|
disabled: !0,
|
|
8017
8017
|
style: f,
|
|
8018
|
-
value:
|
|
8018
|
+
value: y
|
|
8019
8019
|
})]
|
|
8020
8020
|
}), /* @__PURE__ */ n(de, {
|
|
8021
8021
|
children: /* @__PURE__ */ P(We, {
|
|
@@ -8029,7 +8029,7 @@ const hd = (e) => {
|
|
|
8029
8029
|
}), /* @__PURE__ */ n(Ie, {
|
|
8030
8030
|
icon: /* @__PURE__ */ n(Oi, {}),
|
|
8031
8031
|
disabled: !r,
|
|
8032
|
-
onClick:
|
|
8032
|
+
onClick: g,
|
|
8033
8033
|
children: m("open")
|
|
8034
8034
|
}), /* @__PURE__ */ n(Xe, {
|
|
8035
8035
|
tooltip: m("download"),
|
|
@@ -8067,7 +8067,7 @@ function tr(e) {
|
|
|
8067
8067
|
lang: f
|
|
8068
8068
|
} = W(ye);
|
|
8069
8069
|
function c() {
|
|
8070
|
-
const m = r.map((
|
|
8070
|
+
const m = r.map((y, p) => /* @__PURE__ */ n(je.Item, {
|
|
8071
8071
|
children: /* @__PURE__ */ P(Ce, {
|
|
8072
8072
|
wrap: !1,
|
|
8073
8073
|
children: [/* @__PURE__ */ n(de, {
|
|
@@ -8075,23 +8075,23 @@ function tr(e) {
|
|
|
8075
8075
|
style: {
|
|
8076
8076
|
paddingRight: 20
|
|
8077
8077
|
},
|
|
8078
|
-
children: Mr(
|
|
8078
|
+
children: Mr(y)
|
|
8079
8079
|
}), /* @__PURE__ */ n(de, {
|
|
8080
8080
|
flex: "auto",
|
|
8081
8081
|
style: {
|
|
8082
8082
|
paddingRight: 20
|
|
8083
8083
|
},
|
|
8084
|
-
children:
|
|
8084
|
+
children: y.type.charAt(0).toUpperCase() + y.type.slice(1)
|
|
8085
8085
|
}), /* @__PURE__ */ n(de, {
|
|
8086
8086
|
flex: "none",
|
|
8087
8087
|
children: /* @__PURE__ */ n(Mt, {
|
|
8088
8088
|
style: {
|
|
8089
|
-
opacity: t.view_id ===
|
|
8089
|
+
opacity: t.view_id === y.view_id ? 1 : 0
|
|
8090
8090
|
}
|
|
8091
8091
|
})
|
|
8092
8092
|
})]
|
|
8093
8093
|
})
|
|
8094
|
-
},
|
|
8094
|
+
}, y.view_id || p));
|
|
8095
8095
|
return /* @__PURE__ */ n(je, {
|
|
8096
8096
|
onClick: u,
|
|
8097
8097
|
children: /* @__PURE__ */ n(je.ItemGroup, {
|
|
@@ -8114,8 +8114,8 @@ function tr(e) {
|
|
|
8114
8114
|
}
|
|
8115
8115
|
function u(m) {
|
|
8116
8116
|
d(() => {
|
|
8117
|
-
const
|
|
8118
|
-
i(
|
|
8117
|
+
const y = r.find((p) => p.view_id === parseInt(m.key));
|
|
8118
|
+
i(y);
|
|
8119
8119
|
});
|
|
8120
8120
|
}
|
|
8121
8121
|
return /* @__PURE__ */ P("div", {
|
|
@@ -8167,27 +8167,41 @@ function At(e) {
|
|
|
8167
8167
|
label: s,
|
|
8168
8168
|
disabled: a = !1,
|
|
8169
8169
|
searchable: l = "auto"
|
|
8170
|
-
} = e, [f, c] = _(
|
|
8171
|
-
|
|
8170
|
+
} = e, [f, c] = _(), d = (y) => {
|
|
8171
|
+
if (!y) {
|
|
8172
|
+
c(void 0);
|
|
8173
|
+
return;
|
|
8174
|
+
}
|
|
8175
|
+
const p = y.trim();
|
|
8176
|
+
if (p.length === 0) {
|
|
8177
|
+
c(void 0);
|
|
8178
|
+
return;
|
|
8179
|
+
}
|
|
8180
|
+
c(p);
|
|
8172
8181
|
};
|
|
8173
8182
|
function u() {
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8183
|
+
let y = [];
|
|
8184
|
+
f ? y = i.filter((g) => g.name.toLowerCase().includes(f.toLowerCase())) : y = i;
|
|
8185
|
+
const p = y.map((g, v) => g.name === "divider" ? /* @__PURE__ */ n(je.Divider, {}, "divider" + v) : /* @__PURE__ */ n(je.Item, {
|
|
8186
|
+
children: g.name
|
|
8187
|
+
}, g.id)), h = l === !0 || l === "auto" && i.length > 3;
|
|
8177
8188
|
return /* @__PURE__ */ P(je, {
|
|
8178
8189
|
onClick: m,
|
|
8179
|
-
children: [
|
|
8180
|
-
onChange: (
|
|
8190
|
+
children: [h && /* @__PURE__ */ n(xd, {
|
|
8191
|
+
onChange: (g) => d(g.target.value),
|
|
8181
8192
|
onSearch: d,
|
|
8182
|
-
allowClear: !0
|
|
8193
|
+
allowClear: !0,
|
|
8194
|
+
style: {
|
|
8195
|
+
padding: 5
|
|
8196
|
+
}
|
|
8183
8197
|
}), /* @__PURE__ */ n(je.ItemGroup, {
|
|
8184
8198
|
title: r,
|
|
8185
|
-
children:
|
|
8199
|
+
children: p
|
|
8186
8200
|
})]
|
|
8187
8201
|
});
|
|
8188
8202
|
}
|
|
8189
|
-
function m(
|
|
8190
|
-
const p = i.find((h) => isNaN(
|
|
8203
|
+
function m(y) {
|
|
8204
|
+
const p = i.find((h) => isNaN(y.key) ? h.id === y.key : h.id === parseInt(y.key));
|
|
8191
8205
|
o(p);
|
|
8192
8206
|
}
|
|
8193
8207
|
return /* @__PURE__ */ n(Gt, {
|
|
@@ -8397,7 +8411,7 @@ function Od(e) {
|
|
|
8397
8411
|
} = e, {
|
|
8398
8412
|
formRef: a
|
|
8399
8413
|
} = W(it), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!1), {
|
|
8400
|
-
t:
|
|
8414
|
+
t: y
|
|
8401
8415
|
} = W(ye), p = ke(async () => {
|
|
8402
8416
|
f(!0);
|
|
8403
8417
|
try {
|
|
@@ -8439,7 +8453,7 @@ function Od(e) {
|
|
|
8439
8453
|
pn(C.datas, R.mime);
|
|
8440
8454
|
} else
|
|
8441
8455
|
s(C);
|
|
8442
|
-
}, []),
|
|
8456
|
+
}, []), g = ke(async (v) => {
|
|
8443
8457
|
s(v);
|
|
8444
8458
|
}, []);
|
|
8445
8459
|
return ge(() => {
|
|
@@ -8453,9 +8467,9 @@ function Od(e) {
|
|
|
8453
8467
|
onAddNewAttachment: i,
|
|
8454
8468
|
onListAllAttachments: o,
|
|
8455
8469
|
onopenAttachmentLink: h,
|
|
8456
|
-
onOpenAttachmentDetail:
|
|
8470
|
+
onOpenAttachmentDetail: g
|
|
8457
8471
|
}), /* @__PURE__ */ n(Je, {
|
|
8458
|
-
title:
|
|
8472
|
+
title: y("downloadingAttachment"),
|
|
8459
8473
|
open: u,
|
|
8460
8474
|
footer: null,
|
|
8461
8475
|
closable: !1,
|
|
@@ -8481,10 +8495,10 @@ function Id({
|
|
|
8481
8495
|
currentItemIndex: d,
|
|
8482
8496
|
setCurrentId: u,
|
|
8483
8497
|
currentModel: m,
|
|
8484
|
-
setRemovingItem:
|
|
8498
|
+
setRemovingItem: y,
|
|
8485
8499
|
removingItem: p,
|
|
8486
8500
|
duplicatingItem: h,
|
|
8487
|
-
setDuplicatingItem:
|
|
8501
|
+
setDuplicatingItem: g,
|
|
8488
8502
|
setResults: v,
|
|
8489
8503
|
formIsLoading: C,
|
|
8490
8504
|
attachments: R,
|
|
@@ -8543,7 +8557,7 @@ function Id({
|
|
|
8543
8557
|
}
|
|
8544
8558
|
async function G() {
|
|
8545
8559
|
try {
|
|
8546
|
-
|
|
8560
|
+
y == null || y(!0), await H.getHandler().delete({
|
|
8547
8561
|
model: m,
|
|
8548
8562
|
ids: [l]
|
|
8549
8563
|
});
|
|
@@ -8554,22 +8568,22 @@ function Id({
|
|
|
8554
8568
|
} catch (N) {
|
|
8555
8569
|
sn(JSON.stringify(N));
|
|
8556
8570
|
} finally {
|
|
8557
|
-
|
|
8571
|
+
y == null || y(!1);
|
|
8558
8572
|
}
|
|
8559
8573
|
}
|
|
8560
8574
|
async function U() {
|
|
8561
8575
|
try {
|
|
8562
|
-
|
|
8576
|
+
g == null || g(!0);
|
|
8563
8577
|
const N = await H.getHandler().duplicate({
|
|
8564
8578
|
id: l,
|
|
8565
8579
|
model: m,
|
|
8566
8580
|
context: b.current.getContext()
|
|
8567
8581
|
});
|
|
8568
|
-
N && await (x == null ? void 0 : x(N));
|
|
8582
|
+
N && await (x == null ? void 0 : x([N]));
|
|
8569
8583
|
} catch (N) {
|
|
8570
8584
|
sn(JSON.stringify(N));
|
|
8571
8585
|
} finally {
|
|
8572
|
-
|
|
8586
|
+
g == null || g(!1);
|
|
8573
8587
|
}
|
|
8574
8588
|
}
|
|
8575
8589
|
const Y = a || p || C || h;
|
|
@@ -8781,10 +8795,10 @@ const {
|
|
|
8781
8795
|
backgroundColor: c.colorPrimaryBg
|
|
8782
8796
|
} : void 0, u = W(Le), {
|
|
8783
8797
|
elementHasLostFocus: m
|
|
8784
|
-
} = u || {}, [
|
|
8798
|
+
} = u || {}, [y, p] = _(!1), [h, g] = _(!1);
|
|
8785
8799
|
ge(() => {
|
|
8786
|
-
l && !
|
|
8787
|
-
}, [
|
|
8800
|
+
l && !y && g(!1), !r && !l && (p(!0), g(!0));
|
|
8801
|
+
}, [y, l]);
|
|
8788
8802
|
const v = (C) => {
|
|
8789
8803
|
i == null || i(C.target.value);
|
|
8790
8804
|
};
|
|
@@ -8794,10 +8808,10 @@ const {
|
|
|
8794
8808
|
align: "middle",
|
|
8795
8809
|
children: [l ? null : /* @__PURE__ */ n(de, {
|
|
8796
8810
|
flex: "32px",
|
|
8797
|
-
children:
|
|
8811
|
+
children: y ? /* @__PURE__ */ n(Ie, {
|
|
8798
8812
|
icon: /* @__PURE__ */ n(Mt, {}),
|
|
8799
8813
|
onClick: () => {
|
|
8800
|
-
o(r) && (p(!1),
|
|
8814
|
+
o(r) && (p(!1), g(!1));
|
|
8801
8815
|
},
|
|
8802
8816
|
style: {
|
|
8803
8817
|
borderTopRightRadius: 0,
|
|
@@ -8807,7 +8821,7 @@ const {
|
|
|
8807
8821
|
}) : /* @__PURE__ */ n(Ie, {
|
|
8808
8822
|
icon: /* @__PURE__ */ n(no, {}),
|
|
8809
8823
|
onClick: () => {
|
|
8810
|
-
p(!0),
|
|
8824
|
+
p(!0), g(!0);
|
|
8811
8825
|
},
|
|
8812
8826
|
style: {
|
|
8813
8827
|
borderTopRightRadius: 0,
|
|
@@ -8827,7 +8841,7 @@ const {
|
|
|
8827
8841
|
onChange: v,
|
|
8828
8842
|
value: r,
|
|
8829
8843
|
onBlur: () => {
|
|
8830
|
-
o(r) && (p(!1),
|
|
8844
|
+
o(r) && (p(!1), g(!1), m == null || m());
|
|
8831
8845
|
}
|
|
8832
8846
|
}) : /* @__PURE__ */ n("a", {
|
|
8833
8847
|
href: `${s}${r}`,
|
|
@@ -9086,7 +9100,7 @@ function vn(e) {
|
|
|
9086
9100
|
return /* @__PURE__ */ P(te, {
|
|
9087
9101
|
children: [c.length, " ", d("selectedRegisters"), /* @__PURE__ */ n(tn, {
|
|
9088
9102
|
copyable: {
|
|
9089
|
-
text: c.map((
|
|
9103
|
+
text: c.map((y) => y.id).join(", ")
|
|
9090
9104
|
}
|
|
9091
9105
|
})]
|
|
9092
9106
|
});
|
|
@@ -9141,10 +9155,10 @@ const $d = (e) => {
|
|
|
9141
9155
|
setResults: d = void 0,
|
|
9142
9156
|
setCurrentItemIndex: u = void 0,
|
|
9143
9157
|
currentId: m = void 0,
|
|
9144
|
-
results:
|
|
9158
|
+
results: y = void 0,
|
|
9145
9159
|
setSelectedRowItems: p = void 0,
|
|
9146
9160
|
setSearchParams: h = void 0,
|
|
9147
|
-
searchVisible:
|
|
9161
|
+
searchVisible: g = !0,
|
|
9148
9162
|
setSearchVisible: v = void 0,
|
|
9149
9163
|
sorter: C = void 0,
|
|
9150
9164
|
setSorter: R = void 0,
|
|
@@ -9186,7 +9200,7 @@ const $d = (e) => {
|
|
|
9186
9200
|
setSorter: R,
|
|
9187
9201
|
setCurrentItemIndex: u,
|
|
9188
9202
|
setResultsActionView: d,
|
|
9189
|
-
resultsActionView:
|
|
9203
|
+
resultsActionView: y,
|
|
9190
9204
|
domain: s,
|
|
9191
9205
|
currentId: m,
|
|
9192
9206
|
setActionViewTotalItems: b,
|
|
@@ -9215,7 +9229,7 @@ const $d = (e) => {
|
|
|
9215
9229
|
O(!1), h == null || h(j.params), v == null || v(!1);
|
|
9216
9230
|
},
|
|
9217
9231
|
searchError: D,
|
|
9218
|
-
searchVisible:
|
|
9232
|
+
searchVisible: g,
|
|
9219
9233
|
searchValues: F,
|
|
9220
9234
|
showLimitOptions: !1
|
|
9221
9235
|
}), I ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(yn, {
|
|
@@ -9225,7 +9239,7 @@ const $d = (e) => {
|
|
|
9225
9239
|
context: o,
|
|
9226
9240
|
domain: Yt(T || [], s),
|
|
9227
9241
|
limit: V ? E : void 0,
|
|
9228
|
-
manualIds: V ?
|
|
9242
|
+
manualIds: V ? y == null ? void 0 : y.map((j) => j.id) : void 0
|
|
9229
9243
|
})]
|
|
9230
9244
|
});
|
|
9231
9245
|
}, Ld = (e) => {
|
|
@@ -9258,8 +9272,8 @@ const $d = (e) => {
|
|
|
9258
9272
|
actionDomain: s,
|
|
9259
9273
|
id: o,
|
|
9260
9274
|
parentContext: l,
|
|
9261
|
-
onSubmitSucceed: (
|
|
9262
|
-
d.findIndex((
|
|
9275
|
+
onSubmitSucceed: (y, p) => {
|
|
9276
|
+
d.findIndex((g) => g.id === y) === -1 && (d.push(p), u(d), m(d.length - 1));
|
|
9263
9277
|
}
|
|
9264
9278
|
})]
|
|
9265
9279
|
}) : null;
|
|
@@ -9349,10 +9363,10 @@ function Hd(e) {
|
|
|
9349
9363
|
searchTreeRef: d,
|
|
9350
9364
|
setCurrentId: u,
|
|
9351
9365
|
setCurrentItemIndex: m,
|
|
9352
|
-
searchParams:
|
|
9366
|
+
searchParams: y,
|
|
9353
9367
|
searchVisible: p,
|
|
9354
9368
|
setSearchVisible: h,
|
|
9355
|
-
setSearchTreeNameSearch:
|
|
9369
|
+
setSearchTreeNameSearch: g,
|
|
9356
9370
|
searchTreeNameSearch: v,
|
|
9357
9371
|
treeIsLoading: C,
|
|
9358
9372
|
setPreviousView: R,
|
|
@@ -9440,7 +9454,7 @@ function Hd(e) {
|
|
|
9440
9454
|
disabled: l || a || C,
|
|
9441
9455
|
searchText: v,
|
|
9442
9456
|
onSearch: (Y) => {
|
|
9443
|
-
Y && Y.trim().length > 0 ?
|
|
9457
|
+
Y && Y.trim().length > 0 ? g == null || g(Y) : g == null || g(void 0);
|
|
9444
9458
|
}
|
|
9445
9459
|
}), !T && /* @__PURE__ */ n(Yo, {
|
|
9446
9460
|
icon: /* @__PURE__ */ n(ro, {
|
|
@@ -9454,7 +9468,7 @@ function Hd(e) {
|
|
|
9454
9468
|
h == null || h(!p);
|
|
9455
9469
|
},
|
|
9456
9470
|
disabled: l || a || C,
|
|
9457
|
-
badgeNumber:
|
|
9471
|
+
badgeNumber: y == null ? void 0 : y.length
|
|
9458
9472
|
}), vt(), /* @__PURE__ */ n(Bo, {
|
|
9459
9473
|
disabled: C
|
|
9460
9474
|
}), /* @__PURE__ */ n(Ze, {
|
|
@@ -9579,7 +9593,7 @@ function Hd(e) {
|
|
|
9579
9593
|
locale: L,
|
|
9580
9594
|
onClose: () => k(!1),
|
|
9581
9595
|
model: c,
|
|
9582
|
-
domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [],
|
|
9596
|
+
domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], y || []),
|
|
9583
9597
|
limit: S,
|
|
9584
9598
|
totalRegisters: E || 0,
|
|
9585
9599
|
selectedRegistersToExport: o,
|
|
@@ -9607,7 +9621,7 @@ const Bd = (e) => {
|
|
|
9607
9621
|
setCurrentId: d,
|
|
9608
9622
|
setCurrentView: u,
|
|
9609
9623
|
availableViews: m,
|
|
9610
|
-
searchTreeNameSearch:
|
|
9624
|
+
searchTreeNameSearch: y
|
|
9611
9625
|
} = e, {
|
|
9612
9626
|
currentView: p,
|
|
9613
9627
|
setPreviousView: h
|
|
@@ -9624,14 +9638,14 @@ const Bd = (e) => {
|
|
|
9624
9638
|
rootTree: !0,
|
|
9625
9639
|
model: i,
|
|
9626
9640
|
parentContext: o,
|
|
9627
|
-
nameSearch:
|
|
9641
|
+
nameSearch: y,
|
|
9628
9642
|
formView: s,
|
|
9629
9643
|
treeView: a,
|
|
9630
9644
|
domain: l,
|
|
9631
|
-
onRowClicked: (
|
|
9645
|
+
onRowClicked: (g) => {
|
|
9632
9646
|
const {
|
|
9633
9647
|
id: v
|
|
9634
|
-
} =
|
|
9648
|
+
} = g;
|
|
9635
9649
|
d(v);
|
|
9636
9650
|
const C = c.findIndex((b) => b.id === v);
|
|
9637
9651
|
h == null || h(p), f(C);
|
|
@@ -9756,10 +9770,10 @@ function Gd(e, t) {
|
|
|
9756
9770
|
formDefaultValues: d,
|
|
9757
9771
|
formForcedValues: u = {},
|
|
9758
9772
|
res_id: m = !1,
|
|
9759
|
-
action_id:
|
|
9773
|
+
action_id: y,
|
|
9760
9774
|
action_type: p,
|
|
9761
9775
|
treeExpandable: h = !1,
|
|
9762
|
-
limit:
|
|
9776
|
+
limit: g
|
|
9763
9777
|
} = e, [v, C] = _(), [R, b] = _([]), [A, S] = _(!0), E = m || void 0, [x, T] = _(E), [F, w] = _([]), [L, V] = _(), [O, M] = _([]), [k, D] = _(), [$, I] = _(0), [j, G] = _(!1), [U, Y] = _(!1), [z, N] = _(), {
|
|
9764
9778
|
t: B
|
|
9765
9779
|
} = W(ye), X = ue(), ne = ue(), le = W(dt), {
|
|
@@ -9813,7 +9827,7 @@ function Gd(e, t) {
|
|
|
9813
9827
|
});
|
|
9814
9828
|
let et;
|
|
9815
9829
|
ce && (et = {
|
|
9816
|
-
action_id:
|
|
9830
|
+
action_id: y,
|
|
9817
9831
|
action_type: p,
|
|
9818
9832
|
name: a,
|
|
9819
9833
|
res_id: o.active_id,
|
|
@@ -9910,7 +9924,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9910
9924
|
id: He == null ? void 0 : He[0],
|
|
9911
9925
|
type: xe
|
|
9912
9926
|
},
|
|
9913
|
-
action_id:
|
|
9927
|
+
action_id: y,
|
|
9914
9928
|
action_type: p,
|
|
9915
9929
|
res_id: ee[0]
|
|
9916
9930
|
});
|
|
@@ -9936,7 +9950,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9936
9950
|
case "tree":
|
|
9937
9951
|
return /* @__PURE__ */ n(Bd, {
|
|
9938
9952
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
9939
|
-
limit:
|
|
9953
|
+
limit: g,
|
|
9940
9954
|
model: i,
|
|
9941
9955
|
context: o,
|
|
9942
9956
|
domain: r,
|
|
@@ -10000,7 +10014,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10000
10014
|
setSearchTreeNameSearch: N,
|
|
10001
10015
|
searchTreeNameSearch: z,
|
|
10002
10016
|
goToResourceId: be,
|
|
10003
|
-
limit:
|
|
10017
|
+
limit: g,
|
|
10004
10018
|
children: [$e(), /* @__PURE__ */ n(Rd, {
|
|
10005
10019
|
visible: j,
|
|
10006
10020
|
onIdSubmitted: be,
|
|
@@ -10034,7 +10048,7 @@ async function qd({
|
|
|
10034
10048
|
name: d,
|
|
10035
10049
|
limit: u,
|
|
10036
10050
|
view_type: m
|
|
10037
|
-
} = s,
|
|
10051
|
+
} = s, y = m === "tree", p = [];
|
|
10038
10052
|
for (const C of c) {
|
|
10039
10053
|
const [R, b] = C;
|
|
10040
10054
|
if (R)
|
|
@@ -10049,7 +10063,7 @@ async function qd({
|
|
|
10049
10063
|
p.push([A, b]);
|
|
10050
10064
|
}
|
|
10051
10065
|
}
|
|
10052
|
-
const [h,
|
|
10066
|
+
const [h, g] = p[0], v = { id: h, type: g };
|
|
10053
10067
|
return {
|
|
10054
10068
|
title: d,
|
|
10055
10069
|
actionId: e,
|
|
@@ -10061,7 +10075,7 @@ async function qd({
|
|
|
10061
10075
|
domain: l,
|
|
10062
10076
|
initialView: v,
|
|
10063
10077
|
limit: u,
|
|
10064
|
-
treeExpandable:
|
|
10078
|
+
treeExpandable: y
|
|
10065
10079
|
};
|
|
10066
10080
|
}
|
|
10067
10081
|
const zd = Xi(Qi), Jd = (e) => {
|
|
@@ -10174,7 +10188,7 @@ function tu(e) {
|
|
|
10174
10188
|
domain: s = [],
|
|
10175
10189
|
visible: a = !0,
|
|
10176
10190
|
parentContext: l = {}
|
|
10177
|
-
} = e, [f, c] = _(!1), [d, u] = _(!1), [m,
|
|
10191
|
+
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [b, A] = _(0), S = ue(eu), E = ue([]), [x, T] = _(0), [F, w] = _([]), [L, V] = _(void 0), [O, M] = _(), [k, D] = _(), [$, I] = _(), [j, G] = _(!1), U = ue([]), Y = (Z) => {
|
|
10178
10192
|
G(!0), R(Z), A((Z - 1) * S.current);
|
|
10179
10193
|
}, z = async () => {
|
|
10180
10194
|
const Z = U.current.length > 0 ? U.current : s, fe = Yt(E.current, Z), {
|
|
@@ -10200,7 +10214,7 @@ function tu(e) {
|
|
|
10200
10214
|
sorter: O,
|
|
10201
10215
|
fields: {
|
|
10202
10216
|
...p.fields,
|
|
10203
|
-
...
|
|
10217
|
+
...g.fields
|
|
10204
10218
|
}
|
|
10205
10219
|
});
|
|
10206
10220
|
G(!1), w(Ge);
|
|
@@ -10230,9 +10244,9 @@ function tu(e) {
|
|
|
10230
10244
|
action: t,
|
|
10231
10245
|
context: l
|
|
10232
10246
|
});
|
|
10233
|
-
U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")),
|
|
10247
|
+
U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")), y(Z.model), S.current = Z.limit;
|
|
10234
10248
|
}, ne = async () => {
|
|
10235
|
-
|
|
10249
|
+
y(r);
|
|
10236
10250
|
const Z = await H.getHandler().getView({
|
|
10237
10251
|
model: r,
|
|
10238
10252
|
type: "form",
|
|
@@ -10259,7 +10273,7 @@ function tu(e) {
|
|
|
10259
10273
|
model: m,
|
|
10260
10274
|
treeView: p
|
|
10261
10275
|
});
|
|
10262
|
-
}, J = () => !p || !
|
|
10276
|
+
}, J = () => !p || !g ? null : /* @__PURE__ */ P("div", {
|
|
10263
10277
|
style: {
|
|
10264
10278
|
overflowY: "scroll"
|
|
10265
10279
|
},
|
|
@@ -10287,7 +10301,7 @@ function tu(e) {
|
|
|
10287
10301
|
sorter: Z,
|
|
10288
10302
|
fields: {
|
|
10289
10303
|
...p.fields,
|
|
10290
|
-
...
|
|
10304
|
+
...g.fields
|
|
10291
10305
|
}
|
|
10292
10306
|
});
|
|
10293
10307
|
w(fe);
|
|
@@ -10342,9 +10356,9 @@ function ru(e, t) {
|
|
|
10342
10356
|
configAction: s
|
|
10343
10357
|
} = e, [a, l] = _([]), [f, c] = _(!1), [d, u] = _(), {
|
|
10344
10358
|
setIsLoading: m,
|
|
10345
|
-
openAction:
|
|
10359
|
+
openAction: y,
|
|
10346
10360
|
moveItemsEnabled: p
|
|
10347
|
-
} = W(nr), h = ue(),
|
|
10361
|
+
} = W(nr), h = ue(), g = ue();
|
|
10348
10362
|
ge(() => {
|
|
10349
10363
|
v();
|
|
10350
10364
|
}, [r, o, i]), xt(t, () => ({
|
|
@@ -10357,7 +10371,7 @@ function ru(e, t) {
|
|
|
10357
10371
|
c(!0), m(!0), u(void 0);
|
|
10358
10372
|
try {
|
|
10359
10373
|
const x = await C(), T = await b(x), F = x.fields[Dn].relation, w = T[Dn].items;
|
|
10360
|
-
|
|
10374
|
+
g.current = x.fields;
|
|
10361
10375
|
const L = await R({
|
|
10362
10376
|
items: w,
|
|
10363
10377
|
model: F,
|
|
@@ -10467,12 +10481,12 @@ function ru(e, t) {
|
|
|
10467
10481
|
values: {
|
|
10468
10482
|
[Dn]: L
|
|
10469
10483
|
},
|
|
10470
|
-
fields:
|
|
10484
|
+
fields: g.current,
|
|
10471
10485
|
context: i
|
|
10472
10486
|
});
|
|
10473
10487
|
}
|
|
10474
10488
|
async function E() {
|
|
10475
|
-
|
|
10489
|
+
y(s);
|
|
10476
10490
|
}
|
|
10477
10491
|
return d ? (console.log(d), /* @__PURE__ */ n(tt, {
|
|
10478
10492
|
className: "mt-10 mb-20",
|
|
@@ -10550,7 +10564,7 @@ function ru(e, t) {
|
|
|
10550
10564
|
view_id: J,
|
|
10551
10565
|
view_type: Z
|
|
10552
10566
|
};
|
|
10553
|
-
|
|
10567
|
+
y(Ne);
|
|
10554
10568
|
}
|
|
10555
10569
|
}
|
|
10556
10570
|
});
|
|
@@ -10601,7 +10615,7 @@ function ru(e, t) {
|
|
|
10601
10615
|
title: D,
|
|
10602
10616
|
parms: z,
|
|
10603
10617
|
action: B,
|
|
10604
|
-
openAction:
|
|
10618
|
+
openAction: y,
|
|
10605
10619
|
children: N
|
|
10606
10620
|
}, V);
|
|
10607
10621
|
})
|
|
@@ -10627,10 +10641,10 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10627
10641
|
items: o = []
|
|
10628
10642
|
} = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = _([]), [f, c] = _(), [d, u] = _(!1), {
|
|
10629
10643
|
relation: m,
|
|
10630
|
-
context:
|
|
10644
|
+
context: y,
|
|
10631
10645
|
readOnly: p,
|
|
10632
10646
|
field: h,
|
|
10633
|
-
columns:
|
|
10647
|
+
columns: g
|
|
10634
10648
|
} = r, v = W(Le), {
|
|
10635
10649
|
getContext: C
|
|
10636
10650
|
} = v || {};
|
|
@@ -10664,7 +10678,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10664
10678
|
fields: [h],
|
|
10665
10679
|
context: {
|
|
10666
10680
|
...C == null ? void 0 : C(),
|
|
10667
|
-
...
|
|
10681
|
+
...y
|
|
10668
10682
|
}
|
|
10669
10683
|
})).map((w) => {
|
|
10670
10684
|
const L = w[h];
|
|
@@ -10719,7 +10733,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10719
10733
|
},
|
|
10720
10734
|
children: /* @__PURE__ */ n(Ce, {
|
|
10721
10735
|
children: a.map((x) => /* @__PURE__ */ n(de, {
|
|
10722
|
-
span: Math.floor(24 /
|
|
10736
|
+
span: Math.floor(24 / g),
|
|
10723
10737
|
children: /* @__PURE__ */ n(jt, {
|
|
10724
10738
|
value: x.value,
|
|
10725
10739
|
children: x.label
|
|
@@ -10890,21 +10904,21 @@ var Uo = { exports: {} };
|
|
|
10890
10904
|
function l(c, d, u, m) {
|
|
10891
10905
|
return s.fromToBase(c, d, u, m);
|
|
10892
10906
|
}
|
|
10893
|
-
o.en.relativeTime = a, s.fromToBase = function(c, d, u, m,
|
|
10894
|
-
for (var p, h,
|
|
10907
|
+
o.en.relativeTime = a, s.fromToBase = function(c, d, u, m, y) {
|
|
10908
|
+
for (var p, h, g, v = u.$locale().relativeTime || a, C = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = C.length, b = 0; b < R; b += 1) {
|
|
10895
10909
|
var A = C[b];
|
|
10896
10910
|
A.d && (p = m ? o(c).diff(u, A.d, !0) : u.diff(c, A.d, !0));
|
|
10897
10911
|
var S = (r.rounding || Math.round)(Math.abs(p));
|
|
10898
|
-
if (
|
|
10912
|
+
if (g = p > 0, S <= A.r || !A.r) {
|
|
10899
10913
|
S <= 1 && b > 0 && (A = C[b - 1]);
|
|
10900
10914
|
var E = v[A.l];
|
|
10901
|
-
|
|
10915
|
+
y && (S = y("" + S)), h = typeof E == "string" ? E.replace("%d", S) : E(S, d, A.l, g);
|
|
10902
10916
|
break;
|
|
10903
10917
|
}
|
|
10904
10918
|
}
|
|
10905
10919
|
if (d)
|
|
10906
10920
|
return h;
|
|
10907
|
-
var x =
|
|
10921
|
+
var x = g ? v.future : v.past;
|
|
10908
10922
|
return typeof x == "function" ? x(h) : x.replace("%s", h);
|
|
10909
10923
|
}, s.to = function(c, d) {
|
|
10910
10924
|
return l(c, d, this, !0);
|
|
@@ -11052,7 +11066,7 @@ function Iu(e, t) {
|
|
|
11052
11066
|
}
|
|
11053
11067
|
c(f.filter((A) => A.key !== b)), d.current.delete(b);
|
|
11054
11068
|
}
|
|
11055
|
-
function
|
|
11069
|
+
function y({
|
|
11056
11070
|
tabKey: b,
|
|
11057
11071
|
canWeClose: A
|
|
11058
11072
|
}) {
|
|
@@ -11163,7 +11177,7 @@ function Iu(e, t) {
|
|
|
11163
11177
|
action: E
|
|
11164
11178
|
}]), l(S);
|
|
11165
11179
|
}
|
|
11166
|
-
async function
|
|
11180
|
+
async function g({
|
|
11167
11181
|
relateData: b,
|
|
11168
11182
|
fields: A,
|
|
11169
11183
|
values: S,
|
|
@@ -11379,7 +11393,7 @@ function Iu(e, t) {
|
|
|
11379
11393
|
...A
|
|
11380
11394
|
},
|
|
11381
11395
|
domain: b,
|
|
11382
|
-
setCanWeClose:
|
|
11396
|
+
setCanWeClose: y,
|
|
11383
11397
|
initialView: I,
|
|
11384
11398
|
res_id: V,
|
|
11385
11399
|
formDefaultValues: O,
|
|
@@ -11396,7 +11410,7 @@ function Iu(e, t) {
|
|
|
11396
11410
|
children: /* @__PURE__ */ n(bl, {
|
|
11397
11411
|
openShortcut: v,
|
|
11398
11412
|
openAction: R,
|
|
11399
|
-
openRelate:
|
|
11413
|
+
openRelate: g,
|
|
11400
11414
|
openDefaultActionForModel: C,
|
|
11401
11415
|
tabs: f,
|
|
11402
11416
|
activeKey: a,
|
|
@@ -11531,10 +11545,10 @@ const {
|
|
|
11531
11545
|
onCheckIsFavourite: r,
|
|
11532
11546
|
onAddFavourite: i,
|
|
11533
11547
|
onRemoveFavourite: o
|
|
11534
|
-
} = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [
|
|
11548
|
+
} = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [y, p] = _(), {
|
|
11535
11549
|
t: h
|
|
11536
11550
|
} = W(ye) || {}, {
|
|
11537
|
-
token:
|
|
11551
|
+
token: g
|
|
11538
11552
|
} = Vu(), v = W(dt), {
|
|
11539
11553
|
openShortcut: C,
|
|
11540
11554
|
tabs: R,
|
|
@@ -11618,7 +11632,7 @@ const {
|
|
|
11618
11632
|
title: h == null ? void 0 : h("edit_favorites"),
|
|
11619
11633
|
children: /* @__PURE__ */ n(no, {
|
|
11620
11634
|
style: {
|
|
11621
|
-
color:
|
|
11635
|
+
color: g.colorPrimary,
|
|
11622
11636
|
cursor: "pointer"
|
|
11623
11637
|
},
|
|
11624
11638
|
onClick: L
|
|
@@ -11664,8 +11678,8 @@ const {
|
|
|
11664
11678
|
});
|
|
11665
11679
|
}
|
|
11666
11680
|
async function M() {
|
|
11667
|
-
if (s &&
|
|
11668
|
-
await o(
|
|
11681
|
+
if (s && y)
|
|
11682
|
+
await o(y);
|
|
11669
11683
|
else {
|
|
11670
11684
|
if (!A)
|
|
11671
11685
|
return;
|