@gisce/react-ooui 2.66.0 → 2.66.2
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
|
@@ -2,8 +2,8 @@ var pl = Object.defineProperty;
|
|
|
2
2
|
var hl = (e, t, n) => t in e ? pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Yo = (e, t, n) => (hl(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsx as i, jsxs as V, Fragment as Z } from "react/jsx-runtime";
|
|
5
|
-
import vt, { useContext as ee, useState as C, useEffect as
|
|
6
|
-
import { Tooltip as kt, theme as We, Typography as Wt, Form as Ct, Row as je, Col as Ae, Modal as gt, Button as Le, Dropdown as vl, Menu as Go, Spin as Ke, Divider as cr, Space as Xe, Input as ot, Select as
|
|
5
|
+
import vt, { useContext as ee, useState as C, useEffect as se, useRef as G, memo as Qe, useCallback as E, useMemo as Q, createContext as gl, forwardRef as xt, useImperativeHandle as Tt, Fragment as Pn, createElement as yl } from "react";
|
|
6
|
+
import { Tooltip as kt, theme as We, Typography as Wt, Form as Ct, Row as je, Col as Ae, Modal as gt, Button as Le, Dropdown as vl, Menu as Go, Spin as Ke, Divider as cr, Space as Xe, Input as ot, Select as Zt, Checkbox as On, Alert as st, Timeline as Qi, Empty as Xi, Statistic as wl, Card as mo, Tag as po, message as In, App as bl, Progress as Sl, Avatar as Zi, DatePicker as ho, ColorPicker as es, TimePicker as Cl, InputNumber as dr, Layout as ts, Badge as ur, Pagination as xl, Tabs as ns, Popover as Tl, Radio as Ko, Switch as Il, Steps as qo, Carousel as Al } from "antd";
|
|
7
7
|
import { Label as yn, Field as Kr, Tree as rs, Reference as Ol, Selection as go, Many2one as os, Boolean as _l, parseContext as jt, graphProcessor as is, graphFieldUtils as Fl, parseGraph as ss, parseContextFields as Rl, parseDomainFields as Dl, Container as El, Form as as, Integer as qr, SearchFieldTypes as Lt, SearchFilter as ls, transformDomainForChildWidget as yo, Button as Vl } from "@gisce/ooui";
|
|
8
8
|
import * as zo from "@ant-design/icons";
|
|
9
9
|
import cs, { QuestionCircleOutlined as ds, ExclamationCircleOutlined as Yt, LoadingOutlined as It, DownOutlined as fr, WarningOutlined as us, CloseOutlined as vn, CheckOutlined as kn, TranslationOutlined as fs, FolderOpenOutlined as vo, DownloadOutlined as wo, ClearOutlined as mr, ExportOutlined as ms, ThunderboltOutlined as pr, PrinterOutlined as hr, EnterOutlined as gr, InfoCircleOutlined as yr, StarFilled as Pl, StarOutlined as kl, SearchOutlined as vr, UpOutlined as $l, PlusSquareOutlined as Ml, MinusSquareOutlined as Nl, FileAddOutlined as wr, LeftOutlined as ps, RightOutlined as hs, ApiOutlined as Ll, DeleteOutlined as bo, CopyOutlined as $n, AlignLeftOutlined as jl, EyeOutlined as Bl, FormOutlined as _n, TableOutlined as So, AreaChartOutlined as Hl, CalendarOutlined as Ul, LinkOutlined as Jo, SaveOutlined as Wl, ReloadOutlined as br, EditOutlined as gs, PlusOutlined as Yl, FilterOutlined as ys, CloseCircleFilled as Gl, BorderOuterOutlined as Kl, SettingOutlined as ql } from "@ant-design/icons";
|
|
@@ -39,8 +39,8 @@ import { InfiniteTable as bs, Table as Cc } from "@gisce/react-formiga-table";
|
|
|
39
39
|
import xc from "antd/es/typography/Link";
|
|
40
40
|
import { isPresetStatusColor as Ss, isPresetColor as Cs } from "antd/lib/_util/colors";
|
|
41
41
|
import Tc from "validator";
|
|
42
|
+
import { useDeepCompareEffect as Xt, useDeepCompareCallback as wt, useDeepCompareMemo as Rn } from "use-deep-compare";
|
|
42
43
|
import er from "antd/es/alert/ErrorBoundary";
|
|
43
|
-
import { useDeepCompareEffect as fn, useDeepCompareCallback as wt, useDeepCompareMemo as Rn } from "use-deep-compare";
|
|
44
44
|
import "@gisce/react-formiga-table/style.css";
|
|
45
45
|
import { GridUi as Ic } from "@gisce/fiber-diagram";
|
|
46
46
|
import { useHotkeys as Kt } from "react-hotkeys-hook";
|
|
@@ -585,7 +585,7 @@ function Cr() {
|
|
|
585
585
|
const [e, t] = C(
|
|
586
586
|
ni()
|
|
587
587
|
);
|
|
588
|
-
return
|
|
588
|
+
return se(() => {
|
|
589
589
|
function n() {
|
|
590
590
|
t(ni());
|
|
591
591
|
}
|
|
@@ -597,18 +597,18 @@ function Cr() {
|
|
|
597
597
|
height: e.height
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const cn = class cn {
|
|
601
601
|
static init(t) {
|
|
602
|
-
|
|
602
|
+
cn.handler = t;
|
|
603
603
|
}
|
|
604
604
|
static getHandler() {
|
|
605
|
-
if (!
|
|
605
|
+
if (!cn.handler)
|
|
606
606
|
throw "Must call init() first with a valid ConnectionProvider instance";
|
|
607
|
-
return
|
|
607
|
+
return cn.handler;
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
|
-
Yo(
|
|
611
|
-
let k =
|
|
610
|
+
Yo(cn, "handler");
|
|
611
|
+
let k = cn;
|
|
612
612
|
const Ts = (e) => {
|
|
613
613
|
let t, n, r;
|
|
614
614
|
if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
|
|
@@ -637,7 +637,7 @@ const Ts = (e) => {
|
|
|
637
637
|
});
|
|
638
638
|
}, Is = (e) => {
|
|
639
639
|
const { visible: t, onCloseModal: n, model: r, id: o, field: a, onSubmitSucceed: s } = e, { modalWidth: l } = Cr(), { t: c } = de(), [u, f] = C([]), [d, m] = C(!1), [h, p] = C(!1), [g, y] = C({}), v = G();
|
|
640
|
-
|
|
640
|
+
se(() => {
|
|
641
641
|
t ? w() : y({});
|
|
642
642
|
}, [t]);
|
|
643
643
|
async function w() {
|
|
@@ -950,7 +950,7 @@ const nd = dt(ot)`
|
|
|
950
950
|
&.ant-input-affix-wrapper {
|
|
951
951
|
background-color: ${Io.colorPrimaryBg};
|
|
952
952
|
}
|
|
953
|
-
`, { defaultAlgorithm: id, defaultSeed: sd } = We, ad = id(sd), { Option: ld } =
|
|
953
|
+
`, { defaultAlgorithm: id, defaultSeed: sd } = We, ad = id(sd), { Option: ld } = Zt, Rs = (e) => {
|
|
954
954
|
const { ooui: t } = e, { required: n } = t;
|
|
955
955
|
return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ds, { ...e }) });
|
|
956
956
|
}, Ds = (e) => {
|
|
@@ -959,7 +959,7 @@ const nd = dt(ot)`
|
|
|
959
959
|
return /* @__PURE__ */ i(ld, { value: d, children: m }, d);
|
|
960
960
|
});
|
|
961
961
|
return /* @__PURE__ */ i(
|
|
962
|
-
s && !a ? cd :
|
|
962
|
+
s && !a ? cd : Zt,
|
|
963
963
|
{
|
|
964
964
|
disabled: a,
|
|
965
965
|
onChange: n,
|
|
@@ -971,7 +971,7 @@ const nd = dt(ot)`
|
|
|
971
971
|
children: c
|
|
972
972
|
}
|
|
973
973
|
);
|
|
974
|
-
}, cd = dt(
|
|
974
|
+
}, cd = dt(Zt)`
|
|
975
975
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
976
976
|
background-color: ${ad.colorPrimaryBg};
|
|
977
977
|
}
|
|
@@ -1175,7 +1175,7 @@ function Vs(e, t) {
|
|
|
1175
1175
|
n[r.id] = r[t];
|
|
1176
1176
|
}), n;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function dn({
|
|
1179
1179
|
resultsToSort: e,
|
|
1180
1180
|
sorter: t,
|
|
1181
1181
|
fields: n
|
|
@@ -1383,7 +1383,7 @@ const Id = ({
|
|
|
1383
1383
|
} else
|
|
1384
1384
|
n[r] = e[r];
|
|
1385
1385
|
}), n;
|
|
1386
|
-
},
|
|
1386
|
+
}, an = (e, t) => Rd(e, t), kr = ({
|
|
1387
1387
|
source: e,
|
|
1388
1388
|
target: t,
|
|
1389
1389
|
fields: n
|
|
@@ -1478,7 +1478,7 @@ const Id = ({
|
|
|
1478
1478
|
function ii(e, t, n) {
|
|
1479
1479
|
return n.indexOf(e) === t;
|
|
1480
1480
|
}
|
|
1481
|
-
const
|
|
1481
|
+
const en = ({
|
|
1482
1482
|
values: e,
|
|
1483
1483
|
fields: t
|
|
1484
1484
|
}) => {
|
|
@@ -2152,7 +2152,7 @@ const Gd = (e) => {
|
|
|
2152
2152
|
);
|
|
2153
2153
|
}, ze = (e) => {
|
|
2154
2154
|
const t = G(/* @__PURE__ */ new Map());
|
|
2155
|
-
|
|
2155
|
+
se(() => () => {
|
|
2156
2156
|
n();
|
|
2157
2157
|
}, []);
|
|
2158
2158
|
const n = E((o) => {
|
|
@@ -2362,7 +2362,7 @@ const { getValueForOperator: ai } = is, zd = (e) => {
|
|
|
2362
2362
|
), [M] = ze(
|
|
2363
2363
|
k.getHandler().parseCondition
|
|
2364
2364
|
);
|
|
2365
|
-
|
|
2365
|
+
se(() => {
|
|
2366
2366
|
Y();
|
|
2367
2367
|
}, [t, o]);
|
|
2368
2368
|
async function L({
|
|
@@ -3024,7 +3024,7 @@ const uu = ({
|
|
|
3024
3024
|
initialSearchParams: T
|
|
3025
3025
|
} = e, [F, D] = C(!1), [P, M] = C(!1), [L, B] = C(!1), [Y, $] = C(!0), [K, X] = C(!0), [z, J] = C([]), [Te, he] = C(!1), [H, j] = C(
|
|
3026
3026
|
T || []
|
|
3027
|
-
), [q,
|
|
3027
|
+
), [q, ie] = C(!1), [ne, N] = C(!0), [re, oe] = C(), [we, ge] = C(
|
|
3028
3028
|
wu(
|
|
3029
3029
|
T || [],
|
|
3030
3030
|
n.fields
|
|
@@ -3032,17 +3032,17 @@ const uu = ({
|
|
|
3032
3032
|
), [Ee, Ue] = C(0), [Ye, Re] = C(), [me, Oe] = C(!1), [Ie, $e] = C(), [ue, ae] = C(
|
|
3033
3033
|
_ !== void 0 ? _ : Ht
|
|
3034
3034
|
), [be, Be] = C(r);
|
|
3035
|
-
|
|
3035
|
+
se(() => {
|
|
3036
3036
|
m && m.length > 0 && !h && (p == null || p(0), f == null || f(m[0].id));
|
|
3037
|
-
}, [m]),
|
|
3037
|
+
}, [m]), se(() => {
|
|
3038
3038
|
ae(_ !== void 0 ? _ : Ht);
|
|
3039
|
-
}, [_]),
|
|
3039
|
+
}, [_]), se(() => {
|
|
3040
3040
|
a.length === 1 ? oe(a[0]) : a.length > 1 && oe(
|
|
3041
3041
|
a.filter(
|
|
3042
3042
|
(pe) => pe.view_id !== n.view_id
|
|
3043
3043
|
)[0]
|
|
3044
3044
|
);
|
|
3045
|
-
}, [a]),
|
|
3045
|
+
}, [a]), se(() => {
|
|
3046
3046
|
(re == null ? void 0 : re.view_id) === n.view_id && a.length > 1 && oe(
|
|
3047
3047
|
a.filter(
|
|
3048
3048
|
(pe) => pe.view_id !== n.view_id
|
|
@@ -3091,7 +3091,7 @@ const uu = ({
|
|
|
3091
3091
|
setSearchParams: j,
|
|
3092
3092
|
searchParams: H,
|
|
3093
3093
|
searchVisible: q,
|
|
3094
|
-
setSearchVisible:
|
|
3094
|
+
setSearchVisible: ie,
|
|
3095
3095
|
sorter: y,
|
|
3096
3096
|
setSorter: v,
|
|
3097
3097
|
totalItems: w,
|
|
@@ -3230,7 +3230,7 @@ const uu = ({
|
|
|
3230
3230
|
refresh: () => {
|
|
3231
3231
|
v();
|
|
3232
3232
|
}
|
|
3233
|
-
})),
|
|
3233
|
+
})), se(() => {
|
|
3234
3234
|
v();
|
|
3235
3235
|
}, [u, n]);
|
|
3236
3236
|
async function v() {
|
|
@@ -3292,8 +3292,8 @@ const uu = ({
|
|
|
3292
3292
|
return /* @__PURE__ */ i(Z, { children: `Graph ${m.type} not implemented` });
|
|
3293
3293
|
}
|
|
3294
3294
|
}, wn = xt(Cu);
|
|
3295
|
-
var
|
|
3296
|
-
const qv = Object.values(
|
|
3295
|
+
var tn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e.FEATURE_GET_TOOLBAR = "get_toolbar", e))(tn || {});
|
|
3296
|
+
const qv = Object.values(tn), xu = (e) => {
|
|
3297
3297
|
const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: a } = e, [s, l] = C(!1), [c, u] = C(), [f, d] = C(), [m] = ze(
|
|
3298
3298
|
k.getHandler().readForView
|
|
3299
3299
|
), h = E(async () => {
|
|
@@ -3327,13 +3327,13 @@ const qv = Object.values(en), xu = (e) => {
|
|
|
3327
3327
|
context: o,
|
|
3328
3328
|
manualIds: s
|
|
3329
3329
|
});
|
|
3330
|
-
if (
|
|
3330
|
+
if (se(() => {
|
|
3331
3331
|
u == null || u(d);
|
|
3332
3332
|
}, [d]), Tt(t, () => ({
|
|
3333
3333
|
refresh: () => {
|
|
3334
3334
|
h();
|
|
3335
3335
|
}
|
|
3336
|
-
})),
|
|
3336
|
+
})), se(() => {
|
|
3337
3337
|
h();
|
|
3338
3338
|
}, [n]), d || !m)
|
|
3339
3339
|
return /* @__PURE__ */ i(jn, {});
|
|
@@ -3389,7 +3389,7 @@ const qv = Object.values(en), xu = (e) => {
|
|
|
3389
3389
|
onRemoveTab: c,
|
|
3390
3390
|
tabs: u
|
|
3391
3391
|
} = e, [f, d] = C(), [m, h] = C(), p = Q(() => u.find((v) => v.key === s), [u, s]), { title: g } = Nn(), y = Q(() => !((u == null ? void 0 : u.length) > 0), [u]);
|
|
3392
|
-
return
|
|
3392
|
+
return se(() => {
|
|
3393
3393
|
y && (document.title = g, window.history.replaceState({}, "", "/"));
|
|
3394
3394
|
}, [y, g]), /* @__PURE__ */ i(
|
|
3395
3395
|
bt.Provider,
|
|
@@ -3529,7 +3529,7 @@ const bn = vt.createContext(null), ui = async (e) => {
|
|
|
3529
3529
|
const L = T.domain;
|
|
3530
3530
|
if (T.domain && (M = await k.getHandler().evalDomain({
|
|
3531
3531
|
domain: T.domain,
|
|
3532
|
-
values:
|
|
3532
|
+
values: en({
|
|
3533
3533
|
fields: x,
|
|
3534
3534
|
values: { ..._, ...r }
|
|
3535
3535
|
}),
|
|
@@ -3814,7 +3814,7 @@ const _u = xt(Au), Fu = ({
|
|
|
3814
3814
|
ids: [t],
|
|
3815
3815
|
fieldsToRetrieve: I,
|
|
3816
3816
|
context: r
|
|
3817
|
-
})) == null ? void 0 : b[0] }), A = { ...
|
|
3817
|
+
})) == null ? void 0 : b[0] }), A = { ...an(A, I), active_id: t }, l(A), !(!S || !S.toolbar))
|
|
3818
3818
|
return {
|
|
3819
3819
|
actionItems: S.toolbar.action,
|
|
3820
3820
|
relateItems: S.toolbar.relate,
|
|
@@ -4024,11 +4024,11 @@ const _u = xt(Au), Fu = ({
|
|
|
4024
4024
|
return n.card ? /* @__PURE__ */ i(mo, { children: c }) : c;
|
|
4025
4025
|
}, ku = (e) => {
|
|
4026
4026
|
const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = Mc(), { actionData: a, treeShortcut: s, loading: l, error: c, fetchData: u } = Gd(n), f = Ln(
|
|
4027
|
-
|
|
4027
|
+
tn.FEATURE_READFORVIEW
|
|
4028
4028
|
), d = ee(
|
|
4029
4029
|
bt
|
|
4030
4030
|
), { openShortcut: m } = d || {};
|
|
4031
|
-
if (
|
|
4031
|
+
if (se(() => {
|
|
4032
4032
|
t && u();
|
|
4033
4033
|
}, [t, o]), c && c.message !== "active_id_not_found")
|
|
4034
4034
|
return /* @__PURE__ */ i(Ls, { error: c });
|
|
@@ -4100,7 +4100,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4100
4100
|
a.colors === "auto" ? f(d) : a.colors[d] || f(d)
|
|
4101
4101
|
);
|
|
4102
4102
|
}, [a == null ? void 0 : a.colorField]);
|
|
4103
|
-
return
|
|
4103
|
+
return se(() => {
|
|
4104
4104
|
m().catch((h) => console.error(h));
|
|
4105
4105
|
}, [a == null ? void 0 : a.colorField]), u ? /* @__PURE__ */ i(Ro, { color: l, children: u }) : null;
|
|
4106
4106
|
}, Ro = (e) => {
|
|
@@ -4135,7 +4135,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4135
4135
|
if (p && (A = [["id", "in", a]]), n.domain) {
|
|
4136
4136
|
const _ = await k.getHandler().evalDomain({
|
|
4137
4137
|
domain: n.domain,
|
|
4138
|
-
values:
|
|
4138
|
+
values: en({
|
|
4139
4139
|
fields: y == null ? void 0 : y.getFields(),
|
|
4140
4140
|
values: y.getPlainValues()
|
|
4141
4141
|
}),
|
|
@@ -4186,7 +4186,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4186
4186
|
);
|
|
4187
4187
|
};
|
|
4188
4188
|
return c ? /* @__PURE__ */ i(st, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(Z, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
|
|
4189
|
-
|
|
4189
|
+
Zt,
|
|
4190
4190
|
{
|
|
4191
4191
|
mode: "multiple",
|
|
4192
4192
|
value: s.length ? a : [],
|
|
@@ -4425,7 +4425,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4425
4425
|
}), n;
|
|
4426
4426
|
}, zs = () => {
|
|
4427
4427
|
const [e, t] = C(!document.hidden);
|
|
4428
|
-
return
|
|
4428
|
+
return se(() => {
|
|
4429
4429
|
const n = () => {
|
|
4430
4430
|
t(!document.hidden);
|
|
4431
4431
|
};
|
|
@@ -4445,7 +4445,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4445
4445
|
} = e, c = G(null), [u, f] = C(!0), [d, m] = ze(
|
|
4446
4446
|
k.getHandler().readObjects
|
|
4447
4447
|
), h = zs();
|
|
4448
|
-
|
|
4448
|
+
se(() => {
|
|
4449
4449
|
l === !1 && g(), (l === void 0 || l === !0) && !h && g(), (l === void 0 || l === !0) && h && y();
|
|
4450
4450
|
}, [l, h]);
|
|
4451
4451
|
const p = E(async () => {
|
|
@@ -4472,7 +4472,7 @@ const Nu = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ks,
|
|
|
4472
4472
|
r,
|
|
4473
4473
|
s
|
|
4474
4474
|
]);
|
|
4475
|
-
|
|
4475
|
+
Xt(() => (n && (o == null ? void 0 : o.length) && u && (p(), c.current = setInterval(p, tf)), () => {
|
|
4476
4476
|
m(), c.current && (clearInterval(c.current), c.current = null);
|
|
4477
4477
|
}), [
|
|
4478
4478
|
o,
|
|
@@ -4515,7 +4515,7 @@ function of(e, t) {
|
|
|
4515
4515
|
forcedValues: A = {},
|
|
4516
4516
|
parentWidth: b,
|
|
4517
4517
|
onMustRefreshParent: x
|
|
4518
|
-
} = e, { t: _ } = de(), [R, T] = C(!1), [F, D] = C(), [P, M] = C(), [L] = Ct.useForm(), [B, Y] = C(), [$, K] = C(), X = ee(qs), [z, J] = C(), [Te, he] = C(!1), H = G(), j = G({}), q = G({}),
|
|
4518
|
+
} = e, { t: _ } = de(), [R, T] = C(!1), [F, D] = C(), [P, M] = C(), [L] = Ct.useForm(), [B, Y] = C(), [$, K] = C(), X = ee(qs), [z, J] = C(), [Te, he] = C(!1), H = G(), j = G({}), q = G({}), ie = G(!1), ne = G(!1), N = G(!1), oe = (b !== void 0 ? b : z) < rf, we = ee(He), { activeId: ge, getPlainValues: Ee } = we || {}, Ue = G(!1), Ye = ee(
|
|
4519
4519
|
ft
|
|
4520
4520
|
), {
|
|
4521
4521
|
setFormIsSaving: Re = void 0,
|
|
@@ -4540,7 +4540,7 @@ function of(e, t) {
|
|
|
4540
4540
|
clearAndReload: () => {
|
|
4541
4541
|
H.current = void 0, M(void 0), Kn();
|
|
4542
4542
|
}
|
|
4543
|
-
})),
|
|
4543
|
+
})), se(() => {
|
|
4544
4544
|
if (D(void 0), !(!n && !p)) {
|
|
4545
4545
|
if (!O) {
|
|
4546
4546
|
H.current = void 0, M(void 0);
|
|
@@ -4548,8 +4548,8 @@ function of(e, t) {
|
|
|
4548
4548
|
}
|
|
4549
4549
|
(r === void 0 && $ || r !== void 0 && $ && r < 0) && (H.current = void 0, M(void 0)), Kn();
|
|
4550
4550
|
}
|
|
4551
|
-
}, [r, n, h, p, O]),
|
|
4552
|
-
Te && (
|
|
4551
|
+
}, [r, n, h, p, O]), se(() => {
|
|
4552
|
+
Te && (rn({
|
|
4553
4553
|
elementHasLostFocus: !0
|
|
4554
4554
|
}), he(!1));
|
|
4555
4555
|
}, [Te]);
|
|
@@ -4560,7 +4560,7 @@ function of(e, t) {
|
|
|
4560
4560
|
}, Ze = (U) => {
|
|
4561
4561
|
Re == null || Re(!1), u == null || u(U);
|
|
4562
4562
|
}, Se = E(() => r || H.current, [r]), [mt, Rt] = C(() => H.current);
|
|
4563
|
-
|
|
4563
|
+
se(() => {
|
|
4564
4564
|
H.current !== mt && Rt(H.current);
|
|
4565
4565
|
}, [H.current]);
|
|
4566
4566
|
const Dt = Q(() => r || mt, [r, mt]);
|
|
@@ -4620,13 +4620,13 @@ function of(e, t) {
|
|
|
4620
4620
|
).length !== 0, xe = E(
|
|
4621
4621
|
(U) => {
|
|
4622
4622
|
const W = L.getFieldsValue(!0);
|
|
4623
|
-
return
|
|
4623
|
+
return an(W, U);
|
|
4624
4624
|
},
|
|
4625
4625
|
[L]
|
|
4626
4626
|
), ht = (U, W) => {
|
|
4627
4627
|
qe({
|
|
4628
4628
|
values: {
|
|
4629
|
-
...
|
|
4629
|
+
...an(L.getFieldsValue(!0), $),
|
|
4630
4630
|
[U]: W
|
|
4631
4631
|
},
|
|
4632
4632
|
fields: $,
|
|
@@ -4658,7 +4658,7 @@ function of(e, t) {
|
|
|
4658
4658
|
Ie == null || Ie(!0), D(void 0), U != null && U.fields ? (le = U.fields, fe = U.arch) : (le = $, fe = B), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? W = h : { values: W, defaultGetCalled: _e } = await at({
|
|
4659
4659
|
fields: le,
|
|
4660
4660
|
arch: fe
|
|
4661
|
-
}), w && (W = { ...Vd(w), ...W }), j.current =
|
|
4661
|
+
}), w && (W = { ...Vd(w), ...W }), j.current = an(W, le), qe({
|
|
4662
4662
|
values: W,
|
|
4663
4663
|
fields: le,
|
|
4664
4664
|
reset: !0,
|
|
@@ -4694,7 +4694,7 @@ function of(e, t) {
|
|
|
4694
4694
|
reset: le,
|
|
4695
4695
|
isDefaultGet: fe = !1
|
|
4696
4696
|
}) => {
|
|
4697
|
-
const tt = { ...le ? {} : L.getFieldsValue(!0), ...U }, Vr =
|
|
4697
|
+
const tt = { ...le ? {} : L.getFieldsValue(!0), ...U }, Vr = an(tt, W), ml = Object.keys(W).map((Pr) => ({
|
|
4698
4698
|
name: Pr,
|
|
4699
4699
|
touched: !1,
|
|
4700
4700
|
value: Vr[Pr] !== void 0 ? Vr[Pr] : void 0
|
|
@@ -4708,7 +4708,7 @@ function of(e, t) {
|
|
|
4708
4708
|
}) => {
|
|
4709
4709
|
let le = {}, fe = !1;
|
|
4710
4710
|
if (Se()) {
|
|
4711
|
-
const _e = P ||
|
|
4711
|
+
const _e = P || nn({
|
|
4712
4712
|
arch: W,
|
|
4713
4713
|
fields: U,
|
|
4714
4714
|
values: {}
|
|
@@ -4793,7 +4793,7 @@ function of(e, t) {
|
|
|
4793
4793
|
ne.current = !1, Re == null || Re(!1), T(!1);
|
|
4794
4794
|
}
|
|
4795
4795
|
return { succeed: W, id: Se() };
|
|
4796
|
-
},
|
|
4796
|
+
}, nn = E(
|
|
4797
4797
|
({
|
|
4798
4798
|
fields: U,
|
|
4799
4799
|
arch: W,
|
|
@@ -4821,7 +4821,7 @@ function of(e, t) {
|
|
|
4821
4821
|
operationInProgress: fe = !1
|
|
4822
4822
|
}) => {
|
|
4823
4823
|
var tt;
|
|
4824
|
-
const _e =
|
|
4824
|
+
const _e = nn({
|
|
4825
4825
|
arch: W,
|
|
4826
4826
|
fields: U,
|
|
4827
4827
|
values: le,
|
|
@@ -4829,8 +4829,8 @@ function of(e, t) {
|
|
|
4829
4829
|
});
|
|
4830
4830
|
M(_e), _e.string && _e.string !== ue && (ae == null || ae(_e.string)), X && _e.string && ((tt = X.setTitle) == null || tt.call(X, _e.string));
|
|
4831
4831
|
},
|
|
4832
|
-
[X,
|
|
4833
|
-
),
|
|
4832
|
+
[X, nn, ae, ue]
|
|
4833
|
+
), rn = async ({
|
|
4834
4834
|
elementHasLostFocus: U = !1
|
|
4835
4835
|
}) => {
|
|
4836
4836
|
if (ne.current)
|
|
@@ -4855,10 +4855,10 @@ function of(e, t) {
|
|
|
4855
4855
|
"many2one"
|
|
4856
4856
|
]
|
|
4857
4857
|
}) && U !== !0)) {
|
|
4858
|
-
const fe =
|
|
4858
|
+
const fe = an(L.getFieldsValue(!0), $);
|
|
4859
4859
|
q.current = fe, c == null || c(fe), me == null || me(!0), lt(le);
|
|
4860
4860
|
}
|
|
4861
|
-
}, Rr = mc(
|
|
4861
|
+
}, Rr = mc(rn, 100), lt = async (U) => {
|
|
4862
4862
|
try {
|
|
4863
4863
|
for (let W = 0; W < U.length; W += 1) {
|
|
4864
4864
|
const le = U[W];
|
|
@@ -4912,10 +4912,10 @@ function of(e, t) {
|
|
|
4912
4912
|
reset: !1
|
|
4913
4913
|
});
|
|
4914
4914
|
}
|
|
4915
|
-
if (fe.warning && fe.warning.title && fe.warning.message && !
|
|
4915
|
+
if (fe.warning && fe.warning.title && fe.warning.message && !ie.current) {
|
|
4916
4916
|
const { title: _e, message: tt } = fe.warning;
|
|
4917
|
-
|
|
4918
|
-
|
|
4917
|
+
ie.current = !0, Xu(_e, tt, () => {
|
|
4918
|
+
ie.current = !1;
|
|
4919
4919
|
});
|
|
4920
4920
|
}
|
|
4921
4921
|
if (fe.domain && Object.keys(fe.domain).length > 0) {
|
|
@@ -5000,7 +5000,7 @@ function of(e, t) {
|
|
|
5000
5000
|
!S && le && (ye == null || ye(Se(), ce(), Ce()));
|
|
5001
5001
|
}
|
|
5002
5002
|
function ll() {
|
|
5003
|
-
|
|
5003
|
+
rn({ elementHasLostFocus: !0 });
|
|
5004
5004
|
}
|
|
5005
5005
|
function Er(U) {
|
|
5006
5006
|
Ot({
|
|
@@ -5149,7 +5149,7 @@ const Cn = xt(of), xn = (e) => {
|
|
|
5149
5149
|
actionData: l,
|
|
5150
5150
|
...c
|
|
5151
5151
|
} = e, { model: u } = c, { modalWidth: f } = Cr(), [d, m] = C(r), [h, p] = C(!1), [g, y] = C(), { action_id: v, res_id: w, action_type: O, view_id: S } = l || {};
|
|
5152
|
-
|
|
5152
|
+
se(() => {
|
|
5153
5153
|
s && I();
|
|
5154
5154
|
}, [l, s]);
|
|
5155
5155
|
async function I() {
|
|
@@ -5342,7 +5342,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5342
5342
|
});
|
|
5343
5343
|
a(h[0][1]), l(!1);
|
|
5344
5344
|
}, [t, o]);
|
|
5345
|
-
if (
|
|
5345
|
+
if (se(() => {
|
|
5346
5346
|
d();
|
|
5347
5347
|
}, [t]), !t && !s)
|
|
5348
5348
|
return /* @__PURE__ */ i(Z, {});
|
|
@@ -5436,16 +5436,20 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5436
5436
|
}) => {
|
|
5437
5437
|
const { token: o } = We.useToken(), [a, s] = C(
|
|
5438
5438
|
e ? e.split(";").map((y) => y.trim()).filter((y) => y) : []
|
|
5439
|
-
), [l, c] = C(""), u = G(null), f = ee(He), { elementHasLostFocus: d } = f || {}
|
|
5439
|
+
), [l, c] = C(""), u = G(null), f = ee(He), { elementHasLostFocus: d } = f || {};
|
|
5440
|
+
Xt(() => {
|
|
5441
|
+
if (e) {
|
|
5442
|
+
const y = e.split(";").map((v) => v.trim()).filter(Boolean);
|
|
5443
|
+
s(y);
|
|
5444
|
+
} else
|
|
5445
|
+
s([]);
|
|
5446
|
+
}, [e]);
|
|
5447
|
+
const m = E(
|
|
5440
5448
|
(y) => {
|
|
5441
5449
|
t && t(y.join(";"));
|
|
5442
5450
|
},
|
|
5443
5451
|
[t]
|
|
5444
|
-
)
|
|
5445
|
-
ie(() => {
|
|
5446
|
-
m(a);
|
|
5447
|
-
}, [m, a]);
|
|
5448
|
-
const h = (y) => {
|
|
5452
|
+
), h = (y) => {
|
|
5449
5453
|
const w = y.target.value.split(/[ ,;]+/), O = w.slice(0, -1).map((I) => I.trim()).filter((I) => I && !a.includes(I)), S = [...a, ...O].join(";");
|
|
5450
5454
|
(!n || S.length + w[w.length - 1].length <= n) && (O.length > 0 && (s([...a, ...O]), m([...a, ...O])), c(w[w.length - 1]));
|
|
5451
5455
|
}, p = () => {
|
|
@@ -5630,7 +5634,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5630
5634
|
l(!1);
|
|
5631
5635
|
}
|
|
5632
5636
|
}, [r, u, c, e == null ? void 0 : e.items]);
|
|
5633
|
-
|
|
5637
|
+
se(() => {
|
|
5634
5638
|
e != null && e.items && (e == null ? void 0 : e.items.length) > 0 && f();
|
|
5635
5639
|
}, [e == null ? void 0 : e.items]);
|
|
5636
5640
|
const d = Q(
|
|
@@ -5678,7 +5682,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5678
5682
|
dependencies: n = []
|
|
5679
5683
|
}) => {
|
|
5680
5684
|
const [r, o] = C(0);
|
|
5681
|
-
return
|
|
5685
|
+
return se(() => {
|
|
5682
5686
|
const s = () => {
|
|
5683
5687
|
if (e.current) {
|
|
5684
5688
|
const l = window.innerHeight, c = e.current.getBoundingClientRect(), u = l - c.top;
|
|
@@ -5701,7 +5705,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5701
5705
|
);
|
|
5702
5706
|
return { getColumnState: t, updateColumnState: n };
|
|
5703
5707
|
}, kf = (e) => {
|
|
5704
|
-
|
|
5708
|
+
se(() => () => {
|
|
5705
5709
|
n(), o();
|
|
5706
5710
|
}, []);
|
|
5707
5711
|
const [t, n] = ze(
|
|
@@ -5736,7 +5740,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5736
5740
|
return { getColumnState: a, updateColumnState: s };
|
|
5737
5741
|
}, $f = (e) => {
|
|
5738
5742
|
const t = Ln(
|
|
5739
|
-
|
|
5743
|
+
tn.FEATURE_USERVIEWPREFS
|
|
5740
5744
|
), {
|
|
5741
5745
|
getColumnState: n,
|
|
5742
5746
|
updateColumnState: r
|
|
@@ -5770,7 +5774,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5770
5774
|
return { getColumnState: s, updateColumnState: l };
|
|
5771
5775
|
}, na = (e) => {
|
|
5772
5776
|
const [t, n] = C(!0), r = G(void 0), o = G(!1), { getColumnState: a, updateColumnState: s } = $f(e);
|
|
5773
|
-
return
|
|
5777
|
+
return se(() => {
|
|
5774
5778
|
if (!e) {
|
|
5775
5779
|
n(!1);
|
|
5776
5780
|
return;
|
|
@@ -5857,7 +5861,7 @@ const lf = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Zs,
|
|
|
5857
5861
|
l(!1);
|
|
5858
5862
|
}
|
|
5859
5863
|
}, [n, f, t, e == null ? void 0 : e.columns, c]);
|
|
5860
|
-
|
|
5864
|
+
Xt(() => {
|
|
5861
5865
|
if (!(!f || Object.keys(f).length === 0))
|
|
5862
5866
|
return d(), () => {
|
|
5863
5867
|
u();
|
|
@@ -6134,7 +6138,7 @@ function Xf(e) {
|
|
|
6134
6138
|
)
|
|
6135
6139
|
] });
|
|
6136
6140
|
}
|
|
6137
|
-
const { defaultAlgorithm: Zf, defaultSeed: em } = We, tm = Zf(em), { Option: nm } =
|
|
6141
|
+
const { defaultAlgorithm: Zf, defaultSeed: em } = We, tm = Zf(em), { Option: nm } = Zt, rm = (e) => {
|
|
6138
6142
|
const { ooui: t } = e, { required: n } = t;
|
|
6139
6143
|
return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(om, { ...e }) });
|
|
6140
6144
|
}, om = (e) => {
|
|
@@ -6144,7 +6148,7 @@ const { defaultAlgorithm: Zf, defaultSeed: em } = We, tm = Zf(em), { Option: nm
|
|
|
6144
6148
|
}).map((d) => {
|
|
6145
6149
|
const [m, h] = d;
|
|
6146
6150
|
return /* @__PURE__ */ i(nm, { value: h, children: h }, m);
|
|
6147
|
-
}), u = s && !a ? im :
|
|
6151
|
+
}), u = s && !a ? im : Zt;
|
|
6148
6152
|
function f(d) {
|
|
6149
6153
|
const m = d.map((h) => {
|
|
6150
6154
|
const p = l.find(([g, y]) => h === y);
|
|
@@ -6167,7 +6171,7 @@ const { defaultAlgorithm: Zf, defaultSeed: em } = We, tm = Zf(em), { Option: nm
|
|
|
6167
6171
|
children: c
|
|
6168
6172
|
}
|
|
6169
6173
|
);
|
|
6170
|
-
}, im = dt(
|
|
6174
|
+
}, im = dt(Zt)`
|
|
6171
6175
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
6172
6176
|
background-color: ${tm.colorPrimaryBg};
|
|
6173
6177
|
}
|
|
@@ -6229,7 +6233,7 @@ const { useToken: sm } = We, { Title: am } = Wt, { Header: lm, Content: cm, Foot
|
|
|
6229
6233
|
},
|
|
6230
6234
|
[t]
|
|
6231
6235
|
);
|
|
6232
|
-
|
|
6236
|
+
se(() => (e ? (s(!0), document.addEventListener("keydown", f), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", f), document.body.style.overflow = ""), () => {
|
|
6233
6237
|
document.removeEventListener("keydown", f), document.body.style.overflow = "";
|
|
6234
6238
|
}), [e, f]);
|
|
6235
6239
|
const d = () => {
|
|
@@ -6582,7 +6586,7 @@ var aa = Zn, la = function() {
|
|
|
6582
6586
|
return o;
|
|
6583
6587
|
}, Um = Hm, ca = Function.prototype.bind || Um, Ai = {}.hasOwnProperty, jr = Function.prototype.call, Wm = jr.bind ? jr.bind(Ai) : function(e, t) {
|
|
6584
6588
|
return jr.call(Ai, e, t);
|
|
6585
|
-
}, De, gn = SyntaxError, da = Function,
|
|
6589
|
+
}, De, gn = SyntaxError, da = Function, un = TypeError, Br = function(e) {
|
|
6586
6590
|
try {
|
|
6587
6591
|
return da('"use strict"; return (' + e + ").constructor;")();
|
|
6588
6592
|
} catch {
|
|
@@ -6595,7 +6599,7 @@ if (Jt)
|
|
|
6595
6599
|
Jt = null;
|
|
6596
6600
|
}
|
|
6597
6601
|
var Hr = function() {
|
|
6598
|
-
throw new
|
|
6602
|
+
throw new un();
|
|
6599
6603
|
}, Ym = Jt ? function() {
|
|
6600
6604
|
try {
|
|
6601
6605
|
return arguments.callee, Hr;
|
|
@@ -6606,18 +6610,18 @@ var Hr = function() {
|
|
|
6606
6610
|
return Hr;
|
|
6607
6611
|
}
|
|
6608
6612
|
}
|
|
6609
|
-
}() : Hr,
|
|
6613
|
+
}() : Hr, on = $m(), Gm = Nm(), nt = Object.getPrototypeOf || (Gm ? function(e) {
|
|
6610
6614
|
return e.__proto__;
|
|
6611
|
-
} : null),
|
|
6615
|
+
} : null), ln = {}, Km = typeof Uint8Array > "u" || !nt ? De : nt(Uint8Array), Qt = {
|
|
6612
6616
|
"%AggregateError%": typeof AggregateError > "u" ? De : AggregateError,
|
|
6613
6617
|
"%Array%": Array,
|
|
6614
6618
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? De : ArrayBuffer,
|
|
6615
|
-
"%ArrayIteratorPrototype%":
|
|
6619
|
+
"%ArrayIteratorPrototype%": on && nt ? nt([][Symbol.iterator]()) : De,
|
|
6616
6620
|
"%AsyncFromSyncIteratorPrototype%": De,
|
|
6617
|
-
"%AsyncFunction%":
|
|
6618
|
-
"%AsyncGenerator%":
|
|
6619
|
-
"%AsyncGeneratorFunction%":
|
|
6620
|
-
"%AsyncIteratorPrototype%":
|
|
6621
|
+
"%AsyncFunction%": ln,
|
|
6622
|
+
"%AsyncGenerator%": ln,
|
|
6623
|
+
"%AsyncGeneratorFunction%": ln,
|
|
6624
|
+
"%AsyncIteratorPrototype%": ln,
|
|
6621
6625
|
"%Atomics%": typeof Atomics > "u" ? De : Atomics,
|
|
6622
6626
|
"%BigInt%": typeof BigInt > "u" ? De : BigInt,
|
|
6623
6627
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? De : BigInt64Array,
|
|
@@ -6637,16 +6641,16 @@ var Hr = function() {
|
|
|
6637
6641
|
"%Float64Array%": typeof Float64Array > "u" ? De : Float64Array,
|
|
6638
6642
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? De : FinalizationRegistry,
|
|
6639
6643
|
"%Function%": da,
|
|
6640
|
-
"%GeneratorFunction%":
|
|
6644
|
+
"%GeneratorFunction%": ln,
|
|
6641
6645
|
"%Int8Array%": typeof Int8Array > "u" ? De : Int8Array,
|
|
6642
6646
|
"%Int16Array%": typeof Int16Array > "u" ? De : Int16Array,
|
|
6643
6647
|
"%Int32Array%": typeof Int32Array > "u" ? De : Int32Array,
|
|
6644
6648
|
"%isFinite%": isFinite,
|
|
6645
6649
|
"%isNaN%": isNaN,
|
|
6646
|
-
"%IteratorPrototype%":
|
|
6650
|
+
"%IteratorPrototype%": on && nt ? nt(nt([][Symbol.iterator]())) : De,
|
|
6647
6651
|
"%JSON%": typeof JSON == "object" ? JSON : De,
|
|
6648
6652
|
"%Map%": typeof Map > "u" ? De : Map,
|
|
6649
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
6653
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !on || !nt ? De : nt((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
6650
6654
|
"%Math%": Math,
|
|
6651
6655
|
"%Number%": Number,
|
|
6652
6656
|
"%Object%": Object,
|
|
@@ -6659,15 +6663,15 @@ var Hr = function() {
|
|
|
6659
6663
|
"%Reflect%": typeof Reflect > "u" ? De : Reflect,
|
|
6660
6664
|
"%RegExp%": RegExp,
|
|
6661
6665
|
"%Set%": typeof Set > "u" ? De : Set,
|
|
6662
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
6666
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !on || !nt ? De : nt((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
6663
6667
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? De : SharedArrayBuffer,
|
|
6664
6668
|
"%String%": String,
|
|
6665
|
-
"%StringIteratorPrototype%":
|
|
6666
|
-
"%Symbol%":
|
|
6669
|
+
"%StringIteratorPrototype%": on && nt ? nt(""[Symbol.iterator]()) : De,
|
|
6670
|
+
"%Symbol%": on ? Symbol : De,
|
|
6667
6671
|
"%SyntaxError%": gn,
|
|
6668
6672
|
"%ThrowTypeError%": Ym,
|
|
6669
6673
|
"%TypedArray%": Km,
|
|
6670
|
-
"%TypeError%":
|
|
6674
|
+
"%TypeError%": un,
|
|
6671
6675
|
"%Uint8Array%": typeof Uint8Array > "u" ? De : Uint8Array,
|
|
6672
6676
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? De : Uint8ClampedArray,
|
|
6673
6677
|
"%Uint16Array%": typeof Uint16Array > "u" ? De : Uint16Array,
|
|
@@ -6766,8 +6770,8 @@ var zm = function e(t) {
|
|
|
6766
6770
|
var r = t, o;
|
|
6767
6771
|
if (ar(Oi, r) && (o = Oi[r], r = "%" + o[0] + "%"), ar(Qt, r)) {
|
|
6768
6772
|
var a = Qt[r];
|
|
6769
|
-
if (a ===
|
|
6770
|
-
throw new
|
|
6773
|
+
if (a === ln && (a = zm(r)), typeof a > "u" && !n)
|
|
6774
|
+
throw new un("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
6771
6775
|
return {
|
|
6772
6776
|
alias: o,
|
|
6773
6777
|
name: r,
|
|
@@ -6777,9 +6781,9 @@ var zm = function e(t) {
|
|
|
6777
6781
|
throw new gn("intrinsic " + t + " does not exist!");
|
|
6778
6782
|
}, Un = function(t, n) {
|
|
6779
6783
|
if (typeof t != "string" || t.length === 0)
|
|
6780
|
-
throw new
|
|
6784
|
+
throw new un("intrinsic name must be a non-empty string");
|
|
6781
6785
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
6782
|
-
throw new
|
|
6786
|
+
throw new un('"allowMissing" argument must be a boolean');
|
|
6783
6787
|
if (Xm(/^%?[^%]*%?$/, t) === null)
|
|
6784
6788
|
throw new gn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
6785
6789
|
var r = tp(t), o = r.length > 0 ? r[0] : "", a = np("%" + o + "%", n), s = a.name, l = a.value, c = !1, u = a.alias;
|
|
@@ -6793,7 +6797,7 @@ var zm = function e(t) {
|
|
|
6793
6797
|
else if (l != null) {
|
|
6794
6798
|
if (!(m in l)) {
|
|
6795
6799
|
if (!n)
|
|
6796
|
-
throw new
|
|
6800
|
+
throw new un("base intrinsic for " + t + " exists, but the property is not available.");
|
|
6797
6801
|
return;
|
|
6798
6802
|
}
|
|
6799
6803
|
if (Jt && f + 1 >= r.length) {
|
|
@@ -6874,19 +6878,19 @@ function cp() {
|
|
|
6874
6878
|
}
|
|
6875
6879
|
return Ur = t, Ur;
|
|
6876
6880
|
}
|
|
6877
|
-
var dp = Mo(), No = Un, Ri = dp && No("%Object.defineProperty%", !0), up = No("%SyntaxError%"),
|
|
6881
|
+
var dp = Mo(), No = Un, Ri = dp && No("%Object.defineProperty%", !0), up = No("%SyntaxError%"), sn = No("%TypeError%"), Di = cp(), ga = function(t, n, r) {
|
|
6878
6882
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
6879
|
-
throw new
|
|
6883
|
+
throw new sn("`obj` must be an object or a function`");
|
|
6880
6884
|
if (typeof n != "string" && typeof n != "symbol")
|
|
6881
|
-
throw new
|
|
6885
|
+
throw new sn("`property` must be a string or a symbol`");
|
|
6882
6886
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
6883
|
-
throw new
|
|
6887
|
+
throw new sn("`nonEnumerable`, if provided, must be a boolean or null");
|
|
6884
6888
|
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
6885
|
-
throw new
|
|
6889
|
+
throw new sn("`nonWritable`, if provided, must be a boolean or null");
|
|
6886
6890
|
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
6887
|
-
throw new
|
|
6891
|
+
throw new sn("`nonConfigurable`, if provided, must be a boolean or null");
|
|
6888
6892
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
6889
|
-
throw new
|
|
6893
|
+
throw new sn("`loose`, if provided, must be a boolean");
|
|
6890
6894
|
var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, s = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!Di && Di(t, n);
|
|
6891
6895
|
if (Ri)
|
|
6892
6896
|
Ri(t, n, {
|
|
@@ -7087,7 +7091,7 @@ var lh = Ra;
|
|
|
7087
7091
|
const Da = /* @__PURE__ */ xs(lh), ch = xt(
|
|
7088
7092
|
(e, t) => {
|
|
7089
7093
|
const { onSubmit: n, searchValues: r, searchFields: o, onChange: a } = e, [s] = Ct.useForm();
|
|
7090
|
-
|
|
7094
|
+
se(() => {
|
|
7091
7095
|
s.setFieldsValue(r);
|
|
7092
7096
|
}, [r]), Tt(t, () => ({
|
|
7093
7097
|
submit: s.submit,
|
|
@@ -7139,7 +7143,7 @@ const Da = /* @__PURE__ */ xs(lh), ch = xt(
|
|
|
7139
7143
|
), dh = (e) => {
|
|
7140
7144
|
var O;
|
|
7141
7145
|
const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: a, searchValues: s } = e, l = G(), { t: c } = de(), [u, f] = C(), d = G(null), [m, h] = C();
|
|
7142
|
-
|
|
7146
|
+
se(() => {
|
|
7143
7147
|
n && (h(void 0), setTimeout(() => {
|
|
7144
7148
|
const S = document.querySelector(
|
|
7145
7149
|
"#floating-drawer-overlay input"
|
|
@@ -7316,7 +7320,7 @@ function Lo(e) {
|
|
|
7316
7320
|
searchValues: m,
|
|
7317
7321
|
showLimitOptions: h = !0
|
|
7318
7322
|
} = e, [p, g] = C(), [y, v] = C(), [w, O] = C(!1), S = G(), { token: I } = ph(), [A] = Ct.useForm();
|
|
7319
|
-
|
|
7323
|
+
se(() => {
|
|
7320
7324
|
A.setFieldsValue(m);
|
|
7321
7325
|
}, [m]);
|
|
7322
7326
|
const b = () => {
|
|
@@ -7476,7 +7480,7 @@ const gh = 3 * 1e3, yh = (e) => {
|
|
|
7476
7480
|
} = e, l = G(null), [c, u] = C(!0), [f, d] = ze(
|
|
7477
7481
|
k.getHandler().readObjects
|
|
7478
7482
|
), m = zs();
|
|
7479
|
-
|
|
7483
|
+
se(() => {
|
|
7480
7484
|
s === !1 && p(), (s === void 0 || s === !0) && !m && p(), (s === void 0 || s === !0) && m && g();
|
|
7481
7485
|
}, [s, m]);
|
|
7482
7486
|
const h = E(async () => {
|
|
@@ -7506,7 +7510,7 @@ const gh = 3 * 1e3, yh = (e) => {
|
|
|
7506
7510
|
a,
|
|
7507
7511
|
r
|
|
7508
7512
|
]);
|
|
7509
|
-
|
|
7513
|
+
Xt(() => ((o == null ? void 0 : o.length) && c && (h(), l.current = setInterval(h, gh)), () => {
|
|
7510
7514
|
d(), l.current && (clearInterval(l.current), l.current = null);
|
|
7511
7515
|
}), [
|
|
7512
7516
|
o,
|
|
@@ -7561,14 +7565,14 @@ function bh(e, t) {
|
|
|
7561
7565
|
setResults: H,
|
|
7562
7566
|
results: j,
|
|
7563
7567
|
setSearchQuery: q,
|
|
7564
|
-
setTotalItems:
|
|
7568
|
+
setTotalItems: ie,
|
|
7565
7569
|
isActive: ne,
|
|
7566
7570
|
sortState: N,
|
|
7567
7571
|
setSortState: re
|
|
7568
7572
|
} = hh({ useLocalState: !c }), oe = d || Te, we = G(oe);
|
|
7569
|
-
|
|
7573
|
+
se(() => {
|
|
7570
7574
|
$e();
|
|
7571
|
-
}, []),
|
|
7575
|
+
}, []), se(() => {
|
|
7572
7576
|
var ve;
|
|
7573
7577
|
(oe !== void 0 && we.current === void 0 || typeof oe == "string" && typeof we.current == "string" && oe !== we.current) && (K == null || K([]), J == null || J({}), (ve = g.current) == null || ve.unselectAll(), At()), we.current = oe;
|
|
7574
7578
|
}, [oe]);
|
|
@@ -7610,7 +7614,7 @@ function bh(e, t) {
|
|
|
7610
7614
|
const Ge = `${JSON.stringify(oe ? s : Oe)}-${oe}`;
|
|
7611
7615
|
return Ge !== ke.current ? (ke.current = Ge, !0) : !1;
|
|
7612
7616
|
}, [s, Oe, oe]), $e = E(async () => {
|
|
7613
|
-
A(void 0),
|
|
7617
|
+
A(void 0), ie(0), S(!0);
|
|
7614
7618
|
try {
|
|
7615
7619
|
const ve = await k.getHandler().searchCount({
|
|
7616
7620
|
params: oe ? s : Oe,
|
|
@@ -7618,7 +7622,7 @@ function bh(e, t) {
|
|
|
7618
7622
|
context: u,
|
|
7619
7623
|
name_search: oe
|
|
7620
7624
|
});
|
|
7621
|
-
A(ve),
|
|
7625
|
+
A(ve), ie(ve);
|
|
7622
7626
|
} catch (ve) {
|
|
7623
7627
|
w(ve);
|
|
7624
7628
|
} finally {
|
|
@@ -7630,7 +7634,7 @@ function bh(e, t) {
|
|
|
7630
7634
|
n,
|
|
7631
7635
|
oe,
|
|
7632
7636
|
u,
|
|
7633
|
-
|
|
7637
|
+
ie,
|
|
7634
7638
|
w
|
|
7635
7639
|
]), ue = wt(
|
|
7636
7640
|
async ({
|
|
@@ -7659,7 +7663,7 @@ function bh(e, t) {
|
|
|
7659
7663
|
});
|
|
7660
7664
|
re == null || re(zn), St = Qr(Dr);
|
|
7661
7665
|
}
|
|
7662
|
-
const qn = oe ? s : Oe, { results: Mt, attrsEvaluated:
|
|
7666
|
+
const qn = oe ? s : Oe, { results: Mt, attrsEvaluated: nn } = await k.getHandler().searchForTree({
|
|
7663
7667
|
params: qn,
|
|
7664
7668
|
limit: Ge - ve,
|
|
7665
7669
|
offset: ve,
|
|
@@ -7683,19 +7687,19 @@ function bh(e, t) {
|
|
|
7683
7687
|
H == null || H(lt);
|
|
7684
7688
|
}
|
|
7685
7689
|
if (pt.current = St, Mt.length === 0)
|
|
7686
|
-
return y.current = [], A(0),
|
|
7687
|
-
const
|
|
7690
|
+
return y.current = [], A(0), ie(0), [];
|
|
7691
|
+
const rn = Ir(ge, Mt), Rr = pn(nn);
|
|
7688
7692
|
if (h.current = {
|
|
7689
7693
|
...h.current,
|
|
7690
7694
|
...Rr
|
|
7691
7695
|
}, !p.current && ge.status && (p.current = {}), ge.status) {
|
|
7692
|
-
const lt = tr(
|
|
7696
|
+
const lt = tr(nn);
|
|
7693
7697
|
p.current = {
|
|
7694
7698
|
...p.current,
|
|
7695
7699
|
...lt
|
|
7696
7700
|
};
|
|
7697
7701
|
}
|
|
7698
|
-
return y.current = [...
|
|
7702
|
+
return y.current = [...rn], rn;
|
|
7699
7703
|
},
|
|
7700
7704
|
[
|
|
7701
7705
|
j,
|
|
@@ -7709,7 +7713,7 @@ function bh(e, t) {
|
|
|
7709
7713
|
H,
|
|
7710
7714
|
re,
|
|
7711
7715
|
q,
|
|
7712
|
-
|
|
7716
|
+
ie,
|
|
7713
7717
|
ge,
|
|
7714
7718
|
R
|
|
7715
7719
|
]
|
|
@@ -7736,12 +7740,12 @@ function bh(e, t) {
|
|
|
7736
7740
|
state: qe
|
|
7737
7741
|
});
|
|
7738
7742
|
} catch (at) {
|
|
7739
|
-
throw console.error(at), A(null),
|
|
7743
|
+
throw console.error(at), A(null), ie(0), w(at), at;
|
|
7740
7744
|
} finally {
|
|
7741
7745
|
D == null || D(!1);
|
|
7742
7746
|
}
|
|
7743
7747
|
},
|
|
7744
|
-
[ue,
|
|
7748
|
+
[ue, ie, D, w]
|
|
7745
7749
|
), Pe = E((ve) => {
|
|
7746
7750
|
var Ge, qe, at, St;
|
|
7747
7751
|
if (h.current[(qe = (Ge = ve.node) == null ? void 0 : Ge.data) == null ? void 0 : qe.id])
|
|
@@ -7850,7 +7854,7 @@ function bh(e, t) {
|
|
|
7850
7854
|
ge,
|
|
7851
7855
|
me
|
|
7852
7856
|
]), Ce = G(z), Ve = G(P), ke = G(), pt = G();
|
|
7853
|
-
|
|
7857
|
+
Xt(() => {
|
|
7854
7858
|
const ve = !Da(
|
|
7855
7859
|
z,
|
|
7856
7860
|
Ce.current
|
|
@@ -8078,23 +8082,23 @@ const Ea = xt(bh), Yi = (e, t = "14px -apple-system") => {
|
|
|
8078
8082
|
var q;
|
|
8079
8083
|
(q = x.current) == null || q.unselectAll();
|
|
8080
8084
|
}
|
|
8081
|
-
})),
|
|
8085
|
+
})), se(() => {
|
|
8082
8086
|
const q = Bt(a);
|
|
8083
8087
|
D(q), q.string && B !== q.string && (Y == null || Y(q.string));
|
|
8084
|
-
}, [a, B]),
|
|
8088
|
+
}, [a, B]), se(() => {
|
|
8085
8089
|
if (!F)
|
|
8086
8090
|
return;
|
|
8087
8091
|
T.current = !1;
|
|
8088
8092
|
const q = Ir(F, s);
|
|
8089
8093
|
R(q);
|
|
8090
|
-
}, [s]),
|
|
8094
|
+
}, [s]), se(() => {
|
|
8091
8095
|
M.current = r;
|
|
8092
8096
|
}, [r]);
|
|
8093
8097
|
const K = (n - 1) * M.current + 1, X = K - 1 + _.length, z = o === void 0 ? null : o === 0 ? P("no_results") : P("summary").replace("{from}", K == null ? void 0 : K.toString()).replace("{to}", X == null ? void 0 : X.toString()).replace("{total}", o == null ? void 0 : o.toString()), J = Q(() => {
|
|
8094
8098
|
if (!f || a.isExpandable)
|
|
8095
8099
|
return null;
|
|
8096
8100
|
const q = _ == null ? void 0 : _.filter(
|
|
8097
|
-
(
|
|
8101
|
+
(ie) => d && d.includes(ie.id)
|
|
8098
8102
|
).length;
|
|
8099
8103
|
return c ? null : o === void 0 ? /* @__PURE__ */ i(Ke, { className: "pb-4" }) : /* @__PURE__ */ V(je, { align: "bottom", className: "pb-4", children: [
|
|
8100
8104
|
/* @__PURE__ */ i(Ae, { span: b ? 8 : 12, children: /* @__PURE__ */ i(
|
|
@@ -8136,11 +8140,11 @@ const Ea = xt(bh), Yi = (e, t = "14px -apple-system") => {
|
|
|
8136
8140
|
const q = F.columns.filter((N) => N.sum !== void 0).map((N) => ({ label: N.sum, field: N.id }));
|
|
8137
8141
|
if (!q || q.length === 0)
|
|
8138
8142
|
return null;
|
|
8139
|
-
const
|
|
8143
|
+
const ie = [], ne = (d == null ? void 0 : d.length) > 0 ? _.filter((N) => d.includes(N.id)) : _;
|
|
8140
8144
|
return q.forEach((N) => {
|
|
8141
8145
|
const re = ne.reduce((oe, we) => we[N.field] && !isNaN(we[N.field]) ? oe + we[N.field] : oe, 0);
|
|
8142
|
-
|
|
8143
|
-
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children:
|
|
8146
|
+
ie.push(`${N.label}: ${Math.round(re * 100) / 100}`);
|
|
8147
|
+
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ie.join(", ") });
|
|
8144
8148
|
}, [_, d, F]), he = Q(() => {
|
|
8145
8149
|
if (F !== null && $ && $.length > 0)
|
|
8146
8150
|
return Sh($, _, 600);
|
|
@@ -8210,7 +8214,7 @@ const Pa = (e) => {
|
|
|
8210
8214
|
searchParams: A = [],
|
|
8211
8215
|
setSearchValues: b,
|
|
8212
8216
|
clearSelection: x
|
|
8213
|
-
} = e, [_, R] = C(!1), [T, F] = C(!1), [D, P] = C(), [M, L] = C(1), [B, Y] = C(0), [$, K] = C(), [X, z] = C([]), [J, Te] = C(void 0), [he, H] = C(void 0), j = G(S || Ht), q = G([]),
|
|
8217
|
+
} = e, [_, R] = C(!1), [T, F] = C(!1), [D, P] = C(), [M, L] = C(1), [B, Y] = C(0), [$, K] = C(), [X, z] = C([]), [J, Te] = C(void 0), [he, H] = C(void 0), j = G(S || Ht), q = G([]), ie = E(
|
|
8214
8218
|
(me) => {
|
|
8215
8219
|
y == null || y([...me]), z([...me]);
|
|
8216
8220
|
},
|
|
@@ -8235,17 +8239,17 @@ const Pa = (e) => {
|
|
|
8235
8239
|
attrs: ue
|
|
8236
8240
|
}), be = ae[0];
|
|
8237
8241
|
q.current = [...be], Te(pn(ae[1])), H(tr(ae[1]));
|
|
8238
|
-
const Be = be.map((pe) => pe.id), Pe = h !== void 0 ?
|
|
8242
|
+
const Be = be.map((pe) => pe.id), Pe = h !== void 0 ? dn({
|
|
8239
8243
|
resultsToSort: be,
|
|
8240
8244
|
sorter: h,
|
|
8241
8245
|
fields: { ...d.fields, ...m.fields }
|
|
8242
8246
|
}) : [...q.current];
|
|
8243
|
-
|
|
8247
|
+
ie(Pe), Be.length > 0 ? g == null || g(0) : g == null || g(void 0);
|
|
8244
8248
|
} else
|
|
8245
|
-
|
|
8249
|
+
ie([]), g == null || g(void 0);
|
|
8246
8250
|
R(!1), c.current = !0;
|
|
8247
8251
|
}, [
|
|
8248
|
-
|
|
8252
|
+
ie,
|
|
8249
8253
|
c,
|
|
8250
8254
|
l,
|
|
8251
8255
|
t,
|
|
@@ -8270,12 +8274,12 @@ const Pa = (e) => {
|
|
|
8270
8274
|
attrs: be
|
|
8271
8275
|
});
|
|
8272
8276
|
Te(pn(pe)), H(tr(pe)), q.current = [...Pe];
|
|
8273
|
-
const ye = h !== void 0 ?
|
|
8277
|
+
const ye = h !== void 0 ? dn({
|
|
8274
8278
|
resultsToSort: Pe,
|
|
8275
8279
|
sorter: h,
|
|
8276
8280
|
fields: { ...d.fields, ...m.fields }
|
|
8277
8281
|
}) : [...q.current];
|
|
8278
|
-
if (
|
|
8282
|
+
if (ie(ye), v && ye.length > 0) {
|
|
8279
8283
|
const Ze = ye.findIndex(
|
|
8280
8284
|
(Se) => O === Se.id
|
|
8281
8285
|
);
|
|
@@ -8289,7 +8293,7 @@ const Pa = (e) => {
|
|
|
8289
8293
|
[
|
|
8290
8294
|
g,
|
|
8291
8295
|
v,
|
|
8292
|
-
|
|
8296
|
+
ie,
|
|
8293
8297
|
O,
|
|
8294
8298
|
t,
|
|
8295
8299
|
u,
|
|
@@ -8325,12 +8329,12 @@ const Pa = (e) => {
|
|
|
8325
8329
|
if (JSON.stringify(me) === JSON.stringify(h))
|
|
8326
8330
|
return;
|
|
8327
8331
|
p == null || p(me);
|
|
8328
|
-
const Oe = me !== void 0 ?
|
|
8332
|
+
const Oe = me !== void 0 ? dn({
|
|
8329
8333
|
resultsToSort: ne(),
|
|
8330
8334
|
sorter: me,
|
|
8331
8335
|
fields: { ...d.fields, ...m.fields }
|
|
8332
8336
|
}) : [...q.current];
|
|
8333
|
-
|
|
8337
|
+
ie(Oe);
|
|
8334
8338
|
},
|
|
8335
8339
|
[
|
|
8336
8340
|
h,
|
|
@@ -8338,7 +8342,7 @@ const Pa = (e) => {
|
|
|
8338
8342
|
ne,
|
|
8339
8343
|
d == null ? void 0 : d.fields,
|
|
8340
8344
|
m == null ? void 0 : m.fields,
|
|
8341
|
-
|
|
8345
|
+
ie
|
|
8342
8346
|
]
|
|
8343
8347
|
), ge = E(
|
|
8344
8348
|
(me) => {
|
|
@@ -8380,9 +8384,9 @@ const Pa = (e) => {
|
|
|
8380
8384
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
8381
8385
|
context: u
|
|
8382
8386
|
});
|
|
8383
|
-
return
|
|
8387
|
+
return ie([...ne(), ...Ie]), Ir(Bt(d), Ie);
|
|
8384
8388
|
},
|
|
8385
|
-
[d, t, u, ne,
|
|
8389
|
+
[d, t, u, ne, ie]
|
|
8386
8390
|
), Re = E(async () => await k.getHandler().searchAllIds({
|
|
8387
8391
|
params: hn(A, w),
|
|
8388
8392
|
model: t,
|
|
@@ -8439,7 +8443,7 @@ function Th(e, t) {
|
|
|
8439
8443
|
searchVisible: H = !0,
|
|
8440
8444
|
setSearchVisible: j = void 0,
|
|
8441
8445
|
sorter: q = void 0,
|
|
8442
|
-
setSorter:
|
|
8446
|
+
setSorter: ie = void 0,
|
|
8443
8447
|
setTotalItems: ne = void 0,
|
|
8444
8448
|
setSearchTreeNameSearch: N = void 0,
|
|
8445
8449
|
setTreeIsLoading: re = void 0,
|
|
@@ -8485,7 +8489,7 @@ function Th(e, t) {
|
|
|
8485
8489
|
formView: b,
|
|
8486
8490
|
treeView: I,
|
|
8487
8491
|
sorter: q,
|
|
8488
|
-
setSorter:
|
|
8492
|
+
setSorter: ie,
|
|
8489
8493
|
setCurrentItemIndex: $,
|
|
8490
8494
|
setResultsActionView: Y,
|
|
8491
8495
|
resultsActionView: X,
|
|
@@ -8502,7 +8506,7 @@ function Th(e, t) {
|
|
|
8502
8506
|
},
|
|
8503
8507
|
getFields: () => I == null ? void 0 : I.fields,
|
|
8504
8508
|
getDomain: () => c
|
|
8505
|
-
})),
|
|
8509
|
+
})), se(() => {
|
|
8506
8510
|
g && u && I && (v.current = !1, me());
|
|
8507
8511
|
}, [ue, be, g, u, s, I]);
|
|
8508
8512
|
const Rt = async () => {
|
|
@@ -8529,7 +8533,7 @@ function Th(e, t) {
|
|
|
8529
8533
|
context: d
|
|
8530
8534
|
})), x(xe), A(ht);
|
|
8531
8535
|
};
|
|
8532
|
-
|
|
8536
|
+
se(() => {
|
|
8533
8537
|
Rt();
|
|
8534
8538
|
}, [n]);
|
|
8535
8539
|
const te = E(
|
|
@@ -8805,9 +8809,9 @@ const ka = xt(Th), jo = ({
|
|
|
8805
8809
|
id: c,
|
|
8806
8810
|
domain: u
|
|
8807
8811
|
} = r, f = o && !s ? { backgroundColor: $a.colorPrimaryBg } : void 0, [d, m] = C(!1), [h, p] = C(!1), [g, y] = C(!1), [v, w] = C(), O = G(!1), [S, I] = C(""), A = G(), b = ee(He), { domain: x, getValues: _, getFields: R, getContext: T, elementHasLostFocus: F } = b || {}, D = G([]), [P, M] = C([]), L = t && t[0] || void 0, B = t && t[1] || "";
|
|
8808
|
-
|
|
8812
|
+
se(() => {
|
|
8809
8813
|
!Array.isArray(t) && t && z(t);
|
|
8810
|
-
}, [t]),
|
|
8814
|
+
}, [t]), se(() => {
|
|
8811
8815
|
L && B.length === 0 ? z(L) : L && B.length > 0 ? I(B) : !L && !B && I(A.current || "");
|
|
8812
8816
|
}, [t]);
|
|
8813
8817
|
const Y = (H) => {
|
|
@@ -8869,7 +8873,7 @@ const ka = xt(Th), jo = ({
|
|
|
8869
8873
|
async function J() {
|
|
8870
8874
|
u && (D.current = await k.getHandler().evalDomain({
|
|
8871
8875
|
domain: u,
|
|
8872
|
-
values:
|
|
8876
|
+
values: en({
|
|
8873
8877
|
fields: R(),
|
|
8874
8878
|
values: _()
|
|
8875
8879
|
}),
|
|
@@ -9117,7 +9121,7 @@ const ka = xt(Th), jo = ({
|
|
|
9117
9121
|
{ label: o("actions"), items: e == null ? void 0 : e.action }
|
|
9118
9122
|
],
|
|
9119
9123
|
onItemClick: async (p) => {
|
|
9120
|
-
p && (await
|
|
9124
|
+
p && (await fn({ onFormSave: u })).succeed && f(p);
|
|
9121
9125
|
}
|
|
9122
9126
|
},
|
|
9123
9127
|
printButtonProps: {
|
|
@@ -9128,7 +9132,7 @@ const ka = xt(Th), jo = ({
|
|
|
9128
9132
|
],
|
|
9129
9133
|
onItemClick: async (p) => {
|
|
9130
9134
|
if (p) {
|
|
9131
|
-
const g = await
|
|
9135
|
+
const g = await fn({ onFormSave: u });
|
|
9132
9136
|
g.succeed && f({
|
|
9133
9137
|
...p,
|
|
9134
9138
|
datas: {
|
|
@@ -9147,7 +9151,7 @@ const ka = xt(Th), jo = ({
|
|
|
9147
9151
|
],
|
|
9148
9152
|
onItemClick: async (p) => {
|
|
9149
9153
|
var g, y;
|
|
9150
|
-
p && (await
|
|
9154
|
+
p && (await fn({ onFormSave: u })).succeed && c({
|
|
9151
9155
|
relateData: p,
|
|
9152
9156
|
values: (g = n.current) == null ? void 0 : g.getValues(),
|
|
9153
9157
|
fields: (y = n.current) == null ? void 0 : y.getFields(),
|
|
@@ -9157,7 +9161,7 @@ const ka = xt(Th), jo = ({
|
|
|
9157
9161
|
}
|
|
9158
9162
|
}
|
|
9159
9163
|
};
|
|
9160
|
-
},
|
|
9164
|
+
}, fn = async ({
|
|
9161
9165
|
onFormSave: e
|
|
9162
9166
|
}) => {
|
|
9163
9167
|
const t = await (e == null ? void 0 : e());
|
|
@@ -9571,10 +9575,10 @@ const $h = (e) => {
|
|
|
9571
9575
|
relation: H,
|
|
9572
9576
|
context: j,
|
|
9573
9577
|
domain: q
|
|
9574
|
-
} = r,
|
|
9578
|
+
} = r, ie = r.type === "many2many", { id: ne } = r, N = a.filter(
|
|
9575
9579
|
(te) => (te.values || te.treeValues) && te.operation !== "pendingRemove"
|
|
9576
9580
|
), re = G();
|
|
9577
|
-
|
|
9581
|
+
se(() => {
|
|
9578
9582
|
if (re.current !== s) {
|
|
9579
9583
|
re.current = s, oe();
|
|
9580
9584
|
return;
|
|
@@ -9584,7 +9588,7 @@ const $h = (e) => {
|
|
|
9584
9588
|
const oe = E(() => {
|
|
9585
9589
|
(s === "form" && a.some((te) => !te.values) || s === "tree" && a.some((te) => !te.treeValues)) && ge();
|
|
9586
9590
|
}, [a, s]);
|
|
9587
|
-
|
|
9591
|
+
se(() => {
|
|
9588
9592
|
Ue();
|
|
9589
9593
|
}, [g]);
|
|
9590
9594
|
const we = (te) => {
|
|
@@ -9622,7 +9626,7 @@ const $h = (e) => {
|
|
|
9622
9626
|
async function Ue() {
|
|
9623
9627
|
q && (Y.current = await k.getHandler().evalDomain({
|
|
9624
9628
|
domain: q,
|
|
9625
|
-
values:
|
|
9629
|
+
values: en({
|
|
9626
9630
|
fields: m(),
|
|
9627
9631
|
values: h()
|
|
9628
9632
|
}),
|
|
@@ -9675,7 +9679,7 @@ const $h = (e) => {
|
|
|
9675
9679
|
}
|
|
9676
9680
|
}) : te();
|
|
9677
9681
|
}, $e = () => {
|
|
9678
|
-
if (
|
|
9682
|
+
if (ie) {
|
|
9679
9683
|
ja({
|
|
9680
9684
|
t: v,
|
|
9681
9685
|
onOk: async () => {
|
|
@@ -9827,7 +9831,7 @@ const $h = (e) => {
|
|
|
9827
9831
|
}
|
|
9828
9832
|
);
|
|
9829
9833
|
let te = [];
|
|
9830
|
-
if (N.some((ke) => ke.treeValues) && (te = $ ?
|
|
9834
|
+
if (N.some((ke) => ke.treeValues) && (te = $ ? dn({
|
|
9831
9835
|
resultsToSort: N.map((ke) => ke.treeValues),
|
|
9832
9836
|
sorter: $,
|
|
9833
9837
|
fields: {
|
|
@@ -9882,7 +9886,7 @@ const $h = (e) => {
|
|
|
9882
9886
|
currentId: (mt = N[c]) == null ? void 0 : mt.id,
|
|
9883
9887
|
title: Ne(),
|
|
9884
9888
|
readOnly: he || !1,
|
|
9885
|
-
isMany2Many:
|
|
9889
|
+
isMany2Many: ie,
|
|
9886
9890
|
formHasChanges: w,
|
|
9887
9891
|
totalItems: N.length,
|
|
9888
9892
|
currentItemIndex: c,
|
|
@@ -9952,13 +9956,13 @@ const $h = (e) => {
|
|
|
9952
9956
|
getContext: a,
|
|
9953
9957
|
domain: s
|
|
9954
9958
|
} = ee(He) || {};
|
|
9955
|
-
|
|
9959
|
+
se(() => {
|
|
9956
9960
|
l();
|
|
9957
9961
|
}, [s]);
|
|
9958
9962
|
async function l() {
|
|
9959
9963
|
t && (n.current = await k.getHandler().evalDomain({
|
|
9960
9964
|
domain: t,
|
|
9961
|
-
values:
|
|
9965
|
+
values: en({
|
|
9962
9966
|
fields: r(),
|
|
9963
9967
|
values: o()
|
|
9964
9968
|
}),
|
|
@@ -10039,7 +10043,7 @@ const $h = (e) => {
|
|
|
10039
10043
|
triggerChange: a
|
|
10040
10044
|
}) => {
|
|
10041
10045
|
const [s, l] = C(!1), { itemIndex: c } = ee(Tn), { t: u } = de();
|
|
10042
|
-
|
|
10046
|
+
se(() => {
|
|
10043
10047
|
const p = e[c];
|
|
10044
10048
|
(!p || (p == null ? void 0 : p.operation) === "original") && l(!1);
|
|
10045
10049
|
}, [c, e]);
|
|
@@ -10516,7 +10520,7 @@ const Uh = ({
|
|
|
10516
10520
|
modalItem: H,
|
|
10517
10521
|
continuousEntryMode: j,
|
|
10518
10522
|
onCancelFormModal: q,
|
|
10519
|
-
onFormModalSubmitSucceed:
|
|
10523
|
+
onFormModalSubmitSucceed: ie,
|
|
10520
10524
|
createItem: ne,
|
|
10521
10525
|
openItemInFormModal: N
|
|
10522
10526
|
} = Uh({
|
|
@@ -10660,7 +10664,7 @@ const Uh = ({
|
|
|
10660
10664
|
values: H == null ? void 0 : H.values,
|
|
10661
10665
|
defaultValues: H == null ? void 0 : H.defaultValues,
|
|
10662
10666
|
visible: he,
|
|
10663
|
-
onSubmitSucceed:
|
|
10667
|
+
onSubmitSucceed: ie,
|
|
10664
10668
|
parentContext: x,
|
|
10665
10669
|
onCancel: q,
|
|
10666
10670
|
readOnly: m,
|
|
@@ -10706,7 +10710,7 @@ const Uh = ({
|
|
|
10706
10710
|
S();
|
|
10707
10711
|
}, [t]);
|
|
10708
10712
|
const w = Ln(
|
|
10709
|
-
|
|
10713
|
+
tn.FEATURE_GET_TOOLBAR
|
|
10710
10714
|
), O = async (b) => {
|
|
10711
10715
|
if (o && o[b]) {
|
|
10712
10716
|
const x = o[b];
|
|
@@ -10779,7 +10783,7 @@ const Uh = ({
|
|
|
10779
10783
|
return /* @__PURE__ */ i(Fe, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(ng, { ooui: t }) });
|
|
10780
10784
|
}, ng = (e) => {
|
|
10781
10785
|
const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = eg(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = G(), [f, d] = C(), m = ee(He), { elementHasLostFocus: h } = m || {};
|
|
10782
|
-
|
|
10786
|
+
se(() => {
|
|
10783
10787
|
d(Xs(n));
|
|
10784
10788
|
}, [n]);
|
|
10785
10789
|
const p = (v) => {
|
|
@@ -11314,7 +11318,7 @@ const { useToken: sg } = We, { TextArea: lo } = ot, ag = (e) => {
|
|
|
11314
11318
|
return /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(Tg, { ooui: t }) });
|
|
11315
11319
|
}, Tg = (e) => {
|
|
11316
11320
|
const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: a, readOnly: s, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, f] = C([]), [d, m] = C();
|
|
11317
|
-
return
|
|
11321
|
+
return se(() => {
|
|
11318
11322
|
if (!t) {
|
|
11319
11323
|
m(void 0), f([]);
|
|
11320
11324
|
return;
|
|
@@ -11741,7 +11745,7 @@ function Fg(e) {
|
|
|
11741
11745
|
},
|
|
11742
11746
|
[a]
|
|
11743
11747
|
);
|
|
11744
|
-
return
|
|
11748
|
+
return se(() => {
|
|
11745
11749
|
p();
|
|
11746
11750
|
}, [p]), /* @__PURE__ */ V(Z, { children: [
|
|
11747
11751
|
/* @__PURE__ */ i(
|
|
@@ -11783,7 +11787,7 @@ const Rg = () => {
|
|
|
11783
11787
|
} = Bn(), [l, c] = ze(
|
|
11784
11788
|
k.getHandler().searchForTree
|
|
11785
11789
|
);
|
|
11786
|
-
|
|
11790
|
+
se(() => () => {
|
|
11787
11791
|
c();
|
|
11788
11792
|
}, [c]);
|
|
11789
11793
|
const u = Js(), f = E(
|
|
@@ -12004,7 +12008,7 @@ function $g({ toolbar: e }) {
|
|
|
12004
12008
|
context: x.current.getContext()
|
|
12005
12009
|
});
|
|
12006
12010
|
const j = m == null ? void 0 : m.filter(
|
|
12007
|
-
(
|
|
12011
|
+
(ie) => ie.id !== d
|
|
12008
12012
|
);
|
|
12009
12013
|
I == null || I(j);
|
|
12010
12014
|
const q = Math.max(0, (p || 0) - 1);
|
|
@@ -12044,7 +12048,7 @@ function $g({ toolbar: e }) {
|
|
|
12044
12048
|
},
|
|
12045
12049
|
[s, T, _, l]
|
|
12046
12050
|
), Te = E(async () => {
|
|
12047
|
-
const j = await
|
|
12051
|
+
const j = await fn({ onFormSave: c });
|
|
12048
12052
|
j.succeed && (P == null || P({
|
|
12049
12053
|
...qi(
|
|
12050
12054
|
y,
|
|
@@ -12053,7 +12057,7 @@ function $g({ toolbar: e }) {
|
|
|
12053
12057
|
initialViewType: "form"
|
|
12054
12058
|
}));
|
|
12055
12059
|
}, [y, c, P]), he = E(async () => {
|
|
12056
|
-
const j = await
|
|
12060
|
+
const j = await fn({ onFormSave: c });
|
|
12057
12061
|
j.succeed && (P == null || P({
|
|
12058
12062
|
...qi(
|
|
12059
12063
|
y,
|
|
@@ -12063,7 +12067,7 @@ function $g({ toolbar: e }) {
|
|
|
12063
12067
|
}));
|
|
12064
12068
|
}, [y, c, P]), H = E(
|
|
12065
12069
|
async (j) => {
|
|
12066
|
-
(await
|
|
12070
|
+
(await fn({ onFormSave: c })).succeed && (P == null || P({
|
|
12067
12071
|
model: "ir.attachment",
|
|
12068
12072
|
res_id: j.id,
|
|
12069
12073
|
initialViewType: "form"
|
|
@@ -12249,7 +12253,7 @@ const qi = (e, t) => ({
|
|
|
12249
12253
|
forced_values: { res_model: e, res_id: t }
|
|
12250
12254
|
}), { useToken: Ng } = We, rl = (e) => {
|
|
12251
12255
|
const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: s, readOnly: l, required: c } = t, { token: u } = Ng(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ee(He), { elementHasLostFocus: m } = d || {}, [h, p] = C(!1), [g, y] = C(!1);
|
|
12252
|
-
|
|
12256
|
+
se(() => {
|
|
12253
12257
|
l && !h && y(!1), !n && !l && (p(!0), y(!0));
|
|
12254
12258
|
}, [h, l]);
|
|
12255
12259
|
const v = (w) => {
|
|
@@ -12630,10 +12634,10 @@ const { useToken: Wg } = We, { Title: Yg, Text: Qn } = Wt, Fr = ({
|
|
|
12630
12634
|
setSearchValues: F,
|
|
12631
12635
|
currentView: D
|
|
12632
12636
|
} = f || {}, [P, M] = C(!0);
|
|
12633
|
-
|
|
12637
|
+
se(() => {
|
|
12634
12638
|
var z;
|
|
12635
12639
|
(z = u.current) == null || z.refresh();
|
|
12636
|
-
}, [R]),
|
|
12640
|
+
}, [R]), se(() => {
|
|
12637
12641
|
t.view_id !== D.view_id && M(!0);
|
|
12638
12642
|
}, [D]);
|
|
12639
12643
|
const { clear: L, searchFilterLoading: B, searchError: Y, offset: $, tableRefreshing: K } = Pa({
|
|
@@ -12756,7 +12760,7 @@ function qg(e) {
|
|
|
12756
12760
|
function c(f) {
|
|
12757
12761
|
t(f.search);
|
|
12758
12762
|
}
|
|
12759
|
-
|
|
12763
|
+
se(() => {
|
|
12760
12764
|
a.setFieldsValue({ search: r });
|
|
12761
12765
|
}, [r]);
|
|
12762
12766
|
function u() {
|
|
@@ -12824,7 +12828,7 @@ function zg({
|
|
|
12824
12828
|
isActive: R,
|
|
12825
12829
|
isInfiniteTree: T
|
|
12826
12830
|
} = ee(ft), F = Ln(
|
|
12827
|
-
|
|
12831
|
+
tn.FEATURE_ADVANCED_EXPORT
|
|
12828
12832
|
), { t: D } = de(), [P, M] = C(!1), L = G(!0), B = E(() => {
|
|
12829
12833
|
var ne;
|
|
12830
12834
|
(ne = m == null ? void 0 : m.current) == null || ne.refreshResults();
|
|
@@ -12920,7 +12924,7 @@ function zg({
|
|
|
12920
12924
|
},
|
|
12921
12925
|
[d, e, b, K, s]
|
|
12922
12926
|
);
|
|
12923
|
-
|
|
12927
|
+
se(() => {
|
|
12924
12928
|
var ne;
|
|
12925
12929
|
if (T && O === void 0) {
|
|
12926
12930
|
if (L.current) {
|
|
@@ -12950,7 +12954,7 @@ function zg({
|
|
|
12950
12954
|
t: D,
|
|
12951
12955
|
onOk: J
|
|
12952
12956
|
});
|
|
12953
|
-
}, [J, D]),
|
|
12957
|
+
}, [J, D]), ie = E(() => {
|
|
12954
12958
|
$t({
|
|
12955
12959
|
confirmMessage: D("confirmRemove"),
|
|
12956
12960
|
t: D,
|
|
@@ -13007,7 +13011,7 @@ function zg({
|
|
|
13007
13011
|
tooltip: D("delete"),
|
|
13008
13012
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || S,
|
|
13009
13013
|
loading: c,
|
|
13010
|
-
onClick:
|
|
13014
|
+
onClick: ie
|
|
13011
13015
|
}
|
|
13012
13016
|
),
|
|
13013
13017
|
/* @__PURE__ */ i(et, {})
|
|
@@ -13134,7 +13138,7 @@ const Qg = (e) => {
|
|
|
13134
13138
|
availableViews: m,
|
|
13135
13139
|
searchTreeNameSearch: h
|
|
13136
13140
|
} = e, p = G(t), g = Q(() => !(s != null && s.arch) || s.isExpandable ? !1 : Ps(s.arch, "infinite") === "1", [s]);
|
|
13137
|
-
|
|
13141
|
+
se(() => {
|
|
13138
13142
|
w == null || w(g);
|
|
13139
13143
|
}, [g]);
|
|
13140
13144
|
const {
|
|
@@ -13163,7 +13167,7 @@ const Qg = (e) => {
|
|
|
13163
13167
|
v
|
|
13164
13168
|
]
|
|
13165
13169
|
);
|
|
13166
|
-
return
|
|
13170
|
+
return se(() => {
|
|
13167
13171
|
p.current && !t && g && (O == null || O([])), p.current = t;
|
|
13168
13172
|
}, [t, g]), t ? /* @__PURE__ */ V(Pn, { children: [
|
|
13169
13173
|
/* @__PURE__ */ i(Fr, { showSummary: !g, children: /* @__PURE__ */ i(
|
|
@@ -13331,12 +13335,12 @@ function ny({
|
|
|
13331
13335
|
}
|
|
13332
13336
|
const ry = () => {
|
|
13333
13337
|
const { currentTab: e } = Fo(), { title: t } = Nn(), { shareUrl: n } = ny({ currentTab: e });
|
|
13334
|
-
|
|
13338
|
+
se(() => {
|
|
13335
13339
|
if (n) {
|
|
13336
13340
|
const r = new URL(n, window.location.origin);
|
|
13337
13341
|
window.location.pathname + window.location.search !== r.pathname + r.search && window.history.replaceState({}, "", r.pathname + r.search);
|
|
13338
13342
|
}
|
|
13339
|
-
}, [e, n]),
|
|
13343
|
+
}, [e, n]), se(() => {
|
|
13340
13344
|
document.title = t, e != null && e.title && e.title.length > 0 && (document.title = (e == null ? void 0 : e.title) + " - " + t);
|
|
13341
13345
|
}, [e, t]);
|
|
13342
13346
|
};
|
|
@@ -13360,7 +13364,7 @@ function oy(e, t) {
|
|
|
13360
13364
|
initialSearchParams: v = []
|
|
13361
13365
|
} = e, [w, O] = C(), [S, I] = C([]), [A, b] = C(!0), x = m || void 0, [_, R] = C(
|
|
13362
13366
|
x
|
|
13363
|
-
), [T, F] = C([]), [D, P] = C(), [M, L] = C([]), [B, Y] = C(), [$, K] = C(0), [X, z] = C(!1), [J, Te] = C(!1), [he, H] = C(), { t: j } = de(), q = G(),
|
|
13367
|
+
), [T, F] = C([]), [D, P] = C(), [M, L] = C([]), [B, Y] = C(), [$, K] = C(0), [X, z] = C(!1), [J, Te] = C(!1), [he, H] = C(), { t: j } = de(), q = G(), ie = G(), ne = ee(
|
|
13364
13368
|
bt
|
|
13365
13369
|
), {
|
|
13366
13370
|
setCurrentView: N,
|
|
@@ -13497,10 +13501,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
13497
13501
|
Ee,
|
|
13498
13502
|
c
|
|
13499
13503
|
]);
|
|
13500
|
-
l({ tabKey: c, canWeClose: me }),
|
|
13504
|
+
l({ tabKey: c, canWeClose: me }), Xt(() => {
|
|
13501
13505
|
const ue = S.find((be) => be.type === "tree"), ae = S.find((be) => u.id ? be.type === u.type && be.view_id === u.id : be.type === u.type);
|
|
13502
13506
|
Ye(ae || ue), m ? re == null || re(x) : (Ue(void 0), P(void 0)), Re();
|
|
13503
|
-
}, [r, a, m]),
|
|
13507
|
+
}, [r, a, m]), Xt(() => {
|
|
13504
13508
|
if (we === c) {
|
|
13505
13509
|
re == null || re(_);
|
|
13506
13510
|
const ue = { action_id: h, action_type: p };
|
|
@@ -13579,7 +13583,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
13579
13583
|
setCurrentView: Ye,
|
|
13580
13584
|
availableViews: S,
|
|
13581
13585
|
formRef: q,
|
|
13582
|
-
searchTreeRef:
|
|
13586
|
+
searchTreeRef: ie,
|
|
13583
13587
|
onNewClicked: $e,
|
|
13584
13588
|
currentId: _,
|
|
13585
13589
|
setCurrentId: Ue,
|
|
@@ -13617,7 +13621,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
13617
13621
|
setCurrentItemIndex: P,
|
|
13618
13622
|
formForcedValues: d,
|
|
13619
13623
|
limit: y,
|
|
13620
|
-
searchTreeRef:
|
|
13624
|
+
searchTreeRef: ie,
|
|
13621
13625
|
searchTreeNameSearch: he,
|
|
13622
13626
|
setCurrentView: Ye,
|
|
13623
13627
|
setCurrentId: Ue
|
|
@@ -13778,7 +13782,7 @@ function ly(e) {
|
|
|
13778
13782
|
attrs: oe && { colors: oe }
|
|
13779
13783
|
});
|
|
13780
13784
|
D(pn(Ee));
|
|
13781
|
-
const Ue =
|
|
13785
|
+
const Ue = dn({
|
|
13782
13786
|
resultsToSort: ge,
|
|
13783
13787
|
sorter: P,
|
|
13784
13788
|
fields: { ...p.fields, ...y.fields }
|
|
@@ -13793,7 +13797,7 @@ function ly(e) {
|
|
|
13793
13797
|
B(JSON.stringify(N));
|
|
13794
13798
|
}
|
|
13795
13799
|
};
|
|
13796
|
-
|
|
13800
|
+
se(() => {
|
|
13797
13801
|
f && s && he();
|
|
13798
13802
|
}, [w, S, f, s]);
|
|
13799
13803
|
const H = async (N) => {
|
|
@@ -13827,10 +13831,10 @@ function ly(e) {
|
|
|
13827
13831
|
});
|
|
13828
13832
|
g(re);
|
|
13829
13833
|
};
|
|
13830
|
-
|
|
13834
|
+
se(() => {
|
|
13831
13835
|
t ? H("action") : n && H("model");
|
|
13832
13836
|
}, [t, n]);
|
|
13833
|
-
const
|
|
13837
|
+
const ie = (N) => {
|
|
13834
13838
|
const { id: re } = N;
|
|
13835
13839
|
o({
|
|
13836
13840
|
id: re,
|
|
@@ -13850,12 +13854,12 @@ function ly(e) {
|
|
|
13850
13854
|
results: R,
|
|
13851
13855
|
onRequestPageChange: J,
|
|
13852
13856
|
loading: K,
|
|
13853
|
-
onRowClicked:
|
|
13857
|
+
onRowClicked: ie,
|
|
13854
13858
|
colorsForResults: F,
|
|
13855
13859
|
sorter: P,
|
|
13856
13860
|
onChangeSort: (N) => {
|
|
13857
13861
|
M == null || M(N);
|
|
13858
|
-
const re =
|
|
13862
|
+
const re = dn({
|
|
13859
13863
|
resultsToSort: R,
|
|
13860
13864
|
sorter: N,
|
|
13861
13865
|
fields: { ...p.fields, ...y.fields }
|
|
@@ -13870,7 +13874,7 @@ function ly(e) {
|
|
|
13870
13874
|
}
|
|
13871
13875
|
const cy = Qe(ly), dy = (e) => {
|
|
13872
13876
|
const { model: t } = e, [n, r] = C();
|
|
13873
|
-
|
|
13877
|
+
se(() => {
|
|
13874
13878
|
o();
|
|
13875
13879
|
}, [t]);
|
|
13876
13880
|
async function o() {
|
|
@@ -13891,9 +13895,9 @@ function uy(e, t) {
|
|
|
13891
13895
|
} = ee(Uo), g = G(), y = G(), [v] = ze(k.getHandler().getView), [w] = ze(
|
|
13892
13896
|
k.getHandler().readObjects
|
|
13893
13897
|
), [O] = ze(k.getHandler().update), S = Ln(
|
|
13894
|
-
|
|
13898
|
+
tn.FEATURE_READFORVIEW
|
|
13895
13899
|
);
|
|
13896
|
-
|
|
13900
|
+
se(() => {
|
|
13897
13901
|
I();
|
|
13898
13902
|
}, [n, o, r]), Tt(t, () => ({
|
|
13899
13903
|
refresh: () => {
|
|
@@ -14029,11 +14033,11 @@ function uy(e, t) {
|
|
|
14029
14033
|
initialView: j,
|
|
14030
14034
|
limit: q
|
|
14031
14035
|
} = P;
|
|
14032
|
-
let
|
|
14036
|
+
let ie = {};
|
|
14033
14037
|
try {
|
|
14034
|
-
|
|
14038
|
+
ie = JSON.parse(L.replace(/'/g, '"'));
|
|
14035
14039
|
} catch {
|
|
14036
|
-
|
|
14040
|
+
ie = { x: D * 2, y: 0, w: 2, h: 3 };
|
|
14037
14041
|
}
|
|
14038
14042
|
let ne = null;
|
|
14039
14043
|
if ((j == null ? void 0 : j.type) === "graph") {
|
|
@@ -14137,7 +14141,7 @@ function uy(e, t) {
|
|
|
14137
14141
|
{
|
|
14138
14142
|
id: B,
|
|
14139
14143
|
title: X,
|
|
14140
|
-
parms:
|
|
14144
|
+
parms: ie,
|
|
14141
14145
|
action: N,
|
|
14142
14146
|
openAction: h,
|
|
14143
14147
|
tooltip: z,
|
|
@@ -14166,7 +14170,7 @@ const fy = xt(uy), my = (e) => {
|
|
|
14166
14170
|
if (n.domain) {
|
|
14167
14171
|
const _ = await k.getHandler().evalDomain({
|
|
14168
14172
|
domain: n.domain,
|
|
14169
|
-
values:
|
|
14173
|
+
values: en({
|
|
14170
14174
|
fields: v == null ? void 0 : v.getFields(),
|
|
14171
14175
|
values: v.getPlainValues()
|
|
14172
14176
|
}),
|
|
@@ -14271,7 +14275,7 @@ const fy = xt(uy), my = (e) => {
|
|
|
14271
14275
|
}, Cy = (e) => {
|
|
14272
14276
|
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(He);
|
|
14273
14277
|
let l = [], c;
|
|
14274
|
-
t.fieldType === "json" ? (l = n.map((d) => [d.title, d.title]), c = n.findIndex((d) => d.active)) : (l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n));
|
|
14278
|
+
t.fieldType === "json" && n ? (l = n.map((d) => [d.title, d.title]), c = n.findIndex((d) => d.active)) : (l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n));
|
|
14275
14279
|
let u = "process", f = "";
|
|
14276
14280
|
return o && (f = s.getFieldValue(o), f && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(qo, { current: c, status: u, children: l.map((d, m) => /* @__PURE__ */ i(
|
|
14277
14281
|
qo.Step,
|
|
@@ -14633,8 +14637,8 @@ function Yy(e, t) {
|
|
|
14633
14637
|
values: s,
|
|
14634
14638
|
context: { ...l, ...B }
|
|
14635
14639
|
}) : [];
|
|
14636
|
-
} catch (
|
|
14637
|
-
return console.error(
|
|
14640
|
+
} catch (ie) {
|
|
14641
|
+
return console.error(ie), [];
|
|
14638
14642
|
}
|
|
14639
14643
|
})(), {
|
|
14640
14644
|
res_model: K,
|
|
@@ -14644,10 +14648,10 @@ function Yy(e, t) {
|
|
|
14644
14648
|
view_type: Te,
|
|
14645
14649
|
limit: he
|
|
14646
14650
|
} = F, H = Te === "tree", j = [];
|
|
14647
|
-
for (const
|
|
14648
|
-
const [ne, N] =
|
|
14651
|
+
for (const ie of X) {
|
|
14652
|
+
const [ne, N] = ie;
|
|
14649
14653
|
if (ne)
|
|
14650
|
-
j.push(
|
|
14654
|
+
j.push(ie);
|
|
14651
14655
|
else if (N === "dashboard")
|
|
14652
14656
|
j.push([void 0, "dashboard"]);
|
|
14653
14657
|
else {
|
|
@@ -14662,13 +14666,13 @@ function Yy(e, t) {
|
|
|
14662
14666
|
}
|
|
14663
14667
|
let q;
|
|
14664
14668
|
if (_) {
|
|
14665
|
-
const [
|
|
14669
|
+
const [ie, ne] = j.find(
|
|
14666
14670
|
([N, re]) => re === _
|
|
14667
14671
|
);
|
|
14668
|
-
q = { id:
|
|
14672
|
+
q = { id: ie, type: ne };
|
|
14669
14673
|
} else {
|
|
14670
|
-
const [
|
|
14671
|
-
q = { id:
|
|
14674
|
+
const [ie, ne] = j[0];
|
|
14675
|
+
q = { id: ie, type: ne };
|
|
14672
14676
|
}
|
|
14673
14677
|
I({
|
|
14674
14678
|
domain: [...$, ...T],
|
|
@@ -14729,7 +14733,7 @@ function Yy(e, t) {
|
|
|
14729
14733
|
values: { ...x, ...s }
|
|
14730
14734
|
}), J = D, Te = D ? await k.getHandler().evalDomain({
|
|
14731
14735
|
domain: D,
|
|
14732
|
-
values:
|
|
14736
|
+
values: en({
|
|
14733
14737
|
fields: b,
|
|
14734
14738
|
values: { ...x, ...s }
|
|
14735
14739
|
}),
|
|
@@ -14803,13 +14807,13 @@ function Yy(e, t) {
|
|
|
14803
14807
|
j.push([we, oe]);
|
|
14804
14808
|
}
|
|
14805
14809
|
}
|
|
14806
|
-
let q,
|
|
14810
|
+
let q, ie;
|
|
14807
14811
|
if (R == null) {
|
|
14808
14812
|
const N = j.find((re) => re[0] === void 0);
|
|
14809
|
-
q = void 0,
|
|
14813
|
+
q = void 0, ie = N[1];
|
|
14810
14814
|
} else
|
|
14811
|
-
[q,
|
|
14812
|
-
const ne = { id: q, type:
|
|
14815
|
+
[q, ie] = j.find((N) => N[0] === void 0 ? !1 : N[0] === R);
|
|
14816
|
+
const ne = { id: q, type: ie };
|
|
14813
14817
|
I({
|
|
14814
14818
|
domain: Y,
|
|
14815
14819
|
context: { ...l, ...B },
|
|
@@ -15081,7 +15085,7 @@ const { useToken: Jy } = We, Xv = (e) => {
|
|
|
15081
15085
|
if (S)
|
|
15082
15086
|
return JSON.stringify(S);
|
|
15083
15087
|
}, [S]);
|
|
15084
|
-
|
|
15088
|
+
se(() => {
|
|
15085
15089
|
b();
|
|
15086
15090
|
}, [I]);
|
|
15087
15091
|
function A(T) {
|
|
@@ -15196,7 +15200,7 @@ export {
|
|
|
15196
15200
|
bg as DateTime,
|
|
15197
15201
|
jg as Email,
|
|
15198
15202
|
qv as ErpAllFeatureKeys,
|
|
15199
|
-
|
|
15203
|
+
tn as ErpFeatureKeys,
|
|
15200
15204
|
vg as ExportModal,
|
|
15201
15205
|
Xv as FavouriteButton,
|
|
15202
15206
|
Po as Float,
|