@gisce/react-ooui 2.41.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react-ooui.es.js +247 -241
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/WidgetFactory.d.ts.map +1 -1
- package/dist/widgets/custom/Spinner.d.ts +8 -0
- package/dist/widgets/custom/Spinner.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/react-ooui.es.js
CHANGED
|
@@ -3,10 +3,10 @@ var Pa = (e, t, n) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var xo = (e, t, n) => (Pa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsx as i, jsxs as D, Fragment as ae } from "react/jsx-runtime";
|
|
5
5
|
import mt, { useContext as ne, useState as x, useEffect as ue, useRef as Q, memo as an, useMemo as me, useCallback as N, createContext as ka, forwardRef as yt, useImperativeHandle as vt, createElement as $a, Fragment as Fn } from "react";
|
|
6
|
-
import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as Na, Menu as Io, Spin as
|
|
7
|
-
import { Label as ln, Field as
|
|
6
|
+
import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as Na, Menu as Io, Spin as He, Divider as zn, Space as Je, Input as lt, Select as Ut, Checkbox as Cn, Alert as rt, Timeline as Oi, Statistic as Ma, Card as Ur, Tag as Wr, message as mr, App as La, Progress as ja, Avatar as Fi, DatePicker as Gr, TimePicker as Ba, InputNumber as Ai, Layout as Ri, Badge as Jn, Pagination as Ha, Tabs as _i, Radio as To, Switch as Ua, Steps as Oo } from "antd";
|
|
7
|
+
import { Label as ln, Field as Or, Tree as Vi, Reference as Wa, Selection as Kr, Many2one as Ei, Boolean as Ga, parseContext as Lt, graphProcessor as Di, graphFieldUtils as Ka, parseGraph as Pi, Container as qa, Form as ki, parseContextFields as Ya, parseDomainFields as za, Integer as Fr, SearchFieldTypes as Tt, SearchFilter as $i, transformDomainForChildWidget as qr } from "@gisce/ooui";
|
|
8
8
|
import * as Fo from "@ant-design/icons";
|
|
9
|
-
import Ni, { QuestionCircleOutlined as Mi, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as
|
|
9
|
+
import Ni, { QuestionCircleOutlined as Mi, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as Qn, WarningOutlined as Li, CloseOutlined as cn, CheckOutlined as Xn, TranslationOutlined as ji, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Zn, ExportOutlined as Ja, StarFilled as Qa, StarOutlined as Xa, ThunderboltOutlined as Jr, PrinterOutlined as Qr, EnterOutlined as Xr, SearchOutlined as er, UpOutlined as Za, PlusSquareOutlined as el, MinusSquareOutlined as tl, FileAddOutlined as tr, AlignLeftOutlined as nl, ApiOutlined as rl, DeleteOutlined as Zr, LeftOutlined as Bi, RightOutlined as Hi, EyeOutlined as ol, FormOutlined as xn, TableOutlined as eo, AreaChartOutlined as il, CalendarOutlined as sl, LinkOutlined as Ao, SaveOutlined as al, CopyOutlined as to, InfoCircleOutlined as Ui, ReloadOutlined as nr, EditOutlined as Wi, PlusOutlined as ll, FilterOutlined as Gi, CloseCircleFilled as cl, BorderOuterOutlined as dl, SettingOutlined as ul } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as In } from "interweave";
|
|
11
11
|
import { useLocale as he, FormigaConfigProvider as fl, mergeStrings as ml, Many2OneSuffix as pl, Many2OneSuffixModal as Ro, FieldSet as hl, ExportModal as gl, Dropdown as Ki, DropdownButton as Zt, HTMLPreview as yl, FavouriteButton as vl } from "@gisce/react-formiga-components";
|
|
12
12
|
import * as _o from "@tabler/icons-react";
|
|
@@ -15,11 +15,11 @@ import dn from "styled-components";
|
|
|
15
15
|
import no from "react-measure";
|
|
16
16
|
import bl from "lodash/debounce";
|
|
17
17
|
import { nanoid as ro } from "nanoid";
|
|
18
|
-
import
|
|
18
|
+
import Ar from "antd/lib/typography/Title";
|
|
19
19
|
import St from "use-deep-compare-effect";
|
|
20
20
|
import { Line as Sl, Column as Cl, Pie as xl } from "@ant-design/plots";
|
|
21
21
|
import st from "dayjs";
|
|
22
|
-
import { default as
|
|
22
|
+
import { default as _y } from "dayjs";
|
|
23
23
|
import Il from "dayjs/plugin/advancedFormat";
|
|
24
24
|
import Tl from "dayjs/plugin/customParseFormat";
|
|
25
25
|
import Ol from "dayjs/plugin/isoWeek";
|
|
@@ -98,7 +98,7 @@ const Be = mt.createContext(null), Jl = (e) => {
|
|
|
98
98
|
left: "justify-start",
|
|
99
99
|
center: "justify-center",
|
|
100
100
|
right: "justify-end"
|
|
101
|
-
},
|
|
101
|
+
}, rr = (e) => {
|
|
102
102
|
const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = ne(Be);
|
|
103
103
|
let d = a !== null && o.length > 1 ? o + " :" : o;
|
|
104
104
|
!t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
|
|
@@ -154,7 +154,7 @@ function _e({
|
|
|
154
154
|
if (!o)
|
|
155
155
|
return m();
|
|
156
156
|
const y = /* @__PURE__ */ i(
|
|
157
|
-
|
|
157
|
+
rr,
|
|
158
158
|
{
|
|
159
159
|
ooui: new ln({
|
|
160
160
|
name: u + "_label",
|
|
@@ -400,12 +400,12 @@ const oo = (e) => {
|
|
|
400
400
|
if (t.buttons.length === 0)
|
|
401
401
|
return null;
|
|
402
402
|
if (t.buttons.length > 1)
|
|
403
|
-
return /* @__PURE__ */ i(_e, { ooui: new
|
|
403
|
+
return /* @__PURE__ */ i(_e, { ooui: new Or({ defaultButton: n }), children: /* @__PURE__ */ D(
|
|
404
404
|
Na.Button,
|
|
405
405
|
{
|
|
406
406
|
disabled: !a || p,
|
|
407
407
|
onClick: C,
|
|
408
|
-
icon: /* @__PURE__ */ i(
|
|
408
|
+
icon: /* @__PURE__ */ i(Qn, {}),
|
|
409
409
|
type: f ? "primary" : void 0,
|
|
410
410
|
overlay: /* @__PURE__ */ i(
|
|
411
411
|
oc,
|
|
@@ -483,7 +483,7 @@ function Po() {
|
|
|
483
483
|
height: t
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function or() {
|
|
487
487
|
const [e, t] = x(
|
|
488
488
|
Po()
|
|
489
489
|
);
|
|
@@ -538,7 +538,7 @@ const Xi = (e) => {
|
|
|
538
538
|
content: t
|
|
539
539
|
});
|
|
540
540
|
}, Zi = (e) => {
|
|
541
|
-
const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } =
|
|
541
|
+
const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = or(), { t: c } = he(), [u, f] = x([]), [d, p] = x(!1), [h, m] = x(!1), [y, g] = x({}), v = Q();
|
|
542
542
|
ue(() => {
|
|
543
543
|
t ? w() : g({});
|
|
544
544
|
}, [t]);
|
|
@@ -614,9 +614,9 @@ const Xi = (e) => {
|
|
|
614
614
|
m(!1), a();
|
|
615
615
|
}
|
|
616
616
|
function T() {
|
|
617
|
-
return d ? /* @__PURE__ */ i(
|
|
617
|
+
return d ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ D(ae, { children: [
|
|
618
618
|
b(),
|
|
619
|
-
/* @__PURE__ */ i(
|
|
619
|
+
/* @__PURE__ */ i(zn, {}),
|
|
620
620
|
/* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
|
|
621
621
|
/* @__PURE__ */ i(
|
|
622
622
|
je,
|
|
@@ -630,7 +630,7 @@ const Xi = (e) => {
|
|
|
630
630
|
/* @__PURE__ */ i(
|
|
631
631
|
je,
|
|
632
632
|
{
|
|
633
|
-
icon: h ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(
|
|
633
|
+
icon: h ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Xn, {}),
|
|
634
634
|
disabled: h,
|
|
635
635
|
onClick: O,
|
|
636
636
|
style: { marginLeft: 15 },
|
|
@@ -850,7 +850,7 @@ const rs = (e) => new Promise((t, n) => {
|
|
|
850
850
|
const r = new FileReader();
|
|
851
851
|
r.readAsDataURL(e), r.onload = (o) => t(o.target.result.split(",")[1]), r.onerror = (o) => n(o);
|
|
852
852
|
});
|
|
853
|
-
function
|
|
853
|
+
function ir(e, t) {
|
|
854
854
|
const n = atob(e), r = new Array(n.length);
|
|
855
855
|
for (let l = 0; l < n.length; l++)
|
|
856
856
|
r[l] = n.charCodeAt(l);
|
|
@@ -930,7 +930,7 @@ const xc = (e) => {
|
|
|
930
930
|
tooltip: a("clear"),
|
|
931
931
|
disabled: o || !n,
|
|
932
932
|
onClick: f,
|
|
933
|
-
icon: /* @__PURE__ */ i(
|
|
933
|
+
icon: /* @__PURE__ */ i(Zn, {})
|
|
934
934
|
}
|
|
935
935
|
)
|
|
936
936
|
] }) })
|
|
@@ -986,7 +986,7 @@ const io = (e, t, n) => e.columns.map((o) => {
|
|
|
986
986
|
},
|
|
987
987
|
isSortable: s !== "one2many" && s !== "many2one" && !o.isFunction
|
|
988
988
|
};
|
|
989
|
-
}),
|
|
989
|
+
}), sr = (e, t) => t.map((r) => {
|
|
990
990
|
const o = {};
|
|
991
991
|
return Object.keys(r).forEach((s) => {
|
|
992
992
|
if (s === "id")
|
|
@@ -1192,7 +1192,7 @@ const Ec = ({
|
|
|
1192
1192
|
attrs: o
|
|
1193
1193
|
});
|
|
1194
1194
|
return {
|
|
1195
|
-
items:
|
|
1195
|
+
items: sr(s, a[0]),
|
|
1196
1196
|
colors: rn(a[1]),
|
|
1197
1197
|
status: jn(a[1])
|
|
1198
1198
|
};
|
|
@@ -1210,7 +1210,7 @@ const Ec = ({
|
|
|
1210
1210
|
} else
|
|
1211
1211
|
n[r] = e[r];
|
|
1212
1212
|
}), n;
|
|
1213
|
-
}, Jt = (e, t) => Nc(e, t),
|
|
1213
|
+
}, Jt = (e, t) => Nc(e, t), pr = ({
|
|
1214
1214
|
source: e,
|
|
1215
1215
|
target: t,
|
|
1216
1216
|
fields: n
|
|
@@ -1361,7 +1361,7 @@ const Wt = ({
|
|
|
1361
1361
|
a(!1);
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
|
-
return s ? /* @__PURE__ */ i(
|
|
1364
|
+
return s ? /* @__PURE__ */ i(He, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Kc, { ooui: t, views: u }) });
|
|
1365
1365
|
}, Kc = (e) => {
|
|
1366
1366
|
const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = x(!1), [c, u] = x(), [f, d] = x(!1), [p, h] = x(), {
|
|
1367
1367
|
relation: m,
|
|
@@ -1406,7 +1406,7 @@ const Wt = ({
|
|
|
1406
1406
|
if (c)
|
|
1407
1407
|
return /* @__PURE__ */ i(rt, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
1408
1408
|
if (a)
|
|
1409
|
-
return /* @__PURE__ */ i(
|
|
1409
|
+
return /* @__PURE__ */ i(He, {});
|
|
1410
1410
|
const V = (F) => {
|
|
1411
1411
|
const P = dt(F);
|
|
1412
1412
|
return P && /* @__PURE__ */ i(P, {});
|
|
@@ -1767,7 +1767,7 @@ const Wt = ({
|
|
|
1767
1767
|
"useConfigContext must be used within a ConfigContextProvider"
|
|
1768
1768
|
);
|
|
1769
1769
|
return e;
|
|
1770
|
-
},
|
|
1770
|
+
}, ar = (e) => {
|
|
1771
1771
|
const { erpFeatures: t } = ao();
|
|
1772
1772
|
return !!t[e];
|
|
1773
1773
|
}, Xc = an(
|
|
@@ -1907,7 +1907,7 @@ const Zc = (e) => {
|
|
|
1907
1907
|
justifyContent: "center",
|
|
1908
1908
|
alignItems: "center"
|
|
1909
1909
|
},
|
|
1910
|
-
children: /* @__PURE__ */ i(
|
|
1910
|
+
children: /* @__PURE__ */ i(He, {})
|
|
1911
1911
|
}
|
|
1912
1912
|
), ds = ({
|
|
1913
1913
|
error: e,
|
|
@@ -2046,7 +2046,7 @@ function ed({
|
|
|
2046
2046
|
justifyContent: "center",
|
|
2047
2047
|
overflow: "hidden"
|
|
2048
2048
|
},
|
|
2049
|
-
children: /* @__PURE__ */ D(
|
|
2049
|
+
children: /* @__PURE__ */ D(Ar, { style: { fontSize: c, margin: 0, color: s }, children: [
|
|
2050
2050
|
h && /* @__PURE__ */ i(h, { style: { fontSize: c * 0.7 } }),
|
|
2051
2051
|
h ? ` ${d}` : d
|
|
2052
2052
|
] })
|
|
@@ -2099,9 +2099,9 @@ function td({
|
|
|
2099
2099
|
children: /* @__PURE__ */ D(ke, { align: "middle", children: [
|
|
2100
2100
|
y && /* @__PURE__ */ i(we, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ i(y, {}) }),
|
|
2101
2101
|
/* @__PURE__ */ D(we, { children: [
|
|
2102
|
-
/* @__PURE__ */ i(
|
|
2102
|
+
/* @__PURE__ */ i(Ar, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${r}%` : `${r}%` }),
|
|
2103
2103
|
/* @__PURE__ */ i(
|
|
2104
|
-
|
|
2104
|
+
Ar,
|
|
2105
2105
|
{
|
|
2106
2106
|
style: {
|
|
2107
2107
|
fontSize: f * 0.4,
|
|
@@ -2396,7 +2396,7 @@ st.extend(Al);
|
|
|
2396
2396
|
st.extend(Rl);
|
|
2397
2397
|
st.extend(_l);
|
|
2398
2398
|
st.extend(Vl);
|
|
2399
|
-
const
|
|
2399
|
+
const hr = (e) => (t) => {
|
|
2400
2400
|
const n = t.value.toLocaleString("es-ES", {
|
|
2401
2401
|
useGrouping: !0
|
|
2402
2402
|
});
|
|
@@ -2436,7 +2436,7 @@ const pr = (e) => (t) => {
|
|
|
2436
2436
|
maxItemWidth: 1e3
|
|
2437
2437
|
},
|
|
2438
2438
|
tooltip: {
|
|
2439
|
-
formatter:
|
|
2439
|
+
formatter: hr("default")
|
|
2440
2440
|
}
|
|
2441
2441
|
},
|
|
2442
2442
|
pie: {
|
|
@@ -2449,7 +2449,7 @@ const pr = (e) => (t) => {
|
|
|
2449
2449
|
maxItemWidth: 1e3
|
|
2450
2450
|
},
|
|
2451
2451
|
tooltip: {
|
|
2452
|
-
formatter:
|
|
2452
|
+
formatter: hr("pie")
|
|
2453
2453
|
},
|
|
2454
2454
|
interactions: [
|
|
2455
2455
|
{
|
|
@@ -2464,7 +2464,7 @@ const pr = (e) => (t) => {
|
|
|
2464
2464
|
maxItemWidth: 1e3
|
|
2465
2465
|
},
|
|
2466
2466
|
tooltip: {
|
|
2467
|
-
formatter:
|
|
2467
|
+
formatter: hr("barGrouped")
|
|
2468
2468
|
},
|
|
2469
2469
|
xAxis: {
|
|
2470
2470
|
label: {
|
|
@@ -2964,7 +2964,7 @@ const vd = ({
|
|
|
2964
2964
|
}
|
|
2965
2965
|
}, un = yt(Sd);
|
|
2966
2966
|
var fn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(fn || {});
|
|
2967
|
-
const
|
|
2967
|
+
const xy = Object.values(fn), Cd = (e) => {
|
|
2968
2968
|
const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = x(!1), [c, u] = x(), [f, d] = x(), [p] = ze(
|
|
2969
2969
|
$.getHandler().readForView
|
|
2970
2970
|
), h = N(async () => {
|
|
@@ -3167,7 +3167,7 @@ const Cy = Object.values(fn), Cd = (e) => {
|
|
|
3167
3167
|
);
|
|
3168
3168
|
return n.card ? /* @__PURE__ */ i(Ur, { children: l }) : l;
|
|
3169
3169
|
}, _d = (e) => {
|
|
3170
|
-
const { ooui: t } = e, { actionId: n, height: r } = t, { actionData: o, treeShortcut: s, loading: a, error: l, fetchData: c } = Zc(n), u =
|
|
3170
|
+
const { ooui: t } = e, { actionId: n, height: r } = t, { actionData: o, treeShortcut: s, loading: a, error: l, fetchData: c } = Zc(n), u = ar(
|
|
3171
3171
|
fn.FEATURE_READFORVIEW
|
|
3172
3172
|
), f = ne(
|
|
3173
3173
|
bt
|
|
@@ -3315,7 +3315,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3315
3315
|
case "group":
|
|
3316
3316
|
return pa;
|
|
3317
3317
|
case "label":
|
|
3318
|
-
return
|
|
3318
|
+
return rr;
|
|
3319
3319
|
case "char":
|
|
3320
3320
|
return es;
|
|
3321
3321
|
case "text":
|
|
@@ -3331,7 +3331,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3331
3331
|
case "boolean":
|
|
3332
3332
|
return wc;
|
|
3333
3333
|
case "integer":
|
|
3334
|
-
return
|
|
3334
|
+
return Kn;
|
|
3335
3335
|
case "float":
|
|
3336
3336
|
return Rs;
|
|
3337
3337
|
case "progressbar":
|
|
@@ -3391,6 +3391,8 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3391
3391
|
return gg;
|
|
3392
3392
|
case "alert":
|
|
3393
3393
|
return yg;
|
|
3394
|
+
case "spinner":
|
|
3395
|
+
return vg;
|
|
3394
3396
|
default:
|
|
3395
3397
|
return;
|
|
3396
3398
|
}
|
|
@@ -3438,7 +3440,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3438
3440
|
for (let s = 0; s < e; s++)
|
|
3439
3441
|
o += s % 2 ? n : r, s + 1 < e && (o += " ");
|
|
3440
3442
|
return o;
|
|
3441
|
-
}, Hd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)),
|
|
3443
|
+
}, Hd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Gn = (e) => {
|
|
3442
3444
|
const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
|
|
3443
3445
|
let { columns: o } = t;
|
|
3444
3446
|
const s = Hd(r);
|
|
@@ -3573,7 +3575,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3573
3575
|
}), R.state && s.current === !0) {
|
|
3574
3576
|
s.current = !1, clearInterval(o.current), l(!1);
|
|
3575
3577
|
const S = await nn(R.result);
|
|
3576
|
-
|
|
3578
|
+
ir(R.result, S.mime);
|
|
3577
3579
|
}
|
|
3578
3580
|
} catch (S) {
|
|
3579
3581
|
s.current = !1, clearInterval(o.current), l(!1), it(S.exception || S);
|
|
@@ -3719,7 +3721,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
|
|
|
3719
3721
|
closable: !1,
|
|
3720
3722
|
centered: !0,
|
|
3721
3723
|
maskClosable: !1,
|
|
3722
|
-
children: /* @__PURE__ */ i(
|
|
3724
|
+
children: /* @__PURE__ */ i(He, {})
|
|
3723
3725
|
}
|
|
3724
3726
|
),
|
|
3725
3727
|
/* @__PURE__ */ i(
|
|
@@ -3842,7 +3844,7 @@ function Zd(e, t) {
|
|
|
3842
3844
|
setTitle: Ce = void 0
|
|
3843
3845
|
} = (C ? qe : {}) || {}, Se = ne(
|
|
3844
3846
|
pn
|
|
3845
|
-
), { processAction:
|
|
3847
|
+
), { processAction: Ue, globalValues: Ne } = Se || {};
|
|
3846
3848
|
vt(t, () => ({
|
|
3847
3849
|
submitForm: kt,
|
|
3848
3850
|
getFields: et,
|
|
@@ -3852,7 +3854,7 @@ function Zd(e, t) {
|
|
|
3852
3854
|
fetchValues: ie,
|
|
3853
3855
|
cancelUnsavedChanges: Me,
|
|
3854
3856
|
clearAndReload: () => {
|
|
3855
|
-
B.current = void 0, k(void 0),
|
|
3857
|
+
B.current = void 0, k(void 0), We();
|
|
3856
3858
|
}
|
|
3857
3859
|
})), ue(() => {
|
|
3858
3860
|
if (P(void 0), !(!n && !m)) {
|
|
@@ -3860,7 +3862,7 @@ function Zd(e, t) {
|
|
|
3860
3862
|
B.current = void 0, k(void 0);
|
|
3861
3863
|
return;
|
|
3862
3864
|
}
|
|
3863
|
-
(r === void 0 && E || r !== void 0 && E && r < 0) && (B.current = void 0, k(void 0)),
|
|
3865
|
+
(r === void 0 && E || r !== void 0 && E && r < 0) && (B.current = void 0, k(void 0)), We();
|
|
3864
3866
|
}
|
|
3865
3867
|
}, [r, n, h, m, I]), ue(() => {
|
|
3866
3868
|
oe && (bn({
|
|
@@ -3928,7 +3930,7 @@ function Zd(e, t) {
|
|
|
3928
3930
|
extraValues: b
|
|
3929
3931
|
});
|
|
3930
3932
|
}, ft = () => Object.keys(
|
|
3931
|
-
|
|
3933
|
+
pr({
|
|
3932
3934
|
source: G.current,
|
|
3933
3935
|
target: Ye(E),
|
|
3934
3936
|
fields: E
|
|
@@ -3950,10 +3952,10 @@ function Zd(e, t) {
|
|
|
3950
3952
|
try {
|
|
3951
3953
|
return await M.validateFields(), !1;
|
|
3952
3954
|
} catch {
|
|
3953
|
-
return
|
|
3955
|
+
return mr.error(S("fillRequiredFields")), !0;
|
|
3954
3956
|
}
|
|
3955
3957
|
}
|
|
3956
|
-
const
|
|
3958
|
+
const We = async () => {
|
|
3957
3959
|
P(void 0), fe == null || fe(!0);
|
|
3958
3960
|
let U;
|
|
3959
3961
|
try {
|
|
@@ -4006,15 +4008,15 @@ function Zd(e, t) {
|
|
|
4006
4008
|
reset: se,
|
|
4007
4009
|
isDefaultGet: ce = !1
|
|
4008
4010
|
}) => {
|
|
4009
|
-
const Xe = { ...se ? {} : M.getFieldsValue(!0), ...U },
|
|
4010
|
-
const Ea =
|
|
4011
|
+
const Xe = { ...se ? {} : M.getFieldsValue(!0), ...U }, ur = Jt(Xe, q), Va = Object.keys(q).map((fr) => {
|
|
4012
|
+
const Ea = ur[fr] !== void 0 ? ur[fr] : void 0;
|
|
4011
4013
|
return {
|
|
4012
|
-
name:
|
|
4014
|
+
name: fr,
|
|
4013
4015
|
touched: !1,
|
|
4014
4016
|
value: Ea
|
|
4015
4017
|
};
|
|
4016
4018
|
});
|
|
4017
|
-
ce || (L.current =
|
|
4019
|
+
ce || (L.current = ur), M.setFields(Va);
|
|
4018
4020
|
}, Dt = async ({
|
|
4019
4021
|
fields: U,
|
|
4020
4022
|
arch: q
|
|
@@ -4049,7 +4051,7 @@ function Zd(e, t) {
|
|
|
4049
4051
|
}, Pt = async (U) => {
|
|
4050
4052
|
const { callOnSubmitSucceed: q = !0 } = U || {};
|
|
4051
4053
|
if (ge()) {
|
|
4052
|
-
const se =
|
|
4054
|
+
const se = pr({
|
|
4053
4055
|
source: G.current,
|
|
4054
4056
|
target: Ye(E),
|
|
4055
4057
|
fields: E
|
|
@@ -4099,9 +4101,9 @@ function Zd(e, t) {
|
|
|
4099
4101
|
return le.current = !1, Ho(S), { succeed: !1, id: ge() };
|
|
4100
4102
|
A(!0), Ie == null || Ie(!0);
|
|
4101
4103
|
try {
|
|
4102
|
-
p === "api" ? await Pt(U) : await vn(U), d && (B.current = void 0, Qe({ values: {}, fields: E, reset: !0 })), await ie({ forceRefresh: !0 }), q = !0,
|
|
4104
|
+
p === "api" ? await Pt(U) : await vn(U), d && (B.current = void 0, Qe({ values: {}, fields: E, reset: !0 })), await ie({ forceRefresh: !0 }), q = !0, mr.success(S("savedRegisters"));
|
|
4103
4105
|
} catch (ce) {
|
|
4104
|
-
le.current = !1, A(!1), Ie == null || Ie(!1), Ke == null || Ke(ce),
|
|
4106
|
+
le.current = !1, A(!1), Ie == null || Ie(!1), Ke == null || Ke(ce), mr.error(S("errorWhileSavingForm")), P(ce != null && ce.message ? ce.message : ce);
|
|
4105
4107
|
} finally {
|
|
4106
4108
|
le.current = !1, Ie == null || Ie(!1), A(!1);
|
|
4107
4109
|
}
|
|
@@ -4142,7 +4144,7 @@ function Zd(e, t) {
|
|
|
4142
4144
|
}) => {
|
|
4143
4145
|
if (le.current)
|
|
4144
4146
|
return;
|
|
4145
|
-
const q =
|
|
4147
|
+
const q = pr({
|
|
4146
4148
|
source: L.current,
|
|
4147
4149
|
target: Ye(E),
|
|
4148
4150
|
fields: E
|
|
@@ -4291,7 +4293,7 @@ function Zd(e, t) {
|
|
|
4291
4293
|
actionData: U,
|
|
4292
4294
|
context: q
|
|
4293
4295
|
}) {
|
|
4294
|
-
const { closeParent: se } = await (
|
|
4296
|
+
const { closeParent: se } = await (Ue == null ? void 0 : Ue({
|
|
4295
4297
|
actionData: U,
|
|
4296
4298
|
fields: E,
|
|
4297
4299
|
values: z(),
|
|
@@ -4309,7 +4311,7 @@ function Zd(e, t) {
|
|
|
4309
4311
|
function Fa() {
|
|
4310
4312
|
bn({ elementHasLostFocus: !0 });
|
|
4311
4313
|
}
|
|
4312
|
-
function
|
|
4314
|
+
function dr(U) {
|
|
4313
4315
|
It({
|
|
4314
4316
|
fields: E,
|
|
4315
4317
|
arch: W,
|
|
@@ -4332,14 +4334,14 @@ function Zd(e, t) {
|
|
|
4332
4334
|
}
|
|
4333
4335
|
let ce = !1;
|
|
4334
4336
|
try {
|
|
4335
|
-
!f && (ft() || ge() === void 0) && (ce = !0,
|
|
4337
|
+
!f && (ft() || ge() === void 0) && (ce = !0, dr(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), K.current = !0) : await kt({ callOnSubmitSucceed: !1 }));
|
|
4336
4338
|
const xe = K.current ? De() : {}, Xe = { ...se, ...xe };
|
|
4337
|
-
U === "object" ? await Ia({ action: q, context: Xe }) : U === "workflow" ? await Ta({ action: q }) : U === "action" && await Oa({ action: q, context: Xe }), ce &&
|
|
4339
|
+
U === "object" ? await Ia({ action: q, context: Xe }) : U === "workflow" ? await Ta({ action: q }) : U === "action" && await Oa({ action: q, context: Xe }), ce && dr(!1);
|
|
4338
4340
|
} catch (xe) {
|
|
4339
|
-
ce &&
|
|
4341
|
+
ce && dr(!1), it(xe);
|
|
4340
4342
|
}
|
|
4341
4343
|
}
|
|
4342
|
-
const Ra = () => !_ && !F ? /* @__PURE__ */ i(
|
|
4344
|
+
const Ra = () => !_ && !F ? /* @__PURE__ */ i(He, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
|
|
4343
4345
|
Jl,
|
|
4344
4346
|
{
|
|
4345
4347
|
getValues: z,
|
|
@@ -4366,7 +4368,7 @@ function Zd(e, t) {
|
|
|
4366
4368
|
},
|
|
4367
4369
|
component: !1,
|
|
4368
4370
|
children: _ && /* @__PURE__ */ i(
|
|
4369
|
-
|
|
4371
|
+
Gn,
|
|
4370
4372
|
{
|
|
4371
4373
|
container: _.container,
|
|
4372
4374
|
responsiveBehaviour: ve
|
|
@@ -4376,7 +4378,7 @@ function Zd(e, t) {
|
|
|
4376
4378
|
)
|
|
4377
4379
|
}
|
|
4378
4380
|
) }), _a = () => /* @__PURE__ */ D(ae, { children: [
|
|
4379
|
-
/* @__PURE__ */ i(
|
|
4381
|
+
/* @__PURE__ */ i(zn, {}),
|
|
4380
4382
|
/* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
|
|
4381
4383
|
/* @__PURE__ */ i(
|
|
4382
4384
|
je,
|
|
@@ -4394,7 +4396,7 @@ function Zd(e, t) {
|
|
|
4394
4396
|
{
|
|
4395
4397
|
disabled: V || f,
|
|
4396
4398
|
loading: V,
|
|
4397
|
-
icon: /* @__PURE__ */ i(
|
|
4399
|
+
icon: /* @__PURE__ */ i(Xn, {}),
|
|
4398
4400
|
onClick: async () => {
|
|
4399
4401
|
await kt();
|
|
4400
4402
|
},
|
|
@@ -4430,7 +4432,7 @@ const hn = yt(Zd), gn = (e) => {
|
|
|
4430
4432
|
isMenuAction: a = !1,
|
|
4431
4433
|
actionData: l,
|
|
4432
4434
|
...c
|
|
4433
|
-
} = e, { model: u } = c, { modalWidth: f } =
|
|
4435
|
+
} = e, { model: u } = c, { modalWidth: f } = or(), [d, p] = x(r), [h, m] = x(!1), [y, g] = x(), { action_id: v, res_id: w, action_type: I, view_id: C } = l || {};
|
|
4434
4436
|
ue(() => {
|
|
4435
4437
|
a && b();
|
|
4436
4438
|
}, [l, a]);
|
|
@@ -5081,7 +5083,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5081
5083
|
}),
|
|
5082
5084
|
[o]
|
|
5083
5085
|
);
|
|
5084
|
-
return me(() => a ? /* @__PURE__ */ i(
|
|
5086
|
+
return me(() => a ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
|
|
5085
5087
|
"div",
|
|
5086
5088
|
{
|
|
5087
5089
|
style: {
|
|
@@ -5174,7 +5176,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5174
5176
|
);
|
|
5175
5177
|
return { getColumnState: s, updateColumnState: a };
|
|
5176
5178
|
}, _u = (e) => {
|
|
5177
|
-
const t =
|
|
5179
|
+
const t = ar(
|
|
5178
5180
|
fn.FEATURE_USERVIEWPREFS
|
|
5179
5181
|
), {
|
|
5180
5182
|
getColumnState: n,
|
|
@@ -5340,7 +5342,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5340
5342
|
children: [
|
|
5341
5343
|
/* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Du, { selectedRowKeys: t }) }),
|
|
5342
5344
|
/* @__PURE__ */ D(we, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
|
|
5343
|
-
e === void 0 && /* @__PURE__ */ i(
|
|
5345
|
+
e === void 0 && /* @__PURE__ */ i(He, {}),
|
|
5344
5346
|
e != null && `${r("totalRegisters")} ${e}`
|
|
5345
5347
|
] })
|
|
5346
5348
|
]
|
|
@@ -5408,18 +5410,18 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5408
5410
|
);
|
|
5409
5411
|
}, ku = (e) => {
|
|
5410
5412
|
const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = fo(), a = [
|
|
5411
|
-
new
|
|
5413
|
+
new Or({
|
|
5412
5414
|
name: o + "#date",
|
|
5413
5415
|
label: ""
|
|
5414
5416
|
}),
|
|
5415
|
-
new
|
|
5417
|
+
new Or({
|
|
5416
5418
|
name: o + "#time",
|
|
5417
5419
|
label: ""
|
|
5418
5420
|
})
|
|
5419
5421
|
];
|
|
5420
5422
|
return /* @__PURE__ */ D(ae, { children: [
|
|
5421
5423
|
n && /* @__PURE__ */ i(
|
|
5422
|
-
|
|
5424
|
+
rr,
|
|
5423
5425
|
{
|
|
5424
5426
|
ooui: new ln({
|
|
5425
5427
|
name: o + "_label",
|
|
@@ -5487,7 +5489,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5487
5489
|
wheel: !1
|
|
5488
5490
|
}
|
|
5489
5491
|
) });
|
|
5490
|
-
}, { useToken: Mu } = Ge,
|
|
5492
|
+
}, { useToken: Mu } = Ge, Kn = (e) => {
|
|
5491
5493
|
const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Mu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(Be), { elementHasLostFocus: u } = c || {};
|
|
5492
5494
|
return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
5493
5495
|
Ai,
|
|
@@ -5508,7 +5510,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
|
|
|
5508
5510
|
) });
|
|
5509
5511
|
};
|
|
5510
5512
|
function Lu(e) {
|
|
5511
|
-
const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof
|
|
5513
|
+
const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Fr ? Kn : Rs, l = (c) => /* @__PURE__ */ i(
|
|
5512
5514
|
a,
|
|
5513
5515
|
{
|
|
5514
5516
|
ooui: {
|
|
@@ -5522,7 +5524,7 @@ function Lu(e) {
|
|
|
5522
5524
|
);
|
|
5523
5525
|
return /* @__PURE__ */ D("div", { style: { width: "100%" }, children: [
|
|
5524
5526
|
n && /* @__PURE__ */ i(
|
|
5525
|
-
|
|
5527
|
+
rr,
|
|
5526
5528
|
{
|
|
5527
5529
|
ooui: new ln({
|
|
5528
5530
|
name: r + "_label",
|
|
@@ -5820,7 +5822,7 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
5820
5822
|
function Vs(e) {
|
|
5821
5823
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5822
5824
|
}
|
|
5823
|
-
var af = "Expected a function", zo = 0 / 0, lf = "[object Symbol]", cf = /^\s+|\s+$/g, df = /^[-+]0x[0-9a-f]+$/i, uf = /^0b[01]+$/i, ff = /^0o[0-7]+$/i, mf = parseInt, pf = typeof kn == "object" && kn && kn.Object === Object && kn, hf = typeof self == "object" && self && self.Object === Object && self, gf = pf || hf || Function("return this")(), yf = Object.prototype, vf = yf.toString, wf = Math.max, bf = Math.min,
|
|
5825
|
+
var af = "Expected a function", zo = 0 / 0, lf = "[object Symbol]", cf = /^\s+|\s+$/g, df = /^[-+]0x[0-9a-f]+$/i, uf = /^0b[01]+$/i, ff = /^0o[0-7]+$/i, mf = parseInt, pf = typeof kn == "object" && kn && kn.Object === Object && kn, hf = typeof self == "object" && self && self.Object === Object && self, gf = pf || hf || Function("return this")(), yf = Object.prototype, vf = yf.toString, wf = Math.max, bf = Math.min, gr = function() {
|
|
5824
5826
|
return gf.Date.now();
|
|
5825
5827
|
};
|
|
5826
5828
|
function Sf(e, t, n) {
|
|
@@ -5844,7 +5846,7 @@ function Sf(e, t, n) {
|
|
|
5844
5846
|
return c === void 0 || T >= t || T < 0 || d && R >= s;
|
|
5845
5847
|
}
|
|
5846
5848
|
function v() {
|
|
5847
|
-
var O =
|
|
5849
|
+
var O = gr();
|
|
5848
5850
|
if (g(O))
|
|
5849
5851
|
return w(O);
|
|
5850
5852
|
l = setTimeout(v, y(O));
|
|
@@ -5856,10 +5858,10 @@ function Sf(e, t, n) {
|
|
|
5856
5858
|
l !== void 0 && clearTimeout(l), u = 0, r = c = o = l = void 0;
|
|
5857
5859
|
}
|
|
5858
5860
|
function C() {
|
|
5859
|
-
return l === void 0 ? a : w(
|
|
5861
|
+
return l === void 0 ? a : w(gr());
|
|
5860
5862
|
}
|
|
5861
5863
|
function b() {
|
|
5862
|
-
var O =
|
|
5864
|
+
var O = gr(), T = g(O);
|
|
5863
5865
|
if (r = arguments, o = this, c = O, T) {
|
|
5864
5866
|
if (l === void 0)
|
|
5865
5867
|
return m(c);
|
|
@@ -5900,10 +5902,10 @@ const Tf = /* @__PURE__ */ Vs(If);
|
|
|
5900
5902
|
var Qo = Object.prototype.toString, Es = function(t) {
|
|
5901
5903
|
var n = Qo.call(t), r = n === "[object Arguments]";
|
|
5902
5904
|
return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Qo.call(t.callee) === "[object Function]"), r;
|
|
5903
|
-
},
|
|
5905
|
+
}, yr, Xo;
|
|
5904
5906
|
function Of() {
|
|
5905
5907
|
if (Xo)
|
|
5906
|
-
return
|
|
5908
|
+
return yr;
|
|
5907
5909
|
Xo = 1;
|
|
5908
5910
|
var e;
|
|
5909
5911
|
if (!Object.keys) {
|
|
@@ -5987,7 +5989,7 @@ function Of() {
|
|
|
5987
5989
|
return w;
|
|
5988
5990
|
};
|
|
5989
5991
|
}
|
|
5990
|
-
return
|
|
5992
|
+
return yr = e, yr;
|
|
5991
5993
|
}
|
|
5992
5994
|
var Ff = Array.prototype.slice, Af = Es, Zo = Object.keys, Mn = Zo ? function(t) {
|
|
5993
5995
|
return Zo(t);
|
|
@@ -6036,21 +6038,21 @@ var Ds = Mn, Ps = function() {
|
|
|
6036
6038
|
foo: {}
|
|
6037
6039
|
}, Ef = Object, Df = function() {
|
|
6038
6040
|
return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Ef);
|
|
6039
|
-
}, Pf = "Function.prototype.bind called on incompatible ",
|
|
6041
|
+
}, Pf = "Function.prototype.bind called on incompatible ", vr = Array.prototype.slice, kf = Object.prototype.toString, $f = "[object Function]", Nf = function(t) {
|
|
6040
6042
|
var n = this;
|
|
6041
6043
|
if (typeof n != "function" || kf.call(n) !== $f)
|
|
6042
6044
|
throw new TypeError(Pf + n);
|
|
6043
|
-
for (var r =
|
|
6045
|
+
for (var r = vr.call(arguments, 1), o, s = function() {
|
|
6044
6046
|
if (this instanceof o) {
|
|
6045
6047
|
var f = n.apply(
|
|
6046
6048
|
this,
|
|
6047
|
-
r.concat(
|
|
6049
|
+
r.concat(vr.call(arguments))
|
|
6048
6050
|
);
|
|
6049
6051
|
return Object(f) === f ? f : this;
|
|
6050
6052
|
} else
|
|
6051
6053
|
return n.apply(
|
|
6052
6054
|
t,
|
|
6053
|
-
r.concat(
|
|
6055
|
+
r.concat(vr.call(arguments))
|
|
6054
6056
|
);
|
|
6055
6057
|
}, a = Math.max(0, n.length - r.length), l = [], c = 0; c < a; c++)
|
|
6056
6058
|
l.push("$" + c);
|
|
@@ -6060,9 +6062,9 @@ var Ds = Mn, Ps = function() {
|
|
|
6060
6062
|
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
6061
6063
|
}
|
|
6062
6064
|
return o;
|
|
6063
|
-
}, Mf = Nf, ks = Function.prototype.bind || Mf, ri = {}.hasOwnProperty,
|
|
6064
|
-
return
|
|
6065
|
-
}, Ve, sn = SyntaxError, $s = Function, tn = TypeError,
|
|
6065
|
+
}, Mf = Nf, ks = Function.prototype.bind || Mf, ri = {}.hasOwnProperty, wr = Function.prototype.call, Lf = wr.bind ? wr.bind(ri) : function(e, t) {
|
|
6066
|
+
return wr.call(ri, e, t);
|
|
6067
|
+
}, Ve, sn = SyntaxError, $s = Function, tn = TypeError, br = function(e) {
|
|
6066
6068
|
try {
|
|
6067
6069
|
return $s('"use strict"; return (' + e + ").constructor;")();
|
|
6068
6070
|
} catch {
|
|
@@ -6074,19 +6076,19 @@ if (jt)
|
|
|
6074
6076
|
} catch {
|
|
6075
6077
|
jt = null;
|
|
6076
6078
|
}
|
|
6077
|
-
var
|
|
6079
|
+
var Sr = function() {
|
|
6078
6080
|
throw new tn();
|
|
6079
6081
|
}, jf = jt ? function() {
|
|
6080
6082
|
try {
|
|
6081
|
-
return arguments.callee,
|
|
6083
|
+
return arguments.callee, Sr;
|
|
6082
6084
|
} catch {
|
|
6083
6085
|
try {
|
|
6084
6086
|
return jt(arguments, "callee").get;
|
|
6085
6087
|
} catch {
|
|
6086
|
-
return
|
|
6088
|
+
return Sr;
|
|
6087
6089
|
}
|
|
6088
6090
|
}
|
|
6089
|
-
}() :
|
|
6091
|
+
}() : Sr, Kt = Vf(), Bf = Df(), Ze = Object.getPrototypeOf || (Bf ? function(e) {
|
|
6090
6092
|
return e.__proto__;
|
|
6091
6093
|
} : null), Qt = {}, Hf = typeof Uint8Array > "u" || !Ze ? Ve : Ze(Uint8Array), Bt = {
|
|
6092
6094
|
"%AggregateError%": typeof AggregateError > "u" ? Ve : AggregateError,
|
|
@@ -6167,11 +6169,11 @@ if (Ze)
|
|
|
6167
6169
|
var Wf = function e(t) {
|
|
6168
6170
|
var n;
|
|
6169
6171
|
if (t === "%AsyncFunction%")
|
|
6170
|
-
n =
|
|
6172
|
+
n = br("async function () {}");
|
|
6171
6173
|
else if (t === "%GeneratorFunction%")
|
|
6172
|
-
n =
|
|
6174
|
+
n = br("function* () {}");
|
|
6173
6175
|
else if (t === "%AsyncGeneratorFunction%")
|
|
6174
|
-
n =
|
|
6176
|
+
n = br("async function* () {}");
|
|
6175
6177
|
else if (t === "%AsyncGenerator%") {
|
|
6176
6178
|
var r = e("%AsyncGeneratorFunction%");
|
|
6177
6179
|
r && (n = r.prototype);
|
|
@@ -6232,8 +6234,8 @@ var Wf = function e(t) {
|
|
|
6232
6234
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
6233
6235
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
6234
6236
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
6235
|
-
}, _n = ks,
|
|
6236
|
-
var n =
|
|
6237
|
+
}, _n = ks, qn = Lf, Gf = _n.call(Function.call, Array.prototype.concat), Kf = _n.call(Function.apply, Array.prototype.splice), ii = _n.call(Function.call, String.prototype.replace), Yn = _n.call(Function.call, String.prototype.slice), qf = _n.call(Function.call, RegExp.prototype.exec), Yf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, zf = /\\(\\)?/g, Jf = function(t) {
|
|
6238
|
+
var n = Yn(t, 0, 1), r = Yn(t, -1);
|
|
6237
6239
|
if (n === "%" && r !== "%")
|
|
6238
6240
|
throw new sn("invalid intrinsic syntax, expected closing `%`");
|
|
6239
6241
|
if (r === "%" && n !== "%")
|
|
@@ -6244,7 +6246,7 @@ var Wf = function e(t) {
|
|
|
6244
6246
|
}), o;
|
|
6245
6247
|
}, Qf = function(t, n) {
|
|
6246
6248
|
var r = t, o;
|
|
6247
|
-
if (
|
|
6249
|
+
if (qn(oi, r) && (o = oi[r], r = "%" + o[0] + "%"), qn(Bt, r)) {
|
|
6248
6250
|
var s = Bt[r];
|
|
6249
6251
|
if (s === Qt && (s = Wf(r)), typeof s > "u" && !n)
|
|
6250
6252
|
throw new tn("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
@@ -6265,10 +6267,10 @@ var Wf = function e(t) {
|
|
|
6265
6267
|
var r = Jf(t), o = r.length > 0 ? r[0] : "", s = Qf("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
|
|
6266
6268
|
u && (o = u[0], Kf(r, Gf([0, 1], u)));
|
|
6267
6269
|
for (var f = 1, d = !0; f < r.length; f += 1) {
|
|
6268
|
-
var p = r[f], h =
|
|
6270
|
+
var p = r[f], h = Yn(p, 0, 1), m = Yn(p, -1);
|
|
6269
6271
|
if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
|
|
6270
6272
|
throw new sn("property names with quotes must have matching quotes");
|
|
6271
|
-
if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%",
|
|
6273
|
+
if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", qn(Bt, a))
|
|
6272
6274
|
l = Bt[a];
|
|
6273
6275
|
else if (l != null) {
|
|
6274
6276
|
if (!(p in l)) {
|
|
@@ -6280,7 +6282,7 @@ var Wf = function e(t) {
|
|
|
6280
6282
|
var y = jt(l, p);
|
|
6281
6283
|
d = !!y, d && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[p];
|
|
6282
6284
|
} else
|
|
6283
|
-
d =
|
|
6285
|
+
d = qn(l, p), l = l[p];
|
|
6284
6286
|
d && !c && (Bt[a] = l);
|
|
6285
6287
|
}
|
|
6286
6288
|
}
|
|
@@ -6314,15 +6316,15 @@ var Wf = function e(t) {
|
|
|
6314
6316
|
var ho = Ns.exports, Ms = Vn, Ls = ho, Xf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
|
|
6315
6317
|
var r = Ms(t, !!n);
|
|
6316
6318
|
return typeof r == "function" && Xf(t, ".prototype.") > -1 ? Ls(r) : r;
|
|
6317
|
-
}, Zf = po(), em = js, Er = em("Object.prototype.toString"),
|
|
6319
|
+
}, Zf = po(), em = js, Er = em("Object.prototype.toString"), lr = function(t) {
|
|
6318
6320
|
return Zf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Er(t) === "[object Arguments]";
|
|
6319
6321
|
}, Bs = function(t) {
|
|
6320
|
-
return
|
|
6322
|
+
return lr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Er(t) !== "[object Array]" && Er(t.callee) === "[object Function]";
|
|
6321
6323
|
}, tm = function() {
|
|
6322
|
-
return
|
|
6324
|
+
return lr(arguments);
|
|
6323
6325
|
}();
|
|
6324
|
-
|
|
6325
|
-
var nm = tm ?
|
|
6326
|
+
lr.isLegacyArguments = Bs;
|
|
6327
|
+
var nm = tm ? lr : Bs, rm = Vn, Dr = rm("%Object.defineProperty%", !0), Pr = function() {
|
|
6326
6328
|
if (Dr)
|
|
6327
6329
|
try {
|
|
6328
6330
|
return Dr({}, "a", { value: 1 }), !0;
|
|
@@ -6340,10 +6342,10 @@ Pr.hasArrayLengthDefineBug = function() {
|
|
|
6340
6342
|
return !0;
|
|
6341
6343
|
}
|
|
6342
6344
|
};
|
|
6343
|
-
var go = Pr,
|
|
6345
|
+
var go = Pr, Cr, si;
|
|
6344
6346
|
function om() {
|
|
6345
6347
|
if (si)
|
|
6346
|
-
return
|
|
6348
|
+
return Cr;
|
|
6347
6349
|
si = 1;
|
|
6348
6350
|
var e = Vn, t = e("%Object.getOwnPropertyDescriptor%", !0);
|
|
6349
6351
|
if (t)
|
|
@@ -6352,7 +6354,7 @@ function om() {
|
|
|
6352
6354
|
} catch {
|
|
6353
6355
|
t = null;
|
|
6354
6356
|
}
|
|
6355
|
-
return
|
|
6357
|
+
return Cr = t, Cr;
|
|
6356
6358
|
}
|
|
6357
6359
|
var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%SyntaxError%"), qt = yo("%TypeError%"), li = om(), Hs = function(t, n, r) {
|
|
6358
6360
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
@@ -6419,13 +6421,13 @@ ym(Ys, {
|
|
|
6419
6421
|
var Sm = Ys, kr = js, zs = po(), Js, Qs, $r, Nr;
|
|
6420
6422
|
if (zs) {
|
|
6421
6423
|
Js = kr("Object.prototype.hasOwnProperty"), Qs = kr("RegExp.prototype.exec"), $r = {};
|
|
6422
|
-
var
|
|
6424
|
+
var xr = function() {
|
|
6423
6425
|
throw $r;
|
|
6424
6426
|
};
|
|
6425
6427
|
Nr = {
|
|
6426
|
-
toString:
|
|
6427
|
-
valueOf:
|
|
6428
|
-
}, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] =
|
|
6428
|
+
toString: xr,
|
|
6429
|
+
valueOf: xr
|
|
6430
|
+
}, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = xr);
|
|
6429
6431
|
}
|
|
6430
6432
|
var Cm = kr("Object.prototype.toString"), xm = Object.getOwnPropertyDescriptor, Im = "[object RegExp]", Tm = zs ? function(t) {
|
|
6431
6433
|
if (!t || typeof t != "object")
|
|
@@ -6703,7 +6705,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
|
|
|
6703
6705
|
/* @__PURE__ */ i(
|
|
6704
6706
|
je,
|
|
6705
6707
|
{
|
|
6706
|
-
icon: /* @__PURE__ */ i(
|
|
6708
|
+
icon: /* @__PURE__ */ i(er, {}),
|
|
6707
6709
|
size: "large",
|
|
6708
6710
|
type: "primary",
|
|
6709
6711
|
onClick: t,
|
|
@@ -6714,7 +6716,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
|
|
|
6714
6716
|
/* @__PURE__ */ i(
|
|
6715
6717
|
je,
|
|
6716
6718
|
{
|
|
6717
|
-
icon: /* @__PURE__ */ i(
|
|
6719
|
+
icon: /* @__PURE__ */ i(Zn, {}),
|
|
6718
6720
|
size: "large",
|
|
6719
6721
|
onClick: e,
|
|
6720
6722
|
style: { width: "80px" },
|
|
@@ -6738,15 +6740,15 @@ function ap(e) {
|
|
|
6738
6740
|
} = e, { t: a } = he();
|
|
6739
6741
|
return /* @__PURE__ */ D(ke, { children: [
|
|
6740
6742
|
!s && /* @__PURE__ */ i(we, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
|
|
6741
|
-
n ? /* @__PURE__ */ i(Za, { className: "pr-1" }) : /* @__PURE__ */ i(
|
|
6743
|
+
n ? /* @__PURE__ */ i(Za, { className: "pr-1" }) : /* @__PURE__ */ i(Qn, { className: "pr-1" }),
|
|
6742
6744
|
a(n ? "simple_search" : "advanced_search")
|
|
6743
6745
|
] }) }),
|
|
6744
6746
|
/* @__PURE__ */ D(we, { span: s ? 24 : 12, className: "text-right pb-2", children: [
|
|
6745
|
-
/* @__PURE__ */ i(je, { className: "mr-5", icon: /* @__PURE__ */ i(
|
|
6747
|
+
/* @__PURE__ */ i(je, { className: "mr-5", icon: /* @__PURE__ */ i(Zn, {}), onClick: r, children: a("clear") }),
|
|
6746
6748
|
/* @__PURE__ */ i(
|
|
6747
6749
|
je,
|
|
6748
6750
|
{
|
|
6749
|
-
icon: /* @__PURE__ */ i(
|
|
6751
|
+
icon: /* @__PURE__ */ i(er, {}),
|
|
6750
6752
|
loading: o,
|
|
6751
6753
|
className: "mr-2",
|
|
6752
6754
|
type: "primary",
|
|
@@ -6758,13 +6760,13 @@ function ap(e) {
|
|
|
6758
6760
|
] });
|
|
6759
6761
|
}
|
|
6760
6762
|
function lp(e) {
|
|
6761
|
-
const { onLimitChange: t } = e, { t: n } = he(), r = new
|
|
6763
|
+
const { onLimitChange: t } = e, { t: n } = he(), r = new Fr({ name: "limit" }), o = new Fr({ name: "offset" });
|
|
6762
6764
|
return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
|
|
6763
6765
|
/* @__PURE__ */ i(ke, { children: n("parameters") }, "count_params"),
|
|
6764
6766
|
/* @__PURE__ */ D(Je, { align: "center", children: [
|
|
6765
6767
|
n("limit") + " :",
|
|
6766
6768
|
/* @__PURE__ */ i(
|
|
6767
|
-
|
|
6769
|
+
Kn,
|
|
6768
6770
|
{
|
|
6769
6771
|
ooui: r,
|
|
6770
6772
|
onChange: (s) => {
|
|
@@ -6773,7 +6775,7 @@ function lp(e) {
|
|
|
6773
6775
|
}
|
|
6774
6776
|
),
|
|
6775
6777
|
n("first") + " :",
|
|
6776
|
-
/* @__PURE__ */ i(
|
|
6778
|
+
/* @__PURE__ */ i(Kn, { ooui: o })
|
|
6777
6779
|
] })
|
|
6778
6780
|
] });
|
|
6779
6781
|
}
|
|
@@ -7066,7 +7068,7 @@ function mp(e, t) {
|
|
|
7066
7068
|
}
|
|
7067
7069
|
if (De.current = Pt, vn.length === 0)
|
|
7068
7070
|
return g.current = [], b(0), L(0), [];
|
|
7069
|
-
const It =
|
|
7071
|
+
const It = sr(K, vn), bn = rn(kt);
|
|
7070
7072
|
if (h.current = {
|
|
7071
7073
|
...h.current,
|
|
7072
7074
|
...bn
|
|
@@ -7121,7 +7123,7 @@ function mp(e, t) {
|
|
|
7121
7123
|
var Me, tt, Qe, Dt;
|
|
7122
7124
|
if (h.current[(tt = (Me = ie.node) == null ? void 0 : Me.data) == null ? void 0 : tt.id])
|
|
7123
7125
|
return { color: h.current[(Dt = (Qe = ie.node) == null ? void 0 : Qe.data) == null ? void 0 : Dt.id] };
|
|
7124
|
-
}, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se,
|
|
7126
|
+
}, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se, Ue] = Fs({
|
|
7125
7127
|
ooui: K,
|
|
7126
7128
|
model: n,
|
|
7127
7129
|
showEmptyValues: !0,
|
|
@@ -7167,7 +7169,7 @@ function mp(e, t) {
|
|
|
7167
7169
|
k,
|
|
7168
7170
|
O,
|
|
7169
7171
|
C
|
|
7170
|
-
]), re = N(() => W, [W]), Oe = me(() =>
|
|
7172
|
+
]), re = N(() => W, [W]), Oe = me(() => Ue ? /* @__PURE__ */ i(As, { aggregates: Se, isLoading: Ce }) : null, [Se, Ce, Ue]), Ke = N((ie) => /* @__PURE__ */ i(Jn, { color: ie, style: { marginLeft: 7 } }), []), ge = N(
|
|
7171
7173
|
(ie) => {
|
|
7172
7174
|
var Me;
|
|
7173
7175
|
return (Me = m.current) == null ? void 0 : Me[ie.id];
|
|
@@ -7306,7 +7308,7 @@ function mp(e, t) {
|
|
|
7306
7308
|
), Et = N(
|
|
7307
7309
|
() => _ == null ? void 0 : _(!1),
|
|
7308
7310
|
[_]
|
|
7309
|
-
),
|
|
7311
|
+
), We = N(
|
|
7310
7312
|
({ params: ie, values: Me }) => {
|
|
7311
7313
|
var tt;
|
|
7312
7314
|
k == null || k([]), (tt = y.current) == null || tt.unselectAll(), oe == null || oe(void 0), E == null || E(ie), J == null || J(Me), _ == null || _(!1);
|
|
@@ -7333,7 +7335,7 @@ function mp(e, t) {
|
|
|
7333
7335
|
{
|
|
7334
7336
|
...Gt,
|
|
7335
7337
|
onClose: Et,
|
|
7336
|
-
onSubmit:
|
|
7338
|
+
onSubmit: We
|
|
7337
7339
|
}
|
|
7338
7340
|
),
|
|
7339
7341
|
/* @__PURE__ */ i(
|
|
@@ -7344,7 +7346,7 @@ function mp(e, t) {
|
|
|
7344
7346
|
totalRows: C
|
|
7345
7347
|
}
|
|
7346
7348
|
),
|
|
7347
|
-
/* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(
|
|
7349
|
+
/* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(He, {}) : z })
|
|
7348
7350
|
] });
|
|
7349
7351
|
}
|
|
7350
7352
|
const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
@@ -7398,7 +7400,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
|
7398
7400
|
"{numberOfSelectedRows}",
|
|
7399
7401
|
e.toString()
|
|
7400
7402
|
) + " ",
|
|
7401
|
-
s ? /* @__PURE__ */ i(
|
|
7403
|
+
s ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(Ml, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
|
|
7402
7404
|
"{totalRecords}",
|
|
7403
7405
|
t.toString()
|
|
7404
7406
|
) })
|
|
@@ -7457,7 +7459,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
|
7457
7459
|
if (!F)
|
|
7458
7460
|
return;
|
|
7459
7461
|
A.current = !1;
|
|
7460
|
-
const L =
|
|
7462
|
+
const L = sr(F, a);
|
|
7461
7463
|
V(L);
|
|
7462
7464
|
}, [a]), ue(() => {
|
|
7463
7465
|
k.current = r;
|
|
@@ -7468,7 +7470,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
|
7468
7470
|
const L = S == null ? void 0 : S.filter(
|
|
7469
7471
|
(ee) => d && d.includes(ee.id)
|
|
7470
7472
|
).length;
|
|
7471
|
-
return c ? null : o === void 0 ? /* @__PURE__ */ i(
|
|
7473
|
+
return c ? null : o === void 0 ? /* @__PURE__ */ i(He, { className: "pb-4" }) : /* @__PURE__ */ D(ke, { align: "bottom", className: "pb-4", children: [
|
|
7472
7474
|
/* @__PURE__ */ i(we, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
|
|
7473
7475
|
Ha,
|
|
7474
7476
|
{
|
|
@@ -7517,7 +7519,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
|
7517
7519
|
if (F !== null && E && E.length > 0)
|
|
7518
7520
|
return pp(E, S, 600);
|
|
7519
7521
|
}, [E, S, F]), B = me(() => h && (F != null && F.columns.some((L) => L.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
|
|
7520
|
-
return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(
|
|
7522
|
+
return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Ln, { children: [
|
|
7521
7523
|
H,
|
|
7522
7524
|
/* @__PURE__ */ i(
|
|
7523
7525
|
El,
|
|
@@ -7527,14 +7529,14 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
|
|
|
7527
7529
|
columns: Z.columns,
|
|
7528
7530
|
dataSource: S,
|
|
7529
7531
|
loading: c,
|
|
7530
|
-
loadingComponent: /* @__PURE__ */ i(
|
|
7532
|
+
loadingComponent: /* @__PURE__ */ i(He, {}),
|
|
7531
7533
|
onRowStyle: (L) => {
|
|
7532
7534
|
if (m[L.id])
|
|
7533
7535
|
return { color: m[L.id] };
|
|
7534
7536
|
},
|
|
7535
7537
|
onRowStatus: Ac(y) ? (L) => {
|
|
7536
7538
|
if (y[L.id])
|
|
7537
|
-
return /* @__PURE__ */ i(
|
|
7539
|
+
return /* @__PURE__ */ i(Jn, { color: y[L.id] });
|
|
7538
7540
|
} : void 0,
|
|
7539
7541
|
onRowDoubleClick: u,
|
|
7540
7542
|
onRowSelectionChange: p,
|
|
@@ -7607,12 +7609,12 @@ const sa = (e) => {
|
|
|
7607
7609
|
attrs: Y
|
|
7608
7610
|
}), Se = Ce[0];
|
|
7609
7611
|
L.current = [...Se], oe(rn(Ce[1])), B(jn(Ce[1]));
|
|
7610
|
-
const
|
|
7612
|
+
const Ue = Se.map((re) => re.id), Ne = h !== void 0 ? en({
|
|
7611
7613
|
resultsToSort: Se,
|
|
7612
7614
|
sorter: h,
|
|
7613
7615
|
fields: { ...d.fields, ...p.fields }
|
|
7614
7616
|
}) : [...L.current];
|
|
7615
|
-
ee(Ne),
|
|
7617
|
+
ee(Ne), Ue.length > 0 ? y == null || y(0) : y == null || y(void 0);
|
|
7616
7618
|
} else
|
|
7617
7619
|
ee([]), y == null || y(void 0);
|
|
7618
7620
|
V(!1), c.current = !0;
|
|
@@ -7632,7 +7634,7 @@ const sa = (e) => {
|
|
|
7632
7634
|
async (de) => {
|
|
7633
7635
|
const { params: Te, newOffset: fe } = de || {}, Ae = on(Te || O, w), { colors: Y, status: Ce } = Ot(d), Se = {};
|
|
7634
7636
|
Y && (Se.colors = Y), Ce && (Se.status = Ce);
|
|
7635
|
-
const { totalItems:
|
|
7637
|
+
const { totalItems: Ue, results: Ne, attrsEvaluated: re } = await $.getHandler().searchForTree({
|
|
7636
7638
|
params: Ae,
|
|
7637
7639
|
limit: G.current,
|
|
7638
7640
|
offset: fe || W,
|
|
@@ -7655,7 +7657,7 @@ const sa = (e) => {
|
|
|
7655
7657
|
} else
|
|
7656
7658
|
y == null || y(void 0);
|
|
7657
7659
|
V(!1);
|
|
7658
|
-
const Ke = await
|
|
7660
|
+
const Ke = await Ue();
|
|
7659
7661
|
X(Ke), f == null || f(Ke);
|
|
7660
7662
|
},
|
|
7661
7663
|
[
|
|
@@ -7752,7 +7754,7 @@ const sa = (e) => {
|
|
|
7752
7754
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
7753
7755
|
context: u
|
|
7754
7756
|
});
|
|
7755
|
-
return ee([...le(), ...fe]),
|
|
7757
|
+
return ee([...le(), ...fe]), sr(Ot(d), fe);
|
|
7756
7758
|
},
|
|
7757
7759
|
[d, t, u, le, ee]
|
|
7758
7760
|
), Ie = N(async () => await $.getHandler().searchAllIds({
|
|
@@ -7795,7 +7797,7 @@ function yp(e, t) {
|
|
|
7795
7797
|
rootTree: f = !1,
|
|
7796
7798
|
parentContext: d = {},
|
|
7797
7799
|
onChangeSelectedRowKeys: p
|
|
7798
|
-
} = e, [h, m] = x(!1), [y, g] = x(!1), v = Q(!1), w = Q(null), [I, C] = x(), [b, O] = x(), [T, R] = x(), [S, V] = x(), [A, F] = x(200), P = Q(), { height: _ } =
|
|
7800
|
+
} = e, [h, m] = x(!1), [y, g] = x(!1), v = Q(!1), w = Q(null), [I, C] = x(), [b, O] = x(), [T, R] = x(), [S, V] = x(), [A, F] = x(200), P = Q(), { height: _ } = or(), k = ne(
|
|
7799
7801
|
pn
|
|
7800
7802
|
), { processAction: M } = k || {}, W = ne(
|
|
7801
7803
|
at
|
|
@@ -7820,8 +7822,8 @@ function yp(e, t) {
|
|
|
7820
7822
|
limit: Le = Rt,
|
|
7821
7823
|
setLimit: Pe = void 0
|
|
7822
7824
|
} = (f ? W : {}) || {}, Fe = N(
|
|
7823
|
-
(
|
|
7824
|
-
H == null || H(
|
|
7825
|
+
(We) => {
|
|
7826
|
+
H == null || H(We.map((ie) => ({ id: ie }))), p == null || p(We);
|
|
7825
7827
|
},
|
|
7826
7828
|
[p, H]
|
|
7827
7829
|
), {
|
|
@@ -7834,7 +7836,7 @@ function yp(e, t) {
|
|
|
7834
7836
|
page: Y,
|
|
7835
7837
|
limit: Ce,
|
|
7836
7838
|
offset: Se,
|
|
7837
|
-
getResults:
|
|
7839
|
+
getResults: Ue,
|
|
7838
7840
|
requestPageChange: Ne,
|
|
7839
7841
|
changeSort: re,
|
|
7840
7842
|
fetchChildrenForRecord: Oe,
|
|
@@ -7881,15 +7883,15 @@ function yp(e, t) {
|
|
|
7881
7883
|
g(!1), m(!0), V(void 0), pe == null || pe(!0);
|
|
7882
7884
|
try {
|
|
7883
7885
|
await Re(), g(!0);
|
|
7884
|
-
} catch (
|
|
7885
|
-
V(
|
|
7886
|
+
} catch (We) {
|
|
7887
|
+
V(We), pe == null || pe(!1);
|
|
7886
7888
|
} finally {
|
|
7887
7889
|
m(!1);
|
|
7888
7890
|
}
|
|
7889
7891
|
}, Re = async () => {
|
|
7890
7892
|
C(n);
|
|
7891
|
-
let
|
|
7892
|
-
r || (
|
|
7893
|
+
let We = r;
|
|
7894
|
+
r || (We = await $.getHandler().getView({
|
|
7893
7895
|
model: n,
|
|
7894
7896
|
type: "form",
|
|
7895
7897
|
context: d
|
|
@@ -7899,19 +7901,19 @@ function yp(e, t) {
|
|
|
7899
7901
|
model: n,
|
|
7900
7902
|
type: "tree",
|
|
7901
7903
|
context: d
|
|
7902
|
-
})), R(
|
|
7904
|
+
})), R(We), O(ie);
|
|
7903
7905
|
};
|
|
7904
7906
|
ue(() => {
|
|
7905
7907
|
ye();
|
|
7906
7908
|
}, [n]);
|
|
7907
7909
|
const be = N(
|
|
7908
|
-
(
|
|
7909
|
-
Pe == null || Pe(
|
|
7910
|
+
(We) => {
|
|
7911
|
+
Pe == null || Pe(We);
|
|
7910
7912
|
},
|
|
7911
7913
|
[Pe]
|
|
7912
7914
|
), De = N(
|
|
7913
|
-
async (
|
|
7914
|
-
const { id: ie } =
|
|
7915
|
+
async (We) => {
|
|
7916
|
+
const { id: ie } = We;
|
|
7915
7917
|
P.current || (P.current = await $.getHandler().treeButOpen({
|
|
7916
7918
|
id: b.view_id,
|
|
7917
7919
|
model: I,
|
|
@@ -7923,18 +7925,18 @@ function yp(e, t) {
|
|
|
7923
7925
|
fields: b.fields,
|
|
7924
7926
|
values: {
|
|
7925
7927
|
active_id: ie,
|
|
7926
|
-
...
|
|
7928
|
+
...We
|
|
7927
7929
|
},
|
|
7928
7930
|
context: d
|
|
7929
7931
|
}));
|
|
7930
7932
|
},
|
|
7931
7933
|
[I, d, M, b]
|
|
7932
7934
|
), Ee = N(
|
|
7933
|
-
async (
|
|
7934
|
-
const { id: ie } =
|
|
7935
|
+
async (We) => {
|
|
7936
|
+
const { id: ie } = We;
|
|
7935
7937
|
if (b != null && b.isExpandable) {
|
|
7936
7938
|
try {
|
|
7937
|
-
await De(
|
|
7939
|
+
await De(We);
|
|
7938
7940
|
} catch (Me) {
|
|
7939
7941
|
it(Me);
|
|
7940
7942
|
}
|
|
@@ -7949,10 +7951,10 @@ function yp(e, t) {
|
|
|
7949
7951
|
},
|
|
7950
7952
|
[I, T, s, De, b]
|
|
7951
7953
|
), ut = N(async () => {
|
|
7952
|
-
const
|
|
7953
|
-
H == null || H(
|
|
7954
|
+
const We = await z();
|
|
7955
|
+
H == null || H(We.map((ie) => ({ id: ie }))), p == null || p(We);
|
|
7954
7956
|
}, [z, p, H]), ft = me(() => b != null && b.isExpandable ? _ - 160 : _ - (A + 240), [_, A, b == null ? void 0 : b.isExpandable]), Ye = me(
|
|
7955
|
-
() => J == null ? void 0 : J.map((
|
|
7957
|
+
() => J == null ? void 0 : J.map((We) => We.id),
|
|
7956
7958
|
[J]
|
|
7957
7959
|
), gt = N(() => !b || !T ? null : /* @__PURE__ */ D(ae, { children: [
|
|
7958
7960
|
/* @__PURE__ */ i(
|
|
@@ -7984,7 +7986,7 @@ function yp(e, t) {
|
|
|
7984
7986
|
limit: Ce,
|
|
7985
7987
|
page: Y,
|
|
7986
7988
|
treeView: b,
|
|
7987
|
-
results:
|
|
7989
|
+
results: Ue(),
|
|
7988
7990
|
onRequestPageChange: Ne,
|
|
7989
7991
|
loading: Te,
|
|
7990
7992
|
onRowClicked: Ee,
|
|
@@ -8009,7 +8011,7 @@ function yp(e, t) {
|
|
|
8009
8011
|
Ke,
|
|
8010
8012
|
Oe,
|
|
8011
8013
|
T,
|
|
8012
|
-
|
|
8014
|
+
Ue,
|
|
8013
8015
|
Le,
|
|
8014
8016
|
Ce,
|
|
8015
8017
|
Se,
|
|
@@ -8033,7 +8035,7 @@ function yp(e, t) {
|
|
|
8033
8035
|
l,
|
|
8034
8036
|
b
|
|
8035
8037
|
]), Gt = S || Ae;
|
|
8036
|
-
return Gt ? /* @__PURE__ */ i(rt, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(
|
|
8038
|
+
return Gt ? /* @__PURE__ */ i(rt, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(He, {}) : gt() });
|
|
8037
8039
|
}
|
|
8038
8040
|
const aa = yt(yp), wo = ({
|
|
8039
8041
|
visible: e,
|
|
@@ -8044,7 +8046,7 @@ const aa = yt(yp), wo = ({
|
|
|
8044
8046
|
domain: s,
|
|
8045
8047
|
context: a = {}
|
|
8046
8048
|
}) => {
|
|
8047
|
-
const [l, c] = x(!1), [u, f] = x([]), [d, p] = x(!1), { modalWidth: h, modalHeight: m } =
|
|
8049
|
+
const [l, c] = x(!1), [u, f] = x([]), [d, p] = x(!1), { modalWidth: h, modalHeight: m } = or(), { t: y } = he(), {
|
|
8048
8050
|
treeView: g,
|
|
8049
8051
|
formView: v,
|
|
8050
8052
|
loading: w
|
|
@@ -8121,13 +8123,13 @@ const aa = yt(yp), wo = ({
|
|
|
8121
8123
|
filterType: "top"
|
|
8122
8124
|
}
|
|
8123
8125
|
),
|
|
8124
|
-
/* @__PURE__ */ i(
|
|
8126
|
+
/* @__PURE__ */ i(zn, {}),
|
|
8125
8127
|
/* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
|
|
8126
8128
|
/* @__PURE__ */ i(
|
|
8127
8129
|
je,
|
|
8128
8130
|
{
|
|
8129
8131
|
disabled: d,
|
|
8130
|
-
icon: /* @__PURE__ */ i(
|
|
8132
|
+
icon: /* @__PURE__ */ i(tr, {}),
|
|
8131
8133
|
onClick: S,
|
|
8132
8134
|
children: y("new")
|
|
8133
8135
|
}
|
|
@@ -8136,7 +8138,7 @@ const aa = yt(yp), wo = ({
|
|
|
8136
8138
|
je,
|
|
8137
8139
|
{
|
|
8138
8140
|
disabled: d,
|
|
8139
|
-
icon: d ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(
|
|
8141
|
+
icon: d ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Xn, {}),
|
|
8140
8142
|
onClick: T,
|
|
8141
8143
|
type: "primary",
|
|
8142
8144
|
children: y("ok")
|
|
@@ -8297,7 +8299,7 @@ const aa = yt(yp), wo = ({
|
|
|
8297
8299
|
/* @__PURE__ */ i(we, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ i(
|
|
8298
8300
|
je,
|
|
8299
8301
|
{
|
|
8300
|
-
icon: y ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(
|
|
8302
|
+
icon: y ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(er, {}),
|
|
8301
8303
|
disabled: a || y,
|
|
8302
8304
|
onClick: () => {
|
|
8303
8305
|
I.current = !0, te(W);
|
|
@@ -8490,7 +8492,7 @@ const aa = yt(yp), wo = ({
|
|
|
8490
8492
|
);
|
|
8491
8493
|
}
|
|
8492
8494
|
function I() {
|
|
8493
|
-
return /* @__PURE__ */ i(
|
|
8495
|
+
return /* @__PURE__ */ i(Jn, { count: h.length, children: /* @__PURE__ */ i(
|
|
8494
8496
|
nt,
|
|
8495
8497
|
{
|
|
8496
8498
|
tooltip: d ? "Unlink" : "Delete",
|
|
@@ -8541,7 +8543,7 @@ const aa = yt(yp), wo = ({
|
|
|
8541
8543
|
nt,
|
|
8542
8544
|
{
|
|
8543
8545
|
tooltip: "Create new item",
|
|
8544
|
-
icon: /* @__PURE__ */ i(
|
|
8546
|
+
icon: /* @__PURE__ */ i(tr, {}),
|
|
8545
8547
|
disabled: n,
|
|
8546
8548
|
onClick: r
|
|
8547
8549
|
}
|
|
@@ -8552,7 +8554,7 @@ const aa = yt(yp), wo = ({
|
|
|
8552
8554
|
nt,
|
|
8553
8555
|
{
|
|
8554
8556
|
tooltip: "Search existing item",
|
|
8555
|
-
icon: /* @__PURE__ */ i(
|
|
8557
|
+
icon: /* @__PURE__ */ i(er, {}),
|
|
8556
8558
|
disabled: n,
|
|
8557
8559
|
onClick: p
|
|
8558
8560
|
}
|
|
@@ -8759,7 +8761,7 @@ const Fp = (e) => {
|
|
|
8759
8761
|
T(ye);
|
|
8760
8762
|
}
|
|
8761
8763
|
u(0), b(!1);
|
|
8762
|
-
},
|
|
8764
|
+
}, Ue = (z, ye, Re, be = !1) => {
|
|
8763
8765
|
let De;
|
|
8764
8766
|
if (be)
|
|
8765
8767
|
De = s.concat({
|
|
@@ -8832,7 +8834,7 @@ const Fp = (e) => {
|
|
|
8832
8834
|
const Ke = () => {
|
|
8833
8835
|
var ye, Re, be, De;
|
|
8834
8836
|
if (a === "form")
|
|
8835
|
-
return le.length === 0 ? v("noCurrentEntries") : a !== K.current && s.some((Ee) => !Ee.values) ? /* @__PURE__ */ i(
|
|
8837
|
+
return le.length === 0 ? v("noCurrentEntries") : a !== K.current && s.some((Ee) => !Ee.values) ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
|
|
8836
8838
|
hn,
|
|
8837
8839
|
{
|
|
8838
8840
|
formView: o.get("form"),
|
|
@@ -8900,7 +8902,7 @@ const Fp = (e) => {
|
|
|
8900
8902
|
if (O)
|
|
8901
8903
|
return /* @__PURE__ */ i(rt, { className: "mt-10", message: O, type: "error", banner: !0 });
|
|
8902
8904
|
const ge = M;
|
|
8903
|
-
return C ? /* @__PURE__ */ i(
|
|
8905
|
+
return C ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ D(ae, { children: [
|
|
8904
8906
|
/* @__PURE__ */ i(
|
|
8905
8907
|
ma,
|
|
8906
8908
|
{
|
|
@@ -8933,7 +8935,7 @@ const Fp = (e) => {
|
|
|
8933
8935
|
values: F == null ? void 0 : F.values,
|
|
8934
8936
|
defaultValues: F == null ? void 0 : F.defaultValues,
|
|
8935
8937
|
visible: R,
|
|
8936
|
-
onSubmitSucceed:
|
|
8938
|
+
onSubmitSucceed: Ue,
|
|
8937
8939
|
parentContext: { ...m == null ? void 0 : m(), ...B },
|
|
8938
8940
|
onCancel: () => {
|
|
8939
8941
|
W(!1), S(!1);
|
|
@@ -9419,7 +9421,7 @@ const kp = ({
|
|
|
9419
9421
|
model: u
|
|
9420
9422
|
})
|
|
9421
9423
|
);
|
|
9422
|
-
return F ? /* @__PURE__ */ i(
|
|
9424
|
+
return F ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
|
|
9423
9425
|
zi,
|
|
9424
9426
|
{
|
|
9425
9427
|
ref: w,
|
|
@@ -9440,7 +9442,7 @@ const kp = ({
|
|
|
9440
9442
|
totalRows: R,
|
|
9441
9443
|
footer: m && /* @__PURE__ */ i(As, { aggregates: m, isLoading: !1 }),
|
|
9442
9444
|
hasStatusColumn: o.status !== null,
|
|
9443
|
-
statusComponent: (k) => /* @__PURE__ */ i(
|
|
9445
|
+
statusComponent: (k) => /* @__PURE__ */ i(Jn, { color: k, style: { marginLeft: 7 } }),
|
|
9444
9446
|
onRowStatus: (k) => {
|
|
9445
9447
|
var M;
|
|
9446
9448
|
return (M = C.current) == null ? void 0 : M[k.id];
|
|
@@ -9730,7 +9732,7 @@ const kp = ({
|
|
|
9730
9732
|
u(!1);
|
|
9731
9733
|
}
|
|
9732
9734
|
};
|
|
9733
|
-
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(
|
|
9735
|
+
return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(He, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Cp, { initialView: l, children: /* @__PURE__ */ i(
|
|
9734
9736
|
_e,
|
|
9735
9737
|
{
|
|
9736
9738
|
required: s,
|
|
@@ -9794,13 +9796,13 @@ const kp = ({
|
|
|
9794
9796
|
function pa(e) {
|
|
9795
9797
|
const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = dt(t.icon || "");
|
|
9796
9798
|
return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(hl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
|
|
9797
|
-
|
|
9799
|
+
Gn,
|
|
9798
9800
|
{
|
|
9799
9801
|
container: t.container,
|
|
9800
9802
|
responsiveBehaviour: r
|
|
9801
9803
|
}
|
|
9802
9804
|
) }) : /* @__PURE__ */ i(
|
|
9803
|
-
|
|
9805
|
+
Gn,
|
|
9804
9806
|
{
|
|
9805
9807
|
container: t.container,
|
|
9806
9808
|
responsiveBehaviour: r
|
|
@@ -9951,7 +9953,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
|
|
|
9951
9953
|
] });
|
|
9952
9954
|
}, eh = (e) => {
|
|
9953
9955
|
const { ooui: t } = e, { label: n, icon: r } = t, o = dt(r || "");
|
|
9954
|
-
return /* @__PURE__ */ i(
|
|
9956
|
+
return /* @__PURE__ */ i(zn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Je, { children: [
|
|
9955
9957
|
o ? /* @__PURE__ */ i(o, {}) : null,
|
|
9956
9958
|
n
|
|
9957
9959
|
] }) });
|
|
@@ -9986,7 +9988,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
|
|
|
9986
9988
|
});
|
|
9987
9989
|
s(), await new Promise((C) => setTimeout(C, 200));
|
|
9988
9990
|
const I = await nn(w);
|
|
9989
|
-
|
|
9991
|
+
ir(w, I.mime);
|
|
9990
9992
|
},
|
|
9991
9993
|
[r, n, e, o, t, s, c]
|
|
9992
9994
|
), f = N(async () => {
|
|
@@ -10311,7 +10313,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
|
|
|
10311
10313
|
}
|
|
10312
10314
|
async function g() {
|
|
10313
10315
|
const I = await nn(n);
|
|
10314
|
-
|
|
10316
|
+
ir(n, I.mime);
|
|
10315
10317
|
}
|
|
10316
10318
|
async function v(I) {
|
|
10317
10319
|
I.stopPropagation(), I.preventDefault();
|
|
@@ -10371,19 +10373,19 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
|
|
|
10371
10373
|
tooltip: p("clear"),
|
|
10372
10374
|
disabled: o || !n,
|
|
10373
10375
|
onClick: w,
|
|
10374
|
-
icon: /* @__PURE__ */ i(
|
|
10376
|
+
icon: /* @__PURE__ */ i(Zn, {})
|
|
10375
10377
|
}
|
|
10376
10378
|
)
|
|
10377
10379
|
] }) })
|
|
10378
10380
|
] });
|
|
10379
|
-
},
|
|
10381
|
+
}, Ir = {
|
|
10380
10382
|
tree: /* @__PURE__ */ i(eo, {}),
|
|
10381
10383
|
form: /* @__PURE__ */ i(xn, {}),
|
|
10382
10384
|
graph: /* @__PURE__ */ i(il, {}),
|
|
10383
10385
|
calendar: /* @__PURE__ */ i(sl, {})
|
|
10384
10386
|
};
|
|
10385
10387
|
function Ii(e) {
|
|
10386
|
-
return e ? (
|
|
10388
|
+
return e ? (Ir == null ? void 0 : Ir[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
|
|
10387
10389
|
}
|
|
10388
10390
|
function bo(e) {
|
|
10389
10391
|
const {
|
|
@@ -10459,7 +10461,7 @@ function bo(e) {
|
|
|
10459
10461
|
borderTopLeftRadius: 0,
|
|
10460
10462
|
borderBottomLeftRadius: 0
|
|
10461
10463
|
},
|
|
10462
|
-
icon: /* @__PURE__ */ i(
|
|
10464
|
+
icon: /* @__PURE__ */ i(Qn, { style: { fontSize: "0.5em" } }),
|
|
10463
10465
|
onClick: (d) => d.preventDefault()
|
|
10464
10466
|
}
|
|
10465
10467
|
)
|
|
@@ -10512,7 +10514,7 @@ function ya(e) {
|
|
|
10512
10514
|
return /* @__PURE__ */ i(
|
|
10513
10515
|
ot,
|
|
10514
10516
|
{
|
|
10515
|
-
icon: /* @__PURE__ */ i(
|
|
10517
|
+
icon: /* @__PURE__ */ i(tr, {}),
|
|
10516
10518
|
tooltip: o("new"),
|
|
10517
10519
|
onClick: s,
|
|
10518
10520
|
disabled: t,
|
|
@@ -10555,7 +10557,7 @@ const wh = (e) => {
|
|
|
10555
10557
|
} = e, { t: c } = he(), u = Q(null), f = /* @__PURE__ */ D(je, { children: [
|
|
10556
10558
|
/* @__PURE__ */ i(Ao, {}),
|
|
10557
10559
|
`(${t})`,
|
|
10558
|
-
/* @__PURE__ */ i(
|
|
10560
|
+
/* @__PURE__ */ i(Qn, { style: { fontSize: 12 } })
|
|
10559
10561
|
] });
|
|
10560
10562
|
return /* @__PURE__ */ i(
|
|
10561
10563
|
Ki,
|
|
@@ -10630,7 +10632,7 @@ const wh = (e) => {
|
|
|
10630
10632
|
(d = u.current) == null || d.close(), o();
|
|
10631
10633
|
},
|
|
10632
10634
|
children: [
|
|
10633
|
-
/* @__PURE__ */ i(
|
|
10635
|
+
/* @__PURE__ */ i(tr, {}),
|
|
10634
10636
|
" ",
|
|
10635
10637
|
c("addNewAttachment")
|
|
10636
10638
|
]
|
|
@@ -10691,7 +10693,7 @@ function bh(e) {
|
|
|
10691
10693
|
if (p(!1), !!w)
|
|
10692
10694
|
if (w.datas) {
|
|
10693
10695
|
const I = await nn(w.datas);
|
|
10694
|
-
|
|
10696
|
+
ir(w.datas, I.mime);
|
|
10695
10697
|
} else
|
|
10696
10698
|
s(w);
|
|
10697
10699
|
},
|
|
@@ -10727,7 +10729,7 @@ function bh(e) {
|
|
|
10727
10729
|
closable: !1,
|
|
10728
10730
|
centered: !0,
|
|
10729
10731
|
maskClosable: !1,
|
|
10730
|
-
children: /* @__PURE__ */ i(
|
|
10732
|
+
children: /* @__PURE__ */ i(He, {})
|
|
10731
10733
|
}
|
|
10732
10734
|
)
|
|
10733
10735
|
] });
|
|
@@ -10929,7 +10931,7 @@ function Ch({ toolbar: e }) {
|
|
|
10929
10931
|
[_, A, l, F, c]
|
|
10930
10932
|
), l ? /* @__PURE__ */ D(Je, { wrap: !0, children: [
|
|
10931
10933
|
T && /* @__PURE__ */ D(ae, { children: [
|
|
10932
|
-
/* @__PURE__ */ i(
|
|
10934
|
+
/* @__PURE__ */ i(He, {}),
|
|
10933
10935
|
Yt(),
|
|
10934
10936
|
Yt()
|
|
10935
10937
|
] }),
|
|
@@ -10985,7 +10987,7 @@ function Ch({ toolbar: e }) {
|
|
|
10985
10987
|
/* @__PURE__ */ i(
|
|
10986
10988
|
ot,
|
|
10987
10989
|
{
|
|
10988
|
-
icon: /* @__PURE__ */ i(
|
|
10990
|
+
icon: /* @__PURE__ */ i(nr, {}),
|
|
10989
10991
|
tooltip: r("refresh"),
|
|
10990
10992
|
disabled: j || p === void 0,
|
|
10991
10993
|
onClick: () => E(() => S.current.fetchValues())
|
|
@@ -11145,7 +11147,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
|
|
|
11145
11147
|
l ? null : /* @__PURE__ */ i(we, { flex: "none", children: h ? /* @__PURE__ */ i(
|
|
11146
11148
|
je,
|
|
11147
11149
|
{
|
|
11148
|
-
icon: /* @__PURE__ */ i(
|
|
11150
|
+
icon: /* @__PURE__ */ i(Xn, {}),
|
|
11149
11151
|
onClick: () => {
|
|
11150
11152
|
o(n) && (m(!1), g(!1));
|
|
11151
11153
|
},
|
|
@@ -11353,7 +11355,7 @@ function Ah({ refreshGraph: e }) {
|
|
|
11353
11355
|
/* @__PURE__ */ i(
|
|
11354
11356
|
ot,
|
|
11355
11357
|
{
|
|
11356
|
-
icon: /* @__PURE__ */ i(
|
|
11358
|
+
icon: /* @__PURE__ */ i(nr, {}),
|
|
11357
11359
|
tooltip: t("refresh"),
|
|
11358
11360
|
disabled: c,
|
|
11359
11361
|
loading: !1,
|
|
@@ -11376,7 +11378,7 @@ function Ah({ refreshGraph: e }) {
|
|
|
11376
11378
|
)
|
|
11377
11379
|
] });
|
|
11378
11380
|
}
|
|
11379
|
-
const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t,
|
|
11381
|
+
const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, cr = ({
|
|
11380
11382
|
title: e,
|
|
11381
11383
|
children: t,
|
|
11382
11384
|
showSummary: n = !0
|
|
@@ -11535,7 +11537,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
|
|
|
11535
11537
|
setLimit: R
|
|
11536
11538
|
});
|
|
11537
11539
|
return !n || !t ? null : /* @__PURE__ */ D(ae, { children: [
|
|
11538
|
-
/* @__PURE__ */ i(
|
|
11540
|
+
/* @__PURE__ */ i(cr, { title: t.title || t.name, children: /* @__PURE__ */ i(
|
|
11539
11541
|
Ah,
|
|
11540
11542
|
{
|
|
11541
11543
|
refreshGraph: () => {
|
|
@@ -11564,7 +11566,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
|
|
|
11564
11566
|
showLimitOptions: !1
|
|
11565
11567
|
}
|
|
11566
11568
|
),
|
|
11567
|
-
E ? /* @__PURE__ */ i(
|
|
11569
|
+
E ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
|
|
11568
11570
|
un,
|
|
11569
11571
|
{
|
|
11570
11572
|
ref: c,
|
|
@@ -11593,7 +11595,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
|
|
|
11593
11595
|
setCurrentItemIndex: p
|
|
11594
11596
|
} = e;
|
|
11595
11597
|
return t ? /* @__PURE__ */ D(ae, { children: [
|
|
11596
|
-
/* @__PURE__ */ i(
|
|
11598
|
+
/* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(Ch, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
11597
11599
|
/* @__PURE__ */ i(
|
|
11598
11600
|
hn,
|
|
11599
11601
|
{
|
|
@@ -11682,7 +11684,7 @@ function Ph(e) {
|
|
|
11682
11684
|
totalItems: T,
|
|
11683
11685
|
isActive: R,
|
|
11684
11686
|
isInfiniteTree: S
|
|
11685
|
-
} = ne(at), { parentContext: V = {}, treeExpandable: A, toolbar: F } = e, P =
|
|
11687
|
+
} = ne(at), { parentContext: V = {}, treeExpandable: A, toolbar: F } = e, P = ar(
|
|
11686
11688
|
fn.FEATURE_ADVANCED_EXPORT
|
|
11687
11689
|
), { t: _ } = he(), k = ne(
|
|
11688
11690
|
pn
|
|
@@ -11781,7 +11783,7 @@ function Ph(e) {
|
|
|
11781
11783
|
}
|
|
11782
11784
|
return /* @__PURE__ */ D(Je, { wrap: !0, children: [
|
|
11783
11785
|
w && /* @__PURE__ */ D(ae, { children: [
|
|
11784
|
-
/* @__PURE__ */ i(
|
|
11786
|
+
/* @__PURE__ */ i(He, {}),
|
|
11785
11787
|
Nt(),
|
|
11786
11788
|
Nt()
|
|
11787
11789
|
] }),
|
|
@@ -11854,7 +11856,7 @@ function Ph(e) {
|
|
|
11854
11856
|
/* @__PURE__ */ i(
|
|
11855
11857
|
ot,
|
|
11856
11858
|
{
|
|
11857
|
-
icon: /* @__PURE__ */ i(
|
|
11859
|
+
icon: /* @__PURE__ */ i(nr, {}),
|
|
11858
11860
|
tooltip: _("refresh"),
|
|
11859
11861
|
disabled: l || a || w,
|
|
11860
11862
|
loading: !1,
|
|
@@ -12045,7 +12047,7 @@ const kh = (e) => {
|
|
|
12045
12047
|
]
|
|
12046
12048
|
);
|
|
12047
12049
|
return t ? /* @__PURE__ */ D(Fn, { children: [
|
|
12048
|
-
/* @__PURE__ */ i(
|
|
12050
|
+
/* @__PURE__ */ i(cr, { showSummary: !m, children: /* @__PURE__ */ i(
|
|
12049
12051
|
Ph,
|
|
12050
12052
|
{
|
|
12051
12053
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
@@ -12135,7 +12137,7 @@ function Nh() {
|
|
|
12135
12137
|
/* @__PURE__ */ i(
|
|
12136
12138
|
ot,
|
|
12137
12139
|
{
|
|
12138
|
-
icon: /* @__PURE__ */ i(
|
|
12140
|
+
icon: /* @__PURE__ */ i(nr, {}),
|
|
12139
12141
|
tooltip: o("refresh"),
|
|
12140
12142
|
disabled: e,
|
|
12141
12143
|
loading: !1,
|
|
@@ -12161,7 +12163,7 @@ const Lh = (e) => {
|
|
|
12161
12163
|
s(a);
|
|
12162
12164
|
},
|
|
12163
12165
|
children: [
|
|
12164
|
-
/* @__PURE__ */ i(
|
|
12166
|
+
/* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(Nh, {}) }),
|
|
12165
12167
|
/* @__PURE__ */ i(
|
|
12166
12168
|
Yh,
|
|
12167
12169
|
{
|
|
@@ -12309,15 +12311,15 @@ function Bh(e, t) {
|
|
|
12309
12311
|
}
|
|
12310
12312
|
}
|
|
12311
12313
|
}
|
|
12312
|
-
let
|
|
12313
|
-
!u && Y.find((Ne) => Ne.type === "tree") ?
|
|
12314
|
+
let Ue;
|
|
12315
|
+
!u && Y.find((Ne) => Ne.type === "tree") ? Ue = Y.find(
|
|
12314
12316
|
(re) => re.type === "tree"
|
|
12315
|
-
) : u ?
|
|
12317
|
+
) : u ? Ue = Y.find((re) => u.id ? re.type === u.type && re.view_id === u.id : re.type === u.type) : Ue = Y.find(
|
|
12316
12318
|
(re) => re.type === "form"
|
|
12317
|
-
),
|
|
12319
|
+
), Ue || (it(
|
|
12318
12320
|
`Error determining the first view to show for model ${r}.
|
|
12319
12321
|
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
|
|
12320
|
-
), Le == null || Le(c)), Fe(
|
|
12322
|
+
), Le == null || Le(c)), Fe(Ue), C(Y), O(!1);
|
|
12321
12323
|
};
|
|
12322
12324
|
l({ tabKey: c, canWeClose: Ie }), ue(() => {
|
|
12323
12325
|
const Y = I.find((Se) => Se.type === "tree"), Ce = I.find((Se) => u.id ? Se.type === u.type && Se.view_id === u.id : Se.type === u.type);
|
|
@@ -12338,9 +12340,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12338
12340
|
async function Te(Y, Ce) {
|
|
12339
12341
|
var Ne;
|
|
12340
12342
|
H(!0);
|
|
12341
|
-
let Se,
|
|
12343
|
+
let Se, Ue;
|
|
12342
12344
|
if (Y.length === 1) {
|
|
12343
|
-
Se = "form",
|
|
12345
|
+
Se = "form", Ue = [];
|
|
12344
12346
|
const re = Y[0], Oe = _.findIndex((ge) => ge.id === re);
|
|
12345
12347
|
let Ke;
|
|
12346
12348
|
if (Oe === -1) {
|
|
@@ -12359,7 +12361,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12359
12361
|
} else
|
|
12360
12362
|
Ke = _[Oe];
|
|
12361
12363
|
} else
|
|
12362
|
-
Se = "tree",
|
|
12364
|
+
Se = "tree", Ue = [["id", "in", Y]];
|
|
12363
12365
|
if (H(!1), te(!1), Ce && Se === "form") {
|
|
12364
12366
|
Pe(Y[0]);
|
|
12365
12367
|
const re = I.find(
|
|
@@ -12369,7 +12371,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12369
12371
|
} else {
|
|
12370
12372
|
const re = s.find((Oe) => Oe[1] === Se);
|
|
12371
12373
|
$e({
|
|
12372
|
-
domain:
|
|
12374
|
+
domain: Ue,
|
|
12373
12375
|
context: o,
|
|
12374
12376
|
model: r,
|
|
12375
12377
|
views: s,
|
|
@@ -12462,7 +12464,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12462
12464
|
Fe(Y);
|
|
12463
12465
|
}
|
|
12464
12466
|
}
|
|
12465
|
-
return b ? /* @__PURE__ */ i(
|
|
12467
|
+
return b ? /* @__PURE__ */ i(He, {}) : v ? /* @__PURE__ */ D(
|
|
12466
12468
|
wd,
|
|
12467
12469
|
{
|
|
12468
12470
|
title: a,
|
|
@@ -12648,7 +12650,7 @@ function Wh(e) {
|
|
|
12648
12650
|
}
|
|
12649
12651
|
)
|
|
12650
12652
|
] });
|
|
12651
|
-
return j ? /* @__PURE__ */ i(rt, { className: "mt-10", message: j, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(
|
|
12653
|
+
return j ? /* @__PURE__ */ i(rt, { className: "mt-10", message: j, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : le();
|
|
12652
12654
|
}
|
|
12653
12655
|
const Gh = an(Wh), Kh = (e) => {
|
|
12654
12656
|
const { model: t } = e, [n, r] = x();
|
|
@@ -12664,7 +12666,7 @@ const Gh = an(Wh), Kh = (e) => {
|
|
|
12664
12666
|
s.length > 0 && r(s[0].id);
|
|
12665
12667
|
}
|
|
12666
12668
|
return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(hn, { ...e, model: t, id: n, readOnly: !0 }) });
|
|
12667
|
-
},
|
|
12669
|
+
}, Tr = "line_ids";
|
|
12668
12670
|
function qh(e, t) {
|
|
12669
12671
|
const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = x([]), [c, u] = x(!1), [f, d] = x(), {
|
|
12670
12672
|
setIsLoading: p,
|
|
@@ -12672,7 +12674,7 @@ function qh(e, t) {
|
|
|
12672
12674
|
moveItemsEnabled: m
|
|
12673
12675
|
} = ne(So), y = Q(), g = Q(), [v] = ze($.getHandler().getView), [w] = ze(
|
|
12674
12676
|
$.getHandler().readObjects
|
|
12675
|
-
), [I] = ze($.getHandler().update), C =
|
|
12677
|
+
), [I] = ze($.getHandler().update), C = ar(
|
|
12676
12678
|
fn.FEATURE_READFORVIEW
|
|
12677
12679
|
);
|
|
12678
12680
|
ue(() => {
|
|
@@ -12686,7 +12688,7 @@ function qh(e, t) {
|
|
|
12686
12688
|
async function b() {
|
|
12687
12689
|
u(!0), p(!0), d(void 0);
|
|
12688
12690
|
try {
|
|
12689
|
-
const F = await O(), P = await R(F), _ = F.fields[
|
|
12691
|
+
const F = await O(), P = await R(F), _ = F.fields[Tr].relation, k = P[Tr].items;
|
|
12690
12692
|
g.current = F.fields;
|
|
12691
12693
|
const M = await T({
|
|
12692
12694
|
items: k,
|
|
@@ -12789,7 +12791,7 @@ function qh(e, t) {
|
|
|
12789
12791
|
await I({
|
|
12790
12792
|
model: n,
|
|
12791
12793
|
id: o,
|
|
12792
|
-
values: { [
|
|
12794
|
+
values: { [Tr]: M },
|
|
12793
12795
|
fields: g.current,
|
|
12794
12796
|
context: r
|
|
12795
12797
|
});
|
|
@@ -12988,7 +12990,7 @@ const Yh = yt(qh), zh = (e) => {
|
|
|
12988
12990
|
S.push({ id: A, operation: "pendingLink" });
|
|
12989
12991
|
}), I(S);
|
|
12990
12992
|
};
|
|
12991
|
-
return f && a.length === 0 ? /* @__PURE__ */ i(
|
|
12993
|
+
return f && a.length === 0 ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ D("div", { className: "flex flex-row", children: [
|
|
12992
12994
|
/* @__PURE__ */ i(
|
|
12993
12995
|
Cn.Group,
|
|
12994
12996
|
{
|
|
@@ -13228,18 +13230,21 @@ const mg = (e) => {
|
|
|
13228
13230
|
icon: a(s)
|
|
13229
13231
|
}
|
|
13230
13232
|
);
|
|
13231
|
-
},
|
|
13232
|
-
|
|
13233
|
+
}, vg = (e) => {
|
|
13234
|
+
const { ooui: t } = e;
|
|
13235
|
+
return /* @__PURE__ */ i(He, { tip: t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ i(Gn, { container: t.container, responsiveBehaviour: !1 }) });
|
|
13236
|
+
}, { Content: wg } = Ri, { Title: bg } = _t;
|
|
13237
|
+
function Sg() {
|
|
13233
13238
|
const { t: e } = he();
|
|
13234
|
-
return /* @__PURE__ */ i(
|
|
13239
|
+
return /* @__PURE__ */ i(wg, { className: "m-5 select-none", children: /* @__PURE__ */ i(bg, { level: 5, children: e("welcome") }) });
|
|
13235
13240
|
}
|
|
13236
|
-
function
|
|
13241
|
+
function Cg(e, t) {
|
|
13237
13242
|
const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = ao(), [c, u] = x([
|
|
13238
13243
|
{
|
|
13239
13244
|
title: s("welcome"),
|
|
13240
13245
|
key: "welcome",
|
|
13241
13246
|
closable: !0,
|
|
13242
|
-
content: /* @__PURE__ */ i(
|
|
13247
|
+
content: /* @__PURE__ */ i(Sg, {})
|
|
13243
13248
|
}
|
|
13244
13249
|
]), f = Q(/* @__PURE__ */ new Map()), d = Q();
|
|
13245
13250
|
vt(t, () => ({
|
|
@@ -13575,9 +13580,9 @@ function Sg(e, t) {
|
|
|
13575
13580
|
}
|
|
13576
13581
|
);
|
|
13577
13582
|
}
|
|
13578
|
-
const
|
|
13579
|
-
function
|
|
13580
|
-
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } =
|
|
13583
|
+
const Iy = yt(Cg), { useToken: xg } = Ge;
|
|
13584
|
+
function Ig(e) {
|
|
13585
|
+
const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = xg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
13581
13586
|
return /* @__PURE__ */ D(
|
|
13582
13587
|
"div",
|
|
13583
13588
|
{
|
|
@@ -13647,12 +13652,12 @@ function xg(e) {
|
|
|
13647
13652
|
}
|
|
13648
13653
|
);
|
|
13649
13654
|
}
|
|
13650
|
-
function
|
|
13655
|
+
function Ty() {
|
|
13651
13656
|
const e = ne(
|
|
13652
13657
|
bt
|
|
13653
13658
|
), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
|
|
13654
13659
|
return /* @__PURE__ */ i(ae, { children: n.map((s) => /* @__PURE__ */ i(
|
|
13655
|
-
|
|
13660
|
+
Ig,
|
|
13656
13661
|
{
|
|
13657
13662
|
tabKey: s.key,
|
|
13658
13663
|
label: s.title,
|
|
@@ -13663,7 +13668,7 @@ function Iy() {
|
|
|
13663
13668
|
s.key
|
|
13664
13669
|
)) });
|
|
13665
13670
|
}
|
|
13666
|
-
function
|
|
13671
|
+
function Tg(e) {
|
|
13667
13672
|
const { tab: t } = e, n = ne(
|
|
13668
13673
|
bt
|
|
13669
13674
|
), { activeKey: r } = n || {}, o = {
|
|
@@ -13671,21 +13676,21 @@ function Ig(e) {
|
|
|
13671
13676
|
};
|
|
13672
13677
|
return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
|
|
13673
13678
|
}
|
|
13674
|
-
const
|
|
13675
|
-
function
|
|
13679
|
+
const Og = mt.memo(Tg, () => !0);
|
|
13680
|
+
function Oy() {
|
|
13676
13681
|
const e = ne(
|
|
13677
13682
|
bt
|
|
13678
|
-
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(
|
|
13683
|
+
), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Og, { tab: r }, r.key))) || null;
|
|
13679
13684
|
return /* @__PURE__ */ i(ae, { children: n });
|
|
13680
13685
|
}
|
|
13681
|
-
const { useToken:
|
|
13686
|
+
const { useToken: Fg } = Ge, Fy = (e) => {
|
|
13682
13687
|
const {
|
|
13683
13688
|
onRetrieveShortcuts: t,
|
|
13684
13689
|
onCheckIsFavourite: n,
|
|
13685
13690
|
onAddFavourite: r,
|
|
13686
13691
|
onRemoveFavourite: o,
|
|
13687
13692
|
onDropdownClosed: s
|
|
13688
|
-
} = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } =
|
|
13693
|
+
} = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Fg(), p = Q(null), h = ne(
|
|
13689
13694
|
bt
|
|
13690
13695
|
), {
|
|
13691
13696
|
openShortcut: m,
|
|
@@ -13820,16 +13825,16 @@ export {
|
|
|
13820
13825
|
Xc as ConfigContextProvider,
|
|
13821
13826
|
$ as ConnectionProvider,
|
|
13822
13827
|
Jd as ContentRootProvider,
|
|
13823
|
-
|
|
13828
|
+
Oy as CurrentTabContent,
|
|
13824
13829
|
Yh as Dashboard,
|
|
13825
13830
|
Uh as DashboardGrid,
|
|
13826
13831
|
dh as Date,
|
|
13827
13832
|
uh as DateTime,
|
|
13828
13833
|
Th as Email,
|
|
13829
|
-
|
|
13834
|
+
xy as ErpAllFeatureKeys,
|
|
13830
13835
|
fn as ErpFeatureKeys,
|
|
13831
13836
|
ch as ExportModal,
|
|
13832
|
-
|
|
13837
|
+
Fy as FavouriteButton,
|
|
13833
13838
|
Rs as Float,
|
|
13834
13839
|
qp as FloatTime,
|
|
13835
13840
|
hn as Form,
|
|
@@ -13839,8 +13844,8 @@ export {
|
|
|
13839
13844
|
pa as Group,
|
|
13840
13845
|
gg as HTMLPreview,
|
|
13841
13846
|
xc as Image,
|
|
13842
|
-
|
|
13843
|
-
|
|
13847
|
+
Kn as Integer,
|
|
13848
|
+
rr as Label,
|
|
13844
13849
|
bp as Many2one,
|
|
13845
13850
|
Qh as Markdown,
|
|
13846
13851
|
zh as MultiCheckbox,
|
|
@@ -13849,23 +13854,24 @@ export {
|
|
|
13849
13854
|
nu as ProgressBar,
|
|
13850
13855
|
Zh as Radio,
|
|
13851
13856
|
ph as Reference,
|
|
13852
|
-
|
|
13857
|
+
Iy as RootView,
|
|
13853
13858
|
vo as SearchFilter,
|
|
13854
13859
|
wo as SearchModal,
|
|
13855
13860
|
aa as SearchTree,
|
|
13856
13861
|
ts as Selection,
|
|
13857
13862
|
eh as Separator,
|
|
13863
|
+
vg as Spinner,
|
|
13858
13864
|
rg as Steps,
|
|
13859
13865
|
tg as Switch,
|
|
13860
|
-
|
|
13861
|
-
|
|
13866
|
+
Ig as Tab,
|
|
13867
|
+
Ty as TabSelector,
|
|
13862
13868
|
Ed as Tag,
|
|
13863
13869
|
Dd as Tags,
|
|
13864
13870
|
Xp as Text,
|
|
13865
13871
|
fh as Time,
|
|
13866
13872
|
Dn as Tree,
|
|
13867
13873
|
Ih as Url,
|
|
13868
|
-
|
|
13874
|
+
_y as dayjs,
|
|
13869
13875
|
dt as iconMapper,
|
|
13870
13876
|
At as showConfirmDialog
|
|
13871
13877
|
};
|