@gisce/react-ooui 2.37.0-alpha.5 → 2.37.0-alpha.7
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,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var xo = (e, t, n) => (
|
|
1
|
+
var Da = Object.defineProperty;
|
|
2
|
+
var Pa = (e, t, n) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var xo = (e, t, n) => (Pa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsx as i, jsxs as E, Fragment as ae } from "react/jsx-runtime";
|
|
5
|
-
import mt, { useContext as te, useState as x, useEffect as ue, useRef as J, memo as an, useMemo as me, useCallback as N, createContext as
|
|
6
|
-
import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as
|
|
7
|
-
import { Label as ln, Field as Ir, Tree as Vi, Reference as
|
|
5
|
+
import mt, { useContext as te, useState as x, useEffect as ue, useRef as J, memo as an, useMemo as me, useCallback as N, createContext as ka, forwardRef as yt, useImperativeHandle as vt, createElement as $a, Fragment as Fn } from "react";
|
|
6
|
+
import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as Na, Menu as Io, Spin as We, Divider as Yn, Space as Je, Input as lt, Select as Ut, Checkbox as Cn, Alert as rt, Timeline as Oi, Statistic as Ma, Card as Hr, Tag as Ur, message as ur, App as La, Progress as ja, Avatar as Fi, DatePicker as Wr, TimePicker as Ba, InputNumber as Ai, Layout as Ri, Badge as Gr, Pagination as Ha, Tabs as _i, Radio as To, Switch as Ua, Steps as Oo } from "antd";
|
|
7
|
+
import { Label as ln, Field as Ir, Tree as Vi, Reference as Wa, Selection as Kr, Many2one as Ei, Boolean as Ga, parseContext as Lt, graphProcessor as Di, graphFieldUtils as Ka, parseGraph as Pi, Container as qa, Form as ki, parseContextFields as Ya, parseDomainFields as za, Integer as Tr, SearchFieldTypes as Tt, SearchFilter as $i, transformDomainForChildWidget as qr } from "@gisce/ooui";
|
|
8
8
|
import * as Fo from "@ant-design/icons";
|
|
9
|
-
import Ni, { QuestionCircleOutlined as Mi, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as zn, WarningOutlined as Li, CloseOutlined as cn, CheckOutlined as Jn, TranslationOutlined as ji, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Qn, ExportOutlined as
|
|
9
|
+
import Ni, { QuestionCircleOutlined as Mi, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as zn, WarningOutlined as Li, CloseOutlined as cn, CheckOutlined as Jn, TranslationOutlined as ji, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Qn, ExportOutlined as Ja, StarFilled as Qa, StarOutlined as Xa, ThunderboltOutlined as Jr, PrinterOutlined as Qr, EnterOutlined as Xr, SearchOutlined as Xn, UpOutlined as Za, PlusSquareOutlined as el, MinusSquareOutlined as tl, FileAddOutlined as Zn, AlignLeftOutlined as nl, ApiOutlined as rl, DeleteOutlined as Zr, LeftOutlined as Bi, RightOutlined as Hi, EyeOutlined as ol, FormOutlined as xn, TableOutlined as eo, AreaChartOutlined as il, CalendarOutlined as sl, LinkOutlined as Ao, SaveOutlined as al, CopyOutlined as to, InfoCircleOutlined as Ui, ReloadOutlined as er, EditOutlined as Wi, PlusOutlined as ll, FilterOutlined as Gi, CloseCircleFilled as cl, BorderOuterOutlined as dl, SettingOutlined as ul } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as In } from "interweave";
|
|
11
|
-
import { useLocale as he, FormigaConfigProvider as
|
|
11
|
+
import { useLocale as he, FormigaConfigProvider as fl, mergeStrings as ml, Many2OneSuffix as pl, Many2OneSuffixModal as Ro, FieldSet as hl, ExportModal as gl, Dropdown as Ki, DropdownButton as Zt, HTMLPreview as yl, FavouriteButton as vl } from "@gisce/react-formiga-components";
|
|
12
12
|
import * as _o from "@tabler/icons-react";
|
|
13
|
-
import
|
|
13
|
+
import wl from "antd/lib/input/TextArea";
|
|
14
14
|
import dn from "styled-components";
|
|
15
15
|
import no from "react-measure";
|
|
16
|
-
import
|
|
16
|
+
import bl from "lodash/debounce";
|
|
17
17
|
import { nanoid as ro } from "nanoid";
|
|
18
18
|
import Or from "antd/lib/typography/Title";
|
|
19
19
|
import St from "use-deep-compare-effect";
|
|
20
|
-
import { Line as
|
|
20
|
+
import { Line as Sl, Column as Cl, Pie as xl } from "@ant-design/plots";
|
|
21
21
|
import st from "dayjs";
|
|
22
|
-
import { default as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
22
|
+
import { default as Fy } from "dayjs";
|
|
23
|
+
import Il from "dayjs/plugin/advancedFormat";
|
|
24
|
+
import Tl from "dayjs/plugin/customParseFormat";
|
|
25
|
+
import Ol from "dayjs/plugin/isoWeek";
|
|
26
|
+
import Fl from "dayjs/plugin/timezone";
|
|
27
|
+
import Al from "dayjs/plugin/duration";
|
|
28
|
+
import Rl from "dayjs/plugin/relativeTime";
|
|
29
|
+
import _l from "dayjs/plugin/weekday";
|
|
30
|
+
import Vl from "dayjs/plugin/localeData";
|
|
31
31
|
import { createRoot as qi } from "react-dom/client";
|
|
32
32
|
import { useDeepCompareCallback as ht, useDeepCompareMemo as Tn, useDeepCompareEffect as Yi } from "use-deep-compare";
|
|
33
|
-
import { InfiniteTable as zi, Table as
|
|
34
|
-
import { fileTypeFromBuffer as
|
|
33
|
+
import { InfiniteTable as zi, Table as El } from "@gisce/react-formiga-table";
|
|
34
|
+
import { fileTypeFromBuffer as Dl } from "file-type-buffer-browser";
|
|
35
35
|
import { isPresetStatusColor as Ji, isPresetColor as Qi } from "antd/lib/_util/colors";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
36
|
+
import Pl from "antd/es/date-picker/locale/en_US";
|
|
37
|
+
import kl from "antd/es/date-picker/locale/es_ES";
|
|
38
|
+
import $l from "antd/es/date-picker/locale/ca_ES";
|
|
39
|
+
import Nl from "validator";
|
|
40
40
|
import "@gisce/react-formiga-table/style.css";
|
|
41
|
-
import
|
|
41
|
+
import Ml from "antd/es/typography/Link";
|
|
42
42
|
import Ln from "antd/es/alert/ErrorBoundary";
|
|
43
|
-
import { GridUi as
|
|
43
|
+
import { GridUi as Ll } from "@gisce/fiber-diagram";
|
|
44
44
|
import { useHotkeys as Mt } from "react-hotkeys-hook";
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import { WidthProvider as
|
|
45
|
+
import jl from "validator/lib/isURL";
|
|
46
|
+
import Bl from "validator/lib/isEmail";
|
|
47
|
+
import Hl from "react-markdown";
|
|
48
|
+
import Ul from "remark-gfm";
|
|
49
|
+
import Wl from "@monaco-editor/react";
|
|
50
|
+
import Gl from "md5";
|
|
51
|
+
import { WidthProvider as Kl, Responsive as ql } from "react-grid-layout";
|
|
52
52
|
import "react-grid-layout/css/styles.css";
|
|
53
|
-
import { AnimatePresence as
|
|
54
|
-
const Be = mt.createContext(null),
|
|
53
|
+
import { AnimatePresence as Yl, motion as Vo } from "framer-motion";
|
|
54
|
+
const Be = mt.createContext(null), zl = (e) => {
|
|
55
55
|
const {
|
|
56
56
|
children: t,
|
|
57
57
|
activeId: n,
|
|
@@ -93,7 +93,7 @@ const Be = mt.createContext(null), Yl = (e) => {
|
|
|
93
93
|
children: t
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
}, { Text:
|
|
96
|
+
}, { Text: Jl, Title: Ql } = _t, { useToken: Xl } = Ge, Zl = {
|
|
97
97
|
left: "justify-start",
|
|
98
98
|
center: "justify-center",
|
|
99
99
|
right: "justify-end"
|
|
@@ -101,11 +101,11 @@ const Be = mt.createContext(null), Yl = (e) => {
|
|
|
101
101
|
const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = te(Be);
|
|
102
102
|
let d = a !== null && o.length > 1 ? o + " :" : o;
|
|
103
103
|
!t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
|
|
104
|
-
const h = n || (a ? r ? "left" : "right" : "left"), { token: m } =
|
|
104
|
+
const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = Xl(), v = l === void 0 ? Jl : Ql;
|
|
105
105
|
return /* @__PURE__ */ E(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
108
|
+
className: `flex flex-row items-center pb-1 pt-1 ${Zl[h]}`,
|
|
109
109
|
children: [
|
|
110
110
|
s && /* @__PURE__ */ i(Ft, { title: s, children: /* @__PURE__ */ i(
|
|
111
111
|
Mi,
|
|
@@ -172,14 +172,14 @@ function _e({
|
|
|
172
172
|
m()
|
|
173
173
|
] }))();
|
|
174
174
|
}
|
|
175
|
-
const { confirm:
|
|
175
|
+
const { confirm: ec } = ct, At = ({
|
|
176
176
|
onOk: e,
|
|
177
177
|
confirmMessage: t,
|
|
178
178
|
okText: n,
|
|
179
179
|
cancelText: r,
|
|
180
180
|
t: o
|
|
181
181
|
}) => {
|
|
182
|
-
|
|
182
|
+
ec({
|
|
183
183
|
title: o("confirmation"),
|
|
184
184
|
icon: /* @__PURE__ */ i(Vt, {}),
|
|
185
185
|
centered: !0,
|
|
@@ -281,7 +281,7 @@ const { confirm: Zl } = ct, At = ({
|
|
|
281
281
|
STOCK_UNINDENT: "AlignLeft",
|
|
282
282
|
STOCK_PREFERENCES: "Setting"
|
|
283
283
|
}, dt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Eo.hasOwnProperty(e) ? Do(Eo[e], t) : Do(e, t));
|
|
284
|
-
function
|
|
284
|
+
function tc(e) {
|
|
285
285
|
return `${e.split("-").map(
|
|
286
286
|
(t) => t.replace(
|
|
287
287
|
/\w\S*/g,
|
|
@@ -291,7 +291,7 @@ function ec(e) {
|
|
|
291
291
|
}
|
|
292
292
|
function Do(e, t) {
|
|
293
293
|
let n = e.charAt(0).toUpperCase() + e.slice(1);
|
|
294
|
-
n.indexOf("-") !== -1 && (n =
|
|
294
|
+
n.indexOf("-") !== -1 && (n = tc(n));
|
|
295
295
|
const r = `${n}Outlined`;
|
|
296
296
|
if (Fo[r])
|
|
297
297
|
return () => mt.createElement(Fo[r], {
|
|
@@ -360,7 +360,7 @@ const oo = (e) => {
|
|
|
360
360
|
children: r
|
|
361
361
|
}
|
|
362
362
|
) });
|
|
363
|
-
},
|
|
363
|
+
}, nc = (e) => {
|
|
364
364
|
const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
|
|
365
365
|
id: o,
|
|
366
366
|
caption: s,
|
|
@@ -400,14 +400,14 @@ const oo = (e) => {
|
|
|
400
400
|
return null;
|
|
401
401
|
if (t.buttons.length > 1)
|
|
402
402
|
return /* @__PURE__ */ i(_e, { ooui: new Ir({ defaultButton: n }), children: /* @__PURE__ */ E(
|
|
403
|
-
|
|
403
|
+
Na.Button,
|
|
404
404
|
{
|
|
405
405
|
disabled: !a || p,
|
|
406
406
|
onClick: C,
|
|
407
407
|
icon: /* @__PURE__ */ i(zn, {}),
|
|
408
408
|
type: f ? "primary" : void 0,
|
|
409
409
|
overlay: /* @__PURE__ */ i(
|
|
410
|
-
|
|
410
|
+
rc,
|
|
411
411
|
{
|
|
412
412
|
ooui: r,
|
|
413
413
|
executeButtonAction: m
|
|
@@ -421,7 +421,7 @@ const oo = (e) => {
|
|
|
421
421
|
) });
|
|
422
422
|
if (n)
|
|
423
423
|
return /* @__PURE__ */ i(oo, { ooui: n });
|
|
424
|
-
},
|
|
424
|
+
}, rc = (e) => {
|
|
425
425
|
const { t } = he(), { ooui: n, executeButtonAction: r } = e;
|
|
426
426
|
if (!n)
|
|
427
427
|
return null;
|
|
@@ -474,7 +474,7 @@ const oo = (e) => {
|
|
|
474
474
|
);
|
|
475
475
|
});
|
|
476
476
|
return /* @__PURE__ */ i(Io, { children: o });
|
|
477
|
-
},
|
|
477
|
+
}, oc = 0.7;
|
|
478
478
|
function Po() {
|
|
479
479
|
const { innerWidth: e, innerHeight: t } = window;
|
|
480
480
|
return {
|
|
@@ -492,7 +492,7 @@ function nr() {
|
|
|
492
492
|
}
|
|
493
493
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
494
494
|
}, []), {
|
|
495
|
-
modalWidth: e.width *
|
|
495
|
+
modalWidth: e.width * oc,
|
|
496
496
|
modalHeight: e.height,
|
|
497
497
|
width: e.width,
|
|
498
498
|
height: e.height
|
|
@@ -528,9 +528,9 @@ const Xi = (e) => {
|
|
|
528
528
|
message: t,
|
|
529
529
|
title: r
|
|
530
530
|
};
|
|
531
|
-
}, { error:
|
|
531
|
+
}, { error: ic, warning: sc } = ct, it = (e) => {
|
|
532
532
|
const { message: t, type: n, title: r } = Xi(e);
|
|
533
|
-
(n === "error" ?
|
|
533
|
+
(n === "error" ? ic : sc)({
|
|
534
534
|
title: r,
|
|
535
535
|
icon: n === "error" ? /* @__PURE__ */ i(Vt, {}) : /* @__PURE__ */ i(Li, {}),
|
|
536
536
|
centered: !0,
|
|
@@ -579,7 +579,7 @@ const Xi = (e) => {
|
|
|
579
579
|
return u.map((R, S) => /* @__PURE__ */ E(ke, { style: { paddingBottom: 20 }, children: [
|
|
580
580
|
/* @__PURE__ */ i(we, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
|
|
581
581
|
/* @__PURE__ */ i(we, { flex: "auto", children: /* @__PURE__ */ i(
|
|
582
|
-
|
|
582
|
+
wl,
|
|
583
583
|
{
|
|
584
584
|
rows: 4,
|
|
585
585
|
value: v[R.code] || "",
|
|
@@ -656,28 +656,28 @@ const Xi = (e) => {
|
|
|
656
656
|
}
|
|
657
657
|
);
|
|
658
658
|
};
|
|
659
|
-
function
|
|
659
|
+
function nt(e) {
|
|
660
660
|
const { tooltip: t, ...n } = e;
|
|
661
661
|
return /* @__PURE__ */ i(Ft, { title: t, children: /* @__PURE__ */ i(je, { ...n }) });
|
|
662
662
|
}
|
|
663
|
-
const { info:
|
|
664
|
-
|
|
663
|
+
const { info: ac } = ct, xt = (e) => {
|
|
664
|
+
ac({
|
|
665
665
|
title: "",
|
|
666
666
|
centered: !0,
|
|
667
667
|
content: e
|
|
668
668
|
});
|
|
669
|
-
}, { useToken:
|
|
670
|
-
const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } =
|
|
669
|
+
}, { useToken: lc } = Ge, es = (e) => {
|
|
670
|
+
const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = lc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
|
|
671
671
|
let u = /* @__PURE__ */ i(
|
|
672
|
-
|
|
672
|
+
cc,
|
|
673
673
|
{
|
|
674
674
|
ooui: t,
|
|
675
675
|
requiredStyle: c,
|
|
676
676
|
isSearchField: n
|
|
677
677
|
}
|
|
678
678
|
);
|
|
679
|
-
return a && !o && !n && (u = /* @__PURE__ */ i(
|
|
680
|
-
},
|
|
679
|
+
return a && !o && !n && (u = /* @__PURE__ */ i(dc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(_e, { required: s, ...e, children: u });
|
|
680
|
+
}, cc = ({
|
|
681
681
|
value: e,
|
|
682
682
|
ooui: t,
|
|
683
683
|
requiredStyle: n,
|
|
@@ -713,7 +713,7 @@ const { info: sc } = ct, xt = (e) => {
|
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
715
|
)), s && (h = /* @__PURE__ */ i(lt, { value: e, id: c, disabled: !0 })), h;
|
|
716
|
-
},
|
|
716
|
+
}, dc = ({
|
|
717
717
|
value: e,
|
|
718
718
|
field: t,
|
|
719
719
|
requiredStyle: n,
|
|
@@ -781,7 +781,7 @@ const { info: sc } = ct, xt = (e) => {
|
|
|
781
781
|
}
|
|
782
782
|
) }),
|
|
783
783
|
/* @__PURE__ */ i(we, { flex: "none", children: /* @__PURE__ */ i(
|
|
784
|
-
|
|
784
|
+
nt,
|
|
785
785
|
{
|
|
786
786
|
tooltip: p("translate"),
|
|
787
787
|
icon: /* @__PURE__ */ i(ji, {}),
|
|
@@ -792,16 +792,16 @@ const { info: sc } = ct, xt = (e) => {
|
|
|
792
792
|
}
|
|
793
793
|
) })
|
|
794
794
|
] }) });
|
|
795
|
-
}, { defaultAlgorithm:
|
|
795
|
+
}, { defaultAlgorithm: uc, defaultSeed: fc } = Ge, mc = uc(fc), { Option: pc } = Ut, ts = (e) => {
|
|
796
796
|
const { ooui: t } = e, { required: n } = t;
|
|
797
797
|
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(ns, { ...e }) });
|
|
798
798
|
}, ns = (e) => {
|
|
799
799
|
const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
|
|
800
800
|
const [d, p] = f;
|
|
801
|
-
return /* @__PURE__ */ i(
|
|
801
|
+
return /* @__PURE__ */ i(pc, { value: d, children: p }, d);
|
|
802
802
|
});
|
|
803
803
|
return /* @__PURE__ */ i(
|
|
804
|
-
a && !s ?
|
|
804
|
+
a && !s ? hc : Ut,
|
|
805
805
|
{
|
|
806
806
|
disabled: s,
|
|
807
807
|
onChange: n,
|
|
@@ -813,17 +813,17 @@ const { info: sc } = ct, xt = (e) => {
|
|
|
813
813
|
children: c
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
|
-
},
|
|
816
|
+
}, hc = dn(Ut)`
|
|
817
817
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
818
|
-
background-color: ${
|
|
818
|
+
background-color: ${mc.colorPrimaryBg};
|
|
819
819
|
}
|
|
820
|
-
`, { defaultAlgorithm:
|
|
820
|
+
`, { defaultAlgorithm: gc, defaultSeed: yc } = Ge, ko = gc(yc), vc = (e) => {
|
|
821
821
|
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
822
|
-
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(
|
|
823
|
-
},
|
|
822
|
+
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(wc, { id: n, readOnly: r, required: o }) });
|
|
823
|
+
}, wc = (e) => {
|
|
824
824
|
const { required: t, readOnly: n, ...r } = e;
|
|
825
|
-
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ?
|
|
826
|
-
},
|
|
825
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? bc : Cn, { disabled: n, ...r }) });
|
|
826
|
+
}, bc = dn(Cn)`
|
|
827
827
|
.ant-checkbox-inner {
|
|
828
828
|
background-color: ${ko.colorPrimaryBg};
|
|
829
829
|
}
|
|
@@ -832,12 +832,12 @@ const { info: sc } = ct, xt = (e) => {
|
|
|
832
832
|
background-color: ${ko.colorPrimary};
|
|
833
833
|
}
|
|
834
834
|
`;
|
|
835
|
-
function
|
|
835
|
+
function Sc(e) {
|
|
836
836
|
const n = Buffer.from(e, "base64").length / 1e3;
|
|
837
837
|
return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
|
|
838
838
|
}
|
|
839
839
|
async function nn(e) {
|
|
840
|
-
const t = await
|
|
840
|
+
const t = await Dl(
|
|
841
841
|
Buffer.from(e, "base64")
|
|
842
842
|
);
|
|
843
843
|
return t || {
|
|
@@ -856,10 +856,10 @@ function rr(e, t) {
|
|
|
856
856
|
const o = new Uint8Array(r), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
|
|
857
857
|
window.open(a);
|
|
858
858
|
}
|
|
859
|
-
const
|
|
859
|
+
const Cc = (e) => {
|
|
860
860
|
const { ooui: t } = e, { required: n, id: r } = t, o = dt(r);
|
|
861
|
-
return o ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
862
|
-
},
|
|
861
|
+
return o ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(xc, { ooui: t }) });
|
|
862
|
+
}, xc = (e) => {
|
|
863
863
|
const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = J(null), { t: a } = he(), l = (d) => {
|
|
864
864
|
r == null || r(d);
|
|
865
865
|
};
|
|
@@ -898,7 +898,7 @@ const Sc = (e) => {
|
|
|
898
898
|
] }),
|
|
899
899
|
/* @__PURE__ */ i(ke, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ E(Je, { children: [
|
|
900
900
|
/* @__PURE__ */ i(
|
|
901
|
-
|
|
901
|
+
nt,
|
|
902
902
|
{
|
|
903
903
|
tooltip: a("uploadNewImage"),
|
|
904
904
|
icon: /* @__PURE__ */ i(Yr, {}),
|
|
@@ -909,7 +909,7 @@ const Sc = (e) => {
|
|
|
909
909
|
}
|
|
910
910
|
),
|
|
911
911
|
/* @__PURE__ */ i(
|
|
912
|
-
|
|
912
|
+
nt,
|
|
913
913
|
{
|
|
914
914
|
tooltip: a("download"),
|
|
915
915
|
disabled: !n,
|
|
@@ -918,7 +918,7 @@ const Sc = (e) => {
|
|
|
918
918
|
}
|
|
919
919
|
),
|
|
920
920
|
/* @__PURE__ */ i(
|
|
921
|
-
|
|
921
|
+
nt,
|
|
922
922
|
{
|
|
923
923
|
tooltip: a("clear"),
|
|
924
924
|
disabled: o || !n,
|
|
@@ -928,10 +928,10 @@ const Sc = (e) => {
|
|
|
928
928
|
)
|
|
929
929
|
] }) })
|
|
930
930
|
] });
|
|
931
|
-
}, xc = (e) => {
|
|
932
|
-
const { ooui: t } = e, { required: n } = t;
|
|
933
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Ic, {}) });
|
|
934
931
|
}, Ic = (e) => {
|
|
932
|
+
const { ooui: t } = e, { required: n } = t;
|
|
933
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Tc, {}) });
|
|
934
|
+
}, Tc = (e) => {
|
|
935
935
|
const { value: t, onChange: n } = e;
|
|
936
936
|
if (!t)
|
|
937
937
|
return null;
|
|
@@ -941,7 +941,7 @@ const Sc = (e) => {
|
|
|
941
941
|
return console.error(r), null;
|
|
942
942
|
}
|
|
943
943
|
return /* @__PURE__ */ i(
|
|
944
|
-
|
|
944
|
+
Ll,
|
|
945
945
|
{
|
|
946
946
|
inputJson: t,
|
|
947
947
|
onChange: (r) => {
|
|
@@ -953,13 +953,13 @@ const Sc = (e) => {
|
|
|
953
953
|
const t = e.arch, n = e.fields, r = new Vi(n);
|
|
954
954
|
return r.parse(t), r;
|
|
955
955
|
};
|
|
956
|
-
function
|
|
956
|
+
function Oc(e) {
|
|
957
957
|
return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
|
|
958
958
|
}
|
|
959
959
|
const io = (e, t, n) => e.columns.map((o) => {
|
|
960
960
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
961
961
|
let c;
|
|
962
|
-
return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) =>
|
|
962
|
+
return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Oc(u) ? u : /* @__PURE__ */ E("p", { style: { color: "red" }, children: [
|
|
963
963
|
"Unsupported widget value for a Tree cell:",
|
|
964
964
|
/* @__PURE__ */ i("pre", { children: /* @__PURE__ */ E("strong", { children: [
|
|
965
965
|
"Type: ",
|
|
@@ -986,11 +986,11 @@ const io = (e, t, n) => e.columns.map((o) => {
|
|
|
986
986
|
o[s] = r[s];
|
|
987
987
|
else {
|
|
988
988
|
const a = e.findById(s);
|
|
989
|
-
a instanceof
|
|
989
|
+
a instanceof Wa || a instanceof Kr ? o[s] = r[s] : a instanceof Ei ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
|
|
990
990
|
model: a.relation,
|
|
991
991
|
id: r[s][0],
|
|
992
992
|
value: r[s][1]
|
|
993
|
-
} : a instanceof
|
|
993
|
+
} : a instanceof Ga ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
|
|
994
994
|
}
|
|
995
995
|
}), o;
|
|
996
996
|
});
|
|
@@ -1022,7 +1022,7 @@ function en({
|
|
|
1022
1022
|
};
|
|
1023
1023
|
return e.sort(l);
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function Fc(e) {
|
|
1026
1026
|
for (const t in e)
|
|
1027
1027
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1028
1028
|
return !0;
|
|
@@ -1094,7 +1094,7 @@ const so = async (e) => {
|
|
|
1094
1094
|
}, as = (e) => {
|
|
1095
1095
|
const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
|
|
1096
1096
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1097
|
-
},
|
|
1097
|
+
}, Ac = (e, t) => {
|
|
1098
1098
|
const n = {};
|
|
1099
1099
|
return Object.keys(e).forEach((r) => {
|
|
1100
1100
|
var o;
|
|
@@ -1102,7 +1102,7 @@ const so = async (e) => {
|
|
|
1102
1102
|
(s) => s.operation !== "pendingRemove"
|
|
1103
1103
|
) : n[r] = e[r];
|
|
1104
1104
|
}), n;
|
|
1105
|
-
},
|
|
1105
|
+
}, Rc = ({
|
|
1106
1106
|
values: e,
|
|
1107
1107
|
fields: t
|
|
1108
1108
|
}) => {
|
|
@@ -1121,7 +1121,7 @@ const so = async (e) => {
|
|
|
1121
1121
|
n[r] = e[r];
|
|
1122
1122
|
}), n;
|
|
1123
1123
|
};
|
|
1124
|
-
function
|
|
1124
|
+
function _c(e) {
|
|
1125
1125
|
const t = e.map((r) => r.id);
|
|
1126
1126
|
return e.filter((r, o) => {
|
|
1127
1127
|
const { id: s } = r;
|
|
@@ -1137,7 +1137,7 @@ function $o({
|
|
|
1137
1137
|
e[r] && (n[r] = e[r]);
|
|
1138
1138
|
}), n;
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1140
|
+
const Vc = ({
|
|
1141
1141
|
allItems: e,
|
|
1142
1142
|
range: t
|
|
1143
1143
|
}) => {
|
|
@@ -1146,7 +1146,7 @@ const _c = ({
|
|
|
1146
1146
|
return l && (l.operation === "original" || l.operation === "pendingLink");
|
|
1147
1147
|
}), s = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
|
|
1148
1148
|
return { realItemsIds: o, otherItems: s };
|
|
1149
|
-
},
|
|
1149
|
+
}, Ec = ({
|
|
1150
1150
|
finalResultIds: e,
|
|
1151
1151
|
fetchedItems: t,
|
|
1152
1152
|
otherItems: n
|
|
@@ -1160,15 +1160,15 @@ const _c = ({
|
|
|
1160
1160
|
const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === s.id);
|
|
1161
1161
|
return a - l;
|
|
1162
1162
|
}), r;
|
|
1163
|
-
},
|
|
1163
|
+
}, Dc = async (e, t, n, r) => await $.getHandler().searchAllIds({
|
|
1164
1164
|
model: t,
|
|
1165
1165
|
params: [["id", "in", e]],
|
|
1166
1166
|
context: n,
|
|
1167
1167
|
order: r
|
|
1168
|
-
}),
|
|
1168
|
+
}), Pc = (e) => {
|
|
1169
1169
|
const t = {};
|
|
1170
1170
|
return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
|
|
1171
|
-
},
|
|
1171
|
+
}, kc = async ({
|
|
1172
1172
|
relation: e,
|
|
1173
1173
|
ids: t,
|
|
1174
1174
|
treeView: n,
|
|
@@ -1189,7 +1189,7 @@ const _c = ({
|
|
|
1189
1189
|
colors: rn(a[1]),
|
|
1190
1190
|
status: jn(a[1])
|
|
1191
1191
|
};
|
|
1192
|
-
},
|
|
1192
|
+
}, $c = (e, t) => {
|
|
1193
1193
|
if (!t)
|
|
1194
1194
|
return e;
|
|
1195
1195
|
const n = {};
|
|
@@ -1203,7 +1203,7 @@ const _c = ({
|
|
|
1203
1203
|
} else
|
|
1204
1204
|
n[r] = e[r];
|
|
1205
1205
|
}), n;
|
|
1206
|
-
}, Jt = (e, t) =>
|
|
1206
|
+
}, Jt = (e, t) => $c(e, t), fr = ({
|
|
1207
1207
|
source: e,
|
|
1208
1208
|
target: t,
|
|
1209
1209
|
fields: n
|
|
@@ -1236,7 +1236,7 @@ const _c = ({
|
|
|
1236
1236
|
else
|
|
1237
1237
|
e[o] === void 0 && t[o] !== void 0 ? r[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? r[o] = null : r[o] = t[o]);
|
|
1238
1238
|
}), r;
|
|
1239
|
-
},
|
|
1239
|
+
}, Nc = ({
|
|
1240
1240
|
changedFields: e,
|
|
1241
1241
|
formOoui: t,
|
|
1242
1242
|
types: n
|
|
@@ -1244,7 +1244,7 @@ const _c = ({
|
|
|
1244
1244
|
var a;
|
|
1245
1245
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1246
1246
|
return n.includes(s);
|
|
1247
|
-
}).some((o) => o === !0),
|
|
1247
|
+
}).some((o) => o === !0), Mc = ({
|
|
1248
1248
|
fieldsDomain: e,
|
|
1249
1249
|
fields: t
|
|
1250
1250
|
}) => {
|
|
@@ -1252,12 +1252,12 @@ const _c = ({
|
|
|
1252
1252
|
return Object.keys(t).forEach((r) => {
|
|
1253
1253
|
n[r] = t[r], e[r] && (n[r].domain = e[r]);
|
|
1254
1254
|
}), n;
|
|
1255
|
-
},
|
|
1255
|
+
}, Lc = (e) => {
|
|
1256
1256
|
const t = {};
|
|
1257
1257
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
|
|
1258
1258
|
(n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
|
|
1259
1259
|
}), t);
|
|
1260
|
-
},
|
|
1260
|
+
}, jc = ({
|
|
1261
1261
|
onChangeFieldActionArgs: e,
|
|
1262
1262
|
values: t,
|
|
1263
1263
|
parentValues: n = {}
|
|
@@ -1307,7 +1307,7 @@ const Wt = ({
|
|
|
1307
1307
|
const o = e[r];
|
|
1308
1308
|
t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
|
|
1309
1309
|
}), n;
|
|
1310
|
-
},
|
|
1310
|
+
}, Bc = (e) => e ? "success" : "error", An = (e) => {
|
|
1311
1311
|
let t = 0;
|
|
1312
1312
|
e = e.toString().padEnd(10, "0");
|
|
1313
1313
|
for (let r = 0; r < e.length; r++)
|
|
@@ -1318,10 +1318,10 @@ const Wt = ({
|
|
|
1318
1318
|
n += ("00" + o.toString(16)).slice(-2);
|
|
1319
1319
|
}
|
|
1320
1320
|
return n;
|
|
1321
|
-
},
|
|
1321
|
+
}, Hc = (e, t) => e.replace(
|
|
1322
1322
|
/\{([^}]+)\}/g,
|
|
1323
1323
|
(n, r) => t[r] !== void 0 ? t[r] : n
|
|
1324
|
-
), Mo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""),
|
|
1324
|
+
), Mo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Uc = (e) => /* @__PURE__ */ E(
|
|
1325
1325
|
"div",
|
|
1326
1326
|
{
|
|
1327
1327
|
style: { display: "inline-block", cursor: "pointer" },
|
|
@@ -1334,7 +1334,7 @@ const Wt = ({
|
|
|
1334
1334
|
] })
|
|
1335
1335
|
]
|
|
1336
1336
|
}
|
|
1337
|
-
),
|
|
1337
|
+
), Wc = (e) => {
|
|
1338
1338
|
const { ooui: t } = e, { relation: n, context: r, views: o } = t, [s, a] = x(!0), [l, c] = x(), [u, f] = x(/* @__PURE__ */ new Map()), d = te(Be), { getContext: p } = d || {};
|
|
1339
1339
|
St(() => {
|
|
1340
1340
|
m();
|
|
@@ -1354,8 +1354,8 @@ const Wt = ({
|
|
|
1354
1354
|
a(!1);
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
|
-
return s ? /* @__PURE__ */ i(We, {}) : l ? /* @__PURE__ */ i(
|
|
1358
|
-
},
|
|
1357
|
+
return s ? /* @__PURE__ */ i(We, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Gc, { ooui: t, views: u }) });
|
|
1358
|
+
}, Gc = (e) => {
|
|
1359
1359
|
const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = x(!1), [c, u] = x(), [f, d] = x(!1), [p, h] = x(), {
|
|
1360
1360
|
relation: m,
|
|
1361
1361
|
context: v,
|
|
@@ -1397,7 +1397,7 @@ const Wt = ({
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
if (c)
|
|
1400
|
-
return /* @__PURE__ */ i(
|
|
1400
|
+
return /* @__PURE__ */ i(rt, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
1401
1401
|
if (a)
|
|
1402
1402
|
return /* @__PURE__ */ i(We, {});
|
|
1403
1403
|
const V = (F) => {
|
|
@@ -1407,7 +1407,7 @@ const Wt = ({
|
|
|
1407
1407
|
var _, k, L, W;
|
|
1408
1408
|
const P = {
|
|
1409
1409
|
children: /* @__PURE__ */ i(
|
|
1410
|
-
|
|
1410
|
+
Uc,
|
|
1411
1411
|
{
|
|
1412
1412
|
title: (_ = F.values) == null ? void 0 : _[w],
|
|
1413
1413
|
summary: (k = F.values) == null ? void 0 : k[y],
|
|
@@ -1444,7 +1444,7 @@ const Wt = ({
|
|
|
1444
1444
|
}
|
|
1445
1445
|
)
|
|
1446
1446
|
] });
|
|
1447
|
-
},
|
|
1447
|
+
}, Kc = {
|
|
1448
1448
|
true: "Sí",
|
|
1449
1449
|
false: "No",
|
|
1450
1450
|
simple_search: "Búsqueda simple",
|
|
@@ -1544,7 +1544,7 @@ const Wt = ({
|
|
|
1544
1544
|
applyFilters: "Aplicar filtres",
|
|
1545
1545
|
resetTableView: "Restablir vista de taula",
|
|
1546
1546
|
not: "No"
|
|
1547
|
-
},
|
|
1547
|
+
}, qc = {
|
|
1548
1548
|
true: "Yes",
|
|
1549
1549
|
false: "No",
|
|
1550
1550
|
simple_search: "Simple search",
|
|
@@ -1644,7 +1644,7 @@ const Wt = ({
|
|
|
1644
1644
|
applyFilters: "Apply filters",
|
|
1645
1645
|
resetTableView: "Reset table view",
|
|
1646
1646
|
not: "Not"
|
|
1647
|
-
},
|
|
1647
|
+
}, Yc = {
|
|
1648
1648
|
true: "Sí",
|
|
1649
1649
|
false: "No",
|
|
1650
1650
|
simple_search: "Búsqueda simple",
|
|
@@ -1744,16 +1744,16 @@ const Wt = ({
|
|
|
1744
1744
|
applyFilters: "Aplicar filtros",
|
|
1745
1745
|
resetTableView: "Restablecer vista de tabla",
|
|
1746
1746
|
not: "No"
|
|
1747
|
-
}, Yc = {
|
|
1748
|
-
ca_ES: Gc,
|
|
1749
|
-
en_US: Kc,
|
|
1750
|
-
es_ES: qc
|
|
1751
1747
|
}, zc = {
|
|
1748
|
+
ca_ES: Kc,
|
|
1749
|
+
en_US: qc,
|
|
1750
|
+
es_ES: Yc
|
|
1751
|
+
}, Jc = {
|
|
1752
1752
|
erpFeatures: {},
|
|
1753
1753
|
globalValues: {},
|
|
1754
1754
|
rootContext: {},
|
|
1755
1755
|
devMode: !1
|
|
1756
|
-
}, ls = mt.createContext(
|
|
1756
|
+
}, ls = mt.createContext(Jc), ao = () => {
|
|
1757
1757
|
const e = te(ls);
|
|
1758
1758
|
if (!e)
|
|
1759
1759
|
throw new Error(
|
|
@@ -1763,7 +1763,7 @@ const Wt = ({
|
|
|
1763
1763
|
}, ir = (e) => {
|
|
1764
1764
|
const { erpFeatures: t } = ao();
|
|
1765
1765
|
return !!t[e];
|
|
1766
|
-
},
|
|
1766
|
+
}, Qc = an(
|
|
1767
1767
|
({
|
|
1768
1768
|
erpFeatures: e,
|
|
1769
1769
|
locale: t,
|
|
@@ -1783,16 +1783,16 @@ const Wt = ({
|
|
|
1783
1783
|
[e, r, o, s]
|
|
1784
1784
|
);
|
|
1785
1785
|
return /* @__PURE__ */ i(ls.Provider, { value: l, children: /* @__PURE__ */ i(
|
|
1786
|
-
|
|
1786
|
+
fl,
|
|
1787
1787
|
{
|
|
1788
1788
|
locale: t,
|
|
1789
|
-
localizedStrings:
|
|
1789
|
+
localizedStrings: ml(zc, n),
|
|
1790
1790
|
children: a
|
|
1791
1791
|
}
|
|
1792
1792
|
) });
|
|
1793
1793
|
}
|
|
1794
1794
|
);
|
|
1795
|
-
|
|
1795
|
+
Qc.displayName = "ConfigContextProvider";
|
|
1796
1796
|
async function cs({
|
|
1797
1797
|
actionId: e,
|
|
1798
1798
|
rootContext: t = {},
|
|
@@ -1845,7 +1845,7 @@ async function cs({
|
|
|
1845
1845
|
treeExpandable: h
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
const
|
|
1848
|
+
const Xc = (e) => {
|
|
1849
1849
|
const [t, n] = x(), [r, o] = x(!0), [s, a] = x(), [l, c] = x(), u = te(Be), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = ao(), v = me(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
|
|
1850
1850
|
return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
|
|
1851
1851
|
n(void 0), o(!0);
|
|
@@ -1915,7 +1915,7 @@ const Qc = (e) => {
|
|
|
1915
1915
|
} else
|
|
1916
1916
|
n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
|
|
1917
1917
|
return /* @__PURE__ */ i(
|
|
1918
|
-
|
|
1918
|
+
rt,
|
|
1919
1919
|
{
|
|
1920
1920
|
className: t,
|
|
1921
1921
|
message: n,
|
|
@@ -1959,7 +1959,7 @@ const Qc = (e) => {
|
|
|
1959
1959
|
n((h = p.bounds) == null ? void 0 : h.height), o((m = p.bounds) == null ? void 0 : m.width);
|
|
1960
1960
|
},
|
|
1961
1961
|
children: ({ measureRef: p }) => d ? /* @__PURE__ */ i(
|
|
1962
|
-
|
|
1962
|
+
ed,
|
|
1963
1963
|
{
|
|
1964
1964
|
value: s,
|
|
1965
1965
|
total: a,
|
|
@@ -1972,7 +1972,7 @@ const Qc = (e) => {
|
|
|
1972
1972
|
suffix: f
|
|
1973
1973
|
}
|
|
1974
1974
|
) : /* @__PURE__ */ i(
|
|
1975
|
-
|
|
1975
|
+
Zc,
|
|
1976
1976
|
{
|
|
1977
1977
|
value: s,
|
|
1978
1978
|
total: a,
|
|
@@ -1991,7 +1991,7 @@ function fs(e, t) {
|
|
|
1991
1991
|
const r = document.createElement("canvas").getContext("2d");
|
|
1992
1992
|
return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Zc({
|
|
1995
1995
|
measureRef: e,
|
|
1996
1996
|
width: t,
|
|
1997
1997
|
height: n,
|
|
@@ -2034,7 +2034,7 @@ function Xc({
|
|
|
2034
2034
|
}
|
|
2035
2035
|
);
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function ed({
|
|
2038
2038
|
measureRef: e,
|
|
2039
2039
|
height: t,
|
|
2040
2040
|
width: n,
|
|
@@ -2098,7 +2098,7 @@ function Zc({
|
|
|
2098
2098
|
}
|
|
2099
2099
|
);
|
|
2100
2100
|
}
|
|
2101
|
-
const { getValueForOperator: Lo } = Di,
|
|
2101
|
+
const { getValueForOperator: Lo } = Di, td = (e) => {
|
|
2102
2102
|
const {
|
|
2103
2103
|
model: t,
|
|
2104
2104
|
domain: n,
|
|
@@ -2216,7 +2216,7 @@ const { getValueForOperator: Lo } = Di, ed = (e) => {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
h(!1);
|
|
2218
2218
|
}
|
|
2219
|
-
return p ? /* @__PURE__ */ i(Rn, {}) : R ? /* @__PURE__ */ i(
|
|
2219
|
+
return p ? /* @__PURE__ */ i(Rn, {}) : R ? /* @__PURE__ */ i(rt, { className: "mt-10", message: R, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
2220
2220
|
us,
|
|
2221
2221
|
{
|
|
2222
2222
|
value: m,
|
|
@@ -2228,7 +2228,7 @@ const { getValueForOperator: Lo } = Di, ed = (e) => {
|
|
|
2228
2228
|
showPercent: a
|
|
2229
2229
|
}
|
|
2230
2230
|
);
|
|
2231
|
-
}, { processGraphData:
|
|
2231
|
+
}, { processGraphData: nd } = Di, { getFieldsToRetrieve: rd } = Ka, od = (e) => {
|
|
2232
2232
|
const {
|
|
2233
2233
|
model: t,
|
|
2234
2234
|
ooui: n,
|
|
@@ -2243,10 +2243,10 @@ const { getValueForOperator: Lo } = Di, ed = (e) => {
|
|
|
2243
2243
|
$.getHandler().readObjects
|
|
2244
2244
|
), [C] = ze($.getHandler().search), b = N(async () => {
|
|
2245
2245
|
u(!0), d(void 0), y(n.type || "line");
|
|
2246
|
-
const O =
|
|
2246
|
+
const O = rd({ ooui: n });
|
|
2247
2247
|
let T, R;
|
|
2248
2248
|
try {
|
|
2249
|
-
({ values: T, fields: R } = await
|
|
2249
|
+
({ values: T, fields: R } = await sd({
|
|
2250
2250
|
model: t,
|
|
2251
2251
|
domain: r,
|
|
2252
2252
|
context: o,
|
|
@@ -2275,7 +2275,7 @@ const { getValueForOperator: Lo } = Di, ed = (e) => {
|
|
|
2275
2275
|
fetchData: b
|
|
2276
2276
|
};
|
|
2277
2277
|
v(T);
|
|
2278
|
-
const S =
|
|
2278
|
+
const S = nd({
|
|
2279
2279
|
ooui: n,
|
|
2280
2280
|
values: T,
|
|
2281
2281
|
fields: R,
|
|
@@ -2315,7 +2315,7 @@ const { getValueForOperator: Lo } = Di, ed = (e) => {
|
|
|
2315
2315
|
fetchData: b
|
|
2316
2316
|
};
|
|
2317
2317
|
};
|
|
2318
|
-
async function
|
|
2318
|
+
async function id({
|
|
2319
2319
|
model: e,
|
|
2320
2320
|
context: t,
|
|
2321
2321
|
fields: n,
|
|
@@ -2327,7 +2327,7 @@ async function od({
|
|
|
2327
2327
|
fields: n
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
|
-
async function
|
|
2330
|
+
async function sd({
|
|
2331
2331
|
fields: e,
|
|
2332
2332
|
model: t,
|
|
2333
2333
|
domain: n,
|
|
@@ -2337,7 +2337,7 @@ async function id({
|
|
|
2337
2337
|
manualIds: a,
|
|
2338
2338
|
methods: l
|
|
2339
2339
|
}) {
|
|
2340
|
-
const { getFields: c, readObjects: u, search: f } = l, d = await
|
|
2340
|
+
const { getFields: c, readObjects: u, search: f } = l, d = await id({
|
|
2341
2341
|
model: t,
|
|
2342
2342
|
context: r,
|
|
2343
2343
|
fields: e,
|
|
@@ -2367,7 +2367,6 @@ async function id({
|
|
|
2367
2367
|
fields: d
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
|
-
st.extend(xl);
|
|
2371
2370
|
st.extend(Il);
|
|
2372
2371
|
st.extend(Tl);
|
|
2373
2372
|
st.extend(Ol);
|
|
@@ -2375,13 +2374,14 @@ st.extend(Fl);
|
|
|
2375
2374
|
st.extend(Al);
|
|
2376
2375
|
st.extend(Rl);
|
|
2377
2376
|
st.extend(_l);
|
|
2377
|
+
st.extend(Vl);
|
|
2378
2378
|
const mr = (e) => (t) => {
|
|
2379
2379
|
const n = t.value.toLocaleString("es-ES", {
|
|
2380
2380
|
useGrouping: !0
|
|
2381
2381
|
});
|
|
2382
2382
|
return { name: e === "pie" ? t.x : t.type, value: n };
|
|
2383
2383
|
}, Pn = (e) => {
|
|
2384
|
-
if (typeof e == "string" &&
|
|
2384
|
+
if (typeof e == "string" && ad(e))
|
|
2385
2385
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
2386
2386
|
useGrouping: !0
|
|
2387
2387
|
});
|
|
@@ -2389,14 +2389,14 @@ const mr = (e) => (t) => {
|
|
|
2389
2389
|
return e.toLocaleString("es-ES", {
|
|
2390
2390
|
useGrouping: !0
|
|
2391
2391
|
});
|
|
2392
|
-
if (
|
|
2393
|
-
const t =
|
|
2392
|
+
if (ld(e)) {
|
|
2393
|
+
const t = cd(e);
|
|
2394
2394
|
return t === null ? e : st(e, Wn.input[t]).format(
|
|
2395
2395
|
Wn.output[t]
|
|
2396
2396
|
);
|
|
2397
2397
|
} else
|
|
2398
2398
|
return e;
|
|
2399
|
-
},
|
|
2399
|
+
}, ad = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ms = (e) => typeof e == "number" && !isNaN(e), jo = {
|
|
2400
2400
|
default: {
|
|
2401
2401
|
padding: "auto",
|
|
2402
2402
|
xAxis: {
|
|
@@ -2471,7 +2471,7 @@ const mr = (e) => (t) => {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
};
|
|
2474
|
-
function
|
|
2474
|
+
function ld(e) {
|
|
2475
2475
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
2476
2476
|
}
|
|
2477
2477
|
const Wn = {
|
|
@@ -2490,7 +2490,7 @@ const Wn = {
|
|
|
2490
2490
|
years: "YYYY"
|
|
2491
2491
|
}
|
|
2492
2492
|
};
|
|
2493
|
-
function
|
|
2493
|
+
function cd(e) {
|
|
2494
2494
|
for (const t in Wn.input)
|
|
2495
2495
|
if (st(
|
|
2496
2496
|
e,
|
|
@@ -2500,7 +2500,7 @@ function ld(e) {
|
|
|
2500
2500
|
return t;
|
|
2501
2501
|
return null;
|
|
2502
2502
|
}
|
|
2503
|
-
const
|
|
2503
|
+
const dd = {
|
|
2504
2504
|
inner: {
|
|
2505
2505
|
label: {
|
|
2506
2506
|
type: "inner",
|
|
@@ -2517,7 +2517,7 @@ const cd = {
|
|
|
2517
2517
|
labelHeight: 28
|
|
2518
2518
|
}
|
|
2519
2519
|
}
|
|
2520
|
-
},
|
|
2520
|
+
}, ud = (e) => {
|
|
2521
2521
|
const t = e.reduce((a, l) => a + l.value, 0), r = e.map((a) => a.value / t * 100).map((a) => Math.round(a)), s = 100 - r.reduce((a, l) => a + l, 0);
|
|
2522
2522
|
for (let a = 0; a < Math.abs(s); a++)
|
|
2523
2523
|
s > 0 ? r[a % r.length]++ : r[a % r.length]--;
|
|
@@ -2525,10 +2525,10 @@ const cd = {
|
|
|
2525
2525
|
x: a.x,
|
|
2526
2526
|
percent: r[l]
|
|
2527
2527
|
}));
|
|
2528
|
-
}, { Text: Bo } = _t, ps = 400,
|
|
2529
|
-
line:
|
|
2530
|
-
bar:
|
|
2531
|
-
pie:
|
|
2528
|
+
}, { Text: Bo } = _t, ps = 400, fd = an(Sl), md = an(Cl), pd = an(xl), hd = {
|
|
2529
|
+
line: fd,
|
|
2530
|
+
bar: md,
|
|
2531
|
+
pie: pd
|
|
2532
2532
|
}, hs = ({
|
|
2533
2533
|
type: e,
|
|
2534
2534
|
data: t,
|
|
@@ -2546,7 +2546,7 @@ const cd = {
|
|
|
2546
2546
|
return t.reduce((g, y) => g + y.value, 0);
|
|
2547
2547
|
}, [t, e]), u = me(() => {
|
|
2548
2548
|
if (e === "pie")
|
|
2549
|
-
return
|
|
2549
|
+
return ud(t);
|
|
2550
2550
|
}, [t, e]), f = N(
|
|
2551
2551
|
(v) => {
|
|
2552
2552
|
if (!u)
|
|
@@ -2563,7 +2563,7 @@ const cd = {
|
|
|
2563
2563
|
}, [f, u]), p = N(
|
|
2564
2564
|
({ percent: v, x: g }) => v < 0.07 ? "" : f(g),
|
|
2565
2565
|
[f]
|
|
2566
|
-
), h =
|
|
2566
|
+
), h = hd[e], m = me(() => gd({
|
|
2567
2567
|
type: e,
|
|
2568
2568
|
data: t,
|
|
2569
2569
|
isGroup: n,
|
|
@@ -2607,7 +2607,7 @@ const cd = {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
) : /* @__PURE__ */ i(ae, { children: `Unknown graph type: ${e}` });
|
|
2609
2609
|
};
|
|
2610
|
-
function
|
|
2610
|
+
function gd(e) {
|
|
2611
2611
|
const {
|
|
2612
2612
|
type: t,
|
|
2613
2613
|
data: n,
|
|
@@ -2619,7 +2619,7 @@ function hd(e) {
|
|
|
2619
2619
|
fixedHeight: c = !1
|
|
2620
2620
|
} = e;
|
|
2621
2621
|
let u = { ...jo[t] };
|
|
2622
|
-
if (u || (u = { ...jo.default }), u.data = n, u.height = c ? ps : void 0, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...
|
|
2622
|
+
if (u || (u = { ...jo.default }), u.data = n, u.height = c ? ps : void 0, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...dd.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
|
|
2623
2623
|
const f = l.valueOpts.min, d = l.valueOpts.max;
|
|
2624
2624
|
u.yAxis = {
|
|
2625
2625
|
min: f,
|
|
@@ -2628,7 +2628,7 @@ function hd(e) {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
return u;
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2631
|
+
const yd = ({
|
|
2632
2632
|
ooui: e,
|
|
2633
2633
|
model: t,
|
|
2634
2634
|
domain: n,
|
|
@@ -2637,7 +2637,7 @@ const gd = ({
|
|
|
2637
2637
|
manualIds: s,
|
|
2638
2638
|
fixedHeight: a
|
|
2639
2639
|
}) => {
|
|
2640
|
-
const { t: l } = he(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } =
|
|
2640
|
+
const { t: l } = he(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = od({
|
|
2641
2641
|
model: t,
|
|
2642
2642
|
ooui: e,
|
|
2643
2643
|
limit: o,
|
|
@@ -2651,7 +2651,7 @@ const gd = ({
|
|
|
2651
2651
|
}, [e, t, o, r, n]), u || !f)
|
|
2652
2652
|
return /* @__PURE__ */ i(Rn, {});
|
|
2653
2653
|
const { data: m, isGroup: v, isStack: g, yAxisOpts: y } = f;
|
|
2654
|
-
return c ? /* @__PURE__ */ i(
|
|
2654
|
+
return c ? /* @__PURE__ */ i(rt, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
2655
2655
|
hs,
|
|
2656
2656
|
{
|
|
2657
2657
|
type: d,
|
|
@@ -2663,9 +2663,9 @@ const gd = ({
|
|
|
2663
2663
|
fixedHeight: a
|
|
2664
2664
|
}
|
|
2665
2665
|
);
|
|
2666
|
-
}, Rt = 80, at =
|
|
2666
|
+
}, Rt = 80, at = ka(
|
|
2667
2667
|
null
|
|
2668
|
-
),
|
|
2668
|
+
), vd = (e) => {
|
|
2669
2669
|
const {
|
|
2670
2670
|
children: t,
|
|
2671
2671
|
currentView: n,
|
|
@@ -2783,7 +2783,7 @@ const gd = ({
|
|
|
2783
2783
|
children: t
|
|
2784
2784
|
}
|
|
2785
2785
|
);
|
|
2786
|
-
},
|
|
2786
|
+
}, wd = () => !!te(at), lo = () => {
|
|
2787
2787
|
const e = te(at);
|
|
2788
2788
|
return e || {
|
|
2789
2789
|
title: "",
|
|
@@ -2872,7 +2872,7 @@ const gd = ({
|
|
|
2872
2872
|
setIsInfiniteTree: () => {
|
|
2873
2873
|
}
|
|
2874
2874
|
};
|
|
2875
|
-
},
|
|
2875
|
+
}, bd = (e, t) => {
|
|
2876
2876
|
const { view_id: n, model: r, context: o, domain: s, limit: a, manualIds: l, fixedHeight: c } = e, [u, f] = x(!1), [d, p] = x(), h = te(
|
|
2877
2877
|
at
|
|
2878
2878
|
), { setGraphIsLoading: m = void 0 } = h || {}, [v] = ze($.getHandler().getView);
|
|
@@ -2907,7 +2907,7 @@ const gd = ({
|
|
|
2907
2907
|
operator: y.operator
|
|
2908
2908
|
} : {};
|
|
2909
2909
|
return /* @__PURE__ */ i(
|
|
2910
|
-
|
|
2910
|
+
td,
|
|
2911
2911
|
{
|
|
2912
2912
|
showPercent: y.showPercent,
|
|
2913
2913
|
totalDomain: y.totalDomain,
|
|
@@ -2926,7 +2926,7 @@ const gd = ({
|
|
|
2926
2926
|
case "bar":
|
|
2927
2927
|
case "pie":
|
|
2928
2928
|
return /* @__PURE__ */ i(
|
|
2929
|
-
|
|
2929
|
+
yd,
|
|
2930
2930
|
{
|
|
2931
2931
|
model: r,
|
|
2932
2932
|
context: o,
|
|
@@ -2940,9 +2940,9 @@ const gd = ({
|
|
|
2940
2940
|
default:
|
|
2941
2941
|
return /* @__PURE__ */ i(ae, { children: `Graph ${d.type} not implemented` });
|
|
2942
2942
|
}
|
|
2943
|
-
}, un = yt(
|
|
2943
|
+
}, un = yt(bd);
|
|
2944
2944
|
var fn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(fn || {});
|
|
2945
|
-
const
|
|
2945
|
+
const by = Object.values(fn), Sd = (e) => {
|
|
2946
2946
|
const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = x(!1), [c, u] = x(), [f, d] = x(), [p] = ze(
|
|
2947
2947
|
$.getHandler().readForView
|
|
2948
2948
|
), h = N(async () => {
|
|
@@ -2966,10 +2966,10 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
2966
2966
|
fetchData: h,
|
|
2967
2967
|
graphData: f
|
|
2968
2968
|
};
|
|
2969
|
-
},
|
|
2969
|
+
}, Cd = (e, t) => {
|
|
2970
2970
|
const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: l } = e, c = te(
|
|
2971
2971
|
at
|
|
2972
|
-
), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } =
|
|
2972
|
+
), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = Sd({
|
|
2973
2973
|
view_id: n,
|
|
2974
2974
|
model: r,
|
|
2975
2975
|
domain: s,
|
|
@@ -2987,7 +2987,7 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
2987
2987
|
}, [n]), d || !p)
|
|
2988
2988
|
return /* @__PURE__ */ i(Rn, {});
|
|
2989
2989
|
if (f)
|
|
2990
|
-
return /* @__PURE__ */ i(
|
|
2990
|
+
return /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 });
|
|
2991
2991
|
switch (p.type) {
|
|
2992
2992
|
case "indicatorField":
|
|
2993
2993
|
case "indicator": {
|
|
@@ -3025,7 +3025,7 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3025
3025
|
default:
|
|
3026
3026
|
return /* @__PURE__ */ i(ae, { children: `Graph ${p.type} not implemented` });
|
|
3027
3027
|
}
|
|
3028
|
-
}, gs = yt(
|
|
3028
|
+
}, gs = yt(Cd), bt = mt.createContext(null), xd = (e) => {
|
|
3029
3029
|
const {
|
|
3030
3030
|
children: t,
|
|
3031
3031
|
openAction: n,
|
|
@@ -3057,8 +3057,8 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3057
3057
|
children: t
|
|
3058
3058
|
}
|
|
3059
3059
|
);
|
|
3060
|
-
}, { useToken:
|
|
3061
|
-
const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } =
|
|
3060
|
+
}, { useToken: Id } = Ge, { Text: Td } = _t, ys = (e) => {
|
|
3061
|
+
const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Id(), l = Object.keys(s).length > 0;
|
|
3062
3062
|
return /* @__PURE__ */ E(
|
|
3063
3063
|
"div",
|
|
3064
3064
|
{
|
|
@@ -3094,11 +3094,11 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3094
3094
|
cursor: l ? "grab" : void 0,
|
|
3095
3095
|
overflow: "hidden"
|
|
3096
3096
|
},
|
|
3097
|
-
children: /* @__PURE__ */ i(
|
|
3097
|
+
children: /* @__PURE__ */ i(Td, { ellipsis: !0, children: t })
|
|
3098
3098
|
}
|
|
3099
3099
|
),
|
|
3100
3100
|
r && /* @__PURE__ */ i(we, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(ke, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
|
|
3101
|
-
|
|
3101
|
+
Ja,
|
|
3102
3102
|
{
|
|
3103
3103
|
style: { cursor: "pointer" },
|
|
3104
3104
|
onClick: () => {
|
|
@@ -3114,11 +3114,11 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
}, { useToken:
|
|
3117
|
+
}, { useToken: Od } = Ge, Fd = (e) => {
|
|
3118
3118
|
const { ooui: t } = e, n = t.actionId !== void 0;
|
|
3119
|
-
return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(
|
|
3120
|
-
},
|
|
3121
|
-
const { token: t } =
|
|
3119
|
+
return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(Rd, { ooui: t }) }) : /* @__PURE__ */ i(Ad, { ooui: t }) });
|
|
3120
|
+
}, Ad = (e) => {
|
|
3121
|
+
const { token: t } = Od(), { ooui: n, value: r } = e, o = /* @__PURE__ */ E(ae, { children: [
|
|
3122
3122
|
/* @__PURE__ */ E("span", { children: [
|
|
3123
3123
|
n.label,
|
|
3124
3124
|
" "
|
|
@@ -3134,7 +3134,7 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3134
3134
|
let a = r;
|
|
3135
3135
|
n.selectionValues.size ? a = n.selectionValues.get(r) : Array.isArray(r) && (a = r[1]);
|
|
3136
3136
|
const l = /* @__PURE__ */ i(
|
|
3137
|
-
|
|
3137
|
+
Ma,
|
|
3138
3138
|
{
|
|
3139
3139
|
title: o,
|
|
3140
3140
|
prefix: s && /* @__PURE__ */ i(s, {}),
|
|
@@ -3143,8 +3143,8 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3143
3143
|
}
|
|
3144
3144
|
);
|
|
3145
3145
|
return n.card ? /* @__PURE__ */ i(Hr, { children: l }) : l;
|
|
3146
|
-
},
|
|
3147
|
-
const { ooui: t } = e, { actionId: n } = t, { actionData: r, treeShortcut: o, loading: s, error: a, fetchData: l } =
|
|
3146
|
+
}, Rd = (e) => {
|
|
3147
|
+
const { ooui: t } = e, { actionId: n } = t, { actionData: r, treeShortcut: o, loading: s, error: a, fetchData: l } = Xc(n), c = ir(
|
|
3148
3148
|
fn.FEATURE_READFORVIEW
|
|
3149
3149
|
), u = te(
|
|
3150
3150
|
bt
|
|
@@ -3179,13 +3179,13 @@ const wy = Object.values(fn), bd = (e) => {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
);
|
|
3181
3181
|
};
|
|
3182
|
-
function
|
|
3182
|
+
function _d(e) {
|
|
3183
3183
|
return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3185
|
+
const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs, { ...e }) }), vs = (e) => {
|
|
3186
3186
|
const { t } = he(), { ooui: n, value: r } = e;
|
|
3187
3187
|
let o = r, s = An, a = r;
|
|
3188
|
-
if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ?
|
|
3188
|
+
if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? _d(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Bc), !o)
|
|
3189
3189
|
return null;
|
|
3190
3190
|
const l = n.colors === "auto" ? s(a) : n.colors[a] || s(a);
|
|
3191
3191
|
return /* @__PURE__ */ i(co, { color: l, children: o });
|
|
@@ -3197,10 +3197,10 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3197
3197
|
borderStyle: "solid",
|
|
3198
3198
|
borderWidth: "1px"
|
|
3199
3199
|
}, t = `${t}20`), /* @__PURE__ */ i(Ur, { ...e, style: n, color: t, children: e.children });
|
|
3200
|
-
}, Vd = (e) => {
|
|
3201
|
-
const { ooui: t } = e;
|
|
3202
|
-
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Ed, { ooui: t }) });
|
|
3203
3200
|
}, Ed = (e) => {
|
|
3201
|
+
const { ooui: t } = e;
|
|
3202
|
+
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Dd, { ooui: t }) });
|
|
3203
|
+
}, Dd = (e) => {
|
|
3204
3204
|
const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [a, l] = x([]), [c, u] = x(), [f, d] = x(!1), { relation: p, context: h, readOnly: m, field: v } = n, g = te(Be), { getContext: y } = g || {};
|
|
3205
3205
|
St(() => {
|
|
3206
3206
|
I();
|
|
@@ -3267,7 +3267,7 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3267
3267
|
}
|
|
3268
3268
|
);
|
|
3269
3269
|
};
|
|
3270
|
-
return c ? /* @__PURE__ */ i(
|
|
3270
|
+
return c ? /* @__PURE__ */ i(rt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
|
|
3271
3271
|
Ut,
|
|
3272
3272
|
{
|
|
3273
3273
|
mode: "multiple",
|
|
@@ -3281,14 +3281,14 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3281
3281
|
filterOption: (O, T) => T.label.toLowerCase().includes(O.toString())
|
|
3282
3282
|
}
|
|
3283
3283
|
) }) });
|
|
3284
|
-
},
|
|
3284
|
+
}, Pd = (e) => {
|
|
3285
3285
|
switch (e) {
|
|
3286
3286
|
case "form":
|
|
3287
3287
|
return hn;
|
|
3288
3288
|
case "tree":
|
|
3289
3289
|
return Dn;
|
|
3290
3290
|
case "notebook":
|
|
3291
|
-
return
|
|
3291
|
+
return zp;
|
|
3292
3292
|
case "group":
|
|
3293
3293
|
return pa;
|
|
3294
3294
|
case "label":
|
|
@@ -3296,90 +3296,90 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3296
3296
|
case "char":
|
|
3297
3297
|
return es;
|
|
3298
3298
|
case "text":
|
|
3299
|
-
return
|
|
3299
|
+
return Qp;
|
|
3300
3300
|
case "button":
|
|
3301
3301
|
return oo;
|
|
3302
3302
|
case "buttonGroup":
|
|
3303
|
-
return
|
|
3303
|
+
return nc;
|
|
3304
3304
|
case "selection":
|
|
3305
3305
|
return ts;
|
|
3306
3306
|
case "many2one":
|
|
3307
|
-
return
|
|
3307
|
+
return wp;
|
|
3308
3308
|
case "boolean":
|
|
3309
|
-
return
|
|
3309
|
+
return vc;
|
|
3310
3310
|
case "integer":
|
|
3311
3311
|
return Gn;
|
|
3312
3312
|
case "float":
|
|
3313
3313
|
return Rs;
|
|
3314
3314
|
case "progressbar":
|
|
3315
|
-
return
|
|
3315
|
+
return tu;
|
|
3316
3316
|
case "date":
|
|
3317
|
-
return lh;
|
|
3318
|
-
case "datetime":
|
|
3319
3317
|
return ch;
|
|
3320
|
-
case "
|
|
3318
|
+
case "datetime":
|
|
3321
3319
|
return dh;
|
|
3320
|
+
case "time":
|
|
3321
|
+
return uh;
|
|
3322
3322
|
case "one2many":
|
|
3323
3323
|
case "one2many_list":
|
|
3324
3324
|
case "many2many":
|
|
3325
|
-
return
|
|
3325
|
+
return Up;
|
|
3326
3326
|
case "separator":
|
|
3327
|
-
return
|
|
3327
|
+
return Zp;
|
|
3328
3328
|
case "reference":
|
|
3329
|
-
return
|
|
3329
|
+
return mh;
|
|
3330
3330
|
case "binary":
|
|
3331
|
-
return
|
|
3331
|
+
return gh;
|
|
3332
3332
|
case "image":
|
|
3333
|
-
return
|
|
3333
|
+
return Cc;
|
|
3334
3334
|
case "url":
|
|
3335
|
-
return Ch;
|
|
3336
|
-
case "email":
|
|
3337
3335
|
return xh;
|
|
3336
|
+
case "email":
|
|
3337
|
+
return Ih;
|
|
3338
3338
|
case "float_time":
|
|
3339
|
-
return
|
|
3339
|
+
return Kp;
|
|
3340
3340
|
case "fiber_grid":
|
|
3341
|
-
return
|
|
3341
|
+
return Ic;
|
|
3342
3342
|
case "timeline":
|
|
3343
|
-
return
|
|
3343
|
+
return Wc;
|
|
3344
3344
|
case "indicator":
|
|
3345
|
-
return
|
|
3345
|
+
return Fd;
|
|
3346
3346
|
case "tags":
|
|
3347
|
-
return
|
|
3347
|
+
return Ed;
|
|
3348
3348
|
case "tag":
|
|
3349
|
-
return
|
|
3349
|
+
return Vd;
|
|
3350
3350
|
case "multicheckbox":
|
|
3351
|
-
return
|
|
3351
|
+
return Yh;
|
|
3352
3352
|
case "markdown":
|
|
3353
|
-
return
|
|
3353
|
+
return Jh;
|
|
3354
3354
|
case "radio":
|
|
3355
|
-
return
|
|
3355
|
+
return Xh;
|
|
3356
3356
|
case "switch":
|
|
3357
|
-
return
|
|
3357
|
+
return eg;
|
|
3358
3358
|
case "steps":
|
|
3359
|
-
return
|
|
3359
|
+
return ng;
|
|
3360
3360
|
case "arrow_steps":
|
|
3361
|
-
return
|
|
3361
|
+
return ig;
|
|
3362
3362
|
case "codeeditor":
|
|
3363
3363
|
case "json":
|
|
3364
|
-
return
|
|
3364
|
+
return sg;
|
|
3365
3365
|
case "comments_timeline":
|
|
3366
|
-
return mg;
|
|
3367
|
-
case "html_preview":
|
|
3368
3366
|
return pg;
|
|
3369
|
-
case "
|
|
3367
|
+
case "html_preview":
|
|
3370
3368
|
return hg;
|
|
3369
|
+
case "alert":
|
|
3370
|
+
return gg;
|
|
3371
3371
|
default:
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
|
-
},
|
|
3375
|
-
const { ooui: t } = e, { type: n } = t, r =
|
|
3376
|
-
return r ?
|
|
3377
|
-
},
|
|
3374
|
+
}, kd = (e) => {
|
|
3375
|
+
const { ooui: t } = e, { type: n } = t, r = Pd(n);
|
|
3376
|
+
return r ? $a(r, e) : null;
|
|
3377
|
+
}, $d = ({
|
|
3378
3378
|
item: e,
|
|
3379
3379
|
responsiveBehaviour: t
|
|
3380
3380
|
}) => ({
|
|
3381
3381
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
3382
|
-
}),
|
|
3382
|
+
}), Nd = ({
|
|
3383
3383
|
row: e,
|
|
3384
3384
|
mustFillWithEmpties: t,
|
|
3385
3385
|
numberOfColumns: n
|
|
@@ -3398,36 +3398,36 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3398
3398
|
r.push(new ln({ string: "" }));
|
|
3399
3399
|
}
|
|
3400
3400
|
}), r;
|
|
3401
|
-
},
|
|
3401
|
+
}, Md = ({
|
|
3402
3402
|
row: e,
|
|
3403
3403
|
numberOfColumns: t
|
|
3404
|
-
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)),
|
|
3405
|
-
const n = e.map((r) => r instanceof ln && r.fieldForLabel || r instanceof
|
|
3404
|
+
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Ld = (e, t) => {
|
|
3405
|
+
const n = e.map((r) => r instanceof ln && r.fieldForLabel || r instanceof qa ? "auto" : "1fr");
|
|
3406
3406
|
if (n.length < t) {
|
|
3407
3407
|
const r = t - n.length;
|
|
3408
3408
|
for (let o = 0; o < r; o++)
|
|
3409
3409
|
n.push("1fr");
|
|
3410
3410
|
}
|
|
3411
3411
|
return n.join(" ");
|
|
3412
|
-
},
|
|
3412
|
+
}, jd = (e, t) => {
|
|
3413
3413
|
const n = t ? "1fr" : "auto", r = "auto";
|
|
3414
3414
|
let o = "";
|
|
3415
3415
|
for (let s = 0; s < e; s++)
|
|
3416
3416
|
o += s % 2 ? n : r, s + 1 < e && (o += " ");
|
|
3417
3417
|
return o;
|
|
3418
|
-
},
|
|
3418
|
+
}, Bd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Fr = (e) => {
|
|
3419
3419
|
const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
|
|
3420
3420
|
let { columns: o } = t;
|
|
3421
|
-
const s =
|
|
3421
|
+
const s = Bd(r);
|
|
3422
3422
|
s < o && (o = s);
|
|
3423
3423
|
let a = !1, l = [];
|
|
3424
3424
|
const c = r.map((d, p) => {
|
|
3425
|
-
const h = d.filter((g) => !g.invisible), m =
|
|
3425
|
+
const h = d.filter((g) => !g.invisible), m = Md({
|
|
3426
3426
|
row: h,
|
|
3427
3427
|
numberOfColumns: o
|
|
3428
3428
|
});
|
|
3429
3429
|
let v = m;
|
|
3430
|
-
return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (v =
|
|
3430
|
+
return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (v = Nd({
|
|
3431
3431
|
row: m,
|
|
3432
3432
|
numberOfColumns: o,
|
|
3433
3433
|
mustFillWithEmpties: n
|
|
@@ -3435,17 +3435,17 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3435
3435
|
"div",
|
|
3436
3436
|
{
|
|
3437
3437
|
style: {
|
|
3438
|
-
|
|
3438
|
+
...$d({ item: g, responsiveBehaviour: n }),
|
|
3439
3439
|
minWidth: 0
|
|
3440
3440
|
},
|
|
3441
|
-
children:
|
|
3441
|
+
children: kd({
|
|
3442
3442
|
ooui: g,
|
|
3443
3443
|
responsiveBehaviour: n
|
|
3444
3444
|
})
|
|
3445
3445
|
},
|
|
3446
3446
|
g.key
|
|
3447
3447
|
)));
|
|
3448
|
-
}), u = r.length === 1 ?
|
|
3448
|
+
}), u = r.length === 1 ? Ld(l, o) : jd(o, a);
|
|
3449
3449
|
return /* @__PURE__ */ i("div", { style: {
|
|
3450
3450
|
display: "grid",
|
|
3451
3451
|
gridTemplateColumns: n ? "auto" : u,
|
|
@@ -3453,12 +3453,12 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3453
3453
|
minHeight: 0,
|
|
3454
3454
|
minWidth: 0
|
|
3455
3455
|
}, children: c });
|
|
3456
|
-
}, { confirm:
|
|
3456
|
+
}, { confirm: Hd } = ct, mn = ({
|
|
3457
3457
|
onOk: e,
|
|
3458
3458
|
onCancel: t,
|
|
3459
3459
|
t: n
|
|
3460
3460
|
}) => {
|
|
3461
|
-
|
|
3461
|
+
Hd({
|
|
3462
3462
|
title: n("unsavedChanges"),
|
|
3463
3463
|
icon: /* @__PURE__ */ i(Vt, {}),
|
|
3464
3464
|
centered: !0,
|
|
@@ -3468,22 +3468,22 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3468
3468
|
onCancel: t,
|
|
3469
3469
|
cancelText: n("cancel")
|
|
3470
3470
|
});
|
|
3471
|
-
}, { error:
|
|
3472
|
-
|
|
3471
|
+
}, { error: Ud } = ct, Ho = (e) => {
|
|
3472
|
+
Ud({
|
|
3473
3473
|
title: e("formHasErrors"),
|
|
3474
3474
|
icon: /* @__PURE__ */ i(Vt, {}),
|
|
3475
3475
|
centered: !0,
|
|
3476
3476
|
content: e("fillRequiredFields")
|
|
3477
3477
|
});
|
|
3478
|
-
}, { warning:
|
|
3479
|
-
|
|
3478
|
+
}, { warning: Wd } = ct, Gd = (e, t, n) => {
|
|
3479
|
+
Wd({
|
|
3480
3480
|
title: e,
|
|
3481
3481
|
icon: /* @__PURE__ */ i(Li, {}),
|
|
3482
3482
|
centered: !0,
|
|
3483
3483
|
content: t,
|
|
3484
3484
|
onOk: n
|
|
3485
3485
|
});
|
|
3486
|
-
}, ws = mt.createContext(null),
|
|
3486
|
+
}, ws = mt.createContext(null), Kd = (e) => {
|
|
3487
3487
|
const { children: t, setTitle: n } = e;
|
|
3488
3488
|
return /* @__PURE__ */ i(
|
|
3489
3489
|
ws.Provider,
|
|
@@ -3498,7 +3498,7 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3498
3498
|
var t;
|
|
3499
3499
|
for (let n = 0; n < e.length; n++)
|
|
3500
3500
|
await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
|
|
3501
|
-
},
|
|
3501
|
+
}, qd = (e, t) => {
|
|
3502
3502
|
const { children: n, globalValues: r = {} } = e, o = J(), s = J(), [a, l] = x(!1), c = te(
|
|
3503
3503
|
bt
|
|
3504
3504
|
), { openAction: u } = c || {}, f = J([]), { t: d } = he();
|
|
@@ -3575,7 +3575,7 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3575
3575
|
return await I({ actionData: T, fields: R, values: S, context: V });
|
|
3576
3576
|
if (F === "ir.actions.act_url")
|
|
3577
3577
|
window.open(
|
|
3578
|
-
|
|
3578
|
+
Hc(T.url, { ...S, context: V }),
|
|
3579
3579
|
"_blank"
|
|
3580
3580
|
);
|
|
3581
3581
|
else
|
|
@@ -3625,7 +3625,7 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3625
3625
|
context: P
|
|
3626
3626
|
}), {};
|
|
3627
3627
|
} else {
|
|
3628
|
-
const { initialView: L, views: W } = await
|
|
3628
|
+
const { initialView: L, views: W } = await Yd({
|
|
3629
3629
|
model: A.res_model,
|
|
3630
3630
|
context: P,
|
|
3631
3631
|
view_mode: A.view_mode,
|
|
@@ -3727,7 +3727,7 @@ const _d = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3727
3727
|
}
|
|
3728
3728
|
) });
|
|
3729
3729
|
};
|
|
3730
|
-
async function
|
|
3730
|
+
async function Yd({
|
|
3731
3731
|
views: e,
|
|
3732
3732
|
view_mode: t,
|
|
3733
3733
|
model: n,
|
|
@@ -3776,13 +3776,13 @@ async function qd({
|
|
|
3776
3776
|
}
|
|
3777
3777
|
return { views: s, initialView: a };
|
|
3778
3778
|
}
|
|
3779
|
-
const
|
|
3779
|
+
const zd = yt(qd), Jd = (e, t) => {
|
|
3780
3780
|
const n = {};
|
|
3781
3781
|
return Object.keys(e).forEach((r) => {
|
|
3782
3782
|
n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
|
|
3783
3783
|
}), n;
|
|
3784
|
-
},
|
|
3785
|
-
function
|
|
3784
|
+
}, Qd = 800;
|
|
3785
|
+
function Xd(e, t) {
|
|
3786
3786
|
const {
|
|
3787
3787
|
model: n,
|
|
3788
3788
|
id: r,
|
|
@@ -3807,7 +3807,7 @@ function Qd(e, t) {
|
|
|
3807
3807
|
forcedValues: O = {},
|
|
3808
3808
|
parentWidth: T,
|
|
3809
3809
|
onMustRefreshParent: R
|
|
3810
|
-
} = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [L] = pt.useForm(), [W, M] = x(), [D, Q] = x(), ne = te(ws), [X, H] = x(), [oe, Z] = x(!1), B = J(), G = J({}), j = J({}), ee = J(!1), le = J(!1), K = J(!1), ve = (T !== void 0 ? T : X) <
|
|
3810
|
+
} = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [L] = pt.useForm(), [W, M] = x(), [D, Q] = x(), ne = te(ws), [X, H] = x(), [oe, Z] = x(!1), B = J(), G = J({}), j = J({}), ee = J(!1), le = J(!1), K = J(!1), ve = (T !== void 0 ? T : X) < Qd, $e = te(Be), { activeId: Le, getPlainValues: Pe } = $e || {}, Fe = J(!1), qe = te(
|
|
3811
3811
|
at
|
|
3812
3812
|
), {
|
|
3813
3813
|
setFormIsSaving: Ie = void 0,
|
|
@@ -3948,7 +3948,7 @@ function Qd(e, t) {
|
|
|
3948
3948
|
fe == null || fe(!0), P(void 0), U != null && U.fields ? (se = U.fields, ce = U.arch) : (se = D, ce = W), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: xe } = await Dt({
|
|
3949
3949
|
fields: se,
|
|
3950
3950
|
arch: ce
|
|
3951
|
-
}), w && (q = { ...
|
|
3951
|
+
}), w && (q = { ...Lc(w), ...q }), G.current = Jt(q, se), Qe({
|
|
3952
3952
|
values: q,
|
|
3953
3953
|
fields: se,
|
|
3954
3954
|
reset: !0,
|
|
@@ -3983,15 +3983,15 @@ function Qd(e, t) {
|
|
|
3983
3983
|
reset: se,
|
|
3984
3984
|
isDefaultGet: ce = !1
|
|
3985
3985
|
}) => {
|
|
3986
|
-
const Xe = { ...se ? {} : L.getFieldsValue(!0), ...U }, cr = Jt(Xe, q),
|
|
3987
|
-
const
|
|
3986
|
+
const Xe = { ...se ? {} : L.getFieldsValue(!0), ...U }, cr = Jt(Xe, q), Va = Object.keys(q).map((dr) => {
|
|
3987
|
+
const Ea = cr[dr] !== void 0 ? cr[dr] : void 0;
|
|
3988
3988
|
return {
|
|
3989
3989
|
name: dr,
|
|
3990
3990
|
touched: !1,
|
|
3991
|
-
value:
|
|
3991
|
+
value: Ea
|
|
3992
3992
|
};
|
|
3993
3993
|
});
|
|
3994
|
-
ce || (j.current = cr), L.setFields(
|
|
3994
|
+
ce || (j.current = cr), L.setFields(Va);
|
|
3995
3995
|
}, Dt = async ({
|
|
3996
3996
|
fields: U,
|
|
3997
3997
|
arch: q
|
|
@@ -4006,7 +4006,7 @@ function Qd(e, t) {
|
|
|
4006
4006
|
if (se = (await $.getHandler().readObjects({
|
|
4007
4007
|
model: n,
|
|
4008
4008
|
ids: [ge()],
|
|
4009
|
-
fields:
|
|
4009
|
+
fields: Jd(U, xe == null ? void 0 : xe.contextForFields),
|
|
4010
4010
|
context: y
|
|
4011
4011
|
}))[0], g)
|
|
4012
4012
|
return { values: se, defaultGetCalled: ce };
|
|
@@ -4092,7 +4092,7 @@ function Qd(e, t) {
|
|
|
4092
4092
|
const xe = new ki(U);
|
|
4093
4093
|
return xe.parse(q, {
|
|
4094
4094
|
readOnly: f || ce,
|
|
4095
|
-
values:
|
|
4095
|
+
values: Ac(
|
|
4096
4096
|
{
|
|
4097
4097
|
...se,
|
|
4098
4098
|
...Ee()
|
|
@@ -4124,7 +4124,7 @@ function Qd(e, t) {
|
|
|
4124
4124
|
target: Ye(D),
|
|
4125
4125
|
fields: D
|
|
4126
4126
|
}), se = Object.keys(q);
|
|
4127
|
-
if (se.length !== 0 && !(
|
|
4127
|
+
if (se.length !== 0 && !(Nc({
|
|
4128
4128
|
changedFields: se,
|
|
4129
4129
|
formOoui: _,
|
|
4130
4130
|
types: [
|
|
@@ -4140,18 +4140,18 @@ function Qd(e, t) {
|
|
|
4140
4140
|
]
|
|
4141
4141
|
}) && U !== !0)) {
|
|
4142
4142
|
const ce = Jt(L.getFieldsValue(!0), D);
|
|
4143
|
-
j.current = ce, c == null || c(ce), de == null || de(!0),
|
|
4143
|
+
j.current = ce, c == null || c(ce), de == null || de(!0), Ca(se);
|
|
4144
4144
|
}
|
|
4145
|
-
}, $t =
|
|
4145
|
+
}, $t = bl(bn, 100), Ca = async (U) => {
|
|
4146
4146
|
try {
|
|
4147
4147
|
for (let q = 0; q < U.length; q += 1) {
|
|
4148
4148
|
const se = U[q];
|
|
4149
|
-
await
|
|
4149
|
+
await xa(se);
|
|
4150
4150
|
}
|
|
4151
4151
|
} catch (q) {
|
|
4152
4152
|
it(q);
|
|
4153
4153
|
}
|
|
4154
|
-
},
|
|
4154
|
+
}, xa = async (U) => {
|
|
4155
4155
|
const q = _ == null ? void 0 : _.onChangeFields[U];
|
|
4156
4156
|
if (!q) {
|
|
4157
4157
|
It({
|
|
@@ -4161,7 +4161,7 @@ function Qd(e, t) {
|
|
|
4161
4161
|
});
|
|
4162
4162
|
return;
|
|
4163
4163
|
}
|
|
4164
|
-
const se =
|
|
4164
|
+
const se = jc({
|
|
4165
4165
|
values: {
|
|
4166
4166
|
...Ye(D),
|
|
4167
4167
|
context: {
|
|
@@ -4182,7 +4182,7 @@ function Qd(e, t) {
|
|
|
4182
4182
|
const xe = {
|
|
4183
4183
|
...Ye(D),
|
|
4184
4184
|
...ce.value
|
|
4185
|
-
}, Xe =
|
|
4185
|
+
}, Xe = Rc({
|
|
4186
4186
|
values: xe,
|
|
4187
4187
|
fields: D
|
|
4188
4188
|
});
|
|
@@ -4198,12 +4198,12 @@ function Qd(e, t) {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
if (ce.warning && ce.warning.title && ce.warning.message && !ee.current) {
|
|
4200
4200
|
const { title: xe, message: Xe } = ce.warning;
|
|
4201
|
-
ee.current = !0,
|
|
4201
|
+
ee.current = !0, Gd(xe, Xe, () => {
|
|
4202
4202
|
ee.current = !1;
|
|
4203
4203
|
});
|
|
4204
4204
|
}
|
|
4205
4205
|
if (ce.domain && Object.keys(ce.domain).length > 0) {
|
|
4206
|
-
const xe =
|
|
4206
|
+
const xe = Mc({
|
|
4207
4207
|
fieldsDomain: ce.domain,
|
|
4208
4208
|
fields: D
|
|
4209
4209
|
});
|
|
@@ -4214,7 +4214,7 @@ function Qd(e, t) {
|
|
|
4214
4214
|
}), Q(xe);
|
|
4215
4215
|
}
|
|
4216
4216
|
};
|
|
4217
|
-
async function
|
|
4217
|
+
async function Ia({
|
|
4218
4218
|
action: U,
|
|
4219
4219
|
context: q
|
|
4220
4220
|
}) {
|
|
@@ -4245,7 +4245,7 @@ function Qd(e, t) {
|
|
|
4245
4245
|
} else
|
|
4246
4246
|
await ie({ forceRefresh: !0 });
|
|
4247
4247
|
}
|
|
4248
|
-
async function
|
|
4248
|
+
async function Ta({ action: U }) {
|
|
4249
4249
|
const q = await $.getHandler().executeWorkflow({
|
|
4250
4250
|
model: n,
|
|
4251
4251
|
action: U,
|
|
@@ -4253,7 +4253,7 @@ function Qd(e, t) {
|
|
|
4253
4253
|
});
|
|
4254
4254
|
q.type && q.type === "ir.actions.act_window_close" ? re == null || re(ge(), z(), Re()) : await ie({ forceRefresh: !0 });
|
|
4255
4255
|
}
|
|
4256
|
-
async function
|
|
4256
|
+
async function Oa({
|
|
4257
4257
|
action: U,
|
|
4258
4258
|
context: q
|
|
4259
4259
|
}) {
|
|
@@ -4283,7 +4283,7 @@ function Qd(e, t) {
|
|
|
4283
4283
|
})) || {};
|
|
4284
4284
|
!C && se && (re == null || re(ge(), z(), Re()));
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function Fa() {
|
|
4287
4287
|
bn({ elementHasLostFocus: !0 });
|
|
4288
4288
|
}
|
|
4289
4289
|
function lr(U) {
|
|
@@ -4294,7 +4294,7 @@ function Qd(e, t) {
|
|
|
4294
4294
|
operationInProgress: U
|
|
4295
4295
|
});
|
|
4296
4296
|
}
|
|
4297
|
-
async function
|
|
4297
|
+
async function Aa({
|
|
4298
4298
|
type: U,
|
|
4299
4299
|
action: q,
|
|
4300
4300
|
context: se
|
|
@@ -4311,13 +4311,13 @@ function Qd(e, t) {
|
|
|
4311
4311
|
try {
|
|
4312
4312
|
!f && (ft() || ge() === void 0) && (ce = !0, lr(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), K.current = !0) : await kt({ callOnSubmitSucceed: !1 }));
|
|
4313
4313
|
const xe = K.current ? De() : {}, Xe = { ...se, ...xe };
|
|
4314
|
-
U === "object" ? await
|
|
4314
|
+
U === "object" ? await Ia({ action: q, context: Xe }) : U === "workflow" ? await Ta({ action: q }) : U === "action" && await Oa({ action: q, context: Xe }), ce && lr(!1);
|
|
4315
4315
|
} catch (xe) {
|
|
4316
4316
|
ce && lr(!1), it(xe);
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
|
-
const
|
|
4320
|
-
|
|
4319
|
+
const Ra = () => !_ && !F ? /* @__PURE__ */ i(We, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
|
|
4320
|
+
zl,
|
|
4321
4321
|
{
|
|
4322
4322
|
getValues: z,
|
|
4323
4323
|
getPlainValues: ye,
|
|
@@ -4327,12 +4327,12 @@ function Qd(e, t) {
|
|
|
4327
4327
|
activeModel: n,
|
|
4328
4328
|
setFieldValue: gt,
|
|
4329
4329
|
getFieldValue: Gt,
|
|
4330
|
-
executeButtonAction:
|
|
4330
|
+
executeButtonAction: Aa,
|
|
4331
4331
|
getContext: be,
|
|
4332
4332
|
submitForm: kt,
|
|
4333
4333
|
fetchValues: ie,
|
|
4334
4334
|
formHasChanges: ft,
|
|
4335
|
-
elementHasLostFocus:
|
|
4335
|
+
elementHasLostFocus: Fa,
|
|
4336
4336
|
formView: m,
|
|
4337
4337
|
children: /* @__PURE__ */ i(
|
|
4338
4338
|
pt,
|
|
@@ -4352,7 +4352,7 @@ function Qd(e, t) {
|
|
|
4352
4352
|
}
|
|
4353
4353
|
)
|
|
4354
4354
|
}
|
|
4355
|
-
) }),
|
|
4355
|
+
) }), _a = () => /* @__PURE__ */ E(ae, { children: [
|
|
4356
4356
|
/* @__PURE__ */ i(Yn, {}),
|
|
4357
4357
|
/* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ E(Je, { children: [
|
|
4358
4358
|
/* @__PURE__ */ i(
|
|
@@ -4391,13 +4391,13 @@ function Qd(e, t) {
|
|
|
4391
4391
|
},
|
|
4392
4392
|
children: ({ measureRef: U }) => /* @__PURE__ */ E("div", { className: "pb-2", ref: U, children: [
|
|
4393
4393
|
F && /* @__PURE__ */ i(ds, { className: "mt-5 mb-10", error: F }),
|
|
4394
|
-
|
|
4395
|
-
a &&
|
|
4394
|
+
Ra(),
|
|
4395
|
+
a && _a()
|
|
4396
4396
|
] })
|
|
4397
4397
|
}
|
|
4398
4398
|
) : null;
|
|
4399
4399
|
}
|
|
4400
|
-
const hn = yt(
|
|
4400
|
+
const hn = yt(Xd), gn = (e) => {
|
|
4401
4401
|
const {
|
|
4402
4402
|
visible: t,
|
|
4403
4403
|
id: n,
|
|
@@ -4442,7 +4442,7 @@ const hn = yt(Qd), gn = (e) => {
|
|
|
4442
4442
|
je,
|
|
4443
4443
|
{
|
|
4444
4444
|
type: h ? "primary" : "default",
|
|
4445
|
-
icon: h ? /* @__PURE__ */ i(
|
|
4445
|
+
icon: h ? /* @__PURE__ */ i(Qa, { style: { color: "white" } }) : /* @__PURE__ */ i(Xa, {}),
|
|
4446
4446
|
style: { width: 30 },
|
|
4447
4447
|
onClick: O
|
|
4448
4448
|
}
|
|
@@ -4451,7 +4451,7 @@ const hn = yt(Qd), gn = (e) => {
|
|
|
4451
4451
|
] });
|
|
4452
4452
|
}
|
|
4453
4453
|
const R = f * 0.95;
|
|
4454
|
-
return /* @__PURE__ */ i(
|
|
4454
|
+
return /* @__PURE__ */ i(Kd, { setTitle: p, children: /* @__PURE__ */ i(
|
|
4455
4455
|
ct,
|
|
4456
4456
|
{
|
|
4457
4457
|
title: a ? T() : d,
|
|
@@ -4476,8 +4476,8 @@ const hn = yt(Qd), gn = (e) => {
|
|
|
4476
4476
|
)
|
|
4477
4477
|
}
|
|
4478
4478
|
) });
|
|
4479
|
-
}, { error:
|
|
4480
|
-
|
|
4479
|
+
}, { error: Zd } = ct, Ht = (e) => {
|
|
4480
|
+
Zd({
|
|
4481
4481
|
title: "Error",
|
|
4482
4482
|
icon: /* @__PURE__ */ i(Vt, {}),
|
|
4483
4483
|
centered: !0,
|
|
@@ -4487,7 +4487,7 @@ const hn = yt(Qd), gn = (e) => {
|
|
|
4487
4487
|
const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
|
|
4488
4488
|
Ht(t);
|
|
4489
4489
|
}, bs = () => {
|
|
4490
|
-
const { modal: e } =
|
|
4490
|
+
const { modal: e } = La.useApp();
|
|
4491
4491
|
return N(
|
|
4492
4492
|
(t) => {
|
|
4493
4493
|
const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
|
|
@@ -4534,7 +4534,7 @@ const hn = yt(Qd), gn = (e) => {
|
|
|
4534
4534
|
}, [r, p, t, e, n]);
|
|
4535
4535
|
return { loading: s, treeView: l, formView: u };
|
|
4536
4536
|
};
|
|
4537
|
-
function
|
|
4537
|
+
function eu(e) {
|
|
4538
4538
|
if (e)
|
|
4539
4539
|
try {
|
|
4540
4540
|
if (e.includes(":")) {
|
|
@@ -4564,17 +4564,17 @@ function Cs(e) {
|
|
|
4564
4564
|
});
|
|
4565
4565
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4566
4566
|
}
|
|
4567
|
-
const
|
|
4567
|
+
const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs, {}) }), xs = ({ value: e }) => {
|
|
4568
4568
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
4569
4569
|
minimumIntegerDigits: 1,
|
|
4570
4570
|
maximumFractionDigits: 4,
|
|
4571
4571
|
useGrouping: !1
|
|
4572
4572
|
})}%`;
|
|
4573
4573
|
return /* @__PURE__ */ E("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
4574
|
-
/* @__PURE__ */ i(
|
|
4574
|
+
/* @__PURE__ */ i(nu, { percent: e }),
|
|
4575
4575
|
/* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
4576
4576
|
] });
|
|
4577
|
-
},
|
|
4577
|
+
}, nu = dn(ja)`
|
|
4578
4578
|
.ant-progress-outer {
|
|
4579
4579
|
margin-right: 0px;
|
|
4580
4580
|
padding-right: 0px;
|
|
@@ -4582,7 +4582,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4582
4582
|
.ant-progress-text {
|
|
4583
4583
|
display: none;
|
|
4584
4584
|
}
|
|
4585
|
-
`,
|
|
4585
|
+
`, ru = ({
|
|
4586
4586
|
onRetrieveData: e,
|
|
4587
4587
|
onItemClick: t,
|
|
4588
4588
|
onOpenChange: n
|
|
@@ -4624,7 +4624,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4624
4624
|
}, [l, e]);
|
|
4625
4625
|
return /* @__PURE__ */ E(Fn, { children: [
|
|
4626
4626
|
/* @__PURE__ */ i(
|
|
4627
|
-
|
|
4627
|
+
pl,
|
|
4628
4628
|
{
|
|
4629
4629
|
onRetrieveData: f,
|
|
4630
4630
|
onItemClick: (d) => {
|
|
@@ -4677,7 +4677,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4677
4677
|
context: r
|
|
4678
4678
|
});
|
|
4679
4679
|
s(I);
|
|
4680
|
-
const C =
|
|
4680
|
+
const C = ou(I);
|
|
4681
4681
|
let b = {};
|
|
4682
4682
|
if (C.length > 0 && (b = { ...(O = await m({
|
|
4683
4683
|
model: n,
|
|
@@ -4726,7 +4726,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
return /* @__PURE__ */ i(
|
|
4729
|
-
|
|
4729
|
+
ru,
|
|
4730
4730
|
{
|
|
4731
4731
|
onRetrieveData: y,
|
|
4732
4732
|
onItemClick: w,
|
|
@@ -4735,24 +4735,24 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4735
4735
|
}
|
|
4736
4736
|
}
|
|
4737
4737
|
);
|
|
4738
|
-
},
|
|
4738
|
+
}, ou = (e) => {
|
|
4739
4739
|
const { toolbar: t } = e, r = ["action", "relate", "print"].flatMap((o) => {
|
|
4740
4740
|
const s = t[o];
|
|
4741
4741
|
return (s == null ? void 0 : s.flatMap((a) => {
|
|
4742
4742
|
const l = [];
|
|
4743
|
-
return "context" in a && l.push(...
|
|
4743
|
+
return "context" in a && l.push(...Ya(a.context)), "domain" in a && l.push(...za(a.domain)), l;
|
|
4744
4744
|
})) || [];
|
|
4745
4745
|
});
|
|
4746
4746
|
return [
|
|
4747
4747
|
...new Set(r.filter((o) => o in e.fields))
|
|
4748
4748
|
];
|
|
4749
|
-
},
|
|
4749
|
+
}, iu = (e) => {
|
|
4750
4750
|
const { m2oField: t } = e;
|
|
4751
4751
|
return t ? /* @__PURE__ */ E(Je, { children: [
|
|
4752
4752
|
/* @__PURE__ */ i(ae, { children: t.value }),
|
|
4753
4753
|
/* @__PURE__ */ i(uo, { id: t.id, model: t.model })
|
|
4754
4754
|
] }) : /* @__PURE__ */ i(ae, {});
|
|
4755
|
-
},
|
|
4755
|
+
}, su = (e) => {
|
|
4756
4756
|
const { value: t, context: n, selectionValues: r } = e, [o, s] = x(), [a, l] = x(!1), [c, u] = t ? t.split(",") : [], f = parseInt(u), d = N(async () => {
|
|
4757
4757
|
if (!t || t && o)
|
|
4758
4758
|
return;
|
|
@@ -4777,7 +4777,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4777
4777
|
/* @__PURE__ */ i(ae, { children: o }),
|
|
4778
4778
|
/* @__PURE__ */ i(uo, { id: f, model: c })
|
|
4779
4779
|
] });
|
|
4780
|
-
},
|
|
4780
|
+
}, au = (e) => {
|
|
4781
4781
|
const { ooui: t, value: n } = e;
|
|
4782
4782
|
if (!n)
|
|
4783
4783
|
return null;
|
|
@@ -4785,14 +4785,14 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4785
4785
|
t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
|
|
4786
4786
|
const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = An(r);
|
|
4787
4787
|
return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(Fi, { alt: r, style: { backgroundColor: s }, children: o }) });
|
|
4788
|
-
},
|
|
4789
|
-
en_US:
|
|
4790
|
-
es_ES:
|
|
4791
|
-
ca_ES:
|
|
4788
|
+
}, lu = {
|
|
4789
|
+
en_US: Pl,
|
|
4790
|
+
es_ES: kl,
|
|
4791
|
+
ca_ES: $l
|
|
4792
4792
|
}, fo = () => {
|
|
4793
4793
|
const { locale: e } = he();
|
|
4794
|
-
return
|
|
4795
|
-
}, { useToken:
|
|
4794
|
+
return lu[e];
|
|
4795
|
+
}, { useToken: cu } = Ge, Ct = {
|
|
4796
4796
|
date: {
|
|
4797
4797
|
placeholder: "__/__/____",
|
|
4798
4798
|
dateDisplayFormat: "DD/MM/YYYY",
|
|
@@ -4805,9 +4805,9 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4805
4805
|
}
|
|
4806
4806
|
}, Is = (e) => {
|
|
4807
4807
|
const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
|
|
4808
|
-
return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(
|
|
4809
|
-
},
|
|
4810
|
-
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } =
|
|
4808
|
+
return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(du, { ooui: t, showTime: n }) });
|
|
4809
|
+
}, du = (e) => {
|
|
4810
|
+
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = cu(), u = fo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (v) => {
|
|
4811
4811
|
n == null || n(v);
|
|
4812
4812
|
}, h = (v) => {
|
|
4813
4813
|
if (v == null) {
|
|
@@ -4845,13 +4845,13 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4845
4845
|
Ur,
|
|
4846
4846
|
{
|
|
4847
4847
|
closable: !!t,
|
|
4848
|
-
color:
|
|
4848
|
+
color: Nl.isEmail(r) ? void 0 : "error",
|
|
4849
4849
|
onClose: () => t && t(r),
|
|
4850
4850
|
children: r
|
|
4851
4851
|
},
|
|
4852
4852
|
o
|
|
4853
4853
|
)) });
|
|
4854
|
-
},
|
|
4854
|
+
}, uu = ({
|
|
4855
4855
|
value: e = "",
|
|
4856
4856
|
onChange: t,
|
|
4857
4857
|
maxLength: n,
|
|
@@ -4930,7 +4930,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4930
4930
|
]
|
|
4931
4931
|
}
|
|
4932
4932
|
);
|
|
4933
|
-
},
|
|
4933
|
+
}, fu = ({
|
|
4934
4934
|
value: e
|
|
4935
4935
|
}) => me(
|
|
4936
4936
|
() => /* @__PURE__ */ i(
|
|
@@ -4946,9 +4946,9 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4946
4946
|
}
|
|
4947
4947
|
),
|
|
4948
4948
|
[e]
|
|
4949
|
-
),
|
|
4949
|
+
), mu = ({
|
|
4950
4950
|
value: e
|
|
4951
|
-
}) => me(() => /* @__PURE__ */ i(Ts, { emails: e }), [e]),
|
|
4951
|
+
}) => me(() => /* @__PURE__ */ i(Ts, { emails: e }), [e]), pu = ({ value: e }) => me(() => /* @__PURE__ */ i(iu, { m2oField: e }), [e]), hu = ({ value: e }) => me(
|
|
4952
4952
|
() => /* @__PURE__ */ i(
|
|
4953
4953
|
In,
|
|
4954
4954
|
{
|
|
@@ -4956,7 +4956,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4956
4956
|
}
|
|
4957
4957
|
),
|
|
4958
4958
|
[e]
|
|
4959
|
-
),
|
|
4959
|
+
), gu = ({ value: e }) => me(() => {
|
|
4960
4960
|
if (!e || e && e.length === 0)
|
|
4961
4961
|
return /* @__PURE__ */ i(ae, {});
|
|
4962
4962
|
const t = st(
|
|
@@ -4964,7 +4964,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4964
4964
|
Ct.date.dateInternalFormat
|
|
4965
4965
|
).format(Ct.date.dateDisplayFormat);
|
|
4966
4966
|
return /* @__PURE__ */ i(ae, { children: t });
|
|
4967
|
-
}, [e]),
|
|
4967
|
+
}, [e]), yu = ({ value: e }) => me(() => {
|
|
4968
4968
|
if (!e || e && e.length === 0)
|
|
4969
4969
|
return /* @__PURE__ */ i(ae, {});
|
|
4970
4970
|
const t = st(
|
|
@@ -4977,12 +4977,12 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4977
4977
|
}) => me(() => {
|
|
4978
4978
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
4979
4979
|
return /* @__PURE__ */ i(ae, { children: `( ${t} )` });
|
|
4980
|
-
}, [e]),
|
|
4980
|
+
}, [e]), vu = ({
|
|
4981
4981
|
value: e
|
|
4982
|
-
}) => me(() => /* @__PURE__ */ i(xs, { value: e }), [e]),
|
|
4982
|
+
}) => me(() => /* @__PURE__ */ i(xs, { value: e }), [e]), wu = ({ value: e }) => me(() => /* @__PURE__ */ i(ae, { children: Cs(e) }), [e]), Go = ({ value: e }) => me(
|
|
4983
4983
|
() => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
|
|
4984
4984
|
[e]
|
|
4985
|
-
),
|
|
4985
|
+
), bu = ({ value: e }) => me(
|
|
4986
4986
|
() => /* @__PURE__ */ i(
|
|
4987
4987
|
"img",
|
|
4988
4988
|
{
|
|
@@ -4991,12 +4991,12 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
4991
4991
|
}
|
|
4992
4992
|
),
|
|
4993
4993
|
[e]
|
|
4994
|
-
),
|
|
4994
|
+
), Su = ({
|
|
4995
4995
|
value: e,
|
|
4996
4996
|
key: t,
|
|
4997
4997
|
ooui: n,
|
|
4998
4998
|
context: r
|
|
4999
|
-
}) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]),
|
|
4999
|
+
}) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]), Cu = ({
|
|
5000
5000
|
value: e,
|
|
5001
5001
|
key: t,
|
|
5002
5002
|
ooui: n,
|
|
@@ -5004,14 +5004,14 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5004
5004
|
}) => me(() => {
|
|
5005
5005
|
let o = e;
|
|
5006
5006
|
return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(ae, { children: n.selectionValues.get(o) });
|
|
5007
|
-
}, [n, e]),
|
|
5007
|
+
}, [n, e]), xu = ({
|
|
5008
5008
|
value: e,
|
|
5009
5009
|
key: t,
|
|
5010
5010
|
ooui: n,
|
|
5011
5011
|
context: r
|
|
5012
5012
|
}) => me(
|
|
5013
5013
|
() => /* @__PURE__ */ i(
|
|
5014
|
-
|
|
5014
|
+
su,
|
|
5015
5015
|
{
|
|
5016
5016
|
value: e,
|
|
5017
5017
|
selectionValues: n.selectionValues,
|
|
@@ -5019,12 +5019,12 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5019
5019
|
}
|
|
5020
5020
|
),
|
|
5021
5021
|
[r, n.selectionValues, e]
|
|
5022
|
-
),
|
|
5022
|
+
), Iu = ({
|
|
5023
5023
|
value: e,
|
|
5024
5024
|
key: t,
|
|
5025
5025
|
ooui: n,
|
|
5026
5026
|
context: r
|
|
5027
|
-
}) => me(() => /* @__PURE__ */ i(
|
|
5027
|
+
}) => me(() => /* @__PURE__ */ i(au, { ooui: n, value: e }), [n, e]), Tu = ({
|
|
5028
5028
|
value: e,
|
|
5029
5029
|
key: t,
|
|
5030
5030
|
ooui: n,
|
|
@@ -5070,25 +5070,25 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5070
5070
|
}
|
|
5071
5071
|
), [d, a]);
|
|
5072
5072
|
}, mo = {
|
|
5073
|
-
boolean:
|
|
5074
|
-
many2one:
|
|
5075
|
-
text:
|
|
5073
|
+
boolean: fu,
|
|
5074
|
+
many2one: pu,
|
|
5075
|
+
text: hu,
|
|
5076
5076
|
one2many: Wo,
|
|
5077
5077
|
many2many: Wo,
|
|
5078
|
-
progressbar:
|
|
5079
|
-
float_time:
|
|
5080
|
-
image:
|
|
5078
|
+
progressbar: vu,
|
|
5079
|
+
float_time: wu,
|
|
5080
|
+
image: bu,
|
|
5081
5081
|
integer: Go,
|
|
5082
5082
|
float: Go,
|
|
5083
|
-
reference:
|
|
5084
|
-
tag:
|
|
5085
|
-
selection:
|
|
5086
|
-
date:
|
|
5087
|
-
datetime:
|
|
5088
|
-
avatar:
|
|
5089
|
-
tags:
|
|
5090
|
-
email:
|
|
5091
|
-
},
|
|
5083
|
+
reference: xu,
|
|
5084
|
+
tag: Su,
|
|
5085
|
+
selection: Cu,
|
|
5086
|
+
date: gu,
|
|
5087
|
+
datetime: yu,
|
|
5088
|
+
avatar: Iu,
|
|
5089
|
+
tags: Tu,
|
|
5090
|
+
email: mu
|
|
5091
|
+
}, Ou = ({
|
|
5092
5092
|
elementRef: e,
|
|
5093
5093
|
offset: t = 0,
|
|
5094
5094
|
dependencies: n = []
|
|
@@ -5103,7 +5103,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5103
5103
|
};
|
|
5104
5104
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
5105
5105
|
}, [e, ...n]), me(() => r, [r]) - t;
|
|
5106
|
-
},
|
|
5106
|
+
}, Fu = (e) => {
|
|
5107
5107
|
const t = ht(async () => {
|
|
5108
5108
|
if (!e)
|
|
5109
5109
|
return;
|
|
@@ -5116,7 +5116,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5116
5116
|
[e]
|
|
5117
5117
|
);
|
|
5118
5118
|
return { getColumnState: t, updateColumnState: n };
|
|
5119
|
-
},
|
|
5119
|
+
}, Au = (e) => {
|
|
5120
5120
|
ue(() => () => {
|
|
5121
5121
|
n(), o();
|
|
5122
5122
|
}, []);
|
|
@@ -5150,16 +5150,16 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5150
5150
|
[e]
|
|
5151
5151
|
);
|
|
5152
5152
|
return { getColumnState: s, updateColumnState: a };
|
|
5153
|
-
},
|
|
5153
|
+
}, Ru = (e) => {
|
|
5154
5154
|
const t = ir(
|
|
5155
5155
|
fn.FEATURE_USERVIEWPREFS
|
|
5156
5156
|
), {
|
|
5157
5157
|
getColumnState: n,
|
|
5158
5158
|
updateColumnState: r
|
|
5159
|
-
} =
|
|
5159
|
+
} = Fu(e), {
|
|
5160
5160
|
getColumnState: o,
|
|
5161
5161
|
updateColumnState: s
|
|
5162
|
-
} =
|
|
5162
|
+
} = Au(e), a = ht(async () => {
|
|
5163
5163
|
if (!t)
|
|
5164
5164
|
return n();
|
|
5165
5165
|
try {
|
|
@@ -5185,7 +5185,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5185
5185
|
);
|
|
5186
5186
|
return { getColumnState: a, updateColumnState: l };
|
|
5187
5187
|
}, Os = (e) => {
|
|
5188
|
-
const [t, n] = x(!0), r = J(void 0), o = J(!1), { getColumnState: s, updateColumnState: a } =
|
|
5188
|
+
const [t, n] = x(!0), r = J(void 0), o = J(!1), { getColumnState: s, updateColumnState: a } = Ru(e);
|
|
5189
5189
|
return ue(() => {
|
|
5190
5190
|
if (!e) {
|
|
5191
5191
|
n(!1);
|
|
@@ -5204,7 +5204,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5204
5204
|
}
|
|
5205
5205
|
})();
|
|
5206
5206
|
}, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
|
|
5207
|
-
},
|
|
5207
|
+
}, _u = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Ko = ["sum", "count", "max", "min"], Fs = ({
|
|
5208
5208
|
ooui: e,
|
|
5209
5209
|
model: t,
|
|
5210
5210
|
domain: n,
|
|
@@ -5302,7 +5302,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5302
5302
|
]
|
|
5303
5303
|
}
|
|
5304
5304
|
);
|
|
5305
|
-
}, { Text: qo } = _t,
|
|
5305
|
+
}, { Text: qo } = _t, Vu = ({
|
|
5306
5306
|
totalRows: e,
|
|
5307
5307
|
selectedRowKeys: t,
|
|
5308
5308
|
allRowSelectedMode: n
|
|
@@ -5315,7 +5315,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5315
5315
|
className: "pb-4",
|
|
5316
5316
|
style: { height: 40, maxHeight: 40, overflow: "hidden" },
|
|
5317
5317
|
children: [
|
|
5318
|
-
/* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(
|
|
5318
|
+
/* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Eu, { selectedRowKeys: t }) }),
|
|
5319
5319
|
/* @__PURE__ */ E(we, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
|
|
5320
5320
|
e === void 0 && /* @__PURE__ */ i(We, {}),
|
|
5321
5321
|
e != null && `${r("totalRegisters")} ${e}`
|
|
@@ -5323,7 +5323,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5323
5323
|
]
|
|
5324
5324
|
}
|
|
5325
5325
|
);
|
|
5326
|
-
},
|
|
5326
|
+
}, Eu = ({
|
|
5327
5327
|
selectedRowKeys: e
|
|
5328
5328
|
}) => {
|
|
5329
5329
|
const { t } = he();
|
|
@@ -5350,7 +5350,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5350
5350
|
}
|
|
5351
5351
|
)
|
|
5352
5352
|
] });
|
|
5353
|
-
},
|
|
5353
|
+
}, Du = (e) => {
|
|
5354
5354
|
const t = fo();
|
|
5355
5355
|
return /* @__PURE__ */ i(_e, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
|
|
5356
5356
|
Wr.RangePicker,
|
|
@@ -5369,7 +5369,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5369
5369
|
}) => {
|
|
5370
5370
|
const o = J(), s = J(0);
|
|
5371
5371
|
return /* @__PURE__ */ i(
|
|
5372
|
-
|
|
5372
|
+
Ba,
|
|
5373
5373
|
{
|
|
5374
5374
|
...r,
|
|
5375
5375
|
ref: o,
|
|
@@ -5383,7 +5383,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5383
5383
|
}
|
|
5384
5384
|
}
|
|
5385
5385
|
);
|
|
5386
|
-
},
|
|
5386
|
+
}, Pu = (e) => {
|
|
5387
5387
|
const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = fo(), a = [
|
|
5388
5388
|
new Ir({
|
|
5389
5389
|
name: o + "#date",
|
|
@@ -5417,10 +5417,10 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5417
5417
|
locale: s
|
|
5418
5418
|
}
|
|
5419
5419
|
) }) }),
|
|
5420
|
-
/* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i(
|
|
5420
|
+
/* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i(ku, {}) }) })
|
|
5421
5421
|
] })
|
|
5422
5422
|
] });
|
|
5423
|
-
},
|
|
5423
|
+
}, ku = ({
|
|
5424
5424
|
value: e,
|
|
5425
5425
|
onChange: t
|
|
5426
5426
|
}) => /* @__PURE__ */ E("div", { style: { marginTop: 5 }, children: [
|
|
@@ -5448,8 +5448,8 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
5450
|
)
|
|
5451
|
-
] }), { useToken:
|
|
5452
|
-
const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } =
|
|
5451
|
+
] }), { useToken: $u } = Ge, Rs = (e) => {
|
|
5452
|
+
const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = $u(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
|
|
5453
5453
|
return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
5454
5454
|
Ai,
|
|
5455
5455
|
{
|
|
@@ -5464,8 +5464,8 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5464
5464
|
wheel: !1
|
|
5465
5465
|
}
|
|
5466
5466
|
) });
|
|
5467
|
-
}, { useToken:
|
|
5468
|
-
const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } =
|
|
5467
|
+
}, { useToken: Nu } = Ge, Gn = (e) => {
|
|
5468
|
+
const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Nu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
|
|
5469
5469
|
return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
5470
5470
|
Ai,
|
|
5471
5471
|
{
|
|
@@ -5484,7 +5484,7 @@ const eu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5484
5484
|
}
|
|
5485
5485
|
) });
|
|
5486
5486
|
};
|
|
5487
|
-
function
|
|
5487
|
+
function Mu(e) {
|
|
5488
5488
|
const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Tr ? Gn : Rs, l = (c) => /* @__PURE__ */ i(
|
|
5489
5489
|
a,
|
|
5490
5490
|
{
|
|
@@ -5526,17 +5526,17 @@ function Nu(e) {
|
|
|
5526
5526
|
)
|
|
5527
5527
|
] });
|
|
5528
5528
|
}
|
|
5529
|
-
const { defaultAlgorithm:
|
|
5529
|
+
const { defaultAlgorithm: Lu, defaultSeed: ju } = Ge, Bu = Lu(ju), { Option: Hu } = Ut, Uu = (e) => {
|
|
5530
5530
|
const { ooui: t } = e, { required: n } = t;
|
|
5531
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(
|
|
5532
|
-
},
|
|
5531
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Wu, { ...e }) });
|
|
5532
|
+
}, Wu = (e) => {
|
|
5533
5533
|
const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.filter((d) => {
|
|
5534
5534
|
const [p] = d;
|
|
5535
5535
|
return r ? !r.includes(p) : !0;
|
|
5536
5536
|
}).map((d) => {
|
|
5537
5537
|
const [p, h] = d;
|
|
5538
|
-
return /* @__PURE__ */ i(
|
|
5539
|
-
}), u = a && !s ?
|
|
5538
|
+
return /* @__PURE__ */ i(Hu, { value: h, children: h }, p);
|
|
5539
|
+
}), u = a && !s ? Gu : Ut;
|
|
5540
5540
|
function f(d) {
|
|
5541
5541
|
const p = d.map((h) => {
|
|
5542
5542
|
const m = l.find(([v, g]) => h === g);
|
|
@@ -5559,9 +5559,9 @@ const { defaultAlgorithm: Mu, defaultSeed: Lu } = Ge, ju = Mu(Lu), { Option: Bu
|
|
|
5559
5559
|
children: c
|
|
5560
5560
|
}
|
|
5561
5561
|
);
|
|
5562
|
-
},
|
|
5562
|
+
}, Gu = dn(Ut)`
|
|
5563
5563
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
5564
|
-
background-color: ${
|
|
5564
|
+
background-color: ${Bu.colorPrimaryBg};
|
|
5565
5565
|
}
|
|
5566
5566
|
`;
|
|
5567
5567
|
function _s(e) {
|
|
@@ -5584,13 +5584,13 @@ function _s(e) {
|
|
|
5584
5584
|
case Tt.progressbar:
|
|
5585
5585
|
case Tt.float_time:
|
|
5586
5586
|
case Tt.integer:
|
|
5587
|
-
return /* @__PURE__ */ i(
|
|
5587
|
+
return /* @__PURE__ */ i(Mu, { ooui: t, showLabel: !0 });
|
|
5588
5588
|
case Tt.date:
|
|
5589
|
-
return /* @__PURE__ */ i(Eu, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5590
|
-
case Tt.datetime:
|
|
5591
5589
|
return /* @__PURE__ */ i(Du, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5590
|
+
case Tt.datetime:
|
|
5591
|
+
return /* @__PURE__ */ i(Pu, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5592
5592
|
case Tt.selection:
|
|
5593
|
-
return /* @__PURE__ */ i(
|
|
5593
|
+
return /* @__PURE__ */ i(Uu, { layout: "vertical", ooui: t, showLabel: !0 });
|
|
5594
5594
|
default:
|
|
5595
5595
|
return /* @__PURE__ */ i(
|
|
5596
5596
|
es,
|
|
@@ -5604,14 +5604,14 @@ function _s(e) {
|
|
|
5604
5604
|
}
|
|
5605
5605
|
}
|
|
5606
5606
|
const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Nn = (e, t) => {
|
|
5607
|
-
const n =
|
|
5607
|
+
const n = Qu(e), r = zu(n), o = Ju(
|
|
5608
5608
|
r,
|
|
5609
5609
|
t
|
|
5610
5610
|
);
|
|
5611
5611
|
return [
|
|
5612
|
-
...Object.keys(o).map((l) =>
|
|
5612
|
+
...Object.keys(o).map((l) => Ku(l, o[l], t))
|
|
5613
5613
|
].reduce((l, c) => Array.isArray(c[0]) ? l.concat(c) : [...l, c], []);
|
|
5614
|
-
},
|
|
5614
|
+
}, Ku = (e, t, n) => {
|
|
5615
5615
|
var s;
|
|
5616
5616
|
const r = e.split("#")[0], o = (s = n.findById(r)) == null ? void 0 : s.type;
|
|
5617
5617
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -5633,14 +5633,14 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5633
5633
|
(a) => Yo(a)
|
|
5634
5634
|
)
|
|
5635
5635
|
] : [e, "=", Yo(t)];
|
|
5636
|
-
},
|
|
5636
|
+
}, qu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Yu = (e) => {
|
|
5637
5637
|
const t = { ...e };
|
|
5638
5638
|
return Object.keys(t).forEach(
|
|
5639
5639
|
(n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
|
|
5640
5640
|
), t;
|
|
5641
|
-
},
|
|
5642
|
-
const t = { ...
|
|
5643
|
-
return
|
|
5641
|
+
}, zu = (e) => {
|
|
5642
|
+
const t = { ...Yu(e) };
|
|
5643
|
+
return qu(e).forEach((r) => {
|
|
5644
5644
|
const o = e[r], s = r.split("#")[0], a = s + "#time", l = e[a];
|
|
5645
5645
|
let c, u;
|
|
5646
5646
|
if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -5653,7 +5653,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5653
5653
|
}
|
|
5654
5654
|
t[s + "#datetime"] = [c, u];
|
|
5655
5655
|
}), t;
|
|
5656
|
-
},
|
|
5656
|
+
}, Ju = (e, t) => {
|
|
5657
5657
|
const n = Object.keys(e).filter((o) => {
|
|
5658
5658
|
const s = t.findById(o);
|
|
5659
5659
|
return s && s.type === "date";
|
|
@@ -5661,29 +5661,29 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5661
5661
|
return n.forEach((o) => {
|
|
5662
5662
|
delete r[o], e[o][0] !== null && (r[o + "#from"] = e[o][0]), e[o][1] !== null && (r[o + "#to"] = e[o][1]);
|
|
5663
5663
|
}), r;
|
|
5664
|
-
},
|
|
5664
|
+
}, Qu = (e) => {
|
|
5665
5665
|
const t = { ...e };
|
|
5666
5666
|
return Object.keys(t).forEach(
|
|
5667
5667
|
(n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
|
|
5668
5668
|
), t;
|
|
5669
|
-
},
|
|
5669
|
+
}, Xu = (e) => {
|
|
5670
5670
|
const t = {};
|
|
5671
5671
|
return e.forEach((n) => {
|
|
5672
5672
|
Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
|
|
5673
5673
|
}), Object.keys(t);
|
|
5674
5674
|
}, on = (e, t) => {
|
|
5675
|
-
const n = [...e], r =
|
|
5675
|
+
const n = [...e], r = Xu(e);
|
|
5676
5676
|
return t.forEach((o) => {
|
|
5677
5677
|
Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
|
|
5678
5678
|
}), n;
|
|
5679
|
-
}, { useToken:
|
|
5679
|
+
}, { useToken: Zu } = Ge, { Title: ef } = _t, { Header: tf, Content: nf, Footer: rf } = Ri, of = ({
|
|
5680
5680
|
isOpen: e,
|
|
5681
5681
|
onClose: t,
|
|
5682
5682
|
children: n,
|
|
5683
5683
|
title: r,
|
|
5684
5684
|
footer: o
|
|
5685
5685
|
}) => {
|
|
5686
|
-
const [s, a] = x(e), l = J(null), { token: c } =
|
|
5686
|
+
const [s, a] = x(e), l = J(null), { token: c } = Zu(), u = N(
|
|
5687
5687
|
(h) => {
|
|
5688
5688
|
h.preventDefault(), h.stopPropagation(), t();
|
|
5689
5689
|
},
|
|
@@ -5712,7 +5712,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5712
5712
|
padding: "0 16px",
|
|
5713
5713
|
borderBottom: "1px solid #f0f0f0"
|
|
5714
5714
|
};
|
|
5715
|
-
return /* @__PURE__ */ i(
|
|
5715
|
+
return /* @__PURE__ */ i(Yl, { children: e && /* @__PURE__ */ E(ae, { children: [
|
|
5716
5716
|
/* @__PURE__ */ i(
|
|
5717
5717
|
Vo.div,
|
|
5718
5718
|
{
|
|
@@ -5754,8 +5754,8 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5754
5754
|
flexDirection: "column"
|
|
5755
5755
|
},
|
|
5756
5756
|
children: [
|
|
5757
|
-
/* @__PURE__ */ E(
|
|
5758
|
-
/* @__PURE__ */ i(
|
|
5757
|
+
/* @__PURE__ */ E(tf, { style: p, children: [
|
|
5758
|
+
/* @__PURE__ */ i(ef, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
|
|
5759
5759
|
/* @__PURE__ */ i(
|
|
5760
5760
|
je,
|
|
5761
5761
|
{
|
|
@@ -5767,7 +5767,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5767
5767
|
)
|
|
5768
5768
|
] }),
|
|
5769
5769
|
/* @__PURE__ */ i(
|
|
5770
|
-
|
|
5770
|
+
nf,
|
|
5771
5771
|
{
|
|
5772
5772
|
style: {
|
|
5773
5773
|
flex: 1,
|
|
@@ -5777,7 +5777,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5777
5777
|
}
|
|
5778
5778
|
),
|
|
5779
5779
|
o && /* @__PURE__ */ i(
|
|
5780
|
-
|
|
5780
|
+
rf,
|
|
5781
5781
|
{
|
|
5782
5782
|
style: {
|
|
5783
5783
|
...p,
|
|
@@ -5797,14 +5797,14 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
5797
5797
|
function Vs(e) {
|
|
5798
5798
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5799
5799
|
}
|
|
5800
|
-
var
|
|
5801
|
-
return
|
|
5800
|
+
var sf = "Expected a function", zo = 0 / 0, af = "[object Symbol]", lf = /^\s+|\s+$/g, cf = /^[-+]0x[0-9a-f]+$/i, df = /^0b[01]+$/i, uf = /^0o[0-7]+$/i, ff = parseInt, mf = typeof kn == "object" && kn && kn.Object === Object && kn, pf = typeof self == "object" && self && self.Object === Object && self, hf = mf || pf || Function("return this")(), gf = Object.prototype, yf = gf.toString, vf = Math.max, wf = Math.min, pr = function() {
|
|
5801
|
+
return hf.Date.now();
|
|
5802
5802
|
};
|
|
5803
|
-
function
|
|
5803
|
+
function bf(e, t, n) {
|
|
5804
5804
|
var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
|
|
5805
5805
|
if (typeof e != "function")
|
|
5806
|
-
throw new TypeError(
|
|
5807
|
-
t = Jo(t) || 0, _r(n) && (f = !!n.leading, d = "maxWait" in n, s = d ?
|
|
5806
|
+
throw new TypeError(sf);
|
|
5807
|
+
t = Jo(t) || 0, _r(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? vf(Jo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
|
|
5808
5808
|
function h(O) {
|
|
5809
5809
|
var T = r, R = o;
|
|
5810
5810
|
return r = o = void 0, u = O, a = e.apply(R, T), a;
|
|
@@ -5814,7 +5814,7 @@ function wf(e, t, n) {
|
|
|
5814
5814
|
}
|
|
5815
5815
|
function v(O) {
|
|
5816
5816
|
var T = O - c, R = O - u, S = t - T;
|
|
5817
|
-
return d ?
|
|
5817
|
+
return d ? wf(S, s - R) : S;
|
|
5818
5818
|
}
|
|
5819
5819
|
function g(O) {
|
|
5820
5820
|
var T = O - c, R = O - u;
|
|
@@ -5851,16 +5851,16 @@ function _r(e) {
|
|
|
5851
5851
|
var t = typeof e;
|
|
5852
5852
|
return !!e && (t == "object" || t == "function");
|
|
5853
5853
|
}
|
|
5854
|
-
function
|
|
5854
|
+
function Sf(e) {
|
|
5855
5855
|
return !!e && typeof e == "object";
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5858
|
-
return typeof e == "symbol" ||
|
|
5857
|
+
function Cf(e) {
|
|
5858
|
+
return typeof e == "symbol" || Sf(e) && yf.call(e) == af;
|
|
5859
5859
|
}
|
|
5860
5860
|
function Jo(e) {
|
|
5861
5861
|
if (typeof e == "number")
|
|
5862
5862
|
return e;
|
|
5863
|
-
if (
|
|
5863
|
+
if (Cf(e))
|
|
5864
5864
|
return zo;
|
|
5865
5865
|
if (_r(e)) {
|
|
5866
5866
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -5868,17 +5868,17 @@ function Jo(e) {
|
|
|
5868
5868
|
}
|
|
5869
5869
|
if (typeof e != "string")
|
|
5870
5870
|
return e === 0 ? e : +e;
|
|
5871
|
-
e = e.replace(
|
|
5872
|
-
var n =
|
|
5873
|
-
return n ||
|
|
5871
|
+
e = e.replace(lf, "");
|
|
5872
|
+
var n = df.test(e);
|
|
5873
|
+
return n || uf.test(e) ? ff(e.slice(2), n ? 2 : 8) : cf.test(e) ? zo : +e;
|
|
5874
5874
|
}
|
|
5875
|
-
var
|
|
5876
|
-
const
|
|
5875
|
+
var xf = bf;
|
|
5876
|
+
const If = /* @__PURE__ */ Vs(xf);
|
|
5877
5877
|
var Qo = Object.prototype.toString, Es = function(t) {
|
|
5878
5878
|
var n = Qo.call(t), r = n === "[object Arguments]";
|
|
5879
5879
|
return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Qo.call(t.callee) === "[object Function]"), r;
|
|
5880
5880
|
}, hr, Xo;
|
|
5881
|
-
function
|
|
5881
|
+
function Tf() {
|
|
5882
5882
|
if (Xo)
|
|
5883
5883
|
return hr;
|
|
5884
5884
|
Xo = 1;
|
|
@@ -5966,9 +5966,9 @@ function If() {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
return hr = e, hr;
|
|
5968
5968
|
}
|
|
5969
|
-
var
|
|
5969
|
+
var Of = Array.prototype.slice, Ff = Es, Zo = Object.keys, Mn = Zo ? function(t) {
|
|
5970
5970
|
return Zo(t);
|
|
5971
|
-
} :
|
|
5971
|
+
} : Tf(), ei = Object.keys;
|
|
5972
5972
|
Mn.shim = function() {
|
|
5973
5973
|
if (Object.keys) {
|
|
5974
5974
|
var t = function() {
|
|
@@ -5976,7 +5976,7 @@ Mn.shim = function() {
|
|
|
5976
5976
|
return n && n.length === arguments.length;
|
|
5977
5977
|
}(1, 2);
|
|
5978
5978
|
t || (Object.keys = function(r) {
|
|
5979
|
-
return
|
|
5979
|
+
return Ff(r) ? ei(Of.call(r)) : ei(r);
|
|
5980
5980
|
});
|
|
5981
5981
|
} else
|
|
5982
5982
|
Object.keys = Mn;
|
|
@@ -6005,18 +6005,18 @@ var Ds = Mn, Ps = function() {
|
|
|
6005
6005
|
return !1;
|
|
6006
6006
|
}
|
|
6007
6007
|
return !0;
|
|
6008
|
-
},
|
|
6009
|
-
return
|
|
6010
|
-
}, ti = typeof Symbol < "u" && Symbol,
|
|
6011
|
-
return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
6008
|
+
}, Af = Ps, po = function() {
|
|
6009
|
+
return Af() && !!Symbol.toStringTag;
|
|
6010
|
+
}, ti = typeof Symbol < "u" && Symbol, Rf = Ps, _f = function() {
|
|
6011
|
+
return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Rf();
|
|
6012
6012
|
}, ni = {
|
|
6013
6013
|
foo: {}
|
|
6014
|
-
},
|
|
6015
|
-
return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof
|
|
6016
|
-
},
|
|
6014
|
+
}, Vf = Object, Ef = function() {
|
|
6015
|
+
return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Vf);
|
|
6016
|
+
}, Df = "Function.prototype.bind called on incompatible ", gr = Array.prototype.slice, Pf = Object.prototype.toString, kf = "[object Function]", $f = function(t) {
|
|
6017
6017
|
var n = this;
|
|
6018
|
-
if (typeof n != "function" ||
|
|
6019
|
-
throw new TypeError(
|
|
6018
|
+
if (typeof n != "function" || Pf.call(n) !== kf)
|
|
6019
|
+
throw new TypeError(Df + n);
|
|
6020
6020
|
for (var r = gr.call(arguments, 1), o, s = function() {
|
|
6021
6021
|
if (this instanceof o) {
|
|
6022
6022
|
var f = n.apply(
|
|
@@ -6037,7 +6037,7 @@ var Ds = Mn, Ps = function() {
|
|
|
6037
6037
|
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
6038
6038
|
}
|
|
6039
6039
|
return o;
|
|
6040
|
-
},
|
|
6040
|
+
}, Nf = $f, ks = Function.prototype.bind || Nf, ri = {}.hasOwnProperty, yr = Function.prototype.call, Mf = yr.bind ? yr.bind(ri) : function(e, t) {
|
|
6041
6041
|
return yr.call(ri, e, t);
|
|
6042
6042
|
}, Ve, sn = SyntaxError, $s = Function, tn = TypeError, vr = function(e) {
|
|
6043
6043
|
try {
|
|
@@ -6053,7 +6053,7 @@ if (jt)
|
|
|
6053
6053
|
}
|
|
6054
6054
|
var wr = function() {
|
|
6055
6055
|
throw new tn();
|
|
6056
|
-
},
|
|
6056
|
+
}, Lf = jt ? function() {
|
|
6057
6057
|
try {
|
|
6058
6058
|
return arguments.callee, wr;
|
|
6059
6059
|
} catch {
|
|
@@ -6063,9 +6063,9 @@ var wr = function() {
|
|
|
6063
6063
|
return wr;
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
|
-
}() : wr, Kt =
|
|
6066
|
+
}() : wr, Kt = _f(), jf = Ef(), Ze = Object.getPrototypeOf || (jf ? function(e) {
|
|
6067
6067
|
return e.__proto__;
|
|
6068
|
-
} : null), Qt = {},
|
|
6068
|
+
} : null), Qt = {}, Bf = typeof Uint8Array > "u" || !Ze ? Ve : Ze(Uint8Array), Bt = {
|
|
6069
6069
|
"%AggregateError%": typeof AggregateError > "u" ? Ve : AggregateError,
|
|
6070
6070
|
"%Array%": Array,
|
|
6071
6071
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ve : ArrayBuffer,
|
|
@@ -6122,8 +6122,8 @@ var wr = function() {
|
|
|
6122
6122
|
"%StringIteratorPrototype%": Kt && Ze ? Ze(""[Symbol.iterator]()) : Ve,
|
|
6123
6123
|
"%Symbol%": Kt ? Symbol : Ve,
|
|
6124
6124
|
"%SyntaxError%": sn,
|
|
6125
|
-
"%ThrowTypeError%":
|
|
6126
|
-
"%TypedArray%":
|
|
6125
|
+
"%ThrowTypeError%": Lf,
|
|
6126
|
+
"%TypedArray%": Bf,
|
|
6127
6127
|
"%TypeError%": tn,
|
|
6128
6128
|
"%Uint8Array%": typeof Uint8Array > "u" ? Ve : Uint8Array,
|
|
6129
6129
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ve : Uint8ClampedArray,
|
|
@@ -6138,10 +6138,10 @@ if (Ze)
|
|
|
6138
6138
|
try {
|
|
6139
6139
|
null.error;
|
|
6140
6140
|
} catch (e) {
|
|
6141
|
-
var
|
|
6142
|
-
Bt["%Error.prototype%"] =
|
|
6141
|
+
var Hf = Ze(Ze(e));
|
|
6142
|
+
Bt["%Error.prototype%"] = Hf;
|
|
6143
6143
|
}
|
|
6144
|
-
var
|
|
6144
|
+
var Uf = function e(t) {
|
|
6145
6145
|
var n;
|
|
6146
6146
|
if (t === "%AsyncFunction%")
|
|
6147
6147
|
n = vr("async function () {}");
|
|
@@ -6209,21 +6209,21 @@ var Hf = function e(t) {
|
|
|
6209
6209
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
6210
6210
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
6211
6211
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
6212
|
-
}, _n = ks, Kn =
|
|
6212
|
+
}, _n = ks, Kn = Mf, Wf = _n.call(Function.call, Array.prototype.concat), Gf = _n.call(Function.apply, Array.prototype.splice), ii = _n.call(Function.call, String.prototype.replace), qn = _n.call(Function.call, String.prototype.slice), Kf = _n.call(Function.call, RegExp.prototype.exec), qf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yf = /\\(\\)?/g, zf = function(t) {
|
|
6213
6213
|
var n = qn(t, 0, 1), r = qn(t, -1);
|
|
6214
6214
|
if (n === "%" && r !== "%")
|
|
6215
6215
|
throw new sn("invalid intrinsic syntax, expected closing `%`");
|
|
6216
6216
|
if (r === "%" && n !== "%")
|
|
6217
6217
|
throw new sn("invalid intrinsic syntax, expected opening `%`");
|
|
6218
6218
|
var o = [];
|
|
6219
|
-
return ii(t,
|
|
6220
|
-
o[o.length] = l ? ii(c,
|
|
6219
|
+
return ii(t, qf, function(s, a, l, c) {
|
|
6220
|
+
o[o.length] = l ? ii(c, Yf, "$1") : a || s;
|
|
6221
6221
|
}), o;
|
|
6222
|
-
},
|
|
6222
|
+
}, Jf = function(t, n) {
|
|
6223
6223
|
var r = t, o;
|
|
6224
6224
|
if (Kn(oi, r) && (o = oi[r], r = "%" + o[0] + "%"), Kn(Bt, r)) {
|
|
6225
6225
|
var s = Bt[r];
|
|
6226
|
-
if (s === Qt && (s =
|
|
6226
|
+
if (s === Qt && (s = Uf(r)), typeof s > "u" && !n)
|
|
6227
6227
|
throw new tn("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
6228
6228
|
return {
|
|
6229
6229
|
alias: o,
|
|
@@ -6237,10 +6237,10 @@ var Hf = function e(t) {
|
|
|
6237
6237
|
throw new tn("intrinsic name must be a non-empty string");
|
|
6238
6238
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
6239
6239
|
throw new tn('"allowMissing" argument must be a boolean');
|
|
6240
|
-
if (
|
|
6240
|
+
if (Kf(/^%?[^%]*%?$/, t) === null)
|
|
6241
6241
|
throw new sn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
6242
|
-
var r =
|
|
6243
|
-
u && (o = u[0],
|
|
6242
|
+
var r = zf(t), o = r.length > 0 ? r[0] : "", s = Jf("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
|
|
6243
|
+
u && (o = u[0], Gf(r, Wf([0, 1], u)));
|
|
6244
6244
|
for (var f = 1, d = !0; f < r.length; f += 1) {
|
|
6245
6245
|
var p = r[f], h = qn(p, 0, 1), m = qn(p, -1);
|
|
6246
6246
|
if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
|
|
@@ -6288,18 +6288,18 @@ var Hf = function e(t) {
|
|
|
6288
6288
|
};
|
|
6289
6289
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
6290
6290
|
})(Ns);
|
|
6291
|
-
var ho = Ns.exports, Ms = Vn, Ls = ho,
|
|
6291
|
+
var ho = Ns.exports, Ms = Vn, Ls = ho, Qf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
|
|
6292
6292
|
var r = Ms(t, !!n);
|
|
6293
|
-
return typeof r == "function" &&
|
|
6294
|
-
},
|
|
6295
|
-
return
|
|
6293
|
+
return typeof r == "function" && Qf(t, ".prototype.") > -1 ? Ls(r) : r;
|
|
6294
|
+
}, Xf = po(), Zf = js, Vr = Zf("Object.prototype.toString"), sr = function(t) {
|
|
6295
|
+
return Xf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Vr(t) === "[object Arguments]";
|
|
6296
6296
|
}, Bs = function(t) {
|
|
6297
6297
|
return sr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Vr(t) !== "[object Array]" && Vr(t.callee) === "[object Function]";
|
|
6298
|
-
},
|
|
6298
|
+
}, em = function() {
|
|
6299
6299
|
return sr(arguments);
|
|
6300
6300
|
}();
|
|
6301
6301
|
sr.isLegacyArguments = Bs;
|
|
6302
|
-
var
|
|
6302
|
+
var tm = em ? sr : Bs, nm = Vn, Er = nm("%Object.defineProperty%", !0), Dr = function() {
|
|
6303
6303
|
if (Er)
|
|
6304
6304
|
try {
|
|
6305
6305
|
return Er({}, "a", { value: 1 }), !0;
|
|
@@ -6318,7 +6318,7 @@ Dr.hasArrayLengthDefineBug = function() {
|
|
|
6318
6318
|
}
|
|
6319
6319
|
};
|
|
6320
6320
|
var go = Dr, br, si;
|
|
6321
|
-
function
|
|
6321
|
+
function rm() {
|
|
6322
6322
|
if (si)
|
|
6323
6323
|
return br;
|
|
6324
6324
|
si = 1;
|
|
@@ -6331,7 +6331,7 @@ function nm() {
|
|
|
6331
6331
|
}
|
|
6332
6332
|
return br = t, br;
|
|
6333
6333
|
}
|
|
6334
|
-
var
|
|
6334
|
+
var om = go(), yo = Vn, ai = om && yo("%Object.defineProperty%", !0), im = yo("%SyntaxError%"), qt = yo("%TypeError%"), li = rm(), Hs = function(t, n, r) {
|
|
6335
6335
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
6336
6336
|
throw new qt("`obj` must be an object or a function`");
|
|
6337
6337
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -6355,45 +6355,45 @@ var rm = go(), yo = Vn, ai = rm && yo("%Object.defineProperty%", !0), om = yo("%
|
|
|
6355
6355
|
else if (l || !o && !s && !a)
|
|
6356
6356
|
t[n] = r;
|
|
6357
6357
|
else
|
|
6358
|
-
throw new
|
|
6359
|
-
},
|
|
6360
|
-
return typeof e == "function" &&
|
|
6361
|
-
}, Us = go(),
|
|
6358
|
+
throw new im("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
6359
|
+
}, sm = Ds, am = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", lm = Object.prototype.toString, cm = Array.prototype.concat, ci = Hs, dm = function(e) {
|
|
6360
|
+
return typeof e == "function" && lm.call(e) === "[object Function]";
|
|
6361
|
+
}, Us = go(), um = function(e, t, n, r) {
|
|
6362
6362
|
if (t in e) {
|
|
6363
6363
|
if (r === !0) {
|
|
6364
6364
|
if (e[t] === n)
|
|
6365
6365
|
return;
|
|
6366
|
-
} else if (!
|
|
6366
|
+
} else if (!dm(r) || !r())
|
|
6367
6367
|
return;
|
|
6368
6368
|
}
|
|
6369
6369
|
Us ? ci(e, t, n, !0) : ci(e, t, n);
|
|
6370
6370
|
}, Ws = function(e, t) {
|
|
6371
|
-
var n = arguments.length > 2 ? arguments[2] : {}, r =
|
|
6372
|
-
|
|
6371
|
+
var n = arguments.length > 2 ? arguments[2] : {}, r = sm(t);
|
|
6372
|
+
am && (r = cm.call(r, Object.getOwnPropertySymbols(t)));
|
|
6373
6373
|
for (var o = 0; o < r.length; o += 1)
|
|
6374
|
-
|
|
6374
|
+
um(e, r[o], t[r[o]], n[r[o]]);
|
|
6375
6375
|
};
|
|
6376
6376
|
Ws.supportsDescriptors = !!Us;
|
|
6377
6377
|
var En = Ws, di = function(e) {
|
|
6378
6378
|
return e !== e;
|
|
6379
6379
|
}, Gs = function(t, n) {
|
|
6380
6380
|
return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || di(t) && di(n));
|
|
6381
|
-
},
|
|
6382
|
-
return typeof Object.is == "function" ? Object.is :
|
|
6383
|
-
},
|
|
6384
|
-
var t =
|
|
6385
|
-
return
|
|
6381
|
+
}, fm = Gs, Ks = function() {
|
|
6382
|
+
return typeof Object.is == "function" ? Object.is : fm;
|
|
6383
|
+
}, mm = Ks, pm = En, hm = function() {
|
|
6384
|
+
var t = mm();
|
|
6385
|
+
return pm(Object, { is: t }, {
|
|
6386
6386
|
is: function() {
|
|
6387
6387
|
return Object.is !== t;
|
|
6388
6388
|
}
|
|
6389
6389
|
}), t;
|
|
6390
|
-
},
|
|
6391
|
-
|
|
6390
|
+
}, gm = En, ym = ho, vm = Gs, qs = Ks, wm = hm, Ys = ym(qs(), Object);
|
|
6391
|
+
gm(Ys, {
|
|
6392
6392
|
getPolyfill: qs,
|
|
6393
|
-
implementation:
|
|
6394
|
-
shim:
|
|
6393
|
+
implementation: vm,
|
|
6394
|
+
shim: wm
|
|
6395
6395
|
});
|
|
6396
|
-
var
|
|
6396
|
+
var bm = Ys, Pr = js, zs = po(), Js, Qs, kr, $r;
|
|
6397
6397
|
if (zs) {
|
|
6398
6398
|
Js = Pr("Object.prototype.hasOwnProperty"), Qs = Pr("RegExp.prototype.exec"), kr = {};
|
|
6399
6399
|
var Sr = function() {
|
|
@@ -6404,10 +6404,10 @@ if (zs) {
|
|
|
6404
6404
|
valueOf: Sr
|
|
6405
6405
|
}, typeof Symbol.toPrimitive == "symbol" && ($r[Symbol.toPrimitive] = Sr);
|
|
6406
6406
|
}
|
|
6407
|
-
var
|
|
6407
|
+
var Sm = Pr("Object.prototype.toString"), Cm = Object.getOwnPropertyDescriptor, xm = "[object RegExp]", Im = zs ? function(t) {
|
|
6408
6408
|
if (!t || typeof t != "object")
|
|
6409
6409
|
return !1;
|
|
6410
|
-
var n =
|
|
6410
|
+
var n = Cm(t, "lastIndex"), r = n && Js(n, "value");
|
|
6411
6411
|
if (!r)
|
|
6412
6412
|
return !1;
|
|
6413
6413
|
try {
|
|
@@ -6416,7 +6416,7 @@ var bm = Pr("Object.prototype.toString"), Sm = Object.getOwnPropertyDescriptor,
|
|
|
6416
6416
|
return o === kr;
|
|
6417
6417
|
}
|
|
6418
6418
|
} : function(t) {
|
|
6419
|
-
return !t || typeof t != "object" && typeof t != "function" ? !1 :
|
|
6419
|
+
return !t || typeof t != "object" && typeof t != "function" ? !1 : Sm(t) === xm;
|
|
6420
6420
|
}, On = function() {
|
|
6421
6421
|
return typeof (function() {
|
|
6422
6422
|
}).name == "string";
|
|
@@ -6434,24 +6434,24 @@ On.functionsHaveConfigurableNames = function() {
|
|
|
6434
6434
|
}, "name");
|
|
6435
6435
|
return !!t && !!t.configurable;
|
|
6436
6436
|
};
|
|
6437
|
-
var
|
|
6437
|
+
var Tm = Function.prototype.bind;
|
|
6438
6438
|
On.boundFunctionsHaveNames = function() {
|
|
6439
|
-
return On() && typeof
|
|
6439
|
+
return On() && typeof Tm == "function" && (function() {
|
|
6440
6440
|
}).bind().name !== "";
|
|
6441
6441
|
};
|
|
6442
|
-
var
|
|
6442
|
+
var Om = On, ui = Hs, Fm = go(), Am = Om.functionsHaveConfigurableNames(), Rm = TypeError, _m = function(t, n) {
|
|
6443
6443
|
if (typeof t != "function")
|
|
6444
|
-
throw new
|
|
6444
|
+
throw new Rm("`fn` is not a function");
|
|
6445
6445
|
var r = arguments.length > 2 && !!arguments[2];
|
|
6446
|
-
return (!r ||
|
|
6447
|
-
},
|
|
6448
|
-
if (this != null && this !==
|
|
6449
|
-
throw new
|
|
6446
|
+
return (!r || Am) && (Fm ? ui(t, "name", n, !0, !0) : ui(t, "name", n)), t;
|
|
6447
|
+
}, Vm = _m, Em = Object, Dm = TypeError, Xs = Vm(function() {
|
|
6448
|
+
if (this != null && this !== Em(this))
|
|
6449
|
+
throw new Dm("RegExp.prototype.flags getter called on non-object");
|
|
6450
6450
|
var t = "";
|
|
6451
6451
|
return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
|
|
6452
|
-
}, "get flags", !0),
|
|
6453
|
-
if (
|
|
6454
|
-
var t =
|
|
6452
|
+
}, "get flags", !0), Pm = Xs, km = En.supportsDescriptors, $m = Object.getOwnPropertyDescriptor, Zs = function() {
|
|
6453
|
+
if (km && /a/mig.flags === "gim") {
|
|
6454
|
+
var t = $m(RegExp.prototype, "flags");
|
|
6455
6455
|
if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
|
|
6456
6456
|
var n = "", r = {};
|
|
6457
6457
|
if (Object.defineProperty(r, "hasIndices", {
|
|
@@ -6466,34 +6466,34 @@ var Tm = On, ui = Hs, Om = go(), Fm = Tm.functionsHaveConfigurableNames(), Am =
|
|
|
6466
6466
|
return t.get;
|
|
6467
6467
|
}
|
|
6468
6468
|
}
|
|
6469
|
-
return
|
|
6470
|
-
},
|
|
6471
|
-
if (
|
|
6472
|
-
throw new
|
|
6473
|
-
var t =
|
|
6474
|
-
return (!r || r.get !== t) &&
|
|
6469
|
+
return Pm;
|
|
6470
|
+
}, Nm = En.supportsDescriptors, Mm = Zs, Lm = Object.getOwnPropertyDescriptor, jm = Object.defineProperty, Bm = TypeError, fi = Object.getPrototypeOf, Hm = /a/, Um = function() {
|
|
6471
|
+
if (!Nm || !fi)
|
|
6472
|
+
throw new Bm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
6473
|
+
var t = Mm(), n = fi(Hm), r = Lm(n, "flags");
|
|
6474
|
+
return (!r || r.get !== t) && jm(n, "flags", {
|
|
6475
6475
|
configurable: !0,
|
|
6476
6476
|
enumerable: !1,
|
|
6477
6477
|
get: t
|
|
6478
6478
|
}), t;
|
|
6479
|
-
},
|
|
6480
|
-
|
|
6479
|
+
}, Wm = En, Gm = ho, Km = Xs, ea = Zs, qm = Um, ta = Gm(ea());
|
|
6480
|
+
Wm(ta, {
|
|
6481
6481
|
getPolyfill: ea,
|
|
6482
|
-
implementation:
|
|
6483
|
-
shim:
|
|
6482
|
+
implementation: Km,
|
|
6483
|
+
shim: qm
|
|
6484
6484
|
});
|
|
6485
|
-
var
|
|
6485
|
+
var Ym = ta, zm = Date.prototype.getDay, Jm = function(t) {
|
|
6486
6486
|
try {
|
|
6487
|
-
return
|
|
6487
|
+
return zm.call(t), !0;
|
|
6488
6488
|
} catch {
|
|
6489
6489
|
return !1;
|
|
6490
6490
|
}
|
|
6491
|
-
},
|
|
6492
|
-
return typeof t != "object" || t === null ? !1 :
|
|
6493
|
-
}, mi = Ds, pi =
|
|
6491
|
+
}, Qm = Object.prototype.toString, Xm = "[object Date]", Zm = po(), ep = function(t) {
|
|
6492
|
+
return typeof t != "object" || t === null ? !1 : Zm ? Jm(t) : Qm.call(t) === Xm;
|
|
6493
|
+
}, mi = Ds, pi = tm, hi = bm, gi = Im, yi = Ym, vi = ep, wi = Date.prototype.getTime;
|
|
6494
6494
|
function na(e, t, n) {
|
|
6495
6495
|
var r = n || {};
|
|
6496
|
-
return (r.strict ? hi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? hi(e, t) : e == t :
|
|
6496
|
+
return (r.strict ? hi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? hi(e, t) : e == t : tp(e, t, r);
|
|
6497
6497
|
}
|
|
6498
6498
|
function bi(e) {
|
|
6499
6499
|
return e == null;
|
|
@@ -6501,7 +6501,7 @@ function bi(e) {
|
|
|
6501
6501
|
function Si(e) {
|
|
6502
6502
|
return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
|
|
6503
6503
|
}
|
|
6504
|
-
function
|
|
6504
|
+
function tp(e, t, n) {
|
|
6505
6505
|
var r, o;
|
|
6506
6506
|
if (typeof e != typeof t || bi(e) || bi(t) || e.prototype !== t.prototype || pi(e) !== pi(t))
|
|
6507
6507
|
return !1;
|
|
@@ -6540,8 +6540,8 @@ function ep(e, t, n) {
|
|
|
6540
6540
|
return !1;
|
|
6541
6541
|
return !0;
|
|
6542
6542
|
}
|
|
6543
|
-
var
|
|
6544
|
-
const ra = /* @__PURE__ */ Vs(
|
|
6543
|
+
var np = na;
|
|
6544
|
+
const ra = /* @__PURE__ */ Vs(np), rp = yt(
|
|
6545
6545
|
(e, t) => {
|
|
6546
6546
|
const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = pt.useForm();
|
|
6547
6547
|
ue(() => {
|
|
@@ -6575,7 +6575,7 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6575
6575
|
})(), u = N(() => {
|
|
6576
6576
|
const p = a.getFieldsValue();
|
|
6577
6577
|
s == null || s(p);
|
|
6578
|
-
}, [a, s]), f =
|
|
6578
|
+
}, [a, s]), f = If(u, 100);
|
|
6579
6579
|
return /* @__PURE__ */ E(Fn, { children: [
|
|
6580
6580
|
/* @__PURE__ */ i(
|
|
6581
6581
|
pt,
|
|
@@ -6593,7 +6593,7 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6593
6593
|
/* @__PURE__ */ i("div", { className: "pb-2" })
|
|
6594
6594
|
] });
|
|
6595
6595
|
}
|
|
6596
|
-
),
|
|
6596
|
+
), op = (e) => {
|
|
6597
6597
|
var I;
|
|
6598
6598
|
const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: s, searchValues: a } = e, l = J(), { t: c } = he(), [u, f] = x(), d = J(null), [p, h] = x();
|
|
6599
6599
|
ue(() => {
|
|
@@ -6634,13 +6634,13 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6634
6634
|
(C = d.current) == null || C.resetFields(), (b = d == null ? void 0 : d.current) == null || b.setFieldsValue({}), h([]);
|
|
6635
6635
|
}, []), w = n ? p || Nn(a, (I = l.current) == null ? void 0 : I._advancedSearchContainer) : [];
|
|
6636
6636
|
return /* @__PURE__ */ i(
|
|
6637
|
-
|
|
6637
|
+
of,
|
|
6638
6638
|
{
|
|
6639
6639
|
title: `${c("filter")} (${(w == null ? void 0 : w.length) || 0})`,
|
|
6640
6640
|
isOpen: n,
|
|
6641
6641
|
onClose: r,
|
|
6642
6642
|
footer: /* @__PURE__ */ i(
|
|
6643
|
-
|
|
6643
|
+
ip,
|
|
6644
6644
|
{
|
|
6645
6645
|
onClear: y,
|
|
6646
6646
|
onSubmit: v,
|
|
@@ -6648,7 +6648,7 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6648
6648
|
}
|
|
6649
6649
|
),
|
|
6650
6650
|
children: n && /* @__PURE__ */ i(
|
|
6651
|
-
|
|
6651
|
+
rp,
|
|
6652
6652
|
{
|
|
6653
6653
|
ref: d,
|
|
6654
6654
|
searchFields: u,
|
|
@@ -6659,7 +6659,7 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6659
6659
|
)
|
|
6660
6660
|
}
|
|
6661
6661
|
);
|
|
6662
|
-
},
|
|
6662
|
+
}, ip = ({
|
|
6663
6663
|
onClear: e,
|
|
6664
6664
|
onSubmit: t,
|
|
6665
6665
|
searchParams: n
|
|
@@ -6705,7 +6705,7 @@ const ra = /* @__PURE__ */ Vs(tp), np = yt(
|
|
|
6705
6705
|
const r = e[n];
|
|
6706
6706
|
return r !== "" && r !== void 0 && (t[n] = r), t;
|
|
6707
6707
|
}, {});
|
|
6708
|
-
function
|
|
6708
|
+
function sp(e) {
|
|
6709
6709
|
const {
|
|
6710
6710
|
onAdvancedFilterToggle: t,
|
|
6711
6711
|
advancedFilter: n,
|
|
@@ -6715,7 +6715,7 @@ function ip(e) {
|
|
|
6715
6715
|
} = e, { t: a } = he();
|
|
6716
6716
|
return /* @__PURE__ */ E(ke, { children: [
|
|
6717
6717
|
!s && /* @__PURE__ */ i(we, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ E("a", { className: "text-xs", onClick: t, children: [
|
|
6718
|
-
n ? /* @__PURE__ */ i(
|
|
6718
|
+
n ? /* @__PURE__ */ i(Za, { className: "pr-1" }) : /* @__PURE__ */ i(zn, { className: "pr-1" }),
|
|
6719
6719
|
a(n ? "simple_search" : "advanced_search")
|
|
6720
6720
|
] }) }),
|
|
6721
6721
|
/* @__PURE__ */ E(we, { span: s ? 24 : 12, className: "text-right pb-2", children: [
|
|
@@ -6734,7 +6734,7 @@ function ip(e) {
|
|
|
6734
6734
|
] })
|
|
6735
6735
|
] });
|
|
6736
6736
|
}
|
|
6737
|
-
function
|
|
6737
|
+
function ap(e) {
|
|
6738
6738
|
const { onLimitChange: t } = e, { t: n } = he(), r = new Tr({ name: "limit" }), o = new Tr({ name: "offset" });
|
|
6739
6739
|
return /* @__PURE__ */ E("div", { className: "pl-2 pt-2", children: [
|
|
6740
6740
|
/* @__PURE__ */ i(ke, { children: n("parameters") }, "count_params"),
|
|
@@ -6754,7 +6754,7 @@ function sp(e) {
|
|
|
6754
6754
|
] })
|
|
6755
6755
|
] });
|
|
6756
6756
|
}
|
|
6757
|
-
const { useToken:
|
|
6757
|
+
const { useToken: lp } = Ge;
|
|
6758
6758
|
function vo(e) {
|
|
6759
6759
|
const {
|
|
6760
6760
|
fields: t,
|
|
@@ -6770,7 +6770,7 @@ function vo(e) {
|
|
|
6770
6770
|
searchError: d,
|
|
6771
6771
|
searchValues: p,
|
|
6772
6772
|
showLimitOptions: h = !0
|
|
6773
|
-
} = e, [m, v] = x(), [g, y] = x(), [w, I] = x(!1), C = J(), { token: b } =
|
|
6773
|
+
} = e, [m, v] = x(), [g, y] = x(), [w, I] = x(!1), C = J(), { token: b } = lp(), [O] = pt.useForm();
|
|
6774
6774
|
ue(() => {
|
|
6775
6775
|
O.setFieldsValue(p);
|
|
6776
6776
|
}, [p]);
|
|
@@ -6823,9 +6823,9 @@ function vo(e) {
|
|
|
6823
6823
|
initialValues: { offset: a, limit: l },
|
|
6824
6824
|
children: [
|
|
6825
6825
|
R,
|
|
6826
|
-
w && h && /* @__PURE__ */ i(
|
|
6826
|
+
w && h && /* @__PURE__ */ i(ap, { onLimitChange: c }),
|
|
6827
6827
|
/* @__PURE__ */ i(
|
|
6828
|
-
|
|
6828
|
+
sp,
|
|
6829
6829
|
{
|
|
6830
6830
|
hideAdvancedFilter: (V() || (g == null ? void 0 : g._rows.length) === 0) && !h,
|
|
6831
6831
|
advancedFilter: w,
|
|
@@ -6842,7 +6842,7 @@ function vo(e) {
|
|
|
6842
6842
|
}
|
|
6843
6843
|
),
|
|
6844
6844
|
d && /* @__PURE__ */ i(
|
|
6845
|
-
|
|
6845
|
+
rt,
|
|
6846
6846
|
{
|
|
6847
6847
|
className: "mt-10",
|
|
6848
6848
|
message: d,
|
|
@@ -6855,10 +6855,10 @@ function vo(e) {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
);
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function cp({
|
|
6859
6859
|
useLocalState: e = !1
|
|
6860
6860
|
}) {
|
|
6861
|
-
const t =
|
|
6861
|
+
const t = wd() && !e, n = lo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [v, g] = x(), [y, w] = x([]), [I, C] = x(), [b, O] = x(0);
|
|
6862
6862
|
return t ? {
|
|
6863
6863
|
treeIsLoading: n.treeIsLoading ?? !1,
|
|
6864
6864
|
setTreeIsLoading: n.setTreeIsLoading ?? (() => {
|
|
@@ -6913,8 +6913,8 @@ function lp({
|
|
|
6913
6913
|
setTotalItems: O
|
|
6914
6914
|
};
|
|
6915
6915
|
}
|
|
6916
|
-
const
|
|
6917
|
-
function
|
|
6916
|
+
const dp = 10, up = 200;
|
|
6917
|
+
function fp(e, t) {
|
|
6918
6918
|
const {
|
|
6919
6919
|
model: n,
|
|
6920
6920
|
formView: r,
|
|
@@ -6927,9 +6927,9 @@ function up(e, t) {
|
|
|
6927
6927
|
onChangeSelectedRowKeys: f,
|
|
6928
6928
|
nameSearch: d,
|
|
6929
6929
|
filterType: p = "side"
|
|
6930
|
-
} = e, h = J({}), m = J(), v = J(null), g = J([]), y = bs(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = J(null), R =
|
|
6930
|
+
} = e, h = J({}), m = J(), v = J(null), g = J([]), y = bs(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = J(null), R = Ou({
|
|
6931
6931
|
elementRef: T,
|
|
6932
|
-
offset:
|
|
6932
|
+
offset: dp
|
|
6933
6933
|
}), { treeView: S, formView: V, loading: A } = Ss({
|
|
6934
6934
|
model: n,
|
|
6935
6935
|
formViewProps: r,
|
|
@@ -6953,7 +6953,7 @@ function up(e, t) {
|
|
|
6953
6953
|
results: B,
|
|
6954
6954
|
setSearchQuery: G,
|
|
6955
6955
|
setTotalItems: j
|
|
6956
|
-
} =
|
|
6956
|
+
} = cp({ useLocalState: !c }), ee = d || H, le = J(ee);
|
|
6957
6957
|
ue(() => {
|
|
6958
6958
|
Ie();
|
|
6959
6959
|
}, []), ue(() => {
|
|
@@ -6972,7 +6972,7 @@ function up(e, t) {
|
|
|
6972
6972
|
},
|
|
6973
6973
|
u
|
|
6974
6974
|
);
|
|
6975
|
-
}, [K, u]), ve = me(() =>
|
|
6975
|
+
}, [K, u]), ve = me(() => _u({
|
|
6976
6976
|
treeViewId: S == null ? void 0 : S.view_id,
|
|
6977
6977
|
model: n
|
|
6978
6978
|
}), [n, S == null ? void 0 : S.view_id]), {
|
|
@@ -7126,7 +7126,7 @@ function up(e, t) {
|
|
|
7126
7126
|
);
|
|
7127
7127
|
k == null || k(tt.map((Qe) => ({ id: Qe })));
|
|
7128
7128
|
};
|
|
7129
|
-
ie ? C && C >
|
|
7129
|
+
ie ? C && C > up ? At({
|
|
7130
7130
|
confirmMessage: O("confirmSelectAllRegisters").replace(
|
|
7131
7131
|
"{totalRecords}",
|
|
7132
7132
|
C.toString()
|
|
@@ -7306,7 +7306,7 @@ function up(e, t) {
|
|
|
7306
7306
|
}
|
|
7307
7307
|
),
|
|
7308
7308
|
p === "side" && /* @__PURE__ */ i(
|
|
7309
|
-
|
|
7309
|
+
op,
|
|
7310
7310
|
{
|
|
7311
7311
|
...Gt,
|
|
7312
7312
|
onClose: Et,
|
|
@@ -7314,7 +7314,7 @@ function up(e, t) {
|
|
|
7314
7314
|
}
|
|
7315
7315
|
),
|
|
7316
7316
|
/* @__PURE__ */ i(
|
|
7317
|
-
|
|
7317
|
+
Vu,
|
|
7318
7318
|
{
|
|
7319
7319
|
selectedRowKeys: Y,
|
|
7320
7320
|
allRowSelectedMode: !1,
|
|
@@ -7324,12 +7324,12 @@ function up(e, t) {
|
|
|
7324
7324
|
/* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(We, {}) : z })
|
|
7325
7325
|
] });
|
|
7326
7326
|
}
|
|
7327
|
-
const oa = yt(
|
|
7327
|
+
const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
|
|
7328
7328
|
const r = document.createElement("canvas").getContext("2d");
|
|
7329
7329
|
r.font = t;
|
|
7330
7330
|
const o = r.measureText(e);
|
|
7331
7331
|
return Math.round((o.width + 80) * 1.5);
|
|
7332
|
-
},
|
|
7332
|
+
}, mp = (e, t, n = 500) => {
|
|
7333
7333
|
if (e.length === 0)
|
|
7334
7334
|
return { columns: e };
|
|
7335
7335
|
const r = e.map(
|
|
@@ -7350,11 +7350,11 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7350
7350
|
source: t,
|
|
7351
7351
|
tableWidth: o
|
|
7352
7352
|
};
|
|
7353
|
-
},
|
|
7353
|
+
}, pp = dn.div`
|
|
7354
7354
|
display: flex;
|
|
7355
7355
|
align-items: center;
|
|
7356
7356
|
justify-content: center;
|
|
7357
|
-
`,
|
|
7357
|
+
`, hp = ({
|
|
7358
7358
|
numberOfVisibleSelectedRows: e,
|
|
7359
7359
|
totalRecords: t,
|
|
7360
7360
|
numberOfTotalRows: n,
|
|
@@ -7375,7 +7375,7 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7375
7375
|
"{numberOfSelectedRows}",
|
|
7376
7376
|
e.toString()
|
|
7377
7377
|
) + " ",
|
|
7378
|
-
s ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
|
|
7378
|
+
s ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(Ml, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
|
|
7379
7379
|
"{totalRecords}",
|
|
7380
7380
|
t.toString()
|
|
7381
7381
|
) })
|
|
@@ -7383,7 +7383,7 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7383
7383
|
"{totalRecords}",
|
|
7384
7384
|
o.toString()
|
|
7385
7385
|
) + " " });
|
|
7386
|
-
return /* @__PURE__ */ i(
|
|
7386
|
+
return /* @__PURE__ */ i(pp, { children: o > n ? d : f });
|
|
7387
7387
|
}, ia = yt(
|
|
7388
7388
|
(e, t) => {
|
|
7389
7389
|
var G;
|
|
@@ -7447,7 +7447,7 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7447
7447
|
).length;
|
|
7448
7448
|
return c ? null : o === void 0 ? /* @__PURE__ */ i(We, { className: "pb-4" }) : /* @__PURE__ */ E(ke, { align: "bottom", className: "pb-4", children: [
|
|
7449
7449
|
/* @__PURE__ */ i(we, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
|
|
7450
|
-
|
|
7450
|
+
Ha,
|
|
7451
7451
|
{
|
|
7452
7452
|
total: o,
|
|
7453
7453
|
pageSize: k.current === 0 ? o : k.current,
|
|
@@ -7457,7 +7457,7 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7457
7457
|
}
|
|
7458
7458
|
) }),
|
|
7459
7459
|
T && /* @__PURE__ */ i(we, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
|
|
7460
|
-
|
|
7460
|
+
hp,
|
|
7461
7461
|
{
|
|
7462
7462
|
numberOfVisibleSelectedRows: j,
|
|
7463
7463
|
numberOfRealSelectedRows: (d == null ? void 0 : d.length) || 0,
|
|
@@ -7492,12 +7492,12 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7492
7492
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ee.join(", ") });
|
|
7493
7493
|
}, [S, d, F]), Z = me(() => {
|
|
7494
7494
|
if (F !== null && D && D.length > 0)
|
|
7495
|
-
return
|
|
7495
|
+
return mp(D, S, 600);
|
|
7496
7496
|
}, [D, S, F]), B = me(() => h && (F != null && F.columns.some((j) => j.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
|
|
7497
7497
|
return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : /* @__PURE__ */ E(Ln, { children: [
|
|
7498
7498
|
H,
|
|
7499
7499
|
/* @__PURE__ */ i(
|
|
7500
|
-
|
|
7500
|
+
El,
|
|
7501
7501
|
{
|
|
7502
7502
|
ref: R,
|
|
7503
7503
|
height: B,
|
|
@@ -7509,7 +7509,7 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7509
7509
|
if (m[j.id])
|
|
7510
7510
|
return { color: m[j.id] };
|
|
7511
7511
|
},
|
|
7512
|
-
onRowStatus:
|
|
7512
|
+
onRowStatus: Fc(v) ? (j) => {
|
|
7513
7513
|
if (v[j.id])
|
|
7514
7514
|
return /* @__PURE__ */ i(Gr, { color: v[j.id] });
|
|
7515
7515
|
} : void 0,
|
|
@@ -7519,8 +7519,8 @@ const oa = yt(up), Ci = (e, t = "14px -apple-system") => {
|
|
|
7519
7519
|
sorter: y,
|
|
7520
7520
|
readonly: O,
|
|
7521
7521
|
expandableOpts: w ? {
|
|
7522
|
-
expandIcon:
|
|
7523
|
-
collapseIcon:
|
|
7522
|
+
expandIcon: el,
|
|
7523
|
+
collapseIcon: tl,
|
|
7524
7524
|
loadingIcon: wt,
|
|
7525
7525
|
onFetchChildrenForRecord: w,
|
|
7526
7526
|
childField: I
|
|
@@ -7758,7 +7758,7 @@ const sa = (e) => {
|
|
|
7758
7758
|
getAllIds: Ie
|
|
7759
7759
|
};
|
|
7760
7760
|
};
|
|
7761
|
-
function
|
|
7761
|
+
function gp(e, t) {
|
|
7762
7762
|
var Et;
|
|
7763
7763
|
const {
|
|
7764
7764
|
model: n,
|
|
@@ -8010,9 +8010,9 @@ function hp(e, t) {
|
|
|
8010
8010
|
l,
|
|
8011
8011
|
b
|
|
8012
8012
|
]), Gt = S || Ae;
|
|
8013
|
-
return Gt ? /* @__PURE__ */ i(
|
|
8013
|
+
return Gt ? /* @__PURE__ */ i(rt, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(We, {}) : gt() });
|
|
8014
8014
|
}
|
|
8015
|
-
const aa = yt(
|
|
8015
|
+
const aa = yt(gp), wo = ({
|
|
8016
8016
|
visible: e,
|
|
8017
8017
|
onCloseModal: t,
|
|
8018
8018
|
onSelectValues: n,
|
|
@@ -8135,7 +8135,7 @@ const aa = yt(hp), wo = ({
|
|
|
8135
8135
|
}
|
|
8136
8136
|
)
|
|
8137
8137
|
] });
|
|
8138
|
-
}, { defaultAlgorithm:
|
|
8138
|
+
}, { defaultAlgorithm: yp, defaultSeed: vp } = Ge, la = yp(vp), wp = (e) => {
|
|
8139
8139
|
const { ooui: t } = e, { required: n } = t;
|
|
8140
8140
|
return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
|
|
8141
8141
|
if (!s)
|
|
@@ -8236,7 +8236,7 @@ const aa = yt(hp), wo = ({
|
|
|
8236
8236
|
}
|
|
8237
8237
|
return /* @__PURE__ */ E(ke, { gutter: 8, wrap: !1, children: [
|
|
8238
8238
|
/* @__PURE__ */ i(we, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
|
|
8239
|
-
o && !a ?
|
|
8239
|
+
o && !a ? bp : lt,
|
|
8240
8240
|
{
|
|
8241
8241
|
type: "text",
|
|
8242
8242
|
value: C,
|
|
@@ -8317,13 +8317,13 @@ const aa = yt(hp), wo = ({
|
|
|
8317
8317
|
}
|
|
8318
8318
|
)
|
|
8319
8319
|
] });
|
|
8320
|
-
},
|
|
8320
|
+
}, bp = dn(lt)`
|
|
8321
8321
|
.ant-input {
|
|
8322
8322
|
background-color: ${la.colorPrimaryBg};
|
|
8323
8323
|
}
|
|
8324
8324
|
`, yn = mt.createContext(
|
|
8325
8325
|
null
|
|
8326
|
-
),
|
|
8326
|
+
), Sp = ({
|
|
8327
8327
|
children: e,
|
|
8328
8328
|
initialView: t
|
|
8329
8329
|
}) => {
|
|
@@ -8342,7 +8342,7 @@ const aa = yt(hp), wo = ({
|
|
|
8342
8342
|
children: e
|
|
8343
8343
|
}
|
|
8344
8344
|
);
|
|
8345
|
-
},
|
|
8345
|
+
}, Cp = ({
|
|
8346
8346
|
title: e,
|
|
8347
8347
|
content: t,
|
|
8348
8348
|
onOk: n,
|
|
@@ -8389,7 +8389,7 @@ const aa = yt(hp), wo = ({
|
|
|
8389
8389
|
const n = qi(t);
|
|
8390
8390
|
return n.render(
|
|
8391
8391
|
/* @__PURE__ */ i(
|
|
8392
|
-
|
|
8392
|
+
Cp,
|
|
8393
8393
|
{
|
|
8394
8394
|
...e,
|
|
8395
8395
|
onOk: async () => {
|
|
@@ -8432,7 +8432,7 @@ const aa = yt(hp), wo = ({
|
|
|
8432
8432
|
onOk: t,
|
|
8433
8433
|
cancelText: e("cancel")
|
|
8434
8434
|
});
|
|
8435
|
-
}, { useToken:
|
|
8435
|
+
}, { useToken: xp } = Ge, ma = (e) => {
|
|
8436
8436
|
const {
|
|
8437
8437
|
title: t,
|
|
8438
8438
|
readOnly: n,
|
|
@@ -8449,7 +8449,7 @@ const aa = yt(hp), wo = ({
|
|
|
8449
8449
|
selectedRowKeys: h,
|
|
8450
8450
|
showCreateButton: m,
|
|
8451
8451
|
showToggleButton: v
|
|
8452
|
-
} = e, { token: g } =
|
|
8452
|
+
} = e, { token: g } = xp();
|
|
8453
8453
|
function y() {
|
|
8454
8454
|
return /* @__PURE__ */ i("div", { className: "inline-block w-3" });
|
|
8455
8455
|
}
|
|
@@ -8468,10 +8468,10 @@ const aa = yt(hp), wo = ({
|
|
|
8468
8468
|
}
|
|
8469
8469
|
function I() {
|
|
8470
8470
|
return /* @__PURE__ */ i(
|
|
8471
|
-
|
|
8471
|
+
nt,
|
|
8472
8472
|
{
|
|
8473
8473
|
tooltip: d ? "Unlink" : "Delete",
|
|
8474
|
-
icon: d ? /* @__PURE__ */ i(
|
|
8474
|
+
icon: d ? /* @__PURE__ */ i(rl, {}) : /* @__PURE__ */ i(Zr, {}),
|
|
8475
8475
|
onClick: a,
|
|
8476
8476
|
disabled: l === 0 || n || s !== "form" && h.length === 0
|
|
8477
8477
|
}
|
|
@@ -8491,7 +8491,7 @@ const aa = yt(hp), wo = ({
|
|
|
8491
8491
|
return /* @__PURE__ */ E(ae, { children: [
|
|
8492
8492
|
y(),
|
|
8493
8493
|
/* @__PURE__ */ i(
|
|
8494
|
-
|
|
8494
|
+
nt,
|
|
8495
8495
|
{
|
|
8496
8496
|
tooltip: "Previous item",
|
|
8497
8497
|
icon: /* @__PURE__ */ i(Bi, {}),
|
|
@@ -8500,7 +8500,7 @@ const aa = yt(hp), wo = ({
|
|
|
8500
8500
|
),
|
|
8501
8501
|
C(),
|
|
8502
8502
|
/* @__PURE__ */ i(
|
|
8503
|
-
|
|
8503
|
+
nt,
|
|
8504
8504
|
{
|
|
8505
8505
|
tooltip: "Next item",
|
|
8506
8506
|
icon: /* @__PURE__ */ i(Hi, {}),
|
|
@@ -8513,7 +8513,7 @@ const aa = yt(hp), wo = ({
|
|
|
8513
8513
|
w(),
|
|
8514
8514
|
/* @__PURE__ */ E("div", { className: "flex-none h-8 pl-2", children: [
|
|
8515
8515
|
s !== "graph" && m && /* @__PURE__ */ i(
|
|
8516
|
-
|
|
8516
|
+
nt,
|
|
8517
8517
|
{
|
|
8518
8518
|
tooltip: "Create new item",
|
|
8519
8519
|
icon: /* @__PURE__ */ i(Zn, {}),
|
|
@@ -8524,7 +8524,7 @@ const aa = yt(hp), wo = ({
|
|
|
8524
8524
|
d && m && /* @__PURE__ */ E(ae, { children: [
|
|
8525
8525
|
y(),
|
|
8526
8526
|
/* @__PURE__ */ i(
|
|
8527
|
-
|
|
8527
|
+
nt,
|
|
8528
8528
|
{
|
|
8529
8529
|
tooltip: "Search existing item",
|
|
8530
8530
|
icon: /* @__PURE__ */ i(Xn, {}),
|
|
@@ -8538,28 +8538,28 @@ const aa = yt(hp), wo = ({
|
|
|
8538
8538
|
s === "form" && b(),
|
|
8539
8539
|
y(),
|
|
8540
8540
|
v && /* @__PURE__ */ i(
|
|
8541
|
-
|
|
8541
|
+
nt,
|
|
8542
8542
|
{
|
|
8543
8543
|
tooltip: "Toggle view mode",
|
|
8544
|
-
icon: /* @__PURE__ */ i(
|
|
8544
|
+
icon: /* @__PURE__ */ i(nl, {}),
|
|
8545
8545
|
onClick: o
|
|
8546
8546
|
}
|
|
8547
8547
|
)
|
|
8548
8548
|
] })
|
|
8549
8549
|
] });
|
|
8550
|
-
},
|
|
8550
|
+
}, Ip = {
|
|
8551
8551
|
form: ki,
|
|
8552
8552
|
tree: Vi,
|
|
8553
8553
|
graph: un
|
|
8554
8554
|
};
|
|
8555
|
-
function
|
|
8555
|
+
function Tp(e) {
|
|
8556
8556
|
const t = e.map((r) => r.id);
|
|
8557
8557
|
return e.filter((r, o) => {
|
|
8558
8558
|
const { id: s } = r;
|
|
8559
8559
|
return !t.includes(s, o + 1);
|
|
8560
8560
|
});
|
|
8561
8561
|
}
|
|
8562
|
-
const
|
|
8562
|
+
const Op = (e) => {
|
|
8563
8563
|
var et;
|
|
8564
8564
|
const { value: t, onChange: n, ooui: r, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: u } = te(
|
|
8565
8565
|
yn
|
|
@@ -8595,7 +8595,7 @@ const Tp = (e) => {
|
|
|
8595
8595
|
var ye, Re;
|
|
8596
8596
|
n == null || n({
|
|
8597
8597
|
fields: ((ye = o.get("form")) == null ? void 0 : ye.fields) || ((Re = o.get("tree")) == null ? void 0 : Re.fields),
|
|
8598
|
-
items:
|
|
8598
|
+
items: Tp(z)
|
|
8599
8599
|
});
|
|
8600
8600
|
}, $e = async () => {
|
|
8601
8601
|
await Le(), c > le.length - 1 && c !== 0 && u(0);
|
|
@@ -8796,7 +8796,7 @@ const Tp = (e) => {
|
|
|
8796
8796
|
}
|
|
8797
8797
|
};
|
|
8798
8798
|
function Oe() {
|
|
8799
|
-
const z =
|
|
8799
|
+
const z = Ip[a];
|
|
8800
8800
|
if (a === "graph")
|
|
8801
8801
|
return Pi(o.get("graph").arch).string;
|
|
8802
8802
|
{
|
|
@@ -8873,7 +8873,7 @@ const Tp = (e) => {
|
|
|
8873
8873
|
}
|
|
8874
8874
|
};
|
|
8875
8875
|
if (O)
|
|
8876
|
-
return /* @__PURE__ */ i(
|
|
8876
|
+
return /* @__PURE__ */ i(rt, { className: "mt-10", message: O, type: "error", banner: !0 });
|
|
8877
8877
|
const ge = L;
|
|
8878
8878
|
return C ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ E(ae, { children: [
|
|
8879
8879
|
/* @__PURE__ */ i(
|
|
@@ -8936,7 +8936,7 @@ const Tp = (e) => {
|
|
|
8936
8936
|
}
|
|
8937
8937
|
)
|
|
8938
8938
|
] });
|
|
8939
|
-
},
|
|
8939
|
+
}, Fp = ({
|
|
8940
8940
|
fieldName: e,
|
|
8941
8941
|
widgetDomain: t
|
|
8942
8942
|
}) => {
|
|
@@ -8966,7 +8966,7 @@ const Tp = (e) => {
|
|
|
8966
8966
|
));
|
|
8967
8967
|
}
|
|
8968
8968
|
return n.current;
|
|
8969
|
-
},
|
|
8969
|
+
}, Ap = ({
|
|
8970
8970
|
treeView: e,
|
|
8971
8971
|
relation: t,
|
|
8972
8972
|
context: n,
|
|
@@ -8988,20 +8988,20 @@ const Tp = (e) => {
|
|
|
8988
8988
|
endRow: v,
|
|
8989
8989
|
sortFields: g
|
|
8990
8990
|
}) => {
|
|
8991
|
-
const y = is(g), { realItemsIds: w, otherItems: I } =
|
|
8991
|
+
const y = is(g), { realItemsIds: w, otherItems: I } = Vc({
|
|
8992
8992
|
allItems: h,
|
|
8993
8993
|
...y ? {} : { range: { startRow: m, endRow: v } }
|
|
8994
8994
|
});
|
|
8995
8995
|
if (w.length === 0 && I.length === 0)
|
|
8996
8996
|
return { results: [], colors: {}, status: {} };
|
|
8997
|
-
const C = y ? (await
|
|
8997
|
+
const C = y ? (await Dc(w, t, n, y)).slice(
|
|
8998
8998
|
m,
|
|
8999
8999
|
v
|
|
9000
|
-
) : w, b =
|
|
9000
|
+
) : w, b = Pc(d), {
|
|
9001
9001
|
items: O,
|
|
9002
9002
|
colors: T,
|
|
9003
9003
|
status: R
|
|
9004
|
-
} = await
|
|
9004
|
+
} = await kc({
|
|
9005
9005
|
relation: t,
|
|
9006
9006
|
ids: C,
|
|
9007
9007
|
treeView: e,
|
|
@@ -9009,7 +9009,7 @@ const Tp = (e) => {
|
|
|
9009
9009
|
attrs: b,
|
|
9010
9010
|
treeOoui: d
|
|
9011
9011
|
}), V = C.length < v - m && I.length > 0 ? [...C, ...I.map((F) => F.id)] : C;
|
|
9012
|
-
return { results:
|
|
9012
|
+
return { results: Ec({
|
|
9013
9013
|
finalResultIds: V,
|
|
9014
9014
|
fetchedItems: O,
|
|
9015
9015
|
otherItems: I
|
|
@@ -9024,7 +9024,7 @@ const Tp = (e) => {
|
|
|
9024
9024
|
onGetFirstVisibileRowIndex: f,
|
|
9025
9025
|
onSelectionCheckboxClicked: c
|
|
9026
9026
|
};
|
|
9027
|
-
},
|
|
9027
|
+
}, Rp = ({
|
|
9028
9028
|
items: e,
|
|
9029
9029
|
relation: t,
|
|
9030
9030
|
context: n,
|
|
@@ -9097,9 +9097,9 @@ const Tp = (e) => {
|
|
|
9097
9097
|
getOriginalItemsWithRestoredItemId: f,
|
|
9098
9098
|
onFormChanges: d
|
|
9099
9099
|
};
|
|
9100
|
-
},
|
|
9100
|
+
}, _p = ({
|
|
9101
9101
|
one2manyItems: e
|
|
9102
|
-
}) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]),
|
|
9102
|
+
}) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Vp = ({
|
|
9103
9103
|
formView: e,
|
|
9104
9104
|
items: t,
|
|
9105
9105
|
context: n,
|
|
@@ -9126,12 +9126,12 @@ const Tp = (e) => {
|
|
|
9126
9126
|
values: { ...f, id: d },
|
|
9127
9127
|
treeValues: { ...f, id: d }
|
|
9128
9128
|
} : m);
|
|
9129
|
-
s(
|
|
9129
|
+
s(_c(p));
|
|
9130
9130
|
},
|
|
9131
9131
|
readOnly: o
|
|
9132
9132
|
}
|
|
9133
9133
|
);
|
|
9134
|
-
},
|
|
9134
|
+
}, Ep = ({
|
|
9135
9135
|
isMany2many: e,
|
|
9136
9136
|
triggerChange: t,
|
|
9137
9137
|
items: n,
|
|
@@ -9142,7 +9142,7 @@ const Tp = (e) => {
|
|
|
9142
9142
|
const { t: a } = he(), { currentView: l, itemIndex: c, setItemIndex: u } = te(
|
|
9143
9143
|
yn
|
|
9144
9144
|
), f = N(async () => {
|
|
9145
|
-
const m =
|
|
9145
|
+
const m = Dp({
|
|
9146
9146
|
selectedRowKeys: o,
|
|
9147
9147
|
items: n
|
|
9148
9148
|
});
|
|
@@ -9194,7 +9194,7 @@ const Tp = (e) => {
|
|
|
9194
9194
|
});
|
|
9195
9195
|
}, [e, p, a]) };
|
|
9196
9196
|
};
|
|
9197
|
-
function
|
|
9197
|
+
function Dp({
|
|
9198
9198
|
selectedRowKeys: e,
|
|
9199
9199
|
items: t
|
|
9200
9200
|
}) {
|
|
@@ -9203,7 +9203,7 @@ function Ep({
|
|
|
9203
9203
|
o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
|
|
9204
9204
|
}), n;
|
|
9205
9205
|
}
|
|
9206
|
-
const
|
|
9206
|
+
const Pp = ({
|
|
9207
9207
|
currentView: e,
|
|
9208
9208
|
inv_field: t,
|
|
9209
9209
|
activeId: n,
|
|
@@ -9277,7 +9277,7 @@ const Dp = ({
|
|
|
9277
9277
|
onFormModalSubmitSucceed: I,
|
|
9278
9278
|
openItemInFormModal: C
|
|
9279
9279
|
};
|
|
9280
|
-
},
|
|
9280
|
+
}, kp = ({
|
|
9281
9281
|
currentView: e,
|
|
9282
9282
|
showFormChangesDialogIfNeeded: t,
|
|
9283
9283
|
items: n,
|
|
@@ -9335,7 +9335,7 @@ const Dp = ({
|
|
|
9335
9335
|
onCloseSearchModal: f,
|
|
9336
9336
|
onSelectSearchValues: p
|
|
9337
9337
|
};
|
|
9338
|
-
},
|
|
9338
|
+
}, $p = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, Np = 400, Mp = ({
|
|
9339
9339
|
items: e,
|
|
9340
9340
|
height: t,
|
|
9341
9341
|
onRowDoubleClick: n,
|
|
@@ -9389,7 +9389,7 @@ const Dp = ({
|
|
|
9389
9389
|
if (I.current[(W = (L = k.node) == null ? void 0 : L.data) == null ? void 0 : W.id])
|
|
9390
9390
|
return { color: I.current[(D = (M = k.node) == null ? void 0 : M.data) == null ? void 0 : D.id] };
|
|
9391
9391
|
}, []), { loading: F, getColumnState: P, updateColumnState: _ } = Os(
|
|
9392
|
-
|
|
9392
|
+
$p({
|
|
9393
9393
|
...h,
|
|
9394
9394
|
model: u
|
|
9395
9395
|
})
|
|
@@ -9398,7 +9398,7 @@ const Dp = ({
|
|
|
9398
9398
|
zi,
|
|
9399
9399
|
{
|
|
9400
9400
|
ref: w,
|
|
9401
|
-
height: t ||
|
|
9401
|
+
height: t || Np,
|
|
9402
9402
|
columns: S,
|
|
9403
9403
|
onRequestData: V,
|
|
9404
9404
|
onRowDoubleClick: n,
|
|
@@ -9425,7 +9425,7 @@ const Dp = ({
|
|
|
9425
9425
|
}
|
|
9426
9426
|
}
|
|
9427
9427
|
);
|
|
9428
|
-
},
|
|
9428
|
+
}, Lp = ({
|
|
9429
9429
|
ooui: e,
|
|
9430
9430
|
items: t,
|
|
9431
9431
|
selectedRowKeys: n,
|
|
@@ -9438,9 +9438,9 @@ const Dp = ({
|
|
|
9438
9438
|
model: r,
|
|
9439
9439
|
domain: s
|
|
9440
9440
|
});
|
|
9441
|
-
},
|
|
9441
|
+
}, jp = ["form", "tree", "graph"], Bp = (e) => {
|
|
9442
9442
|
var Te;
|
|
9443
|
-
const t = J(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l =
|
|
9443
|
+
const t = J(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l = _p({ one2manyItems: a }), { currentView: c, setCurrentView: u, itemIndex: f, setItemIndex: d } = te(
|
|
9444
9444
|
yn
|
|
9445
9445
|
), {
|
|
9446
9446
|
readOnly: p,
|
|
@@ -9452,7 +9452,7 @@ const Dp = ({
|
|
|
9452
9452
|
activeId: w,
|
|
9453
9453
|
getContext: I,
|
|
9454
9454
|
fetchValues: C
|
|
9455
|
-
} = y || {}, b = s.size > 1, O = ((Te = s.get("form")) == null ? void 0 : Te.fields) !== void 0, T = me(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R =
|
|
9455
|
+
} = y || {}, b = s.size > 1, O = ((Te = s.get("form")) == null ? void 0 : Te.fields) !== void 0, T = me(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R = Fp({
|
|
9456
9456
|
widgetDomain: v,
|
|
9457
9457
|
fieldName: g
|
|
9458
9458
|
}), {
|
|
@@ -9463,13 +9463,13 @@ const Dp = ({
|
|
|
9463
9463
|
onChangeFirstVisibleRowIndex: P,
|
|
9464
9464
|
onGetFirstVisibileRowIndex: _,
|
|
9465
9465
|
onSelectionCheckboxClicked: k
|
|
9466
|
-
} =
|
|
9466
|
+
} = Ap({
|
|
9467
9467
|
treeView: s.get("tree"),
|
|
9468
9468
|
relation: h,
|
|
9469
9469
|
context: T,
|
|
9470
9470
|
allRowsIds: l.filter((fe) => fe.id !== void 0).map((fe) => fe.id),
|
|
9471
9471
|
gridRef: t
|
|
9472
|
-
}), [, L] =
|
|
9472
|
+
}), [, L] = Lp({
|
|
9473
9473
|
ooui: S,
|
|
9474
9474
|
model: h,
|
|
9475
9475
|
items: l,
|
|
@@ -9491,7 +9491,7 @@ const Dp = ({
|
|
|
9491
9491
|
onFormChanges: ne,
|
|
9492
9492
|
showFormChangesDialogIfNeeded: X,
|
|
9493
9493
|
setFormHasChanges: H
|
|
9494
|
-
} =
|
|
9494
|
+
} = Rp({
|
|
9495
9495
|
items: l,
|
|
9496
9496
|
formView: s.get("form"),
|
|
9497
9497
|
treeView: s.get("tree"),
|
|
@@ -9506,7 +9506,7 @@ const Dp = ({
|
|
|
9506
9506
|
onFormModalSubmitSucceed: j,
|
|
9507
9507
|
createItem: ee,
|
|
9508
9508
|
openItemInFormModal: le
|
|
9509
|
-
} =
|
|
9509
|
+
} = Pp({
|
|
9510
9510
|
activeId: w,
|
|
9511
9511
|
inv_field: o.inv_field,
|
|
9512
9512
|
showFormChangesDialogIfNeeded: X,
|
|
@@ -9523,7 +9523,7 @@ const Dp = ({
|
|
|
9523
9523
|
onSelectSearchValues: pe,
|
|
9524
9524
|
onCloseSearchModal: ve,
|
|
9525
9525
|
searchItem: $e
|
|
9526
|
-
} =
|
|
9526
|
+
} = kp({
|
|
9527
9527
|
showFormChangesDialogIfNeeded: X,
|
|
9528
9528
|
currentView: c,
|
|
9529
9529
|
triggerChange: D,
|
|
@@ -9531,7 +9531,7 @@ const Dp = ({
|
|
|
9531
9531
|
views: s,
|
|
9532
9532
|
context: T,
|
|
9533
9533
|
relation: h
|
|
9534
|
-
}), { showRemoveConfirm: Le } =
|
|
9534
|
+
}), { showRemoveConfirm: Le } = Ep({
|
|
9535
9535
|
isMany2many: M,
|
|
9536
9536
|
items: l,
|
|
9537
9537
|
triggerChange: D,
|
|
@@ -9592,7 +9592,7 @@ const Dp = ({
|
|
|
9592
9592
|
}
|
|
9593
9593
|
),
|
|
9594
9594
|
c === "tree" && /* @__PURE__ */ i(
|
|
9595
|
-
|
|
9595
|
+
Mp,
|
|
9596
9596
|
{
|
|
9597
9597
|
gridRef: t,
|
|
9598
9598
|
height: o.height,
|
|
@@ -9618,7 +9618,7 @@ const Dp = ({
|
|
|
9618
9618
|
}
|
|
9619
9619
|
),
|
|
9620
9620
|
c === "form" && /* @__PURE__ */ i(
|
|
9621
|
-
|
|
9621
|
+
Vp,
|
|
9622
9622
|
{
|
|
9623
9623
|
items: l,
|
|
9624
9624
|
formView: s.get("form"),
|
|
@@ -9669,12 +9669,12 @@ const Dp = ({
|
|
|
9669
9669
|
limit: 0
|
|
9670
9670
|
}
|
|
9671
9671
|
),
|
|
9672
|
-
!
|
|
9672
|
+
!jp.includes(c) && /* @__PURE__ */ E("span", { children: [
|
|
9673
9673
|
"Unsupported view ",
|
|
9674
9674
|
c
|
|
9675
9675
|
] })
|
|
9676
9676
|
] });
|
|
9677
|
-
},
|
|
9677
|
+
}, Hp = 30, Up = (e) => {
|
|
9678
9678
|
var b;
|
|
9679
9679
|
const { ooui: t } = e, { mode: n, relation: r, views: o, required: s, context: a } = t;
|
|
9680
9680
|
let l;
|
|
@@ -9705,7 +9705,7 @@ const Dp = ({
|
|
|
9705
9705
|
u(!1);
|
|
9706
9706
|
}
|
|
9707
9707
|
};
|
|
9708
|
-
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(We, {}) : f ? /* @__PURE__ */ i(
|
|
9708
|
+
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(We, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sp, { initialView: l, children: /* @__PURE__ */ i(
|
|
9709
9709
|
_e,
|
|
9710
9710
|
{
|
|
9711
9711
|
required: s,
|
|
@@ -9722,7 +9722,7 @@ const Dp = ({
|
|
|
9722
9722
|
},
|
|
9723
9723
|
...e,
|
|
9724
9724
|
children: /* @__PURE__ */ i(
|
|
9725
|
-
|
|
9725
|
+
Wp,
|
|
9726
9726
|
{
|
|
9727
9727
|
ooui: t,
|
|
9728
9728
|
views: p,
|
|
@@ -9732,14 +9732,14 @@ const Dp = ({
|
|
|
9732
9732
|
)
|
|
9733
9733
|
}
|
|
9734
9734
|
) });
|
|
9735
|
-
},
|
|
9735
|
+
}, Wp = (e) => {
|
|
9736
9736
|
const { ooui: t, value: n } = e;
|
|
9737
|
-
return t.infinite || n && Array.isArray(n.items) && n.items.length >=
|
|
9738
|
-
}, { useToken:
|
|
9737
|
+
return t.infinite || n && Array.isArray(n.items) && n.items.length >= Hp ? /* @__PURE__ */ i(Bp, { ...e }) : /* @__PURE__ */ i(Op, { ...e });
|
|
9738
|
+
}, { useToken: Gp } = Ge, Kp = (e) => {
|
|
9739
9739
|
const { ooui: t } = e, { required: n } = t;
|
|
9740
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
9741
|
-
},
|
|
9742
|
-
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } =
|
|
9740
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(qp, { ooui: t }) });
|
|
9741
|
+
}, qp = (e) => {
|
|
9742
|
+
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Gp(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(), [f, d] = x(), p = te(Be), { elementHasLostFocus: h } = p || {};
|
|
9743
9743
|
ue(() => {
|
|
9744
9744
|
d(Cs(n));
|
|
9745
9745
|
}, [n]);
|
|
@@ -9750,7 +9750,7 @@ const Dp = ({
|
|
|
9750
9750
|
u.current = y.target.value, d(y.target.value);
|
|
9751
9751
|
}
|
|
9752
9752
|
async function g() {
|
|
9753
|
-
m(
|
|
9753
|
+
m(eu(f)), await new Promise((y) => setTimeout(y, 300)), h == null || h();
|
|
9754
9754
|
}
|
|
9755
9755
|
return /* @__PURE__ */ i(
|
|
9756
9756
|
lt,
|
|
@@ -9768,7 +9768,7 @@ const Dp = ({
|
|
|
9768
9768
|
};
|
|
9769
9769
|
function pa(e) {
|
|
9770
9770
|
const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = dt(t.icon || "");
|
|
9771
|
-
return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(
|
|
9771
|
+
return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(hl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
|
|
9772
9772
|
Fr,
|
|
9773
9773
|
{
|
|
9774
9774
|
container: t.container,
|
|
@@ -9782,8 +9782,8 @@ function pa(e) {
|
|
|
9782
9782
|
}
|
|
9783
9783
|
) });
|
|
9784
9784
|
}
|
|
9785
|
-
const { TabPane:
|
|
9786
|
-
function
|
|
9785
|
+
const { TabPane: Yp } = _i;
|
|
9786
|
+
function zp(e) {
|
|
9787
9787
|
const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
|
|
9788
9788
|
function o(s) {
|
|
9789
9789
|
if (s) {
|
|
@@ -9792,7 +9792,7 @@ function Yp(e) {
|
|
|
9792
9792
|
}
|
|
9793
9793
|
}
|
|
9794
9794
|
return /* @__PURE__ */ i(_i, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
|
|
9795
|
-
|
|
9795
|
+
Yp,
|
|
9796
9796
|
{
|
|
9797
9797
|
tab: /* @__PURE__ */ E(ae, { children: [
|
|
9798
9798
|
o(s.icon),
|
|
@@ -9811,10 +9811,10 @@ function Yp(e) {
|
|
|
9811
9811
|
s.label
|
|
9812
9812
|
)) });
|
|
9813
9813
|
}
|
|
9814
|
-
const { useToken:
|
|
9815
|
-
const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } =
|
|
9814
|
+
const { useToken: Jp } = Ge, { TextArea: Mr } = lt, Qp = (e) => {
|
|
9815
|
+
const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Jp(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(Be), { elementHasLostFocus: f } = u || {};
|
|
9816
9816
|
return /* @__PURE__ */ i(_e, { required: o, ...e, children: a ? /* @__PURE__ */ i(
|
|
9817
|
-
|
|
9817
|
+
Xp,
|
|
9818
9818
|
{
|
|
9819
9819
|
field: n,
|
|
9820
9820
|
height: s,
|
|
@@ -9834,7 +9834,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9834
9834
|
onBlur: f
|
|
9835
9835
|
}
|
|
9836
9836
|
) });
|
|
9837
|
-
},
|
|
9837
|
+
}, Xp = ({
|
|
9838
9838
|
value: e,
|
|
9839
9839
|
field: t,
|
|
9840
9840
|
requiredStyle: n,
|
|
@@ -9913,7 +9913,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9913
9913
|
}
|
|
9914
9914
|
) }),
|
|
9915
9915
|
/* @__PURE__ */ i(ke, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ i(
|
|
9916
|
-
|
|
9916
|
+
nt,
|
|
9917
9917
|
{
|
|
9918
9918
|
tooltip: h("translate"),
|
|
9919
9919
|
icon: /* @__PURE__ */ i(ji, {}),
|
|
@@ -9924,13 +9924,13 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9924
9924
|
}
|
|
9925
9925
|
) })
|
|
9926
9926
|
] });
|
|
9927
|
-
},
|
|
9927
|
+
}, Zp = (e) => {
|
|
9928
9928
|
const { ooui: t } = e, { label: n, icon: r } = t, o = dt(r || "");
|
|
9929
9929
|
return /* @__PURE__ */ i(Yn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ E(Je, { children: [
|
|
9930
9930
|
o ? /* @__PURE__ */ i(o, {}) : null,
|
|
9931
9931
|
n
|
|
9932
9932
|
] }) });
|
|
9933
|
-
},
|
|
9933
|
+
}, eh = ({
|
|
9934
9934
|
model: e,
|
|
9935
9935
|
context: t,
|
|
9936
9936
|
selectedRegistersToExport: n,
|
|
@@ -9950,7 +9950,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9950
9950
|
]);
|
|
9951
9951
|
const { datas: w } = await $.getHandler().exportData({
|
|
9952
9952
|
model: e,
|
|
9953
|
-
fields:
|
|
9953
|
+
fields: sh({
|
|
9954
9954
|
keys: g.selectedKeys,
|
|
9955
9955
|
fields: a.current
|
|
9956
9956
|
}),
|
|
@@ -9979,7 +9979,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9979
9979
|
fields: []
|
|
9980
9980
|
});
|
|
9981
9981
|
for (const [b, O] of Object.entries(C))
|
|
9982
|
-
C[b].string =
|
|
9982
|
+
C[b].string = nh({
|
|
9983
9983
|
parentTitle: w.string,
|
|
9984
9984
|
title: O.string
|
|
9985
9985
|
});
|
|
@@ -9990,7 +9990,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
9990
9990
|
},
|
|
9991
9991
|
[t]
|
|
9992
9992
|
), p = N(async () => {
|
|
9993
|
-
const g = await
|
|
9993
|
+
const g = await rh({ model: e, context: t }), y = await ih({
|
|
9994
9994
|
predefinedExports: g,
|
|
9995
9995
|
fields: a.current,
|
|
9996
9996
|
onGetFieldChilds: d
|
|
@@ -10072,7 +10072,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10072
10072
|
for (const r of Object.keys(e)) {
|
|
10073
10073
|
const o = e[r], s = ha(o), a = o.is_function === !0, l = s && !a;
|
|
10074
10074
|
n.push({
|
|
10075
|
-
key:
|
|
10075
|
+
key: th({ key: r, parentKey: t }),
|
|
10076
10076
|
title: o.string,
|
|
10077
10077
|
tooltip: o.help,
|
|
10078
10078
|
required: o.required,
|
|
@@ -10080,7 +10080,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10080
10080
|
});
|
|
10081
10081
|
}
|
|
10082
10082
|
return n;
|
|
10083
|
-
}, ha = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
10083
|
+
}, ha = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", th = ({
|
|
10084
10084
|
parentKey: e,
|
|
10085
10085
|
key: t
|
|
10086
10086
|
}) => `${e ? e + "/" : ""}${t}`, Lr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), jr = (e) => {
|
|
@@ -10088,10 +10088,10 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10088
10088
|
return e;
|
|
10089
10089
|
const t = e.split("/");
|
|
10090
10090
|
return t[t.length - 1];
|
|
10091
|
-
}, Br = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lr(e)],
|
|
10091
|
+
}, Br = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lr(e)], nh = ({
|
|
10092
10092
|
title: e,
|
|
10093
10093
|
parentTitle: t
|
|
10094
|
-
}) => `${t ? t + " → " : ""}${e}`,
|
|
10094
|
+
}) => `${t ? t + " → " : ""}${e}`, rh = async ({
|
|
10095
10095
|
model: e,
|
|
10096
10096
|
context: t
|
|
10097
10097
|
}) => {
|
|
@@ -10111,24 +10111,24 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10111
10111
|
key: o.find((c) => c.id === a).name
|
|
10112
10112
|
}))
|
|
10113
10113
|
}));
|
|
10114
|
-
},
|
|
10114
|
+
}, oh = ({
|
|
10115
10115
|
fields: e,
|
|
10116
10116
|
keys: t
|
|
10117
|
-
}) =>
|
|
10117
|
+
}) => ah([
|
|
10118
10118
|
...new Set(
|
|
10119
10119
|
t.filter((n) => {
|
|
10120
10120
|
var r, o;
|
|
10121
10121
|
return n.indexOf("/") === -1 ? !((r = e["/"]) != null && r[n]) : !((o = e == null ? void 0 : e[Lr(n)]) != null && o[n]);
|
|
10122
10122
|
}).map((n) => Lr(n))
|
|
10123
10123
|
)
|
|
10124
|
-
]),
|
|
10124
|
+
]), ih = async ({
|
|
10125
10125
|
predefinedExports: e,
|
|
10126
10126
|
fields: t,
|
|
10127
10127
|
onGetFieldChilds: n
|
|
10128
10128
|
}) => {
|
|
10129
10129
|
const r = e.flatMap(
|
|
10130
10130
|
(a) => a.fields.map((l) => l.key)
|
|
10131
|
-
), o =
|
|
10131
|
+
), o = oh({
|
|
10132
10132
|
fields: t,
|
|
10133
10133
|
keys: r
|
|
10134
10134
|
}), s = [];
|
|
@@ -10142,13 +10142,13 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10142
10142
|
);
|
|
10143
10143
|
}
|
|
10144
10144
|
return s;
|
|
10145
|
-
},
|
|
10145
|
+
}, sh = ({
|
|
10146
10146
|
keys: e,
|
|
10147
10147
|
fields: t
|
|
10148
10148
|
}) => e.map((n) => {
|
|
10149
10149
|
const r = jr(n), s = Br(n, t)[r], a = ha(s), l = s.is_function === !0;
|
|
10150
10150
|
return a && !l ? `${n}/id` : n;
|
|
10151
|
-
}),
|
|
10151
|
+
}), ah = (e) => {
|
|
10152
10152
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
10153
10153
|
for (const r of e) {
|
|
10154
10154
|
const o = r.split("/");
|
|
@@ -10162,7 +10162,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10162
10162
|
const s = r.split("/").length, a = o.split("/").length;
|
|
10163
10163
|
return s - a;
|
|
10164
10164
|
}), n;
|
|
10165
|
-
},
|
|
10165
|
+
}, lh = (e) => {
|
|
10166
10166
|
const {
|
|
10167
10167
|
visible: t,
|
|
10168
10168
|
onClose: n,
|
|
@@ -10180,7 +10180,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10180
10180
|
onGetPredefinedExports: h,
|
|
10181
10181
|
onSavePredefinedExport: m,
|
|
10182
10182
|
onRemovePredefinedExport: v
|
|
10183
|
-
} =
|
|
10183
|
+
} = eh({
|
|
10184
10184
|
model: r,
|
|
10185
10185
|
context: o,
|
|
10186
10186
|
domain: l,
|
|
@@ -10189,7 +10189,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10189
10189
|
onClose: n
|
|
10190
10190
|
});
|
|
10191
10191
|
return /* @__PURE__ */ i(
|
|
10192
|
-
|
|
10192
|
+
gl,
|
|
10193
10193
|
{
|
|
10194
10194
|
visible: t,
|
|
10195
10195
|
onSucceed: f,
|
|
@@ -10204,16 +10204,16 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10204
10204
|
onRemovePredefinedExport: v
|
|
10205
10205
|
}
|
|
10206
10206
|
);
|
|
10207
|
-
},
|
|
10207
|
+
}, ch = (e) => {
|
|
10208
10208
|
const { ooui: t } = e;
|
|
10209
10209
|
return /* @__PURE__ */ i(Is, { ooui: t });
|
|
10210
|
-
},
|
|
10210
|
+
}, dh = (e) => {
|
|
10211
10211
|
const { ooui: t } = e;
|
|
10212
10212
|
return /* @__PURE__ */ i(Is, { ooui: t, showTime: !0 });
|
|
10213
|
-
},
|
|
10213
|
+
}, uh = (e) => {
|
|
10214
10214
|
const { ooui: t } = e;
|
|
10215
|
-
return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(
|
|
10216
|
-
},
|
|
10215
|
+
return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(fh, { ooui: t }) });
|
|
10216
|
+
}, fh = (e) => /* @__PURE__ */ i(
|
|
10217
10217
|
Rr,
|
|
10218
10218
|
{
|
|
10219
10219
|
onChange: (n, r) => {
|
|
@@ -10222,10 +10222,10 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10222
10222
|
numberOfSelectsToHide: 3,
|
|
10223
10223
|
value: e.value ? st(e.value, "HH:mm:ss") : void 0
|
|
10224
10224
|
}
|
|
10225
|
-
),
|
|
10225
|
+
), mh = (e) => {
|
|
10226
10226
|
const { ooui: t } = e, { required: n } = t;
|
|
10227
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
10228
|
-
},
|
|
10227
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(ph, { ooui: t }) });
|
|
10228
|
+
}, ph = (e) => {
|
|
10229
10229
|
const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: s, readOnly: a, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, f] = x([]), [d, p] = x();
|
|
10230
10230
|
return ue(() => {
|
|
10231
10231
|
if (!t) {
|
|
@@ -10273,11 +10273,11 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10273
10273
|
}
|
|
10274
10274
|
) })
|
|
10275
10275
|
] });
|
|
10276
|
-
}, { useToken:
|
|
10276
|
+
}, { useToken: hh } = Ge, gh = (e) => {
|
|
10277
10277
|
const { ooui: t } = e, { required: n } = t;
|
|
10278
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
10279
|
-
},
|
|
10280
|
-
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } =
|
|
10278
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(yh, { ooui: t }) });
|
|
10279
|
+
}, yh = (e) => {
|
|
10280
|
+
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = hh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(null), { setFieldValue: f, getFieldValue: d } = te(Be) || {}, { t: p } = he(), h = n ? Sc(n) : "", m = (I) => {
|
|
10281
10281
|
r == null || r(I);
|
|
10282
10282
|
};
|
|
10283
10283
|
async function v() {
|
|
@@ -10330,9 +10330,9 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10330
10330
|
children: "Select"
|
|
10331
10331
|
}
|
|
10332
10332
|
),
|
|
10333
|
-
/* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(
|
|
10333
|
+
/* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(ol, {}), disabled: !n, onClick: g, children: p("open") }),
|
|
10334
10334
|
/* @__PURE__ */ i(
|
|
10335
|
-
|
|
10335
|
+
nt,
|
|
10336
10336
|
{
|
|
10337
10337
|
tooltip: p("download"),
|
|
10338
10338
|
disabled: !n,
|
|
@@ -10341,7 +10341,7 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10341
10341
|
}
|
|
10342
10342
|
),
|
|
10343
10343
|
/* @__PURE__ */ i(
|
|
10344
|
-
|
|
10344
|
+
nt,
|
|
10345
10345
|
{
|
|
10346
10346
|
tooltip: p("clear"),
|
|
10347
10347
|
disabled: o || !n,
|
|
@@ -10354,8 +10354,8 @@ const { useToken: zp } = Ge, { TextArea: Mr } = lt, Jp = (e) => {
|
|
|
10354
10354
|
}, Cr = {
|
|
10355
10355
|
tree: /* @__PURE__ */ i(eo, {}),
|
|
10356
10356
|
form: /* @__PURE__ */ i(xn, {}),
|
|
10357
|
-
graph: /* @__PURE__ */ i(
|
|
10358
|
-
calendar: /* @__PURE__ */ i(
|
|
10357
|
+
graph: /* @__PURE__ */ i(il, {}),
|
|
10358
|
+
calendar: /* @__PURE__ */ i(sl, {})
|
|
10359
10359
|
};
|
|
10360
10360
|
function Ii(e) {
|
|
10361
10361
|
return e ? (Cr == null ? void 0 : Cr[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
|
|
@@ -10404,7 +10404,7 @@ function bo(e) {
|
|
|
10404
10404
|
}
|
|
10405
10405
|
return /* @__PURE__ */ E("div", { style: { display: "flex" }, children: [
|
|
10406
10406
|
/* @__PURE__ */ i(
|
|
10407
|
-
|
|
10407
|
+
nt,
|
|
10408
10408
|
{
|
|
10409
10409
|
tooltip: a ? l("viewAs") + " " + l(a.type) : "",
|
|
10410
10410
|
icon: Ii(a),
|
|
@@ -10442,7 +10442,7 @@ function bo(e) {
|
|
|
10442
10442
|
)
|
|
10443
10443
|
] });
|
|
10444
10444
|
}
|
|
10445
|
-
function
|
|
10445
|
+
function ot(e) {
|
|
10446
10446
|
const {
|
|
10447
10447
|
onClick: t,
|
|
10448
10448
|
disabled: n = !1,
|
|
@@ -10450,15 +10450,17 @@ function nt(e) {
|
|
|
10450
10450
|
tooltip: o,
|
|
10451
10451
|
icon: s,
|
|
10452
10452
|
label: a,
|
|
10453
|
-
type: l = "default"
|
|
10453
|
+
type: l = "default",
|
|
10454
|
+
...c
|
|
10454
10455
|
} = e;
|
|
10455
10456
|
return /* @__PURE__ */ E(
|
|
10456
|
-
|
|
10457
|
+
nt,
|
|
10457
10458
|
{
|
|
10458
10459
|
type: l,
|
|
10459
10460
|
tooltip: o,
|
|
10460
10461
|
onClick: t,
|
|
10461
10462
|
disabled: n,
|
|
10463
|
+
...c,
|
|
10462
10464
|
children: [
|
|
10463
10465
|
r ? /* @__PURE__ */ i(wt, {}) : s,
|
|
10464
10466
|
a
|
|
@@ -10466,7 +10468,8 @@ function nt(e) {
|
|
|
10466
10468
|
}
|
|
10467
10469
|
);
|
|
10468
10470
|
}
|
|
10469
|
-
|
|
10471
|
+
const ga = (e) => /* @__PURE__ */ i(ot, { ...e, type: "primary", danger: !0 });
|
|
10472
|
+
function ya(e) {
|
|
10470
10473
|
const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = te(
|
|
10471
10474
|
at
|
|
10472
10475
|
), { t: o } = he(), s = () => {
|
|
@@ -10482,16 +10485,17 @@ function ga(e) {
|
|
|
10482
10485
|
r();
|
|
10483
10486
|
};
|
|
10484
10487
|
return /* @__PURE__ */ i(
|
|
10485
|
-
|
|
10488
|
+
ot,
|
|
10486
10489
|
{
|
|
10487
10490
|
icon: /* @__PURE__ */ i(Zn, {}),
|
|
10488
10491
|
tooltip: o("new"),
|
|
10489
10492
|
onClick: s,
|
|
10490
|
-
disabled: t
|
|
10493
|
+
disabled: t,
|
|
10494
|
+
type: "primary"
|
|
10491
10495
|
}
|
|
10492
10496
|
);
|
|
10493
10497
|
}
|
|
10494
|
-
async function
|
|
10498
|
+
async function va(e, t, n) {
|
|
10495
10499
|
const r = (await $.getHandler().getLogInfo({
|
|
10496
10500
|
model: e,
|
|
10497
10501
|
ids: [t]
|
|
@@ -10514,7 +10518,7 @@ async function ya(e, t, n) {
|
|
|
10514
10518
|
] })
|
|
10515
10519
|
);
|
|
10516
10520
|
}
|
|
10517
|
-
const
|
|
10521
|
+
const vh = (e) => {
|
|
10518
10522
|
const {
|
|
10519
10523
|
numberOfAttachments: t,
|
|
10520
10524
|
attachments: n = [],
|
|
@@ -10612,7 +10616,7 @@ const yh = (e) => {
|
|
|
10612
10616
|
}
|
|
10613
10617
|
);
|
|
10614
10618
|
};
|
|
10615
|
-
function
|
|
10619
|
+
function wh(e) {
|
|
10616
10620
|
const {
|
|
10617
10621
|
attachments: t,
|
|
10618
10622
|
disabled: n = !1,
|
|
@@ -10677,7 +10681,7 @@ function vh(e) {
|
|
|
10677
10681
|
m();
|
|
10678
10682
|
}, [m]), /* @__PURE__ */ E(ae, { children: [
|
|
10679
10683
|
/* @__PURE__ */ i(
|
|
10680
|
-
|
|
10684
|
+
vh,
|
|
10681
10685
|
{
|
|
10682
10686
|
numberOfAttachments: t.length,
|
|
10683
10687
|
attachments: u,
|
|
@@ -10703,7 +10707,7 @@ function vh(e) {
|
|
|
10703
10707
|
)
|
|
10704
10708
|
] });
|
|
10705
10709
|
}
|
|
10706
|
-
const
|
|
10710
|
+
const bh = () => {
|
|
10707
10711
|
const {
|
|
10708
10712
|
isInfiniteTree: e,
|
|
10709
10713
|
totalItems: t,
|
|
@@ -10786,12 +10790,12 @@ const wh = () => {
|
|
|
10786
10790
|
onPreviousClick: v
|
|
10787
10791
|
};
|
|
10788
10792
|
};
|
|
10789
|
-
function
|
|
10793
|
+
function Sh({ toolbar: e }) {
|
|
10790
10794
|
const t = te(
|
|
10791
10795
|
pn
|
|
10792
10796
|
), n = te(
|
|
10793
10797
|
bt
|
|
10794
|
-
), { t: r } = he(), { onNextClick: o, onPreviousClick: s } =
|
|
10798
|
+
), { t: r } = he(), { onNextClick: o, onPreviousClick: s } = bh(), {
|
|
10795
10799
|
availableViews: a,
|
|
10796
10800
|
currentView: l,
|
|
10797
10801
|
setCurrentView: c,
|
|
@@ -10904,11 +10908,11 @@ function bh({ toolbar: e }) {
|
|
|
10904
10908
|
Yt(),
|
|
10905
10909
|
Yt()
|
|
10906
10910
|
] }),
|
|
10907
|
-
/* @__PURE__ */ i(
|
|
10911
|
+
/* @__PURE__ */ i(ya, { disabled: M }),
|
|
10908
10912
|
/* @__PURE__ */ i(
|
|
10909
|
-
|
|
10913
|
+
ot,
|
|
10910
10914
|
{
|
|
10911
|
-
icon: /* @__PURE__ */ i(
|
|
10915
|
+
icon: /* @__PURE__ */ i(al, {}),
|
|
10912
10916
|
tooltip: r("save"),
|
|
10913
10917
|
disabled: !f || M,
|
|
10914
10918
|
loading: d,
|
|
@@ -10916,7 +10920,7 @@ function bh({ toolbar: e }) {
|
|
|
10916
10920
|
}
|
|
10917
10921
|
),
|
|
10918
10922
|
/* @__PURE__ */ i(
|
|
10919
|
-
|
|
10923
|
+
ot,
|
|
10920
10924
|
{
|
|
10921
10925
|
icon: /* @__PURE__ */ i(to, {}),
|
|
10922
10926
|
tooltip: r("duplicate"),
|
|
@@ -10930,7 +10934,7 @@ function bh({ toolbar: e }) {
|
|
|
10930
10934
|
}
|
|
10931
10935
|
),
|
|
10932
10936
|
/* @__PURE__ */ i(
|
|
10933
|
-
|
|
10937
|
+
ga,
|
|
10934
10938
|
{
|
|
10935
10939
|
icon: /* @__PURE__ */ i(Zr, {}),
|
|
10936
10940
|
tooltip: r("delete"),
|
|
@@ -10945,16 +10949,16 @@ function bh({ toolbar: e }) {
|
|
|
10945
10949
|
),
|
|
10946
10950
|
Yt(),
|
|
10947
10951
|
/* @__PURE__ */ i(
|
|
10948
|
-
|
|
10952
|
+
ot,
|
|
10949
10953
|
{
|
|
10950
10954
|
icon: /* @__PURE__ */ i(Ui, {}),
|
|
10951
10955
|
tooltip: r("showLogs"),
|
|
10952
10956
|
disabled: M || p === void 0,
|
|
10953
|
-
onClick: () =>
|
|
10957
|
+
onClick: () => va(y, p, r)
|
|
10954
10958
|
}
|
|
10955
10959
|
),
|
|
10956
10960
|
/* @__PURE__ */ i(
|
|
10957
|
-
|
|
10961
|
+
ot,
|
|
10958
10962
|
{
|
|
10959
10963
|
icon: /* @__PURE__ */ i(er, {}),
|
|
10960
10964
|
tooltip: r("refresh"),
|
|
@@ -10979,7 +10983,7 @@ function bh({ toolbar: e }) {
|
|
|
10979
10983
|
Yt(),
|
|
10980
10984
|
/* @__PURE__ */ E(Je, { children: [
|
|
10981
10985
|
/* @__PURE__ */ i(
|
|
10982
|
-
|
|
10986
|
+
ot,
|
|
10983
10987
|
{
|
|
10984
10988
|
icon: /* @__PURE__ */ i(Bi, {}),
|
|
10985
10989
|
tooltip: r("previous"),
|
|
@@ -10988,7 +10992,7 @@ function bh({ toolbar: e }) {
|
|
|
10988
10992
|
}
|
|
10989
10993
|
),
|
|
10990
10994
|
/* @__PURE__ */ i(
|
|
10991
|
-
|
|
10995
|
+
ot,
|
|
10992
10996
|
{
|
|
10993
10997
|
icon: /* @__PURE__ */ i(Hi, {}),
|
|
10994
10998
|
tooltip: r("next"),
|
|
@@ -11056,7 +11060,7 @@ function bh({ toolbar: e }) {
|
|
|
11056
11060
|
}
|
|
11057
11061
|
),
|
|
11058
11062
|
/* @__PURE__ */ i(
|
|
11059
|
-
|
|
11063
|
+
wh,
|
|
11060
11064
|
{
|
|
11061
11065
|
disabled: M,
|
|
11062
11066
|
attachments: R,
|
|
@@ -11104,8 +11108,8 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
|
|
|
11104
11108
|
],
|
|
11105
11109
|
values: { selection_associated_object: `${e},${t}` },
|
|
11106
11110
|
forced_values: { res_model: e, res_id: t }
|
|
11107
|
-
}), { useToken:
|
|
11108
|
-
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } =
|
|
11111
|
+
}), { useToken: Ch } = Ge, wa = (e) => {
|
|
11112
|
+
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = Ch(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(Be), { elementHasLostFocus: p } = d || {}, [h, m] = x(!1), [v, g] = x(!1);
|
|
11109
11113
|
ue(() => {
|
|
11110
11114
|
l && !h && g(!1), !n && !l && (m(!0), g(!0));
|
|
11111
11115
|
}, [h, l]);
|
|
@@ -11160,26 +11164,26 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
|
|
|
11160
11164
|
}
|
|
11161
11165
|
) })
|
|
11162
11166
|
] });
|
|
11163
|
-
},
|
|
11167
|
+
}, xh = (e) => {
|
|
11164
11168
|
const { ooui: t } = e, { required: n } = t;
|
|
11165
11169
|
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
11166
|
-
|
|
11170
|
+
wa,
|
|
11167
11171
|
{
|
|
11168
11172
|
ooui: t,
|
|
11169
|
-
valueValidator: (r) => r ?
|
|
11173
|
+
valueValidator: (r) => r ? jl(r) : !1
|
|
11170
11174
|
}
|
|
11171
11175
|
) });
|
|
11172
|
-
},
|
|
11176
|
+
}, Ih = (e) => {
|
|
11173
11177
|
const { ooui: t } = e, { required: n } = t;
|
|
11174
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(
|
|
11175
|
-
|
|
11178
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(uu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
|
|
11179
|
+
wa,
|
|
11176
11180
|
{
|
|
11177
11181
|
ooui: t,
|
|
11178
11182
|
linkPrefix: "mailto:",
|
|
11179
|
-
valueValidator: (r) => r ?
|
|
11183
|
+
valueValidator: (r) => r ? Bl(r) : !1
|
|
11180
11184
|
}
|
|
11181
11185
|
) });
|
|
11182
|
-
},
|
|
11186
|
+
}, Th = (e) => {
|
|
11183
11187
|
const { visible: t, onIdSubmitted: n, onCancel: r, isSearching: o } = e, { t: s } = he(), a = J(null), l = J(!1);
|
|
11184
11188
|
function c(u) {
|
|
11185
11189
|
const f = u.id.split(",").map((d) => parseInt(d.trim()));
|
|
@@ -11232,7 +11236,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
|
|
|
11232
11236
|
tabIndex: 1,
|
|
11233
11237
|
loading: o,
|
|
11234
11238
|
style: { marginLeft: 15 },
|
|
11235
|
-
icon: /* @__PURE__ */ i(
|
|
11239
|
+
icon: /* @__PURE__ */ i(ll, {}),
|
|
11236
11240
|
htmlType: "submit",
|
|
11237
11241
|
disabled: o,
|
|
11238
11242
|
onClick: () => {
|
|
@@ -11261,9 +11265,9 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
|
|
|
11261
11265
|
] })
|
|
11262
11266
|
}
|
|
11263
11267
|
);
|
|
11264
|
-
}, { useToken:
|
|
11265
|
-
function
|
|
11266
|
-
const { badgeNumber: t = 0, ...n } = e, { token: r } =
|
|
11268
|
+
}, { useToken: Oh } = Ge;
|
|
11269
|
+
function ba(e) {
|
|
11270
|
+
const { badgeNumber: t = 0, ...n } = e, { token: r } = Oh();
|
|
11267
11271
|
return /* @__PURE__ */ E("div", { style: { position: "relative" }, children: [
|
|
11268
11272
|
t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
|
|
11269
11273
|
"span",
|
|
@@ -11282,7 +11286,7 @@ function wa(e) {
|
|
|
11282
11286
|
}
|
|
11283
11287
|
) }),
|
|
11284
11288
|
/* @__PURE__ */ i(
|
|
11285
|
-
|
|
11289
|
+
nt,
|
|
11286
11290
|
{
|
|
11287
11291
|
...n,
|
|
11288
11292
|
style: { width: 46, zIndex: 0 }
|
|
@@ -11290,7 +11294,7 @@ function wa(e) {
|
|
|
11290
11294
|
)
|
|
11291
11295
|
] });
|
|
11292
11296
|
}
|
|
11293
|
-
function
|
|
11297
|
+
function Fh({ refreshGraph: e }) {
|
|
11294
11298
|
const { t } = he(), {
|
|
11295
11299
|
availableViews: n,
|
|
11296
11300
|
currentView: r,
|
|
@@ -11304,7 +11308,7 @@ function Oh({ refreshGraph: e }) {
|
|
|
11304
11308
|
} = te(at);
|
|
11305
11309
|
return /* @__PURE__ */ E(Je, { wrap: !0, children: [
|
|
11306
11310
|
/* @__PURE__ */ i(
|
|
11307
|
-
|
|
11311
|
+
ba,
|
|
11308
11312
|
{
|
|
11309
11313
|
icon: /* @__PURE__ */ i(
|
|
11310
11314
|
Gi,
|
|
@@ -11322,7 +11326,7 @@ function Oh({ refreshGraph: e }) {
|
|
|
11322
11326
|
}
|
|
11323
11327
|
),
|
|
11324
11328
|
/* @__PURE__ */ i(
|
|
11325
|
-
|
|
11329
|
+
ot,
|
|
11326
11330
|
{
|
|
11327
11331
|
icon: /* @__PURE__ */ i(er, {}),
|
|
11328
11332
|
tooltip: t("refresh"),
|
|
@@ -11347,7 +11351,7 @@ function Oh({ refreshGraph: e }) {
|
|
|
11347
11351
|
)
|
|
11348
11352
|
] });
|
|
11349
11353
|
}
|
|
11350
|
-
const { useToken:
|
|
11354
|
+
const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, ar = ({
|
|
11351
11355
|
title: e,
|
|
11352
11356
|
children: t,
|
|
11353
11357
|
showSummary: n = !0
|
|
@@ -11361,7 +11365,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11361
11365
|
totalItems: c,
|
|
11362
11366
|
selectedRowItems: u,
|
|
11363
11367
|
isInfiniteTree: f
|
|
11364
|
-
} = te(at), { t: d } = he(), { token: p } =
|
|
11368
|
+
} = te(at), { t: d } = he(), { token: p } = Ah(), h = me(() => {
|
|
11365
11369
|
if (!n)
|
|
11366
11370
|
return null;
|
|
11367
11371
|
if ((o == null ? void 0 : o.type) === "form" && s) {
|
|
@@ -11443,7 +11447,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11443
11447
|
align: "middle",
|
|
11444
11448
|
children: [
|
|
11445
11449
|
/* @__PURE__ */ E(we, { flex: 2, children: [
|
|
11446
|
-
/* @__PURE__ */ i(
|
|
11450
|
+
/* @__PURE__ */ i(Rh, { level: 3, style: { marginBottom: 0 }, children: e || r }),
|
|
11447
11451
|
h
|
|
11448
11452
|
] }),
|
|
11449
11453
|
/* @__PURE__ */ i(we, { flex: 3, children: /* @__PURE__ */ i(ke, { justify: "end", children: t }) })
|
|
@@ -11452,7 +11456,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11452
11456
|
),
|
|
11453
11457
|
/* @__PURE__ */ i("div", { className: "pb-5" })
|
|
11454
11458
|
] });
|
|
11455
|
-
},
|
|
11459
|
+
}, _h = (e) => {
|
|
11456
11460
|
const { viewData: t, visible: n, model: r, context: o, domain: s, formView: a, treeView: l } = e, c = J(), u = te(
|
|
11457
11461
|
at
|
|
11458
11462
|
), {
|
|
@@ -11507,7 +11511,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11507
11511
|
});
|
|
11508
11512
|
return !n || !t ? null : /* @__PURE__ */ E(ae, { children: [
|
|
11509
11513
|
/* @__PURE__ */ i(ar, { title: t.title || t.name, children: /* @__PURE__ */ i(
|
|
11510
|
-
|
|
11514
|
+
Fh,
|
|
11511
11515
|
{
|
|
11512
11516
|
refreshGraph: () => {
|
|
11513
11517
|
c.current.refresh();
|
|
@@ -11548,7 +11552,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11548
11552
|
}
|
|
11549
11553
|
)
|
|
11550
11554
|
] });
|
|
11551
|
-
},
|
|
11555
|
+
}, Vh = (e) => {
|
|
11552
11556
|
const {
|
|
11553
11557
|
visible: t,
|
|
11554
11558
|
formRef: n,
|
|
@@ -11564,7 +11568,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11564
11568
|
setCurrentItemIndex: p
|
|
11565
11569
|
} = e;
|
|
11566
11570
|
return t ? /* @__PURE__ */ E(ae, { children: [
|
|
11567
|
-
/* @__PURE__ */ i(ar, { children: /* @__PURE__ */ i(
|
|
11571
|
+
/* @__PURE__ */ i(ar, { children: /* @__PURE__ */ i(Sh, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
11568
11572
|
/* @__PURE__ */ i(
|
|
11569
11573
|
hn,
|
|
11570
11574
|
{
|
|
@@ -11584,7 +11588,7 @@ const { useToken: Fh } = Ge, { Title: Ah, Text: $n } = _t, ar = ({
|
|
|
11584
11588
|
)
|
|
11585
11589
|
] }) : null;
|
|
11586
11590
|
};
|
|
11587
|
-
function
|
|
11591
|
+
function Eh(e) {
|
|
11588
11592
|
const { onSearch: t, disabled: n = !1, searchText: r } = e, { t: o } = he(), [s] = pt.useForm(), [a, l] = x(!1);
|
|
11589
11593
|
function c(f) {
|
|
11590
11594
|
t(f.search);
|
|
@@ -11606,7 +11610,7 @@ function Vh(e) {
|
|
|
11606
11610
|
},
|
|
11607
11611
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
11608
11612
|
suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Ft, { title: o("clear"), children: /* @__PURE__ */ i(
|
|
11609
|
-
|
|
11613
|
+
cl,
|
|
11610
11614
|
{
|
|
11611
11615
|
style: { color: "rgba(0,0,0,.45)" },
|
|
11612
11616
|
onClick: u
|
|
@@ -11625,7 +11629,7 @@ function Vh(e) {
|
|
|
11625
11629
|
) })
|
|
11626
11630
|
] }) });
|
|
11627
11631
|
}
|
|
11628
|
-
function
|
|
11632
|
+
function Dh(e) {
|
|
11629
11633
|
var B;
|
|
11630
11634
|
const {
|
|
11631
11635
|
availableViews: t,
|
|
@@ -11758,7 +11762,7 @@ function Eh(e) {
|
|
|
11758
11762
|
] }),
|
|
11759
11763
|
A ? null : /* @__PURE__ */ E(ae, { children: [
|
|
11760
11764
|
/* @__PURE__ */ i(
|
|
11761
|
-
|
|
11765
|
+
Eh,
|
|
11762
11766
|
{
|
|
11763
11767
|
disabled: l || a || w,
|
|
11764
11768
|
searchText: y,
|
|
@@ -11769,7 +11773,7 @@ function Eh(e) {
|
|
|
11769
11773
|
}
|
|
11770
11774
|
),
|
|
11771
11775
|
!A && /* @__PURE__ */ i(
|
|
11772
|
-
|
|
11776
|
+
ba,
|
|
11773
11777
|
{
|
|
11774
11778
|
icon: /* @__PURE__ */ i(
|
|
11775
11779
|
Gi,
|
|
@@ -11787,9 +11791,9 @@ function Eh(e) {
|
|
|
11787
11791
|
}
|
|
11788
11792
|
),
|
|
11789
11793
|
Nt(),
|
|
11790
|
-
/* @__PURE__ */ i(
|
|
11794
|
+
/* @__PURE__ */ i(ya, { disabled: w }),
|
|
11791
11795
|
/* @__PURE__ */ i(
|
|
11792
|
-
|
|
11796
|
+
ot,
|
|
11793
11797
|
{
|
|
11794
11798
|
icon: /* @__PURE__ */ i(to, {}),
|
|
11795
11799
|
tooltip: _("duplicate"),
|
|
@@ -11799,7 +11803,7 @@ function Eh(e) {
|
|
|
11799
11803
|
}
|
|
11800
11804
|
),
|
|
11801
11805
|
/* @__PURE__ */ i(
|
|
11802
|
-
|
|
11806
|
+
ga,
|
|
11803
11807
|
{
|
|
11804
11808
|
icon: /* @__PURE__ */ i(Zr, {}),
|
|
11805
11809
|
tooltip: _("delete"),
|
|
@@ -11811,19 +11815,19 @@ function Eh(e) {
|
|
|
11811
11815
|
Nt()
|
|
11812
11816
|
] }),
|
|
11813
11817
|
/* @__PURE__ */ i(
|
|
11814
|
-
|
|
11818
|
+
ot,
|
|
11815
11819
|
{
|
|
11816
11820
|
icon: /* @__PURE__ */ i(Ui, {}),
|
|
11817
11821
|
tooltip: _("showLogs"),
|
|
11818
11822
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
|
|
11819
11823
|
loading: !1,
|
|
11820
11824
|
onClick: () => {
|
|
11821
|
-
|
|
11825
|
+
va(u, o[0].id, _);
|
|
11822
11826
|
}
|
|
11823
11827
|
}
|
|
11824
11828
|
),
|
|
11825
11829
|
/* @__PURE__ */ i(
|
|
11826
|
-
|
|
11830
|
+
ot,
|
|
11827
11831
|
{
|
|
11828
11832
|
icon: /* @__PURE__ */ i(er, {}),
|
|
11829
11833
|
tooltip: _("refresh"),
|
|
@@ -11951,7 +11955,7 @@ function Eh(e) {
|
|
|
11951
11955
|
}
|
|
11952
11956
|
),
|
|
11953
11957
|
/* @__PURE__ */ i(
|
|
11954
|
-
|
|
11958
|
+
lh,
|
|
11955
11959
|
{
|
|
11956
11960
|
visible: W,
|
|
11957
11961
|
onClose: () => M(!1),
|
|
@@ -11973,7 +11977,7 @@ function Eh(e) {
|
|
|
11973
11977
|
function Nt() {
|
|
11974
11978
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
11975
11979
|
}
|
|
11976
|
-
const
|
|
11980
|
+
const Ph = (e) => {
|
|
11977
11981
|
const {
|
|
11978
11982
|
visible: t,
|
|
11979
11983
|
searchTreeRef: n,
|
|
@@ -12017,7 +12021,7 @@ const Dh = (e) => {
|
|
|
12017
12021
|
);
|
|
12018
12022
|
return t ? /* @__PURE__ */ E(Fn, { children: [
|
|
12019
12023
|
/* @__PURE__ */ i(ar, { showSummary: !m, children: /* @__PURE__ */ i(
|
|
12020
|
-
|
|
12024
|
+
Dh,
|
|
12021
12025
|
{
|
|
12022
12026
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
12023
12027
|
parentContext: o,
|
|
@@ -12052,7 +12056,7 @@ const Dh = (e) => {
|
|
|
12052
12056
|
}
|
|
12053
12057
|
)
|
|
12054
12058
|
] }) : null;
|
|
12055
|
-
}, So = mt.createContext(null),
|
|
12059
|
+
}, So = mt.createContext(null), kh = (e) => {
|
|
12056
12060
|
const [t, n] = x(!1), [r, o] = x(!1), { children: s, dashboardRef: a, openAction: l } = e;
|
|
12057
12061
|
return /* @__PURE__ */ i(
|
|
12058
12062
|
So.Provider,
|
|
@@ -12069,14 +12073,14 @@ const Dh = (e) => {
|
|
|
12069
12073
|
}
|
|
12070
12074
|
);
|
|
12071
12075
|
};
|
|
12072
|
-
function
|
|
12076
|
+
function $h() {
|
|
12073
12077
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = te(So), { t: o } = he();
|
|
12074
12078
|
return /* @__PURE__ */ E(Je, { wrap: !0, children: [
|
|
12075
12079
|
/* @__PURE__ */ i(
|
|
12076
|
-
|
|
12080
|
+
ot,
|
|
12077
12081
|
{
|
|
12078
12082
|
icon: /* @__PURE__ */ i(
|
|
12079
|
-
|
|
12083
|
+
dl,
|
|
12080
12084
|
{
|
|
12081
12085
|
style: { color: n ? "white" : void 0 }
|
|
12082
12086
|
}
|
|
@@ -12090,11 +12094,11 @@ function kh() {
|
|
|
12090
12094
|
}
|
|
12091
12095
|
}
|
|
12092
12096
|
),
|
|
12093
|
-
|
|
12097
|
+
Nh(),
|
|
12094
12098
|
/* @__PURE__ */ i(
|
|
12095
|
-
|
|
12099
|
+
ot,
|
|
12096
12100
|
{
|
|
12097
|
-
icon: /* @__PURE__ */ i(
|
|
12101
|
+
icon: /* @__PURE__ */ i(ul, {}),
|
|
12098
12102
|
tooltip: o("configDashboard"),
|
|
12099
12103
|
disabled: e,
|
|
12100
12104
|
loading: !1,
|
|
@@ -12104,7 +12108,7 @@ function kh() {
|
|
|
12104
12108
|
}
|
|
12105
12109
|
),
|
|
12106
12110
|
/* @__PURE__ */ i(
|
|
12107
|
-
|
|
12111
|
+
ot,
|
|
12108
12112
|
{
|
|
12109
12113
|
icon: /* @__PURE__ */ i(er, {}),
|
|
12110
12114
|
tooltip: o("refresh"),
|
|
@@ -12117,24 +12121,24 @@ function kh() {
|
|
|
12117
12121
|
)
|
|
12118
12122
|
] });
|
|
12119
12123
|
}
|
|
12120
|
-
function
|
|
12124
|
+
function Nh() {
|
|
12121
12125
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
12122
12126
|
}
|
|
12123
|
-
const
|
|
12127
|
+
const Mh = (e) => {
|
|
12124
12128
|
const { dashboardData: t, visible: n } = e, r = J(), o = te(
|
|
12125
12129
|
bt
|
|
12126
12130
|
), { openShortcut: s } = o || {};
|
|
12127
12131
|
return !t || !n ? null : /* @__PURE__ */ E(
|
|
12128
|
-
|
|
12132
|
+
kh,
|
|
12129
12133
|
{
|
|
12130
12134
|
dashboardRef: r,
|
|
12131
12135
|
openAction: (a) => {
|
|
12132
12136
|
s(a);
|
|
12133
12137
|
},
|
|
12134
12138
|
children: [
|
|
12135
|
-
/* @__PURE__ */ i(ar, { children: /* @__PURE__ */ i(
|
|
12139
|
+
/* @__PURE__ */ i(ar, { children: /* @__PURE__ */ i($h, {}) }),
|
|
12136
12140
|
/* @__PURE__ */ i(
|
|
12137
|
-
|
|
12141
|
+
qh,
|
|
12138
12142
|
{
|
|
12139
12143
|
ref: r,
|
|
12140
12144
|
model: t.model,
|
|
@@ -12147,7 +12151,7 @@ const Nh = (e) => {
|
|
|
12147
12151
|
}
|
|
12148
12152
|
);
|
|
12149
12153
|
};
|
|
12150
|
-
async function
|
|
12154
|
+
async function Lh(e) {
|
|
12151
12155
|
const t = await Promise.all(
|
|
12152
12156
|
e.map(async (r) => {
|
|
12153
12157
|
try {
|
|
@@ -12162,7 +12166,7 @@ async function Mh(e) {
|
|
|
12162
12166
|
info: t[o]
|
|
12163
12167
|
})).filter((r) => r.info !== null);
|
|
12164
12168
|
}
|
|
12165
|
-
function
|
|
12169
|
+
function jh(e, t) {
|
|
12166
12170
|
const {
|
|
12167
12171
|
domain: n,
|
|
12168
12172
|
model: r,
|
|
@@ -12227,7 +12231,7 @@ function Lh(e, t) {
|
|
|
12227
12231
|
viewTuple: Ne
|
|
12228
12232
|
});
|
|
12229
12233
|
}
|
|
12230
|
-
const Se = await
|
|
12234
|
+
const Se = await Lh(Ce);
|
|
12231
12235
|
for (const Ne of Se) {
|
|
12232
12236
|
if (!Ne)
|
|
12233
12237
|
continue;
|
|
@@ -12358,7 +12362,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12358
12362
|
switch (Y.type) {
|
|
12359
12363
|
case "form":
|
|
12360
12364
|
return /* @__PURE__ */ i(
|
|
12361
|
-
|
|
12365
|
+
Vh,
|
|
12362
12366
|
{
|
|
12363
12367
|
formRef: G,
|
|
12364
12368
|
currentId: R,
|
|
@@ -12377,7 +12381,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12377
12381
|
);
|
|
12378
12382
|
case "tree":
|
|
12379
12383
|
return /* @__PURE__ */ i(
|
|
12380
|
-
|
|
12384
|
+
Ph,
|
|
12381
12385
|
{
|
|
12382
12386
|
visible: y.type === Y.type && y.view_id === Y.view_id,
|
|
12383
12387
|
limit: g,
|
|
@@ -12398,7 +12402,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12398
12402
|
);
|
|
12399
12403
|
case "graph":
|
|
12400
12404
|
return /* @__PURE__ */ i(
|
|
12401
|
-
|
|
12405
|
+
_h,
|
|
12402
12406
|
{
|
|
12403
12407
|
visible: y.type === Y.type && y.view_id === Y.view_id,
|
|
12404
12408
|
viewData: Y,
|
|
@@ -12412,7 +12416,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12412
12416
|
);
|
|
12413
12417
|
case "dashboard":
|
|
12414
12418
|
return /* @__PURE__ */ i(
|
|
12415
|
-
|
|
12419
|
+
Mh,
|
|
12416
12420
|
{
|
|
12417
12421
|
dashboardData: Y,
|
|
12418
12422
|
visible: y.type === Y.type && y.view_id === Y.view_id
|
|
@@ -12434,7 +12438,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12434
12438
|
}
|
|
12435
12439
|
}
|
|
12436
12440
|
return b ? /* @__PURE__ */ i(We, {}) : y ? /* @__PURE__ */ E(
|
|
12437
|
-
|
|
12441
|
+
vd,
|
|
12438
12442
|
{
|
|
12439
12443
|
title: a,
|
|
12440
12444
|
currentView: y,
|
|
@@ -12464,7 +12468,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12464
12468
|
children: [
|
|
12465
12469
|
fe(),
|
|
12466
12470
|
/* @__PURE__ */ i(
|
|
12467
|
-
|
|
12471
|
+
Th,
|
|
12468
12472
|
{
|
|
12469
12473
|
visible: Q,
|
|
12470
12474
|
onIdSubmitted: Te,
|
|
@@ -12478,8 +12482,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12478
12482
|
}
|
|
12479
12483
|
) : null;
|
|
12480
12484
|
}
|
|
12481
|
-
const
|
|
12482
|
-
const
|
|
12485
|
+
const Sa = yt(jh);
|
|
12486
|
+
const Bh = Kl(ql), Hh = (e) => {
|
|
12483
12487
|
const { children: t = [], onPositionItemsChanged: n } = e, r = mt.Children.map(
|
|
12484
12488
|
t,
|
|
12485
12489
|
(o) => {
|
|
@@ -12488,7 +12492,7 @@ const jh = Gl(Kl), Bh = (e) => {
|
|
|
12488
12492
|
}
|
|
12489
12493
|
);
|
|
12490
12494
|
return /* @__PURE__ */ i(
|
|
12491
|
-
|
|
12495
|
+
Bh,
|
|
12492
12496
|
{
|
|
12493
12497
|
className: "layout",
|
|
12494
12498
|
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
@@ -12509,7 +12513,7 @@ const jh = Gl(Kl), Bh = (e) => {
|
|
|
12509
12513
|
}
|
|
12510
12514
|
);
|
|
12511
12515
|
};
|
|
12512
|
-
function
|
|
12516
|
+
function Uh(e) {
|
|
12513
12517
|
const {
|
|
12514
12518
|
action: t,
|
|
12515
12519
|
model: n,
|
|
@@ -12591,7 +12595,7 @@ function Hh(e) {
|
|
|
12591
12595
|
treeView: m
|
|
12592
12596
|
});
|
|
12593
12597
|
}, le = () => !m || !g ? null : /* @__PURE__ */ E("div", { style: { overflowY: "scroll" }, children: [
|
|
12594
|
-
L && /* @__PURE__ */ i(
|
|
12598
|
+
L && /* @__PURE__ */ i(rt, { className: "mt-10", message: L, type: "error", banner: !0 }),
|
|
12595
12599
|
/* @__PURE__ */ i(
|
|
12596
12600
|
Dn,
|
|
12597
12601
|
{
|
|
@@ -12619,9 +12623,9 @@ function Hh(e) {
|
|
|
12619
12623
|
}
|
|
12620
12624
|
)
|
|
12621
12625
|
] });
|
|
12622
|
-
return M ? /* @__PURE__ */ i(
|
|
12626
|
+
return M ? /* @__PURE__ */ i(rt, { className: "mt-10", message: M, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : le();
|
|
12623
12627
|
}
|
|
12624
|
-
const
|
|
12628
|
+
const Wh = an(Uh), Gh = (e) => {
|
|
12625
12629
|
const { model: t } = e, [n, r] = x();
|
|
12626
12630
|
ue(() => {
|
|
12627
12631
|
o();
|
|
@@ -12636,7 +12640,7 @@ const Uh = an(Hh), Wh = (e) => {
|
|
|
12636
12640
|
}
|
|
12637
12641
|
return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(hn, { ...e, model: t, id: n, readOnly: !0 }) });
|
|
12638
12642
|
}, xr = "line_ids";
|
|
12639
|
-
function
|
|
12643
|
+
function Kh(e, t) {
|
|
12640
12644
|
const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = x([]), [c, u] = x(!1), [f, d] = x(), {
|
|
12641
12645
|
setIsLoading: p,
|
|
12642
12646
|
openAction: h,
|
|
@@ -12768,7 +12772,7 @@ function Gh(e, t) {
|
|
|
12768
12772
|
async function A() {
|
|
12769
12773
|
h(s);
|
|
12770
12774
|
}
|
|
12771
|
-
return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(
|
|
12775
|
+
return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Hh, { onPositionItemsChanged: V, children: a.map((F, P) => {
|
|
12772
12776
|
const { actionData: _, values: k } = F, { position: L, id: W } = k, {
|
|
12773
12777
|
actionId: M,
|
|
12774
12778
|
actionType: D,
|
|
@@ -12804,10 +12808,10 @@ function Gh(e, t) {
|
|
|
12804
12808
|
W
|
|
12805
12809
|
);
|
|
12806
12810
|
} else if ((B == null ? void 0 : B.type) === "form")
|
|
12807
|
-
ee = /* @__PURE__ */ i(
|
|
12811
|
+
ee = /* @__PURE__ */ i(Gh, { model: H, actionDomain: Z }, W);
|
|
12808
12812
|
else if ((B == null ? void 0 : B.type) === "tree")
|
|
12809
12813
|
ee = /* @__PURE__ */ i(
|
|
12810
|
-
|
|
12814
|
+
Wh,
|
|
12811
12815
|
{
|
|
12812
12816
|
model: H,
|
|
12813
12817
|
domain: Z,
|
|
@@ -12843,7 +12847,7 @@ function Gh(e, t) {
|
|
|
12843
12847
|
else if (B !== void 0) {
|
|
12844
12848
|
const pe = B && Array.isArray(B.id) ? { ...B, id: B.id[0] } : B;
|
|
12845
12849
|
ee = /* @__PURE__ */ i(
|
|
12846
|
-
|
|
12850
|
+
Sa,
|
|
12847
12851
|
{
|
|
12848
12852
|
action_id: M,
|
|
12849
12853
|
action_type: D,
|
|
@@ -12898,10 +12902,10 @@ function Gh(e, t) {
|
|
|
12898
12902
|
);
|
|
12899
12903
|
}) });
|
|
12900
12904
|
}
|
|
12901
|
-
const
|
|
12905
|
+
const qh = yt(Kh), Yh = (e) => {
|
|
12902
12906
|
const { ooui: t } = e;
|
|
12903
|
-
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(
|
|
12904
|
-
},
|
|
12907
|
+
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(zh, { ooui: t }) });
|
|
12908
|
+
}, zh = (e) => {
|
|
12905
12909
|
const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = x([]), [c, u] = x(), [f, d] = x(!1), { relation: p, context: h, readOnly: m, field: v, columns: g } = n, y = te(Be), { getContext: w } = y || {};
|
|
12906
12910
|
St(() => {
|
|
12907
12911
|
C();
|
|
@@ -12944,7 +12948,7 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
12944
12948
|
d(!1);
|
|
12945
12949
|
}
|
|
12946
12950
|
if (c)
|
|
12947
|
-
return /* @__PURE__ */ i(
|
|
12951
|
+
return /* @__PURE__ */ i(rt, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
12948
12952
|
}
|
|
12949
12953
|
const b = () => {
|
|
12950
12954
|
T(a.map((R) => R.value));
|
|
@@ -12982,7 +12986,7 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
12982
12986
|
/* @__PURE__ */ i(je, { onClick: O, disabled: s.length === 0, children: "Uncheck all" })
|
|
12983
12987
|
] })
|
|
12984
12988
|
] }) });
|
|
12985
|
-
},
|
|
12989
|
+
}, Jh = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Qh, { ...e }) }), Qh = (e) => {
|
|
12986
12990
|
const { value: t, ooui: n } = e;
|
|
12987
12991
|
return /* @__PURE__ */ i(
|
|
12988
12992
|
"div",
|
|
@@ -12992,34 +12996,34 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
12992
12996
|
overflow: "auto"
|
|
12993
12997
|
},
|
|
12994
12998
|
children: /* @__PURE__ */ i(
|
|
12995
|
-
|
|
12999
|
+
Hl,
|
|
12996
13000
|
{
|
|
12997
|
-
remarkPlugins: [
|
|
13001
|
+
remarkPlugins: [Ul],
|
|
12998
13002
|
className: "markdown-typography",
|
|
12999
13003
|
children: t
|
|
13000
13004
|
}
|
|
13001
13005
|
)
|
|
13002
13006
|
}
|
|
13003
13007
|
);
|
|
13004
|
-
}, Qh = (e) => {
|
|
13005
|
-
const { ooui: t } = e, { required: n } = t;
|
|
13006
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Xh, { ...e }) });
|
|
13007
13008
|
}, Xh = (e) => {
|
|
13009
|
+
const { ooui: t } = e, { required: n } = t;
|
|
13010
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Zh, { ...e }) });
|
|
13011
|
+
}, Zh = (e) => {
|
|
13008
13012
|
const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
|
|
13009
13013
|
const [f, d] = u;
|
|
13010
13014
|
return /* @__PURE__ */ i(To, { value: f, children: d }, f);
|
|
13011
13015
|
});
|
|
13012
13016
|
return /* @__PURE__ */ i(To.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Je, { direction: a, children: c }) });
|
|
13013
|
-
}, Zh = (e) => {
|
|
13014
|
-
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
13015
|
-
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(eg, { id: n, readOnly: r, required: o }) });
|
|
13016
13017
|
}, eg = (e) => {
|
|
13017
|
-
const {
|
|
13018
|
-
return /* @__PURE__ */ i(
|
|
13018
|
+
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
13019
|
+
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(tg, { id: n, readOnly: r, required: o }) });
|
|
13019
13020
|
}, tg = (e) => {
|
|
13020
|
-
const {
|
|
13021
|
-
return /* @__PURE__ */ i(
|
|
13021
|
+
const { required: t, readOnly: n, ...r } = e;
|
|
13022
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Ua, { disabled: n, ...r }) });
|
|
13022
13023
|
}, ng = (e) => {
|
|
13024
|
+
const { ooui: t } = e, { required: n } = t;
|
|
13025
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(rg, { ...e }) });
|
|
13026
|
+
}, rg = (e) => {
|
|
13023
13027
|
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = te(Be), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
|
|
13024
13028
|
let u = "process", f = "";
|
|
13025
13029
|
return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Oo, { current: c, status: u, children: l.map((d, p) => /* @__PURE__ */ i(
|
|
@@ -13029,7 +13033,7 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
13029
13033
|
description: p === c && u === "error" ? f : null
|
|
13030
13034
|
}
|
|
13031
13035
|
)) });
|
|
13032
|
-
},
|
|
13036
|
+
}, og = (e) => {
|
|
13033
13037
|
const {
|
|
13034
13038
|
token: {
|
|
13035
13039
|
colorPrimaryBg: t,
|
|
@@ -13092,7 +13096,7 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
13092
13096
|
/* @__PURE__ */ i("div", { style: f }),
|
|
13093
13097
|
/* @__PURE__ */ i("div", { style: d(h.active) })
|
|
13094
13098
|
] }, m)) });
|
|
13095
|
-
},
|
|
13099
|
+
}, ig = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(og, {}) }), sg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(ag, { ...e }) }), ag = (e) => {
|
|
13096
13100
|
const { ooui: t, value: n, onChange: r } = e, { lang: o, height: s, readOnly: a } = t, l = te(Be), { elementHasLostFocus: c } = l || {}, u = N(
|
|
13097
13101
|
(d) => {
|
|
13098
13102
|
c && d.onDidBlurEditorWidget(() => c());
|
|
@@ -13108,7 +13112,7 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
13108
13112
|
return n;
|
|
13109
13113
|
}, [o, n]);
|
|
13110
13114
|
return /* @__PURE__ */ i(
|
|
13111
|
-
|
|
13115
|
+
Wl,
|
|
13112
13116
|
{
|
|
13113
13117
|
value: f,
|
|
13114
13118
|
options: {
|
|
@@ -13120,13 +13124,13 @@ const Kh = yt(Gh), qh = (e) => {
|
|
|
13120
13124
|
onChange: r
|
|
13121
13125
|
}
|
|
13122
13126
|
);
|
|
13123
|
-
}, { Meta:
|
|
13124
|
-
const r = `https://www.gravatar.com/avatar/${
|
|
13127
|
+
}, { Meta: lg } = Hr, { Text: cg } = _t, dg = ({ email: e, size: t = 40, theme: n = "" }) => {
|
|
13128
|
+
const r = `https://www.gravatar.com/avatar/${Gl(
|
|
13125
13129
|
e
|
|
13126
13130
|
)}?s=${t}&d=${n}`;
|
|
13127
13131
|
return /* @__PURE__ */ i(Fi, { src: r, size: t });
|
|
13128
13132
|
};
|
|
13129
|
-
function
|
|
13133
|
+
function ug({ text: e }) {
|
|
13130
13134
|
const t = e.split(`
|
|
13131
13135
|
`);
|
|
13132
13136
|
return /* @__PURE__ */ i("div", { children: t.map((n, r) => /* @__PURE__ */ E(Fn, { children: [
|
|
@@ -13134,13 +13138,13 @@ function dg({ text: e }) {
|
|
|
13134
13138
|
r !== t.length - 1 && /* @__PURE__ */ i("br", {})
|
|
13135
13139
|
] }, r)) });
|
|
13136
13140
|
}
|
|
13137
|
-
const
|
|
13141
|
+
const fg = (e) => {
|
|
13138
13142
|
const { data: t, style: n } = e, { t: r } = he();
|
|
13139
13143
|
return /* @__PURE__ */ E(Hr, { style: { ...n, textAlign: "start" }, children: [
|
|
13140
13144
|
/* @__PURE__ */ i(
|
|
13141
|
-
|
|
13145
|
+
lg,
|
|
13142
13146
|
{
|
|
13143
|
-
avatar: /* @__PURE__ */ i(
|
|
13147
|
+
avatar: /* @__PURE__ */ i(dg, { email: t.email, theme: "mp" }),
|
|
13144
13148
|
title: t.author,
|
|
13145
13149
|
description: /* @__PURE__ */ E(Je, { direction: "horizontal", children: [
|
|
13146
13150
|
/* @__PURE__ */ i("span", { title: t.date, children: st(t.date).fromNow() }),
|
|
@@ -13149,9 +13153,9 @@ const ug = (e) => {
|
|
|
13149
13153
|
style: { marginBottom: "5px" }
|
|
13150
13154
|
}
|
|
13151
13155
|
),
|
|
13152
|
-
/* @__PURE__ */ i(
|
|
13156
|
+
/* @__PURE__ */ i(cg, { children: /* @__PURE__ */ i(ug, { text: t.text }) })
|
|
13153
13157
|
] }, t.id);
|
|
13154
|
-
},
|
|
13158
|
+
}, mg = (e) => {
|
|
13155
13159
|
const { value: t, ooui: n } = e, r = (t || []).map((o) => {
|
|
13156
13160
|
if (o.type === "action")
|
|
13157
13161
|
return {
|
|
@@ -13162,7 +13166,7 @@ const ug = (e) => {
|
|
|
13162
13166
|
color: "gray",
|
|
13163
13167
|
position: o.event.isSender ? "left" : "right",
|
|
13164
13168
|
label: o.event.date,
|
|
13165
|
-
children: /* @__PURE__ */ i(
|
|
13169
|
+
children: /* @__PURE__ */ i(fg, { data: o.event })
|
|
13166
13170
|
};
|
|
13167
13171
|
});
|
|
13168
13172
|
return /* @__PURE__ */ i(
|
|
@@ -13179,7 +13183,7 @@ const ug = (e) => {
|
|
|
13179
13183
|
}
|
|
13180
13184
|
}
|
|
13181
13185
|
);
|
|
13182
|
-
},
|
|
13186
|
+
}, pg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(mg, { ooui: e.ooui }) }), hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(yl, {}) }), gg = (e) => {
|
|
13183
13187
|
const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
|
|
13184
13188
|
function a(c) {
|
|
13185
13189
|
if (c) {
|
|
@@ -13189,7 +13193,7 @@ const ug = (e) => {
|
|
|
13189
13193
|
}
|
|
13190
13194
|
const l = t.buttons.map((c) => /* @__PURE__ */ i(oo, { ooui: c }));
|
|
13191
13195
|
return /* @__PURE__ */ i(
|
|
13192
|
-
|
|
13196
|
+
rt,
|
|
13193
13197
|
{
|
|
13194
13198
|
message: /* @__PURE__ */ i(In, { content: n }),
|
|
13195
13199
|
description: /* @__PURE__ */ i(In, { content: r }),
|
|
@@ -13199,18 +13203,18 @@ const ug = (e) => {
|
|
|
13199
13203
|
icon: a(s)
|
|
13200
13204
|
}
|
|
13201
13205
|
);
|
|
13202
|
-
}, { Content:
|
|
13203
|
-
function
|
|
13206
|
+
}, { Content: yg } = Ri, { Title: vg } = _t;
|
|
13207
|
+
function wg() {
|
|
13204
13208
|
const { t: e } = he();
|
|
13205
|
-
return /* @__PURE__ */ i(
|
|
13209
|
+
return /* @__PURE__ */ i(yg, { className: "m-5 select-none", children: /* @__PURE__ */ i(vg, { level: 5, children: e("welcome") }) });
|
|
13206
13210
|
}
|
|
13207
|
-
function
|
|
13211
|
+
function bg(e, t) {
|
|
13208
13212
|
const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = ao(), [c, u] = x([
|
|
13209
13213
|
{
|
|
13210
13214
|
title: s("welcome"),
|
|
13211
13215
|
key: "welcome",
|
|
13212
13216
|
closable: !0,
|
|
13213
|
-
content: /* @__PURE__ */ i(
|
|
13217
|
+
content: /* @__PURE__ */ i(wg, {})
|
|
13214
13218
|
}
|
|
13215
13219
|
]), f = J(/* @__PURE__ */ new Map()), d = J();
|
|
13216
13220
|
vt(t, () => ({
|
|
@@ -13496,7 +13500,7 @@ function wg(e, t) {
|
|
|
13496
13500
|
type: F
|
|
13497
13501
|
},
|
|
13498
13502
|
content: /* @__PURE__ */ i(
|
|
13499
|
-
|
|
13503
|
+
Sa,
|
|
13500
13504
|
{
|
|
13501
13505
|
action_id: A,
|
|
13502
13506
|
action_type: F,
|
|
@@ -13520,7 +13524,7 @@ function wg(e, t) {
|
|
|
13520
13524
|
}
|
|
13521
13525
|
}
|
|
13522
13526
|
return /* @__PURE__ */ i(
|
|
13523
|
-
|
|
13527
|
+
xd,
|
|
13524
13528
|
{
|
|
13525
13529
|
openShortcut: y,
|
|
13526
13530
|
openAction: I,
|
|
@@ -13536,7 +13540,7 @@ function wg(e, t) {
|
|
|
13536
13540
|
o(C);
|
|
13537
13541
|
},
|
|
13538
13542
|
children: /* @__PURE__ */ i(
|
|
13539
|
-
|
|
13543
|
+
zd,
|
|
13540
13544
|
{
|
|
13541
13545
|
ref: d,
|
|
13542
13546
|
globalValues: a,
|
|
@@ -13546,9 +13550,9 @@ function wg(e, t) {
|
|
|
13546
13550
|
}
|
|
13547
13551
|
);
|
|
13548
13552
|
}
|
|
13549
|
-
const
|
|
13550
|
-
function
|
|
13551
|
-
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } =
|
|
13553
|
+
const Sy = yt(bg), { useToken: Sg } = Ge;
|
|
13554
|
+
function Cg(e) {
|
|
13555
|
+
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = Sg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
13552
13556
|
return /* @__PURE__ */ E(
|
|
13553
13557
|
"div",
|
|
13554
13558
|
{
|
|
@@ -13618,12 +13622,12 @@ function Sg(e) {
|
|
|
13618
13622
|
}
|
|
13619
13623
|
);
|
|
13620
13624
|
}
|
|
13621
|
-
function
|
|
13625
|
+
function Cy() {
|
|
13622
13626
|
const e = te(
|
|
13623
13627
|
bt
|
|
13624
13628
|
), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
|
|
13625
13629
|
return /* @__PURE__ */ i(ae, { children: n.map((s) => /* @__PURE__ */ i(
|
|
13626
|
-
|
|
13630
|
+
Cg,
|
|
13627
13631
|
{
|
|
13628
13632
|
tabKey: s.key,
|
|
13629
13633
|
label: s.title,
|
|
@@ -13634,7 +13638,7 @@ function Sy() {
|
|
|
13634
13638
|
s.key
|
|
13635
13639
|
)) });
|
|
13636
13640
|
}
|
|
13637
|
-
function
|
|
13641
|
+
function xg(e) {
|
|
13638
13642
|
const { tab: t } = e, n = te(
|
|
13639
13643
|
bt
|
|
13640
13644
|
), { activeKey: r } = n || {}, o = {
|
|
@@ -13642,21 +13646,21 @@ function Cg(e) {
|
|
|
13642
13646
|
};
|
|
13643
13647
|
return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
|
|
13644
13648
|
}
|
|
13645
|
-
const
|
|
13646
|
-
function
|
|
13649
|
+
const Ig = mt.memo(xg, () => !0);
|
|
13650
|
+
function xy() {
|
|
13647
13651
|
const e = te(
|
|
13648
13652
|
bt
|
|
13649
|
-
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(
|
|
13653
|
+
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Ig, { tab: r }, r.key))) || null;
|
|
13650
13654
|
return /* @__PURE__ */ i(ae, { children: n });
|
|
13651
13655
|
}
|
|
13652
|
-
const { useToken:
|
|
13656
|
+
const { useToken: Tg } = Ge, Iy = (e) => {
|
|
13653
13657
|
const {
|
|
13654
13658
|
onRetrieveShortcuts: t,
|
|
13655
13659
|
onCheckIsFavourite: n,
|
|
13656
13660
|
onAddFavourite: r,
|
|
13657
13661
|
onRemoveFavourite: o,
|
|
13658
13662
|
onDropdownClosed: s
|
|
13659
|
-
} = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } =
|
|
13663
|
+
} = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Tg(), p = J(null), h = te(
|
|
13660
13664
|
bt
|
|
13661
13665
|
), {
|
|
13662
13666
|
openShortcut: m,
|
|
@@ -13751,7 +13755,7 @@ const { useToken: Ig } = Ge, xy = (e) => {
|
|
|
13751
13755
|
v
|
|
13752
13756
|
]);
|
|
13753
13757
|
return /* @__PURE__ */ i(
|
|
13754
|
-
|
|
13758
|
+
vl,
|
|
13755
13759
|
{
|
|
13756
13760
|
ref: p,
|
|
13757
13761
|
isFavourite: a,
|
|
@@ -13776,67 +13780,67 @@ const { useToken: Ig } = Ge, xy = (e) => {
|
|
|
13776
13780
|
);
|
|
13777
13781
|
};
|
|
13778
13782
|
export {
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13783
|
+
Sh as ActionBar,
|
|
13784
|
+
Sa as ActionView,
|
|
13785
|
+
gg as Alert,
|
|
13786
|
+
ig as ArrowStepsField,
|
|
13787
|
+
gh as Binary,
|
|
13788
|
+
vc as Boolean,
|
|
13785
13789
|
oo as Button,
|
|
13786
|
-
|
|
13790
|
+
nc as ButtonGroup,
|
|
13787
13791
|
es as Char,
|
|
13788
|
-
|
|
13789
|
-
|
|
13792
|
+
sg as CodeEditor,
|
|
13793
|
+
pg as CommentsTimelineField,
|
|
13790
13794
|
ls as ConfigContext,
|
|
13791
|
-
|
|
13795
|
+
Qc as ConfigContextProvider,
|
|
13792
13796
|
$ as ConnectionProvider,
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13797
|
+
zd as ContentRootProvider,
|
|
13798
|
+
xy as CurrentTabContent,
|
|
13799
|
+
qh as Dashboard,
|
|
13800
|
+
Hh as DashboardGrid,
|
|
13801
|
+
ch as Date,
|
|
13802
|
+
dh as DateTime,
|
|
13803
|
+
Ih as Email,
|
|
13804
|
+
by as ErpAllFeatureKeys,
|
|
13801
13805
|
fn as ErpFeatureKeys,
|
|
13802
|
-
|
|
13803
|
-
|
|
13806
|
+
lh as ExportModal,
|
|
13807
|
+
Iy as FavouriteButton,
|
|
13804
13808
|
Rs as Float,
|
|
13805
|
-
|
|
13809
|
+
Kp as FloatTime,
|
|
13806
13810
|
hn as Form,
|
|
13807
13811
|
gn as FormModal,
|
|
13808
13812
|
ys as GraphCard,
|
|
13809
|
-
|
|
13813
|
+
td as GraphIndicator,
|
|
13810
13814
|
pa as Group,
|
|
13811
|
-
|
|
13812
|
-
|
|
13815
|
+
hg as HTMLPreview,
|
|
13816
|
+
Cc as Image,
|
|
13813
13817
|
Gn as Integer,
|
|
13814
13818
|
tr as Label,
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13819
|
+
wp as Many2one,
|
|
13820
|
+
Jh as Markdown,
|
|
13821
|
+
Yh as MultiCheckbox,
|
|
13822
|
+
zp as Notebook,
|
|
13823
|
+
Up as One2many,
|
|
13824
|
+
tu as ProgressBar,
|
|
13825
|
+
Xh as Radio,
|
|
13826
|
+
mh as Reference,
|
|
13827
|
+
Sy as RootView,
|
|
13824
13828
|
vo as SearchFilter,
|
|
13825
13829
|
wo as SearchModal,
|
|
13826
13830
|
aa as SearchTree,
|
|
13827
13831
|
ts as Selection,
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
13833
|
-
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13832
|
+
Zp as Separator,
|
|
13833
|
+
ng as Steps,
|
|
13834
|
+
eg as Switch,
|
|
13835
|
+
Cg as Tab,
|
|
13836
|
+
Cy as TabSelector,
|
|
13837
|
+
Vd as Tag,
|
|
13838
|
+
Ed as Tags,
|
|
13839
|
+
Qp as Text,
|
|
13840
|
+
uh as Time,
|
|
13837
13841
|
Dn as Tree,
|
|
13838
|
-
|
|
13839
|
-
|
|
13842
|
+
xh as Url,
|
|
13843
|
+
Fy as dayjs,
|
|
13840
13844
|
dt as iconMapper,
|
|
13841
13845
|
At as showConfirmDialog
|
|
13842
13846
|
};
|