@gisce/react-ooui 2.46.0-alpha.3 → 2.46.0-alpha.4
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 +761 -758
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/custom/Alert.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -4,54 +4,54 @@ var Ro = (e, t, n) => (Ba(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
|
4
4
|
import { jsx as i, jsxs as D, Fragment as se } from "react/jsx-runtime";
|
|
5
5
|
import mt, { useContext as ne, useState as C, useEffect as ae, useRef as Y, useMemo as de, memo as cn, useCallback as N, createContext as Ha, forwardRef as yt, useImperativeHandle as vt, createElement as Ua, Fragment as An } from "react";
|
|
6
6
|
import { Tooltip as Vt, theme as Ke, Typography as Pt, Form as pt, Row as Me, Col as Ce, Modal as dt, Button as Be, Dropdown as Wa, Menu as _o, Spin as Ge, Divider as Jn, Space as Xe, Input as ct, Select as Ut, Checkbox as Cn, Alert as rt, Timeline as Ei, Statistic as Ga, Card as qr, Tag as Yr, message as gr, App as Ka, Progress as qa, Avatar as Di, DatePicker as zr, TimePicker as Ya, InputNumber as Pi, Layout as ki, Badge as Qn, Pagination as za, Tabs as $i, Radio as Vo, Switch as Ja, Steps as Eo } from "antd";
|
|
7
|
-
import { Label as dn, Field as Rr, Tree as Ni, Reference as Qa, Selection as Jr, Many2one as Mi, Boolean as Xa, parseContext as Lt, graphProcessor as Li, graphFieldUtils as Za, parseGraph as ji, Container as el, Form as Bi, parseContextFields as tl, parseDomainFields as nl, Integer as _r, SearchFieldTypes as Rt, SearchFilter as Hi, transformDomainForChildWidget as Qr } from "@gisce/ooui";
|
|
7
|
+
import { Label as dn, Field as Rr, Tree as Ni, Reference as Qa, Selection as Jr, Many2one as Mi, Boolean as Xa, parseContext as Lt, graphProcessor as Li, graphFieldUtils as Za, parseGraph as ji, Container as el, Form as Bi, parseContextFields as tl, parseDomainFields as nl, Integer as _r, SearchFieldTypes as Rt, SearchFilter as Hi, transformDomainForChildWidget as Qr, Button as rl } from "@gisce/ooui";
|
|
8
8
|
import * as Do from "@ant-design/icons";
|
|
9
|
-
import Ui, { QuestionCircleOutlined as Wi, ExclamationCircleOutlined as kt, LoadingOutlined as wt, DownOutlined as Xn, WarningOutlined as Gi, CloseOutlined as un, CheckOutlined as Zn, TranslationOutlined as Ki, FolderOpenOutlined as Xr, DownloadOutlined as Zr, ClearOutlined as er, ExportOutlined as
|
|
9
|
+
import Ui, { QuestionCircleOutlined as Wi, ExclamationCircleOutlined as kt, LoadingOutlined as wt, DownOutlined as Xn, WarningOutlined as Gi, CloseOutlined as un, CheckOutlined as Zn, TranslationOutlined as Ki, FolderOpenOutlined as Xr, DownloadOutlined as Zr, ClearOutlined as er, ExportOutlined as ol, StarFilled as il, StarOutlined as sl, ThunderboltOutlined as eo, PrinterOutlined as to, EnterOutlined as no, SearchOutlined as tr, UpOutlined as al, PlusSquareOutlined as ll, MinusSquareOutlined as cl, FileAddOutlined as nr, AlignLeftOutlined as dl, ApiOutlined as ul, DeleteOutlined as ro, LeftOutlined as qi, RightOutlined as Yi, EyeOutlined as fl, FormOutlined as xn, TableOutlined as oo, AreaChartOutlined as ml, CalendarOutlined as pl, LinkOutlined as Po, SaveOutlined as hl, CopyOutlined as io, InfoCircleOutlined as zi, ReloadOutlined as rr, EditOutlined as Ji, PlusOutlined as gl, FilterOutlined as Qi, CloseCircleFilled as yl, BorderOuterOutlined as vl, SettingOutlined as wl } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as In } from "interweave";
|
|
11
|
-
import { useLocale as fe, FormigaConfigProvider as
|
|
11
|
+
import { useLocale as fe, FormigaConfigProvider as bl, mergeStrings as Sl, Many2OneSuffix as Cl, Many2OneSuffixModal as ko, FieldSet as xl, ExportModal as Il, Dropdown as Xi, DropdownButton as tn, HTMLPreview as Tl, FavouriteButton as Ol } from "@gisce/react-formiga-components";
|
|
12
12
|
import * as $o from "@tabler/icons-react";
|
|
13
|
-
import
|
|
13
|
+
import Al from "antd/lib/input/TextArea";
|
|
14
14
|
import fn from "styled-components";
|
|
15
15
|
import so from "react-measure";
|
|
16
|
-
import
|
|
16
|
+
import Fl from "lodash/debounce";
|
|
17
17
|
import { nanoid as ao } from "nanoid";
|
|
18
18
|
import Vr from "antd/lib/typography/Title";
|
|
19
19
|
import xt from "use-deep-compare-effect";
|
|
20
|
-
import { Line as
|
|
20
|
+
import { Line as Rl, Column as _l, Pie as Vl } 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 By } from "dayjs";
|
|
23
|
+
import El from "dayjs/plugin/advancedFormat";
|
|
24
|
+
import Dl from "dayjs/plugin/customParseFormat";
|
|
25
|
+
import Pl from "dayjs/plugin/isoWeek";
|
|
26
|
+
import kl from "dayjs/plugin/timezone";
|
|
27
|
+
import $l from "dayjs/plugin/duration";
|
|
28
|
+
import Nl from "dayjs/plugin/relativeTime";
|
|
29
|
+
import Ml from "dayjs/plugin/weekday";
|
|
30
|
+
import Ll from "dayjs/plugin/localeData";
|
|
31
31
|
import { createRoot as Zi } from "react-dom/client";
|
|
32
32
|
import { useDeepCompareEffect as or, useDeepCompareCallback as ht, useDeepCompareMemo as Tn } from "use-deep-compare";
|
|
33
|
-
import { InfiniteTable as es, Table as
|
|
34
|
-
import { fileTypeFromBuffer as
|
|
33
|
+
import { InfiniteTable as es, Table as jl } from "@gisce/react-formiga-table";
|
|
34
|
+
import { fileTypeFromBuffer as Bl } from "file-type-buffer-browser";
|
|
35
35
|
import { isPresetStatusColor as ts, isPresetColor as ns } from "antd/lib/_util/colors";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
36
|
+
import Hl from "antd/es/date-picker/locale/en_US";
|
|
37
|
+
import Ul from "antd/es/date-picker/locale/es_ES";
|
|
38
|
+
import Wl from "antd/es/date-picker/locale/ca_ES";
|
|
39
|
+
import Gl from "validator";
|
|
40
40
|
import "@gisce/react-formiga-table/style.css";
|
|
41
|
-
import
|
|
41
|
+
import Kl from "antd/es/typography/Link";
|
|
42
42
|
import Bn from "antd/es/alert/ErrorBoundary";
|
|
43
|
-
import { GridUi as
|
|
43
|
+
import { GridUi as ql } 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 Yl from "validator/lib/isURL";
|
|
46
|
+
import zl from "validator/lib/isEmail";
|
|
47
|
+
import Jl from "react-markdown";
|
|
48
|
+
import Ql from "remark-gfm";
|
|
49
|
+
import Xl from "@monaco-editor/react";
|
|
50
|
+
import Zl from "md5";
|
|
51
|
+
import { WidthProvider as ec, Responsive as tc } from "react-grid-layout";
|
|
52
52
|
import "react-grid-layout/css/styles.css";
|
|
53
|
-
import { AnimatePresence as
|
|
54
|
-
const He = mt.createContext(null),
|
|
53
|
+
import { AnimatePresence as nc, motion as No } from "framer-motion";
|
|
54
|
+
const He = mt.createContext(null), rc = (e) => {
|
|
55
55
|
const {
|
|
56
56
|
children: t,
|
|
57
57
|
activeId: n,
|
|
@@ -93,7 +93,7 @@ const He = mt.createContext(null), nc = (e) => {
|
|
|
93
93
|
children: t
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
},
|
|
96
|
+
}, oc = () => {
|
|
97
97
|
const e = ne(He);
|
|
98
98
|
return e || {
|
|
99
99
|
activeId: void 0,
|
|
@@ -116,7 +116,7 @@ const He = mt.createContext(null), nc = (e) => {
|
|
|
116
116
|
},
|
|
117
117
|
formView: void 0
|
|
118
118
|
};
|
|
119
|
-
}, { Text:
|
|
119
|
+
}, { Text: ic, Title: sc } = Pt, { useToken: ac } = Ke, lc = {
|
|
120
120
|
left: "justify-start",
|
|
121
121
|
center: "justify-center",
|
|
122
122
|
right: "justify-end"
|
|
@@ -124,11 +124,11 @@ const He = mt.createContext(null), nc = (e) => {
|
|
|
124
124
|
const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = ne(He);
|
|
125
125
|
let d = a !== null && o.length > 1 ? o + " :" : o;
|
|
126
126
|
!t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
|
|
127
|
-
const h = n || (a ? r ? "left" : "right" : "left"), { token: m } =
|
|
127
|
+
const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = ac(), y = l === void 0 ? ic : sc;
|
|
128
128
|
return /* @__PURE__ */ D(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
131
|
+
className: `flex flex-row items-center pb-1 pt-1 ${lc[h]}`,
|
|
132
132
|
children: [
|
|
133
133
|
s && /* @__PURE__ */ i(Vt, { title: s, children: /* @__PURE__ */ i(
|
|
134
134
|
Wi,
|
|
@@ -195,14 +195,14 @@ function _e({
|
|
|
195
195
|
m()
|
|
196
196
|
] }))();
|
|
197
197
|
}
|
|
198
|
-
const { confirm:
|
|
198
|
+
const { confirm: cc } = dt, Et = ({
|
|
199
199
|
onOk: e,
|
|
200
200
|
confirmMessage: t,
|
|
201
201
|
okText: n,
|
|
202
202
|
cancelText: r,
|
|
203
203
|
t: o
|
|
204
204
|
}) => {
|
|
205
|
-
|
|
205
|
+
cc({
|
|
206
206
|
title: o("confirmation"),
|
|
207
207
|
icon: /* @__PURE__ */ i(kt, {}),
|
|
208
208
|
centered: !0,
|
|
@@ -304,7 +304,7 @@ const { confirm: lc } = dt, Et = ({
|
|
|
304
304
|
STOCK_UNINDENT: "AlignLeft",
|
|
305
305
|
STOCK_PREFERENCES: "Setting"
|
|
306
306
|
}, ut = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Mo.hasOwnProperty(e) ? Lo(Mo[e], t) : Lo(e, t));
|
|
307
|
-
function
|
|
307
|
+
function dc(e) {
|
|
308
308
|
return `${e.split("-").map(
|
|
309
309
|
(t) => t.replace(
|
|
310
310
|
/\w\S*/g,
|
|
@@ -314,7 +314,7 @@ function cc(e) {
|
|
|
314
314
|
}
|
|
315
315
|
function Lo(e, t) {
|
|
316
316
|
let n = e.charAt(0).toUpperCase() + e.slice(1);
|
|
317
|
-
n.indexOf("-") !== -1 && (n =
|
|
317
|
+
n.indexOf("-") !== -1 && (n = dc(n));
|
|
318
318
|
const r = `${n}Outlined`;
|
|
319
319
|
if (Do[r])
|
|
320
320
|
return () => mt.createElement(Do[r], {
|
|
@@ -383,7 +383,7 @@ const lo = (e) => {
|
|
|
383
383
|
children: r
|
|
384
384
|
}
|
|
385
385
|
) });
|
|
386
|
-
},
|
|
386
|
+
}, uc = (e) => {
|
|
387
387
|
const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
|
|
388
388
|
id: o,
|
|
389
389
|
caption: s,
|
|
@@ -430,7 +430,7 @@ const lo = (e) => {
|
|
|
430
430
|
icon: /* @__PURE__ */ i(Xn, {}),
|
|
431
431
|
type: f ? "primary" : void 0,
|
|
432
432
|
overlay: /* @__PURE__ */ i(
|
|
433
|
-
|
|
433
|
+
fc,
|
|
434
434
|
{
|
|
435
435
|
ooui: r,
|
|
436
436
|
executeButtonAction: m
|
|
@@ -444,7 +444,7 @@ const lo = (e) => {
|
|
|
444
444
|
) });
|
|
445
445
|
if (n)
|
|
446
446
|
return /* @__PURE__ */ i(lo, { ooui: n });
|
|
447
|
-
},
|
|
447
|
+
}, fc = (e) => {
|
|
448
448
|
const { t } = fe(), { ooui: n, executeButtonAction: r } = e;
|
|
449
449
|
if (!n)
|
|
450
450
|
return null;
|
|
@@ -497,7 +497,7 @@ const lo = (e) => {
|
|
|
497
497
|
);
|
|
498
498
|
});
|
|
499
499
|
return /* @__PURE__ */ i(_o, { children: o });
|
|
500
|
-
},
|
|
500
|
+
}, mc = 0.7;
|
|
501
501
|
function jo() {
|
|
502
502
|
const { innerWidth: e, innerHeight: t } = window;
|
|
503
503
|
return {
|
|
@@ -515,7 +515,7 @@ function sr() {
|
|
|
515
515
|
}
|
|
516
516
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
517
517
|
}, []), {
|
|
518
|
-
modalWidth: e.width *
|
|
518
|
+
modalWidth: e.width * mc,
|
|
519
519
|
modalHeight: e.height,
|
|
520
520
|
width: e.width,
|
|
521
521
|
height: e.height
|
|
@@ -551,9 +551,9 @@ const rs = (e) => {
|
|
|
551
551
|
message: t,
|
|
552
552
|
title: r
|
|
553
553
|
};
|
|
554
|
-
}, { error:
|
|
554
|
+
}, { error: pc, warning: hc } = dt, it = (e) => {
|
|
555
555
|
const { message: t, type: n, title: r } = rs(e);
|
|
556
|
-
(n === "error" ?
|
|
556
|
+
(n === "error" ? pc : hc)({
|
|
557
557
|
title: r,
|
|
558
558
|
icon: n === "error" ? /* @__PURE__ */ i(kt, {}) : /* @__PURE__ */ i(Gi, {}),
|
|
559
559
|
centered: !0,
|
|
@@ -602,7 +602,7 @@ const rs = (e) => {
|
|
|
602
602
|
return u.map((R, b) => /* @__PURE__ */ D(Me, { style: { paddingBottom: 20 }, children: [
|
|
603
603
|
/* @__PURE__ */ i(Ce, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
|
|
604
604
|
/* @__PURE__ */ i(Ce, { flex: "auto", children: /* @__PURE__ */ i(
|
|
605
|
-
|
|
605
|
+
Al,
|
|
606
606
|
{
|
|
607
607
|
rows: 4,
|
|
608
608
|
value: y[R.code] || "",
|
|
@@ -683,24 +683,24 @@ function nt(e) {
|
|
|
683
683
|
const { tooltip: t, ...n } = e;
|
|
684
684
|
return /* @__PURE__ */ i(Vt, { title: t, children: /* @__PURE__ */ i(Be, { ...n }) });
|
|
685
685
|
}
|
|
686
|
-
const { info:
|
|
687
|
-
|
|
686
|
+
const { info: gc } = dt, At = (e) => {
|
|
687
|
+
gc({
|
|
688
688
|
title: "",
|
|
689
689
|
centered: !0,
|
|
690
690
|
content: e
|
|
691
691
|
});
|
|
692
|
-
}, { useToken:
|
|
693
|
-
const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } =
|
|
692
|
+
}, { useToken: yc } = Ke, is = (e) => {
|
|
693
|
+
const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = yc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
|
|
694
694
|
let u = /* @__PURE__ */ i(
|
|
695
|
-
|
|
695
|
+
vc,
|
|
696
696
|
{
|
|
697
697
|
ooui: t,
|
|
698
698
|
requiredStyle: c,
|
|
699
699
|
isSearchField: n
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
|
-
return a && !o && !n && (u = /* @__PURE__ */ i(
|
|
703
|
-
},
|
|
702
|
+
return a && !o && !n && (u = /* @__PURE__ */ i(wc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(_e, { required: s, ...e, children: u });
|
|
703
|
+
}, vc = ({
|
|
704
704
|
value: e,
|
|
705
705
|
ooui: t,
|
|
706
706
|
requiredStyle: n,
|
|
@@ -736,7 +736,7 @@ const { info: hc } = dt, At = (e) => {
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
)), s && (h = /* @__PURE__ */ i(ct, { value: e, id: c, disabled: !0 })), h;
|
|
739
|
-
},
|
|
739
|
+
}, wc = ({
|
|
740
740
|
value: e,
|
|
741
741
|
field: t,
|
|
742
742
|
requiredStyle: n,
|
|
@@ -815,16 +815,16 @@ const { info: hc } = dt, At = (e) => {
|
|
|
815
815
|
}
|
|
816
816
|
) })
|
|
817
817
|
] }) });
|
|
818
|
-
}, { defaultAlgorithm:
|
|
818
|
+
}, { defaultAlgorithm: bc, defaultSeed: Sc } = Ke, Cc = bc(Sc), { Option: xc } = Ut, ss = (e) => {
|
|
819
819
|
const { ooui: t } = e, { required: n } = t;
|
|
820
820
|
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(as, { ...e }) });
|
|
821
821
|
}, as = (e) => {
|
|
822
822
|
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) => {
|
|
823
823
|
const [d, p] = f;
|
|
824
|
-
return /* @__PURE__ */ i(
|
|
824
|
+
return /* @__PURE__ */ i(xc, { value: d, children: p }, d);
|
|
825
825
|
});
|
|
826
826
|
return /* @__PURE__ */ i(
|
|
827
|
-
a && !s ?
|
|
827
|
+
a && !s ? Ic : Ut,
|
|
828
828
|
{
|
|
829
829
|
disabled: s,
|
|
830
830
|
onChange: n,
|
|
@@ -836,17 +836,17 @@ const { info: hc } = dt, At = (e) => {
|
|
|
836
836
|
children: c
|
|
837
837
|
}
|
|
838
838
|
);
|
|
839
|
-
},
|
|
839
|
+
}, Ic = fn(Ut)`
|
|
840
840
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
841
|
-
background-color: ${
|
|
841
|
+
background-color: ${Cc.colorPrimaryBg};
|
|
842
842
|
}
|
|
843
|
-
`, { defaultAlgorithm:
|
|
843
|
+
`, { defaultAlgorithm: Tc, defaultSeed: Oc } = Ke, Bo = Tc(Oc), Ac = (e) => {
|
|
844
844
|
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
845
|
-
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(
|
|
846
|
-
},
|
|
845
|
+
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Fc, { id: n, readOnly: r, required: o }) });
|
|
846
|
+
}, Fc = (e) => {
|
|
847
847
|
const { required: t, readOnly: n, ...r } = e;
|
|
848
|
-
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ?
|
|
849
|
-
},
|
|
848
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Rc : Cn, { disabled: n, ...r }) });
|
|
849
|
+
}, Rc = fn(Cn)`
|
|
850
850
|
.ant-checkbox-inner {
|
|
851
851
|
background-color: ${Bo.colorPrimaryBg};
|
|
852
852
|
}
|
|
@@ -855,12 +855,12 @@ const { info: hc } = dt, At = (e) => {
|
|
|
855
855
|
background-color: ${Bo.colorPrimary};
|
|
856
856
|
}
|
|
857
857
|
`;
|
|
858
|
-
function
|
|
858
|
+
function _c(e) {
|
|
859
859
|
const n = Buffer.from(e, "base64").length / 1e3;
|
|
860
860
|
return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
|
|
861
861
|
}
|
|
862
862
|
async function on(e) {
|
|
863
|
-
const t = await
|
|
863
|
+
const t = await Bl(
|
|
864
864
|
Buffer.from(e, "base64")
|
|
865
865
|
);
|
|
866
866
|
return t || {
|
|
@@ -891,10 +891,10 @@ const co = (e) => {
|
|
|
891
891
|
}
|
|
892
892
|
);
|
|
893
893
|
}
|
|
894
|
-
}, _c = (e) => {
|
|
895
|
-
const { ooui: t } = e, { required: n, id: r } = t;
|
|
896
|
-
return ut(r) ? /* @__PURE__ */ i(co, { value: r }) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Vc, { ooui: t }) });
|
|
897
894
|
}, Vc = (e) => {
|
|
895
|
+
const { ooui: t } = e, { required: n, id: r } = t;
|
|
896
|
+
return ut(r) ? /* @__PURE__ */ i(co, { value: r }) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Ec, { ooui: t }) });
|
|
897
|
+
}, Ec = (e) => {
|
|
898
898
|
const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = Y(null), { t: a } = fe(), l = (d) => {
|
|
899
899
|
r == null || r(d);
|
|
900
900
|
};
|
|
@@ -960,10 +960,10 @@ const co = (e) => {
|
|
|
960
960
|
)
|
|
961
961
|
] }) })
|
|
962
962
|
] });
|
|
963
|
-
}, Ec = (e) => {
|
|
964
|
-
const { ooui: t } = e, { required: n } = t;
|
|
965
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Dc, {}) });
|
|
966
963
|
}, Dc = (e) => {
|
|
964
|
+
const { ooui: t } = e, { required: n } = t;
|
|
965
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Pc, {}) });
|
|
966
|
+
}, Pc = (e) => {
|
|
967
967
|
const { value: t, onChange: n } = e;
|
|
968
968
|
if (!t)
|
|
969
969
|
return null;
|
|
@@ -973,7 +973,7 @@ const co = (e) => {
|
|
|
973
973
|
return console.error(r), null;
|
|
974
974
|
}
|
|
975
975
|
return /* @__PURE__ */ i(
|
|
976
|
-
|
|
976
|
+
ql,
|
|
977
977
|
{
|
|
978
978
|
inputJson: t,
|
|
979
979
|
onChange: (r) => {
|
|
@@ -985,13 +985,13 @@ const co = (e) => {
|
|
|
985
985
|
const t = e.arch, n = e.fields, r = new Ni(n);
|
|
986
986
|
return r.parse(t), r;
|
|
987
987
|
};
|
|
988
|
-
function
|
|
988
|
+
function kc(e) {
|
|
989
989
|
return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
|
|
990
990
|
}
|
|
991
991
|
const uo = (e, t, n) => e.columns.map((o) => {
|
|
992
992
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
993
993
|
let c;
|
|
994
|
-
return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) =>
|
|
994
|
+
return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => kc(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
|
|
995
995
|
"Unsupported widget value for a Tree cell:",
|
|
996
996
|
/* @__PURE__ */ i("pre", { children: /* @__PURE__ */ D("strong", { children: [
|
|
997
997
|
"Type: ",
|
|
@@ -1054,7 +1054,7 @@ function nn({
|
|
|
1054
1054
|
};
|
|
1055
1055
|
return e.sort(l);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function $c(e) {
|
|
1058
1058
|
for (const t in e)
|
|
1059
1059
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1060
1060
|
return !0;
|
|
@@ -1126,7 +1126,7 @@ const fo = async (e) => {
|
|
|
1126
1126
|
}, fs = (e) => {
|
|
1127
1127
|
const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
|
|
1128
1128
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1129
|
-
},
|
|
1129
|
+
}, Nc = (e, t) => {
|
|
1130
1130
|
const n = {};
|
|
1131
1131
|
return Object.keys(e).forEach((r) => {
|
|
1132
1132
|
var o;
|
|
@@ -1134,7 +1134,7 @@ const fo = async (e) => {
|
|
|
1134
1134
|
(s) => s.operation !== "pendingRemove"
|
|
1135
1135
|
) : n[r] = e[r];
|
|
1136
1136
|
}), n;
|
|
1137
|
-
},
|
|
1137
|
+
}, Mc = ({
|
|
1138
1138
|
values: e,
|
|
1139
1139
|
fields: t
|
|
1140
1140
|
}) => {
|
|
@@ -1153,7 +1153,7 @@ const fo = async (e) => {
|
|
|
1153
1153
|
n[r] = e[r];
|
|
1154
1154
|
}), n;
|
|
1155
1155
|
};
|
|
1156
|
-
function
|
|
1156
|
+
function Lc(e) {
|
|
1157
1157
|
const t = e.map((r) => r.id);
|
|
1158
1158
|
return e.filter((r, o) => {
|
|
1159
1159
|
const { id: s } = r;
|
|
@@ -1169,7 +1169,7 @@ function Ho({
|
|
|
1169
1169
|
e[r] && (n[r] = e[r]);
|
|
1170
1170
|
}), n;
|
|
1171
1171
|
}
|
|
1172
|
-
const
|
|
1172
|
+
const jc = ({
|
|
1173
1173
|
allItems: e,
|
|
1174
1174
|
range: t
|
|
1175
1175
|
}) => {
|
|
@@ -1178,7 +1178,7 @@ const Lc = ({
|
|
|
1178
1178
|
return l && (l.operation === "original" || l.operation === "pendingLink");
|
|
1179
1179
|
}), s = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
|
|
1180
1180
|
return { realItemsIds: o, otherItems: s };
|
|
1181
|
-
},
|
|
1181
|
+
}, Bc = ({
|
|
1182
1182
|
finalResultIds: e,
|
|
1183
1183
|
fetchedItems: t,
|
|
1184
1184
|
otherItems: n
|
|
@@ -1192,15 +1192,15 @@ const Lc = ({
|
|
|
1192
1192
|
const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === s.id);
|
|
1193
1193
|
return a - l;
|
|
1194
1194
|
}), r;
|
|
1195
|
-
},
|
|
1195
|
+
}, Hc = async (e, t, n, r) => await $.getHandler().searchAllIds({
|
|
1196
1196
|
model: t,
|
|
1197
1197
|
params: [["id", "in", e]],
|
|
1198
1198
|
context: n,
|
|
1199
1199
|
order: r
|
|
1200
|
-
}),
|
|
1200
|
+
}), Uc = (e) => {
|
|
1201
1201
|
const t = {};
|
|
1202
1202
|
return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
|
|
1203
|
-
},
|
|
1203
|
+
}, Wc = async ({
|
|
1204
1204
|
relation: e,
|
|
1205
1205
|
ids: t,
|
|
1206
1206
|
treeView: n,
|
|
@@ -1221,7 +1221,7 @@ const Lc = ({
|
|
|
1221
1221
|
colors: sn(a[1]),
|
|
1222
1222
|
status: Hn(a[1])
|
|
1223
1223
|
};
|
|
1224
|
-
},
|
|
1224
|
+
}, Gc = (e, t) => {
|
|
1225
1225
|
if (!t)
|
|
1226
1226
|
return e;
|
|
1227
1227
|
const n = {};
|
|
@@ -1235,7 +1235,7 @@ const Lc = ({
|
|
|
1235
1235
|
} else
|
|
1236
1236
|
n[r] = e[r];
|
|
1237
1237
|
}), n;
|
|
1238
|
-
}, Xt = (e, t) =>
|
|
1238
|
+
}, Xt = (e, t) => Gc(e, t), yr = ({
|
|
1239
1239
|
source: e,
|
|
1240
1240
|
target: t,
|
|
1241
1241
|
fields: n
|
|
@@ -1268,7 +1268,7 @@ const Lc = ({
|
|
|
1268
1268
|
else
|
|
1269
1269
|
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]);
|
|
1270
1270
|
}), r;
|
|
1271
|
-
},
|
|
1271
|
+
}, Kc = ({
|
|
1272
1272
|
changedFields: e,
|
|
1273
1273
|
formOoui: t,
|
|
1274
1274
|
types: n
|
|
@@ -1276,7 +1276,7 @@ const Lc = ({
|
|
|
1276
1276
|
var a;
|
|
1277
1277
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1278
1278
|
return n.includes(s);
|
|
1279
|
-
}).some((o) => o === !0),
|
|
1279
|
+
}).some((o) => o === !0), qc = ({
|
|
1280
1280
|
fieldsDomain: e,
|
|
1281
1281
|
fields: t
|
|
1282
1282
|
}) => {
|
|
@@ -1284,12 +1284,12 @@ const Lc = ({
|
|
|
1284
1284
|
return Object.keys(t).forEach((r) => {
|
|
1285
1285
|
n[r] = t[r], e[r] && (n[r].domain = e[r]);
|
|
1286
1286
|
}), n;
|
|
1287
|
-
},
|
|
1287
|
+
}, Yc = (e) => {
|
|
1288
1288
|
const t = {};
|
|
1289
1289
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
|
|
1290
1290
|
(n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
|
|
1291
1291
|
}), t);
|
|
1292
|
-
},
|
|
1292
|
+
}, zc = ({
|
|
1293
1293
|
onChangeFieldActionArgs: e,
|
|
1294
1294
|
values: t,
|
|
1295
1295
|
parentValues: n = {}
|
|
@@ -1339,7 +1339,7 @@ const Wt = ({
|
|
|
1339
1339
|
const o = e[r];
|
|
1340
1340
|
t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
|
|
1341
1341
|
}), n;
|
|
1342
|
-
},
|
|
1342
|
+
}, Jc = (e) => e ? "success" : "error", Fn = (e) => {
|
|
1343
1343
|
let t = 0;
|
|
1344
1344
|
e = e.toString().padEnd(10, "0");
|
|
1345
1345
|
for (let r = 0; r < e.length; r++)
|
|
@@ -1350,10 +1350,10 @@ const Wt = ({
|
|
|
1350
1350
|
n += ("00" + o.toString(16)).slice(-2);
|
|
1351
1351
|
}
|
|
1352
1352
|
return n;
|
|
1353
|
-
},
|
|
1353
|
+
}, Qc = (e, t) => e.replace(
|
|
1354
1354
|
/\{([^}]+)\}/g,
|
|
1355
1355
|
(n, r) => t[r] !== void 0 ? t[r] : n
|
|
1356
|
-
), Wo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""),
|
|
1356
|
+
), Wo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Xc = (e) => /* @__PURE__ */ D(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
1359
1359
|
style: { display: "inline-block", cursor: "pointer" },
|
|
@@ -1366,7 +1366,7 @@ const Wt = ({
|
|
|
1366
1366
|
] })
|
|
1367
1367
|
]
|
|
1368
1368
|
}
|
|
1369
|
-
),
|
|
1369
|
+
), Zc = (e) => {
|
|
1370
1370
|
const { ooui: t } = e, { relation: n, context: r, views: o } = t, [s, a] = C(!0), [l, c] = C(), [u, f] = C(/* @__PURE__ */ new Map()), d = ne(He), { getContext: p } = d || {};
|
|
1371
1371
|
xt(() => {
|
|
1372
1372
|
m();
|
|
@@ -1386,8 +1386,8 @@ const Wt = ({
|
|
|
1386
1386
|
a(!1);
|
|
1387
1387
|
}
|
|
1388
1388
|
};
|
|
1389
|
-
return s ? /* @__PURE__ */ i(Ge, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(
|
|
1390
|
-
},
|
|
1389
|
+
return s ? /* @__PURE__ */ i(Ge, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(ed, { ooui: t, views: u }) });
|
|
1390
|
+
}, ed = (e) => {
|
|
1391
1391
|
const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = C(!1), [c, u] = C(), [f, d] = C(!1), [p, h] = C(), {
|
|
1392
1392
|
relation: m,
|
|
1393
1393
|
context: y,
|
|
@@ -1439,7 +1439,7 @@ const Wt = ({
|
|
|
1439
1439
|
var _, k, M, W;
|
|
1440
1440
|
const P = {
|
|
1441
1441
|
children: /* @__PURE__ */ i(
|
|
1442
|
-
|
|
1442
|
+
Xc,
|
|
1443
1443
|
{
|
|
1444
1444
|
title: (_ = A.values) == null ? void 0 : _[w],
|
|
1445
1445
|
summary: (k = A.values) == null ? void 0 : k[v],
|
|
@@ -1476,7 +1476,7 @@ const Wt = ({
|
|
|
1476
1476
|
}
|
|
1477
1477
|
)
|
|
1478
1478
|
] });
|
|
1479
|
-
},
|
|
1479
|
+
}, td = {
|
|
1480
1480
|
true: "Sí",
|
|
1481
1481
|
false: "No",
|
|
1482
1482
|
simple_search: "Búsqueda simple",
|
|
@@ -1578,7 +1578,7 @@ const Wt = ({
|
|
|
1578
1578
|
not: "No",
|
|
1579
1579
|
loading: "Carregant...",
|
|
1580
1580
|
pendingToCalculate: "Pendent de calcular"
|
|
1581
|
-
},
|
|
1581
|
+
}, nd = {
|
|
1582
1582
|
true: "Yes",
|
|
1583
1583
|
false: "No",
|
|
1584
1584
|
simple_search: "Simple search",
|
|
@@ -1680,7 +1680,7 @@ const Wt = ({
|
|
|
1680
1680
|
not: "Not",
|
|
1681
1681
|
loading: "Loading...",
|
|
1682
1682
|
pendingToCalculate: "Pending to calculate"
|
|
1683
|
-
},
|
|
1683
|
+
}, rd = {
|
|
1684
1684
|
true: "Sí",
|
|
1685
1685
|
false: "No",
|
|
1686
1686
|
simple_search: "Búsqueda simple",
|
|
@@ -1782,16 +1782,16 @@ const Wt = ({
|
|
|
1782
1782
|
not: "No",
|
|
1783
1783
|
loading: "Cargando...",
|
|
1784
1784
|
pendingToCalculate: "Pendiente de calcular"
|
|
1785
|
-
}, rd = {
|
|
1786
|
-
ca_ES: ed,
|
|
1787
|
-
en_US: td,
|
|
1788
|
-
es_ES: nd
|
|
1789
1785
|
}, od = {
|
|
1786
|
+
ca_ES: td,
|
|
1787
|
+
en_US: nd,
|
|
1788
|
+
es_ES: rd
|
|
1789
|
+
}, id = {
|
|
1790
1790
|
erpFeatures: {},
|
|
1791
1791
|
globalValues: {},
|
|
1792
1792
|
rootContext: {},
|
|
1793
1793
|
devMode: !1
|
|
1794
|
-
}, ms = mt.createContext(
|
|
1794
|
+
}, ms = mt.createContext(id), mo = () => {
|
|
1795
1795
|
const e = ne(ms);
|
|
1796
1796
|
if (!e)
|
|
1797
1797
|
throw new Error(
|
|
@@ -1801,7 +1801,7 @@ const Wt = ({
|
|
|
1801
1801
|
}, cr = (e) => {
|
|
1802
1802
|
const { erpFeatures: t } = mo();
|
|
1803
1803
|
return !!t[e];
|
|
1804
|
-
},
|
|
1804
|
+
}, sd = cn(
|
|
1805
1805
|
({
|
|
1806
1806
|
erpFeatures: e,
|
|
1807
1807
|
locale: t,
|
|
@@ -1821,16 +1821,16 @@ const Wt = ({
|
|
|
1821
1821
|
[e, r, o, s]
|
|
1822
1822
|
);
|
|
1823
1823
|
return /* @__PURE__ */ i(ms.Provider, { value: l, children: /* @__PURE__ */ i(
|
|
1824
|
-
|
|
1824
|
+
bl,
|
|
1825
1825
|
{
|
|
1826
1826
|
locale: t,
|
|
1827
|
-
localizedStrings:
|
|
1827
|
+
localizedStrings: Sl(od, n),
|
|
1828
1828
|
children: a
|
|
1829
1829
|
}
|
|
1830
1830
|
) });
|
|
1831
1831
|
}
|
|
1832
1832
|
);
|
|
1833
|
-
|
|
1833
|
+
sd.displayName = "ConfigContextProvider";
|
|
1834
1834
|
async function ps({
|
|
1835
1835
|
actionId: e,
|
|
1836
1836
|
rootContext: t = {},
|
|
@@ -1883,7 +1883,7 @@ async function ps({
|
|
|
1883
1883
|
treeExpandable: h
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const ad = (e) => {
|
|
1887
1887
|
const [t, n] = C(), [r, o] = C(!0), [s, a] = C(), [l, c] = C(), u = ne(He), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = mo(), y = de(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
|
|
1888
1888
|
return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
|
|
1889
1889
|
n(void 0), o(!0);
|
|
@@ -2007,7 +2007,7 @@ const sd = (e) => {
|
|
|
2007
2007
|
},
|
|
2008
2008
|
children: ({ measureRef: h }) => {
|
|
2009
2009
|
const m = d ? /* @__PURE__ */ i(
|
|
2010
|
-
|
|
2010
|
+
cd,
|
|
2011
2011
|
{
|
|
2012
2012
|
value: s,
|
|
2013
2013
|
total: a,
|
|
@@ -2020,7 +2020,7 @@ const sd = (e) => {
|
|
|
2020
2020
|
suffix: f
|
|
2021
2021
|
}
|
|
2022
2022
|
) : /* @__PURE__ */ i(
|
|
2023
|
-
|
|
2023
|
+
ld,
|
|
2024
2024
|
{
|
|
2025
2025
|
value: s,
|
|
2026
2026
|
total: a,
|
|
@@ -2041,7 +2041,7 @@ function ys(e, t) {
|
|
|
2041
2041
|
const r = document.createElement("canvas").getContext("2d");
|
|
2042
2042
|
return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function ld({
|
|
2045
2045
|
measureRef: e,
|
|
2046
2046
|
width: t,
|
|
2047
2047
|
height: n,
|
|
@@ -2084,7 +2084,7 @@ function ad({
|
|
|
2084
2084
|
}
|
|
2085
2085
|
);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function cd({
|
|
2088
2088
|
measureRef: e,
|
|
2089
2089
|
height: t,
|
|
2090
2090
|
width: n,
|
|
@@ -2148,7 +2148,7 @@ function ld({
|
|
|
2148
2148
|
}
|
|
2149
2149
|
);
|
|
2150
2150
|
}
|
|
2151
|
-
const { getValueForOperator: Go } = Li,
|
|
2151
|
+
const { getValueForOperator: Go } = Li, dd = (e) => {
|
|
2152
2152
|
const {
|
|
2153
2153
|
model: t,
|
|
2154
2154
|
domain: n,
|
|
@@ -2280,7 +2280,7 @@ const { getValueForOperator: Go } = Li, cd = (e) => {
|
|
|
2280
2280
|
fixedHeight: p
|
|
2281
2281
|
}
|
|
2282
2282
|
);
|
|
2283
|
-
}, { processGraphData:
|
|
2283
|
+
}, { processGraphData: ud } = Li, { getFieldsToRetrieve: fd } = Za, md = (e) => {
|
|
2284
2284
|
const {
|
|
2285
2285
|
model: t,
|
|
2286
2286
|
ooui: n,
|
|
@@ -2295,10 +2295,10 @@ const { getValueForOperator: Go } = Li, cd = (e) => {
|
|
|
2295
2295
|
$.getHandler().readObjects
|
|
2296
2296
|
), [x] = Ye($.getHandler().search), S = N(async () => {
|
|
2297
2297
|
u(!0), d(void 0), v(n.type || "line");
|
|
2298
|
-
const O =
|
|
2298
|
+
const O = fd({ ooui: n });
|
|
2299
2299
|
let T, R;
|
|
2300
2300
|
try {
|
|
2301
|
-
({ values: T, fields: R } = await
|
|
2301
|
+
({ values: T, fields: R } = await hd({
|
|
2302
2302
|
model: t,
|
|
2303
2303
|
domain: r,
|
|
2304
2304
|
context: o,
|
|
@@ -2327,7 +2327,7 @@ const { getValueForOperator: Go } = Li, cd = (e) => {
|
|
|
2327
2327
|
fetchData: S
|
|
2328
2328
|
};
|
|
2329
2329
|
y(T);
|
|
2330
|
-
const b =
|
|
2330
|
+
const b = ud({
|
|
2331
2331
|
ooui: n,
|
|
2332
2332
|
values: T,
|
|
2333
2333
|
fields: R,
|
|
@@ -2367,7 +2367,7 @@ const { getValueForOperator: Go } = Li, cd = (e) => {
|
|
|
2367
2367
|
fetchData: S
|
|
2368
2368
|
};
|
|
2369
2369
|
};
|
|
2370
|
-
async function
|
|
2370
|
+
async function pd({
|
|
2371
2371
|
model: e,
|
|
2372
2372
|
context: t,
|
|
2373
2373
|
fields: n,
|
|
@@ -2379,7 +2379,7 @@ async function md({
|
|
|
2379
2379
|
fields: n
|
|
2380
2380
|
});
|
|
2381
2381
|
}
|
|
2382
|
-
async function
|
|
2382
|
+
async function hd({
|
|
2383
2383
|
fields: e,
|
|
2384
2384
|
model: t,
|
|
2385
2385
|
domain: n,
|
|
@@ -2389,7 +2389,7 @@ async function pd({
|
|
|
2389
2389
|
manualIds: a,
|
|
2390
2390
|
methods: l
|
|
2391
2391
|
}) {
|
|
2392
|
-
const { getFields: c, readObjects: u, search: f } = l, d = await
|
|
2392
|
+
const { getFields: c, readObjects: u, search: f } = l, d = await pd({
|
|
2393
2393
|
model: t,
|
|
2394
2394
|
context: r,
|
|
2395
2395
|
fields: e,
|
|
@@ -2419,7 +2419,6 @@ async function pd({
|
|
|
2419
2419
|
fields: d
|
|
2420
2420
|
};
|
|
2421
2421
|
}
|
|
2422
|
-
st.extend(Vl);
|
|
2423
2422
|
st.extend(El);
|
|
2424
2423
|
st.extend(Dl);
|
|
2425
2424
|
st.extend(Pl);
|
|
@@ -2427,13 +2426,14 @@ st.extend(kl);
|
|
|
2427
2426
|
st.extend($l);
|
|
2428
2427
|
st.extend(Nl);
|
|
2429
2428
|
st.extend(Ml);
|
|
2429
|
+
st.extend(Ll);
|
|
2430
2430
|
const vr = (e) => (t) => {
|
|
2431
2431
|
const n = t.value.toLocaleString("es-ES", {
|
|
2432
2432
|
useGrouping: !0
|
|
2433
2433
|
});
|
|
2434
2434
|
return { name: e === "pie" ? t.x : t.type, value: n };
|
|
2435
2435
|
}, $n = (e) => {
|
|
2436
|
-
if (typeof e == "string" &&
|
|
2436
|
+
if (typeof e == "string" && gd(e))
|
|
2437
2437
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
2438
2438
|
useGrouping: !0
|
|
2439
2439
|
});
|
|
@@ -2441,14 +2441,14 @@ const vr = (e) => (t) => {
|
|
|
2441
2441
|
return e.toLocaleString("es-ES", {
|
|
2442
2442
|
useGrouping: !0
|
|
2443
2443
|
});
|
|
2444
|
-
if (
|
|
2445
|
-
const t =
|
|
2444
|
+
if (yd(e)) {
|
|
2445
|
+
const t = vd(e);
|
|
2446
2446
|
return t === null ? e : st(e, Kn.input[t]).format(
|
|
2447
2447
|
Kn.output[t]
|
|
2448
2448
|
);
|
|
2449
2449
|
} else
|
|
2450
2450
|
return e;
|
|
2451
|
-
},
|
|
2451
|
+
}, gd = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), vs = (e) => typeof e == "number" && !isNaN(e), Ko = {
|
|
2452
2452
|
default: {
|
|
2453
2453
|
padding: "auto",
|
|
2454
2454
|
xAxis: {
|
|
@@ -2523,7 +2523,7 @@ const vr = (e) => (t) => {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
};
|
|
2526
|
-
function
|
|
2526
|
+
function yd(e) {
|
|
2527
2527
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
2528
2528
|
}
|
|
2529
2529
|
const Kn = {
|
|
@@ -2542,7 +2542,7 @@ const Kn = {
|
|
|
2542
2542
|
years: "YYYY"
|
|
2543
2543
|
}
|
|
2544
2544
|
};
|
|
2545
|
-
function
|
|
2545
|
+
function vd(e) {
|
|
2546
2546
|
for (const t in Kn.input)
|
|
2547
2547
|
if (st(
|
|
2548
2548
|
e,
|
|
@@ -2552,7 +2552,7 @@ function yd(e) {
|
|
|
2552
2552
|
return t;
|
|
2553
2553
|
return null;
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2555
|
+
const wd = {
|
|
2556
2556
|
inner: {
|
|
2557
2557
|
label: {
|
|
2558
2558
|
type: "inner",
|
|
@@ -2569,7 +2569,7 @@ const vd = {
|
|
|
2569
2569
|
labelHeight: 28
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
},
|
|
2572
|
+
}, bd = (e) => {
|
|
2573
2573
|
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);
|
|
2574
2574
|
for (let a = 0; a < Math.abs(s); a++)
|
|
2575
2575
|
s > 0 ? r[a % r.length]++ : r[a % r.length]--;
|
|
@@ -2577,10 +2577,10 @@ const vd = {
|
|
|
2577
2577
|
x: a.x,
|
|
2578
2578
|
percent: r[l]
|
|
2579
2579
|
}));
|
|
2580
|
-
}, { Text: qo } = Pt, ws = 400,
|
|
2581
|
-
line:
|
|
2582
|
-
bar:
|
|
2583
|
-
pie:
|
|
2580
|
+
}, { Text: qo } = Pt, ws = 400, Sd = cn(Rl), Cd = cn(_l), xd = cn(Vl), Id = {
|
|
2581
|
+
line: Sd,
|
|
2582
|
+
bar: Cd,
|
|
2583
|
+
pie: xd
|
|
2584
2584
|
}, bs = ({
|
|
2585
2585
|
type: e,
|
|
2586
2586
|
data: t,
|
|
@@ -2598,7 +2598,7 @@ const vd = {
|
|
|
2598
2598
|
return t.reduce((g, v) => g + v.value, 0);
|
|
2599
2599
|
}, [t, e]), u = de(() => {
|
|
2600
2600
|
if (e === "pie")
|
|
2601
|
-
return
|
|
2601
|
+
return bd(t);
|
|
2602
2602
|
}, [t, e]), f = N(
|
|
2603
2603
|
(y) => {
|
|
2604
2604
|
if (!u)
|
|
@@ -2615,7 +2615,7 @@ const vd = {
|
|
|
2615
2615
|
}, [f, u]), p = N(
|
|
2616
2616
|
({ percent: y, x: g }) => y < 0.07 ? "" : f(g),
|
|
2617
2617
|
[f]
|
|
2618
|
-
), h =
|
|
2618
|
+
), h = Id[e], m = de(() => Td({
|
|
2619
2619
|
type: e,
|
|
2620
2620
|
data: t,
|
|
2621
2621
|
isGroup: n,
|
|
@@ -2659,7 +2659,7 @@ const vd = {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
) : /* @__PURE__ */ i(se, { children: `Unknown graph type: ${e}` });
|
|
2661
2661
|
};
|
|
2662
|
-
function
|
|
2662
|
+
function Td(e) {
|
|
2663
2663
|
const {
|
|
2664
2664
|
type: t,
|
|
2665
2665
|
data: n,
|
|
@@ -2671,7 +2671,7 @@ function Id(e) {
|
|
|
2671
2671
|
fixedHeight: c
|
|
2672
2672
|
} = e;
|
|
2673
2673
|
let u = { ...Ko[t] };
|
|
2674
|
-
if (u || (u = { ...Ko.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...
|
|
2674
|
+
if (u || (u = { ...Ko.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...wd.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) {
|
|
2675
2675
|
const f = l.valueOpts.min, d = l.valueOpts.max;
|
|
2676
2676
|
u.yAxis = {
|
|
2677
2677
|
min: f,
|
|
@@ -2680,7 +2680,7 @@ function Id(e) {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
return u;
|
|
2682
2682
|
}
|
|
2683
|
-
const
|
|
2683
|
+
const Od = ({
|
|
2684
2684
|
ooui: e,
|
|
2685
2685
|
model: t,
|
|
2686
2686
|
domain: n,
|
|
@@ -2689,7 +2689,7 @@ const Td = ({
|
|
|
2689
2689
|
manualIds: s,
|
|
2690
2690
|
fixedHeight: a
|
|
2691
2691
|
}) => {
|
|
2692
|
-
const { t: l } = fe(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } =
|
|
2692
|
+
const { t: l } = fe(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = md({
|
|
2693
2693
|
model: t,
|
|
2694
2694
|
ooui: e,
|
|
2695
2695
|
limit: o,
|
|
@@ -2717,7 +2717,7 @@ const Td = ({
|
|
|
2717
2717
|
);
|
|
2718
2718
|
}, Dt = 80, at = Ha(
|
|
2719
2719
|
null
|
|
2720
|
-
),
|
|
2720
|
+
), Ad = (e) => {
|
|
2721
2721
|
const {
|
|
2722
2722
|
children: t,
|
|
2723
2723
|
currentView: n,
|
|
@@ -2835,7 +2835,7 @@ const Td = ({
|
|
|
2835
2835
|
children: t
|
|
2836
2836
|
}
|
|
2837
2837
|
);
|
|
2838
|
-
},
|
|
2838
|
+
}, Fd = () => !!ne(at), po = () => {
|
|
2839
2839
|
const e = ne(at);
|
|
2840
2840
|
return e || {
|
|
2841
2841
|
title: "",
|
|
@@ -2924,7 +2924,7 @@ const Td = ({
|
|
|
2924
2924
|
setIsInfiniteTree: () => {
|
|
2925
2925
|
}
|
|
2926
2926
|
};
|
|
2927
|
-
},
|
|
2927
|
+
}, Rd = (e, t) => {
|
|
2928
2928
|
const { view_id: n, model: r, context: o, domain: s, limit: a, manualIds: l, fixedHeight: c } = e, [u, f] = C(!1), [d, p] = C(), h = ne(
|
|
2929
2929
|
at
|
|
2930
2930
|
), { setGraphIsLoading: m = void 0 } = h || {}, [y] = Ye($.getHandler().getView);
|
|
@@ -2959,7 +2959,7 @@ const Td = ({
|
|
|
2959
2959
|
operator: v.operator
|
|
2960
2960
|
} : {};
|
|
2961
2961
|
return /* @__PURE__ */ i(
|
|
2962
|
-
|
|
2962
|
+
dd,
|
|
2963
2963
|
{
|
|
2964
2964
|
showPercent: v.showPercent,
|
|
2965
2965
|
totalDomain: v.totalDomain,
|
|
@@ -2979,7 +2979,7 @@ const Td = ({
|
|
|
2979
2979
|
case "bar":
|
|
2980
2980
|
case "pie":
|
|
2981
2981
|
return /* @__PURE__ */ i(
|
|
2982
|
-
|
|
2982
|
+
Od,
|
|
2983
2983
|
{
|
|
2984
2984
|
model: r,
|
|
2985
2985
|
context: o,
|
|
@@ -2993,9 +2993,9 @@ const Td = ({
|
|
|
2993
2993
|
default:
|
|
2994
2994
|
return /* @__PURE__ */ i(se, { children: `Graph ${d.type} not implemented` });
|
|
2995
2995
|
}
|
|
2996
|
-
}, mn = yt(
|
|
2996
|
+
}, mn = yt(Rd);
|
|
2997
2997
|
var pn = /* @__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))(pn || {});
|
|
2998
|
-
const
|
|
2998
|
+
const Py = Object.values(pn), _d = (e) => {
|
|
2999
2999
|
const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = C(!1), [c, u] = C(), [f, d] = C(), [p] = Ye(
|
|
3000
3000
|
$.getHandler().readForView
|
|
3001
3001
|
), h = N(async () => {
|
|
@@ -3019,10 +3019,10 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3019
3019
|
fetchData: h,
|
|
3020
3020
|
graphData: f
|
|
3021
3021
|
};
|
|
3022
|
-
},
|
|
3022
|
+
}, Vd = (e, t) => {
|
|
3023
3023
|
const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: l } = e, c = ne(
|
|
3024
3024
|
at
|
|
3025
|
-
), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } =
|
|
3025
|
+
), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = _d({
|
|
3026
3026
|
view_id: n,
|
|
3027
3027
|
model: r,
|
|
3028
3028
|
domain: s,
|
|
@@ -3079,7 +3079,7 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3079
3079
|
default:
|
|
3080
3080
|
return /* @__PURE__ */ i(se, { children: `Graph ${p.type} not implemented` });
|
|
3081
3081
|
}
|
|
3082
|
-
}, Ss = yt(
|
|
3082
|
+
}, Ss = yt(Vd), bt = mt.createContext(null), Ed = (e) => {
|
|
3083
3083
|
const {
|
|
3084
3084
|
children: t,
|
|
3085
3085
|
openAction: n,
|
|
@@ -3111,8 +3111,8 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3111
3111
|
children: t
|
|
3112
3112
|
}
|
|
3113
3113
|
);
|
|
3114
|
-
}, { useToken:
|
|
3115
|
-
const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } =
|
|
3114
|
+
}, { useToken: Dd } = Ke, { Text: Pd } = Pt, ho = (e) => {
|
|
3115
|
+
const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Dd(), l = Object.keys(s).length > 0;
|
|
3116
3116
|
return /* @__PURE__ */ D(
|
|
3117
3117
|
"div",
|
|
3118
3118
|
{
|
|
@@ -3148,11 +3148,11 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3148
3148
|
cursor: l ? "grab" : void 0,
|
|
3149
3149
|
overflow: "hidden"
|
|
3150
3150
|
},
|
|
3151
|
-
children: /* @__PURE__ */ i(
|
|
3151
|
+
children: /* @__PURE__ */ i(Pd, { ellipsis: !0, children: t })
|
|
3152
3152
|
}
|
|
3153
3153
|
),
|
|
3154
3154
|
r && /* @__PURE__ */ i(Ce, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(Me, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
|
|
3155
|
-
|
|
3155
|
+
ol,
|
|
3156
3156
|
{
|
|
3157
3157
|
style: { cursor: "pointer" },
|
|
3158
3158
|
onClick: () => {
|
|
@@ -3168,11 +3168,11 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3168
3168
|
]
|
|
3169
3169
|
}
|
|
3170
3170
|
);
|
|
3171
|
-
}, { useToken:
|
|
3171
|
+
}, { useToken: kd } = Ke, $d = (e) => {
|
|
3172
3172
|
const { ooui: t } = e, n = t.actionId !== void 0;
|
|
3173
|
-
return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ i(
|
|
3174
|
-
},
|
|
3175
|
-
const { token: t } =
|
|
3173
|
+
return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Bn, { children: /* @__PURE__ */ i(Md, { ooui: t }) }) : /* @__PURE__ */ i(Nd, { ooui: t }) });
|
|
3174
|
+
}, Nd = (e) => {
|
|
3175
|
+
const { token: t } = kd(), { ooui: n, value: r } = e, o = /* @__PURE__ */ D(se, { children: [
|
|
3176
3176
|
/* @__PURE__ */ D("span", { children: [
|
|
3177
3177
|
n.label,
|
|
3178
3178
|
" "
|
|
@@ -3197,8 +3197,8 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
return n.card ? /* @__PURE__ */ i(qr, { children: l }) : l;
|
|
3200
|
-
},
|
|
3201
|
-
const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } =
|
|
3200
|
+
}, Md = (e) => {
|
|
3201
|
+
const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = oc(), { actionData: s, treeShortcut: a, loading: l, error: c, fetchData: u } = ad(n), f = cr(
|
|
3202
3202
|
pn.FEATURE_READFORVIEW
|
|
3203
3203
|
), d = ne(
|
|
3204
3204
|
bt
|
|
@@ -3231,8 +3231,8 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3231
3231
|
)
|
|
3232
3232
|
]
|
|
3233
3233
|
}
|
|
3234
|
-
) : /* @__PURE__ */ i(
|
|
3235
|
-
},
|
|
3234
|
+
) : /* @__PURE__ */ i(Ld, { id: h });
|
|
3235
|
+
}, Ld = ({ id: e }) => {
|
|
3236
3236
|
const { t } = fe();
|
|
3237
3237
|
return /* @__PURE__ */ i(
|
|
3238
3238
|
ho,
|
|
@@ -3245,13 +3245,13 @@ const Dy = Object.values(pn), Rd = (e) => {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
);
|
|
3247
3247
|
};
|
|
3248
|
-
function
|
|
3248
|
+
function jd(e) {
|
|
3249
3249
|
return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
|
|
3250
3250
|
}
|
|
3251
|
-
const
|
|
3251
|
+
const Bd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs, { ...e }) }), Cs = (e) => {
|
|
3252
3252
|
const { t } = fe(), { ooui: n, value: r } = e;
|
|
3253
3253
|
let o = r, s = Fn, a = r;
|
|
3254
|
-
if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ?
|
|
3254
|
+
if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? jd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Jc), !o)
|
|
3255
3255
|
return null;
|
|
3256
3256
|
const l = n.colors === "auto" ? s(a) : n.colors[a] || s(a);
|
|
3257
3257
|
return /* @__PURE__ */ i(go, { color: l, children: o });
|
|
@@ -3263,10 +3263,10 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3263
3263
|
borderStyle: "solid",
|
|
3264
3264
|
borderWidth: "1px"
|
|
3265
3265
|
}, t = `${t}20`), /* @__PURE__ */ i(Yr, { ...e, style: n, color: t, children: e.children });
|
|
3266
|
-
}, Bd = (e) => {
|
|
3267
|
-
const { ooui: t } = e;
|
|
3268
|
-
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Hd, { ooui: t }) });
|
|
3269
3266
|
}, Hd = (e) => {
|
|
3267
|
+
const { ooui: t } = e;
|
|
3268
|
+
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Ud, { ooui: t }) });
|
|
3269
|
+
}, Ud = (e) => {
|
|
3270
3270
|
const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [a, l] = C([]), [c, u] = C(), [f, d] = C(!1), { relation: p, context: h, readOnly: m, field: y } = n, g = ne(He), { getContext: v } = g || {};
|
|
3271
3271
|
xt(() => {
|
|
3272
3272
|
I();
|
|
@@ -3347,14 +3347,14 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3347
3347
|
filterOption: (O, T) => T.label.toLowerCase().includes(O.toString())
|
|
3348
3348
|
}
|
|
3349
3349
|
) }) });
|
|
3350
|
-
},
|
|
3350
|
+
}, Wd = (e) => {
|
|
3351
3351
|
switch (e) {
|
|
3352
3352
|
case "form":
|
|
3353
3353
|
return yn;
|
|
3354
3354
|
case "tree":
|
|
3355
3355
|
return Dn;
|
|
3356
3356
|
case "notebook":
|
|
3357
|
-
return
|
|
3357
|
+
return ch;
|
|
3358
3358
|
case "group":
|
|
3359
3359
|
return ba;
|
|
3360
3360
|
case "label":
|
|
@@ -3362,92 +3362,92 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3362
3362
|
case "char":
|
|
3363
3363
|
return is;
|
|
3364
3364
|
case "text":
|
|
3365
|
-
return
|
|
3365
|
+
return uh;
|
|
3366
3366
|
case "button":
|
|
3367
3367
|
return lo;
|
|
3368
3368
|
case "buttonGroup":
|
|
3369
|
-
return
|
|
3369
|
+
return uc;
|
|
3370
3370
|
case "selection":
|
|
3371
3371
|
return ss;
|
|
3372
3372
|
case "many2one":
|
|
3373
|
-
return
|
|
3373
|
+
return Dp;
|
|
3374
3374
|
case "boolean":
|
|
3375
|
-
return
|
|
3375
|
+
return Ac;
|
|
3376
3376
|
case "integer":
|
|
3377
3377
|
return qn;
|
|
3378
3378
|
case "float":
|
|
3379
3379
|
return ks;
|
|
3380
3380
|
case "progressbar":
|
|
3381
|
-
return
|
|
3381
|
+
return mu;
|
|
3382
3382
|
case "date":
|
|
3383
|
-
return Ch;
|
|
3384
|
-
case "datetime":
|
|
3385
3383
|
return xh;
|
|
3386
|
-
case "
|
|
3384
|
+
case "datetime":
|
|
3387
3385
|
return Ih;
|
|
3386
|
+
case "time":
|
|
3387
|
+
return Th;
|
|
3388
3388
|
case "one2many":
|
|
3389
3389
|
case "one2many_list":
|
|
3390
3390
|
case "many2many":
|
|
3391
|
-
return
|
|
3391
|
+
return rh;
|
|
3392
3392
|
case "separator":
|
|
3393
|
-
return
|
|
3393
|
+
return mh;
|
|
3394
3394
|
case "reference":
|
|
3395
|
-
return
|
|
3395
|
+
return Ah;
|
|
3396
3396
|
case "binary":
|
|
3397
|
-
return
|
|
3397
|
+
return _h;
|
|
3398
3398
|
case "image":
|
|
3399
|
-
return
|
|
3399
|
+
return Vc;
|
|
3400
3400
|
case "url":
|
|
3401
|
-
return $h;
|
|
3402
|
-
case "email":
|
|
3403
3401
|
return Nh;
|
|
3402
|
+
case "email":
|
|
3403
|
+
return Mh;
|
|
3404
3404
|
case "float_time":
|
|
3405
|
-
return
|
|
3405
|
+
return sh;
|
|
3406
3406
|
case "fiber_grid":
|
|
3407
|
-
return
|
|
3407
|
+
return Dc;
|
|
3408
3408
|
case "timeline":
|
|
3409
|
-
return
|
|
3409
|
+
return Zc;
|
|
3410
3410
|
case "indicator":
|
|
3411
|
-
return
|
|
3411
|
+
return $d;
|
|
3412
3412
|
case "tags":
|
|
3413
|
-
return
|
|
3413
|
+
return Hd;
|
|
3414
3414
|
case "tag":
|
|
3415
|
-
return
|
|
3415
|
+
return Bd;
|
|
3416
3416
|
case "multicheckbox":
|
|
3417
|
-
return
|
|
3417
|
+
return lg;
|
|
3418
3418
|
case "markdown":
|
|
3419
|
-
return
|
|
3419
|
+
return dg;
|
|
3420
3420
|
case "radio":
|
|
3421
|
-
return
|
|
3421
|
+
return fg;
|
|
3422
3422
|
case "switch":
|
|
3423
|
-
return
|
|
3423
|
+
return pg;
|
|
3424
3424
|
case "steps":
|
|
3425
|
-
return
|
|
3425
|
+
return gg;
|
|
3426
3426
|
case "arrow_steps":
|
|
3427
|
-
return
|
|
3427
|
+
return wg;
|
|
3428
3428
|
case "codeeditor":
|
|
3429
3429
|
case "json":
|
|
3430
|
-
return
|
|
3430
|
+
return bg;
|
|
3431
3431
|
case "comments_timeline":
|
|
3432
|
-
return Ag;
|
|
3433
|
-
case "html_preview":
|
|
3434
3432
|
return Fg;
|
|
3435
|
-
case "
|
|
3433
|
+
case "html_preview":
|
|
3436
3434
|
return Rg;
|
|
3435
|
+
case "alert":
|
|
3436
|
+
return _g;
|
|
3437
3437
|
case "spinner":
|
|
3438
3438
|
return Hr;
|
|
3439
3439
|
default:
|
|
3440
3440
|
return;
|
|
3441
3441
|
}
|
|
3442
|
-
},
|
|
3443
|
-
const { ooui: t } = e, { type: n } = t, r =
|
|
3442
|
+
}, Gd = (e) => {
|
|
3443
|
+
const { ooui: t } = e, { type: n } = t, r = Wd(n);
|
|
3444
3444
|
return r ? Ua(r, e) : null;
|
|
3445
|
-
},
|
|
3445
|
+
}, Kd = ({
|
|
3446
3446
|
item: e,
|
|
3447
3447
|
responsiveBehaviour: t
|
|
3448
3448
|
}) => ({
|
|
3449
3449
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
3450
|
-
}),
|
|
3450
|
+
}), qd = ({
|
|
3451
3451
|
row: e,
|
|
3452
3452
|
mustFillWithEmpties: t,
|
|
3453
3453
|
numberOfColumns: n
|
|
@@ -3466,10 +3466,10 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3466
3466
|
r.push(new dn({ string: "" }));
|
|
3467
3467
|
}
|
|
3468
3468
|
}), r;
|
|
3469
|
-
},
|
|
3469
|
+
}, Yd = ({
|
|
3470
3470
|
row: e,
|
|
3471
3471
|
numberOfColumns: t
|
|
3472
|
-
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)),
|
|
3472
|
+
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), zd = (e, t) => {
|
|
3473
3473
|
const n = e.map((r) => r instanceof dn && r.fieldForLabel || r instanceof el ? "auto" : "1fr");
|
|
3474
3474
|
if (n.length < t) {
|
|
3475
3475
|
const r = t - n.length;
|
|
@@ -3477,25 +3477,25 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3477
3477
|
n.push("1fr");
|
|
3478
3478
|
}
|
|
3479
3479
|
return n.join(" ");
|
|
3480
|
-
},
|
|
3480
|
+
}, Jd = (e, t) => {
|
|
3481
3481
|
const n = t ? "1fr" : "auto", r = "auto";
|
|
3482
3482
|
let o = "";
|
|
3483
3483
|
for (let s = 0; s < e; s++)
|
|
3484
3484
|
o += s % 2 ? n : r, s + 1 < e && (o += " ");
|
|
3485
3485
|
return o;
|
|
3486
|
-
},
|
|
3486
|
+
}, Qd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), xs = (e) => {
|
|
3487
3487
|
const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
|
|
3488
3488
|
let { columns: o } = t;
|
|
3489
|
-
const s =
|
|
3489
|
+
const s = Qd(r);
|
|
3490
3490
|
s < o && (o = s);
|
|
3491
3491
|
let a = !1, l = [];
|
|
3492
3492
|
const c = r.map((d, p) => {
|
|
3493
|
-
const h = d.filter((g) => !g.invisible), m =
|
|
3493
|
+
const h = d.filter((g) => !g.invisible), m = Yd({
|
|
3494
3494
|
row: h,
|
|
3495
3495
|
numberOfColumns: o
|
|
3496
3496
|
});
|
|
3497
3497
|
let y = m;
|
|
3498
|
-
return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (y =
|
|
3498
|
+
return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (y = qd({
|
|
3499
3499
|
row: m,
|
|
3500
3500
|
numberOfColumns: o,
|
|
3501
3501
|
mustFillWithEmpties: n
|
|
@@ -3503,17 +3503,17 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3503
3503
|
"div",
|
|
3504
3504
|
{
|
|
3505
3505
|
style: {
|
|
3506
|
-
...
|
|
3506
|
+
...Kd({ item: g, responsiveBehaviour: n }),
|
|
3507
3507
|
minWidth: 0
|
|
3508
3508
|
},
|
|
3509
|
-
children:
|
|
3509
|
+
children: Gd({
|
|
3510
3510
|
ooui: g,
|
|
3511
3511
|
responsiveBehaviour: n
|
|
3512
3512
|
})
|
|
3513
3513
|
},
|
|
3514
3514
|
g.key
|
|
3515
3515
|
)));
|
|
3516
|
-
}), u = r.length === 1 ?
|
|
3516
|
+
}), u = r.length === 1 ? zd(l, o) : Jd(o, a);
|
|
3517
3517
|
return /* @__PURE__ */ i("div", { style: {
|
|
3518
3518
|
display: "grid",
|
|
3519
3519
|
gridTemplateColumns: n ? "auto" : u,
|
|
@@ -3521,12 +3521,12 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3521
3521
|
minHeight: 0,
|
|
3522
3522
|
minWidth: 0
|
|
3523
3523
|
}, children: c });
|
|
3524
|
-
}, { confirm:
|
|
3524
|
+
}, { confirm: Xd } = dt, hn = ({
|
|
3525
3525
|
onOk: e,
|
|
3526
3526
|
onCancel: t,
|
|
3527
3527
|
t: n
|
|
3528
3528
|
}) => {
|
|
3529
|
-
|
|
3529
|
+
Xd({
|
|
3530
3530
|
title: n("unsavedChanges"),
|
|
3531
3531
|
icon: /* @__PURE__ */ i(kt, {}),
|
|
3532
3532
|
centered: !0,
|
|
@@ -3536,22 +3536,22 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3536
3536
|
onCancel: t,
|
|
3537
3537
|
cancelText: n("cancel")
|
|
3538
3538
|
});
|
|
3539
|
-
}, { error:
|
|
3540
|
-
|
|
3539
|
+
}, { error: Zd } = dt, Yo = (e) => {
|
|
3540
|
+
Zd({
|
|
3541
3541
|
title: e("formHasErrors"),
|
|
3542
3542
|
icon: /* @__PURE__ */ i(kt, {}),
|
|
3543
3543
|
centered: !0,
|
|
3544
3544
|
content: e("fillRequiredFields")
|
|
3545
3545
|
});
|
|
3546
|
-
}, { warning:
|
|
3547
|
-
|
|
3546
|
+
}, { warning: eu } = dt, tu = (e, t, n) => {
|
|
3547
|
+
eu({
|
|
3548
3548
|
title: e,
|
|
3549
3549
|
icon: /* @__PURE__ */ i(Gi, {}),
|
|
3550
3550
|
centered: !0,
|
|
3551
3551
|
content: t,
|
|
3552
3552
|
onOk: n
|
|
3553
3553
|
});
|
|
3554
|
-
}, Is = mt.createContext(null),
|
|
3554
|
+
}, Is = mt.createContext(null), nu = (e) => {
|
|
3555
3555
|
const { children: t, setTitle: n } = e;
|
|
3556
3556
|
return /* @__PURE__ */ i(
|
|
3557
3557
|
Is.Provider,
|
|
@@ -3566,7 +3566,7 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3566
3566
|
var t;
|
|
3567
3567
|
for (let n = 0; n < e.length; n++)
|
|
3568
3568
|
await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
|
|
3569
|
-
},
|
|
3569
|
+
}, ru = (e, t) => {
|
|
3570
3570
|
const { children: n, globalValues: r = {} } = e, o = Y(), s = Y(), [a, l] = C(!1), c = ne(
|
|
3571
3571
|
bt
|
|
3572
3572
|
), { openAction: u } = c || {}, f = Y([]), { t: d } = fe();
|
|
@@ -3643,7 +3643,7 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3643
3643
|
return await I({ actionData: T, fields: R, values: b, context: V });
|
|
3644
3644
|
if (A === "ir.actions.act_url")
|
|
3645
3645
|
window.open(
|
|
3646
|
-
|
|
3646
|
+
Qc(T.url, { ...b, context: V }),
|
|
3647
3647
|
"_blank"
|
|
3648
3648
|
);
|
|
3649
3649
|
else
|
|
@@ -3693,7 +3693,7 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3693
3693
|
context: P
|
|
3694
3694
|
}), {};
|
|
3695
3695
|
} else {
|
|
3696
|
-
const { initialView: M, views: W } = await
|
|
3696
|
+
const { initialView: M, views: W } = await ou({
|
|
3697
3697
|
model: F.res_model,
|
|
3698
3698
|
context: P,
|
|
3699
3699
|
view_mode: F.view_mode,
|
|
@@ -3795,7 +3795,7 @@ const jd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Cs,
|
|
|
3795
3795
|
}
|
|
3796
3796
|
) });
|
|
3797
3797
|
};
|
|
3798
|
-
async function
|
|
3798
|
+
async function ou({
|
|
3799
3799
|
views: e,
|
|
3800
3800
|
view_mode: t,
|
|
3801
3801
|
model: n,
|
|
@@ -3844,7 +3844,7 @@ async function ru({
|
|
|
3844
3844
|
}
|
|
3845
3845
|
return { views: s, initialView: a };
|
|
3846
3846
|
}
|
|
3847
|
-
const
|
|
3847
|
+
const iu = yt(ru), su = (e, t) => {
|
|
3848
3848
|
const n = {};
|
|
3849
3849
|
return Object.keys(e).forEach((r) => {
|
|
3850
3850
|
n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
|
|
@@ -3859,7 +3859,7 @@ const ou = yt(nu), iu = (e, t) => {
|
|
|
3859
3859
|
document.removeEventListener("visibilitychange", n);
|
|
3860
3860
|
};
|
|
3861
3861
|
}, []), e;
|
|
3862
|
-
},
|
|
3862
|
+
}, au = 3 * 1e3, lu = (e) => {
|
|
3863
3863
|
const {
|
|
3864
3864
|
model: t,
|
|
3865
3865
|
id: n,
|
|
@@ -3898,7 +3898,7 @@ const ou = yt(nu), iu = (e, t) => {
|
|
|
3898
3898
|
r,
|
|
3899
3899
|
a
|
|
3900
3900
|
]);
|
|
3901
|
-
or(() => (n && (o == null ? void 0 : o.length) && u && (m(), c.current = setInterval(m,
|
|
3901
|
+
or(() => (n && (o == null ? void 0 : o.length) && u && (m(), c.current = setInterval(m, au)), () => {
|
|
3902
3902
|
p(), c.current && (clearInterval(c.current), c.current = null);
|
|
3903
3903
|
}), [
|
|
3904
3904
|
o,
|
|
@@ -3915,8 +3915,8 @@ const ou = yt(nu), iu = (e, t) => {
|
|
|
3915
3915
|
f(!0);
|
|
3916
3916
|
}, []);
|
|
3917
3917
|
return { pause: y, resume: g };
|
|
3918
|
-
},
|
|
3919
|
-
function
|
|
3918
|
+
}, cu = 800;
|
|
3919
|
+
function du(e, t) {
|
|
3920
3920
|
const {
|
|
3921
3921
|
model: n,
|
|
3922
3922
|
id: r,
|
|
@@ -3941,7 +3941,7 @@ function cu(e, t) {
|
|
|
3941
3941
|
forcedValues: O = {},
|
|
3942
3942
|
parentWidth: T,
|
|
3943
3943
|
onMustRefreshParent: R
|
|
3944
|
-
} = e, { t: b } = fe(), [V, F] = C(!1), [A, P] = C(), [_, k] = C(), [M] = pt.useForm(), [W, B] = C(), [E, Z] = C(), re = ne(Is), [z, U] = C(), [oe, ee] = C(!1), j = Y(), G = Y({}), L = Y({}), me = Y(!1), J = Y(!1), Q = Y(!1), ge = (T !== void 0 ? T : z) <
|
|
3944
|
+
} = e, { t: b } = fe(), [V, F] = C(!1), [A, P] = C(), [_, k] = C(), [M] = pt.useForm(), [W, B] = C(), [E, Z] = C(), re = ne(Is), [z, U] = C(), [oe, ee] = C(!1), j = Y(), G = Y({}), L = Y({}), me = Y(!1), J = Y(!1), Q = Y(!1), ge = (T !== void 0 ? T : z) < cu, Le = ne(He), { activeId: je, getPlainValues: De } = Le || {}, ke = Y(!1), Ue = ne(
|
|
3945
3945
|
at
|
|
3946
3946
|
), {
|
|
3947
3947
|
setFormIsSaving: Ae = void 0,
|
|
@@ -4081,7 +4081,7 @@ function cu(e, t) {
|
|
|
4081
4081
|
ue == null || ue(!0), P(void 0), H != null && H.fields ? (ie = H.fields, le = H.arch) : (ie = E, le = W), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Te } = await Pn({
|
|
4082
4082
|
fields: ie,
|
|
4083
4083
|
arch: le
|
|
4084
|
-
}), w && (K = { ...
|
|
4084
|
+
}), w && (K = { ...Yc(w), ...K }), G.current = Xt(K, ie), gt({
|
|
4085
4085
|
values: K,
|
|
4086
4086
|
fields: ie,
|
|
4087
4087
|
reset: !0,
|
|
@@ -4139,7 +4139,7 @@ function cu(e, t) {
|
|
|
4139
4139
|
if (ie = (await $.getHandler().readObjects({
|
|
4140
4140
|
model: n,
|
|
4141
4141
|
ids: [ve()],
|
|
4142
|
-
fields:
|
|
4142
|
+
fields: su(H, Te == null ? void 0 : Te.contextForFields),
|
|
4143
4143
|
context: v
|
|
4144
4144
|
}))[0], g)
|
|
4145
4145
|
return { values: ie, defaultGetCalled: le };
|
|
@@ -4226,7 +4226,7 @@ function cu(e, t) {
|
|
|
4226
4226
|
const Te = new Bi(H);
|
|
4227
4227
|
return Te.parse(K, {
|
|
4228
4228
|
readOnly: f || le,
|
|
4229
|
-
values:
|
|
4229
|
+
values: Nc(
|
|
4230
4230
|
{
|
|
4231
4231
|
...ie,
|
|
4232
4232
|
...ft()
|
|
@@ -4263,7 +4263,7 @@ function cu(e, t) {
|
|
|
4263
4263
|
target: Re(E),
|
|
4264
4264
|
fields: E
|
|
4265
4265
|
}), ie = Object.keys(K);
|
|
4266
|
-
if (ie.length !== 0 && !(
|
|
4266
|
+
if (ie.length !== 0 && !(Kc({
|
|
4267
4267
|
changedFields: ie,
|
|
4268
4268
|
formOoui: _,
|
|
4269
4269
|
types: [
|
|
@@ -4281,7 +4281,7 @@ function cu(e, t) {
|
|
|
4281
4281
|
const le = Xt(M.getFieldsValue(!0), E);
|
|
4282
4282
|
L.current = le, c == null || c(le), ce == null || ce(!0), Ra(ie);
|
|
4283
4283
|
}
|
|
4284
|
-
}, Fa =
|
|
4284
|
+
}, Fa = Fl(fr, 100), Ra = async (H) => {
|
|
4285
4285
|
try {
|
|
4286
4286
|
for (let K = 0; K < H.length; K += 1) {
|
|
4287
4287
|
const ie = H[K];
|
|
@@ -4300,7 +4300,7 @@ function cu(e, t) {
|
|
|
4300
4300
|
});
|
|
4301
4301
|
return;
|
|
4302
4302
|
}
|
|
4303
|
-
const ie =
|
|
4303
|
+
const ie = zc({
|
|
4304
4304
|
values: {
|
|
4305
4305
|
...Re(E),
|
|
4306
4306
|
context: {
|
|
@@ -4321,7 +4321,7 @@ function cu(e, t) {
|
|
|
4321
4321
|
const Te = {
|
|
4322
4322
|
...Re(E),
|
|
4323
4323
|
...le.value
|
|
4324
|
-
}, Ze =
|
|
4324
|
+
}, Ze = Mc({
|
|
4325
4325
|
values: Te,
|
|
4326
4326
|
fields: E
|
|
4327
4327
|
});
|
|
@@ -4337,12 +4337,12 @@ function cu(e, t) {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
if (le.warning && le.warning.title && le.warning.message && !me.current) {
|
|
4339
4339
|
const { title: Te, message: Ze } = le.warning;
|
|
4340
|
-
me.current = !0,
|
|
4340
|
+
me.current = !0, tu(Te, Ze, () => {
|
|
4341
4341
|
me.current = !1;
|
|
4342
4342
|
});
|
|
4343
4343
|
}
|
|
4344
4344
|
if (le.domain && Object.keys(le.domain).length > 0) {
|
|
4345
|
-
const Te =
|
|
4345
|
+
const Te = qc({
|
|
4346
4346
|
fieldsDomain: le.domain,
|
|
4347
4347
|
fields: E
|
|
4348
4348
|
});
|
|
@@ -4449,7 +4449,7 @@ function cu(e, t) {
|
|
|
4449
4449
|
},
|
|
4450
4450
|
[W, gt, E, Re, $t]
|
|
4451
4451
|
);
|
|
4452
|
-
|
|
4452
|
+
lu({
|
|
4453
4453
|
model: n,
|
|
4454
4454
|
id: Ne,
|
|
4455
4455
|
context: v,
|
|
@@ -4481,7 +4481,7 @@ function cu(e, t) {
|
|
|
4481
4481
|
}
|
|
4482
4482
|
}
|
|
4483
4483
|
const Na = () => !_ && !A ? /* @__PURE__ */ i(Ge, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i(
|
|
4484
|
-
|
|
4484
|
+
rc,
|
|
4485
4485
|
{
|
|
4486
4486
|
getValues: be,
|
|
4487
4487
|
getPlainValues: Ee,
|
|
@@ -4561,7 +4561,7 @@ function cu(e, t) {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
) : null;
|
|
4563
4563
|
}
|
|
4564
|
-
const yn = yt(
|
|
4564
|
+
const yn = yt(du), vn = (e) => {
|
|
4565
4565
|
const {
|
|
4566
4566
|
visible: t,
|
|
4567
4567
|
id: n,
|
|
@@ -4606,7 +4606,7 @@ const yn = yt(cu), vn = (e) => {
|
|
|
4606
4606
|
Be,
|
|
4607
4607
|
{
|
|
4608
4608
|
type: h ? "primary" : "default",
|
|
4609
|
-
icon: h ? /* @__PURE__ */ i(
|
|
4609
|
+
icon: h ? /* @__PURE__ */ i(il, { style: { color: "white" } }) : /* @__PURE__ */ i(sl, {}),
|
|
4610
4610
|
style: { width: 30 },
|
|
4611
4611
|
onClick: O
|
|
4612
4612
|
}
|
|
@@ -4615,7 +4615,7 @@ const yn = yt(cu), vn = (e) => {
|
|
|
4615
4615
|
] });
|
|
4616
4616
|
}
|
|
4617
4617
|
const R = f * 0.95;
|
|
4618
|
-
return /* @__PURE__ */ i(
|
|
4618
|
+
return /* @__PURE__ */ i(nu, { setTitle: p, children: /* @__PURE__ */ i(
|
|
4619
4619
|
dt,
|
|
4620
4620
|
{
|
|
4621
4621
|
title: a ? T() : d,
|
|
@@ -4640,8 +4640,8 @@ const yn = yt(cu), vn = (e) => {
|
|
|
4640
4640
|
)
|
|
4641
4641
|
}
|
|
4642
4642
|
) });
|
|
4643
|
-
}, { error:
|
|
4644
|
-
|
|
4643
|
+
}, { error: uu } = dt, Ht = (e) => {
|
|
4644
|
+
uu({
|
|
4645
4645
|
title: "Error",
|
|
4646
4646
|
icon: /* @__PURE__ */ i(kt, {}),
|
|
4647
4647
|
centered: !0,
|
|
@@ -4698,7 +4698,7 @@ const yn = yt(cu), vn = (e) => {
|
|
|
4698
4698
|
}, [r, p, t, e, n]);
|
|
4699
4699
|
return { loading: s, treeView: l, formView: u };
|
|
4700
4700
|
};
|
|
4701
|
-
function
|
|
4701
|
+
function fu(e) {
|
|
4702
4702
|
if (e)
|
|
4703
4703
|
try {
|
|
4704
4704
|
if (e.includes(":")) {
|
|
@@ -4728,17 +4728,17 @@ function Fs(e) {
|
|
|
4728
4728
|
});
|
|
4729
4729
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4730
4730
|
}
|
|
4731
|
-
const
|
|
4731
|
+
const mu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs, {}) }), Rs = ({ value: e }) => {
|
|
4732
4732
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
4733
4733
|
minimumIntegerDigits: 1,
|
|
4734
4734
|
maximumFractionDigits: 4,
|
|
4735
4735
|
useGrouping: !1
|
|
4736
4736
|
})}%`;
|
|
4737
4737
|
return /* @__PURE__ */ D("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
4738
|
-
/* @__PURE__ */ i(
|
|
4738
|
+
/* @__PURE__ */ i(pu, { percent: e }),
|
|
4739
4739
|
/* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
4740
4740
|
] });
|
|
4741
|
-
},
|
|
4741
|
+
}, pu = fn(qa)`
|
|
4742
4742
|
.ant-progress-outer {
|
|
4743
4743
|
margin-right: 0px;
|
|
4744
4744
|
padding-right: 0px;
|
|
@@ -4746,7 +4746,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4746
4746
|
.ant-progress-text {
|
|
4747
4747
|
display: none;
|
|
4748
4748
|
}
|
|
4749
|
-
`,
|
|
4749
|
+
`, hu = ({
|
|
4750
4750
|
onRetrieveData: e,
|
|
4751
4751
|
onItemClick: t,
|
|
4752
4752
|
onOpenChange: n
|
|
@@ -4788,7 +4788,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4788
4788
|
}, [l, e]);
|
|
4789
4789
|
return /* @__PURE__ */ D(An, { children: [
|
|
4790
4790
|
/* @__PURE__ */ i(
|
|
4791
|
-
|
|
4791
|
+
Cl,
|
|
4792
4792
|
{
|
|
4793
4793
|
onRetrieveData: f,
|
|
4794
4794
|
onItemClick: (d) => {
|
|
@@ -4841,7 +4841,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4841
4841
|
context: r
|
|
4842
4842
|
});
|
|
4843
4843
|
s(I);
|
|
4844
|
-
const x =
|
|
4844
|
+
const x = gu(I);
|
|
4845
4845
|
let S = {};
|
|
4846
4846
|
if (x.length > 0 && (S = { ...(O = await m({
|
|
4847
4847
|
model: n,
|
|
@@ -4890,7 +4890,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
4892
4892
|
return /* @__PURE__ */ i(
|
|
4893
|
-
|
|
4893
|
+
hu,
|
|
4894
4894
|
{
|
|
4895
4895
|
onRetrieveData: v,
|
|
4896
4896
|
onItemClick: w,
|
|
@@ -4899,7 +4899,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4899
4899
|
}
|
|
4900
4900
|
}
|
|
4901
4901
|
);
|
|
4902
|
-
},
|
|
4902
|
+
}, gu = (e) => {
|
|
4903
4903
|
const { toolbar: t } = e, r = ["action", "relate", "print"].flatMap((o) => {
|
|
4904
4904
|
const s = t[o];
|
|
4905
4905
|
return (s == null ? void 0 : s.flatMap((a) => {
|
|
@@ -4910,13 +4910,13 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4910
4910
|
return [
|
|
4911
4911
|
...new Set(r.filter((o) => o in e.fields))
|
|
4912
4912
|
];
|
|
4913
|
-
},
|
|
4913
|
+
}, yu = (e) => {
|
|
4914
4914
|
const { m2oField: t } = e;
|
|
4915
4915
|
return t ? /* @__PURE__ */ D(Xe, { children: [
|
|
4916
4916
|
/* @__PURE__ */ i(se, { children: t.value }),
|
|
4917
4917
|
/* @__PURE__ */ i(yo, { id: t.id, model: t.model })
|
|
4918
4918
|
] }) : /* @__PURE__ */ i(se, {});
|
|
4919
|
-
},
|
|
4919
|
+
}, vu = (e) => {
|
|
4920
4920
|
const { value: t, context: n, selectionValues: r } = e, [o, s] = C(), [a, l] = C(!1), [c, u] = t ? t.split(",") : [], f = parseInt(u), d = N(async () => {
|
|
4921
4921
|
if (!t || t && o)
|
|
4922
4922
|
return;
|
|
@@ -4941,7 +4941,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4941
4941
|
/* @__PURE__ */ i(se, { children: o }),
|
|
4942
4942
|
/* @__PURE__ */ i(yo, { id: f, model: c })
|
|
4943
4943
|
] });
|
|
4944
|
-
},
|
|
4944
|
+
}, wu = (e) => {
|
|
4945
4945
|
const { ooui: t, value: n } = e;
|
|
4946
4946
|
if (!n)
|
|
4947
4947
|
return null;
|
|
@@ -4949,14 +4949,14 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4949
4949
|
t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
|
|
4950
4950
|
const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = Fn(r);
|
|
4951
4951
|
return /* @__PURE__ */ i(Vt, { title: r, children: /* @__PURE__ */ i(Di, { alt: r, style: { backgroundColor: s }, children: o }) });
|
|
4952
|
-
},
|
|
4953
|
-
en_US:
|
|
4954
|
-
es_ES:
|
|
4955
|
-
ca_ES:
|
|
4952
|
+
}, bu = {
|
|
4953
|
+
en_US: Hl,
|
|
4954
|
+
es_ES: Ul,
|
|
4955
|
+
ca_ES: Wl
|
|
4956
4956
|
}, vo = () => {
|
|
4957
4957
|
const { locale: e } = fe();
|
|
4958
|
-
return
|
|
4959
|
-
}, { useToken:
|
|
4958
|
+
return bu[e];
|
|
4959
|
+
}, { useToken: Su } = Ke, Ot = {
|
|
4960
4960
|
date: {
|
|
4961
4961
|
placeholder: "__/__/____",
|
|
4962
4962
|
dateDisplayFormat: "DD/MM/YYYY",
|
|
@@ -4969,9 +4969,9 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
4969
4969
|
}
|
|
4970
4970
|
}, _s = (e) => {
|
|
4971
4971
|
const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
|
|
4972
|
-
return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(
|
|
4973
|
-
},
|
|
4974
|
-
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } =
|
|
4972
|
+
return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(Cu, { ooui: t, showTime: n }) });
|
|
4973
|
+
}, Cu = (e) => {
|
|
4974
|
+
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = Su(), u = vo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (y) => {
|
|
4975
4975
|
n == null || n(y);
|
|
4976
4976
|
}, h = (y) => {
|
|
4977
4977
|
if (y == null) {
|
|
@@ -5009,13 +5009,13 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5009
5009
|
Yr,
|
|
5010
5010
|
{
|
|
5011
5011
|
closable: !!t,
|
|
5012
|
-
color:
|
|
5012
|
+
color: Gl.isEmail(r) ? void 0 : "error",
|
|
5013
5013
|
onClose: () => t && t(r),
|
|
5014
5014
|
children: r
|
|
5015
5015
|
},
|
|
5016
5016
|
o
|
|
5017
5017
|
)) });
|
|
5018
|
-
},
|
|
5018
|
+
}, xu = ({
|
|
5019
5019
|
value: e = "",
|
|
5020
5020
|
onChange: t,
|
|
5021
5021
|
maxLength: n,
|
|
@@ -5094,7 +5094,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5094
5094
|
]
|
|
5095
5095
|
}
|
|
5096
5096
|
);
|
|
5097
|
-
},
|
|
5097
|
+
}, Iu = ({
|
|
5098
5098
|
value: e
|
|
5099
5099
|
}) => de(
|
|
5100
5100
|
() => /* @__PURE__ */ i(
|
|
@@ -5110,9 +5110,9 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5110
5110
|
}
|
|
5111
5111
|
),
|
|
5112
5112
|
[e]
|
|
5113
|
-
),
|
|
5113
|
+
), Tu = ({
|
|
5114
5114
|
value: e
|
|
5115
|
-
}) => de(() => /* @__PURE__ */ i(Vs, { emails: e }), [e]),
|
|
5115
|
+
}) => de(() => /* @__PURE__ */ i(Vs, { emails: e }), [e]), Ou = ({ value: e }) => de(() => /* @__PURE__ */ i(yu, { m2oField: e }), [e]), Au = ({ value: e }) => de(
|
|
5116
5116
|
() => /* @__PURE__ */ i(
|
|
5117
5117
|
In,
|
|
5118
5118
|
{
|
|
@@ -5120,7 +5120,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5120
5120
|
}
|
|
5121
5121
|
),
|
|
5122
5122
|
[e]
|
|
5123
|
-
),
|
|
5123
|
+
), Fu = ({ value: e }) => de(() => {
|
|
5124
5124
|
if (!e || e && e.length === 0)
|
|
5125
5125
|
return /* @__PURE__ */ i(se, {});
|
|
5126
5126
|
const t = st(
|
|
@@ -5128,7 +5128,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5128
5128
|
Ot.date.dateInternalFormat
|
|
5129
5129
|
).format(Ot.date.dateDisplayFormat);
|
|
5130
5130
|
return /* @__PURE__ */ i(se, { children: t });
|
|
5131
|
-
}, [e]),
|
|
5131
|
+
}, [e]), Ru = ({ value: e }) => de(() => {
|
|
5132
5132
|
if (!e || e && e.length === 0)
|
|
5133
5133
|
return /* @__PURE__ */ i(se, {});
|
|
5134
5134
|
const t = st(
|
|
@@ -5141,20 +5141,20 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5141
5141
|
}) => de(() => {
|
|
5142
5142
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
5143
5143
|
return /* @__PURE__ */ i(se, { children: `( ${t} )` });
|
|
5144
|
-
}, [e]),
|
|
5144
|
+
}, [e]), _u = ({
|
|
5145
5145
|
value: e
|
|
5146
|
-
}) => de(() => /* @__PURE__ */ i(Rs, { value: e }), [e]),
|
|
5146
|
+
}) => de(() => /* @__PURE__ */ i(Rs, { value: e }), [e]), Vu = ({ value: e }) => de(() => /* @__PURE__ */ i(se, { children: Fs(e) }), [e]), Qo = ({ value: e }) => de(
|
|
5147
5147
|
() => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
|
|
5148
5148
|
[e]
|
|
5149
|
-
),
|
|
5149
|
+
), Eu = ({ value: e }) => de(
|
|
5150
5150
|
() => /* @__PURE__ */ i(co, { value: e, style: { maxHeight: "30px" } }),
|
|
5151
5151
|
[e]
|
|
5152
|
-
),
|
|
5152
|
+
), Du = ({
|
|
5153
5153
|
value: e,
|
|
5154
5154
|
key: t,
|
|
5155
5155
|
ooui: n,
|
|
5156
5156
|
context: r
|
|
5157
|
-
}) => de(() => /* @__PURE__ */ i(Cs, { ooui: n, value: e }), [n, e]),
|
|
5157
|
+
}) => de(() => /* @__PURE__ */ i(Cs, { ooui: n, value: e }), [n, e]), Pu = ({
|
|
5158
5158
|
value: e,
|
|
5159
5159
|
key: t,
|
|
5160
5160
|
ooui: n,
|
|
@@ -5162,14 +5162,14 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5162
5162
|
}) => de(() => {
|
|
5163
5163
|
let o = e;
|
|
5164
5164
|
return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(se, { children: n.selectionValues.get(o) });
|
|
5165
|
-
}, [n, e]),
|
|
5165
|
+
}, [n, e]), ku = ({
|
|
5166
5166
|
value: e,
|
|
5167
5167
|
key: t,
|
|
5168
5168
|
ooui: n,
|
|
5169
5169
|
context: r
|
|
5170
5170
|
}) => de(
|
|
5171
5171
|
() => /* @__PURE__ */ i(
|
|
5172
|
-
|
|
5172
|
+
vu,
|
|
5173
5173
|
{
|
|
5174
5174
|
value: e,
|
|
5175
5175
|
selectionValues: n.selectionValues,
|
|
@@ -5177,12 +5177,12 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5177
5177
|
}
|
|
5178
5178
|
),
|
|
5179
5179
|
[r, n.selectionValues, e]
|
|
5180
|
-
),
|
|
5180
|
+
), $u = ({
|
|
5181
5181
|
value: e,
|
|
5182
5182
|
key: t,
|
|
5183
5183
|
ooui: n,
|
|
5184
5184
|
context: r
|
|
5185
|
-
}) => de(() => /* @__PURE__ */ i(
|
|
5185
|
+
}) => de(() => /* @__PURE__ */ i(wu, { ooui: n, value: e }), [n, e]), Nu = ({
|
|
5186
5186
|
value: e,
|
|
5187
5187
|
key: t,
|
|
5188
5188
|
ooui: n,
|
|
@@ -5228,25 +5228,25 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5228
5228
|
}
|
|
5229
5229
|
), [d, a]);
|
|
5230
5230
|
}, wo = {
|
|
5231
|
-
boolean:
|
|
5232
|
-
many2one:
|
|
5233
|
-
text:
|
|
5231
|
+
boolean: Iu,
|
|
5232
|
+
many2one: Ou,
|
|
5233
|
+
text: Au,
|
|
5234
5234
|
one2many: Jo,
|
|
5235
5235
|
many2many: Jo,
|
|
5236
|
-
progressbar:
|
|
5237
|
-
float_time:
|
|
5238
|
-
image:
|
|
5236
|
+
progressbar: _u,
|
|
5237
|
+
float_time: Vu,
|
|
5238
|
+
image: Eu,
|
|
5239
5239
|
integer: Qo,
|
|
5240
5240
|
float: Qo,
|
|
5241
|
-
reference:
|
|
5242
|
-
tag:
|
|
5243
|
-
selection:
|
|
5244
|
-
date:
|
|
5245
|
-
datetime:
|
|
5246
|
-
avatar:
|
|
5247
|
-
tags:
|
|
5248
|
-
email:
|
|
5249
|
-
},
|
|
5241
|
+
reference: ku,
|
|
5242
|
+
tag: Du,
|
|
5243
|
+
selection: Pu,
|
|
5244
|
+
date: Fu,
|
|
5245
|
+
datetime: Ru,
|
|
5246
|
+
avatar: $u,
|
|
5247
|
+
tags: Nu,
|
|
5248
|
+
email: Tu
|
|
5249
|
+
}, Mu = ({
|
|
5250
5250
|
elementRef: e,
|
|
5251
5251
|
offset: t = 0,
|
|
5252
5252
|
dependencies: n = []
|
|
@@ -5261,7 +5261,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5261
5261
|
};
|
|
5262
5262
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
5263
5263
|
}, [e, ...n]), de(() => r, [r]) - t;
|
|
5264
|
-
},
|
|
5264
|
+
}, Lu = (e) => {
|
|
5265
5265
|
const t = ht(async () => {
|
|
5266
5266
|
if (!e)
|
|
5267
5267
|
return;
|
|
@@ -5274,7 +5274,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5274
5274
|
[e]
|
|
5275
5275
|
);
|
|
5276
5276
|
return { getColumnState: t, updateColumnState: n };
|
|
5277
|
-
},
|
|
5277
|
+
}, ju = (e) => {
|
|
5278
5278
|
ae(() => () => {
|
|
5279
5279
|
n(), o();
|
|
5280
5280
|
}, []);
|
|
@@ -5308,16 +5308,16 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5308
5308
|
[e]
|
|
5309
5309
|
);
|
|
5310
5310
|
return { getColumnState: s, updateColumnState: a };
|
|
5311
|
-
},
|
|
5311
|
+
}, Bu = (e) => {
|
|
5312
5312
|
const t = cr(
|
|
5313
5313
|
pn.FEATURE_USERVIEWPREFS
|
|
5314
5314
|
), {
|
|
5315
5315
|
getColumnState: n,
|
|
5316
5316
|
updateColumnState: r
|
|
5317
|
-
} =
|
|
5317
|
+
} = Lu(e), {
|
|
5318
5318
|
getColumnState: o,
|
|
5319
5319
|
updateColumnState: s
|
|
5320
|
-
} =
|
|
5320
|
+
} = ju(e), a = ht(async () => {
|
|
5321
5321
|
if (!t)
|
|
5322
5322
|
return n();
|
|
5323
5323
|
try {
|
|
@@ -5343,7 +5343,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5343
5343
|
);
|
|
5344
5344
|
return { getColumnState: a, updateColumnState: l };
|
|
5345
5345
|
}, Es = (e) => {
|
|
5346
|
-
const [t, n] = C(!0), r = Y(void 0), o = Y(!1), { getColumnState: s, updateColumnState: a } =
|
|
5346
|
+
const [t, n] = C(!0), r = Y(void 0), o = Y(!1), { getColumnState: s, updateColumnState: a } = Bu(e);
|
|
5347
5347
|
return ae(() => {
|
|
5348
5348
|
if (!e) {
|
|
5349
5349
|
n(!1);
|
|
@@ -5362,7 +5362,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5362
5362
|
}
|
|
5363
5363
|
})();
|
|
5364
5364
|
}, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
|
|
5365
|
-
},
|
|
5365
|
+
}, Hu = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Xo = ["sum", "count", "max", "min"], Ds = ({
|
|
5366
5366
|
ooui: e,
|
|
5367
5367
|
model: t,
|
|
5368
5368
|
domain: n,
|
|
@@ -5460,7 +5460,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5460
5460
|
]
|
|
5461
5461
|
}
|
|
5462
5462
|
);
|
|
5463
|
-
}, { Text: Zo } = Pt,
|
|
5463
|
+
}, { Text: Zo } = Pt, Uu = ({
|
|
5464
5464
|
totalRows: e,
|
|
5465
5465
|
selectedRowKeys: t,
|
|
5466
5466
|
allRowSelectedMode: n
|
|
@@ -5473,7 +5473,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5473
5473
|
className: "pb-4",
|
|
5474
5474
|
style: { height: 40, maxHeight: 40, overflow: "hidden" },
|
|
5475
5475
|
children: [
|
|
5476
|
-
/* @__PURE__ */ i(Ce, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(
|
|
5476
|
+
/* @__PURE__ */ i(Ce, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Wu, { selectedRowKeys: t }) }),
|
|
5477
5477
|
/* @__PURE__ */ D(Ce, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
|
|
5478
5478
|
e === void 0 && /* @__PURE__ */ i(Ge, {}),
|
|
5479
5479
|
e != null && `${r("totalRegisters")} ${e}`
|
|
@@ -5481,7 +5481,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5481
5481
|
]
|
|
5482
5482
|
}
|
|
5483
5483
|
);
|
|
5484
|
-
},
|
|
5484
|
+
}, Wu = ({
|
|
5485
5485
|
selectedRowKeys: e
|
|
5486
5486
|
}) => {
|
|
5487
5487
|
const { t } = fe();
|
|
@@ -5508,7 +5508,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5508
5508
|
}
|
|
5509
5509
|
)
|
|
5510
5510
|
] });
|
|
5511
|
-
},
|
|
5511
|
+
}, Gu = (e) => {
|
|
5512
5512
|
const t = vo();
|
|
5513
5513
|
return /* @__PURE__ */ i(_e, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
|
|
5514
5514
|
zr.RangePicker,
|
|
@@ -5541,7 +5541,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5541
5541
|
}
|
|
5542
5542
|
}
|
|
5543
5543
|
);
|
|
5544
|
-
},
|
|
5544
|
+
}, Ku = (e) => {
|
|
5545
5545
|
const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = vo(), a = [
|
|
5546
5546
|
new Rr({
|
|
5547
5547
|
name: o + "#date",
|
|
@@ -5575,10 +5575,10 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5575
5575
|
locale: s
|
|
5576
5576
|
}
|
|
5577
5577
|
) }) }),
|
|
5578
|
-
/* @__PURE__ */ i(Ce, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i(
|
|
5578
|
+
/* @__PURE__ */ i(Ce, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i(qu, {}) }) })
|
|
5579
5579
|
] })
|
|
5580
5580
|
] });
|
|
5581
|
-
},
|
|
5581
|
+
}, qu = ({
|
|
5582
5582
|
value: e,
|
|
5583
5583
|
onChange: t
|
|
5584
5584
|
}) => /* @__PURE__ */ D("div", { style: { marginTop: 5 }, children: [
|
|
@@ -5606,8 +5606,8 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5606
5606
|
}
|
|
5607
5607
|
}
|
|
5608
5608
|
)
|
|
5609
|
-
] }), { useToken:
|
|
5610
|
-
const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } =
|
|
5609
|
+
] }), { useToken: Yu } = Ke, ks = (e) => {
|
|
5610
|
+
const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = Yu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(He), { elementHasLostFocus: u } = c || {};
|
|
5611
5611
|
return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
5612
5612
|
Pi,
|
|
5613
5613
|
{
|
|
@@ -5622,8 +5622,8 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5622
5622
|
wheel: !1
|
|
5623
5623
|
}
|
|
5624
5624
|
) });
|
|
5625
|
-
}, { useToken:
|
|
5626
|
-
const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } =
|
|
5625
|
+
}, { useToken: zu } = Ke, qn = (e) => {
|
|
5626
|
+
const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = zu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(He), { elementHasLostFocus: u } = c || {};
|
|
5627
5627
|
return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
5628
5628
|
Pi,
|
|
5629
5629
|
{
|
|
@@ -5642,7 +5642,7 @@ const fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Rs,
|
|
|
5642
5642
|
}
|
|
5643
5643
|
) });
|
|
5644
5644
|
};
|
|
5645
|
-
function
|
|
5645
|
+
function Ju(e) {
|
|
5646
5646
|
const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof _r ? qn : ks, l = (c) => /* @__PURE__ */ i(
|
|
5647
5647
|
a,
|
|
5648
5648
|
{
|
|
@@ -5684,17 +5684,17 @@ function zu(e) {
|
|
|
5684
5684
|
)
|
|
5685
5685
|
] });
|
|
5686
5686
|
}
|
|
5687
|
-
const { defaultAlgorithm:
|
|
5687
|
+
const { defaultAlgorithm: Qu, defaultSeed: Xu } = Ke, Zu = Qu(Xu), { Option: ef } = Ut, tf = (e) => {
|
|
5688
5688
|
const { ooui: t } = e, { required: n } = t;
|
|
5689
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(
|
|
5690
|
-
},
|
|
5689
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(nf, { ...e }) });
|
|
5690
|
+
}, nf = (e) => {
|
|
5691
5691
|
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) => {
|
|
5692
5692
|
const [p] = d;
|
|
5693
5693
|
return r ? !r.includes(p) : !0;
|
|
5694
5694
|
}).map((d) => {
|
|
5695
5695
|
const [p, h] = d;
|
|
5696
|
-
return /* @__PURE__ */ i(
|
|
5697
|
-
}), u = a && !s ?
|
|
5696
|
+
return /* @__PURE__ */ i(ef, { value: h, children: h }, p);
|
|
5697
|
+
}), u = a && !s ? rf : Ut;
|
|
5698
5698
|
function f(d) {
|
|
5699
5699
|
const p = d.map((h) => {
|
|
5700
5700
|
const m = l.find(([y, g]) => h === g);
|
|
@@ -5717,9 +5717,9 @@ const { defaultAlgorithm: Ju, defaultSeed: Qu } = Ke, Xu = Ju(Qu), { Option: Zu
|
|
|
5717
5717
|
children: c
|
|
5718
5718
|
}
|
|
5719
5719
|
);
|
|
5720
|
-
},
|
|
5720
|
+
}, rf = fn(Ut)`
|
|
5721
5721
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
5722
|
-
background-color: ${
|
|
5722
|
+
background-color: ${Zu.colorPrimaryBg};
|
|
5723
5723
|
}
|
|
5724
5724
|
`;
|
|
5725
5725
|
function $s(e) {
|
|
@@ -5742,13 +5742,13 @@ function $s(e) {
|
|
|
5742
5742
|
case Rt.progressbar:
|
|
5743
5743
|
case Rt.float_time:
|
|
5744
5744
|
case Rt.integer:
|
|
5745
|
-
return /* @__PURE__ */ i(
|
|
5745
|
+
return /* @__PURE__ */ i(Ju, { ooui: t, showLabel: !0 });
|
|
5746
5746
|
case Rt.date:
|
|
5747
|
-
return /* @__PURE__ */ i(Wu, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5748
|
-
case Rt.datetime:
|
|
5749
5747
|
return /* @__PURE__ */ i(Gu, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5748
|
+
case Rt.datetime:
|
|
5749
|
+
return /* @__PURE__ */ i(Ku, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
5750
5750
|
case Rt.selection:
|
|
5751
|
-
return /* @__PURE__ */ i(
|
|
5751
|
+
return /* @__PURE__ */ i(tf, { layout: "vertical", ooui: t, showLabel: !0 });
|
|
5752
5752
|
default:
|
|
5753
5753
|
return /* @__PURE__ */ i(
|
|
5754
5754
|
is,
|
|
@@ -5762,14 +5762,14 @@ function $s(e) {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
}
|
|
5764
5764
|
const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Ln = (e, t) => {
|
|
5765
|
-
const n =
|
|
5765
|
+
const n = df(e), r = lf(n), o = cf(
|
|
5766
5766
|
r,
|
|
5767
5767
|
t
|
|
5768
5768
|
);
|
|
5769
5769
|
return [
|
|
5770
|
-
...Object.keys(o).map((l) =>
|
|
5770
|
+
...Object.keys(o).map((l) => of(l, o[l], t))
|
|
5771
5771
|
].reduce((l, c) => Array.isArray(c[0]) ? l.concat(c) : [...l, c], []);
|
|
5772
|
-
},
|
|
5772
|
+
}, of = (e, t, n) => {
|
|
5773
5773
|
var s;
|
|
5774
5774
|
const r = e.split("#")[0], o = (s = n.findById(r)) == null ? void 0 : s.type;
|
|
5775
5775
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -5791,14 +5791,14 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5791
5791
|
(a) => ei(a)
|
|
5792
5792
|
)
|
|
5793
5793
|
] : [e, "=", ei(t)];
|
|
5794
|
-
},
|
|
5794
|
+
}, sf = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), af = (e) => {
|
|
5795
5795
|
const t = { ...e };
|
|
5796
5796
|
return Object.keys(t).forEach(
|
|
5797
5797
|
(n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
|
|
5798
5798
|
), t;
|
|
5799
|
-
},
|
|
5800
|
-
const t = { ...
|
|
5801
|
-
return
|
|
5799
|
+
}, lf = (e) => {
|
|
5800
|
+
const t = { ...af(e) };
|
|
5801
|
+
return sf(e).forEach((r) => {
|
|
5802
5802
|
const o = e[r], s = r.split("#")[0], a = s + "#time", l = e[a];
|
|
5803
5803
|
let c, u;
|
|
5804
5804
|
if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -5811,7 +5811,7 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5811
5811
|
}
|
|
5812
5812
|
t[s + "#datetime"] = [c, u];
|
|
5813
5813
|
}), t;
|
|
5814
|
-
},
|
|
5814
|
+
}, cf = (e, t) => {
|
|
5815
5815
|
const n = Object.keys(e).filter((o) => {
|
|
5816
5816
|
const s = t.findById(o);
|
|
5817
5817
|
return s && s.type === "date";
|
|
@@ -5819,29 +5819,29 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5819
5819
|
return n.forEach((o) => {
|
|
5820
5820
|
delete r[o], e[o][0] !== null && (r[o + "#from"] = e[o][0]), e[o][1] !== null && (r[o + "#to"] = e[o][1]);
|
|
5821
5821
|
}), r;
|
|
5822
|
-
},
|
|
5822
|
+
}, df = (e) => {
|
|
5823
5823
|
const t = { ...e };
|
|
5824
5824
|
return Object.keys(t).forEach(
|
|
5825
5825
|
(n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
|
|
5826
5826
|
), t;
|
|
5827
|
-
},
|
|
5827
|
+
}, uf = (e) => {
|
|
5828
5828
|
const t = {};
|
|
5829
5829
|
return e.forEach((n) => {
|
|
5830
5830
|
Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
|
|
5831
5831
|
}), Object.keys(t);
|
|
5832
5832
|
}, an = (e, t) => {
|
|
5833
|
-
const n = [...e], r =
|
|
5833
|
+
const n = [...e], r = uf(e);
|
|
5834
5834
|
return t.forEach((o) => {
|
|
5835
5835
|
Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
|
|
5836
5836
|
}), n;
|
|
5837
|
-
}, { useToken:
|
|
5837
|
+
}, { useToken: ff } = Ke, { Title: mf } = Pt, { Header: pf, Content: hf, Footer: gf } = ki, yf = ({
|
|
5838
5838
|
isOpen: e,
|
|
5839
5839
|
onClose: t,
|
|
5840
5840
|
children: n,
|
|
5841
5841
|
title: r,
|
|
5842
5842
|
footer: o
|
|
5843
5843
|
}) => {
|
|
5844
|
-
const [s, a] = C(e), l = Y(null), { token: c } =
|
|
5844
|
+
const [s, a] = C(e), l = Y(null), { token: c } = ff(), u = N(
|
|
5845
5845
|
(h) => {
|
|
5846
5846
|
h.preventDefault(), h.stopPropagation(), t();
|
|
5847
5847
|
},
|
|
@@ -5870,7 +5870,7 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5870
5870
|
padding: "0 16px",
|
|
5871
5871
|
borderBottom: "1px solid #f0f0f0"
|
|
5872
5872
|
};
|
|
5873
|
-
return /* @__PURE__ */ i(
|
|
5873
|
+
return /* @__PURE__ */ i(nc, { children: e && /* @__PURE__ */ D(se, { children: [
|
|
5874
5874
|
/* @__PURE__ */ i(
|
|
5875
5875
|
No.div,
|
|
5876
5876
|
{
|
|
@@ -5912,8 +5912,8 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5912
5912
|
flexDirection: "column"
|
|
5913
5913
|
},
|
|
5914
5914
|
children: [
|
|
5915
|
-
/* @__PURE__ */ D(
|
|
5916
|
-
/* @__PURE__ */ i(
|
|
5915
|
+
/* @__PURE__ */ D(pf, { style: p, children: [
|
|
5916
|
+
/* @__PURE__ */ i(mf, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
|
|
5917
5917
|
/* @__PURE__ */ i(
|
|
5918
5918
|
Be,
|
|
5919
5919
|
{
|
|
@@ -5925,7 +5925,7 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5925
5925
|
)
|
|
5926
5926
|
] }),
|
|
5927
5927
|
/* @__PURE__ */ i(
|
|
5928
|
-
|
|
5928
|
+
hf,
|
|
5929
5929
|
{
|
|
5930
5930
|
style: {
|
|
5931
5931
|
flex: 1,
|
|
@@ -5935,7 +5935,7 @@ const ei = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5935
5935
|
}
|
|
5936
5936
|
),
|
|
5937
5937
|
o && /* @__PURE__ */ i(
|
|
5938
|
-
|
|
5938
|
+
gf,
|
|
5939
5939
|
{
|
|
5940
5940
|
style: {
|
|
5941
5941
|
...p,
|
|
@@ -5955,14 +5955,14 @@ var Nn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
5955
5955
|
function Ns(e) {
|
|
5956
5956
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5957
5957
|
}
|
|
5958
|
-
var
|
|
5959
|
-
return
|
|
5958
|
+
var vf = "Expected a function", ti = 0 / 0, wf = "[object Symbol]", bf = /^\s+|\s+$/g, Sf = /^[-+]0x[0-9a-f]+$/i, Cf = /^0b[01]+$/i, xf = /^0o[0-7]+$/i, If = parseInt, Tf = typeof Nn == "object" && Nn && Nn.Object === Object && Nn, Of = typeof self == "object" && self && self.Object === Object && self, Af = Tf || Of || Function("return this")(), Ff = Object.prototype, Rf = Ff.toString, _f = Math.max, Vf = Math.min, wr = function() {
|
|
5959
|
+
return Af.Date.now();
|
|
5960
5960
|
};
|
|
5961
|
-
function
|
|
5961
|
+
function Ef(e, t, n) {
|
|
5962
5962
|
var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
|
|
5963
5963
|
if (typeof e != "function")
|
|
5964
|
-
throw new TypeError(
|
|
5965
|
-
t = ni(t) || 0, Pr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ?
|
|
5964
|
+
throw new TypeError(vf);
|
|
5965
|
+
t = ni(t) || 0, Pr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? _f(ni(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
|
|
5966
5966
|
function h(O) {
|
|
5967
5967
|
var T = r, R = o;
|
|
5968
5968
|
return r = o = void 0, u = O, a = e.apply(R, T), a;
|
|
@@ -5972,7 +5972,7 @@ function Vf(e, t, n) {
|
|
|
5972
5972
|
}
|
|
5973
5973
|
function y(O) {
|
|
5974
5974
|
var T = O - c, R = O - u, b = t - T;
|
|
5975
|
-
return d ?
|
|
5975
|
+
return d ? Vf(b, s - R) : b;
|
|
5976
5976
|
}
|
|
5977
5977
|
function g(O) {
|
|
5978
5978
|
var T = O - c, R = O - u;
|
|
@@ -6009,16 +6009,16 @@ function Pr(e) {
|
|
|
6009
6009
|
var t = typeof e;
|
|
6010
6010
|
return !!e && (t == "object" || t == "function");
|
|
6011
6011
|
}
|
|
6012
|
-
function
|
|
6012
|
+
function Df(e) {
|
|
6013
6013
|
return !!e && typeof e == "object";
|
|
6014
6014
|
}
|
|
6015
|
-
function
|
|
6016
|
-
return typeof e == "symbol" ||
|
|
6015
|
+
function Pf(e) {
|
|
6016
|
+
return typeof e == "symbol" || Df(e) && Rf.call(e) == wf;
|
|
6017
6017
|
}
|
|
6018
6018
|
function ni(e) {
|
|
6019
6019
|
if (typeof e == "number")
|
|
6020
6020
|
return e;
|
|
6021
|
-
if (
|
|
6021
|
+
if (Pf(e))
|
|
6022
6022
|
return ti;
|
|
6023
6023
|
if (Pr(e)) {
|
|
6024
6024
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -6026,17 +6026,17 @@ function ni(e) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
if (typeof e != "string")
|
|
6028
6028
|
return e === 0 ? e : +e;
|
|
6029
|
-
e = e.replace(
|
|
6030
|
-
var n =
|
|
6031
|
-
return n ||
|
|
6029
|
+
e = e.replace(bf, "");
|
|
6030
|
+
var n = Cf.test(e);
|
|
6031
|
+
return n || xf.test(e) ? If(e.slice(2), n ? 2 : 8) : Sf.test(e) ? ti : +e;
|
|
6032
6032
|
}
|
|
6033
|
-
var
|
|
6034
|
-
const
|
|
6033
|
+
var kf = Ef;
|
|
6034
|
+
const $f = /* @__PURE__ */ Ns(kf);
|
|
6035
6035
|
var ri = Object.prototype.toString, Ms = function(t) {
|
|
6036
6036
|
var n = ri.call(t), r = n === "[object Arguments]";
|
|
6037
6037
|
return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ri.call(t.callee) === "[object Function]"), r;
|
|
6038
6038
|
}, br, oi;
|
|
6039
|
-
function
|
|
6039
|
+
function Nf() {
|
|
6040
6040
|
if (oi)
|
|
6041
6041
|
return br;
|
|
6042
6042
|
oi = 1;
|
|
@@ -6124,9 +6124,9 @@ function $f() {
|
|
|
6124
6124
|
}
|
|
6125
6125
|
return br = e, br;
|
|
6126
6126
|
}
|
|
6127
|
-
var
|
|
6127
|
+
var Mf = Array.prototype.slice, Lf = Ms, ii = Object.keys, jn = ii ? function(t) {
|
|
6128
6128
|
return ii(t);
|
|
6129
|
-
} :
|
|
6129
|
+
} : Nf(), si = Object.keys;
|
|
6130
6130
|
jn.shim = function() {
|
|
6131
6131
|
if (Object.keys) {
|
|
6132
6132
|
var t = function() {
|
|
@@ -6134,7 +6134,7 @@ jn.shim = function() {
|
|
|
6134
6134
|
return n && n.length === arguments.length;
|
|
6135
6135
|
}(1, 2);
|
|
6136
6136
|
t || (Object.keys = function(r) {
|
|
6137
|
-
return
|
|
6137
|
+
return Lf(r) ? si(Mf.call(r)) : si(r);
|
|
6138
6138
|
});
|
|
6139
6139
|
} else
|
|
6140
6140
|
Object.keys = jn;
|
|
@@ -6163,18 +6163,18 @@ var Ls = jn, js = function() {
|
|
|
6163
6163
|
return !1;
|
|
6164
6164
|
}
|
|
6165
6165
|
return !0;
|
|
6166
|
-
},
|
|
6167
|
-
return
|
|
6168
|
-
}, ai = typeof Symbol < "u" && Symbol,
|
|
6169
|
-
return typeof ai != "function" || typeof Symbol != "function" || typeof ai("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
6166
|
+
}, jf = js, bo = function() {
|
|
6167
|
+
return jf() && !!Symbol.toStringTag;
|
|
6168
|
+
}, ai = typeof Symbol < "u" && Symbol, Bf = js, Hf = function() {
|
|
6169
|
+
return typeof ai != "function" || typeof Symbol != "function" || typeof ai("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Bf();
|
|
6170
6170
|
}, li = {
|
|
6171
6171
|
foo: {}
|
|
6172
|
-
},
|
|
6173
|
-
return { __proto__: li }.foo === li.foo && !({ __proto__: null } instanceof
|
|
6174
|
-
},
|
|
6172
|
+
}, Uf = Object, Wf = function() {
|
|
6173
|
+
return { __proto__: li }.foo === li.foo && !({ __proto__: null } instanceof Uf);
|
|
6174
|
+
}, Gf = "Function.prototype.bind called on incompatible ", Sr = Array.prototype.slice, Kf = Object.prototype.toString, qf = "[object Function]", Yf = function(t) {
|
|
6175
6175
|
var n = this;
|
|
6176
|
-
if (typeof n != "function" ||
|
|
6177
|
-
throw new TypeError(
|
|
6176
|
+
if (typeof n != "function" || Kf.call(n) !== qf)
|
|
6177
|
+
throw new TypeError(Gf + n);
|
|
6178
6178
|
for (var r = Sr.call(arguments, 1), o, s = function() {
|
|
6179
6179
|
if (this instanceof o) {
|
|
6180
6180
|
var f = n.apply(
|
|
@@ -6195,7 +6195,7 @@ var Ls = jn, js = function() {
|
|
|
6195
6195
|
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
6196
6196
|
}
|
|
6197
6197
|
return o;
|
|
6198
|
-
},
|
|
6198
|
+
}, zf = Yf, Bs = Function.prototype.bind || zf, ci = {}.hasOwnProperty, Cr = Function.prototype.call, Jf = Cr.bind ? Cr.bind(ci) : function(e, t) {
|
|
6199
6199
|
return Cr.call(ci, e, t);
|
|
6200
6200
|
}, Ve, ln = SyntaxError, Hs = Function, rn = TypeError, xr = function(e) {
|
|
6201
6201
|
try {
|
|
@@ -6211,7 +6211,7 @@ if (jt)
|
|
|
6211
6211
|
}
|
|
6212
6212
|
var Ir = function() {
|
|
6213
6213
|
throw new rn();
|
|
6214
|
-
},
|
|
6214
|
+
}, Qf = jt ? function() {
|
|
6215
6215
|
try {
|
|
6216
6216
|
return arguments.callee, Ir;
|
|
6217
6217
|
} catch {
|
|
@@ -6221,9 +6221,9 @@ var Ir = function() {
|
|
|
6221
6221
|
return Ir;
|
|
6222
6222
|
}
|
|
6223
6223
|
}
|
|
6224
|
-
}() : Ir, Yt =
|
|
6224
|
+
}() : Ir, Yt = Hf(), Xf = Wf(), et = Object.getPrototypeOf || (Xf ? function(e) {
|
|
6225
6225
|
return e.__proto__;
|
|
6226
|
-
} : null), Zt = {},
|
|
6226
|
+
} : null), Zt = {}, Zf = typeof Uint8Array > "u" || !et ? Ve : et(Uint8Array), Bt = {
|
|
6227
6227
|
"%AggregateError%": typeof AggregateError > "u" ? Ve : AggregateError,
|
|
6228
6228
|
"%Array%": Array,
|
|
6229
6229
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ve : ArrayBuffer,
|
|
@@ -6280,8 +6280,8 @@ var Ir = function() {
|
|
|
6280
6280
|
"%StringIteratorPrototype%": Yt && et ? et(""[Symbol.iterator]()) : Ve,
|
|
6281
6281
|
"%Symbol%": Yt ? Symbol : Ve,
|
|
6282
6282
|
"%SyntaxError%": ln,
|
|
6283
|
-
"%ThrowTypeError%":
|
|
6284
|
-
"%TypedArray%":
|
|
6283
|
+
"%ThrowTypeError%": Qf,
|
|
6284
|
+
"%TypedArray%": Zf,
|
|
6285
6285
|
"%TypeError%": rn,
|
|
6286
6286
|
"%Uint8Array%": typeof Uint8Array > "u" ? Ve : Uint8Array,
|
|
6287
6287
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ve : Uint8ClampedArray,
|
|
@@ -6296,10 +6296,10 @@ if (et)
|
|
|
6296
6296
|
try {
|
|
6297
6297
|
null.error;
|
|
6298
6298
|
} catch (e) {
|
|
6299
|
-
var
|
|
6300
|
-
Bt["%Error.prototype%"] =
|
|
6299
|
+
var em = et(et(e));
|
|
6300
|
+
Bt["%Error.prototype%"] = em;
|
|
6301
6301
|
}
|
|
6302
|
-
var
|
|
6302
|
+
var tm = function e(t) {
|
|
6303
6303
|
var n;
|
|
6304
6304
|
if (t === "%AsyncFunction%")
|
|
6305
6305
|
n = xr("async function () {}");
|
|
@@ -6367,21 +6367,21 @@ var em = function e(t) {
|
|
|
6367
6367
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
6368
6368
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
6369
6369
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
6370
|
-
}, _n = Bs, Yn =
|
|
6370
|
+
}, _n = Bs, Yn = Jf, nm = _n.call(Function.call, Array.prototype.concat), rm = _n.call(Function.apply, Array.prototype.splice), ui = _n.call(Function.call, String.prototype.replace), zn = _n.call(Function.call, String.prototype.slice), om = _n.call(Function.call, RegExp.prototype.exec), im = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, sm = /\\(\\)?/g, am = function(t) {
|
|
6371
6371
|
var n = zn(t, 0, 1), r = zn(t, -1);
|
|
6372
6372
|
if (n === "%" && r !== "%")
|
|
6373
6373
|
throw new ln("invalid intrinsic syntax, expected closing `%`");
|
|
6374
6374
|
if (r === "%" && n !== "%")
|
|
6375
6375
|
throw new ln("invalid intrinsic syntax, expected opening `%`");
|
|
6376
6376
|
var o = [];
|
|
6377
|
-
return ui(t,
|
|
6378
|
-
o[o.length] = l ? ui(c,
|
|
6377
|
+
return ui(t, im, function(s, a, l, c) {
|
|
6378
|
+
o[o.length] = l ? ui(c, sm, "$1") : a || s;
|
|
6379
6379
|
}), o;
|
|
6380
|
-
},
|
|
6380
|
+
}, lm = function(t, n) {
|
|
6381
6381
|
var r = t, o;
|
|
6382
6382
|
if (Yn(di, r) && (o = di[r], r = "%" + o[0] + "%"), Yn(Bt, r)) {
|
|
6383
6383
|
var s = Bt[r];
|
|
6384
|
-
if (s === Zt && (s =
|
|
6384
|
+
if (s === Zt && (s = tm(r)), typeof s > "u" && !n)
|
|
6385
6385
|
throw new rn("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
6386
6386
|
return {
|
|
6387
6387
|
alias: o,
|
|
@@ -6395,10 +6395,10 @@ var em = function e(t) {
|
|
|
6395
6395
|
throw new rn("intrinsic name must be a non-empty string");
|
|
6396
6396
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
6397
6397
|
throw new rn('"allowMissing" argument must be a boolean');
|
|
6398
|
-
if (
|
|
6398
|
+
if (om(/^%?[^%]*%?$/, t) === null)
|
|
6399
6399
|
throw new ln("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
6400
|
-
var r =
|
|
6401
|
-
u && (o = u[0],
|
|
6400
|
+
var r = am(t), o = r.length > 0 ? r[0] : "", s = lm("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
|
|
6401
|
+
u && (o = u[0], rm(r, nm([0, 1], u)));
|
|
6402
6402
|
for (var f = 1, d = !0; f < r.length; f += 1) {
|
|
6403
6403
|
var p = r[f], h = zn(p, 0, 1), m = zn(p, -1);
|
|
6404
6404
|
if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
|
|
@@ -6446,18 +6446,18 @@ var em = function e(t) {
|
|
|
6446
6446
|
};
|
|
6447
6447
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
6448
6448
|
})(Us);
|
|
6449
|
-
var So = Us.exports, Ws = Vn, Gs = So,
|
|
6449
|
+
var So = Us.exports, Ws = Vn, Gs = So, cm = Gs(Ws("String.prototype.indexOf")), Ks = function(t, n) {
|
|
6450
6450
|
var r = Ws(t, !!n);
|
|
6451
|
-
return typeof r == "function" &&
|
|
6452
|
-
},
|
|
6453
|
-
return
|
|
6451
|
+
return typeof r == "function" && cm(t, ".prototype.") > -1 ? Gs(r) : r;
|
|
6452
|
+
}, dm = bo(), um = Ks, kr = um("Object.prototype.toString"), dr = function(t) {
|
|
6453
|
+
return dm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : kr(t) === "[object Arguments]";
|
|
6454
6454
|
}, qs = function(t) {
|
|
6455
6455
|
return dr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && kr(t) !== "[object Array]" && kr(t.callee) === "[object Function]";
|
|
6456
|
-
},
|
|
6456
|
+
}, fm = function() {
|
|
6457
6457
|
return dr(arguments);
|
|
6458
6458
|
}();
|
|
6459
6459
|
dr.isLegacyArguments = qs;
|
|
6460
|
-
var
|
|
6460
|
+
var mm = fm ? dr : qs, pm = Vn, $r = pm("%Object.defineProperty%", !0), Nr = function() {
|
|
6461
6461
|
if ($r)
|
|
6462
6462
|
try {
|
|
6463
6463
|
return $r({}, "a", { value: 1 }), !0;
|
|
@@ -6476,7 +6476,7 @@ Nr.hasArrayLengthDefineBug = function() {
|
|
|
6476
6476
|
}
|
|
6477
6477
|
};
|
|
6478
6478
|
var Co = Nr, Tr, fi;
|
|
6479
|
-
function
|
|
6479
|
+
function hm() {
|
|
6480
6480
|
if (fi)
|
|
6481
6481
|
return Tr;
|
|
6482
6482
|
fi = 1;
|
|
@@ -6489,7 +6489,7 @@ function pm() {
|
|
|
6489
6489
|
}
|
|
6490
6490
|
return Tr = t, Tr;
|
|
6491
6491
|
}
|
|
6492
|
-
var
|
|
6492
|
+
var gm = Co(), xo = Vn, mi = gm && xo("%Object.defineProperty%", !0), ym = xo("%SyntaxError%"), zt = xo("%TypeError%"), pi = hm(), Ys = function(t, n, r) {
|
|
6493
6493
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
6494
6494
|
throw new zt("`obj` must be an object or a function`");
|
|
6495
6495
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -6513,45 +6513,45 @@ var hm = Co(), xo = Vn, mi = hm && xo("%Object.defineProperty%", !0), gm = xo("%
|
|
|
6513
6513
|
else if (l || !o && !s && !a)
|
|
6514
6514
|
t[n] = r;
|
|
6515
6515
|
else
|
|
6516
|
-
throw new
|
|
6517
|
-
},
|
|
6518
|
-
return typeof e == "function" &&
|
|
6519
|
-
}, zs = Co(),
|
|
6516
|
+
throw new ym("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
6517
|
+
}, vm = Ls, wm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", bm = Object.prototype.toString, Sm = Array.prototype.concat, hi = Ys, Cm = function(e) {
|
|
6518
|
+
return typeof e == "function" && bm.call(e) === "[object Function]";
|
|
6519
|
+
}, zs = Co(), xm = function(e, t, n, r) {
|
|
6520
6520
|
if (t in e) {
|
|
6521
6521
|
if (r === !0) {
|
|
6522
6522
|
if (e[t] === n)
|
|
6523
6523
|
return;
|
|
6524
|
-
} else if (!
|
|
6524
|
+
} else if (!Cm(r) || !r())
|
|
6525
6525
|
return;
|
|
6526
6526
|
}
|
|
6527
6527
|
zs ? hi(e, t, n, !0) : hi(e, t, n);
|
|
6528
6528
|
}, Js = function(e, t) {
|
|
6529
|
-
var n = arguments.length > 2 ? arguments[2] : {}, r =
|
|
6530
|
-
|
|
6529
|
+
var n = arguments.length > 2 ? arguments[2] : {}, r = vm(t);
|
|
6530
|
+
wm && (r = Sm.call(r, Object.getOwnPropertySymbols(t)));
|
|
6531
6531
|
for (var o = 0; o < r.length; o += 1)
|
|
6532
|
-
|
|
6532
|
+
xm(e, r[o], t[r[o]], n[r[o]]);
|
|
6533
6533
|
};
|
|
6534
6534
|
Js.supportsDescriptors = !!zs;
|
|
6535
6535
|
var En = Js, gi = function(e) {
|
|
6536
6536
|
return e !== e;
|
|
6537
6537
|
}, Qs = function(t, n) {
|
|
6538
6538
|
return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || gi(t) && gi(n));
|
|
6539
|
-
},
|
|
6540
|
-
return typeof Object.is == "function" ? Object.is :
|
|
6541
|
-
},
|
|
6542
|
-
var t =
|
|
6543
|
-
return
|
|
6539
|
+
}, Im = Qs, Xs = function() {
|
|
6540
|
+
return typeof Object.is == "function" ? Object.is : Im;
|
|
6541
|
+
}, Tm = Xs, Om = En, Am = function() {
|
|
6542
|
+
var t = Tm();
|
|
6543
|
+
return Om(Object, { is: t }, {
|
|
6544
6544
|
is: function() {
|
|
6545
6545
|
return Object.is !== t;
|
|
6546
6546
|
}
|
|
6547
6547
|
}), t;
|
|
6548
|
-
},
|
|
6549
|
-
|
|
6548
|
+
}, Fm = En, Rm = So, _m = Qs, Zs = Xs, Vm = Am, ea = Rm(Zs(), Object);
|
|
6549
|
+
Fm(ea, {
|
|
6550
6550
|
getPolyfill: Zs,
|
|
6551
|
-
implementation:
|
|
6552
|
-
shim:
|
|
6551
|
+
implementation: _m,
|
|
6552
|
+
shim: Vm
|
|
6553
6553
|
});
|
|
6554
|
-
var
|
|
6554
|
+
var Em = ea, Mr = Ks, ta = bo(), na, ra, Lr, jr;
|
|
6555
6555
|
if (ta) {
|
|
6556
6556
|
na = Mr("Object.prototype.hasOwnProperty"), ra = Mr("RegExp.prototype.exec"), Lr = {};
|
|
6557
6557
|
var Or = function() {
|
|
@@ -6562,10 +6562,10 @@ if (ta) {
|
|
|
6562
6562
|
valueOf: Or
|
|
6563
6563
|
}, typeof Symbol.toPrimitive == "symbol" && (jr[Symbol.toPrimitive] = Or);
|
|
6564
6564
|
}
|
|
6565
|
-
var
|
|
6565
|
+
var Dm = Mr("Object.prototype.toString"), Pm = Object.getOwnPropertyDescriptor, km = "[object RegExp]", $m = ta ? function(t) {
|
|
6566
6566
|
if (!t || typeof t != "object")
|
|
6567
6567
|
return !1;
|
|
6568
|
-
var n =
|
|
6568
|
+
var n = Pm(t, "lastIndex"), r = n && na(n, "value");
|
|
6569
6569
|
if (!r)
|
|
6570
6570
|
return !1;
|
|
6571
6571
|
try {
|
|
@@ -6574,7 +6574,7 @@ var Em = Mr("Object.prototype.toString"), Dm = Object.getOwnPropertyDescriptor,
|
|
|
6574
6574
|
return o === Lr;
|
|
6575
6575
|
}
|
|
6576
6576
|
} : function(t) {
|
|
6577
|
-
return !t || typeof t != "object" && typeof t != "function" ? !1 :
|
|
6577
|
+
return !t || typeof t != "object" && typeof t != "function" ? !1 : Dm(t) === km;
|
|
6578
6578
|
}, On = function() {
|
|
6579
6579
|
return typeof (function() {
|
|
6580
6580
|
}).name == "string";
|
|
@@ -6592,24 +6592,24 @@ On.functionsHaveConfigurableNames = function() {
|
|
|
6592
6592
|
}, "name");
|
|
6593
6593
|
return !!t && !!t.configurable;
|
|
6594
6594
|
};
|
|
6595
|
-
var
|
|
6595
|
+
var Nm = Function.prototype.bind;
|
|
6596
6596
|
On.boundFunctionsHaveNames = function() {
|
|
6597
|
-
return On() && typeof
|
|
6597
|
+
return On() && typeof Nm == "function" && (function() {
|
|
6598
6598
|
}).bind().name !== "";
|
|
6599
6599
|
};
|
|
6600
|
-
var
|
|
6600
|
+
var Mm = On, yi = Ys, Lm = Co(), jm = Mm.functionsHaveConfigurableNames(), Bm = TypeError, Hm = function(t, n) {
|
|
6601
6601
|
if (typeof t != "function")
|
|
6602
|
-
throw new
|
|
6602
|
+
throw new Bm("`fn` is not a function");
|
|
6603
6603
|
var r = arguments.length > 2 && !!arguments[2];
|
|
6604
|
-
return (!r ||
|
|
6605
|
-
},
|
|
6606
|
-
if (this != null && this !==
|
|
6607
|
-
throw new
|
|
6604
|
+
return (!r || jm) && (Lm ? yi(t, "name", n, !0, !0) : yi(t, "name", n)), t;
|
|
6605
|
+
}, Um = Hm, Wm = Object, Gm = TypeError, oa = Um(function() {
|
|
6606
|
+
if (this != null && this !== Wm(this))
|
|
6607
|
+
throw new Gm("RegExp.prototype.flags getter called on non-object");
|
|
6608
6608
|
var t = "";
|
|
6609
6609
|
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;
|
|
6610
|
-
}, "get flags", !0),
|
|
6611
|
-
if (
|
|
6612
|
-
var t =
|
|
6610
|
+
}, "get flags", !0), Km = oa, qm = En.supportsDescriptors, Ym = Object.getOwnPropertyDescriptor, ia = function() {
|
|
6611
|
+
if (qm && /a/mig.flags === "gim") {
|
|
6612
|
+
var t = Ym(RegExp.prototype, "flags");
|
|
6613
6613
|
if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
|
|
6614
6614
|
var n = "", r = {};
|
|
6615
6615
|
if (Object.defineProperty(r, "hasIndices", {
|
|
@@ -6624,34 +6624,34 @@ var Nm = On, yi = Ys, Mm = Co(), Lm = Nm.functionsHaveConfigurableNames(), jm =
|
|
|
6624
6624
|
return t.get;
|
|
6625
6625
|
}
|
|
6626
6626
|
}
|
|
6627
|
-
return
|
|
6628
|
-
},
|
|
6629
|
-
if (!
|
|
6630
|
-
throw new
|
|
6631
|
-
var t =
|
|
6632
|
-
return (!r || r.get !== t) &&
|
|
6627
|
+
return Km;
|
|
6628
|
+
}, zm = En.supportsDescriptors, Jm = ia, Qm = Object.getOwnPropertyDescriptor, Xm = Object.defineProperty, Zm = TypeError, vi = Object.getPrototypeOf, ep = /a/, tp = function() {
|
|
6629
|
+
if (!zm || !vi)
|
|
6630
|
+
throw new Zm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
6631
|
+
var t = Jm(), n = vi(ep), r = Qm(n, "flags");
|
|
6632
|
+
return (!r || r.get !== t) && Xm(n, "flags", {
|
|
6633
6633
|
configurable: !0,
|
|
6634
6634
|
enumerable: !1,
|
|
6635
6635
|
get: t
|
|
6636
6636
|
}), t;
|
|
6637
|
-
},
|
|
6638
|
-
|
|
6637
|
+
}, np = En, rp = So, op = oa, sa = ia, ip = tp, aa = rp(sa());
|
|
6638
|
+
np(aa, {
|
|
6639
6639
|
getPolyfill: sa,
|
|
6640
|
-
implementation:
|
|
6641
|
-
shim:
|
|
6640
|
+
implementation: op,
|
|
6641
|
+
shim: ip
|
|
6642
6642
|
});
|
|
6643
|
-
var
|
|
6643
|
+
var sp = aa, ap = Date.prototype.getDay, lp = function(t) {
|
|
6644
6644
|
try {
|
|
6645
|
-
return
|
|
6645
|
+
return ap.call(t), !0;
|
|
6646
6646
|
} catch {
|
|
6647
6647
|
return !1;
|
|
6648
6648
|
}
|
|
6649
|
-
},
|
|
6650
|
-
return typeof t != "object" || t === null ? !1 :
|
|
6651
|
-
}, wi = Ls, bi =
|
|
6649
|
+
}, cp = Object.prototype.toString, dp = "[object Date]", up = bo(), fp = function(t) {
|
|
6650
|
+
return typeof t != "object" || t === null ? !1 : up ? lp(t) : cp.call(t) === dp;
|
|
6651
|
+
}, wi = Ls, bi = mm, Si = Em, Ci = $m, xi = sp, Ii = fp, Ti = Date.prototype.getTime;
|
|
6652
6652
|
function la(e, t, n) {
|
|
6653
6653
|
var r = n || {};
|
|
6654
|
-
return (r.strict ? Si(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Si(e, t) : e == t :
|
|
6654
|
+
return (r.strict ? Si(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Si(e, t) : e == t : mp(e, t, r);
|
|
6655
6655
|
}
|
|
6656
6656
|
function Oi(e) {
|
|
6657
6657
|
return e == null;
|
|
@@ -6659,7 +6659,7 @@ function Oi(e) {
|
|
|
6659
6659
|
function Ai(e) {
|
|
6660
6660
|
return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
|
|
6661
6661
|
}
|
|
6662
|
-
function
|
|
6662
|
+
function mp(e, t, n) {
|
|
6663
6663
|
var r, o;
|
|
6664
6664
|
if (typeof e != typeof t || Oi(e) || Oi(t) || e.prototype !== t.prototype || bi(e) !== bi(t))
|
|
6665
6665
|
return !1;
|
|
@@ -6698,8 +6698,8 @@ function fp(e, t, n) {
|
|
|
6698
6698
|
return !1;
|
|
6699
6699
|
return !0;
|
|
6700
6700
|
}
|
|
6701
|
-
var
|
|
6702
|
-
const ca = /* @__PURE__ */ Ns(
|
|
6701
|
+
var pp = la;
|
|
6702
|
+
const ca = /* @__PURE__ */ Ns(pp), hp = yt(
|
|
6703
6703
|
(e, t) => {
|
|
6704
6704
|
const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = pt.useForm();
|
|
6705
6705
|
ae(() => {
|
|
@@ -6733,7 +6733,7 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6733
6733
|
})(), u = N(() => {
|
|
6734
6734
|
const p = a.getFieldsValue();
|
|
6735
6735
|
s == null || s(p);
|
|
6736
|
-
}, [a, s]), f =
|
|
6736
|
+
}, [a, s]), f = $f(u, 100);
|
|
6737
6737
|
return /* @__PURE__ */ D(An, { children: [
|
|
6738
6738
|
/* @__PURE__ */ i(
|
|
6739
6739
|
pt,
|
|
@@ -6751,7 +6751,7 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6751
6751
|
/* @__PURE__ */ i("div", { className: "pb-2" })
|
|
6752
6752
|
] });
|
|
6753
6753
|
}
|
|
6754
|
-
),
|
|
6754
|
+
), gp = (e) => {
|
|
6755
6755
|
var I;
|
|
6756
6756
|
const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: s, searchValues: a } = e, l = Y(), { t: c } = fe(), [u, f] = C(), d = Y(null), [p, h] = C();
|
|
6757
6757
|
ae(() => {
|
|
@@ -6792,13 +6792,13 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6792
6792
|
(x = d.current) == null || x.resetFields(), (S = d == null ? void 0 : d.current) == null || S.setFieldsValue({}), h([]);
|
|
6793
6793
|
}, []), w = n ? p || Ln(a, (I = l.current) == null ? void 0 : I._advancedSearchContainer) : [];
|
|
6794
6794
|
return /* @__PURE__ */ i(
|
|
6795
|
-
|
|
6795
|
+
yf,
|
|
6796
6796
|
{
|
|
6797
6797
|
title: `${c("filter")} (${(w == null ? void 0 : w.length) || 0})`,
|
|
6798
6798
|
isOpen: n,
|
|
6799
6799
|
onClose: r,
|
|
6800
6800
|
footer: /* @__PURE__ */ i(
|
|
6801
|
-
|
|
6801
|
+
yp,
|
|
6802
6802
|
{
|
|
6803
6803
|
onClear: v,
|
|
6804
6804
|
onSubmit: y,
|
|
@@ -6806,7 +6806,7 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6806
6806
|
}
|
|
6807
6807
|
),
|
|
6808
6808
|
children: n && /* @__PURE__ */ i(
|
|
6809
|
-
|
|
6809
|
+
hp,
|
|
6810
6810
|
{
|
|
6811
6811
|
ref: d,
|
|
6812
6812
|
searchFields: u,
|
|
@@ -6817,7 +6817,7 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6817
6817
|
)
|
|
6818
6818
|
}
|
|
6819
6819
|
);
|
|
6820
|
-
},
|
|
6820
|
+
}, yp = ({
|
|
6821
6821
|
onClear: e,
|
|
6822
6822
|
onSubmit: t,
|
|
6823
6823
|
searchParams: n
|
|
@@ -6863,7 +6863,7 @@ const ca = /* @__PURE__ */ Ns(mp), pp = yt(
|
|
|
6863
6863
|
const r = e[n];
|
|
6864
6864
|
return r !== "" && r !== void 0 && (t[n] = r), t;
|
|
6865
6865
|
}, {});
|
|
6866
|
-
function
|
|
6866
|
+
function vp(e) {
|
|
6867
6867
|
const {
|
|
6868
6868
|
onAdvancedFilterToggle: t,
|
|
6869
6869
|
advancedFilter: n,
|
|
@@ -6873,7 +6873,7 @@ function yp(e) {
|
|
|
6873
6873
|
} = e, { t: a } = fe();
|
|
6874
6874
|
return /* @__PURE__ */ D(Me, { children: [
|
|
6875
6875
|
!s && /* @__PURE__ */ i(Ce, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
|
|
6876
|
-
n ? /* @__PURE__ */ i(
|
|
6876
|
+
n ? /* @__PURE__ */ i(al, { className: "pr-1" }) : /* @__PURE__ */ i(Xn, { className: "pr-1" }),
|
|
6877
6877
|
a(n ? "simple_search" : "advanced_search")
|
|
6878
6878
|
] }) }),
|
|
6879
6879
|
/* @__PURE__ */ D(Ce, { span: s ? 24 : 12, className: "text-right pb-2", children: [
|
|
@@ -6892,7 +6892,7 @@ function yp(e) {
|
|
|
6892
6892
|
] })
|
|
6893
6893
|
] });
|
|
6894
6894
|
}
|
|
6895
|
-
function
|
|
6895
|
+
function wp(e) {
|
|
6896
6896
|
const { onLimitChange: t } = e, { t: n } = fe(), r = new _r({ name: "limit" }), o = new _r({ name: "offset" });
|
|
6897
6897
|
return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
|
|
6898
6898
|
/* @__PURE__ */ i(Me, { children: n("parameters") }, "count_params"),
|
|
@@ -6912,7 +6912,7 @@ function vp(e) {
|
|
|
6912
6912
|
] })
|
|
6913
6913
|
] });
|
|
6914
6914
|
}
|
|
6915
|
-
const { useToken:
|
|
6915
|
+
const { useToken: bp } = Ke;
|
|
6916
6916
|
function Io(e) {
|
|
6917
6917
|
const {
|
|
6918
6918
|
fields: t,
|
|
@@ -6928,7 +6928,7 @@ function Io(e) {
|
|
|
6928
6928
|
searchError: d,
|
|
6929
6929
|
searchValues: p,
|
|
6930
6930
|
showLimitOptions: h = !0
|
|
6931
|
-
} = e, [m, y] = C(), [g, v] = C(), [w, I] = C(!1), x = Y(), { token: S } =
|
|
6931
|
+
} = e, [m, y] = C(), [g, v] = C(), [w, I] = C(!1), x = Y(), { token: S } = bp(), [O] = pt.useForm();
|
|
6932
6932
|
ae(() => {
|
|
6933
6933
|
O.setFieldsValue(p);
|
|
6934
6934
|
}, [p]);
|
|
@@ -6981,9 +6981,9 @@ function Io(e) {
|
|
|
6981
6981
|
initialValues: { offset: a, limit: l },
|
|
6982
6982
|
children: [
|
|
6983
6983
|
R,
|
|
6984
|
-
w && h && /* @__PURE__ */ i(
|
|
6984
|
+
w && h && /* @__PURE__ */ i(wp, { onLimitChange: c }),
|
|
6985
6985
|
/* @__PURE__ */ i(
|
|
6986
|
-
|
|
6986
|
+
vp,
|
|
6987
6987
|
{
|
|
6988
6988
|
hideAdvancedFilter: (V() || (g == null ? void 0 : g._rows.length) === 0) && !h,
|
|
6989
6989
|
advancedFilter: w,
|
|
@@ -7013,10 +7013,10 @@ function Io(e) {
|
|
|
7013
7013
|
}
|
|
7014
7014
|
);
|
|
7015
7015
|
}
|
|
7016
|
-
function
|
|
7016
|
+
function Sp({
|
|
7017
7017
|
useLocalState: e = !1
|
|
7018
7018
|
}) {
|
|
7019
|
-
const t =
|
|
7019
|
+
const t = Fd() && !e, n = po(), [r, o] = C(!1), [s, a] = C(!1), [l, c] = C([]), [u, f] = C(0), [d, p] = C([]), [h, m] = C({}), [y, g] = C(), [v, w] = C([]), [I, x] = C(), [S, O] = C(0);
|
|
7020
7020
|
return t ? {
|
|
7021
7021
|
treeIsLoading: n.treeIsLoading ?? !1,
|
|
7022
7022
|
setTreeIsLoading: n.setTreeIsLoading ?? (() => {
|
|
@@ -7073,7 +7073,7 @@ function bp({
|
|
|
7073
7073
|
isActive: void 0
|
|
7074
7074
|
};
|
|
7075
7075
|
}
|
|
7076
|
-
const
|
|
7076
|
+
const Cp = 3 * 1e3, xp = (e) => {
|
|
7077
7077
|
const {
|
|
7078
7078
|
tableRef: t,
|
|
7079
7079
|
model: n,
|
|
@@ -7114,7 +7114,7 @@ const Sp = 3 * 1e3, Cp = (e) => {
|
|
|
7114
7114
|
s,
|
|
7115
7115
|
r
|
|
7116
7116
|
]);
|
|
7117
|
-
or(() => ((o == null ? void 0 : o.length) && c && (h(), l.current = setInterval(h,
|
|
7117
|
+
or(() => ((o == null ? void 0 : o.length) && c && (h(), l.current = setInterval(h, Cp)), () => {
|
|
7118
7118
|
d(), l.current && (clearInterval(l.current), l.current = null);
|
|
7119
7119
|
}), [
|
|
7120
7120
|
o,
|
|
@@ -7130,8 +7130,8 @@ const Sp = 3 * 1e3, Cp = (e) => {
|
|
|
7130
7130
|
u(!0);
|
|
7131
7131
|
}, []);
|
|
7132
7132
|
return { pause: m, resume: y };
|
|
7133
|
-
},
|
|
7134
|
-
function
|
|
7133
|
+
}, Ip = 10, Tp = 200;
|
|
7134
|
+
function Op(e, t) {
|
|
7135
7135
|
const {
|
|
7136
7136
|
model: n,
|
|
7137
7137
|
formView: r,
|
|
@@ -7144,9 +7144,9 @@ function Tp(e, t) {
|
|
|
7144
7144
|
onChangeSelectedRowKeys: f,
|
|
7145
7145
|
nameSearch: d,
|
|
7146
7146
|
filterType: p = "side"
|
|
7147
|
-
} = e, h = Y({}), m = Y(), y = Y(null), g = Y([]), v = Os(), [w, I] = C(!0), [x, S] = C(), { t: O } = fe(), T = Y(null), R =
|
|
7147
|
+
} = e, h = Y({}), m = Y(), y = Y(null), g = Y([]), v = Os(), [w, I] = C(!0), [x, S] = C(), { t: O } = fe(), T = Y(null), R = Mu({
|
|
7148
7148
|
elementRef: T,
|
|
7149
|
-
offset:
|
|
7149
|
+
offset: Ip
|
|
7150
7150
|
}), { treeView: b, formView: V, loading: F } = As({
|
|
7151
7151
|
model: n,
|
|
7152
7152
|
formViewProps: r,
|
|
@@ -7171,7 +7171,7 @@ function Tp(e, t) {
|
|
|
7171
7171
|
setSearchQuery: G,
|
|
7172
7172
|
setTotalItems: L,
|
|
7173
7173
|
isActive: me
|
|
7174
|
-
} =
|
|
7174
|
+
} = Sp({ useLocalState: !c }), J = d || U, Q = Y(J);
|
|
7175
7175
|
ae(() => {
|
|
7176
7176
|
ce();
|
|
7177
7177
|
}, []), ae(() => {
|
|
@@ -7182,7 +7182,7 @@ function Tp(e, t) {
|
|
|
7182
7182
|
if (b)
|
|
7183
7183
|
return _t(b);
|
|
7184
7184
|
}, [b]);
|
|
7185
|
-
|
|
7185
|
+
xp({
|
|
7186
7186
|
model: n,
|
|
7187
7187
|
tableRef: y,
|
|
7188
7188
|
autorefreshableFields: te == null ? void 0 : te.autorefreshableFields,
|
|
@@ -7199,7 +7199,7 @@ function Tp(e, t) {
|
|
|
7199
7199
|
},
|
|
7200
7200
|
u
|
|
7201
7201
|
);
|
|
7202
|
-
}, [te, u]), Le = de(() =>
|
|
7202
|
+
}, [te, u]), Le = de(() => Hu({
|
|
7203
7203
|
treeViewId: b == null ? void 0 : b.view_id,
|
|
7204
7204
|
model: n
|
|
7205
7205
|
}), [n, b == null ? void 0 : b.view_id]), {
|
|
@@ -7353,7 +7353,7 @@ function Tp(e, t) {
|
|
|
7353
7353
|
);
|
|
7354
7354
|
k == null || k(tt.map((ze) => ({ id: ze })));
|
|
7355
7355
|
};
|
|
7356
|
-
he ? x && x >
|
|
7356
|
+
he ? x && x > Tp ? Et({
|
|
7357
7357
|
confirmMessage: O("confirmSelectAllRegisters").replace(
|
|
7358
7358
|
"{totalRecords}",
|
|
7359
7359
|
x.toString()
|
|
@@ -7533,7 +7533,7 @@ function Tp(e, t) {
|
|
|
7533
7533
|
}
|
|
7534
7534
|
),
|
|
7535
7535
|
p === "side" && /* @__PURE__ */ i(
|
|
7536
|
-
|
|
7536
|
+
gp,
|
|
7537
7537
|
{
|
|
7538
7538
|
...Ct,
|
|
7539
7539
|
onClose: Re,
|
|
@@ -7541,7 +7541,7 @@ function Tp(e, t) {
|
|
|
7541
7541
|
}
|
|
7542
7542
|
),
|
|
7543
7543
|
/* @__PURE__ */ i(
|
|
7544
|
-
|
|
7544
|
+
Uu,
|
|
7545
7545
|
{
|
|
7546
7546
|
selectedRowKeys: ye,
|
|
7547
7547
|
allRowSelectedMode: !1,
|
|
@@ -7551,12 +7551,12 @@ function Tp(e, t) {
|
|
|
7551
7551
|
/* @__PURE__ */ i("div", { ref: T, style: St, children: F || je || w ? /* @__PURE__ */ i(Ge, {}) : we })
|
|
7552
7552
|
] });
|
|
7553
7553
|
}
|
|
7554
|
-
const da = yt(
|
|
7554
|
+
const da = yt(Op), Fi = (e, t = "14px -apple-system") => {
|
|
7555
7555
|
const r = document.createElement("canvas").getContext("2d");
|
|
7556
7556
|
r.font = t;
|
|
7557
7557
|
const o = r.measureText(e);
|
|
7558
7558
|
return Math.round((o.width + 80) * 1.5);
|
|
7559
|
-
},
|
|
7559
|
+
}, Ap = (e, t, n = 500) => {
|
|
7560
7560
|
if (e.length === 0)
|
|
7561
7561
|
return { columns: e };
|
|
7562
7562
|
const r = e.map(
|
|
@@ -7577,11 +7577,11 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7577
7577
|
source: t,
|
|
7578
7578
|
tableWidth: o
|
|
7579
7579
|
};
|
|
7580
|
-
},
|
|
7580
|
+
}, Fp = fn.div`
|
|
7581
7581
|
display: flex;
|
|
7582
7582
|
align-items: center;
|
|
7583
7583
|
justify-content: center;
|
|
7584
|
-
`,
|
|
7584
|
+
`, Rp = ({
|
|
7585
7585
|
numberOfVisibleSelectedRows: e,
|
|
7586
7586
|
totalRecords: t,
|
|
7587
7587
|
numberOfTotalRows: n,
|
|
@@ -7602,7 +7602,7 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7602
7602
|
"{numberOfSelectedRows}",
|
|
7603
7603
|
e.toString()
|
|
7604
7604
|
) + " ",
|
|
7605
|
-
s ? /* @__PURE__ */ i(Ge, {}) : /* @__PURE__ */ i(
|
|
7605
|
+
s ? /* @__PURE__ */ i(Ge, {}) : /* @__PURE__ */ i(Kl, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
|
|
7606
7606
|
"{totalRecords}",
|
|
7607
7607
|
t.toString()
|
|
7608
7608
|
) })
|
|
@@ -7610,7 +7610,7 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7610
7610
|
"{totalRecords}",
|
|
7611
7611
|
o.toString()
|
|
7612
7612
|
) + " " });
|
|
7613
|
-
return /* @__PURE__ */ i(
|
|
7613
|
+
return /* @__PURE__ */ i(Fp, { children: o > n ? d : f });
|
|
7614
7614
|
}, ua = yt(
|
|
7615
7615
|
(e, t) => {
|
|
7616
7616
|
var G;
|
|
@@ -7684,7 +7684,7 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7684
7684
|
}
|
|
7685
7685
|
) }),
|
|
7686
7686
|
T && /* @__PURE__ */ i(Ce, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
|
|
7687
|
-
|
|
7687
|
+
Rp,
|
|
7688
7688
|
{
|
|
7689
7689
|
numberOfVisibleSelectedRows: L,
|
|
7690
7690
|
numberOfRealSelectedRows: (d == null ? void 0 : d.length) || 0,
|
|
@@ -7719,12 +7719,12 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7719
7719
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: me.join(", ") });
|
|
7720
7720
|
}, [b, d, A]), ee = de(() => {
|
|
7721
7721
|
if (A !== null && E && E.length > 0)
|
|
7722
|
-
return
|
|
7722
|
+
return Ap(E, b, 600);
|
|
7723
7723
|
}, [E, b, A]), j = de(() => h && (A != null && A.columns.some((L) => L.sum !== void 0)) ? h - 30 : h, [h, A == null ? void 0 : A.columns]);
|
|
7724
7724
|
return A === null || !ee || ((G = ee == null ? void 0 : ee.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(Ge, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Bn, { children: [
|
|
7725
7725
|
U,
|
|
7726
7726
|
/* @__PURE__ */ i(
|
|
7727
|
-
|
|
7727
|
+
jl,
|
|
7728
7728
|
{
|
|
7729
7729
|
ref: R,
|
|
7730
7730
|
height: j,
|
|
@@ -7736,7 +7736,7 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7736
7736
|
if (m[L.id])
|
|
7737
7737
|
return { color: m[L.id] };
|
|
7738
7738
|
},
|
|
7739
|
-
onRowStatus:
|
|
7739
|
+
onRowStatus: $c(y) ? (L) => {
|
|
7740
7740
|
if (y[L.id])
|
|
7741
7741
|
return /* @__PURE__ */ i(Qn, { color: y[L.id] });
|
|
7742
7742
|
} : void 0,
|
|
@@ -7746,8 +7746,8 @@ const da = yt(Tp), Fi = (e, t = "14px -apple-system") => {
|
|
|
7746
7746
|
sorter: v,
|
|
7747
7747
|
readonly: O,
|
|
7748
7748
|
expandableOpts: w ? {
|
|
7749
|
-
expandIcon:
|
|
7750
|
-
collapseIcon:
|
|
7749
|
+
expandIcon: ll,
|
|
7750
|
+
collapseIcon: cl,
|
|
7751
7751
|
loadingIcon: wt,
|
|
7752
7752
|
onFetchChildrenForRecord: w,
|
|
7753
7753
|
childField: I
|
|
@@ -7985,7 +7985,7 @@ const fa = (e) => {
|
|
|
7985
7985
|
getAllIds: Ae
|
|
7986
7986
|
};
|
|
7987
7987
|
};
|
|
7988
|
-
function
|
|
7988
|
+
function _p(e, t) {
|
|
7989
7989
|
var Ct;
|
|
7990
7990
|
const {
|
|
7991
7991
|
model: n,
|
|
@@ -8239,7 +8239,7 @@ function Rp(e, t) {
|
|
|
8239
8239
|
]), Gt = b || Fe;
|
|
8240
8240
|
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(Ge, {}) : ft() });
|
|
8241
8241
|
}
|
|
8242
|
-
const ma = yt(
|
|
8242
|
+
const ma = yt(_p), To = ({
|
|
8243
8243
|
visible: e,
|
|
8244
8244
|
onCloseModal: t,
|
|
8245
8245
|
onSelectValues: n,
|
|
@@ -8362,7 +8362,7 @@ const ma = yt(Rp), To = ({
|
|
|
8362
8362
|
}
|
|
8363
8363
|
)
|
|
8364
8364
|
] });
|
|
8365
|
-
}, { defaultAlgorithm:
|
|
8365
|
+
}, { defaultAlgorithm: Vp, defaultSeed: Ep } = Ke, pa = Vp(Ep), Dp = (e) => {
|
|
8366
8366
|
const { ooui: t } = e, { required: n } = t;
|
|
8367
8367
|
return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
|
|
8368
8368
|
if (!s)
|
|
@@ -8463,7 +8463,7 @@ const ma = yt(Rp), To = ({
|
|
|
8463
8463
|
}
|
|
8464
8464
|
return /* @__PURE__ */ D(Me, { gutter: 8, wrap: !1, children: [
|
|
8465
8465
|
/* @__PURE__ */ i(Ce, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
|
|
8466
|
-
o && !a ?
|
|
8466
|
+
o && !a ? Pp : ct,
|
|
8467
8467
|
{
|
|
8468
8468
|
type: "text",
|
|
8469
8469
|
value: x,
|
|
@@ -8544,13 +8544,13 @@ const ma = yt(Rp), To = ({
|
|
|
8544
8544
|
}
|
|
8545
8545
|
)
|
|
8546
8546
|
] });
|
|
8547
|
-
},
|
|
8547
|
+
}, Pp = fn(ct)`
|
|
8548
8548
|
.ant-input {
|
|
8549
8549
|
background-color: ${pa.colorPrimaryBg};
|
|
8550
8550
|
}
|
|
8551
8551
|
`, wn = mt.createContext(
|
|
8552
8552
|
null
|
|
8553
|
-
),
|
|
8553
|
+
), kp = ({
|
|
8554
8554
|
children: e,
|
|
8555
8555
|
initialView: t
|
|
8556
8556
|
}) => {
|
|
@@ -8569,7 +8569,7 @@ const ma = yt(Rp), To = ({
|
|
|
8569
8569
|
children: e
|
|
8570
8570
|
}
|
|
8571
8571
|
);
|
|
8572
|
-
},
|
|
8572
|
+
}, $p = ({
|
|
8573
8573
|
title: e,
|
|
8574
8574
|
content: t,
|
|
8575
8575
|
onOk: n,
|
|
@@ -8616,7 +8616,7 @@ const ma = yt(Rp), To = ({
|
|
|
8616
8616
|
const n = Zi(t);
|
|
8617
8617
|
return n.render(
|
|
8618
8618
|
/* @__PURE__ */ i(
|
|
8619
|
-
|
|
8619
|
+
$p,
|
|
8620
8620
|
{
|
|
8621
8621
|
...e,
|
|
8622
8622
|
onOk: async () => {
|
|
@@ -8659,7 +8659,7 @@ const ma = yt(Rp), To = ({
|
|
|
8659
8659
|
onOk: t,
|
|
8660
8660
|
cancelText: e("cancel")
|
|
8661
8661
|
});
|
|
8662
|
-
}, { useToken:
|
|
8662
|
+
}, { useToken: Np } = Ke, wa = (e) => {
|
|
8663
8663
|
const {
|
|
8664
8664
|
title: t,
|
|
8665
8665
|
readOnly: n,
|
|
@@ -8676,7 +8676,7 @@ const ma = yt(Rp), To = ({
|
|
|
8676
8676
|
selectedRowKeys: h,
|
|
8677
8677
|
showCreateButton: m,
|
|
8678
8678
|
showToggleButton: y
|
|
8679
|
-
} = e, { token: g } =
|
|
8679
|
+
} = e, { token: g } = Np();
|
|
8680
8680
|
function v() {
|
|
8681
8681
|
return /* @__PURE__ */ i("div", { className: "inline-block w-3" });
|
|
8682
8682
|
}
|
|
@@ -8698,7 +8698,7 @@ const ma = yt(Rp), To = ({
|
|
|
8698
8698
|
nt,
|
|
8699
8699
|
{
|
|
8700
8700
|
tooltip: d ? "Unlink" : "Delete",
|
|
8701
|
-
icon: d ? /* @__PURE__ */ i(
|
|
8701
|
+
icon: d ? /* @__PURE__ */ i(ul, {}) : /* @__PURE__ */ i(ro, {}),
|
|
8702
8702
|
onClick: a,
|
|
8703
8703
|
danger: !d,
|
|
8704
8704
|
type: d ? "default" : "primary",
|
|
@@ -8770,25 +8770,25 @@ const ma = yt(Rp), To = ({
|
|
|
8770
8770
|
nt,
|
|
8771
8771
|
{
|
|
8772
8772
|
tooltip: "Toggle view mode",
|
|
8773
|
-
icon: /* @__PURE__ */ i(
|
|
8773
|
+
icon: /* @__PURE__ */ i(dl, {}),
|
|
8774
8774
|
onClick: o
|
|
8775
8775
|
}
|
|
8776
8776
|
)
|
|
8777
8777
|
] })
|
|
8778
8778
|
] });
|
|
8779
|
-
},
|
|
8779
|
+
}, Mp = {
|
|
8780
8780
|
form: Bi,
|
|
8781
8781
|
tree: Ni,
|
|
8782
8782
|
graph: mn
|
|
8783
8783
|
};
|
|
8784
|
-
function
|
|
8784
|
+
function Lp(e) {
|
|
8785
8785
|
const t = e.map((r) => r.id);
|
|
8786
8786
|
return e.filter((r, o) => {
|
|
8787
8787
|
const { id: s } = r;
|
|
8788
8788
|
return !t.includes(s, o + 1);
|
|
8789
8789
|
});
|
|
8790
8790
|
}
|
|
8791
|
-
const
|
|
8791
|
+
const jp = (e) => {
|
|
8792
8792
|
var ve;
|
|
8793
8793
|
const { value: t, onChange: n, ooui: r, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: u } = ne(
|
|
8794
8794
|
wn
|
|
@@ -8824,7 +8824,7 @@ const Lp = (e) => {
|
|
|
8824
8824
|
var we, Ne;
|
|
8825
8825
|
n == null || n({
|
|
8826
8826
|
fields: ((we = o.get("form")) == null ? void 0 : we.fields) || ((Ne = o.get("tree")) == null ? void 0 : Ne.fields),
|
|
8827
|
-
items:
|
|
8827
|
+
items: Lp(X)
|
|
8828
8828
|
});
|
|
8829
8829
|
}, Le = async () => {
|
|
8830
8830
|
await je(), c > J.length - 1 && c !== 0 && u(0);
|
|
@@ -9025,7 +9025,7 @@ const Lp = (e) => {
|
|
|
9025
9025
|
}
|
|
9026
9026
|
};
|
|
9027
9027
|
function pe() {
|
|
9028
|
-
const X =
|
|
9028
|
+
const X = Mp[a];
|
|
9029
9029
|
if (a === "graph")
|
|
9030
9030
|
return ji(o.get("graph").arch).string;
|
|
9031
9031
|
{
|
|
@@ -9165,7 +9165,7 @@ const Lp = (e) => {
|
|
|
9165
9165
|
}
|
|
9166
9166
|
)
|
|
9167
9167
|
] });
|
|
9168
|
-
},
|
|
9168
|
+
}, Bp = ({
|
|
9169
9169
|
fieldName: e,
|
|
9170
9170
|
widgetDomain: t
|
|
9171
9171
|
}) => {
|
|
@@ -9195,7 +9195,7 @@ const Lp = (e) => {
|
|
|
9195
9195
|
));
|
|
9196
9196
|
}
|
|
9197
9197
|
return n.current;
|
|
9198
|
-
},
|
|
9198
|
+
}, Hp = ({
|
|
9199
9199
|
treeView: e,
|
|
9200
9200
|
relation: t,
|
|
9201
9201
|
context: n,
|
|
@@ -9217,20 +9217,20 @@ const Lp = (e) => {
|
|
|
9217
9217
|
endRow: y,
|
|
9218
9218
|
sortFields: g
|
|
9219
9219
|
}) => {
|
|
9220
|
-
const v = ds(g), { realItemsIds: w, otherItems: I } =
|
|
9220
|
+
const v = ds(g), { realItemsIds: w, otherItems: I } = jc({
|
|
9221
9221
|
allItems: h,
|
|
9222
9222
|
...v ? {} : { range: { startRow: m, endRow: y } }
|
|
9223
9223
|
});
|
|
9224
9224
|
if (w.length === 0 && I.length === 0)
|
|
9225
9225
|
return { results: [], colors: {}, status: {} };
|
|
9226
|
-
const x = v ? (await
|
|
9226
|
+
const x = v ? (await Hc(w, t, n, v)).slice(
|
|
9227
9227
|
m,
|
|
9228
9228
|
y
|
|
9229
|
-
) : w, S =
|
|
9229
|
+
) : w, S = Uc(d), {
|
|
9230
9230
|
items: O,
|
|
9231
9231
|
colors: T,
|
|
9232
9232
|
status: R
|
|
9233
|
-
} = await
|
|
9233
|
+
} = await Wc({
|
|
9234
9234
|
relation: t,
|
|
9235
9235
|
ids: x,
|
|
9236
9236
|
treeView: e,
|
|
@@ -9238,7 +9238,7 @@ const Lp = (e) => {
|
|
|
9238
9238
|
attrs: S,
|
|
9239
9239
|
treeOoui: d
|
|
9240
9240
|
}), V = x.length < y - m && I.length > 0 ? [...x, ...I.map((A) => A.id)] : x;
|
|
9241
|
-
return { results:
|
|
9241
|
+
return { results: Bc({
|
|
9242
9242
|
finalResultIds: V,
|
|
9243
9243
|
fetchedItems: O,
|
|
9244
9244
|
otherItems: I
|
|
@@ -9253,7 +9253,7 @@ const Lp = (e) => {
|
|
|
9253
9253
|
onGetFirstVisibileRowIndex: f,
|
|
9254
9254
|
onSelectionCheckboxClicked: c
|
|
9255
9255
|
};
|
|
9256
|
-
},
|
|
9256
|
+
}, Up = ({
|
|
9257
9257
|
items: e,
|
|
9258
9258
|
relation: t,
|
|
9259
9259
|
context: n,
|
|
@@ -9326,9 +9326,9 @@ const Lp = (e) => {
|
|
|
9326
9326
|
getOriginalItemsWithRestoredItemId: f,
|
|
9327
9327
|
onFormChanges: d
|
|
9328
9328
|
};
|
|
9329
|
-
},
|
|
9329
|
+
}, Wp = ({
|
|
9330
9330
|
one2manyItems: e
|
|
9331
|
-
}) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]),
|
|
9331
|
+
}) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Gp = ({
|
|
9332
9332
|
formView: e,
|
|
9333
9333
|
items: t,
|
|
9334
9334
|
context: n,
|
|
@@ -9355,12 +9355,12 @@ const Lp = (e) => {
|
|
|
9355
9355
|
values: { ...f, id: d },
|
|
9356
9356
|
treeValues: { ...f, id: d }
|
|
9357
9357
|
} : m);
|
|
9358
|
-
s(
|
|
9358
|
+
s(Lc(p));
|
|
9359
9359
|
},
|
|
9360
9360
|
readOnly: o
|
|
9361
9361
|
}
|
|
9362
9362
|
);
|
|
9363
|
-
},
|
|
9363
|
+
}, Kp = ({
|
|
9364
9364
|
isMany2many: e,
|
|
9365
9365
|
triggerChange: t,
|
|
9366
9366
|
items: n,
|
|
@@ -9371,7 +9371,7 @@ const Lp = (e) => {
|
|
|
9371
9371
|
const { t: a } = fe(), { currentView: l, itemIndex: c, setItemIndex: u } = ne(
|
|
9372
9372
|
wn
|
|
9373
9373
|
), f = N(async () => {
|
|
9374
|
-
const m =
|
|
9374
|
+
const m = qp({
|
|
9375
9375
|
selectedRowKeys: o,
|
|
9376
9376
|
items: n
|
|
9377
9377
|
});
|
|
@@ -9423,7 +9423,7 @@ const Lp = (e) => {
|
|
|
9423
9423
|
});
|
|
9424
9424
|
}, [e, p, a]) };
|
|
9425
9425
|
};
|
|
9426
|
-
function
|
|
9426
|
+
function qp({
|
|
9427
9427
|
selectedRowKeys: e,
|
|
9428
9428
|
items: t
|
|
9429
9429
|
}) {
|
|
@@ -9432,7 +9432,7 @@ function Kp({
|
|
|
9432
9432
|
o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
|
|
9433
9433
|
}), n;
|
|
9434
9434
|
}
|
|
9435
|
-
const
|
|
9435
|
+
const Yp = ({
|
|
9436
9436
|
currentView: e,
|
|
9437
9437
|
inv_field: t,
|
|
9438
9438
|
activeId: n,
|
|
@@ -9506,7 +9506,7 @@ const qp = ({
|
|
|
9506
9506
|
onFormModalSubmitSucceed: I,
|
|
9507
9507
|
openItemInFormModal: x
|
|
9508
9508
|
};
|
|
9509
|
-
},
|
|
9509
|
+
}, zp = ({
|
|
9510
9510
|
currentView: e,
|
|
9511
9511
|
showFormChangesDialogIfNeeded: t,
|
|
9512
9512
|
items: n,
|
|
@@ -9564,7 +9564,7 @@ const qp = ({
|
|
|
9564
9564
|
onCloseSearchModal: f,
|
|
9565
9565
|
onSelectSearchValues: p
|
|
9566
9566
|
};
|
|
9567
|
-
},
|
|
9567
|
+
}, Jp = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, Qp = 400, Xp = ({
|
|
9568
9568
|
items: e,
|
|
9569
9569
|
height: t,
|
|
9570
9570
|
onRowDoubleClick: n,
|
|
@@ -9618,7 +9618,7 @@ const qp = ({
|
|
|
9618
9618
|
if (I.current[(W = (M = k.node) == null ? void 0 : M.data) == null ? void 0 : W.id])
|
|
9619
9619
|
return { color: I.current[(E = (B = k.node) == null ? void 0 : B.data) == null ? void 0 : E.id] };
|
|
9620
9620
|
}, []), { loading: A, getColumnState: P, updateColumnState: _ } = Es(
|
|
9621
|
-
|
|
9621
|
+
Jp({
|
|
9622
9622
|
...h,
|
|
9623
9623
|
model: u
|
|
9624
9624
|
})
|
|
@@ -9627,7 +9627,7 @@ const qp = ({
|
|
|
9627
9627
|
es,
|
|
9628
9628
|
{
|
|
9629
9629
|
ref: w,
|
|
9630
|
-
height: t ||
|
|
9630
|
+
height: t || Qp,
|
|
9631
9631
|
columns: b,
|
|
9632
9632
|
onRequestData: V,
|
|
9633
9633
|
onRowDoubleClick: n,
|
|
@@ -9654,7 +9654,7 @@ const qp = ({
|
|
|
9654
9654
|
}
|
|
9655
9655
|
}
|
|
9656
9656
|
);
|
|
9657
|
-
},
|
|
9657
|
+
}, Zp = ({
|
|
9658
9658
|
ooui: e,
|
|
9659
9659
|
items: t,
|
|
9660
9660
|
selectedRowKeys: n,
|
|
@@ -9667,9 +9667,9 @@ const qp = ({
|
|
|
9667
9667
|
model: r,
|
|
9668
9668
|
domain: s
|
|
9669
9669
|
});
|
|
9670
|
-
},
|
|
9670
|
+
}, eh = ["form", "tree", "graph"], th = (e) => {
|
|
9671
9671
|
var Oe;
|
|
9672
|
-
const t = Y(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l =
|
|
9672
|
+
const t = Y(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l = Wp({ one2manyItems: a }), { currentView: c, setCurrentView: u, itemIndex: f, setItemIndex: d } = ne(
|
|
9673
9673
|
wn
|
|
9674
9674
|
), {
|
|
9675
9675
|
readOnly: p,
|
|
@@ -9681,7 +9681,7 @@ const qp = ({
|
|
|
9681
9681
|
activeId: w,
|
|
9682
9682
|
getContext: I,
|
|
9683
9683
|
fetchValues: x
|
|
9684
|
-
} = v || {}, S = s.size > 1, O = ((Oe = s.get("form")) == null ? void 0 : Oe.fields) !== void 0, T = de(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R =
|
|
9684
|
+
} = v || {}, S = s.size > 1, O = ((Oe = s.get("form")) == null ? void 0 : Oe.fields) !== void 0, T = de(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R = Bp({
|
|
9685
9685
|
widgetDomain: y,
|
|
9686
9686
|
fieldName: g
|
|
9687
9687
|
}), {
|
|
@@ -9692,13 +9692,13 @@ const qp = ({
|
|
|
9692
9692
|
onChangeFirstVisibleRowIndex: P,
|
|
9693
9693
|
onGetFirstVisibileRowIndex: _,
|
|
9694
9694
|
onSelectionCheckboxClicked: k
|
|
9695
|
-
} =
|
|
9695
|
+
} = Hp({
|
|
9696
9696
|
treeView: s.get("tree"),
|
|
9697
9697
|
relation: h,
|
|
9698
9698
|
context: T,
|
|
9699
9699
|
allRowsIds: l.filter((ue) => ue.id !== void 0).map((ue) => ue.id),
|
|
9700
9700
|
gridRef: t
|
|
9701
|
-
}), [, M] =
|
|
9701
|
+
}), [, M] = Zp({
|
|
9702
9702
|
ooui: b,
|
|
9703
9703
|
model: h,
|
|
9704
9704
|
items: l,
|
|
@@ -9720,7 +9720,7 @@ const qp = ({
|
|
|
9720
9720
|
onFormChanges: re,
|
|
9721
9721
|
showFormChangesDialogIfNeeded: z,
|
|
9722
9722
|
setFormHasChanges: U
|
|
9723
|
-
} =
|
|
9723
|
+
} = Up({
|
|
9724
9724
|
items: l,
|
|
9725
9725
|
formView: s.get("form"),
|
|
9726
9726
|
treeView: s.get("tree"),
|
|
@@ -9735,7 +9735,7 @@ const qp = ({
|
|
|
9735
9735
|
onFormModalSubmitSucceed: L,
|
|
9736
9736
|
createItem: me,
|
|
9737
9737
|
openItemInFormModal: J
|
|
9738
|
-
} =
|
|
9738
|
+
} = Yp({
|
|
9739
9739
|
activeId: w,
|
|
9740
9740
|
inv_field: o.inv_field,
|
|
9741
9741
|
showFormChangesDialogIfNeeded: z,
|
|
@@ -9752,7 +9752,7 @@ const qp = ({
|
|
|
9752
9752
|
onSelectSearchValues: te,
|
|
9753
9753
|
onCloseSearchModal: ge,
|
|
9754
9754
|
searchItem: Le
|
|
9755
|
-
} =
|
|
9755
|
+
} = zp({
|
|
9756
9756
|
showFormChangesDialogIfNeeded: z,
|
|
9757
9757
|
currentView: c,
|
|
9758
9758
|
triggerChange: E,
|
|
@@ -9760,7 +9760,7 @@ const qp = ({
|
|
|
9760
9760
|
views: s,
|
|
9761
9761
|
context: T,
|
|
9762
9762
|
relation: h
|
|
9763
|
-
}), { showRemoveConfirm: je } =
|
|
9763
|
+
}), { showRemoveConfirm: je } = Kp({
|
|
9764
9764
|
isMany2many: B,
|
|
9765
9765
|
items: l,
|
|
9766
9766
|
triggerChange: E,
|
|
@@ -9821,7 +9821,7 @@ const qp = ({
|
|
|
9821
9821
|
}
|
|
9822
9822
|
),
|
|
9823
9823
|
c === "tree" && /* @__PURE__ */ i(
|
|
9824
|
-
|
|
9824
|
+
Xp,
|
|
9825
9825
|
{
|
|
9826
9826
|
gridRef: t,
|
|
9827
9827
|
height: o.height,
|
|
@@ -9847,7 +9847,7 @@ const qp = ({
|
|
|
9847
9847
|
}
|
|
9848
9848
|
),
|
|
9849
9849
|
c === "form" && /* @__PURE__ */ i(
|
|
9850
|
-
|
|
9850
|
+
Gp,
|
|
9851
9851
|
{
|
|
9852
9852
|
items: l,
|
|
9853
9853
|
formView: s.get("form"),
|
|
@@ -9898,12 +9898,12 @@ const qp = ({
|
|
|
9898
9898
|
limit: 0
|
|
9899
9899
|
}
|
|
9900
9900
|
),
|
|
9901
|
-
!
|
|
9901
|
+
!eh.includes(c) && /* @__PURE__ */ D("span", { children: [
|
|
9902
9902
|
"Unsupported view ",
|
|
9903
9903
|
c
|
|
9904
9904
|
] })
|
|
9905
9905
|
] });
|
|
9906
|
-
},
|
|
9906
|
+
}, nh = 30, rh = (e) => {
|
|
9907
9907
|
var S;
|
|
9908
9908
|
const { ooui: t } = e, { mode: n, relation: r, views: o, required: s, context: a } = t;
|
|
9909
9909
|
let l;
|
|
@@ -9934,7 +9934,7 @@ const qp = ({
|
|
|
9934
9934
|
u(!1);
|
|
9935
9935
|
}
|
|
9936
9936
|
};
|
|
9937
|
-
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(Ge, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
9937
|
+
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(Ge, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(kp, { initialView: l, children: /* @__PURE__ */ i(
|
|
9938
9938
|
_e,
|
|
9939
9939
|
{
|
|
9940
9940
|
required: s,
|
|
@@ -9951,7 +9951,7 @@ const qp = ({
|
|
|
9951
9951
|
},
|
|
9952
9952
|
...e,
|
|
9953
9953
|
children: /* @__PURE__ */ i(
|
|
9954
|
-
|
|
9954
|
+
oh,
|
|
9955
9955
|
{
|
|
9956
9956
|
ooui: t,
|
|
9957
9957
|
views: p,
|
|
@@ -9961,14 +9961,14 @@ const qp = ({
|
|
|
9961
9961
|
)
|
|
9962
9962
|
}
|
|
9963
9963
|
) });
|
|
9964
|
-
},
|
|
9964
|
+
}, oh = (e) => {
|
|
9965
9965
|
const { ooui: t, value: n } = e;
|
|
9966
|
-
return t.infinite || n && Array.isArray(n.items) && n.items.length >=
|
|
9967
|
-
}, { useToken:
|
|
9966
|
+
return t.infinite || n && Array.isArray(n.items) && n.items.length >= nh ? /* @__PURE__ */ i(th, { ...e }) : /* @__PURE__ */ i(jp, { ...e });
|
|
9967
|
+
}, { useToken: ih } = Ke, sh = (e) => {
|
|
9968
9968
|
const { ooui: t } = e, { required: n } = t;
|
|
9969
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
9970
|
-
},
|
|
9971
|
-
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } =
|
|
9969
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(ah, { ooui: t }) });
|
|
9970
|
+
}, ah = (e) => {
|
|
9971
|
+
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = ih(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(), [f, d] = C(), p = ne(He), { elementHasLostFocus: h } = p || {};
|
|
9972
9972
|
ae(() => {
|
|
9973
9973
|
d(Fs(n));
|
|
9974
9974
|
}, [n]);
|
|
@@ -9979,7 +9979,7 @@ const qp = ({
|
|
|
9979
9979
|
u.current = v.target.value, d(v.target.value);
|
|
9980
9980
|
}
|
|
9981
9981
|
async function g() {
|
|
9982
|
-
m(
|
|
9982
|
+
m(fu(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
|
|
9983
9983
|
}
|
|
9984
9984
|
return /* @__PURE__ */ i(
|
|
9985
9985
|
ct,
|
|
@@ -10006,7 +10006,7 @@ const qp = ({
|
|
|
10006
10006
|
};
|
|
10007
10007
|
function ba(e) {
|
|
10008
10008
|
const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = ut(t.icon || ""), { t: s } = fe();
|
|
10009
|
-
return /* @__PURE__ */ i(se, { children: (t.label || o) && n ? /* @__PURE__ */ i(
|
|
10009
|
+
return /* @__PURE__ */ i(se, { children: (t.label || o) && n ? /* @__PURE__ */ i(xl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
|
|
10010
10010
|
Hr,
|
|
10011
10011
|
{
|
|
10012
10012
|
tip: s("loading"),
|
|
@@ -10022,8 +10022,8 @@ function ba(e) {
|
|
|
10022
10022
|
}
|
|
10023
10023
|
) });
|
|
10024
10024
|
}
|
|
10025
|
-
const { TabPane:
|
|
10026
|
-
function
|
|
10025
|
+
const { TabPane: lh } = $i;
|
|
10026
|
+
function ch(e) {
|
|
10027
10027
|
const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
|
|
10028
10028
|
function o(s) {
|
|
10029
10029
|
if (s) {
|
|
@@ -10032,7 +10032,7 @@ function lh(e) {
|
|
|
10032
10032
|
}
|
|
10033
10033
|
}
|
|
10034
10034
|
return /* @__PURE__ */ i($i, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
|
|
10035
|
-
|
|
10035
|
+
lh,
|
|
10036
10036
|
{
|
|
10037
10037
|
tab: /* @__PURE__ */ D(se, { children: [
|
|
10038
10038
|
o(s.icon),
|
|
@@ -10051,10 +10051,10 @@ function lh(e) {
|
|
|
10051
10051
|
s.label
|
|
10052
10052
|
)) });
|
|
10053
10053
|
}
|
|
10054
|
-
const { useToken:
|
|
10055
|
-
const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } =
|
|
10054
|
+
const { useToken: dh } = Ke, { TextArea: Ur } = ct, uh = (e) => {
|
|
10055
|
+
const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = dh(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(He), { elementHasLostFocus: f } = u || {};
|
|
10056
10056
|
return /* @__PURE__ */ i(_e, { required: o, ...e, children: a ? /* @__PURE__ */ i(
|
|
10057
|
-
|
|
10057
|
+
fh,
|
|
10058
10058
|
{
|
|
10059
10059
|
field: n,
|
|
10060
10060
|
height: s,
|
|
@@ -10074,7 +10074,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10074
10074
|
onBlur: f
|
|
10075
10075
|
}
|
|
10076
10076
|
) });
|
|
10077
|
-
},
|
|
10077
|
+
}, fh = ({
|
|
10078
10078
|
value: e,
|
|
10079
10079
|
field: t,
|
|
10080
10080
|
requiredStyle: n,
|
|
@@ -10164,13 +10164,13 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10164
10164
|
}
|
|
10165
10165
|
) })
|
|
10166
10166
|
] });
|
|
10167
|
-
},
|
|
10167
|
+
}, mh = (e) => {
|
|
10168
10168
|
const { ooui: t } = e, { label: n, icon: r } = t, o = ut(r || "");
|
|
10169
10169
|
return /* @__PURE__ */ i(Jn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Xe, { children: [
|
|
10170
10170
|
o ? /* @__PURE__ */ i(o, {}) : null,
|
|
10171
10171
|
n
|
|
10172
10172
|
] }) });
|
|
10173
|
-
},
|
|
10173
|
+
}, ph = ({
|
|
10174
10174
|
model: e,
|
|
10175
10175
|
context: t,
|
|
10176
10176
|
selectedRegistersToExport: n,
|
|
@@ -10190,7 +10190,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10190
10190
|
]);
|
|
10191
10191
|
const { datas: w } = await $.getHandler().exportData({
|
|
10192
10192
|
model: e,
|
|
10193
|
-
fields:
|
|
10193
|
+
fields: bh({
|
|
10194
10194
|
keys: g.selectedKeys,
|
|
10195
10195
|
fields: a.current
|
|
10196
10196
|
}),
|
|
@@ -10219,7 +10219,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10219
10219
|
fields: []
|
|
10220
10220
|
});
|
|
10221
10221
|
for (const [S, O] of Object.entries(x))
|
|
10222
|
-
x[S].string =
|
|
10222
|
+
x[S].string = gh({
|
|
10223
10223
|
parentTitle: w.string,
|
|
10224
10224
|
title: O.string
|
|
10225
10225
|
});
|
|
@@ -10230,7 +10230,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10230
10230
|
},
|
|
10231
10231
|
[t]
|
|
10232
10232
|
), p = N(async () => {
|
|
10233
|
-
const g = await
|
|
10233
|
+
const g = await yh({ model: e, context: t }), v = await wh({
|
|
10234
10234
|
predefinedExports: g,
|
|
10235
10235
|
fields: a.current,
|
|
10236
10236
|
onGetFieldChilds: d
|
|
@@ -10312,7 +10312,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10312
10312
|
for (const r of Object.keys(e)) {
|
|
10313
10313
|
const o = e[r], s = Sa(o), a = o.is_function === !0, l = s && !a;
|
|
10314
10314
|
n.push({
|
|
10315
|
-
key:
|
|
10315
|
+
key: hh({ key: r, parentKey: t }),
|
|
10316
10316
|
title: o.string,
|
|
10317
10317
|
tooltip: o.help,
|
|
10318
10318
|
required: o.required,
|
|
@@ -10320,7 +10320,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10320
10320
|
});
|
|
10321
10321
|
}
|
|
10322
10322
|
return n;
|
|
10323
|
-
}, Sa = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
10323
|
+
}, Sa = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", hh = ({
|
|
10324
10324
|
parentKey: e,
|
|
10325
10325
|
key: t
|
|
10326
10326
|
}) => `${e ? e + "/" : ""}${t}`, Wr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Gr = (e) => {
|
|
@@ -10328,10 +10328,10 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10328
10328
|
return e;
|
|
10329
10329
|
const t = e.split("/");
|
|
10330
10330
|
return t[t.length - 1];
|
|
10331
|
-
}, Kr = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Wr(e)],
|
|
10331
|
+
}, Kr = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Wr(e)], gh = ({
|
|
10332
10332
|
title: e,
|
|
10333
10333
|
parentTitle: t
|
|
10334
|
-
}) => `${t ? t + " → " : ""}${e}`,
|
|
10334
|
+
}) => `${t ? t + " → " : ""}${e}`, yh = async ({
|
|
10335
10335
|
model: e,
|
|
10336
10336
|
context: t
|
|
10337
10337
|
}) => {
|
|
@@ -10351,24 +10351,24 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10351
10351
|
key: o.find((c) => c.id === a).name
|
|
10352
10352
|
}))
|
|
10353
10353
|
}));
|
|
10354
|
-
},
|
|
10354
|
+
}, vh = ({
|
|
10355
10355
|
fields: e,
|
|
10356
10356
|
keys: t
|
|
10357
|
-
}) =>
|
|
10357
|
+
}) => Sh([
|
|
10358
10358
|
...new Set(
|
|
10359
10359
|
t.filter((n) => {
|
|
10360
10360
|
var r, o;
|
|
10361
10361
|
return n.indexOf("/") === -1 ? !((r = e["/"]) != null && r[n]) : !((o = e == null ? void 0 : e[Wr(n)]) != null && o[n]);
|
|
10362
10362
|
}).map((n) => Wr(n))
|
|
10363
10363
|
)
|
|
10364
|
-
]),
|
|
10364
|
+
]), wh = async ({
|
|
10365
10365
|
predefinedExports: e,
|
|
10366
10366
|
fields: t,
|
|
10367
10367
|
onGetFieldChilds: n
|
|
10368
10368
|
}) => {
|
|
10369
10369
|
const r = e.flatMap(
|
|
10370
10370
|
(a) => a.fields.map((l) => l.key)
|
|
10371
|
-
), o =
|
|
10371
|
+
), o = vh({
|
|
10372
10372
|
fields: t,
|
|
10373
10373
|
keys: r
|
|
10374
10374
|
}), s = [];
|
|
@@ -10382,13 +10382,13 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10382
10382
|
);
|
|
10383
10383
|
}
|
|
10384
10384
|
return s;
|
|
10385
|
-
},
|
|
10385
|
+
}, bh = ({
|
|
10386
10386
|
keys: e,
|
|
10387
10387
|
fields: t
|
|
10388
10388
|
}) => e.map((n) => {
|
|
10389
10389
|
const r = Gr(n), s = Kr(n, t)[r], a = Sa(s), l = s.is_function === !0;
|
|
10390
10390
|
return a && !l ? `${n}/id` : n;
|
|
10391
|
-
}),
|
|
10391
|
+
}), Sh = (e) => {
|
|
10392
10392
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
10393
10393
|
for (const r of e) {
|
|
10394
10394
|
const o = r.split("/");
|
|
@@ -10402,7 +10402,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10402
10402
|
const s = r.split("/").length, a = o.split("/").length;
|
|
10403
10403
|
return s - a;
|
|
10404
10404
|
}), n;
|
|
10405
|
-
},
|
|
10405
|
+
}, Ch = (e) => {
|
|
10406
10406
|
const {
|
|
10407
10407
|
visible: t,
|
|
10408
10408
|
onClose: n,
|
|
@@ -10420,7 +10420,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10420
10420
|
onGetPredefinedExports: h,
|
|
10421
10421
|
onSavePredefinedExport: m,
|
|
10422
10422
|
onRemovePredefinedExport: y
|
|
10423
|
-
} =
|
|
10423
|
+
} = ph({
|
|
10424
10424
|
model: r,
|
|
10425
10425
|
context: o,
|
|
10426
10426
|
domain: l,
|
|
@@ -10429,7 +10429,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10429
10429
|
onClose: n
|
|
10430
10430
|
});
|
|
10431
10431
|
return /* @__PURE__ */ i(
|
|
10432
|
-
|
|
10432
|
+
Il,
|
|
10433
10433
|
{
|
|
10434
10434
|
visible: t,
|
|
10435
10435
|
onSucceed: f,
|
|
@@ -10444,16 +10444,16 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10444
10444
|
onRemovePredefinedExport: y
|
|
10445
10445
|
}
|
|
10446
10446
|
);
|
|
10447
|
-
},
|
|
10447
|
+
}, xh = (e) => {
|
|
10448
10448
|
const { ooui: t } = e;
|
|
10449
10449
|
return /* @__PURE__ */ i(_s, { ooui: t });
|
|
10450
|
-
},
|
|
10450
|
+
}, Ih = (e) => {
|
|
10451
10451
|
const { ooui: t } = e;
|
|
10452
10452
|
return /* @__PURE__ */ i(_s, { ooui: t, showTime: !0 });
|
|
10453
|
-
},
|
|
10453
|
+
}, Th = (e) => {
|
|
10454
10454
|
const { ooui: t } = e;
|
|
10455
|
-
return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(
|
|
10456
|
-
},
|
|
10455
|
+
return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Oh, { ooui: t }) });
|
|
10456
|
+
}, Oh = (e) => /* @__PURE__ */ i(
|
|
10457
10457
|
Dr,
|
|
10458
10458
|
{
|
|
10459
10459
|
onChange: (n, r) => {
|
|
@@ -10462,10 +10462,10 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10462
10462
|
numberOfSelectsToHide: 3,
|
|
10463
10463
|
value: e.value ? st(e.value, "HH:mm:ss") : void 0
|
|
10464
10464
|
}
|
|
10465
|
-
),
|
|
10465
|
+
), Ah = (e) => {
|
|
10466
10466
|
const { ooui: t } = e, { required: n } = t;
|
|
10467
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
10468
|
-
},
|
|
10467
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Fh, { ooui: t }) });
|
|
10468
|
+
}, Fh = (e) => {
|
|
10469
10469
|
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] = C([]), [d, p] = C();
|
|
10470
10470
|
return ae(() => {
|
|
10471
10471
|
if (!t) {
|
|
@@ -10513,11 +10513,11 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10513
10513
|
}
|
|
10514
10514
|
) })
|
|
10515
10515
|
] });
|
|
10516
|
-
}, { useToken:
|
|
10516
|
+
}, { useToken: Rh } = Ke, _h = (e) => {
|
|
10517
10517
|
const { ooui: t } = e, { required: n } = t;
|
|
10518
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
10519
|
-
},
|
|
10520
|
-
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } =
|
|
10518
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Vh, { ooui: t }) });
|
|
10519
|
+
}, Vh = (e) => {
|
|
10520
|
+
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Rh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(null), { setFieldValue: f, getFieldValue: d } = ne(He) || {}, { t: p } = fe(), h = n ? _c(n) : "", m = (I) => {
|
|
10521
10521
|
r == null || r(I);
|
|
10522
10522
|
};
|
|
10523
10523
|
async function y() {
|
|
@@ -10570,7 +10570,7 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10570
10570
|
children: "Select"
|
|
10571
10571
|
}
|
|
10572
10572
|
),
|
|
10573
|
-
/* @__PURE__ */ i(Be, { icon: /* @__PURE__ */ i(
|
|
10573
|
+
/* @__PURE__ */ i(Be, { icon: /* @__PURE__ */ i(fl, {}), disabled: !n, onClick: g, children: p("open") }),
|
|
10574
10574
|
/* @__PURE__ */ i(
|
|
10575
10575
|
nt,
|
|
10576
10576
|
{
|
|
@@ -10594,8 +10594,8 @@ const { useToken: ch } = Ke, { TextArea: Ur } = ct, dh = (e) => {
|
|
|
10594
10594
|
}, Ar = {
|
|
10595
10595
|
tree: /* @__PURE__ */ i(oo, {}),
|
|
10596
10596
|
form: /* @__PURE__ */ i(xn, {}),
|
|
10597
|
-
graph: /* @__PURE__ */ i(
|
|
10598
|
-
calendar: /* @__PURE__ */ i(
|
|
10597
|
+
graph: /* @__PURE__ */ i(ml, {}),
|
|
10598
|
+
calendar: /* @__PURE__ */ i(pl, {})
|
|
10599
10599
|
};
|
|
10600
10600
|
function _i(e) {
|
|
10601
10601
|
return e ? (Ar == null ? void 0 : Ar[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
|
|
@@ -10758,7 +10758,7 @@ async function Ia(e, t, n) {
|
|
|
10758
10758
|
] })
|
|
10759
10759
|
);
|
|
10760
10760
|
}
|
|
10761
|
-
const
|
|
10761
|
+
const Eh = (e) => {
|
|
10762
10762
|
const {
|
|
10763
10763
|
numberOfAttachments: t,
|
|
10764
10764
|
attachments: n = [],
|
|
@@ -10856,7 +10856,7 @@ const Vh = (e) => {
|
|
|
10856
10856
|
}
|
|
10857
10857
|
);
|
|
10858
10858
|
};
|
|
10859
|
-
function
|
|
10859
|
+
function Dh(e) {
|
|
10860
10860
|
const {
|
|
10861
10861
|
attachments: t,
|
|
10862
10862
|
disabled: n = !1,
|
|
@@ -10921,7 +10921,7 @@ function Eh(e) {
|
|
|
10921
10921
|
m();
|
|
10922
10922
|
}, [m]), /* @__PURE__ */ D(se, { children: [
|
|
10923
10923
|
/* @__PURE__ */ i(
|
|
10924
|
-
|
|
10924
|
+
Eh,
|
|
10925
10925
|
{
|
|
10926
10926
|
numberOfAttachments: t.length,
|
|
10927
10927
|
attachments: u,
|
|
@@ -10947,7 +10947,7 @@ function Eh(e) {
|
|
|
10947
10947
|
)
|
|
10948
10948
|
] });
|
|
10949
10949
|
}
|
|
10950
|
-
const
|
|
10950
|
+
const Ph = () => {
|
|
10951
10951
|
const {
|
|
10952
10952
|
isInfiniteTree: e,
|
|
10953
10953
|
totalItems: t,
|
|
@@ -11030,12 +11030,12 @@ const Dh = () => {
|
|
|
11030
11030
|
onPreviousClick: y
|
|
11031
11031
|
};
|
|
11032
11032
|
};
|
|
11033
|
-
function
|
|
11033
|
+
function kh({ toolbar: e }) {
|
|
11034
11034
|
const t = ne(
|
|
11035
11035
|
gn
|
|
11036
11036
|
), n = ne(
|
|
11037
11037
|
bt
|
|
11038
|
-
), { t: r } = fe(), { onNextClick: o, onPreviousClick: s } =
|
|
11038
|
+
), { t: r } = fe(), { onNextClick: o, onPreviousClick: s } = Ph(), {
|
|
11039
11039
|
availableViews: a,
|
|
11040
11040
|
currentView: l,
|
|
11041
11041
|
setCurrentView: c,
|
|
@@ -11152,7 +11152,7 @@ function Ph({ toolbar: e }) {
|
|
|
11152
11152
|
/* @__PURE__ */ i(
|
|
11153
11153
|
ot,
|
|
11154
11154
|
{
|
|
11155
|
-
icon: /* @__PURE__ */ i(
|
|
11155
|
+
icon: /* @__PURE__ */ i(hl, {}),
|
|
11156
11156
|
tooltip: r("save"),
|
|
11157
11157
|
disabled: !f || B,
|
|
11158
11158
|
loading: d,
|
|
@@ -11300,7 +11300,7 @@ function Ph({ toolbar: e }) {
|
|
|
11300
11300
|
}
|
|
11301
11301
|
),
|
|
11302
11302
|
/* @__PURE__ */ i(
|
|
11303
|
-
|
|
11303
|
+
Dh,
|
|
11304
11304
|
{
|
|
11305
11305
|
disabled: B,
|
|
11306
11306
|
attachments: R,
|
|
@@ -11348,8 +11348,8 @@ const Jt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Qt
|
|
|
11348
11348
|
],
|
|
11349
11349
|
values: { selection_associated_object: `${e},${t}` },
|
|
11350
11350
|
forced_values: { res_model: e, res_id: t }
|
|
11351
|
-
}), { useToken:
|
|
11352
|
-
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } =
|
|
11351
|
+
}), { useToken: $h } = Ke, Ta = (e) => {
|
|
11352
|
+
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = $h(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(He), { elementHasLostFocus: p } = d || {}, [h, m] = C(!1), [y, g] = C(!1);
|
|
11353
11353
|
ae(() => {
|
|
11354
11354
|
l && !h && g(!1), !n && !l && (m(!0), g(!0));
|
|
11355
11355
|
}, [h, l]);
|
|
@@ -11404,26 +11404,26 @@ const Jt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Qt
|
|
|
11404
11404
|
}
|
|
11405
11405
|
) })
|
|
11406
11406
|
] });
|
|
11407
|
-
},
|
|
11407
|
+
}, Nh = (e) => {
|
|
11408
11408
|
const { ooui: t } = e, { required: n } = t;
|
|
11409
11409
|
return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
11410
11410
|
Ta,
|
|
11411
11411
|
{
|
|
11412
11412
|
ooui: t,
|
|
11413
|
-
valueValidator: (r) => r ?
|
|
11413
|
+
valueValidator: (r) => r ? Yl(r) : !1
|
|
11414
11414
|
}
|
|
11415
11415
|
) });
|
|
11416
|
-
},
|
|
11416
|
+
}, Mh = (e) => {
|
|
11417
11417
|
const { ooui: t } = e, { required: n } = t;
|
|
11418
|
-
return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(
|
|
11418
|
+
return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(xu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
|
|
11419
11419
|
Ta,
|
|
11420
11420
|
{
|
|
11421
11421
|
ooui: t,
|
|
11422
11422
|
linkPrefix: "mailto:",
|
|
11423
|
-
valueValidator: (r) => r ?
|
|
11423
|
+
valueValidator: (r) => r ? zl(r) : !1
|
|
11424
11424
|
}
|
|
11425
11425
|
) });
|
|
11426
|
-
},
|
|
11426
|
+
}, Lh = (e) => {
|
|
11427
11427
|
const { visible: t, onIdSubmitted: n, onCancel: r, isSearching: o } = e, { t: s } = fe(), a = Y(null), l = Y(!1);
|
|
11428
11428
|
function c(u) {
|
|
11429
11429
|
const f = u.id.split(",").map((d) => parseInt(d.trim()));
|
|
@@ -11476,7 +11476,7 @@ const Jt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Qt
|
|
|
11476
11476
|
tabIndex: 1,
|
|
11477
11477
|
loading: o,
|
|
11478
11478
|
style: { marginLeft: 15 },
|
|
11479
|
-
icon: /* @__PURE__ */ i(
|
|
11479
|
+
icon: /* @__PURE__ */ i(gl, {}),
|
|
11480
11480
|
htmlType: "submit",
|
|
11481
11481
|
disabled: o,
|
|
11482
11482
|
onClick: () => {
|
|
@@ -11505,9 +11505,9 @@ const Jt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Qt
|
|
|
11505
11505
|
] })
|
|
11506
11506
|
}
|
|
11507
11507
|
);
|
|
11508
|
-
}, { useToken:
|
|
11508
|
+
}, { useToken: jh } = Ke;
|
|
11509
11509
|
function Oa(e) {
|
|
11510
|
-
const { badgeNumber: t = 0, ...n } = e, { token: r } =
|
|
11510
|
+
const { badgeNumber: t = 0, ...n } = e, { token: r } = jh();
|
|
11511
11511
|
return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
|
|
11512
11512
|
t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
|
|
11513
11513
|
"span",
|
|
@@ -11534,7 +11534,7 @@ function Oa(e) {
|
|
|
11534
11534
|
)
|
|
11535
11535
|
] });
|
|
11536
11536
|
}
|
|
11537
|
-
function
|
|
11537
|
+
function Bh({ refreshGraph: e }) {
|
|
11538
11538
|
const { t } = fe(), {
|
|
11539
11539
|
availableViews: n,
|
|
11540
11540
|
currentView: r,
|
|
@@ -11591,7 +11591,7 @@ function jh({ refreshGraph: e }) {
|
|
|
11591
11591
|
)
|
|
11592
11592
|
] });
|
|
11593
11593
|
}
|
|
11594
|
-
const { useToken:
|
|
11594
|
+
const { useToken: Hh } = Ke, { Title: Uh, Text: Mn } = Pt, ur = ({
|
|
11595
11595
|
title: e,
|
|
11596
11596
|
children: t,
|
|
11597
11597
|
showSummary: n = !0
|
|
@@ -11605,7 +11605,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11605
11605
|
totalItems: c,
|
|
11606
11606
|
selectedRowItems: u,
|
|
11607
11607
|
isInfiniteTree: f
|
|
11608
|
-
} = ne(at), { t: d } = fe(), { token: p } =
|
|
11608
|
+
} = ne(at), { t: d } = fe(), { token: p } = Hh(), h = de(() => {
|
|
11609
11609
|
if (!n)
|
|
11610
11610
|
return null;
|
|
11611
11611
|
if ((o == null ? void 0 : o.type) === "form" && s) {
|
|
@@ -11687,7 +11687,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11687
11687
|
align: "middle",
|
|
11688
11688
|
children: [
|
|
11689
11689
|
/* @__PURE__ */ D(Ce, { flex: 2, children: [
|
|
11690
|
-
/* @__PURE__ */ i(
|
|
11690
|
+
/* @__PURE__ */ i(Uh, { level: 3, style: { marginBottom: 0 }, children: e || r }),
|
|
11691
11691
|
h
|
|
11692
11692
|
] }),
|
|
11693
11693
|
/* @__PURE__ */ i(Ce, { flex: 3, children: /* @__PURE__ */ i(Me, { justify: "end", children: t }) })
|
|
@@ -11696,7 +11696,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11696
11696
|
),
|
|
11697
11697
|
/* @__PURE__ */ i("div", { className: "pb-5" })
|
|
11698
11698
|
] });
|
|
11699
|
-
},
|
|
11699
|
+
}, Wh = (e) => {
|
|
11700
11700
|
const { viewData: t, visible: n, model: r, context: o, domain: s, formView: a, treeView: l } = e, c = Y(), u = ne(
|
|
11701
11701
|
at
|
|
11702
11702
|
), {
|
|
@@ -11751,7 +11751,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11751
11751
|
});
|
|
11752
11752
|
return !n || !t ? null : /* @__PURE__ */ D(se, { children: [
|
|
11753
11753
|
/* @__PURE__ */ i(ur, { title: t.title || t.name, children: /* @__PURE__ */ i(
|
|
11754
|
-
|
|
11754
|
+
Bh,
|
|
11755
11755
|
{
|
|
11756
11756
|
refreshGraph: () => {
|
|
11757
11757
|
c.current.refresh();
|
|
@@ -11792,7 +11792,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11792
11792
|
}
|
|
11793
11793
|
)
|
|
11794
11794
|
] });
|
|
11795
|
-
},
|
|
11795
|
+
}, Gh = (e) => {
|
|
11796
11796
|
const {
|
|
11797
11797
|
visible: t,
|
|
11798
11798
|
formRef: n,
|
|
@@ -11808,7 +11808,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11808
11808
|
setCurrentItemIndex: p
|
|
11809
11809
|
} = e;
|
|
11810
11810
|
return t ? /* @__PURE__ */ D(se, { children: [
|
|
11811
|
-
/* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(
|
|
11811
|
+
/* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(kh, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
11812
11812
|
/* @__PURE__ */ i(
|
|
11813
11813
|
yn,
|
|
11814
11814
|
{
|
|
@@ -11828,7 +11828,7 @@ const { useToken: Bh } = Ke, { Title: Hh, Text: Mn } = Pt, ur = ({
|
|
|
11828
11828
|
)
|
|
11829
11829
|
] }) : null;
|
|
11830
11830
|
};
|
|
11831
|
-
function
|
|
11831
|
+
function Kh(e) {
|
|
11832
11832
|
const { onSearch: t, disabled: n = !1, searchText: r } = e, { t: o } = fe(), [s] = pt.useForm(), [a, l] = C(!1);
|
|
11833
11833
|
function c(f) {
|
|
11834
11834
|
t(f.search);
|
|
@@ -11850,7 +11850,7 @@ function Gh(e) {
|
|
|
11850
11850
|
},
|
|
11851
11851
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
11852
11852
|
suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Vt, { title: o("clear"), children: /* @__PURE__ */ i(
|
|
11853
|
-
|
|
11853
|
+
yl,
|
|
11854
11854
|
{
|
|
11855
11855
|
style: { color: "rgba(0,0,0,.45)" },
|
|
11856
11856
|
onClick: u
|
|
@@ -11869,7 +11869,7 @@ function Gh(e) {
|
|
|
11869
11869
|
) })
|
|
11870
11870
|
] }) });
|
|
11871
11871
|
}
|
|
11872
|
-
function
|
|
11872
|
+
function qh(e) {
|
|
11873
11873
|
var j;
|
|
11874
11874
|
const {
|
|
11875
11875
|
availableViews: t,
|
|
@@ -12002,7 +12002,7 @@ function Kh(e) {
|
|
|
12002
12002
|
] }),
|
|
12003
12003
|
F ? null : /* @__PURE__ */ D(se, { children: [
|
|
12004
12004
|
/* @__PURE__ */ i(
|
|
12005
|
-
|
|
12005
|
+
Kh,
|
|
12006
12006
|
{
|
|
12007
12007
|
disabled: l || a || w,
|
|
12008
12008
|
searchText: v,
|
|
@@ -12195,7 +12195,7 @@ function Kh(e) {
|
|
|
12195
12195
|
}
|
|
12196
12196
|
),
|
|
12197
12197
|
/* @__PURE__ */ i(
|
|
12198
|
-
|
|
12198
|
+
Ch,
|
|
12199
12199
|
{
|
|
12200
12200
|
visible: W,
|
|
12201
12201
|
onClose: () => B(!1),
|
|
@@ -12217,7 +12217,7 @@ function Kh(e) {
|
|
|
12217
12217
|
function Nt() {
|
|
12218
12218
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
12219
12219
|
}
|
|
12220
|
-
const
|
|
12220
|
+
const Yh = (e) => {
|
|
12221
12221
|
const {
|
|
12222
12222
|
visible: t,
|
|
12223
12223
|
searchTreeRef: n,
|
|
@@ -12261,7 +12261,7 @@ const qh = (e) => {
|
|
|
12261
12261
|
);
|
|
12262
12262
|
return t ? /* @__PURE__ */ D(An, { children: [
|
|
12263
12263
|
/* @__PURE__ */ i(ur, { showSummary: !m, children: /* @__PURE__ */ i(
|
|
12264
|
-
|
|
12264
|
+
qh,
|
|
12265
12265
|
{
|
|
12266
12266
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
12267
12267
|
parentContext: o,
|
|
@@ -12296,7 +12296,7 @@ const qh = (e) => {
|
|
|
12296
12296
|
}
|
|
12297
12297
|
)
|
|
12298
12298
|
] }) : null;
|
|
12299
|
-
}, Ao = mt.createContext(null),
|
|
12299
|
+
}, Ao = mt.createContext(null), zh = (e) => {
|
|
12300
12300
|
const [t, n] = C(!1), [r, o] = C(!1), { children: s, dashboardRef: a, openAction: l } = e;
|
|
12301
12301
|
return /* @__PURE__ */ i(
|
|
12302
12302
|
Ao.Provider,
|
|
@@ -12313,14 +12313,14 @@ const qh = (e) => {
|
|
|
12313
12313
|
}
|
|
12314
12314
|
);
|
|
12315
12315
|
};
|
|
12316
|
-
function
|
|
12316
|
+
function Jh() {
|
|
12317
12317
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(Ao), { t: o } = fe();
|
|
12318
12318
|
return /* @__PURE__ */ D(Xe, { wrap: !0, children: [
|
|
12319
12319
|
/* @__PURE__ */ i(
|
|
12320
12320
|
ot,
|
|
12321
12321
|
{
|
|
12322
12322
|
icon: /* @__PURE__ */ i(
|
|
12323
|
-
|
|
12323
|
+
vl,
|
|
12324
12324
|
{
|
|
12325
12325
|
style: { color: n ? "white" : void 0 }
|
|
12326
12326
|
}
|
|
@@ -12334,11 +12334,11 @@ function zh() {
|
|
|
12334
12334
|
}
|
|
12335
12335
|
}
|
|
12336
12336
|
),
|
|
12337
|
-
|
|
12337
|
+
Qh(),
|
|
12338
12338
|
/* @__PURE__ */ i(
|
|
12339
12339
|
ot,
|
|
12340
12340
|
{
|
|
12341
|
-
icon: /* @__PURE__ */ i(
|
|
12341
|
+
icon: /* @__PURE__ */ i(wl, {}),
|
|
12342
12342
|
tooltip: o("configDashboard"),
|
|
12343
12343
|
disabled: e,
|
|
12344
12344
|
loading: !1,
|
|
@@ -12361,24 +12361,24 @@ function zh() {
|
|
|
12361
12361
|
)
|
|
12362
12362
|
] });
|
|
12363
12363
|
}
|
|
12364
|
-
function
|
|
12364
|
+
function Qh() {
|
|
12365
12365
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
12366
12366
|
}
|
|
12367
|
-
const
|
|
12367
|
+
const Xh = (e) => {
|
|
12368
12368
|
const { dashboardData: t, visible: n } = e, r = Y(), o = ne(
|
|
12369
12369
|
bt
|
|
12370
12370
|
), { openShortcut: s } = o || {};
|
|
12371
12371
|
return !t || !n ? null : /* @__PURE__ */ D(
|
|
12372
|
-
|
|
12372
|
+
zh,
|
|
12373
12373
|
{
|
|
12374
12374
|
dashboardRef: r,
|
|
12375
12375
|
openAction: (a) => {
|
|
12376
12376
|
s(a);
|
|
12377
12377
|
},
|
|
12378
12378
|
children: [
|
|
12379
|
-
/* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(
|
|
12379
|
+
/* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(Jh, {}) }),
|
|
12380
12380
|
/* @__PURE__ */ i(
|
|
12381
|
-
|
|
12381
|
+
ag,
|
|
12382
12382
|
{
|
|
12383
12383
|
ref: r,
|
|
12384
12384
|
model: t.model,
|
|
@@ -12391,7 +12391,7 @@ const Qh = (e) => {
|
|
|
12391
12391
|
}
|
|
12392
12392
|
);
|
|
12393
12393
|
};
|
|
12394
|
-
async function
|
|
12394
|
+
async function Zh(e) {
|
|
12395
12395
|
const t = await Promise.all(
|
|
12396
12396
|
e.map(async (r) => {
|
|
12397
12397
|
try {
|
|
@@ -12406,7 +12406,7 @@ async function Xh(e) {
|
|
|
12406
12406
|
info: t[o]
|
|
12407
12407
|
})).filter((r) => r.info !== null);
|
|
12408
12408
|
}
|
|
12409
|
-
function
|
|
12409
|
+
function eg(e, t) {
|
|
12410
12410
|
const {
|
|
12411
12411
|
domain: n,
|
|
12412
12412
|
model: r,
|
|
@@ -12471,7 +12471,7 @@ function Zh(e, t) {
|
|
|
12471
12471
|
viewTuple: Pe
|
|
12472
12472
|
});
|
|
12473
12473
|
}
|
|
12474
|
-
const xe = await
|
|
12474
|
+
const xe = await Zh(ye);
|
|
12475
12475
|
for (const Pe of xe) {
|
|
12476
12476
|
if (!Pe)
|
|
12477
12477
|
continue;
|
|
@@ -12602,7 +12602,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12602
12602
|
switch (q.type) {
|
|
12603
12603
|
case "form":
|
|
12604
12604
|
return /* @__PURE__ */ i(
|
|
12605
|
-
|
|
12605
|
+
Gh,
|
|
12606
12606
|
{
|
|
12607
12607
|
formRef: G,
|
|
12608
12608
|
currentId: R,
|
|
@@ -12621,7 +12621,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12621
12621
|
);
|
|
12622
12622
|
case "tree":
|
|
12623
12623
|
return /* @__PURE__ */ i(
|
|
12624
|
-
|
|
12624
|
+
Yh,
|
|
12625
12625
|
{
|
|
12626
12626
|
visible: v.type === q.type && v.view_id === q.view_id,
|
|
12627
12627
|
limit: g,
|
|
@@ -12642,7 +12642,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12642
12642
|
);
|
|
12643
12643
|
case "graph":
|
|
12644
12644
|
return /* @__PURE__ */ i(
|
|
12645
|
-
|
|
12645
|
+
Wh,
|
|
12646
12646
|
{
|
|
12647
12647
|
visible: v.type === q.type && v.view_id === q.view_id,
|
|
12648
12648
|
viewData: q,
|
|
@@ -12656,7 +12656,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12656
12656
|
);
|
|
12657
12657
|
case "dashboard":
|
|
12658
12658
|
return /* @__PURE__ */ i(
|
|
12659
|
-
|
|
12659
|
+
Xh,
|
|
12660
12660
|
{
|
|
12661
12661
|
dashboardData: q,
|
|
12662
12662
|
visible: v.type === q.type && v.view_id === q.view_id
|
|
@@ -12678,7 +12678,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12678
12678
|
}
|
|
12679
12679
|
}
|
|
12680
12680
|
return S ? /* @__PURE__ */ i(Ge, {}) : v ? /* @__PURE__ */ D(
|
|
12681
|
-
|
|
12681
|
+
Ad,
|
|
12682
12682
|
{
|
|
12683
12683
|
title: a,
|
|
12684
12684
|
currentView: v,
|
|
@@ -12708,7 +12708,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12708
12708
|
children: [
|
|
12709
12709
|
ue(),
|
|
12710
12710
|
/* @__PURE__ */ i(
|
|
12711
|
-
|
|
12711
|
+
Lh,
|
|
12712
12712
|
{
|
|
12713
12713
|
visible: Z,
|
|
12714
12714
|
onIdSubmitted: Oe,
|
|
@@ -12722,8 +12722,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12722
12722
|
}
|
|
12723
12723
|
) : null;
|
|
12724
12724
|
}
|
|
12725
|
-
const Aa = yt(
|
|
12726
|
-
const
|
|
12725
|
+
const Aa = yt(eg);
|
|
12726
|
+
const tg = ec(tc), ng = (e) => {
|
|
12727
12727
|
const { children: t = [], onPositionItemsChanged: n } = e, r = mt.Children.map(
|
|
12728
12728
|
t,
|
|
12729
12729
|
(o) => {
|
|
@@ -12732,7 +12732,7 @@ const eg = Zl(ec), tg = (e) => {
|
|
|
12732
12732
|
}
|
|
12733
12733
|
);
|
|
12734
12734
|
return /* @__PURE__ */ i(
|
|
12735
|
-
|
|
12735
|
+
tg,
|
|
12736
12736
|
{
|
|
12737
12737
|
className: "layout",
|
|
12738
12738
|
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
@@ -12753,7 +12753,7 @@ const eg = Zl(ec), tg = (e) => {
|
|
|
12753
12753
|
}
|
|
12754
12754
|
);
|
|
12755
12755
|
};
|
|
12756
|
-
function
|
|
12756
|
+
function rg(e) {
|
|
12757
12757
|
const {
|
|
12758
12758
|
action: t,
|
|
12759
12759
|
model: n,
|
|
@@ -12865,7 +12865,7 @@ function ng(e) {
|
|
|
12865
12865
|
] });
|
|
12866
12866
|
return B ? /* @__PURE__ */ i(rt, { className: "mt-10", message: B, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(Ge, { style: { padding: "2rem" } }) : J();
|
|
12867
12867
|
}
|
|
12868
|
-
const
|
|
12868
|
+
const og = cn(rg), ig = (e) => {
|
|
12869
12869
|
const { model: t } = e, [n, r] = C();
|
|
12870
12870
|
ae(() => {
|
|
12871
12871
|
o();
|
|
@@ -12880,7 +12880,7 @@ const rg = cn(ng), og = (e) => {
|
|
|
12880
12880
|
}
|
|
12881
12881
|
return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(yn, { ...e, model: t, id: n, readOnly: !0 }) });
|
|
12882
12882
|
}, Fr = "line_ids";
|
|
12883
|
-
function
|
|
12883
|
+
function sg(e, t) {
|
|
12884
12884
|
const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = C([]), [c, u] = C(!1), [f, d] = C(), {
|
|
12885
12885
|
setIsLoading: p,
|
|
12886
12886
|
openAction: h,
|
|
@@ -13012,7 +13012,7 @@ function ig(e, t) {
|
|
|
13012
13012
|
async function F() {
|
|
13013
13013
|
h(s);
|
|
13014
13014
|
}
|
|
13015
|
-
return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
13015
|
+
return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(ng, { onPositionItemsChanged: V, children: a.map((A, P) => {
|
|
13016
13016
|
const { actionData: _, values: k } = A, { position: M, id: W } = k, {
|
|
13017
13017
|
actionId: B,
|
|
13018
13018
|
actionType: E,
|
|
@@ -13048,10 +13048,10 @@ function ig(e, t) {
|
|
|
13048
13048
|
W
|
|
13049
13049
|
);
|
|
13050
13050
|
} else if ((j == null ? void 0 : j.type) === "form")
|
|
13051
|
-
me = /* @__PURE__ */ i(
|
|
13051
|
+
me = /* @__PURE__ */ i(ig, { model: U, actionDomain: ee }, W);
|
|
13052
13052
|
else if ((j == null ? void 0 : j.type) === "tree")
|
|
13053
13053
|
me = /* @__PURE__ */ i(
|
|
13054
|
-
|
|
13054
|
+
og,
|
|
13055
13055
|
{
|
|
13056
13056
|
model: U,
|
|
13057
13057
|
domain: ee,
|
|
@@ -13142,10 +13142,10 @@ function ig(e, t) {
|
|
|
13142
13142
|
);
|
|
13143
13143
|
}) });
|
|
13144
13144
|
}
|
|
13145
|
-
const
|
|
13145
|
+
const ag = yt(sg), lg = (e) => {
|
|
13146
13146
|
const { ooui: t } = e;
|
|
13147
|
-
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(
|
|
13148
|
-
},
|
|
13147
|
+
return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(cg, { ooui: t }) });
|
|
13148
|
+
}, cg = (e) => {
|
|
13149
13149
|
const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = C([]), [c, u] = C(), [f, d] = C(!1), { relation: p, context: h, readOnly: m, field: y, columns: g } = n, v = ne(He), { getContext: w } = v || {};
|
|
13150
13150
|
xt(() => {
|
|
13151
13151
|
x();
|
|
@@ -13226,7 +13226,7 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13226
13226
|
/* @__PURE__ */ i(Be, { onClick: O, disabled: s.length === 0, children: "Uncheck all" })
|
|
13227
13227
|
] })
|
|
13228
13228
|
] }) });
|
|
13229
|
-
},
|
|
13229
|
+
}, dg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(ug, { ...e }) }), ug = (e) => {
|
|
13230
13230
|
const { value: t, ooui: n } = e;
|
|
13231
13231
|
return /* @__PURE__ */ i(
|
|
13232
13232
|
"div",
|
|
@@ -13236,34 +13236,34 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13236
13236
|
overflow: "auto"
|
|
13237
13237
|
},
|
|
13238
13238
|
children: /* @__PURE__ */ i(
|
|
13239
|
-
|
|
13239
|
+
Jl,
|
|
13240
13240
|
{
|
|
13241
|
-
remarkPlugins: [
|
|
13241
|
+
remarkPlugins: [Ql],
|
|
13242
13242
|
className: "markdown-typography",
|
|
13243
13243
|
children: t
|
|
13244
13244
|
}
|
|
13245
13245
|
)
|
|
13246
13246
|
}
|
|
13247
13247
|
);
|
|
13248
|
-
}, ug = (e) => {
|
|
13249
|
-
const { ooui: t } = e, { required: n } = t;
|
|
13250
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(fg, { ...e }) });
|
|
13251
13248
|
}, fg = (e) => {
|
|
13249
|
+
const { ooui: t } = e, { required: n } = t;
|
|
13250
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(mg, { ...e }) });
|
|
13251
|
+
}, mg = (e) => {
|
|
13252
13252
|
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) => {
|
|
13253
13253
|
const [f, d] = u;
|
|
13254
13254
|
return /* @__PURE__ */ i(Vo, { value: f, children: d }, f);
|
|
13255
13255
|
});
|
|
13256
13256
|
return /* @__PURE__ */ i(Vo.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Xe, { direction: a, children: c }) });
|
|
13257
|
-
}, mg = (e) => {
|
|
13258
|
-
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
13259
|
-
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(pg, { id: n, readOnly: r, required: o }) });
|
|
13260
13257
|
}, pg = (e) => {
|
|
13258
|
+
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
13259
|
+
return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(hg, { id: n, readOnly: r, required: o }) });
|
|
13260
|
+
}, hg = (e) => {
|
|
13261
13261
|
const { required: t, readOnly: n, ...r } = e;
|
|
13262
13262
|
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Ja, { disabled: n, ...r }) });
|
|
13263
|
-
}, hg = (e) => {
|
|
13264
|
-
const { ooui: t } = e, { required: n } = t;
|
|
13265
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(gg, { ...e }) });
|
|
13266
13263
|
}, gg = (e) => {
|
|
13264
|
+
const { ooui: t } = e, { required: n } = t;
|
|
13265
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(yg, { ...e }) });
|
|
13266
|
+
}, yg = (e) => {
|
|
13267
13267
|
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = ne(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
|
|
13268
13268
|
let u = "process", f = "";
|
|
13269
13269
|
return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Eo, { current: c, status: u, children: l.map((d, p) => /* @__PURE__ */ i(
|
|
@@ -13273,7 +13273,7 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13273
13273
|
description: p === c && u === "error" ? f : null
|
|
13274
13274
|
}
|
|
13275
13275
|
)) });
|
|
13276
|
-
},
|
|
13276
|
+
}, vg = (e) => {
|
|
13277
13277
|
const {
|
|
13278
13278
|
token: {
|
|
13279
13279
|
colorPrimaryBg: t,
|
|
@@ -13336,7 +13336,7 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13336
13336
|
/* @__PURE__ */ i("div", { style: f }),
|
|
13337
13337
|
/* @__PURE__ */ i("div", { style: d(h.active) })
|
|
13338
13338
|
] }, m)) });
|
|
13339
|
-
},
|
|
13339
|
+
}, wg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vg, {}) }), bg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Sg, { ...e }) }), Sg = (e) => {
|
|
13340
13340
|
const { ooui: t, value: n, onChange: r } = e, { lang: o, height: s, readOnly: a } = t, l = ne(He), { elementHasLostFocus: c } = l || {}, u = N(
|
|
13341
13341
|
(d) => {
|
|
13342
13342
|
c && d.onDidBlurEditorWidget(() => c());
|
|
@@ -13352,7 +13352,7 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13352
13352
|
return n;
|
|
13353
13353
|
}, [o, n]);
|
|
13354
13354
|
return /* @__PURE__ */ i(
|
|
13355
|
-
|
|
13355
|
+
Xl,
|
|
13356
13356
|
{
|
|
13357
13357
|
value: f,
|
|
13358
13358
|
options: {
|
|
@@ -13364,13 +13364,13 @@ const sg = yt(ig), ag = (e) => {
|
|
|
13364
13364
|
onChange: r
|
|
13365
13365
|
}
|
|
13366
13366
|
);
|
|
13367
|
-
}, { Meta:
|
|
13368
|
-
const r = `https://www.gravatar.com/avatar/${
|
|
13367
|
+
}, { Meta: Cg } = qr, { Text: xg } = Pt, Ig = ({ email: e, size: t = 40, theme: n = "" }) => {
|
|
13368
|
+
const r = `https://www.gravatar.com/avatar/${Zl(
|
|
13369
13369
|
e
|
|
13370
13370
|
)}?s=${t}&d=${n}`;
|
|
13371
13371
|
return /* @__PURE__ */ i(Di, { src: r, size: t });
|
|
13372
13372
|
};
|
|
13373
|
-
function
|
|
13373
|
+
function Tg({ text: e }) {
|
|
13374
13374
|
const t = e.split(`
|
|
13375
13375
|
`);
|
|
13376
13376
|
return /* @__PURE__ */ i("div", { children: t.map((n, r) => /* @__PURE__ */ D(An, { children: [
|
|
@@ -13378,13 +13378,13 @@ function Ig({ text: e }) {
|
|
|
13378
13378
|
r !== t.length - 1 && /* @__PURE__ */ i("br", {})
|
|
13379
13379
|
] }, r)) });
|
|
13380
13380
|
}
|
|
13381
|
-
const
|
|
13381
|
+
const Og = (e) => {
|
|
13382
13382
|
const { data: t, style: n } = e, { t: r } = fe();
|
|
13383
13383
|
return /* @__PURE__ */ D(qr, { style: { ...n, textAlign: "start" }, children: [
|
|
13384
13384
|
/* @__PURE__ */ i(
|
|
13385
|
-
|
|
13385
|
+
Cg,
|
|
13386
13386
|
{
|
|
13387
|
-
avatar: /* @__PURE__ */ i(
|
|
13387
|
+
avatar: /* @__PURE__ */ i(Ig, { email: t.email, theme: "mp" }),
|
|
13388
13388
|
title: t.author,
|
|
13389
13389
|
description: /* @__PURE__ */ D(Xe, { direction: "horizontal", children: [
|
|
13390
13390
|
/* @__PURE__ */ i("span", { title: t.date, children: st(t.date).fromNow() }),
|
|
@@ -13393,9 +13393,9 @@ const Tg = (e) => {
|
|
|
13393
13393
|
style: { marginBottom: "5px" }
|
|
13394
13394
|
}
|
|
13395
13395
|
),
|
|
13396
|
-
/* @__PURE__ */ i(
|
|
13396
|
+
/* @__PURE__ */ i(xg, { children: /* @__PURE__ */ i(Tg, { text: t.text }) })
|
|
13397
13397
|
] }, t.id);
|
|
13398
|
-
},
|
|
13398
|
+
}, Ag = (e) => {
|
|
13399
13399
|
const { value: t, ooui: n } = e, r = (t || []).map((o) => {
|
|
13400
13400
|
if (o.type === "action")
|
|
13401
13401
|
return {
|
|
@@ -13406,7 +13406,7 @@ const Tg = (e) => {
|
|
|
13406
13406
|
color: "gray",
|
|
13407
13407
|
position: o.event.isSender ? "left" : "right",
|
|
13408
13408
|
label: o.event.date,
|
|
13409
|
-
children: /* @__PURE__ */ i(
|
|
13409
|
+
children: /* @__PURE__ */ i(Og, { data: o.event })
|
|
13410
13410
|
};
|
|
13411
13411
|
});
|
|
13412
13412
|
return /* @__PURE__ */ i(
|
|
@@ -13423,25 +13423,28 @@ const Tg = (e) => {
|
|
|
13423
13423
|
}
|
|
13424
13424
|
}
|
|
13425
13425
|
);
|
|
13426
|
-
},
|
|
13426
|
+
}, Fg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ag, { ooui: e.ooui }) }), Rg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Tl, {}) }), _g = (e) => {
|
|
13427
13427
|
const { ooui: t } = e, n = ne(He);
|
|
13428
|
-
let { title: r, text: o, alertType: s, icon: a } = t;
|
|
13428
|
+
let { title: r, text: o, alertType: s, icon: a, buttons: l } = t;
|
|
13429
13429
|
if (t.fieldType && t.id) {
|
|
13430
|
-
const
|
|
13431
|
-
typeof
|
|
13430
|
+
const f = n.getFieldValue(t.id);
|
|
13431
|
+
typeof f == "object" ? ({
|
|
13432
13432
|
title: r = t.title,
|
|
13433
13433
|
text: o = t.text,
|
|
13434
13434
|
alertType: s = t.alertType,
|
|
13435
|
-
icon: a = t.icon
|
|
13436
|
-
|
|
13435
|
+
icon: a = t.icon,
|
|
13436
|
+
buttons: l = []
|
|
13437
|
+
} = f, l && (l = l.map(
|
|
13438
|
+
(d) => new rl({ ...d, readonly: t.readOnly })
|
|
13439
|
+
)), t.buttons && (l = [...t.buttons, ...l])) : console.log(`field value for ${t.id} is not an object`);
|
|
13437
13440
|
}
|
|
13438
|
-
function
|
|
13439
|
-
if (
|
|
13440
|
-
const
|
|
13441
|
-
return
|
|
13441
|
+
function c(f) {
|
|
13442
|
+
if (f) {
|
|
13443
|
+
const d = ut(f);
|
|
13444
|
+
return d && /* @__PURE__ */ i(d, {});
|
|
13442
13445
|
}
|
|
13443
13446
|
}
|
|
13444
|
-
const
|
|
13447
|
+
const u = l.map((f) => /* @__PURE__ */ i(lo, { ooui: f }, f.id));
|
|
13445
13448
|
return /* @__PURE__ */ i(
|
|
13446
13449
|
rt,
|
|
13447
13450
|
{
|
|
@@ -13449,22 +13452,22 @@ const Tg = (e) => {
|
|
|
13449
13452
|
description: /* @__PURE__ */ i(In, { content: o }),
|
|
13450
13453
|
type: s,
|
|
13451
13454
|
showIcon: !0,
|
|
13452
|
-
action:
|
|
13453
|
-
icon:
|
|
13455
|
+
action: u ? /* @__PURE__ */ i(Xe, { direction: "vertical", children: u }) : null,
|
|
13456
|
+
icon: c(a)
|
|
13454
13457
|
}
|
|
13455
13458
|
);
|
|
13456
|
-
}, { Content:
|
|
13457
|
-
function
|
|
13459
|
+
}, { Content: Vg } = ki, { Title: Eg } = Pt;
|
|
13460
|
+
function Dg() {
|
|
13458
13461
|
const { t: e } = fe();
|
|
13459
|
-
return /* @__PURE__ */ i(
|
|
13462
|
+
return /* @__PURE__ */ i(Vg, { className: "m-5 select-none", children: /* @__PURE__ */ i(Eg, { level: 5, children: e("welcome") }) });
|
|
13460
13463
|
}
|
|
13461
|
-
function
|
|
13464
|
+
function Pg(e, t) {
|
|
13462
13465
|
const { children: n } = e, [r, o] = C("welcome"), { t: s } = fe(), { globalValues: a, rootContext: l } = mo(), [c, u] = C([
|
|
13463
13466
|
{
|
|
13464
13467
|
title: s("welcome"),
|
|
13465
13468
|
key: "welcome",
|
|
13466
13469
|
closable: !0,
|
|
13467
|
-
content: /* @__PURE__ */ i(
|
|
13470
|
+
content: /* @__PURE__ */ i(Dg, {})
|
|
13468
13471
|
}
|
|
13469
13472
|
]), f = Y(/* @__PURE__ */ new Map()), d = Y();
|
|
13470
13473
|
vt(t, () => ({
|
|
@@ -13774,7 +13777,7 @@ function Dg(e, t) {
|
|
|
13774
13777
|
}
|
|
13775
13778
|
}
|
|
13776
13779
|
return /* @__PURE__ */ i(
|
|
13777
|
-
|
|
13780
|
+
Ed,
|
|
13778
13781
|
{
|
|
13779
13782
|
openShortcut: v,
|
|
13780
13783
|
openAction: I,
|
|
@@ -13790,7 +13793,7 @@ function Dg(e, t) {
|
|
|
13790
13793
|
o(x);
|
|
13791
13794
|
},
|
|
13792
13795
|
children: /* @__PURE__ */ i(
|
|
13793
|
-
|
|
13796
|
+
iu,
|
|
13794
13797
|
{
|
|
13795
13798
|
ref: d,
|
|
13796
13799
|
globalValues: a,
|
|
@@ -13800,9 +13803,9 @@ function Dg(e, t) {
|
|
|
13800
13803
|
}
|
|
13801
13804
|
);
|
|
13802
13805
|
}
|
|
13803
|
-
const
|
|
13804
|
-
function
|
|
13805
|
-
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } =
|
|
13806
|
+
const ky = yt(Pg), { useToken: kg } = Ke;
|
|
13807
|
+
function $g(e) {
|
|
13808
|
+
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = kg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
13806
13809
|
return /* @__PURE__ */ D(
|
|
13807
13810
|
"div",
|
|
13808
13811
|
{
|
|
@@ -13872,12 +13875,12 @@ function kg(e) {
|
|
|
13872
13875
|
}
|
|
13873
13876
|
);
|
|
13874
13877
|
}
|
|
13875
|
-
function
|
|
13878
|
+
function $y() {
|
|
13876
13879
|
const e = ne(
|
|
13877
13880
|
bt
|
|
13878
13881
|
), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
|
|
13879
13882
|
return /* @__PURE__ */ i(se, { children: n.map((s) => /* @__PURE__ */ i(
|
|
13880
|
-
|
|
13883
|
+
$g,
|
|
13881
13884
|
{
|
|
13882
13885
|
tabKey: s.key,
|
|
13883
13886
|
label: s.title,
|
|
@@ -13888,7 +13891,7 @@ function ky() {
|
|
|
13888
13891
|
s.key
|
|
13889
13892
|
)) });
|
|
13890
13893
|
}
|
|
13891
|
-
function
|
|
13894
|
+
function Ng(e) {
|
|
13892
13895
|
const { tab: t } = e, n = ne(
|
|
13893
13896
|
bt
|
|
13894
13897
|
), { activeKey: r } = n || {}, o = {
|
|
@@ -13896,21 +13899,21 @@ function $g(e) {
|
|
|
13896
13899
|
};
|
|
13897
13900
|
return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
|
|
13898
13901
|
}
|
|
13899
|
-
const
|
|
13900
|
-
function
|
|
13902
|
+
const Mg = mt.memo(Ng, () => !0);
|
|
13903
|
+
function Ny() {
|
|
13901
13904
|
const e = ne(
|
|
13902
13905
|
bt
|
|
13903
|
-
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(
|
|
13906
|
+
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Mg, { tab: r }, r.key))) || null;
|
|
13904
13907
|
return /* @__PURE__ */ i(se, { children: n });
|
|
13905
13908
|
}
|
|
13906
|
-
const { useToken:
|
|
13909
|
+
const { useToken: Lg } = Ke, My = (e) => {
|
|
13907
13910
|
const {
|
|
13908
13911
|
onRetrieveShortcuts: t,
|
|
13909
13912
|
onCheckIsFavourite: n,
|
|
13910
13913
|
onAddFavourite: r,
|
|
13911
13914
|
onRemoveFavourite: o,
|
|
13912
13915
|
onDropdownClosed: s
|
|
13913
|
-
} = e, [a, l] = C(!1), [c, u] = C(), { t: f } = fe(), { token: d } =
|
|
13916
|
+
} = e, [a, l] = C(!1), [c, u] = C(), { t: f } = fe(), { token: d } = Lg(), p = Y(null), h = ne(
|
|
13914
13917
|
bt
|
|
13915
13918
|
), {
|
|
13916
13919
|
openShortcut: m,
|
|
@@ -14005,7 +14008,7 @@ const { useToken: Mg } = Ke, Ny = (e) => {
|
|
|
14005
14008
|
y
|
|
14006
14009
|
]);
|
|
14007
14010
|
return /* @__PURE__ */ i(
|
|
14008
|
-
|
|
14011
|
+
Ol,
|
|
14009
14012
|
{
|
|
14010
14013
|
ref: p,
|
|
14011
14014
|
isFavourite: a,
|
|
@@ -14030,68 +14033,68 @@ const { useToken: Mg } = Ke, Ny = (e) => {
|
|
|
14030
14033
|
);
|
|
14031
14034
|
};
|
|
14032
14035
|
export {
|
|
14033
|
-
|
|
14036
|
+
kh as ActionBar,
|
|
14034
14037
|
Aa as ActionView,
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14038
|
+
_g as Alert,
|
|
14039
|
+
wg as ArrowStepsField,
|
|
14040
|
+
_h as Binary,
|
|
14041
|
+
Ac as Boolean,
|
|
14039
14042
|
lo as Button,
|
|
14040
|
-
|
|
14043
|
+
uc as ButtonGroup,
|
|
14041
14044
|
is as Char,
|
|
14042
|
-
|
|
14043
|
-
|
|
14045
|
+
bg as CodeEditor,
|
|
14046
|
+
Fg as CommentsTimelineField,
|
|
14044
14047
|
ms as ConfigContext,
|
|
14045
|
-
|
|
14048
|
+
sd as ConfigContextProvider,
|
|
14046
14049
|
$ as ConnectionProvider,
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14050
|
+
iu as ContentRootProvider,
|
|
14051
|
+
Ny as CurrentTabContent,
|
|
14052
|
+
ag as Dashboard,
|
|
14053
|
+
ng as DashboardGrid,
|
|
14054
|
+
xh as Date,
|
|
14055
|
+
Ih as DateTime,
|
|
14056
|
+
Mh as Email,
|
|
14057
|
+
Py as ErpAllFeatureKeys,
|
|
14055
14058
|
pn as ErpFeatureKeys,
|
|
14056
|
-
|
|
14057
|
-
|
|
14059
|
+
Ch as ExportModal,
|
|
14060
|
+
My as FavouriteButton,
|
|
14058
14061
|
ks as Float,
|
|
14059
|
-
|
|
14062
|
+
sh as FloatTime,
|
|
14060
14063
|
yn as Form,
|
|
14061
14064
|
vn as FormModal,
|
|
14062
14065
|
ho as GraphCard,
|
|
14063
|
-
|
|
14066
|
+
dd as GraphIndicator,
|
|
14064
14067
|
ba as Group,
|
|
14065
|
-
|
|
14066
|
-
|
|
14068
|
+
Rg as HTMLPreview,
|
|
14069
|
+
Vc as Image,
|
|
14067
14070
|
qn as Integer,
|
|
14068
14071
|
ir as Label,
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14074
|
-
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14072
|
+
Dp as Many2one,
|
|
14073
|
+
dg as Markdown,
|
|
14074
|
+
lg as MultiCheckbox,
|
|
14075
|
+
ch as Notebook,
|
|
14076
|
+
rh as One2many,
|
|
14077
|
+
mu as ProgressBar,
|
|
14078
|
+
fg as Radio,
|
|
14079
|
+
Ah as Reference,
|
|
14080
|
+
ky as RootView,
|
|
14078
14081
|
Io as SearchFilter,
|
|
14079
14082
|
To as SearchModal,
|
|
14080
14083
|
ma as SearchTree,
|
|
14081
14084
|
ss as Selection,
|
|
14082
|
-
|
|
14085
|
+
mh as Separator,
|
|
14083
14086
|
Hr as Spinner,
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
|
|
14087
|
+
gg as Steps,
|
|
14088
|
+
pg as Switch,
|
|
14089
|
+
$g as Tab,
|
|
14090
|
+
$y as TabSelector,
|
|
14091
|
+
Bd as Tag,
|
|
14092
|
+
Hd as Tags,
|
|
14093
|
+
uh as Text,
|
|
14094
|
+
Th as Time,
|
|
14092
14095
|
Dn as Tree,
|
|
14093
|
-
|
|
14094
|
-
|
|
14096
|
+
Nh as Url,
|
|
14097
|
+
By as dayjs,
|
|
14095
14098
|
ut as iconMapper,
|
|
14096
14099
|
Et as showConfirmDialog
|
|
14097
14100
|
};
|