@gisce/react-ooui 2.0.0-alpha.48 → 2.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +466 -465
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +2 -2
- package/src/widgets/views/Graph/GraphChart.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -40,17 +40,18 @@ import zi from "@monaco-editor/react";
|
|
|
40
40
|
import Ji from "md5";
|
|
41
41
|
import { WidthProvider as Xi, Responsive as Zi } from "react-grid-layout";
|
|
42
42
|
import "react-grid-layout/css/styles.css";
|
|
43
|
+
import Qi from "antd/es/alert/ErrorBoundary";
|
|
43
44
|
import { v4 as Zr } from "uuid";
|
|
44
|
-
const { Text:
|
|
45
|
+
const { Text: es, Title: ts } = Yt, { useToken: ns } = Pe, rs = {
|
|
45
46
|
left: "justify-start",
|
|
46
47
|
center: "justify-center",
|
|
47
48
|
right: "justify-end"
|
|
48
49
|
}, fn = (e) => {
|
|
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 } =
|
|
50
|
+
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 } = ns(), h = l === void 0 ? es : ts;
|
|
50
51
|
return /* @__PURE__ */ A(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
54
|
+
className: `flex flex-row items-center pb-1 pt-1 ${rs[m]}`,
|
|
54
55
|
children: [
|
|
55
56
|
s && /* @__PURE__ */ n(ht, { title: s, children: /* @__PURE__ */ n(
|
|
56
57
|
$r,
|
|
@@ -65,7 +66,7 @@ const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
},
|
|
69
|
+
}, os = {
|
|
69
70
|
true: "Sí",
|
|
70
71
|
false: "No",
|
|
71
72
|
simple_search: "Búsqueda simple",
|
|
@@ -156,7 +157,7 @@ const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
|
156
157
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
|
|
157
158
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
158
159
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
159
|
-
},
|
|
160
|
+
}, is = {
|
|
160
161
|
true: "Yes",
|
|
161
162
|
false: "No",
|
|
162
163
|
simple_search: "Simple search",
|
|
@@ -247,7 +248,7 @@ const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
|
247
248
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
|
|
248
249
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
249
250
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
250
|
-
},
|
|
251
|
+
}, ss = {
|
|
251
252
|
true: "Sí",
|
|
252
253
|
false: "No",
|
|
253
254
|
simple_search: "Búsqueda simple",
|
|
@@ -338,13 +339,13 @@ const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
|
338
339
|
recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en ésta página.",
|
|
339
340
|
selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
|
|
340
341
|
allRecordsSelected: "Hay {totalRecords} registros seleccionados."
|
|
341
|
-
},
|
|
342
|
-
ca_ES:
|
|
343
|
-
en_US:
|
|
344
|
-
es_ES:
|
|
342
|
+
}, as = {
|
|
343
|
+
ca_ES: os,
|
|
344
|
+
en_US: is,
|
|
345
|
+
es_ES: ss
|
|
345
346
|
}, he = et.createContext(
|
|
346
347
|
null
|
|
347
|
-
),
|
|
348
|
+
), ls = (e) => {
|
|
348
349
|
const { children: t, lang: r } = e;
|
|
349
350
|
function i(o) {
|
|
350
351
|
return Fe(o, r);
|
|
@@ -361,7 +362,7 @@ const { Text: Qi, Title: es } = Yt, { useToken: ts } = Pe, ns = {
|
|
|
361
362
|
);
|
|
362
363
|
}, Fe = (e, t) => {
|
|
363
364
|
var i;
|
|
364
|
-
return ((i =
|
|
365
|
+
return ((i = as[t]) == null ? void 0 : i[e]) || e;
|
|
365
366
|
};
|
|
366
367
|
function ge({
|
|
367
368
|
ooui: e,
|
|
@@ -414,12 +415,12 @@ function ge({
|
|
|
414
415
|
h()
|
|
415
416
|
] }))();
|
|
416
417
|
}
|
|
417
|
-
const { confirm:
|
|
418
|
+
const { confirm: cs } = Je, qt = ({
|
|
418
419
|
onOk: e,
|
|
419
420
|
confirmMessage: t,
|
|
420
421
|
lang: r
|
|
421
422
|
}) => {
|
|
422
|
-
|
|
423
|
+
cs({
|
|
423
424
|
title: Fe("confirmation", r),
|
|
424
425
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
425
426
|
centered: !0,
|
|
@@ -428,7 +429,7 @@ const { confirm: ls } = Je, qt = ({
|
|
|
428
429
|
cancelText: Fe("cancel", r),
|
|
429
430
|
onOk: e
|
|
430
431
|
});
|
|
431
|
-
}, Ne = et.createContext(null),
|
|
432
|
+
}, Ne = et.createContext(null), ds = (e) => {
|
|
432
433
|
const {
|
|
433
434
|
children: t,
|
|
434
435
|
activeId: r,
|
|
@@ -561,7 +562,7 @@ const { confirm: ls } = Je, qt = ({
|
|
|
561
562
|
STOCK_UNINDENT: "AlignLeft",
|
|
562
563
|
STOCK_PREFERENCES: "Setting"
|
|
563
564
|
}, 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));
|
|
564
|
-
function
|
|
565
|
+
function us(e) {
|
|
565
566
|
return `${e.split("-").map(
|
|
566
567
|
(t) => t.replace(
|
|
567
568
|
/\w\S*/g,
|
|
@@ -571,7 +572,7 @@ function ds(e) {
|
|
|
571
572
|
}
|
|
572
573
|
function fr(e, t) {
|
|
573
574
|
let r = e.charAt(0).toUpperCase() + e.slice(1);
|
|
574
|
-
r.indexOf("-") !== -1 && (r =
|
|
575
|
+
r.indexOf("-") !== -1 && (r = us(r));
|
|
575
576
|
const i = `${r}Outlined`;
|
|
576
577
|
if (cr[i])
|
|
577
578
|
return () => et.createElement(cr[i], {
|
|
@@ -640,7 +641,7 @@ const Qr = (e) => {
|
|
|
640
641
|
children: i
|
|
641
642
|
}
|
|
642
643
|
) });
|
|
643
|
-
},
|
|
644
|
+
}, fs = (e) => {
|
|
644
645
|
const { ooui: t } = e, { defaultButton: r, secondaryButtons: i } = t, {
|
|
645
646
|
id: o,
|
|
646
647
|
caption: s,
|
|
@@ -688,7 +689,7 @@ const Qr = (e) => {
|
|
|
688
689
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
689
690
|
type: c ? "primary" : void 0,
|
|
690
691
|
overlay: /* @__PURE__ */ n(
|
|
691
|
-
|
|
692
|
+
ms,
|
|
692
693
|
{
|
|
693
694
|
ooui: i,
|
|
694
695
|
executeButtonAction: g,
|
|
@@ -703,7 +704,7 @@ const Qr = (e) => {
|
|
|
703
704
|
) });
|
|
704
705
|
if (r)
|
|
705
706
|
return /* @__PURE__ */ n(Qr, { ooui: r });
|
|
706
|
-
},
|
|
707
|
+
}, ms = (e) => {
|
|
707
708
|
const { ooui: t, executeButtonAction: r, lang: i } = e;
|
|
708
709
|
if (!t)
|
|
709
710
|
return null;
|
|
@@ -755,7 +756,7 @@ const Qr = (e) => {
|
|
|
755
756
|
);
|
|
756
757
|
});
|
|
757
758
|
return /* @__PURE__ */ n(He, { children: o });
|
|
758
|
-
},
|
|
759
|
+
}, hs = 0.7;
|
|
759
760
|
function mr() {
|
|
760
761
|
const { innerWidth: e, innerHeight: t } = window;
|
|
761
762
|
return {
|
|
@@ -773,7 +774,7 @@ function mn() {
|
|
|
773
774
|
}
|
|
774
775
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
775
776
|
}, []), {
|
|
776
|
-
modalWidth: e.width *
|
|
777
|
+
modalWidth: e.width * hs,
|
|
777
778
|
modalHeight: e.height,
|
|
778
779
|
width: e.width,
|
|
779
780
|
height: e.height
|
|
@@ -809,9 +810,9 @@ const eo = (e) => {
|
|
|
809
810
|
message: t,
|
|
810
811
|
title: i
|
|
811
812
|
};
|
|
812
|
-
}, { error:
|
|
813
|
+
}, { error: ps, warning: gs } = Je, ze = (e) => {
|
|
813
814
|
const { message: t, type: r, title: i } = eo(e);
|
|
814
|
-
(r === "error" ?
|
|
815
|
+
(r === "error" ? ps : gs)({
|
|
815
816
|
title: i,
|
|
816
817
|
icon: r === "error" ? /* @__PURE__ */ n(pt, {}) : /* @__PURE__ */ n(Hr, {}),
|
|
817
818
|
centered: !0,
|
|
@@ -941,14 +942,14 @@ function Ze(e) {
|
|
|
941
942
|
const { tooltip: t, ...r } = e;
|
|
942
943
|
return /* @__PURE__ */ n(ht, { title: t, children: /* @__PURE__ */ n(Oe, { ...r }) });
|
|
943
944
|
}
|
|
944
|
-
const { info:
|
|
945
|
-
|
|
945
|
+
const { info: ys } = Je, ft = (e) => {
|
|
946
|
+
ys({
|
|
946
947
|
title: "",
|
|
947
948
|
centered: !0,
|
|
948
949
|
content: e
|
|
949
950
|
});
|
|
950
|
-
}, { useToken:
|
|
951
|
-
const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } =
|
|
951
|
+
}, { useToken: vs } = Pe, no = (e) => {
|
|
952
|
+
const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = vs(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
|
|
952
953
|
let m = /* @__PURE__ */ n(
|
|
953
954
|
it,
|
|
954
955
|
{
|
|
@@ -966,8 +967,8 @@ const { info: gs } = Je, ft = (e) => {
|
|
|
966
967
|
id: i,
|
|
967
968
|
onBlur: f
|
|
968
969
|
}
|
|
969
|
-
)), l && !o && !r && (m = /* @__PURE__ */ n(
|
|
970
|
-
},
|
|
970
|
+
)), l && !o && !r && (m = /* @__PURE__ */ n(ws, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...e, children: m });
|
|
971
|
+
}, ws = ({
|
|
971
972
|
value: e,
|
|
972
973
|
field: t,
|
|
973
974
|
requiredStyle: r,
|
|
@@ -1046,16 +1047,16 @@ const { info: gs } = Je, ft = (e) => {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
) })
|
|
1048
1049
|
] }) });
|
|
1049
|
-
}, { defaultAlgorithm:
|
|
1050
|
+
}, { defaultAlgorithm: bs, defaultSeed: Cs } = Pe, xs = bs(Cs), { Option: Ss } = Ct, ro = (e) => {
|
|
1050
1051
|
const { ooui: t } = e, { required: r } = t;
|
|
1051
1052
|
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(oo, { ...e }) });
|
|
1052
1053
|
}, oo = (e) => {
|
|
1053
1054
|
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) => {
|
|
1054
1055
|
const [f, m] = c;
|
|
1055
|
-
return /* @__PURE__ */ n(
|
|
1056
|
+
return /* @__PURE__ */ n(Ss, { value: f, children: m }, f);
|
|
1056
1057
|
});
|
|
1057
1058
|
return /* @__PURE__ */ n(
|
|
1058
|
-
a && !s ?
|
|
1059
|
+
a && !s ? Ts : Ct,
|
|
1059
1060
|
{
|
|
1060
1061
|
disabled: s,
|
|
1061
1062
|
onChange: r,
|
|
@@ -1066,17 +1067,17 @@ const { info: gs } = Je, ft = (e) => {
|
|
|
1066
1067
|
children: d
|
|
1067
1068
|
}
|
|
1068
1069
|
);
|
|
1069
|
-
},
|
|
1070
|
+
}, Ts = Mt(Ct)`
|
|
1070
1071
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1071
|
-
background-color: ${
|
|
1072
|
+
background-color: ${xs.colorPrimaryBg};
|
|
1072
1073
|
}
|
|
1073
|
-
`, { defaultAlgorithm:
|
|
1074
|
+
`, { defaultAlgorithm: Is, defaultSeed: Fs } = Pe, hr = Is(Fs), Os = (e) => {
|
|
1074
1075
|
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
1075
|
-
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(
|
|
1076
|
-
},
|
|
1076
|
+
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Rs, { id: r, readOnly: i, required: o }) });
|
|
1077
|
+
}, Rs = (e) => {
|
|
1077
1078
|
const { required: t, readOnly: r, ...i } = e;
|
|
1078
|
-
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ?
|
|
1079
|
-
},
|
|
1079
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? _s : Ht, { disabled: r, ...i }) });
|
|
1080
|
+
}, _s = Mt(Ht)`
|
|
1080
1081
|
.ant-checkbox-inner {
|
|
1081
1082
|
background-color: ${hr.colorPrimaryBg};
|
|
1082
1083
|
}
|
|
@@ -1085,7 +1086,7 @@ const { info: gs } = Je, ft = (e) => {
|
|
|
1085
1086
|
background-color: ${hr.colorPrimary};
|
|
1086
1087
|
}
|
|
1087
1088
|
`;
|
|
1088
|
-
function
|
|
1089
|
+
function Vs(e) {
|
|
1089
1090
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1090
1091
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1091
1092
|
}
|
|
@@ -1109,10 +1110,10 @@ function hn(e, t) {
|
|
|
1109
1110
|
const o = new Uint8Array(i), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
|
|
1110
1111
|
window.open(a);
|
|
1111
1112
|
}
|
|
1112
|
-
const
|
|
1113
|
+
const As = (e) => {
|
|
1113
1114
|
const { ooui: t } = e, { required: r, id: i } = t, o = ct(i);
|
|
1114
|
-
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
1115
|
-
},
|
|
1115
|
+
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Ds, { ooui: t }) });
|
|
1116
|
+
}, Ds = (e) => {
|
|
1116
1117
|
const { ooui: t, value: r, onChange: i } = e, { readOnly: o } = t, s = de(null), { t: a } = H(he), l = (f) => {
|
|
1117
1118
|
i == null || i(f);
|
|
1118
1119
|
};
|
|
@@ -1181,10 +1182,10 @@ const Vs = (e) => {
|
|
|
1181
1182
|
)
|
|
1182
1183
|
] }) })
|
|
1183
1184
|
] });
|
|
1184
|
-
}, Ds = (e) => {
|
|
1185
|
-
const { ooui: t } = e, { required: r } = t;
|
|
1186
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(ks, {}) });
|
|
1187
1185
|
}, ks = (e) => {
|
|
1186
|
+
const { ooui: t } = e, { required: r } = t;
|
|
1187
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Es, {}) });
|
|
1188
|
+
}, Es = (e) => {
|
|
1188
1189
|
const { value: t, onChange: r } = e;
|
|
1189
1190
|
if (!t)
|
|
1190
1191
|
return null;
|
|
@@ -1205,7 +1206,7 @@ const Vs = (e) => {
|
|
|
1205
1206
|
}, Rt = (e) => {
|
|
1206
1207
|
const t = e.arch, r = e.fields, i = new Er(r);
|
|
1207
1208
|
return i.parse(t), i;
|
|
1208
|
-
},
|
|
1209
|
+
}, Ms = (e, t, r) => e.columns.map((o) => {
|
|
1209
1210
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1210
1211
|
let d;
|
|
1211
1212
|
return l && (d = (u) => l(u, a, o, r)), {
|
|
@@ -1262,7 +1263,7 @@ function _t({
|
|
|
1262
1263
|
};
|
|
1263
1264
|
return e.sort(l);
|
|
1264
1265
|
}
|
|
1265
|
-
function
|
|
1266
|
+
function Ns(e) {
|
|
1266
1267
|
for (const t in e)
|
|
1267
1268
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1268
1269
|
return !0;
|
|
@@ -1320,10 +1321,10 @@ const Xn = async (e) => {
|
|
|
1320
1321
|
}).concat(l),
|
|
1321
1322
|
f
|
|
1322
1323
|
];
|
|
1323
|
-
},
|
|
1324
|
+
}, Ps = (e) => {
|
|
1324
1325
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
1325
1326
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1326
|
-
},
|
|
1327
|
+
}, Ls = (e, t) => {
|
|
1327
1328
|
const r = {};
|
|
1328
1329
|
return Object.keys(e).forEach((i) => {
|
|
1329
1330
|
var o;
|
|
@@ -1331,7 +1332,7 @@ const Xn = async (e) => {
|
|
|
1331
1332
|
(s) => s.operation !== "pendingRemove"
|
|
1332
1333
|
) : r[i] = e[i];
|
|
1333
1334
|
}), r;
|
|
1334
|
-
},
|
|
1335
|
+
}, Bs = (e) => {
|
|
1335
1336
|
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 || {};
|
|
1336
1337
|
xt(() => {
|
|
1337
1338
|
h();
|
|
@@ -1351,8 +1352,8 @@ const Xn = async (e) => {
|
|
|
1351
1352
|
a(!1);
|
|
1352
1353
|
}
|
|
1353
1354
|
};
|
|
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(
|
|
1355
|
-
},
|
|
1355
|
+
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($s, { ooui: t, views: u }) });
|
|
1356
|
+
}, $s = (e) => {
|
|
1356
1357
|
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 || {};
|
|
1357
1358
|
xt(() => {
|
|
1358
1359
|
k();
|
|
@@ -1441,11 +1442,11 @@ const Xn = async (e) => {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
)
|
|
1443
1444
|
] });
|
|
1444
|
-
}, { useToken:
|
|
1445
|
+
}, { useToken: Hs } = Pe, Ks = (e) => {
|
|
1445
1446
|
const { ooui: t } = e;
|
|
1446
|
-
return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(
|
|
1447
|
-
},
|
|
1448
|
-
const { token: t } =
|
|
1447
|
+
return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(Ws, { ooui: t }) });
|
|
1448
|
+
}, Ws = (e) => {
|
|
1449
|
+
const { token: t } = Hs(), { ooui: r, value: i } = e, o = /* @__PURE__ */ A(Z, { children: [
|
|
1449
1450
|
/* @__PURE__ */ A("span", { children: [
|
|
1450
1451
|
r.label,
|
|
1451
1452
|
" "
|
|
@@ -1470,7 +1471,7 @@ const Xn = async (e) => {
|
|
|
1470
1471
|
}
|
|
1471
1472
|
);
|
|
1472
1473
|
return r.card ? /* @__PURE__ */ n(Nn, { children: l }) : l;
|
|
1473
|
-
},
|
|
1474
|
+
}, js = (e, t) => {
|
|
1474
1475
|
if (!t)
|
|
1475
1476
|
return e;
|
|
1476
1477
|
const r = {};
|
|
@@ -1484,7 +1485,7 @@ const Xn = async (e) => {
|
|
|
1484
1485
|
} else
|
|
1485
1486
|
r[i] = e[i];
|
|
1486
1487
|
}), r;
|
|
1487
|
-
}, Ft = (e, t) =>
|
|
1488
|
+
}, Ft = (e, t) => js(e, t), Tn = ({
|
|
1488
1489
|
source: e,
|
|
1489
1490
|
target: t,
|
|
1490
1491
|
fields: r
|
|
@@ -1517,7 +1518,7 @@ const Xn = async (e) => {
|
|
|
1517
1518
|
else
|
|
1518
1519
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
1519
1520
|
}), i;
|
|
1520
|
-
},
|
|
1521
|
+
}, Ys = ({
|
|
1521
1522
|
changedFields: e,
|
|
1522
1523
|
formOoui: t,
|
|
1523
1524
|
types: r
|
|
@@ -1525,7 +1526,7 @@ const Xn = async (e) => {
|
|
|
1525
1526
|
var a;
|
|
1526
1527
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1527
1528
|
return r.includes(s);
|
|
1528
|
-
}).some((o) => o === !0),
|
|
1529
|
+
}).some((o) => o === !0), Gs = ({
|
|
1529
1530
|
fieldsDomain: e,
|
|
1530
1531
|
fields: t
|
|
1531
1532
|
}) => {
|
|
@@ -1533,12 +1534,12 @@ const Xn = async (e) => {
|
|
|
1533
1534
|
return Object.keys(t).forEach((i) => {
|
|
1534
1535
|
r[i] = t[i], e[i] && (r[i].domain = e[i]);
|
|
1535
1536
|
}), r;
|
|
1536
|
-
},
|
|
1537
|
+
}, Us = (e) => {
|
|
1537
1538
|
const t = {};
|
|
1538
1539
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
|
|
1539
1540
|
(r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
|
|
1540
1541
|
}), t);
|
|
1541
|
-
},
|
|
1542
|
+
}, qs = ({
|
|
1542
1543
|
onChangeFieldActionArgs: e,
|
|
1543
1544
|
values: t,
|
|
1544
1545
|
parentValues: r = {}
|
|
@@ -1599,10 +1600,10 @@ const Nt = ({
|
|
|
1599
1600
|
r += ("00" + o.toString(16)).slice(-2);
|
|
1600
1601
|
}
|
|
1601
1602
|
return r;
|
|
1602
|
-
},
|
|
1603
|
+
}, zs = (e, t) => e.replace(
|
|
1603
1604
|
/\{([^}]+)\}/g,
|
|
1604
1605
|
(r, i) => t[i] !== void 0 ? t[i] : r
|
|
1605
|
-
),
|
|
1606
|
+
), Js = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(co, { ...e }) }), co = (e) => {
|
|
1606
1607
|
const { ooui: t, value: r } = e;
|
|
1607
1608
|
let i = r, o = r;
|
|
1608
1609
|
if (t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (o = r[0], i = r[1]), !r)
|
|
@@ -1617,10 +1618,10 @@ const Nt = ({
|
|
|
1617
1618
|
borderStyle: "solid",
|
|
1618
1619
|
borderWidth: "1px"
|
|
1619
1620
|
}, t = `${t}20`), /* @__PURE__ */ n(_r, { ...e, style: r, color: t, children: e.children });
|
|
1620
|
-
}, Js = (e) => {
|
|
1621
|
-
const { ooui: t } = e;
|
|
1622
|
-
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Xs, { ooui: t }) });
|
|
1623
1621
|
}, Xs = (e) => {
|
|
1622
|
+
const { ooui: t } = e;
|
|
1623
|
+
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Zs, { ooui: t }) });
|
|
1624
|
+
}, Zs = (e) => {
|
|
1624
1625
|
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 || {};
|
|
1625
1626
|
xt(() => {
|
|
1626
1627
|
F();
|
|
@@ -1700,14 +1701,14 @@ const Nt = ({
|
|
|
1700
1701
|
loading: c
|
|
1701
1702
|
}
|
|
1702
1703
|
) }) });
|
|
1703
|
-
},
|
|
1704
|
+
}, Qs = (e) => {
|
|
1704
1705
|
switch (e) {
|
|
1705
1706
|
case "form":
|
|
1706
1707
|
return Jt;
|
|
1707
1708
|
case "tree":
|
|
1708
1709
|
return pn;
|
|
1709
1710
|
case "notebook":
|
|
1710
|
-
return
|
|
1711
|
+
return Jl;
|
|
1711
1712
|
case "group":
|
|
1712
1713
|
return Io;
|
|
1713
1714
|
case "label":
|
|
@@ -1715,83 +1716,83 @@ const Nt = ({
|
|
|
1715
1716
|
case "char":
|
|
1716
1717
|
return no;
|
|
1717
1718
|
case "text":
|
|
1718
|
-
return
|
|
1719
|
+
return Zl;
|
|
1719
1720
|
case "button":
|
|
1720
1721
|
return Qr;
|
|
1721
1722
|
case "buttonGroup":
|
|
1722
|
-
return
|
|
1723
|
+
return fs;
|
|
1723
1724
|
case "selection":
|
|
1724
1725
|
return ro;
|
|
1725
1726
|
case "many2one":
|
|
1726
|
-
return
|
|
1727
|
+
return yl;
|
|
1727
1728
|
case "boolean":
|
|
1728
|
-
return
|
|
1729
|
+
return Os;
|
|
1729
1730
|
case "integer":
|
|
1730
1731
|
return rn;
|
|
1731
1732
|
case "float":
|
|
1732
1733
|
return ho;
|
|
1733
1734
|
case "progressbar":
|
|
1734
|
-
return
|
|
1735
|
+
return Ga;
|
|
1735
1736
|
case "date":
|
|
1736
|
-
return cc;
|
|
1737
|
-
case "datetime":
|
|
1738
1737
|
return dc;
|
|
1739
|
-
case "
|
|
1738
|
+
case "datetime":
|
|
1740
1739
|
return uc;
|
|
1740
|
+
case "time":
|
|
1741
|
+
return fc;
|
|
1741
1742
|
case "one2many":
|
|
1742
1743
|
case "one2many_list":
|
|
1743
1744
|
case "many2many":
|
|
1744
|
-
return
|
|
1745
|
+
return Yl;
|
|
1745
1746
|
case "separator":
|
|
1746
|
-
return
|
|
1747
|
+
return ec;
|
|
1747
1748
|
case "reference":
|
|
1748
|
-
return
|
|
1749
|
+
return hc;
|
|
1749
1750
|
case "binary":
|
|
1750
|
-
return
|
|
1751
|
+
return yc;
|
|
1751
1752
|
case "image":
|
|
1752
|
-
return
|
|
1753
|
+
return As;
|
|
1753
1754
|
case "url":
|
|
1754
|
-
return Fc;
|
|
1755
|
-
case "email":
|
|
1756
1755
|
return Oc;
|
|
1756
|
+
case "email":
|
|
1757
|
+
return Rc;
|
|
1757
1758
|
case "float_time":
|
|
1758
|
-
return
|
|
1759
|
+
return Ul;
|
|
1759
1760
|
case "fiber_grid":
|
|
1760
|
-
return
|
|
1761
|
+
return ks;
|
|
1761
1762
|
case "timeline":
|
|
1762
|
-
return
|
|
1763
|
+
return Bs;
|
|
1763
1764
|
case "indicator":
|
|
1764
|
-
return
|
|
1765
|
+
return Ks;
|
|
1765
1766
|
case "tags":
|
|
1766
|
-
return
|
|
1767
|
+
return Xs;
|
|
1767
1768
|
case "tag":
|
|
1768
|
-
return
|
|
1769
|
+
return Js;
|
|
1769
1770
|
case "multicheckbox":
|
|
1770
|
-
return
|
|
1771
|
+
return id;
|
|
1771
1772
|
case "markdown":
|
|
1772
|
-
return
|
|
1773
|
+
return ad;
|
|
1773
1774
|
case "radio":
|
|
1774
|
-
return
|
|
1775
|
+
return cd;
|
|
1775
1776
|
case "switch":
|
|
1776
|
-
return
|
|
1777
|
+
return ud;
|
|
1777
1778
|
case "steps":
|
|
1778
|
-
return
|
|
1779
|
+
return md;
|
|
1779
1780
|
case "codeeditor":
|
|
1780
|
-
return
|
|
1781
|
+
return pd;
|
|
1781
1782
|
case "comments_timeline":
|
|
1782
|
-
return
|
|
1783
|
+
return xd;
|
|
1783
1784
|
default:
|
|
1784
1785
|
return;
|
|
1785
1786
|
}
|
|
1786
|
-
},
|
|
1787
|
-
const { ooui: t } = e, { type: r } = t, i =
|
|
1787
|
+
}, ea = (e) => {
|
|
1788
|
+
const { ooui: t } = e, { type: r } = t, i = Qs(r);
|
|
1788
1789
|
return i ? et.createElement(i, e) : null;
|
|
1789
|
-
},
|
|
1790
|
+
}, ta = ({
|
|
1790
1791
|
item: e,
|
|
1791
1792
|
responsiveBehaviour: t
|
|
1792
1793
|
}) => ({
|
|
1793
1794
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
1794
|
-
}),
|
|
1795
|
+
}), na = ({
|
|
1795
1796
|
row: e,
|
|
1796
1797
|
mustFillWithEmpties: t,
|
|
1797
1798
|
numberOfColumns: r
|
|
@@ -1810,10 +1811,10 @@ const Nt = ({
|
|
|
1810
1811
|
i.push(new Dt({ string: "" }));
|
|
1811
1812
|
}
|
|
1812
1813
|
}), i;
|
|
1813
|
-
},
|
|
1814
|
+
}, ra = ({
|
|
1814
1815
|
row: e,
|
|
1815
1816
|
numberOfColumns: t
|
|
1816
|
-
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)),
|
|
1817
|
+
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), oa = (e, t) => {
|
|
1817
1818
|
const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof si ? "auto" : "1fr");
|
|
1818
1819
|
if (r.length < t) {
|
|
1819
1820
|
const i = t - r.length;
|
|
@@ -1821,25 +1822,25 @@ const Nt = ({
|
|
|
1821
1822
|
r.push("1fr");
|
|
1822
1823
|
}
|
|
1823
1824
|
return r.join(" ");
|
|
1824
|
-
},
|
|
1825
|
+
}, ia = (e, t) => {
|
|
1825
1826
|
const r = t ? "1fr" : "auto", i = "auto";
|
|
1826
1827
|
let o = "";
|
|
1827
1828
|
for (let s = 0; s < e; s++)
|
|
1828
1829
|
o += s % 2 ? r : i, s + 1 < e && (o += " ");
|
|
1829
1830
|
return o;
|
|
1830
|
-
},
|
|
1831
|
+
}, sa = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (e) => {
|
|
1831
1832
|
const { container: t, responsiveBehaviour: r } = e, { rows: i } = t;
|
|
1832
1833
|
let { columns: o } = t;
|
|
1833
|
-
const s =
|
|
1834
|
+
const s = sa(i);
|
|
1834
1835
|
s < o && (o = s);
|
|
1835
1836
|
let a = !1, l = [];
|
|
1836
1837
|
const d = i.map((f, m) => {
|
|
1837
|
-
const p = f.filter((y) => !y.invisible), h =
|
|
1838
|
+
const p = f.filter((y) => !y.invisible), h = ra({
|
|
1838
1839
|
row: p,
|
|
1839
1840
|
numberOfColumns: o
|
|
1840
1841
|
});
|
|
1841
1842
|
let g = h;
|
|
1842
|
-
return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g =
|
|
1843
|
+
return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g = na({
|
|
1843
1844
|
row: h,
|
|
1844
1845
|
numberOfColumns: o,
|
|
1845
1846
|
mustFillWithEmpties: r
|
|
@@ -1847,17 +1848,17 @@ const Nt = ({
|
|
|
1847
1848
|
"div",
|
|
1848
1849
|
{
|
|
1849
1850
|
style: {
|
|
1850
|
-
...
|
|
1851
|
+
...ta({ item: y, responsiveBehaviour: r }),
|
|
1851
1852
|
minWidth: 0
|
|
1852
1853
|
},
|
|
1853
|
-
children:
|
|
1854
|
+
children: ea({
|
|
1854
1855
|
ooui: y,
|
|
1855
1856
|
responsiveBehaviour: r
|
|
1856
1857
|
})
|
|
1857
1858
|
},
|
|
1858
1859
|
y.key
|
|
1859
1860
|
)));
|
|
1860
|
-
}), u = i.length === 1 ?
|
|
1861
|
+
}), u = i.length === 1 ? oa(l, o) : ia(o, a);
|
|
1861
1862
|
return /* @__PURE__ */ n("div", { style: {
|
|
1862
1863
|
display: "grid",
|
|
1863
1864
|
gridTemplateColumns: r ? "auto" : u,
|
|
@@ -1865,12 +1866,12 @@ const Nt = ({
|
|
|
1865
1866
|
minHeight: 0,
|
|
1866
1867
|
minWidth: 0
|
|
1867
1868
|
}, children: d });
|
|
1868
|
-
}, { confirm:
|
|
1869
|
+
}, { confirm: aa } = Je, zt = ({
|
|
1869
1870
|
onOk: e,
|
|
1870
1871
|
onCancel: t,
|
|
1871
1872
|
lang: r
|
|
1872
1873
|
}) => {
|
|
1873
|
-
|
|
1874
|
+
aa({
|
|
1874
1875
|
title: Fe("unsavedChanges", r),
|
|
1875
1876
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
1876
1877
|
centered: !0,
|
|
@@ -1880,22 +1881,22 @@ const Nt = ({
|
|
|
1880
1881
|
onCancel: t,
|
|
1881
1882
|
cancelText: Fe("cancel", r)
|
|
1882
1883
|
});
|
|
1883
|
-
}, { error:
|
|
1884
|
-
|
|
1884
|
+
}, { error: la } = Je, yr = (e) => {
|
|
1885
|
+
la({
|
|
1885
1886
|
title: Fe("formHasErrors", e),
|
|
1886
1887
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
1887
1888
|
centered: !0,
|
|
1888
1889
|
content: Fe("fillRequiredFields", e)
|
|
1889
1890
|
});
|
|
1890
|
-
}, { warning:
|
|
1891
|
-
|
|
1891
|
+
}, { warning: ca } = Je, da = (e, t, r) => {
|
|
1892
|
+
ca({
|
|
1892
1893
|
title: e,
|
|
1893
1894
|
icon: /* @__PURE__ */ n(Hr, {}),
|
|
1894
1895
|
centered: !0,
|
|
1895
1896
|
content: t,
|
|
1896
1897
|
onOk: r
|
|
1897
1898
|
});
|
|
1898
|
-
}, fo = et.createContext(null),
|
|
1899
|
+
}, fo = et.createContext(null), ua = (e) => {
|
|
1899
1900
|
const { children: t, setTitle: r } = e;
|
|
1900
1901
|
return /* @__PURE__ */ n(
|
|
1901
1902
|
fo.Provider,
|
|
@@ -1906,15 +1907,15 @@ const Nt = ({
|
|
|
1906
1907
|
children: t
|
|
1907
1908
|
}
|
|
1908
1909
|
);
|
|
1909
|
-
}, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e,
|
|
1910
|
-
const r =
|
|
1910
|
+
}, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, fa = (e, t) => {
|
|
1911
|
+
const r = va(e), i = ga(r), o = ya(
|
|
1911
1912
|
i,
|
|
1912
1913
|
t
|
|
1913
1914
|
);
|
|
1914
1915
|
return [
|
|
1915
|
-
...Object.keys(o).map((l) =>
|
|
1916
|
+
...Object.keys(o).map((l) => ma(l, o[l], t))
|
|
1916
1917
|
].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
|
|
1917
|
-
},
|
|
1918
|
+
}, ma = (e, t, r) => {
|
|
1918
1919
|
var s;
|
|
1919
1920
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
1920
1921
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -1936,14 +1937,14 @@ const Nt = ({
|
|
|
1936
1937
|
(a) => vr(a)
|
|
1937
1938
|
)
|
|
1938
1939
|
] : [e, "=", vr(t)];
|
|
1939
|
-
},
|
|
1940
|
+
}, ha = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), pa = (e) => {
|
|
1940
1941
|
const t = { ...e };
|
|
1941
1942
|
return Object.keys(t).forEach(
|
|
1942
1943
|
(r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
|
|
1943
1944
|
), t;
|
|
1944
|
-
},
|
|
1945
|
-
const t = { ...
|
|
1946
|
-
return
|
|
1945
|
+
}, ga = (e) => {
|
|
1946
|
+
const t = { ...pa(e) };
|
|
1947
|
+
return ha(e).forEach((i) => {
|
|
1947
1948
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
1948
1949
|
let d, u;
|
|
1949
1950
|
if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -1956,7 +1957,7 @@ const Nt = ({
|
|
|
1956
1957
|
}
|
|
1957
1958
|
t[s + "#datetime"] = [d, u];
|
|
1958
1959
|
}), t;
|
|
1959
|
-
},
|
|
1960
|
+
}, ya = (e, t) => {
|
|
1960
1961
|
const r = Object.keys(e).filter((o) => {
|
|
1961
1962
|
const s = t.findById(o);
|
|
1962
1963
|
return s && s.type === "date";
|
|
@@ -1964,18 +1965,18 @@ const Nt = ({
|
|
|
1964
1965
|
return r.forEach((o) => {
|
|
1965
1966
|
delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
|
|
1966
1967
|
}), i;
|
|
1967
|
-
},
|
|
1968
|
+
}, va = (e) => {
|
|
1968
1969
|
const t = { ...e };
|
|
1969
1970
|
return Object.keys(t).forEach(
|
|
1970
1971
|
(r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
|
|
1971
1972
|
), t;
|
|
1972
|
-
},
|
|
1973
|
+
}, wa = (e) => {
|
|
1973
1974
|
const t = {};
|
|
1974
1975
|
return e.forEach((r) => {
|
|
1975
1976
|
Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
|
|
1976
1977
|
}), Object.keys(t);
|
|
1977
1978
|
}, Wt = (e, t) => {
|
|
1978
|
-
const r = [...e], i =
|
|
1979
|
+
const r = [...e], i = wa(e);
|
|
1979
1980
|
return t.forEach((o) => {
|
|
1980
1981
|
Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
|
|
1981
1982
|
}), r;
|
|
@@ -2210,7 +2211,7 @@ const Nt = ({
|
|
|
2210
2211
|
totalItems: K,
|
|
2211
2212
|
getAllIds: xe
|
|
2212
2213
|
};
|
|
2213
|
-
}, st = et.createContext(null),
|
|
2214
|
+
}, st = et.createContext(null), ba = (e) => {
|
|
2214
2215
|
const {
|
|
2215
2216
|
children: t,
|
|
2216
2217
|
currentView: r,
|
|
@@ -2320,7 +2321,7 @@ const Nt = ({
|
|
|
2320
2321
|
children: t
|
|
2321
2322
|
}
|
|
2322
2323
|
);
|
|
2323
|
-
}, dt = et.createContext(null),
|
|
2324
|
+
}, dt = et.createContext(null), Ca = (e) => {
|
|
2324
2325
|
const {
|
|
2325
2326
|
children: t,
|
|
2326
2327
|
openAction: r,
|
|
@@ -2356,7 +2357,7 @@ const Nt = ({
|
|
|
2356
2357
|
var t;
|
|
2357
2358
|
for (let r = 0; r < e.length; r++)
|
|
2358
2359
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2359
|
-
},
|
|
2360
|
+
}, xa = (e, t) => {
|
|
2360
2361
|
const { children: r, globalValues: i = {} } = e, o = de(), s = de(), [a, l] = w(!1), d = H(
|
|
2361
2362
|
dt
|
|
2362
2363
|
), { openAction: u } = d || {}, c = de([]), { t: f } = H(he);
|
|
@@ -2433,7 +2434,7 @@ const Nt = ({
|
|
|
2433
2434
|
return await F({ actionData: k, fields: x, values: S, context: I });
|
|
2434
2435
|
if (D === "ir.actions.act_url")
|
|
2435
2436
|
window.open(
|
|
2436
|
-
|
|
2437
|
+
zs(k.url, { ...S, context: I }),
|
|
2437
2438
|
"_blank"
|
|
2438
2439
|
);
|
|
2439
2440
|
else
|
|
@@ -2483,7 +2484,7 @@ const Nt = ({
|
|
|
2483
2484
|
context: P
|
|
2484
2485
|
}), {};
|
|
2485
2486
|
} else {
|
|
2486
|
-
const { initialView: M, views: B } = await
|
|
2487
|
+
const { initialView: M, views: B } = await Sa({
|
|
2487
2488
|
model: C.res_model,
|
|
2488
2489
|
context: P,
|
|
2489
2490
|
view_mode: C.view_mode,
|
|
@@ -2584,7 +2585,7 @@ const Nt = ({
|
|
|
2584
2585
|
}
|
|
2585
2586
|
) });
|
|
2586
2587
|
};
|
|
2587
|
-
async function
|
|
2588
|
+
async function Sa({
|
|
2588
2589
|
views: e,
|
|
2589
2590
|
view_mode: t,
|
|
2590
2591
|
model: r,
|
|
@@ -2633,7 +2634,7 @@ async function xa({
|
|
|
2633
2634
|
}
|
|
2634
2635
|
return { views: s, initialView: a };
|
|
2635
2636
|
}
|
|
2636
|
-
const
|
|
2637
|
+
const Ta = wt(xa), Ia = ({
|
|
2637
2638
|
error: e,
|
|
2638
2639
|
className: t
|
|
2639
2640
|
}) => {
|
|
@@ -2654,8 +2655,8 @@ const Sa = wt(Ca), Ta = ({
|
|
|
2654
2655
|
banner: !0
|
|
2655
2656
|
}
|
|
2656
2657
|
);
|
|
2657
|
-
},
|
|
2658
|
-
function
|
|
2658
|
+
}, Fa = 800;
|
|
2659
|
+
function Oa(e, t) {
|
|
2659
2660
|
const {
|
|
2660
2661
|
model: r,
|
|
2661
2662
|
id: i,
|
|
@@ -2679,7 +2680,7 @@ function Fa(e, t) {
|
|
|
2679
2680
|
defaultValues: O,
|
|
2680
2681
|
forcedValues: R = {},
|
|
2681
2682
|
parentWidth: k
|
|
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) <
|
|
2683
|
+
} = 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) < Fa, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
|
|
2683
2684
|
st
|
|
2684
2685
|
), {
|
|
2685
2686
|
setFormIsSaving: xe = void 0,
|
|
@@ -2820,7 +2821,7 @@ function Fa(e, t) {
|
|
|
2820
2821
|
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({
|
|
2821
2822
|
fields: Q,
|
|
2822
2823
|
arch: te
|
|
2823
|
-
}), T && (W = { ...
|
|
2824
|
+
}), T && (W = { ...Us(T), ...W }), ee.current = Ft(W, Q), Lt({
|
|
2824
2825
|
values: W,
|
|
2825
2826
|
fields: Q,
|
|
2826
2827
|
reset: !0,
|
|
@@ -2959,7 +2960,7 @@ function Fa(e, t) {
|
|
|
2959
2960
|
const fe = new Nr($);
|
|
2960
2961
|
fe.parse(W, {
|
|
2961
2962
|
readOnly: c || te,
|
|
2962
|
-
values:
|
|
2963
|
+
values: Ls(
|
|
2963
2964
|
{
|
|
2964
2965
|
...Q,
|
|
2965
2966
|
...Te()
|
|
@@ -2977,7 +2978,7 @@ function Fa(e, t) {
|
|
|
2977
2978
|
target: qe(V),
|
|
2978
2979
|
fields: V
|
|
2979
2980
|
}), Q = Object.keys(W);
|
|
2980
|
-
if (Q.length !== 0 && !(
|
|
2981
|
+
if (Q.length !== 0 && !(Ys({
|
|
2981
2982
|
changedFields: Q,
|
|
2982
2983
|
formOoui: L,
|
|
2983
2984
|
types: [
|
|
@@ -3014,7 +3015,7 @@ function Fa(e, t) {
|
|
|
3014
3015
|
});
|
|
3015
3016
|
return;
|
|
3016
3017
|
}
|
|
3017
|
-
const Q =
|
|
3018
|
+
const Q = qs({
|
|
3018
3019
|
values: {
|
|
3019
3020
|
...qe(V),
|
|
3020
3021
|
context: {
|
|
@@ -3044,12 +3045,12 @@ function Fa(e, t) {
|
|
|
3044
3045
|
}
|
|
3045
3046
|
if (te.warning && te.warning.title && te.warning.message && !Ie.current) {
|
|
3046
3047
|
const { title: fe, message: ot } = te.warning;
|
|
3047
|
-
Ie.current = !0,
|
|
3048
|
+
Ie.current = !0, da(fe, ot, () => {
|
|
3048
3049
|
Ie.current = !1;
|
|
3049
3050
|
});
|
|
3050
3051
|
}
|
|
3051
3052
|
if (te.domain && Object.keys(te.domain).length > 0) {
|
|
3052
|
-
const fe =
|
|
3053
|
+
const fe = Gs({
|
|
3053
3054
|
fieldsDomain: te.domain,
|
|
3054
3055
|
fields: V
|
|
3055
3056
|
});
|
|
@@ -3163,7 +3164,7 @@ function Fa(e, t) {
|
|
|
3163
3164
|
}
|
|
3164
3165
|
}
|
|
3165
3166
|
const jo = () => !L && !D ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !F ? null : /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
|
|
3166
|
-
|
|
3167
|
+
ds,
|
|
3167
3168
|
{
|
|
3168
3169
|
getValues: We,
|
|
3169
3170
|
getPlainValues: q,
|
|
@@ -3235,14 +3236,14 @@ function Fa(e, t) {
|
|
|
3235
3236
|
le((W = $.bounds) == null ? void 0 : W.width);
|
|
3236
3237
|
},
|
|
3237
3238
|
children: ({ measureRef: $ }) => /* @__PURE__ */ A("div", { className: "pb-2", ref: $, children: [
|
|
3238
|
-
D && /* @__PURE__ */ n(
|
|
3239
|
+
D && /* @__PURE__ */ n(Ia, { className: "mt-5 mb-10", error: D }),
|
|
3239
3240
|
jo(),
|
|
3240
3241
|
a && Yo()
|
|
3241
3242
|
] })
|
|
3242
3243
|
}
|
|
3243
3244
|
) : null;
|
|
3244
3245
|
}
|
|
3245
|
-
const Jt = wt(
|
|
3246
|
+
const Jt = wt(Oa), Xt = (e) => {
|
|
3246
3247
|
const {
|
|
3247
3248
|
visible: t,
|
|
3248
3249
|
id: r,
|
|
@@ -3296,7 +3297,7 @@ const Jt = wt(Fa), Xt = (e) => {
|
|
|
3296
3297
|
] });
|
|
3297
3298
|
}
|
|
3298
3299
|
const F = u * 0.95;
|
|
3299
|
-
return /* @__PURE__ */ n(
|
|
3300
|
+
return /* @__PURE__ */ n(ua, { setTitle: f, children: /* @__PURE__ */ n(
|
|
3300
3301
|
Je,
|
|
3301
3302
|
{
|
|
3302
3303
|
title: a ? T() : c,
|
|
@@ -3320,13 +3321,13 @@ const Jt = wt(Fa), Xt = (e) => {
|
|
|
3320
3321
|
)
|
|
3321
3322
|
}
|
|
3322
3323
|
) });
|
|
3323
|
-
},
|
|
3324
|
+
}, Ra = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
|
|
3324
3325
|
Pn.RangePicker,
|
|
3325
3326
|
{
|
|
3326
3327
|
allowEmpty: [!0, !0],
|
|
3327
3328
|
format: "DD/MM/YYYY"
|
|
3328
3329
|
}
|
|
3329
|
-
) }),
|
|
3330
|
+
) }), _a = (e) => {
|
|
3330
3331
|
const { ooui: t, showLabel: r = !1 } = e, { label: i, id: o } = t, s = [
|
|
3331
3332
|
new _n({
|
|
3332
3333
|
name: o + "#date",
|
|
@@ -3369,8 +3370,8 @@ const Jt = wt(Fa), Xt = (e) => {
|
|
|
3369
3370
|
) }) })
|
|
3370
3371
|
] })
|
|
3371
3372
|
] });
|
|
3372
|
-
}, { useToken:
|
|
3373
|
-
const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } =
|
|
3373
|
+
}, { useToken: Va } = Pe, ho = (e) => {
|
|
3374
|
+
const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = Va(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
|
|
3374
3375
|
return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
3375
3376
|
Ar,
|
|
3376
3377
|
{
|
|
@@ -3384,8 +3385,8 @@ const Jt = wt(Fa), Xt = (e) => {
|
|
|
3384
3385
|
onBlur: u
|
|
3385
3386
|
}
|
|
3386
3387
|
) });
|
|
3387
|
-
}, { useToken:
|
|
3388
|
-
const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } =
|
|
3388
|
+
}, { useToken: Aa } = Pe, rn = (e) => {
|
|
3389
|
+
const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Aa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
|
|
3389
3390
|
return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
3390
3391
|
Ar,
|
|
3391
3392
|
{
|
|
@@ -3403,7 +3404,7 @@ const Jt = wt(Fa), Xt = (e) => {
|
|
|
3403
3404
|
}
|
|
3404
3405
|
) });
|
|
3405
3406
|
};
|
|
3406
|
-
function
|
|
3407
|
+
function Da(e) {
|
|
3407
3408
|
const { ooui: t, showLabel: r } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof Vn ? rn : ho, l = (d) => /* @__PURE__ */ n(
|
|
3408
3409
|
a,
|
|
3409
3410
|
{
|
|
@@ -3436,17 +3437,17 @@ function Aa(e) {
|
|
|
3436
3437
|
] })
|
|
3437
3438
|
] });
|
|
3438
3439
|
}
|
|
3439
|
-
const { defaultAlgorithm:
|
|
3440
|
+
const { defaultAlgorithm: ka, defaultSeed: Ea } = Pe, Ma = ka(Ea), { Option: Na } = Ct, Pa = (e) => {
|
|
3440
3441
|
const { ooui: t } = e, { required: r } = t;
|
|
3441
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(
|
|
3442
|
-
},
|
|
3442
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(La, { ...e }) });
|
|
3443
|
+
}, La = (e) => {
|
|
3443
3444
|
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) => {
|
|
3444
3445
|
const [m] = f;
|
|
3445
3446
|
return i ? !i.includes(m) : !0;
|
|
3446
3447
|
}).map((f) => {
|
|
3447
3448
|
const [m, p] = f;
|
|
3448
|
-
return /* @__PURE__ */ n(
|
|
3449
|
-
}), u = a && !s ?
|
|
3449
|
+
return /* @__PURE__ */ n(Na, { value: p, children: p }, m);
|
|
3450
|
+
}), u = a && !s ? Ba : Ct;
|
|
3450
3451
|
function c(f) {
|
|
3451
3452
|
const m = f.map((p) => {
|
|
3452
3453
|
const h = l.find(([g, y]) => p === y);
|
|
@@ -3469,12 +3470,12 @@ const { defaultAlgorithm: Da, defaultSeed: ka } = Pe, Ea = Da(ka), { Option: Ma
|
|
|
3469
3470
|
children: d
|
|
3470
3471
|
}
|
|
3471
3472
|
);
|
|
3472
|
-
},
|
|
3473
|
+
}, Ba = Mt(Ct)`
|
|
3473
3474
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3474
|
-
background-color: ${
|
|
3475
|
+
background-color: ${Ma.colorPrimaryBg};
|
|
3475
3476
|
}
|
|
3476
3477
|
`;
|
|
3477
|
-
function
|
|
3478
|
+
function $a(e) {
|
|
3478
3479
|
const { field: t } = e;
|
|
3479
3480
|
t.readOnly = !1, t.required = !1;
|
|
3480
3481
|
const { t: r } = H(he);
|
|
@@ -3494,18 +3495,18 @@ function Ba(e) {
|
|
|
3494
3495
|
case mt.progressbar:
|
|
3495
3496
|
case mt.float_time:
|
|
3496
3497
|
case mt.integer:
|
|
3497
|
-
return /* @__PURE__ */ n(
|
|
3498
|
+
return /* @__PURE__ */ n(Da, { ooui: t, showLabel: !0 });
|
|
3498
3499
|
case mt.date:
|
|
3499
|
-
return /* @__PURE__ */ n(Oa, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
3500
|
-
case mt.datetime:
|
|
3501
3500
|
return /* @__PURE__ */ n(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
3501
|
+
case mt.datetime:
|
|
3502
|
+
return /* @__PURE__ */ n(_a, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
3502
3503
|
case mt.selection:
|
|
3503
|
-
return /* @__PURE__ */ n(
|
|
3504
|
+
return /* @__PURE__ */ n(Pa, { layout: "vertical", ooui: t, showLabel: !0 });
|
|
3504
3505
|
default:
|
|
3505
3506
|
return /* @__PURE__ */ n(no, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
|
|
3506
3507
|
}
|
|
3507
3508
|
}
|
|
3508
|
-
function
|
|
3509
|
+
function Ha(e) {
|
|
3509
3510
|
const { onAdvancedFilterToggle: t, advancedFilter: r, onClear: i, isSearching: o } = e, { t: s } = H(he);
|
|
3510
3511
|
return /* @__PURE__ */ A(be, { children: [
|
|
3511
3512
|
/* @__PURE__ */ n(ae, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ A("a", { className: "text-xs", onClick: t, children: [
|
|
@@ -3528,7 +3529,7 @@ function $a(e) {
|
|
|
3528
3529
|
] })
|
|
3529
3530
|
] });
|
|
3530
3531
|
}
|
|
3531
|
-
function
|
|
3532
|
+
function Ka(e) {
|
|
3532
3533
|
const { onLimitChange: t } = e, { t: r } = H(he), i = new Vn({ name: "limit" }), o = new Vn({ name: "offset" });
|
|
3533
3534
|
return /* @__PURE__ */ A("div", { className: "pl-2 pt-2", children: [
|
|
3534
3535
|
/* @__PURE__ */ n(be, { children: r("parameters") }, "count_params"),
|
|
@@ -3548,7 +3549,7 @@ function Ha(e) {
|
|
|
3548
3549
|
] })
|
|
3549
3550
|
] });
|
|
3550
3551
|
}
|
|
3551
|
-
const { useToken:
|
|
3552
|
+
const { useToken: Wa } = Pe;
|
|
3552
3553
|
function po(e) {
|
|
3553
3554
|
const {
|
|
3554
3555
|
fields: t,
|
|
@@ -3564,7 +3565,7 @@ function po(e) {
|
|
|
3564
3565
|
searchError: f,
|
|
3565
3566
|
searchValues: m,
|
|
3566
3567
|
showLimitOptions: p = !0
|
|
3567
|
-
} = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } =
|
|
3568
|
+
} = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Wa(), [R] = lt.useForm();
|
|
3568
3569
|
me(() => {
|
|
3569
3570
|
R.setFieldsValue(m);
|
|
3570
3571
|
}, [m]);
|
|
@@ -3572,7 +3573,7 @@ function po(e) {
|
|
|
3572
3573
|
if (!y)
|
|
3573
3574
|
return;
|
|
3574
3575
|
const I = T ? y : h, C = I == null ? void 0 : I.rows;
|
|
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(
|
|
3576
|
+
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($a, { field: L }) }, j)) }, P));
|
|
3576
3577
|
};
|
|
3577
3578
|
xt(() => {
|
|
3578
3579
|
F(!1), b.current = new ai(r, t), b.current.parse(), g(b.current._simpleSearchContainer), v(b.current._advancedSearchContainer);
|
|
@@ -3581,7 +3582,7 @@ function po(e) {
|
|
|
3581
3582
|
var L;
|
|
3582
3583
|
const { limit: C, offset: D } = I;
|
|
3583
3584
|
delete I.offset, delete I.limit;
|
|
3584
|
-
const P =
|
|
3585
|
+
const P = fa(
|
|
3585
3586
|
I,
|
|
3586
3587
|
(L = b.current) == null ? void 0 : L._advancedSearchContainer
|
|
3587
3588
|
);
|
|
@@ -3606,9 +3607,9 @@ function po(e) {
|
|
|
3606
3607
|
initialValues: { offset: a, limit: l },
|
|
3607
3608
|
children: [
|
|
3608
3609
|
x,
|
|
3609
|
-
T && p && /* @__PURE__ */ n(
|
|
3610
|
+
T && p && /* @__PURE__ */ n(Ka, { onLimitChange: d }),
|
|
3610
3611
|
/* @__PURE__ */ n(
|
|
3611
|
-
|
|
3612
|
+
Ha,
|
|
3612
3613
|
{
|
|
3613
3614
|
advancedFilter: T,
|
|
3614
3615
|
onAdvancedFilterToggle: () => {
|
|
@@ -3642,7 +3643,7 @@ const br = (e, t = "14px -apple-system") => {
|
|
|
3642
3643
|
i.font = t;
|
|
3643
3644
|
const o = i.measureText(e);
|
|
3644
3645
|
return Math.round((o.width + 80) * 1.5);
|
|
3645
|
-
},
|
|
3646
|
+
}, ja = (e, t, r = 500) => {
|
|
3646
3647
|
if (e.length === 0)
|
|
3647
3648
|
return { columns: e };
|
|
3648
3649
|
const i = e.map(
|
|
@@ -3664,7 +3665,7 @@ const br = (e, t = "14px -apple-system") => {
|
|
|
3664
3665
|
tableWidth: o
|
|
3665
3666
|
};
|
|
3666
3667
|
};
|
|
3667
|
-
function
|
|
3668
|
+
function Ya(e) {
|
|
3668
3669
|
if (e)
|
|
3669
3670
|
try {
|
|
3670
3671
|
if (e.includes(":")) {
|
|
@@ -3694,17 +3695,17 @@ function go(e) {
|
|
|
3694
3695
|
});
|
|
3695
3696
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
3696
3697
|
}
|
|
3697
|
-
const
|
|
3698
|
+
const Ga = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo, {}) }), yo = ({ value: e }) => {
|
|
3698
3699
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
3699
3700
|
minimumIntegerDigits: 1,
|
|
3700
3701
|
maximumFractionDigits: 4,
|
|
3701
3702
|
useGrouping: !1
|
|
3702
3703
|
})}%`;
|
|
3703
3704
|
return /* @__PURE__ */ A("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
3704
|
-
/* @__PURE__ */ n(
|
|
3705
|
+
/* @__PURE__ */ n(Ua, { percent: e }),
|
|
3705
3706
|
/* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
3706
3707
|
] });
|
|
3707
|
-
},
|
|
3708
|
+
}, Ua = Mt(Zo)`
|
|
3708
3709
|
.ant-progress-outer {
|
|
3709
3710
|
margin-right: 0px;
|
|
3710
3711
|
padding-right: 0px;
|
|
@@ -3879,13 +3880,13 @@ const Ya = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3879
3880
|
}
|
|
3880
3881
|
)
|
|
3881
3882
|
] });
|
|
3882
|
-
},
|
|
3883
|
+
}, qa = (e) => {
|
|
3883
3884
|
const { m2oField: t } = e;
|
|
3884
3885
|
return t ? /* @__PURE__ */ A(je, { children: [
|
|
3885
3886
|
/* @__PURE__ */ n(Z, { children: t.value }),
|
|
3886
3887
|
/* @__PURE__ */ n(Zn, { id: t.id, model: t.model })
|
|
3887
3888
|
] }) : /* @__PURE__ */ n(Z, {});
|
|
3888
|
-
},
|
|
3889
|
+
}, za = (e) => {
|
|
3889
3890
|
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 () => {
|
|
3890
3891
|
if (!t || t && o)
|
|
3891
3892
|
return;
|
|
@@ -3910,7 +3911,7 @@ const Ya = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
|
|
|
3910
3911
|
/* @__PURE__ */ n(Z, { children: o }),
|
|
3911
3912
|
/* @__PURE__ */ n(Zn, { id: c, model: d })
|
|
3912
3913
|
] });
|
|
3913
|
-
},
|
|
3914
|
+
}, Ja = (e) => {
|
|
3914
3915
|
const { ooui: t, value: r } = e;
|
|
3915
3916
|
if (!r)
|
|
3916
3917
|
return null;
|
|
@@ -3927,7 +3928,7 @@ nt.extend(Ni);
|
|
|
3927
3928
|
nt.extend(Pi);
|
|
3928
3929
|
nt.extend(Li);
|
|
3929
3930
|
nt.extend(Bi);
|
|
3930
|
-
const { useToken:
|
|
3931
|
+
const { useToken: Xa } = Pe, ut = {
|
|
3931
3932
|
date: {
|
|
3932
3933
|
placeholder: "__/__/____",
|
|
3933
3934
|
dateDisplayFormat: "DD/MM/YYYY",
|
|
@@ -3940,9 +3941,9 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
3940
3941
|
}
|
|
3941
3942
|
}, vo = (e) => {
|
|
3942
3943
|
const { ooui: t, showTime: r = !1 } = e, { required: i } = t;
|
|
3943
|
-
return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(
|
|
3944
|
-
},
|
|
3945
|
-
const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } =
|
|
3944
|
+
return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(Za, { ooui: t, showTime: r }) });
|
|
3945
|
+
}, Za = (e) => {
|
|
3946
|
+
const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = Xa(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
|
|
3946
3947
|
r == null || r(h);
|
|
3947
3948
|
}, m = (h) => {
|
|
3948
3949
|
if (h === null) {
|
|
@@ -3965,11 +3966,11 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
3965
3966
|
onChange: m
|
|
3966
3967
|
}
|
|
3967
3968
|
);
|
|
3968
|
-
},
|
|
3969
|
+
}, Qa = Mt.div`
|
|
3969
3970
|
display: flex;
|
|
3970
3971
|
align-items: center;
|
|
3971
3972
|
justify-content: center;
|
|
3972
|
-
`,
|
|
3973
|
+
`, el = ({
|
|
3973
3974
|
numberOfVisibleSelectedRows: e,
|
|
3974
3975
|
totalRecords: t,
|
|
3975
3976
|
numberOfTotalRows: r,
|
|
@@ -3998,8 +3999,8 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
3998
3999
|
"{totalRecords}",
|
|
3999
4000
|
o.toString()
|
|
4000
4001
|
) + " " });
|
|
4001
|
-
return /* @__PURE__ */ n(
|
|
4002
|
-
},
|
|
4002
|
+
return /* @__PURE__ */ n(Qa, { children: o > r ? f : c });
|
|
4003
|
+
}, tl = (e) => /* @__PURE__ */ n(
|
|
4003
4004
|
"div",
|
|
4004
4005
|
{
|
|
4005
4006
|
style: {
|
|
@@ -4009,12 +4010,12 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
4009
4010
|
},
|
|
4010
4011
|
children: /* @__PURE__ */ n(Ht, { checked: e, disabled: !0 })
|
|
4011
4012
|
}
|
|
4012
|
-
),
|
|
4013
|
+
), nl = (e) => /* @__PURE__ */ n(qa, { m2oField: e }), rl = (e) => /* @__PURE__ */ n(
|
|
4013
4014
|
zn,
|
|
4014
4015
|
{
|
|
4015
4016
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
4016
4017
|
}
|
|
4017
|
-
),
|
|
4018
|
+
), ol = (e) => {
|
|
4018
4019
|
if (!e || e && e.length === 0)
|
|
4019
4020
|
return /* @__PURE__ */ n(Z, {});
|
|
4020
4021
|
const t = nt(
|
|
@@ -4022,7 +4023,7 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
4022
4023
|
ut.date.dateInternalFormat
|
|
4023
4024
|
).format(ut.date.dateDisplayFormat);
|
|
4024
4025
|
return /* @__PURE__ */ n(Z, { children: t });
|
|
4025
|
-
},
|
|
4026
|
+
}, il = (e) => {
|
|
4026
4027
|
if (!e || e && e.length === 0)
|
|
4027
4028
|
return /* @__PURE__ */ n(Z, {});
|
|
4028
4029
|
const t = nt(
|
|
@@ -4033,20 +4034,20 @@ const { useToken: Ja } = Pe, ut = {
|
|
|
4033
4034
|
}, xr = (e) => {
|
|
4034
4035
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4035
4036
|
return /* @__PURE__ */ n(Z, { children: `( ${t} )` });
|
|
4036
|
-
},
|
|
4037
|
+
}, sl = (e) => /* @__PURE__ */ n(yo, { value: e }), al = (e) => /* @__PURE__ */ n(Z, { children: go(e) }), Sr = (e) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: e }), ll = (e) => /* @__PURE__ */ n(
|
|
4037
4038
|
"img",
|
|
4038
4039
|
{
|
|
4039
4040
|
src: `data:image/*;base64,${e}`,
|
|
4040
4041
|
style: { maxWidth: "50px", padding: "5px" }
|
|
4041
4042
|
}
|
|
4042
|
-
),
|
|
4043
|
-
|
|
4043
|
+
), cl = (e, t, r, i) => /* @__PURE__ */ n(co, { ooui: r, value: e }), dl = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: r.selectionValues.get(e) }), ul = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
|
|
4044
|
+
za,
|
|
4044
4045
|
{
|
|
4045
4046
|
value: e,
|
|
4046
4047
|
selectionValues: r.selectionValues,
|
|
4047
4048
|
context: i
|
|
4048
4049
|
}
|
|
4049
|
-
) }),
|
|
4050
|
+
) }), fl = (e, t, r, i) => /* @__PURE__ */ n(Ja, { ooui: r, value: e });
|
|
4050
4051
|
function pn(e) {
|
|
4051
4052
|
var Y;
|
|
4052
4053
|
const {
|
|
@@ -4076,25 +4077,25 @@ function pn(e) {
|
|
|
4076
4077
|
), { title: j = void 0, setTitle: M = void 0 } = (T ? L : {}) || {};
|
|
4077
4078
|
me(() => {
|
|
4078
4079
|
C.current = Rt(o);
|
|
4079
|
-
const _ =
|
|
4080
|
+
const _ = Ms(
|
|
4080
4081
|
C.current,
|
|
4081
4082
|
{
|
|
4082
|
-
boolean:
|
|
4083
|
-
many2one:
|
|
4084
|
-
text:
|
|
4083
|
+
boolean: tl,
|
|
4084
|
+
many2one: nl,
|
|
4085
|
+
text: rl,
|
|
4085
4086
|
one2many: xr,
|
|
4086
4087
|
many2many: xr,
|
|
4087
|
-
progressbar:
|
|
4088
|
-
float_time:
|
|
4089
|
-
image:
|
|
4088
|
+
progressbar: sl,
|
|
4089
|
+
float_time: al,
|
|
4090
|
+
image: ll,
|
|
4090
4091
|
integer: Sr,
|
|
4091
4092
|
float: Sr,
|
|
4092
|
-
reference:
|
|
4093
|
-
tag:
|
|
4094
|
-
selection:
|
|
4095
|
-
date:
|
|
4096
|
-
datetime:
|
|
4097
|
-
avatar:
|
|
4093
|
+
reference: ul,
|
|
4094
|
+
tag: cl,
|
|
4095
|
+
selection: dl,
|
|
4096
|
+
date: ol,
|
|
4097
|
+
datetime: il,
|
|
4098
|
+
avatar: fl
|
|
4098
4099
|
},
|
|
4099
4100
|
F
|
|
4100
4101
|
);
|
|
@@ -4123,7 +4124,7 @@ function pn(e) {
|
|
|
4123
4124
|
}
|
|
4124
4125
|
) }),
|
|
4125
4126
|
O && /* @__PURE__ */ n(ae, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
|
|
4126
|
-
|
|
4127
|
+
el,
|
|
4127
4128
|
{
|
|
4128
4129
|
numberOfVisibleSelectedRows: _,
|
|
4129
4130
|
numberOfRealSelectedRows: ((N = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : N.length) || 0,
|
|
@@ -4148,7 +4149,7 @@ function pn(e) {
|
|
|
4148
4149
|
}
|
|
4149
4150
|
let J, le = f;
|
|
4150
4151
|
if (C.current !== null) {
|
|
4151
|
-
J =
|
|
4152
|
+
J = ja(x, R, 600);
|
|
4152
4153
|
const N = C.current;
|
|
4153
4154
|
f && N.columns.some((ee) => ee.sum !== void 0) && (le = f - 30);
|
|
4154
4155
|
}
|
|
@@ -4166,7 +4167,7 @@ function pn(e) {
|
|
|
4166
4167
|
if (m[_.id])
|
|
4167
4168
|
return { color: m[_.id] };
|
|
4168
4169
|
},
|
|
4169
|
-
onRowStatus:
|
|
4170
|
+
onRowStatus: Ns(p) ? (_) => {
|
|
4170
4171
|
if (p[_.id])
|
|
4171
4172
|
return /* @__PURE__ */ n(Qo, { color: p[_.id] });
|
|
4172
4173
|
} : void 0,
|
|
@@ -4188,7 +4189,7 @@ function pn(e) {
|
|
|
4188
4189
|
ne()
|
|
4189
4190
|
] });
|
|
4190
4191
|
}
|
|
4191
|
-
function
|
|
4192
|
+
function ml(e, t) {
|
|
4192
4193
|
const {
|
|
4193
4194
|
model: r,
|
|
4194
4195
|
formView: i,
|
|
@@ -4400,7 +4401,7 @@ function fl(e, t) {
|
|
|
4400
4401
|
] }), qe = x || ye;
|
|
4401
4402
|
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() });
|
|
4402
4403
|
}
|
|
4403
|
-
const wo = wt(
|
|
4404
|
+
const wo = wt(ml), bo = (e) => {
|
|
4404
4405
|
const {
|
|
4405
4406
|
visible: t,
|
|
4406
4407
|
onCloseModal: r,
|
|
@@ -4494,14 +4495,14 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4494
4495
|
}
|
|
4495
4496
|
)
|
|
4496
4497
|
] });
|
|
4497
|
-
}, { error:
|
|
4498
|
-
|
|
4498
|
+
}, { error: hl } = Je, on = (e) => {
|
|
4499
|
+
hl({
|
|
4499
4500
|
title: "Error",
|
|
4500
4501
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
4501
4502
|
centered: !0,
|
|
4502
4503
|
content: e
|
|
4503
4504
|
});
|
|
4504
|
-
}, { defaultAlgorithm:
|
|
4505
|
+
}, { defaultAlgorithm: pl, defaultSeed: gl } = Pe, Co = pl(gl), yl = (e) => {
|
|
4505
4506
|
const { ooui: t } = e, { required: r } = t;
|
|
4506
4507
|
return /* @__PURE__ */ n(ge, { required: r, type: "array", validator: async (o, s) => {
|
|
4507
4508
|
if (!s)
|
|
@@ -4602,7 +4603,7 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4602
4603
|
}
|
|
4603
4604
|
return /* @__PURE__ */ A(be, { gutter: 8, wrap: !1, children: [
|
|
4604
4605
|
/* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
|
|
4605
|
-
o && !a ?
|
|
4606
|
+
o && !a ? vl : it,
|
|
4606
4607
|
{
|
|
4607
4608
|
type: "text",
|
|
4608
4609
|
value: b,
|
|
@@ -4679,13 +4680,13 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4679
4680
|
}
|
|
4680
4681
|
)
|
|
4681
4682
|
] });
|
|
4682
|
-
},
|
|
4683
|
+
}, vl = Mt(it)`
|
|
4683
4684
|
.ant-input {
|
|
4684
4685
|
background-color: ${Co.colorPrimaryBg};
|
|
4685
4686
|
}
|
|
4686
4687
|
`, So = et.createContext(
|
|
4687
4688
|
null
|
|
4688
|
-
),
|
|
4689
|
+
), wl = ({
|
|
4689
4690
|
children: e,
|
|
4690
4691
|
initialView: t
|
|
4691
4692
|
}) => {
|
|
@@ -4704,7 +4705,7 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4704
4705
|
children: e
|
|
4705
4706
|
}
|
|
4706
4707
|
);
|
|
4707
|
-
}, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30,
|
|
4708
|
+
}, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30, bl = (e) => {
|
|
4708
4709
|
const {
|
|
4709
4710
|
model: t,
|
|
4710
4711
|
domain: r,
|
|
@@ -4822,7 +4823,7 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4822
4823
|
O((K = B.bounds) == null ? void 0 : K.height), k((V = B.bounds) == null ? void 0 : V.width);
|
|
4823
4824
|
},
|
|
4824
4825
|
children: ({ measureRef: B }) => a ? /* @__PURE__ */ n(
|
|
4825
|
-
|
|
4826
|
+
xl,
|
|
4826
4827
|
{
|
|
4827
4828
|
value: h,
|
|
4828
4829
|
total: T,
|
|
@@ -4835,7 +4836,7 @@ const wo = wt(fl), bo = (e) => {
|
|
|
4835
4836
|
suffix: d
|
|
4836
4837
|
}
|
|
4837
4838
|
) : /* @__PURE__ */ n(
|
|
4838
|
-
|
|
4839
|
+
Cl,
|
|
4839
4840
|
{
|
|
4840
4841
|
value: h,
|
|
4841
4842
|
total: T,
|
|
@@ -4854,7 +4855,7 @@ function To(e, t) {
|
|
|
4854
4855
|
const i = document.createElement("canvas").getContext("2d");
|
|
4855
4856
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
4856
4857
|
}
|
|
4857
|
-
function
|
|
4858
|
+
function Cl({
|
|
4858
4859
|
measureRef: e,
|
|
4859
4860
|
width: t,
|
|
4860
4861
|
height: r,
|
|
@@ -4895,7 +4896,7 @@ function bl({
|
|
|
4895
4896
|
}
|
|
4896
4897
|
);
|
|
4897
4898
|
}
|
|
4898
|
-
function
|
|
4899
|
+
function xl({
|
|
4899
4900
|
measureRef: e,
|
|
4900
4901
|
height: t,
|
|
4901
4902
|
width: r,
|
|
@@ -4965,22 +4966,22 @@ const In = (e) => (t) => {
|
|
|
4965
4966
|
});
|
|
4966
4967
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
4967
4968
|
}, Qt = (e) => {
|
|
4968
|
-
if (typeof e == "string" &&
|
|
4969
|
+
if (typeof e == "string" && Sl(e))
|
|
4969
4970
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
4970
4971
|
useGrouping: !0
|
|
4971
4972
|
});
|
|
4972
|
-
if (
|
|
4973
|
+
if (Tl(e))
|
|
4973
4974
|
return e.toLocaleString("es-ES", {
|
|
4974
4975
|
useGrouping: !0
|
|
4975
4976
|
});
|
|
4976
|
-
if (
|
|
4977
|
-
const t =
|
|
4977
|
+
if (Il(e)) {
|
|
4978
|
+
const t = Fl(e);
|
|
4978
4979
|
return t === null ? e : nt(e, ln.input[t]).format(
|
|
4979
4980
|
ln.output[t]
|
|
4980
4981
|
);
|
|
4981
4982
|
} else
|
|
4982
4983
|
return e;
|
|
4983
|
-
},
|
|
4984
|
+
}, Sl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Tl = (e) => typeof e == "number" && !isNaN(e), Ir = {
|
|
4984
4985
|
default: {
|
|
4985
4986
|
padding: "auto",
|
|
4986
4987
|
xAxis: {
|
|
@@ -5062,7 +5063,7 @@ const In = (e) => (t) => {
|
|
|
5062
5063
|
}
|
|
5063
5064
|
}
|
|
5064
5065
|
};
|
|
5065
|
-
function
|
|
5066
|
+
function Il(e) {
|
|
5066
5067
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
5067
5068
|
}
|
|
5068
5069
|
const ln = {
|
|
@@ -5081,7 +5082,7 @@ const ln = {
|
|
|
5081
5082
|
years: "YYYY"
|
|
5082
5083
|
}
|
|
5083
5084
|
};
|
|
5084
|
-
function
|
|
5085
|
+
function Fl(e) {
|
|
5085
5086
|
for (const t in ln.input)
|
|
5086
5087
|
if (nt(
|
|
5087
5088
|
e,
|
|
@@ -5091,7 +5092,7 @@ function Il(e) {
|
|
|
5091
5092
|
return t;
|
|
5092
5093
|
return null;
|
|
5093
5094
|
}
|
|
5094
|
-
const { processGraphData:
|
|
5095
|
+
const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e) => {
|
|
5095
5096
|
const {
|
|
5096
5097
|
model: t,
|
|
5097
5098
|
domain: r = [],
|
|
@@ -5106,10 +5107,10 @@ const { processGraphData: Fl } = Lr, { getFieldsToRetrieve: Ol } = li, Rl = (e)
|
|
|
5106
5107
|
u(!0), f(void 0);
|
|
5107
5108
|
const T = Bn(o);
|
|
5108
5109
|
v(T.type || "line");
|
|
5109
|
-
const F =
|
|
5110
|
+
const F = Rl({ ooui: T });
|
|
5110
5111
|
let b, O;
|
|
5111
5112
|
try {
|
|
5112
|
-
({ values: b, fields: O } = await
|
|
5113
|
+
({ values: b, fields: O } = await Al({
|
|
5113
5114
|
model: t,
|
|
5114
5115
|
domain: r,
|
|
5115
5116
|
context: i,
|
|
@@ -5128,7 +5129,7 @@ const { processGraphData: Fl } = Lr, { getFieldsToRetrieve: Ol } = li, Rl = (e)
|
|
|
5128
5129
|
return;
|
|
5129
5130
|
}
|
|
5130
5131
|
g(b);
|
|
5131
|
-
const R =
|
|
5132
|
+
const R = Ol({
|
|
5132
5133
|
ooui: T,
|
|
5133
5134
|
values: b,
|
|
5134
5135
|
fields: O,
|
|
@@ -5151,7 +5152,7 @@ const { processGraphData: Fl } = Lr, { getFieldsToRetrieve: Ol } = li, Rl = (e)
|
|
|
5151
5152
|
evaluatedEntries: h
|
|
5152
5153
|
};
|
|
5153
5154
|
};
|
|
5154
|
-
async function
|
|
5155
|
+
async function Vl({
|
|
5155
5156
|
model: e,
|
|
5156
5157
|
context: t,
|
|
5157
5158
|
fields: r
|
|
@@ -5162,7 +5163,7 @@ async function _l({
|
|
|
5162
5163
|
fields: r
|
|
5163
5164
|
});
|
|
5164
5165
|
}
|
|
5165
|
-
async function
|
|
5166
|
+
async function Al({
|
|
5166
5167
|
fields: e,
|
|
5167
5168
|
model: t,
|
|
5168
5169
|
domain: r,
|
|
@@ -5171,7 +5172,7 @@ async function Vl({
|
|
|
5171
5172
|
limit: s,
|
|
5172
5173
|
manualIds: a
|
|
5173
5174
|
}) {
|
|
5174
|
-
const l = await
|
|
5175
|
+
const l = await Vl({ model: t, context: i, fields: e });
|
|
5175
5176
|
if (a) {
|
|
5176
5177
|
let u = await E.getHandler().readObjects({
|
|
5177
5178
|
model: t,
|
|
@@ -5196,13 +5197,13 @@ async function Vl({
|
|
|
5196
5197
|
fields: l
|
|
5197
5198
|
};
|
|
5198
5199
|
}
|
|
5199
|
-
const
|
|
5200
|
+
const Dl = {
|
|
5200
5201
|
line: Ii,
|
|
5201
5202
|
bar: Fi,
|
|
5202
5203
|
pie: Oi
|
|
5203
|
-
},
|
|
5204
|
+
}, kl = (e) => {
|
|
5204
5205
|
var v;
|
|
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 } =
|
|
5206
|
+
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 } = _l({
|
|
5206
5207
|
model: t,
|
|
5207
5208
|
xml: o,
|
|
5208
5209
|
limit: s,
|
|
@@ -5217,7 +5218,7 @@ const Al = {
|
|
|
5217
5218
|
return /* @__PURE__ */ n(Ae, {});
|
|
5218
5219
|
if (!c)
|
|
5219
5220
|
return /* @__PURE__ */ n(tt, { message: "No data to display", type: "info" });
|
|
5220
|
-
const { data: p, isGroup: h, isStack: g } = c, y =
|
|
5221
|
+
const { data: p, isGroup: h, isStack: g } = c, y = Dl[f];
|
|
5221
5222
|
return y ? /* @__PURE__ */ A("div", { style: { padding: "1rem" }, children: [
|
|
5222
5223
|
/* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString(
|
|
5223
5224
|
"es-ES",
|
|
@@ -5228,7 +5229,7 @@ const Al = {
|
|
|
5228
5229
|
/* @__PURE__ */ n(
|
|
5229
5230
|
y,
|
|
5230
5231
|
{
|
|
5231
|
-
...
|
|
5232
|
+
...El({
|
|
5232
5233
|
type: f,
|
|
5233
5234
|
data: p,
|
|
5234
5235
|
isGroup: h,
|
|
@@ -5238,12 +5239,12 @@ const Al = {
|
|
|
5238
5239
|
)
|
|
5239
5240
|
] }) : /* @__PURE__ */ n(Z, { children: `Unknown graph type: ${f}` });
|
|
5240
5241
|
};
|
|
5241
|
-
function
|
|
5242
|
+
function El(e) {
|
|
5242
5243
|
const { type: t, data: r, isGroup: i, isStack: o } = e;
|
|
5243
5244
|
let s = Ir[t];
|
|
5244
5245
|
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;
|
|
5245
5246
|
}
|
|
5246
|
-
const
|
|
5247
|
+
const Ml = (e, t) => {
|
|
5247
5248
|
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(
|
|
5248
5249
|
st
|
|
5249
5250
|
), { setGraphIsLoading: g = void 0 } = h || {};
|
|
@@ -5296,7 +5297,7 @@ const El = (e, t) => {
|
|
|
5296
5297
|
operator: v.operator
|
|
5297
5298
|
} : {};
|
|
5298
5299
|
return /* @__PURE__ */ n(
|
|
5299
|
-
|
|
5300
|
+
bl,
|
|
5300
5301
|
{
|
|
5301
5302
|
showPercent: v.showPercent,
|
|
5302
5303
|
totalDomain: v.totalDomain,
|
|
@@ -5315,7 +5316,7 @@ const El = (e, t) => {
|
|
|
5315
5316
|
case "bar":
|
|
5316
5317
|
case "pie":
|
|
5317
5318
|
return /* @__PURE__ */ n(
|
|
5318
|
-
|
|
5319
|
+
kl,
|
|
5319
5320
|
{
|
|
5320
5321
|
model: i,
|
|
5321
5322
|
context: o,
|
|
@@ -5328,8 +5329,8 @@ const El = (e, t) => {
|
|
|
5328
5329
|
default:
|
|
5329
5330
|
return /* @__PURE__ */ n(Z, { children: `Graph ${c.type} not implemented` });
|
|
5330
5331
|
}
|
|
5331
|
-
}, gn = wt(
|
|
5332
|
-
|
|
5332
|
+
}, gn = wt(Ml), { confirm: Nl } = Je, Pl = ({ onOk: e, lang: t }) => {
|
|
5333
|
+
Nl({
|
|
5333
5334
|
title: Fe("removeItems", t),
|
|
5334
5335
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5335
5336
|
centered: !0,
|
|
@@ -5338,8 +5339,8 @@ const El = (e, t) => {
|
|
|
5338
5339
|
onOk: e,
|
|
5339
5340
|
cancelText: Fe("cancel", t)
|
|
5340
5341
|
});
|
|
5341
|
-
}, { confirm:
|
|
5342
|
-
|
|
5342
|
+
}, { confirm: Ll } = Je, Bl = ({ onOk: e, lang: t }) => {
|
|
5343
|
+
Ll({
|
|
5343
5344
|
title: Fe("unlinkItems", t),
|
|
5344
5345
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
5345
5346
|
centered: !0,
|
|
@@ -5348,7 +5349,7 @@ const El = (e, t) => {
|
|
|
5348
5349
|
onOk: e,
|
|
5349
5350
|
cancelText: Fe("cancel", t)
|
|
5350
5351
|
});
|
|
5351
|
-
}, { useToken:
|
|
5352
|
+
}, { useToken: $l } = Pe, Hl = (e) => {
|
|
5352
5353
|
const {
|
|
5353
5354
|
title: t,
|
|
5354
5355
|
readOnly: r,
|
|
@@ -5365,7 +5366,7 @@ const El = (e, t) => {
|
|
|
5365
5366
|
selectedRowKeys: p,
|
|
5366
5367
|
showCreateButton: h,
|
|
5367
5368
|
showToggleButton: g
|
|
5368
|
-
} = e, { token: y } =
|
|
5369
|
+
} = e, { token: y } = $l();
|
|
5369
5370
|
function v() {
|
|
5370
5371
|
return /* @__PURE__ */ n("div", { className: "inline-block w-3" });
|
|
5371
5372
|
}
|
|
@@ -5460,19 +5461,19 @@ const El = (e, t) => {
|
|
|
5460
5461
|
)
|
|
5461
5462
|
] })
|
|
5462
5463
|
] });
|
|
5463
|
-
},
|
|
5464
|
+
}, Kl = {
|
|
5464
5465
|
form: Nr,
|
|
5465
5466
|
tree: Er,
|
|
5466
5467
|
graph: gn
|
|
5467
5468
|
};
|
|
5468
|
-
function
|
|
5469
|
+
function Wl(e) {
|
|
5469
5470
|
const t = e.map((i) => i.id);
|
|
5470
5471
|
return e.filter((i, o) => {
|
|
5471
5472
|
const { id: s } = i;
|
|
5472
5473
|
return !t.includes(s, o + 1);
|
|
5473
5474
|
});
|
|
5474
5475
|
}
|
|
5475
|
-
const
|
|
5476
|
+
const jl = (e) => {
|
|
5476
5477
|
var We;
|
|
5477
5478
|
const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
|
|
5478
5479
|
So
|
|
@@ -5501,7 +5502,7 @@ const Wl = (e) => {
|
|
|
5501
5502
|
var ie, Se;
|
|
5502
5503
|
r == null || r({
|
|
5503
5504
|
fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
|
|
5504
|
-
items:
|
|
5505
|
+
items: Wl(q)
|
|
5505
5506
|
});
|
|
5506
5507
|
}, Ye = async () => {
|
|
5507
5508
|
await ke(), d > X.length - 1 && d !== 0 && u(0);
|
|
@@ -5586,7 +5587,7 @@ const Wl = (e) => {
|
|
|
5586
5587
|
}) : q();
|
|
5587
5588
|
}, Me = () => {
|
|
5588
5589
|
if (ce) {
|
|
5589
|
-
|
|
5590
|
+
Bl({
|
|
5590
5591
|
lang: y,
|
|
5591
5592
|
onOk: () => {
|
|
5592
5593
|
a === "form" ? ve() : Ve();
|
|
@@ -5594,7 +5595,7 @@ const Wl = (e) => {
|
|
|
5594
5595
|
});
|
|
5595
5596
|
return;
|
|
5596
5597
|
}
|
|
5597
|
-
|
|
5598
|
+
Pl({
|
|
5598
5599
|
lang: y,
|
|
5599
5600
|
onOk: () => {
|
|
5600
5601
|
a === "form" ? ve() : Ve();
|
|
@@ -5657,7 +5658,7 @@ const Wl = (e) => {
|
|
|
5657
5658
|
treeValues: { ...Se, id: q }
|
|
5658
5659
|
} : Re);
|
|
5659
5660
|
else {
|
|
5660
|
-
const Re =
|
|
5661
|
+
const Re = Ps(s);
|
|
5661
5662
|
Te = s.concat({
|
|
5662
5663
|
id: Re,
|
|
5663
5664
|
operation: "pendingCreate",
|
|
@@ -5702,7 +5703,7 @@ const Wl = (e) => {
|
|
|
5702
5703
|
}
|
|
5703
5704
|
};
|
|
5704
5705
|
function $e() {
|
|
5705
|
-
const q =
|
|
5706
|
+
const q = Kl[a];
|
|
5706
5707
|
if (a === "graph")
|
|
5707
5708
|
return Bn(o.get("graph").arch).string;
|
|
5708
5709
|
{
|
|
@@ -5784,7 +5785,7 @@ const Wl = (e) => {
|
|
|
5784
5785
|
const Qe = M;
|
|
5785
5786
|
return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ A(Z, { children: [
|
|
5786
5787
|
/* @__PURE__ */ n(
|
|
5787
|
-
|
|
5788
|
+
Hl,
|
|
5788
5789
|
{
|
|
5789
5790
|
mode: a,
|
|
5790
5791
|
title: $e(),
|
|
@@ -5840,7 +5841,7 @@ const Wl = (e) => {
|
|
|
5840
5841
|
}
|
|
5841
5842
|
)
|
|
5842
5843
|
] });
|
|
5843
|
-
},
|
|
5844
|
+
}, Yl = (e) => {
|
|
5844
5845
|
const { ooui: t } = e, { mode: r, relation: i, views: o, required: s, context: a } = t;
|
|
5845
5846
|
let l;
|
|
5846
5847
|
const [d, u] = w(!0), [c, f] = w(), [m, p] = w(/* @__PURE__ */ new Map()), h = H(Ne), { getContext: g } = h || {};
|
|
@@ -5870,7 +5871,7 @@ const Wl = (e) => {
|
|
|
5870
5871
|
u(!1);
|
|
5871
5872
|
}
|
|
5872
5873
|
};
|
|
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(
|
|
5874
|
+
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(wl, { initialView: l, children: /* @__PURE__ */ n(
|
|
5874
5875
|
ge,
|
|
5875
5876
|
{
|
|
5876
5877
|
required: s,
|
|
@@ -5886,14 +5887,14 @@ const Wl = (e) => {
|
|
|
5886
5887
|
throw new Error();
|
|
5887
5888
|
},
|
|
5888
5889
|
...e,
|
|
5889
|
-
children: /* @__PURE__ */ n(
|
|
5890
|
+
children: /* @__PURE__ */ n(jl, { ooui: t, views: m })
|
|
5890
5891
|
}
|
|
5891
5892
|
) });
|
|
5892
|
-
}, { useToken:
|
|
5893
|
+
}, { useToken: Gl } = Pe, Ul = (e) => {
|
|
5893
5894
|
const { ooui: t } = e, { required: r } = t;
|
|
5894
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(
|
|
5895
|
-
},
|
|
5896
|
-
const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } =
|
|
5895
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(ql, { ooui: t }) });
|
|
5896
|
+
}, ql = (e) => {
|
|
5897
|
+
const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Gl(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = w(), m = H(Ne), { elementHasLostFocus: p } = m || {};
|
|
5897
5898
|
me(() => {
|
|
5898
5899
|
f(go(r));
|
|
5899
5900
|
}, [r]);
|
|
@@ -5904,7 +5905,7 @@ const Wl = (e) => {
|
|
|
5904
5905
|
u.current = v.target.value, f(v.target.value);
|
|
5905
5906
|
}
|
|
5906
5907
|
async function y() {
|
|
5907
|
-
h(
|
|
5908
|
+
h(Ya(c)), await new Promise((v) => setTimeout(v, 300)), p == null || p();
|
|
5908
5909
|
}
|
|
5909
5910
|
return /* @__PURE__ */ n(
|
|
5910
5911
|
it,
|
|
@@ -5936,8 +5937,8 @@ function Io(e) {
|
|
|
5936
5937
|
}
|
|
5937
5938
|
) });
|
|
5938
5939
|
}
|
|
5939
|
-
const { TabPane:
|
|
5940
|
-
function
|
|
5940
|
+
const { TabPane: zl } = kr;
|
|
5941
|
+
function Jl(e) {
|
|
5941
5942
|
const { ooui: t, responsiveBehaviour: r } = e, i = t.pages;
|
|
5942
5943
|
function o(s) {
|
|
5943
5944
|
if (s) {
|
|
@@ -5946,7 +5947,7 @@ function zl(e) {
|
|
|
5946
5947
|
}
|
|
5947
5948
|
}
|
|
5948
5949
|
return /* @__PURE__ */ n(kr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
5949
|
-
|
|
5950
|
+
zl,
|
|
5950
5951
|
{
|
|
5951
5952
|
tab: /* @__PURE__ */ A(Z, { children: [
|
|
5952
5953
|
o(s.icon),
|
|
@@ -5965,10 +5966,10 @@ function zl(e) {
|
|
|
5965
5966
|
s.label
|
|
5966
5967
|
)) });
|
|
5967
5968
|
}
|
|
5968
|
-
const { useToken:
|
|
5969
|
-
const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } =
|
|
5969
|
+
const { useToken: Xl } = Pe, { TextArea: kn } = it, Zl = (e) => {
|
|
5970
|
+
const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = Xl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
|
|
5970
5971
|
return /* @__PURE__ */ n(ge, { required: o, ...e, children: a ? /* @__PURE__ */ n(
|
|
5971
|
-
|
|
5972
|
+
Ql,
|
|
5972
5973
|
{
|
|
5973
5974
|
field: r,
|
|
5974
5975
|
height: s,
|
|
@@ -5986,7 +5987,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
5986
5987
|
onBlur: c
|
|
5987
5988
|
}
|
|
5988
5989
|
) });
|
|
5989
|
-
},
|
|
5990
|
+
}, Ql = ({
|
|
5990
5991
|
value: e,
|
|
5991
5992
|
field: t,
|
|
5992
5993
|
requiredStyle: r,
|
|
@@ -6076,13 +6077,13 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6076
6077
|
}
|
|
6077
6078
|
) })
|
|
6078
6079
|
] });
|
|
6079
|
-
},
|
|
6080
|
+
}, ec = (e) => {
|
|
6080
6081
|
const { ooui: t } = e, { label: r, icon: i } = t, o = ct(i || "");
|
|
6081
6082
|
return /* @__PURE__ */ n(cn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ A(je, { children: [
|
|
6082
6083
|
o ? /* @__PURE__ */ n(o, {}) : null,
|
|
6083
6084
|
r
|
|
6084
6085
|
] }) });
|
|
6085
|
-
},
|
|
6086
|
+
}, tc = ({
|
|
6086
6087
|
model: e,
|
|
6087
6088
|
context: t,
|
|
6088
6089
|
locale: r,
|
|
@@ -6103,7 +6104,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6103
6104
|
]);
|
|
6104
6105
|
const { datas: T } = await E.getHandler().exportData({
|
|
6105
6106
|
model: e,
|
|
6106
|
-
fields:
|
|
6107
|
+
fields: ac({
|
|
6107
6108
|
keys: y.selectedKeys,
|
|
6108
6109
|
fields: l.current
|
|
6109
6110
|
}),
|
|
@@ -6132,7 +6133,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6132
6133
|
fields: []
|
|
6133
6134
|
});
|
|
6134
6135
|
for (const [O, R] of Object.entries(b))
|
|
6135
|
-
b[O].string =
|
|
6136
|
+
b[O].string = rc({
|
|
6136
6137
|
parentTitle: T.string,
|
|
6137
6138
|
title: R.string
|
|
6138
6139
|
});
|
|
@@ -6143,7 +6144,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6143
6144
|
},
|
|
6144
6145
|
[l.current, e, t]
|
|
6145
6146
|
), m = De(async () => {
|
|
6146
|
-
const y = await
|
|
6147
|
+
const y = await oc({ model: e, context: t }), v = await sc({
|
|
6147
6148
|
predefinedExports: y,
|
|
6148
6149
|
fields: l.current,
|
|
6149
6150
|
onGetFieldChilds: f
|
|
@@ -6226,7 +6227,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6226
6227
|
continue;
|
|
6227
6228
|
const s = Fo(o);
|
|
6228
6229
|
r.push({
|
|
6229
|
-
key:
|
|
6230
|
+
key: nc({ key: i, parentKey: t }),
|
|
6230
6231
|
title: o.string,
|
|
6231
6232
|
tooltip: o.help,
|
|
6232
6233
|
required: o.required,
|
|
@@ -6234,7 +6235,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6234
6235
|
});
|
|
6235
6236
|
}
|
|
6236
6237
|
return r;
|
|
6237
|
-
}, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
6238
|
+
}, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", nc = ({
|
|
6238
6239
|
parentKey: e,
|
|
6239
6240
|
key: t
|
|
6240
6241
|
}) => `${e ? e + "/" : ""}${t}`, $t = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), En = (e) => {
|
|
@@ -6242,10 +6243,10 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6242
6243
|
return e;
|
|
6243
6244
|
const t = e.split("/");
|
|
6244
6245
|
return t[t.length - 1];
|
|
6245
|
-
}, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)],
|
|
6246
|
+
}, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)], rc = ({
|
|
6246
6247
|
title: e,
|
|
6247
6248
|
parentTitle: t
|
|
6248
|
-
}) => `${t ? t + " → " : ""}${e}`,
|
|
6249
|
+
}) => `${t ? t + " → " : ""}${e}`, oc = async ({
|
|
6249
6250
|
model: e,
|
|
6250
6251
|
context: t
|
|
6251
6252
|
}) => {
|
|
@@ -6265,10 +6266,10 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6265
6266
|
key: o.find((d) => d.id === a).name
|
|
6266
6267
|
}))
|
|
6267
6268
|
}));
|
|
6268
|
-
},
|
|
6269
|
+
}, ic = ({
|
|
6269
6270
|
fields: e,
|
|
6270
6271
|
keys: t
|
|
6271
|
-
}) =>
|
|
6272
|
+
}) => lc([
|
|
6272
6273
|
...new Set(
|
|
6273
6274
|
t.filter((r) => {
|
|
6274
6275
|
var i, o, s;
|
|
@@ -6282,27 +6283,27 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6282
6283
|
}
|
|
6283
6284
|
}).map((r) => $t(r))
|
|
6284
6285
|
)
|
|
6285
|
-
]),
|
|
6286
|
+
]), sc = async ({
|
|
6286
6287
|
predefinedExports: e,
|
|
6287
6288
|
fields: t,
|
|
6288
6289
|
onGetFieldChilds: r
|
|
6289
6290
|
}) => {
|
|
6290
6291
|
const i = e.flatMap(
|
|
6291
6292
|
(a) => a.fields.map((l) => l.key)
|
|
6292
|
-
), o =
|
|
6293
|
+
), o = ic({
|
|
6293
6294
|
fields: t,
|
|
6294
6295
|
keys: i
|
|
6295
6296
|
}), s = [];
|
|
6296
6297
|
for (const a of o)
|
|
6297
6298
|
s.push({ key: a, childs: await r(a) });
|
|
6298
6299
|
return s;
|
|
6299
|
-
},
|
|
6300
|
+
}, ac = ({
|
|
6300
6301
|
keys: e,
|
|
6301
6302
|
fields: t
|
|
6302
6303
|
}) => e.map((r) => {
|
|
6303
6304
|
const i = En(r), s = Mn(r, t)[i];
|
|
6304
6305
|
return Fo(s) ? `${r}/id` : r;
|
|
6305
|
-
}),
|
|
6306
|
+
}), lc = (e) => {
|
|
6306
6307
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
6307
6308
|
for (const i of e) {
|
|
6308
6309
|
const o = i.split("/");
|
|
@@ -6316,7 +6317,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6316
6317
|
const s = i.split("/").length, a = o.split("/").length;
|
|
6317
6318
|
return s - a;
|
|
6318
6319
|
}), r;
|
|
6319
|
-
},
|
|
6320
|
+
}, cc = (e) => {
|
|
6320
6321
|
const {
|
|
6321
6322
|
visible: t,
|
|
6322
6323
|
locale: r,
|
|
@@ -6335,7 +6336,7 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6335
6336
|
onGetPredefinedExports: h,
|
|
6336
6337
|
onSavePredefinedExport: g,
|
|
6337
6338
|
onRemovePredefinedExport: y
|
|
6338
|
-
} =
|
|
6339
|
+
} = tc({
|
|
6339
6340
|
model: o,
|
|
6340
6341
|
context: s,
|
|
6341
6342
|
domain: d,
|
|
@@ -6361,16 +6362,16 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6361
6362
|
onRemovePredefinedExport: y
|
|
6362
6363
|
}
|
|
6363
6364
|
);
|
|
6364
|
-
},
|
|
6365
|
+
}, dc = (e) => {
|
|
6365
6366
|
const { ooui: t } = e;
|
|
6366
6367
|
return /* @__PURE__ */ n(vo, { ooui: t });
|
|
6367
|
-
},
|
|
6368
|
+
}, uc = (e) => {
|
|
6368
6369
|
const { ooui: t } = e;
|
|
6369
6370
|
return /* @__PURE__ */ n(vo, { ooui: t, showTime: !0 });
|
|
6370
|
-
},
|
|
6371
|
+
}, fc = (e) => {
|
|
6371
6372
|
const { ooui: t } = e;
|
|
6372
|
-
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(
|
|
6373
|
-
},
|
|
6373
|
+
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(mc, { ooui: t }) });
|
|
6374
|
+
}, mc = (e) => /* @__PURE__ */ n(
|
|
6374
6375
|
Vr,
|
|
6375
6376
|
{
|
|
6376
6377
|
onChange: (r, i) => {
|
|
@@ -6378,10 +6379,10 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6378
6379
|
},
|
|
6379
6380
|
value: e.value ? nt(e.value, "HH:mm:ss") : void 0
|
|
6380
6381
|
}
|
|
6381
|
-
),
|
|
6382
|
+
), hc = (e) => {
|
|
6382
6383
|
const { ooui: t } = e, { required: r } = t;
|
|
6383
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
6384
|
-
},
|
|
6384
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(pc, { ooui: t }) });
|
|
6385
|
+
}, pc = (e) => {
|
|
6385
6386
|
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();
|
|
6386
6387
|
return me(() => {
|
|
6387
6388
|
if (!t) {
|
|
@@ -6428,11 +6429,11 @@ const { useToken: Jl } = Pe, { TextArea: kn } = it, Xl = (e) => {
|
|
|
6428
6429
|
}
|
|
6429
6430
|
) })
|
|
6430
6431
|
] });
|
|
6431
|
-
}, { useToken:
|
|
6432
|
+
}, { useToken: gc } = Pe, yc = (e) => {
|
|
6432
6433
|
const { ooui: t } = e, { required: r } = t;
|
|
6433
|
-
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
6434
|
-
},
|
|
6435
|
-
const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } =
|
|
6434
|
+
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(vc, { ooui: t }) });
|
|
6435
|
+
}, vc = (e) => {
|
|
6436
|
+
const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = gc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), p = r ? Vs(r) : "", h = (F) => {
|
|
6436
6437
|
i == null || i(F);
|
|
6437
6438
|
};
|
|
6438
6439
|
async function g() {
|
|
@@ -6597,7 +6598,7 @@ function Qn(e) {
|
|
|
6597
6598
|
)
|
|
6598
6599
|
] });
|
|
6599
6600
|
}
|
|
6600
|
-
const { Search:
|
|
6601
|
+
const { Search: wc } = it;
|
|
6601
6602
|
function Vt(e) {
|
|
6602
6603
|
const {
|
|
6603
6604
|
icon: t,
|
|
@@ -6625,7 +6626,7 @@ function Vt(e) {
|
|
|
6625
6626
|
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;
|
|
6626
6627
|
return /* @__PURE__ */ A(He, { onClick: m, children: [
|
|
6627
6628
|
g && /* @__PURE__ */ n(
|
|
6628
|
-
|
|
6629
|
+
wc,
|
|
6629
6630
|
{
|
|
6630
6631
|
onChange: (y) => c(y.target.value),
|
|
6631
6632
|
onSearch: c,
|
|
@@ -6704,12 +6705,12 @@ function Oo(e) {
|
|
|
6704
6705
|
}
|
|
6705
6706
|
);
|
|
6706
6707
|
}
|
|
6707
|
-
const { confirm:
|
|
6708
|
+
const { confirm: bc } = Je, Cc = ({
|
|
6708
6709
|
onOk: e,
|
|
6709
6710
|
onCancel: t,
|
|
6710
6711
|
lang: r
|
|
6711
6712
|
}) => {
|
|
6712
|
-
|
|
6713
|
+
bc({
|
|
6713
6714
|
title: Fe("unsavedChanges", r),
|
|
6714
6715
|
icon: /* @__PURE__ */ n(pt, {}),
|
|
6715
6716
|
centered: !0,
|
|
@@ -6743,7 +6744,7 @@ async function Ro(e, t, r) {
|
|
|
6743
6744
|
] })
|
|
6744
6745
|
);
|
|
6745
6746
|
}
|
|
6746
|
-
const
|
|
6747
|
+
const xc = (e) => {
|
|
6747
6748
|
const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = w(!1), l = /* @__PURE__ */ A(Oe, { disabled: r, children: [
|
|
6748
6749
|
/* @__PURE__ */ n(qr, {}),
|
|
6749
6750
|
`(${t})`,
|
|
@@ -6755,13 +6756,13 @@ const Cc = (e) => {
|
|
|
6755
6756
|
onVisibleChange: (d) => a(d),
|
|
6756
6757
|
visible: s,
|
|
6757
6758
|
placement: "bottom",
|
|
6758
|
-
content:
|
|
6759
|
+
content: Sc(e, a, o),
|
|
6759
6760
|
title: i("attachments"),
|
|
6760
6761
|
arrowContent: null,
|
|
6761
6762
|
children: l
|
|
6762
6763
|
}
|
|
6763
6764
|
);
|
|
6764
|
-
},
|
|
6765
|
+
}, Sc = (e, t, r) => {
|
|
6765
6766
|
const {
|
|
6766
6767
|
attachments: i = [],
|
|
6767
6768
|
loading: o,
|
|
@@ -6845,7 +6846,7 @@ const Cc = (e) => {
|
|
|
6845
6846
|
] })
|
|
6846
6847
|
] });
|
|
6847
6848
|
};
|
|
6848
|
-
function
|
|
6849
|
+
function Tc(e) {
|
|
6849
6850
|
const {
|
|
6850
6851
|
attachments: t,
|
|
6851
6852
|
disabled: r = !1,
|
|
@@ -6902,7 +6903,7 @@ function Sc(e) {
|
|
|
6902
6903
|
h();
|
|
6903
6904
|
}, [h]), /* @__PURE__ */ A(Z, { children: [
|
|
6904
6905
|
/* @__PURE__ */ n(
|
|
6905
|
-
|
|
6906
|
+
xc,
|
|
6906
6907
|
{
|
|
6907
6908
|
numberOfAttachments: t.length,
|
|
6908
6909
|
attachments: u,
|
|
@@ -6928,7 +6929,7 @@ function Sc(e) {
|
|
|
6928
6929
|
)
|
|
6929
6930
|
] });
|
|
6930
6931
|
}
|
|
6931
|
-
function
|
|
6932
|
+
function Ic({ toolbar: e }) {
|
|
6932
6933
|
const {
|
|
6933
6934
|
availableViews: t,
|
|
6934
6935
|
currentView: r,
|
|
@@ -6961,7 +6962,7 @@ function Tc({ toolbar: e }) {
|
|
|
6961
6962
|
), { openRelate: L, openDefaultActionForModel: j } = P || {};
|
|
6962
6963
|
function M(_) {
|
|
6963
6964
|
if (s) {
|
|
6964
|
-
|
|
6965
|
+
Cc({
|
|
6965
6966
|
lang: I,
|
|
6966
6967
|
onOk: () => {
|
|
6967
6968
|
_();
|
|
@@ -7211,7 +7212,7 @@ function Tc({ toolbar: e }) {
|
|
|
7211
7212
|
}
|
|
7212
7213
|
),
|
|
7213
7214
|
/* @__PURE__ */ n(
|
|
7214
|
-
|
|
7215
|
+
Tc,
|
|
7215
7216
|
{
|
|
7216
7217
|
disabled: le,
|
|
7217
7218
|
attachments: F,
|
|
@@ -7277,8 +7278,8 @@ function Rr(e, t) {
|
|
|
7277
7278
|
}
|
|
7278
7279
|
};
|
|
7279
7280
|
}
|
|
7280
|
-
const { useToken:
|
|
7281
|
-
const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } =
|
|
7281
|
+
const { useToken: Fc } = Pe, _o = (e) => {
|
|
7282
|
+
const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Fc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [p, h] = w(!1), [g, y] = w(!1);
|
|
7282
7283
|
me(() => {
|
|
7283
7284
|
l && !p && y(!1), !r && !l && (h(!0), y(!0));
|
|
7284
7285
|
}, [p, l]);
|
|
@@ -7333,7 +7334,7 @@ const { useToken: Ic } = Pe, _o = (e) => {
|
|
|
7333
7334
|
}
|
|
7334
7335
|
) })
|
|
7335
7336
|
] });
|
|
7336
|
-
},
|
|
7337
|
+
}, Oc = (e) => {
|
|
7337
7338
|
const { ooui: t } = e, { required: r } = t;
|
|
7338
7339
|
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
7339
7340
|
_o,
|
|
@@ -7342,7 +7343,7 @@ const { useToken: Ic } = Pe, _o = (e) => {
|
|
|
7342
7343
|
valueValidator: (i) => i ? ji(i) : !1
|
|
7343
7344
|
}
|
|
7344
7345
|
) });
|
|
7345
|
-
},
|
|
7346
|
+
}, Rc = (e) => {
|
|
7346
7347
|
const { ooui: t } = e, { required: r } = t;
|
|
7347
7348
|
return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
|
|
7348
7349
|
_o,
|
|
@@ -7352,7 +7353,7 @@ const { useToken: Ic } = Pe, _o = (e) => {
|
|
|
7352
7353
|
valueValidator: (i) => i ? Yi(i) : !1
|
|
7353
7354
|
}
|
|
7354
7355
|
) });
|
|
7355
|
-
},
|
|
7356
|
+
}, _c = (e) => {
|
|
7356
7357
|
const { visible: t, onIdSubmitted: r, onCancel: i, isSearching: o } = e, { t: s } = H(he), a = de();
|
|
7357
7358
|
function l(d) {
|
|
7358
7359
|
const u = d.id.split(",").map((c) => parseInt(c.trim()));
|
|
@@ -7414,9 +7415,9 @@ const { useToken: Ic } = Pe, _o = (e) => {
|
|
|
7414
7415
|
] })
|
|
7415
7416
|
}
|
|
7416
7417
|
);
|
|
7417
|
-
}, { useToken:
|
|
7418
|
+
}, { useToken: Vc } = Pe;
|
|
7418
7419
|
function Vo(e) {
|
|
7419
|
-
const { badgeNumber: t = 0, ...r } = e, { token: i } =
|
|
7420
|
+
const { badgeNumber: t = 0, ...r } = e, { token: i } = Vc();
|
|
7420
7421
|
return /* @__PURE__ */ A("div", { style: { position: "relative" }, children: [
|
|
7421
7422
|
t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
|
|
7422
7423
|
"span",
|
|
@@ -7443,7 +7444,7 @@ function Vo(e) {
|
|
|
7443
7444
|
)
|
|
7444
7445
|
] });
|
|
7445
7446
|
}
|
|
7446
|
-
function
|
|
7447
|
+
function Ac({ refreshGraph: e }) {
|
|
7447
7448
|
const { t } = H(he), {
|
|
7448
7449
|
availableViews: r,
|
|
7449
7450
|
currentView: i,
|
|
@@ -7500,7 +7501,7 @@ function Vc({ refreshGraph: e }) {
|
|
|
7500
7501
|
)
|
|
7501
7502
|
] });
|
|
7502
7503
|
}
|
|
7503
|
-
const { useToken:
|
|
7504
|
+
const { useToken: Dc } = Pe, { Title: kc, Text: en } = Yt;
|
|
7504
7505
|
function yn(e) {
|
|
7505
7506
|
const { title: t, children: r } = e, {
|
|
7506
7507
|
title: i,
|
|
@@ -7510,7 +7511,7 @@ function yn(e) {
|
|
|
7510
7511
|
results: l,
|
|
7511
7512
|
totalItems: d,
|
|
7512
7513
|
selectedRowItems: u
|
|
7513
|
-
} = H(st), { t: c } = H(he), { token: f } =
|
|
7514
|
+
} = H(st), { t: c } = H(he), { token: f } = Dc();
|
|
7514
7515
|
function m() {
|
|
7515
7516
|
if ((o == null ? void 0 : o.type) === "form")
|
|
7516
7517
|
return s ? d === 0 ? /* @__PURE__ */ A(Z, { children: [
|
|
@@ -7583,7 +7584,7 @@ function yn(e) {
|
|
|
7583
7584
|
align: "middle",
|
|
7584
7585
|
children: [
|
|
7585
7586
|
/* @__PURE__ */ A(ae, { flex: 2, children: [
|
|
7586
|
-
/* @__PURE__ */ n(
|
|
7587
|
+
/* @__PURE__ */ n(kc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
|
|
7587
7588
|
m()
|
|
7588
7589
|
] }),
|
|
7589
7590
|
/* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(be, { justify: "end", children: r }) })
|
|
@@ -7593,7 +7594,7 @@ function yn(e) {
|
|
|
7593
7594
|
/* @__PURE__ */ n("div", { className: "pb-5" })
|
|
7594
7595
|
] });
|
|
7595
7596
|
}
|
|
7596
|
-
const
|
|
7597
|
+
const Ec = (e) => {
|
|
7597
7598
|
const { viewData: t, visible: r, model: i, context: o, domain: s, formView: a, treeView: l } = e, d = de(), u = H(
|
|
7598
7599
|
st
|
|
7599
7600
|
), {
|
|
@@ -7648,7 +7649,7 @@ const kc = (e) => {
|
|
|
7648
7649
|
});
|
|
7649
7650
|
return !r || !t ? null : /* @__PURE__ */ A(Z, { children: [
|
|
7650
7651
|
/* @__PURE__ */ n(yn, { title: t.name, children: /* @__PURE__ */ n(
|
|
7651
|
-
|
|
7652
|
+
Ac,
|
|
7652
7653
|
{
|
|
7653
7654
|
refreshGraph: () => {
|
|
7654
7655
|
d.current.refresh();
|
|
@@ -7689,7 +7690,7 @@ const kc = (e) => {
|
|
|
7689
7690
|
}
|
|
7690
7691
|
)
|
|
7691
7692
|
] });
|
|
7692
|
-
},
|
|
7693
|
+
}, Mc = (e) => {
|
|
7693
7694
|
const {
|
|
7694
7695
|
visible: t,
|
|
7695
7696
|
formRef: r,
|
|
@@ -7705,7 +7706,7 @@ const kc = (e) => {
|
|
|
7705
7706
|
setCurrentItemIndex: m
|
|
7706
7707
|
} = e;
|
|
7707
7708
|
return t ? /* @__PURE__ */ A(Z, { children: [
|
|
7708
|
-
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
7709
|
+
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Ic, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
7709
7710
|
/* @__PURE__ */ n(
|
|
7710
7711
|
Jt,
|
|
7711
7712
|
{
|
|
@@ -7725,7 +7726,7 @@ const kc = (e) => {
|
|
|
7725
7726
|
)
|
|
7726
7727
|
] }) : null;
|
|
7727
7728
|
};
|
|
7728
|
-
function
|
|
7729
|
+
function Nc(e) {
|
|
7729
7730
|
const { onSearch: t, disabled: r = !1, searchText: i } = e, { t: o } = H(he), [s] = lt.useForm(), [a, l] = w(!1);
|
|
7730
7731
|
function d(c) {
|
|
7731
7732
|
t(c.search);
|
|
@@ -7766,15 +7767,15 @@ function Mc(e) {
|
|
|
7766
7767
|
) })
|
|
7767
7768
|
] }) });
|
|
7768
7769
|
}
|
|
7769
|
-
const
|
|
7770
|
+
const Pc = et.createContext({
|
|
7770
7771
|
erpFeatures: {}
|
|
7771
7772
|
});
|
|
7772
7773
|
var Ao = /* @__PURE__ */ ((e) => (e.FEATURE_ADVANCED_EXPORT = "export_data2", e))(Ao || {});
|
|
7773
|
-
const
|
|
7774
|
-
const { erpFeatures: t } =
|
|
7774
|
+
const Lc = () => H(Pc), Bc = (e) => {
|
|
7775
|
+
const { erpFeatures: t } = Lc();
|
|
7775
7776
|
return !!t[e];
|
|
7776
7777
|
};
|
|
7777
|
-
function
|
|
7778
|
+
function $c(e) {
|
|
7778
7779
|
var le;
|
|
7779
7780
|
const {
|
|
7780
7781
|
availableViews: t,
|
|
@@ -7800,7 +7801,7 @@ function Bc(e) {
|
|
|
7800
7801
|
results: O,
|
|
7801
7802
|
limit: R,
|
|
7802
7803
|
totalItems: k
|
|
7803
|
-
} = H(st), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C =
|
|
7804
|
+
} = H(st), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C = Bc(
|
|
7804
7805
|
Ao.FEATURE_ADVANCED_EXPORT
|
|
7805
7806
|
), { t: D, lang: P } = H(he), L = H(
|
|
7806
7807
|
Pt
|
|
@@ -7871,7 +7872,7 @@ function Bc(e) {
|
|
|
7871
7872
|
] }),
|
|
7872
7873
|
S ? null : /* @__PURE__ */ A(Z, { children: [
|
|
7873
7874
|
/* @__PURE__ */ n(
|
|
7874
|
-
|
|
7875
|
+
Nc,
|
|
7875
7876
|
{
|
|
7876
7877
|
disabled: l || a || T,
|
|
7877
7878
|
searchText: v,
|
|
@@ -8056,7 +8057,7 @@ function Bc(e) {
|
|
|
8056
8057
|
}
|
|
8057
8058
|
),
|
|
8058
8059
|
/* @__PURE__ */ n(
|
|
8059
|
-
|
|
8060
|
+
cc,
|
|
8060
8061
|
{
|
|
8061
8062
|
visible: M,
|
|
8062
8063
|
locale: P,
|
|
@@ -8079,7 +8080,7 @@ function Bc(e) {
|
|
|
8079
8080
|
function yt() {
|
|
8080
8081
|
return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
|
|
8081
8082
|
}
|
|
8082
|
-
const
|
|
8083
|
+
const Hc = (e) => {
|
|
8083
8084
|
const {
|
|
8084
8085
|
visible: t,
|
|
8085
8086
|
searchTreeRef: r,
|
|
@@ -8099,7 +8100,7 @@ const $c = (e) => {
|
|
|
8099
8100
|
);
|
|
8100
8101
|
return t ? /* @__PURE__ */ A(Z, { children: [
|
|
8101
8102
|
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
8102
|
-
|
|
8103
|
+
$c,
|
|
8103
8104
|
{
|
|
8104
8105
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
8105
8106
|
parentContext: o,
|
|
@@ -8130,7 +8131,7 @@ const $c = (e) => {
|
|
|
8130
8131
|
}
|
|
8131
8132
|
)
|
|
8132
8133
|
] }) : null;
|
|
8133
|
-
}, er = et.createContext(null),
|
|
8134
|
+
}, er = et.createContext(null), Kc = (e) => {
|
|
8134
8135
|
const [t, r] = w(!1), [i, o] = w(!1), { children: s, dashboardRef: a, openAction: l } = e;
|
|
8135
8136
|
return /* @__PURE__ */ n(
|
|
8136
8137
|
er.Provider,
|
|
@@ -8147,7 +8148,7 @@ const $c = (e) => {
|
|
|
8147
8148
|
}
|
|
8148
8149
|
);
|
|
8149
8150
|
};
|
|
8150
|
-
function
|
|
8151
|
+
function Wc() {
|
|
8151
8152
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(er), { t: o } = H(he);
|
|
8152
8153
|
return /* @__PURE__ */ A(je, { wrap: !0, children: [
|
|
8153
8154
|
/* @__PURE__ */ n(
|
|
@@ -8168,7 +8169,7 @@ function Kc() {
|
|
|
8168
8169
|
}
|
|
8169
8170
|
}
|
|
8170
8171
|
),
|
|
8171
|
-
|
|
8172
|
+
jc(),
|
|
8172
8173
|
/* @__PURE__ */ n(
|
|
8173
8174
|
Xe,
|
|
8174
8175
|
{
|
|
@@ -8195,24 +8196,24 @@ function Kc() {
|
|
|
8195
8196
|
)
|
|
8196
8197
|
] });
|
|
8197
8198
|
}
|
|
8198
|
-
function
|
|
8199
|
+
function jc() {
|
|
8199
8200
|
return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
|
|
8200
8201
|
}
|
|
8201
|
-
const
|
|
8202
|
+
const Yc = (e) => {
|
|
8202
8203
|
const { dashboardData: t } = e, r = de(), i = H(
|
|
8203
8204
|
dt
|
|
8204
8205
|
), { openShortcut: o } = i || {};
|
|
8205
8206
|
return t ? /* @__PURE__ */ A(
|
|
8206
|
-
|
|
8207
|
+
Kc,
|
|
8207
8208
|
{
|
|
8208
8209
|
dashboardRef: r,
|
|
8209
8210
|
openAction: (s) => {
|
|
8210
8211
|
o(s);
|
|
8211
8212
|
},
|
|
8212
8213
|
children: [
|
|
8213
|
-
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
|
|
8214
|
+
/* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Wc, {}) }),
|
|
8214
8215
|
/* @__PURE__ */ n(
|
|
8215
|
-
|
|
8216
|
+
od,
|
|
8216
8217
|
{
|
|
8217
8218
|
ref: r,
|
|
8218
8219
|
model: t.model,
|
|
@@ -8225,7 +8226,7 @@ const jc = (e) => {
|
|
|
8225
8226
|
}
|
|
8226
8227
|
) : null;
|
|
8227
8228
|
};
|
|
8228
|
-
async function
|
|
8229
|
+
async function Gc(e) {
|
|
8229
8230
|
const t = await Promise.all(
|
|
8230
8231
|
e.map(async (i) => {
|
|
8231
8232
|
try {
|
|
@@ -8240,7 +8241,7 @@ async function Yc(e) {
|
|
|
8240
8241
|
info: t[o]
|
|
8241
8242
|
})).filter((i) => i.info !== null);
|
|
8242
8243
|
}
|
|
8243
|
-
function
|
|
8244
|
+
function Uc(e, t) {
|
|
8244
8245
|
const {
|
|
8245
8246
|
domain: r,
|
|
8246
8247
|
model: i,
|
|
@@ -8302,7 +8303,7 @@ function Gc(e, t) {
|
|
|
8302
8303
|
viewTuple: oe
|
|
8303
8304
|
});
|
|
8304
8305
|
}
|
|
8305
|
-
const Ve = await
|
|
8306
|
+
const Ve = await Gc(ve);
|
|
8306
8307
|
for (const oe of Ve) {
|
|
8307
8308
|
if (!oe)
|
|
8308
8309
|
continue;
|
|
@@ -8422,7 +8423,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8422
8423
|
switch (z.type) {
|
|
8423
8424
|
case "form":
|
|
8424
8425
|
return /* @__PURE__ */ n(
|
|
8425
|
-
|
|
8426
|
+
Mc,
|
|
8426
8427
|
{
|
|
8427
8428
|
formRef: ee,
|
|
8428
8429
|
currentId: x,
|
|
@@ -8441,7 +8442,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8441
8442
|
);
|
|
8442
8443
|
case "tree":
|
|
8443
8444
|
return /* @__PURE__ */ n(
|
|
8444
|
-
|
|
8445
|
+
Hc,
|
|
8445
8446
|
{
|
|
8446
8447
|
visible: v.type === z.type && v.view_id === z.view_id,
|
|
8447
8448
|
limit: y,
|
|
@@ -8462,7 +8463,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8462
8463
|
);
|
|
8463
8464
|
case "graph":
|
|
8464
8465
|
return /* @__PURE__ */ n(
|
|
8465
|
-
|
|
8466
|
+
Ec,
|
|
8466
8467
|
{
|
|
8467
8468
|
visible: v.type === z.type && v.view_id === z.view_id,
|
|
8468
8469
|
viewData: z,
|
|
@@ -8476,7 +8477,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8476
8477
|
);
|
|
8477
8478
|
case "dashboard":
|
|
8478
8479
|
return /* @__PURE__ */ n(
|
|
8479
|
-
|
|
8480
|
+
Yc,
|
|
8480
8481
|
{
|
|
8481
8482
|
dashboardData: z
|
|
8482
8483
|
},
|
|
@@ -8497,7 +8498,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8497
8498
|
}
|
|
8498
8499
|
}
|
|
8499
8500
|
return O ? /* @__PURE__ */ n(Ae, {}) : v ? /* @__PURE__ */ A(
|
|
8500
|
-
|
|
8501
|
+
ba,
|
|
8501
8502
|
{
|
|
8502
8503
|
title: a,
|
|
8503
8504
|
currentView: v,
|
|
@@ -8526,7 +8527,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8526
8527
|
children: [
|
|
8527
8528
|
Me(),
|
|
8528
8529
|
/* @__PURE__ */ n(
|
|
8529
|
-
|
|
8530
|
+
_c,
|
|
8530
8531
|
{
|
|
8531
8532
|
visible: G,
|
|
8532
8533
|
onIdSubmitted: ye,
|
|
@@ -8540,8 +8541,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
8540
8541
|
}
|
|
8541
8542
|
) : null;
|
|
8542
8543
|
}
|
|
8543
|
-
const Do = wt(
|
|
8544
|
-
async function
|
|
8544
|
+
const Do = wt(Uc);
|
|
8545
|
+
async function qc({
|
|
8545
8546
|
actionId: e,
|
|
8546
8547
|
rootContext: t = {},
|
|
8547
8548
|
globalValues: r = {}
|
|
@@ -8593,7 +8594,7 @@ async function Uc({
|
|
|
8593
8594
|
treeExpandable: p
|
|
8594
8595
|
};
|
|
8595
8596
|
}
|
|
8596
|
-
const
|
|
8597
|
+
const zc = Xi(Zi), Jc = (e) => {
|
|
8597
8598
|
const { children: t = [], onPositionItemsChanged: r } = e, i = et.Children.map(
|
|
8598
8599
|
t,
|
|
8599
8600
|
(o) => {
|
|
@@ -8602,7 +8603,7 @@ const qc = Xi(Zi), zc = (e) => {
|
|
|
8602
8603
|
}
|
|
8603
8604
|
);
|
|
8604
8605
|
return /* @__PURE__ */ n(
|
|
8605
|
-
|
|
8606
|
+
zc,
|
|
8606
8607
|
{
|
|
8607
8608
|
className: "layout",
|
|
8608
8609
|
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
@@ -8622,8 +8623,8 @@ const qc = Xi(Zi), zc = (e) => {
|
|
|
8622
8623
|
children: i
|
|
8623
8624
|
}
|
|
8624
8625
|
);
|
|
8625
|
-
}, { useToken:
|
|
8626
|
-
const { title: t, children: r, action: i, openAction: o } = e, { token: s } =
|
|
8626
|
+
}, { useToken: Xc } = Pe, { Text: Zc } = Yt, Qc = (e) => {
|
|
8627
|
+
const { title: t, children: r, action: i, openAction: o } = e, { token: s } = Xc();
|
|
8627
8628
|
return /* @__PURE__ */ A(
|
|
8628
8629
|
"div",
|
|
8629
8630
|
{
|
|
@@ -8659,7 +8660,7 @@ const qc = Xi(Zi), zc = (e) => {
|
|
|
8659
8660
|
cursor: "grab",
|
|
8660
8661
|
overflow: "hidden"
|
|
8661
8662
|
},
|
|
8662
|
-
children: /* @__PURE__ */ n(
|
|
8663
|
+
children: /* @__PURE__ */ n(Zc, { ellipsis: !0, children: t })
|
|
8663
8664
|
}
|
|
8664
8665
|
),
|
|
8665
8666
|
i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(be, { justify: "end", align: "middle", children: /* @__PURE__ */ n(
|
|
@@ -8674,12 +8675,12 @@ const qc = Xi(Zi), zc = (e) => {
|
|
|
8674
8675
|
]
|
|
8675
8676
|
}
|
|
8676
8677
|
),
|
|
8677
|
-
r
|
|
8678
|
+
/* @__PURE__ */ n(Qi, { children: r })
|
|
8678
8679
|
]
|
|
8679
8680
|
}
|
|
8680
8681
|
);
|
|
8681
|
-
},
|
|
8682
|
-
function
|
|
8682
|
+
}, ed = 80;
|
|
8683
|
+
function td(e) {
|
|
8683
8684
|
const {
|
|
8684
8685
|
action: t,
|
|
8685
8686
|
model: r,
|
|
@@ -8688,7 +8689,7 @@ function ed(e) {
|
|
|
8688
8689
|
domain: s = [],
|
|
8689
8690
|
visible: a = !0,
|
|
8690
8691
|
parentContext: l = {}
|
|
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(
|
|
8692
|
+
} = 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(ed), 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) => {
|
|
8692
8693
|
ne(!0), F(U), O((U - 1) * R.current);
|
|
8693
8694
|
}, Y = async () => {
|
|
8694
8695
|
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({
|
|
@@ -8791,7 +8792,7 @@ function ed(e) {
|
|
|
8791
8792
|
] });
|
|
8792
8793
|
return K ? /* @__PURE__ */ n(tt, { className: "mt-10", message: K, type: "error", banner: !0 }) : d ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : X();
|
|
8793
8794
|
}
|
|
8794
|
-
const
|
|
8795
|
+
const nd = (e) => {
|
|
8795
8796
|
const { model: t } = e, [r, i] = w();
|
|
8796
8797
|
me(() => {
|
|
8797
8798
|
o();
|
|
@@ -8806,7 +8807,7 @@ const td = (e) => {
|
|
|
8806
8807
|
}
|
|
8807
8808
|
return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(Jt, { ...e, model: t, id: r, readOnly: !0 }) });
|
|
8808
8809
|
}, On = "line_ids";
|
|
8809
|
-
function
|
|
8810
|
+
function rd(e, t) {
|
|
8810
8811
|
const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = w([]), [d, u] = w(!1), [c, f] = w(), {
|
|
8811
8812
|
setIsLoading: m,
|
|
8812
8813
|
openAction: p,
|
|
@@ -8879,7 +8880,7 @@ function nd(e, t) {
|
|
|
8879
8880
|
for (const I of x) {
|
|
8880
8881
|
const { values: C } = I;
|
|
8881
8882
|
if (C.action_id && C.action_id.length > 0) {
|
|
8882
|
-
const D = parseInt(C.action_id[0], 10), P = await
|
|
8883
|
+
const D = parseInt(C.action_id[0], 10), P = await qc({
|
|
8883
8884
|
actionId: D,
|
|
8884
8885
|
rootContext: i
|
|
8885
8886
|
});
|
|
@@ -8934,7 +8935,7 @@ function nd(e, t) {
|
|
|
8934
8935
|
async function k() {
|
|
8935
8936
|
p(s);
|
|
8936
8937
|
}
|
|
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(
|
|
8938
|
+
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(Jc, { onPositionItemsChanged: R, children: a.map((x, S) => {
|
|
8938
8939
|
const { actionData: I, values: C } = x, { position: D, id: P } = C, {
|
|
8939
8940
|
actionId: L,
|
|
8940
8941
|
actionType: j,
|
|
@@ -8968,10 +8969,10 @@ function nd(e, t) {
|
|
|
8968
8969
|
}
|
|
8969
8970
|
);
|
|
8970
8971
|
else if ((J == null ? void 0 : J.type) === "form")
|
|
8971
|
-
_ = /* @__PURE__ */ n(
|
|
8972
|
+
_ = /* @__PURE__ */ n(nd, { model: V, actionDomain: ne });
|
|
8972
8973
|
else if ((J == null ? void 0 : J.type) === "tree")
|
|
8973
8974
|
_ = /* @__PURE__ */ n(
|
|
8974
|
-
|
|
8975
|
+
td,
|
|
8975
8976
|
{
|
|
8976
8977
|
model: V,
|
|
8977
8978
|
domain: ne,
|
|
@@ -9046,7 +9047,7 @@ function nd(e, t) {
|
|
|
9046
9047
|
};
|
|
9047
9048
|
}
|
|
9048
9049
|
return /* @__PURE__ */ n(
|
|
9049
|
-
|
|
9050
|
+
Qc,
|
|
9050
9051
|
{
|
|
9051
9052
|
id: P,
|
|
9052
9053
|
title: B,
|
|
@@ -9059,10 +9060,10 @@ function nd(e, t) {
|
|
|
9059
9060
|
);
|
|
9060
9061
|
}) });
|
|
9061
9062
|
}
|
|
9062
|
-
const
|
|
9063
|
+
const od = wt(rd), id = (e) => {
|
|
9063
9064
|
const { ooui: t } = e;
|
|
9064
|
-
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(
|
|
9065
|
-
},
|
|
9065
|
+
return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(sd, { ooui: t }) });
|
|
9066
|
+
}, sd = (e) => {
|
|
9066
9067
|
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 || {};
|
|
9067
9068
|
xt(() => {
|
|
9068
9069
|
b();
|
|
@@ -9143,7 +9144,7 @@ const rd = wt(nd), od = (e) => {
|
|
|
9143
9144
|
/* @__PURE__ */ n(Oe, { onClick: R, disabled: s.length === 0, children: "Uncheck all" })
|
|
9144
9145
|
] })
|
|
9145
9146
|
] }) });
|
|
9146
|
-
},
|
|
9147
|
+
}, ad = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(ld, { ...e }) }), ld = (e) => {
|
|
9147
9148
|
const { value: t, ooui: r } = e;
|
|
9148
9149
|
return /* @__PURE__ */ n(
|
|
9149
9150
|
"div",
|
|
@@ -9162,25 +9163,25 @@ const rd = wt(nd), od = (e) => {
|
|
|
9162
9163
|
)
|
|
9163
9164
|
}
|
|
9164
9165
|
);
|
|
9165
|
-
}, ld = (e) => {
|
|
9166
|
-
const { ooui: t } = e, { required: r } = t;
|
|
9167
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(cd, { ...e }) });
|
|
9168
9166
|
}, cd = (e) => {
|
|
9167
|
+
const { ooui: t } = e, { required: r } = t;
|
|
9168
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(dd, { ...e }) });
|
|
9169
|
+
}, dd = (e) => {
|
|
9169
9170
|
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) => {
|
|
9170
9171
|
const [c, f] = u;
|
|
9171
9172
|
return /* @__PURE__ */ n(sr, { value: c, children: f }, c);
|
|
9172
9173
|
});
|
|
9173
9174
|
return /* @__PURE__ */ n(sr.Group, { disabled: s, onChange: r, value: i, children: /* @__PURE__ */ n(je, { direction: a, children: d }) });
|
|
9174
|
-
}, dd = (e) => {
|
|
9175
|
-
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
9176
|
-
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(ud, { id: r, readOnly: i, required: o }) });
|
|
9177
9175
|
}, ud = (e) => {
|
|
9176
|
+
const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
|
|
9177
|
+
return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(fd, { id: r, readOnly: i, required: o }) });
|
|
9178
|
+
}, fd = (e) => {
|
|
9178
9179
|
const { required: t, readOnly: r, ...i } = e;
|
|
9179
9180
|
return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(ni, { disabled: r, ...i }) });
|
|
9180
|
-
}, fd = (e) => {
|
|
9181
|
-
const { ooui: t } = e, { required: r } = t;
|
|
9182
|
-
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(md, { ...e }) });
|
|
9183
9181
|
}, md = (e) => {
|
|
9182
|
+
const { ooui: t } = e, { required: r } = t;
|
|
9183
|
+
return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(hd, { ...e }) });
|
|
9184
|
+
}, hd = (e) => {
|
|
9184
9185
|
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);
|
|
9185
9186
|
let d = "process", u = "";
|
|
9186
9187
|
return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ n(ar, { current: l, status: d, children: a.map((c, f) => /* @__PURE__ */ n(
|
|
@@ -9190,7 +9191,7 @@ const rd = wt(nd), od = (e) => {
|
|
|
9190
9191
|
description: f === l && d === "error" ? u : null
|
|
9191
9192
|
}
|
|
9192
9193
|
)) });
|
|
9193
|
-
},
|
|
9194
|
+
}, pd = (e) => {
|
|
9194
9195
|
const { ooui: t } = e, { lang: r, height: i } = t, o = H(Ne), { elementHasLostFocus: s } = o || {};
|
|
9195
9196
|
return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(
|
|
9196
9197
|
zi,
|
|
@@ -9202,13 +9203,13 @@ const rd = wt(nd), od = (e) => {
|
|
|
9202
9203
|
}
|
|
9203
9204
|
}
|
|
9204
9205
|
) });
|
|
9205
|
-
}, { Meta:
|
|
9206
|
+
}, { Meta: gd } = Nn, { Text: yd } = Yt, vd = ({ email: e, size: t = 40, theme: r = "" }) => {
|
|
9206
9207
|
const i = `https://www.gravatar.com/avatar/${Ji(
|
|
9207
9208
|
e
|
|
9208
9209
|
)}?s=${t}&d=${r}`;
|
|
9209
9210
|
return /* @__PURE__ */ n(Dr, { src: i, size: t });
|
|
9210
9211
|
};
|
|
9211
|
-
function
|
|
9212
|
+
function wd({ text: e }) {
|
|
9212
9213
|
const t = e.split(`
|
|
9213
9214
|
`);
|
|
9214
9215
|
return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(Jo, { children: [
|
|
@@ -9216,13 +9217,13 @@ function vd({ text: e }) {
|
|
|
9216
9217
|
i !== t.length - 1 && /* @__PURE__ */ n("br", {})
|
|
9217
9218
|
] }, i)) });
|
|
9218
9219
|
}
|
|
9219
|
-
const
|
|
9220
|
+
const bd = (e) => {
|
|
9220
9221
|
const { data: t, style: r } = e, { t: i } = H(he);
|
|
9221
9222
|
return /* @__PURE__ */ A(Nn, { style: { ...r, textAlign: "start" }, children: [
|
|
9222
9223
|
/* @__PURE__ */ n(
|
|
9223
|
-
|
|
9224
|
+
gd,
|
|
9224
9225
|
{
|
|
9225
|
-
avatar: /* @__PURE__ */ n(
|
|
9226
|
+
avatar: /* @__PURE__ */ n(vd, { email: t.email, theme: "mp" }),
|
|
9226
9227
|
title: t.author,
|
|
9227
9228
|
description: /* @__PURE__ */ A(je, { direction: "horizontal", children: [
|
|
9228
9229
|
/* @__PURE__ */ n("span", { title: t.date, children: nt(t.date).fromNow() }),
|
|
@@ -9231,9 +9232,9 @@ const wd = (e) => {
|
|
|
9231
9232
|
style: { marginBottom: "5px" }
|
|
9232
9233
|
}
|
|
9233
9234
|
),
|
|
9234
|
-
/* @__PURE__ */ n(
|
|
9235
|
+
/* @__PURE__ */ n(yd, { children: /* @__PURE__ */ n(wd, { text: t.text }) })
|
|
9235
9236
|
] }, t.id);
|
|
9236
|
-
},
|
|
9237
|
+
}, Cd = (e) => {
|
|
9237
9238
|
const { value: t } = e, r = (t || []).map((i) => {
|
|
9238
9239
|
if (i.type === "action")
|
|
9239
9240
|
return {
|
|
@@ -9244,22 +9245,22 @@ const wd = (e) => {
|
|
|
9244
9245
|
color: "gray",
|
|
9245
9246
|
position: i.event.isSender ? "left" : "right",
|
|
9246
9247
|
label: i.event.date,
|
|
9247
|
-
children: /* @__PURE__ */ n(
|
|
9248
|
+
children: /* @__PURE__ */ n(bd, { data: i.event })
|
|
9248
9249
|
};
|
|
9249
9250
|
});
|
|
9250
9251
|
return /* @__PURE__ */ n(Rn, { mode: "alternate", items: r });
|
|
9251
|
-
},
|
|
9252
|
-
function
|
|
9252
|
+
}, xd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(Cd, {}) }), { Content: Sd } = ri, { Title: Td } = Yt;
|
|
9253
|
+
function Id() {
|
|
9253
9254
|
const { t: e } = H(he);
|
|
9254
|
-
return /* @__PURE__ */ n(
|
|
9255
|
+
return /* @__PURE__ */ n(Sd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Td, { level: 5, children: e("welcome") }) });
|
|
9255
9256
|
}
|
|
9256
|
-
function
|
|
9257
|
+
function Fd(e, t) {
|
|
9257
9258
|
const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = w("welcome"), [d, u] = w([
|
|
9258
9259
|
{
|
|
9259
9260
|
title: Fe("welcome", s),
|
|
9260
9261
|
key: "welcome",
|
|
9261
9262
|
closable: !0,
|
|
9262
|
-
content: /* @__PURE__ */ n(
|
|
9263
|
+
content: /* @__PURE__ */ n(Id, {})
|
|
9263
9264
|
}
|
|
9264
9265
|
]), c = de(/* @__PURE__ */ new Map()), f = de();
|
|
9265
9266
|
bt(t, () => ({
|
|
@@ -9557,8 +9558,8 @@ function Id(e, t) {
|
|
|
9557
9558
|
});
|
|
9558
9559
|
}
|
|
9559
9560
|
}
|
|
9560
|
-
return /* @__PURE__ */ n(
|
|
9561
|
-
|
|
9561
|
+
return /* @__PURE__ */ n(ls, { lang: s, children: /* @__PURE__ */ n(
|
|
9562
|
+
Ca,
|
|
9562
9563
|
{
|
|
9563
9564
|
openShortcut: v,
|
|
9564
9565
|
openAction: F,
|
|
@@ -9576,7 +9577,7 @@ function Id(e, t) {
|
|
|
9576
9577
|
l(b);
|
|
9577
9578
|
},
|
|
9578
9579
|
children: /* @__PURE__ */ n(
|
|
9579
|
-
|
|
9580
|
+
Ta,
|
|
9580
9581
|
{
|
|
9581
9582
|
ref: f,
|
|
9582
9583
|
globalValues: i,
|
|
@@ -9586,9 +9587,9 @@ function Id(e, t) {
|
|
|
9586
9587
|
}
|
|
9587
9588
|
) });
|
|
9588
9589
|
}
|
|
9589
|
-
const
|
|
9590
|
-
function
|
|
9591
|
-
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } =
|
|
9590
|
+
const vu = wt(Fd), { useToken: Od } = Pe;
|
|
9591
|
+
function Rd(e) {
|
|
9592
|
+
const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Od(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
9592
9593
|
return /* @__PURE__ */ A(
|
|
9593
9594
|
"div",
|
|
9594
9595
|
{
|
|
@@ -9658,12 +9659,12 @@ function Od(e) {
|
|
|
9658
9659
|
}
|
|
9659
9660
|
);
|
|
9660
9661
|
}
|
|
9661
|
-
function
|
|
9662
|
+
function wu() {
|
|
9662
9663
|
const e = H(
|
|
9663
9664
|
dt
|
|
9664
9665
|
), { activeKey: t, tabs: r, onRemoveTab: i, onChangeTab: o } = e || {};
|
|
9665
9666
|
return /* @__PURE__ */ n(Z, { children: r.map((s) => /* @__PURE__ */ n(
|
|
9666
|
-
|
|
9667
|
+
Rd,
|
|
9667
9668
|
{
|
|
9668
9669
|
tabKey: s.key,
|
|
9669
9670
|
label: s.title,
|
|
@@ -9674,7 +9675,7 @@ function yu() {
|
|
|
9674
9675
|
s.key
|
|
9675
9676
|
)) });
|
|
9676
9677
|
}
|
|
9677
|
-
function
|
|
9678
|
+
function _d(e) {
|
|
9678
9679
|
const { tab: t } = e, r = H(
|
|
9679
9680
|
dt
|
|
9680
9681
|
), { activeKey: i } = r || {}, o = {
|
|
@@ -9682,20 +9683,20 @@ function Rd(e) {
|
|
|
9682
9683
|
};
|
|
9683
9684
|
return /* @__PURE__ */ n("div", { style: t.key !== i ? o : void 0, children: t.content });
|
|
9684
9685
|
}
|
|
9685
|
-
const
|
|
9686
|
-
function
|
|
9686
|
+
const Vd = et.memo(_d, () => !0);
|
|
9687
|
+
function bu() {
|
|
9687
9688
|
const e = H(
|
|
9688
9689
|
dt
|
|
9689
|
-
), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
9690
|
+
), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Vd, { tab: i }, i.key))) || null;
|
|
9690
9691
|
return /* @__PURE__ */ n(Z, { children: r });
|
|
9691
9692
|
}
|
|
9692
|
-
const { useToken:
|
|
9693
|
+
const { useToken: Ad } = Pe, Cu = (e) => {
|
|
9693
9694
|
const {
|
|
9694
9695
|
onRetrieveShortcuts: t,
|
|
9695
9696
|
onCheckIsFavourite: r,
|
|
9696
9697
|
onAddFavourite: i,
|
|
9697
9698
|
onRemoveFavourite: o
|
|
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 } =
|
|
9699
|
+
} = 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 } = Ad(), v = H(
|
|
9699
9700
|
dt
|
|
9700
9701
|
), {
|
|
9701
9702
|
openShortcut: T,
|
|
@@ -9834,60 +9835,60 @@ const { useToken: Vd } = Pe, wu = (e) => {
|
|
|
9834
9835
|
] });
|
|
9835
9836
|
};
|
|
9836
9837
|
export {
|
|
9837
|
-
|
|
9838
|
+
Ic as ActionBar,
|
|
9838
9839
|
Do as ActionView,
|
|
9839
|
-
|
|
9840
|
-
|
|
9840
|
+
yc as Binary,
|
|
9841
|
+
Os as Boolean,
|
|
9841
9842
|
Qr as Button,
|
|
9842
|
-
|
|
9843
|
+
fs as ButtonGroup,
|
|
9843
9844
|
no as Char,
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9845
|
+
pd as CodeEditor,
|
|
9846
|
+
xd as CommentsTimelineField,
|
|
9847
|
+
Pc as ConfigContext,
|
|
9847
9848
|
E as ConnectionProvider,
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9849
|
+
Ta as ContentRootProvider,
|
|
9850
|
+
bu as CurrentTabContent,
|
|
9851
|
+
od as Dashboard,
|
|
9852
|
+
Jc as DashboardGrid,
|
|
9853
|
+
Qc as DashboardGridItem,
|
|
9854
|
+
dc as Date,
|
|
9855
|
+
uc as DateTime,
|
|
9856
|
+
Rc as Email,
|
|
9857
|
+
cc as ExportModal,
|
|
9858
|
+
Cu as FavouriteButton,
|
|
9858
9859
|
ho as Float,
|
|
9859
|
-
|
|
9860
|
+
Ul as FloatTime,
|
|
9860
9861
|
Jt as Form,
|
|
9861
9862
|
Xt as FormModal,
|
|
9862
|
-
|
|
9863
|
+
bl as GraphIndicator,
|
|
9863
9864
|
Io as Group,
|
|
9864
|
-
|
|
9865
|
+
As as Image,
|
|
9865
9866
|
rn as Integer,
|
|
9866
9867
|
fn as Label,
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9868
|
+
yl as Many2one,
|
|
9869
|
+
ad as Markdown,
|
|
9870
|
+
id as MultiCheckbox,
|
|
9871
|
+
Jl as Notebook,
|
|
9872
|
+
Yl as One2many,
|
|
9873
|
+
Ga as ProgressBar,
|
|
9874
|
+
cd as Radio,
|
|
9875
|
+
hc as Reference,
|
|
9876
|
+
vu as RootView,
|
|
9876
9877
|
po as SearchFilter,
|
|
9877
9878
|
bo as SearchModal,
|
|
9878
9879
|
wo as SearchTree,
|
|
9879
9880
|
ro as Selection,
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9881
|
+
ec as Separator,
|
|
9882
|
+
md as Steps,
|
|
9883
|
+
ud as Switch,
|
|
9884
|
+
Rd as Tab,
|
|
9885
|
+
wu as TabSelector,
|
|
9886
|
+
Js as Tag,
|
|
9887
|
+
Xs as Tags,
|
|
9888
|
+
Zl as Text,
|
|
9889
|
+
fc as Time,
|
|
9889
9890
|
pn as Tree,
|
|
9890
|
-
|
|
9891
|
+
Oc as Url,
|
|
9891
9892
|
ct as iconMapper,
|
|
9892
9893
|
qt as showConfirmDialog
|
|
9893
9894
|
};
|