@gisce/react-ooui 1.2.3 → 1.2.4-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import qe, { useContext as K, useState as x, useEffect as ge, useRef as me, useCallback as Ae, forwardRef as
|
|
2
|
-
import { Tooltip as ft, theme as Me, Typography as on, Form as ot, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as ke, Divider as sn, Space as He, Input as Qe, Select as
|
|
3
|
-
import { Label as Dt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as
|
|
1
|
+
import qe, { useContext as K, useState as x, useEffect as ge, useRef as me, useCallback as Ae, forwardRef as yt, useImperativeHandle as vt } from "react";
|
|
2
|
+
import { Tooltip as ft, theme as Me, Typography as on, Form as ot, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as ke, Divider as sn, Space as He, Input as Qe, Select as wt, Checkbox as Nt, Alert as ze, Timeline as er, Statistic as Go, Card as Uo, Tag as kn, message as wn, DatePicker as Rn, TimePicker as qo, InputNumber as En, Progress as zo, Avatar as Jo, Pagination as Zo, Tabs as _r, Popover as Xo, Radio as tr, Switch as Qo, Steps as nr, Layout as ei } from "antd";
|
|
3
|
+
import { Label as Dt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as gt, Form as Vr, Integer as On, SearchFieldTypes as ut, SearchFilter as oi, transformDomainForChildWidget as Ar, graphProcessor as kr, parseGraph as $n, graphFieldUtils as ii } from "@gisce/ooui";
|
|
4
4
|
import * as rr from "@ant-design/icons";
|
|
5
|
-
import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as
|
|
5
|
+
import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as Vt, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as At, TranslationOutlined as $r, FolderOpenOutlined as Nn, DownloadOutlined as Ln, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Lr, UpOutlined as si, SearchOutlined as Bn, RightCircleOutlined as ai, ThunderboltOutlined as Hn, PrinterOutlined as jn, EnterOutlined as Pr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as an, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as Hr, EyeOutlined as fi, FormOutlined as Lt, TableOutlined as Wn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as jr, SaveOutlined as pi, CopyOutlined as Yn, InfoCircleOutlined as Kr, ReloadOutlined as ln, EditOutlined as Wr, FilterOutlined as Yr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as vi, ExportOutlined as wi } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as Gn } from "interweave";
|
|
7
7
|
import { jsxs as P, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
8
8
|
import * as or from "@tabler/icons-react";
|
|
@@ -11,7 +11,7 @@ import jt from "styled-components";
|
|
|
11
11
|
import Un from "react-measure";
|
|
12
12
|
import _n from "antd/lib/typography/Title";
|
|
13
13
|
import { Line as xi, Column as Ci, Pie as Si } from "@ant-design/plots";
|
|
14
|
-
import
|
|
14
|
+
import bt from "use-deep-compare-effect";
|
|
15
15
|
import { Table as Ti } from "@gisce/react-formiga-table";
|
|
16
16
|
import { fileTypeFromBuffer as Fi } from "file-type-buffer-browser";
|
|
17
17
|
import { GridUi as Oi } from "@gisce/fiber-diagram";
|
|
@@ -45,7 +45,7 @@ const {
|
|
|
45
45
|
labelSize: l,
|
|
46
46
|
labelType: d
|
|
47
47
|
} = t, f = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
48
|
-
token:
|
|
48
|
+
token: p
|
|
49
49
|
} = Li(), h = l === void 0 ? $i : Ni;
|
|
50
50
|
return /* @__PURE__ */ P("div", {
|
|
51
51
|
className: `flex flex-row items-center pb-1 pt-1 ${Pi[m]}`,
|
|
@@ -54,7 +54,7 @@ const {
|
|
|
54
54
|
children: /* @__PURE__ */ n(Er, {
|
|
55
55
|
className: "pr-1 text-xs",
|
|
56
56
|
style: {
|
|
57
|
-
color:
|
|
57
|
+
color: p.colorPrimary
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
}), /* @__PURE__ */ n("span", {
|
|
@@ -366,7 +366,7 @@ function we({
|
|
|
366
366
|
tooltip: c
|
|
367
367
|
} = e, {
|
|
368
368
|
t: m
|
|
369
|
-
} = K(ye),
|
|
369
|
+
} = K(ye), p = a ? [{
|
|
370
370
|
required: !0,
|
|
371
371
|
message: m("fillRequiredField"),
|
|
372
372
|
type: l,
|
|
@@ -375,12 +375,12 @@ function we({
|
|
|
375
375
|
className: "mb-0",
|
|
376
376
|
name: u,
|
|
377
377
|
valuePropName: i,
|
|
378
|
-
rules:
|
|
378
|
+
rules: p,
|
|
379
379
|
children: t
|
|
380
380
|
});
|
|
381
381
|
if (!o)
|
|
382
382
|
return h();
|
|
383
|
-
const
|
|
383
|
+
const g = /* @__PURE__ */ n(cn, {
|
|
384
384
|
ooui: new Dt({
|
|
385
385
|
name: u + "_label",
|
|
386
386
|
string: f,
|
|
@@ -397,14 +397,14 @@ function we({
|
|
|
397
397
|
flex: "7rem",
|
|
398
398
|
children: /* @__PURE__ */ n("div", {
|
|
399
399
|
className: "flex flex-col items-end",
|
|
400
|
-
children:
|
|
400
|
+
children: g
|
|
401
401
|
})
|
|
402
402
|
}), /* @__PURE__ */ n(ae, {
|
|
403
403
|
flex: "auto",
|
|
404
404
|
children: h()
|
|
405
405
|
})]
|
|
406
406
|
}))() : (() => /* @__PURE__ */ P(Z, {
|
|
407
|
-
children: [
|
|
407
|
+
children: [g, h()]
|
|
408
408
|
}))();
|
|
409
409
|
}
|
|
410
410
|
const {
|
|
@@ -416,7 +416,7 @@ const {
|
|
|
416
416
|
}) => {
|
|
417
417
|
Yi({
|
|
418
418
|
title: _e("confirmation", r),
|
|
419
|
-
icon: /* @__PURE__ */ n(
|
|
419
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
420
420
|
centered: !0,
|
|
421
421
|
content: t,
|
|
422
422
|
okText: _e("ok", r),
|
|
@@ -437,16 +437,16 @@ const {
|
|
|
437
437
|
domain: f,
|
|
438
438
|
submitForm: c,
|
|
439
439
|
fetchValues: m,
|
|
440
|
-
formHasChanges:
|
|
440
|
+
formHasChanges: p,
|
|
441
441
|
elementHasLostFocus: h,
|
|
442
|
-
getFields:
|
|
442
|
+
getFields: g
|
|
443
443
|
} = e;
|
|
444
444
|
return /* @__PURE__ */ n(Re.Provider, {
|
|
445
445
|
value: {
|
|
446
446
|
domain: f,
|
|
447
447
|
getValues: d,
|
|
448
448
|
getPlainValues: u,
|
|
449
|
-
getFields:
|
|
449
|
+
getFields: g,
|
|
450
450
|
activeId: r,
|
|
451
451
|
activeModel: i,
|
|
452
452
|
setFieldValue: o,
|
|
@@ -455,7 +455,7 @@ const {
|
|
|
455
455
|
getContext: l,
|
|
456
456
|
submitForm: c,
|
|
457
457
|
fetchValues: m,
|
|
458
|
-
formHasChanges:
|
|
458
|
+
formHasChanges: p,
|
|
459
459
|
elementHasLostFocus: h
|
|
460
460
|
},
|
|
461
461
|
children: t
|
|
@@ -596,15 +596,15 @@ const Ur = (e) => {
|
|
|
596
596
|
readOnly: u
|
|
597
597
|
} = t, f = K(Re), {
|
|
598
598
|
executeButtonAction: c
|
|
599
|
-
} = f || {}, [m,
|
|
599
|
+
} = f || {}, [m, p] = x(!1), {
|
|
600
600
|
lang: h
|
|
601
601
|
} = K(ye);
|
|
602
|
-
async function
|
|
603
|
-
|
|
602
|
+
async function g() {
|
|
603
|
+
p(!0), await c({
|
|
604
604
|
type: s,
|
|
605
605
|
action: r,
|
|
606
606
|
context: d
|
|
607
|
-
}),
|
|
607
|
+
}), p(!1);
|
|
608
608
|
}
|
|
609
609
|
function v() {
|
|
610
610
|
if (a) {
|
|
@@ -612,12 +612,12 @@ const Ur = (e) => {
|
|
|
612
612
|
confirmMessage: a,
|
|
613
613
|
lang: h,
|
|
614
614
|
onOk: () => {
|
|
615
|
-
|
|
615
|
+
g();
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
g();
|
|
621
621
|
}
|
|
622
622
|
function y() {
|
|
623
623
|
if (m)
|
|
@@ -659,9 +659,9 @@ const Ur = (e) => {
|
|
|
659
659
|
primary: f,
|
|
660
660
|
danger: c,
|
|
661
661
|
context: m,
|
|
662
|
-
readOnly:
|
|
662
|
+
readOnly: p
|
|
663
663
|
} = r || {}, h = K(Re), {
|
|
664
|
-
executeButtonAction:
|
|
664
|
+
executeButtonAction: g
|
|
665
665
|
} = h || {}, [v, y] = x(!1), {
|
|
666
666
|
lang: V
|
|
667
667
|
} = K(ye);
|
|
@@ -674,7 +674,7 @@ const Ur = (e) => {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
async function b() {
|
|
677
|
-
l && o && (y(!0), await
|
|
677
|
+
l && o && (y(!0), await g({
|
|
678
678
|
type: l,
|
|
679
679
|
action: o,
|
|
680
680
|
context: m
|
|
@@ -701,13 +701,13 @@ const Ur = (e) => {
|
|
|
701
701
|
ooui: t
|
|
702
702
|
}),
|
|
703
703
|
children: /* @__PURE__ */ P(Bt.Button, {
|
|
704
|
-
disabled: !a ||
|
|
704
|
+
disabled: !a || p,
|
|
705
705
|
onClick: D,
|
|
706
706
|
icon: /* @__PURE__ */ n(Vt, {}),
|
|
707
707
|
type: f ? "primary" : void 0,
|
|
708
708
|
overlay: /* @__PURE__ */ n(zi, {
|
|
709
709
|
ooui: i,
|
|
710
|
-
executeButtonAction:
|
|
710
|
+
executeButtonAction: g,
|
|
711
711
|
lang: V
|
|
712
712
|
}),
|
|
713
713
|
children: [O(), s]
|
|
@@ -734,9 +734,9 @@ const Ur = (e) => {
|
|
|
734
734
|
confirmMessage: f,
|
|
735
735
|
icon: c,
|
|
736
736
|
context: m,
|
|
737
|
-
readOnly:
|
|
737
|
+
readOnly: p,
|
|
738
738
|
danger: h
|
|
739
|
-
} = s, [
|
|
739
|
+
} = s, [g, v] = x(!1);
|
|
740
740
|
async function y() {
|
|
741
741
|
v(!0), await r({
|
|
742
742
|
type: u,
|
|
@@ -758,7 +758,7 @@ const Ur = (e) => {
|
|
|
758
758
|
y();
|
|
759
759
|
}
|
|
760
760
|
function O() {
|
|
761
|
-
if (
|
|
761
|
+
if (g)
|
|
762
762
|
return /* @__PURE__ */ n(et, {});
|
|
763
763
|
if (c) {
|
|
764
764
|
const b = it(c);
|
|
@@ -766,7 +766,7 @@ const Ur = (e) => {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
return /* @__PURE__ */ n($e.Item, {
|
|
769
|
-
disabled: !d ||
|
|
769
|
+
disabled: !d || p,
|
|
770
770
|
onClick: V,
|
|
771
771
|
icon: O(),
|
|
772
772
|
danger: h,
|
|
@@ -839,7 +839,7 @@ const qr = (e) => {
|
|
|
839
839
|
} = qr(e);
|
|
840
840
|
(r === "error" ? Zi : Xi)({
|
|
841
841
|
title: i,
|
|
842
|
-
icon: r === "error" ? /* @__PURE__ */ n(
|
|
842
|
+
icon: r === "error" ? /* @__PURE__ */ n(mt, {}) : /* @__PURE__ */ n(Mr, {}),
|
|
843
843
|
centered: !0,
|
|
844
844
|
content: t
|
|
845
845
|
});
|
|
@@ -855,7 +855,7 @@ const qr = (e) => {
|
|
|
855
855
|
modalWidth: l
|
|
856
856
|
} = dn(), {
|
|
857
857
|
t: d
|
|
858
|
-
} = K(ye), [u, f] = x([]), [c, m] = x(!1), [
|
|
858
|
+
} = K(ye), [u, f] = x([]), [c, m] = x(!1), [p, h] = x(!1), [g, v] = x({}), y = me();
|
|
859
859
|
ge(() => {
|
|
860
860
|
t ? V() : v({});
|
|
861
861
|
}, [t]);
|
|
@@ -910,14 +910,14 @@ const qr = (e) => {
|
|
|
910
910
|
flex: "auto",
|
|
911
911
|
children: /* @__PURE__ */ n(bi, {
|
|
912
912
|
rows: 4,
|
|
913
|
-
value:
|
|
913
|
+
value: g[w.code] || "",
|
|
914
914
|
onChange: (F) => {
|
|
915
915
|
v({
|
|
916
|
-
...
|
|
916
|
+
...g,
|
|
917
917
|
[w.code]: F.target.value
|
|
918
918
|
});
|
|
919
919
|
},
|
|
920
|
-
disabled:
|
|
920
|
+
disabled: p
|
|
921
921
|
})
|
|
922
922
|
})]
|
|
923
923
|
}, C));
|
|
@@ -925,12 +925,12 @@ const qr = (e) => {
|
|
|
925
925
|
async function _() {
|
|
926
926
|
h(!0);
|
|
927
927
|
try {
|
|
928
|
-
for (const w of Object.keys(
|
|
929
|
-
|
|
928
|
+
for (const w of Object.keys(g))
|
|
929
|
+
g[w] !== y.current[w] && await H.getHandler().update({
|
|
930
930
|
model: i,
|
|
931
931
|
id: o,
|
|
932
932
|
values: {
|
|
933
|
-
[s]:
|
|
933
|
+
[s]: g[w]
|
|
934
934
|
},
|
|
935
935
|
context: {
|
|
936
936
|
lang: w
|
|
@@ -950,11 +950,11 @@ const qr = (e) => {
|
|
|
950
950
|
children: [/* @__PURE__ */ n(Ie, {
|
|
951
951
|
icon: /* @__PURE__ */ n(Ht, {}),
|
|
952
952
|
onClick: r,
|
|
953
|
-
disabled:
|
|
953
|
+
disabled: p,
|
|
954
954
|
children: d("cancel")
|
|
955
955
|
}), /* @__PURE__ */ n(Ie, {
|
|
956
|
-
icon:
|
|
957
|
-
disabled:
|
|
956
|
+
icon: p ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(At, {}),
|
|
957
|
+
disabled: p,
|
|
958
958
|
onClick: _,
|
|
959
959
|
style: {
|
|
960
960
|
marginLeft: 15
|
|
@@ -1065,8 +1065,8 @@ const {
|
|
|
1065
1065
|
value: e,
|
|
1066
1066
|
disabled: !0,
|
|
1067
1067
|
id: t,
|
|
1068
|
-
onChange: (
|
|
1069
|
-
i == null || i(
|
|
1068
|
+
onChange: (p) => {
|
|
1069
|
+
i == null || i(p.target.value);
|
|
1070
1070
|
},
|
|
1071
1071
|
onBlur: u,
|
|
1072
1072
|
style: {
|
|
@@ -1096,8 +1096,8 @@ const {
|
|
|
1096
1096
|
value: e,
|
|
1097
1097
|
id: t,
|
|
1098
1098
|
style: r,
|
|
1099
|
-
onChange: (
|
|
1100
|
-
i == null || i(
|
|
1099
|
+
onChange: (p) => {
|
|
1100
|
+
i == null || i(p.target.value);
|
|
1101
1101
|
},
|
|
1102
1102
|
onBlur: u
|
|
1103
1103
|
})
|
|
@@ -1119,7 +1119,7 @@ const {
|
|
|
1119
1119
|
defaultSeed: rs
|
|
1120
1120
|
} = Me, os = ns(rs), {
|
|
1121
1121
|
Option: is
|
|
1122
|
-
} =
|
|
1122
|
+
} = wt, Zr = (e) => {
|
|
1123
1123
|
const {
|
|
1124
1124
|
ooui: t
|
|
1125
1125
|
} = e, {
|
|
@@ -1149,7 +1149,7 @@ const {
|
|
|
1149
1149
|
children: m
|
|
1150
1150
|
}, c);
|
|
1151
1151
|
});
|
|
1152
|
-
return /* @__PURE__ */ n(a && !s ? ss :
|
|
1152
|
+
return /* @__PURE__ */ n(a && !s ? ss : wt, {
|
|
1153
1153
|
disabled: s,
|
|
1154
1154
|
onChange: r,
|
|
1155
1155
|
value: i,
|
|
@@ -1158,7 +1158,7 @@ const {
|
|
|
1158
1158
|
showSearch: !0,
|
|
1159
1159
|
children: d
|
|
1160
1160
|
});
|
|
1161
|
-
}, ss = jt(
|
|
1161
|
+
}, ss = jt(wt)`
|
|
1162
1162
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1163
1163
|
background-color: ${os.colorPrimaryBg};
|
|
1164
1164
|
}
|
|
@@ -1204,12 +1204,12 @@ const {
|
|
|
1204
1204
|
background-color: ${lr.colorPrimary};
|
|
1205
1205
|
}
|
|
1206
1206
|
`;
|
|
1207
|
-
var
|
|
1207
|
+
var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1208
1208
|
function fs(e) {
|
|
1209
1209
|
var t = typeof e;
|
|
1210
1210
|
return e != null && (t == "object" || t == "function");
|
|
1211
1211
|
}
|
|
1212
|
-
var Qr = fs, ms = typeof
|
|
1212
|
+
var Qr = fs, ms = typeof pt == "object" && pt && pt.Object === Object && pt, hs = ms, ps = hs, gs = typeof self == "object" && self && self.Object === Object && self, ys = ps || gs || Function("return this")(), eo = ys, vs = eo, ws = function() {
|
|
1213
1213
|
return vs.Date.now();
|
|
1214
1214
|
}, bs = ws, xs = /\s/;
|
|
1215
1215
|
function Cs(e) {
|
|
@@ -1270,14 +1270,14 @@ function ca(e, t, r) {
|
|
|
1270
1270
|
if (typeof e != "function")
|
|
1271
1271
|
throw new TypeError(sa);
|
|
1272
1272
|
t = hr(t) || 0, ia(r) && (f = !!r.leading, c = "maxWait" in r, s = c ? aa(hr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1273
|
-
function
|
|
1273
|
+
function p(_) {
|
|
1274
1274
|
var $ = i, w = o;
|
|
1275
1275
|
return i = o = void 0, u = _, a = e.apply(w, $), a;
|
|
1276
1276
|
}
|
|
1277
1277
|
function h(_) {
|
|
1278
|
-
return u = _, l = setTimeout(y, t), f ?
|
|
1278
|
+
return u = _, l = setTimeout(y, t), f ? p(_) : a;
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function g(_) {
|
|
1281
1281
|
var $ = _ - d, w = _ - u, C = t - $;
|
|
1282
1282
|
return c ? la(C, s - w) : C;
|
|
1283
1283
|
}
|
|
@@ -1289,10 +1289,10 @@ function ca(e, t, r) {
|
|
|
1289
1289
|
var _ = bn();
|
|
1290
1290
|
if (v(_))
|
|
1291
1291
|
return V(_);
|
|
1292
|
-
l = setTimeout(y,
|
|
1292
|
+
l = setTimeout(y, g(_));
|
|
1293
1293
|
}
|
|
1294
1294
|
function V(_) {
|
|
1295
|
-
return l = void 0, m && i ?
|
|
1295
|
+
return l = void 0, m && i ? p(_) : (i = o = void 0, a);
|
|
1296
1296
|
}
|
|
1297
1297
|
function O() {
|
|
1298
1298
|
l !== void 0 && clearTimeout(l), u = 0, i = d = o = l = void 0;
|
|
@@ -1306,7 +1306,7 @@ function ca(e, t, r) {
|
|
|
1306
1306
|
if (l === void 0)
|
|
1307
1307
|
return h(d);
|
|
1308
1308
|
if (c)
|
|
1309
|
-
return clearTimeout(l), l = setTimeout(y, t),
|
|
1309
|
+
return clearTimeout(l), l = setTimeout(y, t), p(d);
|
|
1310
1310
|
}
|
|
1311
1311
|
return l === void 0 && (l = setTimeout(y, t)), a;
|
|
1312
1312
|
}
|
|
@@ -1363,13 +1363,13 @@ const fa = (e) => {
|
|
|
1363
1363
|
i == null || i(c);
|
|
1364
1364
|
};
|
|
1365
1365
|
async function d() {
|
|
1366
|
-
const c = await It(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`,
|
|
1367
|
-
|
|
1366
|
+
const c = await It(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`, p = document.createElement("a");
|
|
1367
|
+
p.href = m, p.download = `image.${c == null ? void 0 : c.ext}`, p.click();
|
|
1368
1368
|
}
|
|
1369
1369
|
async function u(c) {
|
|
1370
1370
|
c.stopPropagation(), c.preventDefault();
|
|
1371
|
-
const m = c.target.files[0],
|
|
1372
|
-
l(
|
|
1371
|
+
const m = c.target.files[0], p = await ro(m);
|
|
1372
|
+
l(p);
|
|
1373
1373
|
}
|
|
1374
1374
|
function f() {
|
|
1375
1375
|
l(void 0);
|
|
@@ -1462,9 +1462,9 @@ const fa = (e) => {
|
|
|
1462
1462
|
title: o.label,
|
|
1463
1463
|
render: d,
|
|
1464
1464
|
sorter: (u, f) => {
|
|
1465
|
-
var
|
|
1465
|
+
var p, h;
|
|
1466
1466
|
let c = u[a] || "", m = f[a] || "";
|
|
1467
|
-
return s === "many2one" && (c = ((
|
|
1467
|
+
return s === "many2one" && (c = ((p = u[a]) == null ? void 0 : p.value) || "", m = ((h = f[a]) == null ? void 0 : h.value) || ""), c < m ? -1 : c > m ? 1 : 0;
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
1470
|
}), oo = (e, t) => t.map((i) => {
|
|
@@ -1498,9 +1498,9 @@ function Ot({
|
|
|
1498
1498
|
if (!t)
|
|
1499
1499
|
return e;
|
|
1500
1500
|
const { id: i, desc: o } = t, s = o === !1 ? "ascend" : "descend", a = r[i].type, l = (d, u) => {
|
|
1501
|
-
var m,
|
|
1501
|
+
var m, p;
|
|
1502
1502
|
let f = d[i] || "", c = u[i] || "";
|
|
1503
|
-
return a === "many2one" && (f = ((m = d[i]) == null ? void 0 : m[1]) || "", c = ((
|
|
1503
|
+
return a === "many2one" && (f = ((m = d[i]) == null ? void 0 : m[1]) || "", c = ((p = u[i]) == null ? void 0 : p[1]) || ""), f === c ? 0 : s === "ascend" ? f > c ? 1 : -1 : f < c ? 1 : -1;
|
|
1504
1504
|
};
|
|
1505
1505
|
return e.sort(l);
|
|
1506
1506
|
}
|
|
@@ -1514,21 +1514,21 @@ const qn = async (e) => {
|
|
|
1514
1514
|
context: s,
|
|
1515
1515
|
currentView: a = {}
|
|
1516
1516
|
} = e, l = t.filter(
|
|
1517
|
-
(
|
|
1518
|
-
), d = t.filter((
|
|
1517
|
+
(g) => g.operation !== "original"
|
|
1518
|
+
), d = t.filter((g) => g.operation === "original").map((g) => g.id), u = {
|
|
1519
1519
|
form: i.fields,
|
|
1520
1520
|
tree: o.fields
|
|
1521
1521
|
};
|
|
1522
1522
|
let f = [], c;
|
|
1523
1523
|
if (a === "tree" && (o == null ? void 0 : o.arch)) {
|
|
1524
|
-
const
|
|
1524
|
+
const g = (h = Ft(o)) == null ? void 0 : h.colors, v = await H.getHandler().readEvalUiObjects({
|
|
1525
1525
|
model: r,
|
|
1526
1526
|
ids: d,
|
|
1527
1527
|
arch: o == null ? void 0 : o.arch,
|
|
1528
1528
|
fields: o.fields,
|
|
1529
1529
|
context: s,
|
|
1530
|
-
attrs:
|
|
1531
|
-
colors:
|
|
1530
|
+
attrs: g && {
|
|
1531
|
+
colors: g
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
1534
|
f = v[0], c = Xt(v[1]);
|
|
@@ -1539,18 +1539,18 @@ const qn = async (e) => {
|
|
|
1539
1539
|
fields: u[a],
|
|
1540
1540
|
context: s
|
|
1541
1541
|
});
|
|
1542
|
-
const m = f.map((
|
|
1542
|
+
const m = f.map((g) => {
|
|
1543
1543
|
const v = {};
|
|
1544
|
-
return Object.keys(
|
|
1545
|
-
(u[a].hasOwnProperty(y) || y === "id") && (v[y] =
|
|
1544
|
+
return Object.keys(g).forEach((y) => {
|
|
1545
|
+
(u[a].hasOwnProperty(y) || y === "id") && (v[y] = g[y]);
|
|
1546
1546
|
}), v;
|
|
1547
1547
|
});
|
|
1548
1548
|
return [
|
|
1549
|
-
t.map((
|
|
1549
|
+
t.map((g) => {
|
|
1550
1550
|
const v = m.find(
|
|
1551
|
-
(V) => V.id ===
|
|
1551
|
+
(V) => V.id === g.id
|
|
1552
1552
|
), y = {
|
|
1553
|
-
...
|
|
1553
|
+
...g
|
|
1554
1554
|
};
|
|
1555
1555
|
return a === "form" ? y.values = v : a === "tree" && (y.treeValues = v), y;
|
|
1556
1556
|
}).concat(l),
|
|
@@ -1577,12 +1577,12 @@ const qn = async (e) => {
|
|
|
1577
1577
|
} = t, [s, a] = x(!0), [l, d] = x(), [u, f] = x(/* @__PURE__ */ new Map()), c = K(Re), {
|
|
1578
1578
|
getContext: m
|
|
1579
1579
|
} = c || {};
|
|
1580
|
-
|
|
1580
|
+
bt(() => {
|
|
1581
1581
|
h();
|
|
1582
1582
|
}, [t]);
|
|
1583
|
-
const
|
|
1583
|
+
const p = async (g) => o && o[g] ? o[g] : await H.getHandler().getView({
|
|
1584
1584
|
model: r,
|
|
1585
|
-
type:
|
|
1585
|
+
type: g,
|
|
1586
1586
|
context: {
|
|
1587
1587
|
...m == null ? void 0 : m(),
|
|
1588
1588
|
...i
|
|
@@ -1590,10 +1590,10 @@ const qn = async (e) => {
|
|
|
1590
1590
|
}), h = async () => {
|
|
1591
1591
|
a(!0), d(void 0);
|
|
1592
1592
|
try {
|
|
1593
|
-
const
|
|
1594
|
-
u.set("form",
|
|
1595
|
-
} catch (
|
|
1596
|
-
d(
|
|
1593
|
+
const g = await p("form"), v = await p("tree");
|
|
1594
|
+
u.set("form", g), u.set("tree", v), f(u);
|
|
1595
|
+
} catch (g) {
|
|
1596
|
+
d(g);
|
|
1597
1597
|
} finally {
|
|
1598
1598
|
a(!1);
|
|
1599
1599
|
}
|
|
@@ -1619,16 +1619,16 @@ const qn = async (e) => {
|
|
|
1619
1619
|
onChange: o
|
|
1620
1620
|
} = e, {
|
|
1621
1621
|
items: s = []
|
|
1622
|
-
} = t || {}, [a, l] = x(!1), [d, u] = x(), [f, c] = x(!1), [m,
|
|
1622
|
+
} = t || {}, [a, l] = x(!1), [d, u] = x(), [f, c] = x(!1), [m, p] = x(), {
|
|
1623
1623
|
relation: h,
|
|
1624
|
-
context:
|
|
1624
|
+
context: g,
|
|
1625
1625
|
readOnly: v,
|
|
1626
1626
|
summaryField: y,
|
|
1627
1627
|
titleField: V
|
|
1628
1628
|
} = i, O = s.filter((w) => w.values), b = K(Re), {
|
|
1629
1629
|
getContext: D
|
|
1630
1630
|
} = b || {};
|
|
1631
|
-
|
|
1631
|
+
bt(() => {
|
|
1632
1632
|
$();
|
|
1633
1633
|
}, [s]);
|
|
1634
1634
|
const _ = (w) => {
|
|
@@ -1651,7 +1651,7 @@ const qn = async (e) => {
|
|
|
1651
1651
|
items: s,
|
|
1652
1652
|
context: {
|
|
1653
1653
|
...D == null ? void 0 : D(),
|
|
1654
|
-
...
|
|
1654
|
+
...g
|
|
1655
1655
|
},
|
|
1656
1656
|
currentView: "form"
|
|
1657
1657
|
});
|
|
@@ -1682,7 +1682,7 @@ const qn = async (e) => {
|
|
|
1682
1682
|
cursor: "pointer"
|
|
1683
1683
|
},
|
|
1684
1684
|
onClick: () => {
|
|
1685
|
-
|
|
1685
|
+
p(O.find((L) => w.id === L.id)), c(!0);
|
|
1686
1686
|
},
|
|
1687
1687
|
children: /* @__PURE__ */ n("strong", {
|
|
1688
1688
|
children: (F = w.values) == null ? void 0 : F[V]
|
|
@@ -1693,7 +1693,7 @@ const qn = async (e) => {
|
|
|
1693
1693
|
cursor: "pointer"
|
|
1694
1694
|
},
|
|
1695
1695
|
onClick: () => {
|
|
1696
|
-
|
|
1696
|
+
p(O.find((L) => w.id === L.id)), c(!0);
|
|
1697
1697
|
},
|
|
1698
1698
|
children: (S = w.values) == null ? void 0 : S[y]
|
|
1699
1699
|
})]
|
|
@@ -1712,7 +1712,7 @@ const qn = async (e) => {
|
|
|
1712
1712
|
},
|
|
1713
1713
|
parentContext: {
|
|
1714
1714
|
...D == null ? void 0 : D(),
|
|
1715
|
-
...
|
|
1715
|
+
...g
|
|
1716
1716
|
},
|
|
1717
1717
|
onCancel: () => {
|
|
1718
1718
|
c(!1);
|
|
@@ -1911,13 +1911,13 @@ const kt = ({
|
|
|
1911
1911
|
items: o = []
|
|
1912
1912
|
} = t || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = x([]), [d, u] = x(), [f, c] = x(!1), {
|
|
1913
1913
|
relation: m,
|
|
1914
|
-
context:
|
|
1914
|
+
context: p,
|
|
1915
1915
|
readOnly: h,
|
|
1916
|
-
field:
|
|
1916
|
+
field: g
|
|
1917
1917
|
} = r, v = K(Re), {
|
|
1918
1918
|
getContext: y
|
|
1919
1919
|
} = v || {};
|
|
1920
|
-
|
|
1920
|
+
bt(() => {
|
|
1921
1921
|
O();
|
|
1922
1922
|
}, [o]);
|
|
1923
1923
|
const V = (_) => {
|
|
@@ -1944,13 +1944,13 @@ const kt = ({
|
|
|
1944
1944
|
const w = (await H.getHandler().search({
|
|
1945
1945
|
model: m,
|
|
1946
1946
|
params: _,
|
|
1947
|
-
fields: [
|
|
1947
|
+
fields: [g],
|
|
1948
1948
|
context: {
|
|
1949
1949
|
...y == null ? void 0 : y(),
|
|
1950
|
-
...
|
|
1950
|
+
...p
|
|
1951
1951
|
}
|
|
1952
1952
|
})).map((C) => {
|
|
1953
|
-
const F = C[
|
|
1953
|
+
const F = C[g];
|
|
1954
1954
|
let S = F;
|
|
1955
1955
|
return Array.isArray(F) && (S = F[1]), {
|
|
1956
1956
|
label: S,
|
|
@@ -2005,7 +2005,7 @@ const kt = ({
|
|
|
2005
2005
|
}) : /* @__PURE__ */ n(Z, {
|
|
2006
2006
|
children: /* @__PURE__ */ n("div", {
|
|
2007
2007
|
className: "flex flex-row",
|
|
2008
|
-
children: /* @__PURE__ */ n(
|
|
2008
|
+
children: /* @__PURE__ */ n(wt, {
|
|
2009
2009
|
mode: "multiple",
|
|
2010
2010
|
value: a.length ? s : [],
|
|
2011
2011
|
tagRender: D,
|
|
@@ -2158,16 +2158,16 @@ const kt = ({
|
|
|
2158
2158
|
s < o && (o = s);
|
|
2159
2159
|
let a = !1, l = [];
|
|
2160
2160
|
const d = i.map((c, m) => {
|
|
2161
|
-
const
|
|
2162
|
-
row:
|
|
2161
|
+
const p = c.filter((v) => !v.invisible), h = Ma({
|
|
2162
|
+
row: p,
|
|
2163
2163
|
numberOfColumns: o
|
|
2164
2164
|
});
|
|
2165
|
-
let
|
|
2166
|
-
return (m === 0 || !(c.length === 1 && c.some((v) => v.type === "group"))) && (
|
|
2165
|
+
let g = h;
|
|
2166
|
+
return (m === 0 || !(c.length === 1 && c.some((v) => v.type === "group"))) && (g = Ea({
|
|
2167
2167
|
row: h,
|
|
2168
2168
|
numberOfColumns: o,
|
|
2169
2169
|
mustFillWithEmpties: r
|
|
2170
|
-
}), l = l.concat(
|
|
2170
|
+
}), l = l.concat(g)), g.map((v) => (v instanceof Dt && v.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2171
2171
|
style: {
|
|
2172
2172
|
...Ra({
|
|
2173
2173
|
item: v,
|
|
@@ -2200,7 +2200,7 @@ const kt = ({
|
|
|
2200
2200
|
}) => {
|
|
2201
2201
|
Pa({
|
|
2202
2202
|
title: _e("unsavedChanges", r),
|
|
2203
|
-
icon: /* @__PURE__ */ n(
|
|
2203
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
2204
2204
|
centered: !0,
|
|
2205
2205
|
content: _e("confirmCloseWithoutSave", r),
|
|
2206
2206
|
okText: _e("closeWithoutSaving", r),
|
|
@@ -2213,7 +2213,7 @@ const kt = ({
|
|
|
2213
2213
|
} = Ye, gr = (e) => {
|
|
2214
2214
|
Ba({
|
|
2215
2215
|
title: _e("formHasErrors", e),
|
|
2216
|
-
icon: /* @__PURE__ */ n(
|
|
2216
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
2217
2217
|
centered: !0,
|
|
2218
2218
|
content: _e("fillRequiredFields", e)
|
|
2219
2219
|
});
|
|
@@ -2323,9 +2323,9 @@ const kt = ({
|
|
|
2323
2323
|
setActionViewTotalItems: f,
|
|
2324
2324
|
treeView: c,
|
|
2325
2325
|
formView: m,
|
|
2326
|
-
sorter:
|
|
2326
|
+
sorter: p,
|
|
2327
2327
|
setSorter: h,
|
|
2328
|
-
setCurrentItemIndex:
|
|
2328
|
+
setCurrentItemIndex: g,
|
|
2329
2329
|
setResultsActionView: v,
|
|
2330
2330
|
resultsActionView: y,
|
|
2331
2331
|
domain: V,
|
|
@@ -2356,14 +2356,14 @@ const kt = ({
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}), Pe = Fe[0];
|
|
2358
2358
|
E.current = [...Pe], z(Xt(Fe[1]));
|
|
2359
|
-
const Ne = Pe.map((Be) => Be.id), Je =
|
|
2359
|
+
const Ne = Pe.map((Be) => Be.id), Je = p !== void 0 ? Ot({
|
|
2360
2360
|
resultsToSort: Pe,
|
|
2361
|
-
sorter:
|
|
2361
|
+
sorter: p,
|
|
2362
2362
|
fields: { ...c.fields, ...m.fields }
|
|
2363
2363
|
}) : [...E.current];
|
|
2364
|
-
N(Je), Ne.length > 0 ?
|
|
2364
|
+
N(Je), Ne.length > 0 ? g == null || g(0) : g == null || g(void 0);
|
|
2365
2365
|
} else
|
|
2366
|
-
N([]),
|
|
2366
|
+
N([]), g == null || g(void 0);
|
|
2367
2367
|
d.current = !0;
|
|
2368
2368
|
}, [
|
|
2369
2369
|
N,
|
|
@@ -2374,8 +2374,8 @@ const kt = ({
|
|
|
2374
2374
|
V,
|
|
2375
2375
|
c,
|
|
2376
2376
|
m,
|
|
2377
|
-
g,
|
|
2378
2377
|
p,
|
|
2378
|
+
g,
|
|
2379
2379
|
f
|
|
2380
2380
|
]), ce = Ae(
|
|
2381
2381
|
async (oe) => {
|
|
@@ -2389,23 +2389,23 @@ const kt = ({
|
|
|
2389
2389
|
attrs: Pe && { colors: Pe }
|
|
2390
2390
|
});
|
|
2391
2391
|
z(Xt(Be)), E.current = [...Je];
|
|
2392
|
-
const Q =
|
|
2392
|
+
const Q = p !== void 0 ? Ot({
|
|
2393
2393
|
resultsToSort: Je,
|
|
2394
|
-
sorter:
|
|
2394
|
+
sorter: p,
|
|
2395
2395
|
fields: { ...c.fields, ...m.fields }
|
|
2396
2396
|
}) : [...E.current];
|
|
2397
2397
|
if (N(Q), y && Q.length > 0) {
|
|
2398
2398
|
const he = Q.findIndex(
|
|
2399
2399
|
(Ve) => O === Ve.id
|
|
2400
2400
|
);
|
|
2401
|
-
he === -1 ?
|
|
2401
|
+
he === -1 ? g == null || g(0) : g == null || g(he);
|
|
2402
2402
|
} else
|
|
2403
|
-
|
|
2403
|
+
g == null || g(void 0);
|
|
2404
2404
|
const se = await Ne;
|
|
2405
2405
|
B(se), f == null || f(se);
|
|
2406
2406
|
},
|
|
2407
2407
|
[
|
|
2408
|
-
|
|
2408
|
+
g,
|
|
2409
2409
|
y,
|
|
2410
2410
|
N,
|
|
2411
2411
|
O,
|
|
@@ -2414,7 +2414,7 @@ const kt = ({
|
|
|
2414
2414
|
V,
|
|
2415
2415
|
c,
|
|
2416
2416
|
m,
|
|
2417
|
-
|
|
2417
|
+
p,
|
|
2418
2418
|
f,
|
|
2419
2419
|
b,
|
|
2420
2420
|
M,
|
|
@@ -2442,13 +2442,13 @@ const kt = ({
|
|
|
2442
2442
|
y,
|
|
2443
2443
|
d,
|
|
2444
2444
|
f,
|
|
2445
|
-
|
|
2445
|
+
g,
|
|
2446
2446
|
N,
|
|
2447
2447
|
T,
|
|
2448
2448
|
S,
|
|
2449
2449
|
C,
|
|
2450
2450
|
a,
|
|
2451
|
-
|
|
2451
|
+
p,
|
|
2452
2452
|
c
|
|
2453
2453
|
]
|
|
2454
2454
|
), J = Ae(
|
|
@@ -2542,9 +2542,9 @@ const kt = ({
|
|
|
2542
2542
|
setCurrentId: f,
|
|
2543
2543
|
setResults: c,
|
|
2544
2544
|
results: m,
|
|
2545
|
-
currentItemIndex:
|
|
2545
|
+
currentItemIndex: p,
|
|
2546
2546
|
setCurrentItemIndex: h,
|
|
2547
|
-
currentModel:
|
|
2547
|
+
currentModel: g,
|
|
2548
2548
|
sorter: v,
|
|
2549
2549
|
setSorter: y,
|
|
2550
2550
|
totalItems: V,
|
|
@@ -2557,7 +2557,7 @@ const kt = ({
|
|
|
2557
2557
|
limit: C
|
|
2558
2558
|
} = e, [F, S] = x(!1), [L, T] = x(!1), [R, A] = x(!1), [M, I] = x(!0), [k, B] = x(!0), [j, U] = x([]), [W, z] = x(!1), [q, E] = x([]), [N, ee] = x(!1), [le, ce] = x(!0), [ne, J] = x(), [be, Se] = x({}), [Le, fe] = x(C !== void 0 ? C : Pt), [oe, Te] = x(i);
|
|
2559
2559
|
ge(() => {
|
|
2560
|
-
m && m.length > 0 && !
|
|
2560
|
+
m && m.length > 0 && !p && (h == null || h(0), f == null || f(m[0].id));
|
|
2561
2561
|
}, [m]), ge(() => {
|
|
2562
2562
|
fe(C !== void 0 ? C : Pt);
|
|
2563
2563
|
}, [C]), ge(() => {
|
|
@@ -2585,11 +2585,11 @@ const kt = ({
|
|
|
2585
2585
|
onNewClicked: d,
|
|
2586
2586
|
currentId: u,
|
|
2587
2587
|
setCurrentId: f,
|
|
2588
|
-
currentItemIndex:
|
|
2588
|
+
currentItemIndex: p,
|
|
2589
2589
|
setCurrentItemIndex: h,
|
|
2590
2590
|
results: m,
|
|
2591
2591
|
setResults: c,
|
|
2592
|
-
currentModel:
|
|
2592
|
+
currentModel: g,
|
|
2593
2593
|
removingItem: R,
|
|
2594
2594
|
setRemovingItem: A,
|
|
2595
2595
|
formIsLoading: M,
|
|
@@ -2636,7 +2636,7 @@ const kt = ({
|
|
|
2636
2636
|
onChangeTab: l,
|
|
2637
2637
|
onRemoveTab: d,
|
|
2638
2638
|
tabs: u
|
|
2639
|
-
} = e, [f, c] = x(), [m,
|
|
2639
|
+
} = e, [f, c] = x(), [m, p] = x();
|
|
2640
2640
|
return /* @__PURE__ */ n(st.Provider, {
|
|
2641
2641
|
value: {
|
|
2642
2642
|
openAction: r,
|
|
@@ -2649,7 +2649,7 @@ const kt = ({
|
|
|
2649
2649
|
tabs: u,
|
|
2650
2650
|
currentId: m,
|
|
2651
2651
|
currentView: f,
|
|
2652
|
-
setCurrentId:
|
|
2652
|
+
setCurrentId: p,
|
|
2653
2653
|
setCurrentView: c
|
|
2654
2654
|
},
|
|
2655
2655
|
children: t
|
|
@@ -2667,10 +2667,10 @@ const kt = ({
|
|
|
2667
2667
|
} = d || {}, f = me([]), {
|
|
2668
2668
|
t: c
|
|
2669
2669
|
} = K(ye);
|
|
2670
|
-
|
|
2670
|
+
vt(t, () => ({
|
|
2671
2671
|
openActionModal: b
|
|
2672
2672
|
}));
|
|
2673
|
-
const [m,
|
|
2673
|
+
const [m, p] = x(!1), [h, g] = x({
|
|
2674
2674
|
context: {}
|
|
2675
2675
|
});
|
|
2676
2676
|
async function v($) {
|
|
@@ -2694,7 +2694,7 @@ const kt = ({
|
|
|
2694
2694
|
ids: I
|
|
2695
2695
|
} = R || {};
|
|
2696
2696
|
let k = I || [];
|
|
2697
|
-
const B = typeof L == "string" ?
|
|
2697
|
+
const B = typeof L == "string" ? gt({
|
|
2698
2698
|
context: L,
|
|
2699
2699
|
fields: C,
|
|
2700
2700
|
values: F
|
|
@@ -2767,7 +2767,7 @@ const kt = ({
|
|
|
2767
2767
|
context: F
|
|
2768
2768
|
}))[0]);
|
|
2769
2769
|
const T = {
|
|
2770
|
-
...typeof (S == null ? void 0 : S.context) == "string" ?
|
|
2770
|
+
...typeof (S == null ? void 0 : S.context) == "string" ? gt({
|
|
2771
2771
|
context: S.context,
|
|
2772
2772
|
fields: w,
|
|
2773
2773
|
values: {
|
|
@@ -2840,13 +2840,13 @@ const kt = ({
|
|
|
2840
2840
|
formView: C,
|
|
2841
2841
|
context: F,
|
|
2842
2842
|
actionData: S
|
|
2843
|
-
}) : (
|
|
2843
|
+
}) : (g({
|
|
2844
2844
|
domain: $,
|
|
2845
2845
|
model: w,
|
|
2846
2846
|
context: F,
|
|
2847
2847
|
formView: C,
|
|
2848
2848
|
actionData: S
|
|
2849
|
-
}),
|
|
2849
|
+
}), p(!0));
|
|
2850
2850
|
}
|
|
2851
2851
|
async function D({
|
|
2852
2852
|
domain: $,
|
|
@@ -2855,22 +2855,22 @@ const kt = ({
|
|
|
2855
2855
|
context: F,
|
|
2856
2856
|
actionData: S
|
|
2857
2857
|
}) {
|
|
2858
|
-
|
|
2858
|
+
g({
|
|
2859
2859
|
domain: void 0,
|
|
2860
2860
|
model: void 0,
|
|
2861
2861
|
context: {},
|
|
2862
2862
|
formView: void 0,
|
|
2863
2863
|
actionData: void 0
|
|
2864
|
-
}),
|
|
2864
|
+
}), p(!1), await new Promise((L) => setTimeout(L, 300)), g({
|
|
2865
2865
|
domain: $,
|
|
2866
2866
|
model: w,
|
|
2867
2867
|
context: F,
|
|
2868
2868
|
formView: C,
|
|
2869
2869
|
actionData: S
|
|
2870
|
-
}),
|
|
2870
|
+
}), p(!0);
|
|
2871
2871
|
}
|
|
2872
2872
|
async function _() {
|
|
2873
|
-
vr(f.current), f.current = [],
|
|
2873
|
+
vr(f.current), f.current = [], p(!1), g({
|
|
2874
2874
|
domain: void 0,
|
|
2875
2875
|
model: void 0,
|
|
2876
2876
|
context: {},
|
|
@@ -2901,7 +2901,7 @@ const kt = ({
|
|
|
2901
2901
|
visible: m,
|
|
2902
2902
|
onSubmitSucceed: _,
|
|
2903
2903
|
onCancel: () => {
|
|
2904
|
-
vr(f.current), f.current = [],
|
|
2904
|
+
vr(f.current), f.current = [], p(!1), g({
|
|
2905
2905
|
domain: void 0,
|
|
2906
2906
|
model: void 0,
|
|
2907
2907
|
context: {},
|
|
@@ -2971,7 +2971,7 @@ async function tl({
|
|
|
2971
2971
|
initialView: a
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
const nl =
|
|
2974
|
+
const nl = yt(el), rl = ({
|
|
2975
2975
|
error: e,
|
|
2976
2976
|
className: t
|
|
2977
2977
|
}) => {
|
|
@@ -3009,9 +3009,9 @@ function il(e, t) {
|
|
|
3009
3009
|
readOnly: f = !1,
|
|
3010
3010
|
mustClearAfterSave: c = !1,
|
|
3011
3011
|
submitMode: m = "api",
|
|
3012
|
-
values:
|
|
3012
|
+
values: p,
|
|
3013
3013
|
formView: h,
|
|
3014
|
-
postSaveAction:
|
|
3014
|
+
postSaveAction: g,
|
|
3015
3015
|
insideButtonModal: v = !1,
|
|
3016
3016
|
parentContext: y = {},
|
|
3017
3017
|
actionDomain: V,
|
|
@@ -3037,7 +3037,7 @@ function il(e, t) {
|
|
|
3037
3037
|
processAction: Be,
|
|
3038
3038
|
globalValues: Q
|
|
3039
3039
|
} = Je || {};
|
|
3040
|
-
|
|
3040
|
+
vt(t, () => ({
|
|
3041
3041
|
submitForm: qt,
|
|
3042
3042
|
getFields: je,
|
|
3043
3043
|
getValues: Ee,
|
|
@@ -3056,7 +3056,7 @@ function il(e, t) {
|
|
|
3056
3056
|
}
|
|
3057
3057
|
(i === void 0 && k || i !== void 0 && k && i < 0) && (E.current = void 0, R(void 0)), nt();
|
|
3058
3058
|
}
|
|
3059
|
-
}, [i, r,
|
|
3059
|
+
}, [i, r, p, h, O]), ge(() => {
|
|
3060
3060
|
z && (gn({
|
|
3061
3061
|
elementHasLostFocus: !0
|
|
3062
3062
|
}), q(!1));
|
|
@@ -3088,7 +3088,7 @@ function il(e, t) {
|
|
|
3088
3088
|
let te = {};
|
|
3089
3089
|
return Object.keys(G).forEach((re) => {
|
|
3090
3090
|
const De = G[re];
|
|
3091
|
-
Y[re] && Y[re].type === "many2one" && De && Array.isArray(De) && De.length === 2 ? te[re] = De[0] : Y[re] && (Y[re].type === "one2many" || Y[re].type === "many2many") && De && De.items ? te[re] = De.items.filter((
|
|
3091
|
+
Y[re] && Y[re].type === "many2one" && De && Array.isArray(De) && De.length === 2 ? te[re] = De[0] : Y[re] && (Y[re].type === "one2many" || Y[re].type === "many2many") && De && De.items ? te[re] = De.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : te[re] = De;
|
|
3092
3092
|
}), te;
|
|
3093
3093
|
}
|
|
3094
3094
|
function Xe() {
|
|
@@ -3170,7 +3170,7 @@ function il(e, t) {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
}, rt = async (G) => {
|
|
3172
3172
|
let Y, te, re, De;
|
|
3173
|
-
ve == null || ve(!0), L(void 0), G ? (te = G.fields, re = G.arch) : (te = k, re = M),
|
|
3173
|
+
ve == null || ve(!0), L(void 0), G ? (te = G.fields, re = G.arch) : (te = k, re = M), p ? Y = p : {
|
|
3174
3174
|
values: Y,
|
|
3175
3175
|
defaultGetCalled: De
|
|
3176
3176
|
} = await Ao({
|
|
@@ -3218,10 +3218,10 @@ function il(e, t) {
|
|
|
3218
3218
|
reset: te,
|
|
3219
3219
|
isDefaultGet: re = !1
|
|
3220
3220
|
}) => {
|
|
3221
|
-
const
|
|
3221
|
+
const ht = {
|
|
3222
3222
|
...te ? {} : A.getFieldsValue(!0),
|
|
3223
3223
|
...G
|
|
3224
|
-
}, yn = Tt(
|
|
3224
|
+
}, yn = Tt(ht, Y), Wo = Object.keys(Y).map((vn) => {
|
|
3225
3225
|
const Yo = yn[vn] !== void 0 ? yn[vn] : void 0;
|
|
3226
3226
|
return {
|
|
3227
3227
|
name: vn,
|
|
@@ -3293,7 +3293,7 @@ function il(e, t) {
|
|
|
3293
3293
|
});
|
|
3294
3294
|
E.current = re, N.current = te;
|
|
3295
3295
|
}
|
|
3296
|
-
|
|
3296
|
+
g && await g([ue()]), !v && Y && (se == null || se(ue(), Ee(), Xe()));
|
|
3297
3297
|
}, Ro = async (G) => {
|
|
3298
3298
|
const {
|
|
3299
3299
|
callOnSubmitSucceed: Y = !0
|
|
@@ -3420,9 +3420,9 @@ function il(e, t) {
|
|
|
3420
3420
|
if (re.warning && re.warning.title && re.warning.message && !le.current) {
|
|
3421
3421
|
const {
|
|
3422
3422
|
title: De,
|
|
3423
|
-
message:
|
|
3423
|
+
message: ht
|
|
3424
3424
|
} = re.warning;
|
|
3425
|
-
le.current = !0, ja(De,
|
|
3425
|
+
le.current = !0, ja(De, ht, () => {
|
|
3426
3426
|
le.current = !1;
|
|
3427
3427
|
});
|
|
3428
3428
|
}
|
|
@@ -3458,7 +3458,7 @@ function il(e, t) {
|
|
|
3458
3458
|
se == null || se(ue(), Ee(), Xe());
|
|
3459
3459
|
else if (te.type) {
|
|
3460
3460
|
let re = {};
|
|
3461
|
-
te.context && (re =
|
|
3461
|
+
te.context && (re = gt({
|
|
3462
3462
|
context: te.context,
|
|
3463
3463
|
fields: k,
|
|
3464
3464
|
values: Ee()
|
|
@@ -3623,7 +3623,7 @@ function il(e, t) {
|
|
|
3623
3623
|
})
|
|
3624
3624
|
}) : null;
|
|
3625
3625
|
}
|
|
3626
|
-
const Yt =
|
|
3626
|
+
const Yt = yt(il), Gt = (e) => {
|
|
3627
3627
|
const {
|
|
3628
3628
|
visible: t,
|
|
3629
3629
|
id: r,
|
|
@@ -3635,7 +3635,7 @@ const Yt = vt(il), Gt = (e) => {
|
|
|
3635
3635
|
...d
|
|
3636
3636
|
} = e, {
|
|
3637
3637
|
modalWidth: u
|
|
3638
|
-
} = dn(), [f, c] = x(i), [m,
|
|
3638
|
+
} = dn(), [f, c] = x(i), [m, p] = x(!1), [h, g] = x();
|
|
3639
3639
|
ge(() => {
|
|
3640
3640
|
a && v();
|
|
3641
3641
|
}, [l, a]);
|
|
@@ -3651,7 +3651,7 @@ const Yt = vt(il), Gt = (e) => {
|
|
|
3651
3651
|
view_id: _,
|
|
3652
3652
|
res_id: b || !1
|
|
3653
3653
|
});
|
|
3654
|
-
|
|
3654
|
+
p($ !== !1), $ !== !1 && g($);
|
|
3655
3655
|
}
|
|
3656
3656
|
async function y() {
|
|
3657
3657
|
if (m && h)
|
|
@@ -3672,7 +3672,7 @@ const Yt = vt(il), Gt = (e) => {
|
|
|
3672
3672
|
res_id: b || !1
|
|
3673
3673
|
});
|
|
3674
3674
|
}
|
|
3675
|
-
|
|
3675
|
+
p(!m);
|
|
3676
3676
|
}
|
|
3677
3677
|
function V() {
|
|
3678
3678
|
return /* @__PURE__ */ P(Ce, {
|
|
@@ -3896,7 +3896,7 @@ const {
|
|
|
3896
3896
|
defaultSeed: fl
|
|
3897
3897
|
} = Me, ml = ul(fl), {
|
|
3898
3898
|
Option: hl
|
|
3899
|
-
} =
|
|
3899
|
+
} = wt, pl = (e) => {
|
|
3900
3900
|
const {
|
|
3901
3901
|
ooui: t
|
|
3902
3902
|
} = e, {
|
|
@@ -3923,15 +3923,15 @@ const {
|
|
|
3923
3923
|
const [m] = c;
|
|
3924
3924
|
return i ? !i.includes(m) : !0;
|
|
3925
3925
|
}).map((c) => {
|
|
3926
|
-
const [m,
|
|
3926
|
+
const [m, p] = c;
|
|
3927
3927
|
return /* @__PURE__ */ n(hl, {
|
|
3928
|
-
value:
|
|
3929
|
-
children:
|
|
3928
|
+
value: p,
|
|
3929
|
+
children: p
|
|
3930
3930
|
}, m);
|
|
3931
|
-
}), u = a && !s ? yl :
|
|
3931
|
+
}), u = a && !s ? yl : wt;
|
|
3932
3932
|
function f(c) {
|
|
3933
|
-
const m = c.map((
|
|
3934
|
-
const h = l.find(([
|
|
3933
|
+
const m = c.map((p) => {
|
|
3934
|
+
const h = l.find(([g, v]) => p === v);
|
|
3935
3935
|
return h && h[0];
|
|
3936
3936
|
});
|
|
3937
3937
|
if (m.length === 0) {
|
|
@@ -3948,7 +3948,7 @@ const {
|
|
|
3948
3948
|
showArrow: !0,
|
|
3949
3949
|
children: d
|
|
3950
3950
|
});
|
|
3951
|
-
}, yl = jt(
|
|
3951
|
+
}, yl = jt(wt)`
|
|
3952
3952
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
3953
3953
|
background-color: ${ml.colorPrimaryBg};
|
|
3954
3954
|
}
|
|
@@ -4097,9 +4097,9 @@ function co(e) {
|
|
|
4097
4097
|
setSearchFilterHeight: f,
|
|
4098
4098
|
searchError: c,
|
|
4099
4099
|
searchValues: m,
|
|
4100
|
-
showLimitOptions:
|
|
4100
|
+
showLimitOptions: p = !0,
|
|
4101
4101
|
formXml: h
|
|
4102
|
-
} = e, [
|
|
4102
|
+
} = e, [g, v] = x(), [y, V] = x(), [O, b] = x(!1), D = me(), {
|
|
4103
4103
|
token: _
|
|
4104
4104
|
} = xl(), [$] = ot.useForm();
|
|
4105
4105
|
ge(() => {
|
|
@@ -4108,7 +4108,7 @@ function co(e) {
|
|
|
4108
4108
|
const w = () => {
|
|
4109
4109
|
if (!y)
|
|
4110
4110
|
return;
|
|
4111
|
-
const S = O ? y :
|
|
4111
|
+
const S = O ? y : g, L = S == null ? void 0 : S.rows;
|
|
4112
4112
|
return L == null ? void 0 : L.map((T, R) => /* @__PURE__ */ n(Ce, {
|
|
4113
4113
|
children: T.map((A, M) => /* @__PURE__ */ n(ae, {
|
|
4114
4114
|
xs: 24,
|
|
@@ -4120,7 +4120,7 @@ function co(e) {
|
|
|
4120
4120
|
}, M))
|
|
4121
4121
|
}, R));
|
|
4122
4122
|
};
|
|
4123
|
-
|
|
4123
|
+
bt(() => {
|
|
4124
4124
|
b(!1), D.current = new oi(r, t, h), D.current.parse(), v(D.current._simpleSearchContainer), V(D.current._advancedSearchContainer);
|
|
4125
4125
|
}, [t, r]);
|
|
4126
4126
|
const C = w(), F = (S) => {
|
|
@@ -4163,7 +4163,7 @@ function co(e) {
|
|
|
4163
4163
|
offset: a,
|
|
4164
4164
|
limit: l
|
|
4165
4165
|
},
|
|
4166
|
-
children: [C, O &&
|
|
4166
|
+
children: [C, O && p && /* @__PURE__ */ n(bl, {
|
|
4167
4167
|
onLimitChange: d
|
|
4168
4168
|
}), /* @__PURE__ */ n(wl, {
|
|
4169
4169
|
advancedFilter: O,
|
|
@@ -4314,11 +4314,11 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4314
4314
|
id: t,
|
|
4315
4315
|
model: r,
|
|
4316
4316
|
context: i = {}
|
|
4317
|
-
} = e, [o, s] = x(!1), [a, l] = x(!1), [d, u] = x(!1), [f, c] = x(), [m,
|
|
4317
|
+
} = e, [o, s] = x(!1), [a, l] = x(!1), [d, u] = x(!1), [f, c] = x(), [m, p] = x(), {
|
|
4318
4318
|
t: h
|
|
4319
|
-
} = K(ye),
|
|
4319
|
+
} = K(ye), g = K(st), {
|
|
4320
4320
|
openRelate: v
|
|
4321
|
-
} =
|
|
4321
|
+
} = g || {}, y = K(Rt), {
|
|
4322
4322
|
processAction: V
|
|
4323
4323
|
} = y || {};
|
|
4324
4324
|
if (!t)
|
|
@@ -4341,7 +4341,7 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4341
4341
|
fields: S,
|
|
4342
4342
|
context: i
|
|
4343
4343
|
}))[0];
|
|
4344
|
-
|
|
4344
|
+
p({
|
|
4345
4345
|
...Tt(T, S),
|
|
4346
4346
|
active_id: t
|
|
4347
4347
|
}), u(!1);
|
|
@@ -4473,13 +4473,13 @@ const Tl = (e) => /* @__PURE__ */ n(we, {
|
|
|
4473
4473
|
if (!t || t && o)
|
|
4474
4474
|
return;
|
|
4475
4475
|
l(!0);
|
|
4476
|
-
const
|
|
4476
|
+
const p = await H.getHandler().execute({
|
|
4477
4477
|
action: "name_get",
|
|
4478
4478
|
payload: [f],
|
|
4479
4479
|
model: d,
|
|
4480
4480
|
context: r
|
|
4481
4481
|
});
|
|
4482
|
-
s(
|
|
4482
|
+
s(p[0][1]), l(!1);
|
|
4483
4483
|
}, [t, o]);
|
|
4484
4484
|
if (ge(() => {
|
|
4485
4485
|
c();
|
|
@@ -4503,8 +4503,8 @@ var mo = { exports: {} };
|
|
|
4503
4503
|
(function(e, t) {
|
|
4504
4504
|
(function(r, i) {
|
|
4505
4505
|
e.exports = i();
|
|
4506
|
-
})(
|
|
4507
|
-
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter",
|
|
4506
|
+
})(pt, function() {
|
|
4507
|
+
var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter", p = "year", h = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
4508
4508
|
var R = ["th", "st", "nd", "rd"], A = T % 100;
|
|
4509
4509
|
return "[" + T + (R[(A - 20) % 10] || R[A] || R[0]) + "]";
|
|
4510
4510
|
} }, O = function(T, R, A) {
|
|
@@ -4521,7 +4521,7 @@ var mo = { exports: {} };
|
|
|
4521
4521
|
}, a: function(T) {
|
|
4522
4522
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
4523
4523
|
}, p: function(T) {
|
|
4524
|
-
return { M: c, y:
|
|
4524
|
+
return { M: c, y: p, w: f, d: u, D: h, h: d, m: l, s: a, ms: s, Q: m }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4525
4525
|
}, u: function(T) {
|
|
4526
4526
|
return T === void 0;
|
|
4527
4527
|
} }, D = "en", _ = {};
|
|
@@ -4581,7 +4581,7 @@ var mo = { exports: {} };
|
|
|
4581
4581
|
}, R.$utils = function() {
|
|
4582
4582
|
return F;
|
|
4583
4583
|
}, R.isValid = function() {
|
|
4584
|
-
return this.$d.toString() !==
|
|
4584
|
+
return this.$d.toString() !== g;
|
|
4585
4585
|
}, R.isSame = function(A, M) {
|
|
4586
4586
|
var I = C(A);
|
|
4587
4587
|
return this.startOf(M) <= I && I <= this.endOf(M);
|
|
@@ -4603,7 +4603,7 @@ var mo = { exports: {} };
|
|
|
4603
4603
|
return F.w(I.toDate()[le].apply(I.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), I);
|
|
4604
4604
|
}, W = this.$W, z = this.$M, q = this.$D, E = "set" + (this.$u ? "UTC" : "");
|
|
4605
4605
|
switch (B) {
|
|
4606
|
-
case
|
|
4606
|
+
case p:
|
|
4607
4607
|
return k ? j(1, 0) : j(31, 11);
|
|
4608
4608
|
case c:
|
|
4609
4609
|
return k ? j(1, z) : j(0, z + 1);
|
|
@@ -4625,8 +4625,8 @@ var mo = { exports: {} };
|
|
|
4625
4625
|
}, R.endOf = function(A) {
|
|
4626
4626
|
return this.startOf(A, !1);
|
|
4627
4627
|
}, R.$set = function(A, M) {
|
|
4628
|
-
var I, k = F.p(A), B = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[u] = B + "Date", I[h] = B + "Date", I[c] = B + "Month", I[
|
|
4629
|
-
if (k === c || k ===
|
|
4628
|
+
var I, k = F.p(A), B = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[u] = B + "Date", I[h] = B + "Date", I[c] = B + "Month", I[p] = B + "FullYear", I[d] = B + "Hours", I[l] = B + "Minutes", I[a] = B + "Seconds", I[s] = B + "Milliseconds", I)[k], U = k === u ? this.$D + (M - this.$W) : M;
|
|
4629
|
+
if (k === c || k === p) {
|
|
4630
4630
|
var W = this.clone().set(h, 1);
|
|
4631
4631
|
W.$d[j](U), W.init(), this.$d = W.set(h, Math.min(this.$D, W.daysInMonth())).$d;
|
|
4632
4632
|
} else
|
|
@@ -4645,8 +4645,8 @@ var mo = { exports: {} };
|
|
|
4645
4645
|
};
|
|
4646
4646
|
if (B === c)
|
|
4647
4647
|
return this.set(c, this.$M + A);
|
|
4648
|
-
if (B ===
|
|
4649
|
-
return this.set(
|
|
4648
|
+
if (B === p)
|
|
4649
|
+
return this.set(p, this.$y + A);
|
|
4650
4650
|
if (B === u)
|
|
4651
4651
|
return j(1);
|
|
4652
4652
|
if (B === f)
|
|
@@ -4658,7 +4658,7 @@ var mo = { exports: {} };
|
|
|
4658
4658
|
}, R.format = function(A) {
|
|
4659
4659
|
var M = this, I = this.$locale();
|
|
4660
4660
|
if (!this.isValid())
|
|
4661
|
-
return I.invalidDate ||
|
|
4661
|
+
return I.invalidDate || g;
|
|
4662
4662
|
var k = A || "YYYY-MM-DDTHH:mm:ssZ", B = F.z(this), j = this.$H, U = this.$m, W = this.$M, z = I.weekdays, q = I.months, E = function(ce, ne, J, be) {
|
|
4663
4663
|
return ce && (ce[ne] || ce(M, k)) || J[ne].slice(0, be);
|
|
4664
4664
|
}, N = function(ce) {
|
|
@@ -4674,7 +4674,7 @@ var mo = { exports: {} };
|
|
|
4674
4674
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4675
4675
|
}, R.diff = function(A, M, I) {
|
|
4676
4676
|
var k, B = F.p(M), j = C(A), U = (j.utcOffset() - this.utcOffset()) * i, W = this - j, z = F.m(this, j);
|
|
4677
|
-
return z = (k = {}, k[
|
|
4677
|
+
return z = (k = {}, k[p] = z / 12, k[c] = z, k[m] = z / 3, k[f] = (W - U) / 6048e5, k[u] = (W - U) / 864e5, k[d] = W / o, k[l] = W / i, k[a] = W / r, k)[B] || W, I ? z : F.a(z);
|
|
4678
4678
|
}, R.daysInMonth = function() {
|
|
4679
4679
|
return this.endOf(c).$D;
|
|
4680
4680
|
}, R.$locale = function() {
|
|
@@ -4696,7 +4696,7 @@ var mo = { exports: {} };
|
|
|
4696
4696
|
return this.$d.toUTCString();
|
|
4697
4697
|
}, T;
|
|
4698
4698
|
}(), L = S.prototype;
|
|
4699
|
-
return C.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", d], ["$W", u], ["$M", c], ["$y",
|
|
4699
|
+
return C.prototype = L, [["$ms", s], ["$s", a], ["$m", l], ["$H", d], ["$W", u], ["$M", c], ["$y", p], ["$D", h]].forEach(function(T) {
|
|
4700
4700
|
L[T[1]] = function(R) {
|
|
4701
4701
|
return this.$g(R, T[0], T[1]);
|
|
4702
4702
|
};
|
|
@@ -4707,7 +4707,7 @@ var mo = { exports: {} };
|
|
|
4707
4707
|
}, C.en = _[D], C.Ls = _, C.p = {}, C;
|
|
4708
4708
|
});
|
|
4709
4709
|
})(mo);
|
|
4710
|
-
const
|
|
4710
|
+
const xt = mo.exports, Il = (e) => {
|
|
4711
4711
|
console.log("Avatar Props", e);
|
|
4712
4712
|
const {
|
|
4713
4713
|
ooui: t,
|
|
@@ -4733,7 +4733,7 @@ var ho = { exports: {} };
|
|
|
4733
4733
|
(function(e, t) {
|
|
4734
4734
|
(function(r, i) {
|
|
4735
4735
|
e.exports = i();
|
|
4736
|
-
})(
|
|
4736
|
+
})(pt, function() {
|
|
4737
4737
|
return function(r, i) {
|
|
4738
4738
|
i.prototype.weekday = function(o) {
|
|
4739
4739
|
var s = this.$locale().weekStart || 0, a = this.$W, l = (a < s ? a + 7 : a) - s;
|
|
@@ -4747,15 +4747,15 @@ var po = { exports: {} };
|
|
|
4747
4747
|
(function(e, t) {
|
|
4748
4748
|
(function(r, i) {
|
|
4749
4749
|
e.exports = i();
|
|
4750
|
-
})(
|
|
4750
|
+
})(pt, function() {
|
|
4751
4751
|
return function(r, i, o) {
|
|
4752
4752
|
var s = i.prototype, a = function(c) {
|
|
4753
4753
|
return c && (c.indexOf ? c : c.s);
|
|
4754
|
-
}, l = function(c, m,
|
|
4755
|
-
var v = c.name ? c : c.$locale(), y = a(v[m]), V = a(v[
|
|
4754
|
+
}, l = function(c, m, p, h, g) {
|
|
4755
|
+
var v = c.name ? c : c.$locale(), y = a(v[m]), V = a(v[p]), O = y || V.map(function(D) {
|
|
4756
4756
|
return D.slice(0, h);
|
|
4757
4757
|
});
|
|
4758
|
-
if (!
|
|
4758
|
+
if (!g)
|
|
4759
4759
|
return O;
|
|
4760
4760
|
var b = v.weekStart;
|
|
4761
4761
|
return O.map(function(D, _) {
|
|
@@ -4764,9 +4764,9 @@ var po = { exports: {} };
|
|
|
4764
4764
|
}, d = function() {
|
|
4765
4765
|
return o.Ls[o.locale()];
|
|
4766
4766
|
}, u = function(c, m) {
|
|
4767
|
-
return c.formats[m] || function(
|
|
4768
|
-
return
|
|
4769
|
-
return
|
|
4767
|
+
return c.formats[m] || function(p) {
|
|
4768
|
+
return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(h, g, v) {
|
|
4769
|
+
return g || v.slice(1);
|
|
4770
4770
|
});
|
|
4771
4771
|
}(c.formats[m.toUpperCase()]);
|
|
4772
4772
|
}, f = function() {
|
|
@@ -4823,8 +4823,8 @@ var po = { exports: {} };
|
|
|
4823
4823
|
const Vl = po.exports, {
|
|
4824
4824
|
useToken: Al
|
|
4825
4825
|
} = Me;
|
|
4826
|
-
|
|
4827
|
-
|
|
4826
|
+
xt.extend(Dl);
|
|
4827
|
+
xt.extend(Vl);
|
|
4828
4828
|
const lt = {
|
|
4829
4829
|
date: {
|
|
4830
4830
|
placeholder: "__/__/____",
|
|
@@ -4865,17 +4865,15 @@ const lt = {
|
|
|
4865
4865
|
token: d
|
|
4866
4866
|
} = Al(), u = l && !a ? {
|
|
4867
4867
|
backgroundColor: d.colorPrimaryBg
|
|
4868
|
-
} : void 0, f = o ? "time" : "date", c = (
|
|
4869
|
-
r == null || r(
|
|
4870
|
-
}, m = (
|
|
4871
|
-
if (
|
|
4868
|
+
} : void 0, f = o ? "time" : "date", c = (h) => {
|
|
4869
|
+
r == null || r(h);
|
|
4870
|
+
}, m = (h) => {
|
|
4871
|
+
if (h === null) {
|
|
4872
4872
|
c(void 0);
|
|
4873
4873
|
return;
|
|
4874
4874
|
}
|
|
4875
|
-
c(
|
|
4876
|
-
},
|
|
4877
|
-
defaultValue: mt("00:00:00", "HH:mm:ss")
|
|
4878
|
-
} : void 0, h = t ? mt(t, lt[f].dateInternalFormat) : void 0;
|
|
4875
|
+
c(h.format(lt[f].dateInternalFormat));
|
|
4876
|
+
}, p = t ? xt(t, lt[f].dateInternalFormat) : void 0;
|
|
4879
4877
|
return /* @__PURE__ */ n(Rn, {
|
|
4880
4878
|
style: {
|
|
4881
4879
|
width: "100%",
|
|
@@ -4885,9 +4883,9 @@ const lt = {
|
|
|
4885
4883
|
disabled: a,
|
|
4886
4884
|
id: s,
|
|
4887
4885
|
picker: "date",
|
|
4888
|
-
showTime:
|
|
4886
|
+
showTime: o,
|
|
4889
4887
|
format: lt[f].dateDisplayFormat,
|
|
4890
|
-
value:
|
|
4888
|
+
value: p,
|
|
4891
4889
|
onChange: m
|
|
4892
4890
|
});
|
|
4893
4891
|
}, Rl = (e) => /* @__PURE__ */ n("div", {
|
|
@@ -4907,14 +4905,14 @@ const lt = {
|
|
|
4907
4905
|
}), $l = (e) => {
|
|
4908
4906
|
if (!e || e && e.length === 0)
|
|
4909
4907
|
return /* @__PURE__ */ n(Z, {});
|
|
4910
|
-
const t =
|
|
4908
|
+
const t = xt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
4911
4909
|
return /* @__PURE__ */ n(Z, {
|
|
4912
4910
|
children: t
|
|
4913
4911
|
});
|
|
4914
4912
|
}, Nl = (e) => {
|
|
4915
4913
|
if (!e || e && e.length === 0)
|
|
4916
4914
|
return /* @__PURE__ */ n(Z, {});
|
|
4917
|
-
const t =
|
|
4915
|
+
const t = xt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
4918
4916
|
return /* @__PURE__ */ n(Z, {
|
|
4919
4917
|
children: t
|
|
4920
4918
|
});
|
|
@@ -4969,9 +4967,9 @@ function mn(e) {
|
|
|
4969
4967
|
rowSelection: f,
|
|
4970
4968
|
scrollY: c,
|
|
4971
4969
|
colorsForResults: m = {},
|
|
4972
|
-
onChangeSort:
|
|
4970
|
+
onChangeSort: p,
|
|
4973
4971
|
sorter: h,
|
|
4974
|
-
onFetchChildrenForRecord:
|
|
4972
|
+
onFetchChildrenForRecord: g,
|
|
4975
4973
|
childField: v,
|
|
4976
4974
|
rootTree: y = !1,
|
|
4977
4975
|
context: V
|
|
@@ -5067,13 +5065,13 @@ function mn(e) {
|
|
|
5067
5065
|
},
|
|
5068
5066
|
onRowDoubleClick: d,
|
|
5069
5067
|
onRowSelectionChange: f == null ? void 0 : f.onChange,
|
|
5070
|
-
onChangeSort:
|
|
5068
|
+
onChangeSort: p,
|
|
5071
5069
|
sorter: h,
|
|
5072
|
-
expandableOpts:
|
|
5070
|
+
expandableOpts: g ? {
|
|
5073
5071
|
expandIcon: li,
|
|
5074
5072
|
collapseIcon: ci,
|
|
5075
5073
|
loadingIcon: et,
|
|
5076
|
-
onFetchChildrenForRecord:
|
|
5074
|
+
onFetchChildrenForRecord: g,
|
|
5077
5075
|
childField: v
|
|
5078
5076
|
} : void 0
|
|
5079
5077
|
}), k()]
|
|
@@ -5092,7 +5090,7 @@ function Yl(e, t) {
|
|
|
5092
5090
|
rootTree: f = !1,
|
|
5093
5091
|
parentContext: c = {},
|
|
5094
5092
|
onChangeSelectedRowKeys: m
|
|
5095
|
-
} = e, [
|
|
5093
|
+
} = e, [p, h] = x(!1), [g, v] = x(!1), y = me(!1), [V, O] = x(), [b, D] = x(), [_, $] = x(), [w, C] = x(), [F, S] = x(200), L = me(), {
|
|
5096
5094
|
height: T
|
|
5097
5095
|
} = dn(), R = K(Rt), {
|
|
5098
5096
|
processAction: A
|
|
@@ -5156,15 +5154,15 @@ function Yl(e, t) {
|
|
|
5156
5154
|
limit: Le,
|
|
5157
5155
|
setLimit: fe
|
|
5158
5156
|
});
|
|
5159
|
-
|
|
5157
|
+
vt(t, () => ({
|
|
5160
5158
|
refreshResults: () => {
|
|
5161
5159
|
y.current = !1, ve();
|
|
5162
5160
|
},
|
|
5163
5161
|
getFields: () => b == null ? void 0 : b.fields,
|
|
5164
5162
|
getDomain: () => d
|
|
5165
5163
|
})), ge(() => {
|
|
5166
|
-
!
|
|
5167
|
-
}, [Je, Be,
|
|
5164
|
+
!g || u && (y.current = !1, ve());
|
|
5165
|
+
}, [Je, Be, g, u, a]);
|
|
5168
5166
|
const Ee = async () => {
|
|
5169
5167
|
v(!1), h(!0), C(void 0), J == null || J(!0);
|
|
5170
5168
|
try {
|
|
@@ -5289,10 +5287,10 @@ function Yl(e, t) {
|
|
|
5289
5287
|
style: u ? {} : {
|
|
5290
5288
|
display: "none"
|
|
5291
5289
|
},
|
|
5292
|
-
children:
|
|
5290
|
+
children: p ? /* @__PURE__ */ n(ke, {}) : ie()
|
|
5293
5291
|
});
|
|
5294
5292
|
}
|
|
5295
|
-
const yo =
|
|
5293
|
+
const yo = yt(Yl), vo = (e) => {
|
|
5296
5294
|
const {
|
|
5297
5295
|
visible: t,
|
|
5298
5296
|
onCloseModal: r,
|
|
@@ -5306,7 +5304,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5306
5304
|
modalHeight: c
|
|
5307
5305
|
} = dn(), {
|
|
5308
5306
|
t: m
|
|
5309
|
-
} = K(ye), [
|
|
5307
|
+
} = K(ye), [p, h] = x([]), g = async () => {
|
|
5310
5308
|
await new Promise((O) => setTimeout(O, 5)), r();
|
|
5311
5309
|
}, v = async (O) => {
|
|
5312
5310
|
const {
|
|
@@ -5315,11 +5313,11 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5315
5313
|
i([b]);
|
|
5316
5314
|
};
|
|
5317
5315
|
function y() {
|
|
5318
|
-
if (
|
|
5319
|
-
|
|
5316
|
+
if (p.length === 0) {
|
|
5317
|
+
g();
|
|
5320
5318
|
return;
|
|
5321
5319
|
}
|
|
5322
|
-
i(
|
|
5320
|
+
i(p);
|
|
5323
5321
|
}
|
|
5324
5322
|
const V = () => /* @__PURE__ */ P(Z, {
|
|
5325
5323
|
children: [/* @__PURE__ */ n(yo, {
|
|
@@ -5350,7 +5348,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5350
5348
|
children: m("ok")
|
|
5351
5349
|
}), /* @__PURE__ */ n(Ie, {
|
|
5352
5350
|
icon: /* @__PURE__ */ n(Ht, {}),
|
|
5353
|
-
onClick:
|
|
5351
|
+
onClick: g,
|
|
5354
5352
|
children: m("cancel")
|
|
5355
5353
|
})]
|
|
5356
5354
|
})
|
|
@@ -5363,7 +5361,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5363
5361
|
width: f,
|
|
5364
5362
|
open: t && !d,
|
|
5365
5363
|
closable: !0,
|
|
5366
|
-
onCancel:
|
|
5364
|
+
onCancel: g,
|
|
5367
5365
|
footer: null,
|
|
5368
5366
|
destroyOnClose: !0,
|
|
5369
5367
|
maskClosable: !1,
|
|
@@ -5373,10 +5371,10 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5373
5371
|
visible: d,
|
|
5374
5372
|
parentContext: l,
|
|
5375
5373
|
onSubmitSucceed: (O) => {
|
|
5376
|
-
u(!1),
|
|
5374
|
+
u(!1), g(), i([O]);
|
|
5377
5375
|
},
|
|
5378
5376
|
onCancel: () => {
|
|
5379
|
-
u(!1),
|
|
5377
|
+
u(!1), g();
|
|
5380
5378
|
}
|
|
5381
5379
|
})]
|
|
5382
5380
|
});
|
|
@@ -5385,7 +5383,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5385
5383
|
} = Ye, en = (e) => {
|
|
5386
5384
|
Gl({
|
|
5387
5385
|
title: "Error",
|
|
5388
|
-
icon: /* @__PURE__ */ n(
|
|
5386
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
5389
5387
|
centered: !0,
|
|
5390
5388
|
content: e
|
|
5391
5389
|
});
|
|
@@ -5428,7 +5426,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5428
5426
|
domain: u
|
|
5429
5427
|
} = i, f = o && !a ? {
|
|
5430
5428
|
backgroundColor: wo.colorPrimaryBg
|
|
5431
|
-
} : void 0, [c, m] = x(!1), [
|
|
5429
|
+
} : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, V] = x(), O = me(!1), [b, D] = x(""), _ = me(), $ = K(Re), {
|
|
5432
5430
|
domain: w,
|
|
5433
5431
|
getValues: C,
|
|
5434
5432
|
getFields: F,
|
|
@@ -5445,7 +5443,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5445
5443
|
}, B = (N) => {
|
|
5446
5444
|
_.current = N.target.value, k([void 0, ""]);
|
|
5447
5445
|
}, j = async () => {
|
|
5448
|
-
if (!
|
|
5446
|
+
if (!g && b !== I) {
|
|
5449
5447
|
if (await new Promise((N) => setTimeout(N, 100)), O.current) {
|
|
5450
5448
|
k([void 0, ""]);
|
|
5451
5449
|
return;
|
|
@@ -5567,8 +5565,8 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5567
5565
|
paddingLeft: 0
|
|
5568
5566
|
},
|
|
5569
5567
|
children: /* @__PURE__ */ n(Ie, {
|
|
5570
|
-
icon:
|
|
5571
|
-
disabled: a ||
|
|
5568
|
+
icon: g ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(Bn, {}),
|
|
5569
|
+
disabled: a || g,
|
|
5572
5570
|
onClick: () => {
|
|
5573
5571
|
O.current = !0, U(I);
|
|
5574
5572
|
},
|
|
@@ -5600,7 +5598,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5600
5598
|
...l
|
|
5601
5599
|
},
|
|
5602
5600
|
id: t && t[0],
|
|
5603
|
-
visible:
|
|
5601
|
+
visible: p,
|
|
5604
5602
|
onSubmitSucceed: (N) => {
|
|
5605
5603
|
h(!1), W(N);
|
|
5606
5604
|
},
|
|
@@ -5646,7 +5644,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5646
5644
|
field: u,
|
|
5647
5645
|
operator: f,
|
|
5648
5646
|
manualIds: c
|
|
5649
|
-
} = e, [m,
|
|
5647
|
+
} = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [V, O] = x(), [b, D] = x(0), [_, $] = x(0), [w, C] = x(), [F, S] = x(), [L, T] = x();
|
|
5650
5648
|
ge(() => {
|
|
5651
5649
|
M();
|
|
5652
5650
|
}, [t, o]);
|
|
@@ -5706,14 +5704,14 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5706
5704
|
});
|
|
5707
5705
|
}
|
|
5708
5706
|
async function M() {
|
|
5709
|
-
|
|
5707
|
+
p(!0);
|
|
5710
5708
|
let I, k;
|
|
5711
5709
|
try {
|
|
5712
5710
|
const B = await R({
|
|
5713
5711
|
domain: r,
|
|
5714
5712
|
isTotal: !1
|
|
5715
5713
|
});
|
|
5716
|
-
if (
|
|
5714
|
+
if (g(B), s) {
|
|
5717
5715
|
const j = await H.getHandler().evalDomain({
|
|
5718
5716
|
domain: s,
|
|
5719
5717
|
values: {},
|
|
@@ -5751,7 +5749,7 @@ const yo = vt(Yl), vo = (e) => {
|
|
|
5751
5749
|
} catch (B) {
|
|
5752
5750
|
T(JSON.stringify(B));
|
|
5753
5751
|
}
|
|
5754
|
-
|
|
5752
|
+
p(!1);
|
|
5755
5753
|
}
|
|
5756
5754
|
return L ? /* @__PURE__ */ n(ze, {
|
|
5757
5755
|
className: "mt-10",
|
|
@@ -5864,12 +5862,12 @@ function ec({
|
|
|
5864
5862
|
useGrouping: !0
|
|
5865
5863
|
})}` : `${c}`;
|
|
5866
5864
|
d && (m += " " + d);
|
|
5867
|
-
const
|
|
5865
|
+
const p = `${i == null ? void 0 : i.toLocaleString("es-ES", {
|
|
5868
5866
|
useGrouping: !0
|
|
5869
5867
|
})}%`;
|
|
5870
|
-
let h = Co(
|
|
5868
|
+
let h = Co(p, `bold ${Math.floor(f * 1.03)}px sans-serif`);
|
|
5871
5869
|
l && (h = h * 1.5);
|
|
5872
|
-
const
|
|
5870
|
+
const g = l && it(l);
|
|
5873
5871
|
return (h >= r * 0.85 || f * 2 < u) && (f = r * 0.85 / h * f), /* @__PURE__ */ n("div", {
|
|
5874
5872
|
ref: e,
|
|
5875
5873
|
style: {
|
|
@@ -5884,13 +5882,13 @@ function ec({
|
|
|
5884
5882
|
},
|
|
5885
5883
|
children: /* @__PURE__ */ P(Ce, {
|
|
5886
5884
|
align: "middle",
|
|
5887
|
-
children: [
|
|
5885
|
+
children: [g && /* @__PURE__ */ n(ae, {
|
|
5888
5886
|
style: {
|
|
5889
5887
|
fontSize: f * 1,
|
|
5890
5888
|
color: a,
|
|
5891
5889
|
paddingRight: "10px"
|
|
5892
5890
|
},
|
|
5893
|
-
children: /* @__PURE__ */ n(
|
|
5891
|
+
children: /* @__PURE__ */ n(g, {})
|
|
5894
5892
|
}), /* @__PURE__ */ P(ae, {
|
|
5895
5893
|
children: [/* @__PURE__ */ n(_n, {
|
|
5896
5894
|
style: {
|
|
@@ -5898,7 +5896,7 @@ function ec({
|
|
|
5898
5896
|
margin: 0,
|
|
5899
5897
|
color: a
|
|
5900
5898
|
},
|
|
5901
|
-
children:
|
|
5899
|
+
children: g ? ` ${i}%` : `${i}%`
|
|
5902
5900
|
}), /* @__PURE__ */ n(_n, {
|
|
5903
5901
|
style: {
|
|
5904
5902
|
fontSize: f * 0.4,
|
|
@@ -5928,7 +5926,7 @@ const Cn = (e) => (t) => {
|
|
|
5928
5926
|
});
|
|
5929
5927
|
if (rc(e)) {
|
|
5930
5928
|
const t = oc(e);
|
|
5931
|
-
return t === null ? e :
|
|
5929
|
+
return t === null ? e : xt(e, rn.input[t]).format(
|
|
5932
5930
|
rn.output[t]
|
|
5933
5931
|
);
|
|
5934
5932
|
} else
|
|
@@ -6036,7 +6034,7 @@ const rn = {
|
|
|
6036
6034
|
};
|
|
6037
6035
|
function oc(e) {
|
|
6038
6036
|
for (const t in rn.input)
|
|
6039
|
-
if (
|
|
6037
|
+
if (xt(
|
|
6040
6038
|
e,
|
|
6041
6039
|
rn.input[t],
|
|
6042
6040
|
!0
|
|
@@ -6057,8 +6055,8 @@ const {
|
|
|
6057
6055
|
limit: s,
|
|
6058
6056
|
uninformedString: a,
|
|
6059
6057
|
manualIds: l
|
|
6060
|
-
} = e, [d, u] = x(!1), [f, c] = x(), [m,
|
|
6061
|
-
return
|
|
6058
|
+
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), [h, g] = x(), [v, y] = x("line");
|
|
6059
|
+
return bt(() => {
|
|
6062
6060
|
(async () => {
|
|
6063
6061
|
u(!0), c(void 0);
|
|
6064
6062
|
const V = $n(o);
|
|
@@ -6089,7 +6087,7 @@ const {
|
|
|
6089
6087
|
c("No values or fields returned"), u(!1);
|
|
6090
6088
|
return;
|
|
6091
6089
|
}
|
|
6092
|
-
|
|
6090
|
+
g(b);
|
|
6093
6091
|
const _ = ic({
|
|
6094
6092
|
ooui: V,
|
|
6095
6093
|
values: b,
|
|
@@ -6098,7 +6096,7 @@ const {
|
|
|
6098
6096
|
uninformedString: a
|
|
6099
6097
|
}
|
|
6100
6098
|
});
|
|
6101
|
-
|
|
6099
|
+
p(_);
|
|
6102
6100
|
} catch (_) {
|
|
6103
6101
|
c("Error processing graph data: " + _), u(!1);
|
|
6104
6102
|
return;
|
|
@@ -6206,9 +6204,9 @@ const dc = {
|
|
|
6206
6204
|
type: "info"
|
|
6207
6205
|
});
|
|
6208
6206
|
const {
|
|
6209
|
-
data:
|
|
6207
|
+
data: p,
|
|
6210
6208
|
isGroup: h,
|
|
6211
|
-
isStack:
|
|
6209
|
+
isStack: g
|
|
6212
6210
|
} = f, v = dc[c];
|
|
6213
6211
|
return v ? /* @__PURE__ */ P("div", {
|
|
6214
6212
|
style: {
|
|
@@ -6224,9 +6222,9 @@ const dc = {
|
|
|
6224
6222
|
}), /* @__PURE__ */ n(v, {
|
|
6225
6223
|
...fc({
|
|
6226
6224
|
type: c,
|
|
6227
|
-
data:
|
|
6225
|
+
data: p,
|
|
6228
6226
|
isGroup: h,
|
|
6229
|
-
isStack:
|
|
6227
|
+
isStack: g
|
|
6230
6228
|
})
|
|
6231
6229
|
})]
|
|
6232
6230
|
}) : /* @__PURE__ */ n(Z, {
|
|
@@ -6251,10 +6249,10 @@ const mc = (e, t) => {
|
|
|
6251
6249
|
domain: s,
|
|
6252
6250
|
limit: a,
|
|
6253
6251
|
manualIds: l
|
|
6254
|
-
} = e, [d, u] = x(!1), [f, c] = x(), [m,
|
|
6255
|
-
setGraphIsLoading:
|
|
6252
|
+
} = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), h = K(Ze), {
|
|
6253
|
+
setGraphIsLoading: g = void 0
|
|
6256
6254
|
} = h || {};
|
|
6257
|
-
|
|
6255
|
+
vt(t, () => ({
|
|
6258
6256
|
refresh: () => {
|
|
6259
6257
|
v();
|
|
6260
6258
|
}
|
|
@@ -6262,7 +6260,7 @@ const mc = (e, t) => {
|
|
|
6262
6260
|
v();
|
|
6263
6261
|
}, [r]);
|
|
6264
6262
|
async function v() {
|
|
6265
|
-
u(!0),
|
|
6263
|
+
u(!0), g == null || g(!0);
|
|
6266
6264
|
try {
|
|
6267
6265
|
const y = await H.getHandler().getView({
|
|
6268
6266
|
model: i,
|
|
@@ -6270,7 +6268,7 @@ const mc = (e, t) => {
|
|
|
6270
6268
|
type: "graph",
|
|
6271
6269
|
context: o
|
|
6272
6270
|
});
|
|
6273
|
-
|
|
6271
|
+
p(y.arch);
|
|
6274
6272
|
const V = $n(y.arch);
|
|
6275
6273
|
c(V);
|
|
6276
6274
|
} catch (y) {
|
|
@@ -6278,7 +6276,7 @@ const mc = (e, t) => {
|
|
|
6278
6276
|
children: JSON.stringify(y)
|
|
6279
6277
|
});
|
|
6280
6278
|
}
|
|
6281
|
-
u(!1),
|
|
6279
|
+
u(!1), g == null || g(!1);
|
|
6282
6280
|
}
|
|
6283
6281
|
if (d)
|
|
6284
6282
|
return /* @__PURE__ */ n("div", {
|
|
@@ -6334,7 +6332,7 @@ const mc = (e, t) => {
|
|
|
6334
6332
|
children: `Graph ${f.type} not implemented`
|
|
6335
6333
|
});
|
|
6336
6334
|
}
|
|
6337
|
-
}, hn =
|
|
6335
|
+
}, hn = yt(mc), {
|
|
6338
6336
|
confirm: hc
|
|
6339
6337
|
} = Ye, pc = ({
|
|
6340
6338
|
onOk: e,
|
|
@@ -6342,7 +6340,7 @@ const mc = (e, t) => {
|
|
|
6342
6340
|
}) => {
|
|
6343
6341
|
hc({
|
|
6344
6342
|
title: _e("removeItems", t),
|
|
6345
|
-
icon: /* @__PURE__ */ n(
|
|
6343
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
6346
6344
|
centered: !0,
|
|
6347
6345
|
content: _e("confirmRemove", t),
|
|
6348
6346
|
okText: _e("yesConfirmRemove", t),
|
|
@@ -6357,7 +6355,7 @@ const mc = (e, t) => {
|
|
|
6357
6355
|
}) => {
|
|
6358
6356
|
gc({
|
|
6359
6357
|
title: _e("unlinkItems", t),
|
|
6360
|
-
icon: /* @__PURE__ */ n(
|
|
6358
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
6361
6359
|
centered: !0,
|
|
6362
6360
|
content: _e("confirmUnlink", t),
|
|
6363
6361
|
okText: _e("yesConfirmUnlink", t),
|
|
@@ -6380,9 +6378,9 @@ const mc = (e, t) => {
|
|
|
6380
6378
|
onNextItem: f,
|
|
6381
6379
|
isMany2Many: c,
|
|
6382
6380
|
onSearchItem: m,
|
|
6383
|
-
selectedRowKeys:
|
|
6381
|
+
selectedRowKeys: p,
|
|
6384
6382
|
showCreateButton: h,
|
|
6385
|
-
showToggleButton:
|
|
6383
|
+
showToggleButton: g
|
|
6386
6384
|
} = e, {
|
|
6387
6385
|
token: v
|
|
6388
6386
|
} = vc();
|
|
@@ -6412,7 +6410,7 @@ const mc = (e, t) => {
|
|
|
6412
6410
|
tooltip: c ? "Unlink" : "Delete",
|
|
6413
6411
|
icon: c ? /* @__PURE__ */ n(ui, {}) : /* @__PURE__ */ n(Kn, {}),
|
|
6414
6412
|
onClick: a,
|
|
6415
|
-
disabled: l === 0 || r || s !== "form" &&
|
|
6413
|
+
disabled: l === 0 || r || s !== "form" && p.length === 0
|
|
6416
6414
|
});
|
|
6417
6415
|
}
|
|
6418
6416
|
function b() {
|
|
@@ -6449,7 +6447,7 @@ const mc = (e, t) => {
|
|
|
6449
6447
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
6450
6448
|
disabled: r,
|
|
6451
6449
|
onClick: m
|
|
6452
|
-
}), s !== "graph" && y(), s !== "graph" && O(), s === "form" && D(), y(),
|
|
6450
|
+
}), s !== "graph" && y(), s !== "graph" && O(), s === "form" && D(), y(), g && /* @__PURE__ */ n(Ue, {
|
|
6453
6451
|
tooltip: "Toggle view mode",
|
|
6454
6452
|
icon: /* @__PURE__ */ n(di, {}),
|
|
6455
6453
|
onClick: o
|
|
@@ -6487,9 +6485,9 @@ const Cc = (e) => {
|
|
|
6487
6485
|
} = K(xo), f = K(Re), {
|
|
6488
6486
|
activeId: c,
|
|
6489
6487
|
getFields: m,
|
|
6490
|
-
getValues:
|
|
6488
|
+
getValues: p,
|
|
6491
6489
|
getContext: h,
|
|
6492
|
-
domain:
|
|
6490
|
+
domain: g
|
|
6493
6491
|
} = f || {}, {
|
|
6494
6492
|
lang: v,
|
|
6495
6493
|
t: y
|
|
@@ -6513,7 +6511,7 @@ const Cc = (e) => {
|
|
|
6513
6511
|
}, [s, a]);
|
|
6514
6512
|
ge(() => {
|
|
6515
6513
|
oe();
|
|
6516
|
-
}, [
|
|
6514
|
+
}, [g]);
|
|
6517
6515
|
const Se = (X) => {
|
|
6518
6516
|
var de, Oe;
|
|
6519
6517
|
r == null || r({
|
|
@@ -6554,12 +6552,12 @@ const Cc = (e) => {
|
|
|
6554
6552
|
domain: ee,
|
|
6555
6553
|
values: kt({
|
|
6556
6554
|
fields: m(),
|
|
6557
|
-
values:
|
|
6555
|
+
values: p()
|
|
6558
6556
|
}),
|
|
6559
6557
|
fields: m(),
|
|
6560
6558
|
context: h()
|
|
6561
|
-
})),
|
|
6562
|
-
domain:
|
|
6559
|
+
})), g && g.length > 0 && (k.current = k.current.concat(Ar({
|
|
6560
|
+
domain: g,
|
|
6563
6561
|
widgetFieldName: ce
|
|
6564
6562
|
})));
|
|
6565
6563
|
}
|
|
@@ -6899,17 +6897,17 @@ const Cc = (e) => {
|
|
|
6899
6897
|
context: a
|
|
6900
6898
|
} = t;
|
|
6901
6899
|
let l;
|
|
6902
|
-
const [d, u] = x(!0), [f, c] = x(), [m,
|
|
6903
|
-
getContext:
|
|
6900
|
+
const [d, u] = x(!0), [f, c] = x(), [m, p] = x(/* @__PURE__ */ new Map()), h = K(Re), {
|
|
6901
|
+
getContext: g
|
|
6904
6902
|
} = h || {};
|
|
6905
|
-
|
|
6903
|
+
bt(() => {
|
|
6906
6904
|
y();
|
|
6907
6905
|
}, [t]);
|
|
6908
6906
|
const v = async (O) => o && o[O] ? o[O] : await H.getHandler().getView({
|
|
6909
6907
|
model: i,
|
|
6910
6908
|
type: O,
|
|
6911
6909
|
context: {
|
|
6912
|
-
...
|
|
6910
|
+
...g == null ? void 0 : g(),
|
|
6913
6911
|
...a
|
|
6914
6912
|
}
|
|
6915
6913
|
}), y = async () => {
|
|
@@ -6920,10 +6918,10 @@ const Cc = (e) => {
|
|
|
6920
6918
|
const b = await v(O);
|
|
6921
6919
|
m.set(O, b);
|
|
6922
6920
|
}
|
|
6923
|
-
|
|
6921
|
+
p(m);
|
|
6924
6922
|
} else {
|
|
6925
6923
|
const O = await v("form"), b = await v("tree");
|
|
6926
|
-
m.set("form", O), m.set("tree", b),
|
|
6924
|
+
m.set("form", O), m.set("tree", b), p(m);
|
|
6927
6925
|
}
|
|
6928
6926
|
} catch (O) {
|
|
6929
6927
|
c(JSON.stringify(O));
|
|
@@ -6988,7 +6986,7 @@ const Cc = (e) => {
|
|
|
6988
6986
|
} = Tc(), d = a && !s ? {
|
|
6989
6987
|
backgroundColor: l.colorPrimaryBg
|
|
6990
6988
|
} : void 0, u = me(), [f, c] = x(), m = K(Re), {
|
|
6991
|
-
elementHasLostFocus:
|
|
6989
|
+
elementHasLostFocus: p
|
|
6992
6990
|
} = m || {};
|
|
6993
6991
|
ge(() => {
|
|
6994
6992
|
c(uo(r));
|
|
@@ -6996,11 +6994,11 @@ const Cc = (e) => {
|
|
|
6996
6994
|
const h = (y) => {
|
|
6997
6995
|
i == null || i(y);
|
|
6998
6996
|
};
|
|
6999
|
-
function
|
|
6997
|
+
function g(y) {
|
|
7000
6998
|
u.current = y.target.value, c(y.target.value);
|
|
7001
6999
|
}
|
|
7002
7000
|
async function v() {
|
|
7003
|
-
h(Sl(f)), await new Promise((y) => setTimeout(y, 300)),
|
|
7001
|
+
h(Sl(f)), await new Promise((y) => setTimeout(y, 300)), p == null || p();
|
|
7004
7002
|
}
|
|
7005
7003
|
return /* @__PURE__ */ n(Qe, {
|
|
7006
7004
|
value: f,
|
|
@@ -7009,7 +7007,7 @@ const Cc = (e) => {
|
|
|
7009
7007
|
style: d,
|
|
7010
7008
|
id: o,
|
|
7011
7009
|
placeholder: "00:00",
|
|
7012
|
-
onChange:
|
|
7010
|
+
onChange: g,
|
|
7013
7011
|
onBlur: v
|
|
7014
7012
|
});
|
|
7015
7013
|
};
|
|
@@ -7113,13 +7111,13 @@ const {
|
|
|
7113
7111
|
formHasChanges: u,
|
|
7114
7112
|
elementHasLostFocus: f
|
|
7115
7113
|
} = s || {}, [c, m] = x(!1), {
|
|
7116
|
-
t:
|
|
7114
|
+
t: p
|
|
7117
7115
|
} = K(ye);
|
|
7118
7116
|
return a ? /* @__PURE__ */ P(Z, {
|
|
7119
7117
|
children: [/* @__PURE__ */ n("div", {
|
|
7120
7118
|
onClick: () => {
|
|
7121
7119
|
if (u != null && u()) {
|
|
7122
|
-
ct(
|
|
7120
|
+
ct(p("saveBeforeTranslate"));
|
|
7123
7121
|
return;
|
|
7124
7122
|
}
|
|
7125
7123
|
c || m(!0);
|
|
@@ -7174,12 +7172,12 @@ const {
|
|
|
7174
7172
|
paddingTop: 5
|
|
7175
7173
|
},
|
|
7176
7174
|
children: /* @__PURE__ */ n(Ue, {
|
|
7177
|
-
tooltip:
|
|
7175
|
+
tooltip: p("translate"),
|
|
7178
7176
|
icon: /* @__PURE__ */ n($r, {}),
|
|
7179
7177
|
onClick: async () => {
|
|
7180
|
-
u != null && u() ? ct(
|
|
7178
|
+
u != null && u() ? ct(p("saveBeforeTranslate")) : ct(p("enterTextBeforeTranslate"));
|
|
7181
7179
|
},
|
|
7182
|
-
children:
|
|
7180
|
+
children: p("translate")
|
|
7183
7181
|
})
|
|
7184
7182
|
})]
|
|
7185
7183
|
});
|
|
@@ -7276,9 +7274,9 @@ const {
|
|
|
7276
7274
|
})),
|
|
7277
7275
|
keysWithChilds: y
|
|
7278
7276
|
};
|
|
7279
|
-
}, [l.current]),
|
|
7277
|
+
}, [l.current]), p = Ae(
|
|
7280
7278
|
async (v) => {
|
|
7281
|
-
const y = await
|
|
7279
|
+
const y = await g("ir.exports"), V = await g("ir.exports.line"), O = await H.getHandler().create({
|
|
7282
7280
|
model: "ir.exports",
|
|
7283
7281
|
values: {
|
|
7284
7282
|
name: v.name,
|
|
@@ -7308,7 +7306,7 @@ const {
|
|
|
7308
7306
|
});
|
|
7309
7307
|
},
|
|
7310
7308
|
[]
|
|
7311
|
-
),
|
|
7309
|
+
), g = Ae(
|
|
7312
7310
|
async (v) => {
|
|
7313
7311
|
if (d.current.has(v))
|
|
7314
7312
|
return d.current.get(v);
|
|
@@ -7326,7 +7324,7 @@ const {
|
|
|
7326
7324
|
onGetFieldChilds: c,
|
|
7327
7325
|
onExport: u,
|
|
7328
7326
|
onGetPredefinedExports: m,
|
|
7329
|
-
onSavePredefinedExport:
|
|
7327
|
+
onSavePredefinedExport: p,
|
|
7330
7328
|
onRemovePredefinedExport: h
|
|
7331
7329
|
};
|
|
7332
7330
|
}, Fr = ({
|
|
@@ -7445,9 +7443,9 @@ const {
|
|
|
7445
7443
|
} = e, {
|
|
7446
7444
|
onExport: c,
|
|
7447
7445
|
onGetFieldChilds: m,
|
|
7448
|
-
onGetFields:
|
|
7446
|
+
onGetFields: p,
|
|
7449
7447
|
onGetPredefinedExports: h,
|
|
7450
|
-
onSavePredefinedExport:
|
|
7448
|
+
onSavePredefinedExport: g,
|
|
7451
7449
|
onRemovePredefinedExport: v
|
|
7452
7450
|
} = Rc({
|
|
7453
7451
|
model: o,
|
|
@@ -7466,10 +7464,10 @@ const {
|
|
|
7466
7464
|
selectedRegistersToExport: a && a.length && a.length > 0 ? a.length : void 0,
|
|
7467
7465
|
totalRegisters: l,
|
|
7468
7466
|
onGetFieldChilds: m,
|
|
7469
|
-
onGetFields:
|
|
7467
|
+
onGetFields: p,
|
|
7470
7468
|
visibleRegisters: f,
|
|
7471
7469
|
onGetPredefinedExports: h,
|
|
7472
|
-
onSavePredefinedExport:
|
|
7470
|
+
onSavePredefinedExport: g,
|
|
7473
7471
|
onRemovePredefinedExport: v
|
|
7474
7472
|
});
|
|
7475
7473
|
}, jc = (e) => {
|
|
@@ -7515,8 +7513,8 @@ const {
|
|
|
7515
7513
|
c(void 0), u([]);
|
|
7516
7514
|
return;
|
|
7517
7515
|
}
|
|
7518
|
-
const m = t && l && l[0],
|
|
7519
|
-
u([
|
|
7516
|
+
const m = t && l && l[0], p = t && l && l[1] && parseInt(l[1]);
|
|
7517
|
+
u([p, void 0]), c(m);
|
|
7520
7518
|
}, [t]), /* @__PURE__ */ P(Ce, {
|
|
7521
7519
|
gutter: 8,
|
|
7522
7520
|
wrap: !1,
|
|
@@ -7531,9 +7529,9 @@ const {
|
|
|
7531
7529
|
}),
|
|
7532
7530
|
onChange: (m) => {
|
|
7533
7531
|
c(m);
|
|
7534
|
-
let
|
|
7535
|
-
m !== f && (u([]),
|
|
7536
|
-
const h = `${m},${
|
|
7532
|
+
let p = d[0] || 0;
|
|
7533
|
+
m !== f && (u([]), p = 0);
|
|
7534
|
+
const h = `${m},${p}`;
|
|
7537
7535
|
h !== t && (r == null || r(h));
|
|
7538
7536
|
},
|
|
7539
7537
|
value: f
|
|
@@ -7550,8 +7548,8 @@ const {
|
|
|
7550
7548
|
value: d,
|
|
7551
7549
|
onChange: (m) => {
|
|
7552
7550
|
u(m);
|
|
7553
|
-
const
|
|
7554
|
-
|
|
7551
|
+
const p = `${f},${m[0] || 0}`;
|
|
7552
|
+
p !== t && (r == null || r(p));
|
|
7555
7553
|
}
|
|
7556
7554
|
})
|
|
7557
7555
|
})]
|
|
@@ -7589,10 +7587,10 @@ const {
|
|
|
7589
7587
|
getFieldValue: c
|
|
7590
7588
|
} = K(Re) || {}, {
|
|
7591
7589
|
t: m
|
|
7592
|
-
} = K(ye),
|
|
7590
|
+
} = K(ye), p = r ? ua(r) : "", h = (O) => {
|
|
7593
7591
|
i == null || i(O);
|
|
7594
7592
|
};
|
|
7595
|
-
async function
|
|
7593
|
+
async function g() {
|
|
7596
7594
|
const O = await It(r), b = `data:${O == null ? void 0 : O.mime};base64,${r}`, D = document.createElement("a"), _ = c(a), $ = c("name");
|
|
7597
7595
|
D.href = b, D.download = _ || $, D.click();
|
|
7598
7596
|
}
|
|
@@ -7626,7 +7624,7 @@ const {
|
|
|
7626
7624
|
type: "text",
|
|
7627
7625
|
disabled: !0,
|
|
7628
7626
|
style: d,
|
|
7629
|
-
value:
|
|
7627
|
+
value: p
|
|
7630
7628
|
})]
|
|
7631
7629
|
}), /* @__PURE__ */ n(ae, {
|
|
7632
7630
|
children: /* @__PURE__ */ P(He, {
|
|
@@ -7645,7 +7643,7 @@ const {
|
|
|
7645
7643
|
}), /* @__PURE__ */ n(Ue, {
|
|
7646
7644
|
tooltip: m("download"),
|
|
7647
7645
|
disabled: !r,
|
|
7648
|
-
onClick:
|
|
7646
|
+
onClick: g,
|
|
7649
7647
|
icon: /* @__PURE__ */ n(Ln, {})
|
|
7650
7648
|
}), /* @__PURE__ */ n(Ue, {
|
|
7651
7649
|
tooltip: m("clear"),
|
|
@@ -7678,7 +7676,7 @@ function Zn(e) {
|
|
|
7678
7676
|
lang: d
|
|
7679
7677
|
} = K(ye);
|
|
7680
7678
|
function u() {
|
|
7681
|
-
const m = r.map((
|
|
7679
|
+
const m = r.map((p, h) => /* @__PURE__ */ n($e.Item, {
|
|
7682
7680
|
children: /* @__PURE__ */ P(Ce, {
|
|
7683
7681
|
wrap: !1,
|
|
7684
7682
|
children: [/* @__PURE__ */ n(ae, {
|
|
@@ -7686,23 +7684,23 @@ function Zn(e) {
|
|
|
7686
7684
|
style: {
|
|
7687
7685
|
paddingRight: 20
|
|
7688
7686
|
},
|
|
7689
|
-
children: Or(
|
|
7687
|
+
children: Or(p)
|
|
7690
7688
|
}), /* @__PURE__ */ n(ae, {
|
|
7691
7689
|
flex: "auto",
|
|
7692
7690
|
style: {
|
|
7693
7691
|
paddingRight: 20
|
|
7694
7692
|
},
|
|
7695
|
-
children:
|
|
7693
|
+
children: p.type.charAt(0).toUpperCase() + p.type.slice(1)
|
|
7696
7694
|
}), /* @__PURE__ */ n(ae, {
|
|
7697
7695
|
flex: "none",
|
|
7698
7696
|
children: /* @__PURE__ */ n(At, {
|
|
7699
7697
|
style: {
|
|
7700
|
-
opacity: t.view_id ===
|
|
7698
|
+
opacity: t.view_id === p.view_id ? 1 : 0
|
|
7701
7699
|
}
|
|
7702
7700
|
})
|
|
7703
7701
|
})]
|
|
7704
7702
|
})
|
|
7705
|
-
},
|
|
7703
|
+
}, p.view_id || h));
|
|
7706
7704
|
return /* @__PURE__ */ n($e, {
|
|
7707
7705
|
onClick: c,
|
|
7708
7706
|
children: /* @__PURE__ */ n($e.ItemGroup, {
|
|
@@ -7725,8 +7723,8 @@ function Zn(e) {
|
|
|
7725
7723
|
}
|
|
7726
7724
|
function c(m) {
|
|
7727
7725
|
f(() => {
|
|
7728
|
-
const
|
|
7729
|
-
i(
|
|
7726
|
+
const p = r.find((h) => h.view_id === parseInt(m.key));
|
|
7727
|
+
i(p);
|
|
7730
7728
|
});
|
|
7731
7729
|
}
|
|
7732
7730
|
return /* @__PURE__ */ P("div", {
|
|
@@ -7854,7 +7852,7 @@ const {
|
|
|
7854
7852
|
}) => {
|
|
7855
7853
|
zc({
|
|
7856
7854
|
title: _e("unsavedChanges", r),
|
|
7857
|
-
icon: /* @__PURE__ */ n(
|
|
7855
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
7858
7856
|
centered: !0,
|
|
7859
7857
|
content: _e("confirmRefreshWithoutSave", r),
|
|
7860
7858
|
okText: _e("discardAndRefresh", r),
|
|
@@ -7998,7 +7996,7 @@ function Qc(e) {
|
|
|
7998
7996
|
} = e, {
|
|
7999
7997
|
formRef: a
|
|
8000
7998
|
} = K(Ze), [l, d] = x(!1), [u, f] = x([]), [c, m] = x(!1), {
|
|
8001
|
-
t:
|
|
7999
|
+
t: p
|
|
8002
8000
|
} = K(ye), h = Ae(async () => {
|
|
8003
8001
|
d(!0);
|
|
8004
8002
|
try {
|
|
@@ -8018,7 +8016,7 @@ function Qc(e) {
|
|
|
8018
8016
|
We(y);
|
|
8019
8017
|
}
|
|
8020
8018
|
d(!1);
|
|
8021
|
-
}, t),
|
|
8019
|
+
}, t), g = Ae(async (y) => {
|
|
8022
8020
|
if (y.link) {
|
|
8023
8021
|
window.open(y.link);
|
|
8024
8022
|
return;
|
|
@@ -8053,10 +8051,10 @@ function Qc(e) {
|
|
|
8053
8051
|
loading: l,
|
|
8054
8052
|
onAddNewAttachment: i,
|
|
8055
8053
|
onListAllAttachments: o,
|
|
8056
|
-
onopenAttachmentLink:
|
|
8054
|
+
onopenAttachmentLink: g,
|
|
8057
8055
|
onOpenAttachmentDetail: v
|
|
8058
8056
|
}), /* @__PURE__ */ n(Ye, {
|
|
8059
|
-
title:
|
|
8057
|
+
title: p("downloadingAttachment"),
|
|
8060
8058
|
open: c,
|
|
8061
8059
|
footer: null,
|
|
8062
8060
|
closable: !1,
|
|
@@ -8082,9 +8080,9 @@ function ed({
|
|
|
8082
8080
|
currentItemIndex: f,
|
|
8083
8081
|
setCurrentId: c,
|
|
8084
8082
|
currentModel: m,
|
|
8085
|
-
setRemovingItem:
|
|
8083
|
+
setRemovingItem: p,
|
|
8086
8084
|
removingItem: h,
|
|
8087
|
-
duplicatingItem:
|
|
8085
|
+
duplicatingItem: g,
|
|
8088
8086
|
setDuplicatingItem: v,
|
|
8089
8087
|
setResults: y,
|
|
8090
8088
|
formIsLoading: V,
|
|
@@ -8144,7 +8142,7 @@ function ed({
|
|
|
8144
8142
|
}
|
|
8145
8143
|
async function U() {
|
|
8146
8144
|
try {
|
|
8147
|
-
|
|
8145
|
+
p == null || p(!0), await H.getHandler().delete({
|
|
8148
8146
|
model: m,
|
|
8149
8147
|
ids: [l]
|
|
8150
8148
|
});
|
|
@@ -8155,7 +8153,7 @@ function ed({
|
|
|
8155
8153
|
} catch (E) {
|
|
8156
8154
|
en(JSON.stringify(E));
|
|
8157
8155
|
} finally {
|
|
8158
|
-
|
|
8156
|
+
p == null || p(!1);
|
|
8159
8157
|
}
|
|
8160
8158
|
}
|
|
8161
8159
|
async function W() {
|
|
@@ -8173,7 +8171,7 @@ function ed({
|
|
|
8173
8171
|
v == null || v(!1);
|
|
8174
8172
|
}
|
|
8175
8173
|
}
|
|
8176
|
-
const z = a || h || V ||
|
|
8174
|
+
const z = a || h || V || g;
|
|
8177
8175
|
function q(E) {
|
|
8178
8176
|
L == null || L({
|
|
8179
8177
|
actionData: E,
|
|
@@ -8190,7 +8188,7 @@ function ed({
|
|
|
8190
8188
|
children: [V && /* @__PURE__ */ P(Z, {
|
|
8191
8189
|
children: [/* @__PURE__ */ n(ke, {}), Ct(), Ct()]
|
|
8192
8190
|
}), /* @__PURE__ */ n(Fo, {
|
|
8193
|
-
disabled: a || V || h ||
|
|
8191
|
+
disabled: a || V || h || g
|
|
8194
8192
|
}), /* @__PURE__ */ n(Ge, {
|
|
8195
8193
|
icon: /* @__PURE__ */ n(pi, {}),
|
|
8196
8194
|
tooltip: C("save"),
|
|
@@ -8200,19 +8198,19 @@ function ed({
|
|
|
8200
8198
|
}), /* @__PURE__ */ n(Ge, {
|
|
8201
8199
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
8202
8200
|
tooltip: C("duplicate"),
|
|
8203
|
-
disabled: s || a || l === void 0 ||
|
|
8204
|
-
loading:
|
|
8201
|
+
disabled: s || a || l === void 0 || g || V,
|
|
8202
|
+
loading: g,
|
|
8205
8203
|
onClick: W
|
|
8206
8204
|
}), /* @__PURE__ */ n(Ge, {
|
|
8207
8205
|
icon: /* @__PURE__ */ n(Kn, {}),
|
|
8208
8206
|
tooltip: C("delete"),
|
|
8209
|
-
disabled: a || l === void 0 || h ||
|
|
8207
|
+
disabled: a || l === void 0 || h || g || V,
|
|
8210
8208
|
loading: h,
|
|
8211
8209
|
onClick: j
|
|
8212
8210
|
}), Ct(), /* @__PURE__ */ n(Ge, {
|
|
8213
8211
|
icon: /* @__PURE__ */ n(Kr, {}),
|
|
8214
8212
|
tooltip: C("showLogs"),
|
|
8215
|
-
disabled: a || l === void 0 || h ||
|
|
8213
|
+
disabled: a || l === void 0 || h || g || V,
|
|
8216
8214
|
loading: !1,
|
|
8217
8215
|
onClick: () => {
|
|
8218
8216
|
Oo(m, l, C);
|
|
@@ -8220,7 +8218,7 @@ function ed({
|
|
|
8220
8218
|
}), /* @__PURE__ */ n(Ge, {
|
|
8221
8219
|
icon: /* @__PURE__ */ n(ln, {}),
|
|
8222
8220
|
tooltip: C("refresh"),
|
|
8223
|
-
disabled: a || l === void 0 || h ||
|
|
8221
|
+
disabled: a || l === void 0 || h || g || V,
|
|
8224
8222
|
loading: !1,
|
|
8225
8223
|
onClick: () => {
|
|
8226
8224
|
M(() => {
|
|
@@ -8382,10 +8380,10 @@ const {
|
|
|
8382
8380
|
backgroundColor: u.colorPrimaryBg
|
|
8383
8381
|
} : void 0, c = K(Re), {
|
|
8384
8382
|
elementHasLostFocus: m
|
|
8385
|
-
} = c || {}, [
|
|
8383
|
+
} = c || {}, [p, h] = x(!1), [g, v] = x(!1);
|
|
8386
8384
|
ge(() => {
|
|
8387
|
-
l && !
|
|
8388
|
-
}, [
|
|
8385
|
+
l && !p && v(!1), !r && !l && (h(!0), v(!0));
|
|
8386
|
+
}, [p, l]);
|
|
8389
8387
|
const y = (V) => {
|
|
8390
8388
|
i == null || i(V.target.value);
|
|
8391
8389
|
};
|
|
@@ -8395,7 +8393,7 @@ const {
|
|
|
8395
8393
|
align: "middle",
|
|
8396
8394
|
children: [l ? null : /* @__PURE__ */ n(ae, {
|
|
8397
8395
|
flex: "32px",
|
|
8398
|
-
children:
|
|
8396
|
+
children: p ? /* @__PURE__ */ n(Ie, {
|
|
8399
8397
|
icon: /* @__PURE__ */ n(At, {}),
|
|
8400
8398
|
onClick: () => {
|
|
8401
8399
|
o(r) && (h(!1), v(!1));
|
|
@@ -8418,7 +8416,7 @@ const {
|
|
|
8418
8416
|
})
|
|
8419
8417
|
}), /* @__PURE__ */ n(ae, {
|
|
8420
8418
|
flex: "auto",
|
|
8421
|
-
children:
|
|
8419
|
+
children: g ? /* @__PURE__ */ n(Qe, {
|
|
8422
8420
|
style: {
|
|
8423
8421
|
borderTopLeftRadius: 0,
|
|
8424
8422
|
borderBottomLeftRadius: 0,
|
|
@@ -8681,7 +8679,7 @@ function pn(e) {
|
|
|
8681
8679
|
return /* @__PURE__ */ P(Z, {
|
|
8682
8680
|
children: [u.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Zt, {
|
|
8683
8681
|
copyable: {
|
|
8684
|
-
text: u.map((
|
|
8682
|
+
text: u.map((p) => p.id).join(", ")
|
|
8685
8683
|
}
|
|
8686
8684
|
})]
|
|
8687
8685
|
});
|
|
@@ -8736,9 +8734,9 @@ const cd = (e) => {
|
|
|
8736
8734
|
setResults: f = void 0,
|
|
8737
8735
|
setCurrentItemIndex: c = void 0,
|
|
8738
8736
|
currentId: m = void 0,
|
|
8739
|
-
results:
|
|
8737
|
+
results: p = void 0,
|
|
8740
8738
|
setSelectedRowItems: h = void 0,
|
|
8741
|
-
setSearchParams:
|
|
8739
|
+
setSearchParams: g = void 0,
|
|
8742
8740
|
searchVisible: v = !0,
|
|
8743
8741
|
setSearchVisible: y = void 0,
|
|
8744
8742
|
sorter: V = void 0,
|
|
@@ -8771,7 +8769,7 @@ const cd = (e) => {
|
|
|
8771
8769
|
setSelectedRowItems: h,
|
|
8772
8770
|
searchParams: C,
|
|
8773
8771
|
setSearchValues: S,
|
|
8774
|
-
setSearchParams:
|
|
8772
|
+
setSearchParams: g,
|
|
8775
8773
|
setSearchVisible: y,
|
|
8776
8774
|
setTreeIsLoading: _,
|
|
8777
8775
|
context: o,
|
|
@@ -8781,7 +8779,7 @@ const cd = (e) => {
|
|
|
8781
8779
|
setSorter: O,
|
|
8782
8780
|
setCurrentItemIndex: c,
|
|
8783
8781
|
setResultsActionView: f,
|
|
8784
|
-
resultsActionView:
|
|
8782
|
+
resultsActionView: p,
|
|
8785
8783
|
domain: s,
|
|
8786
8784
|
currentId: m,
|
|
8787
8785
|
setActionViewTotalItems: b,
|
|
@@ -8808,7 +8806,7 @@ const cd = (e) => {
|
|
|
8808
8806
|
offset: k,
|
|
8809
8807
|
isSearching: M,
|
|
8810
8808
|
onSubmit: (j) => {
|
|
8811
|
-
R(!1),
|
|
8809
|
+
R(!1), g == null || g(j.params), y == null || y(!1);
|
|
8812
8810
|
},
|
|
8813
8811
|
searchError: I,
|
|
8814
8812
|
searchVisible: v,
|
|
@@ -8821,7 +8819,7 @@ const cd = (e) => {
|
|
|
8821
8819
|
context: o,
|
|
8822
8820
|
domain: fn(C || [], s),
|
|
8823
8821
|
limit: T ? $ : void 0,
|
|
8824
|
-
manualIds: T ?
|
|
8822
|
+
manualIds: T ? p == null ? void 0 : p.map((j) => j.id) : void 0
|
|
8825
8823
|
})]
|
|
8826
8824
|
});
|
|
8827
8825
|
}, dd = (e) => {
|
|
@@ -8854,8 +8852,8 @@ const cd = (e) => {
|
|
|
8854
8852
|
actionDomain: s,
|
|
8855
8853
|
id: o,
|
|
8856
8854
|
parentContext: l,
|
|
8857
|
-
onSubmitSucceed: (
|
|
8858
|
-
f.findIndex((v) => v.id ===
|
|
8855
|
+
onSubmitSucceed: (p, h) => {
|
|
8856
|
+
f.findIndex((v) => v.id === p) === -1 && (f.push(h), c(f), m(f.length - 1));
|
|
8859
8857
|
}
|
|
8860
8858
|
})]
|
|
8861
8859
|
}) : null;
|
|
@@ -8945,9 +8943,9 @@ function md(e) {
|
|
|
8945
8943
|
searchTreeRef: f,
|
|
8946
8944
|
setCurrentId: c,
|
|
8947
8945
|
setCurrentItemIndex: m,
|
|
8948
|
-
searchParams:
|
|
8946
|
+
searchParams: p,
|
|
8949
8947
|
searchVisible: h,
|
|
8950
|
-
setSearchVisible:
|
|
8948
|
+
setSearchVisible: g,
|
|
8951
8949
|
setSearchTreeNameSearch: v,
|
|
8952
8950
|
searchTreeNameSearch: y,
|
|
8953
8951
|
treeIsLoading: V,
|
|
@@ -9045,10 +9043,10 @@ function md(e) {
|
|
|
9045
9043
|
tooltip: L("advanced_search"),
|
|
9046
9044
|
type: h ? "primary" : "default",
|
|
9047
9045
|
onClick: () => {
|
|
9048
|
-
|
|
9046
|
+
g == null || g(!h);
|
|
9049
9047
|
},
|
|
9050
9048
|
disabled: l || a || V,
|
|
9051
|
-
badgeNumber:
|
|
9049
|
+
badgeNumber: p == null ? void 0 : p.length
|
|
9052
9050
|
}), Mt(), /* @__PURE__ */ n(Fo, {
|
|
9053
9051
|
disabled: V
|
|
9054
9052
|
}), /* @__PURE__ */ n(Ge, {
|
|
@@ -9174,7 +9172,7 @@ function md(e) {
|
|
|
9174
9172
|
locale: T,
|
|
9175
9173
|
onClose: () => I(!1),
|
|
9176
9174
|
model: u,
|
|
9177
|
-
domain: fn(((z = f == null ? void 0 : f.current) == null ? void 0 : z.getDomain()) || [],
|
|
9175
|
+
domain: fn(((z = f == null ? void 0 : f.current) == null ? void 0 : z.getDomain()) || [], p || []),
|
|
9178
9176
|
limit: _,
|
|
9179
9177
|
totalRegisters: $ || 0,
|
|
9180
9178
|
selectedRegistersToExport: o,
|
|
@@ -9203,10 +9201,10 @@ const hd = (e) => {
|
|
|
9203
9201
|
setCurrentId: f,
|
|
9204
9202
|
setCurrentView: c,
|
|
9205
9203
|
availableViews: m,
|
|
9206
|
-
searchTreeNameSearch:
|
|
9204
|
+
searchTreeNameSearch: p
|
|
9207
9205
|
} = e, {
|
|
9208
9206
|
currentView: h,
|
|
9209
|
-
setPreviousView:
|
|
9207
|
+
setPreviousView: g
|
|
9210
9208
|
} = K(Ze);
|
|
9211
9209
|
return t ? /* @__PURE__ */ P(Z, {
|
|
9212
9210
|
children: [/* @__PURE__ */ n(pn, {
|
|
@@ -9220,7 +9218,7 @@ const hd = (e) => {
|
|
|
9220
9218
|
rootTree: !0,
|
|
9221
9219
|
model: i,
|
|
9222
9220
|
parentContext: o,
|
|
9223
|
-
nameSearch:
|
|
9221
|
+
nameSearch: p,
|
|
9224
9222
|
formView: s,
|
|
9225
9223
|
treeView: a,
|
|
9226
9224
|
domain: l,
|
|
@@ -9230,7 +9228,7 @@ const hd = (e) => {
|
|
|
9230
9228
|
} = v;
|
|
9231
9229
|
f(y);
|
|
9232
9230
|
const V = u.findIndex((b) => b.id === y);
|
|
9233
|
-
|
|
9231
|
+
g == null || g(h), d(V);
|
|
9234
9232
|
const O = m.find((b) => b.type === "form");
|
|
9235
9233
|
c(O);
|
|
9236
9234
|
}
|
|
@@ -9337,9 +9335,9 @@ function wd(e, t) {
|
|
|
9337
9335
|
formDefaultValues: f,
|
|
9338
9336
|
formForcedValues: c = {},
|
|
9339
9337
|
res_id: m = !1,
|
|
9340
|
-
action_id:
|
|
9338
|
+
action_id: p,
|
|
9341
9339
|
action_type: h,
|
|
9342
|
-
treeExpandable:
|
|
9340
|
+
treeExpandable: g = !1,
|
|
9343
9341
|
limit: v
|
|
9344
9342
|
} = e, [y, V] = x(), [O, b] = x([]), [D, _] = x(!0), $ = m || void 0, [w, C] = x($), [F, S] = x([]), [L, T] = x(), [R, A] = x([]), [M, I] = x(), [k, B] = x(0), [j, U] = x(!1), [W, z] = x(!1), [q, E] = x(), {
|
|
9345
9343
|
t: N
|
|
@@ -9360,7 +9358,7 @@ function wd(e, t) {
|
|
|
9360
9358
|
function Te(Q) {
|
|
9361
9359
|
V(Q), ne == null || ne(Q);
|
|
9362
9360
|
}
|
|
9363
|
-
|
|
9361
|
+
vt(t, () => ({
|
|
9364
9362
|
canWeClose: Fe
|
|
9365
9363
|
}));
|
|
9366
9364
|
const ve = async () => {
|
|
@@ -9388,7 +9386,7 @@ function wd(e, t) {
|
|
|
9388
9386
|
});
|
|
9389
9387
|
let at;
|
|
9390
9388
|
Ee && (at = {
|
|
9391
|
-
action_id:
|
|
9389
|
+
action_id: p,
|
|
9392
9390
|
action_type: h,
|
|
9393
9391
|
name: a,
|
|
9394
9392
|
res_id: o.active_id,
|
|
@@ -9414,7 +9412,7 @@ function wd(e, t) {
|
|
|
9414
9412
|
case "tree": {
|
|
9415
9413
|
Q.push({
|
|
9416
9414
|
...je,
|
|
9417
|
-
isExpandable:
|
|
9415
|
+
isExpandable: g,
|
|
9418
9416
|
type: ue
|
|
9419
9417
|
});
|
|
9420
9418
|
break;
|
|
@@ -9480,7 +9478,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9480
9478
|
id: Ve == null ? void 0 : Ve[0],
|
|
9481
9479
|
type: "form"
|
|
9482
9480
|
},
|
|
9483
|
-
action_id:
|
|
9481
|
+
action_id: p,
|
|
9484
9482
|
action_type: h,
|
|
9485
9483
|
res_id: Q
|
|
9486
9484
|
});
|
|
@@ -9581,7 +9579,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9581
9579
|
})]
|
|
9582
9580
|
}) : null;
|
|
9583
9581
|
}
|
|
9584
|
-
const Do =
|
|
9582
|
+
const Do = yt(wd);
|
|
9585
9583
|
async function bd({
|
|
9586
9584
|
actionId: e,
|
|
9587
9585
|
rootContext: t = {},
|
|
@@ -9590,7 +9588,7 @@ async function bd({
|
|
|
9590
9588
|
const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
|
|
9591
9589
|
action: o,
|
|
9592
9590
|
context: t
|
|
9593
|
-
}), a =
|
|
9591
|
+
}), a = gt({
|
|
9594
9592
|
context: s.context,
|
|
9595
9593
|
values: r,
|
|
9596
9594
|
fields: {}
|
|
@@ -9604,7 +9602,7 @@ async function bd({
|
|
|
9604
9602
|
name: f,
|
|
9605
9603
|
limit: c,
|
|
9606
9604
|
view_type: m
|
|
9607
|
-
} = s,
|
|
9605
|
+
} = s, p = m === "tree", h = [];
|
|
9608
9606
|
for (const V of u) {
|
|
9609
9607
|
const [O, b] = V;
|
|
9610
9608
|
if (O)
|
|
@@ -9619,7 +9617,7 @@ async function bd({
|
|
|
9619
9617
|
h.push([D, b]);
|
|
9620
9618
|
}
|
|
9621
9619
|
}
|
|
9622
|
-
const [
|
|
9620
|
+
const [g, v] = h[0], y = { id: g, type: v };
|
|
9623
9621
|
return {
|
|
9624
9622
|
title: f,
|
|
9625
9623
|
actionId: e,
|
|
@@ -9631,7 +9629,7 @@ async function bd({
|
|
|
9631
9629
|
domain: l,
|
|
9632
9630
|
initialView: y,
|
|
9633
9631
|
limit: c,
|
|
9634
|
-
treeExpandable:
|
|
9632
|
+
treeExpandable: p
|
|
9635
9633
|
};
|
|
9636
9634
|
}
|
|
9637
9635
|
const xd = Ei(Mi), Cd = (e) => {
|
|
@@ -9744,7 +9742,7 @@ function _d(e) {
|
|
|
9744
9742
|
domain: s = [],
|
|
9745
9743
|
visible: a = !0,
|
|
9746
9744
|
parentContext: l = {}
|
|
9747
|
-
} = e, [d, u] = x(!1), [f, c] = x(!1), [m,
|
|
9745
|
+
} = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [V, O] = x(1), [b, D] = x(0), _ = me(Od), $ = me([]), [w, C] = x(0), [F, S] = x([]), [L, T] = x(void 0), [R, A] = x(), [M, I] = x(), [k, B] = x(), [j, U] = x(!1), W = me([]), z = (J) => {
|
|
9748
9746
|
U(!0), O(J), D((J - 1) * _.current);
|
|
9749
9747
|
}, q = async () => {
|
|
9750
9748
|
const J = W.current.length > 0 ? W.current : s, be = fn($.current, J), {
|
|
@@ -9800,9 +9798,9 @@ function _d(e) {
|
|
|
9800
9798
|
action: t,
|
|
9801
9799
|
context: l
|
|
9802
9800
|
});
|
|
9803
|
-
W.current = J.domain, y(J.views.get("form")),
|
|
9801
|
+
W.current = J.domain, y(J.views.get("form")), g(J.views.get("tree")), p(J.model), _.current = J.limit;
|
|
9804
9802
|
}, le = async () => {
|
|
9805
|
-
|
|
9803
|
+
p(r);
|
|
9806
9804
|
const J = await H.getHandler().getView({
|
|
9807
9805
|
model: r,
|
|
9808
9806
|
type: "form",
|
|
@@ -9815,7 +9813,7 @@ function _d(e) {
|
|
|
9815
9813
|
id: i,
|
|
9816
9814
|
context: l
|
|
9817
9815
|
});
|
|
9818
|
-
|
|
9816
|
+
g(be);
|
|
9819
9817
|
};
|
|
9820
9818
|
ge(() => {
|
|
9821
9819
|
t ? N("action") : r && N("model");
|
|
@@ -9912,12 +9910,12 @@ function Dd(e, t) {
|
|
|
9912
9910
|
configAction: s
|
|
9913
9911
|
} = e, [a, l] = x([]), [d, u] = x(!1), [f, c] = x(), {
|
|
9914
9912
|
setIsLoading: m,
|
|
9915
|
-
openAction:
|
|
9913
|
+
openAction: p,
|
|
9916
9914
|
moveItemsEnabled: h
|
|
9917
|
-
} = K(Xn),
|
|
9915
|
+
} = K(Xn), g = me(), v = me();
|
|
9918
9916
|
ge(() => {
|
|
9919
9917
|
y();
|
|
9920
|
-
}, [r, o, i]),
|
|
9918
|
+
}, [r, o, i]), vt(t, () => ({
|
|
9921
9919
|
refresh: () => {
|
|
9922
9920
|
y();
|
|
9923
9921
|
},
|
|
@@ -9950,17 +9948,17 @@ function Dd(e, t) {
|
|
|
9950
9948
|
model: C,
|
|
9951
9949
|
context: F
|
|
9952
9950
|
}) {
|
|
9953
|
-
|
|
9951
|
+
g.current = (await H.getHandler().getView({
|
|
9954
9952
|
model: C,
|
|
9955
9953
|
type: "form",
|
|
9956
9954
|
context: F
|
|
9957
9955
|
})).fields;
|
|
9958
9956
|
const [S] = await qn({
|
|
9959
9957
|
treeView: {
|
|
9960
|
-
fields:
|
|
9958
|
+
fields: g.current
|
|
9961
9959
|
},
|
|
9962
9960
|
formView: {
|
|
9963
|
-
fields:
|
|
9961
|
+
fields: g.current
|
|
9964
9962
|
},
|
|
9965
9963
|
model: C,
|
|
9966
9964
|
items: w,
|
|
@@ -10028,7 +10026,7 @@ function Dd(e, t) {
|
|
|
10028
10026
|
}
|
|
10029
10027
|
};
|
|
10030
10028
|
}), L = {
|
|
10031
|
-
fields:
|
|
10029
|
+
fields: g.current,
|
|
10032
10030
|
items: S
|
|
10033
10031
|
};
|
|
10034
10032
|
await H.getHandler().update({
|
|
@@ -10042,7 +10040,7 @@ function Dd(e, t) {
|
|
|
10042
10040
|
});
|
|
10043
10041
|
}
|
|
10044
10042
|
async function $() {
|
|
10045
|
-
|
|
10043
|
+
p(s);
|
|
10046
10044
|
}
|
|
10047
10045
|
return f ? (console.log(f), /* @__PURE__ */ n(ze, {
|
|
10048
10046
|
className: "mt-10 mb-20",
|
|
@@ -10120,7 +10118,7 @@ function Dd(e, t) {
|
|
|
10120
10118
|
view_id: ne,
|
|
10121
10119
|
view_type: J
|
|
10122
10120
|
};
|
|
10123
|
-
|
|
10121
|
+
p(oe);
|
|
10124
10122
|
}
|
|
10125
10123
|
}
|
|
10126
10124
|
});
|
|
@@ -10171,13 +10169,13 @@ function Dd(e, t) {
|
|
|
10171
10169
|
title: I,
|
|
10172
10170
|
parms: q,
|
|
10173
10171
|
action: N,
|
|
10174
|
-
openAction:
|
|
10172
|
+
openAction: p,
|
|
10175
10173
|
children: E
|
|
10176
10174
|
}, T);
|
|
10177
10175
|
})
|
|
10178
10176
|
});
|
|
10179
10177
|
}
|
|
10180
|
-
const Vd =
|
|
10178
|
+
const Vd = yt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
10181
10179
|
...e,
|
|
10182
10180
|
children: /* @__PURE__ */ n(kd, {
|
|
10183
10181
|
...e
|
|
@@ -10214,14 +10212,14 @@ const Vd = vt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10214
10212
|
items: o = []
|
|
10215
10213
|
} = t || {}, s = o.filter((w) => w.operation !== "pendingRemove").map((w) => w.id), [a, l] = x([]), [d, u] = x(), [f, c] = x(!1), {
|
|
10216
10214
|
relation: m,
|
|
10217
|
-
context:
|
|
10215
|
+
context: p,
|
|
10218
10216
|
readOnly: h,
|
|
10219
|
-
field:
|
|
10217
|
+
field: g,
|
|
10220
10218
|
columns: v
|
|
10221
10219
|
} = r, y = K(Re), {
|
|
10222
10220
|
getContext: V
|
|
10223
10221
|
} = y || {};
|
|
10224
|
-
|
|
10222
|
+
bt(() => {
|
|
10225
10223
|
b();
|
|
10226
10224
|
}, [o]);
|
|
10227
10225
|
const O = (w) => {
|
|
@@ -10248,13 +10246,13 @@ const Vd = vt(Dd), Ad = (e) => /* @__PURE__ */ n(we, {
|
|
|
10248
10246
|
const F = (await H.getHandler().search({
|
|
10249
10247
|
model: m,
|
|
10250
10248
|
params: w,
|
|
10251
|
-
fields: [
|
|
10249
|
+
fields: [g],
|
|
10252
10250
|
context: {
|
|
10253
10251
|
...V == null ? void 0 : V(),
|
|
10254
|
-
...
|
|
10252
|
+
...p
|
|
10255
10253
|
}
|
|
10256
10254
|
})).map((S) => {
|
|
10257
|
-
const L = S[
|
|
10255
|
+
const L = S[g];
|
|
10258
10256
|
let T = L;
|
|
10259
10257
|
return Array.isArray(L) && (T = L[1]), {
|
|
10260
10258
|
label: T,
|
|
@@ -10494,7 +10492,7 @@ function Ud(e, t) {
|
|
|
10494
10492
|
closable: !0,
|
|
10495
10493
|
content: /* @__PURE__ */ n(Gd, {})
|
|
10496
10494
|
}]), f = me(/* @__PURE__ */ new Map()), c = me();
|
|
10497
|
-
|
|
10495
|
+
vt(t, () => ({
|
|
10498
10496
|
retrieveAndOpenAction: h,
|
|
10499
10497
|
openShortcut: y
|
|
10500
10498
|
}));
|
|
@@ -10505,7 +10503,7 @@ function Ud(e, t) {
|
|
|
10505
10503
|
}
|
|
10506
10504
|
u(d.filter((D) => D.key !== b)), f.current.delete(b);
|
|
10507
10505
|
}
|
|
10508
|
-
function
|
|
10506
|
+
function p({
|
|
10509
10507
|
tabKey: b,
|
|
10510
10508
|
canWeClose: D
|
|
10511
10509
|
}) {
|
|
@@ -10527,7 +10525,7 @@ function Ud(e, t) {
|
|
|
10527
10525
|
We("Action type not supported");
|
|
10528
10526
|
return;
|
|
10529
10527
|
}
|
|
10530
|
-
const [S, L] = b.split(","), T = parseInt(L), R =
|
|
10528
|
+
const [S, L] = b.split(","), T = parseInt(L), R = gt({
|
|
10531
10529
|
context: F.context,
|
|
10532
10530
|
values: i,
|
|
10533
10531
|
fields: {}
|
|
@@ -10601,7 +10599,7 @@ function Ud(e, t) {
|
|
|
10601
10599
|
limit: U
|
|
10602
10600
|
});
|
|
10603
10601
|
}
|
|
10604
|
-
function
|
|
10602
|
+
function g({
|
|
10605
10603
|
title: b,
|
|
10606
10604
|
content: D,
|
|
10607
10605
|
key: _,
|
|
@@ -10634,7 +10632,7 @@ function Ud(e, t) {
|
|
|
10634
10632
|
} = b, [M, I] = L[0], k = {
|
|
10635
10633
|
id: M,
|
|
10636
10634
|
type: I
|
|
10637
|
-
}, B =
|
|
10635
|
+
}, B = gt({
|
|
10638
10636
|
context: F,
|
|
10639
10637
|
values: {
|
|
10640
10638
|
..._,
|
|
@@ -10681,7 +10679,7 @@ function Ud(e, t) {
|
|
|
10681
10679
|
} = b, C = `${_},${D}`, F = await H.getHandler().getActionData({
|
|
10682
10680
|
action: C,
|
|
10683
10681
|
context: o
|
|
10684
|
-
}), S =
|
|
10682
|
+
}), S = gt({
|
|
10685
10683
|
context: F.context,
|
|
10686
10684
|
values: i,
|
|
10687
10685
|
fields: {}
|
|
@@ -10814,7 +10812,7 @@ function Ud(e, t) {
|
|
|
10814
10812
|
...F,
|
|
10815
10813
|
id: F.id[0]
|
|
10816
10814
|
} : F;
|
|
10817
|
-
|
|
10815
|
+
g({
|
|
10818
10816
|
title: w,
|
|
10819
10817
|
action: {
|
|
10820
10818
|
id: S,
|
|
@@ -10832,7 +10830,7 @@ function Ud(e, t) {
|
|
|
10832
10830
|
...D
|
|
10833
10831
|
},
|
|
10834
10832
|
domain: b,
|
|
10835
|
-
setCanWeClose:
|
|
10833
|
+
setCanWeClose: p,
|
|
10836
10834
|
initialView: B,
|
|
10837
10835
|
res_id: T,
|
|
10838
10836
|
formDefaultValues: R,
|
|
@@ -10868,7 +10866,7 @@ function Ud(e, t) {
|
|
|
10868
10866
|
})
|
|
10869
10867
|
});
|
|
10870
10868
|
}
|
|
10871
|
-
const Su =
|
|
10869
|
+
const Su = yt(Ud), {
|
|
10872
10870
|
useToken: qd
|
|
10873
10871
|
} = Me;
|
|
10874
10872
|
function zd(e) {
|
|
@@ -10984,8 +10982,8 @@ const {
|
|
|
10984
10982
|
onCheckIsFavourite: r,
|
|
10985
10983
|
onAddFavourite: i,
|
|
10986
10984
|
onRemoveFavourite: o
|
|
10987
|
-
} = e, [s, a] = x(!1), [l, d] = x(!1), [u, f] = x([]), [c, m] = x(!0), [
|
|
10988
|
-
t:
|
|
10985
|
+
} = e, [s, a] = x(!1), [l, d] = x(!1), [u, f] = x([]), [c, m] = x(!0), [p, h] = x(), {
|
|
10986
|
+
t: g
|
|
10989
10987
|
} = K(ye) || {}, {
|
|
10990
10988
|
token: v
|
|
10991
10989
|
} = Xd(), y = K(st), {
|
|
@@ -11061,14 +11059,14 @@ const {
|
|
|
11061
11059
|
paddingLeft: 15,
|
|
11062
11060
|
color: "#ccc"
|
|
11063
11061
|
},
|
|
11064
|
-
children:
|
|
11062
|
+
children: g == null ? void 0 : g("favorites").toUpperCase()
|
|
11065
11063
|
}), /* @__PURE__ */ n("div", {
|
|
11066
11064
|
style: {
|
|
11067
11065
|
flexGrow: 1,
|
|
11068
11066
|
paddingLeft: 10
|
|
11069
11067
|
},
|
|
11070
11068
|
children: /* @__PURE__ */ n(ft, {
|
|
11071
|
-
title:
|
|
11069
|
+
title: g == null ? void 0 : g("edit_favorites"),
|
|
11072
11070
|
children: /* @__PURE__ */ n(Wr, {
|
|
11073
11071
|
style: {
|
|
11074
11072
|
color: v.colorPrimary,
|
|
@@ -11095,7 +11093,7 @@ const {
|
|
|
11095
11093
|
padding: 5,
|
|
11096
11094
|
paddingLeft: 15
|
|
11097
11095
|
},
|
|
11098
|
-
children:
|
|
11096
|
+
children: g == null ? void 0 : g("no_favorites")
|
|
11099
11097
|
})]
|
|
11100
11098
|
});
|
|
11101
11099
|
function R({
|
|
@@ -11117,8 +11115,8 @@ const {
|
|
|
11117
11115
|
});
|
|
11118
11116
|
}
|
|
11119
11117
|
async function A() {
|
|
11120
|
-
if (s &&
|
|
11121
|
-
await o(
|
|
11118
|
+
if (s && p)
|
|
11119
|
+
await o(p);
|
|
11122
11120
|
else {
|
|
11123
11121
|
if (!D)
|
|
11124
11122
|
return;
|