@gisce/react-ooui 2.26.2 → 2.27.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/tree-columnStorageHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +154 -154
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/views/actionViews/TreeActionView.d.ts.map +1 -1
- package/dist/widgets/base/one2many/useTreeColumnStorageFetch.d.ts.map +1 -1
- package/dist/widgets/views/SearchTreeInfinite.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -2486,7 +2486,7 @@ const Jc = ({
|
|
|
2486
2486
|
goToResourceId: F,
|
|
2487
2487
|
limit: O,
|
|
2488
2488
|
isActive: V
|
|
2489
|
-
} = e, [A, R] = C(!1), [P, D] = C(!1), [L, W] = C(!1), [G, M] = C(!0), [$, Q] = C(!0), [re, Z] = C([]), [j, se] = C(!1), [
|
|
2489
|
+
} = e, [A, R] = C(!1), [P, D] = C(!1), [L, W] = C(!1), [G, M] = C(!0), [$, Q] = C(!0), [re, Z] = C([]), [j, se] = C(!1), [H, _] = C([]), [J, K] = C(!1), [he, oe] = C(!0), [Y, ue] = C(), [ve, Ve] = C({}), [Ne, De] = C(0), [Ee, Ge] = C(), [Se, ce] = C(!1), [fe, we] = C(
|
|
2490
2490
|
O !== void 0 ? O : kt
|
|
2491
2491
|
), [Pe, z] = C(r);
|
|
2492
2492
|
de(() => {
|
|
@@ -2546,7 +2546,7 @@ const Jc = ({
|
|
|
2546
2546
|
duplicatingItem: j,
|
|
2547
2547
|
setDuplicatingItem: se,
|
|
2548
2548
|
setSearchParams: _,
|
|
2549
|
-
searchParams:
|
|
2549
|
+
searchParams: H,
|
|
2550
2550
|
searchVisible: J,
|
|
2551
2551
|
setSearchVisible: K,
|
|
2552
2552
|
sorter: v,
|
|
@@ -3647,7 +3647,7 @@ function kd(e, t) {
|
|
|
3647
3647
|
forcedValues: S = {},
|
|
3648
3648
|
parentWidth: x,
|
|
3649
3649
|
onMustRefreshParent: F
|
|
3650
|
-
} = e, { t: O } = ye(), [V, A] = C(!1), [R, P] = C(), [D, L] = C(), [W] = ft.useForm(), [G, M] = C(), [$, Q] = C(), re = te(cs), [Z, j] = C(), [se,
|
|
3650
|
+
} = e, { t: O } = ye(), [V, A] = C(!1), [R, P] = C(), [D, L] = C(), [W] = ft.useForm(), [G, M] = C(), [$, Q] = C(), re = te(cs), [Z, j] = C(), [se, H] = C(!1), _ = X(), J = X({}), K = X({}), he = X(!1), oe = X(!1), Y = X(!1), ve = (x !== void 0 ? x : Z) < Pd, Ve = te(je), { activeId: Ne, getPlainValues: De } = Ve || {}, Ee = X(!1), Ge = te(
|
|
3651
3651
|
at
|
|
3652
3652
|
), {
|
|
3653
3653
|
setFormIsSaving: Se = void 0,
|
|
@@ -3682,14 +3682,14 @@ function kd(e, t) {
|
|
|
3682
3682
|
}, [r, n, h, m, T]), de(() => {
|
|
3683
3683
|
se && (Zn({
|
|
3684
3684
|
elementHasLostFocus: !0
|
|
3685
|
-
}),
|
|
3685
|
+
}), H(!1));
|
|
3686
3686
|
}, [se]);
|
|
3687
|
-
const ne = (
|
|
3688
|
-
ce == null || ce(!1), Se == null || Se(!1), s == null || s(
|
|
3687
|
+
const ne = (U, q, ie, le) => {
|
|
3688
|
+
ce == null || ce(!1), Se == null || Se(!1), s == null || s(U, q, ie, le), fe == null || fe(U), Ee.current && (F == null || F());
|
|
3689
3689
|
}, Ie = () => {
|
|
3690
3690
|
Ee.current && (F == null || F()), Se == null || Se(!1), o == null || o();
|
|
3691
|
-
}, Ue = (
|
|
3692
|
-
Se == null || Se(!1), u == null || u(
|
|
3691
|
+
}, Ue = (U) => {
|
|
3692
|
+
Se == null || Se(!1), u == null || u(U);
|
|
3693
3693
|
};
|
|
3694
3694
|
function me() {
|
|
3695
3695
|
return r || _.current;
|
|
@@ -3698,28 +3698,28 @@ function kd(e, t) {
|
|
|
3698
3698
|
return $;
|
|
3699
3699
|
}
|
|
3700
3700
|
function N() {
|
|
3701
|
-
const
|
|
3701
|
+
const U = {
|
|
3702
3702
|
...Ke($),
|
|
3703
3703
|
..._e()
|
|
3704
3704
|
};
|
|
3705
|
-
for (const q in
|
|
3706
|
-
|
|
3707
|
-
return
|
|
3705
|
+
for (const q in U)
|
|
3706
|
+
U[q] === void 0 && delete U[q];
|
|
3707
|
+
return U;
|
|
3708
3708
|
}
|
|
3709
3709
|
function ee() {
|
|
3710
|
-
const
|
|
3711
|
-
return Object.keys(
|
|
3712
|
-
const Oe =
|
|
3710
|
+
const U = N(), q = Qe(), ie = {};
|
|
3711
|
+
return Object.keys(U).forEach((le) => {
|
|
3712
|
+
const Oe = U[le];
|
|
3713
3713
|
q[le] && q[le].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? ie[le] = Oe[0] : q[le] && (q[le].type === "one2many" || q[le].type === "many2many") && Oe && Oe.items ? ie[le] = Oe.items.filter((ze) => ze.operation !== "pendingRemove").map((ze) => ze.id) : ie[le] = Oe;
|
|
3714
3714
|
}), ie;
|
|
3715
3715
|
}
|
|
3716
3716
|
function ge() {
|
|
3717
|
-
const
|
|
3717
|
+
const U = {
|
|
3718
3718
|
...Ke($)
|
|
3719
3719
|
};
|
|
3720
|
-
for (const q in
|
|
3721
|
-
|
|
3722
|
-
return
|
|
3720
|
+
for (const q in U)
|
|
3721
|
+
U[q] === void 0 && delete U[q];
|
|
3722
|
+
return U;
|
|
3723
3723
|
}
|
|
3724
3724
|
function pe() {
|
|
3725
3725
|
return { ...g, ...D == null ? void 0 : D.context };
|
|
@@ -3736,11 +3736,11 @@ function kd(e, t) {
|
|
|
3736
3736
|
...$e
|
|
3737
3737
|
};
|
|
3738
3738
|
}
|
|
3739
|
-
const lt = async (
|
|
3739
|
+
const lt = async (U) => {
|
|
3740
3740
|
const q = me() ? D == null ? void 0 : D.context : {};
|
|
3741
3741
|
return await k.getHandler().defaultGet({
|
|
3742
3742
|
model: n,
|
|
3743
|
-
fields:
|
|
3743
|
+
fields: U,
|
|
3744
3744
|
context: { ...g, ...q },
|
|
3745
3745
|
extraValues: b
|
|
3746
3746
|
});
|
|
@@ -3750,19 +3750,19 @@ function kd(e, t) {
|
|
|
3750
3750
|
target: Ke($),
|
|
3751
3751
|
fields: $
|
|
3752
3752
|
})
|
|
3753
|
-
).length !== 0, Ke = (
|
|
3753
|
+
).length !== 0, Ke = (U) => {
|
|
3754
3754
|
const q = W.getFieldsValue(!0);
|
|
3755
|
-
return Ut(q,
|
|
3756
|
-
}, ct = (
|
|
3755
|
+
return Ut(q, U);
|
|
3756
|
+
}, ct = (U, q) => {
|
|
3757
3757
|
un({
|
|
3758
3758
|
values: {
|
|
3759
3759
|
...Ut(W.getFieldsValue(!0), $),
|
|
3760
|
-
[
|
|
3760
|
+
[U]: q
|
|
3761
3761
|
},
|
|
3762
3762
|
fields: $,
|
|
3763
3763
|
reset: !1
|
|
3764
3764
|
});
|
|
3765
|
-
}, Rt = (
|
|
3765
|
+
}, Rt = (U) => W.getFieldsValue(!0)[U];
|
|
3766
3766
|
async function Ct() {
|
|
3767
3767
|
try {
|
|
3768
3768
|
return await W.validateFields(), !1;
|
|
@@ -3772,10 +3772,10 @@ function kd(e, t) {
|
|
|
3772
3772
|
}
|
|
3773
3773
|
const Le = async () => {
|
|
3774
3774
|
P(void 0), we == null || we(!0);
|
|
3775
|
-
let
|
|
3775
|
+
let U;
|
|
3776
3776
|
try {
|
|
3777
|
-
m ?
|
|
3778
|
-
const { fields: q, arch: ie } =
|
|
3777
|
+
m ? U = { arch: m.arch, fields: m.fields } : U = await ca();
|
|
3778
|
+
const { fields: q, arch: ie } = U;
|
|
3779
3779
|
Q(q), M(ie), await qe({
|
|
3780
3780
|
fields: q,
|
|
3781
3781
|
arch: ie
|
|
@@ -3783,9 +3783,9 @@ function kd(e, t) {
|
|
|
3783
3783
|
} catch (q) {
|
|
3784
3784
|
P(q != null && q.message ? q.message + q.stack : q), we == null || we(!1);
|
|
3785
3785
|
}
|
|
3786
|
-
}, qe = async (
|
|
3786
|
+
}, qe = async (U) => {
|
|
3787
3787
|
let q, ie, le, Oe;
|
|
3788
|
-
we == null || we(!0), P(void 0),
|
|
3788
|
+
we == null || we(!0), P(void 0), U != null && U.fields ? (ie = U.fields, le = U.arch) : (ie = $, le = G), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: Oe } = await da({
|
|
3789
3789
|
fields: ie,
|
|
3790
3790
|
arch: le
|
|
3791
3791
|
}), w && (q = { ...ud(w), ...q }), J.current = Ut(q, ie), un({
|
|
@@ -3793,22 +3793,22 @@ function kd(e, t) {
|
|
|
3793
3793
|
fields: ie,
|
|
3794
3794
|
reset: !0,
|
|
3795
3795
|
isDefaultGet: Oe
|
|
3796
|
-
}), fn({ fields: ie, arch: le, values: q }), we == null || we(!1), ce == null || ce(!1), Oe &&
|
|
3797
|
-
}, rt = async () => new Promise(async (
|
|
3796
|
+
}), fn({ fields: ie, arch: le, values: q }), we == null || we(!1), ce == null || ce(!1), Oe && H(!0);
|
|
3797
|
+
}, rt = async () => new Promise(async (U) => {
|
|
3798
3798
|
nt() ? sn({
|
|
3799
3799
|
t: O,
|
|
3800
3800
|
onOk: () => {
|
|
3801
|
-
Ie == null || Ie(),
|
|
3801
|
+
Ie == null || Ie(), U(!0);
|
|
3802
3802
|
},
|
|
3803
3803
|
onCancel: () => {
|
|
3804
|
-
|
|
3804
|
+
U(!1);
|
|
3805
3805
|
}
|
|
3806
|
-
}) : (Ie == null || Ie(),
|
|
3806
|
+
}) : (Ie == null || Ie(), U(!0));
|
|
3807
3807
|
}), ca = async () => {
|
|
3808
3808
|
if (l) {
|
|
3809
|
-
const
|
|
3809
|
+
const U = await k.getHandler().getActionStringForModel(n);
|
|
3810
3810
|
return (await k.getHandler().getViewsForAction({
|
|
3811
|
-
action:
|
|
3811
|
+
action: U,
|
|
3812
3812
|
context: g
|
|
3813
3813
|
})).views.get("form");
|
|
3814
3814
|
}
|
|
@@ -3818,12 +3818,12 @@ function kd(e, t) {
|
|
|
3818
3818
|
context: g
|
|
3819
3819
|
});
|
|
3820
3820
|
}, un = ({
|
|
3821
|
-
values:
|
|
3821
|
+
values: U,
|
|
3822
3822
|
fields: q,
|
|
3823
3823
|
reset: ie,
|
|
3824
3824
|
isDefaultGet: le = !1
|
|
3825
3825
|
}) => {
|
|
3826
|
-
const ze = { ...ie ? {} : W.getFieldsValue(!0), ...
|
|
3826
|
+
const ze = { ...ie ? {} : W.getFieldsValue(!0), ...U }, tr = Ut(ze, q), Ca = Object.keys(q).map((nr) => {
|
|
3827
3827
|
const xa = tr[nr] !== void 0 ? tr[nr] : void 0;
|
|
3828
3828
|
return {
|
|
3829
3829
|
name: nr,
|
|
@@ -3833,20 +3833,20 @@ function kd(e, t) {
|
|
|
3833
3833
|
});
|
|
3834
3834
|
le || (K.current = tr), W.setFields(Ca);
|
|
3835
3835
|
}, da = async ({
|
|
3836
|
-
fields:
|
|
3836
|
+
fields: U,
|
|
3837
3837
|
arch: q
|
|
3838
3838
|
}) => {
|
|
3839
3839
|
let ie = {}, le = !1;
|
|
3840
3840
|
if (me()) {
|
|
3841
3841
|
const Oe = D || ho({
|
|
3842
3842
|
arch: q,
|
|
3843
|
-
fields:
|
|
3843
|
+
fields: U,
|
|
3844
3844
|
values: {}
|
|
3845
3845
|
});
|
|
3846
3846
|
if (ie = (await k.getHandler().readObjects({
|
|
3847
3847
|
model: n,
|
|
3848
3848
|
ids: [me()],
|
|
3849
|
-
fields: Ed(
|
|
3849
|
+
fields: Ed(U, Oe == null ? void 0 : Oe.contextForFields),
|
|
3850
3850
|
context: g
|
|
3851
3851
|
}))[0], v)
|
|
3852
3852
|
return { values: ie, defaultGetCalled: le };
|
|
@@ -3861,10 +3861,10 @@ function kd(e, t) {
|
|
|
3861
3861
|
});
|
|
3862
3862
|
Pe == null || Pe(ze);
|
|
3863
3863
|
} else
|
|
3864
|
-
Pe == null || Pe([]), ie = await lt(
|
|
3864
|
+
Pe == null || Pe([]), ie = await lt(U), le = !0;
|
|
3865
3865
|
return { values: ie, defaultGetCalled: le };
|
|
3866
|
-
}, po = async (
|
|
3867
|
-
const { callOnSubmitSucceed: q = !0 } =
|
|
3866
|
+
}, po = async (U) => {
|
|
3867
|
+
const { callOnSubmitSucceed: q = !0 } = U || {};
|
|
3868
3868
|
if (me()) {
|
|
3869
3869
|
const ie = ir({
|
|
3870
3870
|
source: J.current,
|
|
@@ -3894,12 +3894,12 @@ function kd(e, t) {
|
|
|
3894
3894
|
_.current = le, J.current = ie;
|
|
3895
3895
|
}
|
|
3896
3896
|
y && await y([me()]), !v && q && (ne == null || ne(me(), N(), ge()));
|
|
3897
|
-
}, ua = async (
|
|
3898
|
-
const { callOnSubmitSucceed: q = !0 } =
|
|
3897
|
+
}, ua = async (U) => {
|
|
3898
|
+
const { callOnSubmitSucceed: q = !0 } = U || {};
|
|
3899
3899
|
!v && q && (ne == null || ne(me(), N(), ge()));
|
|
3900
|
-
}, On = async (
|
|
3900
|
+
}, On = async (U) => {
|
|
3901
3901
|
let q = !1;
|
|
3902
|
-
const { callOnSubmitSucceed: ie = !0 } =
|
|
3902
|
+
const { callOnSubmitSucceed: ie = !0 } = U || {};
|
|
3903
3903
|
if (oe.current = !0, P(void 0), Y.current && !nt() && me() && ie) {
|
|
3904
3904
|
oe.current = !1, ce == null || ce(!1), ne == null || ne(
|
|
3905
3905
|
me(),
|
|
@@ -3916,7 +3916,7 @@ function kd(e, t) {
|
|
|
3916
3916
|
return oe.current = !1, $o(O), { succeed: !1, id: me() };
|
|
3917
3917
|
A(!0), Se == null || Se(!0);
|
|
3918
3918
|
try {
|
|
3919
|
-
p === "api" ? await po(
|
|
3919
|
+
p === "api" ? await po(U) : await ua(U), d && (_.current = void 0, un({ values: {}, fields: $, reset: !0 })), await qe({ forceRefresh: !0 }), q = !0, rr.success(O("savedRegisters"));
|
|
3920
3920
|
} catch (le) {
|
|
3921
3921
|
oe.current = !1, A(!1), Se == null || Se(!1), Ue == null || Ue(le), rr.error(O("errorWhileSavingForm")), P(le != null && le.message ? le.message : le);
|
|
3922
3922
|
} finally {
|
|
@@ -3924,12 +3924,12 @@ function kd(e, t) {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
return { succeed: q, id: me() };
|
|
3926
3926
|
}, ho = ({
|
|
3927
|
-
fields:
|
|
3927
|
+
fields: U,
|
|
3928
3928
|
arch: q,
|
|
3929
3929
|
values: ie,
|
|
3930
3930
|
operationInProgress: le = !1
|
|
3931
3931
|
}) => {
|
|
3932
|
-
const Oe = new Ri(
|
|
3932
|
+
const Oe = new Ri(U);
|
|
3933
3933
|
return Oe.parse(q, {
|
|
3934
3934
|
readOnly: f || le,
|
|
3935
3935
|
values: xc(
|
|
@@ -3937,11 +3937,11 @@ function kd(e, t) {
|
|
|
3937
3937
|
...ie,
|
|
3938
3938
|
..._e()
|
|
3939
3939
|
},
|
|
3940
|
-
|
|
3940
|
+
U
|
|
3941
3941
|
)
|
|
3942
3942
|
}), Oe;
|
|
3943
3943
|
}, fn = ({
|
|
3944
|
-
fields:
|
|
3944
|
+
fields: U,
|
|
3945
3945
|
arch: q,
|
|
3946
3946
|
values: ie,
|
|
3947
3947
|
operationInProgress: le = !1
|
|
@@ -3949,13 +3949,13 @@ function kd(e, t) {
|
|
|
3949
3949
|
var ze;
|
|
3950
3950
|
const Oe = ho({
|
|
3951
3951
|
arch: q,
|
|
3952
|
-
fields:
|
|
3952
|
+
fields: U,
|
|
3953
3953
|
values: ie,
|
|
3954
3954
|
operationInProgress: le
|
|
3955
3955
|
});
|
|
3956
3956
|
L(Oe), Oe.string && Oe.string !== z && (Te == null || Te(Oe.string)), re && Oe.string && ((ze = re.setTitle) == null || ze.call(re, Oe.string));
|
|
3957
3957
|
}, Zn = async ({
|
|
3958
|
-
elementHasLostFocus:
|
|
3958
|
+
elementHasLostFocus: U = !1
|
|
3959
3959
|
}) => {
|
|
3960
3960
|
if (oe.current)
|
|
3961
3961
|
return;
|
|
@@ -3978,21 +3978,21 @@ function kd(e, t) {
|
|
|
3978
3978
|
"integer",
|
|
3979
3979
|
"many2one"
|
|
3980
3980
|
]
|
|
3981
|
-
}) &&
|
|
3981
|
+
}) && U !== !0)) {
|
|
3982
3982
|
const le = Ut(W.getFieldsValue(!0), $);
|
|
3983
3983
|
K.current = le, c == null || c(le), ce == null || ce(!0), ma(ie);
|
|
3984
3984
|
}
|
|
3985
|
-
}, fa = ul(Zn, 100), ma = async (
|
|
3985
|
+
}, fa = ul(Zn, 100), ma = async (U) => {
|
|
3986
3986
|
try {
|
|
3987
|
-
for (let q = 0; q <
|
|
3988
|
-
const ie =
|
|
3987
|
+
for (let q = 0; q < U.length; q += 1) {
|
|
3988
|
+
const ie = U[q];
|
|
3989
3989
|
await pa(ie);
|
|
3990
3990
|
}
|
|
3991
3991
|
} catch (q) {
|
|
3992
3992
|
ot(q);
|
|
3993
3993
|
}
|
|
3994
|
-
}, pa = async (
|
|
3995
|
-
const q = D == null ? void 0 : D.onChangeFields[
|
|
3994
|
+
}, pa = async (U) => {
|
|
3995
|
+
const q = D == null ? void 0 : D.onChangeFields[U];
|
|
3996
3996
|
if (!q) {
|
|
3997
3997
|
fn({
|
|
3998
3998
|
fields: $,
|
|
@@ -4055,12 +4055,12 @@ function kd(e, t) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
};
|
|
4057
4057
|
async function ha({
|
|
4058
|
-
action:
|
|
4058
|
+
action: U,
|
|
4059
4059
|
context: q
|
|
4060
4060
|
}) {
|
|
4061
4061
|
const ie = await k.getHandler().execute({
|
|
4062
4062
|
model: n,
|
|
4063
|
-
action:
|
|
4063
|
+
action: U,
|
|
4064
4064
|
payload: [me()],
|
|
4065
4065
|
context: {
|
|
4066
4066
|
...D == null ? void 0 : D.context,
|
|
@@ -4085,31 +4085,31 @@ function kd(e, t) {
|
|
|
4085
4085
|
} else
|
|
4086
4086
|
await qe({ forceRefresh: !0 });
|
|
4087
4087
|
}
|
|
4088
|
-
async function ga({ action:
|
|
4088
|
+
async function ga({ action: U }) {
|
|
4089
4089
|
const q = await k.getHandler().executeWorkflow({
|
|
4090
4090
|
model: n,
|
|
4091
|
-
action:
|
|
4091
|
+
action: U,
|
|
4092
4092
|
payload: me()
|
|
4093
4093
|
});
|
|
4094
4094
|
q.type && q.type === "ir.actions.act_window_close" ? ne == null || ne(me(), N(), ge()) : await qe({ forceRefresh: !0 });
|
|
4095
4095
|
}
|
|
4096
4096
|
async function ya({
|
|
4097
|
-
action:
|
|
4097
|
+
action: U,
|
|
4098
4098
|
context: q
|
|
4099
4099
|
}) {
|
|
4100
4100
|
const ie = (await k.getHandler().readObjects({
|
|
4101
4101
|
model: "ir.actions.actions",
|
|
4102
|
-
ids: [parseInt(
|
|
4102
|
+
ids: [parseInt(U)],
|
|
4103
4103
|
context: g
|
|
4104
4104
|
}))[0];
|
|
4105
4105
|
await go({ actionData: ie, context: q });
|
|
4106
4106
|
}
|
|
4107
4107
|
async function go({
|
|
4108
|
-
actionData:
|
|
4108
|
+
actionData: U,
|
|
4109
4109
|
context: q
|
|
4110
4110
|
}) {
|
|
4111
4111
|
const { closeParent: ie } = await (Be == null ? void 0 : Be({
|
|
4112
|
-
actionData:
|
|
4112
|
+
actionData: U,
|
|
4113
4113
|
fields: $,
|
|
4114
4114
|
values: N(),
|
|
4115
4115
|
context: {
|
|
@@ -4126,20 +4126,20 @@ function kd(e, t) {
|
|
|
4126
4126
|
function va() {
|
|
4127
4127
|
Zn({ elementHasLostFocus: !0 });
|
|
4128
4128
|
}
|
|
4129
|
-
function er(
|
|
4129
|
+
function er(U) {
|
|
4130
4130
|
fn({
|
|
4131
4131
|
fields: $,
|
|
4132
4132
|
arch: G,
|
|
4133
4133
|
values: Ke($),
|
|
4134
|
-
operationInProgress:
|
|
4134
|
+
operationInProgress: U
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
4137
|
async function wa({
|
|
4138
|
-
type:
|
|
4138
|
+
type: U,
|
|
4139
4139
|
action: q,
|
|
4140
4140
|
context: ie
|
|
4141
4141
|
}) {
|
|
4142
|
-
if (
|
|
4142
|
+
if (U === "cancel") {
|
|
4143
4143
|
Ie == null || Ie();
|
|
4144
4144
|
return;
|
|
4145
4145
|
}
|
|
@@ -4151,7 +4151,7 @@ function kd(e, t) {
|
|
|
4151
4151
|
try {
|
|
4152
4152
|
!f && (nt() || me() === void 0) && (le = !0, er(!0), p === "2many" ? (await po({ callOnSubmitSucceed: !1 }), Y.current = !0) : await On({ callOnSubmitSucceed: !1 }));
|
|
4153
4153
|
const Oe = Y.current ? Ae() : {}, ze = { ...ie, ...Oe };
|
|
4154
|
-
|
|
4154
|
+
U === "object" ? await ha({ action: q, context: ze }) : U === "workflow" ? await ga({ action: q }) : U === "action" && await ya({ action: q, context: ze }), le && er(!1);
|
|
4155
4155
|
} catch (Oe) {
|
|
4156
4156
|
le && er(!1), ot(Oe);
|
|
4157
4157
|
}
|
|
@@ -4225,11 +4225,11 @@ function kd(e, t) {
|
|
|
4225
4225
|
zr,
|
|
4226
4226
|
{
|
|
4227
4227
|
bounds: !0,
|
|
4228
|
-
onResize: (
|
|
4228
|
+
onResize: (U) => {
|
|
4229
4229
|
var q;
|
|
4230
|
-
j((q =
|
|
4230
|
+
j((q = U.bounds) == null ? void 0 : q.width);
|
|
4231
4231
|
},
|
|
4232
|
-
children: ({ measureRef:
|
|
4232
|
+
children: ({ measureRef: U }) => /* @__PURE__ */ E("div", { className: "pb-2", ref: U, children: [
|
|
4233
4233
|
R && /* @__PURE__ */ i(es, { className: "mt-5 mb-10", error: R }),
|
|
4234
4234
|
ba(),
|
|
4235
4235
|
a && Sa()
|
|
@@ -5396,18 +5396,18 @@ const du = (e) => /* @__PURE__ */ i(Re, { ...e, children: /* @__PURE__ */ i(ps,
|
|
|
5396
5396
|
const ue = oe.reduce((ve, Ve) => Ve[Y.field] && !isNaN(Ve[Y.field]) ? ve + Ve[Y.field] : ve, 0);
|
|
5397
5397
|
he.push(`${Y.label}: ${Math.round(ue * 100) / 100}`);
|
|
5398
5398
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: he.join(", ") });
|
|
5399
|
-
}, [O, d, R]),
|
|
5399
|
+
}, [O, d, R]), H = be(() => {
|
|
5400
5400
|
if (R !== null && $ && $.length > 0)
|
|
5401
5401
|
return su($, O, 600);
|
|
5402
5402
|
}, [$, O, R]), _ = be(() => h && (R != null && R.columns.some((K) => K.sum !== void 0)) ? h - 30 : h, [h, R == null ? void 0 : R.columns]);
|
|
5403
|
-
return R === null || !
|
|
5403
|
+
return R === null || !H || ((J = H == null ? void 0 : H.columns) == null ? void 0 : J.length) === 0 ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : /* @__PURE__ */ E(Vn, { children: [
|
|
5404
5404
|
j,
|
|
5405
5405
|
/* @__PURE__ */ i(
|
|
5406
5406
|
Tl,
|
|
5407
5407
|
{
|
|
5408
5408
|
ref: F,
|
|
5409
5409
|
height: _,
|
|
5410
|
-
columns:
|
|
5410
|
+
columns: H.columns,
|
|
5411
5411
|
dataSource: O,
|
|
5412
5412
|
loading: c,
|
|
5413
5413
|
loadingComponent: /* @__PURE__ */ i(He, {}),
|
|
@@ -5465,7 +5465,7 @@ const ys = (e) => {
|
|
|
5465
5465
|
searchParams: S = [],
|
|
5466
5466
|
setSearchValues: x,
|
|
5467
5467
|
clearSelection: F
|
|
5468
|
-
} = e, [O, V] = C(!1), [A, R] = C(!1), [P, D] = C(), [L, W] = C(1), [G, M] = C(0), [$, Q] = C(), [re, Z] = C([]), [j, se] = C(void 0), [
|
|
5468
|
+
} = e, [O, V] = C(!1), [A, R] = C(!1), [P, D] = C(), [L, W] = C(1), [G, M] = C(0), [$, Q] = C(), [re, Z] = C([]), [j, se] = C(void 0), [H, _] = C(void 0), J = X(I || kt), K = X([]), he = B(
|
|
5469
5469
|
(ce) => {
|
|
5470
5470
|
v == null || v([...ce]), Z([...ce]);
|
|
5471
5471
|
},
|
|
@@ -5659,7 +5659,7 @@ const ys = (e) => {
|
|
|
5659
5659
|
changeSort: Ve,
|
|
5660
5660
|
fetchChildrenForRecord: Ge,
|
|
5661
5661
|
colorsForResults: j,
|
|
5662
|
-
statusForResults:
|
|
5662
|
+
statusForResults: H,
|
|
5663
5663
|
totalItems: $,
|
|
5664
5664
|
getAllIds: Se
|
|
5665
5665
|
};
|
|
@@ -5690,7 +5690,7 @@ function Du(e, t) {
|
|
|
5690
5690
|
selectedRowItems: Z = void 0,
|
|
5691
5691
|
setSelectedRowItems: j = void 0,
|
|
5692
5692
|
searchParams: se = [],
|
|
5693
|
-
setSearchParams:
|
|
5693
|
+
setSearchParams: H = void 0,
|
|
5694
5694
|
searchVisible: _ = !0,
|
|
5695
5695
|
setSearchVisible: J = void 0,
|
|
5696
5696
|
sorter: K = void 0,
|
|
@@ -5729,7 +5729,7 @@ function Du(e, t) {
|
|
|
5729
5729
|
model: T,
|
|
5730
5730
|
setSearchTreeNameSearch: Y,
|
|
5731
5731
|
setSelectedRowItems: Ee,
|
|
5732
|
-
setSearchParams:
|
|
5732
|
+
setSearchParams: H,
|
|
5733
5733
|
setSearchValues: Ve,
|
|
5734
5734
|
searchParams: se,
|
|
5735
5735
|
setSearchVisible: J,
|
|
@@ -6484,7 +6484,7 @@ const Uu = (e) => {
|
|
|
6484
6484
|
fetchValues: v
|
|
6485
6485
|
} = f || {}, { t: g } = ye(), [w, T] = C(!1), [I, b] = C(!1), [S, x] = C(), [F, O] = C(!1), [V, A] = C(!1), [R, P] = C(), [D, L] = C([]), [W, G] = C(!1), M = X([]), [$, Q] = C(), re = X(), [Z, j] = C(void 0), {
|
|
6486
6486
|
readOnly: se,
|
|
6487
|
-
relation:
|
|
6487
|
+
relation: H,
|
|
6488
6488
|
context: _,
|
|
6489
6489
|
domain: J
|
|
6490
6490
|
} = r, K = r.type === "many2many", { id: he } = r, oe = s.filter(
|
|
@@ -6523,7 +6523,7 @@ const Uu = (e) => {
|
|
|
6523
6523
|
formView: {
|
|
6524
6524
|
fields: ((pe = o.get("form")) == null ? void 0 : pe.fields) || {}
|
|
6525
6525
|
},
|
|
6526
|
-
model:
|
|
6526
|
+
model: H,
|
|
6527
6527
|
items: s,
|
|
6528
6528
|
context: { ...m == null ? void 0 : m(), ..._ },
|
|
6529
6529
|
currentView: N || a
|
|
@@ -6567,12 +6567,12 @@ const Uu = (e) => {
|
|
|
6567
6567
|
}) : u(c + 1));
|
|
6568
6568
|
}, ce = async () => {
|
|
6569
6569
|
const N = oe[c].id, ee = (await k.getHandler().readObjects({
|
|
6570
|
-
model:
|
|
6570
|
+
model: H,
|
|
6571
6571
|
ids: [N],
|
|
6572
6572
|
fields: o.get("form").fields,
|
|
6573
6573
|
context: { ...m == null ? void 0 : m(), ..._ }
|
|
6574
6574
|
}))[0], ge = (await k.getHandler().readObjects({
|
|
6575
|
-
model:
|
|
6575
|
+
model: H,
|
|
6576
6576
|
ids: [N],
|
|
6577
6577
|
fields: o.get("tree").fields,
|
|
6578
6578
|
context: { ...m == null ? void 0 : m(), ..._ }
|
|
@@ -6683,12 +6683,12 @@ const Uu = (e) => {
|
|
|
6683
6683
|
try {
|
|
6684
6684
|
for (const pe of ge) {
|
|
6685
6685
|
const Ae = (await k.getHandler().readObjects({
|
|
6686
|
-
model:
|
|
6686
|
+
model: H,
|
|
6687
6687
|
ids: [pe],
|
|
6688
6688
|
fields: o.get("form").fields,
|
|
6689
6689
|
context: { ...m == null ? void 0 : m(), ..._ }
|
|
6690
6690
|
}))[0], _e = (await k.getHandler().readObjects({
|
|
6691
|
-
model:
|
|
6691
|
+
model: H,
|
|
6692
6692
|
ids: [pe],
|
|
6693
6693
|
fields: o.get("tree").fields,
|
|
6694
6694
|
context: { ...m == null ? void 0 : m(), ..._ }
|
|
@@ -6725,7 +6725,7 @@ const Uu = (e) => {
|
|
|
6725
6725
|
formView: o.get("form"),
|
|
6726
6726
|
values: (ee = oe[c]) == null ? void 0 : ee.values,
|
|
6727
6727
|
parentContext: { ...m == null ? void 0 : m(), ..._ },
|
|
6728
|
-
model:
|
|
6728
|
+
model: H,
|
|
6729
6729
|
id: (ge = oe[c]) == null ? void 0 : ge.id,
|
|
6730
6730
|
submitMode: "values",
|
|
6731
6731
|
onFieldsChange: (_e) => {
|
|
@@ -6814,7 +6814,7 @@ const Uu = (e) => {
|
|
|
6814
6814
|
cn,
|
|
6815
6815
|
{
|
|
6816
6816
|
formView: o.get("form"),
|
|
6817
|
-
model:
|
|
6817
|
+
model: H,
|
|
6818
6818
|
id: R == null ? void 0 : R.id,
|
|
6819
6819
|
submitMode: "2many",
|
|
6820
6820
|
values: R == null ? void 0 : R.values,
|
|
@@ -6836,7 +6836,7 @@ const Uu = (e) => {
|
|
|
6836
6836
|
so,
|
|
6837
6837
|
{
|
|
6838
6838
|
domain: M.current,
|
|
6839
|
-
model:
|
|
6839
|
+
model: H,
|
|
6840
6840
|
context: { ...m == null ? void 0 : m(), ..._ },
|
|
6841
6841
|
visible: V,
|
|
6842
6842
|
onSelectValues: async (N) => {
|
|
@@ -7336,8 +7336,10 @@ const Xu = ({
|
|
|
7336
7336
|
}, As = (e) => {
|
|
7337
7337
|
const [t, n] = C(!0), r = X(void 0), { getColumnState: o, updateColumnState: s } = tf(e);
|
|
7338
7338
|
return de(() => {
|
|
7339
|
-
if (!e)
|
|
7339
|
+
if (!e) {
|
|
7340
|
+
n(!1);
|
|
7340
7341
|
return;
|
|
7342
|
+
}
|
|
7341
7343
|
(async () => {
|
|
7342
7344
|
n(!0);
|
|
7343
7345
|
try {
|
|
@@ -7397,15 +7399,15 @@ const Xu = ({
|
|
|
7397
7399
|
const { results: Z, colors: j, status: se } = await a({
|
|
7398
7400
|
idsToFetch: Q,
|
|
7399
7401
|
sortFields: W
|
|
7400
|
-
}),
|
|
7402
|
+
}), H = zn(o, Z), _ = $.map((J) => {
|
|
7401
7403
|
var he;
|
|
7402
|
-
const K =
|
|
7404
|
+
const K = H.find((oe) => oe.id === J);
|
|
7403
7405
|
return K || ((he = G.find((oe) => oe.id === J)) == null ? void 0 : he.treeValues);
|
|
7404
7406
|
});
|
|
7405
7407
|
return _.sort((J, K) => {
|
|
7406
|
-
const he =
|
|
7408
|
+
const he = H.findIndex(
|
|
7407
7409
|
(Y) => Y.id === J.id
|
|
7408
|
-
), oe =
|
|
7410
|
+
), oe = H.findIndex(
|
|
7409
7411
|
(Y) => Y.id === K.id
|
|
7410
7412
|
);
|
|
7411
7413
|
return he - oe;
|
|
@@ -7604,7 +7606,7 @@ const Xu = ({
|
|
|
7604
7606
|
triggerChange: $
|
|
7605
7607
|
}), {
|
|
7606
7608
|
showFormModal: se,
|
|
7607
|
-
modalItem:
|
|
7609
|
+
modalItem: H,
|
|
7608
7610
|
continuousEntryMode: _,
|
|
7609
7611
|
onCancelFormModal: J,
|
|
7610
7612
|
onFormModalSubmitSucceed: K,
|
|
@@ -7733,10 +7735,10 @@ const Xu = ({
|
|
|
7733
7735
|
{
|
|
7734
7736
|
formView: s.get("form"),
|
|
7735
7737
|
model: h,
|
|
7736
|
-
id:
|
|
7738
|
+
id: H == null ? void 0 : H.id,
|
|
7737
7739
|
submitMode: "2many",
|
|
7738
|
-
values:
|
|
7739
|
-
defaultValues:
|
|
7740
|
+
values: H == null ? void 0 : H.values,
|
|
7741
|
+
defaultValues: H == null ? void 0 : H.defaultValues,
|
|
7740
7742
|
visible: se,
|
|
7741
7743
|
onSubmitSucceed: K,
|
|
7742
7744
|
parentContext: x,
|
|
@@ -8925,7 +8927,7 @@ function Hf({ toolbar: e }) {
|
|
|
8925
8927
|
context: O.current.getContext()
|
|
8926
8928
|
});
|
|
8927
8929
|
const j = h == null ? void 0 : h.filter(
|
|
8928
|
-
(
|
|
8930
|
+
(H) => H.id !== p
|
|
8929
8931
|
);
|
|
8930
8932
|
S == null || S(j);
|
|
8931
8933
|
const se = Math.max(0, (y || 0) - 1);
|
|
@@ -9787,13 +9789,13 @@ function em(e) {
|
|
|
9787
9789
|
});
|
|
9788
9790
|
}
|
|
9789
9791
|
async function re() {
|
|
9790
|
-
var
|
|
9792
|
+
var H;
|
|
9791
9793
|
try {
|
|
9792
9794
|
s == null || s(!0), await k.getHandler().deleteObjects({
|
|
9793
9795
|
model: u,
|
|
9794
9796
|
ids: o.map((_) => _.id),
|
|
9795
9797
|
context: { ...O }
|
|
9796
|
-
}), d == null || d(void 0), p == null || p(void 0), (
|
|
9798
|
+
}), d == null || d(void 0), p == null || p(void 0), (H = f == null ? void 0 : f.current) == null || H.refreshResults();
|
|
9797
9799
|
} catch (_) {
|
|
9798
9800
|
ot(_);
|
|
9799
9801
|
} finally {
|
|
@@ -9801,7 +9803,7 @@ function em(e) {
|
|
|
9801
9803
|
}
|
|
9802
9804
|
}
|
|
9803
9805
|
async function Z() {
|
|
9804
|
-
var
|
|
9806
|
+
var H;
|
|
9805
9807
|
try {
|
|
9806
9808
|
c == null || c(!0);
|
|
9807
9809
|
const _ = o[0].id;
|
|
@@ -9809,16 +9811,16 @@ function em(e) {
|
|
|
9809
9811
|
id: _,
|
|
9810
9812
|
model: u,
|
|
9811
9813
|
context: { ...O }
|
|
9812
|
-
}) && ((
|
|
9814
|
+
}) && ((H = f == null ? void 0 : f.current) == null || H.refreshResults());
|
|
9813
9815
|
} catch (_) {
|
|
9814
9816
|
ot(_);
|
|
9815
9817
|
} finally {
|
|
9816
9818
|
c == null || c(!1);
|
|
9817
9819
|
}
|
|
9818
9820
|
}
|
|
9819
|
-
function j(
|
|
9821
|
+
function j(H) {
|
|
9820
9822
|
L == null || L({
|
|
9821
|
-
actionData:
|
|
9823
|
+
actionData: H,
|
|
9822
9824
|
values: {
|
|
9823
9825
|
active_id: o == null ? void 0 : o.map((_) => _.id)[0],
|
|
9824
9826
|
active_ids: o == null ? void 0 : o.map((_) => _.id)
|
|
@@ -9847,9 +9849,9 @@ function em(e) {
|
|
|
9847
9849
|
{
|
|
9848
9850
|
disabled: l || a || w,
|
|
9849
9851
|
searchText: g,
|
|
9850
|
-
onSearch: (
|
|
9852
|
+
onSearch: (H) => {
|
|
9851
9853
|
var _;
|
|
9852
|
-
|
|
9854
|
+
H && H.trim().length > 0 ? v == null || v(H) : (v == null || v(void 0), (_ = f == null ? void 0 : f.current) == null || _.refreshResults());
|
|
9853
9855
|
}
|
|
9854
9856
|
}
|
|
9855
9857
|
),
|
|
@@ -9915,8 +9917,8 @@ function em(e) {
|
|
|
9915
9917
|
disabled: l || a || w,
|
|
9916
9918
|
loading: !1,
|
|
9917
9919
|
onClick: () => {
|
|
9918
|
-
var
|
|
9919
|
-
(
|
|
9920
|
+
var H;
|
|
9921
|
+
(H = f == null ? void 0 : f.current) == null || H.refreshResults();
|
|
9920
9922
|
}
|
|
9921
9923
|
}
|
|
9922
9924
|
),
|
|
@@ -9927,8 +9929,8 @@ function em(e) {
|
|
|
9927
9929
|
{
|
|
9928
9930
|
currentView: n,
|
|
9929
9931
|
availableViews: t,
|
|
9930
|
-
onChangeView: (
|
|
9931
|
-
T == null || T(n), r == null || r(
|
|
9932
|
+
onChangeView: (H) => {
|
|
9933
|
+
T == null || T(n), r == null || r(H);
|
|
9932
9934
|
},
|
|
9933
9935
|
previousView: I,
|
|
9934
9936
|
disabled: w
|
|
@@ -9945,8 +9947,8 @@ function em(e) {
|
|
|
9945
9947
|
onRetrieveData: async () => [
|
|
9946
9948
|
{ label: P("actions"), items: A == null ? void 0 : A.action }
|
|
9947
9949
|
],
|
|
9948
|
-
onItemClick: (
|
|
9949
|
-
|
|
9950
|
+
onItemClick: (H) => {
|
|
9951
|
+
H && j(H);
|
|
9950
9952
|
}
|
|
9951
9953
|
}
|
|
9952
9954
|
),
|
|
@@ -9959,11 +9961,11 @@ function em(e) {
|
|
|
9959
9961
|
onRetrieveData: async () => [
|
|
9960
9962
|
{ label: P("reports"), items: A == null ? void 0 : A.print }
|
|
9961
9963
|
],
|
|
9962
|
-
onItemClick: (
|
|
9963
|
-
|
|
9964
|
-
...
|
|
9964
|
+
onItemClick: (H) => {
|
|
9965
|
+
H && j({
|
|
9966
|
+
...H,
|
|
9965
9967
|
datas: {
|
|
9966
|
-
...
|
|
9968
|
+
...H.datas || {},
|
|
9967
9969
|
ids: o.map((_) => _.id)
|
|
9968
9970
|
}
|
|
9969
9971
|
});
|
|
@@ -10017,8 +10019,8 @@ function em(e) {
|
|
|
10017
10019
|
]
|
|
10018
10020
|
}
|
|
10019
10021
|
],
|
|
10020
|
-
onItemClick: (
|
|
10021
|
-
if (
|
|
10022
|
+
onItemClick: (H) => {
|
|
10023
|
+
if (H.id === "print_screen") {
|
|
10022
10024
|
let _ = (o == null ? void 0 : o.map((J) => J.id)) || [];
|
|
10023
10025
|
_.length === 0 && (_ = (b == null ? void 0 : b.map((J) => J.id)) || []), j({
|
|
10024
10026
|
id: -1,
|
|
@@ -10105,10 +10107,7 @@ const tm = ({
|
|
|
10105
10107
|
};
|
|
10106
10108
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
10107
10109
|
}, [e, ...n]), be(() => r, [r]) - t;
|
|
10108
|
-
}, rm = (e) => {
|
|
10109
|
-
if (!(!e.treeViewId || !e.model))
|
|
10110
|
-
return `columnState-${e.treeViewId}-${e.model}`;
|
|
10111
|
-
}, { Text: Ko } = At, om = ({
|
|
10110
|
+
}, rm = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, { Text: Ko } = At, om = ({
|
|
10112
10111
|
totalRows: e,
|
|
10113
10112
|
selectedRowKeys: t,
|
|
10114
10113
|
allRowSelectedMode: n
|
|
@@ -11231,7 +11230,7 @@ function ph(e, t) {
|
|
|
11231
11230
|
setResults: Z,
|
|
11232
11231
|
results: j,
|
|
11233
11232
|
setSearchQuery: se,
|
|
11234
|
-
setTotalItems:
|
|
11233
|
+
setTotalItems: H
|
|
11235
11234
|
} = eo(c), _ = d || Q, J = X(_);
|
|
11236
11235
|
de(() => {
|
|
11237
11236
|
var N, ee;
|
|
@@ -11272,7 +11271,7 @@ function ph(e, t) {
|
|
|
11272
11271
|
const Ae = _ ? a : Ve;
|
|
11273
11272
|
let _e = !1;
|
|
11274
11273
|
const lt = `${JSON.stringify(Ae)}-${_}`;
|
|
11275
|
-
lt !== me.current && (me.current = lt, _e = !0, w(void 0),
|
|
11274
|
+
lt !== me.current && (me.current = lt, _e = !0, w(void 0), H(0));
|
|
11276
11275
|
const nt = Sc(ge), {
|
|
11277
11276
|
totalItems: Ke,
|
|
11278
11277
|
results: ct,
|
|
@@ -11301,10 +11300,10 @@ function ph(e, t) {
|
|
|
11301
11300
|
Z == null || Z(rt);
|
|
11302
11301
|
}
|
|
11303
11302
|
if (Qe.current = nt, ct.length === 0)
|
|
11304
|
-
return y.current = [], w(0),
|
|
11303
|
+
return y.current = [], w(0), H(0), [];
|
|
11305
11304
|
_e && Promise.resolve().then(async () => {
|
|
11306
11305
|
Ke().then((rt) => {
|
|
11307
|
-
w(rt),
|
|
11306
|
+
w(rt), H(rt);
|
|
11308
11307
|
});
|
|
11309
11308
|
});
|
|
11310
11309
|
const Le = zn(K, ct), qe = Xt(Rt);
|
|
@@ -11329,6 +11328,7 @@ function ph(e, t) {
|
|
|
11329
11328
|
u,
|
|
11330
11329
|
Z,
|
|
11331
11330
|
se,
|
|
11331
|
+
H,
|
|
11332
11332
|
K,
|
|
11333
11333
|
S
|
|
11334
11334
|
]
|
|
@@ -11350,12 +11350,12 @@ function ph(e, t) {
|
|
|
11350
11350
|
sortFields: ge
|
|
11351
11351
|
});
|
|
11352
11352
|
} catch (pe) {
|
|
11353
|
-
throw console.error(pe), w(null),
|
|
11353
|
+
throw console.error(pe), w(null), H(0), v(pe), pe;
|
|
11354
11354
|
} finally {
|
|
11355
11355
|
O == null || O(!1);
|
|
11356
11356
|
}
|
|
11357
11357
|
},
|
|
11358
|
-
[Ne,
|
|
11358
|
+
[Ne, H, O, v]
|
|
11359
11359
|
), Ge = B((N) => {
|
|
11360
11360
|
var ee, ge, pe, Ae;
|
|
11361
11361
|
if (p.current[(ge = (ee = N.node) == null ? void 0 : ee.data) == null ? void 0 : ge.id])
|
|
@@ -11525,7 +11525,7 @@ const hh = pt(ph), gh = (e) => {
|
|
|
11525
11525
|
setCurrentView: d,
|
|
11526
11526
|
availableViews: p,
|
|
11527
11527
|
searchTreeNameSearch: h
|
|
11528
|
-
} = e, m = be(() => a != null && a.arch ? Cc(a == null ? void 0 : a.arch, "infinite")
|
|
11528
|
+
} = e, m = be(() => a != null && a.arch ? Cc(a == null ? void 0 : a.arch, "infinite") === "1" : !1, [a]);
|
|
11529
11529
|
de(() => {
|
|
11530
11530
|
g == null || g(m);
|
|
11531
11531
|
}, [m]);
|
|
@@ -11718,7 +11718,7 @@ function Ch(e, t) {
|
|
|
11718
11718
|
limit: v
|
|
11719
11719
|
} = e, [g, w] = C(), [T, I] = C([]), [b, S] = C(!0), x = p || void 0, [F, O] = C(
|
|
11720
11720
|
x
|
|
11721
|
-
), [V, A] = C([]), [R, P] = C(), [D, L] = C([]), [W, G] = C(), [M, $] = C(0), [Q, re] = C(!1), [Z, j] = C(!1), [se,
|
|
11721
|
+
), [V, A] = C([]), [R, P] = C(), [D, L] = C([]), [W, G] = C(), [M, $] = C(0), [Q, re] = C(!1), [Z, j] = C(!1), [se, H] = C(), { t: _ } = ye(), J = X(), K = X(), he = te(
|
|
11722
11722
|
wt
|
|
11723
11723
|
), {
|
|
11724
11724
|
setCurrentView: oe,
|
|
@@ -11993,7 +11993,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
11993
11993
|
setTotalItems: $,
|
|
11994
11994
|
selectedRowItems: V,
|
|
11995
11995
|
setSelectedRowItems: A,
|
|
11996
|
-
setSearchTreeNameSearch:
|
|
11996
|
+
setSearchTreeNameSearch: H,
|
|
11997
11997
|
searchTreeNameSearch: se,
|
|
11998
11998
|
goToResourceId: fe,
|
|
11999
11999
|
limit: v,
|
|
@@ -12076,7 +12076,7 @@ function Oh(e) {
|
|
|
12076
12076
|
re(!1), A(Ee);
|
|
12077
12077
|
const Ge = await Ve();
|
|
12078
12078
|
O(Ge);
|
|
12079
|
-
},
|
|
12079
|
+
}, H = async () => {
|
|
12080
12080
|
try {
|
|
12081
12081
|
re(!0), await se();
|
|
12082
12082
|
} catch (Y) {
|
|
@@ -12084,7 +12084,7 @@ function Oh(e) {
|
|
|
12084
12084
|
}
|
|
12085
12085
|
};
|
|
12086
12086
|
de(() => {
|
|
12087
|
-
f && a &&
|
|
12087
|
+
f && a && H();
|
|
12088
12088
|
}, [w, I, f, a]);
|
|
12089
12089
|
const _ = async (Y) => {
|
|
12090
12090
|
d(!1), u(!0), $(void 0);
|
|
@@ -12314,7 +12314,7 @@ function Fh(e, t) {
|
|
|
12314
12314
|
views: Z,
|
|
12315
12315
|
model: j,
|
|
12316
12316
|
context: se,
|
|
12317
|
-
domain:
|
|
12317
|
+
domain: H,
|
|
12318
12318
|
initialView: _,
|
|
12319
12319
|
limit: J
|
|
12320
12320
|
} = D;
|
|
@@ -12335,19 +12335,19 @@ function Fh(e, t) {
|
|
|
12335
12335
|
)[0][0],
|
|
12336
12336
|
model: j,
|
|
12337
12337
|
context: se,
|
|
12338
|
-
domain:
|
|
12338
|
+
domain: H,
|
|
12339
12339
|
limit: J
|
|
12340
12340
|
},
|
|
12341
12341
|
G
|
|
12342
12342
|
);
|
|
12343
12343
|
} else if ((_ == null ? void 0 : _.type) === "form")
|
|
12344
|
-
he = /* @__PURE__ */ i(Ah, { model: j, actionDomain:
|
|
12344
|
+
he = /* @__PURE__ */ i(Ah, { model: j, actionDomain: H }, G);
|
|
12345
12345
|
else if ((_ == null ? void 0 : _.type) === "tree")
|
|
12346
12346
|
he = /* @__PURE__ */ i(
|
|
12347
12347
|
Ih,
|
|
12348
12348
|
{
|
|
12349
12349
|
model: j,
|
|
12350
|
-
domain:
|
|
12350
|
+
domain: H,
|
|
12351
12351
|
view_id: Z.filter(
|
|
12352
12352
|
(ue) => ue[1] === "tree"
|
|
12353
12353
|
)[0][0],
|
|
@@ -12389,7 +12389,7 @@ function Fh(e, t) {
|
|
|
12389
12389
|
views: Z,
|
|
12390
12390
|
model: j,
|
|
12391
12391
|
context: se,
|
|
12392
|
-
domain:
|
|
12392
|
+
domain: H,
|
|
12393
12393
|
setCanWeClose: () => {
|
|
12394
12394
|
},
|
|
12395
12395
|
initialView: ue,
|
|
@@ -12721,10 +12721,10 @@ function Zh(e, t) {
|
|
|
12721
12721
|
view_type: Q,
|
|
12722
12722
|
limit: re
|
|
12723
12723
|
} = V, Z = Q === "tree", j = [];
|
|
12724
|
-
for (const
|
|
12725
|
-
const [_, J] =
|
|
12724
|
+
for (const H of G) {
|
|
12725
|
+
const [_, J] = H;
|
|
12726
12726
|
if (_)
|
|
12727
|
-
j.push(
|
|
12727
|
+
j.push(H);
|
|
12728
12728
|
else if (J === "dashboard")
|
|
12729
12729
|
j.push([void 0, "dashboard"]);
|
|
12730
12730
|
else {
|
|
@@ -12739,13 +12739,13 @@ function Zh(e, t) {
|
|
|
12739
12739
|
}
|
|
12740
12740
|
let se;
|
|
12741
12741
|
if (x) {
|
|
12742
|
-
const [
|
|
12742
|
+
const [H, _] = j.find(
|
|
12743
12743
|
([J, K]) => K === x
|
|
12744
12744
|
);
|
|
12745
|
-
se = { id:
|
|
12745
|
+
se = { id: H, type: _ };
|
|
12746
12746
|
} else {
|
|
12747
|
-
const [
|
|
12748
|
-
se = { id:
|
|
12747
|
+
const [H, _] = j[0];
|
|
12748
|
+
se = { id: H, type: _ };
|
|
12749
12749
|
}
|
|
12750
12750
|
T({
|
|
12751
12751
|
domain: [...L, ...O],
|
|
@@ -12872,7 +12872,7 @@ function Zh(e, t) {
|
|
|
12872
12872
|
j = void 0, se = _[1];
|
|
12873
12873
|
} else
|
|
12874
12874
|
[j, se] = Z.find((_) => _[0] === void 0 ? !1 : _[0] === F);
|
|
12875
|
-
const
|
|
12875
|
+
const H = { id: j, type: se };
|
|
12876
12876
|
T({
|
|
12877
12877
|
domain: D,
|
|
12878
12878
|
context: { ...l, ...P },
|
|
@@ -12880,7 +12880,7 @@ function Zh(e, t) {
|
|
|
12880
12880
|
views: Z,
|
|
12881
12881
|
title: G,
|
|
12882
12882
|
target: M,
|
|
12883
|
-
initialView:
|
|
12883
|
+
initialView: H,
|
|
12884
12884
|
action_id: b,
|
|
12885
12885
|
action_type: S,
|
|
12886
12886
|
res_id: x,
|