@gisce/react-ooui 1.2.0-rc.90 → 1.2.0-rc.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +757 -732
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +11 -11
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/custom/Avatar.d.ts +10 -0
- package/dist/widgets/custom/Avatar.d.ts.map +1 -0
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/widgets/views/Tree.tsx +6 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import qe, { useContext as K, useState as b, useEffect as ge, useRef as me, useCallback as Ae, forwardRef as gt, useImperativeHandle as yt } from "react";
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import { Label as It, Field as Fn, Tree as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
2
|
+
import { Tooltip as ft, theme as Me, Typography as on, Form as ot, 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 He, Input as Qe, Select as vt, Checkbox as Nt, Alert as ze, Timeline as er, Statistic as Wo, Card as Yo, Tag as Rn, message as wn, DatePicker as kn, TimePicker as Go, InputNumber as En, Progress as Uo, Avatar as qo, Pagination as zo, Tabs as _r, Popover as Jo, Radio as tr, Switch as Zo, Steps as nr, Layout as Xo } from "antd";
|
|
3
|
+
import { Label as It, Field as Fn, Tree as Ir, Reference as Qo, Selection as Mn, Many2one as Dr, Boolean as ei, Container as ti, parseContext as pt, Form as Vr, Integer as On, SearchFieldTypes as ut, SearchFilter as ni, transformDomainForChildWidget as Ar, graphProcessor as Rr, parseGraph as $n, graphFieldUtils as ri } from "@gisce/ooui";
|
|
4
|
+
import * as rr from "@ant-design/icons";
|
|
5
|
+
import kr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as Dt, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as Vt, TranslationOutlined as $r, FolderOpenOutlined as Nn, DownloadOutlined as Ln, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Lr, UpOutlined as oi, SearchOutlined as Bn, RightCircleOutlined as ii, ThunderboltOutlined as Hn, PrinterOutlined as jn, EnterOutlined as Pr, PlusSquareOutlined as si, MinusSquareOutlined as ai, FileAddOutlined as an, AlignLeftOutlined as li, ApiOutlined as ci, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as Hr, EyeOutlined as di, FormOutlined as Lt, TableOutlined as Wn, AreaChartOutlined as ui, CalendarOutlined as fi, LinkOutlined as jr, SaveOutlined as mi, CopyOutlined as Yn, InfoCircleOutlined as Kr, ReloadOutlined as ln, EditOutlined as Wr, FilterOutlined as Yr, CloseCircleFilled as hi, BorderOuterOutlined as pi, SettingOutlined as gi, ExportOutlined as yi } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
7
7
|
import { jsxs as P, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
8
|
+
import * as or from "@tabler/icons-react";
|
|
9
|
+
import vi from "antd/lib/input/TextArea";
|
|
10
10
|
import jt from "styled-components";
|
|
11
11
|
import Un from "react-measure";
|
|
12
12
|
import _n from "antd/lib/typography/Title";
|
|
13
|
-
import { Line as
|
|
13
|
+
import { Line as wi, Column as bi, Pie as xi } from "@ant-design/plots";
|
|
14
14
|
import wt from "use-deep-compare-effect";
|
|
15
|
-
import { Table as
|
|
16
|
-
import { fileTypeFromBuffer as
|
|
17
|
-
import { GridUi as
|
|
18
|
-
import { FieldSet as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { useHotkeys as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { WidthProvider as
|
|
15
|
+
import { Table as Ci } from "@gisce/react-formiga-table";
|
|
16
|
+
import { fileTypeFromBuffer as Si } from "file-type-buffer-browser";
|
|
17
|
+
import { GridUi as Ti } from "@gisce/fiber-diagram";
|
|
18
|
+
import { FieldSet as Fi, ExportModal as Oi } from "@gisce/react-formiga-components";
|
|
19
|
+
import _i from "validator/lib/isURL";
|
|
20
|
+
import Ii from "validator/lib/isEmail";
|
|
21
|
+
import { useHotkeys as Di } from "react-hotkeys-hook";
|
|
22
|
+
import Vi from "react-markdown";
|
|
23
|
+
import Ai from "@monaco-editor/react";
|
|
24
|
+
import { WidthProvider as Ri, Responsive as ki } from "react-grid-layout";
|
|
25
25
|
import "react-grid-layout/css/styles.css";
|
|
26
|
-
import { v4 as
|
|
26
|
+
import { v4 as Gr } from "uuid";
|
|
27
27
|
const {
|
|
28
|
-
Text:
|
|
29
|
-
Title:
|
|
28
|
+
Text: Ei,
|
|
29
|
+
Title: Mi
|
|
30
30
|
} = on, {
|
|
31
|
-
useToken:
|
|
32
|
-
} = Me,
|
|
31
|
+
useToken: $i
|
|
32
|
+
} = Me, Ni = {
|
|
33
33
|
left: "justify-start",
|
|
34
34
|
center: "justify-center",
|
|
35
35
|
right: "justify-end"
|
|
@@ -46,12 +46,12 @@ const {
|
|
|
46
46
|
labelType: c
|
|
47
47
|
} = t, u = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
48
48
|
token: g
|
|
49
|
-
} =
|
|
49
|
+
} = $i(), h = l === void 0 ? Ei : Mi;
|
|
50
50
|
return /* @__PURE__ */ P("div", {
|
|
51
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
52
|
-
children: [s && /* @__PURE__ */ n(
|
|
51
|
+
className: `flex flex-row items-center pb-1 pt-1 ${Ni[m]}`,
|
|
52
|
+
children: [s && /* @__PURE__ */ n(ft, {
|
|
53
53
|
title: s,
|
|
54
|
-
children: /* @__PURE__ */ n(
|
|
54
|
+
children: /* @__PURE__ */ n(Er, {
|
|
55
55
|
className: "pr-1 text-xs",
|
|
56
56
|
style: {
|
|
57
57
|
color: g.colorPrimary
|
|
@@ -68,7 +68,7 @@ const {
|
|
|
68
68
|
})
|
|
69
69
|
})]
|
|
70
70
|
});
|
|
71
|
-
},
|
|
71
|
+
}, Li = {
|
|
72
72
|
true: "S\xED",
|
|
73
73
|
false: "No",
|
|
74
74
|
simple_search: "B\xFAsqueda simple",
|
|
@@ -154,7 +154,7 @@ const {
|
|
|
154
154
|
advancedExport: "Exportaci\xF3 avan\xE7ada",
|
|
155
155
|
savedRegisters: "Registre guardat correctament",
|
|
156
156
|
errorWhileSavingForm: "Error en guardar el formulari"
|
|
157
|
-
},
|
|
157
|
+
}, Pi = {
|
|
158
158
|
true: "Yes",
|
|
159
159
|
false: "No",
|
|
160
160
|
simple_search: "Simple search",
|
|
@@ -240,7 +240,7 @@ const {
|
|
|
240
240
|
advancedExport: "Advanced export",
|
|
241
241
|
savedRegisters: "Record successfully saved",
|
|
242
242
|
errorWhileSavingForm: "Error while saving form"
|
|
243
|
-
},
|
|
243
|
+
}, Bi = {
|
|
244
244
|
true: "S\xED",
|
|
245
245
|
false: "No",
|
|
246
246
|
simple_search: "B\xFAsqueda simple",
|
|
@@ -326,11 +326,11 @@ const {
|
|
|
326
326
|
advancedExport: "Exportaci\xF3n avanzada",
|
|
327
327
|
savedRegisters: "Registro guardado correctamente",
|
|
328
328
|
errorWhileSavingForm: "Error al guardar el formulario"
|
|
329
|
-
},
|
|
330
|
-
ca_ES:
|
|
331
|
-
en_US:
|
|
332
|
-
es_ES:
|
|
333
|
-
}, ye = qe.createContext(null),
|
|
329
|
+
}, Hi = {
|
|
330
|
+
ca_ES: Li,
|
|
331
|
+
en_US: Pi,
|
|
332
|
+
es_ES: Bi
|
|
333
|
+
}, ye = qe.createContext(null), ji = (e) => {
|
|
334
334
|
const {
|
|
335
335
|
children: t,
|
|
336
336
|
lang: r
|
|
@@ -347,7 +347,7 @@ const {
|
|
|
347
347
|
});
|
|
348
348
|
}, _e = (e, t) => {
|
|
349
349
|
var i;
|
|
350
|
-
return ((i =
|
|
350
|
+
return ((i = Hi[t]) == null ? void 0 : i[e]) || e;
|
|
351
351
|
};
|
|
352
352
|
function we({
|
|
353
353
|
ooui: e,
|
|
@@ -408,22 +408,22 @@ function we({
|
|
|
408
408
|
}))();
|
|
409
409
|
}
|
|
410
410
|
const {
|
|
411
|
-
confirm:
|
|
411
|
+
confirm: Ki
|
|
412
412
|
} = Ye, Kt = ({
|
|
413
413
|
onOk: e,
|
|
414
414
|
confirmMessage: t,
|
|
415
415
|
lang: r
|
|
416
416
|
}) => {
|
|
417
|
-
|
|
417
|
+
Ki({
|
|
418
418
|
title: _e("confirmation", r),
|
|
419
|
-
icon: /* @__PURE__ */ n(
|
|
419
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
420
420
|
centered: !0,
|
|
421
421
|
content: t,
|
|
422
422
|
okText: _e("ok", r),
|
|
423
423
|
cancelText: _e("cancel", r),
|
|
424
424
|
onOk: e
|
|
425
425
|
});
|
|
426
|
-
}, ke = qe.createContext(null),
|
|
426
|
+
}, ke = qe.createContext(null), Wi = (e) => {
|
|
427
427
|
const {
|
|
428
428
|
children: t,
|
|
429
429
|
activeId: r,
|
|
@@ -460,7 +460,7 @@ const {
|
|
|
460
460
|
},
|
|
461
461
|
children: t
|
|
462
462
|
});
|
|
463
|
-
},
|
|
463
|
+
}, ir = {
|
|
464
464
|
"terp-purchase": "ShoppingCart",
|
|
465
465
|
"terp-graph": "PieChart",
|
|
466
466
|
"terp-crm": "Contacts",
|
|
@@ -552,8 +552,8 @@ const {
|
|
|
552
552
|
STOCK_CLEAR: "CloseSquare",
|
|
553
553
|
STOCK_UNINDENT: "AlignLeft",
|
|
554
554
|
STOCK_PREFERENCES: "Setting"
|
|
555
|
-
}, it = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`),
|
|
556
|
-
function
|
|
555
|
+
}, it = (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
|
+
function Yi(e) {
|
|
557
557
|
return `${e.split("-").map(
|
|
558
558
|
(t) => t.replace(
|
|
559
559
|
/\w\S*/g,
|
|
@@ -561,28 +561,28 @@ function Wi(e) {
|
|
|
561
561
|
)
|
|
562
562
|
).join("")}`;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function sr(e, t) {
|
|
565
565
|
let r = e.charAt(0).toUpperCase() + e.slice(1);
|
|
566
|
-
r.indexOf("-") !== -1 && (r =
|
|
566
|
+
r.indexOf("-") !== -1 && (r = Yi(r));
|
|
567
567
|
const i = `${r}Outlined`;
|
|
568
|
-
if (
|
|
569
|
-
return () => qe.createElement(
|
|
568
|
+
if (rr[i])
|
|
569
|
+
return () => qe.createElement(rr[i], {
|
|
570
570
|
...t
|
|
571
571
|
});
|
|
572
572
|
const o = `Icon${r}`;
|
|
573
|
-
if (
|
|
574
|
-
const s = () => qe.createElement(
|
|
573
|
+
if (or[o]) {
|
|
574
|
+
const s = () => qe.createElement(or[o], {
|
|
575
575
|
fill: "transparent",
|
|
576
576
|
height: 17,
|
|
577
577
|
width: 17
|
|
578
578
|
});
|
|
579
|
-
return () => qe.createElement(
|
|
579
|
+
return () => qe.createElement(kr, {
|
|
580
580
|
component: s,
|
|
581
581
|
...t
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
const
|
|
585
|
+
const Ur = (e) => {
|
|
586
586
|
const {
|
|
587
587
|
ooui: t
|
|
588
588
|
} = e, {
|
|
@@ -643,7 +643,7 @@ const Gr = (e) => {
|
|
|
643
643
|
children: i
|
|
644
644
|
})
|
|
645
645
|
});
|
|
646
|
-
},
|
|
646
|
+
}, Gi = (e) => {
|
|
647
647
|
const {
|
|
648
648
|
ooui: t
|
|
649
649
|
} = e, {
|
|
@@ -705,7 +705,7 @@ const Gr = (e) => {
|
|
|
705
705
|
onClick: A,
|
|
706
706
|
icon: /* @__PURE__ */ n(Dt, {}),
|
|
707
707
|
type: u ? "primary" : void 0,
|
|
708
|
-
overlay: /* @__PURE__ */ n(
|
|
708
|
+
overlay: /* @__PURE__ */ n(Ui, {
|
|
709
709
|
ooui: i,
|
|
710
710
|
executeButtonAction: p,
|
|
711
711
|
lang: V
|
|
@@ -714,10 +714,10 @@ const Gr = (e) => {
|
|
|
714
714
|
})
|
|
715
715
|
});
|
|
716
716
|
if (r)
|
|
717
|
-
return /* @__PURE__ */ n(
|
|
717
|
+
return /* @__PURE__ */ n(Ur, {
|
|
718
718
|
ooui: r
|
|
719
719
|
});
|
|
720
|
-
},
|
|
720
|
+
}, Ui = (e) => {
|
|
721
721
|
const {
|
|
722
722
|
ooui: t,
|
|
723
723
|
executeButtonAction: r,
|
|
@@ -776,8 +776,8 @@ const Gr = (e) => {
|
|
|
776
776
|
return /* @__PURE__ */ n($e, {
|
|
777
777
|
children: o
|
|
778
778
|
});
|
|
779
|
-
},
|
|
780
|
-
function
|
|
779
|
+
}, qi = 0.7;
|
|
780
|
+
function ar() {
|
|
781
781
|
const { innerWidth: e, innerHeight: t } = window;
|
|
782
782
|
return {
|
|
783
783
|
width: e,
|
|
@@ -786,15 +786,15 @@ function sr() {
|
|
|
786
786
|
}
|
|
787
787
|
function dn() {
|
|
788
788
|
const [e, t] = b(
|
|
789
|
-
|
|
789
|
+
ar()
|
|
790
790
|
);
|
|
791
791
|
return ge(() => {
|
|
792
792
|
function r() {
|
|
793
|
-
t(
|
|
793
|
+
t(ar());
|
|
794
794
|
}
|
|
795
795
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
796
796
|
}, []), {
|
|
797
|
-
modalWidth: e.width *
|
|
797
|
+
modalWidth: e.width * qi,
|
|
798
798
|
modalHeight: e.height,
|
|
799
799
|
width: e.width,
|
|
800
800
|
height: e.height
|
|
@@ -810,7 +810,7 @@ class H {
|
|
|
810
810
|
return H.handler;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const qr = (e) => {
|
|
814
814
|
let t, r, i;
|
|
815
815
|
if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
|
|
816
816
|
|
|
@@ -829,21 +829,21 @@ const Ur = (e) => {
|
|
|
829
829
|
title: i
|
|
830
830
|
};
|
|
831
831
|
}, {
|
|
832
|
-
error:
|
|
833
|
-
warning:
|
|
832
|
+
error: zi,
|
|
833
|
+
warning: Ji
|
|
834
834
|
} = Ye, We = (e) => {
|
|
835
835
|
const {
|
|
836
836
|
message: t,
|
|
837
837
|
type: r,
|
|
838
838
|
title: i
|
|
839
|
-
} =
|
|
840
|
-
(r === "error" ?
|
|
839
|
+
} = qr(e);
|
|
840
|
+
(r === "error" ? zi : Ji)({
|
|
841
841
|
title: i,
|
|
842
|
-
icon: r === "error" ? /* @__PURE__ */ n(
|
|
842
|
+
icon: r === "error" ? /* @__PURE__ */ n(mt, {}) : /* @__PURE__ */ n(Mr, {}),
|
|
843
843
|
centered: !0,
|
|
844
844
|
content: t
|
|
845
845
|
});
|
|
846
|
-
},
|
|
846
|
+
}, zr = (e) => {
|
|
847
847
|
const {
|
|
848
848
|
visible: t,
|
|
849
849
|
onCloseModal: r,
|
|
@@ -908,7 +908,7 @@ const Ur = (e) => {
|
|
|
908
908
|
children: w.name
|
|
909
909
|
}), /* @__PURE__ */ n(ae, {
|
|
910
910
|
flex: "auto",
|
|
911
|
-
children: /* @__PURE__ */ n(
|
|
911
|
+
children: /* @__PURE__ */ n(vi, {
|
|
912
912
|
rows: 4,
|
|
913
913
|
value: p[w.code] || "",
|
|
914
914
|
onChange: (F) => {
|
|
@@ -984,7 +984,7 @@ function Ue(e) {
|
|
|
984
984
|
tooltip: t,
|
|
985
985
|
...r
|
|
986
986
|
} = e;
|
|
987
|
-
return /* @__PURE__ */ n(
|
|
987
|
+
return /* @__PURE__ */ n(ft, {
|
|
988
988
|
title: t,
|
|
989
989
|
children: /* @__PURE__ */ n(Ie, {
|
|
990
990
|
...r
|
|
@@ -992,16 +992,16 @@ function Ue(e) {
|
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
const {
|
|
995
|
-
info:
|
|
995
|
+
info: Zi
|
|
996
996
|
} = Ye, ct = (e) => {
|
|
997
|
-
|
|
997
|
+
Zi({
|
|
998
998
|
title: "",
|
|
999
999
|
centered: !0,
|
|
1000
1000
|
content: e
|
|
1001
1001
|
});
|
|
1002
1002
|
}, {
|
|
1003
|
-
useToken:
|
|
1004
|
-
} = Me,
|
|
1003
|
+
useToken: Xi
|
|
1004
|
+
} = Me, Jr = (e) => {
|
|
1005
1005
|
const {
|
|
1006
1006
|
ooui: t,
|
|
1007
1007
|
isSearchField: r = !1
|
|
@@ -1013,7 +1013,7 @@ const {
|
|
|
1013
1013
|
translatable: l
|
|
1014
1014
|
} = t, {
|
|
1015
1015
|
token: c
|
|
1016
|
-
} =
|
|
1016
|
+
} = Xi(), d = a && !o ? {
|
|
1017
1017
|
backgroundColor: c.colorPrimaryBg
|
|
1018
1018
|
} : void 0, u = K(ke), {
|
|
1019
1019
|
elementHasLostFocus: f
|
|
@@ -1029,7 +1029,7 @@ const {
|
|
|
1029
1029
|
disabled: o,
|
|
1030
1030
|
id: i,
|
|
1031
1031
|
onBlur: f
|
|
1032
|
-
})), l && !o && !r && (m = /* @__PURE__ */ n(
|
|
1032
|
+
})), l && !o && !r && (m = /* @__PURE__ */ n(Qi, {
|
|
1033
1033
|
field: i,
|
|
1034
1034
|
requiredStyle: d
|
|
1035
1035
|
})), /* @__PURE__ */ n(we, {
|
|
@@ -1037,7 +1037,7 @@ const {
|
|
|
1037
1037
|
...e,
|
|
1038
1038
|
children: m
|
|
1039
1039
|
});
|
|
1040
|
-
},
|
|
1040
|
+
}, Qi = ({
|
|
1041
1041
|
value: e,
|
|
1042
1042
|
field: t,
|
|
1043
1043
|
requiredStyle: r,
|
|
@@ -1074,7 +1074,7 @@ const {
|
|
|
1074
1074
|
...r
|
|
1075
1075
|
}
|
|
1076
1076
|
})
|
|
1077
|
-
}), /* @__PURE__ */ n(
|
|
1077
|
+
}), /* @__PURE__ */ n(zr, {
|
|
1078
1078
|
id: s,
|
|
1079
1079
|
model: a,
|
|
1080
1080
|
field: t,
|
|
@@ -1105,7 +1105,7 @@ const {
|
|
|
1105
1105
|
flex: "32px",
|
|
1106
1106
|
children: /* @__PURE__ */ n(Ue, {
|
|
1107
1107
|
tooltip: m("translate"),
|
|
1108
|
-
icon: /* @__PURE__ */ n(
|
|
1108
|
+
icon: /* @__PURE__ */ n($r, {}),
|
|
1109
1109
|
onClick: async () => {
|
|
1110
1110
|
c != null && c() ? ct(m("saveBeforeTranslate")) : ct(m("enterTextBeforeTranslate"));
|
|
1111
1111
|
},
|
|
@@ -1115,11 +1115,11 @@ const {
|
|
|
1115
1115
|
})
|
|
1116
1116
|
});
|
|
1117
1117
|
}, {
|
|
1118
|
-
defaultAlgorithm:
|
|
1119
|
-
defaultSeed:
|
|
1120
|
-
} = Me,
|
|
1121
|
-
Option:
|
|
1122
|
-
} = vt,
|
|
1118
|
+
defaultAlgorithm: es,
|
|
1119
|
+
defaultSeed: ts
|
|
1120
|
+
} = Me, ns = es(ts), {
|
|
1121
|
+
Option: rs
|
|
1122
|
+
} = vt, Zr = (e) => {
|
|
1123
1123
|
const {
|
|
1124
1124
|
ooui: t
|
|
1125
1125
|
} = e, {
|
|
@@ -1129,11 +1129,11 @@ const {
|
|
|
1129
1129
|
required: r,
|
|
1130
1130
|
type: "any",
|
|
1131
1131
|
...e,
|
|
1132
|
-
children: /* @__PURE__ */ n(
|
|
1132
|
+
children: /* @__PURE__ */ n(Xr, {
|
|
1133
1133
|
...e
|
|
1134
1134
|
})
|
|
1135
1135
|
});
|
|
1136
|
-
},
|
|
1136
|
+
}, Xr = (e) => {
|
|
1137
1137
|
const {
|
|
1138
1138
|
ooui: t,
|
|
1139
1139
|
onChange: r,
|
|
@@ -1144,12 +1144,12 @@ const {
|
|
|
1144
1144
|
required: a
|
|
1145
1145
|
} = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
|
|
1146
1146
|
const [f, m] = u;
|
|
1147
|
-
return /* @__PURE__ */ n(
|
|
1147
|
+
return /* @__PURE__ */ n(rs, {
|
|
1148
1148
|
value: f,
|
|
1149
1149
|
children: m
|
|
1150
1150
|
}, f);
|
|
1151
1151
|
});
|
|
1152
|
-
return /* @__PURE__ */ n(a && !s ?
|
|
1152
|
+
return /* @__PURE__ */ n(a && !s ? os : vt, {
|
|
1153
1153
|
disabled: s,
|
|
1154
1154
|
onChange: r,
|
|
1155
1155
|
value: i,
|
|
@@ -1158,14 +1158,14 @@ const {
|
|
|
1158
1158
|
showSearch: !0,
|
|
1159
1159
|
children: c
|
|
1160
1160
|
});
|
|
1161
|
-
},
|
|
1161
|
+
}, os = jt(vt)`
|
|
1162
1162
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1163
|
-
background-color: ${
|
|
1163
|
+
background-color: ${ns.colorPrimaryBg};
|
|
1164
1164
|
}
|
|
1165
1165
|
`, {
|
|
1166
|
-
defaultAlgorithm:
|
|
1167
|
-
defaultSeed:
|
|
1168
|
-
} = Me,
|
|
1166
|
+
defaultAlgorithm: is,
|
|
1167
|
+
defaultSeed: ss
|
|
1168
|
+
} = Me, lr = is(ss), as = (e) => {
|
|
1169
1169
|
const {
|
|
1170
1170
|
ooui: t
|
|
1171
1171
|
} = e, {
|
|
@@ -1176,13 +1176,13 @@ const {
|
|
|
1176
1176
|
return /* @__PURE__ */ n(we, {
|
|
1177
1177
|
...e,
|
|
1178
1178
|
valuePropName: "checked",
|
|
1179
|
-
children: /* @__PURE__ */ n(
|
|
1179
|
+
children: /* @__PURE__ */ n(ls, {
|
|
1180
1180
|
id: r,
|
|
1181
1181
|
readOnly: i,
|
|
1182
1182
|
required: o
|
|
1183
1183
|
})
|
|
1184
1184
|
});
|
|
1185
|
-
},
|
|
1185
|
+
}, ls = (e) => {
|
|
1186
1186
|
const {
|
|
1187
1187
|
required: t,
|
|
1188
1188
|
readOnly: r,
|
|
@@ -1190,86 +1190,86 @@ const {
|
|
|
1190
1190
|
} = e;
|
|
1191
1191
|
return /* @__PURE__ */ n("div", {
|
|
1192
1192
|
className: "flex flex-row",
|
|
1193
|
-
children: /* @__PURE__ */ n(t && !r ?
|
|
1193
|
+
children: /* @__PURE__ */ n(t && !r ? cs : Nt, {
|
|
1194
1194
|
disabled: r,
|
|
1195
1195
|
...i
|
|
1196
1196
|
})
|
|
1197
1197
|
});
|
|
1198
|
-
},
|
|
1198
|
+
}, cs = jt(Nt)`
|
|
1199
1199
|
.ant-checkbox-inner {
|
|
1200
|
-
background-color: ${
|
|
1200
|
+
background-color: ${lr.colorPrimaryBg};
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
1203
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
1204
|
-
background-color: ${
|
|
1204
|
+
background-color: ${lr.colorPrimary};
|
|
1205
1205
|
}
|
|
1206
1206
|
`;
|
|
1207
1207
|
var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1208
|
-
function
|
|
1208
|
+
function ds(e) {
|
|
1209
1209
|
var t = typeof e;
|
|
1210
1210
|
return e != null && (t == "object" || t == "function");
|
|
1211
1211
|
}
|
|
1212
|
-
var
|
|
1213
|
-
return
|
|
1214
|
-
},
|
|
1215
|
-
function
|
|
1216
|
-
for (var t = e.length; t-- &&
|
|
1212
|
+
var Qr = ds, us = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, fs = us, ms = fs, hs = typeof self == "object" && self && self.Object === Object && self, ps = ms || hs || Function("return this")(), eo = ps, gs = eo, ys = function() {
|
|
1213
|
+
return gs.Date.now();
|
|
1214
|
+
}, vs = ys, ws = /\s/;
|
|
1215
|
+
function bs(e) {
|
|
1216
|
+
for (var t = e.length; t-- && ws.test(e.charAt(t)); )
|
|
1217
1217
|
;
|
|
1218
1218
|
return t;
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1221
|
-
function
|
|
1222
|
-
return e && e.slice(0,
|
|
1220
|
+
var xs = bs, Cs = xs, Ss = /^\s+/;
|
|
1221
|
+
function Ts(e) {
|
|
1222
|
+
return e && e.slice(0, Cs(e) + 1).replace(Ss, "");
|
|
1223
1223
|
}
|
|
1224
|
-
var
|
|
1225
|
-
function
|
|
1226
|
-
var t =
|
|
1224
|
+
var Fs = Ts, Os = eo, _s = Os.Symbol, to = _s, cr = to, no = Object.prototype, Is = no.hasOwnProperty, Ds = no.toString, kt = cr ? cr.toStringTag : void 0;
|
|
1225
|
+
function Vs(e) {
|
|
1226
|
+
var t = Is.call(e, kt), r = e[kt];
|
|
1227
1227
|
try {
|
|
1228
1228
|
e[kt] = void 0;
|
|
1229
1229
|
var i = !0;
|
|
1230
1230
|
} catch {
|
|
1231
1231
|
}
|
|
1232
|
-
var o =
|
|
1232
|
+
var o = Ds.call(e);
|
|
1233
1233
|
return i && (t ? e[kt] = r : delete e[kt]), o;
|
|
1234
1234
|
}
|
|
1235
|
-
var
|
|
1236
|
-
function
|
|
1237
|
-
return
|
|
1235
|
+
var As = Vs, Rs = Object.prototype, ks = Rs.toString;
|
|
1236
|
+
function Es(e) {
|
|
1237
|
+
return ks.call(e);
|
|
1238
1238
|
}
|
|
1239
|
-
var
|
|
1240
|
-
function
|
|
1241
|
-
return e == null ? e === void 0 ?
|
|
1239
|
+
var Ms = Es, dr = to, $s = As, Ns = Ms, Ls = "[object Null]", Ps = "[object Undefined]", ur = dr ? dr.toStringTag : void 0;
|
|
1240
|
+
function Bs(e) {
|
|
1241
|
+
return e == null ? e === void 0 ? Ps : Ls : ur && ur in Object(e) ? $s(e) : Ns(e);
|
|
1242
1242
|
}
|
|
1243
|
-
var
|
|
1244
|
-
function
|
|
1243
|
+
var Hs = Bs;
|
|
1244
|
+
function js(e) {
|
|
1245
1245
|
return e != null && typeof e == "object";
|
|
1246
1246
|
}
|
|
1247
|
-
var
|
|
1248
|
-
function
|
|
1249
|
-
return typeof e == "symbol" ||
|
|
1247
|
+
var Ks = js, Ws = Hs, Ys = Ks, Gs = "[object Symbol]";
|
|
1248
|
+
function Us(e) {
|
|
1249
|
+
return typeof e == "symbol" || Ys(e) && Ws(e) == Gs;
|
|
1250
1250
|
}
|
|
1251
|
-
var
|
|
1252
|
-
function
|
|
1251
|
+
var qs = Us, zs = Fs, fr = Qr, Js = qs, mr = 0 / 0, Zs = /^[-+]0x[0-9a-f]+$/i, Xs = /^0b[01]+$/i, Qs = /^0o[0-7]+$/i, ea = parseInt;
|
|
1252
|
+
function ta(e) {
|
|
1253
1253
|
if (typeof e == "number")
|
|
1254
1254
|
return e;
|
|
1255
|
-
if (
|
|
1256
|
-
return
|
|
1257
|
-
if (
|
|
1255
|
+
if (Js(e))
|
|
1256
|
+
return mr;
|
|
1257
|
+
if (fr(e)) {
|
|
1258
1258
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1259
|
-
e =
|
|
1259
|
+
e = fr(t) ? t + "" : t;
|
|
1260
1260
|
}
|
|
1261
1261
|
if (typeof e != "string")
|
|
1262
1262
|
return e === 0 ? e : +e;
|
|
1263
|
-
e =
|
|
1264
|
-
var r =
|
|
1265
|
-
return r ||
|
|
1263
|
+
e = zs(e);
|
|
1264
|
+
var r = Xs.test(e);
|
|
1265
|
+
return r || Qs.test(e) ? ea(e.slice(2), r ? 2 : 8) : Zs.test(e) ? mr : +e;
|
|
1266
1266
|
}
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1267
|
+
var na = ta, ra = Qr, bn = vs, hr = na, oa = "Expected a function", ia = Math.max, sa = Math.min;
|
|
1268
|
+
function aa(e, t, r) {
|
|
1269
1269
|
var i, o, s, a, l, c, d = 0, u = !1, f = !1, m = !0;
|
|
1270
1270
|
if (typeof e != "function")
|
|
1271
|
-
throw new TypeError(
|
|
1272
|
-
t =
|
|
1271
|
+
throw new TypeError(oa);
|
|
1272
|
+
t = hr(t) || 0, ra(r) && (u = !!r.leading, f = "maxWait" in r, s = f ? ia(hr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1273
1273
|
function g(_) {
|
|
1274
1274
|
var $ = i, w = o;
|
|
1275
1275
|
return i = o = void 0, d = _, a = e.apply(w, $), a;
|
|
@@ -1279,7 +1279,7 @@ function sa(e, t, r) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function p(_) {
|
|
1281
1281
|
var $ = _ - c, w = _ - d, C = t - $;
|
|
1282
|
-
return f ?
|
|
1282
|
+
return f ? sa(C, s - w) : C;
|
|
1283
1283
|
}
|
|
1284
1284
|
function v(_) {
|
|
1285
1285
|
var $ = _ - c, w = _ - d;
|
|
@@ -1312,13 +1312,13 @@ function sa(e, t, r) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
return A.cancel = O, A.flush = x, A;
|
|
1314
1314
|
}
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1315
|
+
var la = aa;
|
|
1316
|
+
function ca(e) {
|
|
1317
1317
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1318
1318
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1319
1319
|
}
|
|
1320
1320
|
async function Ot(e) {
|
|
1321
|
-
const t = await
|
|
1321
|
+
const t = await Si(
|
|
1322
1322
|
Buffer.from(e, "base64")
|
|
1323
1323
|
);
|
|
1324
1324
|
return t || {
|
|
@@ -1326,7 +1326,7 @@ async function Ot(e) {
|
|
|
1326
1326
|
ext: "txt"
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
|
-
const
|
|
1329
|
+
const ro = (e) => new Promise((t, r) => {
|
|
1330
1330
|
const i = new FileReader();
|
|
1331
1331
|
i.readAsDataURL(e), i.onload = (o) => t(o.target.result.split(",")[1]), i.onerror = (o) => r(o);
|
|
1332
1332
|
});
|
|
@@ -1336,7 +1336,7 @@ function un(e, t) {
|
|
|
1336
1336
|
var s = new Uint8Array(i), a = new Blob([s], { type: t + ";base64" }), l = URL.createObjectURL(a);
|
|
1337
1337
|
window.open(l);
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const da = (e) => {
|
|
1340
1340
|
const {
|
|
1341
1341
|
ooui: t
|
|
1342
1342
|
} = e, {
|
|
@@ -1346,11 +1346,11 @@ const ca = (e) => {
|
|
|
1346
1346
|
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(we, {
|
|
1347
1347
|
required: r,
|
|
1348
1348
|
...e,
|
|
1349
|
-
children: /* @__PURE__ */ n(
|
|
1349
|
+
children: /* @__PURE__ */ n(ua, {
|
|
1350
1350
|
ooui: t
|
|
1351
1351
|
})
|
|
1352
1352
|
});
|
|
1353
|
-
},
|
|
1353
|
+
}, ua = (e) => {
|
|
1354
1354
|
const {
|
|
1355
1355
|
ooui: t,
|
|
1356
1356
|
value: r,
|
|
@@ -1368,7 +1368,7 @@ const ca = (e) => {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
async function d(f) {
|
|
1370
1370
|
f.stopPropagation(), f.preventDefault();
|
|
1371
|
-
const m = f.target.files[0], g = await
|
|
1371
|
+
const m = f.target.files[0], g = await ro(m);
|
|
1372
1372
|
l(g);
|
|
1373
1373
|
}
|
|
1374
1374
|
function u() {
|
|
@@ -1421,7 +1421,7 @@ const ca = (e) => {
|
|
|
1421
1421
|
})
|
|
1422
1422
|
})]
|
|
1423
1423
|
});
|
|
1424
|
-
},
|
|
1424
|
+
}, fa = (e) => {
|
|
1425
1425
|
const {
|
|
1426
1426
|
ooui: t
|
|
1427
1427
|
} = e, {
|
|
@@ -1430,9 +1430,9 @@ const ca = (e) => {
|
|
|
1430
1430
|
return /* @__PURE__ */ n(we, {
|
|
1431
1431
|
required: r,
|
|
1432
1432
|
...e,
|
|
1433
|
-
children: /* @__PURE__ */ n(
|
|
1433
|
+
children: /* @__PURE__ */ n(ma, {})
|
|
1434
1434
|
});
|
|
1435
|
-
},
|
|
1435
|
+
}, ma = (e) => {
|
|
1436
1436
|
const {
|
|
1437
1437
|
value: t,
|
|
1438
1438
|
onChange: r
|
|
@@ -1444,16 +1444,16 @@ const ca = (e) => {
|
|
|
1444
1444
|
} catch (i) {
|
|
1445
1445
|
return console.log(i), null;
|
|
1446
1446
|
}
|
|
1447
|
-
return /* @__PURE__ */ n(
|
|
1447
|
+
return /* @__PURE__ */ n(Ti, {
|
|
1448
1448
|
inputJson: t,
|
|
1449
1449
|
onChange: (i) => {
|
|
1450
1450
|
r && r(i);
|
|
1451
1451
|
}
|
|
1452
1452
|
});
|
|
1453
1453
|
}, St = (e) => {
|
|
1454
|
-
const t = e.arch, r = e.fields, i = new
|
|
1454
|
+
const t = e.arch, r = e.fields, i = new Ir(r);
|
|
1455
1455
|
return i.parse(t), i;
|
|
1456
|
-
},
|
|
1456
|
+
}, ha = (e, t, r) => e.columns.map((o) => {
|
|
1457
1457
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1458
1458
|
let c;
|
|
1459
1459
|
return l && (c = (d) => l(d, a, o, r)), {
|
|
@@ -1467,18 +1467,18 @@ const ca = (e) => {
|
|
|
1467
1467
|
return s === "many2one" && (f = ((g = d[a]) == null ? void 0 : g.value) || "", m = ((h = u[a]) == null ? void 0 : h.value) || ""), f < m ? -1 : f > m ? 1 : 0;
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
|
-
}),
|
|
1470
|
+
}), oo = (e, t) => t.map((i) => {
|
|
1471
1471
|
const o = {};
|
|
1472
1472
|
return Object.keys(i).map((s) => {
|
|
1473
1473
|
if (s === "id")
|
|
1474
1474
|
o[s] = i[s];
|
|
1475
1475
|
else {
|
|
1476
1476
|
const a = e.findById(s);
|
|
1477
|
-
a instanceof
|
|
1477
|
+
a instanceof Qo || a instanceof Mn ? o[s] = i[s] : a instanceof Dr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
|
|
1478
1478
|
model: a.relation,
|
|
1479
1479
|
id: i[s][0],
|
|
1480
1480
|
value: i[s][1]
|
|
1481
|
-
} : a instanceof
|
|
1481
|
+
} : a instanceof ei ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
|
|
1482
1482
|
}
|
|
1483
1483
|
}), o;
|
|
1484
1484
|
});
|
|
@@ -1556,10 +1556,10 @@ const qn = async (e) => {
|
|
|
1556
1556
|
}).concat(l),
|
|
1557
1557
|
f
|
|
1558
1558
|
];
|
|
1559
|
-
},
|
|
1559
|
+
}, pa = (e) => {
|
|
1560
1560
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
1561
1561
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1562
|
-
},
|
|
1562
|
+
}, ga = (e, t) => {
|
|
1563
1563
|
const r = {};
|
|
1564
1564
|
return Object.keys(e).forEach((i) => {
|
|
1565
1565
|
var o;
|
|
@@ -1567,7 +1567,7 @@ const qn = async (e) => {
|
|
|
1567
1567
|
(s) => s.operation !== "pendingRemove"
|
|
1568
1568
|
) : r[i] = e[i];
|
|
1569
1569
|
}), r;
|
|
1570
|
-
},
|
|
1570
|
+
}, ya = (e) => {
|
|
1571
1571
|
const {
|
|
1572
1572
|
ooui: t
|
|
1573
1573
|
} = e, {
|
|
@@ -1606,12 +1606,12 @@ const qn = async (e) => {
|
|
|
1606
1606
|
}) : /* @__PURE__ */ n(we, {
|
|
1607
1607
|
type: "array",
|
|
1608
1608
|
...e,
|
|
1609
|
-
children: /* @__PURE__ */ n(
|
|
1609
|
+
children: /* @__PURE__ */ n(va, {
|
|
1610
1610
|
ooui: t,
|
|
1611
1611
|
views: d
|
|
1612
1612
|
})
|
|
1613
1613
|
});
|
|
1614
|
-
},
|
|
1614
|
+
}, va = (e) => {
|
|
1615
1615
|
const {
|
|
1616
1616
|
value: t,
|
|
1617
1617
|
views: r,
|
|
@@ -1668,14 +1668,14 @@ const qn = async (e) => {
|
|
|
1668
1668
|
type: "error",
|
|
1669
1669
|
banner: !0
|
|
1670
1670
|
}) : a ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(Z, {
|
|
1671
|
-
children: [/* @__PURE__ */ n(
|
|
1671
|
+
children: [/* @__PURE__ */ n(er, {
|
|
1672
1672
|
style: {
|
|
1673
1673
|
padding: "1rem"
|
|
1674
1674
|
},
|
|
1675
1675
|
children: O.map((w, C) => {
|
|
1676
1676
|
var F, S;
|
|
1677
1677
|
return /* @__PURE__ */ n("div", {
|
|
1678
|
-
children: /* @__PURE__ */ P(
|
|
1678
|
+
children: /* @__PURE__ */ P(er.Item, {
|
|
1679
1679
|
children: [/* @__PURE__ */ n("div", {
|
|
1680
1680
|
style: {
|
|
1681
1681
|
display: "inline-block",
|
|
@@ -1722,29 +1722,29 @@ const qn = async (e) => {
|
|
|
1722
1722
|
})]
|
|
1723
1723
|
});
|
|
1724
1724
|
}, {
|
|
1725
|
-
useToken:
|
|
1726
|
-
} = Me,
|
|
1725
|
+
useToken: wa
|
|
1726
|
+
} = Me, ba = (e) => {
|
|
1727
1727
|
const {
|
|
1728
1728
|
ooui: t
|
|
1729
1729
|
} = e;
|
|
1730
1730
|
return /* @__PURE__ */ n(we, {
|
|
1731
1731
|
ooui: t,
|
|
1732
|
-
children: /* @__PURE__ */ n(
|
|
1732
|
+
children: /* @__PURE__ */ n(xa, {
|
|
1733
1733
|
ooui: t
|
|
1734
1734
|
})
|
|
1735
1735
|
});
|
|
1736
|
-
},
|
|
1736
|
+
}, xa = (e) => {
|
|
1737
1737
|
const {
|
|
1738
1738
|
token: t
|
|
1739
|
-
} =
|
|
1739
|
+
} = wa(), {
|
|
1740
1740
|
ooui: r,
|
|
1741
1741
|
value: i
|
|
1742
1742
|
} = e, o = /* @__PURE__ */ P(Z, {
|
|
1743
1743
|
children: [/* @__PURE__ */ P("span", {
|
|
1744
1744
|
children: [r.label, " "]
|
|
1745
|
-
}), r.tooltip && /* @__PURE__ */ n(
|
|
1745
|
+
}), r.tooltip && /* @__PURE__ */ n(ft, {
|
|
1746
1746
|
title: r.tooltip,
|
|
1747
|
-
children: /* @__PURE__ */ n(
|
|
1747
|
+
children: /* @__PURE__ */ n(Er, {
|
|
1748
1748
|
className: "pr-1 text-xs",
|
|
1749
1749
|
style: {
|
|
1750
1750
|
color: t.colorPrimaryBg
|
|
@@ -1763,7 +1763,7 @@ const qn = async (e) => {
|
|
|
1763
1763
|
return r.card ? /* @__PURE__ */ n(Yo, {
|
|
1764
1764
|
children: l
|
|
1765
1765
|
}) : l;
|
|
1766
|
-
},
|
|
1766
|
+
}, Ca = (e, t) => {
|
|
1767
1767
|
if (!t)
|
|
1768
1768
|
return e;
|
|
1769
1769
|
const r = {};
|
|
@@ -1777,7 +1777,7 @@ const qn = async (e) => {
|
|
|
1777
1777
|
} else
|
|
1778
1778
|
r[i] = e[i];
|
|
1779
1779
|
}), r;
|
|
1780
|
-
}, Ct = (e, t) =>
|
|
1780
|
+
}, Ct = (e, t) => Ca(e, t), xn = ({
|
|
1781
1781
|
source: e,
|
|
1782
1782
|
target: t,
|
|
1783
1783
|
fields: r
|
|
@@ -1810,7 +1810,7 @@ const qn = async (e) => {
|
|
|
1810
1810
|
else
|
|
1811
1811
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
1812
1812
|
}), i;
|
|
1813
|
-
},
|
|
1813
|
+
}, Sa = ({
|
|
1814
1814
|
changedFields: e,
|
|
1815
1815
|
formOoui: t,
|
|
1816
1816
|
types: r
|
|
@@ -1818,7 +1818,7 @@ const qn = async (e) => {
|
|
|
1818
1818
|
var a;
|
|
1819
1819
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1820
1820
|
return r.includes(s);
|
|
1821
|
-
}).some((o) => o === !0),
|
|
1821
|
+
}).some((o) => o === !0), Ta = ({
|
|
1822
1822
|
fieldsDomain: e,
|
|
1823
1823
|
fields: t
|
|
1824
1824
|
}) => {
|
|
@@ -1826,12 +1826,12 @@ const qn = async (e) => {
|
|
|
1826
1826
|
return Object.keys(t).forEach((i) => {
|
|
1827
1827
|
r[i] = t[i], e[i] && (r[i].domain = e[i]);
|
|
1828
1828
|
}), r;
|
|
1829
|
-
},
|
|
1829
|
+
}, Fa = (e) => {
|
|
1830
1830
|
const t = {};
|
|
1831
1831
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
|
|
1832
1832
|
(r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
|
|
1833
1833
|
}), t);
|
|
1834
|
-
},
|
|
1834
|
+
}, Oa = ({
|
|
1835
1835
|
onChangeFieldActionArgs: e,
|
|
1836
1836
|
values: t,
|
|
1837
1837
|
parentValues: r = {}
|
|
@@ -1855,7 +1855,7 @@ const qn = async (e) => {
|
|
|
1855
1855
|
} else
|
|
1856
1856
|
i[o] = !1;
|
|
1857
1857
|
}), i;
|
|
1858
|
-
},
|
|
1858
|
+
}, io = (e) => {
|
|
1859
1859
|
const t = {
|
|
1860
1860
|
primary: [],
|
|
1861
1861
|
secondary: []
|
|
@@ -1865,11 +1865,11 @@ const qn = async (e) => {
|
|
|
1865
1865
|
r.secondary
|
|
1866
1866
|
));
|
|
1867
1867
|
}), {
|
|
1868
|
-
primary: t.primary.filter(
|
|
1869
|
-
secondary: t.secondary.filter(
|
|
1868
|
+
primary: t.primary.filter(pr),
|
|
1869
|
+
secondary: t.secondary.filter(pr)
|
|
1870
1870
|
};
|
|
1871
1871
|
};
|
|
1872
|
-
function
|
|
1872
|
+
function pr(e, t, r) {
|
|
1873
1873
|
return r.indexOf(e) === t;
|
|
1874
1874
|
}
|
|
1875
1875
|
const At = ({
|
|
@@ -1881,7 +1881,7 @@ const At = ({
|
|
|
1881
1881
|
const o = e[i];
|
|
1882
1882
|
t[i] && t[i].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? r[i] = o[0] : r[i] = o;
|
|
1883
1883
|
}), r;
|
|
1884
|
-
},
|
|
1884
|
+
}, zn = (e) => {
|
|
1885
1885
|
let t = 0;
|
|
1886
1886
|
for (let o = 0; o < e.length; o++)
|
|
1887
1887
|
t = e.charCodeAt(o) + ((t << 5) - t);
|
|
@@ -1891,18 +1891,18 @@ const At = ({
|
|
|
1891
1891
|
r += ("00" + i.toString(16)).slice(-2);
|
|
1892
1892
|
}
|
|
1893
1893
|
return r;
|
|
1894
|
-
},
|
|
1894
|
+
}, _a = (e) => {
|
|
1895
1895
|
const {
|
|
1896
1896
|
ooui: t
|
|
1897
1897
|
} = e;
|
|
1898
1898
|
return /* @__PURE__ */ n(we, {
|
|
1899
1899
|
type: "array",
|
|
1900
1900
|
...e,
|
|
1901
|
-
children: /* @__PURE__ */ n(
|
|
1901
|
+
children: /* @__PURE__ */ n(Ia, {
|
|
1902
1902
|
ooui: t
|
|
1903
1903
|
})
|
|
1904
1904
|
});
|
|
1905
|
-
},
|
|
1905
|
+
}, Ia = (e) => {
|
|
1906
1906
|
const {
|
|
1907
1907
|
value: t,
|
|
1908
1908
|
ooui: r,
|
|
@@ -1987,7 +1987,7 @@ const At = ({
|
|
|
1987
1987
|
S.preventDefault(), S.stopPropagation();
|
|
1988
1988
|
};
|
|
1989
1989
|
return /* @__PURE__ */ n(Rn, {
|
|
1990
|
-
color:
|
|
1990
|
+
color: zn($),
|
|
1991
1991
|
onMouseDown: F,
|
|
1992
1992
|
style: {
|
|
1993
1993
|
margin: "5px"
|
|
@@ -2017,98 +2017,98 @@ const At = ({
|
|
|
2017
2017
|
})
|
|
2018
2018
|
})
|
|
2019
2019
|
});
|
|
2020
|
-
},
|
|
2020
|
+
}, Da = (e) => {
|
|
2021
2021
|
switch (e) {
|
|
2022
2022
|
case "form":
|
|
2023
2023
|
return Yt;
|
|
2024
2024
|
case "tree":
|
|
2025
2025
|
return mn;
|
|
2026
2026
|
case "notebook":
|
|
2027
|
-
return
|
|
2027
|
+
return Tc;
|
|
2028
2028
|
case "group":
|
|
2029
2029
|
return xo;
|
|
2030
2030
|
case "label":
|
|
2031
2031
|
return cn;
|
|
2032
2032
|
case "char":
|
|
2033
|
-
return
|
|
2033
|
+
return Jr;
|
|
2034
2034
|
case "text":
|
|
2035
|
-
return
|
|
2035
|
+
return Oc;
|
|
2036
2036
|
case "button":
|
|
2037
|
-
return
|
|
2037
|
+
return Ur;
|
|
2038
2038
|
case "buttonGroup":
|
|
2039
|
-
return
|
|
2039
|
+
return Gi;
|
|
2040
2040
|
case "selection":
|
|
2041
|
-
return
|
|
2041
|
+
return Zr;
|
|
2042
2042
|
case "many2one":
|
|
2043
|
-
return
|
|
2043
|
+
return Yl;
|
|
2044
2044
|
case "boolean":
|
|
2045
|
-
return
|
|
2045
|
+
return as;
|
|
2046
2046
|
case "integer":
|
|
2047
2047
|
return Qt;
|
|
2048
2048
|
case "float":
|
|
2049
2049
|
return lo;
|
|
2050
2050
|
case "progressbar":
|
|
2051
|
-
return
|
|
2051
|
+
return Cl;
|
|
2052
2052
|
case "date":
|
|
2053
|
-
return
|
|
2053
|
+
return Lc;
|
|
2054
2054
|
case "datetime":
|
|
2055
|
-
return
|
|
2055
|
+
return Pc;
|
|
2056
2056
|
case "one2many":
|
|
2057
2057
|
case "one2many_list":
|
|
2058
2058
|
case "many2many":
|
|
2059
|
-
return
|
|
2059
|
+
return wc;
|
|
2060
2060
|
case "separator":
|
|
2061
|
-
return
|
|
2061
|
+
return Ic;
|
|
2062
2062
|
case "reference":
|
|
2063
|
-
return Nc;
|
|
2064
|
-
case "binary":
|
|
2065
2063
|
return Bc;
|
|
2064
|
+
case "binary":
|
|
2065
|
+
return Kc;
|
|
2066
2066
|
case "image":
|
|
2067
|
-
return
|
|
2067
|
+
return da;
|
|
2068
2068
|
case "url":
|
|
2069
|
-
return
|
|
2069
|
+
return Xc;
|
|
2070
2070
|
case "email":
|
|
2071
|
-
return
|
|
2071
|
+
return Qc;
|
|
2072
2072
|
case "float_time":
|
|
2073
|
-
return
|
|
2073
|
+
return xc;
|
|
2074
2074
|
case "fiber_grid":
|
|
2075
|
-
return
|
|
2075
|
+
return fa;
|
|
2076
2076
|
case "timeline":
|
|
2077
|
-
return
|
|
2077
|
+
return ya;
|
|
2078
2078
|
case "indicator":
|
|
2079
|
-
return
|
|
2079
|
+
return ba;
|
|
2080
2080
|
case "tags":
|
|
2081
|
-
return
|
|
2081
|
+
return _a;
|
|
2082
2082
|
case "tag":
|
|
2083
|
-
return
|
|
2083
|
+
return _d;
|
|
2084
2084
|
case "multicheckbox":
|
|
2085
|
-
return
|
|
2085
|
+
return Dd;
|
|
2086
2086
|
case "markdown":
|
|
2087
|
-
return
|
|
2087
|
+
return Ad;
|
|
2088
2088
|
case "radio":
|
|
2089
|
-
return
|
|
2089
|
+
return kd;
|
|
2090
2090
|
case "switch":
|
|
2091
|
-
return
|
|
2091
|
+
return Md;
|
|
2092
2092
|
case "steps":
|
|
2093
|
-
return
|
|
2093
|
+
return Nd;
|
|
2094
2094
|
case "codeeditor":
|
|
2095
|
-
return
|
|
2095
|
+
return Pd;
|
|
2096
2096
|
default:
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
2099
|
-
},
|
|
2099
|
+
}, Va = (e) => {
|
|
2100
2100
|
const {
|
|
2101
2101
|
ooui: t
|
|
2102
2102
|
} = e, {
|
|
2103
2103
|
type: r
|
|
2104
|
-
} = t, i =
|
|
2104
|
+
} = t, i = Da(r);
|
|
2105
2105
|
return i ? qe.createElement(i, e) : null;
|
|
2106
|
-
},
|
|
2106
|
+
}, Aa = ({
|
|
2107
2107
|
item: e,
|
|
2108
2108
|
responsiveBehaviour: t
|
|
2109
2109
|
}) => ({
|
|
2110
2110
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
2111
|
-
}),
|
|
2111
|
+
}), Ra = ({
|
|
2112
2112
|
row: e,
|
|
2113
2113
|
mustFillWithEmpties: t,
|
|
2114
2114
|
numberOfColumns: r
|
|
@@ -2127,24 +2127,24 @@ const At = ({
|
|
|
2127
2127
|
i.push(new It({ string: "" }));
|
|
2128
2128
|
}
|
|
2129
2129
|
}), i;
|
|
2130
|
-
},
|
|
2130
|
+
}, ka = ({
|
|
2131
2131
|
row: e,
|
|
2132
2132
|
numberOfColumns: t
|
|
2133
|
-
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)),
|
|
2134
|
-
const r = e.map((i) => i instanceof It && i.fieldForLabel || i instanceof
|
|
2133
|
+
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ea = (e, t) => {
|
|
2134
|
+
const r = e.map((i) => i instanceof It && i.fieldForLabel || i instanceof ti ? "auto" : "1fr");
|
|
2135
2135
|
if (r.length < t) {
|
|
2136
2136
|
const i = t - r.length;
|
|
2137
2137
|
for (let o = 0; o < i; o++)
|
|
2138
2138
|
r.push("1fr");
|
|
2139
2139
|
}
|
|
2140
2140
|
return r.join(" ");
|
|
2141
|
-
},
|
|
2141
|
+
}, Ma = (e, t) => {
|
|
2142
2142
|
const r = t ? "1fr" : "auto", i = "auto";
|
|
2143
2143
|
let o = "";
|
|
2144
2144
|
for (let s = 0; s < e; s++)
|
|
2145
2145
|
o += s % 2 ? r : i, s + 1 < e && (o += " ");
|
|
2146
2146
|
return o;
|
|
2147
|
-
},
|
|
2147
|
+
}, $a = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), In = (e) => {
|
|
2148
2148
|
const {
|
|
2149
2149
|
container: t,
|
|
2150
2150
|
responsiveBehaviour: r
|
|
@@ -2154,33 +2154,33 @@ const At = ({
|
|
|
2154
2154
|
let {
|
|
2155
2155
|
columns: o
|
|
2156
2156
|
} = t;
|
|
2157
|
-
const s =
|
|
2157
|
+
const s = $a(i);
|
|
2158
2158
|
s < o && (o = s);
|
|
2159
2159
|
let a = !1, l = [];
|
|
2160
2160
|
const c = i.map((f, m) => {
|
|
2161
|
-
const g = f.filter((v) => !v.invisible), h =
|
|
2161
|
+
const g = f.filter((v) => !v.invisible), h = ka({
|
|
2162
2162
|
row: g,
|
|
2163
2163
|
numberOfColumns: o
|
|
2164
2164
|
});
|
|
2165
2165
|
let p = h;
|
|
2166
|
-
return (m === 0 || !(f.length === 1 && f.some((v) => v.type === "group"))) && (p =
|
|
2166
|
+
return (m === 0 || !(f.length === 1 && f.some((v) => v.type === "group"))) && (p = Ra({
|
|
2167
2167
|
row: h,
|
|
2168
2168
|
numberOfColumns: o,
|
|
2169
2169
|
mustFillWithEmpties: r
|
|
2170
2170
|
}), l = l.concat(p)), p.map((v) => (v instanceof It && v.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2171
2171
|
style: {
|
|
2172
|
-
...
|
|
2172
|
+
...Aa({
|
|
2173
2173
|
item: v,
|
|
2174
2174
|
responsiveBehaviour: r
|
|
2175
2175
|
}),
|
|
2176
2176
|
minWidth: 0
|
|
2177
2177
|
},
|
|
2178
|
-
children:
|
|
2178
|
+
children: Va({
|
|
2179
2179
|
ooui: v,
|
|
2180
2180
|
responsiveBehaviour: r
|
|
2181
2181
|
})
|
|
2182
2182
|
}, v.key)));
|
|
2183
|
-
}), d = i.length === 1 ?
|
|
2183
|
+
}), d = i.length === 1 ? Ea(l, o) : Ma(o, a);
|
|
2184
2184
|
return /* @__PURE__ */ n("div", {
|
|
2185
2185
|
style: {
|
|
2186
2186
|
display: "grid",
|
|
@@ -2192,15 +2192,15 @@ const At = ({
|
|
|
2192
2192
|
children: c
|
|
2193
2193
|
});
|
|
2194
2194
|
}, {
|
|
2195
|
-
confirm:
|
|
2195
|
+
confirm: Na
|
|
2196
2196
|
} = Ye, Wt = ({
|
|
2197
2197
|
onOk: e,
|
|
2198
2198
|
onCancel: t,
|
|
2199
2199
|
lang: r
|
|
2200
2200
|
}) => {
|
|
2201
|
-
|
|
2201
|
+
Na({
|
|
2202
2202
|
title: _e("unsavedChanges", r),
|
|
2203
|
-
icon: /* @__PURE__ */ n(
|
|
2203
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
2204
2204
|
centered: !0,
|
|
2205
2205
|
content: _e("confirmCloseWithoutSave", r),
|
|
2206
2206
|
okText: _e("closeWithoutSaving", r),
|
|
@@ -2209,25 +2209,25 @@ const At = ({
|
|
|
2209
2209
|
cancelText: _e("cancel", r)
|
|
2210
2210
|
});
|
|
2211
2211
|
}, {
|
|
2212
|
-
error:
|
|
2213
|
-
} = Ye,
|
|
2214
|
-
|
|
2212
|
+
error: La
|
|
2213
|
+
} = Ye, gr = (e) => {
|
|
2214
|
+
La({
|
|
2215
2215
|
title: _e("formHasErrors", e),
|
|
2216
|
-
icon: /* @__PURE__ */ n(
|
|
2216
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
2217
2217
|
centered: !0,
|
|
2218
2218
|
content: _e("fillRequiredFields", e)
|
|
2219
2219
|
});
|
|
2220
2220
|
}, {
|
|
2221
|
-
warning:
|
|
2222
|
-
} = Ye,
|
|
2223
|
-
|
|
2221
|
+
warning: Pa
|
|
2222
|
+
} = Ye, Ba = (e, t, r) => {
|
|
2223
|
+
Pa({
|
|
2224
2224
|
title: e,
|
|
2225
|
-
icon: /* @__PURE__ */ n(
|
|
2225
|
+
icon: /* @__PURE__ */ n(Mr, {}),
|
|
2226
2226
|
centered: !0,
|
|
2227
2227
|
content: t,
|
|
2228
2228
|
onOk: r
|
|
2229
2229
|
});
|
|
2230
|
-
}, so = qe.createContext(null),
|
|
2230
|
+
}, so = qe.createContext(null), Ha = (e) => {
|
|
2231
2231
|
const {
|
|
2232
2232
|
children: t,
|
|
2233
2233
|
setTitle: r
|
|
@@ -2238,12 +2238,12 @@ const At = ({
|
|
|
2238
2238
|
},
|
|
2239
2239
|
children: t
|
|
2240
2240
|
});
|
|
2241
|
-
},
|
|
2242
|
-
const r =
|
|
2241
|
+
}, yr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ja = (e, t) => {
|
|
2242
|
+
const r = qa(e), i = Ga(r), o = Ua(i, t);
|
|
2243
2243
|
return [
|
|
2244
|
-
...Object.keys(o).map((l) =>
|
|
2244
|
+
...Object.keys(o).map((l) => Ka(l, o[l], t))
|
|
2245
2245
|
].reduce((l, c) => Array.isArray(c[0]) ? l.concat(c) : [...l, c], []);
|
|
2246
|
-
},
|
|
2246
|
+
}, Ka = (e, t, r) => {
|
|
2247
2247
|
var s;
|
|
2248
2248
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
2249
2249
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -2262,17 +2262,17 @@ const At = ({
|
|
|
2262
2262
|
e,
|
|
2263
2263
|
"in",
|
|
2264
2264
|
t.map(
|
|
2265
|
-
(a) =>
|
|
2265
|
+
(a) => yr(a)
|
|
2266
2266
|
)
|
|
2267
|
-
] : [e, "=",
|
|
2268
|
-
},
|
|
2267
|
+
] : [e, "=", yr(t)];
|
|
2268
|
+
}, Wa = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Ya = (e) => {
|
|
2269
2269
|
const t = { ...e };
|
|
2270
2270
|
return Object.keys(t).forEach(
|
|
2271
2271
|
(r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
|
|
2272
2272
|
), t;
|
|
2273
|
-
},
|
|
2274
|
-
const t = { ...
|
|
2275
|
-
return
|
|
2273
|
+
}, Ga = (e) => {
|
|
2274
|
+
const t = { ...Ya(e) };
|
|
2275
|
+
return Wa(e).forEach((i) => {
|
|
2276
2276
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
2277
2277
|
let c, d;
|
|
2278
2278
|
if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -2285,7 +2285,7 @@ const At = ({
|
|
|
2285
2285
|
}
|
|
2286
2286
|
t[s + "#datetime"] = [c, d];
|
|
2287
2287
|
}), t;
|
|
2288
|
-
},
|
|
2288
|
+
}, Ua = (e, t) => {
|
|
2289
2289
|
const r = Object.keys(e).filter((o) => {
|
|
2290
2290
|
const s = t.findById(o);
|
|
2291
2291
|
return s && s.type === "date";
|
|
@@ -2294,18 +2294,18 @@ const At = ({
|
|
|
2294
2294
|
return r.forEach((o) => {
|
|
2295
2295
|
delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
|
|
2296
2296
|
}), i;
|
|
2297
|
-
},
|
|
2297
|
+
}, qa = (e) => {
|
|
2298
2298
|
const t = { ...e };
|
|
2299
2299
|
return Object.keys(t).forEach(
|
|
2300
2300
|
(r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
|
|
2301
2301
|
), t;
|
|
2302
|
-
},
|
|
2302
|
+
}, za = (e) => {
|
|
2303
2303
|
const t = {};
|
|
2304
2304
|
return e.forEach((r) => {
|
|
2305
2305
|
Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
|
|
2306
2306
|
}), Object.keys(t);
|
|
2307
2307
|
}, fn = (e, t) => {
|
|
2308
|
-
const r = [...e], i =
|
|
2308
|
+
const r = [...e], i = za(e);
|
|
2309
2309
|
return t.forEach((o) => {
|
|
2310
2310
|
Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
|
|
2311
2311
|
}), r;
|
|
@@ -2507,7 +2507,7 @@ const At = ({
|
|
|
2507
2507
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
2508
2508
|
context: d
|
|
2509
2509
|
});
|
|
2510
|
-
return N([...ee(), ...ve]),
|
|
2510
|
+
return N([...ee(), ...ve]), oo(St(f), ve);
|
|
2511
2511
|
},
|
|
2512
2512
|
[f, t, d, ee, N]
|
|
2513
2513
|
);
|
|
@@ -2528,7 +2528,7 @@ const At = ({
|
|
|
2528
2528
|
colorsForResults: W,
|
|
2529
2529
|
totalItems: R
|
|
2530
2530
|
};
|
|
2531
|
-
}, Ze = qe.createContext(null),
|
|
2531
|
+
}, Ze = qe.createContext(null), Ja = (e) => {
|
|
2532
2532
|
const {
|
|
2533
2533
|
children: t,
|
|
2534
2534
|
currentView: r,
|
|
@@ -2625,7 +2625,7 @@ const At = ({
|
|
|
2625
2625
|
},
|
|
2626
2626
|
children: t
|
|
2627
2627
|
});
|
|
2628
|
-
}, st = qe.createContext(null),
|
|
2628
|
+
}, st = qe.createContext(null), Za = (e) => {
|
|
2629
2629
|
const {
|
|
2630
2630
|
children: t,
|
|
2631
2631
|
openAction: r,
|
|
@@ -2654,11 +2654,11 @@ const At = ({
|
|
|
2654
2654
|
},
|
|
2655
2655
|
children: t
|
|
2656
2656
|
});
|
|
2657
|
-
}, Rt = qe.createContext(null),
|
|
2657
|
+
}, Rt = qe.createContext(null), vr = async (e) => {
|
|
2658
2658
|
var t;
|
|
2659
2659
|
for (let r = 0; r < e.length; r++)
|
|
2660
2660
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2661
|
-
},
|
|
2661
|
+
}, Xa = (e, t) => {
|
|
2662
2662
|
const {
|
|
2663
2663
|
children: r,
|
|
2664
2664
|
globalValues: i = {}
|
|
@@ -2694,7 +2694,7 @@ const At = ({
|
|
|
2694
2694
|
ids: I
|
|
2695
2695
|
} = k || {};
|
|
2696
2696
|
let R = I || [];
|
|
2697
|
-
const B = typeof L == "string" ?
|
|
2697
|
+
const B = typeof L == "string" ? pt({
|
|
2698
2698
|
context: L,
|
|
2699
2699
|
fields: C,
|
|
2700
2700
|
values: F
|
|
@@ -2767,7 +2767,7 @@ const At = ({
|
|
|
2767
2767
|
context: F
|
|
2768
2768
|
}))[0]);
|
|
2769
2769
|
const T = {
|
|
2770
|
-
...typeof (S == null ? void 0 : S.context) == "string" ?
|
|
2770
|
+
...typeof (S == null ? void 0 : S.context) == "string" ? pt({
|
|
2771
2771
|
context: S.context,
|
|
2772
2772
|
fields: w,
|
|
2773
2773
|
values: {
|
|
@@ -2806,7 +2806,7 @@ const At = ({
|
|
|
2806
2806
|
const {
|
|
2807
2807
|
initialView: M,
|
|
2808
2808
|
views: I
|
|
2809
|
-
} = await
|
|
2809
|
+
} = await Qa({
|
|
2810
2810
|
model: S.res_model,
|
|
2811
2811
|
context: T,
|
|
2812
2812
|
view_mode: S.view_mode,
|
|
@@ -2870,7 +2870,7 @@ const At = ({
|
|
|
2870
2870
|
}), g(!0);
|
|
2871
2871
|
}
|
|
2872
2872
|
async function _() {
|
|
2873
|
-
|
|
2873
|
+
vr(u.current), u.current = [], g(!1), p({
|
|
2874
2874
|
domain: void 0,
|
|
2875
2875
|
model: void 0,
|
|
2876
2876
|
context: {},
|
|
@@ -2901,7 +2901,7 @@ const At = ({
|
|
|
2901
2901
|
visible: m,
|
|
2902
2902
|
onSubmitSucceed: _,
|
|
2903
2903
|
onCancel: () => {
|
|
2904
|
-
|
|
2904
|
+
vr(u.current), u.current = [], g(!1), p({
|
|
2905
2905
|
domain: void 0,
|
|
2906
2906
|
model: void 0,
|
|
2907
2907
|
context: {},
|
|
@@ -2918,7 +2918,7 @@ const At = ({
|
|
|
2918
2918
|
})
|
|
2919
2919
|
});
|
|
2920
2920
|
};
|
|
2921
|
-
async function
|
|
2921
|
+
async function Qa({
|
|
2922
2922
|
views: e,
|
|
2923
2923
|
view_mode: t,
|
|
2924
2924
|
model: r,
|
|
@@ -2971,7 +2971,7 @@ async function Xa({
|
|
|
2971
2971
|
initialView: a
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
const
|
|
2974
|
+
const el = gt(Xa), tl = ({
|
|
2975
2975
|
error: e,
|
|
2976
2976
|
className: t
|
|
2977
2977
|
}) => {
|
|
@@ -2983,7 +2983,7 @@ const Qa = gt(Za), el = ({
|
|
|
2983
2983
|
message: o,
|
|
2984
2984
|
type: s,
|
|
2985
2985
|
title: a
|
|
2986
|
-
} =
|
|
2986
|
+
} = qr(e);
|
|
2987
2987
|
r = /* @__PURE__ */ n(Gn, {
|
|
2988
2988
|
content: `${a}<br />${o}`
|
|
2989
2989
|
}), i = s;
|
|
@@ -2995,8 +2995,8 @@ const Qa = gt(Za), el = ({
|
|
|
2995
2995
|
type: i,
|
|
2996
2996
|
banner: !0
|
|
2997
2997
|
});
|
|
2998
|
-
},
|
|
2999
|
-
function
|
|
2998
|
+
}, nl = 800;
|
|
2999
|
+
function rl(e, t) {
|
|
3000
3000
|
const {
|
|
3001
3001
|
model: r,
|
|
3002
3002
|
id: i,
|
|
@@ -3022,7 +3022,7 @@ function nl(e, t) {
|
|
|
3022
3022
|
} = e, {
|
|
3023
3023
|
t: $,
|
|
3024
3024
|
lang: w
|
|
3025
|
-
} = K(ye), [C, F] = b(!1), [S, L] = b(), [T, k] = b(), [D] = ot.useForm(), [M, I] = b(), [R, B] = b(), j = K(so), [U, W] = b(), [z, q] = b(!1), E = me(), N = me({}), ee = me({}), le = me(!1), ce = me(!1), ne = U <
|
|
3025
|
+
} = K(ye), [C, F] = b(!1), [S, L] = b(), [T, k] = b(), [D] = ot.useForm(), [M, I] = b(), [R, B] = b(), j = K(so), [U, W] = b(), [z, q] = b(!1), E = me(), N = me({}), ee = me({}), le = me(!1), ce = me(!1), ne = U < nl, J = K(ke), {
|
|
3026
3026
|
activeId: be,
|
|
3027
3027
|
getPlainValues: Se
|
|
3028
3028
|
} = J || {}, Le = K(Ze), {
|
|
@@ -3088,7 +3088,7 @@ function nl(e, t) {
|
|
|
3088
3088
|
let te = {};
|
|
3089
3089
|
return Object.keys(G).forEach((re) => {
|
|
3090
3090
|
const De = G[re];
|
|
3091
|
-
Y[re] && Y[re].type === "many2one" && De && Array.isArray(De) && De.length === 2 ? te[re] = De[0] : Y[re] && (Y[re].type === "one2many" || Y[re].type === "many2many") && De && De.items ? te[re] = De.items.filter((
|
|
3091
|
+
Y[re] && Y[re].type === "many2one" && De && Array.isArray(De) && De.length === 2 ? te[re] = De[0] : Y[re] && (Y[re].type === "one2many" || Y[re].type === "many2many") && De && De.items ? te[re] = De.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : te[re] = De;
|
|
3092
3092
|
}), te;
|
|
3093
3093
|
}
|
|
3094
3094
|
function Xe() {
|
|
@@ -3177,7 +3177,7 @@ function nl(e, t) {
|
|
|
3177
3177
|
fields: te,
|
|
3178
3178
|
arch: re
|
|
3179
3179
|
}), V && (Y = {
|
|
3180
|
-
...
|
|
3180
|
+
...Fa(V),
|
|
3181
3181
|
...Y
|
|
3182
3182
|
}), N.current = Ct(Y, te), Ut({
|
|
3183
3183
|
values: Y,
|
|
@@ -3218,10 +3218,10 @@ function nl(e, t) {
|
|
|
3218
3218
|
reset: te,
|
|
3219
3219
|
isDefaultGet: re = !1
|
|
3220
3220
|
}) => {
|
|
3221
|
-
const
|
|
3221
|
+
const ht = {
|
|
3222
3222
|
...te ? {} : D.getFieldsValue(!0),
|
|
3223
3223
|
...G
|
|
3224
|
-
}, yn = Ct(
|
|
3224
|
+
}, yn = Ct(ht, Y), jo = Object.keys(Y).map((vn) => {
|
|
3225
3225
|
const Ko = yn[vn] !== void 0 ? yn[vn] : void 0;
|
|
3226
3226
|
return {
|
|
3227
3227
|
name: vn,
|
|
@@ -3310,7 +3310,7 @@ function nl(e, t) {
|
|
|
3310
3310
|
id: ue()
|
|
3311
3311
|
};
|
|
3312
3312
|
if (await Ke())
|
|
3313
|
-
return ce.current = !1,
|
|
3313
|
+
return ce.current = !1, gr(w), {
|
|
3314
3314
|
succeed: !1,
|
|
3315
3315
|
id: ue()
|
|
3316
3316
|
};
|
|
@@ -3336,10 +3336,10 @@ function nl(e, t) {
|
|
|
3336
3336
|
values: te
|
|
3337
3337
|
}) => {
|
|
3338
3338
|
var De;
|
|
3339
|
-
const re = new
|
|
3339
|
+
const re = new Vr(G);
|
|
3340
3340
|
re.parse(Y, {
|
|
3341
3341
|
readOnly: u,
|
|
3342
|
-
values:
|
|
3342
|
+
values: ga({
|
|
3343
3343
|
...te,
|
|
3344
3344
|
...X()
|
|
3345
3345
|
}, G)
|
|
@@ -3355,7 +3355,7 @@ function nl(e, t) {
|
|
|
3355
3355
|
fields: R
|
|
3356
3356
|
}), te = Object.keys(Y);
|
|
3357
3357
|
if (te.length !== 0) {
|
|
3358
|
-
if (
|
|
3358
|
+
if (Sa({
|
|
3359
3359
|
changedFields: te,
|
|
3360
3360
|
formOoui: T,
|
|
3361
3361
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
@@ -3366,7 +3366,7 @@ function nl(e, t) {
|
|
|
3366
3366
|
ee.current = re, c == null || c(re), oe == null || oe(!0), ko(te);
|
|
3367
3367
|
}
|
|
3368
3368
|
}
|
|
3369
|
-
}, Ro =
|
|
3369
|
+
}, Ro = la(gn, 100), ko = async (G) => {
|
|
3370
3370
|
try {
|
|
3371
3371
|
for (let Y = 0; Y < G.length; Y += 1) {
|
|
3372
3372
|
const te = G[Y];
|
|
@@ -3385,7 +3385,7 @@ function nl(e, t) {
|
|
|
3385
3385
|
});
|
|
3386
3386
|
return;
|
|
3387
3387
|
}
|
|
3388
|
-
const te =
|
|
3388
|
+
const te = Oa({
|
|
3389
3389
|
values: {
|
|
3390
3390
|
...ie(R),
|
|
3391
3391
|
context: {
|
|
@@ -3420,14 +3420,14 @@ function nl(e, t) {
|
|
|
3420
3420
|
if (re.warning && re.warning.title && re.warning.message && !le.current) {
|
|
3421
3421
|
const {
|
|
3422
3422
|
title: De,
|
|
3423
|
-
message:
|
|
3423
|
+
message: ht
|
|
3424
3424
|
} = re.warning;
|
|
3425
|
-
le.current = !0,
|
|
3425
|
+
le.current = !0, Ba(De, ht, () => {
|
|
3426
3426
|
le.current = !1;
|
|
3427
3427
|
});
|
|
3428
3428
|
}
|
|
3429
3429
|
if (re.domain && Object.keys(re.domain).length > 0) {
|
|
3430
|
-
const De =
|
|
3430
|
+
const De = Ta({
|
|
3431
3431
|
fieldsDomain: re.domain,
|
|
3432
3432
|
fields: R
|
|
3433
3433
|
});
|
|
@@ -3458,11 +3458,11 @@ function nl(e, t) {
|
|
|
3458
3458
|
se == null || se(ue(), Ee(), Xe());
|
|
3459
3459
|
else if (te.type) {
|
|
3460
3460
|
let re = {};
|
|
3461
|
-
te.context && (re =
|
|
3461
|
+
te.context && (re = pt({
|
|
3462
3462
|
context: te.context,
|
|
3463
3463
|
fields: R,
|
|
3464
3464
|
values: Ee()
|
|
3465
|
-
})), await
|
|
3465
|
+
})), await Qn({
|
|
3466
3466
|
actionData: te,
|
|
3467
3467
|
context: {
|
|
3468
3468
|
...Y,
|
|
@@ -3491,12 +3491,12 @@ function nl(e, t) {
|
|
|
3491
3491
|
ids: [parseInt(G)],
|
|
3492
3492
|
context: y
|
|
3493
3493
|
}))[0];
|
|
3494
|
-
await
|
|
3494
|
+
await Qn({
|
|
3495
3495
|
actionData: te,
|
|
3496
3496
|
context: Y
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
3499
|
-
async function
|
|
3499
|
+
async function Qn({
|
|
3500
3500
|
actionData: G,
|
|
3501
3501
|
context: Y
|
|
3502
3502
|
}) {
|
|
@@ -3532,7 +3532,7 @@ function nl(e, t) {
|
|
|
3532
3532
|
return;
|
|
3533
3533
|
}
|
|
3534
3534
|
if (await Ke()) {
|
|
3535
|
-
|
|
3535
|
+
gr(w);
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
3538
|
try {
|
|
@@ -3552,7 +3552,7 @@ function nl(e, t) {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
3554
|
const Bo = () => !T && !S ? /* @__PURE__ */ n(Re, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(Z, {
|
|
3555
|
-
children: /* @__PURE__ */ n(
|
|
3555
|
+
children: /* @__PURE__ */ n(Wi, {
|
|
3556
3556
|
getValues: Ee,
|
|
3557
3557
|
getPlainValues: at,
|
|
3558
3558
|
getFields: je,
|
|
@@ -3616,14 +3616,14 @@ function nl(e, t) {
|
|
|
3616
3616
|
}) => /* @__PURE__ */ P("div", {
|
|
3617
3617
|
className: "pb-2",
|
|
3618
3618
|
ref: G,
|
|
3619
|
-
children: [S && /* @__PURE__ */ n(
|
|
3619
|
+
children: [S && /* @__PURE__ */ n(tl, {
|
|
3620
3620
|
className: "mt-5 mb-10",
|
|
3621
3621
|
error: S
|
|
3622
3622
|
}), Bo(), a && Ho()]
|
|
3623
3623
|
})
|
|
3624
3624
|
}) : null;
|
|
3625
3625
|
}
|
|
3626
|
-
const Yt = gt(
|
|
3626
|
+
const Yt = gt(rl), Gt = (e) => {
|
|
3627
3627
|
const {
|
|
3628
3628
|
visible: t,
|
|
3629
3629
|
id: r,
|
|
@@ -3680,11 +3680,11 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3680
3680
|
children: [/* @__PURE__ */ n(ae, {
|
|
3681
3681
|
children: /* @__PURE__ */ n(Ie, {
|
|
3682
3682
|
type: m ? "primary" : "default",
|
|
3683
|
-
icon: m ? /* @__PURE__ */ n(
|
|
3683
|
+
icon: m ? /* @__PURE__ */ n(Nr, {
|
|
3684
3684
|
style: {
|
|
3685
3685
|
color: "white"
|
|
3686
3686
|
}
|
|
3687
|
-
}) : /* @__PURE__ */ n(
|
|
3687
|
+
}) : /* @__PURE__ */ n(Lr, {}),
|
|
3688
3688
|
style: {
|
|
3689
3689
|
width: 30
|
|
3690
3690
|
},
|
|
@@ -3698,7 +3698,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3698
3698
|
})]
|
|
3699
3699
|
});
|
|
3700
3700
|
}
|
|
3701
|
-
return /* @__PURE__ */ n(
|
|
3701
|
+
return /* @__PURE__ */ n(Ha, {
|
|
3702
3702
|
setTitle: f,
|
|
3703
3703
|
children: /* @__PURE__ */ n(Ye, {
|
|
3704
3704
|
title: a ? V() : u,
|
|
@@ -3718,14 +3718,14 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3718
3718
|
})
|
|
3719
3719
|
})
|
|
3720
3720
|
});
|
|
3721
|
-
},
|
|
3721
|
+
}, ol = (e) => /* @__PURE__ */ n(we, {
|
|
3722
3722
|
...e,
|
|
3723
3723
|
layout: "vertical",
|
|
3724
3724
|
children: /* @__PURE__ */ n(kn.RangePicker, {
|
|
3725
3725
|
allowEmpty: [!0, !0],
|
|
3726
3726
|
format: "DD/MM/YYYY"
|
|
3727
3727
|
})
|
|
3728
|
-
}),
|
|
3728
|
+
}), il = (e) => {
|
|
3729
3729
|
const {
|
|
3730
3730
|
ooui: t,
|
|
3731
3731
|
showLabel: r = !1
|
|
@@ -3778,7 +3778,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3778
3778
|
})]
|
|
3779
3779
|
});
|
|
3780
3780
|
}, {
|
|
3781
|
-
useToken:
|
|
3781
|
+
useToken: sl
|
|
3782
3782
|
} = Me, lo = (e) => {
|
|
3783
3783
|
const {
|
|
3784
3784
|
ooui: t
|
|
@@ -3789,7 +3789,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3789
3789
|
required: s
|
|
3790
3790
|
} = t, {
|
|
3791
3791
|
token: a
|
|
3792
|
-
} =
|
|
3792
|
+
} = sl(), l = s && !o ? {
|
|
3793
3793
|
backgroundColor: a.colorPrimaryBg
|
|
3794
3794
|
} : void 0, c = K(ke), {
|
|
3795
3795
|
elementHasLostFocus: d
|
|
@@ -3811,7 +3811,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3811
3811
|
})
|
|
3812
3812
|
});
|
|
3813
3813
|
}, {
|
|
3814
|
-
useToken:
|
|
3814
|
+
useToken: al
|
|
3815
3815
|
} = Me, Qt = (e) => {
|
|
3816
3816
|
const {
|
|
3817
3817
|
ooui: t,
|
|
@@ -3822,7 +3822,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3822
3822
|
required: s
|
|
3823
3823
|
} = t, {
|
|
3824
3824
|
token: a
|
|
3825
|
-
} =
|
|
3825
|
+
} = al(), l = s && !o ? {
|
|
3826
3826
|
backgroundColor: a.colorPrimaryBg
|
|
3827
3827
|
} : void 0, c = K(ke), {
|
|
3828
3828
|
elementHasLostFocus: d
|
|
@@ -3847,7 +3847,7 @@ const Yt = gt(nl), Gt = (e) => {
|
|
|
3847
3847
|
})
|
|
3848
3848
|
});
|
|
3849
3849
|
};
|
|
3850
|
-
function
|
|
3850
|
+
function ll(e) {
|
|
3851
3851
|
const {
|
|
3852
3852
|
ooui: t,
|
|
3853
3853
|
showLabel: r
|
|
@@ -3892,11 +3892,11 @@ function al(e) {
|
|
|
3892
3892
|
});
|
|
3893
3893
|
}
|
|
3894
3894
|
const {
|
|
3895
|
-
defaultAlgorithm:
|
|
3896
|
-
defaultSeed:
|
|
3897
|
-
} = Me,
|
|
3898
|
-
Option:
|
|
3899
|
-
} = vt,
|
|
3895
|
+
defaultAlgorithm: cl,
|
|
3896
|
+
defaultSeed: dl
|
|
3897
|
+
} = Me, ul = cl(dl), {
|
|
3898
|
+
Option: fl
|
|
3899
|
+
} = vt, ml = (e) => {
|
|
3900
3900
|
const {
|
|
3901
3901
|
ooui: t
|
|
3902
3902
|
} = e, {
|
|
@@ -3906,11 +3906,11 @@ const {
|
|
|
3906
3906
|
required: r,
|
|
3907
3907
|
type: "any",
|
|
3908
3908
|
...e,
|
|
3909
|
-
children: /* @__PURE__ */ n(
|
|
3909
|
+
children: /* @__PURE__ */ n(hl, {
|
|
3910
3910
|
...e
|
|
3911
3911
|
})
|
|
3912
3912
|
});
|
|
3913
|
-
},
|
|
3913
|
+
}, hl = (e) => {
|
|
3914
3914
|
const {
|
|
3915
3915
|
ooui: t,
|
|
3916
3916
|
onChange: r,
|
|
@@ -3924,11 +3924,11 @@ const {
|
|
|
3924
3924
|
return i ? !i.includes(m) : !0;
|
|
3925
3925
|
}).map((f) => {
|
|
3926
3926
|
const [m, g] = f;
|
|
3927
|
-
return /* @__PURE__ */ n(
|
|
3927
|
+
return /* @__PURE__ */ n(fl, {
|
|
3928
3928
|
value: g,
|
|
3929
3929
|
children: g
|
|
3930
3930
|
}, m);
|
|
3931
|
-
}), d = a && !s ?
|
|
3931
|
+
}), d = a && !s ? pl : vt;
|
|
3932
3932
|
function u(f) {
|
|
3933
3933
|
const m = f.map((g) => {
|
|
3934
3934
|
const h = l.find(([p, v]) => g === v);
|
|
@@ -3948,12 +3948,12 @@ const {
|
|
|
3948
3948
|
showArrow: !0,
|
|
3949
3949
|
children: c
|
|
3950
3950
|
});
|
|
3951
|
-
},
|
|
3951
|
+
}, pl = jt(vt)`
|
|
3952
3952
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3953
|
-
background-color: ${
|
|
3953
|
+
background-color: ${ul.colorPrimaryBg};
|
|
3954
3954
|
}
|
|
3955
3955
|
`;
|
|
3956
|
-
function
|
|
3956
|
+
function gl(e) {
|
|
3957
3957
|
const {
|
|
3958
3958
|
field: t
|
|
3959
3959
|
} = e;
|
|
@@ -3968,7 +3968,7 @@ function pl(e) {
|
|
|
3968
3968
|
string: t.label,
|
|
3969
3969
|
selection: [["true", r("true")], ["false", r("false")]]
|
|
3970
3970
|
});
|
|
3971
|
-
return /* @__PURE__ */ n(
|
|
3971
|
+
return /* @__PURE__ */ n(Zr, {
|
|
3972
3972
|
layout: "vertical",
|
|
3973
3973
|
ooui: o,
|
|
3974
3974
|
showLabel: !0
|
|
@@ -3978,30 +3978,30 @@ function pl(e) {
|
|
|
3978
3978
|
case ut.progressbar:
|
|
3979
3979
|
case ut.float_time:
|
|
3980
3980
|
case ut.integer:
|
|
3981
|
-
return /* @__PURE__ */ n(
|
|
3981
|
+
return /* @__PURE__ */ n(ll, {
|
|
3982
3982
|
ooui: t,
|
|
3983
3983
|
showLabel: !0
|
|
3984
3984
|
});
|
|
3985
3985
|
case ut.date:
|
|
3986
|
-
return /* @__PURE__ */ n(
|
|
3986
|
+
return /* @__PURE__ */ n(ol, {
|
|
3987
3987
|
ooui: t,
|
|
3988
3988
|
layout: "vertical",
|
|
3989
3989
|
showLabel: !0
|
|
3990
3990
|
});
|
|
3991
3991
|
case ut.datetime:
|
|
3992
|
-
return /* @__PURE__ */ n(
|
|
3992
|
+
return /* @__PURE__ */ n(il, {
|
|
3993
3993
|
ooui: t,
|
|
3994
3994
|
layout: "vertical",
|
|
3995
3995
|
showLabel: !0
|
|
3996
3996
|
});
|
|
3997
3997
|
case ut.selection:
|
|
3998
|
-
return /* @__PURE__ */ n(
|
|
3998
|
+
return /* @__PURE__ */ n(ml, {
|
|
3999
3999
|
layout: "vertical",
|
|
4000
4000
|
ooui: t,
|
|
4001
4001
|
showLabel: !0
|
|
4002
4002
|
});
|
|
4003
4003
|
default:
|
|
4004
|
-
return /* @__PURE__ */ n(
|
|
4004
|
+
return /* @__PURE__ */ n(Jr, {
|
|
4005
4005
|
ooui: t,
|
|
4006
4006
|
layout: "vertical",
|
|
4007
4007
|
showLabel: !0,
|
|
@@ -4009,7 +4009,7 @@ function pl(e) {
|
|
|
4009
4009
|
});
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
|
-
function
|
|
4012
|
+
function yl(e) {
|
|
4013
4013
|
const {
|
|
4014
4014
|
onAdvancedFilterToggle: t,
|
|
4015
4015
|
advancedFilter: r,
|
|
@@ -4025,7 +4025,7 @@ function gl(e) {
|
|
|
4025
4025
|
children: /* @__PURE__ */ P("a", {
|
|
4026
4026
|
className: "text-xs",
|
|
4027
4027
|
onClick: t,
|
|
4028
|
-
children: [r ? /* @__PURE__ */ n(
|
|
4028
|
+
children: [r ? /* @__PURE__ */ n(oi, {
|
|
4029
4029
|
className: "pr-1"
|
|
4030
4030
|
}) : /* @__PURE__ */ n(Dt, {
|
|
4031
4031
|
className: "pr-1"
|
|
@@ -4050,7 +4050,7 @@ function gl(e) {
|
|
|
4050
4050
|
})]
|
|
4051
4051
|
});
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function vl(e) {
|
|
4054
4054
|
const {
|
|
4055
4055
|
onLimitChange: t
|
|
4056
4056
|
} = e, {
|
|
@@ -4078,7 +4078,7 @@ function yl(e) {
|
|
|
4078
4078
|
});
|
|
4079
4079
|
}
|
|
4080
4080
|
const {
|
|
4081
|
-
useToken:
|
|
4081
|
+
useToken: wl
|
|
4082
4082
|
} = Me;
|
|
4083
4083
|
function co(e) {
|
|
4084
4084
|
const {
|
|
@@ -4101,7 +4101,7 @@ function co(e) {
|
|
|
4101
4101
|
formXml: h
|
|
4102
4102
|
} = e, [p, v] = b(), [y, V] = b(), [O, x] = b(!1), A = me(), {
|
|
4103
4103
|
token: _
|
|
4104
|
-
} =
|
|
4104
|
+
} = wl(), [$] = ot.useForm();
|
|
4105
4105
|
ge(() => {
|
|
4106
4106
|
$.setFieldsValue(m);
|
|
4107
4107
|
}, [m]);
|
|
@@ -4114,14 +4114,14 @@ function co(e) {
|
|
|
4114
4114
|
xs: 24,
|
|
4115
4115
|
className: "p-2",
|
|
4116
4116
|
xl: 6,
|
|
4117
|
-
children: /* @__PURE__ */ n(
|
|
4117
|
+
children: /* @__PURE__ */ n(gl, {
|
|
4118
4118
|
field: D
|
|
4119
4119
|
})
|
|
4120
4120
|
}, M))
|
|
4121
4121
|
}, k));
|
|
4122
4122
|
};
|
|
4123
4123
|
wt(() => {
|
|
4124
|
-
x(!1), A.current = new
|
|
4124
|
+
x(!1), A.current = new ni(r, t, h), A.current.parse(), v(A.current._simpleSearchContainer), V(A.current._advancedSearchContainer);
|
|
4125
4125
|
}, [t, r]);
|
|
4126
4126
|
const C = w(), F = (S) => {
|
|
4127
4127
|
var D;
|
|
@@ -4130,7 +4130,7 @@ function co(e) {
|
|
|
4130
4130
|
offset: T
|
|
4131
4131
|
} = S;
|
|
4132
4132
|
delete S.offset, delete S.limit;
|
|
4133
|
-
const k =
|
|
4133
|
+
const k = ja(S, (D = A.current) == null ? void 0 : D._advancedSearchContainer);
|
|
4134
4134
|
o({
|
|
4135
4135
|
params: k,
|
|
4136
4136
|
offset: T,
|
|
@@ -4163,9 +4163,9 @@ function co(e) {
|
|
|
4163
4163
|
offset: a,
|
|
4164
4164
|
limit: l
|
|
4165
4165
|
},
|
|
4166
|
-
children: [C, O && g && /* @__PURE__ */ n(
|
|
4166
|
+
children: [C, O && g && /* @__PURE__ */ n(vl, {
|
|
4167
4167
|
onLimitChange: c
|
|
4168
|
-
}), /* @__PURE__ */ n(
|
|
4168
|
+
}), /* @__PURE__ */ n(yl, {
|
|
4169
4169
|
advancedFilter: O,
|
|
4170
4170
|
onAdvancedFilterToggle: () => {
|
|
4171
4171
|
x(!O);
|
|
@@ -4187,23 +4187,23 @@ function co(e) {
|
|
|
4187
4187
|
})
|
|
4188
4188
|
});
|
|
4189
4189
|
}
|
|
4190
|
-
const
|
|
4190
|
+
const wr = (e, t = "14px -apple-system") => {
|
|
4191
4191
|
const i = document.createElement("canvas").getContext("2d");
|
|
4192
4192
|
i.font = t;
|
|
4193
4193
|
const o = i.measureText(e);
|
|
4194
4194
|
return Math.round((o.width + 80) * 1.5);
|
|
4195
|
-
},
|
|
4195
|
+
}, bl = (e, t, r = 500) => {
|
|
4196
4196
|
if (e.length === 0)
|
|
4197
4197
|
return e;
|
|
4198
4198
|
const i = e.map(
|
|
4199
4199
|
(s) => Object.assign(s, {
|
|
4200
|
-
width:
|
|
4200
|
+
width: wr(s.title)
|
|
4201
4201
|
})
|
|
4202
4202
|
);
|
|
4203
4203
|
t.map((s) => {
|
|
4204
4204
|
i.map((a, l) => {
|
|
4205
4205
|
const c = a.width, d = s[a.key] || "";
|
|
4206
|
-
let u =
|
|
4206
|
+
let u = wr(d);
|
|
4207
4207
|
u < c && (u = c), u > r && (u = r), i[l].width = u;
|
|
4208
4208
|
});
|
|
4209
4209
|
});
|
|
@@ -4214,7 +4214,7 @@ const vr = (e, t = "14px -apple-system") => {
|
|
|
4214
4214
|
tableWidth: o
|
|
4215
4215
|
};
|
|
4216
4216
|
};
|
|
4217
|
-
function
|
|
4217
|
+
function xl(e) {
|
|
4218
4218
|
if (!!e)
|
|
4219
4219
|
try {
|
|
4220
4220
|
if (e.includes(":")) {
|
|
@@ -4244,7 +4244,7 @@ function uo(e) {
|
|
|
4244
4244
|
});
|
|
4245
4245
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4246
4246
|
}
|
|
4247
|
-
const
|
|
4247
|
+
const Cl = (e) => /* @__PURE__ */ n(we, {
|
|
4248
4248
|
...e,
|
|
4249
4249
|
children: /* @__PURE__ */ n(fo, {})
|
|
4250
4250
|
}), fo = ({
|
|
@@ -4261,7 +4261,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4261
4261
|
display: "flex",
|
|
4262
4262
|
alignItems: "center"
|
|
4263
4263
|
},
|
|
4264
|
-
children: [/* @__PURE__ */ n(
|
|
4264
|
+
children: [/* @__PURE__ */ n(Sl, {
|
|
4265
4265
|
percent: e
|
|
4266
4266
|
}), /* @__PURE__ */ n("div", {
|
|
4267
4267
|
style: {
|
|
@@ -4271,7 +4271,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4271
4271
|
children: t
|
|
4272
4272
|
})]
|
|
4273
4273
|
});
|
|
4274
|
-
},
|
|
4274
|
+
}, Sl = jt(Uo)`
|
|
4275
4275
|
.ant-progress-outer {
|
|
4276
4276
|
margin-right: 0px;
|
|
4277
4277
|
padding-right: 0px;
|
|
@@ -4279,7 +4279,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4279
4279
|
.ant-progress-text {
|
|
4280
4280
|
display: none;
|
|
4281
4281
|
}
|
|
4282
|
-
`,
|
|
4282
|
+
`, br = (e) => {
|
|
4283
4283
|
const {
|
|
4284
4284
|
visible: t,
|
|
4285
4285
|
onCancel: r,
|
|
@@ -4308,7 +4308,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4308
4308
|
}))
|
|
4309
4309
|
})
|
|
4310
4310
|
});
|
|
4311
|
-
},
|
|
4311
|
+
}, Jn = (e) => {
|
|
4312
4312
|
var w, C;
|
|
4313
4313
|
const {
|
|
4314
4314
|
id: t,
|
|
@@ -4378,7 +4378,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4378
4378
|
children: h("report")
|
|
4379
4379
|
}, "print"), /* @__PURE__ */ n($e.Divider, {}), /* @__PURE__ */ n($e.ItemGroup, {
|
|
4380
4380
|
title: /* @__PURE__ */ P(Z, {
|
|
4381
|
-
children: [/* @__PURE__ */ n(
|
|
4381
|
+
children: [/* @__PURE__ */ n(Pr, {}), " ", /* @__PURE__ */ P("span", {
|
|
4382
4382
|
children: [" ", h("related")]
|
|
4383
4383
|
})]
|
|
4384
4384
|
}),
|
|
@@ -4432,7 +4432,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4432
4432
|
children: [/* @__PURE__ */ n(Bt, {
|
|
4433
4433
|
overlay: x(),
|
|
4434
4434
|
trigger: ["click"],
|
|
4435
|
-
children: /* @__PURE__ */ n(
|
|
4435
|
+
children: /* @__PURE__ */ n(ii, {
|
|
4436
4436
|
style: {
|
|
4437
4437
|
color: "rgba(0,0,0,.45)"
|
|
4438
4438
|
},
|
|
@@ -4440,31 +4440,31 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4440
4440
|
F.preventDefault(), O();
|
|
4441
4441
|
}
|
|
4442
4442
|
})
|
|
4443
|
-
}), /* @__PURE__ */ n(
|
|
4443
|
+
}), /* @__PURE__ */ n(br, {
|
|
4444
4444
|
visible: o,
|
|
4445
4445
|
items: (w = u == null ? void 0 : u.toolbar) == null ? void 0 : w.action,
|
|
4446
4446
|
onItemClicked: _,
|
|
4447
4447
|
onCancel: () => s(!1)
|
|
4448
|
-
}), /* @__PURE__ */ n(
|
|
4448
|
+
}), /* @__PURE__ */ n(br, {
|
|
4449
4449
|
visible: a,
|
|
4450
4450
|
items: (C = u == null ? void 0 : u.toolbar) == null ? void 0 : C.print,
|
|
4451
4451
|
onItemClicked: $,
|
|
4452
4452
|
onCancel: () => l(!1)
|
|
4453
4453
|
})]
|
|
4454
4454
|
});
|
|
4455
|
-
},
|
|
4455
|
+
}, Tl = (e) => {
|
|
4456
4456
|
const {
|
|
4457
4457
|
m2oField: t
|
|
4458
4458
|
} = e;
|
|
4459
4459
|
return t ? /* @__PURE__ */ P(He, {
|
|
4460
4460
|
children: [/* @__PURE__ */ n(Z, {
|
|
4461
4461
|
children: t.value
|
|
4462
|
-
}), /* @__PURE__ */ n(
|
|
4462
|
+
}), /* @__PURE__ */ n(Jn, {
|
|
4463
4463
|
id: t.id,
|
|
4464
4464
|
model: t.model
|
|
4465
4465
|
})]
|
|
4466
4466
|
}) : /* @__PURE__ */ n(Z, {});
|
|
4467
|
-
},
|
|
4467
|
+
}, Fl = (e) => {
|
|
4468
4468
|
const {
|
|
4469
4469
|
value: t,
|
|
4470
4470
|
context: r,
|
|
@@ -4493,7 +4493,7 @@ const xl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4493
4493
|
children: `${m}:`
|
|
4494
4494
|
}), /* @__PURE__ */ n(Z, {
|
|
4495
4495
|
children: o
|
|
4496
|
-
}), /* @__PURE__ */ n(
|
|
4496
|
+
}), /* @__PURE__ */ n(Jn, {
|
|
4497
4497
|
id: u,
|
|
4498
4498
|
model: c
|
|
4499
4499
|
})]
|
|
@@ -4707,8 +4707,29 @@ var mo = { exports: {} };
|
|
|
4707
4707
|
}, C.en = _[A], C.Ls = _, C.p = {}, C;
|
|
4708
4708
|
});
|
|
4709
4709
|
})(mo);
|
|
4710
|
-
const _t = mo.exports, {
|
|
4711
|
-
|
|
4710
|
+
const _t = mo.exports, Ol = (e) => {
|
|
4711
|
+
console.log("Avatar Props", e);
|
|
4712
|
+
const {
|
|
4713
|
+
ooui: t,
|
|
4714
|
+
value: r
|
|
4715
|
+
} = e;
|
|
4716
|
+
if (!r)
|
|
4717
|
+
return null;
|
|
4718
|
+
let i = r;
|
|
4719
|
+
t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (i = r[1]);
|
|
4720
|
+
const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = zn(i);
|
|
4721
|
+
return /* @__PURE__ */ n(ft, {
|
|
4722
|
+
title: i,
|
|
4723
|
+
children: /* @__PURE__ */ n(qo, {
|
|
4724
|
+
alt: i,
|
|
4725
|
+
style: {
|
|
4726
|
+
backgroundColor: s
|
|
4727
|
+
},
|
|
4728
|
+
children: o
|
|
4729
|
+
})
|
|
4730
|
+
});
|
|
4731
|
+
}, {
|
|
4732
|
+
useToken: _l
|
|
4712
4733
|
} = Me, lt = {
|
|
4713
4734
|
date: {
|
|
4714
4735
|
placeholder: "__/__/____",
|
|
@@ -4730,12 +4751,12 @@ const _t = mo.exports, {
|
|
|
4730
4751
|
return /* @__PURE__ */ n(we, {
|
|
4731
4752
|
required: i,
|
|
4732
4753
|
...e,
|
|
4733
|
-
children: /* @__PURE__ */ n(
|
|
4754
|
+
children: /* @__PURE__ */ n(Il, {
|
|
4734
4755
|
ooui: t,
|
|
4735
4756
|
showTime: r
|
|
4736
4757
|
})
|
|
4737
4758
|
});
|
|
4738
|
-
},
|
|
4759
|
+
}, Il = (e) => {
|
|
4739
4760
|
const {
|
|
4740
4761
|
value: t,
|
|
4741
4762
|
onChange: r,
|
|
@@ -4747,7 +4768,7 @@ const _t = mo.exports, {
|
|
|
4747
4768
|
required: l
|
|
4748
4769
|
} = i, {
|
|
4749
4770
|
token: c
|
|
4750
|
-
} =
|
|
4771
|
+
} = _l(), d = l && !a ? {
|
|
4751
4772
|
backgroundColor: c.colorPrimaryBg
|
|
4752
4773
|
} : void 0, u = o ? "time" : "date", f = (p) => {
|
|
4753
4774
|
r == null || r(p);
|
|
@@ -4774,7 +4795,7 @@ const _t = mo.exports, {
|
|
|
4774
4795
|
value: h,
|
|
4775
4796
|
onChange: m
|
|
4776
4797
|
});
|
|
4777
|
-
},
|
|
4798
|
+
}, Dl = (e) => /* @__PURE__ */ n("div", {
|
|
4778
4799
|
style: {
|
|
4779
4800
|
display: "flex",
|
|
4780
4801
|
justifyContent: "center",
|
|
@@ -4784,57 +4805,60 @@ const _t = mo.exports, {
|
|
|
4784
4805
|
checked: e,
|
|
4785
4806
|
disabled: !0
|
|
4786
4807
|
})
|
|
4787
|
-
}),
|
|
4808
|
+
}), Vl = (e) => /* @__PURE__ */ n(Tl, {
|
|
4788
4809
|
m2oField: e
|
|
4789
|
-
}),
|
|
4810
|
+
}), Al = (e) => /* @__PURE__ */ n(Gn, {
|
|
4790
4811
|
content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4791
|
-
}),
|
|
4812
|
+
}), Rl = (e) => {
|
|
4792
4813
|
if (!e || e && e.length === 0)
|
|
4793
4814
|
return /* @__PURE__ */ n(Z, {});
|
|
4794
4815
|
const t = _t(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4795
4816
|
return /* @__PURE__ */ n(Z, {
|
|
4796
4817
|
children: t
|
|
4797
4818
|
});
|
|
4798
|
-
},
|
|
4819
|
+
}, kl = (e) => {
|
|
4799
4820
|
if (!e || e && e.length === 0)
|
|
4800
4821
|
return /* @__PURE__ */ n(Z, {});
|
|
4801
4822
|
const t = _t(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
4802
4823
|
return /* @__PURE__ */ n(Z, {
|
|
4803
4824
|
children: t
|
|
4804
4825
|
});
|
|
4805
|
-
},
|
|
4826
|
+
}, xr = (e) => {
|
|
4806
4827
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4807
4828
|
return /* @__PURE__ */ n(Z, {
|
|
4808
4829
|
children: `( ${t} )`
|
|
4809
4830
|
});
|
|
4810
|
-
},
|
|
4831
|
+
}, El = (e) => /* @__PURE__ */ n(fo, {
|
|
4811
4832
|
value: e
|
|
4812
|
-
}),
|
|
4833
|
+
}), Ml = (e) => /* @__PURE__ */ n(Z, {
|
|
4813
4834
|
children: uo(e)
|
|
4814
|
-
}),
|
|
4835
|
+
}), Cr = (e) => /* @__PURE__ */ n("div", {
|
|
4815
4836
|
style: {
|
|
4816
4837
|
textAlign: "right"
|
|
4817
4838
|
},
|
|
4818
4839
|
children: e
|
|
4819
|
-
}),
|
|
4840
|
+
}), $l = (e) => /* @__PURE__ */ n("img", {
|
|
4820
4841
|
src: `data:image/*;base64,${e}`,
|
|
4821
4842
|
style: {
|
|
4822
4843
|
maxWidth: "50px",
|
|
4823
4844
|
padding: "5px"
|
|
4824
4845
|
}
|
|
4825
|
-
}),
|
|
4846
|
+
}), Nl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4826
4847
|
children: e ? /* @__PURE__ */ n(Rn, {
|
|
4827
4848
|
color: r.colors[e],
|
|
4828
4849
|
children: r.selectionValues.get(e)
|
|
4829
4850
|
}) : null
|
|
4830
|
-
}),
|
|
4851
|
+
}), Ll = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4831
4852
|
children: r.selectionValues.get(e)
|
|
4832
|
-
}),
|
|
4833
|
-
children: /* @__PURE__ */ n(
|
|
4853
|
+
}), Pl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
|
|
4854
|
+
children: /* @__PURE__ */ n(Fl, {
|
|
4834
4855
|
value: e,
|
|
4835
4856
|
selectionValues: r.selectionValues,
|
|
4836
4857
|
context: i
|
|
4837
4858
|
})
|
|
4859
|
+
}), Bl = (e, t, r, i) => /* @__PURE__ */ n(Ol, {
|
|
4860
|
+
ooui: r,
|
|
4861
|
+
value: e
|
|
4838
4862
|
});
|
|
4839
4863
|
function mn(e) {
|
|
4840
4864
|
const {
|
|
@@ -4864,27 +4888,28 @@ function mn(e) {
|
|
|
4864
4888
|
} = (y ? S : {}) || {};
|
|
4865
4889
|
ge(() => {
|
|
4866
4890
|
w.current = St(o);
|
|
4867
|
-
const U =
|
|
4868
|
-
boolean:
|
|
4869
|
-
many2one:
|
|
4870
|
-
text:
|
|
4871
|
-
one2many:
|
|
4872
|
-
many2many:
|
|
4873
|
-
progressbar:
|
|
4874
|
-
float_time:
|
|
4875
|
-
image:
|
|
4876
|
-
integer:
|
|
4877
|
-
float:
|
|
4878
|
-
reference:
|
|
4879
|
-
tag:
|
|
4880
|
-
selection:
|
|
4881
|
-
date:
|
|
4882
|
-
datetime:
|
|
4891
|
+
const U = ha(w.current, {
|
|
4892
|
+
boolean: Dl,
|
|
4893
|
+
many2one: Vl,
|
|
4894
|
+
text: Al,
|
|
4895
|
+
one2many: xr,
|
|
4896
|
+
many2many: xr,
|
|
4897
|
+
progressbar: El,
|
|
4898
|
+
float_time: Ml,
|
|
4899
|
+
image: $l,
|
|
4900
|
+
integer: Cr,
|
|
4901
|
+
float: Cr,
|
|
4902
|
+
reference: Pl,
|
|
4903
|
+
tag: Nl,
|
|
4904
|
+
selection: Ll,
|
|
4905
|
+
date: Rl,
|
|
4906
|
+
datetime: kl,
|
|
4907
|
+
avatar: Bl
|
|
4883
4908
|
}, V);
|
|
4884
4909
|
_(U), w.current.string && L !== w.current.string && (T == null || T(w.current.string));
|
|
4885
4910
|
}, [o]), ge(() => {
|
|
4886
4911
|
$.current = !1;
|
|
4887
|
-
const U =
|
|
4912
|
+
const U = oo(w.current, s);
|
|
4888
4913
|
x(U), F.current = r;
|
|
4889
4914
|
}, [s]);
|
|
4890
4915
|
const k = (t - 1) * F.current + 1, D = k - 1 + O.length, M = i === void 0 ? null : i === 0 ? C("no_results") : C("summary").replace("{from}", k == null ? void 0 : k.toString()).replace("{to}", D == null ? void 0 : D.toString()).replace("{total}", i == null ? void 0 : i.toString()), I = () => !d || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(Ce, {
|
|
@@ -4892,7 +4917,7 @@ function mn(e) {
|
|
|
4892
4917
|
className: "pb-4",
|
|
4893
4918
|
children: [/* @__PURE__ */ n(ae, {
|
|
4894
4919
|
span: 12,
|
|
4895
|
-
children: /* @__PURE__ */ n(
|
|
4920
|
+
children: /* @__PURE__ */ n(zo, {
|
|
4896
4921
|
total: i,
|
|
4897
4922
|
pageSize: F.current === 0 ? i : F.current,
|
|
4898
4923
|
current: t,
|
|
@@ -4924,7 +4949,7 @@ function mn(e) {
|
|
|
4924
4949
|
}
|
|
4925
4950
|
let B, j = f;
|
|
4926
4951
|
if (w.current !== null) {
|
|
4927
|
-
B =
|
|
4952
|
+
B = bl(A, O, 600);
|
|
4928
4953
|
const W = w.current;
|
|
4929
4954
|
f && W.columns.some((z) => z.sum !== void 0) && (j = f - 30);
|
|
4930
4955
|
}
|
|
@@ -4933,7 +4958,7 @@ function mn(e) {
|
|
|
4933
4958
|
padding: "2rem"
|
|
4934
4959
|
}
|
|
4935
4960
|
}) : /* @__PURE__ */ P("div", {
|
|
4936
|
-
children: [I(), /* @__PURE__ */ n(
|
|
4961
|
+
children: [I(), /* @__PURE__ */ n(Ci, {
|
|
4937
4962
|
height: j,
|
|
4938
4963
|
columns: B.columns,
|
|
4939
4964
|
dataSource: O,
|
|
@@ -4950,8 +4975,8 @@ function mn(e) {
|
|
|
4950
4975
|
onChangeSort: g,
|
|
4951
4976
|
sorter: h,
|
|
4952
4977
|
expandableOpts: p ? {
|
|
4953
|
-
expandIcon:
|
|
4954
|
-
collapseIcon:
|
|
4978
|
+
expandIcon: si,
|
|
4979
|
+
collapseIcon: ai,
|
|
4955
4980
|
loadingIcon: et,
|
|
4956
4981
|
onFetchChildrenForRecord: p,
|
|
4957
4982
|
childField: v
|
|
@@ -4959,7 +4984,7 @@ function mn(e) {
|
|
|
4959
4984
|
}), R()]
|
|
4960
4985
|
});
|
|
4961
4986
|
}
|
|
4962
|
-
function
|
|
4987
|
+
function Hl(e, t) {
|
|
4963
4988
|
const {
|
|
4964
4989
|
model: r,
|
|
4965
4990
|
formView: i,
|
|
@@ -5125,7 +5150,7 @@ function Ll(e, t) {
|
|
|
5125
5150
|
...x.fields,
|
|
5126
5151
|
..._.fields
|
|
5127
5152
|
},
|
|
5128
|
-
searchFields:
|
|
5153
|
+
searchFields: io([_.search_fields, x.search_fields]),
|
|
5129
5154
|
formXml: _.arch,
|
|
5130
5155
|
onClear: Te,
|
|
5131
5156
|
limit: Le,
|
|
@@ -5172,7 +5197,7 @@ function Ll(e, t) {
|
|
|
5172
5197
|
children: g ? /* @__PURE__ */ n(Re, {}) : ie()
|
|
5173
5198
|
});
|
|
5174
5199
|
}
|
|
5175
|
-
const po = gt(
|
|
5200
|
+
const po = gt(Hl), go = (e) => {
|
|
5176
5201
|
const {
|
|
5177
5202
|
visible: t,
|
|
5178
5203
|
onCloseModal: r,
|
|
@@ -5261,18 +5286,18 @@ const po = gt(Ll), go = (e) => {
|
|
|
5261
5286
|
})]
|
|
5262
5287
|
});
|
|
5263
5288
|
}, {
|
|
5264
|
-
error:
|
|
5289
|
+
error: jl
|
|
5265
5290
|
} = Ye, en = (e) => {
|
|
5266
|
-
|
|
5291
|
+
jl({
|
|
5267
5292
|
title: "Error",
|
|
5268
|
-
icon: /* @__PURE__ */ n(
|
|
5293
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
5269
5294
|
centered: !0,
|
|
5270
5295
|
content: e
|
|
5271
5296
|
});
|
|
5272
5297
|
}, {
|
|
5273
|
-
defaultAlgorithm:
|
|
5274
|
-
defaultSeed:
|
|
5275
|
-
} = Me, yo =
|
|
5298
|
+
defaultAlgorithm: Kl,
|
|
5299
|
+
defaultSeed: Wl
|
|
5300
|
+
} = Me, yo = Kl(Wl), Yl = (e) => {
|
|
5276
5301
|
const {
|
|
5277
5302
|
ooui: t
|
|
5278
5303
|
} = e, {
|
|
@@ -5394,7 +5419,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5394
5419
|
}),
|
|
5395
5420
|
fields: F(),
|
|
5396
5421
|
context: S()
|
|
5397
|
-
})), w && w.length > 0 && (T.current = T.current.concat(
|
|
5422
|
+
})), w && w.length > 0 && (T.current = T.current.concat(Ar({
|
|
5398
5423
|
domain: w,
|
|
5399
5424
|
widgetFieldName: c
|
|
5400
5425
|
}))), D(T.current);
|
|
@@ -5407,7 +5432,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5407
5432
|
wrap: !1,
|
|
5408
5433
|
children: [/* @__PURE__ */ n(ae, {
|
|
5409
5434
|
flex: "auto",
|
|
5410
|
-
children: /* @__PURE__ */ n(o && !a ?
|
|
5435
|
+
children: /* @__PURE__ */ n(o && !a ? Gl : Qe, {
|
|
5411
5436
|
type: "text",
|
|
5412
5437
|
value: x,
|
|
5413
5438
|
disabled: a,
|
|
@@ -5415,7 +5440,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5415
5440
|
style: u,
|
|
5416
5441
|
onBlur: j,
|
|
5417
5442
|
onKeyDown: q,
|
|
5418
|
-
suffix: /* @__PURE__ */ n(
|
|
5443
|
+
suffix: /* @__PURE__ */ n(Jn, {
|
|
5419
5444
|
id: M,
|
|
5420
5445
|
model: s,
|
|
5421
5446
|
context: {
|
|
@@ -5491,11 +5516,11 @@ const po = gt(Ll), go = (e) => {
|
|
|
5491
5516
|
readOnly: a
|
|
5492
5517
|
})]
|
|
5493
5518
|
});
|
|
5494
|
-
},
|
|
5519
|
+
}, Gl = jt(Qe)`
|
|
5495
5520
|
.ant-input {
|
|
5496
5521
|
background-color: ${yo.colorPrimaryBg};
|
|
5497
5522
|
}
|
|
5498
|
-
`, wo = qe.createContext(null),
|
|
5523
|
+
`, wo = qe.createContext(null), Ul = ({
|
|
5499
5524
|
children: e,
|
|
5500
5525
|
initialView: t
|
|
5501
5526
|
}) => {
|
|
@@ -5512,8 +5537,8 @@ const po = gt(Ll), go = (e) => {
|
|
|
5512
5537
|
children: e
|
|
5513
5538
|
});
|
|
5514
5539
|
}, {
|
|
5515
|
-
getValueForOperator:
|
|
5516
|
-
} =
|
|
5540
|
+
getValueForOperator: Sr
|
|
5541
|
+
} = Rr, tn = 0.7, nn = 30, ql = (e) => {
|
|
5517
5542
|
const {
|
|
5518
5543
|
model: t,
|
|
5519
5544
|
domain: r,
|
|
@@ -5549,7 +5574,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5549
5574
|
fieldsToRetrieve: [d],
|
|
5550
5575
|
context: i
|
|
5551
5576
|
});
|
|
5552
|
-
return
|
|
5577
|
+
return Sr({
|
|
5553
5578
|
values: j.map((U) => U[d]),
|
|
5554
5579
|
operator: u
|
|
5555
5580
|
});
|
|
@@ -5574,7 +5599,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5574
5599
|
fieldsToRetrieve: [d],
|
|
5575
5600
|
context: i
|
|
5576
5601
|
});
|
|
5577
|
-
return
|
|
5602
|
+
return Sr({
|
|
5578
5603
|
values: B.map((j) => j[d]),
|
|
5579
5604
|
operator: u
|
|
5580
5605
|
});
|
|
@@ -5655,7 +5680,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5655
5680
|
},
|
|
5656
5681
|
children: ({
|
|
5657
5682
|
measureRef: I
|
|
5658
|
-
}) => a ? /* @__PURE__ */ n(
|
|
5683
|
+
}) => a ? /* @__PURE__ */ n(Jl, {
|
|
5659
5684
|
value: h,
|
|
5660
5685
|
total: V,
|
|
5661
5686
|
percent: v,
|
|
@@ -5665,7 +5690,7 @@ const po = gt(Ll), go = (e) => {
|
|
|
5665
5690
|
color: w,
|
|
5666
5691
|
icon: F,
|
|
5667
5692
|
suffix: c
|
|
5668
|
-
}) : /* @__PURE__ */ n(
|
|
5693
|
+
}) : /* @__PURE__ */ n(zl, {
|
|
5669
5694
|
value: h,
|
|
5670
5695
|
total: V,
|
|
5671
5696
|
measureRef: I,
|
|
@@ -5681,7 +5706,7 @@ function bo(e, t) {
|
|
|
5681
5706
|
const i = document.createElement("canvas").getContext("2d");
|
|
5682
5707
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
5683
5708
|
}
|
|
5684
|
-
function
|
|
5709
|
+
function zl({
|
|
5685
5710
|
measureRef: e,
|
|
5686
5711
|
width: t,
|
|
5687
5712
|
height: r,
|
|
@@ -5724,7 +5749,7 @@ function Gl({
|
|
|
5724
5749
|
})
|
|
5725
5750
|
});
|
|
5726
5751
|
}
|
|
5727
|
-
function
|
|
5752
|
+
function Jl({
|
|
5728
5753
|
measureRef: e,
|
|
5729
5754
|
height: t,
|
|
5730
5755
|
width: r,
|
|
@@ -5798,22 +5823,22 @@ const Cn = (e) => (t) => {
|
|
|
5798
5823
|
});
|
|
5799
5824
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
5800
5825
|
}, Jt = (e) => {
|
|
5801
|
-
if (typeof e == "string" &&
|
|
5826
|
+
if (typeof e == "string" && Zl(e))
|
|
5802
5827
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
5803
5828
|
useGrouping: !0
|
|
5804
5829
|
});
|
|
5805
|
-
if (
|
|
5830
|
+
if (Xl(e))
|
|
5806
5831
|
return e.toLocaleString("es-ES", {
|
|
5807
5832
|
useGrouping: !0
|
|
5808
5833
|
});
|
|
5809
|
-
if (
|
|
5810
|
-
const t =
|
|
5834
|
+
if (Ql(e)) {
|
|
5835
|
+
const t = ec(e);
|
|
5811
5836
|
return t === null ? e : _t(e, rn.input[t]).format(
|
|
5812
5837
|
rn.output[t]
|
|
5813
5838
|
);
|
|
5814
5839
|
} else
|
|
5815
5840
|
return e;
|
|
5816
|
-
},
|
|
5841
|
+
}, Zl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Xl = (e) => typeof e == "number" && !isNaN(e), Tr = {
|
|
5817
5842
|
default: {
|
|
5818
5843
|
padding: "auto",
|
|
5819
5844
|
xAxis: {
|
|
@@ -5895,7 +5920,7 @@ const Cn = (e) => (t) => {
|
|
|
5895
5920
|
}
|
|
5896
5921
|
}
|
|
5897
5922
|
};
|
|
5898
|
-
function
|
|
5923
|
+
function Ql(e) {
|
|
5899
5924
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
5900
5925
|
}
|
|
5901
5926
|
const rn = {
|
|
@@ -5914,7 +5939,7 @@ const rn = {
|
|
|
5914
5939
|
years: "YYYY"
|
|
5915
5940
|
}
|
|
5916
5941
|
};
|
|
5917
|
-
function
|
|
5942
|
+
function ec(e) {
|
|
5918
5943
|
for (const t in rn.input)
|
|
5919
5944
|
if (_t(
|
|
5920
5945
|
e,
|
|
@@ -5925,10 +5950,10 @@ function Zl(e) {
|
|
|
5925
5950
|
return null;
|
|
5926
5951
|
}
|
|
5927
5952
|
const {
|
|
5928
|
-
processGraphData:
|
|
5929
|
-
} =
|
|
5930
|
-
getFieldsToRetrieve:
|
|
5931
|
-
} =
|
|
5953
|
+
processGraphData: tc
|
|
5954
|
+
} = Rr, {
|
|
5955
|
+
getFieldsToRetrieve: nc
|
|
5956
|
+
} = ri, rc = (e) => {
|
|
5932
5957
|
const {
|
|
5933
5958
|
model: t,
|
|
5934
5959
|
domain: r = [],
|
|
@@ -5943,7 +5968,7 @@ const {
|
|
|
5943
5968
|
d(!0), f(void 0);
|
|
5944
5969
|
const V = $n(o);
|
|
5945
5970
|
y(V.type || "line");
|
|
5946
|
-
const O =
|
|
5971
|
+
const O = nc({
|
|
5947
5972
|
ooui: V
|
|
5948
5973
|
});
|
|
5949
5974
|
let x, A;
|
|
@@ -5951,7 +5976,7 @@ const {
|
|
|
5951
5976
|
({
|
|
5952
5977
|
values: x,
|
|
5953
5978
|
fields: A
|
|
5954
|
-
} = await
|
|
5979
|
+
} = await ic({
|
|
5955
5980
|
model: t,
|
|
5956
5981
|
domain: r,
|
|
5957
5982
|
context: i,
|
|
@@ -5970,7 +5995,7 @@ const {
|
|
|
5970
5995
|
return;
|
|
5971
5996
|
}
|
|
5972
5997
|
p(x);
|
|
5973
|
-
const _ =
|
|
5998
|
+
const _ = tc({
|
|
5974
5999
|
ooui: V,
|
|
5975
6000
|
values: x,
|
|
5976
6001
|
fields: A,
|
|
@@ -5993,7 +6018,7 @@ const {
|
|
|
5993
6018
|
evaluatedEntries: h
|
|
5994
6019
|
};
|
|
5995
6020
|
};
|
|
5996
|
-
async function
|
|
6021
|
+
async function oc({
|
|
5997
6022
|
model: e,
|
|
5998
6023
|
context: t,
|
|
5999
6024
|
fields: r
|
|
@@ -6004,7 +6029,7 @@ async function tc({
|
|
|
6004
6029
|
fields: r
|
|
6005
6030
|
});
|
|
6006
6031
|
}
|
|
6007
|
-
async function
|
|
6032
|
+
async function ic({
|
|
6008
6033
|
fields: e,
|
|
6009
6034
|
model: t,
|
|
6010
6035
|
domain: r,
|
|
@@ -6013,7 +6038,7 @@ async function nc({
|
|
|
6013
6038
|
limit: s,
|
|
6014
6039
|
manualIds: a
|
|
6015
6040
|
}) {
|
|
6016
|
-
const l = await
|
|
6041
|
+
const l = await oc({
|
|
6017
6042
|
model: t,
|
|
6018
6043
|
context: i,
|
|
6019
6044
|
fields: e
|
|
@@ -6042,11 +6067,11 @@ async function nc({
|
|
|
6042
6067
|
fields: l
|
|
6043
6068
|
};
|
|
6044
6069
|
}
|
|
6045
|
-
const
|
|
6046
|
-
line:
|
|
6047
|
-
bar:
|
|
6048
|
-
pie:
|
|
6049
|
-
},
|
|
6070
|
+
const sc = {
|
|
6071
|
+
line: wi,
|
|
6072
|
+
bar: bi,
|
|
6073
|
+
pie: xi
|
|
6074
|
+
}, ac = (e) => {
|
|
6050
6075
|
var y;
|
|
6051
6076
|
const {
|
|
6052
6077
|
model: t,
|
|
@@ -6063,7 +6088,7 @@ const rc = {
|
|
|
6063
6088
|
values: u,
|
|
6064
6089
|
type: f,
|
|
6065
6090
|
evaluatedEntries: m
|
|
6066
|
-
} =
|
|
6091
|
+
} = rc({
|
|
6067
6092
|
model: t,
|
|
6068
6093
|
xml: o,
|
|
6069
6094
|
limit: s,
|
|
@@ -6089,7 +6114,7 @@ const rc = {
|
|
|
6089
6114
|
data: g,
|
|
6090
6115
|
isGroup: h,
|
|
6091
6116
|
isStack: p
|
|
6092
|
-
} = u, v =
|
|
6117
|
+
} = u, v = sc[f];
|
|
6093
6118
|
return v ? /* @__PURE__ */ P("div", {
|
|
6094
6119
|
style: {
|
|
6095
6120
|
padding: "1rem"
|
|
@@ -6102,7 +6127,7 @@ const rc = {
|
|
|
6102
6127
|
useGrouping: !0
|
|
6103
6128
|
})}`
|
|
6104
6129
|
}), /* @__PURE__ */ n(v, {
|
|
6105
|
-
...
|
|
6130
|
+
...lc({
|
|
6106
6131
|
type: f,
|
|
6107
6132
|
data: g,
|
|
6108
6133
|
isGroup: h,
|
|
@@ -6113,17 +6138,17 @@ const rc = {
|
|
|
6113
6138
|
children: `Unknown graph type: ${f}`
|
|
6114
6139
|
});
|
|
6115
6140
|
};
|
|
6116
|
-
function
|
|
6141
|
+
function lc(e) {
|
|
6117
6142
|
const {
|
|
6118
6143
|
type: t,
|
|
6119
6144
|
data: r,
|
|
6120
6145
|
isGroup: i,
|
|
6121
6146
|
isStack: o
|
|
6122
6147
|
} = e;
|
|
6123
|
-
let s =
|
|
6124
|
-
return s || (s =
|
|
6148
|
+
let s = Tr[t];
|
|
6149
|
+
return s || (s = Tr.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
|
|
6125
6150
|
}
|
|
6126
|
-
const
|
|
6151
|
+
const cc = (e, t) => {
|
|
6127
6152
|
const {
|
|
6128
6153
|
view_id: r,
|
|
6129
6154
|
model: i,
|
|
@@ -6185,7 +6210,7 @@ const sc = (e, t) => {
|
|
|
6185
6210
|
field: y.field,
|
|
6186
6211
|
operator: y.operator
|
|
6187
6212
|
} : {};
|
|
6188
|
-
return /* @__PURE__ */ n(
|
|
6213
|
+
return /* @__PURE__ */ n(ql, {
|
|
6189
6214
|
showPercent: y.showPercent,
|
|
6190
6215
|
totalDomain: y.totalDomain,
|
|
6191
6216
|
colorCondition: y.color,
|
|
@@ -6201,7 +6226,7 @@ const sc = (e, t) => {
|
|
|
6201
6226
|
case "line":
|
|
6202
6227
|
case "bar":
|
|
6203
6228
|
case "pie":
|
|
6204
|
-
return /* @__PURE__ */ n(
|
|
6229
|
+
return /* @__PURE__ */ n(ac, {
|
|
6205
6230
|
model: i,
|
|
6206
6231
|
context: o,
|
|
6207
6232
|
domain: s,
|
|
@@ -6214,15 +6239,15 @@ const sc = (e, t) => {
|
|
|
6214
6239
|
children: `Graph ${u.type} not implemented`
|
|
6215
6240
|
});
|
|
6216
6241
|
}
|
|
6217
|
-
}, hn = gt(
|
|
6218
|
-
confirm:
|
|
6219
|
-
} = Ye,
|
|
6242
|
+
}, hn = gt(cc), {
|
|
6243
|
+
confirm: dc
|
|
6244
|
+
} = Ye, uc = ({
|
|
6220
6245
|
onOk: e,
|
|
6221
6246
|
lang: t
|
|
6222
6247
|
}) => {
|
|
6223
|
-
|
|
6248
|
+
dc({
|
|
6224
6249
|
title: _e("removeItems", t),
|
|
6225
|
-
icon: /* @__PURE__ */ n(
|
|
6250
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
6226
6251
|
centered: !0,
|
|
6227
6252
|
content: _e("confirmRemove", t),
|
|
6228
6253
|
okText: _e("yesConfirmRemove", t),
|
|
@@ -6230,14 +6255,14 @@ const sc = (e, t) => {
|
|
|
6230
6255
|
cancelText: _e("cancel", t)
|
|
6231
6256
|
});
|
|
6232
6257
|
}, {
|
|
6233
|
-
confirm:
|
|
6234
|
-
} = Ye,
|
|
6258
|
+
confirm: fc
|
|
6259
|
+
} = Ye, mc = ({
|
|
6235
6260
|
onOk: e,
|
|
6236
6261
|
lang: t
|
|
6237
6262
|
}) => {
|
|
6238
|
-
|
|
6263
|
+
fc({
|
|
6239
6264
|
title: _e("unlinkItems", t),
|
|
6240
|
-
icon: /* @__PURE__ */ n(
|
|
6265
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
6241
6266
|
centered: !0,
|
|
6242
6267
|
content: _e("confirmUnlink", t),
|
|
6243
6268
|
okText: _e("yesConfirmUnlink", t),
|
|
@@ -6245,8 +6270,8 @@ const sc = (e, t) => {
|
|
|
6245
6270
|
cancelText: _e("cancel", t)
|
|
6246
6271
|
});
|
|
6247
6272
|
}, {
|
|
6248
|
-
useToken:
|
|
6249
|
-
} = Me,
|
|
6273
|
+
useToken: hc
|
|
6274
|
+
} = Me, pc = (e) => {
|
|
6250
6275
|
const {
|
|
6251
6276
|
title: t,
|
|
6252
6277
|
readOnly: r,
|
|
@@ -6265,7 +6290,7 @@ const sc = (e, t) => {
|
|
|
6265
6290
|
showToggleButton: p
|
|
6266
6291
|
} = e, {
|
|
6267
6292
|
token: v
|
|
6268
|
-
} =
|
|
6293
|
+
} = hc();
|
|
6269
6294
|
function y() {
|
|
6270
6295
|
return /* @__PURE__ */ n("div", {
|
|
6271
6296
|
className: "inline-block w-3"
|
|
@@ -6290,7 +6315,7 @@ const sc = (e, t) => {
|
|
|
6290
6315
|
function O() {
|
|
6291
6316
|
return /* @__PURE__ */ n(Ue, {
|
|
6292
6317
|
tooltip: f ? "Unlink" : "Delete",
|
|
6293
|
-
icon: f ? /* @__PURE__ */ n(
|
|
6318
|
+
icon: f ? /* @__PURE__ */ n(ci, {}) : /* @__PURE__ */ n(Kn, {}),
|
|
6294
6319
|
onClick: a,
|
|
6295
6320
|
disabled: l === 0 || r || s !== "form" && g.length === 0
|
|
6296
6321
|
});
|
|
@@ -6306,11 +6331,11 @@ const sc = (e, t) => {
|
|
|
6306
6331
|
return /* @__PURE__ */ P(Z, {
|
|
6307
6332
|
children: [y(), /* @__PURE__ */ n(Ue, {
|
|
6308
6333
|
tooltip: "Previous item",
|
|
6309
|
-
icon: /* @__PURE__ */ n(
|
|
6334
|
+
icon: /* @__PURE__ */ n(Br, {}),
|
|
6310
6335
|
onClick: d
|
|
6311
6336
|
}), x(), /* @__PURE__ */ n(Ue, {
|
|
6312
6337
|
tooltip: "Next item",
|
|
6313
|
-
icon: /* @__PURE__ */ n(
|
|
6338
|
+
icon: /* @__PURE__ */ n(Hr, {}),
|
|
6314
6339
|
onClick: u
|
|
6315
6340
|
})]
|
|
6316
6341
|
});
|
|
@@ -6331,17 +6356,17 @@ const sc = (e, t) => {
|
|
|
6331
6356
|
onClick: m
|
|
6332
6357
|
}), s !== "graph" && y(), s !== "graph" && O(), s === "form" && A(), y(), p && /* @__PURE__ */ n(Ue, {
|
|
6333
6358
|
tooltip: "Toggle view mode",
|
|
6334
|
-
icon: /* @__PURE__ */ n(
|
|
6359
|
+
icon: /* @__PURE__ */ n(li, {}),
|
|
6335
6360
|
onClick: o
|
|
6336
6361
|
})]
|
|
6337
6362
|
})]
|
|
6338
6363
|
});
|
|
6339
|
-
},
|
|
6340
|
-
form:
|
|
6341
|
-
tree:
|
|
6364
|
+
}, gc = {
|
|
6365
|
+
form: Vr,
|
|
6366
|
+
tree: Ir,
|
|
6342
6367
|
graph: hn
|
|
6343
6368
|
};
|
|
6344
|
-
function
|
|
6369
|
+
function yc(e) {
|
|
6345
6370
|
const t = e.map((i) => i.id);
|
|
6346
6371
|
return e.filter((i, o) => {
|
|
6347
6372
|
const {
|
|
@@ -6350,7 +6375,7 @@ function hc(e) {
|
|
|
6350
6375
|
return !t.includes(s, o + 1);
|
|
6351
6376
|
});
|
|
6352
6377
|
}
|
|
6353
|
-
const
|
|
6378
|
+
const vc = (e) => {
|
|
6354
6379
|
var tt;
|
|
6355
6380
|
const {
|
|
6356
6381
|
value: t,
|
|
@@ -6398,7 +6423,7 @@ const pc = (e) => {
|
|
|
6398
6423
|
var de, Oe;
|
|
6399
6424
|
r == null || r({
|
|
6400
6425
|
fields: ((de = o.get("form")) == null ? void 0 : de.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
|
|
6401
|
-
items:
|
|
6426
|
+
items: yc(X)
|
|
6402
6427
|
});
|
|
6403
6428
|
}, Le = async () => {
|
|
6404
6429
|
await fe(), c > ne.length - 1 && c !== 0 && d(0);
|
|
@@ -6438,7 +6463,7 @@ const pc = (e) => {
|
|
|
6438
6463
|
}),
|
|
6439
6464
|
fields: m(),
|
|
6440
6465
|
context: h()
|
|
6441
|
-
})), p && p.length > 0 && (R.current = R.current.concat(
|
|
6466
|
+
})), p && p.length > 0 && (R.current = R.current.concat(Ar({
|
|
6442
6467
|
domain: p,
|
|
6443
6468
|
widgetFieldName: ce
|
|
6444
6469
|
})));
|
|
@@ -6490,7 +6515,7 @@ const pc = (e) => {
|
|
|
6490
6515
|
}) : X();
|
|
6491
6516
|
}, Je = () => {
|
|
6492
6517
|
if (le) {
|
|
6493
|
-
|
|
6518
|
+
mc({
|
|
6494
6519
|
lang: v,
|
|
6495
6520
|
onOk: () => {
|
|
6496
6521
|
a === "form" ? se() : he();
|
|
@@ -6498,7 +6523,7 @@ const pc = (e) => {
|
|
|
6498
6523
|
});
|
|
6499
6524
|
return;
|
|
6500
6525
|
}
|
|
6501
|
-
|
|
6526
|
+
uc({
|
|
6502
6527
|
lang: v,
|
|
6503
6528
|
onOk: () => {
|
|
6504
6529
|
a === "form" ? se() : he();
|
|
@@ -6566,7 +6591,7 @@ const pc = (e) => {
|
|
|
6566
6591
|
}
|
|
6567
6592
|
} : xe);
|
|
6568
6593
|
else {
|
|
6569
|
-
const xe =
|
|
6594
|
+
const xe = pa(s);
|
|
6570
6595
|
ie = s.concat({
|
|
6571
6596
|
id: xe,
|
|
6572
6597
|
operation: "pendingCreate",
|
|
@@ -6626,7 +6651,7 @@ const pc = (e) => {
|
|
|
6626
6651
|
}
|
|
6627
6652
|
};
|
|
6628
6653
|
function Ee() {
|
|
6629
|
-
const X =
|
|
6654
|
+
const X = gc[a];
|
|
6630
6655
|
if (a === "graph")
|
|
6631
6656
|
return $n(o.get("graph").arch).string;
|
|
6632
6657
|
{
|
|
@@ -6717,7 +6742,7 @@ const pc = (e) => {
|
|
|
6717
6742
|
});
|
|
6718
6743
|
const Xe = M;
|
|
6719
6744
|
return x ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(Z, {
|
|
6720
|
-
children: [/* @__PURE__ */ n(
|
|
6745
|
+
children: [/* @__PURE__ */ n(pc, {
|
|
6721
6746
|
mode: a,
|
|
6722
6747
|
title: Ee(),
|
|
6723
6748
|
readOnly: q,
|
|
@@ -6768,7 +6793,7 @@ const pc = (e) => {
|
|
|
6768
6793
|
}
|
|
6769
6794
|
})]
|
|
6770
6795
|
});
|
|
6771
|
-
},
|
|
6796
|
+
}, wc = (e) => {
|
|
6772
6797
|
const {
|
|
6773
6798
|
ooui: t
|
|
6774
6799
|
} = e, {
|
|
@@ -6816,7 +6841,7 @@ const pc = (e) => {
|
|
|
6816
6841
|
message: u,
|
|
6817
6842
|
type: "error",
|
|
6818
6843
|
banner: !0
|
|
6819
|
-
}) : /* @__PURE__ */ n(
|
|
6844
|
+
}) : /* @__PURE__ */ n(Ul, {
|
|
6820
6845
|
initialView: l,
|
|
6821
6846
|
children: /* @__PURE__ */ n(we, {
|
|
6822
6847
|
required: s,
|
|
@@ -6832,15 +6857,15 @@ const pc = (e) => {
|
|
|
6832
6857
|
throw new Error();
|
|
6833
6858
|
},
|
|
6834
6859
|
...e,
|
|
6835
|
-
children: /* @__PURE__ */ n(
|
|
6860
|
+
children: /* @__PURE__ */ n(vc, {
|
|
6836
6861
|
ooui: t,
|
|
6837
6862
|
views: m
|
|
6838
6863
|
})
|
|
6839
6864
|
})
|
|
6840
6865
|
});
|
|
6841
6866
|
}, {
|
|
6842
|
-
useToken:
|
|
6843
|
-
} = Me,
|
|
6867
|
+
useToken: bc
|
|
6868
|
+
} = Me, xc = (e) => {
|
|
6844
6869
|
const {
|
|
6845
6870
|
ooui: t
|
|
6846
6871
|
} = e, {
|
|
@@ -6850,11 +6875,11 @@ const pc = (e) => {
|
|
|
6850
6875
|
required: r,
|
|
6851
6876
|
type: "number",
|
|
6852
6877
|
...e,
|
|
6853
|
-
children: /* @__PURE__ */ n(
|
|
6878
|
+
children: /* @__PURE__ */ n(Cc, {
|
|
6854
6879
|
ooui: t
|
|
6855
6880
|
})
|
|
6856
6881
|
});
|
|
6857
|
-
},
|
|
6882
|
+
}, Cc = (e) => {
|
|
6858
6883
|
const {
|
|
6859
6884
|
ooui: t,
|
|
6860
6885
|
value: r,
|
|
@@ -6865,7 +6890,7 @@ const pc = (e) => {
|
|
|
6865
6890
|
required: a
|
|
6866
6891
|
} = t, {
|
|
6867
6892
|
token: l
|
|
6868
|
-
} =
|
|
6893
|
+
} = bc(), c = a && !s ? {
|
|
6869
6894
|
backgroundColor: l.colorPrimaryBg
|
|
6870
6895
|
} : void 0, d = me(), [u, f] = b(), m = K(ke), {
|
|
6871
6896
|
elementHasLostFocus: g
|
|
@@ -6880,7 +6905,7 @@ const pc = (e) => {
|
|
|
6880
6905
|
d.current = y.target.value, f(y.target.value);
|
|
6881
6906
|
}
|
|
6882
6907
|
async function v() {
|
|
6883
|
-
h(
|
|
6908
|
+
h(xl(u)), await new Promise((y) => setTimeout(y, 300)), g == null || g();
|
|
6884
6909
|
}
|
|
6885
6910
|
return /* @__PURE__ */ n(Qe, {
|
|
6886
6911
|
value: u,
|
|
@@ -6900,7 +6925,7 @@ function xo(e) {
|
|
|
6900
6925
|
responsiveBehaviour: i
|
|
6901
6926
|
} = e, o = it(t.icon || "");
|
|
6902
6927
|
return /* @__PURE__ */ n(Z, {
|
|
6903
|
-
children: (t.label || o) && r ? /* @__PURE__ */ n(
|
|
6928
|
+
children: (t.label || o) && r ? /* @__PURE__ */ n(Fi, {
|
|
6904
6929
|
label: t.label,
|
|
6905
6930
|
icon: o,
|
|
6906
6931
|
children: /* @__PURE__ */ n(In, {
|
|
@@ -6914,9 +6939,9 @@ function xo(e) {
|
|
|
6914
6939
|
});
|
|
6915
6940
|
}
|
|
6916
6941
|
const {
|
|
6917
|
-
TabPane:
|
|
6918
|
-
} =
|
|
6919
|
-
function
|
|
6942
|
+
TabPane: Sc
|
|
6943
|
+
} = _r;
|
|
6944
|
+
function Tc(e) {
|
|
6920
6945
|
const {
|
|
6921
6946
|
ooui: t,
|
|
6922
6947
|
responsiveBehaviour: r
|
|
@@ -6927,10 +6952,10 @@ function xc(e) {
|
|
|
6927
6952
|
return a && /* @__PURE__ */ n(a, {});
|
|
6928
6953
|
}
|
|
6929
6954
|
}
|
|
6930
|
-
return /* @__PURE__ */ n(
|
|
6955
|
+
return /* @__PURE__ */ n(_r, {
|
|
6931
6956
|
defaultActiveKey: "1",
|
|
6932
6957
|
tabPosition: t.tabPosition,
|
|
6933
|
-
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
6958
|
+
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Sc, {
|
|
6934
6959
|
tab: /* @__PURE__ */ P(Z, {
|
|
6935
6960
|
children: [o(s.icon), " ", s.label]
|
|
6936
6961
|
}),
|
|
@@ -6943,10 +6968,10 @@ function xc(e) {
|
|
|
6943
6968
|
});
|
|
6944
6969
|
}
|
|
6945
6970
|
const {
|
|
6946
|
-
useToken:
|
|
6971
|
+
useToken: Fc
|
|
6947
6972
|
} = Me, {
|
|
6948
6973
|
TextArea: Dn
|
|
6949
|
-
} = Qe,
|
|
6974
|
+
} = Qe, Oc = (e) => {
|
|
6950
6975
|
const {
|
|
6951
6976
|
ooui: t
|
|
6952
6977
|
} = e, {
|
|
@@ -6957,7 +6982,7 @@ const {
|
|
|
6957
6982
|
translatable: a
|
|
6958
6983
|
} = t, {
|
|
6959
6984
|
token: l
|
|
6960
|
-
} =
|
|
6985
|
+
} = Fc(), c = o && !i ? {
|
|
6961
6986
|
backgroundColor: l.colorPrimaryBg
|
|
6962
6987
|
} : void 0, d = K(ke), {
|
|
6963
6988
|
elementHasLostFocus: u
|
|
@@ -6965,7 +6990,7 @@ const {
|
|
|
6965
6990
|
return /* @__PURE__ */ n(we, {
|
|
6966
6991
|
required: o,
|
|
6967
6992
|
...e,
|
|
6968
|
-
children: a ? /* @__PURE__ */ n(
|
|
6993
|
+
children: a ? /* @__PURE__ */ n(_c, {
|
|
6969
6994
|
field: r,
|
|
6970
6995
|
height: s,
|
|
6971
6996
|
requiredStyle: c
|
|
@@ -6979,7 +7004,7 @@ const {
|
|
|
6979
7004
|
onBlur: u
|
|
6980
7005
|
})
|
|
6981
7006
|
});
|
|
6982
|
-
},
|
|
7007
|
+
}, _c = ({
|
|
6983
7008
|
value: e,
|
|
6984
7009
|
field: t,
|
|
6985
7010
|
requiredStyle: r,
|
|
@@ -7019,7 +7044,7 @@ const {
|
|
|
7019
7044
|
rows: 4,
|
|
7020
7045
|
onBlur: u
|
|
7021
7046
|
})
|
|
7022
|
-
}), /* @__PURE__ */ n(
|
|
7047
|
+
}), /* @__PURE__ */ n(zr, {
|
|
7023
7048
|
id: a,
|
|
7024
7049
|
model: l,
|
|
7025
7050
|
field: t,
|
|
@@ -7055,7 +7080,7 @@ const {
|
|
|
7055
7080
|
},
|
|
7056
7081
|
children: /* @__PURE__ */ n(Ue, {
|
|
7057
7082
|
tooltip: g("translate"),
|
|
7058
|
-
icon: /* @__PURE__ */ n(
|
|
7083
|
+
icon: /* @__PURE__ */ n($r, {}),
|
|
7059
7084
|
onClick: async () => {
|
|
7060
7085
|
d != null && d() ? ct(g("saveBeforeTranslate")) : ct(g("enterTextBeforeTranslate"));
|
|
7061
7086
|
},
|
|
@@ -7063,7 +7088,7 @@ const {
|
|
|
7063
7088
|
})
|
|
7064
7089
|
})]
|
|
7065
7090
|
});
|
|
7066
|
-
},
|
|
7091
|
+
}, Ic = (e) => {
|
|
7067
7092
|
const {
|
|
7068
7093
|
ooui: t
|
|
7069
7094
|
} = e, {
|
|
@@ -7077,7 +7102,7 @@ const {
|
|
|
7077
7102
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7078
7103
|
})
|
|
7079
7104
|
});
|
|
7080
|
-
},
|
|
7105
|
+
}, Dc = ({
|
|
7081
7106
|
model: e,
|
|
7082
7107
|
context: t,
|
|
7083
7108
|
locale: r,
|
|
@@ -7098,7 +7123,7 @@ const {
|
|
|
7098
7123
|
]);
|
|
7099
7124
|
const { datas: V } = await H.getHandler().exportData({
|
|
7100
7125
|
model: e,
|
|
7101
|
-
fields:
|
|
7126
|
+
fields: Mc({
|
|
7102
7127
|
keys: v.selectedKeys,
|
|
7103
7128
|
fields: l.current
|
|
7104
7129
|
}),
|
|
@@ -7118,7 +7143,7 @@ const {
|
|
|
7118
7143
|
context: t,
|
|
7119
7144
|
fields: []
|
|
7120
7145
|
});
|
|
7121
|
-
return l.current["/"] = v,
|
|
7146
|
+
return l.current["/"] = v, Fr({ fields: v });
|
|
7122
7147
|
}, [e, t, l]), f = Ae(
|
|
7123
7148
|
async (v) => {
|
|
7124
7149
|
const V = An(v, l.current)[Vn(v)], O = V.relation, x = await H.getHandler().getFields({
|
|
@@ -7127,18 +7152,18 @@ const {
|
|
|
7127
7152
|
fields: []
|
|
7128
7153
|
});
|
|
7129
7154
|
for (const [A, _] of Object.entries(x))
|
|
7130
|
-
x[A].string =
|
|
7155
|
+
x[A].string = Ac({
|
|
7131
7156
|
parentTitle: V.string,
|
|
7132
7157
|
title: _.string
|
|
7133
7158
|
});
|
|
7134
|
-
return l.current[v] = x,
|
|
7159
|
+
return l.current[v] = x, Fr({
|
|
7135
7160
|
fields: x,
|
|
7136
7161
|
parentKey: v
|
|
7137
7162
|
});
|
|
7138
7163
|
},
|
|
7139
7164
|
[l.current, e, t]
|
|
7140
7165
|
), m = Ae(async () => {
|
|
7141
|
-
const v = await
|
|
7166
|
+
const v = await Rc({ model: e, context: t }), y = await Ec({
|
|
7142
7167
|
predefinedExports: v,
|
|
7143
7168
|
fields: l.current,
|
|
7144
7169
|
onGetFieldChilds: f
|
|
@@ -7209,7 +7234,7 @@ const {
|
|
|
7209
7234
|
onSavePredefinedExport: g,
|
|
7210
7235
|
onRemovePredefinedExport: h
|
|
7211
7236
|
};
|
|
7212
|
-
},
|
|
7237
|
+
}, Fr = ({
|
|
7213
7238
|
fields: e,
|
|
7214
7239
|
parentKey: t
|
|
7215
7240
|
}) => {
|
|
@@ -7220,7 +7245,7 @@ const {
|
|
|
7220
7245
|
continue;
|
|
7221
7246
|
const s = Co(o);
|
|
7222
7247
|
r.push({
|
|
7223
|
-
key:
|
|
7248
|
+
key: Vc({ key: i, parentKey: t }),
|
|
7224
7249
|
title: o.string,
|
|
7225
7250
|
tooltip: o.help,
|
|
7226
7251
|
required: o.required,
|
|
@@ -7228,7 +7253,7 @@ const {
|
|
|
7228
7253
|
});
|
|
7229
7254
|
}
|
|
7230
7255
|
return r;
|
|
7231
|
-
}, Co = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
7256
|
+
}, Co = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Vc = ({
|
|
7232
7257
|
parentKey: e,
|
|
7233
7258
|
key: t
|
|
7234
7259
|
}) => `${e ? e + "/" : ""}${t}`, $t = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Vn = (e) => {
|
|
@@ -7236,10 +7261,10 @@ const {
|
|
|
7236
7261
|
return e;
|
|
7237
7262
|
const t = e.split("/");
|
|
7238
7263
|
return t[t.length - 1];
|
|
7239
|
-
}, An = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)],
|
|
7264
|
+
}, An = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)], Ac = ({
|
|
7240
7265
|
title: e,
|
|
7241
7266
|
parentTitle: t
|
|
7242
|
-
}) => `${t ? t + " \u2192 " : ""}${e}`,
|
|
7267
|
+
}) => `${t ? t + " \u2192 " : ""}${e}`, Rc = async ({
|
|
7243
7268
|
model: e,
|
|
7244
7269
|
context: t
|
|
7245
7270
|
}) => {
|
|
@@ -7259,10 +7284,10 @@ const {
|
|
|
7259
7284
|
key: o.find((c) => c.id === a).name
|
|
7260
7285
|
}))
|
|
7261
7286
|
}));
|
|
7262
|
-
},
|
|
7287
|
+
}, kc = ({
|
|
7263
7288
|
fields: e,
|
|
7264
7289
|
keys: t
|
|
7265
|
-
}) =>
|
|
7290
|
+
}) => $c([
|
|
7266
7291
|
...new Set(
|
|
7267
7292
|
t.filter((r) => {
|
|
7268
7293
|
var i, o, s;
|
|
@@ -7276,27 +7301,27 @@ const {
|
|
|
7276
7301
|
}
|
|
7277
7302
|
}).map((r) => $t(r))
|
|
7278
7303
|
)
|
|
7279
|
-
]),
|
|
7304
|
+
]), Ec = async ({
|
|
7280
7305
|
predefinedExports: e,
|
|
7281
7306
|
fields: t,
|
|
7282
7307
|
onGetFieldChilds: r
|
|
7283
7308
|
}) => {
|
|
7284
7309
|
const i = e.flatMap(
|
|
7285
7310
|
(a) => a.fields.map((l) => l.key)
|
|
7286
|
-
), o =
|
|
7311
|
+
), o = kc({
|
|
7287
7312
|
fields: t,
|
|
7288
7313
|
keys: i
|
|
7289
7314
|
}), s = [];
|
|
7290
7315
|
for (const a of o)
|
|
7291
7316
|
s.push({ key: a, childs: await r(a) });
|
|
7292
7317
|
return s;
|
|
7293
|
-
},
|
|
7318
|
+
}, Mc = ({
|
|
7294
7319
|
keys: e,
|
|
7295
7320
|
fields: t
|
|
7296
7321
|
}) => e.map((r) => {
|
|
7297
7322
|
const i = Vn(r), s = An(r, t)[i];
|
|
7298
7323
|
return Co(s) ? `${r}/id` : r;
|
|
7299
|
-
}),
|
|
7324
|
+
}), $c = (e) => {
|
|
7300
7325
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
7301
7326
|
for (const i of e) {
|
|
7302
7327
|
const o = i.split("/");
|
|
@@ -7310,7 +7335,7 @@ const {
|
|
|
7310
7335
|
const s = i.split("/").length, a = o.split("/").length;
|
|
7311
7336
|
return s - a;
|
|
7312
7337
|
}), r;
|
|
7313
|
-
},
|
|
7338
|
+
}, Nc = (e) => {
|
|
7314
7339
|
const {
|
|
7315
7340
|
visible: t,
|
|
7316
7341
|
locale: r,
|
|
@@ -7329,7 +7354,7 @@ const {
|
|
|
7329
7354
|
onGetPredefinedExports: h,
|
|
7330
7355
|
onSavePredefinedExport: p,
|
|
7331
7356
|
onRemovePredefinedExport: v
|
|
7332
|
-
} =
|
|
7357
|
+
} = Dc({
|
|
7333
7358
|
model: o,
|
|
7334
7359
|
context: s,
|
|
7335
7360
|
domain: c,
|
|
@@ -7338,7 +7363,7 @@ const {
|
|
|
7338
7363
|
onClose: i,
|
|
7339
7364
|
locale: r
|
|
7340
7365
|
});
|
|
7341
|
-
return /* @__PURE__ */ n(
|
|
7366
|
+
return /* @__PURE__ */ n(Oi, {
|
|
7342
7367
|
visible: t,
|
|
7343
7368
|
locale: r,
|
|
7344
7369
|
onSucceed: f,
|
|
@@ -7352,14 +7377,14 @@ const {
|
|
|
7352
7377
|
onSavePredefinedExport: p,
|
|
7353
7378
|
onRemovePredefinedExport: v
|
|
7354
7379
|
});
|
|
7355
|
-
},
|
|
7380
|
+
}, Lc = (e) => {
|
|
7356
7381
|
const {
|
|
7357
7382
|
ooui: t
|
|
7358
7383
|
} = e;
|
|
7359
7384
|
return /* @__PURE__ */ n(ho, {
|
|
7360
7385
|
ooui: t
|
|
7361
7386
|
});
|
|
7362
|
-
},
|
|
7387
|
+
}, Pc = (e) => {
|
|
7363
7388
|
const {
|
|
7364
7389
|
ooui: t
|
|
7365
7390
|
} = e;
|
|
@@ -7367,7 +7392,7 @@ const {
|
|
|
7367
7392
|
ooui: t,
|
|
7368
7393
|
showTime: !0
|
|
7369
7394
|
});
|
|
7370
|
-
},
|
|
7395
|
+
}, Bc = (e) => {
|
|
7371
7396
|
const {
|
|
7372
7397
|
ooui: t
|
|
7373
7398
|
} = e, {
|
|
@@ -7376,11 +7401,11 @@ const {
|
|
|
7376
7401
|
return /* @__PURE__ */ n(we, {
|
|
7377
7402
|
required: r,
|
|
7378
7403
|
...e,
|
|
7379
|
-
children: /* @__PURE__ */ n(
|
|
7404
|
+
children: /* @__PURE__ */ n(Hc, {
|
|
7380
7405
|
ooui: t
|
|
7381
7406
|
})
|
|
7382
7407
|
});
|
|
7383
|
-
},
|
|
7408
|
+
}, Hc = (e) => {
|
|
7384
7409
|
const {
|
|
7385
7410
|
value: t,
|
|
7386
7411
|
onChange: r,
|
|
@@ -7402,7 +7427,7 @@ const {
|
|
|
7402
7427
|
wrap: !1,
|
|
7403
7428
|
children: [/* @__PURE__ */ n(ae, {
|
|
7404
7429
|
flex: "1",
|
|
7405
|
-
children: /* @__PURE__ */ n(
|
|
7430
|
+
children: /* @__PURE__ */ n(Xr, {
|
|
7406
7431
|
ooui: new Mn({
|
|
7407
7432
|
name: "model_selection",
|
|
7408
7433
|
selection: s,
|
|
@@ -7421,7 +7446,7 @@ const {
|
|
|
7421
7446
|
}), /* @__PURE__ */ n(ae, {
|
|
7422
7447
|
flex: "3",
|
|
7423
7448
|
children: /* @__PURE__ */ n(vo, {
|
|
7424
|
-
ooui: new
|
|
7449
|
+
ooui: new Dr({
|
|
7425
7450
|
name: "object_value",
|
|
7426
7451
|
relation: u,
|
|
7427
7452
|
readOnly: a,
|
|
@@ -7437,8 +7462,8 @@ const {
|
|
|
7437
7462
|
})]
|
|
7438
7463
|
});
|
|
7439
7464
|
}, {
|
|
7440
|
-
useToken:
|
|
7441
|
-
} = Me,
|
|
7465
|
+
useToken: jc
|
|
7466
|
+
} = Me, Kc = (e) => {
|
|
7442
7467
|
const {
|
|
7443
7468
|
ooui: t
|
|
7444
7469
|
} = e, {
|
|
@@ -7447,11 +7472,11 @@ const {
|
|
|
7447
7472
|
return /* @__PURE__ */ n(we, {
|
|
7448
7473
|
required: r,
|
|
7449
7474
|
...e,
|
|
7450
|
-
children: /* @__PURE__ */ n(
|
|
7475
|
+
children: /* @__PURE__ */ n(Wc, {
|
|
7451
7476
|
ooui: t
|
|
7452
7477
|
})
|
|
7453
7478
|
});
|
|
7454
|
-
},
|
|
7479
|
+
}, Wc = (e) => {
|
|
7455
7480
|
const {
|
|
7456
7481
|
ooui: t,
|
|
7457
7482
|
value: r,
|
|
@@ -7462,14 +7487,14 @@ const {
|
|
|
7462
7487
|
filenameField: a
|
|
7463
7488
|
} = t, {
|
|
7464
7489
|
token: l
|
|
7465
|
-
} =
|
|
7490
|
+
} = jc(), c = s && !o ? {
|
|
7466
7491
|
backgroundColor: l.colorPrimaryBg
|
|
7467
7492
|
} : void 0, d = me(null), {
|
|
7468
7493
|
setFieldValue: u,
|
|
7469
7494
|
getFieldValue: f
|
|
7470
7495
|
} = K(ke) || {}, {
|
|
7471
7496
|
t: m
|
|
7472
|
-
} = K(ye), g = r ?
|
|
7497
|
+
} = K(ye), g = r ? ca(r) : "", h = (O) => {
|
|
7473
7498
|
i == null || i(O);
|
|
7474
7499
|
};
|
|
7475
7500
|
async function p() {
|
|
@@ -7482,7 +7507,7 @@ const {
|
|
|
7482
7507
|
}
|
|
7483
7508
|
async function y(O) {
|
|
7484
7509
|
O.stopPropagation(), O.preventDefault();
|
|
7485
|
-
const x = O.target.files[0], A = await
|
|
7510
|
+
const x = O.target.files[0], A = await ro(x);
|
|
7486
7511
|
h(A), a && u(a, x.name);
|
|
7487
7512
|
}
|
|
7488
7513
|
function V() {
|
|
@@ -7518,7 +7543,7 @@ const {
|
|
|
7518
7543
|
},
|
|
7519
7544
|
children: "Select"
|
|
7520
7545
|
}), /* @__PURE__ */ n(Ie, {
|
|
7521
|
-
icon: /* @__PURE__ */ n(
|
|
7546
|
+
icon: /* @__PURE__ */ n(di, {}),
|
|
7522
7547
|
disabled: !r,
|
|
7523
7548
|
onClick: v,
|
|
7524
7549
|
children: m("open")
|
|
@@ -7539,13 +7564,13 @@ const {
|
|
|
7539
7564
|
}, Sn = {
|
|
7540
7565
|
tree: /* @__PURE__ */ n(Wn, {}),
|
|
7541
7566
|
form: /* @__PURE__ */ n(Lt, {}),
|
|
7542
|
-
graph: /* @__PURE__ */ n(
|
|
7543
|
-
calendar: /* @__PURE__ */ n(
|
|
7567
|
+
graph: /* @__PURE__ */ n(ui, {}),
|
|
7568
|
+
calendar: /* @__PURE__ */ n(fi, {})
|
|
7544
7569
|
};
|
|
7545
|
-
function
|
|
7570
|
+
function Or(e) {
|
|
7546
7571
|
return e ? (Sn == null ? void 0 : Sn[e.type]) || /* @__PURE__ */ n(Lt, {}) : /* @__PURE__ */ n(Lt, {});
|
|
7547
7572
|
}
|
|
7548
|
-
function
|
|
7573
|
+
function Zn(e) {
|
|
7549
7574
|
const {
|
|
7550
7575
|
currentView: t,
|
|
7551
7576
|
availableViews: r,
|
|
@@ -7566,7 +7591,7 @@ function Jn(e) {
|
|
|
7566
7591
|
style: {
|
|
7567
7592
|
paddingRight: 20
|
|
7568
7593
|
},
|
|
7569
|
-
children:
|
|
7594
|
+
children: Or(g)
|
|
7570
7595
|
}), /* @__PURE__ */ n(ae, {
|
|
7571
7596
|
flex: "auto",
|
|
7572
7597
|
style: {
|
|
@@ -7615,7 +7640,7 @@ function Jn(e) {
|
|
|
7615
7640
|
},
|
|
7616
7641
|
children: [/* @__PURE__ */ n(Ue, {
|
|
7617
7642
|
tooltip: a ? l("viewAs") + " " + l(a.type) : "",
|
|
7618
|
-
icon:
|
|
7643
|
+
icon: Or(a),
|
|
7619
7644
|
style: {
|
|
7620
7645
|
width: 50,
|
|
7621
7646
|
borderTopRightRadius: 0,
|
|
@@ -7726,15 +7751,15 @@ function So(e) {
|
|
|
7726
7751
|
});
|
|
7727
7752
|
}
|
|
7728
7753
|
const {
|
|
7729
|
-
confirm:
|
|
7730
|
-
} = Ye,
|
|
7754
|
+
confirm: Yc
|
|
7755
|
+
} = Ye, Gc = ({
|
|
7731
7756
|
onOk: e,
|
|
7732
7757
|
onCancel: t,
|
|
7733
7758
|
lang: r
|
|
7734
7759
|
}) => {
|
|
7735
|
-
|
|
7760
|
+
Yc({
|
|
7736
7761
|
title: _e("unsavedChanges", r),
|
|
7737
|
-
icon: /* @__PURE__ */ n(
|
|
7762
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
7738
7763
|
centered: !0,
|
|
7739
7764
|
content: _e("confirmRefreshWithoutSave", r),
|
|
7740
7765
|
okText: _e("discardAndRefresh", r),
|
|
@@ -7758,7 +7783,7 @@ async function To(e, t, r) {
|
|
|
7758
7783
|
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + c[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
7759
7784
|
}));
|
|
7760
7785
|
}
|
|
7761
|
-
const
|
|
7786
|
+
const Uc = (e) => {
|
|
7762
7787
|
const {
|
|
7763
7788
|
numberOfAttachments: t,
|
|
7764
7789
|
disabled: r
|
|
@@ -7767,22 +7792,22 @@ const Wc = (e) => {
|
|
|
7767
7792
|
lang: o
|
|
7768
7793
|
} = K(ye), [s, a] = b(!1), l = /* @__PURE__ */ P(Ie, {
|
|
7769
7794
|
disabled: r,
|
|
7770
|
-
children: [/* @__PURE__ */ n(
|
|
7795
|
+
children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(Dt, {
|
|
7771
7796
|
style: {
|
|
7772
7797
|
fontSize: 12
|
|
7773
7798
|
}
|
|
7774
7799
|
})]
|
|
7775
7800
|
});
|
|
7776
|
-
return r ? l : /* @__PURE__ */ n(
|
|
7801
|
+
return r ? l : /* @__PURE__ */ n(Jo, {
|
|
7777
7802
|
onVisibleChange: (c) => a(c),
|
|
7778
7803
|
visible: s,
|
|
7779
7804
|
placement: "bottom",
|
|
7780
|
-
content:
|
|
7805
|
+
content: qc(e, a, o),
|
|
7781
7806
|
title: i("attachments"),
|
|
7782
7807
|
arrowContent: null,
|
|
7783
7808
|
children: l
|
|
7784
7809
|
});
|
|
7785
|
-
},
|
|
7810
|
+
}, qc = (e, t, r) => {
|
|
7786
7811
|
const {
|
|
7787
7812
|
attachments: i = [],
|
|
7788
7813
|
loading: o,
|
|
@@ -7819,7 +7844,7 @@ const Wc = (e) => {
|
|
|
7819
7844
|
children: [/* @__PURE__ */ n("li", {
|
|
7820
7845
|
className: "ant-dropdown-menu-item-divider"
|
|
7821
7846
|
}), i.map((d) => {
|
|
7822
|
-
const u = d.link ?
|
|
7847
|
+
const u = d.link ? jr : Ln;
|
|
7823
7848
|
return /* @__PURE__ */ P(Ce, {
|
|
7824
7849
|
style: {
|
|
7825
7850
|
paddingTop: 4,
|
|
@@ -7835,7 +7860,7 @@ const Wc = (e) => {
|
|
|
7835
7860
|
style: {
|
|
7836
7861
|
textAlign: "center"
|
|
7837
7862
|
},
|
|
7838
|
-
children: (d.datas_fname || d.link) && /* @__PURE__ */ n(
|
|
7863
|
+
children: (d.datas_fname || d.link) && /* @__PURE__ */ n(ft, {
|
|
7839
7864
|
title: d.link ? _e("openAttachmentLink", r) : _e("download", r),
|
|
7840
7865
|
children: /* @__PURE__ */ n(u, {
|
|
7841
7866
|
style: {
|
|
@@ -7851,7 +7876,7 @@ const Wc = (e) => {
|
|
|
7851
7876
|
style: {
|
|
7852
7877
|
textAlign: "center"
|
|
7853
7878
|
},
|
|
7854
|
-
children: /* @__PURE__ */ n(
|
|
7879
|
+
children: /* @__PURE__ */ n(ft, {
|
|
7855
7880
|
title: _e("openAttachment", r),
|
|
7856
7881
|
children: /* @__PURE__ */ n(Lt, {
|
|
7857
7882
|
style: {
|
|
@@ -7868,7 +7893,7 @@ const Wc = (e) => {
|
|
|
7868
7893
|
})]
|
|
7869
7894
|
});
|
|
7870
7895
|
};
|
|
7871
|
-
function
|
|
7896
|
+
function zc(e) {
|
|
7872
7897
|
const {
|
|
7873
7898
|
attachments: t,
|
|
7874
7899
|
disabled: r = !1,
|
|
@@ -7926,7 +7951,7 @@ function Gc(e) {
|
|
|
7926
7951
|
return ge(() => {
|
|
7927
7952
|
h();
|
|
7928
7953
|
}, [h]), /* @__PURE__ */ P(Z, {
|
|
7929
|
-
children: [/* @__PURE__ */ n(
|
|
7954
|
+
children: [/* @__PURE__ */ n(Uc, {
|
|
7930
7955
|
numberOfAttachments: t.length,
|
|
7931
7956
|
attachments: d,
|
|
7932
7957
|
disabled: r,
|
|
@@ -7946,7 +7971,7 @@ function Gc(e) {
|
|
|
7946
7971
|
})]
|
|
7947
7972
|
});
|
|
7948
7973
|
}
|
|
7949
|
-
function
|
|
7974
|
+
function Jc({
|
|
7950
7975
|
toolbar: e
|
|
7951
7976
|
}) {
|
|
7952
7977
|
const {
|
|
@@ -7985,7 +8010,7 @@ function Uc({
|
|
|
7985
8010
|
} = T || {};
|
|
7986
8011
|
function M(E) {
|
|
7987
8012
|
if (s) {
|
|
7988
|
-
|
|
8013
|
+
Gc({
|
|
7989
8014
|
lang: F,
|
|
7990
8015
|
onOk: () => {
|
|
7991
8016
|
E();
|
|
@@ -8072,7 +8097,7 @@ function Uc({
|
|
|
8072
8097
|
}), /* @__PURE__ */ n(So, {
|
|
8073
8098
|
disabled: a || V || h || p
|
|
8074
8099
|
}), /* @__PURE__ */ n(Ge, {
|
|
8075
|
-
icon: /* @__PURE__ */ n(
|
|
8100
|
+
icon: /* @__PURE__ */ n(mi, {}),
|
|
8076
8101
|
tooltip: C("save"),
|
|
8077
8102
|
disabled: !s || z,
|
|
8078
8103
|
loading: a,
|
|
@@ -8090,7 +8115,7 @@ function Uc({
|
|
|
8090
8115
|
loading: h,
|
|
8091
8116
|
onClick: j
|
|
8092
8117
|
}), bt(), /* @__PURE__ */ n(Ge, {
|
|
8093
|
-
icon: /* @__PURE__ */ n(
|
|
8118
|
+
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8094
8119
|
tooltip: C("showLogs"),
|
|
8095
8120
|
disabled: a || l === void 0 || h || p || V,
|
|
8096
8121
|
loading: !1,
|
|
@@ -8107,7 +8132,7 @@ function Uc({
|
|
|
8107
8132
|
x.current.fetchValues();
|
|
8108
8133
|
});
|
|
8109
8134
|
}
|
|
8110
|
-
}), bt(), /* @__PURE__ */ n(
|
|
8135
|
+
}), bt(), /* @__PURE__ */ n(Zn, {
|
|
8111
8136
|
currentView: r,
|
|
8112
8137
|
previousView: _,
|
|
8113
8138
|
availableViews: t,
|
|
@@ -8118,7 +8143,7 @@ function Uc({
|
|
|
8118
8143
|
formHasChanges: s
|
|
8119
8144
|
}), bt(), /* @__PURE__ */ P(He, {
|
|
8120
8145
|
children: [/* @__PURE__ */ n(Ge, {
|
|
8121
|
-
icon: /* @__PURE__ */ n(
|
|
8146
|
+
icon: /* @__PURE__ */ n(Br, {}),
|
|
8122
8147
|
tooltip: C("previous"),
|
|
8123
8148
|
disabled: z,
|
|
8124
8149
|
loading: !1,
|
|
@@ -8126,7 +8151,7 @@ function Uc({
|
|
|
8126
8151
|
I(B);
|
|
8127
8152
|
}
|
|
8128
8153
|
}), /* @__PURE__ */ n(Ge, {
|
|
8129
|
-
icon: /* @__PURE__ */ n(
|
|
8154
|
+
icon: /* @__PURE__ */ n(Hr, {}),
|
|
8130
8155
|
tooltip: C("next"),
|
|
8131
8156
|
disabled: z,
|
|
8132
8157
|
loading: !1,
|
|
@@ -8164,7 +8189,7 @@ function Uc({
|
|
|
8164
8189
|
});
|
|
8165
8190
|
}
|
|
8166
8191
|
}), /* @__PURE__ */ n(Ft, {
|
|
8167
|
-
icon: /* @__PURE__ */ n(
|
|
8192
|
+
icon: /* @__PURE__ */ n(Pr, {}),
|
|
8168
8193
|
disabled: z,
|
|
8169
8194
|
tooltip: C("related"),
|
|
8170
8195
|
items: e == null ? void 0 : e.relate,
|
|
@@ -8179,7 +8204,7 @@ function Uc({
|
|
|
8179
8204
|
action_type: E.type
|
|
8180
8205
|
});
|
|
8181
8206
|
}
|
|
8182
|
-
}), /* @__PURE__ */ n(
|
|
8207
|
+
}), /* @__PURE__ */ n(zc, {
|
|
8183
8208
|
disabled: z,
|
|
8184
8209
|
attachments: O,
|
|
8185
8210
|
onAddNewAttachment: async () => {
|
|
@@ -8244,7 +8269,7 @@ async function xt({
|
|
|
8244
8269
|
};
|
|
8245
8270
|
}
|
|
8246
8271
|
const {
|
|
8247
|
-
useToken:
|
|
8272
|
+
useToken: Zc
|
|
8248
8273
|
} = Me, Fo = (e) => {
|
|
8249
8274
|
const {
|
|
8250
8275
|
ooui: t,
|
|
@@ -8258,7 +8283,7 @@ const {
|
|
|
8258
8283
|
required: c
|
|
8259
8284
|
} = t, {
|
|
8260
8285
|
token: d
|
|
8261
|
-
} =
|
|
8286
|
+
} = Zc(), u = c && !l ? {
|
|
8262
8287
|
backgroundColor: d.colorPrimaryBg
|
|
8263
8288
|
} : void 0, f = K(ke), {
|
|
8264
8289
|
elementHasLostFocus: m
|
|
@@ -8286,7 +8311,7 @@ const {
|
|
|
8286
8311
|
},
|
|
8287
8312
|
tabIndex: -1
|
|
8288
8313
|
}) : /* @__PURE__ */ n(Ie, {
|
|
8289
|
-
icon: /* @__PURE__ */ n(
|
|
8314
|
+
icon: /* @__PURE__ */ n(Wr, {}),
|
|
8290
8315
|
onClick: () => {
|
|
8291
8316
|
h(!0), v(!0);
|
|
8292
8317
|
},
|
|
@@ -8321,7 +8346,7 @@ const {
|
|
|
8321
8346
|
})
|
|
8322
8347
|
})]
|
|
8323
8348
|
});
|
|
8324
|
-
},
|
|
8349
|
+
}, Xc = (e) => {
|
|
8325
8350
|
const {
|
|
8326
8351
|
ooui: t
|
|
8327
8352
|
} = e, {
|
|
@@ -8332,10 +8357,10 @@ const {
|
|
|
8332
8357
|
...e,
|
|
8333
8358
|
children: /* @__PURE__ */ n(Fo, {
|
|
8334
8359
|
ooui: t,
|
|
8335
|
-
valueValidator: (i) => i ?
|
|
8360
|
+
valueValidator: (i) => i ? _i(i) : !1
|
|
8336
8361
|
})
|
|
8337
8362
|
});
|
|
8338
|
-
},
|
|
8363
|
+
}, Qc = (e) => {
|
|
8339
8364
|
const {
|
|
8340
8365
|
ooui: t
|
|
8341
8366
|
} = e, {
|
|
@@ -8347,10 +8372,10 @@ const {
|
|
|
8347
8372
|
children: /* @__PURE__ */ n(Fo, {
|
|
8348
8373
|
ooui: t,
|
|
8349
8374
|
linkPrefix: "mailto:",
|
|
8350
|
-
valueValidator: (i) => i ?
|
|
8375
|
+
valueValidator: (i) => i ? Ii(i) : !1
|
|
8351
8376
|
})
|
|
8352
8377
|
});
|
|
8353
|
-
},
|
|
8378
|
+
}, ed = (e) => {
|
|
8354
8379
|
const {
|
|
8355
8380
|
visible: t,
|
|
8356
8381
|
onIdSubmitted: r,
|
|
@@ -8415,7 +8440,7 @@ const {
|
|
|
8415
8440
|
})
|
|
8416
8441
|
});
|
|
8417
8442
|
}, {
|
|
8418
|
-
useToken:
|
|
8443
|
+
useToken: td
|
|
8419
8444
|
} = Me;
|
|
8420
8445
|
function Oo(e) {
|
|
8421
8446
|
const {
|
|
@@ -8423,7 +8448,7 @@ function Oo(e) {
|
|
|
8423
8448
|
...r
|
|
8424
8449
|
} = e, {
|
|
8425
8450
|
token: i
|
|
8426
|
-
} =
|
|
8451
|
+
} = td();
|
|
8427
8452
|
return /* @__PURE__ */ P("div", {
|
|
8428
8453
|
style: {
|
|
8429
8454
|
position: "relative"
|
|
@@ -8457,7 +8482,7 @@ function Oo(e) {
|
|
|
8457
8482
|
})]
|
|
8458
8483
|
});
|
|
8459
8484
|
}
|
|
8460
|
-
function
|
|
8485
|
+
function nd({
|
|
8461
8486
|
refreshGraph: e
|
|
8462
8487
|
}) {
|
|
8463
8488
|
const {
|
|
@@ -8476,7 +8501,7 @@ function Qc({
|
|
|
8476
8501
|
return /* @__PURE__ */ P(He, {
|
|
8477
8502
|
wrap: !0,
|
|
8478
8503
|
children: [/* @__PURE__ */ n(Oo, {
|
|
8479
|
-
icon: /* @__PURE__ */ n(
|
|
8504
|
+
icon: /* @__PURE__ */ n(Yr, {
|
|
8480
8505
|
style: {
|
|
8481
8506
|
color: a ? "white" : void 0
|
|
8482
8507
|
}
|
|
@@ -8496,7 +8521,7 @@ function Qc({
|
|
|
8496
8521
|
onClick: () => {
|
|
8497
8522
|
e();
|
|
8498
8523
|
}
|
|
8499
|
-
}), /* @__PURE__ */ n(
|
|
8524
|
+
}), /* @__PURE__ */ n(Zn, {
|
|
8500
8525
|
currentView: i,
|
|
8501
8526
|
availableViews: r,
|
|
8502
8527
|
onChangeView: (f) => {
|
|
@@ -8508,9 +8533,9 @@ function Qc({
|
|
|
8508
8533
|
});
|
|
8509
8534
|
}
|
|
8510
8535
|
const {
|
|
8511
|
-
useToken:
|
|
8536
|
+
useToken: rd
|
|
8512
8537
|
} = Me, {
|
|
8513
|
-
Title:
|
|
8538
|
+
Title: od,
|
|
8514
8539
|
Text: Zt
|
|
8515
8540
|
} = on;
|
|
8516
8541
|
function pn(e) {
|
|
@@ -8529,7 +8554,7 @@ function pn(e) {
|
|
|
8529
8554
|
t: u
|
|
8530
8555
|
} = K(ye), {
|
|
8531
8556
|
token: f
|
|
8532
|
-
} =
|
|
8557
|
+
} = rd();
|
|
8533
8558
|
function m() {
|
|
8534
8559
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8535
8560
|
return s ? c === 0 ? /* @__PURE__ */ P(Z, {
|
|
@@ -8584,7 +8609,7 @@ function pn(e) {
|
|
|
8584
8609
|
align: "middle",
|
|
8585
8610
|
children: [/* @__PURE__ */ P(ae, {
|
|
8586
8611
|
flex: 2,
|
|
8587
|
-
children: [/* @__PURE__ */ n(
|
|
8612
|
+
children: [/* @__PURE__ */ n(od, {
|
|
8588
8613
|
level: 3,
|
|
8589
8614
|
style: {
|
|
8590
8615
|
marginBottom: 0
|
|
@@ -8603,7 +8628,7 @@ function pn(e) {
|
|
|
8603
8628
|
})]
|
|
8604
8629
|
});
|
|
8605
8630
|
}
|
|
8606
|
-
const
|
|
8631
|
+
const id = (e) => {
|
|
8607
8632
|
const {
|
|
8608
8633
|
viewData: t,
|
|
8609
8634
|
visible: r,
|
|
@@ -8671,7 +8696,7 @@ const nd = (e) => {
|
|
|
8671
8696
|
return !r || !t ? null : /* @__PURE__ */ P(Z, {
|
|
8672
8697
|
children: [/* @__PURE__ */ n(pn, {
|
|
8673
8698
|
title: t.name,
|
|
8674
|
-
children: /* @__PURE__ */ n(
|
|
8699
|
+
children: /* @__PURE__ */ n(nd, {
|
|
8675
8700
|
refreshGraph: () => {
|
|
8676
8701
|
c.current.refresh();
|
|
8677
8702
|
}
|
|
@@ -8681,7 +8706,7 @@ const nd = (e) => {
|
|
|
8681
8706
|
...l.fields,
|
|
8682
8707
|
...a.fields
|
|
8683
8708
|
},
|
|
8684
|
-
searchFields:
|
|
8709
|
+
searchFields: io([a.search_fields, l.search_fields]),
|
|
8685
8710
|
formXml: a.arch,
|
|
8686
8711
|
limit: $,
|
|
8687
8712
|
onClear: D,
|
|
@@ -8704,7 +8729,7 @@ const nd = (e) => {
|
|
|
8704
8729
|
manualIds: T ? g == null ? void 0 : g.map((j) => j.id) : void 0
|
|
8705
8730
|
})]
|
|
8706
8731
|
});
|
|
8707
|
-
},
|
|
8732
|
+
}, sd = (e) => {
|
|
8708
8733
|
const {
|
|
8709
8734
|
visible: t,
|
|
8710
8735
|
formRef: r,
|
|
@@ -8721,7 +8746,7 @@ const nd = (e) => {
|
|
|
8721
8746
|
} = e;
|
|
8722
8747
|
return t ? /* @__PURE__ */ P(Z, {
|
|
8723
8748
|
children: [/* @__PURE__ */ n(pn, {
|
|
8724
|
-
children: /* @__PURE__ */ n(
|
|
8749
|
+
children: /* @__PURE__ */ n(Jc, {
|
|
8725
8750
|
toolbar: a == null ? void 0 : a.toolbar
|
|
8726
8751
|
})
|
|
8727
8752
|
}), /* @__PURE__ */ n(Yt, {
|
|
@@ -8740,7 +8765,7 @@ const nd = (e) => {
|
|
|
8740
8765
|
})]
|
|
8741
8766
|
}) : null;
|
|
8742
8767
|
};
|
|
8743
|
-
function
|
|
8768
|
+
function ad(e) {
|
|
8744
8769
|
const {
|
|
8745
8770
|
onSearch: t,
|
|
8746
8771
|
disabled: r = !1,
|
|
@@ -8782,9 +8807,9 @@ function od(e) {
|
|
|
8782
8807
|
borderTopRightRadius: 0,
|
|
8783
8808
|
borderBottomRightRadius: 0
|
|
8784
8809
|
},
|
|
8785
|
-
suffix: (a || i && i.length > 0) && /* @__PURE__ */ n(
|
|
8810
|
+
suffix: (a || i && i.length > 0) && /* @__PURE__ */ n(ft, {
|
|
8786
8811
|
title: o("clear"),
|
|
8787
|
-
children: /* @__PURE__ */ n(
|
|
8812
|
+
children: /* @__PURE__ */ n(hi, {
|
|
8788
8813
|
style: {
|
|
8789
8814
|
color: "rgba(0,0,0,.45)"
|
|
8790
8815
|
},
|
|
@@ -8807,10 +8832,10 @@ function od(e) {
|
|
|
8807
8832
|
})
|
|
8808
8833
|
});
|
|
8809
8834
|
}
|
|
8810
|
-
const
|
|
8835
|
+
const ld = qe.createContext({
|
|
8811
8836
|
previewFeatures: !1
|
|
8812
8837
|
});
|
|
8813
|
-
function
|
|
8838
|
+
function cd(e) {
|
|
8814
8839
|
var z;
|
|
8815
8840
|
const {
|
|
8816
8841
|
availableViews: t,
|
|
@@ -8842,7 +8867,7 @@ function sd(e) {
|
|
|
8842
8867
|
toolbar: F
|
|
8843
8868
|
} = e, {
|
|
8844
8869
|
previewFeatures: S
|
|
8845
|
-
} = K(
|
|
8870
|
+
} = K(ld), {
|
|
8846
8871
|
t: L,
|
|
8847
8872
|
lang: T
|
|
8848
8873
|
} = K(ye), k = K(Rt), {
|
|
@@ -8910,14 +8935,14 @@ function sd(e) {
|
|
|
8910
8935
|
return /* @__PURE__ */ P(He, {
|
|
8911
8936
|
wrap: !0,
|
|
8912
8937
|
children: [C ? null : /* @__PURE__ */ P(Z, {
|
|
8913
|
-
children: [/* @__PURE__ */ n(
|
|
8938
|
+
children: [/* @__PURE__ */ n(ad, {
|
|
8914
8939
|
disabled: l || a || V,
|
|
8915
8940
|
searchText: y,
|
|
8916
8941
|
onSearch: (q) => {
|
|
8917
8942
|
q && q.trim().length > 0 ? v == null || v(q) : v == null || v(void 0);
|
|
8918
8943
|
}
|
|
8919
8944
|
}), !C && /* @__PURE__ */ n(Oo, {
|
|
8920
|
-
icon: /* @__PURE__ */ n(
|
|
8945
|
+
icon: /* @__PURE__ */ n(Yr, {
|
|
8921
8946
|
style: {
|
|
8922
8947
|
color: h ? "white" : void 0
|
|
8923
8948
|
}
|
|
@@ -8945,7 +8970,7 @@ function sd(e) {
|
|
|
8945
8970
|
onClick: B
|
|
8946
8971
|
}), Et()]
|
|
8947
8972
|
}), /* @__PURE__ */ n(Ge, {
|
|
8948
|
-
icon: /* @__PURE__ */ n(
|
|
8973
|
+
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8949
8974
|
tooltip: L("showLogs"),
|
|
8950
8975
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || V,
|
|
8951
8976
|
loading: !1,
|
|
@@ -8962,7 +8987,7 @@ function sd(e) {
|
|
|
8962
8987
|
(q = u == null ? void 0 : u.current) == null || q.refreshResults();
|
|
8963
8988
|
}
|
|
8964
8989
|
}), !C && /* @__PURE__ */ P(Z, {
|
|
8965
|
-
children: [Et(), /* @__PURE__ */ n(
|
|
8990
|
+
children: [Et(), /* @__PURE__ */ n(Zn, {
|
|
8966
8991
|
currentView: r,
|
|
8967
8992
|
availableViews: t,
|
|
8968
8993
|
onChangeView: (q) => {
|
|
@@ -8995,7 +9020,7 @@ function sd(e) {
|
|
|
8995
9020
|
}
|
|
8996
9021
|
}), S && /* @__PURE__ */ P(Z, {
|
|
8997
9022
|
children: [Et(), /* @__PURE__ */ n(Ft, {
|
|
8998
|
-
icon: /* @__PURE__ */ n(
|
|
9023
|
+
icon: /* @__PURE__ */ n(kr, {
|
|
8999
9024
|
component: () => /* @__PURE__ */ P("svg", {
|
|
9000
9025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9001
9026
|
className: "icon icon-tabler icon-tabler-database-export",
|
|
@@ -9049,7 +9074,7 @@ function sd(e) {
|
|
|
9049
9074
|
I(!0);
|
|
9050
9075
|
},
|
|
9051
9076
|
disabled: l || a || V || R
|
|
9052
|
-
}), /* @__PURE__ */ n(
|
|
9077
|
+
}), /* @__PURE__ */ n(Nc, {
|
|
9053
9078
|
visible: M,
|
|
9054
9079
|
locale: T,
|
|
9055
9080
|
onClose: () => I(!1),
|
|
@@ -9069,7 +9094,7 @@ function Et() {
|
|
|
9069
9094
|
className: "inline-block w-2"
|
|
9070
9095
|
});
|
|
9071
9096
|
}
|
|
9072
|
-
const
|
|
9097
|
+
const dd = (e) => {
|
|
9073
9098
|
const {
|
|
9074
9099
|
visible: t,
|
|
9075
9100
|
searchTreeRef: r,
|
|
@@ -9090,7 +9115,7 @@ const ad = (e) => {
|
|
|
9090
9115
|
} = K(Ze);
|
|
9091
9116
|
return t ? /* @__PURE__ */ P(Z, {
|
|
9092
9117
|
children: [/* @__PURE__ */ n(pn, {
|
|
9093
|
-
children: /* @__PURE__ */ n(
|
|
9118
|
+
children: /* @__PURE__ */ n(cd, {
|
|
9094
9119
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9095
9120
|
parentContext: o,
|
|
9096
9121
|
treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
|
|
@@ -9116,13 +9141,13 @@ const ad = (e) => {
|
|
|
9116
9141
|
}
|
|
9117
9142
|
})]
|
|
9118
9143
|
}) : null;
|
|
9119
|
-
},
|
|
9144
|
+
}, Xn = qe.createContext(null), ud = (e) => {
|
|
9120
9145
|
const [t, r] = b(!1), [i, o] = b(!1), {
|
|
9121
9146
|
children: s,
|
|
9122
9147
|
dashboardRef: a,
|
|
9123
9148
|
openAction: l
|
|
9124
9149
|
} = e;
|
|
9125
|
-
return /* @__PURE__ */ n(
|
|
9150
|
+
return /* @__PURE__ */ n(Xn.Provider, {
|
|
9126
9151
|
value: {
|
|
9127
9152
|
isLoading: t,
|
|
9128
9153
|
setIsLoading: r,
|
|
@@ -9134,19 +9159,19 @@ const ad = (e) => {
|
|
|
9134
9159
|
children: s
|
|
9135
9160
|
});
|
|
9136
9161
|
};
|
|
9137
|
-
function
|
|
9162
|
+
function fd() {
|
|
9138
9163
|
const {
|
|
9139
9164
|
isLoading: e,
|
|
9140
9165
|
dashboardRef: t,
|
|
9141
9166
|
moveItemsEnabled: r,
|
|
9142
9167
|
setMoveItemsEnabled: i
|
|
9143
|
-
} = K(
|
|
9168
|
+
} = K(Xn), {
|
|
9144
9169
|
t: o
|
|
9145
9170
|
} = K(ye);
|
|
9146
9171
|
return /* @__PURE__ */ P(He, {
|
|
9147
9172
|
wrap: !0,
|
|
9148
9173
|
children: [/* @__PURE__ */ n(Ge, {
|
|
9149
|
-
icon: /* @__PURE__ */ n(
|
|
9174
|
+
icon: /* @__PURE__ */ n(pi, {
|
|
9150
9175
|
style: {
|
|
9151
9176
|
color: r ? "white" : void 0
|
|
9152
9177
|
}
|
|
@@ -9158,8 +9183,8 @@ function cd() {
|
|
|
9158
9183
|
onClick: () => {
|
|
9159
9184
|
i(!r);
|
|
9160
9185
|
}
|
|
9161
|
-
}),
|
|
9162
|
-
icon: /* @__PURE__ */ n(
|
|
9186
|
+
}), md(), /* @__PURE__ */ n(Ge, {
|
|
9187
|
+
icon: /* @__PURE__ */ n(gi, {}),
|
|
9163
9188
|
tooltip: o("configDashboard"),
|
|
9164
9189
|
disabled: e,
|
|
9165
9190
|
loading: !1,
|
|
@@ -9177,25 +9202,25 @@ function cd() {
|
|
|
9177
9202
|
})]
|
|
9178
9203
|
});
|
|
9179
9204
|
}
|
|
9180
|
-
function
|
|
9205
|
+
function md() {
|
|
9181
9206
|
return /* @__PURE__ */ n("div", {
|
|
9182
9207
|
className: "inline-block w-2"
|
|
9183
9208
|
});
|
|
9184
9209
|
}
|
|
9185
|
-
const
|
|
9210
|
+
const hd = (e) => {
|
|
9186
9211
|
const {
|
|
9187
9212
|
dashboardData: t
|
|
9188
9213
|
} = e, r = me(), i = K(st), {
|
|
9189
9214
|
openShortcut: o
|
|
9190
9215
|
} = i || {};
|
|
9191
|
-
return t ? /* @__PURE__ */ P(
|
|
9216
|
+
return t ? /* @__PURE__ */ P(ud, {
|
|
9192
9217
|
dashboardRef: r,
|
|
9193
9218
|
openAction: (s) => {
|
|
9194
9219
|
o(s);
|
|
9195
9220
|
},
|
|
9196
9221
|
children: [/* @__PURE__ */ n(pn, {
|
|
9197
|
-
children: /* @__PURE__ */ n(
|
|
9198
|
-
}), /* @__PURE__ */ n(
|
|
9222
|
+
children: /* @__PURE__ */ n(fd, {})
|
|
9223
|
+
}), /* @__PURE__ */ n(Od, {
|
|
9199
9224
|
ref: r,
|
|
9200
9225
|
model: t.model,
|
|
9201
9226
|
id: t.id,
|
|
@@ -9204,7 +9229,7 @@ const ud = (e) => {
|
|
|
9204
9229
|
})]
|
|
9205
9230
|
}) : null;
|
|
9206
9231
|
};
|
|
9207
|
-
function
|
|
9232
|
+
function pd(e, t) {
|
|
9208
9233
|
const {
|
|
9209
9234
|
domain: r,
|
|
9210
9235
|
model: i,
|
|
@@ -9231,7 +9256,7 @@ function fd(e, t) {
|
|
|
9231
9256
|
openAction: Le,
|
|
9232
9257
|
onRemoveTab: fe
|
|
9233
9258
|
} = ce || {};
|
|
9234
|
-
|
|
9259
|
+
Di("ctrl+g,command+g", (Q) => {
|
|
9235
9260
|
Q.preventDefault(), Pe();
|
|
9236
9261
|
}, [Se, be, y, L, k]);
|
|
9237
9262
|
function oe(Q) {
|
|
@@ -9369,7 +9394,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9369
9394
|
return O.map((Q) => {
|
|
9370
9395
|
switch (Q.type) {
|
|
9371
9396
|
case "form":
|
|
9372
|
-
return /* @__PURE__ */ n(
|
|
9397
|
+
return /* @__PURE__ */ n(sd, {
|
|
9373
9398
|
formRef: ee,
|
|
9374
9399
|
currentId: w,
|
|
9375
9400
|
visible: y.type === Q.type && y.view_id === Q.view_id,
|
|
@@ -9384,7 +9409,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9384
9409
|
setCurrentItemIndex: T
|
|
9385
9410
|
}, `${Q.type}-${Q.view_id}`);
|
|
9386
9411
|
case "tree":
|
|
9387
|
-
return /* @__PURE__ */ n(
|
|
9412
|
+
return /* @__PURE__ */ n(dd, {
|
|
9388
9413
|
visible: y.type === Q.type && y.view_id === Q.view_id,
|
|
9389
9414
|
limit: v,
|
|
9390
9415
|
model: i,
|
|
@@ -9401,7 +9426,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9401
9426
|
setCurrentView: Te
|
|
9402
9427
|
}, `${Q.type}-${Q.view_id}`);
|
|
9403
9428
|
case "graph":
|
|
9404
|
-
return /* @__PURE__ */ n(
|
|
9429
|
+
return /* @__PURE__ */ n(id, {
|
|
9405
9430
|
visible: y.type === Q.type && y.view_id === Q.view_id,
|
|
9406
9431
|
viewData: Q,
|
|
9407
9432
|
model: i,
|
|
@@ -9411,7 +9436,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9411
9436
|
formView: O.find((se) => se.type === "form")
|
|
9412
9437
|
}, `${Q.type}-${Q.view_id}`);
|
|
9413
9438
|
case "dashboard":
|
|
9414
|
-
return /* @__PURE__ */ n(
|
|
9439
|
+
return /* @__PURE__ */ n(hd, {
|
|
9415
9440
|
dashboardData: Q
|
|
9416
9441
|
}, `${Q.type}-${Q.view_id}`);
|
|
9417
9442
|
}
|
|
@@ -9426,7 +9451,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9426
9451
|
Te(Q);
|
|
9427
9452
|
}
|
|
9428
9453
|
}
|
|
9429
|
-
return A ? /* @__PURE__ */ n(Re, {}) : y ? /* @__PURE__ */ P(
|
|
9454
|
+
return A ? /* @__PURE__ */ n(Re, {}) : y ? /* @__PURE__ */ P(Ja, {
|
|
9430
9455
|
title: a,
|
|
9431
9456
|
currentView: y,
|
|
9432
9457
|
setCurrentView: Te,
|
|
@@ -9451,7 +9476,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9451
9476
|
searchTreeNameSearch: q,
|
|
9452
9477
|
goToResourceId: Ne,
|
|
9453
9478
|
limit: v,
|
|
9454
|
-
children: [Je(), /* @__PURE__ */ n(
|
|
9479
|
+
children: [Je(), /* @__PURE__ */ n(ed, {
|
|
9455
9480
|
visible: j,
|
|
9456
9481
|
onIdSubmitted: Ne,
|
|
9457
9482
|
isSearching: W,
|
|
@@ -9461,8 +9486,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9461
9486
|
})]
|
|
9462
9487
|
}) : null;
|
|
9463
9488
|
}
|
|
9464
|
-
const _o = gt(
|
|
9465
|
-
async function
|
|
9489
|
+
const _o = gt(pd);
|
|
9490
|
+
async function gd({
|
|
9466
9491
|
actionId: e,
|
|
9467
9492
|
rootContext: t = {},
|
|
9468
9493
|
globalValues: r = {}
|
|
@@ -9470,7 +9495,7 @@ async function md({
|
|
|
9470
9495
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
|
|
9471
9496
|
action: o,
|
|
9472
9497
|
context: t
|
|
9473
|
-
}), a =
|
|
9498
|
+
}), a = pt({
|
|
9474
9499
|
context: s.context,
|
|
9475
9500
|
values: r,
|
|
9476
9501
|
fields: {}
|
|
@@ -9504,7 +9529,7 @@ async function md({
|
|
|
9504
9529
|
title: u,
|
|
9505
9530
|
actionId: e,
|
|
9506
9531
|
actionType: i,
|
|
9507
|
-
key:
|
|
9532
|
+
key: Gr(),
|
|
9508
9533
|
views: d,
|
|
9509
9534
|
model: c,
|
|
9510
9535
|
context: { ...t, ...a },
|
|
@@ -9514,7 +9539,7 @@ async function md({
|
|
|
9514
9539
|
treeExpandable: g
|
|
9515
9540
|
};
|
|
9516
9541
|
}
|
|
9517
|
-
const
|
|
9542
|
+
const yd = Ri(ki), vd = (e) => {
|
|
9518
9543
|
const {
|
|
9519
9544
|
children: t = [],
|
|
9520
9545
|
onPositionItemsChanged: r
|
|
@@ -9528,7 +9553,7 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9528
9553
|
children: o
|
|
9529
9554
|
}, a);
|
|
9530
9555
|
});
|
|
9531
|
-
return /* @__PURE__ */ n(
|
|
9556
|
+
return /* @__PURE__ */ n(yd, {
|
|
9532
9557
|
className: "layout",
|
|
9533
9558
|
cols: {
|
|
9534
9559
|
lg: 12,
|
|
@@ -9551,10 +9576,10 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9551
9576
|
children: i
|
|
9552
9577
|
});
|
|
9553
9578
|
}, {
|
|
9554
|
-
useToken:
|
|
9579
|
+
useToken: wd
|
|
9555
9580
|
} = Me, {
|
|
9556
|
-
Text:
|
|
9557
|
-
} = on,
|
|
9581
|
+
Text: bd
|
|
9582
|
+
} = on, xd = (e) => {
|
|
9558
9583
|
const {
|
|
9559
9584
|
title: t,
|
|
9560
9585
|
children: r,
|
|
@@ -9562,7 +9587,7 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9562
9587
|
openAction: o
|
|
9563
9588
|
} = e, {
|
|
9564
9589
|
token: s
|
|
9565
|
-
} =
|
|
9590
|
+
} = wd();
|
|
9566
9591
|
return /* @__PURE__ */ P("div", {
|
|
9567
9592
|
className: "shadow-md",
|
|
9568
9593
|
style: {
|
|
@@ -9590,7 +9615,7 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9590
9615
|
cursor: "grab",
|
|
9591
9616
|
overflow: "hidden"
|
|
9592
9617
|
},
|
|
9593
|
-
children: /* @__PURE__ */ n(
|
|
9618
|
+
children: /* @__PURE__ */ n(bd, {
|
|
9594
9619
|
ellipsis: !0,
|
|
9595
9620
|
children: t
|
|
9596
9621
|
})
|
|
@@ -9602,7 +9627,7 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9602
9627
|
children: /* @__PURE__ */ n(Ce, {
|
|
9603
9628
|
justify: "end",
|
|
9604
9629
|
align: "middle",
|
|
9605
|
-
children: /* @__PURE__ */ n(
|
|
9630
|
+
children: /* @__PURE__ */ n(yi, {
|
|
9606
9631
|
style: {
|
|
9607
9632
|
cursor: "pointer"
|
|
9608
9633
|
},
|
|
@@ -9614,8 +9639,8 @@ const hd = Ai(Ri), pd = (e) => {
|
|
|
9614
9639
|
})]
|
|
9615
9640
|
}), r]
|
|
9616
9641
|
});
|
|
9617
|
-
},
|
|
9618
|
-
function
|
|
9642
|
+
}, Cd = 80;
|
|
9643
|
+
function Sd(e) {
|
|
9619
9644
|
const {
|
|
9620
9645
|
action: t,
|
|
9621
9646
|
model: r,
|
|
@@ -9624,7 +9649,7 @@ function bd(e) {
|
|
|
9624
9649
|
domain: s = [],
|
|
9625
9650
|
visible: a = !0,
|
|
9626
9651
|
parentContext: l = {}
|
|
9627
|
-
} = e, [c, d] = b(!1), [u, f] = b(!1), [m, g] = b(), [h, p] = b(), [v, y] = b(), [V, O] = b(1), [x, A] = b(0), _ = me(
|
|
9652
|
+
} = e, [c, d] = b(!1), [u, f] = b(!1), [m, g] = b(), [h, p] = b(), [v, y] = b(), [V, O] = b(1), [x, A] = b(0), _ = me(Cd), $ = me([]), [w, C] = b(0), [F, S] = b([]), [L, T] = b(void 0), [k, D] = b(), [M, I] = b(), [R, B] = b(), [j, U] = b(!1), W = me([]), z = (J) => {
|
|
9628
9653
|
U(!0), O(J), A((J - 1) * _.current);
|
|
9629
9654
|
}, q = async () => {
|
|
9630
9655
|
const J = W.current.length > 0 ? W.current : s, be = fn($.current, J), {
|
|
@@ -9756,7 +9781,7 @@ function bd(e) {
|
|
|
9756
9781
|
}
|
|
9757
9782
|
}) : ne();
|
|
9758
9783
|
}
|
|
9759
|
-
const
|
|
9784
|
+
const Td = (e) => {
|
|
9760
9785
|
const {
|
|
9761
9786
|
model: t
|
|
9762
9787
|
} = e, [r, i] = b();
|
|
@@ -9784,7 +9809,7 @@ const xd = (e) => {
|
|
|
9784
9809
|
})
|
|
9785
9810
|
});
|
|
9786
9811
|
}, Tn = "line_ids";
|
|
9787
|
-
function
|
|
9812
|
+
function Fd(e, t) {
|
|
9788
9813
|
const {
|
|
9789
9814
|
model: r,
|
|
9790
9815
|
context: i = {},
|
|
@@ -9794,7 +9819,7 @@ function Cd(e, t) {
|
|
|
9794
9819
|
setIsLoading: m,
|
|
9795
9820
|
openAction: g,
|
|
9796
9821
|
moveItemsEnabled: h
|
|
9797
|
-
} = K(
|
|
9822
|
+
} = K(Xn), p = me(), v = me();
|
|
9798
9823
|
ge(() => {
|
|
9799
9824
|
y();
|
|
9800
9825
|
}, [r, o, i]), yt(t, () => ({
|
|
@@ -9864,7 +9889,7 @@ function Cd(e, t) {
|
|
|
9864
9889
|
values: S
|
|
9865
9890
|
} = F;
|
|
9866
9891
|
if (S.action_id && S.action_id.length > 0) {
|
|
9867
|
-
const L = parseInt(S.action_id[0], 10), T = await
|
|
9892
|
+
const L = parseInt(S.action_id[0], 10), T = await gd({
|
|
9868
9893
|
actionId: L,
|
|
9869
9894
|
rootContext: i
|
|
9870
9895
|
});
|
|
@@ -9929,7 +9954,7 @@ function Cd(e, t) {
|
|
|
9929
9954
|
message: u,
|
|
9930
9955
|
type: "error",
|
|
9931
9956
|
banner: !0
|
|
9932
|
-
})) : c ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(
|
|
9957
|
+
})) : c ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(vd, {
|
|
9933
9958
|
onPositionItemsChanged: _,
|
|
9934
9959
|
children: a.map((w, C) => {
|
|
9935
9960
|
const {
|
|
@@ -9971,12 +9996,12 @@ function Cd(e, t) {
|
|
|
9971
9996
|
limit: z
|
|
9972
9997
|
});
|
|
9973
9998
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
9974
|
-
E = /* @__PURE__ */ n(
|
|
9999
|
+
E = /* @__PURE__ */ n(Td, {
|
|
9975
10000
|
model: B,
|
|
9976
10001
|
actionDomain: U
|
|
9977
10002
|
});
|
|
9978
10003
|
else if ((W == null ? void 0 : W.type) === "tree")
|
|
9979
|
-
E = /* @__PURE__ */ n(
|
|
10004
|
+
E = /* @__PURE__ */ n(Sd, {
|
|
9980
10005
|
model: B,
|
|
9981
10006
|
domain: U,
|
|
9982
10007
|
view_id: R.filter((le) => le[1] === "tree")[0][0],
|
|
@@ -10046,7 +10071,7 @@ function Cd(e, t) {
|
|
|
10046
10071
|
view_type: ce
|
|
10047
10072
|
};
|
|
10048
10073
|
}
|
|
10049
|
-
return /* @__PURE__ */ n(
|
|
10074
|
+
return /* @__PURE__ */ n(xd, {
|
|
10050
10075
|
id: T,
|
|
10051
10076
|
title: I,
|
|
10052
10077
|
parms: q,
|
|
@@ -10057,35 +10082,35 @@ function Cd(e, t) {
|
|
|
10057
10082
|
})
|
|
10058
10083
|
});
|
|
10059
10084
|
}
|
|
10060
|
-
const
|
|
10085
|
+
const Od = gt(Fd), _d = (e) => /* @__PURE__ */ n(we, {
|
|
10061
10086
|
...e,
|
|
10062
|
-
children: /* @__PURE__ */ n(
|
|
10087
|
+
children: /* @__PURE__ */ n(Id, {
|
|
10063
10088
|
...e
|
|
10064
10089
|
})
|
|
10065
|
-
}),
|
|
10090
|
+
}), Id = (e) => {
|
|
10066
10091
|
const {
|
|
10067
10092
|
ooui: t,
|
|
10068
10093
|
value: r
|
|
10069
10094
|
} = e;
|
|
10070
10095
|
if (!r)
|
|
10071
10096
|
return null;
|
|
10072
|
-
const i = t.colors === "auto" ?
|
|
10097
|
+
const i = t.colors === "auto" ? zn(r) : t.colors[r];
|
|
10073
10098
|
return /* @__PURE__ */ n(Rn, {
|
|
10074
10099
|
color: i,
|
|
10075
10100
|
children: t.selectionValues.get(r)
|
|
10076
10101
|
});
|
|
10077
|
-
},
|
|
10102
|
+
}, Dd = (e) => {
|
|
10078
10103
|
const {
|
|
10079
10104
|
ooui: t
|
|
10080
10105
|
} = e;
|
|
10081
10106
|
return /* @__PURE__ */ n(we, {
|
|
10082
10107
|
type: "array",
|
|
10083
10108
|
...e,
|
|
10084
|
-
children: /* @__PURE__ */ n(
|
|
10109
|
+
children: /* @__PURE__ */ n(Vd, {
|
|
10085
10110
|
ooui: t
|
|
10086
10111
|
})
|
|
10087
10112
|
});
|
|
10088
|
-
},
|
|
10113
|
+
}, Vd = (e) => {
|
|
10089
10114
|
const {
|
|
10090
10115
|
value: t,
|
|
10091
10116
|
ooui: r,
|
|
@@ -10206,12 +10231,12 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10206
10231
|
})]
|
|
10207
10232
|
})
|
|
10208
10233
|
});
|
|
10209
|
-
},
|
|
10234
|
+
}, Ad = (e) => /* @__PURE__ */ n(we, {
|
|
10210
10235
|
...e,
|
|
10211
|
-
children: /* @__PURE__ */ n(
|
|
10236
|
+
children: /* @__PURE__ */ n(Rd, {
|
|
10212
10237
|
...e
|
|
10213
10238
|
})
|
|
10214
|
-
}),
|
|
10239
|
+
}), Rd = (e) => {
|
|
10215
10240
|
const {
|
|
10216
10241
|
value: t,
|
|
10217
10242
|
ooui: r
|
|
@@ -10221,12 +10246,12 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10221
10246
|
height: r.height ? r.height + "px" : "100%",
|
|
10222
10247
|
overflow: "auto"
|
|
10223
10248
|
},
|
|
10224
|
-
children: /* @__PURE__ */ n(
|
|
10249
|
+
children: /* @__PURE__ */ n(Vi, {
|
|
10225
10250
|
children: t,
|
|
10226
10251
|
className: "ant-typography"
|
|
10227
10252
|
})
|
|
10228
10253
|
});
|
|
10229
|
-
},
|
|
10254
|
+
}, kd = (e) => {
|
|
10230
10255
|
const {
|
|
10231
10256
|
ooui: t
|
|
10232
10257
|
} = e, {
|
|
@@ -10236,11 +10261,11 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10236
10261
|
required: r,
|
|
10237
10262
|
type: "any",
|
|
10238
10263
|
...e,
|
|
10239
|
-
children: /* @__PURE__ */ n(
|
|
10264
|
+
children: /* @__PURE__ */ n(Ed, {
|
|
10240
10265
|
...e
|
|
10241
10266
|
})
|
|
10242
10267
|
});
|
|
10243
|
-
},
|
|
10268
|
+
}, Ed = (e) => {
|
|
10244
10269
|
const {
|
|
10245
10270
|
ooui: t,
|
|
10246
10271
|
onChange: r,
|
|
@@ -10251,12 +10276,12 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10251
10276
|
direction: a
|
|
10252
10277
|
} = t, l = Array.from(o.entries()), c = l && l.length && l.map((d) => {
|
|
10253
10278
|
const [u, f] = d;
|
|
10254
|
-
return /* @__PURE__ */ n(
|
|
10279
|
+
return /* @__PURE__ */ n(tr, {
|
|
10255
10280
|
value: u,
|
|
10256
10281
|
children: f
|
|
10257
10282
|
}, u);
|
|
10258
10283
|
});
|
|
10259
|
-
return /* @__PURE__ */ n(
|
|
10284
|
+
return /* @__PURE__ */ n(tr.Group, {
|
|
10260
10285
|
disabled: s,
|
|
10261
10286
|
onChange: r,
|
|
10262
10287
|
value: i,
|
|
@@ -10265,7 +10290,7 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10265
10290
|
children: c
|
|
10266
10291
|
})
|
|
10267
10292
|
});
|
|
10268
|
-
},
|
|
10293
|
+
}, Md = (e) => {
|
|
10269
10294
|
const {
|
|
10270
10295
|
ooui: t
|
|
10271
10296
|
} = e, {
|
|
@@ -10276,13 +10301,13 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10276
10301
|
return /* @__PURE__ */ n(we, {
|
|
10277
10302
|
...e,
|
|
10278
10303
|
valuePropName: "checked",
|
|
10279
|
-
children: /* @__PURE__ */ n(
|
|
10304
|
+
children: /* @__PURE__ */ n($d, {
|
|
10280
10305
|
id: r,
|
|
10281
10306
|
readOnly: i,
|
|
10282
10307
|
required: o
|
|
10283
10308
|
})
|
|
10284
10309
|
});
|
|
10285
|
-
},
|
|
10310
|
+
}, $d = (e) => {
|
|
10286
10311
|
const {
|
|
10287
10312
|
required: t,
|
|
10288
10313
|
readOnly: r,
|
|
@@ -10290,12 +10315,12 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10290
10315
|
} = e;
|
|
10291
10316
|
return /* @__PURE__ */ n("div", {
|
|
10292
10317
|
className: "flex flex-row",
|
|
10293
|
-
children: /* @__PURE__ */ n(
|
|
10318
|
+
children: /* @__PURE__ */ n(Zo, {
|
|
10294
10319
|
disabled: r,
|
|
10295
10320
|
...i
|
|
10296
10321
|
})
|
|
10297
10322
|
});
|
|
10298
|
-
},
|
|
10323
|
+
}, Nd = (e) => {
|
|
10299
10324
|
const {
|
|
10300
10325
|
ooui: t
|
|
10301
10326
|
} = e, {
|
|
@@ -10305,11 +10330,11 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10305
10330
|
required: r,
|
|
10306
10331
|
type: "any",
|
|
10307
10332
|
...e,
|
|
10308
|
-
children: /* @__PURE__ */ n(
|
|
10333
|
+
children: /* @__PURE__ */ n(Ld, {
|
|
10309
10334
|
...e
|
|
10310
10335
|
})
|
|
10311
10336
|
});
|
|
10312
|
-
},
|
|
10337
|
+
}, Ld = (e) => {
|
|
10313
10338
|
const {
|
|
10314
10339
|
ooui: t,
|
|
10315
10340
|
value: r
|
|
@@ -10318,15 +10343,15 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10318
10343
|
errorField: o
|
|
10319
10344
|
} = t, s = K(ke), a = Array.from(i.entries()), l = a.map((u) => u[0]).indexOf(r);
|
|
10320
10345
|
let c = "process", d = "";
|
|
10321
|
-
return o && (d = s.getFieldValue(o), d && (c = "error")), /* @__PURE__ */ n(
|
|
10346
|
+
return o && (d = s.getFieldValue(o), d && (c = "error")), /* @__PURE__ */ n(nr, {
|
|
10322
10347
|
current: l,
|
|
10323
10348
|
status: c,
|
|
10324
|
-
children: a.map((u, f) => /* @__PURE__ */ n(
|
|
10349
|
+
children: a.map((u, f) => /* @__PURE__ */ n(nr.Step, {
|
|
10325
10350
|
title: u[1],
|
|
10326
10351
|
description: f === l && c === "error" ? d : null
|
|
10327
10352
|
}))
|
|
10328
10353
|
});
|
|
10329
|
-
},
|
|
10354
|
+
}, Pd = (e) => {
|
|
10330
10355
|
const {
|
|
10331
10356
|
ooui: t
|
|
10332
10357
|
} = e, {
|
|
@@ -10337,7 +10362,7 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10337
10362
|
} = o || {};
|
|
10338
10363
|
return /* @__PURE__ */ n(we, {
|
|
10339
10364
|
...e,
|
|
10340
|
-
children: /* @__PURE__ */ n(
|
|
10365
|
+
children: /* @__PURE__ */ n(Ai, {
|
|
10341
10366
|
defaultLanguage: r || "",
|
|
10342
10367
|
height: i || 300,
|
|
10343
10368
|
onMount: (l) => {
|
|
@@ -10346,23 +10371,23 @@ const Sd = gt(Cd), Td = (e) => /* @__PURE__ */ n(we, {
|
|
|
10346
10371
|
})
|
|
10347
10372
|
});
|
|
10348
10373
|
}, {
|
|
10349
|
-
Content:
|
|
10350
|
-
} =
|
|
10351
|
-
Title:
|
|
10374
|
+
Content: Bd
|
|
10375
|
+
} = Xo, {
|
|
10376
|
+
Title: Hd
|
|
10352
10377
|
} = on;
|
|
10353
|
-
function
|
|
10378
|
+
function jd() {
|
|
10354
10379
|
const {
|
|
10355
10380
|
t: e
|
|
10356
10381
|
} = K(ye);
|
|
10357
|
-
return /* @__PURE__ */ n(
|
|
10382
|
+
return /* @__PURE__ */ n(Bd, {
|
|
10358
10383
|
className: "m-5 select-none",
|
|
10359
|
-
children: /* @__PURE__ */ n(
|
|
10384
|
+
children: /* @__PURE__ */ n(Hd, {
|
|
10360
10385
|
level: 5,
|
|
10361
10386
|
children: e("welcome")
|
|
10362
10387
|
})
|
|
10363
10388
|
});
|
|
10364
10389
|
}
|
|
10365
|
-
function
|
|
10390
|
+
function Kd(e, t) {
|
|
10366
10391
|
const {
|
|
10367
10392
|
children: r,
|
|
10368
10393
|
globalValues: i = {},
|
|
@@ -10372,7 +10397,7 @@ function Bd(e, t) {
|
|
|
10372
10397
|
title: _e("welcome", s),
|
|
10373
10398
|
key: "welcome",
|
|
10374
10399
|
closable: !0,
|
|
10375
|
-
content: /* @__PURE__ */ n(
|
|
10400
|
+
content: /* @__PURE__ */ n(jd, {})
|
|
10376
10401
|
}]), u = me(/* @__PURE__ */ new Map()), f = me();
|
|
10377
10402
|
yt(t, () => ({
|
|
10378
10403
|
retrieveAndOpenAction: h,
|
|
@@ -10407,7 +10432,7 @@ function Bd(e, t) {
|
|
|
10407
10432
|
We("Action type not supported");
|
|
10408
10433
|
return;
|
|
10409
10434
|
}
|
|
10410
|
-
const [S, L] = x.split(","), T = parseInt(L), k =
|
|
10435
|
+
const [S, L] = x.split(","), T = parseInt(L), k = pt({
|
|
10411
10436
|
context: F.context,
|
|
10412
10437
|
values: i,
|
|
10413
10438
|
fields: {}
|
|
@@ -10514,7 +10539,7 @@ function Bd(e, t) {
|
|
|
10514
10539
|
} = x, [M, I] = L[0], R = {
|
|
10515
10540
|
id: M,
|
|
10516
10541
|
type: I
|
|
10517
|
-
}, B =
|
|
10542
|
+
}, B = pt({
|
|
10518
10543
|
context: F,
|
|
10519
10544
|
values: {
|
|
10520
10545
|
..._,
|
|
@@ -10561,7 +10586,7 @@ function Bd(e, t) {
|
|
|
10561
10586
|
} = x, C = `${_},${A}`, F = await H.getHandler().getActionData({
|
|
10562
10587
|
action: C,
|
|
10563
10588
|
context: o
|
|
10564
|
-
}), S =
|
|
10589
|
+
}), S = pt({
|
|
10565
10590
|
context: F.context,
|
|
10566
10591
|
values: i,
|
|
10567
10592
|
fields: {}
|
|
@@ -10663,7 +10688,7 @@ function Bd(e, t) {
|
|
|
10663
10688
|
treeExpandable: M = !1,
|
|
10664
10689
|
limit: I
|
|
10665
10690
|
}) {
|
|
10666
|
-
const R =
|
|
10691
|
+
const R = Gr();
|
|
10667
10692
|
if (C !== "current") {
|
|
10668
10693
|
const B = await H.getHandler().getView({
|
|
10669
10694
|
model: _,
|
|
@@ -10724,9 +10749,9 @@ function Bd(e, t) {
|
|
|
10724
10749
|
});
|
|
10725
10750
|
}
|
|
10726
10751
|
}
|
|
10727
|
-
return /* @__PURE__ */ n(
|
|
10752
|
+
return /* @__PURE__ */ n(ji, {
|
|
10728
10753
|
lang: s,
|
|
10729
|
-
children: /* @__PURE__ */ n(
|
|
10754
|
+
children: /* @__PURE__ */ n(Za, {
|
|
10730
10755
|
openShortcut: y,
|
|
10731
10756
|
openAction: O,
|
|
10732
10757
|
openRelate: v,
|
|
@@ -10740,7 +10765,7 @@ function Bd(e, t) {
|
|
|
10740
10765
|
onChangeTab: (x) => {
|
|
10741
10766
|
l(x);
|
|
10742
10767
|
},
|
|
10743
|
-
children: /* @__PURE__ */ n(
|
|
10768
|
+
children: /* @__PURE__ */ n(el, {
|
|
10744
10769
|
ref: f,
|
|
10745
10770
|
globalValues: i,
|
|
10746
10771
|
children: r
|
|
@@ -10748,10 +10773,10 @@ function Bd(e, t) {
|
|
|
10748
10773
|
})
|
|
10749
10774
|
});
|
|
10750
10775
|
}
|
|
10751
|
-
const
|
|
10752
|
-
useToken:
|
|
10776
|
+
const wu = gt(Kd), {
|
|
10777
|
+
useToken: Wd
|
|
10753
10778
|
} = Me;
|
|
10754
|
-
function
|
|
10779
|
+
function Yd(e) {
|
|
10755
10780
|
const {
|
|
10756
10781
|
label: t,
|
|
10757
10782
|
onClose: r,
|
|
@@ -10760,7 +10785,7 @@ function jd(e) {
|
|
|
10760
10785
|
onSelected: s
|
|
10761
10786
|
} = e, {
|
|
10762
10787
|
token: a
|
|
10763
|
-
} =
|
|
10788
|
+
} = Wd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
10764
10789
|
return /* @__PURE__ */ P("div", {
|
|
10765
10790
|
onClick: () => {
|
|
10766
10791
|
!o && s(i);
|
|
@@ -10814,7 +10839,7 @@ function jd(e) {
|
|
|
10814
10839
|
})]
|
|
10815
10840
|
});
|
|
10816
10841
|
}
|
|
10817
|
-
function
|
|
10842
|
+
function bu() {
|
|
10818
10843
|
const e = K(st), {
|
|
10819
10844
|
activeKey: t,
|
|
10820
10845
|
tabs: r,
|
|
@@ -10822,7 +10847,7 @@ function yu() {
|
|
|
10822
10847
|
onChangeTab: o
|
|
10823
10848
|
} = e || {};
|
|
10824
10849
|
return /* @__PURE__ */ n(Z, {
|
|
10825
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
10850
|
+
children: r.map((s) => /* @__PURE__ */ n(Yd, {
|
|
10826
10851
|
tabKey: s.key,
|
|
10827
10852
|
label: s.title,
|
|
10828
10853
|
onClose: i,
|
|
@@ -10831,7 +10856,7 @@ function yu() {
|
|
|
10831
10856
|
}, s.key))
|
|
10832
10857
|
});
|
|
10833
10858
|
}
|
|
10834
|
-
function
|
|
10859
|
+
function Gd(e) {
|
|
10835
10860
|
const {
|
|
10836
10861
|
tab: t
|
|
10837
10862
|
} = e, r = K(st), {
|
|
@@ -10844,11 +10869,11 @@ function Kd(e) {
|
|
|
10844
10869
|
children: t.content
|
|
10845
10870
|
});
|
|
10846
10871
|
}
|
|
10847
|
-
const
|
|
10848
|
-
function
|
|
10872
|
+
const Ud = qe.memo(Gd, () => !0);
|
|
10873
|
+
function xu() {
|
|
10849
10874
|
const e = K(st), {
|
|
10850
10875
|
tabs: t
|
|
10851
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
10876
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Ud, {
|
|
10852
10877
|
tab: i
|
|
10853
10878
|
}, i.key))) || null;
|
|
10854
10879
|
return /* @__PURE__ */ n(Z, {
|
|
@@ -10856,8 +10881,8 @@ function vu() {
|
|
|
10856
10881
|
});
|
|
10857
10882
|
}
|
|
10858
10883
|
const {
|
|
10859
|
-
useToken:
|
|
10860
|
-
} = Me,
|
|
10884
|
+
useToken: qd
|
|
10885
|
+
} = Me, Cu = (e) => {
|
|
10861
10886
|
const {
|
|
10862
10887
|
onRetrieveShortcuts: t,
|
|
10863
10888
|
onCheckIsFavourite: r,
|
|
@@ -10867,7 +10892,7 @@ const {
|
|
|
10867
10892
|
t: p
|
|
10868
10893
|
} = K(ye) || {}, {
|
|
10869
10894
|
token: v
|
|
10870
|
-
} =
|
|
10895
|
+
} = qd(), y = K(st), {
|
|
10871
10896
|
openShortcut: V,
|
|
10872
10897
|
tabs: O,
|
|
10873
10898
|
activeKey: x,
|
|
@@ -10946,9 +10971,9 @@ const {
|
|
|
10946
10971
|
flexGrow: 1,
|
|
10947
10972
|
paddingLeft: 10
|
|
10948
10973
|
},
|
|
10949
|
-
children: /* @__PURE__ */ n(
|
|
10974
|
+
children: /* @__PURE__ */ n(ft, {
|
|
10950
10975
|
title: p == null ? void 0 : p("edit_favorites"),
|
|
10951
|
-
children: /* @__PURE__ */ n(
|
|
10976
|
+
children: /* @__PURE__ */ n(Wr, {
|
|
10952
10977
|
style: {
|
|
10953
10978
|
color: v.colorPrimary,
|
|
10954
10979
|
cursor: "pointer"
|
|
@@ -11022,11 +11047,11 @@ const {
|
|
|
11022
11047
|
return /* @__PURE__ */ P(Z, {
|
|
11023
11048
|
children: [/* @__PURE__ */ n(Ie, {
|
|
11024
11049
|
type: s ? "primary" : "default",
|
|
11025
|
-
icon: s ? /* @__PURE__ */ n(
|
|
11050
|
+
icon: s ? /* @__PURE__ */ n(Nr, {
|
|
11026
11051
|
style: {
|
|
11027
11052
|
color: "white"
|
|
11028
11053
|
}
|
|
11029
|
-
}) : /* @__PURE__ */ n(
|
|
11054
|
+
}) : /* @__PURE__ */ n(Lr, {}),
|
|
11030
11055
|
style: {
|
|
11031
11056
|
width: 50,
|
|
11032
11057
|
borderTopRightRadius: 0,
|
|
@@ -11054,56 +11079,56 @@ const {
|
|
|
11054
11079
|
});
|
|
11055
11080
|
};
|
|
11056
11081
|
export {
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11082
|
+
Jc as ActionBar,
|
|
11083
|
+
Kc as Binary,
|
|
11084
|
+
as as Boolean,
|
|
11085
|
+
Ur as Button,
|
|
11086
|
+
Gi as ButtonGroup,
|
|
11087
|
+
Jr as Char,
|
|
11088
|
+
Pd as CodeEditor,
|
|
11089
|
+
ld as ConfigContext,
|
|
11065
11090
|
H as ConnectionProvider,
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11091
|
+
el as ContentRootProvider,
|
|
11092
|
+
xu as CurrentTabContent,
|
|
11093
|
+
Od as Dashboard,
|
|
11094
|
+
vd as DashboardGrid,
|
|
11095
|
+
xd as DashboardGridItem,
|
|
11096
|
+
Lc as Date,
|
|
11097
|
+
Pc as DateTime,
|
|
11098
|
+
Qc as Email,
|
|
11099
|
+
Nc as ExportModal,
|
|
11100
|
+
Cu as FavouriteButton,
|
|
11076
11101
|
lo as Float,
|
|
11077
|
-
|
|
11102
|
+
xc as FloatTime,
|
|
11078
11103
|
Yt as Form,
|
|
11079
11104
|
Gt as FormModal,
|
|
11080
|
-
|
|
11105
|
+
ql as GraphIndicator,
|
|
11081
11106
|
xo as Group,
|
|
11082
|
-
|
|
11107
|
+
da as Image,
|
|
11083
11108
|
Qt as Integer,
|
|
11084
11109
|
cn as Label,
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11110
|
+
Yl as Many2one,
|
|
11111
|
+
Ad as Markdown,
|
|
11112
|
+
Dd as MultiCheckbox,
|
|
11113
|
+
Tc as Notebook,
|
|
11114
|
+
wc as One2many,
|
|
11115
|
+
Cl as ProgressBar,
|
|
11116
|
+
kd as Radio,
|
|
11117
|
+
Bc as Reference,
|
|
11118
|
+
wu as RootView,
|
|
11094
11119
|
co as SearchFilter,
|
|
11095
11120
|
go as SearchModal,
|
|
11096
11121
|
po as SearchTree,
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11122
|
+
Zr as Selection,
|
|
11123
|
+
Ic as Separator,
|
|
11124
|
+
Nd as Steps,
|
|
11125
|
+
Md as Switch,
|
|
11126
|
+
bu as TabSelector,
|
|
11127
|
+
_d as Tag,
|
|
11128
|
+
_a as Tags,
|
|
11129
|
+
Oc as Text,
|
|
11105
11130
|
mn as Tree,
|
|
11106
|
-
|
|
11131
|
+
Xc as Url,
|
|
11107
11132
|
it as iconMapper,
|
|
11108
11133
|
Kt as showConfirmDialog
|
|
11109
11134
|
};
|