@gisce/react-ooui 2.0.6-rc.1 → 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/helpers/treeHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +341 -339
- package/dist/react-ooui.es.js.map +1 -1
- package/package.json +1 -1
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) {
|
|
@@ -6731,8 +6733,8 @@ function or(e) {
|
|
|
6731
6733
|
function d() {
|
|
6732
6734
|
const m = r.map((g, h) => {
|
|
6733
6735
|
const p = g.type.charAt(0).toUpperCase() + g.type.slice(1);
|
|
6734
|
-
return /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */
|
|
6735
|
-
/* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children:
|
|
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) }),
|
|
6736
6738
|
/* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.title || p }),
|
|
6737
6739
|
/* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
|
|
6738
6740
|
Mt,
|
|
@@ -6766,12 +6768,12 @@ function or(e) {
|
|
|
6766
6768
|
i(g);
|
|
6767
6769
|
});
|
|
6768
6770
|
}
|
|
6769
|
-
return /* @__PURE__ */
|
|
6771
|
+
return /* @__PURE__ */ V("div", { style: { display: "flex" }, children: [
|
|
6770
6772
|
/* @__PURE__ */ n(
|
|
6771
6773
|
et,
|
|
6772
6774
|
{
|
|
6773
6775
|
tooltip: a ? l("viewAs") + " " + l(a.type) : "",
|
|
6774
|
-
icon:
|
|
6776
|
+
icon: Ar(a),
|
|
6775
6777
|
style: {
|
|
6776
6778
|
width: 50,
|
|
6777
6779
|
borderTopRightRadius: 0,
|
|
@@ -6789,7 +6791,7 @@ function or(e) {
|
|
|
6789
6791
|
overlay: d(),
|
|
6790
6792
|
disabled: o || r.length === 1,
|
|
6791
6793
|
children: /* @__PURE__ */ n(
|
|
6792
|
-
|
|
6794
|
+
Ve,
|
|
6793
6795
|
{
|
|
6794
6796
|
style: {
|
|
6795
6797
|
width: 25,
|
|
@@ -6838,7 +6840,7 @@ const { Search: _c } = st, xt = Dr(
|
|
|
6838
6840
|
},
|
|
6839
6841
|
"no_match" + y
|
|
6840
6842
|
) : /* @__PURE__ */ n(He.Item, { children: p.name }, p.id));
|
|
6841
|
-
return /* @__PURE__ */
|
|
6843
|
+
return /* @__PURE__ */ V(He, { onClick: m, children: [
|
|
6842
6844
|
d && /* @__PURE__ */ n("div", { style: { padding: 5 }, children: /* @__PURE__ */ n(
|
|
6843
6845
|
_c,
|
|
6844
6846
|
{
|
|
@@ -6860,7 +6862,7 @@ const { Search: _c } = st, xt = Dr(
|
|
|
6860
6862
|
)
|
|
6861
6863
|
] });
|
|
6862
6864
|
}, [f, m, d, u, t]);
|
|
6863
|
-
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: [
|
|
6864
6866
|
e,
|
|
6865
6867
|
" ",
|
|
6866
6868
|
o,
|
|
@@ -6880,7 +6882,7 @@ function Qe(e) {
|
|
|
6880
6882
|
label: a,
|
|
6881
6883
|
type: l = "default"
|
|
6882
6884
|
} = e;
|
|
6883
|
-
return /* @__PURE__ */
|
|
6885
|
+
return /* @__PURE__ */ V(
|
|
6884
6886
|
et,
|
|
6885
6887
|
{
|
|
6886
6888
|
type: l,
|
|
@@ -6894,7 +6896,7 @@ function Qe(e) {
|
|
|
6894
6896
|
}
|
|
6895
6897
|
);
|
|
6896
6898
|
}
|
|
6897
|
-
function
|
|
6899
|
+
function Vo(e) {
|
|
6898
6900
|
const { disabled: t = !1 } = e, { formHasChanges: r, onNewClicked: i } = H(
|
|
6899
6901
|
at
|
|
6900
6902
|
), { t: o, lang: s } = H(he), a = () => {
|
|
@@ -6925,12 +6927,12 @@ const { confirm: Oc } = Ze, Rc = ({
|
|
|
6925
6927
|
lang: r
|
|
6926
6928
|
}) => {
|
|
6927
6929
|
Oc({
|
|
6928
|
-
title:
|
|
6930
|
+
title: Ae("unsavedChanges", r),
|
|
6929
6931
|
icon: /* @__PURE__ */ n(vt, {}),
|
|
6930
6932
|
centered: !0,
|
|
6931
|
-
content:
|
|
6932
|
-
okText:
|
|
6933
|
-
cancelText:
|
|
6933
|
+
content: Ae("confirmRefreshWithoutSave", r),
|
|
6934
|
+
okText: Ae("discardAndRefresh", r),
|
|
6935
|
+
cancelText: Ae("cancel", r),
|
|
6934
6936
|
onOk: e,
|
|
6935
6937
|
onCancel: t
|
|
6936
6938
|
});
|
|
@@ -6941,7 +6943,7 @@ async function Do(e, t, r) {
|
|
|
6941
6943
|
ids: [t]
|
|
6942
6944
|
}))[0], { create_date: o, create_uid: s, id: a, write_date: l, write_uid: c } = i;
|
|
6943
6945
|
ht(
|
|
6944
|
-
/* @__PURE__ */
|
|
6946
|
+
/* @__PURE__ */ V("div", { children: [
|
|
6945
6947
|
"ID: " + a,
|
|
6946
6948
|
" ",
|
|
6947
6949
|
/* @__PURE__ */ n("br", {}),
|
|
@@ -6958,8 +6960,8 @@ async function Do(e, t, r) {
|
|
|
6958
6960
|
] })
|
|
6959
6961
|
);
|
|
6960
6962
|
}
|
|
6961
|
-
const
|
|
6962
|
-
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: [
|
|
6963
6965
|
/* @__PURE__ */ n(Xr, {}),
|
|
6964
6966
|
`(${t})`,
|
|
6965
6967
|
/* @__PURE__ */ n(Nt, { style: { fontSize: 12 } })
|
|
@@ -6970,13 +6972,13 @@ const Vc = (e) => {
|
|
|
6970
6972
|
onVisibleChange: (c) => a(c),
|
|
6971
6973
|
visible: s,
|
|
6972
6974
|
placement: "bottom",
|
|
6973
|
-
content:
|
|
6975
|
+
content: Vc(e, a, o),
|
|
6974
6976
|
title: i("attachments"),
|
|
6975
6977
|
arrowContent: null,
|
|
6976
6978
|
children: l
|
|
6977
6979
|
}
|
|
6978
6980
|
);
|
|
6979
|
-
},
|
|
6981
|
+
}, Vc = (e, t, r) => {
|
|
6980
6982
|
const {
|
|
6981
6983
|
attachments: i = [],
|
|
6982
6984
|
loading: o,
|
|
@@ -6985,8 +6987,8 @@ const Vc = (e) => {
|
|
|
6985
6987
|
onOpenAttachmentDetail: l,
|
|
6986
6988
|
onListAllAttachments: c
|
|
6987
6989
|
} = e;
|
|
6988
|
-
return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */
|
|
6989
|
-
/* @__PURE__ */
|
|
6990
|
+
return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */ V(X, { children: [
|
|
6991
|
+
/* @__PURE__ */ V(
|
|
6990
6992
|
"a",
|
|
6991
6993
|
{
|
|
6992
6994
|
style: { display: "block", paddingBottom: 5 },
|
|
@@ -6997,11 +6999,11 @@ const Vc = (e) => {
|
|
|
6997
6999
|
children: [
|
|
6998
7000
|
/* @__PURE__ */ n(Xn, {}),
|
|
6999
7001
|
" ",
|
|
7000
|
-
|
|
7002
|
+
Ae("listAllAttachments", r)
|
|
7001
7003
|
]
|
|
7002
7004
|
}
|
|
7003
7005
|
),
|
|
7004
|
-
/* @__PURE__ */
|
|
7006
|
+
/* @__PURE__ */ V(
|
|
7005
7007
|
"a",
|
|
7006
7008
|
{
|
|
7007
7009
|
style: { display: "block" },
|
|
@@ -7012,15 +7014,15 @@ const Vc = (e) => {
|
|
|
7012
7014
|
children: [
|
|
7013
7015
|
/* @__PURE__ */ n(hn, {}),
|
|
7014
7016
|
" ",
|
|
7015
|
-
|
|
7017
|
+
Ae("addNewAttachment", r)
|
|
7016
7018
|
]
|
|
7017
7019
|
}
|
|
7018
7020
|
),
|
|
7019
|
-
i.length > 0 && /* @__PURE__ */
|
|
7021
|
+
i.length > 0 && /* @__PURE__ */ V(X, { children: [
|
|
7020
7022
|
/* @__PURE__ */ n("li", { className: "ant-dropdown-menu-item-divider" }),
|
|
7021
7023
|
i.map((d) => {
|
|
7022
7024
|
const u = d.link ? Xr : Un;
|
|
7023
|
-
return /* @__PURE__ */
|
|
7025
|
+
return /* @__PURE__ */ V(
|
|
7024
7026
|
Te,
|
|
7025
7027
|
{
|
|
7026
7028
|
style: { paddingTop: 4, paddingBottom: 4 },
|
|
@@ -7031,7 +7033,7 @@ const Vc = (e) => {
|
|
|
7031
7033
|
/* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ n(
|
|
7032
7034
|
gt,
|
|
7033
7035
|
{
|
|
7034
|
-
title: d.link ?
|
|
7036
|
+
title: d.link ? Ae("openAttachmentLink", r) : Ae("download", r),
|
|
7035
7037
|
children: /* @__PURE__ */ n(
|
|
7036
7038
|
u,
|
|
7037
7039
|
{
|
|
@@ -7043,7 +7045,7 @@ const Vc = (e) => {
|
|
|
7043
7045
|
)
|
|
7044
7046
|
}
|
|
7045
7047
|
) }),
|
|
7046
|
-
/* @__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(
|
|
7047
7049
|
Ut,
|
|
7048
7050
|
{
|
|
7049
7051
|
style: { cursor: "pointer" },
|
|
@@ -7115,9 +7117,9 @@ function Dc(e) {
|
|
|
7115
7117
|
}, []);
|
|
7116
7118
|
return fe(() => {
|
|
7117
7119
|
h();
|
|
7118
|
-
}, [h]), /* @__PURE__ */
|
|
7120
|
+
}, [h]), /* @__PURE__ */ V(X, { children: [
|
|
7119
7121
|
/* @__PURE__ */ n(
|
|
7120
|
-
|
|
7122
|
+
Ac,
|
|
7121
7123
|
{
|
|
7122
7124
|
numberOfAttachments: t.length,
|
|
7123
7125
|
attachments: d,
|
|
@@ -7167,7 +7169,7 @@ function kc({ toolbar: e }) {
|
|
|
7167
7169
|
formRef: T,
|
|
7168
7170
|
setFormHasChanges: S,
|
|
7169
7171
|
previousView: D,
|
|
7170
|
-
setPreviousView:
|
|
7172
|
+
setPreviousView: A,
|
|
7171
7173
|
goToResourceId: C
|
|
7172
7174
|
} = H(at), { t: b, lang: I } = H(he), x = H(
|
|
7173
7175
|
$t
|
|
@@ -7257,14 +7259,14 @@ function kc({ toolbar: e }) {
|
|
|
7257
7259
|
}
|
|
7258
7260
|
});
|
|
7259
7261
|
}
|
|
7260
|
-
return r ? /* @__PURE__ */
|
|
7261
|
-
F && /* @__PURE__ */
|
|
7262
|
+
return r ? /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
7263
|
+
F && /* @__PURE__ */ V(X, { children: [
|
|
7262
7264
|
/* @__PURE__ */ n(ke, {}),
|
|
7263
7265
|
_t(),
|
|
7264
7266
|
_t()
|
|
7265
7267
|
] }),
|
|
7266
7268
|
/* @__PURE__ */ n(
|
|
7267
|
-
|
|
7269
|
+
Vo,
|
|
7268
7270
|
{
|
|
7269
7271
|
disabled: a || F || h || p
|
|
7270
7272
|
}
|
|
@@ -7334,14 +7336,14 @@ function kc({ toolbar: e }) {
|
|
|
7334
7336
|
previousView: D,
|
|
7335
7337
|
availableViews: t,
|
|
7336
7338
|
onChangeView: (k) => {
|
|
7337
|
-
|
|
7339
|
+
A == null || A(r), S == null || S(!1), i == null || i(k);
|
|
7338
7340
|
},
|
|
7339
7341
|
disabled: re,
|
|
7340
7342
|
formHasChanges: s
|
|
7341
7343
|
}
|
|
7342
7344
|
),
|
|
7343
7345
|
_t(),
|
|
7344
|
-
/* @__PURE__ */
|
|
7346
|
+
/* @__PURE__ */ V(Ye, { children: [
|
|
7345
7347
|
/* @__PURE__ */ n(
|
|
7346
7348
|
Qe,
|
|
7347
7349
|
{
|
|
@@ -7438,7 +7440,7 @@ function kc({ toolbar: e }) {
|
|
|
7438
7440
|
return;
|
|
7439
7441
|
const P = k.currentId;
|
|
7440
7442
|
q({
|
|
7441
|
-
...
|
|
7443
|
+
...Vr(m, P),
|
|
7442
7444
|
initialViewType: "form"
|
|
7443
7445
|
});
|
|
7444
7446
|
},
|
|
@@ -7450,7 +7452,7 @@ function kc({ toolbar: e }) {
|
|
|
7450
7452
|
return;
|
|
7451
7453
|
const P = k.currentId;
|
|
7452
7454
|
q({
|
|
7453
|
-
...
|
|
7455
|
+
...Vr(m, P),
|
|
7454
7456
|
initialViewType: "tree"
|
|
7455
7457
|
});
|
|
7456
7458
|
},
|
|
@@ -7476,7 +7478,7 @@ async function Ot({
|
|
|
7476
7478
|
const t = await (e == null ? void 0 : e());
|
|
7477
7479
|
return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
|
|
7478
7480
|
}
|
|
7479
|
-
function
|
|
7481
|
+
function Vr(e, t) {
|
|
7480
7482
|
return {
|
|
7481
7483
|
model: "ir.attachment",
|
|
7482
7484
|
domain: [
|
|
@@ -7500,9 +7502,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7500
7502
|
const w = (F) => {
|
|
7501
7503
|
i == null || i(F.target.value);
|
|
7502
7504
|
};
|
|
7503
|
-
return /* @__PURE__ */
|
|
7505
|
+
return /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, align: "middle", children: [
|
|
7504
7506
|
l ? null : /* @__PURE__ */ n(ce, { flex: "32px", children: g ? /* @__PURE__ */ n(
|
|
7505
|
-
|
|
7507
|
+
Ve,
|
|
7506
7508
|
{
|
|
7507
7509
|
icon: /* @__PURE__ */ n(Mt, {}),
|
|
7508
7510
|
onClick: () => {
|
|
@@ -7512,7 +7514,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7512
7514
|
tabIndex: -1
|
|
7513
7515
|
}
|
|
7514
7516
|
) : /* @__PURE__ */ n(
|
|
7515
|
-
|
|
7517
|
+
Ve,
|
|
7516
7518
|
{
|
|
7517
7519
|
icon: /* @__PURE__ */ n(Qr, {}),
|
|
7518
7520
|
onClick: () => {
|
|
@@ -7587,7 +7589,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7587
7589
|
var d;
|
|
7588
7590
|
return c && ((d = a.current) == null ? void 0 : d.focus());
|
|
7589
7591
|
},
|
|
7590
|
-
children: /* @__PURE__ */
|
|
7592
|
+
children: /* @__PURE__ */ V(dt, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
|
|
7591
7593
|
/* @__PURE__ */ n(
|
|
7592
7594
|
dt.Item,
|
|
7593
7595
|
{
|
|
@@ -7602,9 +7604,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7602
7604
|
children: /* @__PURE__ */ n(st, { style: { width: "100%" }, autoFocus: !0, ref: a })
|
|
7603
7605
|
}
|
|
7604
7606
|
),
|
|
7605
|
-
/* @__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: [
|
|
7606
7608
|
/* @__PURE__ */ n(
|
|
7607
|
-
|
|
7609
|
+
Ve,
|
|
7608
7610
|
{
|
|
7609
7611
|
icon: /* @__PURE__ */ n(Xt, {}),
|
|
7610
7612
|
htmlType: "button",
|
|
@@ -7614,7 +7616,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7614
7616
|
}
|
|
7615
7617
|
),
|
|
7616
7618
|
/* @__PURE__ */ n(
|
|
7617
|
-
|
|
7619
|
+
Ve,
|
|
7618
7620
|
{
|
|
7619
7621
|
loading: o,
|
|
7620
7622
|
style: { marginLeft: 15 },
|
|
@@ -7632,7 +7634,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
|
|
|
7632
7634
|
}, { useToken: Lc } = Ke;
|
|
7633
7635
|
function Eo(e) {
|
|
7634
7636
|
const { badgeNumber: t = 0, ...r } = e, { token: i } = Lc();
|
|
7635
|
-
return /* @__PURE__ */
|
|
7637
|
+
return /* @__PURE__ */ V("div", { style: { position: "relative" }, children: [
|
|
7636
7638
|
t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
|
|
7637
7639
|
"span",
|
|
7638
7640
|
{
|
|
@@ -7670,7 +7672,7 @@ function $c({ refreshGraph: e }) {
|
|
|
7670
7672
|
previousView: d,
|
|
7671
7673
|
setPreviousView: u
|
|
7672
7674
|
} = H(at);
|
|
7673
|
-
return /* @__PURE__ */
|
|
7675
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
7674
7676
|
/* @__PURE__ */ n(
|
|
7675
7677
|
Eo,
|
|
7676
7678
|
{
|
|
@@ -7728,7 +7730,7 @@ function bn(e) {
|
|
|
7728
7730
|
} = H(at), { t: u } = H(he), { token: f } = Bc();
|
|
7729
7731
|
function m() {
|
|
7730
7732
|
if ((o == null ? void 0 : o.type) === "form")
|
|
7731
|
-
return s ? c === 0 ? /* @__PURE__ */
|
|
7733
|
+
return s ? c === 0 ? /* @__PURE__ */ V(X, { children: [
|
|
7732
7734
|
u("editingDocument"),
|
|
7733
7735
|
" (id:",
|
|
7734
7736
|
" ",
|
|
@@ -7740,7 +7742,7 @@ function bn(e) {
|
|
|
7740
7742
|
}
|
|
7741
7743
|
),
|
|
7742
7744
|
")"
|
|
7743
|
-
] }) : /* @__PURE__ */
|
|
7745
|
+
] }) : /* @__PURE__ */ V(X, { children: [
|
|
7744
7746
|
u("register"),
|
|
7745
7747
|
" ",
|
|
7746
7748
|
a === void 0 ? 1 : a + 1,
|
|
@@ -7760,7 +7762,7 @@ function bn(e) {
|
|
|
7760
7762
|
] }) : "";
|
|
7761
7763
|
if ((o == null ? void 0 : o.type) === "tree" && d) {
|
|
7762
7764
|
if (d.length === 1)
|
|
7763
|
-
return /* @__PURE__ */
|
|
7765
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
7764
7766
|
"1 ",
|
|
7765
7767
|
u("selectedRegisters"),
|
|
7766
7768
|
" - (id:",
|
|
@@ -7769,7 +7771,7 @@ function bn(e) {
|
|
|
7769
7771
|
")"
|
|
7770
7772
|
] });
|
|
7771
7773
|
if (d.length > 1)
|
|
7772
|
-
return /* @__PURE__ */
|
|
7774
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
7773
7775
|
d.length,
|
|
7774
7776
|
" ",
|
|
7775
7777
|
u("selectedRegisters"),
|
|
@@ -7785,7 +7787,7 @@ function bn(e) {
|
|
|
7785
7787
|
}
|
|
7786
7788
|
return null;
|
|
7787
7789
|
}
|
|
7788
|
-
return /* @__PURE__ */
|
|
7790
|
+
return /* @__PURE__ */ V(
|
|
7789
7791
|
"div",
|
|
7790
7792
|
{
|
|
7791
7793
|
style: {
|
|
@@ -7794,7 +7796,7 @@ function bn(e) {
|
|
|
7794
7796
|
zIndex: 3
|
|
7795
7797
|
},
|
|
7796
7798
|
children: [
|
|
7797
|
-
/* @__PURE__ */
|
|
7799
|
+
/* @__PURE__ */ V(
|
|
7798
7800
|
Te,
|
|
7799
7801
|
{
|
|
7800
7802
|
className: "shadow-md",
|
|
@@ -7806,7 +7808,7 @@ function bn(e) {
|
|
|
7806
7808
|
},
|
|
7807
7809
|
align: "middle",
|
|
7808
7810
|
children: [
|
|
7809
|
-
/* @__PURE__ */
|
|
7811
|
+
/* @__PURE__ */ V(ce, { flex: 2, children: [
|
|
7810
7812
|
/* @__PURE__ */ n(Hc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
|
|
7811
7813
|
m()
|
|
7812
7814
|
] }),
|
|
@@ -7836,7 +7838,7 @@ const Kc = (e) => {
|
|
|
7836
7838
|
setTotalItems: T = void 0,
|
|
7837
7839
|
setSearchTreeNameSearch: S = void 0,
|
|
7838
7840
|
setTreeIsLoading: D = void 0,
|
|
7839
|
-
limit:
|
|
7841
|
+
limit: A,
|
|
7840
7842
|
setLimit: C,
|
|
7841
7843
|
searchParams: b,
|
|
7842
7844
|
searchValues: I,
|
|
@@ -7869,10 +7871,10 @@ const Kc = (e) => {
|
|
|
7869
7871
|
domain: s,
|
|
7870
7872
|
currentId: m,
|
|
7871
7873
|
setActionViewTotalItems: T,
|
|
7872
|
-
limit:
|
|
7874
|
+
limit: A,
|
|
7873
7875
|
setLimit: C
|
|
7874
7876
|
});
|
|
7875
|
-
return !r || !t ? null : /* @__PURE__ */
|
|
7877
|
+
return !r || !t ? null : /* @__PURE__ */ V(X, { children: [
|
|
7876
7878
|
/* @__PURE__ */ n(bn, { title: t.name, children: /* @__PURE__ */ n(
|
|
7877
7879
|
$c,
|
|
7878
7880
|
{
|
|
@@ -7889,7 +7891,7 @@ const Kc = (e) => {
|
|
|
7889
7891
|
a.search_fields,
|
|
7890
7892
|
l.search_fields
|
|
7891
7893
|
]),
|
|
7892
|
-
limit:
|
|
7894
|
+
limit: A,
|
|
7893
7895
|
onClear: q,
|
|
7894
7896
|
offset: K,
|
|
7895
7897
|
isSearching: M,
|
|
@@ -7910,7 +7912,7 @@ const Kc = (e) => {
|
|
|
7910
7912
|
model: i,
|
|
7911
7913
|
context: o,
|
|
7912
7914
|
domain: Gt(b || [], s),
|
|
7913
|
-
limit: L ?
|
|
7915
|
+
limit: L ? A : void 0,
|
|
7914
7916
|
manualIds: L ? g == null ? void 0 : g.map((Y) => Y.id) : void 0
|
|
7915
7917
|
}
|
|
7916
7918
|
)
|
|
@@ -7930,7 +7932,7 @@ const Kc = (e) => {
|
|
|
7930
7932
|
setResults: f,
|
|
7931
7933
|
setCurrentItemIndex: m
|
|
7932
7934
|
} = e;
|
|
7933
|
-
return t ? /* @__PURE__ */
|
|
7935
|
+
return t ? /* @__PURE__ */ V(X, { children: [
|
|
7934
7936
|
/* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(kc, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
7935
7937
|
/* @__PURE__ */ n(
|
|
7936
7938
|
en,
|
|
@@ -7962,7 +7964,7 @@ function jc(e) {
|
|
|
7962
7964
|
function d() {
|
|
7963
7965
|
l(!1), s.setFieldsValue({ search: void 0 }), t(void 0);
|
|
7964
7966
|
}
|
|
7965
|
-
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: [
|
|
7966
7968
|
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(dt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
|
|
7967
7969
|
st,
|
|
7968
7970
|
{
|
|
@@ -7982,7 +7984,7 @@ function jc(e) {
|
|
|
7982
7984
|
}
|
|
7983
7985
|
) }) }),
|
|
7984
7986
|
/* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
|
|
7985
|
-
|
|
7987
|
+
Ve,
|
|
7986
7988
|
{
|
|
7987
7989
|
htmlType: "submit",
|
|
7988
7990
|
disabled: r,
|
|
@@ -8025,7 +8027,7 @@ function qc(e) {
|
|
|
8025
8027
|
previousView: T,
|
|
8026
8028
|
results: S,
|
|
8027
8029
|
limit: D,
|
|
8028
|
-
totalItems:
|
|
8030
|
+
totalItems: A
|
|
8029
8031
|
} = H(at), { parentContext: C = {}, treeExpandable: b, toolbar: I } = e, x = Gc(
|
|
8030
8032
|
No.FEATURE_ADVANCED_EXPORT
|
|
8031
8033
|
), { t: O, lang: L } = H(he), N = H(
|
|
@@ -8089,13 +8091,13 @@ function qc(e) {
|
|
|
8089
8091
|
}
|
|
8090
8092
|
});
|
|
8091
8093
|
}
|
|
8092
|
-
return /* @__PURE__ */
|
|
8093
|
-
F && /* @__PURE__ */
|
|
8094
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
8095
|
+
F && /* @__PURE__ */ V(X, { children: [
|
|
8094
8096
|
/* @__PURE__ */ n(ke, {}),
|
|
8095
8097
|
bt(),
|
|
8096
8098
|
bt()
|
|
8097
8099
|
] }),
|
|
8098
|
-
b ? null : /* @__PURE__ */
|
|
8100
|
+
b ? null : /* @__PURE__ */ V(X, { children: [
|
|
8099
8101
|
/* @__PURE__ */ n(
|
|
8100
8102
|
jc,
|
|
8101
8103
|
{
|
|
@@ -8125,7 +8127,7 @@ function qc(e) {
|
|
|
8125
8127
|
}
|
|
8126
8128
|
),
|
|
8127
8129
|
bt(),
|
|
8128
|
-
/* @__PURE__ */ n(
|
|
8130
|
+
/* @__PURE__ */ n(Vo, { disabled: F }),
|
|
8129
8131
|
/* @__PURE__ */ n(
|
|
8130
8132
|
Qe,
|
|
8131
8133
|
{
|
|
@@ -8173,7 +8175,7 @@ function qc(e) {
|
|
|
8173
8175
|
}
|
|
8174
8176
|
}
|
|
8175
8177
|
),
|
|
8176
|
-
!b && /* @__PURE__ */
|
|
8178
|
+
!b && /* @__PURE__ */ V(X, { children: [
|
|
8177
8179
|
bt(),
|
|
8178
8180
|
/* @__PURE__ */ n(
|
|
8179
8181
|
or,
|
|
@@ -8219,7 +8221,7 @@ function qc(e) {
|
|
|
8219
8221
|
}
|
|
8220
8222
|
}
|
|
8221
8223
|
),
|
|
8222
|
-
x && /* @__PURE__ */
|
|
8224
|
+
x && /* @__PURE__ */ V(X, { children: [
|
|
8223
8225
|
bt(),
|
|
8224
8226
|
/* @__PURE__ */ n(
|
|
8225
8227
|
xt,
|
|
@@ -8227,7 +8229,7 @@ function qc(e) {
|
|
|
8227
8229
|
icon: /* @__PURE__ */ n(
|
|
8228
8230
|
Kr,
|
|
8229
8231
|
{
|
|
8230
|
-
component: () => /* @__PURE__ */
|
|
8232
|
+
component: () => /* @__PURE__ */ V(
|
|
8231
8233
|
"svg",
|
|
8232
8234
|
{
|
|
8233
8235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8293,7 +8295,7 @@ function qc(e) {
|
|
|
8293
8295
|
g || []
|
|
8294
8296
|
),
|
|
8295
8297
|
limit: D,
|
|
8296
|
-
totalRegisters:
|
|
8298
|
+
totalRegisters: A || 0,
|
|
8297
8299
|
selectedRegistersToExport: o,
|
|
8298
8300
|
visibleRegisters: (S == null ? void 0 : S.length) || 0,
|
|
8299
8301
|
context: C
|
|
@@ -8323,7 +8325,7 @@ const zc = (e) => {
|
|
|
8323
8325
|
} = e, { currentView: h, setPreviousView: p } = H(
|
|
8324
8326
|
at
|
|
8325
8327
|
);
|
|
8326
|
-
return t ? /* @__PURE__ */
|
|
8328
|
+
return t ? /* @__PURE__ */ V(X, { children: [
|
|
8327
8329
|
/* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(
|
|
8328
8330
|
qc,
|
|
8329
8331
|
{
|
|
@@ -8375,7 +8377,7 @@ const zc = (e) => {
|
|
|
8375
8377
|
};
|
|
8376
8378
|
function Xc() {
|
|
8377
8379
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(ir), { t: o } = H(he);
|
|
8378
|
-
return /* @__PURE__ */
|
|
8380
|
+
return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
|
|
8379
8381
|
/* @__PURE__ */ n(
|
|
8380
8382
|
Qe,
|
|
8381
8383
|
{
|
|
@@ -8428,7 +8430,7 @@ const Qc = (e) => {
|
|
|
8428
8430
|
const { dashboardData: t, visible: r } = e, i = de(), o = H(
|
|
8429
8431
|
ft
|
|
8430
8432
|
), { openShortcut: s } = o || {};
|
|
8431
|
-
return !t || !r ? null : /* @__PURE__ */
|
|
8433
|
+
return !t || !r ? null : /* @__PURE__ */ V(
|
|
8432
8434
|
Jc,
|
|
8433
8435
|
{
|
|
8434
8436
|
dashboardRef: i,
|
|
@@ -8483,8 +8485,8 @@ function td(e, t) {
|
|
|
8483
8485
|
action_type: h,
|
|
8484
8486
|
treeExpandable: p = !1,
|
|
8485
8487
|
limit: y
|
|
8486
|
-
} = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0),
|
|
8487
|
-
|
|
8488
|
+
} = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0), A = m || void 0, [C, b] = v(
|
|
8489
|
+
A
|
|
8488
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(
|
|
8489
8491
|
ft
|
|
8490
8492
|
), {
|
|
@@ -8593,7 +8595,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8593
8595
|
};
|
|
8594
8596
|
l({ tabKey: c, canWeClose: xe }), fe(() => {
|
|
8595
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);
|
|
8596
|
-
Ue(Ce || j), m ? U == null || U(
|
|
8598
|
+
Ue(Ce || j), m ? U == null || U(A) : (Ee(void 0), L(void 0)), Ie();
|
|
8597
8599
|
}, [i, s, m]), fe(() => {
|
|
8598
8600
|
ve === c && (U == null || U(C), ee == null || ee(w));
|
|
8599
8601
|
}, [ge, ve]);
|
|
@@ -8723,7 +8725,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8723
8725
|
Ue(j);
|
|
8724
8726
|
}
|
|
8725
8727
|
}
|
|
8726
|
-
return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */
|
|
8728
|
+
return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */ V(
|
|
8727
8729
|
Ia,
|
|
8728
8730
|
{
|
|
8729
8731
|
title: a,
|
|
@@ -8851,7 +8853,7 @@ const rd = ns(rs), od = (e) => {
|
|
|
8851
8853
|
);
|
|
8852
8854
|
}, { useToken: id } = Ke, { Text: sd } = zt, ad = (e) => {
|
|
8853
8855
|
const { title: t, children: r, action: i, openAction: o } = e, { token: s } = id();
|
|
8854
|
-
return /* @__PURE__ */
|
|
8856
|
+
return /* @__PURE__ */ V(
|
|
8855
8857
|
"div",
|
|
8856
8858
|
{
|
|
8857
8859
|
className: "shadow-md",
|
|
@@ -8865,7 +8867,7 @@ const rd = ns(rs), od = (e) => {
|
|
|
8865
8867
|
borderRadius: s.borderRadius
|
|
8866
8868
|
},
|
|
8867
8869
|
children: [
|
|
8868
|
-
/* @__PURE__ */
|
|
8870
|
+
/* @__PURE__ */ V(
|
|
8869
8871
|
Te,
|
|
8870
8872
|
{
|
|
8871
8873
|
align: "middle",
|
|
@@ -8915,10 +8917,10 @@ function cd(e) {
|
|
|
8915
8917
|
domain: s = [],
|
|
8916
8918
|
visible: a = !0,
|
|
8917
8919
|
parentContext: l = {}
|
|
8918
|
-
} = 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) => {
|
|
8919
8921
|
te(!0), _(U), S((U - 1) * D.current);
|
|
8920
8922
|
}, G = async () => {
|
|
8921
|
-
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({
|
|
8922
8924
|
params: ge,
|
|
8923
8925
|
limit: D.current,
|
|
8924
8926
|
offset: T,
|
|
@@ -8987,7 +8989,7 @@ function cd(e) {
|
|
|
8987
8989
|
model: m,
|
|
8988
8990
|
treeView: h
|
|
8989
8991
|
});
|
|
8990
|
-
}, ee = () => !h || !y ? null : /* @__PURE__ */
|
|
8992
|
+
}, ee = () => !h || !y ? null : /* @__PURE__ */ V("div", { style: { overflowY: "scroll" }, children: [
|
|
8991
8993
|
M && /* @__PURE__ */ n(nt, { className: "mt-10", message: M, type: "error", banner: !0 }),
|
|
8992
8994
|
/* @__PURE__ */ n(
|
|
8993
8995
|
nn,
|
|
@@ -9032,7 +9034,7 @@ const dd = (e) => {
|
|
|
9032
9034
|
s.length > 0 && i(s[0].id);
|
|
9033
9035
|
}
|
|
9034
9036
|
return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(en, { ...e, model: t, id: r, readOnly: !0 }) });
|
|
9035
|
-
},
|
|
9037
|
+
}, An = "line_ids";
|
|
9036
9038
|
function ud(e, t) {
|
|
9037
9039
|
const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = v([]), [c, d] = v(!1), [u, f] = v(), {
|
|
9038
9040
|
setIsLoading: m,
|
|
@@ -9045,12 +9047,12 @@ function ud(e, t) {
|
|
|
9045
9047
|
refresh: () => {
|
|
9046
9048
|
w();
|
|
9047
9049
|
},
|
|
9048
|
-
configDashboard:
|
|
9050
|
+
configDashboard: A
|
|
9049
9051
|
}));
|
|
9050
9052
|
async function w() {
|
|
9051
9053
|
d(!0), m(!0), f(void 0);
|
|
9052
9054
|
try {
|
|
9053
|
-
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;
|
|
9054
9056
|
y.current = C.fields;
|
|
9055
9057
|
const O = await _({
|
|
9056
9058
|
items: x,
|
|
@@ -9153,12 +9155,12 @@ function ud(e, t) {
|
|
|
9153
9155
|
await E.getHandler().update({
|
|
9154
9156
|
model: r,
|
|
9155
9157
|
id: o,
|
|
9156
|
-
values: { [
|
|
9158
|
+
values: { [An]: O },
|
|
9157
9159
|
fields: y.current,
|
|
9158
9160
|
context: i
|
|
9159
9161
|
});
|
|
9160
9162
|
}
|
|
9161
|
-
async function
|
|
9163
|
+
async function A() {
|
|
9162
9164
|
g(s);
|
|
9163
9165
|
}
|
|
9164
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) => {
|
|
@@ -9335,10 +9337,10 @@ const fd = yt(ud), md = (e) => {
|
|
|
9335
9337
|
return /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
9336
9338
|
}
|
|
9337
9339
|
const S = () => {
|
|
9338
|
-
|
|
9340
|
+
A(a.map((C) => C.value));
|
|
9339
9341
|
}, D = () => {
|
|
9340
|
-
|
|
9341
|
-
},
|
|
9342
|
+
A([]);
|
|
9343
|
+
}, A = (C) => {
|
|
9342
9344
|
const b = o.map((x) => C.includes(x.id) ? x.operation == "pendingRemove" ? {
|
|
9343
9345
|
...x,
|
|
9344
9346
|
operation: "original"
|
|
@@ -9347,27 +9349,27 @@ const fd = yt(ud), md = (e) => {
|
|
|
9347
9349
|
b.push({ id: x, operation: "pendingLink" });
|
|
9348
9350
|
}), _(b);
|
|
9349
9351
|
};
|
|
9350
|
-
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: [
|
|
9351
9353
|
/* @__PURE__ */ n(
|
|
9352
9354
|
jt.Group,
|
|
9353
9355
|
{
|
|
9354
9356
|
value: a.length ? s : [],
|
|
9355
9357
|
disabled: h,
|
|
9356
|
-
onChange:
|
|
9358
|
+
onChange: A,
|
|
9357
9359
|
style: { width: "100%" },
|
|
9358
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 }) })) })
|
|
9359
9361
|
}
|
|
9360
9362
|
),
|
|
9361
|
-
!h && /* @__PURE__ */
|
|
9363
|
+
!h && /* @__PURE__ */ V(Ye, { children: [
|
|
9362
9364
|
/* @__PURE__ */ n(
|
|
9363
|
-
|
|
9365
|
+
Ve,
|
|
9364
9366
|
{
|
|
9365
9367
|
onClick: S,
|
|
9366
9368
|
disabled: s.length == a.length,
|
|
9367
9369
|
children: "Check all"
|
|
9368
9370
|
}
|
|
9369
9371
|
),
|
|
9370
|
-
/* @__PURE__ */ n(
|
|
9372
|
+
/* @__PURE__ */ n(Ve, { onClick: D, disabled: s.length === 0, children: "Uncheck all" })
|
|
9371
9373
|
] })
|
|
9372
9374
|
] }) });
|
|
9373
9375
|
}, pd = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(gd, { ...e }) }), gd = (e) => {
|
|
@@ -9438,20 +9440,20 @@ const fd = yt(ud), md = (e) => {
|
|
|
9438
9440
|
function _d({ text: e }) {
|
|
9439
9441
|
const t = e.split(`
|
|
9440
9442
|
`);
|
|
9441
|
-
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */
|
|
9443
|
+
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ V(ei, { children: [
|
|
9442
9444
|
r,
|
|
9443
9445
|
i !== t.length - 1 && /* @__PURE__ */ n("br", {})
|
|
9444
9446
|
] }, i)) });
|
|
9445
9447
|
}
|
|
9446
9448
|
const Od = (e) => {
|
|
9447
9449
|
const { data: t, style: r } = e, { t: i } = H(he);
|
|
9448
|
-
return /* @__PURE__ */
|
|
9450
|
+
return /* @__PURE__ */ V(Bn, { style: { ...r, textAlign: "start" }, children: [
|
|
9449
9451
|
/* @__PURE__ */ n(
|
|
9450
9452
|
Td,
|
|
9451
9453
|
{
|
|
9452
9454
|
avatar: /* @__PURE__ */ n(Fd, { email: t.email, theme: "mp" }),
|
|
9453
9455
|
title: t.author,
|
|
9454
|
-
description: /* @__PURE__ */
|
|
9456
|
+
description: /* @__PURE__ */ V(Ye, { direction: "horizontal", children: [
|
|
9455
9457
|
/* @__PURE__ */ n("span", { title: t.date, children: rt(t.date).fromNow() }),
|
|
9456
9458
|
t.isAuthor && /* @__PURE__ */ n(kr, { color: "blue", children: i("author") })
|
|
9457
9459
|
] }),
|
|
@@ -9474,16 +9476,16 @@ const Od = (e) => {
|
|
|
9474
9476
|
children: /* @__PURE__ */ n(Od, { data: i.event })
|
|
9475
9477
|
};
|
|
9476
9478
|
});
|
|
9477
|
-
return /* @__PURE__ */ n(
|
|
9478
|
-
},
|
|
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;
|
|
9479
9481
|
function kd() {
|
|
9480
9482
|
const { t: e } = H(he);
|
|
9481
|
-
return /* @__PURE__ */ n(
|
|
9483
|
+
return /* @__PURE__ */ n(Vd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Dd, { level: 5, children: e("welcome") }) });
|
|
9482
9484
|
}
|
|
9483
9485
|
function Ed(e, t) {
|
|
9484
9486
|
const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = v("welcome"), [c, d] = v([
|
|
9485
9487
|
{
|
|
9486
|
-
title:
|
|
9488
|
+
title: Ae("welcome", s),
|
|
9487
9489
|
key: "welcome",
|
|
9488
9490
|
closable: !0,
|
|
9489
9491
|
content: /* @__PURE__ */ n(kd, {})
|
|
@@ -9510,7 +9512,7 @@ function Ed(e, t) {
|
|
|
9510
9512
|
action: T,
|
|
9511
9513
|
values: S,
|
|
9512
9514
|
forced_values: D,
|
|
9513
|
-
initialViewType:
|
|
9515
|
+
initialViewType: A,
|
|
9514
9516
|
res_id: C,
|
|
9515
9517
|
domain: b = []
|
|
9516
9518
|
}) {
|
|
@@ -9555,9 +9557,9 @@ function Ed(e, t) {
|
|
|
9555
9557
|
}
|
|
9556
9558
|
}
|
|
9557
9559
|
let G;
|
|
9558
|
-
if (
|
|
9560
|
+
if (A) {
|
|
9559
9561
|
const [k, P] = re.find(
|
|
9560
|
-
([ie, z]) => z ===
|
|
9562
|
+
([ie, z]) => z === A
|
|
9561
9563
|
);
|
|
9562
9564
|
G = { id: k, type: P };
|
|
9563
9565
|
} else {
|
|
@@ -9585,7 +9587,7 @@ function Ed(e, t) {
|
|
|
9585
9587
|
title: T,
|
|
9586
9588
|
content: S,
|
|
9587
9589
|
key: D,
|
|
9588
|
-
action:
|
|
9590
|
+
action: A
|
|
9589
9591
|
}) {
|
|
9590
9592
|
let C = [...c];
|
|
9591
9593
|
c.length === 1 && c[0].key === "welcome" && (C = [...c.filter((b) => b.key !== "welcome")]), d([
|
|
@@ -9595,7 +9597,7 @@ function Ed(e, t) {
|
|
|
9595
9597
|
key: D,
|
|
9596
9598
|
closable: !0,
|
|
9597
9599
|
content: S,
|
|
9598
|
-
action:
|
|
9600
|
+
action: A
|
|
9599
9601
|
}
|
|
9600
9602
|
]), l(D);
|
|
9601
9603
|
}
|
|
@@ -9603,7 +9605,7 @@ function Ed(e, t) {
|
|
|
9603
9605
|
relateData: T,
|
|
9604
9606
|
fields: S,
|
|
9605
9607
|
values: D,
|
|
9606
|
-
action_id:
|
|
9608
|
+
action_id: A,
|
|
9607
9609
|
action_type: C
|
|
9608
9610
|
}) {
|
|
9609
9611
|
const {
|
|
@@ -9635,13 +9637,13 @@ function Ed(e, t) {
|
|
|
9635
9637
|
domain: Y,
|
|
9636
9638
|
title: N,
|
|
9637
9639
|
initialView: K,
|
|
9638
|
-
action_id:
|
|
9640
|
+
action_id: A,
|
|
9639
9641
|
action_type: C,
|
|
9640
9642
|
limit: q
|
|
9641
9643
|
});
|
|
9642
9644
|
}
|
|
9643
9645
|
async function w(T) {
|
|
9644
|
-
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({
|
|
9645
9647
|
action: b,
|
|
9646
9648
|
context: o
|
|
9647
9649
|
}), x = Ct({
|
|
@@ -9693,7 +9695,7 @@ function Ed(e, t) {
|
|
|
9693
9695
|
initialView: re,
|
|
9694
9696
|
action_id: S,
|
|
9695
9697
|
action_type: D,
|
|
9696
|
-
res_id:
|
|
9698
|
+
res_id: A,
|
|
9697
9699
|
treeExpandable: R,
|
|
9698
9700
|
limit: K
|
|
9699
9701
|
});
|
|
@@ -9702,7 +9704,7 @@ function Ed(e, t) {
|
|
|
9702
9704
|
model: T,
|
|
9703
9705
|
values: S,
|
|
9704
9706
|
forced_values: D,
|
|
9705
|
-
initialViewType:
|
|
9707
|
+
initialViewType: A,
|
|
9706
9708
|
res_id: C,
|
|
9707
9709
|
domain: b
|
|
9708
9710
|
}) {
|
|
@@ -9711,7 +9713,7 @@ function Ed(e, t) {
|
|
|
9711
9713
|
action: I,
|
|
9712
9714
|
values: S,
|
|
9713
9715
|
forced_values: D,
|
|
9714
|
-
initialViewType:
|
|
9716
|
+
initialViewType: A,
|
|
9715
9717
|
res_id: C,
|
|
9716
9718
|
domain: b
|
|
9717
9719
|
});
|
|
@@ -9720,7 +9722,7 @@ function Ed(e, t) {
|
|
|
9720
9722
|
domain: T,
|
|
9721
9723
|
context: S,
|
|
9722
9724
|
model: D,
|
|
9723
|
-
views:
|
|
9725
|
+
views: A,
|
|
9724
9726
|
title: C,
|
|
9725
9727
|
target: b,
|
|
9726
9728
|
initialView: I,
|
|
@@ -9767,7 +9769,7 @@ function Ed(e, t) {
|
|
|
9767
9769
|
action_type: O,
|
|
9768
9770
|
tabKey: K,
|
|
9769
9771
|
title: C,
|
|
9770
|
-
views:
|
|
9772
|
+
views: A,
|
|
9771
9773
|
model: D,
|
|
9772
9774
|
context: { ...o, ...S },
|
|
9773
9775
|
domain: T,
|
|
@@ -9816,7 +9818,7 @@ function Ed(e, t) {
|
|
|
9816
9818
|
const Fu = yt(Ed), { useToken: Nd } = Ke;
|
|
9817
9819
|
function Md(e) {
|
|
9818
9820
|
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Nd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
9819
|
-
return /* @__PURE__ */
|
|
9821
|
+
return /* @__PURE__ */ V(
|
|
9820
9822
|
"div",
|
|
9821
9823
|
{
|
|
9822
9824
|
onClick: () => {
|
|
@@ -9930,7 +9932,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9930
9932
|
activeKey: T,
|
|
9931
9933
|
currentView: S,
|
|
9932
9934
|
currentId: D,
|
|
9933
|
-
openDefaultActionForModel:
|
|
9935
|
+
openDefaultActionForModel: A
|
|
9934
9936
|
} = w || {};
|
|
9935
9937
|
fe(() => {
|
|
9936
9938
|
C();
|
|
@@ -9975,10 +9977,10 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9975
9977
|
te !== !1 && h(te), a(te !== !1);
|
|
9976
9978
|
}
|
|
9977
9979
|
async function O() {
|
|
9978
|
-
c(!1),
|
|
9980
|
+
c(!1), A == null || A({ model: "ir.ui.view_sc" });
|
|
9979
9981
|
}
|
|
9980
|
-
const L = /* @__PURE__ */
|
|
9981
|
-
/* @__PURE__ */
|
|
9982
|
+
const L = /* @__PURE__ */ V(He, { onClick: b, children: [
|
|
9983
|
+
/* @__PURE__ */ V("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
|
|
9982
9984
|
/* @__PURE__ */ n("div", { style: { paddingLeft: 15, color: "#ccc" }, children: p == null ? void 0 : p("favorites").toUpperCase() }),
|
|
9983
9985
|
/* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ n(gt, { title: p == null ? void 0 : p("edit_favorites"), children: /* @__PURE__ */ n(
|
|
9984
9986
|
Qr,
|
|
@@ -9998,7 +10000,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
9998
10000
|
) }, M.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
|
|
9999
10001
|
] });
|
|
10000
10002
|
function N({ title: M, type: $ }) {
|
|
10001
|
-
return /* @__PURE__ */
|
|
10003
|
+
return /* @__PURE__ */ V(Te, { wrap: !1, children: [
|
|
10002
10004
|
/* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: $ === "tree" ? /* @__PURE__ */ n(Xn, {}) : /* @__PURE__ */ n(Ut, {}) }),
|
|
10003
10005
|
/* @__PURE__ */ n(ce, { flex: "auto", children: M })
|
|
10004
10006
|
] });
|
|
@@ -10024,9 +10026,9 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
10024
10026
|
}
|
|
10025
10027
|
await C(), a(!s);
|
|
10026
10028
|
}
|
|
10027
|
-
return /* @__PURE__ */
|
|
10029
|
+
return /* @__PURE__ */ V(X, { children: [
|
|
10028
10030
|
/* @__PURE__ */ n(
|
|
10029
|
-
|
|
10031
|
+
Ve,
|
|
10030
10032
|
{
|
|
10031
10033
|
type: s ? "primary" : "default",
|
|
10032
10034
|
icon: s ? /* @__PURE__ */ n(Yr, { style: { color: "white" } }) : /* @__PURE__ */ n(Gr, {}),
|
|
@@ -10045,7 +10047,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
|
|
|
10045
10047
|
onVisibleChange: I,
|
|
10046
10048
|
open: l,
|
|
10047
10049
|
children: /* @__PURE__ */ n(
|
|
10048
|
-
|
|
10050
|
+
Ve,
|
|
10049
10051
|
{
|
|
10050
10052
|
style: {
|
|
10051
10053
|
width: 25,
|
|
@@ -10064,12 +10066,12 @@ export {
|
|
|
10064
10066
|
kc as ActionBar,
|
|
10065
10067
|
Mo as ActionView,
|
|
10066
10068
|
Ic as Binary,
|
|
10067
|
-
|
|
10069
|
+
Vs as Boolean,
|
|
10068
10070
|
ro as Button,
|
|
10069
10071
|
gs as ButtonGroup,
|
|
10070
10072
|
so as Char,
|
|
10071
10073
|
Sd as CodeEditor,
|
|
10072
|
-
|
|
10074
|
+
Ad as CommentsTimelineField,
|
|
10073
10075
|
Uc as ConfigContext,
|
|
10074
10076
|
E as ConnectionProvider,
|
|
10075
10077
|
Ra as ContentRootProvider,
|