@gisce/react-ooui 2.0.0-rc.12 → 2.0.0-rc.13
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 +322 -322
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +10 -10
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/views/SearchTree.tsx +2 -2
package/dist/react-ooui.es.js
CHANGED
|
@@ -690,7 +690,7 @@ const io = (e) => {
|
|
|
690
690
|
return S && /* @__PURE__ */ n(S, {});
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
async function
|
|
693
|
+
async function w() {
|
|
694
694
|
l && o && (v(!0), await h({
|
|
695
695
|
type: l,
|
|
696
696
|
action: o,
|
|
@@ -703,12 +703,12 @@ const io = (e) => {
|
|
|
703
703
|
confirmMessage: f,
|
|
704
704
|
lang: C,
|
|
705
705
|
onOk: () => {
|
|
706
|
-
|
|
706
|
+
w();
|
|
707
707
|
}
|
|
708
708
|
});
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
w();
|
|
712
712
|
}
|
|
713
713
|
if (t.buttons.length === 0)
|
|
714
714
|
return null;
|
|
@@ -778,8 +778,8 @@ const io = (e) => {
|
|
|
778
778
|
if (h)
|
|
779
779
|
return /* @__PURE__ */ n(st, {});
|
|
780
780
|
if (u) {
|
|
781
|
-
const
|
|
782
|
-
return
|
|
781
|
+
const w = ct(u);
|
|
782
|
+
return w && /* @__PURE__ */ n(w, {});
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
return /* @__PURE__ */ n(Be.Item, {
|
|
@@ -880,7 +880,7 @@ const so = (e) => {
|
|
|
880
880
|
m(!0);
|
|
881
881
|
try {
|
|
882
882
|
const x = await R();
|
|
883
|
-
await
|
|
883
|
+
await w(x);
|
|
884
884
|
} catch (x) {
|
|
885
885
|
ze(x);
|
|
886
886
|
}
|
|
@@ -897,10 +897,10 @@ const so = (e) => {
|
|
|
897
897
|
}));
|
|
898
898
|
return d == null || d(T), T;
|
|
899
899
|
}
|
|
900
|
-
async function
|
|
900
|
+
async function w(x) {
|
|
901
901
|
const T = {};
|
|
902
902
|
for (const F of x) {
|
|
903
|
-
const
|
|
903
|
+
const b = (await H.getHandler().readObjects({
|
|
904
904
|
model: i,
|
|
905
905
|
ids: [o],
|
|
906
906
|
fieldsToRetrieve: [s],
|
|
@@ -908,7 +908,7 @@ const so = (e) => {
|
|
|
908
908
|
lang: F.code
|
|
909
909
|
}
|
|
910
910
|
}))[0];
|
|
911
|
-
T[F.code] =
|
|
911
|
+
T[F.code] = b[s] || "";
|
|
912
912
|
}
|
|
913
913
|
v.current = T, g(T);
|
|
914
914
|
}
|
|
@@ -1315,7 +1315,7 @@ function Ia(e, t, r) {
|
|
|
1315
1315
|
function R() {
|
|
1316
1316
|
l !== void 0 && clearTimeout(l), c = 0, i = f = o = l = void 0;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function w() {
|
|
1319
1319
|
return l === void 0 ? a : C(Fn());
|
|
1320
1320
|
}
|
|
1321
1321
|
function A() {
|
|
@@ -1328,7 +1328,7 @@ function Ia(e, t, r) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return l === void 0 && (l = setTimeout(v, t)), a;
|
|
1330
1330
|
}
|
|
1331
|
-
return A.cancel = R, A.flush =
|
|
1331
|
+
return A.cancel = R, A.flush = w, A;
|
|
1332
1332
|
}
|
|
1333
1333
|
var _a = Ia;
|
|
1334
1334
|
function Da(e) {
|
|
@@ -1655,9 +1655,9 @@ const er = async (e) => {
|
|
|
1655
1655
|
readOnly: g,
|
|
1656
1656
|
summaryField: v,
|
|
1657
1657
|
titleField: C
|
|
1658
|
-
} = i, R = s.filter((x) => x.values),
|
|
1658
|
+
} = i, R = s.filter((x) => x.values), w = W(Le), {
|
|
1659
1659
|
getContext: A
|
|
1660
|
-
} =
|
|
1660
|
+
} = w || {};
|
|
1661
1661
|
St(() => {
|
|
1662
1662
|
E();
|
|
1663
1663
|
}, [s]);
|
|
@@ -1703,7 +1703,7 @@ const er = async (e) => {
|
|
|
1703
1703
|
padding: "1rem"
|
|
1704
1704
|
},
|
|
1705
1705
|
children: R.map((x, T) => {
|
|
1706
|
-
var F,
|
|
1706
|
+
var F, b;
|
|
1707
1707
|
return /* @__PURE__ */ n("div", {
|
|
1708
1708
|
children: /* @__PURE__ */ P(An.Item, {
|
|
1709
1709
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -1725,7 +1725,7 @@ const er = async (e) => {
|
|
|
1725
1725
|
onClick: () => {
|
|
1726
1726
|
y(R.find((L) => x.id === L.id)), u(!0);
|
|
1727
1727
|
},
|
|
1728
|
-
children: (
|
|
1728
|
+
children: (b = x.values) == null ? void 0 : b[v]
|
|
1729
1729
|
})]
|
|
1730
1730
|
}, T)
|
|
1731
1731
|
}, T);
|
|
@@ -2015,9 +2015,9 @@ const $t = ({
|
|
|
2015
2015
|
}
|
|
2016
2016
|
})).map((T) => {
|
|
2017
2017
|
const F = T[h];
|
|
2018
|
-
let
|
|
2019
|
-
return Array.isArray(F) && (
|
|
2020
|
-
label:
|
|
2018
|
+
let b = F;
|
|
2019
|
+
return Array.isArray(F) && (b = F[1]), {
|
|
2020
|
+
label: b,
|
|
2021
2021
|
value: T.id
|
|
2022
2022
|
};
|
|
2023
2023
|
});
|
|
@@ -2028,7 +2028,7 @@ const $t = ({
|
|
|
2028
2028
|
u(!1);
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const w = (S) => {
|
|
2032
2032
|
const E = o.map((T) => S.includes(T.id) ? T.operation == "pendingRemove" ? {
|
|
2033
2033
|
...T,
|
|
2034
2034
|
operation: "pendingLink"
|
|
@@ -2049,15 +2049,15 @@ const $t = ({
|
|
|
2049
2049
|
onClose: T
|
|
2050
2050
|
} = S, F = (L) => {
|
|
2051
2051
|
L.preventDefault(), L.stopPropagation();
|
|
2052
|
-
},
|
|
2052
|
+
}, b = rn(E);
|
|
2053
2053
|
return /* @__PURE__ */ n(xo, {
|
|
2054
|
-
color:
|
|
2054
|
+
color: b,
|
|
2055
2055
|
onMouseDown: F,
|
|
2056
2056
|
closable: x,
|
|
2057
2057
|
onClose: T,
|
|
2058
2058
|
closeIcon: /* @__PURE__ */ n("span", {
|
|
2059
2059
|
style: {
|
|
2060
|
-
color:
|
|
2060
|
+
color: b
|
|
2061
2061
|
},
|
|
2062
2062
|
children: "X"
|
|
2063
2063
|
}),
|
|
@@ -2079,7 +2079,7 @@ const $t = ({
|
|
|
2079
2079
|
bordered: !p,
|
|
2080
2080
|
disabled: p,
|
|
2081
2081
|
options: a,
|
|
2082
|
-
onChange:
|
|
2082
|
+
onChange: w,
|
|
2083
2083
|
loading: d
|
|
2084
2084
|
})
|
|
2085
2085
|
})
|
|
@@ -2401,11 +2401,11 @@ const $t = ({
|
|
|
2401
2401
|
resultsActionView: v,
|
|
2402
2402
|
domain: C,
|
|
2403
2403
|
currentId: R,
|
|
2404
|
-
limit:
|
|
2404
|
+
limit: w,
|
|
2405
2405
|
setLimit: A,
|
|
2406
2406
|
searchParams: S = [],
|
|
2407
2407
|
setSearchValues: E
|
|
2408
|
-
} = e, [x, T] = _(!1), [F,
|
|
2408
|
+
} = e, [x, T] = _(!1), [F, b] = _(!1), [L, V] = _(), [O, M] = _(1), [k, D] = _(0), [$, I] = _(), [j, G] = _([]), [U, Y] = _(void 0), [z, N] = _(void 0), B = ue(w || Wt), X = ue([]), ne = ke((ie) => {
|
|
2409
2409
|
g == null || g([...ie]), G([...ie]);
|
|
2410
2410
|
}, []), le = ke(() => v || j, [v, j]), J = ke(async () => {
|
|
2411
2411
|
const ie = await H.getHandler().nameSearch({
|
|
@@ -2490,7 +2490,7 @@ const $t = ({
|
|
|
2490
2490
|
m,
|
|
2491
2491
|
y,
|
|
2492
2492
|
d,
|
|
2493
|
-
|
|
2493
|
+
w,
|
|
2494
2494
|
k,
|
|
2495
2495
|
S
|
|
2496
2496
|
]
|
|
@@ -2501,7 +2501,7 @@ const $t = ({
|
|
|
2501
2501
|
} catch (Ee) {
|
|
2502
2502
|
V(Ee.message);
|
|
2503
2503
|
} finally {
|
|
2504
|
-
i == null || i([]),
|
|
2504
|
+
i == null || i([]), b(!1), a == null || a(!1);
|
|
2505
2505
|
}
|
|
2506
2506
|
},
|
|
2507
2507
|
[
|
|
@@ -2509,7 +2509,7 @@ const $t = ({
|
|
|
2509
2509
|
R,
|
|
2510
2510
|
C,
|
|
2511
2511
|
m,
|
|
2512
|
-
|
|
2512
|
+
w,
|
|
2513
2513
|
t,
|
|
2514
2514
|
l,
|
|
2515
2515
|
k,
|
|
@@ -2519,7 +2519,7 @@ const $t = ({
|
|
|
2519
2519
|
h,
|
|
2520
2520
|
ne,
|
|
2521
2521
|
V,
|
|
2522
|
-
|
|
2522
|
+
b,
|
|
2523
2523
|
T,
|
|
2524
2524
|
a,
|
|
2525
2525
|
y,
|
|
@@ -2541,7 +2541,7 @@ const $t = ({
|
|
|
2541
2541
|
), Me = ke(
|
|
2542
2542
|
(ie) => {
|
|
2543
2543
|
const { params: Ee, searchValues: be, limit: $e, offset: je } = ie;
|
|
2544
|
-
x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1),
|
|
2544
|
+
x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1), b(!0), V(void 0), M(1), $e && (B.current = $e, A == null || A($e)), je && D(je), fe({
|
|
2545
2545
|
params: Ee,
|
|
2546
2546
|
newOffset: je
|
|
2547
2547
|
}));
|
|
@@ -2552,7 +2552,7 @@ const $t = ({
|
|
|
2552
2552
|
i,
|
|
2553
2553
|
o,
|
|
2554
2554
|
s,
|
|
2555
|
-
|
|
2555
|
+
b,
|
|
2556
2556
|
V,
|
|
2557
2557
|
M,
|
|
2558
2558
|
A,
|
|
@@ -2561,11 +2561,11 @@ const $t = ({
|
|
|
2561
2561
|
]
|
|
2562
2562
|
), De = ke(
|
|
2563
2563
|
(ie) => {
|
|
2564
|
-
T(!0), M(ie), D((ie - 1) *
|
|
2564
|
+
T(!0), M(ie), D((ie - 1) * w);
|
|
2565
2565
|
},
|
|
2566
|
-
[T,
|
|
2566
|
+
[T, w, D, M]
|
|
2567
2567
|
), Ne = ke(() => {
|
|
2568
|
-
x || (r == null || r(void 0), o == null || o([]), E == null || E({}), V(void 0), D(0), M(1), A == null || A(
|
|
2568
|
+
x || (r == null || r(void 0), o == null || o([]), E == null || E({}), V(void 0), D(0), M(1), A == null || A(w || Wt));
|
|
2569
2569
|
}, [
|
|
2570
2570
|
x,
|
|
2571
2571
|
r,
|
|
@@ -2574,7 +2574,7 @@ const $t = ({
|
|
|
2574
2574
|
D,
|
|
2575
2575
|
M,
|
|
2576
2576
|
A,
|
|
2577
|
-
|
|
2577
|
+
w
|
|
2578
2578
|
]), Ue = ke(
|
|
2579
2579
|
async (ie) => {
|
|
2580
2580
|
const Ee = ie[(u == null ? void 0 : u.field_parent) || "child_id"], be = await H.getHandler().readObjects({
|
|
@@ -2601,7 +2601,7 @@ const $t = ({
|
|
|
2601
2601
|
searchError: L,
|
|
2602
2602
|
page: O,
|
|
2603
2603
|
offset: k,
|
|
2604
|
-
limit:
|
|
2604
|
+
limit: w,
|
|
2605
2605
|
getResults: le,
|
|
2606
2606
|
requestPageChange: De,
|
|
2607
2607
|
changeSort: he,
|
|
@@ -2632,13 +2632,13 @@ const $t = ({
|
|
|
2632
2632
|
setSorter: v,
|
|
2633
2633
|
totalItems: C,
|
|
2634
2634
|
setTotalItems: R,
|
|
2635
|
-
setSelectedRowItems:
|
|
2635
|
+
setSelectedRowItems: w,
|
|
2636
2636
|
selectedRowItems: A,
|
|
2637
2637
|
searchTreeNameSearch: S,
|
|
2638
2638
|
setSearchTreeNameSearch: E,
|
|
2639
2639
|
goToResourceId: x,
|
|
2640
2640
|
limit: T
|
|
2641
|
-
} = e, [F,
|
|
2641
|
+
} = e, [F, b] = _(!1), [L, V] = _(!1), [O, M] = _(!1), [k, D] = _(!0), [$, I] = _(!0), [j, G] = _([]), [U, Y] = _(!1), [z, N] = _([]), [B, X] = _(!1), [ne, le] = _(!0), [J, Z] = _(), [fe, he] = _({}), [Me, De] = _(T !== void 0 ? T : Wt), [Ne, Ue] = _(i);
|
|
2642
2642
|
ge(() => {
|
|
2643
2643
|
m && m.length > 0 && !y && (p == null || p(0), d == null || d(m[0].id));
|
|
2644
2644
|
}, [m]), ge(() => {
|
|
@@ -2659,7 +2659,7 @@ const $t = ({
|
|
|
2659
2659
|
setCurrentView: o,
|
|
2660
2660
|
availableViews: s,
|
|
2661
2661
|
formIsSaving: F,
|
|
2662
|
-
setFormIsSaving:
|
|
2662
|
+
setFormIsSaving: b,
|
|
2663
2663
|
formHasChanges: L,
|
|
2664
2664
|
setFormHasChanges: V,
|
|
2665
2665
|
formRef: a,
|
|
@@ -2682,7 +2682,7 @@ const $t = ({
|
|
|
2682
2682
|
attachments: j,
|
|
2683
2683
|
setAttachments: G,
|
|
2684
2684
|
selectedRowItems: A,
|
|
2685
|
-
setSelectedRowItems:
|
|
2685
|
+
setSelectedRowItems: w,
|
|
2686
2686
|
duplicatingItem: U,
|
|
2687
2687
|
setDuplicatingItem: Y,
|
|
2688
2688
|
setSearchParams: N,
|
|
@@ -2751,7 +2751,7 @@ const $t = ({
|
|
|
2751
2751
|
t: u
|
|
2752
2752
|
} = W(ye);
|
|
2753
2753
|
xt(t, () => ({
|
|
2754
|
-
openActionModal:
|
|
2754
|
+
openActionModal: w
|
|
2755
2755
|
}));
|
|
2756
2756
|
const [m, y] = _(!1), [p, h] = _({
|
|
2757
2757
|
context: {}
|
|
@@ -2761,7 +2761,7 @@ const $t = ({
|
|
|
2761
2761
|
reportData: x,
|
|
2762
2762
|
fields: T,
|
|
2763
2763
|
values: F,
|
|
2764
|
-
context:
|
|
2764
|
+
context: b = {}
|
|
2765
2765
|
} = E, {
|
|
2766
2766
|
context: L,
|
|
2767
2767
|
model: V,
|
|
@@ -2789,7 +2789,7 @@ const $t = ({
|
|
|
2789
2789
|
datas: O,
|
|
2790
2790
|
ids: $,
|
|
2791
2791
|
context: {
|
|
2792
|
-
...
|
|
2792
|
+
...b,
|
|
2793
2793
|
...I
|
|
2794
2794
|
}
|
|
2795
2795
|
});
|
|
@@ -2819,12 +2819,12 @@ const $t = ({
|
|
|
2819
2819
|
fields: x,
|
|
2820
2820
|
values: T,
|
|
2821
2821
|
context: F,
|
|
2822
|
-
onRefreshParentValues:
|
|
2822
|
+
onRefreshParentValues: b
|
|
2823
2823
|
}) {
|
|
2824
2824
|
const {
|
|
2825
2825
|
type: L
|
|
2826
2826
|
} = E;
|
|
2827
|
-
if (d.current.push(
|
|
2827
|
+
if (d.current.push(b), L === "ir.actions.report.xml")
|
|
2828
2828
|
return await g({
|
|
2829
2829
|
reportData: E,
|
|
2830
2830
|
fields: x,
|
|
@@ -2853,26 +2853,26 @@ const $t = ({
|
|
|
2853
2853
|
context: F = {}
|
|
2854
2854
|
}) {
|
|
2855
2855
|
var M;
|
|
2856
|
-
let
|
|
2857
|
-
E.res_model || (
|
|
2856
|
+
let b = E;
|
|
2857
|
+
E.res_model || (b = (await H.getHandler().readObjects({
|
|
2858
2858
|
model: "ir.actions.act_window",
|
|
2859
2859
|
ids: [parseInt(E.id)],
|
|
2860
2860
|
context: F
|
|
2861
2861
|
}))[0]);
|
|
2862
|
-
const L = typeof (
|
|
2863
|
-
context:
|
|
2862
|
+
const L = typeof (b == null ? void 0 : b.context) == "string" ? wt({
|
|
2863
|
+
context: b.context,
|
|
2864
2864
|
fields: x,
|
|
2865
2865
|
values: {
|
|
2866
2866
|
...T,
|
|
2867
2867
|
...i
|
|
2868
2868
|
}
|
|
2869
|
-
}) :
|
|
2869
|
+
}) : b.context, V = {
|
|
2870
2870
|
...F,
|
|
2871
2871
|
...L
|
|
2872
2872
|
};
|
|
2873
2873
|
let O = [];
|
|
2874
|
-
if (
|
|
2875
|
-
domain:
|
|
2874
|
+
if (b.domain && (O = await H.getHandler().evalDomain({
|
|
2875
|
+
domain: b.domain,
|
|
2876
2876
|
values: $t({
|
|
2877
2877
|
fields: x,
|
|
2878
2878
|
values: {
|
|
@@ -2882,16 +2882,16 @@ const $t = ({
|
|
|
2882
2882
|
}),
|
|
2883
2883
|
fields: x,
|
|
2884
2884
|
context: V
|
|
2885
|
-
})),
|
|
2885
|
+
})), b.target === "new") {
|
|
2886
2886
|
const k = await H.getHandler().getView({
|
|
2887
|
-
model:
|
|
2887
|
+
model: b.res_model,
|
|
2888
2888
|
type: "form",
|
|
2889
|
-
id: ((M =
|
|
2889
|
+
id: ((M = b == null ? void 0 : b.view_id) == null ? void 0 : M[0]) || void 0,
|
|
2890
2890
|
context: V
|
|
2891
2891
|
});
|
|
2892
|
-
return
|
|
2892
|
+
return w({
|
|
2893
2893
|
domain: O,
|
|
2894
|
-
model:
|
|
2894
|
+
model: b.res_model,
|
|
2895
2895
|
formView: k,
|
|
2896
2896
|
context: V
|
|
2897
2897
|
}), {};
|
|
@@ -2900,45 +2900,45 @@ const $t = ({
|
|
|
2900
2900
|
initialView: k,
|
|
2901
2901
|
views: D
|
|
2902
2902
|
} = await Cl({
|
|
2903
|
-
model:
|
|
2903
|
+
model: b.res_model,
|
|
2904
2904
|
context: V,
|
|
2905
|
-
view_mode:
|
|
2906
|
-
views:
|
|
2905
|
+
view_mode: b.view_mode,
|
|
2906
|
+
views: b.views
|
|
2907
2907
|
});
|
|
2908
2908
|
return c == null || c({
|
|
2909
2909
|
target: "current",
|
|
2910
2910
|
context: V,
|
|
2911
2911
|
domain: O,
|
|
2912
|
-
model:
|
|
2912
|
+
model: b.res_model,
|
|
2913
2913
|
views: D,
|
|
2914
|
-
title:
|
|
2914
|
+
title: b.name,
|
|
2915
2915
|
initialView: k,
|
|
2916
|
-
action_id:
|
|
2917
|
-
action_type:
|
|
2916
|
+
action_id: b.id,
|
|
2917
|
+
action_type: b.type
|
|
2918
2918
|
}), {
|
|
2919
2919
|
closeParent: !0
|
|
2920
2920
|
};
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function w({
|
|
2924
2924
|
domain: E,
|
|
2925
2925
|
model: x,
|
|
2926
2926
|
formView: T,
|
|
2927
2927
|
context: F,
|
|
2928
|
-
actionData:
|
|
2928
|
+
actionData: b
|
|
2929
2929
|
}) {
|
|
2930
2930
|
m ? A({
|
|
2931
2931
|
domain: E,
|
|
2932
2932
|
model: x,
|
|
2933
2933
|
formView: T,
|
|
2934
2934
|
context: F,
|
|
2935
|
-
actionData:
|
|
2935
|
+
actionData: b
|
|
2936
2936
|
}) : (h({
|
|
2937
2937
|
domain: E,
|
|
2938
2938
|
model: x,
|
|
2939
2939
|
context: F,
|
|
2940
2940
|
formView: T,
|
|
2941
|
-
actionData:
|
|
2941
|
+
actionData: b
|
|
2942
2942
|
}), y(!0));
|
|
2943
2943
|
}
|
|
2944
2944
|
async function A({
|
|
@@ -2946,7 +2946,7 @@ const $t = ({
|
|
|
2946
2946
|
model: x,
|
|
2947
2947
|
formView: T,
|
|
2948
2948
|
context: F,
|
|
2949
|
-
actionData:
|
|
2949
|
+
actionData: b
|
|
2950
2950
|
}) {
|
|
2951
2951
|
h({
|
|
2952
2952
|
domain: void 0,
|
|
@@ -2959,7 +2959,7 @@ const $t = ({
|
|
|
2959
2959
|
model: x,
|
|
2960
2960
|
context: F,
|
|
2961
2961
|
formView: T,
|
|
2962
|
-
actionData:
|
|
2962
|
+
actionData: b
|
|
2963
2963
|
}), y(!0);
|
|
2964
2964
|
}
|
|
2965
2965
|
async function S() {
|
|
@@ -3109,14 +3109,14 @@ function Ol(e, t) {
|
|
|
3109
3109
|
parentContext: v = {},
|
|
3110
3110
|
actionDomain: C,
|
|
3111
3111
|
visible: R = !0,
|
|
3112
|
-
rootForm:
|
|
3112
|
+
rootForm: w = !1,
|
|
3113
3113
|
defaultValues: A,
|
|
3114
3114
|
forcedValues: S = {},
|
|
3115
3115
|
parentWidth: E
|
|
3116
3116
|
} = e, {
|
|
3117
3117
|
t: x,
|
|
3118
3118
|
lang: T
|
|
3119
|
-
} = W(ye), [F,
|
|
3119
|
+
} = W(ye), [F, b] = _(!1), [L, V] = _(), [O, M] = _(), [k] = lt.useForm(), [D, $] = _(), [I, j] = _(), G = W(Co), [U, Y] = _(), [z, N] = _(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), he = (E !== void 0 ? E : U) < Fl, Me = W(Le), {
|
|
3120
3120
|
activeId: De,
|
|
3121
3121
|
getPlainValues: Ne
|
|
3122
3122
|
} = Me || {}, Ue = W(rt), {
|
|
@@ -3127,7 +3127,7 @@ function Ol(e, t) {
|
|
|
3127
3127
|
setAttachments: $e = void 0,
|
|
3128
3128
|
title: je = void 0,
|
|
3129
3129
|
setTitle: ee = void 0
|
|
3130
|
-
} = (
|
|
3130
|
+
} = (w ? Ue : {}) || {}, Se = W(Lt), {
|
|
3131
3131
|
processAction: Re,
|
|
3132
3132
|
globalValues: He
|
|
3133
3133
|
} = Se || {};
|
|
@@ -3426,7 +3426,7 @@ function Ol(e, t) {
|
|
|
3426
3426
|
succeed: !1,
|
|
3427
3427
|
id: de()
|
|
3428
3428
|
};
|
|
3429
|
-
|
|
3429
|
+
b(!0), Ce == null || Ce(!0);
|
|
3430
3430
|
try {
|
|
3431
3431
|
m === "api" ? await sr(K) : await zo(K), u && (B.current = void 0, Nt({
|
|
3432
3432
|
values: {},
|
|
@@ -3436,9 +3436,9 @@ function Ol(e, t) {
|
|
|
3436
3436
|
forceRefresh: !0
|
|
3437
3437
|
}), q = !0, Sn.success(x("savedRegisters"));
|
|
3438
3438
|
} catch (oe) {
|
|
3439
|
-
J.current = !1,
|
|
3439
|
+
J.current = !1, b(!1), Ce == null || Ce(!1), Ge == null || Ge(oe), Sn.error(x("errorWhileSavingForm")), V(oe != null && oe.message ? oe.message : oe);
|
|
3440
3440
|
} finally {
|
|
3441
|
-
J.current = !1, Ce == null || Ce(!1),
|
|
3441
|
+
J.current = !1, Ce == null || Ce(!1), b(!1);
|
|
3442
3442
|
}
|
|
3443
3443
|
return {
|
|
3444
3444
|
succeed: q,
|
|
@@ -3636,7 +3636,7 @@ function Ol(e, t) {
|
|
|
3636
3636
|
});
|
|
3637
3637
|
}
|
|
3638
3638
|
})) || {};
|
|
3639
|
-
!
|
|
3639
|
+
!w && re && (se == null || se(de(), Ke(), ae()));
|
|
3640
3640
|
}
|
|
3641
3641
|
function ni() {
|
|
3642
3642
|
wn({
|
|
@@ -3778,12 +3778,12 @@ const Zt = bt(Ol), Xt = (e) => {
|
|
|
3778
3778
|
}, [l, a]);
|
|
3779
3779
|
async function g() {
|
|
3780
3780
|
const {
|
|
3781
|
-
action_id:
|
|
3781
|
+
action_id: w,
|
|
3782
3782
|
res_id: A,
|
|
3783
3783
|
action_type: S,
|
|
3784
3784
|
view_id: E
|
|
3785
3785
|
} = l, x = await H.getHandler().isShortcutFavorite({
|
|
3786
|
-
action_id:
|
|
3786
|
+
action_id: w,
|
|
3787
3787
|
action_type: S,
|
|
3788
3788
|
view_id: E,
|
|
3789
3789
|
res_id: A || !1
|
|
@@ -3797,13 +3797,13 @@ const Zt = bt(Ol), Xt = (e) => {
|
|
|
3797
3797
|
});
|
|
3798
3798
|
else {
|
|
3799
3799
|
const {
|
|
3800
|
-
action_id:
|
|
3800
|
+
action_id: w,
|
|
3801
3801
|
res_id: A,
|
|
3802
3802
|
action_type: S,
|
|
3803
3803
|
view_id: E
|
|
3804
3804
|
} = l;
|
|
3805
3805
|
await H.getHandler().addFavourite({
|
|
3806
|
-
action_id:
|
|
3806
|
+
action_id: w,
|
|
3807
3807
|
action_type: S,
|
|
3808
3808
|
view_id: E,
|
|
3809
3809
|
res_id: A || !1
|
|
@@ -4237,7 +4237,7 @@ function Fo(e) {
|
|
|
4237
4237
|
searchError: u,
|
|
4238
4238
|
searchValues: m,
|
|
4239
4239
|
showLimitOptions: y = !0
|
|
4240
|
-
} = e, [p, h] = _(), [g, v] = _(), [C, R] = _(!1),
|
|
4240
|
+
} = e, [p, h] = _(), [g, v] = _(), [C, R] = _(!1), w = ue(), {
|
|
4241
4241
|
token: A
|
|
4242
4242
|
} = jl(), [S] = lt.useForm();
|
|
4243
4243
|
ge(() => {
|
|
@@ -4246,8 +4246,8 @@ function Fo(e) {
|
|
|
4246
4246
|
const E = () => {
|
|
4247
4247
|
if (!g)
|
|
4248
4248
|
return;
|
|
4249
|
-
const F = C ? g : p,
|
|
4250
|
-
return
|
|
4249
|
+
const F = C ? g : p, b = F == null ? void 0 : F.rows;
|
|
4250
|
+
return b == null ? void 0 : b.map((L, V) => /* @__PURE__ */ n(xe, {
|
|
4251
4251
|
children: L.map((O, M) => /* @__PURE__ */ n(ce, {
|
|
4252
4252
|
xs: 24,
|
|
4253
4253
|
className: "p-2",
|
|
@@ -4259,28 +4259,28 @@ function Fo(e) {
|
|
|
4259
4259
|
}, V));
|
|
4260
4260
|
};
|
|
4261
4261
|
St(() => {
|
|
4262
|
-
R(!1),
|
|
4262
|
+
R(!1), w.current = new vi(r, t), w.current.parse(), h(w.current._simpleSearchContainer), v(w.current._advancedSearchContainer);
|
|
4263
4263
|
}, [t, r]);
|
|
4264
4264
|
const x = E(), T = (F) => {
|
|
4265
4265
|
var O;
|
|
4266
4266
|
const {
|
|
4267
|
-
limit:
|
|
4267
|
+
limit: b,
|
|
4268
4268
|
offset: L
|
|
4269
4269
|
} = F;
|
|
4270
4270
|
delete F.offset, delete F.limit;
|
|
4271
|
-
const V = ul(F, (O =
|
|
4271
|
+
const V = ul(F, (O = w.current) == null ? void 0 : O._advancedSearchContainer);
|
|
4272
4272
|
o({
|
|
4273
4273
|
params: V,
|
|
4274
4274
|
offset: L,
|
|
4275
|
-
limit:
|
|
4275
|
+
limit: b,
|
|
4276
4276
|
searchValues: F
|
|
4277
4277
|
});
|
|
4278
4278
|
};
|
|
4279
4279
|
return /* @__PURE__ */ n(Qn, {
|
|
4280
4280
|
bounds: !0,
|
|
4281
4281
|
onResize: (F) => {
|
|
4282
|
-
var
|
|
4283
|
-
d == null || d((
|
|
4282
|
+
var b;
|
|
4283
|
+
d == null || d((b = F.bounds) == null ? void 0 : b.height);
|
|
4284
4284
|
},
|
|
4285
4285
|
children: ({
|
|
4286
4286
|
measureRef: F
|
|
@@ -4462,7 +4462,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4462
4462
|
if (!t)
|
|
4463
4463
|
return null;
|
|
4464
4464
|
async function R() {
|
|
4465
|
-
var F,
|
|
4465
|
+
var F, b, L, V, O;
|
|
4466
4466
|
c(!0);
|
|
4467
4467
|
try {
|
|
4468
4468
|
const M = await H.getHandler().getView({
|
|
@@ -4475,7 +4475,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4475
4475
|
const {
|
|
4476
4476
|
toolbar: D
|
|
4477
4477
|
} = M;
|
|
4478
|
-
(F = D.action) == null || F.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (
|
|
4478
|
+
(F = D.action) == null || F.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (b = D.action) == null || b.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...dr(I.domain))), (L = D.relate) == null || L.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (V = D.relate) == null || V.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...dr(I.domain))), (O = D.print) == null || O.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), k = k.filter((I) => Object.keys(M.fields).indexOf(I) > -1);
|
|
4479
4479
|
let $ = {};
|
|
4480
4480
|
k.length > 0 && ($ = (await H.getHandler().readObjects({
|
|
4481
4481
|
model: r,
|
|
@@ -4491,8 +4491,8 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4491
4491
|
return;
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
|
-
function
|
|
4495
|
-
var
|
|
4494
|
+
function w() {
|
|
4495
|
+
var b;
|
|
4496
4496
|
if (f)
|
|
4497
4497
|
return /* @__PURE__ */ n(Be, {
|
|
4498
4498
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -4504,7 +4504,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4504
4504
|
});
|
|
4505
4505
|
if (!d || !d.toolbar)
|
|
4506
4506
|
return /* @__PURE__ */ n(Be, {});
|
|
4507
|
-
const F = (
|
|
4507
|
+
const F = (b = d == null ? void 0 : d.toolbar) == null ? void 0 : b.relate.map((L) => /* @__PURE__ */ n(Be.Item, {
|
|
4508
4508
|
children: L.name
|
|
4509
4509
|
}, L.id));
|
|
4510
4510
|
return /* @__PURE__ */ n(Be, {
|
|
@@ -4533,15 +4533,15 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4533
4533
|
else if (F.key === "print")
|
|
4534
4534
|
l(!0);
|
|
4535
4535
|
else {
|
|
4536
|
-
const
|
|
4537
|
-
if (!
|
|
4536
|
+
const b = d.toolbar.relate.find((L) => L.id === parseInt(F.key));
|
|
4537
|
+
if (!b)
|
|
4538
4538
|
return;
|
|
4539
4539
|
g({
|
|
4540
|
-
relateData:
|
|
4540
|
+
relateData: b,
|
|
4541
4541
|
values: m,
|
|
4542
4542
|
fields: d.fields,
|
|
4543
|
-
action_id:
|
|
4544
|
-
action_type:
|
|
4543
|
+
action_id: b.id,
|
|
4544
|
+
action_type: b.type
|
|
4545
4545
|
});
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
@@ -4571,7 +4571,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
return /* @__PURE__ */ P(te, {
|
|
4573
4573
|
children: [/* @__PURE__ */ n(Gt, {
|
|
4574
|
-
overlay:
|
|
4574
|
+
overlay: w(),
|
|
4575
4575
|
trigger: ["click"],
|
|
4576
4576
|
children: /* @__PURE__ */ n(xi, {
|
|
4577
4577
|
style: {
|
|
@@ -4651,7 +4651,7 @@ var _o = { exports: {} };
|
|
|
4651
4651
|
} }, R = function(V, O, M) {
|
|
4652
4652
|
var k = String(V);
|
|
4653
4653
|
return !k || k.length >= O ? V : "" + Array(O + 1 - k.length).join(M) + V;
|
|
4654
|
-
},
|
|
4654
|
+
}, w = { s: R, z: function(V) {
|
|
4655
4655
|
var O = -V.utcOffset(), M = Math.abs(O), k = Math.floor(M / 60), D = M % 60;
|
|
4656
4656
|
return (O <= 0 ? "+" : "-") + R(k, 2, "0") + ":" + R(D, 2, "0");
|
|
4657
4657
|
}, m: function V(O, M) {
|
|
@@ -4668,7 +4668,7 @@ var _o = { exports: {} };
|
|
|
4668
4668
|
} }, A = "en", S = {};
|
|
4669
4669
|
S[A] = C;
|
|
4670
4670
|
var E = function(V) {
|
|
4671
|
-
return V instanceof
|
|
4671
|
+
return V instanceof b;
|
|
4672
4672
|
}, x = function V(O, M, k) {
|
|
4673
4673
|
var D;
|
|
4674
4674
|
if (!O)
|
|
@@ -4688,12 +4688,12 @@ var _o = { exports: {} };
|
|
|
4688
4688
|
if (E(V))
|
|
4689
4689
|
return V.clone();
|
|
4690
4690
|
var M = typeof O == "object" ? O : {};
|
|
4691
|
-
return M.date = V, M.args = arguments, new
|
|
4692
|
-
}, F =
|
|
4691
|
+
return M.date = V, M.args = arguments, new b(M);
|
|
4692
|
+
}, F = w;
|
|
4693
4693
|
F.l = x, F.i = E, F.w = function(V, O) {
|
|
4694
4694
|
return T(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
4695
4695
|
};
|
|
4696
|
-
var
|
|
4696
|
+
var b = function() {
|
|
4697
4697
|
function V(M) {
|
|
4698
4698
|
this.$L = x(M.locale, null, !0), this.parse(M);
|
|
4699
4699
|
}
|
|
@@ -4836,13 +4836,13 @@ var _o = { exports: {} };
|
|
|
4836
4836
|
}, O.toString = function() {
|
|
4837
4837
|
return this.$d.toUTCString();
|
|
4838
4838
|
}, V;
|
|
4839
|
-
}(), L =
|
|
4839
|
+
}(), L = b.prototype;
|
|
4840
4840
|
return T.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", f], ["$W", c], ["$M", u], ["$y", y], ["$D", p]].forEach(function(V) {
|
|
4841
4841
|
L[V[1]] = function(O) {
|
|
4842
4842
|
return this.$g(O, V[0], V[1]);
|
|
4843
4843
|
};
|
|
4844
4844
|
}), T.extend = function(V, O) {
|
|
4845
|
-
return V.$i || (V(O,
|
|
4845
|
+
return V.$i || (V(O, b, T), V.$i = !0), T;
|
|
4846
4846
|
}, T.locale = x, T.isDayjs = E, T.unix = function(V) {
|
|
4847
4847
|
return T(1e3 * V);
|
|
4848
4848
|
}, T.en = S[A], T.Ls = S, T.p = {}, T;
|
|
@@ -4897,9 +4897,9 @@ var Ao = { exports: {} };
|
|
|
4897
4897
|
});
|
|
4898
4898
|
if (!h)
|
|
4899
4899
|
return R;
|
|
4900
|
-
var
|
|
4900
|
+
var w = g.weekStart;
|
|
4901
4901
|
return R.map(function(A, S) {
|
|
4902
|
-
return R[(S + (
|
|
4902
|
+
return R[(S + (w || 0)) % 7];
|
|
4903
4903
|
});
|
|
4904
4904
|
}, f = function() {
|
|
4905
4905
|
return o.Ls[o.locale()];
|
|
@@ -5152,17 +5152,17 @@ function gn(e) {
|
|
|
5152
5152
|
childField: v,
|
|
5153
5153
|
rootTree: C = !1,
|
|
5154
5154
|
context: R,
|
|
5155
|
-
readonly:
|
|
5155
|
+
readonly: w,
|
|
5156
5156
|
onSelectAllRecords: A
|
|
5157
|
-
} = e, [S, E] = _([]), [x, T] = _([]), F = ue(!1),
|
|
5157
|
+
} = e, [S, E] = _([]), [x, T] = _([]), F = ue(!1), b = ue(null), {
|
|
5158
5158
|
t: L
|
|
5159
5159
|
} = W(ye), V = ue(r), O = W(rt), {
|
|
5160
5160
|
title: M = void 0,
|
|
5161
5161
|
setTitle: k = void 0
|
|
5162
5162
|
} = (C ? O : {}) || {};
|
|
5163
5163
|
ge(() => {
|
|
5164
|
-
|
|
5165
|
-
const N = Ma(
|
|
5164
|
+
b.current = _t(o);
|
|
5165
|
+
const N = Ma(b.current, {
|
|
5166
5166
|
boolean: nc,
|
|
5167
5167
|
many2one: rc,
|
|
5168
5168
|
text: oc,
|
|
@@ -5180,10 +5180,10 @@ function gn(e) {
|
|
|
5180
5180
|
datetime: sc,
|
|
5181
5181
|
avatar: mc
|
|
5182
5182
|
}, R);
|
|
5183
|
-
T(N),
|
|
5183
|
+
T(N), b.current.string && M !== b.current.string && (k == null || k(b.current.string));
|
|
5184
5184
|
}, [o]), ge(() => {
|
|
5185
5185
|
F.current = !1;
|
|
5186
|
-
const N = yo(
|
|
5186
|
+
const N = yo(b.current, s);
|
|
5187
5187
|
E(N), V.current = r;
|
|
5188
5188
|
}, [s]);
|
|
5189
5189
|
const D = (t - 1) * V.current + 1, $ = D - 1 + S.length, I = i === void 0 ? null : i === 0 ? L("no_results") : L("summary").replace("{from}", D == null ? void 0 : D.toString()).replace("{to}", $ == null ? void 0 : $.toString()).replace("{total}", i == null ? void 0 : i.toString()), j = () => {
|
|
@@ -5224,7 +5224,7 @@ function gn(e) {
|
|
|
5224
5224
|
};
|
|
5225
5225
|
function G() {
|
|
5226
5226
|
var le;
|
|
5227
|
-
const B =
|
|
5227
|
+
const B = b.current.columns.filter((J) => J.sum !== void 0).map((J) => ({
|
|
5228
5228
|
label: J.sum,
|
|
5229
5229
|
field: J.id
|
|
5230
5230
|
}));
|
|
@@ -5240,12 +5240,12 @@ function gn(e) {
|
|
|
5240
5240
|
});
|
|
5241
5241
|
}
|
|
5242
5242
|
let U, Y = u;
|
|
5243
|
-
if (
|
|
5243
|
+
if (b.current !== null) {
|
|
5244
5244
|
U = Kl(x, S, 600);
|
|
5245
|
-
const B =
|
|
5245
|
+
const B = b.current;
|
|
5246
5246
|
u && B.columns.some((X) => X.sum !== void 0) && (Y = u - 30);
|
|
5247
5247
|
}
|
|
5248
|
-
return
|
|
5248
|
+
return b.current === null || !U || ((z = U.columns) == null ? void 0 : z.length) === 0 ? /* @__PURE__ */ n(Ve, {
|
|
5249
5249
|
style: {
|
|
5250
5250
|
padding: "2rem"
|
|
5251
5251
|
}
|
|
@@ -5273,7 +5273,7 @@ function gn(e) {
|
|
|
5273
5273
|
onRowSelectionChange: d == null ? void 0 : d.onChange,
|
|
5274
5274
|
onChangeSort: p,
|
|
5275
5275
|
sorter: h,
|
|
5276
|
-
readonly:
|
|
5276
|
+
readonly: w,
|
|
5277
5277
|
expandableOpts: g ? {
|
|
5278
5278
|
expandIcon: Ci,
|
|
5279
5279
|
collapseIcon: Si,
|
|
@@ -5297,7 +5297,7 @@ function hc(e, t) {
|
|
|
5297
5297
|
rootTree: d = !1,
|
|
5298
5298
|
parentContext: u = {},
|
|
5299
5299
|
onChangeSelectedRowKeys: m
|
|
5300
|
-
} = e, [y, p] = _(!1), [h, g] = _(!1), v = ue(!1), [C, R] = _(), [
|
|
5300
|
+
} = e, [y, p] = _(!1), [h, g] = _(!1), v = ue(!1), [C, R] = _(), [w, A] = _(), [S, E] = _(), [x, T] = _(), [F, b] = _(200), L = ue(), {
|
|
5301
5301
|
height: V
|
|
5302
5302
|
} = hn(), O = W(Lt), {
|
|
5303
5303
|
processAction: M
|
|
@@ -5351,7 +5351,7 @@ function hc(e, t) {
|
|
|
5351
5351
|
searchNameGetDoneRef: v,
|
|
5352
5352
|
context: u,
|
|
5353
5353
|
formView: S,
|
|
5354
|
-
treeView:
|
|
5354
|
+
treeView: w,
|
|
5355
5355
|
sorter: X,
|
|
5356
5356
|
setSorter: ne,
|
|
5357
5357
|
setCurrentItemIndex: $,
|
|
@@ -5367,11 +5367,11 @@ function hc(e, t) {
|
|
|
5367
5367
|
refreshResults: () => {
|
|
5368
5368
|
v.current = !1, Ce();
|
|
5369
5369
|
},
|
|
5370
|
-
getFields: () =>
|
|
5370
|
+
getFields: () => w == null ? void 0 : w.fields,
|
|
5371
5371
|
getDomain: () => f
|
|
5372
5372
|
})), ge(() => {
|
|
5373
|
-
!h || c && (v.current = !1, Ce());
|
|
5374
|
-
}, [$e, je, h, c, a]);
|
|
5373
|
+
!h || c && w && (v.current = !1, Ce());
|
|
5374
|
+
}, [$e, je, h, c, a, w]);
|
|
5375
5375
|
const ot = async () => {
|
|
5376
5376
|
g(!1), p(!0), T(void 0), Z == null || Z(!0);
|
|
5377
5377
|
try {
|
|
@@ -5406,14 +5406,14 @@ function hc(e, t) {
|
|
|
5406
5406
|
id: We
|
|
5407
5407
|
} = Ae;
|
|
5408
5408
|
L.current || (L.current = await H.getHandler().treeButOpen({
|
|
5409
|
-
id:
|
|
5409
|
+
id: w.view_id,
|
|
5410
5410
|
model: C,
|
|
5411
5411
|
context: u
|
|
5412
5412
|
}));
|
|
5413
5413
|
const Tt = L.current[0][2];
|
|
5414
5414
|
await (M == null ? void 0 : M({
|
|
5415
5415
|
actionData: Tt,
|
|
5416
|
-
fields:
|
|
5416
|
+
fields: w.fields,
|
|
5417
5417
|
values: {
|
|
5418
5418
|
active_id: We,
|
|
5419
5419
|
...Ae
|
|
@@ -5424,7 +5424,7 @@ function hc(e, t) {
|
|
|
5424
5424
|
const {
|
|
5425
5425
|
id: We
|
|
5426
5426
|
} = Ae;
|
|
5427
|
-
if (
|
|
5427
|
+
if (w != null && w.isExpandable) {
|
|
5428
5428
|
try {
|
|
5429
5429
|
await ae(Ae);
|
|
5430
5430
|
} catch (Tt) {
|
|
@@ -5436,7 +5436,7 @@ function hc(e, t) {
|
|
|
5436
5436
|
id: We,
|
|
5437
5437
|
model: C,
|
|
5438
5438
|
formView: S,
|
|
5439
|
-
treeView:
|
|
5439
|
+
treeView: w
|
|
5440
5440
|
});
|
|
5441
5441
|
};
|
|
5442
5442
|
function ve(Ae) {
|
|
@@ -5451,22 +5451,22 @@ function hc(e, t) {
|
|
|
5451
5451
|
}))), m == null || m(Ae);
|
|
5452
5452
|
}
|
|
5453
5453
|
function _e() {
|
|
5454
|
-
return
|
|
5454
|
+
return w != null && w.isExpandable ? V - 160 : V - (F + 210);
|
|
5455
5455
|
}
|
|
5456
|
-
const tt = () => !
|
|
5456
|
+
const tt = () => !w || !S ? null : /* @__PURE__ */ P(te, {
|
|
5457
5457
|
children: [/* @__PURE__ */ n(Fo, {
|
|
5458
5458
|
fields: {
|
|
5459
5459
|
...S.fields,
|
|
5460
|
-
...
|
|
5460
|
+
...w.fields
|
|
5461
5461
|
},
|
|
5462
|
-
searchFields: wo([S.search_fields,
|
|
5462
|
+
searchFields: wo([S.search_fields, w.search_fields]),
|
|
5463
5463
|
onClear: Ue,
|
|
5464
5464
|
limit: Me,
|
|
5465
5465
|
offset: je,
|
|
5466
5466
|
isSearching: Ee,
|
|
5467
5467
|
onSubmit: Ne,
|
|
5468
5468
|
onLimitChange: Q,
|
|
5469
|
-
setSearchFilterHeight:
|
|
5469
|
+
setSearchFilterHeight: b,
|
|
5470
5470
|
searchError: be,
|
|
5471
5471
|
searchVisible: N,
|
|
5472
5472
|
searchValues: fe
|
|
@@ -5475,7 +5475,7 @@ function hc(e, t) {
|
|
|
5475
5475
|
total: Ge,
|
|
5476
5476
|
limit: Me,
|
|
5477
5477
|
page: $e,
|
|
5478
|
-
treeView:
|
|
5478
|
+
treeView: w,
|
|
5479
5479
|
results: ee(),
|
|
5480
5480
|
onRequestPageChange: Se,
|
|
5481
5481
|
loading: ie,
|
|
@@ -5489,8 +5489,8 @@ function hc(e, t) {
|
|
|
5489
5489
|
},
|
|
5490
5490
|
sorter: X,
|
|
5491
5491
|
onChangeSort: Re,
|
|
5492
|
-
onFetchChildrenForRecord:
|
|
5493
|
-
childField:
|
|
5492
|
+
onFetchChildrenForRecord: w.isExpandable ? He : void 0,
|
|
5493
|
+
childField: w.field_parent,
|
|
5494
5494
|
rootTree: d,
|
|
5495
5495
|
onSelectAllRecords: Fe
|
|
5496
5496
|
})]
|
|
@@ -5525,9 +5525,9 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5525
5525
|
await new Promise((R) => setTimeout(R, 5)), r();
|
|
5526
5526
|
}, g = async (R) => {
|
|
5527
5527
|
const {
|
|
5528
|
-
id:
|
|
5528
|
+
id: w
|
|
5529
5529
|
} = R;
|
|
5530
|
-
i([
|
|
5530
|
+
i([w]);
|
|
5531
5531
|
};
|
|
5532
5532
|
function v() {
|
|
5533
5533
|
if (y.length === 0) {
|
|
@@ -5643,11 +5643,11 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5643
5643
|
domain: c
|
|
5644
5644
|
} = i, d = o && !a ? {
|
|
5645
5645
|
backgroundColor: Mo.colorPrimaryBg
|
|
5646
|
-
} : void 0, [u, m] = _(!1), [y, p] = _(!1), [h, g] = _(!1), [v, C] = _(), R = ue(!1), [
|
|
5646
|
+
} : void 0, [u, m] = _(!1), [y, p] = _(!1), [h, g] = _(!1), [v, C] = _(), R = ue(!1), [w, A] = _(""), S = ue(), E = W(Le), {
|
|
5647
5647
|
domain: x,
|
|
5648
5648
|
getValues: T,
|
|
5649
5649
|
getFields: F,
|
|
5650
|
-
getContext:
|
|
5650
|
+
getContext: b,
|
|
5651
5651
|
elementHasLostFocus: L
|
|
5652
5652
|
} = E || {}, V = ue([]), [O, M] = _([]), k = t && t[0] || void 0, D = t && t[1] || "";
|
|
5653
5653
|
ge(() => {
|
|
@@ -5660,7 +5660,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5660
5660
|
}, I = (B) => {
|
|
5661
5661
|
S.current = B.target.value, $([void 0, ""]);
|
|
5662
5662
|
}, j = async () => {
|
|
5663
|
-
if (!h &&
|
|
5663
|
+
if (!h && w !== D) {
|
|
5664
5664
|
if (await new Promise((B) => setTimeout(B, 100)), R.current) {
|
|
5665
5665
|
$([void 0, ""]);
|
|
5666
5666
|
return;
|
|
@@ -5674,7 +5674,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5674
5674
|
model: s,
|
|
5675
5675
|
payload: S.current,
|
|
5676
5676
|
context: {
|
|
5677
|
-
...
|
|
5677
|
+
...b == null ? void 0 : b(),
|
|
5678
5678
|
...l
|
|
5679
5679
|
}
|
|
5680
5680
|
});
|
|
@@ -5692,7 +5692,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5692
5692
|
params: V.current,
|
|
5693
5693
|
model: s,
|
|
5694
5694
|
context: {
|
|
5695
|
-
...
|
|
5695
|
+
...b == null ? void 0 : b(),
|
|
5696
5696
|
...l
|
|
5697
5697
|
},
|
|
5698
5698
|
totalItems: 2
|
|
@@ -5709,7 +5709,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5709
5709
|
payload: [B],
|
|
5710
5710
|
model: s,
|
|
5711
5711
|
context: {
|
|
5712
|
-
...
|
|
5712
|
+
...b == null ? void 0 : b(),
|
|
5713
5713
|
...l
|
|
5714
5714
|
}
|
|
5715
5715
|
});
|
|
@@ -5728,7 +5728,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5728
5728
|
values: T()
|
|
5729
5729
|
}),
|
|
5730
5730
|
fields: F(),
|
|
5731
|
-
context:
|
|
5731
|
+
context: b()
|
|
5732
5732
|
})), x && x.length > 0 && (V.current = V.current.concat(Kr({
|
|
5733
5733
|
domain: x,
|
|
5734
5734
|
widgetFieldName: f
|
|
@@ -5744,7 +5744,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5744
5744
|
flex: "auto",
|
|
5745
5745
|
children: /* @__PURE__ */ n(o && !a ? wc : it, {
|
|
5746
5746
|
type: "text",
|
|
5747
|
-
value:
|
|
5747
|
+
value: w,
|
|
5748
5748
|
disabled: a,
|
|
5749
5749
|
onChange: I,
|
|
5750
5750
|
style: d,
|
|
@@ -5754,7 +5754,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5754
5754
|
id: k,
|
|
5755
5755
|
model: s,
|
|
5756
5756
|
context: {
|
|
5757
|
-
...
|
|
5757
|
+
...b == null ? void 0 : b(),
|
|
5758
5758
|
...l
|
|
5759
5759
|
}
|
|
5760
5760
|
})
|
|
@@ -5766,7 +5766,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5766
5766
|
},
|
|
5767
5767
|
children: /* @__PURE__ */ n(Ie, {
|
|
5768
5768
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
5769
|
-
disabled: k === void 0 || D === "" ||
|
|
5769
|
+
disabled: k === void 0 || D === "" || w === void 0,
|
|
5770
5770
|
onClick: () => {
|
|
5771
5771
|
p(!0);
|
|
5772
5772
|
},
|
|
@@ -5797,7 +5797,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5797
5797
|
model: s,
|
|
5798
5798
|
domain: O,
|
|
5799
5799
|
context: {
|
|
5800
|
-
...
|
|
5800
|
+
...b == null ? void 0 : b(),
|
|
5801
5801
|
...l
|
|
5802
5802
|
},
|
|
5803
5803
|
visible: u,
|
|
@@ -5811,7 +5811,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5811
5811
|
}), /* @__PURE__ */ n(Xt, {
|
|
5812
5812
|
model: s,
|
|
5813
5813
|
parentContext: {
|
|
5814
|
-
...
|
|
5814
|
+
...b == null ? void 0 : b(),
|
|
5815
5815
|
...l
|
|
5816
5816
|
},
|
|
5817
5817
|
id: t && t[0],
|
|
@@ -5861,7 +5861,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5861
5861
|
field: c,
|
|
5862
5862
|
operator: d,
|
|
5863
5863
|
manualIds: u
|
|
5864
|
-
} = e, [m, y] = _(!1), [p, h] = _(), [g, v] = _(), [C, R] = _(), [
|
|
5864
|
+
} = e, [m, y] = _(!1), [p, h] = _(), [g, v] = _(), [C, R] = _(), [w, A] = _(0), [S, E] = _(0), [x, T] = _(), [F, b] = _(), [L, V] = _();
|
|
5865
5865
|
ge(() => {
|
|
5866
5866
|
k();
|
|
5867
5867
|
}, [t, o]);
|
|
@@ -5960,9 +5960,9 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5960
5960
|
},
|
|
5961
5961
|
context: i
|
|
5962
5962
|
});
|
|
5963
|
-
|
|
5963
|
+
b(j);
|
|
5964
5964
|
} else
|
|
5965
|
-
|
|
5965
|
+
b(l);
|
|
5966
5966
|
} catch (I) {
|
|
5967
5967
|
V(JSON.stringify(I));
|
|
5968
5968
|
}
|
|
@@ -5995,7 +5995,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
5995
5995
|
total: C,
|
|
5996
5996
|
percent: g,
|
|
5997
5997
|
measureRef: D,
|
|
5998
|
-
height:
|
|
5998
|
+
height: w,
|
|
5999
5999
|
width: S,
|
|
6000
6000
|
color: x,
|
|
6001
6001
|
icon: F,
|
|
@@ -6004,7 +6004,7 @@ const Vo = bt(hc), ko = (e) => {
|
|
|
6004
6004
|
value: p,
|
|
6005
6005
|
total: C,
|
|
6006
6006
|
measureRef: D,
|
|
6007
|
-
height:
|
|
6007
|
+
height: w,
|
|
6008
6008
|
width: S,
|
|
6009
6009
|
color: x,
|
|
6010
6010
|
icon: F,
|
|
@@ -6289,10 +6289,10 @@ const {
|
|
|
6289
6289
|
const R = Dc({
|
|
6290
6290
|
ooui: C
|
|
6291
6291
|
});
|
|
6292
|
-
let
|
|
6292
|
+
let w, A;
|
|
6293
6293
|
try {
|
|
6294
6294
|
({
|
|
6295
|
-
values:
|
|
6295
|
+
values: w,
|
|
6296
6296
|
fields: A
|
|
6297
6297
|
} = await Vc({
|
|
6298
6298
|
model: t,
|
|
@@ -6308,14 +6308,14 @@ const {
|
|
|
6308
6308
|
return;
|
|
6309
6309
|
}
|
|
6310
6310
|
try {
|
|
6311
|
-
if (!
|
|
6311
|
+
if (!w || !A) {
|
|
6312
6312
|
u("No values or fields returned"), c(!1);
|
|
6313
6313
|
return;
|
|
6314
6314
|
}
|
|
6315
|
-
h(
|
|
6315
|
+
h(w);
|
|
6316
6316
|
const S = _c({
|
|
6317
6317
|
ooui: C,
|
|
6318
|
-
values:
|
|
6318
|
+
values: w,
|
|
6319
6319
|
fields: A,
|
|
6320
6320
|
options: {
|
|
6321
6321
|
uninformedString: a
|
|
@@ -6638,7 +6638,7 @@ const $c = (e, t) => {
|
|
|
6638
6638
|
disabled: l === 0 || r || s !== "form" && y.length === 0
|
|
6639
6639
|
});
|
|
6640
6640
|
}
|
|
6641
|
-
function
|
|
6641
|
+
function w() {
|
|
6642
6642
|
let S = "_";
|
|
6643
6643
|
return l === 0 ? S = "_" : S = (f + 1).toString(), /* @__PURE__ */ P("span", {
|
|
6644
6644
|
className: "pl-1 pr-1",
|
|
@@ -6651,7 +6651,7 @@ const $c = (e, t) => {
|
|
|
6651
6651
|
tooltip: "Previous item",
|
|
6652
6652
|
icon: /* @__PURE__ */ n(Xr, {}),
|
|
6653
6653
|
onClick: c
|
|
6654
|
-
}),
|
|
6654
|
+
}), w(), /* @__PURE__ */ n(Xe, {
|
|
6655
6655
|
tooltip: "Next item",
|
|
6656
6656
|
icon: /* @__PURE__ */ n(Qr, {}),
|
|
6657
6657
|
onClick: d
|
|
@@ -6716,7 +6716,7 @@ const Wc = (e) => {
|
|
|
6716
6716
|
} = d || {}, {
|
|
6717
6717
|
lang: g,
|
|
6718
6718
|
t: v
|
|
6719
|
-
} = W(ye), [C, R] = _(!1), [
|
|
6719
|
+
} = W(ye), [C, R] = _(!1), [w, A] = _(!1), [S, E] = _(), [x, T] = _(!1), [F, b] = _(!1), [L, V] = _(), [O, M] = _([]), [k, D] = _(!1), $ = ue([]), [I, j] = _(), G = ue(), [U, Y] = _(void 0), {
|
|
6720
6720
|
readOnly: z,
|
|
6721
6721
|
relation: N,
|
|
6722
6722
|
context: B,
|
|
@@ -6863,8 +6863,8 @@ const Wc = (e) => {
|
|
|
6863
6863
|
}), T(!0));
|
|
6864
6864
|
}, ee = async () => {
|
|
6865
6865
|
a === "form" ? be(() => {
|
|
6866
|
-
|
|
6867
|
-
}) :
|
|
6866
|
+
b(!0);
|
|
6867
|
+
}) : b(!0);
|
|
6868
6868
|
}, Se = async () => {
|
|
6869
6869
|
A(!0), R(!1), E(void 0);
|
|
6870
6870
|
try {
|
|
@@ -7035,7 +7035,7 @@ const Wc = (e) => {
|
|
|
7035
7035
|
limit: J.length,
|
|
7036
7036
|
treeView: o.get("tree"),
|
|
7037
7037
|
results: Q,
|
|
7038
|
-
loading:
|
|
7038
|
+
loading: w,
|
|
7039
7039
|
onRowClicked: ((Fe = o.get("form")) == null ? void 0 : Fe.fields) !== void 0 ? se : void 0,
|
|
7040
7040
|
showPagination: !1,
|
|
7041
7041
|
rowSelection: {
|
|
@@ -7073,7 +7073,7 @@ const Wc = (e) => {
|
|
|
7073
7073
|
banner: !0
|
|
7074
7074
|
});
|
|
7075
7075
|
const ot = k;
|
|
7076
|
-
return
|
|
7076
|
+
return w ? /* @__PURE__ */ n(Ve, {}) : /* @__PURE__ */ P(te, {
|
|
7077
7077
|
children: [/* @__PURE__ */ n(jc, {
|
|
7078
7078
|
mode: a,
|
|
7079
7079
|
title: Ge(),
|
|
@@ -7118,10 +7118,10 @@ const Wc = (e) => {
|
|
|
7118
7118
|
},
|
|
7119
7119
|
visible: F,
|
|
7120
7120
|
onSelectValues: async (Q) => {
|
|
7121
|
-
|
|
7121
|
+
b(!1), me(Q);
|
|
7122
7122
|
},
|
|
7123
7123
|
onCloseModal: () => {
|
|
7124
|
-
|
|
7124
|
+
b(!1);
|
|
7125
7125
|
}
|
|
7126
7126
|
})]
|
|
7127
7127
|
});
|
|
@@ -7154,13 +7154,13 @@ const Wc = (e) => {
|
|
|
7154
7154
|
try {
|
|
7155
7155
|
if (r && r.length > 0) {
|
|
7156
7156
|
for (const R of r) {
|
|
7157
|
-
const
|
|
7158
|
-
m.set(R,
|
|
7157
|
+
const w = await g(R);
|
|
7158
|
+
m.set(R, w);
|
|
7159
7159
|
}
|
|
7160
7160
|
y(m);
|
|
7161
7161
|
} else {
|
|
7162
|
-
const R = await g("form"),
|
|
7163
|
-
m.set("form", R), m.set("tree",
|
|
7162
|
+
const R = await g("form"), w = await g("tree");
|
|
7163
|
+
m.set("form", R), m.set("tree", w), y(m);
|
|
7164
7164
|
}
|
|
7165
7165
|
} catch (R) {
|
|
7166
7166
|
u(JSON.stringify(R));
|
|
@@ -7178,14 +7178,14 @@ const Wc = (e) => {
|
|
|
7178
7178
|
children: /* @__PURE__ */ n(we, {
|
|
7179
7179
|
required: s,
|
|
7180
7180
|
type: "array",
|
|
7181
|
-
validator: async (R,
|
|
7182
|
-
if (!
|
|
7181
|
+
validator: async (R, w) => {
|
|
7182
|
+
if (!w)
|
|
7183
7183
|
throw new Error();
|
|
7184
|
-
if (!
|
|
7184
|
+
if (!w.items)
|
|
7185
7185
|
throw new Error();
|
|
7186
|
-
if (!Array.isArray(
|
|
7186
|
+
if (!Array.isArray(w.items))
|
|
7187
7187
|
throw new Error();
|
|
7188
|
-
if (
|
|
7188
|
+
if (w.items.length === 0)
|
|
7189
7189
|
throw new Error();
|
|
7190
7190
|
},
|
|
7191
7191
|
...e,
|
|
@@ -7452,7 +7452,7 @@ const {
|
|
|
7452
7452
|
}
|
|
7453
7453
|
let v = o;
|
|
7454
7454
|
g.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (v = [
|
|
7455
|
-
["id", "in", i == null ? void 0 : i.map((
|
|
7455
|
+
["id", "in", i == null ? void 0 : i.map((w) => w.id)]
|
|
7456
7456
|
]);
|
|
7457
7457
|
const { datas: C } = await H.getHandler().exportData({
|
|
7458
7458
|
model: e,
|
|
@@ -7465,7 +7465,7 @@ const {
|
|
|
7465
7465
|
context: t,
|
|
7466
7466
|
format: g.exportType
|
|
7467
7467
|
});
|
|
7468
|
-
a(), await new Promise((
|
|
7468
|
+
a(), await new Promise((w) => setTimeout(w, 200));
|
|
7469
7469
|
const R = await Rt(C);
|
|
7470
7470
|
pn(C, R.mime);
|
|
7471
7471
|
},
|
|
@@ -7479,18 +7479,18 @@ const {
|
|
|
7479
7479
|
return l.current["/"] = g, Mr({ fields: g });
|
|
7480
7480
|
}, [e, t, l]), u = ke(
|
|
7481
7481
|
async (g) => {
|
|
7482
|
-
const C = Ln(g, l.current)[$n(g)], R = C.relation,
|
|
7482
|
+
const C = Ln(g, l.current)[$n(g)], R = C.relation, w = await H.getHandler().getFields({
|
|
7483
7483
|
model: R,
|
|
7484
7484
|
context: t,
|
|
7485
7485
|
fields: []
|
|
7486
7486
|
});
|
|
7487
|
-
for (const [A, S] of Object.entries(
|
|
7488
|
-
|
|
7487
|
+
for (const [A, S] of Object.entries(w))
|
|
7488
|
+
w[A].string = od({
|
|
7489
7489
|
parentTitle: C.string,
|
|
7490
7490
|
title: S.string
|
|
7491
7491
|
});
|
|
7492
|
-
return l.current[g] =
|
|
7493
|
-
fields:
|
|
7492
|
+
return l.current[g] = w, Mr({
|
|
7493
|
+
fields: w,
|
|
7494
7494
|
parentKey: g
|
|
7495
7495
|
});
|
|
7496
7496
|
},
|
|
@@ -7504,10 +7504,10 @@ const {
|
|
|
7504
7504
|
return {
|
|
7505
7505
|
predefinedExports: g.map((R) => ({
|
|
7506
7506
|
...R,
|
|
7507
|
-
fields: R.fields.map((
|
|
7508
|
-
const A = $n(
|
|
7507
|
+
fields: R.fields.map((w) => {
|
|
7508
|
+
const A = $n(w.key), E = Ln(w.key, l.current)[A];
|
|
7509
7509
|
return {
|
|
7510
|
-
key:
|
|
7510
|
+
key: w.key,
|
|
7511
7511
|
title: E.string
|
|
7512
7512
|
};
|
|
7513
7513
|
})
|
|
@@ -7526,10 +7526,10 @@ const {
|
|
|
7526
7526
|
context: t
|
|
7527
7527
|
});
|
|
7528
7528
|
return await Promise.all(
|
|
7529
|
-
g.fields.map(async (
|
|
7529
|
+
g.fields.map(async (w) => await H.getHandler().create({
|
|
7530
7530
|
model: "ir.exports.line",
|
|
7531
7531
|
values: {
|
|
7532
|
-
name:
|
|
7532
|
+
name: w.key,
|
|
7533
7533
|
export_id: R
|
|
7534
7534
|
},
|
|
7535
7535
|
fields: C,
|
|
@@ -7791,18 +7791,18 @@ var Ho = { exports: {} };
|
|
|
7791
7791
|
function p(h) {
|
|
7792
7792
|
var g, v;
|
|
7793
7793
|
g = h, v = l && l.formats;
|
|
7794
|
-
for (var C = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F,
|
|
7795
|
-
var L =
|
|
7796
|
-
return F || v[
|
|
7794
|
+
for (var C = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, F, b) {
|
|
7795
|
+
var L = b && b.toUpperCase();
|
|
7796
|
+
return F || v[b] || r[b] || v[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(V, O, M) {
|
|
7797
7797
|
return O || M.slice(1);
|
|
7798
7798
|
});
|
|
7799
|
-
})).match(i), R = C.length,
|
|
7800
|
-
var A = C[
|
|
7801
|
-
C[
|
|
7799
|
+
})).match(i), R = C.length, w = 0; w < R; w += 1) {
|
|
7800
|
+
var A = C[w], S = y[A], E = S && S[0], x = S && S[1];
|
|
7801
|
+
C[w] = x ? { regex: E, parser: x } : A.replace(/^\[|\]$/g, "");
|
|
7802
7802
|
}
|
|
7803
7803
|
return function(T) {
|
|
7804
|
-
for (var F = {},
|
|
7805
|
-
var V = C[
|
|
7804
|
+
for (var F = {}, b = 0, L = 0; b < R; b += 1) {
|
|
7805
|
+
var V = C[b];
|
|
7806
7806
|
if (typeof V == "string")
|
|
7807
7807
|
L += V.length;
|
|
7808
7808
|
else {
|
|
@@ -7822,12 +7822,12 @@ var Ho = { exports: {} };
|
|
|
7822
7822
|
return function(h, g, v) {
|
|
7823
7823
|
v.p.customParseFormat = !0, h && h.parseTwoDigitYear && (f = h.parseTwoDigitYear);
|
|
7824
7824
|
var C = g.prototype, R = C.parse;
|
|
7825
|
-
C.parse = function(
|
|
7826
|
-
var A =
|
|
7825
|
+
C.parse = function(w) {
|
|
7826
|
+
var A = w.date, S = w.utc, E = w.args;
|
|
7827
7827
|
this.$u = S;
|
|
7828
7828
|
var x = E[1];
|
|
7829
7829
|
if (typeof x == "string") {
|
|
7830
|
-
var T = E[2] === !0, F = E[3] === !0,
|
|
7830
|
+
var T = E[2] === !0, F = E[3] === !0, b = T || F, L = E[2];
|
|
7831
7831
|
F && (L = E[2]), l = this.$locale(), !T && L && (l = v.Ls[L]), this.$d = function(k, D, $) {
|
|
7832
7832
|
try {
|
|
7833
7833
|
if (["x", "X"].indexOf(D) > -1)
|
|
@@ -7839,7 +7839,7 @@ var Ho = { exports: {} };
|
|
|
7839
7839
|
} catch {
|
|
7840
7840
|
return new Date("");
|
|
7841
7841
|
}
|
|
7842
|
-
}(A, x, S), this.init(), L && L !== !0 && (this.$L = this.locale(L).$L),
|
|
7842
|
+
}(A, x, S), this.init(), L && L !== !0 && (this.$L = this.locale(L).$L), b && A != this.format(x) && (this.$d = new Date("")), l = {};
|
|
7843
7843
|
} else if (x instanceof Array)
|
|
7844
7844
|
for (var V = x.length, O = 1; O <= V; O += 1) {
|
|
7845
7845
|
E[1] = x[O - 1];
|
|
@@ -7851,7 +7851,7 @@ var Ho = { exports: {} };
|
|
|
7851
7851
|
O === V && (this.$d = new Date(""));
|
|
7852
7852
|
}
|
|
7853
7853
|
else
|
|
7854
|
-
R.call(this,
|
|
7854
|
+
R.call(this, w);
|
|
7855
7855
|
};
|
|
7856
7856
|
};
|
|
7857
7857
|
});
|
|
@@ -7979,8 +7979,8 @@ const hd = (e) => {
|
|
|
7979
7979
|
i == null || i(R);
|
|
7980
7980
|
};
|
|
7981
7981
|
async function h() {
|
|
7982
|
-
const R = await Rt(r),
|
|
7983
|
-
A.href =
|
|
7982
|
+
const R = await Rt(r), w = `data:${R == null ? void 0 : R.mime};base64,${r}`, A = document.createElement("a"), S = u(a), E = u("name");
|
|
7983
|
+
A.href = w, A.download = S || E, A.click();
|
|
7984
7984
|
}
|
|
7985
7985
|
async function g() {
|
|
7986
7986
|
const R = await Rt(r);
|
|
@@ -7988,8 +7988,8 @@ const hd = (e) => {
|
|
|
7988
7988
|
}
|
|
7989
7989
|
async function v(R) {
|
|
7990
7990
|
R.stopPropagation(), R.preventDefault();
|
|
7991
|
-
const
|
|
7992
|
-
p(A), a && d(a,
|
|
7991
|
+
const w = R.target.files[0], A = await go(w);
|
|
7992
|
+
p(A), a && d(a, w.name);
|
|
7993
7993
|
}
|
|
7994
7994
|
function C() {
|
|
7995
7995
|
d(a, void 0), p(void 0);
|
|
@@ -8475,7 +8475,7 @@ function Od({
|
|
|
8475
8475
|
setResults: v,
|
|
8476
8476
|
formIsLoading: C,
|
|
8477
8477
|
attachments: R,
|
|
8478
|
-
formRef:
|
|
8478
|
+
formRef: w,
|
|
8479
8479
|
setFormHasChanges: A,
|
|
8480
8480
|
previousView: S,
|
|
8481
8481
|
setPreviousView: E,
|
|
@@ -8483,9 +8483,9 @@ function Od({
|
|
|
8483
8483
|
} = W(rt), {
|
|
8484
8484
|
t: T,
|
|
8485
8485
|
lang: F
|
|
8486
|
-
} = W(ye),
|
|
8486
|
+
} = W(ye), b = W(Lt), {
|
|
8487
8487
|
processAction: L
|
|
8488
|
-
} =
|
|
8488
|
+
} = b || {}, V = W(dt), {
|
|
8489
8489
|
openRelate: O,
|
|
8490
8490
|
openDefaultActionForModel: M
|
|
8491
8491
|
} = V || {};
|
|
@@ -8550,7 +8550,7 @@ function Od({
|
|
|
8550
8550
|
const N = await H.getHandler().duplicate({
|
|
8551
8551
|
id: l,
|
|
8552
8552
|
model: m,
|
|
8553
|
-
context:
|
|
8553
|
+
context: w.current.getContext()
|
|
8554
8554
|
});
|
|
8555
8555
|
N && await (x == null ? void 0 : x(N));
|
|
8556
8556
|
} catch (N) {
|
|
@@ -8563,11 +8563,11 @@ function Od({
|
|
|
8563
8563
|
function z(N) {
|
|
8564
8564
|
L == null || L({
|
|
8565
8565
|
actionData: N,
|
|
8566
|
-
values:
|
|
8567
|
-
fields:
|
|
8568
|
-
context:
|
|
8566
|
+
values: w.current.getValues(),
|
|
8567
|
+
fields: w.current.getFields(),
|
|
8568
|
+
context: w.current.getContext(),
|
|
8569
8569
|
onRefreshParentValues: () => {
|
|
8570
|
-
|
|
8570
|
+
w.current.fetchValues();
|
|
8571
8571
|
}
|
|
8572
8572
|
});
|
|
8573
8573
|
}
|
|
@@ -8610,7 +8610,7 @@ function Od({
|
|
|
8610
8610
|
loading: !1,
|
|
8611
8611
|
onClick: () => {
|
|
8612
8612
|
k(() => {
|
|
8613
|
-
|
|
8613
|
+
w.current.fetchValues();
|
|
8614
8614
|
});
|
|
8615
8615
|
}
|
|
8616
8616
|
}), Ft(), /* @__PURE__ */ n(nr, {
|
|
@@ -8679,8 +8679,8 @@ function Od({
|
|
|
8679
8679
|
onFormSave: o
|
|
8680
8680
|
})).succeed || O({
|
|
8681
8681
|
relateData: N,
|
|
8682
|
-
values:
|
|
8683
|
-
fields:
|
|
8682
|
+
values: w.current.getValues(),
|
|
8683
|
+
fields: w.current.getFields(),
|
|
8684
8684
|
action_id: N.id,
|
|
8685
8685
|
action_type: N.type
|
|
8686
8686
|
});
|
|
@@ -9134,14 +9134,14 @@ const Ed = (e) => {
|
|
|
9134
9134
|
setSearchVisible: v = void 0,
|
|
9135
9135
|
sorter: C = void 0,
|
|
9136
9136
|
setSorter: R = void 0,
|
|
9137
|
-
setTotalItems:
|
|
9137
|
+
setTotalItems: w = void 0,
|
|
9138
9138
|
setSearchTreeNameSearch: A = void 0,
|
|
9139
9139
|
setTreeIsLoading: S = void 0,
|
|
9140
9140
|
limit: E,
|
|
9141
9141
|
setLimit: x,
|
|
9142
9142
|
searchParams: T,
|
|
9143
9143
|
searchValues: F,
|
|
9144
|
-
setSearchValues:
|
|
9144
|
+
setSearchValues: b,
|
|
9145
9145
|
currentView: L
|
|
9146
9146
|
} = c || {}, [V, O] = _(!0);
|
|
9147
9147
|
ge(() => {
|
|
@@ -9161,7 +9161,7 @@ const Ed = (e) => {
|
|
|
9161
9161
|
setSearchTreeNameSearch: A,
|
|
9162
9162
|
setSelectedRowItems: p,
|
|
9163
9163
|
searchParams: T,
|
|
9164
|
-
setSearchValues:
|
|
9164
|
+
setSearchValues: b,
|
|
9165
9165
|
setSearchParams: h,
|
|
9166
9166
|
setSearchVisible: v,
|
|
9167
9167
|
setTreeIsLoading: S,
|
|
@@ -9175,7 +9175,7 @@ const Ed = (e) => {
|
|
|
9175
9175
|
resultsActionView: y,
|
|
9176
9176
|
domain: s,
|
|
9177
9177
|
currentId: m,
|
|
9178
|
-
setActionViewTotalItems:
|
|
9178
|
+
setActionViewTotalItems: w,
|
|
9179
9179
|
limit: E,
|
|
9180
9180
|
setLimit: x
|
|
9181
9181
|
});
|
|
@@ -9342,7 +9342,7 @@ function Pd(e) {
|
|
|
9342
9342
|
searchTreeNameSearch: v,
|
|
9343
9343
|
treeIsLoading: C,
|
|
9344
9344
|
setPreviousView: R,
|
|
9345
|
-
previousView:
|
|
9345
|
+
previousView: w,
|
|
9346
9346
|
results: A,
|
|
9347
9347
|
limit: S,
|
|
9348
9348
|
totalItems: E
|
|
@@ -9353,14 +9353,14 @@ function Pd(e) {
|
|
|
9353
9353
|
} = e;
|
|
9354
9354
|
W(Nd);
|
|
9355
9355
|
const {
|
|
9356
|
-
t:
|
|
9356
|
+
t: b,
|
|
9357
9357
|
lang: L
|
|
9358
9358
|
} = W(ye), V = W(Lt), {
|
|
9359
9359
|
processAction: O
|
|
9360
9360
|
} = V || {}, [M, k] = _(!1), D = v !== void 0 && v.trim().length > 0;
|
|
9361
9361
|
function $() {
|
|
9362
9362
|
zt({
|
|
9363
|
-
confirmMessage:
|
|
9363
|
+
confirmMessage: b("confirmRemove"),
|
|
9364
9364
|
lang: L,
|
|
9365
9365
|
onOk: () => {
|
|
9366
9366
|
I();
|
|
@@ -9434,7 +9434,7 @@ function Pd(e) {
|
|
|
9434
9434
|
color: p ? "white" : void 0
|
|
9435
9435
|
}
|
|
9436
9436
|
}),
|
|
9437
|
-
tooltip:
|
|
9437
|
+
tooltip: b("advanced_search"),
|
|
9438
9438
|
type: p ? "primary" : "default",
|
|
9439
9439
|
onClick: () => {
|
|
9440
9440
|
h == null || h(!p);
|
|
@@ -9445,28 +9445,28 @@ function Pd(e) {
|
|
|
9445
9445
|
disabled: C
|
|
9446
9446
|
}), /* @__PURE__ */ n(Ze, {
|
|
9447
9447
|
icon: /* @__PURE__ */ n(Zn, {}),
|
|
9448
|
-
tooltip:
|
|
9448
|
+
tooltip: b("duplicate"),
|
|
9449
9449
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || C,
|
|
9450
9450
|
loading: l,
|
|
9451
9451
|
onClick: j
|
|
9452
9452
|
}), /* @__PURE__ */ n(Ze, {
|
|
9453
9453
|
icon: /* @__PURE__ */ n(zn, {}),
|
|
9454
|
-
tooltip:
|
|
9454
|
+
tooltip: b("delete"),
|
|
9455
9455
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
|
|
9456
9456
|
loading: a,
|
|
9457
9457
|
onClick: $
|
|
9458
9458
|
}), vt()]
|
|
9459
9459
|
}), /* @__PURE__ */ n(Ze, {
|
|
9460
9460
|
icon: /* @__PURE__ */ n(to, {}),
|
|
9461
|
-
tooltip:
|
|
9461
|
+
tooltip: b("showLogs"),
|
|
9462
9462
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
|
|
9463
9463
|
loading: !1,
|
|
9464
9464
|
onClick: () => {
|
|
9465
|
-
jo(c, o[0].id,
|
|
9465
|
+
jo(c, o[0].id, b);
|
|
9466
9466
|
}
|
|
9467
9467
|
}), /* @__PURE__ */ n(Ze, {
|
|
9468
9468
|
icon: /* @__PURE__ */ n(fn, {}),
|
|
9469
|
-
tooltip:
|
|
9469
|
+
tooltip: b("refresh"),
|
|
9470
9470
|
disabled: l || a || C,
|
|
9471
9471
|
loading: !1,
|
|
9472
9472
|
onClick: () => {
|
|
@@ -9480,13 +9480,13 @@ function Pd(e) {
|
|
|
9480
9480
|
onChangeView: (Y) => {
|
|
9481
9481
|
R == null || R(r), i == null || i(Y);
|
|
9482
9482
|
},
|
|
9483
|
-
previousView:
|
|
9483
|
+
previousView: w,
|
|
9484
9484
|
disabled: C
|
|
9485
9485
|
})]
|
|
9486
9486
|
}), vt(), /* @__PURE__ */ n(At, {
|
|
9487
9487
|
icon: /* @__PURE__ */ n(Gn, {}),
|
|
9488
9488
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
|
|
9489
|
-
tooltip:
|
|
9489
|
+
tooltip: b("actions"),
|
|
9490
9490
|
items: F == null ? void 0 : F.action,
|
|
9491
9491
|
onItemClick: (Y) => {
|
|
9492
9492
|
!Y || G(Y);
|
|
@@ -9494,7 +9494,7 @@ function Pd(e) {
|
|
|
9494
9494
|
}), /* @__PURE__ */ n(At, {
|
|
9495
9495
|
icon: /* @__PURE__ */ n(qn, {}),
|
|
9496
9496
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
|
|
9497
|
-
tooltip:
|
|
9497
|
+
tooltip: b("reports"),
|
|
9498
9498
|
items: F == null ? void 0 : F.print,
|
|
9499
9499
|
onItemClick: (Y) => {
|
|
9500
9500
|
!Y || G({
|
|
@@ -9534,13 +9534,13 @@ function Pd(e) {
|
|
|
9534
9534
|
})]
|
|
9535
9535
|
})
|
|
9536
9536
|
}),
|
|
9537
|
-
tooltip:
|
|
9537
|
+
tooltip: b("export"),
|
|
9538
9538
|
items: [{
|
|
9539
9539
|
id: "print_screen",
|
|
9540
|
-
name:
|
|
9540
|
+
name: b("printScreen")
|
|
9541
9541
|
}, {
|
|
9542
9542
|
id: "export",
|
|
9543
|
-
name:
|
|
9543
|
+
name: b("advancedExport")
|
|
9544
9544
|
}],
|
|
9545
9545
|
onItemClick: (Y) => {
|
|
9546
9546
|
if (Y.id === "print_screen") {
|
|
@@ -9619,9 +9619,9 @@ const Hd = (e) => {
|
|
|
9619
9619
|
id: v
|
|
9620
9620
|
} = g;
|
|
9621
9621
|
d(v);
|
|
9622
|
-
const C = c.findIndex((
|
|
9622
|
+
const C = c.findIndex((w) => w.id === v);
|
|
9623
9623
|
h == null || h(p), f(C);
|
|
9624
|
-
const R = m.find((
|
|
9624
|
+
const R = m.find((w) => w.type === "form");
|
|
9625
9625
|
u(R);
|
|
9626
9626
|
}
|
|
9627
9627
|
})]
|
|
@@ -9746,7 +9746,7 @@ function Ud(e, t) {
|
|
|
9746
9746
|
action_type: p,
|
|
9747
9747
|
treeExpandable: h = !1,
|
|
9748
9748
|
limit: g
|
|
9749
|
-
} = e, [v, C] = _(), [R,
|
|
9749
|
+
} = e, [v, C] = _(), [R, w] = _([]), [A, S] = _(!0), E = m || void 0, [x, T] = _(E), [F, b] = _([]), [L, V] = _(), [O, M] = _([]), [k, D] = _(), [$, I] = _(0), [j, G] = _(!1), [U, Y] = _(!1), [z, N] = _(), {
|
|
9750
9750
|
t: B
|
|
9751
9751
|
} = W(ye) || {}, X = ue(), ne = ue(), le = W(dt), {
|
|
9752
9752
|
setCurrentView: J,
|
|
@@ -9841,7 +9841,7 @@ function Ud(e, t) {
|
|
|
9841
9841
|
}
|
|
9842
9842
|
let He;
|
|
9843
9843
|
!c && ee.find((se) => se.type === "tree") ? He = ee.find((me) => me.type === "tree") : c ? He = ee.find((me) => c.id ? me.type === c.type && me.view_id === c.id : me.type === c.type) : He = ee.find((me) => me.type === "form"), He || (ze(`Error determining the first view to show for model ${i}.
|
|
9844
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), De == null || De(f)), Ue(He),
|
|
9844
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), De == null || De(f)), Ue(He), w(ee), S(!1);
|
|
9845
9845
|
};
|
|
9846
9846
|
l({
|
|
9847
9847
|
tabKey: f,
|
|
@@ -9977,7 +9977,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9977
9977
|
totalItems: $,
|
|
9978
9978
|
setTotalItems: I,
|
|
9979
9979
|
selectedRowItems: F,
|
|
9980
|
-
setSelectedRowItems:
|
|
9980
|
+
setSelectedRowItems: b,
|
|
9981
9981
|
setSearchTreeNameSearch: N,
|
|
9982
9982
|
searchTreeNameSearch: z,
|
|
9983
9983
|
goToResourceId: be,
|
|
@@ -10017,17 +10017,17 @@ async function Gd({
|
|
|
10017
10017
|
view_type: m
|
|
10018
10018
|
} = s, y = m === "tree", p = [];
|
|
10019
10019
|
for (const C of c) {
|
|
10020
|
-
const [R,
|
|
10020
|
+
const [R, w] = C;
|
|
10021
10021
|
if (R)
|
|
10022
10022
|
p.push(C);
|
|
10023
10023
|
else {
|
|
10024
10024
|
const { view_id: A } = await H.getHandler().getView({
|
|
10025
10025
|
model: f,
|
|
10026
|
-
type:
|
|
10026
|
+
type: w,
|
|
10027
10027
|
id: R,
|
|
10028
10028
|
context: { ...t, ...a }
|
|
10029
10029
|
});
|
|
10030
|
-
p.push([A,
|
|
10030
|
+
p.push([A, w]);
|
|
10031
10031
|
}
|
|
10032
10032
|
}
|
|
10033
10033
|
const [h, g] = p[0], v = { id: h, type: g };
|
|
@@ -10155,7 +10155,7 @@ function eu(e) {
|
|
|
10155
10155
|
domain: s = [],
|
|
10156
10156
|
visible: a = !0,
|
|
10157
10157
|
parentContext: l = {}
|
|
10158
|
-
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [
|
|
10158
|
+
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [w, A] = _(0), S = ue(Qd), E = ue([]), [x, T] = _(0), [F, b] = _([]), [L, V] = _(void 0), [O, M] = _(), [k, D] = _(), [$, I] = _(), [j, G] = _(!1), U = ue([]), Y = (Z) => {
|
|
10159
10159
|
G(!0), R(Z), A((Z - 1) * S.current);
|
|
10160
10160
|
}, z = async () => {
|
|
10161
10161
|
const Z = U.current.length > 0 ? U.current : s, fe = Yt(E.current, Z), {
|
|
@@ -10167,7 +10167,7 @@ function eu(e) {
|
|
|
10167
10167
|
} = await H.getHandler().searchForTree({
|
|
10168
10168
|
params: fe,
|
|
10169
10169
|
limit: S.current,
|
|
10170
|
-
offset:
|
|
10170
|
+
offset: w,
|
|
10171
10171
|
model: m,
|
|
10172
10172
|
fields: p.fields,
|
|
10173
10173
|
context: l,
|
|
@@ -10184,7 +10184,7 @@ function eu(e) {
|
|
|
10184
10184
|
...g.fields
|
|
10185
10185
|
}
|
|
10186
10186
|
});
|
|
10187
|
-
G(!1),
|
|
10187
|
+
G(!1), b(Ue);
|
|
10188
10188
|
const Ce = await Me;
|
|
10189
10189
|
T(Ce);
|
|
10190
10190
|
}, N = async () => {
|
|
@@ -10196,7 +10196,7 @@ function eu(e) {
|
|
|
10196
10196
|
};
|
|
10197
10197
|
ge(() => {
|
|
10198
10198
|
!d || a && N();
|
|
10199
|
-
}, [C,
|
|
10199
|
+
}, [C, w, d, a]);
|
|
10200
10200
|
const B = async (Z) => {
|
|
10201
10201
|
u(!1), c(!0), I(void 0);
|
|
10202
10202
|
try {
|
|
@@ -10271,7 +10271,7 @@ function eu(e) {
|
|
|
10271
10271
|
...g.fields
|
|
10272
10272
|
}
|
|
10273
10273
|
});
|
|
10274
|
-
|
|
10274
|
+
b(fe);
|
|
10275
10275
|
},
|
|
10276
10276
|
context: l
|
|
10277
10277
|
})]
|
|
@@ -10337,10 +10337,10 @@ function nu(e, t) {
|
|
|
10337
10337
|
async function v() {
|
|
10338
10338
|
c(!0), m(!0), u(void 0);
|
|
10339
10339
|
try {
|
|
10340
|
-
const x = await C(), T = await
|
|
10340
|
+
const x = await C(), T = await w(x), F = x.fields[Dn].relation, b = T[Dn].items;
|
|
10341
10341
|
g.current = x.fields;
|
|
10342
10342
|
const L = await R({
|
|
10343
|
-
items:
|
|
10343
|
+
items: b,
|
|
10344
10344
|
model: F,
|
|
10345
10345
|
context: i
|
|
10346
10346
|
}), V = await A(L);
|
|
@@ -10366,7 +10366,7 @@ function nu(e, t) {
|
|
|
10366
10366
|
type: "form",
|
|
10367
10367
|
context: F
|
|
10368
10368
|
})).fields;
|
|
10369
|
-
const [
|
|
10369
|
+
const [b] = await er({
|
|
10370
10370
|
treeView: {
|
|
10371
10371
|
fields: h.current
|
|
10372
10372
|
},
|
|
@@ -10378,9 +10378,9 @@ function nu(e, t) {
|
|
|
10378
10378
|
context: F,
|
|
10379
10379
|
currentView: "form"
|
|
10380
10380
|
});
|
|
10381
|
-
return
|
|
10381
|
+
return b;
|
|
10382
10382
|
}
|
|
10383
|
-
async function
|
|
10383
|
+
async function w(x) {
|
|
10384
10384
|
return (await H.getHandler().readObjects({
|
|
10385
10385
|
model: r,
|
|
10386
10386
|
ids: [o],
|
|
@@ -10392,10 +10392,10 @@ function nu(e, t) {
|
|
|
10392
10392
|
const T = [];
|
|
10393
10393
|
for (const F of x) {
|
|
10394
10394
|
const {
|
|
10395
|
-
values:
|
|
10395
|
+
values: b
|
|
10396
10396
|
} = F;
|
|
10397
|
-
if (
|
|
10398
|
-
const L = parseInt(
|
|
10397
|
+
if (b.action_id && b.action_id.length > 0) {
|
|
10398
|
+
const L = parseInt(b.action_id[0], 10), V = await Gd({
|
|
10399
10399
|
actionId: L,
|
|
10400
10400
|
rootContext: i
|
|
10401
10401
|
});
|
|
@@ -10424,7 +10424,7 @@ function nu(e, t) {
|
|
|
10424
10424
|
});
|
|
10425
10425
|
if (T.length === 0)
|
|
10426
10426
|
return;
|
|
10427
|
-
const
|
|
10427
|
+
const b = a.filter((V) => T.map((O) => O.id).includes(V.id)).map((V) => {
|
|
10428
10428
|
const O = {
|
|
10429
10429
|
...T.find((M) => M.id === V.id)
|
|
10430
10430
|
};
|
|
@@ -10440,7 +10440,7 @@ function nu(e, t) {
|
|
|
10440
10440
|
};
|
|
10441
10441
|
}), L = {
|
|
10442
10442
|
fields: h.current,
|
|
10443
|
-
items:
|
|
10443
|
+
items: b
|
|
10444
10444
|
};
|
|
10445
10445
|
await H.getHandler().update({
|
|
10446
10446
|
model: r,
|
|
@@ -10465,11 +10465,11 @@ function nu(e, t) {
|
|
|
10465
10465
|
children: a.map((x, T) => {
|
|
10466
10466
|
const {
|
|
10467
10467
|
actionData: F,
|
|
10468
|
-
values:
|
|
10468
|
+
values: b
|
|
10469
10469
|
} = x, {
|
|
10470
10470
|
position: L,
|
|
10471
10471
|
id: V
|
|
10472
|
-
} =
|
|
10472
|
+
} = b, {
|
|
10473
10473
|
actionId: O,
|
|
10474
10474
|
actionType: M,
|
|
10475
10475
|
key: k,
|
|
@@ -10616,14 +10616,14 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10616
10616
|
getContext: C
|
|
10617
10617
|
} = v || {};
|
|
10618
10618
|
St(() => {
|
|
10619
|
-
|
|
10619
|
+
w();
|
|
10620
10620
|
}, [o]);
|
|
10621
10621
|
const R = (x) => {
|
|
10622
10622
|
i == null || i({
|
|
10623
10623
|
items: x
|
|
10624
10624
|
});
|
|
10625
10625
|
};
|
|
10626
|
-
async function
|
|
10626
|
+
async function w() {
|
|
10627
10627
|
u(!0);
|
|
10628
10628
|
let x = [];
|
|
10629
10629
|
if (r.domain) {
|
|
@@ -10647,12 +10647,12 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10647
10647
|
...C == null ? void 0 : C(),
|
|
10648
10648
|
...y
|
|
10649
10649
|
}
|
|
10650
|
-
})).map((
|
|
10651
|
-
const L =
|
|
10650
|
+
})).map((b) => {
|
|
10651
|
+
const L = b[h];
|
|
10652
10652
|
let V = L;
|
|
10653
10653
|
return Array.isArray(L) && (V = L[1]), {
|
|
10654
10654
|
label: V,
|
|
10655
|
-
value:
|
|
10655
|
+
value: b.id
|
|
10656
10656
|
};
|
|
10657
10657
|
});
|
|
10658
10658
|
l(F);
|
|
@@ -10674,16 +10674,16 @@ const ru = bt(nu), ou = (e) => {
|
|
|
10674
10674
|
}, S = () => {
|
|
10675
10675
|
E([]);
|
|
10676
10676
|
}, E = (x) => {
|
|
10677
|
-
const T = o.map((
|
|
10678
|
-
...
|
|
10677
|
+
const T = o.map((b) => x.includes(b.id) ? b.operation == "pendingRemove" ? {
|
|
10678
|
+
...b,
|
|
10679
10679
|
operation: "original"
|
|
10680
|
-
} :
|
|
10681
|
-
id:
|
|
10680
|
+
} : b : {
|
|
10681
|
+
id: b.id,
|
|
10682
10682
|
operation: "pendingRemove"
|
|
10683
|
-
}), F = T.map((
|
|
10684
|
-
x.filter((
|
|
10683
|
+
}), F = T.map((b) => b.id);
|
|
10684
|
+
x.filter((b) => !F.includes(b)).map((b) => {
|
|
10685
10685
|
T.push({
|
|
10686
|
-
id:
|
|
10686
|
+
id: b,
|
|
10687
10687
|
operation: "pendingLink"
|
|
10688
10688
|
});
|
|
10689
10689
|
}), R(T);
|
|
@@ -10872,12 +10872,12 @@ var Uo = { exports: {} };
|
|
|
10872
10872
|
return s.fromToBase(c, d, u, m);
|
|
10873
10873
|
}
|
|
10874
10874
|
o.en.relativeTime = a, s.fromToBase = function(c, d, u, m, y) {
|
|
10875
|
-
for (var p, h, g, v = u.$locale().relativeTime || a, C = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = C.length,
|
|
10876
|
-
var A = C[
|
|
10875
|
+
for (var p, h, g, v = u.$locale().relativeTime || a, C = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = C.length, w = 0; w < R; w += 1) {
|
|
10876
|
+
var A = C[w];
|
|
10877
10877
|
A.d && (p = m ? o(c).diff(u, A.d, !0) : u.diff(c, A.d, !0));
|
|
10878
10878
|
var S = (r.rounding || Math.round)(Math.abs(p));
|
|
10879
10879
|
if (g = p > 0, S <= A.r || !A.r) {
|
|
10880
|
-
S <= 1 &&
|
|
10880
|
+
S <= 1 && w > 0 && (A = C[w - 1]);
|
|
10881
10881
|
var E = v[A.l];
|
|
10882
10882
|
y && (S = y("" + S)), h = typeof E == "string" ? E.replace("%d", S) : E(S, d, A.l, g);
|
|
10883
10883
|
break;
|
|
@@ -11026,21 +11026,21 @@ function Ou(e, t) {
|
|
|
11026
11026
|
retrieveAndOpenAction: p,
|
|
11027
11027
|
openShortcut: v
|
|
11028
11028
|
}));
|
|
11029
|
-
function m(
|
|
11030
|
-
if (
|
|
11031
|
-
const A = f.findIndex((S) => S.key ===
|
|
11029
|
+
function m(w) {
|
|
11030
|
+
if (w === a) {
|
|
11031
|
+
const A = f.findIndex((S) => S.key === w);
|
|
11032
11032
|
f[A - 1] && l(f[A - 1].key), f[A + 1] && l(f[A + 1].key);
|
|
11033
11033
|
}
|
|
11034
|
-
c(f.filter((A) => A.key !==
|
|
11034
|
+
c(f.filter((A) => A.key !== w)), d.current.delete(w);
|
|
11035
11035
|
}
|
|
11036
11036
|
function y({
|
|
11037
|
-
tabKey:
|
|
11037
|
+
tabKey: w,
|
|
11038
11038
|
canWeClose: A
|
|
11039
11039
|
}) {
|
|
11040
|
-
d.current.set(
|
|
11040
|
+
d.current.set(w, A);
|
|
11041
11041
|
}
|
|
11042
11042
|
async function p({
|
|
11043
|
-
action:
|
|
11043
|
+
action: w,
|
|
11044
11044
|
values: A,
|
|
11045
11045
|
forced_values: S,
|
|
11046
11046
|
initialViewType: E,
|
|
@@ -11048,14 +11048,14 @@ function Ou(e, t) {
|
|
|
11048
11048
|
domain: T = []
|
|
11049
11049
|
}) {
|
|
11050
11050
|
const F = await H.getHandler().getActionData({
|
|
11051
|
-
action:
|
|
11051
|
+
action: w,
|
|
11052
11052
|
context: o
|
|
11053
11053
|
});
|
|
11054
11054
|
if (F.type === "ir.actions.wizard") {
|
|
11055
11055
|
ze("Action type not supported");
|
|
11056
11056
|
return;
|
|
11057
11057
|
}
|
|
11058
|
-
const [
|
|
11058
|
+
const [b, L] = w.split(","), V = parseInt(L), O = wt({
|
|
11059
11059
|
context: F.context,
|
|
11060
11060
|
values: i,
|
|
11061
11061
|
fields: {}
|
|
@@ -11120,7 +11120,7 @@ function Ou(e, t) {
|
|
|
11120
11120
|
title: $,
|
|
11121
11121
|
target: I,
|
|
11122
11122
|
initialView: z,
|
|
11123
|
-
action_type:
|
|
11123
|
+
action_type: b,
|
|
11124
11124
|
action_id: V,
|
|
11125
11125
|
values: A,
|
|
11126
11126
|
forced_values: S,
|
|
@@ -11130,14 +11130,14 @@ function Ou(e, t) {
|
|
|
11130
11130
|
});
|
|
11131
11131
|
}
|
|
11132
11132
|
function h({
|
|
11133
|
-
title:
|
|
11133
|
+
title: w,
|
|
11134
11134
|
content: A,
|
|
11135
11135
|
key: S,
|
|
11136
11136
|
action: E
|
|
11137
11137
|
}) {
|
|
11138
11138
|
let x = [...f];
|
|
11139
11139
|
f.length === 1 && f[0].key === "welcome" && (x = [...f.filter((T) => T.key !== "welcome")]), c([...x, {
|
|
11140
|
-
title:
|
|
11140
|
+
title: w,
|
|
11141
11141
|
key: S,
|
|
11142
11142
|
closable: !0,
|
|
11143
11143
|
content: A,
|
|
@@ -11145,7 +11145,7 @@ function Ou(e, t) {
|
|
|
11145
11145
|
}]), l(S);
|
|
11146
11146
|
}
|
|
11147
11147
|
async function g({
|
|
11148
|
-
relateData:
|
|
11148
|
+
relateData: w,
|
|
11149
11149
|
fields: A,
|
|
11150
11150
|
values: S,
|
|
11151
11151
|
action_id: E,
|
|
@@ -11154,12 +11154,12 @@ function Ou(e, t) {
|
|
|
11154
11154
|
const {
|
|
11155
11155
|
res_model: T,
|
|
11156
11156
|
context: F,
|
|
11157
|
-
domain:
|
|
11157
|
+
domain: b,
|
|
11158
11158
|
views: L,
|
|
11159
11159
|
target: V,
|
|
11160
11160
|
string: O,
|
|
11161
11161
|
limit: M
|
|
11162
|
-
} =
|
|
11162
|
+
} = w, [k, D] = L[0], $ = {
|
|
11163
11163
|
id: k,
|
|
11164
11164
|
type: D
|
|
11165
11165
|
}, I = wt({
|
|
@@ -11169,8 +11169,8 @@ function Ou(e, t) {
|
|
|
11169
11169
|
...i
|
|
11170
11170
|
},
|
|
11171
11171
|
fields: A
|
|
11172
|
-
}), j =
|
|
11173
|
-
domain:
|
|
11172
|
+
}), j = b ? await H.getHandler().evalDomain({
|
|
11173
|
+
domain: b,
|
|
11174
11174
|
values: $t({
|
|
11175
11175
|
fields: A,
|
|
11176
11176
|
values: {
|
|
@@ -11200,16 +11200,16 @@ function Ou(e, t) {
|
|
|
11200
11200
|
limit: M
|
|
11201
11201
|
});
|
|
11202
11202
|
}
|
|
11203
|
-
async function v(
|
|
11203
|
+
async function v(w) {
|
|
11204
11204
|
const {
|
|
11205
11205
|
action_id: A,
|
|
11206
11206
|
action_type: S,
|
|
11207
11207
|
res_id: E,
|
|
11208
11208
|
view_id: x
|
|
11209
|
-
} =
|
|
11209
|
+
} = w, T = `${S},${A}`, F = await H.getHandler().getActionData({
|
|
11210
11210
|
action: T,
|
|
11211
11211
|
context: o
|
|
11212
|
-
}),
|
|
11212
|
+
}), b = wt({
|
|
11213
11213
|
context: F.context,
|
|
11214
11214
|
values: i,
|
|
11215
11215
|
fields: {}
|
|
@@ -11218,7 +11218,7 @@ function Ou(e, t) {
|
|
|
11218
11218
|
values: i,
|
|
11219
11219
|
context: {
|
|
11220
11220
|
...o,
|
|
11221
|
-
...
|
|
11221
|
+
...b
|
|
11222
11222
|
}
|
|
11223
11223
|
}) : [], {
|
|
11224
11224
|
res_model: V,
|
|
@@ -11243,7 +11243,7 @@ function Ou(e, t) {
|
|
|
11243
11243
|
id: N,
|
|
11244
11244
|
context: {
|
|
11245
11245
|
...o,
|
|
11246
|
-
...
|
|
11246
|
+
...b
|
|
11247
11247
|
}
|
|
11248
11248
|
});
|
|
11249
11249
|
j.push([X, B]);
|
|
@@ -11263,7 +11263,7 @@ function Ou(e, t) {
|
|
|
11263
11263
|
domain: L,
|
|
11264
11264
|
context: {
|
|
11265
11265
|
...o,
|
|
11266
|
-
...
|
|
11266
|
+
...b
|
|
11267
11267
|
},
|
|
11268
11268
|
model: V,
|
|
11269
11269
|
views: j,
|
|
@@ -11278,14 +11278,14 @@ function Ou(e, t) {
|
|
|
11278
11278
|
});
|
|
11279
11279
|
}
|
|
11280
11280
|
async function C({
|
|
11281
|
-
model:
|
|
11281
|
+
model: w,
|
|
11282
11282
|
values: A,
|
|
11283
11283
|
forced_values: S,
|
|
11284
11284
|
initialViewType: E,
|
|
11285
11285
|
res_id: x,
|
|
11286
11286
|
domain: T
|
|
11287
11287
|
}) {
|
|
11288
|
-
const F = await H.getHandler().getActionStringForModel(
|
|
11288
|
+
const F = await H.getHandler().getActionStringForModel(w);
|
|
11289
11289
|
await p({
|
|
11290
11290
|
action: F,
|
|
11291
11291
|
values: A,
|
|
@@ -11296,14 +11296,14 @@ function Ou(e, t) {
|
|
|
11296
11296
|
});
|
|
11297
11297
|
}
|
|
11298
11298
|
async function R({
|
|
11299
|
-
domain:
|
|
11299
|
+
domain: w,
|
|
11300
11300
|
context: A,
|
|
11301
11301
|
model: S,
|
|
11302
11302
|
views: E,
|
|
11303
11303
|
title: x,
|
|
11304
11304
|
target: T,
|
|
11305
11305
|
initialView: F,
|
|
11306
|
-
action_id:
|
|
11306
|
+
action_id: b,
|
|
11307
11307
|
action_type: L,
|
|
11308
11308
|
res_id: V,
|
|
11309
11309
|
values: O,
|
|
@@ -11323,7 +11323,7 @@ function Ou(e, t) {
|
|
|
11323
11323
|
}
|
|
11324
11324
|
});
|
|
11325
11325
|
u.current.openActionModal({
|
|
11326
|
-
domain:
|
|
11326
|
+
domain: w,
|
|
11327
11327
|
model: S,
|
|
11328
11328
|
formView: I,
|
|
11329
11329
|
context: {
|
|
@@ -11331,7 +11331,7 @@ function Ou(e, t) {
|
|
|
11331
11331
|
...A
|
|
11332
11332
|
},
|
|
11333
11333
|
actionData: {
|
|
11334
|
-
action_id:
|
|
11334
|
+
action_id: b,
|
|
11335
11335
|
action_type: L,
|
|
11336
11336
|
res_id: V,
|
|
11337
11337
|
view_id: I.view_id
|
|
@@ -11345,11 +11345,11 @@ function Ou(e, t) {
|
|
|
11345
11345
|
h({
|
|
11346
11346
|
title: x,
|
|
11347
11347
|
action: {
|
|
11348
|
-
id:
|
|
11348
|
+
id: b,
|
|
11349
11349
|
type: L
|
|
11350
11350
|
},
|
|
11351
11351
|
content: /* @__PURE__ */ n(Wo, {
|
|
11352
|
-
action_id:
|
|
11352
|
+
action_id: b,
|
|
11353
11353
|
action_type: L,
|
|
11354
11354
|
tabKey: $,
|
|
11355
11355
|
title: x,
|
|
@@ -11359,7 +11359,7 @@ function Ou(e, t) {
|
|
|
11359
11359
|
...o,
|
|
11360
11360
|
...A
|
|
11361
11361
|
},
|
|
11362
|
-
domain:
|
|
11362
|
+
domain: w,
|
|
11363
11363
|
setCanWeClose: y,
|
|
11364
11364
|
initialView: I,
|
|
11365
11365
|
res_id: V,
|
|
@@ -11381,12 +11381,12 @@ function Ou(e, t) {
|
|
|
11381
11381
|
openDefaultActionForModel: C,
|
|
11382
11382
|
tabs: f,
|
|
11383
11383
|
activeKey: a,
|
|
11384
|
-
onRemoveTab: async (
|
|
11385
|
-
const A = d.current.get(
|
|
11386
|
-
(await (A == null ? void 0 : A()) || a === "welcome") && m(
|
|
11384
|
+
onRemoveTab: async (w) => {
|
|
11385
|
+
const A = d.current.get(w);
|
|
11386
|
+
(await (A == null ? void 0 : A()) || a === "welcome") && m(w);
|
|
11387
11387
|
},
|
|
11388
|
-
onChangeTab: (
|
|
11389
|
-
l(
|
|
11388
|
+
onChangeTab: (w) => {
|
|
11389
|
+
l(w);
|
|
11390
11390
|
},
|
|
11391
11391
|
children: /* @__PURE__ */ n(Sl, {
|
|
11392
11392
|
ref: u,
|
|
@@ -11519,7 +11519,7 @@ const {
|
|
|
11519
11519
|
} = Ru(), v = W(dt), {
|
|
11520
11520
|
openShortcut: C,
|
|
11521
11521
|
tabs: R,
|
|
11522
|
-
activeKey:
|
|
11522
|
+
activeKey: w,
|
|
11523
11523
|
currentView: A,
|
|
11524
11524
|
currentId: S,
|
|
11525
11525
|
openDefaultActionForModel: E
|
|
@@ -11527,8 +11527,8 @@ const {
|
|
|
11527
11527
|
ge(() => {
|
|
11528
11528
|
x();
|
|
11529
11529
|
}, []), ge(() => {
|
|
11530
|
-
|
|
11531
|
-
}, [R,
|
|
11530
|
+
b();
|
|
11531
|
+
}, [R, w, A, S]);
|
|
11532
11532
|
async function x() {
|
|
11533
11533
|
try {
|
|
11534
11534
|
m(!0);
|
|
@@ -11549,10 +11549,10 @@ const {
|
|
|
11549
11549
|
function F(k) {
|
|
11550
11550
|
k && x(), f(k);
|
|
11551
11551
|
}
|
|
11552
|
-
async function
|
|
11552
|
+
async function b() {
|
|
11553
11553
|
if (!A)
|
|
11554
11554
|
return;
|
|
11555
|
-
const k = R.find((U) => U.key ===
|
|
11555
|
+
const k = R.find((U) => U.key === w), {
|
|
11556
11556
|
id: D,
|
|
11557
11557
|
type: $
|
|
11558
11558
|
} = (k == null ? void 0 : k.action) || {};
|
|
@@ -11650,7 +11650,7 @@ const {
|
|
|
11650
11650
|
else {
|
|
11651
11651
|
if (!A)
|
|
11652
11652
|
return;
|
|
11653
|
-
const k = R.find((G) => G.key ===
|
|
11653
|
+
const k = R.find((G) => G.key === w), {
|
|
11654
11654
|
id: D,
|
|
11655
11655
|
type: $
|
|
11656
11656
|
} = (k == null ? void 0 : k.action) || {}, I = A.view_id;
|