@gisce/react-ooui 2.6.2 → 2.6.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +195 -194
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/custom/Tags.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -596,7 +596,7 @@ const io = (e) => {
|
|
|
596
596
|
}
|
|
597
597
|
h(!1), a();
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function V() {
|
|
600
600
|
return c ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ D(ee, { children: [
|
|
601
601
|
R(),
|
|
602
602
|
/* @__PURE__ */ r(cn, {}),
|
|
@@ -636,7 +636,7 @@ const io = (e) => {
|
|
|
636
636
|
footer: null,
|
|
637
637
|
destroyOnClose: !0,
|
|
638
638
|
maskClosable: !1,
|
|
639
|
-
children:
|
|
639
|
+
children: V()
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
642
|
};
|
|
@@ -1088,14 +1088,14 @@ const nr = async (e) => {
|
|
|
1088
1088
|
}, ea = (e) => {
|
|
1089
1089
|
const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = v(!1), [d, u] = v(), [f, c] = v(!1), [m, p] = v(), { relation: h, context: g, readOnly: y, summaryField: w, titleField: b } = i, x = s.filter((F) => F.values), S = re(He), { getContext: R } = S || {};
|
|
1090
1090
|
Ft(() => {
|
|
1091
|
-
|
|
1091
|
+
V();
|
|
1092
1092
|
}, [s]);
|
|
1093
1093
|
const I = (F) => {
|
|
1094
1094
|
o == null || o({
|
|
1095
1095
|
items: F
|
|
1096
1096
|
});
|
|
1097
1097
|
};
|
|
1098
|
-
async function
|
|
1098
|
+
async function V() {
|
|
1099
1099
|
l(!0), u(void 0);
|
|
1100
1100
|
try {
|
|
1101
1101
|
const [F] = await nr({
|
|
@@ -1170,7 +1170,7 @@ const nr = async (e) => {
|
|
|
1170
1170
|
c(!1);
|
|
1171
1171
|
},
|
|
1172
1172
|
readOnly: y,
|
|
1173
|
-
postSaveAction:
|
|
1173
|
+
postSaveAction: V
|
|
1174
1174
|
}
|
|
1175
1175
|
)
|
|
1176
1176
|
] });
|
|
@@ -1390,24 +1390,24 @@ const Nt = ({
|
|
|
1390
1390
|
return Array.isArray(O) && (C = O[1]), { label: C, value: T.id };
|
|
1391
1391
|
});
|
|
1392
1392
|
l(F);
|
|
1393
|
-
} catch (
|
|
1394
|
-
u(
|
|
1393
|
+
} catch (V) {
|
|
1394
|
+
u(V);
|
|
1395
1395
|
} finally {
|
|
1396
1396
|
c(!1);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
const S = (I) => {
|
|
1400
|
-
const
|
|
1400
|
+
const V = o.map((T) => I.includes(T.id) ? T.operation === "pendingRemove" ? {
|
|
1401
1401
|
...T,
|
|
1402
1402
|
operation: "pendingLink"
|
|
1403
|
-
} : T : { id: T.id, operation: "pendingRemove" }), F =
|
|
1404
|
-
I.filter((T) => !F.includes(T)).
|
|
1405
|
-
|
|
1406
|
-
}), b(
|
|
1403
|
+
} : T : { id: T.id, operation: "pendingRemove" }), F = V.map((T) => T.id);
|
|
1404
|
+
I.filter((T) => !F.includes(T)).forEach((T) => {
|
|
1405
|
+
V.push({ id: T, operation: "pendingLink" });
|
|
1406
|
+
}), b(V);
|
|
1407
1407
|
}, R = (I) => {
|
|
1408
|
-
const { label:
|
|
1408
|
+
const { label: V, closable: F, onClose: T } = I, O = (_) => {
|
|
1409
1409
|
_.preventDefault(), _.stopPropagation();
|
|
1410
|
-
}, C = Wt(
|
|
1410
|
+
}, C = Wt(V);
|
|
1411
1411
|
return /* @__PURE__ */ r(
|
|
1412
1412
|
rr,
|
|
1413
1413
|
{
|
|
@@ -1416,7 +1416,7 @@ const Nt = ({
|
|
|
1416
1416
|
closable: F,
|
|
1417
1417
|
onClose: T,
|
|
1418
1418
|
closeIcon: /* @__PURE__ */ r("span", { style: { color: C }, children: "X" }),
|
|
1419
|
-
children:
|
|
1419
|
+
children: V
|
|
1420
1420
|
}
|
|
1421
1421
|
);
|
|
1422
1422
|
};
|
|
@@ -1430,7 +1430,8 @@ const Nt = ({
|
|
|
1430
1430
|
disabled: h,
|
|
1431
1431
|
options: a,
|
|
1432
1432
|
onChange: S,
|
|
1433
|
-
loading: f
|
|
1433
|
+
loading: f,
|
|
1434
|
+
filterOption: (I, V) => V.label.toLowerCase().includes(I.toString())
|
|
1434
1435
|
}
|
|
1435
1436
|
) }) });
|
|
1436
1437
|
}, ma = (e) => {
|
|
@@ -1667,10 +1668,10 @@ const Nt = ({
|
|
|
1667
1668
|
setSelectedRowItems: S,
|
|
1668
1669
|
selectedRowItems: R,
|
|
1669
1670
|
searchTreeNameSearch: I,
|
|
1670
|
-
setSearchTreeNameSearch:
|
|
1671
|
+
setSearchTreeNameSearch: V,
|
|
1671
1672
|
goToResourceId: F,
|
|
1672
1673
|
limit: T
|
|
1673
|
-
} = e, [O, C] = v(!1), [_,
|
|
1674
|
+
} = e, [O, C] = v(!1), [_, A] = v(!1), [N, j] = v(!1), [H, U] = v(!0), [k, Y] = v(!0), [q, Q] = v([]), [ne, B] = v(!1), [E, K] = v([]), [L, ce] = v(!1), [J, te] = v(!0), [ve, z] = v(), [ie, Se] = v({}), [Ee, ke] = v(
|
|
1674
1675
|
T !== void 0 ? T : St
|
|
1675
1676
|
), [Me, ue] = v(i);
|
|
1676
1677
|
me(() => {
|
|
@@ -1705,7 +1706,7 @@ const Nt = ({
|
|
|
1705
1706
|
formIsSaving: O,
|
|
1706
1707
|
setFormIsSaving: C,
|
|
1707
1708
|
formHasChanges: _,
|
|
1708
|
-
setFormHasChanges:
|
|
1709
|
+
setFormHasChanges: A,
|
|
1709
1710
|
formRef: a,
|
|
1710
1711
|
searchTreeRef: l,
|
|
1711
1712
|
onFormSave: Fe,
|
|
@@ -1738,7 +1739,7 @@ const Nt = ({
|
|
|
1738
1739
|
totalItems: b,
|
|
1739
1740
|
setTotalItems: x,
|
|
1740
1741
|
searchTreeNameSearch: I,
|
|
1741
|
-
setSearchTreeNameSearch:
|
|
1742
|
+
setSearchTreeNameSearch: V,
|
|
1742
1743
|
setGraphIsLoading: te,
|
|
1743
1744
|
graphIsLoading: J,
|
|
1744
1745
|
previousView: ve,
|
|
@@ -1801,10 +1802,10 @@ const Nt = ({
|
|
|
1801
1802
|
context: {}
|
|
1802
1803
|
}
|
|
1803
1804
|
);
|
|
1804
|
-
async function y(
|
|
1805
|
-
const { reportData: F, fields: T, values: O, context: C = {} } =
|
|
1805
|
+
async function y(V) {
|
|
1806
|
+
const { reportData: F, fields: T, values: O, context: C = {} } = V, {
|
|
1806
1807
|
context: _,
|
|
1807
|
-
model:
|
|
1808
|
+
model: A,
|
|
1808
1809
|
datas: N = {},
|
|
1809
1810
|
report_name: j,
|
|
1810
1811
|
type: H
|
|
@@ -1820,7 +1821,7 @@ const Nt = ({
|
|
|
1820
1821
|
}) : _;
|
|
1821
1822
|
try {
|
|
1822
1823
|
const q = await P.getHandler().createReport({
|
|
1823
|
-
model:
|
|
1824
|
+
model: A,
|
|
1824
1825
|
name: j,
|
|
1825
1826
|
datas: N,
|
|
1826
1827
|
ids: k,
|
|
@@ -1833,11 +1834,11 @@ const Nt = ({
|
|
|
1833
1834
|
s.current = !1, clearInterval(o.current), Qe(q), l(!1);
|
|
1834
1835
|
}
|
|
1835
1836
|
}
|
|
1836
|
-
async function w(
|
|
1837
|
+
async function w(V) {
|
|
1837
1838
|
let F;
|
|
1838
1839
|
try {
|
|
1839
1840
|
if (F = await P.getHandler().getReport({
|
|
1840
|
-
id:
|
|
1841
|
+
id: V
|
|
1841
1842
|
}), F.state && s.current === !0) {
|
|
1842
1843
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
1843
1844
|
const T = await Et(F.result);
|
|
@@ -1848,48 +1849,48 @@ const Nt = ({
|
|
|
1848
1849
|
}
|
|
1849
1850
|
}
|
|
1850
1851
|
async function b({
|
|
1851
|
-
actionData:
|
|
1852
|
+
actionData: V,
|
|
1852
1853
|
fields: F,
|
|
1853
1854
|
values: T,
|
|
1854
1855
|
context: O,
|
|
1855
1856
|
onRefreshParentValues: C
|
|
1856
1857
|
}) {
|
|
1857
|
-
const { type: _ } =
|
|
1858
|
+
const { type: _ } = V;
|
|
1858
1859
|
if (f.current.push(C), _ === "ir.actions.report.xml")
|
|
1859
1860
|
return await y({
|
|
1860
|
-
reportData:
|
|
1861
|
+
reportData: V,
|
|
1861
1862
|
fields: F,
|
|
1862
1863
|
values: T,
|
|
1863
1864
|
context: O
|
|
1864
1865
|
});
|
|
1865
1866
|
if (_ === "ir.actions.act_window")
|
|
1866
|
-
return await x({ actionData:
|
|
1867
|
+
return await x({ actionData: V, fields: F, values: T, context: O });
|
|
1867
1868
|
if (_ === "ir.actions.act_url")
|
|
1868
1869
|
window.open(
|
|
1869
|
-
ca(
|
|
1870
|
+
ca(V.url, { ...T, context: O }),
|
|
1870
1871
|
"_blank"
|
|
1871
1872
|
);
|
|
1872
1873
|
else
|
|
1873
1874
|
return Qe(`${_} action not supported`), {};
|
|
1874
1875
|
}
|
|
1875
1876
|
async function x({
|
|
1876
|
-
actionData:
|
|
1877
|
+
actionData: V,
|
|
1877
1878
|
fields: F = {},
|
|
1878
1879
|
values: T = {},
|
|
1879
1880
|
context: O = {}
|
|
1880
1881
|
}) {
|
|
1881
1882
|
var j;
|
|
1882
|
-
let C =
|
|
1883
|
-
|
|
1883
|
+
let C = V;
|
|
1884
|
+
V.res_model || (C = (await P.getHandler().readObjects({
|
|
1884
1885
|
model: "ir.actions.act_window",
|
|
1885
|
-
ids: [parseInt(
|
|
1886
|
+
ids: [parseInt(V.id)],
|
|
1886
1887
|
context: O
|
|
1887
1888
|
}))[0]);
|
|
1888
1889
|
const _ = typeof (C == null ? void 0 : C.context) == "string" ? xt({
|
|
1889
1890
|
context: C.context,
|
|
1890
1891
|
fields: F,
|
|
1891
1892
|
values: { ...T, ...i }
|
|
1892
|
-
}) : C.context,
|
|
1893
|
+
}) : C.context, A = {
|
|
1893
1894
|
...O,
|
|
1894
1895
|
..._
|
|
1895
1896
|
};
|
|
@@ -1901,30 +1902,30 @@ const Nt = ({
|
|
|
1901
1902
|
values: { ...T, ...i }
|
|
1902
1903
|
}),
|
|
1903
1904
|
fields: F,
|
|
1904
|
-
context:
|
|
1905
|
+
context: A
|
|
1905
1906
|
})), C.target === "new") {
|
|
1906
1907
|
const H = await P.getHandler().getView({
|
|
1907
1908
|
model: C.res_model,
|
|
1908
1909
|
type: "form",
|
|
1909
1910
|
id: ((j = C == null ? void 0 : C.view_id) == null ? void 0 : j[0]) || void 0,
|
|
1910
|
-
context:
|
|
1911
|
+
context: A
|
|
1911
1912
|
});
|
|
1912
1913
|
return S({
|
|
1913
1914
|
domain: N,
|
|
1914
1915
|
model: C.res_model,
|
|
1915
1916
|
formView: H,
|
|
1916
|
-
context:
|
|
1917
|
+
context: A
|
|
1917
1918
|
}), {};
|
|
1918
1919
|
} else {
|
|
1919
1920
|
const { initialView: H, views: U } = await Ia({
|
|
1920
1921
|
model: C.res_model,
|
|
1921
|
-
context:
|
|
1922
|
+
context: A,
|
|
1922
1923
|
view_mode: C.view_mode,
|
|
1923
1924
|
views: C.views
|
|
1924
1925
|
});
|
|
1925
1926
|
return u == null || u({
|
|
1926
1927
|
target: "current",
|
|
1927
|
-
context:
|
|
1928
|
+
context: A,
|
|
1928
1929
|
domain: N,
|
|
1929
1930
|
model: C.res_model,
|
|
1930
1931
|
views: U,
|
|
@@ -1936,16 +1937,16 @@ const Nt = ({
|
|
|
1936
1937
|
}
|
|
1937
1938
|
}
|
|
1938
1939
|
function S({
|
|
1939
|
-
domain:
|
|
1940
|
+
domain: V,
|
|
1940
1941
|
model: F,
|
|
1941
1942
|
formView: T,
|
|
1942
1943
|
context: O,
|
|
1943
1944
|
actionData: C
|
|
1944
1945
|
}) {
|
|
1945
|
-
m ? R({ domain:
|
|
1946
|
+
m ? R({ domain: V, model: F, formView: T, context: O, actionData: C }) : (g({ domain: V, model: F, context: O, formView: T, actionData: C }), p(!0));
|
|
1946
1947
|
}
|
|
1947
1948
|
async function R({
|
|
1948
|
-
domain:
|
|
1949
|
+
domain: V,
|
|
1949
1950
|
model: F,
|
|
1950
1951
|
formView: T,
|
|
1951
1952
|
context: O,
|
|
@@ -1957,7 +1958,7 @@ const Nt = ({
|
|
|
1957
1958
|
context: {},
|
|
1958
1959
|
formView: void 0,
|
|
1959
1960
|
actionData: void 0
|
|
1960
|
-
}), p(!1), await new Promise((_) => setTimeout(_, 300)), g({ domain:
|
|
1961
|
+
}), p(!1), await new Promise((_) => setTimeout(_, 300)), g({ domain: V, model: F, context: O, formView: T, actionData: C }), p(!0);
|
|
1961
1962
|
}
|
|
1962
1963
|
async function I() {
|
|
1963
1964
|
Fr(f.current), f.current = [], p(!1), g({
|
|
@@ -2111,8 +2112,8 @@ function Ea(e, t) {
|
|
|
2111
2112
|
rootForm: S = !1,
|
|
2112
2113
|
defaultValues: R,
|
|
2113
2114
|
forcedValues: I = {},
|
|
2114
|
-
parentWidth:
|
|
2115
|
-
} = e, { t: F } = ge(), [T, O] = v(!1), [C, _] = v(), [
|
|
2115
|
+
parentWidth: V
|
|
2116
|
+
} = e, { t: F } = ge(), [T, O] = v(!1), [C, _] = v(), [A, N] = v(), [j] = lt.useForm(), [H, U] = v(), [k, Y] = v(), q = re(go), [Q, ne] = v(), [B, E] = v(!1), K = le(), L = le({}), ce = le({}), J = le(!1), te = le(!1), ve = le(!1), ie = (V !== void 0 ? V : Q) < Da, Se = re(He), { activeId: Ee, getPlainValues: ke } = Se || {}, Me = re(
|
|
2116
2117
|
nt
|
|
2117
2118
|
), {
|
|
2118
2119
|
setFormIsSaving: ue = void 0,
|
|
@@ -2187,7 +2188,7 @@ function Ea(e, t) {
|
|
|
2187
2188
|
return M;
|
|
2188
2189
|
}
|
|
2189
2190
|
function Re() {
|
|
2190
|
-
return { ...w, ...
|
|
2191
|
+
return { ...w, ...A == null ? void 0 : A.context };
|
|
2191
2192
|
}
|
|
2192
2193
|
function xe() {
|
|
2193
2194
|
return se() ? { active_id: se(), active_ids: [se()] } : {};
|
|
@@ -2202,7 +2203,7 @@ function Ea(e, t) {
|
|
|
2202
2203
|
};
|
|
2203
2204
|
}
|
|
2204
2205
|
const Ve = async (M) => {
|
|
2205
|
-
const $ = se() ?
|
|
2206
|
+
const $ = se() ? A == null ? void 0 : A.context : {};
|
|
2206
2207
|
return await P.getHandler().defaultGet({
|
|
2207
2208
|
model: n,
|
|
2208
2209
|
fields: M,
|
|
@@ -2338,7 +2339,7 @@ function Ea(e, t) {
|
|
|
2338
2339
|
fields: k,
|
|
2339
2340
|
context: {
|
|
2340
2341
|
...w,
|
|
2341
|
-
...
|
|
2342
|
+
...A == null ? void 0 : A.context
|
|
2342
2343
|
}
|
|
2343
2344
|
}), L.current = Ge(k);
|
|
2344
2345
|
} else {
|
|
@@ -2348,7 +2349,7 @@ function Ea(e, t) {
|
|
|
2348
2349
|
fields: k,
|
|
2349
2350
|
context: {
|
|
2350
2351
|
...w,
|
|
2351
|
-
...
|
|
2352
|
+
...A == null ? void 0 : A.context
|
|
2352
2353
|
}
|
|
2353
2354
|
});
|
|
2354
2355
|
K.current = Z, L.current = X;
|
|
@@ -2413,7 +2414,7 @@ function Ea(e, t) {
|
|
|
2413
2414
|
}), X = Object.keys($);
|
|
2414
2415
|
if (X.length !== 0 && !(ia({
|
|
2415
2416
|
changedFields: X,
|
|
2416
|
-
formOoui:
|
|
2417
|
+
formOoui: A,
|
|
2417
2418
|
types: [
|
|
2418
2419
|
"text",
|
|
2419
2420
|
"codeeditor",
|
|
@@ -2439,7 +2440,7 @@ function Ea(e, t) {
|
|
|
2439
2440
|
Qe($);
|
|
2440
2441
|
}
|
|
2441
2442
|
}, Yo = async (M) => {
|
|
2442
|
-
const $ =
|
|
2443
|
+
const $ = A == null ? void 0 : A.onChangeFields[M];
|
|
2443
2444
|
if (!$) {
|
|
2444
2445
|
Ht({
|
|
2445
2446
|
fields: k,
|
|
@@ -2453,7 +2454,7 @@ function Ea(e, t) {
|
|
|
2453
2454
|
...Ge(k),
|
|
2454
2455
|
context: {
|
|
2455
2456
|
...w,
|
|
2456
|
-
...
|
|
2457
|
+
...A == null ? void 0 : A.context
|
|
2457
2458
|
}
|
|
2458
2459
|
},
|
|
2459
2460
|
parentValues: ke == null ? void 0 : ke(),
|
|
@@ -2510,7 +2511,7 @@ function Ea(e, t) {
|
|
|
2510
2511
|
action: M,
|
|
2511
2512
|
payload: [se()],
|
|
2512
2513
|
context: {
|
|
2513
|
-
...
|
|
2514
|
+
...A == null ? void 0 : A.context,
|
|
2514
2515
|
...w,
|
|
2515
2516
|
...$
|
|
2516
2517
|
}
|
|
@@ -2561,7 +2562,7 @@ function Ea(e, t) {
|
|
|
2561
2562
|
values: De(),
|
|
2562
2563
|
context: {
|
|
2563
2564
|
...w,
|
|
2564
|
-
...
|
|
2565
|
+
...A == null ? void 0 : A.context,
|
|
2565
2566
|
...$
|
|
2566
2567
|
},
|
|
2567
2568
|
onRefreshParentValues: () => {
|
|
@@ -2603,7 +2604,7 @@ function Ea(e, t) {
|
|
|
2603
2604
|
Z && Cn(!1), Qe(Ce);
|
|
2604
2605
|
}
|
|
2605
2606
|
}
|
|
2606
|
-
const Zo = () => !
|
|
2607
|
+
const Zo = () => !A && !C ? /* @__PURE__ */ r($e, {}) : !n && !h || !x ? null : /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
|
|
2607
2608
|
xs,
|
|
2608
2609
|
{
|
|
2609
2610
|
getValues: De,
|
|
@@ -2628,10 +2629,10 @@ function Ea(e, t) {
|
|
|
2628
2629
|
Uo({ elementHasLostFocus: !1 });
|
|
2629
2630
|
},
|
|
2630
2631
|
component: !1,
|
|
2631
|
-
children:
|
|
2632
|
+
children: A && /* @__PURE__ */ r(
|
|
2632
2633
|
En,
|
|
2633
2634
|
{
|
|
2634
|
-
container:
|
|
2635
|
+
container: A.container,
|
|
2635
2636
|
responsiveBehaviour: ie
|
|
2636
2637
|
}
|
|
2637
2638
|
)
|
|
@@ -2722,7 +2723,7 @@ const zt = ht(Ea), Jt = (e) => {
|
|
|
2722
2723
|
}
|
|
2723
2724
|
h(!p);
|
|
2724
2725
|
}
|
|
2725
|
-
function
|
|
2726
|
+
function V() {
|
|
2726
2727
|
return /* @__PURE__ */ D(Oe, { align: "middle", children: [
|
|
2727
2728
|
/* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(
|
|
2728
2729
|
Pe,
|
|
@@ -2740,7 +2741,7 @@ const zt = ht(Ea), Jt = (e) => {
|
|
|
2740
2741
|
return /* @__PURE__ */ r(Fa, { setTitle: m, children: /* @__PURE__ */ r(
|
|
2741
2742
|
Je,
|
|
2742
2743
|
{
|
|
2743
|
-
title: a ?
|
|
2744
|
+
title: a ? V() : c,
|
|
2744
2745
|
centered: !0,
|
|
2745
2746
|
width: f,
|
|
2746
2747
|
open: t,
|
|
@@ -3128,24 +3129,24 @@ function wo(e) {
|
|
|
3128
3129
|
me(() => {
|
|
3129
3130
|
I.setFieldsValue(m);
|
|
3130
3131
|
}, [m]);
|
|
3131
|
-
const
|
|
3132
|
+
const V = () => {
|
|
3132
3133
|
if (!y)
|
|
3133
3134
|
return;
|
|
3134
3135
|
const O = b ? y : h, C = O == null ? void 0 : O.rows;
|
|
3135
|
-
return C == null ? void 0 : C.map((_,
|
|
3136
|
+
return C == null ? void 0 : C.map((_, A) => /* @__PURE__ */ r(Oe, { children: _.map((N, j) => /* @__PURE__ */ r(he, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r(Ya, { field: N }) }, j)) }, A));
|
|
3136
3137
|
};
|
|
3137
3138
|
Ft(() => {
|
|
3138
3139
|
x(!1), S.current = new yi(n, t), S.current.parse(), g(S.current._simpleSearchContainer), w(S.current._advancedSearchContainer);
|
|
3139
3140
|
}, [t, n]);
|
|
3140
|
-
const F =
|
|
3141
|
+
const F = V(), T = (O) => {
|
|
3141
3142
|
var N;
|
|
3142
3143
|
const { limit: C, offset: _ } = O;
|
|
3143
3144
|
delete O.offset, delete O.limit;
|
|
3144
|
-
const
|
|
3145
|
+
const A = Ja(
|
|
3145
3146
|
O,
|
|
3146
3147
|
(N = S.current) == null ? void 0 : N._advancedSearchContainer
|
|
3147
3148
|
);
|
|
3148
|
-
o({ params:
|
|
3149
|
+
o({ params: A, offset: _, limit: C, searchValues: O });
|
|
3149
3150
|
};
|
|
3150
3151
|
return /* @__PURE__ */ r(
|
|
3151
3152
|
er,
|
|
@@ -3767,8 +3768,8 @@ const pl = (e) => {
|
|
|
3767
3768
|
rootTree: S = !1,
|
|
3768
3769
|
context: R,
|
|
3769
3770
|
readonly: I,
|
|
3770
|
-
onSelectAllRecords:
|
|
3771
|
-
} = e, F = le(null), [T, O] = v([]), C = le(!1), [_,
|
|
3771
|
+
onSelectAllRecords: V
|
|
3772
|
+
} = e, F = le(null), [T, O] = v([]), C = le(!1), [_, A] = v(), { t: N } = ge(), j = le(i), H = re(
|
|
3772
3773
|
nt
|
|
3773
3774
|
), { title: U = void 0, setTitle: k = void 0 } = (S ? H : {}) || {}, Y = _e(() => {
|
|
3774
3775
|
if (_)
|
|
@@ -3787,7 +3788,7 @@ const pl = (e) => {
|
|
|
3787
3788
|
}
|
|
3788
3789
|
})), me(() => {
|
|
3789
3790
|
const J = At(s);
|
|
3790
|
-
|
|
3791
|
+
A(J), J.string && U !== J.string && (k == null || k(J.string));
|
|
3791
3792
|
}, [s, U]), me(() => {
|
|
3792
3793
|
if (!_)
|
|
3793
3794
|
return;
|
|
@@ -3804,7 +3805,7 @@ const pl = (e) => {
|
|
|
3804
3805
|
(te) => c && c.includes(te.id)
|
|
3805
3806
|
).length;
|
|
3806
3807
|
return d ? null : o === void 0 ? /* @__PURE__ */ r($e, { className: "pb-4" }) : /* @__PURE__ */ D(Oe, { align: "bottom", className: "pb-4", children: [
|
|
3807
|
-
/* @__PURE__ */ r(he, { span:
|
|
3808
|
+
/* @__PURE__ */ r(he, { span: V ? 8 : 12, children: /* @__PURE__ */ r(
|
|
3808
3809
|
di,
|
|
3809
3810
|
{
|
|
3810
3811
|
total: o,
|
|
@@ -3814,23 +3815,23 @@ const pl = (e) => {
|
|
|
3814
3815
|
onChange: l
|
|
3815
3816
|
}
|
|
3816
3817
|
) }),
|
|
3817
|
-
|
|
3818
|
+
V && /* @__PURE__ */ r(he, { span: 8, className: "text-center", children: /* @__PURE__ */ r(
|
|
3818
3819
|
al,
|
|
3819
3820
|
{
|
|
3820
3821
|
numberOfVisibleSelectedRows: J,
|
|
3821
3822
|
numberOfRealSelectedRows: (c == null ? void 0 : c.length) || 0,
|
|
3822
3823
|
numberOfTotalRows: T.length,
|
|
3823
3824
|
totalRecords: o || 0,
|
|
3824
|
-
onSelectAllRecords:
|
|
3825
|
+
onSelectAllRecords: V
|
|
3825
3826
|
}
|
|
3826
3827
|
) }),
|
|
3827
|
-
/* @__PURE__ */ r(he, { span:
|
|
3828
|
+
/* @__PURE__ */ r(he, { span: V ? 8 : 12, className: "text-right", children: ne })
|
|
3828
3829
|
] });
|
|
3829
3830
|
}, [
|
|
3830
3831
|
T,
|
|
3831
3832
|
d,
|
|
3832
3833
|
l,
|
|
3833
|
-
|
|
3834
|
+
V,
|
|
3834
3835
|
n,
|
|
3835
3836
|
c,
|
|
3836
3837
|
f,
|
|
@@ -3915,9 +3916,9 @@ const So = (e) => {
|
|
|
3915
3916
|
limit: S,
|
|
3916
3917
|
setLimit: R,
|
|
3917
3918
|
searchParams: I = [],
|
|
3918
|
-
setSearchValues:
|
|
3919
|
+
setSearchValues: V,
|
|
3919
3920
|
clearSelection: F
|
|
3920
|
-
} = e, [T, O] = v(!1), [C, _] = v(!1), [
|
|
3921
|
+
} = e, [T, O] = v(!1), [C, _] = v(!1), [A, N] = v(), [j, H] = v(1), [U, k] = v(0), [Y, q] = v(), [Q, ne] = v([]), [B, E] = v(void 0), [K, L] = v(void 0), ce = le(S || St), J = le([]), te = de(
|
|
3921
3922
|
(ae) => {
|
|
3922
3923
|
y == null || y([...ae]), ne([...ae]);
|
|
3923
3924
|
},
|
|
@@ -4050,7 +4051,7 @@ const So = (e) => {
|
|
|
4050
4051
|
), ke = de(
|
|
4051
4052
|
(ae) => {
|
|
4052
4053
|
const { params: Ie, searchValues: je, limit: Ke, offset: W } = ae;
|
|
4053
|
-
T || (n == null || n(void 0), i == null || i([]),
|
|
4054
|
+
T || (n == null || n(void 0), i == null || i([]), V == null || V(je), o == null || o(Ie), s == null || s(!1), _(!0), N(void 0), H(1), Ke && (ce.current = Ke, R == null || R(Ke)), W && k(W), Se({
|
|
4054
4055
|
params: Ie,
|
|
4055
4056
|
newOffset: W
|
|
4056
4057
|
}));
|
|
@@ -4059,7 +4060,7 @@ const So = (e) => {
|
|
|
4059
4060
|
T,
|
|
4060
4061
|
n,
|
|
4061
4062
|
i,
|
|
4062
|
-
|
|
4063
|
+
V,
|
|
4063
4064
|
o,
|
|
4064
4065
|
s,
|
|
4065
4066
|
Se,
|
|
@@ -4071,12 +4072,12 @@ const So = (e) => {
|
|
|
4071
4072
|
},
|
|
4072
4073
|
[O, S, k, H]
|
|
4073
4074
|
), ue = de(() => {
|
|
4074
|
-
T || (n == null || n(void 0), o == null || o([]),
|
|
4075
|
+
T || (n == null || n(void 0), o == null || o([]), V == null || V({}), N(void 0), k(0), H(1), R == null || R(S || St));
|
|
4075
4076
|
}, [
|
|
4076
4077
|
T,
|
|
4077
4078
|
n,
|
|
4078
4079
|
o,
|
|
4079
|
-
|
|
4080
|
+
V,
|
|
4080
4081
|
R,
|
|
4081
4082
|
S
|
|
4082
4083
|
]), Fe = de(
|
|
@@ -4102,7 +4103,7 @@ const So = (e) => {
|
|
|
4102
4103
|
fetchResults: Se,
|
|
4103
4104
|
tableRefreshing: T,
|
|
4104
4105
|
searchFilterLoading: C,
|
|
4105
|
-
searchError:
|
|
4106
|
+
searchError: A,
|
|
4106
4107
|
page: j,
|
|
4107
4108
|
offset: U,
|
|
4108
4109
|
limit: ce.current,
|
|
@@ -4130,7 +4131,7 @@ function Dl(e, t) {
|
|
|
4130
4131
|
rootTree: f = !1,
|
|
4131
4132
|
parentContext: c = {},
|
|
4132
4133
|
onChangeSelectedRowKeys: m
|
|
4133
|
-
} = e, [p, h] = v(!1), [g, y] = v(!1), w = le(!1), b = le(null), [x, S] = v(), [R, I] = v(), [
|
|
4134
|
+
} = e, [p, h] = v(!1), [g, y] = v(!1), w = le(!1), b = le(null), [x, S] = v(), [R, I] = v(), [V, F] = v(), [T, O] = v(), [C, _] = v(200), A = le(), { height: N } = hn(), j = re(
|
|
4134
4135
|
Lt
|
|
4135
4136
|
), { processAction: H } = j || {}, U = re(
|
|
4136
4137
|
nt
|
|
@@ -4189,7 +4190,7 @@ function Dl(e, t) {
|
|
|
4189
4190
|
nameSearch: a,
|
|
4190
4191
|
searchNameGetDoneRef: w,
|
|
4191
4192
|
context: c,
|
|
4192
|
-
formView:
|
|
4193
|
+
formView: V,
|
|
4193
4194
|
treeView: R,
|
|
4194
4195
|
sorter: J,
|
|
4195
4196
|
setSorter: te,
|
|
@@ -4247,12 +4248,12 @@ function Dl(e, t) {
|
|
|
4247
4248
|
), Ve = de(
|
|
4248
4249
|
async (Ne) => {
|
|
4249
4250
|
const { id: ot } = Ne;
|
|
4250
|
-
|
|
4251
|
+
A.current || (A.current = await P.getHandler().treeButOpen({
|
|
4251
4252
|
id: R.view_id,
|
|
4252
4253
|
model: x,
|
|
4253
4254
|
context: c
|
|
4254
4255
|
}));
|
|
4255
|
-
const ut =
|
|
4256
|
+
const ut = A.current[0][2];
|
|
4256
4257
|
await (H == null ? void 0 : H({
|
|
4257
4258
|
actionData: ut,
|
|
4258
4259
|
fields: R.fields,
|
|
@@ -4278,24 +4279,24 @@ function Dl(e, t) {
|
|
|
4278
4279
|
s({
|
|
4279
4280
|
id: ot,
|
|
4280
4281
|
model: x,
|
|
4281
|
-
formView:
|
|
4282
|
+
formView: V,
|
|
4282
4283
|
treeView: R
|
|
4283
4284
|
});
|
|
4284
4285
|
},
|
|
4285
|
-
[x,
|
|
4286
|
+
[x, V, s, Ve, R]
|
|
4286
4287
|
), Ge = de(async () => {
|
|
4287
4288
|
const Ne = await oe();
|
|
4288
4289
|
B == null || B(Ne.map((ot) => ({ id: ot }))), m == null || m(Ne);
|
|
4289
4290
|
}, [oe, m, B]), bt = _e(() => R != null && R.isExpandable ? N - 160 : N - (C + 240), [N, C, R == null ? void 0 : R.isExpandable]), st = _e(
|
|
4290
4291
|
() => ne == null ? void 0 : ne.map((Ne) => Ne.id),
|
|
4291
4292
|
[ne]
|
|
4292
|
-
), Qt = de(() => !R || !
|
|
4293
|
+
), Qt = de(() => !R || !V ? null : /* @__PURE__ */ D(ee, { children: [
|
|
4293
4294
|
/* @__PURE__ */ r(
|
|
4294
4295
|
wo,
|
|
4295
4296
|
{
|
|
4296
|
-
fields: { ...
|
|
4297
|
+
fields: { ...V.fields, ...R.fields },
|
|
4297
4298
|
searchFields: ho([
|
|
4298
|
-
|
|
4299
|
+
V.search_fields,
|
|
4299
4300
|
R.search_fields
|
|
4300
4301
|
]),
|
|
4301
4302
|
onClear: Le,
|
|
@@ -4343,7 +4344,7 @@ function Dl(e, t) {
|
|
|
4343
4344
|
Le,
|
|
4344
4345
|
We,
|
|
4345
4346
|
se,
|
|
4346
|
-
|
|
4347
|
+
V,
|
|
4347
4348
|
fe,
|
|
4348
4349
|
ke,
|
|
4349
4350
|
ye,
|
|
@@ -4487,7 +4488,7 @@ const To = ht(Dl), Fo = (e) => {
|
|
|
4487
4488
|
context: l,
|
|
4488
4489
|
id: d,
|
|
4489
4490
|
domain: u
|
|
4490
|
-
} = i, f = o && !a ? { backgroundColor: Ro.colorPrimaryBg } : void 0, [c, m] = v(!1), [p, h] = v(!1), [g, y] = v(!1), [w, b] = v(), x = le(!1), [S, R] = v(""), I = le(),
|
|
4491
|
+
} = i, f = o && !a ? { backgroundColor: Ro.colorPrimaryBg } : void 0, [c, m] = v(!1), [p, h] = v(!1), [g, y] = v(!1), [w, b] = v(), x = le(!1), [S, R] = v(""), I = le(), V = re(He), { domain: F, getValues: T, getFields: O, getContext: C, elementHasLostFocus: _ } = V || {}, A = le([]), [N, j] = v([]), H = t && t[0] || void 0, U = t && t[1] || "";
|
|
4491
4492
|
me(() => {
|
|
4492
4493
|
!Array.isArray(t) && t && ne(t);
|
|
4493
4494
|
}, [t]), me(() => {
|
|
@@ -4505,7 +4506,7 @@ const To = ht(Dl), Fo = (e) => {
|
|
|
4505
4506
|
}
|
|
4506
4507
|
y(!0);
|
|
4507
4508
|
try {
|
|
4508
|
-
if (
|
|
4509
|
+
if (A.current && A.current.length > 0)
|
|
4509
4510
|
Q(I.current);
|
|
4510
4511
|
else {
|
|
4511
4512
|
const L = await P.getHandler().nameSearch({
|
|
@@ -4522,9 +4523,9 @@ const To = ht(Dl), Fo = (e) => {
|
|
|
4522
4523
|
}
|
|
4523
4524
|
}
|
|
4524
4525
|
}, Q = async (L) => {
|
|
4525
|
-
if (await B(),
|
|
4526
|
+
if (await B(), A.current && A.current.length > 0) {
|
|
4526
4527
|
const ce = await P.getHandler().searchAllIds({
|
|
4527
|
-
params:
|
|
4528
|
+
params: A.current,
|
|
4528
4529
|
model: s,
|
|
4529
4530
|
context: { ...C == null ? void 0 : C(), ...l },
|
|
4530
4531
|
totalItems: 2
|
|
@@ -4550,7 +4551,7 @@ const To = ht(Dl), Fo = (e) => {
|
|
|
4550
4551
|
}
|
|
4551
4552
|
};
|
|
4552
4553
|
async function B() {
|
|
4553
|
-
u && (
|
|
4554
|
+
u && (A.current = await P.getHandler().evalDomain({
|
|
4554
4555
|
domain: u,
|
|
4555
4556
|
values: Nt({
|
|
4556
4557
|
fields: O(),
|
|
@@ -4558,12 +4559,12 @@ const To = ht(Dl), Fo = (e) => {
|
|
|
4558
4559
|
}),
|
|
4559
4560
|
fields: O(),
|
|
4560
4561
|
context: C()
|
|
4561
|
-
})), F && F.length > 0 && (
|
|
4562
|
+
})), F && F.length > 0 && (A.current = A.current.concat(
|
|
4562
4563
|
jr({
|
|
4563
4564
|
domain: F,
|
|
4564
4565
|
widgetFieldName: d
|
|
4565
4566
|
})
|
|
4566
|
-
)), j(
|
|
4567
|
+
)), j(A.current);
|
|
4567
4568
|
}
|
|
4568
4569
|
async function E(L) {
|
|
4569
4570
|
L.keyCode === 13 ? (L.preventDefault(), L.stopPropagation(), await q()) : L.code === "Backspace" && H !== void 0 && (L.preventDefault(), L.stopPropagation(), k([void 0, ""]));
|
|
@@ -4851,13 +4852,13 @@ const gn = () => /* @__PURE__ */ r(
|
|
|
4851
4852
|
field: u,
|
|
4852
4853
|
operator: f,
|
|
4853
4854
|
manualIds: c
|
|
4854
|
-
} = e, [m, p] = v(!1), [h, g] = v(), [y, w] = v(), [b, x] = v(), [S, R] = v(), [I,
|
|
4855
|
+
} = e, [m, p] = v(!1), [h, g] = v(), [y, w] = v(), [b, x] = v(), [S, R] = v(), [I, V] = v(), [F, T] = v(), [O] = Xe(
|
|
4855
4856
|
P.getHandler().searchAllIds
|
|
4856
4857
|
), [C] = Xe(
|
|
4857
4858
|
P.getHandler().readObjects
|
|
4858
4859
|
), [_] = Xe(
|
|
4859
4860
|
P.getHandler().searchCount
|
|
4860
|
-
), [
|
|
4861
|
+
), [A] = Xe(
|
|
4861
4862
|
P.getHandler().evalDomain
|
|
4862
4863
|
), [N] = Xe(
|
|
4863
4864
|
P.getHandler().parseCondition
|
|
@@ -4922,7 +4923,7 @@ const gn = () => /* @__PURE__ */ r(
|
|
|
4922
4923
|
try {
|
|
4923
4924
|
const q = await j({ domain: n, isTotal: !1 });
|
|
4924
4925
|
if (g(q), s) {
|
|
4925
|
-
const Q = await
|
|
4926
|
+
const Q = await A({
|
|
4926
4927
|
domain: s,
|
|
4927
4928
|
values: {},
|
|
4928
4929
|
context: i
|
|
@@ -4947,9 +4948,9 @@ const gn = () => /* @__PURE__ */ r(
|
|
|
4947
4948
|
values: { value: q, percent: Y },
|
|
4948
4949
|
context: i
|
|
4949
4950
|
});
|
|
4950
|
-
|
|
4951
|
+
V(Q);
|
|
4951
4952
|
} else
|
|
4952
|
-
|
|
4953
|
+
V(l);
|
|
4953
4954
|
T(void 0);
|
|
4954
4955
|
} catch (q) {
|
|
4955
4956
|
T(JSON.stringify(q));
|
|
@@ -4985,7 +4986,7 @@ const gn = () => /* @__PURE__ */ r(
|
|
|
4985
4986
|
u(!0), c(void 0);
|
|
4986
4987
|
const I = Wn(o);
|
|
4987
4988
|
w(I.type || "line");
|
|
4988
|
-
const
|
|
4989
|
+
const V = Wl({ ooui: I });
|
|
4989
4990
|
let F, T;
|
|
4990
4991
|
try {
|
|
4991
4992
|
({ values: F, fields: T } = await Gl({
|
|
@@ -4994,7 +4995,7 @@ const gn = () => /* @__PURE__ */ r(
|
|
|
4994
4995
|
context: i,
|
|
4995
4996
|
limit: s,
|
|
4996
4997
|
order: I.timerange ? I.x.name : null,
|
|
4997
|
-
fields:
|
|
4998
|
+
fields: V,
|
|
4998
4999
|
manualIds: l,
|
|
4999
5000
|
methods: {
|
|
5000
5001
|
getFields: b,
|
|
@@ -5590,7 +5591,7 @@ const dc = (e) => {
|
|
|
5590
5591
|
var De;
|
|
5591
5592
|
const { value: t, onChange: n, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = re(
|
|
5592
5593
|
Oo
|
|
5593
|
-
), f = re(He), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = ge(), [w, b] = v(!1), [x, S] = v(!1), [R, I] = v(), [
|
|
5594
|
+
), f = re(He), { activeId: c, getFields: m, getValues: p, getContext: h, domain: g } = f || {}, { t: y } = ge(), [w, b] = v(!1), [x, S] = v(!1), [R, I] = v(), [V, F] = v(!1), [T, O] = v(!1), [C, _] = v(), [A, N] = v([]), [j, H] = v(!1), U = le([]), [k, Y] = v(), q = le(), [Q, ne] = v(void 0), {
|
|
5594
5595
|
readOnly: B,
|
|
5595
5596
|
relation: E,
|
|
5596
5597
|
context: K,
|
|
@@ -5742,7 +5743,7 @@ const dc = (e) => {
|
|
|
5742
5743
|
}
|
|
5743
5744
|
u(0), S(!1);
|
|
5744
5745
|
}, ye = async () => {
|
|
5745
|
-
const G = te.filter((oe) =>
|
|
5746
|
+
const G = te.filter((oe) => A.includes(oe.id));
|
|
5746
5747
|
S(!0), b(!1), I(void 0);
|
|
5747
5748
|
try {
|
|
5748
5749
|
const oe = G.map((xe) => xe.id), Re = s.filter((xe) => !(oe.includes(xe.id) && xe.id < 0)).map((xe) => oe.includes(xe.id) ? {
|
|
@@ -5868,7 +5869,7 @@ const dc = (e) => {
|
|
|
5868
5869
|
loading: x,
|
|
5869
5870
|
onRowClicked: ((Te = o.get("form")) == null ? void 0 : Te.fields) !== void 0 ? fe : void 0,
|
|
5870
5871
|
showPagination: !1,
|
|
5871
|
-
selectedRowKeys:
|
|
5872
|
+
selectedRowKeys: A,
|
|
5872
5873
|
onRowSelectionChange: N,
|
|
5873
5874
|
sorter: k,
|
|
5874
5875
|
onChangeSort: Y,
|
|
@@ -5912,7 +5913,7 @@ const dc = (e) => {
|
|
|
5912
5913
|
onPreviousItem: ue,
|
|
5913
5914
|
onNextItem: Fe,
|
|
5914
5915
|
onSearchItem: Ke,
|
|
5915
|
-
selectedRowKeys:
|
|
5916
|
+
selectedRowKeys: A,
|
|
5916
5917
|
showCreateButton: ((De = o.get("form")) == null ? void 0 : De.fields) !== void 0,
|
|
5917
5918
|
showToggleButton: o.size > 1
|
|
5918
5919
|
}
|
|
@@ -5927,7 +5928,7 @@ const dc = (e) => {
|
|
|
5927
5928
|
submitMode: "2many",
|
|
5928
5929
|
values: C == null ? void 0 : C.values,
|
|
5929
5930
|
defaultValues: C == null ? void 0 : C.defaultValues,
|
|
5930
|
-
visible:
|
|
5931
|
+
visible: V,
|
|
5931
5932
|
onSubmitSucceed: Ae,
|
|
5932
5933
|
parentContext: { ...h == null ? void 0 : h(), ...K },
|
|
5933
5934
|
onCancel: () => {
|
|
@@ -6264,10 +6265,10 @@ const { useToken: yc } = Be, { TextArea: Pn } = it, wc = (e) => {
|
|
|
6264
6265
|
predefinedExports: y.map((x) => ({
|
|
6265
6266
|
...x,
|
|
6266
6267
|
fields: x.fields.map((S) => {
|
|
6267
|
-
const R = Nn(S.key),
|
|
6268
|
-
return
|
|
6268
|
+
const R = Nn(S.key), V = Ln(S.key, a.current)[R];
|
|
6269
|
+
return V ? {
|
|
6269
6270
|
key: S.key,
|
|
6270
|
-
title:
|
|
6271
|
+
title: V.string
|
|
6271
6272
|
} : {
|
|
6272
6273
|
key: S.key
|
|
6273
6274
|
};
|
|
@@ -6549,8 +6550,8 @@ const { useToken: yc } = Be, { TextArea: Pn } = it, wc = (e) => {
|
|
|
6549
6550
|
i == null || i(x);
|
|
6550
6551
|
};
|
|
6551
6552
|
async function g() {
|
|
6552
|
-
const x = await Et(n), S = `data:${x == null ? void 0 : x.mime};base64,${n}`, R = document.createElement("a"), I = c(a),
|
|
6553
|
-
R.href = S, R.download = I ||
|
|
6553
|
+
const x = await Et(n), S = `data:${x == null ? void 0 : x.mime};base64,${n}`, R = document.createElement("a"), I = c(a), V = c("name");
|
|
6554
|
+
R.href = S, R.download = I || V, R.click();
|
|
6554
6555
|
}
|
|
6555
6556
|
async function y() {
|
|
6556
6557
|
const x = await Et(n);
|
|
@@ -7011,13 +7012,13 @@ function Wc({ toolbar: e }) {
|
|
|
7011
7012
|
formRef: S,
|
|
7012
7013
|
setFormHasChanges: R,
|
|
7013
7014
|
previousView: I,
|
|
7014
|
-
setPreviousView:
|
|
7015
|
+
setPreviousView: V,
|
|
7015
7016
|
goToResourceId: F
|
|
7016
7017
|
} = re(nt), { t: T } = ge(), O = re(
|
|
7017
7018
|
Lt
|
|
7018
7019
|
), { processAction: C } = O || {}, _ = re(
|
|
7019
7020
|
dt
|
|
7020
|
-
), { openRelate:
|
|
7021
|
+
), { openRelate: A, openDefaultActionForModel: N } = _ || {};
|
|
7021
7022
|
function j(E) {
|
|
7022
7023
|
if (s) {
|
|
7023
7024
|
Hc({
|
|
@@ -7178,7 +7179,7 @@ function Wc({ toolbar: e }) {
|
|
|
7178
7179
|
previousView: I,
|
|
7179
7180
|
availableViews: t,
|
|
7180
7181
|
onChangeView: (E) => {
|
|
7181
|
-
|
|
7182
|
+
V == null || V(n), R == null || R(!1), i == null || i(E);
|
|
7182
7183
|
},
|
|
7183
7184
|
disabled: ne,
|
|
7184
7185
|
formHasChanges: s
|
|
@@ -7265,7 +7266,7 @@ function Wc({ toolbar: e }) {
|
|
|
7265
7266
|
onItemClick: async (E) => {
|
|
7266
7267
|
!E || !(await _t({
|
|
7267
7268
|
onFormSave: o
|
|
7268
|
-
})).succeed ||
|
|
7269
|
+
})).succeed || A({
|
|
7269
7270
|
relateData: E,
|
|
7270
7271
|
values: S.current.getValues(),
|
|
7271
7272
|
fields: S.current.getFields(),
|
|
@@ -7686,13 +7687,13 @@ const Qc = (e) => {
|
|
|
7686
7687
|
setTotalItems: S = void 0,
|
|
7687
7688
|
setSearchTreeNameSearch: R = void 0,
|
|
7688
7689
|
setTreeIsLoading: I = void 0,
|
|
7689
|
-
limit:
|
|
7690
|
+
limit: V,
|
|
7690
7691
|
setLimit: F,
|
|
7691
7692
|
searchParams: T,
|
|
7692
7693
|
searchValues: O,
|
|
7693
7694
|
setSearchValues: C,
|
|
7694
7695
|
currentView: _
|
|
7695
|
-
} = u || {}, [
|
|
7696
|
+
} = u || {}, [A, N] = v(!0);
|
|
7696
7697
|
me(() => {
|
|
7697
7698
|
var q;
|
|
7698
7699
|
(q = d.current) == null || q.refresh();
|
|
@@ -7719,7 +7720,7 @@ const Qc = (e) => {
|
|
|
7719
7720
|
domain: s,
|
|
7720
7721
|
currentId: m,
|
|
7721
7722
|
setActionViewTotalItems: S,
|
|
7722
|
-
limit:
|
|
7723
|
+
limit: V,
|
|
7723
7724
|
setLimit: F
|
|
7724
7725
|
});
|
|
7725
7726
|
return !n || !t ? null : /* @__PURE__ */ D(ee, { children: [
|
|
@@ -7739,7 +7740,7 @@ const Qc = (e) => {
|
|
|
7739
7740
|
a.search_fields,
|
|
7740
7741
|
l.search_fields
|
|
7741
7742
|
]),
|
|
7742
|
-
limit:
|
|
7743
|
+
limit: V,
|
|
7743
7744
|
onClear: j,
|
|
7744
7745
|
offset: k,
|
|
7745
7746
|
isSearching: H,
|
|
@@ -7760,8 +7761,8 @@ const Qc = (e) => {
|
|
|
7760
7761
|
model: i,
|
|
7761
7762
|
context: o,
|
|
7762
7763
|
domain: jt(T || [], s),
|
|
7763
|
-
limit:
|
|
7764
|
-
manualIds:
|
|
7764
|
+
limit: A ? V : void 0,
|
|
7765
|
+
manualIds: A ? p == null ? void 0 : p.map((q) => q.id) : void 0
|
|
7765
7766
|
}
|
|
7766
7767
|
)
|
|
7767
7768
|
] });
|
|
@@ -8194,12 +8195,12 @@ function ad(e) {
|
|
|
8194
8195
|
previousView: S,
|
|
8195
8196
|
results: R,
|
|
8196
8197
|
limit: I,
|
|
8197
|
-
totalItems:
|
|
8198
|
+
totalItems: V
|
|
8198
8199
|
} = re(nt), { parentContext: F = {}, treeExpandable: T, toolbar: O } = e, C = Bo(
|
|
8199
8200
|
vn.FEATURE_ADVANCED_EXPORT
|
|
8200
|
-
), { t: _ } = ge(),
|
|
8201
|
+
), { t: _ } = ge(), A = re(
|
|
8201
8202
|
Lt
|
|
8202
|
-
), { processAction: N } =
|
|
8203
|
+
), { processAction: N } = A || {}, [j, H] = v(!1), U = w !== void 0 && w.trim().length > 0;
|
|
8203
8204
|
function k() {
|
|
8204
8205
|
Yt({
|
|
8205
8206
|
confirmMessage: _("confirmRemove"),
|
|
@@ -8470,7 +8471,7 @@ function ad(e) {
|
|
|
8470
8471
|
p || []
|
|
8471
8472
|
),
|
|
8472
8473
|
limit: I,
|
|
8473
|
-
totalRegisters:
|
|
8474
|
+
totalRegisters: V || 0,
|
|
8474
8475
|
selectedRegistersToExport: o,
|
|
8475
8476
|
visibleRegisters: (R == null ? void 0 : R.length) || 0,
|
|
8476
8477
|
context: F
|
|
@@ -8660,9 +8661,9 @@ function hd(e, t) {
|
|
|
8660
8661
|
action_type: h,
|
|
8661
8662
|
treeExpandable: g = !1,
|
|
8662
8663
|
limit: y
|
|
8663
|
-
} = e, [w, b] = v(), [x, S] = v([]), [R, I] = v(!0),
|
|
8664
|
-
|
|
8665
|
-
), [O, C] = v([]), [_,
|
|
8664
|
+
} = e, [w, b] = v(), [x, S] = v([]), [R, I] = v(!0), V = m || void 0, [F, T] = v(
|
|
8665
|
+
V
|
|
8666
|
+
), [O, C] = v([]), [_, A] = v(), [N, j] = v([]), [H, U] = v(), [k, Y] = v(0), [q, Q] = v(!1), [ne, B] = v(!1), [E, K] = v(), { t: L } = ge(), ce = le(), J = le(), te = re(
|
|
8666
8667
|
dt
|
|
8667
8668
|
), {
|
|
8668
8669
|
setCurrentView: ve,
|
|
@@ -8772,7 +8773,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8772
8773
|
};
|
|
8773
8774
|
l({ tabKey: d, canWeClose: Le }), me(() => {
|
|
8774
8775
|
const W = x.find((Ae) => Ae.type === "tree"), ye = x.find((Ae) => u.id ? Ae.type === u.type && Ae.view_id === u.id : Ae.type === u.type);
|
|
8775
|
-
ue(ye || W), m ? z == null || z(
|
|
8776
|
+
ue(ye || W), m ? z == null || z(V) : (Me(void 0), A(void 0)), Fe();
|
|
8776
8777
|
}, [i, s, m]), me(() => {
|
|
8777
8778
|
if (Se === d) {
|
|
8778
8779
|
z == null || z(F);
|
|
@@ -8844,7 +8845,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8844
8845
|
forcedValues: c,
|
|
8845
8846
|
results: N,
|
|
8846
8847
|
setResults: j,
|
|
8847
|
-
setCurrentItemIndex:
|
|
8848
|
+
setCurrentItemIndex: A
|
|
8848
8849
|
},
|
|
8849
8850
|
`${W.type}-${W.view_id}`
|
|
8850
8851
|
);
|
|
@@ -8863,7 +8864,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8863
8864
|
searchTreeNameSearch: E,
|
|
8864
8865
|
availableViews: x,
|
|
8865
8866
|
results: N,
|
|
8866
|
-
setCurrentItemIndex:
|
|
8867
|
+
setCurrentItemIndex: A,
|
|
8867
8868
|
setCurrentId: Me,
|
|
8868
8869
|
setCurrentView: ue
|
|
8869
8870
|
},
|
|
@@ -8918,7 +8919,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8918
8919
|
onNewClicked: Ke,
|
|
8919
8920
|
currentId: F,
|
|
8920
8921
|
setCurrentId: Me,
|
|
8921
|
-
setCurrentItemIndex:
|
|
8922
|
+
setCurrentItemIndex: A,
|
|
8922
8923
|
currentItemIndex: _,
|
|
8923
8924
|
results: N,
|
|
8924
8925
|
setResults: j,
|
|
@@ -9098,10 +9099,10 @@ function Cd(e) {
|
|
|
9098
9099
|
domain: s = [],
|
|
9099
9100
|
visible: a = !0,
|
|
9100
9101
|
parentContext: l = {}
|
|
9101
|
-
} = e, [d, u] = v(!1), [f, c] = v(!1), [m, p] = v(), [h, g] = v(), [y, w] = v(), [b, x] = v(1), [S, R] = v(0), I = le(St),
|
|
9102
|
+
} = e, [d, u] = v(!1), [f, c] = v(!1), [m, p] = v(), [h, g] = v(), [y, w] = v(), [b, x] = v(1), [S, R] = v(0), I = le(St), V = le([]), [F, T] = v(0), [O, C] = v([]), [_, A] = v(void 0), [N, j] = v(), [H, U] = v(), [k, Y] = v(), [q, Q] = v(!1), ne = le([]), B = (z) => {
|
|
9102
9103
|
Q(!0), x(z), R((z - 1) * I.current);
|
|
9103
9104
|
}, E = async () => {
|
|
9104
|
-
const z = ne.current.length > 0 ? ne.current : s, ie = jt(
|
|
9105
|
+
const z = ne.current.length > 0 ? ne.current : s, ie = jt(V.current, z), { colors: Se } = At(h), { totalItems: Ee, results: ke, attrsEvaluated: Me } = await P.getHandler().searchForTree({
|
|
9105
9106
|
params: ie,
|
|
9106
9107
|
limit: I.current,
|
|
9107
9108
|
offset: S,
|
|
@@ -9110,7 +9111,7 @@ function Cd(e) {
|
|
|
9110
9111
|
context: l,
|
|
9111
9112
|
attrs: Se && { colors: Se }
|
|
9112
9113
|
});
|
|
9113
|
-
|
|
9114
|
+
A(nn(Me));
|
|
9114
9115
|
const ue = Dt({
|
|
9115
9116
|
resultsToSort: ke,
|
|
9116
9117
|
sorter: N,
|
|
@@ -9318,9 +9319,9 @@ function _d(e, t) {
|
|
|
9318
9319
|
async function R() {
|
|
9319
9320
|
u(!0), m(!0), c(void 0);
|
|
9320
9321
|
try {
|
|
9321
|
-
const _ = await I(),
|
|
9322
|
+
const _ = await I(), A = await F(_), N = _.fields[On].relation, j = A[On].items;
|
|
9322
9323
|
y.current = _.fields;
|
|
9323
|
-
const H = await
|
|
9324
|
+
const H = await V({
|
|
9324
9325
|
items: j,
|
|
9325
9326
|
model: N,
|
|
9326
9327
|
context: i
|
|
@@ -9337,13 +9338,13 @@ function _d(e, t) {
|
|
|
9337
9338
|
context: i
|
|
9338
9339
|
});
|
|
9339
9340
|
}
|
|
9340
|
-
async function
|
|
9341
|
+
async function V({
|
|
9341
9342
|
items: _,
|
|
9342
|
-
model:
|
|
9343
|
+
model: A,
|
|
9343
9344
|
context: N
|
|
9344
9345
|
}) {
|
|
9345
9346
|
g.current = (await w({
|
|
9346
|
-
model:
|
|
9347
|
+
model: A,
|
|
9347
9348
|
type: "form",
|
|
9348
9349
|
context: N
|
|
9349
9350
|
})).fields;
|
|
@@ -9354,7 +9355,7 @@ function _d(e, t) {
|
|
|
9354
9355
|
formView: {
|
|
9355
9356
|
fields: g.current
|
|
9356
9357
|
},
|
|
9357
|
-
model:
|
|
9358
|
+
model: A,
|
|
9358
9359
|
items: _,
|
|
9359
9360
|
context: N,
|
|
9360
9361
|
currentView: "form"
|
|
@@ -9370,7 +9371,7 @@ function _d(e, t) {
|
|
|
9370
9371
|
}))[0];
|
|
9371
9372
|
}
|
|
9372
9373
|
async function T(_) {
|
|
9373
|
-
const
|
|
9374
|
+
const A = [];
|
|
9374
9375
|
for (const j of _) {
|
|
9375
9376
|
const { values: H } = j;
|
|
9376
9377
|
if (H.action_id && H.action_id.length > 0) {
|
|
@@ -9378,15 +9379,15 @@ function _d(e, t) {
|
|
|
9378
9379
|
actionId: U,
|
|
9379
9380
|
rootContext: i
|
|
9380
9381
|
}).then((Y) => ({ ...j, actionData: Y }));
|
|
9381
|
-
|
|
9382
|
+
A.push(k);
|
|
9382
9383
|
}
|
|
9383
9384
|
}
|
|
9384
|
-
return await Promise.all(
|
|
9385
|
+
return await Promise.all(A);
|
|
9385
9386
|
}
|
|
9386
9387
|
async function O(_) {
|
|
9387
9388
|
if (!h)
|
|
9388
9389
|
return;
|
|
9389
|
-
const
|
|
9390
|
+
const A = _.filter((U) => {
|
|
9390
9391
|
const k = a.find(
|
|
9391
9392
|
(q) => q.id === U.id
|
|
9392
9393
|
);
|
|
@@ -9400,11 +9401,11 @@ function _d(e, t) {
|
|
|
9400
9401
|
};
|
|
9401
9402
|
return JSON.stringify(U) !== JSON.stringify(Y);
|
|
9402
9403
|
});
|
|
9403
|
-
if (
|
|
9404
|
+
if (A.length === 0)
|
|
9404
9405
|
return;
|
|
9405
|
-
const j = a.filter((U) =>
|
|
9406
|
+
const j = a.filter((U) => A.map((k) => k.id).includes(U.id)).map((U) => {
|
|
9406
9407
|
const k = {
|
|
9407
|
-
...
|
|
9408
|
+
...A.find((Y) => Y.id === U.id)
|
|
9408
9409
|
};
|
|
9409
9410
|
return delete k.id, { ...U }, {
|
|
9410
9411
|
...U,
|
|
@@ -9429,7 +9430,7 @@ function _d(e, t) {
|
|
|
9429
9430
|
async function C() {
|
|
9430
9431
|
p(s);
|
|
9431
9432
|
}
|
|
9432
|
-
return d ? /* @__PURE__ */ r(gt, {}) : f ? /* @__PURE__ */ r(Ze, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(yd, { onPositionItemsChanged: O, children: a.map((_,
|
|
9433
|
+
return d ? /* @__PURE__ */ r(gt, {}) : f ? /* @__PURE__ */ r(Ze, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(yd, { onPositionItemsChanged: O, children: a.map((_, A) => {
|
|
9433
9434
|
const { actionData: N, values: j } = _, { position: H, id: U } = j, {
|
|
9434
9435
|
actionId: k,
|
|
9435
9436
|
actionType: Y,
|
|
@@ -9446,7 +9447,7 @@ function _d(e, t) {
|
|
|
9446
9447
|
try {
|
|
9447
9448
|
J = JSON.parse(H.replace(/'/g, '"'));
|
|
9448
9449
|
} catch {
|
|
9449
|
-
J = { x:
|
|
9450
|
+
J = { x: A * 2, y: 0, w: 2, h: 3 };
|
|
9450
9451
|
}
|
|
9451
9452
|
let te = null;
|
|
9452
9453
|
if ((L == null ? void 0 : L.type) === "graph") {
|
|
@@ -9595,8 +9596,8 @@ const Od = ht(_d), Id = (e) => {
|
|
|
9595
9596
|
context: { ...b == null ? void 0 : b(), ...p }
|
|
9596
9597
|
})).map((C) => {
|
|
9597
9598
|
const _ = C[g];
|
|
9598
|
-
let
|
|
9599
|
-
return Array.isArray(_) && (
|
|
9599
|
+
let A = _;
|
|
9600
|
+
return Array.isArray(_) && (A = _[1]), { label: A, value: C.id };
|
|
9600
9601
|
});
|
|
9601
9602
|
l(O);
|
|
9602
9603
|
} catch (T) {
|
|
@@ -9608,10 +9609,10 @@ const Od = ht(_d), Id = (e) => {
|
|
|
9608
9609
|
return /* @__PURE__ */ r(Ze, { className: "mt-10", message: d, type: "error", banner: !0 });
|
|
9609
9610
|
}
|
|
9610
9611
|
const R = () => {
|
|
9611
|
-
|
|
9612
|
+
V(a.map((F) => F.value));
|
|
9612
9613
|
}, I = () => {
|
|
9613
|
-
|
|
9614
|
-
},
|
|
9614
|
+
V([]);
|
|
9615
|
+
}, V = (F) => {
|
|
9615
9616
|
const T = o.map((C) => F.includes(C.id) ? C.operation == "pendingRemove" ? {
|
|
9616
9617
|
...C,
|
|
9617
9618
|
operation: "original"
|
|
@@ -9626,7 +9627,7 @@ const Od = ht(_d), Id = (e) => {
|
|
|
9626
9627
|
{
|
|
9627
9628
|
value: a.length ? s : [],
|
|
9628
9629
|
disabled: h,
|
|
9629
|
-
onChange:
|
|
9630
|
+
onChange: V,
|
|
9630
9631
|
style: { width: "100%" },
|
|
9631
9632
|
children: /* @__PURE__ */ r(Oe, { children: a.map((F) => /* @__PURE__ */ r(he, { span: Math.floor(24 / y), children: /* @__PURE__ */ r(Bt, { value: F.value, children: F.label }) })) })
|
|
9632
9633
|
}
|
|
@@ -9783,7 +9784,7 @@ function Xd(e, t) {
|
|
|
9783
9784
|
action: S,
|
|
9784
9785
|
values: R,
|
|
9785
9786
|
forced_values: I,
|
|
9786
|
-
initialViewType:
|
|
9787
|
+
initialViewType: V,
|
|
9787
9788
|
res_id: F,
|
|
9788
9789
|
domain: T = []
|
|
9789
9790
|
}) {
|
|
@@ -9795,7 +9796,7 @@ function Xd(e, t) {
|
|
|
9795
9796
|
Qe("Action type not supported");
|
|
9796
9797
|
return;
|
|
9797
9798
|
}
|
|
9798
|
-
const [C, _] = S.split(","),
|
|
9799
|
+
const [C, _] = S.split(","), A = parseInt(_), N = xt({
|
|
9799
9800
|
context: O.context,
|
|
9800
9801
|
values: a,
|
|
9801
9802
|
fields: {}
|
|
@@ -9828,9 +9829,9 @@ function Xd(e, t) {
|
|
|
9828
9829
|
}
|
|
9829
9830
|
}
|
|
9830
9831
|
let E;
|
|
9831
|
-
if (
|
|
9832
|
+
if (V) {
|
|
9832
9833
|
const [K, L] = B.find(
|
|
9833
|
-
([ce, J]) => J ===
|
|
9834
|
+
([ce, J]) => J === V
|
|
9834
9835
|
);
|
|
9835
9836
|
E = { id: K, type: L };
|
|
9836
9837
|
} else {
|
|
@@ -9846,7 +9847,7 @@ function Xd(e, t) {
|
|
|
9846
9847
|
target: Y,
|
|
9847
9848
|
initialView: E,
|
|
9848
9849
|
action_type: C,
|
|
9849
|
-
action_id:
|
|
9850
|
+
action_id: A,
|
|
9850
9851
|
values: R,
|
|
9851
9852
|
forced_values: I,
|
|
9852
9853
|
res_id: F,
|
|
@@ -9858,7 +9859,7 @@ function Xd(e, t) {
|
|
|
9858
9859
|
title: S,
|
|
9859
9860
|
content: R,
|
|
9860
9861
|
key: I,
|
|
9861
|
-
action:
|
|
9862
|
+
action: V
|
|
9862
9863
|
}) {
|
|
9863
9864
|
let F = [...d];
|
|
9864
9865
|
d.length === 1 && d[0].key === "welcome" && (F = [...d.filter((T) => T.key !== "welcome")]), u([
|
|
@@ -9868,7 +9869,7 @@ function Xd(e, t) {
|
|
|
9868
9869
|
key: I,
|
|
9869
9870
|
closable: !0,
|
|
9870
9871
|
content: R,
|
|
9871
|
-
action:
|
|
9872
|
+
action: V
|
|
9872
9873
|
}
|
|
9873
9874
|
]), o(I);
|
|
9874
9875
|
}
|
|
@@ -9876,7 +9877,7 @@ function Xd(e, t) {
|
|
|
9876
9877
|
relateData: S,
|
|
9877
9878
|
fields: R,
|
|
9878
9879
|
values: I,
|
|
9879
|
-
action_id:
|
|
9880
|
+
action_id: V,
|
|
9880
9881
|
action_type: F
|
|
9881
9882
|
}) {
|
|
9882
9883
|
const {
|
|
@@ -9884,7 +9885,7 @@ function Xd(e, t) {
|
|
|
9884
9885
|
context: O,
|
|
9885
9886
|
domain: C,
|
|
9886
9887
|
views: _,
|
|
9887
|
-
target:
|
|
9888
|
+
target: A,
|
|
9888
9889
|
string: N,
|
|
9889
9890
|
limit: j
|
|
9890
9891
|
} = S, [H, U] = _[0], k = { id: H, type: U }, Y = xt({
|
|
@@ -9902,13 +9903,13 @@ function Xd(e, t) {
|
|
|
9902
9903
|
}) : [];
|
|
9903
9904
|
x({
|
|
9904
9905
|
model: T,
|
|
9905
|
-
target:
|
|
9906
|
+
target: A,
|
|
9906
9907
|
views: _,
|
|
9907
9908
|
context: { ...l, ...Y },
|
|
9908
9909
|
domain: q,
|
|
9909
9910
|
title: N,
|
|
9910
9911
|
initialView: k,
|
|
9911
|
-
action_id:
|
|
9912
|
+
action_id: V,
|
|
9912
9913
|
action_type: F,
|
|
9913
9914
|
limit: j
|
|
9914
9915
|
});
|
|
@@ -9917,7 +9918,7 @@ function Xd(e, t) {
|
|
|
9917
9918
|
const {
|
|
9918
9919
|
action_id: R,
|
|
9919
9920
|
action_type: I,
|
|
9920
|
-
res_id:
|
|
9921
|
+
res_id: V,
|
|
9921
9922
|
view_id: F,
|
|
9922
9923
|
overrideUnsettedLimit: T = !1
|
|
9923
9924
|
} = S, O = `${I},${R}`, C = await P.getHandler().getActionData({
|
|
@@ -9927,7 +9928,7 @@ function Xd(e, t) {
|
|
|
9927
9928
|
context: C.context,
|
|
9928
9929
|
values: a,
|
|
9929
9930
|
fields: {}
|
|
9930
|
-
}),
|
|
9931
|
+
}), A = C.domain ? await P.getHandler().evalDomain({
|
|
9931
9932
|
domain: C.domain,
|
|
9932
9933
|
values: a,
|
|
9933
9934
|
context: { ...l, ..._ }
|
|
@@ -9963,7 +9964,7 @@ function Xd(e, t) {
|
|
|
9963
9964
|
[ne, B] = Q.find((K) => K[0] === void 0 ? !1 : K[0] === F);
|
|
9964
9965
|
const E = { id: ne, type: B };
|
|
9965
9966
|
x({
|
|
9966
|
-
domain:
|
|
9967
|
+
domain: A,
|
|
9967
9968
|
context: { ...l, ..._ },
|
|
9968
9969
|
model: N,
|
|
9969
9970
|
views: Q,
|
|
@@ -9972,7 +9973,7 @@ function Xd(e, t) {
|
|
|
9972
9973
|
initialView: E,
|
|
9973
9974
|
action_id: R,
|
|
9974
9975
|
action_type: I,
|
|
9975
|
-
res_id:
|
|
9976
|
+
res_id: V,
|
|
9976
9977
|
treeExpandable: q,
|
|
9977
9978
|
limit: T && (Y === 0 || Y === !1) ? St : Y
|
|
9978
9979
|
});
|
|
@@ -9981,7 +9982,7 @@ function Xd(e, t) {
|
|
|
9981
9982
|
model: S,
|
|
9982
9983
|
values: R,
|
|
9983
9984
|
forced_values: I,
|
|
9984
|
-
initialViewType:
|
|
9985
|
+
initialViewType: V,
|
|
9985
9986
|
res_id: F,
|
|
9986
9987
|
domain: T
|
|
9987
9988
|
}) {
|
|
@@ -9990,7 +9991,7 @@ function Xd(e, t) {
|
|
|
9990
9991
|
action: O,
|
|
9991
9992
|
values: R,
|
|
9992
9993
|
forced_values: I,
|
|
9993
|
-
initialViewType:
|
|
9994
|
+
initialViewType: V,
|
|
9994
9995
|
res_id: F,
|
|
9995
9996
|
domain: T
|
|
9996
9997
|
});
|
|
@@ -9999,13 +10000,13 @@ function Xd(e, t) {
|
|
|
9999
10000
|
domain: S,
|
|
10000
10001
|
context: R,
|
|
10001
10002
|
model: I,
|
|
10002
|
-
views:
|
|
10003
|
+
views: V,
|
|
10003
10004
|
title: F,
|
|
10004
10005
|
target: T,
|
|
10005
10006
|
initialView: O,
|
|
10006
10007
|
action_id: C,
|
|
10007
10008
|
action_type: _,
|
|
10008
|
-
res_id:
|
|
10009
|
+
res_id: A,
|
|
10009
10010
|
values: N,
|
|
10010
10011
|
forced_values: j,
|
|
10011
10012
|
treeExpandable: H = !1,
|
|
@@ -10027,7 +10028,7 @@ function Xd(e, t) {
|
|
|
10027
10028
|
actionData: {
|
|
10028
10029
|
action_id: C,
|
|
10029
10030
|
action_type: _,
|
|
10030
|
-
res_id:
|
|
10031
|
+
res_id: A,
|
|
10031
10032
|
view_id: Y.view_id
|
|
10032
10033
|
}
|
|
10033
10034
|
});
|
|
@@ -10046,13 +10047,13 @@ function Xd(e, t) {
|
|
|
10046
10047
|
action_type: _,
|
|
10047
10048
|
tabKey: k,
|
|
10048
10049
|
title: F,
|
|
10049
|
-
views:
|
|
10050
|
+
views: V,
|
|
10050
10051
|
model: I,
|
|
10051
10052
|
context: { ...l, ...R },
|
|
10052
10053
|
domain: S,
|
|
10053
10054
|
setCanWeClose: p,
|
|
10054
10055
|
initialView: Y,
|
|
10055
|
-
res_id:
|
|
10056
|
+
res_id: A,
|
|
10056
10057
|
formDefaultValues: N,
|
|
10057
10058
|
formForcedValues: j,
|
|
10058
10059
|
treeExpandable: H,
|
|
@@ -10217,12 +10218,12 @@ const { useToken: nu } = Be, Yu = (e) => {
|
|
|
10217
10218
|
l(!1);
|
|
10218
10219
|
return;
|
|
10219
10220
|
}
|
|
10220
|
-
const
|
|
10221
|
+
const A = w.view_id;
|
|
10221
10222
|
let N = !1;
|
|
10222
10223
|
return w.type === "form" && (N = b || !1), {
|
|
10223
10224
|
action_id: C,
|
|
10224
10225
|
action_type: _,
|
|
10225
|
-
view_id:
|
|
10226
|
+
view_id: A,
|
|
10226
10227
|
res_id: N
|
|
10227
10228
|
};
|
|
10228
10229
|
}, [b, w]), R = _e(() => {
|
|
@@ -10230,13 +10231,13 @@ const { useToken: nu } = Be, Yu = (e) => {
|
|
|
10230
10231
|
return JSON.stringify(S);
|
|
10231
10232
|
}, [S]);
|
|
10232
10233
|
me(() => {
|
|
10233
|
-
|
|
10234
|
+
V();
|
|
10234
10235
|
}, [R]);
|
|
10235
10236
|
function I(C) {
|
|
10236
10237
|
const _ = C;
|
|
10237
10238
|
(_ == null ? void 0 : _.action_type) !== "ir.actions.wizard" && h(_);
|
|
10238
10239
|
}
|
|
10239
|
-
const
|
|
10240
|
+
const V = de(async () => {
|
|
10240
10241
|
if (!S)
|
|
10241
10242
|
return;
|
|
10242
10243
|
const C = await n(S);
|
|
@@ -10255,11 +10256,11 @@ const { useToken: nu } = Be, Yu = (e) => {
|
|
|
10255
10256
|
}
|
|
10256
10257
|
] : [
|
|
10257
10258
|
{
|
|
10258
|
-
items: C.map((
|
|
10259
|
-
...
|
|
10260
|
-
id:
|
|
10261
|
-
name:
|
|
10262
|
-
icon:
|
|
10259
|
+
items: C.map((A) => ({
|
|
10260
|
+
...A,
|
|
10261
|
+
id: A.id,
|
|
10262
|
+
name: A.name,
|
|
10263
|
+
icon: A.view_type === "tree" ? /* @__PURE__ */ r(Xn, {}) : /* @__PURE__ */ r(Kt, {})
|
|
10263
10264
|
}))
|
|
10264
10265
|
}
|
|
10265
10266
|
];
|
|
@@ -10269,15 +10270,15 @@ const { useToken: nu } = Be, Yu = (e) => {
|
|
|
10269
10270
|
else {
|
|
10270
10271
|
if (!w)
|
|
10271
10272
|
return;
|
|
10272
|
-
const C = g.find((H) => H.key === y), { id: _, type:
|
|
10273
|
+
const C = g.find((H) => H.key === y), { id: _, type: A } = (C == null ? void 0 : C.action) || {}, N = w.view_id;
|
|
10273
10274
|
let j = !1;
|
|
10274
|
-
if (!_ || !
|
|
10275
|
+
if (!_ || !A) {
|
|
10275
10276
|
l(!1);
|
|
10276
10277
|
return;
|
|
10277
10278
|
}
|
|
10278
10279
|
w.type === "form" && (j = b || !1), await i({
|
|
10279
10280
|
action_id: _,
|
|
10280
|
-
action_type:
|
|
10281
|
+
action_type: A,
|
|
10281
10282
|
view_id: N,
|
|
10282
10283
|
res_id: j
|
|
10283
10284
|
});
|