@gisce/react-ooui 1.2.6-rc.2 → 1.2.6-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/react-ooui.es.js +492 -490
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +9 -9
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/TreeActionBar.tsx +8 -1
- package/src/widgets/views/SearchTree.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import qe, { useContext as K, useState as x, useEffect as pe, useRef as me, useCallback as Re, forwardRef as
|
|
2
|
-
import { Tooltip as ft, theme as Me, Typography as on, Form as it, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as Ae, Divider as sn, Space as je, Input as Qe, Select as
|
|
3
|
-
import { Label as
|
|
1
|
+
import qe, { useContext as K, useState as x, useEffect as pe, useRef as me, useCallback as Re, forwardRef as vt, useImperativeHandle as wt } from "react";
|
|
2
|
+
import { Tooltip as ft, theme as Me, Typography as on, Form as it, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as Ae, Divider as sn, Space as je, Input as Qe, Select as bt, Checkbox as Nt, Alert as ze, Timeline as er, Statistic as Go, Card as Uo, Tag as kn, message as wn, DatePicker as Rn, TimePicker as qo, InputNumber as En, Progress as zo, Avatar as Jo, Pagination as Zo, Tabs as _r, Popover as Xo, Radio as tr, Switch as Qo, Steps as nr, Layout as ei } from "antd";
|
|
3
|
+
import { Label as Vt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as yt, Form as Vr, Integer as On, SearchFieldTypes as ut, SearchFilter as oi, transformDomainForChildWidget as Ar, graphProcessor as kr, parseGraph as $n, graphFieldUtils as ii } from "@gisce/ooui";
|
|
4
4
|
import * as rr from "@ant-design/icons";
|
|
5
|
-
import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as
|
|
5
|
+
import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as At, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as kt, TranslationOutlined as $r, FolderOpenOutlined as Nn, DownloadOutlined as Ln, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Lr, UpOutlined as si, SearchOutlined as Bn, RightCircleOutlined as ai, ThunderboltOutlined as Hn, PrinterOutlined as jn, EnterOutlined as Pr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as an, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as Hr, EyeOutlined as fi, FormOutlined as Lt, TableOutlined as Wn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as jr, SaveOutlined as pi, CopyOutlined as Yn, InfoCircleOutlined as Kr, ReloadOutlined as ln, EditOutlined as Wr, FilterOutlined as Yr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as vi, ExportOutlined as wi } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
7
|
-
import { jsxs as P, jsx as n, Fragment as
|
|
7
|
+
import { jsxs as P, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
8
8
|
import * as or from "@tabler/icons-react";
|
|
9
9
|
import bi from "antd/lib/input/TextArea";
|
|
10
10
|
import jt from "styled-components";
|
|
11
11
|
import Un from "react-measure";
|
|
12
12
|
import _n from "antd/lib/typography/Title";
|
|
13
13
|
import { Line as xi, Column as Ci, Pie as Si } from "@ant-design/plots";
|
|
14
|
-
import
|
|
14
|
+
import xt from "use-deep-compare-effect";
|
|
15
15
|
import { Table as Ti } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as Fi } from "file-type-buffer-browser";
|
|
17
17
|
import { GridUi as Oi } from "@gisce/fiber-diagram";
|
|
@@ -381,7 +381,7 @@ function ve({
|
|
|
381
381
|
if (!o)
|
|
382
382
|
return h();
|
|
383
383
|
const g = /* @__PURE__ */ n(cn, {
|
|
384
|
-
ooui: new
|
|
384
|
+
ooui: new Vt({
|
|
385
385
|
name: u + "_label",
|
|
386
386
|
string: f,
|
|
387
387
|
help: c,
|
|
@@ -403,7 +403,7 @@ function ve({
|
|
|
403
403
|
flex: "auto",
|
|
404
404
|
children: h()
|
|
405
405
|
})]
|
|
406
|
-
}))() : (() => /* @__PURE__ */ P(
|
|
406
|
+
}))() : (() => /* @__PURE__ */ P(Z, {
|
|
407
407
|
children: [g, h()]
|
|
408
408
|
}))();
|
|
409
409
|
}
|
|
@@ -623,8 +623,8 @@ const Ur = (e) => {
|
|
|
623
623
|
if (m)
|
|
624
624
|
return /* @__PURE__ */ n(et, {});
|
|
625
625
|
if (l) {
|
|
626
|
-
const
|
|
627
|
-
return
|
|
626
|
+
const D = st(l);
|
|
627
|
+
return D && /* @__PURE__ */ n(D, {});
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
return /* @__PURE__ */ n(ve, {
|
|
@@ -663,7 +663,7 @@ const Ur = (e) => {
|
|
|
663
663
|
} = r || {}, h = K(Ee), {
|
|
664
664
|
executeButtonAction: g
|
|
665
665
|
} = h || {}, [v, y] = x(!1), {
|
|
666
|
-
lang:
|
|
666
|
+
lang: D
|
|
667
667
|
} = K(ge);
|
|
668
668
|
function O() {
|
|
669
669
|
if (v)
|
|
@@ -680,11 +680,11 @@ const Ur = (e) => {
|
|
|
680
680
|
context: m
|
|
681
681
|
}), y(!1));
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function V() {
|
|
684
684
|
if (d) {
|
|
685
685
|
Kt({
|
|
686
686
|
confirmMessage: d,
|
|
687
|
-
lang:
|
|
687
|
+
lang: D,
|
|
688
688
|
onOk: () => {
|
|
689
689
|
b();
|
|
690
690
|
}
|
|
@@ -702,13 +702,13 @@ const Ur = (e) => {
|
|
|
702
702
|
}),
|
|
703
703
|
children: /* @__PURE__ */ P(Bt.Button, {
|
|
704
704
|
disabled: !a || p,
|
|
705
|
-
onClick:
|
|
706
|
-
icon: /* @__PURE__ */ n(
|
|
705
|
+
onClick: V,
|
|
706
|
+
icon: /* @__PURE__ */ n(At, {}),
|
|
707
707
|
type: f ? "primary" : void 0,
|
|
708
708
|
overlay: /* @__PURE__ */ n(zi, {
|
|
709
709
|
ooui: i,
|
|
710
710
|
executeButtonAction: g,
|
|
711
|
-
lang:
|
|
711
|
+
lang: D
|
|
712
712
|
}),
|
|
713
713
|
children: [O(), s]
|
|
714
714
|
})
|
|
@@ -744,7 +744,7 @@ const Ur = (e) => {
|
|
|
744
744
|
context: m
|
|
745
745
|
}), v(!1);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function D() {
|
|
748
748
|
if (f) {
|
|
749
749
|
Kt({
|
|
750
750
|
confirmMessage: f,
|
|
@@ -767,7 +767,7 @@ const Ur = (e) => {
|
|
|
767
767
|
}
|
|
768
768
|
return /* @__PURE__ */ n($e.Item, {
|
|
769
769
|
disabled: !d || p,
|
|
770
|
-
onClick:
|
|
770
|
+
onClick: D,
|
|
771
771
|
icon: O(),
|
|
772
772
|
danger: h,
|
|
773
773
|
children: l
|
|
@@ -857,9 +857,9 @@ const qr = (e) => {
|
|
|
857
857
|
t: d
|
|
858
858
|
} = K(ge), [u, f] = x([]), [c, m] = x(!1), [p, h] = x(!1), [g, v] = x({}), y = me();
|
|
859
859
|
pe(() => {
|
|
860
|
-
t ?
|
|
860
|
+
t ? D() : v({});
|
|
861
861
|
}, [t]);
|
|
862
|
-
async function
|
|
862
|
+
async function D() {
|
|
863
863
|
m(!0);
|
|
864
864
|
try {
|
|
865
865
|
const w = await O();
|
|
@@ -895,7 +895,7 @@ const qr = (e) => {
|
|
|
895
895
|
}
|
|
896
896
|
y.current = C, v(C);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function V() {
|
|
899
899
|
return u.map((w, C) => /* @__PURE__ */ P(Ce, {
|
|
900
900
|
style: {
|
|
901
901
|
paddingBottom: 20
|
|
@@ -943,8 +943,8 @@ const qr = (e) => {
|
|
|
943
943
|
h(!1), a();
|
|
944
944
|
}
|
|
945
945
|
function $() {
|
|
946
|
-
return c ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(
|
|
947
|
-
children: [
|
|
946
|
+
return c ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
|
|
947
|
+
children: [V(), /* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
|
|
948
948
|
justify: "end",
|
|
949
949
|
children: /* @__PURE__ */ P(je, {
|
|
950
950
|
children: [/* @__PURE__ */ n(Ie, {
|
|
@@ -953,7 +953,7 @@ const qr = (e) => {
|
|
|
953
953
|
disabled: p,
|
|
954
954
|
children: d("cancel")
|
|
955
955
|
}), /* @__PURE__ */ n(Ie, {
|
|
956
|
-
icon: p ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(
|
|
956
|
+
icon: p ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(kt, {}),
|
|
957
957
|
disabled: p,
|
|
958
958
|
onClick: _,
|
|
959
959
|
style: {
|
|
@@ -1052,7 +1052,7 @@ const {
|
|
|
1052
1052
|
} = o || {}, [f, c] = x(!1), {
|
|
1053
1053
|
t: m
|
|
1054
1054
|
} = K(ge);
|
|
1055
|
-
return s ? /* @__PURE__ */ P(
|
|
1055
|
+
return s ? /* @__PURE__ */ P(Z, {
|
|
1056
1056
|
children: [/* @__PURE__ */ n("div", {
|
|
1057
1057
|
onClick: () => {
|
|
1058
1058
|
if (d != null && d()) {
|
|
@@ -1086,7 +1086,7 @@ const {
|
|
|
1086
1086
|
c(!1), l == null || l();
|
|
1087
1087
|
}
|
|
1088
1088
|
})]
|
|
1089
|
-
}) : /* @__PURE__ */ n(
|
|
1089
|
+
}) : /* @__PURE__ */ n(Z, {
|
|
1090
1090
|
children: /* @__PURE__ */ P(Ce, {
|
|
1091
1091
|
gutter: 8,
|
|
1092
1092
|
wrap: !1,
|
|
@@ -1119,7 +1119,7 @@ const {
|
|
|
1119
1119
|
defaultSeed: rs
|
|
1120
1120
|
} = Me, os = ns(rs), {
|
|
1121
1121
|
Option: is
|
|
1122
|
-
} =
|
|
1122
|
+
} = bt, Zr = (e) => {
|
|
1123
1123
|
const {
|
|
1124
1124
|
ooui: t
|
|
1125
1125
|
} = e, {
|
|
@@ -1149,7 +1149,7 @@ const {
|
|
|
1149
1149
|
children: m
|
|
1150
1150
|
}, c);
|
|
1151
1151
|
});
|
|
1152
|
-
return /* @__PURE__ */ n(a && !s ? ss :
|
|
1152
|
+
return /* @__PURE__ */ n(a && !s ? ss : bt, {
|
|
1153
1153
|
disabled: s,
|
|
1154
1154
|
onChange: r,
|
|
1155
1155
|
value: i,
|
|
@@ -1158,7 +1158,7 @@ const {
|
|
|
1158
1158
|
showSearch: !0,
|
|
1159
1159
|
children: d
|
|
1160
1160
|
});
|
|
1161
|
-
}, ss = jt(
|
|
1161
|
+
}, ss = jt(bt)`
|
|
1162
1162
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1163
1163
|
background-color: ${os.colorPrimaryBg};
|
|
1164
1164
|
}
|
|
@@ -1204,12 +1204,12 @@ const {
|
|
|
1204
1204
|
background-color: ${lr.colorPrimary};
|
|
1205
1205
|
}
|
|
1206
1206
|
`;
|
|
1207
|
-
var
|
|
1207
|
+
var gt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1208
1208
|
function fs(e) {
|
|
1209
1209
|
var t = typeof e;
|
|
1210
1210
|
return e != null && (t == "object" || t == "function");
|
|
1211
1211
|
}
|
|
1212
|
-
var Qr = fs, ms = typeof
|
|
1212
|
+
var Qr = fs, ms = typeof gt == "object" && gt && gt.Object === Object && gt, hs = ms, ps = hs, gs = typeof self == "object" && self && self.Object === Object && self, ys = ps || gs || Function("return this")(), eo = ys, vs = eo, ws = function() {
|
|
1213
1213
|
return vs.Date.now();
|
|
1214
1214
|
}, bs = ws, xs = /\s/;
|
|
1215
1215
|
function Cs(e) {
|
|
@@ -1221,16 +1221,16 @@ var Ss = Cs, Ts = Ss, Fs = /^\s+/;
|
|
|
1221
1221
|
function Os(e) {
|
|
1222
1222
|
return e && e.slice(0, Ts(e) + 1).replace(Fs, "");
|
|
1223
1223
|
}
|
|
1224
|
-
var _s = Os, Is = eo, Ds = Is.Symbol, to = Ds, cr = to, no = Object.prototype, Vs = no.hasOwnProperty, As = no.toString,
|
|
1224
|
+
var _s = Os, Is = eo, Ds = Is.Symbol, to = Ds, cr = to, no = Object.prototype, Vs = no.hasOwnProperty, As = no.toString, Mt = cr ? cr.toStringTag : void 0;
|
|
1225
1225
|
function ks(e) {
|
|
1226
|
-
var t = Vs.call(e,
|
|
1226
|
+
var t = Vs.call(e, Mt), r = e[Mt];
|
|
1227
1227
|
try {
|
|
1228
|
-
e[
|
|
1228
|
+
e[Mt] = void 0;
|
|
1229
1229
|
var i = !0;
|
|
1230
1230
|
} catch {
|
|
1231
1231
|
}
|
|
1232
1232
|
var o = As.call(e);
|
|
1233
|
-
return i && (t ? e[
|
|
1233
|
+
return i && (t ? e[Mt] = r : delete e[Mt]), o;
|
|
1234
1234
|
}
|
|
1235
1235
|
var Rs = ks, Es = Object.prototype, Ms = Es.toString;
|
|
1236
1236
|
function $s(e) {
|
|
@@ -1288,19 +1288,19 @@ function ca(e, t, r) {
|
|
|
1288
1288
|
function y() {
|
|
1289
1289
|
var _ = bn();
|
|
1290
1290
|
if (v(_))
|
|
1291
|
-
return
|
|
1291
|
+
return D(_);
|
|
1292
1292
|
l = setTimeout(y, g(_));
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function D(_) {
|
|
1295
1295
|
return l = void 0, m && i ? p(_) : (i = o = void 0, a);
|
|
1296
1296
|
}
|
|
1297
1297
|
function O() {
|
|
1298
1298
|
l !== void 0 && clearTimeout(l), u = 0, i = d = o = l = void 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
function b() {
|
|
1301
|
-
return l === void 0 ? a :
|
|
1301
|
+
return l === void 0 ? a : D(bn());
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function V() {
|
|
1304
1304
|
var _ = bn(), $ = v(_);
|
|
1305
1305
|
if (i = arguments, o = this, d = _, $) {
|
|
1306
1306
|
if (l === void 0)
|
|
@@ -1310,14 +1310,14 @@ function ca(e, t, r) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
return l === void 0 && (l = setTimeout(y, t)), a;
|
|
1312
1312
|
}
|
|
1313
|
-
return
|
|
1313
|
+
return V.cancel = O, V.flush = b, V;
|
|
1314
1314
|
}
|
|
1315
1315
|
var da = ca;
|
|
1316
1316
|
function ua(e) {
|
|
1317
1317
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1318
1318
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1319
1319
|
}
|
|
1320
|
-
async function
|
|
1320
|
+
async function Dt(e) {
|
|
1321
1321
|
const t = await Fi(
|
|
1322
1322
|
Buffer.from(e, "base64")
|
|
1323
1323
|
);
|
|
@@ -1363,7 +1363,7 @@ const fa = (e) => {
|
|
|
1363
1363
|
i == null || i(c);
|
|
1364
1364
|
};
|
|
1365
1365
|
async function d() {
|
|
1366
|
-
const c = await
|
|
1366
|
+
const c = await Dt(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`, p = document.createElement("a");
|
|
1367
1367
|
p.href = m, p.download = `image.${c == null ? void 0 : c.ext}`, p.click();
|
|
1368
1368
|
}
|
|
1369
1369
|
async function u(c) {
|
|
@@ -1374,7 +1374,7 @@ const fa = (e) => {
|
|
|
1374
1374
|
function f() {
|
|
1375
1375
|
l(void 0);
|
|
1376
1376
|
}
|
|
1377
|
-
return /* @__PURE__ */ P(
|
|
1377
|
+
return /* @__PURE__ */ P(Z, {
|
|
1378
1378
|
children: [/* @__PURE__ */ P(Ce, {
|
|
1379
1379
|
gutter: 8,
|
|
1380
1380
|
wrap: !1,
|
|
@@ -1450,7 +1450,7 @@ const fa = (e) => {
|
|
|
1450
1450
|
r && r(i);
|
|
1451
1451
|
}
|
|
1452
1452
|
});
|
|
1453
|
-
},
|
|
1453
|
+
}, Ot = (e) => {
|
|
1454
1454
|
const t = e.arch, r = e.fields, i = new Ir(r);
|
|
1455
1455
|
return i.parse(t), i;
|
|
1456
1456
|
}, ga = (e, t, r) => e.columns.map((o) => {
|
|
@@ -1490,7 +1490,7 @@ function Xt(e) {
|
|
|
1490
1490
|
t[r.id] = r.colors;
|
|
1491
1491
|
}), t;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function _t({
|
|
1494
1494
|
resultsToSort: e,
|
|
1495
1495
|
sorter: t,
|
|
1496
1496
|
fields: r
|
|
@@ -1521,7 +1521,7 @@ const qn = async (e) => {
|
|
|
1521
1521
|
};
|
|
1522
1522
|
let f = [], c;
|
|
1523
1523
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1524
|
-
const g = (h =
|
|
1524
|
+
const g = (h = Ot(o)) == null ? void 0 : h.colors, v = await H.getHandler().readEvalUiObjects({
|
|
1525
1525
|
model: r,
|
|
1526
1526
|
ids: d,
|
|
1527
1527
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1548,7 +1548,7 @@ const qn = async (e) => {
|
|
|
1548
1548
|
return [
|
|
1549
1549
|
t.map((g) => {
|
|
1550
1550
|
const v = m.find(
|
|
1551
|
-
(
|
|
1551
|
+
(D) => D.id === g.id
|
|
1552
1552
|
), y = {
|
|
1553
1553
|
...g
|
|
1554
1554
|
};
|
|
@@ -1577,7 +1577,7 @@ const qn = async (e) => {
|
|
|
1577
1577
|
} = t, [s, a] = x(!0), [l, d] = x(), [u, f] = x(/* @__PURE__ */ new Map()), c = K(Ee), {
|
|
1578
1578
|
getContext: m
|
|
1579
1579
|
} = c || {};
|
|
1580
|
-
|
|
1580
|
+
xt(() => {
|
|
1581
1581
|
h();
|
|
1582
1582
|
}, [t]);
|
|
1583
1583
|
const p = async (g) => o && o[g] ? o[g] : await H.getHandler().getView({
|
|
@@ -1624,11 +1624,11 @@ const qn = async (e) => {
|
|
|
1624
1624
|
context: g,
|
|
1625
1625
|
readOnly: v,
|
|
1626
1626
|
summaryField: y,
|
|
1627
|
-
titleField:
|
|
1627
|
+
titleField: D
|
|
1628
1628
|
} = i, O = s.filter((w) => w.values), b = K(Ee), {
|
|
1629
|
-
getContext:
|
|
1629
|
+
getContext: V
|
|
1630
1630
|
} = b || {};
|
|
1631
|
-
|
|
1631
|
+
xt(() => {
|
|
1632
1632
|
$();
|
|
1633
1633
|
}, [s]);
|
|
1634
1634
|
const _ = (w) => {
|
|
@@ -1650,7 +1650,7 @@ const qn = async (e) => {
|
|
|
1650
1650
|
model: h,
|
|
1651
1651
|
items: s,
|
|
1652
1652
|
context: {
|
|
1653
|
-
...
|
|
1653
|
+
...V == null ? void 0 : V(),
|
|
1654
1654
|
...g
|
|
1655
1655
|
},
|
|
1656
1656
|
currentView: "form"
|
|
@@ -1667,7 +1667,7 @@ const qn = async (e) => {
|
|
|
1667
1667
|
message: d,
|
|
1668
1668
|
type: "error",
|
|
1669
1669
|
banner: !0
|
|
1670
|
-
}) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(
|
|
1670
|
+
}) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
|
|
1671
1671
|
children: [/* @__PURE__ */ n(er, {
|
|
1672
1672
|
style: {
|
|
1673
1673
|
padding: "1rem"
|
|
@@ -1685,7 +1685,7 @@ const qn = async (e) => {
|
|
|
1685
1685
|
p(O.find((L) => w.id === L.id)), c(!0);
|
|
1686
1686
|
},
|
|
1687
1687
|
children: /* @__PURE__ */ n("strong", {
|
|
1688
|
-
children: (F = w.values) == null ? void 0 : F[
|
|
1688
|
+
children: (F = w.values) == null ? void 0 : F[D]
|
|
1689
1689
|
})
|
|
1690
1690
|
}), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("div", {
|
|
1691
1691
|
style: {
|
|
@@ -1711,7 +1711,7 @@ const qn = async (e) => {
|
|
|
1711
1711
|
c(!1);
|
|
1712
1712
|
},
|
|
1713
1713
|
parentContext: {
|
|
1714
|
-
...
|
|
1714
|
+
...V == null ? void 0 : V(),
|
|
1715
1715
|
...g
|
|
1716
1716
|
},
|
|
1717
1717
|
onCancel: () => {
|
|
@@ -1739,7 +1739,7 @@ const qn = async (e) => {
|
|
|
1739
1739
|
} = xa(), {
|
|
1740
1740
|
ooui: r,
|
|
1741
1741
|
value: i
|
|
1742
|
-
} = e, o = /* @__PURE__ */ P(
|
|
1742
|
+
} = e, o = /* @__PURE__ */ P(Z, {
|
|
1743
1743
|
children: [/* @__PURE__ */ P("span", {
|
|
1744
1744
|
children: [r.label, " "]
|
|
1745
1745
|
}), r.tooltip && /* @__PURE__ */ n(ft, {
|
|
@@ -1777,7 +1777,7 @@ const qn = async (e) => {
|
|
|
1777
1777
|
} else
|
|
1778
1778
|
r[i] = e[i];
|
|
1779
1779
|
}), r;
|
|
1780
|
-
},
|
|
1780
|
+
}, Ft = (e, t) => Ta(e, t), xn = ({
|
|
1781
1781
|
source: e,
|
|
1782
1782
|
target: t,
|
|
1783
1783
|
fields: r
|
|
@@ -1872,7 +1872,7 @@ const qn = async (e) => {
|
|
|
1872
1872
|
function pr(e, t, r) {
|
|
1873
1873
|
return r.indexOf(e) === t;
|
|
1874
1874
|
}
|
|
1875
|
-
const
|
|
1875
|
+
const Rt = ({
|
|
1876
1876
|
values: e,
|
|
1877
1877
|
fields: t
|
|
1878
1878
|
}) => {
|
|
@@ -1917,10 +1917,10 @@ const kt = ({
|
|
|
1917
1917
|
} = r, v = K(Ee), {
|
|
1918
1918
|
getContext: y
|
|
1919
1919
|
} = v || {};
|
|
1920
|
-
|
|
1920
|
+
xt(() => {
|
|
1921
1921
|
O();
|
|
1922
1922
|
}, [o]);
|
|
1923
|
-
const
|
|
1923
|
+
const D = (_) => {
|
|
1924
1924
|
i == null || i({
|
|
1925
1925
|
items: _
|
|
1926
1926
|
});
|
|
@@ -1932,7 +1932,7 @@ const kt = ({
|
|
|
1932
1932
|
if (h && (_ = [["id", "in", s]]), r.domain) {
|
|
1933
1933
|
const C = await H.getHandler().evalDomain({
|
|
1934
1934
|
domain: r.domain,
|
|
1935
|
-
values:
|
|
1935
|
+
values: Rt({
|
|
1936
1936
|
fields: v == null ? void 0 : v.getFields(),
|
|
1937
1937
|
values: v.getPlainValues()
|
|
1938
1938
|
}),
|
|
@@ -1977,8 +1977,8 @@ const kt = ({
|
|
|
1977
1977
|
id: C,
|
|
1978
1978
|
operation: "pendingLink"
|
|
1979
1979
|
});
|
|
1980
|
-
}),
|
|
1981
|
-
},
|
|
1980
|
+
}), D($);
|
|
1981
|
+
}, V = (_) => {
|
|
1982
1982
|
const {
|
|
1983
1983
|
label: $,
|
|
1984
1984
|
closable: w,
|
|
@@ -2002,13 +2002,13 @@ const kt = ({
|
|
|
2002
2002
|
message: d,
|
|
2003
2003
|
type: "error",
|
|
2004
2004
|
banner: !0
|
|
2005
|
-
}) : /* @__PURE__ */ n(
|
|
2005
|
+
}) : /* @__PURE__ */ n(Z, {
|
|
2006
2006
|
children: /* @__PURE__ */ n("div", {
|
|
2007
2007
|
className: "flex flex-row",
|
|
2008
|
-
children: /* @__PURE__ */ n(
|
|
2008
|
+
children: /* @__PURE__ */ n(bt, {
|
|
2009
2009
|
mode: "multiple",
|
|
2010
2010
|
value: a.length ? s : [],
|
|
2011
|
-
tagRender:
|
|
2011
|
+
tagRender: V,
|
|
2012
2012
|
bordered: !h,
|
|
2013
2013
|
disabled: h,
|
|
2014
2014
|
options: a,
|
|
@@ -2124,14 +2124,14 @@ const kt = ({
|
|
|
2124
2124
|
if (i.push(a), s(l)) {
|
|
2125
2125
|
const d = r - o;
|
|
2126
2126
|
for (let u = 0; u < d; u += 1)
|
|
2127
|
-
i.push(new
|
|
2127
|
+
i.push(new Vt({ string: "" }));
|
|
2128
2128
|
}
|
|
2129
2129
|
}), i;
|
|
2130
2130
|
}, Ma = ({
|
|
2131
2131
|
row: e,
|
|
2132
2132
|
numberOfColumns: t
|
|
2133
2133
|
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), $a = (e, t) => {
|
|
2134
|
-
const r = e.map((i) => i instanceof
|
|
2134
|
+
const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ri ? "auto" : "1fr");
|
|
2135
2135
|
if (r.length < t) {
|
|
2136
2136
|
const i = t - r.length;
|
|
2137
2137
|
for (let o = 0; o < i; o++)
|
|
@@ -2167,7 +2167,7 @@ const kt = ({
|
|
|
2167
2167
|
row: h,
|
|
2168
2168
|
numberOfColumns: o,
|
|
2169
2169
|
mustFillWithEmpties: r
|
|
2170
|
-
}), l = l.concat(g)), g.map((v) => (v instanceof
|
|
2170
|
+
}), l = l.concat(g)), g.map((v) => (v instanceof Vt && v.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2171
2171
|
style: {
|
|
2172
2172
|
...Ra({
|
|
2173
2173
|
item: v,
|
|
@@ -2328,10 +2328,10 @@ const kt = ({
|
|
|
2328
2328
|
setCurrentItemIndex: g,
|
|
2329
2329
|
setResultsActionView: v,
|
|
2330
2330
|
resultsActionView: y,
|
|
2331
|
-
domain:
|
|
2331
|
+
domain: D,
|
|
2332
2332
|
currentId: O,
|
|
2333
2333
|
limit: b,
|
|
2334
|
-
setLimit:
|
|
2334
|
+
setLimit: V,
|
|
2335
2335
|
searchParams: _ = [],
|
|
2336
2336
|
setSearchValues: $
|
|
2337
2337
|
} = e, [w, C] = x(!1), [F, S] = x(!1), [L, T] = x(), [R, A] = x(1), [M, I] = x(0), [k, B] = x(), [j, U] = x([]), [W, z] = x(void 0), q = me(b || Pt), E = me([]), N = Re((oe) => {
|
|
@@ -2341,11 +2341,11 @@ const kt = ({
|
|
|
2341
2341
|
model: t,
|
|
2342
2342
|
payload: l,
|
|
2343
2343
|
limit: q.current,
|
|
2344
|
-
attrs:
|
|
2344
|
+
attrs: D,
|
|
2345
2345
|
context: u
|
|
2346
2346
|
});
|
|
2347
2347
|
if (B(oe.length), f == null || f(oe.length), oe.length > 0) {
|
|
2348
|
-
const Te = oe.map((He) => He == null ? void 0 : He[0]), { colors: ye } =
|
|
2348
|
+
const Te = oe.map((He) => He == null ? void 0 : He[0]), { colors: ye } = Ot(c), Fe = await H.getHandler().readEvalUiObjects({
|
|
2349
2349
|
model: t,
|
|
2350
2350
|
ids: Te,
|
|
2351
2351
|
arch: c == null ? void 0 : c.arch,
|
|
@@ -2356,7 +2356,7 @@ const kt = ({
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}), Be = Fe[0];
|
|
2358
2358
|
E.current = [...Be], z(Xt(Fe[1]));
|
|
2359
|
-
const Ne = Be.map((He) => He.id), Je = p !== void 0 ?
|
|
2359
|
+
const Ne = Be.map((He) => He.id), Je = p !== void 0 ? _t({
|
|
2360
2360
|
resultsToSort: Be,
|
|
2361
2361
|
sorter: p,
|
|
2362
2362
|
fields: { ...c.fields, ...m.fields }
|
|
@@ -2371,7 +2371,7 @@ const kt = ({
|
|
|
2371
2371
|
l,
|
|
2372
2372
|
t,
|
|
2373
2373
|
u,
|
|
2374
|
-
|
|
2374
|
+
D,
|
|
2375
2375
|
c,
|
|
2376
2376
|
m,
|
|
2377
2377
|
p,
|
|
@@ -2379,7 +2379,7 @@ const kt = ({
|
|
|
2379
2379
|
f
|
|
2380
2380
|
]), ce = Re(
|
|
2381
2381
|
async (oe) => {
|
|
2382
|
-
const { params: Te, newOffset: ye } = oe || {}, Fe = fn(Te || _,
|
|
2382
|
+
const { params: Te, newOffset: ye } = oe || {}, Fe = fn(Te || _, D), { colors: Be } = Ot(c), { totalItems: Ne, results: Je, attrsEvaluated: He } = await H.getHandler().searchForTree({
|
|
2383
2383
|
params: Fe,
|
|
2384
2384
|
limit: q.current,
|
|
2385
2385
|
offset: ye || M,
|
|
@@ -2389,7 +2389,7 @@ const kt = ({
|
|
|
2389
2389
|
attrs: Be && { colors: Be }
|
|
2390
2390
|
});
|
|
2391
2391
|
z(Xt(He)), E.current = [...Je];
|
|
2392
|
-
const Q = p !== void 0 ?
|
|
2392
|
+
const Q = p !== void 0 ? _t({
|
|
2393
2393
|
resultsToSort: Je,
|
|
2394
2394
|
sorter: p,
|
|
2395
2395
|
fields: { ...c.fields, ...m.fields }
|
|
@@ -2412,7 +2412,7 @@ const kt = ({
|
|
|
2412
2412
|
O,
|
|
2413
2413
|
t,
|
|
2414
2414
|
u,
|
|
2415
|
-
|
|
2415
|
+
D,
|
|
2416
2416
|
c,
|
|
2417
2417
|
m,
|
|
2418
2418
|
p,
|
|
@@ -2434,7 +2434,7 @@ const kt = ({
|
|
|
2434
2434
|
[
|
|
2435
2435
|
u,
|
|
2436
2436
|
O,
|
|
2437
|
-
|
|
2437
|
+
D,
|
|
2438
2438
|
m,
|
|
2439
2439
|
b,
|
|
2440
2440
|
t,
|
|
@@ -2457,7 +2457,7 @@ const kt = ({
|
|
|
2457
2457
|
if (JSON.stringify(oe) === JSON.stringify(p))
|
|
2458
2458
|
return;
|
|
2459
2459
|
h == null || h(oe);
|
|
2460
|
-
const Te = oe !== void 0 ?
|
|
2460
|
+
const Te = oe !== void 0 ? _t({
|
|
2461
2461
|
resultsToSort: ee(),
|
|
2462
2462
|
sorter: oe,
|
|
2463
2463
|
fields: { ...c.fields, ...m.fields }
|
|
@@ -2468,7 +2468,7 @@ const kt = ({
|
|
|
2468
2468
|
), we = Re(
|
|
2469
2469
|
(oe) => {
|
|
2470
2470
|
const { params: Te, searchValues: ye, limit: Fe, offset: Be } = oe;
|
|
2471
|
-
w || (r == null || r(void 0), i == null || i([]), $ == null || $(ye), o == null || o(Te), s == null || s(!1), S(!0), T(void 0), A(1), Fe && (q.current = Fe,
|
|
2471
|
+
w || (r == null || r(void 0), i == null || i([]), $ == null || $(ye), o == null || o(Te), s == null || s(!1), S(!0), T(void 0), A(1), Fe && (q.current = Fe, V == null || V(Fe)), Be && I(Be), ne({
|
|
2472
2472
|
params: Te,
|
|
2473
2473
|
newOffset: Be
|
|
2474
2474
|
}));
|
|
@@ -2482,7 +2482,7 @@ const kt = ({
|
|
|
2482
2482
|
S,
|
|
2483
2483
|
T,
|
|
2484
2484
|
A,
|
|
2485
|
-
|
|
2485
|
+
V,
|
|
2486
2486
|
I,
|
|
2487
2487
|
ne
|
|
2488
2488
|
]
|
|
@@ -2492,7 +2492,7 @@ const kt = ({
|
|
|
2492
2492
|
},
|
|
2493
2493
|
[C, b, I, A]
|
|
2494
2494
|
), Pe = Re(() => {
|
|
2495
|
-
w || (r == null || r(void 0), o == null || o([]), $ == null || $({}), T(void 0), I(0), A(1),
|
|
2495
|
+
w || (r == null || r(void 0), o == null || o([]), $ == null || $({}), T(void 0), I(0), A(1), V == null || V(b || Pt));
|
|
2496
2496
|
}, [
|
|
2497
2497
|
w,
|
|
2498
2498
|
r,
|
|
@@ -2500,7 +2500,7 @@ const kt = ({
|
|
|
2500
2500
|
T,
|
|
2501
2501
|
I,
|
|
2502
2502
|
A,
|
|
2503
|
-
|
|
2503
|
+
V,
|
|
2504
2504
|
b
|
|
2505
2505
|
]), fe = Re(
|
|
2506
2506
|
async (oe) => {
|
|
@@ -2510,7 +2510,7 @@ const kt = ({
|
|
|
2510
2510
|
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2511
2511
|
context: u
|
|
2512
2512
|
});
|
|
2513
|
-
return N([...ee(), ...ye]), oo(
|
|
2513
|
+
return N([...ee(), ...ye]), oo(Ot(c), ye);
|
|
2514
2514
|
},
|
|
2515
2515
|
[c, t, u, ee, N]
|
|
2516
2516
|
);
|
|
@@ -2550,10 +2550,10 @@ const kt = ({
|
|
|
2550
2550
|
currentModel: g,
|
|
2551
2551
|
sorter: v,
|
|
2552
2552
|
setSorter: y,
|
|
2553
|
-
totalItems:
|
|
2553
|
+
totalItems: D,
|
|
2554
2554
|
setTotalItems: O,
|
|
2555
2555
|
setSelectedRowItems: b,
|
|
2556
|
-
selectedRowItems:
|
|
2556
|
+
selectedRowItems: V,
|
|
2557
2557
|
searchTreeNameSearch: _,
|
|
2558
2558
|
setSearchTreeNameSearch: $,
|
|
2559
2559
|
goToResourceId: w,
|
|
@@ -2601,7 +2601,7 @@ const kt = ({
|
|
|
2601
2601
|
setTreeIsLoading: B,
|
|
2602
2602
|
attachments: j,
|
|
2603
2603
|
setAttachments: U,
|
|
2604
|
-
selectedRowItems:
|
|
2604
|
+
selectedRowItems: V,
|
|
2605
2605
|
setSelectedRowItems: b,
|
|
2606
2606
|
duplicatingItem: W,
|
|
2607
2607
|
setDuplicatingItem: z,
|
|
@@ -2611,7 +2611,7 @@ const kt = ({
|
|
|
2611
2611
|
setSearchVisible: ee,
|
|
2612
2612
|
sorter: v,
|
|
2613
2613
|
setSorter: y,
|
|
2614
|
-
totalItems:
|
|
2614
|
+
totalItems: D,
|
|
2615
2615
|
setTotalItems: O,
|
|
2616
2616
|
searchTreeNameSearch: _,
|
|
2617
2617
|
setSearchTreeNameSearch: $,
|
|
@@ -2657,7 +2657,7 @@ const kt = ({
|
|
|
2657
2657
|
},
|
|
2658
2658
|
children: t
|
|
2659
2659
|
});
|
|
2660
|
-
},
|
|
2660
|
+
}, Et = qe.createContext(null), vr = async (e) => {
|
|
2661
2661
|
var t;
|
|
2662
2662
|
for (let r = 0; r < e.length; r++)
|
|
2663
2663
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
@@ -2670,7 +2670,7 @@ const kt = ({
|
|
|
2670
2670
|
} = d || {}, f = me([]), {
|
|
2671
2671
|
t: c
|
|
2672
2672
|
} = K(ge);
|
|
2673
|
-
|
|
2673
|
+
wt(t, () => ({
|
|
2674
2674
|
openActionModal: b
|
|
2675
2675
|
}));
|
|
2676
2676
|
const [m, p] = x(!1), [h, g] = x({
|
|
@@ -2697,7 +2697,7 @@ const kt = ({
|
|
|
2697
2697
|
ids: I
|
|
2698
2698
|
} = R || {};
|
|
2699
2699
|
let k = I || [];
|
|
2700
|
-
const B = typeof L == "string" ?
|
|
2700
|
+
const B = typeof L == "string" ? yt({
|
|
2701
2701
|
context: L,
|
|
2702
2702
|
fields: C,
|
|
2703
2703
|
values: F
|
|
@@ -2727,14 +2727,14 @@ const kt = ({
|
|
|
2727
2727
|
id: $
|
|
2728
2728
|
}), w.state && s.current === !0) {
|
|
2729
2729
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
2730
|
-
const C = await
|
|
2730
|
+
const C = await Dt(w.result);
|
|
2731
2731
|
un(w.result, C.mime);
|
|
2732
2732
|
}
|
|
2733
2733
|
} catch (C) {
|
|
2734
2734
|
s.current = !1, clearInterval(o.current), l(!1), We(C.exception || C);
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
|
-
async function
|
|
2737
|
+
async function D({
|
|
2738
2738
|
actionData: $,
|
|
2739
2739
|
fields: w,
|
|
2740
2740
|
values: C,
|
|
@@ -2770,7 +2770,7 @@ const kt = ({
|
|
|
2770
2770
|
context: F
|
|
2771
2771
|
}))[0]);
|
|
2772
2772
|
const T = {
|
|
2773
|
-
...typeof (S == null ? void 0 : S.context) == "string" ?
|
|
2773
|
+
...typeof (S == null ? void 0 : S.context) == "string" ? yt({
|
|
2774
2774
|
context: S.context,
|
|
2775
2775
|
fields: w,
|
|
2776
2776
|
values: {
|
|
@@ -2783,7 +2783,7 @@ const kt = ({
|
|
|
2783
2783
|
let R = [];
|
|
2784
2784
|
if (S.domain && (R = await H.getHandler().evalDomain({
|
|
2785
2785
|
domain: S.domain,
|
|
2786
|
-
values:
|
|
2786
|
+
values: Rt({
|
|
2787
2787
|
fields: w,
|
|
2788
2788
|
values: {
|
|
2789
2789
|
...C,
|
|
@@ -2837,7 +2837,7 @@ const kt = ({
|
|
|
2837
2837
|
context: F,
|
|
2838
2838
|
actionData: S
|
|
2839
2839
|
}) {
|
|
2840
|
-
m ?
|
|
2840
|
+
m ? V({
|
|
2841
2841
|
domain: $,
|
|
2842
2842
|
model: w,
|
|
2843
2843
|
formView: C,
|
|
@@ -2851,7 +2851,7 @@ const kt = ({
|
|
|
2851
2851
|
actionData: S
|
|
2852
2852
|
}), p(!0));
|
|
2853
2853
|
}
|
|
2854
|
-
async function
|
|
2854
|
+
async function V({
|
|
2855
2855
|
domain: $,
|
|
2856
2856
|
model: w,
|
|
2857
2857
|
formView: C,
|
|
@@ -2881,13 +2881,13 @@ const kt = ({
|
|
|
2881
2881
|
actionData: void 0
|
|
2882
2882
|
});
|
|
2883
2883
|
}
|
|
2884
|
-
return /* @__PURE__ */ n(
|
|
2885
|
-
children: /* @__PURE__ */ n(
|
|
2884
|
+
return /* @__PURE__ */ n(Z, {
|
|
2885
|
+
children: /* @__PURE__ */ n(Et.Provider, {
|
|
2886
2886
|
value: {
|
|
2887
|
-
processAction:
|
|
2887
|
+
processAction: D,
|
|
2888
2888
|
globalValues: i
|
|
2889
2889
|
},
|
|
2890
|
-
children: /* @__PURE__ */ P(
|
|
2890
|
+
children: /* @__PURE__ */ P(Z, {
|
|
2891
2891
|
children: [r, /* @__PURE__ */ n(Ye, {
|
|
2892
2892
|
title: c("generatingReport"),
|
|
2893
2893
|
open: a,
|
|
@@ -2974,7 +2974,7 @@ async function tl({
|
|
|
2974
2974
|
initialView: a
|
|
2975
2975
|
};
|
|
2976
2976
|
}
|
|
2977
|
-
const nl =
|
|
2977
|
+
const nl = vt(el), rl = ({
|
|
2978
2978
|
error: e,
|
|
2979
2979
|
className: t
|
|
2980
2980
|
}) => {
|
|
@@ -3017,10 +3017,10 @@ function il(e, t) {
|
|
|
3017
3017
|
postSaveAction: g,
|
|
3018
3018
|
insideButtonModal: v = !1,
|
|
3019
3019
|
parentContext: y = {},
|
|
3020
|
-
actionDomain:
|
|
3020
|
+
actionDomain: D,
|
|
3021
3021
|
visible: O = !0,
|
|
3022
3022
|
rootForm: b = !1,
|
|
3023
|
-
defaultValues:
|
|
3023
|
+
defaultValues: V,
|
|
3024
3024
|
forcedValues: _ = {}
|
|
3025
3025
|
} = e, {
|
|
3026
3026
|
t: $,
|
|
@@ -3036,11 +3036,11 @@ function il(e, t) {
|
|
|
3036
3036
|
setAttachments: Fe = void 0,
|
|
3037
3037
|
title: Be = void 0,
|
|
3038
3038
|
setTitle: Ne = void 0
|
|
3039
|
-
} = (b ? Pe : {}) || {}, Je = K(
|
|
3039
|
+
} = (b ? Pe : {}) || {}, Je = K(Et), {
|
|
3040
3040
|
processAction: He,
|
|
3041
3041
|
globalValues: Q
|
|
3042
3042
|
} = Je || {};
|
|
3043
|
-
|
|
3043
|
+
wt(t, () => ({
|
|
3044
3044
|
submitForm: qt,
|
|
3045
3045
|
getFields: De,
|
|
3046
3046
|
getValues: ke,
|
|
@@ -3080,7 +3080,7 @@ function il(e, t) {
|
|
|
3080
3080
|
function ke() {
|
|
3081
3081
|
const G = {
|
|
3082
3082
|
...ie(k),
|
|
3083
|
-
...
|
|
3083
|
+
...X()
|
|
3084
3084
|
};
|
|
3085
3085
|
for (const Y in G)
|
|
3086
3086
|
G[Y] === void 0 && delete G[Y];
|
|
@@ -3108,7 +3108,7 @@ function il(e, t) {
|
|
|
3108
3108
|
...T == null ? void 0 : T.context
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function X() {
|
|
3112
3112
|
return {
|
|
3113
3113
|
id: se(),
|
|
3114
3114
|
active_id: se(),
|
|
@@ -3126,7 +3126,7 @@ function il(e, t) {
|
|
|
3126
3126
|
...y,
|
|
3127
3127
|
...Y
|
|
3128
3128
|
},
|
|
3129
|
-
extraValues:
|
|
3129
|
+
extraValues: V
|
|
3130
3130
|
});
|
|
3131
3131
|
}, Oe = () => Object.keys(xn({
|
|
3132
3132
|
source: N.current,
|
|
@@ -3134,11 +3134,11 @@ function il(e, t) {
|
|
|
3134
3134
|
fields: k
|
|
3135
3135
|
})).length !== 0, ie = (G) => {
|
|
3136
3136
|
const Y = A.getFieldsValue(!0);
|
|
3137
|
-
return
|
|
3137
|
+
return Ft(Y, G);
|
|
3138
3138
|
}, xe = (G, Y) => {
|
|
3139
3139
|
Ut({
|
|
3140
3140
|
values: {
|
|
3141
|
-
...
|
|
3141
|
+
...Ft(A.getFieldsValue(!0), k),
|
|
3142
3142
|
[G]: Y
|
|
3143
3143
|
},
|
|
3144
3144
|
fields: k,
|
|
@@ -3179,10 +3179,10 @@ function il(e, t) {
|
|
|
3179
3179
|
} = await Ao({
|
|
3180
3180
|
fields: te,
|
|
3181
3181
|
arch: re
|
|
3182
|
-
}),
|
|
3183
|
-
..._a(
|
|
3182
|
+
}), D && (Y = {
|
|
3183
|
+
..._a(D),
|
|
3184
3184
|
...Y
|
|
3185
|
-
}), N.current =
|
|
3185
|
+
}), N.current = Ft(Y, te), Ut({
|
|
3186
3186
|
values: Y,
|
|
3187
3187
|
fields: te,
|
|
3188
3188
|
reset: !0,
|
|
@@ -3224,7 +3224,7 @@ function il(e, t) {
|
|
|
3224
3224
|
const ht = {
|
|
3225
3225
|
...te ? {} : A.getFieldsValue(!0),
|
|
3226
3226
|
...G
|
|
3227
|
-
}, yn =
|
|
3227
|
+
}, yn = Ft(ht, Y), Wo = Object.keys(Y).map((vn) => {
|
|
3228
3228
|
const Yo = yn[vn] !== void 0 ? yn[vn] : void 0;
|
|
3229
3229
|
return {
|
|
3230
3230
|
name: vn,
|
|
@@ -3344,7 +3344,7 @@ function il(e, t) {
|
|
|
3344
3344
|
readOnly: f,
|
|
3345
3345
|
values: va({
|
|
3346
3346
|
...te,
|
|
3347
|
-
...
|
|
3347
|
+
...X()
|
|
3348
3348
|
}, G)
|
|
3349
3349
|
}), R(re), re.string && re.string !== Be && (Ne == null || Ne(re.string)), j && re.string && ((Ve = j.setTitle) == null || Ve.call(j, re.string));
|
|
3350
3350
|
}, gn = async ({
|
|
@@ -3365,7 +3365,7 @@ function il(e, t) {
|
|
|
3365
3365
|
}) && G !== !0)
|
|
3366
3366
|
return;
|
|
3367
3367
|
{
|
|
3368
|
-
const re =
|
|
3368
|
+
const re = Ft(A.getFieldsValue(!0), k);
|
|
3369
3369
|
ee.current = re, d == null || d(re), oe == null || oe(!0), Mo(te);
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
@@ -3461,7 +3461,7 @@ function il(e, t) {
|
|
|
3461
3461
|
de == null || de(se(), ke(), Ze());
|
|
3462
3462
|
else if (te.type) {
|
|
3463
3463
|
let re = {};
|
|
3464
|
-
te.context && (re =
|
|
3464
|
+
te.context && (re = yt({
|
|
3465
3465
|
context: te.context,
|
|
3466
3466
|
fields: k,
|
|
3467
3467
|
values: ke()
|
|
@@ -3554,12 +3554,12 @@ function il(e, t) {
|
|
|
3554
3554
|
We(re);
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
|
-
const jo = () => !T && !S ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(
|
|
3557
|
+
const jo = () => !T && !S ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(Z, {
|
|
3558
3558
|
children: /* @__PURE__ */ n(Gi, {
|
|
3559
3559
|
getValues: ke,
|
|
3560
3560
|
getPlainValues: tt,
|
|
3561
3561
|
getFields: De,
|
|
3562
|
-
domain:
|
|
3562
|
+
domain: D,
|
|
3563
3563
|
activeId: i,
|
|
3564
3564
|
activeModel: r,
|
|
3565
3565
|
setFieldValue: xe,
|
|
@@ -3584,7 +3584,7 @@ function il(e, t) {
|
|
|
3584
3584
|
})
|
|
3585
3585
|
})
|
|
3586
3586
|
})
|
|
3587
|
-
}), Ko = () => /* @__PURE__ */ P(
|
|
3587
|
+
}), Ko = () => /* @__PURE__ */ P(Z, {
|
|
3588
3588
|
children: [/* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
|
|
3589
3589
|
justify: "end",
|
|
3590
3590
|
children: /* @__PURE__ */ P(je, {
|
|
@@ -3598,7 +3598,7 @@ function il(e, t) {
|
|
|
3598
3598
|
}), /* @__PURE__ */ n(Ie, {
|
|
3599
3599
|
disabled: C || f,
|
|
3600
3600
|
loading: C,
|
|
3601
|
-
icon: /* @__PURE__ */ n(
|
|
3601
|
+
icon: /* @__PURE__ */ n(kt, {}),
|
|
3602
3602
|
onClick: async () => {
|
|
3603
3603
|
await qt();
|
|
3604
3604
|
},
|
|
@@ -3626,7 +3626,7 @@ function il(e, t) {
|
|
|
3626
3626
|
})
|
|
3627
3627
|
}) : null;
|
|
3628
3628
|
}
|
|
3629
|
-
const Yt =
|
|
3629
|
+
const Yt = vt(il), Gt = (e) => {
|
|
3630
3630
|
const {
|
|
3631
3631
|
visible: t,
|
|
3632
3632
|
id: r,
|
|
@@ -3646,11 +3646,11 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3646
3646
|
const {
|
|
3647
3647
|
action_id: O,
|
|
3648
3648
|
res_id: b,
|
|
3649
|
-
action_type:
|
|
3649
|
+
action_type: V,
|
|
3650
3650
|
view_id: _
|
|
3651
3651
|
} = l, $ = await H.getHandler().isShortcutFavorite({
|
|
3652
3652
|
action_id: O,
|
|
3653
|
-
action_type:
|
|
3653
|
+
action_type: V,
|
|
3654
3654
|
view_id: _,
|
|
3655
3655
|
res_id: b || !1
|
|
3656
3656
|
});
|
|
@@ -3665,19 +3665,19 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3665
3665
|
const {
|
|
3666
3666
|
action_id: O,
|
|
3667
3667
|
res_id: b,
|
|
3668
|
-
action_type:
|
|
3668
|
+
action_type: V,
|
|
3669
3669
|
view_id: _
|
|
3670
3670
|
} = l;
|
|
3671
3671
|
await H.getHandler().addFavourite({
|
|
3672
3672
|
action_id: O,
|
|
3673
|
-
action_type:
|
|
3673
|
+
action_type: V,
|
|
3674
3674
|
view_id: _,
|
|
3675
3675
|
res_id: b || !1
|
|
3676
3676
|
});
|
|
3677
3677
|
}
|
|
3678
3678
|
p(!m);
|
|
3679
3679
|
}
|
|
3680
|
-
function
|
|
3680
|
+
function D() {
|
|
3681
3681
|
return /* @__PURE__ */ P(Ce, {
|
|
3682
3682
|
align: "middle",
|
|
3683
3683
|
children: [/* @__PURE__ */ n(ae, {
|
|
@@ -3704,7 +3704,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3704
3704
|
return /* @__PURE__ */ n(Ka, {
|
|
3705
3705
|
setTitle: c,
|
|
3706
3706
|
children: /* @__PURE__ */ n(Ye, {
|
|
3707
|
-
title: a ?
|
|
3707
|
+
title: a ? D() : f,
|
|
3708
3708
|
centered: !0,
|
|
3709
3709
|
width: u,
|
|
3710
3710
|
open: t,
|
|
@@ -3742,9 +3742,9 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3742
3742
|
name: o + "#time",
|
|
3743
3743
|
label: ""
|
|
3744
3744
|
})];
|
|
3745
|
-
return /* @__PURE__ */ P(
|
|
3745
|
+
return /* @__PURE__ */ P(Z, {
|
|
3746
3746
|
children: [r && /* @__PURE__ */ n(cn, {
|
|
3747
|
-
ooui: new
|
|
3747
|
+
ooui: new Vt({
|
|
3748
3748
|
name: o + "_label",
|
|
3749
3749
|
string: i,
|
|
3750
3750
|
help: t.tooltip,
|
|
@@ -3867,9 +3867,9 @@ function dl(e) {
|
|
|
3867
3867
|
},
|
|
3868
3868
|
layout: "vertical"
|
|
3869
3869
|
});
|
|
3870
|
-
return /* @__PURE__ */ P(
|
|
3870
|
+
return /* @__PURE__ */ P(Z, {
|
|
3871
3871
|
children: [r && /* @__PURE__ */ n(cn, {
|
|
3872
|
-
ooui: new
|
|
3872
|
+
ooui: new Vt({
|
|
3873
3873
|
name: i + "_label",
|
|
3874
3874
|
string: o,
|
|
3875
3875
|
help: s,
|
|
@@ -3899,7 +3899,7 @@ const {
|
|
|
3899
3899
|
defaultSeed: fl
|
|
3900
3900
|
} = Me, ml = ul(fl), {
|
|
3901
3901
|
Option: hl
|
|
3902
|
-
} =
|
|
3902
|
+
} = bt, pl = (e) => {
|
|
3903
3903
|
const {
|
|
3904
3904
|
ooui: t
|
|
3905
3905
|
} = e, {
|
|
@@ -3931,7 +3931,7 @@ const {
|
|
|
3931
3931
|
value: p,
|
|
3932
3932
|
children: p
|
|
3933
3933
|
}, m);
|
|
3934
|
-
}), u = a && !s ? yl :
|
|
3934
|
+
}), u = a && !s ? yl : bt;
|
|
3935
3935
|
function f(c) {
|
|
3936
3936
|
const m = c.map((p) => {
|
|
3937
3937
|
const h = l.find(([g, v]) => p === v);
|
|
@@ -3951,7 +3951,7 @@ const {
|
|
|
3951
3951
|
showArrow: !0,
|
|
3952
3952
|
children: d
|
|
3953
3953
|
});
|
|
3954
|
-
}, yl = jt(
|
|
3954
|
+
}, yl = jt(bt)`
|
|
3955
3955
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3956
3956
|
background-color: ${ml.colorPrimaryBg};
|
|
3957
3957
|
}
|
|
@@ -4030,7 +4030,7 @@ function wl(e) {
|
|
|
4030
4030
|
onClick: t,
|
|
4031
4031
|
children: [r ? /* @__PURE__ */ n(si, {
|
|
4032
4032
|
className: "pr-1"
|
|
4033
|
-
}) : /* @__PURE__ */ n(
|
|
4033
|
+
}) : /* @__PURE__ */ n(At, {
|
|
4034
4034
|
className: "pr-1"
|
|
4035
4035
|
}), s(r ? "simple_search" : "advanced_search")]
|
|
4036
4036
|
})
|
|
@@ -4102,7 +4102,7 @@ function co(e) {
|
|
|
4102
4102
|
searchValues: m,
|
|
4103
4103
|
showLimitOptions: p = !0,
|
|
4104
4104
|
formXml: h
|
|
4105
|
-
} = e, [g, v] = x(), [y,
|
|
4105
|
+
} = e, [g, v] = x(), [y, D] = x(), [O, b] = x(!1), V = me(), {
|
|
4106
4106
|
token: _
|
|
4107
4107
|
} = xl(), [$] = it.useForm();
|
|
4108
4108
|
pe(() => {
|
|
@@ -4123,8 +4123,8 @@ function co(e) {
|
|
|
4123
4123
|
}, M))
|
|
4124
4124
|
}, R));
|
|
4125
4125
|
};
|
|
4126
|
-
|
|
4127
|
-
b(!1),
|
|
4126
|
+
xt(() => {
|
|
4127
|
+
b(!1), V.current = new oi(r, t, h), V.current.parse(), v(V.current._simpleSearchContainer), D(V.current._advancedSearchContainer);
|
|
4128
4128
|
}, [t, r]);
|
|
4129
4129
|
const C = w(), F = (S) => {
|
|
4130
4130
|
var A;
|
|
@@ -4133,7 +4133,7 @@ function co(e) {
|
|
|
4133
4133
|
offset: T
|
|
4134
4134
|
} = S;
|
|
4135
4135
|
delete S.offset, delete S.limit;
|
|
4136
|
-
const R = Wa(S, (A =
|
|
4136
|
+
const R = Wa(S, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
|
|
4137
4137
|
o({
|
|
4138
4138
|
params: R,
|
|
4139
4139
|
offset: T,
|
|
@@ -4321,8 +4321,8 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4321
4321
|
t: h
|
|
4322
4322
|
} = K(ge), g = K(at), {
|
|
4323
4323
|
openRelate: v
|
|
4324
|
-
} = g || {}, y = K(
|
|
4325
|
-
processAction:
|
|
4324
|
+
} = g || {}, y = K(Et), {
|
|
4325
|
+
processAction: D
|
|
4326
4326
|
} = y || {};
|
|
4327
4327
|
if (!t)
|
|
4328
4328
|
return null;
|
|
@@ -4345,7 +4345,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4345
4345
|
context: i
|
|
4346
4346
|
}))[0];
|
|
4347
4347
|
p({
|
|
4348
|
-
...
|
|
4348
|
+
...Ft(T, S),
|
|
4349
4349
|
active_id: t
|
|
4350
4350
|
}), u(!1);
|
|
4351
4351
|
} catch (F) {
|
|
@@ -4370,7 +4370,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4370
4370
|
children: L.name
|
|
4371
4371
|
}, L.id));
|
|
4372
4372
|
return /* @__PURE__ */ n($e, {
|
|
4373
|
-
onClick:
|
|
4373
|
+
onClick: V,
|
|
4374
4374
|
children: [/* @__PURE__ */ n($e.Item, {
|
|
4375
4375
|
disabled: !f.toolbar.action || f.toolbar.action.length === 0,
|
|
4376
4376
|
icon: /* @__PURE__ */ n(Hn, {}),
|
|
@@ -4380,7 +4380,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4380
4380
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
4381
4381
|
children: h("report")
|
|
4382
4382
|
}, "print"), /* @__PURE__ */ n($e.Divider, {}), /* @__PURE__ */ n($e.ItemGroup, {
|
|
4383
|
-
title: /* @__PURE__ */ P(
|
|
4383
|
+
title: /* @__PURE__ */ P(Z, {
|
|
4384
4384
|
children: [/* @__PURE__ */ n(Pr, {}), " ", /* @__PURE__ */ P("span", {
|
|
4385
4385
|
children: [" ", h("related")]
|
|
4386
4386
|
})]
|
|
@@ -4389,7 +4389,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4389
4389
|
})]
|
|
4390
4390
|
});
|
|
4391
4391
|
}
|
|
4392
|
-
function
|
|
4392
|
+
function V(F) {
|
|
4393
4393
|
if (F.key === "action")
|
|
4394
4394
|
s(!0);
|
|
4395
4395
|
else if (F.key === "print")
|
|
@@ -4408,7 +4408,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
4410
4410
|
function _(F) {
|
|
4411
|
-
s(!1),
|
|
4411
|
+
s(!1), D == null || D({
|
|
4412
4412
|
actionData: F,
|
|
4413
4413
|
values: m,
|
|
4414
4414
|
fields: f.fields,
|
|
@@ -4419,7 +4419,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4419
4419
|
});
|
|
4420
4420
|
}
|
|
4421
4421
|
function $(F) {
|
|
4422
|
-
l(!1),
|
|
4422
|
+
l(!1), D == null || D({
|
|
4423
4423
|
actionData: {
|
|
4424
4424
|
...F,
|
|
4425
4425
|
datas: {
|
|
@@ -4431,7 +4431,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4431
4431
|
fields: f.fields
|
|
4432
4432
|
});
|
|
4433
4433
|
}
|
|
4434
|
-
return /* @__PURE__ */ P(
|
|
4434
|
+
return /* @__PURE__ */ P(Z, {
|
|
4435
4435
|
children: [/* @__PURE__ */ n(Bt, {
|
|
4436
4436
|
overlay: b(),
|
|
4437
4437
|
trigger: ["click"],
|
|
@@ -4460,13 +4460,13 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4460
4460
|
m2oField: t
|
|
4461
4461
|
} = e;
|
|
4462
4462
|
return t ? /* @__PURE__ */ P(je, {
|
|
4463
|
-
children: [/* @__PURE__ */ n(
|
|
4463
|
+
children: [/* @__PURE__ */ n(Z, {
|
|
4464
4464
|
children: t.value
|
|
4465
4465
|
}), /* @__PURE__ */ n(Jn, {
|
|
4466
4466
|
id: t.id,
|
|
4467
4467
|
model: t.model
|
|
4468
4468
|
})]
|
|
4469
|
-
}) : /* @__PURE__ */ n(
|
|
4469
|
+
}) : /* @__PURE__ */ n(Z, {});
|
|
4470
4470
|
}, _l = (e) => {
|
|
4471
4471
|
const {
|
|
4472
4472
|
value: t,
|
|
@@ -4487,14 +4487,14 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
|
4487
4487
|
if (pe(() => {
|
|
4488
4488
|
c();
|
|
4489
4489
|
}, [t]), !t && !a)
|
|
4490
|
-
return /* @__PURE__ */ n(
|
|
4490
|
+
return /* @__PURE__ */ n(Z, {});
|
|
4491
4491
|
if (a)
|
|
4492
4492
|
return /* @__PURE__ */ n(et, {});
|
|
4493
4493
|
const m = i.get(d);
|
|
4494
4494
|
return /* @__PURE__ */ P(je, {
|
|
4495
|
-
children: [/* @__PURE__ */ n(
|
|
4495
|
+
children: [/* @__PURE__ */ n(Z, {
|
|
4496
4496
|
children: `${m}:`
|
|
4497
|
-
}), /* @__PURE__ */ n(
|
|
4497
|
+
}), /* @__PURE__ */ n(Z, {
|
|
4498
4498
|
children: o
|
|
4499
4499
|
}), /* @__PURE__ */ n(Jn, {
|
|
4500
4500
|
id: f,
|
|
@@ -4506,8 +4506,8 @@ var mo = { exports: {} };
|
|
|
4506
4506
|
(function(e, t) {
|
|
4507
4507
|
(function(r, i) {
|
|
4508
4508
|
e.exports = i();
|
|
4509
|
-
})(
|
|
4510
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter", p = "year", h = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
4509
|
+
})(gt, function() {
|
|
4510
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter", p = "year", h = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
4511
4511
|
var R = ["th", "st", "nd", "rd"], A = T % 100;
|
|
4512
4512
|
return "[" + T + (R[(A - 20) % 10] || R[A] || R[0]) + "]";
|
|
4513
4513
|
} }, O = function(T, R, A) {
|
|
@@ -4527,14 +4527,14 @@ var mo = { exports: {} };
|
|
|
4527
4527
|
return { M: c, y: p, w: f, d: u, D: h, h: d, m: l, s: a, ms: s, Q: m }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4528
4528
|
}, u: function(T) {
|
|
4529
4529
|
return T === void 0;
|
|
4530
|
-
} },
|
|
4531
|
-
_[
|
|
4530
|
+
} }, V = "en", _ = {};
|
|
4531
|
+
_[V] = D;
|
|
4532
4532
|
var $ = function(T) {
|
|
4533
4533
|
return T instanceof S;
|
|
4534
4534
|
}, w = function T(R, A, M) {
|
|
4535
4535
|
var I;
|
|
4536
4536
|
if (!R)
|
|
4537
|
-
return
|
|
4537
|
+
return V;
|
|
4538
4538
|
if (typeof R == "string") {
|
|
4539
4539
|
var k = R.toLowerCase();
|
|
4540
4540
|
_[k] && (I = k), A && (_[k] = A, I = k);
|
|
@@ -4545,7 +4545,7 @@ var mo = { exports: {} };
|
|
|
4545
4545
|
var j = R.name;
|
|
4546
4546
|
_[j] = R, I = j;
|
|
4547
4547
|
}
|
|
4548
|
-
return !M && I && (
|
|
4548
|
+
return !M && I && (V = I), I || !M && V;
|
|
4549
4549
|
}, C = function(T, R) {
|
|
4550
4550
|
if ($(T))
|
|
4551
4551
|
return T.clone();
|
|
@@ -4707,10 +4707,10 @@ var mo = { exports: {} };
|
|
|
4707
4707
|
return T.$i || (T(R, S, C), T.$i = !0), C;
|
|
4708
4708
|
}, C.locale = w, C.isDayjs = $, C.unix = function(T) {
|
|
4709
4709
|
return C(1e3 * T);
|
|
4710
|
-
}, C.en = _[
|
|
4710
|
+
}, C.en = _[V], C.Ls = _, C.p = {}, C;
|
|
4711
4711
|
});
|
|
4712
4712
|
})(mo);
|
|
4713
|
-
const
|
|
4713
|
+
const Ct = mo.exports, Il = (e) => {
|
|
4714
4714
|
console.log("Avatar Props", e);
|
|
4715
4715
|
const {
|
|
4716
4716
|
ooui: t,
|
|
@@ -4736,7 +4736,7 @@ var ho = { exports: {} };
|
|
|
4736
4736
|
(function(e, t) {
|
|
4737
4737
|
(function(r, i) {
|
|
4738
4738
|
e.exports = i();
|
|
4739
|
-
})(
|
|
4739
|
+
})(gt, function() {
|
|
4740
4740
|
return function(r, i) {
|
|
4741
4741
|
i.prototype.weekday = function(o) {
|
|
4742
4742
|
var s = this.$locale().weekStart || 0, a = this.$W, l = (a < s ? a + 7 : a) - s;
|
|
@@ -4750,18 +4750,18 @@ var po = { exports: {} };
|
|
|
4750
4750
|
(function(e, t) {
|
|
4751
4751
|
(function(r, i) {
|
|
4752
4752
|
e.exports = i();
|
|
4753
|
-
})(
|
|
4753
|
+
})(gt, function() {
|
|
4754
4754
|
return function(r, i, o) {
|
|
4755
4755
|
var s = i.prototype, a = function(c) {
|
|
4756
4756
|
return c && (c.indexOf ? c : c.s);
|
|
4757
4757
|
}, l = function(c, m, p, h, g) {
|
|
4758
|
-
var v = c.name ? c : c.$locale(), y = a(v[m]),
|
|
4759
|
-
return
|
|
4758
|
+
var v = c.name ? c : c.$locale(), y = a(v[m]), D = a(v[p]), O = y || D.map(function(V) {
|
|
4759
|
+
return V.slice(0, h);
|
|
4760
4760
|
});
|
|
4761
4761
|
if (!g)
|
|
4762
4762
|
return O;
|
|
4763
4763
|
var b = v.weekStart;
|
|
4764
|
-
return O.map(function(
|
|
4764
|
+
return O.map(function(V, _) {
|
|
4765
4765
|
return O[(_ + (b || 0)) % 7];
|
|
4766
4766
|
});
|
|
4767
4767
|
}, d = function() {
|
|
@@ -4826,8 +4826,8 @@ var po = { exports: {} };
|
|
|
4826
4826
|
const Vl = po.exports, {
|
|
4827
4827
|
useToken: Al
|
|
4828
4828
|
} = Me;
|
|
4829
|
-
|
|
4830
|
-
|
|
4829
|
+
Ct.extend(Dl);
|
|
4830
|
+
Ct.extend(Vl);
|
|
4831
4831
|
const lt = {
|
|
4832
4832
|
date: {
|
|
4833
4833
|
placeholder: "__/__/____",
|
|
@@ -4876,7 +4876,7 @@ const lt = {
|
|
|
4876
4876
|
return;
|
|
4877
4877
|
}
|
|
4878
4878
|
c(h.format(lt[f].dateInternalFormat));
|
|
4879
|
-
}, p = t ?
|
|
4879
|
+
}, p = t ? Ct(t, lt[f].dateInternalFormat) : void 0;
|
|
4880
4880
|
return /* @__PURE__ */ n(Rn, {
|
|
4881
4881
|
style: {
|
|
4882
4882
|
width: "100%",
|
|
@@ -4907,26 +4907,26 @@ const lt = {
|
|
|
4907
4907
|
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4908
4908
|
}), $l = (e) => {
|
|
4909
4909
|
if (!e || e && e.length === 0)
|
|
4910
|
-
return /* @__PURE__ */ n(
|
|
4911
|
-
const t =
|
|
4912
|
-
return /* @__PURE__ */ n(
|
|
4910
|
+
return /* @__PURE__ */ n(Z, {});
|
|
4911
|
+
const t = Ct(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4912
|
+
return /* @__PURE__ */ n(Z, {
|
|
4913
4913
|
children: t
|
|
4914
4914
|
});
|
|
4915
4915
|
}, Nl = (e) => {
|
|
4916
4916
|
if (!e || e && e.length === 0)
|
|
4917
|
-
return /* @__PURE__ */ n(
|
|
4918
|
-
const t =
|
|
4919
|
-
return /* @__PURE__ */ n(
|
|
4917
|
+
return /* @__PURE__ */ n(Z, {});
|
|
4918
|
+
const t = Ct(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
4919
|
+
return /* @__PURE__ */ n(Z, {
|
|
4920
4920
|
children: t
|
|
4921
4921
|
});
|
|
4922
4922
|
}, xr = (e) => {
|
|
4923
4923
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4924
|
-
return /* @__PURE__ */ n(
|
|
4924
|
+
return /* @__PURE__ */ n(Z, {
|
|
4925
4925
|
children: `( ${t} )`
|
|
4926
4926
|
});
|
|
4927
4927
|
}, Ll = (e) => /* @__PURE__ */ n(fo, {
|
|
4928
4928
|
value: e
|
|
4929
|
-
}), Pl = (e) => /* @__PURE__ */ n(
|
|
4929
|
+
}), Pl = (e) => /* @__PURE__ */ n(Z, {
|
|
4930
4930
|
children: uo(e)
|
|
4931
4931
|
}), Cr = (e) => /* @__PURE__ */ n("div", {
|
|
4932
4932
|
style: {
|
|
@@ -4939,14 +4939,14 @@ const lt = {
|
|
|
4939
4939
|
maxWidth: "50px",
|
|
4940
4940
|
padding: "5px"
|
|
4941
4941
|
}
|
|
4942
|
-
}), Hl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4942
|
+
}), Hl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4943
4943
|
children: e ? /* @__PURE__ */ n(kn, {
|
|
4944
4944
|
color: r.colors[e],
|
|
4945
4945
|
children: r.selectionValues.get(e)
|
|
4946
4946
|
}) : null
|
|
4947
|
-
}), jl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4947
|
+
}), jl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4948
4948
|
children: r.selectionValues.get(e)
|
|
4949
|
-
}), Kl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4949
|
+
}), Kl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4950
4950
|
children: /* @__PURE__ */ n(_l, {
|
|
4951
4951
|
value: e,
|
|
4952
4952
|
selectionValues: r.selectionValues,
|
|
@@ -4975,15 +4975,15 @@ function mn(e) {
|
|
|
4975
4975
|
onFetchChildrenForRecord: g,
|
|
4976
4976
|
childField: v,
|
|
4977
4977
|
rootTree: y = !1,
|
|
4978
|
-
context:
|
|
4979
|
-
} = e, [O, b] = x([]), [
|
|
4978
|
+
context: D
|
|
4979
|
+
} = e, [O, b] = x([]), [V, _] = x([]), $ = me(!1), w = me(null), {
|
|
4980
4980
|
t: C
|
|
4981
4981
|
} = K(ge), F = me(r), S = K(Xe), {
|
|
4982
4982
|
title: L = void 0,
|
|
4983
4983
|
setTitle: T = void 0
|
|
4984
4984
|
} = (y ? S : {}) || {};
|
|
4985
4985
|
pe(() => {
|
|
4986
|
-
w.current =
|
|
4986
|
+
w.current = Ot(o);
|
|
4987
4987
|
const U = ga(w.current, {
|
|
4988
4988
|
boolean: Rl,
|
|
4989
4989
|
many2one: El,
|
|
@@ -5001,7 +5001,7 @@ function mn(e) {
|
|
|
5001
5001
|
date: $l,
|
|
5002
5002
|
datetime: Nl,
|
|
5003
5003
|
avatar: Wl
|
|
5004
|
-
},
|
|
5004
|
+
}, D);
|
|
5005
5005
|
_(U), w.current.string && L !== w.current.string && (T == null || T(w.current.string));
|
|
5006
5006
|
}, [o]), pe(() => {
|
|
5007
5007
|
$.current = !1;
|
|
@@ -5047,7 +5047,7 @@ function mn(e) {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
let B, j = c;
|
|
5049
5049
|
if (w.current !== null) {
|
|
5050
|
-
B = Cl(
|
|
5050
|
+
B = Cl(V, O, 600);
|
|
5051
5051
|
const W = w.current;
|
|
5052
5052
|
c && W.columns.some((z) => z.sum !== void 0) && (j = c - 30);
|
|
5053
5053
|
}
|
|
@@ -5097,9 +5097,9 @@ function Yl(e, t) {
|
|
|
5097
5097
|
rootTree: f = !1,
|
|
5098
5098
|
parentContext: c = {},
|
|
5099
5099
|
onChangeSelectedRowKeys: m
|
|
5100
|
-
} = e, [p, h] = x(!1), [g, v] = x(!1), y = me(!1), [
|
|
5100
|
+
} = e, [p, h] = x(!1), [g, v] = x(!1), y = me(!1), [D, O] = x(), [b, V] = x(), [_, $] = x(), [w, C] = x(), [F, S] = x(200), L = me(), {
|
|
5101
5101
|
height: T
|
|
5102
|
-
} = dn(), R = K(
|
|
5102
|
+
} = dn(), R = K(Et), {
|
|
5103
5103
|
processAction: A
|
|
5104
5104
|
} = R || {}, M = K(Xe), {
|
|
5105
5105
|
setResults: I = void 0,
|
|
@@ -5137,7 +5137,7 @@ function Yl(e, t) {
|
|
|
5137
5137
|
colorsForResults: se,
|
|
5138
5138
|
totalItems: De
|
|
5139
5139
|
} = ao({
|
|
5140
|
-
model:
|
|
5140
|
+
model: D,
|
|
5141
5141
|
setSearchTreeNameSearch: ne,
|
|
5142
5142
|
setSelectedRowItems: W,
|
|
5143
5143
|
setSearchParams: q,
|
|
@@ -5161,7 +5161,7 @@ function Yl(e, t) {
|
|
|
5161
5161
|
limit: Pe,
|
|
5162
5162
|
setLimit: fe
|
|
5163
5163
|
});
|
|
5164
|
-
|
|
5164
|
+
wt(t, () => ({
|
|
5165
5165
|
refreshResults: () => {
|
|
5166
5166
|
y.current = !1, ye();
|
|
5167
5167
|
},
|
|
@@ -5175,9 +5175,9 @@ function Yl(e, t) {
|
|
|
5175
5175
|
try {
|
|
5176
5176
|
await tt(), v(!0);
|
|
5177
5177
|
} catch (he) {
|
|
5178
|
-
C(he);
|
|
5178
|
+
C(he), J == null || J(!1);
|
|
5179
5179
|
} finally {
|
|
5180
|
-
h(!1)
|
|
5180
|
+
h(!1);
|
|
5181
5181
|
}
|
|
5182
5182
|
}, tt = async () => {
|
|
5183
5183
|
O(r);
|
|
@@ -5192,7 +5192,7 @@ function Yl(e, t) {
|
|
|
5192
5192
|
model: r,
|
|
5193
5193
|
type: "tree",
|
|
5194
5194
|
context: c
|
|
5195
|
-
})), $(he),
|
|
5195
|
+
})), $(he), V(Ke);
|
|
5196
5196
|
};
|
|
5197
5197
|
pe(() => {
|
|
5198
5198
|
ke();
|
|
@@ -5205,7 +5205,7 @@ function Yl(e, t) {
|
|
|
5205
5205
|
} = he;
|
|
5206
5206
|
L.current || (L.current = await H.getHandler().treeButOpen({
|
|
5207
5207
|
id: b.view_id,
|
|
5208
|
-
model:
|
|
5208
|
+
model: D,
|
|
5209
5209
|
context: c
|
|
5210
5210
|
}));
|
|
5211
5211
|
const rt = L.current[0][2];
|
|
@@ -5218,7 +5218,7 @@ function Yl(e, t) {
|
|
|
5218
5218
|
},
|
|
5219
5219
|
context: c
|
|
5220
5220
|
}));
|
|
5221
|
-
},
|
|
5221
|
+
}, X = async (he) => {
|
|
5222
5222
|
const {
|
|
5223
5223
|
id: Ke
|
|
5224
5224
|
} = he;
|
|
@@ -5232,7 +5232,7 @@ function Yl(e, t) {
|
|
|
5232
5232
|
}
|
|
5233
5233
|
s({
|
|
5234
5234
|
id: Ke,
|
|
5235
|
-
model:
|
|
5235
|
+
model: D,
|
|
5236
5236
|
formView: _,
|
|
5237
5237
|
treeView: b
|
|
5238
5238
|
});
|
|
@@ -5244,7 +5244,7 @@ function Yl(e, t) {
|
|
|
5244
5244
|
function Oe() {
|
|
5245
5245
|
return b != null && b.isExpandable ? T - 160 : T - (F + 210);
|
|
5246
5246
|
}
|
|
5247
|
-
const ie = () => !b || !_ ? null : /* @__PURE__ */ P(
|
|
5247
|
+
const ie = () => !b || !_ ? null : /* @__PURE__ */ P(Z, {
|
|
5248
5248
|
children: [/* @__PURE__ */ n(co, {
|
|
5249
5249
|
fields: {
|
|
5250
5250
|
...b.fields,
|
|
@@ -5271,7 +5271,7 @@ function Yl(e, t) {
|
|
|
5271
5271
|
results: Q(),
|
|
5272
5272
|
onRequestPageChange: de,
|
|
5273
5273
|
loading: Fe,
|
|
5274
|
-
onRowClicked:
|
|
5274
|
+
onRowClicked: X,
|
|
5275
5275
|
scrollY: l || Oe(),
|
|
5276
5276
|
colorsForResults: se,
|
|
5277
5277
|
rowSelection: {
|
|
@@ -5297,7 +5297,7 @@ function Yl(e, t) {
|
|
|
5297
5297
|
children: p ? /* @__PURE__ */ n(Ae, {}) : ie()
|
|
5298
5298
|
});
|
|
5299
5299
|
}
|
|
5300
|
-
const yo =
|
|
5300
|
+
const yo = vt(Yl), vo = (e) => {
|
|
5301
5301
|
const {
|
|
5302
5302
|
visible: t,
|
|
5303
5303
|
onCloseModal: r,
|
|
@@ -5326,7 +5326,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5326
5326
|
}
|
|
5327
5327
|
i(p);
|
|
5328
5328
|
}
|
|
5329
|
-
const
|
|
5329
|
+
const D = () => /* @__PURE__ */ P(Z, {
|
|
5330
5330
|
children: [/* @__PURE__ */ n(yo, {
|
|
5331
5331
|
model: o,
|
|
5332
5332
|
nameSearch: s,
|
|
@@ -5347,7 +5347,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5347
5347
|
},
|
|
5348
5348
|
children: m("new")
|
|
5349
5349
|
}), /* @__PURE__ */ n(Ie, {
|
|
5350
|
-
icon: /* @__PURE__ */ n(
|
|
5350
|
+
icon: /* @__PURE__ */ n(kt, {}),
|
|
5351
5351
|
onClick: () => {
|
|
5352
5352
|
y();
|
|
5353
5353
|
},
|
|
@@ -5361,7 +5361,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5361
5361
|
})
|
|
5362
5362
|
})]
|
|
5363
5363
|
});
|
|
5364
|
-
return /* @__PURE__ */ P(
|
|
5364
|
+
return /* @__PURE__ */ P(Z, {
|
|
5365
5365
|
children: [/* @__PURE__ */ n(Ye, {
|
|
5366
5366
|
title: m("search"),
|
|
5367
5367
|
centered: !0,
|
|
@@ -5372,7 +5372,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5372
5372
|
footer: null,
|
|
5373
5373
|
destroyOnClose: !0,
|
|
5374
5374
|
maskClosable: !1,
|
|
5375
|
-
children:
|
|
5375
|
+
children: D()
|
|
5376
5376
|
}), /* @__PURE__ */ n(Gt, {
|
|
5377
5377
|
model: o,
|
|
5378
5378
|
visible: d,
|
|
@@ -5433,7 +5433,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5433
5433
|
domain: u
|
|
5434
5434
|
} = i, f = o && !a ? {
|
|
5435
5435
|
backgroundColor: wo.colorPrimaryBg
|
|
5436
|
-
} : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y,
|
|
5436
|
+
} : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, D] = x(), O = me(!1), [b, V] = x(""), _ = me(), $ = K(Ee), {
|
|
5437
5437
|
domain: w,
|
|
5438
5438
|
getValues: C,
|
|
5439
5439
|
getFields: F,
|
|
@@ -5443,7 +5443,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5443
5443
|
pe(() => {
|
|
5444
5444
|
!Array.isArray(t) && t && W(t);
|
|
5445
5445
|
}, [t]), pe(() => {
|
|
5446
|
-
M && I.length === 0 ? W(M) : M && I.length > 0 ?
|
|
5446
|
+
M && I.length === 0 ? W(M) : M && I.length > 0 ? V(I) : !M && !I && V(_.current || "");
|
|
5447
5447
|
}, [t]);
|
|
5448
5448
|
const k = (N) => {
|
|
5449
5449
|
r == null || r(N), L == null || L();
|
|
@@ -5487,10 +5487,10 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5487
5487
|
},
|
|
5488
5488
|
totalItems: 2
|
|
5489
5489
|
});
|
|
5490
|
-
ee.length === 1 ? W(ee[0]) : (
|
|
5490
|
+
ee.length === 1 ? W(ee[0]) : (D(N), m(!0));
|
|
5491
5491
|
return;
|
|
5492
5492
|
}
|
|
5493
|
-
|
|
5493
|
+
D(N), m(!0);
|
|
5494
5494
|
}, W = async (N) => {
|
|
5495
5495
|
v(!0);
|
|
5496
5496
|
try {
|
|
@@ -5513,7 +5513,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5513
5513
|
async function z() {
|
|
5514
5514
|
u && (T.current = await H.getHandler().evalDomain({
|
|
5515
5515
|
domain: u,
|
|
5516
|
-
values:
|
|
5516
|
+
values: Rt({
|
|
5517
5517
|
fields: F(),
|
|
5518
5518
|
values: C()
|
|
5519
5519
|
}),
|
|
@@ -5651,7 +5651,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5651
5651
|
field: u,
|
|
5652
5652
|
operator: f,
|
|
5653
5653
|
manualIds: c
|
|
5654
|
-
} = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [
|
|
5654
|
+
} = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [D, O] = x(), [b, V] = x(0), [_, $] = x(0), [w, C] = x(), [F, S] = x(), [L, T] = x();
|
|
5655
5655
|
pe(() => {
|
|
5656
5656
|
M();
|
|
5657
5657
|
}, [t, o]);
|
|
@@ -5776,13 +5776,13 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5776
5776
|
bounds: !0,
|
|
5777
5777
|
onResize: (I) => {
|
|
5778
5778
|
var k, B;
|
|
5779
|
-
|
|
5779
|
+
V((k = I.bounds) == null ? void 0 : k.height), $((B = I.bounds) == null ? void 0 : B.width);
|
|
5780
5780
|
},
|
|
5781
5781
|
children: ({
|
|
5782
5782
|
measureRef: I
|
|
5783
5783
|
}) => a ? /* @__PURE__ */ n(ec, {
|
|
5784
5784
|
value: h,
|
|
5785
|
-
total:
|
|
5785
|
+
total: D,
|
|
5786
5786
|
percent: v,
|
|
5787
5787
|
measureRef: I,
|
|
5788
5788
|
height: b,
|
|
@@ -5792,7 +5792,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5792
5792
|
suffix: d
|
|
5793
5793
|
}) : /* @__PURE__ */ n(Ql, {
|
|
5794
5794
|
value: h,
|
|
5795
|
-
total:
|
|
5795
|
+
total: D,
|
|
5796
5796
|
measureRef: I,
|
|
5797
5797
|
height: b,
|
|
5798
5798
|
width: _,
|
|
@@ -5933,7 +5933,7 @@ const Cn = (e) => (t) => {
|
|
|
5933
5933
|
});
|
|
5934
5934
|
if (rc(e)) {
|
|
5935
5935
|
const t = oc(e);
|
|
5936
|
-
return t === null ? e :
|
|
5936
|
+
return t === null ? e : Ct(e, rn.input[t]).format(
|
|
5937
5937
|
rn.output[t]
|
|
5938
5938
|
);
|
|
5939
5939
|
} else
|
|
@@ -6041,7 +6041,7 @@ const rn = {
|
|
|
6041
6041
|
};
|
|
6042
6042
|
function oc(e) {
|
|
6043
6043
|
for (const t in rn.input)
|
|
6044
|
-
if (
|
|
6044
|
+
if (Ct(
|
|
6045
6045
|
e,
|
|
6046
6046
|
rn.input[t],
|
|
6047
6047
|
!0
|
|
@@ -6063,25 +6063,25 @@ const {
|
|
|
6063
6063
|
uninformedString: a,
|
|
6064
6064
|
manualIds: l
|
|
6065
6065
|
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), [h, g] = x(), [v, y] = x("line");
|
|
6066
|
-
return
|
|
6066
|
+
return xt(() => {
|
|
6067
6067
|
(async () => {
|
|
6068
6068
|
u(!0), c(void 0);
|
|
6069
|
-
const
|
|
6070
|
-
y(
|
|
6069
|
+
const D = $n(o);
|
|
6070
|
+
y(D.type || "line");
|
|
6071
6071
|
const O = sc({
|
|
6072
|
-
ooui:
|
|
6072
|
+
ooui: D
|
|
6073
6073
|
});
|
|
6074
|
-
let b,
|
|
6074
|
+
let b, V;
|
|
6075
6075
|
try {
|
|
6076
6076
|
({
|
|
6077
6077
|
values: b,
|
|
6078
|
-
fields:
|
|
6078
|
+
fields: V
|
|
6079
6079
|
} = await cc({
|
|
6080
6080
|
model: t,
|
|
6081
6081
|
domain: r,
|
|
6082
6082
|
context: i,
|
|
6083
6083
|
limit: s,
|
|
6084
|
-
order:
|
|
6084
|
+
order: D.timerange ? D.x.name : null,
|
|
6085
6085
|
fields: O,
|
|
6086
6086
|
manualIds: l
|
|
6087
6087
|
}));
|
|
@@ -6090,15 +6090,15 @@ const {
|
|
|
6090
6090
|
return;
|
|
6091
6091
|
}
|
|
6092
6092
|
try {
|
|
6093
|
-
if (!b || !
|
|
6093
|
+
if (!b || !V) {
|
|
6094
6094
|
c("No values or fields returned"), u(!1);
|
|
6095
6095
|
return;
|
|
6096
6096
|
}
|
|
6097
6097
|
g(b);
|
|
6098
6098
|
const _ = ic({
|
|
6099
|
-
ooui:
|
|
6099
|
+
ooui: D,
|
|
6100
6100
|
values: b,
|
|
6101
|
-
fields:
|
|
6101
|
+
fields: V,
|
|
6102
6102
|
options: {
|
|
6103
6103
|
uninformedString: a
|
|
6104
6104
|
}
|
|
@@ -6234,7 +6234,7 @@ const dc = {
|
|
|
6234
6234
|
isStack: g
|
|
6235
6235
|
})
|
|
6236
6236
|
})]
|
|
6237
|
-
}) : /* @__PURE__ */ n(
|
|
6237
|
+
}) : /* @__PURE__ */ n(Z, {
|
|
6238
6238
|
children: `Unknown graph type: ${c}`
|
|
6239
6239
|
});
|
|
6240
6240
|
};
|
|
@@ -6259,7 +6259,7 @@ const mc = (e, t) => {
|
|
|
6259
6259
|
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), h = K(Xe), {
|
|
6260
6260
|
setGraphIsLoading: g = void 0
|
|
6261
6261
|
} = h || {};
|
|
6262
|
-
|
|
6262
|
+
wt(t, () => ({
|
|
6263
6263
|
refresh: () => {
|
|
6264
6264
|
v();
|
|
6265
6265
|
}
|
|
@@ -6276,10 +6276,10 @@ const mc = (e, t) => {
|
|
|
6276
6276
|
context: o
|
|
6277
6277
|
});
|
|
6278
6278
|
p(y.arch);
|
|
6279
|
-
const
|
|
6280
|
-
c(
|
|
6279
|
+
const D = $n(y.arch);
|
|
6280
|
+
c(D);
|
|
6281
6281
|
} catch (y) {
|
|
6282
|
-
return console.error(y), /* @__PURE__ */ n(
|
|
6282
|
+
return console.error(y), /* @__PURE__ */ n(Z, {
|
|
6283
6283
|
children: JSON.stringify(y)
|
|
6284
6284
|
});
|
|
6285
6285
|
}
|
|
@@ -6306,7 +6306,7 @@ const mc = (e, t) => {
|
|
|
6306
6306
|
switch (f.type) {
|
|
6307
6307
|
case "indicatorField":
|
|
6308
6308
|
case "indicator": {
|
|
6309
|
-
const y = f,
|
|
6309
|
+
const y = f, D = y.type === "indicatorField" ? {
|
|
6310
6310
|
field: y.field,
|
|
6311
6311
|
operator: y.operator
|
|
6312
6312
|
} : {};
|
|
@@ -6320,7 +6320,7 @@ const mc = (e, t) => {
|
|
|
6320
6320
|
icon: y.icon,
|
|
6321
6321
|
suffix: y.suffix,
|
|
6322
6322
|
manualIds: l,
|
|
6323
|
-
...
|
|
6323
|
+
...D
|
|
6324
6324
|
});
|
|
6325
6325
|
}
|
|
6326
6326
|
case "line":
|
|
@@ -6335,11 +6335,11 @@ const mc = (e, t) => {
|
|
|
6335
6335
|
manualIds: l
|
|
6336
6336
|
});
|
|
6337
6337
|
default:
|
|
6338
|
-
return /* @__PURE__ */ n(
|
|
6338
|
+
return /* @__PURE__ */ n(Z, {
|
|
6339
6339
|
children: `Graph ${f.type} not implemented`
|
|
6340
6340
|
});
|
|
6341
6341
|
}
|
|
6342
|
-
}, hn =
|
|
6342
|
+
}, hn = vt(mc), {
|
|
6343
6343
|
confirm: hc
|
|
6344
6344
|
} = Ye, pc = ({
|
|
6345
6345
|
onOk: e,
|
|
@@ -6396,7 +6396,7 @@ const mc = (e, t) => {
|
|
|
6396
6396
|
className: "inline-block w-3"
|
|
6397
6397
|
});
|
|
6398
6398
|
}
|
|
6399
|
-
function
|
|
6399
|
+
function D() {
|
|
6400
6400
|
return /* @__PURE__ */ n("div", {
|
|
6401
6401
|
className: "flex flex-grow h-8 text-white",
|
|
6402
6402
|
style: {
|
|
@@ -6427,8 +6427,8 @@ const mc = (e, t) => {
|
|
|
6427
6427
|
children: ["(", _, "/", l, ")"]
|
|
6428
6428
|
});
|
|
6429
6429
|
}
|
|
6430
|
-
function
|
|
6431
|
-
return /* @__PURE__ */ P(
|
|
6430
|
+
function V() {
|
|
6431
|
+
return /* @__PURE__ */ P(Z, {
|
|
6432
6432
|
children: [y(), /* @__PURE__ */ n(Ue, {
|
|
6433
6433
|
tooltip: "Previous item",
|
|
6434
6434
|
icon: /* @__PURE__ */ n(Br, {}),
|
|
@@ -6442,7 +6442,7 @@ const mc = (e, t) => {
|
|
|
6442
6442
|
}
|
|
6443
6443
|
return /* @__PURE__ */ P("div", {
|
|
6444
6444
|
className: "flex mb-2",
|
|
6445
|
-
children: [
|
|
6445
|
+
children: [D(), /* @__PURE__ */ P("div", {
|
|
6446
6446
|
className: "flex-none h-8 pl-2",
|
|
6447
6447
|
children: [s !== "graph" && h && /* @__PURE__ */ n(Ue, {
|
|
6448
6448
|
tooltip: "Create new item",
|
|
@@ -6454,7 +6454,7 @@ const mc = (e, t) => {
|
|
|
6454
6454
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
6455
6455
|
disabled: r,
|
|
6456
6456
|
onClick: m
|
|
6457
|
-
}), s !== "graph" && y(), s !== "graph" && O(), s === "form" &&
|
|
6457
|
+
}), s !== "graph" && y(), s !== "graph" && O(), s === "form" && V(), y(), g && /* @__PURE__ */ n(Ue, {
|
|
6458
6458
|
tooltip: "Toggle view mode",
|
|
6459
6459
|
icon: /* @__PURE__ */ n(di, {}),
|
|
6460
6460
|
onClick: o
|
|
@@ -6498,14 +6498,14 @@ const Cc = (e) => {
|
|
|
6498
6498
|
} = f || {}, {
|
|
6499
6499
|
lang: v,
|
|
6500
6500
|
t: y
|
|
6501
|
-
} = K(ge), [
|
|
6501
|
+
} = K(ge), [D, O] = x(!1), [b, V] = x(!1), [_, $] = x(), [w, C] = x(!1), [F, S] = x(!1), [L, T] = x(), [R, A] = x([]), [M, I] = x(!1), k = me([]), [B, j] = x(), U = me(), [W, z] = x(void 0), {
|
|
6502
6502
|
readOnly: q,
|
|
6503
6503
|
relation: E,
|
|
6504
6504
|
context: N,
|
|
6505
6505
|
domain: ee
|
|
6506
6506
|
} = i, le = i.type === "many2many", {
|
|
6507
6507
|
id: ce
|
|
6508
|
-
} = i, ne = s.filter((
|
|
6508
|
+
} = i, ne = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J = me();
|
|
6509
6509
|
pe(() => {
|
|
6510
6510
|
if (J.current !== a) {
|
|
6511
6511
|
J.current = a, we();
|
|
@@ -6514,22 +6514,22 @@ const Cc = (e) => {
|
|
|
6514
6514
|
we();
|
|
6515
6515
|
}, [s, a]);
|
|
6516
6516
|
const we = Re(() => {
|
|
6517
|
-
(a === "form" && s.some((
|
|
6517
|
+
(a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Pe();
|
|
6518
6518
|
}, [s, a]);
|
|
6519
6519
|
pe(() => {
|
|
6520
6520
|
oe();
|
|
6521
6521
|
}, [g]);
|
|
6522
|
-
const Se = (
|
|
6522
|
+
const Se = (X) => {
|
|
6523
6523
|
var ue, Oe;
|
|
6524
6524
|
r == null || r({
|
|
6525
6525
|
fields: ((ue = o.get("form")) == null ? void 0 : ue.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
|
|
6526
|
-
items: xc(
|
|
6526
|
+
items: xc(X)
|
|
6527
6527
|
});
|
|
6528
6528
|
}, Pe = async () => {
|
|
6529
6529
|
await fe(), d > ne.length - 1 && d !== 0 && u(0);
|
|
6530
|
-
}, fe = async (
|
|
6530
|
+
}, fe = async (X) => {
|
|
6531
6531
|
var ue, Oe, ie;
|
|
6532
|
-
|
|
6532
|
+
V(!0), O(!1), $(void 0);
|
|
6533
6533
|
try {
|
|
6534
6534
|
const [xe, he] = await qn({
|
|
6535
6535
|
treeView: {
|
|
@@ -6545,19 +6545,19 @@ const Cc = (e) => {
|
|
|
6545
6545
|
...h == null ? void 0 : h(),
|
|
6546
6546
|
...N
|
|
6547
6547
|
},
|
|
6548
|
-
currentView:
|
|
6548
|
+
currentView: X || a
|
|
6549
6549
|
});
|
|
6550
|
-
return U.current || (U.current = xe.map((Ke) => Ke.id)), (a ||
|
|
6550
|
+
return U.current || (U.current = xe.map((Ke) => Ke.id)), (a || X) === "tree" && he && z(he), Se(xe), xe;
|
|
6551
6551
|
} catch (xe) {
|
|
6552
6552
|
$(xe);
|
|
6553
6553
|
} finally {
|
|
6554
|
-
|
|
6554
|
+
V(!1);
|
|
6555
6555
|
}
|
|
6556
6556
|
};
|
|
6557
6557
|
async function oe() {
|
|
6558
6558
|
ee && (k.current = await H.getHandler().evalDomain({
|
|
6559
6559
|
domain: ee,
|
|
6560
|
-
values:
|
|
6560
|
+
values: Rt({
|
|
6561
6561
|
fields: m(),
|
|
6562
6562
|
values: p()
|
|
6563
6563
|
}),
|
|
@@ -6569,7 +6569,7 @@ const Cc = (e) => {
|
|
|
6569
6569
|
})));
|
|
6570
6570
|
}
|
|
6571
6571
|
const Te = () => {
|
|
6572
|
-
const
|
|
6572
|
+
const X = Array.from(o.keys()), ue = X[(X.indexOf(a) + 1) % X.length];
|
|
6573
6573
|
a === "form" ? Ne(() => {
|
|
6574
6574
|
l(ue);
|
|
6575
6575
|
}) : l(ue);
|
|
@@ -6578,14 +6578,14 @@ const Cc = (e) => {
|
|
|
6578
6578
|
u(d - 1);
|
|
6579
6579
|
}) : u(d - 1));
|
|
6580
6580
|
}, Fe = () => {
|
|
6581
|
-
const
|
|
6582
|
-
d <
|
|
6581
|
+
const X = ne.length;
|
|
6582
|
+
d < X - 1 && (a === "form" ? Ne(() => {
|
|
6583
6583
|
u(d + 1);
|
|
6584
6584
|
}) : u(d + 1));
|
|
6585
6585
|
}, Be = async () => {
|
|
6586
|
-
const
|
|
6586
|
+
const X = ne[d].id, ue = (await H.getHandler().readObjects({
|
|
6587
6587
|
model: E,
|
|
6588
|
-
ids: [
|
|
6588
|
+
ids: [X],
|
|
6589
6589
|
fields: o.get("form").fields,
|
|
6590
6590
|
context: {
|
|
6591
6591
|
...h == null ? void 0 : h(),
|
|
@@ -6593,26 +6593,26 @@ const Cc = (e) => {
|
|
|
6593
6593
|
}
|
|
6594
6594
|
}))[0], Oe = (await H.getHandler().readObjects({
|
|
6595
6595
|
model: E,
|
|
6596
|
-
ids: [
|
|
6596
|
+
ids: [X],
|
|
6597
6597
|
fields: o.get("tree").fields,
|
|
6598
6598
|
context: {
|
|
6599
6599
|
...h == null ? void 0 : h(),
|
|
6600
6600
|
...N
|
|
6601
6601
|
}
|
|
6602
|
-
}))[0], ie = s.map((xe) => xe.id ===
|
|
6602
|
+
}))[0], ie = s.map((xe) => xe.id === X ? {
|
|
6603
6603
|
...xe,
|
|
6604
6604
|
operation: "original",
|
|
6605
6605
|
values: ue,
|
|
6606
6606
|
treeValues: Oe
|
|
6607
6607
|
} : xe);
|
|
6608
6608
|
Se(ie);
|
|
6609
|
-
}, Ne = (
|
|
6610
|
-
|
|
6609
|
+
}, Ne = (X) => {
|
|
6610
|
+
D ? Wt({
|
|
6611
6611
|
lang: v,
|
|
6612
6612
|
onOk: () => {
|
|
6613
|
-
Be(),
|
|
6613
|
+
Be(), X(), O(!1);
|
|
6614
6614
|
}
|
|
6615
|
-
}) :
|
|
6615
|
+
}) : X();
|
|
6616
6616
|
}, Je = () => {
|
|
6617
6617
|
if (le) {
|
|
6618
6618
|
yc({
|
|
@@ -6631,11 +6631,11 @@ const Cc = (e) => {
|
|
|
6631
6631
|
});
|
|
6632
6632
|
}, He = async () => {
|
|
6633
6633
|
const {
|
|
6634
|
-
inv_field:
|
|
6634
|
+
inv_field: X
|
|
6635
6635
|
} = i;
|
|
6636
6636
|
let ue;
|
|
6637
|
-
|
|
6638
|
-
[
|
|
6637
|
+
X && c && (ue = {
|
|
6638
|
+
[X]: c
|
|
6639
6639
|
}), a === "form" ? Ne(() => {
|
|
6640
6640
|
I(!0), T({
|
|
6641
6641
|
defaultValues: ue
|
|
@@ -6648,25 +6648,25 @@ const Cc = (e) => {
|
|
|
6648
6648
|
S(!0);
|
|
6649
6649
|
}) : S(!0);
|
|
6650
6650
|
}, de = async () => {
|
|
6651
|
-
|
|
6651
|
+
V(!0), O(!1), $(void 0);
|
|
6652
6652
|
try {
|
|
6653
6653
|
if (ne[d].id > 0) {
|
|
6654
|
-
const
|
|
6654
|
+
const X = s.map((ue) => ue.id === ne[d].id ? {
|
|
6655
6655
|
...ue,
|
|
6656
6656
|
operation: "pendingRemove"
|
|
6657
6657
|
} : ue);
|
|
6658
|
-
Se(
|
|
6658
|
+
Se(X);
|
|
6659
6659
|
} else
|
|
6660
|
-
Se(s.filter((
|
|
6661
|
-
} catch (
|
|
6662
|
-
$(
|
|
6660
|
+
Se(s.filter((X) => X.id !== ne[d].id));
|
|
6661
|
+
} catch (X) {
|
|
6662
|
+
$(X);
|
|
6663
6663
|
}
|
|
6664
|
-
u(0),
|
|
6664
|
+
u(0), V(!1);
|
|
6665
6665
|
}, be = async () => {
|
|
6666
|
-
const
|
|
6667
|
-
|
|
6666
|
+
const X = ne.filter((ue) => R.includes(ue.id));
|
|
6667
|
+
V(!0), O(!1), $(void 0);
|
|
6668
6668
|
try {
|
|
6669
|
-
const ue =
|
|
6669
|
+
const ue = X.map((ie) => ie.id), Oe = s.filter((ie) => !(ue.includes(ie.id) && ie.id < 0)).map((ie) => ue.includes(ie.id) ? {
|
|
6670
6670
|
...ie,
|
|
6671
6671
|
operation: "pendingRemove"
|
|
6672
6672
|
} : ie);
|
|
@@ -6674,20 +6674,20 @@ const Cc = (e) => {
|
|
|
6674
6674
|
} catch (ue) {
|
|
6675
6675
|
$(ue);
|
|
6676
6676
|
}
|
|
6677
|
-
u(0),
|
|
6678
|
-
}, Le = (
|
|
6677
|
+
u(0), V(!1);
|
|
6678
|
+
}, Le = (X, ue, Oe) => {
|
|
6679
6679
|
let ie;
|
|
6680
|
-
if (
|
|
6681
|
-
ie = s.map((xe) => xe.id ===
|
|
6682
|
-
id:
|
|
6683
|
-
operation:
|
|
6680
|
+
if (X)
|
|
6681
|
+
ie = s.map((xe) => xe.id === X ? {
|
|
6682
|
+
id: X,
|
|
6683
|
+
operation: X > 0 ? "pendingUpdate" : "pendingCreate",
|
|
6684
6684
|
values: {
|
|
6685
6685
|
...Oe,
|
|
6686
|
-
id:
|
|
6686
|
+
id: X
|
|
6687
6687
|
},
|
|
6688
6688
|
treeValues: {
|
|
6689
6689
|
...Oe,
|
|
6690
|
-
id:
|
|
6690
|
+
id: X
|
|
6691
6691
|
}
|
|
6692
6692
|
} : xe);
|
|
6693
6693
|
else {
|
|
@@ -6706,17 +6706,17 @@ const Cc = (e) => {
|
|
|
6706
6706
|
});
|
|
6707
6707
|
}
|
|
6708
6708
|
Se(ie), M || C(!1);
|
|
6709
|
-
}, se = async (
|
|
6709
|
+
}, se = async (X) => {
|
|
6710
6710
|
const {
|
|
6711
6711
|
id: ue
|
|
6712
|
-
} =
|
|
6712
|
+
} = X;
|
|
6713
6713
|
let Oe = s;
|
|
6714
6714
|
const ie = s.find((xe) => xe.id === ue);
|
|
6715
6715
|
(ie == null ? void 0 : ie.values) === void 0 && (Oe = await fe("form")), T(Oe.find((xe) => xe.id === ue)), I(!1), C(!0);
|
|
6716
|
-
}, De = async (
|
|
6717
|
-
|
|
6716
|
+
}, De = async (X) => {
|
|
6717
|
+
V(!0);
|
|
6718
6718
|
let ue = s;
|
|
6719
|
-
const Oe =
|
|
6719
|
+
const Oe = X.filter((ie) => !s.find((xe) => xe.id === ie));
|
|
6720
6720
|
try {
|
|
6721
6721
|
for (const ie of Oe) {
|
|
6722
6722
|
const xe = (await H.getHandler().readObjects({
|
|
@@ -6747,15 +6747,15 @@ const Cc = (e) => {
|
|
|
6747
6747
|
} catch (ie) {
|
|
6748
6748
|
$(ie);
|
|
6749
6749
|
} finally {
|
|
6750
|
-
|
|
6750
|
+
V(!1);
|
|
6751
6751
|
}
|
|
6752
6752
|
};
|
|
6753
6753
|
function ke() {
|
|
6754
|
-
const
|
|
6754
|
+
const X = bc[a];
|
|
6755
6755
|
if (a === "graph")
|
|
6756
6756
|
return $n(o.get("graph").arch).string;
|
|
6757
6757
|
{
|
|
6758
|
-
const ue = new
|
|
6758
|
+
const ue = new X(o.get(a).fields);
|
|
6759
6759
|
return ue.parse(o.get(a).arch), ue.string;
|
|
6760
6760
|
}
|
|
6761
6761
|
}
|
|
@@ -6790,8 +6790,8 @@ const Cc = (e) => {
|
|
|
6790
6790
|
},
|
|
6791
6791
|
readOnly: q
|
|
6792
6792
|
});
|
|
6793
|
-
let
|
|
6794
|
-
if (ne.some((he) => he.treeValues) && (
|
|
6793
|
+
let X = [];
|
|
6794
|
+
if (ne.some((he) => he.treeValues) && (X = B ? _t({
|
|
6795
6795
|
resultsToSort: ne.map((he) => he.treeValues),
|
|
6796
6796
|
sorter: B,
|
|
6797
6797
|
fields: {
|
|
@@ -6803,7 +6803,7 @@ const Cc = (e) => {
|
|
|
6803
6803
|
total: ne.length,
|
|
6804
6804
|
limit: ne.length,
|
|
6805
6805
|
treeView: o.get("tree"),
|
|
6806
|
-
results:
|
|
6806
|
+
results: X,
|
|
6807
6807
|
loading: b,
|
|
6808
6808
|
onRowClicked: ((xe = o.get("form")) == null ? void 0 : xe.fields) !== void 0 ? se : void 0,
|
|
6809
6809
|
showPagination: !1,
|
|
@@ -6841,13 +6841,13 @@ const Cc = (e) => {
|
|
|
6841
6841
|
banner: !0
|
|
6842
6842
|
});
|
|
6843
6843
|
const Ze = M;
|
|
6844
|
-
return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(
|
|
6844
|
+
return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
|
|
6845
6845
|
children: [/* @__PURE__ */ n(wc, {
|
|
6846
6846
|
mode: a,
|
|
6847
6847
|
title: ke(),
|
|
6848
6848
|
readOnly: q,
|
|
6849
6849
|
isMany2Many: le,
|
|
6850
|
-
formHasChanges:
|
|
6850
|
+
formHasChanges: D,
|
|
6851
6851
|
totalItems: ne.length,
|
|
6852
6852
|
currentItemIndex: d,
|
|
6853
6853
|
onDelete: Je,
|
|
@@ -6885,8 +6885,8 @@ const Cc = (e) => {
|
|
|
6885
6885
|
...N
|
|
6886
6886
|
},
|
|
6887
6887
|
visible: F,
|
|
6888
|
-
onSelectValues: async (
|
|
6889
|
-
S(!1), De(
|
|
6888
|
+
onSelectValues: async (X) => {
|
|
6889
|
+
S(!1), De(X);
|
|
6890
6890
|
},
|
|
6891
6891
|
onCloseModal: () => {
|
|
6892
6892
|
S(!1);
|
|
@@ -6907,7 +6907,7 @@ const Cc = (e) => {
|
|
|
6907
6907
|
const [d, u] = x(!0), [f, c] = x(), [m, p] = x(/* @__PURE__ */ new Map()), h = K(Ee), {
|
|
6908
6908
|
getContext: g
|
|
6909
6909
|
} = h || {};
|
|
6910
|
-
|
|
6910
|
+
xt(() => {
|
|
6911
6911
|
y();
|
|
6912
6912
|
}, [t]);
|
|
6913
6913
|
const v = async (O) => o && o[O] ? o[O] : await H.getHandler().getView({
|
|
@@ -7024,7 +7024,7 @@ function So(e) {
|
|
|
7024
7024
|
showLabel: r = !0,
|
|
7025
7025
|
responsiveBehaviour: i
|
|
7026
7026
|
} = e, o = st(t.icon || "");
|
|
7027
|
-
return /* @__PURE__ */ n(
|
|
7027
|
+
return /* @__PURE__ */ n(Z, {
|
|
7028
7028
|
children: (t.label || o) && r ? /* @__PURE__ */ n(_i, {
|
|
7029
7029
|
label: t.label,
|
|
7030
7030
|
icon: o,
|
|
@@ -7056,7 +7056,7 @@ function Ic(e) {
|
|
|
7056
7056
|
defaultActiveKey: "1",
|
|
7057
7057
|
tabPosition: t.tabPosition,
|
|
7058
7058
|
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(_c, {
|
|
7059
|
-
tab: /* @__PURE__ */ P(
|
|
7059
|
+
tab: /* @__PURE__ */ P(Z, {
|
|
7060
7060
|
children: [o(s.icon), " ", s.label]
|
|
7061
7061
|
}),
|
|
7062
7062
|
children: /* @__PURE__ */ n(So, {
|
|
@@ -7120,7 +7120,7 @@ const {
|
|
|
7120
7120
|
} = s || {}, [c, m] = x(!1), {
|
|
7121
7121
|
t: p
|
|
7122
7122
|
} = K(ge);
|
|
7123
|
-
return a ? /* @__PURE__ */ P(
|
|
7123
|
+
return a ? /* @__PURE__ */ P(Z, {
|
|
7124
7124
|
children: [/* @__PURE__ */ n("div", {
|
|
7125
7125
|
onClick: () => {
|
|
7126
7126
|
if (u != null && u()) {
|
|
@@ -7156,7 +7156,7 @@ const {
|
|
|
7156
7156
|
m(!1), d == null || d();
|
|
7157
7157
|
}
|
|
7158
7158
|
})]
|
|
7159
|
-
}) : /* @__PURE__ */ P(
|
|
7159
|
+
}) : /* @__PURE__ */ P(Z, {
|
|
7160
7160
|
children: [/* @__PURE__ */ n(Ce, {
|
|
7161
7161
|
gutter: 8,
|
|
7162
7162
|
wrap: !1,
|
|
@@ -7221,7 +7221,7 @@ const {
|
|
|
7221
7221
|
v.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (y = [
|
|
7222
7222
|
["id", "in", i == null ? void 0 : i.map((b) => b.id)]
|
|
7223
7223
|
]);
|
|
7224
|
-
const { datas:
|
|
7224
|
+
const { datas: D } = await H.getHandler().exportData({
|
|
7225
7225
|
model: e,
|
|
7226
7226
|
fields: Pc({
|
|
7227
7227
|
keys: v.selectedKeys,
|
|
@@ -7233,8 +7233,8 @@ const {
|
|
|
7233
7233
|
format: v.exportType
|
|
7234
7234
|
});
|
|
7235
7235
|
a(), await new Promise((b) => setTimeout(b, 200));
|
|
7236
|
-
const O = await
|
|
7237
|
-
un(
|
|
7236
|
+
const O = await Dt(D);
|
|
7237
|
+
un(D, O.mime);
|
|
7238
7238
|
},
|
|
7239
7239
|
[r, e, o, s, t, a]
|
|
7240
7240
|
), f = Re(async () => {
|
|
@@ -7246,14 +7246,14 @@ const {
|
|
|
7246
7246
|
return l.current["/"] = v, Fr({ fields: v });
|
|
7247
7247
|
}, [e, t, l]), c = Re(
|
|
7248
7248
|
async (v) => {
|
|
7249
|
-
const
|
|
7249
|
+
const D = An(v, l.current)[Vn(v)], O = D.relation, b = await H.getHandler().getFields({
|
|
7250
7250
|
model: O,
|
|
7251
7251
|
context: t,
|
|
7252
7252
|
fields: []
|
|
7253
7253
|
});
|
|
7254
|
-
for (const [
|
|
7255
|
-
b[
|
|
7256
|
-
parentTitle:
|
|
7254
|
+
for (const [V, _] of Object.entries(b))
|
|
7255
|
+
b[V].string = Mc({
|
|
7256
|
+
parentTitle: D.string,
|
|
7257
7257
|
title: _.string
|
|
7258
7258
|
});
|
|
7259
7259
|
return l.current[v] = b, Fr({
|
|
@@ -7272,7 +7272,7 @@ const {
|
|
|
7272
7272
|
predefinedExports: v.map((O) => ({
|
|
7273
7273
|
...O,
|
|
7274
7274
|
fields: O.fields.map((b) => {
|
|
7275
|
-
const
|
|
7275
|
+
const V = Vn(b.key), $ = An(b.key, l.current)[V];
|
|
7276
7276
|
return {
|
|
7277
7277
|
key: b.key,
|
|
7278
7278
|
title: $.string
|
|
@@ -7283,7 +7283,7 @@ const {
|
|
|
7283
7283
|
};
|
|
7284
7284
|
}, [l.current]), p = Re(
|
|
7285
7285
|
async (v) => {
|
|
7286
|
-
const y = await g("ir.exports"),
|
|
7286
|
+
const y = await g("ir.exports"), D = await g("ir.exports.line"), O = await H.getHandler().create({
|
|
7287
7287
|
model: "ir.exports",
|
|
7288
7288
|
values: {
|
|
7289
7289
|
name: v.name,
|
|
@@ -7299,7 +7299,7 @@ const {
|
|
|
7299
7299
|
name: b.key,
|
|
7300
7300
|
export_id: O
|
|
7301
7301
|
},
|
|
7302
|
-
fields:
|
|
7302
|
+
fields: D,
|
|
7303
7303
|
context: t
|
|
7304
7304
|
}))
|
|
7305
7305
|
), { ...v, id: O };
|
|
@@ -7598,19 +7598,19 @@ const {
|
|
|
7598
7598
|
i == null || i(O);
|
|
7599
7599
|
};
|
|
7600
7600
|
async function g() {
|
|
7601
|
-
const O = await
|
|
7602
|
-
|
|
7601
|
+
const O = await Dt(r), b = `data:${O == null ? void 0 : O.mime};base64,${r}`, V = document.createElement("a"), _ = c(a), $ = c("name");
|
|
7602
|
+
V.href = b, V.download = _ || $, V.click();
|
|
7603
7603
|
}
|
|
7604
7604
|
async function v() {
|
|
7605
|
-
const O = await
|
|
7605
|
+
const O = await Dt(r);
|
|
7606
7606
|
un(r, O.mime);
|
|
7607
7607
|
}
|
|
7608
7608
|
async function y(O) {
|
|
7609
7609
|
O.stopPropagation(), O.preventDefault();
|
|
7610
|
-
const b = O.target.files[0],
|
|
7611
|
-
h(
|
|
7610
|
+
const b = O.target.files[0], V = await ro(b);
|
|
7611
|
+
h(V), a && f(a, b.name);
|
|
7612
7612
|
}
|
|
7613
|
-
function
|
|
7613
|
+
function D() {
|
|
7614
7614
|
f(a, void 0), h(void 0);
|
|
7615
7615
|
}
|
|
7616
7616
|
return /* @__PURE__ */ P(Ce, {
|
|
@@ -7655,7 +7655,7 @@ const {
|
|
|
7655
7655
|
}), /* @__PURE__ */ n(Ue, {
|
|
7656
7656
|
tooltip: m("clear"),
|
|
7657
7657
|
disabled: o || !r,
|
|
7658
|
-
onClick:
|
|
7658
|
+
onClick: D,
|
|
7659
7659
|
icon: /* @__PURE__ */ n(Pn, {})
|
|
7660
7660
|
})]
|
|
7661
7661
|
})
|
|
@@ -7700,7 +7700,7 @@ function Zn(e) {
|
|
|
7700
7700
|
children: p.type.charAt(0).toUpperCase() + p.type.slice(1)
|
|
7701
7701
|
}), /* @__PURE__ */ n(ae, {
|
|
7702
7702
|
flex: "none",
|
|
7703
|
-
children: /* @__PURE__ */ n(
|
|
7703
|
+
children: /* @__PURE__ */ n(kt, {
|
|
7704
7704
|
style: {
|
|
7705
7705
|
opacity: t.view_id === p.view_id ? 1 : 0
|
|
7706
7706
|
}
|
|
@@ -7761,7 +7761,7 @@ function Zn(e) {
|
|
|
7761
7761
|
borderTopLeftRadius: 0,
|
|
7762
7762
|
borderBottomLeftRadius: 0
|
|
7763
7763
|
},
|
|
7764
|
-
icon: /* @__PURE__ */ n(
|
|
7764
|
+
icon: /* @__PURE__ */ n(At, {
|
|
7765
7765
|
style: {
|
|
7766
7766
|
fontSize: "0.5em"
|
|
7767
7767
|
}
|
|
@@ -7771,7 +7771,7 @@ function Zn(e) {
|
|
|
7771
7771
|
})]
|
|
7772
7772
|
});
|
|
7773
7773
|
}
|
|
7774
|
-
function
|
|
7774
|
+
function It(e) {
|
|
7775
7775
|
const {
|
|
7776
7776
|
icon: t,
|
|
7777
7777
|
tooltip: r,
|
|
@@ -7800,7 +7800,7 @@ function _t(e) {
|
|
|
7800
7800
|
overlay: l(),
|
|
7801
7801
|
disabled: a || !i || i.length === 0,
|
|
7802
7802
|
children: /* @__PURE__ */ P(Ie, {
|
|
7803
|
-
children: [t, " ", s, " ", /* @__PURE__ */ n(
|
|
7803
|
+
children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
|
|
7804
7804
|
})
|
|
7805
7805
|
});
|
|
7806
7806
|
}
|
|
@@ -7892,7 +7892,7 @@ const Zc = (e) => {
|
|
|
7892
7892
|
lang: o
|
|
7893
7893
|
} = K(ge), [s, a] = x(!1), l = /* @__PURE__ */ P(Ie, {
|
|
7894
7894
|
disabled: r,
|
|
7895
|
-
children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(
|
|
7895
|
+
children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(At, {
|
|
7896
7896
|
style: {
|
|
7897
7897
|
fontSize: 12
|
|
7898
7898
|
}
|
|
@@ -7920,7 +7920,7 @@ const Zc = (e) => {
|
|
|
7920
7920
|
style: {
|
|
7921
7921
|
padding: 20
|
|
7922
7922
|
}
|
|
7923
|
-
}) : /* @__PURE__ */ P(
|
|
7923
|
+
}) : /* @__PURE__ */ P(Z, {
|
|
7924
7924
|
children: [/* @__PURE__ */ P("a", {
|
|
7925
7925
|
style: {
|
|
7926
7926
|
display: "block",
|
|
@@ -7940,7 +7940,7 @@ const Zc = (e) => {
|
|
|
7940
7940
|
t(!1), s();
|
|
7941
7941
|
},
|
|
7942
7942
|
children: [/* @__PURE__ */ n(an, {}), " ", _e("addNewAttachment", r)]
|
|
7943
|
-
}), i.length > 0 && /* @__PURE__ */ P(
|
|
7943
|
+
}), i.length > 0 && /* @__PURE__ */ P(Z, {
|
|
7944
7944
|
children: [/* @__PURE__ */ n("li", {
|
|
7945
7945
|
className: "ant-dropdown-menu-item-divider"
|
|
7946
7946
|
}), i.map((u) => {
|
|
@@ -8009,15 +8009,15 @@ function Qc(e) {
|
|
|
8009
8009
|
try {
|
|
8010
8010
|
const y = await H.getHandler().readObjects({
|
|
8011
8011
|
model: "ir.attachment",
|
|
8012
|
-
ids: t.map((
|
|
8012
|
+
ids: t.map((D) => D.id),
|
|
8013
8013
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
8014
8014
|
context: a.current.getContext()
|
|
8015
8015
|
});
|
|
8016
|
-
f(y.map((
|
|
8017
|
-
id:
|
|
8018
|
-
name:
|
|
8019
|
-
datas_fname:
|
|
8020
|
-
link:
|
|
8016
|
+
f(y.map((D) => ({
|
|
8017
|
+
id: D.id,
|
|
8018
|
+
name: D.name,
|
|
8019
|
+
datas_fname: D.datas_fname,
|
|
8020
|
+
link: D.link
|
|
8021
8021
|
})));
|
|
8022
8022
|
} catch (y) {
|
|
8023
8023
|
We(y);
|
|
@@ -8029,9 +8029,9 @@ function Qc(e) {
|
|
|
8029
8029
|
return;
|
|
8030
8030
|
}
|
|
8031
8031
|
m(!0);
|
|
8032
|
-
let
|
|
8032
|
+
let D;
|
|
8033
8033
|
try {
|
|
8034
|
-
|
|
8034
|
+
D = (await H.getHandler().readObjects({
|
|
8035
8035
|
model: "ir.attachment",
|
|
8036
8036
|
ids: [y.id],
|
|
8037
8037
|
context: a.current.getContext()
|
|
@@ -8039,18 +8039,18 @@ function Qc(e) {
|
|
|
8039
8039
|
} catch (O) {
|
|
8040
8040
|
We(O);
|
|
8041
8041
|
}
|
|
8042
|
-
if (m(!1), !!
|
|
8043
|
-
if (
|
|
8044
|
-
const O = await
|
|
8045
|
-
un(
|
|
8042
|
+
if (m(!1), !!D)
|
|
8043
|
+
if (D.datas) {
|
|
8044
|
+
const O = await Dt(D.datas);
|
|
8045
|
+
un(D.datas, O.mime);
|
|
8046
8046
|
} else
|
|
8047
|
-
s(
|
|
8047
|
+
s(D);
|
|
8048
8048
|
}, []), v = Re(async (y) => {
|
|
8049
8049
|
s(y);
|
|
8050
8050
|
}, []);
|
|
8051
8051
|
return pe(() => {
|
|
8052
8052
|
h();
|
|
8053
|
-
}, [h]), /* @__PURE__ */ P(
|
|
8053
|
+
}, [h]), /* @__PURE__ */ P(Z, {
|
|
8054
8054
|
children: [/* @__PURE__ */ n(Zc, {
|
|
8055
8055
|
numberOfAttachments: t.length,
|
|
8056
8056
|
attachments: u,
|
|
@@ -8092,17 +8092,17 @@ function ed({
|
|
|
8092
8092
|
duplicatingItem: g,
|
|
8093
8093
|
setDuplicatingItem: v,
|
|
8094
8094
|
setResults: y,
|
|
8095
|
-
formIsLoading:
|
|
8095
|
+
formIsLoading: D,
|
|
8096
8096
|
attachments: O,
|
|
8097
8097
|
formRef: b,
|
|
8098
|
-
setFormHasChanges:
|
|
8098
|
+
setFormHasChanges: V,
|
|
8099
8099
|
previousView: _,
|
|
8100
8100
|
setPreviousView: $,
|
|
8101
8101
|
goToResourceId: w
|
|
8102
8102
|
} = K(Xe), {
|
|
8103
8103
|
t: C,
|
|
8104
8104
|
lang: F
|
|
8105
|
-
} = K(ge), S = K(
|
|
8105
|
+
} = K(ge), S = K(Et), {
|
|
8106
8106
|
processAction: L
|
|
8107
8107
|
} = S || {}, T = K(at), {
|
|
8108
8108
|
openRelate: R,
|
|
@@ -8178,7 +8178,7 @@ function ed({
|
|
|
8178
8178
|
v == null || v(!1);
|
|
8179
8179
|
}
|
|
8180
8180
|
}
|
|
8181
|
-
const z = a || h ||
|
|
8181
|
+
const z = a || h || D || g;
|
|
8182
8182
|
function q(E) {
|
|
8183
8183
|
L == null || L({
|
|
8184
8184
|
actionData: E,
|
|
@@ -8192,10 +8192,10 @@ function ed({
|
|
|
8192
8192
|
}
|
|
8193
8193
|
return r ? /* @__PURE__ */ P(je, {
|
|
8194
8194
|
wrap: !0,
|
|
8195
|
-
children: [
|
|
8196
|
-
children: [/* @__PURE__ */ n(Ae, {}),
|
|
8195
|
+
children: [D && /* @__PURE__ */ P(Z, {
|
|
8196
|
+
children: [/* @__PURE__ */ n(Ae, {}), St(), St()]
|
|
8197
8197
|
}), /* @__PURE__ */ n(Fo, {
|
|
8198
|
-
disabled: a ||
|
|
8198
|
+
disabled: a || D || h || g
|
|
8199
8199
|
}), /* @__PURE__ */ n(Ge, {
|
|
8200
8200
|
icon: /* @__PURE__ */ n(pi, {}),
|
|
8201
8201
|
tooltip: C("save"),
|
|
@@ -8205,19 +8205,19 @@ function ed({
|
|
|
8205
8205
|
}), /* @__PURE__ */ n(Ge, {
|
|
8206
8206
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
8207
8207
|
tooltip: C("duplicate"),
|
|
8208
|
-
disabled: s || a || l === void 0 || g ||
|
|
8208
|
+
disabled: s || a || l === void 0 || g || D,
|
|
8209
8209
|
loading: g,
|
|
8210
8210
|
onClick: W
|
|
8211
8211
|
}), /* @__PURE__ */ n(Ge, {
|
|
8212
8212
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8213
8213
|
tooltip: C("delete"),
|
|
8214
|
-
disabled: a || l === void 0 || h || g ||
|
|
8214
|
+
disabled: a || l === void 0 || h || g || D,
|
|
8215
8215
|
loading: h,
|
|
8216
8216
|
onClick: j
|
|
8217
|
-
}),
|
|
8217
|
+
}), St(), /* @__PURE__ */ n(Ge, {
|
|
8218
8218
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8219
8219
|
tooltip: C("showLogs"),
|
|
8220
|
-
disabled: a || l === void 0 || h || g ||
|
|
8220
|
+
disabled: a || l === void 0 || h || g || D,
|
|
8221
8221
|
loading: !1,
|
|
8222
8222
|
onClick: () => {
|
|
8223
8223
|
Oo(m, l, C);
|
|
@@ -8225,23 +8225,23 @@ function ed({
|
|
|
8225
8225
|
}), /* @__PURE__ */ n(Ge, {
|
|
8226
8226
|
icon: /* @__PURE__ */ n(ln, {}),
|
|
8227
8227
|
tooltip: C("refresh"),
|
|
8228
|
-
disabled: a || l === void 0 || h || g ||
|
|
8228
|
+
disabled: a || l === void 0 || h || g || D,
|
|
8229
8229
|
loading: !1,
|
|
8230
8230
|
onClick: () => {
|
|
8231
8231
|
M(() => {
|
|
8232
8232
|
b.current.fetchValues();
|
|
8233
8233
|
});
|
|
8234
8234
|
}
|
|
8235
|
-
}),
|
|
8235
|
+
}), St(), /* @__PURE__ */ n(Zn, {
|
|
8236
8236
|
currentView: r,
|
|
8237
8237
|
previousView: _,
|
|
8238
8238
|
availableViews: t,
|
|
8239
8239
|
onChangeView: (E) => {
|
|
8240
|
-
$ == null || $(r),
|
|
8240
|
+
$ == null || $(r), V == null || V(!1), i == null || i(E);
|
|
8241
8241
|
},
|
|
8242
8242
|
disabled: z,
|
|
8243
8243
|
formHasChanges: s
|
|
8244
|
-
}),
|
|
8244
|
+
}), St(), /* @__PURE__ */ P(je, {
|
|
8245
8245
|
children: [/* @__PURE__ */ n(Ge, {
|
|
8246
8246
|
icon: /* @__PURE__ */ n(Br, {}),
|
|
8247
8247
|
tooltip: C("previous"),
|
|
@@ -8259,17 +8259,17 @@ function ed({
|
|
|
8259
8259
|
I(k);
|
|
8260
8260
|
}
|
|
8261
8261
|
})]
|
|
8262
|
-
}),
|
|
8262
|
+
}), St(), /* @__PURE__ */ n(It, {
|
|
8263
8263
|
icon: /* @__PURE__ */ n(Hn, {}),
|
|
8264
8264
|
disabled: z,
|
|
8265
8265
|
tooltip: C("actions"),
|
|
8266
8266
|
items: e == null ? void 0 : e.action,
|
|
8267
8267
|
onItemClick: async (E) => {
|
|
8268
|
-
!E || !(await
|
|
8268
|
+
!E || !(await Tt({
|
|
8269
8269
|
onFormSave: o
|
|
8270
8270
|
})).succeed || q(E);
|
|
8271
8271
|
}
|
|
8272
|
-
}), /* @__PURE__ */ n(
|
|
8272
|
+
}), /* @__PURE__ */ n(It, {
|
|
8273
8273
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
8274
8274
|
disabled: z,
|
|
8275
8275
|
tooltip: C("reports"),
|
|
@@ -8277,7 +8277,7 @@ function ed({
|
|
|
8277
8277
|
onItemClick: async (E) => {
|
|
8278
8278
|
if (!E)
|
|
8279
8279
|
return;
|
|
8280
|
-
const N = await
|
|
8280
|
+
const N = await Tt({
|
|
8281
8281
|
onFormSave: o
|
|
8282
8282
|
});
|
|
8283
8283
|
!N.succeed || q({
|
|
@@ -8288,13 +8288,13 @@ function ed({
|
|
|
8288
8288
|
}
|
|
8289
8289
|
});
|
|
8290
8290
|
}
|
|
8291
|
-
}), /* @__PURE__ */ n(
|
|
8291
|
+
}), /* @__PURE__ */ n(It, {
|
|
8292
8292
|
icon: /* @__PURE__ */ n(Pr, {}),
|
|
8293
8293
|
disabled: z,
|
|
8294
8294
|
tooltip: C("related"),
|
|
8295
8295
|
items: e == null ? void 0 : e.relate,
|
|
8296
8296
|
onItemClick: async (E) => {
|
|
8297
|
-
!E || !(await
|
|
8297
|
+
!E || !(await Tt({
|
|
8298
8298
|
onFormSave: o
|
|
8299
8299
|
})).succeed || R({
|
|
8300
8300
|
relateData: E,
|
|
@@ -8308,7 +8308,7 @@ function ed({
|
|
|
8308
8308
|
disabled: z,
|
|
8309
8309
|
attachments: O,
|
|
8310
8310
|
onAddNewAttachment: async () => {
|
|
8311
|
-
const E = await
|
|
8311
|
+
const E = await Tt({
|
|
8312
8312
|
onFormSave: o
|
|
8313
8313
|
});
|
|
8314
8314
|
if (!E.succeed)
|
|
@@ -8327,7 +8327,7 @@ function ed({
|
|
|
8327
8327
|
});
|
|
8328
8328
|
},
|
|
8329
8329
|
onListAllAttachments: async () => {
|
|
8330
|
-
const E = await
|
|
8330
|
+
const E = await Tt({
|
|
8331
8331
|
onFormSave: o
|
|
8332
8332
|
});
|
|
8333
8333
|
if (!E.succeed)
|
|
@@ -8340,7 +8340,7 @@ function ed({
|
|
|
8340
8340
|
});
|
|
8341
8341
|
},
|
|
8342
8342
|
onViewAttachmentDetails: async (E) => {
|
|
8343
|
-
!(await
|
|
8343
|
+
!(await Tt({
|
|
8344
8344
|
onFormSave: o
|
|
8345
8345
|
})).succeed || A({
|
|
8346
8346
|
model: "ir.attachment",
|
|
@@ -8351,12 +8351,12 @@ function ed({
|
|
|
8351
8351
|
})]
|
|
8352
8352
|
}) : null;
|
|
8353
8353
|
}
|
|
8354
|
-
function
|
|
8354
|
+
function St() {
|
|
8355
8355
|
return /* @__PURE__ */ n("div", {
|
|
8356
8356
|
className: "inline-block w-2"
|
|
8357
8357
|
});
|
|
8358
8358
|
}
|
|
8359
|
-
async function
|
|
8359
|
+
async function Tt({
|
|
8360
8360
|
onFormSave: e
|
|
8361
8361
|
}) {
|
|
8362
8362
|
const t = await (e == null ? void 0 : e());
|
|
@@ -8391,8 +8391,8 @@ const {
|
|
|
8391
8391
|
pe(() => {
|
|
8392
8392
|
l && !p && v(!1), !r && !l && (h(!0), v(!0));
|
|
8393
8393
|
}, [p, l]);
|
|
8394
|
-
const y = (
|
|
8395
|
-
i == null || i(
|
|
8394
|
+
const y = (D) => {
|
|
8395
|
+
i == null || i(D.target.value);
|
|
8396
8396
|
};
|
|
8397
8397
|
return /* @__PURE__ */ P(Ce, {
|
|
8398
8398
|
gutter: 8,
|
|
@@ -8401,7 +8401,7 @@ const {
|
|
|
8401
8401
|
children: [l ? null : /* @__PURE__ */ n(ae, {
|
|
8402
8402
|
flex: "32px",
|
|
8403
8403
|
children: p ? /* @__PURE__ */ n(Ie, {
|
|
8404
|
-
icon: /* @__PURE__ */ n(
|
|
8404
|
+
icon: /* @__PURE__ */ n(kt, {}),
|
|
8405
8405
|
onClick: () => {
|
|
8406
8406
|
o(r) && (h(!1), v(!1));
|
|
8407
8407
|
},
|
|
@@ -8528,7 +8528,7 @@ const {
|
|
|
8528
8528
|
style: {
|
|
8529
8529
|
marginLeft: 15
|
|
8530
8530
|
},
|
|
8531
|
-
icon: /* @__PURE__ */ n(
|
|
8531
|
+
icon: /* @__PURE__ */ n(kt, {}),
|
|
8532
8532
|
htmlType: "submit",
|
|
8533
8533
|
type: "primary",
|
|
8534
8534
|
disabled: o,
|
|
@@ -8657,7 +8657,7 @@ function pn(e) {
|
|
|
8657
8657
|
} = ad();
|
|
8658
8658
|
function m() {
|
|
8659
8659
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8660
|
-
return s ? d === 0 ? /* @__PURE__ */ P(
|
|
8660
|
+
return s ? d === 0 ? /* @__PURE__ */ P(Z, {
|
|
8661
8661
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8662
8662
|
copyable: {
|
|
8663
8663
|
icon: /* @__PURE__ */ n(Yn, {
|
|
@@ -8668,7 +8668,7 @@ function pn(e) {
|
|
|
8668
8668
|
},
|
|
8669
8669
|
children: s
|
|
8670
8670
|
}), ")"]
|
|
8671
|
-
}) : /* @__PURE__ */ P(
|
|
8671
|
+
}) : /* @__PURE__ */ P(Z, {
|
|
8672
8672
|
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", d, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8673
8673
|
copyable: !0,
|
|
8674
8674
|
children: s
|
|
@@ -8676,14 +8676,14 @@ function pn(e) {
|
|
|
8676
8676
|
}) : "";
|
|
8677
8677
|
if ((o == null ? void 0 : o.type) === "tree" && u) {
|
|
8678
8678
|
if (u.length === 1)
|
|
8679
|
-
return /* @__PURE__ */ P(
|
|
8679
|
+
return /* @__PURE__ */ P(Z, {
|
|
8680
8680
|
children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8681
8681
|
copyable: !0,
|
|
8682
8682
|
children: u[0].id
|
|
8683
8683
|
}), ")"]
|
|
8684
8684
|
});
|
|
8685
8685
|
if (u.length > 1)
|
|
8686
|
-
return /* @__PURE__ */ P(
|
|
8686
|
+
return /* @__PURE__ */ P(Z, {
|
|
8687
8687
|
children: [u.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Zt, {
|
|
8688
8688
|
copyable: {
|
|
8689
8689
|
text: u.map((p) => p.id).join(", ")
|
|
@@ -8746,10 +8746,10 @@ const cd = (e) => {
|
|
|
8746
8746
|
setSearchParams: g = void 0,
|
|
8747
8747
|
searchVisible: v = !0,
|
|
8748
8748
|
setSearchVisible: y = void 0,
|
|
8749
|
-
sorter:
|
|
8749
|
+
sorter: D = void 0,
|
|
8750
8750
|
setSorter: O = void 0,
|
|
8751
8751
|
setTotalItems: b = void 0,
|
|
8752
|
-
setSearchTreeNameSearch:
|
|
8752
|
+
setSearchTreeNameSearch: V = void 0,
|
|
8753
8753
|
setTreeIsLoading: _ = void 0,
|
|
8754
8754
|
limit: $,
|
|
8755
8755
|
setLimit: w,
|
|
@@ -8772,7 +8772,7 @@ const cd = (e) => {
|
|
|
8772
8772
|
tableRefreshing: B
|
|
8773
8773
|
} = ao({
|
|
8774
8774
|
model: i,
|
|
8775
|
-
setSearchTreeNameSearch:
|
|
8775
|
+
setSearchTreeNameSearch: V,
|
|
8776
8776
|
setSelectedRowItems: h,
|
|
8777
8777
|
searchParams: C,
|
|
8778
8778
|
setSearchValues: S,
|
|
@@ -8782,7 +8782,7 @@ const cd = (e) => {
|
|
|
8782
8782
|
context: o,
|
|
8783
8783
|
formView: a,
|
|
8784
8784
|
treeView: l,
|
|
8785
|
-
sorter:
|
|
8785
|
+
sorter: D,
|
|
8786
8786
|
setSorter: O,
|
|
8787
8787
|
setCurrentItemIndex: c,
|
|
8788
8788
|
setResultsActionView: f,
|
|
@@ -8793,7 +8793,7 @@ const cd = (e) => {
|
|
|
8793
8793
|
limit: $,
|
|
8794
8794
|
setLimit: w
|
|
8795
8795
|
});
|
|
8796
|
-
return !r || !t ? null : /* @__PURE__ */ P(
|
|
8796
|
+
return !r || !t ? null : /* @__PURE__ */ P(Z, {
|
|
8797
8797
|
children: [/* @__PURE__ */ n(pn, {
|
|
8798
8798
|
title: t.name,
|
|
8799
8799
|
children: /* @__PURE__ */ n(sd, {
|
|
@@ -8844,7 +8844,7 @@ const cd = (e) => {
|
|
|
8844
8844
|
setResults: c,
|
|
8845
8845
|
setCurrentItemIndex: m
|
|
8846
8846
|
} = e;
|
|
8847
|
-
return t ? /* @__PURE__ */ P(
|
|
8847
|
+
return t ? /* @__PURE__ */ P(Z, {
|
|
8848
8848
|
children: [/* @__PURE__ */ n(pn, {
|
|
8849
8849
|
children: /* @__PURE__ */ n(ed, {
|
|
8850
8850
|
toolbar: a == null ? void 0 : a.toolbar
|
|
@@ -8955,10 +8955,10 @@ function md(e) {
|
|
|
8955
8955
|
setSearchVisible: g,
|
|
8956
8956
|
setSearchTreeNameSearch: v,
|
|
8957
8957
|
searchTreeNameSearch: y,
|
|
8958
|
-
treeIsLoading:
|
|
8958
|
+
treeIsLoading: D,
|
|
8959
8959
|
setPreviousView: O,
|
|
8960
8960
|
previousView: b,
|
|
8961
|
-
results:
|
|
8961
|
+
results: V,
|
|
8962
8962
|
limit: _,
|
|
8963
8963
|
totalItems: $
|
|
8964
8964
|
} = K(Xe), {
|
|
@@ -8970,7 +8970,7 @@ function md(e) {
|
|
|
8970
8970
|
} = K(fd), {
|
|
8971
8971
|
t: L,
|
|
8972
8972
|
lang: T
|
|
8973
|
-
} = K(ge), R = K(
|
|
8973
|
+
} = K(ge), R = K(Et), {
|
|
8974
8974
|
processAction: A
|
|
8975
8975
|
} = R || {}, [M, I] = x(!1), k = y !== void 0 && y.trim().length > 0;
|
|
8976
8976
|
function B() {
|
|
@@ -9034,9 +9034,11 @@ function md(e) {
|
|
|
9034
9034
|
}
|
|
9035
9035
|
return /* @__PURE__ */ P(je, {
|
|
9036
9036
|
wrap: !0,
|
|
9037
|
-
children: [
|
|
9037
|
+
children: [D && /* @__PURE__ */ P(Z, {
|
|
9038
|
+
children: [/* @__PURE__ */ n(Ae, {}), pt(), pt()]
|
|
9039
|
+
}), C ? null : /* @__PURE__ */ P(Z, {
|
|
9038
9040
|
children: [/* @__PURE__ */ n(ud, {
|
|
9039
|
-
disabled: l || a ||
|
|
9041
|
+
disabled: l || a || D,
|
|
9040
9042
|
searchText: y,
|
|
9041
9043
|
onSearch: (q) => {
|
|
9042
9044
|
q && q.trim().length > 0 ? v == null || v(q) : v == null || v(void 0);
|
|
@@ -9052,27 +9054,27 @@ function md(e) {
|
|
|
9052
9054
|
onClick: () => {
|
|
9053
9055
|
g == null || g(!h);
|
|
9054
9056
|
},
|
|
9055
|
-
disabled: l || a ||
|
|
9057
|
+
disabled: l || a || D,
|
|
9056
9058
|
badgeNumber: p == null ? void 0 : p.length
|
|
9057
|
-
}),
|
|
9058
|
-
disabled:
|
|
9059
|
+
}), pt(), /* @__PURE__ */ n(Fo, {
|
|
9060
|
+
disabled: D
|
|
9059
9061
|
}), /* @__PURE__ */ n(Ge, {
|
|
9060
9062
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
9061
9063
|
tooltip: L("duplicate"),
|
|
9062
|
-
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l ||
|
|
9064
|
+
disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || D,
|
|
9063
9065
|
loading: l,
|
|
9064
9066
|
onClick: U
|
|
9065
9067
|
}), /* @__PURE__ */ n(Ge, {
|
|
9066
9068
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
9067
9069
|
tooltip: L("delete"),
|
|
9068
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
9070
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
|
|
9069
9071
|
loading: a,
|
|
9070
9072
|
onClick: B
|
|
9071
|
-
}),
|
|
9073
|
+
}), pt()]
|
|
9072
9074
|
}), /* @__PURE__ */ n(Ge, {
|
|
9073
9075
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
9074
9076
|
tooltip: L("showLogs"),
|
|
9075
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
9077
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
|
|
9076
9078
|
loading: !1,
|
|
9077
9079
|
onClick: () => {
|
|
9078
9080
|
Oo(u, o[0].id, L);
|
|
@@ -9080,33 +9082,33 @@ function md(e) {
|
|
|
9080
9082
|
}), /* @__PURE__ */ n(Ge, {
|
|
9081
9083
|
icon: /* @__PURE__ */ n(ln, {}),
|
|
9082
9084
|
tooltip: L("refresh"),
|
|
9083
|
-
disabled: l || a ||
|
|
9085
|
+
disabled: l || a || D,
|
|
9084
9086
|
loading: !1,
|
|
9085
9087
|
onClick: () => {
|
|
9086
9088
|
var q;
|
|
9087
9089
|
(q = f == null ? void 0 : f.current) == null || q.refreshResults();
|
|
9088
9090
|
}
|
|
9089
|
-
}), !C && /* @__PURE__ */ P(
|
|
9090
|
-
children: [
|
|
9091
|
+
}), !C && /* @__PURE__ */ P(Z, {
|
|
9092
|
+
children: [pt(), /* @__PURE__ */ n(Zn, {
|
|
9091
9093
|
currentView: r,
|
|
9092
9094
|
availableViews: t,
|
|
9093
9095
|
onChangeView: (q) => {
|
|
9094
9096
|
O == null || O(r), i == null || i(q);
|
|
9095
9097
|
},
|
|
9096
9098
|
previousView: b,
|
|
9097
|
-
disabled:
|
|
9099
|
+
disabled: D
|
|
9098
9100
|
})]
|
|
9099
|
-
}),
|
|
9101
|
+
}), pt(), /* @__PURE__ */ n(It, {
|
|
9100
9102
|
icon: /* @__PURE__ */ n(Hn, {}),
|
|
9101
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
9103
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
|
|
9102
9104
|
tooltip: L("actions"),
|
|
9103
9105
|
items: F == null ? void 0 : F.action,
|
|
9104
9106
|
onItemClick: (q) => {
|
|
9105
9107
|
!q || W(q);
|
|
9106
9108
|
}
|
|
9107
|
-
}), /* @__PURE__ */ n(
|
|
9109
|
+
}), /* @__PURE__ */ n(It, {
|
|
9108
9110
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
9109
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
9111
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
|
|
9110
9112
|
tooltip: L("reports"),
|
|
9111
9113
|
items: F == null ? void 0 : F.print,
|
|
9112
9114
|
onItemClick: (q) => {
|
|
@@ -9118,8 +9120,8 @@ function md(e) {
|
|
|
9118
9120
|
}
|
|
9119
9121
|
});
|
|
9120
9122
|
}
|
|
9121
|
-
}), S && /* @__PURE__ */ P(
|
|
9122
|
-
children: [
|
|
9123
|
+
}), S && /* @__PURE__ */ P(Z, {
|
|
9124
|
+
children: [pt(), /* @__PURE__ */ n(It, {
|
|
9123
9125
|
icon: /* @__PURE__ */ n(Rr, {
|
|
9124
9126
|
component: () => /* @__PURE__ */ P("svg", {
|
|
9125
9127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9159,7 +9161,7 @@ function md(e) {
|
|
|
9159
9161
|
onItemClick: (q) => {
|
|
9160
9162
|
if (q.id === "print_screen") {
|
|
9161
9163
|
let E = (o == null ? void 0 : o.map((N) => N.id)) || [];
|
|
9162
|
-
E.length === 0 && (E = (
|
|
9164
|
+
E.length === 0 && (E = (V == null ? void 0 : V.map((N) => N.id)) || []), W({
|
|
9163
9165
|
id: -1,
|
|
9164
9166
|
model: u,
|
|
9165
9167
|
report_name: "printscreen.list",
|
|
@@ -9173,7 +9175,7 @@ function md(e) {
|
|
|
9173
9175
|
}
|
|
9174
9176
|
I(!0);
|
|
9175
9177
|
},
|
|
9176
|
-
disabled: l || a ||
|
|
9178
|
+
disabled: l || a || D || k
|
|
9177
9179
|
}), /* @__PURE__ */ n(Hc, {
|
|
9178
9180
|
visible: M,
|
|
9179
9181
|
locale: T,
|
|
@@ -9183,13 +9185,13 @@ function md(e) {
|
|
|
9183
9185
|
limit: _,
|
|
9184
9186
|
totalRegisters: $ || 0,
|
|
9185
9187
|
selectedRegistersToExport: o,
|
|
9186
|
-
visibleRegisters: (
|
|
9188
|
+
visibleRegisters: (V == null ? void 0 : V.length) || 0,
|
|
9187
9189
|
context: w
|
|
9188
9190
|
})]
|
|
9189
9191
|
})]
|
|
9190
9192
|
});
|
|
9191
9193
|
}
|
|
9192
|
-
function
|
|
9194
|
+
function pt() {
|
|
9193
9195
|
return /* @__PURE__ */ n("div", {
|
|
9194
9196
|
className: "inline-block w-2"
|
|
9195
9197
|
});
|
|
@@ -9213,7 +9215,7 @@ const hd = (e) => {
|
|
|
9213
9215
|
currentView: h,
|
|
9214
9216
|
setPreviousView: g
|
|
9215
9217
|
} = K(Xe);
|
|
9216
|
-
return t ? /* @__PURE__ */ P(
|
|
9218
|
+
return t ? /* @__PURE__ */ P(Z, {
|
|
9217
9219
|
children: [/* @__PURE__ */ n(pn, {
|
|
9218
9220
|
children: /* @__PURE__ */ n(md, {
|
|
9219
9221
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
@@ -9234,8 +9236,8 @@ const hd = (e) => {
|
|
|
9234
9236
|
id: y
|
|
9235
9237
|
} = v;
|
|
9236
9238
|
f(y);
|
|
9237
|
-
const
|
|
9238
|
-
g == null || g(h), d(
|
|
9239
|
+
const D = u.findIndex((b) => b.id === y);
|
|
9240
|
+
g == null || g(h), d(D);
|
|
9239
9241
|
const O = m.find((b) => b.type === "form");
|
|
9240
9242
|
c(O);
|
|
9241
9243
|
}
|
|
@@ -9361,7 +9363,7 @@ function bd(e, t) {
|
|
|
9361
9363
|
action_type: h,
|
|
9362
9364
|
treeExpandable: g = !1,
|
|
9363
9365
|
limit: v
|
|
9364
|
-
} = e, [y,
|
|
9366
|
+
} = e, [y, D] = x(), [O, b] = x([]), [V, _] = x(!0), $ = m || void 0, [w, C] = x($), [F, S] = x([]), [L, T] = x(), [R, A] = x([]), [M, I] = x(), [k, B] = x(0), [j, U] = x(!1), [W, z] = x(!1), [q, E] = x(), {
|
|
9365
9367
|
t: N
|
|
9366
9368
|
} = K(ge), ee = me(), le = me(), ce = K(at), {
|
|
9367
9369
|
setCurrentView: ne,
|
|
@@ -9378,9 +9380,9 @@ function bd(e, t) {
|
|
|
9378
9380
|
C(Q), J == null || J(Q);
|
|
9379
9381
|
}
|
|
9380
9382
|
function Te(Q) {
|
|
9381
|
-
|
|
9383
|
+
D(Q), ne == null || ne(Q);
|
|
9382
9384
|
}
|
|
9383
|
-
|
|
9385
|
+
wt(t, () => ({
|
|
9384
9386
|
canWeClose: Fe
|
|
9385
9387
|
}));
|
|
9386
9388
|
const ye = async () => {
|
|
@@ -9409,8 +9411,8 @@ function bd(e, t) {
|
|
|
9409
9411
|
switch (De) {
|
|
9410
9412
|
case "dashboard": {
|
|
9411
9413
|
const tt = s.find((nt) => {
|
|
9412
|
-
const [,
|
|
9413
|
-
return
|
|
9414
|
+
const [, X] = nt;
|
|
9415
|
+
return X === "form";
|
|
9414
9416
|
});
|
|
9415
9417
|
let Ze;
|
|
9416
9418
|
tt && (Ze = {
|
|
@@ -9572,7 +9574,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9572
9574
|
Te(Q);
|
|
9573
9575
|
}
|
|
9574
9576
|
}
|
|
9575
|
-
return
|
|
9577
|
+
return V ? /* @__PURE__ */ n(Ae, {}) : y ? /* @__PURE__ */ P(Xa, {
|
|
9576
9578
|
title: a,
|
|
9577
9579
|
currentView: y,
|
|
9578
9580
|
setCurrentView: Te,
|
|
@@ -9607,7 +9609,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9607
9609
|
})]
|
|
9608
9610
|
}) : null;
|
|
9609
9611
|
}
|
|
9610
|
-
const Do =
|
|
9612
|
+
const Do = vt(bd);
|
|
9611
9613
|
async function xd({
|
|
9612
9614
|
actionId: e,
|
|
9613
9615
|
rootContext: t = {},
|
|
@@ -9616,7 +9618,7 @@ async function xd({
|
|
|
9616
9618
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
|
|
9617
9619
|
action: o,
|
|
9618
9620
|
context: t
|
|
9619
|
-
}), a =
|
|
9621
|
+
}), a = yt({
|
|
9620
9622
|
context: s.context,
|
|
9621
9623
|
values: r,
|
|
9622
9624
|
fields: {}
|
|
@@ -9631,18 +9633,18 @@ async function xd({
|
|
|
9631
9633
|
limit: c,
|
|
9632
9634
|
view_type: m
|
|
9633
9635
|
} = s, p = m === "tree", h = [];
|
|
9634
|
-
for (const
|
|
9635
|
-
const [O, b] =
|
|
9636
|
+
for (const D of u) {
|
|
9637
|
+
const [O, b] = D;
|
|
9636
9638
|
if (O)
|
|
9637
|
-
h.push(
|
|
9639
|
+
h.push(D);
|
|
9638
9640
|
else {
|
|
9639
|
-
const { view_id:
|
|
9641
|
+
const { view_id: V } = await H.getHandler().getView({
|
|
9640
9642
|
model: d,
|
|
9641
9643
|
type: b,
|
|
9642
9644
|
id: O,
|
|
9643
9645
|
context: { ...t, ...a }
|
|
9644
9646
|
});
|
|
9645
|
-
h.push([
|
|
9647
|
+
h.push([V, b]);
|
|
9646
9648
|
}
|
|
9647
9649
|
}
|
|
9648
9650
|
const [g, v] = h[0], y = { id: g, type: v };
|
|
@@ -9770,12 +9772,12 @@ function Id(e) {
|
|
|
9770
9772
|
domain: s = [],
|
|
9771
9773
|
visible: a = !0,
|
|
9772
9774
|
parentContext: l = {}
|
|
9773
|
-
} = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [
|
|
9774
|
-
U(!0), O(J),
|
|
9775
|
+
} = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [D, O] = x(1), [b, V] = x(0), _ = me(_d), $ = me([]), [w, C] = x(0), [F, S] = x([]), [L, T] = x(void 0), [R, A] = x(), [M, I] = x(), [k, B] = x(), [j, U] = x(!1), W = me([]), z = (J) => {
|
|
9776
|
+
U(!0), O(J), V((J - 1) * _.current);
|
|
9775
9777
|
}, q = async () => {
|
|
9776
9778
|
const J = W.current.length > 0 ? W.current : s, we = fn($.current, J), {
|
|
9777
9779
|
colors: Se
|
|
9778
|
-
} =
|
|
9780
|
+
} = Ot(h), {
|
|
9779
9781
|
totalItems: Pe,
|
|
9780
9782
|
results: fe,
|
|
9781
9783
|
attrsEvaluated: oe
|
|
@@ -9791,7 +9793,7 @@ function Id(e) {
|
|
|
9791
9793
|
}
|
|
9792
9794
|
});
|
|
9793
9795
|
T(Xt(oe));
|
|
9794
|
-
const Te =
|
|
9796
|
+
const Te = _t({
|
|
9795
9797
|
resultsToSort: fe,
|
|
9796
9798
|
sorter: R,
|
|
9797
9799
|
fields: {
|
|
@@ -9811,7 +9813,7 @@ function Id(e) {
|
|
|
9811
9813
|
};
|
|
9812
9814
|
pe(() => {
|
|
9813
9815
|
!f || a && E();
|
|
9814
|
-
}, [
|
|
9816
|
+
}, [D, b, f, a]);
|
|
9815
9817
|
const N = async (J) => {
|
|
9816
9818
|
c(!1), u(!0), B(void 0);
|
|
9817
9819
|
try {
|
|
@@ -9868,7 +9870,7 @@ function Id(e) {
|
|
|
9868
9870
|
showPagination: !1,
|
|
9869
9871
|
total: w,
|
|
9870
9872
|
limit: _.current,
|
|
9871
|
-
page:
|
|
9873
|
+
page: D,
|
|
9872
9874
|
treeView: h,
|
|
9873
9875
|
results: F,
|
|
9874
9876
|
onRequestPageChange: z,
|
|
@@ -9878,7 +9880,7 @@ function Id(e) {
|
|
|
9878
9880
|
sorter: R,
|
|
9879
9881
|
onChangeSort: (J) => {
|
|
9880
9882
|
A == null || A(J);
|
|
9881
|
-
const we =
|
|
9883
|
+
const we = _t({
|
|
9882
9884
|
resultsToSort: F,
|
|
9883
9885
|
sorter: J,
|
|
9884
9886
|
fields: {
|
|
@@ -9943,7 +9945,7 @@ function Vd(e, t) {
|
|
|
9943
9945
|
} = K(Xn), g = me(), v = me();
|
|
9944
9946
|
pe(() => {
|
|
9945
9947
|
y();
|
|
9946
|
-
}, [r, o, i]),
|
|
9948
|
+
}, [r, o, i]), wt(t, () => ({
|
|
9947
9949
|
refresh: () => {
|
|
9948
9950
|
y();
|
|
9949
9951
|
},
|
|
@@ -9952,19 +9954,19 @@ function Vd(e, t) {
|
|
|
9952
9954
|
async function y() {
|
|
9953
9955
|
u(!0), m(!0), c(void 0);
|
|
9954
9956
|
try {
|
|
9955
|
-
const w = await
|
|
9957
|
+
const w = await D(), C = await b(w), F = w.fields[Tn].relation, S = C[Tn].items;
|
|
9956
9958
|
v.current = w.fields;
|
|
9957
9959
|
const L = await O({
|
|
9958
9960
|
items: S,
|
|
9959
9961
|
model: F,
|
|
9960
9962
|
context: i
|
|
9961
|
-
}), T = await
|
|
9963
|
+
}), T = await V(L);
|
|
9962
9964
|
l(T), u(!1), m(!1);
|
|
9963
9965
|
} catch (w) {
|
|
9964
9966
|
c(JSON.stringify(w));
|
|
9965
9967
|
}
|
|
9966
9968
|
}
|
|
9967
|
-
async function
|
|
9969
|
+
async function D() {
|
|
9968
9970
|
return await H.getHandler().getView({
|
|
9969
9971
|
model: r,
|
|
9970
9972
|
type: "form",
|
|
@@ -10003,7 +10005,7 @@ function Vd(e, t) {
|
|
|
10003
10005
|
context: i
|
|
10004
10006
|
}))[0];
|
|
10005
10007
|
}
|
|
10006
|
-
async function
|
|
10008
|
+
async function V(w) {
|
|
10007
10009
|
const C = [];
|
|
10008
10010
|
for (const F of w) {
|
|
10009
10011
|
const {
|
|
@@ -10203,7 +10205,7 @@ function Vd(e, t) {
|
|
|
10203
10205
|
})
|
|
10204
10206
|
});
|
|
10205
10207
|
}
|
|
10206
|
-
const Ad =
|
|
10208
|
+
const Ad = vt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
10207
10209
|
...e,
|
|
10208
10210
|
children: /* @__PURE__ */ n(Rd, {
|
|
10209
10211
|
...e
|
|
@@ -10245,9 +10247,9 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10245
10247
|
field: g,
|
|
10246
10248
|
columns: v
|
|
10247
10249
|
} = r, y = K(Ee), {
|
|
10248
|
-
getContext:
|
|
10250
|
+
getContext: D
|
|
10249
10251
|
} = y || {};
|
|
10250
|
-
|
|
10252
|
+
xt(() => {
|
|
10251
10253
|
b();
|
|
10252
10254
|
}, [o]);
|
|
10253
10255
|
const O = (w) => {
|
|
@@ -10261,7 +10263,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10261
10263
|
if (r.domain) {
|
|
10262
10264
|
const C = await H.getHandler().evalDomain({
|
|
10263
10265
|
domain: r.domain,
|
|
10264
|
-
values:
|
|
10266
|
+
values: Rt({
|
|
10265
10267
|
fields: y == null ? void 0 : y.getFields(),
|
|
10266
10268
|
values: y.getPlainValues()
|
|
10267
10269
|
}),
|
|
@@ -10276,7 +10278,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10276
10278
|
params: w,
|
|
10277
10279
|
fields: [g],
|
|
10278
10280
|
context: {
|
|
10279
|
-
...
|
|
10281
|
+
...D == null ? void 0 : D(),
|
|
10280
10282
|
...p
|
|
10281
10283
|
}
|
|
10282
10284
|
})).map((S) => {
|
|
@@ -10301,7 +10303,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10301
10303
|
banner: !0
|
|
10302
10304
|
});
|
|
10303
10305
|
}
|
|
10304
|
-
const
|
|
10306
|
+
const V = () => {
|
|
10305
10307
|
$(a.map((w) => w.value));
|
|
10306
10308
|
}, _ = () => {
|
|
10307
10309
|
$([]);
|
|
@@ -10320,7 +10322,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10320
10322
|
});
|
|
10321
10323
|
}), O(C);
|
|
10322
10324
|
};
|
|
10323
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(
|
|
10325
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(Z, {
|
|
10324
10326
|
children: /* @__PURE__ */ P("div", {
|
|
10325
10327
|
className: "flex flex-row",
|
|
10326
10328
|
children: [/* @__PURE__ */ n(Nt.Group, {
|
|
@@ -10341,7 +10343,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
|
10341
10343
|
})
|
|
10342
10344
|
}), !h && /* @__PURE__ */ P(je, {
|
|
10343
10345
|
children: [/* @__PURE__ */ n(Ie, {
|
|
10344
|
-
onClick:
|
|
10346
|
+
onClick: V,
|
|
10345
10347
|
disabled: s.length == a.length,
|
|
10346
10348
|
children: "Check all"
|
|
10347
10349
|
}), /* @__PURE__ */ n(Ie, {
|
|
@@ -10520,26 +10522,26 @@ function qd(e, t) {
|
|
|
10520
10522
|
closable: !0,
|
|
10521
10523
|
content: /* @__PURE__ */ n(Ud, {})
|
|
10522
10524
|
}]), f = me(/* @__PURE__ */ new Map()), c = me();
|
|
10523
|
-
|
|
10525
|
+
wt(t, () => ({
|
|
10524
10526
|
retrieveAndOpenAction: h,
|
|
10525
10527
|
openShortcut: y
|
|
10526
10528
|
}));
|
|
10527
10529
|
function m(b) {
|
|
10528
10530
|
if (b === a) {
|
|
10529
|
-
const
|
|
10530
|
-
d[
|
|
10531
|
+
const V = d.findIndex((_) => _.key === b);
|
|
10532
|
+
d[V - 1] && l(d[V - 1].key), d[V + 1] && l(d[V + 1].key);
|
|
10531
10533
|
}
|
|
10532
|
-
u(d.filter((
|
|
10534
|
+
u(d.filter((V) => V.key !== b)), f.current.delete(b);
|
|
10533
10535
|
}
|
|
10534
10536
|
function p({
|
|
10535
10537
|
tabKey: b,
|
|
10536
|
-
canWeClose:
|
|
10538
|
+
canWeClose: V
|
|
10537
10539
|
}) {
|
|
10538
|
-
f.current.set(b,
|
|
10540
|
+
f.current.set(b, V);
|
|
10539
10541
|
}
|
|
10540
10542
|
async function h({
|
|
10541
10543
|
action: b,
|
|
10542
|
-
values:
|
|
10544
|
+
values: V,
|
|
10543
10545
|
forced_values: _,
|
|
10544
10546
|
initialViewType: $,
|
|
10545
10547
|
res_id: w,
|
|
@@ -10553,7 +10555,7 @@ function qd(e, t) {
|
|
|
10553
10555
|
We("Action type not supported");
|
|
10554
10556
|
return;
|
|
10555
10557
|
}
|
|
10556
|
-
const [S, L] = b.split(","), T = parseInt(L), R =
|
|
10558
|
+
const [S, L] = b.split(","), T = parseInt(L), R = yt({
|
|
10557
10559
|
context: F.context,
|
|
10558
10560
|
values: i,
|
|
10559
10561
|
fields: {}
|
|
@@ -10620,7 +10622,7 @@ function qd(e, t) {
|
|
|
10620
10622
|
initialView: q,
|
|
10621
10623
|
action_type: S,
|
|
10622
10624
|
action_id: T,
|
|
10623
|
-
values:
|
|
10625
|
+
values: V,
|
|
10624
10626
|
forced_values: _,
|
|
10625
10627
|
res_id: w,
|
|
10626
10628
|
treeExpandable: W,
|
|
@@ -10629,7 +10631,7 @@ function qd(e, t) {
|
|
|
10629
10631
|
}
|
|
10630
10632
|
function g({
|
|
10631
10633
|
title: b,
|
|
10632
|
-
content:
|
|
10634
|
+
content: V,
|
|
10633
10635
|
key: _,
|
|
10634
10636
|
action: $
|
|
10635
10637
|
}) {
|
|
@@ -10638,13 +10640,13 @@ function qd(e, t) {
|
|
|
10638
10640
|
title: b,
|
|
10639
10641
|
key: _,
|
|
10640
10642
|
closable: !0,
|
|
10641
|
-
content:
|
|
10643
|
+
content: V,
|
|
10642
10644
|
action: $
|
|
10643
10645
|
}]), l(_);
|
|
10644
10646
|
}
|
|
10645
10647
|
async function v({
|
|
10646
10648
|
relateData: b,
|
|
10647
|
-
fields:
|
|
10649
|
+
fields: V,
|
|
10648
10650
|
values: _,
|
|
10649
10651
|
action_id: $,
|
|
10650
10652
|
action_type: w
|
|
@@ -10660,23 +10662,23 @@ function qd(e, t) {
|
|
|
10660
10662
|
} = b, [M, I] = L[0], k = {
|
|
10661
10663
|
id: M,
|
|
10662
10664
|
type: I
|
|
10663
|
-
}, B =
|
|
10665
|
+
}, B = yt({
|
|
10664
10666
|
context: F,
|
|
10665
10667
|
values: {
|
|
10666
10668
|
..._,
|
|
10667
10669
|
...i
|
|
10668
10670
|
},
|
|
10669
|
-
fields:
|
|
10671
|
+
fields: V
|
|
10670
10672
|
}), j = S ? await H.getHandler().evalDomain({
|
|
10671
10673
|
domain: S,
|
|
10672
|
-
values:
|
|
10673
|
-
fields:
|
|
10674
|
+
values: Rt({
|
|
10675
|
+
fields: V,
|
|
10674
10676
|
values: {
|
|
10675
10677
|
..._,
|
|
10676
10678
|
...i
|
|
10677
10679
|
}
|
|
10678
10680
|
}),
|
|
10679
|
-
fields:
|
|
10681
|
+
fields: V,
|
|
10680
10682
|
context: {
|
|
10681
10683
|
...o,
|
|
10682
10684
|
...B
|
|
@@ -10700,14 +10702,14 @@ function qd(e, t) {
|
|
|
10700
10702
|
}
|
|
10701
10703
|
async function y(b) {
|
|
10702
10704
|
const {
|
|
10703
|
-
action_id:
|
|
10705
|
+
action_id: V,
|
|
10704
10706
|
action_type: _,
|
|
10705
10707
|
res_id: $,
|
|
10706
10708
|
view_id: w
|
|
10707
|
-
} = b, C = `${_},${
|
|
10709
|
+
} = b, C = `${_},${V}`, F = await H.getHandler().getActionData({
|
|
10708
10710
|
action: C,
|
|
10709
10711
|
context: o
|
|
10710
|
-
}), S =
|
|
10712
|
+
}), S = yt({
|
|
10711
10713
|
context: F.context,
|
|
10712
10714
|
values: i,
|
|
10713
10715
|
fields: {}
|
|
@@ -10768,16 +10770,16 @@ function qd(e, t) {
|
|
|
10768
10770
|
title: A,
|
|
10769
10771
|
target: M,
|
|
10770
10772
|
initialView: z,
|
|
10771
|
-
action_id:
|
|
10773
|
+
action_id: V,
|
|
10772
10774
|
action_type: _,
|
|
10773
10775
|
res_id: $,
|
|
10774
10776
|
treeExpandable: B,
|
|
10775
10777
|
limit: k
|
|
10776
10778
|
});
|
|
10777
10779
|
}
|
|
10778
|
-
async function
|
|
10780
|
+
async function D({
|
|
10779
10781
|
model: b,
|
|
10780
|
-
values:
|
|
10782
|
+
values: V,
|
|
10781
10783
|
forced_values: _,
|
|
10782
10784
|
initialViewType: $,
|
|
10783
10785
|
res_id: w,
|
|
@@ -10786,7 +10788,7 @@ function qd(e, t) {
|
|
|
10786
10788
|
const F = await H.getHandler().getActionStringForModel(b);
|
|
10787
10789
|
await h({
|
|
10788
10790
|
action: F,
|
|
10789
|
-
values:
|
|
10791
|
+
values: V,
|
|
10790
10792
|
forced_values: _,
|
|
10791
10793
|
initialViewType: $,
|
|
10792
10794
|
res_id: w,
|
|
@@ -10795,7 +10797,7 @@ function qd(e, t) {
|
|
|
10795
10797
|
}
|
|
10796
10798
|
async function O({
|
|
10797
10799
|
domain: b,
|
|
10798
|
-
context:
|
|
10800
|
+
context: V,
|
|
10799
10801
|
model: _,
|
|
10800
10802
|
views: $,
|
|
10801
10803
|
title: w,
|
|
@@ -10817,7 +10819,7 @@ function qd(e, t) {
|
|
|
10817
10819
|
id: F.type === "form" ? F.id : void 0,
|
|
10818
10820
|
context: {
|
|
10819
10821
|
...o,
|
|
10820
|
-
...
|
|
10822
|
+
...V
|
|
10821
10823
|
}
|
|
10822
10824
|
});
|
|
10823
10825
|
c.current.openActionModal({
|
|
@@ -10826,7 +10828,7 @@ function qd(e, t) {
|
|
|
10826
10828
|
formView: B,
|
|
10827
10829
|
context: {
|
|
10828
10830
|
...o,
|
|
10829
|
-
...
|
|
10831
|
+
...V
|
|
10830
10832
|
},
|
|
10831
10833
|
actionData: {
|
|
10832
10834
|
action_id: S,
|
|
@@ -10855,7 +10857,7 @@ function qd(e, t) {
|
|
|
10855
10857
|
model: _,
|
|
10856
10858
|
context: {
|
|
10857
10859
|
...o,
|
|
10858
|
-
...
|
|
10860
|
+
...V
|
|
10859
10861
|
},
|
|
10860
10862
|
domain: b,
|
|
10861
10863
|
setCanWeClose: p,
|
|
@@ -10876,12 +10878,12 @@ function qd(e, t) {
|
|
|
10876
10878
|
openShortcut: y,
|
|
10877
10879
|
openAction: O,
|
|
10878
10880
|
openRelate: v,
|
|
10879
|
-
openDefaultActionForModel:
|
|
10881
|
+
openDefaultActionForModel: D,
|
|
10880
10882
|
tabs: d,
|
|
10881
10883
|
activeKey: a,
|
|
10882
10884
|
onRemoveTab: async (b) => {
|
|
10883
|
-
const
|
|
10884
|
-
(await (
|
|
10885
|
+
const V = f.current.get(b);
|
|
10886
|
+
(await (V == null ? void 0 : V()) || a === "welcome") && m(b);
|
|
10885
10887
|
},
|
|
10886
10888
|
onChangeTab: (b) => {
|
|
10887
10889
|
l(b);
|
|
@@ -10894,7 +10896,7 @@ function qd(e, t) {
|
|
|
10894
10896
|
})
|
|
10895
10897
|
});
|
|
10896
10898
|
}
|
|
10897
|
-
const Tu =
|
|
10899
|
+
const Tu = vt(qd), {
|
|
10898
10900
|
useToken: zd
|
|
10899
10901
|
} = Me;
|
|
10900
10902
|
function Jd(e) {
|
|
@@ -10968,7 +10970,7 @@ function Fu() {
|
|
|
10968
10970
|
onRemoveTab: i,
|
|
10969
10971
|
onChangeTab: o
|
|
10970
10972
|
} = e || {};
|
|
10971
|
-
return /* @__PURE__ */ n(
|
|
10973
|
+
return /* @__PURE__ */ n(Z, {
|
|
10972
10974
|
children: r.map((s) => /* @__PURE__ */ n(Jd, {
|
|
10973
10975
|
tabKey: s.key,
|
|
10974
10976
|
label: s.title,
|
|
@@ -10998,7 +11000,7 @@ function Ou() {
|
|
|
10998
11000
|
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Xd, {
|
|
10999
11001
|
tab: i
|
|
11000
11002
|
}, i.key))) || null;
|
|
11001
|
-
return /* @__PURE__ */ n(
|
|
11003
|
+
return /* @__PURE__ */ n(Z, {
|
|
11002
11004
|
children: r
|
|
11003
11005
|
});
|
|
11004
11006
|
}
|
|
@@ -11015,10 +11017,10 @@ const {
|
|
|
11015
11017
|
} = K(ge) || {}, {
|
|
11016
11018
|
token: v
|
|
11017
11019
|
} = Qd(), y = K(at), {
|
|
11018
|
-
openShortcut:
|
|
11020
|
+
openShortcut: D,
|
|
11019
11021
|
tabs: O,
|
|
11020
11022
|
activeKey: b,
|
|
11021
|
-
currentView:
|
|
11023
|
+
currentView: V,
|
|
11022
11024
|
currentId: _,
|
|
11023
11025
|
openDefaultActionForModel: $
|
|
11024
11026
|
} = y || {};
|
|
@@ -11026,7 +11028,7 @@ const {
|
|
|
11026
11028
|
w();
|
|
11027
11029
|
}, []), pe(() => {
|
|
11028
11030
|
S();
|
|
11029
|
-
}, [O, b,
|
|
11031
|
+
}, [O, b, V, _]);
|
|
11030
11032
|
async function w() {
|
|
11031
11033
|
try {
|
|
11032
11034
|
m(!0);
|
|
@@ -11042,13 +11044,13 @@ const {
|
|
|
11042
11044
|
const {
|
|
11043
11045
|
key: I
|
|
11044
11046
|
} = M, k = u.find((B) => B.id === Number(I));
|
|
11045
|
-
(k == null ? void 0 : k.action_type) !== "ir.actions.wizard" && (k &&
|
|
11047
|
+
(k == null ? void 0 : k.action_type) !== "ir.actions.wizard" && (k && D(k), d(!1));
|
|
11046
11048
|
}
|
|
11047
11049
|
function F(M) {
|
|
11048
11050
|
M && w(), d(M);
|
|
11049
11051
|
}
|
|
11050
11052
|
async function S() {
|
|
11051
|
-
if (!
|
|
11053
|
+
if (!V)
|
|
11052
11054
|
return;
|
|
11053
11055
|
const M = O.find((W) => W.key === b), {
|
|
11054
11056
|
id: I,
|
|
@@ -11058,9 +11060,9 @@ const {
|
|
|
11058
11060
|
a(!1);
|
|
11059
11061
|
return;
|
|
11060
11062
|
}
|
|
11061
|
-
const B =
|
|
11063
|
+
const B = V.view_id;
|
|
11062
11064
|
let j = !1;
|
|
11063
|
-
|
|
11065
|
+
V.type === "form" && (j = _ || !1);
|
|
11064
11066
|
const U = await r({
|
|
11065
11067
|
action_id: I,
|
|
11066
11068
|
action_type: k,
|
|
@@ -11108,7 +11110,7 @@ const {
|
|
|
11108
11110
|
style: {
|
|
11109
11111
|
padding: "1rem"
|
|
11110
11112
|
}
|
|
11111
|
-
}) : u.length > 0 ? /* @__PURE__ */ n(
|
|
11113
|
+
}) : u.length > 0 ? /* @__PURE__ */ n(Z, {
|
|
11112
11114
|
children: u.map((M) => /* @__PURE__ */ n($e.Item, {
|
|
11113
11115
|
children: /* @__PURE__ */ n(R, {
|
|
11114
11116
|
title: M.name,
|
|
@@ -11146,18 +11148,18 @@ const {
|
|
|
11146
11148
|
if (s && p)
|
|
11147
11149
|
await o(p);
|
|
11148
11150
|
else {
|
|
11149
|
-
if (!
|
|
11151
|
+
if (!V)
|
|
11150
11152
|
return;
|
|
11151
11153
|
const M = O.find((U) => U.key === b), {
|
|
11152
11154
|
id: I,
|
|
11153
11155
|
type: k
|
|
11154
|
-
} = (M == null ? void 0 : M.action) || {}, B =
|
|
11156
|
+
} = (M == null ? void 0 : M.action) || {}, B = V.view_id;
|
|
11155
11157
|
let j = !1;
|
|
11156
11158
|
if (!I || !k) {
|
|
11157
11159
|
a(!1);
|
|
11158
11160
|
return;
|
|
11159
11161
|
}
|
|
11160
|
-
|
|
11162
|
+
V.type === "form" && (j = _ || !1), await i({
|
|
11161
11163
|
action_id: I,
|
|
11162
11164
|
action_type: k,
|
|
11163
11165
|
view_id: B,
|
|
@@ -11166,7 +11168,7 @@ const {
|
|
|
11166
11168
|
}
|
|
11167
11169
|
await w(), a(!s);
|
|
11168
11170
|
}
|
|
11169
|
-
return /* @__PURE__ */ P(
|
|
11171
|
+
return /* @__PURE__ */ P(Z, {
|
|
11170
11172
|
children: [/* @__PURE__ */ n(Ie, {
|
|
11171
11173
|
type: s ? "primary" : "default",
|
|
11172
11174
|
icon: s ? /* @__PURE__ */ n(Nr, {
|
|
@@ -11190,7 +11192,7 @@ const {
|
|
|
11190
11192
|
borderTopLeftRadius: 0,
|
|
11191
11193
|
borderBottomLeftRadius: 0
|
|
11192
11194
|
},
|
|
11193
|
-
icon: /* @__PURE__ */ n(
|
|
11195
|
+
icon: /* @__PURE__ */ n(At, {
|
|
11194
11196
|
style: {
|
|
11195
11197
|
fontSize: "0.5em"
|
|
11196
11198
|
}
|