@gisce/react-ooui 1.4.1-rc.0 → 1.4.2-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/react-ooui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Je, { useContext as Y, useState as T, useEffect as pe, useRef as
|
|
1
|
+
import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as Le, forwardRef as bt, useImperativeHandle as xt } from "react";
|
|
2
2
|
import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as Ie, Dropdown as Bt, Menu as He, Spin as Me, Divider as ln, Space as Ye, Input as nt, Select as Ct, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as ei, Card as ti, Tag as Dr, message as xn, DatePicker as Mn, TimePicker as Vr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Ar, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
|
|
3
3
|
import { Label as At, Field as In, Tree as Rr, Reference as ci, Selection as $n, Many2one as kr, Boolean as di, Container as ui, parseContext as wt, Form as Mr, Integer as _n, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Er, graphProcessor as $r, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
|
|
4
4
|
import * as or from "@ant-design/icons";
|
|
@@ -44,7 +44,7 @@ const {
|
|
|
44
44
|
tooltip: s,
|
|
45
45
|
fieldForLabel: a,
|
|
46
46
|
labelSize: l,
|
|
47
|
-
labelType:
|
|
47
|
+
labelType: d
|
|
48
48
|
} = t, f = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
49
49
|
token: v
|
|
50
50
|
} = Gi(), p = l === void 0 ? Wi : Ui;
|
|
@@ -62,7 +62,7 @@ const {
|
|
|
62
62
|
className: "pr-2",
|
|
63
63
|
children: /* @__PURE__ */ n(p, {
|
|
64
64
|
level: l,
|
|
65
|
-
type:
|
|
65
|
+
type: d,
|
|
66
66
|
children: /* @__PURE__ */ n(Gn, {
|
|
67
67
|
content: f
|
|
68
68
|
})
|
|
@@ -359,19 +359,19 @@ function ve({
|
|
|
359
359
|
alignLabel: s = "left",
|
|
360
360
|
required: a = !1,
|
|
361
361
|
type: l,
|
|
362
|
-
validator:
|
|
362
|
+
validator: d
|
|
363
363
|
}) {
|
|
364
364
|
const {
|
|
365
365
|
id: c,
|
|
366
366
|
label: f,
|
|
367
|
-
tooltip:
|
|
367
|
+
tooltip: u
|
|
368
368
|
} = e, {
|
|
369
369
|
t: m
|
|
370
370
|
} = Y(we), v = a ? [{
|
|
371
371
|
required: !0,
|
|
372
372
|
message: m("fillRequiredField"),
|
|
373
373
|
type: l,
|
|
374
|
-
validator:
|
|
374
|
+
validator: d
|
|
375
375
|
}] : void 0, p = () => /* @__PURE__ */ n(ot.Item, {
|
|
376
376
|
className: "mb-0",
|
|
377
377
|
name: c,
|
|
@@ -385,7 +385,7 @@ function ve({
|
|
|
385
385
|
ooui: new At({
|
|
386
386
|
name: c + "_label",
|
|
387
387
|
string: f,
|
|
388
|
-
help:
|
|
388
|
+
help: u,
|
|
389
389
|
fieldForLabel: c
|
|
390
390
|
}),
|
|
391
391
|
align: s
|
|
@@ -433,10 +433,10 @@ const {
|
|
|
433
433
|
getFieldValue: s,
|
|
434
434
|
executeButtonAction: a,
|
|
435
435
|
getContext: l,
|
|
436
|
-
getValues:
|
|
436
|
+
getValues: d,
|
|
437
437
|
getPlainValues: c,
|
|
438
438
|
domain: f,
|
|
439
|
-
submitForm:
|
|
439
|
+
submitForm: u,
|
|
440
440
|
fetchValues: m,
|
|
441
441
|
formHasChanges: v,
|
|
442
442
|
elementHasLostFocus: p,
|
|
@@ -445,7 +445,7 @@ const {
|
|
|
445
445
|
return /* @__PURE__ */ n(Ne.Provider, {
|
|
446
446
|
value: {
|
|
447
447
|
domain: f,
|
|
448
|
-
getValues:
|
|
448
|
+
getValues: d,
|
|
449
449
|
getPlainValues: c,
|
|
450
450
|
getFields: h,
|
|
451
451
|
activeId: r,
|
|
@@ -454,7 +454,7 @@ const {
|
|
|
454
454
|
getFieldValue: s,
|
|
455
455
|
executeButtonAction: a,
|
|
456
456
|
getContext: l,
|
|
457
|
-
submitForm:
|
|
457
|
+
submitForm: u,
|
|
458
458
|
fetchValues: m,
|
|
459
459
|
formHasChanges: v,
|
|
460
460
|
elementHasLostFocus: p
|
|
@@ -593,18 +593,18 @@ const Zr = (e) => {
|
|
|
593
593
|
buttonType: s,
|
|
594
594
|
confirmMessage: a,
|
|
595
595
|
icon: l,
|
|
596
|
-
context:
|
|
596
|
+
context: d,
|
|
597
597
|
readOnly: c
|
|
598
598
|
} = t, f = Y(Ne), {
|
|
599
|
-
executeButtonAction:
|
|
599
|
+
executeButtonAction: u
|
|
600
600
|
} = f || {}, [m, v] = T(!1), {
|
|
601
601
|
lang: p
|
|
602
602
|
} = Y(we);
|
|
603
603
|
async function h() {
|
|
604
|
-
v(!0), await
|
|
604
|
+
v(!0), await u({
|
|
605
605
|
type: s,
|
|
606
606
|
action: r,
|
|
607
|
-
context:
|
|
607
|
+
context: d
|
|
608
608
|
}), v(!1);
|
|
609
609
|
}
|
|
610
610
|
function g() {
|
|
@@ -655,10 +655,10 @@ const Zr = (e) => {
|
|
|
655
655
|
caption: s,
|
|
656
656
|
activated: a,
|
|
657
657
|
buttonType: l,
|
|
658
|
-
confirmMessage:
|
|
658
|
+
confirmMessage: d,
|
|
659
659
|
icon: c,
|
|
660
660
|
primary: f,
|
|
661
|
-
danger:
|
|
661
|
+
danger: u,
|
|
662
662
|
context: m,
|
|
663
663
|
readOnly: v
|
|
664
664
|
} = r || {}, p = Y(Ne), {
|
|
@@ -682,9 +682,9 @@ const Zr = (e) => {
|
|
|
682
682
|
}), y(!1));
|
|
683
683
|
}
|
|
684
684
|
function V() {
|
|
685
|
-
if (
|
|
685
|
+
if (d) {
|
|
686
686
|
Yt({
|
|
687
|
-
confirmMessage:
|
|
687
|
+
confirmMessage: d,
|
|
688
688
|
lang: O,
|
|
689
689
|
onOk: () => {
|
|
690
690
|
w();
|
|
@@ -730,10 +730,10 @@ const Zr = (e) => {
|
|
|
730
730
|
const {
|
|
731
731
|
id: a,
|
|
732
732
|
caption: l,
|
|
733
|
-
activated:
|
|
733
|
+
activated: d,
|
|
734
734
|
buttonType: c,
|
|
735
735
|
confirmMessage: f,
|
|
736
|
-
icon:
|
|
736
|
+
icon: u,
|
|
737
737
|
context: m,
|
|
738
738
|
readOnly: v,
|
|
739
739
|
danger: p
|
|
@@ -761,13 +761,13 @@ const Zr = (e) => {
|
|
|
761
761
|
function _() {
|
|
762
762
|
if (h)
|
|
763
763
|
return /* @__PURE__ */ n(rt, {});
|
|
764
|
-
if (
|
|
765
|
-
const w = it(
|
|
764
|
+
if (u) {
|
|
765
|
+
const w = it(u);
|
|
766
766
|
return w && /* @__PURE__ */ n(w, {});
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
return /* @__PURE__ */ n(He.Item, {
|
|
770
|
-
disabled: !
|
|
770
|
+
disabled: !d || v,
|
|
771
771
|
onClick: O,
|
|
772
772
|
icon: _(),
|
|
773
773
|
danger: p,
|
|
@@ -855,8 +855,8 @@ const Xr = (e) => {
|
|
|
855
855
|
} = e, {
|
|
856
856
|
modalWidth: l
|
|
857
857
|
} = fn(), {
|
|
858
|
-
t:
|
|
859
|
-
} = Y(we), [c, f] = T([]), [
|
|
858
|
+
t: d
|
|
859
|
+
} = Y(we), [c, f] = T([]), [u, m] = T(!1), [v, p] = T(!1), [h, g] = T({}), y = de();
|
|
860
860
|
pe(() => {
|
|
861
861
|
t ? O() : g({});
|
|
862
862
|
}, [t]);
|
|
@@ -944,7 +944,7 @@ const Xr = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return
|
|
947
|
+
return u ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
948
948
|
children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Ce, {
|
|
949
949
|
justify: "end",
|
|
950
950
|
children: /* @__PURE__ */ P(Ye, {
|
|
@@ -952,7 +952,7 @@ const Xr = (e) => {
|
|
|
952
952
|
icon: /* @__PURE__ */ n(jt, {}),
|
|
953
953
|
onClick: r,
|
|
954
954
|
disabled: v,
|
|
955
|
-
children:
|
|
955
|
+
children: d("cancel")
|
|
956
956
|
}), /* @__PURE__ */ n(Ie, {
|
|
957
957
|
icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(kt, {}),
|
|
958
958
|
disabled: v,
|
|
@@ -961,14 +961,14 @@ const Xr = (e) => {
|
|
|
961
961
|
marginLeft: 15
|
|
962
962
|
},
|
|
963
963
|
type: "primary",
|
|
964
|
-
children:
|
|
964
|
+
children: d("ok")
|
|
965
965
|
})]
|
|
966
966
|
})
|
|
967
967
|
})]
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
970
|
return /* @__PURE__ */ n(Ge, {
|
|
971
|
-
title:
|
|
971
|
+
title: d("translate"),
|
|
972
972
|
centered: !0,
|
|
973
973
|
width: l,
|
|
974
974
|
open: t,
|
|
@@ -1013,23 +1013,23 @@ const {
|
|
|
1013
1013
|
required: a,
|
|
1014
1014
|
translatable: l
|
|
1015
1015
|
} = t, {
|
|
1016
|
-
token:
|
|
1016
|
+
token: d
|
|
1017
1017
|
} = cs(), c = a && !o ? {
|
|
1018
|
-
backgroundColor:
|
|
1018
|
+
backgroundColor: d.colorPrimaryBg
|
|
1019
1019
|
} : void 0, f = Y(Ne), {
|
|
1020
|
-
elementHasLostFocus:
|
|
1020
|
+
elementHasLostFocus: u
|
|
1021
1021
|
} = f || {};
|
|
1022
1022
|
let m = /* @__PURE__ */ n(nt, {
|
|
1023
1023
|
disabled: o || l && !r,
|
|
1024
1024
|
id: i,
|
|
1025
1025
|
style: c,
|
|
1026
1026
|
maxLength: t.size,
|
|
1027
|
-
onBlur:
|
|
1027
|
+
onBlur: u
|
|
1028
1028
|
});
|
|
1029
1029
|
return s && (m = /* @__PURE__ */ n(nt.Password, {
|
|
1030
1030
|
disabled: o,
|
|
1031
1031
|
id: i,
|
|
1032
|
-
onBlur:
|
|
1032
|
+
onBlur: u
|
|
1033
1033
|
})), l && !o && !r && (m = /* @__PURE__ */ n(ds, {
|
|
1034
1034
|
field: i,
|
|
1035
1035
|
requiredStyle: c
|
|
@@ -1048,19 +1048,19 @@ const {
|
|
|
1048
1048
|
activeId: s,
|
|
1049
1049
|
activeModel: a,
|
|
1050
1050
|
fetchValues: l,
|
|
1051
|
-
formHasChanges:
|
|
1051
|
+
formHasChanges: d,
|
|
1052
1052
|
elementHasLostFocus: c
|
|
1053
|
-
} = o || {}, [f,
|
|
1053
|
+
} = o || {}, [f, u] = T(!1), {
|
|
1054
1054
|
t: m
|
|
1055
1055
|
} = Y(we);
|
|
1056
1056
|
return s ? /* @__PURE__ */ P(ne, {
|
|
1057
1057
|
children: [/* @__PURE__ */ n("div", {
|
|
1058
1058
|
onClick: () => {
|
|
1059
|
-
if (
|
|
1059
|
+
if (d != null && d()) {
|
|
1060
1060
|
ct(m("saveBeforeTranslate"));
|
|
1061
1061
|
return;
|
|
1062
1062
|
}
|
|
1063
|
-
f ||
|
|
1063
|
+
f || u(!0);
|
|
1064
1064
|
},
|
|
1065
1065
|
children: /* @__PURE__ */ n(nt, {
|
|
1066
1066
|
value: e,
|
|
@@ -1082,10 +1082,10 @@ const {
|
|
|
1082
1082
|
field: t,
|
|
1083
1083
|
visible: f,
|
|
1084
1084
|
onCloseModal: () => {
|
|
1085
|
-
|
|
1085
|
+
u(!1);
|
|
1086
1086
|
},
|
|
1087
1087
|
onSubmitSucceed: () => {
|
|
1088
|
-
|
|
1088
|
+
u(!1), l == null || l();
|
|
1089
1089
|
}
|
|
1090
1090
|
})]
|
|
1091
1091
|
}) : /* @__PURE__ */ n(ne, {
|
|
@@ -1109,7 +1109,7 @@ const {
|
|
|
1109
1109
|
tooltip: m("translate"),
|
|
1110
1110
|
icon: /* @__PURE__ */ n(Hr, {}),
|
|
1111
1111
|
onClick: async () => {
|
|
1112
|
-
|
|
1112
|
+
d != null && d() ? ct(m("saveBeforeTranslate")) : ct(m("enterTextBeforeTranslate"));
|
|
1113
1113
|
},
|
|
1114
1114
|
children: m("translate")
|
|
1115
1115
|
})
|
|
@@ -1144,21 +1144,21 @@ const {
|
|
|
1144
1144
|
selectionValues: o,
|
|
1145
1145
|
readOnly: s,
|
|
1146
1146
|
required: a
|
|
1147
|
-
} = t, l = Array.from(o.entries()),
|
|
1148
|
-
const [
|
|
1147
|
+
} = t, l = Array.from(o.entries()), d = l && l.length && l.map((f) => {
|
|
1148
|
+
const [u, m] = f;
|
|
1149
1149
|
return /* @__PURE__ */ n(hs, {
|
|
1150
|
-
value:
|
|
1150
|
+
value: u,
|
|
1151
1151
|
children: m
|
|
1152
|
-
},
|
|
1152
|
+
}, u);
|
|
1153
1153
|
});
|
|
1154
1154
|
return /* @__PURE__ */ n(a && !s ? ps : Ct, {
|
|
1155
1155
|
disabled: s,
|
|
1156
1156
|
onChange: r,
|
|
1157
1157
|
value: i,
|
|
1158
1158
|
optionFilterProp: "children",
|
|
1159
|
-
filterOption: (f,
|
|
1159
|
+
filterOption: (f, u) => u.children.toLowerCase().indexOf(f.toLowerCase()) >= 0,
|
|
1160
1160
|
showSearch: !0,
|
|
1161
|
-
children:
|
|
1161
|
+
children: d
|
|
1162
1162
|
});
|
|
1163
1163
|
}, ps = Kt(Ct)`
|
|
1164
1164
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
@@ -1268,10 +1268,10 @@ function fa(e) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
var ma = fa, ha = ro, Cn = Ds, pr = ma, pa = "Expected a function", ga = Math.max, ya = Math.min;
|
|
1270
1270
|
function va(e, t, r) {
|
|
1271
|
-
var i, o, s, a, l,
|
|
1271
|
+
var i, o, s, a, l, d, c = 0, f = !1, u = !1, m = !0;
|
|
1272
1272
|
if (typeof e != "function")
|
|
1273
1273
|
throw new TypeError(pa);
|
|
1274
|
-
t = pr(t) || 0, ha(r) && (f = !!r.leading,
|
|
1274
|
+
t = pr(t) || 0, ha(r) && (f = !!r.leading, u = "maxWait" in r, s = u ? ga(pr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1275
1275
|
function v(D) {
|
|
1276
1276
|
var E = i, b = o;
|
|
1277
1277
|
return i = o = void 0, c = D, a = e.apply(b, E), a;
|
|
@@ -1280,12 +1280,12 @@ function va(e, t, r) {
|
|
|
1280
1280
|
return c = D, l = setTimeout(y, t), f ? v(D) : a;
|
|
1281
1281
|
}
|
|
1282
1282
|
function h(D) {
|
|
1283
|
-
var E = D -
|
|
1284
|
-
return
|
|
1283
|
+
var E = D - d, b = D - c, C = t - E;
|
|
1284
|
+
return u ? ya(C, s - b) : C;
|
|
1285
1285
|
}
|
|
1286
1286
|
function g(D) {
|
|
1287
|
-
var E = D -
|
|
1288
|
-
return
|
|
1287
|
+
var E = D - d, b = D - c;
|
|
1288
|
+
return d === void 0 || E >= t || E < 0 || u && b >= s;
|
|
1289
1289
|
}
|
|
1290
1290
|
function y() {
|
|
1291
1291
|
var D = Cn();
|
|
@@ -1297,18 +1297,18 @@ function va(e, t, r) {
|
|
|
1297
1297
|
return l = void 0, m && i ? v(D) : (i = o = void 0, a);
|
|
1298
1298
|
}
|
|
1299
1299
|
function _() {
|
|
1300
|
-
l !== void 0 && clearTimeout(l), c = 0, i =
|
|
1300
|
+
l !== void 0 && clearTimeout(l), c = 0, i = d = o = l = void 0;
|
|
1301
1301
|
}
|
|
1302
1302
|
function w() {
|
|
1303
1303
|
return l === void 0 ? a : O(Cn());
|
|
1304
1304
|
}
|
|
1305
1305
|
function V() {
|
|
1306
1306
|
var D = Cn(), E = g(D);
|
|
1307
|
-
if (i = arguments, o = this,
|
|
1307
|
+
if (i = arguments, o = this, d = D, E) {
|
|
1308
1308
|
if (l === void 0)
|
|
1309
|
-
return p(
|
|
1310
|
-
if (
|
|
1311
|
-
return clearTimeout(l), l = setTimeout(y, t), v(
|
|
1309
|
+
return p(d);
|
|
1310
|
+
if (u)
|
|
1311
|
+
return clearTimeout(l), l = setTimeout(y, t), v(d);
|
|
1312
1312
|
}
|
|
1313
1313
|
return l === void 0 && (l = setTimeout(y, t)), a;
|
|
1314
1314
|
}
|
|
@@ -1359,18 +1359,18 @@ const xa = (e) => {
|
|
|
1359
1359
|
onChange: i
|
|
1360
1360
|
} = e, {
|
|
1361
1361
|
readOnly: o
|
|
1362
|
-
} = t, s =
|
|
1362
|
+
} = t, s = de(null), {
|
|
1363
1363
|
t: a
|
|
1364
|
-
} = Y(we), l = (
|
|
1365
|
-
i == null || i(
|
|
1364
|
+
} = Y(we), l = (u) => {
|
|
1365
|
+
i == null || i(u);
|
|
1366
1366
|
};
|
|
1367
|
-
async function
|
|
1368
|
-
const
|
|
1369
|
-
v.href = m, v.download = `image.${
|
|
1367
|
+
async function d() {
|
|
1368
|
+
const u = await Vt(r), m = `data:${u == null ? void 0 : u.mime};base64,${r}`, v = document.createElement("a");
|
|
1369
|
+
v.href = m, v.download = `image.${u == null ? void 0 : u.ext}`, v.click();
|
|
1370
1370
|
}
|
|
1371
|
-
async function c(
|
|
1372
|
-
|
|
1373
|
-
const m =
|
|
1371
|
+
async function c(u) {
|
|
1372
|
+
u.stopPropagation(), u.preventDefault();
|
|
1373
|
+
const m = u.target.files[0], v = await ao(m);
|
|
1374
1374
|
l(v);
|
|
1375
1375
|
}
|
|
1376
1376
|
function f() {
|
|
@@ -1412,7 +1412,7 @@ const xa = (e) => {
|
|
|
1412
1412
|
}), /* @__PURE__ */ n(ze, {
|
|
1413
1413
|
tooltip: a("download"),
|
|
1414
1414
|
disabled: !r,
|
|
1415
|
-
onClick:
|
|
1415
|
+
onClick: d,
|
|
1416
1416
|
icon: /* @__PURE__ */ n(Pn, {})
|
|
1417
1417
|
}), /* @__PURE__ */ n(ze, {
|
|
1418
1418
|
tooltip: a("clear"),
|
|
@@ -1457,16 +1457,16 @@ const xa = (e) => {
|
|
|
1457
1457
|
return i.parse(t), i;
|
|
1458
1458
|
}, Fa = (e, t, r) => e.columns.map((o) => {
|
|
1459
1459
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1460
|
-
let
|
|
1461
|
-
return l && (
|
|
1460
|
+
let d;
|
|
1461
|
+
return l && (d = (c) => l(c, a, o, r)), {
|
|
1462
1462
|
key: a,
|
|
1463
1463
|
dataIndex: a,
|
|
1464
1464
|
title: o.label,
|
|
1465
|
-
render:
|
|
1465
|
+
render: d,
|
|
1466
1466
|
sorter: (c, f) => {
|
|
1467
1467
|
var v, p;
|
|
1468
|
-
let
|
|
1469
|
-
return s === "many2one" && (
|
|
1468
|
+
let u = c[a] || "", m = f[a] || "";
|
|
1469
|
+
return s === "many2one" && (u = ((v = c[a]) == null ? void 0 : v.value) || "", m = ((p = f[a]) == null ? void 0 : p.value) || ""), u < m ? -1 : u > m ? 1 : 0;
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
1472
|
}), lo = (e, t) => t.map((i) => {
|
|
@@ -1505,10 +1505,10 @@ function _t({
|
|
|
1505
1505
|
}) {
|
|
1506
1506
|
if (!t)
|
|
1507
1507
|
return e;
|
|
1508
|
-
const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (
|
|
1508
|
+
const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (d, c) => {
|
|
1509
1509
|
var m, v;
|
|
1510
|
-
let f =
|
|
1511
|
-
return a === "many2one" && (f = ((m =
|
|
1510
|
+
let f = d[i] || "", u = c[i] || "";
|
|
1511
|
+
return a === "many2one" && (f = ((m = d[i]) == null ? void 0 : m[1]) || "", u = ((v = c[i]) == null ? void 0 : v[1]) || ""), f === u ? 0 : s === "ascend" ? f > u ? 1 : -1 : f < u ? 1 : -1;
|
|
1512
1512
|
};
|
|
1513
1513
|
return e.sort(l);
|
|
1514
1514
|
}
|
|
@@ -1523,15 +1523,15 @@ const zn = async (e) => {
|
|
|
1523
1523
|
currentView: a = {}
|
|
1524
1524
|
} = e, l = t.filter(
|
|
1525
1525
|
(h) => h.operation !== "original"
|
|
1526
|
-
),
|
|
1526
|
+
), d = t.filter((h) => h.operation === "original").map((h) => h.id), c = {
|
|
1527
1527
|
form: i.fields,
|
|
1528
1528
|
tree: o.fields
|
|
1529
1529
|
};
|
|
1530
|
-
let f = [],
|
|
1530
|
+
let f = [], u;
|
|
1531
1531
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1532
1532
|
const h = (p = It(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
|
|
1533
1533
|
model: r,
|
|
1534
|
-
ids:
|
|
1534
|
+
ids: d,
|
|
1535
1535
|
arch: o == null ? void 0 : o.arch,
|
|
1536
1536
|
fields: o.fields,
|
|
1537
1537
|
context: s,
|
|
@@ -1539,11 +1539,11 @@ const zn = async (e) => {
|
|
|
1539
1539
|
colors: h
|
|
1540
1540
|
}
|
|
1541
1541
|
});
|
|
1542
|
-
f = g[0],
|
|
1542
|
+
f = g[0], u = Qt(g[1]);
|
|
1543
1543
|
} else
|
|
1544
1544
|
f = await H.getHandler().readObjects({
|
|
1545
1545
|
model: r,
|
|
1546
|
-
ids:
|
|
1546
|
+
ids: d,
|
|
1547
1547
|
fields: c[a],
|
|
1548
1548
|
context: s
|
|
1549
1549
|
});
|
|
@@ -1562,7 +1562,7 @@ const zn = async (e) => {
|
|
|
1562
1562
|
};
|
|
1563
1563
|
return a === "form" ? y.values = g : a === "tree" && (y.treeValues = g), y;
|
|
1564
1564
|
}).concat(l),
|
|
1565
|
-
|
|
1565
|
+
u
|
|
1566
1566
|
];
|
|
1567
1567
|
}, Oa = (e) => {
|
|
1568
1568
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
@@ -1582,9 +1582,9 @@ const zn = async (e) => {
|
|
|
1582
1582
|
relation: r,
|
|
1583
1583
|
context: i,
|
|
1584
1584
|
views: o
|
|
1585
|
-
} = t, [s, a] = T(!0), [l,
|
|
1585
|
+
} = t, [s, a] = T(!0), [l, d] = T(), [c, f] = T(/* @__PURE__ */ new Map()), u = Y(Ne), {
|
|
1586
1586
|
getContext: m
|
|
1587
|
-
} =
|
|
1587
|
+
} = u || {};
|
|
1588
1588
|
St(() => {
|
|
1589
1589
|
p();
|
|
1590
1590
|
}, [t]);
|
|
@@ -1596,12 +1596,12 @@ const zn = async (e) => {
|
|
|
1596
1596
|
...i
|
|
1597
1597
|
}
|
|
1598
1598
|
}), p = async () => {
|
|
1599
|
-
a(!0),
|
|
1599
|
+
a(!0), d(void 0);
|
|
1600
1600
|
try {
|
|
1601
1601
|
const h = await v("form"), g = await v("tree");
|
|
1602
1602
|
c.set("form", h), c.set("tree", g), f(c);
|
|
1603
1603
|
} catch (h) {
|
|
1604
|
-
|
|
1604
|
+
d(h);
|
|
1605
1605
|
} finally {
|
|
1606
1606
|
a(!1);
|
|
1607
1607
|
}
|
|
@@ -1627,7 +1627,7 @@ const zn = async (e) => {
|
|
|
1627
1627
|
onChange: o
|
|
1628
1628
|
} = e, {
|
|
1629
1629
|
items: s = []
|
|
1630
|
-
} = t || {}, [a, l] = T(!1), [
|
|
1630
|
+
} = t || {}, [a, l] = T(!1), [d, c] = T(), [f, u] = T(!1), [m, v] = T(), {
|
|
1631
1631
|
relation: p,
|
|
1632
1632
|
context: h,
|
|
1633
1633
|
readOnly: g,
|
|
@@ -1670,9 +1670,9 @@ const zn = async (e) => {
|
|
|
1670
1670
|
l(!1);
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
|
-
return
|
|
1673
|
+
return d ? /* @__PURE__ */ n(Ze, {
|
|
1674
1674
|
className: "mt-10",
|
|
1675
|
-
message:
|
|
1675
|
+
message: d,
|
|
1676
1676
|
type: "error",
|
|
1677
1677
|
banner: !0
|
|
1678
1678
|
}) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
@@ -1690,7 +1690,7 @@ const zn = async (e) => {
|
|
|
1690
1690
|
cursor: "pointer"
|
|
1691
1691
|
},
|
|
1692
1692
|
onClick: () => {
|
|
1693
|
-
v(_.find(($) => b.id === $.id)),
|
|
1693
|
+
v(_.find(($) => b.id === $.id)), u(!0);
|
|
1694
1694
|
},
|
|
1695
1695
|
children: /* @__PURE__ */ n("strong", {
|
|
1696
1696
|
children: (S = b.values) == null ? void 0 : S[O]
|
|
@@ -1701,7 +1701,7 @@ const zn = async (e) => {
|
|
|
1701
1701
|
cursor: "pointer"
|
|
1702
1702
|
},
|
|
1703
1703
|
onClick: () => {
|
|
1704
|
-
v(_.find(($) => b.id === $.id)),
|
|
1704
|
+
v(_.find(($) => b.id === $.id)), u(!0);
|
|
1705
1705
|
},
|
|
1706
1706
|
children: (x = b.values) == null ? void 0 : x[y]
|
|
1707
1707
|
})]
|
|
@@ -1716,14 +1716,14 @@ const zn = async (e) => {
|
|
|
1716
1716
|
defaultValues: m == null ? void 0 : m.defaultValues,
|
|
1717
1717
|
visible: f,
|
|
1718
1718
|
onSubmitSucceed: () => {
|
|
1719
|
-
|
|
1719
|
+
u(!1);
|
|
1720
1720
|
},
|
|
1721
1721
|
parentContext: {
|
|
1722
1722
|
...V == null ? void 0 : V(),
|
|
1723
1723
|
...h
|
|
1724
1724
|
},
|
|
1725
1725
|
onCancel: () => {
|
|
1726
|
-
|
|
1726
|
+
u(!1);
|
|
1727
1727
|
},
|
|
1728
1728
|
readOnly: g,
|
|
1729
1729
|
postSaveAction: E
|
|
@@ -1794,26 +1794,26 @@ const zn = async (e) => {
|
|
|
1794
1794
|
return Object.keys(t).forEach((o) => {
|
|
1795
1795
|
var a, l;
|
|
1796
1796
|
if (r[o] ? r[o].type === "one2many" || r[o].type === "many2many" : !1) {
|
|
1797
|
-
const
|
|
1798
|
-
if (
|
|
1797
|
+
const d = JSON.stringify(e[o]), c = JSON.stringify(t[o]);
|
|
1798
|
+
if (d === c)
|
|
1799
1799
|
return;
|
|
1800
1800
|
(((l = (a = t[o]) == null ? void 0 : a.items) == null ? void 0 : l.filter(
|
|
1801
|
-
(
|
|
1801
|
+
(u) => u.operation !== "original"
|
|
1802
1802
|
)) || []).length > 0 && (i[o] = t[o]);
|
|
1803
1803
|
} else if (Array.isArray(t[o]))
|
|
1804
1804
|
if (e[o] === void 0)
|
|
1805
1805
|
i[o] = t[o];
|
|
1806
1806
|
else if (r[o].type === "many2one")
|
|
1807
1807
|
if (Array.isArray(e[o])) {
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1808
|
+
const d = JSON.stringify(e[o]), c = JSON.stringify(t[o]);
|
|
1809
|
+
d !== c && (i[o] = t[o]);
|
|
1810
1810
|
} else {
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1811
|
+
const d = e[o], [c] = t[o];
|
|
1812
|
+
d !== c && (i[o] = t[o]);
|
|
1813
1813
|
}
|
|
1814
1814
|
else {
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1815
|
+
const d = JSON.stringify(e[o]), c = JSON.stringify(t[o]);
|
|
1816
|
+
d !== c && (i[o] = t[o]);
|
|
1817
1817
|
}
|
|
1818
1818
|
else
|
|
1819
1819
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
@@ -1911,12 +1911,12 @@ const Mt = ({
|
|
|
1911
1911
|
return 0.2126 * r(a.substr(1, 2)) + 0.7152 * r(a.substr(3, 2)) + 0.0722 * r(a.substr(-2));
|
|
1912
1912
|
}
|
|
1913
1913
|
function o(a, l) {
|
|
1914
|
-
const
|
|
1915
|
-
return (Math.max(
|
|
1914
|
+
const d = i(a), c = i(l);
|
|
1915
|
+
return (Math.max(d, c) + 0.05) / (Math.min(d, c) + 0.05);
|
|
1916
1916
|
}
|
|
1917
1917
|
function s(a) {
|
|
1918
|
-
const l = o(a, "#ffffff"),
|
|
1919
|
-
return l >
|
|
1918
|
+
const l = o(a, "#ffffff"), d = o(a, "#000000");
|
|
1919
|
+
return l > d ? "#ffffff" : "#000000";
|
|
1920
1920
|
}
|
|
1921
1921
|
return s(e);
|
|
1922
1922
|
}, Na = (e) => {
|
|
@@ -1943,7 +1943,7 @@ const Mt = ({
|
|
|
1943
1943
|
onChange: i
|
|
1944
1944
|
} = e, {
|
|
1945
1945
|
items: o = []
|
|
1946
|
-
} = t || {}, s = o.filter((D) => D.operation !== "pendingRemove").map((D) => D.id), [a, l] = T([]), [
|
|
1946
|
+
} = t || {}, s = o.filter((D) => D.operation !== "pendingRemove").map((D) => D.id), [a, l] = T([]), [d, c] = T(), [f, u] = T(!1), {
|
|
1947
1947
|
relation: m,
|
|
1948
1948
|
context: v,
|
|
1949
1949
|
readOnly: p,
|
|
@@ -1960,7 +1960,7 @@ const Mt = ({
|
|
|
1960
1960
|
});
|
|
1961
1961
|
};
|
|
1962
1962
|
async function _() {
|
|
1963
|
-
|
|
1963
|
+
u(!0);
|
|
1964
1964
|
let D = [];
|
|
1965
1965
|
try {
|
|
1966
1966
|
if (p && (D = [["id", "in", s]]), r.domain) {
|
|
@@ -1995,7 +1995,7 @@ const Mt = ({
|
|
|
1995
1995
|
} catch (E) {
|
|
1996
1996
|
c(E);
|
|
1997
1997
|
} finally {
|
|
1998
|
-
|
|
1998
|
+
u(!1);
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
2001
|
const w = (D) => {
|
|
@@ -2032,9 +2032,9 @@ const Mt = ({
|
|
|
2032
2032
|
children: E
|
|
2033
2033
|
});
|
|
2034
2034
|
};
|
|
2035
|
-
return
|
|
2035
|
+
return d ? /* @__PURE__ */ n(Ze, {
|
|
2036
2036
|
className: "mt-10",
|
|
2037
|
-
message:
|
|
2037
|
+
message: d,
|
|
2038
2038
|
type: "error",
|
|
2039
2039
|
banner: !0
|
|
2040
2040
|
}) : /* @__PURE__ */ n(ne, {
|
|
@@ -2155,12 +2155,12 @@ const Mt = ({
|
|
|
2155
2155
|
const s = (a) => a + 1 === e.length && o < r && !t;
|
|
2156
2156
|
return e.map((a, l) => {
|
|
2157
2157
|
if (o += a.colspan, s(l)) {
|
|
2158
|
-
const
|
|
2159
|
-
a.colspan = a.colspan +
|
|
2158
|
+
const d = r - o;
|
|
2159
|
+
a.colspan = a.colspan + d, o += d;
|
|
2160
2160
|
}
|
|
2161
2161
|
if (i.push(a), s(l)) {
|
|
2162
|
-
const
|
|
2163
|
-
for (let c = 0; c <
|
|
2162
|
+
const d = r - o;
|
|
2163
|
+
for (let c = 0; c < d; c += 1)
|
|
2164
2164
|
i.push(new At({ string: "" }));
|
|
2165
2165
|
}
|
|
2166
2166
|
}), i;
|
|
@@ -2194,13 +2194,13 @@ const Mt = ({
|
|
|
2194
2194
|
const s = qa(i);
|
|
2195
2195
|
s < o && (o = s);
|
|
2196
2196
|
let a = !1, l = [];
|
|
2197
|
-
const
|
|
2198
|
-
const v =
|
|
2197
|
+
const d = i.map((u, m) => {
|
|
2198
|
+
const v = u.filter((g) => !g.invisible), p = Wa({
|
|
2199
2199
|
row: v,
|
|
2200
2200
|
numberOfColumns: o
|
|
2201
2201
|
});
|
|
2202
2202
|
let h = p;
|
|
2203
|
-
return (m === 0 || !(
|
|
2203
|
+
return (m === 0 || !(u.length === 1 && u.some((g) => g.type === "group"))) && (h = Ya({
|
|
2204
2204
|
row: p,
|
|
2205
2205
|
numberOfColumns: o,
|
|
2206
2206
|
mustFillWithEmpties: r
|
|
@@ -2226,7 +2226,7 @@ const Mt = ({
|
|
|
2226
2226
|
minHeight: 0,
|
|
2227
2227
|
minWidth: 0
|
|
2228
2228
|
},
|
|
2229
|
-
children:
|
|
2229
|
+
children: d
|
|
2230
2230
|
});
|
|
2231
2231
|
}, {
|
|
2232
2232
|
confirm: za
|
|
@@ -2279,7 +2279,7 @@ const Mt = ({
|
|
|
2279
2279
|
const r = sl(e), i = ol(r), o = il(i, t);
|
|
2280
2280
|
return [
|
|
2281
2281
|
...Object.keys(o).map((l) => tl(l, o[l], t))
|
|
2282
|
-
].reduce((l,
|
|
2282
|
+
].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
|
|
2283
2283
|
}, tl = (e, t, r) => {
|
|
2284
2284
|
var s;
|
|
2285
2285
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
@@ -2311,16 +2311,16 @@ const Mt = ({
|
|
|
2311
2311
|
const t = { ...rl(e) };
|
|
2312
2312
|
return nl(e).forEach((i) => {
|
|
2313
2313
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
2314
|
-
let
|
|
2315
|
-
if (o[0] !== null && (
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2314
|
+
let d, c;
|
|
2315
|
+
if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
2316
|
+
const u = l[0].format("HH:mm:ss");
|
|
2317
|
+
d = d + " " + u;
|
|
2318
2318
|
}
|
|
2319
2319
|
if (o[1] !== null && (c = o[1].format("YYYY-MM-DD"), l && l[1] !== null)) {
|
|
2320
|
-
const
|
|
2321
|
-
c = c + " " +
|
|
2320
|
+
const u = l[1].format("HH:mm:ss");
|
|
2321
|
+
c = c + " " + u;
|
|
2322
2322
|
}
|
|
2323
|
-
t[s + "#datetime"] = [
|
|
2323
|
+
t[s + "#datetime"] = [d, c];
|
|
2324
2324
|
}), t;
|
|
2325
2325
|
}, il = (e, t) => {
|
|
2326
2326
|
const r = Object.keys(e).filter((o) => {
|
|
@@ -2355,10 +2355,10 @@ const Mt = ({
|
|
|
2355
2355
|
setSearchVisible: s,
|
|
2356
2356
|
setTreeIsLoading: a,
|
|
2357
2357
|
nameSearch: l,
|
|
2358
|
-
searchNameGetDoneRef:
|
|
2358
|
+
searchNameGetDoneRef: d,
|
|
2359
2359
|
context: c,
|
|
2360
2360
|
setActionViewTotalItems: f,
|
|
2361
|
-
treeView:
|
|
2361
|
+
treeView: u,
|
|
2362
2362
|
formView: m,
|
|
2363
2363
|
sorter: v,
|
|
2364
2364
|
setSorter: p,
|
|
@@ -2371,7 +2371,7 @@ const Mt = ({
|
|
|
2371
2371
|
setLimit: V,
|
|
2372
2372
|
searchParams: D = [],
|
|
2373
2373
|
setSearchValues: E
|
|
2374
|
-
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, I] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B =
|
|
2374
|
+
} = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, I] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = Le((se) => {
|
|
2375
2375
|
g == null || g([...se]), q([...se]);
|
|
2376
2376
|
}, []), ie = Le(() => y || j, [y, j]), Q = Le(async () => {
|
|
2377
2377
|
const se = await H.getHandler().nameSearch({
|
|
@@ -2382,13 +2382,13 @@ const Mt = ({
|
|
|
2382
2382
|
context: c
|
|
2383
2383
|
});
|
|
2384
2384
|
if (k(se.length), f == null || f(se.length), se.length > 0) {
|
|
2385
|
-
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = It(
|
|
2385
|
+
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = It(u), je = {};
|
|
2386
2386
|
De && (je.colors = De), Ve && (je.status = Ve);
|
|
2387
2387
|
const We = await H.getHandler().readEvalUiObjects({
|
|
2388
2388
|
model: t,
|
|
2389
2389
|
ids: Se,
|
|
2390
|
-
arch:
|
|
2391
|
-
fields:
|
|
2390
|
+
arch: u == null ? void 0 : u.arch,
|
|
2391
|
+
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
2392
2392
|
context: c,
|
|
2393
2393
|
attrs: je
|
|
2394
2394
|
}), te = We[0];
|
|
@@ -2396,34 +2396,34 @@ const Mt = ({
|
|
|
2396
2396
|
const Fe = te.map((ce) => ce.id), Ee = v !== void 0 ? _t({
|
|
2397
2397
|
resultsToSort: te,
|
|
2398
2398
|
sorter: v,
|
|
2399
|
-
fields: { ...
|
|
2399
|
+
fields: { ...u.fields, ...m.fields }
|
|
2400
2400
|
}) : [...ee.current];
|
|
2401
2401
|
Z(Ee), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2402
2402
|
} else
|
|
2403
2403
|
Z([]), h == null || h(void 0);
|
|
2404
|
-
C(!1),
|
|
2404
|
+
C(!1), d.current = !0;
|
|
2405
2405
|
}, [
|
|
2406
2406
|
Z,
|
|
2407
|
-
|
|
2407
|
+
d,
|
|
2408
2408
|
l,
|
|
2409
2409
|
t,
|
|
2410
2410
|
c,
|
|
2411
2411
|
O,
|
|
2412
|
-
|
|
2412
|
+
u,
|
|
2413
2413
|
m,
|
|
2414
2414
|
v,
|
|
2415
2415
|
h,
|
|
2416
2416
|
f
|
|
2417
2417
|
]), J = Le(
|
|
2418
2418
|
async (se) => {
|
|
2419
|
-
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = It(
|
|
2419
|
+
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = It(u), te = {};
|
|
2420
2420
|
je && (te.colors = je), We && (te.status = We);
|
|
2421
2421
|
const { totalItems: Fe, results: Ee, attrsEvaluated: ce } = await H.getHandler().searchForTree({
|
|
2422
2422
|
params: Ve,
|
|
2423
2423
|
limit: B.current,
|
|
2424
2424
|
offset: De || M,
|
|
2425
2425
|
model: t,
|
|
2426
|
-
fields:
|
|
2426
|
+
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
2427
2427
|
context: c,
|
|
2428
2428
|
attrs: te
|
|
2429
2429
|
});
|
|
@@ -2431,13 +2431,13 @@ const Mt = ({
|
|
|
2431
2431
|
const me = v !== void 0 ? _t({
|
|
2432
2432
|
resultsToSort: Ee,
|
|
2433
2433
|
sorter: v,
|
|
2434
|
-
fields: { ...
|
|
2434
|
+
fields: { ...u.fields, ...m.fields }
|
|
2435
2435
|
}) : [...ee.current];
|
|
2436
2436
|
if (Z(me), y && me.length > 0) {
|
|
2437
|
-
const
|
|
2437
|
+
const ue = me.findIndex(
|
|
2438
2438
|
(Xe) => _ === Xe.id
|
|
2439
2439
|
);
|
|
2440
|
-
|
|
2440
|
+
ue === -1 ? h == null || h(0) : h == null || h(ue);
|
|
2441
2441
|
} else
|
|
2442
2442
|
h == null || h(void 0);
|
|
2443
2443
|
C(!1);
|
|
@@ -2452,7 +2452,7 @@ const Mt = ({
|
|
|
2452
2452
|
t,
|
|
2453
2453
|
c,
|
|
2454
2454
|
O,
|
|
2455
|
-
|
|
2455
|
+
u,
|
|
2456
2456
|
m,
|
|
2457
2457
|
v,
|
|
2458
2458
|
f,
|
|
@@ -2463,7 +2463,7 @@ const Mt = ({
|
|
|
2463
2463
|
), fe = Le(
|
|
2464
2464
|
async (se) => {
|
|
2465
2465
|
try {
|
|
2466
|
-
C(!0), a == null || a(!0), l && !
|
|
2466
|
+
C(!0), a == null || a(!0), l && !d.current ? await Q() : await J(se);
|
|
2467
2467
|
} catch (Se) {
|
|
2468
2468
|
R(Se.message);
|
|
2469
2469
|
} finally {
|
|
@@ -2480,7 +2480,7 @@ const Mt = ({
|
|
|
2480
2480
|
l,
|
|
2481
2481
|
M,
|
|
2482
2482
|
y,
|
|
2483
|
-
|
|
2483
|
+
d,
|
|
2484
2484
|
f,
|
|
2485
2485
|
h,
|
|
2486
2486
|
Z,
|
|
@@ -2489,7 +2489,7 @@ const Mt = ({
|
|
|
2489
2489
|
C,
|
|
2490
2490
|
a,
|
|
2491
2491
|
v,
|
|
2492
|
-
|
|
2492
|
+
u
|
|
2493
2493
|
]
|
|
2494
2494
|
), be = Le(
|
|
2495
2495
|
(se) => {
|
|
@@ -2499,11 +2499,11 @@ const Mt = ({
|
|
|
2499
2499
|
const Se = se !== void 0 ? _t({
|
|
2500
2500
|
resultsToSort: ie(),
|
|
2501
2501
|
sorter: se,
|
|
2502
|
-
fields: { ...
|
|
2502
|
+
fields: { ...u.fields, ...m.fields }
|
|
2503
2503
|
}) : [...ee.current];
|
|
2504
2504
|
Z(Se);
|
|
2505
2505
|
},
|
|
2506
|
-
[p, ie,
|
|
2506
|
+
[p, ie, u, m, Z]
|
|
2507
2507
|
), $e = Le(
|
|
2508
2508
|
(se) => {
|
|
2509
2509
|
const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
|
|
@@ -2543,15 +2543,15 @@ const Mt = ({
|
|
|
2543
2543
|
w
|
|
2544
2544
|
]), ge = Le(
|
|
2545
2545
|
async (se) => {
|
|
2546
|
-
const Se = se[(
|
|
2546
|
+
const Se = se[(u == null ? void 0 : u.field_parent) || "child_id"], De = await H.getHandler().readObjects({
|
|
2547
2547
|
model: t,
|
|
2548
2548
|
ids: Se,
|
|
2549
|
-
fields:
|
|
2549
|
+
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
2550
2550
|
context: c
|
|
2551
2551
|
});
|
|
2552
|
-
return Z([...ie(), ...De]), lo(It(
|
|
2552
|
+
return Z([...ie(), ...De]), lo(It(u), De);
|
|
2553
2553
|
},
|
|
2554
|
-
[
|
|
2554
|
+
[u, t, c, ie, Z]
|
|
2555
2555
|
);
|
|
2556
2556
|
return {
|
|
2557
2557
|
submit: $e,
|
|
@@ -2580,10 +2580,10 @@ const Mt = ({
|
|
|
2580
2580
|
availableViews: s,
|
|
2581
2581
|
formRef: a,
|
|
2582
2582
|
searchTreeRef: l,
|
|
2583
|
-
onNewClicked:
|
|
2583
|
+
onNewClicked: d,
|
|
2584
2584
|
currentId: c,
|
|
2585
2585
|
setCurrentId: f,
|
|
2586
|
-
setResults:
|
|
2586
|
+
setResults: u,
|
|
2587
2587
|
results: m,
|
|
2588
2588
|
currentItemIndex: v,
|
|
2589
2589
|
setCurrentItemIndex: p,
|
|
@@ -2625,13 +2625,13 @@ const Mt = ({
|
|
|
2625
2625
|
formRef: a,
|
|
2626
2626
|
searchTreeRef: l,
|
|
2627
2627
|
onFormSave: se,
|
|
2628
|
-
onNewClicked:
|
|
2628
|
+
onNewClicked: d,
|
|
2629
2629
|
currentId: c,
|
|
2630
2630
|
setCurrentId: f,
|
|
2631
2631
|
currentItemIndex: v,
|
|
2632
2632
|
setCurrentItemIndex: p,
|
|
2633
2633
|
results: m,
|
|
2634
|
-
setResults:
|
|
2634
|
+
setResults: u,
|
|
2635
2635
|
currentModel: h,
|
|
2636
2636
|
removingItem: F,
|
|
2637
2637
|
setRemovingItem: A,
|
|
@@ -2677,9 +2677,9 @@ const Mt = ({
|
|
|
2677
2677
|
openShortcut: s,
|
|
2678
2678
|
activeKey: a,
|
|
2679
2679
|
onChangeTab: l,
|
|
2680
|
-
onRemoveTab:
|
|
2680
|
+
onRemoveTab: d,
|
|
2681
2681
|
tabs: c
|
|
2682
|
-
} = e, [f,
|
|
2682
|
+
} = e, [f, u] = T(), [m, v] = T();
|
|
2683
2683
|
return /* @__PURE__ */ n(st.Provider, {
|
|
2684
2684
|
value: {
|
|
2685
2685
|
openAction: r,
|
|
@@ -2688,12 +2688,12 @@ const Mt = ({
|
|
|
2688
2688
|
activeKey: a,
|
|
2689
2689
|
openShortcut: s,
|
|
2690
2690
|
onChangeTab: l,
|
|
2691
|
-
onRemoveTab:
|
|
2691
|
+
onRemoveTab: d,
|
|
2692
2692
|
tabs: c,
|
|
2693
2693
|
currentId: m,
|
|
2694
2694
|
currentView: f,
|
|
2695
2695
|
setCurrentId: v,
|
|
2696
|
-
setCurrentView:
|
|
2696
|
+
setCurrentView: u
|
|
2697
2697
|
},
|
|
2698
2698
|
children: t
|
|
2699
2699
|
});
|
|
@@ -2705,10 +2705,10 @@ const Mt = ({
|
|
|
2705
2705
|
const {
|
|
2706
2706
|
children: r,
|
|
2707
2707
|
globalValues: i = {}
|
|
2708
|
-
} = e, o =
|
|
2708
|
+
} = e, o = de(), s = de(), [a, l] = T(!1), d = Y(st), {
|
|
2709
2709
|
openAction: c
|
|
2710
|
-
} =
|
|
2711
|
-
t:
|
|
2710
|
+
} = d || {}, f = de([]), {
|
|
2711
|
+
t: u
|
|
2712
2712
|
} = Y(we);
|
|
2713
2713
|
xt(t, () => ({
|
|
2714
2714
|
openActionModal: w
|
|
@@ -2929,7 +2929,7 @@ const Mt = ({
|
|
|
2929
2929
|
},
|
|
2930
2930
|
children: /* @__PURE__ */ P(ne, {
|
|
2931
2931
|
children: [r, /* @__PURE__ */ n(Ge, {
|
|
2932
|
-
title:
|
|
2932
|
+
title: u("generatingReport"),
|
|
2933
2933
|
open: a,
|
|
2934
2934
|
footer: null,
|
|
2935
2935
|
closable: !1,
|
|
@@ -2972,30 +2972,30 @@ async function ul({
|
|
|
2972
2972
|
let a;
|
|
2973
2973
|
if (e)
|
|
2974
2974
|
for (const l of e) {
|
|
2975
|
-
const
|
|
2975
|
+
const d = await H.getHandler().getView({
|
|
2976
2976
|
model: r,
|
|
2977
2977
|
type: l[1],
|
|
2978
2978
|
id: l[0],
|
|
2979
2979
|
context: i
|
|
2980
2980
|
});
|
|
2981
|
-
s.push([
|
|
2981
|
+
s.push([d.view_id, l[1]]);
|
|
2982
2982
|
}
|
|
2983
2983
|
else {
|
|
2984
2984
|
const l = t.split(",");
|
|
2985
|
-
for (const
|
|
2985
|
+
for (const d of l) {
|
|
2986
2986
|
const c = await H.getHandler().getView({
|
|
2987
2987
|
model: r,
|
|
2988
|
-
type:
|
|
2988
|
+
type: d,
|
|
2989
2989
|
context: i
|
|
2990
2990
|
});
|
|
2991
|
-
s.push([c.view_id,
|
|
2991
|
+
s.push([c.view_id, d]);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
if (e && e.length > 0) {
|
|
2995
|
-
const [l,
|
|
2995
|
+
const [l, d] = e[0];
|
|
2996
2996
|
a = {
|
|
2997
2997
|
id: l,
|
|
2998
|
-
type:
|
|
2998
|
+
type: d
|
|
2999
2999
|
};
|
|
3000
3000
|
} else if (o)
|
|
3001
3001
|
a = {
|
|
@@ -3003,9 +3003,9 @@ async function ul({
|
|
|
3003
3003
|
type: t.split(",")[0]
|
|
3004
3004
|
};
|
|
3005
3005
|
else {
|
|
3006
|
-
const l = t.split(",")[0], [
|
|
3006
|
+
const l = t.split(",")[0], [d] = s.find(([c, f]) => f === l);
|
|
3007
3007
|
a = {
|
|
3008
|
-
id:
|
|
3008
|
+
id: d,
|
|
3009
3009
|
type: l
|
|
3010
3010
|
};
|
|
3011
3011
|
}
|
|
@@ -3047,10 +3047,10 @@ function pl(e, t) {
|
|
|
3047
3047
|
onSubmitSucceed: s,
|
|
3048
3048
|
showFooter: a = !1,
|
|
3049
3049
|
getDataFromAction: l = !1,
|
|
3050
|
-
onFieldsChange:
|
|
3050
|
+
onFieldsChange: d,
|
|
3051
3051
|
onSubmitError: c,
|
|
3052
3052
|
readOnly: f = !1,
|
|
3053
|
-
mustClearAfterSave:
|
|
3053
|
+
mustClearAfterSave: u = !1,
|
|
3054
3054
|
submitMode: m = "api",
|
|
3055
3055
|
values: v,
|
|
3056
3056
|
formView: p,
|
|
@@ -3066,7 +3066,7 @@ function pl(e, t) {
|
|
|
3066
3066
|
} = e, {
|
|
3067
3067
|
t: b,
|
|
3068
3068
|
lang: C
|
|
3069
|
-
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [I, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B =
|
|
3069
|
+
} = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [I, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < hl, be = Y(Ne), {
|
|
3070
3070
|
activeId: $e,
|
|
3071
3071
|
getPlainValues: _e
|
|
3072
3072
|
} = be || {}, Be = Y(Qe), {
|
|
@@ -3112,7 +3112,7 @@ function pl(e, t) {
|
|
|
3112
3112
|
}, Te = (K) => {
|
|
3113
3113
|
ge == null || ge(!1), c == null || c(K);
|
|
3114
3114
|
};
|
|
3115
|
-
function
|
|
3115
|
+
function ue() {
|
|
3116
3116
|
return i || B.current;
|
|
3117
3117
|
}
|
|
3118
3118
|
function Xe() {
|
|
@@ -3151,15 +3151,15 @@ function pl(e, t) {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
function Ae() {
|
|
3153
3153
|
return {
|
|
3154
|
-
id:
|
|
3155
|
-
active_id:
|
|
3156
|
-
active_ids: [
|
|
3154
|
+
id: ue(),
|
|
3155
|
+
active_id: ue(),
|
|
3156
|
+
active_ids: [ue()],
|
|
3157
3157
|
parent_id: $e,
|
|
3158
3158
|
...Ee
|
|
3159
3159
|
};
|
|
3160
3160
|
}
|
|
3161
3161
|
const he = async (K) => {
|
|
3162
|
-
const G =
|
|
3162
|
+
const G = ue() ? F == null ? void 0 : F.context : {};
|
|
3163
3163
|
return await H.getHandler().defaultGet({
|
|
3164
3164
|
model: r,
|
|
3165
3165
|
fields: K,
|
|
@@ -3279,15 +3279,15 @@ function pl(e, t) {
|
|
|
3279
3279
|
arch: G
|
|
3280
3280
|
}) => {
|
|
3281
3281
|
let re = {}, oe = !1;
|
|
3282
|
-
if (
|
|
3282
|
+
if (ue()) {
|
|
3283
3283
|
re = (await H.getHandler().readObjects({
|
|
3284
3284
|
model: r,
|
|
3285
|
-
ids: [
|
|
3285
|
+
ids: [ue()],
|
|
3286
3286
|
fields: K,
|
|
3287
3287
|
context: y
|
|
3288
3288
|
}))[0];
|
|
3289
3289
|
const Re = await H.getHandler().search({
|
|
3290
|
-
params: [["res_model", "=", r], ["res_id", "=",
|
|
3290
|
+
params: [["res_model", "=", r], ["res_id", "=", ue()]],
|
|
3291
3291
|
fields: ["id", "name"],
|
|
3292
3292
|
context: ae(),
|
|
3293
3293
|
model: "ir.attachment"
|
|
@@ -3303,7 +3303,7 @@ function pl(e, t) {
|
|
|
3303
3303
|
const {
|
|
3304
3304
|
callOnSubmitSucceed: G = !0
|
|
3305
3305
|
} = K || {};
|
|
3306
|
-
if (
|
|
3306
|
+
if (ue()) {
|
|
3307
3307
|
const re = Sn({
|
|
3308
3308
|
source: ee.current,
|
|
3309
3309
|
target: xe(k),
|
|
@@ -3311,7 +3311,7 @@ function pl(e, t) {
|
|
|
3311
3311
|
});
|
|
3312
3312
|
await H.getHandler().update({
|
|
3313
3313
|
model: r,
|
|
3314
|
-
id:
|
|
3314
|
+
id: ue(),
|
|
3315
3315
|
values: {
|
|
3316
3316
|
...re,
|
|
3317
3317
|
...D
|
|
@@ -3337,30 +3337,30 @@ function pl(e, t) {
|
|
|
3337
3337
|
});
|
|
3338
3338
|
B.current = oe, ee.current = re;
|
|
3339
3339
|
}
|
|
3340
|
-
h && await h([
|
|
3340
|
+
h && await h([ue()]), !g && G && (ce == null || ce(ue(), Ke(), X()));
|
|
3341
3341
|
}, Bo = async (K) => {
|
|
3342
3342
|
const {
|
|
3343
3343
|
callOnSubmitSucceed: G = !0
|
|
3344
3344
|
} = K || {};
|
|
3345
|
-
!g && G && (ce == null || ce(
|
|
3345
|
+
!g && G && (ce == null || ce(ue(), Ke(), X()));
|
|
3346
3346
|
}, zt = async (K) => {
|
|
3347
3347
|
let G = !1;
|
|
3348
3348
|
const {
|
|
3349
3349
|
callOnSubmitSucceed: re = !0
|
|
3350
3350
|
} = K || {};
|
|
3351
|
-
if (Q.current = !0, R(void 0), !ye() &&
|
|
3351
|
+
if (Q.current = !0, R(void 0), !ye() && ue() && re)
|
|
3352
3352
|
return Q.current = !1, se == null || se(!1), me == null || me(), {
|
|
3353
3353
|
succeed: !0,
|
|
3354
|
-
id:
|
|
3354
|
+
id: ue()
|
|
3355
3355
|
};
|
|
3356
3356
|
if (await tt())
|
|
3357
3357
|
return Q.current = !1, vr(C), {
|
|
3358
3358
|
succeed: !1,
|
|
3359
|
-
id:
|
|
3359
|
+
id: ue()
|
|
3360
3360
|
};
|
|
3361
3361
|
x(!0), ge == null || ge(!0);
|
|
3362
3362
|
try {
|
|
3363
|
-
m === "api" ? await Ho(K) : await Bo(K),
|
|
3363
|
+
m === "api" ? await Ho(K) : await Bo(K), u && (B.current = void 0, qt({
|
|
3364
3364
|
values: {},
|
|
3365
3365
|
fields: k,
|
|
3366
3366
|
reset: !0
|
|
@@ -3374,7 +3374,7 @@ function pl(e, t) {
|
|
|
3374
3374
|
}
|
|
3375
3375
|
return {
|
|
3376
3376
|
succeed: G,
|
|
3377
|
-
id:
|
|
3377
|
+
id: ue()
|
|
3378
3378
|
};
|
|
3379
3379
|
}, Jt = ({
|
|
3380
3380
|
fields: K,
|
|
@@ -3409,7 +3409,7 @@ function pl(e, t) {
|
|
|
3409
3409
|
return;
|
|
3410
3410
|
{
|
|
3411
3411
|
const oe = Ot(M.getFieldsValue(!0), k);
|
|
3412
|
-
Z.current = oe,
|
|
3412
|
+
Z.current = oe, d == null || d(oe), se == null || se(!0), Ko(re);
|
|
3413
3413
|
}
|
|
3414
3414
|
}
|
|
3415
3415
|
}, jo = wa(vn, 100), Ko = async (K) => {
|
|
@@ -3444,7 +3444,7 @@ function pl(e, t) {
|
|
|
3444
3444
|
}), oe = await H.getHandler().executeOnChange({
|
|
3445
3445
|
model: r,
|
|
3446
3446
|
action: G.method,
|
|
3447
|
-
ids:
|
|
3447
|
+
ids: ue() ? [ue()] : [],
|
|
3448
3448
|
payload: re,
|
|
3449
3449
|
fields: k
|
|
3450
3450
|
});
|
|
@@ -3491,7 +3491,7 @@ function pl(e, t) {
|
|
|
3491
3491
|
const re = await H.getHandler().execute({
|
|
3492
3492
|
model: r,
|
|
3493
3493
|
action: K,
|
|
3494
|
-
payload: [
|
|
3494
|
+
payload: [ue()],
|
|
3495
3495
|
context: {
|
|
3496
3496
|
...G,
|
|
3497
3497
|
...F == null ? void 0 : F.context,
|
|
@@ -3499,9 +3499,9 @@ function pl(e, t) {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
});
|
|
3501
3501
|
if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && g)
|
|
3502
|
-
ce == null || ce(
|
|
3502
|
+
ce == null || ce(ue(), Ke(), X());
|
|
3503
3503
|
else if (re.type && re.type === "ir.actions.act_window_close")
|
|
3504
|
-
ce == null || ce(
|
|
3504
|
+
ce == null || ce(ue(), Ke(), X());
|
|
3505
3505
|
else if (re.type) {
|
|
3506
3506
|
let oe = {};
|
|
3507
3507
|
re.context && (oe = wt({
|
|
@@ -3526,9 +3526,9 @@ function pl(e, t) {
|
|
|
3526
3526
|
const G = await H.getHandler().executeWorkflow({
|
|
3527
3527
|
model: r,
|
|
3528
3528
|
action: K,
|
|
3529
|
-
payload:
|
|
3529
|
+
payload: ue()
|
|
3530
3530
|
});
|
|
3531
|
-
G.type && G.type === "ir.actions.act_window_close" ? ce == null || ce(
|
|
3531
|
+
G.type && G.type === "ir.actions.act_window_close" ? ce == null || ce(ue(), Ke(), X()) : await gt({
|
|
3532
3532
|
forceRefresh: !0
|
|
3533
3533
|
});
|
|
3534
3534
|
}
|
|
@@ -3567,7 +3567,7 @@ function pl(e, t) {
|
|
|
3567
3567
|
});
|
|
3568
3568
|
}
|
|
3569
3569
|
})) || {};
|
|
3570
|
-
!w && re && (ce == null || ce(
|
|
3570
|
+
!w && re && (ce == null || ce(ue(), Ke(), X()));
|
|
3571
3571
|
}
|
|
3572
3572
|
function qo() {
|
|
3573
3573
|
vn({
|
|
@@ -3588,7 +3588,7 @@ function pl(e, t) {
|
|
|
3588
3588
|
return;
|
|
3589
3589
|
}
|
|
3590
3590
|
try {
|
|
3591
|
-
(ye() ||
|
|
3591
|
+
(ye() || ue() === void 0) && await zt({
|
|
3592
3592
|
callOnSubmitSucceed: !1
|
|
3593
3593
|
}), K === "object" ? await Wo({
|
|
3594
3594
|
action: G,
|
|
@@ -3684,10 +3684,10 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3684
3684
|
onCancel: s,
|
|
3685
3685
|
isMenuAction: a = !1,
|
|
3686
3686
|
actionData: l,
|
|
3687
|
-
...
|
|
3687
|
+
...d
|
|
3688
3688
|
} = e, {
|
|
3689
3689
|
modalWidth: c
|
|
3690
|
-
} = fn(), [f,
|
|
3690
|
+
} = fn(), [f, u] = T(i), [m, v] = T(!1), [p, h] = T();
|
|
3691
3691
|
pe(() => {
|
|
3692
3692
|
a && g();
|
|
3693
3693
|
}, [l, a]);
|
|
@@ -3752,7 +3752,7 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
const _ = c * 0.95;
|
|
3754
3754
|
return /* @__PURE__ */ n(Qa, {
|
|
3755
|
-
setTitle:
|
|
3755
|
+
setTitle: u,
|
|
3756
3756
|
children: /* @__PURE__ */ n(Ge, {
|
|
3757
3757
|
title: a ? O() : f,
|
|
3758
3758
|
centered: !0,
|
|
@@ -3768,7 +3768,7 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3768
3768
|
insideButtonModal: o,
|
|
3769
3769
|
onCancel: s,
|
|
3770
3770
|
parentWidth: _,
|
|
3771
|
-
...
|
|
3771
|
+
...d
|
|
3772
3772
|
})
|
|
3773
3773
|
})
|
|
3774
3774
|
});
|
|
@@ -3845,9 +3845,9 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3845
3845
|
token: a
|
|
3846
3846
|
} = vl(), l = s && !o ? {
|
|
3847
3847
|
backgroundColor: a.colorPrimaryBg
|
|
3848
|
-
} : void 0,
|
|
3848
|
+
} : void 0, d = Y(Ne), {
|
|
3849
3849
|
elementHasLostFocus: c
|
|
3850
|
-
} =
|
|
3850
|
+
} = d || {};
|
|
3851
3851
|
return /* @__PURE__ */ n(ve, {
|
|
3852
3852
|
required: s,
|
|
3853
3853
|
type: "number",
|
|
@@ -3878,9 +3878,9 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3878
3878
|
token: a
|
|
3879
3879
|
} = wl(), l = s && !o ? {
|
|
3880
3880
|
backgroundColor: a.colorPrimaryBg
|
|
3881
|
-
} : void 0,
|
|
3881
|
+
} : void 0, d = Y(Ne), {
|
|
3882
3882
|
elementHasLostFocus: c
|
|
3883
|
-
} =
|
|
3883
|
+
} = d || {};
|
|
3884
3884
|
return /* @__PURE__ */ n(ve, {
|
|
3885
3885
|
required: s,
|
|
3886
3886
|
type: "number",
|
|
@@ -3891,8 +3891,8 @@ const Ut = bt(pl), Gt = (e) => {
|
|
|
3891
3891
|
disabled: o,
|
|
3892
3892
|
formatter: (f) => `${f}`.replace(/[^0-9\-]+/g, ""),
|
|
3893
3893
|
onChange: (f) => {
|
|
3894
|
-
const
|
|
3895
|
-
r == null || r(
|
|
3894
|
+
const u = f;
|
|
3895
|
+
r == null || r(u);
|
|
3896
3896
|
},
|
|
3897
3897
|
defaultValue: 0,
|
|
3898
3898
|
onBlur: c,
|
|
@@ -3909,10 +3909,10 @@ function bl(e) {
|
|
|
3909
3909
|
id: i,
|
|
3910
3910
|
label: o,
|
|
3911
3911
|
tooltip: s
|
|
3912
|
-
} = t, a = t instanceof _n ? tn : po, l = (
|
|
3912
|
+
} = t, a = t instanceof _n ? tn : po, l = (d) => /* @__PURE__ */ n(a, {
|
|
3913
3913
|
ooui: {
|
|
3914
3914
|
...t,
|
|
3915
|
-
id: i +
|
|
3915
|
+
id: i + d,
|
|
3916
3916
|
label: "",
|
|
3917
3917
|
tooltip: void 0
|
|
3918
3918
|
},
|
|
@@ -3973,18 +3973,18 @@ const {
|
|
|
3973
3973
|
selectionValues: o,
|
|
3974
3974
|
readOnly: s,
|
|
3975
3975
|
required: a
|
|
3976
|
-
} = t, l = Array.from(o.entries()),
|
|
3977
|
-
const [m] =
|
|
3976
|
+
} = t, l = Array.from(o.entries()), d = l && l.length && l.filter((u) => {
|
|
3977
|
+
const [m] = u;
|
|
3978
3978
|
return i ? !i.includes(m) : !0;
|
|
3979
|
-
}).map((
|
|
3980
|
-
const [m, v] =
|
|
3979
|
+
}).map((u) => {
|
|
3980
|
+
const [m, v] = u;
|
|
3981
3981
|
return /* @__PURE__ */ n(Tl, {
|
|
3982
3982
|
value: v,
|
|
3983
3983
|
children: v
|
|
3984
3984
|
}, m);
|
|
3985
3985
|
}), c = a && !s ? Il : Ct;
|
|
3986
|
-
function f(
|
|
3987
|
-
const m =
|
|
3986
|
+
function f(u) {
|
|
3987
|
+
const m = u.map((v) => {
|
|
3988
3988
|
const p = l.find(([h, g]) => v === g);
|
|
3989
3989
|
return p && p[0];
|
|
3990
3990
|
});
|
|
@@ -3997,10 +3997,10 @@ const {
|
|
|
3997
3997
|
return /* @__PURE__ */ n(c, {
|
|
3998
3998
|
disabled: s,
|
|
3999
3999
|
onChange: f,
|
|
4000
|
-
value: i == null ? void 0 : i.map((
|
|
4000
|
+
value: i == null ? void 0 : i.map((u) => o.get(u)),
|
|
4001
4001
|
mode: "multiple",
|
|
4002
4002
|
showArrow: !0,
|
|
4003
|
-
children:
|
|
4003
|
+
children: d
|
|
4004
4004
|
});
|
|
4005
4005
|
}, Il = Kt(Ct)`
|
|
4006
4006
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
@@ -4146,14 +4146,14 @@ function go(e) {
|
|
|
4146
4146
|
isSearching: s,
|
|
4147
4147
|
offset: a,
|
|
4148
4148
|
limit: l,
|
|
4149
|
-
onLimitChange:
|
|
4149
|
+
onLimitChange: d,
|
|
4150
4150
|
searchVisible: c,
|
|
4151
4151
|
setSearchFilterHeight: f,
|
|
4152
|
-
searchError:
|
|
4152
|
+
searchError: u,
|
|
4153
4153
|
searchValues: m,
|
|
4154
4154
|
showLimitOptions: v = !0,
|
|
4155
4155
|
formXml: p
|
|
4156
|
-
} = e, [h, g] = T(), [y, O] = T(), [_, w] = T(!1), V =
|
|
4156
|
+
} = e, [h, g] = T(), [y, O] = T(), [_, w] = T(!1), V = de(), {
|
|
4157
4157
|
token: D
|
|
4158
4158
|
} = Al(), [E] = ot.useForm();
|
|
4159
4159
|
pe(() => {
|
|
@@ -4218,7 +4218,7 @@ function go(e) {
|
|
|
4218
4218
|
limit: l
|
|
4219
4219
|
},
|
|
4220
4220
|
children: [C, _ && v && /* @__PURE__ */ n(Vl, {
|
|
4221
|
-
onLimitChange:
|
|
4221
|
+
onLimitChange: d
|
|
4222
4222
|
}), /* @__PURE__ */ n(Dl, {
|
|
4223
4223
|
advancedFilter: _,
|
|
4224
4224
|
onAdvancedFilterToggle: () => {
|
|
@@ -4229,9 +4229,9 @@ function go(e) {
|
|
|
4229
4229
|
},
|
|
4230
4230
|
isSearching: s
|
|
4231
4231
|
})]
|
|
4232
|
-
}),
|
|
4232
|
+
}), u && /* @__PURE__ */ n(Ze, {
|
|
4233
4233
|
className: "mt-10",
|
|
4234
|
-
message:
|
|
4234
|
+
message: u,
|
|
4235
4235
|
type: "error",
|
|
4236
4236
|
banner: !0
|
|
4237
4237
|
}), /* @__PURE__ */ n("div", {
|
|
@@ -4256,9 +4256,9 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4256
4256
|
);
|
|
4257
4257
|
t.map((s) => {
|
|
4258
4258
|
i.map((a, l) => {
|
|
4259
|
-
const
|
|
4259
|
+
const d = a.width, c = s[a.key] || "";
|
|
4260
4260
|
let f = xr(c);
|
|
4261
|
-
f <
|
|
4261
|
+
f < d && (f = d), f > r && (f = r), i[l].width = f;
|
|
4262
4262
|
});
|
|
4263
4263
|
});
|
|
4264
4264
|
const o = i.map((s) => s.width).reduce((s, a) => s + a);
|
|
@@ -4368,7 +4368,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4368
4368
|
id: t,
|
|
4369
4369
|
model: r,
|
|
4370
4370
|
context: i = {}
|
|
4371
|
-
} = e, [o, s] = T(!1), [a, l] = T(!1), [
|
|
4371
|
+
} = e, [o, s] = T(!1), [a, l] = T(!1), [d, c] = T(!1), [f, u] = T(), [m, v] = T(), {
|
|
4372
4372
|
t: p
|
|
4373
4373
|
} = Y(we), h = Y(st), {
|
|
4374
4374
|
openRelate: g
|
|
@@ -4385,7 +4385,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4385
4385
|
type: "form",
|
|
4386
4386
|
context: i
|
|
4387
4387
|
});
|
|
4388
|
-
|
|
4388
|
+
u(S);
|
|
4389
4389
|
const {
|
|
4390
4390
|
fields: x,
|
|
4391
4391
|
arch: $
|
|
@@ -4406,7 +4406,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
function w() {
|
|
4408
4408
|
var x;
|
|
4409
|
-
if (
|
|
4409
|
+
if (d)
|
|
4410
4410
|
return /* @__PURE__ */ n(He, {
|
|
4411
4411
|
children: /* @__PURE__ */ n("div", {
|
|
4412
4412
|
style: {
|
|
@@ -4523,25 +4523,25 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4523
4523
|
value: t,
|
|
4524
4524
|
context: r,
|
|
4525
4525
|
selectionValues: i
|
|
4526
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [
|
|
4526
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [d, c] = t ? t.split(",") : [], f = parseInt(c), u = Le(async () => {
|
|
4527
4527
|
if (!t || t && o)
|
|
4528
4528
|
return;
|
|
4529
4529
|
l(!0);
|
|
4530
4530
|
const v = await H.getHandler().execute({
|
|
4531
4531
|
action: "name_get",
|
|
4532
4532
|
payload: [f],
|
|
4533
|
-
model:
|
|
4533
|
+
model: d,
|
|
4534
4534
|
context: r
|
|
4535
4535
|
});
|
|
4536
4536
|
s(v[0][1]), l(!1);
|
|
4537
4537
|
}, [t, o]);
|
|
4538
4538
|
if (pe(() => {
|
|
4539
|
-
|
|
4539
|
+
u();
|
|
4540
4540
|
}, [t]), !t && !a)
|
|
4541
4541
|
return /* @__PURE__ */ n(ne, {});
|
|
4542
4542
|
if (a)
|
|
4543
4543
|
return /* @__PURE__ */ n(rt, {});
|
|
4544
|
-
const m = i.get(
|
|
4544
|
+
const m = i.get(d);
|
|
4545
4545
|
return /* @__PURE__ */ P(Ye, {
|
|
4546
4546
|
children: [/* @__PURE__ */ n(ne, {
|
|
4547
4547
|
children: `${m}:`
|
|
@@ -4549,7 +4549,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4549
4549
|
children: o
|
|
4550
4550
|
}), /* @__PURE__ */ n(Jn, {
|
|
4551
4551
|
id: f,
|
|
4552
|
-
model:
|
|
4552
|
+
model: d
|
|
4553
4553
|
})]
|
|
4554
4554
|
});
|
|
4555
4555
|
};
|
|
@@ -4558,7 +4558,7 @@ var wo = { exports: {} };
|
|
|
4558
4558
|
(function(r, i) {
|
|
4559
4559
|
e.exports = i();
|
|
4560
4560
|
})(mt, function() {
|
|
4561
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute",
|
|
4561
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", c = "day", f = "week", u = "month", m = "quarter", v = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
4562
4562
|
var F = ["th", "st", "nd", "rd"], A = R % 100;
|
|
4563
4563
|
return "[" + R + (F[(A - 20) % 10] || F[A] || F[0]) + "]";
|
|
4564
4564
|
} }, _ = function(R, F, A) {
|
|
@@ -4570,12 +4570,12 @@ var wo = { exports: {} };
|
|
|
4570
4570
|
}, m: function R(F, A) {
|
|
4571
4571
|
if (F.date() < A.date())
|
|
4572
4572
|
return -R(A, F);
|
|
4573
|
-
var M = 12 * (A.year() - F.year()) + (A.month() - F.month()), I = F.clone().add(M,
|
|
4573
|
+
var M = 12 * (A.year() - F.year()) + (A.month() - F.month()), I = F.clone().add(M, u), N = A - I < 0, k = F.clone().add(M + (N ? -1 : 1), u);
|
|
4574
4574
|
return +(-(M + (A - I) / (N ? I - k : k - I)) || 0);
|
|
4575
4575
|
}, a: function(R) {
|
|
4576
4576
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
4577
4577
|
}, p: function(R) {
|
|
4578
|
-
return { M:
|
|
4578
|
+
return { M: u, y: v, w: f, d: c, D: p, h: d, m: l, s: a, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
4579
4579
|
}, u: function(R) {
|
|
4580
4580
|
return R === void 0;
|
|
4581
4581
|
} }, V = "en", D = {};
|
|
@@ -4659,7 +4659,7 @@ var wo = { exports: {} };
|
|
|
4659
4659
|
switch (k) {
|
|
4660
4660
|
case v:
|
|
4661
4661
|
return N ? j(1, 0) : j(31, 11);
|
|
4662
|
-
case
|
|
4662
|
+
case u:
|
|
4663
4663
|
return N ? j(1, z) : j(0, z + 1);
|
|
4664
4664
|
case f:
|
|
4665
4665
|
var B = this.$locale().weekStart || 0, ee = (W < B ? W + 7 : W) - B;
|
|
@@ -4667,7 +4667,7 @@ var wo = { exports: {} };
|
|
|
4667
4667
|
case c:
|
|
4668
4668
|
case p:
|
|
4669
4669
|
return q(L + "Hours", 0);
|
|
4670
|
-
case
|
|
4670
|
+
case d:
|
|
4671
4671
|
return q(L + "Minutes", 1);
|
|
4672
4672
|
case l:
|
|
4673
4673
|
return q(L + "Seconds", 2);
|
|
@@ -4679,8 +4679,8 @@ var wo = { exports: {} };
|
|
|
4679
4679
|
}, F.endOf = function(A) {
|
|
4680
4680
|
return this.startOf(A, !1);
|
|
4681
4681
|
}, F.$set = function(A, M) {
|
|
4682
|
-
var I, N = S.p(A), k = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[c] = k + "Date", I[p] = k + "Date", I[
|
|
4683
|
-
if (N ===
|
|
4682
|
+
var I, N = S.p(A), k = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[c] = k + "Date", I[p] = k + "Date", I[u] = k + "Month", I[v] = k + "FullYear", I[d] = k + "Hours", I[l] = k + "Minutes", I[a] = k + "Seconds", I[s] = k + "Milliseconds", I)[N], q = N === c ? this.$D + (M - this.$W) : M;
|
|
4683
|
+
if (N === u || N === v) {
|
|
4684
4684
|
var W = this.clone().set(p, 1);
|
|
4685
4685
|
W.$d[j](q), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
|
|
4686
4686
|
} else
|
|
@@ -4697,15 +4697,15 @@ var wo = { exports: {} };
|
|
|
4697
4697
|
var U = C(N);
|
|
4698
4698
|
return S.w(U.date(U.date() + Math.round(z * A)), N);
|
|
4699
4699
|
};
|
|
4700
|
-
if (k ===
|
|
4701
|
-
return this.set(
|
|
4700
|
+
if (k === u)
|
|
4701
|
+
return this.set(u, this.$M + A);
|
|
4702
4702
|
if (k === v)
|
|
4703
4703
|
return this.set(v, this.$y + A);
|
|
4704
4704
|
if (k === c)
|
|
4705
4705
|
return j(1);
|
|
4706
4706
|
if (k === f)
|
|
4707
4707
|
return j(7);
|
|
4708
|
-
var q = (I = {}, I[l] = i, I[
|
|
4708
|
+
var q = (I = {}, I[l] = i, I[d] = o, I[a] = r, I)[k] || 1, W = this.$d.getTime() + A * q;
|
|
4709
4709
|
return S.w(W, this);
|
|
4710
4710
|
}, F.subtract = function(A, M) {
|
|
4711
4711
|
return this.add(-1 * A, M);
|
|
@@ -4728,9 +4728,9 @@ var wo = { exports: {} };
|
|
|
4728
4728
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4729
4729
|
}, F.diff = function(A, M, I) {
|
|
4730
4730
|
var N, k = S.p(M), j = C(A), q = (j.utcOffset() - this.utcOffset()) * i, W = this - j, z = S.m(this, j);
|
|
4731
|
-
return z = (N = {}, N[v] = z / 12, N[
|
|
4731
|
+
return z = (N = {}, N[v] = z / 12, N[u] = z, N[m] = z / 3, N[f] = (W - q) / 6048e5, N[c] = (W - q) / 864e5, N[d] = W / o, N[l] = W / i, N[a] = W / r, N)[k] || W, I ? z : S.a(z);
|
|
4732
4732
|
}, F.daysInMonth = function() {
|
|
4733
|
-
return this.endOf(
|
|
4733
|
+
return this.endOf(u).$D;
|
|
4734
4734
|
}, F.$locale = function() {
|
|
4735
4735
|
return D[this.$L];
|
|
4736
4736
|
}, F.locale = function(A, M) {
|
|
@@ -4750,7 +4750,7 @@ var wo = { exports: {} };
|
|
|
4750
4750
|
return this.$d.toUTCString();
|
|
4751
4751
|
}, R;
|
|
4752
4752
|
}(), $ = x.prototype;
|
|
4753
|
-
return C.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H",
|
|
4753
|
+
return C.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", u], ["$y", v], ["$D", p]].forEach(function(R) {
|
|
4754
4754
|
$[R[1]] = function(F) {
|
|
4755
4755
|
return this.$g(F, R[0], R[1]);
|
|
4756
4756
|
};
|
|
@@ -4824,10 +4824,10 @@ var Co = { exports: {} };
|
|
|
4824
4824
|
e.exports = i();
|
|
4825
4825
|
})(mt, function() {
|
|
4826
4826
|
return function(r, i, o) {
|
|
4827
|
-
var s = i.prototype, a = function(
|
|
4828
|
-
return
|
|
4829
|
-
}, l = function(
|
|
4830
|
-
var g =
|
|
4827
|
+
var s = i.prototype, a = function(u) {
|
|
4828
|
+
return u && (u.indexOf ? u : u.s);
|
|
4829
|
+
}, l = function(u, m, v, p, h) {
|
|
4830
|
+
var g = u.name ? u : u.$locale(), y = a(g[m]), O = a(g[v]), _ = y || O.map(function(V) {
|
|
4831
4831
|
return V.slice(0, p);
|
|
4832
4832
|
});
|
|
4833
4833
|
if (!h)
|
|
@@ -4836,38 +4836,38 @@ var Co = { exports: {} };
|
|
|
4836
4836
|
return _.map(function(V, D) {
|
|
4837
4837
|
return _[(D + (w || 0)) % 7];
|
|
4838
4838
|
});
|
|
4839
|
-
},
|
|
4839
|
+
}, d = function() {
|
|
4840
4840
|
return o.Ls[o.locale()];
|
|
4841
|
-
}, c = function(
|
|
4842
|
-
return
|
|
4841
|
+
}, c = function(u, m) {
|
|
4842
|
+
return u.formats[m] || function(v) {
|
|
4843
4843
|
return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, g) {
|
|
4844
4844
|
return h || g.slice(1);
|
|
4845
4845
|
});
|
|
4846
|
-
}(
|
|
4846
|
+
}(u.formats[m.toUpperCase()]);
|
|
4847
4847
|
}, f = function() {
|
|
4848
|
-
var
|
|
4848
|
+
var u = this;
|
|
4849
4849
|
return { months: function(m) {
|
|
4850
|
-
return m ? m.format("MMMM") : l(
|
|
4850
|
+
return m ? m.format("MMMM") : l(u, "months");
|
|
4851
4851
|
}, monthsShort: function(m) {
|
|
4852
|
-
return m ? m.format("MMM") : l(
|
|
4852
|
+
return m ? m.format("MMM") : l(u, "monthsShort", "months", 3);
|
|
4853
4853
|
}, firstDayOfWeek: function() {
|
|
4854
|
-
return
|
|
4854
|
+
return u.$locale().weekStart || 0;
|
|
4855
4855
|
}, weekdays: function(m) {
|
|
4856
|
-
return m ? m.format("dddd") : l(
|
|
4856
|
+
return m ? m.format("dddd") : l(u, "weekdays");
|
|
4857
4857
|
}, weekdaysMin: function(m) {
|
|
4858
|
-
return m ? m.format("dd") : l(
|
|
4858
|
+
return m ? m.format("dd") : l(u, "weekdaysMin", "weekdays", 2);
|
|
4859
4859
|
}, weekdaysShort: function(m) {
|
|
4860
|
-
return m ? m.format("ddd") : l(
|
|
4860
|
+
return m ? m.format("ddd") : l(u, "weekdaysShort", "weekdays", 3);
|
|
4861
4861
|
}, longDateFormat: function(m) {
|
|
4862
|
-
return c(
|
|
4862
|
+
return c(u.$locale(), m);
|
|
4863
4863
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
4864
4864
|
};
|
|
4865
4865
|
s.localeData = function() {
|
|
4866
4866
|
return f.bind(this)();
|
|
4867
4867
|
}, o.localeData = function() {
|
|
4868
|
-
var
|
|
4868
|
+
var u = d();
|
|
4869
4869
|
return { firstDayOfWeek: function() {
|
|
4870
|
-
return
|
|
4870
|
+
return u.weekStart || 0;
|
|
4871
4871
|
}, weekdays: function() {
|
|
4872
4872
|
return o.weekdays();
|
|
4873
4873
|
}, weekdaysShort: function() {
|
|
@@ -4879,18 +4879,18 @@ var Co = { exports: {} };
|
|
|
4879
4879
|
}, monthsShort: function() {
|
|
4880
4880
|
return o.monthsShort();
|
|
4881
4881
|
}, longDateFormat: function(m) {
|
|
4882
|
-
return c(
|
|
4883
|
-
}, meridiem:
|
|
4882
|
+
return c(u, m);
|
|
4883
|
+
}, meridiem: u.meridiem, ordinal: u.ordinal };
|
|
4884
4884
|
}, o.months = function() {
|
|
4885
|
-
return l(
|
|
4885
|
+
return l(d(), "months");
|
|
4886
4886
|
}, o.monthsShort = function() {
|
|
4887
|
-
return l(
|
|
4888
|
-
}, o.weekdays = function(
|
|
4889
|
-
return l(
|
|
4890
|
-
}, o.weekdaysShort = function(
|
|
4891
|
-
return l(
|
|
4892
|
-
}, o.weekdaysMin = function(
|
|
4893
|
-
return l(
|
|
4887
|
+
return l(d(), "monthsShort", "months", 3);
|
|
4888
|
+
}, o.weekdays = function(u) {
|
|
4889
|
+
return l(d(), "weekdays", null, null, u);
|
|
4890
|
+
}, o.weekdaysShort = function(u) {
|
|
4891
|
+
return l(d(), "weekdaysShort", "weekdays", 3, u);
|
|
4892
|
+
}, o.weekdaysMin = function(u) {
|
|
4893
|
+
return l(d(), "weekdaysMin", "weekdays", 2, u);
|
|
4894
4894
|
};
|
|
4895
4895
|
};
|
|
4896
4896
|
});
|
|
@@ -4937,17 +4937,17 @@ const lt = {
|
|
|
4937
4937
|
readOnly: a,
|
|
4938
4938
|
required: l
|
|
4939
4939
|
} = i, {
|
|
4940
|
-
token:
|
|
4940
|
+
token: d
|
|
4941
4941
|
} = jl(), c = l && !a ? {
|
|
4942
|
-
backgroundColor:
|
|
4943
|
-
} : void 0, f = o ? "time" : "date",
|
|
4942
|
+
backgroundColor: d.colorPrimaryBg
|
|
4943
|
+
} : void 0, f = o ? "time" : "date", u = (p) => {
|
|
4944
4944
|
r == null || r(p);
|
|
4945
4945
|
}, m = (p) => {
|
|
4946
4946
|
if (p === null) {
|
|
4947
|
-
|
|
4947
|
+
u(void 0);
|
|
4948
4948
|
return;
|
|
4949
4949
|
}
|
|
4950
|
-
|
|
4950
|
+
u(p.format(lt[f].dateInternalFormat));
|
|
4951
4951
|
}, v = t ? dt(t, lt[f].dateInternalFormat) : void 0;
|
|
4952
4952
|
return /* @__PURE__ */ n(Mn, {
|
|
4953
4953
|
style: {
|
|
@@ -5035,10 +5035,10 @@ function pn(e) {
|
|
|
5035
5035
|
results: s,
|
|
5036
5036
|
onRequestPageChange: a,
|
|
5037
5037
|
loading: l,
|
|
5038
|
-
onRowClicked:
|
|
5038
|
+
onRowClicked: d,
|
|
5039
5039
|
showPagination: c = !0,
|
|
5040
5040
|
rowSelection: f,
|
|
5041
|
-
scrollY:
|
|
5041
|
+
scrollY: u,
|
|
5042
5042
|
colorsForResults: m = {},
|
|
5043
5043
|
statusForResults: v = {},
|
|
5044
5044
|
onChangeSort: p,
|
|
@@ -5048,9 +5048,9 @@ function pn(e) {
|
|
|
5048
5048
|
rootTree: O = !1,
|
|
5049
5049
|
context: _,
|
|
5050
5050
|
readonly: w
|
|
5051
|
-
} = e, [V, D] = T([]), [E, b] = T([]), C =
|
|
5051
|
+
} = e, [V, D] = T([]), [E, b] = T([]), C = de(!1), S = de(null), {
|
|
5052
5052
|
t: x
|
|
5053
|
-
} = Y(we), $ =
|
|
5053
|
+
} = Y(we), $ = de(r), R = Y(Qe), {
|
|
5054
5054
|
title: F = void 0,
|
|
5055
5055
|
setTitle: A = void 0
|
|
5056
5056
|
} = (O ? R : {}) || {};
|
|
@@ -5117,11 +5117,11 @@ function pn(e) {
|
|
|
5117
5117
|
children: L.join(", ")
|
|
5118
5118
|
});
|
|
5119
5119
|
}
|
|
5120
|
-
let q, W =
|
|
5120
|
+
let q, W = u;
|
|
5121
5121
|
if (S.current !== null) {
|
|
5122
5122
|
q = Rl(E, V, 600);
|
|
5123
5123
|
const U = S.current;
|
|
5124
|
-
|
|
5124
|
+
u && U.columns.some((L) => L.sum !== void 0) && (W = u - 30);
|
|
5125
5125
|
}
|
|
5126
5126
|
return S.current === null ? /* @__PURE__ */ n(Me, {
|
|
5127
5127
|
style: {
|
|
@@ -5148,7 +5148,7 @@ function pn(e) {
|
|
|
5148
5148
|
color: v[z.id]
|
|
5149
5149
|
});
|
|
5150
5150
|
},
|
|
5151
|
-
onRowDoubleClick:
|
|
5151
|
+
onRowDoubleClick: d,
|
|
5152
5152
|
onRowSelectionChange: f == null ? void 0 : f.onChange,
|
|
5153
5153
|
onChangeSort: p,
|
|
5154
5154
|
sorter: h,
|
|
@@ -5171,12 +5171,12 @@ function nc(e, t) {
|
|
|
5171
5171
|
onRowClicked: s,
|
|
5172
5172
|
nameSearch: a,
|
|
5173
5173
|
treeScrollY: l,
|
|
5174
|
-
domain:
|
|
5174
|
+
domain: d = [],
|
|
5175
5175
|
visible: c = !0,
|
|
5176
5176
|
rootTree: f = !1,
|
|
5177
|
-
parentContext:
|
|
5177
|
+
parentContext: u = {},
|
|
5178
5178
|
onChangeSelectedRowKeys: m
|
|
5179
|
-
} = e, [v, p] = T(!1), [h, g] = T(!1), y =
|
|
5179
|
+
} = e, [v, p] = T(!1), [h, g] = T(!1), y = de(!1), [O, _] = T(), [w, V] = T(), [D, E] = T(), [b, C] = T(), [S, x] = T(200), $ = de(), {
|
|
5180
5180
|
height: R
|
|
5181
5181
|
} = fn(), F = Y(Et), {
|
|
5182
5182
|
processAction: A
|
|
@@ -5215,7 +5215,7 @@ function nc(e, t) {
|
|
|
5215
5215
|
fetchChildrenForRecord: ce,
|
|
5216
5216
|
colorsForResults: me,
|
|
5217
5217
|
statusForResults: Te,
|
|
5218
|
-
totalItems:
|
|
5218
|
+
totalItems: ue
|
|
5219
5219
|
} = ho({
|
|
5220
5220
|
model: O,
|
|
5221
5221
|
setSearchTreeNameSearch: Q,
|
|
@@ -5227,7 +5227,7 @@ function nc(e, t) {
|
|
|
5227
5227
|
setTreeIsLoading: J,
|
|
5228
5228
|
nameSearch: a,
|
|
5229
5229
|
searchNameGetDoneRef: y,
|
|
5230
|
-
context:
|
|
5230
|
+
context: u,
|
|
5231
5231
|
formView: D,
|
|
5232
5232
|
treeView: w,
|
|
5233
5233
|
sorter: ee,
|
|
@@ -5235,7 +5235,7 @@ function nc(e, t) {
|
|
|
5235
5235
|
setCurrentItemIndex: N,
|
|
5236
5236
|
setResultsActionView: I,
|
|
5237
5237
|
resultsActionView: j,
|
|
5238
|
-
domain:
|
|
5238
|
+
domain: d,
|
|
5239
5239
|
currentId: k,
|
|
5240
5240
|
setActionViewTotalItems: ie,
|
|
5241
5241
|
limit: $e,
|
|
@@ -5246,7 +5246,7 @@ function nc(e, t) {
|
|
|
5246
5246
|
y.current = !1, se();
|
|
5247
5247
|
},
|
|
5248
5248
|
getFields: () => w == null ? void 0 : w.fields,
|
|
5249
|
-
getDomain: () =>
|
|
5249
|
+
getDomain: () => d
|
|
5250
5250
|
})), pe(() => {
|
|
5251
5251
|
!h || c && (y.current = !1, se());
|
|
5252
5252
|
}, [je, We, h, c, a]);
|
|
@@ -5265,13 +5265,13 @@ function nc(e, t) {
|
|
|
5265
5265
|
i || (ke = await H.getHandler().getView({
|
|
5266
5266
|
model: r,
|
|
5267
5267
|
type: "form",
|
|
5268
|
-
context:
|
|
5268
|
+
context: u
|
|
5269
5269
|
}));
|
|
5270
5270
|
let et = o;
|
|
5271
5271
|
o || (et = await H.getHandler().getView({
|
|
5272
5272
|
model: r,
|
|
5273
5273
|
type: "tree",
|
|
5274
|
-
context:
|
|
5274
|
+
context: u
|
|
5275
5275
|
})), E(ke), V(et);
|
|
5276
5276
|
};
|
|
5277
5277
|
pe(() => {
|
|
@@ -5286,7 +5286,7 @@ function nc(e, t) {
|
|
|
5286
5286
|
$.current || ($.current = await H.getHandler().treeButOpen({
|
|
5287
5287
|
id: w.view_id,
|
|
5288
5288
|
model: O,
|
|
5289
|
-
context:
|
|
5289
|
+
context: u
|
|
5290
5290
|
}));
|
|
5291
5291
|
const tt = $.current[0][2];
|
|
5292
5292
|
await (A == null ? void 0 : A({
|
|
@@ -5296,7 +5296,7 @@ function nc(e, t) {
|
|
|
5296
5296
|
active_id: et,
|
|
5297
5297
|
...ke
|
|
5298
5298
|
},
|
|
5299
|
-
context:
|
|
5299
|
+
context: u
|
|
5300
5300
|
}));
|
|
5301
5301
|
}, ae = async (ke) => {
|
|
5302
5302
|
const {
|
|
@@ -5343,8 +5343,8 @@ function nc(e, t) {
|
|
|
5343
5343
|
searchVisible: L,
|
|
5344
5344
|
searchValues: fe
|
|
5345
5345
|
}), /* @__PURE__ */ n(pn, {
|
|
5346
|
-
context:
|
|
5347
|
-
total:
|
|
5346
|
+
context: u,
|
|
5347
|
+
total: ue,
|
|
5348
5348
|
limit: $e,
|
|
5349
5349
|
page: je,
|
|
5350
5350
|
treeView: w,
|
|
@@ -5387,9 +5387,9 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5387
5387
|
nameSearch: s,
|
|
5388
5388
|
domain: a,
|
|
5389
5389
|
context: l = {}
|
|
5390
|
-
} = e, [
|
|
5390
|
+
} = e, [d, c] = T(!1), {
|
|
5391
5391
|
modalWidth: f,
|
|
5392
|
-
modalHeight:
|
|
5392
|
+
modalHeight: u
|
|
5393
5393
|
} = fn(), {
|
|
5394
5394
|
t: m
|
|
5395
5395
|
} = Y(we), [v, p] = T([]), h = async () => {
|
|
@@ -5412,7 +5412,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5412
5412
|
model: o,
|
|
5413
5413
|
nameSearch: s,
|
|
5414
5414
|
onRowClicked: g,
|
|
5415
|
-
treeScrollY:
|
|
5415
|
+
treeScrollY: u * 0.3,
|
|
5416
5416
|
domain: a,
|
|
5417
5417
|
parentContext: l,
|
|
5418
5418
|
onChangeSelectedRowKeys: (_) => {
|
|
@@ -5447,7 +5447,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5447
5447
|
title: m("search"),
|
|
5448
5448
|
centered: !0,
|
|
5449
5449
|
width: f,
|
|
5450
|
-
open: t && !
|
|
5450
|
+
open: t && !d,
|
|
5451
5451
|
closable: !0,
|
|
5452
5452
|
onCancel: h,
|
|
5453
5453
|
footer: null,
|
|
@@ -5456,7 +5456,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5456
5456
|
children: O()
|
|
5457
5457
|
}), /* @__PURE__ */ n(Gt, {
|
|
5458
5458
|
model: o,
|
|
5459
|
-
visible:
|
|
5459
|
+
visible: d,
|
|
5460
5460
|
parentContext: l,
|
|
5461
5461
|
onSubmitSucceed: (_) => {
|
|
5462
5462
|
c(!1), h(), i([_]);
|
|
@@ -5510,17 +5510,17 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5510
5510
|
relation: s,
|
|
5511
5511
|
readOnly: a,
|
|
5512
5512
|
context: l,
|
|
5513
|
-
id:
|
|
5513
|
+
id: d,
|
|
5514
5514
|
domain: c
|
|
5515
5515
|
} = i, f = o && !a ? {
|
|
5516
5516
|
backgroundColor: Oo.colorPrimaryBg
|
|
5517
|
-
} : void 0, [
|
|
5517
|
+
} : void 0, [u, m] = T(!1), [v, p] = T(!1), [h, g] = T(!1), [y, O] = T(), _ = de(!1), [w, V] = T(""), D = de(), E = Y(Ne), {
|
|
5518
5518
|
domain: b,
|
|
5519
5519
|
getValues: C,
|
|
5520
5520
|
getFields: S,
|
|
5521
5521
|
getContext: x,
|
|
5522
5522
|
elementHasLostFocus: $
|
|
5523
|
-
} = E || {}, R =
|
|
5523
|
+
} = E || {}, R = de([]), [F, A] = T([]), M = t && t[0] || void 0, I = t && t[1] || "";
|
|
5524
5524
|
pe(() => {
|
|
5525
5525
|
!Array.isArray(t) && t && W(t);
|
|
5526
5526
|
}, [t]), pe(() => {
|
|
@@ -5602,7 +5602,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5602
5602
|
context: x()
|
|
5603
5603
|
})), b && b.length > 0 && (R.current = R.current.concat(Er({
|
|
5604
5604
|
domain: b,
|
|
5605
|
-
widgetFieldName:
|
|
5605
|
+
widgetFieldName: d
|
|
5606
5606
|
}))), A(R.current);
|
|
5607
5607
|
}
|
|
5608
5608
|
async function U(B) {
|
|
@@ -5671,7 +5671,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5671
5671
|
...x == null ? void 0 : x(),
|
|
5672
5672
|
...l
|
|
5673
5673
|
},
|
|
5674
|
-
visible:
|
|
5674
|
+
visible: u,
|
|
5675
5675
|
nameSearch: M ? void 0 : y,
|
|
5676
5676
|
onSelectValues: (B) => {
|
|
5677
5677
|
m(!1), W(B[0]), _.current = !1, D.current = void 0;
|
|
@@ -5728,10 +5728,10 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5728
5728
|
totalDomain: s,
|
|
5729
5729
|
showPercent: a = !1,
|
|
5730
5730
|
icon: l,
|
|
5731
|
-
suffix:
|
|
5731
|
+
suffix: d,
|
|
5732
5732
|
field: c,
|
|
5733
5733
|
operator: f,
|
|
5734
|
-
manualIds:
|
|
5734
|
+
manualIds: u
|
|
5735
5735
|
} = e, [m, v] = T(!1), [p, h] = T(), [g, y] = T(), [O, _] = T(), [w, V] = T(0), [D, E] = T(0), [b, C] = T(), [S, x] = T(), [$, R] = T();
|
|
5736
5736
|
pe(() => {
|
|
5737
5737
|
M();
|
|
@@ -5745,7 +5745,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5745
5745
|
domain: I
|
|
5746
5746
|
});
|
|
5747
5747
|
if (c && f) {
|
|
5748
|
-
const k =
|
|
5748
|
+
const k = u || await H.getHandler().searchAllIds({
|
|
5749
5749
|
params: I,
|
|
5750
5750
|
model: t,
|
|
5751
5751
|
context: i
|
|
@@ -5760,7 +5760,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5760
5760
|
operator: f
|
|
5761
5761
|
});
|
|
5762
5762
|
} else
|
|
5763
|
-
return
|
|
5763
|
+
return u ? u.length : await H.getHandler().searchCount({
|
|
5764
5764
|
model: t,
|
|
5765
5765
|
params: I,
|
|
5766
5766
|
context: i
|
|
@@ -5870,7 +5870,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5870
5870
|
width: D,
|
|
5871
5871
|
color: b,
|
|
5872
5872
|
icon: S,
|
|
5873
|
-
suffix:
|
|
5873
|
+
suffix: d
|
|
5874
5874
|
}) : /* @__PURE__ */ n(dc, {
|
|
5875
5875
|
value: p,
|
|
5876
5876
|
total: O,
|
|
@@ -5879,7 +5879,7 @@ const To = bt(nc), Fo = (e) => {
|
|
|
5879
5879
|
width: D,
|
|
5880
5880
|
color: b,
|
|
5881
5881
|
icon: S,
|
|
5882
|
-
suffix:
|
|
5882
|
+
suffix: d
|
|
5883
5883
|
})
|
|
5884
5884
|
});
|
|
5885
5885
|
};
|
|
@@ -5897,14 +5897,14 @@ function dc({
|
|
|
5897
5897
|
icon: a,
|
|
5898
5898
|
suffix: l
|
|
5899
5899
|
}) {
|
|
5900
|
-
let
|
|
5900
|
+
let d = r * rn < on ? on : r * rn;
|
|
5901
5901
|
const c = o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5902
5902
|
useGrouping: !0
|
|
5903
5903
|
});
|
|
5904
5904
|
let f = i ? `${c}/${i}` : `${c}`;
|
|
5905
5905
|
l && (f += " " + l);
|
|
5906
|
-
let
|
|
5907
|
-
a && (
|
|
5906
|
+
let u = Do(f, `bold ${Math.floor(d * 1.03)}px sans-serif`);
|
|
5907
|
+
a && (u = u * 2), u >= t * 0.85 && (d = t * 0.85 / u * d);
|
|
5908
5908
|
const m = a && it(a);
|
|
5909
5909
|
return /* @__PURE__ */ n("div", {
|
|
5910
5910
|
ref: e,
|
|
@@ -5918,13 +5918,13 @@ function dc({
|
|
|
5918
5918
|
},
|
|
5919
5919
|
children: /* @__PURE__ */ P(Dn, {
|
|
5920
5920
|
style: {
|
|
5921
|
-
fontSize:
|
|
5921
|
+
fontSize: d,
|
|
5922
5922
|
margin: 0,
|
|
5923
5923
|
color: s
|
|
5924
5924
|
},
|
|
5925
5925
|
children: [m && /* @__PURE__ */ n(m, {
|
|
5926
5926
|
style: {
|
|
5927
|
-
fontSize:
|
|
5927
|
+
fontSize: d * 0.7
|
|
5928
5928
|
}
|
|
5929
5929
|
}), m ? ` ${f}` : f]
|
|
5930
5930
|
})
|
|
@@ -5939,17 +5939,17 @@ function uc({
|
|
|
5939
5939
|
value: s,
|
|
5940
5940
|
color: a,
|
|
5941
5941
|
icon: l,
|
|
5942
|
-
suffix:
|
|
5942
|
+
suffix: d
|
|
5943
5943
|
}) {
|
|
5944
5944
|
const c = t * 0.65;
|
|
5945
5945
|
let f = c * rn < on ? on : c * rn;
|
|
5946
|
-
const
|
|
5946
|
+
const u = s == null ? void 0 : s.toLocaleString("es-ES", {
|
|
5947
5947
|
useGrouping: !0
|
|
5948
5948
|
});
|
|
5949
|
-
let m = o ? `${
|
|
5949
|
+
let m = o ? `${u}/${o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5950
5950
|
useGrouping: !0
|
|
5951
|
-
})}` : `${
|
|
5952
|
-
|
|
5951
|
+
})}` : `${u}`;
|
|
5952
|
+
d && (m += " " + d);
|
|
5953
5953
|
const v = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
5954
5954
|
useGrouping: !0
|
|
5955
5955
|
})}%`;
|
|
@@ -6143,10 +6143,10 @@ const {
|
|
|
6143
6143
|
limit: s,
|
|
6144
6144
|
uninformedString: a,
|
|
6145
6145
|
manualIds: l
|
|
6146
|
-
} = e, [
|
|
6146
|
+
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6147
6147
|
return St(() => {
|
|
6148
6148
|
(async () => {
|
|
6149
|
-
c(!0),
|
|
6149
|
+
c(!0), u(void 0);
|
|
6150
6150
|
const O = Ln(o);
|
|
6151
6151
|
y(O.type || "line");
|
|
6152
6152
|
const _ = yc({
|
|
@@ -6167,12 +6167,12 @@ const {
|
|
|
6167
6167
|
manualIds: l
|
|
6168
6168
|
}));
|
|
6169
6169
|
} catch (D) {
|
|
6170
|
-
|
|
6170
|
+
u("Error fetching graph data values: " + JSON.stringify(D)), c(!1);
|
|
6171
6171
|
return;
|
|
6172
6172
|
}
|
|
6173
6173
|
try {
|
|
6174
6174
|
if (!w || !V) {
|
|
6175
|
-
|
|
6175
|
+
u("No values or fields returned"), c(!1);
|
|
6176
6176
|
return;
|
|
6177
6177
|
}
|
|
6178
6178
|
h(w);
|
|
@@ -6186,13 +6186,13 @@ const {
|
|
|
6186
6186
|
});
|
|
6187
6187
|
v(D);
|
|
6188
6188
|
} catch (D) {
|
|
6189
|
-
|
|
6189
|
+
u("Error processing graph data: " + D), c(!1);
|
|
6190
6190
|
return;
|
|
6191
6191
|
}
|
|
6192
6192
|
c(!1);
|
|
6193
6193
|
})();
|
|
6194
6194
|
}, [o, t, s, i, r]), {
|
|
6195
|
-
loading:
|
|
6195
|
+
loading: d,
|
|
6196
6196
|
error: f,
|
|
6197
6197
|
type: g,
|
|
6198
6198
|
values: m,
|
|
@@ -6231,7 +6231,7 @@ async function bc({
|
|
|
6231
6231
|
fieldsToRetrieve: e,
|
|
6232
6232
|
context: i
|
|
6233
6233
|
});
|
|
6234
|
-
return o && (c = [...c].sort((f,
|
|
6234
|
+
return o && (c = [...c].sort((f, u) => f[o] - u[o])), {
|
|
6235
6235
|
values: c,
|
|
6236
6236
|
fields: l
|
|
6237
6237
|
};
|
|
@@ -6264,10 +6264,10 @@ const xc = {
|
|
|
6264
6264
|
} = e, {
|
|
6265
6265
|
t: l
|
|
6266
6266
|
} = Y(we), {
|
|
6267
|
-
error:
|
|
6267
|
+
error: d,
|
|
6268
6268
|
loading: c,
|
|
6269
6269
|
values: f,
|
|
6270
|
-
type:
|
|
6270
|
+
type: u,
|
|
6271
6271
|
evaluatedEntries: m
|
|
6272
6272
|
} = vc({
|
|
6273
6273
|
model: t,
|
|
@@ -6278,9 +6278,9 @@ const xc = {
|
|
|
6278
6278
|
uninformedString: l("uninformed"),
|
|
6279
6279
|
manualIds: a
|
|
6280
6280
|
});
|
|
6281
|
-
if (
|
|
6281
|
+
if (d)
|
|
6282
6282
|
return /* @__PURE__ */ n(Ze, {
|
|
6283
|
-
message:
|
|
6283
|
+
message: d,
|
|
6284
6284
|
type: "error",
|
|
6285
6285
|
banner: !0
|
|
6286
6286
|
});
|
|
@@ -6295,7 +6295,7 @@ const xc = {
|
|
|
6295
6295
|
data: v,
|
|
6296
6296
|
isGroup: p,
|
|
6297
6297
|
isStack: h
|
|
6298
|
-
} = f, g = xc[
|
|
6298
|
+
} = f, g = xc[u];
|
|
6299
6299
|
return g ? /* @__PURE__ */ P("div", {
|
|
6300
6300
|
style: {
|
|
6301
6301
|
padding: "1rem"
|
|
@@ -6309,14 +6309,14 @@ const xc = {
|
|
|
6309
6309
|
})}`
|
|
6310
6310
|
}), /* @__PURE__ */ n(g, {
|
|
6311
6311
|
...Sc({
|
|
6312
|
-
type:
|
|
6312
|
+
type: u,
|
|
6313
6313
|
data: v,
|
|
6314
6314
|
isGroup: p,
|
|
6315
6315
|
isStack: h
|
|
6316
6316
|
})
|
|
6317
6317
|
})]
|
|
6318
6318
|
}) : /* @__PURE__ */ n(ne, {
|
|
6319
|
-
children: `Unknown graph type: ${
|
|
6319
|
+
children: `Unknown graph type: ${u}`
|
|
6320
6320
|
});
|
|
6321
6321
|
};
|
|
6322
6322
|
function Sc(e) {
|
|
@@ -6337,7 +6337,7 @@ const Tc = (e, t) => {
|
|
|
6337
6337
|
domain: s,
|
|
6338
6338
|
limit: a,
|
|
6339
6339
|
manualIds: l
|
|
6340
|
-
} = e, [
|
|
6340
|
+
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), p = Y(Qe), {
|
|
6341
6341
|
setGraphIsLoading: h = void 0
|
|
6342
6342
|
} = p || {};
|
|
6343
6343
|
xt(t, () => ({
|
|
@@ -6358,7 +6358,7 @@ const Tc = (e, t) => {
|
|
|
6358
6358
|
});
|
|
6359
6359
|
v(y.arch);
|
|
6360
6360
|
const O = Ln(y.arch);
|
|
6361
|
-
|
|
6361
|
+
u(O);
|
|
6362
6362
|
} catch (y) {
|
|
6363
6363
|
return console.error(y), /* @__PURE__ */ n(ne, {
|
|
6364
6364
|
children: JSON.stringify(y)
|
|
@@ -6366,7 +6366,7 @@ const Tc = (e, t) => {
|
|
|
6366
6366
|
}
|
|
6367
6367
|
c(!1), h == null || h(!1);
|
|
6368
6368
|
}
|
|
6369
|
-
if (
|
|
6369
|
+
if (d)
|
|
6370
6370
|
return /* @__PURE__ */ n("div", {
|
|
6371
6371
|
style: {
|
|
6372
6372
|
width: "100%",
|
|
@@ -6461,10 +6461,10 @@ const Tc = (e, t) => {
|
|
|
6461
6461
|
mode: s,
|
|
6462
6462
|
onDelete: a,
|
|
6463
6463
|
totalItems: l,
|
|
6464
|
-
currentItemIndex:
|
|
6464
|
+
currentItemIndex: d,
|
|
6465
6465
|
onPreviousItem: c,
|
|
6466
6466
|
onNextItem: f,
|
|
6467
|
-
isMany2Many:
|
|
6467
|
+
isMany2Many: u,
|
|
6468
6468
|
onSearchItem: m,
|
|
6469
6469
|
selectedRowKeys: v,
|
|
6470
6470
|
showCreateButton: p,
|
|
@@ -6495,15 +6495,15 @@ const Tc = (e, t) => {
|
|
|
6495
6495
|
}
|
|
6496
6496
|
function _() {
|
|
6497
6497
|
return /* @__PURE__ */ n(ze, {
|
|
6498
|
-
tooltip:
|
|
6499
|
-
icon:
|
|
6498
|
+
tooltip: u ? "Unlink" : "Delete",
|
|
6499
|
+
icon: u ? /* @__PURE__ */ n(wi, {}) : /* @__PURE__ */ n(Yn, {}),
|
|
6500
6500
|
onClick: a,
|
|
6501
6501
|
disabled: l === 0 || r || s !== "form" && v.length === 0
|
|
6502
6502
|
});
|
|
6503
6503
|
}
|
|
6504
6504
|
function w() {
|
|
6505
6505
|
let D = "_";
|
|
6506
|
-
return l === 0 ? D = "_" : D = (
|
|
6506
|
+
return l === 0 ? D = "_" : D = (d + 1).toString(), /* @__PURE__ */ P("span", {
|
|
6507
6507
|
className: "pl-1 pr-1",
|
|
6508
6508
|
children: ["(", D, "/", l, ")"]
|
|
6509
6509
|
});
|
|
@@ -6530,7 +6530,7 @@ const Tc = (e, t) => {
|
|
|
6530
6530
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
6531
6531
|
disabled: r,
|
|
6532
6532
|
onClick: i
|
|
6533
|
-
}),
|
|
6533
|
+
}), u && p && /* @__PURE__ */ n(ze, {
|
|
6534
6534
|
tooltip: "Search existing item",
|
|
6535
6535
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
6536
6536
|
disabled: r,
|
|
@@ -6568,10 +6568,10 @@ const kc = (e) => {
|
|
|
6568
6568
|
} = t || {}, {
|
|
6569
6569
|
currentView: a,
|
|
6570
6570
|
setCurrentView: l,
|
|
6571
|
-
itemIndex:
|
|
6571
|
+
itemIndex: d,
|
|
6572
6572
|
setItemIndex: c
|
|
6573
6573
|
} = Y(_o), f = Y(Ne), {
|
|
6574
|
-
activeId:
|
|
6574
|
+
activeId: u,
|
|
6575
6575
|
getFields: m,
|
|
6576
6576
|
getValues: v,
|
|
6577
6577
|
getContext: p,
|
|
@@ -6579,14 +6579,14 @@ const kc = (e) => {
|
|
|
6579
6579
|
} = f || {}, {
|
|
6580
6580
|
lang: g,
|
|
6581
6581
|
t: y
|
|
6582
|
-
} = Y(we), [O, _] = T(!1), [w, V] = T(!1), [D, E] = T(), [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T([]), [M, I] = T(!1), N =
|
|
6582
|
+
} = Y(we), [O, _] = T(!1), [w, V] = T(!1), [D, E] = T(), [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T([]), [M, I] = T(!1), N = de([]), [k, j] = T(), q = de(), [W, z] = T(void 0), {
|
|
6583
6583
|
readOnly: U,
|
|
6584
6584
|
relation: L,
|
|
6585
6585
|
context: B,
|
|
6586
6586
|
domain: ee
|
|
6587
6587
|
} = i, Z = i.type === "many2many", {
|
|
6588
6588
|
id: ie
|
|
6589
|
-
} = i, Q = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J =
|
|
6589
|
+
} = i, Q = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J = de();
|
|
6590
6590
|
pe(() => {
|
|
6591
6591
|
if (J.current !== a) {
|
|
6592
6592
|
J.current = a, fe();
|
|
@@ -6607,7 +6607,7 @@ const kc = (e) => {
|
|
|
6607
6607
|
items: Rc(X)
|
|
6608
6608
|
});
|
|
6609
6609
|
}, $e = async () => {
|
|
6610
|
-
await _e(),
|
|
6610
|
+
await _e(), d > Q.length - 1 && d !== 0 && c(0);
|
|
6611
6611
|
}, _e = async (X) => {
|
|
6612
6612
|
var ae, Ae, he;
|
|
6613
6613
|
V(!0), _(!1), E(void 0);
|
|
@@ -6655,16 +6655,16 @@ const kc = (e) => {
|
|
|
6655
6655
|
l(ae);
|
|
6656
6656
|
}) : l(ae);
|
|
6657
6657
|
}, se = () => {
|
|
6658
|
-
|
|
6659
|
-
c(
|
|
6660
|
-
}) : c(
|
|
6658
|
+
d > 0 && (a === "form" ? Ve(() => {
|
|
6659
|
+
c(d - 1);
|
|
6660
|
+
}) : c(d - 1));
|
|
6661
6661
|
}, Se = () => {
|
|
6662
6662
|
const X = Q.length;
|
|
6663
|
-
|
|
6664
|
-
c(
|
|
6665
|
-
}) : c(
|
|
6663
|
+
d < X - 1 && (a === "form" ? Ve(() => {
|
|
6664
|
+
c(d + 1);
|
|
6665
|
+
}) : c(d + 1));
|
|
6666
6666
|
}, De = async () => {
|
|
6667
|
-
const X = Q[
|
|
6667
|
+
const X = Q[d].id, ae = (await H.getHandler().readObjects({
|
|
6668
6668
|
model: L,
|
|
6669
6669
|
ids: [X],
|
|
6670
6670
|
fields: o.get("form").fields,
|
|
@@ -6715,8 +6715,8 @@ const kc = (e) => {
|
|
|
6715
6715
|
inv_field: X
|
|
6716
6716
|
} = i;
|
|
6717
6717
|
let ae;
|
|
6718
|
-
X &&
|
|
6719
|
-
[X]:
|
|
6718
|
+
X && u && (ae = {
|
|
6719
|
+
[X]: u
|
|
6720
6720
|
}), a === "form" ? Ve(() => {
|
|
6721
6721
|
I(!0), R({
|
|
6722
6722
|
defaultValues: ae
|
|
@@ -6731,14 +6731,14 @@ const kc = (e) => {
|
|
|
6731
6731
|
}, Fe = async () => {
|
|
6732
6732
|
V(!0), _(!1), E(void 0);
|
|
6733
6733
|
try {
|
|
6734
|
-
if (Q[
|
|
6735
|
-
const X = s.map((ae) => ae.id === Q[
|
|
6734
|
+
if (Q[d].id > 0) {
|
|
6735
|
+
const X = s.map((ae) => ae.id === Q[d].id ? {
|
|
6736
6736
|
...ae,
|
|
6737
6737
|
operation: "pendingRemove"
|
|
6738
6738
|
} : ae);
|
|
6739
6739
|
be(X);
|
|
6740
6740
|
} else
|
|
6741
|
-
be(s.filter((X) => X.id !== Q[
|
|
6741
|
+
be(s.filter((X) => X.id !== Q[d].id));
|
|
6742
6742
|
} catch (X) {
|
|
6743
6743
|
E(X);
|
|
6744
6744
|
}
|
|
@@ -6831,7 +6831,7 @@ const kc = (e) => {
|
|
|
6831
6831
|
V(!1);
|
|
6832
6832
|
}
|
|
6833
6833
|
};
|
|
6834
|
-
function
|
|
6834
|
+
function ue() {
|
|
6835
6835
|
const X = Ac[a];
|
|
6836
6836
|
if (a === "graph")
|
|
6837
6837
|
return Ln(o.get("graph").arch).string;
|
|
@@ -6845,17 +6845,17 @@ const kc = (e) => {
|
|
|
6845
6845
|
if (a === "form")
|
|
6846
6846
|
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Ut, {
|
|
6847
6847
|
formView: o.get("form"),
|
|
6848
|
-
values: (ae = Q[
|
|
6848
|
+
values: (ae = Q[d]) == null ? void 0 : ae.values,
|
|
6849
6849
|
parentContext: {
|
|
6850
6850
|
...p == null ? void 0 : p(),
|
|
6851
6851
|
...B
|
|
6852
6852
|
},
|
|
6853
6853
|
model: L,
|
|
6854
|
-
id: (Ae = Q[
|
|
6854
|
+
id: (Ae = Q[d]) == null ? void 0 : Ae.id,
|
|
6855
6855
|
submitMode: "values",
|
|
6856
6856
|
onFieldsChange: (xe) => {
|
|
6857
6857
|
var tt;
|
|
6858
|
-
const ke = (tt = Q[
|
|
6858
|
+
const ke = (tt = Q[d]) == null ? void 0 : tt.id, et = s.map((ut) => ut.id === ke ? {
|
|
6859
6859
|
...ut,
|
|
6860
6860
|
operation: ut.operation === "original" ? "pendingUpdate" : ut.operation,
|
|
6861
6861
|
values: {
|
|
@@ -6902,7 +6902,7 @@ const kc = (e) => {
|
|
|
6902
6902
|
readonly: U
|
|
6903
6903
|
});
|
|
6904
6904
|
if (a === "graph") {
|
|
6905
|
-
const xe = [[`${i.inv_field}`, "=",
|
|
6905
|
+
const xe = [[`${i.inv_field}`, "=", u]];
|
|
6906
6906
|
return /* @__PURE__ */ n(gn, {
|
|
6907
6907
|
view_id: o.get("graph").view_id,
|
|
6908
6908
|
model: i.relation,
|
|
@@ -6926,12 +6926,12 @@ const kc = (e) => {
|
|
|
6926
6926
|
return w ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
6927
6927
|
children: [/* @__PURE__ */ n(Vc, {
|
|
6928
6928
|
mode: a,
|
|
6929
|
-
title:
|
|
6929
|
+
title: ue(),
|
|
6930
6930
|
readOnly: U,
|
|
6931
6931
|
isMany2Many: Z,
|
|
6932
6932
|
formHasChanges: O,
|
|
6933
6933
|
totalItems: Q.length,
|
|
6934
|
-
currentItemIndex:
|
|
6934
|
+
currentItemIndex: d,
|
|
6935
6935
|
onDelete: je,
|
|
6936
6936
|
onCreateItem: We,
|
|
6937
6937
|
onToggleViewMode: ge,
|
|
@@ -6986,7 +6986,7 @@ const kc = (e) => {
|
|
|
6986
6986
|
context: a
|
|
6987
6987
|
} = t;
|
|
6988
6988
|
let l;
|
|
6989
|
-
const [
|
|
6989
|
+
const [d, c] = T(!0), [f, u] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
|
|
6990
6990
|
getContext: h
|
|
6991
6991
|
} = p || {};
|
|
6992
6992
|
St(() => {
|
|
@@ -7000,7 +7000,7 @@ const kc = (e) => {
|
|
|
7000
7000
|
...a
|
|
7001
7001
|
}
|
|
7002
7002
|
}), y = async () => {
|
|
7003
|
-
c(!0),
|
|
7003
|
+
c(!0), u(void 0);
|
|
7004
7004
|
try {
|
|
7005
7005
|
if (r && r.length > 0) {
|
|
7006
7006
|
for (const _ of r) {
|
|
@@ -7013,12 +7013,12 @@ const kc = (e) => {
|
|
|
7013
7013
|
m.set("form", _), m.set("tree", w), v(m);
|
|
7014
7014
|
}
|
|
7015
7015
|
} catch (_) {
|
|
7016
|
-
|
|
7016
|
+
u(JSON.stringify(_));
|
|
7017
7017
|
} finally {
|
|
7018
7018
|
c(!1);
|
|
7019
7019
|
}
|
|
7020
7020
|
};
|
|
7021
|
-
return r && r.length > 0 ? l = r[0] : l = "tree",
|
|
7021
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(Ze, {
|
|
7022
7022
|
className: "mt-10",
|
|
7023
7023
|
message: f,
|
|
7024
7024
|
type: "error",
|
|
@@ -7072,19 +7072,19 @@ const kc = (e) => {
|
|
|
7072
7072
|
required: a
|
|
7073
7073
|
} = t, {
|
|
7074
7074
|
token: l
|
|
7075
|
-
} = Ec(),
|
|
7075
|
+
} = Ec(), d = a && !s ? {
|
|
7076
7076
|
backgroundColor: l.colorPrimaryBg
|
|
7077
|
-
} : void 0, c =
|
|
7077
|
+
} : void 0, c = de(), [f, u] = T(), m = Y(Ne), {
|
|
7078
7078
|
elementHasLostFocus: v
|
|
7079
7079
|
} = m || {};
|
|
7080
7080
|
pe(() => {
|
|
7081
|
-
|
|
7081
|
+
u(yo(r));
|
|
7082
7082
|
}, [r]);
|
|
7083
7083
|
const p = (y) => {
|
|
7084
7084
|
i == null || i(y);
|
|
7085
7085
|
};
|
|
7086
7086
|
function h(y) {
|
|
7087
|
-
c.current = y.target.value,
|
|
7087
|
+
c.current = y.target.value, u(y.target.value);
|
|
7088
7088
|
}
|
|
7089
7089
|
async function g() {
|
|
7090
7090
|
p(kl(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
|
|
@@ -7093,7 +7093,7 @@ const kc = (e) => {
|
|
|
7093
7093
|
value: f,
|
|
7094
7094
|
disabled: s,
|
|
7095
7095
|
className: "w-full",
|
|
7096
|
-
style:
|
|
7096
|
+
style: d,
|
|
7097
7097
|
id: o,
|
|
7098
7098
|
placeholder: "00:00",
|
|
7099
7099
|
onChange: h,
|
|
@@ -7164,7 +7164,7 @@ const {
|
|
|
7164
7164
|
translatable: a
|
|
7165
7165
|
} = t, {
|
|
7166
7166
|
token: l
|
|
7167
|
-
} = Hc(),
|
|
7167
|
+
} = Hc(), d = o && !i ? {
|
|
7168
7168
|
backgroundColor: l.colorPrimaryBg
|
|
7169
7169
|
} : void 0, c = Y(Ne), {
|
|
7170
7170
|
elementHasLostFocus: f
|
|
@@ -7175,12 +7175,12 @@ const {
|
|
|
7175
7175
|
children: a ? /* @__PURE__ */ n(jc, {
|
|
7176
7176
|
field: r,
|
|
7177
7177
|
height: s,
|
|
7178
|
-
requiredStyle:
|
|
7178
|
+
requiredStyle: d
|
|
7179
7179
|
}) : /* @__PURE__ */ n(An, {
|
|
7180
7180
|
disabled: i || a,
|
|
7181
7181
|
style: {
|
|
7182
7182
|
minHeight: s ? s + "px" : "100%",
|
|
7183
|
-
...
|
|
7183
|
+
...d
|
|
7184
7184
|
},
|
|
7185
7185
|
rows: 4,
|
|
7186
7186
|
onBlur: f
|
|
@@ -7196,10 +7196,10 @@ const {
|
|
|
7196
7196
|
const s = Y(Ne), {
|
|
7197
7197
|
activeId: a,
|
|
7198
7198
|
activeModel: l,
|
|
7199
|
-
fetchValues:
|
|
7199
|
+
fetchValues: d,
|
|
7200
7200
|
formHasChanges: c,
|
|
7201
7201
|
elementHasLostFocus: f
|
|
7202
|
-
} = s || {}, [
|
|
7202
|
+
} = s || {}, [u, m] = T(!1), {
|
|
7203
7203
|
t: v
|
|
7204
7204
|
} = Y(we);
|
|
7205
7205
|
return a ? /* @__PURE__ */ P(ne, {
|
|
@@ -7209,7 +7209,7 @@ const {
|
|
|
7209
7209
|
ct(v("saveBeforeTranslate"));
|
|
7210
7210
|
return;
|
|
7211
7211
|
}
|
|
7212
|
-
|
|
7212
|
+
u || m(!0);
|
|
7213
7213
|
},
|
|
7214
7214
|
children: /* @__PURE__ */ n(An, {
|
|
7215
7215
|
value: e,
|
|
@@ -7231,12 +7231,12 @@ const {
|
|
|
7231
7231
|
id: a,
|
|
7232
7232
|
model: l,
|
|
7233
7233
|
field: t,
|
|
7234
|
-
visible:
|
|
7234
|
+
visible: u,
|
|
7235
7235
|
onCloseModal: () => {
|
|
7236
7236
|
m(!1);
|
|
7237
7237
|
},
|
|
7238
7238
|
onSubmitSucceed: () => {
|
|
7239
|
-
m(!1),
|
|
7239
|
+
m(!1), d == null || d();
|
|
7240
7240
|
}
|
|
7241
7241
|
})]
|
|
7242
7242
|
}) : /* @__PURE__ */ P(ne, {
|
|
@@ -7294,7 +7294,7 @@ const {
|
|
|
7294
7294
|
limit: s,
|
|
7295
7295
|
onClose: a
|
|
7296
7296
|
}) => {
|
|
7297
|
-
const l =
|
|
7297
|
+
const l = de({}), d = de(/* @__PURE__ */ new Map()), c = Le(
|
|
7298
7298
|
async (g) => {
|
|
7299
7299
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7300
7300
|
ct(Oe("selectAtLeastOneField", r));
|
|
@@ -7327,7 +7327,7 @@ const {
|
|
|
7327
7327
|
fields: []
|
|
7328
7328
|
});
|
|
7329
7329
|
return l.current["/"] = g, Ir({ fields: g });
|
|
7330
|
-
}, [e, t, l]),
|
|
7330
|
+
}, [e, t, l]), u = Le(
|
|
7331
7331
|
async (g) => {
|
|
7332
7332
|
const O = kn(g, l.current)[Rn(g)], _ = O.relation, w = await H.getHandler().getFields({
|
|
7333
7333
|
model: _,
|
|
@@ -7349,7 +7349,7 @@ const {
|
|
|
7349
7349
|
const g = await Gc({ model: e, context: t }), y = await zc({
|
|
7350
7350
|
predefinedExports: g,
|
|
7351
7351
|
fields: l.current,
|
|
7352
|
-
onGetFieldChilds:
|
|
7352
|
+
onGetFieldChilds: u
|
|
7353
7353
|
});
|
|
7354
7354
|
return {
|
|
7355
7355
|
predefinedExports: g.map((_) => ({
|
|
@@ -7398,20 +7398,20 @@ const {
|
|
|
7398
7398
|
[]
|
|
7399
7399
|
), h = Le(
|
|
7400
7400
|
async (g) => {
|
|
7401
|
-
if (
|
|
7402
|
-
return
|
|
7401
|
+
if (d.current.has(g))
|
|
7402
|
+
return d.current.get(g);
|
|
7403
7403
|
const y = H.getHandler().getFields({
|
|
7404
7404
|
model: g,
|
|
7405
7405
|
context: t,
|
|
7406
7406
|
fields: []
|
|
7407
7407
|
});
|
|
7408
|
-
|
|
7408
|
+
d.current.set(g, y);
|
|
7409
7409
|
},
|
|
7410
|
-
[
|
|
7410
|
+
[d, t]
|
|
7411
7411
|
);
|
|
7412
7412
|
return {
|
|
7413
7413
|
onGetFields: f,
|
|
7414
|
-
onGetFieldChilds:
|
|
7414
|
+
onGetFieldChilds: u,
|
|
7415
7415
|
onExport: c,
|
|
7416
7416
|
onGetPredefinedExports: m,
|
|
7417
7417
|
onSavePredefinedExport: v,
|
|
@@ -7464,7 +7464,7 @@ const {
|
|
|
7464
7464
|
id: s.id,
|
|
7465
7465
|
name: s.name,
|
|
7466
7466
|
fields: s.export_fields.map((a) => ({
|
|
7467
|
-
key: o.find((
|
|
7467
|
+
key: o.find((d) => d.id === a).name
|
|
7468
7468
|
}))
|
|
7469
7469
|
}));
|
|
7470
7470
|
}, qc = ({
|
|
@@ -7527,11 +7527,11 @@ const {
|
|
|
7527
7527
|
context: s,
|
|
7528
7528
|
selectedRegistersToExport: a,
|
|
7529
7529
|
totalRegisters: l,
|
|
7530
|
-
domain:
|
|
7530
|
+
domain: d,
|
|
7531
7531
|
limit: c,
|
|
7532
7532
|
visibleRegisters: f
|
|
7533
7533
|
} = e, {
|
|
7534
|
-
onExport:
|
|
7534
|
+
onExport: u,
|
|
7535
7535
|
onGetFieldChilds: m,
|
|
7536
7536
|
onGetFields: v,
|
|
7537
7537
|
onGetPredefinedExports: p,
|
|
@@ -7540,7 +7540,7 @@ const {
|
|
|
7540
7540
|
} = Yc({
|
|
7541
7541
|
model: o,
|
|
7542
7542
|
context: s,
|
|
7543
|
-
domain:
|
|
7543
|
+
domain: d,
|
|
7544
7544
|
limit: c,
|
|
7545
7545
|
selectedRegistersToExport: a,
|
|
7546
7546
|
onClose: i,
|
|
@@ -7549,7 +7549,7 @@ const {
|
|
|
7549
7549
|
return /* @__PURE__ */ n(Li, {
|
|
7550
7550
|
visible: t,
|
|
7551
7551
|
locale: r,
|
|
7552
|
-
onSucceed:
|
|
7552
|
+
onSucceed: u,
|
|
7553
7553
|
onCancel: i,
|
|
7554
7554
|
selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
|
|
7555
7555
|
totalRegisters: l,
|
|
@@ -7581,7 +7581,7 @@ var Ro = { exports: {} };
|
|
|
7581
7581
|
(function(r, i) {
|
|
7582
7582
|
e.exports = i();
|
|
7583
7583
|
})(mt, function() {
|
|
7584
|
-
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 = {},
|
|
7584
|
+
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 = {}, d = function(h) {
|
|
7585
7585
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
7586
7586
|
}, c = function(h) {
|
|
7587
7587
|
return function(g) {
|
|
@@ -7594,7 +7594,7 @@ var Ro = { exports: {} };
|
|
|
7594
7594
|
var y = g.match(/([+-]|\d\d)/g), O = 60 * y[1] + (+y[2] || 0);
|
|
7595
7595
|
return O === 0 ? 0 : y[0] === "+" ? -O : O;
|
|
7596
7596
|
}(h);
|
|
7597
|
-
}],
|
|
7597
|
+
}], u = function(h) {
|
|
7598
7598
|
var g = l[h];
|
|
7599
7599
|
return g && (g.indexOf ? g : g.s.concat(g.f));
|
|
7600
7600
|
}, m = function(h, g) {
|
|
@@ -7624,19 +7624,19 @@ var Ro = { exports: {} };
|
|
|
7624
7624
|
for (var O = 1; O <= 31; O += 1)
|
|
7625
7625
|
g(O).replace(/\[|\]/g, "") === h && (this.day = O);
|
|
7626
7626
|
}], M: [s, c("month")], MM: [o, c("month")], MMM: [a, function(h) {
|
|
7627
|
-
var g =
|
|
7627
|
+
var g = u("months"), y = (u("monthsShort") || g.map(function(O) {
|
|
7628
7628
|
return O.slice(0, 3);
|
|
7629
7629
|
})).indexOf(h) + 1;
|
|
7630
7630
|
if (y < 1)
|
|
7631
7631
|
throw new Error();
|
|
7632
7632
|
this.month = y % 12 || y;
|
|
7633
7633
|
}], MMMM: [a, function(h) {
|
|
7634
|
-
var g =
|
|
7634
|
+
var g = u("months").indexOf(h) + 1;
|
|
7635
7635
|
if (g < 1)
|
|
7636
7636
|
throw new Error();
|
|
7637
7637
|
this.month = g % 12 || g;
|
|
7638
7638
|
}], Y: [/[+-]?\d+/, c("year")], YY: [o, function(h) {
|
|
7639
|
-
this.year =
|
|
7639
|
+
this.year = d(h);
|
|
7640
7640
|
}], YYYY: [/\d{4}/, c("year")], Z: f, ZZ: f };
|
|
7641
7641
|
function p(h) {
|
|
7642
7642
|
var g, y;
|
|
@@ -7670,7 +7670,7 @@ var Ro = { exports: {} };
|
|
|
7670
7670
|
};
|
|
7671
7671
|
}
|
|
7672
7672
|
return function(h, g, y) {
|
|
7673
|
-
y.p.customParseFormat = !0, h && h.parseTwoDigitYear && (
|
|
7673
|
+
y.p.customParseFormat = !0, h && h.parseTwoDigitYear && (d = h.parseTwoDigitYear);
|
|
7674
7674
|
var O = g.prototype, _ = O.parse;
|
|
7675
7675
|
O.parse = function(w) {
|
|
7676
7676
|
var V = w.date, D = w.utc, E = w.args;
|
|
@@ -7745,14 +7745,14 @@ const nd = (e) => {
|
|
|
7745
7745
|
required: o,
|
|
7746
7746
|
selectionValues: s,
|
|
7747
7747
|
readOnly: a
|
|
7748
|
-
} = i, l = t == null ? void 0 : t.split(","), [
|
|
7748
|
+
} = i, l = t == null ? void 0 : t.split(","), [d, c] = T([]), [f, u] = T();
|
|
7749
7749
|
return pe(() => {
|
|
7750
7750
|
if (!t) {
|
|
7751
|
-
|
|
7751
|
+
u(void 0), c([]);
|
|
7752
7752
|
return;
|
|
7753
7753
|
}
|
|
7754
7754
|
const m = t && l && l[0], v = t && l && l[1] && parseInt(l[1]);
|
|
7755
|
-
c([v, void 0]),
|
|
7755
|
+
c([v, void 0]), u(m);
|
|
7756
7756
|
}, [t]), /* @__PURE__ */ P(Ce, {
|
|
7757
7757
|
gutter: 8,
|
|
7758
7758
|
wrap: !1,
|
|
@@ -7766,8 +7766,8 @@ const nd = (e) => {
|
|
|
7766
7766
|
required: o
|
|
7767
7767
|
}),
|
|
7768
7768
|
onChange: (m) => {
|
|
7769
|
-
|
|
7770
|
-
let v =
|
|
7769
|
+
u(m);
|
|
7770
|
+
let v = d[0] || 0;
|
|
7771
7771
|
m !== f && (c([]), v = 0);
|
|
7772
7772
|
const p = `${m},${v}`;
|
|
7773
7773
|
p !== t && (r == null || r(p));
|
|
@@ -7783,7 +7783,7 @@ const nd = (e) => {
|
|
|
7783
7783
|
readonly: a,
|
|
7784
7784
|
required: o
|
|
7785
7785
|
}),
|
|
7786
|
-
value:
|
|
7786
|
+
value: d,
|
|
7787
7787
|
onChange: (m) => {
|
|
7788
7788
|
c(m);
|
|
7789
7789
|
const v = `${f},${m[0] || 0}`;
|
|
@@ -7818,18 +7818,18 @@ const nd = (e) => {
|
|
|
7818
7818
|
filenameField: a
|
|
7819
7819
|
} = t, {
|
|
7820
7820
|
token: l
|
|
7821
|
-
} = sd(),
|
|
7821
|
+
} = sd(), d = s && !o ? {
|
|
7822
7822
|
backgroundColor: l.colorPrimaryBg
|
|
7823
|
-
} : void 0, c =
|
|
7823
|
+
} : void 0, c = de(null), {
|
|
7824
7824
|
setFieldValue: f,
|
|
7825
|
-
getFieldValue:
|
|
7825
|
+
getFieldValue: u
|
|
7826
7826
|
} = Y(Ne) || {}, {
|
|
7827
7827
|
t: m
|
|
7828
7828
|
} = Y(we), v = r ? ba(r) : "", p = (_) => {
|
|
7829
7829
|
i == null || i(_);
|
|
7830
7830
|
};
|
|
7831
7831
|
async function h() {
|
|
7832
|
-
const _ = await Vt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), D =
|
|
7832
|
+
const _ = await Vt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), D = u(a), E = u("name");
|
|
7833
7833
|
V.href = w, V.download = D || E, V.click();
|
|
7834
7834
|
}
|
|
7835
7835
|
async function g() {
|
|
@@ -7861,7 +7861,7 @@ const nd = (e) => {
|
|
|
7861
7861
|
}), /* @__PURE__ */ n(nt, {
|
|
7862
7862
|
type: "text",
|
|
7863
7863
|
disabled: !0,
|
|
7864
|
-
style:
|
|
7864
|
+
style: d,
|
|
7865
7865
|
value: v
|
|
7866
7866
|
})]
|
|
7867
7867
|
}), /* @__PURE__ */ n(le, {
|
|
@@ -7911,7 +7911,7 @@ function Zn(e) {
|
|
|
7911
7911
|
previousView: a
|
|
7912
7912
|
} = e, {
|
|
7913
7913
|
t: l,
|
|
7914
|
-
lang:
|
|
7914
|
+
lang: d
|
|
7915
7915
|
} = Y(we);
|
|
7916
7916
|
function c() {
|
|
7917
7917
|
const m = r.map((v, p) => /* @__PURE__ */ n(He.Item, {
|
|
@@ -7940,7 +7940,7 @@ function Zn(e) {
|
|
|
7940
7940
|
})
|
|
7941
7941
|
}, v.view_id || p));
|
|
7942
7942
|
return /* @__PURE__ */ n(He, {
|
|
7943
|
-
onClick:
|
|
7943
|
+
onClick: u,
|
|
7944
7944
|
children: /* @__PURE__ */ n(He.ItemGroup, {
|
|
7945
7945
|
title: l("viewAs"),
|
|
7946
7946
|
children: m
|
|
@@ -7950,7 +7950,7 @@ function Zn(e) {
|
|
|
7950
7950
|
function f(m) {
|
|
7951
7951
|
if (s) {
|
|
7952
7952
|
Wt({
|
|
7953
|
-
lang:
|
|
7953
|
+
lang: d,
|
|
7954
7954
|
onOk: () => {
|
|
7955
7955
|
m();
|
|
7956
7956
|
}
|
|
@@ -7959,7 +7959,7 @@ function Zn(e) {
|
|
|
7959
7959
|
}
|
|
7960
7960
|
m();
|
|
7961
7961
|
}
|
|
7962
|
-
function
|
|
7962
|
+
function u(m) {
|
|
7963
7963
|
f(() => {
|
|
7964
7964
|
const v = r.find((p) => p.view_id === parseInt(m.key));
|
|
7965
7965
|
i(v);
|
|
@@ -7978,7 +7978,7 @@ function Zn(e) {
|
|
|
7978
7978
|
borderBottomRightRadius: 0
|
|
7979
7979
|
},
|
|
7980
7980
|
onClick: () => {
|
|
7981
|
-
|
|
7981
|
+
u({
|
|
7982
7982
|
key: a == null ? void 0 : a.view_id
|
|
7983
7983
|
});
|
|
7984
7984
|
},
|
|
@@ -8012,19 +8012,19 @@ function Dt(e) {
|
|
|
8012
8012
|
disabled: a = !1
|
|
8013
8013
|
} = e;
|
|
8014
8014
|
function l() {
|
|
8015
|
-
const c = i == null ? void 0 : i.map((f,
|
|
8015
|
+
const c = i == null ? void 0 : i.map((f, u) => f.name === "divider" ? /* @__PURE__ */ n(He.Divider, {}, "divider" + u) : /* @__PURE__ */ n(He.Item, {
|
|
8016
8016
|
children: f.name
|
|
8017
8017
|
}, f.id));
|
|
8018
8018
|
return /* @__PURE__ */ n(He, {
|
|
8019
|
-
onClick:
|
|
8019
|
+
onClick: d,
|
|
8020
8020
|
children: /* @__PURE__ */ n(He.ItemGroup, {
|
|
8021
8021
|
title: r,
|
|
8022
8022
|
children: c
|
|
8023
8023
|
})
|
|
8024
8024
|
});
|
|
8025
8025
|
}
|
|
8026
|
-
function
|
|
8027
|
-
const f = i.find((
|
|
8026
|
+
function d(c) {
|
|
8027
|
+
const f = i.find((u) => isNaN(c.key) ? u.id === c.key : u.id === parseInt(c.key));
|
|
8028
8028
|
o(f);
|
|
8029
8029
|
}
|
|
8030
8030
|
return /* @__PURE__ */ n(Bt, {
|
|
@@ -8108,10 +8108,10 @@ async function Mo(e, t, r) {
|
|
|
8108
8108
|
create_uid: s,
|
|
8109
8109
|
id: a,
|
|
8110
8110
|
write_date: l,
|
|
8111
|
-
write_uid:
|
|
8111
|
+
write_uid: d
|
|
8112
8112
|
} = i;
|
|
8113
8113
|
ct(/* @__PURE__ */ P("div", {
|
|
8114
|
-
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " +
|
|
8114
|
+
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + d[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
8115
8115
|
}));
|
|
8116
8116
|
}
|
|
8117
8117
|
const ud = (e) => {
|
|
@@ -8130,7 +8130,7 @@ const ud = (e) => {
|
|
|
8130
8130
|
})]
|
|
8131
8131
|
});
|
|
8132
8132
|
return r ? l : /* @__PURE__ */ n(si, {
|
|
8133
|
-
onVisibleChange: (
|
|
8133
|
+
onVisibleChange: (d) => a(d),
|
|
8134
8134
|
visible: s,
|
|
8135
8135
|
placement: "bottom",
|
|
8136
8136
|
content: fd(e, a, o),
|
|
@@ -8145,7 +8145,7 @@ const ud = (e) => {
|
|
|
8145
8145
|
onAddNewAttachment: s,
|
|
8146
8146
|
onopenAttachmentLink: a,
|
|
8147
8147
|
onOpenAttachmentDetail: l,
|
|
8148
|
-
onListAllAttachments:
|
|
8148
|
+
onListAllAttachments: d
|
|
8149
8149
|
} = e;
|
|
8150
8150
|
return o ? /* @__PURE__ */ n(Me, {
|
|
8151
8151
|
style: {
|
|
@@ -8159,7 +8159,7 @@ const ud = (e) => {
|
|
|
8159
8159
|
},
|
|
8160
8160
|
href: "#",
|
|
8161
8161
|
onClick: () => {
|
|
8162
|
-
t(!1),
|
|
8162
|
+
t(!1), d();
|
|
8163
8163
|
},
|
|
8164
8164
|
children: [/* @__PURE__ */ n(Wn, {}), " ", Oe("listAllAttachments", r)]
|
|
8165
8165
|
}), /* @__PURE__ */ P("a", {
|
|
@@ -8233,10 +8233,10 @@ function md(e) {
|
|
|
8233
8233
|
onViewAttachmentDetails: s
|
|
8234
8234
|
} = e, {
|
|
8235
8235
|
formRef: a
|
|
8236
|
-
} = Y(Qe), [l,
|
|
8236
|
+
} = Y(Qe), [l, d] = T(!1), [c, f] = T([]), [u, m] = T(!1), {
|
|
8237
8237
|
t: v
|
|
8238
8238
|
} = Y(we), p = Le(async () => {
|
|
8239
|
-
|
|
8239
|
+
d(!0);
|
|
8240
8240
|
try {
|
|
8241
8241
|
const y = await H.getHandler().readObjects({
|
|
8242
8242
|
model: "ir.attachment",
|
|
@@ -8253,7 +8253,7 @@ function md(e) {
|
|
|
8253
8253
|
} catch (y) {
|
|
8254
8254
|
Ue(y);
|
|
8255
8255
|
}
|
|
8256
|
-
|
|
8256
|
+
d(!1);
|
|
8257
8257
|
}, t), h = Le(async (y) => {
|
|
8258
8258
|
if (y.link) {
|
|
8259
8259
|
window.open(y.link);
|
|
@@ -8293,7 +8293,7 @@ function md(e) {
|
|
|
8293
8293
|
onOpenAttachmentDetail: g
|
|
8294
8294
|
}), /* @__PURE__ */ n(Ge, {
|
|
8295
8295
|
title: v("downloadingAttachment"),
|
|
8296
|
-
open:
|
|
8296
|
+
open: u,
|
|
8297
8297
|
footer: null,
|
|
8298
8298
|
closable: !1,
|
|
8299
8299
|
centered: !0,
|
|
@@ -8313,10 +8313,10 @@ function hd({
|
|
|
8313
8313
|
formHasChanges: s,
|
|
8314
8314
|
formIsSaving: a,
|
|
8315
8315
|
currentId: l,
|
|
8316
|
-
results:
|
|
8316
|
+
results: d,
|
|
8317
8317
|
setCurrentItemIndex: c,
|
|
8318
8318
|
currentItemIndex: f,
|
|
8319
|
-
setCurrentId:
|
|
8319
|
+
setCurrentId: u,
|
|
8320
8320
|
currentModel: m,
|
|
8321
8321
|
setRemovingItem: v,
|
|
8322
8322
|
removingItem: p,
|
|
@@ -8364,10 +8364,10 @@ function hd({
|
|
|
8364
8364
|
L();
|
|
8365
8365
|
}
|
|
8366
8366
|
function N() {
|
|
8367
|
-
|
|
8367
|
+
d && d.length > f + 1 ? (c == null || c(f + 1), u == null || u(d[f + 1].id)) : d && f + 1 === d.length && (c == null || c(0), u == null || u(d[0].id));
|
|
8368
8368
|
}
|
|
8369
8369
|
function k() {
|
|
8370
|
-
|
|
8370
|
+
d && f > 0 ? (c == null || c(f - 1), u == null || u(d[f - 1].id)) : d && f === 0 && (c == null || c(d.length - 1), u == null || u(d[d.length - 1].id));
|
|
8371
8371
|
}
|
|
8372
8372
|
function j() {
|
|
8373
8373
|
Yt({
|
|
@@ -8384,10 +8384,10 @@ function hd({
|
|
|
8384
8384
|
model: m,
|
|
8385
8385
|
ids: [l]
|
|
8386
8386
|
});
|
|
8387
|
-
const L =
|
|
8387
|
+
const L = d == null ? void 0 : d.filter((ee) => ee.id !== l);
|
|
8388
8388
|
y == null || y(L);
|
|
8389
8389
|
let B = 0;
|
|
8390
|
-
f > 0 && f <=
|
|
8390
|
+
f > 0 && f <= d.length - 1 && (B = f - 1), L != null && L[B] ? (u == null || u(L == null ? void 0 : L[B].id), c == null || c(B)) : (u == null || u(void 0), c == null || c(void 0));
|
|
8391
8391
|
} catch (L) {
|
|
8392
8392
|
nn(JSON.stringify(L));
|
|
8393
8393
|
} finally {
|
|
@@ -8611,14 +8611,14 @@ const {
|
|
|
8611
8611
|
} = e, {
|
|
8612
8612
|
id: a,
|
|
8613
8613
|
readOnly: l,
|
|
8614
|
-
required:
|
|
8614
|
+
required: d
|
|
8615
8615
|
} = t, {
|
|
8616
8616
|
token: c
|
|
8617
|
-
} = pd(), f =
|
|
8617
|
+
} = pd(), f = d && !l ? {
|
|
8618
8618
|
backgroundColor: c.colorPrimaryBg
|
|
8619
|
-
} : void 0,
|
|
8619
|
+
} : void 0, u = Y(Ne), {
|
|
8620
8620
|
elementHasLostFocus: m
|
|
8621
|
-
} =
|
|
8621
|
+
} = u || {}, [v, p] = T(!1), [h, g] = T(!1);
|
|
8622
8622
|
pe(() => {
|
|
8623
8623
|
l && !v && g(!1), !r && !l && (p(!0), g(!0));
|
|
8624
8624
|
}, [v, l]);
|
|
@@ -8714,9 +8714,9 @@ const {
|
|
|
8714
8714
|
isSearching: o
|
|
8715
8715
|
} = e, {
|
|
8716
8716
|
t: s
|
|
8717
|
-
} = Y(we);
|
|
8718
|
-
function
|
|
8719
|
-
r(
|
|
8717
|
+
} = Y(we), a = de();
|
|
8718
|
+
function l(d) {
|
|
8719
|
+
r(d.id);
|
|
8720
8720
|
}
|
|
8721
8721
|
return /* @__PURE__ */ n(Ge, {
|
|
8722
8722
|
title: s("goToResourceId"),
|
|
@@ -8726,9 +8726,13 @@ const {
|
|
|
8726
8726
|
destroyOnClose: !0,
|
|
8727
8727
|
onCancel: i,
|
|
8728
8728
|
maskClosable: !1,
|
|
8729
|
+
afterOpenChange: (d) => {
|
|
8730
|
+
var c;
|
|
8731
|
+
return d && ((c = a.current) == null ? void 0 : c.focus());
|
|
8732
|
+
},
|
|
8729
8733
|
children: /* @__PURE__ */ P(ot, {
|
|
8730
8734
|
layout: "vertical",
|
|
8731
|
-
onFinish:
|
|
8735
|
+
onFinish: l,
|
|
8732
8736
|
autoComplete: "off",
|
|
8733
8737
|
children: [/* @__PURE__ */ n(ot.Item, {
|
|
8734
8738
|
name: "id",
|
|
@@ -8741,7 +8745,8 @@ const {
|
|
|
8741
8745
|
style: {
|
|
8742
8746
|
width: "100%"
|
|
8743
8747
|
},
|
|
8744
|
-
autoFocus: !0
|
|
8748
|
+
autoFocus: !0,
|
|
8749
|
+
ref: a
|
|
8745
8750
|
})
|
|
8746
8751
|
}), /* @__PURE__ */ n(Ce, {
|
|
8747
8752
|
align: "middle",
|
|
@@ -8825,7 +8830,7 @@ function bd({
|
|
|
8825
8830
|
searchParams: s,
|
|
8826
8831
|
searchVisible: a,
|
|
8827
8832
|
setSearchVisible: l,
|
|
8828
|
-
graphIsLoading:
|
|
8833
|
+
graphIsLoading: d,
|
|
8829
8834
|
previousView: c,
|
|
8830
8835
|
setPreviousView: f
|
|
8831
8836
|
} = Y(Qe);
|
|
@@ -8842,12 +8847,12 @@ function bd({
|
|
|
8842
8847
|
onClick: () => {
|
|
8843
8848
|
l == null || l(!a);
|
|
8844
8849
|
},
|
|
8845
|
-
disabled:
|
|
8850
|
+
disabled: d,
|
|
8846
8851
|
badgeNumber: s == null ? void 0 : s.length
|
|
8847
8852
|
}), /* @__PURE__ */ n(qe, {
|
|
8848
8853
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
8849
8854
|
tooltip: t("refresh"),
|
|
8850
|
-
disabled:
|
|
8855
|
+
disabled: d,
|
|
8851
8856
|
loading: !1,
|
|
8852
8857
|
onClick: () => {
|
|
8853
8858
|
e();
|
|
@@ -8855,8 +8860,8 @@ function bd({
|
|
|
8855
8860
|
}), /* @__PURE__ */ n(Zn, {
|
|
8856
8861
|
currentView: i,
|
|
8857
8862
|
availableViews: r,
|
|
8858
|
-
onChangeView: (
|
|
8859
|
-
f == null || f(i), o == null || o(
|
|
8863
|
+
onChangeView: (u) => {
|
|
8864
|
+
f == null || f(i), o == null || o(u);
|
|
8860
8865
|
},
|
|
8861
8866
|
disabled: !1,
|
|
8862
8867
|
previousView: c
|
|
@@ -8879,16 +8884,16 @@ function yn(e) {
|
|
|
8879
8884
|
currentId: s,
|
|
8880
8885
|
currentItemIndex: a,
|
|
8881
8886
|
results: l,
|
|
8882
|
-
totalItems:
|
|
8887
|
+
totalItems: d,
|
|
8883
8888
|
selectedRowItems: c
|
|
8884
8889
|
} = Y(Qe), {
|
|
8885
8890
|
t: f
|
|
8886
8891
|
} = Y(we), {
|
|
8887
|
-
token:
|
|
8892
|
+
token: u
|
|
8888
8893
|
} = xd();
|
|
8889
8894
|
function m() {
|
|
8890
8895
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8891
|
-
return s ?
|
|
8896
|
+
return s ? d === 0 ? /* @__PURE__ */ P(ne, {
|
|
8892
8897
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8893
8898
|
copyable: {
|
|
8894
8899
|
icon: /* @__PURE__ */ n(Un, {
|
|
@@ -8900,7 +8905,7 @@ function yn(e) {
|
|
|
8900
8905
|
children: s
|
|
8901
8906
|
}), ")"]
|
|
8902
8907
|
}) : /* @__PURE__ */ P(ne, {
|
|
8903
|
-
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ",
|
|
8908
|
+
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", d, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8904
8909
|
copyable: !0,
|
|
8905
8910
|
children: s
|
|
8906
8911
|
}), ")"]
|
|
@@ -8934,8 +8939,8 @@ function yn(e) {
|
|
|
8934
8939
|
className: "shadow-md",
|
|
8935
8940
|
style: {
|
|
8936
8941
|
padding: "1em",
|
|
8937
|
-
borderRadius:
|
|
8938
|
-
backgroundColor:
|
|
8942
|
+
borderRadius: u.borderRadius,
|
|
8943
|
+
backgroundColor: u.colorPrimaryBg
|
|
8939
8944
|
},
|
|
8940
8945
|
align: "middle",
|
|
8941
8946
|
children: [/* @__PURE__ */ P(le, {
|
|
@@ -8968,9 +8973,9 @@ const Sd = (e) => {
|
|
|
8968
8973
|
domain: s,
|
|
8969
8974
|
formView: a,
|
|
8970
8975
|
treeView: l
|
|
8971
|
-
} = e,
|
|
8976
|
+
} = e, d = de(), c = Y(Qe), {
|
|
8972
8977
|
setResults: f = void 0,
|
|
8973
|
-
setCurrentItemIndex:
|
|
8978
|
+
setCurrentItemIndex: u = void 0,
|
|
8974
8979
|
currentId: m = void 0,
|
|
8975
8980
|
results: v = void 0,
|
|
8976
8981
|
setSelectedRowItems: p = void 0,
|
|
@@ -8991,7 +8996,7 @@ const Sd = (e) => {
|
|
|
8991
8996
|
} = c || {}, [R, F] = T(!0);
|
|
8992
8997
|
pe(() => {
|
|
8993
8998
|
var j;
|
|
8994
|
-
(j =
|
|
8999
|
+
(j = d.current) == null || j.refresh();
|
|
8995
9000
|
}, [C]), pe(() => {
|
|
8996
9001
|
t.view_id !== $.view_id && F(!0);
|
|
8997
9002
|
}, [$]);
|
|
@@ -9015,7 +9020,7 @@ const Sd = (e) => {
|
|
|
9015
9020
|
treeView: l,
|
|
9016
9021
|
sorter: O,
|
|
9017
9022
|
setSorter: _,
|
|
9018
|
-
setCurrentItemIndex:
|
|
9023
|
+
setCurrentItemIndex: u,
|
|
9019
9024
|
setResultsActionView: f,
|
|
9020
9025
|
resultsActionView: v,
|
|
9021
9026
|
domain: s,
|
|
@@ -9029,7 +9034,7 @@ const Sd = (e) => {
|
|
|
9029
9034
|
title: t.name,
|
|
9030
9035
|
children: /* @__PURE__ */ n(bd, {
|
|
9031
9036
|
refreshGraph: () => {
|
|
9032
|
-
|
|
9037
|
+
d.current.refresh();
|
|
9033
9038
|
}
|
|
9034
9039
|
})
|
|
9035
9040
|
}), /* @__PURE__ */ n(go, {
|
|
@@ -9051,7 +9056,7 @@ const Sd = (e) => {
|
|
|
9051
9056
|
searchValues: S,
|
|
9052
9057
|
showLimitOptions: !1
|
|
9053
9058
|
}), k ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(gn, {
|
|
9054
|
-
ref:
|
|
9059
|
+
ref: d,
|
|
9055
9060
|
view_id: t.view_id,
|
|
9056
9061
|
model: i,
|
|
9057
9062
|
context: o,
|
|
@@ -9069,10 +9074,10 @@ const Sd = (e) => {
|
|
|
9069
9074
|
domain: s,
|
|
9070
9075
|
formView: a,
|
|
9071
9076
|
context: l,
|
|
9072
|
-
defaultValues:
|
|
9077
|
+
defaultValues: d,
|
|
9073
9078
|
forcedValues: c,
|
|
9074
9079
|
results: f,
|
|
9075
|
-
setResults:
|
|
9080
|
+
setResults: u,
|
|
9076
9081
|
setCurrentItemIndex: m
|
|
9077
9082
|
} = e;
|
|
9078
9083
|
return t ? /* @__PURE__ */ P(ne, {
|
|
@@ -9084,14 +9089,14 @@ const Sd = (e) => {
|
|
|
9084
9089
|
rootForm: !0,
|
|
9085
9090
|
ref: r,
|
|
9086
9091
|
model: i,
|
|
9087
|
-
defaultValues:
|
|
9092
|
+
defaultValues: d,
|
|
9088
9093
|
forcedValues: c,
|
|
9089
9094
|
formView: a,
|
|
9090
9095
|
actionDomain: s,
|
|
9091
9096
|
id: o,
|
|
9092
9097
|
parentContext: l,
|
|
9093
9098
|
onSubmitSucceed: (v, p) => {
|
|
9094
|
-
f.findIndex((g) => g.id === v) === -1 && (f.push(p),
|
|
9099
|
+
f.findIndex((g) => g.id === v) === -1 && (f.push(p), u(f), m(f.length - 1));
|
|
9095
9100
|
}
|
|
9096
9101
|
})]
|
|
9097
9102
|
}) : null;
|
|
@@ -9104,7 +9109,7 @@ function Fd(e) {
|
|
|
9104
9109
|
} = e, {
|
|
9105
9110
|
t: o
|
|
9106
9111
|
} = Y(we), [s] = ot.useForm(), [a, l] = T(!1);
|
|
9107
|
-
function
|
|
9112
|
+
function d(f) {
|
|
9108
9113
|
t(f.search);
|
|
9109
9114
|
}
|
|
9110
9115
|
pe(() => {
|
|
@@ -9119,7 +9124,7 @@ function Fd(e) {
|
|
|
9119
9124
|
}
|
|
9120
9125
|
return /* @__PURE__ */ n(ot, {
|
|
9121
9126
|
form: s,
|
|
9122
|
-
onFinish:
|
|
9127
|
+
onFinish: d,
|
|
9123
9128
|
autoComplete: "off",
|
|
9124
9129
|
children: /* @__PURE__ */ P(Ce, {
|
|
9125
9130
|
align: "middle",
|
|
@@ -9176,10 +9181,10 @@ function Id(e) {
|
|
|
9176
9181
|
setRemovingItem: s,
|
|
9177
9182
|
removingItem: a,
|
|
9178
9183
|
duplicatingItem: l,
|
|
9179
|
-
setDuplicatingItem:
|
|
9184
|
+
setDuplicatingItem: d,
|
|
9180
9185
|
currentModel: c,
|
|
9181
9186
|
searchTreeRef: f,
|
|
9182
|
-
setCurrentId:
|
|
9187
|
+
setCurrentId: u,
|
|
9183
9188
|
setCurrentItemIndex: m,
|
|
9184
9189
|
searchParams: v,
|
|
9185
9190
|
searchVisible: p,
|
|
@@ -9219,7 +9224,7 @@ function Id(e) {
|
|
|
9219
9224
|
s == null || s(!0), await H.getHandler().delete({
|
|
9220
9225
|
model: c,
|
|
9221
9226
|
ids: o.map((L) => L.id)
|
|
9222
|
-
}),
|
|
9227
|
+
}), u == null || u(void 0), m == null || m(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9223
9228
|
} catch (L) {
|
|
9224
9229
|
Ue(L);
|
|
9225
9230
|
} finally {
|
|
@@ -9229,7 +9234,7 @@ function Id(e) {
|
|
|
9229
9234
|
async function q() {
|
|
9230
9235
|
var U;
|
|
9231
9236
|
try {
|
|
9232
|
-
|
|
9237
|
+
d == null || d(!0);
|
|
9233
9238
|
const L = o[0].id;
|
|
9234
9239
|
await H.getHandler().duplicate({
|
|
9235
9240
|
id: L,
|
|
@@ -9241,7 +9246,7 @@ function Id(e) {
|
|
|
9241
9246
|
} catch (L) {
|
|
9242
9247
|
Ue(L);
|
|
9243
9248
|
} finally {
|
|
9244
|
-
|
|
9249
|
+
d == null || d(!1);
|
|
9245
9250
|
}
|
|
9246
9251
|
}
|
|
9247
9252
|
function W(U) {
|
|
@@ -9436,10 +9441,10 @@ const _d = (e) => {
|
|
|
9436
9441
|
formView: s,
|
|
9437
9442
|
treeView: a,
|
|
9438
9443
|
domain: l,
|
|
9439
|
-
setCurrentItemIndex:
|
|
9444
|
+
setCurrentItemIndex: d,
|
|
9440
9445
|
results: c,
|
|
9441
9446
|
setCurrentId: f,
|
|
9442
|
-
setCurrentView:
|
|
9447
|
+
setCurrentView: u,
|
|
9443
9448
|
availableViews: m,
|
|
9444
9449
|
searchTreeNameSearch: v
|
|
9445
9450
|
} = e, {
|
|
@@ -9468,9 +9473,9 @@ const _d = (e) => {
|
|
|
9468
9473
|
} = g;
|
|
9469
9474
|
f(y);
|
|
9470
9475
|
const O = c.findIndex((w) => w.id === y);
|
|
9471
|
-
h == null || h(p),
|
|
9476
|
+
h == null || h(p), d(O);
|
|
9472
9477
|
const _ = m.find((w) => w.type === "form");
|
|
9473
|
-
|
|
9478
|
+
u(_);
|
|
9474
9479
|
}
|
|
9475
9480
|
})]
|
|
9476
9481
|
}) : null;
|
|
@@ -9543,7 +9548,7 @@ function Ad() {
|
|
|
9543
9548
|
const Rd = (e) => {
|
|
9544
9549
|
const {
|
|
9545
9550
|
dashboardData: t
|
|
9546
|
-
} = e, r =
|
|
9551
|
+
} = e, r = de(), i = Y(st), {
|
|
9547
9552
|
openShortcut: o
|
|
9548
9553
|
} = i || {};
|
|
9549
9554
|
return t ? /* @__PURE__ */ P(Dd, {
|
|
@@ -9585,10 +9590,10 @@ function Md(e, t) {
|
|
|
9585
9590
|
views: s,
|
|
9586
9591
|
title: a,
|
|
9587
9592
|
setCanWeClose: l,
|
|
9588
|
-
tabKey:
|
|
9593
|
+
tabKey: d,
|
|
9589
9594
|
initialView: c,
|
|
9590
9595
|
formDefaultValues: f,
|
|
9591
|
-
formForcedValues:
|
|
9596
|
+
formForcedValues: u = {},
|
|
9592
9597
|
res_id: m = !1,
|
|
9593
9598
|
action_id: v,
|
|
9594
9599
|
action_type: p,
|
|
@@ -9596,7 +9601,7 @@ function Md(e, t) {
|
|
|
9596
9601
|
limit: g
|
|
9597
9602
|
} = e, [y, O] = T(), [_, w] = T([]), [V, D] = T(!0), E = m || void 0, [b, C] = T(E), [S, x] = T([]), [$, R] = T(), [F, A] = T([]), [M, I] = T(), [N, k] = T(0), [j, q] = T(!1), [W, z] = T(!1), [U, L] = T(), {
|
|
9598
9603
|
t: B
|
|
9599
|
-
} = Y(we), ee =
|
|
9604
|
+
} = Y(we), ee = de(), Z = de(), ie = Y(st), {
|
|
9600
9605
|
setCurrentView: Q,
|
|
9601
9606
|
setCurrentId: J,
|
|
9602
9607
|
tabs: fe,
|
|
@@ -9620,12 +9625,12 @@ function Md(e, t) {
|
|
|
9620
9625
|
D(!0);
|
|
9621
9626
|
const te = [], Fe = [];
|
|
9622
9627
|
for (const me of s) {
|
|
9623
|
-
const [Te,
|
|
9624
|
-
|
|
9628
|
+
const [Te, ue] = me;
|
|
9629
|
+
ue !== "dashboard" ? Fe.push({
|
|
9625
9630
|
viewTuple: me,
|
|
9626
9631
|
promise: H.getHandler().getView({
|
|
9627
9632
|
model: i,
|
|
9628
|
-
type:
|
|
9633
|
+
type: ue,
|
|
9629
9634
|
id: Te,
|
|
9630
9635
|
context: o
|
|
9631
9636
|
})
|
|
@@ -9638,7 +9643,7 @@ function Md(e, t) {
|
|
|
9638
9643
|
if (!me)
|
|
9639
9644
|
continue;
|
|
9640
9645
|
const [, Te] = me.viewTuple;
|
|
9641
|
-
let
|
|
9646
|
+
let ue = me.info;
|
|
9642
9647
|
switch (Te) {
|
|
9643
9648
|
case "dashboard": {
|
|
9644
9649
|
const Xe = s.find((at) => {
|
|
@@ -9665,14 +9670,14 @@ function Md(e, t) {
|
|
|
9665
9670
|
}
|
|
9666
9671
|
case "form": {
|
|
9667
9672
|
te.push({
|
|
9668
|
-
...
|
|
9673
|
+
...ue,
|
|
9669
9674
|
type: Te
|
|
9670
9675
|
});
|
|
9671
9676
|
break;
|
|
9672
9677
|
}
|
|
9673
9678
|
case "tree": {
|
|
9674
9679
|
te.push({
|
|
9675
|
-
...
|
|
9680
|
+
...ue,
|
|
9676
9681
|
isExpandable: h,
|
|
9677
9682
|
type: Te
|
|
9678
9683
|
});
|
|
@@ -9680,7 +9685,7 @@ function Md(e, t) {
|
|
|
9680
9685
|
}
|
|
9681
9686
|
case "graph": {
|
|
9682
9687
|
te.push({
|
|
9683
|
-
...
|
|
9688
|
+
...ue,
|
|
9684
9689
|
type: Te
|
|
9685
9690
|
});
|
|
9686
9691
|
break;
|
|
@@ -9689,22 +9694,22 @@ function Md(e, t) {
|
|
|
9689
9694
|
}
|
|
9690
9695
|
let ce;
|
|
9691
9696
|
!c && te.find((me) => me.type === "tree") ? ce = te.find((Te) => Te.type === "tree") : c ? ce = te.find((Te) => c.id ? Te.type === c.type && Te.view_id === c.id : Te.type === c.type) : ce = te.find((Te) => Te.type === "form"), ce || (Ue(`Error determining the first view to show for model ${i}.
|
|
9692
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), _e == null || _e(
|
|
9697
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), _e == null || _e(d)), ge(ce), w(te), D(!1);
|
|
9693
9698
|
};
|
|
9694
9699
|
l({
|
|
9695
|
-
tabKey:
|
|
9700
|
+
tabKey: d,
|
|
9696
9701
|
canWeClose: Se
|
|
9697
9702
|
}), pe(() => {
|
|
9698
9703
|
const te = _.find((Ee) => Ee.type === "tree"), Fe = _.find((Ee) => c.id ? Ee.type === c.type && Ee.view_id === c.id : Ee.type === c.type);
|
|
9699
9704
|
ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
|
|
9700
9705
|
}, [i, s, m]), pe(() => {
|
|
9701
|
-
be ===
|
|
9706
|
+
be === d && (J == null || J(b), Q == null || Q(y));
|
|
9702
9707
|
}, [fe, be]);
|
|
9703
9708
|
async function Se() {
|
|
9704
9709
|
return y && y.type === "form" ? await ee.current.cancelUnsavedChanges() : !0;
|
|
9705
9710
|
}
|
|
9706
9711
|
async function De() {
|
|
9707
|
-
be ===
|
|
9712
|
+
be === d && (y.type === "form" && !await ee.current.cancelUnsavedChanges() || q(!0));
|
|
9708
9713
|
}
|
|
9709
9714
|
async function Ve(te) {
|
|
9710
9715
|
var me;
|
|
@@ -9757,7 +9762,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9757
9762
|
context: o,
|
|
9758
9763
|
domain: r,
|
|
9759
9764
|
defaultValues: f,
|
|
9760
|
-
forcedValues:
|
|
9765
|
+
forcedValues: u,
|
|
9761
9766
|
results: F,
|
|
9762
9767
|
setResults: A,
|
|
9763
9768
|
setCurrentItemIndex: R
|
|
@@ -9858,10 +9863,10 @@ async function Ed({
|
|
|
9858
9863
|
values: r,
|
|
9859
9864
|
context: { ...t, ...a }
|
|
9860
9865
|
}) : [], {
|
|
9861
|
-
res_model:
|
|
9866
|
+
res_model: d,
|
|
9862
9867
|
views: c,
|
|
9863
9868
|
name: f,
|
|
9864
|
-
limit:
|
|
9869
|
+
limit: u,
|
|
9865
9870
|
view_type: m
|
|
9866
9871
|
} = s, v = m === "tree", p = [];
|
|
9867
9872
|
for (const O of c) {
|
|
@@ -9870,7 +9875,7 @@ async function Ed({
|
|
|
9870
9875
|
p.push(O);
|
|
9871
9876
|
else {
|
|
9872
9877
|
const { view_id: V } = await H.getHandler().getView({
|
|
9873
|
-
model:
|
|
9878
|
+
model: d,
|
|
9874
9879
|
type: w,
|
|
9875
9880
|
id: _,
|
|
9876
9881
|
context: { ...t, ...a }
|
|
@@ -9885,11 +9890,11 @@ async function Ed({
|
|
|
9885
9890
|
actionType: i,
|
|
9886
9891
|
key: Jr(),
|
|
9887
9892
|
views: c,
|
|
9888
|
-
model:
|
|
9893
|
+
model: d,
|
|
9889
9894
|
context: { ...t, ...a },
|
|
9890
9895
|
domain: l,
|
|
9891
9896
|
initialView: y,
|
|
9892
|
-
limit:
|
|
9897
|
+
limit: u,
|
|
9893
9898
|
treeExpandable: v
|
|
9894
9899
|
};
|
|
9895
9900
|
}
|
|
@@ -10003,7 +10008,7 @@ function jd(e) {
|
|
|
10003
10008
|
domain: s = [],
|
|
10004
10009
|
visible: a = !0,
|
|
10005
10010
|
parentContext: l = {}
|
|
10006
|
-
} = e, [
|
|
10011
|
+
} = e, [d, c] = T(!1), [f, u] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [O, _] = T(1), [w, V] = T(0), D = de(Bd), E = de([]), [b, C] = T(0), [S, x] = T([]), [$, R] = T(void 0), [F, A] = T(), [M, I] = T(), [N, k] = T(), [j, q] = T(!1), W = de([]), z = (J) => {
|
|
10007
10012
|
q(!0), _(J), V((J - 1) * D.current);
|
|
10008
10013
|
}, U = async () => {
|
|
10009
10014
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
@@ -10046,9 +10051,9 @@ function jd(e) {
|
|
|
10046
10051
|
!f || a && L();
|
|
10047
10052
|
}, [O, w, f, a]);
|
|
10048
10053
|
const B = async (J) => {
|
|
10049
|
-
|
|
10054
|
+
u(!1), c(!0), k(void 0);
|
|
10050
10055
|
try {
|
|
10051
|
-
J === "action" ? await ee() : await Z(),
|
|
10056
|
+
J === "action" ? await ee() : await Z(), u(!0);
|
|
10052
10057
|
} catch (fe) {
|
|
10053
10058
|
k(fe);
|
|
10054
10059
|
} finally {
|
|
@@ -10129,7 +10134,7 @@ function jd(e) {
|
|
|
10129
10134
|
message: N,
|
|
10130
10135
|
type: "error",
|
|
10131
10136
|
banner: !0
|
|
10132
|
-
}) :
|
|
10137
|
+
}) : d ? /* @__PURE__ */ n(Me, {
|
|
10133
10138
|
style: {
|
|
10134
10139
|
padding: "2rem"
|
|
10135
10140
|
}
|
|
@@ -10169,11 +10174,11 @@ function Yd(e, t) {
|
|
|
10169
10174
|
context: i = {},
|
|
10170
10175
|
id: o,
|
|
10171
10176
|
configAction: s
|
|
10172
|
-
} = e, [a, l] = T([]), [
|
|
10177
|
+
} = e, [a, l] = T([]), [d, c] = T(!1), [f, u] = T(), {
|
|
10173
10178
|
setIsLoading: m,
|
|
10174
10179
|
openAction: v,
|
|
10175
10180
|
moveItemsEnabled: p
|
|
10176
|
-
} = Y(Xn), h =
|
|
10181
|
+
} = Y(Xn), h = de(), g = de();
|
|
10177
10182
|
pe(() => {
|
|
10178
10183
|
y();
|
|
10179
10184
|
}, [r, o, i]), xt(t, () => ({
|
|
@@ -10183,7 +10188,7 @@ function Yd(e, t) {
|
|
|
10183
10188
|
configDashboard: E
|
|
10184
10189
|
}));
|
|
10185
10190
|
async function y() {
|
|
10186
|
-
c(!0), m(!0),
|
|
10191
|
+
c(!0), m(!0), u(void 0);
|
|
10187
10192
|
try {
|
|
10188
10193
|
const b = await O(), C = await w(b), S = b.fields[On].relation, x = C[On].items;
|
|
10189
10194
|
g.current = b.fields;
|
|
@@ -10194,7 +10199,7 @@ function Yd(e, t) {
|
|
|
10194
10199
|
}), R = await V($);
|
|
10195
10200
|
l(R), c(!1), m(!1);
|
|
10196
10201
|
} catch (b) {
|
|
10197
|
-
|
|
10202
|
+
u(JSON.stringify(b));
|
|
10198
10203
|
}
|
|
10199
10204
|
}
|
|
10200
10205
|
async function O() {
|
|
@@ -10308,7 +10313,7 @@ function Yd(e, t) {
|
|
|
10308
10313
|
message: f,
|
|
10309
10314
|
type: "error",
|
|
10310
10315
|
banner: !0
|
|
10311
|
-
})) :
|
|
10316
|
+
})) : d ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Ld, {
|
|
10312
10317
|
onPositionItemsChanged: D,
|
|
10313
10318
|
children: a.map((b, C) => {
|
|
10314
10319
|
const {
|
|
@@ -10454,7 +10459,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10454
10459
|
onChange: i
|
|
10455
10460
|
} = e, {
|
|
10456
10461
|
items: o = []
|
|
10457
|
-
} = t || {}, s = o.filter((b) => b.operation !== "pendingRemove").map((b) => b.id), [a, l] = T([]), [
|
|
10462
|
+
} = t || {}, s = o.filter((b) => b.operation !== "pendingRemove").map((b) => b.id), [a, l] = T([]), [d, c] = T(), [f, u] = T(!1), {
|
|
10458
10463
|
relation: m,
|
|
10459
10464
|
context: v,
|
|
10460
10465
|
readOnly: p,
|
|
@@ -10472,7 +10477,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10472
10477
|
});
|
|
10473
10478
|
};
|
|
10474
10479
|
async function w() {
|
|
10475
|
-
|
|
10480
|
+
u(!0);
|
|
10476
10481
|
let b = [];
|
|
10477
10482
|
if (r.domain) {
|
|
10478
10483
|
const C = await H.getHandler().evalDomain({
|
|
@@ -10507,12 +10512,12 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10507
10512
|
} catch (C) {
|
|
10508
10513
|
c(C);
|
|
10509
10514
|
} finally {
|
|
10510
|
-
|
|
10515
|
+
u(!1);
|
|
10511
10516
|
}
|
|
10512
|
-
if (
|
|
10517
|
+
if (d)
|
|
10513
10518
|
return /* @__PURE__ */ n(Ze, {
|
|
10514
10519
|
className: "mt-10",
|
|
10515
|
-
message:
|
|
10520
|
+
message: d,
|
|
10516
10521
|
type: "error",
|
|
10517
10522
|
banner: !0
|
|
10518
10523
|
});
|
|
@@ -10611,11 +10616,11 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10611
10616
|
selectionValues: o,
|
|
10612
10617
|
readOnly: s,
|
|
10613
10618
|
direction: a
|
|
10614
|
-
} = t, l = Array.from(o.entries()),
|
|
10615
|
-
const [f,
|
|
10619
|
+
} = t, l = Array.from(o.entries()), d = l && l.length && l.map((c) => {
|
|
10620
|
+
const [f, u] = c;
|
|
10616
10621
|
return /* @__PURE__ */ n(nr, {
|
|
10617
10622
|
value: f,
|
|
10618
|
-
children:
|
|
10623
|
+
children: u
|
|
10619
10624
|
}, f);
|
|
10620
10625
|
});
|
|
10621
10626
|
return /* @__PURE__ */ n(nr.Group, {
|
|
@@ -10624,7 +10629,7 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10624
10629
|
value: i,
|
|
10625
10630
|
children: /* @__PURE__ */ n(Ye, {
|
|
10626
10631
|
direction: a,
|
|
10627
|
-
children:
|
|
10632
|
+
children: d
|
|
10628
10633
|
})
|
|
10629
10634
|
});
|
|
10630
10635
|
}, Xd = (e) => {
|
|
@@ -10679,13 +10684,13 @@ const Wd = bt(Yd), Ud = (e) => {
|
|
|
10679
10684
|
selectionValues: i,
|
|
10680
10685
|
errorField: o
|
|
10681
10686
|
} = t, s = Y(Ne), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(r);
|
|
10682
|
-
let
|
|
10683
|
-
return o && (c = s.getFieldValue(o), c && (
|
|
10687
|
+
let d = "process", c = "";
|
|
10688
|
+
return o && (c = s.getFieldValue(o), c && (d = "error")), /* @__PURE__ */ n(rr, {
|
|
10684
10689
|
current: l,
|
|
10685
|
-
status:
|
|
10686
|
-
children: a.map((f,
|
|
10690
|
+
status: d,
|
|
10691
|
+
children: a.map((f, u) => /* @__PURE__ */ n(rr.Step, {
|
|
10687
10692
|
title: f[1],
|
|
10688
|
-
description:
|
|
10693
|
+
description: u === l && d === "error" ? c : null
|
|
10689
10694
|
}))
|
|
10690
10695
|
});
|
|
10691
10696
|
}, nu = (e) => {
|
|
@@ -10730,22 +10735,22 @@ function su(e, t) {
|
|
|
10730
10735
|
globalValues: i = {},
|
|
10731
10736
|
rootContext: o = {},
|
|
10732
10737
|
lang: s
|
|
10733
|
-
} = e, [a, l] = T("welcome"), [
|
|
10738
|
+
} = e, [a, l] = T("welcome"), [d, c] = T([{
|
|
10734
10739
|
title: Oe("welcome", s),
|
|
10735
10740
|
key: "welcome",
|
|
10736
10741
|
closable: !0,
|
|
10737
10742
|
content: /* @__PURE__ */ n(iu, {})
|
|
10738
|
-
}]), f =
|
|
10743
|
+
}]), f = de(/* @__PURE__ */ new Map()), u = de();
|
|
10739
10744
|
xt(t, () => ({
|
|
10740
10745
|
retrieveAndOpenAction: p,
|
|
10741
10746
|
openShortcut: y
|
|
10742
10747
|
}));
|
|
10743
10748
|
function m(w) {
|
|
10744
10749
|
if (w === a) {
|
|
10745
|
-
const V =
|
|
10746
|
-
|
|
10750
|
+
const V = d.findIndex((D) => D.key === w);
|
|
10751
|
+
d[V - 1] && l(d[V - 1].key), d[V + 1] && l(d[V + 1].key);
|
|
10747
10752
|
}
|
|
10748
|
-
c(
|
|
10753
|
+
c(d.filter((V) => V.key !== w)), f.current.delete(w);
|
|
10749
10754
|
}
|
|
10750
10755
|
function v({
|
|
10751
10756
|
tabKey: w,
|
|
@@ -10849,8 +10854,8 @@ function su(e, t) {
|
|
|
10849
10854
|
key: D,
|
|
10850
10855
|
action: E
|
|
10851
10856
|
}) {
|
|
10852
|
-
let b = [...
|
|
10853
|
-
|
|
10857
|
+
let b = [...d];
|
|
10858
|
+
d.length === 1 && d[0].key === "welcome" && (b = [...d.filter((C) => C.key !== "welcome")]), c([...b, {
|
|
10854
10859
|
title: w,
|
|
10855
10860
|
key: D,
|
|
10856
10861
|
closable: !0,
|
|
@@ -11036,7 +11041,7 @@ function su(e, t) {
|
|
|
11036
11041
|
...V
|
|
11037
11042
|
}
|
|
11038
11043
|
});
|
|
11039
|
-
|
|
11044
|
+
u.current.openActionModal({
|
|
11040
11045
|
domain: w,
|
|
11041
11046
|
model: D,
|
|
11042
11047
|
formView: k,
|
|
@@ -11093,7 +11098,7 @@ function su(e, t) {
|
|
|
11093
11098
|
openAction: _,
|
|
11094
11099
|
openRelate: g,
|
|
11095
11100
|
openDefaultActionForModel: O,
|
|
11096
|
-
tabs:
|
|
11101
|
+
tabs: d,
|
|
11097
11102
|
activeKey: a,
|
|
11098
11103
|
onRemoveTab: async (w) => {
|
|
11099
11104
|
const V = f.current.get(w);
|
|
@@ -11103,7 +11108,7 @@ function su(e, t) {
|
|
|
11103
11108
|
l(w);
|
|
11104
11109
|
},
|
|
11105
11110
|
children: /* @__PURE__ */ n(fl, {
|
|
11106
|
-
ref:
|
|
11111
|
+
ref: u,
|
|
11107
11112
|
globalValues: i,
|
|
11108
11113
|
children: r
|
|
11109
11114
|
})
|
|
@@ -11170,8 +11175,8 @@ function lu(e) {
|
|
|
11170
11175
|
style: {
|
|
11171
11176
|
color: a.colorPrimaryActive
|
|
11172
11177
|
},
|
|
11173
|
-
onClick: (
|
|
11174
|
-
|
|
11178
|
+
onClick: (d) => {
|
|
11179
|
+
d.stopPropagation(), r(i);
|
|
11175
11180
|
}
|
|
11176
11181
|
})
|
|
11177
11182
|
})]
|
|
@@ -11226,7 +11231,7 @@ const {
|
|
|
11226
11231
|
onCheckIsFavourite: r,
|
|
11227
11232
|
onAddFavourite: i,
|
|
11228
11233
|
onRemoveFavourite: o
|
|
11229
|
-
} = e, [s, a] = T(!1), [l,
|
|
11234
|
+
} = e, [s, a] = T(!1), [l, d] = T(!1), [c, f] = T([]), [u, m] = T(!0), [v, p] = T(), {
|
|
11230
11235
|
t: h
|
|
11231
11236
|
} = Y(we) || {}, {
|
|
11232
11237
|
token: g
|
|
@@ -11258,10 +11263,10 @@ const {
|
|
|
11258
11263
|
const {
|
|
11259
11264
|
key: I
|
|
11260
11265
|
} = M, N = c.find((k) => k.id === Number(I));
|
|
11261
|
-
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && O(N),
|
|
11266
|
+
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && O(N), d(!1));
|
|
11262
11267
|
}
|
|
11263
11268
|
function S(M) {
|
|
11264
|
-
M && b(),
|
|
11269
|
+
M && b(), d(M);
|
|
11265
11270
|
}
|
|
11266
11271
|
async function x() {
|
|
11267
11272
|
if (!V)
|
|
@@ -11286,7 +11291,7 @@ const {
|
|
|
11286
11291
|
q !== !1 && p(q), a(q !== !1);
|
|
11287
11292
|
}
|
|
11288
11293
|
async function $() {
|
|
11289
|
-
|
|
11294
|
+
d(!1), E == null || E({
|
|
11290
11295
|
model: "ir.ui.view_sc"
|
|
11291
11296
|
});
|
|
11292
11297
|
}
|
|
@@ -11320,7 +11325,7 @@ const {
|
|
|
11320
11325
|
})
|
|
11321
11326
|
})
|
|
11322
11327
|
})]
|
|
11323
|
-
}), /* @__PURE__ */ n(He.Divider, {}),
|
|
11328
|
+
}), /* @__PURE__ */ n(He.Divider, {}), u ? /* @__PURE__ */ n(Me, {
|
|
11324
11329
|
style: {
|
|
11325
11330
|
padding: "1rem"
|
|
11326
11331
|
}
|