@gisce/react-ooui 1.5.6 → 1.5.8-rc.0
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 -0
- package/dist/actionbar/DropdownButton.d.ts.map +1 -1
- package/dist/react-ooui.es.js +563 -553
- 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 +18 -3
- package/src/stories/mocks/models/cups.ts +18 -1
- package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
- package/src/widgets/views/Form.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Qe, { useContext as W, useState as _, useEffect as ge, useRef as ue, useCallback as ke, forwardRef as bt, useImperativeHandle as xt } from "react";
|
|
2
|
-
import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as Ce, Col as de, Modal as Je, Button as Ie, Dropdown as Gt, Menu as je, Spin as Re, Divider as dn, Space as We, Input as
|
|
2
|
+
import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as Ce, Col as de, Modal as Je, Button as Ie, Dropdown as Gt, Menu as je, Spin as Re, Divider as dn, Space as We, Input as ot, Select as Ct, Checkbox as jt, Alert as tt, Timeline as An, Statistic as li, Card as Nn, Tag as Er, message as Sn, DatePicker as Pn, TimePicker as $r, InputNumber as Lr, Progress as ci, Avatar as Nr, Badge as di, Pagination as ui, Tabs as Pr, Popover as fi, Radio as ar, Switch as mi, Steps as lr, Layout as hi } from "antd";
|
|
3
3
|
import { Label as Vt, Field as Rn, Tree as Hr, Reference as pi, Selection as Hn, Many2one as Br, Boolean as gi, Container as yi, parseContext as wt, Form as jr, Integer as Vn, SearchFieldTypes as ht, SearchFilter as vi, parseContextFields as Tn, parseDomainFields as cr, transformDomainForChildWidget as Kr, graphProcessor as Yr, parseGraph as Bn, graphFieldUtils as wi } from "@gisce/ooui";
|
|
4
4
|
import * as dr from "@ant-design/icons";
|
|
5
5
|
import Wr, { QuestionCircleOutlined as Ur, ExclamationCircleOutlined as gt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as Gr, CloseOutlined as qt, CheckOutlined as Mt, TranslationOutlined as qr, FolderOpenOutlined as jn, DownloadOutlined as Kn, ClearOutlined as Yn, StarFilled as zr, StarOutlined as Jr, UpOutlined as bi, SearchOutlined as Wn, RightCircleOutlined as xi, ThunderboltOutlined as Un, PrinterOutlined as Gn, EnterOutlined as Zr, PlusSquareOutlined as Ci, MinusSquareOutlined as Si, FileAddOutlined as un, AlignLeftOutlined as Ti, ApiOutlined as Fi, DeleteOutlined as qn, LeftOutlined as Xr, RightOutlined as Qr, EyeOutlined as Oi, FormOutlined as Kt, TableOutlined as zn, AreaChartOutlined as Ii, CalendarOutlined as _i, LinkOutlined as eo, SaveOutlined as Di, CopyOutlined as Jn, InfoCircleOutlined as to, ReloadOutlined as fn, EditOutlined as no, FilterOutlined as ro, CloseCircleFilled as Ai, BorderOuterOutlined as Ri, SettingOutlined as Vi, ExportOutlined as ki } from "@ant-design/icons";
|
|
@@ -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: g
|
|
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: g.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), g = 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: g,
|
|
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: g,
|
|
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: g,
|
|
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, g] = _(!1), {
|
|
620
620
|
lang: p
|
|
621
621
|
} = W(ye);
|
|
622
622
|
async function h() {
|
|
623
|
-
|
|
623
|
+
g(!0), await u({
|
|
624
624
|
type: s,
|
|
625
625
|
action: r,
|
|
626
626
|
context: f
|
|
627
|
-
}),
|
|
627
|
+
}), g(!1);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function y() {
|
|
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: y,
|
|
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: g
|
|
683
683
|
} = r || {}, p = W(Le), {
|
|
684
684
|
executeButtonAction: h
|
|
685
|
-
} = p || {}, [
|
|
685
|
+
} = p || {}, [y, v] = _(!1), {
|
|
686
686
|
lang: C
|
|
687
687
|
} = W(ye);
|
|
688
688
|
function R() {
|
|
689
|
-
if (
|
|
689
|
+
if (y)
|
|
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 || g,
|
|
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: g,
|
|
758
758
|
danger: p
|
|
759
|
-
} = s, [h,
|
|
759
|
+
} = s, [h, y] = _(!1);
|
|
760
760
|
async function v() {
|
|
761
|
-
|
|
761
|
+
y(!0), await r({
|
|
762
762
|
type: c,
|
|
763
763
|
action: a,
|
|
764
764
|
context: m
|
|
765
|
-
}),
|
|
765
|
+
}), y(!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 || g,
|
|
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), [g, p] = _(!1), [h, y] = _({}), v = ue();
|
|
879
879
|
ge(() => {
|
|
880
|
-
t ? C() :
|
|
880
|
+
t ? C() : y({});
|
|
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, y(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
|
+
y({
|
|
936
936
|
...h,
|
|
937
937
|
[x.code]: F.target.value
|
|
938
938
|
});
|
|
939
939
|
},
|
|
940
|
-
disabled:
|
|
940
|
+
disabled: g
|
|
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: g,
|
|
974
974
|
children: f("cancel")
|
|
975
975
|
}), /* @__PURE__ */ n(Ie, {
|
|
976
|
-
icon:
|
|
977
|
-
disabled:
|
|
976
|
+
icon: g ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Mt, {}),
|
|
977
|
+
disabled: g,
|
|
978
978
|
onClick: S,
|
|
979
979
|
style: {
|
|
980
980
|
marginLeft: 15
|
|
@@ -1038,14 +1038,14 @@ const {
|
|
|
1038
1038
|
} : void 0, d = W(Le), {
|
|
1039
1039
|
elementHasLostFocus: u
|
|
1040
1040
|
} = d || {};
|
|
1041
|
-
let m = /* @__PURE__ */ n(
|
|
1041
|
+
let m = /* @__PURE__ */ n(ot, {
|
|
1042
1042
|
disabled: o || l && !r,
|
|
1043
1043
|
id: i,
|
|
1044
1044
|
style: c,
|
|
1045
1045
|
maxLength: t.size,
|
|
1046
1046
|
onBlur: u
|
|
1047
1047
|
});
|
|
1048
|
-
return s && (m = /* @__PURE__ */ n(
|
|
1048
|
+
return s && (m = /* @__PURE__ */ n(ot.Password, {
|
|
1049
1049
|
disabled: o,
|
|
1050
1050
|
id: i,
|
|
1051
1051
|
onBlur: u
|
|
@@ -1081,12 +1081,12 @@ const {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
d || u(!0);
|
|
1083
1083
|
},
|
|
1084
|
-
children: /* @__PURE__ */ n(
|
|
1084
|
+
children: /* @__PURE__ */ n(ot, {
|
|
1085
1085
|
value: e,
|
|
1086
1086
|
disabled: !0,
|
|
1087
1087
|
id: t,
|
|
1088
|
-
onChange: (
|
|
1089
|
-
i == null || i(
|
|
1088
|
+
onChange: (g) => {
|
|
1089
|
+
i == null || i(g.target.value);
|
|
1090
1090
|
},
|
|
1091
1091
|
onBlur: c,
|
|
1092
1092
|
style: {
|
|
@@ -1113,12 +1113,12 @@ const {
|
|
|
1113
1113
|
wrap: !1,
|
|
1114
1114
|
children: [/* @__PURE__ */ n(de, {
|
|
1115
1115
|
flex: "auto",
|
|
1116
|
-
children: /* @__PURE__ */ n(
|
|
1116
|
+
children: /* @__PURE__ */ n(ot, {
|
|
1117
1117
|
value: e,
|
|
1118
1118
|
id: t,
|
|
1119
1119
|
style: r,
|
|
1120
|
-
onChange: (
|
|
1121
|
-
i == null || i(
|
|
1120
|
+
onChange: (g) => {
|
|
1121
|
+
i == null || i(g.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 g(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 ? g(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 y(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 (y(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 ? g(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 = y(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), g(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}`, g = document.createElement("a");
|
|
1388
|
+
g.href = m, g.download = `image.${u == null ? void 0 : u.ext}`, g.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], g = await go(m);
|
|
1393
|
+
l(g);
|
|
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 g, p;
|
|
1487
1487
|
let u = c[a] || "", m = d[a] || "";
|
|
1488
|
-
return s === "many2one" && (u = ((
|
|
1488
|
+
return s === "many2one" && (u = ((g = c[a]) == null ? void 0 : g.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, g;
|
|
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 = ((g = c[i]) == null ? void 0 : g[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, y = 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 = y[0], u = nn(y[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 y = {};
|
|
1577
1577
|
return Object.keys(h).forEach((v) => {
|
|
1578
|
-
(c[a].hasOwnProperty(v) || v === "id") && (
|
|
1579
|
-
}),
|
|
1578
|
+
(c[a].hasOwnProperty(v) || v === "id") && (y[v] = h[v]);
|
|
1579
|
+
}), y;
|
|
1580
1580
|
});
|
|
1581
1581
|
return [
|
|
1582
1582
|
t.map((h) => {
|
|
1583
|
-
const
|
|
1583
|
+
const y = 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 = y : a === "tree" && (v.treeValues = y), 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 g = 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 g("form"), y = await g("tree");
|
|
1627
|
+
c.set("form", h), c.set("tree", y), 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, g] = _(), {
|
|
1656
1656
|
relation: p,
|
|
1657
1657
|
context: h,
|
|
1658
|
-
readOnly:
|
|
1658
|
+
readOnly: y,
|
|
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
|
+
g(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
|
+
g(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: y,
|
|
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: g,
|
|
1982
1982
|
readOnly: p,
|
|
1983
1983
|
field: h
|
|
1984
|
-
} = r,
|
|
1984
|
+
} = r, y = W(Le), {
|
|
1985
1985
|
getContext: v
|
|
1986
|
-
} =
|
|
1986
|
+
} = y || {};
|
|
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: y == null ? void 0 : y.getFields(),
|
|
2004
|
+
values: y.getPlainValues()
|
|
2005
2005
|
}),
|
|
2006
|
-
fields:
|
|
2007
|
-
context:
|
|
2006
|
+
fields: y == null ? void 0 : y.getFields(),
|
|
2007
|
+
context: y.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
|
+
...g
|
|
2018
2018
|
}
|
|
2019
2019
|
})).map((T) => {
|
|
2020
2020
|
const F = T[h];
|
|
@@ -2138,9 +2138,9 @@ const $t = ({
|
|
|
2138
2138
|
case "image":
|
|
2139
2139
|
return Aa;
|
|
2140
2140
|
case "url":
|
|
2141
|
-
return _d;
|
|
2142
|
-
case "email":
|
|
2143
2141
|
return Dd;
|
|
2142
|
+
case "email":
|
|
2143
|
+
return Ad;
|
|
2144
2144
|
case "float_time":
|
|
2145
2145
|
return qc;
|
|
2146
2146
|
case "fiber_grid":
|
|
@@ -2154,19 +2154,19 @@ const $t = ({
|
|
|
2154
2154
|
case "tag":
|
|
2155
2155
|
return za;
|
|
2156
2156
|
case "multicheckbox":
|
|
2157
|
-
return
|
|
2157
|
+
return iu;
|
|
2158
2158
|
case "markdown":
|
|
2159
|
-
return
|
|
2159
|
+
return au;
|
|
2160
2160
|
case "radio":
|
|
2161
|
-
return
|
|
2161
|
+
return cu;
|
|
2162
2162
|
case "switch":
|
|
2163
|
-
return
|
|
2163
|
+
return uu;
|
|
2164
2164
|
case "steps":
|
|
2165
|
-
return
|
|
2165
|
+
return mu;
|
|
2166
2166
|
case "codeeditor":
|
|
2167
|
-
return
|
|
2167
|
+
return pu;
|
|
2168
2168
|
case "comments_timeline":
|
|
2169
|
-
return
|
|
2169
|
+
return Su;
|
|
2170
2170
|
default:
|
|
2171
2171
|
return;
|
|
2172
2172
|
}
|
|
@@ -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 g = u.filter((y) => !y.invisible), p = nl({
|
|
2236
|
+
row: g,
|
|
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((y) => y.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((y) => (y instanceof Vt && y.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2245
2245
|
style: {
|
|
2246
2246
|
...el({
|
|
2247
|
-
item:
|
|
2247
|
+
item: y,
|
|
2248
2248
|
responsiveBehaviour: r
|
|
2249
2249
|
}),
|
|
2250
2250
|
minWidth: 0
|
|
2251
2251
|
},
|
|
2252
2252
|
children: Qa({
|
|
2253
|
-
ooui:
|
|
2253
|
+
ooui: y,
|
|
2254
2254
|
responsiveBehaviour: r
|
|
2255
2255
|
})
|
|
2256
|
-
},
|
|
2256
|
+
}, y.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: g,
|
|
2401
2401
|
setSorter: p,
|
|
2402
2402
|
setCurrentItemIndex: h,
|
|
2403
|
-
setResultsActionView:
|
|
2403
|
+
setResultsActionView: y,
|
|
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
|
+
y == null || y([...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 = g !== void 0 ? Dt({
|
|
2434
2434
|
resultsToSort: xe,
|
|
2435
|
-
sorter:
|
|
2435
|
+
sorter: g,
|
|
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
|
+
g,
|
|
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 = g !== void 0 ? Dt({
|
|
2469
2469
|
resultsToSort: He,
|
|
2470
|
-
sorter:
|
|
2470
|
+
sorter: g,
|
|
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
|
+
g,
|
|
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
|
+
g,
|
|
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(g))
|
|
2534
2534
|
return;
|
|
2535
2535
|
p == null || p(ie);
|
|
2536
2536
|
const Ee = ie !== void 0 ? Dt({
|
|
@@ -2614,7 +2614,7 @@ const $t = ({
|
|
|
2614
2614
|
totalItems: $,
|
|
2615
2615
|
getAllIds: Se
|
|
2616
2616
|
};
|
|
2617
|
-
},
|
|
2617
|
+
}, it = Qe.createContext(null), wl = (e) => {
|
|
2618
2618
|
const {
|
|
2619
2619
|
children: t,
|
|
2620
2620
|
currentView: r,
|
|
@@ -2628,10 +2628,10 @@ const $t = ({
|
|
|
2628
2628
|
setCurrentId: d,
|
|
2629
2629
|
setResults: u,
|
|
2630
2630
|
results: m,
|
|
2631
|
-
currentItemIndex:
|
|
2631
|
+
currentItemIndex: g,
|
|
2632
2632
|
setCurrentItemIndex: p,
|
|
2633
2633
|
currentModel: h,
|
|
2634
|
-
sorter:
|
|
2634
|
+
sorter: y,
|
|
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 && !g && (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(() => {
|
|
@@ -2655,7 +2655,7 @@ const $t = ({
|
|
|
2655
2655
|
var ie;
|
|
2656
2656
|
return await ((ie = a.current) == null ? void 0 : ie.submitForm());
|
|
2657
2657
|
};
|
|
2658
|
-
return /* @__PURE__ */ n(
|
|
2658
|
+
return /* @__PURE__ */ n(it.Provider, {
|
|
2659
2659
|
value: {
|
|
2660
2660
|
title: Ne,
|
|
2661
2661
|
currentView: r,
|
|
@@ -2671,7 +2671,7 @@ const $t = ({
|
|
|
2671
2671
|
onNewClicked: f,
|
|
2672
2672
|
currentId: c,
|
|
2673
2673
|
setCurrentId: d,
|
|
2674
|
-
currentItemIndex:
|
|
2674
|
+
currentItemIndex: g,
|
|
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: y,
|
|
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, g] = _();
|
|
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: g,
|
|
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, g] = _(!1), [p, h] = _({
|
|
2760
2760
|
context: {}
|
|
2761
2761
|
});
|
|
2762
|
-
async function
|
|
2762
|
+
async function y(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 y({
|
|
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
|
+
}), g(!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
|
+
}), g(!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
|
+
}), g(!0);
|
|
2967
2967
|
}
|
|
2968
2968
|
async function S() {
|
|
2969
|
-
Or(d.current), d.current = [],
|
|
2969
|
+
Or(d.current), d.current = [], g(!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 = [], g(!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: g,
|
|
3109
3109
|
formView: p,
|
|
3110
3110
|
postSaveAction: h,
|
|
3111
|
-
insideButtonModal:
|
|
3111
|
+
insideButtonModal: y = !1,
|
|
3112
3112
|
parentContext: v = {},
|
|
3113
3113
|
actionDomain: C,
|
|
3114
3114
|
visible: R = !0,
|
|
@@ -3122,7 +3122,7 @@ function Ol(e, t) {
|
|
|
3122
3122
|
} = W(ye), [F, w] = _(!1), [L, V] = _(), [O, M] = _(), [k] = lt.useForm(), [D, $] = _(), [I, j] = _(), G = W(Co), [U, Y] = _(), [z, N] = _(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), he = (E !== void 0 ? E : U) < Fl, Me = W(Le), {
|
|
3123
3123
|
activeId: De,
|
|
3124
3124
|
getPlainValues: Ne
|
|
3125
|
-
} = Me || {}, Ge = W(
|
|
3125
|
+
} = Me || {}, Ge = W(it), {
|
|
3126
3126
|
setFormIsSaving: Se = void 0,
|
|
3127
3127
|
setFormHasChanges: ie = void 0,
|
|
3128
3128
|
setCurrentId: Ee = void 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, g, 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), g && (K == null ? void 0 : K.forceRefresh) !== !0 ? q = g : {
|
|
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()]), !y && 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
|
+
!y && 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 && y)
|
|
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
|
-
(nt() || ce() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await ir({
|
|
3672
|
+
!d && (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, g] = _(!1), [p, h] = _();
|
|
3779
3779
|
ge(() => {
|
|
3780
|
-
a &&
|
|
3780
|
+
a && y();
|
|
3781
3781
|
}, [l, a]);
|
|
3782
|
-
async function
|
|
3782
|
+
async function y() {
|
|
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
|
+
g(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
|
+
g(!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, g] = u;
|
|
4067
4067
|
return /* @__PURE__ */ n(El, {
|
|
4068
|
-
value:
|
|
4069
|
-
children:
|
|
4068
|
+
value: g,
|
|
4069
|
+
children: g
|
|
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((g) => {
|
|
4074
|
+
const p = l.find(([h, y]) => g === y);
|
|
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: g = !0
|
|
4241
|
+
} = e, [p, h] = _(), [y, 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 (!y)
|
|
4249
4249
|
return;
|
|
4250
|
-
const F = C ?
|
|
4250
|
+
const F = C ? y : 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 && g && /* @__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, g] = _(), {
|
|
4457
4457
|
t: p
|
|
4458
4458
|
} = W(ye), h = W(dt), {
|
|
4459
|
-
openRelate:
|
|
4459
|
+
openRelate: y
|
|
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
|
+
}, g($), 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
|
+
y({
|
|
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 g = 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(g[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", g = "year", p = "date", h = "Invalid Date", y = /^(\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, w: d, d: c, D: p, h: f, m: l, s: a, ms: s, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
|
4666
|
+
return { M: u, y: g, 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(y);
|
|
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 g:
|
|
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[g] = 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 || $ === g) {
|
|
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 === g)
|
|
4791
|
+
return this.set(g, 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 = ($ = {}, $[g] = 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", g], ["$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, g, p, h) {
|
|
4896
|
+
var y = u.name ? u : u.$locale(), v = a(y[m]), C = a(y[g]), 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 = y.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(g) {
|
|
4909
|
+
return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, y) {
|
|
4910
|
+
return h || y.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
|
+
}, g = 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: g,
|
|
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: g = {},
|
|
5150
5150
|
onChangeSort: p,
|
|
5151
5151
|
sorter: h,
|
|
5152
|
-
onFetchChildrenForRecord:
|
|
5152
|
+
onFetchChildrenForRecord: y,
|
|
5153
5153
|
childField: v,
|
|
5154
5154
|
rootTree: C = !1,
|
|
5155
5155
|
context: R,
|
|
@@ -5157,7 +5157,7 @@ function gn(e) {
|
|
|
5157
5157
|
onSelectAllRecords: A
|
|
5158
5158
|
} = e, [S, E] = _([]), [x, T] = _([]), F = ue(!1), w = ue(null), {
|
|
5159
5159
|
t: L
|
|
5160
|
-
} = W(ye), V = ue(r), O = W(
|
|
5160
|
+
} = W(ye), V = ue(r), O = W(it), {
|
|
5161
5161
|
title: M = void 0,
|
|
5162
5162
|
setTitle: k = void 0
|
|
5163
5163
|
} = (C ? O : {}) || {};
|
|
@@ -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(g) ? (N) => {
|
|
5269
|
+
if (g[N.id])
|
|
5270
5270
|
return /* @__PURE__ */ n(di, {
|
|
5271
|
-
color:
|
|
5271
|
+
color: g[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: y ? {
|
|
5281
5281
|
expandIcon: Ci,
|
|
5282
5282
|
collapseIcon: Si,
|
|
5283
5283
|
loadingIcon: st,
|
|
5284
|
-
onFetchChildrenForRecord:
|
|
5284
|
+
onFetchChildrenForRecord: y,
|
|
5285
5285
|
childField: v
|
|
5286
5286
|
} : void 0
|
|
5287
5287
|
}), G()]
|
|
@@ -5300,11 +5300,11 @@ function hc(e, t) {
|
|
|
5300
5300
|
rootTree: d = !1,
|
|
5301
5301
|
parentContext: u = {},
|
|
5302
5302
|
onChangeSelectedRowKeys: m
|
|
5303
|
-
} = e, [
|
|
5303
|
+
} = e, [g, p] = _(!1), [h, y] = _(!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
|
|
5307
|
-
} = O || {}, k = W(
|
|
5307
|
+
} = O || {}, k = W(it), {
|
|
5308
5308
|
setResults: D = void 0,
|
|
5309
5309
|
setCurrentItemIndex: $ = void 0,
|
|
5310
5310
|
currentId: I = void 0,
|
|
@@ -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
|
+
y(!1), p(!0), T(void 0), Z == null || Z(!0);
|
|
5380
5380
|
try {
|
|
5381
|
-
await Ye(),
|
|
5381
|
+
await Ye(), y(!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: g ? /* @__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), [g, p] = _([]), h = async () => {
|
|
5528
5528
|
await new Promise((R) => setTimeout(R, 5)), r();
|
|
5529
|
-
},
|
|
5529
|
+
}, y = 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 (g.length === 0) {
|
|
5537
5537
|
h();
|
|
5538
5538
|
return;
|
|
5539
5539
|
}
|
|
5540
|
-
i(
|
|
5540
|
+
i(g);
|
|
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: y,
|
|
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), [g, p] = _(!1), [h, y] = _(!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
|
+
y(!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
|
+
y(!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
|
+
y(!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
|
+
y(!1);
|
|
5724
5724
|
}
|
|
5725
5725
|
};
|
|
5726
5726
|
async function Y() {
|
|
@@ -5745,7 +5745,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5745
5745
|
wrap: !1,
|
|
5746
5746
|
children: [/* @__PURE__ */ n(de, {
|
|
5747
5747
|
flex: "auto",
|
|
5748
|
-
children: /* @__PURE__ */ n(o && !a ? wc :
|
|
5748
|
+
children: /* @__PURE__ */ n(o && !a ? wc : ot, {
|
|
5749
5749
|
type: "text",
|
|
5750
5750
|
value: b,
|
|
5751
5751
|
disabled: a,
|
|
@@ -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: g,
|
|
5822
5822
|
onSubmitSucceed: (B) => {
|
|
5823
5823
|
p(!1), U(B);
|
|
5824
5824
|
},
|
|
@@ -5829,7 +5829,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5829
5829
|
readOnly: a
|
|
5830
5830
|
})]
|
|
5831
5831
|
});
|
|
5832
|
-
}, wc = Et(
|
|
5832
|
+
}, wc = Et(ot)`
|
|
5833
5833
|
.ant-input {
|
|
5834
5834
|
background-color: ${Mo.colorPrimaryBg};
|
|
5835
5835
|
}
|
|
@@ -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, g] = _(!1), [p, h] = _(), [y, 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
|
+
g(!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
|
+
g(!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: y,
|
|
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 g = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
6090
6090
|
useGrouping: !0
|
|
6091
6091
|
})}%`;
|
|
6092
|
-
let p = Lo(
|
|
6092
|
+
let p = Lo(g, `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, g] = _(), [p, h] = _(), [y, 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
|
+
g(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: y,
|
|
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: g,
|
|
6436
6436
|
isGroup: p,
|
|
6437
6437
|
isStack: h
|
|
6438
|
-
} = d,
|
|
6439
|
-
return
|
|
6438
|
+
} = d, y = kc[u];
|
|
6439
|
+
return y ? /* @__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(y, {
|
|
6451
6451
|
...Ec({
|
|
6452
6452
|
type: u,
|
|
6453
|
-
data:
|
|
6453
|
+
data: g,
|
|
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, g] = _(), p = W(it), {
|
|
6481
6481
|
setGraphIsLoading: h = void 0
|
|
6482
6482
|
} = p || {};
|
|
6483
6483
|
xt(t, () => ({
|
|
6484
6484
|
refresh: () => {
|
|
6485
|
-
|
|
6485
|
+
y();
|
|
6486
6486
|
}
|
|
6487
6487
|
})), ge(() => {
|
|
6488
|
-
|
|
6488
|
+
y();
|
|
6489
6489
|
}, [r]);
|
|
6490
|
-
async function
|
|
6490
|
+
async function y() {
|
|
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
|
+
g(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: g,
|
|
6610
6610
|
showCreateButton: p,
|
|
6611
6611
|
showToggleButton: h
|
|
6612
6612
|
} = e, {
|
|
6613
|
-
token:
|
|
6613
|
+
token: y
|
|
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: y.borderRadius,
|
|
6625
|
+
backgroundColor: y.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" && g.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: g,
|
|
6717
6717
|
getContext: p,
|
|
6718
6718
|
domain: h
|
|
6719
6719
|
} = d || {}, {
|
|
6720
|
-
lang:
|
|
6720
|
+
lang: y,
|
|
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: g()
|
|
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: y,
|
|
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: y,
|
|
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: y,
|
|
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 || !1,
|
|
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, g] = _(/* @__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 y = 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 y(R);
|
|
7161
7161
|
m.set(R, b);
|
|
7162
7162
|
}
|
|
7163
|
-
|
|
7163
|
+
g(m);
|
|
7164
7164
|
} else {
|
|
7165
|
-
const R = await
|
|
7166
|
-
m.set("form", R), m.set("tree", b),
|
|
7165
|
+
const R = await y("form"), b = await y("tree");
|
|
7166
|
+
m.set("form", R), m.set("tree", b), g(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: g
|
|
7232
7232
|
} = m || {};
|
|
7233
7233
|
ge(() => {
|
|
7234
7234
|
u(Oo(r));
|
|
@@ -7239,10 +7239,10 @@ 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 y() {
|
|
7243
|
+
p(Yl(d)), await new Promise((v) => setTimeout(v, 300)), g == null || g();
|
|
7244
7244
|
}
|
|
7245
|
-
return /* @__PURE__ */ n(
|
|
7245
|
+
return /* @__PURE__ */ n(ot, {
|
|
7246
7246
|
value: d,
|
|
7247
7247
|
disabled: s,
|
|
7248
7248
|
className: "w-full",
|
|
@@ -7250,7 +7250,7 @@ const Wc = (e) => {
|
|
|
7250
7250
|
id: o,
|
|
7251
7251
|
placeholder: "00:00",
|
|
7252
7252
|
onChange: h,
|
|
7253
|
-
onBlur:
|
|
7253
|
+
onBlur: y
|
|
7254
7254
|
});
|
|
7255
7255
|
};
|
|
7256
7256
|
function No(e) {
|
|
@@ -7306,7 +7306,7 @@ const {
|
|
|
7306
7306
|
useToken: Xc
|
|
7307
7307
|
} = Pe, {
|
|
7308
7308
|
TextArea: En
|
|
7309
|
-
} =
|
|
7309
|
+
} = ot, Qc = (e) => {
|
|
7310
7310
|
const {
|
|
7311
7311
|
ooui: t
|
|
7312
7312
|
} = e, {
|
|
@@ -7353,13 +7353,13 @@ const {
|
|
|
7353
7353
|
formHasChanges: c,
|
|
7354
7354
|
elementHasLostFocus: d
|
|
7355
7355
|
} = s || {}, [u, m] = _(!1), {
|
|
7356
|
-
t:
|
|
7356
|
+
t: g
|
|
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(g("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: g("translate"),
|
|
7419
7419
|
icon: /* @__PURE__ */ n(qr, {}),
|
|
7420
7420
|
onClick: async () => {
|
|
7421
|
-
c != null && c() ? mt(
|
|
7421
|
+
c != null && c() ? mt(g("saveBeforeTranslate")) : mt(g("enterTextBeforeTranslate"));
|
|
7422
7422
|
},
|
|
7423
|
-
children:
|
|
7423
|
+
children: g("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 (y) => {
|
|
7452
|
+
if (y.selectedKeys === void 0 || y.selectedKeys.length === 0) {
|
|
7453
7453
|
mt(Oe("selectAtLeastOneField", r));
|
|
7454
7454
|
return;
|
|
7455
7455
|
}
|
|
7456
7456
|
let v = o;
|
|
7457
|
-
|
|
7457
|
+
y.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: y.selectedKeys,
|
|
7464
7464
|
fields: l.current
|
|
7465
7465
|
}),
|
|
7466
7466
|
domain: v,
|
|
7467
|
-
limit:
|
|
7467
|
+
limit: y.registersAmount === "all" ? 0 : s,
|
|
7468
7468
|
context: t,
|
|
7469
|
-
format:
|
|
7469
|
+
format: y.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 y = 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["/"] = y, kr({ fields: y });
|
|
7483
7483
|
}, [e, t, l]), u = ke(
|
|
7484
|
-
async (
|
|
7485
|
-
const C = Ln(
|
|
7484
|
+
async (y) => {
|
|
7485
|
+
const C = Ln(y, l.current)[$n(y)], 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[y] = b, kr({
|
|
7496
7496
|
fields: b,
|
|
7497
|
-
parentKey:
|
|
7497
|
+
parentKey: y
|
|
7498
7498
|
});
|
|
7499
7499
|
},
|
|
7500
7500
|
[l.current, e, t]
|
|
7501
7501
|
), m = ke(async () => {
|
|
7502
|
-
const
|
|
7503
|
-
predefinedExports:
|
|
7502
|
+
const y = await id({ model: e, context: t }), v = await ad({
|
|
7503
|
+
predefinedExports: y,
|
|
7504
7504
|
fields: l.current,
|
|
7505
7505
|
onGetFieldChilds: u
|
|
7506
7506
|
});
|
|
7507
7507
|
return {
|
|
7508
|
-
predefinedExports:
|
|
7508
|
+
predefinedExports: y.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]), g = ke(
|
|
7521
|
+
async (y) => {
|
|
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: y.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
|
+
y.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
|
+
), { ...y, id: R };
|
|
7542
7542
|
},
|
|
7543
7543
|
[]
|
|
7544
7544
|
), p = ke(
|
|
7545
|
-
async (
|
|
7545
|
+
async (y) => {
|
|
7546
7546
|
await H.getHandler().delete({
|
|
7547
7547
|
model: "ir.exports",
|
|
7548
|
-
ids: [
|
|
7548
|
+
ids: [y.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 (y) => {
|
|
7554
|
+
if (f.current.has(y))
|
|
7555
|
+
return f.current.get(y);
|
|
7556
7556
|
const v = H.getHandler().getFields({
|
|
7557
|
-
model:
|
|
7557
|
+
model: y,
|
|
7558
7558
|
context: t,
|
|
7559
7559
|
fields: []
|
|
7560
7560
|
});
|
|
7561
|
-
f.current.set(
|
|
7561
|
+
f.current.set(y, 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: g,
|
|
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: g,
|
|
7690
7690
|
onGetPredefinedExports: p,
|
|
7691
7691
|
onSavePredefinedExport: h,
|
|
7692
|
-
onRemovePredefinedExport:
|
|
7692
|
+
onRemovePredefinedExport: y
|
|
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: g,
|
|
7711
7711
|
visibleRegisters: d,
|
|
7712
7712
|
onGetPredefinedExports: p,
|
|
7713
7713
|
onSavePredefinedExport: h,
|
|
7714
|
-
onRemovePredefinedExport:
|
|
7714
|
+
onRemovePredefinedExport: y
|
|
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(y) {
|
|
7741
|
+
this[h] = +y;
|
|
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(y) {
|
|
7745
|
+
if (!y || y === "Z")
|
|
7746
7746
|
return 0;
|
|
7747
|
-
var v =
|
|
7747
|
+
var v = y.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 y = l[h];
|
|
7752
|
+
return y && (y.indexOf ? y : y.s.concat(y.f));
|
|
7753
|
+
}, m = function(h, y) {
|
|
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, y)) > -1) {
|
|
7758
7758
|
v = R > 12;
|
|
7759
7759
|
break;
|
|
7760
7760
|
}
|
|
7761
7761
|
} else
|
|
7762
|
-
v = h === (
|
|
7762
|
+
v = h === (y ? "pm" : "PM");
|
|
7763
7763
|
return v;
|
|
7764
|
-
},
|
|
7764
|
+
}, g = { 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 y = l.ordinal, v = h.match(/\d+/);
|
|
7776
|
+
if (this.day = v[0], y)
|
|
7777
7777
|
for (var C = 1; C <= 31; C += 1)
|
|
7778
|
-
|
|
7778
|
+
y(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 y = u("months"), v = (u("monthsShort") || y.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 y = u("months").indexOf(h) + 1;
|
|
7788
|
+
if (y < 1)
|
|
7789
7789
|
throw new Error();
|
|
7790
|
-
this.month =
|
|
7790
|
+
this.month = y % 12 || y;
|
|
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 y, v;
|
|
7796
|
+
y = h, v = l && l.formats;
|
|
7797
|
+
for (var C = (h = y.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 = g[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, y, v) {
|
|
7826
7826
|
v.p.customParseFormat = !0, h && h.parseTwoDigitYear && (f = h.parseTwoDigitYear);
|
|
7827
|
-
var C =
|
|
7827
|
+
var C = y.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], g = t && l && l[1] && parseInt(l[1]);
|
|
7908
|
+
c([g, 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 g = f[0] || 0;
|
|
7924
|
+
m !== d && (c([]), g = 0);
|
|
7925
|
+
const p = `${m},${g}`;
|
|
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 g = `${d},${m[0] || 0}`;
|
|
7943
|
+
g !== t && (r == null || r(g));
|
|
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), g = 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 y() {
|
|
7989
7989
|
const R = await Rt(r);
|
|
7990
7990
|
pn(r, R.mime);
|
|
7991
7991
|
}
|
|
@@ -8011,11 +8011,11 @@ const hd = (e) => {
|
|
|
8011
8011
|
display: "none"
|
|
8012
8012
|
},
|
|
8013
8013
|
onChange: v
|
|
8014
|
-
}), /* @__PURE__ */ n(
|
|
8014
|
+
}), /* @__PURE__ */ n(ot, {
|
|
8015
8015
|
type: "text",
|
|
8016
8016
|
disabled: !0,
|
|
8017
8017
|
style: f,
|
|
8018
|
-
value:
|
|
8018
|
+
value: g
|
|
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: y,
|
|
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((g, 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(g)
|
|
8079
8079
|
}), /* @__PURE__ */ n(de, {
|
|
8080
8080
|
flex: "auto",
|
|
8081
8081
|
style: {
|
|
8082
8082
|
paddingRight: 20
|
|
8083
8083
|
},
|
|
8084
|
-
children:
|
|
8084
|
+
children: g.type.charAt(0).toUpperCase() + g.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 === g.view_id ? 1 : 0
|
|
8090
8090
|
}
|
|
8091
8091
|
})
|
|
8092
8092
|
})]
|
|
8093
8093
|
})
|
|
8094
|
-
},
|
|
8094
|
+
}, g.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 g = r.find((p) => p.view_id === parseInt(m.key));
|
|
8118
|
+
i(g);
|
|
8119
8119
|
});
|
|
8120
8120
|
}
|
|
8121
8121
|
return /* @__PURE__ */ P("div", {
|
|
@@ -8155,6 +8155,9 @@ function tr(e) {
|
|
|
8155
8155
|
})]
|
|
8156
8156
|
});
|
|
8157
8157
|
}
|
|
8158
|
+
const {
|
|
8159
|
+
Search: xd
|
|
8160
|
+
} = ot;
|
|
8158
8161
|
function At(e) {
|
|
8159
8162
|
const {
|
|
8160
8163
|
icon: t,
|
|
@@ -8162,26 +8165,33 @@ function At(e) {
|
|
|
8162
8165
|
items: i = [],
|
|
8163
8166
|
onItemClick: o,
|
|
8164
8167
|
label: s,
|
|
8165
|
-
disabled: a = !1
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8168
|
+
disabled: a = !1,
|
|
8169
|
+
searchable: l = "auto"
|
|
8170
|
+
} = e, [f, c] = _([...i]), d = (g) => {
|
|
8171
|
+
c(g ? i.filter((p) => p.name.toLowerCase().indexOf(g.toLowerCase()) !== -1) : [...i]);
|
|
8172
|
+
};
|
|
8173
|
+
function u() {
|
|
8174
|
+
const g = f == null ? void 0 : f.map((p, h) => p.name === "divider" ? /* @__PURE__ */ n(je.Divider, {}, "divider" + h) : /* @__PURE__ */ n(je.Item, {
|
|
8175
|
+
children: p.name
|
|
8176
|
+
}, p.id));
|
|
8177
|
+
return /* @__PURE__ */ P(je, {
|
|
8178
|
+
onClick: m,
|
|
8179
|
+
children: [(l === "auto" && i.length > 3 || l === !0) && /* @__PURE__ */ n(xd, {
|
|
8180
|
+
onChange: (p) => d(p.target.value),
|
|
8181
|
+
onSearch: d,
|
|
8182
|
+
allowClear: !0
|
|
8183
|
+
}), /* @__PURE__ */ n(je.ItemGroup, {
|
|
8174
8184
|
title: r,
|
|
8175
|
-
children:
|
|
8176
|
-
})
|
|
8185
|
+
children: g
|
|
8186
|
+
})]
|
|
8177
8187
|
});
|
|
8178
8188
|
}
|
|
8179
|
-
function
|
|
8180
|
-
const
|
|
8181
|
-
o(
|
|
8189
|
+
function m(g) {
|
|
8190
|
+
const p = i.find((h) => isNaN(g.key) ? h.id === g.key : h.id === parseInt(g.key));
|
|
8191
|
+
o(p);
|
|
8182
8192
|
}
|
|
8183
8193
|
return /* @__PURE__ */ n(Gt, {
|
|
8184
|
-
overlay:
|
|
8194
|
+
overlay: u(),
|
|
8185
8195
|
disabled: a || !i || i.length === 0,
|
|
8186
8196
|
children: /* @__PURE__ */ P(Ie, {
|
|
8187
8197
|
children: [t, " ", s, " ", /* @__PURE__ */ n(kt, {})]
|
|
@@ -8212,7 +8222,7 @@ function Bo(e) {
|
|
|
8212
8222
|
} = e, {
|
|
8213
8223
|
formHasChanges: r,
|
|
8214
8224
|
onNewClicked: i
|
|
8215
|
-
} = W(
|
|
8225
|
+
} = W(it), {
|
|
8216
8226
|
t: o,
|
|
8217
8227
|
lang: s
|
|
8218
8228
|
} = W(ye), a = () => {
|
|
@@ -8235,13 +8245,13 @@ function Bo(e) {
|
|
|
8235
8245
|
});
|
|
8236
8246
|
}
|
|
8237
8247
|
const {
|
|
8238
|
-
confirm:
|
|
8239
|
-
} = Je,
|
|
8248
|
+
confirm: Cd
|
|
8249
|
+
} = Je, Sd = ({
|
|
8240
8250
|
onOk: e,
|
|
8241
8251
|
onCancel: t,
|
|
8242
8252
|
lang: r
|
|
8243
8253
|
}) => {
|
|
8244
|
-
|
|
8254
|
+
Cd({
|
|
8245
8255
|
title: Oe("unsavedChanges", r),
|
|
8246
8256
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
8247
8257
|
centered: !0,
|
|
@@ -8267,7 +8277,7 @@ async function jo(e, t, r) {
|
|
|
8267
8277
|
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + f[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
8268
8278
|
}));
|
|
8269
8279
|
}
|
|
8270
|
-
const
|
|
8280
|
+
const Td = (e) => {
|
|
8271
8281
|
const {
|
|
8272
8282
|
numberOfAttachments: t,
|
|
8273
8283
|
disabled: r
|
|
@@ -8286,12 +8296,12 @@ const Sd = (e) => {
|
|
|
8286
8296
|
onVisibleChange: (f) => a(f),
|
|
8287
8297
|
visible: s,
|
|
8288
8298
|
placement: "bottom",
|
|
8289
|
-
content:
|
|
8299
|
+
content: Fd(e, a, o),
|
|
8290
8300
|
title: i("attachments"),
|
|
8291
8301
|
arrowContent: null,
|
|
8292
8302
|
children: l
|
|
8293
8303
|
});
|
|
8294
|
-
},
|
|
8304
|
+
}, Fd = (e, t, r) => {
|
|
8295
8305
|
const {
|
|
8296
8306
|
attachments: i = [],
|
|
8297
8307
|
loading: o,
|
|
@@ -8377,7 +8387,7 @@ const Sd = (e) => {
|
|
|
8377
8387
|
})]
|
|
8378
8388
|
});
|
|
8379
8389
|
};
|
|
8380
|
-
function
|
|
8390
|
+
function Od(e) {
|
|
8381
8391
|
const {
|
|
8382
8392
|
attachments: t,
|
|
8383
8393
|
disabled: r = !1,
|
|
@@ -8386,8 +8396,8 @@ function Fd(e) {
|
|
|
8386
8396
|
onViewAttachmentDetails: s
|
|
8387
8397
|
} = e, {
|
|
8388
8398
|
formRef: a
|
|
8389
|
-
} = W(
|
|
8390
|
-
t:
|
|
8399
|
+
} = W(it), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!1), {
|
|
8400
|
+
t: g
|
|
8391
8401
|
} = W(ye), p = ke(async () => {
|
|
8392
8402
|
f(!0);
|
|
8393
8403
|
try {
|
|
@@ -8429,13 +8439,13 @@ function Fd(e) {
|
|
|
8429
8439
|
pn(C.datas, R.mime);
|
|
8430
8440
|
} else
|
|
8431
8441
|
s(C);
|
|
8432
|
-
}, []),
|
|
8442
|
+
}, []), y = ke(async (v) => {
|
|
8433
8443
|
s(v);
|
|
8434
8444
|
}, []);
|
|
8435
8445
|
return ge(() => {
|
|
8436
8446
|
p();
|
|
8437
8447
|
}, [p]), /* @__PURE__ */ P(te, {
|
|
8438
|
-
children: [/* @__PURE__ */ n(
|
|
8448
|
+
children: [/* @__PURE__ */ n(Td, {
|
|
8439
8449
|
numberOfAttachments: t.length,
|
|
8440
8450
|
attachments: c,
|
|
8441
8451
|
disabled: r,
|
|
@@ -8443,9 +8453,9 @@ function Fd(e) {
|
|
|
8443
8453
|
onAddNewAttachment: i,
|
|
8444
8454
|
onListAllAttachments: o,
|
|
8445
8455
|
onopenAttachmentLink: h,
|
|
8446
|
-
onOpenAttachmentDetail:
|
|
8456
|
+
onOpenAttachmentDetail: y
|
|
8447
8457
|
}), /* @__PURE__ */ n(Je, {
|
|
8448
|
-
title:
|
|
8458
|
+
title: g("downloadingAttachment"),
|
|
8449
8459
|
open: u,
|
|
8450
8460
|
footer: null,
|
|
8451
8461
|
closable: !1,
|
|
@@ -8455,7 +8465,7 @@ function Fd(e) {
|
|
|
8455
8465
|
})]
|
|
8456
8466
|
});
|
|
8457
8467
|
}
|
|
8458
|
-
function
|
|
8468
|
+
function Id({
|
|
8459
8469
|
toolbar: e
|
|
8460
8470
|
}) {
|
|
8461
8471
|
const {
|
|
@@ -8471,10 +8481,10 @@ function Od({
|
|
|
8471
8481
|
currentItemIndex: d,
|
|
8472
8482
|
setCurrentId: u,
|
|
8473
8483
|
currentModel: m,
|
|
8474
|
-
setRemovingItem:
|
|
8484
|
+
setRemovingItem: g,
|
|
8475
8485
|
removingItem: p,
|
|
8476
8486
|
duplicatingItem: h,
|
|
8477
|
-
setDuplicatingItem:
|
|
8487
|
+
setDuplicatingItem: y,
|
|
8478
8488
|
setResults: v,
|
|
8479
8489
|
formIsLoading: C,
|
|
8480
8490
|
attachments: R,
|
|
@@ -8483,7 +8493,7 @@ function Od({
|
|
|
8483
8493
|
previousView: S,
|
|
8484
8494
|
setPreviousView: E,
|
|
8485
8495
|
goToResourceId: x
|
|
8486
|
-
} = W(
|
|
8496
|
+
} = W(it), {
|
|
8487
8497
|
t: T,
|
|
8488
8498
|
lang: F
|
|
8489
8499
|
} = W(ye), w = W(Lt), {
|
|
@@ -8494,7 +8504,7 @@ function Od({
|
|
|
8494
8504
|
} = V || {};
|
|
8495
8505
|
function k(N) {
|
|
8496
8506
|
if (s) {
|
|
8497
|
-
|
|
8507
|
+
Sd({
|
|
8498
8508
|
lang: F,
|
|
8499
8509
|
onOk: () => {
|
|
8500
8510
|
N();
|
|
@@ -8533,7 +8543,7 @@ function Od({
|
|
|
8533
8543
|
}
|
|
8534
8544
|
async function G() {
|
|
8535
8545
|
try {
|
|
8536
|
-
|
|
8546
|
+
g == null || g(!0), await H.getHandler().delete({
|
|
8537
8547
|
model: m,
|
|
8538
8548
|
ids: [l]
|
|
8539
8549
|
});
|
|
@@ -8544,12 +8554,12 @@ function Od({
|
|
|
8544
8554
|
} catch (N) {
|
|
8545
8555
|
sn(JSON.stringify(N));
|
|
8546
8556
|
} finally {
|
|
8547
|
-
|
|
8557
|
+
g == null || g(!1);
|
|
8548
8558
|
}
|
|
8549
8559
|
}
|
|
8550
8560
|
async function U() {
|
|
8551
8561
|
try {
|
|
8552
|
-
|
|
8562
|
+
y == null || y(!0);
|
|
8553
8563
|
const N = await H.getHandler().duplicate({
|
|
8554
8564
|
id: l,
|
|
8555
8565
|
model: m,
|
|
@@ -8559,7 +8569,7 @@ function Od({
|
|
|
8559
8569
|
} catch (N) {
|
|
8560
8570
|
sn(JSON.stringify(N));
|
|
8561
8571
|
} finally {
|
|
8562
|
-
|
|
8572
|
+
y == null || y(!1);
|
|
8563
8573
|
}
|
|
8564
8574
|
}
|
|
8565
8575
|
const Y = a || p || C || h;
|
|
@@ -8688,7 +8698,7 @@ function Od({
|
|
|
8688
8698
|
action_type: N.type
|
|
8689
8699
|
});
|
|
8690
8700
|
}
|
|
8691
|
-
}), /* @__PURE__ */ n(
|
|
8701
|
+
}), /* @__PURE__ */ n(Od, {
|
|
8692
8702
|
disabled: Y,
|
|
8693
8703
|
attachments: R,
|
|
8694
8704
|
onAddNewAttachment: async () => {
|
|
@@ -8753,7 +8763,7 @@ async function Ot({
|
|
|
8753
8763
|
};
|
|
8754
8764
|
}
|
|
8755
8765
|
const {
|
|
8756
|
-
useToken:
|
|
8766
|
+
useToken: _d
|
|
8757
8767
|
} = Pe, Ko = (e) => {
|
|
8758
8768
|
const {
|
|
8759
8769
|
ooui: t,
|
|
@@ -8767,14 +8777,14 @@ const {
|
|
|
8767
8777
|
required: f
|
|
8768
8778
|
} = t, {
|
|
8769
8779
|
token: c
|
|
8770
|
-
} =
|
|
8780
|
+
} = _d(), d = f && !l ? {
|
|
8771
8781
|
backgroundColor: c.colorPrimaryBg
|
|
8772
8782
|
} : void 0, u = W(Le), {
|
|
8773
8783
|
elementHasLostFocus: m
|
|
8774
|
-
} = u || {}, [
|
|
8784
|
+
} = u || {}, [g, p] = _(!1), [h, y] = _(!1);
|
|
8775
8785
|
ge(() => {
|
|
8776
|
-
l && !
|
|
8777
|
-
}, [
|
|
8786
|
+
l && !g && y(!1), !r && !l && (p(!0), y(!0));
|
|
8787
|
+
}, [g, l]);
|
|
8778
8788
|
const v = (C) => {
|
|
8779
8789
|
i == null || i(C.target.value);
|
|
8780
8790
|
};
|
|
@@ -8784,10 +8794,10 @@ const {
|
|
|
8784
8794
|
align: "middle",
|
|
8785
8795
|
children: [l ? null : /* @__PURE__ */ n(de, {
|
|
8786
8796
|
flex: "32px",
|
|
8787
|
-
children:
|
|
8797
|
+
children: g ? /* @__PURE__ */ n(Ie, {
|
|
8788
8798
|
icon: /* @__PURE__ */ n(Mt, {}),
|
|
8789
8799
|
onClick: () => {
|
|
8790
|
-
o(r) && (p(!1),
|
|
8800
|
+
o(r) && (p(!1), y(!1));
|
|
8791
8801
|
},
|
|
8792
8802
|
style: {
|
|
8793
8803
|
borderTopRightRadius: 0,
|
|
@@ -8797,7 +8807,7 @@ const {
|
|
|
8797
8807
|
}) : /* @__PURE__ */ n(Ie, {
|
|
8798
8808
|
icon: /* @__PURE__ */ n(no, {}),
|
|
8799
8809
|
onClick: () => {
|
|
8800
|
-
p(!0),
|
|
8810
|
+
p(!0), y(!0);
|
|
8801
8811
|
},
|
|
8802
8812
|
style: {
|
|
8803
8813
|
borderTopRightRadius: 0,
|
|
@@ -8807,7 +8817,7 @@ const {
|
|
|
8807
8817
|
})
|
|
8808
8818
|
}), /* @__PURE__ */ n(de, {
|
|
8809
8819
|
flex: "auto",
|
|
8810
|
-
children: h ? /* @__PURE__ */ n(
|
|
8820
|
+
children: h ? /* @__PURE__ */ n(ot, {
|
|
8811
8821
|
style: {
|
|
8812
8822
|
borderTopLeftRadius: 0,
|
|
8813
8823
|
borderBottomLeftRadius: 0,
|
|
@@ -8817,7 +8827,7 @@ const {
|
|
|
8817
8827
|
onChange: v,
|
|
8818
8828
|
value: r,
|
|
8819
8829
|
onBlur: () => {
|
|
8820
|
-
o(r) && (p(!1),
|
|
8830
|
+
o(r) && (p(!1), y(!1), m == null || m());
|
|
8821
8831
|
}
|
|
8822
8832
|
}) : /* @__PURE__ */ n("a", {
|
|
8823
8833
|
href: `${s}${r}`,
|
|
@@ -8830,7 +8840,7 @@ const {
|
|
|
8830
8840
|
})
|
|
8831
8841
|
})]
|
|
8832
8842
|
});
|
|
8833
|
-
},
|
|
8843
|
+
}, Dd = (e) => {
|
|
8834
8844
|
const {
|
|
8835
8845
|
ooui: t
|
|
8836
8846
|
} = e, {
|
|
@@ -8844,7 +8854,7 @@ const {
|
|
|
8844
8854
|
valueValidator: (i) => i ? Ui(i) : !1
|
|
8845
8855
|
})
|
|
8846
8856
|
});
|
|
8847
|
-
},
|
|
8857
|
+
}, Ad = (e) => {
|
|
8848
8858
|
const {
|
|
8849
8859
|
ooui: t
|
|
8850
8860
|
} = e, {
|
|
@@ -8859,7 +8869,7 @@ const {
|
|
|
8859
8869
|
valueValidator: (i) => i ? Gi(i) : !1
|
|
8860
8870
|
})
|
|
8861
8871
|
});
|
|
8862
|
-
},
|
|
8872
|
+
}, Rd = (e) => {
|
|
8863
8873
|
const {
|
|
8864
8874
|
visible: t,
|
|
8865
8875
|
onIdSubmitted: r,
|
|
@@ -8895,7 +8905,7 @@ const {
|
|
|
8895
8905
|
required: !0
|
|
8896
8906
|
}],
|
|
8897
8907
|
help: s("searchIdHelp"),
|
|
8898
|
-
children: /* @__PURE__ */ n(
|
|
8908
|
+
children: /* @__PURE__ */ n(ot, {
|
|
8899
8909
|
style: {
|
|
8900
8910
|
width: "100%"
|
|
8901
8911
|
},
|
|
@@ -8930,7 +8940,7 @@ const {
|
|
|
8930
8940
|
})
|
|
8931
8941
|
});
|
|
8932
8942
|
}, {
|
|
8933
|
-
useToken:
|
|
8943
|
+
useToken: Vd
|
|
8934
8944
|
} = Pe;
|
|
8935
8945
|
function Yo(e) {
|
|
8936
8946
|
const {
|
|
@@ -8938,7 +8948,7 @@ function Yo(e) {
|
|
|
8938
8948
|
...r
|
|
8939
8949
|
} = e, {
|
|
8940
8950
|
token: i
|
|
8941
|
-
} =
|
|
8951
|
+
} = Vd();
|
|
8942
8952
|
return /* @__PURE__ */ P("div", {
|
|
8943
8953
|
style: {
|
|
8944
8954
|
position: "relative"
|
|
@@ -8972,7 +8982,7 @@ function Yo(e) {
|
|
|
8972
8982
|
})]
|
|
8973
8983
|
});
|
|
8974
8984
|
}
|
|
8975
|
-
function
|
|
8985
|
+
function kd({
|
|
8976
8986
|
refreshGraph: e
|
|
8977
8987
|
}) {
|
|
8978
8988
|
const {
|
|
@@ -8987,7 +8997,7 @@ function Vd({
|
|
|
8987
8997
|
graphIsLoading: f,
|
|
8988
8998
|
previousView: c,
|
|
8989
8999
|
setPreviousView: d
|
|
8990
|
-
} = W(
|
|
9000
|
+
} = W(it);
|
|
8991
9001
|
return /* @__PURE__ */ P(We, {
|
|
8992
9002
|
wrap: !0,
|
|
8993
9003
|
children: [/* @__PURE__ */ n(Yo, {
|
|
@@ -9023,9 +9033,9 @@ function Vd({
|
|
|
9023
9033
|
});
|
|
9024
9034
|
}
|
|
9025
9035
|
const {
|
|
9026
|
-
useToken:
|
|
9036
|
+
useToken: Md
|
|
9027
9037
|
} = Pe, {
|
|
9028
|
-
Title:
|
|
9038
|
+
Title: Ed,
|
|
9029
9039
|
Text: tn
|
|
9030
9040
|
} = Ut;
|
|
9031
9041
|
function vn(e) {
|
|
@@ -9040,11 +9050,11 @@ function vn(e) {
|
|
|
9040
9050
|
results: l,
|
|
9041
9051
|
totalItems: f,
|
|
9042
9052
|
selectedRowItems: c
|
|
9043
|
-
} = W(
|
|
9053
|
+
} = W(it), {
|
|
9044
9054
|
t: d
|
|
9045
9055
|
} = W(ye), {
|
|
9046
9056
|
token: u
|
|
9047
|
-
} =
|
|
9057
|
+
} = Md();
|
|
9048
9058
|
function m() {
|
|
9049
9059
|
if ((o == null ? void 0 : o.type) === "form")
|
|
9050
9060
|
return s ? f === 0 ? /* @__PURE__ */ P(te, {
|
|
@@ -9076,7 +9086,7 @@ function vn(e) {
|
|
|
9076
9086
|
return /* @__PURE__ */ P(te, {
|
|
9077
9087
|
children: [c.length, " ", d("selectedRegisters"), /* @__PURE__ */ n(tn, {
|
|
9078
9088
|
copyable: {
|
|
9079
|
-
text: c.map((
|
|
9089
|
+
text: c.map((g) => g.id).join(", ")
|
|
9080
9090
|
}
|
|
9081
9091
|
})]
|
|
9082
9092
|
});
|
|
@@ -9099,7 +9109,7 @@ function vn(e) {
|
|
|
9099
9109
|
align: "middle",
|
|
9100
9110
|
children: [/* @__PURE__ */ P(de, {
|
|
9101
9111
|
flex: 2,
|
|
9102
|
-
children: [/* @__PURE__ */ n(
|
|
9112
|
+
children: [/* @__PURE__ */ n(Ed, {
|
|
9103
9113
|
level: 3,
|
|
9104
9114
|
style: {
|
|
9105
9115
|
marginBottom: 0
|
|
@@ -9118,7 +9128,7 @@ function vn(e) {
|
|
|
9118
9128
|
})]
|
|
9119
9129
|
});
|
|
9120
9130
|
}
|
|
9121
|
-
const
|
|
9131
|
+
const $d = (e) => {
|
|
9122
9132
|
const {
|
|
9123
9133
|
viewData: t,
|
|
9124
9134
|
visible: r,
|
|
@@ -9127,14 +9137,14 @@ const Ed = (e) => {
|
|
|
9127
9137
|
domain: s,
|
|
9128
9138
|
formView: a,
|
|
9129
9139
|
treeView: l
|
|
9130
|
-
} = e, f = ue(), c = W(
|
|
9140
|
+
} = e, f = ue(), c = W(it), {
|
|
9131
9141
|
setResults: d = void 0,
|
|
9132
9142
|
setCurrentItemIndex: u = void 0,
|
|
9133
9143
|
currentId: m = void 0,
|
|
9134
|
-
results:
|
|
9144
|
+
results: g = void 0,
|
|
9135
9145
|
setSelectedRowItems: p = void 0,
|
|
9136
9146
|
setSearchParams: h = void 0,
|
|
9137
|
-
searchVisible:
|
|
9147
|
+
searchVisible: y = !0,
|
|
9138
9148
|
setSearchVisible: v = void 0,
|
|
9139
9149
|
sorter: C = void 0,
|
|
9140
9150
|
setSorter: R = void 0,
|
|
@@ -9176,7 +9186,7 @@ const Ed = (e) => {
|
|
|
9176
9186
|
setSorter: R,
|
|
9177
9187
|
setCurrentItemIndex: u,
|
|
9178
9188
|
setResultsActionView: d,
|
|
9179
|
-
resultsActionView:
|
|
9189
|
+
resultsActionView: g,
|
|
9180
9190
|
domain: s,
|
|
9181
9191
|
currentId: m,
|
|
9182
9192
|
setActionViewTotalItems: b,
|
|
@@ -9186,7 +9196,7 @@ const Ed = (e) => {
|
|
|
9186
9196
|
return !r || !t ? null : /* @__PURE__ */ P(te, {
|
|
9187
9197
|
children: [/* @__PURE__ */ n(vn, {
|
|
9188
9198
|
title: t.name,
|
|
9189
|
-
children: /* @__PURE__ */ n(
|
|
9199
|
+
children: /* @__PURE__ */ n(kd, {
|
|
9190
9200
|
refreshGraph: () => {
|
|
9191
9201
|
f.current.refresh();
|
|
9192
9202
|
}
|
|
@@ -9205,7 +9215,7 @@ const Ed = (e) => {
|
|
|
9205
9215
|
O(!1), h == null || h(j.params), v == null || v(!1);
|
|
9206
9216
|
},
|
|
9207
9217
|
searchError: D,
|
|
9208
|
-
searchVisible:
|
|
9218
|
+
searchVisible: y,
|
|
9209
9219
|
searchValues: F,
|
|
9210
9220
|
showLimitOptions: !1
|
|
9211
9221
|
}), I ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(yn, {
|
|
@@ -9215,10 +9225,10 @@ const Ed = (e) => {
|
|
|
9215
9225
|
context: o,
|
|
9216
9226
|
domain: Yt(T || [], s),
|
|
9217
9227
|
limit: V ? E : void 0,
|
|
9218
|
-
manualIds: V ?
|
|
9228
|
+
manualIds: V ? g == null ? void 0 : g.map((j) => j.id) : void 0
|
|
9219
9229
|
})]
|
|
9220
9230
|
});
|
|
9221
|
-
},
|
|
9231
|
+
}, Ld = (e) => {
|
|
9222
9232
|
const {
|
|
9223
9233
|
visible: t,
|
|
9224
9234
|
formRef: r,
|
|
@@ -9235,7 +9245,7 @@ const Ed = (e) => {
|
|
|
9235
9245
|
} = e;
|
|
9236
9246
|
return t ? /* @__PURE__ */ P(te, {
|
|
9237
9247
|
children: [/* @__PURE__ */ n(vn, {
|
|
9238
|
-
children: /* @__PURE__ */ n(
|
|
9248
|
+
children: /* @__PURE__ */ n(Id, {
|
|
9239
9249
|
toolbar: a == null ? void 0 : a.toolbar
|
|
9240
9250
|
})
|
|
9241
9251
|
}), /* @__PURE__ */ n(Zt, {
|
|
@@ -9248,13 +9258,13 @@ const Ed = (e) => {
|
|
|
9248
9258
|
actionDomain: s,
|
|
9249
9259
|
id: o,
|
|
9250
9260
|
parentContext: l,
|
|
9251
|
-
onSubmitSucceed: (
|
|
9252
|
-
d.findIndex((
|
|
9261
|
+
onSubmitSucceed: (g, p) => {
|
|
9262
|
+
d.findIndex((y) => y.id === g) === -1 && (d.push(p), u(d), m(d.length - 1));
|
|
9253
9263
|
}
|
|
9254
9264
|
})]
|
|
9255
9265
|
}) : null;
|
|
9256
9266
|
};
|
|
9257
|
-
function
|
|
9267
|
+
function Nd(e) {
|
|
9258
9268
|
const {
|
|
9259
9269
|
onSearch: t,
|
|
9260
9270
|
disabled: r = !1,
|
|
@@ -9286,7 +9296,7 @@ function Ld(e) {
|
|
|
9286
9296
|
children: /* @__PURE__ */ n(lt.Item, {
|
|
9287
9297
|
name: "search",
|
|
9288
9298
|
noStyle: !0,
|
|
9289
|
-
children: /* @__PURE__ */ n(
|
|
9299
|
+
children: /* @__PURE__ */ n(ot, {
|
|
9290
9300
|
autoFocus: !0,
|
|
9291
9301
|
disabled: r,
|
|
9292
9302
|
onChange: (d) => {
|
|
@@ -9321,10 +9331,10 @@ function Ld(e) {
|
|
|
9321
9331
|
})
|
|
9322
9332
|
});
|
|
9323
9333
|
}
|
|
9324
|
-
const
|
|
9334
|
+
const Pd = Qe.createContext({
|
|
9325
9335
|
previewFeatures: !1
|
|
9326
9336
|
});
|
|
9327
|
-
function
|
|
9337
|
+
function Hd(e) {
|
|
9328
9338
|
var U;
|
|
9329
9339
|
const {
|
|
9330
9340
|
availableViews: t,
|
|
@@ -9339,10 +9349,10 @@ function Pd(e) {
|
|
|
9339
9349
|
searchTreeRef: d,
|
|
9340
9350
|
setCurrentId: u,
|
|
9341
9351
|
setCurrentItemIndex: m,
|
|
9342
|
-
searchParams:
|
|
9352
|
+
searchParams: g,
|
|
9343
9353
|
searchVisible: p,
|
|
9344
9354
|
setSearchVisible: h,
|
|
9345
|
-
setSearchTreeNameSearch:
|
|
9355
|
+
setSearchTreeNameSearch: y,
|
|
9346
9356
|
searchTreeNameSearch: v,
|
|
9347
9357
|
treeIsLoading: C,
|
|
9348
9358
|
setPreviousView: R,
|
|
@@ -9350,12 +9360,12 @@ function Pd(e) {
|
|
|
9350
9360
|
results: A,
|
|
9351
9361
|
limit: S,
|
|
9352
9362
|
totalItems: E
|
|
9353
|
-
} = W(
|
|
9363
|
+
} = W(it), {
|
|
9354
9364
|
parentContext: x = {},
|
|
9355
9365
|
treeExpandable: T,
|
|
9356
9366
|
toolbar: F
|
|
9357
9367
|
} = e;
|
|
9358
|
-
W(
|
|
9368
|
+
W(Pd);
|
|
9359
9369
|
const {
|
|
9360
9370
|
t: w,
|
|
9361
9371
|
lang: L
|
|
@@ -9426,11 +9436,11 @@ function Pd(e) {
|
|
|
9426
9436
|
children: [C && /* @__PURE__ */ P(te, {
|
|
9427
9437
|
children: [/* @__PURE__ */ n(Re, {}), vt(), vt()]
|
|
9428
9438
|
}), T ? null : /* @__PURE__ */ P(te, {
|
|
9429
|
-
children: [/* @__PURE__ */ n(
|
|
9439
|
+
children: [/* @__PURE__ */ n(Nd, {
|
|
9430
9440
|
disabled: l || a || C,
|
|
9431
9441
|
searchText: v,
|
|
9432
9442
|
onSearch: (Y) => {
|
|
9433
|
-
Y && Y.trim().length > 0 ?
|
|
9443
|
+
Y && Y.trim().length > 0 ? y == null || y(Y) : y == null || y(void 0);
|
|
9434
9444
|
}
|
|
9435
9445
|
}), !T && /* @__PURE__ */ n(Yo, {
|
|
9436
9446
|
icon: /* @__PURE__ */ n(ro, {
|
|
@@ -9444,7 +9454,7 @@ function Pd(e) {
|
|
|
9444
9454
|
h == null || h(!p);
|
|
9445
9455
|
},
|
|
9446
9456
|
disabled: l || a || C,
|
|
9447
|
-
badgeNumber:
|
|
9457
|
+
badgeNumber: g == null ? void 0 : g.length
|
|
9448
9458
|
}), vt(), /* @__PURE__ */ n(Bo, {
|
|
9449
9459
|
disabled: C
|
|
9450
9460
|
}), /* @__PURE__ */ n(Ze, {
|
|
@@ -9569,7 +9579,7 @@ function Pd(e) {
|
|
|
9569
9579
|
locale: L,
|
|
9570
9580
|
onClose: () => k(!1),
|
|
9571
9581
|
model: c,
|
|
9572
|
-
domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [],
|
|
9582
|
+
domain: Yt(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], g || []),
|
|
9573
9583
|
limit: S,
|
|
9574
9584
|
totalRegisters: E || 0,
|
|
9575
9585
|
selectedRegistersToExport: o,
|
|
@@ -9583,7 +9593,7 @@ function vt() {
|
|
|
9583
9593
|
className: "inline-block w-2"
|
|
9584
9594
|
});
|
|
9585
9595
|
}
|
|
9586
|
-
const
|
|
9596
|
+
const Bd = (e) => {
|
|
9587
9597
|
const {
|
|
9588
9598
|
visible: t,
|
|
9589
9599
|
searchTreeRef: r,
|
|
@@ -9597,14 +9607,14 @@ const Hd = (e) => {
|
|
|
9597
9607
|
setCurrentId: d,
|
|
9598
9608
|
setCurrentView: u,
|
|
9599
9609
|
availableViews: m,
|
|
9600
|
-
searchTreeNameSearch:
|
|
9610
|
+
searchTreeNameSearch: g
|
|
9601
9611
|
} = e, {
|
|
9602
9612
|
currentView: p,
|
|
9603
9613
|
setPreviousView: h
|
|
9604
|
-
} = W(
|
|
9614
|
+
} = W(it);
|
|
9605
9615
|
return t ? /* @__PURE__ */ P(te, {
|
|
9606
9616
|
children: [/* @__PURE__ */ n(vn, {
|
|
9607
|
-
children: /* @__PURE__ */ n(
|
|
9617
|
+
children: /* @__PURE__ */ n(Hd, {
|
|
9608
9618
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9609
9619
|
parentContext: o,
|
|
9610
9620
|
treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
|
|
@@ -9614,14 +9624,14 @@ const Hd = (e) => {
|
|
|
9614
9624
|
rootTree: !0,
|
|
9615
9625
|
model: i,
|
|
9616
9626
|
parentContext: o,
|
|
9617
|
-
nameSearch:
|
|
9627
|
+
nameSearch: g,
|
|
9618
9628
|
formView: s,
|
|
9619
9629
|
treeView: a,
|
|
9620
9630
|
domain: l,
|
|
9621
|
-
onRowClicked: (
|
|
9631
|
+
onRowClicked: (y) => {
|
|
9622
9632
|
const {
|
|
9623
9633
|
id: v
|
|
9624
|
-
} =
|
|
9634
|
+
} = y;
|
|
9625
9635
|
d(v);
|
|
9626
9636
|
const C = c.findIndex((b) => b.id === v);
|
|
9627
9637
|
h == null || h(p), f(C);
|
|
@@ -9630,7 +9640,7 @@ const Hd = (e) => {
|
|
|
9630
9640
|
}
|
|
9631
9641
|
})]
|
|
9632
9642
|
}) : null;
|
|
9633
|
-
}, nr = Qe.createContext(null),
|
|
9643
|
+
}, nr = Qe.createContext(null), jd = (e) => {
|
|
9634
9644
|
const [t, r] = _(!1), [i, o] = _(!1), {
|
|
9635
9645
|
children: s,
|
|
9636
9646
|
dashboardRef: a,
|
|
@@ -9648,7 +9658,7 @@ const Hd = (e) => {
|
|
|
9648
9658
|
children: s
|
|
9649
9659
|
});
|
|
9650
9660
|
};
|
|
9651
|
-
function
|
|
9661
|
+
function Kd() {
|
|
9652
9662
|
const {
|
|
9653
9663
|
isLoading: e,
|
|
9654
9664
|
dashboardRef: t,
|
|
@@ -9672,7 +9682,7 @@ function jd() {
|
|
|
9672
9682
|
onClick: () => {
|
|
9673
9683
|
i(!r);
|
|
9674
9684
|
}
|
|
9675
|
-
}),
|
|
9685
|
+
}), Yd(), /* @__PURE__ */ n(Ze, {
|
|
9676
9686
|
icon: /* @__PURE__ */ n(Vi, {}),
|
|
9677
9687
|
tooltip: o("configDashboard"),
|
|
9678
9688
|
disabled: e,
|
|
@@ -9691,25 +9701,25 @@ function jd() {
|
|
|
9691
9701
|
})]
|
|
9692
9702
|
});
|
|
9693
9703
|
}
|
|
9694
|
-
function
|
|
9704
|
+
function Yd() {
|
|
9695
9705
|
return /* @__PURE__ */ n("div", {
|
|
9696
9706
|
className: "inline-block w-2"
|
|
9697
9707
|
});
|
|
9698
9708
|
}
|
|
9699
|
-
const
|
|
9709
|
+
const Wd = (e) => {
|
|
9700
9710
|
const {
|
|
9701
9711
|
dashboardData: t
|
|
9702
9712
|
} = e, r = ue(), i = W(dt), {
|
|
9703
9713
|
openShortcut: o
|
|
9704
9714
|
} = i || {};
|
|
9705
|
-
return t ? /* @__PURE__ */ P(
|
|
9715
|
+
return t ? /* @__PURE__ */ P(jd, {
|
|
9706
9716
|
dashboardRef: r,
|
|
9707
9717
|
openAction: (s) => {
|
|
9708
9718
|
o(s);
|
|
9709
9719
|
},
|
|
9710
9720
|
children: [/* @__PURE__ */ n(vn, {
|
|
9711
|
-
children: /* @__PURE__ */ n(
|
|
9712
|
-
}), /* @__PURE__ */ n(
|
|
9721
|
+
children: /* @__PURE__ */ n(Kd, {})
|
|
9722
|
+
}), /* @__PURE__ */ n(ou, {
|
|
9713
9723
|
ref: r,
|
|
9714
9724
|
model: t.model,
|
|
9715
9725
|
id: t.id,
|
|
@@ -9718,7 +9728,7 @@ const Yd = (e) => {
|
|
|
9718
9728
|
})]
|
|
9719
9729
|
}) : null;
|
|
9720
9730
|
};
|
|
9721
|
-
async function
|
|
9731
|
+
async function Ud(e) {
|
|
9722
9732
|
const t = await Promise.all(
|
|
9723
9733
|
e.map(async (i) => {
|
|
9724
9734
|
try {
|
|
@@ -9733,7 +9743,7 @@ async function Wd(e) {
|
|
|
9733
9743
|
info: t[o]
|
|
9734
9744
|
})).filter((i) => i.info !== null);
|
|
9735
9745
|
}
|
|
9736
|
-
function
|
|
9746
|
+
function Gd(e, t) {
|
|
9737
9747
|
const {
|
|
9738
9748
|
domain: r,
|
|
9739
9749
|
model: i,
|
|
@@ -9746,10 +9756,10 @@ function Ud(e, t) {
|
|
|
9746
9756
|
formDefaultValues: d,
|
|
9747
9757
|
formForcedValues: u = {},
|
|
9748
9758
|
res_id: m = !1,
|
|
9749
|
-
action_id:
|
|
9759
|
+
action_id: g,
|
|
9750
9760
|
action_type: p,
|
|
9751
9761
|
treeExpandable: h = !1,
|
|
9752
|
-
limit:
|
|
9762
|
+
limit: y
|
|
9753
9763
|
} = 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] = _(), {
|
|
9754
9764
|
t: B
|
|
9755
9765
|
} = W(ye), X = ue(), ne = ue(), le = W(dt), {
|
|
@@ -9789,7 +9799,7 @@ function Ud(e, t) {
|
|
|
9789
9799
|
viewTuple: se
|
|
9790
9800
|
});
|
|
9791
9801
|
}
|
|
9792
|
-
const Ve = await
|
|
9802
|
+
const Ve = await Ud(xe);
|
|
9793
9803
|
for (const se of Ve) {
|
|
9794
9804
|
if (!se)
|
|
9795
9805
|
continue;
|
|
@@ -9803,7 +9813,7 @@ function Ud(e, t) {
|
|
|
9803
9813
|
});
|
|
9804
9814
|
let et;
|
|
9805
9815
|
ce && (et = {
|
|
9806
|
-
action_id:
|
|
9816
|
+
action_id: g,
|
|
9807
9817
|
action_type: p,
|
|
9808
9818
|
name: a,
|
|
9809
9819
|
res_id: o.active_id,
|
|
@@ -9900,7 +9910,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9900
9910
|
id: He == null ? void 0 : He[0],
|
|
9901
9911
|
type: xe
|
|
9902
9912
|
},
|
|
9903
|
-
action_id:
|
|
9913
|
+
action_id: g,
|
|
9904
9914
|
action_type: p,
|
|
9905
9915
|
res_id: ee[0]
|
|
9906
9916
|
});
|
|
@@ -9909,7 +9919,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9909
9919
|
return R.map((ee) => {
|
|
9910
9920
|
switch (ee.type) {
|
|
9911
9921
|
case "form":
|
|
9912
|
-
return /* @__PURE__ */ n(
|
|
9922
|
+
return /* @__PURE__ */ n(Ld, {
|
|
9913
9923
|
formRef: X,
|
|
9914
9924
|
currentId: x,
|
|
9915
9925
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
@@ -9924,9 +9934,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9924
9934
|
setCurrentItemIndex: V
|
|
9925
9935
|
}, `${ee.type}-${ee.view_id}`);
|
|
9926
9936
|
case "tree":
|
|
9927
|
-
return /* @__PURE__ */ n(
|
|
9937
|
+
return /* @__PURE__ */ n(Bd, {
|
|
9928
9938
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
9929
|
-
limit:
|
|
9939
|
+
limit: y,
|
|
9930
9940
|
model: i,
|
|
9931
9941
|
context: o,
|
|
9932
9942
|
domain: r,
|
|
@@ -9941,7 +9951,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9941
9951
|
setCurrentView: Ge
|
|
9942
9952
|
}, `${ee.type}-${ee.view_id}`);
|
|
9943
9953
|
case "graph":
|
|
9944
|
-
return /* @__PURE__ */ n(
|
|
9954
|
+
return /* @__PURE__ */ n($d, {
|
|
9945
9955
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
9946
9956
|
viewData: ee,
|
|
9947
9957
|
model: i,
|
|
@@ -9951,7 +9961,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9951
9961
|
formView: R.find((xe) => xe.type === "form")
|
|
9952
9962
|
}, `${ee.type}-${ee.view_id}`);
|
|
9953
9963
|
case "dashboard":
|
|
9954
|
-
return /* @__PURE__ */ n(
|
|
9964
|
+
return /* @__PURE__ */ n(Wd, {
|
|
9955
9965
|
dashboardData: ee
|
|
9956
9966
|
}, `${ee.type}-${ee.view_id}`);
|
|
9957
9967
|
}
|
|
@@ -9990,8 +10000,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9990
10000
|
setSearchTreeNameSearch: N,
|
|
9991
10001
|
searchTreeNameSearch: z,
|
|
9992
10002
|
goToResourceId: be,
|
|
9993
|
-
limit:
|
|
9994
|
-
children: [$e(), /* @__PURE__ */ n(
|
|
10003
|
+
limit: y,
|
|
10004
|
+
children: [$e(), /* @__PURE__ */ n(Rd, {
|
|
9995
10005
|
visible: j,
|
|
9996
10006
|
onIdSubmitted: be,
|
|
9997
10007
|
isSearching: U,
|
|
@@ -10001,8 +10011,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10001
10011
|
})]
|
|
10002
10012
|
}) : null;
|
|
10003
10013
|
}
|
|
10004
|
-
const Wo = bt(
|
|
10005
|
-
async function
|
|
10014
|
+
const Wo = bt(Gd);
|
|
10015
|
+
async function qd({
|
|
10006
10016
|
actionId: e,
|
|
10007
10017
|
rootContext: t = {},
|
|
10008
10018
|
globalValues: r = {}
|
|
@@ -10024,7 +10034,7 @@ async function Gd({
|
|
|
10024
10034
|
name: d,
|
|
10025
10035
|
limit: u,
|
|
10026
10036
|
view_type: m
|
|
10027
|
-
} = s,
|
|
10037
|
+
} = s, g = m === "tree", p = [];
|
|
10028
10038
|
for (const C of c) {
|
|
10029
10039
|
const [R, b] = C;
|
|
10030
10040
|
if (R)
|
|
@@ -10039,7 +10049,7 @@ async function Gd({
|
|
|
10039
10049
|
p.push([A, b]);
|
|
10040
10050
|
}
|
|
10041
10051
|
}
|
|
10042
|
-
const [h,
|
|
10052
|
+
const [h, y] = p[0], v = { id: h, type: y };
|
|
10043
10053
|
return {
|
|
10044
10054
|
title: d,
|
|
10045
10055
|
actionId: e,
|
|
@@ -10051,10 +10061,10 @@ async function Gd({
|
|
|
10051
10061
|
domain: l,
|
|
10052
10062
|
initialView: v,
|
|
10053
10063
|
limit: u,
|
|
10054
|
-
treeExpandable:
|
|
10064
|
+
treeExpandable: g
|
|
10055
10065
|
};
|
|
10056
10066
|
}
|
|
10057
|
-
const
|
|
10067
|
+
const zd = Xi(Qi), Jd = (e) => {
|
|
10058
10068
|
const {
|
|
10059
10069
|
children: t = [],
|
|
10060
10070
|
onPositionItemsChanged: r
|
|
@@ -10068,7 +10078,7 @@ const qd = Xi(Qi), zd = (e) => {
|
|
|
10068
10078
|
children: o
|
|
10069
10079
|
}, a);
|
|
10070
10080
|
});
|
|
10071
|
-
return /* @__PURE__ */ n(
|
|
10081
|
+
return /* @__PURE__ */ n(zd, {
|
|
10072
10082
|
className: "layout",
|
|
10073
10083
|
cols: {
|
|
10074
10084
|
lg: 12,
|
|
@@ -10091,10 +10101,10 @@ const qd = Xi(Qi), zd = (e) => {
|
|
|
10091
10101
|
children: i
|
|
10092
10102
|
});
|
|
10093
10103
|
}, {
|
|
10094
|
-
useToken:
|
|
10104
|
+
useToken: Zd
|
|
10095
10105
|
} = Pe, {
|
|
10096
|
-
Text:
|
|
10097
|
-
} = Ut,
|
|
10106
|
+
Text: Xd
|
|
10107
|
+
} = Ut, Qd = (e) => {
|
|
10098
10108
|
const {
|
|
10099
10109
|
title: t,
|
|
10100
10110
|
children: r,
|
|
@@ -10102,7 +10112,7 @@ const qd = Xi(Qi), zd = (e) => {
|
|
|
10102
10112
|
openAction: o
|
|
10103
10113
|
} = e, {
|
|
10104
10114
|
token: s
|
|
10105
|
-
} =
|
|
10115
|
+
} = Zd();
|
|
10106
10116
|
return /* @__PURE__ */ P("div", {
|
|
10107
10117
|
className: "shadow-md",
|
|
10108
10118
|
style: {
|
|
@@ -10130,7 +10140,7 @@ const qd = Xi(Qi), zd = (e) => {
|
|
|
10130
10140
|
cursor: "grab",
|
|
10131
10141
|
overflow: "hidden"
|
|
10132
10142
|
},
|
|
10133
|
-
children: /* @__PURE__ */ n(
|
|
10143
|
+
children: /* @__PURE__ */ n(Xd, {
|
|
10134
10144
|
ellipsis: !0,
|
|
10135
10145
|
children: t
|
|
10136
10146
|
})
|
|
@@ -10154,8 +10164,8 @@ const qd = Xi(Qi), zd = (e) => {
|
|
|
10154
10164
|
})]
|
|
10155
10165
|
}), r]
|
|
10156
10166
|
});
|
|
10157
|
-
},
|
|
10158
|
-
function
|
|
10167
|
+
}, eu = 80;
|
|
10168
|
+
function tu(e) {
|
|
10159
10169
|
const {
|
|
10160
10170
|
action: t,
|
|
10161
10171
|
model: r,
|
|
@@ -10164,7 +10174,7 @@ function eu(e) {
|
|
|
10164
10174
|
domain: s = [],
|
|
10165
10175
|
visible: a = !0,
|
|
10166
10176
|
parentContext: l = {}
|
|
10167
|
-
} = e, [f, c] = _(!1), [d, u] = _(!1), [m,
|
|
10177
|
+
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, g] = _(), [p, h] = _(), [y, 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) => {
|
|
10168
10178
|
G(!0), R(Z), A((Z - 1) * S.current);
|
|
10169
10179
|
}, z = async () => {
|
|
10170
10180
|
const Z = U.current.length > 0 ? U.current : s, fe = Yt(E.current, Z), {
|
|
@@ -10190,7 +10200,7 @@ function eu(e) {
|
|
|
10190
10200
|
sorter: O,
|
|
10191
10201
|
fields: {
|
|
10192
10202
|
...p.fields,
|
|
10193
|
-
...
|
|
10203
|
+
...y.fields
|
|
10194
10204
|
}
|
|
10195
10205
|
});
|
|
10196
10206
|
G(!1), w(Ge);
|
|
@@ -10220,9 +10230,9 @@ function eu(e) {
|
|
|
10220
10230
|
action: t,
|
|
10221
10231
|
context: l
|
|
10222
10232
|
});
|
|
10223
|
-
U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")),
|
|
10233
|
+
U.current = Z.domain, v(Z.views.get("form")), h(Z.views.get("tree")), g(Z.model), S.current = Z.limit;
|
|
10224
10234
|
}, ne = async () => {
|
|
10225
|
-
|
|
10235
|
+
g(r);
|
|
10226
10236
|
const Z = await H.getHandler().getView({
|
|
10227
10237
|
model: r,
|
|
10228
10238
|
type: "form",
|
|
@@ -10249,7 +10259,7 @@ function eu(e) {
|
|
|
10249
10259
|
model: m,
|
|
10250
10260
|
treeView: p
|
|
10251
10261
|
});
|
|
10252
|
-
}, J = () => !p || !
|
|
10262
|
+
}, J = () => !p || !y ? null : /* @__PURE__ */ P("div", {
|
|
10253
10263
|
style: {
|
|
10254
10264
|
overflowY: "scroll"
|
|
10255
10265
|
},
|
|
@@ -10277,7 +10287,7 @@ function eu(e) {
|
|
|
10277
10287
|
sorter: Z,
|
|
10278
10288
|
fields: {
|
|
10279
10289
|
...p.fields,
|
|
10280
|
-
...
|
|
10290
|
+
...y.fields
|
|
10281
10291
|
}
|
|
10282
10292
|
});
|
|
10283
10293
|
w(fe);
|
|
@@ -10296,7 +10306,7 @@ function eu(e) {
|
|
|
10296
10306
|
}
|
|
10297
10307
|
}) : J();
|
|
10298
10308
|
}
|
|
10299
|
-
const
|
|
10309
|
+
const nu = (e) => {
|
|
10300
10310
|
const {
|
|
10301
10311
|
model: t
|
|
10302
10312
|
} = e, [r, i] = _();
|
|
@@ -10324,7 +10334,7 @@ const tu = (e) => {
|
|
|
10324
10334
|
})
|
|
10325
10335
|
});
|
|
10326
10336
|
}, Dn = "line_ids";
|
|
10327
|
-
function
|
|
10337
|
+
function ru(e, t) {
|
|
10328
10338
|
const {
|
|
10329
10339
|
model: r,
|
|
10330
10340
|
context: i = {},
|
|
@@ -10332,9 +10342,9 @@ function nu(e, t) {
|
|
|
10332
10342
|
configAction: s
|
|
10333
10343
|
} = e, [a, l] = _([]), [f, c] = _(!1), [d, u] = _(), {
|
|
10334
10344
|
setIsLoading: m,
|
|
10335
|
-
openAction:
|
|
10345
|
+
openAction: g,
|
|
10336
10346
|
moveItemsEnabled: p
|
|
10337
|
-
} = W(nr), h = ue(),
|
|
10347
|
+
} = W(nr), h = ue(), y = ue();
|
|
10338
10348
|
ge(() => {
|
|
10339
10349
|
v();
|
|
10340
10350
|
}, [r, o, i]), xt(t, () => ({
|
|
@@ -10347,7 +10357,7 @@ function nu(e, t) {
|
|
|
10347
10357
|
c(!0), m(!0), u(void 0);
|
|
10348
10358
|
try {
|
|
10349
10359
|
const x = await C(), T = await b(x), F = x.fields[Dn].relation, w = T[Dn].items;
|
|
10350
|
-
|
|
10360
|
+
y.current = x.fields;
|
|
10351
10361
|
const L = await R({
|
|
10352
10362
|
items: w,
|
|
10353
10363
|
model: F,
|
|
@@ -10404,7 +10414,7 @@ function nu(e, t) {
|
|
|
10404
10414
|
values: w
|
|
10405
10415
|
} = F;
|
|
10406
10416
|
if (w.action_id && w.action_id.length > 0) {
|
|
10407
|
-
const L = parseInt(w.action_id[0], 10), V = await
|
|
10417
|
+
const L = parseInt(w.action_id[0], 10), V = await qd({
|
|
10408
10418
|
actionId: L,
|
|
10409
10419
|
rootContext: i
|
|
10410
10420
|
});
|
|
@@ -10457,19 +10467,19 @@ function nu(e, t) {
|
|
|
10457
10467
|
values: {
|
|
10458
10468
|
[Dn]: L
|
|
10459
10469
|
},
|
|
10460
|
-
fields:
|
|
10470
|
+
fields: y.current,
|
|
10461
10471
|
context: i
|
|
10462
10472
|
});
|
|
10463
10473
|
}
|
|
10464
10474
|
async function E() {
|
|
10465
|
-
|
|
10475
|
+
g(s);
|
|
10466
10476
|
}
|
|
10467
10477
|
return d ? (console.log(d), /* @__PURE__ */ n(tt, {
|
|
10468
10478
|
className: "mt-10 mb-20",
|
|
10469
10479
|
message: d,
|
|
10470
10480
|
type: "error",
|
|
10471
10481
|
banner: !0
|
|
10472
|
-
})) : f ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(
|
|
10482
|
+
})) : f ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Jd, {
|
|
10473
10483
|
onPositionItemsChanged: S,
|
|
10474
10484
|
children: a.map((x, T) => {
|
|
10475
10485
|
const {
|
|
@@ -10511,12 +10521,12 @@ function nu(e, t) {
|
|
|
10511
10521
|
limit: Y
|
|
10512
10522
|
});
|
|
10513
10523
|
else if ((U == null ? void 0 : U.type) === "form")
|
|
10514
|
-
N = /* @__PURE__ */ n(
|
|
10524
|
+
N = /* @__PURE__ */ n(nu, {
|
|
10515
10525
|
model: I,
|
|
10516
10526
|
actionDomain: G
|
|
10517
10527
|
});
|
|
10518
10528
|
else if ((U == null ? void 0 : U.type) === "tree")
|
|
10519
|
-
N = /* @__PURE__ */ n(
|
|
10529
|
+
N = /* @__PURE__ */ n(tu, {
|
|
10520
10530
|
model: I,
|
|
10521
10531
|
domain: G,
|
|
10522
10532
|
view_id: $.filter((ne) => ne[1] === "tree")[0][0],
|
|
@@ -10540,7 +10550,7 @@ function nu(e, t) {
|
|
|
10540
10550
|
view_id: J,
|
|
10541
10551
|
view_type: Z
|
|
10542
10552
|
};
|
|
10543
|
-
|
|
10553
|
+
g(Ne);
|
|
10544
10554
|
}
|
|
10545
10555
|
}
|
|
10546
10556
|
});
|
|
@@ -10586,29 +10596,29 @@ function nu(e, t) {
|
|
|
10586
10596
|
view_type: le
|
|
10587
10597
|
};
|
|
10588
10598
|
}
|
|
10589
|
-
return /* @__PURE__ */ n(
|
|
10599
|
+
return /* @__PURE__ */ n(Qd, {
|
|
10590
10600
|
id: V,
|
|
10591
10601
|
title: D,
|
|
10592
10602
|
parms: z,
|
|
10593
10603
|
action: B,
|
|
10594
|
-
openAction:
|
|
10604
|
+
openAction: g,
|
|
10595
10605
|
children: N
|
|
10596
10606
|
}, V);
|
|
10597
10607
|
})
|
|
10598
10608
|
});
|
|
10599
10609
|
}
|
|
10600
|
-
const
|
|
10610
|
+
const ou = bt(ru), iu = (e) => {
|
|
10601
10611
|
const {
|
|
10602
10612
|
ooui: t
|
|
10603
10613
|
} = e;
|
|
10604
10614
|
return /* @__PURE__ */ n(we, {
|
|
10605
10615
|
type: "array",
|
|
10606
10616
|
...e,
|
|
10607
|
-
children: /* @__PURE__ */ n(
|
|
10617
|
+
children: /* @__PURE__ */ n(su, {
|
|
10608
10618
|
ooui: t
|
|
10609
10619
|
})
|
|
10610
10620
|
});
|
|
10611
|
-
},
|
|
10621
|
+
}, su = (e) => {
|
|
10612
10622
|
const {
|
|
10613
10623
|
value: t,
|
|
10614
10624
|
ooui: r,
|
|
@@ -10617,10 +10627,10 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10617
10627
|
items: o = []
|
|
10618
10628
|
} = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = _([]), [f, c] = _(), [d, u] = _(!1), {
|
|
10619
10629
|
relation: m,
|
|
10620
|
-
context:
|
|
10630
|
+
context: g,
|
|
10621
10631
|
readOnly: p,
|
|
10622
10632
|
field: h,
|
|
10623
|
-
columns:
|
|
10633
|
+
columns: y
|
|
10624
10634
|
} = r, v = W(Le), {
|
|
10625
10635
|
getContext: C
|
|
10626
10636
|
} = v || {};
|
|
@@ -10654,7 +10664,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10654
10664
|
fields: [h],
|
|
10655
10665
|
context: {
|
|
10656
10666
|
...C == null ? void 0 : C(),
|
|
10657
|
-
...
|
|
10667
|
+
...g
|
|
10658
10668
|
}
|
|
10659
10669
|
})).map((w) => {
|
|
10660
10670
|
const L = w[h];
|
|
@@ -10709,7 +10719,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10709
10719
|
},
|
|
10710
10720
|
children: /* @__PURE__ */ n(Ce, {
|
|
10711
10721
|
children: a.map((x) => /* @__PURE__ */ n(de, {
|
|
10712
|
-
span: Math.floor(24 /
|
|
10722
|
+
span: Math.floor(24 / y),
|
|
10713
10723
|
children: /* @__PURE__ */ n(jt, {
|
|
10714
10724
|
value: x.value,
|
|
10715
10725
|
children: x.label
|
|
@@ -10729,12 +10739,12 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10729
10739
|
})]
|
|
10730
10740
|
})
|
|
10731
10741
|
});
|
|
10732
|
-
},
|
|
10742
|
+
}, au = (e) => /* @__PURE__ */ n(we, {
|
|
10733
10743
|
...e,
|
|
10734
|
-
children: /* @__PURE__ */ n(
|
|
10744
|
+
children: /* @__PURE__ */ n(lu, {
|
|
10735
10745
|
...e
|
|
10736
10746
|
})
|
|
10737
|
-
}),
|
|
10747
|
+
}), lu = (e) => {
|
|
10738
10748
|
const {
|
|
10739
10749
|
value: t,
|
|
10740
10750
|
ooui: r
|
|
@@ -10749,7 +10759,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10749
10759
|
children: t
|
|
10750
10760
|
})
|
|
10751
10761
|
});
|
|
10752
|
-
},
|
|
10762
|
+
}, cu = (e) => {
|
|
10753
10763
|
const {
|
|
10754
10764
|
ooui: t
|
|
10755
10765
|
} = e, {
|
|
@@ -10759,11 +10769,11 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10759
10769
|
required: r,
|
|
10760
10770
|
type: "any",
|
|
10761
10771
|
...e,
|
|
10762
|
-
children: /* @__PURE__ */ n(
|
|
10772
|
+
children: /* @__PURE__ */ n(du, {
|
|
10763
10773
|
...e
|
|
10764
10774
|
})
|
|
10765
10775
|
});
|
|
10766
|
-
},
|
|
10776
|
+
}, du = (e) => {
|
|
10767
10777
|
const {
|
|
10768
10778
|
ooui: t,
|
|
10769
10779
|
onChange: r,
|
|
@@ -10788,7 +10798,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10788
10798
|
children: f
|
|
10789
10799
|
})
|
|
10790
10800
|
});
|
|
10791
|
-
},
|
|
10801
|
+
}, uu = (e) => {
|
|
10792
10802
|
const {
|
|
10793
10803
|
ooui: t
|
|
10794
10804
|
} = e, {
|
|
@@ -10799,13 +10809,13 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10799
10809
|
return /* @__PURE__ */ n(we, {
|
|
10800
10810
|
...e,
|
|
10801
10811
|
valuePropName: "checked",
|
|
10802
|
-
children: /* @__PURE__ */ n(
|
|
10812
|
+
children: /* @__PURE__ */ n(fu, {
|
|
10803
10813
|
id: r,
|
|
10804
10814
|
readOnly: i,
|
|
10805
10815
|
required: o
|
|
10806
10816
|
})
|
|
10807
10817
|
});
|
|
10808
|
-
},
|
|
10818
|
+
}, fu = (e) => {
|
|
10809
10819
|
const {
|
|
10810
10820
|
required: t,
|
|
10811
10821
|
readOnly: r,
|
|
@@ -10818,7 +10828,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10818
10828
|
...i
|
|
10819
10829
|
})
|
|
10820
10830
|
});
|
|
10821
|
-
},
|
|
10831
|
+
}, mu = (e) => {
|
|
10822
10832
|
const {
|
|
10823
10833
|
ooui: t
|
|
10824
10834
|
} = e, {
|
|
@@ -10828,11 +10838,11 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10828
10838
|
required: r,
|
|
10829
10839
|
type: "any",
|
|
10830
10840
|
...e,
|
|
10831
|
-
children: /* @__PURE__ */ n(
|
|
10841
|
+
children: /* @__PURE__ */ n(hu, {
|
|
10832
10842
|
...e
|
|
10833
10843
|
})
|
|
10834
10844
|
});
|
|
10835
|
-
},
|
|
10845
|
+
}, hu = (e) => {
|
|
10836
10846
|
const {
|
|
10837
10847
|
ooui: t,
|
|
10838
10848
|
value: r
|
|
@@ -10849,7 +10859,7 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10849
10859
|
description: u === l && f === "error" ? c : null
|
|
10850
10860
|
}))
|
|
10851
10861
|
});
|
|
10852
|
-
},
|
|
10862
|
+
}, pu = (e) => {
|
|
10853
10863
|
const {
|
|
10854
10864
|
ooui: t
|
|
10855
10865
|
} = e, {
|
|
@@ -10880,21 +10890,21 @@ var Uo = { exports: {} };
|
|
|
10880
10890
|
function l(c, d, u, m) {
|
|
10881
10891
|
return s.fromToBase(c, d, u, m);
|
|
10882
10892
|
}
|
|
10883
|
-
o.en.relativeTime = a, s.fromToBase = function(c, d, u, m,
|
|
10884
|
-
for (var p, h,
|
|
10893
|
+
o.en.relativeTime = a, s.fromToBase = function(c, d, u, m, g) {
|
|
10894
|
+
for (var p, h, y, 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) {
|
|
10885
10895
|
var A = C[b];
|
|
10886
10896
|
A.d && (p = m ? o(c).diff(u, A.d, !0) : u.diff(c, A.d, !0));
|
|
10887
10897
|
var S = (r.rounding || Math.round)(Math.abs(p));
|
|
10888
|
-
if (
|
|
10898
|
+
if (y = p > 0, S <= A.r || !A.r) {
|
|
10889
10899
|
S <= 1 && b > 0 && (A = C[b - 1]);
|
|
10890
10900
|
var E = v[A.l];
|
|
10891
|
-
|
|
10901
|
+
g && (S = g("" + S)), h = typeof E == "string" ? E.replace("%d", S) : E(S, d, A.l, y);
|
|
10892
10902
|
break;
|
|
10893
10903
|
}
|
|
10894
10904
|
}
|
|
10895
10905
|
if (d)
|
|
10896
10906
|
return h;
|
|
10897
|
-
var x =
|
|
10907
|
+
var x = y ? v.future : v.past;
|
|
10898
10908
|
return typeof x == "function" ? x(h) : x.replace("%s", h);
|
|
10899
10909
|
}, s.to = function(c, d) {
|
|
10900
10910
|
return l(c, d, this, !0);
|
|
@@ -10912,13 +10922,13 @@ var Uo = { exports: {} };
|
|
|
10912
10922
|
};
|
|
10913
10923
|
});
|
|
10914
10924
|
})(Uo);
|
|
10915
|
-
const
|
|
10916
|
-
Meta:
|
|
10925
|
+
const gu = Uo.exports, {
|
|
10926
|
+
Meta: yu
|
|
10917
10927
|
} = Nn, {
|
|
10918
|
-
Text:
|
|
10928
|
+
Text: vu
|
|
10919
10929
|
} = Ut;
|
|
10920
|
-
at.extend(
|
|
10921
|
-
const
|
|
10930
|
+
at.extend(gu);
|
|
10931
|
+
const wu = ({
|
|
10922
10932
|
email: e,
|
|
10923
10933
|
size: t = 40,
|
|
10924
10934
|
theme: r = ""
|
|
@@ -10929,7 +10939,7 @@ const vu = ({
|
|
|
10929
10939
|
size: t
|
|
10930
10940
|
});
|
|
10931
10941
|
};
|
|
10932
|
-
function
|
|
10942
|
+
function bu({
|
|
10933
10943
|
text: e
|
|
10934
10944
|
}) {
|
|
10935
10945
|
const t = e.split(`
|
|
@@ -10940,7 +10950,7 @@ function wu({
|
|
|
10940
10950
|
}, i))
|
|
10941
10951
|
});
|
|
10942
10952
|
}
|
|
10943
|
-
const
|
|
10953
|
+
const xu = (e) => {
|
|
10944
10954
|
const {
|
|
10945
10955
|
data: t,
|
|
10946
10956
|
style: r
|
|
@@ -10952,8 +10962,8 @@ const bu = (e) => {
|
|
|
10952
10962
|
...r,
|
|
10953
10963
|
textAlign: "start"
|
|
10954
10964
|
},
|
|
10955
|
-
children: [/* @__PURE__ */ n(
|
|
10956
|
-
avatar: /* @__PURE__ */ n(
|
|
10965
|
+
children: [/* @__PURE__ */ n(yu, {
|
|
10966
|
+
avatar: /* @__PURE__ */ n(wu, {
|
|
10957
10967
|
email: t.email,
|
|
10958
10968
|
theme: "mp"
|
|
10959
10969
|
}),
|
|
@@ -10971,13 +10981,13 @@ const bu = (e) => {
|
|
|
10971
10981
|
style: {
|
|
10972
10982
|
marginBottom: "5px"
|
|
10973
10983
|
}
|
|
10974
|
-
}), /* @__PURE__ */ n(
|
|
10975
|
-
children: /* @__PURE__ */ n(
|
|
10984
|
+
}), /* @__PURE__ */ n(vu, {
|
|
10985
|
+
children: /* @__PURE__ */ n(bu, {
|
|
10976
10986
|
text: t.text
|
|
10977
10987
|
})
|
|
10978
10988
|
})]
|
|
10979
10989
|
}, t.id);
|
|
10980
|
-
},
|
|
10990
|
+
}, Cu = (e) => {
|
|
10981
10991
|
const {
|
|
10982
10992
|
value: t
|
|
10983
10993
|
} = e, r = (t || []).map((i) => {
|
|
@@ -10990,7 +11000,7 @@ const bu = (e) => {
|
|
|
10990
11000
|
color: "gray",
|
|
10991
11001
|
position: i.event.isSender ? "left" : "right",
|
|
10992
11002
|
label: i.event.date,
|
|
10993
|
-
children: /* @__PURE__ */ n(
|
|
11003
|
+
children: /* @__PURE__ */ n(xu, {
|
|
10994
11004
|
data: i.event
|
|
10995
11005
|
})
|
|
10996
11006
|
};
|
|
@@ -10999,27 +11009,27 @@ const bu = (e) => {
|
|
|
10999
11009
|
mode: "alternate",
|
|
11000
11010
|
items: r
|
|
11001
11011
|
});
|
|
11002
|
-
},
|
|
11012
|
+
}, Su = (e) => /* @__PURE__ */ n(we, {
|
|
11003
11013
|
...e,
|
|
11004
|
-
children: /* @__PURE__ */ n(
|
|
11014
|
+
children: /* @__PURE__ */ n(Cu, {})
|
|
11005
11015
|
}), {
|
|
11006
|
-
Content:
|
|
11016
|
+
Content: Tu
|
|
11007
11017
|
} = hi, {
|
|
11008
|
-
Title:
|
|
11018
|
+
Title: Fu
|
|
11009
11019
|
} = Ut;
|
|
11010
|
-
function
|
|
11020
|
+
function Ou() {
|
|
11011
11021
|
const {
|
|
11012
11022
|
t: e
|
|
11013
11023
|
} = W(ye);
|
|
11014
|
-
return /* @__PURE__ */ n(
|
|
11024
|
+
return /* @__PURE__ */ n(Tu, {
|
|
11015
11025
|
className: "m-5 select-none",
|
|
11016
|
-
children: /* @__PURE__ */ n(
|
|
11026
|
+
children: /* @__PURE__ */ n(Fu, {
|
|
11017
11027
|
level: 5,
|
|
11018
11028
|
children: e("welcome")
|
|
11019
11029
|
})
|
|
11020
11030
|
});
|
|
11021
11031
|
}
|
|
11022
|
-
function
|
|
11032
|
+
function Iu(e, t) {
|
|
11023
11033
|
const {
|
|
11024
11034
|
children: r,
|
|
11025
11035
|
globalValues: i = {},
|
|
@@ -11029,7 +11039,7 @@ function Ou(e, t) {
|
|
|
11029
11039
|
title: Oe("welcome", s),
|
|
11030
11040
|
key: "welcome",
|
|
11031
11041
|
closable: !0,
|
|
11032
|
-
content: /* @__PURE__ */ n(
|
|
11042
|
+
content: /* @__PURE__ */ n(Ou, {})
|
|
11033
11043
|
}]), d = ue(/* @__PURE__ */ new Map()), u = ue();
|
|
11034
11044
|
xt(t, () => ({
|
|
11035
11045
|
retrieveAndOpenAction: p,
|
|
@@ -11042,7 +11052,7 @@ function Ou(e, t) {
|
|
|
11042
11052
|
}
|
|
11043
11053
|
c(f.filter((A) => A.key !== b)), d.current.delete(b);
|
|
11044
11054
|
}
|
|
11045
|
-
function
|
|
11055
|
+
function g({
|
|
11046
11056
|
tabKey: b,
|
|
11047
11057
|
canWeClose: A
|
|
11048
11058
|
}) {
|
|
@@ -11153,7 +11163,7 @@ function Ou(e, t) {
|
|
|
11153
11163
|
action: E
|
|
11154
11164
|
}]), l(S);
|
|
11155
11165
|
}
|
|
11156
|
-
async function
|
|
11166
|
+
async function y({
|
|
11157
11167
|
relateData: b,
|
|
11158
11168
|
fields: A,
|
|
11159
11169
|
values: S,
|
|
@@ -11369,7 +11379,7 @@ function Ou(e, t) {
|
|
|
11369
11379
|
...A
|
|
11370
11380
|
},
|
|
11371
11381
|
domain: b,
|
|
11372
|
-
setCanWeClose:
|
|
11382
|
+
setCanWeClose: g,
|
|
11373
11383
|
initialView: I,
|
|
11374
11384
|
res_id: V,
|
|
11375
11385
|
formDefaultValues: O,
|
|
@@ -11386,7 +11396,7 @@ function Ou(e, t) {
|
|
|
11386
11396
|
children: /* @__PURE__ */ n(bl, {
|
|
11387
11397
|
openShortcut: v,
|
|
11388
11398
|
openAction: R,
|
|
11389
|
-
openRelate:
|
|
11399
|
+
openRelate: y,
|
|
11390
11400
|
openDefaultActionForModel: C,
|
|
11391
11401
|
tabs: f,
|
|
11392
11402
|
activeKey: a,
|
|
@@ -11405,10 +11415,10 @@ function Ou(e, t) {
|
|
|
11405
11415
|
})
|
|
11406
11416
|
});
|
|
11407
11417
|
}
|
|
11408
|
-
const
|
|
11409
|
-
useToken:
|
|
11418
|
+
const af = bt(Iu), {
|
|
11419
|
+
useToken: _u
|
|
11410
11420
|
} = Pe;
|
|
11411
|
-
function
|
|
11421
|
+
function Du(e) {
|
|
11412
11422
|
const {
|
|
11413
11423
|
label: t,
|
|
11414
11424
|
onClose: r,
|
|
@@ -11417,7 +11427,7 @@ function _u(e) {
|
|
|
11417
11427
|
onSelected: s
|
|
11418
11428
|
} = e, {
|
|
11419
11429
|
token: a
|
|
11420
|
-
} =
|
|
11430
|
+
} = _u(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
11421
11431
|
return /* @__PURE__ */ P("div", {
|
|
11422
11432
|
onClick: () => {
|
|
11423
11433
|
!o && s(i);
|
|
@@ -11472,7 +11482,7 @@ function _u(e) {
|
|
|
11472
11482
|
})]
|
|
11473
11483
|
});
|
|
11474
11484
|
}
|
|
11475
|
-
function
|
|
11485
|
+
function lf() {
|
|
11476
11486
|
const e = W(dt), {
|
|
11477
11487
|
activeKey: t,
|
|
11478
11488
|
tabs: r,
|
|
@@ -11480,7 +11490,7 @@ function af() {
|
|
|
11480
11490
|
onChangeTab: o
|
|
11481
11491
|
} = e || {};
|
|
11482
11492
|
return /* @__PURE__ */ n(te, {
|
|
11483
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
11493
|
+
children: r.map((s) => /* @__PURE__ */ n(Du, {
|
|
11484
11494
|
tabKey: s.key,
|
|
11485
11495
|
label: s.title,
|
|
11486
11496
|
onClose: i,
|
|
@@ -11489,7 +11499,7 @@ function af() {
|
|
|
11489
11499
|
}, s.key))
|
|
11490
11500
|
});
|
|
11491
11501
|
}
|
|
11492
|
-
function
|
|
11502
|
+
function Au(e) {
|
|
11493
11503
|
const {
|
|
11494
11504
|
tab: t
|
|
11495
11505
|
} = e, r = W(dt), {
|
|
@@ -11502,11 +11512,11 @@ function Du(e) {
|
|
|
11502
11512
|
children: t.content
|
|
11503
11513
|
});
|
|
11504
11514
|
}
|
|
11505
|
-
const
|
|
11506
|
-
function
|
|
11515
|
+
const Ru = Qe.memo(Au, () => !0);
|
|
11516
|
+
function cf() {
|
|
11507
11517
|
const e = W(dt), {
|
|
11508
11518
|
tabs: t
|
|
11509
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
11519
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Ru, {
|
|
11510
11520
|
tab: i
|
|
11511
11521
|
}, i.key))) || null;
|
|
11512
11522
|
return /* @__PURE__ */ n(te, {
|
|
@@ -11514,18 +11524,18 @@ function lf() {
|
|
|
11514
11524
|
});
|
|
11515
11525
|
}
|
|
11516
11526
|
const {
|
|
11517
|
-
useToken:
|
|
11518
|
-
} = Pe,
|
|
11527
|
+
useToken: Vu
|
|
11528
|
+
} = Pe, df = (e) => {
|
|
11519
11529
|
const {
|
|
11520
11530
|
onRetrieveShortcuts: t,
|
|
11521
11531
|
onCheckIsFavourite: r,
|
|
11522
11532
|
onAddFavourite: i,
|
|
11523
11533
|
onRemoveFavourite: o
|
|
11524
|
-
} = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [
|
|
11534
|
+
} = e, [s, a] = _(!1), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!0), [g, p] = _(), {
|
|
11525
11535
|
t: h
|
|
11526
11536
|
} = W(ye) || {}, {
|
|
11527
|
-
token:
|
|
11528
|
-
} =
|
|
11537
|
+
token: y
|
|
11538
|
+
} = Vu(), v = W(dt), {
|
|
11529
11539
|
openShortcut: C,
|
|
11530
11540
|
tabs: R,
|
|
11531
11541
|
activeKey: b,
|
|
@@ -11608,7 +11618,7 @@ const {
|
|
|
11608
11618
|
title: h == null ? void 0 : h("edit_favorites"),
|
|
11609
11619
|
children: /* @__PURE__ */ n(no, {
|
|
11610
11620
|
style: {
|
|
11611
|
-
color:
|
|
11621
|
+
color: y.colorPrimary,
|
|
11612
11622
|
cursor: "pointer"
|
|
11613
11623
|
},
|
|
11614
11624
|
onClick: L
|
|
@@ -11654,8 +11664,8 @@ const {
|
|
|
11654
11664
|
});
|
|
11655
11665
|
}
|
|
11656
11666
|
async function M() {
|
|
11657
|
-
if (s &&
|
|
11658
|
-
await o(
|
|
11667
|
+
if (s && g)
|
|
11668
|
+
await o(g);
|
|
11659
11669
|
else {
|
|
11660
11670
|
if (!A)
|
|
11661
11671
|
return;
|
|
@@ -11712,26 +11722,26 @@ const {
|
|
|
11712
11722
|
});
|
|
11713
11723
|
};
|
|
11714
11724
|
export {
|
|
11715
|
-
|
|
11725
|
+
Id as ActionBar,
|
|
11716
11726
|
wd as Binary,
|
|
11717
11727
|
Is as Boolean,
|
|
11718
11728
|
io as Button,
|
|
11719
11729
|
fs as ButtonGroup,
|
|
11720
11730
|
lo as Char,
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11731
|
+
pu as CodeEditor,
|
|
11732
|
+
Su as CommentsTimelineField,
|
|
11733
|
+
Pd as ConfigContext,
|
|
11724
11734
|
H as ConnectionProvider,
|
|
11725
11735
|
Sl as ContentRootProvider,
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11736
|
+
cf as CurrentTabContent,
|
|
11737
|
+
ou as Dashboard,
|
|
11738
|
+
Jd as DashboardGrid,
|
|
11739
|
+
Qd as DashboardGridItem,
|
|
11730
11740
|
ud as Date,
|
|
11731
11741
|
fd as DateTime,
|
|
11732
|
-
|
|
11742
|
+
Ad as Email,
|
|
11733
11743
|
dd as ExportModal,
|
|
11734
|
-
|
|
11744
|
+
df as FavouriteButton,
|
|
11735
11745
|
To as Float,
|
|
11736
11746
|
qc as FloatTime,
|
|
11737
11747
|
Zt as Form,
|
|
@@ -11742,28 +11752,28 @@ export {
|
|
|
11742
11752
|
on as Integer,
|
|
11743
11753
|
mn as Label,
|
|
11744
11754
|
vc as Many2one,
|
|
11745
|
-
|
|
11746
|
-
|
|
11755
|
+
au as Markdown,
|
|
11756
|
+
iu as MultiCheckbox,
|
|
11747
11757
|
Zc as Notebook,
|
|
11748
11758
|
Uc as One2many,
|
|
11749
11759
|
Wl as ProgressBar,
|
|
11750
|
-
|
|
11760
|
+
cu as Radio,
|
|
11751
11761
|
gd as Reference,
|
|
11752
|
-
|
|
11762
|
+
af as RootView,
|
|
11753
11763
|
Fo as SearchFilter,
|
|
11754
11764
|
ko as SearchModal,
|
|
11755
11765
|
Vo as SearchTree,
|
|
11756
11766
|
co as Selection,
|
|
11757
11767
|
td as Separator,
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11768
|
+
mu as Steps,
|
|
11769
|
+
uu as Switch,
|
|
11770
|
+
lf as TabSelector,
|
|
11761
11771
|
za as Tag,
|
|
11762
11772
|
Ja as Tags,
|
|
11763
11773
|
Qc as Text,
|
|
11764
11774
|
hd as Time,
|
|
11765
11775
|
gn as Tree,
|
|
11766
|
-
|
|
11776
|
+
Dd as Url,
|
|
11767
11777
|
ct as iconMapper,
|
|
11768
11778
|
zt as showConfirmDialog
|
|
11769
11779
|
};
|