@gisce/react-ooui 2.0.5 → 2.0.6-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Zo = Object.defineProperty;
|
|
2
2
|
var Qo = (e, t, r) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var lr = (e, t, r) => (Qo(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { jsxs as
|
|
4
|
+
import { jsxs as V, jsx as n, Fragment as X } from "react/jsx-runtime";
|
|
5
5
|
import tt, { useContext as H, useState as v, useEffect as fe, useRef as de, useCallback as Se, forwardRef as yt, useImperativeHandle as wt, useMemo as De, memo as Dr, Fragment as ei } from "react";
|
|
6
|
-
import { Tooltip as gt, theme as Ke, Typography as zt, Form as dt, Row as Te, Col as ce, Modal as Ze, Button as
|
|
6
|
+
import { Tooltip as gt, theme as Ke, Typography as zt, Form as dt, Row as Te, Col as ce, Modal as Ze, Button as Ve, Dropdown as Jt, Menu as He, Spin as ke, Divider as mn, Space as Ye, Input as st, Select as St, Checkbox as jt, Alert as nt, Timeline as Vn, Statistic as ti, Card as Bn, Tag as kr, message as In, DatePicker as Hn, TimePicker as ni, InputNumber as Er, Progress as ri, Avatar as Nr, Pagination as oi, Badge as ii, Tabs as Mr, Popover as si, Radio as cr, Switch as ai, Steps as dr, Layout as li } from "antd";
|
|
7
7
|
import { Label as Et, Field as Dn, Tree as Pr, Reference as ci, Selection as Kn, Many2one as Lr, Boolean as di, Container as ui, parseContext as Ct, Form as $r, Integer as kn, SearchFieldTypes as pt, SearchFilter as fi, parseContextFields as Fn, parseDomainFields as ur, transformDomainForChildWidget as Br, graphProcessor as Hr, parseGraph as Wn, graphFieldUtils as mi } from "@gisce/ooui";
|
|
8
8
|
import * as fr from "@ant-design/icons";
|
|
9
9
|
import Kr, { QuestionCircleOutlined as Wr, ExclamationCircleOutlined as vt, LoadingOutlined as lt, DownOutlined as Nt, WarningOutlined as jr, CloseOutlined as Xt, CheckOutlined as Mt, TranslationOutlined as Ur, FolderOpenOutlined as jn, DownloadOutlined as Un, ClearOutlined as Yn, StarFilled as Yr, StarOutlined as Gr, UpOutlined as hi, SearchOutlined as Gn, RightCircleOutlined as pi, ThunderboltOutlined as qn, PrinterOutlined as zn, EnterOutlined as qr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as hn, AlignLeftOutlined as wi, ApiOutlined as vi, DeleteOutlined as Jn, LeftOutlined as zr, RightOutlined as Jr, EyeOutlined as bi, FormOutlined as Ut, TableOutlined as Xn, AreaChartOutlined as Ci, CalendarOutlined as xi, LinkOutlined as Xr, SaveOutlined as Si, CopyOutlined as Zn, InfoCircleOutlined as Zr, ReloadOutlined as pn, EditOutlined as Qr, FilterOutlined as eo, CloseCircleFilled as Ti, BorderOuterOutlined as Ii, SettingOutlined as Fi, ExportOutlined as _i } from "@ant-design/icons";
|
|
@@ -14,7 +14,7 @@ import Pt from "styled-components";
|
|
|
14
14
|
import er from "react-measure";
|
|
15
15
|
import Ri from "lodash/debounce";
|
|
16
16
|
import En from "antd/lib/typography/Title";
|
|
17
|
-
import { Line as
|
|
17
|
+
import { Line as Ai, Column as Vi, Pie as Di } from "@ant-design/plots";
|
|
18
18
|
import rt from "dayjs";
|
|
19
19
|
import ki from "dayjs/plugin/advancedFormat";
|
|
20
20
|
import Ei from "dayjs/plugin/customParseFormat";
|
|
@@ -48,7 +48,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
|
|
|
48
48
|
right: "justify-end"
|
|
49
49
|
}, gn = (e) => {
|
|
50
50
|
const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: g } = ss(), h = l === void 0 ? os : is;
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ V(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: `flex flex-row items-center pb-1 pt-1 ${as[m]}`,
|
|
@@ -348,7 +348,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
|
|
|
348
348
|
), fs = (e) => {
|
|
349
349
|
const { children: t, lang: r } = e;
|
|
350
350
|
function i(o) {
|
|
351
|
-
return
|
|
351
|
+
return Ae(o, r);
|
|
352
352
|
}
|
|
353
353
|
return /* @__PURE__ */ n(
|
|
354
354
|
he.Provider,
|
|
@@ -360,7 +360,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
|
|
|
360
360
|
children: t
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
},
|
|
363
|
+
}, Ae = (e, t) => {
|
|
364
364
|
var i;
|
|
365
365
|
return ((i = us[t]) == null ? void 0 : i[e]) || e;
|
|
366
366
|
};
|
|
@@ -407,10 +407,10 @@ function we({
|
|
|
407
407
|
align: s
|
|
408
408
|
}
|
|
409
409
|
);
|
|
410
|
-
return r === "horizontal" ? (() => /* @__PURE__ */
|
|
410
|
+
return r === "horizontal" ? (() => /* @__PURE__ */ V(Te, { align: "middle", className: "pb-1 pt-1", children: [
|
|
411
411
|
/* @__PURE__ */ n(ce, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ n("div", { className: "flex flex-col items-end", children: p }) }),
|
|
412
412
|
/* @__PURE__ */ n(ce, { flex: "auto", children: h() })
|
|
413
|
-
] }))() : (() => /* @__PURE__ */
|
|
413
|
+
] }))() : (() => /* @__PURE__ */ V(X, { children: [
|
|
414
414
|
p,
|
|
415
415
|
h()
|
|
416
416
|
] }))();
|
|
@@ -421,12 +421,12 @@ const { confirm: ms } = Ze, Zt = ({
|
|
|
421
421
|
lang: r
|
|
422
422
|
}) => {
|
|
423
423
|
ms({
|
|
424
|
-
title:
|
|
424
|
+
title: Ae("confirmation", r),
|
|
425
425
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
426
426
|
centered: !0,
|
|
427
427
|
content: t,
|
|
428
|
-
okText:
|
|
429
|
-
cancelText:
|
|
428
|
+
okText: Ae("ok", r),
|
|
429
|
+
cancelText: Ae("cancel", r),
|
|
430
430
|
onOk: e
|
|
431
431
|
});
|
|
432
432
|
}, Be = tt.createContext(null), hs = (e) => {
|
|
@@ -629,7 +629,7 @@ const ro = (e) => {
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
return /* @__PURE__ */ n(we, { ooui: t, children: /* @__PURE__ */ n(
|
|
632
|
-
|
|
632
|
+
Ve,
|
|
633
633
|
{
|
|
634
634
|
block: !0,
|
|
635
635
|
disabled: !o || d || m,
|
|
@@ -681,7 +681,7 @@ const ro = (e) => {
|
|
|
681
681
|
if (t.buttons.length === 0)
|
|
682
682
|
return null;
|
|
683
683
|
if (t.buttons.length > 1)
|
|
684
|
-
return /* @__PURE__ */ n(we, { ooui: new Dn({ ooui: t }), children: /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ n(we, { ooui: new Dn({ ooui: t }), children: /* @__PURE__ */ V(
|
|
685
685
|
Jt.Button,
|
|
686
686
|
{
|
|
687
687
|
disabled: !a || g,
|
|
@@ -780,18 +780,18 @@ function yn() {
|
|
|
780
780
|
height: e.height
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const At = class At {
|
|
784
784
|
static init(t) {
|
|
785
|
-
|
|
785
|
+
At.handler = t;
|
|
786
786
|
}
|
|
787
787
|
static getHandler() {
|
|
788
|
-
if (!
|
|
788
|
+
if (!At.handler)
|
|
789
789
|
throw "Must call init() first with a valid ConnectionProvider instance";
|
|
790
|
-
return
|
|
790
|
+
return At.handler;
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
|
-
lr(
|
|
794
|
-
let E =
|
|
793
|
+
lr(At, "handler");
|
|
794
|
+
let E = At;
|
|
795
795
|
const oo = (e) => {
|
|
796
796
|
let t, r, i;
|
|
797
797
|
if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
|
|
@@ -858,7 +858,7 @@ const oo = (e) => {
|
|
|
858
858
|
w.current = b, y(b);
|
|
859
859
|
}
|
|
860
860
|
function S() {
|
|
861
|
-
return d.map((C, b) => /* @__PURE__ */
|
|
861
|
+
return d.map((C, b) => /* @__PURE__ */ V(Te, { style: { paddingBottom: 20 }, children: [
|
|
862
862
|
/* @__PURE__ */ n(ce, { flex: "8rem", style: { paddingRight: 10 }, children: C.name }),
|
|
863
863
|
/* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
|
|
864
864
|
Oi,
|
|
@@ -894,13 +894,13 @@ const oo = (e) => {
|
|
|
894
894
|
}
|
|
895
895
|
h(!1), a();
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
return f ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */
|
|
897
|
+
function A() {
|
|
898
|
+
return f ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
|
|
899
899
|
S(),
|
|
900
900
|
/* @__PURE__ */ n(mn, {}),
|
|
901
|
-
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
|
|
902
902
|
/* @__PURE__ */ n(
|
|
903
|
-
|
|
903
|
+
Ve,
|
|
904
904
|
{
|
|
905
905
|
icon: /* @__PURE__ */ n(Xt, {}),
|
|
906
906
|
onClick: r,
|
|
@@ -909,7 +909,7 @@ const oo = (e) => {
|
|
|
909
909
|
}
|
|
910
910
|
),
|
|
911
911
|
/* @__PURE__ */ n(
|
|
912
|
-
|
|
912
|
+
Ve,
|
|
913
913
|
{
|
|
914
914
|
icon: g ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(Mt, {}),
|
|
915
915
|
disabled: g,
|
|
@@ -934,13 +934,13 @@ const oo = (e) => {
|
|
|
934
934
|
footer: null,
|
|
935
935
|
destroyOnClose: !0,
|
|
936
936
|
maskClosable: !1,
|
|
937
|
-
children:
|
|
937
|
+
children: A()
|
|
938
938
|
}
|
|
939
939
|
);
|
|
940
940
|
};
|
|
941
941
|
function et(e) {
|
|
942
942
|
const { tooltip: t, ...r } = e;
|
|
943
|
-
return /* @__PURE__ */ n(gt, { title: t, children: /* @__PURE__ */ n(
|
|
943
|
+
return /* @__PURE__ */ n(gt, { title: t, children: /* @__PURE__ */ n(Ve, { ...r }) });
|
|
944
944
|
}
|
|
945
945
|
const { info: Cs } = Ze, ht = (e) => {
|
|
946
946
|
Cs({
|
|
@@ -981,7 +981,7 @@ const { info: Cs } = Ze, ht = (e) => {
|
|
|
981
981
|
formHasChanges: c,
|
|
982
982
|
elementHasLostFocus: d
|
|
983
983
|
} = o || {}, [u, f] = v(!1), { t: m } = H(he);
|
|
984
|
-
return s ? /* @__PURE__ */
|
|
984
|
+
return s ? /* @__PURE__ */ V(X, { children: [
|
|
985
985
|
/* @__PURE__ */ n(
|
|
986
986
|
"div",
|
|
987
987
|
{
|
|
@@ -1022,7 +1022,7 @@ const { info: Cs } = Ze, ht = (e) => {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
)
|
|
1025
|
-
] }) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */
|
|
1025
|
+
] }) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
|
|
1026
1026
|
/* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
|
|
1027
1027
|
st,
|
|
1028
1028
|
{
|
|
@@ -1071,7 +1071,7 @@ const { info: Cs } = Ze, ht = (e) => {
|
|
|
1071
1071
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1072
1072
|
background-color: ${Fs.colorPrimaryBg};
|
|
1073
1073
|
}
|
|
1074
|
-
`, { defaultAlgorithm: Rs, defaultSeed:
|
|
1074
|
+
`, { defaultAlgorithm: Rs, defaultSeed: As } = Ke, yr = Rs(As), Vs = (e) => {
|
|
1075
1075
|
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
1076
1076
|
return /* @__PURE__ */ n(we, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Ds, { id: r, readOnly: i, required: o }) });
|
|
1077
1077
|
}, Ds = (e) => {
|
|
@@ -1129,8 +1129,8 @@ const Ns = (e) => {
|
|
|
1129
1129
|
function u() {
|
|
1130
1130
|
l(void 0);
|
|
1131
1131
|
}
|
|
1132
|
-
return /* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1132
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
1133
|
+
/* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, justify: "center", children: [
|
|
1134
1134
|
r && /* @__PURE__ */ n(
|
|
1135
1135
|
"img",
|
|
1136
1136
|
{
|
|
@@ -1150,7 +1150,7 @@ const Ns = (e) => {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
)
|
|
1152
1152
|
] }),
|
|
1153
|
-
/* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ V(Ye, { children: [
|
|
1154
1154
|
/* @__PURE__ */ n(
|
|
1155
1155
|
et,
|
|
1156
1156
|
{
|
|
@@ -1203,21 +1203,23 @@ const Ns = (e) => {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
);
|
|
1206
|
-
},
|
|
1206
|
+
}, Vt = (e) => {
|
|
1207
1207
|
const t = e.arch, r = e.fields, i = new Pr(r);
|
|
1208
1208
|
return i.parse(t), i;
|
|
1209
1209
|
};
|
|
1210
1210
|
function $s(e) {
|
|
1211
|
-
return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0;
|
|
1211
|
+
return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
|
|
1212
1212
|
}
|
|
1213
1213
|
const Bs = (e, t, r) => e.columns.map((o) => {
|
|
1214
1214
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1215
1215
|
let c;
|
|
1216
|
-
return l ? c = (d) => l({ value: d, key: a, ooui: o, context: r }) : c = (d) => $s(d) ? d : /* @__PURE__ */
|
|
1217
|
-
"Unsupported widget
|
|
1218
|
-
/* @__PURE__ */ n("pre", { children: /* @__PURE__ */
|
|
1216
|
+
return l ? c = (d) => l({ value: d, key: a, ooui: o, context: r }) : c = (d) => $s(d) ? d : /* @__PURE__ */ V("p", { style: { color: "red" }, children: [
|
|
1217
|
+
"Unsupported widget value for a Tree cell:",
|
|
1218
|
+
/* @__PURE__ */ n("pre", { children: /* @__PURE__ */ V("strong", { children: [
|
|
1219
|
+
"Type: ",
|
|
1219
1220
|
s,
|
|
1220
|
-
":"
|
|
1221
|
+
" - Value: ",
|
|
1222
|
+
JSON.stringify(d)
|
|
1221
1223
|
] }) })
|
|
1222
1224
|
] }), {
|
|
1223
1225
|
key: a,
|
|
@@ -1296,7 +1298,7 @@ const tr = async (e) => {
|
|
|
1296
1298
|
};
|
|
1297
1299
|
let u = [], f;
|
|
1298
1300
|
if (a === "tree" && (o != null && o.arch)) {
|
|
1299
|
-
const p = (h =
|
|
1301
|
+
const p = (h = Vt(o)) == null ? void 0 : h.colors, y = await E.getHandler().readEvalUiObjects({
|
|
1300
1302
|
model: r,
|
|
1301
1303
|
ids: c,
|
|
1302
1304
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1366,14 +1368,14 @@ const tr = async (e) => {
|
|
|
1366
1368
|
}, Us = (e) => {
|
|
1367
1369
|
const { value: t, views: r, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = v(!1), [c, d] = v(), [u, f] = v(!1), [m, g] = v(), { relation: h, context: p, readOnly: y, summaryField: w, titleField: F } = i, _ = s.filter((C) => C.values), T = H(Be), { getContext: S } = T || {};
|
|
1368
1370
|
Tt(() => {
|
|
1369
|
-
|
|
1371
|
+
A();
|
|
1370
1372
|
}, [s]);
|
|
1371
1373
|
const D = (C) => {
|
|
1372
1374
|
o == null || o({
|
|
1373
1375
|
items: C
|
|
1374
1376
|
});
|
|
1375
1377
|
};
|
|
1376
|
-
async function
|
|
1378
|
+
async function A() {
|
|
1377
1379
|
l(!0), d(void 0);
|
|
1378
1380
|
try {
|
|
1379
1381
|
const [C] = await tr({
|
|
@@ -1396,10 +1398,10 @@ const tr = async (e) => {
|
|
|
1396
1398
|
l(!1);
|
|
1397
1399
|
}
|
|
1398
1400
|
}
|
|
1399
|
-
return c ? /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */ n(
|
|
1401
|
+
return c ? /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
|
|
1402
|
+
/* @__PURE__ */ n(Vn, { style: { padding: "1rem" }, children: _.map((C, b) => {
|
|
1401
1403
|
var I, x;
|
|
1402
|
-
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ V(Vn.Item, { children: [
|
|
1403
1405
|
/* @__PURE__ */ n(
|
|
1404
1406
|
"div",
|
|
1405
1407
|
{
|
|
@@ -1448,7 +1450,7 @@ const tr = async (e) => {
|
|
|
1448
1450
|
f(!1);
|
|
1449
1451
|
},
|
|
1450
1452
|
readOnly: y,
|
|
1451
|
-
postSaveAction:
|
|
1453
|
+
postSaveAction: A
|
|
1452
1454
|
}
|
|
1453
1455
|
)
|
|
1454
1456
|
] });
|
|
@@ -1456,8 +1458,8 @@ const tr = async (e) => {
|
|
|
1456
1458
|
const { ooui: t } = e;
|
|
1457
1459
|
return /* @__PURE__ */ n(we, { ooui: t, children: /* @__PURE__ */ n(qs, { ooui: t }) });
|
|
1458
1460
|
}, qs = (e) => {
|
|
1459
|
-
const { token: t } = Ys(), { ooui: r, value: i } = e, o = /* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1461
|
+
const { token: t } = Ys(), { ooui: r, value: i } = e, o = /* @__PURE__ */ V(X, { children: [
|
|
1462
|
+
/* @__PURE__ */ V("span", { children: [
|
|
1461
1463
|
r.label,
|
|
1462
1464
|
" "
|
|
1463
1465
|
] }),
|
|
@@ -1668,24 +1670,24 @@ const Lt = ({
|
|
|
1668
1670
|
return Array.isArray(I) && (x = I[1]), { label: x, value: b.id };
|
|
1669
1671
|
});
|
|
1670
1672
|
l(C);
|
|
1671
|
-
} catch (
|
|
1672
|
-
d(
|
|
1673
|
+
} catch (A) {
|
|
1674
|
+
d(A);
|
|
1673
1675
|
} finally {
|
|
1674
1676
|
f(!1);
|
|
1675
1677
|
}
|
|
1676
1678
|
}
|
|
1677
1679
|
const T = (D) => {
|
|
1678
|
-
const
|
|
1680
|
+
const A = o.map((b) => D.includes(b.id) ? b.operation == "pendingRemove" ? {
|
|
1679
1681
|
...b,
|
|
1680
1682
|
operation: "pendingLink"
|
|
1681
|
-
} : b : { id: b.id, operation: "pendingRemove" }), C =
|
|
1683
|
+
} : b : { id: b.id, operation: "pendingRemove" }), C = A.map((b) => b.id);
|
|
1682
1684
|
D.filter((b) => !C.includes(b)).map((b) => {
|
|
1683
|
-
|
|
1684
|
-
}), F(
|
|
1685
|
+
A.push({ id: b, operation: "pendingLink" });
|
|
1686
|
+
}), F(A);
|
|
1685
1687
|
}, S = (D) => {
|
|
1686
|
-
const { label:
|
|
1688
|
+
const { label: A, closable: C, onClose: b } = D, I = (O) => {
|
|
1687
1689
|
O.preventDefault(), O.stopPropagation();
|
|
1688
|
-
}, x = Yt(
|
|
1690
|
+
}, x = Yt(A);
|
|
1689
1691
|
return /* @__PURE__ */ n(
|
|
1690
1692
|
nr,
|
|
1691
1693
|
{
|
|
@@ -1694,7 +1696,7 @@ const Lt = ({
|
|
|
1694
1696
|
closable: C,
|
|
1695
1697
|
onClose: b,
|
|
1696
1698
|
closeIcon: /* @__PURE__ */ n("span", { style: { color: x }, children: "X" }),
|
|
1697
|
-
children:
|
|
1699
|
+
children: A
|
|
1698
1700
|
}
|
|
1699
1701
|
);
|
|
1700
1702
|
};
|
|
@@ -1736,7 +1738,7 @@ const Lt = ({
|
|
|
1736
1738
|
case "many2one":
|
|
1737
1739
|
return Il;
|
|
1738
1740
|
case "boolean":
|
|
1739
|
-
return
|
|
1741
|
+
return Vs;
|
|
1740
1742
|
case "integer":
|
|
1741
1743
|
return ln;
|
|
1742
1744
|
case "float":
|
|
@@ -1790,7 +1792,7 @@ const Lt = ({
|
|
|
1790
1792
|
case "codeeditor":
|
|
1791
1793
|
return Sd;
|
|
1792
1794
|
case "comments_timeline":
|
|
1793
|
-
return
|
|
1795
|
+
return Ad;
|
|
1794
1796
|
default:
|
|
1795
1797
|
return;
|
|
1796
1798
|
}
|
|
@@ -1882,21 +1884,21 @@ const Lt = ({
|
|
|
1882
1884
|
lang: r
|
|
1883
1885
|
}) => {
|
|
1884
1886
|
fa({
|
|
1885
|
-
title:
|
|
1887
|
+
title: Ae("unsavedChanges", r),
|
|
1886
1888
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
1887
1889
|
centered: !0,
|
|
1888
|
-
content:
|
|
1889
|
-
okText:
|
|
1890
|
+
content: Ae("confirmCloseWithoutSave", r),
|
|
1891
|
+
okText: Ae("closeWithoutSaving", r),
|
|
1890
1892
|
onOk: e,
|
|
1891
1893
|
onCancel: t,
|
|
1892
|
-
cancelText:
|
|
1894
|
+
cancelText: Ae("cancel", r)
|
|
1893
1895
|
});
|
|
1894
1896
|
}, { error: ma } = Ze, br = (e) => {
|
|
1895
1897
|
ma({
|
|
1896
|
-
title:
|
|
1898
|
+
title: Ae("formHasErrors", e),
|
|
1897
1899
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
1898
1900
|
centered: !0,
|
|
1899
|
-
content:
|
|
1901
|
+
content: Ae("fillRequiredFields", e)
|
|
1900
1902
|
});
|
|
1901
1903
|
}, { warning: ha } = Ze, pa = (e, t, r) => {
|
|
1902
1904
|
ha({
|
|
@@ -2014,7 +2016,7 @@ const Lt = ({
|
|
|
2014
2016
|
limit: T,
|
|
2015
2017
|
setLimit: S,
|
|
2016
2018
|
searchParams: D = [],
|
|
2017
|
-
setSearchValues:
|
|
2019
|
+
setSearchValues: A,
|
|
2018
2020
|
clearSelection: C
|
|
2019
2021
|
} = e, [b, I] = v(!1), [x, O] = v(!1), [L, N] = v(), [q, M] = v(1), [$, K] = v(0), [R, Y] = v(), [te, Z] = v([]), [re, G] = v(void 0), [k, P] = v(void 0), ie = de(T || qt), z = de([]), pe = Se(
|
|
2020
2022
|
(be) => {
|
|
@@ -2030,7 +2032,7 @@ const Lt = ({
|
|
|
2030
2032
|
context: d
|
|
2031
2033
|
});
|
|
2032
2034
|
if (Y(be.length), u == null || u(be.length), be.length > 0) {
|
|
2033
|
-
const ue = be.map((le) => le == null ? void 0 : le[0]), { colors: Ne, status: Ge } =
|
|
2035
|
+
const ue = be.map((le) => le == null ? void 0 : le[0]), { colors: Ne, status: Ge } = Vt(f), j = {};
|
|
2034
2036
|
Ne && (j.colors = Ne), Ge && (j.status = Ge);
|
|
2035
2037
|
const Ce = await E.getHandler().readEvalUiObjects({
|
|
2036
2038
|
model: t,
|
|
@@ -2064,7 +2066,7 @@ const Lt = ({
|
|
|
2064
2066
|
u
|
|
2065
2067
|
]), ge = Se(
|
|
2066
2068
|
async (be) => {
|
|
2067
|
-
const { params: ue, newOffset: Ne } = be || {}, Ge = Gt(ue || D, F), { colors: j, status: Ce } =
|
|
2069
|
+
const { params: ue, newOffset: Ne } = be || {}, Ge = Gt(ue || D, F), { colors: j, status: Ce } = Vt(f), Oe = {};
|
|
2068
2070
|
j && (Oe.colors = j), Ce && (Oe.status = Ce);
|
|
2069
2071
|
const { totalItems: je, results: se, attrsEvaluated: le } = await E.getHandler().searchForTree({
|
|
2070
2072
|
params: Ge,
|
|
@@ -2148,7 +2150,7 @@ const Lt = ({
|
|
|
2148
2150
|
), Pe = Se(
|
|
2149
2151
|
(be) => {
|
|
2150
2152
|
const { params: ue, searchValues: Ne, limit: Ge, offset: j } = be;
|
|
2151
|
-
b || (r == null || r(void 0), i == null || i([]),
|
|
2153
|
+
b || (r == null || r(void 0), i == null || i([]), A == null || A(Ne), o == null || o(ue), s == null || s(!1), O(!0), N(void 0), M(1), Ge && (ie.current = Ge, S == null || S(Ge)), j && K(j), ve({
|
|
2152
2154
|
params: ue,
|
|
2153
2155
|
newOffset: j
|
|
2154
2156
|
}));
|
|
@@ -2157,7 +2159,7 @@ const Lt = ({
|
|
|
2157
2159
|
b,
|
|
2158
2160
|
r,
|
|
2159
2161
|
i,
|
|
2160
|
-
|
|
2162
|
+
A,
|
|
2161
2163
|
o,
|
|
2162
2164
|
s,
|
|
2163
2165
|
ve,
|
|
@@ -2169,12 +2171,12 @@ const Lt = ({
|
|
|
2169
2171
|
},
|
|
2170
2172
|
[I, T, K, M]
|
|
2171
2173
|
), Ue = Se(() => {
|
|
2172
|
-
b || (r == null || r(void 0), o == null || o([]),
|
|
2174
|
+
b || (r == null || r(void 0), o == null || o([]), A == null || A({}), N(void 0), K(0), M(1), S == null || S(T || qt));
|
|
2173
2175
|
}, [
|
|
2174
2176
|
b,
|
|
2175
2177
|
r,
|
|
2176
2178
|
o,
|
|
2177
|
-
|
|
2179
|
+
A,
|
|
2178
2180
|
S,
|
|
2179
2181
|
T
|
|
2180
2182
|
]), Ie = Se(
|
|
@@ -2185,7 +2187,7 @@ const Lt = ({
|
|
|
2185
2187
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
2186
2188
|
context: d
|
|
2187
2189
|
});
|
|
2188
|
-
return pe([...ee(), ...Ne]), uo(
|
|
2190
|
+
return pe([...ee(), ...Ne]), uo(Vt(f), Ne);
|
|
2189
2191
|
},
|
|
2190
2192
|
[f, t, d, ee, pe]
|
|
2191
2193
|
), xe = Se(async () => await E.getHandler().searchAllIds({
|
|
@@ -2237,7 +2239,7 @@ const Lt = ({
|
|
|
2237
2239
|
setSelectedRowItems: T,
|
|
2238
2240
|
selectedRowItems: S,
|
|
2239
2241
|
searchTreeNameSearch: D,
|
|
2240
|
-
setSearchTreeNameSearch:
|
|
2242
|
+
setSearchTreeNameSearch: A,
|
|
2241
2243
|
goToResourceId: C,
|
|
2242
2244
|
limit: b
|
|
2243
2245
|
} = e, [I, x] = v(!1), [O, L] = v(!1), [N, q] = v(!1), [M, $] = v(!0), [K, R] = v(!0), [Y, te] = v([]), [Z, re] = v(!1), [G, k] = v([]), [P, ie] = v(!1), [z, pe] = v(!0), [ee, U] = v(), [ge, ve] = v({}), [We, Pe] = v(
|
|
@@ -2308,7 +2310,7 @@ const Lt = ({
|
|
|
2308
2310
|
totalItems: F,
|
|
2309
2311
|
setTotalItems: _,
|
|
2310
2312
|
searchTreeNameSearch: D,
|
|
2311
|
-
setSearchTreeNameSearch:
|
|
2313
|
+
setSearchTreeNameSearch: A,
|
|
2312
2314
|
setGraphIsLoading: pe,
|
|
2313
2315
|
graphIsLoading: z,
|
|
2314
2316
|
previousView: ee,
|
|
@@ -2371,8 +2373,8 @@ const Lt = ({
|
|
|
2371
2373
|
context: {}
|
|
2372
2374
|
}
|
|
2373
2375
|
);
|
|
2374
|
-
async function y(
|
|
2375
|
-
const { reportData: C, fields: b, values: I, context: x = {} } =
|
|
2376
|
+
async function y(A) {
|
|
2377
|
+
const { reportData: C, fields: b, values: I, context: x = {} } = A, {
|
|
2376
2378
|
context: O,
|
|
2377
2379
|
model: L,
|
|
2378
2380
|
datas: N = {},
|
|
@@ -2403,11 +2405,11 @@ const Lt = ({
|
|
|
2403
2405
|
s.current = !1, clearInterval(o.current), Xe(Y), l(!1);
|
|
2404
2406
|
}
|
|
2405
2407
|
}
|
|
2406
|
-
async function w(
|
|
2408
|
+
async function w(A) {
|
|
2407
2409
|
let C;
|
|
2408
2410
|
try {
|
|
2409
2411
|
if (C = await E.getHandler().getReport({
|
|
2410
|
-
id:
|
|
2412
|
+
id: A
|
|
2411
2413
|
}), C.state && s.current === !0) {
|
|
2412
2414
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2413
2415
|
const b = await kt(C.result);
|
|
@@ -2418,41 +2420,41 @@ const Lt = ({
|
|
|
2418
2420
|
}
|
|
2419
2421
|
}
|
|
2420
2422
|
async function F({
|
|
2421
|
-
actionData:
|
|
2423
|
+
actionData: A,
|
|
2422
2424
|
fields: C,
|
|
2423
2425
|
values: b,
|
|
2424
2426
|
context: I,
|
|
2425
2427
|
onRefreshParentValues: x
|
|
2426
2428
|
}) {
|
|
2427
|
-
const { type: O } =
|
|
2429
|
+
const { type: O } = A;
|
|
2428
2430
|
if (u.current.push(x), O === "ir.actions.report.xml")
|
|
2429
2431
|
return await y({
|
|
2430
|
-
reportData:
|
|
2432
|
+
reportData: A,
|
|
2431
2433
|
fields: C,
|
|
2432
2434
|
values: b,
|
|
2433
2435
|
context: I
|
|
2434
2436
|
});
|
|
2435
2437
|
if (O === "ir.actions.act_window")
|
|
2436
|
-
return await _({ actionData:
|
|
2438
|
+
return await _({ actionData: A, fields: C, values: b, context: I });
|
|
2437
2439
|
if (O === "ir.actions.act_url")
|
|
2438
2440
|
window.open(
|
|
2439
|
-
ea(
|
|
2441
|
+
ea(A.url, { ...b, context: I }),
|
|
2440
2442
|
"_blank"
|
|
2441
2443
|
);
|
|
2442
2444
|
else
|
|
2443
2445
|
return Xe(`${O} action not supported`), {};
|
|
2444
2446
|
}
|
|
2445
2447
|
async function _({
|
|
2446
|
-
actionData:
|
|
2448
|
+
actionData: A,
|
|
2447
2449
|
fields: C = {},
|
|
2448
2450
|
values: b = {},
|
|
2449
2451
|
context: I = {}
|
|
2450
2452
|
}) {
|
|
2451
2453
|
var q;
|
|
2452
|
-
let x =
|
|
2453
|
-
|
|
2454
|
+
let x = A;
|
|
2455
|
+
A.res_model || (x = (await E.getHandler().readObjects({
|
|
2454
2456
|
model: "ir.actions.act_window",
|
|
2455
|
-
ids: [parseInt(
|
|
2457
|
+
ids: [parseInt(A.id)],
|
|
2456
2458
|
context: I
|
|
2457
2459
|
}))[0]);
|
|
2458
2460
|
const O = typeof (x == null ? void 0 : x.context) == "string" ? Ct({
|
|
@@ -2506,16 +2508,16 @@ const Lt = ({
|
|
|
2506
2508
|
}
|
|
2507
2509
|
}
|
|
2508
2510
|
function T({
|
|
2509
|
-
domain:
|
|
2511
|
+
domain: A,
|
|
2510
2512
|
model: C,
|
|
2511
2513
|
formView: b,
|
|
2512
2514
|
context: I,
|
|
2513
2515
|
actionData: x
|
|
2514
2516
|
}) {
|
|
2515
|
-
m ? S({ domain:
|
|
2517
|
+
m ? S({ domain: A, model: C, formView: b, context: I, actionData: x }) : (p({ domain: A, model: C, context: I, formView: b, actionData: x }), g(!0));
|
|
2516
2518
|
}
|
|
2517
2519
|
async function S({
|
|
2518
|
-
domain:
|
|
2520
|
+
domain: A,
|
|
2519
2521
|
model: C,
|
|
2520
2522
|
formView: b,
|
|
2521
2523
|
context: I,
|
|
@@ -2527,7 +2529,7 @@ const Lt = ({
|
|
|
2527
2529
|
context: {},
|
|
2528
2530
|
formView: void 0,
|
|
2529
2531
|
actionData: void 0
|
|
2530
|
-
}), g(!1), await new Promise((O) => setTimeout(O, 300)), p({ domain:
|
|
2532
|
+
}), g(!1), await new Promise((O) => setTimeout(O, 300)), p({ domain: A, model: C, context: I, formView: b, actionData: x }), g(!0);
|
|
2531
2533
|
}
|
|
2532
2534
|
async function D() {
|
|
2533
2535
|
xr(u.current), u.current = [], g(!1), p({
|
|
@@ -2545,7 +2547,7 @@ const Lt = ({
|
|
|
2545
2547
|
processAction: F,
|
|
2546
2548
|
globalValues: i
|
|
2547
2549
|
},
|
|
2548
|
-
children: /* @__PURE__ */
|
|
2550
|
+
children: /* @__PURE__ */ V(X, { children: [
|
|
2549
2551
|
r,
|
|
2550
2552
|
/* @__PURE__ */ n(
|
|
2551
2553
|
Ze,
|
|
@@ -2636,7 +2638,7 @@ async function Oa({
|
|
|
2636
2638
|
}
|
|
2637
2639
|
return { views: s, initialView: a };
|
|
2638
2640
|
}
|
|
2639
|
-
const Ra = yt(_a),
|
|
2641
|
+
const Ra = yt(_a), Aa = ({
|
|
2640
2642
|
error: e,
|
|
2641
2643
|
className: t
|
|
2642
2644
|
}) => {
|
|
@@ -2657,7 +2659,7 @@ const Ra = yt(_a), Va = ({
|
|
|
2657
2659
|
banner: !0
|
|
2658
2660
|
}
|
|
2659
2661
|
);
|
|
2660
|
-
},
|
|
2662
|
+
}, Va = 800;
|
|
2661
2663
|
function Da(e, t) {
|
|
2662
2664
|
const {
|
|
2663
2665
|
model: r,
|
|
@@ -2681,8 +2683,8 @@ function Da(e, t) {
|
|
|
2681
2683
|
rootForm: T = !1,
|
|
2682
2684
|
defaultValues: S,
|
|
2683
2685
|
forcedValues: D = {},
|
|
2684
|
-
parentWidth:
|
|
2685
|
-
} = e, { t: C, lang: b } = H(he), [I, x] = v(!1), [O, L] = v(), [N, q] = v(), [M] = dt.useForm(), [$, K] = v(), [R, Y] = v(), te = H(po), [Z, re] = v(), [G, k] = v(!1), P = de(), ie = de({}), z = de({}), pe = de(!1), ee = de(!1), U = de(!1), ve = (
|
|
2686
|
+
parentWidth: A
|
|
2687
|
+
} = e, { t: C, lang: b } = H(he), [I, x] = v(!1), [O, L] = v(), [N, q] = v(), [M] = dt.useForm(), [$, K] = v(), [R, Y] = v(), te = H(po), [Z, re] = v(), [G, k] = v(!1), P = de(), ie = de({}), z = de({}), pe = de(!1), ee = de(!1), U = de(!1), ve = (A !== void 0 ? A : Z) < Va, We = H(Be), { activeId: Pe, getPlainValues: Ee } = We || {}, Ue = H(
|
|
2686
2688
|
at
|
|
2687
2689
|
), {
|
|
2688
2690
|
setFormIsSaving: Ie = void 0,
|
|
@@ -3200,11 +3202,11 @@ function Da(e, t) {
|
|
|
3200
3202
|
}
|
|
3201
3203
|
)
|
|
3202
3204
|
}
|
|
3203
|
-
) }), zo = () => /* @__PURE__ */
|
|
3205
|
+
) }), zo = () => /* @__PURE__ */ V(X, { children: [
|
|
3204
3206
|
/* @__PURE__ */ n(mn, {}),
|
|
3205
|
-
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */
|
|
3207
|
+
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
|
|
3206
3208
|
/* @__PURE__ */ n(
|
|
3207
|
-
|
|
3209
|
+
Ve,
|
|
3208
3210
|
{
|
|
3209
3211
|
icon: /* @__PURE__ */ n(Xt, {}),
|
|
3210
3212
|
disabled: I,
|
|
@@ -3215,7 +3217,7 @@ function Da(e, t) {
|
|
|
3215
3217
|
}
|
|
3216
3218
|
),
|
|
3217
3219
|
/* @__PURE__ */ n(
|
|
3218
|
-
|
|
3220
|
+
Ve,
|
|
3219
3221
|
{
|
|
3220
3222
|
disabled: I || u,
|
|
3221
3223
|
loading: I,
|
|
@@ -3237,8 +3239,8 @@ function Da(e, t) {
|
|
|
3237
3239
|
var W;
|
|
3238
3240
|
re((W = B.bounds) == null ? void 0 : W.width);
|
|
3239
3241
|
},
|
|
3240
|
-
children: ({ measureRef: B }) => /* @__PURE__ */
|
|
3241
|
-
O && /* @__PURE__ */ n(
|
|
3242
|
+
children: ({ measureRef: B }) => /* @__PURE__ */ V("div", { className: "pb-2", ref: B, children: [
|
|
3243
|
+
O && /* @__PURE__ */ n(Aa, { className: "mt-5 mb-10", error: O }),
|
|
3242
3244
|
qo(),
|
|
3243
3245
|
a && zo()
|
|
3244
3246
|
] })
|
|
@@ -3284,10 +3286,10 @@ const en = yt(Da), tn = (e) => {
|
|
|
3284
3286
|
}
|
|
3285
3287
|
h(!g);
|
|
3286
3288
|
}
|
|
3287
|
-
function
|
|
3288
|
-
return /* @__PURE__ */
|
|
3289
|
+
function A() {
|
|
3290
|
+
return /* @__PURE__ */ V(Te, { align: "middle", children: [
|
|
3289
3291
|
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
|
|
3290
|
-
|
|
3292
|
+
Ve,
|
|
3291
3293
|
{
|
|
3292
3294
|
type: g ? "primary" : "default",
|
|
3293
3295
|
icon: g ? /* @__PURE__ */ n(Yr, { style: { color: "white" } }) : /* @__PURE__ */ n(Gr, {}),
|
|
@@ -3302,7 +3304,7 @@ const en = yt(Da), tn = (e) => {
|
|
|
3302
3304
|
return /* @__PURE__ */ n(ga, { setTitle: m, children: /* @__PURE__ */ n(
|
|
3303
3305
|
Ze,
|
|
3304
3306
|
{
|
|
3305
|
-
title: a ?
|
|
3307
|
+
title: a ? A() : f,
|
|
3306
3308
|
centered: !0,
|
|
3307
3309
|
width: u,
|
|
3308
3310
|
open: t,
|
|
@@ -3363,7 +3365,7 @@ const en = yt(Da), tn = (e) => {
|
|
|
3363
3365
|
label: ""
|
|
3364
3366
|
})
|
|
3365
3367
|
];
|
|
3366
|
-
return /* @__PURE__ */
|
|
3368
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
3367
3369
|
r && /* @__PURE__ */ n(
|
|
3368
3370
|
gn,
|
|
3369
3371
|
{
|
|
@@ -3376,7 +3378,7 @@ const en = yt(Da), tn = (e) => {
|
|
|
3376
3378
|
align: "left"
|
|
3377
3379
|
}
|
|
3378
3380
|
),
|
|
3379
|
-
/* @__PURE__ */
|
|
3381
|
+
/* @__PURE__ */ V(Te, { align: "bottom", className: "p-0", children: [
|
|
3380
3382
|
/* @__PURE__ */ n(ce, { className: "mr-2", children: /* @__PURE__ */ n(we, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ n(
|
|
3381
3383
|
Hn.RangePicker,
|
|
3382
3384
|
{
|
|
@@ -3391,7 +3393,7 @@ const en = yt(Da), tn = (e) => {
|
|
|
3391
3393
|
}, Na = ({
|
|
3392
3394
|
value: e,
|
|
3393
3395
|
onChange: t
|
|
3394
|
-
}) => /* @__PURE__ */
|
|
3396
|
+
}) => /* @__PURE__ */ V("div", { style: { marginTop: 5 }, children: [
|
|
3395
3397
|
/* @__PURE__ */ n(
|
|
3396
3398
|
Mn,
|
|
3397
3399
|
{
|
|
@@ -3463,7 +3465,7 @@ function La(e) {
|
|
|
3463
3465
|
layout: "vertical"
|
|
3464
3466
|
}
|
|
3465
3467
|
);
|
|
3466
|
-
return /* @__PURE__ */
|
|
3468
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
3467
3469
|
r && /* @__PURE__ */ n(
|
|
3468
3470
|
gn,
|
|
3469
3471
|
{
|
|
@@ -3476,7 +3478,7 @@ function La(e) {
|
|
|
3476
3478
|
align: "left"
|
|
3477
3479
|
}
|
|
3478
3480
|
),
|
|
3479
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ V(Te, { align: "bottom", className: "mt-0", wrap: !1, children: [
|
|
3480
3482
|
/* @__PURE__ */ n(ce, { children: l("#from") }),
|
|
3481
3483
|
/* @__PURE__ */ n(ce, { className: "pb-1", children: /* @__PURE__ */ n("span", { className: "pl-2 pr-2 h-full", children: " - " }) }),
|
|
3482
3484
|
/* @__PURE__ */ n(ce, { children: l("#to") })
|
|
@@ -3554,15 +3556,15 @@ function Ya(e) {
|
|
|
3554
3556
|
}
|
|
3555
3557
|
function Ga(e) {
|
|
3556
3558
|
const { onAdvancedFilterToggle: t, advancedFilter: r, onClear: i, isSearching: o } = e, { t: s } = H(he);
|
|
3557
|
-
return /* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */ n(ce, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ V(Te, { children: [
|
|
3560
|
+
/* @__PURE__ */ n(ce, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ V("a", { className: "text-xs", onClick: t, children: [
|
|
3559
3561
|
r ? /* @__PURE__ */ n(hi, { className: "pr-1" }) : /* @__PURE__ */ n(Nt, { className: "pr-1" }),
|
|
3560
3562
|
s(r ? "simple_search" : "advanced_search")
|
|
3561
3563
|
] }) }),
|
|
3562
|
-
/* @__PURE__ */
|
|
3563
|
-
/* @__PURE__ */ n(
|
|
3564
|
+
/* @__PURE__ */ V(ce, { span: 12, className: "text-right pb-2", children: [
|
|
3565
|
+
/* @__PURE__ */ n(Ve, { className: "mr-5", icon: /* @__PURE__ */ n(Yn, {}), onClick: i, children: s("clear") }),
|
|
3564
3566
|
/* @__PURE__ */ n(
|
|
3565
|
-
|
|
3567
|
+
Ve,
|
|
3566
3568
|
{
|
|
3567
3569
|
icon: /* @__PURE__ */ n(Gn, {}),
|
|
3568
3570
|
loading: o,
|
|
@@ -3577,9 +3579,9 @@ function Ga(e) {
|
|
|
3577
3579
|
}
|
|
3578
3580
|
function qa(e) {
|
|
3579
3581
|
const { onLimitChange: t } = e, { t: r } = H(he), i = new kn({ name: "limit" }), o = new kn({ name: "offset" });
|
|
3580
|
-
return /* @__PURE__ */
|
|
3582
|
+
return /* @__PURE__ */ V("div", { className: "pl-2 pt-2", children: [
|
|
3581
3583
|
/* @__PURE__ */ n(Te, { children: r("parameters") }, "count_params"),
|
|
3582
|
-
/* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ V(Ye, { align: "center", children: [
|
|
3583
3585
|
r("limit") + " :",
|
|
3584
3586
|
/* @__PURE__ */ n(
|
|
3585
3587
|
ln,
|
|
@@ -3615,7 +3617,7 @@ function wo(e) {
|
|
|
3615
3617
|
fe(() => {
|
|
3616
3618
|
D.setFieldsValue(m);
|
|
3617
3619
|
}, [m]);
|
|
3618
|
-
const
|
|
3620
|
+
const A = () => {
|
|
3619
3621
|
if (!y)
|
|
3620
3622
|
return;
|
|
3621
3623
|
const I = F ? y : h, x = I == null ? void 0 : I.rows;
|
|
@@ -3624,7 +3626,7 @@ function wo(e) {
|
|
|
3624
3626
|
Tt(() => {
|
|
3625
3627
|
_(!1), T.current = new fi(r, t), T.current.parse(), p(T.current._simpleSearchContainer), w(T.current._advancedSearchContainer);
|
|
3626
3628
|
}, [t, r]);
|
|
3627
|
-
const C =
|
|
3629
|
+
const C = A(), b = (I) => {
|
|
3628
3630
|
var N;
|
|
3629
3631
|
const { limit: x, offset: O } = I;
|
|
3630
3632
|
delete I.offset, delete I.limit;
|
|
@@ -3642,8 +3644,8 @@ function wo(e) {
|
|
|
3642
3644
|
var x;
|
|
3643
3645
|
u == null || u((x = I.bounds) == null ? void 0 : x.height);
|
|
3644
3646
|
},
|
|
3645
|
-
children: ({ measureRef: I }) => /* @__PURE__ */ n("div", { ref: I, children: /* @__PURE__ */
|
|
3646
|
-
/* @__PURE__ */
|
|
3647
|
+
children: ({ measureRef: I }) => /* @__PURE__ */ n("div", { ref: I, children: /* @__PURE__ */ V("div", { style: { display: d ? "block" : "none" }, children: [
|
|
3648
|
+
/* @__PURE__ */ V(
|
|
3647
3649
|
dt,
|
|
3648
3650
|
{
|
|
3649
3651
|
className: "p-3 shadow-md",
|
|
@@ -3730,7 +3732,7 @@ const Sr = (e, t = "14px -apple-system") => {
|
|
|
3730
3732
|
return null;
|
|
3731
3733
|
const d = async (m) => {
|
|
3732
3734
|
m.preventDefault(), m.stopPropagation(), a(!0), await i(), a(!1);
|
|
3733
|
-
}, u = /* @__PURE__ */
|
|
3735
|
+
}, u = /* @__PURE__ */ V("span", { children: [
|
|
3734
3736
|
c.recordsSelected.replace(
|
|
3735
3737
|
"{numberOfSelectedRows}",
|
|
3736
3738
|
e.toString()
|
|
@@ -3781,7 +3783,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3781
3783
|
maximumFractionDigits: 4,
|
|
3782
3784
|
useGrouping: !1
|
|
3783
3785
|
})}%`;
|
|
3784
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ V("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
3785
3787
|
/* @__PURE__ */ n(tl, { percent: e }),
|
|
3786
3788
|
/* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
3787
3789
|
] });
|
|
@@ -3806,7 +3808,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3806
3808
|
onCancel: r,
|
|
3807
3809
|
maskClosable: !1,
|
|
3808
3810
|
children: /* @__PURE__ */ n(Ye, { direction: "vertical", className: "w-full", children: i.map((a) => /* @__PURE__ */ n(
|
|
3809
|
-
|
|
3811
|
+
Ve,
|
|
3810
3812
|
{
|
|
3811
3813
|
className: "w-full",
|
|
3812
3814
|
onClick: () => {
|
|
@@ -3882,10 +3884,10 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3882
3884
|
/* @__PURE__ */ n(
|
|
3883
3885
|
He.ItemGroup,
|
|
3884
3886
|
{
|
|
3885
|
-
title: /* @__PURE__ */
|
|
3887
|
+
title: /* @__PURE__ */ V(X, { children: [
|
|
3886
3888
|
/* @__PURE__ */ n(qr, {}),
|
|
3887
3889
|
" ",
|
|
3888
|
-
/* @__PURE__ */
|
|
3890
|
+
/* @__PURE__ */ V("span", { children: [
|
|
3889
3891
|
" ",
|
|
3890
3892
|
h("related")
|
|
3891
3893
|
] })
|
|
@@ -3921,7 +3923,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3921
3923
|
context: { active_id: t, active_ids: [t] }
|
|
3922
3924
|
});
|
|
3923
3925
|
}
|
|
3924
|
-
function
|
|
3926
|
+
function A(I) {
|
|
3925
3927
|
l(!1), F == null || F({
|
|
3926
3928
|
actionData: {
|
|
3927
3929
|
...I,
|
|
@@ -3931,7 +3933,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3931
3933
|
fields: u.fields
|
|
3932
3934
|
});
|
|
3933
3935
|
}
|
|
3934
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
3935
3937
|
/* @__PURE__ */ n(Jt, { overlay: T(), trigger: ["click"], children: /* @__PURE__ */ n(
|
|
3936
3938
|
pi,
|
|
3937
3939
|
{
|
|
@@ -3955,14 +3957,14 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3955
3957
|
{
|
|
3956
3958
|
visible: a,
|
|
3957
3959
|
items: (b = u == null ? void 0 : u.toolbar) == null ? void 0 : b.print,
|
|
3958
|
-
onItemClicked:
|
|
3960
|
+
onItemClicked: A,
|
|
3959
3961
|
onCancel: () => l(!1)
|
|
3960
3962
|
}
|
|
3961
3963
|
)
|
|
3962
3964
|
] });
|
|
3963
3965
|
}, nl = (e) => {
|
|
3964
3966
|
const { m2oField: t } = e;
|
|
3965
|
-
return t ? /* @__PURE__ */
|
|
3967
|
+
return t ? /* @__PURE__ */ V(Ye, { children: [
|
|
3966
3968
|
/* @__PURE__ */ n(X, { children: t.value }),
|
|
3967
3969
|
/* @__PURE__ */ n(rr, { id: t.id, model: t.model })
|
|
3968
3970
|
] }) : /* @__PURE__ */ n(X, {});
|
|
@@ -3986,7 +3988,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
|
|
|
3986
3988
|
if (a)
|
|
3987
3989
|
return /* @__PURE__ */ n(lt, {});
|
|
3988
3990
|
const m = i.get(c);
|
|
3989
|
-
return /* @__PURE__ */
|
|
3991
|
+
return /* @__PURE__ */ V(Ye, { children: [
|
|
3990
3992
|
/* @__PURE__ */ n(X, { children: `${m}:` }),
|
|
3991
3993
|
/* @__PURE__ */ n(X, { children: o }),
|
|
3992
3994
|
/* @__PURE__ */ n(rr, { id: u, model: c })
|
|
@@ -4231,7 +4233,7 @@ const ol = (e) => {
|
|
|
4231
4233
|
rootTree: T = !1,
|
|
4232
4234
|
context: S,
|
|
4233
4235
|
readonly: D,
|
|
4234
|
-
onSelectAllRecords:
|
|
4236
|
+
onSelectAllRecords: A
|
|
4235
4237
|
} = e, C = de(null), [b, I] = v([]), x = de(!1), [O, L] = v(), { t: N } = H(he), q = de(i), M = H(
|
|
4236
4238
|
at
|
|
4237
4239
|
), { title: $ = void 0, setTitle: K = void 0 } = (T ? M : {}) || {}, R = De(() => {
|
|
@@ -4250,7 +4252,7 @@ const ol = (e) => {
|
|
|
4250
4252
|
(z = C.current) == null || z.unselectAll();
|
|
4251
4253
|
}
|
|
4252
4254
|
})), fe(() => {
|
|
4253
|
-
const z =
|
|
4255
|
+
const z = Vt(s);
|
|
4254
4256
|
L(z), z.string && $ !== z.string && (K == null || K(z.string));
|
|
4255
4257
|
}, [s, $]), fe(() => {
|
|
4256
4258
|
if (!O)
|
|
@@ -4267,8 +4269,8 @@ const ol = (e) => {
|
|
|
4267
4269
|
const z = b == null ? void 0 : b.filter(
|
|
4268
4270
|
(pe) => f && f.includes(pe.id)
|
|
4269
4271
|
).length;
|
|
4270
|
-
return c ? null : o === void 0 ? /* @__PURE__ */ n(ke, { className: "pb-4" }) : /* @__PURE__ */
|
|
4271
|
-
/* @__PURE__ */ n(ce, { span:
|
|
4272
|
+
return c ? null : o === void 0 ? /* @__PURE__ */ n(ke, { className: "pb-4" }) : /* @__PURE__ */ V(Te, { align: "bottom", className: "pb-4", children: [
|
|
4273
|
+
/* @__PURE__ */ n(ce, { span: A ? 8 : 12, children: /* @__PURE__ */ n(
|
|
4272
4274
|
oi,
|
|
4273
4275
|
{
|
|
4274
4276
|
total: o,
|
|
@@ -4278,23 +4280,23 @@ const ol = (e) => {
|
|
|
4278
4280
|
onChange: l
|
|
4279
4281
|
}
|
|
4280
4282
|
) }),
|
|
4281
|
-
|
|
4283
|
+
A && /* @__PURE__ */ n(ce, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
|
|
4282
4284
|
Za,
|
|
4283
4285
|
{
|
|
4284
4286
|
numberOfVisibleSelectedRows: z,
|
|
4285
4287
|
numberOfRealSelectedRows: (f == null ? void 0 : f.length) || 0,
|
|
4286
4288
|
numberOfTotalRows: b.length,
|
|
4287
4289
|
totalRecords: o || 0,
|
|
4288
|
-
onSelectAllRecords:
|
|
4290
|
+
onSelectAllRecords: A
|
|
4289
4291
|
}
|
|
4290
4292
|
) }),
|
|
4291
|
-
/* @__PURE__ */ n(ce, { span:
|
|
4293
|
+
/* @__PURE__ */ n(ce, { span: A ? 8 : 12, className: "text-right", children: Z })
|
|
4292
4294
|
] });
|
|
4293
4295
|
}, [
|
|
4294
4296
|
b,
|
|
4295
4297
|
c,
|
|
4296
4298
|
l,
|
|
4297
|
-
|
|
4299
|
+
A,
|
|
4298
4300
|
r,
|
|
4299
4301
|
f,
|
|
4300
4302
|
u,
|
|
@@ -4316,7 +4318,7 @@ const ol = (e) => {
|
|
|
4316
4318
|
if (O !== null && R && R.length > 0)
|
|
4317
4319
|
return Ja(R, b, 600);
|
|
4318
4320
|
}, [R, b, O]), P = De(() => g && (O != null && O.columns.some((z) => z.sum !== void 0)) ? g - 30 : g, [g, O == null ? void 0 : O.columns]);
|
|
4319
|
-
return O === null || !k || ((ie = k == null ? void 0 : k.columns) == null ? void 0 : ie.length) === 0 ? /* @__PURE__ */ n(ke, { style: { padding: "2rem" } }) : /* @__PURE__ */
|
|
4321
|
+
return O === null || !k || ((ie = k == null ? void 0 : k.columns) == null ? void 0 : ie.length) === 0 ? /* @__PURE__ */ n(ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ V(to, { children: [
|
|
4320
4322
|
re,
|
|
4321
4323
|
/* @__PURE__ */ n(
|
|
4322
4324
|
Hi,
|
|
@@ -4369,7 +4371,7 @@ function Cl(e, t) {
|
|
|
4369
4371
|
rootTree: u = !1,
|
|
4370
4372
|
parentContext: f = {},
|
|
4371
4373
|
onChangeSelectedRowKeys: m
|
|
4372
|
-
} = e, [g, h] = v(!1), [p, y] = v(!1), w = de(!1), F = de(null), [_, T] = v(), [S, D] = v(), [
|
|
4374
|
+
} = e, [g, h] = v(!1), [p, y] = v(!1), w = de(!1), F = de(null), [_, T] = v(), [S, D] = v(), [A, C] = v(), [b, I] = v(), [x, O] = v(200), L = de(), { height: N } = yn(), q = H(
|
|
4373
4375
|
$t
|
|
4374
4376
|
), { processAction: M } = q || {}, $ = H(
|
|
4375
4377
|
at
|
|
@@ -4427,7 +4429,7 @@ function Cl(e, t) {
|
|
|
4427
4429
|
nameSearch: a,
|
|
4428
4430
|
searchNameGetDoneRef: w,
|
|
4429
4431
|
context: f,
|
|
4430
|
-
formView:
|
|
4432
|
+
formView: A,
|
|
4431
4433
|
treeView: S,
|
|
4432
4434
|
sorter: z,
|
|
4433
4435
|
setSorter: pe,
|
|
@@ -4516,24 +4518,24 @@ function Cl(e, t) {
|
|
|
4516
4518
|
s({
|
|
4517
4519
|
id: qe,
|
|
4518
4520
|
model: _,
|
|
4519
|
-
formView:
|
|
4521
|
+
formView: A,
|
|
4520
4522
|
treeView: S
|
|
4521
4523
|
});
|
|
4522
4524
|
},
|
|
4523
|
-
[_,
|
|
4525
|
+
[_, A, s, ye, S]
|
|
4524
4526
|
), Re = Se(async () => {
|
|
4525
4527
|
const Me = await $e();
|
|
4526
4528
|
re == null || re(Me.map((qe) => ({ id: qe }))), m == null || m(Me);
|
|
4527
4529
|
}, [$e, m, re]), ot = De(() => S != null && S.isExpandable ? N - 160 : N - (x + 240), [N, x, S == null ? void 0 : S.isExpandable]), Je = De(
|
|
4528
4530
|
() => Z == null ? void 0 : Z.map((Me) => Me.id),
|
|
4529
4531
|
[Z]
|
|
4530
|
-
), It = Se(() => !S || !
|
|
4532
|
+
), It = Se(() => !S || !A ? null : /* @__PURE__ */ V(X, { children: [
|
|
4531
4533
|
/* @__PURE__ */ n(
|
|
4532
4534
|
wo,
|
|
4533
4535
|
{
|
|
4534
|
-
fields: { ...
|
|
4536
|
+
fields: { ...A.fields, ...S.fields },
|
|
4535
4537
|
searchFields: mo([
|
|
4536
|
-
|
|
4538
|
+
A.search_fields,
|
|
4537
4539
|
S.search_fields
|
|
4538
4540
|
]),
|
|
4539
4541
|
onClear: xe,
|
|
@@ -4581,7 +4583,7 @@ function Cl(e, t) {
|
|
|
4581
4583
|
xe,
|
|
4582
4584
|
Le,
|
|
4583
4585
|
le,
|
|
4584
|
-
|
|
4586
|
+
A,
|
|
4585
4587
|
Oe,
|
|
4586
4588
|
Pe,
|
|
4587
4589
|
Ce,
|
|
@@ -4629,7 +4631,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4629
4631
|
}
|
|
4630
4632
|
i(g);
|
|
4631
4633
|
}
|
|
4632
|
-
const F = () => /* @__PURE__ */
|
|
4634
|
+
const F = () => /* @__PURE__ */ V(X, { children: [
|
|
4633
4635
|
/* @__PURE__ */ n(
|
|
4634
4636
|
So,
|
|
4635
4637
|
{
|
|
@@ -4643,9 +4645,9 @@ const So = yt(Cl), To = (e) => {
|
|
|
4643
4645
|
}
|
|
4644
4646
|
),
|
|
4645
4647
|
/* @__PURE__ */ n(mn, {}),
|
|
4646
|
-
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */
|
|
4648
|
+
/* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
|
|
4647
4649
|
/* @__PURE__ */ n(
|
|
4648
|
-
|
|
4650
|
+
Ve,
|
|
4649
4651
|
{
|
|
4650
4652
|
icon: /* @__PURE__ */ n(hn, {}),
|
|
4651
4653
|
onClick: () => {
|
|
@@ -4655,7 +4657,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4655
4657
|
}
|
|
4656
4658
|
),
|
|
4657
4659
|
/* @__PURE__ */ n(
|
|
4658
|
-
|
|
4660
|
+
Ve,
|
|
4659
4661
|
{
|
|
4660
4662
|
icon: /* @__PURE__ */ n(Mt, {}),
|
|
4661
4663
|
onClick: () => {
|
|
@@ -4665,10 +4667,10 @@ const So = yt(Cl), To = (e) => {
|
|
|
4665
4667
|
children: m("ok")
|
|
4666
4668
|
}
|
|
4667
4669
|
),
|
|
4668
|
-
/* @__PURE__ */ n(
|
|
4670
|
+
/* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(Xt, {}), onClick: p, children: m("cancel") })
|
|
4669
4671
|
] }) })
|
|
4670
4672
|
] });
|
|
4671
|
-
return /* @__PURE__ */
|
|
4673
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
4672
4674
|
/* @__PURE__ */ n(
|
|
4673
4675
|
Ze,
|
|
4674
4676
|
{
|
|
@@ -4724,7 +4726,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4724
4726
|
context: l,
|
|
4725
4727
|
id: c,
|
|
4726
4728
|
domain: d
|
|
4727
|
-
} = i, u = o && !a ? { backgroundColor: Io.colorPrimaryBg } : void 0, [f, m] = v(!1), [g, h] = v(!1), [p, y] = v(!1), [w, F] = v(), _ = de(!1), [T, S] = v(""), D = de(),
|
|
4729
|
+
} = i, u = o && !a ? { backgroundColor: Io.colorPrimaryBg } : void 0, [f, m] = v(!1), [g, h] = v(!1), [p, y] = v(!1), [w, F] = v(), _ = de(!1), [T, S] = v(""), D = de(), A = H(Be), { domain: C, getValues: b, getFields: I, getContext: x, elementHasLostFocus: O } = A || {}, L = de([]), [N, q] = v([]), M = t && t[0] || void 0, $ = t && t[1] || "";
|
|
4728
4730
|
fe(() => {
|
|
4729
4731
|
!Array.isArray(t) && t && Z(t);
|
|
4730
4732
|
}, [t]), fe(() => {
|
|
@@ -4805,7 +4807,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4805
4807
|
async function G(P) {
|
|
4806
4808
|
P.keyCode === 13 ? (P.preventDefault(), P.stopPropagation(), await Y()) : P.code === "Backspace" && M !== void 0 && (P.preventDefault(), P.stopPropagation(), K([void 0, ""]));
|
|
4807
4809
|
}
|
|
4808
|
-
return /* @__PURE__ */
|
|
4810
|
+
return /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
|
|
4809
4811
|
/* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
|
|
4810
4812
|
o && !a ? Fl : st,
|
|
4811
4813
|
{
|
|
@@ -4827,7 +4829,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4827
4829
|
}
|
|
4828
4830
|
) }),
|
|
4829
4831
|
/* @__PURE__ */ n(ce, { flex: "32px", style: { paddingRight: 0 }, children: /* @__PURE__ */ n(
|
|
4830
|
-
|
|
4832
|
+
Ve,
|
|
4831
4833
|
{
|
|
4832
4834
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
4833
4835
|
disabled: M === void 0 || $ === "" || T === void 0,
|
|
@@ -4839,7 +4841,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4839
4841
|
}
|
|
4840
4842
|
) }),
|
|
4841
4843
|
/* @__PURE__ */ n(ce, { flex: "32px", style: { paddingLeft: 0 }, children: /* @__PURE__ */ n(
|
|
4842
|
-
|
|
4844
|
+
Ve,
|
|
4843
4845
|
{
|
|
4844
4846
|
icon: p ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(Gn, {}),
|
|
4845
4847
|
disabled: a || p,
|
|
@@ -4922,7 +4924,7 @@ const So = yt(Cl), To = (e) => {
|
|
|
4922
4924
|
field: d,
|
|
4923
4925
|
operator: u,
|
|
4924
4926
|
manualIds: f
|
|
4925
|
-
} = e, [m, g] = v(!1), [h, p] = v(), [y, w] = v(), [F, _] = v(), [T, S] = v(0), [D,
|
|
4927
|
+
} = e, [m, g] = v(!1), [h, p] = v(), [y, w] = v(), [F, _] = v(), [T, S] = v(0), [D, A] = v(0), [C, b] = v(), [I, x] = v(), [O, L] = v();
|
|
4926
4928
|
fe(() => {
|
|
4927
4929
|
M();
|
|
4928
4930
|
}, [t, o]);
|
|
@@ -5024,10 +5026,10 @@ const So = yt(Cl), To = (e) => {
|
|
|
5024
5026
|
bounds: !0,
|
|
5025
5027
|
onResize: ($) => {
|
|
5026
5028
|
var K, R;
|
|
5027
|
-
S((K = $.bounds) == null ? void 0 : K.height),
|
|
5029
|
+
S((K = $.bounds) == null ? void 0 : K.height), A((R = $.bounds) == null ? void 0 : R.width);
|
|
5028
5030
|
},
|
|
5029
5031
|
children: ({ measureRef: $ }) => a ? /* @__PURE__ */ n(
|
|
5030
|
-
|
|
5032
|
+
Al,
|
|
5031
5033
|
{
|
|
5032
5034
|
value: h,
|
|
5033
5035
|
total: F,
|
|
@@ -5093,14 +5095,14 @@ function Rl({
|
|
|
5093
5095
|
justifyContent: "center",
|
|
5094
5096
|
overflow: "hidden"
|
|
5095
5097
|
},
|
|
5096
|
-
children: /* @__PURE__ */
|
|
5098
|
+
children: /* @__PURE__ */ V(En, { style: { fontSize: c, margin: 0, color: s }, children: [
|
|
5097
5099
|
m && /* @__PURE__ */ n(m, { style: { fontSize: c * 0.7 } }),
|
|
5098
5100
|
m ? ` ${u}` : u
|
|
5099
5101
|
] })
|
|
5100
5102
|
}
|
|
5101
5103
|
);
|
|
5102
5104
|
}
|
|
5103
|
-
function
|
|
5105
|
+
function Al({
|
|
5104
5106
|
measureRef: e,
|
|
5105
5107
|
height: t,
|
|
5106
5108
|
width: r,
|
|
@@ -5143,9 +5145,9 @@ function Vl({
|
|
|
5143
5145
|
flexDirection: "column",
|
|
5144
5146
|
padding: "0.2rem"
|
|
5145
5147
|
},
|
|
5146
|
-
children: /* @__PURE__ */
|
|
5148
|
+
children: /* @__PURE__ */ V(Te, { align: "middle", children: [
|
|
5147
5149
|
p && /* @__PURE__ */ n(ce, { style: { fontSize: u * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ n(p, {}) }),
|
|
5148
|
-
/* @__PURE__ */
|
|
5150
|
+
/* @__PURE__ */ V(ce, { children: [
|
|
5149
5151
|
/* @__PURE__ */ n(En, { style: { fontSize: u * 0.8, margin: 0, color: a }, children: p ? ` ${i}%` : `${i}%` }),
|
|
5150
5152
|
/* @__PURE__ */ n(
|
|
5151
5153
|
En,
|
|
@@ -5170,7 +5172,7 @@ const On = (e) => (t) => {
|
|
|
5170
5172
|
});
|
|
5171
5173
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
5172
5174
|
}, on = (e) => {
|
|
5173
|
-
if (typeof e == "string" &&
|
|
5175
|
+
if (typeof e == "string" && Vl(e))
|
|
5174
5176
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
5175
5177
|
useGrouping: !0
|
|
5176
5178
|
});
|
|
@@ -5185,7 +5187,7 @@ const On = (e) => (t) => {
|
|
|
5185
5187
|
);
|
|
5186
5188
|
} else
|
|
5187
5189
|
return e;
|
|
5188
|
-
},
|
|
5190
|
+
}, Vl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Dl = (e) => typeof e == "number" && !isNaN(e), Or = {
|
|
5189
5191
|
default: {
|
|
5190
5192
|
padding: "auto",
|
|
5191
5193
|
xAxis: {
|
|
@@ -5402,8 +5404,8 @@ async function $l({
|
|
|
5402
5404
|
};
|
|
5403
5405
|
}
|
|
5404
5406
|
const Bl = {
|
|
5405
|
-
line:
|
|
5406
|
-
bar:
|
|
5407
|
+
line: Ai,
|
|
5408
|
+
bar: Vi,
|
|
5407
5409
|
pie: Di
|
|
5408
5410
|
}, Hl = (e) => {
|
|
5409
5411
|
var w;
|
|
@@ -5423,7 +5425,7 @@ const Bl = {
|
|
|
5423
5425
|
if (!u)
|
|
5424
5426
|
return /* @__PURE__ */ n(nt, { message: "No data to display", type: "info" });
|
|
5425
5427
|
const { data: g, isGroup: h, isStack: p } = u, y = Bl[f];
|
|
5426
|
-
return y ? /* @__PURE__ */
|
|
5428
|
+
return y ? /* @__PURE__ */ V("div", { style: { padding: "1rem" }, children: [
|
|
5427
5429
|
/* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(w = m == null ? void 0 : m.length) == null ? void 0 : w.toLocaleString(
|
|
5428
5430
|
"es-ES",
|
|
5429
5431
|
{
|
|
@@ -5535,23 +5537,23 @@ const Wl = (e, t) => {
|
|
|
5535
5537
|
}
|
|
5536
5538
|
}, vn = yt(Wl), { confirm: jl } = Ze, Ul = ({ onOk: e, lang: t }) => {
|
|
5537
5539
|
jl({
|
|
5538
|
-
title:
|
|
5540
|
+
title: Ae("removeItems", t),
|
|
5539
5541
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
5540
5542
|
centered: !0,
|
|
5541
|
-
content:
|
|
5542
|
-
okText:
|
|
5543
|
+
content: Ae("confirmRemove", t),
|
|
5544
|
+
okText: Ae("yesConfirmRemove", t),
|
|
5543
5545
|
onOk: e,
|
|
5544
|
-
cancelText:
|
|
5546
|
+
cancelText: Ae("cancel", t)
|
|
5545
5547
|
});
|
|
5546
5548
|
}, { confirm: Yl } = Ze, Gl = ({ onOk: e, lang: t }) => {
|
|
5547
5549
|
Yl({
|
|
5548
|
-
title:
|
|
5550
|
+
title: Ae("unlinkItems", t),
|
|
5549
5551
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
5550
5552
|
centered: !0,
|
|
5551
|
-
content:
|
|
5552
|
-
okText:
|
|
5553
|
+
content: Ae("confirmUnlink", t),
|
|
5554
|
+
okText: Ae("yesConfirmUnlink", t),
|
|
5553
5555
|
onOk: e,
|
|
5554
|
-
cancelText:
|
|
5556
|
+
cancelText: Ae("cancel", t)
|
|
5555
5557
|
});
|
|
5556
5558
|
}, { useToken: ql } = Ke, zl = (e) => {
|
|
5557
5559
|
const {
|
|
@@ -5600,7 +5602,7 @@ const Wl = (e, t) => {
|
|
|
5600
5602
|
}
|
|
5601
5603
|
function T() {
|
|
5602
5604
|
let D = "_";
|
|
5603
|
-
return l === 0 ? D = "_" : D = (c + 1).toString(), /* @__PURE__ */
|
|
5605
|
+
return l === 0 ? D = "_" : D = (c + 1).toString(), /* @__PURE__ */ V("span", { className: "pl-1 pr-1", children: [
|
|
5604
5606
|
"(",
|
|
5605
5607
|
D,
|
|
5606
5608
|
"/",
|
|
@@ -5609,7 +5611,7 @@ const Wl = (e, t) => {
|
|
|
5609
5611
|
] });
|
|
5610
5612
|
}
|
|
5611
5613
|
function S() {
|
|
5612
|
-
return /* @__PURE__ */
|
|
5614
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
5613
5615
|
w(),
|
|
5614
5616
|
/* @__PURE__ */ n(
|
|
5615
5617
|
et,
|
|
@@ -5630,9 +5632,9 @@ const Wl = (e, t) => {
|
|
|
5630
5632
|
)
|
|
5631
5633
|
] });
|
|
5632
5634
|
}
|
|
5633
|
-
return /* @__PURE__ */
|
|
5635
|
+
return /* @__PURE__ */ V("div", { className: "flex mb-2", children: [
|
|
5634
5636
|
F(),
|
|
5635
|
-
/* @__PURE__ */
|
|
5637
|
+
/* @__PURE__ */ V("div", { className: "flex-none h-8 pl-2", children: [
|
|
5636
5638
|
s !== "graph" && h && /* @__PURE__ */ n(
|
|
5637
5639
|
et,
|
|
5638
5640
|
{
|
|
@@ -5681,7 +5683,7 @@ const Zl = (e) => {
|
|
|
5681
5683
|
var $e;
|
|
5682
5684
|
const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: d } = H(
|
|
5683
5685
|
_o
|
|
5684
|
-
), u = H(Be), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = u || {}, { lang: y, t: w } = H(he), [F, _] = v(!1), [T, S] = v(!1), [D,
|
|
5686
|
+
), u = H(Be), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = u || {}, { lang: y, t: w } = H(he), [F, _] = v(!1), [T, S] = v(!1), [D, A] = v(), [C, b] = v(!1), [I, x] = v(!1), [O, L] = v(), [N, q] = v([]), [M, $] = v(!1), K = de([]), [R, Y] = v(), te = de(), [Z, re] = v(void 0), {
|
|
5685
5687
|
readOnly: G,
|
|
5686
5688
|
relation: k,
|
|
5687
5689
|
context: P,
|
|
@@ -5712,7 +5714,7 @@ const Zl = (e) => {
|
|
|
5712
5714
|
await Pe(), c > ee.length - 1 && c !== 0 && d(0);
|
|
5713
5715
|
}, Pe = async (J) => {
|
|
5714
5716
|
var oe, Fe, ye;
|
|
5715
|
-
S(!0), _(!1),
|
|
5717
|
+
S(!0), _(!1), A(void 0);
|
|
5716
5718
|
try {
|
|
5717
5719
|
const [_e, Re] = await tr({
|
|
5718
5720
|
treeView: {
|
|
@@ -5729,7 +5731,7 @@ const Zl = (e) => {
|
|
|
5729
5731
|
});
|
|
5730
5732
|
return te.current || (te.current = _e.map((ot) => ot.id)), (a || J) === "tree" && Re && re(Re), ve(_e), _e;
|
|
5731
5733
|
} catch (_e) {
|
|
5732
|
-
|
|
5734
|
+
A(_e);
|
|
5733
5735
|
} finally {
|
|
5734
5736
|
S(!1);
|
|
5735
5737
|
}
|
|
@@ -5816,7 +5818,7 @@ const Zl = (e) => {
|
|
|
5816
5818
|
x(!0);
|
|
5817
5819
|
}) : x(!0);
|
|
5818
5820
|
}, Ce = async () => {
|
|
5819
|
-
S(!0), _(!1),
|
|
5821
|
+
S(!0), _(!1), A(void 0);
|
|
5820
5822
|
try {
|
|
5821
5823
|
if (ee[c].id > 0) {
|
|
5822
5824
|
const J = s.map((oe) => oe.id === ee[c].id ? {
|
|
@@ -5829,12 +5831,12 @@ const Zl = (e) => {
|
|
|
5829
5831
|
s.filter((J) => J.id !== ee[c].id)
|
|
5830
5832
|
);
|
|
5831
5833
|
} catch (J) {
|
|
5832
|
-
|
|
5834
|
+
A(J);
|
|
5833
5835
|
}
|
|
5834
5836
|
d(0), S(!1);
|
|
5835
5837
|
}, Oe = async () => {
|
|
5836
5838
|
const J = ee.filter((oe) => N.includes(oe.id));
|
|
5837
|
-
S(!0), _(!1),
|
|
5839
|
+
S(!0), _(!1), A(void 0);
|
|
5838
5840
|
try {
|
|
5839
5841
|
const oe = J.map((ye) => ye.id), Fe = s.filter((ye) => !(oe.includes(ye.id) && ye.id < 0)).map((ye) => oe.includes(ye.id) ? {
|
|
5840
5842
|
...ye,
|
|
@@ -5842,7 +5844,7 @@ const Zl = (e) => {
|
|
|
5842
5844
|
} : ye);
|
|
5843
5845
|
ve(Fe);
|
|
5844
5846
|
} catch (oe) {
|
|
5845
|
-
|
|
5847
|
+
A(oe);
|
|
5846
5848
|
}
|
|
5847
5849
|
d(0), S(!1);
|
|
5848
5850
|
}, je = (J, oe, Fe, ye = !1) => {
|
|
@@ -5901,7 +5903,7 @@ const Zl = (e) => {
|
|
|
5901
5903
|
}
|
|
5902
5904
|
ve(oe);
|
|
5903
5905
|
} catch (ye) {
|
|
5904
|
-
|
|
5906
|
+
A(ye);
|
|
5905
5907
|
} finally {
|
|
5906
5908
|
S(!1);
|
|
5907
5909
|
}
|
|
@@ -5985,7 +5987,7 @@ const Zl = (e) => {
|
|
|
5985
5987
|
if (D)
|
|
5986
5988
|
return /* @__PURE__ */ n(nt, { className: "mt-10", message: D, type: "error", banner: !0 });
|
|
5987
5989
|
const ze = M;
|
|
5988
|
-
return T ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */
|
|
5990
|
+
return T ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
|
|
5989
5991
|
/* @__PURE__ */ n(
|
|
5990
5992
|
zl,
|
|
5991
5993
|
{
|
|
@@ -6151,7 +6153,7 @@ function oc(e) {
|
|
|
6151
6153
|
return /* @__PURE__ */ n(Mr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
6152
6154
|
rc,
|
|
6153
6155
|
{
|
|
6154
|
-
tab: /* @__PURE__ */
|
|
6156
|
+
tab: /* @__PURE__ */ V(X, { children: [
|
|
6155
6157
|
o(s.icon),
|
|
6156
6158
|
" ",
|
|
6157
6159
|
s.label
|
|
@@ -6203,7 +6205,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6203
6205
|
formHasChanges: d,
|
|
6204
6206
|
elementHasLostFocus: u
|
|
6205
6207
|
} = s || {}, [f, m] = v(!1), { t: g } = H(he);
|
|
6206
|
-
return a ? /* @__PURE__ */
|
|
6208
|
+
return a ? /* @__PURE__ */ V(X, { children: [
|
|
6207
6209
|
/* @__PURE__ */ n(
|
|
6208
6210
|
"div",
|
|
6209
6211
|
{
|
|
@@ -6250,7 +6252,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6250
6252
|
}
|
|
6251
6253
|
}
|
|
6252
6254
|
)
|
|
6253
|
-
] }) : /* @__PURE__ */
|
|
6255
|
+
] }) : /* @__PURE__ */ V(X, { children: [
|
|
6254
6256
|
/* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, children: /* @__PURE__ */ n(
|
|
6255
6257
|
Pn,
|
|
6256
6258
|
{
|
|
@@ -6281,7 +6283,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6281
6283
|
] });
|
|
6282
6284
|
}, lc = (e) => {
|
|
6283
6285
|
const { ooui: t } = e, { label: r, icon: i } = t, o = ut(i || "");
|
|
6284
|
-
return /* @__PURE__ */ n(mn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */
|
|
6286
|
+
return /* @__PURE__ */ n(mn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ V(Ye, { children: [
|
|
6285
6287
|
o ? /* @__PURE__ */ n(o, {}) : null,
|
|
6286
6288
|
r
|
|
6287
6289
|
] }) });
|
|
@@ -6297,7 +6299,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6297
6299
|
const l = de({}), c = de(/* @__PURE__ */ new Map()), d = Se(
|
|
6298
6300
|
async (y) => {
|
|
6299
6301
|
if (y.selectedKeys === void 0 || y.selectedKeys.length === 0) {
|
|
6300
|
-
ht(
|
|
6302
|
+
ht(Ae("selectAtLeastOneField", r));
|
|
6301
6303
|
return;
|
|
6302
6304
|
}
|
|
6303
6305
|
let w = o;
|
|
@@ -6355,10 +6357,10 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6355
6357
|
predefinedExports: y.map((_) => ({
|
|
6356
6358
|
..._,
|
|
6357
6359
|
fields: _.fields.map((T) => {
|
|
6358
|
-
const S = Ln(T.key),
|
|
6360
|
+
const S = Ln(T.key), A = $n(T.key, l.current)[S];
|
|
6359
6361
|
return {
|
|
6360
6362
|
key: T.key,
|
|
6361
|
-
title:
|
|
6363
|
+
title: A.string
|
|
6362
6364
|
};
|
|
6363
6365
|
})
|
|
6364
6366
|
})),
|
|
@@ -6427,7 +6429,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6427
6429
|
const o = e[i];
|
|
6428
6430
|
if (o.relation && o.is_function === !0)
|
|
6429
6431
|
continue;
|
|
6430
|
-
const s =
|
|
6432
|
+
const s = Ao(o);
|
|
6431
6433
|
r.push({
|
|
6432
6434
|
key: dc({ key: i, parentKey: t }),
|
|
6433
6435
|
title: o.string,
|
|
@@ -6437,7 +6439,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6437
6439
|
});
|
|
6438
6440
|
}
|
|
6439
6441
|
return r;
|
|
6440
|
-
},
|
|
6442
|
+
}, Ao = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", dc = ({
|
|
6441
6443
|
parentKey: e,
|
|
6442
6444
|
key: t
|
|
6443
6445
|
}) => `${e ? e + "/" : ""}${t}`, Wt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Ln = (e) => {
|
|
@@ -6504,7 +6506,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6504
6506
|
fields: t
|
|
6505
6507
|
}) => e.map((r) => {
|
|
6506
6508
|
const i = Ln(r), s = $n(r, t)[i];
|
|
6507
|
-
return
|
|
6509
|
+
return Ao(s) ? `${r}/id` : r;
|
|
6508
6510
|
}), gc = (e) => {
|
|
6509
6511
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
6510
6512
|
for (const i of e) {
|
|
@@ -6594,7 +6596,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6594
6596
|
}
|
|
6595
6597
|
const m = t && l && l[0], g = t && l && l[1] && parseInt(l[1]);
|
|
6596
6598
|
d([g, void 0]), f(m);
|
|
6597
|
-
}, [t]), /* @__PURE__ */
|
|
6599
|
+
}, [t]), /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
|
|
6598
6600
|
/* @__PURE__ */ n(ce, { flex: "1", children: /* @__PURE__ */ n(
|
|
6599
6601
|
lo,
|
|
6600
6602
|
{
|
|
@@ -6640,8 +6642,8 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6640
6642
|
i == null || i(_);
|
|
6641
6643
|
};
|
|
6642
6644
|
async function p() {
|
|
6643
|
-
const _ = await kt(r), T = `data:${_ == null ? void 0 : _.mime};base64,${r}`, S = document.createElement("a"), D = f(a),
|
|
6644
|
-
S.href = T, S.download = D ||
|
|
6645
|
+
const _ = await kt(r), T = `data:${_ == null ? void 0 : _.mime};base64,${r}`, S = document.createElement("a"), D = f(a), A = f("name");
|
|
6646
|
+
S.href = T, S.download = D || A, S.click();
|
|
6645
6647
|
}
|
|
6646
6648
|
async function y() {
|
|
6647
6649
|
const _ = await kt(r);
|
|
@@ -6655,8 +6657,8 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6655
6657
|
function F() {
|
|
6656
6658
|
u(a, void 0), h(void 0);
|
|
6657
6659
|
}
|
|
6658
|
-
return /* @__PURE__ */
|
|
6659
|
-
/* @__PURE__ */
|
|
6660
|
+
return /* @__PURE__ */ V(Te, { gutter: 8, children: [
|
|
6661
|
+
/* @__PURE__ */ V(ce, { style: { paddingBottom: 5 }, children: [
|
|
6660
6662
|
/* @__PURE__ */ n(
|
|
6661
6663
|
"input",
|
|
6662
6664
|
{
|
|
@@ -6677,9 +6679,9 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6677
6679
|
}
|
|
6678
6680
|
)
|
|
6679
6681
|
] }),
|
|
6680
|
-
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */
|
|
6682
|
+
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ V(Ye, { children: [
|
|
6681
6683
|
/* @__PURE__ */ n(
|
|
6682
|
-
|
|
6684
|
+
Ve,
|
|
6683
6685
|
{
|
|
6684
6686
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
6685
6687
|
disabled: o,
|
|
@@ -6689,7 +6691,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6689
6691
|
children: "Select"
|
|
6690
6692
|
}
|
|
6691
6693
|
),
|
|
6692
|
-
/* @__PURE__ */ n(
|
|
6694
|
+
/* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(bi, {}), disabled: !r, onClick: y, children: m("open") }),
|
|
6693
6695
|
/* @__PURE__ */ n(
|
|
6694
6696
|
et,
|
|
6695
6697
|
{
|
|
@@ -6716,7 +6718,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
|
|
|
6716
6718
|
graph: /* @__PURE__ */ n(Ci, {}),
|
|
6717
6719
|
calendar: /* @__PURE__ */ n(xi, {})
|
|
6718
6720
|
};
|
|
6719
|
-
function
|
|
6721
|
+
function Ar(e) {
|
|
6720
6722
|
return e ? (Rn == null ? void 0 : Rn[e.type]) || /* @__PURE__ */ n(Ut, {}) : /* @__PURE__ */ n(Ut, {});
|
|
6721
6723
|
}
|
|
6722
6724
|
function or(e) {
|
|
@@ -6729,18 +6731,21 @@ function or(e) {
|
|
|
6729
6731
|
previousView: a
|
|
6730
6732
|
} = e, { t: l, lang: c } = H(he);
|
|
6731
6733
|
function d() {
|
|
6732
|
-
const m = r.map((g, h) =>
|
|
6733
|
-
|
|
6734
|
-
/* @__PURE__ */ n(
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
{
|
|
6738
|
-
|
|
6739
|
-
|
|
6734
|
+
const m = r.map((g, h) => {
|
|
6735
|
+
const p = g.type.charAt(0).toUpperCase() + g.type.slice(1);
|
|
6736
|
+
return /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ V(Te, { wrap: !1, children: [
|
|
6737
|
+
/* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Ar(g) }),
|
|
6738
|
+
/* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.title || p }),
|
|
6739
|
+
/* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
|
|
6740
|
+
Mt,
|
|
6741
|
+
{
|
|
6742
|
+
style: {
|
|
6743
|
+
opacity: t.view_id === g.view_id ? 1 : 0
|
|
6744
|
+
}
|
|
6740
6745
|
}
|
|
6741
|
-
}
|
|
6742
|
-
) })
|
|
6743
|
-
|
|
6746
|
+
) })
|
|
6747
|
+
] }) }, g.view_id || h);
|
|
6748
|
+
});
|
|
6744
6749
|
return /* @__PURE__ */ n(He, { onClick: f, children: /* @__PURE__ */ n(He.ItemGroup, { title: l("viewAs"), children: m }) });
|
|
6745
6750
|
}
|
|
6746
6751
|
function u(m) {
|
|
@@ -6763,12 +6768,12 @@ function or(e) {
|
|
|
6763
6768
|
i(g);
|
|
6764
6769
|
});
|
|
6765
6770
|
}
|
|
6766
|
-
return /* @__PURE__ */
|
|
6771
|
+
return /* @__PURE__ */ V("div", { style: { display: "flex" }, children: [
|
|
6767
6772
|
/* @__PURE__ */ n(
|
|
6768
6773
|
et,
|
|
6769
6774
|
{
|
|
6770
6775
|
tooltip: a ? l("viewAs") + " " + l(a.type) : "",
|
|
6771
|
-
icon:
|
|
6776
|
+
icon: Ar(a),
|
|
6772
6777
|
style: {
|
|
6773
6778
|
width: 50,
|
|
6774
6779
|
borderTopRightRadius: 0,
|
|
@@ -6786,7 +6791,7 @@ function or(e) {
|
|
|
6786
6791
|
overlay: d(),
|
|
6787
6792
|
disabled: o || r.length === 1,
|
|
6788
6793
|
children: /* @__PURE__ */ n(
|
|
6789
|
-
|
|
6794
|
+
Ve,
|
|
6790
6795
|
{
|
|
6791
6796
|
style: {
|
|
6792
6797
|
width: 25,
|
|
@@ -6835,7 +6840,7 @@ const { Search: _c } = st, xt = Dr(
|
|
|
6835
6840
|
},
|
|
6836
6841
|
"no_match" + y
|
|
6837
6842
|
) : /* @__PURE__ */ n(He.Item, { children: p.name }, p.id));
|
|
6838
|
-
return /* @__PURE__ */
|
|
6843
|
+
return /* @__PURE__ */ V(He, { onClick: m, children: [
|
|
6839
6844
|
d && /* @__PURE__ */ n("div", { style: { padding: 5 }, children: /* @__PURE__ */ n(
|
|
6840
6845
|
_c,
|
|
6841
6846
|
{
|
|
@@ -6857,7 +6862,7 @@ const { Search: _c } = st, xt = Dr(
|
|
|
6857
6862
|
)
|
|
6858
6863
|
] });
|
|
6859
6864
|
}, [f, m, d, u, t]);
|
|
6860
|
-
return /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Jt, { overlay: g, disabled: s || r.length === 0, children: /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Jt, { overlay: g, disabled: s || r.length === 0, children: /* @__PURE__ */ V(Ve, { children: [
|
|
6861
6866
|
e,
|
|
6862
6867
|
" ",
|
|
6863
6868
|
o,
|
|
@@ -6877,7 +6882,7 @@ function Qe(e) {
|
|
|
6877
6882
|
label: a,
|
|
6878
6883
|
type: l = "default"
|
|
6879
6884
|
} = e;
|
|
6880
|
-
return /* @__PURE__ */
|
|
6885
|
+
return /* @__PURE__ */ V(
|
|
6881
6886
|
et,
|
|
6882
6887
|
{
|
|
6883
6888
|
type: l,
|
|
@@ -6891,7 +6896,7 @@ function Qe(e) {
|
|
|
6891
6896
|
}
|
|
6892
6897
|
);
|
|
6893
6898
|
}
|
|
6894
|
-
function
|
|
6899
|
+
function Vo(e) {
|
|
6895
6900
|
const { disabled: t = !1 } = e, { formHasChanges: r, onNewClicked: i } = H(
|
|
6896
6901
|
at
|
|
6897
6902
|
), { t: o, lang: s } = H(he), a = () => {
|
|
@@ -6922,12 +6927,12 @@ const { confirm: Oc } = Ze, Rc = ({
|
|
|
6922
6927
|
lang: r
|
|
6923
6928
|
}) => {
|
|
6924
6929
|
Oc({
|
|
6925
|
-
title:
|
|
6930
|
+
title: Ae("unsavedChanges", r),
|
|
6926
6931
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
6927
6932
|
centered: !0,
|
|
6928
|
-
content:
|
|
6929
|
-
okText:
|
|
6930
|
-
cancelText:
|
|
6933
|
+
content: Ae("confirmRefreshWithoutSave", r),
|
|
6934
|
+
okText: Ae("discardAndRefresh", r),
|
|
6935
|
+
cancelText: Ae("cancel", r),
|
|
6931
6936
|
onOk: e,
|
|
6932
6937
|
onCancel: t
|
|
6933
6938
|
});
|
|
@@ -6938,7 +6943,7 @@ async function Do(e, t, r) {
|
|
|
6938
6943
|
ids: [t]
|
|
6939
6944
|
}))[0], { create_date: o, create_uid: s, id: a, write_date: l, write_uid: c } = i;
|
|
6940
6945
|
ht(
|
|
6941
|
-
/* @__PURE__ */
|
|
6946
|
+
/* @__PURE__ */ V("div", { children: [
|
|
6942
6947
|
"ID: " + a,
|
|
6943
6948
|
" ",
|
|
6944
6949
|
/* @__PURE__ */ n("br", {}),
|
|
@@ -6955,8 +6960,8 @@ async function Do(e, t, r) {
|
|
|
6955
6960
|
] })
|
|
6956
6961
|
);
|
|
6957
6962
|
}
|
|
6958
|
-
const
|
|
6959
|
-
const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = v(!1), l = /* @__PURE__ */
|
|
6963
|
+
const Ac = (e) => {
|
|
6964
|
+
const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = v(!1), l = /* @__PURE__ */ V(Ve, { disabled: r, children: [
|
|
6960
6965
|
/* @__PURE__ */ n(Xr, {}),
|
|
6961
6966
|
`(${t})`,
|
|
6962
6967
|
/* @__PURE__ */ n(Nt, { style: { fontSize: 12 } })
|
|
@@ -6967,13 +6972,13 @@ const Vc = (e) => {
|
|
|
6967
6972
|
onVisibleChange: (c) => a(c),
|
|
6968
6973
|
visible: s,
|
|
6969
6974
|
placement: "bottom",
|
|
6970
|
-
content:
|
|
6975
|
+
content: Vc(e, a, o),
|
|
6971
6976
|
title: i("attachments"),
|
|
6972
6977
|
arrowContent: null,
|
|
6973
6978
|
children: l
|
|
6974
6979
|
}
|
|
6975
6980
|
);
|
|
6976
|
-
},
|
|
6981
|
+
}, Vc = (e, t, r) => {
|
|
6977
6982
|
const {
|
|
6978
6983
|
attachments: i = [],
|
|
6979
6984
|
loading: o,
|
|
@@ -6982,8 +6987,8 @@ const Vc = (e) => {
|
|
|
6982
6987
|
onOpenAttachmentDetail: l,
|
|
6983
6988
|
onListAllAttachments: c
|
|
6984
6989
|
} = e;
|
|
6985
|
-
return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6990
|
+
return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */ V(X, { children: [
|
|
6991
|
+
/* @__PURE__ */ V(
|
|
6987
6992
|
"a",
|
|
6988
6993
|
{
|
|
6989
6994
|
style: { display: "block", paddingBottom: 5 },
|
|
@@ -6994,11 +6999,11 @@ const Vc = (e) => {
|
|
|
6994
6999
|
children: [
|
|
6995
7000
|
/* @__PURE__ */ n(Xn, {}),
|
|
6996
7001
|
" ",
|
|
6997
|
-
|
|
7002
|
+
Ae("listAllAttachments", r)
|
|
6998
7003
|
]
|
|
6999
7004
|
}
|
|
7000
7005
|
),
|
|
7001
|
-
/* @__PURE__ */
|
|
7006
|
+
/* @__PURE__ */ V(
|
|
7002
7007
|
"a",
|
|
7003
7008
|
{
|
|
7004
7009
|
style: { display: "block" },
|
|
@@ -7009,15 +7014,15 @@ const Vc = (e) => {
|
|
|
7009
7014
|
children: [
|
|
7010
7015
|
/* @__PURE__ */ n(hn, {}),
|
|
7011
7016
|
" ",
|
|
7012
|
-
|
|
7017
|
+
Ae("addNewAttachment", r)
|
|
7013
7018
|
]
|
|
7014
7019
|
}
|
|
7015
7020
|
),
|
|
7016
|
-
i.length > 0 && /* @__PURE__ */
|
|
7021
|
+
i.length > 0 && /* @__PURE__ */ V(X, { children: [
|
|
7017
7022
|
/* @__PURE__ */ n("li", { className: "ant-dropdown-menu-item-divider" }),
|
|
7018
7023
|
i.map((d) => {
|
|
7019
7024
|
const u = d.link ? Xr : Un;
|
|
7020
|
-
return /* @__PURE__ */
|
|
7025
|
+
return /* @__PURE__ */ V(
|
|
7021
7026
|
Te,
|
|
7022
7027
|
{
|
|
7023
7028
|
style: { paddingTop: 4, paddingBottom: 4 },
|
|
@@ -7028,7 +7033,7 @@ const Vc = (e) => {
|
|
|
7028
7033
|
/* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ n(
|
|
7029
7034
|
gt,
|
|
7030
7035
|
{
|
|
7031
|
-
title: d.link ?
|
|
7036
|
+
title: d.link ? Ae("openAttachmentLink", r) : Ae("download", r),
|
|
7032
7037
|
children: /* @__PURE__ */ n(
|
|
7033
7038
|
u,
|
|
7034
7039
|
{
|
|
@@ -7040,7 +7045,7 @@ const Vc = (e) => {
|
|
|
7040
7045
|
)
|
|
7041
7046
|
}
|
|
7042
7047
|
) }),
|
|
7043
|
-
/* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: /* @__PURE__ */ n(gt, { title:
|
|
7048
|
+
/* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: /* @__PURE__ */ n(gt, { title: Ae("openAttachment", r), children: /* @__PURE__ */ n(
|
|
7044
7049
|
Ut,
|
|
7045
7050
|
{
|
|
7046
7051
|
style: { cursor: "pointer" },
|
|
@@ -7112,9 +7117,9 @@ function Dc(e) {
|
|
|
7112
7117
|
}, []);
|
|
7113
7118
|
return fe(() => {
|
|
7114
7119
|
h();
|
|
7115
|
-
}, [h]), /* @__PURE__ */
|
|
7120
|
+
}, [h]), /* @__PURE__ */ V(X, { children: [
|
|
7116
7121
|
/* @__PURE__ */ n(
|
|
7117
|
-
|
|
7122
|
+
Ac,
|
|
7118
7123
|
{
|
|
7119
7124
|
numberOfAttachments: t.length,
|
|
7120
7125
|
attachments: d,
|
|
@@ -7164,7 +7169,7 @@ function kc({ toolbar: e }) {
|
|
|
7164
7169
|
formRef: T,
|
|
7165
7170
|
setFormHasChanges: S,
|
|
7166
7171
|
previousView: D,
|
|
7167
|
-
setPreviousView:
|
|
7172
|
+
setPreviousView: A,
|
|
7168
7173
|
goToResourceId: C
|
|
7169
7174
|
} = H(at), { t: b, lang: I } = H(he), x = H(
|
|
7170
7175
|
$t
|
|
@@ -7254,14 +7259,14 @@ function kc({ toolbar: e }) {
|
|
|
7254
7259
|
}
|
|
7255
7260
|
});
|
|
7256
7261
|
}
|
|
7257
|
-
return r ? /* @__PURE__ */
|
|
7258
|
-
F && /* @__PURE__ */
|
|
7262
|
+
return r ? /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
7263
|
+
F && /* @__PURE__ */ V(X, { children: [
|
|
7259
7264
|
/* @__PURE__ */ n(ke, {}),
|
|
7260
7265
|
_t(),
|
|
7261
7266
|
_t()
|
|
7262
7267
|
] }),
|
|
7263
7268
|
/* @__PURE__ */ n(
|
|
7264
|
-
|
|
7269
|
+
Vo,
|
|
7265
7270
|
{
|
|
7266
7271
|
disabled: a || F || h || p
|
|
7267
7272
|
}
|
|
@@ -7331,14 +7336,14 @@ function kc({ toolbar: e }) {
|
|
|
7331
7336
|
previousView: D,
|
|
7332
7337
|
availableViews: t,
|
|
7333
7338
|
onChangeView: (k) => {
|
|
7334
|
-
|
|
7339
|
+
A == null || A(r), S == null || S(!1), i == null || i(k);
|
|
7335
7340
|
},
|
|
7336
7341
|
disabled: re,
|
|
7337
7342
|
formHasChanges: s
|
|
7338
7343
|
}
|
|
7339
7344
|
),
|
|
7340
7345
|
_t(),
|
|
7341
|
-
/* @__PURE__ */
|
|
7346
|
+
/* @__PURE__ */ V(Ye, { children: [
|
|
7342
7347
|
/* @__PURE__ */ n(
|
|
7343
7348
|
Qe,
|
|
7344
7349
|
{
|
|
@@ -7435,7 +7440,7 @@ function kc({ toolbar: e }) {
|
|
|
7435
7440
|
return;
|
|
7436
7441
|
const P = k.currentId;
|
|
7437
7442
|
q({
|
|
7438
|
-
...
|
|
7443
|
+
...Vr(m, P),
|
|
7439
7444
|
initialViewType: "form"
|
|
7440
7445
|
});
|
|
7441
7446
|
},
|
|
@@ -7447,7 +7452,7 @@ function kc({ toolbar: e }) {
|
|
|
7447
7452
|
return;
|
|
7448
7453
|
const P = k.currentId;
|
|
7449
7454
|
q({
|
|
7450
|
-
...
|
|
7455
|
+
...Vr(m, P),
|
|
7451
7456
|
initialViewType: "tree"
|
|
7452
7457
|
});
|
|
7453
7458
|
},
|
|
@@ -7473,7 +7478,7 @@ async function Ot({
|
|
|
7473
7478
|
const t = await (e == null ? void 0 : e());
|
|
7474
7479
|
return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
|
|
7475
7480
|
}
|
|
7476
|
-
function
|
|
7481
|
+
function Vr(e, t) {
|
|
7477
7482
|
return {
|
|
7478
7483
|
model: "ir.attachment",
|
|
7479
7484
|
domain: [
|
|
@@ -7497,9 +7502,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7497
7502
|
const w = (F) => {
|
|
7498
7503
|
i == null || i(F.target.value);
|
|
7499
7504
|
};
|
|
7500
|
-
return /* @__PURE__ */
|
|
7505
|
+
return /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, align: "middle", children: [
|
|
7501
7506
|
l ? null : /* @__PURE__ */ n(ce, { flex: "32px", children: g ? /* @__PURE__ */ n(
|
|
7502
|
-
|
|
7507
|
+
Ve,
|
|
7503
7508
|
{
|
|
7504
7509
|
icon: /* @__PURE__ */ n(Mt, {}),
|
|
7505
7510
|
onClick: () => {
|
|
@@ -7509,7 +7514,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7509
7514
|
tabIndex: -1
|
|
7510
7515
|
}
|
|
7511
7516
|
) : /* @__PURE__ */ n(
|
|
7512
|
-
|
|
7517
|
+
Ve,
|
|
7513
7518
|
{
|
|
7514
7519
|
icon: /* @__PURE__ */ n(Qr, {}),
|
|
7515
7520
|
onClick: () => {
|
|
@@ -7584,7 +7589,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7584
7589
|
var d;
|
|
7585
7590
|
return c && ((d = a.current) == null ? void 0 : d.focus());
|
|
7586
7591
|
},
|
|
7587
|
-
children: /* @__PURE__ */
|
|
7592
|
+
children: /* @__PURE__ */ V(dt, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
|
|
7588
7593
|
/* @__PURE__ */ n(
|
|
7589
7594
|
dt.Item,
|
|
7590
7595
|
{
|
|
@@ -7599,9 +7604,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7599
7604
|
children: /* @__PURE__ */ n(st, { style: { width: "100%" }, autoFocus: !0, ref: a })
|
|
7600
7605
|
}
|
|
7601
7606
|
),
|
|
7602
|
-
/* @__PURE__ */ n(Te, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ce, { children: /* @__PURE__ */
|
|
7607
|
+
/* @__PURE__ */ n(Te, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ V(Ye, { children: [
|
|
7603
7608
|
/* @__PURE__ */ n(
|
|
7604
|
-
|
|
7609
|
+
Ve,
|
|
7605
7610
|
{
|
|
7606
7611
|
icon: /* @__PURE__ */ n(Xt, {}),
|
|
7607
7612
|
htmlType: "button",
|
|
@@ -7611,7 +7616,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7611
7616
|
}
|
|
7612
7617
|
),
|
|
7613
7618
|
/* @__PURE__ */ n(
|
|
7614
|
-
|
|
7619
|
+
Ve,
|
|
7615
7620
|
{
|
|
7616
7621
|
loading: o,
|
|
7617
7622
|
style: { marginLeft: 15 },
|
|
@@ -7629,7 +7634,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7629
7634
|
}, { useToken: Lc } = Ke;
|
|
7630
7635
|
function Eo(e) {
|
|
7631
7636
|
const { badgeNumber: t = 0, ...r } = e, { token: i } = Lc();
|
|
7632
|
-
return /* @__PURE__ */
|
|
7637
|
+
return /* @__PURE__ */ V("div", { style: { position: "relative" }, children: [
|
|
7633
7638
|
t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
|
|
7634
7639
|
"span",
|
|
7635
7640
|
{
|
|
@@ -7667,7 +7672,7 @@ function $c({ refreshGraph: e }) {
|
|
|
7667
7672
|
previousView: d,
|
|
7668
7673
|
setPreviousView: u
|
|
7669
7674
|
} = H(at);
|
|
7670
|
-
return /* @__PURE__ */
|
|
7675
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
7671
7676
|
/* @__PURE__ */ n(
|
|
7672
7677
|
Eo,
|
|
7673
7678
|
{
|
|
@@ -7725,7 +7730,7 @@ function bn(e) {
|
|
|
7725
7730
|
} = H(at), { t: u } = H(he), { token: f } = Bc();
|
|
7726
7731
|
function m() {
|
|
7727
7732
|
if ((o == null ? void 0 : o.type) === "form")
|
|
7728
|
-
return s ? c === 0 ? /* @__PURE__ */
|
|
7733
|
+
return s ? c === 0 ? /* @__PURE__ */ V(X, { children: [
|
|
7729
7734
|
u("editingDocument"),
|
|
7730
7735
|
" (id:",
|
|
7731
7736
|
" ",
|
|
@@ -7737,7 +7742,7 @@ function bn(e) {
|
|
|
7737
7742
|
}
|
|
7738
7743
|
),
|
|
7739
7744
|
")"
|
|
7740
|
-
] }) : /* @__PURE__ */
|
|
7745
|
+
] }) : /* @__PURE__ */ V(X, { children: [
|
|
7741
7746
|
u("register"),
|
|
7742
7747
|
" ",
|
|
7743
7748
|
a === void 0 ? 1 : a + 1,
|
|
@@ -7757,7 +7762,7 @@ function bn(e) {
|
|
|
7757
7762
|
] }) : "";
|
|
7758
7763
|
if ((o == null ? void 0 : o.type) === "tree" && d) {
|
|
7759
7764
|
if (d.length === 1)
|
|
7760
|
-
return /* @__PURE__ */
|
|
7765
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
7761
7766
|
"1 ",
|
|
7762
7767
|
u("selectedRegisters"),
|
|
7763
7768
|
" - (id:",
|
|
@@ -7766,7 +7771,7 @@ function bn(e) {
|
|
|
7766
7771
|
")"
|
|
7767
7772
|
] });
|
|
7768
7773
|
if (d.length > 1)
|
|
7769
|
-
return /* @__PURE__ */
|
|
7774
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
7770
7775
|
d.length,
|
|
7771
7776
|
" ",
|
|
7772
7777
|
u("selectedRegisters"),
|
|
@@ -7782,7 +7787,7 @@ function bn(e) {
|
|
|
7782
7787
|
}
|
|
7783
7788
|
return null;
|
|
7784
7789
|
}
|
|
7785
|
-
return /* @__PURE__ */
|
|
7790
|
+
return /* @__PURE__ */ V(
|
|
7786
7791
|
"div",
|
|
7787
7792
|
{
|
|
7788
7793
|
style: {
|
|
@@ -7791,7 +7796,7 @@ function bn(e) {
|
|
|
7791
7796
|
zIndex: 3
|
|
7792
7797
|
},
|
|
7793
7798
|
children: [
|
|
7794
|
-
/* @__PURE__ */
|
|
7799
|
+
/* @__PURE__ */ V(
|
|
7795
7800
|
Te,
|
|
7796
7801
|
{
|
|
7797
7802
|
className: "shadow-md",
|
|
@@ -7803,7 +7808,7 @@ function bn(e) {
|
|
|
7803
7808
|
},
|
|
7804
7809
|
align: "middle",
|
|
7805
7810
|
children: [
|
|
7806
|
-
/* @__PURE__ */
|
|
7811
|
+
/* @__PURE__ */ V(ce, { flex: 2, children: [
|
|
7807
7812
|
/* @__PURE__ */ n(Hc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
|
|
7808
7813
|
m()
|
|
7809
7814
|
] }),
|
|
@@ -7833,7 +7838,7 @@ const Kc = (e) => {
|
|
|
7833
7838
|
setTotalItems: T = void 0,
|
|
7834
7839
|
setSearchTreeNameSearch: S = void 0,
|
|
7835
7840
|
setTreeIsLoading: D = void 0,
|
|
7836
|
-
limit:
|
|
7841
|
+
limit: A,
|
|
7837
7842
|
setLimit: C,
|
|
7838
7843
|
searchParams: b,
|
|
7839
7844
|
searchValues: I,
|
|
@@ -7866,10 +7871,10 @@ const Kc = (e) => {
|
|
|
7866
7871
|
domain: s,
|
|
7867
7872
|
currentId: m,
|
|
7868
7873
|
setActionViewTotalItems: T,
|
|
7869
|
-
limit:
|
|
7874
|
+
limit: A,
|
|
7870
7875
|
setLimit: C
|
|
7871
7876
|
});
|
|
7872
|
-
return !r || !t ? null : /* @__PURE__ */
|
|
7877
|
+
return !r || !t ? null : /* @__PURE__ */ V(X, { children: [
|
|
7873
7878
|
/* @__PURE__ */ n(bn, { title: t.name, children: /* @__PURE__ */ n(
|
|
7874
7879
|
$c,
|
|
7875
7880
|
{
|
|
@@ -7886,7 +7891,7 @@ const Kc = (e) => {
|
|
|
7886
7891
|
a.search_fields,
|
|
7887
7892
|
l.search_fields
|
|
7888
7893
|
]),
|
|
7889
|
-
limit:
|
|
7894
|
+
limit: A,
|
|
7890
7895
|
onClear: q,
|
|
7891
7896
|
offset: K,
|
|
7892
7897
|
isSearching: M,
|
|
@@ -7907,7 +7912,7 @@ const Kc = (e) => {
|
|
|
7907
7912
|
model: i,
|
|
7908
7913
|
context: o,
|
|
7909
7914
|
domain: Gt(b || [], s),
|
|
7910
|
-
limit: L ?
|
|
7915
|
+
limit: L ? A : void 0,
|
|
7911
7916
|
manualIds: L ? g == null ? void 0 : g.map((Y) => Y.id) : void 0
|
|
7912
7917
|
}
|
|
7913
7918
|
)
|
|
@@ -7927,7 +7932,7 @@ const Kc = (e) => {
|
|
|
7927
7932
|
setResults: f,
|
|
7928
7933
|
setCurrentItemIndex: m
|
|
7929
7934
|
} = e;
|
|
7930
|
-
return t ? /* @__PURE__ */
|
|
7935
|
+
return t ? /* @__PURE__ */ V(X, { children: [
|
|
7931
7936
|
/* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(kc, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
7932
7937
|
/* @__PURE__ */ n(
|
|
7933
7938
|
en,
|
|
@@ -7959,7 +7964,7 @@ function jc(e) {
|
|
|
7959
7964
|
function d() {
|
|
7960
7965
|
l(!1), s.setFieldsValue({ search: void 0 }), t(void 0);
|
|
7961
7966
|
}
|
|
7962
|
-
return /* @__PURE__ */ n(dt, { form: s, onFinish: c, autoComplete: "off", children: /* @__PURE__ */
|
|
7967
|
+
return /* @__PURE__ */ n(dt, { form: s, onFinish: c, autoComplete: "off", children: /* @__PURE__ */ V(Te, { align: "middle", justify: "end", children: [
|
|
7963
7968
|
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(dt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
|
|
7964
7969
|
st,
|
|
7965
7970
|
{
|
|
@@ -7979,7 +7984,7 @@ function jc(e) {
|
|
|
7979
7984
|
}
|
|
7980
7985
|
) }) }),
|
|
7981
7986
|
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
|
|
7982
|
-
|
|
7987
|
+
Ve,
|
|
7983
7988
|
{
|
|
7984
7989
|
htmlType: "submit",
|
|
7985
7990
|
disabled: r,
|
|
@@ -8022,7 +8027,7 @@ function qc(e) {
|
|
|
8022
8027
|
previousView: T,
|
|
8023
8028
|
results: S,
|
|
8024
8029
|
limit: D,
|
|
8025
|
-
totalItems:
|
|
8030
|
+
totalItems: A
|
|
8026
8031
|
} = H(at), { parentContext: C = {}, treeExpandable: b, toolbar: I } = e, x = Gc(
|
|
8027
8032
|
No.FEATURE_ADVANCED_EXPORT
|
|
8028
8033
|
), { t: O, lang: L } = H(he), N = H(
|
|
@@ -8086,13 +8091,13 @@ function qc(e) {
|
|
|
8086
8091
|
}
|
|
8087
8092
|
});
|
|
8088
8093
|
}
|
|
8089
|
-
return /* @__PURE__ */
|
|
8090
|
-
F && /* @__PURE__ */
|
|
8094
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
8095
|
+
F && /* @__PURE__ */ V(X, { children: [
|
|
8091
8096
|
/* @__PURE__ */ n(ke, {}),
|
|
8092
8097
|
bt(),
|
|
8093
8098
|
bt()
|
|
8094
8099
|
] }),
|
|
8095
|
-
b ? null : /* @__PURE__ */
|
|
8100
|
+
b ? null : /* @__PURE__ */ V(X, { children: [
|
|
8096
8101
|
/* @__PURE__ */ n(
|
|
8097
8102
|
jc,
|
|
8098
8103
|
{
|
|
@@ -8122,7 +8127,7 @@ function qc(e) {
|
|
|
8122
8127
|
}
|
|
8123
8128
|
),
|
|
8124
8129
|
bt(),
|
|
8125
|
-
/* @__PURE__ */ n(
|
|
8130
|
+
/* @__PURE__ */ n(Vo, { disabled: F }),
|
|
8126
8131
|
/* @__PURE__ */ n(
|
|
8127
8132
|
Qe,
|
|
8128
8133
|
{
|
|
@@ -8170,7 +8175,7 @@ function qc(e) {
|
|
|
8170
8175
|
}
|
|
8171
8176
|
}
|
|
8172
8177
|
),
|
|
8173
|
-
!b && /* @__PURE__ */
|
|
8178
|
+
!b && /* @__PURE__ */ V(X, { children: [
|
|
8174
8179
|
bt(),
|
|
8175
8180
|
/* @__PURE__ */ n(
|
|
8176
8181
|
or,
|
|
@@ -8216,7 +8221,7 @@ function qc(e) {
|
|
|
8216
8221
|
}
|
|
8217
8222
|
}
|
|
8218
8223
|
),
|
|
8219
|
-
x && /* @__PURE__ */
|
|
8224
|
+
x && /* @__PURE__ */ V(X, { children: [
|
|
8220
8225
|
bt(),
|
|
8221
8226
|
/* @__PURE__ */ n(
|
|
8222
8227
|
xt,
|
|
@@ -8224,7 +8229,7 @@ function qc(e) {
|
|
|
8224
8229
|
icon: /* @__PURE__ */ n(
|
|
8225
8230
|
Kr,
|
|
8226
8231
|
{
|
|
8227
|
-
component: () => /* @__PURE__ */
|
|
8232
|
+
component: () => /* @__PURE__ */ V(
|
|
8228
8233
|
"svg",
|
|
8229
8234
|
{
|
|
8230
8235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8290,7 +8295,7 @@ function qc(e) {
|
|
|
8290
8295
|
g || []
|
|
8291
8296
|
),
|
|
8292
8297
|
limit: D,
|
|
8293
|
-
totalRegisters:
|
|
8298
|
+
totalRegisters: A || 0,
|
|
8294
8299
|
selectedRegistersToExport: o,
|
|
8295
8300
|
visibleRegisters: (S == null ? void 0 : S.length) || 0,
|
|
8296
8301
|
context: C
|
|
@@ -8320,7 +8325,7 @@ const zc = (e) => {
|
|
|
8320
8325
|
} = e, { currentView: h, setPreviousView: p } = H(
|
|
8321
8326
|
at
|
|
8322
8327
|
);
|
|
8323
|
-
return t ? /* @__PURE__ */
|
|
8328
|
+
return t ? /* @__PURE__ */ V(X, { children: [
|
|
8324
8329
|
/* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(
|
|
8325
8330
|
qc,
|
|
8326
8331
|
{
|
|
@@ -8372,7 +8377,7 @@ const zc = (e) => {
|
|
|
8372
8377
|
};
|
|
8373
8378
|
function Xc() {
|
|
8374
8379
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(ir), { t: o } = H(he);
|
|
8375
|
-
return /* @__PURE__ */
|
|
8380
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
8376
8381
|
/* @__PURE__ */ n(
|
|
8377
8382
|
Qe,
|
|
8378
8383
|
{
|
|
@@ -8425,7 +8430,7 @@ const Qc = (e) => {
|
|
|
8425
8430
|
const { dashboardData: t, visible: r } = e, i = de(), o = H(
|
|
8426
8431
|
ft
|
|
8427
8432
|
), { openShortcut: s } = o || {};
|
|
8428
|
-
return !t || !r ? null : /* @__PURE__ */
|
|
8433
|
+
return !t || !r ? null : /* @__PURE__ */ V(
|
|
8429
8434
|
Jc,
|
|
8430
8435
|
{
|
|
8431
8436
|
dashboardRef: i,
|
|
@@ -8480,8 +8485,8 @@ function td(e, t) {
|
|
|
8480
8485
|
action_type: h,
|
|
8481
8486
|
treeExpandable: p = !1,
|
|
8482
8487
|
limit: y
|
|
8483
|
-
} = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0),
|
|
8484
|
-
|
|
8488
|
+
} = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0), A = m || void 0, [C, b] = v(
|
|
8489
|
+
A
|
|
8485
8490
|
), [I, x] = v([]), [O, L] = v(), [N, q] = v([]), [M, $] = v(), [K, R] = v(0), [Y, te] = v(!1), [Z, re] = v(!1), [G, k] = v(), { t: P } = H(he) || {}, ie = de(), z = de(), pe = H(
|
|
8486
8491
|
ft
|
|
8487
8492
|
), {
|
|
@@ -8590,7 +8595,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8590
8595
|
};
|
|
8591
8596
|
l({ tabKey: c, canWeClose: xe }), fe(() => {
|
|
8592
8597
|
const j = _.find((Oe) => Oe.type === "tree"), Ce = _.find((Oe) => d.id ? Oe.type === d.type && Oe.view_id === d.id : Oe.type === d.type);
|
|
8593
|
-
Ue(Ce || j), m ? U == null || U(
|
|
8598
|
+
Ue(Ce || j), m ? U == null || U(A) : (Ee(void 0), L(void 0)), Ie();
|
|
8594
8599
|
}, [i, s, m]), fe(() => {
|
|
8595
8600
|
ve === c && (U == null || U(C), ee == null || ee(w));
|
|
8596
8601
|
}, [ge, ve]);
|
|
@@ -8720,7 +8725,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8720
8725
|
Ue(j);
|
|
8721
8726
|
}
|
|
8722
8727
|
}
|
|
8723
|
-
return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */
|
|
8728
|
+
return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */ V(
|
|
8724
8729
|
Ia,
|
|
8725
8730
|
{
|
|
8726
8731
|
title: a,
|
|
@@ -8848,7 +8853,7 @@ const rd = ns(rs), od = (e) => {
|
|
|
8848
8853
|
);
|
|
8849
8854
|
}, { useToken: id } = Ke, { Text: sd } = zt, ad = (e) => {
|
|
8850
8855
|
const { title: t, children: r, action: i, openAction: o } = e, { token: s } = id();
|
|
8851
|
-
return /* @__PURE__ */
|
|
8856
|
+
return /* @__PURE__ */ V(
|
|
8852
8857
|
"div",
|
|
8853
8858
|
{
|
|
8854
8859
|
className: "shadow-md",
|
|
@@ -8862,7 +8867,7 @@ const rd = ns(rs), od = (e) => {
|
|
|
8862
8867
|
borderRadius: s.borderRadius
|
|
8863
8868
|
},
|
|
8864
8869
|
children: [
|
|
8865
|
-
/* @__PURE__ */
|
|
8870
|
+
/* @__PURE__ */ V(
|
|
8866
8871
|
Te,
|
|
8867
8872
|
{
|
|
8868
8873
|
align: "middle",
|
|
@@ -8912,10 +8917,10 @@ function cd(e) {
|
|
|
8912
8917
|
domain: s = [],
|
|
8913
8918
|
visible: a = !0,
|
|
8914
8919
|
parentContext: l = {}
|
|
8915
|
-
} = e, [c, d] = v(!1), [u, f] = v(!1), [m, g] = v(), [h, p] = v(), [y, w] = v(), [F, _] = v(1), [T, S] = v(0), D = de(ld),
|
|
8920
|
+
} = e, [c, d] = v(!1), [u, f] = v(!1), [m, g] = v(), [h, p] = v(), [y, w] = v(), [F, _] = v(1), [T, S] = v(0), D = de(ld), A = de([]), [C, b] = v(0), [I, x] = v([]), [O, L] = v(void 0), [N, q] = v(), [M, $] = v(), [K, R] = v(), [Y, te] = v(!1), Z = de([]), re = (U) => {
|
|
8916
8921
|
te(!0), _(U), S((U - 1) * D.current);
|
|
8917
8922
|
}, G = async () => {
|
|
8918
|
-
const U = Z.current.length > 0 ? Z.current : s, ge = Gt(
|
|
8923
|
+
const U = Z.current.length > 0 ? Z.current : s, ge = Gt(A.current, U), { colors: ve } = Vt(h), { totalItems: We, results: Pe, attrsEvaluated: Ee } = await E.getHandler().searchForTree({
|
|
8919
8924
|
params: ge,
|
|
8920
8925
|
limit: D.current,
|
|
8921
8926
|
offset: T,
|
|
@@ -8984,7 +8989,7 @@ function cd(e) {
|
|
|
8984
8989
|
model: m,
|
|
8985
8990
|
treeView: h
|
|
8986
8991
|
});
|
|
8987
|
-
}, ee = () => !h || !y ? null : /* @__PURE__ */
|
|
8992
|
+
}, ee = () => !h || !y ? null : /* @__PURE__ */ V("div", { style: { overflowY: "scroll" }, children: [
|
|
8988
8993
|
M && /* @__PURE__ */ n(nt, { className: "mt-10", message: M, type: "error", banner: !0 }),
|
|
8989
8994
|
/* @__PURE__ */ n(
|
|
8990
8995
|
nn,
|
|
@@ -9029,7 +9034,7 @@ const dd = (e) => {
|
|
|
9029
9034
|
s.length > 0 && i(s[0].id);
|
|
9030
9035
|
}
|
|
9031
9036
|
return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(en, { ...e, model: t, id: r, readOnly: !0 }) });
|
|
9032
|
-
},
|
|
9037
|
+
}, An = "line_ids";
|
|
9033
9038
|
function ud(e, t) {
|
|
9034
9039
|
const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = v([]), [c, d] = v(!1), [u, f] = v(), {
|
|
9035
9040
|
setIsLoading: m,
|
|
@@ -9042,12 +9047,12 @@ function ud(e, t) {
|
|
|
9042
9047
|
refresh: () => {
|
|
9043
9048
|
w();
|
|
9044
9049
|
},
|
|
9045
|
-
configDashboard:
|
|
9050
|
+
configDashboard: A
|
|
9046
9051
|
}));
|
|
9047
9052
|
async function w() {
|
|
9048
9053
|
d(!0), m(!0), f(void 0);
|
|
9049
9054
|
try {
|
|
9050
|
-
const C = await F(), b = await T(C), I = C.fields[
|
|
9055
|
+
const C = await F(), b = await T(C), I = C.fields[An].relation, x = b[An].items;
|
|
9051
9056
|
y.current = C.fields;
|
|
9052
9057
|
const O = await _({
|
|
9053
9058
|
items: x,
|
|
@@ -9150,12 +9155,12 @@ function ud(e, t) {
|
|
|
9150
9155
|
await E.getHandler().update({
|
|
9151
9156
|
model: r,
|
|
9152
9157
|
id: o,
|
|
9153
|
-
values: { [
|
|
9158
|
+
values: { [An]: O },
|
|
9154
9159
|
fields: y.current,
|
|
9155
9160
|
context: i
|
|
9156
9161
|
});
|
|
9157
9162
|
}
|
|
9158
|
-
async function
|
|
9163
|
+
async function A() {
|
|
9159
9164
|
g(s);
|
|
9160
9165
|
}
|
|
9161
9166
|
return u ? (console.log(u), /* @__PURE__ */ n(nt, { className: "mt-10 mb-20", message: u, type: "error", banner: !0 })) : c ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(od, { onPositionItemsChanged: D, children: a.map((C, b) => {
|
|
@@ -9332,10 +9337,10 @@ const fd = yt(ud), md = (e) => {
|
|
|
9332
9337
|
return /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
9333
9338
|
}
|
|
9334
9339
|
const S = () => {
|
|
9335
|
-
|
|
9340
|
+
A(a.map((C) => C.value));
|
|
9336
9341
|
}, D = () => {
|
|
9337
|
-
|
|
9338
|
-
},
|
|
9342
|
+
A([]);
|
|
9343
|
+
}, A = (C) => {
|
|
9339
9344
|
const b = o.map((x) => C.includes(x.id) ? x.operation == "pendingRemove" ? {
|
|
9340
9345
|
...x,
|
|
9341
9346
|
operation: "original"
|
|
@@ -9344,27 +9349,27 @@ const fd = yt(ud), md = (e) => {
|
|
|
9344
9349
|
b.push({ id: x, operation: "pendingLink" });
|
|
9345
9350
|
}), _(b);
|
|
9346
9351
|
};
|
|
9347
|
-
return u && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */
|
|
9352
|
+
return u && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ V("div", { className: "flex flex-row", children: [
|
|
9348
9353
|
/* @__PURE__ */ n(
|
|
9349
9354
|
jt.Group,
|
|
9350
9355
|
{
|
|
9351
9356
|
value: a.length ? s : [],
|
|
9352
9357
|
disabled: h,
|
|
9353
|
-
onChange:
|
|
9358
|
+
onChange: A,
|
|
9354
9359
|
style: { width: "100%" },
|
|
9355
9360
|
children: /* @__PURE__ */ n(Te, { children: a.map((C) => /* @__PURE__ */ n(ce, { span: Math.floor(24 / y), children: /* @__PURE__ */ n(jt, { value: C.value, children: C.label }) })) })
|
|
9356
9361
|
}
|
|
9357
9362
|
),
|
|
9358
|
-
!h && /* @__PURE__ */
|
|
9363
|
+
!h && /* @__PURE__ */ V(Ye, { children: [
|
|
9359
9364
|
/* @__PURE__ */ n(
|
|
9360
|
-
|
|
9365
|
+
Ve,
|
|
9361
9366
|
{
|
|
9362
9367
|
onClick: S,
|
|
9363
9368
|
disabled: s.length == a.length,
|
|
9364
9369
|
children: "Check all"
|
|
9365
9370
|
}
|
|
9366
9371
|
),
|
|
9367
|
-
/* @__PURE__ */ n(
|
|
9372
|
+
/* @__PURE__ */ n(Ve, { onClick: D, disabled: s.length === 0, children: "Uncheck all" })
|
|
9368
9373
|
] })
|
|
9369
9374
|
] }) });
|
|
9370
9375
|
}, pd = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(gd, { ...e }) }), gd = (e) => {
|
|
@@ -9435,20 +9440,20 @@ const fd = yt(ud), md = (e) => {
|
|
|
9435
9440
|
function _d({ text: e }) {
|
|
9436
9441
|
const t = e.split(`
|
|
9437
9442
|
`);
|
|
9438
|
-
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */
|
|
9443
|
+
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ V(ei, { children: [
|
|
9439
9444
|
r,
|
|
9440
9445
|
i !== t.length - 1 && /* @__PURE__ */ n("br", {})
|
|
9441
9446
|
] }, i)) });
|
|
9442
9447
|
}
|
|
9443
9448
|
const Od = (e) => {
|
|
9444
9449
|
const { data: t, style: r } = e, { t: i } = H(he);
|
|
9445
|
-
return /* @__PURE__ */
|
|
9450
|
+
return /* @__PURE__ */ V(Bn, { style: { ...r, textAlign: "start" }, children: [
|
|
9446
9451
|
/* @__PURE__ */ n(
|
|
9447
9452
|
Td,
|
|
9448
9453
|
{
|
|
9449
9454
|
avatar: /* @__PURE__ */ n(Fd, { email: t.email, theme: "mp" }),
|
|
9450
9455
|
title: t.author,
|
|
9451
|
-
description: /* @__PURE__ */
|
|
9456
|
+
description: /* @__PURE__ */ V(Ye, { direction: "horizontal", children: [
|
|
9452
9457
|
/* @__PURE__ */ n("span", { title: t.date, children: rt(t.date).fromNow() }),
|
|
9453
9458
|
t.isAuthor && /* @__PURE__ */ n(kr, { color: "blue", children: i("author") })
|
|
9454
9459
|
] }),
|
|
@@ -9471,16 +9476,16 @@ const Od = (e) => {
|
|
|
9471
9476
|
children: /* @__PURE__ */ n(Od, { data: i.event })
|
|
9472
9477
|
};
|
|
9473
9478
|
});
|
|
9474
|
-
return /* @__PURE__ */ n(
|
|
9475
|
-
},
|
|
9479
|
+
return /* @__PURE__ */ n(Vn, { mode: "alternate", items: r });
|
|
9480
|
+
}, Ad = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(Rd, {}) }), { Content: Vd } = li, { Title: Dd } = zt;
|
|
9476
9481
|
function kd() {
|
|
9477
9482
|
const { t: e } = H(he);
|
|
9478
|
-
return /* @__PURE__ */ n(
|
|
9483
|
+
return /* @__PURE__ */ n(Vd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Dd, { level: 5, children: e("welcome") }) });
|
|
9479
9484
|
}
|
|
9480
9485
|
function Ed(e, t) {
|
|
9481
9486
|
const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = v("welcome"), [c, d] = v([
|
|
9482
9487
|
{
|
|
9483
|
-
title:
|
|
9488
|
+
title: Ae("welcome", s),
|
|
9484
9489
|
key: "welcome",
|
|
9485
9490
|
closable: !0,
|
|
9486
9491
|
content: /* @__PURE__ */ n(kd, {})
|
|
@@ -9507,7 +9512,7 @@ function Ed(e, t) {
|
|
|
9507
9512
|
action: T,
|
|
9508
9513
|
values: S,
|
|
9509
9514
|
forced_values: D,
|
|
9510
|
-
initialViewType:
|
|
9515
|
+
initialViewType: A,
|
|
9511
9516
|
res_id: C,
|
|
9512
9517
|
domain: b = []
|
|
9513
9518
|
}) {
|
|
@@ -9552,9 +9557,9 @@ function Ed(e, t) {
|
|
|
9552
9557
|
}
|
|
9553
9558
|
}
|
|
9554
9559
|
let G;
|
|
9555
|
-
if (
|
|
9560
|
+
if (A) {
|
|
9556
9561
|
const [k, P] = re.find(
|
|
9557
|
-
([ie, z]) => z ===
|
|
9562
|
+
([ie, z]) => z === A
|
|
9558
9563
|
);
|
|
9559
9564
|
G = { id: k, type: P };
|
|
9560
9565
|
} else {
|
|
@@ -9582,7 +9587,7 @@ function Ed(e, t) {
|
|
|
9582
9587
|
title: T,
|
|
9583
9588
|
content: S,
|
|
9584
9589
|
key: D,
|
|
9585
|
-
action:
|
|
9590
|
+
action: A
|
|
9586
9591
|
}) {
|
|
9587
9592
|
let C = [...c];
|
|
9588
9593
|
c.length === 1 && c[0].key === "welcome" && (C = [...c.filter((b) => b.key !== "welcome")]), d([
|
|
@@ -9592,7 +9597,7 @@ function Ed(e, t) {
|
|
|
9592
9597
|
key: D,
|
|
9593
9598
|
closable: !0,
|
|
9594
9599
|
content: S,
|
|
9595
|
-
action:
|
|
9600
|
+
action: A
|
|
9596
9601
|
}
|
|
9597
9602
|
]), l(D);
|
|
9598
9603
|
}
|
|
@@ -9600,7 +9605,7 @@ function Ed(e, t) {
|
|
|
9600
9605
|
relateData: T,
|
|
9601
9606
|
fields: S,
|
|
9602
9607
|
values: D,
|
|
9603
|
-
action_id:
|
|
9608
|
+
action_id: A,
|
|
9604
9609
|
action_type: C
|
|
9605
9610
|
}) {
|
|
9606
9611
|
const {
|
|
@@ -9632,13 +9637,13 @@ function Ed(e, t) {
|
|
|
9632
9637
|
domain: Y,
|
|
9633
9638
|
title: N,
|
|
9634
9639
|
initialView: K,
|
|
9635
|
-
action_id:
|
|
9640
|
+
action_id: A,
|
|
9636
9641
|
action_type: C,
|
|
9637
9642
|
limit: q
|
|
9638
9643
|
});
|
|
9639
9644
|
}
|
|
9640
9645
|
async function w(T) {
|
|
9641
|
-
const { action_id: S, action_type: D, res_id:
|
|
9646
|
+
const { action_id: S, action_type: D, res_id: A, view_id: C } = T, b = `${D},${S}`, I = await E.getHandler().getActionData({
|
|
9642
9647
|
action: b,
|
|
9643
9648
|
context: o
|
|
9644
9649
|
}), x = Ct({
|
|
@@ -9690,7 +9695,7 @@ function Ed(e, t) {
|
|
|
9690
9695
|
initialView: re,
|
|
9691
9696
|
action_id: S,
|
|
9692
9697
|
action_type: D,
|
|
9693
|
-
res_id:
|
|
9698
|
+
res_id: A,
|
|
9694
9699
|
treeExpandable: R,
|
|
9695
9700
|
limit: K
|
|
9696
9701
|
});
|
|
@@ -9699,7 +9704,7 @@ function Ed(e, t) {
|
|
|
9699
9704
|
model: T,
|
|
9700
9705
|
values: S,
|
|
9701
9706
|
forced_values: D,
|
|
9702
|
-
initialViewType:
|
|
9707
|
+
initialViewType: A,
|
|
9703
9708
|
res_id: C,
|
|
9704
9709
|
domain: b
|
|
9705
9710
|
}) {
|
|
@@ -9708,7 +9713,7 @@ function Ed(e, t) {
|
|
|
9708
9713
|
action: I,
|
|
9709
9714
|
values: S,
|
|
9710
9715
|
forced_values: D,
|
|
9711
|
-
initialViewType:
|
|
9716
|
+
initialViewType: A,
|
|
9712
9717
|
res_id: C,
|
|
9713
9718
|
domain: b
|
|
9714
9719
|
});
|
|
@@ -9717,7 +9722,7 @@ function Ed(e, t) {
|
|
|
9717
9722
|
domain: T,
|
|
9718
9723
|
context: S,
|
|
9719
9724
|
model: D,
|
|
9720
|
-
views:
|
|
9725
|
+
views: A,
|
|
9721
9726
|
title: C,
|
|
9722
9727
|
target: b,
|
|
9723
9728
|
initialView: I,
|
|
@@ -9764,7 +9769,7 @@ function Ed(e, t) {
|
|
|
9764
9769
|
action_type: O,
|
|
9765
9770
|
tabKey: K,
|
|
9766
9771
|
title: C,
|
|
9767
|
-
views:
|
|
9772
|
+
views: A,
|
|
9768
9773
|
model: D,
|
|
9769
9774
|
context: { ...o, ...S },
|
|
9770
9775
|
domain: T,
|
|
@@ -9813,7 +9818,7 @@ function Ed(e, t) {
|
|
|
9813
9818
|
const Fu = yt(Ed), { useToken: Nd } = Ke;
|
|
9814
9819
|
function Md(e) {
|
|
9815
9820
|
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Nd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
9816
|
-
return /* @__PURE__ */
|
|
9821
|
+
return /* @__PURE__ */ V(
|
|
9817
9822
|
"div",
|
|
9818
9823
|
{
|
|
9819
9824
|
onClick: () => {
|
|
@@ -9927,7 +9932,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9927
9932
|
activeKey: T,
|
|
9928
9933
|
currentView: S,
|
|
9929
9934
|
currentId: D,
|
|
9930
|
-
openDefaultActionForModel:
|
|
9935
|
+
openDefaultActionForModel: A
|
|
9931
9936
|
} = w || {};
|
|
9932
9937
|
fe(() => {
|
|
9933
9938
|
C();
|
|
@@ -9972,10 +9977,10 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9972
9977
|
te !== !1 && h(te), a(te !== !1);
|
|
9973
9978
|
}
|
|
9974
9979
|
async function O() {
|
|
9975
|
-
c(!1),
|
|
9980
|
+
c(!1), A == null || A({ model: "ir.ui.view_sc" });
|
|
9976
9981
|
}
|
|
9977
|
-
const L = /* @__PURE__ */
|
|
9978
|
-
/* @__PURE__ */
|
|
9982
|
+
const L = /* @__PURE__ */ V(He, { onClick: b, children: [
|
|
9983
|
+
/* @__PURE__ */ V("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
|
|
9979
9984
|
/* @__PURE__ */ n("div", { style: { paddingLeft: 15, color: "#ccc" }, children: p == null ? void 0 : p("favorites").toUpperCase() }),
|
|
9980
9985
|
/* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ n(gt, { title: p == null ? void 0 : p("edit_favorites"), children: /* @__PURE__ */ n(
|
|
9981
9986
|
Qr,
|
|
@@ -9995,7 +10000,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9995
10000
|
) }, M.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
|
|
9996
10001
|
] });
|
|
9997
10002
|
function N({ title: M, type: $ }) {
|
|
9998
|
-
return /* @__PURE__ */
|
|
10003
|
+
return /* @__PURE__ */ V(Te, { wrap: !1, children: [
|
|
9999
10004
|
/* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: $ === "tree" ? /* @__PURE__ */ n(Xn, {}) : /* @__PURE__ */ n(Ut, {}) }),
|
|
10000
10005
|
/* @__PURE__ */ n(ce, { flex: "auto", children: M })
|
|
10001
10006
|
] });
|
|
@@ -10021,9 +10026,9 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
10021
10026
|
}
|
|
10022
10027
|
await C(), a(!s);
|
|
10023
10028
|
}
|
|
10024
|
-
return /* @__PURE__ */
|
|
10029
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
10025
10030
|
/* @__PURE__ */ n(
|
|
10026
|
-
|
|
10031
|
+
Ve,
|
|
10027
10032
|
{
|
|
10028
10033
|
type: s ? "primary" : "default",
|
|
10029
10034
|
icon: s ? /* @__PURE__ */ n(Yr, { style: { color: "white" } }) : /* @__PURE__ */ n(Gr, {}),
|
|
@@ -10042,7 +10047,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
10042
10047
|
onVisibleChange: I,
|
|
10043
10048
|
open: l,
|
|
10044
10049
|
children: /* @__PURE__ */ n(
|
|
10045
|
-
|
|
10050
|
+
Ve,
|
|
10046
10051
|
{
|
|
10047
10052
|
style: {
|
|
10048
10053
|
width: 25,
|
|
@@ -10061,12 +10066,12 @@ export {
|
|
|
10061
10066
|
kc as ActionBar,
|
|
10062
10067
|
Mo as ActionView,
|
|
10063
10068
|
Ic as Binary,
|
|
10064
|
-
|
|
10069
|
+
Vs as Boolean,
|
|
10065
10070
|
ro as Button,
|
|
10066
10071
|
gs as ButtonGroup,
|
|
10067
10072
|
so as Char,
|
|
10068
10073
|
Sd as CodeEditor,
|
|
10069
|
-
|
|
10074
|
+
Ad as CommentsTimelineField,
|
|
10070
10075
|
Uc as ConfigContext,
|
|
10071
10076
|
E as ConnectionProvider,
|
|
10072
10077
|
Ra as ContentRootProvider,
|