@gisce/react-ooui 2.4.1 → 2.5.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/react-ooui.es.js
CHANGED
|
@@ -327,8 +327,8 @@ const to = (e) => {
|
|
|
327
327
|
if (m)
|
|
328
328
|
return /* @__PURE__ */ r(st, {});
|
|
329
329
|
if (l) {
|
|
330
|
-
const
|
|
331
|
-
return
|
|
330
|
+
const S = dt(l);
|
|
331
|
+
return S && /* @__PURE__ */ r(S, {});
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
return /* @__PURE__ */ r(Ce, { ooui: t, children: /* @__PURE__ */ r(
|
|
@@ -356,7 +356,7 @@ const to = (e) => {
|
|
|
356
356
|
context: c,
|
|
357
357
|
readOnly: m
|
|
358
358
|
} = n || {}, p = ne(Be), { executeButtonAction: h } = p || {}, [g, y] = b(!1), { t: w } = we();
|
|
359
|
-
function
|
|
359
|
+
function S() {
|
|
360
360
|
if (g)
|
|
361
361
|
return /* @__PURE__ */ r(st, {});
|
|
362
362
|
if (u) {
|
|
@@ -364,7 +364,7 @@ const to = (e) => {
|
|
|
364
364
|
return R && /* @__PURE__ */ r(R, {});
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
async function
|
|
367
|
+
async function x() {
|
|
368
368
|
l && o && (y(!0), await h({ type: l, action: o, context: c }), y(!1));
|
|
369
369
|
}
|
|
370
370
|
function C() {
|
|
@@ -373,12 +373,12 @@ const to = (e) => {
|
|
|
373
373
|
confirmMessage: d,
|
|
374
374
|
t: w,
|
|
375
375
|
onOk: () => {
|
|
376
|
-
|
|
376
|
+
x();
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
x();
|
|
382
382
|
}
|
|
383
383
|
if (t.buttons.length === 0)
|
|
384
384
|
return null;
|
|
@@ -398,7 +398,7 @@ const to = (e) => {
|
|
|
398
398
|
}
|
|
399
399
|
),
|
|
400
400
|
children: [
|
|
401
|
-
|
|
401
|
+
S(),
|
|
402
402
|
s
|
|
403
403
|
]
|
|
404
404
|
}
|
|
@@ -424,7 +424,7 @@ const to = (e) => {
|
|
|
424
424
|
async function w() {
|
|
425
425
|
y(!0), await i({ type: u, action: a, context: m }), y(!1);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function S() {
|
|
428
428
|
if (f) {
|
|
429
429
|
Gt({
|
|
430
430
|
confirmMessage: f,
|
|
@@ -437,7 +437,7 @@ const to = (e) => {
|
|
|
437
437
|
}
|
|
438
438
|
w();
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function x() {
|
|
441
441
|
if (g)
|
|
442
442
|
return /* @__PURE__ */ r(st, {});
|
|
443
443
|
if (c) {
|
|
@@ -449,8 +449,8 @@ const to = (e) => {
|
|
|
449
449
|
lr.Item,
|
|
450
450
|
{
|
|
451
451
|
disabled: !d || p,
|
|
452
|
-
onClick:
|
|
453
|
-
icon:
|
|
452
|
+
onClick: S,
|
|
453
|
+
icon: x(),
|
|
454
454
|
danger: h,
|
|
455
455
|
children: l
|
|
456
456
|
},
|
|
@@ -523,19 +523,19 @@ const no = (e) => {
|
|
|
523
523
|
}, ro = (e) => {
|
|
524
524
|
const { visible: t, onCloseModal: n, model: i, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = hn(), { t: d } = we(), [u, f] = b([]), [c, m] = b(!1), [p, h] = b(!1), [g, y] = b({}), w = ae();
|
|
525
525
|
pe(() => {
|
|
526
|
-
t ?
|
|
526
|
+
t ? S() : y({});
|
|
527
527
|
}, [t]);
|
|
528
|
-
async function
|
|
528
|
+
async function S() {
|
|
529
529
|
m(!0);
|
|
530
530
|
try {
|
|
531
|
-
const F = await
|
|
531
|
+
const F = await x();
|
|
532
532
|
await C(F);
|
|
533
533
|
} catch (F) {
|
|
534
534
|
Xe(F);
|
|
535
535
|
}
|
|
536
536
|
m(!1);
|
|
537
537
|
}
|
|
538
|
-
async function
|
|
538
|
+
async function x() {
|
|
539
539
|
const T = (await E.getHandler().search({
|
|
540
540
|
params: [["translatable", "=", "1"]],
|
|
541
541
|
fieldsToRetrieve: ["code", "name"],
|
|
@@ -1027,7 +1027,7 @@ const Zn = async (e) => {
|
|
|
1027
1027
|
return [
|
|
1028
1028
|
t.map((g) => {
|
|
1029
1029
|
const y = m.find(
|
|
1030
|
-
(
|
|
1030
|
+
(S) => S.id === g.id
|
|
1031
1031
|
), w = {
|
|
1032
1032
|
...g
|
|
1033
1033
|
};
|
|
@@ -1086,7 +1086,7 @@ const Zn = async (e) => {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(Ys, { ooui: t, views: u }) });
|
|
1088
1088
|
}, Ys = (e) => {
|
|
1089
|
-
const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = b(!1), [d, u] = b(), [f, c] = b(!1), [m, p] = b(), { relation: h, context: g, readOnly: y, summaryField: w, titleField:
|
|
1089
|
+
const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = b(!1), [d, u] = b(), [f, c] = b(!1), [m, p] = b(), { relation: h, context: g, readOnly: y, summaryField: w, titleField: S } = i, x = s.filter((F) => F.values), C = ne(Be), { getContext: R } = C || {};
|
|
1090
1090
|
Ft(() => {
|
|
1091
1091
|
D();
|
|
1092
1092
|
}, [s]);
|
|
@@ -1119,7 +1119,7 @@ const Zn = async (e) => {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
return d ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ k(Q, { children: [
|
|
1122
|
-
/* @__PURE__ */ r(On, { style: { padding: "1rem" }, children:
|
|
1122
|
+
/* @__PURE__ */ r(On, { style: { padding: "1rem" }, children: x.map((F, T) => {
|
|
1123
1123
|
var _, v;
|
|
1124
1124
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ k(On.Item, { children: [
|
|
1125
1125
|
/* @__PURE__ */ r(
|
|
@@ -1128,12 +1128,12 @@ const Zn = async (e) => {
|
|
|
1128
1128
|
style: { display: "inline-block", cursor: "pointer" },
|
|
1129
1129
|
onClick: () => {
|
|
1130
1130
|
p(
|
|
1131
|
-
|
|
1131
|
+
x.find(
|
|
1132
1132
|
(O) => F.id === O.id
|
|
1133
1133
|
)
|
|
1134
1134
|
), c(!0);
|
|
1135
1135
|
},
|
|
1136
|
-
children: /* @__PURE__ */ r("strong", { children: (_ = F.values) == null ? void 0 : _[
|
|
1136
|
+
children: /* @__PURE__ */ r("strong", { children: (_ = F.values) == null ? void 0 : _[S] })
|
|
1137
1137
|
}
|
|
1138
1138
|
),
|
|
1139
1139
|
/* @__PURE__ */ r("br", {}),
|
|
@@ -1143,7 +1143,7 @@ const Zn = async (e) => {
|
|
|
1143
1143
|
style: { display: "inline-block", cursor: "pointer" },
|
|
1144
1144
|
onClick: () => {
|
|
1145
1145
|
p(
|
|
1146
|
-
|
|
1146
|
+
x.find(
|
|
1147
1147
|
(O) => F.id === O.id
|
|
1148
1148
|
)
|
|
1149
1149
|
), c(!0);
|
|
@@ -1356,14 +1356,14 @@ const Nt = ({
|
|
|
1356
1356
|
}, oa = (e) => {
|
|
1357
1357
|
const { value: t, ooui: n, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((V) => V.operation !== "pendingRemove").map((V) => V.id), [a, l] = b([]), [d, u] = b(), [f, c] = b(!1), { relation: m, context: p, readOnly: h, field: g } = n, y = ne(Be), { getContext: w } = y || {};
|
|
1358
1358
|
Ft(() => {
|
|
1359
|
-
|
|
1359
|
+
x();
|
|
1360
1360
|
}, [o]);
|
|
1361
|
-
const
|
|
1361
|
+
const S = (V) => {
|
|
1362
1362
|
i == null || i({
|
|
1363
1363
|
items: V
|
|
1364
1364
|
});
|
|
1365
1365
|
};
|
|
1366
|
-
async function
|
|
1366
|
+
async function x() {
|
|
1367
1367
|
c(!0);
|
|
1368
1368
|
let V = [];
|
|
1369
1369
|
try {
|
|
@@ -1403,7 +1403,7 @@ const Nt = ({
|
|
|
1403
1403
|
} : T : { id: T.id, operation: "pendingRemove" }), F = D.map((T) => T.id);
|
|
1404
1404
|
V.filter((T) => !F.includes(T)).map((T) => {
|
|
1405
1405
|
D.push({ id: T, operation: "pendingLink" });
|
|
1406
|
-
}),
|
|
1406
|
+
}), S(D);
|
|
1407
1407
|
}, R = (V) => {
|
|
1408
1408
|
const { label: D, closable: F, onClose: T } = V, _ = (O) => {
|
|
1409
1409
|
O.preventDefault(), O.stopPropagation();
|
|
@@ -1660,8 +1660,8 @@ const Nt = ({
|
|
|
1660
1660
|
currentModel: g,
|
|
1661
1661
|
sorter: y,
|
|
1662
1662
|
setSorter: w,
|
|
1663
|
-
totalItems:
|
|
1664
|
-
setTotalItems:
|
|
1663
|
+
totalItems: S,
|
|
1664
|
+
setTotalItems: x,
|
|
1665
1665
|
setSelectedRowItems: C,
|
|
1666
1666
|
selectedRowItems: R,
|
|
1667
1667
|
searchTreeNameSearch: V,
|
|
@@ -1733,8 +1733,8 @@ const Nt = ({
|
|
|
1733
1733
|
setSearchVisible: le,
|
|
1734
1734
|
sorter: y,
|
|
1735
1735
|
setSorter: w,
|
|
1736
|
-
totalItems:
|
|
1737
|
-
setTotalItems:
|
|
1736
|
+
totalItems: S,
|
|
1737
|
+
setTotalItems: x,
|
|
1738
1738
|
searchTreeNameSearch: V,
|
|
1739
1739
|
setSearchTreeNameSearch: D,
|
|
1740
1740
|
setGraphIsLoading: re,
|
|
@@ -1845,7 +1845,7 @@ const Nt = ({
|
|
|
1845
1845
|
s.current = !1, clearInterval(o.current), l(!1), Xe(T.exception || T);
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
async function
|
|
1848
|
+
async function S({
|
|
1849
1849
|
actionData: D,
|
|
1850
1850
|
fields: F,
|
|
1851
1851
|
values: T,
|
|
@@ -1861,7 +1861,7 @@ const Nt = ({
|
|
|
1861
1861
|
context: _
|
|
1862
1862
|
});
|
|
1863
1863
|
if (O === "ir.actions.act_window")
|
|
1864
|
-
return await
|
|
1864
|
+
return await x({ actionData: D, fields: F, values: T, context: _ });
|
|
1865
1865
|
if (O === "ir.actions.act_url")
|
|
1866
1866
|
window.open(
|
|
1867
1867
|
ta(D.url, { ...T, context: _ }),
|
|
@@ -1870,7 +1870,7 @@ const Nt = ({
|
|
|
1870
1870
|
else
|
|
1871
1871
|
return Xe(`${O} action not supported`), {};
|
|
1872
1872
|
}
|
|
1873
|
-
async function
|
|
1873
|
+
async function x({
|
|
1874
1874
|
actionData: D,
|
|
1875
1875
|
fields: F = {},
|
|
1876
1876
|
values: T = {},
|
|
@@ -1970,7 +1970,7 @@ const Nt = ({
|
|
|
1970
1970
|
Pt.Provider,
|
|
1971
1971
|
{
|
|
1972
1972
|
value: {
|
|
1973
|
-
processAction:
|
|
1973
|
+
processAction: S,
|
|
1974
1974
|
globalValues: i
|
|
1975
1975
|
},
|
|
1976
1976
|
children: /* @__PURE__ */ k(Q, { children: [
|
|
@@ -2104,8 +2104,8 @@ function Fa(e, t) {
|
|
|
2104
2104
|
postSaveAction: g,
|
|
2105
2105
|
insideButtonModal: y = !1,
|
|
2106
2106
|
parentContext: w = {},
|
|
2107
|
-
actionDomain:
|
|
2108
|
-
visible:
|
|
2107
|
+
actionDomain: S,
|
|
2108
|
+
visible: x = !0,
|
|
2109
2109
|
rootForm: C = !1,
|
|
2110
2110
|
defaultValues: R,
|
|
2111
2111
|
forcedValues: V = {},
|
|
@@ -2136,13 +2136,13 @@ function Fa(e, t) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
})), pe(() => {
|
|
2138
2138
|
if (O(void 0), !(!n && !h)) {
|
|
2139
|
-
if (!
|
|
2139
|
+
if (!x) {
|
|
2140
2140
|
M.current = void 0, L(void 0);
|
|
2141
2141
|
return;
|
|
2142
2142
|
}
|
|
2143
2143
|
(i === void 0 && N || i !== void 0 && N && i < 0) && (M.current = void 0, L(void 0)), Lt();
|
|
2144
2144
|
}
|
|
2145
|
-
}, [i, n, p, h,
|
|
2145
|
+
}, [i, n, p, h, x]), pe(() => {
|
|
2146
2146
|
$ && (wn({
|
|
2147
2147
|
elementHasLostFocus: !0
|
|
2148
2148
|
}), I(!1));
|
|
@@ -2251,7 +2251,7 @@ function Fa(e, t) {
|
|
|
2251
2251
|
se == null || se(!0), O(void 0), P != null && P.fields ? (J = P.fields, X = P.arch) : (J = N, X = B), p && (P == null ? void 0 : P.forceRefresh) !== !0 ? H = p : { values: H, defaultGetCalled: be } = await No({
|
|
2252
2252
|
fields: J,
|
|
2253
2253
|
arch: X
|
|
2254
|
-
}),
|
|
2254
|
+
}), S && (H = { ...Zs(S), ...H }), K.current = _t(H, J), ft({
|
|
2255
2255
|
values: H,
|
|
2256
2256
|
fields: J,
|
|
2257
2257
|
reset: !0,
|
|
@@ -2601,13 +2601,13 @@ function Fa(e, t) {
|
|
|
2601
2601
|
X && vn(!1), Xe(be);
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
|
-
const Yo = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !
|
|
2604
|
+
const Yo = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !x ? null : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
|
|
2605
2605
|
hs,
|
|
2606
2606
|
{
|
|
2607
2607
|
getValues: Ae,
|
|
2608
2608
|
getPlainValues: Y,
|
|
2609
2609
|
getFields: je,
|
|
2610
|
-
domain:
|
|
2610
|
+
domain: S,
|
|
2611
2611
|
activeId: i,
|
|
2612
2612
|
activeModel: n,
|
|
2613
2613
|
setFieldValue: bt,
|
|
@@ -2665,7 +2665,7 @@ function Fa(e, t) {
|
|
|
2665
2665
|
)
|
|
2666
2666
|
] }) })
|
|
2667
2667
|
] });
|
|
2668
|
-
return
|
|
2668
|
+
return x ? /* @__PURE__ */ r(
|
|
2669
2669
|
Xn,
|
|
2670
2670
|
{
|
|
2671
2671
|
bounds: !0,
|
|
@@ -2691,16 +2691,16 @@ const zt = yt(Fa), Jt = (e) => {
|
|
|
2691
2691
|
isMenuAction: a = !1,
|
|
2692
2692
|
actionData: l,
|
|
2693
2693
|
...d
|
|
2694
|
-
} = e, { model: u } = d, { modalWidth: f } = hn(), [c, m] = b(i), [p, h] = b(!1), [g, y] = b(), { action_id: w, res_id:
|
|
2694
|
+
} = e, { model: u } = d, { modalWidth: f } = hn(), [c, m] = b(i), [p, h] = b(!1), [g, y] = b(), { action_id: w, res_id: S, action_type: x, view_id: C } = l || {};
|
|
2695
2695
|
pe(() => {
|
|
2696
2696
|
a && R();
|
|
2697
2697
|
}, [l, a]);
|
|
2698
2698
|
async function R() {
|
|
2699
2699
|
const T = await E.getHandler().isShortcutFavorite({
|
|
2700
2700
|
action_id: w,
|
|
2701
|
-
action_type:
|
|
2701
|
+
action_type: x,
|
|
2702
2702
|
view_id: C,
|
|
2703
|
-
res_id:
|
|
2703
|
+
res_id: S || !1
|
|
2704
2704
|
});
|
|
2705
2705
|
h(T !== !1), T !== !1 && y(T);
|
|
2706
2706
|
}
|
|
@@ -2756,7 +2756,7 @@ const zt = yt(Fa), Jt = (e) => {
|
|
|
2756
2756
|
parentWidth: F,
|
|
2757
2757
|
...d
|
|
2758
2758
|
},
|
|
2759
|
-
`${u}-${n}-${w}-${
|
|
2759
|
+
`${u}-${n}-${w}-${S}-${x}-${C}-${i}`
|
|
2760
2760
|
)
|
|
2761
2761
|
}
|
|
2762
2762
|
) });
|
|
@@ -3122,18 +3122,18 @@ function po(e) {
|
|
|
3122
3122
|
searchError: c,
|
|
3123
3123
|
searchValues: m,
|
|
3124
3124
|
showLimitOptions: p = !0
|
|
3125
|
-
} = e, [h, g] = b(), [y, w] = b(), [
|
|
3125
|
+
} = e, [h, g] = b(), [y, w] = b(), [S, x] = b(!1), C = ae(), { token: R } = Ja(), [V] = ct.useForm();
|
|
3126
3126
|
pe(() => {
|
|
3127
3127
|
V.setFieldsValue(m);
|
|
3128
3128
|
}, [m]);
|
|
3129
3129
|
const D = () => {
|
|
3130
3130
|
if (!y)
|
|
3131
3131
|
return;
|
|
3132
|
-
const _ =
|
|
3132
|
+
const _ = S ? y : h, v = _ == null ? void 0 : _.rows;
|
|
3133
3133
|
return v == null ? void 0 : v.map((O, A) => /* @__PURE__ */ r(Oe, { children: O.map((L, G) => /* @__PURE__ */ r(ue, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r($a, { field: L }) }, G)) }, A));
|
|
3134
3134
|
};
|
|
3135
3135
|
Ft(() => {
|
|
3136
|
-
|
|
3136
|
+
x(!1), C.current = new di(n, t), C.current.parse(), g(C.current._simpleSearchContainer), w(C.current._advancedSearchContainer);
|
|
3137
3137
|
}, [t, n]);
|
|
3138
3138
|
const F = D(), T = (_) => {
|
|
3139
3139
|
var L;
|
|
@@ -3164,13 +3164,13 @@ function po(e) {
|
|
|
3164
3164
|
initialValues: { offset: a, limit: l },
|
|
3165
3165
|
children: [
|
|
3166
3166
|
F,
|
|
3167
|
-
|
|
3167
|
+
S && p && /* @__PURE__ */ r(Ha, { onLimitChange: d }),
|
|
3168
3168
|
/* @__PURE__ */ r(
|
|
3169
3169
|
Ba,
|
|
3170
3170
|
{
|
|
3171
|
-
advancedFilter:
|
|
3171
|
+
advancedFilter: S,
|
|
3172
3172
|
onAdvancedFilterToggle: () => {
|
|
3173
|
-
|
|
3173
|
+
x(!S);
|
|
3174
3174
|
},
|
|
3175
3175
|
onClear: () => {
|
|
3176
3176
|
V.resetFields(), i();
|
|
@@ -3419,29 +3419,29 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3419
3419
|
p(), g();
|
|
3420
3420
|
}, [p, g]), w = fe(async () => {
|
|
3421
3421
|
var V;
|
|
3422
|
-
const
|
|
3422
|
+
const x = await m({
|
|
3423
3423
|
model: n,
|
|
3424
3424
|
type: "form",
|
|
3425
3425
|
context: i
|
|
3426
3426
|
});
|
|
3427
|
-
s(
|
|
3428
|
-
const C = ol(
|
|
3427
|
+
s(x);
|
|
3428
|
+
const C = ol(x);
|
|
3429
3429
|
let R = {};
|
|
3430
3430
|
if (C.length > 0 && (R = { ...(V = await h({
|
|
3431
3431
|
model: n,
|
|
3432
3432
|
ids: [t],
|
|
3433
3433
|
fieldsToRetrieve: C,
|
|
3434
3434
|
context: i
|
|
3435
|
-
})) == null ? void 0 : V[0] }), R = { ..._t(R, C), active_id: t }, l(R), !(!
|
|
3435
|
+
})) == null ? void 0 : V[0] }), R = { ..._t(R, C), active_id: t }, l(R), !(!x || !x.toolbar))
|
|
3436
3436
|
return {
|
|
3437
|
-
actionItems:
|
|
3438
|
-
relateItems:
|
|
3439
|
-
printItems:
|
|
3437
|
+
actionItems: x.toolbar.action,
|
|
3438
|
+
relateItems: x.toolbar.relate,
|
|
3439
|
+
printItems: x.toolbar.print
|
|
3440
3440
|
};
|
|
3441
3441
|
}, [i, m, t, n, h]);
|
|
3442
3442
|
if (!t)
|
|
3443
3443
|
return null;
|
|
3444
|
-
function
|
|
3444
|
+
function S({ item: x, type: C }) {
|
|
3445
3445
|
const R = {
|
|
3446
3446
|
values: a,
|
|
3447
3447
|
fields: o.fields
|
|
@@ -3449,7 +3449,7 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3449
3449
|
switch (C) {
|
|
3450
3450
|
case "action":
|
|
3451
3451
|
c == null || c({
|
|
3452
|
-
actionData:
|
|
3452
|
+
actionData: x,
|
|
3453
3453
|
context: { active_id: t, active_ids: [t] },
|
|
3454
3454
|
...R
|
|
3455
3455
|
});
|
|
@@ -3457,17 +3457,17 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3457
3457
|
case "print":
|
|
3458
3458
|
c == null || c({
|
|
3459
3459
|
actionData: {
|
|
3460
|
-
...
|
|
3461
|
-
datas: { ...
|
|
3460
|
+
...x,
|
|
3461
|
+
datas: { ...x.datas, ids: [t] }
|
|
3462
3462
|
},
|
|
3463
3463
|
...R
|
|
3464
3464
|
});
|
|
3465
3465
|
break;
|
|
3466
3466
|
case "relate":
|
|
3467
3467
|
u({
|
|
3468
|
-
relateData:
|
|
3469
|
-
action_id:
|
|
3470
|
-
action_type:
|
|
3468
|
+
relateData: x,
|
|
3469
|
+
action_id: x.id,
|
|
3470
|
+
action_type: x.type,
|
|
3471
3471
|
...R
|
|
3472
3472
|
});
|
|
3473
3473
|
break;
|
|
@@ -3477,9 +3477,9 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3477
3477
|
rl,
|
|
3478
3478
|
{
|
|
3479
3479
|
onRetrieveData: w,
|
|
3480
|
-
onItemClick:
|
|
3481
|
-
onOpenChange: (
|
|
3482
|
-
|
|
3480
|
+
onItemClick: S,
|
|
3481
|
+
onOpenChange: (x) => {
|
|
3482
|
+
x || y();
|
|
3483
3483
|
}
|
|
3484
3484
|
}
|
|
3485
3485
|
);
|
|
@@ -3760,8 +3760,8 @@ const al = (e) => {
|
|
|
3760
3760
|
statusForResults: g = {},
|
|
3761
3761
|
onChangeSort: y,
|
|
3762
3762
|
sorter: w,
|
|
3763
|
-
onFetchChildrenForRecord:
|
|
3764
|
-
childField:
|
|
3763
|
+
onFetchChildrenForRecord: S,
|
|
3764
|
+
childField: x,
|
|
3765
3765
|
rootTree: C = !1,
|
|
3766
3766
|
context: R,
|
|
3767
3767
|
readonly: V,
|
|
@@ -3874,12 +3874,12 @@ const al = (e) => {
|
|
|
3874
3874
|
onChangeSort: y,
|
|
3875
3875
|
sorter: w,
|
|
3876
3876
|
readonly: V,
|
|
3877
|
-
expandableOpts:
|
|
3877
|
+
expandableOpts: S ? {
|
|
3878
3878
|
expandIcon: yi,
|
|
3879
3879
|
collapseIcon: wi,
|
|
3880
3880
|
loadingIcon: st,
|
|
3881
|
-
onFetchChildrenForRecord:
|
|
3882
|
-
childField:
|
|
3881
|
+
onFetchChildrenForRecord: S,
|
|
3882
|
+
childField: x
|
|
3883
3883
|
} : void 0
|
|
3884
3884
|
}
|
|
3885
3885
|
),
|
|
@@ -3908,8 +3908,8 @@ const bo = (e) => {
|
|
|
3908
3908
|
setCurrentItemIndex: g,
|
|
3909
3909
|
setResultsActionView: y,
|
|
3910
3910
|
resultsActionView: w,
|
|
3911
|
-
domain:
|
|
3912
|
-
currentId:
|
|
3911
|
+
domain: S,
|
|
3912
|
+
currentId: x,
|
|
3913
3913
|
limit: C,
|
|
3914
3914
|
setLimit: R,
|
|
3915
3915
|
searchParams: V = [],
|
|
@@ -3925,7 +3925,7 @@ const bo = (e) => {
|
|
|
3925
3925
|
model: t,
|
|
3926
3926
|
payload: l,
|
|
3927
3927
|
limit: le.current,
|
|
3928
|
-
attrs:
|
|
3928
|
+
attrs: S,
|
|
3929
3929
|
context: u
|
|
3930
3930
|
});
|
|
3931
3931
|
if (ee(se.length), f == null || f(se.length), se.length > 0) {
|
|
@@ -3955,7 +3955,7 @@ const bo = (e) => {
|
|
|
3955
3955
|
l,
|
|
3956
3956
|
t,
|
|
3957
3957
|
u,
|
|
3958
|
-
|
|
3958
|
+
S,
|
|
3959
3959
|
c,
|
|
3960
3960
|
m,
|
|
3961
3961
|
p,
|
|
@@ -3963,7 +3963,7 @@ const bo = (e) => {
|
|
|
3963
3963
|
f
|
|
3964
3964
|
]), ce = fe(
|
|
3965
3965
|
async (se) => {
|
|
3966
|
-
const { params: _e, newOffset: We } = se || {}, Ke = jt(_e || V,
|
|
3966
|
+
const { params: _e, newOffset: We } = se || {}, Ke = jt(_e || V, S), { colors: j, status: ge } = At(c), Ve = {};
|
|
3967
3967
|
j && (Ve.colors = j), ge && (Ve.status = ge);
|
|
3968
3968
|
const { totalItems: de, results: he, attrsEvaluated: ye } = await E.getHandler().searchForTree({
|
|
3969
3969
|
params: Ke,
|
|
@@ -3982,7 +3982,7 @@ const bo = (e) => {
|
|
|
3982
3982
|
}) : [...z.current];
|
|
3983
3983
|
if (re(ie), w && ie.length > 0) {
|
|
3984
3984
|
const Ae = ie.findIndex(
|
|
3985
|
-
(Y) =>
|
|
3985
|
+
(Y) => x === Y.id
|
|
3986
3986
|
);
|
|
3987
3987
|
Ae === -1 ? g == null || g(0) : g == null || g(Ae);
|
|
3988
3988
|
} else
|
|
@@ -3995,10 +3995,10 @@ const bo = (e) => {
|
|
|
3995
3995
|
g,
|
|
3996
3996
|
w,
|
|
3997
3997
|
re,
|
|
3998
|
-
|
|
3998
|
+
x,
|
|
3999
3999
|
t,
|
|
4000
4000
|
u,
|
|
4001
|
-
|
|
4001
|
+
S,
|
|
4002
4002
|
c,
|
|
4003
4003
|
m,
|
|
4004
4004
|
p,
|
|
@@ -4089,11 +4089,11 @@ const bo = (e) => {
|
|
|
4089
4089
|
},
|
|
4090
4090
|
[c, t, u, ve, re]
|
|
4091
4091
|
), Le = fe(async () => await E.getHandler().searchAllIds({
|
|
4092
|
-
params: jt(V,
|
|
4092
|
+
params: jt(V, S),
|
|
4093
4093
|
model: t,
|
|
4094
4094
|
context: u,
|
|
4095
4095
|
totalItems: Z
|
|
4096
|
-
}), [t, u, Z, V,
|
|
4096
|
+
}), [t, u, Z, V, S]);
|
|
4097
4097
|
return {
|
|
4098
4098
|
submit: Me,
|
|
4099
4099
|
clear: me,
|
|
@@ -4128,7 +4128,7 @@ function Tl(e, t) {
|
|
|
4128
4128
|
rootTree: f = !1,
|
|
4129
4129
|
parentContext: c = {},
|
|
4130
4130
|
onChangeSelectedRowKeys: m
|
|
4131
|
-
} = e, [p, h] = b(!1), [g, y] = b(!1), w = ae(!1),
|
|
4131
|
+
} = e, [p, h] = b(!1), [g, y] = b(!1), w = ae(!1), S = ae(null), [x, C] = b(), [R, V] = b(), [D, F] = b(), [T, _] = b(), [v, O] = b(200), A = ae(), { height: L } = hn(), G = ne(
|
|
4132
4132
|
Pt
|
|
4133
4133
|
), { processAction: B } = G || {}, q = ne(
|
|
4134
4134
|
rt
|
|
@@ -4176,7 +4176,7 @@ function Tl(e, t) {
|
|
|
4176
4176
|
totalItems: Y,
|
|
4177
4177
|
getAllIds: te
|
|
4178
4178
|
} = bo({
|
|
4179
|
-
model:
|
|
4179
|
+
model: x,
|
|
4180
4180
|
setSearchTreeNameSearch: W,
|
|
4181
4181
|
setSelectedRowItems: me,
|
|
4182
4182
|
setSearchParams: M,
|
|
@@ -4199,7 +4199,7 @@ function Tl(e, t) {
|
|
|
4199
4199
|
setActionViewTotalItems: ve,
|
|
4200
4200
|
limit: Me,
|
|
4201
4201
|
setLimit: Ne,
|
|
4202
|
-
clearSelection: (lt =
|
|
4202
|
+
clearSelection: (lt = S.current) == null ? void 0 : lt.unselectAll
|
|
4203
4203
|
});
|
|
4204
4204
|
wt(t, () => ({
|
|
4205
4205
|
refreshResults: () => {
|
|
@@ -4247,7 +4247,7 @@ function Tl(e, t) {
|
|
|
4247
4247
|
const { id: ot } = Pe;
|
|
4248
4248
|
A.current || (A.current = await E.getHandler().treeButOpen({
|
|
4249
4249
|
id: R.view_id,
|
|
4250
|
-
model:
|
|
4250
|
+
model: x,
|
|
4251
4251
|
context: c
|
|
4252
4252
|
}));
|
|
4253
4253
|
const ft = A.current[0][2];
|
|
@@ -4261,7 +4261,7 @@ function Tl(e, t) {
|
|
|
4261
4261
|
context: c
|
|
4262
4262
|
}));
|
|
4263
4263
|
},
|
|
4264
|
-
[
|
|
4264
|
+
[x, c, B, R]
|
|
4265
4265
|
), et = fe(
|
|
4266
4266
|
async (Pe) => {
|
|
4267
4267
|
const { id: ot } = Pe;
|
|
@@ -4275,12 +4275,12 @@ function Tl(e, t) {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
s({
|
|
4277
4277
|
id: ot,
|
|
4278
|
-
model:
|
|
4278
|
+
model: x,
|
|
4279
4279
|
formView: D,
|
|
4280
4280
|
treeView: R
|
|
4281
4281
|
});
|
|
4282
4282
|
},
|
|
4283
|
-
[
|
|
4283
|
+
[x, D, s, Ie, R]
|
|
4284
4284
|
), Ye = fe(async () => {
|
|
4285
4285
|
const Pe = await te();
|
|
4286
4286
|
$ == null || $(Pe.map((ot) => ({ id: ot }))), m == null || m(Pe);
|
|
@@ -4311,7 +4311,7 @@ function Tl(e, t) {
|
|
|
4311
4311
|
/* @__PURE__ */ r(
|
|
4312
4312
|
Xt,
|
|
4313
4313
|
{
|
|
4314
|
-
ref:
|
|
4314
|
+
ref: S,
|
|
4315
4315
|
context: c,
|
|
4316
4316
|
total: Y,
|
|
4317
4317
|
limit: ge,
|
|
@@ -4378,9 +4378,9 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4378
4378
|
domain: a,
|
|
4379
4379
|
context: l = {}
|
|
4380
4380
|
} = e, [d, u] = b(!1), { modalWidth: f, modalHeight: c } = hn(), { t: m } = we(), [p, h] = b([]), g = async () => {
|
|
4381
|
-
await new Promise((
|
|
4382
|
-
}, y = async (
|
|
4383
|
-
const { id: C } =
|
|
4381
|
+
await new Promise((x) => setTimeout(x, 5)), n();
|
|
4382
|
+
}, y = async (x) => {
|
|
4383
|
+
const { id: C } = x;
|
|
4384
4384
|
i([C]);
|
|
4385
4385
|
};
|
|
4386
4386
|
function w() {
|
|
@@ -4390,7 +4390,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4390
4390
|
}
|
|
4391
4391
|
i(p);
|
|
4392
4392
|
}
|
|
4393
|
-
const
|
|
4393
|
+
const S = () => /* @__PURE__ */ k(Q, { children: [
|
|
4394
4394
|
/* @__PURE__ */ r(
|
|
4395
4395
|
Co,
|
|
4396
4396
|
{
|
|
@@ -4442,7 +4442,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4442
4442
|
footer: null,
|
|
4443
4443
|
destroyOnClose: !0,
|
|
4444
4444
|
maskClosable: !1,
|
|
4445
|
-
children:
|
|
4445
|
+
children: S()
|
|
4446
4446
|
}
|
|
4447
4447
|
),
|
|
4448
4448
|
/* @__PURE__ */ r(
|
|
@@ -4451,8 +4451,8 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4451
4451
|
model: o,
|
|
4452
4452
|
visible: d,
|
|
4453
4453
|
parentContext: l,
|
|
4454
|
-
onSubmitSucceed: (
|
|
4455
|
-
u(!1), g(), i([
|
|
4454
|
+
onSubmitSucceed: (x) => {
|
|
4455
|
+
u(!1), g(), i([x]);
|
|
4456
4456
|
},
|
|
4457
4457
|
onCancel: () => {
|
|
4458
4458
|
u(!1), g();
|
|
@@ -4485,7 +4485,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4485
4485
|
context: l,
|
|
4486
4486
|
id: d,
|
|
4487
4487
|
domain: u
|
|
4488
|
-
} = i, f = o && !a ? { backgroundColor: So.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [g, y] = b(!1), [w,
|
|
4488
|
+
} = i, f = o && !a ? { backgroundColor: So.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [g, y] = b(!1), [w, S] = b(), x = ae(!1), [C, R] = b(""), V = ae(), D = ne(Be), { domain: F, getValues: T, getFields: _, getContext: v, elementHasLostFocus: O } = D || {}, A = ae([]), [L, G] = b([]), B = t && t[0] || void 0, q = t && t[1] || "";
|
|
4489
4489
|
pe(() => {
|
|
4490
4490
|
!Array.isArray(t) && t && U(t);
|
|
4491
4491
|
}, [t]), pe(() => {
|
|
@@ -4497,7 +4497,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4497
4497
|
V.current = K.target.value, N([void 0, ""]);
|
|
4498
4498
|
}, ee = async () => {
|
|
4499
4499
|
if (!g && C !== q) {
|
|
4500
|
-
if (await new Promise((K) => setTimeout(K, 100)),
|
|
4500
|
+
if (await new Promise((K) => setTimeout(K, 100)), x.current) {
|
|
4501
4501
|
N([void 0, ""]);
|
|
4502
4502
|
return;
|
|
4503
4503
|
}
|
|
@@ -4527,10 +4527,10 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4527
4527
|
context: { ...v == null ? void 0 : v(), ...l },
|
|
4528
4528
|
totalItems: 2
|
|
4529
4529
|
});
|
|
4530
|
-
le.length === 1 ? U(le[0]) : (
|
|
4530
|
+
le.length === 1 ? U(le[0]) : (S(K), m(!0));
|
|
4531
4531
|
return;
|
|
4532
4532
|
}
|
|
4533
|
-
|
|
4533
|
+
S(K), m(!0);
|
|
4534
4534
|
}, U = async (K) => {
|
|
4535
4535
|
y(!0);
|
|
4536
4536
|
try {
|
|
@@ -4609,7 +4609,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4609
4609
|
icon: g ? /* @__PURE__ */ r(st, {}) : /* @__PURE__ */ r(Wn, {}),
|
|
4610
4610
|
disabled: a || g,
|
|
4611
4611
|
onClick: () => {
|
|
4612
|
-
|
|
4612
|
+
x.current = !0, oe(q);
|
|
4613
4613
|
},
|
|
4614
4614
|
style: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
|
|
4615
4615
|
tabIndex: -1
|
|
@@ -4624,10 +4624,10 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4624
4624
|
visible: c,
|
|
4625
4625
|
nameSearch: B ? void 0 : w,
|
|
4626
4626
|
onSelectValues: (K) => {
|
|
4627
|
-
m(!1), U(K[0]),
|
|
4627
|
+
m(!1), U(K[0]), x.current = !1, V.current = void 0;
|
|
4628
4628
|
},
|
|
4629
4629
|
onCloseModal: () => {
|
|
4630
|
-
m(!1),
|
|
4630
|
+
m(!1), x.current = !1;
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
4633
4633
|
),
|
|
@@ -4687,7 +4687,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4687
4687
|
field: u,
|
|
4688
4688
|
operator: f,
|
|
4689
4689
|
manualIds: c
|
|
4690
|
-
} = e, [m, p] = b(!1), [h, g] = b(), [y, w] = b(), [
|
|
4690
|
+
} = e, [m, p] = b(!1), [h, g] = b(), [y, w] = b(), [S, x] = b(), [C, R] = b(0), [V, D] = b(0), [F, T] = b(), [_, v] = b(), [O, A] = b(), [L] = tt(
|
|
4691
4691
|
E.getHandler().searchAllIds
|
|
4692
4692
|
), [G] = tt(
|
|
4693
4693
|
E.getHandler().readObjects
|
|
@@ -4766,7 +4766,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4766
4766
|
U = await Z({
|
|
4767
4767
|
domain: M,
|
|
4768
4768
|
isTotal: !0
|
|
4769
|
-
}),
|
|
4769
|
+
}), x(U);
|
|
4770
4770
|
}
|
|
4771
4771
|
if (U ? ($ = Math.round(I / U * 100 * 100) / 100, w($)) : w(0), o) {
|
|
4772
4772
|
const M = await N({
|
|
@@ -4804,7 +4804,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4804
4804
|
kl,
|
|
4805
4805
|
{
|
|
4806
4806
|
value: h,
|
|
4807
|
-
total:
|
|
4807
|
+
total: S,
|
|
4808
4808
|
percent: y,
|
|
4809
4809
|
measureRef: U,
|
|
4810
4810
|
height: C,
|
|
@@ -4817,7 +4817,7 @@ const Co = yt(Tl), xo = (e) => {
|
|
|
4817
4817
|
Dl,
|
|
4818
4818
|
{
|
|
4819
4819
|
value: h,
|
|
4820
|
-
total:
|
|
4820
|
+
total: S,
|
|
4821
4821
|
measureRef: U,
|
|
4822
4822
|
height: C,
|
|
4823
4823
|
width: V,
|
|
@@ -5079,9 +5079,9 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
|
|
|
5079
5079
|
limit: s,
|
|
5080
5080
|
uninformedString: a,
|
|
5081
5081
|
manualIds: l
|
|
5082
|
-
} = e, [d, u] = b(!1), [f, c] = b(), [m, p] = b(), [h, g] = b(), [y, w] = b("line"), [
|
|
5082
|
+
} = e, [d, u] = b(!1), [f, c] = b(), [m, p] = b(), [h, g] = b(), [y, w] = b("line"), [S] = tt(
|
|
5083
5083
|
E.getHandler().getFields
|
|
5084
|
-
), [
|
|
5084
|
+
), [x] = tt(
|
|
5085
5085
|
E.getHandler().readObjects
|
|
5086
5086
|
), [C] = tt(E.getHandler().search), R = fe(async () => {
|
|
5087
5087
|
u(!0), c(void 0);
|
|
@@ -5099,8 +5099,8 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
|
|
|
5099
5099
|
fields: D,
|
|
5100
5100
|
manualIds: l,
|
|
5101
5101
|
methods: {
|
|
5102
|
-
getFields:
|
|
5103
|
-
readObjects:
|
|
5102
|
+
getFields: S,
|
|
5103
|
+
readObjects: x,
|
|
5104
5104
|
search: C
|
|
5105
5105
|
}
|
|
5106
5106
|
}));
|
|
@@ -5138,13 +5138,13 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
|
|
|
5138
5138
|
n,
|
|
5139
5139
|
f,
|
|
5140
5140
|
h,
|
|
5141
|
-
|
|
5141
|
+
S,
|
|
5142
5142
|
s,
|
|
5143
5143
|
d,
|
|
5144
5144
|
l,
|
|
5145
5145
|
t,
|
|
5146
5146
|
m,
|
|
5147
|
-
|
|
5147
|
+
x,
|
|
5148
5148
|
C,
|
|
5149
5149
|
y,
|
|
5150
5150
|
a,
|
|
@@ -5216,7 +5216,7 @@ const jl = {
|
|
|
5216
5216
|
bar: Li,
|
|
5217
5217
|
pie: $i
|
|
5218
5218
|
}, Wl = (e) => {
|
|
5219
|
-
var
|
|
5219
|
+
var S;
|
|
5220
5220
|
const { model: t, domain: n, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = we(), { error: d, loading: u, values: f, type: c, evaluatedEntries: m, fetchData: p } = Bl({
|
|
5221
5221
|
model: t,
|
|
5222
5222
|
xml: o,
|
|
@@ -5236,7 +5236,7 @@ const jl = {
|
|
|
5236
5236
|
return /* @__PURE__ */ r(Qe, { message: d, type: "error", banner: !0 });
|
|
5237
5237
|
const { data: h, isGroup: g, isStack: y } = f, w = jl[c];
|
|
5238
5238
|
return w ? /* @__PURE__ */ k("div", { style: { padding: "1rem" }, children: [
|
|
5239
|
-
/* @__PURE__ */ r("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(
|
|
5239
|
+
/* @__PURE__ */ r("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(S = m == null ? void 0 : m.length) == null ? void 0 : S.toLocaleString(
|
|
5240
5240
|
"es-ES",
|
|
5241
5241
|
{
|
|
5242
5242
|
useGrouping: !0
|
|
@@ -5274,17 +5274,17 @@ const Yl = (e, t) => {
|
|
|
5274
5274
|
async function w() {
|
|
5275
5275
|
u(!0), g == null || g(!0);
|
|
5276
5276
|
try {
|
|
5277
|
-
const
|
|
5277
|
+
const S = await y({
|
|
5278
5278
|
model: i,
|
|
5279
5279
|
id: n,
|
|
5280
5280
|
type: "graph",
|
|
5281
5281
|
context: o
|
|
5282
5282
|
});
|
|
5283
|
-
p(
|
|
5284
|
-
const
|
|
5285
|
-
c(
|
|
5286
|
-
} catch (
|
|
5287
|
-
return console.error(
|
|
5283
|
+
p(S.arch);
|
|
5284
|
+
const x = Bn(S.arch);
|
|
5285
|
+
c(x), u(!1), g == null || g(!1);
|
|
5286
|
+
} catch (S) {
|
|
5287
|
+
return console.error(S), u(!1), g == null || g(!1), /* @__PURE__ */ r(Q, { children: JSON.stringify(S) });
|
|
5288
5288
|
}
|
|
5289
5289
|
}
|
|
5290
5290
|
if (d)
|
|
@@ -5307,23 +5307,23 @@ const Yl = (e, t) => {
|
|
|
5307
5307
|
switch (f.type) {
|
|
5308
5308
|
case "indicatorField":
|
|
5309
5309
|
case "indicator": {
|
|
5310
|
-
const
|
|
5311
|
-
field:
|
|
5312
|
-
operator:
|
|
5310
|
+
const S = f, x = S.type === "indicatorField" ? {
|
|
5311
|
+
field: S.field,
|
|
5312
|
+
operator: S.operator
|
|
5313
5313
|
} : {};
|
|
5314
5314
|
return /* @__PURE__ */ r(
|
|
5315
5315
|
Al,
|
|
5316
5316
|
{
|
|
5317
|
-
showPercent:
|
|
5318
|
-
totalDomain:
|
|
5319
|
-
colorCondition:
|
|
5317
|
+
showPercent: S.showPercent,
|
|
5318
|
+
totalDomain: S.totalDomain,
|
|
5319
|
+
colorCondition: S.color,
|
|
5320
5320
|
model: i,
|
|
5321
5321
|
context: o,
|
|
5322
5322
|
domain: s,
|
|
5323
|
-
icon:
|
|
5324
|
-
suffix:
|
|
5323
|
+
icon: S.icon,
|
|
5324
|
+
suffix: S.suffix,
|
|
5325
5325
|
manualIds: l,
|
|
5326
|
-
...
|
|
5326
|
+
...x
|
|
5327
5327
|
}
|
|
5328
5328
|
);
|
|
5329
5329
|
}
|
|
@@ -5391,7 +5391,7 @@ const Yl = (e, t) => {
|
|
|
5391
5391
|
function w() {
|
|
5392
5392
|
return /* @__PURE__ */ r("div", { className: "inline-block w-3" });
|
|
5393
5393
|
}
|
|
5394
|
-
function
|
|
5394
|
+
function S() {
|
|
5395
5395
|
return /* @__PURE__ */ r(
|
|
5396
5396
|
"div",
|
|
5397
5397
|
{
|
|
@@ -5404,7 +5404,7 @@ const Yl = (e, t) => {
|
|
|
5404
5404
|
}
|
|
5405
5405
|
);
|
|
5406
5406
|
}
|
|
5407
|
-
function
|
|
5407
|
+
function x() {
|
|
5408
5408
|
return /* @__PURE__ */ r(
|
|
5409
5409
|
ze,
|
|
5410
5410
|
{
|
|
@@ -5448,7 +5448,7 @@ const Yl = (e, t) => {
|
|
|
5448
5448
|
] });
|
|
5449
5449
|
}
|
|
5450
5450
|
return /* @__PURE__ */ k("div", { className: "flex mb-2", children: [
|
|
5451
|
-
|
|
5451
|
+
S(),
|
|
5452
5452
|
/* @__PURE__ */ k("div", { className: "flex-none h-8 pl-2", children: [
|
|
5453
5453
|
s !== "graph" && h && /* @__PURE__ */ r(
|
|
5454
5454
|
ze,
|
|
@@ -5469,7 +5469,7 @@ const Yl = (e, t) => {
|
|
|
5469
5469
|
}
|
|
5470
5470
|
),
|
|
5471
5471
|
s !== "graph" && w(),
|
|
5472
|
-
s !== "graph" &&
|
|
5472
|
+
s !== "graph" && x(),
|
|
5473
5473
|
s === "form" && R(),
|
|
5474
5474
|
w(),
|
|
5475
5475
|
g && /* @__PURE__ */ r(
|
|
@@ -5498,7 +5498,7 @@ const tc = (e) => {
|
|
|
5498
5498
|
var Ae;
|
|
5499
5499
|
const { value: t, onChange: n, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = ne(
|
|
5500
5500
|
Fo
|
|
5501
|
-
), f = ne(Be), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = we(), [w,
|
|
5501
|
+
), f = ne(Be), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = we(), [w, S] = b(!1), [x, C] = b(!1), [R, V] = b(), [D, F] = b(!1), [T, _] = b(!1), [v, O] = b(), [A, L] = b([]), [G, B] = b(!1), q = ae([]), [N, Z] = b(), ee = ae(), [oe, U] = b(void 0), {
|
|
5502
5502
|
readOnly: $,
|
|
5503
5503
|
relation: I,
|
|
5504
5504
|
context: M,
|
|
@@ -5529,7 +5529,7 @@ const tc = (e) => {
|
|
|
5529
5529
|
await Ee(), d > re.length - 1 && d !== 0 && u(0);
|
|
5530
5530
|
}, Ee = async (Y) => {
|
|
5531
5531
|
var te, Re, xe;
|
|
5532
|
-
C(!0),
|
|
5532
|
+
C(!0), S(!1), V(void 0);
|
|
5533
5533
|
try {
|
|
5534
5534
|
const [Se, Ie] = await Zn({
|
|
5535
5535
|
treeView: {
|
|
@@ -5603,7 +5603,7 @@ const tc = (e) => {
|
|
|
5603
5603
|
w ? qt({
|
|
5604
5604
|
t: y,
|
|
5605
5605
|
onOk: () => {
|
|
5606
|
-
Le(), Y(),
|
|
5606
|
+
Le(), Y(), S(!1);
|
|
5607
5607
|
}
|
|
5608
5608
|
}) : Y();
|
|
5609
5609
|
}, _e = () => {
|
|
@@ -5633,7 +5633,7 @@ const tc = (e) => {
|
|
|
5633
5633
|
_(!0);
|
|
5634
5634
|
}) : _(!0);
|
|
5635
5635
|
}, j = async () => {
|
|
5636
|
-
C(!0),
|
|
5636
|
+
C(!0), S(!1), V(void 0);
|
|
5637
5637
|
try {
|
|
5638
5638
|
if (re[d].id > 0) {
|
|
5639
5639
|
const Y = s.map((te) => te.id === re[d].id ? {
|
|
@@ -5651,7 +5651,7 @@ const tc = (e) => {
|
|
|
5651
5651
|
u(0), C(!1);
|
|
5652
5652
|
}, ge = async () => {
|
|
5653
5653
|
const Y = re.filter((te) => A.includes(te.id));
|
|
5654
|
-
C(!0),
|
|
5654
|
+
C(!0), S(!1), V(void 0);
|
|
5655
5655
|
try {
|
|
5656
5656
|
const te = Y.map((xe) => xe.id), Re = s.filter((xe) => !(te.includes(xe.id) && xe.id < 0)).map((xe) => te.includes(xe.id) ? {
|
|
5657
5657
|
...xe,
|
|
@@ -5752,7 +5752,7 @@ const tc = (e) => {
|
|
|
5752
5752
|
values: { ...Ie, id: et },
|
|
5753
5753
|
treeValues: { ...Ie, id: et }
|
|
5754
5754
|
} : at);
|
|
5755
|
-
ce(Ye),
|
|
5755
|
+
ce(Ye), S(!0);
|
|
5756
5756
|
},
|
|
5757
5757
|
readOnly: $
|
|
5758
5758
|
}
|
|
@@ -5773,7 +5773,7 @@ const tc = (e) => {
|
|
|
5773
5773
|
limit: re.length,
|
|
5774
5774
|
treeView: o.get("tree"),
|
|
5775
5775
|
results: Y,
|
|
5776
|
-
loading:
|
|
5776
|
+
loading: x,
|
|
5777
5777
|
onRowClicked: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0 ? de : void 0,
|
|
5778
5778
|
showPagination: !1,
|
|
5779
5779
|
selectedRowKeys: A,
|
|
@@ -5803,7 +5803,7 @@ const tc = (e) => {
|
|
|
5803
5803
|
if (R)
|
|
5804
5804
|
return /* @__PURE__ */ r(Qe, { className: "mt-10", message: R, type: "error", banner: !0 });
|
|
5805
5805
|
const je = G;
|
|
5806
|
-
return
|
|
5806
|
+
return x ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ k(Q, { children: [
|
|
5807
5807
|
/* @__PURE__ */ r(
|
|
5808
5808
|
Ql,
|
|
5809
5809
|
{
|
|
@@ -5868,25 +5868,25 @@ const tc = (e) => {
|
|
|
5868
5868
|
Ft(() => {
|
|
5869
5869
|
w();
|
|
5870
5870
|
}, [t]);
|
|
5871
|
-
const y = async (
|
|
5871
|
+
const y = async (x) => o && o[x] ? o[x] : await E.getHandler().getView({
|
|
5872
5872
|
model: i,
|
|
5873
|
-
type:
|
|
5873
|
+
type: x,
|
|
5874
5874
|
context: { ...g == null ? void 0 : g(), ...a }
|
|
5875
5875
|
}), w = async () => {
|
|
5876
5876
|
u(!0), c(void 0);
|
|
5877
5877
|
try {
|
|
5878
5878
|
if (n && n.length > 0) {
|
|
5879
|
-
for (const
|
|
5880
|
-
const C = await y(
|
|
5881
|
-
m.set(
|
|
5879
|
+
for (const x of n) {
|
|
5880
|
+
const C = await y(x);
|
|
5881
|
+
m.set(x, C);
|
|
5882
5882
|
}
|
|
5883
5883
|
p(m);
|
|
5884
5884
|
} else {
|
|
5885
|
-
const
|
|
5886
|
-
m.set("form",
|
|
5885
|
+
const x = await y("form"), C = await y("tree");
|
|
5886
|
+
m.set("form", x), m.set("tree", C), p(m);
|
|
5887
5887
|
}
|
|
5888
|
-
} catch (
|
|
5889
|
-
c(JSON.stringify(
|
|
5888
|
+
} catch (x) {
|
|
5889
|
+
c(JSON.stringify(x));
|
|
5890
5890
|
} finally {
|
|
5891
5891
|
u(!1);
|
|
5892
5892
|
}
|
|
@@ -5896,7 +5896,7 @@ const tc = (e) => {
|
|
|
5896
5896
|
{
|
|
5897
5897
|
required: s,
|
|
5898
5898
|
type: "array",
|
|
5899
|
-
validator: async (
|
|
5899
|
+
validator: async (x, C) => {
|
|
5900
5900
|
if (!C)
|
|
5901
5901
|
throw new Error();
|
|
5902
5902
|
if (!C.items)
|
|
@@ -6121,7 +6121,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6121
6121
|
y.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (w = [
|
|
6122
6122
|
["id", "in", n == null ? void 0 : n.map((C) => C.id)]
|
|
6123
6123
|
]);
|
|
6124
|
-
const { datas:
|
|
6124
|
+
const { datas: S } = await E.getHandler().exportData({
|
|
6125
6125
|
model: e,
|
|
6126
6126
|
fields: wc({
|
|
6127
6127
|
keys: y.selectedKeys,
|
|
@@ -6133,8 +6133,8 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6133
6133
|
format: y.exportType
|
|
6134
6134
|
});
|
|
6135
6135
|
s(), await new Promise((C) => setTimeout(C, 200));
|
|
6136
|
-
const
|
|
6137
|
-
pn(
|
|
6136
|
+
const x = await kt(S);
|
|
6137
|
+
pn(S, x.mime);
|
|
6138
6138
|
},
|
|
6139
6139
|
[i, n, e, o, t, s, d]
|
|
6140
6140
|
), f = fe(async () => {
|
|
@@ -6146,14 +6146,14 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6146
6146
|
return a.current["/"] = y, Ir({ fields: y });
|
|
6147
6147
|
}, [e, t, a]), c = fe(
|
|
6148
6148
|
async (y) => {
|
|
6149
|
-
const
|
|
6150
|
-
model:
|
|
6149
|
+
const S = Nn(y, a.current)[Mn(y)], x = S.relation, C = await E.getHandler().getFields({
|
|
6150
|
+
model: x,
|
|
6151
6151
|
context: t,
|
|
6152
6152
|
fields: []
|
|
6153
6153
|
});
|
|
6154
6154
|
for (const [R, V] of Object.entries(C))
|
|
6155
6155
|
C[R].string = hc({
|
|
6156
|
-
parentTitle:
|
|
6156
|
+
parentTitle: S.string,
|
|
6157
6157
|
title: V.string
|
|
6158
6158
|
});
|
|
6159
6159
|
return a.current[y] = C, Ir({
|
|
@@ -6169,9 +6169,9 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6169
6169
|
onGetFieldChilds: c
|
|
6170
6170
|
});
|
|
6171
6171
|
return {
|
|
6172
|
-
predefinedExports: y.map((
|
|
6173
|
-
...
|
|
6174
|
-
fields:
|
|
6172
|
+
predefinedExports: y.map((x) => ({
|
|
6173
|
+
...x,
|
|
6174
|
+
fields: x.fields.map((C) => {
|
|
6175
6175
|
const R = Mn(C.key), D = Nn(C.key, a.current)[R];
|
|
6176
6176
|
return D ? {
|
|
6177
6177
|
key: C.key,
|
|
@@ -6206,7 +6206,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6206
6206
|
[l, t]
|
|
6207
6207
|
), g = fe(
|
|
6208
6208
|
async (y) => {
|
|
6209
|
-
const w = await h("ir.exports"),
|
|
6209
|
+
const w = await h("ir.exports"), S = await h("ir.exports.line"), x = await E.getHandler().create({
|
|
6210
6210
|
model: "ir.exports",
|
|
6211
6211
|
values: {
|
|
6212
6212
|
name: y.name,
|
|
@@ -6220,12 +6220,12 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6220
6220
|
model: "ir.exports.line",
|
|
6221
6221
|
values: {
|
|
6222
6222
|
name: C.key,
|
|
6223
|
-
export_id:
|
|
6223
|
+
export_id: x
|
|
6224
6224
|
},
|
|
6225
|
-
fields:
|
|
6225
|
+
fields: S,
|
|
6226
6226
|
context: t
|
|
6227
6227
|
}))
|
|
6228
|
-
), { ...y, id:
|
|
6228
|
+
), { ...y, id: x };
|
|
6229
6229
|
},
|
|
6230
6230
|
[t, h, e]
|
|
6231
6231
|
);
|
|
@@ -6452,23 +6452,23 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6452
6452
|
const { ooui: t } = e, { required: n } = t;
|
|
6453
6453
|
return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Ic, { ooui: t }) });
|
|
6454
6454
|
}, Ic = (e) => {
|
|
6455
|
-
const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Oc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(null), { setFieldValue: f, getFieldValue: c } = ne(Be) || {}, { t: m } = we(), p = n ? Es(n) : "", h = (
|
|
6456
|
-
i == null || i(
|
|
6455
|
+
const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Oc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(null), { setFieldValue: f, getFieldValue: c } = ne(Be) || {}, { t: m } = we(), p = n ? Es(n) : "", h = (x) => {
|
|
6456
|
+
i == null || i(x);
|
|
6457
6457
|
};
|
|
6458
6458
|
async function g() {
|
|
6459
|
-
const
|
|
6459
|
+
const x = await kt(n), C = `data:${x == null ? void 0 : x.mime};base64,${n}`, R = document.createElement("a"), V = c(a), D = c("name");
|
|
6460
6460
|
R.href = C, R.download = V || D, R.click();
|
|
6461
6461
|
}
|
|
6462
6462
|
async function y() {
|
|
6463
|
-
const
|
|
6464
|
-
pn(n,
|
|
6463
|
+
const x = await kt(n);
|
|
6464
|
+
pn(n, x.mime);
|
|
6465
6465
|
}
|
|
6466
|
-
async function w(
|
|
6467
|
-
|
|
6468
|
-
const C =
|
|
6466
|
+
async function w(x) {
|
|
6467
|
+
x.stopPropagation(), x.preventDefault();
|
|
6468
|
+
const C = x.target.files[0], R = await ao(C);
|
|
6469
6469
|
h(R), a && f(a, C.name);
|
|
6470
6470
|
}
|
|
6471
|
-
function
|
|
6471
|
+
function S() {
|
|
6472
6472
|
f(a, void 0), h(void 0);
|
|
6473
6473
|
}
|
|
6474
6474
|
return /* @__PURE__ */ k(Oe, { gutter: 8, children: [
|
|
@@ -6520,7 +6520,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
|
|
|
6520
6520
|
{
|
|
6521
6521
|
tooltip: m("clear"),
|
|
6522
6522
|
disabled: o || !n,
|
|
6523
|
-
onClick:
|
|
6523
|
+
onClick: S,
|
|
6524
6524
|
icon: /* @__PURE__ */ r(jn, {})
|
|
6525
6525
|
}
|
|
6526
6526
|
)
|
|
@@ -6816,16 +6816,16 @@ function kc(e) {
|
|
|
6816
6816
|
try {
|
|
6817
6817
|
const w = await E.getHandler().readObjects({
|
|
6818
6818
|
model: "ir.attachment",
|
|
6819
|
-
ids: t.map((
|
|
6819
|
+
ids: t.map((S) => S.id),
|
|
6820
6820
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
6821
6821
|
context: a.current.getContext()
|
|
6822
6822
|
});
|
|
6823
6823
|
f(
|
|
6824
|
-
w.map((
|
|
6825
|
-
id:
|
|
6826
|
-
name:
|
|
6827
|
-
datas_fname:
|
|
6828
|
-
link:
|
|
6824
|
+
w.map((S) => ({
|
|
6825
|
+
id: S.id,
|
|
6826
|
+
name: S.name,
|
|
6827
|
+
datas_fname: S.datas_fname,
|
|
6828
|
+
link: S.link
|
|
6829
6829
|
}))
|
|
6830
6830
|
);
|
|
6831
6831
|
} catch (w) {
|
|
@@ -6840,22 +6840,22 @@ function kc(e) {
|
|
|
6840
6840
|
return;
|
|
6841
6841
|
}
|
|
6842
6842
|
m(!0);
|
|
6843
|
-
let
|
|
6843
|
+
let S;
|
|
6844
6844
|
try {
|
|
6845
|
-
|
|
6845
|
+
S = (await E.getHandler().readObjects({
|
|
6846
6846
|
model: "ir.attachment",
|
|
6847
6847
|
ids: [w.id],
|
|
6848
6848
|
context: a.current.getContext()
|
|
6849
6849
|
}))[0];
|
|
6850
|
-
} catch (
|
|
6851
|
-
Xe(
|
|
6850
|
+
} catch (x) {
|
|
6851
|
+
Xe(x);
|
|
6852
6852
|
}
|
|
6853
|
-
if (m(!1), !!
|
|
6854
|
-
if (
|
|
6855
|
-
const
|
|
6856
|
-
pn(
|
|
6853
|
+
if (m(!1), !!S)
|
|
6854
|
+
if (S.datas) {
|
|
6855
|
+
const x = await kt(S.datas);
|
|
6856
|
+
pn(S.datas, x.mime);
|
|
6857
6857
|
} else
|
|
6858
|
-
s(
|
|
6858
|
+
s(S);
|
|
6859
6859
|
},
|
|
6860
6860
|
[a, s]
|
|
6861
6861
|
), y = fe(
|
|
@@ -6913,8 +6913,8 @@ function Ec({ toolbar: e }) {
|
|
|
6913
6913
|
duplicatingItem: g,
|
|
6914
6914
|
setDuplicatingItem: y,
|
|
6915
6915
|
setResults: w,
|
|
6916
|
-
formIsLoading:
|
|
6917
|
-
attachments:
|
|
6916
|
+
formIsLoading: S,
|
|
6917
|
+
attachments: x,
|
|
6918
6918
|
formRef: C,
|
|
6919
6919
|
setFormHasChanges: R,
|
|
6920
6920
|
previousView: V,
|
|
@@ -6996,7 +6996,7 @@ function Ec({ toolbar: e }) {
|
|
|
6996
6996
|
y == null || y(!1);
|
|
6997
6997
|
}
|
|
6998
6998
|
}
|
|
6999
|
-
const U = a || h ||
|
|
6999
|
+
const U = a || h || S || g;
|
|
7000
7000
|
function $(I) {
|
|
7001
7001
|
v == null || v({
|
|
7002
7002
|
actionData: I,
|
|
@@ -7009,7 +7009,7 @@ function Ec({ toolbar: e }) {
|
|
|
7009
7009
|
});
|
|
7010
7010
|
}
|
|
7011
7011
|
return n ? /* @__PURE__ */ k(Ue, { wrap: !0, children: [
|
|
7012
|
-
|
|
7012
|
+
S && /* @__PURE__ */ k(Q, { children: [
|
|
7013
7013
|
/* @__PURE__ */ r($e, {}),
|
|
7014
7014
|
Rt(),
|
|
7015
7015
|
Rt()
|
|
@@ -7017,7 +7017,7 @@ function Ec({ toolbar: e }) {
|
|
|
7017
7017
|
/* @__PURE__ */ r(
|
|
7018
7018
|
Io,
|
|
7019
7019
|
{
|
|
7020
|
-
disabled: a ||
|
|
7020
|
+
disabled: a || S || h || g
|
|
7021
7021
|
}
|
|
7022
7022
|
),
|
|
7023
7023
|
/* @__PURE__ */ r(
|
|
@@ -7035,7 +7035,7 @@ function Ec({ toolbar: e }) {
|
|
|
7035
7035
|
{
|
|
7036
7036
|
icon: /* @__PURE__ */ r(zn, {}),
|
|
7037
7037
|
tooltip: T("duplicate"),
|
|
7038
|
-
disabled: s || a || l === void 0 || g ||
|
|
7038
|
+
disabled: s || a || l === void 0 || g || S,
|
|
7039
7039
|
loading: g,
|
|
7040
7040
|
onClick: oe
|
|
7041
7041
|
}
|
|
@@ -7045,7 +7045,7 @@ function Ec({ toolbar: e }) {
|
|
|
7045
7045
|
{
|
|
7046
7046
|
icon: /* @__PURE__ */ r(Gn, {}),
|
|
7047
7047
|
tooltip: T("delete"),
|
|
7048
|
-
disabled: a || l === void 0 || h || g ||
|
|
7048
|
+
disabled: a || l === void 0 || h || g || S,
|
|
7049
7049
|
loading: h,
|
|
7050
7050
|
onClick: Z
|
|
7051
7051
|
}
|
|
@@ -7056,7 +7056,7 @@ function Ec({ toolbar: e }) {
|
|
|
7056
7056
|
{
|
|
7057
7057
|
icon: /* @__PURE__ */ r(Jr, {}),
|
|
7058
7058
|
tooltip: T("showLogs"),
|
|
7059
|
-
disabled: a || l === void 0 || h || g ||
|
|
7059
|
+
disabled: a || l === void 0 || h || g || S,
|
|
7060
7060
|
loading: !1,
|
|
7061
7061
|
onClick: () => {
|
|
7062
7062
|
Vo(m, l, T);
|
|
@@ -7068,7 +7068,7 @@ function Ec({ toolbar: e }) {
|
|
|
7068
7068
|
{
|
|
7069
7069
|
icon: /* @__PURE__ */ r(fn, {}),
|
|
7070
7070
|
tooltip: T("refresh"),
|
|
7071
|
-
disabled: a || l === void 0 || h || g ||
|
|
7071
|
+
disabled: a || l === void 0 || h || g || S,
|
|
7072
7072
|
loading: !1,
|
|
7073
7073
|
onClick: () => {
|
|
7074
7074
|
G(() => {
|
|
@@ -7186,7 +7186,7 @@ function Ec({ toolbar: e }) {
|
|
|
7186
7186
|
kc,
|
|
7187
7187
|
{
|
|
7188
7188
|
disabled: U,
|
|
7189
|
-
attachments:
|
|
7189
|
+
attachments: x,
|
|
7190
7190
|
onAddNewAttachment: async () => {
|
|
7191
7191
|
const I = await Ot({
|
|
7192
7192
|
onFormSave: o
|
|
@@ -7254,8 +7254,8 @@ const { useToken: Mc } = He, Ao = (e) => {
|
|
|
7254
7254
|
pe(() => {
|
|
7255
7255
|
l && !p && y(!1), !n && !l && (h(!0), y(!0));
|
|
7256
7256
|
}, [p, l]);
|
|
7257
|
-
const w = (
|
|
7258
|
-
i == null || i(
|
|
7257
|
+
const w = (S) => {
|
|
7258
|
+
i == null || i(S.target.value);
|
|
7259
7259
|
};
|
|
7260
7260
|
return /* @__PURE__ */ k(Oe, { gutter: 8, wrap: !1, align: "middle", children: [
|
|
7261
7261
|
l ? null : /* @__PURE__ */ r(ue, { flex: "none", children: p ? /* @__PURE__ */ r(
|
|
@@ -7588,8 +7588,8 @@ const jc = (e) => {
|
|
|
7588
7588
|
setSearchParams: g = void 0,
|
|
7589
7589
|
searchVisible: y = !0,
|
|
7590
7590
|
setSearchVisible: w = void 0,
|
|
7591
|
-
sorter:
|
|
7592
|
-
setSorter:
|
|
7591
|
+
sorter: S = void 0,
|
|
7592
|
+
setSorter: x = void 0,
|
|
7593
7593
|
setTotalItems: C = void 0,
|
|
7594
7594
|
setSearchTreeNameSearch: R = void 0,
|
|
7595
7595
|
setTreeIsLoading: V = void 0,
|
|
@@ -7618,8 +7618,8 @@ const jc = (e) => {
|
|
|
7618
7618
|
context: o,
|
|
7619
7619
|
formView: a,
|
|
7620
7620
|
treeView: l,
|
|
7621
|
-
sorter:
|
|
7622
|
-
setSorter:
|
|
7621
|
+
sorter: S,
|
|
7622
|
+
setSorter: x,
|
|
7623
7623
|
setCurrentItemIndex: c,
|
|
7624
7624
|
setResultsActionView: f,
|
|
7625
7625
|
resultsActionView: p,
|
|
@@ -8093,8 +8093,8 @@ function Zc(e) {
|
|
|
8093
8093
|
setSearchVisible: g,
|
|
8094
8094
|
setSearchTreeNameSearch: y,
|
|
8095
8095
|
searchTreeNameSearch: w,
|
|
8096
|
-
treeIsLoading:
|
|
8097
|
-
setPreviousView:
|
|
8096
|
+
treeIsLoading: S,
|
|
8097
|
+
setPreviousView: x,
|
|
8098
8098
|
previousView: C,
|
|
8099
8099
|
results: R,
|
|
8100
8100
|
limit: V,
|
|
@@ -8163,7 +8163,7 @@ function Zc(e) {
|
|
|
8163
8163
|
});
|
|
8164
8164
|
}
|
|
8165
8165
|
return /* @__PURE__ */ k(Ue, { wrap: !0, children: [
|
|
8166
|
-
|
|
8166
|
+
S && /* @__PURE__ */ k(Q, { children: [
|
|
8167
8167
|
/* @__PURE__ */ r($e, {}),
|
|
8168
8168
|
Ct(),
|
|
8169
8169
|
Ct()
|
|
@@ -8172,7 +8172,7 @@ function Zc(e) {
|
|
|
8172
8172
|
/* @__PURE__ */ r(
|
|
8173
8173
|
Uc,
|
|
8174
8174
|
{
|
|
8175
|
-
disabled: l || a
|
|
8175
|
+
disabled: l || a,
|
|
8176
8176
|
searchText: w,
|
|
8177
8177
|
onSearch: ($) => {
|
|
8178
8178
|
$ && $.trim().length > 0 ? y == null || y($) : y == null || y(void 0);
|
|
@@ -8193,18 +8193,18 @@ function Zc(e) {
|
|
|
8193
8193
|
onClick: () => {
|
|
8194
8194
|
g == null || g(!h);
|
|
8195
8195
|
},
|
|
8196
|
-
disabled: l || a
|
|
8196
|
+
disabled: l || a,
|
|
8197
8197
|
badgeNumber: p == null ? void 0 : p.length
|
|
8198
8198
|
}
|
|
8199
8199
|
),
|
|
8200
8200
|
Ct(),
|
|
8201
|
-
/* @__PURE__ */ r(Io, {
|
|
8201
|
+
/* @__PURE__ */ r(Io, {}),
|
|
8202
8202
|
/* @__PURE__ */ r(
|
|
8203
8203
|
qe,
|
|
8204
8204
|
{
|
|
8205
8205
|
icon: /* @__PURE__ */ r(zn, {}),
|
|
8206
8206
|
tooltip: O("duplicate"),
|
|
8207
|
-
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l ||
|
|
8207
|
+
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || S,
|
|
8208
8208
|
loading: l,
|
|
8209
8209
|
onClick: ee
|
|
8210
8210
|
}
|
|
@@ -8214,7 +8214,7 @@ function Zc(e) {
|
|
|
8214
8214
|
{
|
|
8215
8215
|
icon: /* @__PURE__ */ r(Gn, {}),
|
|
8216
8216
|
tooltip: O("delete"),
|
|
8217
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8217
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || S,
|
|
8218
8218
|
loading: a,
|
|
8219
8219
|
onClick: N
|
|
8220
8220
|
}
|
|
@@ -8226,7 +8226,7 @@ function Zc(e) {
|
|
|
8226
8226
|
{
|
|
8227
8227
|
icon: /* @__PURE__ */ r(Jr, {}),
|
|
8228
8228
|
tooltip: O("showLogs"),
|
|
8229
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8229
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || S,
|
|
8230
8230
|
loading: !1,
|
|
8231
8231
|
onClick: () => {
|
|
8232
8232
|
Vo(u, o[0].id, O);
|
|
@@ -8238,7 +8238,7 @@ function Zc(e) {
|
|
|
8238
8238
|
{
|
|
8239
8239
|
icon: /* @__PURE__ */ r(fn, {}),
|
|
8240
8240
|
tooltip: O("refresh"),
|
|
8241
|
-
disabled: l || a ||
|
|
8241
|
+
disabled: l || a || S,
|
|
8242
8242
|
loading: !1,
|
|
8243
8243
|
onClick: () => {
|
|
8244
8244
|
var $;
|
|
@@ -8254,10 +8254,9 @@ function Zc(e) {
|
|
|
8254
8254
|
currentView: n,
|
|
8255
8255
|
availableViews: t,
|
|
8256
8256
|
onChangeView: ($) => {
|
|
8257
|
-
|
|
8257
|
+
x == null || x(n), i == null || i($);
|
|
8258
8258
|
},
|
|
8259
|
-
previousView: C
|
|
8260
|
-
disabled: x
|
|
8259
|
+
previousView: C
|
|
8261
8260
|
}
|
|
8262
8261
|
)
|
|
8263
8262
|
] }),
|
|
@@ -8267,7 +8266,7 @@ function Zc(e) {
|
|
|
8267
8266
|
{
|
|
8268
8267
|
icon: /* @__PURE__ */ r(Un, {}),
|
|
8269
8268
|
placement: "bottomRight",
|
|
8270
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8269
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || S,
|
|
8271
8270
|
onRetrieveData: async () => [
|
|
8272
8271
|
{ label: O("actions"), items: _ == null ? void 0 : _.action }
|
|
8273
8272
|
],
|
|
@@ -8281,7 +8280,7 @@ function Zc(e) {
|
|
|
8281
8280
|
{
|
|
8282
8281
|
icon: /* @__PURE__ */ r(Yn, {}),
|
|
8283
8282
|
placement: "bottomRight",
|
|
8284
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8283
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || S,
|
|
8285
8284
|
onRetrieveData: async () => [
|
|
8286
8285
|
{ label: O("reports"), items: _ == null ? void 0 : _.print }
|
|
8287
8286
|
],
|
|
@@ -8360,7 +8359,7 @@ function Zc(e) {
|
|
|
8360
8359
|
}
|
|
8361
8360
|
B(!0);
|
|
8362
8361
|
},
|
|
8363
|
-
disabled: l || a ||
|
|
8362
|
+
disabled: l || a || S || q
|
|
8364
8363
|
}
|
|
8365
8364
|
),
|
|
8366
8365
|
/* @__PURE__ */ r(
|
|
@@ -8427,12 +8426,12 @@ const ed = (e) => {
|
|
|
8427
8426
|
onRowClicked: (y) => {
|
|
8428
8427
|
const { id: w } = y;
|
|
8429
8428
|
f(w);
|
|
8430
|
-
const
|
|
8431
|
-
g == null || g(h), d(
|
|
8432
|
-
const
|
|
8429
|
+
const S = u.findIndex((C) => C.id === w);
|
|
8430
|
+
g == null || g(h), d(S);
|
|
8431
|
+
const x = m.find(
|
|
8433
8432
|
(C) => C.type === "form"
|
|
8434
8433
|
);
|
|
8435
|
-
c(
|
|
8434
|
+
c(x);
|
|
8436
8435
|
}
|
|
8437
8436
|
}
|
|
8438
8437
|
)
|
|
@@ -8564,7 +8563,7 @@ function sd(e, t) {
|
|
|
8564
8563
|
action_type: h,
|
|
8565
8564
|
treeExpandable: g = !1,
|
|
8566
8565
|
limit: y
|
|
8567
|
-
} = e, [w,
|
|
8566
|
+
} = e, [w, S] = b(), [x, C] = b([]), [R, V] = b(!0), D = m || void 0, [F, T] = b(
|
|
8568
8567
|
D
|
|
8569
8568
|
), [_, v] = b([]), [O, A] = b(), [L, G] = b([]), [B, q] = b(), [N, Z] = b(0), [ee, oe] = b(!1), [U, $] = b(!1), [I, M] = b(), { t: K } = we(), le = ae(), z = ae(), re = ne(
|
|
8570
8569
|
ut
|
|
@@ -8587,7 +8586,7 @@ function sd(e, t) {
|
|
|
8587
8586
|
T(j), W == null || W(j);
|
|
8588
8587
|
}
|
|
8589
8588
|
function me(j) {
|
|
8590
|
-
|
|
8589
|
+
S(j);
|
|
8591
8590
|
const ge = { action_id: p, action_type: h };
|
|
8592
8591
|
ve == null || ve({ ...j, extra: ge });
|
|
8593
8592
|
}
|
|
@@ -8675,7 +8674,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8675
8674
|
), Me == null || Me(d)), me(de), C(j), V(!1);
|
|
8676
8675
|
};
|
|
8677
8676
|
l({ tabKey: d, canWeClose: Le }), pe(() => {
|
|
8678
|
-
const j =
|
|
8677
|
+
const j = x.find((Ve) => Ve.type === "tree"), ge = x.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
|
|
8679
8678
|
me(ge || j), m ? W == null || W(D) : (Ne(void 0), A(void 0)), Fe();
|
|
8680
8679
|
}, [i, s, m]), pe(() => {
|
|
8681
8680
|
if (Te === d) {
|
|
@@ -8731,7 +8730,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8731
8730
|
});
|
|
8732
8731
|
}
|
|
8733
8732
|
function We() {
|
|
8734
|
-
return
|
|
8733
|
+
return x.map((j) => {
|
|
8735
8734
|
switch (j.type) {
|
|
8736
8735
|
case "form":
|
|
8737
8736
|
return /* @__PURE__ */ r(
|
|
@@ -8761,11 +8760,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8761
8760
|
model: i,
|
|
8762
8761
|
context: o,
|
|
8763
8762
|
domain: n,
|
|
8764
|
-
formView:
|
|
8763
|
+
formView: x.find((ge) => ge.type === "form"),
|
|
8765
8764
|
treeView: j,
|
|
8766
8765
|
searchTreeRef: z,
|
|
8767
8766
|
searchTreeNameSearch: I,
|
|
8768
|
-
availableViews:
|
|
8767
|
+
availableViews: x,
|
|
8769
8768
|
results: L,
|
|
8770
8769
|
setCurrentItemIndex: A,
|
|
8771
8770
|
setCurrentId: Ne,
|
|
@@ -8782,8 +8781,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8782
8781
|
model: i,
|
|
8783
8782
|
context: o,
|
|
8784
8783
|
domain: n,
|
|
8785
|
-
treeView:
|
|
8786
|
-
formView:
|
|
8784
|
+
treeView: x.find((ge) => ge.type === "tree"),
|
|
8785
|
+
formView: x.find((ge) => ge.type === "form")
|
|
8787
8786
|
},
|
|
8788
8787
|
`${j.type}-${j.view_id}`
|
|
8789
8788
|
);
|
|
@@ -8804,7 +8803,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8804
8803
|
le.current.clearAndReload();
|
|
8805
8804
|
else {
|
|
8806
8805
|
Ne(void 0);
|
|
8807
|
-
const j =
|
|
8806
|
+
const j = x.find(
|
|
8808
8807
|
(ge) => ge.type === "form"
|
|
8809
8808
|
);
|
|
8810
8809
|
me(j);
|
|
@@ -8816,7 +8815,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8816
8815
|
title: a,
|
|
8817
8816
|
currentView: w,
|
|
8818
8817
|
setCurrentView: me,
|
|
8819
|
-
availableViews:
|
|
8818
|
+
availableViews: x,
|
|
8820
8819
|
formRef: le,
|
|
8821
8820
|
searchTreeRef: z,
|
|
8822
8821
|
onNewClicked: Ke,
|
|
@@ -8878,15 +8877,15 @@ async function ad({
|
|
|
8878
8877
|
limit: c,
|
|
8879
8878
|
view_type: m
|
|
8880
8879
|
} = s, p = m === "tree", h = [];
|
|
8881
|
-
for (const
|
|
8882
|
-
const [
|
|
8883
|
-
if (
|
|
8884
|
-
h.push(
|
|
8880
|
+
for (const S of u) {
|
|
8881
|
+
const [x, C] = S;
|
|
8882
|
+
if (x)
|
|
8883
|
+
h.push(S);
|
|
8885
8884
|
else {
|
|
8886
8885
|
const { view_id: R } = await E.getHandler().getView({
|
|
8887
8886
|
model: d,
|
|
8888
8887
|
type: C,
|
|
8889
|
-
id:
|
|
8888
|
+
id: x,
|
|
8890
8889
|
context: { ...t, ...a }
|
|
8891
8890
|
});
|
|
8892
8891
|
h.push([R, C]);
|
|
@@ -9002,8 +9001,8 @@ function md(e) {
|
|
|
9002
9001
|
domain: s = [],
|
|
9003
9002
|
visible: a = !0,
|
|
9004
9003
|
parentContext: l = {}
|
|
9005
|
-
} = e, [d, u] = b(!1), [f, c] = b(!1), [m, p] = b(), [h, g] = b(), [y, w] = b(), [
|
|
9006
|
-
oe(!0),
|
|
9004
|
+
} = e, [d, u] = b(!1), [f, c] = b(!1), [m, p] = b(), [h, g] = b(), [y, w] = b(), [S, x] = b(1), [C, R] = b(0), V = ae(St), D = ae([]), [F, T] = b(0), [_, v] = b([]), [O, A] = b(void 0), [L, G] = b(), [B, q] = b(), [N, Z] = b(), [ee, oe] = b(!1), U = ae([]), $ = (W) => {
|
|
9005
|
+
oe(!0), x(W), R((W - 1) * V.current);
|
|
9007
9006
|
}, I = async () => {
|
|
9008
9007
|
const W = U.current.length > 0 ? U.current : s, ce = jt(D.current, W), { colors: Te } = At(h), { totalItems: Ee, results: Me, attrsEvaluated: Ne } = await E.getHandler().searchForTree({
|
|
9009
9008
|
params: ce,
|
|
@@ -9032,7 +9031,7 @@ function md(e) {
|
|
|
9032
9031
|
};
|
|
9033
9032
|
pe(() => {
|
|
9034
9033
|
f && a && M();
|
|
9035
|
-
}, [
|
|
9034
|
+
}, [S, C, f, a]);
|
|
9036
9035
|
const K = async (W) => {
|
|
9037
9036
|
c(!1), u(!0), Z(void 0);
|
|
9038
9037
|
try {
|
|
@@ -9082,7 +9081,7 @@ function md(e) {
|
|
|
9082
9081
|
showPagination: !1,
|
|
9083
9082
|
total: F,
|
|
9084
9083
|
limit: V.current,
|
|
9085
|
-
page:
|
|
9084
|
+
page: S,
|
|
9086
9085
|
treeView: h,
|
|
9087
9086
|
results: _,
|
|
9088
9087
|
onRequestPageChange: $,
|
|
@@ -9125,9 +9124,9 @@ function pd(e, t) {
|
|
|
9125
9124
|
setIsLoading: m,
|
|
9126
9125
|
openAction: p,
|
|
9127
9126
|
moveItemsEnabled: h
|
|
9128
|
-
} = ne(or), g = ae(), y = ae(), [w] = tt(E.getHandler().getView), [
|
|
9127
|
+
} = ne(or), g = ae(), y = ae(), [w] = tt(E.getHandler().getView), [S] = tt(
|
|
9129
9128
|
E.getHandler().readObjects
|
|
9130
|
-
), [
|
|
9129
|
+
), [x] = tt(E.getHandler().update);
|
|
9131
9130
|
pe(() => {
|
|
9132
9131
|
C();
|
|
9133
9132
|
}, [n, o, i]), wt(t, () => ({
|
|
@@ -9183,7 +9182,7 @@ function pd(e, t) {
|
|
|
9183
9182
|
return L;
|
|
9184
9183
|
}
|
|
9185
9184
|
async function D(v) {
|
|
9186
|
-
return (await
|
|
9185
|
+
return (await S({
|
|
9187
9186
|
model: n,
|
|
9188
9187
|
ids: [o],
|
|
9189
9188
|
fields: v.fields,
|
|
@@ -9239,7 +9238,7 @@ function pd(e, t) {
|
|
|
9239
9238
|
fields: g.current,
|
|
9240
9239
|
items: L
|
|
9241
9240
|
};
|
|
9242
|
-
await
|
|
9241
|
+
await x({
|
|
9243
9242
|
model: n,
|
|
9244
9243
|
id: o,
|
|
9245
9244
|
values: { [Rn]: G },
|
|
@@ -9380,11 +9379,11 @@ const gd = yt(pd), yd = (e) => {
|
|
|
9380
9379
|
const { ooui: t } = e;
|
|
9381
9380
|
return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(wd, { ooui: t }) });
|
|
9382
9381
|
}, wd = (e) => {
|
|
9383
|
-
const { value: t, ooui: n, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [a, l] = b([]), [d, u] = b(), [f, c] = b(!1), { relation: m, context: p, readOnly: h, field: g, columns: y } = n, w = ne(Be), { getContext:
|
|
9382
|
+
const { value: t, ooui: n, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [a, l] = b([]), [d, u] = b(), [f, c] = b(!1), { relation: m, context: p, readOnly: h, field: g, columns: y } = n, w = ne(Be), { getContext: S } = w || {};
|
|
9384
9383
|
Ft(() => {
|
|
9385
9384
|
C();
|
|
9386
9385
|
}, [o]);
|
|
9387
|
-
const
|
|
9386
|
+
const x = (F) => {
|
|
9388
9387
|
i == null || i({
|
|
9389
9388
|
items: F
|
|
9390
9389
|
});
|
|
@@ -9409,7 +9408,7 @@ const gd = yt(pd), yd = (e) => {
|
|
|
9409
9408
|
model: m,
|
|
9410
9409
|
params: F,
|
|
9411
9410
|
fieldsToRetrieve: [g],
|
|
9412
|
-
context: { ...
|
|
9411
|
+
context: { ...S == null ? void 0 : S(), ...p }
|
|
9413
9412
|
})).map((v) => {
|
|
9414
9413
|
const O = v[g];
|
|
9415
9414
|
let A = O;
|
|
@@ -9435,7 +9434,7 @@ const gd = yt(pd), yd = (e) => {
|
|
|
9435
9434
|
} : v : { id: v.id, operation: "pendingRemove" }), _ = T.map((v) => v.id);
|
|
9436
9435
|
F.filter((v) => !_.includes(v)).map((v) => {
|
|
9437
9436
|
T.push({ id: v, operation: "pendingLink" });
|
|
9438
|
-
}),
|
|
9437
|
+
}), x(T);
|
|
9439
9438
|
};
|
|
9440
9439
|
return f && a.length === 0 ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ k("div", { className: "flex flex-row", children: [
|
|
9441
9440
|
/* @__PURE__ */ r(
|
|
@@ -9654,7 +9653,7 @@ function Ld(e, t) {
|
|
|
9654
9653
|
const [M, K] = $[0];
|
|
9655
9654
|
I = { id: M, type: K };
|
|
9656
9655
|
}
|
|
9657
|
-
|
|
9656
|
+
x({
|
|
9658
9657
|
domain: [...G, ...T],
|
|
9659
9658
|
context: { ...l, ...L },
|
|
9660
9659
|
model: B,
|
|
@@ -9717,7 +9716,7 @@ function Ld(e, t) {
|
|
|
9717
9716
|
fields: R,
|
|
9718
9717
|
context: { ...l, ...Z }
|
|
9719
9718
|
}) : [];
|
|
9720
|
-
|
|
9719
|
+
x({
|
|
9721
9720
|
model: T,
|
|
9722
9721
|
target: A,
|
|
9723
9722
|
views: O,
|
|
@@ -9779,7 +9778,7 @@ function Ld(e, t) {
|
|
|
9779
9778
|
} else
|
|
9780
9779
|
[U, $] = oe.find((M) => M[0] === void 0 ? !1 : M[0] === F);
|
|
9781
9780
|
const I = { id: U, type: $ };
|
|
9782
|
-
|
|
9781
|
+
x({
|
|
9783
9782
|
domain: A,
|
|
9784
9783
|
context: { ...l, ...O },
|
|
9785
9784
|
model: L,
|
|
@@ -9794,7 +9793,7 @@ function Ld(e, t) {
|
|
|
9794
9793
|
limit: T && (Z === 0 || Z === !1) ? St : Z
|
|
9795
9794
|
});
|
|
9796
9795
|
}
|
|
9797
|
-
async function
|
|
9796
|
+
async function S({
|
|
9798
9797
|
model: C,
|
|
9799
9798
|
values: R,
|
|
9800
9799
|
forced_values: V,
|
|
@@ -9812,7 +9811,7 @@ function Ld(e, t) {
|
|
|
9812
9811
|
domain: T
|
|
9813
9812
|
});
|
|
9814
9813
|
}
|
|
9815
|
-
async function
|
|
9814
|
+
async function x({
|
|
9816
9815
|
domain: C,
|
|
9817
9816
|
context: R,
|
|
9818
9817
|
model: V,
|
|
@@ -9884,9 +9883,9 @@ function Ld(e, t) {
|
|
|
9884
9883
|
va,
|
|
9885
9884
|
{
|
|
9886
9885
|
openShortcut: w,
|
|
9887
|
-
openAction:
|
|
9886
|
+
openAction: x,
|
|
9888
9887
|
openRelate: y,
|
|
9889
|
-
openDefaultActionForModel:
|
|
9888
|
+
openDefaultActionForModel: S,
|
|
9890
9889
|
tabs: d,
|
|
9891
9890
|
activeKey: i,
|
|
9892
9891
|
onRemoveTab: async (C) => {
|
|
@@ -10024,8 +10023,8 @@ const { useToken: jd } = He, Eu = (e) => {
|
|
|
10024
10023
|
tabs: g,
|
|
10025
10024
|
activeKey: y,
|
|
10026
10025
|
currentView: w,
|
|
10027
|
-
currentId:
|
|
10028
|
-
openDefaultActionForModel:
|
|
10026
|
+
currentId: S,
|
|
10027
|
+
openDefaultActionForModel: x
|
|
10029
10028
|
} = p || {}, C = De(() => {
|
|
10030
10029
|
if (!w || !w.view_id || !w.extra)
|
|
10031
10030
|
return;
|
|
@@ -10036,13 +10035,13 @@ const { useToken: jd } = He, Eu = (e) => {
|
|
|
10036
10035
|
}
|
|
10037
10036
|
const A = w.view_id;
|
|
10038
10037
|
let L = !1;
|
|
10039
|
-
return w.type === "form" && (L =
|
|
10038
|
+
return w.type === "form" && (L = S || !1), {
|
|
10040
10039
|
action_id: v,
|
|
10041
10040
|
action_type: O,
|
|
10042
10041
|
view_id: A,
|
|
10043
10042
|
res_id: L
|
|
10044
10043
|
};
|
|
10045
|
-
}, [
|
|
10044
|
+
}, [S, w]), R = De(() => {
|
|
10046
10045
|
if (C)
|
|
10047
10046
|
return JSON.stringify(C);
|
|
10048
10047
|
}, [C]);
|
|
@@ -10061,7 +10060,7 @@ const { useToken: jd } = He, Eu = (e) => {
|
|
|
10061
10060
|
}, [C, n]);
|
|
10062
10061
|
async function F() {
|
|
10063
10062
|
var v;
|
|
10064
|
-
(v = m == null ? void 0 : m.current) == null || v.close(),
|
|
10063
|
+
(v = m == null ? void 0 : m.current) == null || v.close(), x == null || x({ model: "ir.ui.view_sc" });
|
|
10065
10064
|
}
|
|
10066
10065
|
const T = fe(async () => {
|
|
10067
10066
|
const v = await t();
|
|
@@ -10092,7 +10091,7 @@ const { useToken: jd } = He, Eu = (e) => {
|
|
|
10092
10091
|
l(!1);
|
|
10093
10092
|
return;
|
|
10094
10093
|
}
|
|
10095
|
-
w.type === "form" && (G =
|
|
10094
|
+
w.type === "form" && (G = S || !1), await i({
|
|
10096
10095
|
action_id: O,
|
|
10097
10096
|
action_type: A,
|
|
10098
10097
|
view_id: L,
|
|
@@ -10102,7 +10101,7 @@ const { useToken: jd } = He, Eu = (e) => {
|
|
|
10102
10101
|
await T(), l(!a);
|
|
10103
10102
|
}, [
|
|
10104
10103
|
y,
|
|
10105
|
-
|
|
10104
|
+
S,
|
|
10106
10105
|
d,
|
|
10107
10106
|
w,
|
|
10108
10107
|
T,
|