@gisce/react-ooui 1.4.8-rc.0 → 1.4.9-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -362,9 +362,9 @@ function ye({
|
|
|
362
362
|
validator: u
|
|
363
363
|
}) {
|
|
364
364
|
const {
|
|
365
|
-
id:
|
|
365
|
+
id: d,
|
|
366
366
|
label: f,
|
|
367
|
-
tooltip:
|
|
367
|
+
tooltip: c
|
|
368
368
|
} = e, {
|
|
369
369
|
t: m
|
|
370
370
|
} = Y(ve), y = a ? [{
|
|
@@ -374,7 +374,7 @@ function ye({
|
|
|
374
374
|
validator: u
|
|
375
375
|
}] : void 0, p = () => /* @__PURE__ */ n(it.Item, {
|
|
376
376
|
className: "mb-0",
|
|
377
|
-
name:
|
|
377
|
+
name: d,
|
|
378
378
|
valuePropName: i,
|
|
379
379
|
rules: y,
|
|
380
380
|
children: t
|
|
@@ -383,10 +383,10 @@ function ye({
|
|
|
383
383
|
return p();
|
|
384
384
|
const h = /* @__PURE__ */ n(un, {
|
|
385
385
|
ooui: new At({
|
|
386
|
-
name:
|
|
386
|
+
name: d + "_label",
|
|
387
387
|
string: f,
|
|
388
|
-
help:
|
|
389
|
-
fieldForLabel:
|
|
388
|
+
help: c,
|
|
389
|
+
fieldForLabel: d
|
|
390
390
|
}),
|
|
391
391
|
align: s
|
|
392
392
|
});
|
|
@@ -434,9 +434,9 @@ const {
|
|
|
434
434
|
executeButtonAction: a,
|
|
435
435
|
getContext: l,
|
|
436
436
|
getValues: u,
|
|
437
|
-
getPlainValues:
|
|
437
|
+
getPlainValues: d,
|
|
438
438
|
domain: f,
|
|
439
|
-
submitForm:
|
|
439
|
+
submitForm: c,
|
|
440
440
|
fetchValues: m,
|
|
441
441
|
formHasChanges: y,
|
|
442
442
|
elementHasLostFocus: p,
|
|
@@ -446,7 +446,7 @@ const {
|
|
|
446
446
|
value: {
|
|
447
447
|
domain: f,
|
|
448
448
|
getValues: u,
|
|
449
|
-
getPlainValues:
|
|
449
|
+
getPlainValues: d,
|
|
450
450
|
getFields: h,
|
|
451
451
|
activeId: r,
|
|
452
452
|
activeModel: i,
|
|
@@ -454,7 +454,7 @@ const {
|
|
|
454
454
|
getFieldValue: s,
|
|
455
455
|
executeButtonAction: a,
|
|
456
456
|
getContext: l,
|
|
457
|
-
submitForm:
|
|
457
|
+
submitForm: c,
|
|
458
458
|
fetchValues: m,
|
|
459
459
|
formHasChanges: y,
|
|
460
460
|
elementHasLostFocus: p
|
|
@@ -594,14 +594,14 @@ const Qr = (e) => {
|
|
|
594
594
|
confirmMessage: a,
|
|
595
595
|
icon: l,
|
|
596
596
|
context: u,
|
|
597
|
-
readOnly:
|
|
597
|
+
readOnly: d
|
|
598
598
|
} = t, f = Y(Ne), {
|
|
599
|
-
executeButtonAction:
|
|
599
|
+
executeButtonAction: c
|
|
600
600
|
} = f || {}, [m, y] = O(!1), {
|
|
601
601
|
lang: p
|
|
602
602
|
} = Y(ve);
|
|
603
603
|
async function h() {
|
|
604
|
-
y(!0), await
|
|
604
|
+
y(!0), await c({
|
|
605
605
|
type: s,
|
|
606
606
|
action: r,
|
|
607
607
|
context: u
|
|
@@ -632,7 +632,7 @@ const Qr = (e) => {
|
|
|
632
632
|
ooui: t,
|
|
633
633
|
children: /* @__PURE__ */ n(_e, {
|
|
634
634
|
block: !0,
|
|
635
|
-
disabled: !o ||
|
|
635
|
+
disabled: !o || d,
|
|
636
636
|
onClick: g,
|
|
637
637
|
icon: v(),
|
|
638
638
|
type: t.primary ? "primary" : "default",
|
|
@@ -656,9 +656,9 @@ const Qr = (e) => {
|
|
|
656
656
|
activated: a,
|
|
657
657
|
buttonType: l,
|
|
658
658
|
confirmMessage: u,
|
|
659
|
-
icon:
|
|
659
|
+
icon: d,
|
|
660
660
|
primary: f,
|
|
661
|
-
danger:
|
|
661
|
+
danger: c,
|
|
662
662
|
context: m,
|
|
663
663
|
readOnly: y
|
|
664
664
|
} = r || {}, p = Y(Ne), {
|
|
@@ -669,8 +669,8 @@ const Qr = (e) => {
|
|
|
669
669
|
function D() {
|
|
670
670
|
if (g)
|
|
671
671
|
return /* @__PURE__ */ n(nt, {});
|
|
672
|
-
if (
|
|
673
|
-
const _ = st(
|
|
672
|
+
if (d) {
|
|
673
|
+
const _ = st(d);
|
|
674
674
|
return _ && /* @__PURE__ */ n(_, {});
|
|
675
675
|
}
|
|
676
676
|
}
|
|
@@ -731,16 +731,16 @@ const Qr = (e) => {
|
|
|
731
731
|
id: a,
|
|
732
732
|
caption: l,
|
|
733
733
|
activated: u,
|
|
734
|
-
buttonType:
|
|
734
|
+
buttonType: d,
|
|
735
735
|
confirmMessage: f,
|
|
736
|
-
icon:
|
|
736
|
+
icon: c,
|
|
737
737
|
context: m,
|
|
738
738
|
readOnly: y,
|
|
739
739
|
danger: p
|
|
740
740
|
} = s, [h, g] = O(!1);
|
|
741
741
|
async function v() {
|
|
742
742
|
g(!0), await r({
|
|
743
|
-
type:
|
|
743
|
+
type: d,
|
|
744
744
|
action: a,
|
|
745
745
|
context: m
|
|
746
746
|
}), g(!1);
|
|
@@ -761,8 +761,8 @@ const Qr = (e) => {
|
|
|
761
761
|
function D() {
|
|
762
762
|
if (h)
|
|
763
763
|
return /* @__PURE__ */ n(nt, {});
|
|
764
|
-
if (
|
|
765
|
-
const b = st(
|
|
764
|
+
if (c) {
|
|
765
|
+
const b = st(c);
|
|
766
766
|
return b && /* @__PURE__ */ n(b, {});
|
|
767
767
|
}
|
|
768
768
|
}
|
|
@@ -856,7 +856,7 @@ const eo = (e) => {
|
|
|
856
856
|
modalWidth: l
|
|
857
857
|
} = fn(), {
|
|
858
858
|
t: u
|
|
859
|
-
} = Y(ve), [
|
|
859
|
+
} = Y(ve), [d, f] = O([]), [c, m] = O(!1), [y, p] = O(!1), [h, g] = O({}), v = fe();
|
|
860
860
|
pe(() => {
|
|
861
861
|
t ? T() : g({});
|
|
862
862
|
}, [t]);
|
|
@@ -897,7 +897,7 @@ const eo = (e) => {
|
|
|
897
897
|
v.current = C, g(C);
|
|
898
898
|
}
|
|
899
899
|
function V() {
|
|
900
|
-
return
|
|
900
|
+
return d.map((x, C) => /* @__PURE__ */ P(xe, {
|
|
901
901
|
style: {
|
|
902
902
|
paddingBottom: 20
|
|
903
903
|
},
|
|
@@ -944,7 +944,7 @@ const eo = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return
|
|
947
|
+
return c ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(re, {
|
|
948
948
|
children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(xe, {
|
|
949
949
|
justify: "end",
|
|
950
950
|
children: /* @__PURE__ */ P(Ye, {
|
|
@@ -1014,25 +1014,25 @@ const {
|
|
|
1014
1014
|
translatable: l
|
|
1015
1015
|
} = t, {
|
|
1016
1016
|
token: u
|
|
1017
|
-
} = fs(),
|
|
1017
|
+
} = fs(), d = a && !o ? {
|
|
1018
1018
|
backgroundColor: u.colorPrimaryBg
|
|
1019
1019
|
} : void 0, f = Y(Ne), {
|
|
1020
|
-
elementHasLostFocus:
|
|
1020
|
+
elementHasLostFocus: c
|
|
1021
1021
|
} = f || {};
|
|
1022
1022
|
let m = /* @__PURE__ */ n(tt, {
|
|
1023
1023
|
disabled: o || l && !r,
|
|
1024
1024
|
id: i,
|
|
1025
|
-
style:
|
|
1025
|
+
style: d,
|
|
1026
1026
|
maxLength: t.size,
|
|
1027
|
-
onBlur:
|
|
1027
|
+
onBlur: c
|
|
1028
1028
|
});
|
|
1029
1029
|
return s && (m = /* @__PURE__ */ n(tt.Password, {
|
|
1030
1030
|
disabled: o,
|
|
1031
1031
|
id: i,
|
|
1032
|
-
onBlur:
|
|
1032
|
+
onBlur: c
|
|
1033
1033
|
})), l && !o && !r && (m = /* @__PURE__ */ n(ms, {
|
|
1034
1034
|
field: i,
|
|
1035
|
-
requiredStyle:
|
|
1035
|
+
requiredStyle: d
|
|
1036
1036
|
})), /* @__PURE__ */ n(ye, {
|
|
1037
1037
|
required: a,
|
|
1038
1038
|
...e,
|
|
@@ -1049,8 +1049,8 @@ const {
|
|
|
1049
1049
|
activeModel: a,
|
|
1050
1050
|
fetchValues: l,
|
|
1051
1051
|
formHasChanges: u,
|
|
1052
|
-
elementHasLostFocus:
|
|
1053
|
-
} = o || {}, [f,
|
|
1052
|
+
elementHasLostFocus: d
|
|
1053
|
+
} = o || {}, [f, c] = O(!1), {
|
|
1054
1054
|
t: m
|
|
1055
1055
|
} = Y(ve);
|
|
1056
1056
|
return s ? /* @__PURE__ */ P(re, {
|
|
@@ -1060,7 +1060,7 @@ const {
|
|
|
1060
1060
|
ct(m("saveBeforeTranslate"));
|
|
1061
1061
|
return;
|
|
1062
1062
|
}
|
|
1063
|
-
f ||
|
|
1063
|
+
f || c(!0);
|
|
1064
1064
|
},
|
|
1065
1065
|
children: /* @__PURE__ */ n(tt, {
|
|
1066
1066
|
value: e,
|
|
@@ -1069,7 +1069,7 @@ const {
|
|
|
1069
1069
|
onChange: (y) => {
|
|
1070
1070
|
i == null || i(y.target.value);
|
|
1071
1071
|
},
|
|
1072
|
-
onBlur:
|
|
1072
|
+
onBlur: d,
|
|
1073
1073
|
style: {
|
|
1074
1074
|
cursor: "pointer",
|
|
1075
1075
|
pointerEvents: "none",
|
|
@@ -1082,10 +1082,10 @@ const {
|
|
|
1082
1082
|
field: t,
|
|
1083
1083
|
visible: f,
|
|
1084
1084
|
onCloseModal: () => {
|
|
1085
|
-
|
|
1085
|
+
c(!1);
|
|
1086
1086
|
},
|
|
1087
1087
|
onSubmitSucceed: () => {
|
|
1088
|
-
|
|
1088
|
+
c(!1), l == null || l();
|
|
1089
1089
|
}
|
|
1090
1090
|
})]
|
|
1091
1091
|
}) : /* @__PURE__ */ n(re, {
|
|
@@ -1101,7 +1101,7 @@ const {
|
|
|
1101
1101
|
onChange: (y) => {
|
|
1102
1102
|
i == null || i(y.target.value);
|
|
1103
1103
|
},
|
|
1104
|
-
onBlur:
|
|
1104
|
+
onBlur: d
|
|
1105
1105
|
})
|
|
1106
1106
|
}), /* @__PURE__ */ n(ce, {
|
|
1107
1107
|
flex: "32px",
|
|
@@ -1145,18 +1145,18 @@ const {
|
|
|
1145
1145
|
readOnly: s,
|
|
1146
1146
|
required: a
|
|
1147
1147
|
} = t, l = Array.from(o.entries()), u = l && l.length && l.map((f) => {
|
|
1148
|
-
const [
|
|
1148
|
+
const [c, m] = f;
|
|
1149
1149
|
return /* @__PURE__ */ n(ys, {
|
|
1150
|
-
value:
|
|
1150
|
+
value: c,
|
|
1151
1151
|
children: m
|
|
1152
|
-
},
|
|
1152
|
+
}, c);
|
|
1153
1153
|
});
|
|
1154
1154
|
return /* @__PURE__ */ n(a && !s ? vs : Ct, {
|
|
1155
1155
|
disabled: s,
|
|
1156
1156
|
onChange: r,
|
|
1157
1157
|
value: i,
|
|
1158
1158
|
optionFilterProp: "children",
|
|
1159
|
-
filterOption: (f,
|
|
1159
|
+
filterOption: (f, c) => c.children.toLowerCase().indexOf(f.toLowerCase()) >= 0,
|
|
1160
1160
|
showSearch: !0,
|
|
1161
1161
|
children: u
|
|
1162
1162
|
});
|
|
@@ -1268,24 +1268,24 @@ function pa(e) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
var ga = pa, ya = io, Cn = Rs, vr = ga, va = "Expected a function", wa = Math.max, ba = Math.min;
|
|
1270
1270
|
function xa(e, t, r) {
|
|
1271
|
-
var i, o, s, a, l, u,
|
|
1271
|
+
var i, o, s, a, l, u, d = 0, f = !1, c = !1, m = !0;
|
|
1272
1272
|
if (typeof e != "function")
|
|
1273
1273
|
throw new TypeError(va);
|
|
1274
|
-
t = vr(t) || 0, ya(r) && (f = !!r.leading,
|
|
1274
|
+
t = vr(t) || 0, ya(r) && (f = !!r.leading, c = "maxWait" in r, s = c ? wa(vr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1275
1275
|
function y(_) {
|
|
1276
1276
|
var E = i, x = o;
|
|
1277
|
-
return i = o = void 0,
|
|
1277
|
+
return i = o = void 0, d = _, a = e.apply(x, E), a;
|
|
1278
1278
|
}
|
|
1279
1279
|
function p(_) {
|
|
1280
|
-
return
|
|
1280
|
+
return d = _, l = setTimeout(v, t), f ? y(_) : a;
|
|
1281
1281
|
}
|
|
1282
1282
|
function h(_) {
|
|
1283
|
-
var E = _ - u, x = _ -
|
|
1284
|
-
return
|
|
1283
|
+
var E = _ - u, x = _ - d, C = t - E;
|
|
1284
|
+
return c ? ba(C, s - x) : C;
|
|
1285
1285
|
}
|
|
1286
1286
|
function g(_) {
|
|
1287
|
-
var E = _ - u, x = _ -
|
|
1288
|
-
return u === void 0 || E >= t || E < 0 ||
|
|
1287
|
+
var E = _ - u, x = _ - d;
|
|
1288
|
+
return u === void 0 || E >= t || E < 0 || c && x >= s;
|
|
1289
1289
|
}
|
|
1290
1290
|
function v() {
|
|
1291
1291
|
var _ = Cn();
|
|
@@ -1297,7 +1297,7 @@ function xa(e, t, r) {
|
|
|
1297
1297
|
return l = void 0, m && i ? y(_) : (i = o = void 0, a);
|
|
1298
1298
|
}
|
|
1299
1299
|
function D() {
|
|
1300
|
-
l !== void 0 && clearTimeout(l),
|
|
1300
|
+
l !== void 0 && clearTimeout(l), d = 0, i = u = o = l = void 0;
|
|
1301
1301
|
}
|
|
1302
1302
|
function b() {
|
|
1303
1303
|
return l === void 0 ? a : T(Cn());
|
|
@@ -1307,7 +1307,7 @@ function xa(e, t, r) {
|
|
|
1307
1307
|
if (i = arguments, o = this, u = _, E) {
|
|
1308
1308
|
if (l === void 0)
|
|
1309
1309
|
return p(u);
|
|
1310
|
-
if (
|
|
1310
|
+
if (c)
|
|
1311
1311
|
return clearTimeout(l), l = setTimeout(v, t), y(u);
|
|
1312
1312
|
}
|
|
1313
1313
|
return l === void 0 && (l = setTimeout(v, t)), a;
|
|
@@ -1361,16 +1361,16 @@ const Ta = (e) => {
|
|
|
1361
1361
|
readOnly: o
|
|
1362
1362
|
} = t, s = fe(null), {
|
|
1363
1363
|
t: a
|
|
1364
|
-
} = Y(ve), l = (
|
|
1365
|
-
i == null || i(
|
|
1364
|
+
} = Y(ve), l = (c) => {
|
|
1365
|
+
i == null || i(c);
|
|
1366
1366
|
};
|
|
1367
1367
|
async function u() {
|
|
1368
|
-
const
|
|
1369
|
-
y.href = m, y.download = `image.${
|
|
1368
|
+
const c = await Vt(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`, y = document.createElement("a");
|
|
1369
|
+
y.href = m, y.download = `image.${c == null ? void 0 : c.ext}`, y.click();
|
|
1370
1370
|
}
|
|
1371
|
-
async function c
|
|
1372
|
-
|
|
1373
|
-
const m =
|
|
1371
|
+
async function d(c) {
|
|
1372
|
+
c.stopPropagation(), c.preventDefault();
|
|
1373
|
+
const m = c.target.files[0], y = await co(m);
|
|
1374
1374
|
l(y);
|
|
1375
1375
|
}
|
|
1376
1376
|
function f() {
|
|
@@ -1394,7 +1394,7 @@ const Ta = (e) => {
|
|
|
1394
1394
|
style: {
|
|
1395
1395
|
display: "none"
|
|
1396
1396
|
},
|
|
1397
|
-
onChange:
|
|
1397
|
+
onChange: d
|
|
1398
1398
|
})]
|
|
1399
1399
|
}), /* @__PURE__ */ n(xe, {
|
|
1400
1400
|
gutter: 8,
|
|
@@ -1458,15 +1458,15 @@ const Ta = (e) => {
|
|
|
1458
1458
|
}, Ia = (e, t, r) => e.columns.map((o) => {
|
|
1459
1459
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1460
1460
|
let u;
|
|
1461
|
-
return l && (u = (
|
|
1461
|
+
return l && (u = (d) => l(d, a, o, r)), {
|
|
1462
1462
|
key: a,
|
|
1463
1463
|
dataIndex: a,
|
|
1464
1464
|
title: o.label,
|
|
1465
1465
|
render: u,
|
|
1466
|
-
sorter: (
|
|
1466
|
+
sorter: (d, f) => {
|
|
1467
1467
|
var y, p;
|
|
1468
|
-
let
|
|
1469
|
-
return s === "many2one" && (
|
|
1468
|
+
let c = d[a] || "", m = f[a] || "";
|
|
1469
|
+
return s === "many2one" && (c = ((y = d[a]) == null ? void 0 : y.value) || "", m = ((p = f[a]) == null ? void 0 : p.value) || ""), c < m ? -1 : c > m ? 1 : 0;
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
1472
|
}), uo = (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 = (u,
|
|
1508
|
+
const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (u, d) => {
|
|
1509
1509
|
var m, y;
|
|
1510
|
-
let f = u[i] || "",
|
|
1511
|
-
return a === "many2one" && (f = ((m = u[i]) == null ? void 0 : m[1]) || "",
|
|
1510
|
+
let f = u[i] || "", c = d[i] || "";
|
|
1511
|
+
return a === "many2one" && (f = ((m = u[i]) == null ? void 0 : m[1]) || "", c = ((y = d[i]) == null ? void 0 : y[1]) || ""), f === c ? 0 : s === "ascend" ? f > c ? 1 : -1 : f < c ? 1 : -1;
|
|
1512
1512
|
};
|
|
1513
1513
|
return e.sort(l);
|
|
1514
1514
|
}
|
|
@@ -1529,11 +1529,11 @@ const zn = async (e) => {
|
|
|
1529
1529
|
currentView: a = {}
|
|
1530
1530
|
} = e, l = t.filter(
|
|
1531
1531
|
(h) => h.operation !== "original"
|
|
1532
|
-
), u = t.filter((h) => h.operation === "original").map((h) => h.id),
|
|
1532
|
+
), u = t.filter((h) => h.operation === "original").map((h) => h.id), d = {
|
|
1533
1533
|
form: i.fields,
|
|
1534
1534
|
tree: o.fields
|
|
1535
1535
|
};
|
|
1536
|
-
let f = [],
|
|
1536
|
+
let f = [], c;
|
|
1537
1537
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1538
1538
|
const h = (p = _t(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
|
|
1539
1539
|
model: r,
|
|
@@ -1545,18 +1545,18 @@ const zn = async (e) => {
|
|
|
1545
1545
|
colors: h
|
|
1546
1546
|
}
|
|
1547
1547
|
});
|
|
1548
|
-
f = g[0],
|
|
1548
|
+
f = g[0], c = Qt(g[1]);
|
|
1549
1549
|
} else
|
|
1550
1550
|
f = await H.getHandler().readObjects({
|
|
1551
1551
|
model: r,
|
|
1552
1552
|
ids: u,
|
|
1553
|
-
fields:
|
|
1553
|
+
fields: d[a],
|
|
1554
1554
|
context: s
|
|
1555
1555
|
});
|
|
1556
1556
|
const m = f.map((h) => {
|
|
1557
1557
|
const g = {};
|
|
1558
1558
|
return Object.keys(h).forEach((v) => {
|
|
1559
|
-
(
|
|
1559
|
+
(d[a].hasOwnProperty(v) || v === "id") && (g[v] = h[v]);
|
|
1560
1560
|
}), g;
|
|
1561
1561
|
});
|
|
1562
1562
|
return [
|
|
@@ -1568,7 +1568,7 @@ const zn = async (e) => {
|
|
|
1568
1568
|
};
|
|
1569
1569
|
return a === "form" ? v.values = g : a === "tree" && (v.treeValues = g), v;
|
|
1570
1570
|
}).concat(l),
|
|
1571
|
-
|
|
1571
|
+
c
|
|
1572
1572
|
];
|
|
1573
1573
|
}, Va = (e) => {
|
|
1574
1574
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
@@ -1588,9 +1588,9 @@ const zn = async (e) => {
|
|
|
1588
1588
|
relation: r,
|
|
1589
1589
|
context: i,
|
|
1590
1590
|
views: o
|
|
1591
|
-
} = t, [s, a] = O(!0), [l, u] = O(), [
|
|
1591
|
+
} = t, [s, a] = O(!0), [l, u] = O(), [d, f] = O(/* @__PURE__ */ new Map()), c = Y(Ne), {
|
|
1592
1592
|
getContext: m
|
|
1593
|
-
} =
|
|
1593
|
+
} = c || {};
|
|
1594
1594
|
St(() => {
|
|
1595
1595
|
p();
|
|
1596
1596
|
}, [t]);
|
|
@@ -1605,7 +1605,7 @@ const zn = async (e) => {
|
|
|
1605
1605
|
a(!0), u(void 0);
|
|
1606
1606
|
try {
|
|
1607
1607
|
const h = await y("form"), g = await y("tree");
|
|
1608
|
-
|
|
1608
|
+
d.set("form", h), d.set("tree", g), f(d);
|
|
1609
1609
|
} catch (h) {
|
|
1610
1610
|
u(h);
|
|
1611
1611
|
} finally {
|
|
@@ -1622,7 +1622,7 @@ const zn = async (e) => {
|
|
|
1622
1622
|
...e,
|
|
1623
1623
|
children: /* @__PURE__ */ n(ka, {
|
|
1624
1624
|
ooui: t,
|
|
1625
|
-
views:
|
|
1625
|
+
views: d
|
|
1626
1626
|
})
|
|
1627
1627
|
});
|
|
1628
1628
|
}, ka = (e) => {
|
|
@@ -1633,7 +1633,7 @@ const zn = async (e) => {
|
|
|
1633
1633
|
onChange: o
|
|
1634
1634
|
} = e, {
|
|
1635
1635
|
items: s = []
|
|
1636
|
-
} = t || {}, [a, l] = O(!1), [u,
|
|
1636
|
+
} = t || {}, [a, l] = O(!1), [u, d] = O(), [f, c] = O(!1), [m, y] = O(), {
|
|
1637
1637
|
relation: p,
|
|
1638
1638
|
context: h,
|
|
1639
1639
|
readOnly: g,
|
|
@@ -1651,7 +1651,7 @@ const zn = async (e) => {
|
|
|
1651
1651
|
});
|
|
1652
1652
|
};
|
|
1653
1653
|
async function E() {
|
|
1654
|
-
l(!0),
|
|
1654
|
+
l(!0), d(void 0);
|
|
1655
1655
|
try {
|
|
1656
1656
|
const [x] = await zn({
|
|
1657
1657
|
treeView: {
|
|
@@ -1671,7 +1671,7 @@ const zn = async (e) => {
|
|
|
1671
1671
|
});
|
|
1672
1672
|
_(x);
|
|
1673
1673
|
} catch (x) {
|
|
1674
|
-
|
|
1674
|
+
d(x);
|
|
1675
1675
|
} finally {
|
|
1676
1676
|
l(!1);
|
|
1677
1677
|
}
|
|
@@ -1696,7 +1696,7 @@ const zn = async (e) => {
|
|
|
1696
1696
|
cursor: "pointer"
|
|
1697
1697
|
},
|
|
1698
1698
|
onClick: () => {
|
|
1699
|
-
y(D.find((L) => x.id === L.id)),
|
|
1699
|
+
y(D.find((L) => x.id === L.id)), c(!0);
|
|
1700
1700
|
},
|
|
1701
1701
|
children: /* @__PURE__ */ n("strong", {
|
|
1702
1702
|
children: (w = x.values) == null ? void 0 : w[T]
|
|
@@ -1707,7 +1707,7 @@ const zn = async (e) => {
|
|
|
1707
1707
|
cursor: "pointer"
|
|
1708
1708
|
},
|
|
1709
1709
|
onClick: () => {
|
|
1710
|
-
y(D.find((L) => x.id === L.id)),
|
|
1710
|
+
y(D.find((L) => x.id === L.id)), c(!0);
|
|
1711
1711
|
},
|
|
1712
1712
|
children: (S = x.values) == null ? void 0 : S[v]
|
|
1713
1713
|
})]
|
|
@@ -1722,14 +1722,14 @@ const zn = async (e) => {
|
|
|
1722
1722
|
defaultValues: m == null ? void 0 : m.defaultValues,
|
|
1723
1723
|
visible: f,
|
|
1724
1724
|
onSubmitSucceed: () => {
|
|
1725
|
-
|
|
1725
|
+
c(!1);
|
|
1726
1726
|
},
|
|
1727
1727
|
parentContext: {
|
|
1728
1728
|
...V == null ? void 0 : V(),
|
|
1729
1729
|
...h
|
|
1730
1730
|
},
|
|
1731
1731
|
onCancel: () => {
|
|
1732
|
-
|
|
1732
|
+
c(!1);
|
|
1733
1733
|
},
|
|
1734
1734
|
readOnly: g,
|
|
1735
1735
|
postSaveAction: E
|
|
@@ -1800,26 +1800,26 @@ const zn = async (e) => {
|
|
|
1800
1800
|
return Object.keys(t).forEach((o) => {
|
|
1801
1801
|
var a, l;
|
|
1802
1802
|
if (r[o] ? r[o].type === "one2many" || r[o].type === "many2many" : !1) {
|
|
1803
|
-
const u = JSON.stringify(e[o]),
|
|
1804
|
-
if (u ===
|
|
1803
|
+
const u = JSON.stringify(e[o]), d = JSON.stringify(t[o]);
|
|
1804
|
+
if (u === d)
|
|
1805
1805
|
return;
|
|
1806
1806
|
(((l = (a = t[o]) == null ? void 0 : a.items) == null ? void 0 : l.filter(
|
|
1807
|
-
(
|
|
1807
|
+
(c) => c.operation !== "original"
|
|
1808
1808
|
)) || []).length > 0 && (i[o] = t[o]);
|
|
1809
1809
|
} else if (Array.isArray(t[o]))
|
|
1810
1810
|
if (e[o] === void 0)
|
|
1811
1811
|
i[o] = t[o];
|
|
1812
1812
|
else if (r[o].type === "many2one")
|
|
1813
1813
|
if (Array.isArray(e[o])) {
|
|
1814
|
-
const u = JSON.stringify(e[o]),
|
|
1815
|
-
u !==
|
|
1814
|
+
const u = JSON.stringify(e[o]), d = JSON.stringify(t[o]);
|
|
1815
|
+
u !== d && (i[o] = t[o]);
|
|
1816
1816
|
} else {
|
|
1817
|
-
const u = e[o], [
|
|
1818
|
-
u !==
|
|
1817
|
+
const u = e[o], [d] = t[o];
|
|
1818
|
+
u !== d && (i[o] = t[o]);
|
|
1819
1819
|
}
|
|
1820
1820
|
else {
|
|
1821
|
-
const u = JSON.stringify(e[o]),
|
|
1822
|
-
u !==
|
|
1821
|
+
const u = JSON.stringify(e[o]), d = JSON.stringify(t[o]);
|
|
1822
|
+
u !== d && (i[o] = t[o]);
|
|
1823
1823
|
}
|
|
1824
1824
|
else
|
|
1825
1825
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
@@ -1957,7 +1957,7 @@ const Mt = ({
|
|
|
1957
1957
|
onChange: i
|
|
1958
1958
|
} = e, {
|
|
1959
1959
|
items: o = []
|
|
1960
|
-
} = t || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = O([]), [u,
|
|
1960
|
+
} = t || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = O([]), [u, d] = O(), [f, c] = O(!1), {
|
|
1961
1961
|
relation: m,
|
|
1962
1962
|
context: y,
|
|
1963
1963
|
readOnly: p,
|
|
@@ -1974,7 +1974,7 @@ const Mt = ({
|
|
|
1974
1974
|
});
|
|
1975
1975
|
};
|
|
1976
1976
|
async function D() {
|
|
1977
|
-
|
|
1977
|
+
c(!0);
|
|
1978
1978
|
let _ = [];
|
|
1979
1979
|
try {
|
|
1980
1980
|
if (p && (_ = [["id", "in", s]]), r.domain) {
|
|
@@ -2007,9 +2007,9 @@ const Mt = ({
|
|
|
2007
2007
|
});
|
|
2008
2008
|
l(x);
|
|
2009
2009
|
} catch (E) {
|
|
2010
|
-
|
|
2010
|
+
d(E);
|
|
2011
2011
|
} finally {
|
|
2012
|
-
|
|
2012
|
+
c(!1);
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
const b = (_) => {
|
|
@@ -2176,7 +2176,7 @@ const Mt = ({
|
|
|
2176
2176
|
}
|
|
2177
2177
|
if (i.push(a), s(l)) {
|
|
2178
2178
|
const u = r - o;
|
|
2179
|
-
for (let
|
|
2179
|
+
for (let d = 0; d < u; d += 1)
|
|
2180
2180
|
i.push(new At({ string: "" }));
|
|
2181
2181
|
}
|
|
2182
2182
|
}), i;
|
|
@@ -2210,13 +2210,13 @@ const Mt = ({
|
|
|
2210
2210
|
const s = Qa(i);
|
|
2211
2211
|
s < o && (o = s);
|
|
2212
2212
|
let a = !1, l = [];
|
|
2213
|
-
const u = i.map((
|
|
2214
|
-
const y =
|
|
2213
|
+
const u = i.map((c, m) => {
|
|
2214
|
+
const y = c.filter((g) => !g.invisible), p = Ja({
|
|
2215
2215
|
row: y,
|
|
2216
2216
|
numberOfColumns: o
|
|
2217
2217
|
});
|
|
2218
2218
|
let h = p;
|
|
2219
|
-
return (m === 0 || !(
|
|
2219
|
+
return (m === 0 || !(c.length === 1 && c.some((g) => g.type === "group"))) && (h = za({
|
|
2220
2220
|
row: p,
|
|
2221
2221
|
numberOfColumns: o,
|
|
2222
2222
|
mustFillWithEmpties: r
|
|
@@ -2233,11 +2233,11 @@ const Mt = ({
|
|
|
2233
2233
|
responsiveBehaviour: r
|
|
2234
2234
|
})
|
|
2235
2235
|
}, g.key)));
|
|
2236
|
-
}),
|
|
2236
|
+
}), d = i.length === 1 ? Za(l, o) : Xa(o, a);
|
|
2237
2237
|
return /* @__PURE__ */ n("div", {
|
|
2238
2238
|
style: {
|
|
2239
2239
|
display: "grid",
|
|
2240
|
-
gridTemplateColumns: r ? "auto" :
|
|
2240
|
+
gridTemplateColumns: r ? "auto" : d,
|
|
2241
2241
|
gap: "1rem",
|
|
2242
2242
|
minHeight: 0,
|
|
2243
2243
|
minWidth: 0
|
|
@@ -2327,16 +2327,16 @@ const Mt = ({
|
|
|
2327
2327
|
const t = { ...ll(e) };
|
|
2328
2328
|
return al(e).forEach((i) => {
|
|
2329
2329
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
2330
|
-
let u,
|
|
2330
|
+
let u, d;
|
|
2331
2331
|
if (o[0] !== null && (u = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
2332
|
-
const
|
|
2333
|
-
u = u + " " +
|
|
2332
|
+
const c = l[0].format("HH:mm:ss");
|
|
2333
|
+
u = u + " " + c;
|
|
2334
2334
|
}
|
|
2335
|
-
if (o[1] !== null && (
|
|
2336
|
-
const
|
|
2337
|
-
|
|
2335
|
+
if (o[1] !== null && (d = o[1].format("YYYY-MM-DD"), l && l[1] !== null)) {
|
|
2336
|
+
const c = l[1].format("HH:mm:ss");
|
|
2337
|
+
d = d + " " + c;
|
|
2338
2338
|
}
|
|
2339
|
-
t[s + "#datetime"] = [u,
|
|
2339
|
+
t[s + "#datetime"] = [u, d];
|
|
2340
2340
|
}), t;
|
|
2341
2341
|
}, dl = (e, t) => {
|
|
2342
2342
|
const r = Object.keys(e).filter((o) => {
|
|
@@ -2372,9 +2372,9 @@ const Mt = ({
|
|
|
2372
2372
|
setTreeIsLoading: a,
|
|
2373
2373
|
nameSearch: l,
|
|
2374
2374
|
searchNameGetDoneRef: u,
|
|
2375
|
-
context:
|
|
2375
|
+
context: d,
|
|
2376
2376
|
setActionViewTotalItems: f,
|
|
2377
|
-
treeView:
|
|
2377
|
+
treeView: c,
|
|
2378
2378
|
formView: m,
|
|
2379
2379
|
sorter: y,
|
|
2380
2380
|
setSorter: p,
|
|
@@ -2395,24 +2395,24 @@ const Mt = ({
|
|
|
2395
2395
|
payload: l,
|
|
2396
2396
|
limit: B.current,
|
|
2397
2397
|
attrs: T,
|
|
2398
|
-
context:
|
|
2398
|
+
context: d
|
|
2399
2399
|
});
|
|
2400
2400
|
if (A(ie.length), f == null || f(ie.length), ie.length > 0) {
|
|
2401
|
-
const de = ie.map((ke) => ke == null ? void 0 : ke[0]), { colors: je, status: we } = _t(
|
|
2401
|
+
const de = ie.map((ke) => ke == null ? void 0 : ke[0]), { colors: je, status: we } = _t(c), Re = {};
|
|
2402
2402
|
je && (Re.colors = je), we && (Re.status = we);
|
|
2403
2403
|
const Ze = await H.getHandler().readEvalUiObjects({
|
|
2404
2404
|
model: t,
|
|
2405
2405
|
ids: de,
|
|
2406
|
-
arch:
|
|
2407
|
-
fields:
|
|
2408
|
-
context:
|
|
2406
|
+
arch: c == null ? void 0 : c.arch,
|
|
2407
|
+
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2408
|
+
context: d,
|
|
2409
2409
|
attrs: Re
|
|
2410
2410
|
}), ee = Ze[0];
|
|
2411
2411
|
te.current = [...ee], J(Qt(Ze[1])), $(wr(Ze[1]));
|
|
2412
2412
|
const Ie = ee.map((ke) => ke.id), Ae = y !== void 0 ? It({
|
|
2413
2413
|
resultsToSort: ee,
|
|
2414
2414
|
sorter: y,
|
|
2415
|
-
fields: { ...
|
|
2415
|
+
fields: { ...c.fields, ...m.fields }
|
|
2416
2416
|
}) : [...te.current];
|
|
2417
2417
|
Z(Ae), Ie.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2418
2418
|
} else
|
|
@@ -2423,31 +2423,31 @@ const Mt = ({
|
|
|
2423
2423
|
u,
|
|
2424
2424
|
l,
|
|
2425
2425
|
t,
|
|
2426
|
-
c,
|
|
2427
|
-
T,
|
|
2428
2426
|
d,
|
|
2427
|
+
T,
|
|
2428
|
+
c,
|
|
2429
2429
|
m,
|
|
2430
2430
|
y,
|
|
2431
2431
|
h,
|
|
2432
2432
|
f
|
|
2433
2433
|
]), z = Le(
|
|
2434
2434
|
async (ie) => {
|
|
2435
|
-
const { params: de, newOffset: je } = ie || {}, we = hn(de || _, T), { colors: Re, status: Ze } = _t(
|
|
2435
|
+
const { params: de, newOffset: je } = ie || {}, we = hn(de || _, T), { colors: Re, status: Ze } = _t(c), ee = {};
|
|
2436
2436
|
Re && (ee.colors = Re), Ze && (ee.status = Ze);
|
|
2437
2437
|
const { totalItems: Ie, results: Ae, attrsEvaluated: ke } = await H.getHandler().searchForTree({
|
|
2438
2438
|
params: we,
|
|
2439
2439
|
limit: B.current,
|
|
2440
2440
|
offset: je || M,
|
|
2441
2441
|
model: t,
|
|
2442
|
-
fields:
|
|
2443
|
-
context:
|
|
2442
|
+
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2443
|
+
context: d,
|
|
2444
2444
|
attrs: ee
|
|
2445
2445
|
});
|
|
2446
2446
|
J(Qt(ke)), $(wr(ke)), te.current = [...Ae];
|
|
2447
2447
|
const le = y !== void 0 ? It({
|
|
2448
2448
|
resultsToSort: Ae,
|
|
2449
2449
|
sorter: y,
|
|
2450
|
-
fields: { ...
|
|
2450
|
+
fields: { ...c.fields, ...m.fields }
|
|
2451
2451
|
}) : [...te.current];
|
|
2452
2452
|
if (Z(le), v && le.length > 0) {
|
|
2453
2453
|
const Ue = le.findIndex(
|
|
@@ -2466,9 +2466,9 @@ const Mt = ({
|
|
|
2466
2466
|
Z,
|
|
2467
2467
|
D,
|
|
2468
2468
|
t,
|
|
2469
|
-
c,
|
|
2470
|
-
T,
|
|
2471
2469
|
d,
|
|
2470
|
+
T,
|
|
2471
|
+
c,
|
|
2472
2472
|
m,
|
|
2473
2473
|
y,
|
|
2474
2474
|
f,
|
|
@@ -2487,7 +2487,7 @@ const Mt = ({
|
|
|
2487
2487
|
}
|
|
2488
2488
|
},
|
|
2489
2489
|
[
|
|
2490
|
-
|
|
2490
|
+
d,
|
|
2491
2491
|
D,
|
|
2492
2492
|
T,
|
|
2493
2493
|
m,
|
|
@@ -2505,7 +2505,7 @@ const Mt = ({
|
|
|
2505
2505
|
C,
|
|
2506
2506
|
a,
|
|
2507
2507
|
y,
|
|
2508
|
-
|
|
2508
|
+
c
|
|
2509
2509
|
]
|
|
2510
2510
|
), be = Le(
|
|
2511
2511
|
(ie) => {
|
|
@@ -2515,11 +2515,11 @@ const Mt = ({
|
|
|
2515
2515
|
const de = ie !== void 0 ? It({
|
|
2516
2516
|
resultsToSort: ae(),
|
|
2517
2517
|
sorter: ie,
|
|
2518
|
-
fields: { ...
|
|
2518
|
+
fields: { ...c.fields, ...m.fields }
|
|
2519
2519
|
}) : [...te.current];
|
|
2520
2520
|
Z(de);
|
|
2521
2521
|
},
|
|
2522
|
-
[p, ae,
|
|
2522
|
+
[p, ae, c, m, Z]
|
|
2523
2523
|
), Ee = Le(
|
|
2524
2524
|
(ie) => {
|
|
2525
2525
|
const { params: de, searchValues: je, limit: we, offset: Re } = ie;
|
|
@@ -2559,15 +2559,15 @@ const Mt = ({
|
|
|
2559
2559
|
b
|
|
2560
2560
|
]), We = Le(
|
|
2561
2561
|
async (ie) => {
|
|
2562
|
-
const de = ie[(
|
|
2562
|
+
const de = ie[(c == null ? void 0 : c.field_parent) || "child_id"], je = await H.getHandler().readObjects({
|
|
2563
2563
|
model: t,
|
|
2564
2564
|
ids: de,
|
|
2565
|
-
fields:
|
|
2566
|
-
context:
|
|
2565
|
+
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2566
|
+
context: d
|
|
2567
2567
|
});
|
|
2568
|
-
return Z([...ae(), ...je]), uo(_t(
|
|
2568
|
+
return Z([...ae(), ...je]), uo(_t(c), je);
|
|
2569
2569
|
},
|
|
2570
|
-
[
|
|
2570
|
+
[c, t, d, ae, Z]
|
|
2571
2571
|
);
|
|
2572
2572
|
return {
|
|
2573
2573
|
submit: Ee,
|
|
@@ -2597,9 +2597,9 @@ const Mt = ({
|
|
|
2597
2597
|
formRef: a,
|
|
2598
2598
|
searchTreeRef: l,
|
|
2599
2599
|
onNewClicked: u,
|
|
2600
|
-
currentId:
|
|
2600
|
+
currentId: d,
|
|
2601
2601
|
setCurrentId: f,
|
|
2602
|
-
setResults:
|
|
2602
|
+
setResults: c,
|
|
2603
2603
|
results: m,
|
|
2604
2604
|
currentItemIndex: y,
|
|
2605
2605
|
setCurrentItemIndex: p,
|
|
@@ -2642,12 +2642,12 @@ const Mt = ({
|
|
|
2642
2642
|
searchTreeRef: l,
|
|
2643
2643
|
onFormSave: ie,
|
|
2644
2644
|
onNewClicked: u,
|
|
2645
|
-
currentId:
|
|
2645
|
+
currentId: d,
|
|
2646
2646
|
setCurrentId: f,
|
|
2647
2647
|
currentItemIndex: y,
|
|
2648
2648
|
setCurrentItemIndex: p,
|
|
2649
2649
|
results: m,
|
|
2650
|
-
setResults:
|
|
2650
|
+
setResults: c,
|
|
2651
2651
|
currentModel: h,
|
|
2652
2652
|
removingItem: F,
|
|
2653
2653
|
setRemovingItem: k,
|
|
@@ -2694,8 +2694,8 @@ const Mt = ({
|
|
|
2694
2694
|
activeKey: a,
|
|
2695
2695
|
onChangeTab: l,
|
|
2696
2696
|
onRemoveTab: u,
|
|
2697
|
-
tabs:
|
|
2698
|
-
} = e, [f,
|
|
2697
|
+
tabs: d
|
|
2698
|
+
} = e, [f, c] = O(), [m, y] = O();
|
|
2699
2699
|
return /* @__PURE__ */ n(at.Provider, {
|
|
2700
2700
|
value: {
|
|
2701
2701
|
openAction: r,
|
|
@@ -2705,11 +2705,11 @@ const Mt = ({
|
|
|
2705
2705
|
openShortcut: s,
|
|
2706
2706
|
onChangeTab: l,
|
|
2707
2707
|
onRemoveTab: u,
|
|
2708
|
-
tabs:
|
|
2708
|
+
tabs: d,
|
|
2709
2709
|
currentId: m,
|
|
2710
2710
|
currentView: f,
|
|
2711
2711
|
setCurrentId: y,
|
|
2712
|
-
setCurrentView:
|
|
2712
|
+
setCurrentView: c
|
|
2713
2713
|
},
|
|
2714
2714
|
children: t
|
|
2715
2715
|
});
|
|
@@ -2722,9 +2722,9 @@ const Mt = ({
|
|
|
2722
2722
|
children: r,
|
|
2723
2723
|
globalValues: i = {}
|
|
2724
2724
|
} = e, o = fe(), s = fe(), [a, l] = O(!1), u = Y(at), {
|
|
2725
|
-
openAction:
|
|
2725
|
+
openAction: d
|
|
2726
2726
|
} = u || {}, f = fe([]), {
|
|
2727
|
-
t:
|
|
2727
|
+
t: c
|
|
2728
2728
|
} = Y(ve);
|
|
2729
2729
|
xt(t, () => ({
|
|
2730
2730
|
openActionModal: b
|
|
@@ -2881,7 +2881,7 @@ const Mt = ({
|
|
|
2881
2881
|
view_mode: S.view_mode,
|
|
2882
2882
|
views: S.views
|
|
2883
2883
|
});
|
|
2884
|
-
return
|
|
2884
|
+
return d == null || d({
|
|
2885
2885
|
target: "current",
|
|
2886
2886
|
context: R,
|
|
2887
2887
|
domain: F,
|
|
@@ -2955,7 +2955,7 @@ const Mt = ({
|
|
|
2955
2955
|
},
|
|
2956
2956
|
children: /* @__PURE__ */ P(re, {
|
|
2957
2957
|
children: [r, /* @__PURE__ */ n(qe, {
|
|
2958
|
-
title:
|
|
2958
|
+
title: c("generatingReport"),
|
|
2959
2959
|
open: a,
|
|
2960
2960
|
footer: null,
|
|
2961
2961
|
closable: !1,
|
|
@@ -3009,12 +3009,12 @@ async function gl({
|
|
|
3009
3009
|
else {
|
|
3010
3010
|
const l = t.split(",");
|
|
3011
3011
|
for (const u of l) {
|
|
3012
|
-
const
|
|
3012
|
+
const d = await H.getHandler().getView({
|
|
3013
3013
|
model: r,
|
|
3014
3014
|
type: u,
|
|
3015
3015
|
context: i
|
|
3016
3016
|
});
|
|
3017
|
-
s.push([
|
|
3017
|
+
s.push([d.view_id, u]);
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
3020
|
if (e && e.length > 0) {
|
|
@@ -3029,7 +3029,7 @@ async function gl({
|
|
|
3029
3029
|
type: t.split(",")[0]
|
|
3030
3030
|
};
|
|
3031
3031
|
else {
|
|
3032
|
-
const l = t.split(",")[0], [u] = s.find(([
|
|
3032
|
+
const l = t.split(",")[0], [u] = s.find(([d, f]) => f === l);
|
|
3033
3033
|
a = {
|
|
3034
3034
|
id: u,
|
|
3035
3035
|
type: l
|
|
@@ -3074,9 +3074,9 @@ function bl(e, t) {
|
|
|
3074
3074
|
showFooter: a = !1,
|
|
3075
3075
|
getDataFromAction: l = !1,
|
|
3076
3076
|
onFieldsChange: u,
|
|
3077
|
-
onSubmitError:
|
|
3077
|
+
onSubmitError: d,
|
|
3078
3078
|
readOnly: f = !1,
|
|
3079
|
-
mustClearAfterSave:
|
|
3079
|
+
mustClearAfterSave: c = !1,
|
|
3080
3080
|
submitMode: m = "api",
|
|
3081
3081
|
values: y,
|
|
3082
3082
|
formView: p,
|
|
@@ -3136,7 +3136,7 @@ function bl(e, t) {
|
|
|
3136
3136
|
}, me = () => {
|
|
3137
3137
|
ie == null || ie(!1), o == null || o();
|
|
3138
3138
|
}, Ue = (K) => {
|
|
3139
|
-
ie == null || ie(!1),
|
|
3139
|
+
ie == null || ie(!1), d == null || d(K);
|
|
3140
3140
|
};
|
|
3141
3141
|
function ue() {
|
|
3142
3142
|
return i || B.current;
|
|
@@ -3383,7 +3383,7 @@ function bl(e, t) {
|
|
|
3383
3383
|
if (X.current = !0, R(void 0), z.current && !Fe() && ue() && oe) {
|
|
3384
3384
|
X.current = !1, de == null || de(!1), le == null || le(ue(), Ke(), se(), z.current), z.current = !1;
|
|
3385
3385
|
const ne = ue();
|
|
3386
|
-
return
|
|
3386
|
+
return c && (B.current = void 0, $t({
|
|
3387
3387
|
values: {},
|
|
3388
3388
|
fields: A,
|
|
3389
3389
|
reset: !0
|
|
@@ -3404,7 +3404,7 @@ function bl(e, t) {
|
|
|
3404
3404
|
};
|
|
3405
3405
|
S(!0), ie == null || ie(!0);
|
|
3406
3406
|
try {
|
|
3407
|
-
m === "api" ? await nr(K) : await jo(K),
|
|
3407
|
+
m === "api" ? await nr(K) : await jo(K), c && (B.current = void 0, $t({
|
|
3408
3408
|
values: {},
|
|
3409
3409
|
fields: A,
|
|
3410
3410
|
reset: !0
|
|
@@ -3737,8 +3737,8 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3737
3737
|
actionData: l,
|
|
3738
3738
|
...u
|
|
3739
3739
|
} = e, {
|
|
3740
|
-
modalWidth:
|
|
3741
|
-
} = fn(), [f,
|
|
3740
|
+
modalWidth: d
|
|
3741
|
+
} = fn(), [f, c] = O(i), [m, y] = O(!1), [p, h] = O();
|
|
3742
3742
|
pe(() => {
|
|
3743
3743
|
a && g();
|
|
3744
3744
|
}, [l, a]);
|
|
@@ -3801,13 +3801,13 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3801
3801
|
})]
|
|
3802
3802
|
});
|
|
3803
3803
|
}
|
|
3804
|
-
const D =
|
|
3804
|
+
const D = d * 0.95;
|
|
3805
3805
|
return /* @__PURE__ */ n(ol, {
|
|
3806
|
-
setTitle:
|
|
3806
|
+
setTitle: c,
|
|
3807
3807
|
children: /* @__PURE__ */ n(qe, {
|
|
3808
3808
|
title: a ? T() : f,
|
|
3809
3809
|
centered: !0,
|
|
3810
|
-
width:
|
|
3810
|
+
width: d,
|
|
3811
3811
|
open: t,
|
|
3812
3812
|
footer: null,
|
|
3813
3813
|
destroyOnClose: !0,
|
|
@@ -3897,7 +3897,7 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3897
3897
|
} = Sl(), l = s && !o ? {
|
|
3898
3898
|
backgroundColor: a.colorPrimaryBg
|
|
3899
3899
|
} : void 0, u = Y(Ne), {
|
|
3900
|
-
elementHasLostFocus:
|
|
3900
|
+
elementHasLostFocus: d
|
|
3901
3901
|
} = u || {};
|
|
3902
3902
|
return /* @__PURE__ */ n(ye, {
|
|
3903
3903
|
required: s,
|
|
@@ -3912,7 +3912,7 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3912
3912
|
formatter: (f) => `${f}`.replace(/[^0-9\.\-]+/g, ""),
|
|
3913
3913
|
defaultValue: 0,
|
|
3914
3914
|
decimalSeparator: ".",
|
|
3915
|
-
onBlur:
|
|
3915
|
+
onBlur: d
|
|
3916
3916
|
})
|
|
3917
3917
|
});
|
|
3918
3918
|
}, {
|
|
@@ -3930,7 +3930,7 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3930
3930
|
} = Tl(), l = s && !o ? {
|
|
3931
3931
|
backgroundColor: a.colorPrimaryBg
|
|
3932
3932
|
} : void 0, u = Y(Ne), {
|
|
3933
|
-
elementHasLostFocus:
|
|
3933
|
+
elementHasLostFocus: d
|
|
3934
3934
|
} = u || {};
|
|
3935
3935
|
return /* @__PURE__ */ n(ye, {
|
|
3936
3936
|
required: s,
|
|
@@ -3940,13 +3940,13 @@ const Gt = bt(bl), qt = (e) => {
|
|
|
3940
3940
|
id: i,
|
|
3941
3941
|
className: "w-full ",
|
|
3942
3942
|
disabled: o,
|
|
3943
|
-
formatter: (f) => f === void 0
|
|
3943
|
+
formatter: (f) => f === void 0 ? "" : typeof f == "string" && !isNaN(parseFloat(f)) ? `${Math.trunc(parseFloat(f))}`.replace(/[^0-9\-]+/g, "") : typeof f == "number" ? `${Math.trunc(f)}`.replace(/[^0-9\-]+/g, "") : "",
|
|
3944
3944
|
onChange: (f) => {
|
|
3945
|
-
const
|
|
3946
|
-
r == null || r(
|
|
3945
|
+
const c = f;
|
|
3946
|
+
r == null || r(c);
|
|
3947
3947
|
},
|
|
3948
3948
|
defaultValue: 0,
|
|
3949
|
-
onBlur:
|
|
3949
|
+
onBlur: d,
|
|
3950
3950
|
precision: 0,
|
|
3951
3951
|
style: l
|
|
3952
3952
|
})
|
|
@@ -4024,18 +4024,18 @@ const {
|
|
|
4024
4024
|
selectionValues: o,
|
|
4025
4025
|
readOnly: s,
|
|
4026
4026
|
required: a
|
|
4027
|
-
} = t, l = Array.from(o.entries()), u = l && l.length && l.filter((
|
|
4028
|
-
const [m] =
|
|
4027
|
+
} = t, l = Array.from(o.entries()), u = l && l.length && l.filter((c) => {
|
|
4028
|
+
const [m] = c;
|
|
4029
4029
|
return i ? !i.includes(m) : !0;
|
|
4030
|
-
}).map((
|
|
4031
|
-
const [m, y] =
|
|
4030
|
+
}).map((c) => {
|
|
4031
|
+
const [m, y] = c;
|
|
4032
4032
|
return /* @__PURE__ */ n(Dl, {
|
|
4033
4033
|
value: y,
|
|
4034
4034
|
children: y
|
|
4035
4035
|
}, m);
|
|
4036
|
-
}),
|
|
4037
|
-
function f(
|
|
4038
|
-
const m =
|
|
4036
|
+
}), d = a && !s ? Rl : Ct;
|
|
4037
|
+
function f(c) {
|
|
4038
|
+
const m = c.map((y) => {
|
|
4039
4039
|
const p = l.find(([h, g]) => y === g);
|
|
4040
4040
|
return p && p[0];
|
|
4041
4041
|
});
|
|
@@ -4045,10 +4045,10 @@ const {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
r == null || r(m);
|
|
4047
4047
|
}
|
|
4048
|
-
return /* @__PURE__ */ n(
|
|
4048
|
+
return /* @__PURE__ */ n(d, {
|
|
4049
4049
|
disabled: s,
|
|
4050
4050
|
onChange: f,
|
|
4051
|
-
value: i == null ? void 0 : i.map((
|
|
4051
|
+
value: i == null ? void 0 : i.map((c) => o.get(c)),
|
|
4052
4052
|
mode: "multiple",
|
|
4053
4053
|
showArrow: !0,
|
|
4054
4054
|
children: u
|
|
@@ -4198,9 +4198,9 @@ function wo(e) {
|
|
|
4198
4198
|
offset: a,
|
|
4199
4199
|
limit: l,
|
|
4200
4200
|
onLimitChange: u,
|
|
4201
|
-
searchVisible:
|
|
4201
|
+
searchVisible: d,
|
|
4202
4202
|
setSearchFilterHeight: f,
|
|
4203
|
-
searchError:
|
|
4203
|
+
searchError: c,
|
|
4204
4204
|
searchValues: m,
|
|
4205
4205
|
showLimitOptions: y = !0
|
|
4206
4206
|
} = e, [p, h] = O(), [g, v] = O(), [T, D] = O(!1), b = fe(), {
|
|
@@ -4254,7 +4254,7 @@ function wo(e) {
|
|
|
4254
4254
|
ref: w,
|
|
4255
4255
|
children: /* @__PURE__ */ P("div", {
|
|
4256
4256
|
style: {
|
|
4257
|
-
display:
|
|
4257
|
+
display: d ? "block" : "none"
|
|
4258
4258
|
},
|
|
4259
4259
|
children: [/* @__PURE__ */ P(it, {
|
|
4260
4260
|
className: "p-3 shadow-md",
|
|
@@ -4279,9 +4279,9 @@ function wo(e) {
|
|
|
4279
4279
|
},
|
|
4280
4280
|
isSearching: s
|
|
4281
4281
|
})]
|
|
4282
|
-
}),
|
|
4282
|
+
}), c && /* @__PURE__ */ n(Qe, {
|
|
4283
4283
|
className: "mt-10",
|
|
4284
|
-
message:
|
|
4284
|
+
message: c,
|
|
4285
4285
|
type: "error",
|
|
4286
4286
|
banner: !0
|
|
4287
4287
|
}), /* @__PURE__ */ n("div", {
|
|
@@ -4306,8 +4306,8 @@ const Tr = (e, t = "14px -apple-system") => {
|
|
|
4306
4306
|
);
|
|
4307
4307
|
t.map((s) => {
|
|
4308
4308
|
i.map((a, l) => {
|
|
4309
|
-
const u = a.width,
|
|
4310
|
-
let f = Tr(
|
|
4309
|
+
const u = a.width, d = s[a.key] || "";
|
|
4310
|
+
let f = Tr(d);
|
|
4311
4311
|
f < u && (f = u), f > r && (f = r), i[l].width = f;
|
|
4312
4312
|
});
|
|
4313
4313
|
});
|
|
@@ -4418,7 +4418,7 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4418
4418
|
id: t,
|
|
4419
4419
|
model: r,
|
|
4420
4420
|
context: i = {}
|
|
4421
|
-
} = e, [o, s] = O(!1), [a, l] = O(!1), [u,
|
|
4421
|
+
} = e, [o, s] = O(!1), [a, l] = O(!1), [u, d] = O(!1), [f, c] = O(), [m, y] = O(), {
|
|
4422
4422
|
t: p
|
|
4423
4423
|
} = Y(ve), h = Y(at), {
|
|
4424
4424
|
openRelate: g
|
|
@@ -4428,14 +4428,14 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4428
4428
|
if (!t)
|
|
4429
4429
|
return null;
|
|
4430
4430
|
async function D() {
|
|
4431
|
-
|
|
4431
|
+
d(!0);
|
|
4432
4432
|
try {
|
|
4433
4433
|
const w = await H.getHandler().getView({
|
|
4434
4434
|
model: r,
|
|
4435
4435
|
type: "form",
|
|
4436
4436
|
context: i
|
|
4437
4437
|
});
|
|
4438
|
-
|
|
4438
|
+
c(w);
|
|
4439
4439
|
const {
|
|
4440
4440
|
fields: S,
|
|
4441
4441
|
arch: L
|
|
@@ -4448,9 +4448,9 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4448
4448
|
y({
|
|
4449
4449
|
...Ot(R, S),
|
|
4450
4450
|
active_id: t
|
|
4451
|
-
}),
|
|
4451
|
+
}), d(!1);
|
|
4452
4452
|
} catch (w) {
|
|
4453
|
-
|
|
4453
|
+
d(!1), Ge(w);
|
|
4454
4454
|
return;
|
|
4455
4455
|
}
|
|
4456
4456
|
}
|
|
@@ -4573,7 +4573,7 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4573
4573
|
value: t,
|
|
4574
4574
|
context: r,
|
|
4575
4575
|
selectionValues: i
|
|
4576
|
-
} = e, [o, s] = O(), [a, l] = O(!1), [u,
|
|
4576
|
+
} = e, [o, s] = O(), [a, l] = O(!1), [u, d] = t ? t.split(",") : [], f = parseInt(d), c = Le(async () => {
|
|
4577
4577
|
if (!t || t && o)
|
|
4578
4578
|
return;
|
|
4579
4579
|
l(!0);
|
|
@@ -4586,7 +4586,7 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4586
4586
|
s(y[0][1]), l(!1);
|
|
4587
4587
|
}, [t, o]);
|
|
4588
4588
|
if (pe(() => {
|
|
4589
|
-
|
|
4589
|
+
c();
|
|
4590
4590
|
}, [t]), !t && !a)
|
|
4591
4591
|
return /* @__PURE__ */ n(re, {});
|
|
4592
4592
|
if (a)
|
|
@@ -4608,7 +4608,7 @@ var Co = { exports: {} };
|
|
|
4608
4608
|
(function(r, i) {
|
|
4609
4609
|
e.exports = i();
|
|
4610
4610
|
})(ft, function() {
|
|
4611
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", u = "hour",
|
|
4611
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", u = "hour", d = "day", f = "week", c = "month", m = "quarter", y = "year", p = "date", h = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { 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) {
|
|
4612
4612
|
var F = ["th", "st", "nd", "rd"], k = R % 100;
|
|
4613
4613
|
return "[" + R + (F[(k - 20) % 10] || F[k] || F[0]) + "]";
|
|
4614
4614
|
} }, D = function(R, F, k) {
|
|
@@ -4620,12 +4620,12 @@ var Co = { exports: {} };
|
|
|
4620
4620
|
}, m: function R(F, k) {
|
|
4621
4621
|
if (F.date() < k.date())
|
|
4622
4622
|
return -R(k, F);
|
|
4623
|
-
var M = 12 * (k.year() - F.year()) + (k.month() - F.month()), I = F.clone().add(M,
|
|
4623
|
+
var M = 12 * (k.year() - F.year()) + (k.month() - F.month()), I = F.clone().add(M, c), N = k - I < 0, A = F.clone().add(M + (N ? -1 : 1), c);
|
|
4624
4624
|
return +(-(M + (k - I) / (N ? I - A : A - I)) || 0);
|
|
4625
4625
|
}, a: function(R) {
|
|
4626
4626
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
4627
4627
|
}, p: function(R) {
|
|
4628
|
-
return { M:
|
|
4628
|
+
return { M: c, y, w: f, d, D: p, h: u, m: l, s: a, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
4629
4629
|
}, u: function(R) {
|
|
4630
4630
|
return R === void 0;
|
|
4631
4631
|
} }, V = "en", _ = {};
|
|
@@ -4702,19 +4702,19 @@ var Co = { exports: {} };
|
|
|
4702
4702
|
}, F.startOf = function(k, M) {
|
|
4703
4703
|
var I = this, N = !!w.u(M) || M, A = w.p(k), j = function(Z, ae) {
|
|
4704
4704
|
var X = w.w(I.$u ? Date.UTC(I.$y, ae, Z) : new Date(I.$y, ae, Z), I);
|
|
4705
|
-
return N ? X : X.endOf(
|
|
4705
|
+
return N ? X : X.endOf(d);
|
|
4706
4706
|
}, q = function(Z, ae) {
|
|
4707
4707
|
return w.w(I.toDate()[Z].apply(I.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), I);
|
|
4708
4708
|
}, W = this.$W, J = this.$M, U = this.$D, $ = "set" + (this.$u ? "UTC" : "");
|
|
4709
4709
|
switch (A) {
|
|
4710
4710
|
case y:
|
|
4711
4711
|
return N ? j(1, 0) : j(31, 11);
|
|
4712
|
-
case
|
|
4712
|
+
case c:
|
|
4713
4713
|
return N ? j(1, J) : j(0, J + 1);
|
|
4714
4714
|
case f:
|
|
4715
4715
|
var B = this.$locale().weekStart || 0, te = (W < B ? W + 7 : W) - B;
|
|
4716
4716
|
return j(N ? U - te : U + (6 - te), J);
|
|
4717
|
-
case
|
|
4717
|
+
case d:
|
|
4718
4718
|
case p:
|
|
4719
4719
|
return q($ + "Hours", 0);
|
|
4720
4720
|
case u:
|
|
@@ -4729,8 +4729,8 @@ var Co = { exports: {} };
|
|
|
4729
4729
|
}, F.endOf = function(k) {
|
|
4730
4730
|
return this.startOf(k, !1);
|
|
4731
4731
|
}, F.$set = function(k, M) {
|
|
4732
|
-
var I, N = w.p(k), A = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[
|
|
4733
|
-
if (N ===
|
|
4732
|
+
var I, N = w.p(k), A = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[d] = A + "Date", I[p] = A + "Date", I[c] = A + "Month", I[y] = A + "FullYear", I[u] = A + "Hours", I[l] = A + "Minutes", I[a] = A + "Seconds", I[s] = A + "Milliseconds", I)[N], q = N === d ? this.$D + (M - this.$W) : M;
|
|
4733
|
+
if (N === c || N === y) {
|
|
4734
4734
|
var W = this.clone().set(p, 1);
|
|
4735
4735
|
W.$d[j](q), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
|
|
4736
4736
|
} else
|
|
@@ -4747,11 +4747,11 @@ var Co = { exports: {} };
|
|
|
4747
4747
|
var U = C(N);
|
|
4748
4748
|
return w.w(U.date(U.date() + Math.round(J * k)), N);
|
|
4749
4749
|
};
|
|
4750
|
-
if (A ===
|
|
4751
|
-
return this.set(
|
|
4750
|
+
if (A === c)
|
|
4751
|
+
return this.set(c, this.$M + k);
|
|
4752
4752
|
if (A === y)
|
|
4753
4753
|
return this.set(y, this.$y + k);
|
|
4754
|
-
if (A ===
|
|
4754
|
+
if (A === d)
|
|
4755
4755
|
return j(1);
|
|
4756
4756
|
if (A === f)
|
|
4757
4757
|
return j(7);
|
|
@@ -4778,9 +4778,9 @@ var Co = { exports: {} };
|
|
|
4778
4778
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4779
4779
|
}, F.diff = function(k, M, I) {
|
|
4780
4780
|
var N, A = w.p(M), j = C(k), q = (j.utcOffset() - this.utcOffset()) * i, W = this - j, J = w.m(this, j);
|
|
4781
|
-
return J = (N = {}, N[y] = J / 12, N[
|
|
4781
|
+
return J = (N = {}, N[y] = J / 12, N[c] = J, N[m] = J / 3, N[f] = (W - q) / 6048e5, N[d] = (W - q) / 864e5, N[u] = W / o, N[l] = W / i, N[a] = W / r, N)[A] || W, I ? J : w.a(J);
|
|
4782
4782
|
}, F.daysInMonth = function() {
|
|
4783
|
-
return this.endOf(
|
|
4783
|
+
return this.endOf(c).$D;
|
|
4784
4784
|
}, F.$locale = function() {
|
|
4785
4785
|
return _[this.$L];
|
|
4786
4786
|
}, F.locale = function(k, M) {
|
|
@@ -4800,7 +4800,7 @@ var Co = { exports: {} };
|
|
|
4800
4800
|
return this.$d.toUTCString();
|
|
4801
4801
|
}, R;
|
|
4802
4802
|
}(), L = S.prototype;
|
|
4803
|
-
return C.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", u], ["$W",
|
|
4803
|
+
return C.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", u], ["$W", d], ["$M", c], ["$y", y], ["$D", p]].forEach(function(R) {
|
|
4804
4804
|
L[R[1]] = function(F) {
|
|
4805
4805
|
return this.$g(F, R[0], R[1]);
|
|
4806
4806
|
};
|
|
@@ -4853,10 +4853,10 @@ var To = { exports: {} };
|
|
|
4853
4853
|
e.exports = i();
|
|
4854
4854
|
})(ft, function() {
|
|
4855
4855
|
return function(r, i, o) {
|
|
4856
|
-
var s = i.prototype, a = function(
|
|
4857
|
-
return
|
|
4858
|
-
}, l = function(
|
|
4859
|
-
var g =
|
|
4856
|
+
var s = i.prototype, a = function(c) {
|
|
4857
|
+
return c && (c.indexOf ? c : c.s);
|
|
4858
|
+
}, l = function(c, m, y, p, h) {
|
|
4859
|
+
var g = c.name ? c : c.$locale(), v = a(g[m]), T = a(g[y]), D = v || T.map(function(V) {
|
|
4860
4860
|
return V.slice(0, p);
|
|
4861
4861
|
});
|
|
4862
4862
|
if (!h)
|
|
@@ -4867,36 +4867,36 @@ var To = { exports: {} };
|
|
|
4867
4867
|
});
|
|
4868
4868
|
}, u = function() {
|
|
4869
4869
|
return o.Ls[o.locale()];
|
|
4870
|
-
},
|
|
4871
|
-
return
|
|
4870
|
+
}, d = function(c, m) {
|
|
4871
|
+
return c.formats[m] || function(y) {
|
|
4872
4872
|
return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, h, g) {
|
|
4873
4873
|
return h || g.slice(1);
|
|
4874
4874
|
});
|
|
4875
|
-
}(
|
|
4875
|
+
}(c.formats[m.toUpperCase()]);
|
|
4876
4876
|
}, f = function() {
|
|
4877
|
-
var
|
|
4877
|
+
var c = this;
|
|
4878
4878
|
return { months: function(m) {
|
|
4879
|
-
return m ? m.format("MMMM") : l(
|
|
4879
|
+
return m ? m.format("MMMM") : l(c, "months");
|
|
4880
4880
|
}, monthsShort: function(m) {
|
|
4881
|
-
return m ? m.format("MMM") : l(
|
|
4881
|
+
return m ? m.format("MMM") : l(c, "monthsShort", "months", 3);
|
|
4882
4882
|
}, firstDayOfWeek: function() {
|
|
4883
|
-
return
|
|
4883
|
+
return c.$locale().weekStart || 0;
|
|
4884
4884
|
}, weekdays: function(m) {
|
|
4885
|
-
return m ? m.format("dddd") : l(
|
|
4885
|
+
return m ? m.format("dddd") : l(c, "weekdays");
|
|
4886
4886
|
}, weekdaysMin: function(m) {
|
|
4887
|
-
return m ? m.format("dd") : l(
|
|
4887
|
+
return m ? m.format("dd") : l(c, "weekdaysMin", "weekdays", 2);
|
|
4888
4888
|
}, weekdaysShort: function(m) {
|
|
4889
|
-
return m ? m.format("ddd") : l(
|
|
4889
|
+
return m ? m.format("ddd") : l(c, "weekdaysShort", "weekdays", 3);
|
|
4890
4890
|
}, longDateFormat: function(m) {
|
|
4891
|
-
return c
|
|
4891
|
+
return d(c.$locale(), m);
|
|
4892
4892
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
4893
4893
|
};
|
|
4894
4894
|
s.localeData = function() {
|
|
4895
4895
|
return f.bind(this)();
|
|
4896
4896
|
}, o.localeData = function() {
|
|
4897
|
-
var
|
|
4897
|
+
var c = u();
|
|
4898
4898
|
return { firstDayOfWeek: function() {
|
|
4899
|
-
return
|
|
4899
|
+
return c.weekStart || 0;
|
|
4900
4900
|
}, weekdays: function() {
|
|
4901
4901
|
return o.weekdays();
|
|
4902
4902
|
}, weekdaysShort: function() {
|
|
@@ -4908,18 +4908,18 @@ var To = { exports: {} };
|
|
|
4908
4908
|
}, monthsShort: function() {
|
|
4909
4909
|
return o.monthsShort();
|
|
4910
4910
|
}, longDateFormat: function(m) {
|
|
4911
|
-
return c
|
|
4912
|
-
}, meridiem:
|
|
4911
|
+
return d(c, m);
|
|
4912
|
+
}, meridiem: c.meridiem, ordinal: c.ordinal };
|
|
4913
4913
|
}, o.months = function() {
|
|
4914
4914
|
return l(u(), "months");
|
|
4915
4915
|
}, o.monthsShort = function() {
|
|
4916
4916
|
return l(u(), "monthsShort", "months", 3);
|
|
4917
|
-
}, o.weekdays = function(
|
|
4918
|
-
return l(u(), "weekdays", null, null,
|
|
4919
|
-
}, o.weekdaysShort = function(
|
|
4920
|
-
return l(u(), "weekdaysShort", "weekdays", 3,
|
|
4921
|
-
}, o.weekdaysMin = function(
|
|
4922
|
-
return l(u(), "weekdaysMin", "weekdays", 2,
|
|
4917
|
+
}, o.weekdays = function(c) {
|
|
4918
|
+
return l(u(), "weekdays", null, null, c);
|
|
4919
|
+
}, o.weekdaysShort = function(c) {
|
|
4920
|
+
return l(u(), "weekdaysShort", "weekdays", 3, c);
|
|
4921
|
+
}, o.weekdaysMin = function(c) {
|
|
4922
|
+
return l(u(), "weekdaysMin", "weekdays", 2, c);
|
|
4923
4923
|
};
|
|
4924
4924
|
};
|
|
4925
4925
|
});
|
|
@@ -4967,21 +4967,21 @@ const lt = {
|
|
|
4967
4967
|
required: l
|
|
4968
4968
|
} = i, {
|
|
4969
4969
|
token: u
|
|
4970
|
-
} = Ul(),
|
|
4970
|
+
} = Ul(), d = l && !a ? {
|
|
4971
4971
|
backgroundColor: u.colorPrimaryBg
|
|
4972
|
-
} : void 0, f = o ? "time" : "date",
|
|
4972
|
+
} : void 0, f = o ? "time" : "date", c = (p) => {
|
|
4973
4973
|
r == null || r(p);
|
|
4974
4974
|
}, m = (p) => {
|
|
4975
4975
|
if (p === null) {
|
|
4976
|
-
|
|
4976
|
+
c(void 0);
|
|
4977
4977
|
return;
|
|
4978
4978
|
}
|
|
4979
|
-
|
|
4979
|
+
c(p.format(lt[f].dateInternalFormat));
|
|
4980
4980
|
}, y = t ? dt(t, lt[f].dateInternalFormat) : void 0;
|
|
4981
4981
|
return /* @__PURE__ */ n(Mn, {
|
|
4982
4982
|
style: {
|
|
4983
4983
|
width: "100%",
|
|
4984
|
-
...
|
|
4984
|
+
...d
|
|
4985
4985
|
},
|
|
4986
4986
|
placeholder: o ? lt.time.placeholder : lt.date.placeholder,
|
|
4987
4987
|
disabled: a,
|
|
@@ -5065,9 +5065,9 @@ function pn(e) {
|
|
|
5065
5065
|
onRequestPageChange: a,
|
|
5066
5066
|
loading: l,
|
|
5067
5067
|
onRowClicked: u,
|
|
5068
|
-
showPagination:
|
|
5068
|
+
showPagination: d = !0,
|
|
5069
5069
|
rowSelection: f,
|
|
5070
|
-
scrollY:
|
|
5070
|
+
scrollY: c,
|
|
5071
5071
|
colorsForResults: m = {},
|
|
5072
5072
|
statusForResults: y = {},
|
|
5073
5073
|
onChangeSort: p,
|
|
@@ -5109,7 +5109,7 @@ function pn(e) {
|
|
|
5109
5109
|
const J = uo(w.current, s);
|
|
5110
5110
|
_(J), L.current = r;
|
|
5111
5111
|
}, [s]);
|
|
5112
|
-
const M = (t - 1) * L.current + 1, I = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? S("no_results") : S("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), A = () => !
|
|
5112
|
+
const M = (t - 1) * L.current + 1, I = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? S("no_results") : S("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), A = () => !d || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
|
|
5113
5113
|
className: "pb-4"
|
|
5114
5114
|
}) : /* @__PURE__ */ P(xe, {
|
|
5115
5115
|
align: "bottom",
|
|
@@ -5146,11 +5146,11 @@ function pn(e) {
|
|
|
5146
5146
|
children: $.join(", ")
|
|
5147
5147
|
});
|
|
5148
5148
|
}
|
|
5149
|
-
let q, W =
|
|
5149
|
+
let q, W = c;
|
|
5150
5150
|
if (w.current !== null) {
|
|
5151
5151
|
q = Ll(E, V, 600);
|
|
5152
5152
|
const U = w.current;
|
|
5153
|
-
|
|
5153
|
+
c && U.columns.some(($) => $.sum !== void 0) && (W = c - 30);
|
|
5154
5154
|
}
|
|
5155
5155
|
return w.current === null ? /* @__PURE__ */ n(Me, {
|
|
5156
5156
|
style: {
|
|
@@ -5201,9 +5201,9 @@ function sc(e, t) {
|
|
|
5201
5201
|
nameSearch: a,
|
|
5202
5202
|
treeScrollY: l,
|
|
5203
5203
|
domain: u = [],
|
|
5204
|
-
visible:
|
|
5204
|
+
visible: d = !0,
|
|
5205
5205
|
rootTree: f = !1,
|
|
5206
|
-
parentContext:
|
|
5206
|
+
parentContext: c = {},
|
|
5207
5207
|
onChangeSelectedRowKeys: m
|
|
5208
5208
|
} = e, [y, p] = O(!1), [h, g] = O(!1), v = fe(!1), [T, D] = O(), [b, V] = O(), [_, E] = O(), [x, C] = O(), [w, S] = O(200), L = fe(), {
|
|
5209
5209
|
height: R
|
|
@@ -5256,7 +5256,7 @@ function sc(e, t) {
|
|
|
5256
5256
|
setTreeIsLoading: z,
|
|
5257
5257
|
nameSearch: a,
|
|
5258
5258
|
searchNameGetDoneRef: v,
|
|
5259
|
-
context:
|
|
5259
|
+
context: c,
|
|
5260
5260
|
formView: _,
|
|
5261
5261
|
treeView: b,
|
|
5262
5262
|
sorter: te,
|
|
@@ -5277,8 +5277,8 @@ function sc(e, t) {
|
|
|
5277
5277
|
getFields: () => b == null ? void 0 : b.fields,
|
|
5278
5278
|
getDomain: () => u
|
|
5279
5279
|
})), pe(() => {
|
|
5280
|
-
!h ||
|
|
5281
|
-
}, [Re, Ze, h,
|
|
5280
|
+
!h || d && (v.current = !1, ie());
|
|
5281
|
+
}, [Re, Ze, h, d, a]);
|
|
5282
5282
|
const ue = async () => {
|
|
5283
5283
|
g(!1), p(!0), C(void 0), z == null || z(!0);
|
|
5284
5284
|
try {
|
|
@@ -5294,13 +5294,13 @@ function sc(e, t) {
|
|
|
5294
5294
|
i || (Fe = await H.getHandler().getView({
|
|
5295
5295
|
model: r,
|
|
5296
5296
|
type: "form",
|
|
5297
|
-
context:
|
|
5297
|
+
context: c
|
|
5298
5298
|
}));
|
|
5299
5299
|
let $e = o;
|
|
5300
5300
|
o || ($e = await H.getHandler().getView({
|
|
5301
5301
|
model: r,
|
|
5302
5302
|
type: "tree",
|
|
5303
|
-
context:
|
|
5303
|
+
context: c
|
|
5304
5304
|
})), E(Fe), V($e);
|
|
5305
5305
|
};
|
|
5306
5306
|
pe(() => {
|
|
@@ -5315,7 +5315,7 @@ function sc(e, t) {
|
|
|
5315
5315
|
L.current || (L.current = await H.getHandler().treeButOpen({
|
|
5316
5316
|
id: b.view_id,
|
|
5317
5317
|
model: T,
|
|
5318
|
-
context:
|
|
5318
|
+
context: c
|
|
5319
5319
|
}));
|
|
5320
5320
|
const ot = L.current[0][2];
|
|
5321
5321
|
await (k == null ? void 0 : k({
|
|
@@ -5325,7 +5325,7 @@ function sc(e, t) {
|
|
|
5325
5325
|
active_id: $e,
|
|
5326
5326
|
...Fe
|
|
5327
5327
|
},
|
|
5328
|
-
context:
|
|
5328
|
+
context: c
|
|
5329
5329
|
}));
|
|
5330
5330
|
}, se = async (Fe) => {
|
|
5331
5331
|
const {
|
|
@@ -5371,7 +5371,7 @@ function sc(e, t) {
|
|
|
5371
5371
|
searchVisible: $,
|
|
5372
5372
|
searchValues: he
|
|
5373
5373
|
}), /* @__PURE__ */ n(pn, {
|
|
5374
|
-
context:
|
|
5374
|
+
context: c,
|
|
5375
5375
|
total: Ue,
|
|
5376
5376
|
limit: Ee,
|
|
5377
5377
|
page: Re,
|
|
@@ -5400,7 +5400,7 @@ function sc(e, t) {
|
|
|
5400
5400
|
type: "error",
|
|
5401
5401
|
banner: !0
|
|
5402
5402
|
}) : /* @__PURE__ */ n("div", {
|
|
5403
|
-
style:
|
|
5403
|
+
style: d ? {} : {
|
|
5404
5404
|
display: "none"
|
|
5405
5405
|
},
|
|
5406
5406
|
children: y ? /* @__PURE__ */ n(Me, {}) : Se()
|
|
@@ -5415,9 +5415,9 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5415
5415
|
nameSearch: s,
|
|
5416
5416
|
domain: a,
|
|
5417
5417
|
context: l = {}
|
|
5418
|
-
} = e, [u,
|
|
5418
|
+
} = e, [u, d] = O(!1), {
|
|
5419
5419
|
modalWidth: f,
|
|
5420
|
-
modalHeight:
|
|
5420
|
+
modalHeight: c
|
|
5421
5421
|
} = fn(), {
|
|
5422
5422
|
t: m
|
|
5423
5423
|
} = Y(ve), [y, p] = O([]), h = async () => {
|
|
@@ -5440,7 +5440,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5440
5440
|
model: o,
|
|
5441
5441
|
nameSearch: s,
|
|
5442
5442
|
onRowClicked: g,
|
|
5443
|
-
treeScrollY:
|
|
5443
|
+
treeScrollY: c * 0.3,
|
|
5444
5444
|
domain: a,
|
|
5445
5445
|
parentContext: l,
|
|
5446
5446
|
onChangeSelectedRowKeys: (D) => {
|
|
@@ -5452,7 +5452,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5452
5452
|
children: [/* @__PURE__ */ n(_e, {
|
|
5453
5453
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
5454
5454
|
onClick: () => {
|
|
5455
|
-
|
|
5455
|
+
d(!0);
|
|
5456
5456
|
},
|
|
5457
5457
|
children: m("new")
|
|
5458
5458
|
}), /* @__PURE__ */ n(_e, {
|
|
@@ -5487,10 +5487,10 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5487
5487
|
visible: u,
|
|
5488
5488
|
parentContext: l,
|
|
5489
5489
|
onSubmitSucceed: (D) => {
|
|
5490
|
-
|
|
5490
|
+
d(!1), h(), i([D]);
|
|
5491
5491
|
},
|
|
5492
5492
|
onCancel: () => {
|
|
5493
|
-
|
|
5493
|
+
d(!1), h();
|
|
5494
5494
|
}
|
|
5495
5495
|
})]
|
|
5496
5496
|
});
|
|
@@ -5539,10 +5539,10 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5539
5539
|
readOnly: a,
|
|
5540
5540
|
context: l,
|
|
5541
5541
|
id: u,
|
|
5542
|
-
domain:
|
|
5542
|
+
domain: d
|
|
5543
5543
|
} = i, f = o && !a ? {
|
|
5544
5544
|
backgroundColor: Io.colorPrimaryBg
|
|
5545
|
-
} : void 0, [
|
|
5545
|
+
} : void 0, [c, m] = O(!1), [y, p] = O(!1), [h, g] = O(!1), [v, T] = O(), D = fe(!1), [b, V] = O(""), _ = fe(), E = Y(Ne), {
|
|
5546
5546
|
domain: x,
|
|
5547
5547
|
getValues: C,
|
|
5548
5548
|
getFields: w,
|
|
@@ -5620,8 +5620,8 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
};
|
|
5622
5622
|
async function J() {
|
|
5623
|
-
|
|
5624
|
-
domain:
|
|
5623
|
+
d && (R.current = await H.getHandler().evalDomain({
|
|
5624
|
+
domain: d,
|
|
5625
5625
|
values: Mt({
|
|
5626
5626
|
fields: w(),
|
|
5627
5627
|
values: C()
|
|
@@ -5699,7 +5699,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5699
5699
|
...S == null ? void 0 : S(),
|
|
5700
5700
|
...l
|
|
5701
5701
|
},
|
|
5702
|
-
visible:
|
|
5702
|
+
visible: c,
|
|
5703
5703
|
nameSearch: M ? void 0 : v,
|
|
5704
5704
|
onSelectValues: (B) => {
|
|
5705
5705
|
m(!1), W(B[0]), D.current = !1, _.current = void 0;
|
|
@@ -5757,9 +5757,9 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5757
5757
|
showPercent: a = !1,
|
|
5758
5758
|
icon: l,
|
|
5759
5759
|
suffix: u,
|
|
5760
|
-
field:
|
|
5760
|
+
field: d,
|
|
5761
5761
|
operator: f,
|
|
5762
|
-
manualIds:
|
|
5762
|
+
manualIds: c
|
|
5763
5763
|
} = e, [m, y] = O(!1), [p, h] = O(), [g, v] = O(), [T, D] = O(), [b, V] = O(0), [_, E] = O(0), [x, C] = O(), [w, S] = O(), [L, R] = O();
|
|
5764
5764
|
pe(() => {
|
|
5765
5765
|
M();
|
|
@@ -5772,23 +5772,23 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5772
5772
|
return await k({
|
|
5773
5773
|
domain: I
|
|
5774
5774
|
});
|
|
5775
|
-
if (
|
|
5776
|
-
const A =
|
|
5775
|
+
if (d && f) {
|
|
5776
|
+
const A = c || await H.getHandler().searchAllIds({
|
|
5777
5777
|
params: I,
|
|
5778
5778
|
model: t,
|
|
5779
5779
|
context: i
|
|
5780
5780
|
}), j = await H.getHandler().readObjects({
|
|
5781
5781
|
model: t,
|
|
5782
5782
|
ids: A,
|
|
5783
|
-
fieldsToRetrieve: [
|
|
5783
|
+
fieldsToRetrieve: [d],
|
|
5784
5784
|
context: i
|
|
5785
5785
|
});
|
|
5786
5786
|
return Ir({
|
|
5787
|
-
values: j.map((q) => q[
|
|
5787
|
+
values: j.map((q) => q[d]),
|
|
5788
5788
|
operator: f
|
|
5789
5789
|
});
|
|
5790
5790
|
} else
|
|
5791
|
-
return
|
|
5791
|
+
return c ? c.length : await H.getHandler().searchCount({
|
|
5792
5792
|
model: t,
|
|
5793
5793
|
params: I,
|
|
5794
5794
|
context: i
|
|
@@ -5797,7 +5797,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5797
5797
|
async function k({
|
|
5798
5798
|
domain: I
|
|
5799
5799
|
}) {
|
|
5800
|
-
if (
|
|
5800
|
+
if (d && f) {
|
|
5801
5801
|
const N = await H.getHandler().searchAllIds({
|
|
5802
5802
|
params: I,
|
|
5803
5803
|
model: t,
|
|
@@ -5805,11 +5805,11 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5805
5805
|
}), A = await H.getHandler().readObjects({
|
|
5806
5806
|
model: t,
|
|
5807
5807
|
ids: N,
|
|
5808
|
-
fieldsToRetrieve: [
|
|
5808
|
+
fieldsToRetrieve: [d],
|
|
5809
5809
|
context: i
|
|
5810
5810
|
});
|
|
5811
5811
|
return Ir({
|
|
5812
|
-
values: A.map((j) => j[
|
|
5812
|
+
values: A.map((j) => j[d]),
|
|
5813
5813
|
operator: f
|
|
5814
5814
|
});
|
|
5815
5815
|
} else
|
|
@@ -5926,13 +5926,13 @@ function hc({
|
|
|
5926
5926
|
suffix: l
|
|
5927
5927
|
}) {
|
|
5928
5928
|
let u = r * rn < on ? on : r * rn;
|
|
5929
|
-
const
|
|
5929
|
+
const d = o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5930
5930
|
useGrouping: !0
|
|
5931
5931
|
});
|
|
5932
|
-
let f = i ? `${
|
|
5932
|
+
let f = i ? `${d}/${i}` : `${d}`;
|
|
5933
5933
|
l && (f += " " + l);
|
|
5934
|
-
let
|
|
5935
|
-
a && (
|
|
5934
|
+
let c = Ao(f, `bold ${Math.floor(u * 1.03)}px sans-serif`);
|
|
5935
|
+
a && (c = c * 2), c >= t * 0.85 && (u = t * 0.85 / c * u);
|
|
5936
5936
|
const m = a && st(a);
|
|
5937
5937
|
return /* @__PURE__ */ n("div", {
|
|
5938
5938
|
ref: e,
|
|
@@ -5969,14 +5969,14 @@ function pc({
|
|
|
5969
5969
|
icon: l,
|
|
5970
5970
|
suffix: u
|
|
5971
5971
|
}) {
|
|
5972
|
-
const
|
|
5973
|
-
let f =
|
|
5974
|
-
const
|
|
5972
|
+
const d = t * 0.65;
|
|
5973
|
+
let f = d * rn < on ? on : d * rn;
|
|
5974
|
+
const c = s == null ? void 0 : s.toLocaleString("es-ES", {
|
|
5975
5975
|
useGrouping: !0
|
|
5976
5976
|
});
|
|
5977
|
-
let m = o ? `${
|
|
5977
|
+
let m = o ? `${c}/${o == null ? void 0 : o.toLocaleString("es-ES", {
|
|
5978
5978
|
useGrouping: !0
|
|
5979
|
-
})}` : `${
|
|
5979
|
+
})}` : `${c}`;
|
|
5980
5980
|
u && (m += " " + u);
|
|
5981
5981
|
const y = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
5982
5982
|
useGrouping: !0
|
|
@@ -5984,7 +5984,7 @@ function pc({
|
|
|
5984
5984
|
let p = Ao(y, `bold ${Math.floor(f * 1.03)}px sans-serif`);
|
|
5985
5985
|
l && (p = p * 1.5);
|
|
5986
5986
|
const h = l && st(l);
|
|
5987
|
-
return (p >= r * 0.85 || f * 2 <
|
|
5987
|
+
return (p >= r * 0.85 || f * 2 < d) && (f = r * 0.85 / p * f), /* @__PURE__ */ n("div", {
|
|
5988
5988
|
ref: e,
|
|
5989
5989
|
style: {
|
|
5990
5990
|
width: "100%",
|
|
@@ -6171,10 +6171,10 @@ const {
|
|
|
6171
6171
|
limit: s,
|
|
6172
6172
|
uninformedString: a,
|
|
6173
6173
|
manualIds: l
|
|
6174
|
-
} = e, [u,
|
|
6174
|
+
} = e, [u, d] = O(!1), [f, c] = O(), [m, y] = O(), [p, h] = O(), [g, v] = O("line");
|
|
6175
6175
|
return St(() => {
|
|
6176
6176
|
(async () => {
|
|
6177
|
-
|
|
6177
|
+
d(!0), c(void 0);
|
|
6178
6178
|
const T = Ln(o);
|
|
6179
6179
|
v(T.type || "line");
|
|
6180
6180
|
const D = xc({
|
|
@@ -6195,12 +6195,12 @@ const {
|
|
|
6195
6195
|
manualIds: l
|
|
6196
6196
|
}));
|
|
6197
6197
|
} catch (_) {
|
|
6198
|
-
|
|
6198
|
+
c("Error fetching graph data values: " + JSON.stringify(_)), d(!1);
|
|
6199
6199
|
return;
|
|
6200
6200
|
}
|
|
6201
6201
|
try {
|
|
6202
6202
|
if (!b || !V) {
|
|
6203
|
-
|
|
6203
|
+
c("No values or fields returned"), d(!1);
|
|
6204
6204
|
return;
|
|
6205
6205
|
}
|
|
6206
6206
|
h(b);
|
|
@@ -6214,10 +6214,10 @@ const {
|
|
|
6214
6214
|
});
|
|
6215
6215
|
y(_);
|
|
6216
6216
|
} catch (_) {
|
|
6217
|
-
|
|
6217
|
+
c("Error processing graph data: " + _), d(!1);
|
|
6218
6218
|
return;
|
|
6219
6219
|
}
|
|
6220
|
-
|
|
6220
|
+
d(!1);
|
|
6221
6221
|
})();
|
|
6222
6222
|
}, [o, t, s, i, r]), {
|
|
6223
6223
|
loading: u,
|
|
@@ -6253,14 +6253,14 @@ async function Tc({
|
|
|
6253
6253
|
fields: e
|
|
6254
6254
|
});
|
|
6255
6255
|
if (a) {
|
|
6256
|
-
let
|
|
6256
|
+
let d = await H.getHandler().readObjects({
|
|
6257
6257
|
model: t,
|
|
6258
6258
|
ids: a,
|
|
6259
6259
|
fieldsToRetrieve: e,
|
|
6260
6260
|
context: i
|
|
6261
6261
|
});
|
|
6262
|
-
return o && (
|
|
6263
|
-
values:
|
|
6262
|
+
return o && (d = [...d].sort((f, c) => f[o] - c[o])), {
|
|
6263
|
+
values: d,
|
|
6264
6264
|
fields: l
|
|
6265
6265
|
};
|
|
6266
6266
|
}
|
|
@@ -6293,9 +6293,9 @@ const Fc = {
|
|
|
6293
6293
|
t: l
|
|
6294
6294
|
} = Y(ve), {
|
|
6295
6295
|
error: u,
|
|
6296
|
-
loading:
|
|
6296
|
+
loading: d,
|
|
6297
6297
|
values: f,
|
|
6298
|
-
type:
|
|
6298
|
+
type: c,
|
|
6299
6299
|
evaluatedEntries: m
|
|
6300
6300
|
} = Cc({
|
|
6301
6301
|
model: t,
|
|
@@ -6312,7 +6312,7 @@ const Fc = {
|
|
|
6312
6312
|
type: "error",
|
|
6313
6313
|
banner: !0
|
|
6314
6314
|
});
|
|
6315
|
-
if (
|
|
6315
|
+
if (d)
|
|
6316
6316
|
return /* @__PURE__ */ n(Me, {});
|
|
6317
6317
|
if (!f)
|
|
6318
6318
|
return /* @__PURE__ */ n(Qe, {
|
|
@@ -6323,7 +6323,7 @@ const Fc = {
|
|
|
6323
6323
|
data: y,
|
|
6324
6324
|
isGroup: p,
|
|
6325
6325
|
isStack: h
|
|
6326
|
-
} = f, g = Fc[
|
|
6326
|
+
} = f, g = Fc[c];
|
|
6327
6327
|
return g ? /* @__PURE__ */ P("div", {
|
|
6328
6328
|
style: {
|
|
6329
6329
|
padding: "1rem"
|
|
@@ -6337,14 +6337,14 @@ const Fc = {
|
|
|
6337
6337
|
})}`
|
|
6338
6338
|
}), /* @__PURE__ */ n(g, {
|
|
6339
6339
|
..._c({
|
|
6340
|
-
type:
|
|
6340
|
+
type: c,
|
|
6341
6341
|
data: y,
|
|
6342
6342
|
isGroup: p,
|
|
6343
6343
|
isStack: h
|
|
6344
6344
|
})
|
|
6345
6345
|
})]
|
|
6346
6346
|
}) : /* @__PURE__ */ n(re, {
|
|
6347
|
-
children: `Unknown graph type: ${
|
|
6347
|
+
children: `Unknown graph type: ${c}`
|
|
6348
6348
|
});
|
|
6349
6349
|
};
|
|
6350
6350
|
function _c(e) {
|
|
@@ -6365,7 +6365,7 @@ const Ic = (e, t) => {
|
|
|
6365
6365
|
domain: s,
|
|
6366
6366
|
limit: a,
|
|
6367
6367
|
manualIds: l
|
|
6368
|
-
} = e, [u,
|
|
6368
|
+
} = e, [u, d] = O(!1), [f, c] = O(), [m, y] = O(), p = Y(et), {
|
|
6369
6369
|
setGraphIsLoading: h = void 0
|
|
6370
6370
|
} = p || {};
|
|
6371
6371
|
xt(t, () => ({
|
|
@@ -6376,7 +6376,7 @@ const Ic = (e, t) => {
|
|
|
6376
6376
|
g();
|
|
6377
6377
|
}, [r]);
|
|
6378
6378
|
async function g() {
|
|
6379
|
-
|
|
6379
|
+
d(!0), h == null || h(!0);
|
|
6380
6380
|
try {
|
|
6381
6381
|
const v = await H.getHandler().getView({
|
|
6382
6382
|
model: i,
|
|
@@ -6386,13 +6386,13 @@ const Ic = (e, t) => {
|
|
|
6386
6386
|
});
|
|
6387
6387
|
y(v.arch);
|
|
6388
6388
|
const T = Ln(v.arch);
|
|
6389
|
-
|
|
6389
|
+
c(T);
|
|
6390
6390
|
} catch (v) {
|
|
6391
6391
|
return console.error(v), /* @__PURE__ */ n(re, {
|
|
6392
6392
|
children: JSON.stringify(v)
|
|
6393
6393
|
});
|
|
6394
6394
|
}
|
|
6395
|
-
|
|
6395
|
+
d(!1), h == null || h(!1);
|
|
6396
6396
|
}
|
|
6397
6397
|
if (u)
|
|
6398
6398
|
return /* @__PURE__ */ n("div", {
|
|
@@ -6490,9 +6490,9 @@ const Ic = (e, t) => {
|
|
|
6490
6490
|
onDelete: a,
|
|
6491
6491
|
totalItems: l,
|
|
6492
6492
|
currentItemIndex: u,
|
|
6493
|
-
onPreviousItem:
|
|
6493
|
+
onPreviousItem: d,
|
|
6494
6494
|
onNextItem: f,
|
|
6495
|
-
isMany2Many:
|
|
6495
|
+
isMany2Many: c,
|
|
6496
6496
|
onSearchItem: m,
|
|
6497
6497
|
selectedRowKeys: y,
|
|
6498
6498
|
showCreateButton: p,
|
|
@@ -6523,8 +6523,8 @@ const Ic = (e, t) => {
|
|
|
6523
6523
|
}
|
|
6524
6524
|
function D() {
|
|
6525
6525
|
return /* @__PURE__ */ n(Je, {
|
|
6526
|
-
tooltip:
|
|
6527
|
-
icon:
|
|
6526
|
+
tooltip: c ? "Unlink" : "Delete",
|
|
6527
|
+
icon: c ? /* @__PURE__ */ n(xi, {}) : /* @__PURE__ */ n(Yn, {}),
|
|
6528
6528
|
onClick: a,
|
|
6529
6529
|
disabled: l === 0 || r || s !== "form" && y.length === 0
|
|
6530
6530
|
});
|
|
@@ -6541,7 +6541,7 @@ const Ic = (e, t) => {
|
|
|
6541
6541
|
children: [v(), /* @__PURE__ */ n(Je, {
|
|
6542
6542
|
tooltip: "Previous item",
|
|
6543
6543
|
icon: /* @__PURE__ */ n(Ur, {}),
|
|
6544
|
-
onClick:
|
|
6544
|
+
onClick: d
|
|
6545
6545
|
}), b(), /* @__PURE__ */ n(Je, {
|
|
6546
6546
|
tooltip: "Next item",
|
|
6547
6547
|
icon: /* @__PURE__ */ n(Gr, {}),
|
|
@@ -6558,7 +6558,7 @@ const Ic = (e, t) => {
|
|
|
6558
6558
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
6559
6559
|
disabled: r,
|
|
6560
6560
|
onClick: i
|
|
6561
|
-
}),
|
|
6561
|
+
}), c && p && /* @__PURE__ */ n(Je, {
|
|
6562
6562
|
tooltip: "Search existing item",
|
|
6563
6563
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
6564
6564
|
disabled: r,
|
|
@@ -6597,9 +6597,9 @@ const Lc = (e) => {
|
|
|
6597
6597
|
currentView: a,
|
|
6598
6598
|
setCurrentView: l,
|
|
6599
6599
|
itemIndex: u,
|
|
6600
|
-
setItemIndex:
|
|
6600
|
+
setItemIndex: d
|
|
6601
6601
|
} = Y(Vo), f = Y(Ne), {
|
|
6602
|
-
activeId:
|
|
6602
|
+
activeId: c,
|
|
6603
6603
|
getFields: m,
|
|
6604
6604
|
getValues: y,
|
|
6605
6605
|
getContext: p,
|
|
@@ -6635,7 +6635,7 @@ const Lc = (e) => {
|
|
|
6635
6635
|
items: $c(Q)
|
|
6636
6636
|
});
|
|
6637
6637
|
}, Ee = async () => {
|
|
6638
|
-
await Ve(), u > X.length - 1 && u !== 0 &&
|
|
6638
|
+
await Ve(), u > X.length - 1 && u !== 0 && d(0);
|
|
6639
6639
|
}, Ve = async (Q) => {
|
|
6640
6640
|
var se, Ce, ge;
|
|
6641
6641
|
V(!0), D(!1), E(void 0);
|
|
@@ -6684,13 +6684,13 @@ const Lc = (e) => {
|
|
|
6684
6684
|
}) : l(se);
|
|
6685
6685
|
}, ie = () => {
|
|
6686
6686
|
u > 0 && (a === "form" ? we(() => {
|
|
6687
|
-
|
|
6688
|
-
}) :
|
|
6687
|
+
d(u - 1);
|
|
6688
|
+
}) : d(u - 1));
|
|
6689
6689
|
}, de = () => {
|
|
6690
6690
|
const Q = X.length;
|
|
6691
6691
|
u < Q - 1 && (a === "form" ? we(() => {
|
|
6692
|
-
|
|
6693
|
-
}) :
|
|
6692
|
+
d(u + 1);
|
|
6693
|
+
}) : d(u + 1));
|
|
6694
6694
|
}, je = async () => {
|
|
6695
6695
|
const Q = X[u].id, se = (await H.getHandler().readObjects({
|
|
6696
6696
|
model: $,
|
|
@@ -6743,8 +6743,8 @@ const Lc = (e) => {
|
|
|
6743
6743
|
inv_field: Q
|
|
6744
6744
|
} = i;
|
|
6745
6745
|
let se;
|
|
6746
|
-
Q &&
|
|
6747
|
-
[Q]:
|
|
6746
|
+
Q && c && (se = {
|
|
6747
|
+
[Q]: c
|
|
6748
6748
|
}), a === "form" ? we(() => {
|
|
6749
6749
|
I(!0), R({
|
|
6750
6750
|
defaultValues: se
|
|
@@ -6770,7 +6770,7 @@ const Lc = (e) => {
|
|
|
6770
6770
|
} catch (Q) {
|
|
6771
6771
|
E(Q);
|
|
6772
6772
|
}
|
|
6773
|
-
|
|
6773
|
+
d(0), V(!1);
|
|
6774
6774
|
}, Ae = async () => {
|
|
6775
6775
|
const Q = X.filter((se) => F.includes(se.id));
|
|
6776
6776
|
V(!0), D(!1), E(void 0);
|
|
@@ -6783,7 +6783,7 @@ const Lc = (e) => {
|
|
|
6783
6783
|
} catch (se) {
|
|
6784
6784
|
E(se);
|
|
6785
6785
|
}
|
|
6786
|
-
|
|
6786
|
+
d(0), V(!1);
|
|
6787
6787
|
}, ke = (Q, se, Ce, ge = !1) => {
|
|
6788
6788
|
let Se;
|
|
6789
6789
|
if (ge)
|
|
@@ -6943,7 +6943,7 @@ const Lc = (e) => {
|
|
|
6943
6943
|
readonly: U
|
|
6944
6944
|
});
|
|
6945
6945
|
if (a === "graph") {
|
|
6946
|
-
const Te = [[`${i.inv_field}`, "=",
|
|
6946
|
+
const Te = [[`${i.inv_field}`, "=", c]];
|
|
6947
6947
|
return /* @__PURE__ */ n(gn, {
|
|
6948
6948
|
view_id: o.get("graph").view_id,
|
|
6949
6949
|
model: i.relation,
|
|
@@ -7027,7 +7027,7 @@ const Lc = (e) => {
|
|
|
7027
7027
|
context: a
|
|
7028
7028
|
} = t;
|
|
7029
7029
|
let l;
|
|
7030
|
-
const [u,
|
|
7030
|
+
const [u, d] = O(!0), [f, c] = O(), [m, y] = O(/* @__PURE__ */ new Map()), p = Y(Ne), {
|
|
7031
7031
|
getContext: h
|
|
7032
7032
|
} = p || {};
|
|
7033
7033
|
St(() => {
|
|
@@ -7041,7 +7041,7 @@ const Lc = (e) => {
|
|
|
7041
7041
|
...a
|
|
7042
7042
|
}
|
|
7043
7043
|
}), v = async () => {
|
|
7044
|
-
|
|
7044
|
+
d(!0), c(void 0);
|
|
7045
7045
|
try {
|
|
7046
7046
|
if (r && r.length > 0) {
|
|
7047
7047
|
for (const D of r) {
|
|
@@ -7054,9 +7054,9 @@ const Lc = (e) => {
|
|
|
7054
7054
|
m.set("form", D), m.set("tree", b), y(m);
|
|
7055
7055
|
}
|
|
7056
7056
|
} catch (D) {
|
|
7057
|
-
|
|
7057
|
+
c(JSON.stringify(D));
|
|
7058
7058
|
} finally {
|
|
7059
|
-
|
|
7059
|
+
d(!1);
|
|
7060
7060
|
}
|
|
7061
7061
|
};
|
|
7062
7062
|
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(Qe, {
|
|
@@ -7115,17 +7115,17 @@ const Lc = (e) => {
|
|
|
7115
7115
|
token: l
|
|
7116
7116
|
} = Pc(), u = a && !s ? {
|
|
7117
7117
|
backgroundColor: l.colorPrimaryBg
|
|
7118
|
-
} : void 0,
|
|
7118
|
+
} : void 0, d = fe(), [f, c] = O(), m = Y(Ne), {
|
|
7119
7119
|
elementHasLostFocus: y
|
|
7120
7120
|
} = m || {};
|
|
7121
7121
|
pe(() => {
|
|
7122
|
-
|
|
7122
|
+
c(bo(r));
|
|
7123
7123
|
}, [r]);
|
|
7124
7124
|
const p = (v) => {
|
|
7125
7125
|
i == null || i(v);
|
|
7126
7126
|
};
|
|
7127
7127
|
function h(v) {
|
|
7128
|
-
|
|
7128
|
+
d.current = v.target.value, c(v.target.value);
|
|
7129
7129
|
}
|
|
7130
7130
|
async function g() {
|
|
7131
7131
|
p(Nl(f)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
|
|
@@ -7207,9 +7207,9 @@ const {
|
|
|
7207
7207
|
token: l
|
|
7208
7208
|
} = Yc(), u = o && !i ? {
|
|
7209
7209
|
backgroundColor: l.colorPrimaryBg
|
|
7210
|
-
} : void 0,
|
|
7210
|
+
} : void 0, d = Y(Ne), {
|
|
7211
7211
|
elementHasLostFocus: f
|
|
7212
|
-
} =
|
|
7212
|
+
} = d || {};
|
|
7213
7213
|
return /* @__PURE__ */ n(ye, {
|
|
7214
7214
|
required: o,
|
|
7215
7215
|
...e,
|
|
@@ -7238,19 +7238,19 @@ const {
|
|
|
7238
7238
|
activeId: a,
|
|
7239
7239
|
activeModel: l,
|
|
7240
7240
|
fetchValues: u,
|
|
7241
|
-
formHasChanges:
|
|
7241
|
+
formHasChanges: d,
|
|
7242
7242
|
elementHasLostFocus: f
|
|
7243
|
-
} = s || {}, [
|
|
7243
|
+
} = s || {}, [c, m] = O(!1), {
|
|
7244
7244
|
t: y
|
|
7245
7245
|
} = Y(ve);
|
|
7246
7246
|
return a ? /* @__PURE__ */ P(re, {
|
|
7247
7247
|
children: [/* @__PURE__ */ n("div", {
|
|
7248
7248
|
onClick: () => {
|
|
7249
|
-
if (
|
|
7249
|
+
if (d != null && d()) {
|
|
7250
7250
|
ct(y("saveBeforeTranslate"));
|
|
7251
7251
|
return;
|
|
7252
7252
|
}
|
|
7253
|
-
|
|
7253
|
+
c || m(!0);
|
|
7254
7254
|
},
|
|
7255
7255
|
children: /* @__PURE__ */ n(An, {
|
|
7256
7256
|
value: e,
|
|
@@ -7272,7 +7272,7 @@ const {
|
|
|
7272
7272
|
id: a,
|
|
7273
7273
|
model: l,
|
|
7274
7274
|
field: t,
|
|
7275
|
-
visible:
|
|
7275
|
+
visible: c,
|
|
7276
7276
|
onCloseModal: () => {
|
|
7277
7277
|
m(!1);
|
|
7278
7278
|
},
|
|
@@ -7306,7 +7306,7 @@ const {
|
|
|
7306
7306
|
tooltip: y("translate"),
|
|
7307
7307
|
icon: /* @__PURE__ */ n(jr, {}),
|
|
7308
7308
|
onClick: async () => {
|
|
7309
|
-
|
|
7309
|
+
d != null && d() ? ct(y("saveBeforeTranslate")) : ct(y("enterTextBeforeTranslate"));
|
|
7310
7310
|
},
|
|
7311
7311
|
children: y("translate")
|
|
7312
7312
|
})
|
|
@@ -7335,7 +7335,7 @@ const {
|
|
|
7335
7335
|
limit: s,
|
|
7336
7336
|
onClose: a
|
|
7337
7337
|
}) => {
|
|
7338
|
-
const l = fe({}), u = fe(/* @__PURE__ */ new Map()),
|
|
7338
|
+
const l = fe({}), u = fe(/* @__PURE__ */ new Map()), d = Le(
|
|
7339
7339
|
async (g) => {
|
|
7340
7340
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7341
7341
|
ct(Oe("selectAtLeastOneField", r));
|
|
@@ -7368,7 +7368,7 @@ const {
|
|
|
7368
7368
|
fields: []
|
|
7369
7369
|
});
|
|
7370
7370
|
return l.current["/"] = g, Vr({ fields: g });
|
|
7371
|
-
}, [e, t, l]),
|
|
7371
|
+
}, [e, t, l]), c = Le(
|
|
7372
7372
|
async (g) => {
|
|
7373
7373
|
const T = kn(g, l.current)[Rn(g)], D = T.relation, b = await H.getHandler().getFields({
|
|
7374
7374
|
model: D,
|
|
@@ -7390,7 +7390,7 @@ const {
|
|
|
7390
7390
|
const g = await Zc({ model: e, context: t }), v = await Qc({
|
|
7391
7391
|
predefinedExports: g,
|
|
7392
7392
|
fields: l.current,
|
|
7393
|
-
onGetFieldChilds:
|
|
7393
|
+
onGetFieldChilds: c
|
|
7394
7394
|
});
|
|
7395
7395
|
return {
|
|
7396
7396
|
predefinedExports: g.map((D) => ({
|
|
@@ -7452,8 +7452,8 @@ const {
|
|
|
7452
7452
|
);
|
|
7453
7453
|
return {
|
|
7454
7454
|
onGetFields: f,
|
|
7455
|
-
onGetFieldChilds:
|
|
7456
|
-
onExport:
|
|
7455
|
+
onGetFieldChilds: c,
|
|
7456
|
+
onExport: d,
|
|
7457
7457
|
onGetPredefinedExports: m,
|
|
7458
7458
|
onSavePredefinedExport: y,
|
|
7459
7459
|
onRemovePredefinedExport: p
|
|
@@ -7569,10 +7569,10 @@ const {
|
|
|
7569
7569
|
selectedRegistersToExport: a,
|
|
7570
7570
|
totalRegisters: l,
|
|
7571
7571
|
domain: u,
|
|
7572
|
-
limit:
|
|
7572
|
+
limit: d,
|
|
7573
7573
|
visibleRegisters: f
|
|
7574
7574
|
} = e, {
|
|
7575
|
-
onExport:
|
|
7575
|
+
onExport: c,
|
|
7576
7576
|
onGetFieldChilds: m,
|
|
7577
7577
|
onGetFields: y,
|
|
7578
7578
|
onGetPredefinedExports: p,
|
|
@@ -7582,7 +7582,7 @@ const {
|
|
|
7582
7582
|
model: o,
|
|
7583
7583
|
context: s,
|
|
7584
7584
|
domain: u,
|
|
7585
|
-
limit:
|
|
7585
|
+
limit: d,
|
|
7586
7586
|
selectedRegistersToExport: a,
|
|
7587
7587
|
onClose: i,
|
|
7588
7588
|
locale: r
|
|
@@ -7590,7 +7590,7 @@ const {
|
|
|
7590
7590
|
return /* @__PURE__ */ n(Hi, {
|
|
7591
7591
|
visible: t,
|
|
7592
7592
|
locale: r,
|
|
7593
|
-
onSucceed:
|
|
7593
|
+
onSucceed: c,
|
|
7594
7594
|
onCancel: i,
|
|
7595
7595
|
selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
|
|
7596
7596
|
totalRegisters: l,
|
|
@@ -7624,7 +7624,7 @@ var Mo = { exports: {} };
|
|
|
7624
7624
|
})(ft, function() {
|
|
7625
7625
|
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 = {}, u = function(h) {
|
|
7626
7626
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
7627
|
-
},
|
|
7627
|
+
}, d = function(h) {
|
|
7628
7628
|
return function(g) {
|
|
7629
7629
|
this[h] = +g;
|
|
7630
7630
|
};
|
|
@@ -7635,7 +7635,7 @@ var Mo = { exports: {} };
|
|
|
7635
7635
|
var v = g.match(/([+-]|\d\d)/g), T = 60 * v[1] + (+v[2] || 0);
|
|
7636
7636
|
return T === 0 ? 0 : v[0] === "+" ? -T : T;
|
|
7637
7637
|
}(h);
|
|
7638
|
-
}],
|
|
7638
|
+
}], c = function(h) {
|
|
7639
7639
|
var g = l[h];
|
|
7640
7640
|
return g && (g.indexOf ? g : g.s.concat(g.f));
|
|
7641
7641
|
}, m = function(h, g) {
|
|
@@ -7659,26 +7659,26 @@ var Mo = { exports: {} };
|
|
|
7659
7659
|
this.milliseconds = 10 * +h;
|
|
7660
7660
|
}], SSS: [/\d{3}/, function(h) {
|
|
7661
7661
|
this.milliseconds = +h;
|
|
7662
|
-
}], s: [s,
|
|
7662
|
+
}], s: [s, d("seconds")], ss: [s, d("seconds")], m: [s, d("minutes")], mm: [s, d("minutes")], H: [s, d("hours")], h: [s, d("hours")], HH: [s, d("hours")], hh: [s, d("hours")], D: [s, d("day")], DD: [o, d("day")], Do: [a, function(h) {
|
|
7663
7663
|
var g = l.ordinal, v = h.match(/\d+/);
|
|
7664
7664
|
if (this.day = v[0], g)
|
|
7665
7665
|
for (var T = 1; T <= 31; T += 1)
|
|
7666
7666
|
g(T).replace(/\[|\]/g, "") === h && (this.day = T);
|
|
7667
|
-
}], M: [s,
|
|
7668
|
-
var g =
|
|
7667
|
+
}], M: [s, d("month")], MM: [o, d("month")], MMM: [a, function(h) {
|
|
7668
|
+
var g = c("months"), v = (c("monthsShort") || g.map(function(T) {
|
|
7669
7669
|
return T.slice(0, 3);
|
|
7670
7670
|
})).indexOf(h) + 1;
|
|
7671
7671
|
if (v < 1)
|
|
7672
7672
|
throw new Error();
|
|
7673
7673
|
this.month = v % 12 || v;
|
|
7674
7674
|
}], MMMM: [a, function(h) {
|
|
7675
|
-
var g =
|
|
7675
|
+
var g = c("months").indexOf(h) + 1;
|
|
7676
7676
|
if (g < 1)
|
|
7677
7677
|
throw new Error();
|
|
7678
7678
|
this.month = g % 12 || g;
|
|
7679
|
-
}], Y: [/[+-]?\d+/,
|
|
7679
|
+
}], Y: [/[+-]?\d+/, d("year")], YY: [o, function(h) {
|
|
7680
7680
|
this.year = u(h);
|
|
7681
|
-
}], YYYY: [/\d{4}/,
|
|
7681
|
+
}], YYYY: [/\d{4}/, d("year")], Z: f, ZZ: f };
|
|
7682
7682
|
function p(h) {
|
|
7683
7683
|
var g, v;
|
|
7684
7684
|
g = h, v = l && l.formats;
|
|
@@ -7786,14 +7786,14 @@ const sd = (e) => {
|
|
|
7786
7786
|
required: o,
|
|
7787
7787
|
selectionValues: s,
|
|
7788
7788
|
readOnly: a
|
|
7789
|
-
} = i, l = t == null ? void 0 : t.split(","), [u,
|
|
7789
|
+
} = i, l = t == null ? void 0 : t.split(","), [u, d] = O([]), [f, c] = O();
|
|
7790
7790
|
return pe(() => {
|
|
7791
7791
|
if (!t) {
|
|
7792
|
-
|
|
7792
|
+
c(void 0), d([]);
|
|
7793
7793
|
return;
|
|
7794
7794
|
}
|
|
7795
7795
|
const m = t && l && l[0], y = t && l && l[1] && parseInt(l[1]);
|
|
7796
|
-
|
|
7796
|
+
d([y, void 0]), c(m);
|
|
7797
7797
|
}, [t]), /* @__PURE__ */ P(xe, {
|
|
7798
7798
|
gutter: 8,
|
|
7799
7799
|
wrap: !1,
|
|
@@ -7807,9 +7807,9 @@ const sd = (e) => {
|
|
|
7807
7807
|
required: o
|
|
7808
7808
|
}),
|
|
7809
7809
|
onChange: (m) => {
|
|
7810
|
-
|
|
7810
|
+
c(m);
|
|
7811
7811
|
let y = u[0] || 0;
|
|
7812
|
-
m !== f && (
|
|
7812
|
+
m !== f && (d([]), y = 0);
|
|
7813
7813
|
const p = `${m},${y}`;
|
|
7814
7814
|
p !== t && (r == null || r(p));
|
|
7815
7815
|
},
|
|
@@ -7826,7 +7826,7 @@ const sd = (e) => {
|
|
|
7826
7826
|
}),
|
|
7827
7827
|
value: u,
|
|
7828
7828
|
onChange: (m) => {
|
|
7829
|
-
|
|
7829
|
+
d(m);
|
|
7830
7830
|
const y = `${f},${m[0] || 0}`;
|
|
7831
7831
|
y !== t && (r == null || r(y));
|
|
7832
7832
|
}
|
|
@@ -7861,16 +7861,16 @@ const sd = (e) => {
|
|
|
7861
7861
|
token: l
|
|
7862
7862
|
} = dd(), u = s && !o ? {
|
|
7863
7863
|
backgroundColor: l.colorPrimaryBg
|
|
7864
|
-
} : void 0,
|
|
7864
|
+
} : void 0, d = fe(null), {
|
|
7865
7865
|
setFieldValue: f,
|
|
7866
|
-
getFieldValue:
|
|
7866
|
+
getFieldValue: c
|
|
7867
7867
|
} = Y(Ne) || {}, {
|
|
7868
7868
|
t: m
|
|
7869
7869
|
} = Y(ve), y = r ? Sa(r) : "", p = (D) => {
|
|
7870
7870
|
i == null || i(D);
|
|
7871
7871
|
};
|
|
7872
7872
|
async function h() {
|
|
7873
|
-
const D = await Vt(r), b = `data:${D == null ? void 0 : D.mime};base64,${r}`, V = document.createElement("a"), _ =
|
|
7873
|
+
const D = await Vt(r), b = `data:${D == null ? void 0 : D.mime};base64,${r}`, V = document.createElement("a"), _ = c(a), E = c("name");
|
|
7874
7874
|
V.href = b, V.download = _ || E, V.click();
|
|
7875
7875
|
}
|
|
7876
7876
|
async function g() {
|
|
@@ -7894,7 +7894,7 @@ const sd = (e) => {
|
|
|
7894
7894
|
children: [/* @__PURE__ */ n("input", {
|
|
7895
7895
|
type: "file",
|
|
7896
7896
|
id: "file",
|
|
7897
|
-
ref:
|
|
7897
|
+
ref: d,
|
|
7898
7898
|
style: {
|
|
7899
7899
|
display: "none"
|
|
7900
7900
|
},
|
|
@@ -7911,7 +7911,7 @@ const sd = (e) => {
|
|
|
7911
7911
|
icon: /* @__PURE__ */ n(Nn, {}),
|
|
7912
7912
|
disabled: o,
|
|
7913
7913
|
onClick: () => {
|
|
7914
|
-
|
|
7914
|
+
d.current.click();
|
|
7915
7915
|
},
|
|
7916
7916
|
children: "Select"
|
|
7917
7917
|
}), /* @__PURE__ */ n(_e, {
|
|
@@ -7954,7 +7954,7 @@ function Zn(e) {
|
|
|
7954
7954
|
t: l,
|
|
7955
7955
|
lang: u
|
|
7956
7956
|
} = Y(ve);
|
|
7957
|
-
function
|
|
7957
|
+
function d() {
|
|
7958
7958
|
const m = r.map((y, p) => /* @__PURE__ */ n(Be.Item, {
|
|
7959
7959
|
children: /* @__PURE__ */ P(xe, {
|
|
7960
7960
|
wrap: !1,
|
|
@@ -7981,7 +7981,7 @@ function Zn(e) {
|
|
|
7981
7981
|
})
|
|
7982
7982
|
}, y.view_id || p));
|
|
7983
7983
|
return /* @__PURE__ */ n(Be, {
|
|
7984
|
-
onClick:
|
|
7984
|
+
onClick: c,
|
|
7985
7985
|
children: /* @__PURE__ */ n(Be.ItemGroup, {
|
|
7986
7986
|
title: l("viewAs"),
|
|
7987
7987
|
children: m
|
|
@@ -8000,7 +8000,7 @@ function Zn(e) {
|
|
|
8000
8000
|
}
|
|
8001
8001
|
m();
|
|
8002
8002
|
}
|
|
8003
|
-
function
|
|
8003
|
+
function c(m) {
|
|
8004
8004
|
f(() => {
|
|
8005
8005
|
const y = r.find((p) => p.view_id === parseInt(m.key));
|
|
8006
8006
|
i(y);
|
|
@@ -8019,13 +8019,13 @@ function Zn(e) {
|
|
|
8019
8019
|
borderBottomRightRadius: 0
|
|
8020
8020
|
},
|
|
8021
8021
|
onClick: () => {
|
|
8022
|
-
|
|
8022
|
+
c({
|
|
8023
8023
|
key: a == null ? void 0 : a.view_id
|
|
8024
8024
|
});
|
|
8025
8025
|
},
|
|
8026
8026
|
disabled: o || r.length === 1
|
|
8027
8027
|
}), /* @__PURE__ */ n(jt, {
|
|
8028
|
-
overlay:
|
|
8028
|
+
overlay: d(),
|
|
8029
8029
|
disabled: o || r.length === 1,
|
|
8030
8030
|
children: /* @__PURE__ */ n(_e, {
|
|
8031
8031
|
style: {
|
|
@@ -8053,19 +8053,19 @@ function Dt(e) {
|
|
|
8053
8053
|
disabled: a = !1
|
|
8054
8054
|
} = e;
|
|
8055
8055
|
function l() {
|
|
8056
|
-
const
|
|
8056
|
+
const d = i == null ? void 0 : i.map((f, c) => f.name === "divider" ? /* @__PURE__ */ n(Be.Divider, {}, "divider" + c) : /* @__PURE__ */ n(Be.Item, {
|
|
8057
8057
|
children: f.name
|
|
8058
8058
|
}, f.id));
|
|
8059
8059
|
return /* @__PURE__ */ n(Be, {
|
|
8060
8060
|
onClick: u,
|
|
8061
8061
|
children: /* @__PURE__ */ n(Be.ItemGroup, {
|
|
8062
8062
|
title: r,
|
|
8063
|
-
children:
|
|
8063
|
+
children: d
|
|
8064
8064
|
})
|
|
8065
8065
|
});
|
|
8066
8066
|
}
|
|
8067
|
-
function u(
|
|
8068
|
-
const f = i.find((
|
|
8067
|
+
function u(d) {
|
|
8068
|
+
const f = i.find((c) => isNaN(d.key) ? c.id === d.key : c.id === parseInt(d.key));
|
|
8069
8069
|
o(f);
|
|
8070
8070
|
}
|
|
8071
8071
|
return /* @__PURE__ */ n(jt, {
|
|
@@ -8215,8 +8215,8 @@ const pd = (e) => {
|
|
|
8215
8215
|
}), i.length > 0 && /* @__PURE__ */ P(re, {
|
|
8216
8216
|
children: [/* @__PURE__ */ n("li", {
|
|
8217
8217
|
className: "ant-dropdown-menu-item-divider"
|
|
8218
|
-
}), i.map((
|
|
8219
|
-
const f =
|
|
8218
|
+
}), i.map((d) => {
|
|
8219
|
+
const f = d.link ? qr : Pn;
|
|
8220
8220
|
return /* @__PURE__ */ P(xe, {
|
|
8221
8221
|
style: {
|
|
8222
8222
|
paddingTop: 4,
|
|
@@ -8226,20 +8226,20 @@ const pd = (e) => {
|
|
|
8226
8226
|
align: "middle",
|
|
8227
8227
|
children: [/* @__PURE__ */ n(ce, {
|
|
8228
8228
|
flex: "auto",
|
|
8229
|
-
children:
|
|
8229
|
+
children: d.name
|
|
8230
8230
|
}), /* @__PURE__ */ n(ce, {
|
|
8231
8231
|
flex: "25px",
|
|
8232
8232
|
style: {
|
|
8233
8233
|
textAlign: "center"
|
|
8234
8234
|
},
|
|
8235
|
-
children: (
|
|
8236
|
-
title:
|
|
8235
|
+
children: (d.datas_fname || d.link) && /* @__PURE__ */ n(mt, {
|
|
8236
|
+
title: d.link ? Oe("openAttachmentLink", r) : Oe("download", r),
|
|
8237
8237
|
children: /* @__PURE__ */ n(f, {
|
|
8238
8238
|
style: {
|
|
8239
8239
|
cursor: "pointer"
|
|
8240
8240
|
},
|
|
8241
8241
|
onClick: () => {
|
|
8242
|
-
t(!1), a(
|
|
8242
|
+
t(!1), a(d);
|
|
8243
8243
|
}
|
|
8244
8244
|
})
|
|
8245
8245
|
})
|
|
@@ -8255,12 +8255,12 @@ const pd = (e) => {
|
|
|
8255
8255
|
cursor: "pointer"
|
|
8256
8256
|
},
|
|
8257
8257
|
onClick: () => {
|
|
8258
|
-
t(!1), l(
|
|
8258
|
+
t(!1), l(d);
|
|
8259
8259
|
}
|
|
8260
8260
|
})
|
|
8261
8261
|
})
|
|
8262
8262
|
})]
|
|
8263
|
-
},
|
|
8263
|
+
}, d.id);
|
|
8264
8264
|
})]
|
|
8265
8265
|
})]
|
|
8266
8266
|
});
|
|
@@ -8274,7 +8274,7 @@ function yd(e) {
|
|
|
8274
8274
|
onViewAttachmentDetails: s
|
|
8275
8275
|
} = e, {
|
|
8276
8276
|
formRef: a
|
|
8277
|
-
} = Y(et), [l, u] = O(!1), [
|
|
8277
|
+
} = Y(et), [l, u] = O(!1), [d, f] = O([]), [c, m] = O(!1), {
|
|
8278
8278
|
t: y
|
|
8279
8279
|
} = Y(ve), p = Le(async () => {
|
|
8280
8280
|
u(!0);
|
|
@@ -8325,7 +8325,7 @@ function yd(e) {
|
|
|
8325
8325
|
}, [p]), /* @__PURE__ */ P(re, {
|
|
8326
8326
|
children: [/* @__PURE__ */ n(pd, {
|
|
8327
8327
|
numberOfAttachments: t.length,
|
|
8328
|
-
attachments:
|
|
8328
|
+
attachments: d,
|
|
8329
8329
|
disabled: r,
|
|
8330
8330
|
loading: l,
|
|
8331
8331
|
onAddNewAttachment: i,
|
|
@@ -8334,7 +8334,7 @@ function yd(e) {
|
|
|
8334
8334
|
onOpenAttachmentDetail: g
|
|
8335
8335
|
}), /* @__PURE__ */ n(qe, {
|
|
8336
8336
|
title: y("downloadingAttachment"),
|
|
8337
|
-
open:
|
|
8337
|
+
open: c,
|
|
8338
8338
|
footer: null,
|
|
8339
8339
|
closable: !1,
|
|
8340
8340
|
centered: !0,
|
|
@@ -8355,9 +8355,9 @@ function vd({
|
|
|
8355
8355
|
formIsSaving: a,
|
|
8356
8356
|
currentId: l,
|
|
8357
8357
|
results: u,
|
|
8358
|
-
setCurrentItemIndex:
|
|
8358
|
+
setCurrentItemIndex: d,
|
|
8359
8359
|
currentItemIndex: f,
|
|
8360
|
-
setCurrentId:
|
|
8360
|
+
setCurrentId: c,
|
|
8361
8361
|
currentModel: m,
|
|
8362
8362
|
setRemovingItem: y,
|
|
8363
8363
|
removingItem: p,
|
|
@@ -8405,10 +8405,10 @@ function vd({
|
|
|
8405
8405
|
$();
|
|
8406
8406
|
}
|
|
8407
8407
|
function N() {
|
|
8408
|
-
u && u.length > f + 1 ? (
|
|
8408
|
+
u && u.length > f + 1 ? (d == null || d(f + 1), c == null || c(u[f + 1].id)) : u && f + 1 === u.length && (d == null || d(0), c == null || c(u[0].id));
|
|
8409
8409
|
}
|
|
8410
8410
|
function A() {
|
|
8411
|
-
u && f > 0 ? (
|
|
8411
|
+
u && f > 0 ? (d == null || d(f - 1), c == null || c(u[f - 1].id)) : u && f === 0 && (d == null || d(u.length - 1), c == null || c(u[u.length - 1].id));
|
|
8412
8412
|
}
|
|
8413
8413
|
function j() {
|
|
8414
8414
|
Wt({
|
|
@@ -8428,7 +8428,7 @@ function vd({
|
|
|
8428
8428
|
const $ = u == null ? void 0 : u.filter((te) => te.id !== l);
|
|
8429
8429
|
v == null || v($);
|
|
8430
8430
|
let B = 0;
|
|
8431
|
-
f > 0 && f <= u.length - 1 && (B = f - 1), $ != null && $[B] ? (
|
|
8431
|
+
f > 0 && f <= u.length - 1 && (B = f - 1), $ != null && $[B] ? (c == null || c($ == null ? void 0 : $[B].id), d == null || d(B)) : (c == null || c(void 0), d == null || d(void 0));
|
|
8432
8432
|
} catch ($) {
|
|
8433
8433
|
nn(JSON.stringify($));
|
|
8434
8434
|
} finally {
|
|
@@ -8654,12 +8654,12 @@ const {
|
|
|
8654
8654
|
readOnly: l,
|
|
8655
8655
|
required: u
|
|
8656
8656
|
} = t, {
|
|
8657
|
-
token:
|
|
8657
|
+
token: d
|
|
8658
8658
|
} = wd(), f = u && !l ? {
|
|
8659
|
-
backgroundColor:
|
|
8660
|
-
} : void 0,
|
|
8659
|
+
backgroundColor: d.colorPrimaryBg
|
|
8660
|
+
} : void 0, c = Y(Ne), {
|
|
8661
8661
|
elementHasLostFocus: m
|
|
8662
|
-
} =
|
|
8662
|
+
} = c || {}, [y, p] = O(!1), [h, g] = O(!1);
|
|
8663
8663
|
pe(() => {
|
|
8664
8664
|
l && !y && g(!1), !r && !l && (p(!0), g(!0));
|
|
8665
8665
|
}, [y, l]);
|
|
@@ -8710,7 +8710,7 @@ const {
|
|
|
8710
8710
|
}) : /* @__PURE__ */ n("a", {
|
|
8711
8711
|
href: `${s}${r}`,
|
|
8712
8712
|
style: {
|
|
8713
|
-
color:
|
|
8713
|
+
color: d.colorPrimary,
|
|
8714
8714
|
paddingRight: 15
|
|
8715
8715
|
},
|
|
8716
8716
|
target: "_blank",
|
|
@@ -8768,8 +8768,8 @@ const {
|
|
|
8768
8768
|
onCancel: i,
|
|
8769
8769
|
maskClosable: !1,
|
|
8770
8770
|
afterOpenChange: (u) => {
|
|
8771
|
-
var
|
|
8772
|
-
return u && ((
|
|
8771
|
+
var d;
|
|
8772
|
+
return u && ((d = a.current) == null ? void 0 : d.focus());
|
|
8773
8773
|
},
|
|
8774
8774
|
children: /* @__PURE__ */ P(it, {
|
|
8775
8775
|
layout: "vertical",
|
|
@@ -8872,7 +8872,7 @@ function Td({
|
|
|
8872
8872
|
searchVisible: a,
|
|
8873
8873
|
setSearchVisible: l,
|
|
8874
8874
|
graphIsLoading: u,
|
|
8875
|
-
previousView:
|
|
8875
|
+
previousView: d,
|
|
8876
8876
|
setPreviousView: f
|
|
8877
8877
|
} = Y(et);
|
|
8878
8878
|
return /* @__PURE__ */ P(Ye, {
|
|
@@ -8901,11 +8901,11 @@ function Td({
|
|
|
8901
8901
|
}), /* @__PURE__ */ n(Zn, {
|
|
8902
8902
|
currentView: i,
|
|
8903
8903
|
availableViews: r,
|
|
8904
|
-
onChangeView: (
|
|
8905
|
-
f == null || f(i), o == null || o(
|
|
8904
|
+
onChangeView: (c) => {
|
|
8905
|
+
f == null || f(i), o == null || o(c);
|
|
8906
8906
|
},
|
|
8907
8907
|
disabled: !1,
|
|
8908
|
-
previousView:
|
|
8908
|
+
previousView: d
|
|
8909
8909
|
})]
|
|
8910
8910
|
});
|
|
8911
8911
|
}
|
|
@@ -8926,11 +8926,11 @@ function yn(e) {
|
|
|
8926
8926
|
currentItemIndex: a,
|
|
8927
8927
|
results: l,
|
|
8928
8928
|
totalItems: u,
|
|
8929
|
-
selectedRowItems:
|
|
8929
|
+
selectedRowItems: d
|
|
8930
8930
|
} = Y(et), {
|
|
8931
8931
|
t: f
|
|
8932
8932
|
} = Y(ve), {
|
|
8933
|
-
token:
|
|
8933
|
+
token: c
|
|
8934
8934
|
} = Fd();
|
|
8935
8935
|
function m() {
|
|
8936
8936
|
if ((o == null ? void 0 : o.type) === "form")
|
|
@@ -8951,19 +8951,19 @@ function yn(e) {
|
|
|
8951
8951
|
children: s
|
|
8952
8952
|
}), ")"]
|
|
8953
8953
|
}) : "";
|
|
8954
|
-
if ((o == null ? void 0 : o.type) === "tree" &&
|
|
8955
|
-
if (
|
|
8954
|
+
if ((o == null ? void 0 : o.type) === "tree" && d) {
|
|
8955
|
+
if (d.length === 1)
|
|
8956
8956
|
return /* @__PURE__ */ P(re, {
|
|
8957
8957
|
children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8958
8958
|
copyable: !0,
|
|
8959
|
-
children:
|
|
8959
|
+
children: d[0].id
|
|
8960
8960
|
}), ")"]
|
|
8961
8961
|
});
|
|
8962
|
-
if (
|
|
8962
|
+
if (d.length > 1)
|
|
8963
8963
|
return /* @__PURE__ */ P(re, {
|
|
8964
|
-
children: [
|
|
8964
|
+
children: [d.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Xt, {
|
|
8965
8965
|
copyable: {
|
|
8966
|
-
text:
|
|
8966
|
+
text: d.map((y) => y.id).join(", ")
|
|
8967
8967
|
}
|
|
8968
8968
|
})]
|
|
8969
8969
|
});
|
|
@@ -8980,8 +8980,8 @@ function yn(e) {
|
|
|
8980
8980
|
className: "shadow-md",
|
|
8981
8981
|
style: {
|
|
8982
8982
|
padding: "1em",
|
|
8983
|
-
borderRadius:
|
|
8984
|
-
backgroundColor:
|
|
8983
|
+
borderRadius: c.borderRadius,
|
|
8984
|
+
backgroundColor: c.colorPrimaryBg
|
|
8985
8985
|
},
|
|
8986
8986
|
align: "middle",
|
|
8987
8987
|
children: [/* @__PURE__ */ P(ce, {
|
|
@@ -9014,9 +9014,9 @@ const _d = (e) => {
|
|
|
9014
9014
|
domain: s,
|
|
9015
9015
|
formView: a,
|
|
9016
9016
|
treeView: l
|
|
9017
|
-
} = e, u = fe(),
|
|
9017
|
+
} = e, u = fe(), d = Y(et), {
|
|
9018
9018
|
setResults: f = void 0,
|
|
9019
|
-
setCurrentItemIndex:
|
|
9019
|
+
setCurrentItemIndex: c = void 0,
|
|
9020
9020
|
currentId: m = void 0,
|
|
9021
9021
|
results: y = void 0,
|
|
9022
9022
|
setSelectedRowItems: p = void 0,
|
|
@@ -9034,7 +9034,7 @@ const _d = (e) => {
|
|
|
9034
9034
|
searchValues: w,
|
|
9035
9035
|
setSearchValues: S,
|
|
9036
9036
|
currentView: L
|
|
9037
|
-
} =
|
|
9037
|
+
} = d || {}, [R, F] = O(!0);
|
|
9038
9038
|
pe(() => {
|
|
9039
9039
|
var j;
|
|
9040
9040
|
(j = u.current) == null || j.refresh();
|
|
@@ -9061,7 +9061,7 @@ const _d = (e) => {
|
|
|
9061
9061
|
treeView: l,
|
|
9062
9062
|
sorter: T,
|
|
9063
9063
|
setSorter: D,
|
|
9064
|
-
setCurrentItemIndex:
|
|
9064
|
+
setCurrentItemIndex: c,
|
|
9065
9065
|
setResultsActionView: f,
|
|
9066
9066
|
resultsActionView: y,
|
|
9067
9067
|
domain: s,
|
|
@@ -9115,9 +9115,9 @@ const _d = (e) => {
|
|
|
9115
9115
|
formView: a,
|
|
9116
9116
|
context: l,
|
|
9117
9117
|
defaultValues: u,
|
|
9118
|
-
forcedValues:
|
|
9118
|
+
forcedValues: d,
|
|
9119
9119
|
results: f,
|
|
9120
|
-
setResults:
|
|
9120
|
+
setResults: c,
|
|
9121
9121
|
setCurrentItemIndex: m
|
|
9122
9122
|
} = e;
|
|
9123
9123
|
return t ? /* @__PURE__ */ P(re, {
|
|
@@ -9130,13 +9130,13 @@ const _d = (e) => {
|
|
|
9130
9130
|
ref: r,
|
|
9131
9131
|
model: i,
|
|
9132
9132
|
defaultValues: u,
|
|
9133
|
-
forcedValues:
|
|
9133
|
+
forcedValues: d,
|
|
9134
9134
|
formView: a,
|
|
9135
9135
|
actionDomain: s,
|
|
9136
9136
|
id: o,
|
|
9137
9137
|
parentContext: l,
|
|
9138
9138
|
onSubmitSucceed: (y, p) => {
|
|
9139
|
-
f.findIndex((g) => g.id === y) === -1 && (f.push(p),
|
|
9139
|
+
f.findIndex((g) => g.id === y) === -1 && (f.push(p), c(f), m(f.length - 1));
|
|
9140
9140
|
}
|
|
9141
9141
|
})]
|
|
9142
9142
|
}) : null;
|
|
@@ -9157,7 +9157,7 @@ function Dd(e) {
|
|
|
9157
9157
|
search: i
|
|
9158
9158
|
});
|
|
9159
9159
|
}, [i]);
|
|
9160
|
-
function
|
|
9160
|
+
function d() {
|
|
9161
9161
|
l(!1), s.setFieldsValue({
|
|
9162
9162
|
search: void 0
|
|
9163
9163
|
}), t(void 0);
|
|
@@ -9189,7 +9189,7 @@ function Dd(e) {
|
|
|
9189
9189
|
style: {
|
|
9190
9190
|
color: "rgba(0,0,0,.45)"
|
|
9191
9191
|
},
|
|
9192
|
-
onClick:
|
|
9192
|
+
onClick: d
|
|
9193
9193
|
})
|
|
9194
9194
|
})
|
|
9195
9195
|
})
|
|
@@ -9222,9 +9222,9 @@ function Ad(e) {
|
|
|
9222
9222
|
removingItem: a,
|
|
9223
9223
|
duplicatingItem: l,
|
|
9224
9224
|
setDuplicatingItem: u,
|
|
9225
|
-
currentModel:
|
|
9225
|
+
currentModel: d,
|
|
9226
9226
|
searchTreeRef: f,
|
|
9227
|
-
setCurrentId:
|
|
9227
|
+
setCurrentId: c,
|
|
9228
9228
|
setCurrentItemIndex: m,
|
|
9229
9229
|
searchParams: y,
|
|
9230
9230
|
searchVisible: p,
|
|
@@ -9262,9 +9262,9 @@ function Ad(e) {
|
|
|
9262
9262
|
var U;
|
|
9263
9263
|
try {
|
|
9264
9264
|
s == null || s(!0), await H.getHandler().delete({
|
|
9265
|
-
model:
|
|
9265
|
+
model: d,
|
|
9266
9266
|
ids: o.map(($) => $.id)
|
|
9267
|
-
}),
|
|
9267
|
+
}), c == null || c(void 0), m == null || m(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9268
9268
|
} catch ($) {
|
|
9269
9269
|
Ge($);
|
|
9270
9270
|
} finally {
|
|
@@ -9278,7 +9278,7 @@ function Ad(e) {
|
|
|
9278
9278
|
const $ = o[0].id;
|
|
9279
9279
|
await H.getHandler().duplicate({
|
|
9280
9280
|
id: $,
|
|
9281
|
-
model:
|
|
9281
|
+
model: d,
|
|
9282
9282
|
context: {
|
|
9283
9283
|
...x
|
|
9284
9284
|
}
|
|
@@ -9353,7 +9353,7 @@ function Ad(e) {
|
|
|
9353
9353
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
9354
9354
|
loading: !1,
|
|
9355
9355
|
onClick: () => {
|
|
9356
|
-
$o(
|
|
9356
|
+
$o(d, o[0].id, L);
|
|
9357
9357
|
}
|
|
9358
9358
|
}), /* @__PURE__ */ n(ze, {
|
|
9359
9359
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
@@ -9439,11 +9439,11 @@ function Ad(e) {
|
|
|
9439
9439
|
let $ = (o == null ? void 0 : o.map((B) => B.id)) || [];
|
|
9440
9440
|
$.length === 0 && ($ = (V == null ? void 0 : V.map((B) => B.id)) || []), W({
|
|
9441
9441
|
id: -1,
|
|
9442
|
-
model:
|
|
9442
|
+
model: d,
|
|
9443
9443
|
report_name: "printscreen.list",
|
|
9444
9444
|
type: "ir.actions.report.xml",
|
|
9445
9445
|
datas: {
|
|
9446
|
-
model:
|
|
9446
|
+
model: d,
|
|
9447
9447
|
ids: $
|
|
9448
9448
|
}
|
|
9449
9449
|
});
|
|
@@ -9456,7 +9456,7 @@ function Ad(e) {
|
|
|
9456
9456
|
visible: M,
|
|
9457
9457
|
locale: R,
|
|
9458
9458
|
onClose: () => I(!1),
|
|
9459
|
-
model:
|
|
9459
|
+
model: d,
|
|
9460
9460
|
domain: hn(((J = f == null ? void 0 : f.current) == null ? void 0 : J.getDomain()) || [], y || []),
|
|
9461
9461
|
limit: _,
|
|
9462
9462
|
totalRegisters: E || 0,
|
|
@@ -9482,9 +9482,9 @@ const Rd = (e) => {
|
|
|
9482
9482
|
treeView: a,
|
|
9483
9483
|
domain: l,
|
|
9484
9484
|
setCurrentItemIndex: u,
|
|
9485
|
-
results:
|
|
9485
|
+
results: d,
|
|
9486
9486
|
setCurrentId: f,
|
|
9487
|
-
setCurrentView:
|
|
9487
|
+
setCurrentView: c,
|
|
9488
9488
|
availableViews: m,
|
|
9489
9489
|
searchTreeNameSearch: y
|
|
9490
9490
|
} = e, {
|
|
@@ -9512,10 +9512,10 @@ const Rd = (e) => {
|
|
|
9512
9512
|
id: v
|
|
9513
9513
|
} = g;
|
|
9514
9514
|
f(v);
|
|
9515
|
-
const T =
|
|
9515
|
+
const T = d.findIndex((b) => b.id === v);
|
|
9516
9516
|
h == null || h(p), u(T);
|
|
9517
9517
|
const D = m.find((b) => b.type === "form");
|
|
9518
|
-
|
|
9518
|
+
c(D);
|
|
9519
9519
|
}
|
|
9520
9520
|
})]
|
|
9521
9521
|
}) : null;
|
|
@@ -9631,9 +9631,9 @@ function Nd(e, t) {
|
|
|
9631
9631
|
title: a,
|
|
9632
9632
|
setCanWeClose: l,
|
|
9633
9633
|
tabKey: u,
|
|
9634
|
-
initialView:
|
|
9634
|
+
initialView: d,
|
|
9635
9635
|
formDefaultValues: f,
|
|
9636
|
-
formForcedValues:
|
|
9636
|
+
formForcedValues: c = {},
|
|
9637
9637
|
res_id: m = !1,
|
|
9638
9638
|
action_id: y,
|
|
9639
9639
|
action_type: p,
|
|
@@ -9733,14 +9733,14 @@ function Nd(e, t) {
|
|
|
9733
9733
|
}
|
|
9734
9734
|
}
|
|
9735
9735
|
let ke;
|
|
9736
|
-
!
|
|
9736
|
+
!d && ee.find((le) => le.type === "tree") ? ke = ee.find((me) => me.type === "tree") : d ? ke = ee.find((me) => d.id ? me.type === d.type && me.view_id === d.id : me.type === d.type) : ke = ee.find((me) => me.type === "form"), ke || (Ge(`Error determining the first view to show for model ${i}.
|
|
9737
9737
|
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Ve == null || Ve(u)), We(ke), b(ee), _(!1);
|
|
9738
9738
|
};
|
|
9739
9739
|
l({
|
|
9740
9740
|
tabKey: u,
|
|
9741
9741
|
canWeClose: de
|
|
9742
9742
|
}), pe(() => {
|
|
9743
|
-
const ee = D.find((Ae) => Ae.type === "tree"), Ie = D.find((Ae) =>
|
|
9743
|
+
const ee = D.find((Ae) => Ae.type === "tree"), Ie = D.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type);
|
|
9744
9744
|
We(Ie || ee), m ? z == null || z(E) : (Pe(void 0), R(void 0)), ie();
|
|
9745
9745
|
}, [i, s, m]), pe(() => {
|
|
9746
9746
|
be === u && (z == null || z(x), X == null || X(v));
|
|
@@ -9802,7 +9802,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9802
9802
|
context: o,
|
|
9803
9803
|
domain: r,
|
|
9804
9804
|
defaultValues: f,
|
|
9805
|
-
forcedValues:
|
|
9805
|
+
forcedValues: c,
|
|
9806
9806
|
results: F,
|
|
9807
9807
|
setResults: k,
|
|
9808
9808
|
setCurrentItemIndex: R
|
|
@@ -9904,12 +9904,12 @@ async function Pd({
|
|
|
9904
9904
|
context: { ...t, ...a }
|
|
9905
9905
|
}) : [], {
|
|
9906
9906
|
res_model: u,
|
|
9907
|
-
views:
|
|
9907
|
+
views: d,
|
|
9908
9908
|
name: f,
|
|
9909
|
-
limit:
|
|
9909
|
+
limit: c,
|
|
9910
9910
|
view_type: m
|
|
9911
9911
|
} = s, y = m === "tree", p = [];
|
|
9912
|
-
for (const T of
|
|
9912
|
+
for (const T of d) {
|
|
9913
9913
|
const [D, b] = T;
|
|
9914
9914
|
if (D)
|
|
9915
9915
|
p.push(T);
|
|
@@ -9929,12 +9929,12 @@ async function Pd({
|
|
|
9929
9929
|
actionId: e,
|
|
9930
9930
|
actionType: i,
|
|
9931
9931
|
key: Xr(),
|
|
9932
|
-
views:
|
|
9932
|
+
views: d,
|
|
9933
9933
|
model: u,
|
|
9934
9934
|
context: { ...t, ...a },
|
|
9935
9935
|
domain: l,
|
|
9936
9936
|
initialView: v,
|
|
9937
|
-
limit:
|
|
9937
|
+
limit: c,
|
|
9938
9938
|
treeExpandable: y
|
|
9939
9939
|
};
|
|
9940
9940
|
}
|
|
@@ -10048,7 +10048,7 @@ function Ud(e) {
|
|
|
10048
10048
|
domain: s = [],
|
|
10049
10049
|
visible: a = !0,
|
|
10050
10050
|
parentContext: l = {}
|
|
10051
|
-
} = e, [u,
|
|
10051
|
+
} = e, [u, d] = O(!1), [f, c] = O(!1), [m, y] = O(), [p, h] = O(), [g, v] = O(), [T, D] = O(1), [b, V] = O(0), _ = fe(Wd), E = fe([]), [x, C] = O(0), [w, S] = O([]), [L, R] = O(void 0), [F, k] = O(), [M, I] = O(), [N, A] = O(), [j, q] = O(!1), W = fe([]), J = (z) => {
|
|
10052
10052
|
q(!0), D(z), V((z - 1) * _.current);
|
|
10053
10053
|
}, U = async () => {
|
|
10054
10054
|
const z = W.current.length > 0 ? W.current : s, he = hn(E.current, z), {
|
|
@@ -10091,13 +10091,13 @@ function Ud(e) {
|
|
|
10091
10091
|
!f || a && $();
|
|
10092
10092
|
}, [T, b, f, a]);
|
|
10093
10093
|
const B = async (z) => {
|
|
10094
|
-
|
|
10094
|
+
c(!1), d(!0), A(void 0);
|
|
10095
10095
|
try {
|
|
10096
|
-
z === "action" ? await te() : await Z(),
|
|
10096
|
+
z === "action" ? await te() : await Z(), c(!0);
|
|
10097
10097
|
} catch (he) {
|
|
10098
10098
|
A(he);
|
|
10099
10099
|
} finally {
|
|
10100
|
-
|
|
10100
|
+
d(!1);
|
|
10101
10101
|
}
|
|
10102
10102
|
}, te = async () => {
|
|
10103
10103
|
const z = await H.getHandler().getViewsForAction({
|
|
@@ -10214,7 +10214,7 @@ function qd(e, t) {
|
|
|
10214
10214
|
context: i = {},
|
|
10215
10215
|
id: o,
|
|
10216
10216
|
configAction: s
|
|
10217
|
-
} = e, [a, l] = O([]), [u,
|
|
10217
|
+
} = e, [a, l] = O([]), [u, d] = O(!1), [f, c] = O(), {
|
|
10218
10218
|
setIsLoading: m,
|
|
10219
10219
|
openAction: y,
|
|
10220
10220
|
moveItemsEnabled: p
|
|
@@ -10228,7 +10228,7 @@ function qd(e, t) {
|
|
|
10228
10228
|
configDashboard: E
|
|
10229
10229
|
}));
|
|
10230
10230
|
async function v() {
|
|
10231
|
-
|
|
10231
|
+
d(!0), m(!0), c(void 0);
|
|
10232
10232
|
try {
|
|
10233
10233
|
const x = await T(), C = await b(x), w = x.fields[On].relation, S = C[On].items;
|
|
10234
10234
|
g.current = x.fields;
|
|
@@ -10237,9 +10237,9 @@ function qd(e, t) {
|
|
|
10237
10237
|
model: w,
|
|
10238
10238
|
context: i
|
|
10239
10239
|
}), R = await V(L);
|
|
10240
|
-
l(R),
|
|
10240
|
+
l(R), d(!1), m(!1);
|
|
10241
10241
|
} catch (x) {
|
|
10242
|
-
|
|
10242
|
+
c(JSON.stringify(x));
|
|
10243
10243
|
}
|
|
10244
10244
|
}
|
|
10245
10245
|
async function T() {
|
|
@@ -10499,7 +10499,7 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10499
10499
|
onChange: i
|
|
10500
10500
|
} = e, {
|
|
10501
10501
|
items: o = []
|
|
10502
|
-
} = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = O([]), [u,
|
|
10502
|
+
} = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = O([]), [u, d] = O(), [f, c] = O(!1), {
|
|
10503
10503
|
relation: m,
|
|
10504
10504
|
context: y,
|
|
10505
10505
|
readOnly: p,
|
|
@@ -10517,7 +10517,7 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10517
10517
|
});
|
|
10518
10518
|
};
|
|
10519
10519
|
async function b() {
|
|
10520
|
-
|
|
10520
|
+
c(!0);
|
|
10521
10521
|
let x = [];
|
|
10522
10522
|
if (r.domain) {
|
|
10523
10523
|
const C = await H.getHandler().evalDomain({
|
|
@@ -10550,9 +10550,9 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10550
10550
|
});
|
|
10551
10551
|
l(w);
|
|
10552
10552
|
} catch (C) {
|
|
10553
|
-
|
|
10553
|
+
d(C);
|
|
10554
10554
|
} finally {
|
|
10555
|
-
|
|
10555
|
+
c(!1);
|
|
10556
10556
|
}
|
|
10557
10557
|
if (u)
|
|
10558
10558
|
return /* @__PURE__ */ n(Qe, {
|
|
@@ -10656,11 +10656,11 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10656
10656
|
selectionValues: o,
|
|
10657
10657
|
readOnly: s,
|
|
10658
10658
|
direction: a
|
|
10659
|
-
} = t, l = Array.from(o.entries()), u = l && l.length && l.map((
|
|
10660
|
-
const [f,
|
|
10659
|
+
} = t, l = Array.from(o.entries()), u = l && l.length && l.map((d) => {
|
|
10660
|
+
const [f, c] = d;
|
|
10661
10661
|
return /* @__PURE__ */ n(ir, {
|
|
10662
10662
|
value: f,
|
|
10663
|
-
children:
|
|
10663
|
+
children: c
|
|
10664
10664
|
}, f);
|
|
10665
10665
|
});
|
|
10666
10666
|
return /* @__PURE__ */ n(ir.Group, {
|
|
@@ -10724,13 +10724,13 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10724
10724
|
selectionValues: i,
|
|
10725
10725
|
errorField: o
|
|
10726
10726
|
} = t, s = Y(Ne), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(r);
|
|
10727
|
-
let u = "process",
|
|
10728
|
-
return o && (
|
|
10727
|
+
let u = "process", d = "";
|
|
10728
|
+
return o && (d = s.getFieldValue(o), d && (u = "error")), /* @__PURE__ */ n(sr, {
|
|
10729
10729
|
current: l,
|
|
10730
10730
|
status: u,
|
|
10731
|
-
children: a.map((f,
|
|
10731
|
+
children: a.map((f, c) => /* @__PURE__ */ n(sr.Step, {
|
|
10732
10732
|
title: f[1],
|
|
10733
|
-
description:
|
|
10733
|
+
description: c === l && u === "error" ? d : null
|
|
10734
10734
|
}))
|
|
10735
10735
|
});
|
|
10736
10736
|
}, su = (e) => {
|
|
@@ -10775,12 +10775,12 @@ function du(e, t) {
|
|
|
10775
10775
|
globalValues: i = {},
|
|
10776
10776
|
rootContext: o = {},
|
|
10777
10777
|
lang: s
|
|
10778
|
-
} = e, [a, l] = O("welcome"), [u,
|
|
10778
|
+
} = e, [a, l] = O("welcome"), [u, d] = O([{
|
|
10779
10779
|
title: Oe("welcome", s),
|
|
10780
10780
|
key: "welcome",
|
|
10781
10781
|
closable: !0,
|
|
10782
10782
|
content: /* @__PURE__ */ n(cu, {})
|
|
10783
|
-
}]), f = fe(/* @__PURE__ */ new Map()),
|
|
10783
|
+
}]), f = fe(/* @__PURE__ */ new Map()), c = fe();
|
|
10784
10784
|
xt(t, () => ({
|
|
10785
10785
|
retrieveAndOpenAction: p,
|
|
10786
10786
|
openShortcut: v
|
|
@@ -10790,7 +10790,7 @@ function du(e, t) {
|
|
|
10790
10790
|
const V = u.findIndex((_) => _.key === b);
|
|
10791
10791
|
u[V - 1] && l(u[V - 1].key), u[V + 1] && l(u[V + 1].key);
|
|
10792
10792
|
}
|
|
10793
|
-
|
|
10793
|
+
d(u.filter((V) => V.key !== b)), f.current.delete(b);
|
|
10794
10794
|
}
|
|
10795
10795
|
function y({
|
|
10796
10796
|
tabKey: b,
|
|
@@ -10895,7 +10895,7 @@ function du(e, t) {
|
|
|
10895
10895
|
action: E
|
|
10896
10896
|
}) {
|
|
10897
10897
|
let x = [...u];
|
|
10898
|
-
u.length === 1 && u[0].key === "welcome" && (x = [...u.filter((C) => C.key !== "welcome")]),
|
|
10898
|
+
u.length === 1 && u[0].key === "welcome" && (x = [...u.filter((C) => C.key !== "welcome")]), d([...x, {
|
|
10899
10899
|
title: b,
|
|
10900
10900
|
key: _,
|
|
10901
10901
|
closable: !0,
|
|
@@ -11081,7 +11081,7 @@ function du(e, t) {
|
|
|
11081
11081
|
...V
|
|
11082
11082
|
}
|
|
11083
11083
|
});
|
|
11084
|
-
|
|
11084
|
+
c.current.openActionModal({
|
|
11085
11085
|
domain: b,
|
|
11086
11086
|
model: _,
|
|
11087
11087
|
formView: A,
|
|
@@ -11148,7 +11148,7 @@ function du(e, t) {
|
|
|
11148
11148
|
l(b);
|
|
11149
11149
|
},
|
|
11150
11150
|
children: /* @__PURE__ */ n(yl, {
|
|
11151
|
-
ref:
|
|
11151
|
+
ref: c,
|
|
11152
11152
|
globalValues: i,
|
|
11153
11153
|
children: r
|
|
11154
11154
|
})
|
|
@@ -11271,7 +11271,7 @@ const {
|
|
|
11271
11271
|
onCheckIsFavourite: r,
|
|
11272
11272
|
onAddFavourite: i,
|
|
11273
11273
|
onRemoveFavourite: o
|
|
11274
|
-
} = e, [s, a] = O(!1), [l, u] = O(!1), [
|
|
11274
|
+
} = e, [s, a] = O(!1), [l, u] = O(!1), [d, f] = O([]), [c, m] = O(!0), [y, p] = O(), {
|
|
11275
11275
|
t: h
|
|
11276
11276
|
} = Y(ve) || {}, {
|
|
11277
11277
|
token: g
|
|
@@ -11302,7 +11302,7 @@ const {
|
|
|
11302
11302
|
function C(M) {
|
|
11303
11303
|
const {
|
|
11304
11304
|
key: I
|
|
11305
|
-
} = M, N =
|
|
11305
|
+
} = M, N = d.find((A) => A.id === Number(I));
|
|
11306
11306
|
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && T(N), u(!1));
|
|
11307
11307
|
}
|
|
11308
11308
|
function w(M) {
|
|
@@ -11365,12 +11365,12 @@ const {
|
|
|
11365
11365
|
})
|
|
11366
11366
|
})
|
|
11367
11367
|
})]
|
|
11368
|
-
}), /* @__PURE__ */ n(Be.Divider, {}),
|
|
11368
|
+
}), /* @__PURE__ */ n(Be.Divider, {}), c ? /* @__PURE__ */ n(Me, {
|
|
11369
11369
|
style: {
|
|
11370
11370
|
padding: "1rem"
|
|
11371
11371
|
}
|
|
11372
|
-
}) :
|
|
11373
|
-
children:
|
|
11372
|
+
}) : d.length > 0 ? /* @__PURE__ */ n(re, {
|
|
11373
|
+
children: d.map((M) => /* @__PURE__ */ n(Be.Item, {
|
|
11374
11374
|
children: /* @__PURE__ */ n(F, {
|
|
11375
11375
|
title: M.name,
|
|
11376
11376
|
type: M.view_type
|