@gisce/react-ooui 1.2.4 → 1.2.5-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/viewHelper.d.ts +10 -0
- package/dist/helpers/viewHelper.d.ts.map +1 -0
- package/dist/hooks/useSearch.d.ts.map +1 -1
- package/dist/react-ooui.es.js +753 -729
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +9 -9
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/views/ActionView.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/helpers/viewHelper.ts +23 -0
- package/src/hooks/useSearch.ts +2 -2
- package/src/types/index.ts +2 -0
- package/src/views/ActionView.tsx +24 -12
- package/src/widgets/views/Dashboard/DashboardTree.tsx +3 -4
- package/src/widgets/views/Tree.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import qe, { useContext as K, useState as x, useEffect as
|
|
2
|
-
import { Tooltip as ft, theme as Me, Typography as on, Form as
|
|
1
|
+
import qe, { useContext as K, useState as x, useEffect as pe, useRef as me, useCallback as ke, forwardRef as yt, useImperativeHandle as vt } 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 Re, Divider as sn, Space as je, Input as Qe, Select as wt, 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
3
|
import { Label as Dt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as gt, 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
5
|
import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as Vt, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as At, 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 X } 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";
|
|
@@ -330,7 +330,7 @@ const {
|
|
|
330
330
|
ca_ES: Bi,
|
|
331
331
|
en_US: Hi,
|
|
332
332
|
es_ES: ji
|
|
333
|
-
},
|
|
333
|
+
}, ge = qe.createContext(null), Wi = (e) => {
|
|
334
334
|
const {
|
|
335
335
|
children: t,
|
|
336
336
|
lang: r
|
|
@@ -338,7 +338,7 @@ const {
|
|
|
338
338
|
function i(o) {
|
|
339
339
|
return _e(o, r);
|
|
340
340
|
}
|
|
341
|
-
return /* @__PURE__ */ n(
|
|
341
|
+
return /* @__PURE__ */ n(ge.Provider, {
|
|
342
342
|
value: {
|
|
343
343
|
lang: r,
|
|
344
344
|
t: i
|
|
@@ -349,7 +349,7 @@ const {
|
|
|
349
349
|
var i;
|
|
350
350
|
return ((i = Ki[t]) == null ? void 0 : i[e]) || e;
|
|
351
351
|
};
|
|
352
|
-
function
|
|
352
|
+
function ve({
|
|
353
353
|
ooui: e,
|
|
354
354
|
children: t,
|
|
355
355
|
layout: r = "horizontal",
|
|
@@ -366,12 +366,12 @@ function we({
|
|
|
366
366
|
tooltip: c
|
|
367
367
|
} = e, {
|
|
368
368
|
t: m
|
|
369
|
-
} = K(
|
|
369
|
+
} = K(ge), p = a ? [{
|
|
370
370
|
required: !0,
|
|
371
371
|
message: m("fillRequiredField"),
|
|
372
372
|
type: l,
|
|
373
373
|
validator: d
|
|
374
|
-
}] : void 0, h = () => /* @__PURE__ */ n(
|
|
374
|
+
}] : void 0, h = () => /* @__PURE__ */ n(it.Item, {
|
|
375
375
|
className: "mb-0",
|
|
376
376
|
name: u,
|
|
377
377
|
valuePropName: i,
|
|
@@ -403,7 +403,7 @@ function we({
|
|
|
403
403
|
flex: "auto",
|
|
404
404
|
children: h()
|
|
405
405
|
})]
|
|
406
|
-
}))() : (() => /* @__PURE__ */ P(
|
|
406
|
+
}))() : (() => /* @__PURE__ */ P(X, {
|
|
407
407
|
children: [g, h()]
|
|
408
408
|
}))();
|
|
409
409
|
}
|
|
@@ -423,7 +423,7 @@ const {
|
|
|
423
423
|
cancelText: _e("cancel", r),
|
|
424
424
|
onOk: e
|
|
425
425
|
});
|
|
426
|
-
},
|
|
426
|
+
}, Ee = qe.createContext(null), Gi = (e) => {
|
|
427
427
|
const {
|
|
428
428
|
children: t,
|
|
429
429
|
activeId: r,
|
|
@@ -441,7 +441,7 @@ const {
|
|
|
441
441
|
elementHasLostFocus: h,
|
|
442
442
|
getFields: g
|
|
443
443
|
} = e;
|
|
444
|
-
return /* @__PURE__ */ n(
|
|
444
|
+
return /* @__PURE__ */ n(Ee.Provider, {
|
|
445
445
|
value: {
|
|
446
446
|
domain: f,
|
|
447
447
|
getValues: d,
|
|
@@ -552,7 +552,7 @@ const {
|
|
|
552
552
|
STOCK_CLEAR: "CloseSquare",
|
|
553
553
|
STOCK_UNINDENT: "AlignLeft",
|
|
554
554
|
STOCK_PREFERENCES: "Setting"
|
|
555
|
-
},
|
|
555
|
+
}, st = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), ir.hasOwnProperty(e) ? sr(ir[e], t) : sr(e, t));
|
|
556
556
|
function Ui(e) {
|
|
557
557
|
return `${e.split("-").map(
|
|
558
558
|
(t) => t.replace(
|
|
@@ -594,11 +594,11 @@ const Ur = (e) => {
|
|
|
594
594
|
icon: l,
|
|
595
595
|
context: d,
|
|
596
596
|
readOnly: u
|
|
597
|
-
} = t, f = K(
|
|
597
|
+
} = t, f = K(Ee), {
|
|
598
598
|
executeButtonAction: c
|
|
599
599
|
} = f || {}, [m, p] = x(!1), {
|
|
600
600
|
lang: h
|
|
601
|
-
} = K(
|
|
601
|
+
} = K(ge);
|
|
602
602
|
async function g() {
|
|
603
603
|
p(!0), await c({
|
|
604
604
|
type: s,
|
|
@@ -623,11 +623,11 @@ const Ur = (e) => {
|
|
|
623
623
|
if (m)
|
|
624
624
|
return /* @__PURE__ */ n(et, {});
|
|
625
625
|
if (l) {
|
|
626
|
-
const V =
|
|
626
|
+
const V = st(l);
|
|
627
627
|
return V && /* @__PURE__ */ n(V, {});
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
return /* @__PURE__ */ n(
|
|
630
|
+
return /* @__PURE__ */ n(ve, {
|
|
631
631
|
ooui: t,
|
|
632
632
|
children: /* @__PURE__ */ n(Ie, {
|
|
633
633
|
block: !0,
|
|
@@ -660,16 +660,16 @@ const Ur = (e) => {
|
|
|
660
660
|
danger: c,
|
|
661
661
|
context: m,
|
|
662
662
|
readOnly: p
|
|
663
|
-
} = r || {}, h = K(
|
|
663
|
+
} = r || {}, h = K(Ee), {
|
|
664
664
|
executeButtonAction: g
|
|
665
665
|
} = h || {}, [v, y] = x(!1), {
|
|
666
666
|
lang: V
|
|
667
|
-
} = K(
|
|
667
|
+
} = K(ge);
|
|
668
668
|
function O() {
|
|
669
669
|
if (v)
|
|
670
670
|
return /* @__PURE__ */ n(et, {});
|
|
671
671
|
if (u) {
|
|
672
|
-
const _ =
|
|
672
|
+
const _ = st(u);
|
|
673
673
|
return _ && /* @__PURE__ */ n(_, {});
|
|
674
674
|
}
|
|
675
675
|
}
|
|
@@ -696,7 +696,7 @@ const Ur = (e) => {
|
|
|
696
696
|
if (t.buttons.length === 0)
|
|
697
697
|
return null;
|
|
698
698
|
if (t.buttons.length > 1)
|
|
699
|
-
return /* @__PURE__ */ n(
|
|
699
|
+
return /* @__PURE__ */ n(ve, {
|
|
700
700
|
ooui: new Fn({
|
|
701
701
|
ooui: t
|
|
702
702
|
}),
|
|
@@ -761,7 +761,7 @@ const Ur = (e) => {
|
|
|
761
761
|
if (g)
|
|
762
762
|
return /* @__PURE__ */ n(et, {});
|
|
763
763
|
if (c) {
|
|
764
|
-
const b =
|
|
764
|
+
const b = st(c);
|
|
765
765
|
return b && /* @__PURE__ */ n(b, {});
|
|
766
766
|
}
|
|
767
767
|
}
|
|
@@ -788,7 +788,7 @@ function dn() {
|
|
|
788
788
|
const [e, t] = x(
|
|
789
789
|
ar()
|
|
790
790
|
);
|
|
791
|
-
return
|
|
791
|
+
return pe(() => {
|
|
792
792
|
function r() {
|
|
793
793
|
t(ar());
|
|
794
794
|
}
|
|
@@ -855,8 +855,8 @@ const qr = (e) => {
|
|
|
855
855
|
modalWidth: l
|
|
856
856
|
} = dn(), {
|
|
857
857
|
t: d
|
|
858
|
-
} = K(
|
|
859
|
-
|
|
858
|
+
} = K(ge), [u, f] = x([]), [c, m] = x(!1), [p, h] = x(!1), [g, v] = x({}), y = me();
|
|
859
|
+
pe(() => {
|
|
860
860
|
t ? V() : v({});
|
|
861
861
|
}, [t]);
|
|
862
862
|
async function V() {
|
|
@@ -943,10 +943,10 @@ const qr = (e) => {
|
|
|
943
943
|
h(!1), a();
|
|
944
944
|
}
|
|
945
945
|
function $() {
|
|
946
|
-
return c ? /* @__PURE__ */ n(
|
|
946
|
+
return c ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(X, {
|
|
947
947
|
children: [D(), /* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
|
|
948
948
|
justify: "end",
|
|
949
|
-
children: /* @__PURE__ */ P(
|
|
949
|
+
children: /* @__PURE__ */ P(je, {
|
|
950
950
|
children: [/* @__PURE__ */ n(Ie, {
|
|
951
951
|
icon: /* @__PURE__ */ n(Ht, {}),
|
|
952
952
|
onClick: r,
|
|
@@ -1015,7 +1015,7 @@ const {
|
|
|
1015
1015
|
token: d
|
|
1016
1016
|
} = es(), u = a && !o ? {
|
|
1017
1017
|
backgroundColor: d.colorPrimaryBg
|
|
1018
|
-
} : void 0, f = K(
|
|
1018
|
+
} : void 0, f = K(Ee), {
|
|
1019
1019
|
elementHasLostFocus: c
|
|
1020
1020
|
} = f || {};
|
|
1021
1021
|
let m = /* @__PURE__ */ n(Qe, {
|
|
@@ -1032,7 +1032,7 @@ const {
|
|
|
1032
1032
|
})), l && !o && !r && (m = /* @__PURE__ */ n(ts, {
|
|
1033
1033
|
field: i,
|
|
1034
1034
|
requiredStyle: u
|
|
1035
|
-
})), /* @__PURE__ */ n(
|
|
1035
|
+
})), /* @__PURE__ */ n(ve, {
|
|
1036
1036
|
required: a,
|
|
1037
1037
|
...e,
|
|
1038
1038
|
children: m
|
|
@@ -1043,7 +1043,7 @@ const {
|
|
|
1043
1043
|
requiredStyle: r,
|
|
1044
1044
|
onChange: i
|
|
1045
1045
|
}) => {
|
|
1046
|
-
const o = K(
|
|
1046
|
+
const o = K(Ee), {
|
|
1047
1047
|
activeId: s,
|
|
1048
1048
|
activeModel: a,
|
|
1049
1049
|
fetchValues: l,
|
|
@@ -1051,8 +1051,8 @@ const {
|
|
|
1051
1051
|
elementHasLostFocus: u
|
|
1052
1052
|
} = o || {}, [f, c] = x(!1), {
|
|
1053
1053
|
t: m
|
|
1054
|
-
} = K(
|
|
1055
|
-
return s ? /* @__PURE__ */ P(
|
|
1054
|
+
} = K(ge);
|
|
1055
|
+
return s ? /* @__PURE__ */ P(X, {
|
|
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(X, {
|
|
1090
1090
|
children: /* @__PURE__ */ P(Ce, {
|
|
1091
1091
|
gutter: 8,
|
|
1092
1092
|
wrap: !1,
|
|
@@ -1125,7 +1125,7 @@ const {
|
|
|
1125
1125
|
} = e, {
|
|
1126
1126
|
required: r
|
|
1127
1127
|
} = t;
|
|
1128
|
-
return /* @__PURE__ */ n(
|
|
1128
|
+
return /* @__PURE__ */ n(ve, {
|
|
1129
1129
|
required: r,
|
|
1130
1130
|
type: "any",
|
|
1131
1131
|
...e,
|
|
@@ -1173,7 +1173,7 @@ const {
|
|
|
1173
1173
|
readOnly: i,
|
|
1174
1174
|
required: o
|
|
1175
1175
|
} = t;
|
|
1176
|
-
return /* @__PURE__ */ n(
|
|
1176
|
+
return /* @__PURE__ */ n(ve, {
|
|
1177
1177
|
...e,
|
|
1178
1178
|
valuePropName: "checked",
|
|
1179
1179
|
children: /* @__PURE__ */ n(ds, {
|
|
@@ -1342,8 +1342,8 @@ const fa = (e) => {
|
|
|
1342
1342
|
} = e, {
|
|
1343
1343
|
required: r,
|
|
1344
1344
|
id: i
|
|
1345
|
-
} = t, o =
|
|
1346
|
-
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(
|
|
1345
|
+
} = t, o = st(i);
|
|
1346
|
+
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ve, {
|
|
1347
1347
|
required: r,
|
|
1348
1348
|
...e,
|
|
1349
1349
|
children: /* @__PURE__ */ n(ma, {
|
|
@@ -1359,7 +1359,7 @@ const fa = (e) => {
|
|
|
1359
1359
|
readOnly: o
|
|
1360
1360
|
} = t, s = me(null), {
|
|
1361
1361
|
t: a
|
|
1362
|
-
} = K(
|
|
1362
|
+
} = K(ge), l = (c) => {
|
|
1363
1363
|
i == null || i(c);
|
|
1364
1364
|
};
|
|
1365
1365
|
async function d() {
|
|
@@ -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(X, {
|
|
1378
1378
|
children: [/* @__PURE__ */ P(Ce, {
|
|
1379
1379
|
gutter: 8,
|
|
1380
1380
|
wrap: !1,
|
|
@@ -1399,7 +1399,7 @@ const fa = (e) => {
|
|
|
1399
1399
|
wrap: !1,
|
|
1400
1400
|
justify: "center",
|
|
1401
1401
|
className: "pt-5",
|
|
1402
|
-
children: /* @__PURE__ */ P(
|
|
1402
|
+
children: /* @__PURE__ */ P(je, {
|
|
1403
1403
|
children: [/* @__PURE__ */ n(Ue, {
|
|
1404
1404
|
tooltip: a("uploadNewImage"),
|
|
1405
1405
|
icon: /* @__PURE__ */ n(Nn, {}),
|
|
@@ -1427,7 +1427,7 @@ const fa = (e) => {
|
|
|
1427
1427
|
} = e, {
|
|
1428
1428
|
required: r
|
|
1429
1429
|
} = t;
|
|
1430
|
-
return /* @__PURE__ */ n(
|
|
1430
|
+
return /* @__PURE__ */ n(ve, {
|
|
1431
1431
|
required: r,
|
|
1432
1432
|
...e,
|
|
1433
1433
|
children: /* @__PURE__ */ n(pa, {})
|
|
@@ -1574,7 +1574,7 @@ const qn = async (e) => {
|
|
|
1574
1574
|
relation: r,
|
|
1575
1575
|
context: i,
|
|
1576
1576
|
views: o
|
|
1577
|
-
} = t, [s, a] = x(!0), [l, d] = x(), [u, f] = x(/* @__PURE__ */ new Map()), c = K(
|
|
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
|
bt(() => {
|
|
@@ -1598,12 +1598,12 @@ const qn = async (e) => {
|
|
|
1598
1598
|
a(!1);
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
|
-
return s ? /* @__PURE__ */ n(
|
|
1601
|
+
return s ? /* @__PURE__ */ n(Re, {}) : l ? /* @__PURE__ */ n(ze, {
|
|
1602
1602
|
className: "mt-10",
|
|
1603
1603
|
message: l,
|
|
1604
1604
|
type: "error",
|
|
1605
1605
|
banner: !0
|
|
1606
|
-
}) : /* @__PURE__ */ n(
|
|
1606
|
+
}) : /* @__PURE__ */ n(ve, {
|
|
1607
1607
|
type: "array",
|
|
1608
1608
|
...e,
|
|
1609
1609
|
children: /* @__PURE__ */ n(ba, {
|
|
@@ -1625,7 +1625,7 @@ const qn = async (e) => {
|
|
|
1625
1625
|
readOnly: v,
|
|
1626
1626
|
summaryField: y,
|
|
1627
1627
|
titleField: V
|
|
1628
|
-
} = i, O = s.filter((w) => w.values), b = K(
|
|
1628
|
+
} = i, O = s.filter((w) => w.values), b = K(Ee), {
|
|
1629
1629
|
getContext: D
|
|
1630
1630
|
} = b || {};
|
|
1631
1631
|
bt(() => {
|
|
@@ -1667,7 +1667,7 @@ const qn = async (e) => {
|
|
|
1667
1667
|
message: d,
|
|
1668
1668
|
type: "error",
|
|
1669
1669
|
banner: !0
|
|
1670
|
-
}) : a ? /* @__PURE__ */ n(
|
|
1670
|
+
}) : a ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(X, {
|
|
1671
1671
|
children: [/* @__PURE__ */ n(er, {
|
|
1672
1672
|
style: {
|
|
1673
1673
|
padding: "1rem"
|
|
@@ -1727,7 +1727,7 @@ const qn = async (e) => {
|
|
|
1727
1727
|
const {
|
|
1728
1728
|
ooui: t
|
|
1729
1729
|
} = e;
|
|
1730
|
-
return /* @__PURE__ */ n(
|
|
1730
|
+
return /* @__PURE__ */ n(ve, {
|
|
1731
1731
|
ooui: t,
|
|
1732
1732
|
children: /* @__PURE__ */ n(Sa, {
|
|
1733
1733
|
ooui: t
|
|
@@ -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(X, {
|
|
1743
1743
|
children: [/* @__PURE__ */ P("span", {
|
|
1744
1744
|
children: [r.label, " "]
|
|
1745
1745
|
}), r.tooltip && /* @__PURE__ */ n(ft, {
|
|
@@ -1751,7 +1751,7 @@ const qn = async (e) => {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
})
|
|
1753
1753
|
})]
|
|
1754
|
-
}), s =
|
|
1754
|
+
}), s = st(r.icon);
|
|
1755
1755
|
let a = i;
|
|
1756
1756
|
r.selectionValues.size ? a = r.selectionValues.get(i) : Array.isArray(i) && (a = i[1]);
|
|
1757
1757
|
const l = /* @__PURE__ */ n(Go, {
|
|
@@ -1895,7 +1895,7 @@ const kt = ({
|
|
|
1895
1895
|
const {
|
|
1896
1896
|
ooui: t
|
|
1897
1897
|
} = e;
|
|
1898
|
-
return /* @__PURE__ */ n(
|
|
1898
|
+
return /* @__PURE__ */ n(ve, {
|
|
1899
1899
|
type: "array",
|
|
1900
1900
|
...e,
|
|
1901
1901
|
children: /* @__PURE__ */ n(Va, {
|
|
@@ -1914,7 +1914,7 @@ const kt = ({
|
|
|
1914
1914
|
context: p,
|
|
1915
1915
|
readOnly: h,
|
|
1916
1916
|
field: g
|
|
1917
|
-
} = r, v = K(
|
|
1917
|
+
} = r, v = K(Ee), {
|
|
1918
1918
|
getContext: y
|
|
1919
1919
|
} = v || {};
|
|
1920
1920
|
bt(() => {
|
|
@@ -2002,7 +2002,7 @@ const kt = ({
|
|
|
2002
2002
|
message: d,
|
|
2003
2003
|
type: "error",
|
|
2004
2004
|
banner: !0
|
|
2005
|
-
}) : /* @__PURE__ */ n(
|
|
2005
|
+
}) : /* @__PURE__ */ n(X, {
|
|
2006
2006
|
children: /* @__PURE__ */ n("div", {
|
|
2007
2007
|
className: "flex flex-row",
|
|
2008
2008
|
children: /* @__PURE__ */ n(wt, {
|
|
@@ -2080,19 +2080,19 @@ const kt = ({
|
|
|
2080
2080
|
case "tags":
|
|
2081
2081
|
return Da;
|
|
2082
2082
|
case "tag":
|
|
2083
|
-
return
|
|
2083
|
+
return kd;
|
|
2084
2084
|
case "multicheckbox":
|
|
2085
|
-
return
|
|
2085
|
+
return Ed;
|
|
2086
2086
|
case "markdown":
|
|
2087
|
-
return
|
|
2087
|
+
return $d;
|
|
2088
2088
|
case "radio":
|
|
2089
|
-
return
|
|
2089
|
+
return Ld;
|
|
2090
2090
|
case "switch":
|
|
2091
|
-
return
|
|
2091
|
+
return Bd;
|
|
2092
2092
|
case "steps":
|
|
2093
|
-
return
|
|
2093
|
+
return jd;
|
|
2094
2094
|
case "codeeditor":
|
|
2095
|
-
return
|
|
2095
|
+
return Wd;
|
|
2096
2096
|
default:
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
@@ -2334,9 +2334,9 @@ const kt = ({
|
|
|
2334
2334
|
setLimit: D,
|
|
2335
2335
|
searchParams: _ = [],
|
|
2336
2336
|
setSearchValues: $
|
|
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 =
|
|
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 = ke((oe) => {
|
|
2338
2338
|
v == null || v([...oe]), U([...oe]);
|
|
2339
|
-
}, []), ee =
|
|
2339
|
+
}, []), ee = ke(() => y || j, [y, j]), le = ke(async () => {
|
|
2340
2340
|
const oe = await H.getHandler().nameSearch({
|
|
2341
2341
|
model: t,
|
|
2342
2342
|
payload: l,
|
|
@@ -2345,26 +2345,26 @@ const kt = ({
|
|
|
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((
|
|
2348
|
+
const Te = oe.map((He) => He == null ? void 0 : He[0]), { colors: ye } = Ft(c), Fe = await H.getHandler().readEvalUiObjects({
|
|
2349
2349
|
model: t,
|
|
2350
2350
|
ids: Te,
|
|
2351
2351
|
arch: c == null ? void 0 : c.arch,
|
|
2352
2352
|
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2353
2353
|
context: u,
|
|
2354
|
-
attrs:
|
|
2355
|
-
colors:
|
|
2354
|
+
attrs: ye && {
|
|
2355
|
+
colors: ye
|
|
2356
2356
|
}
|
|
2357
|
-
}),
|
|
2358
|
-
E.current = [...
|
|
2359
|
-
const Ne =
|
|
2360
|
-
resultsToSort:
|
|
2357
|
+
}), Be = Fe[0];
|
|
2358
|
+
E.current = [...Be], z(Xt(Fe[1]));
|
|
2359
|
+
const Ne = Be.map((He) => He.id), Je = p !== void 0 ? Ot({
|
|
2360
|
+
resultsToSort: Be,
|
|
2361
2361
|
sorter: p,
|
|
2362
2362
|
fields: { ...c.fields, ...m.fields }
|
|
2363
2363
|
}) : [...E.current];
|
|
2364
2364
|
N(Je), Ne.length > 0 ? g == null || g(0) : g == null || g(void 0);
|
|
2365
2365
|
} else
|
|
2366
2366
|
N([]), g == null || g(void 0);
|
|
2367
|
-
d.current = !0;
|
|
2367
|
+
C(!1), d.current = !0;
|
|
2368
2368
|
}, [
|
|
2369
2369
|
N,
|
|
2370
2370
|
d,
|
|
@@ -2377,32 +2377,33 @@ const kt = ({
|
|
|
2377
2377
|
p,
|
|
2378
2378
|
g,
|
|
2379
2379
|
f
|
|
2380
|
-
]), ce =
|
|
2380
|
+
]), ce = ke(
|
|
2381
2381
|
async (oe) => {
|
|
2382
|
-
const { params: Te, newOffset:
|
|
2382
|
+
const { params: Te, newOffset: ye } = oe || {}, Fe = fn(Te || _, V), { colors: Be } = Ft(c), { totalItems: Ne, results: Je, attrsEvaluated: He } = await H.getHandler().searchForTree({
|
|
2383
2383
|
params: Fe,
|
|
2384
2384
|
limit: q.current,
|
|
2385
|
-
offset:
|
|
2385
|
+
offset: ye || M,
|
|
2386
2386
|
model: t,
|
|
2387
2387
|
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2388
2388
|
context: u,
|
|
2389
|
-
attrs:
|
|
2389
|
+
attrs: Be && { colors: Be }
|
|
2390
2390
|
});
|
|
2391
|
-
z(Xt(
|
|
2391
|
+
z(Xt(He)), E.current = [...Je];
|
|
2392
2392
|
const Q = p !== void 0 ? Ot({
|
|
2393
2393
|
resultsToSort: Je,
|
|
2394
2394
|
sorter: p,
|
|
2395
2395
|
fields: { ...c.fields, ...m.fields }
|
|
2396
2396
|
}) : [...E.current];
|
|
2397
2397
|
if (N(Q), y && Q.length > 0) {
|
|
2398
|
-
const
|
|
2399
|
-
(
|
|
2398
|
+
const be = Q.findIndex(
|
|
2399
|
+
(Le) => O === Le.id
|
|
2400
2400
|
);
|
|
2401
|
-
|
|
2401
|
+
be === -1 ? g == null || g(0) : g == null || g(be);
|
|
2402
2402
|
} else
|
|
2403
2403
|
g == null || g(void 0);
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
C(!1);
|
|
2405
|
+
const de = await Ne;
|
|
2406
|
+
B(de), f == null || f(de);
|
|
2406
2407
|
},
|
|
2407
2408
|
[
|
|
2408
2409
|
g,
|
|
@@ -2420,14 +2421,14 @@ const kt = ({
|
|
|
2420
2421
|
M,
|
|
2421
2422
|
_
|
|
2422
2423
|
]
|
|
2423
|
-
), ne =
|
|
2424
|
+
), ne = ke(
|
|
2424
2425
|
async (oe) => {
|
|
2425
2426
|
try {
|
|
2426
2427
|
C(!0), a == null || a(!0), l && !d.current ? await le() : await ce(oe);
|
|
2427
2428
|
} catch (Te) {
|
|
2428
2429
|
T(Te.message);
|
|
2429
2430
|
} finally {
|
|
2430
|
-
|
|
2431
|
+
S(!1), a == null || a(!1);
|
|
2431
2432
|
}
|
|
2432
2433
|
},
|
|
2433
2434
|
[
|
|
@@ -2451,7 +2452,7 @@ const kt = ({
|
|
|
2451
2452
|
p,
|
|
2452
2453
|
c
|
|
2453
2454
|
]
|
|
2454
|
-
), J =
|
|
2455
|
+
), J = ke(
|
|
2455
2456
|
(oe) => {
|
|
2456
2457
|
h == null || h(oe);
|
|
2457
2458
|
const Te = oe !== void 0 ? Ot({
|
|
@@ -2462,12 +2463,12 @@ const kt = ({
|
|
|
2462
2463
|
N(Te);
|
|
2463
2464
|
},
|
|
2464
2465
|
[h, ee, c, m, N]
|
|
2465
|
-
),
|
|
2466
|
+
), we = ke(
|
|
2466
2467
|
(oe) => {
|
|
2467
|
-
const { params: Te, searchValues:
|
|
2468
|
-
w || (r == null || r(void 0), i == null || i([]), $ == null || $(
|
|
2468
|
+
const { params: Te, searchValues: ye, limit: Fe, offset: Be } = oe;
|
|
2469
|
+
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, D == null || D(Fe)), Be && I(Be), ne({
|
|
2469
2470
|
params: Te,
|
|
2470
|
-
newOffset:
|
|
2471
|
+
newOffset: Be
|
|
2471
2472
|
}));
|
|
2472
2473
|
},
|
|
2473
2474
|
[
|
|
@@ -2483,12 +2484,12 @@ const kt = ({
|
|
|
2483
2484
|
I,
|
|
2484
2485
|
ne
|
|
2485
2486
|
]
|
|
2486
|
-
), Se =
|
|
2487
|
+
), Se = ke(
|
|
2487
2488
|
(oe) => {
|
|
2488
2489
|
C(!0), A(oe), I((oe - 1) * b);
|
|
2489
2490
|
},
|
|
2490
2491
|
[C, b, I, A]
|
|
2491
|
-
),
|
|
2492
|
+
), Pe = ke(() => {
|
|
2492
2493
|
w || (r == null || r(void 0), o == null || o([]), $ == null || $({}), T(void 0), I(0), A(1), D == null || D(b || Pt));
|
|
2493
2494
|
}, [
|
|
2494
2495
|
w,
|
|
@@ -2499,21 +2500,21 @@ const kt = ({
|
|
|
2499
2500
|
A,
|
|
2500
2501
|
D,
|
|
2501
2502
|
b
|
|
2502
|
-
]), fe =
|
|
2503
|
+
]), fe = ke(
|
|
2503
2504
|
async (oe) => {
|
|
2504
|
-
const Te = oe[(c == null ? void 0 : c.field_parent) || "child_id"],
|
|
2505
|
+
const Te = oe[(c == null ? void 0 : c.field_parent) || "child_id"], ye = await H.getHandler().readObjects({
|
|
2505
2506
|
model: t,
|
|
2506
2507
|
ids: Te,
|
|
2507
2508
|
fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
|
|
2508
2509
|
context: u
|
|
2509
2510
|
});
|
|
2510
|
-
return N([...ee(), ...
|
|
2511
|
+
return N([...ee(), ...ye]), oo(Ft(c), ye);
|
|
2511
2512
|
},
|
|
2512
2513
|
[c, t, u, ee, N]
|
|
2513
2514
|
);
|
|
2514
2515
|
return {
|
|
2515
|
-
submit:
|
|
2516
|
-
clear:
|
|
2516
|
+
submit: we,
|
|
2517
|
+
clear: Pe,
|
|
2517
2518
|
fetchResults: ne,
|
|
2518
2519
|
tableRefreshing: w,
|
|
2519
2520
|
searchFilterLoading: F,
|
|
@@ -2528,7 +2529,7 @@ const kt = ({
|
|
|
2528
2529
|
colorsForResults: W,
|
|
2529
2530
|
totalItems: k
|
|
2530
2531
|
};
|
|
2531
|
-
},
|
|
2532
|
+
}, Xe = qe.createContext(null), Xa = (e) => {
|
|
2532
2533
|
const {
|
|
2533
2534
|
children: t,
|
|
2534
2535
|
currentView: r,
|
|
@@ -2555,21 +2556,21 @@ const kt = ({
|
|
|
2555
2556
|
setSearchTreeNameSearch: $,
|
|
2556
2557
|
goToResourceId: w,
|
|
2557
2558
|
limit: C
|
|
2558
|
-
} = e, [F, S] = x(!1), [L, T] = x(!1), [R, A] = x(!1), [M, I] = x(!0), [k, B] = x(!0), [j, U] = x([]), [W, z] = x(!1), [q, E] = x([]), [N, ee] = x(!1), [le, ce] = x(!0), [ne, J] = x(), [
|
|
2559
|
-
|
|
2559
|
+
} = e, [F, S] = x(!1), [L, T] = x(!1), [R, A] = x(!1), [M, I] = x(!0), [k, B] = x(!0), [j, U] = x([]), [W, z] = x(!1), [q, E] = x([]), [N, ee] = x(!1), [le, ce] = x(!0), [ne, J] = x(), [we, Se] = x({}), [Pe, fe] = x(C !== void 0 ? C : Pt), [oe, Te] = x(i);
|
|
2560
|
+
pe(() => {
|
|
2560
2561
|
m && m.length > 0 && !p && (h == null || h(0), f == null || f(m[0].id));
|
|
2561
|
-
}, [m]),
|
|
2562
|
+
}, [m]), pe(() => {
|
|
2562
2563
|
fe(C !== void 0 ? C : Pt);
|
|
2563
|
-
}, [C]),
|
|
2564
|
+
}, [C]), pe(() => {
|
|
2564
2565
|
s.length === 1 ? J(s[0]) : s.length > 1 && J(s.filter((Fe) => Fe.view_id !== r.view_id)[0]);
|
|
2565
|
-
}, [s]),
|
|
2566
|
+
}, [s]), pe(() => {
|
|
2566
2567
|
(ne == null ? void 0 : ne.view_id) === r.view_id && s.length > 1 && J(s.filter((Fe) => Fe.view_id !== r.view_id)[0]);
|
|
2567
2568
|
}, [r]);
|
|
2568
|
-
const
|
|
2569
|
+
const ye = async () => {
|
|
2569
2570
|
var Fe;
|
|
2570
2571
|
return await ((Fe = a.current) == null ? void 0 : Fe.submitForm());
|
|
2571
2572
|
};
|
|
2572
|
-
return /* @__PURE__ */ n(
|
|
2573
|
+
return /* @__PURE__ */ n(Xe.Provider, {
|
|
2573
2574
|
value: {
|
|
2574
2575
|
title: oe,
|
|
2575
2576
|
currentView: r,
|
|
@@ -2581,7 +2582,7 @@ const kt = ({
|
|
|
2581
2582
|
setFormHasChanges: T,
|
|
2582
2583
|
formRef: a,
|
|
2583
2584
|
searchTreeRef: l,
|
|
2584
|
-
onFormSave:
|
|
2585
|
+
onFormSave: ye,
|
|
2585
2586
|
onNewClicked: d,
|
|
2586
2587
|
currentId: u,
|
|
2587
2588
|
setCurrentId: f,
|
|
@@ -2617,15 +2618,15 @@ const kt = ({
|
|
|
2617
2618
|
previousView: ne,
|
|
2618
2619
|
setPreviousView: J,
|
|
2619
2620
|
goToResourceId: w,
|
|
2620
|
-
searchValues:
|
|
2621
|
+
searchValues: we,
|
|
2621
2622
|
setSearchValues: Se,
|
|
2622
|
-
limit:
|
|
2623
|
+
limit: Pe,
|
|
2623
2624
|
setLimit: fe,
|
|
2624
2625
|
setTitle: Te
|
|
2625
2626
|
},
|
|
2626
2627
|
children: t
|
|
2627
2628
|
});
|
|
2628
|
-
},
|
|
2629
|
+
}, at = qe.createContext(null), Qa = (e) => {
|
|
2629
2630
|
const {
|
|
2630
2631
|
children: t,
|
|
2631
2632
|
openAction: r,
|
|
@@ -2637,7 +2638,7 @@ const kt = ({
|
|
|
2637
2638
|
onRemoveTab: d,
|
|
2638
2639
|
tabs: u
|
|
2639
2640
|
} = e, [f, c] = x(), [m, p] = x();
|
|
2640
|
-
return /* @__PURE__ */ n(
|
|
2641
|
+
return /* @__PURE__ */ n(at.Provider, {
|
|
2641
2642
|
value: {
|
|
2642
2643
|
openAction: r,
|
|
2643
2644
|
openRelate: i,
|
|
@@ -2662,11 +2663,11 @@ const kt = ({
|
|
|
2662
2663
|
const {
|
|
2663
2664
|
children: r,
|
|
2664
2665
|
globalValues: i = {}
|
|
2665
|
-
} = e, o = me(), s = me(), [a, l] = x(!1), d = K(
|
|
2666
|
+
} = e, o = me(), s = me(), [a, l] = x(!1), d = K(at), {
|
|
2666
2667
|
openAction: u
|
|
2667
2668
|
} = d || {}, f = me([]), {
|
|
2668
2669
|
t: c
|
|
2669
|
-
} = K(
|
|
2670
|
+
} = K(ge);
|
|
2670
2671
|
vt(t, () => ({
|
|
2671
2672
|
openActionModal: b
|
|
2672
2673
|
}));
|
|
@@ -2878,13 +2879,13 @@ const kt = ({
|
|
|
2878
2879
|
actionData: void 0
|
|
2879
2880
|
});
|
|
2880
2881
|
}
|
|
2881
|
-
return /* @__PURE__ */ n(
|
|
2882
|
+
return /* @__PURE__ */ n(X, {
|
|
2882
2883
|
children: /* @__PURE__ */ n(Rt.Provider, {
|
|
2883
2884
|
value: {
|
|
2884
2885
|
processAction: V,
|
|
2885
2886
|
globalValues: i
|
|
2886
2887
|
},
|
|
2887
|
-
children: /* @__PURE__ */ P(
|
|
2888
|
+
children: /* @__PURE__ */ P(X, {
|
|
2888
2889
|
children: [r, /* @__PURE__ */ n(Ye, {
|
|
2889
2890
|
title: c("generatingReport"),
|
|
2890
2891
|
open: a,
|
|
@@ -2892,7 +2893,7 @@ const kt = ({
|
|
|
2892
2893
|
closable: !1,
|
|
2893
2894
|
centered: !0,
|
|
2894
2895
|
maskClosable: !1,
|
|
2895
|
-
children: /* @__PURE__ */ n(
|
|
2896
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
2896
2897
|
}), /* @__PURE__ */ n(Gt, {
|
|
2897
2898
|
buttonModal: !0,
|
|
2898
2899
|
parentContext: h.context,
|
|
@@ -3022,76 +3023,76 @@ function il(e, t) {
|
|
|
3022
3023
|
} = e, {
|
|
3023
3024
|
t: $,
|
|
3024
3025
|
lang: w
|
|
3025
|
-
} = K(
|
|
3026
|
-
activeId:
|
|
3026
|
+
} = K(ge), [C, F] = x(!1), [S, L] = x(), [T, R] = x(), [A] = it.useForm(), [M, I] = x(), [k, B] = x(), j = K(so), [U, W] = x(), [z, q] = x(!1), E = me(), N = me({}), ee = me({}), le = me(!1), ce = me(!1), ne = U < ol, J = K(Ee), {
|
|
3027
|
+
activeId: we,
|
|
3027
3028
|
getPlainValues: Se
|
|
3028
|
-
} = J || {},
|
|
3029
|
+
} = J || {}, Pe = K(Xe), {
|
|
3029
3030
|
setFormIsSaving: fe = void 0,
|
|
3030
3031
|
setFormHasChanges: oe = void 0,
|
|
3031
3032
|
setCurrentId: Te = void 0,
|
|
3032
|
-
setFormIsLoading:
|
|
3033
|
+
setFormIsLoading: ye = void 0,
|
|
3033
3034
|
setAttachments: Fe = void 0,
|
|
3034
|
-
title:
|
|
3035
|
+
title: Be = void 0,
|
|
3035
3036
|
setTitle: Ne = void 0
|
|
3036
|
-
} = (b ?
|
|
3037
|
-
processAction:
|
|
3037
|
+
} = (b ? Pe : {}) || {}, Je = K(Rt), {
|
|
3038
|
+
processAction: He,
|
|
3038
3039
|
globalValues: Q
|
|
3039
3040
|
} = Je || {};
|
|
3040
3041
|
vt(t, () => ({
|
|
3041
3042
|
submitForm: qt,
|
|
3042
|
-
getFields:
|
|
3043
|
-
getValues:
|
|
3044
|
-
getPlainValues:
|
|
3045
|
-
getContext:
|
|
3046
|
-
fetchValues:
|
|
3043
|
+
getFields: De,
|
|
3044
|
+
getValues: Ae,
|
|
3045
|
+
getPlainValues: tt,
|
|
3046
|
+
getContext: nt,
|
|
3047
|
+
fetchValues: ot,
|
|
3047
3048
|
cancelUnsavedChanges: dt,
|
|
3048
3049
|
clearAndReload: () => {
|
|
3049
|
-
E.current = void 0, R(void 0),
|
|
3050
|
+
E.current = void 0, R(void 0), rt();
|
|
3050
3051
|
}
|
|
3051
|
-
})),
|
|
3052
|
+
})), pe(() => {
|
|
3052
3053
|
if (L(void 0), !(!r && !h)) {
|
|
3053
3054
|
if (!O) {
|
|
3054
3055
|
E.current = void 0, R(void 0);
|
|
3055
3056
|
return;
|
|
3056
3057
|
}
|
|
3057
|
-
(i === void 0 && k || i !== void 0 && k && i < 0) && (E.current = void 0, R(void 0)),
|
|
3058
|
+
(i === void 0 && k || i !== void 0 && k && i < 0) && (E.current = void 0, R(void 0)), rt();
|
|
3058
3059
|
}
|
|
3059
|
-
}, [i, r, p, h, O]),
|
|
3060
|
+
}, [i, r, p, h, O]), pe(() => {
|
|
3060
3061
|
z && (gn({
|
|
3061
3062
|
elementHasLostFocus: !0
|
|
3062
3063
|
}), q(!1));
|
|
3063
3064
|
}, [z]);
|
|
3064
|
-
const
|
|
3065
|
+
const de = (G, Y, te) => {
|
|
3065
3066
|
oe == null || oe(!1), fe == null || fe(!1), s == null || s(G, Y, te), Te == null || Te(G);
|
|
3066
|
-
},
|
|
3067
|
+
}, be = () => {
|
|
3067
3068
|
fe == null || fe(!1), o == null || o();
|
|
3068
|
-
},
|
|
3069
|
+
}, Le = (G) => {
|
|
3069
3070
|
fe == null || fe(!1), u == null || u(G);
|
|
3070
3071
|
};
|
|
3071
|
-
function
|
|
3072
|
+
function se() {
|
|
3072
3073
|
return i || E.current;
|
|
3073
3074
|
}
|
|
3074
|
-
function
|
|
3075
|
+
function De() {
|
|
3075
3076
|
return k;
|
|
3076
3077
|
}
|
|
3077
|
-
function
|
|
3078
|
+
function Ae() {
|
|
3078
3079
|
const G = {
|
|
3079
3080
|
...ie(k),
|
|
3080
|
-
...
|
|
3081
|
+
...Z()
|
|
3081
3082
|
};
|
|
3082
3083
|
for (const Y in G)
|
|
3083
3084
|
G[Y] === void 0 && delete G[Y];
|
|
3084
3085
|
return G;
|
|
3085
3086
|
}
|
|
3086
|
-
function
|
|
3087
|
-
const G =
|
|
3087
|
+
function tt() {
|
|
3088
|
+
const G = Ae(), Y = De();
|
|
3088
3089
|
let te = {};
|
|
3089
3090
|
return Object.keys(G).forEach((re) => {
|
|
3090
|
-
const
|
|
3091
|
-
Y[re] && Y[re].type === "many2one" &&
|
|
3091
|
+
const Ve = G[re];
|
|
3092
|
+
Y[re] && Y[re].type === "many2one" && Ve && Array.isArray(Ve) && Ve.length === 2 ? te[re] = Ve[0] : Y[re] && (Y[re].type === "one2many" || Y[re].type === "many2many") && Ve && Ve.items ? te[re] = Ve.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : te[re] = Ve;
|
|
3092
3093
|
}), te;
|
|
3093
3094
|
}
|
|
3094
|
-
function
|
|
3095
|
+
function Ze() {
|
|
3095
3096
|
const G = {
|
|
3096
3097
|
...ie(k)
|
|
3097
3098
|
};
|
|
@@ -3099,23 +3100,23 @@ function il(e, t) {
|
|
|
3099
3100
|
G[Y] === void 0 && delete G[Y];
|
|
3100
3101
|
return G;
|
|
3101
3102
|
}
|
|
3102
|
-
function
|
|
3103
|
+
function nt() {
|
|
3103
3104
|
return {
|
|
3104
3105
|
...y,
|
|
3105
3106
|
...T == null ? void 0 : T.context
|
|
3106
3107
|
};
|
|
3107
3108
|
}
|
|
3108
|
-
function
|
|
3109
|
+
function Z() {
|
|
3109
3110
|
return {
|
|
3110
|
-
id:
|
|
3111
|
-
active_id:
|
|
3112
|
-
active_ids: [
|
|
3113
|
-
parent_id:
|
|
3111
|
+
id: se(),
|
|
3112
|
+
active_id: se(),
|
|
3113
|
+
active_ids: [se()],
|
|
3114
|
+
parent_id: we,
|
|
3114
3115
|
...Q
|
|
3115
3116
|
};
|
|
3116
3117
|
}
|
|
3117
|
-
const
|
|
3118
|
-
const Y =
|
|
3118
|
+
const ue = async (G) => {
|
|
3119
|
+
const Y = se() ? T == null ? void 0 : T.context : {};
|
|
3119
3120
|
return await H.getHandler().defaultGet({
|
|
3120
3121
|
model: r,
|
|
3121
3122
|
fields: G,
|
|
@@ -3141,7 +3142,7 @@ function il(e, t) {
|
|
|
3141
3142
|
fields: k,
|
|
3142
3143
|
reset: !1
|
|
3143
3144
|
});
|
|
3144
|
-
},
|
|
3145
|
+
}, he = (G) => A.getFieldsValue(!0)[G];
|
|
3145
3146
|
async function Ke() {
|
|
3146
3147
|
try {
|
|
3147
3148
|
return await A.validateFields(), !1;
|
|
@@ -3149,8 +3150,8 @@ function il(e, t) {
|
|
|
3149
3150
|
return wn.error($("fillRequiredFields")), !0;
|
|
3150
3151
|
}
|
|
3151
3152
|
}
|
|
3152
|
-
const
|
|
3153
|
-
L(void 0),
|
|
3153
|
+
const rt = async () => {
|
|
3154
|
+
L(void 0), ye == null || ye(!0);
|
|
3154
3155
|
let G;
|
|
3155
3156
|
try {
|
|
3156
3157
|
h ? G = {
|
|
@@ -3161,18 +3162,18 @@ function il(e, t) {
|
|
|
3161
3162
|
fields: Y,
|
|
3162
3163
|
arch: te
|
|
3163
3164
|
} = G;
|
|
3164
|
-
B(Y), I(te), await
|
|
3165
|
+
B(Y), I(te), await ot({
|
|
3165
3166
|
fields: Y,
|
|
3166
3167
|
arch: te
|
|
3167
3168
|
});
|
|
3168
3169
|
} catch (Y) {
|
|
3169
|
-
L(Y != null && Y.message ? Y.message + Y.stack : Y),
|
|
3170
|
+
L(Y != null && Y.message ? Y.message + Y.stack : Y), ye == null || ye(!1);
|
|
3170
3171
|
}
|
|
3171
|
-
},
|
|
3172
|
-
let Y, te, re,
|
|
3173
|
-
|
|
3172
|
+
}, ot = async (G) => {
|
|
3173
|
+
let Y, te, re, Ve;
|
|
3174
|
+
ye == null || ye(!0), L(void 0), G ? (te = G.fields, re = G.arch) : (te = k, re = M), p ? Y = p : {
|
|
3174
3175
|
values: Y,
|
|
3175
|
-
defaultGetCalled:
|
|
3176
|
+
defaultGetCalled: Ve
|
|
3176
3177
|
} = await Ao({
|
|
3177
3178
|
fields: te,
|
|
3178
3179
|
arch: re
|
|
@@ -3183,22 +3184,22 @@ function il(e, t) {
|
|
|
3183
3184
|
values: Y,
|
|
3184
3185
|
fields: te,
|
|
3185
3186
|
reset: !0,
|
|
3186
|
-
isDefaultGet:
|
|
3187
|
+
isDefaultGet: Ve
|
|
3187
3188
|
}), zt({
|
|
3188
3189
|
fields: te,
|
|
3189
3190
|
arch: re,
|
|
3190
3191
|
values: Y
|
|
3191
|
-
}),
|
|
3192
|
+
}), ye == null || ye(!1), oe == null || oe(!1), Ve && q(!0);
|
|
3192
3193
|
}, dt = async () => new Promise(async (G) => {
|
|
3193
3194
|
Oe() ? Wt({
|
|
3194
3195
|
lang: w,
|
|
3195
3196
|
onOk: () => {
|
|
3196
|
-
|
|
3197
|
+
be == null || be(), G(!0);
|
|
3197
3198
|
},
|
|
3198
3199
|
onCancel: () => {
|
|
3199
3200
|
G(!1);
|
|
3200
3201
|
}
|
|
3201
|
-
}) : (
|
|
3202
|
+
}) : (be == null || be(), G(!0));
|
|
3202
3203
|
}), Vo = async () => {
|
|
3203
3204
|
if (l) {
|
|
3204
3205
|
const G = await H.getHandler().getActionStringForModel(r);
|
|
@@ -3235,22 +3236,22 @@ function il(e, t) {
|
|
|
3235
3236
|
arch: Y
|
|
3236
3237
|
}) => {
|
|
3237
3238
|
let te = {}, re = !1;
|
|
3238
|
-
if (
|
|
3239
|
+
if (se()) {
|
|
3239
3240
|
te = (await H.getHandler().readObjects({
|
|
3240
3241
|
model: r,
|
|
3241
|
-
ids: [
|
|
3242
|
+
ids: [se()],
|
|
3242
3243
|
fields: G,
|
|
3243
3244
|
context: y
|
|
3244
3245
|
}))[0];
|
|
3245
|
-
const
|
|
3246
|
-
params: [["res_model", "=", r], ["res_id", "=",
|
|
3246
|
+
const Ve = await H.getHandler().search({
|
|
3247
|
+
params: [["res_model", "=", r], ["res_id", "=", se()]],
|
|
3247
3248
|
fields: ["id", "name"],
|
|
3248
|
-
context:
|
|
3249
|
+
context: nt(),
|
|
3249
3250
|
model: "ir.attachment"
|
|
3250
3251
|
});
|
|
3251
|
-
Fe == null || Fe(
|
|
3252
|
+
Fe == null || Fe(Ve);
|
|
3252
3253
|
} else
|
|
3253
|
-
Fe == null || Fe([]), te = await
|
|
3254
|
+
Fe == null || Fe([]), te = await ue(G), re = !0;
|
|
3254
3255
|
return {
|
|
3255
3256
|
values: te,
|
|
3256
3257
|
defaultGetCalled: re
|
|
@@ -3259,7 +3260,7 @@ function il(e, t) {
|
|
|
3259
3260
|
const {
|
|
3260
3261
|
callOnSubmitSucceed: Y = !0
|
|
3261
3262
|
} = G || {};
|
|
3262
|
-
if (
|
|
3263
|
+
if (se()) {
|
|
3263
3264
|
const te = xn({
|
|
3264
3265
|
source: N.current,
|
|
3265
3266
|
target: ie(k),
|
|
@@ -3267,7 +3268,7 @@ function il(e, t) {
|
|
|
3267
3268
|
});
|
|
3268
3269
|
await H.getHandler().update({
|
|
3269
3270
|
model: r,
|
|
3270
|
-
id:
|
|
3271
|
+
id: se(),
|
|
3271
3272
|
values: {
|
|
3272
3273
|
...te,
|
|
3273
3274
|
..._
|
|
@@ -3293,26 +3294,26 @@ function il(e, t) {
|
|
|
3293
3294
|
});
|
|
3294
3295
|
E.current = re, N.current = te;
|
|
3295
3296
|
}
|
|
3296
|
-
g && await g([
|
|
3297
|
+
g && await g([se()]), !v && Y && (de == null || de(se(), Ae(), Ze()));
|
|
3297
3298
|
}, Ro = async (G) => {
|
|
3298
3299
|
const {
|
|
3299
3300
|
callOnSubmitSucceed: Y = !0
|
|
3300
3301
|
} = G || {};
|
|
3301
|
-
!v && Y && (
|
|
3302
|
+
!v && Y && (de == null || de(se(), Ae(), Ze()));
|
|
3302
3303
|
}, qt = async (G) => {
|
|
3303
3304
|
let Y = !1;
|
|
3304
3305
|
const {
|
|
3305
3306
|
callOnSubmitSucceed: te = !0
|
|
3306
3307
|
} = G || {};
|
|
3307
|
-
if (ce.current = !0, L(void 0), !Oe() &&
|
|
3308
|
-
return ce.current = !1, oe == null || oe(!1),
|
|
3308
|
+
if (ce.current = !0, L(void 0), !Oe() && se() && te)
|
|
3309
|
+
return ce.current = !1, oe == null || oe(!1), be == null || be(), {
|
|
3309
3310
|
succeed: !0,
|
|
3310
|
-
id:
|
|
3311
|
+
id: se()
|
|
3311
3312
|
};
|
|
3312
3313
|
if (await Ke())
|
|
3313
3314
|
return ce.current = !1, gr(w), {
|
|
3314
3315
|
succeed: !1,
|
|
3315
|
-
id:
|
|
3316
|
+
id: se()
|
|
3316
3317
|
};
|
|
3317
3318
|
F(!0), fe == null || fe(!0);
|
|
3318
3319
|
try {
|
|
@@ -3320,30 +3321,30 @@ function il(e, t) {
|
|
|
3320
3321
|
values: {},
|
|
3321
3322
|
fields: k,
|
|
3322
3323
|
reset: !0
|
|
3323
|
-
})), await
|
|
3324
|
+
})), await ot(), Y = !0, wn.success($("savedRegisters"));
|
|
3324
3325
|
} catch (re) {
|
|
3325
|
-
ce.current = !1, F(!1), fe == null || fe(!1),
|
|
3326
|
+
ce.current = !1, F(!1), fe == null || fe(!1), Le == null || Le(re), wn.error($("errorWhileSavingForm")), L(re != null && re.message ? re.message : re);
|
|
3326
3327
|
} finally {
|
|
3327
3328
|
ce.current = !1, fe == null || fe(!1), F(!1);
|
|
3328
3329
|
}
|
|
3329
3330
|
return {
|
|
3330
3331
|
succeed: Y,
|
|
3331
|
-
id:
|
|
3332
|
+
id: se()
|
|
3332
3333
|
};
|
|
3333
3334
|
}, zt = ({
|
|
3334
3335
|
fields: G,
|
|
3335
3336
|
arch: Y,
|
|
3336
3337
|
values: te
|
|
3337
3338
|
}) => {
|
|
3338
|
-
var
|
|
3339
|
+
var Ve;
|
|
3339
3340
|
const re = new Vr(G);
|
|
3340
3341
|
re.parse(Y, {
|
|
3341
3342
|
readOnly: f,
|
|
3342
3343
|
values: va({
|
|
3343
3344
|
...te,
|
|
3344
|
-
...
|
|
3345
|
+
...Z()
|
|
3345
3346
|
}, G)
|
|
3346
|
-
}), R(re), re.string && re.string !==
|
|
3347
|
+
}), R(re), re.string && re.string !== Be && (Ne == null || Ne(re.string)), j && re.string && ((Ve = j.setTitle) == null || Ve.call(j, re.string));
|
|
3347
3348
|
}, gn = async ({
|
|
3348
3349
|
elementHasLostFocus: G = !1
|
|
3349
3350
|
}) => {
|
|
@@ -3398,44 +3399,44 @@ function il(e, t) {
|
|
|
3398
3399
|
}), re = await H.getHandler().executeOnChange({
|
|
3399
3400
|
model: r,
|
|
3400
3401
|
action: Y.method,
|
|
3401
|
-
ids:
|
|
3402
|
+
ids: se() ? [se()] : [],
|
|
3402
3403
|
payload: te,
|
|
3403
3404
|
fields: k
|
|
3404
3405
|
});
|
|
3405
3406
|
if (re.value) {
|
|
3406
|
-
const
|
|
3407
|
+
const Ve = {
|
|
3407
3408
|
...ie(k),
|
|
3408
3409
|
...re.value
|
|
3409
3410
|
};
|
|
3410
3411
|
zt({
|
|
3411
3412
|
fields: k,
|
|
3412
3413
|
arch: M,
|
|
3413
|
-
values:
|
|
3414
|
+
values: Ve
|
|
3414
3415
|
}), Ut({
|
|
3415
|
-
values:
|
|
3416
|
+
values: Ve,
|
|
3416
3417
|
fields: k,
|
|
3417
3418
|
reset: !1
|
|
3418
3419
|
});
|
|
3419
3420
|
}
|
|
3420
3421
|
if (re.warning && re.warning.title && re.warning.message && !le.current) {
|
|
3421
3422
|
const {
|
|
3422
|
-
title:
|
|
3423
|
+
title: Ve,
|
|
3423
3424
|
message: ht
|
|
3424
3425
|
} = re.warning;
|
|
3425
|
-
le.current = !0, ja(
|
|
3426
|
+
le.current = !0, ja(Ve, ht, () => {
|
|
3426
3427
|
le.current = !1;
|
|
3427
3428
|
});
|
|
3428
3429
|
}
|
|
3429
3430
|
if (re.domain && Object.keys(re.domain).length > 0) {
|
|
3430
|
-
const
|
|
3431
|
+
const Ve = Oa({
|
|
3431
3432
|
fieldsDomain: re.domain,
|
|
3432
3433
|
fields: k
|
|
3433
3434
|
});
|
|
3434
3435
|
zt({
|
|
3435
|
-
fields:
|
|
3436
|
+
fields: Ve,
|
|
3436
3437
|
arch: M,
|
|
3437
|
-
values: ie(
|
|
3438
|
-
}), B(
|
|
3438
|
+
values: ie(Ve)
|
|
3439
|
+
}), B(Ve);
|
|
3439
3440
|
}
|
|
3440
3441
|
};
|
|
3441
3442
|
async function No({
|
|
@@ -3445,7 +3446,7 @@ function il(e, t) {
|
|
|
3445
3446
|
const te = await H.getHandler().execute({
|
|
3446
3447
|
model: r,
|
|
3447
3448
|
action: G,
|
|
3448
|
-
payload: [
|
|
3449
|
+
payload: [se()],
|
|
3449
3450
|
context: {
|
|
3450
3451
|
...Y,
|
|
3451
3452
|
...T == null ? void 0 : T.context,
|
|
@@ -3453,15 +3454,15 @@ function il(e, t) {
|
|
|
3453
3454
|
}
|
|
3454
3455
|
});
|
|
3455
3456
|
if (typeof te == "object" && te !== null && Object.keys(te).length === 0 && v)
|
|
3456
|
-
|
|
3457
|
+
de == null || de(se(), Ae(), Ze());
|
|
3457
3458
|
else if (te.type && te.type === "ir.actions.act_window_close")
|
|
3458
|
-
|
|
3459
|
+
de == null || de(se(), Ae(), Ze());
|
|
3459
3460
|
else if (te.type) {
|
|
3460
3461
|
let re = {};
|
|
3461
3462
|
te.context && (re = gt({
|
|
3462
3463
|
context: te.context,
|
|
3463
3464
|
fields: k,
|
|
3464
|
-
values:
|
|
3465
|
+
values: Ae()
|
|
3465
3466
|
})), await Qn({
|
|
3466
3467
|
actionData: te,
|
|
3467
3468
|
context: {
|
|
@@ -3470,7 +3471,7 @@ function il(e, t) {
|
|
|
3470
3471
|
}
|
|
3471
3472
|
});
|
|
3472
3473
|
} else
|
|
3473
|
-
await
|
|
3474
|
+
await ot();
|
|
3474
3475
|
}
|
|
3475
3476
|
async function Lo({
|
|
3476
3477
|
action: G
|
|
@@ -3478,9 +3479,9 @@ function il(e, t) {
|
|
|
3478
3479
|
const Y = await H.getHandler().executeWorkflow({
|
|
3479
3480
|
model: r,
|
|
3480
3481
|
action: G,
|
|
3481
|
-
payload:
|
|
3482
|
+
payload: se()
|
|
3482
3483
|
});
|
|
3483
|
-
Y.type && Y.type === "ir.actions.act_window_close" ?
|
|
3484
|
+
Y.type && Y.type === "ir.actions.act_window_close" ? de == null || de(se(), Ae(), Ze()) : await ot();
|
|
3484
3485
|
}
|
|
3485
3486
|
async function Po({
|
|
3486
3487
|
action: G,
|
|
@@ -3502,20 +3503,20 @@ function il(e, t) {
|
|
|
3502
3503
|
}) {
|
|
3503
3504
|
const {
|
|
3504
3505
|
closeParent: te
|
|
3505
|
-
} = await (
|
|
3506
|
+
} = await (He == null ? void 0 : He({
|
|
3506
3507
|
actionData: G,
|
|
3507
3508
|
fields: k,
|
|
3508
|
-
values:
|
|
3509
|
+
values: Ae(),
|
|
3509
3510
|
context: {
|
|
3510
3511
|
...y,
|
|
3511
3512
|
...T == null ? void 0 : T.context,
|
|
3512
3513
|
...Y
|
|
3513
3514
|
},
|
|
3514
3515
|
onRefreshParentValues: () => {
|
|
3515
|
-
|
|
3516
|
+
ot();
|
|
3516
3517
|
}
|
|
3517
3518
|
})) || {};
|
|
3518
|
-
!b && te && (
|
|
3519
|
+
!b && te && (de == null || de(se(), Ae(), Ze()));
|
|
3519
3520
|
}
|
|
3520
3521
|
function Bo() {
|
|
3521
3522
|
gn({
|
|
@@ -3528,7 +3529,7 @@ function il(e, t) {
|
|
|
3528
3529
|
context: te
|
|
3529
3530
|
}) {
|
|
3530
3531
|
if (G === "cancel") {
|
|
3531
|
-
|
|
3532
|
+
be == null || be();
|
|
3532
3533
|
return;
|
|
3533
3534
|
}
|
|
3534
3535
|
if (await Ke()) {
|
|
@@ -3536,7 +3537,7 @@ function il(e, t) {
|
|
|
3536
3537
|
return;
|
|
3537
3538
|
}
|
|
3538
3539
|
try {
|
|
3539
|
-
(Oe() ||
|
|
3540
|
+
(Oe() || se() === void 0) && await qt({
|
|
3540
3541
|
callOnSubmitSucceed: !1
|
|
3541
3542
|
}), G === "object" ? await No({
|
|
3542
3543
|
action: Y,
|
|
@@ -3551,23 +3552,23 @@ function il(e, t) {
|
|
|
3551
3552
|
We(re);
|
|
3552
3553
|
}
|
|
3553
3554
|
}
|
|
3554
|
-
const jo = () => !T && !S ? /* @__PURE__ */ n(
|
|
3555
|
+
const jo = () => !T && !S ? /* @__PURE__ */ n(Re, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(X, {
|
|
3555
3556
|
children: /* @__PURE__ */ n(Gi, {
|
|
3556
|
-
getValues:
|
|
3557
|
-
getPlainValues:
|
|
3558
|
-
getFields:
|
|
3557
|
+
getValues: Ae,
|
|
3558
|
+
getPlainValues: tt,
|
|
3559
|
+
getFields: De,
|
|
3559
3560
|
domain: V,
|
|
3560
3561
|
activeId: i,
|
|
3561
3562
|
activeModel: r,
|
|
3562
3563
|
setFieldValue: xe,
|
|
3563
|
-
getFieldValue:
|
|
3564
|
+
getFieldValue: he,
|
|
3564
3565
|
executeButtonAction: Ho,
|
|
3565
|
-
getContext:
|
|
3566
|
+
getContext: nt,
|
|
3566
3567
|
submitForm: qt,
|
|
3567
|
-
fetchValues:
|
|
3568
|
+
fetchValues: ot,
|
|
3568
3569
|
formHasChanges: Oe,
|
|
3569
3570
|
elementHasLostFocus: Bo,
|
|
3570
|
-
children: /* @__PURE__ */ n(
|
|
3571
|
+
children: /* @__PURE__ */ n(it, {
|
|
3571
3572
|
form: A,
|
|
3572
3573
|
onFieldsChange: () => {
|
|
3573
3574
|
Eo({
|
|
@@ -3581,10 +3582,10 @@ function il(e, t) {
|
|
|
3581
3582
|
})
|
|
3582
3583
|
})
|
|
3583
3584
|
})
|
|
3584
|
-
}), Ko = () => /* @__PURE__ */ P(
|
|
3585
|
+
}), Ko = () => /* @__PURE__ */ P(X, {
|
|
3585
3586
|
children: [/* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
|
|
3586
3587
|
justify: "end",
|
|
3587
|
-
children: /* @__PURE__ */ P(
|
|
3588
|
+
children: /* @__PURE__ */ P(je, {
|
|
3588
3589
|
children: [/* @__PURE__ */ n(Ie, {
|
|
3589
3590
|
icon: /* @__PURE__ */ n(Ht, {}),
|
|
3590
3591
|
disabled: C,
|
|
@@ -3636,7 +3637,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3636
3637
|
} = e, {
|
|
3637
3638
|
modalWidth: u
|
|
3638
3639
|
} = dn(), [f, c] = x(i), [m, p] = x(!1), [h, g] = x();
|
|
3639
|
-
|
|
3640
|
+
pe(() => {
|
|
3640
3641
|
a && v();
|
|
3641
3642
|
}, [l, a]);
|
|
3642
3643
|
async function v() {
|
|
@@ -3718,7 +3719,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3718
3719
|
})
|
|
3719
3720
|
})
|
|
3720
3721
|
});
|
|
3721
|
-
}, sl = (e) => /* @__PURE__ */ n(
|
|
3722
|
+
}, sl = (e) => /* @__PURE__ */ n(ve, {
|
|
3722
3723
|
...e,
|
|
3723
3724
|
layout: "vertical",
|
|
3724
3725
|
children: /* @__PURE__ */ n(Rn.RangePicker, {
|
|
@@ -3739,7 +3740,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3739
3740
|
name: o + "#time",
|
|
3740
3741
|
label: ""
|
|
3741
3742
|
})];
|
|
3742
|
-
return /* @__PURE__ */ P(
|
|
3743
|
+
return /* @__PURE__ */ P(X, {
|
|
3743
3744
|
children: [r && /* @__PURE__ */ n(cn, {
|
|
3744
3745
|
ooui: new Dt({
|
|
3745
3746
|
name: o + "_label",
|
|
@@ -3753,7 +3754,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3753
3754
|
className: "p-0",
|
|
3754
3755
|
children: [/* @__PURE__ */ n(ae, {
|
|
3755
3756
|
className: "mr-2",
|
|
3756
|
-
children: /* @__PURE__ */ n(
|
|
3757
|
+
children: /* @__PURE__ */ n(ve, {
|
|
3757
3758
|
...e,
|
|
3758
3759
|
ooui: s[0],
|
|
3759
3760
|
showLabel: !1,
|
|
@@ -3764,7 +3765,7 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3764
3765
|
})
|
|
3765
3766
|
})
|
|
3766
3767
|
}), /* @__PURE__ */ n(ae, {
|
|
3767
|
-
children: /* @__PURE__ */ n(
|
|
3768
|
+
children: /* @__PURE__ */ n(ve, {
|
|
3768
3769
|
...e,
|
|
3769
3770
|
ooui: s[1],
|
|
3770
3771
|
showLabel: !1,
|
|
@@ -3791,10 +3792,10 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3791
3792
|
token: a
|
|
3792
3793
|
} = ll(), l = s && !o ? {
|
|
3793
3794
|
backgroundColor: a.colorPrimaryBg
|
|
3794
|
-
} : void 0, d = K(
|
|
3795
|
+
} : void 0, d = K(Ee), {
|
|
3795
3796
|
elementHasLostFocus: u
|
|
3796
3797
|
} = d || {};
|
|
3797
|
-
return /* @__PURE__ */ n(
|
|
3798
|
+
return /* @__PURE__ */ n(ve, {
|
|
3798
3799
|
required: s,
|
|
3799
3800
|
type: "number",
|
|
3800
3801
|
...e,
|
|
@@ -3824,10 +3825,10 @@ const Yt = yt(il), Gt = (e) => {
|
|
|
3824
3825
|
token: a
|
|
3825
3826
|
} = cl(), l = s && !o ? {
|
|
3826
3827
|
backgroundColor: a.colorPrimaryBg
|
|
3827
|
-
} : void 0, d = K(
|
|
3828
|
+
} : void 0, d = K(Ee), {
|
|
3828
3829
|
elementHasLostFocus: u
|
|
3829
3830
|
} = d || {};
|
|
3830
|
-
return /* @__PURE__ */ n(
|
|
3831
|
+
return /* @__PURE__ */ n(ve, {
|
|
3831
3832
|
required: s,
|
|
3832
3833
|
type: "number",
|
|
3833
3834
|
...e,
|
|
@@ -3864,7 +3865,7 @@ function dl(e) {
|
|
|
3864
3865
|
},
|
|
3865
3866
|
layout: "vertical"
|
|
3866
3867
|
});
|
|
3867
|
-
return /* @__PURE__ */ P(
|
|
3868
|
+
return /* @__PURE__ */ P(X, {
|
|
3868
3869
|
children: [r && /* @__PURE__ */ n(cn, {
|
|
3869
3870
|
ooui: new Dt({
|
|
3870
3871
|
name: i + "_label",
|
|
@@ -3902,7 +3903,7 @@ const {
|
|
|
3902
3903
|
} = e, {
|
|
3903
3904
|
required: r
|
|
3904
3905
|
} = t;
|
|
3905
|
-
return /* @__PURE__ */ n(
|
|
3906
|
+
return /* @__PURE__ */ n(ve, {
|
|
3906
3907
|
required: r,
|
|
3907
3908
|
type: "any",
|
|
3908
3909
|
...e,
|
|
@@ -3960,7 +3961,7 @@ function vl(e) {
|
|
|
3960
3961
|
t.readOnly = !1, t.required = !1;
|
|
3961
3962
|
const {
|
|
3962
3963
|
t: r
|
|
3963
|
-
} = K(
|
|
3964
|
+
} = K(ge);
|
|
3964
3965
|
switch (t.type) {
|
|
3965
3966
|
case ut.boolean: {
|
|
3966
3967
|
const o = new Mn({
|
|
@@ -4017,7 +4018,7 @@ function wl(e) {
|
|
|
4017
4018
|
isSearching: o
|
|
4018
4019
|
} = e, {
|
|
4019
4020
|
t: s
|
|
4020
|
-
} = K(
|
|
4021
|
+
} = K(ge);
|
|
4021
4022
|
return /* @__PURE__ */ P(Ce, {
|
|
4022
4023
|
children: [/* @__PURE__ */ n(ae, {
|
|
4023
4024
|
span: 12,
|
|
@@ -4055,7 +4056,7 @@ function bl(e) {
|
|
|
4055
4056
|
onLimitChange: t
|
|
4056
4057
|
} = e, {
|
|
4057
4058
|
t: r
|
|
4058
|
-
} = K(
|
|
4059
|
+
} = K(ge), i = new On({
|
|
4059
4060
|
name: "limit"
|
|
4060
4061
|
}), o = new On({
|
|
4061
4062
|
name: "offset"
|
|
@@ -4064,7 +4065,7 @@ function bl(e) {
|
|
|
4064
4065
|
className: "pl-2 pt-2",
|
|
4065
4066
|
children: [/* @__PURE__ */ n(Ce, {
|
|
4066
4067
|
children: r("parameters")
|
|
4067
|
-
}, "count_params"), /* @__PURE__ */ P(
|
|
4068
|
+
}, "count_params"), /* @__PURE__ */ P(je, {
|
|
4068
4069
|
align: "center",
|
|
4069
4070
|
children: [r("limit") + " :", /* @__PURE__ */ n(Qt, {
|
|
4070
4071
|
ooui: i,
|
|
@@ -4101,8 +4102,8 @@ function co(e) {
|
|
|
4101
4102
|
formXml: h
|
|
4102
4103
|
} = e, [g, v] = x(), [y, V] = x(), [O, b] = x(!1), D = me(), {
|
|
4103
4104
|
token: _
|
|
4104
|
-
} = xl(), [$] =
|
|
4105
|
-
|
|
4105
|
+
} = xl(), [$] = it.useForm();
|
|
4106
|
+
pe(() => {
|
|
4106
4107
|
$.setFieldsValue(m);
|
|
4107
4108
|
}, [m]);
|
|
4108
4109
|
const w = () => {
|
|
@@ -4152,7 +4153,7 @@ function co(e) {
|
|
|
4152
4153
|
style: {
|
|
4153
4154
|
display: u ? "block" : "none"
|
|
4154
4155
|
},
|
|
4155
|
-
children: [/* @__PURE__ */ P(
|
|
4156
|
+
children: [/* @__PURE__ */ P(it, {
|
|
4156
4157
|
className: "p-3 shadow-md",
|
|
4157
4158
|
style: {
|
|
4158
4159
|
borderRadius: _.borderRadius
|
|
@@ -4244,7 +4245,7 @@ function uo(e) {
|
|
|
4244
4245
|
});
|
|
4245
4246
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4246
4247
|
}
|
|
4247
|
-
const Tl = (e) => /* @__PURE__ */ n(
|
|
4248
|
+
const Tl = (e) => /* @__PURE__ */ n(ve, {
|
|
4248
4249
|
...e,
|
|
4249
4250
|
children: /* @__PURE__ */ n(fo, {})
|
|
4250
4251
|
}), fo = ({
|
|
@@ -4287,7 +4288,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4287
4288
|
onItemClicked: o
|
|
4288
4289
|
} = e, {
|
|
4289
4290
|
t: s
|
|
4290
|
-
} = K(
|
|
4291
|
+
} = K(ge);
|
|
4291
4292
|
return /* @__PURE__ */ n(Ye, {
|
|
4292
4293
|
title: s("selectAction"),
|
|
4293
4294
|
centered: !0,
|
|
@@ -4296,7 +4297,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4296
4297
|
destroyOnClose: !0,
|
|
4297
4298
|
onCancel: r,
|
|
4298
4299
|
maskClosable: !1,
|
|
4299
|
-
children: /* @__PURE__ */ n(
|
|
4300
|
+
children: /* @__PURE__ */ n(je, {
|
|
4300
4301
|
direction: "vertical",
|
|
4301
4302
|
className: "w-full",
|
|
4302
4303
|
children: i.map((a) => /* @__PURE__ */ n(Ie, {
|
|
@@ -4316,7 +4317,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4316
4317
|
context: i = {}
|
|
4317
4318
|
} = e, [o, s] = x(!1), [a, l] = x(!1), [d, u] = x(!1), [f, c] = x(), [m, p] = x(), {
|
|
4318
4319
|
t: h
|
|
4319
|
-
} = K(
|
|
4320
|
+
} = K(ge), g = K(at), {
|
|
4320
4321
|
openRelate: v
|
|
4321
4322
|
} = g || {}, y = K(Rt), {
|
|
4322
4323
|
processAction: V
|
|
@@ -4358,7 +4359,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4358
4359
|
style: {
|
|
4359
4360
|
padding: 15
|
|
4360
4361
|
},
|
|
4361
|
-
children: /* @__PURE__ */ n(
|
|
4362
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
4362
4363
|
})
|
|
4363
4364
|
});
|
|
4364
4365
|
if (!f || !f.toolbar)
|
|
@@ -4377,7 +4378,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4377
4378
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
4378
4379
|
children: h("report")
|
|
4379
4380
|
}, "print"), /* @__PURE__ */ n($e.Divider, {}), /* @__PURE__ */ n($e.ItemGroup, {
|
|
4380
|
-
title: /* @__PURE__ */ P(
|
|
4381
|
+
title: /* @__PURE__ */ P(X, {
|
|
4381
4382
|
children: [/* @__PURE__ */ n(Pr, {}), " ", /* @__PURE__ */ P("span", {
|
|
4382
4383
|
children: [" ", h("related")]
|
|
4383
4384
|
})]
|
|
@@ -4428,7 +4429,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4428
4429
|
fields: f.fields
|
|
4429
4430
|
});
|
|
4430
4431
|
}
|
|
4431
|
-
return /* @__PURE__ */ P(
|
|
4432
|
+
return /* @__PURE__ */ P(X, {
|
|
4432
4433
|
children: [/* @__PURE__ */ n(Bt, {
|
|
4433
4434
|
overlay: b(),
|
|
4434
4435
|
trigger: ["click"],
|
|
@@ -4456,20 +4457,20 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4456
4457
|
const {
|
|
4457
4458
|
m2oField: t
|
|
4458
4459
|
} = e;
|
|
4459
|
-
return t ? /* @__PURE__ */ P(
|
|
4460
|
-
children: [/* @__PURE__ */ n(
|
|
4460
|
+
return t ? /* @__PURE__ */ P(je, {
|
|
4461
|
+
children: [/* @__PURE__ */ n(X, {
|
|
4461
4462
|
children: t.value
|
|
4462
4463
|
}), /* @__PURE__ */ n(Jn, {
|
|
4463
4464
|
id: t.id,
|
|
4464
4465
|
model: t.model
|
|
4465
4466
|
})]
|
|
4466
|
-
}) : /* @__PURE__ */ n(
|
|
4467
|
+
}) : /* @__PURE__ */ n(X, {});
|
|
4467
4468
|
}, _l = (e) => {
|
|
4468
4469
|
const {
|
|
4469
4470
|
value: t,
|
|
4470
4471
|
context: r,
|
|
4471
4472
|
selectionValues: i
|
|
4472
|
-
} = e, [o, s] = x(), [a, l] = x(!1), [d, u] = t ? t.split(",") : [], f = parseInt(u), c =
|
|
4473
|
+
} = e, [o, s] = x(), [a, l] = x(!1), [d, u] = t ? t.split(",") : [], f = parseInt(u), c = ke(async () => {
|
|
4473
4474
|
if (!t || t && o)
|
|
4474
4475
|
return;
|
|
4475
4476
|
l(!0);
|
|
@@ -4481,17 +4482,17 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4481
4482
|
});
|
|
4482
4483
|
s(p[0][1]), l(!1);
|
|
4483
4484
|
}, [t, o]);
|
|
4484
|
-
if (
|
|
4485
|
+
if (pe(() => {
|
|
4485
4486
|
c();
|
|
4486
4487
|
}, [t]), !t && !a)
|
|
4487
|
-
return /* @__PURE__ */ n(
|
|
4488
|
+
return /* @__PURE__ */ n(X, {});
|
|
4488
4489
|
if (a)
|
|
4489
4490
|
return /* @__PURE__ */ n(et, {});
|
|
4490
4491
|
const m = i.get(d);
|
|
4491
|
-
return /* @__PURE__ */ P(
|
|
4492
|
-
children: [/* @__PURE__ */ n(
|
|
4492
|
+
return /* @__PURE__ */ P(je, {
|
|
4493
|
+
children: [/* @__PURE__ */ n(X, {
|
|
4493
4494
|
children: `${m}:`
|
|
4494
|
-
}), /* @__PURE__ */ n(
|
|
4495
|
+
}), /* @__PURE__ */ n(X, {
|
|
4495
4496
|
children: o
|
|
4496
4497
|
}), /* @__PURE__ */ n(Jn, {
|
|
4497
4498
|
id: f,
|
|
@@ -4659,13 +4660,13 @@ var mo = { exports: {} };
|
|
|
4659
4660
|
var M = this, I = this.$locale();
|
|
4660
4661
|
if (!this.isValid())
|
|
4661
4662
|
return I.invalidDate || g;
|
|
4662
|
-
var k = A || "YYYY-MM-DDTHH:mm:ssZ", B = F.z(this), j = this.$H, U = this.$m, W = this.$M, z = I.weekdays, q = I.months, E = function(ce, ne, J,
|
|
4663
|
-
return ce && (ce[ne] || ce(M, k)) || J[ne].slice(0,
|
|
4663
|
+
var k = A || "YYYY-MM-DDTHH:mm:ssZ", B = F.z(this), j = this.$H, U = this.$m, W = this.$M, z = I.weekdays, q = I.months, E = function(ce, ne, J, we) {
|
|
4664
|
+
return ce && (ce[ne] || ce(M, k)) || J[ne].slice(0, we);
|
|
4664
4665
|
}, N = function(ce) {
|
|
4665
4666
|
return F.s(j % 12 || 12, ce, "0");
|
|
4666
4667
|
}, ee = I.meridiem || function(ce, ne, J) {
|
|
4667
|
-
var
|
|
4668
|
-
return J ?
|
|
4668
|
+
var we = ce < 12 ? "AM" : "PM";
|
|
4669
|
+
return J ? we.toLowerCase() : we;
|
|
4669
4670
|
}, le = { YY: String(this.$y).slice(-2), YYYY: F.s(this.$y, 4, "0"), M: W + 1, MM: F.s(W + 1, 2, "0"), MMM: E(I.monthsShort, W, q, 3), MMMM: E(q, W), D: this.$D, DD: F.s(this.$D, 2, "0"), d: String(this.$W), dd: E(I.weekdaysMin, this.$W, z, 2), ddd: E(I.weekdaysShort, this.$W, z, 3), dddd: z[this.$W], H: String(j), HH: F.s(j, 2, "0"), h: N(1), hh: N(2), a: ee(j, U, !0), A: ee(j, U, !1), m: String(U), mm: F.s(U, 2, "0"), s: String(this.$s), ss: F.s(this.$s, 2, "0"), SSS: F.s(this.$ms, 3, "0"), Z: B };
|
|
4670
4671
|
return k.replace(y, function(ce, ne) {
|
|
4671
4672
|
return ne || le[ce] || B.replace(":", "");
|
|
@@ -4843,7 +4844,7 @@ const lt = {
|
|
|
4843
4844
|
} = e, {
|
|
4844
4845
|
required: i
|
|
4845
4846
|
} = t;
|
|
4846
|
-
return /* @__PURE__ */ n(
|
|
4847
|
+
return /* @__PURE__ */ n(ve, {
|
|
4847
4848
|
required: i,
|
|
4848
4849
|
...e,
|
|
4849
4850
|
children: /* @__PURE__ */ n(kl, {
|
|
@@ -4904,26 +4905,26 @@ const lt = {
|
|
|
4904
4905
|
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4905
4906
|
}), $l = (e) => {
|
|
4906
4907
|
if (!e || e && e.length === 0)
|
|
4907
|
-
return /* @__PURE__ */ n(
|
|
4908
|
+
return /* @__PURE__ */ n(X, {});
|
|
4908
4909
|
const t = xt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4909
|
-
return /* @__PURE__ */ n(
|
|
4910
|
+
return /* @__PURE__ */ n(X, {
|
|
4910
4911
|
children: t
|
|
4911
4912
|
});
|
|
4912
4913
|
}, Nl = (e) => {
|
|
4913
4914
|
if (!e || e && e.length === 0)
|
|
4914
|
-
return /* @__PURE__ */ n(
|
|
4915
|
+
return /* @__PURE__ */ n(X, {});
|
|
4915
4916
|
const t = xt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
4916
|
-
return /* @__PURE__ */ n(
|
|
4917
|
+
return /* @__PURE__ */ n(X, {
|
|
4917
4918
|
children: t
|
|
4918
4919
|
});
|
|
4919
4920
|
}, xr = (e) => {
|
|
4920
4921
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4921
|
-
return /* @__PURE__ */ n(
|
|
4922
|
+
return /* @__PURE__ */ n(X, {
|
|
4922
4923
|
children: `( ${t} )`
|
|
4923
4924
|
});
|
|
4924
4925
|
}, Ll = (e) => /* @__PURE__ */ n(fo, {
|
|
4925
4926
|
value: e
|
|
4926
|
-
}), Pl = (e) => /* @__PURE__ */ n(
|
|
4927
|
+
}), Pl = (e) => /* @__PURE__ */ n(X, {
|
|
4927
4928
|
children: uo(e)
|
|
4928
4929
|
}), Cr = (e) => /* @__PURE__ */ n("div", {
|
|
4929
4930
|
style: {
|
|
@@ -4936,14 +4937,14 @@ const lt = {
|
|
|
4936
4937
|
maxWidth: "50px",
|
|
4937
4938
|
padding: "5px"
|
|
4938
4939
|
}
|
|
4939
|
-
}), Hl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4940
|
+
}), Hl = (e, t, r, i) => /* @__PURE__ */ n(X, {
|
|
4940
4941
|
children: e ? /* @__PURE__ */ n(kn, {
|
|
4941
4942
|
color: r.colors[e],
|
|
4942
4943
|
children: r.selectionValues.get(e)
|
|
4943
4944
|
}) : null
|
|
4944
|
-
}), jl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4945
|
+
}), jl = (e, t, r, i) => /* @__PURE__ */ n(X, {
|
|
4945
4946
|
children: r.selectionValues.get(e)
|
|
4946
|
-
}), Kl = (e, t, r, i) => /* @__PURE__ */ n(
|
|
4947
|
+
}), Kl = (e, t, r, i) => /* @__PURE__ */ n(X, {
|
|
4947
4948
|
children: /* @__PURE__ */ n(_l, {
|
|
4948
4949
|
value: e,
|
|
4949
4950
|
selectionValues: r.selectionValues,
|
|
@@ -4975,11 +4976,11 @@ function mn(e) {
|
|
|
4975
4976
|
context: V
|
|
4976
4977
|
} = e, [O, b] = x([]), [D, _] = x([]), $ = me(!1), w = me(null), {
|
|
4977
4978
|
t: C
|
|
4978
|
-
} = K(
|
|
4979
|
+
} = K(ge), F = me(r), S = K(Xe), {
|
|
4979
4980
|
title: L = void 0,
|
|
4980
4981
|
setTitle: T = void 0
|
|
4981
4982
|
} = (y ? S : {}) || {};
|
|
4982
|
-
|
|
4983
|
+
pe(() => {
|
|
4983
4984
|
w.current = Ft(o);
|
|
4984
4985
|
const U = ga(w.current, {
|
|
4985
4986
|
boolean: Rl,
|
|
@@ -5000,12 +5001,14 @@ function mn(e) {
|
|
|
5000
5001
|
avatar: Wl
|
|
5001
5002
|
}, V);
|
|
5002
5003
|
_(U), w.current.string && L !== w.current.string && (T == null || T(w.current.string));
|
|
5003
|
-
}, [o]),
|
|
5004
|
+
}, [o]), pe(() => {
|
|
5004
5005
|
$.current = !1;
|
|
5005
5006
|
const U = oo(w.current, s);
|
|
5006
5007
|
b(U), F.current = r;
|
|
5007
5008
|
}, [s]);
|
|
5008
|
-
const R = (t - 1) * F.current + 1, A = R - 1 + O.length, M = i === void 0 ? null : i === 0 ? C("no_results") : C("summary").replace("{from}", R == null ? void 0 : R.toString()).replace("{to}", A == null ? void 0 : A.toString()).replace("{total}", i == null ? void 0 : i.toString()), I = () => !u || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(
|
|
5009
|
+
const R = (t - 1) * F.current + 1, A = R - 1 + O.length, M = i === void 0 ? null : i === 0 ? C("no_results") : C("summary").replace("{from}", R == null ? void 0 : R.toString()).replace("{to}", A == null ? void 0 : A.toString()).replace("{total}", i == null ? void 0 : i.toString()), I = () => !u || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Re, {
|
|
5010
|
+
className: "pb-4"
|
|
5011
|
+
}) : /* @__PURE__ */ P(Ce, {
|
|
5009
5012
|
align: "bottom",
|
|
5010
5013
|
className: "pb-4",
|
|
5011
5014
|
children: [/* @__PURE__ */ n(ae, {
|
|
@@ -5046,7 +5049,7 @@ function mn(e) {
|
|
|
5046
5049
|
const W = w.current;
|
|
5047
5050
|
c && W.columns.some((z) => z.sum !== void 0) && (j = c - 30);
|
|
5048
5051
|
}
|
|
5049
|
-
return w.current === null ? /* @__PURE__ */ n(
|
|
5052
|
+
return w.current === null ? /* @__PURE__ */ n(Re, {
|
|
5050
5053
|
style: {
|
|
5051
5054
|
padding: "2rem"
|
|
5052
5055
|
}
|
|
@@ -5056,7 +5059,7 @@ function mn(e) {
|
|
|
5056
5059
|
columns: B.columns,
|
|
5057
5060
|
dataSource: O,
|
|
5058
5061
|
loading: l,
|
|
5059
|
-
loadingComponent: /* @__PURE__ */ n(
|
|
5062
|
+
loadingComponent: /* @__PURE__ */ n(Re, {}),
|
|
5060
5063
|
onRowStyle: (U) => {
|
|
5061
5064
|
if (m[U.id])
|
|
5062
5065
|
return {
|
|
@@ -5094,7 +5097,7 @@ function Yl(e, t) {
|
|
|
5094
5097
|
height: T
|
|
5095
5098
|
} = dn(), R = K(Rt), {
|
|
5096
5099
|
processAction: A
|
|
5097
|
-
} = R || {}, M = K(
|
|
5100
|
+
} = R || {}, M = K(Xe), {
|
|
5098
5101
|
setResults: I = void 0,
|
|
5099
5102
|
setCurrentItemIndex: k = void 0,
|
|
5100
5103
|
currentId: B = void 0,
|
|
@@ -5110,25 +5113,25 @@ function Yl(e, t) {
|
|
|
5110
5113
|
setTotalItems: ce = void 0,
|
|
5111
5114
|
setSearchTreeNameSearch: ne = void 0,
|
|
5112
5115
|
setTreeIsLoading: J = void 0,
|
|
5113
|
-
searchValues:
|
|
5116
|
+
searchValues: we = {},
|
|
5114
5117
|
setSearchValues: Se = void 0,
|
|
5115
|
-
limit:
|
|
5118
|
+
limit: Pe = Pt,
|
|
5116
5119
|
setLimit: fe = void 0
|
|
5117
5120
|
} = (f ? M : {}) || {}, {
|
|
5118
5121
|
submit: oe,
|
|
5119
5122
|
clear: Te,
|
|
5120
|
-
fetchResults:
|
|
5123
|
+
fetchResults: ye,
|
|
5121
5124
|
tableRefreshing: Fe,
|
|
5122
|
-
searchFilterLoading:
|
|
5125
|
+
searchFilterLoading: Be,
|
|
5123
5126
|
searchError: Ne,
|
|
5124
5127
|
page: Je,
|
|
5125
|
-
offset:
|
|
5128
|
+
offset: He,
|
|
5126
5129
|
getResults: Q,
|
|
5127
|
-
requestPageChange:
|
|
5128
|
-
changeSort:
|
|
5129
|
-
fetchChildrenForRecord:
|
|
5130
|
-
colorsForResults:
|
|
5131
|
-
totalItems:
|
|
5130
|
+
requestPageChange: de,
|
|
5131
|
+
changeSort: be,
|
|
5132
|
+
fetchChildrenForRecord: Le,
|
|
5133
|
+
colorsForResults: se,
|
|
5134
|
+
totalItems: De
|
|
5132
5135
|
} = ao({
|
|
5133
5136
|
model: V,
|
|
5134
5137
|
setSearchTreeNameSearch: ne,
|
|
@@ -5151,31 +5154,31 @@ function Yl(e, t) {
|
|
|
5151
5154
|
domain: d,
|
|
5152
5155
|
currentId: B,
|
|
5153
5156
|
setActionViewTotalItems: ce,
|
|
5154
|
-
limit:
|
|
5157
|
+
limit: Pe,
|
|
5155
5158
|
setLimit: fe
|
|
5156
5159
|
});
|
|
5157
5160
|
vt(t, () => ({
|
|
5158
5161
|
refreshResults: () => {
|
|
5159
|
-
y.current = !1,
|
|
5162
|
+
y.current = !1, ye();
|
|
5160
5163
|
},
|
|
5161
5164
|
getFields: () => b == null ? void 0 : b.fields,
|
|
5162
5165
|
getDomain: () => d
|
|
5163
|
-
})),
|
|
5164
|
-
!g || u && (y.current = !1,
|
|
5165
|
-
}, [Je,
|
|
5166
|
-
const
|
|
5166
|
+
})), pe(() => {
|
|
5167
|
+
!g || u && (y.current = !1, ye());
|
|
5168
|
+
}, [Je, He, g, u, a]);
|
|
5169
|
+
const Ae = async () => {
|
|
5167
5170
|
v(!1), h(!0), C(void 0), J == null || J(!0);
|
|
5168
5171
|
try {
|
|
5169
|
-
await
|
|
5170
|
-
} catch (
|
|
5171
|
-
C(
|
|
5172
|
+
await tt(), v(!0);
|
|
5173
|
+
} catch (he) {
|
|
5174
|
+
C(he);
|
|
5172
5175
|
} finally {
|
|
5173
5176
|
h(!1), J == null || J(!1);
|
|
5174
5177
|
}
|
|
5175
|
-
},
|
|
5178
|
+
}, tt = async () => {
|
|
5176
5179
|
O(r);
|
|
5177
|
-
let
|
|
5178
|
-
i || (
|
|
5180
|
+
let he = i;
|
|
5181
|
+
i || (he = await H.getHandler().getView({
|
|
5179
5182
|
model: r,
|
|
5180
5183
|
type: "form",
|
|
5181
5184
|
context: c
|
|
@@ -5185,41 +5188,41 @@ function Yl(e, t) {
|
|
|
5185
5188
|
model: r,
|
|
5186
5189
|
type: "tree",
|
|
5187
5190
|
context: c
|
|
5188
|
-
})), $(
|
|
5191
|
+
})), $(he), D(Ke);
|
|
5189
5192
|
};
|
|
5190
|
-
|
|
5191
|
-
|
|
5193
|
+
pe(() => {
|
|
5194
|
+
Ae();
|
|
5192
5195
|
}, [r]);
|
|
5193
|
-
const
|
|
5194
|
-
fe == null || fe(
|
|
5195
|
-
},
|
|
5196
|
+
const Ze = (he) => {
|
|
5197
|
+
fe == null || fe(he);
|
|
5198
|
+
}, nt = async (he) => {
|
|
5196
5199
|
const {
|
|
5197
5200
|
id: Ke
|
|
5198
|
-
} =
|
|
5201
|
+
} = he;
|
|
5199
5202
|
L.current || (L.current = await H.getHandler().treeButOpen({
|
|
5200
5203
|
id: b.view_id,
|
|
5201
5204
|
model: V,
|
|
5202
5205
|
context: c
|
|
5203
5206
|
}));
|
|
5204
|
-
const
|
|
5207
|
+
const rt = L.current[0][2];
|
|
5205
5208
|
await (A == null ? void 0 : A({
|
|
5206
|
-
actionData:
|
|
5209
|
+
actionData: rt,
|
|
5207
5210
|
fields: b.fields,
|
|
5208
5211
|
values: {
|
|
5209
5212
|
active_id: Ke,
|
|
5210
|
-
...
|
|
5213
|
+
...he
|
|
5211
5214
|
},
|
|
5212
5215
|
context: c
|
|
5213
5216
|
}));
|
|
5214
|
-
},
|
|
5217
|
+
}, Z = async (he) => {
|
|
5215
5218
|
const {
|
|
5216
5219
|
id: Ke
|
|
5217
|
-
} =
|
|
5220
|
+
} = he;
|
|
5218
5221
|
if (b != null && b.isExpandable) {
|
|
5219
5222
|
try {
|
|
5220
|
-
await
|
|
5221
|
-
} catch (
|
|
5222
|
-
We(
|
|
5223
|
+
await nt(he);
|
|
5224
|
+
} catch (rt) {
|
|
5225
|
+
We(rt);
|
|
5223
5226
|
}
|
|
5224
5227
|
return;
|
|
5225
5228
|
}
|
|
@@ -5230,14 +5233,14 @@ function Yl(e, t) {
|
|
|
5230
5233
|
treeView: b
|
|
5231
5234
|
});
|
|
5232
5235
|
};
|
|
5233
|
-
function
|
|
5234
|
-
const Ke = Q().filter((
|
|
5235
|
-
W == null || W(Ke), m == null || m(
|
|
5236
|
+
function ue(he) {
|
|
5237
|
+
const Ke = Q().filter((rt) => he.includes(rt.id));
|
|
5238
|
+
W == null || W(Ke), m == null || m(he);
|
|
5236
5239
|
}
|
|
5237
5240
|
function Oe() {
|
|
5238
5241
|
return b != null && b.isExpandable ? T - 160 : T - (F + 210);
|
|
5239
5242
|
}
|
|
5240
|
-
const ie = () => !b || !_ ? null : /* @__PURE__ */ P(
|
|
5243
|
+
const ie = () => !b || !_ ? null : /* @__PURE__ */ P(X, {
|
|
5241
5244
|
children: [/* @__PURE__ */ n(co, {
|
|
5242
5245
|
fields: {
|
|
5243
5246
|
...b.fields,
|
|
@@ -5246,34 +5249,34 @@ function Yl(e, t) {
|
|
|
5246
5249
|
searchFields: io([_.search_fields, b.search_fields]),
|
|
5247
5250
|
formXml: _.arch,
|
|
5248
5251
|
onClear: Te,
|
|
5249
|
-
limit:
|
|
5250
|
-
offset:
|
|
5251
|
-
isSearching:
|
|
5252
|
+
limit: Pe,
|
|
5253
|
+
offset: He,
|
|
5254
|
+
isSearching: Be,
|
|
5252
5255
|
onSubmit: oe,
|
|
5253
|
-
onLimitChange:
|
|
5256
|
+
onLimitChange: Ze,
|
|
5254
5257
|
setSearchFilterHeight: S,
|
|
5255
5258
|
searchError: Ne,
|
|
5256
5259
|
searchVisible: E,
|
|
5257
|
-
searchValues:
|
|
5260
|
+
searchValues: we
|
|
5258
5261
|
}), /* @__PURE__ */ n(mn, {
|
|
5259
5262
|
context: c,
|
|
5260
|
-
total:
|
|
5261
|
-
limit:
|
|
5263
|
+
total: De,
|
|
5264
|
+
limit: Pe,
|
|
5262
5265
|
page: Je,
|
|
5263
5266
|
treeView: b,
|
|
5264
5267
|
results: Q(),
|
|
5265
|
-
onRequestPageChange:
|
|
5268
|
+
onRequestPageChange: de,
|
|
5266
5269
|
loading: Fe,
|
|
5267
|
-
onRowClicked:
|
|
5270
|
+
onRowClicked: Z,
|
|
5268
5271
|
scrollY: l || Oe(),
|
|
5269
|
-
colorsForResults:
|
|
5272
|
+
colorsForResults: se,
|
|
5270
5273
|
rowSelection: {
|
|
5271
|
-
selectedRowKeys: U == null ? void 0 : U.map((
|
|
5272
|
-
onChange:
|
|
5274
|
+
selectedRowKeys: U == null ? void 0 : U.map((he) => he.id),
|
|
5275
|
+
onChange: ue
|
|
5273
5276
|
},
|
|
5274
5277
|
sorter: ee,
|
|
5275
|
-
onChangeSort:
|
|
5276
|
-
onFetchChildrenForRecord: b.isExpandable ?
|
|
5278
|
+
onChangeSort: be,
|
|
5279
|
+
onFetchChildrenForRecord: b.isExpandable ? Le : void 0,
|
|
5277
5280
|
childField: b.field_parent,
|
|
5278
5281
|
rootTree: f
|
|
5279
5282
|
})]
|
|
@@ -5287,7 +5290,7 @@ function Yl(e, t) {
|
|
|
5287
5290
|
style: u ? {} : {
|
|
5288
5291
|
display: "none"
|
|
5289
5292
|
},
|
|
5290
|
-
children: p ? /* @__PURE__ */ n(
|
|
5293
|
+
children: p ? /* @__PURE__ */ n(Re, {}) : ie()
|
|
5291
5294
|
});
|
|
5292
5295
|
}
|
|
5293
5296
|
const yo = yt(Yl), vo = (e) => {
|
|
@@ -5304,7 +5307,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5304
5307
|
modalHeight: c
|
|
5305
5308
|
} = dn(), {
|
|
5306
5309
|
t: m
|
|
5307
|
-
} = K(
|
|
5310
|
+
} = K(ge), [p, h] = x([]), g = async () => {
|
|
5308
5311
|
await new Promise((O) => setTimeout(O, 5)), r();
|
|
5309
5312
|
}, v = async (O) => {
|
|
5310
5313
|
const {
|
|
@@ -5319,7 +5322,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5319
5322
|
}
|
|
5320
5323
|
i(p);
|
|
5321
5324
|
}
|
|
5322
|
-
const V = () => /* @__PURE__ */ P(
|
|
5325
|
+
const V = () => /* @__PURE__ */ P(X, {
|
|
5323
5326
|
children: [/* @__PURE__ */ n(yo, {
|
|
5324
5327
|
model: o,
|
|
5325
5328
|
nameSearch: s,
|
|
@@ -5332,7 +5335,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5332
5335
|
}
|
|
5333
5336
|
}), /* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
|
|
5334
5337
|
justify: "end",
|
|
5335
|
-
children: /* @__PURE__ */ P(
|
|
5338
|
+
children: /* @__PURE__ */ P(je, {
|
|
5336
5339
|
children: [/* @__PURE__ */ n(Ie, {
|
|
5337
5340
|
icon: /* @__PURE__ */ n(an, {}),
|
|
5338
5341
|
onClick: () => {
|
|
@@ -5354,7 +5357,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5354
5357
|
})
|
|
5355
5358
|
})]
|
|
5356
5359
|
});
|
|
5357
|
-
return /* @__PURE__ */ P(
|
|
5360
|
+
return /* @__PURE__ */ P(X, {
|
|
5358
5361
|
children: [/* @__PURE__ */ n(Ye, {
|
|
5359
5362
|
title: m("search"),
|
|
5360
5363
|
centered: !0,
|
|
@@ -5396,7 +5399,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5396
5399
|
} = e, {
|
|
5397
5400
|
required: r
|
|
5398
5401
|
} = t;
|
|
5399
|
-
return /* @__PURE__ */ n(
|
|
5402
|
+
return /* @__PURE__ */ n(ve, {
|
|
5400
5403
|
required: r,
|
|
5401
5404
|
type: "array",
|
|
5402
5405
|
validator: async (o, s) => {
|
|
@@ -5426,16 +5429,16 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5426
5429
|
domain: u
|
|
5427
5430
|
} = i, f = o && !a ? {
|
|
5428
5431
|
backgroundColor: wo.colorPrimaryBg
|
|
5429
|
-
} : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, V] = x(), O = me(!1), [b, D] = x(""), _ = me(), $ = K(
|
|
5432
|
+
} : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, V] = x(), O = me(!1), [b, D] = x(""), _ = me(), $ = K(Ee), {
|
|
5430
5433
|
domain: w,
|
|
5431
5434
|
getValues: C,
|
|
5432
5435
|
getFields: F,
|
|
5433
5436
|
getContext: S,
|
|
5434
5437
|
elementHasLostFocus: L
|
|
5435
5438
|
} = $ || {}, T = me([]), [R, A] = x([]), M = t && t[0] || void 0, I = t && t[1] || "";
|
|
5436
|
-
|
|
5439
|
+
pe(() => {
|
|
5437
5440
|
!Array.isArray(t) && t && W(t);
|
|
5438
|
-
}, [t]),
|
|
5441
|
+
}, [t]), pe(() => {
|
|
5439
5442
|
M && I.length === 0 ? W(M) : M && I.length > 0 ? D(I) : !M && !I && D(_.current || "");
|
|
5440
5443
|
}, [t]);
|
|
5441
5444
|
const k = (N) => {
|
|
@@ -5645,7 +5648,7 @@ const yo = yt(Yl), vo = (e) => {
|
|
|
5645
5648
|
operator: f,
|
|
5646
5649
|
manualIds: c
|
|
5647
5650
|
} = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [V, O] = x(), [b, D] = x(0), [_, $] = x(0), [w, C] = x(), [F, S] = x(), [L, T] = x();
|
|
5648
|
-
|
|
5651
|
+
pe(() => {
|
|
5649
5652
|
M();
|
|
5650
5653
|
}, [t, o]);
|
|
5651
5654
|
async function R({
|
|
@@ -5817,7 +5820,7 @@ function Ql({
|
|
|
5817
5820
|
l && (f += " " + l);
|
|
5818
5821
|
let c = Co(f, `bold ${Math.floor(d * 1.03)}px sans-serif`);
|
|
5819
5822
|
a && (c = c * 2), c >= t * 0.85 && (d = t * 0.85 / c * d);
|
|
5820
|
-
const m = a &&
|
|
5823
|
+
const m = a && st(a);
|
|
5821
5824
|
return /* @__PURE__ */ n("div", {
|
|
5822
5825
|
ref: e,
|
|
5823
5826
|
style: {
|
|
@@ -5867,7 +5870,7 @@ function ec({
|
|
|
5867
5870
|
})}%`;
|
|
5868
5871
|
let h = Co(p, `bold ${Math.floor(f * 1.03)}px sans-serif`);
|
|
5869
5872
|
l && (h = h * 1.5);
|
|
5870
|
-
const g = l &&
|
|
5873
|
+
const g = l && st(l);
|
|
5871
5874
|
return (h >= r * 0.85 || f * 2 < u) && (f = r * 0.85 / h * f), /* @__PURE__ */ n("div", {
|
|
5872
5875
|
ref: e,
|
|
5873
5876
|
style: {
|
|
@@ -6175,7 +6178,7 @@ const dc = {
|
|
|
6175
6178
|
manualIds: a
|
|
6176
6179
|
} = e, {
|
|
6177
6180
|
t: l
|
|
6178
|
-
} = K(
|
|
6181
|
+
} = K(ge), {
|
|
6179
6182
|
error: d,
|
|
6180
6183
|
loading: u,
|
|
6181
6184
|
values: f,
|
|
@@ -6197,7 +6200,7 @@ const dc = {
|
|
|
6197
6200
|
banner: !0
|
|
6198
6201
|
});
|
|
6199
6202
|
if (u)
|
|
6200
|
-
return /* @__PURE__ */ n(
|
|
6203
|
+
return /* @__PURE__ */ n(Re, {});
|
|
6201
6204
|
if (!f)
|
|
6202
6205
|
return /* @__PURE__ */ n(ze, {
|
|
6203
6206
|
message: "No data to display",
|
|
@@ -6227,7 +6230,7 @@ const dc = {
|
|
|
6227
6230
|
isStack: g
|
|
6228
6231
|
})
|
|
6229
6232
|
})]
|
|
6230
|
-
}) : /* @__PURE__ */ n(
|
|
6233
|
+
}) : /* @__PURE__ */ n(X, {
|
|
6231
6234
|
children: `Unknown graph type: ${c}`
|
|
6232
6235
|
});
|
|
6233
6236
|
};
|
|
@@ -6249,14 +6252,14 @@ const mc = (e, t) => {
|
|
|
6249
6252
|
domain: s,
|
|
6250
6253
|
limit: a,
|
|
6251
6254
|
manualIds: l
|
|
6252
|
-
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), h = K(
|
|
6255
|
+
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), h = K(Xe), {
|
|
6253
6256
|
setGraphIsLoading: g = void 0
|
|
6254
6257
|
} = h || {};
|
|
6255
6258
|
vt(t, () => ({
|
|
6256
6259
|
refresh: () => {
|
|
6257
6260
|
v();
|
|
6258
6261
|
}
|
|
6259
|
-
})),
|
|
6262
|
+
})), pe(() => {
|
|
6260
6263
|
v();
|
|
6261
6264
|
}, [r]);
|
|
6262
6265
|
async function v() {
|
|
@@ -6272,7 +6275,7 @@ const mc = (e, t) => {
|
|
|
6272
6275
|
const V = $n(y.arch);
|
|
6273
6276
|
c(V);
|
|
6274
6277
|
} catch (y) {
|
|
6275
|
-
return console.error(y), /* @__PURE__ */ n(
|
|
6278
|
+
return console.error(y), /* @__PURE__ */ n(X, {
|
|
6276
6279
|
children: JSON.stringify(y)
|
|
6277
6280
|
});
|
|
6278
6281
|
}
|
|
@@ -6328,7 +6331,7 @@ const mc = (e, t) => {
|
|
|
6328
6331
|
manualIds: l
|
|
6329
6332
|
});
|
|
6330
6333
|
default:
|
|
6331
|
-
return /* @__PURE__ */ n(
|
|
6334
|
+
return /* @__PURE__ */ n(X, {
|
|
6332
6335
|
children: `Graph ${f.type} not implemented`
|
|
6333
6336
|
});
|
|
6334
6337
|
}
|
|
@@ -6421,7 +6424,7 @@ const mc = (e, t) => {
|
|
|
6421
6424
|
});
|
|
6422
6425
|
}
|
|
6423
6426
|
function D() {
|
|
6424
|
-
return /* @__PURE__ */ P(
|
|
6427
|
+
return /* @__PURE__ */ P(X, {
|
|
6425
6428
|
children: [y(), /* @__PURE__ */ n(Ue, {
|
|
6426
6429
|
tooltip: "Previous item",
|
|
6427
6430
|
icon: /* @__PURE__ */ n(Br, {}),
|
|
@@ -6469,7 +6472,7 @@ function xc(e) {
|
|
|
6469
6472
|
});
|
|
6470
6473
|
}
|
|
6471
6474
|
const Cc = (e) => {
|
|
6472
|
-
var
|
|
6475
|
+
var nt;
|
|
6473
6476
|
const {
|
|
6474
6477
|
value: t,
|
|
6475
6478
|
onChange: r,
|
|
@@ -6482,7 +6485,7 @@ const Cc = (e) => {
|
|
|
6482
6485
|
setCurrentView: l,
|
|
6483
6486
|
itemIndex: d,
|
|
6484
6487
|
setItemIndex: u
|
|
6485
|
-
} = K(xo), f = K(
|
|
6488
|
+
} = K(xo), f = K(Ee), {
|
|
6486
6489
|
activeId: c,
|
|
6487
6490
|
getFields: m,
|
|
6488
6491
|
getValues: p,
|
|
@@ -6491,42 +6494,42 @@ const Cc = (e) => {
|
|
|
6491
6494
|
} = f || {}, {
|
|
6492
6495
|
lang: v,
|
|
6493
6496
|
t: y
|
|
6494
|
-
} = K(
|
|
6497
|
+
} = K(ge), [V, O] = x(!1), [b, D] = 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), {
|
|
6495
6498
|
readOnly: q,
|
|
6496
6499
|
relation: E,
|
|
6497
6500
|
context: N,
|
|
6498
6501
|
domain: ee
|
|
6499
6502
|
} = i, le = i.type === "many2many", {
|
|
6500
6503
|
id: ce
|
|
6501
|
-
} = i, ne = s.filter((
|
|
6502
|
-
|
|
6504
|
+
} = i, ne = s.filter((Z) => (Z.values || Z.treeValues) && Z.operation !== "pendingRemove"), J = me();
|
|
6505
|
+
pe(() => {
|
|
6503
6506
|
if (J.current !== a) {
|
|
6504
|
-
J.current = a,
|
|
6507
|
+
J.current = a, we();
|
|
6505
6508
|
return;
|
|
6506
6509
|
}
|
|
6507
|
-
|
|
6510
|
+
we();
|
|
6508
6511
|
}, [s, a]);
|
|
6509
|
-
const
|
|
6510
|
-
(a === "form" && s.some((
|
|
6512
|
+
const we = ke(() => {
|
|
6513
|
+
(a === "form" && s.some((Z) => !Z.values) || a === "tree" && s.some((Z) => !Z.treeValues)) && Pe();
|
|
6511
6514
|
}, [s, a]);
|
|
6512
|
-
|
|
6515
|
+
pe(() => {
|
|
6513
6516
|
oe();
|
|
6514
6517
|
}, [g]);
|
|
6515
|
-
const Se = (
|
|
6516
|
-
var
|
|
6518
|
+
const Se = (Z) => {
|
|
6519
|
+
var ue, Oe;
|
|
6517
6520
|
r == null || r({
|
|
6518
|
-
fields: ((
|
|
6519
|
-
items: xc(
|
|
6521
|
+
fields: ((ue = o.get("form")) == null ? void 0 : ue.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
|
|
6522
|
+
items: xc(Z)
|
|
6520
6523
|
});
|
|
6521
|
-
},
|
|
6524
|
+
}, Pe = async () => {
|
|
6522
6525
|
await fe(), d > ne.length - 1 && d !== 0 && u(0);
|
|
6523
|
-
}, fe = async (
|
|
6524
|
-
var
|
|
6526
|
+
}, fe = async (Z) => {
|
|
6527
|
+
var ue, Oe, ie;
|
|
6525
6528
|
D(!0), O(!1), $(void 0);
|
|
6526
6529
|
try {
|
|
6527
|
-
const [xe,
|
|
6530
|
+
const [xe, he] = await qn({
|
|
6528
6531
|
treeView: {
|
|
6529
|
-
arch: (
|
|
6532
|
+
arch: (ue = o.get("tree")) == null ? void 0 : ue.arch,
|
|
6530
6533
|
fields: (Oe = o.get("tree")) == null ? void 0 : Oe.fields
|
|
6531
6534
|
},
|
|
6532
6535
|
formView: {
|
|
@@ -6538,9 +6541,9 @@ const Cc = (e) => {
|
|
|
6538
6541
|
...h == null ? void 0 : h(),
|
|
6539
6542
|
...N
|
|
6540
6543
|
},
|
|
6541
|
-
currentView:
|
|
6544
|
+
currentView: Z || a
|
|
6542
6545
|
});
|
|
6543
|
-
return U.current || (U.current = xe.map((Ke) => Ke.id)), (a ||
|
|
6546
|
+
return U.current || (U.current = xe.map((Ke) => Ke.id)), (a || Z) === "tree" && he && z(he), Se(xe), xe;
|
|
6544
6547
|
} catch (xe) {
|
|
6545
6548
|
$(xe);
|
|
6546
6549
|
} finally {
|
|
@@ -6562,23 +6565,23 @@ const Cc = (e) => {
|
|
|
6562
6565
|
})));
|
|
6563
6566
|
}
|
|
6564
6567
|
const Te = () => {
|
|
6565
|
-
const
|
|
6568
|
+
const Z = Array.from(o.keys()), ue = Z[(Z.indexOf(a) + 1) % Z.length];
|
|
6566
6569
|
a === "form" ? Ne(() => {
|
|
6567
|
-
l(
|
|
6568
|
-
}) : l(
|
|
6569
|
-
},
|
|
6570
|
+
l(ue);
|
|
6571
|
+
}) : l(ue);
|
|
6572
|
+
}, ye = () => {
|
|
6570
6573
|
d > 0 && (a === "form" ? Ne(() => {
|
|
6571
6574
|
u(d - 1);
|
|
6572
6575
|
}) : u(d - 1));
|
|
6573
6576
|
}, Fe = () => {
|
|
6574
|
-
const
|
|
6575
|
-
d <
|
|
6577
|
+
const Z = ne.length;
|
|
6578
|
+
d < Z - 1 && (a === "form" ? Ne(() => {
|
|
6576
6579
|
u(d + 1);
|
|
6577
6580
|
}) : u(d + 1));
|
|
6578
|
-
},
|
|
6579
|
-
const
|
|
6581
|
+
}, Be = async () => {
|
|
6582
|
+
const Z = ne[d].id, ue = (await H.getHandler().readObjects({
|
|
6580
6583
|
model: E,
|
|
6581
|
-
ids: [
|
|
6584
|
+
ids: [Z],
|
|
6582
6585
|
fields: o.get("form").fields,
|
|
6583
6586
|
context: {
|
|
6584
6587
|
...h == null ? void 0 : h(),
|
|
@@ -6586,32 +6589,32 @@ const Cc = (e) => {
|
|
|
6586
6589
|
}
|
|
6587
6590
|
}))[0], Oe = (await H.getHandler().readObjects({
|
|
6588
6591
|
model: E,
|
|
6589
|
-
ids: [
|
|
6592
|
+
ids: [Z],
|
|
6590
6593
|
fields: o.get("tree").fields,
|
|
6591
6594
|
context: {
|
|
6592
6595
|
...h == null ? void 0 : h(),
|
|
6593
6596
|
...N
|
|
6594
6597
|
}
|
|
6595
|
-
}))[0], ie = s.map((xe) => xe.id ===
|
|
6598
|
+
}))[0], ie = s.map((xe) => xe.id === Z ? {
|
|
6596
6599
|
...xe,
|
|
6597
6600
|
operation: "original",
|
|
6598
|
-
values:
|
|
6601
|
+
values: ue,
|
|
6599
6602
|
treeValues: Oe
|
|
6600
6603
|
} : xe);
|
|
6601
6604
|
Se(ie);
|
|
6602
|
-
}, Ne = (
|
|
6605
|
+
}, Ne = (Z) => {
|
|
6603
6606
|
V ? Wt({
|
|
6604
6607
|
lang: v,
|
|
6605
6608
|
onOk: () => {
|
|
6606
|
-
|
|
6609
|
+
Be(), Z(), O(!1);
|
|
6607
6610
|
}
|
|
6608
|
-
}) :
|
|
6611
|
+
}) : Z();
|
|
6609
6612
|
}, Je = () => {
|
|
6610
6613
|
if (le) {
|
|
6611
6614
|
yc({
|
|
6612
6615
|
lang: v,
|
|
6613
6616
|
onOk: () => {
|
|
6614
|
-
a === "form" ?
|
|
6617
|
+
a === "form" ? de() : be();
|
|
6615
6618
|
}
|
|
6616
6619
|
});
|
|
6617
6620
|
return;
|
|
@@ -6619,68 +6622,68 @@ const Cc = (e) => {
|
|
|
6619
6622
|
pc({
|
|
6620
6623
|
lang: v,
|
|
6621
6624
|
onOk: () => {
|
|
6622
|
-
a === "form" ?
|
|
6625
|
+
a === "form" ? de() : be();
|
|
6623
6626
|
}
|
|
6624
6627
|
});
|
|
6625
|
-
},
|
|
6628
|
+
}, He = async () => {
|
|
6626
6629
|
const {
|
|
6627
|
-
inv_field:
|
|
6630
|
+
inv_field: Z
|
|
6628
6631
|
} = i;
|
|
6629
|
-
let
|
|
6630
|
-
|
|
6631
|
-
[
|
|
6632
|
+
let ue;
|
|
6633
|
+
Z && c && (ue = {
|
|
6634
|
+
[Z]: c
|
|
6632
6635
|
}), a === "form" ? Ne(() => {
|
|
6633
6636
|
I(!0), T({
|
|
6634
|
-
defaultValues:
|
|
6637
|
+
defaultValues: ue
|
|
6635
6638
|
}), C(!0);
|
|
6636
6639
|
}) : (I(!0), T({
|
|
6637
|
-
defaultValues:
|
|
6640
|
+
defaultValues: ue
|
|
6638
6641
|
}), C(!0));
|
|
6639
6642
|
}, Q = async () => {
|
|
6640
6643
|
a === "form" ? Ne(() => {
|
|
6641
6644
|
S(!0);
|
|
6642
6645
|
}) : S(!0);
|
|
6643
|
-
},
|
|
6646
|
+
}, de = async () => {
|
|
6644
6647
|
D(!0), O(!1), $(void 0);
|
|
6645
6648
|
try {
|
|
6646
6649
|
if (ne[d].id > 0) {
|
|
6647
|
-
const
|
|
6648
|
-
...
|
|
6650
|
+
const Z = s.map((ue) => ue.id === ne[d].id ? {
|
|
6651
|
+
...ue,
|
|
6649
6652
|
operation: "pendingRemove"
|
|
6650
|
-
} :
|
|
6651
|
-
Se(
|
|
6653
|
+
} : ue);
|
|
6654
|
+
Se(Z);
|
|
6652
6655
|
} else
|
|
6653
|
-
Se(s.filter((
|
|
6654
|
-
} catch (
|
|
6655
|
-
$(
|
|
6656
|
+
Se(s.filter((Z) => Z.id !== ne[d].id));
|
|
6657
|
+
} catch (Z) {
|
|
6658
|
+
$(Z);
|
|
6656
6659
|
}
|
|
6657
6660
|
u(0), D(!1);
|
|
6658
|
-
},
|
|
6659
|
-
const
|
|
6661
|
+
}, be = async () => {
|
|
6662
|
+
const Z = ne.filter((ue) => R.includes(ue.id));
|
|
6660
6663
|
D(!0), O(!1), $(void 0);
|
|
6661
6664
|
try {
|
|
6662
|
-
const
|
|
6665
|
+
const ue = Z.map((ie) => ie.id), Oe = s.filter((ie) => !(ue.includes(ie.id) && ie.id < 0)).map((ie) => ue.includes(ie.id) ? {
|
|
6663
6666
|
...ie,
|
|
6664
6667
|
operation: "pendingRemove"
|
|
6665
6668
|
} : ie);
|
|
6666
6669
|
Se(Oe);
|
|
6667
|
-
} catch (
|
|
6668
|
-
$(
|
|
6670
|
+
} catch (ue) {
|
|
6671
|
+
$(ue);
|
|
6669
6672
|
}
|
|
6670
6673
|
u(0), D(!1);
|
|
6671
|
-
},
|
|
6674
|
+
}, Le = (Z, ue, Oe) => {
|
|
6672
6675
|
let ie;
|
|
6673
|
-
if (
|
|
6674
|
-
ie = s.map((xe) => xe.id ===
|
|
6675
|
-
id:
|
|
6676
|
-
operation:
|
|
6676
|
+
if (Z)
|
|
6677
|
+
ie = s.map((xe) => xe.id === Z ? {
|
|
6678
|
+
id: Z,
|
|
6679
|
+
operation: Z > 0 ? "pendingUpdate" : "pendingCreate",
|
|
6677
6680
|
values: {
|
|
6678
6681
|
...Oe,
|
|
6679
|
-
id:
|
|
6682
|
+
id: Z
|
|
6680
6683
|
},
|
|
6681
6684
|
treeValues: {
|
|
6682
6685
|
...Oe,
|
|
6683
|
-
id:
|
|
6686
|
+
id: Z
|
|
6684
6687
|
}
|
|
6685
6688
|
} : xe);
|
|
6686
6689
|
else {
|
|
@@ -6699,17 +6702,17 @@ const Cc = (e) => {
|
|
|
6699
6702
|
});
|
|
6700
6703
|
}
|
|
6701
6704
|
Se(ie), M || C(!1);
|
|
6702
|
-
},
|
|
6705
|
+
}, se = async (Z) => {
|
|
6703
6706
|
const {
|
|
6704
|
-
id:
|
|
6705
|
-
} =
|
|
6707
|
+
id: ue
|
|
6708
|
+
} = Z;
|
|
6706
6709
|
let Oe = s;
|
|
6707
|
-
const ie = s.find((xe) => xe.id ===
|
|
6708
|
-
(ie == null ? void 0 : ie.values) === void 0 && (Oe = await fe("form")), T(Oe.find((xe) => xe.id ===
|
|
6709
|
-
},
|
|
6710
|
+
const ie = s.find((xe) => xe.id === ue);
|
|
6711
|
+
(ie == null ? void 0 : ie.values) === void 0 && (Oe = await fe("form")), T(Oe.find((xe) => xe.id === ue)), I(!1), C(!0);
|
|
6712
|
+
}, De = async (Z) => {
|
|
6710
6713
|
D(!0);
|
|
6711
|
-
let
|
|
6712
|
-
const Oe =
|
|
6714
|
+
let ue = s;
|
|
6715
|
+
const Oe = Z.filter((ie) => !s.find((xe) => xe.id === ie));
|
|
6713
6716
|
try {
|
|
6714
6717
|
for (const ie of Oe) {
|
|
6715
6718
|
const xe = (await H.getHandler().readObjects({
|
|
@@ -6720,7 +6723,7 @@ const Cc = (e) => {
|
|
|
6720
6723
|
...h == null ? void 0 : h(),
|
|
6721
6724
|
...N
|
|
6722
6725
|
}
|
|
6723
|
-
}))[0],
|
|
6726
|
+
}))[0], he = (await H.getHandler().readObjects({
|
|
6724
6727
|
model: E,
|
|
6725
6728
|
ids: [ie],
|
|
6726
6729
|
fields: o.get("tree").fields,
|
|
@@ -6729,35 +6732,35 @@ const Cc = (e) => {
|
|
|
6729
6732
|
...N
|
|
6730
6733
|
}
|
|
6731
6734
|
}))[0];
|
|
6732
|
-
|
|
6735
|
+
ue.push({
|
|
6733
6736
|
id: ie,
|
|
6734
6737
|
operation: "pendingLink",
|
|
6735
6738
|
values: xe,
|
|
6736
|
-
treeValues:
|
|
6739
|
+
treeValues: he
|
|
6737
6740
|
});
|
|
6738
6741
|
}
|
|
6739
|
-
Se(
|
|
6742
|
+
Se(ue);
|
|
6740
6743
|
} catch (ie) {
|
|
6741
6744
|
$(ie);
|
|
6742
6745
|
} finally {
|
|
6743
6746
|
D(!1);
|
|
6744
6747
|
}
|
|
6745
6748
|
};
|
|
6746
|
-
function
|
|
6747
|
-
const
|
|
6749
|
+
function Ae() {
|
|
6750
|
+
const Z = bc[a];
|
|
6748
6751
|
if (a === "graph")
|
|
6749
6752
|
return $n(o.get("graph").arch).string;
|
|
6750
6753
|
{
|
|
6751
|
-
const
|
|
6752
|
-
return
|
|
6754
|
+
const ue = new Z(o.get(a).fields);
|
|
6755
|
+
return ue.parse(o.get(a).arch), ue.string;
|
|
6753
6756
|
}
|
|
6754
6757
|
}
|
|
6755
|
-
const
|
|
6756
|
-
var
|
|
6758
|
+
const tt = () => {
|
|
6759
|
+
var ue, Oe, ie, xe;
|
|
6757
6760
|
if (a === "form")
|
|
6758
|
-
return ne.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((
|
|
6761
|
+
return ne.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((he) => !he.values) ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(Yt, {
|
|
6759
6762
|
formView: o.get("form"),
|
|
6760
|
-
values: (
|
|
6763
|
+
values: (ue = ne[d]) == null ? void 0 : ue.values,
|
|
6761
6764
|
parentContext: {
|
|
6762
6765
|
...h == null ? void 0 : h(),
|
|
6763
6766
|
...N
|
|
@@ -6765,40 +6768,40 @@ const Cc = (e) => {
|
|
|
6765
6768
|
model: E,
|
|
6766
6769
|
id: (Oe = ne[d]) == null ? void 0 : Oe.id,
|
|
6767
6770
|
submitMode: "values",
|
|
6768
|
-
onFieldsChange: (
|
|
6769
|
-
var
|
|
6770
|
-
const Ke = (
|
|
6771
|
+
onFieldsChange: (he) => {
|
|
6772
|
+
var ot;
|
|
6773
|
+
const Ke = (ot = ne[d]) == null ? void 0 : ot.id, rt = s.map((dt) => dt.id === Ke ? {
|
|
6771
6774
|
...dt,
|
|
6772
6775
|
operation: dt.operation === "original" ? "pendingUpdate" : dt.operation,
|
|
6773
6776
|
values: {
|
|
6774
|
-
...
|
|
6777
|
+
...he,
|
|
6775
6778
|
id: Ke
|
|
6776
6779
|
},
|
|
6777
6780
|
treeValues: {
|
|
6778
|
-
...
|
|
6781
|
+
...he,
|
|
6779
6782
|
id: Ke
|
|
6780
6783
|
}
|
|
6781
6784
|
} : dt);
|
|
6782
|
-
Se(
|
|
6785
|
+
Se(rt), O(!0);
|
|
6783
6786
|
},
|
|
6784
6787
|
readOnly: q
|
|
6785
6788
|
});
|
|
6786
|
-
let
|
|
6787
|
-
if (ne.some((
|
|
6788
|
-
resultsToSort: ne.map((
|
|
6789
|
+
let Z = [];
|
|
6790
|
+
if (ne.some((he) => he.treeValues) && (Z = B ? Ot({
|
|
6791
|
+
resultsToSort: ne.map((he) => he.treeValues),
|
|
6789
6792
|
sorter: B,
|
|
6790
6793
|
fields: {
|
|
6791
6794
|
...o.get("tree").fields,
|
|
6792
6795
|
...((ie = o.get("form")) == null ? void 0 : ie.fields) || {}
|
|
6793
6796
|
}
|
|
6794
|
-
}) : ne.map((
|
|
6797
|
+
}) : ne.map((he) => he.treeValues)), a === "tree")
|
|
6795
6798
|
return /* @__PURE__ */ n(mn, {
|
|
6796
6799
|
total: ne.length,
|
|
6797
6800
|
limit: ne.length,
|
|
6798
6801
|
treeView: o.get("tree"),
|
|
6799
|
-
results:
|
|
6802
|
+
results: Z,
|
|
6800
6803
|
loading: b,
|
|
6801
|
-
onRowClicked: ((xe = o.get("form")) == null ? void 0 : xe.fields) !== void 0 ?
|
|
6804
|
+
onRowClicked: ((xe = o.get("form")) == null ? void 0 : xe.fields) !== void 0 ? se : void 0,
|
|
6802
6805
|
showPagination: !1,
|
|
6803
6806
|
rowSelection: {
|
|
6804
6807
|
selectedRowKeys: R,
|
|
@@ -6813,11 +6816,11 @@ const Cc = (e) => {
|
|
|
6813
6816
|
colorsForResults: W
|
|
6814
6817
|
});
|
|
6815
6818
|
if (a === "graph") {
|
|
6816
|
-
const
|
|
6819
|
+
const he = [[`${i.inv_field}`, "=", c]];
|
|
6817
6820
|
return /* @__PURE__ */ n(hn, {
|
|
6818
6821
|
view_id: o.get("graph").view_id,
|
|
6819
6822
|
model: i.relation,
|
|
6820
|
-
domain:
|
|
6823
|
+
domain: he,
|
|
6821
6824
|
context: {
|
|
6822
6825
|
...h == null ? void 0 : h(),
|
|
6823
6826
|
...N
|
|
@@ -6833,26 +6836,26 @@ const Cc = (e) => {
|
|
|
6833
6836
|
type: "error",
|
|
6834
6837
|
banner: !0
|
|
6835
6838
|
});
|
|
6836
|
-
const
|
|
6837
|
-
return b ? /* @__PURE__ */ n(
|
|
6839
|
+
const Ze = M;
|
|
6840
|
+
return b ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(X, {
|
|
6838
6841
|
children: [/* @__PURE__ */ n(wc, {
|
|
6839
6842
|
mode: a,
|
|
6840
|
-
title:
|
|
6843
|
+
title: Ae(),
|
|
6841
6844
|
readOnly: q,
|
|
6842
6845
|
isMany2Many: le,
|
|
6843
6846
|
formHasChanges: V,
|
|
6844
6847
|
totalItems: ne.length,
|
|
6845
6848
|
currentItemIndex: d,
|
|
6846
6849
|
onDelete: Je,
|
|
6847
|
-
onCreateItem:
|
|
6850
|
+
onCreateItem: He,
|
|
6848
6851
|
onToggleViewMode: Te,
|
|
6849
|
-
onPreviousItem:
|
|
6852
|
+
onPreviousItem: ye,
|
|
6850
6853
|
onNextItem: Fe,
|
|
6851
6854
|
onSearchItem: Q,
|
|
6852
6855
|
selectedRowKeys: R,
|
|
6853
|
-
showCreateButton: ((
|
|
6856
|
+
showCreateButton: ((nt = o.get("form")) == null ? void 0 : nt.fields) !== void 0,
|
|
6854
6857
|
showToggleButton: o.size > 1
|
|
6855
|
-
}),
|
|
6858
|
+
}), tt(), /* @__PURE__ */ n(Gt, {
|
|
6856
6859
|
formView: o.get("form"),
|
|
6857
6860
|
model: E,
|
|
6858
6861
|
id: L == null ? void 0 : L.id,
|
|
@@ -6860,7 +6863,7 @@ const Cc = (e) => {
|
|
|
6860
6863
|
values: L == null ? void 0 : L.values,
|
|
6861
6864
|
defaultValues: L == null ? void 0 : L.defaultValues,
|
|
6862
6865
|
visible: w,
|
|
6863
|
-
onSubmitSucceed:
|
|
6866
|
+
onSubmitSucceed: Le,
|
|
6864
6867
|
parentContext: {
|
|
6865
6868
|
...h == null ? void 0 : h(),
|
|
6866
6869
|
...N
|
|
@@ -6869,7 +6872,7 @@ const Cc = (e) => {
|
|
|
6869
6872
|
I(!1), C(!1);
|
|
6870
6873
|
},
|
|
6871
6874
|
readOnly: q,
|
|
6872
|
-
mustClearAfterSave:
|
|
6875
|
+
mustClearAfterSave: Ze
|
|
6873
6876
|
}), /* @__PURE__ */ n(vo, {
|
|
6874
6877
|
domain: k.current,
|
|
6875
6878
|
model: E,
|
|
@@ -6878,8 +6881,8 @@ const Cc = (e) => {
|
|
|
6878
6881
|
...N
|
|
6879
6882
|
},
|
|
6880
6883
|
visible: F,
|
|
6881
|
-
onSelectValues: async (
|
|
6882
|
-
S(!1),
|
|
6884
|
+
onSelectValues: async (Z) => {
|
|
6885
|
+
S(!1), De(Z);
|
|
6883
6886
|
},
|
|
6884
6887
|
onCloseModal: () => {
|
|
6885
6888
|
S(!1);
|
|
@@ -6897,7 +6900,7 @@ const Cc = (e) => {
|
|
|
6897
6900
|
context: a
|
|
6898
6901
|
} = t;
|
|
6899
6902
|
let l;
|
|
6900
|
-
const [d, u] = x(!0), [f, c] = x(), [m, p] = x(/* @__PURE__ */ new Map()), h = K(
|
|
6903
|
+
const [d, u] = x(!0), [f, c] = x(), [m, p] = x(/* @__PURE__ */ new Map()), h = K(Ee), {
|
|
6901
6904
|
getContext: g
|
|
6902
6905
|
} = h || {};
|
|
6903
6906
|
bt(() => {
|
|
@@ -6929,14 +6932,14 @@ const Cc = (e) => {
|
|
|
6929
6932
|
u(!1);
|
|
6930
6933
|
}
|
|
6931
6934
|
};
|
|
6932
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(
|
|
6935
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Re, {}) : f ? /* @__PURE__ */ n(ze, {
|
|
6933
6936
|
className: "mt-10",
|
|
6934
6937
|
message: f,
|
|
6935
6938
|
type: "error",
|
|
6936
6939
|
banner: !0
|
|
6937
6940
|
}) : /* @__PURE__ */ n(Zl, {
|
|
6938
6941
|
initialView: l,
|
|
6939
|
-
children: /* @__PURE__ */ n(
|
|
6942
|
+
children: /* @__PURE__ */ n(ve, {
|
|
6940
6943
|
required: s,
|
|
6941
6944
|
type: "array",
|
|
6942
6945
|
validator: async (O, b) => {
|
|
@@ -6964,7 +6967,7 @@ const Cc = (e) => {
|
|
|
6964
6967
|
} = e, {
|
|
6965
6968
|
required: r
|
|
6966
6969
|
} = t;
|
|
6967
|
-
return /* @__PURE__ */ n(
|
|
6970
|
+
return /* @__PURE__ */ n(ve, {
|
|
6968
6971
|
required: r,
|
|
6969
6972
|
type: "number",
|
|
6970
6973
|
...e,
|
|
@@ -6985,10 +6988,10 @@ const Cc = (e) => {
|
|
|
6985
6988
|
token: l
|
|
6986
6989
|
} = Tc(), d = a && !s ? {
|
|
6987
6990
|
backgroundColor: l.colorPrimaryBg
|
|
6988
|
-
} : void 0, u = me(), [f, c] = x(), m = K(
|
|
6991
|
+
} : void 0, u = me(), [f, c] = x(), m = K(Ee), {
|
|
6989
6992
|
elementHasLostFocus: p
|
|
6990
6993
|
} = m || {};
|
|
6991
|
-
|
|
6994
|
+
pe(() => {
|
|
6992
6995
|
c(uo(r));
|
|
6993
6996
|
}, [r]);
|
|
6994
6997
|
const h = (y) => {
|
|
@@ -7016,8 +7019,8 @@ function So(e) {
|
|
|
7016
7019
|
ooui: t,
|
|
7017
7020
|
showLabel: r = !0,
|
|
7018
7021
|
responsiveBehaviour: i
|
|
7019
|
-
} = e, o =
|
|
7020
|
-
return /* @__PURE__ */ n(
|
|
7022
|
+
} = e, o = st(t.icon || "");
|
|
7023
|
+
return /* @__PURE__ */ n(X, {
|
|
7021
7024
|
children: (t.label || o) && r ? /* @__PURE__ */ n(_i, {
|
|
7022
7025
|
label: t.label,
|
|
7023
7026
|
icon: o,
|
|
@@ -7041,7 +7044,7 @@ function Ic(e) {
|
|
|
7041
7044
|
} = e, i = t.pages;
|
|
7042
7045
|
function o(s) {
|
|
7043
7046
|
if (s) {
|
|
7044
|
-
const a =
|
|
7047
|
+
const a = st(s);
|
|
7045
7048
|
return a && /* @__PURE__ */ n(a, {});
|
|
7046
7049
|
}
|
|
7047
7050
|
}
|
|
@@ -7049,7 +7052,7 @@ function Ic(e) {
|
|
|
7049
7052
|
defaultActiveKey: "1",
|
|
7050
7053
|
tabPosition: t.tabPosition,
|
|
7051
7054
|
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(_c, {
|
|
7052
|
-
tab: /* @__PURE__ */ P(
|
|
7055
|
+
tab: /* @__PURE__ */ P(X, {
|
|
7053
7056
|
children: [o(s.icon), " ", s.label]
|
|
7054
7057
|
}),
|
|
7055
7058
|
children: /* @__PURE__ */ n(So, {
|
|
@@ -7077,10 +7080,10 @@ const {
|
|
|
7077
7080
|
token: l
|
|
7078
7081
|
} = Dc(), d = o && !i ? {
|
|
7079
7082
|
backgroundColor: l.colorPrimaryBg
|
|
7080
|
-
} : void 0, u = K(
|
|
7083
|
+
} : void 0, u = K(Ee), {
|
|
7081
7084
|
elementHasLostFocus: f
|
|
7082
7085
|
} = u || {};
|
|
7083
|
-
return /* @__PURE__ */ n(
|
|
7086
|
+
return /* @__PURE__ */ n(ve, {
|
|
7084
7087
|
required: o,
|
|
7085
7088
|
...e,
|
|
7086
7089
|
children: a ? /* @__PURE__ */ n(Ac, {
|
|
@@ -7104,7 +7107,7 @@ const {
|
|
|
7104
7107
|
onChange: i,
|
|
7105
7108
|
height: o
|
|
7106
7109
|
}) => {
|
|
7107
|
-
const s = K(
|
|
7110
|
+
const s = K(Ee), {
|
|
7108
7111
|
activeId: a,
|
|
7109
7112
|
activeModel: l,
|
|
7110
7113
|
fetchValues: d,
|
|
@@ -7112,8 +7115,8 @@ const {
|
|
|
7112
7115
|
elementHasLostFocus: f
|
|
7113
7116
|
} = s || {}, [c, m] = x(!1), {
|
|
7114
7117
|
t: p
|
|
7115
|
-
} = K(
|
|
7116
|
-
return a ? /* @__PURE__ */ P(
|
|
7118
|
+
} = K(ge);
|
|
7119
|
+
return a ? /* @__PURE__ */ P(X, {
|
|
7117
7120
|
children: [/* @__PURE__ */ n("div", {
|
|
7118
7121
|
onClick: () => {
|
|
7119
7122
|
if (u != null && u()) {
|
|
@@ -7149,7 +7152,7 @@ const {
|
|
|
7149
7152
|
m(!1), d == null || d();
|
|
7150
7153
|
}
|
|
7151
7154
|
})]
|
|
7152
|
-
}) : /* @__PURE__ */ P(
|
|
7155
|
+
}) : /* @__PURE__ */ P(X, {
|
|
7153
7156
|
children: [/* @__PURE__ */ n(Ce, {
|
|
7154
7157
|
gutter: 8,
|
|
7155
7158
|
wrap: !1,
|
|
@@ -7187,11 +7190,11 @@ const {
|
|
|
7187
7190
|
} = e, {
|
|
7188
7191
|
label: r,
|
|
7189
7192
|
icon: i
|
|
7190
|
-
} = t, o =
|
|
7193
|
+
} = t, o = st(i || "");
|
|
7191
7194
|
return /* @__PURE__ */ n(sn, {
|
|
7192
7195
|
orientation: "left",
|
|
7193
7196
|
className: "text-sm",
|
|
7194
|
-
children: (o || r) && /* @__PURE__ */ P(
|
|
7197
|
+
children: (o || r) && /* @__PURE__ */ P(je, {
|
|
7195
7198
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7196
7199
|
})
|
|
7197
7200
|
});
|
|
@@ -7204,7 +7207,7 @@ const {
|
|
|
7204
7207
|
limit: s,
|
|
7205
7208
|
onClose: a
|
|
7206
7209
|
}) => {
|
|
7207
|
-
const l = me({}), d = me(/* @__PURE__ */ new Map()), u =
|
|
7210
|
+
const l = me({}), d = me(/* @__PURE__ */ new Map()), u = ke(
|
|
7208
7211
|
async (v) => {
|
|
7209
7212
|
if (v.selectedKeys === void 0 || v.selectedKeys.length === 0) {
|
|
7210
7213
|
ct(_e("selectAtLeastOneField", r));
|
|
@@ -7230,14 +7233,14 @@ const {
|
|
|
7230
7233
|
un(V, O.mime);
|
|
7231
7234
|
},
|
|
7232
7235
|
[r, e, o, s, t, a]
|
|
7233
|
-
), f =
|
|
7236
|
+
), f = ke(async () => {
|
|
7234
7237
|
const v = await H.getHandler().getFields({
|
|
7235
7238
|
model: e,
|
|
7236
7239
|
context: t,
|
|
7237
7240
|
fields: []
|
|
7238
7241
|
});
|
|
7239
7242
|
return l.current["/"] = v, Fr({ fields: v });
|
|
7240
|
-
}, [e, t, l]), c =
|
|
7243
|
+
}, [e, t, l]), c = ke(
|
|
7241
7244
|
async (v) => {
|
|
7242
7245
|
const V = An(v, l.current)[Vn(v)], O = V.relation, b = await H.getHandler().getFields({
|
|
7243
7246
|
model: O,
|
|
@@ -7255,7 +7258,7 @@ const {
|
|
|
7255
7258
|
});
|
|
7256
7259
|
},
|
|
7257
7260
|
[l.current, e, t]
|
|
7258
|
-
), m =
|
|
7261
|
+
), m = ke(async () => {
|
|
7259
7262
|
const v = await $c({ model: e, context: t }), y = await Lc({
|
|
7260
7263
|
predefinedExports: v,
|
|
7261
7264
|
fields: l.current,
|
|
@@ -7274,7 +7277,7 @@ const {
|
|
|
7274
7277
|
})),
|
|
7275
7278
|
keysWithChilds: y
|
|
7276
7279
|
};
|
|
7277
|
-
}, [l.current]), p =
|
|
7280
|
+
}, [l.current]), p = ke(
|
|
7278
7281
|
async (v) => {
|
|
7279
7282
|
const y = await g("ir.exports"), V = await g("ir.exports.line"), O = await H.getHandler().create({
|
|
7280
7283
|
model: "ir.exports",
|
|
@@ -7298,7 +7301,7 @@ const {
|
|
|
7298
7301
|
), { ...v, id: O };
|
|
7299
7302
|
},
|
|
7300
7303
|
[]
|
|
7301
|
-
), h =
|
|
7304
|
+
), h = ke(
|
|
7302
7305
|
async (v) => {
|
|
7303
7306
|
await H.getHandler().delete({
|
|
7304
7307
|
model: "ir.exports",
|
|
@@ -7306,7 +7309,7 @@ const {
|
|
|
7306
7309
|
});
|
|
7307
7310
|
},
|
|
7308
7311
|
[]
|
|
7309
|
-
), g =
|
|
7312
|
+
), g = ke(
|
|
7310
7313
|
async (v) => {
|
|
7311
7314
|
if (d.current.has(v))
|
|
7312
7315
|
return d.current.get(v);
|
|
@@ -7491,7 +7494,7 @@ const {
|
|
|
7491
7494
|
} = e, {
|
|
7492
7495
|
required: r
|
|
7493
7496
|
} = t;
|
|
7494
|
-
return /* @__PURE__ */ n(
|
|
7497
|
+
return /* @__PURE__ */ n(ve, {
|
|
7495
7498
|
required: r,
|
|
7496
7499
|
...e,
|
|
7497
7500
|
children: /* @__PURE__ */ n(Yc, {
|
|
@@ -7508,7 +7511,7 @@ const {
|
|
|
7508
7511
|
selectionValues: s,
|
|
7509
7512
|
readOnly: a
|
|
7510
7513
|
} = i, l = t == null ? void 0 : t.split(","), [d, u] = x([]), [f, c] = x();
|
|
7511
|
-
return
|
|
7514
|
+
return pe(() => {
|
|
7512
7515
|
if (!t) {
|
|
7513
7516
|
c(void 0), u([]);
|
|
7514
7517
|
return;
|
|
@@ -7562,7 +7565,7 @@ const {
|
|
|
7562
7565
|
} = e, {
|
|
7563
7566
|
required: r
|
|
7564
7567
|
} = t;
|
|
7565
|
-
return /* @__PURE__ */ n(
|
|
7568
|
+
return /* @__PURE__ */ n(ve, {
|
|
7566
7569
|
required: r,
|
|
7567
7570
|
...e,
|
|
7568
7571
|
children: /* @__PURE__ */ n(qc, {
|
|
@@ -7585,9 +7588,9 @@ const {
|
|
|
7585
7588
|
} : void 0, u = me(null), {
|
|
7586
7589
|
setFieldValue: f,
|
|
7587
7590
|
getFieldValue: c
|
|
7588
|
-
} = K(
|
|
7591
|
+
} = K(Ee) || {}, {
|
|
7589
7592
|
t: m
|
|
7590
|
-
} = K(
|
|
7593
|
+
} = K(ge), p = r ? ua(r) : "", h = (O) => {
|
|
7591
7594
|
i == null || i(O);
|
|
7592
7595
|
};
|
|
7593
7596
|
async function g() {
|
|
@@ -7627,7 +7630,7 @@ const {
|
|
|
7627
7630
|
value: p
|
|
7628
7631
|
})]
|
|
7629
7632
|
}), /* @__PURE__ */ n(ae, {
|
|
7630
|
-
children: /* @__PURE__ */ P(
|
|
7633
|
+
children: /* @__PURE__ */ P(je, {
|
|
7631
7634
|
children: [/* @__PURE__ */ n(Ie, {
|
|
7632
7635
|
icon: /* @__PURE__ */ n(Nn, {}),
|
|
7633
7636
|
disabled: o,
|
|
@@ -7674,7 +7677,7 @@ function Zn(e) {
|
|
|
7674
7677
|
} = e, {
|
|
7675
7678
|
t: l,
|
|
7676
7679
|
lang: d
|
|
7677
|
-
} = K(
|
|
7680
|
+
} = K(ge);
|
|
7678
7681
|
function u() {
|
|
7679
7682
|
const m = r.map((p, h) => /* @__PURE__ */ n($e.Item, {
|
|
7680
7683
|
children: /* @__PURE__ */ P(Ce, {
|
|
@@ -7821,10 +7824,10 @@ function Fo(e) {
|
|
|
7821
7824
|
} = e, {
|
|
7822
7825
|
formHasChanges: r,
|
|
7823
7826
|
onNewClicked: i
|
|
7824
|
-
} = K(
|
|
7827
|
+
} = K(Xe), {
|
|
7825
7828
|
t: o,
|
|
7826
7829
|
lang: s
|
|
7827
|
-
} = K(
|
|
7830
|
+
} = K(ge), a = () => {
|
|
7828
7831
|
if (r) {
|
|
7829
7832
|
Wt({
|
|
7830
7833
|
lang: s,
|
|
@@ -7883,7 +7886,7 @@ const Zc = (e) => {
|
|
|
7883
7886
|
} = e, {
|
|
7884
7887
|
t: i,
|
|
7885
7888
|
lang: o
|
|
7886
|
-
} = K(
|
|
7889
|
+
} = K(ge), [s, a] = x(!1), l = /* @__PURE__ */ P(Ie, {
|
|
7887
7890
|
disabled: r,
|
|
7888
7891
|
children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
|
|
7889
7892
|
style: {
|
|
@@ -7909,11 +7912,11 @@ const Zc = (e) => {
|
|
|
7909
7912
|
onOpenAttachmentDetail: l,
|
|
7910
7913
|
onListAllAttachments: d
|
|
7911
7914
|
} = e;
|
|
7912
|
-
return o ? /* @__PURE__ */ n(
|
|
7915
|
+
return o ? /* @__PURE__ */ n(Re, {
|
|
7913
7916
|
style: {
|
|
7914
7917
|
padding: 20
|
|
7915
7918
|
}
|
|
7916
|
-
}) : /* @__PURE__ */ P(
|
|
7919
|
+
}) : /* @__PURE__ */ P(X, {
|
|
7917
7920
|
children: [/* @__PURE__ */ P("a", {
|
|
7918
7921
|
style: {
|
|
7919
7922
|
display: "block",
|
|
@@ -7933,7 +7936,7 @@ const Zc = (e) => {
|
|
|
7933
7936
|
t(!1), s();
|
|
7934
7937
|
},
|
|
7935
7938
|
children: [/* @__PURE__ */ n(an, {}), " ", _e("addNewAttachment", r)]
|
|
7936
|
-
}), i.length > 0 && /* @__PURE__ */ P(
|
|
7939
|
+
}), i.length > 0 && /* @__PURE__ */ P(X, {
|
|
7937
7940
|
children: [/* @__PURE__ */ n("li", {
|
|
7938
7941
|
className: "ant-dropdown-menu-item-divider"
|
|
7939
7942
|
}), i.map((u) => {
|
|
@@ -7995,9 +7998,9 @@ function Qc(e) {
|
|
|
7995
7998
|
onViewAttachmentDetails: s
|
|
7996
7999
|
} = e, {
|
|
7997
8000
|
formRef: a
|
|
7998
|
-
} = K(
|
|
8001
|
+
} = K(Xe), [l, d] = x(!1), [u, f] = x([]), [c, m] = x(!1), {
|
|
7999
8002
|
t: p
|
|
8000
|
-
} = K(
|
|
8003
|
+
} = K(ge), h = ke(async () => {
|
|
8001
8004
|
d(!0);
|
|
8002
8005
|
try {
|
|
8003
8006
|
const y = await H.getHandler().readObjects({
|
|
@@ -8016,7 +8019,7 @@ function Qc(e) {
|
|
|
8016
8019
|
We(y);
|
|
8017
8020
|
}
|
|
8018
8021
|
d(!1);
|
|
8019
|
-
}, t), g =
|
|
8022
|
+
}, t), g = ke(async (y) => {
|
|
8020
8023
|
if (y.link) {
|
|
8021
8024
|
window.open(y.link);
|
|
8022
8025
|
return;
|
|
@@ -8038,12 +8041,12 @@ function Qc(e) {
|
|
|
8038
8041
|
un(V.datas, O.mime);
|
|
8039
8042
|
} else
|
|
8040
8043
|
s(V);
|
|
8041
|
-
}, []), v =
|
|
8044
|
+
}, []), v = ke(async (y) => {
|
|
8042
8045
|
s(y);
|
|
8043
8046
|
}, []);
|
|
8044
|
-
return
|
|
8047
|
+
return pe(() => {
|
|
8045
8048
|
h();
|
|
8046
|
-
}, [h]), /* @__PURE__ */ P(
|
|
8049
|
+
}, [h]), /* @__PURE__ */ P(X, {
|
|
8047
8050
|
children: [/* @__PURE__ */ n(Zc, {
|
|
8048
8051
|
numberOfAttachments: t.length,
|
|
8049
8052
|
attachments: u,
|
|
@@ -8060,7 +8063,7 @@ function Qc(e) {
|
|
|
8060
8063
|
closable: !1,
|
|
8061
8064
|
centered: !0,
|
|
8062
8065
|
maskClosable: !1,
|
|
8063
|
-
children: /* @__PURE__ */ n(
|
|
8066
|
+
children: /* @__PURE__ */ n(Re, {})
|
|
8064
8067
|
})]
|
|
8065
8068
|
});
|
|
8066
8069
|
}
|
|
@@ -8092,12 +8095,12 @@ function ed({
|
|
|
8092
8095
|
previousView: _,
|
|
8093
8096
|
setPreviousView: $,
|
|
8094
8097
|
goToResourceId: w
|
|
8095
|
-
} = K(
|
|
8098
|
+
} = K(Xe), {
|
|
8096
8099
|
t: C,
|
|
8097
8100
|
lang: F
|
|
8098
|
-
} = K(
|
|
8101
|
+
} = K(ge), S = K(Rt), {
|
|
8099
8102
|
processAction: L
|
|
8100
|
-
} = S || {}, T = K(
|
|
8103
|
+
} = S || {}, T = K(at), {
|
|
8101
8104
|
openRelate: R,
|
|
8102
8105
|
openDefaultActionForModel: A
|
|
8103
8106
|
} = T || {};
|
|
@@ -8183,10 +8186,10 @@ function ed({
|
|
|
8183
8186
|
}
|
|
8184
8187
|
});
|
|
8185
8188
|
}
|
|
8186
|
-
return r ? /* @__PURE__ */ P(
|
|
8189
|
+
return r ? /* @__PURE__ */ P(je, {
|
|
8187
8190
|
wrap: !0,
|
|
8188
|
-
children: [V && /* @__PURE__ */ P(
|
|
8189
|
-
children: [/* @__PURE__ */ n(
|
|
8191
|
+
children: [V && /* @__PURE__ */ P(X, {
|
|
8192
|
+
children: [/* @__PURE__ */ n(Re, {}), Ct(), Ct()]
|
|
8190
8193
|
}), /* @__PURE__ */ n(Fo, {
|
|
8191
8194
|
disabled: a || V || h || g
|
|
8192
8195
|
}), /* @__PURE__ */ n(Ge, {
|
|
@@ -8234,7 +8237,7 @@ function ed({
|
|
|
8234
8237
|
},
|
|
8235
8238
|
disabled: z,
|
|
8236
8239
|
formHasChanges: s
|
|
8237
|
-
}), Ct(), /* @__PURE__ */ P(
|
|
8240
|
+
}), Ct(), /* @__PURE__ */ P(je, {
|
|
8238
8241
|
children: [/* @__PURE__ */ n(Ge, {
|
|
8239
8242
|
icon: /* @__PURE__ */ n(Br, {}),
|
|
8240
8243
|
tooltip: C("previous"),
|
|
@@ -8378,10 +8381,10 @@ const {
|
|
|
8378
8381
|
token: u
|
|
8379
8382
|
} = td(), f = d && !l ? {
|
|
8380
8383
|
backgroundColor: u.colorPrimaryBg
|
|
8381
|
-
} : void 0, c = K(
|
|
8384
|
+
} : void 0, c = K(Ee), {
|
|
8382
8385
|
elementHasLostFocus: m
|
|
8383
8386
|
} = c || {}, [p, h] = x(!1), [g, v] = x(!1);
|
|
8384
|
-
|
|
8387
|
+
pe(() => {
|
|
8385
8388
|
l && !p && v(!1), !r && !l && (h(!0), v(!0));
|
|
8386
8389
|
}, [p, l]);
|
|
8387
8390
|
const y = (V) => {
|
|
@@ -8445,7 +8448,7 @@ const {
|
|
|
8445
8448
|
} = e, {
|
|
8446
8449
|
required: r
|
|
8447
8450
|
} = t;
|
|
8448
|
-
return /* @__PURE__ */ n(
|
|
8451
|
+
return /* @__PURE__ */ n(ve, {
|
|
8449
8452
|
required: r,
|
|
8450
8453
|
...e,
|
|
8451
8454
|
children: /* @__PURE__ */ n(_o, {
|
|
@@ -8459,7 +8462,7 @@ const {
|
|
|
8459
8462
|
} = e, {
|
|
8460
8463
|
required: r
|
|
8461
8464
|
} = t;
|
|
8462
|
-
return /* @__PURE__ */ n(
|
|
8465
|
+
return /* @__PURE__ */ n(ve, {
|
|
8463
8466
|
required: r,
|
|
8464
8467
|
...e,
|
|
8465
8468
|
children: /* @__PURE__ */ n(_o, {
|
|
@@ -8476,7 +8479,7 @@ const {
|
|
|
8476
8479
|
isSearching: o
|
|
8477
8480
|
} = e, {
|
|
8478
8481
|
t: s
|
|
8479
|
-
} = K(
|
|
8482
|
+
} = K(ge);
|
|
8480
8483
|
function a(l) {
|
|
8481
8484
|
r(l.id);
|
|
8482
8485
|
}
|
|
@@ -8488,11 +8491,11 @@ const {
|
|
|
8488
8491
|
destroyOnClose: !0,
|
|
8489
8492
|
onCancel: i,
|
|
8490
8493
|
maskClosable: !1,
|
|
8491
|
-
children: /* @__PURE__ */ P(
|
|
8494
|
+
children: /* @__PURE__ */ P(it, {
|
|
8492
8495
|
layout: "vertical",
|
|
8493
8496
|
onFinish: a,
|
|
8494
8497
|
autoComplete: "off",
|
|
8495
|
-
children: [/* @__PURE__ */ n(
|
|
8498
|
+
children: [/* @__PURE__ */ n(it.Item, {
|
|
8496
8499
|
name: "id",
|
|
8497
8500
|
label: s("searchId"),
|
|
8498
8501
|
rules: [{
|
|
@@ -8509,7 +8512,7 @@ const {
|
|
|
8509
8512
|
align: "middle",
|
|
8510
8513
|
justify: "end",
|
|
8511
8514
|
children: /* @__PURE__ */ n(ae, {
|
|
8512
|
-
children: /* @__PURE__ */ P(
|
|
8515
|
+
children: /* @__PURE__ */ P(je, {
|
|
8513
8516
|
children: [/* @__PURE__ */ n(Ie, {
|
|
8514
8517
|
icon: /* @__PURE__ */ n(Ht, {}),
|
|
8515
8518
|
htmlType: "button",
|
|
@@ -8580,7 +8583,7 @@ function sd({
|
|
|
8580
8583
|
}) {
|
|
8581
8584
|
const {
|
|
8582
8585
|
t
|
|
8583
|
-
} = K(
|
|
8586
|
+
} = K(ge), {
|
|
8584
8587
|
availableViews: r,
|
|
8585
8588
|
currentView: i,
|
|
8586
8589
|
setCurrentView: o,
|
|
@@ -8590,8 +8593,8 @@ function sd({
|
|
|
8590
8593
|
graphIsLoading: d,
|
|
8591
8594
|
previousView: u,
|
|
8592
8595
|
setPreviousView: f
|
|
8593
|
-
} = K(
|
|
8594
|
-
return /* @__PURE__ */ P(
|
|
8596
|
+
} = K(Xe);
|
|
8597
|
+
return /* @__PURE__ */ P(je, {
|
|
8595
8598
|
wrap: !0,
|
|
8596
8599
|
children: [/* @__PURE__ */ n(Io, {
|
|
8597
8600
|
icon: /* @__PURE__ */ n(Yr, {
|
|
@@ -8643,14 +8646,14 @@ function pn(e) {
|
|
|
8643
8646
|
results: l,
|
|
8644
8647
|
totalItems: d,
|
|
8645
8648
|
selectedRowItems: u
|
|
8646
|
-
} = K(
|
|
8649
|
+
} = K(Xe), {
|
|
8647
8650
|
t: f
|
|
8648
|
-
} = K(
|
|
8651
|
+
} = K(ge), {
|
|
8649
8652
|
token: c
|
|
8650
8653
|
} = ad();
|
|
8651
8654
|
function m() {
|
|
8652
8655
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8653
|
-
return s ? d === 0 ? /* @__PURE__ */ P(
|
|
8656
|
+
return s ? d === 0 ? /* @__PURE__ */ P(X, {
|
|
8654
8657
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8655
8658
|
copyable: {
|
|
8656
8659
|
icon: /* @__PURE__ */ n(Yn, {
|
|
@@ -8661,7 +8664,7 @@ function pn(e) {
|
|
|
8661
8664
|
},
|
|
8662
8665
|
children: s
|
|
8663
8666
|
}), ")"]
|
|
8664
|
-
}) : /* @__PURE__ */ P(
|
|
8667
|
+
}) : /* @__PURE__ */ P(X, {
|
|
8665
8668
|
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", d, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8666
8669
|
copyable: !0,
|
|
8667
8670
|
children: s
|
|
@@ -8669,14 +8672,14 @@ function pn(e) {
|
|
|
8669
8672
|
}) : "";
|
|
8670
8673
|
if ((o == null ? void 0 : o.type) === "tree" && u) {
|
|
8671
8674
|
if (u.length === 1)
|
|
8672
|
-
return /* @__PURE__ */ P(
|
|
8675
|
+
return /* @__PURE__ */ P(X, {
|
|
8673
8676
|
children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Zt, {
|
|
8674
8677
|
copyable: !0,
|
|
8675
8678
|
children: u[0].id
|
|
8676
8679
|
}), ")"]
|
|
8677
8680
|
});
|
|
8678
8681
|
if (u.length > 1)
|
|
8679
|
-
return /* @__PURE__ */ P(
|
|
8682
|
+
return /* @__PURE__ */ P(X, {
|
|
8680
8683
|
children: [u.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Zt, {
|
|
8681
8684
|
copyable: {
|
|
8682
8685
|
text: u.map((p) => p.id).join(", ")
|
|
@@ -8730,7 +8733,7 @@ const cd = (e) => {
|
|
|
8730
8733
|
domain: s,
|
|
8731
8734
|
formView: a,
|
|
8732
8735
|
treeView: l
|
|
8733
|
-
} = e, d = me(), u = K(
|
|
8736
|
+
} = e, d = me(), u = K(Xe), {
|
|
8734
8737
|
setResults: f = void 0,
|
|
8735
8738
|
setCurrentItemIndex: c = void 0,
|
|
8736
8739
|
currentId: m = void 0,
|
|
@@ -8751,10 +8754,10 @@ const cd = (e) => {
|
|
|
8751
8754
|
setSearchValues: S,
|
|
8752
8755
|
currentView: L
|
|
8753
8756
|
} = u || {}, [T, R] = x(!0);
|
|
8754
|
-
|
|
8757
|
+
pe(() => {
|
|
8755
8758
|
var j;
|
|
8756
8759
|
(j = d.current) == null || j.refresh();
|
|
8757
|
-
}, [C]),
|
|
8760
|
+
}, [C]), pe(() => {
|
|
8758
8761
|
t.view_id !== L.view_id && R(!0);
|
|
8759
8762
|
}, [L]);
|
|
8760
8763
|
const {
|
|
@@ -8786,7 +8789,7 @@ const cd = (e) => {
|
|
|
8786
8789
|
limit: $,
|
|
8787
8790
|
setLimit: w
|
|
8788
8791
|
});
|
|
8789
|
-
return !r || !t ? null : /* @__PURE__ */ P(
|
|
8792
|
+
return !r || !t ? null : /* @__PURE__ */ P(X, {
|
|
8790
8793
|
children: [/* @__PURE__ */ n(pn, {
|
|
8791
8794
|
title: t.name,
|
|
8792
8795
|
children: /* @__PURE__ */ n(sd, {
|
|
@@ -8812,7 +8815,7 @@ const cd = (e) => {
|
|
|
8812
8815
|
searchVisible: v,
|
|
8813
8816
|
searchValues: F,
|
|
8814
8817
|
showLimitOptions: !1
|
|
8815
|
-
}), B ? /* @__PURE__ */ n(
|
|
8818
|
+
}), B ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(hn, {
|
|
8816
8819
|
ref: d,
|
|
8817
8820
|
view_id: t.view_id,
|
|
8818
8821
|
model: i,
|
|
@@ -8837,7 +8840,7 @@ const cd = (e) => {
|
|
|
8837
8840
|
setResults: c,
|
|
8838
8841
|
setCurrentItemIndex: m
|
|
8839
8842
|
} = e;
|
|
8840
|
-
return t ? /* @__PURE__ */ P(
|
|
8843
|
+
return t ? /* @__PURE__ */ P(X, {
|
|
8841
8844
|
children: [/* @__PURE__ */ n(pn, {
|
|
8842
8845
|
children: /* @__PURE__ */ n(ed, {
|
|
8843
8846
|
toolbar: a == null ? void 0 : a.toolbar
|
|
@@ -8865,11 +8868,11 @@ function ud(e) {
|
|
|
8865
8868
|
searchText: i
|
|
8866
8869
|
} = e, {
|
|
8867
8870
|
t: o
|
|
8868
|
-
} = K(
|
|
8871
|
+
} = K(ge), [s] = it.useForm(), [a, l] = x(!1);
|
|
8869
8872
|
function d(f) {
|
|
8870
8873
|
t(f.search);
|
|
8871
8874
|
}
|
|
8872
|
-
|
|
8875
|
+
pe(() => {
|
|
8873
8876
|
s.setFieldsValue({
|
|
8874
8877
|
search: i
|
|
8875
8878
|
});
|
|
@@ -8879,7 +8882,7 @@ function ud(e) {
|
|
|
8879
8882
|
search: void 0
|
|
8880
8883
|
}), t(void 0);
|
|
8881
8884
|
}
|
|
8882
|
-
return /* @__PURE__ */ n(
|
|
8885
|
+
return /* @__PURE__ */ n(it, {
|
|
8883
8886
|
form: s,
|
|
8884
8887
|
onFinish: d,
|
|
8885
8888
|
autoComplete: "off",
|
|
@@ -8887,7 +8890,7 @@ function ud(e) {
|
|
|
8887
8890
|
align: "middle",
|
|
8888
8891
|
justify: "end",
|
|
8889
8892
|
children: [/* @__PURE__ */ n(ae, {
|
|
8890
|
-
children: /* @__PURE__ */ n(
|
|
8893
|
+
children: /* @__PURE__ */ n(it.Item, {
|
|
8891
8894
|
name: "search",
|
|
8892
8895
|
noStyle: !0,
|
|
8893
8896
|
children: /* @__PURE__ */ n(Qe, {
|
|
@@ -8954,7 +8957,7 @@ function md(e) {
|
|
|
8954
8957
|
results: D,
|
|
8955
8958
|
limit: _,
|
|
8956
8959
|
totalItems: $
|
|
8957
|
-
} = K(
|
|
8960
|
+
} = K(Xe), {
|
|
8958
8961
|
parentContext: w = {},
|
|
8959
8962
|
treeExpandable: C,
|
|
8960
8963
|
toolbar: F
|
|
@@ -8963,7 +8966,7 @@ function md(e) {
|
|
|
8963
8966
|
} = K(fd), {
|
|
8964
8967
|
t: L,
|
|
8965
8968
|
lang: T
|
|
8966
|
-
} = K(
|
|
8969
|
+
} = K(ge), R = K(Rt), {
|
|
8967
8970
|
processAction: A
|
|
8968
8971
|
} = R || {}, [M, I] = x(!1), k = y !== void 0 && y.trim().length > 0;
|
|
8969
8972
|
function B() {
|
|
@@ -9025,9 +9028,9 @@ function md(e) {
|
|
|
9025
9028
|
}
|
|
9026
9029
|
});
|
|
9027
9030
|
}
|
|
9028
|
-
return /* @__PURE__ */ P(
|
|
9031
|
+
return /* @__PURE__ */ P(je, {
|
|
9029
9032
|
wrap: !0,
|
|
9030
|
-
children: [C ? null : /* @__PURE__ */ P(
|
|
9033
|
+
children: [C ? null : /* @__PURE__ */ P(X, {
|
|
9031
9034
|
children: [/* @__PURE__ */ n(ud, {
|
|
9032
9035
|
disabled: l || a || V,
|
|
9033
9036
|
searchText: y,
|
|
@@ -9079,7 +9082,7 @@ function md(e) {
|
|
|
9079
9082
|
var q;
|
|
9080
9083
|
(q = f == null ? void 0 : f.current) == null || q.refreshResults();
|
|
9081
9084
|
}
|
|
9082
|
-
}), !C && /* @__PURE__ */ P(
|
|
9085
|
+
}), !C && /* @__PURE__ */ P(X, {
|
|
9083
9086
|
children: [Mt(), /* @__PURE__ */ n(Zn, {
|
|
9084
9087
|
currentView: r,
|
|
9085
9088
|
availableViews: t,
|
|
@@ -9111,7 +9114,7 @@ function md(e) {
|
|
|
9111
9114
|
}
|
|
9112
9115
|
});
|
|
9113
9116
|
}
|
|
9114
|
-
}), S && /* @__PURE__ */ P(
|
|
9117
|
+
}), S && /* @__PURE__ */ P(X, {
|
|
9115
9118
|
children: [Mt(), /* @__PURE__ */ n(_t, {
|
|
9116
9119
|
icon: /* @__PURE__ */ n(Rr, {
|
|
9117
9120
|
component: () => /* @__PURE__ */ P("svg", {
|
|
@@ -9205,8 +9208,8 @@ const hd = (e) => {
|
|
|
9205
9208
|
} = e, {
|
|
9206
9209
|
currentView: h,
|
|
9207
9210
|
setPreviousView: g
|
|
9208
|
-
} = K(
|
|
9209
|
-
return t ? /* @__PURE__ */ P(
|
|
9211
|
+
} = K(Xe);
|
|
9212
|
+
return t ? /* @__PURE__ */ P(X, {
|
|
9210
9213
|
children: [/* @__PURE__ */ n(pn, {
|
|
9211
9214
|
children: /* @__PURE__ */ n(md, {
|
|
9212
9215
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
@@ -9260,8 +9263,8 @@ function gd() {
|
|
|
9260
9263
|
setMoveItemsEnabled: i
|
|
9261
9264
|
} = K(Xn), {
|
|
9262
9265
|
t: o
|
|
9263
|
-
} = K(
|
|
9264
|
-
return /* @__PURE__ */ P(
|
|
9266
|
+
} = K(ge);
|
|
9267
|
+
return /* @__PURE__ */ P(je, {
|
|
9265
9268
|
wrap: !0,
|
|
9266
9269
|
children: [/* @__PURE__ */ n(Ge, {
|
|
9267
9270
|
icon: /* @__PURE__ */ n(yi, {
|
|
@@ -9303,7 +9306,7 @@ function yd() {
|
|
|
9303
9306
|
const vd = (e) => {
|
|
9304
9307
|
const {
|
|
9305
9308
|
dashboardData: t
|
|
9306
|
-
} = e, r = me(), i = K(
|
|
9309
|
+
} = e, r = me(), i = K(at), {
|
|
9307
9310
|
openShortcut: o
|
|
9308
9311
|
} = i || {};
|
|
9309
9312
|
return t ? /* @__PURE__ */ P(pd, {
|
|
@@ -9313,7 +9316,7 @@ const vd = (e) => {
|
|
|
9313
9316
|
},
|
|
9314
9317
|
children: [/* @__PURE__ */ n(pn, {
|
|
9315
9318
|
children: /* @__PURE__ */ n(gd, {})
|
|
9316
|
-
}), /* @__PURE__ */ n(
|
|
9319
|
+
}), /* @__PURE__ */ n(Ad, {
|
|
9317
9320
|
ref: r,
|
|
9318
9321
|
model: t.model,
|
|
9319
9322
|
id: t.id,
|
|
@@ -9322,7 +9325,22 @@ const vd = (e) => {
|
|
|
9322
9325
|
})]
|
|
9323
9326
|
}) : null;
|
|
9324
9327
|
};
|
|
9325
|
-
function wd(e
|
|
9328
|
+
async function wd(e) {
|
|
9329
|
+
const t = await Promise.all(
|
|
9330
|
+
e.map(async (i) => {
|
|
9331
|
+
try {
|
|
9332
|
+
return await i.promise;
|
|
9333
|
+
} catch (o) {
|
|
9334
|
+
return console.error(`Error for ${i.viewTuple}:`, o), null;
|
|
9335
|
+
}
|
|
9336
|
+
})
|
|
9337
|
+
);
|
|
9338
|
+
return e.map((i, o) => ({
|
|
9339
|
+
...i,
|
|
9340
|
+
info: t[o]
|
|
9341
|
+
})).filter((i) => i.info !== null);
|
|
9342
|
+
}
|
|
9343
|
+
function bd(e, t) {
|
|
9326
9344
|
const {
|
|
9327
9345
|
domain: r,
|
|
9328
9346
|
model: i,
|
|
@@ -9341,17 +9359,17 @@ function wd(e, t) {
|
|
|
9341
9359
|
limit: v
|
|
9342
9360
|
} = e, [y, V] = x(), [O, b] = x([]), [D, _] = 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(), {
|
|
9343
9361
|
t: N
|
|
9344
|
-
} = K(
|
|
9362
|
+
} = K(ge), ee = me(), le = me(), ce = K(at), {
|
|
9345
9363
|
setCurrentView: ne,
|
|
9346
9364
|
setCurrentId: J,
|
|
9347
|
-
tabs:
|
|
9365
|
+
tabs: we,
|
|
9348
9366
|
activeKey: Se,
|
|
9349
|
-
openAction:
|
|
9367
|
+
openAction: Pe,
|
|
9350
9368
|
onRemoveTab: fe
|
|
9351
9369
|
} = ce || {};
|
|
9352
9370
|
Ai("ctrl+g,command+g", (Q) => {
|
|
9353
|
-
Q.preventDefault(),
|
|
9354
|
-
}, [Se,
|
|
9371
|
+
Q.preventDefault(), Be();
|
|
9372
|
+
}, [Se, we, y, L, R]);
|
|
9355
9373
|
function oe(Q) {
|
|
9356
9374
|
C(Q), J == null || J(Q);
|
|
9357
9375
|
}
|
|
@@ -9361,113 +9379,119 @@ function wd(e, t) {
|
|
|
9361
9379
|
vt(t, () => ({
|
|
9362
9380
|
canWeClose: Fe
|
|
9363
9381
|
}));
|
|
9364
|
-
const
|
|
9382
|
+
const ye = async () => {
|
|
9365
9383
|
_(!0);
|
|
9366
|
-
const Q = [];
|
|
9367
|
-
for (const
|
|
9368
|
-
const [
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9384
|
+
const Q = [], de = [];
|
|
9385
|
+
for (const se of s) {
|
|
9386
|
+
const [De, Ae] = se;
|
|
9387
|
+
Ae !== "dashboard" ? de.push({
|
|
9388
|
+
viewTuple: se,
|
|
9389
|
+
promise: H.getHandler().getView({
|
|
9372
9390
|
model: i,
|
|
9373
|
-
type:
|
|
9374
|
-
id:
|
|
9391
|
+
type: Ae,
|
|
9392
|
+
id: De,
|
|
9375
9393
|
context: o
|
|
9376
|
-
})
|
|
9377
|
-
}
|
|
9378
|
-
|
|
9394
|
+
})
|
|
9395
|
+
}) : de.push({
|
|
9396
|
+
viewTuple: se
|
|
9397
|
+
});
|
|
9398
|
+
}
|
|
9399
|
+
const be = await wd(de);
|
|
9400
|
+
for (const se of be) {
|
|
9401
|
+
if (!se)
|
|
9379
9402
|
continue;
|
|
9380
|
-
|
|
9381
|
-
|
|
9403
|
+
const [, De] = se.viewTuple;
|
|
9404
|
+
let Ae = se.info;
|
|
9405
|
+
switch (De) {
|
|
9382
9406
|
case "dashboard": {
|
|
9383
|
-
const
|
|
9384
|
-
const [,
|
|
9385
|
-
return
|
|
9407
|
+
const tt = s.find((nt) => {
|
|
9408
|
+
const [, Z] = nt;
|
|
9409
|
+
return Z === "form";
|
|
9386
9410
|
});
|
|
9387
|
-
let
|
|
9388
|
-
|
|
9411
|
+
let Ze;
|
|
9412
|
+
tt && (Ze = {
|
|
9389
9413
|
action_id: p,
|
|
9390
9414
|
action_type: h,
|
|
9391
9415
|
name: a,
|
|
9392
9416
|
res_id: o.active_id,
|
|
9393
9417
|
res_model: i,
|
|
9394
|
-
view_id:
|
|
9395
|
-
view_type:
|
|
9418
|
+
view_id: tt[0],
|
|
9419
|
+
view_type: tt[1]
|
|
9396
9420
|
}), Q.push({
|
|
9397
9421
|
type: "dashboard",
|
|
9398
9422
|
id: o.active_id,
|
|
9399
9423
|
model: i,
|
|
9400
9424
|
context: o,
|
|
9401
|
-
configAction:
|
|
9425
|
+
configAction: Ze
|
|
9402
9426
|
});
|
|
9403
9427
|
break;
|
|
9404
9428
|
}
|
|
9405
9429
|
case "form": {
|
|
9406
9430
|
Q.push({
|
|
9407
|
-
...
|
|
9408
|
-
type:
|
|
9431
|
+
...Ae,
|
|
9432
|
+
type: De
|
|
9409
9433
|
});
|
|
9410
9434
|
break;
|
|
9411
9435
|
}
|
|
9412
9436
|
case "tree": {
|
|
9413
9437
|
Q.push({
|
|
9414
|
-
...
|
|
9438
|
+
...Ae,
|
|
9415
9439
|
isExpandable: g,
|
|
9416
|
-
type:
|
|
9440
|
+
type: De
|
|
9417
9441
|
});
|
|
9418
9442
|
break;
|
|
9419
9443
|
}
|
|
9420
9444
|
case "graph": {
|
|
9421
9445
|
Q.push({
|
|
9422
|
-
...
|
|
9423
|
-
type:
|
|
9446
|
+
...Ae,
|
|
9447
|
+
type: De
|
|
9424
9448
|
});
|
|
9425
9449
|
break;
|
|
9426
9450
|
}
|
|
9427
9451
|
}
|
|
9428
9452
|
}
|
|
9429
|
-
let
|
|
9430
|
-
!u && Q.find((
|
|
9431
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), fe == null || fe(d)), Te(
|
|
9453
|
+
let Le;
|
|
9454
|
+
!u && Q.find((se) => se.type === "tree") ? Le = Q.find((De) => De.type === "tree") : u ? Le = Q.find((De) => u.id ? De.type === u.type && De.view_id === u.id : De.type === u.type) : Le = Q.find((De) => De.type === "form"), Le || (We(`Error determining the first view to show for model ${i}.
|
|
9455
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), fe == null || fe(d)), Te(Le), b(Q), _(!1);
|
|
9432
9456
|
};
|
|
9433
9457
|
l({
|
|
9434
9458
|
tabKey: d,
|
|
9435
9459
|
canWeClose: Fe
|
|
9436
|
-
}),
|
|
9437
|
-
const Q = O.find((
|
|
9438
|
-
Te(
|
|
9439
|
-
}, [i, s, m]),
|
|
9460
|
+
}), pe(() => {
|
|
9461
|
+
const Q = O.find((be) => be.type === "tree"), de = O.find((be) => u.id ? be.type === u.type && be.view_id === u.id : be.type === u.type);
|
|
9462
|
+
Te(de || Q), m ? J == null || J($) : (oe(void 0), T(void 0)), ye();
|
|
9463
|
+
}, [i, s, m]), pe(() => {
|
|
9440
9464
|
Se === d && (J == null || J(w), ne == null || ne(y));
|
|
9441
|
-
}, [
|
|
9465
|
+
}, [we, Se]);
|
|
9442
9466
|
async function Fe() {
|
|
9443
9467
|
return y && y.type === "form" ? await ee.current.cancelUnsavedChanges() : !0;
|
|
9444
9468
|
}
|
|
9445
|
-
async function
|
|
9469
|
+
async function Be() {
|
|
9446
9470
|
Se === d && (y.type === "form" && !await ee.current.cancelUnsavedChanges() || U(!0));
|
|
9447
9471
|
}
|
|
9448
9472
|
async function Ne(Q) {
|
|
9449
|
-
var
|
|
9473
|
+
var se;
|
|
9450
9474
|
z(!0);
|
|
9451
|
-
const
|
|
9452
|
-
let
|
|
9453
|
-
if (
|
|
9475
|
+
const de = R.findIndex((De) => De.id === Q);
|
|
9476
|
+
let be;
|
|
9477
|
+
if (de === -1) {
|
|
9454
9478
|
try {
|
|
9455
|
-
|
|
9479
|
+
be = (se = await H.getHandler().readObjects({
|
|
9456
9480
|
model: i,
|
|
9457
9481
|
ids: [Q],
|
|
9458
9482
|
context: o
|
|
9459
|
-
})) == null ? void 0 :
|
|
9483
|
+
})) == null ? void 0 : se[0];
|
|
9460
9484
|
} catch {
|
|
9461
9485
|
}
|
|
9462
|
-
if (!
|
|
9486
|
+
if (!be) {
|
|
9463
9487
|
z(!1), U(!1), ct(N("idNotFound"));
|
|
9464
9488
|
return;
|
|
9465
9489
|
}
|
|
9466
9490
|
} else
|
|
9467
|
-
|
|
9491
|
+
be = R[de];
|
|
9468
9492
|
z(!1), U(!1);
|
|
9469
|
-
const
|
|
9470
|
-
|
|
9493
|
+
const Le = s.find((De) => De[1] === "form");
|
|
9494
|
+
Pe({
|
|
9471
9495
|
domain: [],
|
|
9472
9496
|
context: o,
|
|
9473
9497
|
model: i,
|
|
@@ -9475,7 +9499,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9475
9499
|
title: a,
|
|
9476
9500
|
target: "current",
|
|
9477
9501
|
initialView: {
|
|
9478
|
-
id:
|
|
9502
|
+
id: Le == null ? void 0 : Le[0],
|
|
9479
9503
|
type: "form"
|
|
9480
9504
|
},
|
|
9481
9505
|
action_id: p,
|
|
@@ -9508,7 +9532,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9508
9532
|
model: i,
|
|
9509
9533
|
context: o,
|
|
9510
9534
|
domain: r,
|
|
9511
|
-
formView: O.find((
|
|
9535
|
+
formView: O.find((de) => de.type === "form"),
|
|
9512
9536
|
treeView: Q,
|
|
9513
9537
|
searchTreeRef: le,
|
|
9514
9538
|
searchTreeNameSearch: q,
|
|
@@ -9525,8 +9549,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9525
9549
|
model: i,
|
|
9526
9550
|
context: o,
|
|
9527
9551
|
domain: r,
|
|
9528
|
-
treeView: O.find((
|
|
9529
|
-
formView: O.find((
|
|
9552
|
+
treeView: O.find((de) => de.type === "tree"),
|
|
9553
|
+
formView: O.find((de) => de.type === "form")
|
|
9530
9554
|
}, `${Q.type}-${Q.view_id}`);
|
|
9531
9555
|
case "dashboard":
|
|
9532
9556
|
return /* @__PURE__ */ n(vd, {
|
|
@@ -9535,23 +9559,23 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9535
9559
|
}
|
|
9536
9560
|
});
|
|
9537
9561
|
}
|
|
9538
|
-
function
|
|
9562
|
+
function He() {
|
|
9539
9563
|
if (w === void 0 && y.type === "form")
|
|
9540
9564
|
ee.current.clearAndReload();
|
|
9541
9565
|
else {
|
|
9542
9566
|
oe(void 0);
|
|
9543
|
-
const Q = O.find((
|
|
9567
|
+
const Q = O.find((de) => de.type === "form");
|
|
9544
9568
|
Te(Q);
|
|
9545
9569
|
}
|
|
9546
9570
|
}
|
|
9547
|
-
return D ? /* @__PURE__ */ n(
|
|
9571
|
+
return D ? /* @__PURE__ */ n(Re, {}) : y ? /* @__PURE__ */ P(Xa, {
|
|
9548
9572
|
title: a,
|
|
9549
9573
|
currentView: y,
|
|
9550
9574
|
setCurrentView: Te,
|
|
9551
9575
|
availableViews: O,
|
|
9552
9576
|
formRef: ee,
|
|
9553
9577
|
searchTreeRef: le,
|
|
9554
|
-
onNewClicked:
|
|
9578
|
+
onNewClicked: He,
|
|
9555
9579
|
currentId: w,
|
|
9556
9580
|
setCurrentId: oe,
|
|
9557
9581
|
setCurrentItemIndex: T,
|
|
@@ -9579,8 +9603,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9579
9603
|
})]
|
|
9580
9604
|
}) : null;
|
|
9581
9605
|
}
|
|
9582
|
-
const Do = yt(
|
|
9583
|
-
async function
|
|
9606
|
+
const Do = yt(bd);
|
|
9607
|
+
async function xd({
|
|
9584
9608
|
actionId: e,
|
|
9585
9609
|
rootContext: t = {},
|
|
9586
9610
|
globalValues: r = {}
|
|
@@ -9632,7 +9656,7 @@ async function bd({
|
|
|
9632
9656
|
treeExpandable: p
|
|
9633
9657
|
};
|
|
9634
9658
|
}
|
|
9635
|
-
const
|
|
9659
|
+
const Cd = Ei(Mi), Sd = (e) => {
|
|
9636
9660
|
const {
|
|
9637
9661
|
children: t = [],
|
|
9638
9662
|
onPositionItemsChanged: r
|
|
@@ -9646,7 +9670,7 @@ const xd = Ei(Mi), Cd = (e) => {
|
|
|
9646
9670
|
children: o
|
|
9647
9671
|
}, a);
|
|
9648
9672
|
});
|
|
9649
|
-
return /* @__PURE__ */ n(
|
|
9673
|
+
return /* @__PURE__ */ n(Cd, {
|
|
9650
9674
|
className: "layout",
|
|
9651
9675
|
cols: {
|
|
9652
9676
|
lg: 12,
|
|
@@ -9669,10 +9693,10 @@ const xd = Ei(Mi), Cd = (e) => {
|
|
|
9669
9693
|
children: i
|
|
9670
9694
|
});
|
|
9671
9695
|
}, {
|
|
9672
|
-
useToken:
|
|
9696
|
+
useToken: Td
|
|
9673
9697
|
} = Me, {
|
|
9674
|
-
Text:
|
|
9675
|
-
} = on,
|
|
9698
|
+
Text: Fd
|
|
9699
|
+
} = on, Od = (e) => {
|
|
9676
9700
|
const {
|
|
9677
9701
|
title: t,
|
|
9678
9702
|
children: r,
|
|
@@ -9680,7 +9704,7 @@ const xd = Ei(Mi), Cd = (e) => {
|
|
|
9680
9704
|
openAction: o
|
|
9681
9705
|
} = e, {
|
|
9682
9706
|
token: s
|
|
9683
|
-
} =
|
|
9707
|
+
} = Td();
|
|
9684
9708
|
return /* @__PURE__ */ P("div", {
|
|
9685
9709
|
className: "shadow-md",
|
|
9686
9710
|
style: {
|
|
@@ -9708,7 +9732,7 @@ const xd = Ei(Mi), Cd = (e) => {
|
|
|
9708
9732
|
cursor: "grab",
|
|
9709
9733
|
overflow: "hidden"
|
|
9710
9734
|
},
|
|
9711
|
-
children: /* @__PURE__ */ n(
|
|
9735
|
+
children: /* @__PURE__ */ n(Fd, {
|
|
9712
9736
|
ellipsis: !0,
|
|
9713
9737
|
children: t
|
|
9714
9738
|
})
|
|
@@ -9732,8 +9756,8 @@ const xd = Ei(Mi), Cd = (e) => {
|
|
|
9732
9756
|
})]
|
|
9733
9757
|
}), r]
|
|
9734
9758
|
});
|
|
9735
|
-
},
|
|
9736
|
-
function
|
|
9759
|
+
}, _d = 80;
|
|
9760
|
+
function Id(e) {
|
|
9737
9761
|
const {
|
|
9738
9762
|
action: t,
|
|
9739
9763
|
model: r,
|
|
@@ -9742,17 +9766,17 @@ function _d(e) {
|
|
|
9742
9766
|
domain: s = [],
|
|
9743
9767
|
visible: a = !0,
|
|
9744
9768
|
parentContext: l = {}
|
|
9745
|
-
} = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [V, O] = x(1), [b, D] = x(0), _ = me(
|
|
9769
|
+
} = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [V, O] = x(1), [b, D] = 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) => {
|
|
9746
9770
|
U(!0), O(J), D((J - 1) * _.current);
|
|
9747
9771
|
}, q = async () => {
|
|
9748
|
-
const J = W.current.length > 0 ? W.current : s,
|
|
9772
|
+
const J = W.current.length > 0 ? W.current : s, we = fn($.current, J), {
|
|
9749
9773
|
colors: Se
|
|
9750
9774
|
} = Ft(h), {
|
|
9751
|
-
totalItems:
|
|
9775
|
+
totalItems: Pe,
|
|
9752
9776
|
results: fe,
|
|
9753
9777
|
attrsEvaluated: oe
|
|
9754
9778
|
} = await H.getHandler().searchForTree({
|
|
9755
|
-
params:
|
|
9779
|
+
params: we,
|
|
9756
9780
|
limit: _.current,
|
|
9757
9781
|
offset: b,
|
|
9758
9782
|
model: m,
|
|
@@ -9761,9 +9785,9 @@ function _d(e) {
|
|
|
9761
9785
|
attrs: Se && {
|
|
9762
9786
|
colors: Se
|
|
9763
9787
|
}
|
|
9764
|
-
})
|
|
9765
|
-
|
|
9766
|
-
const
|
|
9788
|
+
});
|
|
9789
|
+
T(Xt(oe));
|
|
9790
|
+
const Te = Ot({
|
|
9767
9791
|
resultsToSort: fe,
|
|
9768
9792
|
sorter: R,
|
|
9769
9793
|
fields: {
|
|
@@ -9771,25 +9795,25 @@ function _d(e) {
|
|
|
9771
9795
|
...v.fields
|
|
9772
9796
|
}
|
|
9773
9797
|
});
|
|
9774
|
-
S(
|
|
9798
|
+
U(!1), S(Te);
|
|
9799
|
+
const ye = await Pe;
|
|
9800
|
+
C(ye);
|
|
9775
9801
|
}, E = async () => {
|
|
9776
9802
|
try {
|
|
9777
9803
|
U(!0), await q();
|
|
9778
9804
|
} catch (J) {
|
|
9779
9805
|
I(JSON.stringify(J));
|
|
9780
|
-
} finally {
|
|
9781
|
-
U(!1);
|
|
9782
9806
|
}
|
|
9783
9807
|
};
|
|
9784
|
-
|
|
9808
|
+
pe(() => {
|
|
9785
9809
|
!f || a && E();
|
|
9786
9810
|
}, [V, b, f, a]);
|
|
9787
9811
|
const N = async (J) => {
|
|
9788
9812
|
c(!1), u(!0), B(void 0);
|
|
9789
9813
|
try {
|
|
9790
9814
|
J === "action" ? await ee() : await le(), c(!0);
|
|
9791
|
-
} catch (
|
|
9792
|
-
B(
|
|
9815
|
+
} catch (we) {
|
|
9816
|
+
B(we);
|
|
9793
9817
|
} finally {
|
|
9794
9818
|
u(!1);
|
|
9795
9819
|
}
|
|
@@ -9807,23 +9831,23 @@ function _d(e) {
|
|
|
9807
9831
|
context: l
|
|
9808
9832
|
});
|
|
9809
9833
|
y(J);
|
|
9810
|
-
const
|
|
9834
|
+
const we = await H.getHandler().getView({
|
|
9811
9835
|
model: r,
|
|
9812
9836
|
type: "tree",
|
|
9813
9837
|
id: i,
|
|
9814
9838
|
context: l
|
|
9815
9839
|
});
|
|
9816
|
-
g(
|
|
9840
|
+
g(we);
|
|
9817
9841
|
};
|
|
9818
|
-
|
|
9842
|
+
pe(() => {
|
|
9819
9843
|
t ? N("action") : r && N("model");
|
|
9820
9844
|
}, [t, r]);
|
|
9821
9845
|
const ce = (J) => {
|
|
9822
9846
|
const {
|
|
9823
|
-
id:
|
|
9847
|
+
id: we
|
|
9824
9848
|
} = J;
|
|
9825
9849
|
o({
|
|
9826
|
-
id:
|
|
9850
|
+
id: we,
|
|
9827
9851
|
model: m,
|
|
9828
9852
|
treeView: h
|
|
9829
9853
|
});
|
|
@@ -9850,7 +9874,7 @@ function _d(e) {
|
|
|
9850
9874
|
sorter: R,
|
|
9851
9875
|
onChangeSort: (J) => {
|
|
9852
9876
|
A == null || A(J);
|
|
9853
|
-
const
|
|
9877
|
+
const we = Ot({
|
|
9854
9878
|
resultsToSort: F,
|
|
9855
9879
|
sorter: J,
|
|
9856
9880
|
fields: {
|
|
@@ -9858,7 +9882,7 @@ function _d(e) {
|
|
|
9858
9882
|
...v.fields
|
|
9859
9883
|
}
|
|
9860
9884
|
});
|
|
9861
|
-
S(
|
|
9885
|
+
S(we);
|
|
9862
9886
|
},
|
|
9863
9887
|
context: l
|
|
9864
9888
|
})]
|
|
@@ -9868,17 +9892,17 @@ function _d(e) {
|
|
|
9868
9892
|
message: k,
|
|
9869
9893
|
type: "error",
|
|
9870
9894
|
banner: !0
|
|
9871
|
-
}) : d ? /* @__PURE__ */ n(
|
|
9895
|
+
}) : d ? /* @__PURE__ */ n(Re, {
|
|
9872
9896
|
style: {
|
|
9873
9897
|
padding: "2rem"
|
|
9874
9898
|
}
|
|
9875
9899
|
}) : ne();
|
|
9876
9900
|
}
|
|
9877
|
-
const
|
|
9901
|
+
const Dd = (e) => {
|
|
9878
9902
|
const {
|
|
9879
9903
|
model: t
|
|
9880
9904
|
} = e, [r, i] = x();
|
|
9881
|
-
|
|
9905
|
+
pe(() => {
|
|
9882
9906
|
o();
|
|
9883
9907
|
}, [t]);
|
|
9884
9908
|
async function o() {
|
|
@@ -9902,7 +9926,7 @@ const Id = (e) => {
|
|
|
9902
9926
|
})
|
|
9903
9927
|
});
|
|
9904
9928
|
}, Tn = "line_ids";
|
|
9905
|
-
function
|
|
9929
|
+
function Vd(e, t) {
|
|
9906
9930
|
const {
|
|
9907
9931
|
model: r,
|
|
9908
9932
|
context: i = {},
|
|
@@ -9913,7 +9937,7 @@ function Dd(e, t) {
|
|
|
9913
9937
|
openAction: p,
|
|
9914
9938
|
moveItemsEnabled: h
|
|
9915
9939
|
} = K(Xn), g = me(), v = me();
|
|
9916
|
-
|
|
9940
|
+
pe(() => {
|
|
9917
9941
|
y();
|
|
9918
9942
|
}, [r, o, i]), vt(t, () => ({
|
|
9919
9943
|
refresh: () => {
|
|
@@ -9982,7 +10006,7 @@ function Dd(e, t) {
|
|
|
9982
10006
|
values: S
|
|
9983
10007
|
} = F;
|
|
9984
10008
|
if (S.action_id && S.action_id.length > 0) {
|
|
9985
|
-
const L = parseInt(S.action_id[0], 10), T = await
|
|
10009
|
+
const L = parseInt(S.action_id[0], 10), T = await xd({
|
|
9986
10010
|
actionId: L,
|
|
9987
10011
|
rootContext: i
|
|
9988
10012
|
});
|
|
@@ -10047,7 +10071,7 @@ function Dd(e, t) {
|
|
|
10047
10071
|
message: f,
|
|
10048
10072
|
type: "error",
|
|
10049
10073
|
banner: !0
|
|
10050
|
-
})) : d ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(
|
|
10074
|
+
})) : d ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(Sd, {
|
|
10051
10075
|
onPositionItemsChanged: _,
|
|
10052
10076
|
children: a.map((w, C) => {
|
|
10053
10077
|
const {
|
|
@@ -10089,12 +10113,12 @@ function Dd(e, t) {
|
|
|
10089
10113
|
limit: z
|
|
10090
10114
|
});
|
|
10091
10115
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
10092
|
-
E = /* @__PURE__ */ n(
|
|
10116
|
+
E = /* @__PURE__ */ n(Dd, {
|
|
10093
10117
|
model: B,
|
|
10094
10118
|
actionDomain: U
|
|
10095
10119
|
});
|
|
10096
10120
|
else if ((W == null ? void 0 : W.type) === "tree")
|
|
10097
|
-
E = /* @__PURE__ */ n(
|
|
10121
|
+
E = /* @__PURE__ */ n(Id, {
|
|
10098
10122
|
model: B,
|
|
10099
10123
|
domain: U,
|
|
10100
10124
|
view_id: k.filter((le) => le[1] === "tree")[0][0],
|
|
@@ -10105,14 +10129,14 @@ function Dd(e, t) {
|
|
|
10105
10129
|
});
|
|
10106
10130
|
if (ce) {
|
|
10107
10131
|
const [ne, J] = ce, {
|
|
10108
|
-
actionId:
|
|
10132
|
+
actionId: we,
|
|
10109
10133
|
actionType: Se,
|
|
10110
|
-
title:
|
|
10134
|
+
title: Pe,
|
|
10111
10135
|
model: fe
|
|
10112
10136
|
} = F, oe = {
|
|
10113
|
-
action_id:
|
|
10137
|
+
action_id: we,
|
|
10114
10138
|
action_type: Se,
|
|
10115
|
-
name:
|
|
10139
|
+
name: Pe,
|
|
10116
10140
|
res_id: le.id,
|
|
10117
10141
|
res_model: fe,
|
|
10118
10142
|
view_id: ne,
|
|
@@ -10151,20 +10175,20 @@ function Dd(e, t) {
|
|
|
10151
10175
|
const [le, ce] = ee, {
|
|
10152
10176
|
actionId: ne,
|
|
10153
10177
|
actionType: J,
|
|
10154
|
-
title:
|
|
10178
|
+
title: we,
|
|
10155
10179
|
model: Se
|
|
10156
10180
|
} = F;
|
|
10157
10181
|
N = {
|
|
10158
10182
|
action_id: ne,
|
|
10159
10183
|
action_type: J,
|
|
10160
|
-
name:
|
|
10184
|
+
name: we,
|
|
10161
10185
|
res_id: !1,
|
|
10162
10186
|
res_model: Se,
|
|
10163
10187
|
view_id: le,
|
|
10164
10188
|
view_type: ce
|
|
10165
10189
|
};
|
|
10166
10190
|
}
|
|
10167
|
-
return /* @__PURE__ */ n(
|
|
10191
|
+
return /* @__PURE__ */ n(Od, {
|
|
10168
10192
|
id: T,
|
|
10169
10193
|
title: I,
|
|
10170
10194
|
parms: q,
|
|
@@ -10175,12 +10199,12 @@ function Dd(e, t) {
|
|
|
10175
10199
|
})
|
|
10176
10200
|
});
|
|
10177
10201
|
}
|
|
10178
|
-
const
|
|
10202
|
+
const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
|
|
10179
10203
|
...e,
|
|
10180
|
-
children: /* @__PURE__ */ n(
|
|
10204
|
+
children: /* @__PURE__ */ n(Rd, {
|
|
10181
10205
|
...e
|
|
10182
10206
|
})
|
|
10183
|
-
}),
|
|
10207
|
+
}), Rd = (e) => {
|
|
10184
10208
|
const {
|
|
10185
10209
|
ooui: t,
|
|
10186
10210
|
value: r
|
|
@@ -10192,18 +10216,18 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10192
10216
|
color: i,
|
|
10193
10217
|
children: t.selectionValues.get(r)
|
|
10194
10218
|
});
|
|
10195
|
-
},
|
|
10219
|
+
}, Ed = (e) => {
|
|
10196
10220
|
const {
|
|
10197
10221
|
ooui: t
|
|
10198
10222
|
} = e;
|
|
10199
|
-
return /* @__PURE__ */ n(
|
|
10223
|
+
return /* @__PURE__ */ n(ve, {
|
|
10200
10224
|
type: "array",
|
|
10201
10225
|
...e,
|
|
10202
|
-
children: /* @__PURE__ */ n(
|
|
10226
|
+
children: /* @__PURE__ */ n(Md, {
|
|
10203
10227
|
ooui: t
|
|
10204
10228
|
})
|
|
10205
10229
|
});
|
|
10206
|
-
},
|
|
10230
|
+
}, Md = (e) => {
|
|
10207
10231
|
const {
|
|
10208
10232
|
value: t,
|
|
10209
10233
|
ooui: r,
|
|
@@ -10216,7 +10240,7 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10216
10240
|
readOnly: h,
|
|
10217
10241
|
field: g,
|
|
10218
10242
|
columns: v
|
|
10219
|
-
} = r, y = K(
|
|
10243
|
+
} = r, y = K(Ee), {
|
|
10220
10244
|
getContext: V
|
|
10221
10245
|
} = y || {};
|
|
10222
10246
|
bt(() => {
|
|
@@ -10292,7 +10316,7 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10292
10316
|
});
|
|
10293
10317
|
}), O(C);
|
|
10294
10318
|
};
|
|
10295
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(
|
|
10319
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(X, {
|
|
10296
10320
|
children: /* @__PURE__ */ P("div", {
|
|
10297
10321
|
className: "flex flex-row",
|
|
10298
10322
|
children: [/* @__PURE__ */ n(Nt.Group, {
|
|
@@ -10311,7 +10335,7 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10311
10335
|
})
|
|
10312
10336
|
}))
|
|
10313
10337
|
})
|
|
10314
|
-
}), !h && /* @__PURE__ */ P(
|
|
10338
|
+
}), !h && /* @__PURE__ */ P(je, {
|
|
10315
10339
|
children: [/* @__PURE__ */ n(Ie, {
|
|
10316
10340
|
onClick: D,
|
|
10317
10341
|
disabled: s.length == a.length,
|
|
@@ -10324,12 +10348,12 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10324
10348
|
})]
|
|
10325
10349
|
})
|
|
10326
10350
|
});
|
|
10327
|
-
},
|
|
10351
|
+
}, $d = (e) => /* @__PURE__ */ n(ve, {
|
|
10328
10352
|
...e,
|
|
10329
|
-
children: /* @__PURE__ */ n(
|
|
10353
|
+
children: /* @__PURE__ */ n(Nd, {
|
|
10330
10354
|
...e
|
|
10331
10355
|
})
|
|
10332
|
-
}),
|
|
10356
|
+
}), Nd = (e) => {
|
|
10333
10357
|
const {
|
|
10334
10358
|
value: t,
|
|
10335
10359
|
ooui: r
|
|
@@ -10344,21 +10368,21 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10344
10368
|
className: "ant-typography"
|
|
10345
10369
|
})
|
|
10346
10370
|
});
|
|
10347
|
-
},
|
|
10371
|
+
}, Ld = (e) => {
|
|
10348
10372
|
const {
|
|
10349
10373
|
ooui: t
|
|
10350
10374
|
} = e, {
|
|
10351
10375
|
required: r
|
|
10352
10376
|
} = t;
|
|
10353
|
-
return /* @__PURE__ */ n(
|
|
10377
|
+
return /* @__PURE__ */ n(ve, {
|
|
10354
10378
|
required: r,
|
|
10355
10379
|
type: "any",
|
|
10356
10380
|
...e,
|
|
10357
|
-
children: /* @__PURE__ */ n(
|
|
10381
|
+
children: /* @__PURE__ */ n(Pd, {
|
|
10358
10382
|
...e
|
|
10359
10383
|
})
|
|
10360
10384
|
});
|
|
10361
|
-
},
|
|
10385
|
+
}, Pd = (e) => {
|
|
10362
10386
|
const {
|
|
10363
10387
|
ooui: t,
|
|
10364
10388
|
onChange: r,
|
|
@@ -10378,12 +10402,12 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10378
10402
|
disabled: s,
|
|
10379
10403
|
onChange: r,
|
|
10380
10404
|
value: i,
|
|
10381
|
-
children: /* @__PURE__ */ n(
|
|
10405
|
+
children: /* @__PURE__ */ n(je, {
|
|
10382
10406
|
direction: a,
|
|
10383
10407
|
children: d
|
|
10384
10408
|
})
|
|
10385
10409
|
});
|
|
10386
|
-
},
|
|
10410
|
+
}, Bd = (e) => {
|
|
10387
10411
|
const {
|
|
10388
10412
|
ooui: t
|
|
10389
10413
|
} = e, {
|
|
@@ -10391,16 +10415,16 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10391
10415
|
readOnly: i,
|
|
10392
10416
|
required: o
|
|
10393
10417
|
} = t;
|
|
10394
|
-
return /* @__PURE__ */ n(
|
|
10418
|
+
return /* @__PURE__ */ n(ve, {
|
|
10395
10419
|
...e,
|
|
10396
10420
|
valuePropName: "checked",
|
|
10397
|
-
children: /* @__PURE__ */ n(
|
|
10421
|
+
children: /* @__PURE__ */ n(Hd, {
|
|
10398
10422
|
id: r,
|
|
10399
10423
|
readOnly: i,
|
|
10400
10424
|
required: o
|
|
10401
10425
|
})
|
|
10402
10426
|
});
|
|
10403
|
-
},
|
|
10427
|
+
}, Hd = (e) => {
|
|
10404
10428
|
const {
|
|
10405
10429
|
required: t,
|
|
10406
10430
|
readOnly: r,
|
|
@@ -10413,28 +10437,28 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10413
10437
|
...i
|
|
10414
10438
|
})
|
|
10415
10439
|
});
|
|
10416
|
-
},
|
|
10440
|
+
}, jd = (e) => {
|
|
10417
10441
|
const {
|
|
10418
10442
|
ooui: t
|
|
10419
10443
|
} = e, {
|
|
10420
10444
|
required: r
|
|
10421
10445
|
} = t;
|
|
10422
|
-
return /* @__PURE__ */ n(
|
|
10446
|
+
return /* @__PURE__ */ n(ve, {
|
|
10423
10447
|
required: r,
|
|
10424
10448
|
type: "any",
|
|
10425
10449
|
...e,
|
|
10426
|
-
children: /* @__PURE__ */ n(
|
|
10450
|
+
children: /* @__PURE__ */ n(Kd, {
|
|
10427
10451
|
...e
|
|
10428
10452
|
})
|
|
10429
10453
|
});
|
|
10430
|
-
},
|
|
10454
|
+
}, Kd = (e) => {
|
|
10431
10455
|
const {
|
|
10432
10456
|
ooui: t,
|
|
10433
10457
|
value: r
|
|
10434
10458
|
} = e, {
|
|
10435
10459
|
selectionValues: i,
|
|
10436
10460
|
errorField: o
|
|
10437
|
-
} = t, s = K(
|
|
10461
|
+
} = t, s = K(Ee), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(r);
|
|
10438
10462
|
let d = "process", u = "";
|
|
10439
10463
|
return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ n(nr, {
|
|
10440
10464
|
current: l,
|
|
@@ -10444,16 +10468,16 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10444
10468
|
description: c === l && d === "error" ? u : null
|
|
10445
10469
|
}))
|
|
10446
10470
|
});
|
|
10447
|
-
},
|
|
10471
|
+
}, Wd = (e) => {
|
|
10448
10472
|
const {
|
|
10449
10473
|
ooui: t
|
|
10450
10474
|
} = e, {
|
|
10451
10475
|
lang: r,
|
|
10452
10476
|
height: i
|
|
10453
|
-
} = t, o = K(
|
|
10477
|
+
} = t, o = K(Ee), {
|
|
10454
10478
|
elementHasLostFocus: s
|
|
10455
10479
|
} = o || {};
|
|
10456
|
-
return /* @__PURE__ */ n(
|
|
10480
|
+
return /* @__PURE__ */ n(ve, {
|
|
10457
10481
|
...e,
|
|
10458
10482
|
children: /* @__PURE__ */ n(Ri, {
|
|
10459
10483
|
defaultLanguage: r || "",
|
|
@@ -10464,23 +10488,23 @@ const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10464
10488
|
})
|
|
10465
10489
|
});
|
|
10466
10490
|
}, {
|
|
10467
|
-
Content:
|
|
10491
|
+
Content: Yd
|
|
10468
10492
|
} = ei, {
|
|
10469
|
-
Title:
|
|
10493
|
+
Title: Gd
|
|
10470
10494
|
} = on;
|
|
10471
|
-
function
|
|
10495
|
+
function Ud() {
|
|
10472
10496
|
const {
|
|
10473
10497
|
t: e
|
|
10474
|
-
} = K(
|
|
10475
|
-
return /* @__PURE__ */ n(
|
|
10498
|
+
} = K(ge);
|
|
10499
|
+
return /* @__PURE__ */ n(Yd, {
|
|
10476
10500
|
className: "m-5 select-none",
|
|
10477
|
-
children: /* @__PURE__ */ n(
|
|
10501
|
+
children: /* @__PURE__ */ n(Gd, {
|
|
10478
10502
|
level: 5,
|
|
10479
10503
|
children: e("welcome")
|
|
10480
10504
|
})
|
|
10481
10505
|
});
|
|
10482
10506
|
}
|
|
10483
|
-
function
|
|
10507
|
+
function qd(e, t) {
|
|
10484
10508
|
const {
|
|
10485
10509
|
children: r,
|
|
10486
10510
|
globalValues: i = {},
|
|
@@ -10490,7 +10514,7 @@ function Ud(e, t) {
|
|
|
10490
10514
|
title: _e("welcome", s),
|
|
10491
10515
|
key: "welcome",
|
|
10492
10516
|
closable: !0,
|
|
10493
|
-
content: /* @__PURE__ */ n(
|
|
10517
|
+
content: /* @__PURE__ */ n(Ud, {})
|
|
10494
10518
|
}]), f = me(/* @__PURE__ */ new Map()), c = me();
|
|
10495
10519
|
vt(t, () => ({
|
|
10496
10520
|
retrieveAndOpenAction: h,
|
|
@@ -10866,10 +10890,10 @@ function Ud(e, t) {
|
|
|
10866
10890
|
})
|
|
10867
10891
|
});
|
|
10868
10892
|
}
|
|
10869
|
-
const
|
|
10870
|
-
useToken:
|
|
10893
|
+
const Tu = yt(qd), {
|
|
10894
|
+
useToken: zd
|
|
10871
10895
|
} = Me;
|
|
10872
|
-
function
|
|
10896
|
+
function Jd(e) {
|
|
10873
10897
|
const {
|
|
10874
10898
|
label: t,
|
|
10875
10899
|
onClose: r,
|
|
@@ -10878,7 +10902,7 @@ function zd(e) {
|
|
|
10878
10902
|
onSelected: s
|
|
10879
10903
|
} = e, {
|
|
10880
10904
|
token: a
|
|
10881
|
-
} =
|
|
10905
|
+
} = zd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
10882
10906
|
return /* @__PURE__ */ P("div", {
|
|
10883
10907
|
onClick: () => {
|
|
10884
10908
|
!o && s(i);
|
|
@@ -10933,15 +10957,15 @@ function zd(e) {
|
|
|
10933
10957
|
})]
|
|
10934
10958
|
});
|
|
10935
10959
|
}
|
|
10936
|
-
function
|
|
10937
|
-
const e = K(
|
|
10960
|
+
function Fu() {
|
|
10961
|
+
const e = K(at), {
|
|
10938
10962
|
activeKey: t,
|
|
10939
10963
|
tabs: r,
|
|
10940
10964
|
onRemoveTab: i,
|
|
10941
10965
|
onChangeTab: o
|
|
10942
10966
|
} = e || {};
|
|
10943
|
-
return /* @__PURE__ */ n(
|
|
10944
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
10967
|
+
return /* @__PURE__ */ n(X, {
|
|
10968
|
+
children: r.map((s) => /* @__PURE__ */ n(Jd, {
|
|
10945
10969
|
tabKey: s.key,
|
|
10946
10970
|
label: s.title,
|
|
10947
10971
|
onClose: i,
|
|
@@ -10950,10 +10974,10 @@ function Tu() {
|
|
|
10950
10974
|
}, s.key))
|
|
10951
10975
|
});
|
|
10952
10976
|
}
|
|
10953
|
-
function
|
|
10977
|
+
function Zd(e) {
|
|
10954
10978
|
const {
|
|
10955
10979
|
tab: t
|
|
10956
|
-
} = e, r = K(
|
|
10980
|
+
} = e, r = K(at), {
|
|
10957
10981
|
activeKey: i
|
|
10958
10982
|
} = r || {}, o = {
|
|
10959
10983
|
display: "none"
|
|
@@ -10963,20 +10987,20 @@ function Jd(e) {
|
|
|
10963
10987
|
children: t.content
|
|
10964
10988
|
});
|
|
10965
10989
|
}
|
|
10966
|
-
const
|
|
10967
|
-
function
|
|
10968
|
-
const e = K(
|
|
10990
|
+
const Xd = qe.memo(Zd, () => !0);
|
|
10991
|
+
function Ou() {
|
|
10992
|
+
const e = K(at), {
|
|
10969
10993
|
tabs: t
|
|
10970
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
10994
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Xd, {
|
|
10971
10995
|
tab: i
|
|
10972
10996
|
}, i.key))) || null;
|
|
10973
|
-
return /* @__PURE__ */ n(
|
|
10997
|
+
return /* @__PURE__ */ n(X, {
|
|
10974
10998
|
children: r
|
|
10975
10999
|
});
|
|
10976
11000
|
}
|
|
10977
11001
|
const {
|
|
10978
|
-
useToken:
|
|
10979
|
-
} = Me,
|
|
11002
|
+
useToken: Qd
|
|
11003
|
+
} = Me, _u = (e) => {
|
|
10980
11004
|
const {
|
|
10981
11005
|
onRetrieveShortcuts: t,
|
|
10982
11006
|
onCheckIsFavourite: r,
|
|
@@ -10984,9 +11008,9 @@ const {
|
|
|
10984
11008
|
onRemoveFavourite: o
|
|
10985
11009
|
} = e, [s, a] = x(!1), [l, d] = x(!1), [u, f] = x([]), [c, m] = x(!0), [p, h] = x(), {
|
|
10986
11010
|
t: g
|
|
10987
|
-
} = K(
|
|
11011
|
+
} = K(ge) || {}, {
|
|
10988
11012
|
token: v
|
|
10989
|
-
} =
|
|
11013
|
+
} = Qd(), y = K(at), {
|
|
10990
11014
|
openShortcut: V,
|
|
10991
11015
|
tabs: O,
|
|
10992
11016
|
activeKey: b,
|
|
@@ -10994,9 +11018,9 @@ const {
|
|
|
10994
11018
|
currentId: _,
|
|
10995
11019
|
openDefaultActionForModel: $
|
|
10996
11020
|
} = y || {};
|
|
10997
|
-
|
|
11021
|
+
pe(() => {
|
|
10998
11022
|
w();
|
|
10999
|
-
}, []),
|
|
11023
|
+
}, []), pe(() => {
|
|
11000
11024
|
S();
|
|
11001
11025
|
}, [O, b, D, _]);
|
|
11002
11026
|
async function w() {
|
|
@@ -11076,11 +11100,11 @@ const {
|
|
|
11076
11100
|
})
|
|
11077
11101
|
})
|
|
11078
11102
|
})]
|
|
11079
|
-
}), /* @__PURE__ */ n($e.Divider, {}), c ? /* @__PURE__ */ n(
|
|
11103
|
+
}), /* @__PURE__ */ n($e.Divider, {}), c ? /* @__PURE__ */ n(Re, {
|
|
11080
11104
|
style: {
|
|
11081
11105
|
padding: "1rem"
|
|
11082
11106
|
}
|
|
11083
|
-
}) : u.length > 0 ? /* @__PURE__ */ n(
|
|
11107
|
+
}) : u.length > 0 ? /* @__PURE__ */ n(X, {
|
|
11084
11108
|
children: u.map((M) => /* @__PURE__ */ n($e.Item, {
|
|
11085
11109
|
children: /* @__PURE__ */ n(R, {
|
|
11086
11110
|
title: M.name,
|
|
@@ -11138,7 +11162,7 @@ const {
|
|
|
11138
11162
|
}
|
|
11139
11163
|
await w(), a(!s);
|
|
11140
11164
|
}
|
|
11141
|
-
return /* @__PURE__ */ P(
|
|
11165
|
+
return /* @__PURE__ */ P(X, {
|
|
11142
11166
|
children: [/* @__PURE__ */ n(Ie, {
|
|
11143
11167
|
type: s ? "primary" : "default",
|
|
11144
11168
|
icon: s ? /* @__PURE__ */ n(Nr, {
|
|
@@ -11179,19 +11203,19 @@ export {
|
|
|
11179
11203
|
Ur as Button,
|
|
11180
11204
|
qi as ButtonGroup,
|
|
11181
11205
|
Jr as Char,
|
|
11182
|
-
|
|
11206
|
+
Wd as CodeEditor,
|
|
11183
11207
|
fd as ConfigContext,
|
|
11184
11208
|
H as ConnectionProvider,
|
|
11185
11209
|
nl as ContentRootProvider,
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11210
|
+
Ou as CurrentTabContent,
|
|
11211
|
+
Ad as Dashboard,
|
|
11212
|
+
Sd as DashboardGrid,
|
|
11213
|
+
Od as DashboardGridItem,
|
|
11190
11214
|
jc as Date,
|
|
11191
11215
|
Kc as DateTime,
|
|
11192
11216
|
rd as Email,
|
|
11193
11217
|
Hc as ExportModal,
|
|
11194
|
-
|
|
11218
|
+
_u as FavouriteButton,
|
|
11195
11219
|
lo as Float,
|
|
11196
11220
|
Fc as FloatTime,
|
|
11197
11221
|
Yt as Form,
|
|
@@ -11202,28 +11226,28 @@ export {
|
|
|
11202
11226
|
Qt as Integer,
|
|
11203
11227
|
cn as Label,
|
|
11204
11228
|
zl as Many2one,
|
|
11205
|
-
|
|
11206
|
-
|
|
11229
|
+
$d as Markdown,
|
|
11230
|
+
Ed as MultiCheckbox,
|
|
11207
11231
|
Ic as Notebook,
|
|
11208
11232
|
Sc as One2many,
|
|
11209
11233
|
Tl as ProgressBar,
|
|
11210
|
-
|
|
11234
|
+
Ld as Radio,
|
|
11211
11235
|
Wc as Reference,
|
|
11212
|
-
|
|
11236
|
+
Tu as RootView,
|
|
11213
11237
|
co as SearchFilter,
|
|
11214
11238
|
vo as SearchModal,
|
|
11215
11239
|
yo as SearchTree,
|
|
11216
11240
|
Zr as Selection,
|
|
11217
11241
|
kc as Separator,
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11242
|
+
jd as Steps,
|
|
11243
|
+
Bd as Switch,
|
|
11244
|
+
Fu as TabSelector,
|
|
11245
|
+
kd as Tag,
|
|
11222
11246
|
Da as Tags,
|
|
11223
11247
|
Vc as Text,
|
|
11224
11248
|
mn as Tree,
|
|
11225
11249
|
nd as Url,
|
|
11226
|
-
|
|
11250
|
+
st as iconMapper,
|
|
11227
11251
|
Kt as showConfirmDialog
|
|
11228
11252
|
};
|
|
11229
11253
|
//# sourceMappingURL=react-ooui.es.js.map
|