@gisce/react-ooui 1.4.0 → 1.4.1
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 $e, forwardRef as wt, useImperativeHandle as bt } 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 Le, Divider as ln, Space as Ye, Input as nt, Select as xt, 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 Vt, Field as In, Tree as Rr, Reference as ci, Selection as $n, Many2one as kr, Boolean as di, Container as ui, parseContext as vt, 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 Vt({
|
|
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(Le, {}) : /* @__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(Rt, {}),
|
|
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 : xt, {
|
|
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(xt)`
|
|
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 Dt(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 It({
|
|
|
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 = Ot(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
|
Ct(() => {
|
|
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(Le, {}) : /* @__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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 Vt({ string: "" }));
|
|
2165
2165
|
}
|
|
2166
2166
|
}), i;
|
|
@@ -2194,13 +2194,13 @@ const kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
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 = $e((se) => {
|
|
2375
2375
|
g == null || g([...se]), q([...se]);
|
|
2376
2376
|
}, []), ie = $e(() => y || j, [y, j]), Q = $e(async () => {
|
|
2377
2377
|
const se = await H.getHandler().nameSearch({
|
|
@@ -2382,13 +2382,13 @@ const kt = ({
|
|
|
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 } = Ot(
|
|
2385
|
+
const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = Ot(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 kt = ({
|
|
|
2396
2396
|
const Fe = te.map((ce) => ce.id), Me = v !== void 0 ? It({
|
|
2397
2397
|
resultsToSort: te,
|
|
2398
2398
|
sorter: v,
|
|
2399
|
-
fields: { ...
|
|
2399
|
+
fields: { ...u.fields, ...m.fields }
|
|
2400
2400
|
}) : [...ee.current];
|
|
2401
2401
|
Z(Me), 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 = $e(
|
|
2418
2418
|
async (se) => {
|
|
2419
|
-
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(
|
|
2419
|
+
const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(u), te = {};
|
|
2420
2420
|
je && (te.colors = je), We && (te.status = We);
|
|
2421
2421
|
const { totalItems: Fe, results: Me, 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 kt = ({
|
|
|
2431
2431
|
const me = v !== void 0 ? It({
|
|
2432
2432
|
resultsToSort: Me,
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
2463
2463
|
), fe = $e(
|
|
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 kt = ({
|
|
|
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 kt = ({
|
|
|
2489
2489
|
C,
|
|
2490
2490
|
a,
|
|
2491
2491
|
v,
|
|
2492
|
-
|
|
2492
|
+
u
|
|
2493
2493
|
]
|
|
2494
2494
|
), be = $e(
|
|
2495
2495
|
(se) => {
|
|
@@ -2497,11 +2497,11 @@ const kt = ({
|
|
|
2497
2497
|
const Se = se !== void 0 ? It({
|
|
2498
2498
|
resultsToSort: ie(),
|
|
2499
2499
|
sorter: se,
|
|
2500
|
-
fields: { ...
|
|
2500
|
+
fields: { ...u.fields, ...m.fields }
|
|
2501
2501
|
}) : [...ee.current];
|
|
2502
2502
|
Z(Se);
|
|
2503
2503
|
},
|
|
2504
|
-
[p, ie,
|
|
2504
|
+
[p, ie, u, m, Z]
|
|
2505
2505
|
), Ee = $e(
|
|
2506
2506
|
(se) => {
|
|
2507
2507
|
const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
|
|
@@ -2541,15 +2541,15 @@ const kt = ({
|
|
|
2541
2541
|
w
|
|
2542
2542
|
]), ge = $e(
|
|
2543
2543
|
async (se) => {
|
|
2544
|
-
const Se = se[(
|
|
2544
|
+
const Se = se[(u == null ? void 0 : u.field_parent) || "child_id"], De = await H.getHandler().readObjects({
|
|
2545
2545
|
model: t,
|
|
2546
2546
|
ids: Se,
|
|
2547
|
-
fields:
|
|
2547
|
+
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
2548
2548
|
context: c
|
|
2549
2549
|
});
|
|
2550
|
-
return Z([...ie(), ...De]), lo(Ot(
|
|
2550
|
+
return Z([...ie(), ...De]), lo(Ot(u), De);
|
|
2551
2551
|
},
|
|
2552
|
-
[
|
|
2552
|
+
[u, t, c, ie, Z]
|
|
2553
2553
|
);
|
|
2554
2554
|
return {
|
|
2555
2555
|
submit: Ee,
|
|
@@ -2578,10 +2578,10 @@ const kt = ({
|
|
|
2578
2578
|
availableViews: s,
|
|
2579
2579
|
formRef: a,
|
|
2580
2580
|
searchTreeRef: l,
|
|
2581
|
-
onNewClicked:
|
|
2581
|
+
onNewClicked: d,
|
|
2582
2582
|
currentId: c,
|
|
2583
2583
|
setCurrentId: f,
|
|
2584
|
-
setResults:
|
|
2584
|
+
setResults: u,
|
|
2585
2585
|
results: m,
|
|
2586
2586
|
currentItemIndex: v,
|
|
2587
2587
|
setCurrentItemIndex: p,
|
|
@@ -2623,13 +2623,13 @@ const kt = ({
|
|
|
2623
2623
|
formRef: a,
|
|
2624
2624
|
searchTreeRef: l,
|
|
2625
2625
|
onFormSave: se,
|
|
2626
|
-
onNewClicked:
|
|
2626
|
+
onNewClicked: d,
|
|
2627
2627
|
currentId: c,
|
|
2628
2628
|
setCurrentId: f,
|
|
2629
2629
|
currentItemIndex: v,
|
|
2630
2630
|
setCurrentItemIndex: p,
|
|
2631
2631
|
results: m,
|
|
2632
|
-
setResults:
|
|
2632
|
+
setResults: u,
|
|
2633
2633
|
currentModel: h,
|
|
2634
2634
|
removingItem: F,
|
|
2635
2635
|
setRemovingItem: A,
|
|
@@ -2675,9 +2675,9 @@ const kt = ({
|
|
|
2675
2675
|
openShortcut: s,
|
|
2676
2676
|
activeKey: a,
|
|
2677
2677
|
onChangeTab: l,
|
|
2678
|
-
onRemoveTab:
|
|
2678
|
+
onRemoveTab: d,
|
|
2679
2679
|
tabs: c
|
|
2680
|
-
} = e, [f,
|
|
2680
|
+
} = e, [f, u] = T(), [m, v] = T();
|
|
2681
2681
|
return /* @__PURE__ */ n(st.Provider, {
|
|
2682
2682
|
value: {
|
|
2683
2683
|
openAction: r,
|
|
@@ -2686,12 +2686,12 @@ const kt = ({
|
|
|
2686
2686
|
activeKey: a,
|
|
2687
2687
|
openShortcut: s,
|
|
2688
2688
|
onChangeTab: l,
|
|
2689
|
-
onRemoveTab:
|
|
2689
|
+
onRemoveTab: d,
|
|
2690
2690
|
tabs: c,
|
|
2691
2691
|
currentId: m,
|
|
2692
2692
|
currentView: f,
|
|
2693
2693
|
setCurrentId: v,
|
|
2694
|
-
setCurrentView:
|
|
2694
|
+
setCurrentView: u
|
|
2695
2695
|
},
|
|
2696
2696
|
children: t
|
|
2697
2697
|
});
|
|
@@ -2703,10 +2703,10 @@ const kt = ({
|
|
|
2703
2703
|
const {
|
|
2704
2704
|
children: r,
|
|
2705
2705
|
globalValues: i = {}
|
|
2706
|
-
} = e, o =
|
|
2706
|
+
} = e, o = de(), s = de(), [a, l] = T(!1), d = Y(st), {
|
|
2707
2707
|
openAction: c
|
|
2708
|
-
} =
|
|
2709
|
-
t:
|
|
2708
|
+
} = d || {}, f = de([]), {
|
|
2709
|
+
t: u
|
|
2710
2710
|
} = Y(we);
|
|
2711
2711
|
bt(t, () => ({
|
|
2712
2712
|
openActionModal: w
|
|
@@ -2927,7 +2927,7 @@ const kt = ({
|
|
|
2927
2927
|
},
|
|
2928
2928
|
children: /* @__PURE__ */ P(ne, {
|
|
2929
2929
|
children: [r, /* @__PURE__ */ n(Ge, {
|
|
2930
|
-
title:
|
|
2930
|
+
title: u("generatingReport"),
|
|
2931
2931
|
open: a,
|
|
2932
2932
|
footer: null,
|
|
2933
2933
|
closable: !1,
|
|
@@ -2970,30 +2970,30 @@ async function ul({
|
|
|
2970
2970
|
let a;
|
|
2971
2971
|
if (e)
|
|
2972
2972
|
for (const l of e) {
|
|
2973
|
-
const
|
|
2973
|
+
const d = await H.getHandler().getView({
|
|
2974
2974
|
model: r,
|
|
2975
2975
|
type: l[1],
|
|
2976
2976
|
id: l[0],
|
|
2977
2977
|
context: i
|
|
2978
2978
|
});
|
|
2979
|
-
s.push([
|
|
2979
|
+
s.push([d.view_id, l[1]]);
|
|
2980
2980
|
}
|
|
2981
2981
|
else {
|
|
2982
2982
|
const l = t.split(",");
|
|
2983
|
-
for (const
|
|
2983
|
+
for (const d of l) {
|
|
2984
2984
|
const c = await H.getHandler().getView({
|
|
2985
2985
|
model: r,
|
|
2986
|
-
type:
|
|
2986
|
+
type: d,
|
|
2987
2987
|
context: i
|
|
2988
2988
|
});
|
|
2989
|
-
s.push([c.view_id,
|
|
2989
|
+
s.push([c.view_id, d]);
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
2992
|
if (e && e.length > 0) {
|
|
2993
|
-
const [l,
|
|
2993
|
+
const [l, d] = e[0];
|
|
2994
2994
|
a = {
|
|
2995
2995
|
id: l,
|
|
2996
|
-
type:
|
|
2996
|
+
type: d
|
|
2997
2997
|
};
|
|
2998
2998
|
} else if (o)
|
|
2999
2999
|
a = {
|
|
@@ -3001,9 +3001,9 @@ async function ul({
|
|
|
3001
3001
|
type: t.split(",")[0]
|
|
3002
3002
|
};
|
|
3003
3003
|
else {
|
|
3004
|
-
const l = t.split(",")[0], [
|
|
3004
|
+
const l = t.split(",")[0], [d] = s.find(([c, f]) => f === l);
|
|
3005
3005
|
a = {
|
|
3006
|
-
id:
|
|
3006
|
+
id: d,
|
|
3007
3007
|
type: l
|
|
3008
3008
|
};
|
|
3009
3009
|
}
|
|
@@ -3045,10 +3045,10 @@ function pl(e, t) {
|
|
|
3045
3045
|
onSubmitSucceed: s,
|
|
3046
3046
|
showFooter: a = !1,
|
|
3047
3047
|
getDataFromAction: l = !1,
|
|
3048
|
-
onFieldsChange:
|
|
3048
|
+
onFieldsChange: d,
|
|
3049
3049
|
onSubmitError: c,
|
|
3050
3050
|
readOnly: f = !1,
|
|
3051
|
-
mustClearAfterSave:
|
|
3051
|
+
mustClearAfterSave: u = !1,
|
|
3052
3052
|
submitMode: m = "api",
|
|
3053
3053
|
values: v,
|
|
3054
3054
|
formView: p,
|
|
@@ -3064,7 +3064,7 @@ function pl(e, t) {
|
|
|
3064
3064
|
} = e, {
|
|
3065
3065
|
t: b,
|
|
3066
3066
|
lang: C
|
|
3067
|
-
} = 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 =
|
|
3067
|
+
} = 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), {
|
|
3068
3068
|
activeId: Ee,
|
|
3069
3069
|
getPlainValues: _e
|
|
3070
3070
|
} = be || {}, Be = Y(Qe), {
|
|
@@ -3110,7 +3110,7 @@ function pl(e, t) {
|
|
|
3110
3110
|
}, Te = (K) => {
|
|
3111
3111
|
ge == null || ge(!1), c == null || c(K);
|
|
3112
3112
|
};
|
|
3113
|
-
function
|
|
3113
|
+
function ue() {
|
|
3114
3114
|
return i || B.current;
|
|
3115
3115
|
}
|
|
3116
3116
|
function Xe() {
|
|
@@ -3149,15 +3149,15 @@ function pl(e, t) {
|
|
|
3149
3149
|
}
|
|
3150
3150
|
function Ae() {
|
|
3151
3151
|
return {
|
|
3152
|
-
id:
|
|
3153
|
-
active_id:
|
|
3154
|
-
active_ids: [
|
|
3152
|
+
id: ue(),
|
|
3153
|
+
active_id: ue(),
|
|
3154
|
+
active_ids: [ue()],
|
|
3155
3155
|
parent_id: Ee,
|
|
3156
3156
|
...Me
|
|
3157
3157
|
};
|
|
3158
3158
|
}
|
|
3159
3159
|
const he = async (K) => {
|
|
3160
|
-
const G =
|
|
3160
|
+
const G = ue() ? F == null ? void 0 : F.context : {};
|
|
3161
3161
|
return await H.getHandler().defaultGet({
|
|
3162
3162
|
model: r,
|
|
3163
3163
|
fields: K,
|
|
@@ -3277,15 +3277,15 @@ function pl(e, t) {
|
|
|
3277
3277
|
arch: G
|
|
3278
3278
|
}) => {
|
|
3279
3279
|
let re = {}, oe = !1;
|
|
3280
|
-
if (
|
|
3280
|
+
if (ue()) {
|
|
3281
3281
|
re = (await H.getHandler().readObjects({
|
|
3282
3282
|
model: r,
|
|
3283
|
-
ids: [
|
|
3283
|
+
ids: [ue()],
|
|
3284
3284
|
fields: K,
|
|
3285
3285
|
context: y
|
|
3286
3286
|
}))[0];
|
|
3287
3287
|
const Re = await H.getHandler().search({
|
|
3288
|
-
params: [["res_model", "=", r], ["res_id", "=",
|
|
3288
|
+
params: [["res_model", "=", r], ["res_id", "=", ue()]],
|
|
3289
3289
|
fields: ["id", "name"],
|
|
3290
3290
|
context: ae(),
|
|
3291
3291
|
model: "ir.attachment"
|
|
@@ -3301,7 +3301,7 @@ function pl(e, t) {
|
|
|
3301
3301
|
const {
|
|
3302
3302
|
callOnSubmitSucceed: G = !0
|
|
3303
3303
|
} = K || {};
|
|
3304
|
-
if (
|
|
3304
|
+
if (ue()) {
|
|
3305
3305
|
const re = Sn({
|
|
3306
3306
|
source: ee.current,
|
|
3307
3307
|
target: xe(k),
|
|
@@ -3309,7 +3309,7 @@ function pl(e, t) {
|
|
|
3309
3309
|
});
|
|
3310
3310
|
await H.getHandler().update({
|
|
3311
3311
|
model: r,
|
|
3312
|
-
id:
|
|
3312
|
+
id: ue(),
|
|
3313
3313
|
values: {
|
|
3314
3314
|
...re,
|
|
3315
3315
|
...D
|
|
@@ -3335,30 +3335,30 @@ function pl(e, t) {
|
|
|
3335
3335
|
});
|
|
3336
3336
|
B.current = oe, ee.current = re;
|
|
3337
3337
|
}
|
|
3338
|
-
h && await h([
|
|
3338
|
+
h && await h([ue()]), !g && G && (ce == null || ce(ue(), Ke(), X()));
|
|
3339
3339
|
}, Bo = async (K) => {
|
|
3340
3340
|
const {
|
|
3341
3341
|
callOnSubmitSucceed: G = !0
|
|
3342
3342
|
} = K || {};
|
|
3343
|
-
!g && G && (ce == null || ce(
|
|
3343
|
+
!g && G && (ce == null || ce(ue(), Ke(), X()));
|
|
3344
3344
|
}, zt = async (K) => {
|
|
3345
3345
|
let G = !1;
|
|
3346
3346
|
const {
|
|
3347
3347
|
callOnSubmitSucceed: re = !0
|
|
3348
3348
|
} = K || {};
|
|
3349
|
-
if (Q.current = !0, R(void 0), !ye() &&
|
|
3349
|
+
if (Q.current = !0, R(void 0), !ye() && ue() && re)
|
|
3350
3350
|
return Q.current = !1, se == null || se(!1), me == null || me(), {
|
|
3351
3351
|
succeed: !0,
|
|
3352
|
-
id:
|
|
3352
|
+
id: ue()
|
|
3353
3353
|
};
|
|
3354
3354
|
if (await tt())
|
|
3355
3355
|
return Q.current = !1, vr(C), {
|
|
3356
3356
|
succeed: !1,
|
|
3357
|
-
id:
|
|
3357
|
+
id: ue()
|
|
3358
3358
|
};
|
|
3359
3359
|
x(!0), ge == null || ge(!0);
|
|
3360
3360
|
try {
|
|
3361
|
-
m === "api" ? await Ho(K) : await Bo(K),
|
|
3361
|
+
m === "api" ? await Ho(K) : await Bo(K), u && (B.current = void 0, qt({
|
|
3362
3362
|
values: {},
|
|
3363
3363
|
fields: k,
|
|
3364
3364
|
reset: !0
|
|
@@ -3372,7 +3372,7 @@ function pl(e, t) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
return {
|
|
3374
3374
|
succeed: G,
|
|
3375
|
-
id:
|
|
3375
|
+
id: ue()
|
|
3376
3376
|
};
|
|
3377
3377
|
}, Jt = ({
|
|
3378
3378
|
fields: K,
|
|
@@ -3407,7 +3407,7 @@ function pl(e, t) {
|
|
|
3407
3407
|
return;
|
|
3408
3408
|
{
|
|
3409
3409
|
const oe = Ft(M.getFieldsValue(!0), k);
|
|
3410
|
-
Z.current = oe,
|
|
3410
|
+
Z.current = oe, d == null || d(oe), se == null || se(!0), Ko(re);
|
|
3411
3411
|
}
|
|
3412
3412
|
}
|
|
3413
3413
|
}, jo = wa(vn, 100), Ko = async (K) => {
|
|
@@ -3442,7 +3442,7 @@ function pl(e, t) {
|
|
|
3442
3442
|
}), oe = await H.getHandler().executeOnChange({
|
|
3443
3443
|
model: r,
|
|
3444
3444
|
action: G.method,
|
|
3445
|
-
ids:
|
|
3445
|
+
ids: ue() ? [ue()] : [],
|
|
3446
3446
|
payload: re,
|
|
3447
3447
|
fields: k
|
|
3448
3448
|
});
|
|
@@ -3489,7 +3489,7 @@ function pl(e, t) {
|
|
|
3489
3489
|
const re = await H.getHandler().execute({
|
|
3490
3490
|
model: r,
|
|
3491
3491
|
action: K,
|
|
3492
|
-
payload: [
|
|
3492
|
+
payload: [ue()],
|
|
3493
3493
|
context: {
|
|
3494
3494
|
...G,
|
|
3495
3495
|
...F == null ? void 0 : F.context,
|
|
@@ -3497,9 +3497,9 @@ function pl(e, t) {
|
|
|
3497
3497
|
}
|
|
3498
3498
|
});
|
|
3499
3499
|
if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && g)
|
|
3500
|
-
ce == null || ce(
|
|
3500
|
+
ce == null || ce(ue(), Ke(), X());
|
|
3501
3501
|
else if (re.type && re.type === "ir.actions.act_window_close")
|
|
3502
|
-
ce == null || ce(
|
|
3502
|
+
ce == null || ce(ue(), Ke(), X());
|
|
3503
3503
|
else if (re.type) {
|
|
3504
3504
|
let oe = {};
|
|
3505
3505
|
re.context && (oe = vt({
|
|
@@ -3524,9 +3524,9 @@ function pl(e, t) {
|
|
|
3524
3524
|
const G = await H.getHandler().executeWorkflow({
|
|
3525
3525
|
model: r,
|
|
3526
3526
|
action: K,
|
|
3527
|
-
payload:
|
|
3527
|
+
payload: ue()
|
|
3528
3528
|
});
|
|
3529
|
-
G.type && G.type === "ir.actions.act_window_close" ? ce == null || ce(
|
|
3529
|
+
G.type && G.type === "ir.actions.act_window_close" ? ce == null || ce(ue(), Ke(), X()) : await gt({
|
|
3530
3530
|
forceRefresh: !0
|
|
3531
3531
|
});
|
|
3532
3532
|
}
|
|
@@ -3565,7 +3565,7 @@ function pl(e, t) {
|
|
|
3565
3565
|
});
|
|
3566
3566
|
}
|
|
3567
3567
|
})) || {};
|
|
3568
|
-
!w && re && (ce == null || ce(
|
|
3568
|
+
!w && re && (ce == null || ce(ue(), Ke(), X()));
|
|
3569
3569
|
}
|
|
3570
3570
|
function qo() {
|
|
3571
3571
|
vn({
|
|
@@ -3586,7 +3586,7 @@ function pl(e, t) {
|
|
|
3586
3586
|
return;
|
|
3587
3587
|
}
|
|
3588
3588
|
try {
|
|
3589
|
-
(ye() ||
|
|
3589
|
+
(ye() || ue() === void 0) && await zt({
|
|
3590
3590
|
callOnSubmitSucceed: !1
|
|
3591
3591
|
}), K === "object" ? await Wo({
|
|
3592
3592
|
action: G,
|
|
@@ -3682,10 +3682,10 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3682
3682
|
onCancel: s,
|
|
3683
3683
|
isMenuAction: a = !1,
|
|
3684
3684
|
actionData: l,
|
|
3685
|
-
...
|
|
3685
|
+
...d
|
|
3686
3686
|
} = e, {
|
|
3687
3687
|
modalWidth: c
|
|
3688
|
-
} = fn(), [f,
|
|
3688
|
+
} = fn(), [f, u] = T(i), [m, v] = T(!1), [p, h] = T();
|
|
3689
3689
|
pe(() => {
|
|
3690
3690
|
a && g();
|
|
3691
3691
|
}, [l, a]);
|
|
@@ -3750,7 +3750,7 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
const _ = c * 0.95;
|
|
3752
3752
|
return /* @__PURE__ */ n(Qa, {
|
|
3753
|
-
setTitle:
|
|
3753
|
+
setTitle: u,
|
|
3754
3754
|
children: /* @__PURE__ */ n(Ge, {
|
|
3755
3755
|
title: a ? O() : f,
|
|
3756
3756
|
centered: !0,
|
|
@@ -3766,7 +3766,7 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3766
3766
|
insideButtonModal: o,
|
|
3767
3767
|
onCancel: s,
|
|
3768
3768
|
parentWidth: _,
|
|
3769
|
-
...
|
|
3769
|
+
...d
|
|
3770
3770
|
})
|
|
3771
3771
|
})
|
|
3772
3772
|
});
|
|
@@ -3843,9 +3843,9 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3843
3843
|
token: a
|
|
3844
3844
|
} = vl(), l = s && !o ? {
|
|
3845
3845
|
backgroundColor: a.colorPrimaryBg
|
|
3846
|
-
} : void 0,
|
|
3846
|
+
} : void 0, d = Y(Ne), {
|
|
3847
3847
|
elementHasLostFocus: c
|
|
3848
|
-
} =
|
|
3848
|
+
} = d || {};
|
|
3849
3849
|
return /* @__PURE__ */ n(ve, {
|
|
3850
3850
|
required: s,
|
|
3851
3851
|
type: "number",
|
|
@@ -3876,9 +3876,9 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3876
3876
|
token: a
|
|
3877
3877
|
} = wl(), l = s && !o ? {
|
|
3878
3878
|
backgroundColor: a.colorPrimaryBg
|
|
3879
|
-
} : void 0,
|
|
3879
|
+
} : void 0, d = Y(Ne), {
|
|
3880
3880
|
elementHasLostFocus: c
|
|
3881
|
-
} =
|
|
3881
|
+
} = d || {};
|
|
3882
3882
|
return /* @__PURE__ */ n(ve, {
|
|
3883
3883
|
required: s,
|
|
3884
3884
|
type: "number",
|
|
@@ -3889,8 +3889,8 @@ const Ut = wt(pl), Gt = (e) => {
|
|
|
3889
3889
|
disabled: o,
|
|
3890
3890
|
formatter: (f) => `${f}`.replace(/[^0-9\-]+/g, ""),
|
|
3891
3891
|
onChange: (f) => {
|
|
3892
|
-
const
|
|
3893
|
-
r == null || r(
|
|
3892
|
+
const u = f;
|
|
3893
|
+
r == null || r(u);
|
|
3894
3894
|
},
|
|
3895
3895
|
defaultValue: 0,
|
|
3896
3896
|
onBlur: c,
|
|
@@ -3907,10 +3907,10 @@ function bl(e) {
|
|
|
3907
3907
|
id: i,
|
|
3908
3908
|
label: o,
|
|
3909
3909
|
tooltip: s
|
|
3910
|
-
} = t, a = t instanceof _n ? tn : po, l = (
|
|
3910
|
+
} = t, a = t instanceof _n ? tn : po, l = (d) => /* @__PURE__ */ n(a, {
|
|
3911
3911
|
ooui: {
|
|
3912
3912
|
...t,
|
|
3913
|
-
id: i +
|
|
3913
|
+
id: i + d,
|
|
3914
3914
|
label: "",
|
|
3915
3915
|
tooltip: void 0
|
|
3916
3916
|
},
|
|
@@ -3971,18 +3971,18 @@ const {
|
|
|
3971
3971
|
selectionValues: o,
|
|
3972
3972
|
readOnly: s,
|
|
3973
3973
|
required: a
|
|
3974
|
-
} = t, l = Array.from(o.entries()),
|
|
3975
|
-
const [m] =
|
|
3974
|
+
} = t, l = Array.from(o.entries()), d = l && l.length && l.filter((u) => {
|
|
3975
|
+
const [m] = u;
|
|
3976
3976
|
return i ? !i.includes(m) : !0;
|
|
3977
|
-
}).map((
|
|
3978
|
-
const [m, v] =
|
|
3977
|
+
}).map((u) => {
|
|
3978
|
+
const [m, v] = u;
|
|
3979
3979
|
return /* @__PURE__ */ n(Tl, {
|
|
3980
3980
|
value: v,
|
|
3981
3981
|
children: v
|
|
3982
3982
|
}, m);
|
|
3983
3983
|
}), c = a && !s ? Il : xt;
|
|
3984
|
-
function f(
|
|
3985
|
-
const m =
|
|
3984
|
+
function f(u) {
|
|
3985
|
+
const m = u.map((v) => {
|
|
3986
3986
|
const p = l.find(([h, g]) => v === g);
|
|
3987
3987
|
return p && p[0];
|
|
3988
3988
|
});
|
|
@@ -3995,10 +3995,10 @@ const {
|
|
|
3995
3995
|
return /* @__PURE__ */ n(c, {
|
|
3996
3996
|
disabled: s,
|
|
3997
3997
|
onChange: f,
|
|
3998
|
-
value: i == null ? void 0 : i.map((
|
|
3998
|
+
value: i == null ? void 0 : i.map((u) => o.get(u)),
|
|
3999
3999
|
mode: "multiple",
|
|
4000
4000
|
showArrow: !0,
|
|
4001
|
-
children:
|
|
4001
|
+
children: d
|
|
4002
4002
|
});
|
|
4003
4003
|
}, Il = Kt(xt)`
|
|
4004
4004
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
@@ -4144,14 +4144,14 @@ function go(e) {
|
|
|
4144
4144
|
isSearching: s,
|
|
4145
4145
|
offset: a,
|
|
4146
4146
|
limit: l,
|
|
4147
|
-
onLimitChange:
|
|
4147
|
+
onLimitChange: d,
|
|
4148
4148
|
searchVisible: c,
|
|
4149
4149
|
setSearchFilterHeight: f,
|
|
4150
|
-
searchError:
|
|
4150
|
+
searchError: u,
|
|
4151
4151
|
searchValues: m,
|
|
4152
4152
|
showLimitOptions: v = !0,
|
|
4153
4153
|
formXml: p
|
|
4154
|
-
} = e, [h, g] = T(), [y, O] = T(), [_, w] = T(!1), V =
|
|
4154
|
+
} = e, [h, g] = T(), [y, O] = T(), [_, w] = T(!1), V = de(), {
|
|
4155
4155
|
token: D
|
|
4156
4156
|
} = Al(), [E] = ot.useForm();
|
|
4157
4157
|
pe(() => {
|
|
@@ -4216,7 +4216,7 @@ function go(e) {
|
|
|
4216
4216
|
limit: l
|
|
4217
4217
|
},
|
|
4218
4218
|
children: [C, _ && v && /* @__PURE__ */ n(Vl, {
|
|
4219
|
-
onLimitChange:
|
|
4219
|
+
onLimitChange: d
|
|
4220
4220
|
}), /* @__PURE__ */ n(Dl, {
|
|
4221
4221
|
advancedFilter: _,
|
|
4222
4222
|
onAdvancedFilterToggle: () => {
|
|
@@ -4227,9 +4227,9 @@ function go(e) {
|
|
|
4227
4227
|
},
|
|
4228
4228
|
isSearching: s
|
|
4229
4229
|
})]
|
|
4230
|
-
}),
|
|
4230
|
+
}), u && /* @__PURE__ */ n(Ze, {
|
|
4231
4231
|
className: "mt-10",
|
|
4232
|
-
message:
|
|
4232
|
+
message: u,
|
|
4233
4233
|
type: "error",
|
|
4234
4234
|
banner: !0
|
|
4235
4235
|
}), /* @__PURE__ */ n("div", {
|
|
@@ -4254,9 +4254,9 @@ const xr = (e, t = "14px -apple-system") => {
|
|
|
4254
4254
|
);
|
|
4255
4255
|
t.map((s) => {
|
|
4256
4256
|
i.map((a, l) => {
|
|
4257
|
-
const
|
|
4257
|
+
const d = a.width, c = s[a.key] || "";
|
|
4258
4258
|
let f = xr(c);
|
|
4259
|
-
f <
|
|
4259
|
+
f < d && (f = d), f > r && (f = r), i[l].width = f;
|
|
4260
4260
|
});
|
|
4261
4261
|
});
|
|
4262
4262
|
const o = i.map((s) => s.width).reduce((s, a) => s + a);
|
|
@@ -4366,7 +4366,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4366
4366
|
id: t,
|
|
4367
4367
|
model: r,
|
|
4368
4368
|
context: i = {}
|
|
4369
|
-
} = e, [o, s] = T(!1), [a, l] = T(!1), [
|
|
4369
|
+
} = e, [o, s] = T(!1), [a, l] = T(!1), [d, c] = T(!1), [f, u] = T(), [m, v] = T(), {
|
|
4370
4370
|
t: p
|
|
4371
4371
|
} = Y(we), h = Y(st), {
|
|
4372
4372
|
openRelate: g
|
|
@@ -4383,7 +4383,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4383
4383
|
type: "form",
|
|
4384
4384
|
context: i
|
|
4385
4385
|
});
|
|
4386
|
-
|
|
4386
|
+
u(S);
|
|
4387
4387
|
const {
|
|
4388
4388
|
fields: x,
|
|
4389
4389
|
arch: $
|
|
@@ -4404,7 +4404,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
function w() {
|
|
4406
4406
|
var x;
|
|
4407
|
-
if (
|
|
4407
|
+
if (d)
|
|
4408
4408
|
return /* @__PURE__ */ n(He, {
|
|
4409
4409
|
children: /* @__PURE__ */ n("div", {
|
|
4410
4410
|
style: {
|
|
@@ -4521,25 +4521,25 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4521
4521
|
value: t,
|
|
4522
4522
|
context: r,
|
|
4523
4523
|
selectionValues: i
|
|
4524
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [
|
|
4524
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [d, c] = t ? t.split(",") : [], f = parseInt(c), u = $e(async () => {
|
|
4525
4525
|
if (!t || t && o)
|
|
4526
4526
|
return;
|
|
4527
4527
|
l(!0);
|
|
4528
4528
|
const v = await H.getHandler().execute({
|
|
4529
4529
|
action: "name_get",
|
|
4530
4530
|
payload: [f],
|
|
4531
|
-
model:
|
|
4531
|
+
model: d,
|
|
4532
4532
|
context: r
|
|
4533
4533
|
});
|
|
4534
4534
|
s(v[0][1]), l(!1);
|
|
4535
4535
|
}, [t, o]);
|
|
4536
4536
|
if (pe(() => {
|
|
4537
|
-
|
|
4537
|
+
u();
|
|
4538
4538
|
}, [t]), !t && !a)
|
|
4539
4539
|
return /* @__PURE__ */ n(ne, {});
|
|
4540
4540
|
if (a)
|
|
4541
4541
|
return /* @__PURE__ */ n(rt, {});
|
|
4542
|
-
const m = i.get(
|
|
4542
|
+
const m = i.get(d);
|
|
4543
4543
|
return /* @__PURE__ */ P(Ye, {
|
|
4544
4544
|
children: [/* @__PURE__ */ n(ne, {
|
|
4545
4545
|
children: `${m}:`
|
|
@@ -4547,7 +4547,7 @@ const Ml = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4547
4547
|
children: o
|
|
4548
4548
|
}), /* @__PURE__ */ n(Jn, {
|
|
4549
4549
|
id: f,
|
|
4550
|
-
model:
|
|
4550
|
+
model: d
|
|
4551
4551
|
})]
|
|
4552
4552
|
});
|
|
4553
4553
|
};
|
|
@@ -4556,7 +4556,7 @@ var wo = { exports: {} };
|
|
|
4556
4556
|
(function(r, i) {
|
|
4557
4557
|
e.exports = i();
|
|
4558
4558
|
})(mt, function() {
|
|
4559
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute",
|
|
4559
|
+
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) {
|
|
4560
4560
|
var F = ["th", "st", "nd", "rd"], A = R % 100;
|
|
4561
4561
|
return "[" + R + (F[(A - 20) % 10] || F[A] || F[0]) + "]";
|
|
4562
4562
|
} }, _ = function(R, F, A) {
|
|
@@ -4568,12 +4568,12 @@ var wo = { exports: {} };
|
|
|
4568
4568
|
}, m: function R(F, A) {
|
|
4569
4569
|
if (F.date() < A.date())
|
|
4570
4570
|
return -R(A, F);
|
|
4571
|
-
var M = 12 * (A.year() - F.year()) + (A.month() - F.month()), I = F.clone().add(M,
|
|
4571
|
+
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);
|
|
4572
4572
|
return +(-(M + (A - I) / (N ? I - k : k - I)) || 0);
|
|
4573
4573
|
}, a: function(R) {
|
|
4574
4574
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
4575
4575
|
}, p: function(R) {
|
|
4576
|
-
return { M:
|
|
4576
|
+
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$/, "");
|
|
4577
4577
|
}, u: function(R) {
|
|
4578
4578
|
return R === void 0;
|
|
4579
4579
|
} }, V = "en", D = {};
|
|
@@ -4657,7 +4657,7 @@ var wo = { exports: {} };
|
|
|
4657
4657
|
switch (k) {
|
|
4658
4658
|
case v:
|
|
4659
4659
|
return N ? j(1, 0) : j(31, 11);
|
|
4660
|
-
case
|
|
4660
|
+
case u:
|
|
4661
4661
|
return N ? j(1, z) : j(0, z + 1);
|
|
4662
4662
|
case f:
|
|
4663
4663
|
var B = this.$locale().weekStart || 0, ee = (W < B ? W + 7 : W) - B;
|
|
@@ -4665,7 +4665,7 @@ var wo = { exports: {} };
|
|
|
4665
4665
|
case c:
|
|
4666
4666
|
case p:
|
|
4667
4667
|
return q(L + "Hours", 0);
|
|
4668
|
-
case
|
|
4668
|
+
case d:
|
|
4669
4669
|
return q(L + "Minutes", 1);
|
|
4670
4670
|
case l:
|
|
4671
4671
|
return q(L + "Seconds", 2);
|
|
@@ -4677,8 +4677,8 @@ var wo = { exports: {} };
|
|
|
4677
4677
|
}, F.endOf = function(A) {
|
|
4678
4678
|
return this.startOf(A, !1);
|
|
4679
4679
|
}, F.$set = function(A, M) {
|
|
4680
|
-
var I, N = S.p(A), k = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[c] = k + "Date", I[p] = k + "Date", I[
|
|
4681
|
-
if (N ===
|
|
4680
|
+
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;
|
|
4681
|
+
if (N === u || N === v) {
|
|
4682
4682
|
var W = this.clone().set(p, 1);
|
|
4683
4683
|
W.$d[j](q), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
|
|
4684
4684
|
} else
|
|
@@ -4695,15 +4695,15 @@ var wo = { exports: {} };
|
|
|
4695
4695
|
var U = C(N);
|
|
4696
4696
|
return S.w(U.date(U.date() + Math.round(z * A)), N);
|
|
4697
4697
|
};
|
|
4698
|
-
if (k ===
|
|
4699
|
-
return this.set(
|
|
4698
|
+
if (k === u)
|
|
4699
|
+
return this.set(u, this.$M + A);
|
|
4700
4700
|
if (k === v)
|
|
4701
4701
|
return this.set(v, this.$y + A);
|
|
4702
4702
|
if (k === c)
|
|
4703
4703
|
return j(1);
|
|
4704
4704
|
if (k === f)
|
|
4705
4705
|
return j(7);
|
|
4706
|
-
var q = (I = {}, I[l] = i, I[
|
|
4706
|
+
var q = (I = {}, I[l] = i, I[d] = o, I[a] = r, I)[k] || 1, W = this.$d.getTime() + A * q;
|
|
4707
4707
|
return S.w(W, this);
|
|
4708
4708
|
}, F.subtract = function(A, M) {
|
|
4709
4709
|
return this.add(-1 * A, M);
|
|
@@ -4726,9 +4726,9 @@ var wo = { exports: {} };
|
|
|
4726
4726
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4727
4727
|
}, F.diff = function(A, M, I) {
|
|
4728
4728
|
var N, k = S.p(M), j = C(A), q = (j.utcOffset() - this.utcOffset()) * i, W = this - j, z = S.m(this, j);
|
|
4729
|
-
return z = (N = {}, N[v] = z / 12, N[
|
|
4729
|
+
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);
|
|
4730
4730
|
}, F.daysInMonth = function() {
|
|
4731
|
-
return this.endOf(
|
|
4731
|
+
return this.endOf(u).$D;
|
|
4732
4732
|
}, F.$locale = function() {
|
|
4733
4733
|
return D[this.$L];
|
|
4734
4734
|
}, F.locale = function(A, M) {
|
|
@@ -4748,7 +4748,7 @@ var wo = { exports: {} };
|
|
|
4748
4748
|
return this.$d.toUTCString();
|
|
4749
4749
|
}, R;
|
|
4750
4750
|
}(), $ = x.prototype;
|
|
4751
|
-
return C.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H",
|
|
4751
|
+
return C.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", u], ["$y", v], ["$D", p]].forEach(function(R) {
|
|
4752
4752
|
$[R[1]] = function(F) {
|
|
4753
4753
|
return this.$g(F, R[0], R[1]);
|
|
4754
4754
|
};
|
|
@@ -4822,10 +4822,10 @@ var Co = { exports: {} };
|
|
|
4822
4822
|
e.exports = i();
|
|
4823
4823
|
})(mt, function() {
|
|
4824
4824
|
return function(r, i, o) {
|
|
4825
|
-
var s = i.prototype, a = function(
|
|
4826
|
-
return
|
|
4827
|
-
}, l = function(
|
|
4828
|
-
var g =
|
|
4825
|
+
var s = i.prototype, a = function(u) {
|
|
4826
|
+
return u && (u.indexOf ? u : u.s);
|
|
4827
|
+
}, l = function(u, m, v, p, h) {
|
|
4828
|
+
var g = u.name ? u : u.$locale(), y = a(g[m]), O = a(g[v]), _ = y || O.map(function(V) {
|
|
4829
4829
|
return V.slice(0, p);
|
|
4830
4830
|
});
|
|
4831
4831
|
if (!h)
|
|
@@ -4834,38 +4834,38 @@ var Co = { exports: {} };
|
|
|
4834
4834
|
return _.map(function(V, D) {
|
|
4835
4835
|
return _[(D + (w || 0)) % 7];
|
|
4836
4836
|
});
|
|
4837
|
-
},
|
|
4837
|
+
}, d = function() {
|
|
4838
4838
|
return o.Ls[o.locale()];
|
|
4839
|
-
}, c = function(
|
|
4840
|
-
return
|
|
4839
|
+
}, c = function(u, m) {
|
|
4840
|
+
return u.formats[m] || function(v) {
|
|
4841
4841
|
return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, g) {
|
|
4842
4842
|
return h || g.slice(1);
|
|
4843
4843
|
});
|
|
4844
|
-
}(
|
|
4844
|
+
}(u.formats[m.toUpperCase()]);
|
|
4845
4845
|
}, f = function() {
|
|
4846
|
-
var
|
|
4846
|
+
var u = this;
|
|
4847
4847
|
return { months: function(m) {
|
|
4848
|
-
return m ? m.format("MMMM") : l(
|
|
4848
|
+
return m ? m.format("MMMM") : l(u, "months");
|
|
4849
4849
|
}, monthsShort: function(m) {
|
|
4850
|
-
return m ? m.format("MMM") : l(
|
|
4850
|
+
return m ? m.format("MMM") : l(u, "monthsShort", "months", 3);
|
|
4851
4851
|
}, firstDayOfWeek: function() {
|
|
4852
|
-
return
|
|
4852
|
+
return u.$locale().weekStart || 0;
|
|
4853
4853
|
}, weekdays: function(m) {
|
|
4854
|
-
return m ? m.format("dddd") : l(
|
|
4854
|
+
return m ? m.format("dddd") : l(u, "weekdays");
|
|
4855
4855
|
}, weekdaysMin: function(m) {
|
|
4856
|
-
return m ? m.format("dd") : l(
|
|
4856
|
+
return m ? m.format("dd") : l(u, "weekdaysMin", "weekdays", 2);
|
|
4857
4857
|
}, weekdaysShort: function(m) {
|
|
4858
|
-
return m ? m.format("ddd") : l(
|
|
4858
|
+
return m ? m.format("ddd") : l(u, "weekdaysShort", "weekdays", 3);
|
|
4859
4859
|
}, longDateFormat: function(m) {
|
|
4860
|
-
return c(
|
|
4860
|
+
return c(u.$locale(), m);
|
|
4861
4861
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
4862
4862
|
};
|
|
4863
4863
|
s.localeData = function() {
|
|
4864
4864
|
return f.bind(this)();
|
|
4865
4865
|
}, o.localeData = function() {
|
|
4866
|
-
var
|
|
4866
|
+
var u = d();
|
|
4867
4867
|
return { firstDayOfWeek: function() {
|
|
4868
|
-
return
|
|
4868
|
+
return u.weekStart || 0;
|
|
4869
4869
|
}, weekdays: function() {
|
|
4870
4870
|
return o.weekdays();
|
|
4871
4871
|
}, weekdaysShort: function() {
|
|
@@ -4877,18 +4877,18 @@ var Co = { exports: {} };
|
|
|
4877
4877
|
}, monthsShort: function() {
|
|
4878
4878
|
return o.monthsShort();
|
|
4879
4879
|
}, longDateFormat: function(m) {
|
|
4880
|
-
return c(
|
|
4881
|
-
}, meridiem:
|
|
4880
|
+
return c(u, m);
|
|
4881
|
+
}, meridiem: u.meridiem, ordinal: u.ordinal };
|
|
4882
4882
|
}, o.months = function() {
|
|
4883
|
-
return l(
|
|
4883
|
+
return l(d(), "months");
|
|
4884
4884
|
}, o.monthsShort = function() {
|
|
4885
|
-
return l(
|
|
4886
|
-
}, o.weekdays = function(
|
|
4887
|
-
return l(
|
|
4888
|
-
}, o.weekdaysShort = function(
|
|
4889
|
-
return l(
|
|
4890
|
-
}, o.weekdaysMin = function(
|
|
4891
|
-
return l(
|
|
4885
|
+
return l(d(), "monthsShort", "months", 3);
|
|
4886
|
+
}, o.weekdays = function(u) {
|
|
4887
|
+
return l(d(), "weekdays", null, null, u);
|
|
4888
|
+
}, o.weekdaysShort = function(u) {
|
|
4889
|
+
return l(d(), "weekdaysShort", "weekdays", 3, u);
|
|
4890
|
+
}, o.weekdaysMin = function(u) {
|
|
4891
|
+
return l(d(), "weekdaysMin", "weekdays", 2, u);
|
|
4892
4892
|
};
|
|
4893
4893
|
};
|
|
4894
4894
|
});
|
|
@@ -4935,17 +4935,17 @@ const lt = {
|
|
|
4935
4935
|
readOnly: a,
|
|
4936
4936
|
required: l
|
|
4937
4937
|
} = i, {
|
|
4938
|
-
token:
|
|
4938
|
+
token: d
|
|
4939
4939
|
} = jl(), c = l && !a ? {
|
|
4940
|
-
backgroundColor:
|
|
4941
|
-
} : void 0, f = o ? "time" : "date",
|
|
4940
|
+
backgroundColor: d.colorPrimaryBg
|
|
4941
|
+
} : void 0, f = o ? "time" : "date", u = (p) => {
|
|
4942
4942
|
r == null || r(p);
|
|
4943
4943
|
}, m = (p) => {
|
|
4944
4944
|
if (p === null) {
|
|
4945
|
-
|
|
4945
|
+
u(void 0);
|
|
4946
4946
|
return;
|
|
4947
4947
|
}
|
|
4948
|
-
|
|
4948
|
+
u(p.format(lt[f].dateInternalFormat));
|
|
4949
4949
|
}, v = t ? dt(t, lt[f].dateInternalFormat) : void 0;
|
|
4950
4950
|
return /* @__PURE__ */ n(Mn, {
|
|
4951
4951
|
style: {
|
|
@@ -5033,10 +5033,10 @@ function pn(e) {
|
|
|
5033
5033
|
results: s,
|
|
5034
5034
|
onRequestPageChange: a,
|
|
5035
5035
|
loading: l,
|
|
5036
|
-
onRowClicked:
|
|
5036
|
+
onRowClicked: d,
|
|
5037
5037
|
showPagination: c = !0,
|
|
5038
5038
|
rowSelection: f,
|
|
5039
|
-
scrollY:
|
|
5039
|
+
scrollY: u,
|
|
5040
5040
|
colorsForResults: m = {},
|
|
5041
5041
|
statusForResults: v = {},
|
|
5042
5042
|
onChangeSort: p,
|
|
@@ -5046,9 +5046,9 @@ function pn(e) {
|
|
|
5046
5046
|
rootTree: O = !1,
|
|
5047
5047
|
context: _,
|
|
5048
5048
|
readonly: w
|
|
5049
|
-
} = e, [V, D] = T([]), [E, b] = T([]), C =
|
|
5049
|
+
} = e, [V, D] = T([]), [E, b] = T([]), C = de(!1), S = de(null), {
|
|
5050
5050
|
t: x
|
|
5051
|
-
} = Y(we), $ =
|
|
5051
|
+
} = Y(we), $ = de(r), R = Y(Qe), {
|
|
5052
5052
|
title: F = void 0,
|
|
5053
5053
|
setTitle: A = void 0
|
|
5054
5054
|
} = (O ? R : {}) || {};
|
|
@@ -5115,11 +5115,11 @@ function pn(e) {
|
|
|
5115
5115
|
children: L.join(", ")
|
|
5116
5116
|
});
|
|
5117
5117
|
}
|
|
5118
|
-
let q, W =
|
|
5118
|
+
let q, W = u;
|
|
5119
5119
|
if (S.current !== null) {
|
|
5120
5120
|
q = Rl(E, V, 600);
|
|
5121
5121
|
const U = S.current;
|
|
5122
|
-
|
|
5122
|
+
u && U.columns.some((L) => L.sum !== void 0) && (W = u - 30);
|
|
5123
5123
|
}
|
|
5124
5124
|
return S.current === null ? /* @__PURE__ */ n(Le, {
|
|
5125
5125
|
style: {
|
|
@@ -5144,7 +5144,7 @@ function pn(e) {
|
|
|
5144
5144
|
color: v[z.id]
|
|
5145
5145
|
});
|
|
5146
5146
|
},
|
|
5147
|
-
onRowDoubleClick:
|
|
5147
|
+
onRowDoubleClick: d,
|
|
5148
5148
|
onRowSelectionChange: f == null ? void 0 : f.onChange,
|
|
5149
5149
|
onChangeSort: p,
|
|
5150
5150
|
sorter: h,
|
|
@@ -5167,12 +5167,12 @@ function nc(e, t) {
|
|
|
5167
5167
|
onRowClicked: s,
|
|
5168
5168
|
nameSearch: a,
|
|
5169
5169
|
treeScrollY: l,
|
|
5170
|
-
domain:
|
|
5170
|
+
domain: d = [],
|
|
5171
5171
|
visible: c = !0,
|
|
5172
5172
|
rootTree: f = !1,
|
|
5173
|
-
parentContext:
|
|
5173
|
+
parentContext: u = {},
|
|
5174
5174
|
onChangeSelectedRowKeys: m
|
|
5175
|
-
} = e, [v, p] = T(!1), [h, g] = T(!1), y =
|
|
5175
|
+
} = 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(), {
|
|
5176
5176
|
height: R
|
|
5177
5177
|
} = fn(), F = Y(Mt), {
|
|
5178
5178
|
processAction: A
|
|
@@ -5211,7 +5211,7 @@ function nc(e, t) {
|
|
|
5211
5211
|
fetchChildrenForRecord: ce,
|
|
5212
5212
|
colorsForResults: me,
|
|
5213
5213
|
statusForResults: Te,
|
|
5214
|
-
totalItems:
|
|
5214
|
+
totalItems: ue
|
|
5215
5215
|
} = ho({
|
|
5216
5216
|
model: O,
|
|
5217
5217
|
setSearchTreeNameSearch: Q,
|
|
@@ -5223,7 +5223,7 @@ function nc(e, t) {
|
|
|
5223
5223
|
setTreeIsLoading: J,
|
|
5224
5224
|
nameSearch: a,
|
|
5225
5225
|
searchNameGetDoneRef: y,
|
|
5226
|
-
context:
|
|
5226
|
+
context: u,
|
|
5227
5227
|
formView: D,
|
|
5228
5228
|
treeView: w,
|
|
5229
5229
|
sorter: ee,
|
|
@@ -5231,7 +5231,7 @@ function nc(e, t) {
|
|
|
5231
5231
|
setCurrentItemIndex: N,
|
|
5232
5232
|
setResultsActionView: I,
|
|
5233
5233
|
resultsActionView: j,
|
|
5234
|
-
domain:
|
|
5234
|
+
domain: d,
|
|
5235
5235
|
currentId: k,
|
|
5236
5236
|
setActionViewTotalItems: ie,
|
|
5237
5237
|
limit: Ee,
|
|
@@ -5242,7 +5242,7 @@ function nc(e, t) {
|
|
|
5242
5242
|
y.current = !1, se();
|
|
5243
5243
|
},
|
|
5244
5244
|
getFields: () => w == null ? void 0 : w.fields,
|
|
5245
|
-
getDomain: () =>
|
|
5245
|
+
getDomain: () => d
|
|
5246
5246
|
})), pe(() => {
|
|
5247
5247
|
!h || c && (y.current = !1, se());
|
|
5248
5248
|
}, [je, We, h, c, a]);
|
|
@@ -5261,13 +5261,13 @@ function nc(e, t) {
|
|
|
5261
5261
|
i || (ke = await H.getHandler().getView({
|
|
5262
5262
|
model: r,
|
|
5263
5263
|
type: "form",
|
|
5264
|
-
context:
|
|
5264
|
+
context: u
|
|
5265
5265
|
}));
|
|
5266
5266
|
let et = o;
|
|
5267
5267
|
o || (et = await H.getHandler().getView({
|
|
5268
5268
|
model: r,
|
|
5269
5269
|
type: "tree",
|
|
5270
|
-
context:
|
|
5270
|
+
context: u
|
|
5271
5271
|
})), E(ke), V(et);
|
|
5272
5272
|
};
|
|
5273
5273
|
pe(() => {
|
|
@@ -5282,7 +5282,7 @@ function nc(e, t) {
|
|
|
5282
5282
|
$.current || ($.current = await H.getHandler().treeButOpen({
|
|
5283
5283
|
id: w.view_id,
|
|
5284
5284
|
model: O,
|
|
5285
|
-
context:
|
|
5285
|
+
context: u
|
|
5286
5286
|
}));
|
|
5287
5287
|
const tt = $.current[0][2];
|
|
5288
5288
|
await (A == null ? void 0 : A({
|
|
@@ -5292,7 +5292,7 @@ function nc(e, t) {
|
|
|
5292
5292
|
active_id: et,
|
|
5293
5293
|
...ke
|
|
5294
5294
|
},
|
|
5295
|
-
context:
|
|
5295
|
+
context: u
|
|
5296
5296
|
}));
|
|
5297
5297
|
}, ae = async (ke) => {
|
|
5298
5298
|
const {
|
|
@@ -5339,8 +5339,8 @@ function nc(e, t) {
|
|
|
5339
5339
|
searchVisible: L,
|
|
5340
5340
|
searchValues: fe
|
|
5341
5341
|
}), /* @__PURE__ */ n(pn, {
|
|
5342
|
-
context:
|
|
5343
|
-
total:
|
|
5342
|
+
context: u,
|
|
5343
|
+
total: ue,
|
|
5344
5344
|
limit: Ee,
|
|
5345
5345
|
page: je,
|
|
5346
5346
|
treeView: w,
|
|
@@ -5383,9 +5383,9 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5383
5383
|
nameSearch: s,
|
|
5384
5384
|
domain: a,
|
|
5385
5385
|
context: l = {}
|
|
5386
|
-
} = e, [
|
|
5386
|
+
} = e, [d, c] = T(!1), {
|
|
5387
5387
|
modalWidth: f,
|
|
5388
|
-
modalHeight:
|
|
5388
|
+
modalHeight: u
|
|
5389
5389
|
} = fn(), {
|
|
5390
5390
|
t: m
|
|
5391
5391
|
} = Y(we), [v, p] = T([]), h = async () => {
|
|
@@ -5408,7 +5408,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5408
5408
|
model: o,
|
|
5409
5409
|
nameSearch: s,
|
|
5410
5410
|
onRowClicked: g,
|
|
5411
|
-
treeScrollY:
|
|
5411
|
+
treeScrollY: u * 0.3,
|
|
5412
5412
|
domain: a,
|
|
5413
5413
|
parentContext: l,
|
|
5414
5414
|
onChangeSelectedRowKeys: (_) => {
|
|
@@ -5443,7 +5443,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5443
5443
|
title: m("search"),
|
|
5444
5444
|
centered: !0,
|
|
5445
5445
|
width: f,
|
|
5446
|
-
open: t && !
|
|
5446
|
+
open: t && !d,
|
|
5447
5447
|
closable: !0,
|
|
5448
5448
|
onCancel: h,
|
|
5449
5449
|
footer: null,
|
|
@@ -5452,7 +5452,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5452
5452
|
children: O()
|
|
5453
5453
|
}), /* @__PURE__ */ n(Gt, {
|
|
5454
5454
|
model: o,
|
|
5455
|
-
visible:
|
|
5455
|
+
visible: d,
|
|
5456
5456
|
parentContext: l,
|
|
5457
5457
|
onSubmitSucceed: (_) => {
|
|
5458
5458
|
c(!1), h(), i([_]);
|
|
@@ -5506,17 +5506,17 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5506
5506
|
relation: s,
|
|
5507
5507
|
readOnly: a,
|
|
5508
5508
|
context: l,
|
|
5509
|
-
id:
|
|
5509
|
+
id: d,
|
|
5510
5510
|
domain: c
|
|
5511
5511
|
} = i, f = o && !a ? {
|
|
5512
5512
|
backgroundColor: Oo.colorPrimaryBg
|
|
5513
|
-
} : void 0, [
|
|
5513
|
+
} : 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), {
|
|
5514
5514
|
domain: b,
|
|
5515
5515
|
getValues: C,
|
|
5516
5516
|
getFields: S,
|
|
5517
5517
|
getContext: x,
|
|
5518
5518
|
elementHasLostFocus: $
|
|
5519
|
-
} = E || {}, R =
|
|
5519
|
+
} = E || {}, R = de([]), [F, A] = T([]), M = t && t[0] || void 0, I = t && t[1] || "";
|
|
5520
5520
|
pe(() => {
|
|
5521
5521
|
!Array.isArray(t) && t && W(t);
|
|
5522
5522
|
}, [t]), pe(() => {
|
|
@@ -5598,7 +5598,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5598
5598
|
context: x()
|
|
5599
5599
|
})), b && b.length > 0 && (R.current = R.current.concat(Er({
|
|
5600
5600
|
domain: b,
|
|
5601
|
-
widgetFieldName:
|
|
5601
|
+
widgetFieldName: d
|
|
5602
5602
|
}))), A(R.current);
|
|
5603
5603
|
}
|
|
5604
5604
|
async function U(B) {
|
|
@@ -5667,7 +5667,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5667
5667
|
...x == null ? void 0 : x(),
|
|
5668
5668
|
...l
|
|
5669
5669
|
},
|
|
5670
|
-
visible:
|
|
5670
|
+
visible: u,
|
|
5671
5671
|
nameSearch: M ? void 0 : y,
|
|
5672
5672
|
onSelectValues: (B) => {
|
|
5673
5673
|
m(!1), W(B[0]), _.current = !1, D.current = void 0;
|
|
@@ -5724,10 +5724,10 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5724
5724
|
totalDomain: s,
|
|
5725
5725
|
showPercent: a = !1,
|
|
5726
5726
|
icon: l,
|
|
5727
|
-
suffix:
|
|
5727
|
+
suffix: d,
|
|
5728
5728
|
field: c,
|
|
5729
5729
|
operator: f,
|
|
5730
|
-
manualIds:
|
|
5730
|
+
manualIds: u
|
|
5731
5731
|
} = 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();
|
|
5732
5732
|
pe(() => {
|
|
5733
5733
|
M();
|
|
@@ -5741,7 +5741,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5741
5741
|
domain: I
|
|
5742
5742
|
});
|
|
5743
5743
|
if (c && f) {
|
|
5744
|
-
const k =
|
|
5744
|
+
const k = u || await H.getHandler().searchAllIds({
|
|
5745
5745
|
params: I,
|
|
5746
5746
|
model: t,
|
|
5747
5747
|
context: i
|
|
@@ -5756,7 +5756,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5756
5756
|
operator: f
|
|
5757
5757
|
});
|
|
5758
5758
|
} else
|
|
5759
|
-
return
|
|
5759
|
+
return u ? u.length : await H.getHandler().searchCount({
|
|
5760
5760
|
model: t,
|
|
5761
5761
|
params: I,
|
|
5762
5762
|
context: i
|
|
@@ -5866,7 +5866,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5866
5866
|
width: D,
|
|
5867
5867
|
color: b,
|
|
5868
5868
|
icon: S,
|
|
5869
|
-
suffix:
|
|
5869
|
+
suffix: d
|
|
5870
5870
|
}) : /* @__PURE__ */ n(dc, {
|
|
5871
5871
|
value: p,
|
|
5872
5872
|
total: O,
|
|
@@ -5875,7 +5875,7 @@ const To = wt(nc), Fo = (e) => {
|
|
|
5875
5875
|
width: D,
|
|
5876
5876
|
color: b,
|
|
5877
5877
|
icon: S,
|
|
5878
|
-
suffix:
|
|
5878
|
+
suffix: d
|
|
5879
5879
|
})
|
|
5880
5880
|
});
|
|
5881
5881
|
};
|
|
@@ -5893,14 +5893,14 @@ function dc({
|
|
|
5893
5893
|
icon: a,
|
|
5894
5894
|
suffix: l
|
|
5895
5895
|
}) {
|
|
5896
|
-
let
|
|
5896
|
+
let d = r * rn < on ? on : r * rn;
|
|
5897
5897
|
const c = o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5898
5898
|
useGrouping: !0
|
|
5899
5899
|
});
|
|
5900
5900
|
let f = i ? `${c}/${i}` : `${c}`;
|
|
5901
5901
|
l && (f += " " + l);
|
|
5902
|
-
let
|
|
5903
|
-
a && (
|
|
5902
|
+
let u = Do(f, `bold ${Math.floor(d * 1.03)}px sans-serif`);
|
|
5903
|
+
a && (u = u * 2), u >= t * 0.85 && (d = t * 0.85 / u * d);
|
|
5904
5904
|
const m = a && it(a);
|
|
5905
5905
|
return /* @__PURE__ */ n("div", {
|
|
5906
5906
|
ref: e,
|
|
@@ -5914,13 +5914,13 @@ function dc({
|
|
|
5914
5914
|
},
|
|
5915
5915
|
children: /* @__PURE__ */ P(Dn, {
|
|
5916
5916
|
style: {
|
|
5917
|
-
fontSize:
|
|
5917
|
+
fontSize: d,
|
|
5918
5918
|
margin: 0,
|
|
5919
5919
|
color: s
|
|
5920
5920
|
},
|
|
5921
5921
|
children: [m && /* @__PURE__ */ n(m, {
|
|
5922
5922
|
style: {
|
|
5923
|
-
fontSize:
|
|
5923
|
+
fontSize: d * 0.7
|
|
5924
5924
|
}
|
|
5925
5925
|
}), m ? ` ${f}` : f]
|
|
5926
5926
|
})
|
|
@@ -5935,17 +5935,17 @@ function uc({
|
|
|
5935
5935
|
value: s,
|
|
5936
5936
|
color: a,
|
|
5937
5937
|
icon: l,
|
|
5938
|
-
suffix:
|
|
5938
|
+
suffix: d
|
|
5939
5939
|
}) {
|
|
5940
5940
|
const c = t * 0.65;
|
|
5941
5941
|
let f = c * rn < on ? on : c * rn;
|
|
5942
|
-
const
|
|
5942
|
+
const u = s == null ? void 0 : s.toLocaleString("es-ES", {
|
|
5943
5943
|
useGrouping: !0
|
|
5944
5944
|
});
|
|
5945
|
-
let m = o ? `${
|
|
5945
|
+
let m = o ? `${u}/${o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5946
5946
|
useGrouping: !0
|
|
5947
|
-
})}` : `${
|
|
5948
|
-
|
|
5947
|
+
})}` : `${u}`;
|
|
5948
|
+
d && (m += " " + d);
|
|
5949
5949
|
const v = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
5950
5950
|
useGrouping: !0
|
|
5951
5951
|
})}%`;
|
|
@@ -6139,10 +6139,10 @@ const {
|
|
|
6139
6139
|
limit: s,
|
|
6140
6140
|
uninformedString: a,
|
|
6141
6141
|
manualIds: l
|
|
6142
|
-
} = e, [
|
|
6142
|
+
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6143
6143
|
return Ct(() => {
|
|
6144
6144
|
(async () => {
|
|
6145
|
-
c(!0),
|
|
6145
|
+
c(!0), u(void 0);
|
|
6146
6146
|
const O = Ln(o);
|
|
6147
6147
|
y(O.type || "line");
|
|
6148
6148
|
const _ = yc({
|
|
@@ -6163,12 +6163,12 @@ const {
|
|
|
6163
6163
|
manualIds: l
|
|
6164
6164
|
}));
|
|
6165
6165
|
} catch (D) {
|
|
6166
|
-
|
|
6166
|
+
u("Error fetching graph data values: " + JSON.stringify(D)), c(!1);
|
|
6167
6167
|
return;
|
|
6168
6168
|
}
|
|
6169
6169
|
try {
|
|
6170
6170
|
if (!w || !V) {
|
|
6171
|
-
|
|
6171
|
+
u("No values or fields returned"), c(!1);
|
|
6172
6172
|
return;
|
|
6173
6173
|
}
|
|
6174
6174
|
h(w);
|
|
@@ -6182,13 +6182,13 @@ const {
|
|
|
6182
6182
|
});
|
|
6183
6183
|
v(D);
|
|
6184
6184
|
} catch (D) {
|
|
6185
|
-
|
|
6185
|
+
u("Error processing graph data: " + D), c(!1);
|
|
6186
6186
|
return;
|
|
6187
6187
|
}
|
|
6188
6188
|
c(!1);
|
|
6189
6189
|
})();
|
|
6190
6190
|
}, [o, t, s, i, r]), {
|
|
6191
|
-
loading:
|
|
6191
|
+
loading: d,
|
|
6192
6192
|
error: f,
|
|
6193
6193
|
type: g,
|
|
6194
6194
|
values: m,
|
|
@@ -6227,7 +6227,7 @@ async function bc({
|
|
|
6227
6227
|
fieldsToRetrieve: e,
|
|
6228
6228
|
context: i
|
|
6229
6229
|
});
|
|
6230
|
-
return o && (c = [...c].sort((f,
|
|
6230
|
+
return o && (c = [...c].sort((f, u) => f[o] - u[o])), {
|
|
6231
6231
|
values: c,
|
|
6232
6232
|
fields: l
|
|
6233
6233
|
};
|
|
@@ -6260,10 +6260,10 @@ const xc = {
|
|
|
6260
6260
|
} = e, {
|
|
6261
6261
|
t: l
|
|
6262
6262
|
} = Y(we), {
|
|
6263
|
-
error:
|
|
6263
|
+
error: d,
|
|
6264
6264
|
loading: c,
|
|
6265
6265
|
values: f,
|
|
6266
|
-
type:
|
|
6266
|
+
type: u,
|
|
6267
6267
|
evaluatedEntries: m
|
|
6268
6268
|
} = vc({
|
|
6269
6269
|
model: t,
|
|
@@ -6274,9 +6274,9 @@ const xc = {
|
|
|
6274
6274
|
uninformedString: l("uninformed"),
|
|
6275
6275
|
manualIds: a
|
|
6276
6276
|
});
|
|
6277
|
-
if (
|
|
6277
|
+
if (d)
|
|
6278
6278
|
return /* @__PURE__ */ n(Ze, {
|
|
6279
|
-
message:
|
|
6279
|
+
message: d,
|
|
6280
6280
|
type: "error",
|
|
6281
6281
|
banner: !0
|
|
6282
6282
|
});
|
|
@@ -6291,7 +6291,7 @@ const xc = {
|
|
|
6291
6291
|
data: v,
|
|
6292
6292
|
isGroup: p,
|
|
6293
6293
|
isStack: h
|
|
6294
|
-
} = f, g = xc[
|
|
6294
|
+
} = f, g = xc[u];
|
|
6295
6295
|
return g ? /* @__PURE__ */ P("div", {
|
|
6296
6296
|
style: {
|
|
6297
6297
|
padding: "1rem"
|
|
@@ -6305,14 +6305,14 @@ const xc = {
|
|
|
6305
6305
|
})}`
|
|
6306
6306
|
}), /* @__PURE__ */ n(g, {
|
|
6307
6307
|
...Sc({
|
|
6308
|
-
type:
|
|
6308
|
+
type: u,
|
|
6309
6309
|
data: v,
|
|
6310
6310
|
isGroup: p,
|
|
6311
6311
|
isStack: h
|
|
6312
6312
|
})
|
|
6313
6313
|
})]
|
|
6314
6314
|
}) : /* @__PURE__ */ n(ne, {
|
|
6315
|
-
children: `Unknown graph type: ${
|
|
6315
|
+
children: `Unknown graph type: ${u}`
|
|
6316
6316
|
});
|
|
6317
6317
|
};
|
|
6318
6318
|
function Sc(e) {
|
|
@@ -6333,7 +6333,7 @@ const Tc = (e, t) => {
|
|
|
6333
6333
|
domain: s,
|
|
6334
6334
|
limit: a,
|
|
6335
6335
|
manualIds: l
|
|
6336
|
-
} = e, [
|
|
6336
|
+
} = e, [d, c] = T(!1), [f, u] = T(), [m, v] = T(), p = Y(Qe), {
|
|
6337
6337
|
setGraphIsLoading: h = void 0
|
|
6338
6338
|
} = p || {};
|
|
6339
6339
|
bt(t, () => ({
|
|
@@ -6354,7 +6354,7 @@ const Tc = (e, t) => {
|
|
|
6354
6354
|
});
|
|
6355
6355
|
v(y.arch);
|
|
6356
6356
|
const O = Ln(y.arch);
|
|
6357
|
-
|
|
6357
|
+
u(O);
|
|
6358
6358
|
} catch (y) {
|
|
6359
6359
|
return console.error(y), /* @__PURE__ */ n(ne, {
|
|
6360
6360
|
children: JSON.stringify(y)
|
|
@@ -6362,7 +6362,7 @@ const Tc = (e, t) => {
|
|
|
6362
6362
|
}
|
|
6363
6363
|
c(!1), h == null || h(!1);
|
|
6364
6364
|
}
|
|
6365
|
-
if (
|
|
6365
|
+
if (d)
|
|
6366
6366
|
return /* @__PURE__ */ n("div", {
|
|
6367
6367
|
style: {
|
|
6368
6368
|
width: "100%",
|
|
@@ -6457,10 +6457,10 @@ const Tc = (e, t) => {
|
|
|
6457
6457
|
mode: s,
|
|
6458
6458
|
onDelete: a,
|
|
6459
6459
|
totalItems: l,
|
|
6460
|
-
currentItemIndex:
|
|
6460
|
+
currentItemIndex: d,
|
|
6461
6461
|
onPreviousItem: c,
|
|
6462
6462
|
onNextItem: f,
|
|
6463
|
-
isMany2Many:
|
|
6463
|
+
isMany2Many: u,
|
|
6464
6464
|
onSearchItem: m,
|
|
6465
6465
|
selectedRowKeys: v,
|
|
6466
6466
|
showCreateButton: p,
|
|
@@ -6491,15 +6491,15 @@ const Tc = (e, t) => {
|
|
|
6491
6491
|
}
|
|
6492
6492
|
function _() {
|
|
6493
6493
|
return /* @__PURE__ */ n(ze, {
|
|
6494
|
-
tooltip:
|
|
6495
|
-
icon:
|
|
6494
|
+
tooltip: u ? "Unlink" : "Delete",
|
|
6495
|
+
icon: u ? /* @__PURE__ */ n(wi, {}) : /* @__PURE__ */ n(Yn, {}),
|
|
6496
6496
|
onClick: a,
|
|
6497
6497
|
disabled: l === 0 || r || s !== "form" && v.length === 0
|
|
6498
6498
|
});
|
|
6499
6499
|
}
|
|
6500
6500
|
function w() {
|
|
6501
6501
|
let D = "_";
|
|
6502
|
-
return l === 0 ? D = "_" : D = (
|
|
6502
|
+
return l === 0 ? D = "_" : D = (d + 1).toString(), /* @__PURE__ */ P("span", {
|
|
6503
6503
|
className: "pl-1 pr-1",
|
|
6504
6504
|
children: ["(", D, "/", l, ")"]
|
|
6505
6505
|
});
|
|
@@ -6526,7 +6526,7 @@ const Tc = (e, t) => {
|
|
|
6526
6526
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
6527
6527
|
disabled: r,
|
|
6528
6528
|
onClick: i
|
|
6529
|
-
}),
|
|
6529
|
+
}), u && p && /* @__PURE__ */ n(ze, {
|
|
6530
6530
|
tooltip: "Search existing item",
|
|
6531
6531
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
6532
6532
|
disabled: r,
|
|
@@ -6564,10 +6564,10 @@ const kc = (e) => {
|
|
|
6564
6564
|
} = t || {}, {
|
|
6565
6565
|
currentView: a,
|
|
6566
6566
|
setCurrentView: l,
|
|
6567
|
-
itemIndex:
|
|
6567
|
+
itemIndex: d,
|
|
6568
6568
|
setItemIndex: c
|
|
6569
6569
|
} = Y(_o), f = Y(Ne), {
|
|
6570
|
-
activeId:
|
|
6570
|
+
activeId: u,
|
|
6571
6571
|
getFields: m,
|
|
6572
6572
|
getValues: v,
|
|
6573
6573
|
getContext: p,
|
|
@@ -6575,14 +6575,14 @@ const kc = (e) => {
|
|
|
6575
6575
|
} = f || {}, {
|
|
6576
6576
|
lang: g,
|
|
6577
6577
|
t: y
|
|
6578
|
-
} = 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 =
|
|
6578
|
+
} = 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), {
|
|
6579
6579
|
readOnly: U,
|
|
6580
6580
|
relation: L,
|
|
6581
6581
|
context: B,
|
|
6582
6582
|
domain: ee
|
|
6583
6583
|
} = i, Z = i.type === "many2many", {
|
|
6584
6584
|
id: ie
|
|
6585
|
-
} = i, Q = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J =
|
|
6585
|
+
} = i, Q = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J = de();
|
|
6586
6586
|
pe(() => {
|
|
6587
6587
|
if (J.current !== a) {
|
|
6588
6588
|
J.current = a, fe();
|
|
@@ -6603,7 +6603,7 @@ const kc = (e) => {
|
|
|
6603
6603
|
items: Rc(X)
|
|
6604
6604
|
});
|
|
6605
6605
|
}, Ee = async () => {
|
|
6606
|
-
await _e(),
|
|
6606
|
+
await _e(), d > Q.length - 1 && d !== 0 && c(0);
|
|
6607
6607
|
}, _e = async (X) => {
|
|
6608
6608
|
var ae, Ae, he;
|
|
6609
6609
|
V(!0), _(!1), E(void 0);
|
|
@@ -6651,16 +6651,16 @@ const kc = (e) => {
|
|
|
6651
6651
|
l(ae);
|
|
6652
6652
|
}) : l(ae);
|
|
6653
6653
|
}, se = () => {
|
|
6654
|
-
|
|
6655
|
-
c(
|
|
6656
|
-
}) : c(
|
|
6654
|
+
d > 0 && (a === "form" ? Ve(() => {
|
|
6655
|
+
c(d - 1);
|
|
6656
|
+
}) : c(d - 1));
|
|
6657
6657
|
}, Se = () => {
|
|
6658
6658
|
const X = Q.length;
|
|
6659
|
-
|
|
6660
|
-
c(
|
|
6661
|
-
}) : c(
|
|
6659
|
+
d < X - 1 && (a === "form" ? Ve(() => {
|
|
6660
|
+
c(d + 1);
|
|
6661
|
+
}) : c(d + 1));
|
|
6662
6662
|
}, De = async () => {
|
|
6663
|
-
const X = Q[
|
|
6663
|
+
const X = Q[d].id, ae = (await H.getHandler().readObjects({
|
|
6664
6664
|
model: L,
|
|
6665
6665
|
ids: [X],
|
|
6666
6666
|
fields: o.get("form").fields,
|
|
@@ -6711,8 +6711,8 @@ const kc = (e) => {
|
|
|
6711
6711
|
inv_field: X
|
|
6712
6712
|
} = i;
|
|
6713
6713
|
let ae;
|
|
6714
|
-
X &&
|
|
6715
|
-
[X]:
|
|
6714
|
+
X && u && (ae = {
|
|
6715
|
+
[X]: u
|
|
6716
6716
|
}), a === "form" ? Ve(() => {
|
|
6717
6717
|
I(!0), R({
|
|
6718
6718
|
defaultValues: ae
|
|
@@ -6727,14 +6727,14 @@ const kc = (e) => {
|
|
|
6727
6727
|
}, Fe = async () => {
|
|
6728
6728
|
V(!0), _(!1), E(void 0);
|
|
6729
6729
|
try {
|
|
6730
|
-
if (Q[
|
|
6731
|
-
const X = s.map((ae) => ae.id === Q[
|
|
6730
|
+
if (Q[d].id > 0) {
|
|
6731
|
+
const X = s.map((ae) => ae.id === Q[d].id ? {
|
|
6732
6732
|
...ae,
|
|
6733
6733
|
operation: "pendingRemove"
|
|
6734
6734
|
} : ae);
|
|
6735
6735
|
be(X);
|
|
6736
6736
|
} else
|
|
6737
|
-
be(s.filter((X) => X.id !== Q[
|
|
6737
|
+
be(s.filter((X) => X.id !== Q[d].id));
|
|
6738
6738
|
} catch (X) {
|
|
6739
6739
|
E(X);
|
|
6740
6740
|
}
|
|
@@ -6827,7 +6827,7 @@ const kc = (e) => {
|
|
|
6827
6827
|
V(!1);
|
|
6828
6828
|
}
|
|
6829
6829
|
};
|
|
6830
|
-
function
|
|
6830
|
+
function ue() {
|
|
6831
6831
|
const X = Ac[a];
|
|
6832
6832
|
if (a === "graph")
|
|
6833
6833
|
return Ln(o.get("graph").arch).string;
|
|
@@ -6841,17 +6841,17 @@ const kc = (e) => {
|
|
|
6841
6841
|
if (a === "form")
|
|
6842
6842
|
return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
|
|
6843
6843
|
formView: o.get("form"),
|
|
6844
|
-
values: (ae = Q[
|
|
6844
|
+
values: (ae = Q[d]) == null ? void 0 : ae.values,
|
|
6845
6845
|
parentContext: {
|
|
6846
6846
|
...p == null ? void 0 : p(),
|
|
6847
6847
|
...B
|
|
6848
6848
|
},
|
|
6849
6849
|
model: L,
|
|
6850
|
-
id: (Ae = Q[
|
|
6850
|
+
id: (Ae = Q[d]) == null ? void 0 : Ae.id,
|
|
6851
6851
|
submitMode: "values",
|
|
6852
6852
|
onFieldsChange: (xe) => {
|
|
6853
6853
|
var tt;
|
|
6854
|
-
const ke = (tt = Q[
|
|
6854
|
+
const ke = (tt = Q[d]) == null ? void 0 : tt.id, et = s.map((ut) => ut.id === ke ? {
|
|
6855
6855
|
...ut,
|
|
6856
6856
|
operation: ut.operation === "original" ? "pendingUpdate" : ut.operation,
|
|
6857
6857
|
values: {
|
|
@@ -6898,7 +6898,7 @@ const kc = (e) => {
|
|
|
6898
6898
|
readonly: U
|
|
6899
6899
|
});
|
|
6900
6900
|
if (a === "graph") {
|
|
6901
|
-
const xe = [[`${i.inv_field}`, "=",
|
|
6901
|
+
const xe = [[`${i.inv_field}`, "=", u]];
|
|
6902
6902
|
return /* @__PURE__ */ n(gn, {
|
|
6903
6903
|
view_id: o.get("graph").view_id,
|
|
6904
6904
|
model: i.relation,
|
|
@@ -6922,12 +6922,12 @@ const kc = (e) => {
|
|
|
6922
6922
|
return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
|
|
6923
6923
|
children: [/* @__PURE__ */ n(Vc, {
|
|
6924
6924
|
mode: a,
|
|
6925
|
-
title:
|
|
6925
|
+
title: ue(),
|
|
6926
6926
|
readOnly: U,
|
|
6927
6927
|
isMany2Many: Z,
|
|
6928
6928
|
formHasChanges: O,
|
|
6929
6929
|
totalItems: Q.length,
|
|
6930
|
-
currentItemIndex:
|
|
6930
|
+
currentItemIndex: d,
|
|
6931
6931
|
onDelete: je,
|
|
6932
6932
|
onCreateItem: We,
|
|
6933
6933
|
onToggleViewMode: ge,
|
|
@@ -6982,7 +6982,7 @@ const kc = (e) => {
|
|
|
6982
6982
|
context: a
|
|
6983
6983
|
} = t;
|
|
6984
6984
|
let l;
|
|
6985
|
-
const [
|
|
6985
|
+
const [d, c] = T(!0), [f, u] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
|
|
6986
6986
|
getContext: h
|
|
6987
6987
|
} = p || {};
|
|
6988
6988
|
Ct(() => {
|
|
@@ -6996,7 +6996,7 @@ const kc = (e) => {
|
|
|
6996
6996
|
...a
|
|
6997
6997
|
}
|
|
6998
6998
|
}), y = async () => {
|
|
6999
|
-
c(!0),
|
|
6999
|
+
c(!0), u(void 0);
|
|
7000
7000
|
try {
|
|
7001
7001
|
if (r && r.length > 0) {
|
|
7002
7002
|
for (const _ of r) {
|
|
@@ -7009,12 +7009,12 @@ const kc = (e) => {
|
|
|
7009
7009
|
m.set("form", _), m.set("tree", w), v(m);
|
|
7010
7010
|
}
|
|
7011
7011
|
} catch (_) {
|
|
7012
|
-
|
|
7012
|
+
u(JSON.stringify(_));
|
|
7013
7013
|
} finally {
|
|
7014
7014
|
c(!1);
|
|
7015
7015
|
}
|
|
7016
7016
|
};
|
|
7017
|
-
return r && r.length > 0 ? l = r[0] : l = "tree",
|
|
7017
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
|
|
7018
7018
|
className: "mt-10",
|
|
7019
7019
|
message: f,
|
|
7020
7020
|
type: "error",
|
|
@@ -7068,19 +7068,19 @@ const kc = (e) => {
|
|
|
7068
7068
|
required: a
|
|
7069
7069
|
} = t, {
|
|
7070
7070
|
token: l
|
|
7071
|
-
} = Ec(),
|
|
7071
|
+
} = Ec(), d = a && !s ? {
|
|
7072
7072
|
backgroundColor: l.colorPrimaryBg
|
|
7073
|
-
} : void 0, c =
|
|
7073
|
+
} : void 0, c = de(), [f, u] = T(), m = Y(Ne), {
|
|
7074
7074
|
elementHasLostFocus: v
|
|
7075
7075
|
} = m || {};
|
|
7076
7076
|
pe(() => {
|
|
7077
|
-
|
|
7077
|
+
u(yo(r));
|
|
7078
7078
|
}, [r]);
|
|
7079
7079
|
const p = (y) => {
|
|
7080
7080
|
i == null || i(y);
|
|
7081
7081
|
};
|
|
7082
7082
|
function h(y) {
|
|
7083
|
-
c.current = y.target.value,
|
|
7083
|
+
c.current = y.target.value, u(y.target.value);
|
|
7084
7084
|
}
|
|
7085
7085
|
async function g() {
|
|
7086
7086
|
p(kl(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
|
|
@@ -7089,7 +7089,7 @@ const kc = (e) => {
|
|
|
7089
7089
|
value: f,
|
|
7090
7090
|
disabled: s,
|
|
7091
7091
|
className: "w-full",
|
|
7092
|
-
style:
|
|
7092
|
+
style: d,
|
|
7093
7093
|
id: o,
|
|
7094
7094
|
placeholder: "00:00",
|
|
7095
7095
|
onChange: h,
|
|
@@ -7160,7 +7160,7 @@ const {
|
|
|
7160
7160
|
translatable: a
|
|
7161
7161
|
} = t, {
|
|
7162
7162
|
token: l
|
|
7163
|
-
} = Hc(),
|
|
7163
|
+
} = Hc(), d = o && !i ? {
|
|
7164
7164
|
backgroundColor: l.colorPrimaryBg
|
|
7165
7165
|
} : void 0, c = Y(Ne), {
|
|
7166
7166
|
elementHasLostFocus: f
|
|
@@ -7171,12 +7171,12 @@ const {
|
|
|
7171
7171
|
children: a ? /* @__PURE__ */ n(jc, {
|
|
7172
7172
|
field: r,
|
|
7173
7173
|
height: s,
|
|
7174
|
-
requiredStyle:
|
|
7174
|
+
requiredStyle: d
|
|
7175
7175
|
}) : /* @__PURE__ */ n(An, {
|
|
7176
7176
|
disabled: i || a,
|
|
7177
7177
|
style: {
|
|
7178
7178
|
minHeight: s ? s + "px" : "100%",
|
|
7179
|
-
...
|
|
7179
|
+
...d
|
|
7180
7180
|
},
|
|
7181
7181
|
rows: 4,
|
|
7182
7182
|
onBlur: f
|
|
@@ -7192,10 +7192,10 @@ const {
|
|
|
7192
7192
|
const s = Y(Ne), {
|
|
7193
7193
|
activeId: a,
|
|
7194
7194
|
activeModel: l,
|
|
7195
|
-
fetchValues:
|
|
7195
|
+
fetchValues: d,
|
|
7196
7196
|
formHasChanges: c,
|
|
7197
7197
|
elementHasLostFocus: f
|
|
7198
|
-
} = s || {}, [
|
|
7198
|
+
} = s || {}, [u, m] = T(!1), {
|
|
7199
7199
|
t: v
|
|
7200
7200
|
} = Y(we);
|
|
7201
7201
|
return a ? /* @__PURE__ */ P(ne, {
|
|
@@ -7205,7 +7205,7 @@ const {
|
|
|
7205
7205
|
ct(v("saveBeforeTranslate"));
|
|
7206
7206
|
return;
|
|
7207
7207
|
}
|
|
7208
|
-
|
|
7208
|
+
u || m(!0);
|
|
7209
7209
|
},
|
|
7210
7210
|
children: /* @__PURE__ */ n(An, {
|
|
7211
7211
|
value: e,
|
|
@@ -7227,12 +7227,12 @@ const {
|
|
|
7227
7227
|
id: a,
|
|
7228
7228
|
model: l,
|
|
7229
7229
|
field: t,
|
|
7230
|
-
visible:
|
|
7230
|
+
visible: u,
|
|
7231
7231
|
onCloseModal: () => {
|
|
7232
7232
|
m(!1);
|
|
7233
7233
|
},
|
|
7234
7234
|
onSubmitSucceed: () => {
|
|
7235
|
-
m(!1),
|
|
7235
|
+
m(!1), d == null || d();
|
|
7236
7236
|
}
|
|
7237
7237
|
})]
|
|
7238
7238
|
}) : /* @__PURE__ */ P(ne, {
|
|
@@ -7290,7 +7290,7 @@ const {
|
|
|
7290
7290
|
limit: s,
|
|
7291
7291
|
onClose: a
|
|
7292
7292
|
}) => {
|
|
7293
|
-
const l =
|
|
7293
|
+
const l = de({}), d = de(/* @__PURE__ */ new Map()), c = $e(
|
|
7294
7294
|
async (g) => {
|
|
7295
7295
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7296
7296
|
ct(Oe("selectAtLeastOneField", r));
|
|
@@ -7323,7 +7323,7 @@ const {
|
|
|
7323
7323
|
fields: []
|
|
7324
7324
|
});
|
|
7325
7325
|
return l.current["/"] = g, Ir({ fields: g });
|
|
7326
|
-
}, [e, t, l]),
|
|
7326
|
+
}, [e, t, l]), u = $e(
|
|
7327
7327
|
async (g) => {
|
|
7328
7328
|
const O = kn(g, l.current)[Rn(g)], _ = O.relation, w = await H.getHandler().getFields({
|
|
7329
7329
|
model: _,
|
|
@@ -7345,7 +7345,7 @@ const {
|
|
|
7345
7345
|
const g = await Gc({ model: e, context: t }), y = await zc({
|
|
7346
7346
|
predefinedExports: g,
|
|
7347
7347
|
fields: l.current,
|
|
7348
|
-
onGetFieldChilds:
|
|
7348
|
+
onGetFieldChilds: u
|
|
7349
7349
|
});
|
|
7350
7350
|
return {
|
|
7351
7351
|
predefinedExports: g.map((_) => ({
|
|
@@ -7394,20 +7394,20 @@ const {
|
|
|
7394
7394
|
[]
|
|
7395
7395
|
), h = $e(
|
|
7396
7396
|
async (g) => {
|
|
7397
|
-
if (
|
|
7398
|
-
return
|
|
7397
|
+
if (d.current.has(g))
|
|
7398
|
+
return d.current.get(g);
|
|
7399
7399
|
const y = H.getHandler().getFields({
|
|
7400
7400
|
model: g,
|
|
7401
7401
|
context: t,
|
|
7402
7402
|
fields: []
|
|
7403
7403
|
});
|
|
7404
|
-
|
|
7404
|
+
d.current.set(g, y);
|
|
7405
7405
|
},
|
|
7406
|
-
[
|
|
7406
|
+
[d, t]
|
|
7407
7407
|
);
|
|
7408
7408
|
return {
|
|
7409
7409
|
onGetFields: f,
|
|
7410
|
-
onGetFieldChilds:
|
|
7410
|
+
onGetFieldChilds: u,
|
|
7411
7411
|
onExport: c,
|
|
7412
7412
|
onGetPredefinedExports: m,
|
|
7413
7413
|
onSavePredefinedExport: v,
|
|
@@ -7460,7 +7460,7 @@ const {
|
|
|
7460
7460
|
id: s.id,
|
|
7461
7461
|
name: s.name,
|
|
7462
7462
|
fields: s.export_fields.map((a) => ({
|
|
7463
|
-
key: o.find((
|
|
7463
|
+
key: o.find((d) => d.id === a).name
|
|
7464
7464
|
}))
|
|
7465
7465
|
}));
|
|
7466
7466
|
}, qc = ({
|
|
@@ -7523,11 +7523,11 @@ const {
|
|
|
7523
7523
|
context: s,
|
|
7524
7524
|
selectedRegistersToExport: a,
|
|
7525
7525
|
totalRegisters: l,
|
|
7526
|
-
domain:
|
|
7526
|
+
domain: d,
|
|
7527
7527
|
limit: c,
|
|
7528
7528
|
visibleRegisters: f
|
|
7529
7529
|
} = e, {
|
|
7530
|
-
onExport:
|
|
7530
|
+
onExport: u,
|
|
7531
7531
|
onGetFieldChilds: m,
|
|
7532
7532
|
onGetFields: v,
|
|
7533
7533
|
onGetPredefinedExports: p,
|
|
@@ -7536,7 +7536,7 @@ const {
|
|
|
7536
7536
|
} = Yc({
|
|
7537
7537
|
model: o,
|
|
7538
7538
|
context: s,
|
|
7539
|
-
domain:
|
|
7539
|
+
domain: d,
|
|
7540
7540
|
limit: c,
|
|
7541
7541
|
selectedRegistersToExport: a,
|
|
7542
7542
|
onClose: i,
|
|
@@ -7545,7 +7545,7 @@ const {
|
|
|
7545
7545
|
return /* @__PURE__ */ n(Li, {
|
|
7546
7546
|
visible: t,
|
|
7547
7547
|
locale: r,
|
|
7548
|
-
onSucceed:
|
|
7548
|
+
onSucceed: u,
|
|
7549
7549
|
onCancel: i,
|
|
7550
7550
|
selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
|
|
7551
7551
|
totalRegisters: l,
|
|
@@ -7577,7 +7577,7 @@ var Ro = { exports: {} };
|
|
|
7577
7577
|
(function(r, i) {
|
|
7578
7578
|
e.exports = i();
|
|
7579
7579
|
})(mt, function() {
|
|
7580
|
-
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 = {},
|
|
7580
|
+
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) {
|
|
7581
7581
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
7582
7582
|
}, c = function(h) {
|
|
7583
7583
|
return function(g) {
|
|
@@ -7590,7 +7590,7 @@ var Ro = { exports: {} };
|
|
|
7590
7590
|
var y = g.match(/([+-]|\d\d)/g), O = 60 * y[1] + (+y[2] || 0);
|
|
7591
7591
|
return O === 0 ? 0 : y[0] === "+" ? -O : O;
|
|
7592
7592
|
}(h);
|
|
7593
|
-
}],
|
|
7593
|
+
}], u = function(h) {
|
|
7594
7594
|
var g = l[h];
|
|
7595
7595
|
return g && (g.indexOf ? g : g.s.concat(g.f));
|
|
7596
7596
|
}, m = function(h, g) {
|
|
@@ -7620,19 +7620,19 @@ var Ro = { exports: {} };
|
|
|
7620
7620
|
for (var O = 1; O <= 31; O += 1)
|
|
7621
7621
|
g(O).replace(/\[|\]/g, "") === h && (this.day = O);
|
|
7622
7622
|
}], M: [s, c("month")], MM: [o, c("month")], MMM: [a, function(h) {
|
|
7623
|
-
var g =
|
|
7623
|
+
var g = u("months"), y = (u("monthsShort") || g.map(function(O) {
|
|
7624
7624
|
return O.slice(0, 3);
|
|
7625
7625
|
})).indexOf(h) + 1;
|
|
7626
7626
|
if (y < 1)
|
|
7627
7627
|
throw new Error();
|
|
7628
7628
|
this.month = y % 12 || y;
|
|
7629
7629
|
}], MMMM: [a, function(h) {
|
|
7630
|
-
var g =
|
|
7630
|
+
var g = u("months").indexOf(h) + 1;
|
|
7631
7631
|
if (g < 1)
|
|
7632
7632
|
throw new Error();
|
|
7633
7633
|
this.month = g % 12 || g;
|
|
7634
7634
|
}], Y: [/[+-]?\d+/, c("year")], YY: [o, function(h) {
|
|
7635
|
-
this.year =
|
|
7635
|
+
this.year = d(h);
|
|
7636
7636
|
}], YYYY: [/\d{4}/, c("year")], Z: f, ZZ: f };
|
|
7637
7637
|
function p(h) {
|
|
7638
7638
|
var g, y;
|
|
@@ -7666,7 +7666,7 @@ var Ro = { exports: {} };
|
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return function(h, g, y) {
|
|
7669
|
-
y.p.customParseFormat = !0, h && h.parseTwoDigitYear && (
|
|
7669
|
+
y.p.customParseFormat = !0, h && h.parseTwoDigitYear && (d = h.parseTwoDigitYear);
|
|
7670
7670
|
var O = g.prototype, _ = O.parse;
|
|
7671
7671
|
O.parse = function(w) {
|
|
7672
7672
|
var V = w.date, D = w.utc, E = w.args;
|
|
@@ -7741,14 +7741,14 @@ const nd = (e) => {
|
|
|
7741
7741
|
required: o,
|
|
7742
7742
|
selectionValues: s,
|
|
7743
7743
|
readOnly: a
|
|
7744
|
-
} = i, l = t == null ? void 0 : t.split(","), [
|
|
7744
|
+
} = i, l = t == null ? void 0 : t.split(","), [d, c] = T([]), [f, u] = T();
|
|
7745
7745
|
return pe(() => {
|
|
7746
7746
|
if (!t) {
|
|
7747
|
-
|
|
7747
|
+
u(void 0), c([]);
|
|
7748
7748
|
return;
|
|
7749
7749
|
}
|
|
7750
7750
|
const m = t && l && l[0], v = t && l && l[1] && parseInt(l[1]);
|
|
7751
|
-
c([v, void 0]),
|
|
7751
|
+
c([v, void 0]), u(m);
|
|
7752
7752
|
}, [t]), /* @__PURE__ */ P(Ce, {
|
|
7753
7753
|
gutter: 8,
|
|
7754
7754
|
wrap: !1,
|
|
@@ -7762,8 +7762,8 @@ const nd = (e) => {
|
|
|
7762
7762
|
required: o
|
|
7763
7763
|
}),
|
|
7764
7764
|
onChange: (m) => {
|
|
7765
|
-
|
|
7766
|
-
let v =
|
|
7765
|
+
u(m);
|
|
7766
|
+
let v = d[0] || 0;
|
|
7767
7767
|
m !== f && (c([]), v = 0);
|
|
7768
7768
|
const p = `${m},${v}`;
|
|
7769
7769
|
p !== t && (r == null || r(p));
|
|
@@ -7779,7 +7779,7 @@ const nd = (e) => {
|
|
|
7779
7779
|
readonly: a,
|
|
7780
7780
|
required: o
|
|
7781
7781
|
}),
|
|
7782
|
-
value:
|
|
7782
|
+
value: d,
|
|
7783
7783
|
onChange: (m) => {
|
|
7784
7784
|
c(m);
|
|
7785
7785
|
const v = `${f},${m[0] || 0}`;
|
|
@@ -7814,18 +7814,18 @@ const nd = (e) => {
|
|
|
7814
7814
|
filenameField: a
|
|
7815
7815
|
} = t, {
|
|
7816
7816
|
token: l
|
|
7817
|
-
} = sd(),
|
|
7817
|
+
} = sd(), d = s && !o ? {
|
|
7818
7818
|
backgroundColor: l.colorPrimaryBg
|
|
7819
|
-
} : void 0, c =
|
|
7819
|
+
} : void 0, c = de(null), {
|
|
7820
7820
|
setFieldValue: f,
|
|
7821
|
-
getFieldValue:
|
|
7821
|
+
getFieldValue: u
|
|
7822
7822
|
} = Y(Ne) || {}, {
|
|
7823
7823
|
t: m
|
|
7824
7824
|
} = Y(we), v = r ? ba(r) : "", p = (_) => {
|
|
7825
7825
|
i == null || i(_);
|
|
7826
7826
|
};
|
|
7827
7827
|
async function h() {
|
|
7828
|
-
const _ = await Dt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), D =
|
|
7828
|
+
const _ = await Dt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), D = u(a), E = u("name");
|
|
7829
7829
|
V.href = w, V.download = D || E, V.click();
|
|
7830
7830
|
}
|
|
7831
7831
|
async function g() {
|
|
@@ -7857,7 +7857,7 @@ const nd = (e) => {
|
|
|
7857
7857
|
}), /* @__PURE__ */ n(nt, {
|
|
7858
7858
|
type: "text",
|
|
7859
7859
|
disabled: !0,
|
|
7860
|
-
style:
|
|
7860
|
+
style: d,
|
|
7861
7861
|
value: v
|
|
7862
7862
|
})]
|
|
7863
7863
|
}), /* @__PURE__ */ n(le, {
|
|
@@ -7907,7 +7907,7 @@ function Zn(e) {
|
|
|
7907
7907
|
previousView: a
|
|
7908
7908
|
} = e, {
|
|
7909
7909
|
t: l,
|
|
7910
|
-
lang:
|
|
7910
|
+
lang: d
|
|
7911
7911
|
} = Y(we);
|
|
7912
7912
|
function c() {
|
|
7913
7913
|
const m = r.map((v, p) => /* @__PURE__ */ n(He.Item, {
|
|
@@ -7936,7 +7936,7 @@ function Zn(e) {
|
|
|
7936
7936
|
})
|
|
7937
7937
|
}, v.view_id || p));
|
|
7938
7938
|
return /* @__PURE__ */ n(He, {
|
|
7939
|
-
onClick:
|
|
7939
|
+
onClick: u,
|
|
7940
7940
|
children: /* @__PURE__ */ n(He.ItemGroup, {
|
|
7941
7941
|
title: l("viewAs"),
|
|
7942
7942
|
children: m
|
|
@@ -7946,7 +7946,7 @@ function Zn(e) {
|
|
|
7946
7946
|
function f(m) {
|
|
7947
7947
|
if (s) {
|
|
7948
7948
|
Wt({
|
|
7949
|
-
lang:
|
|
7949
|
+
lang: d,
|
|
7950
7950
|
onOk: () => {
|
|
7951
7951
|
m();
|
|
7952
7952
|
}
|
|
@@ -7955,7 +7955,7 @@ function Zn(e) {
|
|
|
7955
7955
|
}
|
|
7956
7956
|
m();
|
|
7957
7957
|
}
|
|
7958
|
-
function
|
|
7958
|
+
function u(m) {
|
|
7959
7959
|
f(() => {
|
|
7960
7960
|
const v = r.find((p) => p.view_id === parseInt(m.key));
|
|
7961
7961
|
i(v);
|
|
@@ -7974,7 +7974,7 @@ function Zn(e) {
|
|
|
7974
7974
|
borderBottomRightRadius: 0
|
|
7975
7975
|
},
|
|
7976
7976
|
onClick: () => {
|
|
7977
|
-
|
|
7977
|
+
u({
|
|
7978
7978
|
key: a == null ? void 0 : a.view_id
|
|
7979
7979
|
});
|
|
7980
7980
|
},
|
|
@@ -8008,19 +8008,19 @@ function _t(e) {
|
|
|
8008
8008
|
disabled: a = !1
|
|
8009
8009
|
} = e;
|
|
8010
8010
|
function l() {
|
|
8011
|
-
const c = i == null ? void 0 : i.map((f,
|
|
8011
|
+
const c = i == null ? void 0 : i.map((f, u) => f.name === "divider" ? /* @__PURE__ */ n(He.Divider, {}, "divider" + u) : /* @__PURE__ */ n(He.Item, {
|
|
8012
8012
|
children: f.name
|
|
8013
8013
|
}, f.id));
|
|
8014
8014
|
return /* @__PURE__ */ n(He, {
|
|
8015
|
-
onClick:
|
|
8015
|
+
onClick: d,
|
|
8016
8016
|
children: /* @__PURE__ */ n(He.ItemGroup, {
|
|
8017
8017
|
title: r,
|
|
8018
8018
|
children: c
|
|
8019
8019
|
})
|
|
8020
8020
|
});
|
|
8021
8021
|
}
|
|
8022
|
-
function
|
|
8023
|
-
const f = i.find((
|
|
8022
|
+
function d(c) {
|
|
8023
|
+
const f = i.find((u) => isNaN(c.key) ? u.id === c.key : u.id === parseInt(c.key));
|
|
8024
8024
|
o(f);
|
|
8025
8025
|
}
|
|
8026
8026
|
return /* @__PURE__ */ n(Bt, {
|
|
@@ -8104,10 +8104,10 @@ async function Mo(e, t, r) {
|
|
|
8104
8104
|
create_uid: s,
|
|
8105
8105
|
id: a,
|
|
8106
8106
|
write_date: l,
|
|
8107
|
-
write_uid:
|
|
8107
|
+
write_uid: d
|
|
8108
8108
|
} = i;
|
|
8109
8109
|
ct(/* @__PURE__ */ P("div", {
|
|
8110
|
-
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " +
|
|
8110
|
+
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]
|
|
8111
8111
|
}));
|
|
8112
8112
|
}
|
|
8113
8113
|
const ud = (e) => {
|
|
@@ -8126,7 +8126,7 @@ const ud = (e) => {
|
|
|
8126
8126
|
})]
|
|
8127
8127
|
});
|
|
8128
8128
|
return r ? l : /* @__PURE__ */ n(si, {
|
|
8129
|
-
onVisibleChange: (
|
|
8129
|
+
onVisibleChange: (d) => a(d),
|
|
8130
8130
|
visible: s,
|
|
8131
8131
|
placement: "bottom",
|
|
8132
8132
|
content: fd(e, a, o),
|
|
@@ -8141,7 +8141,7 @@ const ud = (e) => {
|
|
|
8141
8141
|
onAddNewAttachment: s,
|
|
8142
8142
|
onopenAttachmentLink: a,
|
|
8143
8143
|
onOpenAttachmentDetail: l,
|
|
8144
|
-
onListAllAttachments:
|
|
8144
|
+
onListAllAttachments: d
|
|
8145
8145
|
} = e;
|
|
8146
8146
|
return o ? /* @__PURE__ */ n(Le, {
|
|
8147
8147
|
style: {
|
|
@@ -8155,7 +8155,7 @@ const ud = (e) => {
|
|
|
8155
8155
|
},
|
|
8156
8156
|
href: "#",
|
|
8157
8157
|
onClick: () => {
|
|
8158
|
-
t(!1),
|
|
8158
|
+
t(!1), d();
|
|
8159
8159
|
},
|
|
8160
8160
|
children: [/* @__PURE__ */ n(Wn, {}), " ", Oe("listAllAttachments", r)]
|
|
8161
8161
|
}), /* @__PURE__ */ P("a", {
|
|
@@ -8229,10 +8229,10 @@ function md(e) {
|
|
|
8229
8229
|
onViewAttachmentDetails: s
|
|
8230
8230
|
} = e, {
|
|
8231
8231
|
formRef: a
|
|
8232
|
-
} = Y(Qe), [l,
|
|
8232
|
+
} = Y(Qe), [l, d] = T(!1), [c, f] = T([]), [u, m] = T(!1), {
|
|
8233
8233
|
t: v
|
|
8234
8234
|
} = Y(we), p = $e(async () => {
|
|
8235
|
-
|
|
8235
|
+
d(!0);
|
|
8236
8236
|
try {
|
|
8237
8237
|
const y = await H.getHandler().readObjects({
|
|
8238
8238
|
model: "ir.attachment",
|
|
@@ -8249,7 +8249,7 @@ function md(e) {
|
|
|
8249
8249
|
} catch (y) {
|
|
8250
8250
|
Ue(y);
|
|
8251
8251
|
}
|
|
8252
|
-
|
|
8252
|
+
d(!1);
|
|
8253
8253
|
}, t), h = $e(async (y) => {
|
|
8254
8254
|
if (y.link) {
|
|
8255
8255
|
window.open(y.link);
|
|
@@ -8289,7 +8289,7 @@ function md(e) {
|
|
|
8289
8289
|
onOpenAttachmentDetail: g
|
|
8290
8290
|
}), /* @__PURE__ */ n(Ge, {
|
|
8291
8291
|
title: v("downloadingAttachment"),
|
|
8292
|
-
open:
|
|
8292
|
+
open: u,
|
|
8293
8293
|
footer: null,
|
|
8294
8294
|
closable: !1,
|
|
8295
8295
|
centered: !0,
|
|
@@ -8309,10 +8309,10 @@ function hd({
|
|
|
8309
8309
|
formHasChanges: s,
|
|
8310
8310
|
formIsSaving: a,
|
|
8311
8311
|
currentId: l,
|
|
8312
|
-
results:
|
|
8312
|
+
results: d,
|
|
8313
8313
|
setCurrentItemIndex: c,
|
|
8314
8314
|
currentItemIndex: f,
|
|
8315
|
-
setCurrentId:
|
|
8315
|
+
setCurrentId: u,
|
|
8316
8316
|
currentModel: m,
|
|
8317
8317
|
setRemovingItem: v,
|
|
8318
8318
|
removingItem: p,
|
|
@@ -8360,10 +8360,10 @@ function hd({
|
|
|
8360
8360
|
L();
|
|
8361
8361
|
}
|
|
8362
8362
|
function N() {
|
|
8363
|
-
|
|
8363
|
+
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));
|
|
8364
8364
|
}
|
|
8365
8365
|
function k() {
|
|
8366
|
-
|
|
8366
|
+
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));
|
|
8367
8367
|
}
|
|
8368
8368
|
function j() {
|
|
8369
8369
|
Yt({
|
|
@@ -8380,10 +8380,10 @@ function hd({
|
|
|
8380
8380
|
model: m,
|
|
8381
8381
|
ids: [l]
|
|
8382
8382
|
});
|
|
8383
|
-
const L =
|
|
8383
|
+
const L = d == null ? void 0 : d.filter((ee) => ee.id !== l);
|
|
8384
8384
|
y == null || y(L);
|
|
8385
8385
|
let B = 0;
|
|
8386
|
-
f > 0 && f <=
|
|
8386
|
+
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));
|
|
8387
8387
|
} catch (L) {
|
|
8388
8388
|
nn(JSON.stringify(L));
|
|
8389
8389
|
} finally {
|
|
@@ -8607,14 +8607,14 @@ const {
|
|
|
8607
8607
|
} = e, {
|
|
8608
8608
|
id: a,
|
|
8609
8609
|
readOnly: l,
|
|
8610
|
-
required:
|
|
8610
|
+
required: d
|
|
8611
8611
|
} = t, {
|
|
8612
8612
|
token: c
|
|
8613
|
-
} = pd(), f =
|
|
8613
|
+
} = pd(), f = d && !l ? {
|
|
8614
8614
|
backgroundColor: c.colorPrimaryBg
|
|
8615
|
-
} : void 0,
|
|
8615
|
+
} : void 0, u = Y(Ne), {
|
|
8616
8616
|
elementHasLostFocus: m
|
|
8617
|
-
} =
|
|
8617
|
+
} = u || {}, [v, p] = T(!1), [h, g] = T(!1);
|
|
8618
8618
|
pe(() => {
|
|
8619
8619
|
l && !v && g(!1), !r && !l && (p(!0), g(!0));
|
|
8620
8620
|
}, [v, l]);
|
|
@@ -8710,9 +8710,9 @@ const {
|
|
|
8710
8710
|
isSearching: o
|
|
8711
8711
|
} = e, {
|
|
8712
8712
|
t: s
|
|
8713
|
-
} = Y(we);
|
|
8714
|
-
function
|
|
8715
|
-
r(
|
|
8713
|
+
} = Y(we), a = de();
|
|
8714
|
+
function l(d) {
|
|
8715
|
+
r(d.id);
|
|
8716
8716
|
}
|
|
8717
8717
|
return /* @__PURE__ */ n(Ge, {
|
|
8718
8718
|
title: s("goToResourceId"),
|
|
@@ -8722,9 +8722,13 @@ const {
|
|
|
8722
8722
|
destroyOnClose: !0,
|
|
8723
8723
|
onCancel: i,
|
|
8724
8724
|
maskClosable: !1,
|
|
8725
|
+
afterOpenChange: (d) => {
|
|
8726
|
+
var c;
|
|
8727
|
+
return d && ((c = a.current) == null ? void 0 : c.focus());
|
|
8728
|
+
},
|
|
8725
8729
|
children: /* @__PURE__ */ P(ot, {
|
|
8726
8730
|
layout: "vertical",
|
|
8727
|
-
onFinish:
|
|
8731
|
+
onFinish: l,
|
|
8728
8732
|
autoComplete: "off",
|
|
8729
8733
|
children: [/* @__PURE__ */ n(ot.Item, {
|
|
8730
8734
|
name: "id",
|
|
@@ -8737,7 +8741,8 @@ const {
|
|
|
8737
8741
|
style: {
|
|
8738
8742
|
width: "100%"
|
|
8739
8743
|
},
|
|
8740
|
-
autoFocus: !0
|
|
8744
|
+
autoFocus: !0,
|
|
8745
|
+
ref: a
|
|
8741
8746
|
})
|
|
8742
8747
|
}), /* @__PURE__ */ n(Ce, {
|
|
8743
8748
|
align: "middle",
|
|
@@ -8821,7 +8826,7 @@ function bd({
|
|
|
8821
8826
|
searchParams: s,
|
|
8822
8827
|
searchVisible: a,
|
|
8823
8828
|
setSearchVisible: l,
|
|
8824
|
-
graphIsLoading:
|
|
8829
|
+
graphIsLoading: d,
|
|
8825
8830
|
previousView: c,
|
|
8826
8831
|
setPreviousView: f
|
|
8827
8832
|
} = Y(Qe);
|
|
@@ -8838,12 +8843,12 @@ function bd({
|
|
|
8838
8843
|
onClick: () => {
|
|
8839
8844
|
l == null || l(!a);
|
|
8840
8845
|
},
|
|
8841
|
-
disabled:
|
|
8846
|
+
disabled: d,
|
|
8842
8847
|
badgeNumber: s == null ? void 0 : s.length
|
|
8843
8848
|
}), /* @__PURE__ */ n(qe, {
|
|
8844
8849
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
8845
8850
|
tooltip: t("refresh"),
|
|
8846
|
-
disabled:
|
|
8851
|
+
disabled: d,
|
|
8847
8852
|
loading: !1,
|
|
8848
8853
|
onClick: () => {
|
|
8849
8854
|
e();
|
|
@@ -8851,8 +8856,8 @@ function bd({
|
|
|
8851
8856
|
}), /* @__PURE__ */ n(Zn, {
|
|
8852
8857
|
currentView: i,
|
|
8853
8858
|
availableViews: r,
|
|
8854
|
-
onChangeView: (
|
|
8855
|
-
f == null || f(i), o == null || o(
|
|
8859
|
+
onChangeView: (u) => {
|
|
8860
|
+
f == null || f(i), o == null || o(u);
|
|
8856
8861
|
},
|
|
8857
8862
|
disabled: !1,
|
|
8858
8863
|
previousView: c
|
|
@@ -8875,16 +8880,16 @@ function yn(e) {
|
|
|
8875
8880
|
currentId: s,
|
|
8876
8881
|
currentItemIndex: a,
|
|
8877
8882
|
results: l,
|
|
8878
|
-
totalItems:
|
|
8883
|
+
totalItems: d,
|
|
8879
8884
|
selectedRowItems: c
|
|
8880
8885
|
} = Y(Qe), {
|
|
8881
8886
|
t: f
|
|
8882
8887
|
} = Y(we), {
|
|
8883
|
-
token:
|
|
8888
|
+
token: u
|
|
8884
8889
|
} = xd();
|
|
8885
8890
|
function m() {
|
|
8886
8891
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8887
|
-
return s ?
|
|
8892
|
+
return s ? d === 0 ? /* @__PURE__ */ P(ne, {
|
|
8888
8893
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8889
8894
|
copyable: {
|
|
8890
8895
|
icon: /* @__PURE__ */ n(Un, {
|
|
@@ -8896,7 +8901,7 @@ function yn(e) {
|
|
|
8896
8901
|
children: s
|
|
8897
8902
|
}), ")"]
|
|
8898
8903
|
}) : /* @__PURE__ */ P(ne, {
|
|
8899
|
-
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ",
|
|
8904
|
+
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", d, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8900
8905
|
copyable: !0,
|
|
8901
8906
|
children: s
|
|
8902
8907
|
}), ")"]
|
|
@@ -8930,8 +8935,8 @@ function yn(e) {
|
|
|
8930
8935
|
className: "shadow-md",
|
|
8931
8936
|
style: {
|
|
8932
8937
|
padding: "1em",
|
|
8933
|
-
borderRadius:
|
|
8934
|
-
backgroundColor:
|
|
8938
|
+
borderRadius: u.borderRadius,
|
|
8939
|
+
backgroundColor: u.colorPrimaryBg
|
|
8935
8940
|
},
|
|
8936
8941
|
align: "middle",
|
|
8937
8942
|
children: [/* @__PURE__ */ P(le, {
|
|
@@ -8964,9 +8969,9 @@ const Sd = (e) => {
|
|
|
8964
8969
|
domain: s,
|
|
8965
8970
|
formView: a,
|
|
8966
8971
|
treeView: l
|
|
8967
|
-
} = e,
|
|
8972
|
+
} = e, d = de(), c = Y(Qe), {
|
|
8968
8973
|
setResults: f = void 0,
|
|
8969
|
-
setCurrentItemIndex:
|
|
8974
|
+
setCurrentItemIndex: u = void 0,
|
|
8970
8975
|
currentId: m = void 0,
|
|
8971
8976
|
results: v = void 0,
|
|
8972
8977
|
setSelectedRowItems: p = void 0,
|
|
@@ -8987,7 +8992,7 @@ const Sd = (e) => {
|
|
|
8987
8992
|
} = c || {}, [R, F] = T(!0);
|
|
8988
8993
|
pe(() => {
|
|
8989
8994
|
var j;
|
|
8990
|
-
(j =
|
|
8995
|
+
(j = d.current) == null || j.refresh();
|
|
8991
8996
|
}, [C]), pe(() => {
|
|
8992
8997
|
t.view_id !== $.view_id && F(!0);
|
|
8993
8998
|
}, [$]);
|
|
@@ -9011,7 +9016,7 @@ const Sd = (e) => {
|
|
|
9011
9016
|
treeView: l,
|
|
9012
9017
|
sorter: O,
|
|
9013
9018
|
setSorter: _,
|
|
9014
|
-
setCurrentItemIndex:
|
|
9019
|
+
setCurrentItemIndex: u,
|
|
9015
9020
|
setResultsActionView: f,
|
|
9016
9021
|
resultsActionView: v,
|
|
9017
9022
|
domain: s,
|
|
@@ -9025,7 +9030,7 @@ const Sd = (e) => {
|
|
|
9025
9030
|
title: t.name,
|
|
9026
9031
|
children: /* @__PURE__ */ n(bd, {
|
|
9027
9032
|
refreshGraph: () => {
|
|
9028
|
-
|
|
9033
|
+
d.current.refresh();
|
|
9029
9034
|
}
|
|
9030
9035
|
})
|
|
9031
9036
|
}), /* @__PURE__ */ n(go, {
|
|
@@ -9047,7 +9052,7 @@ const Sd = (e) => {
|
|
|
9047
9052
|
searchValues: S,
|
|
9048
9053
|
showLimitOptions: !1
|
|
9049
9054
|
}), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
|
|
9050
|
-
ref:
|
|
9055
|
+
ref: d,
|
|
9051
9056
|
view_id: t.view_id,
|
|
9052
9057
|
model: i,
|
|
9053
9058
|
context: o,
|
|
@@ -9065,10 +9070,10 @@ const Sd = (e) => {
|
|
|
9065
9070
|
domain: s,
|
|
9066
9071
|
formView: a,
|
|
9067
9072
|
context: l,
|
|
9068
|
-
defaultValues:
|
|
9073
|
+
defaultValues: d,
|
|
9069
9074
|
forcedValues: c,
|
|
9070
9075
|
results: f,
|
|
9071
|
-
setResults:
|
|
9076
|
+
setResults: u,
|
|
9072
9077
|
setCurrentItemIndex: m
|
|
9073
9078
|
} = e;
|
|
9074
9079
|
return t ? /* @__PURE__ */ P(ne, {
|
|
@@ -9080,14 +9085,14 @@ const Sd = (e) => {
|
|
|
9080
9085
|
rootForm: !0,
|
|
9081
9086
|
ref: r,
|
|
9082
9087
|
model: i,
|
|
9083
|
-
defaultValues:
|
|
9088
|
+
defaultValues: d,
|
|
9084
9089
|
forcedValues: c,
|
|
9085
9090
|
formView: a,
|
|
9086
9091
|
actionDomain: s,
|
|
9087
9092
|
id: o,
|
|
9088
9093
|
parentContext: l,
|
|
9089
9094
|
onSubmitSucceed: (v, p) => {
|
|
9090
|
-
f.findIndex((g) => g.id === v) === -1 && (f.push(p),
|
|
9095
|
+
f.findIndex((g) => g.id === v) === -1 && (f.push(p), u(f), m(f.length - 1));
|
|
9091
9096
|
}
|
|
9092
9097
|
})]
|
|
9093
9098
|
}) : null;
|
|
@@ -9100,7 +9105,7 @@ function Fd(e) {
|
|
|
9100
9105
|
} = e, {
|
|
9101
9106
|
t: o
|
|
9102
9107
|
} = Y(we), [s] = ot.useForm(), [a, l] = T(!1);
|
|
9103
|
-
function
|
|
9108
|
+
function d(f) {
|
|
9104
9109
|
t(f.search);
|
|
9105
9110
|
}
|
|
9106
9111
|
pe(() => {
|
|
@@ -9115,7 +9120,7 @@ function Fd(e) {
|
|
|
9115
9120
|
}
|
|
9116
9121
|
return /* @__PURE__ */ n(ot, {
|
|
9117
9122
|
form: s,
|
|
9118
|
-
onFinish:
|
|
9123
|
+
onFinish: d,
|
|
9119
9124
|
autoComplete: "off",
|
|
9120
9125
|
children: /* @__PURE__ */ P(Ce, {
|
|
9121
9126
|
align: "middle",
|
|
@@ -9172,10 +9177,10 @@ function Id(e) {
|
|
|
9172
9177
|
setRemovingItem: s,
|
|
9173
9178
|
removingItem: a,
|
|
9174
9179
|
duplicatingItem: l,
|
|
9175
|
-
setDuplicatingItem:
|
|
9180
|
+
setDuplicatingItem: d,
|
|
9176
9181
|
currentModel: c,
|
|
9177
9182
|
searchTreeRef: f,
|
|
9178
|
-
setCurrentId:
|
|
9183
|
+
setCurrentId: u,
|
|
9179
9184
|
setCurrentItemIndex: m,
|
|
9180
9185
|
searchParams: v,
|
|
9181
9186
|
searchVisible: p,
|
|
@@ -9215,7 +9220,7 @@ function Id(e) {
|
|
|
9215
9220
|
s == null || s(!0), await H.getHandler().delete({
|
|
9216
9221
|
model: c,
|
|
9217
9222
|
ids: o.map((L) => L.id)
|
|
9218
|
-
}),
|
|
9223
|
+
}), u == null || u(void 0), m == null || m(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9219
9224
|
} catch (L) {
|
|
9220
9225
|
Ue(L);
|
|
9221
9226
|
} finally {
|
|
@@ -9225,7 +9230,7 @@ function Id(e) {
|
|
|
9225
9230
|
async function q() {
|
|
9226
9231
|
var U;
|
|
9227
9232
|
try {
|
|
9228
|
-
|
|
9233
|
+
d == null || d(!0);
|
|
9229
9234
|
const L = o[0].id;
|
|
9230
9235
|
await H.getHandler().duplicate({
|
|
9231
9236
|
id: L,
|
|
@@ -9237,7 +9242,7 @@ function Id(e) {
|
|
|
9237
9242
|
} catch (L) {
|
|
9238
9243
|
Ue(L);
|
|
9239
9244
|
} finally {
|
|
9240
|
-
|
|
9245
|
+
d == null || d(!1);
|
|
9241
9246
|
}
|
|
9242
9247
|
}
|
|
9243
9248
|
function W(U) {
|
|
@@ -9430,10 +9435,10 @@ const _d = (e) => {
|
|
|
9430
9435
|
formView: s,
|
|
9431
9436
|
treeView: a,
|
|
9432
9437
|
domain: l,
|
|
9433
|
-
setCurrentItemIndex:
|
|
9438
|
+
setCurrentItemIndex: d,
|
|
9434
9439
|
results: c,
|
|
9435
9440
|
setCurrentId: f,
|
|
9436
|
-
setCurrentView:
|
|
9441
|
+
setCurrentView: u,
|
|
9437
9442
|
availableViews: m,
|
|
9438
9443
|
searchTreeNameSearch: v
|
|
9439
9444
|
} = e, {
|
|
@@ -9462,9 +9467,9 @@ const _d = (e) => {
|
|
|
9462
9467
|
} = g;
|
|
9463
9468
|
f(y);
|
|
9464
9469
|
const O = c.findIndex((w) => w.id === y);
|
|
9465
|
-
h == null || h(p),
|
|
9470
|
+
h == null || h(p), d(O);
|
|
9466
9471
|
const _ = m.find((w) => w.type === "form");
|
|
9467
|
-
|
|
9472
|
+
u(_);
|
|
9468
9473
|
}
|
|
9469
9474
|
})]
|
|
9470
9475
|
}) : null;
|
|
@@ -9537,7 +9542,7 @@ function Ad() {
|
|
|
9537
9542
|
const Rd = (e) => {
|
|
9538
9543
|
const {
|
|
9539
9544
|
dashboardData: t
|
|
9540
|
-
} = e, r =
|
|
9545
|
+
} = e, r = de(), i = Y(st), {
|
|
9541
9546
|
openShortcut: o
|
|
9542
9547
|
} = i || {};
|
|
9543
9548
|
return t ? /* @__PURE__ */ P(Dd, {
|
|
@@ -9579,10 +9584,10 @@ function Md(e, t) {
|
|
|
9579
9584
|
views: s,
|
|
9580
9585
|
title: a,
|
|
9581
9586
|
setCanWeClose: l,
|
|
9582
|
-
tabKey:
|
|
9587
|
+
tabKey: d,
|
|
9583
9588
|
initialView: c,
|
|
9584
9589
|
formDefaultValues: f,
|
|
9585
|
-
formForcedValues:
|
|
9590
|
+
formForcedValues: u = {},
|
|
9586
9591
|
res_id: m = !1,
|
|
9587
9592
|
action_id: v,
|
|
9588
9593
|
action_type: p,
|
|
@@ -9590,7 +9595,7 @@ function Md(e, t) {
|
|
|
9590
9595
|
limit: g
|
|
9591
9596
|
} = 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(), {
|
|
9592
9597
|
t: B
|
|
9593
|
-
} = Y(we), ee =
|
|
9598
|
+
} = Y(we), ee = de(), Z = de(), ie = Y(st), {
|
|
9594
9599
|
setCurrentView: Q,
|
|
9595
9600
|
setCurrentId: J,
|
|
9596
9601
|
tabs: fe,
|
|
@@ -9614,12 +9619,12 @@ function Md(e, t) {
|
|
|
9614
9619
|
D(!0);
|
|
9615
9620
|
const te = [], Fe = [];
|
|
9616
9621
|
for (const me of s) {
|
|
9617
|
-
const [Te,
|
|
9618
|
-
|
|
9622
|
+
const [Te, ue] = me;
|
|
9623
|
+
ue !== "dashboard" ? Fe.push({
|
|
9619
9624
|
viewTuple: me,
|
|
9620
9625
|
promise: H.getHandler().getView({
|
|
9621
9626
|
model: i,
|
|
9622
|
-
type:
|
|
9627
|
+
type: ue,
|
|
9623
9628
|
id: Te,
|
|
9624
9629
|
context: o
|
|
9625
9630
|
})
|
|
@@ -9632,7 +9637,7 @@ function Md(e, t) {
|
|
|
9632
9637
|
if (!me)
|
|
9633
9638
|
continue;
|
|
9634
9639
|
const [, Te] = me.viewTuple;
|
|
9635
|
-
let
|
|
9640
|
+
let ue = me.info;
|
|
9636
9641
|
switch (Te) {
|
|
9637
9642
|
case "dashboard": {
|
|
9638
9643
|
const Xe = s.find((at) => {
|
|
@@ -9659,14 +9664,14 @@ function Md(e, t) {
|
|
|
9659
9664
|
}
|
|
9660
9665
|
case "form": {
|
|
9661
9666
|
te.push({
|
|
9662
|
-
...
|
|
9667
|
+
...ue,
|
|
9663
9668
|
type: Te
|
|
9664
9669
|
});
|
|
9665
9670
|
break;
|
|
9666
9671
|
}
|
|
9667
9672
|
case "tree": {
|
|
9668
9673
|
te.push({
|
|
9669
|
-
...
|
|
9674
|
+
...ue,
|
|
9670
9675
|
isExpandable: h,
|
|
9671
9676
|
type: Te
|
|
9672
9677
|
});
|
|
@@ -9674,7 +9679,7 @@ function Md(e, t) {
|
|
|
9674
9679
|
}
|
|
9675
9680
|
case "graph": {
|
|
9676
9681
|
te.push({
|
|
9677
|
-
...
|
|
9682
|
+
...ue,
|
|
9678
9683
|
type: Te
|
|
9679
9684
|
});
|
|
9680
9685
|
break;
|
|
@@ -9683,22 +9688,22 @@ function Md(e, t) {
|
|
|
9683
9688
|
}
|
|
9684
9689
|
let ce;
|
|
9685
9690
|
!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}.
|
|
9686
|
-
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(
|
|
9691
|
+
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);
|
|
9687
9692
|
};
|
|
9688
9693
|
l({
|
|
9689
|
-
tabKey:
|
|
9694
|
+
tabKey: d,
|
|
9690
9695
|
canWeClose: Se
|
|
9691
9696
|
}), pe(() => {
|
|
9692
9697
|
const te = _.find((Me) => Me.type === "tree"), Fe = _.find((Me) => c.id ? Me.type === c.type && Me.view_id === c.id : Me.type === c.type);
|
|
9693
9698
|
ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
|
|
9694
9699
|
}, [i, s, m]), pe(() => {
|
|
9695
|
-
be ===
|
|
9700
|
+
be === d && (J == null || J(b), Q == null || Q(y));
|
|
9696
9701
|
}, [fe, be]);
|
|
9697
9702
|
async function Se() {
|
|
9698
9703
|
return y && y.type === "form" ? await ee.current.cancelUnsavedChanges() : !0;
|
|
9699
9704
|
}
|
|
9700
9705
|
async function De() {
|
|
9701
|
-
be ===
|
|
9706
|
+
be === d && (y.type === "form" && !await ee.current.cancelUnsavedChanges() || q(!0));
|
|
9702
9707
|
}
|
|
9703
9708
|
async function Ve(te) {
|
|
9704
9709
|
var me;
|
|
@@ -9751,7 +9756,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9751
9756
|
context: o,
|
|
9752
9757
|
domain: r,
|
|
9753
9758
|
defaultValues: f,
|
|
9754
|
-
forcedValues:
|
|
9759
|
+
forcedValues: u,
|
|
9755
9760
|
results: F,
|
|
9756
9761
|
setResults: A,
|
|
9757
9762
|
setCurrentItemIndex: R
|
|
@@ -9852,10 +9857,10 @@ async function Ed({
|
|
|
9852
9857
|
values: r,
|
|
9853
9858
|
context: { ...t, ...a }
|
|
9854
9859
|
}) : [], {
|
|
9855
|
-
res_model:
|
|
9860
|
+
res_model: d,
|
|
9856
9861
|
views: c,
|
|
9857
9862
|
name: f,
|
|
9858
|
-
limit:
|
|
9863
|
+
limit: u,
|
|
9859
9864
|
view_type: m
|
|
9860
9865
|
} = s, v = m === "tree", p = [];
|
|
9861
9866
|
for (const O of c) {
|
|
@@ -9864,7 +9869,7 @@ async function Ed({
|
|
|
9864
9869
|
p.push(O);
|
|
9865
9870
|
else {
|
|
9866
9871
|
const { view_id: V } = await H.getHandler().getView({
|
|
9867
|
-
model:
|
|
9872
|
+
model: d,
|
|
9868
9873
|
type: w,
|
|
9869
9874
|
id: _,
|
|
9870
9875
|
context: { ...t, ...a }
|
|
@@ -9879,11 +9884,11 @@ async function Ed({
|
|
|
9879
9884
|
actionType: i,
|
|
9880
9885
|
key: Jr(),
|
|
9881
9886
|
views: c,
|
|
9882
|
-
model:
|
|
9887
|
+
model: d,
|
|
9883
9888
|
context: { ...t, ...a },
|
|
9884
9889
|
domain: l,
|
|
9885
9890
|
initialView: y,
|
|
9886
|
-
limit:
|
|
9891
|
+
limit: u,
|
|
9887
9892
|
treeExpandable: v
|
|
9888
9893
|
};
|
|
9889
9894
|
}
|
|
@@ -9997,7 +10002,7 @@ function jd(e) {
|
|
|
9997
10002
|
domain: s = [],
|
|
9998
10003
|
visible: a = !0,
|
|
9999
10004
|
parentContext: l = {}
|
|
10000
|
-
} = e, [
|
|
10005
|
+
} = 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) => {
|
|
10001
10006
|
q(!0), _(J), V((J - 1) * D.current);
|
|
10002
10007
|
}, U = async () => {
|
|
10003
10008
|
const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
|
|
@@ -10040,9 +10045,9 @@ function jd(e) {
|
|
|
10040
10045
|
!f || a && L();
|
|
10041
10046
|
}, [O, w, f, a]);
|
|
10042
10047
|
const B = async (J) => {
|
|
10043
|
-
|
|
10048
|
+
u(!1), c(!0), k(void 0);
|
|
10044
10049
|
try {
|
|
10045
|
-
J === "action" ? await ee() : await Z(),
|
|
10050
|
+
J === "action" ? await ee() : await Z(), u(!0);
|
|
10046
10051
|
} catch (fe) {
|
|
10047
10052
|
k(fe);
|
|
10048
10053
|
} finally {
|
|
@@ -10123,7 +10128,7 @@ function jd(e) {
|
|
|
10123
10128
|
message: N,
|
|
10124
10129
|
type: "error",
|
|
10125
10130
|
banner: !0
|
|
10126
|
-
}) :
|
|
10131
|
+
}) : d ? /* @__PURE__ */ n(Le, {
|
|
10127
10132
|
style: {
|
|
10128
10133
|
padding: "2rem"
|
|
10129
10134
|
}
|
|
@@ -10163,11 +10168,11 @@ function Yd(e, t) {
|
|
|
10163
10168
|
context: i = {},
|
|
10164
10169
|
id: o,
|
|
10165
10170
|
configAction: s
|
|
10166
|
-
} = e, [a, l] = T([]), [
|
|
10171
|
+
} = e, [a, l] = T([]), [d, c] = T(!1), [f, u] = T(), {
|
|
10167
10172
|
setIsLoading: m,
|
|
10168
10173
|
openAction: v,
|
|
10169
10174
|
moveItemsEnabled: p
|
|
10170
|
-
} = Y(Xn), h =
|
|
10175
|
+
} = Y(Xn), h = de(), g = de();
|
|
10171
10176
|
pe(() => {
|
|
10172
10177
|
y();
|
|
10173
10178
|
}, [r, o, i]), bt(t, () => ({
|
|
@@ -10177,7 +10182,7 @@ function Yd(e, t) {
|
|
|
10177
10182
|
configDashboard: E
|
|
10178
10183
|
}));
|
|
10179
10184
|
async function y() {
|
|
10180
|
-
c(!0), m(!0),
|
|
10185
|
+
c(!0), m(!0), u(void 0);
|
|
10181
10186
|
try {
|
|
10182
10187
|
const b = await O(), C = await w(b), S = b.fields[On].relation, x = C[On].items;
|
|
10183
10188
|
g.current = b.fields;
|
|
@@ -10188,7 +10193,7 @@ function Yd(e, t) {
|
|
|
10188
10193
|
}), R = await V($);
|
|
10189
10194
|
l(R), c(!1), m(!1);
|
|
10190
10195
|
} catch (b) {
|
|
10191
|
-
|
|
10196
|
+
u(JSON.stringify(b));
|
|
10192
10197
|
}
|
|
10193
10198
|
}
|
|
10194
10199
|
async function O() {
|
|
@@ -10302,7 +10307,7 @@ function Yd(e, t) {
|
|
|
10302
10307
|
message: f,
|
|
10303
10308
|
type: "error",
|
|
10304
10309
|
banner: !0
|
|
10305
|
-
})) :
|
|
10310
|
+
})) : d ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Ld, {
|
|
10306
10311
|
onPositionItemsChanged: D,
|
|
10307
10312
|
children: a.map((b, C) => {
|
|
10308
10313
|
const {
|
|
@@ -10448,7 +10453,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10448
10453
|
onChange: i
|
|
10449
10454
|
} = e, {
|
|
10450
10455
|
items: o = []
|
|
10451
|
-
} = t || {}, s = o.filter((b) => b.operation !== "pendingRemove").map((b) => b.id), [a, l] = T([]), [
|
|
10456
|
+
} = t || {}, s = o.filter((b) => b.operation !== "pendingRemove").map((b) => b.id), [a, l] = T([]), [d, c] = T(), [f, u] = T(!1), {
|
|
10452
10457
|
relation: m,
|
|
10453
10458
|
context: v,
|
|
10454
10459
|
readOnly: p,
|
|
@@ -10466,7 +10471,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10466
10471
|
});
|
|
10467
10472
|
};
|
|
10468
10473
|
async function w() {
|
|
10469
|
-
|
|
10474
|
+
u(!0);
|
|
10470
10475
|
let b = [];
|
|
10471
10476
|
if (r.domain) {
|
|
10472
10477
|
const C = await H.getHandler().evalDomain({
|
|
@@ -10501,12 +10506,12 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10501
10506
|
} catch (C) {
|
|
10502
10507
|
c(C);
|
|
10503
10508
|
} finally {
|
|
10504
|
-
|
|
10509
|
+
u(!1);
|
|
10505
10510
|
}
|
|
10506
|
-
if (
|
|
10511
|
+
if (d)
|
|
10507
10512
|
return /* @__PURE__ */ n(Ze, {
|
|
10508
10513
|
className: "mt-10",
|
|
10509
|
-
message:
|
|
10514
|
+
message: d,
|
|
10510
10515
|
type: "error",
|
|
10511
10516
|
banner: !0
|
|
10512
10517
|
});
|
|
@@ -10605,11 +10610,11 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10605
10610
|
selectionValues: o,
|
|
10606
10611
|
readOnly: s,
|
|
10607
10612
|
direction: a
|
|
10608
|
-
} = t, l = Array.from(o.entries()),
|
|
10609
|
-
const [f,
|
|
10613
|
+
} = t, l = Array.from(o.entries()), d = l && l.length && l.map((c) => {
|
|
10614
|
+
const [f, u] = c;
|
|
10610
10615
|
return /* @__PURE__ */ n(nr, {
|
|
10611
10616
|
value: f,
|
|
10612
|
-
children:
|
|
10617
|
+
children: u
|
|
10613
10618
|
}, f);
|
|
10614
10619
|
});
|
|
10615
10620
|
return /* @__PURE__ */ n(nr.Group, {
|
|
@@ -10618,7 +10623,7 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10618
10623
|
value: i,
|
|
10619
10624
|
children: /* @__PURE__ */ n(Ye, {
|
|
10620
10625
|
direction: a,
|
|
10621
|
-
children:
|
|
10626
|
+
children: d
|
|
10622
10627
|
})
|
|
10623
10628
|
});
|
|
10624
10629
|
}, Xd = (e) => {
|
|
@@ -10673,13 +10678,13 @@ const Wd = wt(Yd), Ud = (e) => {
|
|
|
10673
10678
|
selectionValues: i,
|
|
10674
10679
|
errorField: o
|
|
10675
10680
|
} = t, s = Y(Ne), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(r);
|
|
10676
|
-
let
|
|
10677
|
-
return o && (c = s.getFieldValue(o), c && (
|
|
10681
|
+
let d = "process", c = "";
|
|
10682
|
+
return o && (c = s.getFieldValue(o), c && (d = "error")), /* @__PURE__ */ n(rr, {
|
|
10678
10683
|
current: l,
|
|
10679
|
-
status:
|
|
10680
|
-
children: a.map((f,
|
|
10684
|
+
status: d,
|
|
10685
|
+
children: a.map((f, u) => /* @__PURE__ */ n(rr.Step, {
|
|
10681
10686
|
title: f[1],
|
|
10682
|
-
description:
|
|
10687
|
+
description: u === l && d === "error" ? c : null
|
|
10683
10688
|
}))
|
|
10684
10689
|
});
|
|
10685
10690
|
}, nu = (e) => {
|
|
@@ -10724,22 +10729,22 @@ function su(e, t) {
|
|
|
10724
10729
|
globalValues: i = {},
|
|
10725
10730
|
rootContext: o = {},
|
|
10726
10731
|
lang: s
|
|
10727
|
-
} = e, [a, l] = T("welcome"), [
|
|
10732
|
+
} = e, [a, l] = T("welcome"), [d, c] = T([{
|
|
10728
10733
|
title: Oe("welcome", s),
|
|
10729
10734
|
key: "welcome",
|
|
10730
10735
|
closable: !0,
|
|
10731
10736
|
content: /* @__PURE__ */ n(iu, {})
|
|
10732
|
-
}]), f =
|
|
10737
|
+
}]), f = de(/* @__PURE__ */ new Map()), u = de();
|
|
10733
10738
|
bt(t, () => ({
|
|
10734
10739
|
retrieveAndOpenAction: p,
|
|
10735
10740
|
openShortcut: y
|
|
10736
10741
|
}));
|
|
10737
10742
|
function m(w) {
|
|
10738
10743
|
if (w === a) {
|
|
10739
|
-
const V =
|
|
10740
|
-
|
|
10744
|
+
const V = d.findIndex((D) => D.key === w);
|
|
10745
|
+
d[V - 1] && l(d[V - 1].key), d[V + 1] && l(d[V + 1].key);
|
|
10741
10746
|
}
|
|
10742
|
-
c(
|
|
10747
|
+
c(d.filter((V) => V.key !== w)), f.current.delete(w);
|
|
10743
10748
|
}
|
|
10744
10749
|
function v({
|
|
10745
10750
|
tabKey: w,
|
|
@@ -10843,8 +10848,8 @@ function su(e, t) {
|
|
|
10843
10848
|
key: D,
|
|
10844
10849
|
action: E
|
|
10845
10850
|
}) {
|
|
10846
|
-
let b = [...
|
|
10847
|
-
|
|
10851
|
+
let b = [...d];
|
|
10852
|
+
d.length === 1 && d[0].key === "welcome" && (b = [...d.filter((C) => C.key !== "welcome")]), c([...b, {
|
|
10848
10853
|
title: w,
|
|
10849
10854
|
key: D,
|
|
10850
10855
|
closable: !0,
|
|
@@ -11030,7 +11035,7 @@ function su(e, t) {
|
|
|
11030
11035
|
...V
|
|
11031
11036
|
}
|
|
11032
11037
|
});
|
|
11033
|
-
|
|
11038
|
+
u.current.openActionModal({
|
|
11034
11039
|
domain: w,
|
|
11035
11040
|
model: D,
|
|
11036
11041
|
formView: k,
|
|
@@ -11087,7 +11092,7 @@ function su(e, t) {
|
|
|
11087
11092
|
openAction: _,
|
|
11088
11093
|
openRelate: g,
|
|
11089
11094
|
openDefaultActionForModel: O,
|
|
11090
|
-
tabs:
|
|
11095
|
+
tabs: d,
|
|
11091
11096
|
activeKey: a,
|
|
11092
11097
|
onRemoveTab: async (w) => {
|
|
11093
11098
|
const V = f.current.get(w);
|
|
@@ -11097,7 +11102,7 @@ function su(e, t) {
|
|
|
11097
11102
|
l(w);
|
|
11098
11103
|
},
|
|
11099
11104
|
children: /* @__PURE__ */ n(fl, {
|
|
11100
|
-
ref:
|
|
11105
|
+
ref: u,
|
|
11101
11106
|
globalValues: i,
|
|
11102
11107
|
children: r
|
|
11103
11108
|
})
|
|
@@ -11164,8 +11169,8 @@ function lu(e) {
|
|
|
11164
11169
|
style: {
|
|
11165
11170
|
color: a.colorPrimaryActive
|
|
11166
11171
|
},
|
|
11167
|
-
onClick: (
|
|
11168
|
-
|
|
11172
|
+
onClick: (d) => {
|
|
11173
|
+
d.stopPropagation(), r(i);
|
|
11169
11174
|
}
|
|
11170
11175
|
})
|
|
11171
11176
|
})]
|
|
@@ -11220,7 +11225,7 @@ const {
|
|
|
11220
11225
|
onCheckIsFavourite: r,
|
|
11221
11226
|
onAddFavourite: i,
|
|
11222
11227
|
onRemoveFavourite: o
|
|
11223
|
-
} = e, [s, a] = T(!1), [l,
|
|
11228
|
+
} = e, [s, a] = T(!1), [l, d] = T(!1), [c, f] = T([]), [u, m] = T(!0), [v, p] = T(), {
|
|
11224
11229
|
t: h
|
|
11225
11230
|
} = Y(we) || {}, {
|
|
11226
11231
|
token: g
|
|
@@ -11252,10 +11257,10 @@ const {
|
|
|
11252
11257
|
const {
|
|
11253
11258
|
key: I
|
|
11254
11259
|
} = M, N = c.find((k) => k.id === Number(I));
|
|
11255
|
-
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && O(N),
|
|
11260
|
+
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && O(N), d(!1));
|
|
11256
11261
|
}
|
|
11257
11262
|
function S(M) {
|
|
11258
|
-
M && b(),
|
|
11263
|
+
M && b(), d(M);
|
|
11259
11264
|
}
|
|
11260
11265
|
async function x() {
|
|
11261
11266
|
if (!V)
|
|
@@ -11280,7 +11285,7 @@ const {
|
|
|
11280
11285
|
q !== !1 && p(q), a(q !== !1);
|
|
11281
11286
|
}
|
|
11282
11287
|
async function $() {
|
|
11283
|
-
|
|
11288
|
+
d(!1), E == null || E({
|
|
11284
11289
|
model: "ir.ui.view_sc"
|
|
11285
11290
|
});
|
|
11286
11291
|
}
|
|
@@ -11314,7 +11319,7 @@ const {
|
|
|
11314
11319
|
})
|
|
11315
11320
|
})
|
|
11316
11321
|
})]
|
|
11317
|
-
}), /* @__PURE__ */ n(He.Divider, {}),
|
|
11322
|
+
}), /* @__PURE__ */ n(He.Divider, {}), u ? /* @__PURE__ */ n(Le, {
|
|
11318
11323
|
style: {
|
|
11319
11324
|
padding: "1rem"
|
|
11320
11325
|
}
|