@gisce/react-ooui 2.4.0-alpha.9 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -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 x = dt(l);
|
|
331
|
+
return x && /* @__PURE__ */ r(x, {});
|
|
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 x() {
|
|
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 S() {
|
|
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
|
+
S();
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
S();
|
|
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
|
+
x(),
|
|
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 x() {
|
|
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 S() {
|
|
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: x,
|
|
453
|
+
icon: S(),
|
|
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 ? x() : y({});
|
|
527
527
|
}, [t]);
|
|
528
|
-
async function
|
|
528
|
+
async function x() {
|
|
529
529
|
m(!0);
|
|
530
530
|
try {
|
|
531
|
-
const F = await
|
|
531
|
+
const F = await S();
|
|
532
532
|
await C(F);
|
|
533
533
|
} catch (F) {
|
|
534
534
|
Je(F);
|
|
535
535
|
}
|
|
536
536
|
m(!1);
|
|
537
537
|
}
|
|
538
|
-
async function
|
|
538
|
+
async function S() {
|
|
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
|
+
(x) => x.id === g.id
|
|
1031
1031
|
), w = {
|
|
1032
1032
|
...g
|
|
1033
1033
|
};
|
|
@@ -1068,7 +1068,7 @@ const Zn = async (e) => {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Xe, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(Us, { ooui: t, views: u }) });
|
|
1070
1070
|
}, Us = (e) => {
|
|
1071
|
-
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:
|
|
1071
|
+
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: x } = i, S = s.filter((F) => F.values), C = ne(Be), { getContext: R } = C || {};
|
|
1072
1072
|
Ft(() => {
|
|
1073
1073
|
D();
|
|
1074
1074
|
}, [s]);
|
|
@@ -1101,7 +1101,7 @@ const Zn = async (e) => {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
return d ? /* @__PURE__ */ r(Xe, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ k(Q, { children: [
|
|
1104
|
-
/* @__PURE__ */ r(_n, { style: { padding: "1rem" }, children:
|
|
1104
|
+
/* @__PURE__ */ r(_n, { style: { padding: "1rem" }, children: S.map((F, T) => {
|
|
1105
1105
|
var O, v;
|
|
1106
1106
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ k(_n.Item, { children: [
|
|
1107
1107
|
/* @__PURE__ */ r(
|
|
@@ -1110,12 +1110,12 @@ const Zn = async (e) => {
|
|
|
1110
1110
|
style: { display: "inline-block", cursor: "pointer" },
|
|
1111
1111
|
onClick: () => {
|
|
1112
1112
|
p(
|
|
1113
|
-
|
|
1113
|
+
S.find(
|
|
1114
1114
|
(_) => F.id === _.id
|
|
1115
1115
|
)
|
|
1116
1116
|
), c(!0);
|
|
1117
1117
|
},
|
|
1118
|
-
children: /* @__PURE__ */ r("strong", { children: (O = F.values) == null ? void 0 : O[
|
|
1118
|
+
children: /* @__PURE__ */ r("strong", { children: (O = F.values) == null ? void 0 : O[x] })
|
|
1119
1119
|
}
|
|
1120
1120
|
),
|
|
1121
1121
|
/* @__PURE__ */ r("br", {}),
|
|
@@ -1125,7 +1125,7 @@ const Zn = async (e) => {
|
|
|
1125
1125
|
style: { display: "inline-block", cursor: "pointer" },
|
|
1126
1126
|
onClick: () => {
|
|
1127
1127
|
p(
|
|
1128
|
-
|
|
1128
|
+
S.find(
|
|
1129
1129
|
(_) => F.id === _.id
|
|
1130
1130
|
)
|
|
1131
1131
|
), c(!0);
|
|
@@ -1338,14 +1338,14 @@ const Mt = ({
|
|
|
1338
1338
|
}, ra = (e) => {
|
|
1339
1339
|
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 || {};
|
|
1340
1340
|
Ft(() => {
|
|
1341
|
-
|
|
1341
|
+
S();
|
|
1342
1342
|
}, [o]);
|
|
1343
|
-
const
|
|
1343
|
+
const x = (V) => {
|
|
1344
1344
|
i == null || i({
|
|
1345
1345
|
items: V
|
|
1346
1346
|
});
|
|
1347
1347
|
};
|
|
1348
|
-
async function
|
|
1348
|
+
async function S() {
|
|
1349
1349
|
c(!0);
|
|
1350
1350
|
let V = [];
|
|
1351
1351
|
try {
|
|
@@ -1385,7 +1385,7 @@ const Mt = ({
|
|
|
1385
1385
|
} : T : { id: T.id, operation: "pendingRemove" }), F = D.map((T) => T.id);
|
|
1386
1386
|
V.filter((T) => !F.includes(T)).map((T) => {
|
|
1387
1387
|
D.push({ id: T, operation: "pendingLink" });
|
|
1388
|
-
}),
|
|
1388
|
+
}), x(D);
|
|
1389
1389
|
}, R = (V) => {
|
|
1390
1390
|
const { label: D, closable: F, onClose: T } = V, O = (_) => {
|
|
1391
1391
|
_.preventDefault(), _.stopPropagation();
|
|
@@ -1642,8 +1642,8 @@ const Mt = ({
|
|
|
1642
1642
|
currentModel: g,
|
|
1643
1643
|
sorter: y,
|
|
1644
1644
|
setSorter: w,
|
|
1645
|
-
totalItems:
|
|
1646
|
-
setTotalItems:
|
|
1645
|
+
totalItems: x,
|
|
1646
|
+
setTotalItems: S,
|
|
1647
1647
|
setSelectedRowItems: C,
|
|
1648
1648
|
selectedRowItems: R,
|
|
1649
1649
|
searchTreeNameSearch: V,
|
|
@@ -1715,8 +1715,8 @@ const Mt = ({
|
|
|
1715
1715
|
setSearchVisible: le,
|
|
1716
1716
|
sorter: y,
|
|
1717
1717
|
setSorter: w,
|
|
1718
|
-
totalItems:
|
|
1719
|
-
setTotalItems:
|
|
1718
|
+
totalItems: x,
|
|
1719
|
+
setTotalItems: S,
|
|
1720
1720
|
searchTreeNameSearch: V,
|
|
1721
1721
|
setSearchTreeNameSearch: D,
|
|
1722
1722
|
setGraphIsLoading: re,
|
|
@@ -1827,7 +1827,7 @@ const Mt = ({
|
|
|
1827
1827
|
s.current = !1, clearInterval(o.current), l(!1), Je(T.exception || T);
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
async function
|
|
1830
|
+
async function x({
|
|
1831
1831
|
actionData: D,
|
|
1832
1832
|
fields: F,
|
|
1833
1833
|
values: T,
|
|
@@ -1843,7 +1843,7 @@ const Mt = ({
|
|
|
1843
1843
|
context: O
|
|
1844
1844
|
});
|
|
1845
1845
|
if (_ === "ir.actions.act_window")
|
|
1846
|
-
return await
|
|
1846
|
+
return await S({ actionData: D, fields: F, values: T, context: O });
|
|
1847
1847
|
if (_ === "ir.actions.act_url")
|
|
1848
1848
|
window.open(
|
|
1849
1849
|
ea(D.url, { ...T, context: O }),
|
|
@@ -1852,7 +1852,7 @@ const Mt = ({
|
|
|
1852
1852
|
else
|
|
1853
1853
|
return Je(`${_} action not supported`), {};
|
|
1854
1854
|
}
|
|
1855
|
-
async function
|
|
1855
|
+
async function S({
|
|
1856
1856
|
actionData: D,
|
|
1857
1857
|
fields: F = {},
|
|
1858
1858
|
values: T = {},
|
|
@@ -1952,7 +1952,7 @@ const Mt = ({
|
|
|
1952
1952
|
Pt.Provider,
|
|
1953
1953
|
{
|
|
1954
1954
|
value: {
|
|
1955
|
-
processAction:
|
|
1955
|
+
processAction: x,
|
|
1956
1956
|
globalValues: i
|
|
1957
1957
|
},
|
|
1958
1958
|
children: /* @__PURE__ */ k(Q, { children: [
|
|
@@ -2086,8 +2086,8 @@ function Ta(e, t) {
|
|
|
2086
2086
|
postSaveAction: g,
|
|
2087
2087
|
insideButtonModal: y = !1,
|
|
2088
2088
|
parentContext: w = {},
|
|
2089
|
-
actionDomain:
|
|
2090
|
-
visible:
|
|
2089
|
+
actionDomain: x,
|
|
2090
|
+
visible: S = !0,
|
|
2091
2091
|
rootForm: C = !1,
|
|
2092
2092
|
defaultValues: R,
|
|
2093
2093
|
forcedValues: V = {},
|
|
@@ -2118,13 +2118,13 @@ function Ta(e, t) {
|
|
|
2118
2118
|
}
|
|
2119
2119
|
})), pe(() => {
|
|
2120
2120
|
if (_(void 0), !(!n && !h)) {
|
|
2121
|
-
if (!
|
|
2121
|
+
if (!S) {
|
|
2122
2122
|
N.current = void 0, L(void 0);
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
2125
2125
|
(i === void 0 && P || i !== void 0 && P && i < 0) && (N.current = void 0, L(void 0)), Lt();
|
|
2126
2126
|
}
|
|
2127
|
-
}, [i, n, p, h,
|
|
2127
|
+
}, [i, n, p, h, S]), pe(() => {
|
|
2128
2128
|
$ && (wn({
|
|
2129
2129
|
elementHasLostFocus: !0
|
|
2130
2130
|
}), I(!1));
|
|
@@ -2233,7 +2233,7 @@ function Ta(e, t) {
|
|
|
2233
2233
|
se == null || se(!0), _(void 0), M != null && M.fields ? (J = M.fields, X = M.arch) : (J = P, X = B), p && (M == null ? void 0 : M.forceRefresh) !== !0 ? H = p : { values: H, defaultGetCalled: be } = await Mo({
|
|
2234
2234
|
fields: J,
|
|
2235
2235
|
arch: X
|
|
2236
|
-
}),
|
|
2236
|
+
}), x && (H = { ...Qs(x), ...H }), K.current = Ot(H, J), ft({
|
|
2237
2237
|
values: H,
|
|
2238
2238
|
fields: J,
|
|
2239
2239
|
reset: !0,
|
|
@@ -2576,13 +2576,13 @@ function Ta(e, t) {
|
|
|
2576
2576
|
X && vn(!1), Je(be);
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
const Yo = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !
|
|
2579
|
+
const Yo = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !S ? null : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
|
|
2580
2580
|
hs,
|
|
2581
2581
|
{
|
|
2582
2582
|
getValues: Ae,
|
|
2583
2583
|
getPlainValues: Y,
|
|
2584
2584
|
getFields: je,
|
|
2585
|
-
domain:
|
|
2585
|
+
domain: x,
|
|
2586
2586
|
activeId: i,
|
|
2587
2587
|
activeModel: n,
|
|
2588
2588
|
setFieldValue: bt,
|
|
@@ -2640,7 +2640,7 @@ function Ta(e, t) {
|
|
|
2640
2640
|
)
|
|
2641
2641
|
] }) })
|
|
2642
2642
|
] });
|
|
2643
|
-
return
|
|
2643
|
+
return S ? /* @__PURE__ */ r(
|
|
2644
2644
|
Xn,
|
|
2645
2645
|
{
|
|
2646
2646
|
bounds: !0,
|
|
@@ -2666,16 +2666,16 @@ const zt = yt(Ta), Jt = (e) => {
|
|
|
2666
2666
|
isMenuAction: a = !1,
|
|
2667
2667
|
actionData: l,
|
|
2668
2668
|
...d
|
|
2669
|
-
} = e, { model: u } = d, { modalWidth: f } = hn(), [c, m] = b(i), [p, h] = b(!1), [g, y] = b(), { action_id: w, res_id:
|
|
2669
|
+
} = e, { model: u } = d, { modalWidth: f } = hn(), [c, m] = b(i), [p, h] = b(!1), [g, y] = b(), { action_id: w, res_id: x, action_type: S, view_id: C } = l || {};
|
|
2670
2670
|
pe(() => {
|
|
2671
2671
|
a && R();
|
|
2672
2672
|
}, [l, a]);
|
|
2673
2673
|
async function R() {
|
|
2674
2674
|
const T = await E.getHandler().isShortcutFavorite({
|
|
2675
2675
|
action_id: w,
|
|
2676
|
-
action_type:
|
|
2676
|
+
action_type: S,
|
|
2677
2677
|
view_id: C,
|
|
2678
|
-
res_id:
|
|
2678
|
+
res_id: x || !1
|
|
2679
2679
|
});
|
|
2680
2680
|
h(T !== !1), T !== !1 && y(T);
|
|
2681
2681
|
}
|
|
@@ -2731,7 +2731,7 @@ const zt = yt(Ta), Jt = (e) => {
|
|
|
2731
2731
|
parentWidth: F,
|
|
2732
2732
|
...d
|
|
2733
2733
|
},
|
|
2734
|
-
`${u}-${n}-${w}-${
|
|
2734
|
+
`${u}-${n}-${w}-${x}-${S}-${C}-${i}`
|
|
2735
2735
|
)
|
|
2736
2736
|
}
|
|
2737
2737
|
) });
|
|
@@ -3097,18 +3097,18 @@ function po(e) {
|
|
|
3097
3097
|
searchError: c,
|
|
3098
3098
|
searchValues: m,
|
|
3099
3099
|
showLimitOptions: p = !0
|
|
3100
|
-
} = e, [h, g] = b(), [y, w] = b(), [
|
|
3100
|
+
} = e, [h, g] = b(), [y, w] = b(), [x, S] = b(!1), C = ae(), { token: R } = za(), [V] = ct.useForm();
|
|
3101
3101
|
pe(() => {
|
|
3102
3102
|
V.setFieldsValue(m);
|
|
3103
3103
|
}, [m]);
|
|
3104
3104
|
const D = () => {
|
|
3105
3105
|
if (!y)
|
|
3106
3106
|
return;
|
|
3107
|
-
const O =
|
|
3107
|
+
const O = x ? y : h, v = O == null ? void 0 : O.rows;
|
|
3108
3108
|
return v == null ? void 0 : v.map((_, A) => /* @__PURE__ */ r(_e, { children: _.map((L, G) => /* @__PURE__ */ r(ue, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r(La, { field: L }) }, G)) }, A));
|
|
3109
3109
|
};
|
|
3110
3110
|
Ft(() => {
|
|
3111
|
-
|
|
3111
|
+
S(!1), C.current = new di(n, t), C.current.parse(), g(C.current._simpleSearchContainer), w(C.current._advancedSearchContainer);
|
|
3112
3112
|
}, [t, n]);
|
|
3113
3113
|
const F = D(), T = (O) => {
|
|
3114
3114
|
var L;
|
|
@@ -3139,13 +3139,13 @@ function po(e) {
|
|
|
3139
3139
|
initialValues: { offset: a, limit: l },
|
|
3140
3140
|
children: [
|
|
3141
3141
|
F,
|
|
3142
|
-
|
|
3142
|
+
x && p && /* @__PURE__ */ r(Ba, { onLimitChange: d }),
|
|
3143
3143
|
/* @__PURE__ */ r(
|
|
3144
3144
|
$a,
|
|
3145
3145
|
{
|
|
3146
|
-
advancedFilter:
|
|
3146
|
+
advancedFilter: x,
|
|
3147
3147
|
onAdvancedFilterToggle: () => {
|
|
3148
|
-
|
|
3148
|
+
S(!x);
|
|
3149
3149
|
},
|
|
3150
3150
|
onClear: () => {
|
|
3151
3151
|
V.resetFields(), i();
|
|
@@ -3394,29 +3394,29 @@ const el = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3394
3394
|
p(), g();
|
|
3395
3395
|
}, [p, g]), w = fe(async () => {
|
|
3396
3396
|
var V;
|
|
3397
|
-
const
|
|
3397
|
+
const S = await m({
|
|
3398
3398
|
model: n,
|
|
3399
3399
|
type: "form",
|
|
3400
3400
|
context: i
|
|
3401
3401
|
});
|
|
3402
|
-
s(
|
|
3403
|
-
const C = rl(
|
|
3402
|
+
s(S);
|
|
3403
|
+
const C = rl(S);
|
|
3404
3404
|
let R = {};
|
|
3405
3405
|
if (C.length > 0 && (R = { ...(V = await h({
|
|
3406
3406
|
model: n,
|
|
3407
3407
|
ids: [t],
|
|
3408
3408
|
fieldsToRetrieve: C,
|
|
3409
3409
|
context: i
|
|
3410
|
-
})) == null ? void 0 : V[0] }), R = { ...Ot(R, C), active_id: t }, l(R), !(!
|
|
3410
|
+
})) == null ? void 0 : V[0] }), R = { ...Ot(R, C), active_id: t }, l(R), !(!S || !S.toolbar))
|
|
3411
3411
|
return {
|
|
3412
|
-
actionItems:
|
|
3413
|
-
relateItems:
|
|
3414
|
-
printItems:
|
|
3412
|
+
actionItems: S.toolbar.action,
|
|
3413
|
+
relateItems: S.toolbar.relate,
|
|
3414
|
+
printItems: S.toolbar.print
|
|
3415
3415
|
};
|
|
3416
3416
|
}, [i, m, t, n, h]);
|
|
3417
3417
|
if (!t)
|
|
3418
3418
|
return null;
|
|
3419
|
-
function
|
|
3419
|
+
function x({ item: S, type: C }) {
|
|
3420
3420
|
const R = {
|
|
3421
3421
|
values: a,
|
|
3422
3422
|
fields: o.fields
|
|
@@ -3424,7 +3424,7 @@ const el = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3424
3424
|
switch (C) {
|
|
3425
3425
|
case "action":
|
|
3426
3426
|
c == null || c({
|
|
3427
|
-
actionData:
|
|
3427
|
+
actionData: S,
|
|
3428
3428
|
context: { active_id: t, active_ids: [t] },
|
|
3429
3429
|
...R
|
|
3430
3430
|
});
|
|
@@ -3432,17 +3432,17 @@ const el = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3432
3432
|
case "print":
|
|
3433
3433
|
c == null || c({
|
|
3434
3434
|
actionData: {
|
|
3435
|
-
...
|
|
3436
|
-
datas: { ...
|
|
3435
|
+
...S,
|
|
3436
|
+
datas: { ...S.datas, ids: [t] }
|
|
3437
3437
|
},
|
|
3438
3438
|
...R
|
|
3439
3439
|
});
|
|
3440
3440
|
break;
|
|
3441
3441
|
case "relate":
|
|
3442
3442
|
u({
|
|
3443
|
-
relateData:
|
|
3444
|
-
action_id:
|
|
3445
|
-
action_type:
|
|
3443
|
+
relateData: S,
|
|
3444
|
+
action_id: S.id,
|
|
3445
|
+
action_type: S.type,
|
|
3446
3446
|
...R
|
|
3447
3447
|
});
|
|
3448
3448
|
break;
|
|
@@ -3452,9 +3452,9 @@ const el = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
|
|
|
3452
3452
|
nl,
|
|
3453
3453
|
{
|
|
3454
3454
|
onRetrieveData: w,
|
|
3455
|
-
onItemClick:
|
|
3456
|
-
onOpenChange: (
|
|
3457
|
-
|
|
3455
|
+
onItemClick: x,
|
|
3456
|
+
onOpenChange: (S) => {
|
|
3457
|
+
S || y();
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
3460
|
);
|
|
@@ -3735,8 +3735,8 @@ const sl = (e) => {
|
|
|
3735
3735
|
statusForResults: g = {},
|
|
3736
3736
|
onChangeSort: y,
|
|
3737
3737
|
sorter: w,
|
|
3738
|
-
onFetchChildrenForRecord:
|
|
3739
|
-
childField:
|
|
3738
|
+
onFetchChildrenForRecord: x,
|
|
3739
|
+
childField: S,
|
|
3740
3740
|
rootTree: C = !1,
|
|
3741
3741
|
context: R,
|
|
3742
3742
|
readonly: V,
|
|
@@ -3849,12 +3849,12 @@ const sl = (e) => {
|
|
|
3849
3849
|
onChangeSort: y,
|
|
3850
3850
|
sorter: w,
|
|
3851
3851
|
readonly: V,
|
|
3852
|
-
expandableOpts:
|
|
3852
|
+
expandableOpts: x ? {
|
|
3853
3853
|
expandIcon: yi,
|
|
3854
3854
|
collapseIcon: wi,
|
|
3855
3855
|
loadingIcon: st,
|
|
3856
|
-
onFetchChildrenForRecord:
|
|
3857
|
-
childField:
|
|
3856
|
+
onFetchChildrenForRecord: x,
|
|
3857
|
+
childField: S
|
|
3858
3858
|
} : void 0
|
|
3859
3859
|
}
|
|
3860
3860
|
),
|
|
@@ -3883,8 +3883,8 @@ const bo = (e) => {
|
|
|
3883
3883
|
setCurrentItemIndex: g,
|
|
3884
3884
|
setResultsActionView: y,
|
|
3885
3885
|
resultsActionView: w,
|
|
3886
|
-
domain:
|
|
3887
|
-
currentId:
|
|
3886
|
+
domain: x,
|
|
3887
|
+
currentId: S,
|
|
3888
3888
|
limit: C,
|
|
3889
3889
|
setLimit: R,
|
|
3890
3890
|
searchParams: V = [],
|
|
@@ -3900,7 +3900,7 @@ const bo = (e) => {
|
|
|
3900
3900
|
model: t,
|
|
3901
3901
|
payload: l,
|
|
3902
3902
|
limit: le.current,
|
|
3903
|
-
attrs:
|
|
3903
|
+
attrs: x,
|
|
3904
3904
|
context: u
|
|
3905
3905
|
});
|
|
3906
3906
|
if (ee(se.length), f == null || f(se.length), se.length > 0) {
|
|
@@ -3930,7 +3930,7 @@ const bo = (e) => {
|
|
|
3930
3930
|
l,
|
|
3931
3931
|
t,
|
|
3932
3932
|
u,
|
|
3933
|
-
|
|
3933
|
+
x,
|
|
3934
3934
|
c,
|
|
3935
3935
|
m,
|
|
3936
3936
|
p,
|
|
@@ -3938,7 +3938,7 @@ const bo = (e) => {
|
|
|
3938
3938
|
f
|
|
3939
3939
|
]), ce = fe(
|
|
3940
3940
|
async (se) => {
|
|
3941
|
-
const { params: Oe, newOffset: We } = se || {}, Ke = jt(Oe || V,
|
|
3941
|
+
const { params: Oe, newOffset: We } = se || {}, Ke = jt(Oe || V, x), { colors: j, status: ge } = At(c), Ve = {};
|
|
3942
3942
|
j && (Ve.colors = j), ge && (Ve.status = ge);
|
|
3943
3943
|
const { totalItems: de, results: he, attrsEvaluated: ye } = await E.getHandler().searchForTree({
|
|
3944
3944
|
params: Ke,
|
|
@@ -3957,7 +3957,7 @@ const bo = (e) => {
|
|
|
3957
3957
|
}) : [...z.current];
|
|
3958
3958
|
if (re(ie), w && ie.length > 0) {
|
|
3959
3959
|
const Ae = ie.findIndex(
|
|
3960
|
-
(Y) =>
|
|
3960
|
+
(Y) => S === Y.id
|
|
3961
3961
|
);
|
|
3962
3962
|
Ae === -1 ? g == null || g(0) : g == null || g(Ae);
|
|
3963
3963
|
} else
|
|
@@ -3970,10 +3970,10 @@ const bo = (e) => {
|
|
|
3970
3970
|
g,
|
|
3971
3971
|
w,
|
|
3972
3972
|
re,
|
|
3973
|
-
|
|
3973
|
+
S,
|
|
3974
3974
|
t,
|
|
3975
3975
|
u,
|
|
3976
|
-
|
|
3976
|
+
x,
|
|
3977
3977
|
c,
|
|
3978
3978
|
m,
|
|
3979
3979
|
p,
|
|
@@ -4064,11 +4064,11 @@ const bo = (e) => {
|
|
|
4064
4064
|
},
|
|
4065
4065
|
[c, t, u, ve, re]
|
|
4066
4066
|
), Le = fe(async () => await E.getHandler().searchAllIds({
|
|
4067
|
-
params: jt(V,
|
|
4067
|
+
params: jt(V, x),
|
|
4068
4068
|
model: t,
|
|
4069
4069
|
context: u,
|
|
4070
4070
|
totalItems: Z
|
|
4071
|
-
}), [t, u, Z, V,
|
|
4071
|
+
}), [t, u, Z, V, x]);
|
|
4072
4072
|
return {
|
|
4073
4073
|
submit: Ne,
|
|
4074
4074
|
clear: me,
|
|
@@ -4103,7 +4103,7 @@ function Sl(e, t) {
|
|
|
4103
4103
|
rootTree: f = !1,
|
|
4104
4104
|
parentContext: c = {},
|
|
4105
4105
|
onChangeSelectedRowKeys: m
|
|
4106
|
-
} = e, [p, h] = b(!1), [g, y] = b(!1), w = ae(!1),
|
|
4106
|
+
} = e, [p, h] = b(!1), [g, y] = b(!1), w = ae(!1), x = ae(null), [S, C] = b(), [R, V] = b(), [D, F] = b(), [T, O] = b(), [v, _] = b(200), A = ae(), { height: L } = hn(), G = ne(
|
|
4107
4107
|
Pt
|
|
4108
4108
|
), { processAction: B } = G || {}, q = ne(
|
|
4109
4109
|
rt
|
|
@@ -4151,7 +4151,7 @@ function Sl(e, t) {
|
|
|
4151
4151
|
totalItems: Y,
|
|
4152
4152
|
getAllIds: te
|
|
4153
4153
|
} = bo({
|
|
4154
|
-
model:
|
|
4154
|
+
model: S,
|
|
4155
4155
|
setSearchTreeNameSearch: W,
|
|
4156
4156
|
setSelectedRowItems: me,
|
|
4157
4157
|
setSearchParams: N,
|
|
@@ -4174,7 +4174,7 @@ function Sl(e, t) {
|
|
|
4174
4174
|
setActionViewTotalItems: ve,
|
|
4175
4175
|
limit: Ne,
|
|
4176
4176
|
setLimit: Me,
|
|
4177
|
-
clearSelection: (lt =
|
|
4177
|
+
clearSelection: (lt = x.current) == null ? void 0 : lt.unselectAll
|
|
4178
4178
|
});
|
|
4179
4179
|
wt(t, () => ({
|
|
4180
4180
|
refreshResults: () => {
|
|
@@ -4222,7 +4222,7 @@ function Sl(e, t) {
|
|
|
4222
4222
|
const { id: ot } = Pe;
|
|
4223
4223
|
A.current || (A.current = await E.getHandler().treeButOpen({
|
|
4224
4224
|
id: R.view_id,
|
|
4225
|
-
model:
|
|
4225
|
+
model: S,
|
|
4226
4226
|
context: c
|
|
4227
4227
|
}));
|
|
4228
4228
|
const ft = A.current[0][2];
|
|
@@ -4236,7 +4236,7 @@ function Sl(e, t) {
|
|
|
4236
4236
|
context: c
|
|
4237
4237
|
}));
|
|
4238
4238
|
},
|
|
4239
|
-
[
|
|
4239
|
+
[S, c, B, R]
|
|
4240
4240
|
), Ze = fe(
|
|
4241
4241
|
async (Pe) => {
|
|
4242
4242
|
const { id: ot } = Pe;
|
|
@@ -4250,12 +4250,12 @@ function Sl(e, t) {
|
|
|
4250
4250
|
}
|
|
4251
4251
|
s({
|
|
4252
4252
|
id: ot,
|
|
4253
|
-
model:
|
|
4253
|
+
model: S,
|
|
4254
4254
|
formView: D,
|
|
4255
4255
|
treeView: R
|
|
4256
4256
|
});
|
|
4257
4257
|
},
|
|
4258
|
-
[
|
|
4258
|
+
[S, D, s, Ie, R]
|
|
4259
4259
|
), Ye = fe(async () => {
|
|
4260
4260
|
const Pe = await te();
|
|
4261
4261
|
$ == null || $(Pe.map((ot) => ({ id: ot }))), m == null || m(Pe);
|
|
@@ -4286,7 +4286,7 @@ function Sl(e, t) {
|
|
|
4286
4286
|
/* @__PURE__ */ r(
|
|
4287
4287
|
Xt,
|
|
4288
4288
|
{
|
|
4289
|
-
ref:
|
|
4289
|
+
ref: x,
|
|
4290
4290
|
context: c,
|
|
4291
4291
|
total: Y,
|
|
4292
4292
|
limit: ge,
|
|
@@ -4353,9 +4353,9 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4353
4353
|
domain: a,
|
|
4354
4354
|
context: l = {}
|
|
4355
4355
|
} = e, [d, u] = b(!1), { modalWidth: f, modalHeight: c } = hn(), { t: m } = we(), [p, h] = b([]), g = async () => {
|
|
4356
|
-
await new Promise((
|
|
4357
|
-
}, y = async (
|
|
4358
|
-
const { id: C } =
|
|
4356
|
+
await new Promise((S) => setTimeout(S, 5)), n();
|
|
4357
|
+
}, y = async (S) => {
|
|
4358
|
+
const { id: C } = S;
|
|
4359
4359
|
i([C]);
|
|
4360
4360
|
};
|
|
4361
4361
|
function w() {
|
|
@@ -4365,7 +4365,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
i(p);
|
|
4367
4367
|
}
|
|
4368
|
-
const
|
|
4368
|
+
const x = () => /* @__PURE__ */ k(Q, { children: [
|
|
4369
4369
|
/* @__PURE__ */ r(
|
|
4370
4370
|
Co,
|
|
4371
4371
|
{
|
|
@@ -4417,7 +4417,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4417
4417
|
footer: null,
|
|
4418
4418
|
destroyOnClose: !0,
|
|
4419
4419
|
maskClosable: !1,
|
|
4420
|
-
children:
|
|
4420
|
+
children: x()
|
|
4421
4421
|
}
|
|
4422
4422
|
),
|
|
4423
4423
|
/* @__PURE__ */ r(
|
|
@@ -4426,8 +4426,8 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4426
4426
|
model: o,
|
|
4427
4427
|
visible: d,
|
|
4428
4428
|
parentContext: l,
|
|
4429
|
-
onSubmitSucceed: (
|
|
4430
|
-
u(!1), g(), i([
|
|
4429
|
+
onSubmitSucceed: (S) => {
|
|
4430
|
+
u(!1), g(), i([S]);
|
|
4431
4431
|
},
|
|
4432
4432
|
onCancel: () => {
|
|
4433
4433
|
u(!1), g();
|
|
@@ -4460,7 +4460,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4460
4460
|
context: l,
|
|
4461
4461
|
id: d,
|
|
4462
4462
|
domain: u
|
|
4463
|
-
} = i, f = o && !a ? { backgroundColor: So.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [g, y] = b(!1), [w,
|
|
4463
|
+
} = i, f = o && !a ? { backgroundColor: So.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [g, y] = b(!1), [w, x] = b(), S = ae(!1), [C, R] = b(""), V = ae(), D = ne(Be), { domain: F, getValues: T, getFields: O, getContext: v, elementHasLostFocus: _ } = D || {}, A = ae([]), [L, G] = b([]), B = t && t[0] || void 0, q = t && t[1] || "";
|
|
4464
4464
|
pe(() => {
|
|
4465
4465
|
!Array.isArray(t) && t && U(t);
|
|
4466
4466
|
}, [t]), pe(() => {
|
|
@@ -4472,7 +4472,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4472
4472
|
V.current = K.target.value, P([void 0, ""]);
|
|
4473
4473
|
}, ee = async () => {
|
|
4474
4474
|
if (!g && C !== q) {
|
|
4475
|
-
if (await new Promise((K) => setTimeout(K, 100)),
|
|
4475
|
+
if (await new Promise((K) => setTimeout(K, 100)), S.current) {
|
|
4476
4476
|
P([void 0, ""]);
|
|
4477
4477
|
return;
|
|
4478
4478
|
}
|
|
@@ -4502,10 +4502,10 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4502
4502
|
context: { ...v == null ? void 0 : v(), ...l },
|
|
4503
4503
|
totalItems: 2
|
|
4504
4504
|
});
|
|
4505
|
-
le.length === 1 ? U(le[0]) : (
|
|
4505
|
+
le.length === 1 ? U(le[0]) : (x(K), m(!0));
|
|
4506
4506
|
return;
|
|
4507
4507
|
}
|
|
4508
|
-
|
|
4508
|
+
x(K), m(!0);
|
|
4509
4509
|
}, U = async (K) => {
|
|
4510
4510
|
y(!0);
|
|
4511
4511
|
try {
|
|
@@ -4584,7 +4584,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4584
4584
|
icon: g ? /* @__PURE__ */ r(st, {}) : /* @__PURE__ */ r(Wn, {}),
|
|
4585
4585
|
disabled: a || g,
|
|
4586
4586
|
onClick: () => {
|
|
4587
|
-
|
|
4587
|
+
S.current = !0, oe(q);
|
|
4588
4588
|
},
|
|
4589
4589
|
style: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
|
|
4590
4590
|
tabIndex: -1
|
|
@@ -4599,10 +4599,10 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4599
4599
|
visible: c,
|
|
4600
4600
|
nameSearch: B ? void 0 : w,
|
|
4601
4601
|
onSelectValues: (K) => {
|
|
4602
|
-
m(!1), U(K[0]),
|
|
4602
|
+
m(!1), U(K[0]), S.current = !1, V.current = void 0;
|
|
4603
4603
|
},
|
|
4604
4604
|
onCloseModal: () => {
|
|
4605
|
-
m(!1),
|
|
4605
|
+
m(!1), S.current = !1;
|
|
4606
4606
|
}
|
|
4607
4607
|
}
|
|
4608
4608
|
),
|
|
@@ -4662,7 +4662,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4662
4662
|
field: u,
|
|
4663
4663
|
operator: f,
|
|
4664
4664
|
manualIds: c
|
|
4665
|
-
} = e, [m, p] = b(!1), [h, g] = b(), [y, w] = b(), [
|
|
4665
|
+
} = e, [m, p] = b(!1), [h, g] = b(), [y, w] = b(), [x, S] = b(), [C, R] = b(0), [V, D] = b(0), [F, T] = b(), [O, v] = b(), [_, A] = b(), [L] = et(
|
|
4666
4666
|
E.getHandler().searchAllIds
|
|
4667
4667
|
), [G] = et(
|
|
4668
4668
|
E.getHandler().readObjects
|
|
@@ -4741,7 +4741,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4741
4741
|
U = await Z({
|
|
4742
4742
|
domain: N,
|
|
4743
4743
|
isTotal: !0
|
|
4744
|
-
}),
|
|
4744
|
+
}), S(U);
|
|
4745
4745
|
}
|
|
4746
4746
|
if (U ? ($ = Math.round(I / U * 100 * 100) / 100, w($)) : w(0), o) {
|
|
4747
4747
|
const N = await P({
|
|
@@ -4779,7 +4779,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4779
4779
|
Dl,
|
|
4780
4780
|
{
|
|
4781
4781
|
value: h,
|
|
4782
|
-
total:
|
|
4782
|
+
total: x,
|
|
4783
4783
|
percent: y,
|
|
4784
4784
|
measureRef: U,
|
|
4785
4785
|
height: C,
|
|
@@ -4792,7 +4792,7 @@ const Co = yt(Sl), xo = (e) => {
|
|
|
4792
4792
|
Al,
|
|
4793
4793
|
{
|
|
4794
4794
|
value: h,
|
|
4795
|
-
total:
|
|
4795
|
+
total: x,
|
|
4796
4796
|
measureRef: U,
|
|
4797
4797
|
height: C,
|
|
4798
4798
|
width: V,
|
|
@@ -5054,9 +5054,9 @@ const { processGraphData: Pl } = Kr, { getFieldsToRetrieve: Ll } = mi, $l = (e)
|
|
|
5054
5054
|
limit: s,
|
|
5055
5055
|
uninformedString: a,
|
|
5056
5056
|
manualIds: l
|
|
5057
|
-
} = e, [d, u] = b(!1), [f, c] = b(), [m, p] = b(), [h, g] = b(), [y, w] = b("line"), [
|
|
5057
|
+
} = e, [d, u] = b(!1), [f, c] = b(), [m, p] = b(), [h, g] = b(), [y, w] = b("line"), [x] = et(
|
|
5058
5058
|
E.getHandler().getFields
|
|
5059
|
-
), [
|
|
5059
|
+
), [S] = et(
|
|
5060
5060
|
E.getHandler().readObjects
|
|
5061
5061
|
), [C] = et(E.getHandler().search), R = fe(async () => {
|
|
5062
5062
|
u(!0), c(void 0);
|
|
@@ -5074,8 +5074,8 @@ const { processGraphData: Pl } = Kr, { getFieldsToRetrieve: Ll } = mi, $l = (e)
|
|
|
5074
5074
|
fields: D,
|
|
5075
5075
|
manualIds: l,
|
|
5076
5076
|
methods: {
|
|
5077
|
-
getFields:
|
|
5078
|
-
readObjects:
|
|
5077
|
+
getFields: x,
|
|
5078
|
+
readObjects: S,
|
|
5079
5079
|
search: C
|
|
5080
5080
|
}
|
|
5081
5081
|
}));
|
|
@@ -5113,13 +5113,13 @@ const { processGraphData: Pl } = Kr, { getFieldsToRetrieve: Ll } = mi, $l = (e)
|
|
|
5113
5113
|
n,
|
|
5114
5114
|
f,
|
|
5115
5115
|
h,
|
|
5116
|
-
|
|
5116
|
+
x,
|
|
5117
5117
|
s,
|
|
5118
5118
|
d,
|
|
5119
5119
|
l,
|
|
5120
5120
|
t,
|
|
5121
5121
|
m,
|
|
5122
|
-
|
|
5122
|
+
S,
|
|
5123
5123
|
C,
|
|
5124
5124
|
y,
|
|
5125
5125
|
a,
|
|
@@ -5191,7 +5191,7 @@ const Kl = {
|
|
|
5191
5191
|
bar: Li,
|
|
5192
5192
|
pie: $i
|
|
5193
5193
|
}, jl = (e) => {
|
|
5194
|
-
var
|
|
5194
|
+
var x;
|
|
5195
5195
|
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 } = $l({
|
|
5196
5196
|
model: t,
|
|
5197
5197
|
xml: o,
|
|
@@ -5211,7 +5211,7 @@ const Kl = {
|
|
|
5211
5211
|
return /* @__PURE__ */ r(Xe, { message: d, type: "error", banner: !0 });
|
|
5212
5212
|
const { data: h, isGroup: g, isStack: y } = f, w = Kl[c];
|
|
5213
5213
|
return w ? /* @__PURE__ */ k("div", { style: { padding: "1rem" }, children: [
|
|
5214
|
-
/* @__PURE__ */ r("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(
|
|
5214
|
+
/* @__PURE__ */ r("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(x = m == null ? void 0 : m.length) == null ? void 0 : x.toLocaleString(
|
|
5215
5215
|
"es-ES",
|
|
5216
5216
|
{
|
|
5217
5217
|
useGrouping: !0
|
|
@@ -5249,17 +5249,17 @@ const Ul = (e, t) => {
|
|
|
5249
5249
|
async function w() {
|
|
5250
5250
|
u(!0), g == null || g(!0);
|
|
5251
5251
|
try {
|
|
5252
|
-
const
|
|
5252
|
+
const x = await y({
|
|
5253
5253
|
model: i,
|
|
5254
5254
|
id: n,
|
|
5255
5255
|
type: "graph",
|
|
5256
5256
|
context: o
|
|
5257
5257
|
});
|
|
5258
|
-
p(
|
|
5259
|
-
const
|
|
5260
|
-
c(
|
|
5261
|
-
} catch (
|
|
5262
|
-
return console.error(
|
|
5258
|
+
p(x.arch);
|
|
5259
|
+
const S = Bn(x.arch);
|
|
5260
|
+
c(S), u(!1), g == null || g(!1);
|
|
5261
|
+
} catch (x) {
|
|
5262
|
+
return console.error(x), u(!1), g == null || g(!1), /* @__PURE__ */ r(Q, { children: JSON.stringify(x) });
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
5265
|
if (d)
|
|
@@ -5282,23 +5282,23 @@ const Ul = (e, t) => {
|
|
|
5282
5282
|
switch (f.type) {
|
|
5283
5283
|
case "indicatorField":
|
|
5284
5284
|
case "indicator": {
|
|
5285
|
-
const
|
|
5286
|
-
field:
|
|
5287
|
-
operator:
|
|
5285
|
+
const x = f, S = x.type === "indicatorField" ? {
|
|
5286
|
+
field: x.field,
|
|
5287
|
+
operator: x.operator
|
|
5288
5288
|
} : {};
|
|
5289
5289
|
return /* @__PURE__ */ r(
|
|
5290
5290
|
Vl,
|
|
5291
5291
|
{
|
|
5292
|
-
showPercent:
|
|
5293
|
-
totalDomain:
|
|
5294
|
-
colorCondition:
|
|
5292
|
+
showPercent: x.showPercent,
|
|
5293
|
+
totalDomain: x.totalDomain,
|
|
5294
|
+
colorCondition: x.color,
|
|
5295
5295
|
model: i,
|
|
5296
5296
|
context: o,
|
|
5297
5297
|
domain: s,
|
|
5298
|
-
icon:
|
|
5299
|
-
suffix:
|
|
5298
|
+
icon: x.icon,
|
|
5299
|
+
suffix: x.suffix,
|
|
5300
5300
|
manualIds: l,
|
|
5301
|
-
...
|
|
5301
|
+
...S
|
|
5302
5302
|
}
|
|
5303
5303
|
);
|
|
5304
5304
|
}
|
|
@@ -5366,7 +5366,7 @@ const Ul = (e, t) => {
|
|
|
5366
5366
|
function w() {
|
|
5367
5367
|
return /* @__PURE__ */ r("div", { className: "inline-block w-3" });
|
|
5368
5368
|
}
|
|
5369
|
-
function
|
|
5369
|
+
function x() {
|
|
5370
5370
|
return /* @__PURE__ */ r(
|
|
5371
5371
|
"div",
|
|
5372
5372
|
{
|
|
@@ -5379,7 +5379,7 @@ const Ul = (e, t) => {
|
|
|
5379
5379
|
}
|
|
5380
5380
|
);
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5382
|
+
function S() {
|
|
5383
5383
|
return /* @__PURE__ */ r(
|
|
5384
5384
|
qe,
|
|
5385
5385
|
{
|
|
@@ -5423,7 +5423,7 @@ const Ul = (e, t) => {
|
|
|
5423
5423
|
] });
|
|
5424
5424
|
}
|
|
5425
5425
|
return /* @__PURE__ */ k("div", { className: "flex mb-2", children: [
|
|
5426
|
-
|
|
5426
|
+
x(),
|
|
5427
5427
|
/* @__PURE__ */ k("div", { className: "flex-none h-8 pl-2", children: [
|
|
5428
5428
|
s !== "graph" && h && /* @__PURE__ */ r(
|
|
5429
5429
|
qe,
|
|
@@ -5444,7 +5444,7 @@ const Ul = (e, t) => {
|
|
|
5444
5444
|
}
|
|
5445
5445
|
),
|
|
5446
5446
|
s !== "graph" && w(),
|
|
5447
|
-
s !== "graph" &&
|
|
5447
|
+
s !== "graph" && S(),
|
|
5448
5448
|
s === "form" && R(),
|
|
5449
5449
|
w(),
|
|
5450
5450
|
g && /* @__PURE__ */ r(
|
|
@@ -5473,7 +5473,7 @@ const ec = (e) => {
|
|
|
5473
5473
|
var Ae;
|
|
5474
5474
|
const { value: t, onChange: n, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = ne(
|
|
5475
5475
|
Fo
|
|
5476
|
-
), f = ne(Be), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = we(), [w,
|
|
5476
|
+
), f = ne(Be), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = we(), [w, x] = b(!1), [S, C] = b(!1), [R, V] = b(), [D, F] = b(!1), [T, O] = b(!1), [v, _] = b(), [A, L] = b([]), [G, B] = b(!1), q = ae([]), [P, Z] = b(), ee = ae(), [oe, U] = b(void 0), {
|
|
5477
5477
|
readOnly: $,
|
|
5478
5478
|
relation: I,
|
|
5479
5479
|
context: N,
|
|
@@ -5504,7 +5504,7 @@ const ec = (e) => {
|
|
|
5504
5504
|
await Ee(), d > re.length - 1 && d !== 0 && u(0);
|
|
5505
5505
|
}, Ee = async (Y) => {
|
|
5506
5506
|
var te, Re, xe;
|
|
5507
|
-
C(!0),
|
|
5507
|
+
C(!0), x(!1), V(void 0);
|
|
5508
5508
|
try {
|
|
5509
5509
|
const [Se, Ie] = await Zn({
|
|
5510
5510
|
treeView: {
|
|
@@ -5578,7 +5578,7 @@ const ec = (e) => {
|
|
|
5578
5578
|
w ? qt({
|
|
5579
5579
|
t: y,
|
|
5580
5580
|
onOk: () => {
|
|
5581
|
-
Le(), Y(),
|
|
5581
|
+
Le(), Y(), x(!1);
|
|
5582
5582
|
}
|
|
5583
5583
|
}) : Y();
|
|
5584
5584
|
}, Oe = () => {
|
|
@@ -5608,7 +5608,7 @@ const ec = (e) => {
|
|
|
5608
5608
|
O(!0);
|
|
5609
5609
|
}) : O(!0);
|
|
5610
5610
|
}, j = async () => {
|
|
5611
|
-
C(!0),
|
|
5611
|
+
C(!0), x(!1), V(void 0);
|
|
5612
5612
|
try {
|
|
5613
5613
|
if (re[d].id > 0) {
|
|
5614
5614
|
const Y = s.map((te) => te.id === re[d].id ? {
|
|
@@ -5626,7 +5626,7 @@ const ec = (e) => {
|
|
|
5626
5626
|
u(0), C(!1);
|
|
5627
5627
|
}, ge = async () => {
|
|
5628
5628
|
const Y = re.filter((te) => A.includes(te.id));
|
|
5629
|
-
C(!0),
|
|
5629
|
+
C(!0), x(!1), V(void 0);
|
|
5630
5630
|
try {
|
|
5631
5631
|
const te = Y.map((xe) => xe.id), Re = s.filter((xe) => !(te.includes(xe.id) && xe.id < 0)).map((xe) => te.includes(xe.id) ? {
|
|
5632
5632
|
...xe,
|
|
@@ -5727,7 +5727,7 @@ const ec = (e) => {
|
|
|
5727
5727
|
values: { ...Ie, id: Ze },
|
|
5728
5728
|
treeValues: { ...Ie, id: Ze }
|
|
5729
5729
|
} : at);
|
|
5730
|
-
ce(Ye),
|
|
5730
|
+
ce(Ye), x(!0);
|
|
5731
5731
|
},
|
|
5732
5732
|
readOnly: $
|
|
5733
5733
|
}
|
|
@@ -5748,7 +5748,7 @@ const ec = (e) => {
|
|
|
5748
5748
|
limit: re.length,
|
|
5749
5749
|
treeView: o.get("tree"),
|
|
5750
5750
|
results: Y,
|
|
5751
|
-
loading:
|
|
5751
|
+
loading: S,
|
|
5752
5752
|
onRowClicked: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0 ? de : void 0,
|
|
5753
5753
|
showPagination: !1,
|
|
5754
5754
|
selectedRowKeys: A,
|
|
@@ -5778,7 +5778,7 @@ const ec = (e) => {
|
|
|
5778
5778
|
if (R)
|
|
5779
5779
|
return /* @__PURE__ */ r(Xe, { className: "mt-10", message: R, type: "error", banner: !0 });
|
|
5780
5780
|
const je = G;
|
|
5781
|
-
return
|
|
5781
|
+
return S ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ k(Q, { children: [
|
|
5782
5782
|
/* @__PURE__ */ r(
|
|
5783
5783
|
Xl,
|
|
5784
5784
|
{
|
|
@@ -5843,25 +5843,25 @@ const ec = (e) => {
|
|
|
5843
5843
|
Ft(() => {
|
|
5844
5844
|
w();
|
|
5845
5845
|
}, [t]);
|
|
5846
|
-
const y = async (
|
|
5846
|
+
const y = async (S) => o && o[S] ? o[S] : await E.getHandler().getView({
|
|
5847
5847
|
model: i,
|
|
5848
|
-
type:
|
|
5848
|
+
type: S,
|
|
5849
5849
|
context: { ...g == null ? void 0 : g(), ...a }
|
|
5850
5850
|
}), w = async () => {
|
|
5851
5851
|
u(!0), c(void 0);
|
|
5852
5852
|
try {
|
|
5853
5853
|
if (n && n.length > 0) {
|
|
5854
|
-
for (const
|
|
5855
|
-
const C = await y(
|
|
5856
|
-
m.set(
|
|
5854
|
+
for (const S of n) {
|
|
5855
|
+
const C = await y(S);
|
|
5856
|
+
m.set(S, C);
|
|
5857
5857
|
}
|
|
5858
5858
|
p(m);
|
|
5859
5859
|
} else {
|
|
5860
|
-
const
|
|
5861
|
-
m.set("form",
|
|
5860
|
+
const S = await y("form"), C = await y("tree");
|
|
5861
|
+
m.set("form", S), m.set("tree", C), p(m);
|
|
5862
5862
|
}
|
|
5863
|
-
} catch (
|
|
5864
|
-
c(JSON.stringify(
|
|
5863
|
+
} catch (S) {
|
|
5864
|
+
c(JSON.stringify(S));
|
|
5865
5865
|
} finally {
|
|
5866
5866
|
u(!1);
|
|
5867
5867
|
}
|
|
@@ -5871,7 +5871,7 @@ const ec = (e) => {
|
|
|
5871
5871
|
{
|
|
5872
5872
|
required: s,
|
|
5873
5873
|
type: "array",
|
|
5874
|
-
validator: async (
|
|
5874
|
+
validator: async (S, C) => {
|
|
5875
5875
|
if (!C)
|
|
5876
5876
|
throw new Error();
|
|
5877
5877
|
if (!C.items)
|
|
@@ -6096,7 +6096,7 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6096
6096
|
y.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (w = [
|
|
6097
6097
|
["id", "in", n == null ? void 0 : n.map((C) => C.id)]
|
|
6098
6098
|
]);
|
|
6099
|
-
const { datas:
|
|
6099
|
+
const { datas: x } = await E.getHandler().exportData({
|
|
6100
6100
|
model: e,
|
|
6101
6101
|
fields: yc({
|
|
6102
6102
|
keys: y.selectedKeys,
|
|
@@ -6108,8 +6108,8 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6108
6108
|
format: y.exportType
|
|
6109
6109
|
});
|
|
6110
6110
|
s(), await new Promise((C) => setTimeout(C, 200));
|
|
6111
|
-
const
|
|
6112
|
-
pn(
|
|
6111
|
+
const S = await kt(x);
|
|
6112
|
+
pn(x, S.mime);
|
|
6113
6113
|
},
|
|
6114
6114
|
[i, n, e, o, t, s, d]
|
|
6115
6115
|
), f = fe(async () => {
|
|
@@ -6121,14 +6121,14 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6121
6121
|
return a.current["/"] = y, Ir({ fields: y });
|
|
6122
6122
|
}, [e, t, a]), c = fe(
|
|
6123
6123
|
async (y) => {
|
|
6124
|
-
const
|
|
6125
|
-
model:
|
|
6124
|
+
const x = Mn(y, a.current)[Nn(y)], S = x.relation, C = await E.getHandler().getFields({
|
|
6125
|
+
model: S,
|
|
6126
6126
|
context: t,
|
|
6127
6127
|
fields: []
|
|
6128
6128
|
});
|
|
6129
6129
|
for (const [R, V] of Object.entries(C))
|
|
6130
6130
|
C[R].string = mc({
|
|
6131
|
-
parentTitle:
|
|
6131
|
+
parentTitle: x.string,
|
|
6132
6132
|
title: V.string
|
|
6133
6133
|
});
|
|
6134
6134
|
return a.current[y] = C, Ir({
|
|
@@ -6144,9 +6144,9 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6144
6144
|
onGetFieldChilds: c
|
|
6145
6145
|
});
|
|
6146
6146
|
return {
|
|
6147
|
-
predefinedExports: y.map((
|
|
6148
|
-
...
|
|
6149
|
-
fields:
|
|
6147
|
+
predefinedExports: y.map((S) => ({
|
|
6148
|
+
...S,
|
|
6149
|
+
fields: S.fields.map((C) => {
|
|
6150
6150
|
const R = Nn(C.key), D = Mn(C.key, a.current)[R];
|
|
6151
6151
|
return D ? {
|
|
6152
6152
|
key: C.key,
|
|
@@ -6181,7 +6181,7 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6181
6181
|
[l, t]
|
|
6182
6182
|
), g = fe(
|
|
6183
6183
|
async (y) => {
|
|
6184
|
-
const w = await h("ir.exports"),
|
|
6184
|
+
const w = await h("ir.exports"), x = await h("ir.exports.line"), S = await E.getHandler().create({
|
|
6185
6185
|
model: "ir.exports",
|
|
6186
6186
|
values: {
|
|
6187
6187
|
name: y.name,
|
|
@@ -6195,12 +6195,12 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6195
6195
|
model: "ir.exports.line",
|
|
6196
6196
|
values: {
|
|
6197
6197
|
name: C.key,
|
|
6198
|
-
export_id:
|
|
6198
|
+
export_id: S
|
|
6199
6199
|
},
|
|
6200
|
-
fields:
|
|
6200
|
+
fields: x,
|
|
6201
6201
|
context: t
|
|
6202
6202
|
}))
|
|
6203
|
-
), { ...y, id:
|
|
6203
|
+
), { ...y, id: S };
|
|
6204
6204
|
},
|
|
6205
6205
|
[t, h, e]
|
|
6206
6206
|
);
|
|
@@ -6427,23 +6427,23 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6427
6427
|
const { ooui: t } = e, { required: n } = t;
|
|
6428
6428
|
return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Oc, { ooui: t }) });
|
|
6429
6429
|
}, Oc = (e) => {
|
|
6430
|
-
const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Rc(), 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 = (
|
|
6431
|
-
i == null || i(
|
|
6430
|
+
const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Rc(), 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 = (S) => {
|
|
6431
|
+
i == null || i(S);
|
|
6432
6432
|
};
|
|
6433
6433
|
async function g() {
|
|
6434
|
-
const
|
|
6434
|
+
const S = await kt(n), C = `data:${S == null ? void 0 : S.mime};base64,${n}`, R = document.createElement("a"), V = c(a), D = c("name");
|
|
6435
6435
|
R.href = C, R.download = V || D, R.click();
|
|
6436
6436
|
}
|
|
6437
6437
|
async function y() {
|
|
6438
|
-
const
|
|
6439
|
-
pn(n,
|
|
6438
|
+
const S = await kt(n);
|
|
6439
|
+
pn(n, S.mime);
|
|
6440
6440
|
}
|
|
6441
|
-
async function w(
|
|
6442
|
-
|
|
6443
|
-
const C =
|
|
6441
|
+
async function w(S) {
|
|
6442
|
+
S.stopPropagation(), S.preventDefault();
|
|
6443
|
+
const C = S.target.files[0], R = await ao(C);
|
|
6444
6444
|
h(R), a && f(a, C.name);
|
|
6445
6445
|
}
|
|
6446
|
-
function
|
|
6446
|
+
function x() {
|
|
6447
6447
|
f(a, void 0), h(void 0);
|
|
6448
6448
|
}
|
|
6449
6449
|
return /* @__PURE__ */ k(_e, { gutter: 8, children: [
|
|
@@ -6495,7 +6495,7 @@ const { useToken: ac } = He, { TextArea: kn } = it, lc = (e) => {
|
|
|
6495
6495
|
{
|
|
6496
6496
|
tooltip: m("clear"),
|
|
6497
6497
|
disabled: o || !n,
|
|
6498
|
-
onClick:
|
|
6498
|
+
onClick: x,
|
|
6499
6499
|
icon: /* @__PURE__ */ r(jn, {})
|
|
6500
6500
|
}
|
|
6501
6501
|
)
|
|
@@ -6791,16 +6791,16 @@ function Dc(e) {
|
|
|
6791
6791
|
try {
|
|
6792
6792
|
const w = await E.getHandler().readObjects({
|
|
6793
6793
|
model: "ir.attachment",
|
|
6794
|
-
ids: t.map((
|
|
6794
|
+
ids: t.map((x) => x.id),
|
|
6795
6795
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
6796
6796
|
context: a.current.getContext()
|
|
6797
6797
|
});
|
|
6798
6798
|
f(
|
|
6799
|
-
w.map((
|
|
6800
|
-
id:
|
|
6801
|
-
name:
|
|
6802
|
-
datas_fname:
|
|
6803
|
-
link:
|
|
6799
|
+
w.map((x) => ({
|
|
6800
|
+
id: x.id,
|
|
6801
|
+
name: x.name,
|
|
6802
|
+
datas_fname: x.datas_fname,
|
|
6803
|
+
link: x.link
|
|
6804
6804
|
}))
|
|
6805
6805
|
);
|
|
6806
6806
|
} catch (w) {
|
|
@@ -6815,22 +6815,22 @@ function Dc(e) {
|
|
|
6815
6815
|
return;
|
|
6816
6816
|
}
|
|
6817
6817
|
m(!0);
|
|
6818
|
-
let
|
|
6818
|
+
let x;
|
|
6819
6819
|
try {
|
|
6820
|
-
|
|
6820
|
+
x = (await E.getHandler().readObjects({
|
|
6821
6821
|
model: "ir.attachment",
|
|
6822
6822
|
ids: [w.id],
|
|
6823
6823
|
context: a.current.getContext()
|
|
6824
6824
|
}))[0];
|
|
6825
|
-
} catch (
|
|
6826
|
-
Je(
|
|
6825
|
+
} catch (S) {
|
|
6826
|
+
Je(S);
|
|
6827
6827
|
}
|
|
6828
|
-
if (m(!1), !!
|
|
6829
|
-
if (
|
|
6830
|
-
const
|
|
6831
|
-
pn(
|
|
6828
|
+
if (m(!1), !!x)
|
|
6829
|
+
if (x.datas) {
|
|
6830
|
+
const S = await kt(x.datas);
|
|
6831
|
+
pn(x.datas, S.mime);
|
|
6832
6832
|
} else
|
|
6833
|
-
s(
|
|
6833
|
+
s(x);
|
|
6834
6834
|
},
|
|
6835
6835
|
[a, s]
|
|
6836
6836
|
), y = fe(
|
|
@@ -6888,8 +6888,8 @@ function kc({ toolbar: e }) {
|
|
|
6888
6888
|
duplicatingItem: g,
|
|
6889
6889
|
setDuplicatingItem: y,
|
|
6890
6890
|
setResults: w,
|
|
6891
|
-
formIsLoading:
|
|
6892
|
-
attachments:
|
|
6891
|
+
formIsLoading: x,
|
|
6892
|
+
attachments: S,
|
|
6893
6893
|
formRef: C,
|
|
6894
6894
|
setFormHasChanges: R,
|
|
6895
6895
|
previousView: V,
|
|
@@ -6971,7 +6971,7 @@ function kc({ toolbar: e }) {
|
|
|
6971
6971
|
y == null || y(!1);
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
|
-
const U = a || h ||
|
|
6974
|
+
const U = a || h || x || g;
|
|
6975
6975
|
function $(I) {
|
|
6976
6976
|
v == null || v({
|
|
6977
6977
|
actionData: I,
|
|
@@ -6984,7 +6984,7 @@ function kc({ toolbar: e }) {
|
|
|
6984
6984
|
});
|
|
6985
6985
|
}
|
|
6986
6986
|
return n ? /* @__PURE__ */ k(Ue, { wrap: !0, children: [
|
|
6987
|
-
|
|
6987
|
+
x && /* @__PURE__ */ k(Q, { children: [
|
|
6988
6988
|
/* @__PURE__ */ r($e, {}),
|
|
6989
6989
|
Rt(),
|
|
6990
6990
|
Rt()
|
|
@@ -6992,7 +6992,7 @@ function kc({ toolbar: e }) {
|
|
|
6992
6992
|
/* @__PURE__ */ r(
|
|
6993
6993
|
Io,
|
|
6994
6994
|
{
|
|
6995
|
-
disabled: a ||
|
|
6995
|
+
disabled: a || x || h || g
|
|
6996
6996
|
}
|
|
6997
6997
|
),
|
|
6998
6998
|
/* @__PURE__ */ r(
|
|
@@ -7010,7 +7010,7 @@ function kc({ toolbar: e }) {
|
|
|
7010
7010
|
{
|
|
7011
7011
|
icon: /* @__PURE__ */ r(zn, {}),
|
|
7012
7012
|
tooltip: T("duplicate"),
|
|
7013
|
-
disabled: s || a || l === void 0 || g ||
|
|
7013
|
+
disabled: s || a || l === void 0 || g || x,
|
|
7014
7014
|
loading: g,
|
|
7015
7015
|
onClick: oe
|
|
7016
7016
|
}
|
|
@@ -7020,7 +7020,7 @@ function kc({ toolbar: e }) {
|
|
|
7020
7020
|
{
|
|
7021
7021
|
icon: /* @__PURE__ */ r(Gn, {}),
|
|
7022
7022
|
tooltip: T("delete"),
|
|
7023
|
-
disabled: a || l === void 0 || h || g ||
|
|
7023
|
+
disabled: a || l === void 0 || h || g || x,
|
|
7024
7024
|
loading: h,
|
|
7025
7025
|
onClick: Z
|
|
7026
7026
|
}
|
|
@@ -7031,7 +7031,7 @@ function kc({ toolbar: e }) {
|
|
|
7031
7031
|
{
|
|
7032
7032
|
icon: /* @__PURE__ */ r(Jr, {}),
|
|
7033
7033
|
tooltip: T("showLogs"),
|
|
7034
|
-
disabled: a || l === void 0 || h || g ||
|
|
7034
|
+
disabled: a || l === void 0 || h || g || x,
|
|
7035
7035
|
loading: !1,
|
|
7036
7036
|
onClick: () => {
|
|
7037
7037
|
Vo(m, l, T);
|
|
@@ -7043,7 +7043,7 @@ function kc({ toolbar: e }) {
|
|
|
7043
7043
|
{
|
|
7044
7044
|
icon: /* @__PURE__ */ r(fn, {}),
|
|
7045
7045
|
tooltip: T("refresh"),
|
|
7046
|
-
disabled: a || l === void 0 || h || g ||
|
|
7046
|
+
disabled: a || l === void 0 || h || g || x,
|
|
7047
7047
|
loading: !1,
|
|
7048
7048
|
onClick: () => {
|
|
7049
7049
|
G(() => {
|
|
@@ -7161,7 +7161,7 @@ function kc({ toolbar: e }) {
|
|
|
7161
7161
|
Dc,
|
|
7162
7162
|
{
|
|
7163
7163
|
disabled: U,
|
|
7164
|
-
attachments:
|
|
7164
|
+
attachments: S,
|
|
7165
7165
|
onAddNewAttachment: async () => {
|
|
7166
7166
|
const I = await _t({
|
|
7167
7167
|
onFormSave: o
|
|
@@ -7229,8 +7229,8 @@ const { useToken: Ec } = He, Ao = (e) => {
|
|
|
7229
7229
|
pe(() => {
|
|
7230
7230
|
l && !p && y(!1), !n && !l && (h(!0), y(!0));
|
|
7231
7231
|
}, [p, l]);
|
|
7232
|
-
const w = (
|
|
7233
|
-
i == null || i(
|
|
7232
|
+
const w = (x) => {
|
|
7233
|
+
i == null || i(x.target.value);
|
|
7234
7234
|
};
|
|
7235
7235
|
return /* @__PURE__ */ k(_e, { gutter: 8, wrap: !1, align: "middle", children: [
|
|
7236
7236
|
l ? null : /* @__PURE__ */ r(ue, { flex: "none", children: p ? /* @__PURE__ */ r(
|
|
@@ -7563,8 +7563,8 @@ const Kc = (e) => {
|
|
|
7563
7563
|
setSearchParams: g = void 0,
|
|
7564
7564
|
searchVisible: y = !0,
|
|
7565
7565
|
setSearchVisible: w = void 0,
|
|
7566
|
-
sorter:
|
|
7567
|
-
setSorter:
|
|
7566
|
+
sorter: x = void 0,
|
|
7567
|
+
setSorter: S = void 0,
|
|
7568
7568
|
setTotalItems: C = void 0,
|
|
7569
7569
|
setSearchTreeNameSearch: R = void 0,
|
|
7570
7570
|
setTreeIsLoading: V = void 0,
|
|
@@ -7593,8 +7593,8 @@ const Kc = (e) => {
|
|
|
7593
7593
|
context: o,
|
|
7594
7594
|
formView: a,
|
|
7595
7595
|
treeView: l,
|
|
7596
|
-
sorter:
|
|
7597
|
-
setSorter:
|
|
7596
|
+
sorter: x,
|
|
7597
|
+
setSorter: S,
|
|
7598
7598
|
setCurrentItemIndex: c,
|
|
7599
7599
|
setResultsActionView: f,
|
|
7600
7600
|
resultsActionView: p,
|
|
@@ -8068,8 +8068,8 @@ function Qc(e) {
|
|
|
8068
8068
|
setSearchVisible: g,
|
|
8069
8069
|
setSearchTreeNameSearch: y,
|
|
8070
8070
|
searchTreeNameSearch: w,
|
|
8071
|
-
treeIsLoading:
|
|
8072
|
-
setPreviousView:
|
|
8071
|
+
treeIsLoading: x,
|
|
8072
|
+
setPreviousView: S,
|
|
8073
8073
|
previousView: C,
|
|
8074
8074
|
results: R,
|
|
8075
8075
|
limit: V,
|
|
@@ -8138,7 +8138,7 @@ function Qc(e) {
|
|
|
8138
8138
|
});
|
|
8139
8139
|
}
|
|
8140
8140
|
return /* @__PURE__ */ k(Ue, { wrap: !0, children: [
|
|
8141
|
-
|
|
8141
|
+
x && /* @__PURE__ */ k(Q, { children: [
|
|
8142
8142
|
/* @__PURE__ */ r($e, {}),
|
|
8143
8143
|
Ct(),
|
|
8144
8144
|
Ct()
|
|
@@ -8147,7 +8147,7 @@ function Qc(e) {
|
|
|
8147
8147
|
/* @__PURE__ */ r(
|
|
8148
8148
|
Wc,
|
|
8149
8149
|
{
|
|
8150
|
-
disabled: l || a,
|
|
8150
|
+
disabled: l || a || x,
|
|
8151
8151
|
searchText: w,
|
|
8152
8152
|
onSearch: ($) => {
|
|
8153
8153
|
$ && $.trim().length > 0 ? y == null || y($) : y == null || y(void 0);
|
|
@@ -8168,18 +8168,18 @@ function Qc(e) {
|
|
|
8168
8168
|
onClick: () => {
|
|
8169
8169
|
g == null || g(!h);
|
|
8170
8170
|
},
|
|
8171
|
-
disabled: l || a,
|
|
8171
|
+
disabled: l || a || x,
|
|
8172
8172
|
badgeNumber: p == null ? void 0 : p.length
|
|
8173
8173
|
}
|
|
8174
8174
|
),
|
|
8175
8175
|
Ct(),
|
|
8176
|
-
/* @__PURE__ */ r(Io, {}),
|
|
8176
|
+
/* @__PURE__ */ r(Io, { disabled: x }),
|
|
8177
8177
|
/* @__PURE__ */ r(
|
|
8178
8178
|
Ge,
|
|
8179
8179
|
{
|
|
8180
8180
|
icon: /* @__PURE__ */ r(zn, {}),
|
|
8181
8181
|
tooltip: _("duplicate"),
|
|
8182
|
-
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l ||
|
|
8182
|
+
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || x,
|
|
8183
8183
|
loading: l,
|
|
8184
8184
|
onClick: ee
|
|
8185
8185
|
}
|
|
@@ -8189,7 +8189,7 @@ function Qc(e) {
|
|
|
8189
8189
|
{
|
|
8190
8190
|
icon: /* @__PURE__ */ r(Gn, {}),
|
|
8191
8191
|
tooltip: _("delete"),
|
|
8192
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8192
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || x,
|
|
8193
8193
|
loading: a,
|
|
8194
8194
|
onClick: P
|
|
8195
8195
|
}
|
|
@@ -8201,7 +8201,7 @@ function Qc(e) {
|
|
|
8201
8201
|
{
|
|
8202
8202
|
icon: /* @__PURE__ */ r(Jr, {}),
|
|
8203
8203
|
tooltip: _("showLogs"),
|
|
8204
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8204
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || x,
|
|
8205
8205
|
loading: !1,
|
|
8206
8206
|
onClick: () => {
|
|
8207
8207
|
Vo(u, o[0].id, _);
|
|
@@ -8213,7 +8213,7 @@ function Qc(e) {
|
|
|
8213
8213
|
{
|
|
8214
8214
|
icon: /* @__PURE__ */ r(fn, {}),
|
|
8215
8215
|
tooltip: _("refresh"),
|
|
8216
|
-
disabled: l || a ||
|
|
8216
|
+
disabled: l || a || x,
|
|
8217
8217
|
loading: !1,
|
|
8218
8218
|
onClick: () => {
|
|
8219
8219
|
var $;
|
|
@@ -8229,9 +8229,10 @@ function Qc(e) {
|
|
|
8229
8229
|
currentView: n,
|
|
8230
8230
|
availableViews: t,
|
|
8231
8231
|
onChangeView: ($) => {
|
|
8232
|
-
|
|
8232
|
+
S == null || S(n), i == null || i($);
|
|
8233
8233
|
},
|
|
8234
|
-
previousView: C
|
|
8234
|
+
previousView: C,
|
|
8235
|
+
disabled: x
|
|
8235
8236
|
}
|
|
8236
8237
|
)
|
|
8237
8238
|
] }),
|
|
@@ -8241,7 +8242,7 @@ function Qc(e) {
|
|
|
8241
8242
|
{
|
|
8242
8243
|
icon: /* @__PURE__ */ r(Un, {}),
|
|
8243
8244
|
placement: "bottomRight",
|
|
8244
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8245
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || x,
|
|
8245
8246
|
onRetrieveData: async () => [
|
|
8246
8247
|
{ label: _("actions"), items: O == null ? void 0 : O.action }
|
|
8247
8248
|
],
|
|
@@ -8255,7 +8256,7 @@ function Qc(e) {
|
|
|
8255
8256
|
{
|
|
8256
8257
|
icon: /* @__PURE__ */ r(Yn, {}),
|
|
8257
8258
|
placement: "bottomRight",
|
|
8258
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
8259
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || x,
|
|
8259
8260
|
onRetrieveData: async () => [
|
|
8260
8261
|
{ label: _("reports"), items: O == null ? void 0 : O.print }
|
|
8261
8262
|
],
|
|
@@ -8334,7 +8335,7 @@ function Qc(e) {
|
|
|
8334
8335
|
}
|
|
8335
8336
|
B(!0);
|
|
8336
8337
|
},
|
|
8337
|
-
disabled: l || a ||
|
|
8338
|
+
disabled: l || a || x || q
|
|
8338
8339
|
}
|
|
8339
8340
|
),
|
|
8340
8341
|
/* @__PURE__ */ r(
|
|
@@ -8401,12 +8402,12 @@ const Zc = (e) => {
|
|
|
8401
8402
|
onRowClicked: (y) => {
|
|
8402
8403
|
const { id: w } = y;
|
|
8403
8404
|
f(w);
|
|
8404
|
-
const
|
|
8405
|
-
g == null || g(h), d(
|
|
8406
|
-
const
|
|
8405
|
+
const x = u.findIndex((C) => C.id === w);
|
|
8406
|
+
g == null || g(h), d(x);
|
|
8407
|
+
const S = m.find(
|
|
8407
8408
|
(C) => C.type === "form"
|
|
8408
8409
|
);
|
|
8409
|
-
c(
|
|
8410
|
+
c(S);
|
|
8410
8411
|
}
|
|
8411
8412
|
}
|
|
8412
8413
|
)
|
|
@@ -8538,7 +8539,7 @@ function id(e, t) {
|
|
|
8538
8539
|
action_type: h,
|
|
8539
8540
|
treeExpandable: g = !1,
|
|
8540
8541
|
limit: y
|
|
8541
|
-
} = e, [w,
|
|
8542
|
+
} = e, [w, x] = b(), [S, C] = b([]), [R, V] = b(!0), D = m || void 0, [F, T] = b(
|
|
8542
8543
|
D
|
|
8543
8544
|
), [O, v] = b([]), [_, A] = b(), [L, G] = b([]), [B, q] = b(), [P, Z] = b(0), [ee, oe] = b(!1), [U, $] = b(!1), [I, N] = b(), { t: K } = we(), le = ae(), z = ae(), re = ne(
|
|
8544
8545
|
ut
|
|
@@ -8561,7 +8562,7 @@ function id(e, t) {
|
|
|
8561
8562
|
T(j), W == null || W(j);
|
|
8562
8563
|
}
|
|
8563
8564
|
function me(j) {
|
|
8564
|
-
|
|
8565
|
+
x(j);
|
|
8565
8566
|
const ge = { action_id: p, action_type: h };
|
|
8566
8567
|
ve == null || ve({ ...j, extra: ge });
|
|
8567
8568
|
}
|
|
@@ -8649,7 +8650,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8649
8650
|
), Ne == null || Ne(d)), me(de), C(j), V(!1);
|
|
8650
8651
|
};
|
|
8651
8652
|
l({ tabKey: d, canWeClose: Le }), pe(() => {
|
|
8652
|
-
const j =
|
|
8653
|
+
const j = S.find((Ve) => Ve.type === "tree"), ge = S.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
|
|
8653
8654
|
me(ge || j), m ? W == null || W(D) : (Me(void 0), A(void 0)), Fe();
|
|
8654
8655
|
}, [i, s, m]), pe(() => {
|
|
8655
8656
|
if (Te === d) {
|
|
@@ -8705,7 +8706,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8705
8706
|
});
|
|
8706
8707
|
}
|
|
8707
8708
|
function We() {
|
|
8708
|
-
return
|
|
8709
|
+
return S.map((j) => {
|
|
8709
8710
|
switch (j.type) {
|
|
8710
8711
|
case "form":
|
|
8711
8712
|
return /* @__PURE__ */ r(
|
|
@@ -8735,11 +8736,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8735
8736
|
model: i,
|
|
8736
8737
|
context: o,
|
|
8737
8738
|
domain: n,
|
|
8738
|
-
formView:
|
|
8739
|
+
formView: S.find((ge) => ge.type === "form"),
|
|
8739
8740
|
treeView: j,
|
|
8740
8741
|
searchTreeRef: z,
|
|
8741
8742
|
searchTreeNameSearch: I,
|
|
8742
|
-
availableViews:
|
|
8743
|
+
availableViews: S,
|
|
8743
8744
|
results: L,
|
|
8744
8745
|
setCurrentItemIndex: A,
|
|
8745
8746
|
setCurrentId: Me,
|
|
@@ -8756,8 +8757,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8756
8757
|
model: i,
|
|
8757
8758
|
context: o,
|
|
8758
8759
|
domain: n,
|
|
8759
|
-
treeView:
|
|
8760
|
-
formView:
|
|
8760
|
+
treeView: S.find((ge) => ge.type === "tree"),
|
|
8761
|
+
formView: S.find((ge) => ge.type === "form")
|
|
8761
8762
|
},
|
|
8762
8763
|
`${j.type}-${j.view_id}`
|
|
8763
8764
|
);
|
|
@@ -8778,7 +8779,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8778
8779
|
le.current.clearAndReload();
|
|
8779
8780
|
else {
|
|
8780
8781
|
Me(void 0);
|
|
8781
|
-
const j =
|
|
8782
|
+
const j = S.find(
|
|
8782
8783
|
(ge) => ge.type === "form"
|
|
8783
8784
|
);
|
|
8784
8785
|
me(j);
|
|
@@ -8790,7 +8791,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8790
8791
|
title: a,
|
|
8791
8792
|
currentView: w,
|
|
8792
8793
|
setCurrentView: me,
|
|
8793
|
-
availableViews:
|
|
8794
|
+
availableViews: S,
|
|
8794
8795
|
formRef: le,
|
|
8795
8796
|
searchTreeRef: z,
|
|
8796
8797
|
onNewClicked: Ke,
|
|
@@ -8852,15 +8853,15 @@ async function sd({
|
|
|
8852
8853
|
limit: c,
|
|
8853
8854
|
view_type: m
|
|
8854
8855
|
} = s, p = m === "tree", h = [];
|
|
8855
|
-
for (const
|
|
8856
|
-
const [
|
|
8857
|
-
if (
|
|
8858
|
-
h.push(
|
|
8856
|
+
for (const x of u) {
|
|
8857
|
+
const [S, C] = x;
|
|
8858
|
+
if (S)
|
|
8859
|
+
h.push(x);
|
|
8859
8860
|
else {
|
|
8860
8861
|
const { view_id: R } = await E.getHandler().getView({
|
|
8861
8862
|
model: d,
|
|
8862
8863
|
type: C,
|
|
8863
|
-
id:
|
|
8864
|
+
id: S,
|
|
8864
8865
|
context: { ...t, ...a }
|
|
8865
8866
|
});
|
|
8866
8867
|
h.push([R, C]);
|
|
@@ -8976,8 +8977,8 @@ function fd(e) {
|
|
|
8976
8977
|
domain: s = [],
|
|
8977
8978
|
visible: a = !0,
|
|
8978
8979
|
parentContext: l = {}
|
|
8979
|
-
} = e, [d, u] = b(!1), [f, c] = b(!1), [m, p] = b(), [h, g] = b(), [y, w] = b(), [
|
|
8980
|
-
oe(!0),
|
|
8980
|
+
} = e, [d, u] = b(!1), [f, c] = b(!1), [m, p] = b(), [h, g] = b(), [y, w] = b(), [x, S] = b(1), [C, R] = b(0), V = ae(St), D = ae([]), [F, T] = b(0), [O, v] = b([]), [_, A] = b(void 0), [L, G] = b(), [B, q] = b(), [P, Z] = b(), [ee, oe] = b(!1), U = ae([]), $ = (W) => {
|
|
8981
|
+
oe(!0), S(W), R((W - 1) * V.current);
|
|
8981
8982
|
}, I = async () => {
|
|
8982
8983
|
const W = U.current.length > 0 ? U.current : s, ce = jt(D.current, W), { colors: Te } = At(h), { totalItems: Ee, results: Ne, attrsEvaluated: Me } = await E.getHandler().searchForTree({
|
|
8983
8984
|
params: ce,
|
|
@@ -9006,7 +9007,7 @@ function fd(e) {
|
|
|
9006
9007
|
};
|
|
9007
9008
|
pe(() => {
|
|
9008
9009
|
f && a && N();
|
|
9009
|
-
}, [
|
|
9010
|
+
}, [x, C, f, a]);
|
|
9010
9011
|
const K = async (W) => {
|
|
9011
9012
|
c(!1), u(!0), Z(void 0);
|
|
9012
9013
|
try {
|
|
@@ -9056,7 +9057,7 @@ function fd(e) {
|
|
|
9056
9057
|
showPagination: !1,
|
|
9057
9058
|
total: F,
|
|
9058
9059
|
limit: V.current,
|
|
9059
|
-
page:
|
|
9060
|
+
page: x,
|
|
9060
9061
|
treeView: h,
|
|
9061
9062
|
results: O,
|
|
9062
9063
|
onRequestPageChange: $,
|
|
@@ -9099,9 +9100,9 @@ function hd(e, t) {
|
|
|
9099
9100
|
setIsLoading: m,
|
|
9100
9101
|
openAction: p,
|
|
9101
9102
|
moveItemsEnabled: h
|
|
9102
|
-
} = ne(or), g = ae(), y = ae(), [w] = et(E.getHandler().getView), [
|
|
9103
|
+
} = ne(or), g = ae(), y = ae(), [w] = et(E.getHandler().getView), [x] = et(
|
|
9103
9104
|
E.getHandler().readObjects
|
|
9104
|
-
), [
|
|
9105
|
+
), [S] = et(E.getHandler().update);
|
|
9105
9106
|
pe(() => {
|
|
9106
9107
|
C();
|
|
9107
9108
|
}, [n, o, i]), wt(t, () => ({
|
|
@@ -9157,7 +9158,7 @@ function hd(e, t) {
|
|
|
9157
9158
|
return L;
|
|
9158
9159
|
}
|
|
9159
9160
|
async function D(v) {
|
|
9160
|
-
return (await
|
|
9161
|
+
return (await x({
|
|
9161
9162
|
model: n,
|
|
9162
9163
|
ids: [o],
|
|
9163
9164
|
fields: v.fields,
|
|
@@ -9213,7 +9214,7 @@ function hd(e, t) {
|
|
|
9213
9214
|
fields: g.current,
|
|
9214
9215
|
items: L
|
|
9215
9216
|
};
|
|
9216
|
-
await
|
|
9217
|
+
await S({
|
|
9217
9218
|
model: n,
|
|
9218
9219
|
id: o,
|
|
9219
9220
|
values: { [Rn]: G },
|
|
@@ -9354,11 +9355,11 @@ const pd = yt(hd), gd = (e) => {
|
|
|
9354
9355
|
const { ooui: t } = e;
|
|
9355
9356
|
return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(yd, { ooui: t }) });
|
|
9356
9357
|
}, yd = (e) => {
|
|
9357
|
-
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:
|
|
9358
|
+
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: x } = w || {};
|
|
9358
9359
|
Ft(() => {
|
|
9359
9360
|
C();
|
|
9360
9361
|
}, [o]);
|
|
9361
|
-
const
|
|
9362
|
+
const S = (F) => {
|
|
9362
9363
|
i == null || i({
|
|
9363
9364
|
items: F
|
|
9364
9365
|
});
|
|
@@ -9383,7 +9384,7 @@ const pd = yt(hd), gd = (e) => {
|
|
|
9383
9384
|
model: m,
|
|
9384
9385
|
params: F,
|
|
9385
9386
|
fieldsToRetrieve: [g],
|
|
9386
|
-
context: { ...
|
|
9387
|
+
context: { ...x == null ? void 0 : x(), ...p }
|
|
9387
9388
|
})).map((v) => {
|
|
9388
9389
|
const _ = v[g];
|
|
9389
9390
|
let A = _;
|
|
@@ -9409,7 +9410,7 @@ const pd = yt(hd), gd = (e) => {
|
|
|
9409
9410
|
} : v : { id: v.id, operation: "pendingRemove" }), O = T.map((v) => v.id);
|
|
9410
9411
|
F.filter((v) => !O.includes(v)).map((v) => {
|
|
9411
9412
|
T.push({ id: v, operation: "pendingLink" });
|
|
9412
|
-
}),
|
|
9413
|
+
}), S(T);
|
|
9413
9414
|
};
|
|
9414
9415
|
return f && a.length === 0 ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ k("div", { className: "flex flex-row", children: [
|
|
9415
9416
|
/* @__PURE__ */ r(
|
|
@@ -9628,7 +9629,7 @@ function Pd(e, t) {
|
|
|
9628
9629
|
const [N, K] = $[0];
|
|
9629
9630
|
I = { id: N, type: K };
|
|
9630
9631
|
}
|
|
9631
|
-
|
|
9632
|
+
S({
|
|
9632
9633
|
domain: [...G, ...T],
|
|
9633
9634
|
context: { ...l, ...L },
|
|
9634
9635
|
model: B,
|
|
@@ -9691,7 +9692,7 @@ function Pd(e, t) {
|
|
|
9691
9692
|
fields: R,
|
|
9692
9693
|
context: { ...l, ...Z }
|
|
9693
9694
|
}) : [];
|
|
9694
|
-
|
|
9695
|
+
S({
|
|
9695
9696
|
model: T,
|
|
9696
9697
|
target: A,
|
|
9697
9698
|
views: _,
|
|
@@ -9753,7 +9754,7 @@ function Pd(e, t) {
|
|
|
9753
9754
|
} else
|
|
9754
9755
|
[U, $] = oe.find((N) => N[0] === void 0 ? !1 : N[0] === F);
|
|
9755
9756
|
const I = { id: U, type: $ };
|
|
9756
|
-
|
|
9757
|
+
S({
|
|
9757
9758
|
domain: A,
|
|
9758
9759
|
context: { ...l, ..._ },
|
|
9759
9760
|
model: L,
|
|
@@ -9768,7 +9769,7 @@ function Pd(e, t) {
|
|
|
9768
9769
|
limit: T && (Z === 0 || Z === !1) ? St : Z
|
|
9769
9770
|
});
|
|
9770
9771
|
}
|
|
9771
|
-
async function
|
|
9772
|
+
async function x({
|
|
9772
9773
|
model: C,
|
|
9773
9774
|
values: R,
|
|
9774
9775
|
forced_values: V,
|
|
@@ -9786,7 +9787,7 @@ function Pd(e, t) {
|
|
|
9786
9787
|
domain: T
|
|
9787
9788
|
});
|
|
9788
9789
|
}
|
|
9789
|
-
async function
|
|
9790
|
+
async function S({
|
|
9790
9791
|
domain: C,
|
|
9791
9792
|
context: R,
|
|
9792
9793
|
model: V,
|
|
@@ -9858,9 +9859,9 @@ function Pd(e, t) {
|
|
|
9858
9859
|
wa,
|
|
9859
9860
|
{
|
|
9860
9861
|
openShortcut: w,
|
|
9861
|
-
openAction:
|
|
9862
|
+
openAction: S,
|
|
9862
9863
|
openRelate: y,
|
|
9863
|
-
openDefaultActionForModel:
|
|
9864
|
+
openDefaultActionForModel: x,
|
|
9864
9865
|
tabs: d,
|
|
9865
9866
|
activeKey: i,
|
|
9866
9867
|
onRemoveTab: async (C) => {
|
|
@@ -9998,8 +9999,8 @@ const { useToken: Kd } = He, ku = (e) => {
|
|
|
9998
9999
|
tabs: g,
|
|
9999
10000
|
activeKey: y,
|
|
10000
10001
|
currentView: w,
|
|
10001
|
-
currentId:
|
|
10002
|
-
openDefaultActionForModel:
|
|
10002
|
+
currentId: x,
|
|
10003
|
+
openDefaultActionForModel: S
|
|
10003
10004
|
} = p || {}, C = De(() => {
|
|
10004
10005
|
if (!w || !w.view_id || !w.extra)
|
|
10005
10006
|
return;
|
|
@@ -10010,13 +10011,13 @@ const { useToken: Kd } = He, ku = (e) => {
|
|
|
10010
10011
|
}
|
|
10011
10012
|
const A = w.view_id;
|
|
10012
10013
|
let L = !1;
|
|
10013
|
-
return w.type === "form" && (L =
|
|
10014
|
+
return w.type === "form" && (L = x || !1), {
|
|
10014
10015
|
action_id: v,
|
|
10015
10016
|
action_type: _,
|
|
10016
10017
|
view_id: A,
|
|
10017
10018
|
res_id: L
|
|
10018
10019
|
};
|
|
10019
|
-
}, [
|
|
10020
|
+
}, [x, w]), R = De(() => {
|
|
10020
10021
|
if (C)
|
|
10021
10022
|
return JSON.stringify(C);
|
|
10022
10023
|
}, [C]);
|
|
@@ -10035,7 +10036,7 @@ const { useToken: Kd } = He, ku = (e) => {
|
|
|
10035
10036
|
}, [C, n]);
|
|
10036
10037
|
async function F() {
|
|
10037
10038
|
var v;
|
|
10038
|
-
(v = m == null ? void 0 : m.current) == null || v.close(),
|
|
10039
|
+
(v = m == null ? void 0 : m.current) == null || v.close(), S == null || S({ model: "ir.ui.view_sc" });
|
|
10039
10040
|
}
|
|
10040
10041
|
const T = fe(async () => {
|
|
10041
10042
|
const v = await t();
|
|
@@ -10066,7 +10067,7 @@ const { useToken: Kd } = He, ku = (e) => {
|
|
|
10066
10067
|
l(!1);
|
|
10067
10068
|
return;
|
|
10068
10069
|
}
|
|
10069
|
-
w.type === "form" && (G =
|
|
10070
|
+
w.type === "form" && (G = x || !1), await i({
|
|
10070
10071
|
action_id: _,
|
|
10071
10072
|
action_type: A,
|
|
10072
10073
|
view_id: L,
|
|
@@ -10076,7 +10077,7 @@ const { useToken: Kd } = He, ku = (e) => {
|
|
|
10076
10077
|
await T(), l(!a);
|
|
10077
10078
|
}, [
|
|
10078
10079
|
y,
|
|
10079
|
-
|
|
10080
|
+
x,
|
|
10080
10081
|
d,
|
|
10081
10082
|
w,
|
|
10082
10083
|
T,
|