@gisce/react-ooui 2.0.0-alpha.47 → 2.0.0-alpha.48
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/common/DatePicker.d.ts.map +1 -1
- package/dist/helpers/dayjs.d.ts +3 -0
- package/dist/helpers/dayjs.d.ts.map +1 -0
- package/dist/react-ooui.es.js +623 -617
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/base/Time.d.ts.map +1 -1
- package/dist/widgets/custom/Comments.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/common/DatePicker.tsx +1 -5
- package/src/helpers/dayjs.ts +21 -0
- package/src/widgets/base/Time.tsx +3 -6
- package/src/widgets/custom/Comments.tsx +4 -7
package/dist/react-ooui.es.js
CHANGED
|
@@ -2,51 +2,55 @@ var qo = Object.defineProperty;
|
|
|
2
2
|
var zo = (e, t, r) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ir = (e, t, r) => (zo(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import { jsxs as A, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
6
|
-
import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as
|
|
7
|
-
import { Label as Dt, Field as _n, Tree as Er, Reference as
|
|
5
|
+
import et, { useContext as H, useState as w, useEffect as me, useRef as de, useCallback as De, forwardRef as wt, useImperativeHandle as bt, Fragment as Jo } from "react";
|
|
6
|
+
import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as it, Select as Ct, Checkbox as Ht, Alert as tt, Timeline as Rn, Statistic as Xo, Card as Nn, Tag as _r, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ar, Progress as Zo, Avatar as Dr, Badge as Qo, Pagination as ei, Tabs as kr, Popover as ti, Radio as sr, Switch as ni, Steps as ar, Layout as ri } from "antd";
|
|
7
|
+
import { Label as Dt, Field as _n, Tree as Er, Reference as oi, Selection as Ln, Many2one as Mr, Boolean as ii, Container as si, parseContext as vt, Form as Nr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as ai, parseContextFields as Sn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Lr, parseGraph as Bn, graphFieldUtils as li } from "@gisce/ooui";
|
|
8
8
|
import * as cr from "@ant-design/icons";
|
|
9
|
-
import Br, { QuestionCircleOutlined as $r, ExclamationCircleOutlined as pt, LoadingOutlined as
|
|
9
|
+
import Br, { QuestionCircleOutlined as $r, ExclamationCircleOutlined as pt, LoadingOutlined as at, DownOutlined as kt, WarningOutlined as Hr, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Kr, FolderOpenOutlined as $n, DownloadOutlined as Hn, ClearOutlined as Kn, StarFilled as Wr, StarOutlined as jr, UpOutlined as ci, SearchOutlined as Wn, RightCircleOutlined as di, ThunderboltOutlined as jn, PrinterOutlined as Yn, EnterOutlined as Yr, PlusSquareOutlined as ui, MinusSquareOutlined as fi, FileAddOutlined as dn, AlignLeftOutlined as mi, ApiOutlined as hi, DeleteOutlined as Gn, LeftOutlined as Gr, RightOutlined as Ur, EyeOutlined as pi, FormOutlined as Kt, TableOutlined as Un, AreaChartOutlined as gi, CalendarOutlined as yi, LinkOutlined as qr, SaveOutlined as vi, CopyOutlined as qn, InfoCircleOutlined as zr, ReloadOutlined as un, EditOutlined as Jr, FilterOutlined as Xr, CloseCircleFilled as wi, BorderOuterOutlined as bi, SettingOutlined as Ci, ExportOutlined as xi } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as zn } from "interweave";
|
|
11
11
|
import * as dr from "@tabler/icons-react";
|
|
12
|
-
import
|
|
12
|
+
import Si from "antd/lib/input/TextArea";
|
|
13
13
|
import Mt from "styled-components";
|
|
14
14
|
import Jn from "react-measure";
|
|
15
|
-
import
|
|
15
|
+
import Ti from "lodash/debounce";
|
|
16
16
|
import An from "antd/lib/typography/Title";
|
|
17
|
-
import { Line as
|
|
18
|
-
import
|
|
17
|
+
import { Line as Ii, Column as Fi, Pie as Oi } from "@ant-design/plots";
|
|
18
|
+
import nt from "dayjs";
|
|
19
19
|
import xt from "use-deep-compare-effect";
|
|
20
|
-
import { Table as
|
|
21
|
-
import { fileTypeFromBuffer as
|
|
22
|
-
import { isPresetStatusColor as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import Pi from "dayjs/plugin/
|
|
29
|
-
import Li from "
|
|
30
|
-
import Bi from "
|
|
31
|
-
import
|
|
32
|
-
import Hi from "
|
|
33
|
-
import Ki from "
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
20
|
+
import { Table as Ri } from "@gisce/react-formiga-table";
|
|
21
|
+
import { fileTypeFromBuffer as _i } from "file-type-buffer-browser";
|
|
22
|
+
import { isPresetStatusColor as Vi, isPresetColor as Ai } from "antd/lib/_util/colors";
|
|
23
|
+
import Di from "dayjs/plugin/advancedFormat";
|
|
24
|
+
import ki from "dayjs/plugin/customParseFormat";
|
|
25
|
+
import Ei from "dayjs/plugin/isoWeek";
|
|
26
|
+
import Mi from "dayjs/plugin/timezone";
|
|
27
|
+
import Ni from "dayjs/plugin/duration";
|
|
28
|
+
import Pi from "dayjs/plugin/relativeTime";
|
|
29
|
+
import Li from "dayjs/plugin/weekday";
|
|
30
|
+
import Bi from "dayjs/plugin/localeData";
|
|
31
|
+
import $i from "antd/es/typography/Link";
|
|
32
|
+
import { GridUi as Hi } from "@gisce/fiber-diagram";
|
|
33
|
+
import { FieldSet as Ki, ExportModal as Wi } from "@gisce/react-formiga-components";
|
|
34
|
+
import ji from "validator/lib/isURL";
|
|
35
|
+
import Yi from "validator/lib/isEmail";
|
|
36
|
+
import { useHotkeys as Gi } from "react-hotkeys-hook";
|
|
37
|
+
import Ui from "react-markdown";
|
|
38
|
+
import qi from "remark-gfm";
|
|
39
|
+
import zi from "@monaco-editor/react";
|
|
40
|
+
import Ji from "md5";
|
|
41
|
+
import { WidthProvider as Xi, Responsive as Zi } from "react-grid-layout";
|
|
38
42
|
import "react-grid-layout/css/styles.css";
|
|
39
43
|
import { v4 as Zr } from "uuid";
|
|
40
|
-
const { Text:
|
|
44
|
+
const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
41
45
|
left: "justify-start",
|
|
42
46
|
center: "justify-center",
|
|
43
47
|
right: "justify-end"
|
|
44
48
|
}, fn = (e) => {
|
|
45
|
-
const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: p } =
|
|
49
|
+
const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: p } = ts(), h = l === void 0 ? Qi : es;
|
|
46
50
|
return /* @__PURE__ */ A(
|
|
47
51
|
"div",
|
|
48
52
|
{
|
|
49
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
53
|
+
className: `flex flex-row items-center pb-1 pt-1 ${ns[m]}`,
|
|
50
54
|
children: [
|
|
51
55
|
s && /* @__PURE__ */ n(ht, { title: s, children: /* @__PURE__ */ n(
|
|
52
56
|
$r,
|
|
@@ -61,7 +65,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
|
|
|
61
65
|
]
|
|
62
66
|
}
|
|
63
67
|
);
|
|
64
|
-
},
|
|
68
|
+
}, rs = {
|
|
65
69
|
true: "Sí",
|
|
66
70
|
false: "No",
|
|
67
71
|
simple_search: "Búsqueda simple",
|
|
@@ -152,7 +156,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
|
|
|
152
156
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
|
|
153
157
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
154
158
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
155
|
-
},
|
|
159
|
+
}, os = {
|
|
156
160
|
true: "Yes",
|
|
157
161
|
false: "No",
|
|
158
162
|
simple_search: "Simple search",
|
|
@@ -243,7 +247,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
|
|
|
243
247
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
|
|
244
248
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
245
249
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
246
|
-
},
|
|
250
|
+
}, is = {
|
|
247
251
|
true: "Sí",
|
|
248
252
|
false: "No",
|
|
249
253
|
simple_search: "Búsqueda simple",
|
|
@@ -334,13 +338,13 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
|
|
|
334
338
|
recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en ésta página.",
|
|
335
339
|
selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
|
|
336
340
|
allRecordsSelected: "Hay {totalRecords} registros seleccionados."
|
|
337
|
-
},
|
|
338
|
-
ca_ES:
|
|
339
|
-
en_US:
|
|
340
|
-
es_ES:
|
|
341
|
-
}, he =
|
|
341
|
+
}, ss = {
|
|
342
|
+
ca_ES: rs,
|
|
343
|
+
en_US: os,
|
|
344
|
+
es_ES: is
|
|
345
|
+
}, he = et.createContext(
|
|
342
346
|
null
|
|
343
|
-
),
|
|
347
|
+
), as = (e) => {
|
|
344
348
|
const { children: t, lang: r } = e;
|
|
345
349
|
function i(o) {
|
|
346
350
|
return Fe(o, r);
|
|
@@ -357,7 +361,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
|
|
|
357
361
|
);
|
|
358
362
|
}, Fe = (e, t) => {
|
|
359
363
|
var i;
|
|
360
|
-
return ((i =
|
|
364
|
+
return ((i = ss[t]) == null ? void 0 : i[e]) || e;
|
|
361
365
|
};
|
|
362
366
|
function ge({
|
|
363
367
|
ooui: e,
|
|
@@ -410,12 +414,12 @@ function ge({
|
|
|
410
414
|
h()
|
|
411
415
|
] }))();
|
|
412
416
|
}
|
|
413
|
-
const { confirm:
|
|
417
|
+
const { confirm: ls } = Je, qt = ({
|
|
414
418
|
onOk: e,
|
|
415
419
|
confirmMessage: t,
|
|
416
420
|
lang: r
|
|
417
421
|
}) => {
|
|
418
|
-
|
|
422
|
+
ls({
|
|
419
423
|
title: Fe("confirmation", r),
|
|
420
424
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
421
425
|
centered: !0,
|
|
@@ -424,7 +428,7 @@ const { confirm: rs } = Je, qt = ({
|
|
|
424
428
|
cancelText: Fe("cancel", r),
|
|
425
429
|
onOk: e
|
|
426
430
|
});
|
|
427
|
-
}, Ne =
|
|
431
|
+
}, Ne = et.createContext(null), cs = (e) => {
|
|
428
432
|
const {
|
|
429
433
|
children: t,
|
|
430
434
|
activeId: r,
|
|
@@ -557,7 +561,7 @@ const { confirm: rs } = Je, qt = ({
|
|
|
557
561
|
STOCK_UNINDENT: "AlignLeft",
|
|
558
562
|
STOCK_PREFERENCES: "Setting"
|
|
559
563
|
}, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), ur.hasOwnProperty(e) ? fr(ur[e], t) : fr(e, t));
|
|
560
|
-
function
|
|
564
|
+
function ds(e) {
|
|
561
565
|
return `${e.split("-").map(
|
|
562
566
|
(t) => t.replace(
|
|
563
567
|
/\w\S*/g,
|
|
@@ -567,22 +571,22 @@ function is(e) {
|
|
|
567
571
|
}
|
|
568
572
|
function fr(e, t) {
|
|
569
573
|
let r = e.charAt(0).toUpperCase() + e.slice(1);
|
|
570
|
-
r.indexOf("-") !== -1 && (r =
|
|
574
|
+
r.indexOf("-") !== -1 && (r = ds(r));
|
|
571
575
|
const i = `${r}Outlined`;
|
|
572
576
|
if (cr[i])
|
|
573
|
-
return () =>
|
|
577
|
+
return () => et.createElement(cr[i], {
|
|
574
578
|
...t
|
|
575
579
|
});
|
|
576
580
|
const o = `Icon${r}`;
|
|
577
581
|
if (dr[o]) {
|
|
578
582
|
const s = () => {
|
|
579
583
|
var l;
|
|
580
|
-
return
|
|
584
|
+
return et.createElement(dr[o], {
|
|
581
585
|
fill: "transparent",
|
|
582
586
|
size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
|
|
583
587
|
});
|
|
584
588
|
};
|
|
585
|
-
return () =>
|
|
589
|
+
return () => et.createElement(Br, {
|
|
586
590
|
component: s,
|
|
587
591
|
...t
|
|
588
592
|
});
|
|
@@ -617,7 +621,7 @@ const Qr = (e) => {
|
|
|
617
621
|
}
|
|
618
622
|
function v() {
|
|
619
623
|
if (m)
|
|
620
|
-
return /* @__PURE__ */ n(
|
|
624
|
+
return /* @__PURE__ */ n(at, {});
|
|
621
625
|
if (l) {
|
|
622
626
|
const T = ct(l);
|
|
623
627
|
return T && /* @__PURE__ */ n(T, {});
|
|
@@ -636,7 +640,7 @@ const Qr = (e) => {
|
|
|
636
640
|
children: i
|
|
637
641
|
}
|
|
638
642
|
) });
|
|
639
|
-
},
|
|
643
|
+
}, us = (e) => {
|
|
640
644
|
const { ooui: t } = e, { defaultButton: r, secondaryButtons: i } = t, {
|
|
641
645
|
id: o,
|
|
642
646
|
caption: s,
|
|
@@ -651,7 +655,7 @@ const Qr = (e) => {
|
|
|
651
655
|
} = r || {}, h = H(Ne), { executeButtonAction: g } = h || {}, [y, v] = w(!1), { lang: T } = H(he);
|
|
652
656
|
function F() {
|
|
653
657
|
if (y)
|
|
654
|
-
return /* @__PURE__ */ n(
|
|
658
|
+
return /* @__PURE__ */ n(at, {});
|
|
655
659
|
if (u) {
|
|
656
660
|
const R = ct(u);
|
|
657
661
|
return R && /* @__PURE__ */ n(R, {});
|
|
@@ -684,7 +688,7 @@ const Qr = (e) => {
|
|
|
684
688
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
685
689
|
type: c ? "primary" : void 0,
|
|
686
690
|
overlay: /* @__PURE__ */ n(
|
|
687
|
-
|
|
691
|
+
fs,
|
|
688
692
|
{
|
|
689
693
|
ooui: i,
|
|
690
694
|
executeButtonAction: g,
|
|
@@ -699,7 +703,7 @@ const Qr = (e) => {
|
|
|
699
703
|
) });
|
|
700
704
|
if (r)
|
|
701
705
|
return /* @__PURE__ */ n(Qr, { ooui: r });
|
|
702
|
-
},
|
|
706
|
+
}, fs = (e) => {
|
|
703
707
|
const { ooui: t, executeButtonAction: r, lang: i } = e;
|
|
704
708
|
if (!t)
|
|
705
709
|
return null;
|
|
@@ -733,7 +737,7 @@ const Qr = (e) => {
|
|
|
733
737
|
}
|
|
734
738
|
function F() {
|
|
735
739
|
if (g)
|
|
736
|
-
return /* @__PURE__ */ n(
|
|
740
|
+
return /* @__PURE__ */ n(at, {});
|
|
737
741
|
if (f) {
|
|
738
742
|
const b = ct(f);
|
|
739
743
|
return b && /* @__PURE__ */ n(b, {});
|
|
@@ -751,7 +755,7 @@ const Qr = (e) => {
|
|
|
751
755
|
);
|
|
752
756
|
});
|
|
753
757
|
return /* @__PURE__ */ n(He, { children: o });
|
|
754
|
-
},
|
|
758
|
+
}, ms = 0.7;
|
|
755
759
|
function mr() {
|
|
756
760
|
const { innerWidth: e, innerHeight: t } = window;
|
|
757
761
|
return {
|
|
@@ -769,7 +773,7 @@ function mn() {
|
|
|
769
773
|
}
|
|
770
774
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
771
775
|
}, []), {
|
|
772
|
-
modalWidth: e.width *
|
|
776
|
+
modalWidth: e.width * ms,
|
|
773
777
|
modalHeight: e.height,
|
|
774
778
|
width: e.width,
|
|
775
779
|
height: e.height
|
|
@@ -805,9 +809,9 @@ const eo = (e) => {
|
|
|
805
809
|
message: t,
|
|
806
810
|
title: i
|
|
807
811
|
};
|
|
808
|
-
}, { error:
|
|
812
|
+
}, { error: hs, warning: ps } = Je, ze = (e) => {
|
|
809
813
|
const { message: t, type: r, title: i } = eo(e);
|
|
810
|
-
(r === "error" ?
|
|
814
|
+
(r === "error" ? hs : ps)({
|
|
811
815
|
title: i,
|
|
812
816
|
icon: r === "error" ? /* @__PURE__ */ n(pt, {}) : /* @__PURE__ */ n(Hr, {}),
|
|
813
817
|
centered: !0,
|
|
@@ -856,7 +860,7 @@ const eo = (e) => {
|
|
|
856
860
|
return u.map((x, S) => /* @__PURE__ */ A(be, { style: { paddingBottom: 20 }, children: [
|
|
857
861
|
/* @__PURE__ */ n(ae, { flex: "8rem", style: { paddingRight: 10 }, children: x.name }),
|
|
858
862
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
859
|
-
|
|
863
|
+
Si,
|
|
860
864
|
{
|
|
861
865
|
rows: 4,
|
|
862
866
|
value: g[x.code] || "",
|
|
@@ -906,7 +910,7 @@ const eo = (e) => {
|
|
|
906
910
|
/* @__PURE__ */ n(
|
|
907
911
|
Oe,
|
|
908
912
|
{
|
|
909
|
-
icon: p ? /* @__PURE__ */ n(
|
|
913
|
+
icon: p ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Et, {}),
|
|
910
914
|
disabled: p,
|
|
911
915
|
onClick: R,
|
|
912
916
|
style: { marginLeft: 15 },
|
|
@@ -937,16 +941,16 @@ function Ze(e) {
|
|
|
937
941
|
const { tooltip: t, ...r } = e;
|
|
938
942
|
return /* @__PURE__ */ n(ht, { title: t, children: /* @__PURE__ */ n(Oe, { ...r }) });
|
|
939
943
|
}
|
|
940
|
-
const { info:
|
|
941
|
-
|
|
944
|
+
const { info: gs } = Je, ft = (e) => {
|
|
945
|
+
gs({
|
|
942
946
|
title: "",
|
|
943
947
|
centered: !0,
|
|
944
948
|
content: e
|
|
945
949
|
});
|
|
946
|
-
}, { useToken:
|
|
947
|
-
const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } =
|
|
950
|
+
}, { useToken: ys } = Pe, no = (e) => {
|
|
951
|
+
const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = ys(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
|
|
948
952
|
let m = /* @__PURE__ */ n(
|
|
949
|
-
|
|
953
|
+
it,
|
|
950
954
|
{
|
|
951
955
|
disabled: o || l && !r,
|
|
952
956
|
id: i,
|
|
@@ -956,14 +960,14 @@ const { info: us } = Je, ft = (e) => {
|
|
|
956
960
|
}
|
|
957
961
|
);
|
|
958
962
|
return s && (m = /* @__PURE__ */ n(
|
|
959
|
-
|
|
963
|
+
it.Password,
|
|
960
964
|
{
|
|
961
965
|
disabled: o,
|
|
962
966
|
id: i,
|
|
963
967
|
onBlur: f
|
|
964
968
|
}
|
|
965
|
-
)), l && !o && !r && (m = /* @__PURE__ */ n(
|
|
966
|
-
},
|
|
969
|
+
)), l && !o && !r && (m = /* @__PURE__ */ n(vs, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...e, children: m });
|
|
970
|
+
}, vs = ({
|
|
967
971
|
value: e,
|
|
968
972
|
field: t,
|
|
969
973
|
requiredStyle: r,
|
|
@@ -988,7 +992,7 @@ const { info: us } = Je, ft = (e) => {
|
|
|
988
992
|
c || f(!0);
|
|
989
993
|
},
|
|
990
994
|
children: /* @__PURE__ */ n(
|
|
991
|
-
|
|
995
|
+
it,
|
|
992
996
|
{
|
|
993
997
|
value: e,
|
|
994
998
|
disabled: !0,
|
|
@@ -1019,7 +1023,7 @@ const { info: us } = Je, ft = (e) => {
|
|
|
1019
1023
|
)
|
|
1020
1024
|
] }) : /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ A(be, { gutter: 8, wrap: !1, children: [
|
|
1021
1025
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
1022
|
-
|
|
1026
|
+
it,
|
|
1023
1027
|
{
|
|
1024
1028
|
value: e,
|
|
1025
1029
|
id: t,
|
|
@@ -1042,16 +1046,16 @@ const { info: us } = Je, ft = (e) => {
|
|
|
1042
1046
|
}
|
|
1043
1047
|
) })
|
|
1044
1048
|
] }) });
|
|
1045
|
-
}, { defaultAlgorithm:
|
|
1049
|
+
}, { defaultAlgorithm: ws, defaultSeed: bs } = Pe, Cs = ws(bs), { Option: xs } = Ct, ro = (e) => {
|
|
1046
1050
|
const { ooui: t } = e, { required: r } = t;
|
|
1047
1051
|
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(oo, { ...e }) });
|
|
1048
1052
|
}, oo = (e) => {
|
|
1049
1053
|
const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((c) => {
|
|
1050
1054
|
const [f, m] = c;
|
|
1051
|
-
return /* @__PURE__ */ n(
|
|
1055
|
+
return /* @__PURE__ */ n(xs, { value: f, children: m }, f);
|
|
1052
1056
|
});
|
|
1053
1057
|
return /* @__PURE__ */ n(
|
|
1054
|
-
a && !s ?
|
|
1058
|
+
a && !s ? Ss : Ct,
|
|
1055
1059
|
{
|
|
1056
1060
|
disabled: s,
|
|
1057
1061
|
onChange: r,
|
|
@@ -1062,17 +1066,17 @@ const { info: us } = Je, ft = (e) => {
|
|
|
1062
1066
|
children: d
|
|
1063
1067
|
}
|
|
1064
1068
|
);
|
|
1065
|
-
},
|
|
1069
|
+
}, Ss = Mt(Ct)`
|
|
1066
1070
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1067
|
-
background-color: ${
|
|
1071
|
+
background-color: ${Cs.colorPrimaryBg};
|
|
1068
1072
|
}
|
|
1069
|
-
`, { defaultAlgorithm:
|
|
1073
|
+
`, { defaultAlgorithm: Ts, defaultSeed: Is } = Pe, hr = Ts(Is), Fs = (e) => {
|
|
1070
1074
|
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
1071
|
-
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(
|
|
1072
|
-
},
|
|
1075
|
+
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Os, { id: r, readOnly: i, required: o }) });
|
|
1076
|
+
}, Os = (e) => {
|
|
1073
1077
|
const { required: t, readOnly: r, ...i } = e;
|
|
1074
|
-
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ?
|
|
1075
|
-
},
|
|
1078
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? Rs : Ht, { disabled: r, ...i }) });
|
|
1079
|
+
}, Rs = Mt(Ht)`
|
|
1076
1080
|
.ant-checkbox-inner {
|
|
1077
1081
|
background-color: ${hr.colorPrimaryBg};
|
|
1078
1082
|
}
|
|
@@ -1081,12 +1085,12 @@ const { info: us } = Je, ft = (e) => {
|
|
|
1081
1085
|
background-color: ${hr.colorPrimary};
|
|
1082
1086
|
}
|
|
1083
1087
|
`;
|
|
1084
|
-
function
|
|
1088
|
+
function _s(e) {
|
|
1085
1089
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1086
1090
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1087
1091
|
}
|
|
1088
1092
|
async function At(e) {
|
|
1089
|
-
const t = await
|
|
1093
|
+
const t = await _i(
|
|
1090
1094
|
Buffer.from(e, "base64")
|
|
1091
1095
|
);
|
|
1092
1096
|
return t || {
|
|
@@ -1105,10 +1109,10 @@ function hn(e, t) {
|
|
|
1105
1109
|
const o = new Uint8Array(i), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
|
|
1106
1110
|
window.open(a);
|
|
1107
1111
|
}
|
|
1108
|
-
const
|
|
1112
|
+
const Vs = (e) => {
|
|
1109
1113
|
const { ooui: t } = e, { required: r, id: i } = t, o = ct(i);
|
|
1110
|
-
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
1111
|
-
},
|
|
1114
|
+
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(As, { ooui: t }) });
|
|
1115
|
+
}, As = (e) => {
|
|
1112
1116
|
const { ooui: t, value: r, onChange: i } = e, { readOnly: o } = t, s = de(null), { t: a } = H(he), l = (f) => {
|
|
1113
1117
|
i == null || i(f);
|
|
1114
1118
|
};
|
|
@@ -1177,10 +1181,10 @@ const Is = (e) => {
|
|
|
1177
1181
|
)
|
|
1178
1182
|
] }) })
|
|
1179
1183
|
] });
|
|
1180
|
-
},
|
|
1184
|
+
}, Ds = (e) => {
|
|
1181
1185
|
const { ooui: t } = e, { required: r } = t;
|
|
1182
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
1183
|
-
},
|
|
1186
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(ks, {}) });
|
|
1187
|
+
}, ks = (e) => {
|
|
1184
1188
|
const { value: t, onChange: r } = e;
|
|
1185
1189
|
if (!t)
|
|
1186
1190
|
return null;
|
|
@@ -1190,7 +1194,7 @@ const Is = (e) => {
|
|
|
1190
1194
|
return console.log(i), null;
|
|
1191
1195
|
}
|
|
1192
1196
|
return /* @__PURE__ */ n(
|
|
1193
|
-
|
|
1197
|
+
Hi,
|
|
1194
1198
|
{
|
|
1195
1199
|
inputJson: t,
|
|
1196
1200
|
onChange: (i) => {
|
|
@@ -1201,7 +1205,7 @@ const Is = (e) => {
|
|
|
1201
1205
|
}, Rt = (e) => {
|
|
1202
1206
|
const t = e.arch, r = e.fields, i = new Er(r);
|
|
1203
1207
|
return i.parse(t), i;
|
|
1204
|
-
},
|
|
1208
|
+
}, Es = (e, t, r) => e.columns.map((o) => {
|
|
1205
1209
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1206
1210
|
let d;
|
|
1207
1211
|
return l && (d = (u) => l(u, a, o, r)), {
|
|
@@ -1222,11 +1226,11 @@ const Is = (e) => {
|
|
|
1222
1226
|
o[s] = i[s];
|
|
1223
1227
|
else {
|
|
1224
1228
|
const a = e.findById(s);
|
|
1225
|
-
a instanceof
|
|
1229
|
+
a instanceof oi || a instanceof Ln ? o[s] = i[s] : a instanceof Mr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
|
|
1226
1230
|
model: a.relation,
|
|
1227
1231
|
id: i[s][0],
|
|
1228
1232
|
value: i[s][1]
|
|
1229
|
-
} : a instanceof
|
|
1233
|
+
} : a instanceof ii ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
|
|
1230
1234
|
}
|
|
1231
1235
|
}), o;
|
|
1232
1236
|
});
|
|
@@ -1258,7 +1262,7 @@ function _t({
|
|
|
1258
1262
|
};
|
|
1259
1263
|
return e.sort(l);
|
|
1260
1264
|
}
|
|
1261
|
-
function
|
|
1265
|
+
function Ms(e) {
|
|
1262
1266
|
for (const t in e)
|
|
1263
1267
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1264
1268
|
return !0;
|
|
@@ -1316,10 +1320,10 @@ const Xn = async (e) => {
|
|
|
1316
1320
|
}).concat(l),
|
|
1317
1321
|
f
|
|
1318
1322
|
];
|
|
1319
|
-
},
|
|
1323
|
+
}, Ns = (e) => {
|
|
1320
1324
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
1321
1325
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1322
|
-
},
|
|
1326
|
+
}, Ps = (e, t) => {
|
|
1323
1327
|
const r = {};
|
|
1324
1328
|
return Object.keys(e).forEach((i) => {
|
|
1325
1329
|
var o;
|
|
@@ -1327,7 +1331,7 @@ const Xn = async (e) => {
|
|
|
1327
1331
|
(s) => s.operation !== "pendingRemove"
|
|
1328
1332
|
) : r[i] = e[i];
|
|
1329
1333
|
}), r;
|
|
1330
|
-
},
|
|
1334
|
+
}, Ls = (e) => {
|
|
1331
1335
|
const { ooui: t } = e, { relation: r, context: i, views: o } = t, [s, a] = w(!0), [l, d] = w(), [u, c] = w(/* @__PURE__ */ new Map()), f = H(Ne), { getContext: m } = f || {};
|
|
1332
1336
|
xt(() => {
|
|
1333
1337
|
h();
|
|
@@ -1347,8 +1351,8 @@ const Xn = async (e) => {
|
|
|
1347
1351
|
a(!1);
|
|
1348
1352
|
}
|
|
1349
1353
|
};
|
|
1350
|
-
return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(tt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(
|
|
1351
|
-
},
|
|
1354
|
+
return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(tt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Bs, { ooui: t, views: u }) });
|
|
1355
|
+
}, Bs = (e) => {
|
|
1352
1356
|
const { value: t, views: r, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = w(!1), [d, u] = w(), [c, f] = w(!1), [m, p] = w(), { relation: h, context: g, readOnly: y, summaryField: v, titleField: T } = i, F = s.filter((x) => x.values), b = H(Ne), { getContext: O } = b || {};
|
|
1353
1357
|
xt(() => {
|
|
1354
1358
|
k();
|
|
@@ -1437,11 +1441,11 @@ const Xn = async (e) => {
|
|
|
1437
1441
|
}
|
|
1438
1442
|
)
|
|
1439
1443
|
] });
|
|
1440
|
-
}, { useToken:
|
|
1444
|
+
}, { useToken: $s } = Pe, Hs = (e) => {
|
|
1441
1445
|
const { ooui: t } = e;
|
|
1442
|
-
return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(
|
|
1443
|
-
},
|
|
1444
|
-
const { token: t } =
|
|
1446
|
+
return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(Ks, { ooui: t }) });
|
|
1447
|
+
}, Ks = (e) => {
|
|
1448
|
+
const { token: t } = $s(), { ooui: r, value: i } = e, o = /* @__PURE__ */ A(Z, { children: [
|
|
1445
1449
|
/* @__PURE__ */ A("span", { children: [
|
|
1446
1450
|
r.label,
|
|
1447
1451
|
" "
|
|
@@ -1457,7 +1461,7 @@ const Xn = async (e) => {
|
|
|
1457
1461
|
let a = i;
|
|
1458
1462
|
r.selectionValues.size ? a = r.selectionValues.get(i) : Array.isArray(i) && (a = i[1]);
|
|
1459
1463
|
const l = /* @__PURE__ */ n(
|
|
1460
|
-
|
|
1464
|
+
Xo,
|
|
1461
1465
|
{
|
|
1462
1466
|
title: o,
|
|
1463
1467
|
prefix: s && /* @__PURE__ */ n(s, {}),
|
|
@@ -1466,7 +1470,7 @@ const Xn = async (e) => {
|
|
|
1466
1470
|
}
|
|
1467
1471
|
);
|
|
1468
1472
|
return r.card ? /* @__PURE__ */ n(Nn, { children: l }) : l;
|
|
1469
|
-
},
|
|
1473
|
+
}, Ws = (e, t) => {
|
|
1470
1474
|
if (!t)
|
|
1471
1475
|
return e;
|
|
1472
1476
|
const r = {};
|
|
@@ -1480,7 +1484,7 @@ const Xn = async (e) => {
|
|
|
1480
1484
|
} else
|
|
1481
1485
|
r[i] = e[i];
|
|
1482
1486
|
}), r;
|
|
1483
|
-
}, Ft = (e, t) =>
|
|
1487
|
+
}, Ft = (e, t) => Ws(e, t), Tn = ({
|
|
1484
1488
|
source: e,
|
|
1485
1489
|
target: t,
|
|
1486
1490
|
fields: r
|
|
@@ -1513,7 +1517,7 @@ const Xn = async (e) => {
|
|
|
1513
1517
|
else
|
|
1514
1518
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
1515
1519
|
}), i;
|
|
1516
|
-
},
|
|
1520
|
+
}, js = ({
|
|
1517
1521
|
changedFields: e,
|
|
1518
1522
|
formOoui: t,
|
|
1519
1523
|
types: r
|
|
@@ -1521,7 +1525,7 @@ const Xn = async (e) => {
|
|
|
1521
1525
|
var a;
|
|
1522
1526
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1523
1527
|
return r.includes(s);
|
|
1524
|
-
}).some((o) => o === !0),
|
|
1528
|
+
}).some((o) => o === !0), Ys = ({
|
|
1525
1529
|
fieldsDomain: e,
|
|
1526
1530
|
fields: t
|
|
1527
1531
|
}) => {
|
|
@@ -1529,12 +1533,12 @@ const Xn = async (e) => {
|
|
|
1529
1533
|
return Object.keys(t).forEach((i) => {
|
|
1530
1534
|
r[i] = t[i], e[i] && (r[i].domain = e[i]);
|
|
1531
1535
|
}), r;
|
|
1532
|
-
},
|
|
1536
|
+
}, Gs = (e) => {
|
|
1533
1537
|
const t = {};
|
|
1534
1538
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
|
|
1535
1539
|
(r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
|
|
1536
1540
|
}), t);
|
|
1537
|
-
},
|
|
1541
|
+
}, Us = ({
|
|
1538
1542
|
onChangeFieldActionArgs: e,
|
|
1539
1543
|
values: t,
|
|
1540
1544
|
parentValues: r = {}
|
|
@@ -1595,10 +1599,10 @@ const Nt = ({
|
|
|
1595
1599
|
r += ("00" + o.toString(16)).slice(-2);
|
|
1596
1600
|
}
|
|
1597
1601
|
return r;
|
|
1598
|
-
},
|
|
1602
|
+
}, qs = (e, t) => e.replace(
|
|
1599
1603
|
/\{([^}]+)\}/g,
|
|
1600
1604
|
(r, i) => t[i] !== void 0 ? t[i] : r
|
|
1601
|
-
),
|
|
1605
|
+
), zs = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(co, { ...e }) }), co = (e) => {
|
|
1602
1606
|
const { ooui: t, value: r } = e;
|
|
1603
1607
|
let i = r, o = r;
|
|
1604
1608
|
if (t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (o = r[0], i = r[1]), !r)
|
|
@@ -1607,16 +1611,16 @@ const Nt = ({
|
|
|
1607
1611
|
return /* @__PURE__ */ n(uo, { color: s, children: i });
|
|
1608
1612
|
}, uo = (e) => {
|
|
1609
1613
|
let { color: t } = e, r = {};
|
|
1610
|
-
return !
|
|
1614
|
+
return !Vi(e.color) && !Ai(e.color) && (r = {
|
|
1611
1615
|
color: t,
|
|
1612
1616
|
borderColor: t,
|
|
1613
1617
|
borderStyle: "solid",
|
|
1614
1618
|
borderWidth: "1px"
|
|
1615
1619
|
}, t = `${t}20`), /* @__PURE__ */ n(_r, { ...e, style: r, color: t, children: e.children });
|
|
1616
|
-
},
|
|
1620
|
+
}, Js = (e) => {
|
|
1617
1621
|
const { ooui: t } = e;
|
|
1618
|
-
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(
|
|
1619
|
-
},
|
|
1622
|
+
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Xs, { ooui: t }) });
|
|
1623
|
+
}, Xs = (e) => {
|
|
1620
1624
|
const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g } = r, y = H(Ne), { getContext: v } = y || {};
|
|
1621
1625
|
xt(() => {
|
|
1622
1626
|
F();
|
|
@@ -1696,14 +1700,14 @@ const Nt = ({
|
|
|
1696
1700
|
loading: c
|
|
1697
1701
|
}
|
|
1698
1702
|
) }) });
|
|
1699
|
-
},
|
|
1703
|
+
}, Zs = (e) => {
|
|
1700
1704
|
switch (e) {
|
|
1701
1705
|
case "form":
|
|
1702
1706
|
return Jt;
|
|
1703
1707
|
case "tree":
|
|
1704
1708
|
return pn;
|
|
1705
1709
|
case "notebook":
|
|
1706
|
-
return
|
|
1710
|
+
return zl;
|
|
1707
1711
|
case "group":
|
|
1708
1712
|
return Io;
|
|
1709
1713
|
case "label":
|
|
@@ -1711,83 +1715,83 @@ const Nt = ({
|
|
|
1711
1715
|
case "char":
|
|
1712
1716
|
return no;
|
|
1713
1717
|
case "text":
|
|
1714
|
-
return
|
|
1718
|
+
return Xl;
|
|
1715
1719
|
case "button":
|
|
1716
1720
|
return Qr;
|
|
1717
1721
|
case "buttonGroup":
|
|
1718
|
-
return
|
|
1722
|
+
return us;
|
|
1719
1723
|
case "selection":
|
|
1720
1724
|
return ro;
|
|
1721
1725
|
case "many2one":
|
|
1722
|
-
return
|
|
1726
|
+
return gl;
|
|
1723
1727
|
case "boolean":
|
|
1724
|
-
return
|
|
1728
|
+
return Fs;
|
|
1725
1729
|
case "integer":
|
|
1726
1730
|
return rn;
|
|
1727
1731
|
case "float":
|
|
1728
1732
|
return ho;
|
|
1729
1733
|
case "progressbar":
|
|
1730
|
-
return
|
|
1734
|
+
return Ya;
|
|
1731
1735
|
case "date":
|
|
1732
|
-
return
|
|
1736
|
+
return cc;
|
|
1733
1737
|
case "datetime":
|
|
1734
|
-
return
|
|
1738
|
+
return dc;
|
|
1735
1739
|
case "time":
|
|
1736
|
-
return
|
|
1740
|
+
return uc;
|
|
1737
1741
|
case "one2many":
|
|
1738
1742
|
case "one2many_list":
|
|
1739
1743
|
case "many2many":
|
|
1740
|
-
return
|
|
1744
|
+
return jl;
|
|
1741
1745
|
case "separator":
|
|
1742
|
-
return
|
|
1746
|
+
return Ql;
|
|
1743
1747
|
case "reference":
|
|
1744
|
-
return
|
|
1748
|
+
return mc;
|
|
1745
1749
|
case "binary":
|
|
1746
|
-
return
|
|
1750
|
+
return gc;
|
|
1747
1751
|
case "image":
|
|
1748
|
-
return
|
|
1752
|
+
return Vs;
|
|
1749
1753
|
case "url":
|
|
1750
|
-
return
|
|
1754
|
+
return Fc;
|
|
1751
1755
|
case "email":
|
|
1752
|
-
return
|
|
1756
|
+
return Oc;
|
|
1753
1757
|
case "float_time":
|
|
1754
|
-
return
|
|
1758
|
+
return Gl;
|
|
1755
1759
|
case "fiber_grid":
|
|
1756
|
-
return
|
|
1760
|
+
return Ds;
|
|
1757
1761
|
case "timeline":
|
|
1758
|
-
return
|
|
1762
|
+
return Ls;
|
|
1759
1763
|
case "indicator":
|
|
1760
|
-
return
|
|
1764
|
+
return Hs;
|
|
1761
1765
|
case "tags":
|
|
1762
|
-
return
|
|
1766
|
+
return Js;
|
|
1763
1767
|
case "tag":
|
|
1764
|
-
return
|
|
1768
|
+
return zs;
|
|
1765
1769
|
case "multicheckbox":
|
|
1766
|
-
return
|
|
1770
|
+
return od;
|
|
1767
1771
|
case "markdown":
|
|
1768
|
-
return
|
|
1772
|
+
return sd;
|
|
1769
1773
|
case "radio":
|
|
1770
|
-
return
|
|
1774
|
+
return ld;
|
|
1771
1775
|
case "switch":
|
|
1772
|
-
return
|
|
1776
|
+
return dd;
|
|
1773
1777
|
case "steps":
|
|
1774
|
-
return
|
|
1778
|
+
return fd;
|
|
1775
1779
|
case "codeeditor":
|
|
1776
|
-
return
|
|
1780
|
+
return hd;
|
|
1777
1781
|
case "comments_timeline":
|
|
1778
|
-
return
|
|
1782
|
+
return Cd;
|
|
1779
1783
|
default:
|
|
1780
1784
|
return;
|
|
1781
1785
|
}
|
|
1782
|
-
},
|
|
1783
|
-
const { ooui: t } = e, { type: r } = t, i =
|
|
1784
|
-
return i ?
|
|
1785
|
-
},
|
|
1786
|
+
}, Qs = (e) => {
|
|
1787
|
+
const { ooui: t } = e, { type: r } = t, i = Zs(r);
|
|
1788
|
+
return i ? et.createElement(i, e) : null;
|
|
1789
|
+
}, ea = ({
|
|
1786
1790
|
item: e,
|
|
1787
1791
|
responsiveBehaviour: t
|
|
1788
1792
|
}) => ({
|
|
1789
1793
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
1790
|
-
}),
|
|
1794
|
+
}), ta = ({
|
|
1791
1795
|
row: e,
|
|
1792
1796
|
mustFillWithEmpties: t,
|
|
1793
1797
|
numberOfColumns: r
|
|
@@ -1806,36 +1810,36 @@ const Nt = ({
|
|
|
1806
1810
|
i.push(new Dt({ string: "" }));
|
|
1807
1811
|
}
|
|
1808
1812
|
}), i;
|
|
1809
|
-
},
|
|
1813
|
+
}, na = ({
|
|
1810
1814
|
row: e,
|
|
1811
1815
|
numberOfColumns: t
|
|
1812
|
-
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)),
|
|
1813
|
-
const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof
|
|
1816
|
+
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), ra = (e, t) => {
|
|
1817
|
+
const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof si ? "auto" : "1fr");
|
|
1814
1818
|
if (r.length < t) {
|
|
1815
1819
|
const i = t - r.length;
|
|
1816
1820
|
for (let o = 0; o < i; o++)
|
|
1817
1821
|
r.push("1fr");
|
|
1818
1822
|
}
|
|
1819
1823
|
return r.join(" ");
|
|
1820
|
-
},
|
|
1824
|
+
}, oa = (e, t) => {
|
|
1821
1825
|
const r = t ? "1fr" : "auto", i = "auto";
|
|
1822
1826
|
let o = "";
|
|
1823
1827
|
for (let s = 0; s < e; s++)
|
|
1824
1828
|
o += s % 2 ? r : i, s + 1 < e && (o += " ");
|
|
1825
1829
|
return o;
|
|
1826
|
-
},
|
|
1830
|
+
}, ia = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (e) => {
|
|
1827
1831
|
const { container: t, responsiveBehaviour: r } = e, { rows: i } = t;
|
|
1828
1832
|
let { columns: o } = t;
|
|
1829
|
-
const s =
|
|
1833
|
+
const s = ia(i);
|
|
1830
1834
|
s < o && (o = s);
|
|
1831
1835
|
let a = !1, l = [];
|
|
1832
1836
|
const d = i.map((f, m) => {
|
|
1833
|
-
const p = f.filter((y) => !y.invisible), h =
|
|
1837
|
+
const p = f.filter((y) => !y.invisible), h = na({
|
|
1834
1838
|
row: p,
|
|
1835
1839
|
numberOfColumns: o
|
|
1836
1840
|
});
|
|
1837
1841
|
let g = h;
|
|
1838
|
-
return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g =
|
|
1842
|
+
return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g = ta({
|
|
1839
1843
|
row: h,
|
|
1840
1844
|
numberOfColumns: o,
|
|
1841
1845
|
mustFillWithEmpties: r
|
|
@@ -1843,17 +1847,17 @@ const Nt = ({
|
|
|
1843
1847
|
"div",
|
|
1844
1848
|
{
|
|
1845
1849
|
style: {
|
|
1846
|
-
...
|
|
1850
|
+
...ea({ item: y, responsiveBehaviour: r }),
|
|
1847
1851
|
minWidth: 0
|
|
1848
1852
|
},
|
|
1849
|
-
children:
|
|
1853
|
+
children: Qs({
|
|
1850
1854
|
ooui: y,
|
|
1851
1855
|
responsiveBehaviour: r
|
|
1852
1856
|
})
|
|
1853
1857
|
},
|
|
1854
1858
|
y.key
|
|
1855
1859
|
)));
|
|
1856
|
-
}), u = i.length === 1 ?
|
|
1860
|
+
}), u = i.length === 1 ? ra(l, o) : oa(o, a);
|
|
1857
1861
|
return /* @__PURE__ */ n("div", { style: {
|
|
1858
1862
|
display: "grid",
|
|
1859
1863
|
gridTemplateColumns: r ? "auto" : u,
|
|
@@ -1861,12 +1865,12 @@ const Nt = ({
|
|
|
1861
1865
|
minHeight: 0,
|
|
1862
1866
|
minWidth: 0
|
|
1863
1867
|
}, children: d });
|
|
1864
|
-
}, { confirm:
|
|
1868
|
+
}, { confirm: sa } = Je, zt = ({
|
|
1865
1869
|
onOk: e,
|
|
1866
1870
|
onCancel: t,
|
|
1867
1871
|
lang: r
|
|
1868
1872
|
}) => {
|
|
1869
|
-
|
|
1873
|
+
sa({
|
|
1870
1874
|
title: Fe("unsavedChanges", r),
|
|
1871
1875
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
1872
1876
|
centered: !0,
|
|
@@ -1876,22 +1880,22 @@ const Nt = ({
|
|
|
1876
1880
|
onCancel: t,
|
|
1877
1881
|
cancelText: Fe("cancel", r)
|
|
1878
1882
|
});
|
|
1879
|
-
}, { error:
|
|
1880
|
-
|
|
1883
|
+
}, { error: aa } = Je, yr = (e) => {
|
|
1884
|
+
aa({
|
|
1881
1885
|
title: Fe("formHasErrors", e),
|
|
1882
1886
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
1883
1887
|
centered: !0,
|
|
1884
1888
|
content: Fe("fillRequiredFields", e)
|
|
1885
1889
|
});
|
|
1886
|
-
}, { warning:
|
|
1887
|
-
|
|
1890
|
+
}, { warning: la } = Je, ca = (e, t, r) => {
|
|
1891
|
+
la({
|
|
1888
1892
|
title: e,
|
|
1889
1893
|
icon: /* @__PURE__ */ n(Hr, {}),
|
|
1890
1894
|
centered: !0,
|
|
1891
1895
|
content: t,
|
|
1892
1896
|
onOk: r
|
|
1893
1897
|
});
|
|
1894
|
-
}, fo =
|
|
1898
|
+
}, fo = et.createContext(null), da = (e) => {
|
|
1895
1899
|
const { children: t, setTitle: r } = e;
|
|
1896
1900
|
return /* @__PURE__ */ n(
|
|
1897
1901
|
fo.Provider,
|
|
@@ -1902,15 +1906,15 @@ const Nt = ({
|
|
|
1902
1906
|
children: t
|
|
1903
1907
|
}
|
|
1904
1908
|
);
|
|
1905
|
-
}, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e,
|
|
1906
|
-
const r =
|
|
1909
|
+
}, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ua = (e, t) => {
|
|
1910
|
+
const r = ya(e), i = pa(r), o = ga(
|
|
1907
1911
|
i,
|
|
1908
1912
|
t
|
|
1909
1913
|
);
|
|
1910
1914
|
return [
|
|
1911
|
-
...Object.keys(o).map((l) =>
|
|
1915
|
+
...Object.keys(o).map((l) => fa(l, o[l], t))
|
|
1912
1916
|
].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
|
|
1913
|
-
},
|
|
1917
|
+
}, fa = (e, t, r) => {
|
|
1914
1918
|
var s;
|
|
1915
1919
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
1916
1920
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -1932,14 +1936,14 @@ const Nt = ({
|
|
|
1932
1936
|
(a) => vr(a)
|
|
1933
1937
|
)
|
|
1934
1938
|
] : [e, "=", vr(t)];
|
|
1935
|
-
},
|
|
1939
|
+
}, ma = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), ha = (e) => {
|
|
1936
1940
|
const t = { ...e };
|
|
1937
1941
|
return Object.keys(t).forEach(
|
|
1938
1942
|
(r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
|
|
1939
1943
|
), t;
|
|
1940
|
-
},
|
|
1941
|
-
const t = { ...
|
|
1942
|
-
return
|
|
1944
|
+
}, pa = (e) => {
|
|
1945
|
+
const t = { ...ha(e) };
|
|
1946
|
+
return ma(e).forEach((i) => {
|
|
1943
1947
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
1944
1948
|
let d, u;
|
|
1945
1949
|
if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -1952,7 +1956,7 @@ const Nt = ({
|
|
|
1952
1956
|
}
|
|
1953
1957
|
t[s + "#datetime"] = [d, u];
|
|
1954
1958
|
}), t;
|
|
1955
|
-
},
|
|
1959
|
+
}, ga = (e, t) => {
|
|
1956
1960
|
const r = Object.keys(e).filter((o) => {
|
|
1957
1961
|
const s = t.findById(o);
|
|
1958
1962
|
return s && s.type === "date";
|
|
@@ -1960,18 +1964,18 @@ const Nt = ({
|
|
|
1960
1964
|
return r.forEach((o) => {
|
|
1961
1965
|
delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
|
|
1962
1966
|
}), i;
|
|
1963
|
-
},
|
|
1967
|
+
}, ya = (e) => {
|
|
1964
1968
|
const t = { ...e };
|
|
1965
1969
|
return Object.keys(t).forEach(
|
|
1966
1970
|
(r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
|
|
1967
1971
|
), t;
|
|
1968
|
-
},
|
|
1972
|
+
}, va = (e) => {
|
|
1969
1973
|
const t = {};
|
|
1970
1974
|
return e.forEach((r) => {
|
|
1971
1975
|
Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
|
|
1972
1976
|
}), Object.keys(t);
|
|
1973
1977
|
}, Wt = (e, t) => {
|
|
1974
|
-
const r = [...e], i =
|
|
1978
|
+
const r = [...e], i = va(e);
|
|
1975
1979
|
return t.forEach((o) => {
|
|
1976
1980
|
Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
|
|
1977
1981
|
}), r;
|
|
@@ -2064,7 +2068,7 @@ const Nt = ({
|
|
|
2064
2068
|
}) : [...ee.current];
|
|
2065
2069
|
if (ce(ue), v && ue.length > 0) {
|
|
2066
2070
|
const se = ue.findIndex(
|
|
2067
|
-
(
|
|
2071
|
+
(Qe) => F === Qe.id
|
|
2068
2072
|
);
|
|
2069
2073
|
se === -1 ? g == null || g(0) : g == null || g(se);
|
|
2070
2074
|
} else
|
|
@@ -2206,7 +2210,7 @@ const Nt = ({
|
|
|
2206
2210
|
totalItems: K,
|
|
2207
2211
|
getAllIds: xe
|
|
2208
2212
|
};
|
|
2209
|
-
},
|
|
2213
|
+
}, st = et.createContext(null), wa = (e) => {
|
|
2210
2214
|
const {
|
|
2211
2215
|
children: t,
|
|
2212
2216
|
currentView: r,
|
|
@@ -2258,7 +2262,7 @@ const Nt = ({
|
|
|
2258
2262
|
return await ((re = a.current) == null ? void 0 : re.submitForm());
|
|
2259
2263
|
};
|
|
2260
2264
|
return /* @__PURE__ */ n(
|
|
2261
|
-
|
|
2265
|
+
st.Provider,
|
|
2262
2266
|
{
|
|
2263
2267
|
value: {
|
|
2264
2268
|
title: Le,
|
|
@@ -2316,7 +2320,7 @@ const Nt = ({
|
|
|
2316
2320
|
children: t
|
|
2317
2321
|
}
|
|
2318
2322
|
);
|
|
2319
|
-
}, dt =
|
|
2323
|
+
}, dt = et.createContext(null), ba = (e) => {
|
|
2320
2324
|
const {
|
|
2321
2325
|
children: t,
|
|
2322
2326
|
openAction: r,
|
|
@@ -2348,11 +2352,11 @@ const Nt = ({
|
|
|
2348
2352
|
children: t
|
|
2349
2353
|
}
|
|
2350
2354
|
);
|
|
2351
|
-
}, Pt =
|
|
2355
|
+
}, Pt = et.createContext(null), wr = async (e) => {
|
|
2352
2356
|
var t;
|
|
2353
2357
|
for (let r = 0; r < e.length; r++)
|
|
2354
2358
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2355
|
-
},
|
|
2359
|
+
}, Ca = (e, t) => {
|
|
2356
2360
|
const { children: r, globalValues: i = {} } = e, o = de(), s = de(), [a, l] = w(!1), d = H(
|
|
2357
2361
|
dt
|
|
2358
2362
|
), { openAction: u } = d || {}, c = de([]), { t: f } = H(he);
|
|
@@ -2429,7 +2433,7 @@ const Nt = ({
|
|
|
2429
2433
|
return await F({ actionData: k, fields: x, values: S, context: I });
|
|
2430
2434
|
if (D === "ir.actions.act_url")
|
|
2431
2435
|
window.open(
|
|
2432
|
-
|
|
2436
|
+
qs(k.url, { ...S, context: I }),
|
|
2433
2437
|
"_blank"
|
|
2434
2438
|
);
|
|
2435
2439
|
else
|
|
@@ -2479,7 +2483,7 @@ const Nt = ({
|
|
|
2479
2483
|
context: P
|
|
2480
2484
|
}), {};
|
|
2481
2485
|
} else {
|
|
2482
|
-
const { initialView: M, views: B } = await
|
|
2486
|
+
const { initialView: M, views: B } = await xa({
|
|
2483
2487
|
model: C.res_model,
|
|
2484
2488
|
context: P,
|
|
2485
2489
|
view_mode: C.view_mode,
|
|
@@ -2580,7 +2584,7 @@ const Nt = ({
|
|
|
2580
2584
|
}
|
|
2581
2585
|
) });
|
|
2582
2586
|
};
|
|
2583
|
-
async function
|
|
2587
|
+
async function xa({
|
|
2584
2588
|
views: e,
|
|
2585
2589
|
view_mode: t,
|
|
2586
2590
|
model: r,
|
|
@@ -2629,7 +2633,7 @@ async function ya({
|
|
|
2629
2633
|
}
|
|
2630
2634
|
return { views: s, initialView: a };
|
|
2631
2635
|
}
|
|
2632
|
-
const
|
|
2636
|
+
const Sa = wt(Ca), Ta = ({
|
|
2633
2637
|
error: e,
|
|
2634
2638
|
className: t
|
|
2635
2639
|
}) => {
|
|
@@ -2650,8 +2654,8 @@ const va = wt(ga), wa = ({
|
|
|
2650
2654
|
banner: !0
|
|
2651
2655
|
}
|
|
2652
2656
|
);
|
|
2653
|
-
},
|
|
2654
|
-
function
|
|
2657
|
+
}, Ia = 800;
|
|
2658
|
+
function Fa(e, t) {
|
|
2655
2659
|
const {
|
|
2656
2660
|
model: r,
|
|
2657
2661
|
id: i,
|
|
@@ -2675,8 +2679,8 @@ function Ca(e, t) {
|
|
|
2675
2679
|
defaultValues: O,
|
|
2676
2680
|
forcedValues: R = {},
|
|
2677
2681
|
parentWidth: k
|
|
2678
|
-
} = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, _] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) <
|
|
2679
|
-
|
|
2682
|
+
} = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, _] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) < Ia, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
|
|
2683
|
+
st
|
|
2680
2684
|
), {
|
|
2681
2685
|
setFormIsSaving: xe = void 0,
|
|
2682
2686
|
setFormHasChanges: re = void 0,
|
|
@@ -2690,7 +2694,7 @@ function Ca(e, t) {
|
|
|
2690
2694
|
), { processAction: Ve, globalValues: Be } = ve || {};
|
|
2691
2695
|
bt(t, () => ({
|
|
2692
2696
|
submitForm: Zt,
|
|
2693
|
-
getFields:
|
|
2697
|
+
getFields: Qe,
|
|
2694
2698
|
getValues: We,
|
|
2695
2699
|
getPlainValues: q,
|
|
2696
2700
|
getContext: Se,
|
|
@@ -2722,7 +2726,7 @@ function Ca(e, t) {
|
|
|
2722
2726
|
function se() {
|
|
2723
2727
|
return i || N.current;
|
|
2724
2728
|
}
|
|
2725
|
-
function
|
|
2729
|
+
function Qe() {
|
|
2726
2730
|
return V;
|
|
2727
2731
|
}
|
|
2728
2732
|
function We() {
|
|
@@ -2735,10 +2739,10 @@ function Ca(e, t) {
|
|
|
2735
2739
|
return $;
|
|
2736
2740
|
}
|
|
2737
2741
|
function q() {
|
|
2738
|
-
const $ = We(), W =
|
|
2742
|
+
const $ = We(), W = Qe(), Q = {};
|
|
2739
2743
|
return Object.keys($).forEach((te) => {
|
|
2740
2744
|
const fe = $[te];
|
|
2741
|
-
W[te] && W[te].type === "many2one" && fe && Array.isArray(fe) && fe.length === 2 ? Q[te] = fe[0] : W[te] && (W[te].type === "one2many" || W[te].type === "many2many") && fe && fe.items ? Q[te] = fe.items.filter((
|
|
2745
|
+
W[te] && W[te].type === "many2one" && fe && Array.isArray(fe) && fe.length === 2 ? Q[te] = fe[0] : W[te] && (W[te].type === "one2many" || W[te].type === "many2many") && fe && fe.items ? Q[te] = fe.items.filter((ot) => ot.operation !== "pendingRemove").map((ot) => ot.id) : Q[te] = fe;
|
|
2742
2746
|
}), Q;
|
|
2743
2747
|
}
|
|
2744
2748
|
function ie() {
|
|
@@ -2772,7 +2776,7 @@ function Ca(e, t) {
|
|
|
2772
2776
|
context: { ...v, ...W },
|
|
2773
2777
|
extraValues: O
|
|
2774
2778
|
});
|
|
2775
|
-
},
|
|
2779
|
+
}, rt = () => Object.keys(
|
|
2776
2780
|
Tn({
|
|
2777
2781
|
source: ee.current,
|
|
2778
2782
|
target: qe(V),
|
|
@@ -2816,14 +2820,14 @@ function Ca(e, t) {
|
|
|
2816
2820
|
ye == null || ye(!0), P(void 0), $ != null && $.fields ? (Q = $.fields, te = $.arch) : (Q = V, te = B), p && ($ == null ? void 0 : $.forceRefresh) !== !0 ? W = p : { values: W, defaultGetCalled: fe } = await Eo({
|
|
2817
2821
|
fields: Q,
|
|
2818
2822
|
arch: te
|
|
2819
|
-
}), T && (W = { ...
|
|
2823
|
+
}), T && (W = { ...Gs(T), ...W }), ee.current = Ft(W, Q), Lt({
|
|
2820
2824
|
values: W,
|
|
2821
2825
|
fields: Q,
|
|
2822
2826
|
reset: !0,
|
|
2823
2827
|
isDefaultGet: fe
|
|
2824
2828
|
}), Bt({ fields: Q, arch: te, values: W }), ye == null || ye(!1), re == null || re(!1), fe && _(!0);
|
|
2825
2829
|
}, nr = async () => new Promise(async ($) => {
|
|
2826
|
-
|
|
2830
|
+
rt() ? zt({
|
|
2827
2831
|
lang: S,
|
|
2828
2832
|
onOk: () => {
|
|
2829
2833
|
ue == null || ue(), $(!0);
|
|
@@ -2851,7 +2855,7 @@ function Ca(e, t) {
|
|
|
2851
2855
|
reset: Q,
|
|
2852
2856
|
isDefaultGet: te = !1
|
|
2853
2857
|
}) => {
|
|
2854
|
-
const
|
|
2858
|
+
const ot = { ...Q ? {} : M.getFieldsValue(!0), ...$ }, bn = Ft(ot, W), Go = Object.keys(W).map((Cn) => {
|
|
2855
2859
|
const Uo = bn[Cn] !== void 0 ? bn[Cn] : void 0;
|
|
2856
2860
|
return {
|
|
2857
2861
|
name: Cn,
|
|
@@ -2922,7 +2926,7 @@ function Ca(e, t) {
|
|
|
2922
2926
|
}, Zt = async ($) => {
|
|
2923
2927
|
let W = !1;
|
|
2924
2928
|
const { callOnSubmitSucceed: Q = !0 } = $ || {};
|
|
2925
|
-
if (X.current = !0, P(void 0), U.current && !
|
|
2929
|
+
if (X.current = !0, P(void 0), U.current && !rt() && se() && Q) {
|
|
2926
2930
|
X.current = !1, re == null || re(!1), oe == null || oe(
|
|
2927
2931
|
se(),
|
|
2928
2932
|
We(),
|
|
@@ -2932,7 +2936,7 @@ function Ca(e, t) {
|
|
|
2932
2936
|
const te = se();
|
|
2933
2937
|
return f && (N.current = void 0, Lt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id: te };
|
|
2934
2938
|
}
|
|
2935
|
-
if (!
|
|
2939
|
+
if (!rt() && se() && Q)
|
|
2936
2940
|
return X.current = !1, re == null || re(!1), ue == null || ue(), { succeed: !0, id: se() };
|
|
2937
2941
|
if (await St())
|
|
2938
2942
|
return X.current = !1, yr(S), { succeed: !1, id: se() };
|
|
@@ -2951,18 +2955,18 @@ function Ca(e, t) {
|
|
|
2951
2955
|
values: Q,
|
|
2952
2956
|
operationInProgress: te = !1
|
|
2953
2957
|
}) => {
|
|
2954
|
-
var
|
|
2958
|
+
var ot;
|
|
2955
2959
|
const fe = new Nr($);
|
|
2956
2960
|
fe.parse(W, {
|
|
2957
2961
|
readOnly: c || te,
|
|
2958
|
-
values:
|
|
2962
|
+
values: Ps(
|
|
2959
2963
|
{
|
|
2960
2964
|
...Q,
|
|
2961
2965
|
...Te()
|
|
2962
2966
|
},
|
|
2963
2967
|
$
|
|
2964
2968
|
)
|
|
2965
|
-
}), j(fe), fe.string && fe.string !== Ke && (z == null || z(fe.string)), ne && fe.string && ((
|
|
2969
|
+
}), j(fe), fe.string && fe.string !== Ke && (z == null || z(fe.string)), ne && fe.string && ((ot = ne.setTitle) == null || ot.call(ne, fe.string));
|
|
2966
2970
|
}, vn = async ({
|
|
2967
2971
|
elementHasLostFocus: $ = !1
|
|
2968
2972
|
}) => {
|
|
@@ -2973,7 +2977,7 @@ function Ca(e, t) {
|
|
|
2973
2977
|
target: qe(V),
|
|
2974
2978
|
fields: V
|
|
2975
2979
|
}), Q = Object.keys(W);
|
|
2976
|
-
if (Q.length !== 0 && !(
|
|
2980
|
+
if (Q.length !== 0 && !(js({
|
|
2977
2981
|
changedFields: Q,
|
|
2978
2982
|
formOoui: L,
|
|
2979
2983
|
types: [
|
|
@@ -2991,7 +2995,7 @@ function Ca(e, t) {
|
|
|
2991
2995
|
const te = Ft(M.getFieldsValue(!0), V);
|
|
2992
2996
|
ce.current = te, d == null || d(te), re == null || re(!0), Po(Q);
|
|
2993
2997
|
}
|
|
2994
|
-
}, No =
|
|
2998
|
+
}, No = Ti(vn, 100), Po = async ($) => {
|
|
2995
2999
|
try {
|
|
2996
3000
|
for (let W = 0; W < $.length; W += 1) {
|
|
2997
3001
|
const Q = $[W];
|
|
@@ -3010,7 +3014,7 @@ function Ca(e, t) {
|
|
|
3010
3014
|
});
|
|
3011
3015
|
return;
|
|
3012
3016
|
}
|
|
3013
|
-
const Q =
|
|
3017
|
+
const Q = Us({
|
|
3014
3018
|
values: {
|
|
3015
3019
|
...qe(V),
|
|
3016
3020
|
context: {
|
|
@@ -3039,13 +3043,13 @@ function Ca(e, t) {
|
|
|
3039
3043
|
});
|
|
3040
3044
|
}
|
|
3041
3045
|
if (te.warning && te.warning.title && te.warning.message && !Ie.current) {
|
|
3042
|
-
const { title: fe, message:
|
|
3043
|
-
Ie.current = !0,
|
|
3046
|
+
const { title: fe, message: ot } = te.warning;
|
|
3047
|
+
Ie.current = !0, ca(fe, ot, () => {
|
|
3044
3048
|
Ie.current = !1;
|
|
3045
3049
|
});
|
|
3046
3050
|
}
|
|
3047
3051
|
if (te.domain && Object.keys(te.domain).length > 0) {
|
|
3048
|
-
const fe =
|
|
3052
|
+
const fe = Ys({
|
|
3049
3053
|
fieldsDomain: te.domain,
|
|
3050
3054
|
fields: V
|
|
3051
3055
|
});
|
|
@@ -3151,19 +3155,19 @@ function Ca(e, t) {
|
|
|
3151
3155
|
}
|
|
3152
3156
|
let te = !1;
|
|
3153
3157
|
try {
|
|
3154
|
-
!c && (
|
|
3155
|
-
const fe = U.current ? pe() : {},
|
|
3156
|
-
$ === "object" ? await Bo({ action: W, context:
|
|
3158
|
+
!c && (rt() || se() === void 0) && (te = !0, wn(!0), m === "2many" ? (await rr({ callOnSubmitSucceed: !1 }), U.current = !0) : await Zt({ callOnSubmitSucceed: !1 }));
|
|
3159
|
+
const fe = U.current ? pe() : {}, ot = { ...Q, ...fe };
|
|
3160
|
+
$ === "object" ? await Bo({ action: W, context: ot }) : $ === "workflow" ? await $o({ action: W }) : $ === "action" && await Ho({ action: W, context: ot }), te && wn(!1);
|
|
3157
3161
|
} catch (fe) {
|
|
3158
3162
|
te && wn(!1), ze(fe);
|
|
3159
3163
|
}
|
|
3160
3164
|
}
|
|
3161
3165
|
const jo = () => !L && !D ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !F ? null : /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
|
|
3162
|
-
|
|
3166
|
+
cs,
|
|
3163
3167
|
{
|
|
3164
3168
|
getValues: We,
|
|
3165
3169
|
getPlainValues: q,
|
|
3166
|
-
getFields:
|
|
3170
|
+
getFields: Qe,
|
|
3167
3171
|
domain: T,
|
|
3168
3172
|
activeId: i,
|
|
3169
3173
|
activeModel: r,
|
|
@@ -3173,7 +3177,7 @@ function Ca(e, t) {
|
|
|
3173
3177
|
getContext: Se,
|
|
3174
3178
|
submitForm: Zt,
|
|
3175
3179
|
fetchValues: gt,
|
|
3176
|
-
formHasChanges:
|
|
3180
|
+
formHasChanges: rt,
|
|
3177
3181
|
elementHasLostFocus: Ko,
|
|
3178
3182
|
children: /* @__PURE__ */ n(
|
|
3179
3183
|
lt,
|
|
@@ -3231,14 +3235,14 @@ function Ca(e, t) {
|
|
|
3231
3235
|
le((W = $.bounds) == null ? void 0 : W.width);
|
|
3232
3236
|
},
|
|
3233
3237
|
children: ({ measureRef: $ }) => /* @__PURE__ */ A("div", { className: "pb-2", ref: $, children: [
|
|
3234
|
-
D && /* @__PURE__ */ n(
|
|
3238
|
+
D && /* @__PURE__ */ n(Ta, { className: "mt-5 mb-10", error: D }),
|
|
3235
3239
|
jo(),
|
|
3236
3240
|
a && Yo()
|
|
3237
3241
|
] })
|
|
3238
3242
|
}
|
|
3239
3243
|
) : null;
|
|
3240
3244
|
}
|
|
3241
|
-
const Jt = wt(
|
|
3245
|
+
const Jt = wt(Fa), Xt = (e) => {
|
|
3242
3246
|
const {
|
|
3243
3247
|
visible: t,
|
|
3244
3248
|
id: r,
|
|
@@ -3292,7 +3296,7 @@ const Jt = wt(Ca), Xt = (e) => {
|
|
|
3292
3296
|
] });
|
|
3293
3297
|
}
|
|
3294
3298
|
const F = u * 0.95;
|
|
3295
|
-
return /* @__PURE__ */ n(
|
|
3299
|
+
return /* @__PURE__ */ n(da, { setTitle: f, children: /* @__PURE__ */ n(
|
|
3296
3300
|
Je,
|
|
3297
3301
|
{
|
|
3298
3302
|
title: a ? T() : c,
|
|
@@ -3316,13 +3320,13 @@ const Jt = wt(Ca), Xt = (e) => {
|
|
|
3316
3320
|
)
|
|
3317
3321
|
}
|
|
3318
3322
|
) });
|
|
3319
|
-
},
|
|
3323
|
+
}, Oa = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
|
|
3320
3324
|
Pn.RangePicker,
|
|
3321
3325
|
{
|
|
3322
3326
|
allowEmpty: [!0, !0],
|
|
3323
3327
|
format: "DD/MM/YYYY"
|
|
3324
3328
|
}
|
|
3325
|
-
) }),
|
|
3329
|
+
) }), Ra = (e) => {
|
|
3326
3330
|
const { ooui: t, showLabel: r = !1 } = e, { label: i, id: o } = t, s = [
|
|
3327
3331
|
new _n({
|
|
3328
3332
|
name: o + "#date",
|
|
@@ -3365,8 +3369,8 @@ const Jt = wt(Ca), Xt = (e) => {
|
|
|
3365
3369
|
) }) })
|
|
3366
3370
|
] })
|
|
3367
3371
|
] });
|
|
3368
|
-
}, { useToken:
|
|
3369
|
-
const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } =
|
|
3372
|
+
}, { useToken: _a } = Pe, ho = (e) => {
|
|
3373
|
+
const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = _a(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
|
|
3370
3374
|
return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
3371
3375
|
Ar,
|
|
3372
3376
|
{
|
|
@@ -3380,8 +3384,8 @@ const Jt = wt(Ca), Xt = (e) => {
|
|
|
3380
3384
|
onBlur: u
|
|
3381
3385
|
}
|
|
3382
3386
|
) });
|
|
3383
|
-
}, { useToken:
|
|
3384
|
-
const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } =
|
|
3387
|
+
}, { useToken: Va } = Pe, rn = (e) => {
|
|
3388
|
+
const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Va(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
|
|
3385
3389
|
return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
3386
3390
|
Ar,
|
|
3387
3391
|
{
|
|
@@ -3399,7 +3403,7 @@ const Jt = wt(Ca), Xt = (e) => {
|
|
|
3399
3403
|
}
|
|
3400
3404
|
) });
|
|
3401
3405
|
};
|
|
3402
|
-
function
|
|
3406
|
+
function Aa(e) {
|
|
3403
3407
|
const { ooui: t, showLabel: r } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof Vn ? rn : ho, l = (d) => /* @__PURE__ */ n(
|
|
3404
3408
|
a,
|
|
3405
3409
|
{
|
|
@@ -3432,17 +3436,17 @@ function Fa(e) {
|
|
|
3432
3436
|
] })
|
|
3433
3437
|
] });
|
|
3434
3438
|
}
|
|
3435
|
-
const { defaultAlgorithm:
|
|
3439
|
+
const { defaultAlgorithm: Da, defaultSeed: ka } = Pe, Ea = Da(ka), { Option: Ma } = Ct, Na = (e) => {
|
|
3436
3440
|
const { ooui: t } = e, { required: r } = t;
|
|
3437
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(
|
|
3438
|
-
},
|
|
3441
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(Pa, { ...e }) });
|
|
3442
|
+
}, Pa = (e) => {
|
|
3439
3443
|
const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.filter((f) => {
|
|
3440
3444
|
const [m] = f;
|
|
3441
3445
|
return i ? !i.includes(m) : !0;
|
|
3442
3446
|
}).map((f) => {
|
|
3443
3447
|
const [m, p] = f;
|
|
3444
|
-
return /* @__PURE__ */ n(
|
|
3445
|
-
}), u = a && !s ?
|
|
3448
|
+
return /* @__PURE__ */ n(Ma, { value: p, children: p }, m);
|
|
3449
|
+
}), u = a && !s ? La : Ct;
|
|
3446
3450
|
function c(f) {
|
|
3447
3451
|
const m = f.map((p) => {
|
|
3448
3452
|
const h = l.find(([g, y]) => p === y);
|
|
@@ -3465,12 +3469,12 @@ const { defaultAlgorithm: Oa, defaultSeed: Ra } = Pe, _a = Oa(Ra), { Option: Va
|
|
|
3465
3469
|
children: d
|
|
3466
3470
|
}
|
|
3467
3471
|
);
|
|
3468
|
-
},
|
|
3472
|
+
}, La = Mt(Ct)`
|
|
3469
3473
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3470
|
-
background-color: ${
|
|
3474
|
+
background-color: ${Ea.colorPrimaryBg};
|
|
3471
3475
|
}
|
|
3472
3476
|
`;
|
|
3473
|
-
function
|
|
3477
|
+
function Ba(e) {
|
|
3474
3478
|
const { field: t } = e;
|
|
3475
3479
|
t.readOnly = !1, t.required = !1;
|
|
3476
3480
|
const { t: r } = H(he);
|
|
@@ -3490,22 +3494,22 @@ function Ea(e) {
|
|
|
3490
3494
|
case mt.progressbar:
|
|
3491
3495
|
case mt.float_time:
|
|
3492
3496
|
case mt.integer:
|
|
3493
|
-
return /* @__PURE__ */ n(
|
|
3497
|
+
return /* @__PURE__ */ n(Aa, { ooui: t, showLabel: !0 });
|
|
3494
3498
|
case mt.date:
|
|
3495
|
-
return /* @__PURE__ */ n(
|
|
3499
|
+
return /* @__PURE__ */ n(Oa, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
3496
3500
|
case mt.datetime:
|
|
3497
|
-
return /* @__PURE__ */ n(
|
|
3501
|
+
return /* @__PURE__ */ n(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
3498
3502
|
case mt.selection:
|
|
3499
|
-
return /* @__PURE__ */ n(
|
|
3503
|
+
return /* @__PURE__ */ n(Na, { layout: "vertical", ooui: t, showLabel: !0 });
|
|
3500
3504
|
default:
|
|
3501
3505
|
return /* @__PURE__ */ n(no, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
|
|
3502
3506
|
}
|
|
3503
3507
|
}
|
|
3504
|
-
function
|
|
3508
|
+
function $a(e) {
|
|
3505
3509
|
const { onAdvancedFilterToggle: t, advancedFilter: r, onClear: i, isSearching: o } = e, { t: s } = H(he);
|
|
3506
3510
|
return /* @__PURE__ */ A(be, { children: [
|
|
3507
3511
|
/* @__PURE__ */ n(ae, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ A("a", { className: "text-xs", onClick: t, children: [
|
|
3508
|
-
r ? /* @__PURE__ */ n(
|
|
3512
|
+
r ? /* @__PURE__ */ n(ci, { className: "pr-1" }) : /* @__PURE__ */ n(kt, { className: "pr-1" }),
|
|
3509
3513
|
s(r ? "simple_search" : "advanced_search")
|
|
3510
3514
|
] }) }),
|
|
3511
3515
|
/* @__PURE__ */ A(ae, { span: 12, className: "text-right pb-2", children: [
|
|
@@ -3524,7 +3528,7 @@ function Ma(e) {
|
|
|
3524
3528
|
] })
|
|
3525
3529
|
] });
|
|
3526
3530
|
}
|
|
3527
|
-
function
|
|
3531
|
+
function Ha(e) {
|
|
3528
3532
|
const { onLimitChange: t } = e, { t: r } = H(he), i = new Vn({ name: "limit" }), o = new Vn({ name: "offset" });
|
|
3529
3533
|
return /* @__PURE__ */ A("div", { className: "pl-2 pt-2", children: [
|
|
3530
3534
|
/* @__PURE__ */ n(be, { children: r("parameters") }, "count_params"),
|
|
@@ -3544,7 +3548,7 @@ function Na(e) {
|
|
|
3544
3548
|
] })
|
|
3545
3549
|
] });
|
|
3546
3550
|
}
|
|
3547
|
-
const { useToken:
|
|
3551
|
+
const { useToken: Ka } = Pe;
|
|
3548
3552
|
function po(e) {
|
|
3549
3553
|
const {
|
|
3550
3554
|
fields: t,
|
|
@@ -3560,7 +3564,7 @@ function po(e) {
|
|
|
3560
3564
|
searchError: f,
|
|
3561
3565
|
searchValues: m,
|
|
3562
3566
|
showLimitOptions: p = !0
|
|
3563
|
-
} = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } =
|
|
3567
|
+
} = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Ka(), [R] = lt.useForm();
|
|
3564
3568
|
me(() => {
|
|
3565
3569
|
R.setFieldsValue(m);
|
|
3566
3570
|
}, [m]);
|
|
@@ -3568,16 +3572,16 @@ function po(e) {
|
|
|
3568
3572
|
if (!y)
|
|
3569
3573
|
return;
|
|
3570
3574
|
const I = T ? y : h, C = I == null ? void 0 : I.rows;
|
|
3571
|
-
return C == null ? void 0 : C.map((D, P) => /* @__PURE__ */ n(be, { children: D.map((L, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(
|
|
3575
|
+
return C == null ? void 0 : C.map((D, P) => /* @__PURE__ */ n(be, { children: D.map((L, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Ba, { field: L }) }, j)) }, P));
|
|
3572
3576
|
};
|
|
3573
3577
|
xt(() => {
|
|
3574
|
-
F(!1), b.current = new
|
|
3578
|
+
F(!1), b.current = new ai(r, t), b.current.parse(), g(b.current._simpleSearchContainer), v(b.current._advancedSearchContainer);
|
|
3575
3579
|
}, [t, r]);
|
|
3576
3580
|
const x = k(), S = (I) => {
|
|
3577
3581
|
var L;
|
|
3578
3582
|
const { limit: C, offset: D } = I;
|
|
3579
3583
|
delete I.offset, delete I.limit;
|
|
3580
|
-
const P =
|
|
3584
|
+
const P = ua(
|
|
3581
3585
|
I,
|
|
3582
3586
|
(L = b.current) == null ? void 0 : L._advancedSearchContainer
|
|
3583
3587
|
);
|
|
@@ -3602,9 +3606,9 @@ function po(e) {
|
|
|
3602
3606
|
initialValues: { offset: a, limit: l },
|
|
3603
3607
|
children: [
|
|
3604
3608
|
x,
|
|
3605
|
-
T && p && /* @__PURE__ */ n(
|
|
3609
|
+
T && p && /* @__PURE__ */ n(Ha, { onLimitChange: d }),
|
|
3606
3610
|
/* @__PURE__ */ n(
|
|
3607
|
-
|
|
3611
|
+
$a,
|
|
3608
3612
|
{
|
|
3609
3613
|
advancedFilter: T,
|
|
3610
3614
|
onAdvancedFilterToggle: () => {
|
|
@@ -3638,7 +3642,7 @@ const br = (e, t = "14px -apple-system") => {
|
|
|
3638
3642
|
i.font = t;
|
|
3639
3643
|
const o = i.measureText(e);
|
|
3640
3644
|
return Math.round((o.width + 80) * 1.5);
|
|
3641
|
-
},
|
|
3645
|
+
}, Wa = (e, t, r = 500) => {
|
|
3642
3646
|
if (e.length === 0)
|
|
3643
3647
|
return { columns: e };
|
|
3644
3648
|
const i = e.map(
|
|
@@ -3660,7 +3664,7 @@ const br = (e, t = "14px -apple-system") => {
|
|
|
3660
3664
|
tableWidth: o
|
|
3661
3665
|
};
|
|
3662
3666
|
};
|
|
3663
|
-
function
|
|
3667
|
+
function ja(e) {
|
|
3664
3668
|
if (e)
|
|
3665
3669
|
try {
|
|
3666
3670
|
if (e.includes(":")) {
|
|
@@ -3690,17 +3694,17 @@ function go(e) {
|
|
|
3690
3694
|
});
|
|
3691
3695
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
3692
3696
|
}
|
|
3693
|
-
const
|
|
3697
|
+
const Ya = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo, {}) }), yo = ({ value: e }) => {
|
|
3694
3698
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
3695
3699
|
minimumIntegerDigits: 1,
|
|
3696
3700
|
maximumFractionDigits: 4,
|
|
3697
3701
|
useGrouping: !1
|
|
3698
3702
|
})}%`;
|
|
3699
3703
|
return /* @__PURE__ */ A("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
3700
|
-
/* @__PURE__ */ n(
|
|
3704
|
+
/* @__PURE__ */ n(Ga, { percent: e }),
|
|
3701
3705
|
/* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
3702
3706
|
] });
|
|
3703
|
-
},
|
|
3707
|
+
}, Ga = Mt(Zo)`
|
|
3704
3708
|
.ant-progress-outer {
|
|
3705
3709
|
margin-right: 0px;
|
|
3706
3710
|
padding-right: 0px;
|
|
@@ -3848,7 +3852,7 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3848
3852
|
}
|
|
3849
3853
|
return /* @__PURE__ */ A(Z, { children: [
|
|
3850
3854
|
/* @__PURE__ */ n(Gt, { overlay: b(), trigger: ["click"], children: /* @__PURE__ */ n(
|
|
3851
|
-
|
|
3855
|
+
di,
|
|
3852
3856
|
{
|
|
3853
3857
|
style: { color: "rgba(0,0,0,.45)" },
|
|
3854
3858
|
onClick: (I) => {
|
|
@@ -3875,13 +3879,13 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3875
3879
|
}
|
|
3876
3880
|
)
|
|
3877
3881
|
] });
|
|
3878
|
-
},
|
|
3882
|
+
}, Ua = (e) => {
|
|
3879
3883
|
const { m2oField: t } = e;
|
|
3880
3884
|
return t ? /* @__PURE__ */ A(je, { children: [
|
|
3881
3885
|
/* @__PURE__ */ n(Z, { children: t.value }),
|
|
3882
3886
|
/* @__PURE__ */ n(Zn, { id: t.id, model: t.model })
|
|
3883
3887
|
] }) : /* @__PURE__ */ n(Z, {});
|
|
3884
|
-
},
|
|
3888
|
+
}, qa = (e) => {
|
|
3885
3889
|
const { value: t, context: r, selectionValues: i } = e, [o, s] = w(), [a, l] = w(!1), [d, u] = t ? t.split(",") : [], c = parseInt(u), f = De(async () => {
|
|
3886
3890
|
if (!t || t && o)
|
|
3887
3891
|
return;
|
|
@@ -3899,14 +3903,14 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3899
3903
|
}, [t]), !t && !a)
|
|
3900
3904
|
return /* @__PURE__ */ n(Z, {});
|
|
3901
3905
|
if (a)
|
|
3902
|
-
return /* @__PURE__ */ n(
|
|
3906
|
+
return /* @__PURE__ */ n(at, {});
|
|
3903
3907
|
const m = i.get(d);
|
|
3904
3908
|
return /* @__PURE__ */ A(je, { children: [
|
|
3905
3909
|
/* @__PURE__ */ n(Z, { children: `${m}:` }),
|
|
3906
3910
|
/* @__PURE__ */ n(Z, { children: o }),
|
|
3907
3911
|
/* @__PURE__ */ n(Zn, { id: c, model: d })
|
|
3908
3912
|
] });
|
|
3909
|
-
},
|
|
3913
|
+
}, za = (e) => {
|
|
3910
3914
|
const { ooui: t, value: r } = e;
|
|
3911
3915
|
if (!r)
|
|
3912
3916
|
return null;
|
|
@@ -3914,10 +3918,16 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3914
3918
|
t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (i = r[1]);
|
|
3915
3919
|
const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = nn(i);
|
|
3916
3920
|
return /* @__PURE__ */ n(ht, { title: i, children: /* @__PURE__ */ n(Dr, { alt: i, style: { backgroundColor: s }, children: o }) });
|
|
3917
|
-
}
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
+
};
|
|
3922
|
+
nt.extend(Di);
|
|
3923
|
+
nt.extend(ki);
|
|
3924
|
+
nt.extend(Ei);
|
|
3925
|
+
nt.extend(Mi);
|
|
3926
|
+
nt.extend(Ni);
|
|
3927
|
+
nt.extend(Pi);
|
|
3928
|
+
nt.extend(Li);
|
|
3929
|
+
nt.extend(Bi);
|
|
3930
|
+
const { useToken: Ja } = Pe, ut = {
|
|
3921
3931
|
date: {
|
|
3922
3932
|
placeholder: "__/__/____",
|
|
3923
3933
|
dateDisplayFormat: "DD/MM/YYYY",
|
|
@@ -3930,9 +3940,9 @@ const ut = {
|
|
|
3930
3940
|
}
|
|
3931
3941
|
}, vo = (e) => {
|
|
3932
3942
|
const { ooui: t, showTime: r = !1 } = e, { required: i } = t;
|
|
3933
|
-
return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(
|
|
3934
|
-
},
|
|
3935
|
-
const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } =
|
|
3943
|
+
return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(Xa, { ooui: t, showTime: r }) });
|
|
3944
|
+
}, Xa = (e) => {
|
|
3945
|
+
const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = Ja(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
|
|
3936
3946
|
r == null || r(h);
|
|
3937
3947
|
}, m = (h) => {
|
|
3938
3948
|
if (h === null) {
|
|
@@ -3940,7 +3950,7 @@ const ut = {
|
|
|
3940
3950
|
return;
|
|
3941
3951
|
}
|
|
3942
3952
|
f(h.format(ut[c].dateInternalFormat));
|
|
3943
|
-
}, p = t ?
|
|
3953
|
+
}, p = t ? nt(t, ut[c].dateInternalFormat) : void 0;
|
|
3944
3954
|
return /* @__PURE__ */ n(
|
|
3945
3955
|
Pn,
|
|
3946
3956
|
{
|
|
@@ -3955,11 +3965,11 @@ const ut = {
|
|
|
3955
3965
|
onChange: m
|
|
3956
3966
|
}
|
|
3957
3967
|
);
|
|
3958
|
-
},
|
|
3968
|
+
}, Za = Mt.div`
|
|
3959
3969
|
display: flex;
|
|
3960
3970
|
align-items: center;
|
|
3961
3971
|
justify-content: center;
|
|
3962
|
-
`,
|
|
3972
|
+
`, Qa = ({
|
|
3963
3973
|
numberOfVisibleSelectedRows: e,
|
|
3964
3974
|
totalRecords: t,
|
|
3965
3975
|
numberOfTotalRows: r,
|
|
@@ -3980,7 +3990,7 @@ const ut = {
|
|
|
3980
3990
|
"{numberOfSelectedRows}",
|
|
3981
3991
|
e.toString()
|
|
3982
3992
|
) + " ",
|
|
3983
|
-
s ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(
|
|
3993
|
+
s ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n($i, { onClick: u, style: { fontWeight: 600 }, children: d.selectAllRecords.replace(
|
|
3984
3994
|
"{totalRecords}",
|
|
3985
3995
|
t.toString()
|
|
3986
3996
|
) })
|
|
@@ -3988,8 +3998,8 @@ const ut = {
|
|
|
3988
3998
|
"{totalRecords}",
|
|
3989
3999
|
o.toString()
|
|
3990
4000
|
) + " " });
|
|
3991
|
-
return /* @__PURE__ */ n(
|
|
3992
|
-
},
|
|
4001
|
+
return /* @__PURE__ */ n(Za, { children: o > r ? f : c });
|
|
4002
|
+
}, el = (e) => /* @__PURE__ */ n(
|
|
3993
4003
|
"div",
|
|
3994
4004
|
{
|
|
3995
4005
|
style: {
|
|
@@ -3999,23 +4009,23 @@ const ut = {
|
|
|
3999
4009
|
},
|
|
4000
4010
|
children: /* @__PURE__ */ n(Ht, { checked: e, disabled: !0 })
|
|
4001
4011
|
}
|
|
4002
|
-
),
|
|
4012
|
+
), tl = (e) => /* @__PURE__ */ n(Ua, { m2oField: e }), nl = (e) => /* @__PURE__ */ n(
|
|
4003
4013
|
zn,
|
|
4004
4014
|
{
|
|
4005
4015
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4006
4016
|
}
|
|
4007
|
-
),
|
|
4017
|
+
), rl = (e) => {
|
|
4008
4018
|
if (!e || e && e.length === 0)
|
|
4009
4019
|
return /* @__PURE__ */ n(Z, {});
|
|
4010
|
-
const t =
|
|
4020
|
+
const t = nt(
|
|
4011
4021
|
e,
|
|
4012
4022
|
ut.date.dateInternalFormat
|
|
4013
4023
|
).format(ut.date.dateDisplayFormat);
|
|
4014
4024
|
return /* @__PURE__ */ n(Z, { children: t });
|
|
4015
|
-
},
|
|
4025
|
+
}, ol = (e) => {
|
|
4016
4026
|
if (!e || e && e.length === 0)
|
|
4017
4027
|
return /* @__PURE__ */ n(Z, {});
|
|
4018
|
-
const t =
|
|
4028
|
+
const t = nt(
|
|
4019
4029
|
e,
|
|
4020
4030
|
ut.time.dateInternalFormat
|
|
4021
4031
|
).format(ut.time.dateDisplayFormat);
|
|
@@ -4023,20 +4033,20 @@ const ut = {
|
|
|
4023
4033
|
}, xr = (e) => {
|
|
4024
4034
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4025
4035
|
return /* @__PURE__ */ n(Z, { children: `( ${t} )` });
|
|
4026
|
-
},
|
|
4036
|
+
}, il = (e) => /* @__PURE__ */ n(yo, { value: e }), sl = (e) => /* @__PURE__ */ n(Z, { children: go(e) }), Sr = (e) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: e }), al = (e) => /* @__PURE__ */ n(
|
|
4027
4037
|
"img",
|
|
4028
4038
|
{
|
|
4029
4039
|
src: `data:image/*;base64,${e}`,
|
|
4030
4040
|
style: { maxWidth: "50px", padding: "5px" }
|
|
4031
4041
|
}
|
|
4032
|
-
),
|
|
4033
|
-
|
|
4042
|
+
), ll = (e, t, r, i) => /* @__PURE__ */ n(co, { ooui: r, value: e }), cl = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: r.selectionValues.get(e) }), dl = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
|
|
4043
|
+
qa,
|
|
4034
4044
|
{
|
|
4035
4045
|
value: e,
|
|
4036
4046
|
selectionValues: r.selectionValues,
|
|
4037
4047
|
context: i
|
|
4038
4048
|
}
|
|
4039
|
-
) }),
|
|
4049
|
+
) }), ul = (e, t, r, i) => /* @__PURE__ */ n(za, { ooui: r, value: e });
|
|
4040
4050
|
function pn(e) {
|
|
4041
4051
|
var Y;
|
|
4042
4052
|
const {
|
|
@@ -4062,29 +4072,29 @@ function pn(e) {
|
|
|
4062
4072
|
readonly: b,
|
|
4063
4073
|
onSelectAllRecords: O
|
|
4064
4074
|
} = e, [R, k] = w([]), [x, S] = w([]), I = de(!1), C = de(null), { t: D } = H(he), P = de(r), L = H(
|
|
4065
|
-
|
|
4075
|
+
st
|
|
4066
4076
|
), { title: j = void 0, setTitle: M = void 0 } = (T ? L : {}) || {};
|
|
4067
4077
|
me(() => {
|
|
4068
4078
|
C.current = Rt(o);
|
|
4069
|
-
const _ =
|
|
4079
|
+
const _ = Es(
|
|
4070
4080
|
C.current,
|
|
4071
4081
|
{
|
|
4072
|
-
boolean:
|
|
4073
|
-
many2one:
|
|
4074
|
-
text:
|
|
4082
|
+
boolean: el,
|
|
4083
|
+
many2one: tl,
|
|
4084
|
+
text: nl,
|
|
4075
4085
|
one2many: xr,
|
|
4076
4086
|
many2many: xr,
|
|
4077
|
-
progressbar:
|
|
4078
|
-
float_time:
|
|
4079
|
-
image:
|
|
4087
|
+
progressbar: il,
|
|
4088
|
+
float_time: sl,
|
|
4089
|
+
image: al,
|
|
4080
4090
|
integer: Sr,
|
|
4081
4091
|
float: Sr,
|
|
4082
|
-
reference:
|
|
4083
|
-
tag:
|
|
4084
|
-
selection:
|
|
4085
|
-
date:
|
|
4086
|
-
datetime:
|
|
4087
|
-
avatar:
|
|
4092
|
+
reference: dl,
|
|
4093
|
+
tag: ll,
|
|
4094
|
+
selection: cl,
|
|
4095
|
+
date: rl,
|
|
4096
|
+
datetime: ol,
|
|
4097
|
+
avatar: ul
|
|
4088
4098
|
},
|
|
4089
4099
|
F
|
|
4090
4100
|
);
|
|
@@ -4103,7 +4113,7 @@ function pn(e) {
|
|
|
4103
4113
|
).length;
|
|
4104
4114
|
return l ? null : i === void 0 ? /* @__PURE__ */ n(Ae, { className: "pb-4" }) : /* @__PURE__ */ A(be, { align: "bottom", className: "pb-4", children: [
|
|
4105
4115
|
/* @__PURE__ */ n(ae, { span: O ? 8 : 12, children: /* @__PURE__ */ n(
|
|
4106
|
-
|
|
4116
|
+
ei,
|
|
4107
4117
|
{
|
|
4108
4118
|
total: i,
|
|
4109
4119
|
pageSize: P.current === 0 ? i : P.current,
|
|
@@ -4113,7 +4123,7 @@ function pn(e) {
|
|
|
4113
4123
|
}
|
|
4114
4124
|
) }),
|
|
4115
4125
|
O && /* @__PURE__ */ n(ae, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
|
|
4116
|
-
|
|
4126
|
+
Qa,
|
|
4117
4127
|
{
|
|
4118
4128
|
numberOfVisibleSelectedRows: _,
|
|
4119
4129
|
numberOfRealSelectedRows: ((N = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : N.length) || 0,
|
|
@@ -4138,14 +4148,14 @@ function pn(e) {
|
|
|
4138
4148
|
}
|
|
4139
4149
|
let J, le = f;
|
|
4140
4150
|
if (C.current !== null) {
|
|
4141
|
-
J =
|
|
4151
|
+
J = Wa(x, R, 600);
|
|
4142
4152
|
const N = C.current;
|
|
4143
4153
|
f && N.columns.some((ee) => ee.sum !== void 0) && (le = f - 30);
|
|
4144
4154
|
}
|
|
4145
4155
|
return C.current === null || !J || ((Y = J.columns) == null ? void 0 : Y.length) === 0 ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : /* @__PURE__ */ A("div", { children: [
|
|
4146
4156
|
G(),
|
|
4147
4157
|
/* @__PURE__ */ n(
|
|
4148
|
-
|
|
4158
|
+
Ri,
|
|
4149
4159
|
{
|
|
4150
4160
|
height: le,
|
|
4151
4161
|
columns: J.columns,
|
|
@@ -4156,9 +4166,9 @@ function pn(e) {
|
|
|
4156
4166
|
if (m[_.id])
|
|
4157
4167
|
return { color: m[_.id] };
|
|
4158
4168
|
},
|
|
4159
|
-
onRowStatus:
|
|
4169
|
+
onRowStatus: Ms(p) ? (_) => {
|
|
4160
4170
|
if (p[_.id])
|
|
4161
|
-
return /* @__PURE__ */ n(
|
|
4171
|
+
return /* @__PURE__ */ n(Qo, { color: p[_.id] });
|
|
4162
4172
|
} : void 0,
|
|
4163
4173
|
onRowDoubleClick: d,
|
|
4164
4174
|
selectionRowKeys: c == null ? void 0 : c.selectedRowKeys,
|
|
@@ -4167,9 +4177,9 @@ function pn(e) {
|
|
|
4167
4177
|
sorter: g,
|
|
4168
4178
|
readonly: b,
|
|
4169
4179
|
expandableOpts: y ? {
|
|
4170
|
-
expandIcon:
|
|
4171
|
-
collapseIcon:
|
|
4172
|
-
loadingIcon:
|
|
4180
|
+
expandIcon: ui,
|
|
4181
|
+
collapseIcon: fi,
|
|
4182
|
+
loadingIcon: at,
|
|
4173
4183
|
onFetchChildrenForRecord: y,
|
|
4174
4184
|
childField: v
|
|
4175
4185
|
} : void 0
|
|
@@ -4178,7 +4188,7 @@ function pn(e) {
|
|
|
4178
4188
|
ne()
|
|
4179
4189
|
] });
|
|
4180
4190
|
}
|
|
4181
|
-
function
|
|
4191
|
+
function fl(e, t) {
|
|
4182
4192
|
const {
|
|
4183
4193
|
model: r,
|
|
4184
4194
|
formView: i,
|
|
@@ -4194,7 +4204,7 @@ function al(e, t) {
|
|
|
4194
4204
|
} = e, [p, h] = w(!1), [g, y] = w(!1), v = de(!1), [T, F] = w(), [b, O] = w(), [R, k] = w(), [x, S] = w(), [I, C] = w(200), D = de(), { height: P } = mn(), L = H(
|
|
4195
4205
|
Pt
|
|
4196
4206
|
), { processAction: j } = L || {}, M = H(
|
|
4197
|
-
|
|
4207
|
+
st
|
|
4198
4208
|
), {
|
|
4199
4209
|
setResults: B = void 0,
|
|
4200
4210
|
setCurrentItemIndex: K = void 0,
|
|
@@ -4266,7 +4276,7 @@ function al(e, t) {
|
|
|
4266
4276
|
})), me(() => {
|
|
4267
4277
|
g && u && b && (v.current = !1, xe());
|
|
4268
4278
|
}, [Me, Ke, g, u, a, b]);
|
|
4269
|
-
const
|
|
4279
|
+
const Qe = async () => {
|
|
4270
4280
|
y(!1), h(!0), S(void 0), U == null || U(!0);
|
|
4271
4281
|
try {
|
|
4272
4282
|
await We(), y(!0);
|
|
@@ -4291,7 +4301,7 @@ function al(e, t) {
|
|
|
4291
4301
|
})), k(_e), O(Ge);
|
|
4292
4302
|
};
|
|
4293
4303
|
me(() => {
|
|
4294
|
-
|
|
4304
|
+
Qe();
|
|
4295
4305
|
}, [r]);
|
|
4296
4306
|
const q = (_e) => {
|
|
4297
4307
|
ke == null || ke(_e);
|
|
@@ -4339,7 +4349,7 @@ function al(e, t) {
|
|
|
4339
4349
|
function Re() {
|
|
4340
4350
|
return b != null && b.isExpandable ? P - 160 : P - (I + 210);
|
|
4341
4351
|
}
|
|
4342
|
-
const
|
|
4352
|
+
const rt = () => !b || !R ? null : /* @__PURE__ */ A(Z, { children: [
|
|
4343
4353
|
/* @__PURE__ */ n(
|
|
4344
4354
|
po,
|
|
4345
4355
|
{
|
|
@@ -4388,9 +4398,9 @@ function al(e, t) {
|
|
|
4388
4398
|
}
|
|
4389
4399
|
)
|
|
4390
4400
|
] }), qe = x || ye;
|
|
4391
|
-
return qe ? /* @__PURE__ */ n(tt, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ n(Ae, {}) :
|
|
4401
|
+
return qe ? /* @__PURE__ */ n(tt, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ n(Ae, {}) : rt() });
|
|
4392
4402
|
}
|
|
4393
|
-
const wo = wt(
|
|
4403
|
+
const wo = wt(fl), bo = (e) => {
|
|
4394
4404
|
const {
|
|
4395
4405
|
visible: t,
|
|
4396
4406
|
onCloseModal: r,
|
|
@@ -4484,14 +4494,14 @@ const wo = wt(al), bo = (e) => {
|
|
|
4484
4494
|
}
|
|
4485
4495
|
)
|
|
4486
4496
|
] });
|
|
4487
|
-
}, { error:
|
|
4488
|
-
|
|
4497
|
+
}, { error: ml } = Je, on = (e) => {
|
|
4498
|
+
ml({
|
|
4489
4499
|
title: "Error",
|
|
4490
4500
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
4491
4501
|
centered: !0,
|
|
4492
4502
|
content: e
|
|
4493
4503
|
});
|
|
4494
|
-
}, { defaultAlgorithm:
|
|
4504
|
+
}, { defaultAlgorithm: hl, defaultSeed: pl } = Pe, Co = hl(pl), gl = (e) => {
|
|
4495
4505
|
const { ooui: t } = e, { required: r } = t;
|
|
4496
4506
|
return /* @__PURE__ */ n(ge, { required: r, type: "array", validator: async (o, s) => {
|
|
4497
4507
|
if (!s)
|
|
@@ -4592,7 +4602,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4592
4602
|
}
|
|
4593
4603
|
return /* @__PURE__ */ A(be, { gutter: 8, wrap: !1, children: [
|
|
4594
4604
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
4595
|
-
o && !a ?
|
|
4605
|
+
o && !a ? yl : it,
|
|
4596
4606
|
{
|
|
4597
4607
|
type: "text",
|
|
4598
4608
|
value: b,
|
|
@@ -4626,7 +4636,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4626
4636
|
/* @__PURE__ */ n(ae, { flex: "32px", style: { paddingLeft: 0 }, children: /* @__PURE__ */ n(
|
|
4627
4637
|
Oe,
|
|
4628
4638
|
{
|
|
4629
|
-
icon: g ? /* @__PURE__ */ n(
|
|
4639
|
+
icon: g ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Wn, {}),
|
|
4630
4640
|
disabled: a || g,
|
|
4631
4641
|
onClick: () => {
|
|
4632
4642
|
F.current = !0, ne(B);
|
|
@@ -4669,13 +4679,13 @@ const wo = wt(al), bo = (e) => {
|
|
|
4669
4679
|
}
|
|
4670
4680
|
)
|
|
4671
4681
|
] });
|
|
4672
|
-
},
|
|
4682
|
+
}, yl = Mt(it)`
|
|
4673
4683
|
.ant-input {
|
|
4674
4684
|
background-color: ${Co.colorPrimaryBg};
|
|
4675
4685
|
}
|
|
4676
|
-
`, So =
|
|
4686
|
+
`, So = et.createContext(
|
|
4677
4687
|
null
|
|
4678
|
-
),
|
|
4688
|
+
), vl = ({
|
|
4679
4689
|
children: e,
|
|
4680
4690
|
initialView: t
|
|
4681
4691
|
}) => {
|
|
@@ -4694,7 +4704,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4694
4704
|
children: e
|
|
4695
4705
|
}
|
|
4696
4706
|
);
|
|
4697
|
-
}, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30,
|
|
4707
|
+
}, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30, wl = (e) => {
|
|
4698
4708
|
const {
|
|
4699
4709
|
model: t,
|
|
4700
4710
|
domain: r,
|
|
@@ -4803,7 +4813,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4803
4813
|
}
|
|
4804
4814
|
p(!1);
|
|
4805
4815
|
}
|
|
4806
|
-
return D ? /* @__PURE__ */ n(tt, { className: "mt-10", message: D, type: "error", banner: !0 }) : m ? /* @__PURE__ */ n("div", { style: { padding: "1rem" }, children: /* @__PURE__ */ n(
|
|
4816
|
+
return D ? /* @__PURE__ */ n(tt, { className: "mt-10", message: D, type: "error", banner: !0 }) : m ? /* @__PURE__ */ n("div", { style: { padding: "1rem" }, children: /* @__PURE__ */ n(at, { style: { height: "12px" } }) }) : /* @__PURE__ */ n(
|
|
4807
4817
|
Jn,
|
|
4808
4818
|
{
|
|
4809
4819
|
bounds: !0,
|
|
@@ -4812,7 +4822,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4812
4822
|
O((K = B.bounds) == null ? void 0 : K.height), k((V = B.bounds) == null ? void 0 : V.width);
|
|
4813
4823
|
},
|
|
4814
4824
|
children: ({ measureRef: B }) => a ? /* @__PURE__ */ n(
|
|
4815
|
-
|
|
4825
|
+
Cl,
|
|
4816
4826
|
{
|
|
4817
4827
|
value: h,
|
|
4818
4828
|
total: T,
|
|
@@ -4825,7 +4835,7 @@ const wo = wt(al), bo = (e) => {
|
|
|
4825
4835
|
suffix: d
|
|
4826
4836
|
}
|
|
4827
4837
|
) : /* @__PURE__ */ n(
|
|
4828
|
-
|
|
4838
|
+
bl,
|
|
4829
4839
|
{
|
|
4830
4840
|
value: h,
|
|
4831
4841
|
total: T,
|
|
@@ -4844,7 +4854,7 @@ function To(e, t) {
|
|
|
4844
4854
|
const i = document.createElement("canvas").getContext("2d");
|
|
4845
4855
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
4846
4856
|
}
|
|
4847
|
-
function
|
|
4857
|
+
function bl({
|
|
4848
4858
|
measureRef: e,
|
|
4849
4859
|
width: t,
|
|
4850
4860
|
height: r,
|
|
@@ -4885,7 +4895,7 @@ function pl({
|
|
|
4885
4895
|
}
|
|
4886
4896
|
);
|
|
4887
4897
|
}
|
|
4888
|
-
function
|
|
4898
|
+
function Cl({
|
|
4889
4899
|
measureRef: e,
|
|
4890
4900
|
height: t,
|
|
4891
4901
|
width: r,
|
|
@@ -4955,22 +4965,22 @@ const In = (e) => (t) => {
|
|
|
4955
4965
|
});
|
|
4956
4966
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
4957
4967
|
}, Qt = (e) => {
|
|
4958
|
-
if (typeof e == "string" &&
|
|
4968
|
+
if (typeof e == "string" && xl(e))
|
|
4959
4969
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
4960
4970
|
useGrouping: !0
|
|
4961
4971
|
});
|
|
4962
|
-
if (
|
|
4972
|
+
if (Sl(e))
|
|
4963
4973
|
return e.toLocaleString("es-ES", {
|
|
4964
4974
|
useGrouping: !0
|
|
4965
4975
|
});
|
|
4966
|
-
if (
|
|
4967
|
-
const t =
|
|
4968
|
-
return t === null ? e :
|
|
4976
|
+
if (Tl(e)) {
|
|
4977
|
+
const t = Il(e);
|
|
4978
|
+
return t === null ? e : nt(e, ln.input[t]).format(
|
|
4969
4979
|
ln.output[t]
|
|
4970
4980
|
);
|
|
4971
4981
|
} else
|
|
4972
4982
|
return e;
|
|
4973
|
-
},
|
|
4983
|
+
}, xl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Sl = (e) => typeof e == "number" && !isNaN(e), Ir = {
|
|
4974
4984
|
default: {
|
|
4975
4985
|
padding: "auto",
|
|
4976
4986
|
xAxis: {
|
|
@@ -5052,7 +5062,7 @@ const In = (e) => (t) => {
|
|
|
5052
5062
|
}
|
|
5053
5063
|
}
|
|
5054
5064
|
};
|
|
5055
|
-
function
|
|
5065
|
+
function Tl(e) {
|
|
5056
5066
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
5057
5067
|
}
|
|
5058
5068
|
const ln = {
|
|
@@ -5071,9 +5081,9 @@ const ln = {
|
|
|
5071
5081
|
years: "YYYY"
|
|
5072
5082
|
}
|
|
5073
5083
|
};
|
|
5074
|
-
function
|
|
5084
|
+
function Il(e) {
|
|
5075
5085
|
for (const t in ln.input)
|
|
5076
|
-
if (
|
|
5086
|
+
if (nt(
|
|
5077
5087
|
e,
|
|
5078
5088
|
ln.input[t],
|
|
5079
5089
|
!0
|
|
@@ -5081,7 +5091,7 @@ function bl(e) {
|
|
|
5081
5091
|
return t;
|
|
5082
5092
|
return null;
|
|
5083
5093
|
}
|
|
5084
|
-
const { processGraphData:
|
|
5094
|
+
const { processGraphData: Fl } = Lr, { getFieldsToRetrieve: Ol } = li, Rl = (e) => {
|
|
5085
5095
|
const {
|
|
5086
5096
|
model: t,
|
|
5087
5097
|
domain: r = [],
|
|
@@ -5096,10 +5106,10 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
|
|
|
5096
5106
|
u(!0), f(void 0);
|
|
5097
5107
|
const T = Bn(o);
|
|
5098
5108
|
v(T.type || "line");
|
|
5099
|
-
const F =
|
|
5109
|
+
const F = Ol({ ooui: T });
|
|
5100
5110
|
let b, O;
|
|
5101
5111
|
try {
|
|
5102
|
-
({ values: b, fields: O } = await
|
|
5112
|
+
({ values: b, fields: O } = await Vl({
|
|
5103
5113
|
model: t,
|
|
5104
5114
|
domain: r,
|
|
5105
5115
|
context: i,
|
|
@@ -5118,7 +5128,7 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
|
|
|
5118
5128
|
return;
|
|
5119
5129
|
}
|
|
5120
5130
|
g(b);
|
|
5121
|
-
const R =
|
|
5131
|
+
const R = Fl({
|
|
5122
5132
|
ooui: T,
|
|
5123
5133
|
values: b,
|
|
5124
5134
|
fields: O,
|
|
@@ -5141,7 +5151,7 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
|
|
|
5141
5151
|
evaluatedEntries: h
|
|
5142
5152
|
};
|
|
5143
5153
|
};
|
|
5144
|
-
async function
|
|
5154
|
+
async function _l({
|
|
5145
5155
|
model: e,
|
|
5146
5156
|
context: t,
|
|
5147
5157
|
fields: r
|
|
@@ -5152,7 +5162,7 @@ async function Tl({
|
|
|
5152
5162
|
fields: r
|
|
5153
5163
|
});
|
|
5154
5164
|
}
|
|
5155
|
-
async function
|
|
5165
|
+
async function Vl({
|
|
5156
5166
|
fields: e,
|
|
5157
5167
|
model: t,
|
|
5158
5168
|
domain: r,
|
|
@@ -5161,7 +5171,7 @@ async function Il({
|
|
|
5161
5171
|
limit: s,
|
|
5162
5172
|
manualIds: a
|
|
5163
5173
|
}) {
|
|
5164
|
-
const l = await
|
|
5174
|
+
const l = await _l({ model: t, context: i, fields: e });
|
|
5165
5175
|
if (a) {
|
|
5166
5176
|
let u = await E.getHandler().readObjects({
|
|
5167
5177
|
model: t,
|
|
@@ -5186,13 +5196,13 @@ async function Il({
|
|
|
5186
5196
|
fields: l
|
|
5187
5197
|
};
|
|
5188
5198
|
}
|
|
5189
|
-
const
|
|
5190
|
-
line:
|
|
5191
|
-
bar:
|
|
5192
|
-
pie:
|
|
5193
|
-
},
|
|
5199
|
+
const Al = {
|
|
5200
|
+
line: Ii,
|
|
5201
|
+
bar: Fi,
|
|
5202
|
+
pie: Oi
|
|
5203
|
+
}, Dl = (e) => {
|
|
5194
5204
|
var v;
|
|
5195
|
-
const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } =
|
|
5205
|
+
const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = Rl({
|
|
5196
5206
|
model: t,
|
|
5197
5207
|
xml: o,
|
|
5198
5208
|
limit: s,
|
|
@@ -5207,7 +5217,7 @@ const Fl = {
|
|
|
5207
5217
|
return /* @__PURE__ */ n(Ae, {});
|
|
5208
5218
|
if (!c)
|
|
5209
5219
|
return /* @__PURE__ */ n(tt, { message: "No data to display", type: "info" });
|
|
5210
|
-
const { data: p, isGroup: h, isStack: g } = c, y =
|
|
5220
|
+
const { data: p, isGroup: h, isStack: g } = c, y = Al[f];
|
|
5211
5221
|
return y ? /* @__PURE__ */ A("div", { style: { padding: "1rem" }, children: [
|
|
5212
5222
|
/* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString(
|
|
5213
5223
|
"es-ES",
|
|
@@ -5218,7 +5228,7 @@ const Fl = {
|
|
|
5218
5228
|
/* @__PURE__ */ n(
|
|
5219
5229
|
y,
|
|
5220
5230
|
{
|
|
5221
|
-
...
|
|
5231
|
+
...kl({
|
|
5222
5232
|
type: f,
|
|
5223
5233
|
data: p,
|
|
5224
5234
|
isGroup: h,
|
|
@@ -5228,14 +5238,14 @@ const Fl = {
|
|
|
5228
5238
|
)
|
|
5229
5239
|
] }) : /* @__PURE__ */ n(Z, { children: `Unknown graph type: ${f}` });
|
|
5230
5240
|
};
|
|
5231
|
-
function
|
|
5241
|
+
function kl(e) {
|
|
5232
5242
|
const { type: t, data: r, isGroup: i, isStack: o } = e;
|
|
5233
5243
|
let s = Ir[t];
|
|
5234
5244
|
return s || (s = Ir.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;
|
|
5235
5245
|
}
|
|
5236
|
-
const
|
|
5246
|
+
const El = (e, t) => {
|
|
5237
5247
|
const { view_id: r, model: i, context: o, domain: s, limit: a, manualIds: l } = e, [d, u] = w(!1), [c, f] = w(), [m, p] = w(), h = H(
|
|
5238
|
-
|
|
5248
|
+
st
|
|
5239
5249
|
), { setGraphIsLoading: g = void 0 } = h || {};
|
|
5240
5250
|
bt(t, () => ({
|
|
5241
5251
|
refresh: () => {
|
|
@@ -5273,7 +5283,7 @@ const _l = (e, t) => {
|
|
|
5273
5283
|
alignContent: "center",
|
|
5274
5284
|
padding: "1rem"
|
|
5275
5285
|
},
|
|
5276
|
-
children: /* @__PURE__ */ n(
|
|
5286
|
+
children: /* @__PURE__ */ n(at, { style: { height: "12px" } })
|
|
5277
5287
|
}
|
|
5278
5288
|
);
|
|
5279
5289
|
if (!c)
|
|
@@ -5286,7 +5296,7 @@ const _l = (e, t) => {
|
|
|
5286
5296
|
operator: v.operator
|
|
5287
5297
|
} : {};
|
|
5288
5298
|
return /* @__PURE__ */ n(
|
|
5289
|
-
|
|
5299
|
+
wl,
|
|
5290
5300
|
{
|
|
5291
5301
|
showPercent: v.showPercent,
|
|
5292
5302
|
totalDomain: v.totalDomain,
|
|
@@ -5305,7 +5315,7 @@ const _l = (e, t) => {
|
|
|
5305
5315
|
case "bar":
|
|
5306
5316
|
case "pie":
|
|
5307
5317
|
return /* @__PURE__ */ n(
|
|
5308
|
-
|
|
5318
|
+
Dl,
|
|
5309
5319
|
{
|
|
5310
5320
|
model: i,
|
|
5311
5321
|
context: o,
|
|
@@ -5318,8 +5328,8 @@ const _l = (e, t) => {
|
|
|
5318
5328
|
default:
|
|
5319
5329
|
return /* @__PURE__ */ n(Z, { children: `Graph ${c.type} not implemented` });
|
|
5320
5330
|
}
|
|
5321
|
-
}, gn = wt(
|
|
5322
|
-
|
|
5331
|
+
}, gn = wt(El), { confirm: Ml } = Je, Nl = ({ onOk: e, lang: t }) => {
|
|
5332
|
+
Ml({
|
|
5323
5333
|
title: Fe("removeItems", t),
|
|
5324
5334
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5325
5335
|
centered: !0,
|
|
@@ -5328,8 +5338,8 @@ const _l = (e, t) => {
|
|
|
5328
5338
|
onOk: e,
|
|
5329
5339
|
cancelText: Fe("cancel", t)
|
|
5330
5340
|
});
|
|
5331
|
-
}, { confirm:
|
|
5332
|
-
|
|
5341
|
+
}, { confirm: Pl } = Je, Ll = ({ onOk: e, lang: t }) => {
|
|
5342
|
+
Pl({
|
|
5333
5343
|
title: Fe("unlinkItems", t),
|
|
5334
5344
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5335
5345
|
centered: !0,
|
|
@@ -5338,7 +5348,7 @@ const _l = (e, t) => {
|
|
|
5338
5348
|
onOk: e,
|
|
5339
5349
|
cancelText: Fe("cancel", t)
|
|
5340
5350
|
});
|
|
5341
|
-
}, { useToken:
|
|
5351
|
+
}, { useToken: Bl } = Pe, $l = (e) => {
|
|
5342
5352
|
const {
|
|
5343
5353
|
title: t,
|
|
5344
5354
|
readOnly: r,
|
|
@@ -5355,7 +5365,7 @@ const _l = (e, t) => {
|
|
|
5355
5365
|
selectedRowKeys: p,
|
|
5356
5366
|
showCreateButton: h,
|
|
5357
5367
|
showToggleButton: g
|
|
5358
|
-
} = e, { token: y } =
|
|
5368
|
+
} = e, { token: y } = Bl();
|
|
5359
5369
|
function v() {
|
|
5360
5370
|
return /* @__PURE__ */ n("div", { className: "inline-block w-3" });
|
|
5361
5371
|
}
|
|
@@ -5377,7 +5387,7 @@ const _l = (e, t) => {
|
|
|
5377
5387
|
Ze,
|
|
5378
5388
|
{
|
|
5379
5389
|
tooltip: f ? "Unlink" : "Delete",
|
|
5380
|
-
icon: f ? /* @__PURE__ */ n(
|
|
5390
|
+
icon: f ? /* @__PURE__ */ n(hi, {}) : /* @__PURE__ */ n(Gn, {}),
|
|
5381
5391
|
onClick: a,
|
|
5382
5392
|
disabled: l === 0 || r || s !== "form" && p.length === 0
|
|
5383
5393
|
}
|
|
@@ -5444,25 +5454,25 @@ const _l = (e, t) => {
|
|
|
5444
5454
|
Ze,
|
|
5445
5455
|
{
|
|
5446
5456
|
tooltip: "Toggle view mode",
|
|
5447
|
-
icon: /* @__PURE__ */ n(
|
|
5457
|
+
icon: /* @__PURE__ */ n(mi, {}),
|
|
5448
5458
|
onClick: o
|
|
5449
5459
|
}
|
|
5450
5460
|
)
|
|
5451
5461
|
] })
|
|
5452
5462
|
] });
|
|
5453
|
-
},
|
|
5463
|
+
}, Hl = {
|
|
5454
5464
|
form: Nr,
|
|
5455
5465
|
tree: Er,
|
|
5456
5466
|
graph: gn
|
|
5457
5467
|
};
|
|
5458
|
-
function
|
|
5468
|
+
function Kl(e) {
|
|
5459
5469
|
const t = e.map((i) => i.id);
|
|
5460
5470
|
return e.filter((i, o) => {
|
|
5461
5471
|
const { id: s } = i;
|
|
5462
5472
|
return !t.includes(s, o + 1);
|
|
5463
5473
|
});
|
|
5464
5474
|
}
|
|
5465
|
-
const
|
|
5475
|
+
const Wl = (e) => {
|
|
5466
5476
|
var We;
|
|
5467
5477
|
const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
|
|
5468
5478
|
So
|
|
@@ -5491,7 +5501,7 @@ const Ll = (e) => {
|
|
|
5491
5501
|
var ie, Se;
|
|
5492
5502
|
r == null || r({
|
|
5493
5503
|
fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
|
|
5494
|
-
items:
|
|
5504
|
+
items: Kl(q)
|
|
5495
5505
|
});
|
|
5496
5506
|
}, Ye = async () => {
|
|
5497
5507
|
await ke(), d > X.length - 1 && d !== 0 && u(0);
|
|
@@ -5512,7 +5522,7 @@ const Ll = (e) => {
|
|
|
5512
5522
|
context: { ...h == null ? void 0 : h(), ...N },
|
|
5513
5523
|
currentView: q || a
|
|
5514
5524
|
});
|
|
5515
|
-
return ne.current || (ne.current = Te.map((
|
|
5525
|
+
return ne.current || (ne.current = Te.map((rt) => rt.id)), (a || q) === "tree" && Re && le(Re), we(Te), Te;
|
|
5516
5526
|
} catch (Te) {
|
|
5517
5527
|
k(Te);
|
|
5518
5528
|
} finally {
|
|
@@ -5576,7 +5586,7 @@ const Ll = (e) => {
|
|
|
5576
5586
|
}) : q();
|
|
5577
5587
|
}, Me = () => {
|
|
5578
5588
|
if (ce) {
|
|
5579
|
-
|
|
5589
|
+
Ll({
|
|
5580
5590
|
lang: y,
|
|
5581
5591
|
onOk: () => {
|
|
5582
5592
|
a === "form" ? ve() : Ve();
|
|
@@ -5584,7 +5594,7 @@ const Ll = (e) => {
|
|
|
5584
5594
|
});
|
|
5585
5595
|
return;
|
|
5586
5596
|
}
|
|
5587
|
-
|
|
5597
|
+
Nl({
|
|
5588
5598
|
lang: y,
|
|
5589
5599
|
onOk: () => {
|
|
5590
5600
|
a === "form" ? ve() : Ve();
|
|
@@ -5647,7 +5657,7 @@ const Ll = (e) => {
|
|
|
5647
5657
|
treeValues: { ...Se, id: q }
|
|
5648
5658
|
} : Re);
|
|
5649
5659
|
else {
|
|
5650
|
-
const Re =
|
|
5660
|
+
const Re = Ns(s);
|
|
5651
5661
|
Te = s.concat({
|
|
5652
5662
|
id: Re,
|
|
5653
5663
|
operation: "pendingCreate",
|
|
@@ -5692,7 +5702,7 @@ const Ll = (e) => {
|
|
|
5692
5702
|
}
|
|
5693
5703
|
};
|
|
5694
5704
|
function $e() {
|
|
5695
|
-
const q =
|
|
5705
|
+
const q = Hl[a];
|
|
5696
5706
|
if (a === "graph")
|
|
5697
5707
|
return Bn(o.get("graph").arch).string;
|
|
5698
5708
|
{
|
|
@@ -5714,11 +5724,11 @@ const Ll = (e) => {
|
|
|
5714
5724
|
submitMode: "values",
|
|
5715
5725
|
onFieldsChange: (Re) => {
|
|
5716
5726
|
var _e;
|
|
5717
|
-
const
|
|
5727
|
+
const rt = (_e = X[d]) == null ? void 0 : _e.id, qe = s.map((Ge) => Ge.id === rt ? {
|
|
5718
5728
|
...Ge,
|
|
5719
5729
|
operation: Ge.operation === "original" ? "pendingUpdate" : Ge.operation,
|
|
5720
|
-
values: { ...Re, id:
|
|
5721
|
-
treeValues: { ...Re, id:
|
|
5730
|
+
values: { ...Re, id: rt },
|
|
5731
|
+
treeValues: { ...Re, id: rt }
|
|
5722
5732
|
} : Ge);
|
|
5723
5733
|
we(qe), F(!0);
|
|
5724
5734
|
},
|
|
@@ -5771,10 +5781,10 @@ const Ll = (e) => {
|
|
|
5771
5781
|
};
|
|
5772
5782
|
if (R)
|
|
5773
5783
|
return /* @__PURE__ */ n(tt, { className: "mt-10", message: R, type: "error", banner: !0 });
|
|
5774
|
-
const
|
|
5784
|
+
const Qe = M;
|
|
5775
5785
|
return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ A(Z, { children: [
|
|
5776
5786
|
/* @__PURE__ */ n(
|
|
5777
|
-
|
|
5787
|
+
$l,
|
|
5778
5788
|
{
|
|
5779
5789
|
mode: a,
|
|
5780
5790
|
title: $e(),
|
|
@@ -5811,7 +5821,7 @@ const Ll = (e) => {
|
|
|
5811
5821
|
B(!1), S(!1);
|
|
5812
5822
|
},
|
|
5813
5823
|
readOnly: Y,
|
|
5814
|
-
mustClearAfterSave:
|
|
5824
|
+
mustClearAfterSave: Qe
|
|
5815
5825
|
}
|
|
5816
5826
|
),
|
|
5817
5827
|
/* @__PURE__ */ n(
|
|
@@ -5830,7 +5840,7 @@ const Ll = (e) => {
|
|
|
5830
5840
|
}
|
|
5831
5841
|
)
|
|
5832
5842
|
] });
|
|
5833
|
-
},
|
|
5843
|
+
}, jl = (e) => {
|
|
5834
5844
|
const { ooui: t } = e, { mode: r, relation: i, views: o, required: s, context: a } = t;
|
|
5835
5845
|
let l;
|
|
5836
5846
|
const [d, u] = w(!0), [c, f] = w(), [m, p] = w(/* @__PURE__ */ new Map()), h = H(Ne), { getContext: g } = h || {};
|
|
@@ -5860,7 +5870,7 @@ const Ll = (e) => {
|
|
|
5860
5870
|
u(!1);
|
|
5861
5871
|
}
|
|
5862
5872
|
};
|
|
5863
|
-
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(tt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(
|
|
5873
|
+
return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(tt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(vl, { initialView: l, children: /* @__PURE__ */ n(
|
|
5864
5874
|
ge,
|
|
5865
5875
|
{
|
|
5866
5876
|
required: s,
|
|
@@ -5876,14 +5886,14 @@ const Ll = (e) => {
|
|
|
5876
5886
|
throw new Error();
|
|
5877
5887
|
},
|
|
5878
5888
|
...e,
|
|
5879
|
-
children: /* @__PURE__ */ n(
|
|
5889
|
+
children: /* @__PURE__ */ n(Wl, { ooui: t, views: m })
|
|
5880
5890
|
}
|
|
5881
5891
|
) });
|
|
5882
|
-
}, { useToken:
|
|
5892
|
+
}, { useToken: Yl } = Pe, Gl = (e) => {
|
|
5883
5893
|
const { ooui: t } = e, { required: r } = t;
|
|
5884
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
5885
|
-
},
|
|
5886
|
-
const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } =
|
|
5894
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(Ul, { ooui: t }) });
|
|
5895
|
+
}, Ul = (e) => {
|
|
5896
|
+
const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Yl(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = w(), m = H(Ne), { elementHasLostFocus: p } = m || {};
|
|
5887
5897
|
me(() => {
|
|
5888
5898
|
f(go(r));
|
|
5889
5899
|
}, [r]);
|
|
@@ -5894,10 +5904,10 @@ const Ll = (e) => {
|
|
|
5894
5904
|
u.current = v.target.value, f(v.target.value);
|
|
5895
5905
|
}
|
|
5896
5906
|
async function y() {
|
|
5897
|
-
h(
|
|
5907
|
+
h(ja(c)), await new Promise((v) => setTimeout(v, 300)), p == null || p();
|
|
5898
5908
|
}
|
|
5899
5909
|
return /* @__PURE__ */ n(
|
|
5900
|
-
|
|
5910
|
+
it,
|
|
5901
5911
|
{
|
|
5902
5912
|
value: c,
|
|
5903
5913
|
disabled: s,
|
|
@@ -5912,7 +5922,7 @@ const Ll = (e) => {
|
|
|
5912
5922
|
};
|
|
5913
5923
|
function Io(e) {
|
|
5914
5924
|
const { ooui: t, showLabel: r = !0, responsiveBehaviour: i } = e, o = ct(t.icon || "");
|
|
5915
|
-
return /* @__PURE__ */ n(Z, { children: (t.label || o) && r ? /* @__PURE__ */ n(
|
|
5925
|
+
return /* @__PURE__ */ n(Z, { children: (t.label || o) && r ? /* @__PURE__ */ n(Ki, { label: t.label, icon: o, children: /* @__PURE__ */ n(
|
|
5916
5926
|
Dn,
|
|
5917
5927
|
{
|
|
5918
5928
|
container: t.container,
|
|
@@ -5926,8 +5936,8 @@ function Io(e) {
|
|
|
5926
5936
|
}
|
|
5927
5937
|
) });
|
|
5928
5938
|
}
|
|
5929
|
-
const { TabPane:
|
|
5930
|
-
function
|
|
5939
|
+
const { TabPane: ql } = kr;
|
|
5940
|
+
function zl(e) {
|
|
5931
5941
|
const { ooui: t, responsiveBehaviour: r } = e, i = t.pages;
|
|
5932
5942
|
function o(s) {
|
|
5933
5943
|
if (s) {
|
|
@@ -5936,7 +5946,7 @@ function jl(e) {
|
|
|
5936
5946
|
}
|
|
5937
5947
|
}
|
|
5938
5948
|
return /* @__PURE__ */ n(kr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
5939
|
-
|
|
5949
|
+
ql,
|
|
5940
5950
|
{
|
|
5941
5951
|
tab: /* @__PURE__ */ A(Z, { children: [
|
|
5942
5952
|
o(s.icon),
|
|
@@ -5955,10 +5965,10 @@ function jl(e) {
|
|
|
5955
5965
|
s.label
|
|
5956
5966
|
)) });
|
|
5957
5967
|
}
|
|
5958
|
-
const { useToken:
|
|
5959
|
-
const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } =
|
|
5968
|
+
const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
5969
|
+
const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = Jl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
|
|
5960
5970
|
return /* @__PURE__ */ n(ge, { required: o, ...e, children: a ? /* @__PURE__ */ n(
|
|
5961
|
-
|
|
5971
|
+
Zl,
|
|
5962
5972
|
{
|
|
5963
5973
|
field: r,
|
|
5964
5974
|
height: s,
|
|
@@ -5976,7 +5986,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
5976
5986
|
onBlur: c
|
|
5977
5987
|
}
|
|
5978
5988
|
) });
|
|
5979
|
-
},
|
|
5989
|
+
}, Zl = ({
|
|
5980
5990
|
value: e,
|
|
5981
5991
|
field: t,
|
|
5982
5992
|
requiredStyle: r,
|
|
@@ -6066,13 +6076,13 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6066
6076
|
}
|
|
6067
6077
|
) })
|
|
6068
6078
|
] });
|
|
6069
|
-
},
|
|
6079
|
+
}, Ql = (e) => {
|
|
6070
6080
|
const { ooui: t } = e, { label: r, icon: i } = t, o = ct(i || "");
|
|
6071
6081
|
return /* @__PURE__ */ n(cn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ A(je, { children: [
|
|
6072
6082
|
o ? /* @__PURE__ */ n(o, {}) : null,
|
|
6073
6083
|
r
|
|
6074
6084
|
] }) });
|
|
6075
|
-
},
|
|
6085
|
+
}, ec = ({
|
|
6076
6086
|
model: e,
|
|
6077
6087
|
context: t,
|
|
6078
6088
|
locale: r,
|
|
@@ -6093,7 +6103,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6093
6103
|
]);
|
|
6094
6104
|
const { datas: T } = await E.getHandler().exportData({
|
|
6095
6105
|
model: e,
|
|
6096
|
-
fields:
|
|
6106
|
+
fields: sc({
|
|
6097
6107
|
keys: y.selectedKeys,
|
|
6098
6108
|
fields: l.current
|
|
6099
6109
|
}),
|
|
@@ -6122,7 +6132,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6122
6132
|
fields: []
|
|
6123
6133
|
});
|
|
6124
6134
|
for (const [O, R] of Object.entries(b))
|
|
6125
|
-
b[O].string =
|
|
6135
|
+
b[O].string = nc({
|
|
6126
6136
|
parentTitle: T.string,
|
|
6127
6137
|
title: R.string
|
|
6128
6138
|
});
|
|
@@ -6133,7 +6143,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6133
6143
|
},
|
|
6134
6144
|
[l.current, e, t]
|
|
6135
6145
|
), m = De(async () => {
|
|
6136
|
-
const y = await
|
|
6146
|
+
const y = await rc({ model: e, context: t }), v = await ic({
|
|
6137
6147
|
predefinedExports: y,
|
|
6138
6148
|
fields: l.current,
|
|
6139
6149
|
onGetFieldChilds: f
|
|
@@ -6216,7 +6226,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6216
6226
|
continue;
|
|
6217
6227
|
const s = Fo(o);
|
|
6218
6228
|
r.push({
|
|
6219
|
-
key:
|
|
6229
|
+
key: tc({ key: i, parentKey: t }),
|
|
6220
6230
|
title: o.string,
|
|
6221
6231
|
tooltip: o.help,
|
|
6222
6232
|
required: o.required,
|
|
@@ -6224,7 +6234,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6224
6234
|
});
|
|
6225
6235
|
}
|
|
6226
6236
|
return r;
|
|
6227
|
-
}, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
6237
|
+
}, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", tc = ({
|
|
6228
6238
|
parentKey: e,
|
|
6229
6239
|
key: t
|
|
6230
6240
|
}) => `${e ? e + "/" : ""}${t}`, $t = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), En = (e) => {
|
|
@@ -6232,10 +6242,10 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6232
6242
|
return e;
|
|
6233
6243
|
const t = e.split("/");
|
|
6234
6244
|
return t[t.length - 1];
|
|
6235
|
-
}, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)],
|
|
6245
|
+
}, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)], nc = ({
|
|
6236
6246
|
title: e,
|
|
6237
6247
|
parentTitle: t
|
|
6238
|
-
}) => `${t ? t + " → " : ""}${e}`,
|
|
6248
|
+
}) => `${t ? t + " → " : ""}${e}`, rc = async ({
|
|
6239
6249
|
model: e,
|
|
6240
6250
|
context: t
|
|
6241
6251
|
}) => {
|
|
@@ -6255,10 +6265,10 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6255
6265
|
key: o.find((d) => d.id === a).name
|
|
6256
6266
|
}))
|
|
6257
6267
|
}));
|
|
6258
|
-
},
|
|
6268
|
+
}, oc = ({
|
|
6259
6269
|
fields: e,
|
|
6260
6270
|
keys: t
|
|
6261
|
-
}) =>
|
|
6271
|
+
}) => ac([
|
|
6262
6272
|
...new Set(
|
|
6263
6273
|
t.filter((r) => {
|
|
6264
6274
|
var i, o, s;
|
|
@@ -6272,27 +6282,27 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6272
6282
|
}
|
|
6273
6283
|
}).map((r) => $t(r))
|
|
6274
6284
|
)
|
|
6275
|
-
]),
|
|
6285
|
+
]), ic = async ({
|
|
6276
6286
|
predefinedExports: e,
|
|
6277
6287
|
fields: t,
|
|
6278
6288
|
onGetFieldChilds: r
|
|
6279
6289
|
}) => {
|
|
6280
6290
|
const i = e.flatMap(
|
|
6281
6291
|
(a) => a.fields.map((l) => l.key)
|
|
6282
|
-
), o =
|
|
6292
|
+
), o = oc({
|
|
6283
6293
|
fields: t,
|
|
6284
6294
|
keys: i
|
|
6285
6295
|
}), s = [];
|
|
6286
6296
|
for (const a of o)
|
|
6287
6297
|
s.push({ key: a, childs: await r(a) });
|
|
6288
6298
|
return s;
|
|
6289
|
-
},
|
|
6299
|
+
}, sc = ({
|
|
6290
6300
|
keys: e,
|
|
6291
6301
|
fields: t
|
|
6292
6302
|
}) => e.map((r) => {
|
|
6293
6303
|
const i = En(r), s = Mn(r, t)[i];
|
|
6294
6304
|
return Fo(s) ? `${r}/id` : r;
|
|
6295
|
-
}),
|
|
6305
|
+
}), ac = (e) => {
|
|
6296
6306
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
6297
6307
|
for (const i of e) {
|
|
6298
6308
|
const o = i.split("/");
|
|
@@ -6306,7 +6316,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6306
6316
|
const s = i.split("/").length, a = o.split("/").length;
|
|
6307
6317
|
return s - a;
|
|
6308
6318
|
}), r;
|
|
6309
|
-
},
|
|
6319
|
+
}, lc = (e) => {
|
|
6310
6320
|
const {
|
|
6311
6321
|
visible: t,
|
|
6312
6322
|
locale: r,
|
|
@@ -6325,7 +6335,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6325
6335
|
onGetPredefinedExports: h,
|
|
6326
6336
|
onSavePredefinedExport: g,
|
|
6327
6337
|
onRemovePredefinedExport: y
|
|
6328
|
-
} =
|
|
6338
|
+
} = ec({
|
|
6329
6339
|
model: o,
|
|
6330
6340
|
context: s,
|
|
6331
6341
|
domain: d,
|
|
@@ -6335,7 +6345,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6335
6345
|
locale: r
|
|
6336
6346
|
});
|
|
6337
6347
|
return /* @__PURE__ */ n(
|
|
6338
|
-
|
|
6348
|
+
Wi,
|
|
6339
6349
|
{
|
|
6340
6350
|
visible: t,
|
|
6341
6351
|
locale: r,
|
|
@@ -6351,29 +6361,27 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
|
|
|
6351
6361
|
onRemovePredefinedExport: y
|
|
6352
6362
|
}
|
|
6353
6363
|
);
|
|
6354
|
-
},
|
|
6364
|
+
}, cc = (e) => {
|
|
6355
6365
|
const { ooui: t } = e;
|
|
6356
6366
|
return /* @__PURE__ */ n(vo, { ooui: t });
|
|
6357
|
-
},
|
|
6367
|
+
}, dc = (e) => {
|
|
6358
6368
|
const { ooui: t } = e;
|
|
6359
6369
|
return /* @__PURE__ */ n(vo, { ooui: t, showTime: !0 });
|
|
6360
|
-
}
|
|
6361
|
-
at.extend(Pi);
|
|
6362
|
-
const sc = (e) => {
|
|
6370
|
+
}, uc = (e) => {
|
|
6363
6371
|
const { ooui: t } = e;
|
|
6364
|
-
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(
|
|
6365
|
-
},
|
|
6372
|
+
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(fc, { ooui: t }) });
|
|
6373
|
+
}, fc = (e) => /* @__PURE__ */ n(
|
|
6366
6374
|
Vr,
|
|
6367
6375
|
{
|
|
6368
6376
|
onChange: (r, i) => {
|
|
6369
6377
|
e.onChange && e.onChange(i);
|
|
6370
6378
|
},
|
|
6371
|
-
value: e.value ?
|
|
6379
|
+
value: e.value ? nt(e.value, "HH:mm:ss") : void 0
|
|
6372
6380
|
}
|
|
6373
|
-
),
|
|
6381
|
+
), mc = (e) => {
|
|
6374
6382
|
const { ooui: t } = e, { required: r } = t;
|
|
6375
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
6376
|
-
},
|
|
6383
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(hc, { ooui: t }) });
|
|
6384
|
+
}, hc = (e) => {
|
|
6377
6385
|
const { value: t, onChange: r, ooui: i } = e, { required: o, selectionValues: s, readOnly: a } = i, l = t == null ? void 0 : t.split(","), [d, u] = w([]), [c, f] = w();
|
|
6378
6386
|
return me(() => {
|
|
6379
6387
|
if (!t) {
|
|
@@ -6420,11 +6428,11 @@ const sc = (e) => {
|
|
|
6420
6428
|
}
|
|
6421
6429
|
) })
|
|
6422
6430
|
] });
|
|
6423
|
-
}, { useToken:
|
|
6431
|
+
}, { useToken: pc } = Pe, gc = (e) => {
|
|
6424
6432
|
const { ooui: t } = e, { required: r } = t;
|
|
6425
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
6426
|
-
},
|
|
6427
|
-
const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } =
|
|
6433
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(yc, { ooui: t }) });
|
|
6434
|
+
}, yc = (e) => {
|
|
6435
|
+
const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = pc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), p = r ? _s(r) : "", h = (F) => {
|
|
6428
6436
|
i == null || i(F);
|
|
6429
6437
|
};
|
|
6430
6438
|
async function g() {
|
|
@@ -6456,7 +6464,7 @@ const sc = (e) => {
|
|
|
6456
6464
|
}
|
|
6457
6465
|
),
|
|
6458
6466
|
/* @__PURE__ */ n(
|
|
6459
|
-
|
|
6467
|
+
it,
|
|
6460
6468
|
{
|
|
6461
6469
|
type: "text",
|
|
6462
6470
|
disabled: !0,
|
|
@@ -6477,7 +6485,7 @@ const sc = (e) => {
|
|
|
6477
6485
|
children: "Select"
|
|
6478
6486
|
}
|
|
6479
6487
|
),
|
|
6480
|
-
/* @__PURE__ */ n(Oe, { icon: /* @__PURE__ */ n(
|
|
6488
|
+
/* @__PURE__ */ n(Oe, { icon: /* @__PURE__ */ n(pi, {}), disabled: !r, onClick: y, children: m("open") }),
|
|
6481
6489
|
/* @__PURE__ */ n(
|
|
6482
6490
|
Ze,
|
|
6483
6491
|
{
|
|
@@ -6501,8 +6509,8 @@ const sc = (e) => {
|
|
|
6501
6509
|
}, Fn = {
|
|
6502
6510
|
tree: /* @__PURE__ */ n(Un, {}),
|
|
6503
6511
|
form: /* @__PURE__ */ n(Kt, {}),
|
|
6504
|
-
graph: /* @__PURE__ */ n(
|
|
6505
|
-
calendar: /* @__PURE__ */ n(
|
|
6512
|
+
graph: /* @__PURE__ */ n(gi, {}),
|
|
6513
|
+
calendar: /* @__PURE__ */ n(yi, {})
|
|
6506
6514
|
};
|
|
6507
6515
|
function Or(e) {
|
|
6508
6516
|
return e ? (Fn == null ? void 0 : Fn[e.type]) || /* @__PURE__ */ n(Kt, {}) : /* @__PURE__ */ n(Kt, {});
|
|
@@ -6589,7 +6597,7 @@ function Qn(e) {
|
|
|
6589
6597
|
)
|
|
6590
6598
|
] });
|
|
6591
6599
|
}
|
|
6592
|
-
const { Search:
|
|
6600
|
+
const { Search: vc } = it;
|
|
6593
6601
|
function Vt(e) {
|
|
6594
6602
|
const {
|
|
6595
6603
|
icon: t,
|
|
@@ -6617,7 +6625,7 @@ function Vt(e) {
|
|
|
6617
6625
|
const h = p.map((y, v) => y.name === "divider" ? /* @__PURE__ */ n(He.Divider, {}, "divider" + v) : /* @__PURE__ */ n(He.Item, { children: y.name }, y.id)), g = l === !0 || l === "auto" && i.length > 3;
|
|
6618
6626
|
return /* @__PURE__ */ A(He, { onClick: m, children: [
|
|
6619
6627
|
g && /* @__PURE__ */ n(
|
|
6620
|
-
|
|
6628
|
+
vc,
|
|
6621
6629
|
{
|
|
6622
6630
|
onChange: (y) => c(y.target.value),
|
|
6623
6631
|
onSearch: c,
|
|
@@ -6665,7 +6673,7 @@ function Xe(e) {
|
|
|
6665
6673
|
onClick: t,
|
|
6666
6674
|
disabled: r,
|
|
6667
6675
|
children: [
|
|
6668
|
-
i ? /* @__PURE__ */ n(
|
|
6676
|
+
i ? /* @__PURE__ */ n(at, {}) : s,
|
|
6669
6677
|
a
|
|
6670
6678
|
]
|
|
6671
6679
|
}
|
|
@@ -6673,7 +6681,7 @@ function Xe(e) {
|
|
|
6673
6681
|
}
|
|
6674
6682
|
function Oo(e) {
|
|
6675
6683
|
const { disabled: t = !1 } = e, { formHasChanges: r, onNewClicked: i } = H(
|
|
6676
|
-
|
|
6684
|
+
st
|
|
6677
6685
|
), { t: o, lang: s } = H(he), a = () => {
|
|
6678
6686
|
if (r) {
|
|
6679
6687
|
zt({
|
|
@@ -6696,12 +6704,12 @@ function Oo(e) {
|
|
|
6696
6704
|
}
|
|
6697
6705
|
);
|
|
6698
6706
|
}
|
|
6699
|
-
const { confirm:
|
|
6707
|
+
const { confirm: wc } = Je, bc = ({
|
|
6700
6708
|
onOk: e,
|
|
6701
6709
|
onCancel: t,
|
|
6702
6710
|
lang: r
|
|
6703
6711
|
}) => {
|
|
6704
|
-
|
|
6712
|
+
wc({
|
|
6705
6713
|
title: Fe("unsavedChanges", r),
|
|
6706
6714
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6707
6715
|
centered: !0,
|
|
@@ -6735,25 +6743,25 @@ async function Ro(e, t, r) {
|
|
|
6735
6743
|
] })
|
|
6736
6744
|
);
|
|
6737
6745
|
}
|
|
6738
|
-
const
|
|
6746
|
+
const Cc = (e) => {
|
|
6739
6747
|
const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = w(!1), l = /* @__PURE__ */ A(Oe, { disabled: r, children: [
|
|
6740
6748
|
/* @__PURE__ */ n(qr, {}),
|
|
6741
6749
|
`(${t})`,
|
|
6742
6750
|
/* @__PURE__ */ n(kt, { style: { fontSize: 12 } })
|
|
6743
6751
|
] });
|
|
6744
6752
|
return r ? l : /* @__PURE__ */ n(
|
|
6745
|
-
|
|
6753
|
+
ti,
|
|
6746
6754
|
{
|
|
6747
6755
|
onVisibleChange: (d) => a(d),
|
|
6748
6756
|
visible: s,
|
|
6749
6757
|
placement: "bottom",
|
|
6750
|
-
content:
|
|
6758
|
+
content: xc(e, a, o),
|
|
6751
6759
|
title: i("attachments"),
|
|
6752
6760
|
arrowContent: null,
|
|
6753
6761
|
children: l
|
|
6754
6762
|
}
|
|
6755
6763
|
);
|
|
6756
|
-
},
|
|
6764
|
+
}, xc = (e, t, r) => {
|
|
6757
6765
|
const {
|
|
6758
6766
|
attachments: i = [],
|
|
6759
6767
|
loading: o,
|
|
@@ -6837,14 +6845,14 @@ const gc = (e) => {
|
|
|
6837
6845
|
] })
|
|
6838
6846
|
] });
|
|
6839
6847
|
};
|
|
6840
|
-
function
|
|
6848
|
+
function Sc(e) {
|
|
6841
6849
|
const {
|
|
6842
6850
|
attachments: t,
|
|
6843
6851
|
disabled: r = !1,
|
|
6844
6852
|
onAddNewAttachment: i,
|
|
6845
6853
|
onListAllAttachments: o,
|
|
6846
6854
|
onViewAttachmentDetails: s
|
|
6847
|
-
} = e, { formRef: a } = H(
|
|
6855
|
+
} = e, { formRef: a } = H(st), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!1), { t: p } = H(he), h = De(async () => {
|
|
6848
6856
|
d(!0);
|
|
6849
6857
|
try {
|
|
6850
6858
|
const v = await E.getHandler().readObjects({
|
|
@@ -6894,7 +6902,7 @@ function vc(e) {
|
|
|
6894
6902
|
h();
|
|
6895
6903
|
}, [h]), /* @__PURE__ */ A(Z, { children: [
|
|
6896
6904
|
/* @__PURE__ */ n(
|
|
6897
|
-
|
|
6905
|
+
Cc,
|
|
6898
6906
|
{
|
|
6899
6907
|
numberOfAttachments: t.length,
|
|
6900
6908
|
attachments: u,
|
|
@@ -6920,7 +6928,7 @@ function vc(e) {
|
|
|
6920
6928
|
)
|
|
6921
6929
|
] });
|
|
6922
6930
|
}
|
|
6923
|
-
function
|
|
6931
|
+
function Tc({ toolbar: e }) {
|
|
6924
6932
|
const {
|
|
6925
6933
|
availableViews: t,
|
|
6926
6934
|
currentView: r,
|
|
@@ -6946,14 +6954,14 @@ function wc({ toolbar: e }) {
|
|
|
6946
6954
|
previousView: R,
|
|
6947
6955
|
setPreviousView: k,
|
|
6948
6956
|
goToResourceId: x
|
|
6949
|
-
} = H(
|
|
6957
|
+
} = H(st), { t: S, lang: I } = H(he), C = H(
|
|
6950
6958
|
Pt
|
|
6951
6959
|
), { processAction: D } = C || {}, P = H(
|
|
6952
6960
|
dt
|
|
6953
6961
|
), { openRelate: L, openDefaultActionForModel: j } = P || {};
|
|
6954
6962
|
function M(_) {
|
|
6955
6963
|
if (s) {
|
|
6956
|
-
|
|
6964
|
+
bc({
|
|
6957
6965
|
lang: I,
|
|
6958
6966
|
onOk: () => {
|
|
6959
6967
|
_();
|
|
@@ -7049,7 +7057,7 @@ function wc({ toolbar: e }) {
|
|
|
7049
7057
|
/* @__PURE__ */ n(
|
|
7050
7058
|
Xe,
|
|
7051
7059
|
{
|
|
7052
|
-
icon: /* @__PURE__ */ n(
|
|
7060
|
+
icon: /* @__PURE__ */ n(vi, {}),
|
|
7053
7061
|
tooltip: S("save"),
|
|
7054
7062
|
disabled: !s || le,
|
|
7055
7063
|
loading: a,
|
|
@@ -7203,7 +7211,7 @@ function wc({ toolbar: e }) {
|
|
|
7203
7211
|
}
|
|
7204
7212
|
),
|
|
7205
7213
|
/* @__PURE__ */ n(
|
|
7206
|
-
|
|
7214
|
+
Sc,
|
|
7207
7215
|
{
|
|
7208
7216
|
disabled: le,
|
|
7209
7217
|
attachments: F,
|
|
@@ -7269,8 +7277,8 @@ function Rr(e, t) {
|
|
|
7269
7277
|
}
|
|
7270
7278
|
};
|
|
7271
7279
|
}
|
|
7272
|
-
const { useToken:
|
|
7273
|
-
const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } =
|
|
7280
|
+
const { useToken: Ic } = Pe, _o = (e) => {
|
|
7281
|
+
const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Ic(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [p, h] = w(!1), [g, y] = w(!1);
|
|
7274
7282
|
me(() => {
|
|
7275
7283
|
l && !p && y(!1), !r && !l && (h(!0), y(!0));
|
|
7276
7284
|
}, [p, l]);
|
|
@@ -7300,7 +7308,7 @@ const { useToken: bc } = Pe, _o = (e) => {
|
|
|
7300
7308
|
}
|
|
7301
7309
|
) }),
|
|
7302
7310
|
/* @__PURE__ */ n(ae, { flex: "auto", children: g ? /* @__PURE__ */ n(
|
|
7303
|
-
|
|
7311
|
+
it,
|
|
7304
7312
|
{
|
|
7305
7313
|
style: {
|
|
7306
7314
|
borderTopLeftRadius: 0,
|
|
@@ -7325,26 +7333,26 @@ const { useToken: bc } = Pe, _o = (e) => {
|
|
|
7325
7333
|
}
|
|
7326
7334
|
) })
|
|
7327
7335
|
] });
|
|
7328
|
-
},
|
|
7336
|
+
}, Fc = (e) => {
|
|
7329
7337
|
const { ooui: t } = e, { required: r } = t;
|
|
7330
7338
|
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
7331
7339
|
_o,
|
|
7332
7340
|
{
|
|
7333
7341
|
ooui: t,
|
|
7334
|
-
valueValidator: (i) => i ?
|
|
7342
|
+
valueValidator: (i) => i ? ji(i) : !1
|
|
7335
7343
|
}
|
|
7336
7344
|
) });
|
|
7337
|
-
},
|
|
7345
|
+
}, Oc = (e) => {
|
|
7338
7346
|
const { ooui: t } = e, { required: r } = t;
|
|
7339
7347
|
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
7340
7348
|
_o,
|
|
7341
7349
|
{
|
|
7342
7350
|
ooui: t,
|
|
7343
7351
|
linkPrefix: "mailto:",
|
|
7344
|
-
valueValidator: (i) => i ?
|
|
7352
|
+
valueValidator: (i) => i ? Yi(i) : !1
|
|
7345
7353
|
}
|
|
7346
7354
|
) });
|
|
7347
|
-
},
|
|
7355
|
+
}, Rc = (e) => {
|
|
7348
7356
|
const { visible: t, onIdSubmitted: r, onCancel: i, isSearching: o } = e, { t: s } = H(he), a = de();
|
|
7349
7357
|
function l(d) {
|
|
7350
7358
|
const u = d.id.split(",").map((c) => parseInt(c.trim()));
|
|
@@ -7376,7 +7384,7 @@ const { useToken: bc } = Pe, _o = (e) => {
|
|
|
7376
7384
|
}
|
|
7377
7385
|
],
|
|
7378
7386
|
help: s("searchIdHelp"),
|
|
7379
|
-
children: /* @__PURE__ */ n(
|
|
7387
|
+
children: /* @__PURE__ */ n(it, { style: { width: "100%" }, autoFocus: !0, ref: a })
|
|
7380
7388
|
}
|
|
7381
7389
|
),
|
|
7382
7390
|
/* @__PURE__ */ n(be, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ae, { children: /* @__PURE__ */ A(je, { children: [
|
|
@@ -7406,9 +7414,9 @@ const { useToken: bc } = Pe, _o = (e) => {
|
|
|
7406
7414
|
] })
|
|
7407
7415
|
}
|
|
7408
7416
|
);
|
|
7409
|
-
}, { useToken:
|
|
7417
|
+
}, { useToken: _c } = Pe;
|
|
7410
7418
|
function Vo(e) {
|
|
7411
|
-
const { badgeNumber: t = 0, ...r } = e, { token: i } =
|
|
7419
|
+
const { badgeNumber: t = 0, ...r } = e, { token: i } = _c();
|
|
7412
7420
|
return /* @__PURE__ */ A("div", { style: { position: "relative" }, children: [
|
|
7413
7421
|
t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
|
|
7414
7422
|
"span",
|
|
@@ -7435,7 +7443,7 @@ function Vo(e) {
|
|
|
7435
7443
|
)
|
|
7436
7444
|
] });
|
|
7437
7445
|
}
|
|
7438
|
-
function
|
|
7446
|
+
function Vc({ refreshGraph: e }) {
|
|
7439
7447
|
const { t } = H(he), {
|
|
7440
7448
|
availableViews: r,
|
|
7441
7449
|
currentView: i,
|
|
@@ -7446,7 +7454,7 @@ function Ic({ refreshGraph: e }) {
|
|
|
7446
7454
|
graphIsLoading: d,
|
|
7447
7455
|
previousView: u,
|
|
7448
7456
|
setPreviousView: c
|
|
7449
|
-
} = H(
|
|
7457
|
+
} = H(st);
|
|
7450
7458
|
return /* @__PURE__ */ A(je, { wrap: !0, children: [
|
|
7451
7459
|
/* @__PURE__ */ n(
|
|
7452
7460
|
Vo,
|
|
@@ -7492,7 +7500,7 @@ function Ic({ refreshGraph: e }) {
|
|
|
7492
7500
|
)
|
|
7493
7501
|
] });
|
|
7494
7502
|
}
|
|
7495
|
-
const { useToken:
|
|
7503
|
+
const { useToken: Ac } = Pe, { Title: Dc, Text: en } = Yt;
|
|
7496
7504
|
function yn(e) {
|
|
7497
7505
|
const { title: t, children: r } = e, {
|
|
7498
7506
|
title: i,
|
|
@@ -7502,7 +7510,7 @@ function yn(e) {
|
|
|
7502
7510
|
results: l,
|
|
7503
7511
|
totalItems: d,
|
|
7504
7512
|
selectedRowItems: u
|
|
7505
|
-
} = H(
|
|
7513
|
+
} = H(st), { t: c } = H(he), { token: f } = Ac();
|
|
7506
7514
|
function m() {
|
|
7507
7515
|
if ((o == null ? void 0 : o.type) === "form")
|
|
7508
7516
|
return s ? d === 0 ? /* @__PURE__ */ A(Z, { children: [
|
|
@@ -7575,7 +7583,7 @@ function yn(e) {
|
|
|
7575
7583
|
align: "middle",
|
|
7576
7584
|
children: [
|
|
7577
7585
|
/* @__PURE__ */ A(ae, { flex: 2, children: [
|
|
7578
|
-
/* @__PURE__ */ n(
|
|
7586
|
+
/* @__PURE__ */ n(Dc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
|
|
7579
7587
|
m()
|
|
7580
7588
|
] }),
|
|
7581
7589
|
/* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(be, { justify: "end", children: r }) })
|
|
@@ -7585,9 +7593,9 @@ function yn(e) {
|
|
|
7585
7593
|
/* @__PURE__ */ n("div", { className: "pb-5" })
|
|
7586
7594
|
] });
|
|
7587
7595
|
}
|
|
7588
|
-
const
|
|
7596
|
+
const kc = (e) => {
|
|
7589
7597
|
const { viewData: t, visible: r, model: i, context: o, domain: s, formView: a, treeView: l } = e, d = de(), u = H(
|
|
7590
|
-
|
|
7598
|
+
st
|
|
7591
7599
|
), {
|
|
7592
7600
|
setResults: c = void 0,
|
|
7593
7601
|
setCurrentItemIndex: f = void 0,
|
|
@@ -7640,7 +7648,7 @@ const Rc = (e) => {
|
|
|
7640
7648
|
});
|
|
7641
7649
|
return !r || !t ? null : /* @__PURE__ */ A(Z, { children: [
|
|
7642
7650
|
/* @__PURE__ */ n(yn, { title: t.name, children: /* @__PURE__ */ n(
|
|
7643
|
-
|
|
7651
|
+
Vc,
|
|
7644
7652
|
{
|
|
7645
7653
|
refreshGraph: () => {
|
|
7646
7654
|
d.current.refresh();
|
|
@@ -7681,7 +7689,7 @@ const Rc = (e) => {
|
|
|
7681
7689
|
}
|
|
7682
7690
|
)
|
|
7683
7691
|
] });
|
|
7684
|
-
},
|
|
7692
|
+
}, Ec = (e) => {
|
|
7685
7693
|
const {
|
|
7686
7694
|
visible: t,
|
|
7687
7695
|
formRef: r,
|
|
@@ -7697,7 +7705,7 @@ const Rc = (e) => {
|
|
|
7697
7705
|
setCurrentItemIndex: m
|
|
7698
7706
|
} = e;
|
|
7699
7707
|
return t ? /* @__PURE__ */ A(Z, { children: [
|
|
7700
|
-
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
7708
|
+
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Tc, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
7701
7709
|
/* @__PURE__ */ n(
|
|
7702
7710
|
Jt,
|
|
7703
7711
|
{
|
|
@@ -7717,7 +7725,7 @@ const Rc = (e) => {
|
|
|
7717
7725
|
)
|
|
7718
7726
|
] }) : null;
|
|
7719
7727
|
};
|
|
7720
|
-
function
|
|
7728
|
+
function Mc(e) {
|
|
7721
7729
|
const { onSearch: t, disabled: r = !1, searchText: i } = e, { t: o } = H(he), [s] = lt.useForm(), [a, l] = w(!1);
|
|
7722
7730
|
function d(c) {
|
|
7723
7731
|
t(c.search);
|
|
@@ -7730,7 +7738,7 @@ function Vc(e) {
|
|
|
7730
7738
|
}
|
|
7731
7739
|
return /* @__PURE__ */ n(lt, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ A(be, { align: "middle", justify: "end", children: [
|
|
7732
7740
|
/* @__PURE__ */ n(ae, { children: /* @__PURE__ */ n(lt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
|
|
7733
|
-
|
|
7741
|
+
it,
|
|
7734
7742
|
{
|
|
7735
7743
|
autoFocus: !0,
|
|
7736
7744
|
disabled: r,
|
|
@@ -7739,7 +7747,7 @@ function Vc(e) {
|
|
|
7739
7747
|
},
|
|
7740
7748
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
7741
7749
|
suffix: (a || i && i.length > 0) && /* @__PURE__ */ n(ht, { title: o("clear"), children: /* @__PURE__ */ n(
|
|
7742
|
-
|
|
7750
|
+
wi,
|
|
7743
7751
|
{
|
|
7744
7752
|
style: { color: "rgba(0,0,0,.45)" },
|
|
7745
7753
|
onClick: u
|
|
@@ -7758,15 +7766,15 @@ function Vc(e) {
|
|
|
7758
7766
|
) })
|
|
7759
7767
|
] }) });
|
|
7760
7768
|
}
|
|
7761
|
-
const
|
|
7769
|
+
const Nc = et.createContext({
|
|
7762
7770
|
erpFeatures: {}
|
|
7763
7771
|
});
|
|
7764
7772
|
var Ao = /* @__PURE__ */ ((e) => (e.FEATURE_ADVANCED_EXPORT = "export_data2", e))(Ao || {});
|
|
7765
|
-
const
|
|
7766
|
-
const { erpFeatures: t } =
|
|
7773
|
+
const Pc = () => H(Nc), Lc = (e) => {
|
|
7774
|
+
const { erpFeatures: t } = Pc();
|
|
7767
7775
|
return !!t[e];
|
|
7768
7776
|
};
|
|
7769
|
-
function
|
|
7777
|
+
function Bc(e) {
|
|
7770
7778
|
var le;
|
|
7771
7779
|
const {
|
|
7772
7780
|
availableViews: t,
|
|
@@ -7792,7 +7800,7 @@ function Ec(e) {
|
|
|
7792
7800
|
results: O,
|
|
7793
7801
|
limit: R,
|
|
7794
7802
|
totalItems: k
|
|
7795
|
-
} = H(
|
|
7803
|
+
} = H(st), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C = Lc(
|
|
7796
7804
|
Ao.FEATURE_ADVANCED_EXPORT
|
|
7797
7805
|
), { t: D, lang: P } = H(he), L = H(
|
|
7798
7806
|
Pt
|
|
@@ -7863,7 +7871,7 @@ function Ec(e) {
|
|
|
7863
7871
|
] }),
|
|
7864
7872
|
S ? null : /* @__PURE__ */ A(Z, { children: [
|
|
7865
7873
|
/* @__PURE__ */ n(
|
|
7866
|
-
|
|
7874
|
+
Mc,
|
|
7867
7875
|
{
|
|
7868
7876
|
disabled: l || a || T,
|
|
7869
7877
|
searchText: v,
|
|
@@ -8048,7 +8056,7 @@ function Ec(e) {
|
|
|
8048
8056
|
}
|
|
8049
8057
|
),
|
|
8050
8058
|
/* @__PURE__ */ n(
|
|
8051
|
-
|
|
8059
|
+
lc,
|
|
8052
8060
|
{
|
|
8053
8061
|
visible: M,
|
|
8054
8062
|
locale: P,
|
|
@@ -8071,7 +8079,7 @@ function Ec(e) {
|
|
|
8071
8079
|
function yt() {
|
|
8072
8080
|
return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
|
|
8073
8081
|
}
|
|
8074
|
-
const
|
|
8082
|
+
const $c = (e) => {
|
|
8075
8083
|
const {
|
|
8076
8084
|
visible: t,
|
|
8077
8085
|
searchTreeRef: r,
|
|
@@ -8087,11 +8095,11 @@ const Mc = (e) => {
|
|
|
8087
8095
|
availableViews: m,
|
|
8088
8096
|
searchTreeNameSearch: p
|
|
8089
8097
|
} = e, { currentView: h, setPreviousView: g } = H(
|
|
8090
|
-
|
|
8098
|
+
st
|
|
8091
8099
|
);
|
|
8092
8100
|
return t ? /* @__PURE__ */ A(Z, { children: [
|
|
8093
8101
|
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
8094
|
-
|
|
8102
|
+
Bc,
|
|
8095
8103
|
{
|
|
8096
8104
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
8097
8105
|
parentContext: o,
|
|
@@ -8122,7 +8130,7 @@ const Mc = (e) => {
|
|
|
8122
8130
|
}
|
|
8123
8131
|
)
|
|
8124
8132
|
] }) : null;
|
|
8125
|
-
}, er =
|
|
8133
|
+
}, er = et.createContext(null), Hc = (e) => {
|
|
8126
8134
|
const [t, r] = w(!1), [i, o] = w(!1), { children: s, dashboardRef: a, openAction: l } = e;
|
|
8127
8135
|
return /* @__PURE__ */ n(
|
|
8128
8136
|
er.Provider,
|
|
@@ -8139,14 +8147,14 @@ const Mc = (e) => {
|
|
|
8139
8147
|
}
|
|
8140
8148
|
);
|
|
8141
8149
|
};
|
|
8142
|
-
function
|
|
8150
|
+
function Kc() {
|
|
8143
8151
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(er), { t: o } = H(he);
|
|
8144
8152
|
return /* @__PURE__ */ A(je, { wrap: !0, children: [
|
|
8145
8153
|
/* @__PURE__ */ n(
|
|
8146
8154
|
Xe,
|
|
8147
8155
|
{
|
|
8148
8156
|
icon: /* @__PURE__ */ n(
|
|
8149
|
-
|
|
8157
|
+
bi,
|
|
8150
8158
|
{
|
|
8151
8159
|
style: { color: r ? "white" : void 0 }
|
|
8152
8160
|
}
|
|
@@ -8160,11 +8168,11 @@ function Pc() {
|
|
|
8160
8168
|
}
|
|
8161
8169
|
}
|
|
8162
8170
|
),
|
|
8163
|
-
|
|
8171
|
+
Wc(),
|
|
8164
8172
|
/* @__PURE__ */ n(
|
|
8165
8173
|
Xe,
|
|
8166
8174
|
{
|
|
8167
|
-
icon: /* @__PURE__ */ n(
|
|
8175
|
+
icon: /* @__PURE__ */ n(Ci, {}),
|
|
8168
8176
|
tooltip: o("configDashboard"),
|
|
8169
8177
|
disabled: e,
|
|
8170
8178
|
loading: !1,
|
|
@@ -8187,24 +8195,24 @@ function Pc() {
|
|
|
8187
8195
|
)
|
|
8188
8196
|
] });
|
|
8189
8197
|
}
|
|
8190
|
-
function
|
|
8198
|
+
function Wc() {
|
|
8191
8199
|
return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
|
|
8192
8200
|
}
|
|
8193
|
-
const
|
|
8201
|
+
const jc = (e) => {
|
|
8194
8202
|
const { dashboardData: t } = e, r = de(), i = H(
|
|
8195
8203
|
dt
|
|
8196
8204
|
), { openShortcut: o } = i || {};
|
|
8197
8205
|
return t ? /* @__PURE__ */ A(
|
|
8198
|
-
|
|
8206
|
+
Hc,
|
|
8199
8207
|
{
|
|
8200
8208
|
dashboardRef: r,
|
|
8201
8209
|
openAction: (s) => {
|
|
8202
8210
|
o(s);
|
|
8203
8211
|
},
|
|
8204
8212
|
children: [
|
|
8205
|
-
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
8213
|
+
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Kc, {}) }),
|
|
8206
8214
|
/* @__PURE__ */ n(
|
|
8207
|
-
|
|
8215
|
+
rd,
|
|
8208
8216
|
{
|
|
8209
8217
|
ref: r,
|
|
8210
8218
|
model: t.model,
|
|
@@ -8217,7 +8225,7 @@ const Bc = (e) => {
|
|
|
8217
8225
|
}
|
|
8218
8226
|
) : null;
|
|
8219
8227
|
};
|
|
8220
|
-
async function
|
|
8228
|
+
async function Yc(e) {
|
|
8221
8229
|
const t = await Promise.all(
|
|
8222
8230
|
e.map(async (i) => {
|
|
8223
8231
|
try {
|
|
@@ -8232,7 +8240,7 @@ async function $c(e) {
|
|
|
8232
8240
|
info: t[o]
|
|
8233
8241
|
})).filter((i) => i.info !== null);
|
|
8234
8242
|
}
|
|
8235
|
-
function
|
|
8243
|
+
function Gc(e, t) {
|
|
8236
8244
|
const {
|
|
8237
8245
|
domain: r,
|
|
8238
8246
|
model: i,
|
|
@@ -8261,7 +8269,7 @@ function Hc(e, t) {
|
|
|
8261
8269
|
openAction: Ye,
|
|
8262
8270
|
onRemoveTab: ke
|
|
8263
8271
|
} = Ie || {};
|
|
8264
|
-
|
|
8272
|
+
Gi(
|
|
8265
8273
|
"ctrl+g,command+g",
|
|
8266
8274
|
(z) => {
|
|
8267
8275
|
z.preventDefault(), Ee();
|
|
@@ -8294,7 +8302,7 @@ function Hc(e, t) {
|
|
|
8294
8302
|
viewTuple: oe
|
|
8295
8303
|
});
|
|
8296
8304
|
}
|
|
8297
|
-
const Ve = await
|
|
8305
|
+
const Ve = await Yc(ve);
|
|
8298
8306
|
for (const oe of Ve) {
|
|
8299
8307
|
if (!oe)
|
|
8300
8308
|
continue;
|
|
@@ -8305,8 +8313,8 @@ function Hc(e, t) {
|
|
|
8305
8313
|
const [, q] = We;
|
|
8306
8314
|
return q === "form";
|
|
8307
8315
|
});
|
|
8308
|
-
let
|
|
8309
|
-
se && (
|
|
8316
|
+
let Qe;
|
|
8317
|
+
se && (Qe = {
|
|
8310
8318
|
action_id: p,
|
|
8311
8319
|
action_type: h,
|
|
8312
8320
|
name: a,
|
|
@@ -8319,7 +8327,7 @@ function Hc(e, t) {
|
|
|
8319
8327
|
id: o.active_id,
|
|
8320
8328
|
model: i,
|
|
8321
8329
|
context: o,
|
|
8322
|
-
configAction:
|
|
8330
|
+
configAction: Qe
|
|
8323
8331
|
});
|
|
8324
8332
|
break;
|
|
8325
8333
|
}
|
|
@@ -8375,7 +8383,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8375
8383
|
let ve, Ve;
|
|
8376
8384
|
if (z.length === 1) {
|
|
8377
8385
|
ve = "form", Ve = [];
|
|
8378
|
-
const ue = z[0], $e = L.findIndex((
|
|
8386
|
+
const ue = z[0], $e = L.findIndex((Qe) => Qe.id === ue);
|
|
8379
8387
|
let se;
|
|
8380
8388
|
if ($e === -1) {
|
|
8381
8389
|
try {
|
|
@@ -8414,7 +8422,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8414
8422
|
switch (z.type) {
|
|
8415
8423
|
case "form":
|
|
8416
8424
|
return /* @__PURE__ */ n(
|
|
8417
|
-
|
|
8425
|
+
Ec,
|
|
8418
8426
|
{
|
|
8419
8427
|
formRef: ee,
|
|
8420
8428
|
currentId: x,
|
|
@@ -8433,7 +8441,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8433
8441
|
);
|
|
8434
8442
|
case "tree":
|
|
8435
8443
|
return /* @__PURE__ */ n(
|
|
8436
|
-
|
|
8444
|
+
$c,
|
|
8437
8445
|
{
|
|
8438
8446
|
visible: v.type === z.type && v.view_id === z.view_id,
|
|
8439
8447
|
limit: y,
|
|
@@ -8454,7 +8462,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8454
8462
|
);
|
|
8455
8463
|
case "graph":
|
|
8456
8464
|
return /* @__PURE__ */ n(
|
|
8457
|
-
|
|
8465
|
+
kc,
|
|
8458
8466
|
{
|
|
8459
8467
|
visible: v.type === z.type && v.view_id === z.view_id,
|
|
8460
8468
|
viewData: z,
|
|
@@ -8468,7 +8476,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8468
8476
|
);
|
|
8469
8477
|
case "dashboard":
|
|
8470
8478
|
return /* @__PURE__ */ n(
|
|
8471
|
-
|
|
8479
|
+
jc,
|
|
8472
8480
|
{
|
|
8473
8481
|
dashboardData: z
|
|
8474
8482
|
},
|
|
@@ -8489,7 +8497,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8489
8497
|
}
|
|
8490
8498
|
}
|
|
8491
8499
|
return O ? /* @__PURE__ */ n(Ae, {}) : v ? /* @__PURE__ */ A(
|
|
8492
|
-
|
|
8500
|
+
wa,
|
|
8493
8501
|
{
|
|
8494
8502
|
title: a,
|
|
8495
8503
|
currentView: v,
|
|
@@ -8518,7 +8526,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8518
8526
|
children: [
|
|
8519
8527
|
Me(),
|
|
8520
8528
|
/* @__PURE__ */ n(
|
|
8521
|
-
|
|
8529
|
+
Rc,
|
|
8522
8530
|
{
|
|
8523
8531
|
visible: G,
|
|
8524
8532
|
onIdSubmitted: ye,
|
|
@@ -8532,8 +8540,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8532
8540
|
}
|
|
8533
8541
|
) : null;
|
|
8534
8542
|
}
|
|
8535
|
-
const Do = wt(
|
|
8536
|
-
async function
|
|
8543
|
+
const Do = wt(Gc);
|
|
8544
|
+
async function Uc({
|
|
8537
8545
|
actionId: e,
|
|
8538
8546
|
rootContext: t = {},
|
|
8539
8547
|
globalValues: r = {}
|
|
@@ -8585,8 +8593,8 @@ async function Kc({
|
|
|
8585
8593
|
treeExpandable: p
|
|
8586
8594
|
};
|
|
8587
8595
|
}
|
|
8588
|
-
const
|
|
8589
|
-
const { children: t = [], onPositionItemsChanged: r } = e, i =
|
|
8596
|
+
const qc = Xi(Zi), zc = (e) => {
|
|
8597
|
+
const { children: t = [], onPositionItemsChanged: r } = e, i = et.Children.map(
|
|
8590
8598
|
t,
|
|
8591
8599
|
(o) => {
|
|
8592
8600
|
const { parms: s, id: a } = o.props;
|
|
@@ -8594,7 +8602,7 @@ const Wc = Gi(Ui), jc = (e) => {
|
|
|
8594
8602
|
}
|
|
8595
8603
|
);
|
|
8596
8604
|
return /* @__PURE__ */ n(
|
|
8597
|
-
|
|
8605
|
+
qc,
|
|
8598
8606
|
{
|
|
8599
8607
|
className: "layout",
|
|
8600
8608
|
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
@@ -8614,8 +8622,8 @@ const Wc = Gi(Ui), jc = (e) => {
|
|
|
8614
8622
|
children: i
|
|
8615
8623
|
}
|
|
8616
8624
|
);
|
|
8617
|
-
}, { useToken:
|
|
8618
|
-
const { title: t, children: r, action: i, openAction: o } = e, { token: s } =
|
|
8625
|
+
}, { useToken: Jc } = Pe, { Text: Xc } = Yt, Zc = (e) => {
|
|
8626
|
+
const { title: t, children: r, action: i, openAction: o } = e, { token: s } = Jc();
|
|
8619
8627
|
return /* @__PURE__ */ A(
|
|
8620
8628
|
"div",
|
|
8621
8629
|
{
|
|
@@ -8651,11 +8659,11 @@ const Wc = Gi(Ui), jc = (e) => {
|
|
|
8651
8659
|
cursor: "grab",
|
|
8652
8660
|
overflow: "hidden"
|
|
8653
8661
|
},
|
|
8654
|
-
children: /* @__PURE__ */ n(
|
|
8662
|
+
children: /* @__PURE__ */ n(Xc, { ellipsis: !0, children: t })
|
|
8655
8663
|
}
|
|
8656
8664
|
),
|
|
8657
8665
|
i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(be, { justify: "end", align: "middle", children: /* @__PURE__ */ n(
|
|
8658
|
-
|
|
8666
|
+
xi,
|
|
8659
8667
|
{
|
|
8660
8668
|
style: { cursor: "pointer" },
|
|
8661
8669
|
onClick: () => {
|
|
@@ -8670,8 +8678,8 @@ const Wc = Gi(Ui), jc = (e) => {
|
|
|
8670
8678
|
]
|
|
8671
8679
|
}
|
|
8672
8680
|
);
|
|
8673
|
-
},
|
|
8674
|
-
function
|
|
8681
|
+
}, Qc = 80;
|
|
8682
|
+
function ed(e) {
|
|
8675
8683
|
const {
|
|
8676
8684
|
action: t,
|
|
8677
8685
|
model: r,
|
|
@@ -8680,7 +8688,7 @@ function zc(e) {
|
|
|
8680
8688
|
domain: s = [],
|
|
8681
8689
|
visible: a = !0,
|
|
8682
8690
|
parentContext: l = {}
|
|
8683
|
-
} = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), R = de(
|
|
8691
|
+
} = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), R = de(Qc), k = de([]), [x, S] = w(0), [I, C] = w([]), [D, P] = w(void 0), [L, j] = w(), [M, B] = w(), [K, V] = w(), [G, ne] = w(!1), J = de([]), le = (U) => {
|
|
8684
8692
|
ne(!0), F(U), O((U - 1) * R.current);
|
|
8685
8693
|
}, Y = async () => {
|
|
8686
8694
|
const U = J.current.length > 0 ? J.current : s, Ce = Wt(k.current, U), { colors: we } = Rt(h), { totalItems: Ye, results: ke, attrsEvaluated: Le } = await E.getHandler().searchForTree({
|
|
@@ -8783,7 +8791,7 @@ function zc(e) {
|
|
|
8783
8791
|
] });
|
|
8784
8792
|
return K ? /* @__PURE__ */ n(tt, { className: "mt-10", message: K, type: "error", banner: !0 }) : d ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : X();
|
|
8785
8793
|
}
|
|
8786
|
-
const
|
|
8794
|
+
const td = (e) => {
|
|
8787
8795
|
const { model: t } = e, [r, i] = w();
|
|
8788
8796
|
me(() => {
|
|
8789
8797
|
o();
|
|
@@ -8798,7 +8806,7 @@ const Jc = (e) => {
|
|
|
8798
8806
|
}
|
|
8799
8807
|
return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(Jt, { ...e, model: t, id: r, readOnly: !0 }) });
|
|
8800
8808
|
}, On = "line_ids";
|
|
8801
|
-
function
|
|
8809
|
+
function nd(e, t) {
|
|
8802
8810
|
const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = w([]), [d, u] = w(!1), [c, f] = w(), {
|
|
8803
8811
|
setIsLoading: m,
|
|
8804
8812
|
openAction: p,
|
|
@@ -8871,7 +8879,7 @@ function Xc(e, t) {
|
|
|
8871
8879
|
for (const I of x) {
|
|
8872
8880
|
const { values: C } = I;
|
|
8873
8881
|
if (C.action_id && C.action_id.length > 0) {
|
|
8874
|
-
const D = parseInt(C.action_id[0], 10), P = await
|
|
8882
|
+
const D = parseInt(C.action_id[0], 10), P = await Uc({
|
|
8875
8883
|
actionId: D,
|
|
8876
8884
|
rootContext: i
|
|
8877
8885
|
});
|
|
@@ -8926,7 +8934,7 @@ function Xc(e, t) {
|
|
|
8926
8934
|
async function k() {
|
|
8927
8935
|
p(s);
|
|
8928
8936
|
}
|
|
8929
|
-
return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(
|
|
8937
|
+
return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(zc, { onPositionItemsChanged: R, children: a.map((x, S) => {
|
|
8930
8938
|
const { actionData: I, values: C } = x, { position: D, id: P } = C, {
|
|
8931
8939
|
actionId: L,
|
|
8932
8940
|
actionType: j,
|
|
@@ -8960,10 +8968,10 @@ function Xc(e, t) {
|
|
|
8960
8968
|
}
|
|
8961
8969
|
);
|
|
8962
8970
|
else if ((J == null ? void 0 : J.type) === "form")
|
|
8963
|
-
_ = /* @__PURE__ */ n(
|
|
8971
|
+
_ = /* @__PURE__ */ n(td, { model: V, actionDomain: ne });
|
|
8964
8972
|
else if ((J == null ? void 0 : J.type) === "tree")
|
|
8965
8973
|
_ = /* @__PURE__ */ n(
|
|
8966
|
-
|
|
8974
|
+
ed,
|
|
8967
8975
|
{
|
|
8968
8976
|
model: V,
|
|
8969
8977
|
domain: ne,
|
|
@@ -9038,7 +9046,7 @@ function Xc(e, t) {
|
|
|
9038
9046
|
};
|
|
9039
9047
|
}
|
|
9040
9048
|
return /* @__PURE__ */ n(
|
|
9041
|
-
|
|
9049
|
+
Zc,
|
|
9042
9050
|
{
|
|
9043
9051
|
id: P,
|
|
9044
9052
|
title: B,
|
|
@@ -9051,10 +9059,10 @@ function Xc(e, t) {
|
|
|
9051
9059
|
);
|
|
9052
9060
|
}) });
|
|
9053
9061
|
}
|
|
9054
|
-
const
|
|
9062
|
+
const rd = wt(nd), od = (e) => {
|
|
9055
9063
|
const { ooui: t } = e;
|
|
9056
|
-
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(
|
|
9057
|
-
},
|
|
9064
|
+
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(id, { ooui: t }) });
|
|
9065
|
+
}, id = (e) => {
|
|
9058
9066
|
const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g, columns: y } = r, v = H(Ne), { getContext: T } = v || {};
|
|
9059
9067
|
xt(() => {
|
|
9060
9068
|
b();
|
|
@@ -9135,7 +9143,7 @@ const Zc = wt(Xc), Qc = (e) => {
|
|
|
9135
9143
|
/* @__PURE__ */ n(Oe, { onClick: R, disabled: s.length === 0, children: "Uncheck all" })
|
|
9136
9144
|
] })
|
|
9137
9145
|
] }) });
|
|
9138
|
-
},
|
|
9146
|
+
}, sd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(ad, { ...e }) }), ad = (e) => {
|
|
9139
9147
|
const { value: t, ooui: r } = e;
|
|
9140
9148
|
return /* @__PURE__ */ n(
|
|
9141
9149
|
"div",
|
|
@@ -9145,34 +9153,34 @@ const Zc = wt(Xc), Qc = (e) => {
|
|
|
9145
9153
|
overflow: "auto"
|
|
9146
9154
|
},
|
|
9147
9155
|
children: /* @__PURE__ */ n(
|
|
9148
|
-
|
|
9156
|
+
Ui,
|
|
9149
9157
|
{
|
|
9150
|
-
remarkPlugins: [
|
|
9158
|
+
remarkPlugins: [qi],
|
|
9151
9159
|
className: "markdown-typography",
|
|
9152
9160
|
children: t
|
|
9153
9161
|
}
|
|
9154
9162
|
)
|
|
9155
9163
|
}
|
|
9156
9164
|
);
|
|
9157
|
-
},
|
|
9165
|
+
}, ld = (e) => {
|
|
9158
9166
|
const { ooui: t } = e, { required: r } = t;
|
|
9159
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(
|
|
9160
|
-
},
|
|
9167
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(cd, { ...e }) });
|
|
9168
|
+
}, cd = (e) => {
|
|
9161
9169
|
const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((u) => {
|
|
9162
9170
|
const [c, f] = u;
|
|
9163
9171
|
return /* @__PURE__ */ n(sr, { value: c, children: f }, c);
|
|
9164
9172
|
});
|
|
9165
9173
|
return /* @__PURE__ */ n(sr.Group, { disabled: s, onChange: r, value: i, children: /* @__PURE__ */ n(je, { direction: a, children: d }) });
|
|
9166
|
-
},
|
|
9174
|
+
}, dd = (e) => {
|
|
9167
9175
|
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
9168
|
-
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(
|
|
9169
|
-
},
|
|
9176
|
+
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(ud, { id: r, readOnly: i, required: o }) });
|
|
9177
|
+
}, ud = (e) => {
|
|
9170
9178
|
const { required: t, readOnly: r, ...i } = e;
|
|
9171
|
-
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(
|
|
9172
|
-
},
|
|
9179
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(ni, { disabled: r, ...i }) });
|
|
9180
|
+
}, fd = (e) => {
|
|
9173
9181
|
const { ooui: t } = e, { required: r } = t;
|
|
9174
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(
|
|
9175
|
-
},
|
|
9182
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(md, { ...e }) });
|
|
9183
|
+
}, md = (e) => {
|
|
9176
9184
|
const { ooui: t, value: r } = e, { selectionValues: i, errorField: o } = t, s = H(Ne), a = Array.from(i.entries()), l = a.map((c) => c[0]).indexOf(r);
|
|
9177
9185
|
let d = "process", u = "";
|
|
9178
9186
|
return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ n(ar, { current: l, status: d, children: a.map((c, f) => /* @__PURE__ */ n(
|
|
@@ -9182,10 +9190,10 @@ const Zc = wt(Xc), Qc = (e) => {
|
|
|
9182
9190
|
description: f === l && d === "error" ? u : null
|
|
9183
9191
|
}
|
|
9184
9192
|
)) });
|
|
9185
|
-
},
|
|
9193
|
+
}, hd = (e) => {
|
|
9186
9194
|
const { ooui: t } = e, { lang: r, height: i } = t, o = H(Ne), { elementHasLostFocus: s } = o || {};
|
|
9187
9195
|
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(
|
|
9188
|
-
|
|
9196
|
+
zi,
|
|
9189
9197
|
{
|
|
9190
9198
|
defaultLanguage: r || "",
|
|
9191
9199
|
height: i || 300,
|
|
@@ -9194,40 +9202,38 @@ const Zc = wt(Xc), Qc = (e) => {
|
|
|
9194
9202
|
}
|
|
9195
9203
|
}
|
|
9196
9204
|
) });
|
|
9197
|
-
}, { Meta:
|
|
9198
|
-
|
|
9199
|
-
const fd = ({ email: e, size: t = 40, theme: r = "" }) => {
|
|
9200
|
-
const i = `https://www.gravatar.com/avatar/${Yi(
|
|
9205
|
+
}, { Meta: pd } = Nn, { Text: gd } = Yt, yd = ({ email: e, size: t = 40, theme: r = "" }) => {
|
|
9206
|
+
const i = `https://www.gravatar.com/avatar/${Ji(
|
|
9201
9207
|
e
|
|
9202
9208
|
)}?s=${t}&d=${r}`;
|
|
9203
9209
|
return /* @__PURE__ */ n(Dr, { src: i, size: t });
|
|
9204
9210
|
};
|
|
9205
|
-
function
|
|
9211
|
+
function vd({ text: e }) {
|
|
9206
9212
|
const t = e.split(`
|
|
9207
9213
|
`);
|
|
9208
|
-
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(
|
|
9214
|
+
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(Jo, { children: [
|
|
9209
9215
|
r,
|
|
9210
9216
|
i !== t.length - 1 && /* @__PURE__ */ n("br", {})
|
|
9211
9217
|
] }, i)) });
|
|
9212
9218
|
}
|
|
9213
|
-
const
|
|
9219
|
+
const wd = (e) => {
|
|
9214
9220
|
const { data: t, style: r } = e, { t: i } = H(he);
|
|
9215
9221
|
return /* @__PURE__ */ A(Nn, { style: { ...r, textAlign: "start" }, children: [
|
|
9216
9222
|
/* @__PURE__ */ n(
|
|
9217
|
-
|
|
9223
|
+
pd,
|
|
9218
9224
|
{
|
|
9219
|
-
avatar: /* @__PURE__ */ n(
|
|
9225
|
+
avatar: /* @__PURE__ */ n(yd, { email: t.email, theme: "mp" }),
|
|
9220
9226
|
title: t.author,
|
|
9221
9227
|
description: /* @__PURE__ */ A(je, { direction: "horizontal", children: [
|
|
9222
|
-
/* @__PURE__ */ n("span", { title: t.date, children:
|
|
9228
|
+
/* @__PURE__ */ n("span", { title: t.date, children: nt(t.date).fromNow() }),
|
|
9223
9229
|
t.isAuthor && /* @__PURE__ */ n(_r, { color: "blue", children: i("author") })
|
|
9224
9230
|
] }),
|
|
9225
9231
|
style: { marginBottom: "5px" }
|
|
9226
9232
|
}
|
|
9227
9233
|
),
|
|
9228
|
-
/* @__PURE__ */ n(
|
|
9234
|
+
/* @__PURE__ */ n(gd, { children: /* @__PURE__ */ n(vd, { text: t.text }) })
|
|
9229
9235
|
] }, t.id);
|
|
9230
|
-
},
|
|
9236
|
+
}, bd = (e) => {
|
|
9231
9237
|
const { value: t } = e, r = (t || []).map((i) => {
|
|
9232
9238
|
if (i.type === "action")
|
|
9233
9239
|
return {
|
|
@@ -9238,22 +9244,22 @@ const hd = (e) => {
|
|
|
9238
9244
|
color: "gray",
|
|
9239
9245
|
position: i.event.isSender ? "left" : "right",
|
|
9240
9246
|
label: i.event.date,
|
|
9241
|
-
children: /* @__PURE__ */ n(
|
|
9247
|
+
children: /* @__PURE__ */ n(wd, { data: i.event })
|
|
9242
9248
|
};
|
|
9243
9249
|
});
|
|
9244
9250
|
return /* @__PURE__ */ n(Rn, { mode: "alternate", items: r });
|
|
9245
|
-
},
|
|
9246
|
-
function
|
|
9251
|
+
}, Cd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(bd, {}) }), { Content: xd } = ri, { Title: Sd } = Yt;
|
|
9252
|
+
function Td() {
|
|
9247
9253
|
const { t: e } = H(he);
|
|
9248
|
-
return /* @__PURE__ */ n(
|
|
9254
|
+
return /* @__PURE__ */ n(xd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Sd, { level: 5, children: e("welcome") }) });
|
|
9249
9255
|
}
|
|
9250
|
-
function
|
|
9256
|
+
function Id(e, t) {
|
|
9251
9257
|
const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = w("welcome"), [d, u] = w([
|
|
9252
9258
|
{
|
|
9253
9259
|
title: Fe("welcome", s),
|
|
9254
9260
|
key: "welcome",
|
|
9255
9261
|
closable: !0,
|
|
9256
|
-
content: /* @__PURE__ */ n(
|
|
9262
|
+
content: /* @__PURE__ */ n(Td, {})
|
|
9257
9263
|
}
|
|
9258
9264
|
]), c = de(/* @__PURE__ */ new Map()), f = de();
|
|
9259
9265
|
bt(t, () => ({
|
|
@@ -9551,8 +9557,8 @@ function bd(e, t) {
|
|
|
9551
9557
|
});
|
|
9552
9558
|
}
|
|
9553
9559
|
}
|
|
9554
|
-
return /* @__PURE__ */ n(
|
|
9555
|
-
|
|
9560
|
+
return /* @__PURE__ */ n(as, { lang: s, children: /* @__PURE__ */ n(
|
|
9561
|
+
ba,
|
|
9556
9562
|
{
|
|
9557
9563
|
openShortcut: v,
|
|
9558
9564
|
openAction: F,
|
|
@@ -9570,7 +9576,7 @@ function bd(e, t) {
|
|
|
9570
9576
|
l(b);
|
|
9571
9577
|
},
|
|
9572
9578
|
children: /* @__PURE__ */ n(
|
|
9573
|
-
|
|
9579
|
+
Sa,
|
|
9574
9580
|
{
|
|
9575
9581
|
ref: f,
|
|
9576
9582
|
globalValues: i,
|
|
@@ -9580,9 +9586,9 @@ function bd(e, t) {
|
|
|
9580
9586
|
}
|
|
9581
9587
|
) });
|
|
9582
9588
|
}
|
|
9583
|
-
const
|
|
9584
|
-
function
|
|
9585
|
-
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } =
|
|
9589
|
+
const gu = wt(Id), { useToken: Fd } = Pe;
|
|
9590
|
+
function Od(e) {
|
|
9591
|
+
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Fd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
9586
9592
|
return /* @__PURE__ */ A(
|
|
9587
9593
|
"div",
|
|
9588
9594
|
{
|
|
@@ -9652,12 +9658,12 @@ function xd(e) {
|
|
|
9652
9658
|
}
|
|
9653
9659
|
);
|
|
9654
9660
|
}
|
|
9655
|
-
function
|
|
9661
|
+
function yu() {
|
|
9656
9662
|
const e = H(
|
|
9657
9663
|
dt
|
|
9658
9664
|
), { activeKey: t, tabs: r, onRemoveTab: i, onChangeTab: o } = e || {};
|
|
9659
9665
|
return /* @__PURE__ */ n(Z, { children: r.map((s) => /* @__PURE__ */ n(
|
|
9660
|
-
|
|
9666
|
+
Od,
|
|
9661
9667
|
{
|
|
9662
9668
|
tabKey: s.key,
|
|
9663
9669
|
label: s.title,
|
|
@@ -9668,7 +9674,7 @@ function lu() {
|
|
|
9668
9674
|
s.key
|
|
9669
9675
|
)) });
|
|
9670
9676
|
}
|
|
9671
|
-
function
|
|
9677
|
+
function Rd(e) {
|
|
9672
9678
|
const { tab: t } = e, r = H(
|
|
9673
9679
|
dt
|
|
9674
9680
|
), { activeKey: i } = r || {}, o = {
|
|
@@ -9676,20 +9682,20 @@ function Sd(e) {
|
|
|
9676
9682
|
};
|
|
9677
9683
|
return /* @__PURE__ */ n("div", { style: t.key !== i ? o : void 0, children: t.content });
|
|
9678
9684
|
}
|
|
9679
|
-
const
|
|
9680
|
-
function
|
|
9685
|
+
const _d = et.memo(Rd, () => !0);
|
|
9686
|
+
function vu() {
|
|
9681
9687
|
const e = H(
|
|
9682
9688
|
dt
|
|
9683
|
-
), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
9689
|
+
), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(_d, { tab: i }, i.key))) || null;
|
|
9684
9690
|
return /* @__PURE__ */ n(Z, { children: r });
|
|
9685
9691
|
}
|
|
9686
|
-
const { useToken:
|
|
9692
|
+
const { useToken: Vd } = Pe, wu = (e) => {
|
|
9687
9693
|
const {
|
|
9688
9694
|
onRetrieveShortcuts: t,
|
|
9689
9695
|
onCheckIsFavourite: r,
|
|
9690
9696
|
onAddFavourite: i,
|
|
9691
9697
|
onRemoveFavourite: o
|
|
9692
|
-
} = e, [s, a] = w(!1), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!0), [p, h] = w(), { t: g } = H(he) || {}, { token: y } =
|
|
9698
|
+
} = e, [s, a] = w(!1), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!0), [p, h] = w(), { t: g } = H(he) || {}, { token: y } = Vd(), v = H(
|
|
9693
9699
|
dt
|
|
9694
9700
|
), {
|
|
9695
9701
|
openShortcut: T,
|
|
@@ -9828,60 +9834,60 @@ const { useToken: Id } = Pe, du = (e) => {
|
|
|
9828
9834
|
] });
|
|
9829
9835
|
};
|
|
9830
9836
|
export {
|
|
9831
|
-
|
|
9837
|
+
Tc as ActionBar,
|
|
9832
9838
|
Do as ActionView,
|
|
9833
|
-
|
|
9834
|
-
|
|
9839
|
+
gc as Binary,
|
|
9840
|
+
Fs as Boolean,
|
|
9835
9841
|
Qr as Button,
|
|
9836
|
-
|
|
9842
|
+
us as ButtonGroup,
|
|
9837
9843
|
no as Char,
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9844
|
+
hd as CodeEditor,
|
|
9845
|
+
Cd as CommentsTimelineField,
|
|
9846
|
+
Nc as ConfigContext,
|
|
9841
9847
|
E as ConnectionProvider,
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9848
|
+
Sa as ContentRootProvider,
|
|
9849
|
+
vu as CurrentTabContent,
|
|
9850
|
+
rd as Dashboard,
|
|
9851
|
+
zc as DashboardGrid,
|
|
9852
|
+
Zc as DashboardGridItem,
|
|
9853
|
+
cc as Date,
|
|
9854
|
+
dc as DateTime,
|
|
9855
|
+
Oc as Email,
|
|
9856
|
+
lc as ExportModal,
|
|
9857
|
+
wu as FavouriteButton,
|
|
9852
9858
|
ho as Float,
|
|
9853
|
-
|
|
9859
|
+
Gl as FloatTime,
|
|
9854
9860
|
Jt as Form,
|
|
9855
9861
|
Xt as FormModal,
|
|
9856
|
-
|
|
9862
|
+
wl as GraphIndicator,
|
|
9857
9863
|
Io as Group,
|
|
9858
|
-
|
|
9864
|
+
Vs as Image,
|
|
9859
9865
|
rn as Integer,
|
|
9860
9866
|
fn as Label,
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9867
|
+
gl as Many2one,
|
|
9868
|
+
sd as Markdown,
|
|
9869
|
+
od as MultiCheckbox,
|
|
9870
|
+
zl as Notebook,
|
|
9871
|
+
jl as One2many,
|
|
9872
|
+
Ya as ProgressBar,
|
|
9873
|
+
ld as Radio,
|
|
9874
|
+
mc as Reference,
|
|
9875
|
+
gu as RootView,
|
|
9870
9876
|
po as SearchFilter,
|
|
9871
9877
|
bo as SearchModal,
|
|
9872
9878
|
wo as SearchTree,
|
|
9873
9879
|
ro as Selection,
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9880
|
+
Ql as Separator,
|
|
9881
|
+
fd as Steps,
|
|
9882
|
+
dd as Switch,
|
|
9883
|
+
Od as Tab,
|
|
9884
|
+
yu as TabSelector,
|
|
9885
|
+
zs as Tag,
|
|
9886
|
+
Js as Tags,
|
|
9887
|
+
Xl as Text,
|
|
9888
|
+
uc as Time,
|
|
9883
9889
|
pn as Tree,
|
|
9884
|
-
|
|
9890
|
+
Fc as Url,
|
|
9885
9891
|
ct as iconMapper,
|
|
9886
9892
|
qt as showConfirmDialog
|
|
9887
9893
|
};
|