@gisce/react-ooui 2.80.0 → 2.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var is = (e, t, n) => (
|
|
1
|
+
var Ol = Object.defineProperty;
|
|
2
|
+
var Pl = (e, t, n) => t in e ? Ol(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var is = (e, t, n) => (Pl(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsx as s, jsxs as V, Fragment as de } from "react/jsx-runtime";
|
|
5
|
-
import Zt, { useContext as le, useState as T, useEffect as ce, useRef as z, memo as tt, useCallback as D, useMemo as Q, forwardRef as Vt, useImperativeHandle as Lt, Fragment as Ln, createContext as
|
|
6
|
-
import { Tooltip as Jt, theme as Ze, Typography as an, Form as kt, Row as Ge, Col as Ie, Modal as It, Button as ze, Dropdown as
|
|
7
|
-
import { Label as Hn, Field as lo, Tree as mi, Reference as
|
|
8
|
-
import
|
|
5
|
+
import Zt, { useContext as le, useState as T, useEffect as ce, useRef as z, memo as tt, useCallback as D, useMemo as Q, forwardRef as Vt, useImperativeHandle as Lt, Fragment as Ln, createContext as kl, createElement as Ml } from "react";
|
|
6
|
+
import { Tooltip as Jt, theme as Ze, Typography as an, Form as kt, Row as Ge, Col as Ie, Modal as It, Button as ze, Dropdown as Vl, Menu as as, Space as it, Spin as et, Divider as Rr, Input as xt, Select as hn, Checkbox as Jn, Alert as Rt, Timeline as ii, message as ls, Popover as Nl, DatePicker as ai, TimePicker as $l, InputNumber as _r, Layout as li, Progress as Ll, Avatar as ci, Tag as Fo, ColorPicker as di, Badge as rr, Pagination as Hl, Empty as ui, Statistic as jl, Card as To, Tabs as fi, Radio as cs, Switch as Bl, Steps as ds, Carousel as Ul } from "antd";
|
|
7
|
+
import { Label as Hn, Field as lo, Tree as mi, Reference as Wl, Selection as Io, Many2one as pi, Boolean as Yl, parseContext as rn, graphProcessor as hi, graphFieldUtils as Gl, Integer as co, SearchFieldTypes as nn, SearchFilter as gi, parseContextFields as ql, parseDomainFields as zl, parseGraph as yi, Container as Jl, Form as vi, transformDomainForChildWidget as Ao, Button as Kl } from "@gisce/ooui";
|
|
8
|
+
import Ql, { QuestionCircleOutlined as bi, ExclamationCircleOutlined as Er, LoadingOutlined as Ht, DownOutlined as Dr, CloseOutlined as jn, CheckOutlined as or, TranslationOutlined as wi, FolderOpenOutlined as Ro, DownloadOutlined as _o, ClearOutlined as sr, FormOutlined as Kn, TableOutlined as Eo, AreaChartOutlined as Xl, CalendarOutlined as Zl, FileAddOutlined as Or, CloseCircleFilled as ec, CopyOutlined as ir, FilterOutlined as xi, DeleteOutlined as Do, InfoCircleOutlined as Pr, ReloadOutlined as kr, ThunderboltOutlined as Mr, PrinterOutlined as Vr, SearchOutlined as ar, UpOutlined as tc, ExportOutlined as Si, EnterOutlined as Nr, PlusSquareOutlined as Ci, MinusSquareOutlined as Fi, StarFilled as nc, StarOutlined as rc, LeftOutlined as Ti, RightOutlined as Ii, ApiOutlined as oc, AlignLeftOutlined as sc, EyeOutlined as ic, LinkOutlined as us, SaveOutlined as ac, EditOutlined as Ai, PlusOutlined as lc, BorderOuterOutlined as cc, SettingOutlined as dc } from "@ant-design/icons";
|
|
9
9
|
import { Interweave as zt } from "interweave";
|
|
10
10
|
import Xe from "dayjs";
|
|
11
11
|
import { default as db } from "dayjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { useLocale as he, Icon as Ri, iconMapper as Pt, useNotification as
|
|
21
|
-
import
|
|
12
|
+
import uc from "dayjs/plugin/advancedFormat";
|
|
13
|
+
import fc from "dayjs/plugin/customParseFormat";
|
|
14
|
+
import mc from "dayjs/plugin/isoWeek";
|
|
15
|
+
import pc from "dayjs/plugin/timezone";
|
|
16
|
+
import hc from "dayjs/plugin/duration";
|
|
17
|
+
import gc from "dayjs/plugin/relativeTime";
|
|
18
|
+
import yc from "dayjs/plugin/weekday";
|
|
19
|
+
import vc from "dayjs/plugin/localeData";
|
|
20
|
+
import { useLocale as he, Icon as Ri, iconMapper as Pt, useNotification as bc, FormigaConfigProvider as wc, mergeStrings as xc, Dropdown as _i, DropdownButton as Kt, SkeletonPill as Sc, Many2OneSuffix as Cc, Many2OneSuffixModal as fs, PaginationHeader as Fc, FieldSet as Tc, ExportModal as Ic, HTMLPreview as Ac, FavouriteButton as Rc } from "@gisce/react-formiga-components";
|
|
21
|
+
import _c from "antd/lib/input/TextArea";
|
|
22
22
|
import Ft from "styled-components";
|
|
23
23
|
import Oo from "react-measure";
|
|
24
|
-
import
|
|
24
|
+
import Ec from "lodash/debounce";
|
|
25
25
|
import { nanoid as Po } from "nanoid";
|
|
26
26
|
import uo from "antd/lib/typography/Title";
|
|
27
27
|
import { useDeepCompareEffect as nt, useDeepCompareCallback as Mt, useDeepCompareMemo as Qn } from "use-deep-compare";
|
|
28
|
-
import { Line as
|
|
28
|
+
import { Line as Dc, Column as Oc, Pie as Pc } from "@ant-design/plots";
|
|
29
29
|
import { createRoot as Ei } from "react-dom/client";
|
|
30
|
-
import { fileTypeFromBuffer as
|
|
31
|
-
import { generate as
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { InfiniteTable as Di, Table as
|
|
30
|
+
import { fileTypeFromBuffer as kc } from "file-type-buffer-browser";
|
|
31
|
+
import { generate as Mc } from "@ant-design/colors";
|
|
32
|
+
import Vc from "antd/es/date-picker/locale/en_US";
|
|
33
|
+
import Nc from "antd/es/date-picker/locale/es_ES";
|
|
34
|
+
import $c from "antd/es/date-picker/locale/ca_ES";
|
|
35
|
+
import { InfiniteTable as Di, Table as Lc, PaginatedTable as Hc } from "@gisce/react-formiga-table";
|
|
36
36
|
import Oi from "antd/es/typography/Link";
|
|
37
37
|
import { isPresetStatusColor as Pi, isPresetColor as ki } from "antd/lib/_util/colors";
|
|
38
|
-
import
|
|
38
|
+
import jc from "validator";
|
|
39
39
|
import vr from "antd/es/alert/ErrorBoundary";
|
|
40
40
|
import "@gisce/react-formiga-table/style.css";
|
|
41
|
-
import { GridUi as
|
|
41
|
+
import { GridUi as Bc } from "@gisce/fiber-diagram";
|
|
42
42
|
import { useHotkeys as dn } from "react-hotkeys-hook";
|
|
43
|
-
import { IconExternalLink as
|
|
44
|
-
import
|
|
45
|
-
import
|
|
43
|
+
import { IconExternalLink as Uc, IconShare2 as Wc } from "@tabler/icons-react";
|
|
44
|
+
import Yc from "validator/lib/isURL";
|
|
45
|
+
import Gc from "validator/lib/isEmail";
|
|
46
46
|
import "react-grid-layout/css/styles.css";
|
|
47
|
-
import { WidthProvider as
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import { AnimatePresence as
|
|
53
|
-
import
|
|
54
|
-
const Qe = Zt.createContext(null),
|
|
47
|
+
import { WidthProvider as qc, Responsive as zc } from "react-grid-layout";
|
|
48
|
+
import Jc from "react-markdown";
|
|
49
|
+
import Kc from "remark-gfm";
|
|
50
|
+
import Qc from "@monaco-editor/react";
|
|
51
|
+
import Xc from "md5";
|
|
52
|
+
import { AnimatePresence as Zc, motion as ms } from "framer-motion";
|
|
53
|
+
import ed from "focus-trap-react";
|
|
54
|
+
const Qe = Zt.createContext(null), td = (e) => {
|
|
55
55
|
const {
|
|
56
56
|
children: t,
|
|
57
57
|
activeId: n,
|
|
@@ -144,10 +144,10 @@ const Qe = Zt.createContext(null), nd = (e) => {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
var ko = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
147
|
-
function
|
|
147
|
+
function nd(e) {
|
|
148
148
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var rd = { exports: {} };
|
|
151
151
|
(function(e, t) {
|
|
152
152
|
(function(n, r) {
|
|
153
153
|
e.exports = r(Xe);
|
|
@@ -160,8 +160,8 @@ var od = { exports: {} };
|
|
|
160
160
|
} };
|
|
161
161
|
return o.default.locale(i, null, !0), i;
|
|
162
162
|
});
|
|
163
|
-
})(
|
|
164
|
-
var
|
|
163
|
+
})(rd);
|
|
164
|
+
var od = { exports: {} };
|
|
165
165
|
(function(e, t) {
|
|
166
166
|
(function(n, r) {
|
|
167
167
|
e.exports = r();
|
|
@@ -171,8 +171,8 @@ var sd = { exports: {} };
|
|
|
171
171
|
return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
|
|
172
172
|
} };
|
|
173
173
|
});
|
|
174
|
-
})(
|
|
175
|
-
var
|
|
174
|
+
})(od);
|
|
175
|
+
var sd = { exports: {} };
|
|
176
176
|
(function(e, t) {
|
|
177
177
|
(function(n, r) {
|
|
178
178
|
e.exports = r(Xe);
|
|
@@ -185,7 +185,8 @@ var id = { exports: {} };
|
|
|
185
185
|
} };
|
|
186
186
|
return o.default.locale(i, null, !0), i;
|
|
187
187
|
});
|
|
188
|
-
})(
|
|
188
|
+
})(sd);
|
|
189
|
+
Xe.extend(uc);
|
|
189
190
|
Xe.extend(fc);
|
|
190
191
|
Xe.extend(mc);
|
|
191
192
|
Xe.extend(pc);
|
|
@@ -193,8 +194,7 @@ Xe.extend(hc);
|
|
|
193
194
|
Xe.extend(gc);
|
|
194
195
|
Xe.extend(yc);
|
|
195
196
|
Xe.extend(vc);
|
|
196
|
-
|
|
197
|
-
const { Text: ad, Title: ld } = an, { useToken: cd } = Ze, dd = {
|
|
197
|
+
const { Text: id, Title: ad } = an, { useToken: ld } = Ze, cd = {
|
|
198
198
|
left: "justify-start",
|
|
199
199
|
center: "justify-center",
|
|
200
200
|
right: "justify-end"
|
|
@@ -211,11 +211,11 @@ const { Text: ad, Title: ld } = an, { useToken: cd } = Ze, dd = {
|
|
|
211
211
|
v[t.fieldType]
|
|
212
212
|
) : "", t.humanDate ? u = u ? Xe(u).fromNow() : "" : (u = m, m = "");
|
|
213
213
|
}
|
|
214
|
-
const p = n || (a ? r ? "left" : "right" : "left"), { token: y } =
|
|
214
|
+
const p = n || (a ? r ? "left" : "right" : "left"), { token: y } = ld(), g = l === void 0 ? id : ad;
|
|
215
215
|
return /* @__PURE__ */ V(
|
|
216
216
|
"div",
|
|
217
217
|
{
|
|
218
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
218
|
+
className: `flex flex-row items-center pb-1 pt-1 ${cd[p]}`,
|
|
219
219
|
children: [
|
|
220
220
|
i && /* @__PURE__ */ s(Jt, { title: i, children: /* @__PURE__ */ s(
|
|
221
221
|
bi,
|
|
@@ -285,14 +285,14 @@ function He({
|
|
|
285
285
|
A()
|
|
286
286
|
] }))();
|
|
287
287
|
}
|
|
288
|
-
const { confirm:
|
|
288
|
+
const { confirm: dd } = It, Xt = ({
|
|
289
289
|
onOk: e,
|
|
290
290
|
confirmMessage: t,
|
|
291
291
|
okText: n,
|
|
292
292
|
cancelText: r,
|
|
293
293
|
t: o
|
|
294
294
|
}) => {
|
|
295
|
-
|
|
295
|
+
dd({
|
|
296
296
|
title: o("confirmation"),
|
|
297
297
|
icon: /* @__PURE__ */ s(Er, {}),
|
|
298
298
|
centered: !0,
|
|
@@ -344,7 +344,7 @@ const { confirm: ud } = It, Xt = ({
|
|
|
344
344
|
children: r
|
|
345
345
|
}
|
|
346
346
|
) });
|
|
347
|
-
},
|
|
347
|
+
}, ud = (e) => {
|
|
348
348
|
const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
|
|
349
349
|
id: o,
|
|
350
350
|
caption: i,
|
|
@@ -384,14 +384,14 @@ const { confirm: ud } = It, Xt = ({
|
|
|
384
384
|
return null;
|
|
385
385
|
if (t.buttons.length > 1)
|
|
386
386
|
return /* @__PURE__ */ s(He, { ooui: new lo({ defaultButton: n }), children: /* @__PURE__ */ V(
|
|
387
|
-
|
|
387
|
+
Vl.Button,
|
|
388
388
|
{
|
|
389
389
|
disabled: !a || m,
|
|
390
390
|
onClick: S,
|
|
391
391
|
icon: /* @__PURE__ */ s(Dr, {}),
|
|
392
392
|
type: f ? "primary" : void 0,
|
|
393
393
|
overlay: /* @__PURE__ */ s(
|
|
394
|
-
|
|
394
|
+
fd,
|
|
395
395
|
{
|
|
396
396
|
ooui: r,
|
|
397
397
|
executeButtonAction: p
|
|
@@ -405,7 +405,7 @@ const { confirm: ud } = It, Xt = ({
|
|
|
405
405
|
) });
|
|
406
406
|
if (n)
|
|
407
407
|
return /* @__PURE__ */ s(Mo, { ooui: n });
|
|
408
|
-
},
|
|
408
|
+
}, fd = (e) => {
|
|
409
409
|
const { t } = he(), { ooui: n, executeButtonAction: r } = e;
|
|
410
410
|
if (!n)
|
|
411
411
|
return null;
|
|
@@ -458,7 +458,7 @@ const { confirm: ud } = It, Xt = ({
|
|
|
458
458
|
);
|
|
459
459
|
});
|
|
460
460
|
return /* @__PURE__ */ s(as, { children: o });
|
|
461
|
-
},
|
|
461
|
+
}, md = 0.7;
|
|
462
462
|
function ps() {
|
|
463
463
|
const { innerWidth: e, innerHeight: t } = window;
|
|
464
464
|
return {
|
|
@@ -476,7 +476,7 @@ function Lr() {
|
|
|
476
476
|
}
|
|
477
477
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
478
478
|
}, []), {
|
|
479
|
-
modalWidth: e.width *
|
|
479
|
+
modalWidth: e.width * md,
|
|
480
480
|
modalHeight: e.height,
|
|
481
481
|
width: e.width,
|
|
482
482
|
height: e.height
|
|
@@ -519,7 +519,7 @@ const Vi = (e) => {
|
|
|
519
519
|
}, gt = ({
|
|
520
520
|
onButtonAction: e
|
|
521
521
|
} = {}) => {
|
|
522
|
-
const { open: t, destroy: n } =
|
|
522
|
+
const { open: t, destroy: n } = bc();
|
|
523
523
|
return {
|
|
524
524
|
showErrorNotification: (o) => {
|
|
525
525
|
if (typeof o == "object" && o !== null && "type" in o && "title" in o) {
|
|
@@ -630,7 +630,7 @@ const Vi = (e) => {
|
|
|
630
630
|
return d.map((w, R) => /* @__PURE__ */ V(Ge, { style: { paddingBottom: 20 }, children: [
|
|
631
631
|
/* @__PURE__ */ s(Ie, { flex: "8rem", style: { paddingRight: 10 }, children: w.name }),
|
|
632
632
|
/* @__PURE__ */ s(Ie, { flex: "auto", children: /* @__PURE__ */ s(
|
|
633
|
-
|
|
633
|
+
_c,
|
|
634
634
|
{
|
|
635
635
|
rows: 4,
|
|
636
636
|
value: y[w.code] || "",
|
|
@@ -711,18 +711,18 @@ function wt(e) {
|
|
|
711
711
|
const { tooltip: t, ...n } = e;
|
|
712
712
|
return /* @__PURE__ */ s(Jt, { title: t, children: /* @__PURE__ */ s(ze, { ...n }) });
|
|
713
713
|
}
|
|
714
|
-
const { info:
|
|
715
|
-
|
|
714
|
+
const { info: pd } = It, un = (e) => {
|
|
715
|
+
pd({
|
|
716
716
|
title: "",
|
|
717
717
|
centered: !0,
|
|
718
718
|
content: e
|
|
719
719
|
});
|
|
720
|
-
}, { useToken:
|
|
721
|
-
const { token: t } =
|
|
720
|
+
}, { useToken: hd } = Ze, Hr = tt(({ content: e }) => {
|
|
721
|
+
const { token: t } = hd();
|
|
722
722
|
return /* @__PURE__ */ s("div", { style: { color: t.colorTextDisabled }, children: e });
|
|
723
723
|
});
|
|
724
724
|
Hr.displayName = "AddonElement";
|
|
725
|
-
const { defaultAlgorithm:
|
|
725
|
+
const { defaultAlgorithm: gd, defaultSeed: yd } = Ze, Vo = gd(yd), Xn = tt(
|
|
726
726
|
({
|
|
727
727
|
component: e,
|
|
728
728
|
ooui: t,
|
|
@@ -773,7 +773,7 @@ const $i = (e) => {
|
|
|
773
773
|
[r]
|
|
774
774
|
);
|
|
775
775
|
if (l) {
|
|
776
|
-
const y = u ?
|
|
776
|
+
const y = u ? wd : xt.Password;
|
|
777
777
|
return /* @__PURE__ */ s(
|
|
778
778
|
Xn,
|
|
779
779
|
{
|
|
@@ -835,7 +835,7 @@ const Hi = tt(
|
|
|
835
835
|
u(!1), l == null || l({
|
|
836
836
|
forceRefresh: !0
|
|
837
837
|
});
|
|
838
|
-
}, [l]), S = y ?
|
|
838
|
+
}, [l]), S = y ? bd : vd;
|
|
839
839
|
return i ? /* @__PURE__ */ V(de, { children: [
|
|
840
840
|
/* @__PURE__ */ s("div", { onClick: v, children: /* @__PURE__ */ s(
|
|
841
841
|
Xn,
|
|
@@ -885,12 +885,12 @@ const Hi = tt(
|
|
|
885
885
|
}
|
|
886
886
|
);
|
|
887
887
|
Hi.displayName = "TranslatableCharComp";
|
|
888
|
-
const
|
|
888
|
+
const vd = Ft(xt)`
|
|
889
889
|
&.ant-input {
|
|
890
890
|
cursor: ${(e) => e.disabled ? "pointer" : "text"};
|
|
891
891
|
pointer-events: ${(e) => e.disabled ? "none" : "auto"};
|
|
892
892
|
}
|
|
893
|
-
`,
|
|
893
|
+
`, bd = Ft(xt)`
|
|
894
894
|
&.ant-input {
|
|
895
895
|
background-color: ${Vo.colorPrimaryBg};
|
|
896
896
|
cursor: pointer;
|
|
@@ -900,20 +900,20 @@ const bd = Ft(xt)`
|
|
|
900
900
|
&.ant-input {
|
|
901
901
|
background-color: ${Vo.colorPrimaryBg};
|
|
902
902
|
}
|
|
903
|
-
`,
|
|
903
|
+
`, wd = Ft(xt.Password)`
|
|
904
904
|
&.ant-input-affix-wrapper {
|
|
905
905
|
background-color: ${Vo.colorPrimaryBg};
|
|
906
906
|
}
|
|
907
|
-
`, { defaultAlgorithm:
|
|
907
|
+
`, { defaultAlgorithm: xd, defaultSeed: Sd } = Ze, Cd = xd(Sd), { Option: Fd } = hn, Bi = (e) => {
|
|
908
908
|
const { ooui: t } = e, { required: n } = t;
|
|
909
909
|
return /* @__PURE__ */ s(He, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(Ui, { ...e }) });
|
|
910
910
|
}, Ui = (e) => {
|
|
911
911
|
const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: i, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
|
|
912
912
|
const [u, m] = f;
|
|
913
|
-
return /* @__PURE__ */ s(
|
|
913
|
+
return /* @__PURE__ */ s(Fd, { value: u, children: m }, u);
|
|
914
914
|
});
|
|
915
915
|
return /* @__PURE__ */ s(
|
|
916
|
-
a && !i ?
|
|
916
|
+
a && !i ? Td : hn,
|
|
917
917
|
{
|
|
918
918
|
disabled: i,
|
|
919
919
|
onChange: n,
|
|
@@ -925,17 +925,17 @@ const bd = Ft(xt)`
|
|
|
925
925
|
children: c
|
|
926
926
|
}
|
|
927
927
|
);
|
|
928
|
-
},
|
|
928
|
+
}, Td = Ft(hn)`
|
|
929
929
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
930
|
-
background-color: ${
|
|
930
|
+
background-color: ${Cd.colorPrimaryBg};
|
|
931
931
|
}
|
|
932
|
-
`, { defaultAlgorithm:
|
|
932
|
+
`, { defaultAlgorithm: Id, defaultSeed: Ad } = Ze, hs = Id(Ad), Rd = (e) => {
|
|
933
933
|
const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
|
|
934
|
-
return /* @__PURE__ */ s(He, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(
|
|
935
|
-
},
|
|
934
|
+
return /* @__PURE__ */ s(He, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(_d, { id: n, readOnly: r, required: o }) });
|
|
935
|
+
}, _d = (e) => {
|
|
936
936
|
const { required: t, readOnly: n, ...r } = e;
|
|
937
|
-
return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ?
|
|
938
|
-
},
|
|
937
|
+
return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Ed : Jn, { disabled: n, ...r }) });
|
|
938
|
+
}, Ed = Ft(Jn)`
|
|
939
939
|
.ant-checkbox-inner {
|
|
940
940
|
background-color: ${hs.colorPrimaryBg};
|
|
941
941
|
}
|
|
@@ -944,12 +944,12 @@ const bd = Ft(xt)`
|
|
|
944
944
|
background-color: ${hs.colorPrimary};
|
|
945
945
|
}
|
|
946
946
|
`;
|
|
947
|
-
function
|
|
947
|
+
function Dd(e) {
|
|
948
948
|
const n = Buffer.from(e, "base64").length / 1e3;
|
|
949
949
|
return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
|
|
950
950
|
}
|
|
951
951
|
async function Mn(e) {
|
|
952
|
-
const t = await
|
|
952
|
+
const t = await kc(
|
|
953
953
|
Buffer.from(e, "base64")
|
|
954
954
|
);
|
|
955
955
|
return t || {
|
|
@@ -980,10 +980,10 @@ const No = (e) => {
|
|
|
980
980
|
}
|
|
981
981
|
);
|
|
982
982
|
}
|
|
983
|
-
},
|
|
983
|
+
}, Od = (e) => {
|
|
984
984
|
const { ooui: t } = e, { required: n, id: r } = t;
|
|
985
|
-
return Pt(r) ? /* @__PURE__ */ s(No, { value: r }) : /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(
|
|
986
|
-
},
|
|
985
|
+
return Pt(r) ? /* @__PURE__ */ s(No, { value: r }) : /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(Pd, { ooui: t }) });
|
|
986
|
+
}, Pd = (e) => {
|
|
987
987
|
const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, i = z(null), { t: a } = he(), l = (u) => {
|
|
988
988
|
r == null || r(u);
|
|
989
989
|
};
|
|
@@ -1049,10 +1049,10 @@ const No = (e) => {
|
|
|
1049
1049
|
)
|
|
1050
1050
|
] }) })
|
|
1051
1051
|
] });
|
|
1052
|
-
},
|
|
1052
|
+
}, kd = (e) => {
|
|
1053
1053
|
const { ooui: t } = e, { required: n } = t;
|
|
1054
|
-
return /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(
|
|
1055
|
-
},
|
|
1054
|
+
return /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(Md, {}) });
|
|
1055
|
+
}, Md = (e) => {
|
|
1056
1056
|
const { value: t, onChange: n } = e;
|
|
1057
1057
|
if (!t)
|
|
1058
1058
|
return null;
|
|
@@ -1062,7 +1062,7 @@ const No = (e) => {
|
|
|
1062
1062
|
return console.error(r), null;
|
|
1063
1063
|
}
|
|
1064
1064
|
return /* @__PURE__ */ s(
|
|
1065
|
-
|
|
1065
|
+
Bc,
|
|
1066
1066
|
{
|
|
1067
1067
|
inputJson: t,
|
|
1068
1068
|
onChange: (r) => {
|
|
@@ -1074,13 +1074,13 @@ const No = (e) => {
|
|
|
1074
1074
|
const t = e.arch, n = e.fields, r = new mi(n);
|
|
1075
1075
|
return r.parse(t), r;
|
|
1076
1076
|
};
|
|
1077
|
-
function
|
|
1077
|
+
function Vd(e) {
|
|
1078
1078
|
return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
|
|
1079
1079
|
}
|
|
1080
1080
|
const $o = (e, t, n, r = !1) => e.columns.map((i) => {
|
|
1081
1081
|
const a = i.type, l = i.id, c = t == null ? void 0 : t[a];
|
|
1082
1082
|
let d;
|
|
1083
|
-
return c ? d = (f) => c({ value: f, key: l, ooui: i, context: n }) : d = (f) =>
|
|
1083
|
+
return c ? d = (f) => c({ value: f, key: l, ooui: i, context: n }) : d = (f) => Vd(f) ? f : /* @__PURE__ */ V("p", { style: { color: "red" }, children: [
|
|
1084
1084
|
"Unsupported widget value for a Tree cell:",
|
|
1085
1085
|
/* @__PURE__ */ s("pre", { children: /* @__PURE__ */ V("strong", { children: [
|
|
1086
1086
|
"Type: ",
|
|
@@ -1107,11 +1107,11 @@ const $o = (e, t, n, r = !1) => e.columns.map((i) => {
|
|
|
1107
1107
|
o[i] = r[i];
|
|
1108
1108
|
else {
|
|
1109
1109
|
const a = e.findById(i);
|
|
1110
|
-
a instanceof
|
|
1110
|
+
a instanceof Wl || a instanceof Io ? o[i] = r[i] : a instanceof pi ? o[i] = r[i] && Array.isArray(r[i]) && r[i].length === 2 && {
|
|
1111
1111
|
model: a.relation,
|
|
1112
1112
|
id: r[i][0],
|
|
1113
1113
|
value: r[i][1]
|
|
1114
|
-
} : a instanceof
|
|
1114
|
+
} : a instanceof Yl ? o[i] = r[i] : a ? o[i] = r[i] === !1 ? "" : r[i] : o[i] = r[i];
|
|
1115
1115
|
}
|
|
1116
1116
|
}), o;
|
|
1117
1117
|
});
|
|
@@ -1143,7 +1143,7 @@ function On({
|
|
|
1143
1143
|
};
|
|
1144
1144
|
return e.sort(l);
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function Nd(e) {
|
|
1147
1147
|
for (const t in e)
|
|
1148
1148
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1149
1149
|
return !0;
|
|
@@ -1228,7 +1228,7 @@ const Lo = async (e) => {
|
|
|
1228
1228
|
}, qi = (e) => {
|
|
1229
1229
|
const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
|
|
1230
1230
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1231
|
-
},
|
|
1231
|
+
}, $d = (e, t) => {
|
|
1232
1232
|
const n = {};
|
|
1233
1233
|
return Object.keys(e).forEach((r) => {
|
|
1234
1234
|
var o;
|
|
@@ -1236,7 +1236,7 @@ const Lo = async (e) => {
|
|
|
1236
1236
|
(i) => i.operation !== "pendingRemove"
|
|
1237
1237
|
) : n[r] = e[r];
|
|
1238
1238
|
}), n;
|
|
1239
|
-
},
|
|
1239
|
+
}, Ld = ({
|
|
1240
1240
|
values: e,
|
|
1241
1241
|
fields: t
|
|
1242
1242
|
}) => {
|
|
@@ -1255,7 +1255,7 @@ const Lo = async (e) => {
|
|
|
1255
1255
|
n[r] = e[r];
|
|
1256
1256
|
}), n;
|
|
1257
1257
|
};
|
|
1258
|
-
function
|
|
1258
|
+
function Hd(e) {
|
|
1259
1259
|
const t = e.map((r) => r.id);
|
|
1260
1260
|
return e.filter((r, o) => {
|
|
1261
1261
|
const { id: i } = r;
|
|
@@ -1271,7 +1271,7 @@ function gs({
|
|
|
1271
1271
|
e[r] && (n[r] = e[r]);
|
|
1272
1272
|
}), n;
|
|
1273
1273
|
}
|
|
1274
|
-
const
|
|
1274
|
+
const jd = ({
|
|
1275
1275
|
allItems: e,
|
|
1276
1276
|
range: t
|
|
1277
1277
|
}) => {
|
|
@@ -1280,7 +1280,7 @@ const Bd = ({
|
|
|
1280
1280
|
return l && (l.operation === "original" || l.operation === "pendingLink");
|
|
1281
1281
|
}), i = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
|
|
1282
1282
|
return { realItemsIds: o, otherItems: i };
|
|
1283
|
-
},
|
|
1283
|
+
}, Bd = ({
|
|
1284
1284
|
finalResultIds: e,
|
|
1285
1285
|
fetchedItems: t,
|
|
1286
1286
|
otherItems: n
|
|
@@ -1294,15 +1294,15 @@ const Bd = ({
|
|
|
1294
1294
|
const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === i.id);
|
|
1295
1295
|
return a - l;
|
|
1296
1296
|
}), r;
|
|
1297
|
-
},
|
|
1297
|
+
}, Ud = async (e, t, n, r) => await L.getHandler().searchAllIds({
|
|
1298
1298
|
model: t,
|
|
1299
1299
|
params: [["id", "in", e]],
|
|
1300
1300
|
context: n,
|
|
1301
1301
|
order: r
|
|
1302
|
-
}),
|
|
1302
|
+
}), Wd = (e) => {
|
|
1303
1303
|
const t = {};
|
|
1304
1304
|
return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
|
|
1305
|
-
},
|
|
1305
|
+
}, Yd = async ({
|
|
1306
1306
|
relation: e,
|
|
1307
1307
|
ids: t,
|
|
1308
1308
|
treeView: n,
|
|
@@ -1323,7 +1323,7 @@ const Bd = ({
|
|
|
1323
1323
|
colors: Vn(a[1]),
|
|
1324
1324
|
status: br(a[1])
|
|
1325
1325
|
};
|
|
1326
|
-
},
|
|
1326
|
+
}, Gd = (e, t) => {
|
|
1327
1327
|
if (!t)
|
|
1328
1328
|
return e;
|
|
1329
1329
|
const n = {};
|
|
@@ -1337,7 +1337,7 @@ const Bd = ({
|
|
|
1337
1337
|
} else
|
|
1338
1338
|
n[r] = e[r];
|
|
1339
1339
|
}), n;
|
|
1340
|
-
}, _n = (e, t) =>
|
|
1340
|
+
}, _n = (e, t) => Gd(e, t), Jr = ({
|
|
1341
1341
|
source: e,
|
|
1342
1342
|
target: t,
|
|
1343
1343
|
fields: n
|
|
@@ -1370,7 +1370,7 @@ const Bd = ({
|
|
|
1370
1370
|
else
|
|
1371
1371
|
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]);
|
|
1372
1372
|
}), r;
|
|
1373
|
-
},
|
|
1373
|
+
}, qd = ({
|
|
1374
1374
|
changedFields: e,
|
|
1375
1375
|
formOoui: t,
|
|
1376
1376
|
types: n
|
|
@@ -1378,7 +1378,7 @@ const Bd = ({
|
|
|
1378
1378
|
var a;
|
|
1379
1379
|
const i = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1380
1380
|
return n.includes(i);
|
|
1381
|
-
}).some((o) => o === !0),
|
|
1381
|
+
}).some((o) => o === !0), zd = ({
|
|
1382
1382
|
fieldsDomain: e,
|
|
1383
1383
|
fields: t
|
|
1384
1384
|
}) => {
|
|
@@ -1386,12 +1386,12 @@ const Bd = ({
|
|
|
1386
1386
|
return Object.keys(t).forEach((r) => {
|
|
1387
1387
|
n[r] = t[r], e[r] && (n[r].domain = e[r]);
|
|
1388
1388
|
}), n;
|
|
1389
|
-
},
|
|
1389
|
+
}, Jd = (e) => {
|
|
1390
1390
|
const t = {};
|
|
1391
1391
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
|
|
1392
1392
|
(n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
|
|
1393
1393
|
}), t);
|
|
1394
|
-
},
|
|
1394
|
+
}, Kd = ({
|
|
1395
1395
|
onChangeFieldActionArgs: e,
|
|
1396
1396
|
values: t,
|
|
1397
1397
|
parentValues: n = {}
|
|
@@ -1441,7 +1441,7 @@ const gn = ({
|
|
|
1441
1441
|
const o = e[r];
|
|
1442
1442
|
t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
|
|
1443
1443
|
}), n;
|
|
1444
|
-
},
|
|
1444
|
+
}, Qd = (e) => e ? "success" : "error", lr = (e) => {
|
|
1445
1445
|
if (!e)
|
|
1446
1446
|
return;
|
|
1447
1447
|
let t = 0;
|
|
@@ -1455,12 +1455,12 @@ const gn = ({
|
|
|
1455
1455
|
}
|
|
1456
1456
|
return n;
|
|
1457
1457
|
}, zi = (e, t = 7) => ({
|
|
1458
|
-
text:
|
|
1458
|
+
text: Mc(e)[t],
|
|
1459
1459
|
background: `${e}40`
|
|
1460
|
-
}),
|
|
1460
|
+
}), Xd = (e, t) => e.replace(
|
|
1461
1461
|
/\{([^}]+)\}/g,
|
|
1462
1462
|
(n, r) => t[r] !== void 0 ? t[r] : n
|
|
1463
|
-
), vs = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""),
|
|
1463
|
+
), vs = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Zd = (e) => /* @__PURE__ */ V(
|
|
1464
1464
|
"div",
|
|
1465
1465
|
{
|
|
1466
1466
|
style: { display: "inline-block", cursor: "pointer" },
|
|
@@ -1473,7 +1473,7 @@ const gn = ({
|
|
|
1473
1473
|
] })
|
|
1474
1474
|
]
|
|
1475
1475
|
}
|
|
1476
|
-
),
|
|
1476
|
+
), eu = (e) => {
|
|
1477
1477
|
const { ooui: t } = e, { relation: n, context: r, views: o } = t, [i, a] = T(!0), [l, c] = T(), [d, f] = T(/* @__PURE__ */ new Map()), u = le(Qe), { getContext: m } = u || {};
|
|
1478
1478
|
nt(() => {
|
|
1479
1479
|
p();
|
|
@@ -1493,8 +1493,8 @@ const gn = ({
|
|
|
1493
1493
|
a(!1);
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
|
-
return i ? /* @__PURE__ */ s(et, {}) : l ? /* @__PURE__ */ s(Rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s(He, { type: "array", ...e, children: /* @__PURE__ */ s(
|
|
1497
|
-
},
|
|
1496
|
+
return i ? /* @__PURE__ */ s(et, {}) : l ? /* @__PURE__ */ s(Rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s(He, { type: "array", ...e, children: /* @__PURE__ */ s(tu, { ooui: t, views: d }) });
|
|
1497
|
+
}, tu = (e) => {
|
|
1498
1498
|
const { value: t, views: n, ooui: r, onChange: o } = e, { items: i = [] } = t || {}, [a, l] = T(!1), [c, d] = T(), [f, u] = T(!1), [m, h] = T(), {
|
|
1499
1499
|
relation: p,
|
|
1500
1500
|
context: y,
|
|
@@ -1546,7 +1546,7 @@ const gn = ({
|
|
|
1546
1546
|
var k, N, M, $;
|
|
1547
1547
|
const P = {
|
|
1548
1548
|
children: /* @__PURE__ */ s(
|
|
1549
|
-
|
|
1549
|
+
Zd,
|
|
1550
1550
|
{
|
|
1551
1551
|
title: (k = F.values) == null ? void 0 : k[b],
|
|
1552
1552
|
summary: (N = F.values) == null ? void 0 : N[v],
|
|
@@ -1583,7 +1583,7 @@ const gn = ({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
)
|
|
1585
1585
|
] });
|
|
1586
|
-
},
|
|
1586
|
+
}, nu = {
|
|
1587
1587
|
true: "Sí",
|
|
1588
1588
|
false: "No",
|
|
1589
1589
|
simple_search: "Búsqueda simple",
|
|
@@ -1699,7 +1699,7 @@ const gn = ({
|
|
|
1699
1699
|
changeToInfinite: "Canviar a llistat infinit",
|
|
1700
1700
|
changeToPaginated: "Canviar a llistat paginat",
|
|
1701
1701
|
enterFieldToFilter: "Introdueix el camp per filtrar..."
|
|
1702
|
-
},
|
|
1702
|
+
}, ru = {
|
|
1703
1703
|
true: "Yes",
|
|
1704
1704
|
false: "No",
|
|
1705
1705
|
simple_search: "Simple search",
|
|
@@ -1815,7 +1815,7 @@ const gn = ({
|
|
|
1815
1815
|
changeToInfinite: "Change to infinite list",
|
|
1816
1816
|
changeToPaginated: "Change to paginated list",
|
|
1817
1817
|
enterFieldToFilter: "Enter the field to filter..."
|
|
1818
|
-
},
|
|
1818
|
+
}, ou = {
|
|
1819
1819
|
true: "Sí",
|
|
1820
1820
|
false: "No",
|
|
1821
1821
|
simple_search: "Búsqueda simple",
|
|
@@ -1931,18 +1931,18 @@ const gn = ({
|
|
|
1931
1931
|
changeToInfinite: "Cambiar a listado infinito",
|
|
1932
1932
|
changeToPaginated: "Cambiar a listado paginado",
|
|
1933
1933
|
enterFieldToFilter: "Introduce el campo para filtrar..."
|
|
1934
|
-
},
|
|
1935
|
-
ca_ES:
|
|
1936
|
-
en_US:
|
|
1937
|
-
es_ES:
|
|
1938
|
-
}, Ji = 100,
|
|
1934
|
+
}, su = {
|
|
1935
|
+
ca_ES: nu,
|
|
1936
|
+
en_US: ru,
|
|
1937
|
+
es_ES: ou
|
|
1938
|
+
}, Ji = 100, iu = {
|
|
1939
1939
|
erpFeatures: {},
|
|
1940
1940
|
title: "Webclient",
|
|
1941
1941
|
globalValues: {},
|
|
1942
1942
|
rootContext: {},
|
|
1943
1943
|
devMode: !1,
|
|
1944
1944
|
treeMaxLimit: Ji
|
|
1945
|
-
}, Ki = Zt.createContext(
|
|
1945
|
+
}, Ki = Zt.createContext(iu), en = () => {
|
|
1946
1946
|
const e = le(Ki);
|
|
1947
1947
|
if (!e)
|
|
1948
1948
|
throw new Error(
|
|
@@ -1953,10 +1953,10 @@ const gn = ({
|
|
|
1953
1953
|
var n;
|
|
1954
1954
|
const { erpFeatures: t } = en();
|
|
1955
1955
|
return !!((n = t[e]) != null && n.isEnabled) || !1;
|
|
1956
|
-
},
|
|
1956
|
+
}, au = (e) => {
|
|
1957
1957
|
const { erpFeatures: t } = en();
|
|
1958
1958
|
return t[e];
|
|
1959
|
-
},
|
|
1959
|
+
}, lu = tt(
|
|
1960
1960
|
({
|
|
1961
1961
|
erpFeatures: e,
|
|
1962
1962
|
locale: t,
|
|
@@ -1980,16 +1980,16 @@ const gn = ({
|
|
|
1980
1980
|
[e, r, o, i, a, l]
|
|
1981
1981
|
);
|
|
1982
1982
|
return /* @__PURE__ */ s(Ki.Provider, { value: d, children: /* @__PURE__ */ s(
|
|
1983
|
-
|
|
1983
|
+
wc,
|
|
1984
1984
|
{
|
|
1985
1985
|
locale: t,
|
|
1986
|
-
localizedStrings:
|
|
1986
|
+
localizedStrings: xc(su, n),
|
|
1987
1987
|
children: c
|
|
1988
1988
|
}
|
|
1989
1989
|
) });
|
|
1990
1990
|
}
|
|
1991
1991
|
);
|
|
1992
|
-
|
|
1992
|
+
lu.displayName = "ConfigContextProvider";
|
|
1993
1993
|
async function Qi({
|
|
1994
1994
|
actionId: e,
|
|
1995
1995
|
rootContext: t = {},
|
|
@@ -2047,7 +2047,7 @@ async function Qi({
|
|
|
2047
2047
|
treeExpandable: p
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
2050
|
-
const
|
|
2050
|
+
const cu = (e) => {
|
|
2051
2051
|
const [t, n] = T(), [r, o] = T(!0), [i, a] = T(), [l, c] = T(), d = le(Qe), { getContext: f, getPlainValues: u, activeId: m } = d || {}, { globalValues: h, rootContext: p } = en(), y = Q(() => ({ ...f == null ? void 0 : f(), ...p }), [f, p]);
|
|
2052
2052
|
return { actionData: i, treeShortcut: l, loading: r, error: t, fetchData: async () => {
|
|
2053
2053
|
n(void 0), o(!0);
|
|
@@ -2107,7 +2107,7 @@ const du = (e) => {
|
|
|
2107
2107
|
},
|
|
2108
2108
|
children: /* @__PURE__ */ s(et, {})
|
|
2109
2109
|
}
|
|
2110
|
-
),
|
|
2110
|
+
), du = ({
|
|
2111
2111
|
error: e,
|
|
2112
2112
|
className: t
|
|
2113
2113
|
}) => {
|
|
@@ -2179,7 +2179,7 @@ const du = (e) => {
|
|
|
2179
2179
|
},
|
|
2180
2180
|
children: ({ measureRef: h }) => {
|
|
2181
2181
|
const p = u ? /* @__PURE__ */ s(
|
|
2182
|
-
|
|
2182
|
+
fu,
|
|
2183
2183
|
{
|
|
2184
2184
|
value: i,
|
|
2185
2185
|
total: a,
|
|
@@ -2192,7 +2192,7 @@ const du = (e) => {
|
|
|
2192
2192
|
suffix: f
|
|
2193
2193
|
}
|
|
2194
2194
|
) : /* @__PURE__ */ s(
|
|
2195
|
-
|
|
2195
|
+
uu,
|
|
2196
2196
|
{
|
|
2197
2197
|
value: i,
|
|
2198
2198
|
total: a,
|
|
@@ -2213,7 +2213,7 @@ function Zi(e, t) {
|
|
|
2213
2213
|
const r = document.createElement("canvas").getContext("2d");
|
|
2214
2214
|
return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function uu({
|
|
2217
2217
|
measureRef: e,
|
|
2218
2218
|
width: t,
|
|
2219
2219
|
height: n,
|
|
@@ -2256,7 +2256,7 @@ function fu({
|
|
|
2256
2256
|
}
|
|
2257
2257
|
);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function fu({
|
|
2260
2260
|
measureRef: e,
|
|
2261
2261
|
height: t,
|
|
2262
2262
|
width: n,
|
|
@@ -2320,7 +2320,7 @@ function mu({
|
|
|
2320
2320
|
}
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
const { getValueForOperator: bs } = hi,
|
|
2323
|
+
const { getValueForOperator: bs } = hi, mu = (e) => {
|
|
2324
2324
|
const {
|
|
2325
2325
|
model: t,
|
|
2326
2326
|
domain: n,
|
|
@@ -2452,7 +2452,7 @@ const { getValueForOperator: bs } = hi, pu = (e) => {
|
|
|
2452
2452
|
fixedHeight: m
|
|
2453
2453
|
}
|
|
2454
2454
|
);
|
|
2455
|
-
}, { processGraphData:
|
|
2455
|
+
}, { processGraphData: pu } = hi, { getFieldsToRetrieve: hu } = Gl, gu = (e) => {
|
|
2456
2456
|
const {
|
|
2457
2457
|
model: t,
|
|
2458
2458
|
ooui: n,
|
|
@@ -2467,10 +2467,10 @@ const { getValueForOperator: bs } = hi, pu = (e) => {
|
|
|
2467
2467
|
L.getHandler().readObjects
|
|
2468
2468
|
), [S] = qe(L.getHandler().search), x = D(async () => {
|
|
2469
2469
|
d(!0), u(void 0), v(n.type || "line");
|
|
2470
|
-
const A =
|
|
2470
|
+
const A = hu({ ooui: n });
|
|
2471
2471
|
let E, _;
|
|
2472
2472
|
try {
|
|
2473
|
-
({ values: E, fields: _ } = await
|
|
2473
|
+
({ values: E, fields: _ } = await vu({
|
|
2474
2474
|
model: t,
|
|
2475
2475
|
domain: r,
|
|
2476
2476
|
context: o,
|
|
@@ -2499,7 +2499,7 @@ const { getValueForOperator: bs } = hi, pu = (e) => {
|
|
|
2499
2499
|
fetchData: x
|
|
2500
2500
|
};
|
|
2501
2501
|
y(E);
|
|
2502
|
-
const w =
|
|
2502
|
+
const w = pu({
|
|
2503
2503
|
ooui: n,
|
|
2504
2504
|
values: E,
|
|
2505
2505
|
fields: _,
|
|
@@ -2539,7 +2539,7 @@ const { getValueForOperator: bs } = hi, pu = (e) => {
|
|
|
2539
2539
|
fetchData: x
|
|
2540
2540
|
};
|
|
2541
2541
|
};
|
|
2542
|
-
async function
|
|
2542
|
+
async function yu({
|
|
2543
2543
|
model: e,
|
|
2544
2544
|
context: t,
|
|
2545
2545
|
fields: n,
|
|
@@ -2551,7 +2551,7 @@ async function vu({
|
|
|
2551
2551
|
fields: n
|
|
2552
2552
|
});
|
|
2553
2553
|
}
|
|
2554
|
-
async function
|
|
2554
|
+
async function vu({
|
|
2555
2555
|
fields: e,
|
|
2556
2556
|
model: t,
|
|
2557
2557
|
domain: n,
|
|
@@ -2561,7 +2561,7 @@ async function bu({
|
|
|
2561
2561
|
manualIds: a,
|
|
2562
2562
|
methods: l
|
|
2563
2563
|
}) {
|
|
2564
|
-
const { getFields: c, readObjects: d, search: f } = l, u = await
|
|
2564
|
+
const { getFields: c, readObjects: d, search: f } = l, u = await yu({
|
|
2565
2565
|
model: t,
|
|
2566
2566
|
context: r,
|
|
2567
2567
|
fields: e,
|
|
@@ -2597,7 +2597,7 @@ const Kr = (e) => (t) => {
|
|
|
2597
2597
|
});
|
|
2598
2598
|
return { name: e === "pie" ? t.x : t.type, value: n };
|
|
2599
2599
|
}, pr = (e) => {
|
|
2600
|
-
if (typeof e == "string" &&
|
|
2600
|
+
if (typeof e == "string" && bu(e))
|
|
2601
2601
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
2602
2602
|
useGrouping: !0
|
|
2603
2603
|
});
|
|
@@ -2605,14 +2605,14 @@ const Kr = (e) => (t) => {
|
|
|
2605
2605
|
return e.toLocaleString("es-ES", {
|
|
2606
2606
|
useGrouping: !0
|
|
2607
2607
|
});
|
|
2608
|
-
if (
|
|
2609
|
-
const t =
|
|
2608
|
+
if (wu(e)) {
|
|
2609
|
+
const t = xu(e);
|
|
2610
2610
|
return t === null ? e : Xe(e, Fr.input[t]).format(
|
|
2611
2611
|
Fr.output[t]
|
|
2612
2612
|
);
|
|
2613
2613
|
} else
|
|
2614
2614
|
return e;
|
|
2615
|
-
},
|
|
2615
|
+
}, bu = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ea = (e) => typeof e == "number" && !isNaN(e), ws = {
|
|
2616
2616
|
default: {
|
|
2617
2617
|
padding: "auto",
|
|
2618
2618
|
xAxis: {
|
|
@@ -2687,7 +2687,7 @@ const Kr = (e) => (t) => {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
}
|
|
2689
2689
|
};
|
|
2690
|
-
function
|
|
2690
|
+
function wu(e) {
|
|
2691
2691
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
2692
2692
|
}
|
|
2693
2693
|
const Fr = {
|
|
@@ -2706,7 +2706,7 @@ const Fr = {
|
|
|
2706
2706
|
years: "YYYY"
|
|
2707
2707
|
}
|
|
2708
2708
|
};
|
|
2709
|
-
function
|
|
2709
|
+
function xu(e) {
|
|
2710
2710
|
for (const t in Fr.input)
|
|
2711
2711
|
if (Xe(
|
|
2712
2712
|
e,
|
|
@@ -2716,7 +2716,7 @@ function Su(e) {
|
|
|
2716
2716
|
return t;
|
|
2717
2717
|
return null;
|
|
2718
2718
|
}
|
|
2719
|
-
const
|
|
2719
|
+
const Su = {
|
|
2720
2720
|
inner: {
|
|
2721
2721
|
label: {
|
|
2722
2722
|
type: "inner",
|
|
@@ -2733,7 +2733,7 @@ const Cu = {
|
|
|
2733
2733
|
labelHeight: 28
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
|
-
},
|
|
2736
|
+
}, Cu = (e) => {
|
|
2737
2737
|
const t = e.reduce((c, d) => c + d.value, 0), r = e.map((c) => c.value / t * 100).map(
|
|
2738
2738
|
(c) => Math.round(c * 100) / 100
|
|
2739
2739
|
), o = r.reduce((c, d) => c + d, 0);
|
|
@@ -2749,11 +2749,11 @@ const Cu = {
|
|
|
2749
2749
|
x: c.x,
|
|
2750
2750
|
percent: l[d]
|
|
2751
2751
|
}));
|
|
2752
|
-
}, { Text: xs } = an,
|
|
2752
|
+
}, { Text: xs } = an, Fu = 400, Tu = tt(Dc), Iu = tt(Oc), Au = tt(Pc), Ru = {
|
|
2753
2753
|
line: Tu,
|
|
2754
2754
|
bar: Iu,
|
|
2755
2755
|
pie: Au
|
|
2756
|
-
},
|
|
2756
|
+
}, ta = ({
|
|
2757
2757
|
type: e,
|
|
2758
2758
|
data: t,
|
|
2759
2759
|
isGroup: n,
|
|
@@ -2770,7 +2770,7 @@ const Cu = {
|
|
|
2770
2770
|
return t.reduce((g, v) => g + v.value, 0);
|
|
2771
2771
|
}, [t, e]), d = Q(() => {
|
|
2772
2772
|
if (e === "pie")
|
|
2773
|
-
return
|
|
2773
|
+
return Cu(t);
|
|
2774
2774
|
}, [t, e]), f = D(
|
|
2775
2775
|
(y) => {
|
|
2776
2776
|
if (!d)
|
|
@@ -2843,7 +2843,7 @@ function _u(e) {
|
|
|
2843
2843
|
fixedHeight: c
|
|
2844
2844
|
} = e;
|
|
2845
2845
|
let d = { ...ws[t] };
|
|
2846
|
-
if (d || (d = { ...ws.default }), d.data = n, d.height = c, t === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...
|
|
2846
|
+
if (d || (d = { ...ws.default }), d.data = n, d.height = c, t === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...Su.inner }, d.legend.itemValue = i, d.label.content = a) : (d.xField = "x", d.yField = "value", d.seriesField = "type", d.isGroup = r, o && (d.isStack = !0, d.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
|
|
2847
2847
|
const f = l.valueOpts.min, u = l.valueOpts.max;
|
|
2848
2848
|
d.yAxis = {
|
|
2849
2849
|
min: f,
|
|
@@ -2861,7 +2861,7 @@ const Eu = ({
|
|
|
2861
2861
|
manualIds: i,
|
|
2862
2862
|
fixedHeight: a
|
|
2863
2863
|
}) => {
|
|
2864
|
-
const { t: l } = he(), { error: c, loading: d, values: f, type: u, evaluatedEntries: m, fetchData: h } =
|
|
2864
|
+
const { t: l } = he(), { error: c, loading: d, values: f, type: u, evaluatedEntries: m, fetchData: h } = gu({
|
|
2865
2865
|
model: t,
|
|
2866
2866
|
ooui: e,
|
|
2867
2867
|
limit: o,
|
|
@@ -2876,7 +2876,7 @@ const Eu = ({
|
|
|
2876
2876
|
return /* @__PURE__ */ s(cr, {});
|
|
2877
2877
|
const { data: p, isGroup: y, isStack: g, yAxisOpts: v } = f;
|
|
2878
2878
|
return c ? /* @__PURE__ */ s(Rt, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ s(
|
|
2879
|
-
|
|
2879
|
+
ta,
|
|
2880
2880
|
{
|
|
2881
2881
|
type: u,
|
|
2882
2882
|
data: p,
|
|
@@ -3000,8 +3000,8 @@ const Eu = ({
|
|
|
3000
3000
|
}, Qr = {
|
|
3001
3001
|
tree: /* @__PURE__ */ s(Eo, {}),
|
|
3002
3002
|
form: /* @__PURE__ */ s(Kn, {}),
|
|
3003
|
-
graph: /* @__PURE__ */ s(
|
|
3004
|
-
calendar: /* @__PURE__ */ s(
|
|
3003
|
+
graph: /* @__PURE__ */ s(Xl, {}),
|
|
3004
|
+
calendar: /* @__PURE__ */ s(Zl, {})
|
|
3005
3005
|
};
|
|
3006
3006
|
function Cs(e) {
|
|
3007
3007
|
return e ? (Qr == null ? void 0 : Qr[e.type]) || /* @__PURE__ */ s(Kn, {}) : /* @__PURE__ */ s(Kn, {});
|
|
@@ -3114,8 +3114,8 @@ function At(e) {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
);
|
|
3116
3116
|
}
|
|
3117
|
-
const
|
|
3118
|
-
function
|
|
3117
|
+
const na = (e) => /* @__PURE__ */ s(At, { ...e, type: "primary", danger: !0 });
|
|
3118
|
+
function ra(e) {
|
|
3119
3119
|
const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = le(
|
|
3120
3120
|
Dt
|
|
3121
3121
|
), { t: o } = he(), i = () => {
|
|
@@ -3142,7 +3142,7 @@ function oa(e) {
|
|
|
3142
3142
|
);
|
|
3143
3143
|
}
|
|
3144
3144
|
const { useToken: Hu } = Ze;
|
|
3145
|
-
function
|
|
3145
|
+
function oa(e) {
|
|
3146
3146
|
const { badgeNumber: t = 0, ...n } = e, { token: r } = Hu();
|
|
3147
3147
|
return /* @__PURE__ */ V("div", { style: { position: "relative" }, children: [
|
|
3148
3148
|
t > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
|
|
@@ -3227,7 +3227,7 @@ function ju(e) {
|
|
|
3227
3227
|
onChange: m,
|
|
3228
3228
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
3229
3229
|
suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Jt, { title: o("clear"), children: /* @__PURE__ */ s(
|
|
3230
|
-
|
|
3230
|
+
ec,
|
|
3231
3231
|
{
|
|
3232
3232
|
style: { color: "rgba(0,0,0,.45)" },
|
|
3233
3233
|
onClick: u
|
|
@@ -3374,7 +3374,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
|
|
|
3374
3374
|
return await S({ actionData: _, fields: w, values: R, context: C });
|
|
3375
3375
|
if (P === "ir.actions.act_url")
|
|
3376
3376
|
window.open(
|
|
3377
|
-
|
|
3377
|
+
Xd(_.url, { ...R, context: C }),
|
|
3378
3378
|
"_blank"
|
|
3379
3379
|
);
|
|
3380
3380
|
else
|
|
@@ -3587,7 +3587,7 @@ async function Wu({
|
|
|
3587
3587
|
}
|
|
3588
3588
|
return { views: i, initialView: a };
|
|
3589
3589
|
}
|
|
3590
|
-
const Yu = Vt(Uu),
|
|
3590
|
+
const Yu = Vt(Uu), sa = ({
|
|
3591
3591
|
selectedRowItems: e,
|
|
3592
3592
|
onRefreshParentValues: t
|
|
3593
3593
|
}) => {
|
|
@@ -3613,14 +3613,14 @@ const Yu = Vt(Uu), ia = ({
|
|
|
3613
3613
|
},
|
|
3614
3614
|
[r, e, t]
|
|
3615
3615
|
);
|
|
3616
|
-
},
|
|
3616
|
+
}, ia = ({
|
|
3617
3617
|
toolbar: e,
|
|
3618
3618
|
disabled: t = !1,
|
|
3619
3619
|
parentContext: n = {},
|
|
3620
3620
|
selectedRowItems: r = [],
|
|
3621
3621
|
onRefreshParentValues: o
|
|
3622
3622
|
}) => {
|
|
3623
|
-
const { t: i } = he(), a =
|
|
3623
|
+
const { t: i } = he(), a = sa({
|
|
3624
3624
|
selectedRowItems: r,
|
|
3625
3625
|
onRefreshParentValues: o
|
|
3626
3626
|
}), l = {
|
|
@@ -3657,7 +3657,7 @@ const Yu = Vt(Uu), ia = ({
|
|
|
3657
3657
|
};
|
|
3658
3658
|
}, pt = tt(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
|
|
3659
3659
|
pt.displayName = "ActionBarSeparator";
|
|
3660
|
-
const Gu = "action", qu = ["active_id", "active_ids", "id"], zu = ["target", "context", "domain", "fields"],
|
|
3660
|
+
const Gu = "action", qu = ["active_id", "active_ids", "id"], zu = ["target", "context", "domain", "fields"], aa = (e) => {
|
|
3661
3661
|
const t = new URL(window.location.origin);
|
|
3662
3662
|
t.pathname = Gu;
|
|
3663
3663
|
const n = {
|
|
@@ -3670,11 +3670,11 @@ const Gu = "action", qu = ["active_id", "active_ids", "id"], zu = ["target", "co
|
|
|
3670
3670
|
}, Ju = (e) => typeof e == "object" ? JSON.stringify(e) : e.toString(), Ku = (e) => {
|
|
3671
3671
|
const { context: t, domain: n, values: r } = e, o = {};
|
|
3672
3672
|
if (t && (typeof t == "string" ? t !== "{}" && (o.context = t) : typeof t == "object" && Object.keys(t).length > 0 && (o.context = t)), n && (Array.isArray(n) ? n.length > 0 && (o.domain = n) : n !== "false" && (o.domain = n)), (o.domain || o.context) && r && typeof r == "object" && Object.keys(r).length > 0) {
|
|
3673
|
-
const i =
|
|
3673
|
+
const i = la(r);
|
|
3674
3674
|
o.values = Object.keys(i).length > 0 ? i : void 0;
|
|
3675
3675
|
}
|
|
3676
3676
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
3677
|
-
},
|
|
3677
|
+
}, la = (e) => !e || typeof e != "object" ? {} : Object.fromEntries(
|
|
3678
3678
|
Object.entries(e).filter(([t]) => qu.includes(t))
|
|
3679
3679
|
);
|
|
3680
3680
|
function Br({ res_id: e, searchParams: t }) {
|
|
@@ -3707,7 +3707,7 @@ function Br({ res_id: e, searchParams: t }) {
|
|
|
3707
3707
|
...o !== void 0 && { limit: o },
|
|
3708
3708
|
...i && i > 1 && { currentPage: i },
|
|
3709
3709
|
order: a
|
|
3710
|
-
}, g =
|
|
3710
|
+
}, g = aa(y), { type: v } = l || {};
|
|
3711
3711
|
let b = !p;
|
|
3712
3712
|
v === "form" && (b = !p || !e);
|
|
3713
3713
|
const I = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ V(it.Compact, { style: { width: "100%" }, children: [
|
|
@@ -3742,16 +3742,16 @@ function Br({ res_id: e, searchParams: t }) {
|
|
|
3742
3742
|
title: d("openInNewTab"),
|
|
3743
3743
|
style: { height: 28 },
|
|
3744
3744
|
type: "text",
|
|
3745
|
-
icon: /* @__PURE__ */ s(
|
|
3745
|
+
icon: /* @__PURE__ */ s(Uc, { size: 18, color: c.colorTextSecondary }),
|
|
3746
3746
|
onClick: () => window.open(g, "_blank", "noopener,noreferrer")
|
|
3747
3747
|
}
|
|
3748
3748
|
)
|
|
3749
3749
|
] }) });
|
|
3750
|
-
return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s(
|
|
3750
|
+
return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s(Nl, { content: I, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
|
|
3751
3751
|
At,
|
|
3752
3752
|
{
|
|
3753
3753
|
style: { height: 28 },
|
|
3754
|
-
icon: /* @__PURE__ */ s(
|
|
3754
|
+
icon: /* @__PURE__ */ s(Wc, { size: 16, color: c.colorTextSecondary }),
|
|
3755
3755
|
disabled: b,
|
|
3756
3756
|
tooltip: d("share")
|
|
3757
3757
|
}
|
|
@@ -3796,13 +3796,13 @@ function Qu({
|
|
|
3796
3796
|
), { t: M } = he(), [$, H] = T(!1), O = z(!0), { showErrorNotification: B } = gt(), J = D(() => {
|
|
3797
3797
|
var ne;
|
|
3798
3798
|
(ne = h == null ? void 0 : h.current) == null || ne.refreshResults();
|
|
3799
|
-
}, [h]), { actionButtonProps: j, printButtonProps: ae } =
|
|
3799
|
+
}, [h]), { actionButtonProps: j, printButtonProps: ae } = ia({
|
|
3800
3800
|
toolbar: n,
|
|
3801
3801
|
disabled: x,
|
|
3802
3802
|
parentContext: e,
|
|
3803
3803
|
selectedRowItems: l,
|
|
3804
3804
|
onRefreshParentValues: J
|
|
3805
|
-
}), X =
|
|
3805
|
+
}), X = sa({
|
|
3806
3806
|
selectedRowItems: l,
|
|
3807
3807
|
onRefreshParentValues: J
|
|
3808
3808
|
}), ge = Q(
|
|
@@ -3949,7 +3949,7 @@ function Qu({
|
|
|
3949
3949
|
}
|
|
3950
3950
|
),
|
|
3951
3951
|
/* @__PURE__ */ s(
|
|
3952
|
-
|
|
3952
|
+
oa,
|
|
3953
3953
|
{
|
|
3954
3954
|
icon: /* @__PURE__ */ s(
|
|
3955
3955
|
xi,
|
|
@@ -3965,7 +3965,7 @@ function Qu({
|
|
|
3965
3965
|
}
|
|
3966
3966
|
),
|
|
3967
3967
|
/* @__PURE__ */ s(pt, {}),
|
|
3968
|
-
/* @__PURE__ */ s(
|
|
3968
|
+
/* @__PURE__ */ s(ra, { disabled: x }),
|
|
3969
3969
|
/* @__PURE__ */ s(
|
|
3970
3970
|
At,
|
|
3971
3971
|
{
|
|
@@ -3977,7 +3977,7 @@ function Qu({
|
|
|
3977
3977
|
}
|
|
3978
3978
|
),
|
|
3979
3979
|
/* @__PURE__ */ s(
|
|
3980
|
-
|
|
3980
|
+
na,
|
|
3981
3981
|
{
|
|
3982
3982
|
icon: /* @__PURE__ */ s(Do, {}),
|
|
3983
3983
|
tooltip: M("delete"),
|
|
@@ -4028,7 +4028,7 @@ function Qu({
|
|
|
4028
4028
|
Kt,
|
|
4029
4029
|
{
|
|
4030
4030
|
placement: "bottomRight",
|
|
4031
|
-
icon: /* @__PURE__ */ s(
|
|
4031
|
+
icon: /* @__PURE__ */ s(ca, {}),
|
|
4032
4032
|
onRetrieveData: async () => [
|
|
4033
4033
|
{
|
|
4034
4034
|
label: M("export"),
|
|
@@ -4067,8 +4067,8 @@ function Qu({
|
|
|
4067
4067
|
/* @__PURE__ */ s(Br, { searchParams: g })
|
|
4068
4068
|
] });
|
|
4069
4069
|
}
|
|
4070
|
-
const Xu = tt(Qu),
|
|
4071
|
-
|
|
4070
|
+
const Xu = tt(Qu), ca = tt(() => /* @__PURE__ */ s(
|
|
4071
|
+
Ql,
|
|
4072
4072
|
{
|
|
4073
4073
|
component: () => /* @__PURE__ */ V(
|
|
4074
4074
|
"svg",
|
|
@@ -4093,7 +4093,7 @@ const Xu = tt(Qu), da = tt(() => /* @__PURE__ */ s(
|
|
|
4093
4093
|
)
|
|
4094
4094
|
}
|
|
4095
4095
|
));
|
|
4096
|
-
|
|
4096
|
+
ca.displayName = "ExportIcon";
|
|
4097
4097
|
const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
4098
4098
|
title: e,
|
|
4099
4099
|
children: t,
|
|
@@ -4239,7 +4239,7 @@ const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
|
4239
4239
|
n
|
|
4240
4240
|
]);
|
|
4241
4241
|
return { loading: i, treeView: l, formView: d };
|
|
4242
|
-
},
|
|
4242
|
+
}, da = ({
|
|
4243
4243
|
elementRef: e,
|
|
4244
4244
|
offset: t = 0,
|
|
4245
4245
|
dependencies: n = []
|
|
@@ -4373,7 +4373,7 @@ const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
|
4373
4373
|
[l]
|
|
4374
4374
|
);
|
|
4375
4375
|
return { getColumnState: d, loading: n, updateColumnState: f, fetchColumnState: c };
|
|
4376
|
-
},
|
|
4376
|
+
}, ua = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Ts = ["sum", "count", "max", "min"], Yo = ({
|
|
4377
4377
|
ooui: e,
|
|
4378
4378
|
model: t,
|
|
4379
4379
|
domain: n,
|
|
@@ -4472,14 +4472,14 @@ const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
|
4472
4472
|
}
|
|
4473
4473
|
);
|
|
4474
4474
|
}, of = {
|
|
4475
|
-
en_US:
|
|
4476
|
-
es_ES:
|
|
4477
|
-
ca_ES:
|
|
4478
|
-
},
|
|
4475
|
+
en_US: Vc,
|
|
4476
|
+
es_ES: Nc,
|
|
4477
|
+
ca_ES: $c
|
|
4478
|
+
}, fa = () => {
|
|
4479
4479
|
const { locale: e } = he();
|
|
4480
4480
|
return of[e];
|
|
4481
|
-
},
|
|
4482
|
-
const { className: t = "w-full", layout: n = "vertical" } = e, r =
|
|
4481
|
+
}, ma = (e) => {
|
|
4482
|
+
const { className: t = "w-full", layout: n = "vertical" } = e, r = fa();
|
|
4483
4483
|
return /* @__PURE__ */ s(He, { ...e, layout: n, children: /* @__PURE__ */ s(
|
|
4484
4484
|
ai.RangePicker,
|
|
4485
4485
|
{
|
|
@@ -4581,7 +4581,7 @@ const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
|
4581
4581
|
autocompleteWithZeros: r !== void 0
|
|
4582
4582
|
});
|
|
4583
4583
|
return /* @__PURE__ */ s(
|
|
4584
|
-
|
|
4584
|
+
$l,
|
|
4585
4585
|
{
|
|
4586
4586
|
...o,
|
|
4587
4587
|
ref: i,
|
|
@@ -4621,7 +4621,7 @@ const { useToken: Zu } = Ze, { Title: ef, Text: hr } = an, Ur = ({
|
|
|
4621
4621
|
}
|
|
4622
4622
|
),
|
|
4623
4623
|
/* @__PURE__ */ V("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
4624
|
-
/* @__PURE__ */ s(Ge, { className: "w-full", children: /* @__PURE__ */ s(Ie, { span: 24, children: /* @__PURE__ */ s(
|
|
4624
|
+
/* @__PURE__ */ s(Ge, { className: "w-full", children: /* @__PURE__ */ s(Ie, { span: 24, children: /* @__PURE__ */ s(ma, { ...e, ooui: i[0], showLabel: !1 }) }) }),
|
|
4625
4625
|
/* @__PURE__ */ s(Ge, { className: "w-full", children: /* @__PURE__ */ s(Ie, { span: 24, children: /* @__PURE__ */ s(He, { ...e, ooui: i[1], showLabel: !1, children: /* @__PURE__ */ s(uf, {}) }) }) })
|
|
4626
4626
|
] })
|
|
4627
4627
|
] });
|
|
@@ -4800,7 +4800,7 @@ const { defaultAlgorithm: Sf, defaultSeed: Cf } = Ze, Ff = Sf(Cf), { Option: Tf
|
|
|
4800
4800
|
background-color: ${Ff.colorPrimaryBg};
|
|
4801
4801
|
}
|
|
4802
4802
|
`;
|
|
4803
|
-
function
|
|
4803
|
+
function pa(e) {
|
|
4804
4804
|
const { field: t } = e;
|
|
4805
4805
|
t.readOnly = !1, t.required = !1;
|
|
4806
4806
|
const { t: n } = he();
|
|
@@ -4822,7 +4822,7 @@ function ha(e) {
|
|
|
4822
4822
|
case nn.integer:
|
|
4823
4823
|
return /* @__PURE__ */ s(xf, { ooui: t, showLabel: !0 });
|
|
4824
4824
|
case nn.date:
|
|
4825
|
-
return /* @__PURE__ */ s(
|
|
4825
|
+
return /* @__PURE__ */ s(ma, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
4826
4826
|
case nn.datetime:
|
|
4827
4827
|
return /* @__PURE__ */ s(df, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
4828
4828
|
case nn.selection:
|
|
@@ -4875,7 +4875,7 @@ const { useToken: _f } = Ze, { Title: Ef } = an, { Header: Df, Content: Of, Foot
|
|
|
4875
4875
|
padding: "0 16px",
|
|
4876
4876
|
borderBottom: "1px solid #f0f0f0"
|
|
4877
4877
|
};
|
|
4878
|
-
return /* @__PURE__ */ s(
|
|
4878
|
+
return /* @__PURE__ */ s(Zc, { children: e && /* @__PURE__ */ V(de, { children: [
|
|
4879
4879
|
/* @__PURE__ */ s(
|
|
4880
4880
|
ms.div,
|
|
4881
4881
|
{
|
|
@@ -4896,7 +4896,7 @@ const { useToken: _f } = Ze, { Title: Ef } = an, { Header: Df, Content: Of, Foot
|
|
|
4896
4896
|
}
|
|
4897
4897
|
),
|
|
4898
4898
|
/* @__PURE__ */ s(
|
|
4899
|
-
|
|
4899
|
+
ed,
|
|
4900
4900
|
{
|
|
4901
4901
|
active: e,
|
|
4902
4902
|
focusTrapOptions: {
|
|
@@ -4968,7 +4968,7 @@ const { useToken: _f } = Ze, { Title: Ef } = an, { Header: Df, Content: Of, Foot
|
|
|
4968
4968
|
)
|
|
4969
4969
|
] }) });
|
|
4970
4970
|
};
|
|
4971
|
-
var Is = Object.prototype.toString,
|
|
4971
|
+
var Is = Object.prototype.toString, ha = function(t) {
|
|
4972
4972
|
var n = Is.call(t), r = n === "[object Arguments]";
|
|
4973
4973
|
return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Is.call(t.callee) === "[object Function]"), r;
|
|
4974
4974
|
}, Zr, As;
|
|
@@ -4978,7 +4978,7 @@ function Mf() {
|
|
|
4978
4978
|
As = 1;
|
|
4979
4979
|
var e;
|
|
4980
4980
|
if (!Object.keys) {
|
|
4981
|
-
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r =
|
|
4981
|
+
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = ha, o = Object.prototype.propertyIsEnumerable, i = !o.call({ toString: null }, "toString"), a = o.call(function() {
|
|
4982
4982
|
}, "prototype"), l = [
|
|
4983
4983
|
"toString",
|
|
4984
4984
|
"toLocaleString",
|
|
@@ -5060,7 +5060,7 @@ function Mf() {
|
|
|
5060
5060
|
}
|
|
5061
5061
|
return Zr = e, Zr;
|
|
5062
5062
|
}
|
|
5063
|
-
var Vf = Array.prototype.slice, Nf =
|
|
5063
|
+
var Vf = Array.prototype.slice, Nf = ha, Rs = Object.keys, yr = Rs ? function(t) {
|
|
5064
5064
|
return Rs(t);
|
|
5065
5065
|
} : Mf(), _s = Object.keys;
|
|
5066
5066
|
yr.shim = function() {
|
|
@@ -5076,7 +5076,7 @@ yr.shim = function() {
|
|
|
5076
5076
|
Object.keys = yr;
|
|
5077
5077
|
return Object.keys || yr;
|
|
5078
5078
|
};
|
|
5079
|
-
var
|
|
5079
|
+
var ga = yr, ya = function() {
|
|
5080
5080
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
5081
5081
|
return !1;
|
|
5082
5082
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -5099,9 +5099,9 @@ var ya = yr, va = function() {
|
|
|
5099
5099
|
return !1;
|
|
5100
5100
|
}
|
|
5101
5101
|
return !0;
|
|
5102
|
-
}, $f =
|
|
5102
|
+
}, $f = ya, zo = function() {
|
|
5103
5103
|
return $f() && !!Symbol.toStringTag;
|
|
5104
|
-
}, Es = typeof Symbol < "u" && Symbol, Lf =
|
|
5104
|
+
}, Es = typeof Symbol < "u" && Symbol, Lf = ya, Hf = function() {
|
|
5105
5105
|
return typeof Es != "function" || typeof Symbol != "function" || typeof Es("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Lf();
|
|
5106
5106
|
}, Ds = {
|
|
5107
5107
|
foo: {}
|
|
@@ -5131,11 +5131,11 @@ var ya = yr, va = function() {
|
|
|
5131
5131
|
d.prototype = n.prototype, o.prototype = new d(), d.prototype = null;
|
|
5132
5132
|
}
|
|
5133
5133
|
return o;
|
|
5134
|
-
}, qf = Gf,
|
|
5134
|
+
}, qf = Gf, va = Function.prototype.bind || qf, Os = {}.hasOwnProperty, to = Function.prototype.call, zf = to.bind ? to.bind(Os) : function(e, t) {
|
|
5135
5135
|
return to.call(Os, e, t);
|
|
5136
|
-
}, Be, $n = SyntaxError,
|
|
5136
|
+
}, Be, $n = SyntaxError, ba = Function, Pn = TypeError, no = function(e) {
|
|
5137
5137
|
try {
|
|
5138
|
-
return
|
|
5138
|
+
return ba('"use strict"; return (' + e + ").constructor;")();
|
|
5139
5139
|
} catch {
|
|
5140
5140
|
}
|
|
5141
5141
|
}, fn = Object.getOwnPropertyDescriptor;
|
|
@@ -5187,7 +5187,7 @@ var ro = function() {
|
|
|
5187
5187
|
"%Float32Array%": typeof Float32Array > "u" ? Be : Float32Array,
|
|
5188
5188
|
"%Float64Array%": typeof Float64Array > "u" ? Be : Float64Array,
|
|
5189
5189
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Be : FinalizationRegistry,
|
|
5190
|
-
"%Function%":
|
|
5190
|
+
"%Function%": ba,
|
|
5191
5191
|
"%GeneratorFunction%": En,
|
|
5192
5192
|
"%Int8Array%": typeof Int8Array > "u" ? Be : Int8Array,
|
|
5193
5193
|
"%Int16Array%": typeof Int16Array > "u" ? Be : Int16Array,
|
|
@@ -5303,7 +5303,7 @@ var Zf = function e(t) {
|
|
|
5303
5303
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
5304
5304
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5305
5305
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5306
|
-
}, dr =
|
|
5306
|
+
}, dr = va, Tr = zf, em = dr.call(Function.call, Array.prototype.concat), tm = dr.call(Function.apply, Array.prototype.splice), ks = dr.call(Function.call, String.prototype.replace), Ir = dr.call(Function.call, String.prototype.slice), nm = dr.call(Function.call, RegExp.prototype.exec), rm = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, om = /\\(\\)?/g, sm = function(t) {
|
|
5307
5307
|
var n = Ir(t, 0, 1), r = Ir(t, -1);
|
|
5308
5308
|
if (n === "%" && r !== "%")
|
|
5309
5309
|
throw new $n("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -5356,9 +5356,9 @@ var Zf = function e(t) {
|
|
|
5356
5356
|
}
|
|
5357
5357
|
}
|
|
5358
5358
|
return l;
|
|
5359
|
-
},
|
|
5359
|
+
}, wa = { exports: {} };
|
|
5360
5360
|
(function(e) {
|
|
5361
|
-
var t =
|
|
5361
|
+
var t = va, n = ur, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || t.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
|
|
5362
5362
|
if (l)
|
|
5363
5363
|
try {
|
|
5364
5364
|
l({}, "a", { value: 1 });
|
|
@@ -5381,19 +5381,19 @@ var Zf = function e(t) {
|
|
|
5381
5381
|
return i(t, r, arguments);
|
|
5382
5382
|
};
|
|
5383
5383
|
l ? l(e.exports, "apply", { value: d }) : e.exports.apply = d;
|
|
5384
|
-
})(
|
|
5385
|
-
var Jo =
|
|
5386
|
-
var r =
|
|
5387
|
-
return typeof r == "function" && am(t, ".prototype.") > -1 ?
|
|
5388
|
-
}, lm = zo(), cm =
|
|
5384
|
+
})(wa);
|
|
5385
|
+
var Jo = wa.exports, xa = ur, Sa = Jo, am = Sa(xa("String.prototype.indexOf")), Ca = function(t, n) {
|
|
5386
|
+
var r = xa(t, !!n);
|
|
5387
|
+
return typeof r == "function" && am(t, ".prototype.") > -1 ? Sa(r) : r;
|
|
5388
|
+
}, lm = zo(), cm = Ca, mo = cm("Object.prototype.toString"), Wr = function(t) {
|
|
5389
5389
|
return lm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : mo(t) === "[object Arguments]";
|
|
5390
|
-
},
|
|
5390
|
+
}, Fa = function(t) {
|
|
5391
5391
|
return Wr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && mo(t) !== "[object Array]" && mo(t.callee) === "[object Function]";
|
|
5392
5392
|
}, dm = function() {
|
|
5393
5393
|
return Wr(arguments);
|
|
5394
5394
|
}();
|
|
5395
|
-
Wr.isLegacyArguments =
|
|
5396
|
-
var um = dm ? Wr :
|
|
5395
|
+
Wr.isLegacyArguments = Fa;
|
|
5396
|
+
var um = dm ? Wr : Fa, fm = ur, po = fm("%Object.defineProperty%", !0), ho = function() {
|
|
5397
5397
|
if (po)
|
|
5398
5398
|
try {
|
|
5399
5399
|
return po({}, "a", { value: 1 }), !0;
|
|
@@ -5425,7 +5425,7 @@ function mm() {
|
|
|
5425
5425
|
}
|
|
5426
5426
|
return oo = t, oo;
|
|
5427
5427
|
}
|
|
5428
|
-
var pm = Ko(), Qo = ur, Vs = pm && Qo("%Object.defineProperty%", !0), hm = Qo("%SyntaxError%"), An = Qo("%TypeError%"), Ns = mm(),
|
|
5428
|
+
var pm = Ko(), Qo = ur, Vs = pm && Qo("%Object.defineProperty%", !0), hm = Qo("%SyntaxError%"), An = Qo("%TypeError%"), Ns = mm(), Ta = function(t, n, r) {
|
|
5429
5429
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
5430
5430
|
throw new An("`obj` must be an object or a function`");
|
|
5431
5431
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -5450,9 +5450,9 @@ var pm = Ko(), Qo = ur, Vs = pm && Qo("%Object.defineProperty%", !0), hm = Qo("%
|
|
|
5450
5450
|
t[n] = r;
|
|
5451
5451
|
else
|
|
5452
5452
|
throw new hm("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
5453
|
-
}, gm =
|
|
5453
|
+
}, gm = ga, ym = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", vm = Object.prototype.toString, bm = Array.prototype.concat, $s = Ta, wm = function(e) {
|
|
5454
5454
|
return typeof e == "function" && vm.call(e) === "[object Function]";
|
|
5455
|
-
},
|
|
5455
|
+
}, Ia = Ko(), xm = function(e, t, n, r) {
|
|
5456
5456
|
if (t in e) {
|
|
5457
5457
|
if (r === !0) {
|
|
5458
5458
|
if (e[t] === n)
|
|
@@ -5460,36 +5460,36 @@ var pm = Ko(), Qo = ur, Vs = pm && Qo("%Object.defineProperty%", !0), hm = Qo("%
|
|
|
5460
5460
|
} else if (!wm(r) || !r())
|
|
5461
5461
|
return;
|
|
5462
5462
|
}
|
|
5463
|
-
|
|
5464
|
-
},
|
|
5463
|
+
Ia ? $s(e, t, n, !0) : $s(e, t, n);
|
|
5464
|
+
}, Aa = function(e, t) {
|
|
5465
5465
|
var n = arguments.length > 2 ? arguments[2] : {}, r = gm(t);
|
|
5466
5466
|
ym && (r = bm.call(r, Object.getOwnPropertySymbols(t)));
|
|
5467
5467
|
for (var o = 0; o < r.length; o += 1)
|
|
5468
5468
|
xm(e, r[o], t[r[o]], n[r[o]]);
|
|
5469
5469
|
};
|
|
5470
|
-
|
|
5471
|
-
var fr =
|
|
5470
|
+
Aa.supportsDescriptors = !!Ia;
|
|
5471
|
+
var fr = Aa, Ls = function(e) {
|
|
5472
5472
|
return e !== e;
|
|
5473
|
-
},
|
|
5473
|
+
}, Ra = function(t, n) {
|
|
5474
5474
|
return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Ls(t) && Ls(n));
|
|
5475
|
-
}, Sm =
|
|
5475
|
+
}, Sm = Ra, _a = function() {
|
|
5476
5476
|
return typeof Object.is == "function" ? Object.is : Sm;
|
|
5477
|
-
}, Cm =
|
|
5477
|
+
}, Cm = _a, Fm = fr, Tm = function() {
|
|
5478
5478
|
var t = Cm();
|
|
5479
5479
|
return Fm(Object, { is: t }, {
|
|
5480
5480
|
is: function() {
|
|
5481
5481
|
return Object.is !== t;
|
|
5482
5482
|
}
|
|
5483
5483
|
}), t;
|
|
5484
|
-
}, Im = fr, Am = Jo, Rm =
|
|
5485
|
-
Im(
|
|
5486
|
-
getPolyfill:
|
|
5484
|
+
}, Im = fr, Am = Jo, Rm = Ra, Ea = _a, _m = Tm, Da = Am(Ea(), Object);
|
|
5485
|
+
Im(Da, {
|
|
5486
|
+
getPolyfill: Ea,
|
|
5487
5487
|
implementation: Rm,
|
|
5488
5488
|
shim: _m
|
|
5489
5489
|
});
|
|
5490
|
-
var Em =
|
|
5491
|
-
if (
|
|
5492
|
-
|
|
5490
|
+
var Em = Da, go = Ca, Oa = zo(), Pa, ka, yo, vo;
|
|
5491
|
+
if (Oa) {
|
|
5492
|
+
Pa = go("Object.prototype.hasOwnProperty"), ka = go("RegExp.prototype.exec"), yo = {};
|
|
5493
5493
|
var so = function() {
|
|
5494
5494
|
throw yo;
|
|
5495
5495
|
};
|
|
@@ -5498,14 +5498,14 @@ if (Pa) {
|
|
|
5498
5498
|
valueOf: so
|
|
5499
5499
|
}, typeof Symbol.toPrimitive == "symbol" && (vo[Symbol.toPrimitive] = so);
|
|
5500
5500
|
}
|
|
5501
|
-
var Dm = go("Object.prototype.toString"), Om = Object.getOwnPropertyDescriptor, Pm = "[object RegExp]", km =
|
|
5501
|
+
var Dm = go("Object.prototype.toString"), Om = Object.getOwnPropertyDescriptor, Pm = "[object RegExp]", km = Oa ? function(t) {
|
|
5502
5502
|
if (!t || typeof t != "object")
|
|
5503
5503
|
return !1;
|
|
5504
|
-
var n = Om(t, "lastIndex"), r = n &&
|
|
5504
|
+
var n = Om(t, "lastIndex"), r = n && Pa(n, "value");
|
|
5505
5505
|
if (!r)
|
|
5506
5506
|
return !1;
|
|
5507
5507
|
try {
|
|
5508
|
-
|
|
5508
|
+
ka(t, vo);
|
|
5509
5509
|
} catch (o) {
|
|
5510
5510
|
return o === yo;
|
|
5511
5511
|
}
|
|
@@ -5533,17 +5533,17 @@ tr.boundFunctionsHaveNames = function() {
|
|
|
5533
5533
|
return tr() && typeof Mm == "function" && (function() {
|
|
5534
5534
|
}).bind().name !== "";
|
|
5535
5535
|
};
|
|
5536
|
-
var Vm = tr, Hs =
|
|
5536
|
+
var Vm = tr, Hs = Ta, Nm = Ko(), $m = Vm.functionsHaveConfigurableNames(), Lm = TypeError, Hm = function(t, n) {
|
|
5537
5537
|
if (typeof t != "function")
|
|
5538
5538
|
throw new Lm("`fn` is not a function");
|
|
5539
5539
|
var r = arguments.length > 2 && !!arguments[2];
|
|
5540
5540
|
return (!r || $m) && (Nm ? Hs(t, "name", n, !0, !0) : Hs(t, "name", n)), t;
|
|
5541
|
-
}, jm = Hm, Bm = Object, Um = TypeError,
|
|
5541
|
+
}, jm = Hm, Bm = Object, Um = TypeError, Ma = jm(function() {
|
|
5542
5542
|
if (this != null && this !== Bm(this))
|
|
5543
5543
|
throw new Um("RegExp.prototype.flags getter called on non-object");
|
|
5544
5544
|
var t = "";
|
|
5545
5545
|
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;
|
|
5546
|
-
}, "get flags", !0), Wm =
|
|
5546
|
+
}, "get flags", !0), Wm = Ma, Ym = fr.supportsDescriptors, Gm = Object.getOwnPropertyDescriptor, Va = function() {
|
|
5547
5547
|
if (Ym && /a/mig.flags === "gim") {
|
|
5548
5548
|
var t = Gm(RegExp.prototype, "flags");
|
|
5549
5549
|
if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
|
|
@@ -5561,7 +5561,7 @@ var Vm = tr, Hs = Ia, Nm = Ko(), $m = Vm.functionsHaveConfigurableNames(), Lm =
|
|
|
5561
5561
|
}
|
|
5562
5562
|
}
|
|
5563
5563
|
return Wm;
|
|
5564
|
-
}, qm = fr.supportsDescriptors, zm =
|
|
5564
|
+
}, qm = fr.supportsDescriptors, zm = Va, Jm = Object.getOwnPropertyDescriptor, Km = Object.defineProperty, Qm = TypeError, js = Object.getPrototypeOf, Xm = /a/, Zm = function() {
|
|
5565
5565
|
if (!qm || !js)
|
|
5566
5566
|
throw new Qm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
5567
5567
|
var t = zm(), n = js(Xm), r = Jm(n, "flags");
|
|
@@ -5570,13 +5570,13 @@ var Vm = tr, Hs = Ia, Nm = Ko(), $m = Vm.functionsHaveConfigurableNames(), Lm =
|
|
|
5570
5570
|
enumerable: !1,
|
|
5571
5571
|
get: t
|
|
5572
5572
|
}), t;
|
|
5573
|
-
}, ep = fr, tp = Jo, np =
|
|
5574
|
-
ep(
|
|
5575
|
-
getPolyfill:
|
|
5573
|
+
}, ep = fr, tp = Jo, np = Ma, Na = Va, rp = Zm, $a = tp(Na());
|
|
5574
|
+
ep($a, {
|
|
5575
|
+
getPolyfill: Na,
|
|
5576
5576
|
implementation: np,
|
|
5577
5577
|
shim: rp
|
|
5578
5578
|
});
|
|
5579
|
-
var op =
|
|
5579
|
+
var op = $a, sp = Date.prototype.getDay, ip = function(t) {
|
|
5580
5580
|
try {
|
|
5581
5581
|
return sp.call(t), !0;
|
|
5582
5582
|
} catch {
|
|
@@ -5584,8 +5584,8 @@ var op = La, sp = Date.prototype.getDay, ip = function(t) {
|
|
|
5584
5584
|
}
|
|
5585
5585
|
}, ap = Object.prototype.toString, lp = "[object Date]", cp = zo(), dp = function(t) {
|
|
5586
5586
|
return typeof t != "object" || t === null ? !1 : cp ? ip(t) : ap.call(t) === lp;
|
|
5587
|
-
}, Bs =
|
|
5588
|
-
function
|
|
5587
|
+
}, Bs = ga, Us = um, Ws = Em, Ys = km, Gs = op, qs = dp, zs = Date.prototype.getTime;
|
|
5588
|
+
function La(e, t, n) {
|
|
5589
5589
|
var r = n || {};
|
|
5590
5590
|
return (r.strict ? Ws(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Ws(e, t) : e == t : up(e, t, r);
|
|
5591
5591
|
}
|
|
@@ -5630,12 +5630,12 @@ function up(e, t, n) {
|
|
|
5630
5630
|
if (d[r] != f[r])
|
|
5631
5631
|
return !1;
|
|
5632
5632
|
for (r = d.length - 1; r >= 0; r--)
|
|
5633
|
-
if (o = d[r], !
|
|
5633
|
+
if (o = d[r], !La(e[o], t[o], n))
|
|
5634
5634
|
return !1;
|
|
5635
5635
|
return !0;
|
|
5636
5636
|
}
|
|
5637
|
-
var fp =
|
|
5638
|
-
const Xo = /* @__PURE__ */
|
|
5637
|
+
var fp = La;
|
|
5638
|
+
const Xo = /* @__PURE__ */ nd(fp), Ha = Vt(
|
|
5639
5639
|
(e, t) => {
|
|
5640
5640
|
const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = e, [l] = kt.useForm(), [c, d] = T({}), [f, u] = T(""), { t: m } = he();
|
|
5641
5641
|
ce(() => {
|
|
@@ -5683,7 +5683,7 @@ const Xo = /* @__PURE__ */ rd(fp), ja = Vt(
|
|
|
5683
5683
|
gap: "8px"
|
|
5684
5684
|
},
|
|
5685
5685
|
children: [
|
|
5686
|
-
/* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(
|
|
5686
|
+
/* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(pa, { field: E }, `sf-${A}`) }),
|
|
5687
5687
|
_ && /* @__PURE__ */ s(
|
|
5688
5688
|
ze,
|
|
5689
5689
|
{
|
|
@@ -5775,8 +5775,8 @@ const Xo = /* @__PURE__ */ rd(fp), ja = Vt(
|
|
|
5775
5775
|
) });
|
|
5776
5776
|
}
|
|
5777
5777
|
);
|
|
5778
|
-
|
|
5779
|
-
const
|
|
5778
|
+
Ha.displayName = "SideSearchFilterComponent";
|
|
5779
|
+
const ja = (e) => {
|
|
5780
5780
|
var I;
|
|
5781
5781
|
const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: i, searchValues: a } = e, l = z(), { t: c } = he(), [d, f] = T(), u = z(null), [m, h] = T();
|
|
5782
5782
|
ce(() => {
|
|
@@ -5850,7 +5850,7 @@ const Ba = (e) => {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
),
|
|
5852
5852
|
children: n && /* @__PURE__ */ s(
|
|
5853
|
-
|
|
5853
|
+
Ha,
|
|
5854
5854
|
{
|
|
5855
5855
|
ref: u,
|
|
5856
5856
|
searchFields: d,
|
|
@@ -5922,7 +5922,7 @@ function hp(e) {
|
|
|
5922
5922
|
} = e, { t: a } = he();
|
|
5923
5923
|
return /* @__PURE__ */ V(Ge, { children: [
|
|
5924
5924
|
!i && /* @__PURE__ */ s(Ie, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ V("a", { className: "text-xs", onClick: t, children: [
|
|
5925
|
-
n ? /* @__PURE__ */ s(
|
|
5925
|
+
n ? /* @__PURE__ */ s(tc, { className: "pr-1" }) : /* @__PURE__ */ s(Dr, { className: "pr-1" }),
|
|
5926
5926
|
a(n ? "simple_search" : "advanced_search")
|
|
5927
5927
|
] }) }),
|
|
5928
5928
|
/* @__PURE__ */ V(Ie, { span: i ? 24 : 12, className: "text-right pb-2", children: [
|
|
@@ -5985,7 +5985,7 @@ function Yr(e) {
|
|
|
5985
5985
|
if (!g)
|
|
5986
5986
|
return;
|
|
5987
5987
|
const C = b ? g : p, F = C == null ? void 0 : C.rows;
|
|
5988
|
-
return F == null ? void 0 : F.map((P, k) => /* @__PURE__ */ s(Ge, { children: P.map((N, M) => /* @__PURE__ */ s(Ie, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(
|
|
5988
|
+
return F == null ? void 0 : F.map((P, k) => /* @__PURE__ */ s(Ge, { children: P.map((N, M) => /* @__PURE__ */ s(Ie, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(pa, { field: N }) }, M)) }, k));
|
|
5989
5989
|
};
|
|
5990
5990
|
nt(() => {
|
|
5991
5991
|
I(!1), S.current = new gi(n, t), S.current.parse(), y(S.current._simpleSearchContainer), v(S.current._advancedSearchContainer);
|
|
@@ -6062,7 +6062,7 @@ function Yr(e) {
|
|
|
6062
6062
|
}
|
|
6063
6063
|
);
|
|
6064
6064
|
}
|
|
6065
|
-
function
|
|
6065
|
+
function Ba({
|
|
6066
6066
|
useLocalState: e = !1
|
|
6067
6067
|
}) {
|
|
6068
6068
|
const t = yh() && !e, n = bn(), [r, o] = T(!1), [i, a] = T(!1), [l, c] = T([]), [d, f] = T(0), [u, m] = T(void 0), [h, p] = T([]), [y, g] = T({}), [v, b] = T(), [I, S] = T([]), [x, A] = T(), [E, _] = T(0), [w, R] = T(), [C, F] = T(1), [P, k] = T(pn), [N, M] = T(Ct);
|
|
@@ -6158,7 +6158,7 @@ const Zo = () => {
|
|
|
6158
6158
|
};
|
|
6159
6159
|
}, []), e;
|
|
6160
6160
|
};
|
|
6161
|
-
function
|
|
6161
|
+
function Ua({
|
|
6162
6162
|
tableRef: e
|
|
6163
6163
|
} = {}) {
|
|
6164
6164
|
const t = z({}), n = z(), r = D(() => {
|
|
@@ -6197,7 +6197,7 @@ const nr = ({
|
|
|
6197
6197
|
return e != null && e.colors && (n.colors = e.colors), e != null && e.status && (n.status = e.status), n;
|
|
6198
6198
|
}
|
|
6199
6199
|
return {};
|
|
6200
|
-
}, vp = 3 * 1e3,
|
|
6200
|
+
}, vp = 3 * 1e3, Wa = (e) => {
|
|
6201
6201
|
const {
|
|
6202
6202
|
tableRef: t,
|
|
6203
6203
|
model: n,
|
|
@@ -6307,7 +6307,7 @@ const nr = ({
|
|
|
6307
6307
|
S.current = {};
|
|
6308
6308
|
}, []);
|
|
6309
6309
|
return { pause: _, resume: w, clear: R };
|
|
6310
|
-
}, bp = 0.5 * 1e3,
|
|
6310
|
+
}, bp = 0.5 * 1e3, Ya = ({
|
|
6311
6311
|
model: e,
|
|
6312
6312
|
treeView: t,
|
|
6313
6313
|
tableRef: n,
|
|
@@ -6461,7 +6461,7 @@ const nr = ({
|
|
|
6461
6461
|
resume: $,
|
|
6462
6462
|
onHasFunctionFieldsToParseConditions: R
|
|
6463
6463
|
};
|
|
6464
|
-
},
|
|
6464
|
+
}, Ga = ({
|
|
6465
6465
|
onFilterSearchClick: e
|
|
6466
6466
|
}) => {
|
|
6467
6467
|
const { t } = he(), n = (a) => {
|
|
@@ -6546,7 +6546,7 @@ const nr = ({
|
|
|
6546
6546
|
record: t,
|
|
6547
6547
|
column: n,
|
|
6548
6548
|
isFieldLoading: r
|
|
6549
|
-
}) => r != null && r(t, n.key) ? /* @__PURE__ */ s(
|
|
6549
|
+
}) => r != null && r(t, n.key) ? /* @__PURE__ */ s(Sc, {}) : n.render(e, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
|
|
6550
6550
|
);
|
|
6551
6551
|
es.displayName = "CellRenderer";
|
|
6552
6552
|
function Sp(e) {
|
|
@@ -6563,7 +6563,7 @@ function Sp(e) {
|
|
|
6563
6563
|
return 0;
|
|
6564
6564
|
}
|
|
6565
6565
|
}
|
|
6566
|
-
function
|
|
6566
|
+
function qa(e) {
|
|
6567
6567
|
if (e === void 0)
|
|
6568
6568
|
return;
|
|
6569
6569
|
let t, n = Math.floor(Math.abs(e)), r = Math.round(Math.abs(e) % 1 * 100) / 100;
|
|
@@ -6579,7 +6579,7 @@ function za(e) {
|
|
|
6579
6579
|
});
|
|
6580
6580
|
return t = `${o}:${i}`, e < 0 && (t = "-" + t), t;
|
|
6581
6581
|
}
|
|
6582
|
-
const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(
|
|
6582
|
+
const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(za, {}) }), za = ({ value: e }) => {
|
|
6583
6583
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
6584
6584
|
minimumIntegerDigits: 1,
|
|
6585
6585
|
maximumFractionDigits: 4,
|
|
@@ -6594,7 +6594,7 @@ const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ja,
|
|
|
6594
6594
|
align-items: center;
|
|
6595
6595
|
width: 100%;
|
|
6596
6596
|
min-width: 0;
|
|
6597
|
-
`, Tp = Ft(
|
|
6597
|
+
`, Tp = Ft(Ll)`
|
|
6598
6598
|
flex: 1;
|
|
6599
6599
|
min-width: 0;
|
|
6600
6600
|
.ant-progress-outer {
|
|
@@ -6654,7 +6654,7 @@ const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ja,
|
|
|
6654
6654
|
}, [l, e]);
|
|
6655
6655
|
return /* @__PURE__ */ V(Ln, { children: [
|
|
6656
6656
|
/* @__PURE__ */ s(
|
|
6657
|
-
|
|
6657
|
+
Cc,
|
|
6658
6658
|
{
|
|
6659
6659
|
onRetrieveData: f,
|
|
6660
6660
|
onItemClick: (u) => {
|
|
@@ -6784,7 +6784,7 @@ const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ja,
|
|
|
6784
6784
|
const i = t[o];
|
|
6785
6785
|
return (i == null ? void 0 : i.flatMap((a) => {
|
|
6786
6786
|
const l = [];
|
|
6787
|
-
return "context" in a && l.push(...
|
|
6787
|
+
return "context" in a && l.push(...ql(a.context)), "domain" in a && l.push(...zl(a.domain)), l;
|
|
6788
6788
|
})) || [];
|
|
6789
6789
|
});
|
|
6790
6790
|
return [
|
|
@@ -6833,12 +6833,12 @@ const Cp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ja,
|
|
|
6833
6833
|
function Op(e) {
|
|
6834
6834
|
return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
|
|
6835
6835
|
}
|
|
6836
|
-
const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(
|
|
6836
|
+
const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ja, { ...e }) }), Ja = (e) => {
|
|
6837
6837
|
const { t } = he(), [n, r] = qe(
|
|
6838
6838
|
L.getHandler().readObjects
|
|
6839
6839
|
), { getFieldValue: o } = le(Qe) || {}, { ooui: i, value: a } = e, [l, c] = T("default");
|
|
6840
6840
|
let d = a, f = lr, u = a;
|
|
6841
|
-
i.selectionValues.size ? d = i.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], d = a[1]) : i.fieldType === "boolean" && (d = a ? Op(i.label) : `${t("not")} ${i.label.toLowerCase()}`, f =
|
|
6841
|
+
i.selectionValues.size ? d = i.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], d = a[1]) : i.fieldType === "boolean" && (d = a ? Op(i.label) : `${t("not")} ${i.label.toLowerCase()}`, f = Qd);
|
|
6842
6842
|
const m = D(async () => {
|
|
6843
6843
|
var h, p;
|
|
6844
6844
|
if (i.colorField)
|
|
@@ -6874,7 +6874,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
6874
6874
|
}, t = r.background;
|
|
6875
6875
|
}
|
|
6876
6876
|
return /* @__PURE__ */ s(Fo, { ...e, style: n, color: t, children: e.children });
|
|
6877
|
-
},
|
|
6877
|
+
}, Ka = ({
|
|
6878
6878
|
emails: e,
|
|
6879
6879
|
handleClose: t
|
|
6880
6880
|
}) => {
|
|
@@ -6885,7 +6885,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
6885
6885
|
Fo,
|
|
6886
6886
|
{
|
|
6887
6887
|
closable: !!t,
|
|
6888
|
-
color:
|
|
6888
|
+
color: jc.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
|
|
6889
6889
|
onClose: () => t && t(r),
|
|
6890
6890
|
children: r
|
|
6891
6891
|
},
|
|
@@ -6950,7 +6950,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
6950
6950
|
},
|
|
6951
6951
|
children: [
|
|
6952
6952
|
/* @__PURE__ */ s(
|
|
6953
|
-
|
|
6953
|
+
Ka,
|
|
6954
6954
|
{
|
|
6955
6955
|
emails: i,
|
|
6956
6956
|
handleClose: r ? void 0 : y
|
|
@@ -6994,7 +6994,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
6994
6994
|
}
|
|
6995
6995
|
}, Rn = (e) => new RegExp(
|
|
6996
6996
|
"^" + e.replace(/DD/g, "\\d{2}").replace(/MM/g, "\\d{2}").replace(/YYYY/g, "\\d{4}").replace(/HH/g, "\\d{2}").replace(/mm/g, "\\d{2}").replace(/ss/g, "\\d{2}").replace(/\//g, "\\/").replace(/\s/g, "\\s") + "$"
|
|
6997
|
-
),
|
|
6997
|
+
), Qa = () => ({
|
|
6998
6998
|
day: Rn("DD"),
|
|
6999
6999
|
dayMonth: Rn("DD/MM"),
|
|
7000
7000
|
fullDate: Rn("DD/MM/YYYY"),
|
|
@@ -7002,7 +7002,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7002
7002
|
withMinutes: Rn("DD/MM/YYYY HH:mm"),
|
|
7003
7003
|
withSeconds: Rn("DD/MM/YYYY HH:mm:ss")
|
|
7004
7004
|
}), Mp = (e) => {
|
|
7005
|
-
const { currentValue: t, now: n, mode: r, showTime: o, onChange: i } = e, a =
|
|
7005
|
+
const { currentValue: t, now: n, mode: r, showTime: o, onChange: i } = e, a = Qa();
|
|
7006
7006
|
if (!t || t.trim() === "") {
|
|
7007
7007
|
i(n.format(ht[r].dateInternalFormat));
|
|
7008
7008
|
return;
|
|
@@ -7034,7 +7034,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7034
7034
|
}, Vp = (e, t) => {
|
|
7035
7035
|
if (!e)
|
|
7036
7036
|
return !0;
|
|
7037
|
-
const n =
|
|
7037
|
+
const n = Qa();
|
|
7038
7038
|
return n.day.test(e) || n.dayMonth.test(e) || n.fullDate.test(e) || t && (n.fullDate.test(e) || n.withHours.test(e) || n.withMinutes.test(e));
|
|
7039
7039
|
}, vn = Zt.createContext(
|
|
7040
7040
|
null
|
|
@@ -7059,7 +7059,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7059
7059
|
children: e
|
|
7060
7060
|
}
|
|
7061
7061
|
);
|
|
7062
|
-
},
|
|
7062
|
+
}, Xa = () => le(vn), $p = ({
|
|
7063
7063
|
value: e
|
|
7064
7064
|
}) => Q(
|
|
7065
7065
|
() => /* @__PURE__ */ s(
|
|
@@ -7077,8 +7077,8 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7077
7077
|
[e]
|
|
7078
7078
|
), Lp = ({
|
|
7079
7079
|
value: e
|
|
7080
|
-
}) => Q(() => /* @__PURE__ */ s(
|
|
7081
|
-
const { treeType: t } = bn(), { treeType: n } =
|
|
7080
|
+
}) => Q(() => /* @__PURE__ */ s(Ka, { emails: e }), [e]), Hp = ({ value: e }) => Q(() => /* @__PURE__ */ s(_p, { m2oField: e }), [e]), jp = ({ value: e }) => {
|
|
7081
|
+
const { treeType: t } = bn(), { treeType: n } = Xa() || {}, r = (n || t) === "infinite";
|
|
7082
7082
|
return Q(() => {
|
|
7083
7083
|
const o = /* @__PURE__ */ s(
|
|
7084
7084
|
zt,
|
|
@@ -7149,7 +7149,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7149
7149
|
return /* @__PURE__ */ s(de, { children: `( ${t} )` });
|
|
7150
7150
|
}, [e]), Yp = ({
|
|
7151
7151
|
value: e
|
|
7152
|
-
}) => Q(() => /* @__PURE__ */ s(
|
|
7152
|
+
}) => Q(() => /* @__PURE__ */ s(za, { value: e }), [e]), Gp = ({ value: e }) => Q(() => /* @__PURE__ */ s(de, { children: qa(e) }), [e]), Zs = ({ value: e }) => Q(
|
|
7153
7153
|
() => /* @__PURE__ */ s("div", { style: { textAlign: "right" }, children: e }),
|
|
7154
7154
|
[e]
|
|
7155
7155
|
), qp = ({ value: e }) => Q(
|
|
@@ -7168,7 +7168,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7168
7168
|
key: t,
|
|
7169
7169
|
ooui: n,
|
|
7170
7170
|
context: r
|
|
7171
|
-
}) => Q(() => /* @__PURE__ */ s(
|
|
7171
|
+
}) => Q(() => /* @__PURE__ */ s(Ja, { ooui: n, value: e }), [n, e]), Kp = ({
|
|
7172
7172
|
value: e,
|
|
7173
7173
|
key: t,
|
|
7174
7174
|
ooui: n,
|
|
@@ -7262,7 +7262,7 @@ const Pp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ka,
|
|
|
7262
7262
|
email: Lp,
|
|
7263
7263
|
colorPicker: zp,
|
|
7264
7264
|
char: Up
|
|
7265
|
-
},
|
|
7265
|
+
}, Za = (e, t) => {
|
|
7266
7266
|
const { t: n } = he(), r = ln(
|
|
7267
7267
|
Bt.FEATURE_MANY2ONE_SORT
|
|
7268
7268
|
), o = Qn(() => {
|
|
@@ -7301,7 +7301,7 @@ function nh(e, t) {
|
|
|
7301
7301
|
nameSearch: u,
|
|
7302
7302
|
filterType: m = "side",
|
|
7303
7303
|
onChangeTreeType: h
|
|
7304
|
-
} = e, p = z(null), y = z([]), g = z(!1), { showErrorNotification: v } = gt(), [b, I] = T(), [S, x] = T(!1), { t: A } = he(), E = z(null), _ =
|
|
7304
|
+
} = e, p = z(null), y = z([]), g = z(!1), { showErrorNotification: v } = gt(), [b, I] = T(), [S, x] = T(!1), { t: A } = he(), E = z(null), _ = da({
|
|
7305
7305
|
elementRef: E,
|
|
7306
7306
|
offset: eh
|
|
7307
7307
|
}), { treeView: w, formView: R, loading: C } = Uo({
|
|
@@ -7330,7 +7330,7 @@ function nh(e, t) {
|
|
|
7330
7330
|
isActive: ee,
|
|
7331
7331
|
order: ue,
|
|
7332
7332
|
setOrder: oe
|
|
7333
|
-
} =
|
|
7333
|
+
} = Ba({ useLocalState: !c }), W = u || ae, te = z(W), ne = z(!1), Z = z(), ve = z(), Oe = z(!1);
|
|
7334
7334
|
ce(() => {
|
|
7335
7335
|
var we, Le;
|
|
7336
7336
|
W !== void 0 && te.current === void 0 || typeof W == "string" && typeof te.current == "string" && W !== te.current ? (ne.current = !!W, O == null || O([]), j == null || j({}), (we = p.current) == null || we.unselectAll()) : W === void 0 && te.current !== void 0 && (ne.current = !1, (Le = p.current) == null || Le.unselectAll()), te.current = W;
|
|
@@ -7343,9 +7343,9 @@ function nh(e, t) {
|
|
|
7343
7343
|
statusForResults: fe,
|
|
7344
7344
|
updateAttributes: Fe,
|
|
7345
7345
|
clearAttributes: Ae
|
|
7346
|
-
} =
|
|
7346
|
+
} = Ua({
|
|
7347
7347
|
tableRef: p
|
|
7348
|
-
}), { clear: ke } =
|
|
7348
|
+
}), { clear: ke } = Wa({
|
|
7349
7349
|
model: n,
|
|
7350
7350
|
tableRef: p,
|
|
7351
7351
|
autorefreshableFields: Se == null ? void 0 : Se.autorefreshableFields,
|
|
@@ -7360,7 +7360,7 @@ function nh(e, t) {
|
|
|
7360
7360
|
refresh: be,
|
|
7361
7361
|
addRecordsToCheckFunctionFields: We,
|
|
7362
7362
|
onHasFunctionFieldsToParseConditions: ye
|
|
7363
|
-
} =
|
|
7363
|
+
} = Ya({
|
|
7364
7364
|
model: n,
|
|
7365
7365
|
treeView: w,
|
|
7366
7366
|
tableRef: p,
|
|
@@ -7369,7 +7369,7 @@ function nh(e, t) {
|
|
|
7369
7369
|
treeOoui: Se,
|
|
7370
7370
|
updateAttributes: Fe,
|
|
7371
7371
|
results: re
|
|
7372
|
-
}), { columns: Ve, strings: Re } =
|
|
7372
|
+
}), { columns: Ve, strings: Re } = Za(Se, d), je = Q(() => {
|
|
7373
7373
|
if (Ve)
|
|
7374
7374
|
return Ve.map((we) => ({
|
|
7375
7375
|
...we,
|
|
@@ -7385,7 +7385,7 @@ function nh(e, t) {
|
|
|
7385
7385
|
}));
|
|
7386
7386
|
}, [Ve, Ue]), Me = Q(() => {
|
|
7387
7387
|
if (!C)
|
|
7388
|
-
return
|
|
7388
|
+
return ua({
|
|
7389
7389
|
treeViewId: w == null ? void 0 : w.view_id,
|
|
7390
7390
|
model: n
|
|
7391
7391
|
});
|
|
@@ -7764,7 +7764,7 @@ function nh(e, t) {
|
|
|
7764
7764
|
}
|
|
7765
7765
|
),
|
|
7766
7766
|
m === "side" && /* @__PURE__ */ s(
|
|
7767
|
-
|
|
7767
|
+
ja,
|
|
7768
7768
|
{
|
|
7769
7769
|
...Fn,
|
|
7770
7770
|
onClose: jt,
|
|
@@ -7777,7 +7777,7 @@ function nh(e, t) {
|
|
|
7777
7777
|
selectedRowKeys: De,
|
|
7778
7778
|
totalRows: b,
|
|
7779
7779
|
customMiddleComponent: Tn && /* @__PURE__ */ s(
|
|
7780
|
-
|
|
7780
|
+
Ga,
|
|
7781
7781
|
{
|
|
7782
7782
|
onFilterSearchClick: () => k == null ? void 0 : k(!0)
|
|
7783
7783
|
}
|
|
@@ -7787,7 +7787,7 @@ function nh(e, t) {
|
|
|
7787
7787
|
/* @__PURE__ */ s("div", { ref: E, style: Sn, children: C || _e ? /* @__PURE__ */ s(et, {}) : vt })
|
|
7788
7788
|
] });
|
|
7789
7789
|
}
|
|
7790
|
-
const
|
|
7790
|
+
const el = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
7791
7791
|
const r = document.createElement("canvas").getContext("2d");
|
|
7792
7792
|
r.font = t;
|
|
7793
7793
|
const o = r.measureText(e);
|
|
@@ -7847,7 +7847,7 @@ const tl = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
|
7847
7847
|
o.toString()
|
|
7848
7848
|
) + " " });
|
|
7849
7849
|
return /* @__PURE__ */ s(oh, { children: o > n ? u : f });
|
|
7850
|
-
},
|
|
7850
|
+
}, tl = Vt(
|
|
7851
7851
|
(e, t) => {
|
|
7852
7852
|
var Y;
|
|
7853
7853
|
const {
|
|
@@ -7913,7 +7913,7 @@ const tl = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
|
7913
7913
|
).length;
|
|
7914
7914
|
return c ? null : o === void 0 ? /* @__PURE__ */ s(et, { className: "pb-4" }) : /* @__PURE__ */ V(Ge, { align: "bottom", className: "pb-4", children: [
|
|
7915
7915
|
/* @__PURE__ */ s(Ie, { span: E ? 8 : 12, children: /* @__PURE__ */ s(
|
|
7916
|
-
|
|
7916
|
+
Hl,
|
|
7917
7917
|
{
|
|
7918
7918
|
total: o,
|
|
7919
7919
|
pageSize: N.current === 0 ? o : N.current,
|
|
@@ -7963,7 +7963,7 @@ const tl = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
|
7963
7963
|
return F === null || !re || ((Y = re == null ? void 0 : re.columns) == null ? void 0 : Y.length) === 0 ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : /* @__PURE__ */ V(vr, { children: [
|
|
7964
7964
|
X,
|
|
7965
7965
|
/* @__PURE__ */ s(
|
|
7966
|
-
|
|
7966
|
+
Lc,
|
|
7967
7967
|
{
|
|
7968
7968
|
ref: _,
|
|
7969
7969
|
height: U,
|
|
@@ -7975,7 +7975,7 @@ const tl = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
|
7975
7975
|
if (p[ee.id])
|
|
7976
7976
|
return { color: p[ee.id] };
|
|
7977
7977
|
},
|
|
7978
|
-
onRowStatus:
|
|
7978
|
+
onRowStatus: Nd(y) ? (ee) => {
|
|
7979
7979
|
if (y[ee.id])
|
|
7980
7980
|
return /* @__PURE__ */ s(rr, { color: y[ee.id] });
|
|
7981
7981
|
} : void 0,
|
|
@@ -7996,10 +7996,10 @@ const tl = Vt(nh), ei = (e, t = "14px -apple-system") => {
|
|
|
7996
7996
|
ge
|
|
7997
7997
|
] });
|
|
7998
7998
|
}
|
|
7999
|
-
), mr = tt(
|
|
7999
|
+
), mr = tt(tl);
|
|
8000
8000
|
mr.displayName = "Tree";
|
|
8001
|
-
|
|
8002
|
-
const
|
|
8001
|
+
tl.displayName = "UnmemoizedTree";
|
|
8002
|
+
const nl = (e) => {
|
|
8003
8003
|
const {
|
|
8004
8004
|
model: t,
|
|
8005
8005
|
setSearchTreeNameSearch: n,
|
|
@@ -8285,7 +8285,7 @@ function ih(e, t) {
|
|
|
8285
8285
|
statusForResults: Je,
|
|
8286
8286
|
totalItems: rt,
|
|
8287
8287
|
getAllIds: Ne
|
|
8288
|
-
} =
|
|
8288
|
+
} = nl({
|
|
8289
8289
|
model: I,
|
|
8290
8290
|
setSearchTreeNameSearch: oe,
|
|
8291
8291
|
setSelectedRowItems: Se,
|
|
@@ -8477,7 +8477,7 @@ function ih(e, t) {
|
|
|
8477
8477
|
]), at = w || Ue;
|
|
8478
8478
|
return at ? /* @__PURE__ */ s(Rt, { className: "mt-10", message: at, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(et, {}) : Ot() });
|
|
8479
8479
|
}
|
|
8480
|
-
const
|
|
8480
|
+
const rl = Vt(ih), ah = Ct, lh = (e) => {
|
|
8481
8481
|
const {
|
|
8482
8482
|
treeViewFetching: t,
|
|
8483
8483
|
treeOoui: n,
|
|
@@ -8518,7 +8518,7 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
8518
8518
|
setOrder: B,
|
|
8519
8519
|
limit: J,
|
|
8520
8520
|
setLimit: j
|
|
8521
|
-
} =
|
|
8521
|
+
} = Ba({ useLocalState: !i }), { treeMaxLimit: ae } = en(), X = Math.min(J, ae), [ge, re] = T(!0), [U, Y] = T(), [ee, ue] = T([]), [oe, W] = T(!1), te = a || R, ne = z(te), Z = z(_), ve = z(p), Oe = z(), Se = z([]), Ce = z(!1), fe = (r == null ? void 0 : r.fields_in_conditions) !== void 0, Fe = Q(() => ua({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), [Ae, ke] = qe(
|
|
8522
8522
|
L.getHandler().parseConditions
|
|
8523
8523
|
), {
|
|
8524
8524
|
fetchColumnState: Ue,
|
|
@@ -8541,14 +8541,14 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
8541
8541
|
statusForResults: je,
|
|
8542
8542
|
updateAttributes: Me,
|
|
8543
8543
|
clearAttributes: _e
|
|
8544
|
-
} =
|
|
8544
|
+
} = Ua({
|
|
8545
8545
|
tableRef: l
|
|
8546
8546
|
}), {
|
|
8547
8547
|
isFieldLoading: Je,
|
|
8548
8548
|
refresh: rt,
|
|
8549
8549
|
addRecordsToCheckFunctionFields: Ne,
|
|
8550
8550
|
onHasFunctionFieldsToParseConditions: dt
|
|
8551
|
-
} =
|
|
8551
|
+
} = Ya({
|
|
8552
8552
|
model: o,
|
|
8553
8553
|
treeView: r,
|
|
8554
8554
|
tableRef: l,
|
|
@@ -8558,7 +8558,7 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
8558
8558
|
treeOoui: n,
|
|
8559
8559
|
updateAttributes: Me,
|
|
8560
8560
|
results: P
|
|
8561
|
-
}), { clear: ft } =
|
|
8561
|
+
}), { clear: ft } = Wa({
|
|
8562
8562
|
model: o,
|
|
8563
8563
|
tableRef: l,
|
|
8564
8564
|
autorefreshableFields: n == null ? void 0 : n.autorefreshableFields,
|
|
@@ -8958,14 +8958,14 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
8958
8958
|
onSubmit: a
|
|
8959
8959
|
}
|
|
8960
8960
|
) : /* @__PURE__ */ s(
|
|
8961
|
-
|
|
8961
|
+
ja,
|
|
8962
8962
|
{
|
|
8963
8963
|
...f,
|
|
8964
8964
|
onClose: l,
|
|
8965
8965
|
onSubmit: c
|
|
8966
8966
|
}
|
|
8967
8967
|
);
|
|
8968
|
-
},
|
|
8968
|
+
}, ol = tt(
|
|
8969
8969
|
({
|
|
8970
8970
|
columns: e,
|
|
8971
8971
|
treeOoui: t,
|
|
@@ -9009,7 +9009,7 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
9009
9009
|
)
|
|
9010
9010
|
})), [e, _]);
|
|
9011
9011
|
return !e || !t ? null : /* @__PURE__ */ s(
|
|
9012
|
-
|
|
9012
|
+
Hc,
|
|
9013
9013
|
{
|
|
9014
9014
|
ref: E,
|
|
9015
9015
|
strings: n,
|
|
@@ -9047,7 +9047,7 @@ const ol = Vt(ih), ah = Ct, lh = (e) => {
|
|
|
9047
9047
|
);
|
|
9048
9048
|
}
|
|
9049
9049
|
);
|
|
9050
|
-
|
|
9050
|
+
ol.displayName = "PaginatedTableComponent";
|
|
9051
9051
|
const io = (e) => {
|
|
9052
9052
|
const t = z(e);
|
|
9053
9053
|
return ce(() => {
|
|
@@ -9120,13 +9120,13 @@ function mh(e, t) {
|
|
|
9120
9120
|
formViewProps: r,
|
|
9121
9121
|
treeViewProps: o,
|
|
9122
9122
|
context: d
|
|
9123
|
-
}), S =
|
|
9123
|
+
}), S = da({
|
|
9124
9124
|
elementRef: p,
|
|
9125
9125
|
offset: v != null && v.isExpandable ? fh : uh
|
|
9126
9126
|
}), x = Q(() => {
|
|
9127
9127
|
if (v)
|
|
9128
9128
|
return Qt(v);
|
|
9129
|
-
}, [v]), { columns: A, strings: E } =
|
|
9129
|
+
}, [v]), { columns: A, strings: E } = Za(x, d), _ = Q(() => A || [], [A]), {
|
|
9130
9130
|
searchVisible: w,
|
|
9131
9131
|
searchValues: R,
|
|
9132
9132
|
selectedRowKeys: C,
|
|
@@ -9220,7 +9220,7 @@ function mh(e, t) {
|
|
|
9220
9220
|
}
|
|
9221
9221
|
),
|
|
9222
9222
|
!ft && /* @__PURE__ */ s(
|
|
9223
|
-
|
|
9223
|
+
Fc,
|
|
9224
9224
|
{
|
|
9225
9225
|
total: Ne,
|
|
9226
9226
|
totalRowsLoading: J,
|
|
@@ -9234,7 +9234,7 @@ function mh(e, t) {
|
|
|
9234
9234
|
simpleSummary: Je,
|
|
9235
9235
|
showAllOptionInPageSizeOptions: m !== void 0,
|
|
9236
9236
|
customMiddleComponent: rt && /* @__PURE__ */ s(
|
|
9237
|
-
|
|
9237
|
+
Ga,
|
|
9238
9238
|
{
|
|
9239
9239
|
onFilterSearchClick: () => fe(!0)
|
|
9240
9240
|
}
|
|
@@ -9242,7 +9242,7 @@ function mh(e, t) {
|
|
|
9242
9242
|
}
|
|
9243
9243
|
),
|
|
9244
9244
|
/* @__PURE__ */ s("div", { ref: p, style: _e, children: I ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
|
|
9245
|
-
|
|
9245
|
+
ol,
|
|
9246
9246
|
{
|
|
9247
9247
|
columns: _,
|
|
9248
9248
|
treeOoui: x,
|
|
@@ -9372,7 +9372,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9372
9372
|
}
|
|
9373
9373
|
) }),
|
|
9374
9374
|
g === "infinite" && /* @__PURE__ */ s(
|
|
9375
|
-
|
|
9375
|
+
el,
|
|
9376
9376
|
{
|
|
9377
9377
|
ref: n,
|
|
9378
9378
|
rootTree: !0,
|
|
@@ -9401,7 +9401,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9401
9401
|
}
|
|
9402
9402
|
),
|
|
9403
9403
|
g === "legacy" && /* @__PURE__ */ s(
|
|
9404
|
-
|
|
9404
|
+
rl,
|
|
9405
9405
|
{
|
|
9406
9406
|
ref: n,
|
|
9407
9407
|
rootTree: !0,
|
|
@@ -9415,7 +9415,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9415
9415
|
}
|
|
9416
9416
|
)
|
|
9417
9417
|
] }) : null;
|
|
9418
|
-
}, Dt =
|
|
9418
|
+
}, Dt = kl(
|
|
9419
9419
|
null
|
|
9420
9420
|
), gh = (e) => {
|
|
9421
9421
|
const {
|
|
@@ -9697,7 +9697,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9697
9697
|
operator: b.operator
|
|
9698
9698
|
} : {};
|
|
9699
9699
|
return /* @__PURE__ */ s(
|
|
9700
|
-
|
|
9700
|
+
mu,
|
|
9701
9701
|
{
|
|
9702
9702
|
showPercent: b.showPercent,
|
|
9703
9703
|
totalDomain: b.totalDomain,
|
|
@@ -9725,7 +9725,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9725
9725
|
ooui: m,
|
|
9726
9726
|
limit: a,
|
|
9727
9727
|
manualIds: l,
|
|
9728
|
-
fixedHeight: c
|
|
9728
|
+
fixedHeight: c
|
|
9729
9729
|
}
|
|
9730
9730
|
);
|
|
9731
9731
|
default:
|
|
@@ -9800,7 +9800,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9800
9800
|
case "pie": {
|
|
9801
9801
|
const p = m;
|
|
9802
9802
|
return /* @__PURE__ */ s(
|
|
9803
|
-
|
|
9803
|
+
ta,
|
|
9804
9804
|
{
|
|
9805
9805
|
type: p.type,
|
|
9806
9806
|
data: p.data,
|
|
@@ -9808,14 +9808,14 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9808
9808
|
isStack: p.isStack,
|
|
9809
9809
|
numItems: p.num_items,
|
|
9810
9810
|
yAxisOpts: p.yAxisOpts,
|
|
9811
|
-
fixedHeight: l
|
|
9811
|
+
fixedHeight: l
|
|
9812
9812
|
}
|
|
9813
9813
|
);
|
|
9814
9814
|
}
|
|
9815
9815
|
default:
|
|
9816
9816
|
return /* @__PURE__ */ s(de, { children: `Graph ${m.type} not implemented` });
|
|
9817
9817
|
}
|
|
9818
|
-
},
|
|
9818
|
+
}, sl = Vt(wh), { useToken: xh } = Ze, { Text: ti } = an, il = (e) => {
|
|
9819
9819
|
const {
|
|
9820
9820
|
title: t,
|
|
9821
9821
|
children: n,
|
|
@@ -9958,7 +9958,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9958
9958
|
console.log("Error formatting number with locale", o), console.error(g);
|
|
9959
9959
|
}
|
|
9960
9960
|
const p = /* @__PURE__ */ s(
|
|
9961
|
-
|
|
9961
|
+
jl,
|
|
9962
9962
|
{
|
|
9963
9963
|
title: u,
|
|
9964
9964
|
prefix: m && /* @__PURE__ */ s(m, {}),
|
|
@@ -9970,7 +9970,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9970
9970
|
);
|
|
9971
9971
|
return n.card ? /* @__PURE__ */ s(To, { children: p }) : p;
|
|
9972
9972
|
}, Th = (e) => {
|
|
9973
|
-
const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = Mi(), { actionData: i, treeShortcut: a, loading: l, error: c, fetchData: d } =
|
|
9973
|
+
const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = Mi(), { actionData: i, treeShortcut: a, loading: l, error: c, fetchData: d } = cu(n), f = ln(
|
|
9974
9974
|
Bt.FEATURE_READFORVIEW
|
|
9975
9975
|
), u = le(
|
|
9976
9976
|
Nt
|
|
@@ -9978,10 +9978,10 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
9978
9978
|
if (ce(() => {
|
|
9979
9979
|
t && d();
|
|
9980
9980
|
}, [t, o]), c && c.message !== "active_id_not_found")
|
|
9981
|
-
return /* @__PURE__ */ s(
|
|
9982
|
-
const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: I } = i || {}, S = f ?
|
|
9981
|
+
return /* @__PURE__ */ s(du, { error: c });
|
|
9982
|
+
const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: I } = i || {}, S = f ? sl : Un;
|
|
9983
9983
|
return /* @__PURE__ */ V(
|
|
9984
|
-
|
|
9984
|
+
il,
|
|
9985
9985
|
{
|
|
9986
9986
|
id: h,
|
|
9987
9987
|
parms: {},
|
|
@@ -10110,7 +10110,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10110
10110
|
case "notebook":
|
|
10111
10111
|
return Cg;
|
|
10112
10112
|
case "group":
|
|
10113
|
-
return
|
|
10113
|
+
return wl;
|
|
10114
10114
|
case "label":
|
|
10115
10115
|
return $r;
|
|
10116
10116
|
case "char":
|
|
@@ -10120,13 +10120,13 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10120
10120
|
case "button":
|
|
10121
10121
|
return Mo;
|
|
10122
10122
|
case "buttonGroup":
|
|
10123
|
-
return
|
|
10123
|
+
return ud;
|
|
10124
10124
|
case "selection":
|
|
10125
10125
|
return Bi;
|
|
10126
10126
|
case "many2one":
|
|
10127
10127
|
return Gh;
|
|
10128
10128
|
case "boolean":
|
|
10129
|
-
return
|
|
10129
|
+
return Rd;
|
|
10130
10130
|
case "integer":
|
|
10131
10131
|
return er;
|
|
10132
10132
|
case "float":
|
|
@@ -10150,7 +10150,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10150
10150
|
case "binary":
|
|
10151
10151
|
return zg;
|
|
10152
10152
|
case "image":
|
|
10153
|
-
return
|
|
10153
|
+
return Od;
|
|
10154
10154
|
case "url":
|
|
10155
10155
|
return ny;
|
|
10156
10156
|
case "email":
|
|
@@ -10158,9 +10158,9 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10158
10158
|
case "float_time":
|
|
10159
10159
|
return bg;
|
|
10160
10160
|
case "fiber_grid":
|
|
10161
|
-
return
|
|
10161
|
+
return kd;
|
|
10162
10162
|
case "timeline":
|
|
10163
|
-
return
|
|
10163
|
+
return eu;
|
|
10164
10164
|
case "indicator":
|
|
10165
10165
|
return Ch;
|
|
10166
10166
|
case "tags":
|
|
@@ -10199,7 +10199,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10199
10199
|
}
|
|
10200
10200
|
}, Eh = (e) => {
|
|
10201
10201
|
const { ooui: t } = e, { type: n } = t, r = _h(n);
|
|
10202
|
-
return r ?
|
|
10202
|
+
return r ? Ml(r, e) : null;
|
|
10203
10203
|
}, Dh = ({
|
|
10204
10204
|
item: e,
|
|
10205
10205
|
responsiveBehaviour: t
|
|
@@ -10228,7 +10228,7 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10228
10228
|
row: e,
|
|
10229
10229
|
numberOfColumns: t
|
|
10230
10230
|
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), kh = (e, t) => {
|
|
10231
|
-
const n = e.map((r) => r instanceof Hn && r.fieldForLabel || r instanceof
|
|
10231
|
+
const n = e.map((r) => r instanceof Hn && r.fieldForLabel || r instanceof Jl ? "auto" : "1fr");
|
|
10232
10232
|
if (n.length < t) {
|
|
10233
10233
|
const r = t - n.length;
|
|
10234
10234
|
for (let o = 0; o < r; o++)
|
|
@@ -10279,10 +10279,10 @@ const ph = Vt(mh), pn = "legacy", hh = (e) => {
|
|
|
10279
10279
|
minHeight: 0,
|
|
10280
10280
|
minWidth: 0
|
|
10281
10281
|
}, children: c });
|
|
10282
|
-
},
|
|
10282
|
+
}, al = Zt.createContext(null), Nh = (e) => {
|
|
10283
10283
|
const { children: t, setTitle: n } = e;
|
|
10284
10284
|
return /* @__PURE__ */ s(
|
|
10285
|
-
|
|
10285
|
+
al.Provider,
|
|
10286
10286
|
{
|
|
10287
10287
|
value: {
|
|
10288
10288
|
setTitle: n
|
|
@@ -10417,7 +10417,7 @@ function Uh(e, t) {
|
|
|
10417
10417
|
forcedValues: A = {},
|
|
10418
10418
|
parentWidth: E,
|
|
10419
10419
|
onMustRefreshParent: _
|
|
10420
|
-
} = e, { t: w } = he(), [R, C] = T(!1), [F, P] = T(), [k, N] = T(), [M] = kt.useForm(), [$, H] = T(), [O, B] = T(), J = le(
|
|
10420
|
+
} = e, { t: w } = he(), [R, C] = T(!1), [F, P] = T(), [k, N] = T(), [M] = kt.useForm(), [$, H] = T(), [O, B] = T(), J = le(al), [j, ae] = T(), [X, ge] = T(!1), re = z(), U = z({}), Y = z({}), ee = z(!1), ue = z(!1), oe = z(!1), te = (E !== void 0 ? E : j) < Bh, ne = le(Qe), { activeId: Z, getPlainValues: ve } = ne || {}, Oe = z(!1), Se = le(
|
|
10421
10421
|
Dt
|
|
10422
10422
|
), {
|
|
10423
10423
|
setFormIsSaving: Ce = void 0,
|
|
@@ -10595,7 +10595,7 @@ function Uh(e, t) {
|
|
|
10595
10595
|
Ae == null || Ae(!0), P(void 0), dt(), q != null && q.fields ? (pe = q.fields, xe = q.arch) : (pe = O, xe = $), h && (q == null ? void 0 : q.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Pe } = await cn({
|
|
10596
10596
|
fields: pe,
|
|
10597
10597
|
arch: xe
|
|
10598
|
-
}), b && (K = { ...
|
|
10598
|
+
}), b && (K = { ...Jd(b), ...K }), U.current = _n(K, pe), jt({
|
|
10599
10599
|
values: K,
|
|
10600
10600
|
fields: pe,
|
|
10601
10601
|
reset: !0,
|
|
@@ -10631,12 +10631,12 @@ function Uh(e, t) {
|
|
|
10631
10631
|
reset: pe,
|
|
10632
10632
|
isDefaultGet: xe = !1
|
|
10633
10633
|
}) => {
|
|
10634
|
-
const mt = { ...pe ? {} : M.getFieldsValue(!0), ...q }, qr = _n(mt, K),
|
|
10634
|
+
const mt = { ...pe ? {} : M.getFieldsValue(!0), ...q }, qr = _n(mt, K), Dl = Object.keys(K).map((zr) => ({
|
|
10635
10635
|
name: zr,
|
|
10636
10636
|
touched: !1,
|
|
10637
10637
|
value: qr[zr] !== void 0 ? qr[zr] : void 0
|
|
10638
10638
|
}));
|
|
10639
|
-
xe || (Y.current = qr), M.setFields(
|
|
10639
|
+
xe || (Y.current = qr), M.setFields(Dl);
|
|
10640
10640
|
},
|
|
10641
10641
|
[M]
|
|
10642
10642
|
), cn = async ({
|
|
@@ -10748,7 +10748,7 @@ function Uh(e, t) {
|
|
|
10748
10748
|
const Pe = new vi(q);
|
|
10749
10749
|
return Pe.parse(K, {
|
|
10750
10750
|
readOnly: f || xe,
|
|
10751
|
-
values:
|
|
10751
|
+
values: $d(
|
|
10752
10752
|
{
|
|
10753
10753
|
...pe,
|
|
10754
10754
|
...lt()
|
|
@@ -10785,7 +10785,7 @@ function Uh(e, t) {
|
|
|
10785
10785
|
target: ut(O),
|
|
10786
10786
|
fields: O
|
|
10787
10787
|
}), pe = Object.keys(K);
|
|
10788
|
-
if (pe.length !== 0 && !(
|
|
10788
|
+
if (pe.length !== 0 && !(qd({
|
|
10789
10789
|
changedFields: pe,
|
|
10790
10790
|
formOoui: k,
|
|
10791
10791
|
types: [
|
|
@@ -10805,7 +10805,7 @@ function Uh(e, t) {
|
|
|
10805
10805
|
Ne(Pe);
|
|
10806
10806
|
}), st(pe);
|
|
10807
10807
|
}
|
|
10808
|
-
}, Ke =
|
|
10808
|
+
}, Ke = Ec(Te, 100), st = async (q) => {
|
|
10809
10809
|
try {
|
|
10810
10810
|
for (let K = 0; K < q.length; K += 1) {
|
|
10811
10811
|
const pe = q[K];
|
|
@@ -10824,7 +10824,7 @@ function Uh(e, t) {
|
|
|
10824
10824
|
});
|
|
10825
10825
|
return;
|
|
10826
10826
|
}
|
|
10827
|
-
const pe =
|
|
10827
|
+
const pe = Kd({
|
|
10828
10828
|
values: {
|
|
10829
10829
|
...ut(O),
|
|
10830
10830
|
context: {
|
|
@@ -10845,7 +10845,7 @@ function Uh(e, t) {
|
|
|
10845
10845
|
const Pe = {
|
|
10846
10846
|
...ut(O),
|
|
10847
10847
|
...xe.value
|
|
10848
|
-
}, mt =
|
|
10848
|
+
}, mt = Ld({
|
|
10849
10849
|
values: Pe,
|
|
10850
10850
|
fields: O
|
|
10851
10851
|
});
|
|
@@ -10877,7 +10877,7 @@ function Uh(e, t) {
|
|
|
10877
10877
|
});
|
|
10878
10878
|
}
|
|
10879
10879
|
if (xe.domain && Object.keys(xe.domain).length > 0) {
|
|
10880
|
-
const Pe =
|
|
10880
|
+
const Pe = zd({
|
|
10881
10881
|
fieldsDomain: xe.domain,
|
|
10882
10882
|
fields: O
|
|
10883
10883
|
});
|
|
@@ -10968,7 +10968,7 @@ function Uh(e, t) {
|
|
|
10968
10968
|
operationInProgress: q
|
|
10969
10969
|
});
|
|
10970
10970
|
}
|
|
10971
|
-
const
|
|
10971
|
+
const Al = D(
|
|
10972
10972
|
(q) => {
|
|
10973
10973
|
if (!$)
|
|
10974
10974
|
return;
|
|
@@ -10990,10 +10990,10 @@ function Uh(e, t) {
|
|
|
10990
10990
|
context: v,
|
|
10991
10991
|
autorefreshableFields: k == null ? void 0 : k.autorefreshableFields,
|
|
10992
10992
|
fieldDefs: O,
|
|
10993
|
-
onAutorefreshableFieldsChange:
|
|
10993
|
+
onAutorefreshableFieldsChange: Al,
|
|
10994
10994
|
isActive: We
|
|
10995
10995
|
});
|
|
10996
|
-
async function
|
|
10996
|
+
async function Rl({
|
|
10997
10997
|
type: q,
|
|
10998
10998
|
action: K,
|
|
10999
10999
|
context: pe
|
|
@@ -11019,8 +11019,8 @@ function Uh(e, t) {
|
|
|
11019
11019
|
xe && Et(!1), je(Pe);
|
|
11020
11020
|
}
|
|
11021
11021
|
}
|
|
11022
|
-
const
|
|
11023
|
-
|
|
11022
|
+
const _l = () => !k && !F ? /* @__PURE__ */ s(et, {}) : !n && !p || !I ? null : /* @__PURE__ */ s(de, { children: /* @__PURE__ */ s(
|
|
11023
|
+
td,
|
|
11024
11024
|
{
|
|
11025
11025
|
getValues: vt,
|
|
11026
11026
|
getPlainValues: De,
|
|
@@ -11031,7 +11031,7 @@ function Uh(e, t) {
|
|
|
11031
11031
|
activeModel: n,
|
|
11032
11032
|
setFieldValue: wn,
|
|
11033
11033
|
getFieldValue: xn,
|
|
11034
|
-
executeButtonAction:
|
|
11034
|
+
executeButtonAction: Rl,
|
|
11035
11035
|
getContext: yt,
|
|
11036
11036
|
submitForm: Le,
|
|
11037
11037
|
fetchValues: $t,
|
|
@@ -11062,7 +11062,7 @@ function Uh(e, t) {
|
|
|
11062
11062
|
}
|
|
11063
11063
|
)
|
|
11064
11064
|
}
|
|
11065
|
-
) }),
|
|
11065
|
+
) }), El = () => /* @__PURE__ */ V(de, { children: [
|
|
11066
11066
|
/* @__PURE__ */ s(Rr, {}),
|
|
11067
11067
|
/* @__PURE__ */ s(Ge, { justify: "end", children: /* @__PURE__ */ V(it, { children: [
|
|
11068
11068
|
/* @__PURE__ */ s(
|
|
@@ -11100,8 +11100,8 @@ function Uh(e, t) {
|
|
|
11100
11100
|
ae((K = q.bounds) == null ? void 0 : K.width);
|
|
11101
11101
|
},
|
|
11102
11102
|
children: ({ measureRef: q }) => /* @__PURE__ */ V("div", { className: "pb-2", ref: q, children: [
|
|
11103
|
-
|
|
11104
|
-
a &&
|
|
11103
|
+
_l(),
|
|
11104
|
+
a && El()
|
|
11105
11105
|
] })
|
|
11106
11106
|
}
|
|
11107
11107
|
) : null;
|
|
@@ -11151,7 +11151,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11151
11151
|
ze,
|
|
11152
11152
|
{
|
|
11153
11153
|
type: h ? "primary" : "default",
|
|
11154
|
-
icon: h ? /* @__PURE__ */ s(
|
|
11154
|
+
icon: h ? /* @__PURE__ */ s(nc, { style: { color: "white" } }) : /* @__PURE__ */ s(rc, {}),
|
|
11155
11155
|
style: { width: 30 },
|
|
11156
11156
|
onClick: A
|
|
11157
11157
|
}
|
|
@@ -11230,7 +11230,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11230
11230
|
}
|
|
11231
11231
|
x(d);
|
|
11232
11232
|
}, [d, A, x]), w = Q(
|
|
11233
|
-
() => S ?
|
|
11233
|
+
() => S ? el : rl,
|
|
11234
11234
|
[S]
|
|
11235
11235
|
), R = D(() => {
|
|
11236
11236
|
c(!0);
|
|
@@ -11308,7 +11308,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11308
11308
|
}
|
|
11309
11309
|
)
|
|
11310
11310
|
] });
|
|
11311
|
-
}, { defaultAlgorithm: Wh, defaultSeed: Yh } = Ze,
|
|
11311
|
+
}, { defaultAlgorithm: Wh, defaultSeed: Yh } = Ze, ll = Wh(Yh), Gh = (e) => {
|
|
11312
11312
|
const { ooui: t } = e, { required: n } = t;
|
|
11313
11313
|
return /* @__PURE__ */ s(He, { required: n, type: "array", validator: async (o, i) => {
|
|
11314
11314
|
if (!i)
|
|
@@ -11317,8 +11317,8 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11317
11317
|
throw new Error();
|
|
11318
11318
|
if (Array.isArray(i) && !i[0])
|
|
11319
11319
|
throw new Error();
|
|
11320
|
-
}, ...e, children: /* @__PURE__ */ s(
|
|
11321
|
-
},
|
|
11320
|
+
}, ...e, children: /* @__PURE__ */ s(cl, { ooui: t }) });
|
|
11321
|
+
}, cl = (e) => {
|
|
11322
11322
|
const { value: t, onChange: n, ooui: r } = e, {
|
|
11323
11323
|
required: o,
|
|
11324
11324
|
relation: i,
|
|
@@ -11326,7 +11326,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11326
11326
|
context: l,
|
|
11327
11327
|
id: c,
|
|
11328
11328
|
domain: d
|
|
11329
|
-
} = r, f = o && !a ? { backgroundColor:
|
|
11329
|
+
} = r, f = o && !a ? { backgroundColor: ll.colorPrimaryBg } : void 0, [u, m] = T(!1), [h, p] = T(!1), [y, g] = T(!1), [v, b] = T(), I = z(!1), [S, x] = T(""), A = z(), E = le(Qe), {
|
|
11330
11330
|
domain: _,
|
|
11331
11331
|
getFields: w,
|
|
11332
11332
|
getContext: R,
|
|
@@ -11498,7 +11498,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11498
11498
|
] });
|
|
11499
11499
|
}, qh = Ft(xt)`
|
|
11500
11500
|
.ant-input {
|
|
11501
|
-
background-color: ${
|
|
11501
|
+
background-color: ${ll.colorPrimaryBg};
|
|
11502
11502
|
}
|
|
11503
11503
|
`, zh = ({
|
|
11504
11504
|
title: e,
|
|
@@ -11541,7 +11541,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11541
11541
|
children: t
|
|
11542
11542
|
}
|
|
11543
11543
|
);
|
|
11544
|
-
},
|
|
11544
|
+
}, dl = (e) => {
|
|
11545
11545
|
const t = document.createElement("div");
|
|
11546
11546
|
document.body.appendChild(t);
|
|
11547
11547
|
const n = Ei(t);
|
|
@@ -11564,11 +11564,11 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11564
11564
|
n.unmount(), t.remove();
|
|
11565
11565
|
}
|
|
11566
11566
|
};
|
|
11567
|
-
},
|
|
11567
|
+
}, ul = ({
|
|
11568
11568
|
t: e,
|
|
11569
11569
|
onOk: t
|
|
11570
11570
|
}) => {
|
|
11571
|
-
|
|
11571
|
+
dl({
|
|
11572
11572
|
title: e("removeItems"),
|
|
11573
11573
|
icon: /* @__PURE__ */ s(Er, {}),
|
|
11574
11574
|
centered: !0,
|
|
@@ -11577,11 +11577,11 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11577
11577
|
cancelText: e("cancel"),
|
|
11578
11578
|
onOk: t
|
|
11579
11579
|
});
|
|
11580
|
-
},
|
|
11580
|
+
}, fl = ({
|
|
11581
11581
|
t: e,
|
|
11582
11582
|
onOk: t
|
|
11583
11583
|
}) => {
|
|
11584
|
-
|
|
11584
|
+
dl({
|
|
11585
11585
|
title: e("unlinkItems"),
|
|
11586
11586
|
icon: /* @__PURE__ */ s(Er, {}),
|
|
11587
11587
|
centered: !0,
|
|
@@ -11590,7 +11590,7 @@ const Wn = Vt(Uh), Yn = (e) => {
|
|
|
11590
11590
|
onOk: t,
|
|
11591
11591
|
cancelText: e("cancel")
|
|
11592
11592
|
});
|
|
11593
|
-
},
|
|
11593
|
+
}, ml = ({
|
|
11594
11594
|
toolbar: e,
|
|
11595
11595
|
mustDisableButtons: t = !1,
|
|
11596
11596
|
formRef: n,
|
|
@@ -11734,7 +11734,7 @@ function Qh(e) {
|
|
|
11734
11734
|
S == null || S();
|
|
11735
11735
|
},
|
|
11736
11736
|
context: a === "tree" ? b : (N = I == null ? void 0 : I.current) == null ? void 0 : N.getContext()
|
|
11737
|
-
}), { actionButtonProps: R, printButtonProps: C, relateButtonProps: F } =
|
|
11737
|
+
}), { actionButtonProps: R, printButtonProps: C, relateButtonProps: F } = ml({
|
|
11738
11738
|
toolbar: v,
|
|
11739
11739
|
mustDisableButtons: n,
|
|
11740
11740
|
formRef: I,
|
|
@@ -11742,7 +11742,7 @@ function Qh(e) {
|
|
|
11742
11742
|
}), {
|
|
11743
11743
|
actionButtonProps: P,
|
|
11744
11744
|
printButtonProps: k
|
|
11745
|
-
} =
|
|
11745
|
+
} = ia({
|
|
11746
11746
|
toolbar: v,
|
|
11747
11747
|
disabled: n,
|
|
11748
11748
|
parentContext: b,
|
|
@@ -11750,7 +11750,7 @@ function Qh(e) {
|
|
|
11750
11750
|
onRefreshParentValues: S
|
|
11751
11751
|
});
|
|
11752
11752
|
return /* @__PURE__ */ V("div", { className: "flex mb-2 pt-3", children: [
|
|
11753
|
-
/* @__PURE__ */ s(
|
|
11753
|
+
/* @__PURE__ */ s(pl, { title: t, token: A }),
|
|
11754
11754
|
/* @__PURE__ */ V("div", { className: "flex-none h-8 pl-2", children: [
|
|
11755
11755
|
a !== "graph" && y && /* @__PURE__ */ s(
|
|
11756
11756
|
wt,
|
|
@@ -11775,7 +11775,7 @@ function Qh(e) {
|
|
|
11775
11775
|
] }),
|
|
11776
11776
|
a !== "graph" && /* @__PURE__ */ s(qt, {}),
|
|
11777
11777
|
a !== "graph" && /* @__PURE__ */ s(
|
|
11778
|
-
|
|
11778
|
+
yl,
|
|
11779
11779
|
{
|
|
11780
11780
|
isMany2Many: m,
|
|
11781
11781
|
totalItems: c,
|
|
@@ -11819,7 +11819,7 @@ function Qh(e) {
|
|
|
11819
11819
|
)
|
|
11820
11820
|
] }),
|
|
11821
11821
|
a === "form" && /* @__PURE__ */ s(
|
|
11822
|
-
|
|
11822
|
+
gl,
|
|
11823
11823
|
{
|
|
11824
11824
|
currentItemIndex: d,
|
|
11825
11825
|
totalItems: c,
|
|
@@ -11833,7 +11833,7 @@ function Qh(e) {
|
|
|
11833
11833
|
wt,
|
|
11834
11834
|
{
|
|
11835
11835
|
tooltip: E("toggleViewMode"),
|
|
11836
|
-
icon: /* @__PURE__ */ s(
|
|
11836
|
+
icon: /* @__PURE__ */ s(sc, {}),
|
|
11837
11837
|
onClick: i
|
|
11838
11838
|
}
|
|
11839
11839
|
)
|
|
@@ -11873,7 +11873,7 @@ function Qh(e) {
|
|
|
11873
11873
|
] })
|
|
11874
11874
|
] });
|
|
11875
11875
|
}
|
|
11876
|
-
const
|
|
11876
|
+
const pl = tt(({ title: e, token: t }) => /* @__PURE__ */ s(
|
|
11877
11877
|
"div",
|
|
11878
11878
|
{
|
|
11879
11879
|
className: "flex flex-grow h-8 text-white",
|
|
@@ -11884,10 +11884,10 @@ const hl = tt(({ title: e, token: t }) => /* @__PURE__ */ s(
|
|
|
11884
11884
|
children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center h-full", children: /* @__PURE__ */ s("span", { className: "pl-2 font-bold", children: e }) })
|
|
11885
11885
|
}
|
|
11886
11886
|
));
|
|
11887
|
-
|
|
11887
|
+
pl.displayName = "Title";
|
|
11888
11888
|
const qt = tt(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
|
|
11889
11889
|
qt.displayName = "Separator";
|
|
11890
|
-
const
|
|
11890
|
+
const hl = tt(
|
|
11891
11891
|
({
|
|
11892
11892
|
currentItemIndex: e,
|
|
11893
11893
|
totalItems: t
|
|
@@ -11902,8 +11902,8 @@ const gl = tt(
|
|
|
11902
11902
|
] });
|
|
11903
11903
|
}
|
|
11904
11904
|
);
|
|
11905
|
-
|
|
11906
|
-
const
|
|
11905
|
+
hl.displayName = "ItemIndex";
|
|
11906
|
+
const gl = tt(
|
|
11907
11907
|
({
|
|
11908
11908
|
currentItemIndex: e,
|
|
11909
11909
|
totalItems: t,
|
|
@@ -11922,7 +11922,7 @@ const yl = tt(
|
|
|
11922
11922
|
}
|
|
11923
11923
|
),
|
|
11924
11924
|
/* @__PURE__ */ s(
|
|
11925
|
-
|
|
11925
|
+
hl,
|
|
11926
11926
|
{
|
|
11927
11927
|
currentItemIndex: e,
|
|
11928
11928
|
totalItems: t
|
|
@@ -11939,8 +11939,8 @@ const yl = tt(
|
|
|
11939
11939
|
] });
|
|
11940
11940
|
}
|
|
11941
11941
|
);
|
|
11942
|
-
|
|
11943
|
-
const
|
|
11942
|
+
gl.displayName = "ItemBrowser";
|
|
11943
|
+
const yl = tt(
|
|
11944
11944
|
({
|
|
11945
11945
|
isMany2Many: e,
|
|
11946
11946
|
totalItems: t,
|
|
@@ -11954,7 +11954,7 @@ const vl = tt(
|
|
|
11954
11954
|
wt,
|
|
11955
11955
|
{
|
|
11956
11956
|
tooltip: a(e ? "unlink" : "delete"),
|
|
11957
|
-
icon: e ? /* @__PURE__ */ s(
|
|
11957
|
+
icon: e ? /* @__PURE__ */ s(oc, {}) : /* @__PURE__ */ s(Do, {}),
|
|
11958
11958
|
onClick: i,
|
|
11959
11959
|
danger: !e,
|
|
11960
11960
|
type: e ? "default" : "primary",
|
|
@@ -11963,8 +11963,8 @@ const vl = tt(
|
|
|
11963
11963
|
) });
|
|
11964
11964
|
}
|
|
11965
11965
|
);
|
|
11966
|
-
|
|
11967
|
-
const
|
|
11966
|
+
yl.displayName = "DeleteButton";
|
|
11967
|
+
const vl = tt(Qh), Xh = {
|
|
11968
11968
|
form: vi,
|
|
11969
11969
|
tree: mi,
|
|
11970
11970
|
graph: Un
|
|
@@ -12098,7 +12098,7 @@ const eg = (e) => {
|
|
|
12098
12098
|
}) : G();
|
|
12099
12099
|
}, Ue = () => {
|
|
12100
12100
|
if (ue) {
|
|
12101
|
-
|
|
12101
|
+
fl({
|
|
12102
12102
|
t: b,
|
|
12103
12103
|
onOk: async () => {
|
|
12104
12104
|
a === "form" ? ye() : Ve();
|
|
@@ -12106,7 +12106,7 @@ const eg = (e) => {
|
|
|
12106
12106
|
});
|
|
12107
12107
|
return;
|
|
12108
12108
|
}
|
|
12109
|
-
|
|
12109
|
+
ul({
|
|
12110
12110
|
t: b,
|
|
12111
12111
|
onOk: async () => {
|
|
12112
12112
|
a === "form" ? ye() : Ve();
|
|
@@ -12297,7 +12297,7 @@ const eg = (e) => {
|
|
|
12297
12297
|
const rt = $;
|
|
12298
12298
|
return x ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ V(de, { children: [
|
|
12299
12299
|
/* @__PURE__ */ s(
|
|
12300
|
-
|
|
12300
|
+
vl,
|
|
12301
12301
|
{
|
|
12302
12302
|
mode: a,
|
|
12303
12303
|
model: U,
|
|
@@ -12427,20 +12427,20 @@ const eg = (e) => {
|
|
|
12427
12427
|
endRow: y,
|
|
12428
12428
|
sortFields: g
|
|
12429
12429
|
}) => {
|
|
12430
|
-
const v = xr(g), { realItemsIds: b, otherItems: I } =
|
|
12430
|
+
const v = xr(g), { realItemsIds: b, otherItems: I } = jd({
|
|
12431
12431
|
allItems: h,
|
|
12432
12432
|
...v ? {} : { range: { startRow: p, endRow: y } }
|
|
12433
12433
|
});
|
|
12434
12434
|
if (b.length === 0 && I.length === 0)
|
|
12435
12435
|
return { results: [], colors: {}, status: {} };
|
|
12436
|
-
const S = v ? (await
|
|
12436
|
+
const S = v ? (await Ud(b, t, n, v)).slice(
|
|
12437
12437
|
p,
|
|
12438
12438
|
y
|
|
12439
|
-
) : b, x =
|
|
12439
|
+
) : b, x = Wd(u), {
|
|
12440
12440
|
items: A,
|
|
12441
12441
|
colors: E,
|
|
12442
12442
|
status: _
|
|
12443
|
-
} = await
|
|
12443
|
+
} = await Yd({
|
|
12444
12444
|
relation: t,
|
|
12445
12445
|
ids: S,
|
|
12446
12446
|
treeView: e,
|
|
@@ -12448,7 +12448,7 @@ const eg = (e) => {
|
|
|
12448
12448
|
attrs: x,
|
|
12449
12449
|
treeOoui: u
|
|
12450
12450
|
}), R = S.length < y - p && I.length > 0 ? [...S, ...I.map((F) => F.id)] : S;
|
|
12451
|
-
return { results:
|
|
12451
|
+
return { results: Bd({
|
|
12452
12452
|
finalResultIds: R,
|
|
12453
12453
|
fetchedItems: A,
|
|
12454
12454
|
otherItems: I
|
|
@@ -12538,7 +12538,7 @@ const eg = (e) => {
|
|
|
12538
12538
|
};
|
|
12539
12539
|
}, og = ({
|
|
12540
12540
|
one2manyItems: e
|
|
12541
|
-
}) => Qn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]),
|
|
12541
|
+
}) => Qn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), bl = Vt(
|
|
12542
12542
|
({
|
|
12543
12543
|
formView: e,
|
|
12544
12544
|
items: t,
|
|
@@ -12567,14 +12567,14 @@ const eg = (e) => {
|
|
|
12567
12567
|
values: { ...u, id: m },
|
|
12568
12568
|
treeValues: { ...u, id: m }
|
|
12569
12569
|
} : y);
|
|
12570
|
-
i(
|
|
12570
|
+
i(Hd(h));
|
|
12571
12571
|
},
|
|
12572
12572
|
readOnly: o
|
|
12573
12573
|
}
|
|
12574
12574
|
);
|
|
12575
12575
|
}
|
|
12576
12576
|
);
|
|
12577
|
-
|
|
12577
|
+
bl.displayName = "One2manyForm";
|
|
12578
12578
|
const sg = ({
|
|
12579
12579
|
isMany2many: e,
|
|
12580
12580
|
triggerChange: t,
|
|
@@ -12634,13 +12634,13 @@ const sg = ({
|
|
|
12634
12634
|
]), h = D(async () => l === "form" ? await m() : await u(), [l, m, u]);
|
|
12635
12635
|
return { showRemoveConfirm: D(() => {
|
|
12636
12636
|
if (e) {
|
|
12637
|
-
|
|
12637
|
+
fl({
|
|
12638
12638
|
t: a,
|
|
12639
12639
|
onOk: h
|
|
12640
12640
|
});
|
|
12641
12641
|
return;
|
|
12642
12642
|
}
|
|
12643
|
-
|
|
12643
|
+
ul({
|
|
12644
12644
|
t: a,
|
|
12645
12645
|
onOk: h
|
|
12646
12646
|
});
|
|
@@ -13039,7 +13039,7 @@ const ag = ({
|
|
|
13039
13039
|
}, [i]);
|
|
13040
13040
|
return /* @__PURE__ */ V(de, { children: [
|
|
13041
13041
|
/* @__PURE__ */ s(
|
|
13042
|
-
|
|
13042
|
+
vl,
|
|
13043
13043
|
{
|
|
13044
13044
|
mode: c,
|
|
13045
13045
|
title: H,
|
|
@@ -13095,7 +13095,7 @@ const ag = ({
|
|
|
13095
13095
|
}
|
|
13096
13096
|
),
|
|
13097
13097
|
c === "form" && /* @__PURE__ */ s(
|
|
13098
|
-
|
|
13098
|
+
bl,
|
|
13099
13099
|
{
|
|
13100
13100
|
ref: x,
|
|
13101
13101
|
items: l,
|
|
@@ -13229,7 +13229,7 @@ const ag = ({
|
|
|
13229
13229
|
}
|
|
13230
13230
|
) });
|
|
13231
13231
|
}, yg = (e) => {
|
|
13232
|
-
const { ooui: t, value: n } = e, { treeType: r, setTreeType: o } =
|
|
13232
|
+
const { ooui: t, value: n } = e, { treeType: r, setTreeType: o } = Xa();
|
|
13233
13233
|
return nt(() => {
|
|
13234
13234
|
if (t.infinite) {
|
|
13235
13235
|
o("infinite");
|
|
@@ -13247,7 +13247,7 @@ const ag = ({
|
|
|
13247
13247
|
}, wg = (e) => {
|
|
13248
13248
|
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: i, required: a } = t, { token: l } = vg(), c = a && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, d = z(), [f, u] = T(), m = le(Qe), { elementHasLostFocus: h } = m || {};
|
|
13249
13249
|
ce(() => {
|
|
13250
|
-
u(
|
|
13250
|
+
u(qa(n));
|
|
13251
13251
|
}, [n]);
|
|
13252
13252
|
const p = (v) => {
|
|
13253
13253
|
r == null || r(v);
|
|
@@ -13281,7 +13281,7 @@ const ag = ({
|
|
|
13281
13281
|
}
|
|
13282
13282
|
) });
|
|
13283
13283
|
};
|
|
13284
|
-
function
|
|
13284
|
+
function wl(e) {
|
|
13285
13285
|
const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = Pt(t.icon || ""), { t: i } = he();
|
|
13286
13286
|
return /* @__PURE__ */ s(
|
|
13287
13287
|
"div",
|
|
@@ -13291,7 +13291,7 @@ function xl(e) {
|
|
|
13291
13291
|
overflowX: "hidden",
|
|
13292
13292
|
overflowY: "auto"
|
|
13293
13293
|
},
|
|
13294
|
-
children: (t.label || o) && n ? /* @__PURE__ */ s(
|
|
13294
|
+
children: (t.label || o) && n ? /* @__PURE__ */ s(Tc, { label: t.label, icon: o, children: /* @__PURE__ */ s(
|
|
13295
13295
|
bo,
|
|
13296
13296
|
{
|
|
13297
13297
|
tip: i("loading"),
|
|
@@ -13352,7 +13352,7 @@ function Cg(e) {
|
|
|
13352
13352
|
a.label
|
|
13353
13353
|
] }),
|
|
13354
13354
|
children: /* @__PURE__ */ s(
|
|
13355
|
-
|
|
13355
|
+
wl,
|
|
13356
13356
|
{
|
|
13357
13357
|
ooui: a,
|
|
13358
13358
|
showLabel: !1,
|
|
@@ -13629,7 +13629,7 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13629
13629
|
}) => {
|
|
13630
13630
|
const n = [];
|
|
13631
13631
|
for (const r of Object.keys(e)) {
|
|
13632
|
-
const o = e[r], i =
|
|
13632
|
+
const o = e[r], i = xl(o), a = o.is_function === !0, l = i && !a;
|
|
13633
13633
|
n.push({
|
|
13634
13634
|
key: _g({ key: r, parentKey: t }),
|
|
13635
13635
|
title: o.string,
|
|
@@ -13639,7 +13639,7 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13639
13639
|
});
|
|
13640
13640
|
}
|
|
13641
13641
|
return n;
|
|
13642
|
-
},
|
|
13642
|
+
}, xl = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", _g = ({
|
|
13643
13643
|
parentKey: e,
|
|
13644
13644
|
key: t
|
|
13645
13645
|
}) => `${e ? e + "/" : ""}${t}`, xo = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), So = (e) => {
|
|
@@ -13705,7 +13705,7 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13705
13705
|
keys: e,
|
|
13706
13706
|
fields: t
|
|
13707
13707
|
}) => e.map((n) => {
|
|
13708
|
-
const r = So(n), i = Co(n, t)[r], a =
|
|
13708
|
+
const r = So(n), i = Co(n, t)[r], a = xl(i), l = i.is_function === !0;
|
|
13709
13709
|
return a && !l ? `${n}/id` : n;
|
|
13710
13710
|
}), Mg = (e) => {
|
|
13711
13711
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
@@ -13748,7 +13748,7 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13748
13748
|
onClose: n
|
|
13749
13749
|
});
|
|
13750
13750
|
return /* @__PURE__ */ s(
|
|
13751
|
-
|
|
13751
|
+
Ic,
|
|
13752
13752
|
{
|
|
13753
13753
|
visible: t,
|
|
13754
13754
|
onSucceed: f,
|
|
@@ -13831,10 +13831,10 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13831
13831
|
);
|
|
13832
13832
|
}, Hg = (e) => {
|
|
13833
13833
|
const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
|
|
13834
|
-
return /* @__PURE__ */ s(He, { required: r, ...e, children: /* @__PURE__ */ s(
|
|
13835
|
-
},
|
|
13834
|
+
return /* @__PURE__ */ s(He, { required: r, ...e, children: /* @__PURE__ */ s(Sl, { ooui: t, showTime: n }) });
|
|
13835
|
+
}, Sl = tt(
|
|
13836
13836
|
(e) => {
|
|
13837
|
-
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: i, readOnly: a, required: l } = r, c =
|
|
13837
|
+
const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: i, readOnly: a, required: l } = r, c = fa(), d = Lg(l, !!a), f = o ? "time" : "date", u = Q(
|
|
13838
13838
|
() => t ? Xe(t, ht[f].dateInternalFormat) : void 0,
|
|
13839
13839
|
[t, f]
|
|
13840
13840
|
), m = D(
|
|
@@ -13879,13 +13879,13 @@ const { useToken: Fg } = Ze, { TextArea: wo } = xt, Tg = (e) => {
|
|
|
13879
13879
|
);
|
|
13880
13880
|
}
|
|
13881
13881
|
);
|
|
13882
|
-
|
|
13883
|
-
const
|
|
13882
|
+
Sl.displayName = "DatePickerInput";
|
|
13883
|
+
const Cl = tt(Hg), jg = (e) => {
|
|
13884
13884
|
const { ooui: t } = e;
|
|
13885
|
-
return /* @__PURE__ */ s(
|
|
13885
|
+
return /* @__PURE__ */ s(Cl, { ooui: t });
|
|
13886
13886
|
}, Bg = (e) => {
|
|
13887
13887
|
const { ooui: t } = e;
|
|
13888
|
-
return /* @__PURE__ */ s(
|
|
13888
|
+
return /* @__PURE__ */ s(Cl, { ooui: t, showTime: !0 });
|
|
13889
13889
|
}, Ug = (e) => {
|
|
13890
13890
|
const { ooui: t } = e;
|
|
13891
13891
|
return /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Wg, { ooui: t }) });
|
|
@@ -13935,7 +13935,7 @@ const Fl = tt(Hg), jg = (e) => {
|
|
|
13935
13935
|
}
|
|
13936
13936
|
) }),
|
|
13937
13937
|
/* @__PURE__ */ s(Ie, { flex: "3", children: /* @__PURE__ */ s(
|
|
13938
|
-
|
|
13938
|
+
cl,
|
|
13939
13939
|
{
|
|
13940
13940
|
ooui: new pi({
|
|
13941
13941
|
name: "object_value",
|
|
@@ -13957,7 +13957,7 @@ const Fl = tt(Hg), jg = (e) => {
|
|
|
13957
13957
|
const { ooui: t } = e, { required: n } = t;
|
|
13958
13958
|
return /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(Jg, { ooui: t }) });
|
|
13959
13959
|
}, Jg = (e) => {
|
|
13960
|
-
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: i, filenameField: a } = t, { token: l } = qg(), c = i && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = z(null), { setFieldValue: f, getFieldValue: u } = le(Qe) || {}, { t: m } = he(), h = n ?
|
|
13960
|
+
const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: i, filenameField: a } = t, { token: l } = qg(), c = i && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = z(null), { setFieldValue: f, getFieldValue: u } = le(Qe) || {}, { t: m } = he(), h = n ? Dd(n) : "", p = (I) => {
|
|
13961
13961
|
r == null || r(I);
|
|
13962
13962
|
};
|
|
13963
13963
|
async function y() {
|
|
@@ -14010,7 +14010,7 @@ const Fl = tt(Hg), jg = (e) => {
|
|
|
14010
14010
|
children: "Select"
|
|
14011
14011
|
}
|
|
14012
14012
|
),
|
|
14013
|
-
/* @__PURE__ */ s(ze, { icon: /* @__PURE__ */ s(
|
|
14013
|
+
/* @__PURE__ */ s(ze, { icon: /* @__PURE__ */ s(ic, {}), disabled: !n, onClick: g, children: m("open") }),
|
|
14014
14014
|
/* @__PURE__ */ s(
|
|
14015
14015
|
wt,
|
|
14016
14016
|
{
|
|
@@ -14342,7 +14342,7 @@ function Zg({ toolbar: e }) {
|
|
|
14342
14342
|
[f, n]
|
|
14343
14343
|
), H = D(() => {
|
|
14344
14344
|
$(() => w.current.fetchValues());
|
|
14345
|
-
}, [$, w]), { actionButtonProps: O, printButtonProps: B, relateButtonProps: J } =
|
|
14345
|
+
}, [$, w]), { actionButtonProps: O, printButtonProps: B, relateButtonProps: J } = ml({
|
|
14346
14346
|
toolbar: e,
|
|
14347
14347
|
mustDisableButtons: M,
|
|
14348
14348
|
formRef: w,
|
|
@@ -14469,11 +14469,11 @@ function Zg({ toolbar: e }) {
|
|
|
14469
14469
|
/* @__PURE__ */ s(pt, {}),
|
|
14470
14470
|
/* @__PURE__ */ s(pt, {})
|
|
14471
14471
|
] }),
|
|
14472
|
-
/* @__PURE__ */ s(
|
|
14472
|
+
/* @__PURE__ */ s(ra, { disabled: M }),
|
|
14473
14473
|
/* @__PURE__ */ s(
|
|
14474
14474
|
At,
|
|
14475
14475
|
{
|
|
14476
|
-
icon: /* @__PURE__ */ s(
|
|
14476
|
+
icon: /* @__PURE__ */ s(ac, {}),
|
|
14477
14477
|
tooltip: n("save"),
|
|
14478
14478
|
disabled: !f || M,
|
|
14479
14479
|
loading: u,
|
|
@@ -14495,7 +14495,7 @@ function Zg({ toolbar: e }) {
|
|
|
14495
14495
|
}
|
|
14496
14496
|
),
|
|
14497
14497
|
/* @__PURE__ */ s(
|
|
14498
|
-
|
|
14498
|
+
na,
|
|
14499
14499
|
{
|
|
14500
14500
|
icon: /* @__PURE__ */ s(Do, {}),
|
|
14501
14501
|
tooltip: n("delete"),
|
|
@@ -14541,7 +14541,7 @@ function Zg({ toolbar: e }) {
|
|
|
14541
14541
|
),
|
|
14542
14542
|
/* @__PURE__ */ s(pt, {}),
|
|
14543
14543
|
/* @__PURE__ */ s(
|
|
14544
|
-
|
|
14544
|
+
Fl,
|
|
14545
14545
|
{
|
|
14546
14546
|
disabled: M || !1,
|
|
14547
14547
|
onPreviousClick: o,
|
|
@@ -14567,7 +14567,7 @@ function Zg({ toolbar: e }) {
|
|
|
14567
14567
|
/* @__PURE__ */ s(Br, { res_id: m })
|
|
14568
14568
|
] }) : null;
|
|
14569
14569
|
}
|
|
14570
|
-
const ey = tt(Zg),
|
|
14570
|
+
const ey = tt(Zg), Fl = tt(
|
|
14571
14571
|
({
|
|
14572
14572
|
disabled: e,
|
|
14573
14573
|
onPreviousClick: t,
|
|
@@ -14597,7 +14597,7 @@ const ey = tt(Zg), Tl = tt(
|
|
|
14597
14597
|
] });
|
|
14598
14598
|
}
|
|
14599
14599
|
);
|
|
14600
|
-
|
|
14600
|
+
Fl.displayName = "NavigationButtons";
|
|
14601
14601
|
const ri = (e, t) => ({
|
|
14602
14602
|
model: "ir.attachment",
|
|
14603
14603
|
domain: [
|
|
@@ -14606,7 +14606,7 @@ const ri = (e, t) => ({
|
|
|
14606
14606
|
],
|
|
14607
14607
|
values: { selection_associated_object: `${e},${t}` },
|
|
14608
14608
|
forced_values: { res_model: e, res_id: t }
|
|
14609
|
-
}), { useToken: ty } = Ze,
|
|
14609
|
+
}), { useToken: ty } = Ze, Tl = (e) => {
|
|
14610
14610
|
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: i = "" } = e, { id: a, readOnly: l, required: c } = t, { token: d } = ty(), f = c && !l ? { backgroundColor: d.colorPrimaryBg } : void 0, u = le(Qe), { elementHasLostFocus: m } = u || {}, [h, p] = T(!1), [y, g] = T(!1);
|
|
14611
14611
|
ce(() => {
|
|
14612
14612
|
l && !h && g(!1), !n && !l && (p(!0), g(!0));
|
|
@@ -14665,20 +14665,20 @@ const ri = (e, t) => ({
|
|
|
14665
14665
|
}, ny = (e) => {
|
|
14666
14666
|
const { ooui: t } = e, { required: n } = t;
|
|
14667
14667
|
return /* @__PURE__ */ s(He, { required: n, ...e, children: /* @__PURE__ */ s(
|
|
14668
|
-
|
|
14668
|
+
Tl,
|
|
14669
14669
|
{
|
|
14670
14670
|
ooui: t,
|
|
14671
|
-
valueValidator: (r) => r ?
|
|
14671
|
+
valueValidator: (r) => r ? Yc(r) : !1
|
|
14672
14672
|
}
|
|
14673
14673
|
) });
|
|
14674
14674
|
}, ry = (e) => {
|
|
14675
14675
|
const { ooui: t } = e, { required: n } = t;
|
|
14676
14676
|
return /* @__PURE__ */ s(He, { required: n, ...e, children: t.multi ? /* @__PURE__ */ s(kp, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ s(
|
|
14677
|
-
|
|
14677
|
+
Tl,
|
|
14678
14678
|
{
|
|
14679
14679
|
ooui: t,
|
|
14680
14680
|
linkPrefix: "mailto:",
|
|
14681
|
-
valueValidator: (r) => r ?
|
|
14681
|
+
valueValidator: (r) => r ? Gc(r, { allow_display_name: !0 }) : !1
|
|
14682
14682
|
}
|
|
14683
14683
|
) });
|
|
14684
14684
|
}, oy = (e) => {
|
|
@@ -14734,7 +14734,7 @@ const ri = (e, t) => ({
|
|
|
14734
14734
|
tabIndex: 1,
|
|
14735
14735
|
loading: o,
|
|
14736
14736
|
style: { marginLeft: 15 },
|
|
14737
|
-
icon: /* @__PURE__ */ s(
|
|
14737
|
+
icon: /* @__PURE__ */ s(lc, {}),
|
|
14738
14738
|
htmlType: "submit",
|
|
14739
14739
|
disabled: o,
|
|
14740
14740
|
onClick: () => {
|
|
@@ -14778,7 +14778,7 @@ function sy({ refreshGraph: e }) {
|
|
|
14778
14778
|
} = le(Dt);
|
|
14779
14779
|
return /* @__PURE__ */ V(it, { wrap: !0, children: [
|
|
14780
14780
|
/* @__PURE__ */ s(
|
|
14781
|
-
|
|
14781
|
+
oa,
|
|
14782
14782
|
{
|
|
14783
14783
|
icon: /* @__PURE__ */ s(
|
|
14784
14784
|
xi,
|
|
@@ -14862,7 +14862,7 @@ const iy = (e) => {
|
|
|
14862
14862
|
}, [R]), ce(() => {
|
|
14863
14863
|
t.view_id !== P.view_id && N(!0);
|
|
14864
14864
|
}, [P]);
|
|
14865
|
-
const { clear: M, searchFilterLoading: $, searchError: H, offset: O, tableRefreshing: B } =
|
|
14865
|
+
const { clear: M, searchFilterLoading: $, searchError: H, offset: O, tableRefreshing: B } = nl({
|
|
14866
14866
|
model: r,
|
|
14867
14867
|
setSearchTreeNameSearch: A,
|
|
14868
14868
|
setSelectedRowItems: y,
|
|
@@ -14937,6 +14937,7 @@ const iy = (e) => {
|
|
|
14937
14937
|
context: o,
|
|
14938
14938
|
domain: sn(R || [], i),
|
|
14939
14939
|
limit: k ? _ : void 0,
|
|
14940
|
+
fixedHeight: Fu,
|
|
14940
14941
|
manualIds: k && p && p.length > 0 ? p.map((j) => j.id) : void 0
|
|
14941
14942
|
}
|
|
14942
14943
|
)
|
|
@@ -15000,7 +15001,7 @@ function cy() {
|
|
|
15000
15001
|
At,
|
|
15001
15002
|
{
|
|
15002
15003
|
icon: /* @__PURE__ */ s(
|
|
15003
|
-
|
|
15004
|
+
cc,
|
|
15004
15005
|
{
|
|
15005
15006
|
style: { color: n ? "white" : void 0 }
|
|
15006
15007
|
}
|
|
@@ -15018,7 +15019,7 @@ function cy() {
|
|
|
15018
15019
|
/* @__PURE__ */ s(
|
|
15019
15020
|
At,
|
|
15020
15021
|
{
|
|
15021
|
-
icon: /* @__PURE__ */ s(
|
|
15022
|
+
icon: /* @__PURE__ */ s(dc, {}),
|
|
15022
15023
|
tooltip: o("configDashboard"),
|
|
15023
15024
|
disabled: e,
|
|
15024
15025
|
loading: !1,
|
|
@@ -15102,7 +15103,7 @@ function fy({
|
|
|
15102
15103
|
...o !== void 0 && { limit: o },
|
|
15103
15104
|
...i && i > 1 && { currentPage: i },
|
|
15104
15105
|
order: a
|
|
15105
|
-
}, m =
|
|
15106
|
+
}, m = aa(u), { type: h } = d;
|
|
15106
15107
|
let p = !!f;
|
|
15107
15108
|
return h === "form" && (p = !!f && !!r), { shareUrl: m, canShare: p };
|
|
15108
15109
|
}
|
|
@@ -15509,8 +15510,8 @@ const hy = ({
|
|
|
15509
15510
|
`${v.type}-${v.view_id}`
|
|
15510
15511
|
);
|
|
15511
15512
|
}
|
|
15512
|
-
})),
|
|
15513
|
-
const gy = zc
|
|
15513
|
+
})), Il = Vt(py);
|
|
15514
|
+
const gy = qc(zc), yy = (e) => {
|
|
15514
15515
|
const { children: t = [], onPositionItemsChanged: n } = e, r = Zt.Children.map(
|
|
15515
15516
|
t,
|
|
15516
15517
|
(o) => {
|
|
@@ -15821,7 +15822,7 @@ function xy(e, t) {
|
|
|
15821
15822
|
}
|
|
15822
15823
|
let ue = null;
|
|
15823
15824
|
if ((U == null ? void 0 : U.type) === "graph") {
|
|
15824
|
-
const ne = N.server_action === !0 && S ?
|
|
15825
|
+
const ne = N.server_action === !0 && S ? sl : Un;
|
|
15825
15826
|
ue = /* @__PURE__ */ s(
|
|
15826
15827
|
ne,
|
|
15827
15828
|
{
|
|
@@ -15875,7 +15876,7 @@ function xy(e, t) {
|
|
|
15875
15876
|
else if (U !== void 0) {
|
|
15876
15877
|
const te = U && Array.isArray(U.id) ? { ...U, id: U.id[0] } : U;
|
|
15877
15878
|
ue = /* @__PURE__ */ s(
|
|
15878
|
-
|
|
15879
|
+
Il,
|
|
15879
15880
|
{
|
|
15880
15881
|
action_id: H,
|
|
15881
15882
|
action_type: O,
|
|
@@ -15917,7 +15918,7 @@ function xy(e, t) {
|
|
|
15917
15918
|
};
|
|
15918
15919
|
}
|
|
15919
15920
|
return /* @__PURE__ */ s(
|
|
15920
|
-
|
|
15921
|
+
il,
|
|
15921
15922
|
{
|
|
15922
15923
|
id: $,
|
|
15923
15924
|
title: J,
|
|
@@ -16025,9 +16026,9 @@ const Sy = Vt(xy), Cy = (e) => {
|
|
|
16025
16026
|
overflow: "auto"
|
|
16026
16027
|
},
|
|
16027
16028
|
children: /* @__PURE__ */ s(
|
|
16028
|
-
|
|
16029
|
+
Jc,
|
|
16029
16030
|
{
|
|
16030
|
-
remarkPlugins: [
|
|
16031
|
+
remarkPlugins: [Kc],
|
|
16031
16032
|
className: "markdown-typography",
|
|
16032
16033
|
children: t
|
|
16033
16034
|
}
|
|
@@ -16048,7 +16049,7 @@ const Sy = Vt(xy), Cy = (e) => {
|
|
|
16048
16049
|
return /* @__PURE__ */ s(He, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(Ey, { id: n, readOnly: r, required: o }) });
|
|
16049
16050
|
}, Ey = (e) => {
|
|
16050
16051
|
const { required: t, readOnly: n, ...r } = e;
|
|
16051
|
-
return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(
|
|
16052
|
+
return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(Bl, { disabled: n, ...r }) });
|
|
16052
16053
|
}, Dy = (e) => {
|
|
16053
16054
|
const { ooui: t } = e, { required: n } = t;
|
|
16054
16055
|
return /* @__PURE__ */ s(He, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(Oy, { ...e }) });
|
|
@@ -16143,7 +16144,7 @@ const Sy = Vt(xy), Cy = (e) => {
|
|
|
16143
16144
|
return n;
|
|
16144
16145
|
}, [o, n]);
|
|
16145
16146
|
return /* @__PURE__ */ s(
|
|
16146
|
-
|
|
16147
|
+
Qc,
|
|
16147
16148
|
{
|
|
16148
16149
|
value: f,
|
|
16149
16150
|
options: {
|
|
@@ -16156,7 +16157,7 @@ const Sy = Vt(xy), Cy = (e) => {
|
|
|
16156
16157
|
}
|
|
16157
16158
|
);
|
|
16158
16159
|
}, { Meta: Ny } = To, { Text: $y } = an, Ly = ({ email: e, size: t = 40, theme: n = "" }) => {
|
|
16159
|
-
const r = `https://www.gravatar.com/avatar/${
|
|
16160
|
+
const r = `https://www.gravatar.com/avatar/${Xc(
|
|
16160
16161
|
e
|
|
16161
16162
|
)}?s=${t}&d=${n}`;
|
|
16162
16163
|
return /* @__PURE__ */ s(ci, { src: r, size: t });
|
|
@@ -16219,7 +16220,7 @@ const jy = (e) => {
|
|
|
16219
16220
|
}
|
|
16220
16221
|
}
|
|
16221
16222
|
);
|
|
16222
|
-
}, Uy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(By, { ooui: e.ooui }) }), Wy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(
|
|
16223
|
+
}, Uy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(By, { ooui: e.ooui }) }), Wy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ac, {}) }), Yy = (e) => {
|
|
16223
16224
|
const { ooui: t } = e, n = le(Qe);
|
|
16224
16225
|
let { title: r, text: o, alertType: i, icon: a, buttons: l } = t;
|
|
16225
16226
|
if (t.fieldType && t.id) {
|
|
@@ -16231,7 +16232,7 @@ const jy = (e) => {
|
|
|
16231
16232
|
icon: a = t.icon,
|
|
16232
16233
|
buttons: l = []
|
|
16233
16234
|
} = f, l && (l = l.map(
|
|
16234
|
-
(u) => new
|
|
16235
|
+
(u) => new Kl({ ...u, readonly: t.readOnly })
|
|
16235
16236
|
)), t.buttons && (l = [...t.buttons, ...l])) : console.log(`field value for ${t.id} is not an object`);
|
|
16236
16237
|
}
|
|
16237
16238
|
function c(f) {
|
|
@@ -16262,7 +16263,7 @@ const jy = (e) => {
|
|
|
16262
16263
|
},
|
|
16263
16264
|
o
|
|
16264
16265
|
)) });
|
|
16265
|
-
}, Jy = Ft(
|
|
16266
|
+
}, Jy = Ft(Ul)`
|
|
16266
16267
|
.slick-dots li button {
|
|
16267
16268
|
background-color: ${si.colorPrimary};
|
|
16268
16269
|
}
|
|
@@ -16292,7 +16293,7 @@ function ev() {
|
|
|
16292
16293
|
return /* @__PURE__ */ s(Xy, { className: "m-5 select-none", children: /* @__PURE__ */ s(Zy, { level: 5, children: e("welcome") }) });
|
|
16293
16294
|
}
|
|
16294
16295
|
function tv(e, t) {
|
|
16295
|
-
const { children: n } = e, [r, o] = T("welcome"), { t: i } = he(), { showErrorNotification: a } = gt(), { globalValues: l, rootContext: c } = en(), d =
|
|
16296
|
+
const { children: n } = e, [r, o] = T("welcome"), { t: i } = he(), { showErrorNotification: a } = gt(), { globalValues: l, rootContext: c } = en(), d = au(
|
|
16296
16297
|
Bt.FEATURE_LOGGABLE_ACTIONS
|
|
16297
16298
|
), [f, u] = qe(
|
|
16298
16299
|
L.getHandler().logAction
|
|
@@ -16334,7 +16335,7 @@ function tv(e, t) {
|
|
|
16334
16335
|
model: R.model,
|
|
16335
16336
|
context: c
|
|
16336
16337
|
});
|
|
16337
|
-
let N =
|
|
16338
|
+
let N = la(
|
|
16338
16339
|
C == null ? void 0 : C.values
|
|
16339
16340
|
);
|
|
16340
16341
|
const M = F || N.active_id || N.id;
|
|
@@ -16700,7 +16701,7 @@ function tv(e, t) {
|
|
|
16700
16701
|
x({
|
|
16701
16702
|
title: N,
|
|
16702
16703
|
content: /* @__PURE__ */ s(
|
|
16703
|
-
|
|
16704
|
+
Il,
|
|
16704
16705
|
{
|
|
16705
16706
|
action_id: H,
|
|
16706
16707
|
action_type: O,
|
|
@@ -16964,7 +16965,7 @@ const { useToken: iv } = Ze, ab = (e) => {
|
|
|
16964
16965
|
y
|
|
16965
16966
|
]);
|
|
16966
16967
|
return /* @__PURE__ */ s(
|
|
16967
|
-
|
|
16968
|
+
Rc,
|
|
16968
16969
|
{
|
|
16969
16970
|
ref: m,
|
|
16970
16971
|
isFavourite: a,
|
|
@@ -16990,20 +16991,20 @@ const { useToken: iv } = Ze, ab = (e) => {
|
|
|
16990
16991
|
};
|
|
16991
16992
|
export {
|
|
16992
16993
|
ey as ActionBar,
|
|
16993
|
-
|
|
16994
|
+
Il as ActionView,
|
|
16994
16995
|
Yy as Alert,
|
|
16995
16996
|
ky as ArrowStepsField,
|
|
16996
16997
|
zg as Binary,
|
|
16997
|
-
|
|
16998
|
+
Rd as Boolean,
|
|
16998
16999
|
Mo as Button,
|
|
16999
|
-
|
|
17000
|
+
ud as ButtonGroup,
|
|
17000
17001
|
zy as Carousel,
|
|
17001
17002
|
$i as Char,
|
|
17002
17003
|
My as CodeEditor,
|
|
17003
17004
|
Ky as ColorPicker,
|
|
17004
17005
|
Uy as CommentsTimelineField,
|
|
17005
17006
|
Ki as ConfigContext,
|
|
17006
|
-
|
|
17007
|
+
lu as ConfigContextProvider,
|
|
17007
17008
|
L as ConnectionProvider,
|
|
17008
17009
|
Yu as ContentRootProvider,
|
|
17009
17010
|
ib as CurrentTabContent,
|
|
@@ -17020,11 +17021,11 @@ export {
|
|
|
17020
17021
|
bg as FloatTime,
|
|
17021
17022
|
Wn as Form,
|
|
17022
17023
|
Yn as FormModal,
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17024
|
+
il as GraphCard,
|
|
17025
|
+
mu as GraphIndicator,
|
|
17026
|
+
wl as Group,
|
|
17026
17027
|
Wy as HTMLPreview,
|
|
17027
|
-
|
|
17028
|
+
Od as Image,
|
|
17028
17029
|
er as Integer,
|
|
17029
17030
|
$r as Label,
|
|
17030
17031
|
Gh as Many2one,
|
|
@@ -17038,7 +17039,7 @@ export {
|
|
|
17038
17039
|
ob as RootView,
|
|
17039
17040
|
Yr as SearchFilter,
|
|
17040
17041
|
os as SearchModal,
|
|
17041
|
-
|
|
17042
|
+
rl as SearchTree,
|
|
17042
17043
|
Bi as Selection,
|
|
17043
17044
|
Ag as Separator,
|
|
17044
17045
|
bo as Spinner,
|