@gisce/react-ooui 2.50.0 → 2.51.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +391 -393
- package/dist/react-ooui.es.js.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -3,12 +3,12 @@ var za = (e, t, n) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Po = (e, t, n) => (za(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsx as i, jsxs as P, Fragment as le } from "react/jsx-runtime";
|
|
5
5
|
import pt, { useContext as ne, useState as C, useEffect as ae, useRef as Y, memo as yt, useCallback as D, useMemo as oe, createContext as Ja, forwardRef as wt, useImperativeHandle as bt, createElement as Qa, Fragment as Rn } from "react";
|
|
6
|
-
import { Tooltip as
|
|
7
|
-
import { Label as un, Field as
|
|
6
|
+
import { Tooltip as Vt, theme as We, Typography as kt, Form as ht, Row as Me, Col as Ce, Modal as dt, Button as Be, Dropdown as Xa, Menu as ko, Spin as Ke, Divider as Qn, Space as Xe, Input as rt, Select as Gt, Checkbox as Cn, Alert as ot, Timeline as Mi, Empty as Li, Statistic as Za, Card as Jr, Tag as Qr, message as wr, App as el, Progress as tl, Avatar as ji, DatePicker as Xr, TimePicker as nl, InputNumber as Xn, Layout as Bi, Badge as Zn, Pagination as rl, Tabs as Hi, Radio as $o, Switch as ol, Steps as No, Carousel as il } from "antd";
|
|
7
|
+
import { Label as un, Field as Vr, Tree as Ui, Reference as sl, Selection as Zr, Many2one as Wi, Boolean as al, parseContext as jt, graphProcessor as Gi, graphFieldUtils as ll, parseGraph as Ki, Container as cl, Form as qi, parseContextFields as dl, parseDomainFields as ul, Integer as Dr, SearchFieldTypes as _t, SearchFilter as Yi, transformDomainForChildWidget as eo, Button as fl } from "@gisce/ooui";
|
|
8
8
|
import * as Mo from "@ant-design/icons";
|
|
9
9
|
import zi, { QuestionCircleOutlined as Ji, ExclamationCircleOutlined as $t, LoadingOutlined as St, DownOutlined as er, WarningOutlined as Qi, CloseOutlined as fn, CheckOutlined as tr, TranslationOutlined as Xi, FolderOpenOutlined as to, DownloadOutlined as no, ClearOutlined as nr, ExportOutlined as ml, StarFilled as pl, StarOutlined as hl, ThunderboltOutlined as ro, PrinterOutlined as oo, EnterOutlined as io, SearchOutlined as rr, UpOutlined as gl, PlusSquareOutlined as yl, MinusSquareOutlined as vl, FileAddOutlined as or, AlignLeftOutlined as wl, ApiOutlined as bl, DeleteOutlined as so, LeftOutlined as Zi, RightOutlined as es, EyeOutlined as Sl, FormOutlined as xn, TableOutlined as ao, AreaChartOutlined as Cl, CalendarOutlined as xl, LinkOutlined as Lo, SaveOutlined as Il, CopyOutlined as lo, InfoCircleOutlined as ts, ReloadOutlined as ir, EditOutlined as ns, PlusOutlined as Tl, FilterOutlined as rs, CloseCircleFilled as Al, BorderOuterOutlined as Ol, SettingOutlined as Fl } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as In } from "interweave";
|
|
11
|
-
import { useLocale as fe, FormigaConfigProvider as Rl, mergeStrings as _l, Many2OneSuffix as
|
|
11
|
+
import { useLocale as fe, FormigaConfigProvider as Rl, mergeStrings as _l, Many2OneSuffix as El, Many2OneSuffixModal as jo, FieldSet as Vl, ExportModal as Dl, Dropdown as os, DropdownButton as rn, HTMLPreview as Pl, FavouriteButton as kl } from "@gisce/react-formiga-components";
|
|
12
12
|
import * as Bo from "@tabler/icons-react";
|
|
13
13
|
import $l from "antd/lib/input/TextArea";
|
|
14
14
|
import ut from "styled-components";
|
|
@@ -130,7 +130,7 @@ const He = pt.createContext(null), fc = (e) => {
|
|
|
130
130
|
{
|
|
131
131
|
className: `flex flex-row items-center pb-1 pt-1 ${yc[h]}`,
|
|
132
132
|
children: [
|
|
133
|
-
s && /* @__PURE__ */ i(
|
|
133
|
+
s && /* @__PURE__ */ i(Vt, { title: s, children: /* @__PURE__ */ i(
|
|
134
134
|
Ji,
|
|
135
135
|
{
|
|
136
136
|
className: "pr-1 text-xs",
|
|
@@ -422,7 +422,7 @@ const fo = (e) => {
|
|
|
422
422
|
if (t.buttons.length === 0)
|
|
423
423
|
return null;
|
|
424
424
|
if (t.buttons.length > 1)
|
|
425
|
-
return /* @__PURE__ */ i(_e, { ooui: new
|
|
425
|
+
return /* @__PURE__ */ i(_e, { ooui: new Vr({ defaultButton: n }), children: /* @__PURE__ */ P(
|
|
426
426
|
Xa.Button,
|
|
427
427
|
{
|
|
428
428
|
disabled: !a || p,
|
|
@@ -579,22 +579,22 @@ const cs = (e) => {
|
|
|
579
579
|
params: [["translatable", "=", "1"]],
|
|
580
580
|
fieldsToRetrieve: ["code", "name"],
|
|
581
581
|
model: "res.lang"
|
|
582
|
-
})).map((
|
|
583
|
-
code:
|
|
584
|
-
name:
|
|
582
|
+
})).map((E) => ({
|
|
583
|
+
code: E.code,
|
|
584
|
+
name: E.name
|
|
585
585
|
}));
|
|
586
586
|
return f == null || f(b), b;
|
|
587
587
|
}
|
|
588
588
|
async function x(R) {
|
|
589
589
|
const b = {};
|
|
590
|
-
for (const
|
|
590
|
+
for (const E of R) {
|
|
591
591
|
const F = (await N.getHandler().readObjects({
|
|
592
592
|
model: r,
|
|
593
593
|
ids: [o],
|
|
594
594
|
fieldsToRetrieve: [s],
|
|
595
|
-
context: { lang:
|
|
595
|
+
context: { lang: E.code }
|
|
596
596
|
}))[0];
|
|
597
|
-
b[
|
|
597
|
+
b[E.code] = F[s] || "";
|
|
598
598
|
}
|
|
599
599
|
v.current = b, y(b);
|
|
600
600
|
}
|
|
@@ -606,10 +606,10 @@ const cs = (e) => {
|
|
|
606
606
|
{
|
|
607
607
|
rows: 4,
|
|
608
608
|
value: g[R.code] || "",
|
|
609
|
-
onChange: (
|
|
609
|
+
onChange: (E) => {
|
|
610
610
|
y({
|
|
611
611
|
...g,
|
|
612
|
-
[R.code]:
|
|
612
|
+
[R.code]: E.target.value
|
|
613
613
|
});
|
|
614
614
|
},
|
|
615
615
|
disabled: h
|
|
@@ -681,7 +681,7 @@ const cs = (e) => {
|
|
|
681
681
|
};
|
|
682
682
|
function nt(e) {
|
|
683
683
|
const { tooltip: t, ...n } = e;
|
|
684
|
-
return /* @__PURE__ */ i(
|
|
684
|
+
return /* @__PURE__ */ i(Vt, { title: t, children: /* @__PURE__ */ i(Be, { ...n }) });
|
|
685
685
|
}
|
|
686
686
|
const { info: Tc } = dt, Bt = (e) => {
|
|
687
687
|
Tc({
|
|
@@ -735,9 +735,7 @@ const us = (e) => {
|
|
|
735
735
|
const o = ne(He), { elementHasLostFocus: s } = o || {}, { readOnly: a, isPassword: l, translatable: c, required: u } = t, f = oe(() => e && (t.selectionValues.size ? t.selectionValues.get(e) : Array.isArray(e) ? e[1] : e), [t.selectionValues, e]), d = oe(
|
|
736
736
|
() => u && !a,
|
|
737
737
|
[u, a]
|
|
738
|
-
)
|
|
739
|
-
t._id === "name" && console.log({ value: e }), console.log({ isRequired: d });
|
|
740
|
-
const p = oe(
|
|
738
|
+
), p = oe(
|
|
741
739
|
() => Array.isArray(e) || !!t.selectionValues.size,
|
|
742
740
|
[e, t.selectionValues]
|
|
743
741
|
), h = D(
|
|
@@ -747,7 +745,7 @@ const us = (e) => {
|
|
|
747
745
|
[r]
|
|
748
746
|
);
|
|
749
747
|
if (l) {
|
|
750
|
-
const g = d ?
|
|
748
|
+
const g = d ? Ec : rt.Password;
|
|
751
749
|
return /* @__PURE__ */ i(
|
|
752
750
|
An,
|
|
753
751
|
{
|
|
@@ -872,11 +870,11 @@ const Rc = ut(rt)`
|
|
|
872
870
|
&.ant-input {
|
|
873
871
|
background-color: ${mo.colorPrimaryBg};
|
|
874
872
|
}
|
|
875
|
-
`,
|
|
873
|
+
`, Ec = ut(rt.Password)`
|
|
876
874
|
&.ant-input-affix-wrapper {
|
|
877
875
|
background-color: ${mo.colorPrimaryBg};
|
|
878
876
|
}
|
|
879
|
-
`, { defaultAlgorithm:
|
|
877
|
+
`, { defaultAlgorithm: Vc, defaultSeed: Dc } = We, Pc = Vc(Dc), { Option: kc } = Gt, hs = (e) => {
|
|
880
878
|
const { ooui: t } = e, { required: n } = t;
|
|
881
879
|
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(gs, { ...e }) });
|
|
882
880
|
}, gs = (e) => {
|
|
@@ -1042,7 +1040,7 @@ const po = (e) => {
|
|
|
1042
1040
|
}
|
|
1043
1041
|
}
|
|
1044
1042
|
);
|
|
1045
|
-
},
|
|
1043
|
+
}, Et = (e) => {
|
|
1046
1044
|
const t = e.arch, n = e.fields, r = new Ui(n);
|
|
1047
1045
|
return r.parse(t), r;
|
|
1048
1046
|
};
|
|
@@ -1149,7 +1147,7 @@ const go = async (e) => {
|
|
|
1149
1147
|
};
|
|
1150
1148
|
let d = [], p;
|
|
1151
1149
|
if (a === "tree" && (o != null && o.arch)) {
|
|
1152
|
-
const y = (g =
|
|
1150
|
+
const y = (g = Et(o)) == null ? void 0 : g.colors, v = await N.getHandler().readEvalUiObjects({
|
|
1153
1151
|
model: n,
|
|
1154
1152
|
ids: u,
|
|
1155
1153
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1493,7 +1491,7 @@ const Kt = ({
|
|
|
1493
1491
|
return /* @__PURE__ */ i(ot, { className: "mt-10", message: c, type: "error", banner: !0 });
|
|
1494
1492
|
if (a)
|
|
1495
1493
|
return /* @__PURE__ */ i(Ke, {});
|
|
1496
|
-
const
|
|
1494
|
+
const E = (O) => {
|
|
1497
1495
|
const k = ft(O);
|
|
1498
1496
|
return k && /* @__PURE__ */ i(k, {});
|
|
1499
1497
|
}, F = S.map((O) => {
|
|
@@ -1512,7 +1510,7 @@ const Kt = ({
|
|
|
1512
1510
|
}
|
|
1513
1511
|
)
|
|
1514
1512
|
};
|
|
1515
|
-
return (M = O.values) != null && M[I] && (k.dot =
|
|
1513
|
+
return (M = O.values) != null && M[I] && (k.dot = E(O.values[I])), (W = O.values) != null && W[x] && (k.color = !as(O.values[x]) && !ls(O.values[x]) && !O.values[x].toString().startsWith("#") ? _n(O.values[x]) : O.values[x]), k;
|
|
1516
1514
|
});
|
|
1517
1515
|
return /* @__PURE__ */ P(le, { children: [
|
|
1518
1516
|
/* @__PURE__ */ i(Mi, { style: { padding: "1rem" }, items: F }),
|
|
@@ -1995,7 +1993,7 @@ const wd = (e) => {
|
|
|
1995
1993
|
}
|
|
1996
1994
|
o(!1);
|
|
1997
1995
|
} };
|
|
1998
|
-
},
|
|
1996
|
+
}, En = () => /* @__PURE__ */ i(
|
|
1999
1997
|
"div",
|
|
2000
1998
|
{
|
|
2001
1999
|
style: {
|
|
@@ -2229,7 +2227,7 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2229
2227
|
operator: f,
|
|
2230
2228
|
manualIds: d,
|
|
2231
2229
|
fixedHeight: p
|
|
2232
|
-
} = e, [h, m] = C(!1), [g, y] = C(), [v, w] = C(0), [I, x] = C(), [S, A] = C(), [T, R] = C(), [b,
|
|
2230
|
+
} = e, [h, m] = C(!1), [g, y] = C(), [v, w] = C(0), [I, x] = C(), [S, A] = C(), [T, R] = C(), [b, E] = C(), [F] = Ye(
|
|
2233
2231
|
N.getHandler().searchAllIds
|
|
2234
2232
|
), [O] = Ye(
|
|
2235
2233
|
N.getHandler().readObjects
|
|
@@ -2244,14 +2242,14 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2244
2242
|
B();
|
|
2245
2243
|
}, [t, o]);
|
|
2246
2244
|
async function M({
|
|
2247
|
-
domain:
|
|
2245
|
+
domain: V,
|
|
2248
2246
|
isTotal: Z
|
|
2249
2247
|
}) {
|
|
2250
2248
|
if (Z)
|
|
2251
|
-
return await W({ domain:
|
|
2249
|
+
return await W({ domain: V });
|
|
2252
2250
|
if (u && f) {
|
|
2253
2251
|
const re = d || await F({
|
|
2254
|
-
params:
|
|
2252
|
+
params: V,
|
|
2255
2253
|
model: t,
|
|
2256
2254
|
context: r
|
|
2257
2255
|
}), z = await O({
|
|
@@ -2267,14 +2265,14 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2267
2265
|
} else
|
|
2268
2266
|
return d ? d.length : await k({
|
|
2269
2267
|
model: t,
|
|
2270
|
-
params:
|
|
2268
|
+
params: V,
|
|
2271
2269
|
context: r
|
|
2272
2270
|
});
|
|
2273
2271
|
}
|
|
2274
|
-
async function W({ domain:
|
|
2272
|
+
async function W({ domain: V }) {
|
|
2275
2273
|
if (u && f) {
|
|
2276
2274
|
const Z = await F({
|
|
2277
|
-
params:
|
|
2275
|
+
params: V,
|
|
2278
2276
|
model: t,
|
|
2279
2277
|
context: r
|
|
2280
2278
|
}), re = await O({
|
|
@@ -2290,13 +2288,13 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2290
2288
|
} else
|
|
2291
2289
|
return await k({
|
|
2292
2290
|
model: t,
|
|
2293
|
-
params:
|
|
2291
|
+
params: V,
|
|
2294
2292
|
context: r
|
|
2295
2293
|
});
|
|
2296
2294
|
}
|
|
2297
2295
|
async function B() {
|
|
2298
|
-
m(!0),
|
|
2299
|
-
let
|
|
2296
|
+
m(!0), E(void 0);
|
|
2297
|
+
let V, Z;
|
|
2300
2298
|
try {
|
|
2301
2299
|
const re = await M({ domain: n, isTotal: !1 });
|
|
2302
2300
|
if (y(re), s) {
|
|
@@ -2305,12 +2303,12 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2305
2303
|
values: {},
|
|
2306
2304
|
context: r
|
|
2307
2305
|
});
|
|
2308
|
-
|
|
2306
|
+
V = await M({
|
|
2309
2307
|
domain: z,
|
|
2310
2308
|
isTotal: !0
|
|
2311
|
-
}), x(
|
|
2309
|
+
}), x(V);
|
|
2312
2310
|
}
|
|
2313
|
-
if (
|
|
2311
|
+
if (V ? (Z = Math.round(re / V * 100 * 100) / 100, w(Z)) : w(0), o) {
|
|
2314
2312
|
const z = await $({
|
|
2315
2313
|
condition: o,
|
|
2316
2314
|
values: { value: re, percent: Z },
|
|
@@ -2328,13 +2326,13 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
|
|
|
2328
2326
|
R(z);
|
|
2329
2327
|
} else
|
|
2330
2328
|
R(l);
|
|
2331
|
-
|
|
2329
|
+
E(void 0);
|
|
2332
2330
|
} catch (re) {
|
|
2333
|
-
|
|
2331
|
+
E(JSON.stringify(re));
|
|
2334
2332
|
}
|
|
2335
2333
|
m(!1);
|
|
2336
2334
|
}
|
|
2337
|
-
return h ? /* @__PURE__ */ i(
|
|
2335
|
+
return h ? /* @__PURE__ */ i(En, {}) : b ? /* @__PURE__ */ i(ot, { className: "mt-10", message: b, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
2338
2336
|
Ts,
|
|
2339
2337
|
{
|
|
2340
2338
|
value: g,
|
|
@@ -2619,7 +2617,7 @@ function _d(e) {
|
|
|
2619
2617
|
return t;
|
|
2620
2618
|
return null;
|
|
2621
2619
|
}
|
|
2622
|
-
const
|
|
2620
|
+
const Ed = {
|
|
2623
2621
|
inner: {
|
|
2624
2622
|
label: {
|
|
2625
2623
|
type: "inner",
|
|
@@ -2636,7 +2634,7 @@ const Vd = {
|
|
|
2636
2634
|
labelHeight: 28
|
|
2637
2635
|
}
|
|
2638
2636
|
}
|
|
2639
|
-
},
|
|
2637
|
+
}, Vd = (e) => {
|
|
2640
2638
|
const t = e.reduce((a, l) => a + l.value, 0), r = e.map((a) => a.value / t * 100).map((a) => Math.round(a)), s = 100 - r.reduce((a, l) => a + l, 0);
|
|
2641
2639
|
for (let a = 0; a < Math.abs(s); a++)
|
|
2642
2640
|
s > 0 ? r[a % r.length]++ : r[a % r.length]--;
|
|
@@ -2665,7 +2663,7 @@ const Vd = {
|
|
|
2665
2663
|
return t.reduce((y, v) => y + v.value, 0);
|
|
2666
2664
|
}, [t, e]), u = oe(() => {
|
|
2667
2665
|
if (e === "pie")
|
|
2668
|
-
return
|
|
2666
|
+
return Vd(t);
|
|
2669
2667
|
}, [t, e]), f = D(
|
|
2670
2668
|
(g) => {
|
|
2671
2669
|
if (!u)
|
|
@@ -2738,7 +2736,7 @@ function Nd(e) {
|
|
|
2738
2736
|
fixedHeight: c
|
|
2739
2737
|
} = e;
|
|
2740
2738
|
let u = { ...Qo[t] };
|
|
2741
|
-
if (u || (u = { ...Qo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...
|
|
2739
|
+
if (u || (u = { ...Qo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...Ed.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
|
|
2742
2740
|
const f = l.valueOpts.min, d = l.valueOpts.max;
|
|
2743
2741
|
u.yAxis = {
|
|
2744
2742
|
min: f,
|
|
@@ -2768,7 +2766,7 @@ const Md = ({
|
|
|
2768
2766
|
if (Tt(() => {
|
|
2769
2767
|
h();
|
|
2770
2768
|
}, [e, t, o, r, n]), u || !f)
|
|
2771
|
-
return /* @__PURE__ */ i(
|
|
2769
|
+
return /* @__PURE__ */ i(En, {});
|
|
2772
2770
|
const { data: m, isGroup: g, isStack: y, yAxisOpts: v } = f;
|
|
2773
2771
|
return c ? /* @__PURE__ */ i(ot, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
2774
2772
|
Rs,
|
|
@@ -2811,8 +2809,8 @@ const Md = ({
|
|
|
2811
2809
|
setSearchTreeNameSearch: T,
|
|
2812
2810
|
goToResourceId: R,
|
|
2813
2811
|
limit: b,
|
|
2814
|
-
isActive:
|
|
2815
|
-
} = e, [F, O] = C(!1), [k, _] = C(!1), [$, M] = C(!1), [W, B] = C(!0), [
|
|
2812
|
+
isActive: E
|
|
2813
|
+
} = e, [F, O] = C(!1), [k, _] = C(!1), [$, M] = C(!1), [W, B] = C(!0), [V, Z] = C(!0), [re, z] = C([]), [U, ie] = C(!1), [ee, j] = C([]), [G, L] = C(!1), [me, J] = C(!0), [Q, te] = C(), [ge, Le] = C({}), [je, De] = C(0), [ke, Ue] = C(), [Oe, de] = C(!1), [Ae, ue] = C(
|
|
2816
2814
|
b !== void 0 ? b : Pt
|
|
2817
2815
|
), [Fe, q] = C(r);
|
|
2818
2816
|
ae(() => {
|
|
@@ -2863,7 +2861,7 @@ const Md = ({
|
|
|
2863
2861
|
setRemovingItem: M,
|
|
2864
2862
|
formIsLoading: W,
|
|
2865
2863
|
setFormIsLoading: B,
|
|
2866
|
-
treeIsLoading:
|
|
2864
|
+
treeIsLoading: V,
|
|
2867
2865
|
setTreeIsLoading: Z,
|
|
2868
2866
|
attachments: re,
|
|
2869
2867
|
setAttachments: z,
|
|
@@ -2891,7 +2889,7 @@ const Md = ({
|
|
|
2891
2889
|
limit: Ae,
|
|
2892
2890
|
setLimit: ue,
|
|
2893
2891
|
setTitle: q,
|
|
2894
|
-
isActive:
|
|
2892
|
+
isActive: E,
|
|
2895
2893
|
setTreeFirstVisibleRow: De,
|
|
2896
2894
|
treeFirstVisibleRow: je,
|
|
2897
2895
|
searchQuery: ke,
|
|
@@ -3017,7 +3015,7 @@ const Md = ({
|
|
|
3017
3015
|
}
|
|
3018
3016
|
}
|
|
3019
3017
|
if (u || !d)
|
|
3020
|
-
return /* @__PURE__ */ i(
|
|
3018
|
+
return /* @__PURE__ */ i(En, {});
|
|
3021
3019
|
switch (d.type) {
|
|
3022
3020
|
case "indicatorField":
|
|
3023
3021
|
case "indicator": {
|
|
@@ -3105,7 +3103,7 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3105
3103
|
})), ae(() => {
|
|
3106
3104
|
h();
|
|
3107
3105
|
}, [n]), d || !p)
|
|
3108
|
-
return /* @__PURE__ */ i(
|
|
3106
|
+
return /* @__PURE__ */ i(En, {});
|
|
3109
3107
|
if (f)
|
|
3110
3108
|
return /* @__PURE__ */ i(ot, { className: "mt-10", message: f, type: "error", banner: !0 });
|
|
3111
3109
|
switch (p.type) {
|
|
@@ -3178,7 +3176,7 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3178
3176
|
children: t
|
|
3179
3177
|
}
|
|
3180
3178
|
);
|
|
3181
|
-
}, { useToken: Gd } = We, { Text: Kd } = kt,
|
|
3179
|
+
}, { useToken: Gd } = We, { Text: Kd } = kt, Es = (e) => {
|
|
3182
3180
|
const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Gd(), l = Object.keys(s).length > 0;
|
|
3183
3181
|
return /* @__PURE__ */ P(
|
|
3184
3182
|
"div",
|
|
@@ -3244,7 +3242,7 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3244
3242
|
n.label,
|
|
3245
3243
|
" "
|
|
3246
3244
|
] }),
|
|
3247
|
-
n.tooltip && /* @__PURE__ */ i(
|
|
3245
|
+
n.tooltip && /* @__PURE__ */ i(Vt, { title: n.tooltip, children: /* @__PURE__ */ i(
|
|
3248
3246
|
Ji,
|
|
3249
3247
|
{
|
|
3250
3248
|
className: "pr-1 text-xs",
|
|
@@ -3276,7 +3274,7 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3276
3274
|
return /* @__PURE__ */ i(Is, { error: c });
|
|
3277
3275
|
const { id: h, model: m, limit: g, domain: y, context: v, initialView: w } = s || {}, I = f ? _s : mn;
|
|
3278
3276
|
return /* @__PURE__ */ P(
|
|
3279
|
-
|
|
3277
|
+
Es,
|
|
3280
3278
|
{
|
|
3281
3279
|
id: h,
|
|
3282
3280
|
parms: {},
|
|
@@ -3284,8 +3282,8 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3284
3282
|
action: a,
|
|
3285
3283
|
openAction: p,
|
|
3286
3284
|
children: [
|
|
3287
|
-
l && /* @__PURE__ */ i(
|
|
3288
|
-
!l && /* @__PURE__ */ i(le, { children: o ? /* @__PURE__ */ i(
|
|
3285
|
+
l && /* @__PURE__ */ i(En, {}),
|
|
3286
|
+
!l && /* @__PURE__ */ i(le, { children: o ? (w == null ? void 0 : w.id) && /* @__PURE__ */ i(
|
|
3289
3287
|
I,
|
|
3290
3288
|
{
|
|
3291
3289
|
view_id: w.id,
|
|
@@ -3314,7 +3312,7 @@ const rv = Object.values(pn), Hd = (e) => {
|
|
|
3314
3312
|
function Xd(e) {
|
|
3315
3313
|
return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
|
|
3316
3314
|
}
|
|
3317
|
-
const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(
|
|
3315
|
+
const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs, { ...e }) }), Vs = (e) => {
|
|
3318
3316
|
const { t } = fe(), { ooui: n, value: r } = e;
|
|
3319
3317
|
let o = r, s = _n, a = r;
|
|
3320
3318
|
if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Xd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = ld), !o)
|
|
@@ -3364,9 +3362,9 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3364
3362
|
fieldsToRetrieve: [g],
|
|
3365
3363
|
context: { ...v == null ? void 0 : v(), ...h }
|
|
3366
3364
|
})).map((b) => {
|
|
3367
|
-
const
|
|
3368
|
-
let F =
|
|
3369
|
-
return Array.isArray(
|
|
3365
|
+
const E = b[g];
|
|
3366
|
+
let F = E;
|
|
3367
|
+
return Array.isArray(E) && (F = E[1]), { label: F, value: b.id };
|
|
3370
3368
|
});
|
|
3371
3369
|
l(R);
|
|
3372
3370
|
} catch (T) {
|
|
@@ -3384,14 +3382,14 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3384
3382
|
T.push({ id: b, operation: "pendingLink" });
|
|
3385
3383
|
}), w(T);
|
|
3386
3384
|
}, S = (A) => {
|
|
3387
|
-
const { label: T, closable: R, onClose: b } = A,
|
|
3385
|
+
const { label: T, closable: R, onClose: b } = A, E = (O) => {
|
|
3388
3386
|
O.preventDefault(), O.stopPropagation();
|
|
3389
3387
|
}, F = _n(T);
|
|
3390
3388
|
return /* @__PURE__ */ i(
|
|
3391
3389
|
wo,
|
|
3392
3390
|
{
|
|
3393
3391
|
color: F,
|
|
3394
|
-
onMouseDown:
|
|
3392
|
+
onMouseDown: E,
|
|
3395
3393
|
closable: R,
|
|
3396
3394
|
onClose: b,
|
|
3397
3395
|
closeIcon: /* @__PURE__ */ i("span", { style: { color: F }, children: "X" }),
|
|
@@ -3456,7 +3454,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3456
3454
|
case "many2many":
|
|
3457
3455
|
return Ch;
|
|
3458
3456
|
case "separator":
|
|
3459
|
-
return
|
|
3457
|
+
return Vh;
|
|
3460
3458
|
case "reference":
|
|
3461
3459
|
return Kh;
|
|
3462
3460
|
case "binary":
|
|
@@ -3484,7 +3482,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3484
3482
|
case "markdown":
|
|
3485
3483
|
return Rg;
|
|
3486
3484
|
case "radio":
|
|
3487
|
-
return
|
|
3485
|
+
return Eg;
|
|
3488
3486
|
case "switch":
|
|
3489
3487
|
return Dg;
|
|
3490
3488
|
case "steps":
|
|
@@ -3647,7 +3645,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3647
3645
|
}
|
|
3648
3646
|
);
|
|
3649
3647
|
async function y(T) {
|
|
3650
|
-
const { reportData: R, fields: b, values:
|
|
3648
|
+
const { reportData: R, fields: b, values: E, context: F = {} } = T, {
|
|
3651
3649
|
context: O,
|
|
3652
3650
|
model: k,
|
|
3653
3651
|
datas: _ = {},
|
|
@@ -3658,10 +3656,10 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3658
3656
|
st(`${M} action not supported`);
|
|
3659
3657
|
return;
|
|
3660
3658
|
}
|
|
3661
|
-
const { ids: W } = _ || {}, B = W || [],
|
|
3659
|
+
const { ids: W } = _ || {}, B = W || [], V = typeof O == "string" ? jt({
|
|
3662
3660
|
context: O,
|
|
3663
3661
|
fields: b,
|
|
3664
|
-
values:
|
|
3662
|
+
values: E
|
|
3665
3663
|
}) : O;
|
|
3666
3664
|
try {
|
|
3667
3665
|
const Z = await N.getHandler().createReport({
|
|
@@ -3669,7 +3667,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3669
3667
|
name: $,
|
|
3670
3668
|
datas: _,
|
|
3671
3669
|
ids: B,
|
|
3672
|
-
context: { ...F, ...
|
|
3670
|
+
context: { ...F, ...V }
|
|
3673
3671
|
});
|
|
3674
3672
|
l(!0), s.current = !0, o.current = setInterval(() => {
|
|
3675
3673
|
v(Z);
|
|
@@ -3696,7 +3694,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3696
3694
|
actionData: T,
|
|
3697
3695
|
fields: R,
|
|
3698
3696
|
values: b,
|
|
3699
|
-
context:
|
|
3697
|
+
context: E,
|
|
3700
3698
|
onRefreshParentValues: F
|
|
3701
3699
|
}) {
|
|
3702
3700
|
const { type: O } = T;
|
|
@@ -3705,13 +3703,13 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3705
3703
|
reportData: T,
|
|
3706
3704
|
fields: R,
|
|
3707
3705
|
values: b,
|
|
3708
|
-
context:
|
|
3706
|
+
context: E
|
|
3709
3707
|
});
|
|
3710
3708
|
if (O === "ir.actions.act_window")
|
|
3711
|
-
return await I({ actionData: T, fields: R, values: b, context:
|
|
3709
|
+
return await I({ actionData: T, fields: R, values: b, context: E });
|
|
3712
3710
|
if (O === "ir.actions.act_url")
|
|
3713
3711
|
window.open(
|
|
3714
|
-
cd(T.url, { ...b, context:
|
|
3712
|
+
cd(T.url, { ...b, context: E }),
|
|
3715
3713
|
"_blank"
|
|
3716
3714
|
);
|
|
3717
3715
|
else
|
|
@@ -3721,21 +3719,21 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3721
3719
|
actionData: T,
|
|
3722
3720
|
fields: R = {},
|
|
3723
3721
|
values: b = {},
|
|
3724
|
-
context:
|
|
3722
|
+
context: E = {}
|
|
3725
3723
|
}) {
|
|
3726
3724
|
var $;
|
|
3727
3725
|
let F = T;
|
|
3728
3726
|
T.res_model || (F = (await N.getHandler().readObjects({
|
|
3729
3727
|
model: "ir.actions.act_window",
|
|
3730
3728
|
ids: [parseInt(T.id)],
|
|
3731
|
-
context:
|
|
3729
|
+
context: E
|
|
3732
3730
|
}))[0]);
|
|
3733
3731
|
const O = typeof (F == null ? void 0 : F.context) == "string" ? jt({
|
|
3734
3732
|
context: F.context,
|
|
3735
3733
|
fields: R,
|
|
3736
3734
|
values: { ...b, ...r }
|
|
3737
3735
|
}) : F.context, k = {
|
|
3738
|
-
...
|
|
3736
|
+
...E,
|
|
3739
3737
|
...O
|
|
3740
3738
|
};
|
|
3741
3739
|
let _ = [];
|
|
@@ -3784,16 +3782,16 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3784
3782
|
domain: T,
|
|
3785
3783
|
model: R,
|
|
3786
3784
|
formView: b,
|
|
3787
|
-
context:
|
|
3785
|
+
context: E,
|
|
3788
3786
|
actionData: F
|
|
3789
3787
|
}) {
|
|
3790
|
-
p ? S({ domain: T, model: R, formView: b, context:
|
|
3788
|
+
p ? S({ domain: T, model: R, formView: b, context: E, actionData: F }) : (g({ domain: T, model: R, context: E, formView: b, actionData: F }), h(!0));
|
|
3791
3789
|
}
|
|
3792
3790
|
async function S({
|
|
3793
3791
|
domain: T,
|
|
3794
3792
|
model: R,
|
|
3795
3793
|
formView: b,
|
|
3796
|
-
context:
|
|
3794
|
+
context: E,
|
|
3797
3795
|
actionData: F
|
|
3798
3796
|
}) {
|
|
3799
3797
|
g({
|
|
@@ -3802,7 +3800,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
|
|
|
3802
3800
|
context: {},
|
|
3803
3801
|
formView: void 0,
|
|
3804
3802
|
actionData: void 0
|
|
3805
|
-
}), h(!1), await new Promise((O) => setTimeout(O, 300)), g({ domain: T, model: R, context:
|
|
3803
|
+
}), h(!1), await new Promise((O) => setTimeout(O, 300)), g({ domain: T, model: R, context: E, formView: b, actionData: F }), h(!0);
|
|
3806
3804
|
}
|
|
3807
3805
|
async function A() {
|
|
3808
3806
|
ei(f.current), f.current = [], h(!1), g({
|
|
@@ -4009,7 +4007,7 @@ function Cu(e, t) {
|
|
|
4009
4007
|
forcedValues: A = {},
|
|
4010
4008
|
parentWidth: T,
|
|
4011
4009
|
onMustRefreshParent: R
|
|
4012
|
-
} = e, { t: b } = fe(), [
|
|
4010
|
+
} = e, { t: b } = fe(), [E, F] = C(!1), [O, k] = C(), [_, $] = C(), [M] = ht.useForm(), [W, B] = C(), [V, Z] = C(), re = ne(Ds), [z, U] = C(), [ie, ee] = C(!1), j = Y(), G = Y({}), L = Y({}), me = Y(!1), J = Y(!1), Q = Y(!1), ge = (T !== void 0 ? T : z) < Su, Le = ne(He), { activeId: je, getPlainValues: De } = Le || {}, ke = Y(!1), Ue = ne(
|
|
4013
4011
|
lt
|
|
4014
4012
|
), {
|
|
4015
4013
|
setFormIsSaving: Oe = void 0,
|
|
@@ -4027,7 +4025,7 @@ function Cu(e, t) {
|
|
|
4027
4025
|
submitForm: zt,
|
|
4028
4026
|
getFields: Ie,
|
|
4029
4027
|
getValues: be,
|
|
4030
|
-
getPlainValues:
|
|
4028
|
+
getPlainValues: Ve,
|
|
4031
4029
|
getContext: xt,
|
|
4032
4030
|
fetchValues: ze,
|
|
4033
4031
|
cancelUnsavedChanges: Rt,
|
|
@@ -4040,7 +4038,7 @@ function Cu(e, t) {
|
|
|
4040
4038
|
j.current = void 0, $(void 0);
|
|
4041
4039
|
return;
|
|
4042
4040
|
}
|
|
4043
|
-
(r === void 0 &&
|
|
4041
|
+
(r === void 0 && V || r !== void 0 && V && r < 0) && (j.current = void 0, $(void 0)), tt();
|
|
4044
4042
|
}
|
|
4045
4043
|
}, [r, n, h, m, I]), ae(() => {
|
|
4046
4044
|
ie && (hr({
|
|
@@ -4059,18 +4057,18 @@ function Cu(e, t) {
|
|
|
4059
4057
|
}, [j.current]);
|
|
4060
4058
|
const Ne = oe(() => r || X, [r, X]);
|
|
4061
4059
|
function Ie() {
|
|
4062
|
-
return
|
|
4060
|
+
return V;
|
|
4063
4061
|
}
|
|
4064
4062
|
function be() {
|
|
4065
4063
|
const H = {
|
|
4066
|
-
...Re(
|
|
4064
|
+
...Re(V),
|
|
4067
4065
|
...mt()
|
|
4068
4066
|
};
|
|
4069
4067
|
for (const K in H)
|
|
4070
4068
|
H[K] === void 0 && delete H[K];
|
|
4071
4069
|
return H;
|
|
4072
4070
|
}
|
|
4073
|
-
function
|
|
4071
|
+
function Ve() {
|
|
4074
4072
|
const H = be(), K = Ie(), se = {};
|
|
4075
4073
|
return Object.keys(H).forEach((ce) => {
|
|
4076
4074
|
const Te = H[ce];
|
|
@@ -4079,7 +4077,7 @@ function Cu(e, t) {
|
|
|
4079
4077
|
}
|
|
4080
4078
|
function Qe() {
|
|
4081
4079
|
const H = {
|
|
4082
|
-
...Re(
|
|
4080
|
+
...Re(V)
|
|
4083
4081
|
};
|
|
4084
4082
|
for (const K in H)
|
|
4085
4083
|
H[K] === void 0 && delete H[K];
|
|
@@ -4108,8 +4106,8 @@ function Cu(e, t) {
|
|
|
4108
4106
|
}, It = () => Object.keys(
|
|
4109
4107
|
br({
|
|
4110
4108
|
source: G.current,
|
|
4111
|
-
target: Re(
|
|
4112
|
-
fields:
|
|
4109
|
+
target: Re(V),
|
|
4110
|
+
fields: V
|
|
4113
4111
|
})
|
|
4114
4112
|
).length !== 0, Re = (H) => {
|
|
4115
4113
|
const K = M.getFieldsValue(!0);
|
|
@@ -4117,10 +4115,10 @@ function Cu(e, t) {
|
|
|
4117
4115
|
}, ct = (H, K) => {
|
|
4118
4116
|
vt({
|
|
4119
4117
|
values: {
|
|
4120
|
-
...en(M.getFieldsValue(!0),
|
|
4118
|
+
...en(M.getFieldsValue(!0), V),
|
|
4121
4119
|
[H]: K
|
|
4122
4120
|
},
|
|
4123
|
-
fields:
|
|
4121
|
+
fields: V,
|
|
4124
4122
|
reset: !1
|
|
4125
4123
|
});
|
|
4126
4124
|
}, he = (H) => M.getFieldsValue(!0)[H];
|
|
@@ -4146,7 +4144,7 @@ function Cu(e, t) {
|
|
|
4146
4144
|
}
|
|
4147
4145
|
}, ze = async (H) => {
|
|
4148
4146
|
let K, se, ce, Te;
|
|
4149
|
-
ue == null || ue(!0), k(void 0), H != null && H.fields ? (se = H.fields, ce = H.arch) : (se =
|
|
4147
|
+
ue == null || ue(!0), k(void 0), H != null && H.fields ? (se = H.fields, ce = H.arch) : (se = V, ce = W), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Te } = await $n({
|
|
4150
4148
|
fields: se,
|
|
4151
4149
|
arch: ce
|
|
4152
4150
|
}), w && (K = { ...sd(w), ...K }), G.current = en(K, se), vt({
|
|
@@ -4229,24 +4227,24 @@ function Cu(e, t) {
|
|
|
4229
4227
|
if (ve()) {
|
|
4230
4228
|
const se = br({
|
|
4231
4229
|
source: G.current,
|
|
4232
|
-
target: Re(
|
|
4233
|
-
fields:
|
|
4230
|
+
target: Re(V),
|
|
4231
|
+
fields: V
|
|
4234
4232
|
});
|
|
4235
4233
|
await N.getHandler().update({
|
|
4236
4234
|
model: n,
|
|
4237
4235
|
id: ve(),
|
|
4238
4236
|
values: { ...se, ...A },
|
|
4239
|
-
fields:
|
|
4237
|
+
fields: V,
|
|
4240
4238
|
context: {
|
|
4241
4239
|
...v,
|
|
4242
4240
|
..._ == null ? void 0 : _.context
|
|
4243
4241
|
}
|
|
4244
|
-
}), G.current = Re(
|
|
4242
|
+
}), G.current = Re(V);
|
|
4245
4243
|
} else {
|
|
4246
|
-
const se = Re(
|
|
4244
|
+
const se = Re(V), ce = await N.getHandler().create({
|
|
4247
4245
|
model: n,
|
|
4248
4246
|
values: { ...se, ...A },
|
|
4249
|
-
fields:
|
|
4247
|
+
fields: V,
|
|
4250
4248
|
context: {
|
|
4251
4249
|
...v,
|
|
4252
4250
|
..._ == null ? void 0 : _.context
|
|
@@ -4269,7 +4267,7 @@ function Cu(e, t) {
|
|
|
4269
4267
|
Q.current
|
|
4270
4268
|
), Q.current = !1;
|
|
4271
4269
|
const ce = ve();
|
|
4272
|
-
return d && (j.current = void 0, vt({ values: {}, fields:
|
|
4270
|
+
return d && (j.current = void 0, vt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id: ce };
|
|
4273
4271
|
}
|
|
4274
4272
|
if (!It() && ve() && se)
|
|
4275
4273
|
return J.current = !1, de == null || de(!1), $e == null || $e(), { succeed: !0, id: ve() };
|
|
@@ -4277,7 +4275,7 @@ function Cu(e, t) {
|
|
|
4277
4275
|
return J.current = !1, Zo(b), { succeed: !1, id: ve() };
|
|
4278
4276
|
F(!0), Oe == null || Oe(!0);
|
|
4279
4277
|
try {
|
|
4280
|
-
p === "api" ? await bn(H) : await Nn(H), d && (j.current = void 0, vt({ values: {}, fields:
|
|
4278
|
+
p === "api" ? await bn(H) : await Nn(H), d && (j.current = void 0, vt({ values: {}, fields: V, reset: !0 })), await ze({ forceRefresh: !0 }), K = !0, wr.success(b("savedRegisters"));
|
|
4281
4279
|
} catch (ce) {
|
|
4282
4280
|
J.current = !1, F(!1), Oe == null || Oe(!1), Je == null || Je(ce), wr.error(b("errorWhileSavingForm")), k(ce != null && ce.message ? ce.message : ce);
|
|
4283
4281
|
} finally {
|
|
@@ -4328,8 +4326,8 @@ function Cu(e, t) {
|
|
|
4328
4326
|
return;
|
|
4329
4327
|
const K = br({
|
|
4330
4328
|
source: L.current,
|
|
4331
|
-
target: Re(
|
|
4332
|
-
fields:
|
|
4329
|
+
target: Re(V),
|
|
4330
|
+
fields: V
|
|
4333
4331
|
}), se = Object.keys(K);
|
|
4334
4332
|
if (se.length !== 0 && !(od({
|
|
4335
4333
|
changedFields: se,
|
|
@@ -4346,7 +4344,7 @@ function Cu(e, t) {
|
|
|
4346
4344
|
"many2one"
|
|
4347
4345
|
]
|
|
4348
4346
|
}) && H !== !0)) {
|
|
4349
|
-
const ce = en(M.getFieldsValue(!0),
|
|
4347
|
+
const ce = en(M.getFieldsValue(!0), V);
|
|
4350
4348
|
L.current = ce, c == null || c(ce), de == null || de(!0), Na(se);
|
|
4351
4349
|
}
|
|
4352
4350
|
}, $a = Nl(hr, 100), Na = async (H) => {
|
|
@@ -4362,15 +4360,15 @@ function Cu(e, t) {
|
|
|
4362
4360
|
const K = _ == null ? void 0 : _.onChangeFields[H];
|
|
4363
4361
|
if (!K) {
|
|
4364
4362
|
Nt({
|
|
4365
|
-
fields:
|
|
4363
|
+
fields: V,
|
|
4366
4364
|
arch: W,
|
|
4367
|
-
values: Re(
|
|
4365
|
+
values: Re(V)
|
|
4368
4366
|
});
|
|
4369
4367
|
return;
|
|
4370
4368
|
}
|
|
4371
4369
|
const se = ad({
|
|
4372
4370
|
values: {
|
|
4373
|
-
...Re(
|
|
4371
|
+
...Re(V),
|
|
4374
4372
|
context: {
|
|
4375
4373
|
...v,
|
|
4376
4374
|
..._ == null ? void 0 : _.context
|
|
@@ -4383,23 +4381,23 @@ function Cu(e, t) {
|
|
|
4383
4381
|
action: K.method,
|
|
4384
4382
|
ids: ve() ? [ve()] : [],
|
|
4385
4383
|
payload: se,
|
|
4386
|
-
fields:
|
|
4384
|
+
fields: V
|
|
4387
4385
|
});
|
|
4388
4386
|
if (ce.value) {
|
|
4389
4387
|
const Te = {
|
|
4390
|
-
...Re(
|
|
4388
|
+
...Re(V),
|
|
4391
4389
|
...ce.value
|
|
4392
4390
|
}, Ze = Jc({
|
|
4393
4391
|
values: Te,
|
|
4394
|
-
fields:
|
|
4392
|
+
fields: V
|
|
4395
4393
|
});
|
|
4396
4394
|
Nt({
|
|
4397
|
-
fields:
|
|
4395
|
+
fields: V,
|
|
4398
4396
|
arch: W,
|
|
4399
4397
|
values: Ze
|
|
4400
4398
|
}), vt({
|
|
4401
4399
|
values: Ze,
|
|
4402
|
-
fields:
|
|
4400
|
+
fields: V,
|
|
4403
4401
|
reset: !1
|
|
4404
4402
|
});
|
|
4405
4403
|
}
|
|
@@ -4412,7 +4410,7 @@ function Cu(e, t) {
|
|
|
4412
4410
|
if (ce.domain && Object.keys(ce.domain).length > 0) {
|
|
4413
4411
|
const Te = id({
|
|
4414
4412
|
fieldsDomain: ce.domain,
|
|
4415
|
-
fields:
|
|
4413
|
+
fields: V
|
|
4416
4414
|
});
|
|
4417
4415
|
Nt({
|
|
4418
4416
|
fields: Te,
|
|
@@ -4443,7 +4441,7 @@ function Cu(e, t) {
|
|
|
4443
4441
|
let ce = {};
|
|
4444
4442
|
se.context && (ce = jt({
|
|
4445
4443
|
context: se.context,
|
|
4446
|
-
fields:
|
|
4444
|
+
fields: V,
|
|
4447
4445
|
values: be()
|
|
4448
4446
|
})), await Do({
|
|
4449
4447
|
actionData: se,
|
|
@@ -4477,7 +4475,7 @@ function Cu(e, t) {
|
|
|
4477
4475
|
}) {
|
|
4478
4476
|
const { closeParent: se } = await (Pe == null ? void 0 : Pe({
|
|
4479
4477
|
actionData: H,
|
|
4480
|
-
fields:
|
|
4478
|
+
fields: V,
|
|
4481
4479
|
values: be(),
|
|
4482
4480
|
context: {
|
|
4483
4481
|
...v,
|
|
@@ -4495,9 +4493,9 @@ function Cu(e, t) {
|
|
|
4495
4493
|
}
|
|
4496
4494
|
function gr(H) {
|
|
4497
4495
|
Nt({
|
|
4498
|
-
fields:
|
|
4496
|
+
fields: V,
|
|
4499
4497
|
arch: W,
|
|
4500
|
-
values: Re(
|
|
4498
|
+
values: Re(V),
|
|
4501
4499
|
operationInProgress: H
|
|
4502
4500
|
});
|
|
4503
4501
|
}
|
|
@@ -4505,24 +4503,24 @@ function Cu(e, t) {
|
|
|
4505
4503
|
(H) => {
|
|
4506
4504
|
if (!W)
|
|
4507
4505
|
return;
|
|
4508
|
-
const K = { ...Re(
|
|
4506
|
+
const K = { ...Re(V), ...H };
|
|
4509
4507
|
G.current = {
|
|
4510
4508
|
...G.current,
|
|
4511
4509
|
...H
|
|
4512
|
-
}, Nt({ fields:
|
|
4510
|
+
}, Nt({ fields: V, arch: W, values: K }), vt({
|
|
4513
4511
|
values: K,
|
|
4514
|
-
fields:
|
|
4512
|
+
fields: V,
|
|
4515
4513
|
reset: !1
|
|
4516
4514
|
});
|
|
4517
4515
|
},
|
|
4518
|
-
[W, vt,
|
|
4516
|
+
[W, vt, V, Re, Nt]
|
|
4519
4517
|
);
|
|
4520
4518
|
bu({
|
|
4521
4519
|
model: n,
|
|
4522
4520
|
id: Ne,
|
|
4523
4521
|
context: v,
|
|
4524
4522
|
autorefreshableFields: _ == null ? void 0 : _.autorefreshableFields,
|
|
4525
|
-
fieldDefs:
|
|
4523
|
+
fieldDefs: V,
|
|
4526
4524
|
onAutorefreshableFieldsChange: Ua,
|
|
4527
4525
|
isActive: xe
|
|
4528
4526
|
});
|
|
@@ -4552,7 +4550,7 @@ function Cu(e, t) {
|
|
|
4552
4550
|
fc,
|
|
4553
4551
|
{
|
|
4554
4552
|
getValues: be,
|
|
4555
|
-
getPlainValues:
|
|
4553
|
+
getPlainValues: Ve,
|
|
4556
4554
|
getFields: Ie,
|
|
4557
4555
|
domain: w,
|
|
4558
4556
|
activeId: r,
|
|
@@ -4591,7 +4589,7 @@ function Cu(e, t) {
|
|
|
4591
4589
|
Be,
|
|
4592
4590
|
{
|
|
4593
4591
|
icon: /* @__PURE__ */ i(fn, {}),
|
|
4594
|
-
disabled:
|
|
4592
|
+
disabled: E,
|
|
4595
4593
|
onClick: async () => {
|
|
4596
4594
|
await Rt();
|
|
4597
4595
|
},
|
|
@@ -4601,8 +4599,8 @@ function Cu(e, t) {
|
|
|
4601
4599
|
/* @__PURE__ */ i(
|
|
4602
4600
|
Be,
|
|
4603
4601
|
{
|
|
4604
|
-
disabled:
|
|
4605
|
-
loading:
|
|
4602
|
+
disabled: E || f,
|
|
4603
|
+
loading: E,
|
|
4606
4604
|
icon: /* @__PURE__ */ i(tr, {}),
|
|
4607
4605
|
onClick: async () => {
|
|
4608
4606
|
await zt();
|
|
@@ -4658,12 +4656,12 @@ const yn = wt(Cu), vn = (e) => {
|
|
|
4658
4656
|
shortcut_id: g
|
|
4659
4657
|
});
|
|
4660
4658
|
else {
|
|
4661
|
-
const { action_id: b, res_id:
|
|
4659
|
+
const { action_id: b, res_id: E, action_type: F, view_id: O } = l;
|
|
4662
4660
|
await N.getHandler().addFavourite({
|
|
4663
4661
|
action_id: b,
|
|
4664
4662
|
action_type: F,
|
|
4665
4663
|
view_id: O,
|
|
4666
|
-
res_id:
|
|
4664
|
+
res_id: E || !1
|
|
4667
4665
|
});
|
|
4668
4666
|
}
|
|
4669
4667
|
m(!h);
|
|
@@ -4856,7 +4854,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
|
|
|
4856
4854
|
}, [l, e]);
|
|
4857
4855
|
return /* @__PURE__ */ P(Rn, { children: [
|
|
4858
4856
|
/* @__PURE__ */ i(
|
|
4859
|
-
|
|
4857
|
+
El,
|
|
4860
4858
|
{
|
|
4861
4859
|
onRetrieveData: f,
|
|
4862
4860
|
onItemClick: (d) => {
|
|
@@ -5009,21 +5007,21 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
|
|
|
5009
5007
|
/* @__PURE__ */ i(le, { children: o }),
|
|
5010
5008
|
/* @__PURE__ */ i(So, { id: f, model: c })
|
|
5011
5009
|
] });
|
|
5012
|
-
},
|
|
5010
|
+
}, Eu = (e) => {
|
|
5013
5011
|
const { ooui: t, value: n } = e;
|
|
5014
5012
|
if (!n)
|
|
5015
5013
|
return null;
|
|
5016
5014
|
let r = n;
|
|
5017
5015
|
t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
|
|
5018
5016
|
const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = _n(r);
|
|
5019
|
-
return /* @__PURE__ */ i(
|
|
5020
|
-
},
|
|
5017
|
+
return /* @__PURE__ */ i(Vt, { title: r, children: /* @__PURE__ */ i(ji, { alt: r, style: { backgroundColor: s }, children: o }) });
|
|
5018
|
+
}, Vu = {
|
|
5021
5019
|
en_US: Ql,
|
|
5022
5020
|
es_ES: Xl,
|
|
5023
5021
|
ca_ES: Zl
|
|
5024
5022
|
}, Co = () => {
|
|
5025
5023
|
const { locale: e } = fe();
|
|
5026
|
-
return
|
|
5024
|
+
return Vu[e];
|
|
5027
5025
|
}, { useToken: Du } = We, Ft = {
|
|
5028
5026
|
date: {
|
|
5029
5027
|
placeholder: "__/__/____",
|
|
@@ -5222,7 +5220,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
|
|
|
5222
5220
|
key: t,
|
|
5223
5221
|
ooui: n,
|
|
5224
5222
|
context: r
|
|
5225
|
-
}) => oe(() => /* @__PURE__ */ i(
|
|
5223
|
+
}) => oe(() => /* @__PURE__ */ i(Vs, { ooui: n, value: e }), [n, e]), Ku = ({
|
|
5226
5224
|
value: e,
|
|
5227
5225
|
key: t,
|
|
5228
5226
|
ooui: n,
|
|
@@ -5250,7 +5248,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
|
|
|
5250
5248
|
key: t,
|
|
5251
5249
|
ooui: n,
|
|
5252
5250
|
context: r
|
|
5253
|
-
}) => oe(() => /* @__PURE__ */ i(
|
|
5251
|
+
}) => oe(() => /* @__PURE__ */ i(Eu, { ooui: n, value: e }), [n, e]), zu = ({
|
|
5254
5252
|
value: e,
|
|
5255
5253
|
key: t,
|
|
5256
5254
|
ooui: n,
|
|
@@ -5611,11 +5609,11 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
|
|
|
5611
5609
|
);
|
|
5612
5610
|
}, of = (e) => {
|
|
5613
5611
|
const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = Co(), a = [
|
|
5614
|
-
new
|
|
5612
|
+
new Vr({
|
|
5615
5613
|
name: o + "#date",
|
|
5616
5614
|
label: ""
|
|
5617
5615
|
}),
|
|
5618
|
-
new
|
|
5616
|
+
new Vr({
|
|
5619
5617
|
name: o + "#time",
|
|
5620
5618
|
label: ""
|
|
5621
5619
|
})
|
|
@@ -5926,14 +5924,14 @@ const ii = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
5926
5924
|
return t.forEach((o) => {
|
|
5927
5925
|
Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
|
|
5928
5926
|
}), n;
|
|
5929
|
-
}, { useToken:
|
|
5927
|
+
}, { useToken: Ef } = We, { Title: Vf } = kt, { Header: Df, Content: Pf, Footer: kf } = Bi, $f = ({
|
|
5930
5928
|
isOpen: e,
|
|
5931
5929
|
onClose: t,
|
|
5932
5930
|
children: n,
|
|
5933
5931
|
title: r,
|
|
5934
5932
|
footer: o
|
|
5935
5933
|
}) => {
|
|
5936
|
-
const [s, a] = C(e), l = Y(null), { token: c } =
|
|
5934
|
+
const [s, a] = C(e), l = Y(null), { token: c } = Ef(), u = D(
|
|
5937
5935
|
(h) => {
|
|
5938
5936
|
h.preventDefault(), h.stopPropagation(), t();
|
|
5939
5937
|
},
|
|
@@ -6005,7 +6003,7 @@ const ii = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
6005
6003
|
},
|
|
6006
6004
|
children: [
|
|
6007
6005
|
/* @__PURE__ */ P(Df, { style: p, children: [
|
|
6008
|
-
/* @__PURE__ */ i(
|
|
6006
|
+
/* @__PURE__ */ i(Vf, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
|
|
6009
6007
|
/* @__PURE__ */ i(
|
|
6010
6008
|
Be,
|
|
6011
6009
|
{
|
|
@@ -6289,7 +6287,7 @@ var qs = Hn, Ys = function() {
|
|
|
6289
6287
|
return o;
|
|
6290
6288
|
}, pm = mm, zs = Function.prototype.bind || pm, pi = {}.hasOwnProperty, Tr = Function.prototype.call, hm = Tr.bind ? Tr.bind(pi) : function(e, t) {
|
|
6291
6289
|
return Tr.call(pi, e, t);
|
|
6292
|
-
},
|
|
6290
|
+
}, Ee, dn = SyntaxError, Js = Function, sn = TypeError, Ar = function(e) {
|
|
6293
6291
|
try {
|
|
6294
6292
|
return Js('"use strict"; return (' + e + ").constructor;")();
|
|
6295
6293
|
} catch {
|
|
@@ -6315,22 +6313,22 @@ var Or = function() {
|
|
|
6315
6313
|
}
|
|
6316
6314
|
}() : Or, Jt = am(), ym = cm(), et = Object.getPrototypeOf || (ym ? function(e) {
|
|
6317
6315
|
return e.__proto__;
|
|
6318
|
-
} : null), tn = {}, vm = typeof Uint8Array > "u" || !et ?
|
|
6319
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
6316
|
+
} : null), tn = {}, vm = typeof Uint8Array > "u" || !et ? Ee : et(Uint8Array), Ut = {
|
|
6317
|
+
"%AggregateError%": typeof AggregateError > "u" ? Ee : AggregateError,
|
|
6320
6318
|
"%Array%": Array,
|
|
6321
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
6322
|
-
"%ArrayIteratorPrototype%": Jt && et ? et([][Symbol.iterator]()) :
|
|
6323
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
6319
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ee : ArrayBuffer,
|
|
6320
|
+
"%ArrayIteratorPrototype%": Jt && et ? et([][Symbol.iterator]()) : Ee,
|
|
6321
|
+
"%AsyncFromSyncIteratorPrototype%": Ee,
|
|
6324
6322
|
"%AsyncFunction%": tn,
|
|
6325
6323
|
"%AsyncGenerator%": tn,
|
|
6326
6324
|
"%AsyncGeneratorFunction%": tn,
|
|
6327
6325
|
"%AsyncIteratorPrototype%": tn,
|
|
6328
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
6329
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
6330
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
6331
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
6326
|
+
"%Atomics%": typeof Atomics > "u" ? Ee : Atomics,
|
|
6327
|
+
"%BigInt%": typeof BigInt > "u" ? Ee : BigInt,
|
|
6328
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? Ee : BigInt64Array,
|
|
6329
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? Ee : BigUint64Array,
|
|
6332
6330
|
"%Boolean%": Boolean,
|
|
6333
|
-
"%DataView%": typeof DataView > "u" ?
|
|
6331
|
+
"%DataView%": typeof DataView > "u" ? Ee : DataView,
|
|
6334
6332
|
"%Date%": Date,
|
|
6335
6333
|
"%decodeURI%": decodeURI,
|
|
6336
6334
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -6340,49 +6338,49 @@ var Or = function() {
|
|
|
6340
6338
|
"%eval%": eval,
|
|
6341
6339
|
// eslint-disable-line no-eval
|
|
6342
6340
|
"%EvalError%": EvalError,
|
|
6343
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
6344
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
6345
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
6341
|
+
"%Float32Array%": typeof Float32Array > "u" ? Ee : Float32Array,
|
|
6342
|
+
"%Float64Array%": typeof Float64Array > "u" ? Ee : Float64Array,
|
|
6343
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Ee : FinalizationRegistry,
|
|
6346
6344
|
"%Function%": Js,
|
|
6347
6345
|
"%GeneratorFunction%": tn,
|
|
6348
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
6349
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
6350
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
6346
|
+
"%Int8Array%": typeof Int8Array > "u" ? Ee : Int8Array,
|
|
6347
|
+
"%Int16Array%": typeof Int16Array > "u" ? Ee : Int16Array,
|
|
6348
|
+
"%Int32Array%": typeof Int32Array > "u" ? Ee : Int32Array,
|
|
6351
6349
|
"%isFinite%": isFinite,
|
|
6352
6350
|
"%isNaN%": isNaN,
|
|
6353
|
-
"%IteratorPrototype%": Jt && et ? et(et([][Symbol.iterator]())) :
|
|
6354
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
6355
|
-
"%Map%": typeof Map > "u" ?
|
|
6356
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Jt || !et ?
|
|
6351
|
+
"%IteratorPrototype%": Jt && et ? et(et([][Symbol.iterator]())) : Ee,
|
|
6352
|
+
"%JSON%": typeof JSON == "object" ? JSON : Ee,
|
|
6353
|
+
"%Map%": typeof Map > "u" ? Ee : Map,
|
|
6354
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Jt || !et ? Ee : et((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
6357
6355
|
"%Math%": Math,
|
|
6358
6356
|
"%Number%": Number,
|
|
6359
6357
|
"%Object%": Object,
|
|
6360
6358
|
"%parseFloat%": parseFloat,
|
|
6361
6359
|
"%parseInt%": parseInt,
|
|
6362
|
-
"%Promise%": typeof Promise > "u" ?
|
|
6363
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
6360
|
+
"%Promise%": typeof Promise > "u" ? Ee : Promise,
|
|
6361
|
+
"%Proxy%": typeof Proxy > "u" ? Ee : Proxy,
|
|
6364
6362
|
"%RangeError%": RangeError,
|
|
6365
6363
|
"%ReferenceError%": ReferenceError,
|
|
6366
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
6364
|
+
"%Reflect%": typeof Reflect > "u" ? Ee : Reflect,
|
|
6367
6365
|
"%RegExp%": RegExp,
|
|
6368
|
-
"%Set%": typeof Set > "u" ?
|
|
6369
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Jt || !et ?
|
|
6370
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
6366
|
+
"%Set%": typeof Set > "u" ? Ee : Set,
|
|
6367
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Jt || !et ? Ee : et((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
6368
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Ee : SharedArrayBuffer,
|
|
6371
6369
|
"%String%": String,
|
|
6372
|
-
"%StringIteratorPrototype%": Jt && et ? et(""[Symbol.iterator]()) :
|
|
6373
|
-
"%Symbol%": Jt ? Symbol :
|
|
6370
|
+
"%StringIteratorPrototype%": Jt && et ? et(""[Symbol.iterator]()) : Ee,
|
|
6371
|
+
"%Symbol%": Jt ? Symbol : Ee,
|
|
6374
6372
|
"%SyntaxError%": dn,
|
|
6375
6373
|
"%ThrowTypeError%": gm,
|
|
6376
6374
|
"%TypedArray%": vm,
|
|
6377
6375
|
"%TypeError%": sn,
|
|
6378
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
6379
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
6380
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
6381
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
6376
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? Ee : Uint8Array,
|
|
6377
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ee : Uint8ClampedArray,
|
|
6378
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? Ee : Uint16Array,
|
|
6379
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? Ee : Uint32Array,
|
|
6382
6380
|
"%URIError%": URIError,
|
|
6383
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
6384
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
6385
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
6381
|
+
"%WeakMap%": typeof WeakMap > "u" ? Ee : WeakMap,
|
|
6382
|
+
"%WeakRef%": typeof WeakRef > "u" ? Ee : WeakRef,
|
|
6383
|
+
"%WeakSet%": typeof WeakSet > "u" ? Ee : WeakSet
|
|
6386
6384
|
};
|
|
6387
6385
|
if (et)
|
|
6388
6386
|
try {
|
|
@@ -6459,7 +6457,7 @@ var bm = function e(t) {
|
|
|
6459
6457
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
6460
6458
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
6461
6459
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
6462
|
-
},
|
|
6460
|
+
}, Vn = zs, zn = hm, Sm = Vn.call(Function.call, Array.prototype.concat), Cm = Vn.call(Function.apply, Array.prototype.splice), gi = Vn.call(Function.call, String.prototype.replace), Jn = Vn.call(Function.call, String.prototype.slice), xm = Vn.call(Function.call, RegExp.prototype.exec), Im = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Tm = /\\(\\)?/g, Am = function(t) {
|
|
6463
6461
|
var n = Jn(t, 0, 1), r = Jn(t, -1);
|
|
6464
6462
|
if (n === "%" && r !== "%")
|
|
6465
6463
|
throw new dn("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -6545,11 +6543,11 @@ var Ao = Qs.exports, Xs = Dn, Zs = Ao, Fm = Zs(Xs("String.prototype.indexOf")),
|
|
|
6545
6543
|
return Rm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Mr(t) === "[object Arguments]";
|
|
6546
6544
|
}, ta = function(t) {
|
|
6547
6545
|
return mr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Mr(t) !== "[object Array]" && Mr(t.callee) === "[object Function]";
|
|
6548
|
-
},
|
|
6546
|
+
}, Em = function() {
|
|
6549
6547
|
return mr(arguments);
|
|
6550
6548
|
}();
|
|
6551
6549
|
mr.isLegacyArguments = ta;
|
|
6552
|
-
var
|
|
6550
|
+
var Vm = Em ? mr : ta, Dm = Dn, Lr = Dm("%Object.defineProperty%", !0), jr = function() {
|
|
6553
6551
|
if (Lr)
|
|
6554
6552
|
try {
|
|
6555
6553
|
return Lr({}, "a", { value: 1 }), !0;
|
|
@@ -6738,22 +6736,22 @@ var Tp = ha, Ap = Date.prototype.getDay, Op = function(t) {
|
|
|
6738
6736
|
} catch {
|
|
6739
6737
|
return !1;
|
|
6740
6738
|
}
|
|
6741
|
-
}, Fp = Object.prototype.toString, Rp = "[object Date]", _p = To(),
|
|
6739
|
+
}, Fp = Object.prototype.toString, Rp = "[object Date]", _p = To(), Ep = function(t) {
|
|
6742
6740
|
return typeof t != "object" || t === null ? !1 : _p ? Op(t) : Fp.call(t) === Rp;
|
|
6743
|
-
}, Ii = qs, Ti =
|
|
6741
|
+
}, Ii = qs, Ti = Vm, Ai = Qm, Oi = tp, Fi = Tp, Ri = Ep, _i = Date.prototype.getTime;
|
|
6744
6742
|
function ga(e, t, n) {
|
|
6745
6743
|
var r = n || {};
|
|
6746
|
-
return (r.strict ? Ai(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Ai(e, t) : e == t :
|
|
6744
|
+
return (r.strict ? Ai(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Ai(e, t) : e == t : Vp(e, t, r);
|
|
6747
6745
|
}
|
|
6748
|
-
function
|
|
6746
|
+
function Ei(e) {
|
|
6749
6747
|
return e == null;
|
|
6750
6748
|
}
|
|
6751
|
-
function
|
|
6749
|
+
function Vi(e) {
|
|
6752
6750
|
return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
|
|
6753
6751
|
}
|
|
6754
|
-
function
|
|
6752
|
+
function Vp(e, t, n) {
|
|
6755
6753
|
var r, o;
|
|
6756
|
-
if (typeof e != typeof t ||
|
|
6754
|
+
if (typeof e != typeof t || Ei(e) || Ei(t) || e.prototype !== t.prototype || Ti(e) !== Ti(t))
|
|
6757
6755
|
return !1;
|
|
6758
6756
|
var s = Oi(e), a = Oi(t);
|
|
6759
6757
|
if (s !== a)
|
|
@@ -6762,7 +6760,7 @@ function Ep(e, t, n) {
|
|
|
6762
6760
|
return e.source === t.source && Fi(e) === Fi(t);
|
|
6763
6761
|
if (Ri(e) && Ri(t))
|
|
6764
6762
|
return _i.call(e) === _i.call(t);
|
|
6765
|
-
var l =
|
|
6763
|
+
var l = Vi(e), c = Vi(t);
|
|
6766
6764
|
if (l !== c)
|
|
6767
6765
|
return !1;
|
|
6768
6766
|
if (l || c) {
|
|
@@ -7042,7 +7040,7 @@ function Ro(e) {
|
|
|
7042
7040
|
($ = x.current) == null ? void 0 : $._advancedSearchContainer
|
|
7043
7041
|
);
|
|
7044
7042
|
o({ params: _, offset: k, limit: O, searchValues: F });
|
|
7045
|
-
},
|
|
7043
|
+
}, E = D(() => {
|
|
7046
7044
|
if (!m || !y)
|
|
7047
7045
|
return !1;
|
|
7048
7046
|
const F = m.rows.reduce(
|
|
@@ -7077,7 +7075,7 @@ function Ro(e) {
|
|
|
7077
7075
|
/* @__PURE__ */ i(
|
|
7078
7076
|
Np,
|
|
7079
7077
|
{
|
|
7080
|
-
hideAdvancedFilter: (
|
|
7078
|
+
hideAdvancedFilter: (E() || (y == null ? void 0 : y._rows.length) === 0) && !h,
|
|
7081
7079
|
advancedFilter: w,
|
|
7082
7080
|
onAdvancedFilterToggle: () => {
|
|
7083
7081
|
I(!w);
|
|
@@ -7239,7 +7237,7 @@ function Gp(e, t) {
|
|
|
7239
7237
|
} = e, h = Y({}), m = Y(), g = Y(null), y = Y([]), v = ks(), [w, I] = C(!0), [x, S] = C(), { t: A } = fe(), T = Y(null), R = Ju({
|
|
7240
7238
|
elementRef: T,
|
|
7241
7239
|
offset: Up
|
|
7242
|
-
}), { treeView: b, formView:
|
|
7240
|
+
}), { treeView: b, formView: E, loading: F } = $s({
|
|
7243
7241
|
model: n,
|
|
7244
7242
|
formViewProps: r,
|
|
7245
7243
|
treeViewProps: o,
|
|
@@ -7252,7 +7250,7 @@ function Gp(e, t) {
|
|
|
7252
7250
|
setTreeFirstVisibleRow: M,
|
|
7253
7251
|
treeFirstVisibleRow: W,
|
|
7254
7252
|
selectedRowItems: B,
|
|
7255
|
-
setSearchParams:
|
|
7253
|
+
setSearchParams: V,
|
|
7256
7254
|
searchValues: Z,
|
|
7257
7255
|
searchParams: re,
|
|
7258
7256
|
setSearchValues: z,
|
|
@@ -7268,11 +7266,11 @@ function Gp(e, t) {
|
|
|
7268
7266
|
de();
|
|
7269
7267
|
}, []), ae(() => {
|
|
7270
7268
|
var he;
|
|
7271
|
-
(J !== void 0 && Q.current === void 0 || typeof J == "string" && typeof Q.current == "string" && J !== Q.current) && (
|
|
7269
|
+
(J !== void 0 && Q.current === void 0 || typeof J == "string" && typeof Q.current == "string" && J !== Q.current) && (V == null || V([]), z == null || z({}), (he = g.current) == null || he.unselectAll(), Qe()), Q.current = J;
|
|
7272
7270
|
}, [J]);
|
|
7273
7271
|
const te = oe(() => {
|
|
7274
7272
|
if (b)
|
|
7275
|
-
return
|
|
7273
|
+
return Et(b);
|
|
7276
7274
|
}, [b]);
|
|
7277
7275
|
Hp({
|
|
7278
7276
|
model: n,
|
|
@@ -7354,13 +7352,13 @@ function Gp(e, t) {
|
|
|
7354
7352
|
name_search: J,
|
|
7355
7353
|
context: u,
|
|
7356
7354
|
order: Yt
|
|
7357
|
-
}), Oe() ||
|
|
7355
|
+
}), Oe() || Ve.current !== Yt)
|
|
7358
7356
|
ee == null || ee(bn);
|
|
7359
7357
|
else {
|
|
7360
7358
|
const Ot = [...j || [], ...bn];
|
|
7361
7359
|
ee == null || ee(Ot);
|
|
7362
7360
|
}
|
|
7363
|
-
if (
|
|
7361
|
+
if (Ve.current = Yt, vt.length === 0)
|
|
7364
7362
|
return y.current = [], S(0), L(0), [];
|
|
7365
7363
|
const Nn = ur(te, vt), zt = ln($n);
|
|
7366
7364
|
if (h.current = {
|
|
@@ -7517,7 +7515,7 @@ function Gp(e, t) {
|
|
|
7517
7515
|
x,
|
|
7518
7516
|
te,
|
|
7519
7517
|
ke
|
|
7520
|
-
]), Ne = Y(re), Ie = Y(k), be = Y(),
|
|
7518
|
+
]), Ne = Y(re), Ie = Y(k), be = Y(), Ve = Y();
|
|
7521
7519
|
sr(() => {
|
|
7522
7520
|
const he = !ya(
|
|
7523
7521
|
re,
|
|
@@ -7543,9 +7541,9 @@ function Gp(e, t) {
|
|
|
7543
7541
|
[R, l]
|
|
7544
7542
|
), At = oe(
|
|
7545
7543
|
() => ({
|
|
7546
|
-
fields: { ...
|
|
7544
|
+
fields: { ...E == null ? void 0 : E.fields, ...b == null ? void 0 : b.fields },
|
|
7547
7545
|
searchFields: Gn([
|
|
7548
|
-
|
|
7546
|
+
E == null ? void 0 : E.search_fields,
|
|
7549
7547
|
b == null ? void 0 : b.search_fields
|
|
7550
7548
|
]),
|
|
7551
7549
|
showLimitOptions: !1,
|
|
@@ -7556,45 +7554,45 @@ function Gp(e, t) {
|
|
|
7556
7554
|
searchVisible: !0
|
|
7557
7555
|
}),
|
|
7558
7556
|
[
|
|
7559
|
-
|
|
7560
|
-
|
|
7557
|
+
E == null ? void 0 : E.fields,
|
|
7558
|
+
E == null ? void 0 : E.search_fields,
|
|
7561
7559
|
b == null ? void 0 : b.fields,
|
|
7562
7560
|
b == null ? void 0 : b.search_fields,
|
|
7563
7561
|
Z
|
|
7564
7562
|
]
|
|
7565
7563
|
), mt = D(() => {
|
|
7566
7564
|
var he;
|
|
7567
|
-
$ == null || $([]), (he = g.current) == null || he.unselectAll(), ie == null || ie(void 0),
|
|
7565
|
+
$ == null || $([]), (he = g.current) == null || he.unselectAll(), ie == null || ie(void 0), V == null || V([]), z == null || z(void 0);
|
|
7568
7566
|
}, [
|
|
7569
7567
|
$,
|
|
7570
7568
|
ie,
|
|
7571
|
-
|
|
7569
|
+
V,
|
|
7572
7570
|
z
|
|
7573
7571
|
]), qt = D(
|
|
7574
7572
|
({ params: he, searchValues: Ge }) => {
|
|
7575
7573
|
var tt;
|
|
7576
|
-
$ == null || $([]), (tt = g.current) == null || tt.unselectAll(), ie == null || ie(void 0),
|
|
7574
|
+
$ == null || $([]), (tt = g.current) == null || tt.unselectAll(), ie == null || ie(void 0), V == null || V(he), z == null || z(Ge);
|
|
7577
7575
|
},
|
|
7578
7576
|
[
|
|
7579
7577
|
$,
|
|
7580
7578
|
ie,
|
|
7581
|
-
|
|
7579
|
+
V,
|
|
7582
7580
|
z
|
|
7583
7581
|
]
|
|
7584
7582
|
), It = oe(
|
|
7585
7583
|
() => ({
|
|
7586
7584
|
isOpen: k,
|
|
7587
|
-
fields: { ...
|
|
7585
|
+
fields: { ...E == null ? void 0 : E.fields, ...b == null ? void 0 : b.fields },
|
|
7588
7586
|
searchFields: Gn([
|
|
7589
|
-
|
|
7587
|
+
E == null ? void 0 : E.search_fields,
|
|
7590
7588
|
b == null ? void 0 : b.search_fields
|
|
7591
7589
|
]),
|
|
7592
7590
|
searchValues: Z
|
|
7593
7591
|
}),
|
|
7594
7592
|
[
|
|
7595
7593
|
k,
|
|
7596
|
-
|
|
7597
|
-
|
|
7594
|
+
E == null ? void 0 : E.fields,
|
|
7595
|
+
E == null ? void 0 : E.search_fields,
|
|
7598
7596
|
b == null ? void 0 : b.fields,
|
|
7599
7597
|
b == null ? void 0 : b.search_fields,
|
|
7600
7598
|
Z
|
|
@@ -7605,12 +7603,12 @@ function Gp(e, t) {
|
|
|
7605
7603
|
), ct = D(
|
|
7606
7604
|
({ params: he, values: Ge }) => {
|
|
7607
7605
|
var tt;
|
|
7608
|
-
$ == null || $([]), (tt = g.current) == null || tt.unselectAll(), ie == null || ie(void 0),
|
|
7606
|
+
$ == null || $([]), (tt = g.current) == null || tt.unselectAll(), ie == null || ie(void 0), V == null || V(he), z == null || z(Ge), _ == null || _(!1);
|
|
7609
7607
|
},
|
|
7610
7608
|
[
|
|
7611
7609
|
$,
|
|
7612
7610
|
ie,
|
|
7613
|
-
|
|
7611
|
+
V,
|
|
7614
7612
|
z,
|
|
7615
7613
|
_
|
|
7616
7614
|
]
|
|
@@ -7729,9 +7727,9 @@ const va = wt(Gp), Di = (e, t = "14px -apple-system") => {
|
|
|
7729
7727
|
context: S,
|
|
7730
7728
|
readonly: A,
|
|
7731
7729
|
onSelectAllRecords: T
|
|
7732
|
-
} = e, R = Y(null), [b,
|
|
7730
|
+
} = e, R = Y(null), [b, E] = C([]), F = Y(!1), [O, k] = C(), { t: _ } = fe(), $ = Y(r), M = ne(
|
|
7733
7731
|
lt
|
|
7734
|
-
), { title: W = void 0, setTitle: B = void 0 } = (x ? M : {}) || {},
|
|
7732
|
+
), { title: W = void 0, setTitle: B = void 0 } = (x ? M : {}) || {}, V = oe(() => {
|
|
7735
7733
|
if (O)
|
|
7736
7734
|
return ho(
|
|
7737
7735
|
O,
|
|
@@ -7747,14 +7745,14 @@ const va = wt(Gp), Di = (e, t = "14px -apple-system") => {
|
|
|
7747
7745
|
(L = R.current) == null || L.unselectAll();
|
|
7748
7746
|
}
|
|
7749
7747
|
})), ae(() => {
|
|
7750
|
-
const L =
|
|
7748
|
+
const L = Et(s);
|
|
7751
7749
|
k(L), L.string && W !== L.string && (B == null || B(L.string));
|
|
7752
7750
|
}, [s, W]), ae(() => {
|
|
7753
7751
|
if (!O)
|
|
7754
7752
|
return;
|
|
7755
7753
|
F.current = !1;
|
|
7756
7754
|
const L = ur(O, a);
|
|
7757
|
-
|
|
7755
|
+
E(L);
|
|
7758
7756
|
}, [a]), ae(() => {
|
|
7759
7757
|
$.current = r;
|
|
7760
7758
|
}, [r]);
|
|
@@ -7810,9 +7808,9 @@ const va = wt(Gp), Di = (e, t = "14px -apple-system") => {
|
|
|
7810
7808
|
me.push(`${Q.label}: ${Math.round(te * 100) / 100}`);
|
|
7811
7809
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: me.join(", ") });
|
|
7812
7810
|
}, [b, d, O]), ee = oe(() => {
|
|
7813
|
-
if (O !== null &&
|
|
7814
|
-
return Kp(
|
|
7815
|
-
}, [
|
|
7811
|
+
if (O !== null && V && V.length > 0)
|
|
7812
|
+
return Kp(V, b, 600);
|
|
7813
|
+
}, [V, b, O]), j = oe(() => h && (O != null && O.columns.some((L) => L.sum !== void 0)) ? h - 30 : h, [h, O == null ? void 0 : O.columns]);
|
|
7816
7814
|
return O === null || !ee || ((G = ee == null ? void 0 : ee.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(Ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ P(Un, { children: [
|
|
7817
7815
|
U,
|
|
7818
7816
|
/* @__PURE__ */ i(
|
|
@@ -7878,7 +7876,7 @@ const ba = (e) => {
|
|
|
7878
7876
|
searchParams: A = [],
|
|
7879
7877
|
setSearchValues: T,
|
|
7880
7878
|
clearSelection: R
|
|
7881
|
-
} = e, [b,
|
|
7879
|
+
} = e, [b, E] = C(!1), [F, O] = C(!1), [k, _] = C(), [$, M] = C(1), [W, B] = C(0), [V, Z] = C(), [re, z] = C([]), [U, ie] = C(void 0), [ee, j] = C(void 0), G = Y(x || Pt), L = Y([]), me = D(
|
|
7882
7880
|
(de) => {
|
|
7883
7881
|
y == null || y([...de]), z([...de]);
|
|
7884
7882
|
},
|
|
@@ -7892,7 +7890,7 @@ const ba = (e) => {
|
|
|
7892
7890
|
context: u
|
|
7893
7891
|
});
|
|
7894
7892
|
if (Z(de.length), f == null || f(de.length), de.length > 0) {
|
|
7895
|
-
const Ae = de.map((Se) => Se == null ? void 0 : Se[0]), { colors: ue, status: Fe } =
|
|
7893
|
+
const Ae = de.map((Se) => Se == null ? void 0 : Se[0]), { colors: ue, status: Fe } = Et(d), q = {};
|
|
7896
7894
|
ue && (q.colors = ue), Fe && (q.status = Fe);
|
|
7897
7895
|
const ye = await N.getHandler().readEvalUiObjects({
|
|
7898
7896
|
model: t,
|
|
@@ -7911,7 +7909,7 @@ const ba = (e) => {
|
|
|
7911
7909
|
me(Pe), qe.length > 0 ? g == null || g(0) : g == null || g(void 0);
|
|
7912
7910
|
} else
|
|
7913
7911
|
me([]), g == null || g(void 0);
|
|
7914
|
-
|
|
7912
|
+
E(!1), c.current = !0;
|
|
7915
7913
|
}, [
|
|
7916
7914
|
me,
|
|
7917
7915
|
c,
|
|
@@ -7926,7 +7924,7 @@ const ba = (e) => {
|
|
|
7926
7924
|
f
|
|
7927
7925
|
]), te = D(
|
|
7928
7926
|
async (de) => {
|
|
7929
|
-
const { params: Ae, newOffset: ue } = de || {}, Fe = cn(Ae || A, w), { colors: q, status: ye } =
|
|
7927
|
+
const { params: Ae, newOffset: ue } = de || {}, Fe = cn(Ae || A, w), { colors: q, status: ye } = Et(d), xe = {};
|
|
7930
7928
|
q && (xe.colors = q), ye && (xe.status = ye);
|
|
7931
7929
|
const { totalItems: qe, results: Pe, attrsEvaluated: Se } = await N.getHandler().searchForTree({
|
|
7932
7930
|
params: Fe,
|
|
@@ -7950,7 +7948,7 @@ const ba = (e) => {
|
|
|
7950
7948
|
Je === -1 ? g == null || g(0) : g == null || g(Je);
|
|
7951
7949
|
} else
|
|
7952
7950
|
g == null || g(void 0);
|
|
7953
|
-
|
|
7951
|
+
E(!1);
|
|
7954
7952
|
const $e = await qe();
|
|
7955
7953
|
Z($e), f == null || f($e);
|
|
7956
7954
|
},
|
|
@@ -7972,9 +7970,9 @@ const ba = (e) => {
|
|
|
7972
7970
|
), ge = D(
|
|
7973
7971
|
async (de) => {
|
|
7974
7972
|
try {
|
|
7975
|
-
|
|
7973
|
+
E(!0), a == null || a(!0), l && !c.current ? await Q() : await te(de), R == null || R();
|
|
7976
7974
|
} catch (Ae) {
|
|
7977
|
-
_(typeof Ae == "string" ? Ae : Ae.message),
|
|
7975
|
+
_(typeof Ae == "string" ? Ae : Ae.message), E(!1);
|
|
7978
7976
|
} finally {
|
|
7979
7977
|
r == null || r([]), O(!1), a == null || a(!1);
|
|
7980
7978
|
}
|
|
@@ -8028,9 +8026,9 @@ const ba = (e) => {
|
|
|
8028
8026
|
]
|
|
8029
8027
|
), De = D(
|
|
8030
8028
|
(de) => {
|
|
8031
|
-
|
|
8029
|
+
E(!0), M(de), B((de - 1) * x);
|
|
8032
8030
|
},
|
|
8033
|
-
[
|
|
8031
|
+
[E, x, B, M]
|
|
8034
8032
|
), ke = D(() => {
|
|
8035
8033
|
b || (n == null || n(void 0), o == null || o([]), T == null || T({}), _(void 0), B(0), M(1), S == null || S(x || Pt));
|
|
8036
8034
|
}, [
|
|
@@ -8048,15 +8046,15 @@ const ba = (e) => {
|
|
|
8048
8046
|
fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
|
|
8049
8047
|
context: u
|
|
8050
8048
|
});
|
|
8051
|
-
return me([...J(), ...ue]), ur(
|
|
8049
|
+
return me([...J(), ...ue]), ur(Et(d), ue);
|
|
8052
8050
|
},
|
|
8053
8051
|
[d, t, u, J, me]
|
|
8054
8052
|
), Oe = D(async () => await N.getHandler().searchAllIds({
|
|
8055
8053
|
params: cn(A, w),
|
|
8056
8054
|
model: t,
|
|
8057
8055
|
context: u,
|
|
8058
|
-
totalItems:
|
|
8059
|
-
}), [t, u,
|
|
8056
|
+
totalItems: V
|
|
8057
|
+
}), [t, u, V, A, w]);
|
|
8060
8058
|
return {
|
|
8061
8059
|
submit: je,
|
|
8062
8060
|
clear: ke,
|
|
@@ -8073,7 +8071,7 @@ const ba = (e) => {
|
|
|
8073
8071
|
fetchChildrenForRecord: Ue,
|
|
8074
8072
|
colorsForResults: U,
|
|
8075
8073
|
statusForResults: ee,
|
|
8076
|
-
totalItems:
|
|
8074
|
+
totalItems: V,
|
|
8077
8075
|
getAllIds: Oe
|
|
8078
8076
|
};
|
|
8079
8077
|
};
|
|
@@ -8091,13 +8089,13 @@ function zp(e, t) {
|
|
|
8091
8089
|
rootTree: f = !1,
|
|
8092
8090
|
parentContext: d = {},
|
|
8093
8091
|
onChangeSelectedRowKeys: p
|
|
8094
|
-
} = e, [h, m] = C(!1), [g, y] = C(!1), v = Y(!1), w = Y(null), [I, x] = C(), [S, A] = C(), [T, R] = C(), [b,
|
|
8092
|
+
} = e, [h, m] = C(!1), [g, y] = C(!1), v = Y(!1), w = Y(null), [I, x] = C(), [S, A] = C(), [T, R] = C(), [b, E] = C(), [F, O] = C(200), k = Y(), { height: _ } = lr(), $ = ne(
|
|
8095
8093
|
gn
|
|
8096
8094
|
), { processAction: M } = $ || {}, W = ne(
|
|
8097
8095
|
lt
|
|
8098
8096
|
), {
|
|
8099
8097
|
setResults: B = void 0,
|
|
8100
|
-
setCurrentItemIndex:
|
|
8098
|
+
setCurrentItemIndex: V = void 0,
|
|
8101
8099
|
currentId: Z = void 0,
|
|
8102
8100
|
results: re = void 0,
|
|
8103
8101
|
selectedRowItems: z = void 0,
|
|
@@ -8154,7 +8152,7 @@ function zp(e, t) {
|
|
|
8154
8152
|
treeView: S,
|
|
8155
8153
|
sorter: L,
|
|
8156
8154
|
setSorter: me,
|
|
8157
|
-
setCurrentItemIndex:
|
|
8155
|
+
setCurrentItemIndex: V,
|
|
8158
8156
|
setResultsActionView: B,
|
|
8159
8157
|
resultsActionView: re,
|
|
8160
8158
|
domain: c,
|
|
@@ -8174,11 +8172,11 @@ function zp(e, t) {
|
|
|
8174
8172
|
g && u && S && (v.current = !1, de());
|
|
8175
8173
|
}, [q, xe, g, u, a, S]);
|
|
8176
8174
|
const we = async () => {
|
|
8177
|
-
y(!1), m(!0),
|
|
8175
|
+
y(!1), m(!0), E(void 0), te == null || te(!0);
|
|
8178
8176
|
try {
|
|
8179
8177
|
await Ne(), y(!0);
|
|
8180
8178
|
} catch (Re) {
|
|
8181
|
-
|
|
8179
|
+
E(Re), te == null || te(!1);
|
|
8182
8180
|
} finally {
|
|
8183
8181
|
m(!1);
|
|
8184
8182
|
}
|
|
@@ -8225,7 +8223,7 @@ function zp(e, t) {
|
|
|
8225
8223
|
}));
|
|
8226
8224
|
},
|
|
8227
8225
|
[I, d, M, S]
|
|
8228
|
-
),
|
|
8226
|
+
), Ve = D(
|
|
8229
8227
|
async (Re) => {
|
|
8230
8228
|
const { id: ct } = Re;
|
|
8231
8229
|
if (S != null && S.isExpandable) {
|
|
@@ -8283,7 +8281,7 @@ function zp(e, t) {
|
|
|
8283
8281
|
results: qe(),
|
|
8284
8282
|
onRequestPageChange: Pe,
|
|
8285
8283
|
loading: Ae,
|
|
8286
|
-
onRowClicked:
|
|
8284
|
+
onRowClicked: Ve,
|
|
8287
8285
|
scrollY: l || xt,
|
|
8288
8286
|
colorsForResults: $e,
|
|
8289
8287
|
statusForResults: Je,
|
|
@@ -8309,7 +8307,7 @@ function zp(e, t) {
|
|
|
8309
8307
|
je,
|
|
8310
8308
|
ye,
|
|
8311
8309
|
xe,
|
|
8312
|
-
|
|
8310
|
+
Ve,
|
|
8313
8311
|
Ie,
|
|
8314
8312
|
q,
|
|
8315
8313
|
d,
|
|
@@ -8380,7 +8378,7 @@ const Sa = wt(zp), _o = ({
|
|
|
8380
8378
|
[I]
|
|
8381
8379
|
), b = D(() => {
|
|
8382
8380
|
c(!0);
|
|
8383
|
-
}, []),
|
|
8381
|
+
}, []), E = D(() => {
|
|
8384
8382
|
c(!1), S();
|
|
8385
8383
|
}, [S]), F = D(
|
|
8386
8384
|
(O) => {
|
|
@@ -8450,7 +8448,7 @@ const Sa = wt(zp), _o = ({
|
|
|
8450
8448
|
visible: l,
|
|
8451
8449
|
parentContext: a,
|
|
8452
8450
|
onSubmitSucceed: F,
|
|
8453
|
-
onCancel:
|
|
8451
|
+
onCancel: E
|
|
8454
8452
|
}
|
|
8455
8453
|
)
|
|
8456
8454
|
] });
|
|
@@ -8472,7 +8470,7 @@ const Sa = wt(zp), _o = ({
|
|
|
8472
8470
|
context: l,
|
|
8473
8471
|
id: c,
|
|
8474
8472
|
domain: u
|
|
8475
|
-
} = r, f = o && !a ? { backgroundColor: Ca.colorPrimaryBg } : void 0, [d, p] = C(!1), [h, m] = C(!1), [g, y] = C(!1), [v, w] = C(), I = Y(!1), [x, S] = C(""), A = Y(), T = ne(He), { domain: R, getValues: b, getFields:
|
|
8473
|
+
} = r, f = o && !a ? { backgroundColor: Ca.colorPrimaryBg } : void 0, [d, p] = C(!1), [h, m] = C(!1), [g, y] = C(!1), [v, w] = C(), I = Y(!1), [x, S] = C(""), A = Y(), T = ne(He), { domain: R, getValues: b, getFields: E, getContext: F, elementHasLostFocus: O } = T || {}, k = Y([]), [_, $] = C([]), M = t && t[0] || void 0, W = t && t[1] || "";
|
|
8476
8474
|
ae(() => {
|
|
8477
8475
|
!Array.isArray(t) && t && z(t);
|
|
8478
8476
|
}, [t]), ae(() => {
|
|
@@ -8480,7 +8478,7 @@ const Sa = wt(zp), _o = ({
|
|
|
8480
8478
|
}, [t]);
|
|
8481
8479
|
const B = (j) => {
|
|
8482
8480
|
n == null || n(j), O == null || O();
|
|
8483
|
-
},
|
|
8481
|
+
}, V = (j) => {
|
|
8484
8482
|
A.current = j.target.value, B([void 0, ""]);
|
|
8485
8483
|
}, Z = async () => {
|
|
8486
8484
|
if (!g && x !== W) {
|
|
@@ -8538,10 +8536,10 @@ const Sa = wt(zp), _o = ({
|
|
|
8538
8536
|
u && (k.current = await N.getHandler().evalDomain({
|
|
8539
8537
|
domain: u,
|
|
8540
8538
|
values: Kt({
|
|
8541
|
-
fields:
|
|
8539
|
+
fields: E(),
|
|
8542
8540
|
values: b()
|
|
8543
8541
|
}),
|
|
8544
|
-
fields:
|
|
8542
|
+
fields: E(),
|
|
8545
8543
|
context: F()
|
|
8546
8544
|
})), R && R.length > 0 && (k.current = k.current.concat(
|
|
8547
8545
|
eo({
|
|
@@ -8560,7 +8558,7 @@ const Sa = wt(zp), _o = ({
|
|
|
8560
8558
|
type: "text",
|
|
8561
8559
|
value: x,
|
|
8562
8560
|
disabled: a,
|
|
8563
|
-
onChange:
|
|
8561
|
+
onChange: V,
|
|
8564
8562
|
style: {
|
|
8565
8563
|
...f,
|
|
8566
8564
|
borderTopRightRadius: 0,
|
|
@@ -8891,7 +8889,7 @@ const ih = (e) => {
|
|
|
8891
8889
|
getContext: m,
|
|
8892
8890
|
domain: g,
|
|
8893
8891
|
fetchValues: y
|
|
8894
|
-
} = f || {}, { t: v } = fe(), [w, I] = C(!1), [x, S] = C(!1), [A, T] = C(), [R, b] = C(!1), [
|
|
8892
|
+
} = f || {}, { t: v } = fe(), [w, I] = C(!1), [x, S] = C(!1), [A, T] = C(), [R, b] = C(!1), [E, F] = C(!1), [O, k] = C(), [_, $] = C([]), [M, W] = C(!1), B = Y([]), [V, Z] = C(), re = Y(), [z, U] = C(void 0), {
|
|
8895
8893
|
readOnly: ie,
|
|
8896
8894
|
relation: ee,
|
|
8897
8895
|
context: j,
|
|
@@ -8924,7 +8922,7 @@ const ih = (e) => {
|
|
|
8924
8922
|
var we, Ne, Ie;
|
|
8925
8923
|
S(!0), I(!1), T(void 0);
|
|
8926
8924
|
try {
|
|
8927
|
-
const [be,
|
|
8925
|
+
const [be, Ve] = await go({
|
|
8928
8926
|
treeView: {
|
|
8929
8927
|
arch: (we = o.get("tree")) == null ? void 0 : we.arch,
|
|
8930
8928
|
fields: (Ne = o.get("tree")) == null ? void 0 : Ne.fields
|
|
@@ -8937,7 +8935,7 @@ const ih = (e) => {
|
|
|
8937
8935
|
context: { ...m == null ? void 0 : m(), ...j },
|
|
8938
8936
|
currentView: X || a
|
|
8939
8937
|
});
|
|
8940
|
-
return re.current || (re.current = be.map((Qe) => Qe.id)), (a || X) === "tree" &&
|
|
8938
|
+
return re.current || (re.current = be.map((Qe) => Qe.id)), (a || X) === "tree" && Ve && U(Ve), ge(be), be;
|
|
8941
8939
|
} catch (be) {
|
|
8942
8940
|
T(be);
|
|
8943
8941
|
} finally {
|
|
@@ -9065,19 +9063,19 @@ const ih = (e) => {
|
|
|
9065
9063
|
treeValues: { ...Ne, id: X }
|
|
9066
9064
|
});
|
|
9067
9065
|
else if (X)
|
|
9068
|
-
be = s.map((
|
|
9066
|
+
be = s.map((Ve) => Ve.id === X ? {
|
|
9069
9067
|
id: X,
|
|
9070
9068
|
operation: X > 0 ? "pendingUpdate" : "pendingCreate",
|
|
9071
9069
|
values: { ...Ne, id: X },
|
|
9072
9070
|
treeValues: { ...Ne, id: X }
|
|
9073
|
-
} :
|
|
9071
|
+
} : Ve);
|
|
9074
9072
|
else {
|
|
9075
|
-
const
|
|
9073
|
+
const Ve = Ss(s);
|
|
9076
9074
|
be = s.concat({
|
|
9077
|
-
id:
|
|
9075
|
+
id: Ve,
|
|
9078
9076
|
operation: "pendingCreate",
|
|
9079
|
-
values: { ...Ne, id:
|
|
9080
|
-
treeValues: { ...Ne, id:
|
|
9077
|
+
values: { ...Ne, id: Ve },
|
|
9078
|
+
treeValues: { ...Ne, id: Ve }
|
|
9081
9079
|
});
|
|
9082
9080
|
}
|
|
9083
9081
|
ge(be), M || b(!1);
|
|
@@ -9096,7 +9094,7 @@ const ih = (e) => {
|
|
|
9096
9094
|
ids: [Ie],
|
|
9097
9095
|
fields: o.get("form").fields,
|
|
9098
9096
|
context: { ...m == null ? void 0 : m(), ...j }
|
|
9099
|
-
}))[0],
|
|
9097
|
+
}))[0], Ve = (await N.getHandler().readObjects({
|
|
9100
9098
|
model: ee,
|
|
9101
9099
|
ids: [Ie],
|
|
9102
9100
|
fields: o.get("tree").fields,
|
|
@@ -9106,7 +9104,7 @@ const ih = (e) => {
|
|
|
9106
9104
|
id: Ie,
|
|
9107
9105
|
operation: "pendingLink",
|
|
9108
9106
|
values: be,
|
|
9109
|
-
treeValues:
|
|
9107
|
+
treeValues: Ve
|
|
9110
9108
|
});
|
|
9111
9109
|
}
|
|
9112
9110
|
ge(we);
|
|
@@ -9128,7 +9126,7 @@ const ih = (e) => {
|
|
|
9128
9126
|
const $e = () => {
|
|
9129
9127
|
var we, Ne, Ie, be;
|
|
9130
9128
|
if (a === "form")
|
|
9131
|
-
return J.length === 0 ? v("noCurrentEntries") : a !== Q.current && s.some((
|
|
9129
|
+
return J.length === 0 ? v("noCurrentEntries") : a !== Q.current && s.some((Ve) => !Ve.values) ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(
|
|
9132
9130
|
yn,
|
|
9133
9131
|
{
|
|
9134
9132
|
formView: o.get("form"),
|
|
@@ -9137,13 +9135,13 @@ const ih = (e) => {
|
|
|
9137
9135
|
model: ee,
|
|
9138
9136
|
id: (Ne = J[c]) == null ? void 0 : Ne.id,
|
|
9139
9137
|
submitMode: "values",
|
|
9140
|
-
onFieldsChange: (
|
|
9138
|
+
onFieldsChange: (Ve) => {
|
|
9141
9139
|
var At;
|
|
9142
9140
|
const Qe = (At = J[c]) == null ? void 0 : At.id, xt = s.map((mt) => mt.id === Qe ? {
|
|
9143
9141
|
...mt,
|
|
9144
9142
|
operation: mt.operation === "original" ? "pendingUpdate" : mt.operation,
|
|
9145
|
-
values: { ...
|
|
9146
|
-
treeValues: { ...
|
|
9143
|
+
values: { ...Ve, id: Qe },
|
|
9144
|
+
treeValues: { ...Ve, id: Qe }
|
|
9147
9145
|
} : mt);
|
|
9148
9146
|
ge(xt), I(!0);
|
|
9149
9147
|
},
|
|
@@ -9151,14 +9149,14 @@ const ih = (e) => {
|
|
|
9151
9149
|
}
|
|
9152
9150
|
);
|
|
9153
9151
|
let X = [];
|
|
9154
|
-
if (J.some((
|
|
9155
|
-
resultsToSort: J.map((
|
|
9156
|
-
sorter:
|
|
9152
|
+
if (J.some((Ve) => Ve.treeValues) && (X = V ? on({
|
|
9153
|
+
resultsToSort: J.map((Ve) => Ve.treeValues),
|
|
9154
|
+
sorter: V,
|
|
9157
9155
|
fields: {
|
|
9158
9156
|
...o.get("tree").fields,
|
|
9159
9157
|
...((Ie = o.get("form")) == null ? void 0 : Ie.fields) || {}
|
|
9160
9158
|
}
|
|
9161
|
-
}) : J.map((
|
|
9159
|
+
}) : J.map((Ve) => Ve.treeValues)), a === "tree")
|
|
9162
9160
|
return /* @__PURE__ */ i(
|
|
9163
9161
|
kn,
|
|
9164
9162
|
{
|
|
@@ -9171,7 +9169,7 @@ const ih = (e) => {
|
|
|
9171
9169
|
showPagination: !1,
|
|
9172
9170
|
selectedRowKeys: _,
|
|
9173
9171
|
onRowSelectionChange: $,
|
|
9174
|
-
sorter:
|
|
9172
|
+
sorter: V,
|
|
9175
9173
|
onChangeSort: Z,
|
|
9176
9174
|
context: { ...m == null ? void 0 : m(), ...j },
|
|
9177
9175
|
colorsForResults: z,
|
|
@@ -9180,13 +9178,13 @@ const ih = (e) => {
|
|
|
9180
9178
|
}
|
|
9181
9179
|
);
|
|
9182
9180
|
if (a === "graph") {
|
|
9183
|
-
const
|
|
9181
|
+
const Ve = [[`${r.inv_field}`, "=", d]];
|
|
9184
9182
|
return /* @__PURE__ */ i(
|
|
9185
9183
|
mn,
|
|
9186
9184
|
{
|
|
9187
9185
|
view_id: o.get("graph").view_id,
|
|
9188
9186
|
model: r.relation,
|
|
9189
|
-
domain:
|
|
9187
|
+
domain: Ve,
|
|
9190
9188
|
context: { ...m == null ? void 0 : m(), ...j },
|
|
9191
9189
|
limit: 0
|
|
9192
9190
|
}
|
|
@@ -9247,7 +9245,7 @@ const ih = (e) => {
|
|
|
9247
9245
|
domain: B.current,
|
|
9248
9246
|
model: ee,
|
|
9249
9247
|
context: { ...m == null ? void 0 : m(), ...j },
|
|
9250
|
-
visible:
|
|
9248
|
+
visible: E,
|
|
9251
9249
|
onSelectValues: async (X) => {
|
|
9252
9250
|
F(!1), Se(X);
|
|
9253
9251
|
},
|
|
@@ -9300,7 +9298,7 @@ const ih = (e) => {
|
|
|
9300
9298
|
s.length === 0 ? h = !0 : h = !1, h ? (a(r), (m = o.current) == null || m.setSelectedRows(r)) : (a([]), (g = o.current) == null || g.setSelectedRows([]));
|
|
9301
9299
|
}, [r, o, s.length]), u = D((h) => {
|
|
9302
9300
|
l.current = h;
|
|
9303
|
-
}, []), f = D(() => l.current, []), d = oe(() =>
|
|
9301
|
+
}, []), f = D(() => l.current, []), d = oe(() => Et(e), [e]);
|
|
9304
9302
|
return {
|
|
9305
9303
|
onTreeFetchRows: gt(
|
|
9306
9304
|
async ({
|
|
@@ -9329,9 +9327,9 @@ const ih = (e) => {
|
|
|
9329
9327
|
context: n,
|
|
9330
9328
|
attrs: S,
|
|
9331
9329
|
treeOoui: d
|
|
9332
|
-
}),
|
|
9330
|
+
}), E = x.length < g - m && I.length > 0 ? [...x, ...I.map((O) => O.id)] : x;
|
|
9333
9331
|
return { results: Zc({
|
|
9334
|
-
finalResultIds:
|
|
9332
|
+
finalResultIds: E,
|
|
9335
9333
|
fetchedItems: A,
|
|
9336
9334
|
otherItems: I
|
|
9337
9335
|
}), colors: T, status: R };
|
|
@@ -9555,19 +9553,19 @@ const mh = ({
|
|
|
9555
9553
|
treeValues: { ...T, id: S }
|
|
9556
9554
|
});
|
|
9557
9555
|
else if (S)
|
|
9558
|
-
b = o.map((
|
|
9556
|
+
b = o.map((E) => E.id === S ? {
|
|
9559
9557
|
id: S,
|
|
9560
9558
|
operation: S > 0 ? "pendingUpdate" : "pendingCreate",
|
|
9561
9559
|
values: { ...T, id: S },
|
|
9562
9560
|
treeValues: { ...T, id: S }
|
|
9563
|
-
} :
|
|
9561
|
+
} : E);
|
|
9564
9562
|
else {
|
|
9565
|
-
const
|
|
9563
|
+
const E = Ss(o);
|
|
9566
9564
|
b = o.concat({
|
|
9567
|
-
id:
|
|
9565
|
+
id: E,
|
|
9568
9566
|
operation: "pendingCreate",
|
|
9569
|
-
values: { ...T, id:
|
|
9570
|
-
treeValues: { ...T, id:
|
|
9567
|
+
values: { ...T, id: E },
|
|
9568
|
+
treeValues: { ...T, id: E }
|
|
9571
9569
|
});
|
|
9572
9570
|
}
|
|
9573
9571
|
s(b), g || p(!1);
|
|
@@ -9690,25 +9688,25 @@ const mh = ({
|
|
|
9690
9688
|
...xo
|
|
9691
9689
|
},
|
|
9692
9690
|
s
|
|
9693
|
-
), [s, o]),
|
|
9691
|
+
), [s, o]), E = D(
|
|
9694
9692
|
async ({
|
|
9695
9693
|
startRow: $,
|
|
9696
9694
|
endRow: M,
|
|
9697
9695
|
sortFields: W
|
|
9698
9696
|
}) => {
|
|
9699
|
-
const { results: B, colors:
|
|
9697
|
+
const { results: B, colors: V, status: Z } = await a({
|
|
9700
9698
|
allItems: A.current,
|
|
9701
9699
|
startRow: $,
|
|
9702
9700
|
endRow: M,
|
|
9703
9701
|
sortFields: W
|
|
9704
9702
|
});
|
|
9705
|
-
return I.current = { ...I.current, ...
|
|
9703
|
+
return I.current = { ...I.current, ...V }, !x.current && Z && (x.current = {}), Z && (x.current = { ...x.current, ...Z }), B;
|
|
9706
9704
|
},
|
|
9707
9705
|
[a]
|
|
9708
9706
|
), F = D(($) => {
|
|
9709
|
-
var M, W, B,
|
|
9707
|
+
var M, W, B, V;
|
|
9710
9708
|
if (I.current[(W = (M = $.node) == null ? void 0 : M.data) == null ? void 0 : W.id])
|
|
9711
|
-
return { color: I.current[(
|
|
9709
|
+
return { color: I.current[(V = (B = $.node) == null ? void 0 : B.data) == null ? void 0 : V.id] };
|
|
9712
9710
|
}, []), { loading: O, getColumnState: k, updateColumnState: _ } = Bs(
|
|
9713
9711
|
hh({
|
|
9714
9712
|
...h,
|
|
@@ -9721,7 +9719,7 @@ const mh = ({
|
|
|
9721
9719
|
ref: w,
|
|
9722
9720
|
height: t || gh,
|
|
9723
9721
|
columns: b,
|
|
9724
|
-
onRequestData:
|
|
9722
|
+
onRequestData: E,
|
|
9725
9723
|
onRowDoubleClick: n,
|
|
9726
9724
|
showPointerCursorInRows: y,
|
|
9727
9725
|
readonly: r,
|
|
@@ -9778,7 +9776,7 @@ const mh = ({
|
|
|
9778
9776
|
fieldName: y
|
|
9779
9777
|
}), {
|
|
9780
9778
|
treeOoui: b,
|
|
9781
|
-
onTreeFetchRows:
|
|
9779
|
+
onTreeFetchRows: E,
|
|
9782
9780
|
selectedRowKeys: F,
|
|
9783
9781
|
setSelectedRowKeys: O,
|
|
9784
9782
|
onChangeFirstVisibleRowIndex: k,
|
|
@@ -9798,7 +9796,7 @@ const mh = ({
|
|
|
9798
9796
|
}), W = oe(() => {
|
|
9799
9797
|
const { title: ue } = s.get(c) || {};
|
|
9800
9798
|
return ue || o.label;
|
|
9801
|
-
}, [c, o.label, s]), B = o.type === "many2many",
|
|
9799
|
+
}, [c, o.label, s]), B = o.type === "many2many", V = D(
|
|
9802
9800
|
(ue) => {
|
|
9803
9801
|
var Fe, q;
|
|
9804
9802
|
r == null || r({
|
|
@@ -9818,7 +9816,7 @@ const mh = ({
|
|
|
9818
9816
|
treeView: s.get("tree"),
|
|
9819
9817
|
relation: h,
|
|
9820
9818
|
context: T,
|
|
9821
|
-
triggerChange:
|
|
9819
|
+
triggerChange: V
|
|
9822
9820
|
}), {
|
|
9823
9821
|
showFormModal: ie,
|
|
9824
9822
|
modalItem: ee,
|
|
@@ -9832,7 +9830,7 @@ const mh = ({
|
|
|
9832
9830
|
inv_field: o.inv_field,
|
|
9833
9831
|
showFormChangesDialogIfNeeded: z,
|
|
9834
9832
|
currentView: c,
|
|
9835
|
-
triggerChange:
|
|
9833
|
+
triggerChange: V,
|
|
9836
9834
|
items: l,
|
|
9837
9835
|
setCurrentView: u,
|
|
9838
9836
|
setItemIndex: d,
|
|
@@ -9847,7 +9845,7 @@ const mh = ({
|
|
|
9847
9845
|
} = ph({
|
|
9848
9846
|
showFormChangesDialogIfNeeded: z,
|
|
9849
9847
|
currentView: c,
|
|
9850
|
-
triggerChange:
|
|
9848
|
+
triggerChange: V,
|
|
9851
9849
|
items: l,
|
|
9852
9850
|
views: s,
|
|
9853
9851
|
context: T,
|
|
@@ -9855,7 +9853,7 @@ const mh = ({
|
|
|
9855
9853
|
}), { showRemoveConfirm: je } = uh({
|
|
9856
9854
|
isMany2many: B,
|
|
9857
9855
|
items: l,
|
|
9858
|
-
triggerChange:
|
|
9856
|
+
triggerChange: V,
|
|
9859
9857
|
setFormHasChanges: U,
|
|
9860
9858
|
selectedRowKeys: F,
|
|
9861
9859
|
setSelectedRowKeys: O
|
|
@@ -9919,7 +9917,7 @@ const mh = ({
|
|
|
9919
9917
|
height: o.height,
|
|
9920
9918
|
items: l,
|
|
9921
9919
|
readOnly: p || !1,
|
|
9922
|
-
onFetchRecords:
|
|
9920
|
+
onFetchRecords: E,
|
|
9923
9921
|
ooui: b,
|
|
9924
9922
|
context: T,
|
|
9925
9923
|
onRowDoubleClick: ke,
|
|
@@ -10106,7 +10104,7 @@ function Fa(e) {
|
|
|
10106
10104
|
overflowX: "hidden",
|
|
10107
10105
|
overflowY: "auto"
|
|
10108
10106
|
},
|
|
10109
|
-
children: (t.label || o) && n ? /* @__PURE__ */ i(
|
|
10107
|
+
children: (t.label || o) && n ? /* @__PURE__ */ i(Vl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
|
|
10110
10108
|
Gr,
|
|
10111
10109
|
{
|
|
10112
10110
|
tip: s("loading"),
|
|
@@ -10156,7 +10154,7 @@ function Fh(e) {
|
|
|
10156
10154
|
const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
|
|
10157
10155
|
const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Rh(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(He), { elementHasLostFocus: f } = u || {};
|
|
10158
10156
|
return /* @__PURE__ */ i(_e, { required: o, ...e, children: a ? /* @__PURE__ */ i(
|
|
10159
|
-
|
|
10157
|
+
Eh,
|
|
10160
10158
|
{
|
|
10161
10159
|
field: n,
|
|
10162
10160
|
height: s,
|
|
@@ -10176,7 +10174,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
|
|
|
10176
10174
|
onBlur: f
|
|
10177
10175
|
}
|
|
10178
10176
|
) });
|
|
10179
|
-
},
|
|
10177
|
+
}, Eh = ({
|
|
10180
10178
|
value: e,
|
|
10181
10179
|
field: t,
|
|
10182
10180
|
requiredStyle: n,
|
|
@@ -10266,7 +10264,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
|
|
|
10266
10264
|
}
|
|
10267
10265
|
) })
|
|
10268
10266
|
] });
|
|
10269
|
-
},
|
|
10267
|
+
}, Vh = (e) => {
|
|
10270
10268
|
const { ooui: t } = e, { label: n, icon: r } = t, o = ft(r || "");
|
|
10271
10269
|
return /* @__PURE__ */ i(Qn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ P(Xe, { children: [
|
|
10272
10270
|
o ? /* @__PURE__ */ i(o, {}) : null,
|
|
@@ -10702,7 +10700,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
|
|
|
10702
10700
|
function ki(e) {
|
|
10703
10701
|
return e ? (_r == null ? void 0 : _r[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
|
|
10704
10702
|
}
|
|
10705
|
-
function
|
|
10703
|
+
function Eo(e) {
|
|
10706
10704
|
const {
|
|
10707
10705
|
currentView: t,
|
|
10708
10706
|
availableViews: n,
|
|
@@ -10811,7 +10809,7 @@ function it(e) {
|
|
|
10811
10809
|
);
|
|
10812
10810
|
}
|
|
10813
10811
|
const _a = (e) => /* @__PURE__ */ i(it, { ...e, type: "primary", danger: !0 });
|
|
10814
|
-
function
|
|
10812
|
+
function Ea(e) {
|
|
10815
10813
|
const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
|
|
10816
10814
|
lt
|
|
10817
10815
|
), { t: o } = fe(), s = () => {
|
|
@@ -10837,7 +10835,7 @@ function Va(e) {
|
|
|
10837
10835
|
}
|
|
10838
10836
|
);
|
|
10839
10837
|
}
|
|
10840
|
-
async function
|
|
10838
|
+
async function Va(e, t, n) {
|
|
10841
10839
|
const r = (await N.getHandler().getLogInfo({
|
|
10842
10840
|
model: e,
|
|
10843
10841
|
ids: [t]
|
|
@@ -10883,7 +10881,7 @@ const Qh = (e) => {
|
|
|
10883
10881
|
items: n.map((d) => {
|
|
10884
10882
|
const p = d.link ? Lo : no, h = /* @__PURE__ */ P(Me, { wrap: !1, align: "middle", gutter: 8, children: [
|
|
10885
10883
|
/* @__PURE__ */ i(Ce, { style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ i(
|
|
10886
|
-
|
|
10884
|
+
Vt,
|
|
10887
10885
|
{
|
|
10888
10886
|
title: d.link ? c("openAttachmentLink") : c("download"),
|
|
10889
10887
|
children: /* @__PURE__ */ i(
|
|
@@ -10898,7 +10896,7 @@ const Qh = (e) => {
|
|
|
10898
10896
|
)
|
|
10899
10897
|
}
|
|
10900
10898
|
) }),
|
|
10901
|
-
/* @__PURE__ */ i(Ce, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(
|
|
10899
|
+
/* @__PURE__ */ i(Ce, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(Vt, { title: c("openAttachment"), children: /* @__PURE__ */ i(
|
|
10902
10900
|
xn,
|
|
10903
10901
|
{
|
|
10904
10902
|
style: { cursor: "pointer" },
|
|
@@ -11158,12 +11156,12 @@ function eg({ toolbar: e }) {
|
|
|
11158
11156
|
formIsLoading: T,
|
|
11159
11157
|
attachments: R,
|
|
11160
11158
|
formRef: b,
|
|
11161
|
-
setFormHasChanges:
|
|
11159
|
+
setFormHasChanges: E,
|
|
11162
11160
|
previousView: F,
|
|
11163
11161
|
setPreviousView: O,
|
|
11164
11162
|
goToResourceId: k,
|
|
11165
11163
|
isActive: _
|
|
11166
|
-
} = vo(), { processAction: $ } = t || {}, { openRelate: M, openDefaultActionForModel: W } = n || {}, B = d || I || T || x,
|
|
11164
|
+
} = vo(), { processAction: $ } = t || {}, { openRelate: M, openDefaultActionForModel: W } = n || {}, B = d || I || T || x, V = D(
|
|
11167
11165
|
(U) => {
|
|
11168
11166
|
f ? hn({ t: r, onOk: U }) : U();
|
|
11169
11167
|
},
|
|
@@ -11224,14 +11222,14 @@ function eg({ toolbar: e }) {
|
|
|
11224
11222
|
);
|
|
11225
11223
|
return Lt(
|
|
11226
11224
|
"pagedown",
|
|
11227
|
-
() => _ &&
|
|
11225
|
+
() => _ && V(o),
|
|
11228
11226
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
11229
|
-
[_,
|
|
11227
|
+
[_, V, o]
|
|
11230
11228
|
), Lt(
|
|
11231
11229
|
"pageup",
|
|
11232
|
-
() => _ &&
|
|
11230
|
+
() => _ && V(s),
|
|
11233
11231
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
11234
|
-
[_,
|
|
11232
|
+
[_, V, s]
|
|
11235
11233
|
), Lt(
|
|
11236
11234
|
"ctrl+s,command+s",
|
|
11237
11235
|
() => _ && (u == null ? void 0 : u()),
|
|
@@ -11250,7 +11248,7 @@ function eg({ toolbar: e }) {
|
|
|
11250
11248
|
Xt(),
|
|
11251
11249
|
Xt()
|
|
11252
11250
|
] }),
|
|
11253
|
-
/* @__PURE__ */ i(
|
|
11251
|
+
/* @__PURE__ */ i(Ea, { disabled: B }),
|
|
11254
11252
|
/* @__PURE__ */ i(
|
|
11255
11253
|
it,
|
|
11256
11254
|
{
|
|
@@ -11296,7 +11294,7 @@ function eg({ toolbar: e }) {
|
|
|
11296
11294
|
icon: /* @__PURE__ */ i(ts, {}),
|
|
11297
11295
|
tooltip: r("showLogs"),
|
|
11298
11296
|
disabled: B || p === void 0,
|
|
11299
|
-
onClick: () =>
|
|
11297
|
+
onClick: () => Va(v, p, r)
|
|
11300
11298
|
}
|
|
11301
11299
|
),
|
|
11302
11300
|
/* @__PURE__ */ i(
|
|
@@ -11305,18 +11303,18 @@ function eg({ toolbar: e }) {
|
|
|
11305
11303
|
icon: /* @__PURE__ */ i(ir, {}),
|
|
11306
11304
|
tooltip: r("refresh"),
|
|
11307
11305
|
disabled: B || p === void 0,
|
|
11308
|
-
onClick: () =>
|
|
11306
|
+
onClick: () => V(() => b.current.fetchValues())
|
|
11309
11307
|
}
|
|
11310
11308
|
),
|
|
11311
11309
|
Xt(),
|
|
11312
11310
|
/* @__PURE__ */ i(
|
|
11313
|
-
|
|
11311
|
+
Eo,
|
|
11314
11312
|
{
|
|
11315
11313
|
currentView: l,
|
|
11316
11314
|
previousView: F,
|
|
11317
11315
|
availableViews: a,
|
|
11318
11316
|
onChangeView: (U) => {
|
|
11319
|
-
O == null || O(l),
|
|
11317
|
+
O == null || O(l), E == null || E(!1), c == null || c(U);
|
|
11320
11318
|
},
|
|
11321
11319
|
disabled: B,
|
|
11322
11320
|
formHasChanges: f
|
|
@@ -11330,7 +11328,7 @@ function eg({ toolbar: e }) {
|
|
|
11330
11328
|
icon: /* @__PURE__ */ i(Zi, {}),
|
|
11331
11329
|
tooltip: r("previous"),
|
|
11332
11330
|
disabled: B,
|
|
11333
|
-
onClick: () =>
|
|
11331
|
+
onClick: () => V(s)
|
|
11334
11332
|
}
|
|
11335
11333
|
),
|
|
11336
11334
|
/* @__PURE__ */ i(
|
|
@@ -11339,7 +11337,7 @@ function eg({ toolbar: e }) {
|
|
|
11339
11337
|
icon: /* @__PURE__ */ i(es, {}),
|
|
11340
11338
|
tooltip: r("next"),
|
|
11341
11339
|
disabled: B,
|
|
11342
|
-
onClick: () =>
|
|
11340
|
+
onClick: () => V(o)
|
|
11343
11341
|
}
|
|
11344
11342
|
)
|
|
11345
11343
|
] }),
|
|
@@ -11680,7 +11678,7 @@ function sg({ refreshGraph: e }) {
|
|
|
11680
11678
|
}
|
|
11681
11679
|
),
|
|
11682
11680
|
/* @__PURE__ */ i(
|
|
11683
|
-
|
|
11681
|
+
Eo,
|
|
11684
11682
|
{
|
|
11685
11683
|
currentView: r,
|
|
11686
11684
|
availableViews: n,
|
|
@@ -11818,7 +11816,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
|
|
|
11818
11816
|
limit: T,
|
|
11819
11817
|
setLimit: R,
|
|
11820
11818
|
searchParams: b,
|
|
11821
|
-
searchValues:
|
|
11819
|
+
searchValues: E,
|
|
11822
11820
|
setSearchValues: F,
|
|
11823
11821
|
currentView: O
|
|
11824
11822
|
} = u || {}, [k, _] = C(!0);
|
|
@@ -11828,7 +11826,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
|
|
|
11828
11826
|
}, [b]), ae(() => {
|
|
11829
11827
|
t.view_id !== O.view_id && _(!0);
|
|
11830
11828
|
}, [O]);
|
|
11831
|
-
const { clear: $, searchFilterLoading: M, searchError: W, offset: B, tableRefreshing:
|
|
11829
|
+
const { clear: $, searchFilterLoading: M, searchError: W, offset: B, tableRefreshing: V } = ba({
|
|
11832
11830
|
model: r,
|
|
11833
11831
|
setSearchTreeNameSearch: S,
|
|
11834
11832
|
setSelectedRowItems: m,
|
|
@@ -11877,11 +11875,11 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
|
|
|
11877
11875
|
},
|
|
11878
11876
|
searchError: W,
|
|
11879
11877
|
searchVisible: y,
|
|
11880
|
-
searchValues:
|
|
11878
|
+
searchValues: E,
|
|
11881
11879
|
showLimitOptions: !1
|
|
11882
11880
|
}
|
|
11883
11881
|
),
|
|
11884
|
-
|
|
11882
|
+
V ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(
|
|
11885
11883
|
mn,
|
|
11886
11884
|
{
|
|
11887
11885
|
ref: c,
|
|
@@ -11951,7 +11949,7 @@ function ug(e) {
|
|
|
11951
11949
|
l(f.target.value.length > 0);
|
|
11952
11950
|
},
|
|
11953
11951
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
11954
|
-
suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(
|
|
11952
|
+
suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Vt, { title: o("clear"), children: /* @__PURE__ */ i(
|
|
11955
11953
|
Al,
|
|
11956
11954
|
{
|
|
11957
11955
|
style: { color: "rgba(0,0,0,.45)" },
|
|
@@ -11999,11 +11997,11 @@ function fg(e) {
|
|
|
11999
11997
|
totalItems: T,
|
|
12000
11998
|
isActive: R,
|
|
12001
11999
|
isInfiniteTree: b
|
|
12002
|
-
} = ne(lt), { parentContext:
|
|
12000
|
+
} = ne(lt), { parentContext: E = {}, treeExpandable: F, toolbar: O } = e, k = fr(
|
|
12003
12001
|
pn.FEATURE_ADVANCED_EXPORT
|
|
12004
12002
|
), { t: _ } = fe(), $ = ne(
|
|
12005
12003
|
gn
|
|
12006
|
-
), { processAction: M } = $ || {}, [W, B] = C(!1),
|
|
12004
|
+
), { processAction: M } = $ || {}, [W, B] = C(!1), V = Y(!0);
|
|
12007
12005
|
Lt(
|
|
12008
12006
|
"ctrl+l,command+l",
|
|
12009
12007
|
() => {
|
|
@@ -12021,8 +12019,8 @@ function fg(e) {
|
|
|
12021
12019
|
), ae(() => {
|
|
12022
12020
|
var G;
|
|
12023
12021
|
if (b && v === void 0) {
|
|
12024
|
-
if (
|
|
12025
|
-
|
|
12022
|
+
if (V.current) {
|
|
12023
|
+
V.current = !1;
|
|
12026
12024
|
return;
|
|
12027
12025
|
}
|
|
12028
12026
|
(G = f == null ? void 0 : f.current) == null || G.refreshResults();
|
|
@@ -12053,7 +12051,7 @@ function fg(e) {
|
|
|
12053
12051
|
s == null || s(!0), await N.getHandler().deleteObjects({
|
|
12054
12052
|
model: u,
|
|
12055
12053
|
ids: o.map((L) => L.id),
|
|
12056
|
-
context: { ...
|
|
12054
|
+
context: { ...E }
|
|
12057
12055
|
}), d == null || d(void 0), p == null || p(void 0), (G = f == null ? void 0 : f.current) == null || G.refreshResults();
|
|
12058
12056
|
} catch (L) {
|
|
12059
12057
|
st(L);
|
|
@@ -12069,7 +12067,7 @@ function fg(e) {
|
|
|
12069
12067
|
await N.getHandler().duplicate({
|
|
12070
12068
|
id: L,
|
|
12071
12069
|
model: u,
|
|
12072
|
-
context: { ...
|
|
12070
|
+
context: { ...E }
|
|
12073
12071
|
}) && ((G = f == null ? void 0 : f.current) == null || G.refreshResults());
|
|
12074
12072
|
} catch (L) {
|
|
12075
12073
|
st(L);
|
|
@@ -12086,7 +12084,7 @@ function fg(e) {
|
|
|
12086
12084
|
},
|
|
12087
12085
|
fields: {},
|
|
12088
12086
|
context: {
|
|
12089
|
-
...
|
|
12087
|
+
...E,
|
|
12090
12088
|
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
12091
12089
|
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
12092
12090
|
},
|
|
@@ -12133,7 +12131,7 @@ function fg(e) {
|
|
|
12133
12131
|
}
|
|
12134
12132
|
),
|
|
12135
12133
|
Mt(),
|
|
12136
|
-
/* @__PURE__ */ i(
|
|
12134
|
+
/* @__PURE__ */ i(Ea, { disabled: w }),
|
|
12137
12135
|
/* @__PURE__ */ i(
|
|
12138
12136
|
it,
|
|
12139
12137
|
{
|
|
@@ -12164,7 +12162,7 @@ function fg(e) {
|
|
|
12164
12162
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
|
|
12165
12163
|
loading: !1,
|
|
12166
12164
|
onClick: () => {
|
|
12167
|
-
|
|
12165
|
+
Va(u, o[0].id, _);
|
|
12168
12166
|
}
|
|
12169
12167
|
}
|
|
12170
12168
|
),
|
|
@@ -12184,7 +12182,7 @@ function fg(e) {
|
|
|
12184
12182
|
!F && /* @__PURE__ */ P(le, { children: [
|
|
12185
12183
|
Mt(),
|
|
12186
12184
|
/* @__PURE__ */ i(
|
|
12187
|
-
|
|
12185
|
+
Eo,
|
|
12188
12186
|
{
|
|
12189
12187
|
currentView: n,
|
|
12190
12188
|
availableViews: t,
|
|
@@ -12310,7 +12308,7 @@ function fg(e) {
|
|
|
12310
12308
|
totalRegisters: T || 0,
|
|
12311
12309
|
selectedRegistersToExport: o,
|
|
12312
12310
|
visibleRegisters: (S == null ? void 0 : S.length) || 0,
|
|
12313
|
-
context:
|
|
12311
|
+
context: E
|
|
12314
12312
|
}
|
|
12315
12313
|
)
|
|
12316
12314
|
] })
|
|
@@ -12398,10 +12396,10 @@ const mg = (e) => {
|
|
|
12398
12396
|
}
|
|
12399
12397
|
)
|
|
12400
12398
|
] }) : null;
|
|
12401
|
-
},
|
|
12399
|
+
}, Vo = pt.createContext(null), pg = (e) => {
|
|
12402
12400
|
const [t, n] = C(!1), [r, o] = C(!1), { children: s, dashboardRef: a, openAction: l } = e;
|
|
12403
12401
|
return /* @__PURE__ */ i(
|
|
12404
|
-
|
|
12402
|
+
Vo.Provider,
|
|
12405
12403
|
{
|
|
12406
12404
|
value: {
|
|
12407
12405
|
isLoading: t,
|
|
@@ -12416,7 +12414,7 @@ const mg = (e) => {
|
|
|
12416
12414
|
);
|
|
12417
12415
|
};
|
|
12418
12416
|
function hg() {
|
|
12419
|
-
const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(
|
|
12417
|
+
const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(Vo), { t: o } = fe();
|
|
12420
12418
|
return /* @__PURE__ */ P(Xe, { wrap: !0, children: [
|
|
12421
12419
|
/* @__PURE__ */ i(
|
|
12422
12420
|
it,
|
|
@@ -12527,7 +12525,7 @@ function wg(e, t) {
|
|
|
12527
12525
|
limit: y
|
|
12528
12526
|
} = e, [v, w] = C(), [I, x] = C([]), [S, A] = C(!0), T = p || void 0, [R, b] = C(
|
|
12529
12527
|
T
|
|
12530
|
-
), [
|
|
12528
|
+
), [E, F] = C([]), [O, k] = C(), [_, $] = C([]), [M, W] = C(), [B, V] = C(0), [Z, re] = C(!1), [z, U] = C(!1), [ie, ee] = C(), { t: j } = fe(), G = Y(), L = Y(), me = ne(
|
|
12531
12529
|
Ct
|
|
12532
12530
|
), {
|
|
12533
12531
|
setCurrentView: J,
|
|
@@ -12799,8 +12797,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
12799
12797
|
sorter: M,
|
|
12800
12798
|
setSorter: W,
|
|
12801
12799
|
totalItems: B,
|
|
12802
|
-
setTotalItems:
|
|
12803
|
-
selectedRowItems:
|
|
12800
|
+
setTotalItems: V,
|
|
12801
|
+
selectedRowItems: E,
|
|
12804
12802
|
setSelectedRowItems: F,
|
|
12805
12803
|
setSearchTreeNameSearch: ee,
|
|
12806
12804
|
searchTreeNameSearch: ie,
|
|
@@ -12864,10 +12862,10 @@ function Cg(e) {
|
|
|
12864
12862
|
domain: s = [],
|
|
12865
12863
|
visible: a = !0,
|
|
12866
12864
|
parentContext: l = {}
|
|
12867
|
-
} = e, [c, u] = C(!1), [f, d] = C(!1), [p, h] = C(), [m, g] = C(), [y, v] = C(), [w, I] = C(1), [x, S] = C(0), A = Y(Pt), T = Y([]), [R, b] = C(0), [
|
|
12865
|
+
} = e, [c, u] = C(!1), [f, d] = C(!1), [p, h] = C(), [m, g] = C(), [y, v] = C(), [w, I] = C(1), [x, S] = C(0), A = Y(Pt), T = Y([]), [R, b] = C(0), [E, F] = C([]), [O, k] = C(void 0), [_, $] = C(), [M, W] = C(), [B, V] = C(), [Z, re] = C(!1), z = Y([]), U = (Q) => {
|
|
12868
12866
|
re(!0), I(Q), S((Q - 1) * A.current);
|
|
12869
12867
|
}, ie = async () => {
|
|
12870
|
-
const Q = z.current.length > 0 ? z.current : s, te = cn(T.current, Q), { colors: ge } =
|
|
12868
|
+
const Q = z.current.length > 0 ? z.current : s, te = cn(T.current, Q), { colors: ge } = Et(m), { totalItems: Le, results: je, attrsEvaluated: De } = await N.getHandler().searchForTree({
|
|
12871
12869
|
params: te,
|
|
12872
12870
|
limit: A.current,
|
|
12873
12871
|
offset: x,
|
|
@@ -12896,11 +12894,11 @@ function Cg(e) {
|
|
|
12896
12894
|
f && a && ee();
|
|
12897
12895
|
}, [w, x, f, a]);
|
|
12898
12896
|
const j = async (Q) => {
|
|
12899
|
-
d(!1), u(!0),
|
|
12897
|
+
d(!1), u(!0), V(void 0);
|
|
12900
12898
|
try {
|
|
12901
12899
|
Q === "action" ? await G() : await L(), d(!0);
|
|
12902
12900
|
} catch (te) {
|
|
12903
|
-
|
|
12901
|
+
V(te);
|
|
12904
12902
|
} finally {
|
|
12905
12903
|
u(!1);
|
|
12906
12904
|
}
|
|
@@ -12946,7 +12944,7 @@ function Cg(e) {
|
|
|
12946
12944
|
limit: A.current,
|
|
12947
12945
|
page: w,
|
|
12948
12946
|
treeView: m,
|
|
12949
|
-
results:
|
|
12947
|
+
results: E,
|
|
12950
12948
|
onRequestPageChange: U,
|
|
12951
12949
|
loading: Z,
|
|
12952
12950
|
onRowClicked: me,
|
|
@@ -12955,7 +12953,7 @@ function Cg(e) {
|
|
|
12955
12953
|
onChangeSort: (Q) => {
|
|
12956
12954
|
$ == null || $(Q);
|
|
12957
12955
|
const te = on({
|
|
12958
|
-
resultsToSort:
|
|
12956
|
+
resultsToSort: E,
|
|
12959
12957
|
sorter: Q,
|
|
12960
12958
|
fields: { ...m.fields, ...y.fields }
|
|
12961
12959
|
});
|
|
@@ -12981,13 +12979,13 @@ const xg = yt(Cg), Ig = (e) => {
|
|
|
12981
12979
|
s.length > 0 && r(s[0].id);
|
|
12982
12980
|
}
|
|
12983
12981
|
return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(yn, { ...e, model: t, id: n, readOnly: !0 }) });
|
|
12984
|
-
},
|
|
12982
|
+
}, Er = "line_ids";
|
|
12985
12983
|
function Tg(e, t) {
|
|
12986
12984
|
const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = C([]), [c, u] = C(!1), [f, d] = C(), {
|
|
12987
12985
|
setIsLoading: p,
|
|
12988
12986
|
openAction: h,
|
|
12989
12987
|
moveItemsEnabled: m
|
|
12990
|
-
} = ne(
|
|
12988
|
+
} = ne(Vo), g = Y(), y = Y(), [v] = Ye(N.getHandler().getView), [w] = Ye(
|
|
12991
12989
|
N.getHandler().readObjects
|
|
12992
12990
|
), [I] = Ye(N.getHandler().update), x = fr(
|
|
12993
12991
|
pn.FEATURE_READFORVIEW
|
|
@@ -13003,7 +13001,7 @@ function Tg(e, t) {
|
|
|
13003
13001
|
async function S() {
|
|
13004
13002
|
u(!0), p(!0), d(void 0);
|
|
13005
13003
|
try {
|
|
13006
|
-
const O = await A(), k = await R(O), _ = O.fields[
|
|
13004
|
+
const O = await A(), k = await R(O), _ = O.fields[Er].relation, $ = k[Er].items;
|
|
13007
13005
|
y.current = O.fields;
|
|
13008
13006
|
const M = await T({
|
|
13009
13007
|
items: $,
|
|
@@ -13062,13 +13060,13 @@ function Tg(e, t) {
|
|
|
13062
13060
|
const W = parseInt(M.action_id[0], 10), B = xs({
|
|
13063
13061
|
actionId: W,
|
|
13064
13062
|
rootContext: r
|
|
13065
|
-
}).then((
|
|
13063
|
+
}).then((V) => ({ ...$, actionData: V }));
|
|
13066
13064
|
k.push(B);
|
|
13067
13065
|
}
|
|
13068
13066
|
}
|
|
13069
13067
|
return await Promise.all(k);
|
|
13070
13068
|
}
|
|
13071
|
-
async function
|
|
13069
|
+
async function E(O) {
|
|
13072
13070
|
if (!m)
|
|
13073
13071
|
return;
|
|
13074
13072
|
const k = O.filter((W) => {
|
|
@@ -13079,17 +13077,17 @@ function Tg(e, t) {
|
|
|
13079
13077
|
return !1;
|
|
13080
13078
|
if (!B.position)
|
|
13081
13079
|
return !0;
|
|
13082
|
-
const
|
|
13080
|
+
const V = {
|
|
13083
13081
|
...JSON.parse(B.position.replace(/'/g, '"')),
|
|
13084
13082
|
id: B.id
|
|
13085
13083
|
};
|
|
13086
|
-
return JSON.stringify(W) !== JSON.stringify(
|
|
13084
|
+
return JSON.stringify(W) !== JSON.stringify(V);
|
|
13087
13085
|
});
|
|
13088
13086
|
if (k.length === 0)
|
|
13089
13087
|
return;
|
|
13090
13088
|
const $ = a.filter((W) => k.map((B) => B.id).includes(W.id)).map((W) => {
|
|
13091
13089
|
const B = {
|
|
13092
|
-
...k.find((
|
|
13090
|
+
...k.find((V) => V.id === W.id)
|
|
13093
13091
|
};
|
|
13094
13092
|
return delete B.id, { ...W }, {
|
|
13095
13093
|
...W,
|
|
@@ -13106,7 +13104,7 @@ function Tg(e, t) {
|
|
|
13106
13104
|
await I({
|
|
13107
13105
|
model: n,
|
|
13108
13106
|
id: o,
|
|
13109
|
-
values: { [
|
|
13107
|
+
values: { [Er]: M },
|
|
13110
13108
|
fields: y.current,
|
|
13111
13109
|
context: r
|
|
13112
13110
|
});
|
|
@@ -13114,10 +13112,10 @@ function Tg(e, t) {
|
|
|
13114
13112
|
async function F() {
|
|
13115
13113
|
h(s);
|
|
13116
13114
|
}
|
|
13117
|
-
return c ? /* @__PURE__ */ i(St, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sg, { onPositionItemsChanged:
|
|
13115
|
+
return c ? /* @__PURE__ */ i(St, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sg, { onPositionItemsChanged: E, children: a.map((O, k) => {
|
|
13118
13116
|
const { actionData: _, values: $ } = O, { position: M, id: W } = $, {
|
|
13119
13117
|
actionId: B,
|
|
13120
|
-
actionType:
|
|
13118
|
+
actionType: V,
|
|
13121
13119
|
key: Z,
|
|
13122
13120
|
title: re,
|
|
13123
13121
|
views: z,
|
|
@@ -13192,7 +13190,7 @@ function Tg(e, t) {
|
|
|
13192
13190
|
ka,
|
|
13193
13191
|
{
|
|
13194
13192
|
action_id: B,
|
|
13195
|
-
action_type:
|
|
13193
|
+
action_type: V,
|
|
13196
13194
|
tabKey: Z,
|
|
13197
13195
|
title: re,
|
|
13198
13196
|
views: z,
|
|
@@ -13231,7 +13229,7 @@ function Tg(e, t) {
|
|
|
13231
13229
|
};
|
|
13232
13230
|
}
|
|
13233
13231
|
return /* @__PURE__ */ i(
|
|
13234
|
-
|
|
13232
|
+
Es,
|
|
13235
13233
|
{
|
|
13236
13234
|
id: W,
|
|
13237
13235
|
title: re,
|
|
@@ -13273,7 +13271,7 @@ const Ag = wt(Tg), Og = (e) => {
|
|
|
13273
13271
|
R = [...R, ...b];
|
|
13274
13272
|
}
|
|
13275
13273
|
try {
|
|
13276
|
-
const
|
|
13274
|
+
const E = (await N.getHandler().search({
|
|
13277
13275
|
model: p,
|
|
13278
13276
|
params: R,
|
|
13279
13277
|
fieldsToRetrieve: [g],
|
|
@@ -13283,7 +13281,7 @@ const Ag = wt(Tg), Og = (e) => {
|
|
|
13283
13281
|
let k = O;
|
|
13284
13282
|
return Array.isArray(O) && (k = O[1]), { label: k, value: F.id };
|
|
13285
13283
|
});
|
|
13286
|
-
l(
|
|
13284
|
+
l(E);
|
|
13287
13285
|
} catch (b) {
|
|
13288
13286
|
u(b);
|
|
13289
13287
|
} finally {
|
|
@@ -13300,8 +13298,8 @@ const Ag = wt(Tg), Og = (e) => {
|
|
|
13300
13298
|
const b = o.map((F) => R.includes(F.id) ? F.operation == "pendingRemove" ? {
|
|
13301
13299
|
...F,
|
|
13302
13300
|
operation: "original"
|
|
13303
|
-
} : F : { id: F.id, operation: "pendingRemove" }),
|
|
13304
|
-
R.filter((F) => !
|
|
13301
|
+
} : F : { id: F.id, operation: "pendingRemove" }), E = b.map((F) => F.id);
|
|
13302
|
+
R.filter((F) => !E.includes(F)).map((F) => {
|
|
13305
13303
|
b.push({ id: F, operation: "pendingLink" });
|
|
13306
13304
|
}), I(b);
|
|
13307
13305
|
};
|
|
@@ -13347,10 +13345,10 @@ const Ag = wt(Tg), Og = (e) => {
|
|
|
13347
13345
|
)
|
|
13348
13346
|
}
|
|
13349
13347
|
);
|
|
13350
|
-
}, Vg = (e) => {
|
|
13351
|
-
const { ooui: t } = e, { required: n } = t;
|
|
13352
|
-
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Eg, { ...e }) });
|
|
13353
13348
|
}, Eg = (e) => {
|
|
13349
|
+
const { ooui: t } = e, { required: n } = t;
|
|
13350
|
+
return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Vg, { ...e }) });
|
|
13351
|
+
}, Vg = (e) => {
|
|
13354
13352
|
const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
|
|
13355
13353
|
const [f, d] = u;
|
|
13356
13354
|
return /* @__PURE__ */ i($o, { value: f, children: d }, f);
|
|
@@ -13617,30 +13615,30 @@ function ry(e, t) {
|
|
|
13617
13615
|
res_id: R,
|
|
13618
13616
|
domain: b = []
|
|
13619
13617
|
}) {
|
|
13620
|
-
const
|
|
13618
|
+
const E = await N.getHandler().getActionData({
|
|
13621
13619
|
action: x,
|
|
13622
13620
|
context: l
|
|
13623
13621
|
});
|
|
13624
|
-
if (
|
|
13622
|
+
if (E.type === "ir.actions.wizard") {
|
|
13625
13623
|
st("Action type not supported");
|
|
13626
13624
|
return;
|
|
13627
13625
|
}
|
|
13628
13626
|
const [F, O] = x.split(","), k = parseInt(O), _ = jt({
|
|
13629
|
-
context:
|
|
13627
|
+
context: E.context,
|
|
13630
13628
|
values: a,
|
|
13631
13629
|
fields: {}
|
|
13632
|
-
}), $ =
|
|
13633
|
-
domain:
|
|
13630
|
+
}), $ = E.domain ? await N.getHandler().evalDomain({
|
|
13631
|
+
domain: E.domain,
|
|
13634
13632
|
values: a,
|
|
13635
13633
|
context: { ...l, ..._ }
|
|
13636
13634
|
}) : [], {
|
|
13637
13635
|
res_model: M,
|
|
13638
13636
|
views: W,
|
|
13639
13637
|
name: B,
|
|
13640
|
-
target:
|
|
13638
|
+
target: V,
|
|
13641
13639
|
view_type: Z,
|
|
13642
13640
|
limit: re
|
|
13643
|
-
} =
|
|
13641
|
+
} = E, z = Z === "tree", U = [];
|
|
13644
13642
|
for (const ee of W) {
|
|
13645
13643
|
const [j, G] = ee;
|
|
13646
13644
|
if (j)
|
|
@@ -13673,7 +13671,7 @@ function ry(e, t) {
|
|
|
13673
13671
|
model: M,
|
|
13674
13672
|
views: U,
|
|
13675
13673
|
title: B,
|
|
13676
|
-
target:
|
|
13674
|
+
target: V,
|
|
13677
13675
|
initialView: ie,
|
|
13678
13676
|
action_type: F,
|
|
13679
13677
|
action_id: k,
|
|
@@ -13711,14 +13709,14 @@ function ry(e, t) {
|
|
|
13711
13709
|
}) {
|
|
13712
13710
|
const {
|
|
13713
13711
|
res_model: b,
|
|
13714
|
-
context:
|
|
13712
|
+
context: E,
|
|
13715
13713
|
domain: F,
|
|
13716
13714
|
views: O,
|
|
13717
13715
|
target: k,
|
|
13718
13716
|
string: _,
|
|
13719
13717
|
limit: $
|
|
13720
|
-
} = x, [M, W] = O[0], B = { id: M, type: W },
|
|
13721
|
-
context:
|
|
13718
|
+
} = x, [M, W] = O[0], B = { id: M, type: W }, V = jt({
|
|
13719
|
+
context: E,
|
|
13722
13720
|
values: { ...A, ...a },
|
|
13723
13721
|
fields: S
|
|
13724
13722
|
}), Z = F ? await N.getHandler().evalDomain({
|
|
@@ -13728,13 +13726,13 @@ function ry(e, t) {
|
|
|
13728
13726
|
values: { ...A, ...a }
|
|
13729
13727
|
}),
|
|
13730
13728
|
fields: S,
|
|
13731
|
-
context: { ...l, ...
|
|
13729
|
+
context: { ...l, ...V }
|
|
13732
13730
|
}) : [];
|
|
13733
13731
|
I({
|
|
13734
13732
|
model: b,
|
|
13735
13733
|
target: k,
|
|
13736
13734
|
views: O,
|
|
13737
|
-
context: { ...l, ...
|
|
13735
|
+
context: { ...l, ...V },
|
|
13738
13736
|
domain: Z,
|
|
13739
13737
|
title: _,
|
|
13740
13738
|
initialView: B,
|
|
@@ -13750,27 +13748,27 @@ function ry(e, t) {
|
|
|
13750
13748
|
res_id: T,
|
|
13751
13749
|
view_id: R,
|
|
13752
13750
|
overrideUnsettedLimit: b = !1,
|
|
13753
|
-
values:
|
|
13751
|
+
values: E = {},
|
|
13754
13752
|
domain: F
|
|
13755
13753
|
} = x, O = `${A},${S}`, k = await N.getHandler().getActionData({
|
|
13756
13754
|
action: O,
|
|
13757
13755
|
context: l
|
|
13758
13756
|
}), _ = jt({
|
|
13759
13757
|
context: k.context,
|
|
13760
|
-
values: { ...a, ...
|
|
13758
|
+
values: { ...a, ...E },
|
|
13761
13759
|
fields: {}
|
|
13762
13760
|
});
|
|
13763
13761
|
let $ = [];
|
|
13764
13762
|
(F == null ? void 0 : F.length) > 0 ? $ = F : k.domain && ($ = await N.getHandler().evalDomain({
|
|
13765
13763
|
domain: k.domain,
|
|
13766
|
-
values: { ...a, ...
|
|
13764
|
+
values: { ...a, ...E },
|
|
13767
13765
|
context: { ...l, ..._ }
|
|
13768
13766
|
}));
|
|
13769
13767
|
const {
|
|
13770
13768
|
res_model: M,
|
|
13771
13769
|
views: W,
|
|
13772
13770
|
name: B,
|
|
13773
|
-
target:
|
|
13771
|
+
target: V,
|
|
13774
13772
|
view_type: Z,
|
|
13775
13773
|
limit: re
|
|
13776
13774
|
} = k, z = Z === "tree", U = [];
|
|
@@ -13803,7 +13801,7 @@ function ry(e, t) {
|
|
|
13803
13801
|
model: M,
|
|
13804
13802
|
views: U,
|
|
13805
13803
|
title: B,
|
|
13806
|
-
target:
|
|
13804
|
+
target: V,
|
|
13807
13805
|
initialView: j,
|
|
13808
13806
|
action_id: S,
|
|
13809
13807
|
action_type: A,
|
|
@@ -13820,9 +13818,9 @@ function ry(e, t) {
|
|
|
13820
13818
|
res_id: R,
|
|
13821
13819
|
domain: b
|
|
13822
13820
|
}) {
|
|
13823
|
-
const
|
|
13821
|
+
const E = await N.getHandler().getActionStringForModel(x);
|
|
13824
13822
|
await m({
|
|
13825
|
-
action:
|
|
13823
|
+
action: E,
|
|
13826
13824
|
values: S,
|
|
13827
13825
|
forced_values: A,
|
|
13828
13826
|
initialViewType: T,
|
|
@@ -13837,7 +13835,7 @@ function ry(e, t) {
|
|
|
13837
13835
|
views: T,
|
|
13838
13836
|
title: R,
|
|
13839
13837
|
target: b,
|
|
13840
|
-
initialView:
|
|
13838
|
+
initialView: E,
|
|
13841
13839
|
action_id: F,
|
|
13842
13840
|
action_type: O,
|
|
13843
13841
|
res_id: k,
|
|
@@ -13848,26 +13846,26 @@ function ry(e, t) {
|
|
|
13848
13846
|
}) {
|
|
13849
13847
|
const B = uo();
|
|
13850
13848
|
if (b !== "current") {
|
|
13851
|
-
const
|
|
13849
|
+
const V = await N.getHandler().getView({
|
|
13852
13850
|
model: A,
|
|
13853
13851
|
type: "form",
|
|
13854
|
-
id:
|
|
13852
|
+
id: E.type === "form" ? E.id : void 0,
|
|
13855
13853
|
context: { ...l, ...S }
|
|
13856
13854
|
});
|
|
13857
13855
|
d.current.openActionModal({
|
|
13858
13856
|
domain: x,
|
|
13859
13857
|
model: A,
|
|
13860
|
-
formView:
|
|
13858
|
+
formView: V,
|
|
13861
13859
|
context: { ...l, ...S },
|
|
13862
13860
|
actionData: {
|
|
13863
13861
|
action_id: F,
|
|
13864
13862
|
action_type: O,
|
|
13865
13863
|
res_id: k,
|
|
13866
|
-
view_id:
|
|
13864
|
+
view_id: V.view_id
|
|
13867
13865
|
}
|
|
13868
13866
|
});
|
|
13869
13867
|
} else {
|
|
13870
|
-
const
|
|
13868
|
+
const V = E && Array.isArray(E.id) ? { ...E, id: E.id[0] } : E;
|
|
13871
13869
|
g({
|
|
13872
13870
|
title: R,
|
|
13873
13871
|
action: {
|
|
@@ -13886,7 +13884,7 @@ function ry(e, t) {
|
|
|
13886
13884
|
context: { ...l, ...S },
|
|
13887
13885
|
domain: x,
|
|
13888
13886
|
setCanWeClose: h,
|
|
13889
|
-
initialView:
|
|
13887
|
+
initialView: V,
|
|
13890
13888
|
res_id: k,
|
|
13891
13889
|
formDefaultValues: _,
|
|
13892
13890
|
formForcedValues: $,
|
|
@@ -14098,7 +14096,7 @@ const { useToken: ly } = We, av = (e) => {
|
|
|
14098
14096
|
}))
|
|
14099
14097
|
}
|
|
14100
14098
|
];
|
|
14101
|
-
}, [t, f]),
|
|
14099
|
+
}, [t, f]), E = D(async () => {
|
|
14102
14100
|
if (a && c)
|
|
14103
14101
|
await o(c);
|
|
14104
14102
|
else {
|
|
@@ -14134,12 +14132,12 @@ const { useToken: ly } = We, av = (e) => {
|
|
|
14134
14132
|
{
|
|
14135
14133
|
ref: p,
|
|
14136
14134
|
isFavourite: a,
|
|
14137
|
-
onToggleFavourite:
|
|
14135
|
+
onToggleFavourite: E,
|
|
14138
14136
|
onItemClick: A,
|
|
14139
14137
|
placement: "bottomRight",
|
|
14140
14138
|
header: /* @__PURE__ */ P("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
|
|
14141
14139
|
/* @__PURE__ */ i("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
|
|
14142
|
-
/* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(
|
|
14140
|
+
/* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(Vt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
|
|
14143
14141
|
ns,
|
|
14144
14142
|
{
|
|
14145
14143
|
style: { color: d.colorPrimary, cursor: "pointer" },
|
|
@@ -14185,7 +14183,7 @@ export {
|
|
|
14185
14183
|
Th as FloatTime,
|
|
14186
14184
|
yn as Form,
|
|
14187
14185
|
vn as FormModal,
|
|
14188
|
-
|
|
14186
|
+
Es as GraphCard,
|
|
14189
14187
|
Cd as GraphIndicator,
|
|
14190
14188
|
Fa as Group,
|
|
14191
14189
|
Yg as HTMLPreview,
|
|
@@ -14198,14 +14196,14 @@ export {
|
|
|
14198
14196
|
Fh as Notebook,
|
|
14199
14197
|
Ch as One2many,
|
|
14200
14198
|
Tu as ProgressBar,
|
|
14201
|
-
|
|
14199
|
+
Eg as Radio,
|
|
14202
14200
|
Kh as Reference,
|
|
14203
14201
|
ov as RootView,
|
|
14204
14202
|
Ro as SearchFilter,
|
|
14205
14203
|
_o as SearchModal,
|
|
14206
14204
|
Sa as SearchTree,
|
|
14207
14205
|
hs as Selection,
|
|
14208
|
-
|
|
14206
|
+
Vh as Separator,
|
|
14209
14207
|
Gr as Spinner,
|
|
14210
14208
|
kg as Steps,
|
|
14211
14209
|
Dg as Switch,
|