@gisce/react-ooui 1.2.8-rc.0 → 1.2.8
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/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/hooks/useSearch.d.ts.map +1 -1
- package/dist/react-ooui.es.js +215 -221
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +9 -9
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/TreeActionBar.tsx +1 -8
- package/src/hooks/useSearch.ts +0 -1
- package/src/widgets/views/SearchTree.tsx +1 -1
- package/src/widgets/views/Tree.tsx +12 -12
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import qe, { useContext as Y, useState as T, useEffect as ge, useRef as me, useCallback as
|
|
2
|
-
import { Tooltip as ht, theme as $e, Typography as sn, Form as it, Row as Se, Col as ce, Modal as We, Button as Ie, Dropdown as Ht, Menu as Le, Spin as
|
|
3
|
-
import { Label as
|
|
1
|
+
import qe, { useContext as Y, useState as T, useEffect as ge, useRef as me, useCallback as Re, forwardRef as vt, useImperativeHandle as wt } from "react";
|
|
2
|
+
import { Tooltip as ht, theme as $e, Typography as sn, Form as it, Row as Se, Col as ce, Modal as We, Button as Ie, Dropdown as Ht, Menu as Le, Spin as Me, Divider as an, Space as je, Input as Qe, Select as bt, Checkbox as Lt, Alert as ze, Timeline as Qn, Statistic as zo, Card as Jo, Tag as Or, message as bn, DatePicker as Rn, TimePicker as _r, InputNumber as Mn, Progress as Zo, Avatar as Xo, Pagination as Qo, Tabs as Ir, Popover as ei, Radio as er, Switch as ti, Steps as tr, Layout as ni } from "antd";
|
|
3
|
+
import { Label as Dt, Field as On, Tree as Dr, Reference as ri, Selection as En, Many2one as Vr, Boolean as oi, Container as ii, parseContext as yt, Form as Ar, Integer as _n, SearchFieldTypes as ft, SearchFilter as si, transformDomainForChildWidget as kr, graphProcessor as Rr, parseGraph as $n, graphFieldUtils as ai } from "@gisce/ooui";
|
|
4
4
|
import * as nr from "@ant-design/icons";
|
|
5
|
-
import Mr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as pt, LoadingOutlined as et, DownOutlined as
|
|
5
|
+
import Mr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as pt, LoadingOutlined as et, DownOutlined as Vt, WarningOutlined as $r, CloseOutlined as Bt, CheckOutlined as At, TranslationOutlined as Lr, FolderOpenOutlined as Ln, DownloadOutlined as Nn, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Pr, UpOutlined as li, SearchOutlined as Hn, RightCircleOutlined as ci, ThunderboltOutlined as Bn, PrinterOutlined as jn, EnterOutlined as Hr, PlusSquareOutlined as di, MinusSquareOutlined as ui, FileAddOutlined as ln, AlignLeftOutlined as fi, ApiOutlined as mi, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as jr, EyeOutlined as hi, FormOutlined as Nt, TableOutlined as Yn, AreaChartOutlined as pi, CalendarOutlined as gi, LinkOutlined as Kr, SaveOutlined as yi, CopyOutlined as Wn, InfoCircleOutlined as Yr, ReloadOutlined as cn, EditOutlined as Wr, FilterOutlined as Ur, CloseCircleFilled as vi, BorderOuterOutlined as wi, SettingOutlined as bi, ExportOutlined as xi } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Un } from "interweave";
|
|
7
7
|
import { jsxs as H, jsx as n, Fragment as X } from "react/jsx-runtime";
|
|
8
8
|
import * as rr from "@tabler/icons-react";
|
|
@@ -11,7 +11,7 @@ import jt from "styled-components";
|
|
|
11
11
|
import Gn from "react-measure";
|
|
12
12
|
import In from "antd/lib/typography/Title";
|
|
13
13
|
import { Line as Si, Column as Ti, Pie as Fi } from "@ant-design/plots";
|
|
14
|
-
import
|
|
14
|
+
import xt from "use-deep-compare-effect";
|
|
15
15
|
import { Table as Oi } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as _i } from "file-type-buffer-browser";
|
|
17
17
|
import { isPresetStatusColor as Ii } from "antd/lib/_util/colors";
|
|
@@ -382,7 +382,7 @@ function ve({
|
|
|
382
382
|
if (!o)
|
|
383
383
|
return p();
|
|
384
384
|
const h = /* @__PURE__ */ n(dn, {
|
|
385
|
-
ooui: new
|
|
385
|
+
ooui: new Dt({
|
|
386
386
|
name: c + "_label",
|
|
387
387
|
string: f,
|
|
388
388
|
help: d,
|
|
@@ -704,7 +704,7 @@ const qr = (e) => {
|
|
|
704
704
|
children: /* @__PURE__ */ H(Ht.Button, {
|
|
705
705
|
disabled: !a || v,
|
|
706
706
|
onClick: A,
|
|
707
|
-
icon: /* @__PURE__ */ n(
|
|
707
|
+
icon: /* @__PURE__ */ n(Vt, {}),
|
|
708
708
|
type: f ? "primary" : void 0,
|
|
709
709
|
overlay: /* @__PURE__ */ n(Xi, {
|
|
710
710
|
ooui: i,
|
|
@@ -944,7 +944,7 @@ const zr = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function M() {
|
|
947
|
-
return d ? /* @__PURE__ */ n(
|
|
947
|
+
return d ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ H(X, {
|
|
948
948
|
children: [A(), /* @__PURE__ */ n(an, {}), /* @__PURE__ */ n(Se, {
|
|
949
949
|
justify: "end",
|
|
950
950
|
children: /* @__PURE__ */ H(je, {
|
|
@@ -954,7 +954,7 @@ const zr = (e) => {
|
|
|
954
954
|
disabled: v,
|
|
955
955
|
children: u("cancel")
|
|
956
956
|
}), /* @__PURE__ */ n(Ie, {
|
|
957
|
-
icon: v ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(
|
|
957
|
+
icon: v ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(At, {}),
|
|
958
958
|
disabled: v,
|
|
959
959
|
onClick: I,
|
|
960
960
|
style: {
|
|
@@ -1120,7 +1120,7 @@ const {
|
|
|
1120
1120
|
defaultSeed: ss
|
|
1121
1121
|
} = $e, as = is(ss), {
|
|
1122
1122
|
Option: ls
|
|
1123
|
-
} =
|
|
1123
|
+
} = bt, Xr = (e) => {
|
|
1124
1124
|
const {
|
|
1125
1125
|
ooui: t
|
|
1126
1126
|
} = e, {
|
|
@@ -1150,7 +1150,7 @@ const {
|
|
|
1150
1150
|
children: m
|
|
1151
1151
|
}, d);
|
|
1152
1152
|
});
|
|
1153
|
-
return /* @__PURE__ */ n(a && !s ? cs :
|
|
1153
|
+
return /* @__PURE__ */ n(a && !s ? cs : bt, {
|
|
1154
1154
|
disabled: s,
|
|
1155
1155
|
onChange: r,
|
|
1156
1156
|
value: i,
|
|
@@ -1159,7 +1159,7 @@ const {
|
|
|
1159
1159
|
showSearch: !0,
|
|
1160
1160
|
children: u
|
|
1161
1161
|
});
|
|
1162
|
-
}, cs = jt(
|
|
1162
|
+
}, cs = jt(bt)`
|
|
1163
1163
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1164
1164
|
background-color: ${as.colorPrimaryBg};
|
|
1165
1165
|
}
|
|
@@ -1222,16 +1222,16 @@ var Os = Fs, _s = Os, Is = /^\s+/;
|
|
|
1222
1222
|
function Ds(e) {
|
|
1223
1223
|
return e && e.slice(0, _s(e) + 1).replace(Is, "");
|
|
1224
1224
|
}
|
|
1225
|
-
var Vs = Ds, As = to, ks = As.Symbol, no = ks, lr = no, ro = Object.prototype, Rs = ro.hasOwnProperty, Ms = ro.toString,
|
|
1225
|
+
var Vs = Ds, As = to, ks = As.Symbol, no = ks, lr = no, ro = Object.prototype, Rs = ro.hasOwnProperty, Ms = ro.toString, Mt = lr ? lr.toStringTag : void 0;
|
|
1226
1226
|
function Es(e) {
|
|
1227
|
-
var t = Rs.call(e,
|
|
1227
|
+
var t = Rs.call(e, Mt), r = e[Mt];
|
|
1228
1228
|
try {
|
|
1229
|
-
e[
|
|
1229
|
+
e[Mt] = void 0;
|
|
1230
1230
|
var i = !0;
|
|
1231
1231
|
} catch {
|
|
1232
1232
|
}
|
|
1233
1233
|
var o = Ms.call(e);
|
|
1234
|
-
return i && (t ? e[
|
|
1234
|
+
return i && (t ? e[Mt] = r : delete e[Mt]), o;
|
|
1235
1235
|
}
|
|
1236
1236
|
var $s = Es, Ls = Object.prototype, Ns = Ls.toString;
|
|
1237
1237
|
function Ps(e) {
|
|
@@ -1318,7 +1318,7 @@ function ha(e) {
|
|
|
1318
1318
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1319
1319
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1320
1320
|
}
|
|
1321
|
-
async function
|
|
1321
|
+
async function It(e) {
|
|
1322
1322
|
const t = await _i(
|
|
1323
1323
|
Buffer.from(e, "base64")
|
|
1324
1324
|
);
|
|
@@ -1364,7 +1364,7 @@ const pa = (e) => {
|
|
|
1364
1364
|
i == null || i(d);
|
|
1365
1365
|
};
|
|
1366
1366
|
async function u() {
|
|
1367
|
-
const d = await
|
|
1367
|
+
const d = await It(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
|
|
1368
1368
|
v.href = m, v.download = `image.${d == null ? void 0 : d.ext}`, v.click();
|
|
1369
1369
|
}
|
|
1370
1370
|
async function c(d) {
|
|
@@ -1451,7 +1451,7 @@ const pa = (e) => {
|
|
|
1451
1451
|
r && r(i);
|
|
1452
1452
|
}
|
|
1453
1453
|
});
|
|
1454
|
-
},
|
|
1454
|
+
}, Ft = (e) => {
|
|
1455
1455
|
const t = e.arch, r = e.fields, i = new Dr(r);
|
|
1456
1456
|
return i.parse(t), i;
|
|
1457
1457
|
}, wa = (e, t, r) => e.columns.map((o) => {
|
|
@@ -1491,7 +1491,7 @@ function Xt(e) {
|
|
|
1491
1491
|
t[r.id] = r.colors;
|
|
1492
1492
|
}), t;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Ot({
|
|
1495
1495
|
resultsToSort: e,
|
|
1496
1496
|
sorter: t,
|
|
1497
1497
|
fields: r
|
|
@@ -1522,7 +1522,7 @@ const qn = async (e) => {
|
|
|
1522
1522
|
};
|
|
1523
1523
|
let f = [], d;
|
|
1524
1524
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1525
|
-
const h = (p =
|
|
1525
|
+
const h = (p = Ft(o)) == null ? void 0 : p.colors, g = await B.getHandler().readEvalUiObjects({
|
|
1526
1526
|
model: r,
|
|
1527
1527
|
ids: u,
|
|
1528
1528
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1578,7 +1578,7 @@ const qn = async (e) => {
|
|
|
1578
1578
|
} = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = Y(Ee), {
|
|
1579
1579
|
getContext: m
|
|
1580
1580
|
} = d || {};
|
|
1581
|
-
|
|
1581
|
+
xt(() => {
|
|
1582
1582
|
p();
|
|
1583
1583
|
}, [t]);
|
|
1584
1584
|
const v = async (h) => o && o[h] ? o[h] : await B.getHandler().getView({
|
|
@@ -1599,7 +1599,7 @@ const qn = async (e) => {
|
|
|
1599
1599
|
a(!1);
|
|
1600
1600
|
}
|
|
1601
1601
|
};
|
|
1602
|
-
return s ? /* @__PURE__ */ n(
|
|
1602
|
+
return s ? /* @__PURE__ */ n(Me, {}) : l ? /* @__PURE__ */ n(ze, {
|
|
1603
1603
|
className: "mt-10",
|
|
1604
1604
|
message: l,
|
|
1605
1605
|
type: "error",
|
|
@@ -1629,7 +1629,7 @@ const qn = async (e) => {
|
|
|
1629
1629
|
} = i, _ = s.filter((w) => w.values), b = Y(Ee), {
|
|
1630
1630
|
getContext: A
|
|
1631
1631
|
} = b || {};
|
|
1632
|
-
|
|
1632
|
+
xt(() => {
|
|
1633
1633
|
M();
|
|
1634
1634
|
}, [s]);
|
|
1635
1635
|
const I = (w) => {
|
|
@@ -1668,7 +1668,7 @@ const qn = async (e) => {
|
|
|
1668
1668
|
message: u,
|
|
1669
1669
|
type: "error",
|
|
1670
1670
|
banner: !0
|
|
1671
|
-
}) : a ? /* @__PURE__ */ n(
|
|
1671
|
+
}) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ H(X, {
|
|
1672
1672
|
children: [/* @__PURE__ */ n(Qn, {
|
|
1673
1673
|
style: {
|
|
1674
1674
|
padding: "1rem"
|
|
@@ -1778,7 +1778,7 @@ const qn = async (e) => {
|
|
|
1778
1778
|
} else
|
|
1779
1779
|
r[i] = e[i];
|
|
1780
1780
|
}), r;
|
|
1781
|
-
},
|
|
1781
|
+
}, Tt = (e, t) => _a(e, t), Cn = ({
|
|
1782
1782
|
source: e,
|
|
1783
1783
|
target: t,
|
|
1784
1784
|
fields: r
|
|
@@ -1873,7 +1873,7 @@ const qn = async (e) => {
|
|
|
1873
1873
|
function hr(e, t, r) {
|
|
1874
1874
|
return r.indexOf(e) === t;
|
|
1875
1875
|
}
|
|
1876
|
-
const
|
|
1876
|
+
const kt = ({
|
|
1877
1877
|
values: e,
|
|
1878
1878
|
fields: t
|
|
1879
1879
|
}) => {
|
|
@@ -1938,7 +1938,7 @@ const Rt = ({
|
|
|
1938
1938
|
} = r, g = Y(Ee), {
|
|
1939
1939
|
getContext: y
|
|
1940
1940
|
} = g || {};
|
|
1941
|
-
|
|
1941
|
+
xt(() => {
|
|
1942
1942
|
_();
|
|
1943
1943
|
}, [o]);
|
|
1944
1944
|
const O = (I) => {
|
|
@@ -1953,7 +1953,7 @@ const Rt = ({
|
|
|
1953
1953
|
if (p && (I = [["id", "in", s]]), r.domain) {
|
|
1954
1954
|
const x = await B.getHandler().evalDomain({
|
|
1955
1955
|
domain: r.domain,
|
|
1956
|
-
values:
|
|
1956
|
+
values: kt({
|
|
1957
1957
|
fields: g == null ? void 0 : g.getFields(),
|
|
1958
1958
|
values: g.getPlainValues()
|
|
1959
1959
|
}),
|
|
@@ -2026,7 +2026,7 @@ const Rt = ({
|
|
|
2026
2026
|
}) : /* @__PURE__ */ n(X, {
|
|
2027
2027
|
children: /* @__PURE__ */ n("div", {
|
|
2028
2028
|
className: "flex flex-row",
|
|
2029
|
-
children: /* @__PURE__ */ n(
|
|
2029
|
+
children: /* @__PURE__ */ n(bt, {
|
|
2030
2030
|
mode: "multiple",
|
|
2031
2031
|
value: a.length ? s : [],
|
|
2032
2032
|
tagRender: A,
|
|
@@ -2147,14 +2147,14 @@ const Rt = ({
|
|
|
2147
2147
|
if (i.push(a), s(l)) {
|
|
2148
2148
|
const u = r - o;
|
|
2149
2149
|
for (let c = 0; c < u; c += 1)
|
|
2150
|
-
i.push(new
|
|
2150
|
+
i.push(new Dt({ string: "" }));
|
|
2151
2151
|
}
|
|
2152
2152
|
}), i;
|
|
2153
2153
|
}, Pa = ({
|
|
2154
2154
|
row: e,
|
|
2155
2155
|
numberOfColumns: t
|
|
2156
2156
|
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ha = (e, t) => {
|
|
2157
|
-
const r = e.map((i) => i instanceof
|
|
2157
|
+
const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof ii ? "auto" : "1fr");
|
|
2158
2158
|
if (r.length < t) {
|
|
2159
2159
|
const i = t - r.length;
|
|
2160
2160
|
for (let o = 0; o < i; o++)
|
|
@@ -2190,7 +2190,7 @@ const Rt = ({
|
|
|
2190
2190
|
row: p,
|
|
2191
2191
|
numberOfColumns: o,
|
|
2192
2192
|
mustFillWithEmpties: r
|
|
2193
|
-
}), l = l.concat(h)), h.map((g) => (g instanceof
|
|
2193
|
+
}), l = l.concat(h)), h.map((g) => (g instanceof Dt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2194
2194
|
style: {
|
|
2195
2195
|
...La({
|
|
2196
2196
|
item: g,
|
|
@@ -2357,9 +2357,9 @@ const Rt = ({
|
|
|
2357
2357
|
setLimit: A,
|
|
2358
2358
|
searchParams: I = [],
|
|
2359
2359
|
setSearchValues: M
|
|
2360
|
-
} = e, [w, x] = T(!1), [F, C] = T(!1), [L, S] = T(), [R, V] = T(1), [E, D] = T(0), [k, N] = T(), [j, W] = T([]), [K, z] = T(void 0), q = me(b || Pt), $ = me([]), P =
|
|
2360
|
+
} = e, [w, x] = T(!1), [F, C] = T(!1), [L, S] = T(), [R, V] = T(1), [E, D] = T(0), [k, N] = T(), [j, W] = T([]), [K, z] = T(void 0), q = me(b || Pt), $ = me([]), P = Re((oe) => {
|
|
2361
2361
|
g == null || g([...oe]), W([...oe]);
|
|
2362
|
-
}, []), Q =
|
|
2362
|
+
}, []), Q = Re(() => y || j, [y, j]), ie = Re(async () => {
|
|
2363
2363
|
const oe = await B.getHandler().nameSearch({
|
|
2364
2364
|
model: t,
|
|
2365
2365
|
payload: l,
|
|
@@ -2368,7 +2368,7 @@ const Rt = ({
|
|
|
2368
2368
|
context: c
|
|
2369
2369
|
});
|
|
2370
2370
|
if (N(oe.length), f == null || f(oe.length), oe.length > 0) {
|
|
2371
|
-
const Te = oe.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } =
|
|
2371
|
+
const Te = oe.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ft(d), Fe = await B.getHandler().readEvalUiObjects({
|
|
2372
2372
|
model: t,
|
|
2373
2373
|
ids: Te,
|
|
2374
2374
|
arch: d == null ? void 0 : d.arch,
|
|
@@ -2379,7 +2379,7 @@ const Rt = ({
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}), He = Fe[0];
|
|
2381
2381
|
$.current = [...He], z(Xt(Fe[1]));
|
|
2382
|
-
const Ne = He.map((Be) => Be.id), Je = v !== void 0 ?
|
|
2382
|
+
const Ne = He.map((Be) => Be.id), Je = v !== void 0 ? Ot({
|
|
2383
2383
|
resultsToSort: He,
|
|
2384
2384
|
sorter: v,
|
|
2385
2385
|
fields: { ...d.fields, ...m.fields }
|
|
@@ -2400,9 +2400,9 @@ const Rt = ({
|
|
|
2400
2400
|
v,
|
|
2401
2401
|
h,
|
|
2402
2402
|
f
|
|
2403
|
-
]), se =
|
|
2403
|
+
]), se = Re(
|
|
2404
2404
|
async (oe) => {
|
|
2405
|
-
const { params: Te, newOffset: be } = oe || {}, Fe = mn(Te || I, O), { colors: He } =
|
|
2405
|
+
const { params: Te, newOffset: be } = oe || {}, Fe = mn(Te || I, O), { colors: He } = Ft(d), { totalItems: Ne, results: Je, attrsEvaluated: Be } = await B.getHandler().searchForTree({
|
|
2406
2406
|
params: Fe,
|
|
2407
2407
|
limit: q.current,
|
|
2408
2408
|
offset: be || E,
|
|
@@ -2412,7 +2412,7 @@ const Rt = ({
|
|
|
2412
2412
|
attrs: He && { colors: He }
|
|
2413
2413
|
});
|
|
2414
2414
|
z(Xt(Be)), $.current = [...Je];
|
|
2415
|
-
const te = v !== void 0 ?
|
|
2415
|
+
const te = v !== void 0 ? Ot({
|
|
2416
2416
|
resultsToSort: Je,
|
|
2417
2417
|
sorter: v,
|
|
2418
2418
|
fields: { ...d.fields, ...m.fields }
|
|
@@ -2444,7 +2444,7 @@ const Rt = ({
|
|
|
2444
2444
|
E,
|
|
2445
2445
|
I
|
|
2446
2446
|
]
|
|
2447
|
-
), ee =
|
|
2447
|
+
), ee = Re(
|
|
2448
2448
|
async (oe) => {
|
|
2449
2449
|
try {
|
|
2450
2450
|
x(!0), a == null || a(!0), l && !u.current ? await ie() : await se(oe);
|
|
@@ -2475,12 +2475,10 @@ const Rt = ({
|
|
|
2475
2475
|
v,
|
|
2476
2476
|
d
|
|
2477
2477
|
]
|
|
2478
|
-
), J =
|
|
2478
|
+
), J = Re(
|
|
2479
2479
|
(oe) => {
|
|
2480
|
-
if (JSON.stringify(oe) === JSON.stringify(v))
|
|
2481
|
-
return;
|
|
2482
2480
|
p == null || p(oe);
|
|
2483
|
-
const Te = oe !== void 0 ?
|
|
2481
|
+
const Te = oe !== void 0 ? Ot({
|
|
2484
2482
|
resultsToSort: Q(),
|
|
2485
2483
|
sorter: oe,
|
|
2486
2484
|
fields: { ...d.fields, ...m.fields }
|
|
@@ -2488,7 +2486,7 @@ const Rt = ({
|
|
|
2488
2486
|
P(Te);
|
|
2489
2487
|
},
|
|
2490
2488
|
[p, Q, d, m, P]
|
|
2491
|
-
), pe =
|
|
2489
|
+
), pe = Re(
|
|
2492
2490
|
(oe) => {
|
|
2493
2491
|
const { params: Te, searchValues: be, limit: Fe, offset: He } = oe;
|
|
2494
2492
|
w || (r == null || r(void 0), i == null || i([]), M == null || M(be), o == null || o(Te), s == null || s(!1), C(!0), S(void 0), V(1), Fe && (q.current = Fe, A == null || A(Fe)), He && D(He), ee({
|
|
@@ -2509,12 +2507,12 @@ const Rt = ({
|
|
|
2509
2507
|
D,
|
|
2510
2508
|
ee
|
|
2511
2509
|
]
|
|
2512
|
-
), ye =
|
|
2510
|
+
), ye = Re(
|
|
2513
2511
|
(oe) => {
|
|
2514
2512
|
x(!0), V(oe), D((oe - 1) * b);
|
|
2515
2513
|
},
|
|
2516
2514
|
[x, b, D, V]
|
|
2517
|
-
),
|
|
2515
|
+
), Ae = Re(() => {
|
|
2518
2516
|
w || (r == null || r(void 0), o == null || o([]), M == null || M({}), S(void 0), D(0), V(1), A == null || A(b || Pt));
|
|
2519
2517
|
}, [
|
|
2520
2518
|
w,
|
|
@@ -2525,7 +2523,7 @@ const Rt = ({
|
|
|
2525
2523
|
V,
|
|
2526
2524
|
A,
|
|
2527
2525
|
b
|
|
2528
|
-
]), de =
|
|
2526
|
+
]), de = Re(
|
|
2529
2527
|
async (oe) => {
|
|
2530
2528
|
const Te = oe[(d == null ? void 0 : d.field_parent) || "child_id"], be = await B.getHandler().readObjects({
|
|
2531
2529
|
model: t,
|
|
@@ -2533,13 +2531,13 @@ const Rt = ({
|
|
|
2533
2531
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
2534
2532
|
context: c
|
|
2535
2533
|
});
|
|
2536
|
-
return P([...Q(), ...be]), io(
|
|
2534
|
+
return P([...Q(), ...be]), io(Ft(d), be);
|
|
2537
2535
|
},
|
|
2538
2536
|
[d, t, c, Q, P]
|
|
2539
2537
|
);
|
|
2540
2538
|
return {
|
|
2541
2539
|
submit: pe,
|
|
2542
|
-
clear:
|
|
2540
|
+
clear: Ae,
|
|
2543
2541
|
fetchResults: ee,
|
|
2544
2542
|
tableRefreshing: w,
|
|
2545
2543
|
searchFilterLoading: F,
|
|
@@ -2581,7 +2579,7 @@ const Rt = ({
|
|
|
2581
2579
|
setSearchTreeNameSearch: M,
|
|
2582
2580
|
goToResourceId: w,
|
|
2583
2581
|
limit: x
|
|
2584
|
-
} = e, [F, C] = T(!1), [L, S] = T(!1), [R, V] = T(!1), [E, D] = T(!0), [k, N] = T(!0), [j, W] = T([]), [K, z] = T(!1), [q, $] = T([]), [P, Q] = T(!1), [ie, se] = T(!0), [ee, J] = T(), [pe, ye] = T({}), [
|
|
2582
|
+
} = e, [F, C] = T(!1), [L, S] = T(!1), [R, V] = T(!1), [E, D] = T(!0), [k, N] = T(!0), [j, W] = T([]), [K, z] = T(!1), [q, $] = T([]), [P, Q] = T(!1), [ie, se] = T(!0), [ee, J] = T(), [pe, ye] = T({}), [Ae, de] = T(x !== void 0 ? x : Pt), [oe, Te] = T(i);
|
|
2585
2583
|
ge(() => {
|
|
2586
2584
|
m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
|
|
2587
2585
|
}, [m]), ge(() => {
|
|
@@ -2645,7 +2643,7 @@ const Rt = ({
|
|
|
2645
2643
|
goToResourceId: w,
|
|
2646
2644
|
searchValues: pe,
|
|
2647
2645
|
setSearchValues: ye,
|
|
2648
|
-
limit:
|
|
2646
|
+
limit: Ae,
|
|
2649
2647
|
setLimit: de,
|
|
2650
2648
|
setTitle: Te
|
|
2651
2649
|
},
|
|
@@ -2680,7 +2678,7 @@ const Rt = ({
|
|
|
2680
2678
|
},
|
|
2681
2679
|
children: t
|
|
2682
2680
|
});
|
|
2683
|
-
},
|
|
2681
|
+
}, Rt = qe.createContext(null), yr = async (e) => {
|
|
2684
2682
|
var t;
|
|
2685
2683
|
for (let r = 0; r < e.length; r++)
|
|
2686
2684
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2693,7 +2691,7 @@ const Rt = ({
|
|
|
2693
2691
|
} = u || {}, f = me([]), {
|
|
2694
2692
|
t: d
|
|
2695
2693
|
} = Y(we);
|
|
2696
|
-
|
|
2694
|
+
wt(t, () => ({
|
|
2697
2695
|
openActionModal: b
|
|
2698
2696
|
}));
|
|
2699
2697
|
const [m, v] = T(!1), [p, h] = T({
|
|
@@ -2720,7 +2718,7 @@ const Rt = ({
|
|
|
2720
2718
|
ids: D
|
|
2721
2719
|
} = R || {};
|
|
2722
2720
|
let k = D || [];
|
|
2723
|
-
const N = typeof L == "string" ?
|
|
2721
|
+
const N = typeof L == "string" ? yt({
|
|
2724
2722
|
context: L,
|
|
2725
2723
|
fields: x,
|
|
2726
2724
|
values: F
|
|
@@ -2750,7 +2748,7 @@ const Rt = ({
|
|
|
2750
2748
|
id: M
|
|
2751
2749
|
}), w.state && s.current === !0) {
|
|
2752
2750
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2753
|
-
const x = await
|
|
2751
|
+
const x = await It(w.result);
|
|
2754
2752
|
fn(w.result, x.mime);
|
|
2755
2753
|
}
|
|
2756
2754
|
} catch (x) {
|
|
@@ -2793,7 +2791,7 @@ const Rt = ({
|
|
|
2793
2791
|
context: F
|
|
2794
2792
|
}))[0]);
|
|
2795
2793
|
const S = {
|
|
2796
|
-
...typeof (C == null ? void 0 : C.context) == "string" ?
|
|
2794
|
+
...typeof (C == null ? void 0 : C.context) == "string" ? yt({
|
|
2797
2795
|
context: C.context,
|
|
2798
2796
|
fields: w,
|
|
2799
2797
|
values: {
|
|
@@ -2806,7 +2804,7 @@ const Rt = ({
|
|
|
2806
2804
|
let R = [];
|
|
2807
2805
|
if (C.domain && (R = await B.getHandler().evalDomain({
|
|
2808
2806
|
domain: C.domain,
|
|
2809
|
-
values:
|
|
2807
|
+
values: kt({
|
|
2810
2808
|
fields: w,
|
|
2811
2809
|
values: {
|
|
2812
2810
|
...x,
|
|
@@ -2905,7 +2903,7 @@ const Rt = ({
|
|
|
2905
2903
|
});
|
|
2906
2904
|
}
|
|
2907
2905
|
return /* @__PURE__ */ n(X, {
|
|
2908
|
-
children: /* @__PURE__ */ n(
|
|
2906
|
+
children: /* @__PURE__ */ n(Rt.Provider, {
|
|
2909
2907
|
value: {
|
|
2910
2908
|
processAction: O,
|
|
2911
2909
|
globalValues: i
|
|
@@ -2918,7 +2916,7 @@ const Rt = ({
|
|
|
2918
2916
|
closable: !1,
|
|
2919
2917
|
centered: !0,
|
|
2920
2918
|
maskClosable: !1,
|
|
2921
|
-
children: /* @__PURE__ */ n(
|
|
2919
|
+
children: /* @__PURE__ */ n(Me, {})
|
|
2922
2920
|
}), /* @__PURE__ */ n(Ut, {
|
|
2923
2921
|
buttonModal: !0,
|
|
2924
2922
|
parentContext: p.context,
|
|
@@ -2997,7 +2995,7 @@ async function il({
|
|
|
2997
2995
|
initialView: a
|
|
2998
2996
|
};
|
|
2999
2997
|
}
|
|
3000
|
-
const sl =
|
|
2998
|
+
const sl = vt(ol), al = ({
|
|
3001
2999
|
error: e,
|
|
3002
3000
|
className: t
|
|
3003
3001
|
}) => {
|
|
@@ -3051,7 +3049,7 @@ function cl(e, t) {
|
|
|
3051
3049
|
} = Y(we), [x, F] = T(!1), [C, L] = T(), [S, R] = T(), [V] = it.useForm(), [E, D] = T(), [k, N] = T(), j = Y(ao), [W, K] = T(), [z, q] = T(!1), $ = me(), P = me({}), Q = me({}), ie = me(!1), se = me(!1), ee = W < ll, J = Y(Ee), {
|
|
3052
3050
|
activeId: pe,
|
|
3053
3051
|
getPlainValues: ye
|
|
3054
|
-
} = J || {},
|
|
3052
|
+
} = J || {}, Ae = Y(Xe), {
|
|
3055
3053
|
setFormIsSaving: de = void 0,
|
|
3056
3054
|
setFormHasChanges: oe = void 0,
|
|
3057
3055
|
setCurrentId: Te = void 0,
|
|
@@ -3059,14 +3057,14 @@ function cl(e, t) {
|
|
|
3059
3057
|
setAttachments: Fe = void 0,
|
|
3060
3058
|
title: He = void 0,
|
|
3061
3059
|
setTitle: Ne = void 0
|
|
3062
|
-
} = (b ?
|
|
3060
|
+
} = (b ? Ae : {}) || {}, Je = Y(Rt), {
|
|
3063
3061
|
processAction: Be,
|
|
3064
3062
|
globalValues: te
|
|
3065
3063
|
} = Je || {};
|
|
3066
|
-
|
|
3064
|
+
wt(t, () => ({
|
|
3067
3065
|
submitForm: qt,
|
|
3068
3066
|
getFields: De,
|
|
3069
|
-
getValues:
|
|
3067
|
+
getValues: ke,
|
|
3070
3068
|
getPlainValues: tt,
|
|
3071
3069
|
getContext: nt,
|
|
3072
3070
|
fetchValues: ot,
|
|
@@ -3100,7 +3098,7 @@ function cl(e, t) {
|
|
|
3100
3098
|
function De() {
|
|
3101
3099
|
return k;
|
|
3102
3100
|
}
|
|
3103
|
-
function
|
|
3101
|
+
function ke() {
|
|
3104
3102
|
const G = {
|
|
3105
3103
|
...ae(k),
|
|
3106
3104
|
...Z()
|
|
@@ -3110,7 +3108,7 @@ function cl(e, t) {
|
|
|
3110
3108
|
return G;
|
|
3111
3109
|
}
|
|
3112
3110
|
function tt() {
|
|
3113
|
-
const G =
|
|
3111
|
+
const G = ke(), U = De();
|
|
3114
3112
|
let ne = {};
|
|
3115
3113
|
return Object.keys(G).forEach((re) => {
|
|
3116
3114
|
const Ve = G[re];
|
|
@@ -3157,11 +3155,11 @@ function cl(e, t) {
|
|
|
3157
3155
|
fields: k
|
|
3158
3156
|
})).length !== 0, ae = (G) => {
|
|
3159
3157
|
const U = V.getFieldsValue(!0);
|
|
3160
|
-
return
|
|
3158
|
+
return Tt(U, G);
|
|
3161
3159
|
}, Ce = (G, U) => {
|
|
3162
3160
|
Gt({
|
|
3163
3161
|
values: {
|
|
3164
|
-
...
|
|
3162
|
+
...Tt(V.getFieldsValue(!0), k),
|
|
3165
3163
|
[G]: U
|
|
3166
3164
|
},
|
|
3167
3165
|
fields: k,
|
|
@@ -3205,7 +3203,7 @@ function cl(e, t) {
|
|
|
3205
3203
|
}), O && (U = {
|
|
3206
3204
|
...Va(O),
|
|
3207
3205
|
...U
|
|
3208
|
-
}), P.current =
|
|
3206
|
+
}), P.current = Tt(U, ne), Gt({
|
|
3209
3207
|
values: U,
|
|
3210
3208
|
fields: ne,
|
|
3211
3209
|
reset: !0,
|
|
@@ -3247,7 +3245,7 @@ function cl(e, t) {
|
|
|
3247
3245
|
const gt = {
|
|
3248
3246
|
...ne ? {} : V.getFieldsValue(!0),
|
|
3249
3247
|
...G
|
|
3250
|
-
}, vn =
|
|
3248
|
+
}, vn = Tt(gt, U), Go = Object.keys(U).map((wn) => {
|
|
3251
3249
|
const qo = vn[wn] !== void 0 ? vn[wn] : void 0;
|
|
3252
3250
|
return {
|
|
3253
3251
|
name: wn,
|
|
@@ -3319,12 +3317,12 @@ function cl(e, t) {
|
|
|
3319
3317
|
});
|
|
3320
3318
|
$.current = re, P.current = ne;
|
|
3321
3319
|
}
|
|
3322
|
-
h && await h([le()]), !g && U && (ue == null || ue(le(),
|
|
3320
|
+
h && await h([le()]), !g && U && (ue == null || ue(le(), ke(), Ze()));
|
|
3323
3321
|
}, $o = async (G) => {
|
|
3324
3322
|
const {
|
|
3325
3323
|
callOnSubmitSucceed: U = !0
|
|
3326
3324
|
} = G || {};
|
|
3327
|
-
!g && U && (ue == null || ue(le(),
|
|
3325
|
+
!g && U && (ue == null || ue(le(), ke(), Ze()));
|
|
3328
3326
|
}, qt = async (G) => {
|
|
3329
3327
|
let U = !1;
|
|
3330
3328
|
const {
|
|
@@ -3388,7 +3386,7 @@ function cl(e, t) {
|
|
|
3388
3386
|
}) && G !== !0)
|
|
3389
3387
|
return;
|
|
3390
3388
|
{
|
|
3391
|
-
const re =
|
|
3389
|
+
const re = Tt(V.getFieldsValue(!0), k);
|
|
3392
3390
|
Q.current = re, u == null || u(re), oe == null || oe(!0), No(ne);
|
|
3393
3391
|
}
|
|
3394
3392
|
}
|
|
@@ -3479,15 +3477,15 @@ function cl(e, t) {
|
|
|
3479
3477
|
}
|
|
3480
3478
|
});
|
|
3481
3479
|
if (typeof ne == "object" && ne !== null && Object.keys(ne).length === 0 && g)
|
|
3482
|
-
ue == null || ue(le(),
|
|
3480
|
+
ue == null || ue(le(), ke(), Ze());
|
|
3483
3481
|
else if (ne.type && ne.type === "ir.actions.act_window_close")
|
|
3484
|
-
ue == null || ue(le(),
|
|
3482
|
+
ue == null || ue(le(), ke(), Ze());
|
|
3485
3483
|
else if (ne.type) {
|
|
3486
3484
|
let re = {};
|
|
3487
|
-
ne.context && (re =
|
|
3485
|
+
ne.context && (re = yt({
|
|
3488
3486
|
context: ne.context,
|
|
3489
3487
|
fields: k,
|
|
3490
|
-
values:
|
|
3488
|
+
values: ke()
|
|
3491
3489
|
})), await Xn({
|
|
3492
3490
|
actionData: ne,
|
|
3493
3491
|
context: {
|
|
@@ -3506,7 +3504,7 @@ function cl(e, t) {
|
|
|
3506
3504
|
action: G,
|
|
3507
3505
|
payload: le()
|
|
3508
3506
|
});
|
|
3509
|
-
U.type && U.type === "ir.actions.act_window_close" ? ue == null || ue(le(),
|
|
3507
|
+
U.type && U.type === "ir.actions.act_window_close" ? ue == null || ue(le(), ke(), Ze()) : await ot();
|
|
3510
3508
|
}
|
|
3511
3509
|
async function jo({
|
|
3512
3510
|
action: G,
|
|
@@ -3531,7 +3529,7 @@ function cl(e, t) {
|
|
|
3531
3529
|
} = await (Be == null ? void 0 : Be({
|
|
3532
3530
|
actionData: G,
|
|
3533
3531
|
fields: k,
|
|
3534
|
-
values:
|
|
3532
|
+
values: ke(),
|
|
3535
3533
|
context: {
|
|
3536
3534
|
...y,
|
|
3537
3535
|
...S == null ? void 0 : S.context,
|
|
@@ -3541,7 +3539,7 @@ function cl(e, t) {
|
|
|
3541
3539
|
ot();
|
|
3542
3540
|
}
|
|
3543
3541
|
})) || {};
|
|
3544
|
-
!b && ne && (ue == null || ue(le(),
|
|
3542
|
+
!b && ne && (ue == null || ue(le(), ke(), Ze()));
|
|
3545
3543
|
}
|
|
3546
3544
|
function Ko() {
|
|
3547
3545
|
yn({
|
|
@@ -3577,9 +3575,9 @@ function cl(e, t) {
|
|
|
3577
3575
|
Ye(re);
|
|
3578
3576
|
}
|
|
3579
3577
|
}
|
|
3580
|
-
const Wo = () => !S && !C ? /* @__PURE__ */ n(
|
|
3578
|
+
const Wo = () => !S && !C ? /* @__PURE__ */ n(Me, {}) : !r && !p || !_ ? null : /* @__PURE__ */ n(X, {
|
|
3581
3579
|
children: /* @__PURE__ */ n(zi, {
|
|
3582
|
-
getValues:
|
|
3580
|
+
getValues: ke,
|
|
3583
3581
|
getPlainValues: tt,
|
|
3584
3582
|
getFields: De,
|
|
3585
3583
|
domain: O,
|
|
@@ -3621,7 +3619,7 @@ function cl(e, t) {
|
|
|
3621
3619
|
}), /* @__PURE__ */ n(Ie, {
|
|
3622
3620
|
disabled: x || f,
|
|
3623
3621
|
loading: x,
|
|
3624
|
-
icon: /* @__PURE__ */ n(
|
|
3622
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
3625
3623
|
onClick: async () => {
|
|
3626
3624
|
await qt();
|
|
3627
3625
|
},
|
|
@@ -3649,7 +3647,7 @@ function cl(e, t) {
|
|
|
3649
3647
|
})
|
|
3650
3648
|
}) : null;
|
|
3651
3649
|
}
|
|
3652
|
-
const Wt =
|
|
3650
|
+
const Wt = vt(cl), Ut = (e) => {
|
|
3653
3651
|
const {
|
|
3654
3652
|
visible: t,
|
|
3655
3653
|
id: r,
|
|
@@ -3767,7 +3765,7 @@ const Wt = wt(cl), Ut = (e) => {
|
|
|
3767
3765
|
})];
|
|
3768
3766
|
return /* @__PURE__ */ H(X, {
|
|
3769
3767
|
children: [r && /* @__PURE__ */ n(dn, {
|
|
3770
|
-
ooui: new
|
|
3768
|
+
ooui: new Dt({
|
|
3771
3769
|
name: o + "_label",
|
|
3772
3770
|
string: i,
|
|
3773
3771
|
help: t.tooltip,
|
|
@@ -3892,7 +3890,7 @@ function hl(e) {
|
|
|
3892
3890
|
});
|
|
3893
3891
|
return /* @__PURE__ */ H(X, {
|
|
3894
3892
|
children: [r && /* @__PURE__ */ n(dn, {
|
|
3895
|
-
ooui: new
|
|
3893
|
+
ooui: new Dt({
|
|
3896
3894
|
name: i + "_label",
|
|
3897
3895
|
string: o,
|
|
3898
3896
|
help: s,
|
|
@@ -3922,7 +3920,7 @@ const {
|
|
|
3922
3920
|
defaultSeed: gl
|
|
3923
3921
|
} = $e, yl = pl(gl), {
|
|
3924
3922
|
Option: vl
|
|
3925
|
-
} =
|
|
3923
|
+
} = bt, wl = (e) => {
|
|
3926
3924
|
const {
|
|
3927
3925
|
ooui: t
|
|
3928
3926
|
} = e, {
|
|
@@ -3954,7 +3952,7 @@ const {
|
|
|
3954
3952
|
value: v,
|
|
3955
3953
|
children: v
|
|
3956
3954
|
}, m);
|
|
3957
|
-
}), c = a && !s ? xl :
|
|
3955
|
+
}), c = a && !s ? xl : bt;
|
|
3958
3956
|
function f(d) {
|
|
3959
3957
|
const m = d.map((v) => {
|
|
3960
3958
|
const p = l.find(([h, g]) => v === g);
|
|
@@ -3974,7 +3972,7 @@ const {
|
|
|
3974
3972
|
showArrow: !0,
|
|
3975
3973
|
children: u
|
|
3976
3974
|
});
|
|
3977
|
-
}, xl = jt(
|
|
3975
|
+
}, xl = jt(bt)`
|
|
3978
3976
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3979
3977
|
background-color: ${yl.colorPrimaryBg};
|
|
3980
3978
|
}
|
|
@@ -4053,7 +4051,7 @@ function Sl(e) {
|
|
|
4053
4051
|
onClick: t,
|
|
4054
4052
|
children: [r ? /* @__PURE__ */ n(li, {
|
|
4055
4053
|
className: "pr-1"
|
|
4056
|
-
}) : /* @__PURE__ */ n(
|
|
4054
|
+
}) : /* @__PURE__ */ n(Vt, {
|
|
4057
4055
|
className: "pr-1"
|
|
4058
4056
|
}), s(r ? "simple_search" : "advanced_search")]
|
|
4059
4057
|
})
|
|
@@ -4146,7 +4144,7 @@ function uo(e) {
|
|
|
4146
4144
|
}, E))
|
|
4147
4145
|
}, R));
|
|
4148
4146
|
};
|
|
4149
|
-
|
|
4147
|
+
xt(() => {
|
|
4150
4148
|
b(!1), A.current = new si(r, t, p), A.current.parse(), g(A.current._simpleSearchContainer), O(A.current._advancedSearchContainer);
|
|
4151
4149
|
}, [t, r]);
|
|
4152
4150
|
const x = w(), F = (C) => {
|
|
@@ -4344,7 +4342,7 @@ const Il = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4344
4342
|
t: p
|
|
4345
4343
|
} = Y(we), h = Y(at), {
|
|
4346
4344
|
openRelate: g
|
|
4347
|
-
} = h || {}, y = Y(
|
|
4345
|
+
} = h || {}, y = Y(Rt), {
|
|
4348
4346
|
processAction: O
|
|
4349
4347
|
} = y || {};
|
|
4350
4348
|
if (!t)
|
|
@@ -4368,7 +4366,7 @@ const Il = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4368
4366
|
context: i
|
|
4369
4367
|
}))[0];
|
|
4370
4368
|
v({
|
|
4371
|
-
...
|
|
4369
|
+
...Tt(S, C),
|
|
4372
4370
|
active_id: t
|
|
4373
4371
|
}), c(!1);
|
|
4374
4372
|
} catch (F) {
|
|
@@ -4384,7 +4382,7 @@ const Il = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4384
4382
|
style: {
|
|
4385
4383
|
padding: 15
|
|
4386
4384
|
},
|
|
4387
|
-
children: /* @__PURE__ */ n(
|
|
4385
|
+
children: /* @__PURE__ */ n(Me, {})
|
|
4388
4386
|
})
|
|
4389
4387
|
});
|
|
4390
4388
|
if (!f || !f.toolbar)
|
|
@@ -4495,7 +4493,7 @@ const Il = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4495
4493
|
value: t,
|
|
4496
4494
|
context: r,
|
|
4497
4495
|
selectionValues: i
|
|
4498
|
-
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d =
|
|
4496
|
+
} = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Re(async () => {
|
|
4499
4497
|
if (!t || t && o)
|
|
4500
4498
|
return;
|
|
4501
4499
|
l(!0);
|
|
@@ -5025,7 +5023,7 @@ function hn(e) {
|
|
|
5025
5023
|
setTitle: S = void 0
|
|
5026
5024
|
} = (y ? C : {}) || {};
|
|
5027
5025
|
ge(() => {
|
|
5028
|
-
w.current =
|
|
5026
|
+
w.current = Ft(o);
|
|
5029
5027
|
const W = wa(w.current, {
|
|
5030
5028
|
boolean: Nl,
|
|
5031
5029
|
many2one: Pl,
|
|
@@ -5050,7 +5048,7 @@ function hn(e) {
|
|
|
5050
5048
|
const W = io(w.current, s);
|
|
5051
5049
|
b(W), F.current = r;
|
|
5052
5050
|
}, [s]);
|
|
5053
|
-
const R = (t - 1) * F.current + 1, V = R - 1 + _.length, E = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", R == null ? void 0 : R.toString()).replace("{to}", V == null ? void 0 : V.toString()).replace("{total}", i == null ? void 0 : i.toString()), D = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5051
|
+
const R = (t - 1) * F.current + 1, V = R - 1 + _.length, E = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", R == null ? void 0 : R.toString()).replace("{to}", V == null ? void 0 : V.toString()).replace("{total}", i == null ? void 0 : i.toString()), D = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
|
|
5054
5052
|
className: "pb-4"
|
|
5055
5053
|
}) : /* @__PURE__ */ H(Se, {
|
|
5056
5054
|
align: "bottom",
|
|
@@ -5093,19 +5091,17 @@ function hn(e) {
|
|
|
5093
5091
|
const K = w.current;
|
|
5094
5092
|
d && K.columns.some((z) => z.sum !== void 0) && (j = d - 30);
|
|
5095
5093
|
}
|
|
5096
|
-
return w.current === null ? /* @__PURE__ */ n(
|
|
5094
|
+
return w.current === null ? /* @__PURE__ */ n(Me, {
|
|
5097
5095
|
style: {
|
|
5098
5096
|
padding: "2rem"
|
|
5099
5097
|
}
|
|
5100
5098
|
}) : /* @__PURE__ */ H("div", {
|
|
5101
|
-
children: [D(),
|
|
5102
|
-
className: "pb-4"
|
|
5103
|
-
}), /* @__PURE__ */ n(Oi, {
|
|
5099
|
+
children: [D(), /* @__PURE__ */ n(Oi, {
|
|
5104
5100
|
height: j,
|
|
5105
5101
|
columns: N.columns,
|
|
5106
5102
|
dataSource: _,
|
|
5107
|
-
loading:
|
|
5108
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5103
|
+
loading: l,
|
|
5104
|
+
loadingComponent: /* @__PURE__ */ n(Me, {}),
|
|
5109
5105
|
onRowStyle: (W) => {
|
|
5110
5106
|
if (m[W.id])
|
|
5111
5107
|
return {
|
|
@@ -5141,7 +5137,7 @@ function Jl(e, t) {
|
|
|
5141
5137
|
onChangeSelectedRowKeys: m
|
|
5142
5138
|
} = e, [v, p] = T(!1), [h, g] = T(!1), y = me(!1), [O, _] = T(), [b, A] = T(), [I, M] = T(), [w, x] = T(), [F, C] = T(200), L = me(), {
|
|
5143
5139
|
height: S
|
|
5144
|
-
} = un(), R = Y(
|
|
5140
|
+
} = un(), R = Y(Rt), {
|
|
5145
5141
|
processAction: V
|
|
5146
5142
|
} = R || {}, E = Y(Xe), {
|
|
5147
5143
|
setResults: D = void 0,
|
|
@@ -5161,7 +5157,7 @@ function Jl(e, t) {
|
|
|
5161
5157
|
setTreeIsLoading: J = void 0,
|
|
5162
5158
|
searchValues: pe = {},
|
|
5163
5159
|
setSearchValues: ye = void 0,
|
|
5164
|
-
limit:
|
|
5160
|
+
limit: Ae = Pt,
|
|
5165
5161
|
setLimit: de = void 0
|
|
5166
5162
|
} = (f ? E : {}) || {}, {
|
|
5167
5163
|
submit: oe,
|
|
@@ -5200,10 +5196,10 @@ function Jl(e, t) {
|
|
|
5200
5196
|
domain: u,
|
|
5201
5197
|
currentId: N,
|
|
5202
5198
|
setActionViewTotalItems: se,
|
|
5203
|
-
limit:
|
|
5199
|
+
limit: Ae,
|
|
5204
5200
|
setLimit: de
|
|
5205
5201
|
});
|
|
5206
|
-
|
|
5202
|
+
wt(t, () => ({
|
|
5207
5203
|
refreshResults: () => {
|
|
5208
5204
|
y.current = !1, be();
|
|
5209
5205
|
},
|
|
@@ -5212,14 +5208,14 @@ function Jl(e, t) {
|
|
|
5212
5208
|
})), ge(() => {
|
|
5213
5209
|
!h || c && (y.current = !1, be());
|
|
5214
5210
|
}, [Je, Be, h, c, a]);
|
|
5215
|
-
const
|
|
5211
|
+
const ke = async () => {
|
|
5216
5212
|
g(!1), p(!0), x(void 0), J == null || J(!0);
|
|
5217
5213
|
try {
|
|
5218
5214
|
await tt(), g(!0);
|
|
5219
5215
|
} catch (he) {
|
|
5220
|
-
x(he)
|
|
5216
|
+
x(he);
|
|
5221
5217
|
} finally {
|
|
5222
|
-
p(!1);
|
|
5218
|
+
p(!1), J == null || J(!1);
|
|
5223
5219
|
}
|
|
5224
5220
|
}, tt = async () => {
|
|
5225
5221
|
_(r);
|
|
@@ -5237,7 +5233,7 @@ function Jl(e, t) {
|
|
|
5237
5233
|
})), M(he), A(Ke);
|
|
5238
5234
|
};
|
|
5239
5235
|
ge(() => {
|
|
5240
|
-
|
|
5236
|
+
ke();
|
|
5241
5237
|
}, [r]);
|
|
5242
5238
|
const Ze = (he) => {
|
|
5243
5239
|
de == null || de(he);
|
|
@@ -5295,7 +5291,7 @@ function Jl(e, t) {
|
|
|
5295
5291
|
searchFields: so([I.search_fields, b.search_fields]),
|
|
5296
5292
|
formXml: I.arch,
|
|
5297
5293
|
onClear: Te,
|
|
5298
|
-
limit:
|
|
5294
|
+
limit: Ae,
|
|
5299
5295
|
offset: Be,
|
|
5300
5296
|
isSearching: He,
|
|
5301
5297
|
onSubmit: oe,
|
|
@@ -5307,7 +5303,7 @@ function Jl(e, t) {
|
|
|
5307
5303
|
}), /* @__PURE__ */ n(hn, {
|
|
5308
5304
|
context: d,
|
|
5309
5305
|
total: De,
|
|
5310
|
-
limit:
|
|
5306
|
+
limit: Ae,
|
|
5311
5307
|
page: Je,
|
|
5312
5308
|
treeView: b,
|
|
5313
5309
|
results: te(),
|
|
@@ -5336,10 +5332,10 @@ function Jl(e, t) {
|
|
|
5336
5332
|
style: c ? {} : {
|
|
5337
5333
|
display: "none"
|
|
5338
5334
|
},
|
|
5339
|
-
children: v ? /* @__PURE__ */ n(
|
|
5335
|
+
children: v ? /* @__PURE__ */ n(Me, {}) : ae()
|
|
5340
5336
|
});
|
|
5341
5337
|
}
|
|
5342
|
-
const wo =
|
|
5338
|
+
const wo = vt(Jl), bo = (e) => {
|
|
5343
5339
|
const {
|
|
5344
5340
|
visible: t,
|
|
5345
5341
|
onCloseModal: r,
|
|
@@ -5389,7 +5385,7 @@ const wo = wt(Jl), bo = (e) => {
|
|
|
5389
5385
|
},
|
|
5390
5386
|
children: m("new")
|
|
5391
5387
|
}), /* @__PURE__ */ n(Ie, {
|
|
5392
|
-
icon: /* @__PURE__ */ n(
|
|
5388
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
5393
5389
|
onClick: () => {
|
|
5394
5390
|
y();
|
|
5395
5391
|
},
|
|
@@ -5555,7 +5551,7 @@ const wo = wt(Jl), bo = (e) => {
|
|
|
5555
5551
|
async function z() {
|
|
5556
5552
|
c && (S.current = await B.getHandler().evalDomain({
|
|
5557
5553
|
domain: c,
|
|
5558
|
-
values:
|
|
5554
|
+
values: kt({
|
|
5559
5555
|
fields: F(),
|
|
5560
5556
|
values: x()
|
|
5561
5557
|
}),
|
|
@@ -6105,7 +6101,7 @@ const {
|
|
|
6105
6101
|
uninformedString: a,
|
|
6106
6102
|
manualIds: l
|
|
6107
6103
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
|
|
6108
|
-
return
|
|
6104
|
+
return xt(() => {
|
|
6109
6105
|
(async () => {
|
|
6110
6106
|
c(!0), d(void 0);
|
|
6111
6107
|
const O = $n(o);
|
|
@@ -6246,7 +6242,7 @@ const pc = {
|
|
|
6246
6242
|
banner: !0
|
|
6247
6243
|
});
|
|
6248
6244
|
if (c)
|
|
6249
|
-
return /* @__PURE__ */ n(
|
|
6245
|
+
return /* @__PURE__ */ n(Me, {});
|
|
6250
6246
|
if (!f)
|
|
6251
6247
|
return /* @__PURE__ */ n(ze, {
|
|
6252
6248
|
message: "No data to display",
|
|
@@ -6301,7 +6297,7 @@ const vc = (e, t) => {
|
|
|
6301
6297
|
} = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = Y(Xe), {
|
|
6302
6298
|
setGraphIsLoading: h = void 0
|
|
6303
6299
|
} = p || {};
|
|
6304
|
-
|
|
6300
|
+
wt(t, () => ({
|
|
6305
6301
|
refresh: () => {
|
|
6306
6302
|
g();
|
|
6307
6303
|
}
|
|
@@ -6381,7 +6377,7 @@ const vc = (e, t) => {
|
|
|
6381
6377
|
children: `Graph ${f.type} not implemented`
|
|
6382
6378
|
});
|
|
6383
6379
|
}
|
|
6384
|
-
}, pn =
|
|
6380
|
+
}, pn = vt(vc), {
|
|
6385
6381
|
confirm: wc
|
|
6386
6382
|
} = We, bc = ({
|
|
6387
6383
|
onOk: e,
|
|
@@ -6555,8 +6551,8 @@ const _c = (e) => {
|
|
|
6555
6551
|
}
|
|
6556
6552
|
pe();
|
|
6557
6553
|
}, [s, a]);
|
|
6558
|
-
const pe =
|
|
6559
|
-
(a === "form" && s.some((Z) => !Z.values) || a === "tree" && s.some((Z) => !Z.treeValues)) &&
|
|
6554
|
+
const pe = Re(() => {
|
|
6555
|
+
(a === "form" && s.some((Z) => !Z.values) || a === "tree" && s.some((Z) => !Z.treeValues)) && Ae();
|
|
6560
6556
|
}, [s, a]);
|
|
6561
6557
|
ge(() => {
|
|
6562
6558
|
oe();
|
|
@@ -6567,7 +6563,7 @@ const _c = (e) => {
|
|
|
6567
6563
|
fields: ((fe = o.get("form")) == null ? void 0 : fe.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
|
|
6568
6564
|
items: Oc(Z)
|
|
6569
6565
|
});
|
|
6570
|
-
},
|
|
6566
|
+
}, Ae = async () => {
|
|
6571
6567
|
await de(), u > ee.length - 1 && u !== 0 && c(0);
|
|
6572
6568
|
}, de = async (Z) => {
|
|
6573
6569
|
var fe, Oe, ae;
|
|
@@ -6599,7 +6595,7 @@ const _c = (e) => {
|
|
|
6599
6595
|
async function oe() {
|
|
6600
6596
|
Q && (k.current = await B.getHandler().evalDomain({
|
|
6601
6597
|
domain: Q,
|
|
6602
|
-
values:
|
|
6598
|
+
values: kt({
|
|
6603
6599
|
fields: m(),
|
|
6604
6600
|
values: v()
|
|
6605
6601
|
}),
|
|
@@ -6792,7 +6788,7 @@ const _c = (e) => {
|
|
|
6792
6788
|
A(!1);
|
|
6793
6789
|
}
|
|
6794
6790
|
};
|
|
6795
|
-
function
|
|
6791
|
+
function ke() {
|
|
6796
6792
|
const Z = Fc[a];
|
|
6797
6793
|
if (a === "graph")
|
|
6798
6794
|
return $n(o.get("graph").arch).string;
|
|
@@ -6804,7 +6800,7 @@ const _c = (e) => {
|
|
|
6804
6800
|
const tt = () => {
|
|
6805
6801
|
var fe, Oe, ae, Ce;
|
|
6806
6802
|
if (a === "form")
|
|
6807
|
-
return ee.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((he) => !he.values) ? /* @__PURE__ */ n(
|
|
6803
|
+
return ee.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((he) => !he.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Wt, {
|
|
6808
6804
|
formView: o.get("form"),
|
|
6809
6805
|
values: (fe = ee[u]) == null ? void 0 : fe.values,
|
|
6810
6806
|
parentContext: {
|
|
@@ -6833,7 +6829,7 @@ const _c = (e) => {
|
|
|
6833
6829
|
readOnly: q
|
|
6834
6830
|
});
|
|
6835
6831
|
let Z = [];
|
|
6836
|
-
if (ee.some((he) => he.treeValues) && (Z = N ?
|
|
6832
|
+
if (ee.some((he) => he.treeValues) && (Z = N ? Ot({
|
|
6837
6833
|
resultsToSort: ee.map((he) => he.treeValues),
|
|
6838
6834
|
sorter: N,
|
|
6839
6835
|
fields: {
|
|
@@ -6883,10 +6879,10 @@ const _c = (e) => {
|
|
|
6883
6879
|
banner: !0
|
|
6884
6880
|
});
|
|
6885
6881
|
const Ze = E;
|
|
6886
|
-
return b ? /* @__PURE__ */ n(
|
|
6882
|
+
return b ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ H(X, {
|
|
6887
6883
|
children: [/* @__PURE__ */ n(Tc, {
|
|
6888
6884
|
mode: a,
|
|
6889
|
-
title:
|
|
6885
|
+
title: ke(),
|
|
6890
6886
|
readOnly: q,
|
|
6891
6887
|
isMany2Many: ie,
|
|
6892
6888
|
formHasChanges: O,
|
|
@@ -6949,7 +6945,7 @@ const _c = (e) => {
|
|
|
6949
6945
|
const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ee), {
|
|
6950
6946
|
getContext: h
|
|
6951
6947
|
} = p || {};
|
|
6952
|
-
|
|
6948
|
+
xt(() => {
|
|
6953
6949
|
y();
|
|
6954
6950
|
}, [t]);
|
|
6955
6951
|
const g = async (_) => o && o[_] ? o[_] : await B.getHandler().getView({
|
|
@@ -6978,7 +6974,7 @@ const _c = (e) => {
|
|
|
6978
6974
|
c(!1);
|
|
6979
6975
|
}
|
|
6980
6976
|
};
|
|
6981
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(
|
|
6977
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(ze, {
|
|
6982
6978
|
className: "mt-10",
|
|
6983
6979
|
message: f,
|
|
6984
6980
|
type: "error",
|
|
@@ -7253,7 +7249,7 @@ const {
|
|
|
7253
7249
|
limit: s,
|
|
7254
7250
|
onClose: a
|
|
7255
7251
|
}) => {
|
|
7256
|
-
const l = me({}), u = me(/* @__PURE__ */ new Map()), c =
|
|
7252
|
+
const l = me({}), u = me(/* @__PURE__ */ new Map()), c = Re(
|
|
7257
7253
|
async (g) => {
|
|
7258
7254
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7259
7255
|
ct(_e("selectAtLeastOneField", r));
|
|
@@ -7275,18 +7271,18 @@ const {
|
|
|
7275
7271
|
format: g.exportType
|
|
7276
7272
|
});
|
|
7277
7273
|
a(), await new Promise((b) => setTimeout(b, 200));
|
|
7278
|
-
const _ = await
|
|
7274
|
+
const _ = await It(O);
|
|
7279
7275
|
fn(O, _.mime);
|
|
7280
7276
|
},
|
|
7281
7277
|
[r, e, o, s, t, a]
|
|
7282
|
-
), f =
|
|
7278
|
+
), f = Re(async () => {
|
|
7283
7279
|
const g = await B.getHandler().getFields({
|
|
7284
7280
|
model: e,
|
|
7285
7281
|
context: t,
|
|
7286
7282
|
fields: []
|
|
7287
7283
|
});
|
|
7288
7284
|
return l.current["/"] = g, Tr({ fields: g });
|
|
7289
|
-
}, [e, t, l]), d =
|
|
7285
|
+
}, [e, t, l]), d = Re(
|
|
7290
7286
|
async (g) => {
|
|
7291
7287
|
const O = kn(g, l.current)[An(g)], _ = O.relation, b = await B.getHandler().getFields({
|
|
7292
7288
|
model: _,
|
|
@@ -7304,7 +7300,7 @@ const {
|
|
|
7304
7300
|
});
|
|
7305
7301
|
},
|
|
7306
7302
|
[l.current, e, t]
|
|
7307
|
-
), m =
|
|
7303
|
+
), m = Re(async () => {
|
|
7308
7304
|
const g = await Bc({ model: e, context: t }), y = await Kc({
|
|
7309
7305
|
predefinedExports: g,
|
|
7310
7306
|
fields: l.current,
|
|
@@ -7323,7 +7319,7 @@ const {
|
|
|
7323
7319
|
})),
|
|
7324
7320
|
keysWithChilds: y
|
|
7325
7321
|
};
|
|
7326
|
-
}, [l.current]), v =
|
|
7322
|
+
}, [l.current]), v = Re(
|
|
7327
7323
|
async (g) => {
|
|
7328
7324
|
const y = await h("ir.exports"), O = await h("ir.exports.line"), _ = await B.getHandler().create({
|
|
7329
7325
|
model: "ir.exports",
|
|
@@ -7347,7 +7343,7 @@ const {
|
|
|
7347
7343
|
), { ...g, id: _ };
|
|
7348
7344
|
},
|
|
7349
7345
|
[]
|
|
7350
|
-
), p =
|
|
7346
|
+
), p = Re(
|
|
7351
7347
|
async (g) => {
|
|
7352
7348
|
await B.getHandler().delete({
|
|
7353
7349
|
model: "ir.exports",
|
|
@@ -7355,7 +7351,7 @@ const {
|
|
|
7355
7351
|
});
|
|
7356
7352
|
},
|
|
7357
7353
|
[]
|
|
7358
|
-
), h =
|
|
7354
|
+
), h = Re(
|
|
7359
7355
|
async (g) => {
|
|
7360
7356
|
if (u.current.has(g))
|
|
7361
7357
|
return u.current.get(g);
|
|
@@ -7643,8 +7639,8 @@ var _o = { exports: {} };
|
|
|
7643
7639
|
return new Date((D === "X" ? 1e3 : 1) * E);
|
|
7644
7640
|
var N = p(D)(E), j = N.year, W = N.month, K = N.day, z = N.hours, q = N.minutes, $ = N.seconds, P = N.milliseconds, Q = N.zone, ie = new Date(), se = K || (j || W ? 1 : ie.getDate()), ee = j || ie.getFullYear(), J = 0;
|
|
7645
7641
|
j && !W || (J = W > 0 ? W - 1 : ie.getMonth());
|
|
7646
|
-
var pe = z || 0, ye = q || 0,
|
|
7647
|
-
return Q ? new Date(Date.UTC(ee, J, se, pe, ye,
|
|
7642
|
+
var pe = z || 0, ye = q || 0, Ae = $ || 0, de = P || 0;
|
|
7643
|
+
return Q ? new Date(Date.UTC(ee, J, se, pe, ye, Ae, de + 60 * Q.offset * 1e3)) : k ? new Date(Date.UTC(ee, J, se, pe, ye, Ae, de)) : new Date(ee, J, se, pe, ye, Ae, de);
|
|
7648
7644
|
} catch {
|
|
7649
7645
|
return new Date("");
|
|
7650
7646
|
}
|
|
@@ -7788,11 +7784,11 @@ const Jc = (e) => {
|
|
|
7788
7784
|
i == null || i(_);
|
|
7789
7785
|
};
|
|
7790
7786
|
async function h() {
|
|
7791
|
-
const _ = await
|
|
7787
|
+
const _ = await It(r), b = `data:${_ == null ? void 0 : _.mime};base64,${r}`, A = document.createElement("a"), I = d(a), M = d("name");
|
|
7792
7788
|
A.href = b, A.download = I || M, A.click();
|
|
7793
7789
|
}
|
|
7794
7790
|
async function g() {
|
|
7795
|
-
const _ = await
|
|
7791
|
+
const _ = await It(r);
|
|
7796
7792
|
fn(r, _.mime);
|
|
7797
7793
|
}
|
|
7798
7794
|
async function y(_) {
|
|
@@ -7890,7 +7886,7 @@ function Jn(e) {
|
|
|
7890
7886
|
children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
|
|
7891
7887
|
}), /* @__PURE__ */ n(ce, {
|
|
7892
7888
|
flex: "none",
|
|
7893
|
-
children: /* @__PURE__ */ n(
|
|
7889
|
+
children: /* @__PURE__ */ n(At, {
|
|
7894
7890
|
style: {
|
|
7895
7891
|
opacity: t.view_id === v.view_id ? 1 : 0
|
|
7896
7892
|
}
|
|
@@ -7951,7 +7947,7 @@ function Jn(e) {
|
|
|
7951
7947
|
borderTopLeftRadius: 0,
|
|
7952
7948
|
borderBottomLeftRadius: 0
|
|
7953
7949
|
},
|
|
7954
|
-
icon: /* @__PURE__ */ n(
|
|
7950
|
+
icon: /* @__PURE__ */ n(Vt, {
|
|
7955
7951
|
style: {
|
|
7956
7952
|
fontSize: "0.5em"
|
|
7957
7953
|
}
|
|
@@ -7961,7 +7957,7 @@ function Jn(e) {
|
|
|
7961
7957
|
})]
|
|
7962
7958
|
});
|
|
7963
7959
|
}
|
|
7964
|
-
function
|
|
7960
|
+
function _t(e) {
|
|
7965
7961
|
const {
|
|
7966
7962
|
icon: t,
|
|
7967
7963
|
tooltip: r,
|
|
@@ -7990,7 +7986,7 @@ function It(e) {
|
|
|
7990
7986
|
overlay: l(),
|
|
7991
7987
|
disabled: a || !i || i.length === 0,
|
|
7992
7988
|
children: /* @__PURE__ */ H(Ie, {
|
|
7993
|
-
children: [t, " ", s, " ", /* @__PURE__ */ n(
|
|
7989
|
+
children: [t, " ", s, " ", /* @__PURE__ */ n(Vt, {})]
|
|
7994
7990
|
})
|
|
7995
7991
|
});
|
|
7996
7992
|
}
|
|
@@ -8082,7 +8078,7 @@ const id = (e) => {
|
|
|
8082
8078
|
lang: o
|
|
8083
8079
|
} = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ H(Ie, {
|
|
8084
8080
|
disabled: r,
|
|
8085
|
-
children: [/* @__PURE__ */ n(Kr, {}), `(${t})`, /* @__PURE__ */ n(
|
|
8081
|
+
children: [/* @__PURE__ */ n(Kr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
|
|
8086
8082
|
style: {
|
|
8087
8083
|
fontSize: 12
|
|
8088
8084
|
}
|
|
@@ -8106,7 +8102,7 @@ const id = (e) => {
|
|
|
8106
8102
|
onOpenAttachmentDetail: l,
|
|
8107
8103
|
onListAllAttachments: u
|
|
8108
8104
|
} = e;
|
|
8109
|
-
return o ? /* @__PURE__ */ n(
|
|
8105
|
+
return o ? /* @__PURE__ */ n(Me, {
|
|
8110
8106
|
style: {
|
|
8111
8107
|
padding: 20
|
|
8112
8108
|
}
|
|
@@ -8194,7 +8190,7 @@ function ad(e) {
|
|
|
8194
8190
|
formRef: a
|
|
8195
8191
|
} = Y(Xe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
|
|
8196
8192
|
t: v
|
|
8197
|
-
} = Y(we), p =
|
|
8193
|
+
} = Y(we), p = Re(async () => {
|
|
8198
8194
|
u(!0);
|
|
8199
8195
|
try {
|
|
8200
8196
|
const y = await B.getHandler().readObjects({
|
|
@@ -8213,7 +8209,7 @@ function ad(e) {
|
|
|
8213
8209
|
Ye(y);
|
|
8214
8210
|
}
|
|
8215
8211
|
u(!1);
|
|
8216
|
-
}, t), h =
|
|
8212
|
+
}, t), h = Re(async (y) => {
|
|
8217
8213
|
if (y.link) {
|
|
8218
8214
|
window.open(y.link);
|
|
8219
8215
|
return;
|
|
@@ -8231,11 +8227,11 @@ function ad(e) {
|
|
|
8231
8227
|
}
|
|
8232
8228
|
if (m(!1), !!O)
|
|
8233
8229
|
if (O.datas) {
|
|
8234
|
-
const _ = await
|
|
8230
|
+
const _ = await It(O.datas);
|
|
8235
8231
|
fn(O.datas, _.mime);
|
|
8236
8232
|
} else
|
|
8237
8233
|
s(O);
|
|
8238
|
-
}, []), g =
|
|
8234
|
+
}, []), g = Re(async (y) => {
|
|
8239
8235
|
s(y);
|
|
8240
8236
|
}, []);
|
|
8241
8237
|
return ge(() => {
|
|
@@ -8257,7 +8253,7 @@ function ad(e) {
|
|
|
8257
8253
|
closable: !1,
|
|
8258
8254
|
centered: !0,
|
|
8259
8255
|
maskClosable: !1,
|
|
8260
|
-
children: /* @__PURE__ */ n(
|
|
8256
|
+
children: /* @__PURE__ */ n(Me, {})
|
|
8261
8257
|
})]
|
|
8262
8258
|
});
|
|
8263
8259
|
}
|
|
@@ -8292,7 +8288,7 @@ function ld({
|
|
|
8292
8288
|
} = Y(Xe), {
|
|
8293
8289
|
t: x,
|
|
8294
8290
|
lang: F
|
|
8295
|
-
} = Y(we), C = Y(
|
|
8291
|
+
} = Y(we), C = Y(Rt), {
|
|
8296
8292
|
processAction: L
|
|
8297
8293
|
} = C || {}, S = Y(at), {
|
|
8298
8294
|
openRelate: R,
|
|
@@ -8383,7 +8379,7 @@ function ld({
|
|
|
8383
8379
|
return r ? /* @__PURE__ */ H(je, {
|
|
8384
8380
|
wrap: !0,
|
|
8385
8381
|
children: [O && /* @__PURE__ */ H(X, {
|
|
8386
|
-
children: [/* @__PURE__ */ n(
|
|
8382
|
+
children: [/* @__PURE__ */ n(Me, {}), Ct(), Ct()]
|
|
8387
8383
|
}), /* @__PURE__ */ n(Io, {
|
|
8388
8384
|
disabled: a || O || p || h
|
|
8389
8385
|
}), /* @__PURE__ */ n(Ue, {
|
|
@@ -8404,7 +8400,7 @@ function ld({
|
|
|
8404
8400
|
disabled: a || l === void 0 || p || h || O,
|
|
8405
8401
|
loading: p,
|
|
8406
8402
|
onClick: j
|
|
8407
|
-
}),
|
|
8403
|
+
}), Ct(), /* @__PURE__ */ n(Ue, {
|
|
8408
8404
|
icon: /* @__PURE__ */ n(Yr, {}),
|
|
8409
8405
|
tooltip: x("showLogs"),
|
|
8410
8406
|
disabled: a || l === void 0 || p || h || O,
|
|
@@ -8422,7 +8418,7 @@ function ld({
|
|
|
8422
8418
|
b.current.fetchValues();
|
|
8423
8419
|
});
|
|
8424
8420
|
}
|
|
8425
|
-
}),
|
|
8421
|
+
}), Ct(), /* @__PURE__ */ n(Jn, {
|
|
8426
8422
|
currentView: r,
|
|
8427
8423
|
previousView: I,
|
|
8428
8424
|
availableViews: t,
|
|
@@ -8431,7 +8427,7 @@ function ld({
|
|
|
8431
8427
|
},
|
|
8432
8428
|
disabled: z,
|
|
8433
8429
|
formHasChanges: s
|
|
8434
|
-
}),
|
|
8430
|
+
}), Ct(), /* @__PURE__ */ H(je, {
|
|
8435
8431
|
children: [/* @__PURE__ */ n(Ue, {
|
|
8436
8432
|
icon: /* @__PURE__ */ n(Br, {}),
|
|
8437
8433
|
tooltip: x("previous"),
|
|
@@ -8449,17 +8445,17 @@ function ld({
|
|
|
8449
8445
|
D(k);
|
|
8450
8446
|
}
|
|
8451
8447
|
})]
|
|
8452
|
-
}),
|
|
8448
|
+
}), Ct(), /* @__PURE__ */ n(_t, {
|
|
8453
8449
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
8454
8450
|
disabled: z,
|
|
8455
8451
|
tooltip: x("actions"),
|
|
8456
8452
|
items: e == null ? void 0 : e.action,
|
|
8457
8453
|
onItemClick: async ($) => {
|
|
8458
|
-
!$ || !(await
|
|
8454
|
+
!$ || !(await St({
|
|
8459
8455
|
onFormSave: o
|
|
8460
8456
|
})).succeed || q($);
|
|
8461
8457
|
}
|
|
8462
|
-
}), /* @__PURE__ */ n(
|
|
8458
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8463
8459
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
8464
8460
|
disabled: z,
|
|
8465
8461
|
tooltip: x("reports"),
|
|
@@ -8467,7 +8463,7 @@ function ld({
|
|
|
8467
8463
|
onItemClick: async ($) => {
|
|
8468
8464
|
if (!$)
|
|
8469
8465
|
return;
|
|
8470
|
-
const P = await
|
|
8466
|
+
const P = await St({
|
|
8471
8467
|
onFormSave: o
|
|
8472
8468
|
});
|
|
8473
8469
|
!P.succeed || q({
|
|
@@ -8478,13 +8474,13 @@ function ld({
|
|
|
8478
8474
|
}
|
|
8479
8475
|
});
|
|
8480
8476
|
}
|
|
8481
|
-
}), /* @__PURE__ */ n(
|
|
8477
|
+
}), /* @__PURE__ */ n(_t, {
|
|
8482
8478
|
icon: /* @__PURE__ */ n(Hr, {}),
|
|
8483
8479
|
disabled: z,
|
|
8484
8480
|
tooltip: x("related"),
|
|
8485
8481
|
items: e == null ? void 0 : e.relate,
|
|
8486
8482
|
onItemClick: async ($) => {
|
|
8487
|
-
!$ || !(await
|
|
8483
|
+
!$ || !(await St({
|
|
8488
8484
|
onFormSave: o
|
|
8489
8485
|
})).succeed || R({
|
|
8490
8486
|
relateData: $,
|
|
@@ -8498,7 +8494,7 @@ function ld({
|
|
|
8498
8494
|
disabled: z,
|
|
8499
8495
|
attachments: _,
|
|
8500
8496
|
onAddNewAttachment: async () => {
|
|
8501
|
-
const $ = await
|
|
8497
|
+
const $ = await St({
|
|
8502
8498
|
onFormSave: o
|
|
8503
8499
|
});
|
|
8504
8500
|
if (!$.succeed)
|
|
@@ -8517,7 +8513,7 @@ function ld({
|
|
|
8517
8513
|
});
|
|
8518
8514
|
},
|
|
8519
8515
|
onListAllAttachments: async () => {
|
|
8520
|
-
const $ = await
|
|
8516
|
+
const $ = await St({
|
|
8521
8517
|
onFormSave: o
|
|
8522
8518
|
});
|
|
8523
8519
|
if (!$.succeed)
|
|
@@ -8530,7 +8526,7 @@ function ld({
|
|
|
8530
8526
|
});
|
|
8531
8527
|
},
|
|
8532
8528
|
onViewAttachmentDetails: async ($) => {
|
|
8533
|
-
!(await
|
|
8529
|
+
!(await St({
|
|
8534
8530
|
onFormSave: o
|
|
8535
8531
|
})).succeed || V({
|
|
8536
8532
|
model: "ir.attachment",
|
|
@@ -8541,12 +8537,12 @@ function ld({
|
|
|
8541
8537
|
})]
|
|
8542
8538
|
}) : null;
|
|
8543
8539
|
}
|
|
8544
|
-
function
|
|
8540
|
+
function Ct() {
|
|
8545
8541
|
return /* @__PURE__ */ n("div", {
|
|
8546
8542
|
className: "inline-block w-2"
|
|
8547
8543
|
});
|
|
8548
8544
|
}
|
|
8549
|
-
async function
|
|
8545
|
+
async function St({
|
|
8550
8546
|
onFormSave: e
|
|
8551
8547
|
}) {
|
|
8552
8548
|
const t = await (e == null ? void 0 : e());
|
|
@@ -8591,7 +8587,7 @@ const {
|
|
|
8591
8587
|
children: [l ? null : /* @__PURE__ */ n(ce, {
|
|
8592
8588
|
flex: "32px",
|
|
8593
8589
|
children: v ? /* @__PURE__ */ n(Ie, {
|
|
8594
|
-
icon: /* @__PURE__ */ n(
|
|
8590
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
8595
8591
|
onClick: () => {
|
|
8596
8592
|
o(r) && (p(!1), g(!1));
|
|
8597
8593
|
},
|
|
@@ -8718,7 +8714,7 @@ const {
|
|
|
8718
8714
|
style: {
|
|
8719
8715
|
marginLeft: 15
|
|
8720
8716
|
},
|
|
8721
|
-
icon: /* @__PURE__ */ n(
|
|
8717
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
8722
8718
|
htmlType: "submit",
|
|
8723
8719
|
type: "primary",
|
|
8724
8720
|
disabled: o,
|
|
@@ -9009,7 +9005,7 @@ const yd = (e) => {
|
|
|
9009
9005
|
searchVisible: g,
|
|
9010
9006
|
searchValues: F,
|
|
9011
9007
|
showLimitOptions: !1
|
|
9012
|
-
}), N ? /* @__PURE__ */ n(
|
|
9008
|
+
}), N ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(pn, {
|
|
9013
9009
|
ref: u,
|
|
9014
9010
|
view_id: t.view_id,
|
|
9015
9011
|
model: i,
|
|
@@ -9160,7 +9156,7 @@ function xd(e) {
|
|
|
9160
9156
|
} = Y(bd), {
|
|
9161
9157
|
t: L,
|
|
9162
9158
|
lang: S
|
|
9163
|
-
} = Y(we), R = Y(
|
|
9159
|
+
} = Y(we), R = Y(Rt), {
|
|
9164
9160
|
processAction: V
|
|
9165
9161
|
} = R || {}, [E, D] = T(!1), k = y !== void 0 && y.trim().length > 0;
|
|
9166
9162
|
function N() {
|
|
@@ -9224,9 +9220,7 @@ function xd(e) {
|
|
|
9224
9220
|
}
|
|
9225
9221
|
return /* @__PURE__ */ H(je, {
|
|
9226
9222
|
wrap: !0,
|
|
9227
|
-
children: [
|
|
9228
|
-
children: [/* @__PURE__ */ n(Ae, {}), yt(), yt()]
|
|
9229
|
-
}), x ? null : /* @__PURE__ */ H(X, {
|
|
9223
|
+
children: [x ? null : /* @__PURE__ */ H(X, {
|
|
9230
9224
|
children: [/* @__PURE__ */ n(wd, {
|
|
9231
9225
|
disabled: l || a || O,
|
|
9232
9226
|
searchText: y,
|
|
@@ -9246,7 +9240,7 @@ function xd(e) {
|
|
|
9246
9240
|
},
|
|
9247
9241
|
disabled: l || a || O,
|
|
9248
9242
|
badgeNumber: v == null ? void 0 : v.length
|
|
9249
|
-
}),
|
|
9243
|
+
}), Et(), /* @__PURE__ */ n(Io, {
|
|
9250
9244
|
disabled: O
|
|
9251
9245
|
}), /* @__PURE__ */ n(Ue, {
|
|
9252
9246
|
icon: /* @__PURE__ */ n(Wn, {}),
|
|
@@ -9260,7 +9254,7 @@ function xd(e) {
|
|
|
9260
9254
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9261
9255
|
loading: a,
|
|
9262
9256
|
onClick: N
|
|
9263
|
-
}),
|
|
9257
|
+
}), Et()]
|
|
9264
9258
|
}), /* @__PURE__ */ n(Ue, {
|
|
9265
9259
|
icon: /* @__PURE__ */ n(Yr, {}),
|
|
9266
9260
|
tooltip: L("showLogs"),
|
|
@@ -9279,7 +9273,7 @@ function xd(e) {
|
|
|
9279
9273
|
(q = f == null ? void 0 : f.current) == null || q.refreshResults();
|
|
9280
9274
|
}
|
|
9281
9275
|
}), !x && /* @__PURE__ */ H(X, {
|
|
9282
|
-
children: [
|
|
9276
|
+
children: [Et(), /* @__PURE__ */ n(Jn, {
|
|
9283
9277
|
currentView: r,
|
|
9284
9278
|
availableViews: t,
|
|
9285
9279
|
onChangeView: (q) => {
|
|
@@ -9288,7 +9282,7 @@ function xd(e) {
|
|
|
9288
9282
|
previousView: b,
|
|
9289
9283
|
disabled: O
|
|
9290
9284
|
})]
|
|
9291
|
-
}),
|
|
9285
|
+
}), Et(), /* @__PURE__ */ n(_t, {
|
|
9292
9286
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
9293
9287
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9294
9288
|
tooltip: L("actions"),
|
|
@@ -9296,7 +9290,7 @@ function xd(e) {
|
|
|
9296
9290
|
onItemClick: (q) => {
|
|
9297
9291
|
!q || K(q);
|
|
9298
9292
|
}
|
|
9299
|
-
}), /* @__PURE__ */ n(
|
|
9293
|
+
}), /* @__PURE__ */ n(_t, {
|
|
9300
9294
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9301
9295
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
|
|
9302
9296
|
tooltip: L("reports"),
|
|
@@ -9311,7 +9305,7 @@ function xd(e) {
|
|
|
9311
9305
|
});
|
|
9312
9306
|
}
|
|
9313
9307
|
}), C && /* @__PURE__ */ H(X, {
|
|
9314
|
-
children: [
|
|
9308
|
+
children: [Et(), /* @__PURE__ */ n(_t, {
|
|
9315
9309
|
icon: /* @__PURE__ */ n(Mr, {
|
|
9316
9310
|
component: () => /* @__PURE__ */ H("svg", {
|
|
9317
9311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9381,7 +9375,7 @@ function xd(e) {
|
|
|
9381
9375
|
})]
|
|
9382
9376
|
});
|
|
9383
9377
|
}
|
|
9384
|
-
function
|
|
9378
|
+
function Et() {
|
|
9385
9379
|
return /* @__PURE__ */ n("div", {
|
|
9386
9380
|
className: "inline-block w-2"
|
|
9387
9381
|
});
|
|
@@ -9560,7 +9554,7 @@ function Id(e, t) {
|
|
|
9560
9554
|
setCurrentId: J,
|
|
9561
9555
|
tabs: pe,
|
|
9562
9556
|
activeKey: ye,
|
|
9563
|
-
openAction:
|
|
9557
|
+
openAction: Ae,
|
|
9564
9558
|
onRemoveTab: de
|
|
9565
9559
|
} = se || {};
|
|
9566
9560
|
Mi("ctrl+g,command+g", (te) => {
|
|
@@ -9572,19 +9566,19 @@ function Id(e, t) {
|
|
|
9572
9566
|
function Te(te) {
|
|
9573
9567
|
O(te), ee == null || ee(te);
|
|
9574
9568
|
}
|
|
9575
|
-
|
|
9569
|
+
wt(t, () => ({
|
|
9576
9570
|
canWeClose: Fe
|
|
9577
9571
|
}));
|
|
9578
9572
|
const be = async () => {
|
|
9579
9573
|
I(!0);
|
|
9580
9574
|
const te = [], ue = [];
|
|
9581
9575
|
for (const le of s) {
|
|
9582
|
-
const [De,
|
|
9583
|
-
|
|
9576
|
+
const [De, ke] = le;
|
|
9577
|
+
ke !== "dashboard" ? ue.push({
|
|
9584
9578
|
viewTuple: le,
|
|
9585
9579
|
promise: B.getHandler().getView({
|
|
9586
9580
|
model: i,
|
|
9587
|
-
type:
|
|
9581
|
+
type: ke,
|
|
9588
9582
|
id: De,
|
|
9589
9583
|
context: o
|
|
9590
9584
|
})
|
|
@@ -9597,7 +9591,7 @@ function Id(e, t) {
|
|
|
9597
9591
|
if (!le)
|
|
9598
9592
|
continue;
|
|
9599
9593
|
const [, De] = le.viewTuple;
|
|
9600
|
-
let
|
|
9594
|
+
let ke = le.info;
|
|
9601
9595
|
switch (De) {
|
|
9602
9596
|
case "dashboard": {
|
|
9603
9597
|
const tt = s.find((nt) => {
|
|
@@ -9624,14 +9618,14 @@ function Id(e, t) {
|
|
|
9624
9618
|
}
|
|
9625
9619
|
case "form": {
|
|
9626
9620
|
te.push({
|
|
9627
|
-
...
|
|
9621
|
+
...ke,
|
|
9628
9622
|
type: De
|
|
9629
9623
|
});
|
|
9630
9624
|
break;
|
|
9631
9625
|
}
|
|
9632
9626
|
case "tree": {
|
|
9633
9627
|
te.push({
|
|
9634
|
-
...
|
|
9628
|
+
...ke,
|
|
9635
9629
|
isExpandable: h,
|
|
9636
9630
|
type: De
|
|
9637
9631
|
});
|
|
@@ -9639,7 +9633,7 @@ function Id(e, t) {
|
|
|
9639
9633
|
}
|
|
9640
9634
|
case "graph": {
|
|
9641
9635
|
te.push({
|
|
9642
|
-
...
|
|
9636
|
+
...ke,
|
|
9643
9637
|
type: De
|
|
9644
9638
|
});
|
|
9645
9639
|
break;
|
|
@@ -9687,7 +9681,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9687
9681
|
xe = R[ue];
|
|
9688
9682
|
z(!1), W(!1);
|
|
9689
9683
|
const Pe = s.find((De) => De[1] === "form");
|
|
9690
|
-
|
|
9684
|
+
Ae({
|
|
9691
9685
|
domain: [],
|
|
9692
9686
|
context: o,
|
|
9693
9687
|
model: i,
|
|
@@ -9764,7 +9758,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9764
9758
|
Te(te);
|
|
9765
9759
|
}
|
|
9766
9760
|
}
|
|
9767
|
-
return A ? /* @__PURE__ */ n(
|
|
9761
|
+
return A ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ H(nl, {
|
|
9768
9762
|
title: a,
|
|
9769
9763
|
currentView: y,
|
|
9770
9764
|
setCurrentView: Te,
|
|
@@ -9799,7 +9793,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9799
9793
|
})]
|
|
9800
9794
|
}) : null;
|
|
9801
9795
|
}
|
|
9802
|
-
const ko =
|
|
9796
|
+
const ko = vt(Id);
|
|
9803
9797
|
async function Dd({
|
|
9804
9798
|
actionId: e,
|
|
9805
9799
|
rootContext: t = {},
|
|
@@ -9808,7 +9802,7 @@ async function Dd({
|
|
|
9808
9802
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await B.getHandler().getActionData({
|
|
9809
9803
|
action: o,
|
|
9810
9804
|
context: t
|
|
9811
|
-
}), a =
|
|
9805
|
+
}), a = yt({
|
|
9812
9806
|
context: s.context,
|
|
9813
9807
|
values: r,
|
|
9814
9808
|
fields: {}
|
|
@@ -9967,8 +9961,8 @@ function $d(e) {
|
|
|
9967
9961
|
}, q = async () => {
|
|
9968
9962
|
const J = K.current.length > 0 ? K.current : s, pe = mn(M.current, J), {
|
|
9969
9963
|
colors: ye
|
|
9970
|
-
} =
|
|
9971
|
-
totalItems:
|
|
9964
|
+
} = Ft(p), {
|
|
9965
|
+
totalItems: Ae,
|
|
9972
9966
|
results: de,
|
|
9973
9967
|
attrsEvaluated: oe
|
|
9974
9968
|
} = await B.getHandler().searchForTree({
|
|
@@ -9983,7 +9977,7 @@ function $d(e) {
|
|
|
9983
9977
|
}
|
|
9984
9978
|
});
|
|
9985
9979
|
S(Xt(oe));
|
|
9986
|
-
const Te =
|
|
9980
|
+
const Te = Ot({
|
|
9987
9981
|
resultsToSort: de,
|
|
9988
9982
|
sorter: R,
|
|
9989
9983
|
fields: {
|
|
@@ -9992,7 +9986,7 @@ function $d(e) {
|
|
|
9992
9986
|
}
|
|
9993
9987
|
});
|
|
9994
9988
|
W(!1), C(Te);
|
|
9995
|
-
const be = await
|
|
9989
|
+
const be = await Ae;
|
|
9996
9990
|
x(be);
|
|
9997
9991
|
}, $ = async () => {
|
|
9998
9992
|
try {
|
|
@@ -10070,7 +10064,7 @@ function $d(e) {
|
|
|
10070
10064
|
sorter: R,
|
|
10071
10065
|
onChangeSort: (J) => {
|
|
10072
10066
|
V == null || V(J);
|
|
10073
|
-
const pe =
|
|
10067
|
+
const pe = Ot({
|
|
10074
10068
|
resultsToSort: F,
|
|
10075
10069
|
sorter: J,
|
|
10076
10070
|
fields: {
|
|
@@ -10088,7 +10082,7 @@ function $d(e) {
|
|
|
10088
10082
|
message: k,
|
|
10089
10083
|
type: "error",
|
|
10090
10084
|
banner: !0
|
|
10091
|
-
}) : u ? /* @__PURE__ */ n(
|
|
10085
|
+
}) : u ? /* @__PURE__ */ n(Me, {
|
|
10092
10086
|
style: {
|
|
10093
10087
|
padding: "2rem"
|
|
10094
10088
|
}
|
|
@@ -10135,7 +10129,7 @@ function Nd(e, t) {
|
|
|
10135
10129
|
} = Y(Zn), h = me(), g = me();
|
|
10136
10130
|
ge(() => {
|
|
10137
10131
|
y();
|
|
10138
|
-
}, [r, o, i]),
|
|
10132
|
+
}, [r, o, i]), wt(t, () => ({
|
|
10139
10133
|
refresh: () => {
|
|
10140
10134
|
y();
|
|
10141
10135
|
},
|
|
@@ -10327,12 +10321,12 @@ function Nd(e, t) {
|
|
|
10327
10321
|
const [ee, J] = se, {
|
|
10328
10322
|
actionId: pe,
|
|
10329
10323
|
actionType: ye,
|
|
10330
|
-
title:
|
|
10324
|
+
title: Ae,
|
|
10331
10325
|
model: de
|
|
10332
10326
|
} = F, oe = {
|
|
10333
10327
|
action_id: pe,
|
|
10334
10328
|
action_type: ye,
|
|
10335
|
-
name:
|
|
10329
|
+
name: Ae,
|
|
10336
10330
|
res_id: ie.id,
|
|
10337
10331
|
res_model: de,
|
|
10338
10332
|
view_id: ee,
|
|
@@ -10395,7 +10389,7 @@ function Nd(e, t) {
|
|
|
10395
10389
|
})
|
|
10396
10390
|
});
|
|
10397
10391
|
}
|
|
10398
|
-
const Pd =
|
|
10392
|
+
const Pd = vt(Nd), Hd = (e) => {
|
|
10399
10393
|
const {
|
|
10400
10394
|
ooui: t
|
|
10401
10395
|
} = e;
|
|
@@ -10422,7 +10416,7 @@ const Pd = wt(Nd), Hd = (e) => {
|
|
|
10422
10416
|
} = r, y = Y(Ee), {
|
|
10423
10417
|
getContext: O
|
|
10424
10418
|
} = y || {};
|
|
10425
|
-
|
|
10419
|
+
xt(() => {
|
|
10426
10420
|
b();
|
|
10427
10421
|
}, [o]);
|
|
10428
10422
|
const _ = (w) => {
|
|
@@ -10436,7 +10430,7 @@ const Pd = wt(Nd), Hd = (e) => {
|
|
|
10436
10430
|
if (r.domain) {
|
|
10437
10431
|
const x = await B.getHandler().evalDomain({
|
|
10438
10432
|
domain: r.domain,
|
|
10439
|
-
values:
|
|
10433
|
+
values: kt({
|
|
10440
10434
|
fields: y == null ? void 0 : y.getFields(),
|
|
10441
10435
|
values: y.getPlainValues()
|
|
10442
10436
|
}),
|
|
@@ -10495,7 +10489,7 @@ const Pd = wt(Nd), Hd = (e) => {
|
|
|
10495
10489
|
});
|
|
10496
10490
|
}), _(x);
|
|
10497
10491
|
};
|
|
10498
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(
|
|
10492
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(X, {
|
|
10499
10493
|
children: /* @__PURE__ */ H("div", {
|
|
10500
10494
|
className: "flex flex-row",
|
|
10501
10495
|
children: [/* @__PURE__ */ n(Lt.Group, {
|
|
@@ -10695,7 +10689,7 @@ function eu(e, t) {
|
|
|
10695
10689
|
closable: !0,
|
|
10696
10690
|
content: /* @__PURE__ */ n(Qd, {})
|
|
10697
10691
|
}]), f = me(/* @__PURE__ */ new Map()), d = me();
|
|
10698
|
-
|
|
10692
|
+
wt(t, () => ({
|
|
10699
10693
|
retrieveAndOpenAction: p,
|
|
10700
10694
|
openShortcut: y
|
|
10701
10695
|
}));
|
|
@@ -10728,7 +10722,7 @@ function eu(e, t) {
|
|
|
10728
10722
|
Ye("Action type not supported");
|
|
10729
10723
|
return;
|
|
10730
10724
|
}
|
|
10731
|
-
const [C, L] = b.split(","), S = parseInt(L), R =
|
|
10725
|
+
const [C, L] = b.split(","), S = parseInt(L), R = yt({
|
|
10732
10726
|
context: F.context,
|
|
10733
10727
|
values: i,
|
|
10734
10728
|
fields: {}
|
|
@@ -10835,7 +10829,7 @@ function eu(e, t) {
|
|
|
10835
10829
|
} = b, [E, D] = L[0], k = {
|
|
10836
10830
|
id: E,
|
|
10837
10831
|
type: D
|
|
10838
|
-
}, N =
|
|
10832
|
+
}, N = yt({
|
|
10839
10833
|
context: F,
|
|
10840
10834
|
values: {
|
|
10841
10835
|
...I,
|
|
@@ -10844,7 +10838,7 @@ function eu(e, t) {
|
|
|
10844
10838
|
fields: A
|
|
10845
10839
|
}), j = C ? await B.getHandler().evalDomain({
|
|
10846
10840
|
domain: C,
|
|
10847
|
-
values:
|
|
10841
|
+
values: kt({
|
|
10848
10842
|
fields: A,
|
|
10849
10843
|
values: {
|
|
10850
10844
|
...I,
|
|
@@ -10882,7 +10876,7 @@ function eu(e, t) {
|
|
|
10882
10876
|
} = b, x = `${I},${A}`, F = await B.getHandler().getActionData({
|
|
10883
10877
|
action: x,
|
|
10884
10878
|
context: o
|
|
10885
|
-
}), C =
|
|
10879
|
+
}), C = yt({
|
|
10886
10880
|
context: F.context,
|
|
10887
10881
|
values: i,
|
|
10888
10882
|
fields: {}
|
|
@@ -11069,7 +11063,7 @@ function eu(e, t) {
|
|
|
11069
11063
|
})
|
|
11070
11064
|
});
|
|
11071
11065
|
}
|
|
11072
|
-
const Au =
|
|
11066
|
+
const Au = vt(eu), {
|
|
11073
11067
|
useToken: tu
|
|
11074
11068
|
} = $e;
|
|
11075
11069
|
function nu(e) {
|
|
@@ -11279,7 +11273,7 @@ const {
|
|
|
11279
11273
|
})
|
|
11280
11274
|
})
|
|
11281
11275
|
})]
|
|
11282
|
-
}), /* @__PURE__ */ n(Le.Divider, {}), d ? /* @__PURE__ */ n(
|
|
11276
|
+
}), /* @__PURE__ */ n(Le.Divider, {}), d ? /* @__PURE__ */ n(Me, {
|
|
11283
11277
|
style: {
|
|
11284
11278
|
padding: "1rem"
|
|
11285
11279
|
}
|
|
@@ -11365,7 +11359,7 @@ const {
|
|
|
11365
11359
|
borderTopLeftRadius: 0,
|
|
11366
11360
|
borderBottomLeftRadius: 0
|
|
11367
11361
|
},
|
|
11368
|
-
icon: /* @__PURE__ */ n(
|
|
11362
|
+
icon: /* @__PURE__ */ n(Vt, {
|
|
11369
11363
|
style: {
|
|
11370
11364
|
fontSize: "0.5em"
|
|
11371
11365
|
}
|