@gisce/react-ooui 1.4.9-rc.0 → 1.4.9-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1696,7 +1696,7 @@ const zn = async (e) => {
|
|
|
1696
1696
|
cursor: "pointer"
|
|
1697
1697
|
},
|
|
1698
1698
|
onClick: () => {
|
|
1699
|
-
y(D.find((
|
|
1699
|
+
y(D.find(($) => x.id === $.id)), c(!0);
|
|
1700
1700
|
},
|
|
1701
1701
|
children: /* @__PURE__ */ n("strong", {
|
|
1702
1702
|
children: (w = x.values) == null ? void 0 : w[T]
|
|
@@ -1707,7 +1707,7 @@ const zn = async (e) => {
|
|
|
1707
1707
|
cursor: "pointer"
|
|
1708
1708
|
},
|
|
1709
1709
|
onClick: () => {
|
|
1710
|
-
y(D.find((
|
|
1710
|
+
y(D.find(($) => x.id === $.id)), c(!0);
|
|
1711
1711
|
},
|
|
1712
1712
|
children: (S = x.values) == null ? void 0 : S[v]
|
|
1713
1713
|
})]
|
|
@@ -2031,8 +2031,8 @@ const Mt = ({
|
|
|
2031
2031
|
label: E,
|
|
2032
2032
|
closable: x,
|
|
2033
2033
|
onClose: C
|
|
2034
|
-
} = _, w = (
|
|
2035
|
-
|
|
2034
|
+
} = _, w = ($) => {
|
|
2035
|
+
$.preventDefault(), $.stopPropagation();
|
|
2036
2036
|
}, S = en(E);
|
|
2037
2037
|
return /* @__PURE__ */ n(po, {
|
|
2038
2038
|
color: S,
|
|
@@ -2387,7 +2387,7 @@ const Mt = ({
|
|
|
2387
2387
|
setLimit: V,
|
|
2388
2388
|
searchParams: _ = [],
|
|
2389
2389
|
setSearchValues: E
|
|
2390
|
-
} = e, [x, C] = O(!1), [w, S] = O(!1), [
|
|
2390
|
+
} = e, [x, C] = O(!1), [w, S] = O(!1), [$, R] = O(), [F, k] = O(1), [M, I] = O(0), [N, A] = O(), [j, q] = O([]), [W, J] = O(void 0), [U, L] = O(void 0), B = fe(b || Bt), te = fe([]), Z = Le((ie) => {
|
|
2391
2391
|
g == null || g([...ie]), q([...ie]);
|
|
2392
2392
|
}, []), ae = Le(() => v || j, [v, j]), X = Le(async () => {
|
|
2393
2393
|
const ie = await H.getHandler().nameSearch({
|
|
@@ -2408,7 +2408,7 @@ const Mt = ({
|
|
|
2408
2408
|
context: d,
|
|
2409
2409
|
attrs: Re
|
|
2410
2410
|
}), ee = Ze[0];
|
|
2411
|
-
te.current = [...ee], J(Qt(Ze[1])),
|
|
2411
|
+
te.current = [...ee], J(Qt(Ze[1])), L(wr(Ze[1]));
|
|
2412
2412
|
const Ie = ee.map((ke) => ke.id), Ae = y !== void 0 ? It({
|
|
2413
2413
|
resultsToSort: ee,
|
|
2414
2414
|
sorter: y,
|
|
@@ -2443,7 +2443,7 @@ const Mt = ({
|
|
|
2443
2443
|
context: d,
|
|
2444
2444
|
attrs: ee
|
|
2445
2445
|
});
|
|
2446
|
-
J(Qt(ke)),
|
|
2446
|
+
J(Qt(ke)), L(wr(ke)), te.current = [...Ae];
|
|
2447
2447
|
const le = y !== void 0 ? It({
|
|
2448
2448
|
resultsToSort: Ae,
|
|
2449
2449
|
sorter: y,
|
|
@@ -2575,7 +2575,7 @@ const Mt = ({
|
|
|
2575
2575
|
fetchResults: he,
|
|
2576
2576
|
tableRefreshing: x,
|
|
2577
2577
|
searchFilterLoading: w,
|
|
2578
|
-
searchError:
|
|
2578
|
+
searchError: $,
|
|
2579
2579
|
page: F,
|
|
2580
2580
|
offset: M,
|
|
2581
2581
|
limit: b,
|
|
@@ -2614,7 +2614,7 @@ const Mt = ({
|
|
|
2614
2614
|
setSearchTreeNameSearch: E,
|
|
2615
2615
|
goToResourceId: x,
|
|
2616
2616
|
limit: C
|
|
2617
|
-
} = e, [w, S] = O(!1), [
|
|
2617
|
+
} = e, [w, S] = O(!1), [$, R] = O(!1), [F, k] = O(!1), [M, I] = O(!0), [N, A] = O(!0), [j, q] = O([]), [W, J] = O(!1), [U, L] = O([]), [B, te] = O(!1), [Z, ae] = O(!0), [X, z] = O(), [he, be] = O({}), [Ee, Ve] = O(C !== void 0 ? C : Bt), [Pe, We] = O(i);
|
|
2618
2618
|
pe(() => {
|
|
2619
2619
|
m && m.length > 0 && !y && (p == null || p(0), f == null || f(m[0].id));
|
|
2620
2620
|
}, [m]), pe(() => {
|
|
@@ -2636,7 +2636,7 @@ const Mt = ({
|
|
|
2636
2636
|
availableViews: s,
|
|
2637
2637
|
formIsSaving: w,
|
|
2638
2638
|
setFormIsSaving: S,
|
|
2639
|
-
formHasChanges:
|
|
2639
|
+
formHasChanges: $,
|
|
2640
2640
|
setFormHasChanges: R,
|
|
2641
2641
|
formRef: a,
|
|
2642
2642
|
searchTreeRef: l,
|
|
@@ -2661,7 +2661,7 @@ const Mt = ({
|
|
|
2661
2661
|
setSelectedRowItems: b,
|
|
2662
2662
|
duplicatingItem: W,
|
|
2663
2663
|
setDuplicatingItem: J,
|
|
2664
|
-
setSearchParams:
|
|
2664
|
+
setSearchParams: L,
|
|
2665
2665
|
searchParams: U,
|
|
2666
2666
|
searchVisible: B,
|
|
2667
2667
|
setSearchVisible: te,
|
|
@@ -2739,7 +2739,7 @@ const Mt = ({
|
|
|
2739
2739
|
values: w,
|
|
2740
2740
|
context: S = {}
|
|
2741
2741
|
} = E, {
|
|
2742
|
-
context:
|
|
2742
|
+
context: $,
|
|
2743
2743
|
model: R,
|
|
2744
2744
|
datas: F = {},
|
|
2745
2745
|
report_name: k,
|
|
@@ -2753,11 +2753,11 @@ const Mt = ({
|
|
|
2753
2753
|
ids: I
|
|
2754
2754
|
} = F || {};
|
|
2755
2755
|
let N = I || [];
|
|
2756
|
-
const A = typeof
|
|
2757
|
-
context:
|
|
2756
|
+
const A = typeof $ == "string" ? wt({
|
|
2757
|
+
context: $,
|
|
2758
2758
|
fields: C,
|
|
2759
2759
|
values: w
|
|
2760
|
-
}) :
|
|
2760
|
+
}) : $;
|
|
2761
2761
|
try {
|
|
2762
2762
|
const j = await H.getHandler().createReport({
|
|
2763
2763
|
model: R,
|
|
@@ -2798,29 +2798,29 @@ const Mt = ({
|
|
|
2798
2798
|
onRefreshParentValues: S
|
|
2799
2799
|
}) {
|
|
2800
2800
|
const {
|
|
2801
|
-
type:
|
|
2801
|
+
type: $
|
|
2802
2802
|
} = E;
|
|
2803
|
-
if (f.current.push(S),
|
|
2803
|
+
if (f.current.push(S), $ === "ir.actions.report.xml")
|
|
2804
2804
|
return await g({
|
|
2805
2805
|
reportData: E,
|
|
2806
2806
|
fields: x,
|
|
2807
2807
|
values: C,
|
|
2808
2808
|
context: w
|
|
2809
2809
|
});
|
|
2810
|
-
if (
|
|
2810
|
+
if ($ === "ir.actions.act_window")
|
|
2811
2811
|
return await D({
|
|
2812
2812
|
actionData: E,
|
|
2813
2813
|
fields: x,
|
|
2814
2814
|
values: C,
|
|
2815
2815
|
context: w
|
|
2816
2816
|
});
|
|
2817
|
-
if (
|
|
2817
|
+
if ($ === "ir.actions.act_url")
|
|
2818
2818
|
window.open(ja(E.url, {
|
|
2819
2819
|
...C,
|
|
2820
2820
|
context: w
|
|
2821
2821
|
}), "_blank");
|
|
2822
2822
|
else
|
|
2823
|
-
return Ge(`${
|
|
2823
|
+
return Ge(`${$} action not supported`), {};
|
|
2824
2824
|
}
|
|
2825
2825
|
async function D({
|
|
2826
2826
|
actionData: E,
|
|
@@ -2835,16 +2835,16 @@ const Mt = ({
|
|
|
2835
2835
|
ids: [parseInt(E.id)],
|
|
2836
2836
|
context: w
|
|
2837
2837
|
}))[0]);
|
|
2838
|
-
const
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2838
|
+
const $ = typeof (S == null ? void 0 : S.context) == "string" ? wt({
|
|
2839
|
+
context: S.context,
|
|
2840
|
+
fields: x,
|
|
2841
|
+
values: {
|
|
2842
|
+
...C,
|
|
2843
|
+
...i
|
|
2844
|
+
}
|
|
2845
|
+
}) : S.context, R = {
|
|
2846
|
+
...w,
|
|
2847
|
+
...$
|
|
2848
2848
|
};
|
|
2849
2849
|
let F = [];
|
|
2850
2850
|
if (S.domain && (F = await H.getHandler().evalDomain({
|
|
@@ -2930,7 +2930,7 @@ const Mt = ({
|
|
|
2930
2930
|
context: {},
|
|
2931
2931
|
formView: void 0,
|
|
2932
2932
|
actionData: void 0
|
|
2933
|
-
}), y(!1), await new Promise((
|
|
2933
|
+
}), y(!1), await new Promise(($) => setTimeout($, 300)), h({
|
|
2934
2934
|
domain: E,
|
|
2935
2935
|
model: x,
|
|
2936
2936
|
context: w,
|
|
@@ -3092,7 +3092,7 @@ function bl(e, t) {
|
|
|
3092
3092
|
} = e, {
|
|
3093
3093
|
t: x,
|
|
3094
3094
|
lang: C
|
|
3095
|
-
} = Y(ve), [w, S] = O(!1), [
|
|
3095
|
+
} = Y(ve), [w, S] = O(!1), [$, R] = O(), [F, k] = O(), [M] = it.useForm(), [I, N] = O(), [A, j] = O(), q = Y(go), [W, J] = O(), [U, L] = O(!1), B = fe(), te = fe({}), Z = fe({}), ae = fe(!1), X = fe(!1), z = fe(!1), be = (E !== void 0 ? E : W) < wl, Ee = Y(Ne), {
|
|
3096
3096
|
activeId: Ve,
|
|
3097
3097
|
getPlainValues: Pe
|
|
3098
3098
|
} = Ee || {}, We = Y(et), {
|
|
@@ -3129,7 +3129,7 @@ function bl(e, t) {
|
|
|
3129
3129
|
}, [i, r, y, p, D]), pe(() => {
|
|
3130
3130
|
U && (vn({
|
|
3131
3131
|
elementHasLostFocus: !0
|
|
3132
|
-
}),
|
|
3132
|
+
}), L(!1));
|
|
3133
3133
|
}, [U]);
|
|
3134
3134
|
const le = (K, G, oe, ne) => {
|
|
3135
3135
|
de == null || de(!1), ie == null || ie(!1), s == null || s(K, G, oe, ne), je == null || je(K);
|
|
@@ -3264,7 +3264,7 @@ function bl(e, t) {
|
|
|
3264
3264
|
fields: oe,
|
|
3265
3265
|
arch: ne,
|
|
3266
3266
|
values: G
|
|
3267
|
-
}), we == null || we(!1), de == null || de(!1), De &&
|
|
3267
|
+
}), we == null || we(!1), de == null || de(!1), De && L(!0);
|
|
3268
3268
|
}, tr = async () => new Promise(async (K) => {
|
|
3269
3269
|
Fe() ? Ut({
|
|
3270
3270
|
lang: C,
|
|
@@ -3654,7 +3654,7 @@ function bl(e, t) {
|
|
|
3654
3654
|
Ge(ne);
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
const Zo = () => !F &&
|
|
3657
|
+
const Zo = () => !F && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !D ? null : /* @__PURE__ */ n(re, {
|
|
3658
3658
|
children: /* @__PURE__ */ n(os, {
|
|
3659
3659
|
getValues: Ke,
|
|
3660
3660
|
getPlainValues: Q,
|
|
@@ -3719,9 +3719,9 @@ function bl(e, t) {
|
|
|
3719
3719
|
}) => /* @__PURE__ */ P("div", {
|
|
3720
3720
|
className: "pb-2",
|
|
3721
3721
|
ref: K,
|
|
3722
|
-
children: [
|
|
3722
|
+
children: [$ && /* @__PURE__ */ n(vl, {
|
|
3723
3723
|
className: "mt-5 mb-10",
|
|
3724
|
-
error:
|
|
3724
|
+
error: $
|
|
3725
3725
|
}), Zo(), a && Xo()]
|
|
3726
3726
|
})
|
|
3727
3727
|
}) : null;
|
|
@@ -4213,8 +4213,8 @@ function wo(e) {
|
|
|
4213
4213
|
if (!g)
|
|
4214
4214
|
return;
|
|
4215
4215
|
const w = T ? g : p, S = w == null ? void 0 : w.rows;
|
|
4216
|
-
return S == null ? void 0 : S.map((
|
|
4217
|
-
children:
|
|
4216
|
+
return S == null ? void 0 : S.map(($, R) => /* @__PURE__ */ n(xe, {
|
|
4217
|
+
children: $.map((F, k) => /* @__PURE__ */ n(ce, {
|
|
4218
4218
|
xs: 24,
|
|
4219
4219
|
className: "p-2",
|
|
4220
4220
|
xl: 6,
|
|
@@ -4231,13 +4231,13 @@ function wo(e) {
|
|
|
4231
4231
|
var F;
|
|
4232
4232
|
const {
|
|
4233
4233
|
limit: S,
|
|
4234
|
-
offset:
|
|
4234
|
+
offset: $
|
|
4235
4235
|
} = w;
|
|
4236
4236
|
delete w.offset, delete w.limit;
|
|
4237
4237
|
const R = il(w, (F = b.current) == null ? void 0 : F._advancedSearchContainer);
|
|
4238
4238
|
o({
|
|
4239
4239
|
params: R,
|
|
4240
|
-
offset:
|
|
4240
|
+
offset: $,
|
|
4241
4241
|
limit: S,
|
|
4242
4242
|
searchValues: w
|
|
4243
4243
|
});
|
|
@@ -4438,7 +4438,7 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4438
4438
|
c(w);
|
|
4439
4439
|
const {
|
|
4440
4440
|
fields: S,
|
|
4441
|
-
arch:
|
|
4441
|
+
arch: $
|
|
4442
4442
|
} = w, R = (await H.getHandler().readObjects({
|
|
4443
4443
|
model: r,
|
|
4444
4444
|
ids: [t],
|
|
@@ -4467,9 +4467,9 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4467
4467
|
});
|
|
4468
4468
|
if (!f || !f.toolbar)
|
|
4469
4469
|
return /* @__PURE__ */ n(Be, {});
|
|
4470
|
-
const w = (S = f == null ? void 0 : f.toolbar) == null ? void 0 : S.relate.map((
|
|
4471
|
-
children:
|
|
4472
|
-
},
|
|
4470
|
+
const w = (S = f == null ? void 0 : f.toolbar) == null ? void 0 : S.relate.map(($) => /* @__PURE__ */ n(Be.Item, {
|
|
4471
|
+
children: $.name
|
|
4472
|
+
}, $.id));
|
|
4473
4473
|
return /* @__PURE__ */ n(Be, {
|
|
4474
4474
|
onClick: V,
|
|
4475
4475
|
children: [/* @__PURE__ */ n(Be.Item, {
|
|
@@ -4496,7 +4496,7 @@ const Pl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4496
4496
|
else if (w.key === "print")
|
|
4497
4497
|
l(!0);
|
|
4498
4498
|
else {
|
|
4499
|
-
const S = f.toolbar.relate.find((
|
|
4499
|
+
const S = f.toolbar.relate.find(($) => $.id === parseInt(w.key));
|
|
4500
4500
|
if (!S)
|
|
4501
4501
|
return;
|
|
4502
4502
|
g({
|
|
@@ -4705,7 +4705,7 @@ var Co = { exports: {} };
|
|
|
4705
4705
|
return N ? X : X.endOf(d);
|
|
4706
4706
|
}, q = function(Z, ae) {
|
|
4707
4707
|
return w.w(I.toDate()[Z].apply(I.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), I);
|
|
4708
|
-
}, W = this.$W, J = this.$M, U = this.$D,
|
|
4708
|
+
}, W = this.$W, J = this.$M, U = this.$D, L = "set" + (this.$u ? "UTC" : "");
|
|
4709
4709
|
switch (A) {
|
|
4710
4710
|
case y:
|
|
4711
4711
|
return N ? j(1, 0) : j(31, 11);
|
|
@@ -4716,13 +4716,13 @@ var Co = { exports: {} };
|
|
|
4716
4716
|
return j(N ? U - te : U + (6 - te), J);
|
|
4717
4717
|
case d:
|
|
4718
4718
|
case p:
|
|
4719
|
-
return q(
|
|
4719
|
+
return q(L + "Hours", 0);
|
|
4720
4720
|
case u:
|
|
4721
|
-
return q(
|
|
4721
|
+
return q(L + "Minutes", 1);
|
|
4722
4722
|
case l:
|
|
4723
|
-
return q(
|
|
4723
|
+
return q(L + "Seconds", 2);
|
|
4724
4724
|
case a:
|
|
4725
|
-
return q(
|
|
4725
|
+
return q(L + "Milliseconds", 3);
|
|
4726
4726
|
default:
|
|
4727
4727
|
return this.clone();
|
|
4728
4728
|
}
|
|
@@ -4763,14 +4763,14 @@ var Co = { exports: {} };
|
|
|
4763
4763
|
var M = this, I = this.$locale();
|
|
4764
4764
|
if (!this.isValid())
|
|
4765
4765
|
return I.invalidDate || h;
|
|
4766
|
-
var N = k || "YYYY-MM-DDTHH:mm:ssZ", A = w.z(this), j = this.$H, q = this.$m, W = this.$M, J = I.weekdays, U = I.months,
|
|
4766
|
+
var N = k || "YYYY-MM-DDTHH:mm:ssZ", A = w.z(this), j = this.$H, q = this.$m, W = this.$M, J = I.weekdays, U = I.months, L = function(ae, X, z, he) {
|
|
4767
4767
|
return ae && (ae[X] || ae(M, N)) || z[X].slice(0, he);
|
|
4768
4768
|
}, B = function(ae) {
|
|
4769
4769
|
return w.s(j % 12 || 12, ae, "0");
|
|
4770
4770
|
}, te = I.meridiem || function(ae, X, z) {
|
|
4771
4771
|
var he = ae < 12 ? "AM" : "PM";
|
|
4772
4772
|
return z ? he.toLowerCase() : he;
|
|
4773
|
-
}, Z = { YY: String(this.$y).slice(-2), YYYY: w.s(this.$y, 4, "0"), M: W + 1, MM: w.s(W + 1, 2, "0"), MMM:
|
|
4773
|
+
}, Z = { YY: String(this.$y).slice(-2), YYYY: w.s(this.$y, 4, "0"), M: W + 1, MM: w.s(W + 1, 2, "0"), MMM: L(I.monthsShort, W, U, 3), MMMM: L(U, W), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: L(I.weekdaysMin, this.$W, J, 2), ddd: L(I.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: w.s(j, 2, "0"), h: B(1), hh: B(2), a: te(j, q, !0), A: te(j, q, !1), m: String(q), mm: w.s(q, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: A };
|
|
4774
4774
|
return N.replace(v, function(ae, X) {
|
|
4775
4775
|
return X || Z[ae] || A.replace(":", "");
|
|
4776
4776
|
});
|
|
@@ -4799,9 +4799,9 @@ var Co = { exports: {} };
|
|
|
4799
4799
|
}, F.toString = function() {
|
|
4800
4800
|
return this.$d.toUTCString();
|
|
4801
4801
|
}, R;
|
|
4802
|
-
}(),
|
|
4803
|
-
return C.prototype =
|
|
4804
|
-
|
|
4802
|
+
}(), $ = S.prototype;
|
|
4803
|
+
return C.prototype = $, [["$ms", s], ["$s", a], ["$m", l], ["$H", u], ["$W", d], ["$M", c], ["$y", y], ["$D", p]].forEach(function(R) {
|
|
4804
|
+
$[R[1]] = function(F) {
|
|
4805
4805
|
return this.$g(F, R[0], R[1]);
|
|
4806
4806
|
};
|
|
4807
4807
|
}), C.extend = function(R, F) {
|
|
@@ -5079,7 +5079,7 @@ function pn(e) {
|
|
|
5079
5079
|
readonly: b
|
|
5080
5080
|
} = e, [V, _] = O([]), [E, x] = O([]), C = fe(!1), w = fe(null), {
|
|
5081
5081
|
t: S
|
|
5082
|
-
} = Y(ve),
|
|
5082
|
+
} = Y(ve), $ = fe(r), R = Y(et), {
|
|
5083
5083
|
title: F = void 0,
|
|
5084
5084
|
setTitle: k = void 0
|
|
5085
5085
|
} = (T ? R : {}) || {};
|
|
@@ -5107,9 +5107,9 @@ function pn(e) {
|
|
|
5107
5107
|
}, [o]), pe(() => {
|
|
5108
5108
|
C.current = !1;
|
|
5109
5109
|
const J = uo(w.current, s);
|
|
5110
|
-
_(J),
|
|
5110
|
+
_(J), $.current = r;
|
|
5111
5111
|
}, [s]);
|
|
5112
|
-
const M = (t - 1) *
|
|
5112
|
+
const M = (t - 1) * $.current + 1, I = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? S("no_results") : S("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), A = () => !d || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
|
|
5113
5113
|
className: "pb-4"
|
|
5114
5114
|
}) : /* @__PURE__ */ P(xe, {
|
|
5115
5115
|
align: "bottom",
|
|
@@ -5118,7 +5118,7 @@ function pn(e) {
|
|
|
5118
5118
|
span: 12,
|
|
5119
5119
|
children: /* @__PURE__ */ n(ai, {
|
|
5120
5120
|
total: i,
|
|
5121
|
-
pageSize:
|
|
5121
|
+
pageSize: $.current === 0 ? i : $.current,
|
|
5122
5122
|
current: t,
|
|
5123
5123
|
showSizeChanger: !1,
|
|
5124
5124
|
onChange: a
|
|
@@ -5137,20 +5137,20 @@ function pn(e) {
|
|
|
5137
5137
|
}));
|
|
5138
5138
|
if (!U || U.length === 0)
|
|
5139
5139
|
return null;
|
|
5140
|
-
let
|
|
5140
|
+
let L = [], B = ((te = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : te.length) > 0 ? V.filter((Z) => f == null ? void 0 : f.selectedRowKeys.includes(Z.id)) : V;
|
|
5141
5141
|
return U.forEach((Z) => {
|
|
5142
5142
|
const ae = B.reduce((X, z) => z[Z.field] && !isNaN(z[Z.field]) ? X + z[Z.field] : X, 0);
|
|
5143
|
-
|
|
5143
|
+
L.push(`${Z.label}: ${Math.round(ae * 100) / 100}`);
|
|
5144
5144
|
}), /* @__PURE__ */ n("div", {
|
|
5145
5145
|
className: "p-1 pb-0 pl-2 mt-2 ",
|
|
5146
|
-
children:
|
|
5146
|
+
children: L.join(", ")
|
|
5147
5147
|
});
|
|
5148
5148
|
}
|
|
5149
5149
|
let q, W = c;
|
|
5150
5150
|
if (w.current !== null) {
|
|
5151
5151
|
q = Ll(E, V, 600);
|
|
5152
5152
|
const U = w.current;
|
|
5153
|
-
c && U.columns.some((
|
|
5153
|
+
c && U.columns.some((L) => L.sum !== void 0) && (W = c - 30);
|
|
5154
5154
|
}
|
|
5155
5155
|
return w.current === null ? /* @__PURE__ */ n(Me, {
|
|
5156
5156
|
style: {
|
|
@@ -5205,7 +5205,7 @@ function sc(e, t) {
|
|
|
5205
5205
|
rootTree: f = !1,
|
|
5206
5206
|
parentContext: c = {},
|
|
5207
5207
|
onChangeSelectedRowKeys: m
|
|
5208
|
-
} = e, [y, p] = O(!1), [h, g] = O(!1), v = fe(!1), [T, D] = O(), [b, V] = O(), [_, E] = O(), [x, C] = O(), [w, S] = O(200),
|
|
5208
|
+
} = e, [y, p] = O(!1), [h, g] = O(!1), v = fe(!1), [T, D] = O(), [b, V] = O(), [_, E] = O(), [x, C] = O(), [w, S] = O(200), $ = fe(), {
|
|
5209
5209
|
height: R
|
|
5210
5210
|
} = fn(), F = Y(Et), {
|
|
5211
5211
|
processAction: k
|
|
@@ -5218,7 +5218,7 @@ function sc(e, t) {
|
|
|
5218
5218
|
setSelectedRowItems: W = void 0,
|
|
5219
5219
|
searchParams: J = [],
|
|
5220
5220
|
setSearchParams: U = void 0,
|
|
5221
|
-
searchVisible:
|
|
5221
|
+
searchVisible: L = !0,
|
|
5222
5222
|
setSearchVisible: B = void 0,
|
|
5223
5223
|
sorter: te = void 0,
|
|
5224
5224
|
setSorter: Z = void 0,
|
|
@@ -5312,12 +5312,12 @@ function sc(e, t) {
|
|
|
5312
5312
|
const {
|
|
5313
5313
|
id: $e
|
|
5314
5314
|
} = Fe;
|
|
5315
|
-
|
|
5315
|
+
$.current || ($.current = await H.getHandler().treeButOpen({
|
|
5316
5316
|
id: b.view_id,
|
|
5317
5317
|
model: T,
|
|
5318
5318
|
context: c
|
|
5319
5319
|
}));
|
|
5320
|
-
const ot =
|
|
5320
|
+
const ot = $.current[0][2];
|
|
5321
5321
|
await (k == null ? void 0 : k({
|
|
5322
5322
|
actionData: ot,
|
|
5323
5323
|
fields: b.fields,
|
|
@@ -5368,7 +5368,7 @@ function sc(e, t) {
|
|
|
5368
5368
|
onLimitChange: Ke,
|
|
5369
5369
|
setSearchFilterHeight: S,
|
|
5370
5370
|
searchError: we,
|
|
5371
|
-
searchVisible:
|
|
5371
|
+
searchVisible: L,
|
|
5372
5372
|
searchValues: he
|
|
5373
5373
|
}), /* @__PURE__ */ n(pn, {
|
|
5374
5374
|
context: c,
|
|
@@ -5547,7 +5547,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5547
5547
|
getValues: C,
|
|
5548
5548
|
getFields: w,
|
|
5549
5549
|
getContext: S,
|
|
5550
|
-
elementHasLostFocus:
|
|
5550
|
+
elementHasLostFocus: $
|
|
5551
5551
|
} = E || {}, R = fe([]), [F, k] = O([]), M = t && t[0] || void 0, I = t && t[1] || "";
|
|
5552
5552
|
pe(() => {
|
|
5553
5553
|
!Array.isArray(t) && t && W(t);
|
|
@@ -5555,7 +5555,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5555
5555
|
M && I.length === 0 ? W(M) : M && I.length > 0 ? V(I) : !M && !I && V(_.current || "");
|
|
5556
5556
|
}, [t]);
|
|
5557
5557
|
const N = (B) => {
|
|
5558
|
-
r == null || r(B),
|
|
5558
|
+
r == null || r(B), $ == null || $();
|
|
5559
5559
|
}, A = (B) => {
|
|
5560
5560
|
_.current = B.target.value, N([void 0, ""]);
|
|
5561
5561
|
}, j = async () => {
|
|
@@ -5760,7 +5760,7 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5760
5760
|
field: d,
|
|
5761
5761
|
operator: f,
|
|
5762
5762
|
manualIds: c
|
|
5763
|
-
} = e, [m, y] = O(!1), [p, h] = O(), [g, v] = O(), [T, D] = O(), [b, V] = O(0), [_, E] = O(0), [x, C] = O(), [w, S] = O(), [
|
|
5763
|
+
} = e, [m, y] = O(!1), [p, h] = O(), [g, v] = O(), [T, D] = O(), [b, V] = O(0), [_, E] = O(0), [x, C] = O(), [w, S] = O(), [$, R] = O();
|
|
5764
5764
|
pe(() => {
|
|
5765
5765
|
M();
|
|
5766
5766
|
}, [t, o]);
|
|
@@ -5867,9 +5867,9 @@ const Oo = bt(sc), _o = (e) => {
|
|
|
5867
5867
|
}
|
|
5868
5868
|
y(!1);
|
|
5869
5869
|
}
|
|
5870
|
-
return
|
|
5870
|
+
return $ ? /* @__PURE__ */ n(Qe, {
|
|
5871
5871
|
className: "mt-10",
|
|
5872
|
-
message:
|
|
5872
|
+
message: $,
|
|
5873
5873
|
type: "error",
|
|
5874
5874
|
banner: !0
|
|
5875
5875
|
}) : m ? /* @__PURE__ */ n("div", {
|
|
@@ -6607,9 +6607,9 @@ const Lc = (e) => {
|
|
|
6607
6607
|
} = f || {}, {
|
|
6608
6608
|
lang: g,
|
|
6609
6609
|
t: v
|
|
6610
|
-
} = Y(ve), [T, D] = O(!1), [b, V] = O(!1), [_, E] = O(), [x, C] = O(!1), [w, S] = O(!1), [
|
|
6610
|
+
} = Y(ve), [T, D] = O(!1), [b, V] = O(!1), [_, E] = O(), [x, C] = O(!1), [w, S] = O(!1), [$, R] = O(), [F, k] = O([]), [M, I] = O(!1), N = fe([]), [A, j] = O(), q = fe(), [W, J] = O(void 0), {
|
|
6611
6611
|
readOnly: U,
|
|
6612
|
-
relation:
|
|
6612
|
+
relation: L,
|
|
6613
6613
|
context: B,
|
|
6614
6614
|
domain: te
|
|
6615
6615
|
} = i, Z = i.type === "many2many", {
|
|
@@ -6648,7 +6648,7 @@ const Lc = (e) => {
|
|
|
6648
6648
|
formView: {
|
|
6649
6649
|
fields: ((ge = o.get("form")) == null ? void 0 : ge.fields) || {}
|
|
6650
6650
|
},
|
|
6651
|
-
model:
|
|
6651
|
+
model: L,
|
|
6652
6652
|
items: s,
|
|
6653
6653
|
context: {
|
|
6654
6654
|
...p == null ? void 0 : p(),
|
|
@@ -6693,7 +6693,7 @@ const Lc = (e) => {
|
|
|
6693
6693
|
}) : d(u + 1));
|
|
6694
6694
|
}, je = async () => {
|
|
6695
6695
|
const Q = X[u].id, se = (await H.getHandler().readObjects({
|
|
6696
|
-
model:
|
|
6696
|
+
model: L,
|
|
6697
6697
|
ids: [Q],
|
|
6698
6698
|
fields: o.get("form").fields,
|
|
6699
6699
|
context: {
|
|
@@ -6701,7 +6701,7 @@ const Lc = (e) => {
|
|
|
6701
6701
|
...B
|
|
6702
6702
|
}
|
|
6703
6703
|
}))[0], Ce = (await H.getHandler().readObjects({
|
|
6704
|
-
model:
|
|
6704
|
+
model: L,
|
|
6705
6705
|
ids: [Q],
|
|
6706
6706
|
fields: o.get("tree").fields,
|
|
6707
6707
|
context: {
|
|
@@ -6842,7 +6842,7 @@ const Lc = (e) => {
|
|
|
6842
6842
|
try {
|
|
6843
6843
|
for (const ge of Ce) {
|
|
6844
6844
|
const Se = (await H.getHandler().readObjects({
|
|
6845
|
-
model:
|
|
6845
|
+
model: L,
|
|
6846
6846
|
ids: [ge],
|
|
6847
6847
|
fields: o.get("form").fields,
|
|
6848
6848
|
context: {
|
|
@@ -6850,7 +6850,7 @@ const Lc = (e) => {
|
|
|
6850
6850
|
...B
|
|
6851
6851
|
}
|
|
6852
6852
|
}))[0], Te = (await H.getHandler().readObjects({
|
|
6853
|
-
model:
|
|
6853
|
+
model: L,
|
|
6854
6854
|
ids: [ge],
|
|
6855
6855
|
fields: o.get("tree").fields,
|
|
6856
6856
|
context: {
|
|
@@ -6891,7 +6891,7 @@ const Lc = (e) => {
|
|
|
6891
6891
|
...p == null ? void 0 : p(),
|
|
6892
6892
|
...B
|
|
6893
6893
|
},
|
|
6894
|
-
model:
|
|
6894
|
+
model: L,
|
|
6895
6895
|
id: (Ce = X[u]) == null ? void 0 : Ce.id,
|
|
6896
6896
|
submitMode: "values",
|
|
6897
6897
|
onFieldsChange: (Te) => {
|
|
@@ -6984,11 +6984,11 @@ const Lc = (e) => {
|
|
|
6984
6984
|
showToggleButton: o.size > 1
|
|
6985
6985
|
}), ue(), /* @__PURE__ */ n(qt, {
|
|
6986
6986
|
formView: o.get("form"),
|
|
6987
|
-
model:
|
|
6988
|
-
id:
|
|
6987
|
+
model: L,
|
|
6988
|
+
id: $ == null ? void 0 : $.id,
|
|
6989
6989
|
submitMode: "2many",
|
|
6990
|
-
values:
|
|
6991
|
-
defaultValues:
|
|
6990
|
+
values: $ == null ? void 0 : $.values,
|
|
6991
|
+
defaultValues: $ == null ? void 0 : $.defaultValues,
|
|
6992
6992
|
visible: x,
|
|
6993
6993
|
onSubmitSucceed: ke,
|
|
6994
6994
|
parentContext: {
|
|
@@ -7002,7 +7002,7 @@ const Lc = (e) => {
|
|
|
7002
7002
|
mustClearAfterSave: rt
|
|
7003
7003
|
}), /* @__PURE__ */ n(_o, {
|
|
7004
7004
|
domain: N.current,
|
|
7005
|
-
model:
|
|
7005
|
+
model: L,
|
|
7006
7006
|
context: {
|
|
7007
7007
|
...p == null ? void 0 : p(),
|
|
7008
7008
|
...B
|
|
@@ -7683,8 +7683,8 @@ var Mo = { exports: {} };
|
|
|
7683
7683
|
var g, v;
|
|
7684
7684
|
g = h, v = l && l.formats;
|
|
7685
7685
|
for (var T = (h = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, w, S) {
|
|
7686
|
-
var
|
|
7687
|
-
return w || v[S] || r[S] || v[
|
|
7686
|
+
var $ = S && S.toUpperCase();
|
|
7687
|
+
return w || v[S] || r[S] || v[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, F, k) {
|
|
7688
7688
|
return F || k.slice(1);
|
|
7689
7689
|
});
|
|
7690
7690
|
})).match(i), D = T.length, b = 0; b < D; b += 1) {
|
|
@@ -7692,12 +7692,12 @@ var Mo = { exports: {} };
|
|
|
7692
7692
|
T[b] = x ? { regex: E, parser: x } : V.replace(/^\[|\]$/g, "");
|
|
7693
7693
|
}
|
|
7694
7694
|
return function(C) {
|
|
7695
|
-
for (var w = {}, S = 0,
|
|
7695
|
+
for (var w = {}, S = 0, $ = 0; S < D; S += 1) {
|
|
7696
7696
|
var R = T[S];
|
|
7697
7697
|
if (typeof R == "string")
|
|
7698
|
-
|
|
7698
|
+
$ += R.length;
|
|
7699
7699
|
else {
|
|
7700
|
-
var F = R.regex, k = R.parser, M = C.slice(
|
|
7700
|
+
var F = R.regex, k = R.parser, M = C.slice($), I = F.exec(M)[0];
|
|
7701
7701
|
k.call(w, I), C = C.replace(I, "");
|
|
7702
7702
|
}
|
|
7703
7703
|
}
|
|
@@ -7718,19 +7718,19 @@ var Mo = { exports: {} };
|
|
|
7718
7718
|
this.$u = _;
|
|
7719
7719
|
var x = E[1];
|
|
7720
7720
|
if (typeof x == "string") {
|
|
7721
|
-
var C = E[2] === !0, w = E[3] === !0, S = C || w,
|
|
7722
|
-
w && (
|
|
7721
|
+
var C = E[2] === !0, w = E[3] === !0, S = C || w, $ = E[2];
|
|
7722
|
+
w && ($ = E[2]), l = this.$locale(), !C && $ && (l = v.Ls[$]), this.$d = function(M, I, N) {
|
|
7723
7723
|
try {
|
|
7724
7724
|
if (["x", "X"].indexOf(I) > -1)
|
|
7725
7725
|
return new Date((I === "X" ? 1e3 : 1) * M);
|
|
7726
|
-
var A = p(I)(M), j = A.year, q = A.month, W = A.day, J = A.hours, U = A.minutes,
|
|
7726
|
+
var A = p(I)(M), j = A.year, q = A.month, W = A.day, J = A.hours, U = A.minutes, L = A.seconds, B = A.milliseconds, te = A.zone, Z = new Date(), ae = W || (j || q ? 1 : Z.getDate()), X = j || Z.getFullYear(), z = 0;
|
|
7727
7727
|
j && !q || (z = q > 0 ? q - 1 : Z.getMonth());
|
|
7728
|
-
var he = J || 0, be = U || 0, Ee =
|
|
7728
|
+
var he = J || 0, be = U || 0, Ee = L || 0, Ve = B || 0;
|
|
7729
7729
|
return te ? new Date(Date.UTC(X, z, ae, he, be, Ee, Ve + 60 * te.offset * 1e3)) : N ? new Date(Date.UTC(X, z, ae, he, be, Ee, Ve)) : new Date(X, z, ae, he, be, Ee, Ve);
|
|
7730
7730
|
} catch {
|
|
7731
7731
|
return new Date("");
|
|
7732
7732
|
}
|
|
7733
|
-
}(V, x, _), this.init(),
|
|
7733
|
+
}(V, x, _), this.init(), $ && $ !== !0 && (this.$L = this.locale($).$L), S && V != this.format(x) && (this.$d = new Date("")), l = {};
|
|
7734
7734
|
} else if (x instanceof Array)
|
|
7735
7735
|
for (var R = x.length, F = 1; F <= R; F += 1) {
|
|
7736
7736
|
E[1] = x[F - 1];
|
|
@@ -8375,34 +8375,34 @@ function vd({
|
|
|
8375
8375
|
t: C,
|
|
8376
8376
|
lang: w
|
|
8377
8377
|
} = Y(ve), S = Y(Et), {
|
|
8378
|
-
processAction:
|
|
8378
|
+
processAction: $
|
|
8379
8379
|
} = S || {}, R = Y(at), {
|
|
8380
8380
|
openRelate: F,
|
|
8381
8381
|
openDefaultActionForModel: k
|
|
8382
8382
|
} = R || {};
|
|
8383
|
-
function M(
|
|
8383
|
+
function M(L) {
|
|
8384
8384
|
if (s) {
|
|
8385
8385
|
hd({
|
|
8386
8386
|
lang: w,
|
|
8387
8387
|
onOk: () => {
|
|
8388
|
-
|
|
8388
|
+
L();
|
|
8389
8389
|
}
|
|
8390
8390
|
});
|
|
8391
8391
|
return;
|
|
8392
8392
|
}
|
|
8393
|
-
|
|
8393
|
+
L();
|
|
8394
8394
|
}
|
|
8395
|
-
function I(
|
|
8395
|
+
function I(L) {
|
|
8396
8396
|
if (s) {
|
|
8397
8397
|
Ut({
|
|
8398
8398
|
lang: w,
|
|
8399
8399
|
onOk: () => {
|
|
8400
|
-
|
|
8400
|
+
L();
|
|
8401
8401
|
}
|
|
8402
8402
|
});
|
|
8403
8403
|
return;
|
|
8404
8404
|
}
|
|
8405
|
-
|
|
8405
|
+
L();
|
|
8406
8406
|
}
|
|
8407
8407
|
function N() {
|
|
8408
8408
|
u && u.length > f + 1 ? (d == null || d(f + 1), c == null || c(u[f + 1].id)) : u && f + 1 === u.length && (d == null || d(0), c == null || c(u[0].id));
|
|
@@ -8425,12 +8425,12 @@ function vd({
|
|
|
8425
8425
|
model: m,
|
|
8426
8426
|
ids: [l]
|
|
8427
8427
|
});
|
|
8428
|
-
const
|
|
8429
|
-
v == null || v(
|
|
8428
|
+
const L = u == null ? void 0 : u.filter((te) => te.id !== l);
|
|
8429
|
+
v == null || v(L);
|
|
8430
8430
|
let B = 0;
|
|
8431
|
-
f > 0 && f <= u.length - 1 && (B = f - 1),
|
|
8432
|
-
} catch (
|
|
8433
|
-
nn(JSON.stringify(
|
|
8431
|
+
f > 0 && f <= u.length - 1 && (B = f - 1), L != null && L[B] ? (c == null || c(L == null ? void 0 : L[B].id), d == null || d(B)) : (c == null || c(void 0), d == null || d(void 0));
|
|
8432
|
+
} catch (L) {
|
|
8433
|
+
nn(JSON.stringify(L));
|
|
8434
8434
|
} finally {
|
|
8435
8435
|
y == null || y(!1);
|
|
8436
8436
|
}
|
|
@@ -8438,22 +8438,22 @@ function vd({
|
|
|
8438
8438
|
async function W() {
|
|
8439
8439
|
try {
|
|
8440
8440
|
g == null || g(!0);
|
|
8441
|
-
const
|
|
8441
|
+
const L = await H.getHandler().duplicate({
|
|
8442
8442
|
id: l,
|
|
8443
8443
|
model: m,
|
|
8444
8444
|
context: b.current.getContext()
|
|
8445
8445
|
});
|
|
8446
|
-
|
|
8447
|
-
} catch (
|
|
8448
|
-
nn(JSON.stringify(
|
|
8446
|
+
L && await (x == null ? void 0 : x(L));
|
|
8447
|
+
} catch (L) {
|
|
8448
|
+
nn(JSON.stringify(L));
|
|
8449
8449
|
} finally {
|
|
8450
8450
|
g == null || g(!1);
|
|
8451
8451
|
}
|
|
8452
8452
|
}
|
|
8453
8453
|
const J = a || p || T || h;
|
|
8454
|
-
function U(
|
|
8455
|
-
|
|
8456
|
-
actionData:
|
|
8454
|
+
function U(L) {
|
|
8455
|
+
$ == null || $({
|
|
8456
|
+
actionData: L,
|
|
8457
8457
|
values: b.current.getValues(),
|
|
8458
8458
|
fields: b.current.getFields(),
|
|
8459
8459
|
context: b.current.getContext(),
|
|
@@ -8508,8 +8508,8 @@ function vd({
|
|
|
8508
8508
|
currentView: r,
|
|
8509
8509
|
previousView: _,
|
|
8510
8510
|
availableViews: t,
|
|
8511
|
-
onChangeView: (
|
|
8512
|
-
E == null || E(r), V == null || V(!1), i == null || i(
|
|
8511
|
+
onChangeView: (L) => {
|
|
8512
|
+
E == null || E(r), V == null || V(!1), i == null || i(L);
|
|
8513
8513
|
},
|
|
8514
8514
|
disabled: J,
|
|
8515
8515
|
formHasChanges: s
|
|
@@ -8536,26 +8536,26 @@ function vd({
|
|
|
8536
8536
|
disabled: J,
|
|
8537
8537
|
tooltip: C("actions"),
|
|
8538
8538
|
items: e == null ? void 0 : e.action,
|
|
8539
|
-
onItemClick: async (
|
|
8540
|
-
|
|
8539
|
+
onItemClick: async (L) => {
|
|
8540
|
+
!L || !(await Ft({
|
|
8541
8541
|
onFormSave: o
|
|
8542
|
-
})).succeed || U(
|
|
8542
|
+
})).succeed || U(L);
|
|
8543
8543
|
}
|
|
8544
8544
|
}), /* @__PURE__ */ n(Dt, {
|
|
8545
8545
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8546
8546
|
disabled: J,
|
|
8547
8547
|
tooltip: C("reports"),
|
|
8548
8548
|
items: e == null ? void 0 : e.print,
|
|
8549
|
-
onItemClick: async (
|
|
8550
|
-
if (
|
|
8549
|
+
onItemClick: async (L) => {
|
|
8550
|
+
if (!L)
|
|
8551
8551
|
return;
|
|
8552
8552
|
const B = await Ft({
|
|
8553
8553
|
onFormSave: o
|
|
8554
8554
|
});
|
|
8555
8555
|
!B.succeed || U({
|
|
8556
|
-
|
|
8556
|
+
...L,
|
|
8557
8557
|
datas: {
|
|
8558
|
-
|
|
8558
|
+
...L.datas || {},
|
|
8559
8559
|
ids: [B.currentId]
|
|
8560
8560
|
}
|
|
8561
8561
|
});
|
|
@@ -8565,27 +8565,27 @@ function vd({
|
|
|
8565
8565
|
disabled: J,
|
|
8566
8566
|
tooltip: C("related"),
|
|
8567
8567
|
items: e == null ? void 0 : e.relate,
|
|
8568
|
-
onItemClick: async (
|
|
8569
|
-
|
|
8568
|
+
onItemClick: async (L) => {
|
|
8569
|
+
!L || !(await Ft({
|
|
8570
8570
|
onFormSave: o
|
|
8571
8571
|
})).succeed || F({
|
|
8572
|
-
relateData:
|
|
8572
|
+
relateData: L,
|
|
8573
8573
|
values: b.current.getValues(),
|
|
8574
8574
|
fields: b.current.getFields(),
|
|
8575
|
-
action_id:
|
|
8576
|
-
action_type:
|
|
8575
|
+
action_id: L.id,
|
|
8576
|
+
action_type: L.type
|
|
8577
8577
|
});
|
|
8578
8578
|
}
|
|
8579
8579
|
}), /* @__PURE__ */ n(yd, {
|
|
8580
8580
|
disabled: J,
|
|
8581
8581
|
attachments: D,
|
|
8582
8582
|
onAddNewAttachment: async () => {
|
|
8583
|
-
const
|
|
8583
|
+
const L = await Ft({
|
|
8584
8584
|
onFormSave: o
|
|
8585
8585
|
});
|
|
8586
|
-
if (
|
|
8586
|
+
if (!L.succeed)
|
|
8587
8587
|
return;
|
|
8588
|
-
const B =
|
|
8588
|
+
const B = L.currentId, te = m;
|
|
8589
8589
|
k({
|
|
8590
8590
|
model: "ir.attachment",
|
|
8591
8591
|
values: {
|
|
@@ -8599,24 +8599,24 @@ function vd({
|
|
|
8599
8599
|
});
|
|
8600
8600
|
},
|
|
8601
8601
|
onListAllAttachments: async () => {
|
|
8602
|
-
const
|
|
8602
|
+
const L = await Ft({
|
|
8603
8603
|
onFormSave: o
|
|
8604
8604
|
});
|
|
8605
|
-
if (
|
|
8605
|
+
if (!L.succeed)
|
|
8606
8606
|
return;
|
|
8607
|
-
const B =
|
|
8607
|
+
const B = L.currentId;
|
|
8608
8608
|
k({
|
|
8609
8609
|
model: "ir.attachment",
|
|
8610
8610
|
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${B}`]],
|
|
8611
8611
|
initialViewType: "tree"
|
|
8612
8612
|
});
|
|
8613
8613
|
},
|
|
8614
|
-
onViewAttachmentDetails: async (
|
|
8614
|
+
onViewAttachmentDetails: async (L) => {
|
|
8615
8615
|
!(await Ft({
|
|
8616
8616
|
onFormSave: o
|
|
8617
8617
|
})).succeed || k({
|
|
8618
8618
|
model: "ir.attachment",
|
|
8619
|
-
res_id:
|
|
8619
|
+
res_id: L.id,
|
|
8620
8620
|
initialViewType: "form"
|
|
8621
8621
|
});
|
|
8622
8622
|
}
|
|
@@ -9033,14 +9033,14 @@ const _d = (e) => {
|
|
|
9033
9033
|
searchParams: C,
|
|
9034
9034
|
searchValues: w,
|
|
9035
9035
|
setSearchValues: S,
|
|
9036
|
-
currentView:
|
|
9036
|
+
currentView: $
|
|
9037
9037
|
} = d || {}, [R, F] = O(!0);
|
|
9038
9038
|
pe(() => {
|
|
9039
9039
|
var j;
|
|
9040
9040
|
(j = u.current) == null || j.refresh();
|
|
9041
9041
|
}, [C]), pe(() => {
|
|
9042
|
-
t.view_id !==
|
|
9043
|
-
}, [
|
|
9042
|
+
t.view_id !== $.view_id && F(!0);
|
|
9043
|
+
}, [$]);
|
|
9044
9044
|
const {
|
|
9045
9045
|
clear: k,
|
|
9046
9046
|
searchFilterLoading: M,
|
|
@@ -9244,14 +9244,14 @@ function Ad(e) {
|
|
|
9244
9244
|
} = e, {
|
|
9245
9245
|
previewFeatures: S
|
|
9246
9246
|
} = Y(Vd), {
|
|
9247
|
-
t:
|
|
9247
|
+
t: $,
|
|
9248
9248
|
lang: R
|
|
9249
9249
|
} = Y(ve), F = Y(Et), {
|
|
9250
9250
|
processAction: k
|
|
9251
9251
|
} = F || {}, [M, I] = O(!1), N = v !== void 0 && v.trim().length > 0;
|
|
9252
9252
|
function A() {
|
|
9253
9253
|
Wt({
|
|
9254
|
-
confirmMessage:
|
|
9254
|
+
confirmMessage: $("confirmRemove"),
|
|
9255
9255
|
lang: R,
|
|
9256
9256
|
onOk: () => {
|
|
9257
9257
|
j();
|
|
@@ -9263,10 +9263,10 @@ function Ad(e) {
|
|
|
9263
9263
|
try {
|
|
9264
9264
|
s == null || s(!0), await H.getHandler().delete({
|
|
9265
9265
|
model: d,
|
|
9266
|
-
ids: o.map((
|
|
9266
|
+
ids: o.map((L) => L.id)
|
|
9267
9267
|
}), c == null || c(void 0), m == null || m(void 0), (U = f == null ? void 0 : f.current) == null || U.refreshResults();
|
|
9268
|
-
} catch (
|
|
9269
|
-
Ge(
|
|
9268
|
+
} catch (L) {
|
|
9269
|
+
Ge(L);
|
|
9270
9270
|
} finally {
|
|
9271
9271
|
s == null || s(!1);
|
|
9272
9272
|
}
|
|
@@ -9275,16 +9275,16 @@ function Ad(e) {
|
|
|
9275
9275
|
var U;
|
|
9276
9276
|
try {
|
|
9277
9277
|
u == null || u(!0);
|
|
9278
|
-
const
|
|
9278
|
+
const L = o[0].id;
|
|
9279
9279
|
await H.getHandler().duplicate({
|
|
9280
|
-
id:
|
|
9280
|
+
id: L,
|
|
9281
9281
|
model: d,
|
|
9282
9282
|
context: {
|
|
9283
9283
|
...x
|
|
9284
9284
|
}
|
|
9285
9285
|
}) && ((U = f == null ? void 0 : f.current) == null || U.refreshResults());
|
|
9286
|
-
} catch (
|
|
9287
|
-
Ge(
|
|
9286
|
+
} catch (L) {
|
|
9287
|
+
Ge(L);
|
|
9288
9288
|
} finally {
|
|
9289
9289
|
u == null || u(!1);
|
|
9290
9290
|
}
|
|
@@ -9293,18 +9293,18 @@ function Ad(e) {
|
|
|
9293
9293
|
k == null || k({
|
|
9294
9294
|
actionData: U,
|
|
9295
9295
|
values: {
|
|
9296
|
-
active_id: o == null ? void 0 : o.map((
|
|
9297
|
-
active_ids: o == null ? void 0 : o.map((
|
|
9296
|
+
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
9297
|
+
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
9298
9298
|
},
|
|
9299
9299
|
fields: {},
|
|
9300
9300
|
context: {
|
|
9301
9301
|
...x,
|
|
9302
|
-
active_id: o == null ? void 0 : o.map((
|
|
9303
|
-
active_ids: o == null ? void 0 : o.map((
|
|
9302
|
+
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
9303
|
+
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
9304
9304
|
},
|
|
9305
9305
|
onRefreshParentValues: () => {
|
|
9306
|
-
var
|
|
9307
|
-
(
|
|
9306
|
+
var L;
|
|
9307
|
+
(L = f == null ? void 0 : f.current) == null || L.refreshResults();
|
|
9308
9308
|
}
|
|
9309
9309
|
});
|
|
9310
9310
|
}
|
|
@@ -9325,7 +9325,7 @@ function Ad(e) {
|
|
|
9325
9325
|
color: p ? "white" : void 0
|
|
9326
9326
|
}
|
|
9327
9327
|
}),
|
|
9328
|
-
tooltip:
|
|
9328
|
+
tooltip: $("advanced_search"),
|
|
9329
9329
|
type: p ? "primary" : "default",
|
|
9330
9330
|
onClick: () => {
|
|
9331
9331
|
h == null || h(!p);
|
|
@@ -9336,28 +9336,28 @@ function Ad(e) {
|
|
|
9336
9336
|
disabled: T
|
|
9337
9337
|
}), /* @__PURE__ */ n(ze, {
|
|
9338
9338
|
icon: /* @__PURE__ */ n(Un, {}),
|
|
9339
|
-
tooltip:
|
|
9339
|
+
tooltip: $("duplicate"),
|
|
9340
9340
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || T,
|
|
9341
9341
|
loading: l,
|
|
9342
9342
|
onClick: q
|
|
9343
9343
|
}), /* @__PURE__ */ n(ze, {
|
|
9344
9344
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
9345
|
-
tooltip:
|
|
9345
|
+
tooltip: $("delete"),
|
|
9346
9346
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
9347
9347
|
loading: a,
|
|
9348
9348
|
onClick: A
|
|
9349
9349
|
}), vt()]
|
|
9350
9350
|
}), /* @__PURE__ */ n(ze, {
|
|
9351
9351
|
icon: /* @__PURE__ */ n(zr, {}),
|
|
9352
|
-
tooltip:
|
|
9352
|
+
tooltip: $("showLogs"),
|
|
9353
9353
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
9354
9354
|
loading: !1,
|
|
9355
9355
|
onClick: () => {
|
|
9356
|
-
$o(d, o[0].id,
|
|
9356
|
+
$o(d, o[0].id, $);
|
|
9357
9357
|
}
|
|
9358
9358
|
}), /* @__PURE__ */ n(ze, {
|
|
9359
9359
|
icon: /* @__PURE__ */ n(dn, {}),
|
|
9360
|
-
tooltip:
|
|
9360
|
+
tooltip: $("refresh"),
|
|
9361
9361
|
disabled: l || a || T,
|
|
9362
9362
|
loading: !1,
|
|
9363
9363
|
onClick: () => {
|
|
@@ -9377,7 +9377,7 @@ function Ad(e) {
|
|
|
9377
9377
|
}), vt(), /* @__PURE__ */ n(Dt, {
|
|
9378
9378
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9379
9379
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
9380
|
-
tooltip:
|
|
9380
|
+
tooltip: $("actions"),
|
|
9381
9381
|
items: w == null ? void 0 : w.action,
|
|
9382
9382
|
onItemClick: (U) => {
|
|
9383
9383
|
!U || W(U);
|
|
@@ -9385,14 +9385,14 @@ function Ad(e) {
|
|
|
9385
9385
|
}), /* @__PURE__ */ n(Dt, {
|
|
9386
9386
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9387
9387
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
|
|
9388
|
-
tooltip:
|
|
9388
|
+
tooltip: $("reports"),
|
|
9389
9389
|
items: w == null ? void 0 : w.print,
|
|
9390
9390
|
onItemClick: (U) => {
|
|
9391
9391
|
!U || W({
|
|
9392
9392
|
...U,
|
|
9393
9393
|
datas: {
|
|
9394
9394
|
...U.datas || {},
|
|
9395
|
-
ids: o.map((
|
|
9395
|
+
ids: o.map((L) => L.id)
|
|
9396
9396
|
}
|
|
9397
9397
|
});
|
|
9398
9398
|
}
|
|
@@ -9426,25 +9426,25 @@ function Ad(e) {
|
|
|
9426
9426
|
})]
|
|
9427
9427
|
})
|
|
9428
9428
|
}),
|
|
9429
|
-
tooltip:
|
|
9429
|
+
tooltip: $("export"),
|
|
9430
9430
|
items: [{
|
|
9431
9431
|
id: "print_screen",
|
|
9432
|
-
name:
|
|
9432
|
+
name: $("printScreen")
|
|
9433
9433
|
}, {
|
|
9434
9434
|
id: "export",
|
|
9435
|
-
name:
|
|
9435
|
+
name: $("advancedExport")
|
|
9436
9436
|
}],
|
|
9437
9437
|
onItemClick: (U) => {
|
|
9438
9438
|
if (U.id === "print_screen") {
|
|
9439
|
-
let
|
|
9440
|
-
|
|
9439
|
+
let L = (o == null ? void 0 : o.map((B) => B.id)) || [];
|
|
9440
|
+
L.length === 0 && (L = (V == null ? void 0 : V.map((B) => B.id)) || []), W({
|
|
9441
9441
|
id: -1,
|
|
9442
9442
|
model: d,
|
|
9443
9443
|
report_name: "printscreen.list",
|
|
9444
9444
|
type: "ir.actions.report.xml",
|
|
9445
9445
|
datas: {
|
|
9446
9446
|
model: d,
|
|
9447
|
-
ids:
|
|
9447
|
+
ids: L
|
|
9448
9448
|
}
|
|
9449
9449
|
});
|
|
9450
9450
|
return;
|
|
@@ -9639,7 +9639,7 @@ function Nd(e, t) {
|
|
|
9639
9639
|
action_type: p,
|
|
9640
9640
|
treeExpandable: h = !1,
|
|
9641
9641
|
limit: g
|
|
9642
|
-
} = e, [v, T] = O(), [D, b] = O([]), [V, _] = O(!0), E = m || void 0, [x, C] = O(E), [w, S] = O([]), [
|
|
9642
|
+
} = e, [v, T] = O(), [D, b] = O([]), [V, _] = O(!0), E = m || void 0, [x, C] = O(E), [w, S] = O([]), [$, R] = O(), [F, k] = O([]), [M, I] = O(), [N, A] = O(0), [j, q] = O(!1), [W, J] = O(!1), [U, L] = O(), {
|
|
9643
9643
|
t: B
|
|
9644
9644
|
} = Y(ve), te = fe(), Z = fe(), ae = Y(at), {
|
|
9645
9645
|
setCurrentView: X,
|
|
@@ -9651,7 +9651,7 @@ function Nd(e, t) {
|
|
|
9651
9651
|
} = ae || {};
|
|
9652
9652
|
Ki("ctrl+g,command+g", (ee) => {
|
|
9653
9653
|
ee.preventDefault(), je();
|
|
9654
|
-
}, [be, he, v,
|
|
9654
|
+
}, [be, he, v, $, F]);
|
|
9655
9655
|
function Pe(ee) {
|
|
9656
9656
|
C(ee), z == null || z(ee);
|
|
9657
9657
|
}
|
|
@@ -9861,7 +9861,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9861
9861
|
currentId: x,
|
|
9862
9862
|
setCurrentId: Pe,
|
|
9863
9863
|
setCurrentItemIndex: R,
|
|
9864
|
-
currentItemIndex:
|
|
9864
|
+
currentItemIndex: $,
|
|
9865
9865
|
results: F,
|
|
9866
9866
|
setResults: k,
|
|
9867
9867
|
currentModel: i,
|
|
@@ -9871,7 +9871,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9871
9871
|
setTotalItems: A,
|
|
9872
9872
|
selectedRowItems: w,
|
|
9873
9873
|
setSelectedRowItems: S,
|
|
9874
|
-
setSearchTreeNameSearch:
|
|
9874
|
+
setSearchTreeNameSearch: L,
|
|
9875
9875
|
searchTreeNameSearch: U,
|
|
9876
9876
|
goToResourceId: we,
|
|
9877
9877
|
limit: g,
|
|
@@ -10048,7 +10048,7 @@ function Ud(e) {
|
|
|
10048
10048
|
domain: s = [],
|
|
10049
10049
|
visible: a = !0,
|
|
10050
10050
|
parentContext: l = {}
|
|
10051
|
-
} = e, [u, d] = O(!1), [f, c] = O(!1), [m, y] = O(), [p, h] = O(), [g, v] = O(), [T, D] = O(1), [b, V] = O(0), _ = fe(Wd), E = fe([]), [x, C] = O(0), [w, S] = O([]), [
|
|
10051
|
+
} = e, [u, d] = O(!1), [f, c] = O(!1), [m, y] = O(), [p, h] = O(), [g, v] = O(), [T, D] = O(1), [b, V] = O(0), _ = fe(Wd), E = fe([]), [x, C] = O(0), [w, S] = O([]), [$, R] = O(void 0), [F, k] = O(), [M, I] = O(), [N, A] = O(), [j, q] = O(!1), W = fe([]), J = (z) => {
|
|
10052
10052
|
q(!0), D(z), V((z - 1) * _.current);
|
|
10053
10053
|
}, U = async () => {
|
|
10054
10054
|
const z = W.current.length > 0 ? W.current : s, he = hn(E.current, z), {
|
|
@@ -10080,7 +10080,7 @@ function Ud(e) {
|
|
|
10080
10080
|
q(!1), S(We);
|
|
10081
10081
|
const ie = await Ee;
|
|
10082
10082
|
C(ie);
|
|
10083
|
-
},
|
|
10083
|
+
}, L = async () => {
|
|
10084
10084
|
try {
|
|
10085
10085
|
q(!0), await U();
|
|
10086
10086
|
} catch (z) {
|
|
@@ -10088,7 +10088,7 @@ function Ud(e) {
|
|
|
10088
10088
|
}
|
|
10089
10089
|
};
|
|
10090
10090
|
pe(() => {
|
|
10091
|
-
!f || a &&
|
|
10091
|
+
!f || a && L();
|
|
10092
10092
|
}, [T, b, f, a]);
|
|
10093
10093
|
const B = async (z) => {
|
|
10094
10094
|
c(!1), d(!0), A(void 0);
|
|
@@ -10152,7 +10152,7 @@ function Ud(e) {
|
|
|
10152
10152
|
onRequestPageChange: J,
|
|
10153
10153
|
loading: j,
|
|
10154
10154
|
onRowClicked: ae,
|
|
10155
|
-
colorsForResults:
|
|
10155
|
+
colorsForResults: $,
|
|
10156
10156
|
sorter: F,
|
|
10157
10157
|
onChangeSort: (z) => {
|
|
10158
10158
|
k == null || k(z);
|
|
@@ -10232,11 +10232,11 @@ function qd(e, t) {
|
|
|
10232
10232
|
try {
|
|
10233
10233
|
const x = await T(), C = await b(x), w = x.fields[On].relation, S = C[On].items;
|
|
10234
10234
|
g.current = x.fields;
|
|
10235
|
-
const
|
|
10235
|
+
const $ = await D({
|
|
10236
10236
|
items: S,
|
|
10237
10237
|
model: w,
|
|
10238
10238
|
context: i
|
|
10239
|
-
}), R = await V(
|
|
10239
|
+
}), R = await V($);
|
|
10240
10240
|
l(R), d(!1), m(!1);
|
|
10241
10241
|
} catch (x) {
|
|
10242
10242
|
c(JSON.stringify(x));
|
|
@@ -10288,8 +10288,8 @@ function qd(e, t) {
|
|
|
10288
10288
|
values: S
|
|
10289
10289
|
} = w;
|
|
10290
10290
|
if (S.action_id && S.action_id.length > 0) {
|
|
10291
|
-
const
|
|
10292
|
-
actionId:
|
|
10291
|
+
const $ = parseInt(S.action_id[0], 10), R = await Pd({
|
|
10292
|
+
actionId: $,
|
|
10293
10293
|
rootContext: i
|
|
10294
10294
|
});
|
|
10295
10295
|
C.push({
|
|
@@ -10331,7 +10331,7 @@ function qd(e, t) {
|
|
|
10331
10331
|
position: JSON.stringify(F).replace(/"/g, "'")
|
|
10332
10332
|
}
|
|
10333
10333
|
};
|
|
10334
|
-
}),
|
|
10334
|
+
}), $ = {
|
|
10335
10335
|
fields: h.current,
|
|
10336
10336
|
items: S
|
|
10337
10337
|
};
|
|
@@ -10339,7 +10339,7 @@ function qd(e, t) {
|
|
|
10339
10339
|
model: r,
|
|
10340
10340
|
id: o,
|
|
10341
10341
|
values: {
|
|
10342
|
-
[On]:
|
|
10342
|
+
[On]: $
|
|
10343
10343
|
},
|
|
10344
10344
|
fields: g.current,
|
|
10345
10345
|
context: i
|
|
@@ -10360,7 +10360,7 @@ function qd(e, t) {
|
|
|
10360
10360
|
actionData: w,
|
|
10361
10361
|
values: S
|
|
10362
10362
|
} = x, {
|
|
10363
|
-
position:
|
|
10363
|
+
position: $,
|
|
10364
10364
|
id: R
|
|
10365
10365
|
} = S, {
|
|
10366
10366
|
actionId: F,
|
|
@@ -10376,7 +10376,7 @@ function qd(e, t) {
|
|
|
10376
10376
|
} = w;
|
|
10377
10377
|
let U = {};
|
|
10378
10378
|
try {
|
|
10379
|
-
U = JSON.parse(
|
|
10379
|
+
U = JSON.parse($.replace(/'/g, '"'));
|
|
10380
10380
|
} catch {
|
|
10381
10381
|
U = {
|
|
10382
10382
|
x: C * 2,
|
|
@@ -10385,9 +10385,9 @@ function qd(e, t) {
|
|
|
10385
10385
|
h: 3
|
|
10386
10386
|
};
|
|
10387
10387
|
}
|
|
10388
|
-
let
|
|
10388
|
+
let L = null;
|
|
10389
10389
|
if ((W == null ? void 0 : W.type) === "graph")
|
|
10390
|
-
|
|
10390
|
+
L = /* @__PURE__ */ n(gn, {
|
|
10391
10391
|
view_id: N.filter((Z) => Z[1] === "graph")[0][0],
|
|
10392
10392
|
model: A,
|
|
10393
10393
|
context: j,
|
|
@@ -10395,12 +10395,12 @@ function qd(e, t) {
|
|
|
10395
10395
|
limit: J
|
|
10396
10396
|
});
|
|
10397
10397
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
10398
|
-
|
|
10398
|
+
L = /* @__PURE__ */ n(Gd, {
|
|
10399
10399
|
model: A,
|
|
10400
10400
|
actionDomain: q
|
|
10401
10401
|
});
|
|
10402
10402
|
else if ((W == null ? void 0 : W.type) === "tree")
|
|
10403
|
-
|
|
10403
|
+
L = /* @__PURE__ */ n(Ud, {
|
|
10404
10404
|
model: A,
|
|
10405
10405
|
domain: q,
|
|
10406
10406
|
view_id: N.filter((Z) => Z[1] === "tree")[0][0],
|
|
@@ -10433,7 +10433,7 @@ function qd(e, t) {
|
|
|
10433
10433
|
...W,
|
|
10434
10434
|
id: W.id[0]
|
|
10435
10435
|
} : W;
|
|
10436
|
-
|
|
10436
|
+
L = /* @__PURE__ */ n(Po, {
|
|
10437
10437
|
action_id: F,
|
|
10438
10438
|
action_type: k,
|
|
10439
10439
|
tabKey: M,
|
|
@@ -10476,7 +10476,7 @@ function qd(e, t) {
|
|
|
10476
10476
|
parms: U,
|
|
10477
10477
|
action: B,
|
|
10478
10478
|
openAction: y,
|
|
10479
|
-
children:
|
|
10479
|
+
children: L
|
|
10480
10480
|
}, R);
|
|
10481
10481
|
})
|
|
10482
10482
|
});
|
|
@@ -10541,9 +10541,9 @@ const zd = bt(qd), Jd = (e) => {
|
|
|
10541
10541
|
...y
|
|
10542
10542
|
}
|
|
10543
10543
|
})).map((S) => {
|
|
10544
|
-
const
|
|
10545
|
-
let R =
|
|
10546
|
-
return Array.isArray(
|
|
10544
|
+
const $ = S[h];
|
|
10545
|
+
let R = $;
|
|
10546
|
+
return Array.isArray($) && (R = $[1]), {
|
|
10547
10547
|
label: R,
|
|
10548
10548
|
value: S.id
|
|
10549
10549
|
};
|
|
@@ -10814,7 +10814,7 @@ function du(e, t) {
|
|
|
10814
10814
|
Ge("Action type not supported");
|
|
10815
10815
|
return;
|
|
10816
10816
|
}
|
|
10817
|
-
const [S,
|
|
10817
|
+
const [S, $] = b.split(","), R = parseInt($), F = wt({
|
|
10818
10818
|
context: w.context,
|
|
10819
10819
|
values: i,
|
|
10820
10820
|
fields: {}
|
|
@@ -10833,10 +10833,10 @@ function du(e, t) {
|
|
|
10833
10833
|
view_type: j,
|
|
10834
10834
|
limit: q
|
|
10835
10835
|
} = w, W = j === "tree", J = [];
|
|
10836
|
-
for (const
|
|
10837
|
-
const [B, te] =
|
|
10836
|
+
for (const L of I) {
|
|
10837
|
+
const [B, te] = L;
|
|
10838
10838
|
if (B)
|
|
10839
|
-
J.push(
|
|
10839
|
+
J.push(L);
|
|
10840
10840
|
else if (te === "dashboard")
|
|
10841
10841
|
J.push([void 0, "dashboard"]);
|
|
10842
10842
|
else {
|
|
@@ -10856,15 +10856,15 @@ function du(e, t) {
|
|
|
10856
10856
|
}
|
|
10857
10857
|
let U;
|
|
10858
10858
|
if (E) {
|
|
10859
|
-
const [
|
|
10859
|
+
const [L, B] = J.find(([te, Z]) => Z === E);
|
|
10860
10860
|
U = {
|
|
10861
|
-
id:
|
|
10861
|
+
id: L,
|
|
10862
10862
|
type: B
|
|
10863
10863
|
};
|
|
10864
10864
|
} else {
|
|
10865
|
-
const [
|
|
10865
|
+
const [L, B] = J[0];
|
|
10866
10866
|
U = {
|
|
10867
|
-
id:
|
|
10867
|
+
id: L,
|
|
10868
10868
|
type: B
|
|
10869
10869
|
};
|
|
10870
10870
|
}
|
|
@@ -10914,11 +10914,11 @@ function du(e, t) {
|
|
|
10914
10914
|
res_model: C,
|
|
10915
10915
|
context: w,
|
|
10916
10916
|
domain: S,
|
|
10917
|
-
views:
|
|
10917
|
+
views: $,
|
|
10918
10918
|
target: R,
|
|
10919
10919
|
string: F,
|
|
10920
10920
|
limit: k
|
|
10921
|
-
} = b, [M, I] =
|
|
10921
|
+
} = b, [M, I] = $[0], N = {
|
|
10922
10922
|
id: M,
|
|
10923
10923
|
type: I
|
|
10924
10924
|
}, A = wt({
|
|
@@ -10946,7 +10946,7 @@ function du(e, t) {
|
|
|
10946
10946
|
D({
|
|
10947
10947
|
model: C,
|
|
10948
10948
|
target: R,
|
|
10949
|
-
views:
|
|
10949
|
+
views: $,
|
|
10950
10950
|
context: {
|
|
10951
10951
|
...o,
|
|
10952
10952
|
...A
|
|
@@ -10972,7 +10972,7 @@ function du(e, t) {
|
|
|
10972
10972
|
context: w.context,
|
|
10973
10973
|
values: i,
|
|
10974
10974
|
fields: {}
|
|
10975
|
-
}),
|
|
10975
|
+
}), $ = w.domain ? await H.getHandler().evalDomain({
|
|
10976
10976
|
domain: w.domain,
|
|
10977
10977
|
values: i,
|
|
10978
10978
|
context: {
|
|
@@ -10988,8 +10988,8 @@ function du(e, t) {
|
|
|
10988
10988
|
limit: N
|
|
10989
10989
|
} = w, A = I === "tree", j = [];
|
|
10990
10990
|
for (const U of F) {
|
|
10991
|
-
const [
|
|
10992
|
-
if (
|
|
10991
|
+
const [L, B] = U;
|
|
10992
|
+
if (L)
|
|
10993
10993
|
j.push(U);
|
|
10994
10994
|
else if (B === "dashboard")
|
|
10995
10995
|
j.push([void 0, "dashboard"]);
|
|
@@ -10999,7 +10999,7 @@ function du(e, t) {
|
|
|
10999
10999
|
} = await H.getHandler().getView({
|
|
11000
11000
|
model: R,
|
|
11001
11001
|
type: B,
|
|
11002
|
-
id:
|
|
11002
|
+
id: L,
|
|
11003
11003
|
context: {
|
|
11004
11004
|
...o,
|
|
11005
11005
|
...S
|
|
@@ -11010,7 +11010,7 @@ function du(e, t) {
|
|
|
11010
11010
|
}
|
|
11011
11011
|
let q, W;
|
|
11012
11012
|
if (x == null) {
|
|
11013
|
-
const U = j.find((
|
|
11013
|
+
const U = j.find((L) => L[0] === void 0);
|
|
11014
11014
|
q = void 0, W = U[1];
|
|
11015
11015
|
} else
|
|
11016
11016
|
[q, W] = j.find((U) => U[0] === void 0 ? !1 : U[0] === x);
|
|
@@ -11019,7 +11019,7 @@ function du(e, t) {
|
|
|
11019
11019
|
type: W
|
|
11020
11020
|
};
|
|
11021
11021
|
D({
|
|
11022
|
-
domain:
|
|
11022
|
+
domain: $,
|
|
11023
11023
|
context: {
|
|
11024
11024
|
...o,
|
|
11025
11025
|
...S
|
|
@@ -11063,7 +11063,7 @@ function du(e, t) {
|
|
|
11063
11063
|
target: C,
|
|
11064
11064
|
initialView: w,
|
|
11065
11065
|
action_id: S,
|
|
11066
|
-
action_type:
|
|
11066
|
+
action_type: $,
|
|
11067
11067
|
res_id: R,
|
|
11068
11068
|
values: F,
|
|
11069
11069
|
forced_values: k,
|
|
@@ -11091,7 +11091,7 @@ function du(e, t) {
|
|
|
11091
11091
|
},
|
|
11092
11092
|
actionData: {
|
|
11093
11093
|
action_id: S,
|
|
11094
|
-
action_type:
|
|
11094
|
+
action_type: $,
|
|
11095
11095
|
res_id: R,
|
|
11096
11096
|
view_id: A.view_id
|
|
11097
11097
|
}
|
|
@@ -11105,11 +11105,11 @@ function du(e, t) {
|
|
|
11105
11105
|
title: x,
|
|
11106
11106
|
action: {
|
|
11107
11107
|
id: S,
|
|
11108
|
-
type:
|
|
11108
|
+
type: $
|
|
11109
11109
|
},
|
|
11110
11110
|
content: /* @__PURE__ */ n(Po, {
|
|
11111
11111
|
action_id: S,
|
|
11112
|
-
action_type:
|
|
11112
|
+
action_type: $,
|
|
11113
11113
|
tabKey: N,
|
|
11114
11114
|
title: x,
|
|
11115
11115
|
views: E,
|
|
@@ -11330,7 +11330,7 @@ const {
|
|
|
11330
11330
|
});
|
|
11331
11331
|
q !== !1 && p(q), a(q !== !1);
|
|
11332
11332
|
}
|
|
11333
|
-
async function
|
|
11333
|
+
async function $() {
|
|
11334
11334
|
u(!1), E == null || E({
|
|
11335
11335
|
model: "ir.ui.view_sc"
|
|
11336
11336
|
});
|
|
@@ -11361,7 +11361,7 @@ const {
|
|
|
11361
11361
|
color: g.colorPrimary,
|
|
11362
11362
|
cursor: "pointer"
|
|
11363
11363
|
},
|
|
11364
|
-
onClick:
|
|
11364
|
+
onClick: $
|
|
11365
11365
|
})
|
|
11366
11366
|
})
|
|
11367
11367
|
})]
|