@gisce/react-ooui 2.115.0-alpha.15 → 2.115.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -3,9 +3,9 @@ var Ud = (t, e, n) => e in t ? jd(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var wi = (t, e, n) => (Ud(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import { jsx as s, jsxs as U, Fragment as Fe } from "react/jsx-runtime";
|
|
5
5
|
import an, { useContext as Re, useState as _, useEffect as me, useRef as Q, memo as it, useCallback as x, useMemo as K, forwardRef as Ht, useImperativeHandle as Yt, Fragment as Yn, createContext as Wd, createElement as qd } from "react";
|
|
6
|
-
import { Tooltip as Wt, theme as at, Typography as Kt, Form as Ft, Row as lt, Col as Je, Modal as Pt, Button as Qe, Dropdown as
|
|
7
|
-
import { Label as pr, Field as
|
|
8
|
-
import au, { QuestionCircleOutlined as Za, ExclamationCircleOutlined as
|
|
6
|
+
import { Tooltip as Wt, theme as at, Typography as Kt, Form as Ft, Row as lt, Col as Je, Modal as Pt, Button as Qe, Dropdown as Es, Menu as Ba, Space as yt, Spin as ct, Divider as jr, Input as Tt, Select as cn, Checkbox as Or, Empty as lr, Alert as Lt, Timeline as Ha, Progress as ja, Badge as zn, message as Ci, Popover as Yd, Avatar as Os, Tag as Ds, ColorPicker as Ua, DatePicker as zd, TimePicker as Gd, InputNumber as Ur, Layout as Wa, Pagination as Kd, Statistic as Jd, Card as Wr, QRCode as Qd, Tabs as qa, Mentions as Xd, Radio as xi, Switch as Zd, Steps as Si, Carousel as eu } from "antd";
|
|
7
|
+
import { Label as pr, Field as cs, Tree as Ya, Tags as Ti, Reference as Ai, Selection as uo, Many2one as Co, Boolean as tu, parseContext as Fn, parseContextFields as nu, parseDomainFields as ru, transformDomainForChildWidget as xo, graphProcessor as za, graphFieldUtils as ou, Integer as ds, SearchFieldTypes as Rn, SearchFilter as Ga, parseGraph as Ka, Container as su, Form as Ja, KanbanCard as iu, Button as Qa, Kanban as Xa } from "@gisce/ooui";
|
|
8
|
+
import au, { QuestionCircleOutlined as Za, ExclamationCircleOutlined as So, LoadingOutlined as zt, DownOutlined as qr, CloseOutlined as xn, CheckOutlined as hr, TranslationOutlined as el, ExportOutlined as fo, ThunderboltOutlined as To, PrinterOutlined as Ao, EnterOutlined as _o, SearchOutlined as gr, PlusOutlined as Dr, FolderOpenOutlined as Ms, DownloadOutlined as ks, ClearOutlined as yr, FormOutlined as Mr, TableOutlined as Ns, AreaChartOutlined as lu, CalendarOutlined as cu, BorderOuterOutlined as tl, FileAddOutlined as Io, CloseCircleFilled as du, FilterOutlined as rr, EditOutlined as $s, CopyOutlined as Yr, DeleteOutlined as Ps, InfoCircleOutlined as Ro, ReloadOutlined as Fo, SaveOutlined as us, UpOutlined as uu, PlusSquareOutlined as nl, MinusSquareOutlined as rl, StarFilled as fu, StarOutlined as mu, LeftOutlined as ol, RightOutlined as sl, ApiOutlined as pu, AlignLeftOutlined as hu, EyeOutlined as gu, LinkOutlined as _i, MessageOutlined as yu, SendOutlined as vu, SettingOutlined as bu, EllipsisOutlined as wu } from "@ant-design/icons";
|
|
9
9
|
import { Interweave as gn } from "interweave";
|
|
10
10
|
import st from "dayjs";
|
|
11
11
|
import { default as Px } from "dayjs";
|
|
@@ -25,7 +25,7 @@ import ll from "lodash/debounce";
|
|
|
25
25
|
import { useDeepCompareEffect as Ge, useDeepCompareCallback as ft, useDeepCompareMemo as wt } from "use-deep-compare";
|
|
26
26
|
import { nanoid as Vs } from "nanoid";
|
|
27
27
|
import { generate as Wu } from "@ant-design/colors";
|
|
28
|
-
import
|
|
28
|
+
import fs from "antd/lib/typography/Title";
|
|
29
29
|
import { Line as qu, Column as Yu, Pie as zu } from "@ant-design/plots";
|
|
30
30
|
import { createRoot as cl } from "react-dom/client";
|
|
31
31
|
import { fileTypeFromBuffer as Gu } from "file-type-buffer-browser";
|
|
@@ -46,10 +46,10 @@ import of from "@monaco-editor/react";
|
|
|
46
46
|
import sf from "md5";
|
|
47
47
|
import { WidthProvider as af, Responsive as lf } from "react-grid-layout";
|
|
48
48
|
import "react-grid-layout/css/styles.css";
|
|
49
|
-
import { useDroppable as cf, useSensors as ml, useSensor as
|
|
49
|
+
import { useDroppable as cf, useSensors as ml, useSensor as ms, PointerSensor as pl, DndContext as hl, DragOverlay as df, pointerWithin as uf, closestCenter as gl, KeyboardSensor as ff } from "@dnd-kit/core";
|
|
50
50
|
import { restrictToHorizontalAxis as mf } from "@dnd-kit/modifiers";
|
|
51
51
|
import { useSortable as yl, SortableContext as vl, verticalListSortingStrategy as pf, sortableKeyboardCoordinates as hf, horizontalListSortingStrategy as gf } from "@dnd-kit/sortable";
|
|
52
|
-
import { AnimatePresence as bl, motion as
|
|
52
|
+
import { AnimatePresence as bl, motion as ps } from "framer-motion";
|
|
53
53
|
import { useVirtualizer as yf } from "@tanstack/react-virtual";
|
|
54
54
|
import vf from "focus-trap-react";
|
|
55
55
|
const dt = an.createContext(null), bf = (t) => {
|
|
@@ -378,7 +378,7 @@ const { Text: Mf, Title: kf } = Kt, { useToken: Nf } = at, $f = {
|
|
|
378
378
|
left: "justify-start",
|
|
379
379
|
center: "justify-center",
|
|
380
380
|
right: "justify-end"
|
|
381
|
-
},
|
|
381
|
+
}, Eo = (t) => {
|
|
382
382
|
const { ooui: e, align: n, responsiveBehaviour: r } = t, { label: o, tooltip: i, fieldForLabel: a, labelSize: c, labelType: l } = e, d = Re(dt);
|
|
383
383
|
let u = a !== null && o.length > 1 ? o + " :" : o, m = "";
|
|
384
384
|
if (!e.fieldForLabel && e._id) {
|
|
@@ -453,7 +453,7 @@ function Ze({
|
|
|
453
453
|
if (!o)
|
|
454
454
|
return F();
|
|
455
455
|
const S = /* @__PURE__ */ s(
|
|
456
|
-
|
|
456
|
+
Eo,
|
|
457
457
|
{
|
|
458
458
|
ooui: new pr({
|
|
459
459
|
name: d + "_label",
|
|
@@ -481,7 +481,7 @@ const { confirm: Pf } = Pt, un = ({
|
|
|
481
481
|
}) => {
|
|
482
482
|
Pf({
|
|
483
483
|
title: o("confirmation"),
|
|
484
|
-
icon: /* @__PURE__ */ s(
|
|
484
|
+
icon: /* @__PURE__ */ s(So, {}),
|
|
485
485
|
centered: !0,
|
|
486
486
|
content: e,
|
|
487
487
|
okText: n || o("ok"),
|
|
@@ -575,8 +575,8 @@ const { confirm: Pf } = Pt, un = ({
|
|
|
575
575
|
if (e.buttons.length === 0)
|
|
576
576
|
return null;
|
|
577
577
|
if (e.buttons.length > 1)
|
|
578
|
-
return /* @__PURE__ */ s(Ze, { ooui: new
|
|
579
|
-
|
|
578
|
+
return /* @__PURE__ */ s(Ze, { ooui: new cs({ defaultButton: n }), children: /* @__PURE__ */ U(
|
|
579
|
+
Es.Button,
|
|
580
580
|
{
|
|
581
581
|
disabled: !a || m,
|
|
582
582
|
onClick: T,
|
|
@@ -665,7 +665,7 @@ function Ri() {
|
|
|
665
665
|
height: e
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Oo() {
|
|
669
669
|
const [t, e] = _(
|
|
670
670
|
Ri()
|
|
671
671
|
);
|
|
@@ -807,7 +807,7 @@ const Al = (t) => {
|
|
|
807
807
|
destroyErrorNotification: n
|
|
808
808
|
};
|
|
809
809
|
}, _l = (t) => {
|
|
810
|
-
const { visible: e, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = t, { modalWidth: c } =
|
|
810
|
+
const { visible: e, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = t, { modalWidth: c } = Oo(), { t: l } = Oe(), [d, f] = _([]), [u, m] = _(!1), [p, g] = _(!1), [h, y] = _({}), b = Q(), { showErrorNotification: v } = At();
|
|
811
811
|
me(() => {
|
|
812
812
|
e ? C() : y({});
|
|
813
813
|
}, [e]);
|
|
@@ -936,11 +936,11 @@ const { info: jf } = Pt, Hn = (t) => {
|
|
|
936
936
|
centered: !0,
|
|
937
937
|
content: t
|
|
938
938
|
});
|
|
939
|
-
}, { useToken: Uf } = at,
|
|
939
|
+
}, { useToken: Uf } = at, Do = it(({ content: t }) => {
|
|
940
940
|
const { token: e } = Uf();
|
|
941
941
|
return /* @__PURE__ */ s("div", { style: { color: e.colorTextDisabled }, children: t });
|
|
942
942
|
});
|
|
943
|
-
|
|
943
|
+
Do.displayName = "AddonElement";
|
|
944
944
|
const { defaultAlgorithm: Wf, defaultSeed: qf } = at, js = Wf(qf), Nr = it(
|
|
945
945
|
({
|
|
946
946
|
component: t,
|
|
@@ -951,7 +951,7 @@ const { defaultAlgorithm: Wf, defaultSeed: qf } = at, js = Wf(qf), Nr = it(
|
|
|
951
951
|
disabled: i,
|
|
952
952
|
...a
|
|
953
953
|
}) => {
|
|
954
|
-
const c = x((l) => l ? /* @__PURE__ */ s(
|
|
954
|
+
const c = x((l) => l ? /* @__PURE__ */ s(Do, { content: l }) : null, []);
|
|
955
955
|
return /* @__PURE__ */ s(
|
|
956
956
|
t,
|
|
957
957
|
{
|
|
@@ -1877,7 +1877,7 @@ const Nn = ({
|
|
|
1877
1877
|
var n;
|
|
1878
1878
|
const { erpFeatures: e } = Jt();
|
|
1879
1879
|
return !!((n = e[t]) != null && n.isEnabled) || !1;
|
|
1880
|
-
},
|
|
1880
|
+
}, Mo = (t) => {
|
|
1881
1881
|
const { erpFeatures: e } = Jt();
|
|
1882
1882
|
return e[t];
|
|
1883
1883
|
}, ym = it(
|
|
@@ -2002,7 +2002,7 @@ function Vl(t, e) {
|
|
|
2002
2002
|
window.open(a);
|
|
2003
2003
|
}
|
|
2004
2004
|
var Et = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t.FEATURE_SSE_SESSION_NOTIFICATIONS = "sse_session_notifications", t.FEATURE_COMMENTS_SYSTEM = "comments_system", t))(Et || {});
|
|
2005
|
-
const Fx = Object.values(Et), Bt = 80, Dn = "ir.actions.act_window", wm = "ir.actions.act_window_close", Bl = "ir.actions.wizard",
|
|
2005
|
+
const Fx = Object.values(Et), Bt = 80, Dn = "ir.actions.act_window", wm = "ir.actions.act_window_close", Bl = "ir.actions.wizard", hs = "ir.actions.report.xml", Cm = "ir.actions.act_url", xm = "ir.actions.actions", Sm = "ir.act.update_token", dn = (t) => {
|
|
2006
2006
|
const e = t.arch, n = t.fields, r = new Ya(n);
|
|
2007
2007
|
return r.parse(e), r;
|
|
2008
2008
|
};
|
|
@@ -2123,7 +2123,7 @@ const Us = (t, e, n, r = !1) => t.columns.map((i) => {
|
|
|
2123
2123
|
};
|
|
2124
2124
|
else if (g instanceof uo)
|
|
2125
2125
|
d[f] = l[f];
|
|
2126
|
-
else if (g instanceof
|
|
2126
|
+
else if (g instanceof Co)
|
|
2127
2127
|
d[f] = l[f] && Array.isArray(l[f]) && l[f].length === 2 && {
|
|
2128
2128
|
model: g.relation,
|
|
2129
2129
|
id: l[f][0],
|
|
@@ -2242,7 +2242,7 @@ function Ul(t) {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
return "legacy";
|
|
2244
2244
|
}
|
|
2245
|
-
const
|
|
2245
|
+
const gs = (t) => {
|
|
2246
2246
|
if (!(!(t != null && t.arch) || !(t != null && t.fields)))
|
|
2247
2247
|
try {
|
|
2248
2248
|
const n = dn(t).columns.filter((r) => r.id && !r.invisible).map((r) => r.id);
|
|
@@ -2258,7 +2258,7 @@ const hs = (t) => {
|
|
|
2258
2258
|
}, Im = (t, e) => {
|
|
2259
2259
|
const { children: n, globalValues: r = {} } = t, o = Q(), i = Q(), [a, c] = _(!1), l = Re(
|
|
2260
2260
|
Qt
|
|
2261
|
-
), { openAction: d } = l || {}, f = Q([]), { t: u } = Oe(), { showErrorNotification: m } = At(), p =
|
|
2261
|
+
), { openAction: d } = l || {}, f = Q([]), { t: u } = Oe(), { showErrorNotification: m } = At(), p = Mo(
|
|
2262
2262
|
Et.FEATURE_LOGGABLE_ACTIONS
|
|
2263
2263
|
), [g, h] = Ee(
|
|
2264
2264
|
Y.getHandler().logAction
|
|
@@ -2292,14 +2292,14 @@ const hs = (t) => {
|
|
|
2292
2292
|
id: W
|
|
2293
2293
|
} = N;
|
|
2294
2294
|
if (!P && V) {
|
|
2295
|
-
const Z =
|
|
2295
|
+
const Z = gs(V);
|
|
2296
2296
|
Z && Z.length > 0 && (L.fields = Z);
|
|
2297
2297
|
}
|
|
2298
2298
|
if (!P && V) {
|
|
2299
|
-
const Z =
|
|
2299
|
+
const Z = gs(V);
|
|
2300
2300
|
Z && Z.length > 0 && (L.fields = Z);
|
|
2301
2301
|
}
|
|
2302
|
-
if (k !==
|
|
2302
|
+
if (k !== hs) {
|
|
2303
2303
|
m({
|
|
2304
2304
|
type: "error",
|
|
2305
2305
|
title: "Error",
|
|
@@ -2361,7 +2361,7 @@ const hs = (t) => {
|
|
|
2361
2361
|
view_id: P
|
|
2362
2362
|
}) {
|
|
2363
2363
|
const { type: H } = D;
|
|
2364
|
-
if (A && f.current.push(A), H ===
|
|
2364
|
+
if (A && f.current.push(A), H === hs)
|
|
2365
2365
|
return await T({
|
|
2366
2366
|
reportData: D,
|
|
2367
2367
|
fields: N,
|
|
@@ -2638,13 +2638,13 @@ const Fm = Ht(Im), Em = ({
|
|
|
2638
2638
|
id: "action",
|
|
2639
2639
|
name: l("action"),
|
|
2640
2640
|
disabled: !m || m.length === 0,
|
|
2641
|
-
icon: /* @__PURE__ */ s(
|
|
2641
|
+
icon: /* @__PURE__ */ s(To, {})
|
|
2642
2642
|
},
|
|
2643
2643
|
{
|
|
2644
2644
|
id: "print",
|
|
2645
2645
|
name: l("report"),
|
|
2646
2646
|
disabled: !g || g.length === 0,
|
|
2647
|
-
icon: /* @__PURE__ */ s(
|
|
2647
|
+
icon: /* @__PURE__ */ s(Ao, {})
|
|
2648
2648
|
},
|
|
2649
2649
|
{
|
|
2650
2650
|
id: "divider",
|
|
@@ -2654,7 +2654,7 @@ const Fm = Ht(Im), Em = ({
|
|
|
2654
2654
|
},
|
|
2655
2655
|
{
|
|
2656
2656
|
label: l("related"),
|
|
2657
|
-
icon: /* @__PURE__ */ s(
|
|
2657
|
+
icon: /* @__PURE__ */ s(_o, {}),
|
|
2658
2658
|
items: p
|
|
2659
2659
|
}
|
|
2660
2660
|
];
|
|
@@ -2910,7 +2910,7 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
|
|
|
2910
2910
|
fields: (h == null ? void 0 : h()) ?? {},
|
|
2911
2911
|
context: (y == null ? void 0 : y()) ?? {}
|
|
2912
2912
|
})), g && g.length > 0 && (A.current = A.current.concat(
|
|
2913
|
-
|
|
2913
|
+
xo({
|
|
2914
2914
|
domain: g,
|
|
2915
2915
|
widgetFieldName: d
|
|
2916
2916
|
})
|
|
@@ -2925,12 +2925,6 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
|
|
|
2925
2925
|
Z
|
|
2926
2926
|
]), le = x(
|
|
2927
2927
|
async (ee) => {
|
|
2928
|
-
if (!a) {
|
|
2929
|
-
console.warn(
|
|
2930
|
-
"Many2oneLazy: Cannot perform name_search without relation"
|
|
2931
|
-
);
|
|
2932
|
-
return;
|
|
2933
|
-
}
|
|
2934
2928
|
F(!0);
|
|
2935
2929
|
try {
|
|
2936
2930
|
await pe();
|
|
@@ -2983,10 +2977,6 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
|
|
|
2983
2977
|
[he]
|
|
2984
2978
|
), _e = x(
|
|
2985
2979
|
async (ee) => {
|
|
2986
|
-
if (!a) {
|
|
2987
|
-
console.warn("Many2oneLazy: Cannot fetch name without relation");
|
|
2988
|
-
return;
|
|
2989
|
-
}
|
|
2990
2980
|
F(!0);
|
|
2991
2981
|
try {
|
|
2992
2982
|
const G = await te({
|
|
@@ -3016,10 +3006,6 @@ const Ex = Object.values(yn), { defaultAlgorithm: Dm, defaultSeed: Mm } = at, jn
|
|
|
3016
3006
|
q(G);
|
|
3017
3007
|
return;
|
|
3018
3008
|
}
|
|
3019
|
-
if (!a) {
|
|
3020
|
-
console.warn("Many2oneLazy: Cannot fetch names without relation");
|
|
3021
|
-
return;
|
|
3022
|
-
}
|
|
3023
3009
|
F(!0);
|
|
3024
3010
|
try {
|
|
3025
3011
|
const X = await te({
|
|
@@ -3999,7 +3985,7 @@ function rp({
|
|
|
3999
3985
|
justifyContent: "center",
|
|
4000
3986
|
overflow: "hidden"
|
|
4001
3987
|
},
|
|
4002
|
-
children: /* @__PURE__ */ U(
|
|
3988
|
+
children: /* @__PURE__ */ U(fs, { style: { fontSize: l, margin: 0, color: i }, children: [
|
|
4003
3989
|
p && /* @__PURE__ */ s(p, { style: { fontSize: l * 0.7 } }),
|
|
4004
3990
|
p ? ` ${u}` : u
|
|
4005
3991
|
] })
|
|
@@ -4052,9 +4038,9 @@ function op({
|
|
|
4052
4038
|
children: /* @__PURE__ */ U(lt, { align: "middle", children: [
|
|
4053
4039
|
h && /* @__PURE__ */ s(Je, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ s(h, {}) }),
|
|
4054
4040
|
/* @__PURE__ */ U(Je, { children: [
|
|
4055
|
-
/* @__PURE__ */ s(
|
|
4041
|
+
/* @__PURE__ */ s(fs, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: h ? ` ${r}%` : `${r}%` }),
|
|
4056
4042
|
/* @__PURE__ */ s(
|
|
4057
|
-
|
|
4043
|
+
fs,
|
|
4058
4044
|
{
|
|
4059
4045
|
style: {
|
|
4060
4046
|
fontSize: f * 0.4,
|
|
@@ -4399,7 +4385,7 @@ async function $i({
|
|
|
4399
4385
|
}), c;
|
|
4400
4386
|
});
|
|
4401
4387
|
}
|
|
4402
|
-
const
|
|
4388
|
+
const Uo = (t) => (e) => {
|
|
4403
4389
|
const n = e.value.toLocaleString("es-ES", {
|
|
4404
4390
|
useGrouping: !0
|
|
4405
4391
|
});
|
|
@@ -4439,7 +4425,7 @@ const jo = (t) => (e) => {
|
|
|
4439
4425
|
maxItemWidth: 1e3
|
|
4440
4426
|
},
|
|
4441
4427
|
tooltip: {
|
|
4442
|
-
formatter:
|
|
4428
|
+
formatter: Uo("default")
|
|
4443
4429
|
}
|
|
4444
4430
|
},
|
|
4445
4431
|
pie: {
|
|
@@ -4452,7 +4438,7 @@ const jo = (t) => (e) => {
|
|
|
4452
4438
|
maxItemWidth: 1e3
|
|
4453
4439
|
},
|
|
4454
4440
|
tooltip: {
|
|
4455
|
-
formatter:
|
|
4441
|
+
formatter: Uo("pie")
|
|
4456
4442
|
},
|
|
4457
4443
|
interactions: [
|
|
4458
4444
|
{
|
|
@@ -4467,7 +4453,7 @@ const jo = (t) => (e) => {
|
|
|
4467
4453
|
maxItemWidth: 1e3
|
|
4468
4454
|
},
|
|
4469
4455
|
tooltip: {
|
|
4470
|
-
formatter:
|
|
4456
|
+
formatter: Uo("barGrouped")
|
|
4471
4457
|
},
|
|
4472
4458
|
xAxis: {
|
|
4473
4459
|
label: {
|
|
@@ -4836,7 +4822,7 @@ const xp = ({
|
|
|
4836
4822
|
}) => {
|
|
4837
4823
|
Ep({
|
|
4838
4824
|
title: n("unsavedChanges"),
|
|
4839
|
-
icon: /* @__PURE__ */ s(
|
|
4825
|
+
icon: /* @__PURE__ */ s(So, {}),
|
|
4840
4826
|
centered: !0,
|
|
4841
4827
|
content: n("confirmCloseWithoutSave"),
|
|
4842
4828
|
okText: n("closeWithoutSaving"),
|
|
@@ -4844,7 +4830,7 @@ const xp = ({
|
|
|
4844
4830
|
onCancel: e,
|
|
4845
4831
|
cancelText: n("cancel")
|
|
4846
4832
|
});
|
|
4847
|
-
},
|
|
4833
|
+
}, Wo = {
|
|
4848
4834
|
tree: /* @__PURE__ */ s(Ns, {}),
|
|
4849
4835
|
form: /* @__PURE__ */ s(Mr, {}),
|
|
4850
4836
|
graph: /* @__PURE__ */ s(lu, {}),
|
|
@@ -4852,7 +4838,7 @@ const xp = ({
|
|
|
4852
4838
|
kanban: /* @__PURE__ */ s(tl, {})
|
|
4853
4839
|
};
|
|
4854
4840
|
function Bi(t) {
|
|
4855
|
-
return t ? (
|
|
4841
|
+
return t ? (Wo == null ? void 0 : Wo[t.type]) || /* @__PURE__ */ s(Mr, {}) : /* @__PURE__ */ s(Mr, {});
|
|
4856
4842
|
}
|
|
4857
4843
|
function zs(t) {
|
|
4858
4844
|
const {
|
|
@@ -4981,7 +4967,7 @@ function ac(t) {
|
|
|
4981
4967
|
return /* @__PURE__ */ s(
|
|
4982
4968
|
Ut,
|
|
4983
4969
|
{
|
|
4984
|
-
icon: /* @__PURE__ */ s(
|
|
4970
|
+
icon: /* @__PURE__ */ s(Io, {}),
|
|
4985
4971
|
tooltip: o("new"),
|
|
4986
4972
|
onClick: i,
|
|
4987
4973
|
disabled: e,
|
|
@@ -5119,7 +5105,7 @@ const { useToken: Mp } = at, kp = (t) => {
|
|
|
5119
5105
|
availableViews: C,
|
|
5120
5106
|
currentSavedSearch: T,
|
|
5121
5107
|
setCurrentSavedSearch: w
|
|
5122
|
-
} = g || {}, F =
|
|
5108
|
+
} = g || {}, F = Mo(
|
|
5123
5109
|
Et.FEATURE_LOGGABLE_ACTIONS
|
|
5124
5110
|
), [S] = Ee(
|
|
5125
5111
|
Y.getHandler().logAction
|
|
@@ -5417,7 +5403,7 @@ const Np = "action", $p = ["active_id", "active_ids", "id"], Pp = ["target", "co
|
|
|
5417
5403
|
}, fc = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
|
|
5418
5404
|
Object.entries(t).filter(([e]) => $p.includes(e))
|
|
5419
5405
|
), Bp = Mn("IconExternalLink"), Hp = Mn("IconShare2");
|
|
5420
|
-
function
|
|
5406
|
+
function ko({ res_id: t, searchParams: e }) {
|
|
5421
5407
|
const n = Q(null), { currentView: r, limit: o, currentPage: i, order: a } = Vt(), c = {
|
|
5422
5408
|
id: r.view_id,
|
|
5423
5409
|
type: r.type
|
|
@@ -5632,10 +5618,10 @@ function jp({
|
|
|
5632
5618
|
id: -1,
|
|
5633
5619
|
model: g,
|
|
5634
5620
|
report_name: "printscreen.list",
|
|
5635
|
-
type:
|
|
5621
|
+
type: hs,
|
|
5636
5622
|
datas: {
|
|
5637
5623
|
view_id: c == null ? void 0 : c.view_id,
|
|
5638
|
-
fields: !(c != null && c.view_id) &&
|
|
5624
|
+
fields: !(c != null && c.view_id) && gs(c),
|
|
5639
5625
|
model: g,
|
|
5640
5626
|
ids: se
|
|
5641
5627
|
}
|
|
@@ -5764,7 +5750,7 @@ function jp({
|
|
|
5764
5750
|
/* @__PURE__ */ s(
|
|
5765
5751
|
Ut,
|
|
5766
5752
|
{
|
|
5767
|
-
icon: /* @__PURE__ */ s(
|
|
5753
|
+
icon: /* @__PURE__ */ s(Ro, {}),
|
|
5768
5754
|
tooltip: L("showLogs"),
|
|
5769
5755
|
disabled: !(d && (d == null ? void 0 : d.length) === 1) || S,
|
|
5770
5756
|
onClick: () => Gs(g, d[0].id, L)
|
|
@@ -5773,7 +5759,7 @@ function jp({
|
|
|
5773
5759
|
/* @__PURE__ */ s(
|
|
5774
5760
|
Ut,
|
|
5775
5761
|
{
|
|
5776
|
-
icon: /* @__PURE__ */ s(
|
|
5762
|
+
icon: /* @__PURE__ */ s(Fo, {}),
|
|
5777
5763
|
tooltip: L("refresh"),
|
|
5778
5764
|
disabled: m || u || S,
|
|
5779
5765
|
onClick: B
|
|
@@ -5793,8 +5779,8 @@ function jp({
|
|
|
5793
5779
|
)
|
|
5794
5780
|
] }),
|
|
5795
5781
|
/* @__PURE__ */ s(Dt, {}),
|
|
5796
|
-
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(
|
|
5797
|
-
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(
|
|
5782
|
+
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(To, {}), ...ne }),
|
|
5783
|
+
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(Ao, {}), ...Z }),
|
|
5798
5784
|
H && /* @__PURE__ */ U(Fe, { children: [
|
|
5799
5785
|
/* @__PURE__ */ s(Dt, {}),
|
|
5800
5786
|
/* @__PURE__ */ s(
|
|
@@ -5837,7 +5823,7 @@ function jp({
|
|
|
5837
5823
|
)
|
|
5838
5824
|
] }),
|
|
5839
5825
|
/* @__PURE__ */ s(Dt, {}),
|
|
5840
|
-
/* @__PURE__ */ s(
|
|
5826
|
+
/* @__PURE__ */ s(ko, { searchParams: v })
|
|
5841
5827
|
] });
|
|
5842
5828
|
}
|
|
5843
5829
|
const mc = it(jp), pc = it(() => /* @__PURE__ */ s(
|
|
@@ -6255,7 +6241,7 @@ const Kp = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(vc,
|
|
|
6255
6241
|
let r = n;
|
|
6256
6242
|
e.selectionValues.size ? r = e.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
|
|
6257
6243
|
const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), i = br(r);
|
|
6258
|
-
return /* @__PURE__ */ s(Wt, { title: r, children: /* @__PURE__ */ s(
|
|
6244
|
+
return /* @__PURE__ */ s(Wt, { title: r, children: /* @__PURE__ */ s(Os, { alt: r, style: { backgroundColor: i }, children: o }) });
|
|
6259
6245
|
};
|
|
6260
6246
|
function nh(t) {
|
|
6261
6247
|
return t.length === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -6313,7 +6299,7 @@ const rh = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(bc,
|
|
|
6313
6299
|
borderWidth: "1px"
|
|
6314
6300
|
}, e = r.background;
|
|
6315
6301
|
}
|
|
6316
|
-
return /* @__PURE__ */ s(
|
|
6302
|
+
return /* @__PURE__ */ s(Ds, { ...t, style: n, color: e, children: t.children });
|
|
6317
6303
|
}, wc = ({
|
|
6318
6304
|
emails: t,
|
|
6319
6305
|
handleClose: e
|
|
@@ -6322,7 +6308,7 @@ const rh = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(bc,
|
|
|
6322
6308
|
return null;
|
|
6323
6309
|
const n = typeof t == "string" ? t.split(/[,;]/).map((r) => r.trim()) : t;
|
|
6324
6310
|
return /* @__PURE__ */ s(Fe, { children: n.map((r, o) => /* @__PURE__ */ s(
|
|
6325
|
-
|
|
6311
|
+
Ds,
|
|
6326
6312
|
{
|
|
6327
6313
|
closable: !!e,
|
|
6328
6314
|
color: Qu.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
|
|
@@ -6588,7 +6574,7 @@ const rh = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(bc,
|
|
|
6588
6574
|
),
|
|
6589
6575
|
[o]
|
|
6590
6576
|
);
|
|
6591
|
-
},
|
|
6577
|
+
}, No = {
|
|
6592
6578
|
boolean: ih,
|
|
6593
6579
|
many2one: Hi,
|
|
6594
6580
|
many2one_lazy: Hi,
|
|
@@ -6673,7 +6659,7 @@ const Lr = ({
|
|
|
6673
6659
|
if (t)
|
|
6674
6660
|
return Us(
|
|
6675
6661
|
t,
|
|
6676
|
-
{ ...
|
|
6662
|
+
{ ...No },
|
|
6677
6663
|
e,
|
|
6678
6664
|
f
|
|
6679
6665
|
);
|
|
@@ -6924,12 +6910,12 @@ const Lr = ({
|
|
|
6924
6910
|
format: "HH:mm:ss",
|
|
6925
6911
|
displayFormat: "HH:mm:ss",
|
|
6926
6912
|
placeholder: "__:__:__"
|
|
6927
|
-
},
|
|
6913
|
+
}, qo = (t) => new RegExp(
|
|
6928
6914
|
"^" + t.replace(/HH/g, "\\d{2}").replace(/mm/g, "\\d{2}").replace(/ss/g, "\\d{2}").replace(/:/g, "\\:") + "$"
|
|
6929
6915
|
), Rr = {
|
|
6930
|
-
hours:
|
|
6931
|
-
hoursMinutes:
|
|
6932
|
-
hoursMinutesSeconds:
|
|
6916
|
+
hours: qo("HH"),
|
|
6917
|
+
hoursMinutes: qo("HH:mm"),
|
|
6918
|
+
hoursMinutesSeconds: qo("HH:mm:ss")
|
|
6933
6919
|
}, Th = (t) => !t || t.trim() === "" ? !0 : Rr.hours.test(t) || Rr.hoursMinutes.test(t), Ah = (t, e, n = !1) => {
|
|
6934
6920
|
if (!t || t.trim() === "") {
|
|
6935
6921
|
const r = e.format("HH"), o = e.format("mm"), i = e.format("ss");
|
|
@@ -6987,7 +6973,7 @@ const Lr = ({
|
|
|
6987
6973
|
handleKeyDown: r,
|
|
6988
6974
|
handleBlur: o
|
|
6989
6975
|
};
|
|
6990
|
-
},
|
|
6976
|
+
}, ys = ({
|
|
6991
6977
|
value: t,
|
|
6992
6978
|
onChange: e,
|
|
6993
6979
|
numberOfSelectsToHide: n = 2,
|
|
@@ -7028,18 +7014,18 @@ const Lr = ({
|
|
|
7028
7014
|
);
|
|
7029
7015
|
}, Ih = (t) => {
|
|
7030
7016
|
const { ooui: e, showLabel: n = !1 } = t, { label: r, id: o } = e, i = [
|
|
7031
|
-
new
|
|
7017
|
+
new cs({
|
|
7032
7018
|
name: o + "#date",
|
|
7033
7019
|
label: ""
|
|
7034
7020
|
}),
|
|
7035
|
-
new
|
|
7021
|
+
new cs({
|
|
7036
7022
|
name: o + "#time",
|
|
7037
7023
|
label: ""
|
|
7038
7024
|
})
|
|
7039
7025
|
];
|
|
7040
7026
|
return /* @__PURE__ */ U(Fe, { children: [
|
|
7041
7027
|
n && /* @__PURE__ */ s(
|
|
7042
|
-
|
|
7028
|
+
Eo,
|
|
7043
7029
|
{
|
|
7044
7030
|
ooui: new pr({
|
|
7045
7031
|
name: o + "_label",
|
|
@@ -7065,7 +7051,7 @@ const Lr = ({
|
|
|
7065
7051
|
);
|
|
7066
7052
|
return /* @__PURE__ */ U(lt, { gutter: 8, children: [
|
|
7067
7053
|
/* @__PURE__ */ s(Je, { span: 12, children: /* @__PURE__ */ s(
|
|
7068
|
-
|
|
7054
|
+
ys,
|
|
7069
7055
|
{
|
|
7070
7056
|
placeholder: "Start time",
|
|
7071
7057
|
format: "HH:mm",
|
|
@@ -7078,7 +7064,7 @@ const Lr = ({
|
|
|
7078
7064
|
}
|
|
7079
7065
|
) }),
|
|
7080
7066
|
/* @__PURE__ */ s(Je, { span: 12, children: /* @__PURE__ */ s(
|
|
7081
|
-
|
|
7067
|
+
ys,
|
|
7082
7068
|
{
|
|
7083
7069
|
placeholder: "End time",
|
|
7084
7070
|
style: { width: "100%" },
|
|
@@ -7095,7 +7081,7 @@ const Lr = ({
|
|
|
7095
7081
|
const { ooui: e } = t, { id: n, decimalDigits: r, readOnly: o, required: i } = e, a = Re(dt), { elementHasLostFocus: c } = a || {}, l = K(() => i && !o, [i, o]), d = K(
|
|
7096
7082
|
() => l ? Dh : Ur,
|
|
7097
7083
|
[l]
|
|
7098
|
-
), f = x((m) => m ? /* @__PURE__ */ s(
|
|
7084
|
+
), f = x((m) => m ? /* @__PURE__ */ s(Do, { content: m }) : null, []), u = x((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
|
|
7099
7085
|
return /* @__PURE__ */ s(Ze, { required: l, type: "number", ...t, children: /* @__PURE__ */ s(
|
|
7100
7086
|
d,
|
|
7101
7087
|
{
|
|
@@ -7121,7 +7107,7 @@ const Dh = mt(Ur)`
|
|
|
7121
7107
|
const { ooui: e, onChange: n } = t, { id: r, readOnly: o, required: i } = e, { token: a } = Mh(), c = i && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, l = Re(dt), { elementHasLostFocus: d } = l || {}, f = K(() => i && !o, [i, o]), u = K(
|
|
7122
7108
|
() => f ? Ph : Ur,
|
|
7123
7109
|
[f]
|
|
7124
|
-
), m = x((h) => h ? /* @__PURE__ */ s(
|
|
7110
|
+
), m = x((h) => h ? /* @__PURE__ */ s(Do, { content: h }) : null, []), p = x((h) => h === void 0 ? "" : typeof h == "string" && !isNaN(parseFloat(h)) ? `${Math.trunc(parseFloat(h))}`.replace(/[^0-9-]+/g, "") : typeof h == "number" ? `${Math.trunc(h)}`.replace(/[^0-9-]+/g, "") : "", []), g = x(
|
|
7125
7111
|
(h) => {
|
|
7126
7112
|
const y = h;
|
|
7127
7113
|
n == null || n(y);
|
|
@@ -7152,7 +7138,7 @@ const Ph = mt(Ur)`
|
|
|
7152
7138
|
}
|
|
7153
7139
|
`;
|
|
7154
7140
|
function Lh(t) {
|
|
7155
|
-
const { ooui: e, showLabel: n } = t, { id: r, label: o, tooltip: i } = e, a = e instanceof
|
|
7141
|
+
const { ooui: e, showLabel: n } = t, { id: r, label: o, tooltip: i } = e, a = e instanceof ds ? Vr : ti, c = (l) => /* @__PURE__ */ s(
|
|
7156
7142
|
a,
|
|
7157
7143
|
{
|
|
7158
7144
|
ooui: {
|
|
@@ -7166,7 +7152,7 @@ function Lh(t) {
|
|
|
7166
7152
|
);
|
|
7167
7153
|
return /* @__PURE__ */ U("div", { style: { width: "100%" }, children: [
|
|
7168
7154
|
n && /* @__PURE__ */ s(
|
|
7169
|
-
|
|
7155
|
+
Eo,
|
|
7170
7156
|
{
|
|
7171
7157
|
ooui: new pr({
|
|
7172
7158
|
name: r + "_label",
|
|
@@ -7236,7 +7222,7 @@ function Tc(t) {
|
|
|
7236
7222
|
e.readOnly = !1, e.required = !1;
|
|
7237
7223
|
const { t: n } = Oe(), r = e.type, o = (d = e.raw_props) == null ? void 0 : d.widget, i = e.fieldType, a = e, c = a.relation || ((f = a.raw_props) == null ? void 0 : f.relation);
|
|
7238
7224
|
if (c && (o === "many2one_lazy" || o === "selection" && i === "many2one")) {
|
|
7239
|
-
const u = new
|
|
7225
|
+
const u = new Co({
|
|
7240
7226
|
name: e._id,
|
|
7241
7227
|
string: e.label,
|
|
7242
7228
|
relation: c,
|
|
@@ -7337,7 +7323,7 @@ const { useToken: Yh } = at, { Title: zh } = Kt, { Header: Gh, Content: Kh, Foot
|
|
|
7337
7323
|
};
|
|
7338
7324
|
return /* @__PURE__ */ s(bl, { children: t && /* @__PURE__ */ U(Fe, { children: [
|
|
7339
7325
|
/* @__PURE__ */ s(
|
|
7340
|
-
|
|
7326
|
+
ps.div,
|
|
7341
7327
|
{
|
|
7342
7328
|
initial: { opacity: 0 },
|
|
7343
7329
|
animate: { opacity: 1 },
|
|
@@ -7365,7 +7351,7 @@ const { useToken: Yh } = at, { Title: zh } = Kt, { Header: Gh, Content: Kh, Foot
|
|
|
7365
7351
|
returnFocusOnDeactivate: !0
|
|
7366
7352
|
},
|
|
7367
7353
|
children: /* @__PURE__ */ U(
|
|
7368
|
-
|
|
7354
|
+
ps.div,
|
|
7369
7355
|
{
|
|
7370
7356
|
ref: u,
|
|
7371
7357
|
initial: { x: "100%" },
|
|
@@ -7442,10 +7428,10 @@ const { useToken: Yh } = at, { Title: zh } = Kt, { Header: Gh, Content: Kh, Foot
|
|
|
7442
7428
|
var qi = Object.prototype.toString, Ac = function(e) {
|
|
7443
7429
|
var n = qi.call(e), r = n === "[object Arguments]";
|
|
7444
7430
|
return r || (r = n !== "[object Array]" && e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && qi.call(e.callee) === "[object Function]"), r;
|
|
7445
|
-
},
|
|
7431
|
+
}, Yo, Yi;
|
|
7446
7432
|
function Xh() {
|
|
7447
7433
|
if (Yi)
|
|
7448
|
-
return
|
|
7434
|
+
return Yo;
|
|
7449
7435
|
Yi = 1;
|
|
7450
7436
|
var t;
|
|
7451
7437
|
if (!Object.keys) {
|
|
@@ -7529,7 +7515,7 @@ function Xh() {
|
|
|
7529
7515
|
return v;
|
|
7530
7516
|
};
|
|
7531
7517
|
}
|
|
7532
|
-
return
|
|
7518
|
+
return Yo = t, Yo;
|
|
7533
7519
|
}
|
|
7534
7520
|
var Zh = Array.prototype.slice, eg = Ac, zi = Object.keys, ao = zi ? function(e) {
|
|
7535
7521
|
return zi(e);
|
|
@@ -7593,27 +7579,27 @@ if (co)
|
|
|
7593
7579
|
} catch {
|
|
7594
7580
|
co = !1;
|
|
7595
7581
|
}
|
|
7596
|
-
var vg = co,
|
|
7582
|
+
var vg = co, zo, Ki;
|
|
7597
7583
|
function bg() {
|
|
7598
7584
|
if (Ki)
|
|
7599
|
-
return
|
|
7585
|
+
return zo;
|
|
7600
7586
|
Ki = 1;
|
|
7601
7587
|
var t = typeof Symbol < "u" && Symbol, e = Ic;
|
|
7602
|
-
return
|
|
7588
|
+
return zo = function() {
|
|
7603
7589
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
7604
|
-
},
|
|
7590
|
+
}, zo;
|
|
7605
7591
|
}
|
|
7606
|
-
var
|
|
7592
|
+
var Go, Ji;
|
|
7607
7593
|
function Ec() {
|
|
7608
|
-
return Ji || (Ji = 1,
|
|
7594
|
+
return Ji || (Ji = 1, Go = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Go;
|
|
7609
7595
|
}
|
|
7610
|
-
var
|
|
7596
|
+
var Ko, Qi;
|
|
7611
7597
|
function Oc() {
|
|
7612
7598
|
if (Qi)
|
|
7613
|
-
return
|
|
7599
|
+
return Ko;
|
|
7614
7600
|
Qi = 1;
|
|
7615
7601
|
var t = Rc;
|
|
7616
|
-
return
|
|
7602
|
+
return Ko = t.getPrototypeOf || null, Ko;
|
|
7617
7603
|
}
|
|
7618
7604
|
var wg = "Function.prototype.bind called on incompatible ", Cg = Object.prototype.toString, xg = Math.max, Sg = "[object Function]", Xi = function(e, n) {
|
|
7619
7605
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
@@ -7653,42 +7639,42 @@ var wg = "Function.prototype.bind called on incompatible ", Cg = Object.prototyp
|
|
|
7653
7639
|
d.prototype = n.prototype, o.prototype = new d(), d.prototype = null;
|
|
7654
7640
|
}
|
|
7655
7641
|
return o;
|
|
7656
|
-
}, Ig = _g, Jr = Function.prototype.bind || Ig,
|
|
7642
|
+
}, Ig = _g, Jr = Function.prototype.bind || Ig, Jo, Zi;
|
|
7657
7643
|
function oi() {
|
|
7658
|
-
return Zi || (Zi = 1,
|
|
7644
|
+
return Zi || (Zi = 1, Jo = Function.prototype.call), Jo;
|
|
7659
7645
|
}
|
|
7660
|
-
var
|
|
7646
|
+
var Qo, ea;
|
|
7661
7647
|
function Dc() {
|
|
7662
|
-
return ea || (ea = 1,
|
|
7648
|
+
return ea || (ea = 1, Qo = Function.prototype.apply), Qo;
|
|
7663
7649
|
}
|
|
7664
|
-
var
|
|
7650
|
+
var Xo, ta;
|
|
7665
7651
|
function Rg() {
|
|
7666
|
-
return ta || (ta = 1,
|
|
7652
|
+
return ta || (ta = 1, Xo = typeof Reflect < "u" && Reflect && Reflect.apply), Xo;
|
|
7667
7653
|
}
|
|
7668
|
-
var
|
|
7654
|
+
var Zo, na;
|
|
7669
7655
|
function Fg() {
|
|
7670
7656
|
if (na)
|
|
7671
|
-
return
|
|
7657
|
+
return Zo;
|
|
7672
7658
|
na = 1;
|
|
7673
7659
|
var t = Jr, e = Dc(), n = oi(), r = Rg();
|
|
7674
|
-
return
|
|
7660
|
+
return Zo = r || t.call(n, e), Zo;
|
|
7675
7661
|
}
|
|
7676
|
-
var
|
|
7662
|
+
var es, ra;
|
|
7677
7663
|
function Eg() {
|
|
7678
7664
|
if (ra)
|
|
7679
|
-
return
|
|
7665
|
+
return es;
|
|
7680
7666
|
ra = 1;
|
|
7681
7667
|
var t = Jr, e = Fc, n = oi(), r = Fg();
|
|
7682
|
-
return
|
|
7668
|
+
return es = function(i) {
|
|
7683
7669
|
if (i.length < 1 || typeof i[0] != "function")
|
|
7684
7670
|
throw new e("a function is required");
|
|
7685
7671
|
return r(t, n, i);
|
|
7686
|
-
},
|
|
7672
|
+
}, es;
|
|
7687
7673
|
}
|
|
7688
|
-
var
|
|
7674
|
+
var ts, oa;
|
|
7689
7675
|
function Og() {
|
|
7690
7676
|
if (oa)
|
|
7691
|
-
return
|
|
7677
|
+
return ts;
|
|
7692
7678
|
oa = 1;
|
|
7693
7679
|
var t = Eg(), e = ri, n;
|
|
7694
7680
|
try {
|
|
@@ -7703,20 +7689,20 @@ function Og() {
|
|
|
7703
7689
|
/** @type {keyof typeof Object.prototype} */
|
|
7704
7690
|
"__proto__"
|
|
7705
7691
|
), o = Object, i = o.getPrototypeOf;
|
|
7706
|
-
return
|
|
7692
|
+
return ts = r && typeof r.get == "function" ? t([r.get]) : typeof i == "function" ? (
|
|
7707
7693
|
/** @type {import('./get')} */
|
|
7708
7694
|
function(c) {
|
|
7709
7695
|
return i(c == null ? c : o(c));
|
|
7710
7696
|
}
|
|
7711
|
-
) : !1,
|
|
7697
|
+
) : !1, ts;
|
|
7712
7698
|
}
|
|
7713
|
-
var
|
|
7699
|
+
var ns, sa;
|
|
7714
7700
|
function Dg() {
|
|
7715
7701
|
if (sa)
|
|
7716
|
-
return
|
|
7702
|
+
return ns;
|
|
7717
7703
|
sa = 1;
|
|
7718
7704
|
var t = Ec(), e = Oc(), n = Og();
|
|
7719
|
-
return
|
|
7705
|
+
return ns = t ? function(o) {
|
|
7720
7706
|
return t(o);
|
|
7721
7707
|
} : e ? function(o) {
|
|
7722
7708
|
if (!o || typeof o != "object" && typeof o != "function")
|
|
@@ -7724,34 +7710,34 @@ function Dg() {
|
|
|
7724
7710
|
return e(o);
|
|
7725
7711
|
} : n ? function(o) {
|
|
7726
7712
|
return n(o);
|
|
7727
|
-
} : null,
|
|
7713
|
+
} : null, ns;
|
|
7728
7714
|
}
|
|
7729
|
-
var
|
|
7715
|
+
var rs, ia;
|
|
7730
7716
|
function Mg() {
|
|
7731
7717
|
if (ia)
|
|
7732
|
-
return
|
|
7718
|
+
return rs;
|
|
7733
7719
|
ia = 1;
|
|
7734
7720
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Jr;
|
|
7735
|
-
return
|
|
7721
|
+
return rs = n.call(t, e), rs;
|
|
7736
7722
|
}
|
|
7737
|
-
var rt, kg = Rc, Ng = ng, $g = rg, Pg = og, Lg = sg, mr = ig, ir = Fc, Vg = ag, Bg = lg, Hg = cg, jg = dg, Ug = ug, Wg = fg, qg = mg, Yg = gg, Mc = Function,
|
|
7723
|
+
var rt, kg = Rc, Ng = ng, $g = rg, Pg = og, Lg = sg, mr = ig, ir = Fc, Vg = ag, Bg = lg, Hg = cg, jg = dg, Ug = ug, Wg = fg, qg = mg, Yg = gg, Mc = Function, os = function(t) {
|
|
7738
7724
|
try {
|
|
7739
7725
|
return Mc('"use strict"; return (' + t + ").constructor;")();
|
|
7740
7726
|
} catch {
|
|
7741
7727
|
}
|
|
7742
|
-
}, Br = ri, zg = vg,
|
|
7728
|
+
}, Br = ri, zg = vg, ss = function() {
|
|
7743
7729
|
throw new ir();
|
|
7744
7730
|
}, Gg = Br ? function() {
|
|
7745
7731
|
try {
|
|
7746
|
-
return arguments.callee,
|
|
7732
|
+
return arguments.callee, ss;
|
|
7747
7733
|
} catch {
|
|
7748
7734
|
try {
|
|
7749
7735
|
return Br(arguments, "callee").get;
|
|
7750
7736
|
} catch {
|
|
7751
|
-
return
|
|
7737
|
+
return ss;
|
|
7752
7738
|
}
|
|
7753
7739
|
}
|
|
7754
|
-
}() :
|
|
7740
|
+
}() : ss, Xn = bg()(), $t = Dg(), Kg = Oc(), Jg = Ec(), kc = Dc(), Qr = oi(), er = {}, Qg = typeof Uint8Array > "u" || !$t ? rt : $t(Uint8Array), Un = {
|
|
7755
7741
|
__proto__: null,
|
|
7756
7742
|
"%AggregateError%": typeof AggregateError > "u" ? rt : AggregateError,
|
|
7757
7743
|
"%Array%": Array,
|
|
@@ -7845,11 +7831,11 @@ if ($t)
|
|
|
7845
7831
|
var Zg = function t(e) {
|
|
7846
7832
|
var n;
|
|
7847
7833
|
if (e === "%AsyncFunction%")
|
|
7848
|
-
n =
|
|
7834
|
+
n = os("async function () {}");
|
|
7849
7835
|
else if (e === "%GeneratorFunction%")
|
|
7850
|
-
n =
|
|
7836
|
+
n = os("function* () {}");
|
|
7851
7837
|
else if (e === "%AsyncGeneratorFunction%")
|
|
7852
|
-
n =
|
|
7838
|
+
n = os("async function* () {}");
|
|
7853
7839
|
else if (e === "%AsyncGenerator%") {
|
|
7854
7840
|
var r = t("%AsyncGeneratorFunction%");
|
|
7855
7841
|
r && (n = r.prototype);
|
|
@@ -7934,7 +7920,7 @@ var Zg = function t(e) {
|
|
|
7934
7920
|
};
|
|
7935
7921
|
}
|
|
7936
7922
|
throw new mr("intrinsic " + e + " does not exist!");
|
|
7937
|
-
},
|
|
7923
|
+
}, $o = function(e, n) {
|
|
7938
7924
|
if (typeof e != "string" || e.length === 0)
|
|
7939
7925
|
throw new ir("intrinsic name must be a non-empty string");
|
|
7940
7926
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
@@ -7966,7 +7952,7 @@ var Zg = function t(e) {
|
|
|
7966
7952
|
return c;
|
|
7967
7953
|
}, Nc = { exports: {} };
|
|
7968
7954
|
(function(t) {
|
|
7969
|
-
var e = Jr, n =
|
|
7955
|
+
var e = Jr, n = $o, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || e.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
|
|
7970
7956
|
if (c)
|
|
7971
7957
|
try {
|
|
7972
7958
|
c({}, "a", { value: 1 });
|
|
@@ -7990,36 +7976,36 @@ var Zg = function t(e) {
|
|
|
7990
7976
|
};
|
|
7991
7977
|
c ? c(t.exports, "apply", { value: d }) : t.exports.apply = d;
|
|
7992
7978
|
})(Nc);
|
|
7993
|
-
var si = Nc.exports, $c =
|
|
7979
|
+
var si = Nc.exports, $c = $o, Pc = si, ay = Pc($c("String.prototype.indexOf")), Lc = function(e, n) {
|
|
7994
7980
|
var r = $c(e, !!n);
|
|
7995
7981
|
return typeof r == "function" && ay(e, ".prototype.") > -1 ? Pc(r) : r;
|
|
7996
|
-
}, ly = ni(), cy = Lc,
|
|
7997
|
-
return ly && e && typeof e == "object" && Symbol.toStringTag in e ? !1 :
|
|
7982
|
+
}, ly = ni(), cy = Lc, vs = cy("Object.prototype.toString"), Po = function(e) {
|
|
7983
|
+
return ly && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : vs(e) === "[object Arguments]";
|
|
7998
7984
|
}, Vc = function(e) {
|
|
7999
|
-
return
|
|
7985
|
+
return Po(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && vs(e) !== "[object Array]" && vs(e.callee) === "[object Function]";
|
|
8000
7986
|
}, dy = function() {
|
|
8001
|
-
return
|
|
7987
|
+
return Po(arguments);
|
|
8002
7988
|
}();
|
|
8003
|
-
|
|
8004
|
-
var uy = dy ?
|
|
8005
|
-
if (
|
|
7989
|
+
Po.isLegacyArguments = Vc;
|
|
7990
|
+
var uy = dy ? Po : Vc, fy = $o, bs = fy("%Object.defineProperty%", !0), ws = function() {
|
|
7991
|
+
if (bs)
|
|
8006
7992
|
try {
|
|
8007
|
-
return
|
|
7993
|
+
return bs({}, "a", { value: 1 }), !0;
|
|
8008
7994
|
} catch {
|
|
8009
7995
|
return !1;
|
|
8010
7996
|
}
|
|
8011
7997
|
return !1;
|
|
8012
7998
|
};
|
|
8013
|
-
|
|
8014
|
-
if (!
|
|
7999
|
+
ws.hasArrayLengthDefineBug = function() {
|
|
8000
|
+
if (!ws())
|
|
8015
8001
|
return null;
|
|
8016
8002
|
try {
|
|
8017
|
-
return
|
|
8003
|
+
return bs([], "length", { value: 1 }).length !== 1;
|
|
8018
8004
|
} catch {
|
|
8019
8005
|
return !0;
|
|
8020
8006
|
}
|
|
8021
8007
|
};
|
|
8022
|
-
var ii =
|
|
8008
|
+
var ii = ws, my = ii(), ai = $o, ca = my && ai("%Object.defineProperty%", !0), py = ai("%SyntaxError%"), Zn = ai("%TypeError%"), da = ri, Bc = function(e, n, r) {
|
|
8023
8009
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
8024
8010
|
throw new Zn("`obj` must be an object or a function`");
|
|
8025
8011
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -8081,27 +8067,27 @@ Ay(Yc, {
|
|
|
8081
8067
|
implementation: Iy,
|
|
8082
8068
|
shim: Ry
|
|
8083
8069
|
});
|
|
8084
|
-
var Fy = Yc,
|
|
8070
|
+
var Fy = Yc, Cs = Lc, zc = ni(), Gc, Kc, xs, Ss;
|
|
8085
8071
|
if (zc) {
|
|
8086
|
-
Gc =
|
|
8087
|
-
var
|
|
8088
|
-
throw
|
|
8072
|
+
Gc = Cs("Object.prototype.hasOwnProperty"), Kc = Cs("RegExp.prototype.exec"), xs = {};
|
|
8073
|
+
var is = function() {
|
|
8074
|
+
throw xs;
|
|
8089
8075
|
};
|
|
8090
|
-
|
|
8091
|
-
toString:
|
|
8092
|
-
valueOf:
|
|
8093
|
-
}, typeof Symbol.toPrimitive == "symbol" && (
|
|
8076
|
+
Ss = {
|
|
8077
|
+
toString: is,
|
|
8078
|
+
valueOf: is
|
|
8079
|
+
}, typeof Symbol.toPrimitive == "symbol" && (Ss[Symbol.toPrimitive] = is);
|
|
8094
8080
|
}
|
|
8095
|
-
var Ey =
|
|
8081
|
+
var Ey = Cs("Object.prototype.toString"), Oy = Object.getOwnPropertyDescriptor, Dy = "[object RegExp]", My = zc ? function(e) {
|
|
8096
8082
|
if (!e || typeof e != "object")
|
|
8097
8083
|
return !1;
|
|
8098
8084
|
var n = Oy(e, "lastIndex"), r = n && Gc(n, "value");
|
|
8099
8085
|
if (!r)
|
|
8100
8086
|
return !1;
|
|
8101
8087
|
try {
|
|
8102
|
-
Kc(e,
|
|
8088
|
+
Kc(e, Ss);
|
|
8103
8089
|
} catch (o) {
|
|
8104
|
-
return o ===
|
|
8090
|
+
return o === xs;
|
|
8105
8091
|
}
|
|
8106
8092
|
} : function(e) {
|
|
8107
8093
|
return !e || typeof e != "object" && typeof e != "function" ? !1 : Ey(e) === Dy;
|
|
@@ -8953,14 +8939,14 @@ const li = (t) => {
|
|
|
8953
8939
|
Qe,
|
|
8954
8940
|
{
|
|
8955
8941
|
size: "small",
|
|
8956
|
-
icon: /* @__PURE__ */ s(
|
|
8942
|
+
icon: /* @__PURE__ */ s(us, {}),
|
|
8957
8943
|
onClick: V,
|
|
8958
8944
|
style: { height: "24px" },
|
|
8959
8945
|
children: u("saveSearchFilter")
|
|
8960
8946
|
}
|
|
8961
8947
|
),
|
|
8962
8948
|
/* @__PURE__ */ s(
|
|
8963
|
-
|
|
8949
|
+
Es,
|
|
8964
8950
|
{
|
|
8965
8951
|
menu: {
|
|
8966
8952
|
items: [
|
|
@@ -8989,7 +8975,7 @@ const li = (t) => {
|
|
|
8989
8975
|
Qe,
|
|
8990
8976
|
{
|
|
8991
8977
|
size: "small",
|
|
8992
|
-
icon: j ? /* @__PURE__ */ s(Dr, {}) : /* @__PURE__ */ s(
|
|
8978
|
+
icon: j ? /* @__PURE__ */ s(Dr, {}) : /* @__PURE__ */ s(us, {}),
|
|
8993
8979
|
onClick: j ? P : V,
|
|
8994
8980
|
style: { height: "24px" },
|
|
8995
8981
|
children: u(j ? "saveAsNewSearchFilter" : "saveSearchFilter")
|
|
@@ -9168,7 +9154,7 @@ function hv(t) {
|
|
|
9168
9154
|
] });
|
|
9169
9155
|
}
|
|
9170
9156
|
function gv(t) {
|
|
9171
|
-
const { onLimitChange: e } = t, { t: n } = Oe(), r = new
|
|
9157
|
+
const { onLimitChange: e } = t, { t: n } = Oe(), r = new ds({ name: "limit" }), o = new ds({ name: "offset" });
|
|
9172
9158
|
return /* @__PURE__ */ U("div", { className: "pl-2 pt-2", children: [
|
|
9173
9159
|
/* @__PURE__ */ s(lt, { children: n("parameters") }, "count_params"),
|
|
9174
9160
|
/* @__PURE__ */ U(yt, { align: "center", children: [
|
|
@@ -9188,7 +9174,7 @@ function gv(t) {
|
|
|
9188
9174
|
] });
|
|
9189
9175
|
}
|
|
9190
9176
|
const { useToken: yv } = at;
|
|
9191
|
-
function
|
|
9177
|
+
function Lo(t) {
|
|
9192
9178
|
const {
|
|
9193
9179
|
fields: e,
|
|
9194
9180
|
searchFields: n = { primary: [], secondary: [] },
|
|
@@ -9843,7 +9829,7 @@ const Sr = () => {
|
|
|
9843
9829
|
}
|
|
9844
9830
|
)
|
|
9845
9831
|
] });
|
|
9846
|
-
},
|
|
9832
|
+
}, Vo = it(
|
|
9847
9833
|
({
|
|
9848
9834
|
value: t,
|
|
9849
9835
|
record: e,
|
|
@@ -9851,7 +9837,7 @@ const Sr = () => {
|
|
|
9851
9837
|
isFieldLoading: r
|
|
9852
9838
|
}) => r != null && r(e, n.key) ? /* @__PURE__ */ s(Pu, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
|
|
9853
9839
|
);
|
|
9854
|
-
|
|
9840
|
+
Vo.displayName = "CellRenderer";
|
|
9855
9841
|
const rd = ({
|
|
9856
9842
|
tableRef: t,
|
|
9857
9843
|
autoRefresh: e
|
|
@@ -9981,7 +9967,7 @@ function Av(t, e) {
|
|
|
9981
9967
|
...vt,
|
|
9982
9968
|
isSortable: tt ? !1 : vt.isSortable,
|
|
9983
9969
|
render: (Nt, St) => /* @__PURE__ */ s(
|
|
9984
|
-
|
|
9970
|
+
Vo,
|
|
9985
9971
|
{
|
|
9986
9972
|
value: Nt,
|
|
9987
9973
|
record: St,
|
|
@@ -10041,10 +10027,10 @@ function Av(t, e) {
|
|
|
10041
10027
|
sort: In.sort || void 0,
|
|
10042
10028
|
sortIndex: In.sortIndex || void 0,
|
|
10043
10029
|
colId: In.colId
|
|
10044
|
-
})), no = It && (It == null ? void 0 : It.length) > 0 ? It : void 0,
|
|
10030
|
+
})), no = It && (It == null ? void 0 : It.length) > 0 ? It : void 0, Bo = ur({
|
|
10045
10031
|
state: no
|
|
10046
10032
|
});
|
|
10047
|
-
Pe == null || Pe(no), St = Pr(
|
|
10033
|
+
Pe == null || Pe(no), St = Pr(Bo);
|
|
10048
10034
|
}
|
|
10049
10035
|
T.current = !0;
|
|
10050
10036
|
const ln = be ? a : ht, Kn = Lr({
|
|
@@ -10336,7 +10322,7 @@ function Av(t, e) {
|
|
|
10336
10322
|
), Ar = be && O && S !== void 0 && S !== null && S === Bt;
|
|
10337
10323
|
return /* @__PURE__ */ U(Yn, { children: [
|
|
10338
10324
|
m === "top" && /* @__PURE__ */ s(
|
|
10339
|
-
|
|
10325
|
+
Lo,
|
|
10340
10326
|
{
|
|
10341
10327
|
...bn,
|
|
10342
10328
|
onClear: Pn,
|
|
@@ -10524,7 +10510,7 @@ const od = Ht(
|
|
|
10524
10510
|
return Us(
|
|
10525
10511
|
R,
|
|
10526
10512
|
{
|
|
10527
|
-
...
|
|
10513
|
+
...No
|
|
10528
10514
|
},
|
|
10529
10515
|
w,
|
|
10530
10516
|
L
|
|
@@ -10882,7 +10868,7 @@ function Fv(t, e) {
|
|
|
10882
10868
|
rootTree: f = !1,
|
|
10883
10869
|
parentContext: u = {},
|
|
10884
10870
|
onChangeSelectedRowKeys: m
|
|
10885
|
-
} = t, [p, g] = _(!1), [h, y] = _(!1), b = Q(!1), v = Q(null), [C, T] = _(), [w, F] = _(), [S, I] = _(), [O, M] = _(), [D, N] = _(200), R = Q(), { height: E } =
|
|
10871
|
+
} = t, [p, g] = _(!1), [h, y] = _(!1), b = Q(!1), v = Q(null), [C, T] = _(), [w, F] = _(), [S, I] = _(), [O, M] = _(), [D, N] = _(200), R = Q(), { height: E } = Oo(), A = Re(
|
|
10886
10872
|
Sn
|
|
10887
10873
|
), { processAction: V } = A || {}, P = Re(
|
|
10888
10874
|
qt
|
|
@@ -11051,7 +11037,7 @@ function Fv(t, e) {
|
|
|
11051
11037
|
[k]
|
|
11052
11038
|
), Ce = x(() => !w || !S ? null : /* @__PURE__ */ U(Fe, { children: [
|
|
11053
11039
|
/* @__PURE__ */ s(
|
|
11054
|
-
|
|
11040
|
+
Lo,
|
|
11055
11041
|
{
|
|
11056
11042
|
fields: { ...S.fields, ...w.fields },
|
|
11057
11043
|
searchFields: Wn([
|
|
@@ -11599,7 +11585,7 @@ const id = Ht(Fv), Ev = Bt, Ov = (t) => {
|
|
|
11599
11585
|
]
|
|
11600
11586
|
);
|
|
11601
11587
|
return t === "top" ? /* @__PURE__ */ s(
|
|
11602
|
-
|
|
11588
|
+
Lo,
|
|
11603
11589
|
{
|
|
11604
11590
|
...u,
|
|
11605
11591
|
onClear: i,
|
|
@@ -11842,7 +11828,7 @@ function Pv(t, e) {
|
|
|
11842
11828
|
...pt,
|
|
11843
11829
|
isSortable: Te ? !1 : pt.isSortable,
|
|
11844
11830
|
render: (xt, ut) => /* @__PURE__ */ s(
|
|
11845
|
-
|
|
11831
|
+
Vo,
|
|
11846
11832
|
{
|
|
11847
11833
|
value: xt,
|
|
11848
11834
|
record: ut,
|
|
@@ -12765,7 +12751,7 @@ const ad = Ht(Pv), { useToken: Lv } = at, ld = ({
|
|
|
12765
12751
|
overflow: "hidden"
|
|
12766
12752
|
},
|
|
12767
12753
|
children: a ? /* @__PURE__ */ U(Fe, { children: [
|
|
12768
|
-
/* @__PURE__ */ s(Wt, { title: a, children: /* @__PURE__ */ s(
|
|
12754
|
+
/* @__PURE__ */ s(Wt, { title: a, children: /* @__PURE__ */ s(Ro, { className: "pr-1 text-xs" }) }),
|
|
12769
12755
|
/* @__PURE__ */ s(Fa, { ellipsis: !0, children: e })
|
|
12770
12756
|
] }) : /* @__PURE__ */ s(
|
|
12771
12757
|
Fa,
|
|
@@ -13251,7 +13237,7 @@ const ud = it(Gv), { useToken: Kv } = at, Jv = 3 * 1e3, Qv = (t) => {
|
|
|
13251
13237
|
fixedHeight: e,
|
|
13252
13238
|
autoRefresh: n
|
|
13253
13239
|
}) => {
|
|
13254
|
-
const { initialView: r, views: o, model: i, domain: a, context: c, limit: l } = t, d =
|
|
13240
|
+
const { initialView: r, views: o, model: i, domain: a, context: c, limit: l } = t, d = Mo(Et.FEATURE_READFORVIEW), f = d != null && d.isEnabled ? pi : Gn, { openShortcut: u } = wr(), m = Q(null), p = Q(null), { isActive: g } = Vt(), h = Sr();
|
|
13255
13241
|
me(() => (p.current && (clearInterval(p.current), p.current = null), n && m.current && r.type === "graph" && g !== !1 && h && (p.current = setInterval(() => {
|
|
13256
13242
|
var b;
|
|
13257
13243
|
(b = m.current) == null || b.refresh();
|
|
@@ -13620,7 +13606,7 @@ const ub = (t) => {
|
|
|
13620
13606
|
case "group":
|
|
13621
13607
|
return Od;
|
|
13622
13608
|
case "label":
|
|
13623
|
-
return
|
|
13609
|
+
return Eo;
|
|
13624
13610
|
case "char":
|
|
13625
13611
|
return Il;
|
|
13626
13612
|
case "text":
|
|
@@ -13716,11 +13702,20 @@ const ub = (t) => {
|
|
|
13716
13702
|
return;
|
|
13717
13703
|
}
|
|
13718
13704
|
}, fb = (t) => {
|
|
13705
|
+
var a;
|
|
13719
13706
|
const { ooui: e } = t, { type: n } = e;
|
|
13720
|
-
let r = n;
|
|
13721
|
-
n === "selection" && e.fieldType === "many2one" && (r = "many2one_lazy"
|
|
13722
|
-
|
|
13723
|
-
|
|
13707
|
+
let r = n, o = e;
|
|
13708
|
+
n === "selection" && e.fieldType === "many2one" && (r = "many2one_lazy", o = new Co({
|
|
13709
|
+
name: e._id,
|
|
13710
|
+
string: e.label,
|
|
13711
|
+
relation: e.relation || ((a = e.raw_props) == null ? void 0 : a.relation),
|
|
13712
|
+
context: e.context,
|
|
13713
|
+
domain: e.domain,
|
|
13714
|
+
readOnly: e.readOnly,
|
|
13715
|
+
required: e.required
|
|
13716
|
+
}), o.parsedWidgetProps = e.parsedWidgetProps);
|
|
13717
|
+
const i = ub(r);
|
|
13718
|
+
return i ? qd(i, { ...t, ooui: o }) : null;
|
|
13724
13719
|
}, mb = ({
|
|
13725
13720
|
item: t,
|
|
13726
13721
|
responsiveBehaviour: e
|
|
@@ -14185,12 +14180,12 @@ function Ab(t, e) {
|
|
|
14185
14180
|
reset: $e,
|
|
14186
14181
|
isDefaultGet: je = !1
|
|
14187
14182
|
}) => {
|
|
14188
|
-
const Rt = { ...$e ? {} : P.getFieldsValue(!0), ...ge },
|
|
14189
|
-
name:
|
|
14183
|
+
const Rt = { ...$e ? {} : P.getFieldsValue(!0), ...ge }, Ho = Ln(Rt, xe), Hd = Object.keys(xe).map((jo) => ({
|
|
14184
|
+
name: jo,
|
|
14190
14185
|
touched: !1,
|
|
14191
|
-
value:
|
|
14186
|
+
value: Ho[jo] !== void 0 ? Ho[jo] : void 0
|
|
14192
14187
|
}));
|
|
14193
|
-
je || (te.current =
|
|
14188
|
+
je || (te.current = Ho), P.setFields(Hd);
|
|
14194
14189
|
},
|
|
14195
14190
|
[P]
|
|
14196
14191
|
), bn = async ({
|
|
@@ -14592,7 +14587,7 @@ function Ab(t, e) {
|
|
|
14592
14587
|
je && Qn(!1), ie(Ke);
|
|
14593
14588
|
}
|
|
14594
14589
|
}
|
|
14595
|
-
const
|
|
14590
|
+
const Bo = () => !A && !R ? /* @__PURE__ */ s(ct, {}) : !n && !h || !T ? null : /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(
|
|
14596
14591
|
bf,
|
|
14597
14592
|
{
|
|
14598
14593
|
getValues: Ct,
|
|
@@ -14688,7 +14683,7 @@ function Ab(t, e) {
|
|
|
14688
14683
|
j((xe = ge.bounds) == null ? void 0 : xe.width);
|
|
14689
14684
|
},
|
|
14690
14685
|
children: ({ measureRef: ge }) => /* @__PURE__ */ U("div", { className: "pb-2", ref: ge, children: [
|
|
14691
|
-
|
|
14686
|
+
Bo(),
|
|
14692
14687
|
c && In()
|
|
14693
14688
|
] })
|
|
14694
14689
|
}
|
|
@@ -14834,7 +14829,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
14834
14829
|
isMenuAction: a = !1,
|
|
14835
14830
|
actionData: c,
|
|
14836
14831
|
...l
|
|
14837
|
-
} = t, { model: d } = l, { modalWidth: f } =
|
|
14832
|
+
} = t, { model: d } = l, { modalWidth: f } = Oo(), [u, m] = _(r), [p, g] = _(!1), [h, y] = _(), { action_id: b, res_id: v, action_type: C, view_id: T } = c || {}, w = !b && !C && !v, {
|
|
14838
14833
|
showNameModal: F,
|
|
14839
14834
|
toggleFavourite: S,
|
|
14840
14835
|
handleSaveFavourite: I,
|
|
@@ -14935,7 +14930,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
14935
14930
|
context: a = {},
|
|
14936
14931
|
canCreate: c = !0
|
|
14937
14932
|
}) => {
|
|
14938
|
-
const [l, d] = _(!1), [f, u] = _([]), [m, p] = _(!1), { modalWidth: g, modalHeight: h } =
|
|
14933
|
+
const [l, d] = _(!1), [f, u] = _([]), [m, p] = _(!1), { modalWidth: g, modalHeight: h } = Oo(), { t: y } = Oe(), { showErrorNotification: b } = At(), {
|
|
14939
14934
|
treeView: v,
|
|
14940
14935
|
formView: C,
|
|
14941
14936
|
loading: T
|
|
@@ -15018,7 +15013,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
15018
15013
|
Qe,
|
|
15019
15014
|
{
|
|
15020
15015
|
disabled: m || !c,
|
|
15021
|
-
icon: /* @__PURE__ */ s(
|
|
15016
|
+
icon: /* @__PURE__ */ s(Io, {}),
|
|
15022
15017
|
onClick: D,
|
|
15023
15018
|
children: y("new")
|
|
15024
15019
|
}
|
|
@@ -15149,7 +15144,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
15149
15144
|
fields: O(),
|
|
15150
15145
|
context: M()
|
|
15151
15146
|
})), I && I.length > 0 && (R.current = R.current.concat(
|
|
15152
|
-
|
|
15147
|
+
xo({
|
|
15153
15148
|
domain: I,
|
|
15154
15149
|
widgetFieldName: l
|
|
15155
15150
|
})
|
|
@@ -15326,7 +15321,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
15326
15321
|
}) => {
|
|
15327
15322
|
gd({
|
|
15328
15323
|
title: t("removeItems"),
|
|
15329
|
-
icon: /* @__PURE__ */ s(
|
|
15324
|
+
icon: /* @__PURE__ */ s(So, {}),
|
|
15330
15325
|
centered: !0,
|
|
15331
15326
|
content: t("confirmRemove"),
|
|
15332
15327
|
okText: t("yesConfirmRemove"),
|
|
@@ -15339,7 +15334,7 @@ const Tr = Ht(Ab), md = (t) => {
|
|
|
15339
15334
|
}) => {
|
|
15340
15335
|
gd({
|
|
15341
15336
|
title: t("unlinkItems"),
|
|
15342
|
-
icon: /* @__PURE__ */ s(
|
|
15337
|
+
icon: /* @__PURE__ */ s(So, {}),
|
|
15343
15338
|
centered: !0,
|
|
15344
15339
|
content: t("confirmUnlink"),
|
|
15345
15340
|
okText: t("yesConfirmUnlink"),
|
|
@@ -15572,7 +15567,7 @@ function kb(t) {
|
|
|
15572
15567
|
Mt,
|
|
15573
15568
|
{
|
|
15574
15569
|
tooltip: I("createNewItem"),
|
|
15575
|
-
icon: /* @__PURE__ */ s(
|
|
15570
|
+
icon: /* @__PURE__ */ s(Io, {}),
|
|
15576
15571
|
disabled: W,
|
|
15577
15572
|
onClick: r
|
|
15578
15573
|
}
|
|
@@ -15604,7 +15599,7 @@ function kb(t) {
|
|
|
15604
15599
|
/* @__PURE__ */ s(
|
|
15605
15600
|
Mt,
|
|
15606
15601
|
{
|
|
15607
|
-
icon: /* @__PURE__ */ s(
|
|
15602
|
+
icon: /* @__PURE__ */ s(Ro, {}),
|
|
15608
15603
|
tooltip: I("showLogs"),
|
|
15609
15604
|
disabled: !(a === "form" && F !== void 0 && F > 0 || a === "tree" && g.length === 1 && (g == null ? void 0 : g[0]) !== void 0 && parseInt(g[0]) > 0),
|
|
15610
15605
|
onClick: () => Gs(
|
|
@@ -15658,7 +15653,7 @@ function kb(t) {
|
|
|
15658
15653
|
/* @__PURE__ */ s(
|
|
15659
15654
|
Cn,
|
|
15660
15655
|
{
|
|
15661
|
-
icon: /* @__PURE__ */ s(
|
|
15656
|
+
icon: /* @__PURE__ */ s(To, {}),
|
|
15662
15657
|
...a === "form" ? H : $
|
|
15663
15658
|
}
|
|
15664
15659
|
)
|
|
@@ -15668,7 +15663,7 @@ function kb(t) {
|
|
|
15668
15663
|
/* @__PURE__ */ s(
|
|
15669
15664
|
Cn,
|
|
15670
15665
|
{
|
|
15671
|
-
icon: /* @__PURE__ */ s(
|
|
15666
|
+
icon: /* @__PURE__ */ s(Ao, {}),
|
|
15672
15667
|
...a === "form" ? z : k
|
|
15673
15668
|
}
|
|
15674
15669
|
)
|
|
@@ -15678,7 +15673,7 @@ function kb(t) {
|
|
|
15678
15673
|
/* @__PURE__ */ s(
|
|
15679
15674
|
Cn,
|
|
15680
15675
|
{
|
|
15681
|
-
icon: /* @__PURE__ */ s(
|
|
15676
|
+
icon: /* @__PURE__ */ s(_o, {}),
|
|
15682
15677
|
...L
|
|
15683
15678
|
}
|
|
15684
15679
|
)
|
|
@@ -15868,7 +15863,7 @@ const Pb = (t) => {
|
|
|
15868
15863
|
fields: m(),
|
|
15869
15864
|
context: p()
|
|
15870
15865
|
})), g && g.length > 0 && (ie = ie.concat(
|
|
15871
|
-
|
|
15866
|
+
xo({
|
|
15872
15867
|
domain: g,
|
|
15873
15868
|
widgetFieldName: ye
|
|
15874
15869
|
})
|
|
@@ -16224,7 +16219,7 @@ const Pb = (t) => {
|
|
|
16224
16219
|
fields: o(),
|
|
16225
16220
|
context: i()
|
|
16226
16221
|
})), a && a.length > 0 && (d = d.concat(
|
|
16227
|
-
|
|
16222
|
+
xo({
|
|
16228
16223
|
domain: a,
|
|
16229
16224
|
widgetFieldName: t
|
|
16230
16225
|
})
|
|
@@ -16707,7 +16702,7 @@ const Rd = ({
|
|
|
16707
16702
|
}), q = K(() => z ? z.map((Ie) => ({
|
|
16708
16703
|
...Ie,
|
|
16709
16704
|
render: (ie, ee) => /* @__PURE__ */ s(
|
|
16710
|
-
|
|
16705
|
+
Vo,
|
|
16711
16706
|
{
|
|
16712
16707
|
value: ie,
|
|
16713
16708
|
record: ee,
|
|
@@ -17276,7 +17271,7 @@ const Rd = ({
|
|
|
17276
17271
|
const O = wt(() => t.length, [t]), M = wt(() => Us(
|
|
17277
17272
|
o,
|
|
17278
17273
|
{
|
|
17279
|
-
...
|
|
17274
|
+
...No
|
|
17280
17275
|
},
|
|
17281
17276
|
i,
|
|
17282
17277
|
I
|
|
@@ -17861,7 +17856,7 @@ function ow(t) {
|
|
|
17861
17856
|
}
|
|
17862
17857
|
);
|
|
17863
17858
|
}
|
|
17864
|
-
const { useToken: sw } = at, { TextArea:
|
|
17859
|
+
const { useToken: sw } = at, { TextArea: Ts } = Tt, iw = (t) => {
|
|
17865
17860
|
const { ooui: e } = t, { id: n, readOnly: r, required: o, height: i, translatable: a } = e, { token: c } = sw(), l = o && !r ? { backgroundColor: c.colorPrimaryBg } : void 0, d = Re(dt), { elementHasLostFocus: f } = d || {};
|
|
17866
17861
|
return /* @__PURE__ */ s(Ze, { required: o, ...t, children: a ? /* @__PURE__ */ s(
|
|
17867
17862
|
aw,
|
|
@@ -17871,7 +17866,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
17871
17866
|
requiredStyle: l
|
|
17872
17867
|
}
|
|
17873
17868
|
) : /* @__PURE__ */ s(
|
|
17874
|
-
|
|
17869
|
+
Ts,
|
|
17875
17870
|
{
|
|
17876
17871
|
disabled: r || a,
|
|
17877
17872
|
style: {
|
|
@@ -17910,7 +17905,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
17910
17905
|
u || m(!0);
|
|
17911
17906
|
},
|
|
17912
17907
|
children: /* @__PURE__ */ s(
|
|
17913
|
-
|
|
17908
|
+
Ts,
|
|
17914
17909
|
{
|
|
17915
17910
|
value: t,
|
|
17916
17911
|
onChange: (g) => {
|
|
@@ -17947,7 +17942,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
17947
17942
|
)
|
|
17948
17943
|
] }) : /* @__PURE__ */ U(Fe, { children: [
|
|
17949
17944
|
/* @__PURE__ */ s(lt, { gutter: 8, wrap: !1, children: /* @__PURE__ */ s(
|
|
17950
|
-
|
|
17945
|
+
Ts,
|
|
17951
17946
|
{
|
|
17952
17947
|
value: t,
|
|
17953
17948
|
onChange: (g) => {
|
|
@@ -18023,7 +18018,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18023
18018
|
return a.current["/"] = y, Da({ fields: y });
|
|
18024
18019
|
}, [t, e, a]), u = x(
|
|
18025
18020
|
async (y) => {
|
|
18026
|
-
const v =
|
|
18021
|
+
const v = Is(y, a.current)[_s(y)], C = v.relation, T = await Y.getHandler().getFields({
|
|
18027
18022
|
model: C,
|
|
18028
18023
|
context: e,
|
|
18029
18024
|
fields: []
|
|
@@ -18049,7 +18044,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18049
18044
|
predefinedExports: y.map((C) => ({
|
|
18050
18045
|
...C,
|
|
18051
18046
|
fields: C.fields.map((T) => {
|
|
18052
|
-
const w =
|
|
18047
|
+
const w = _s(T.key), F = Is(T.key, a.current);
|
|
18053
18048
|
if (!F)
|
|
18054
18049
|
return {
|
|
18055
18050
|
key: T.key
|
|
@@ -18138,12 +18133,12 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18138
18133
|
}, Dd = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", dw = ({
|
|
18139
18134
|
parentKey: t,
|
|
18140
18135
|
key: e
|
|
18141
|
-
}) => `${t ? t + "/" : ""}${e}`,
|
|
18136
|
+
}) => `${t ? t + "/" : ""}${e}`, As = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), _s = (t) => {
|
|
18142
18137
|
if (t.indexOf("/") === -1)
|
|
18143
18138
|
return t;
|
|
18144
18139
|
const e = t.split("/");
|
|
18145
18140
|
return e[e.length - 1];
|
|
18146
|
-
},
|
|
18141
|
+
}, Is = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[As(t)], uw = ({
|
|
18147
18142
|
title: t,
|
|
18148
18143
|
parentTitle: e
|
|
18149
18144
|
}) => `${e ? e + " → " : ""}${t}`, fw = async ({
|
|
@@ -18173,8 +18168,8 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18173
18168
|
...new Set(
|
|
18174
18169
|
e.filter((n) => {
|
|
18175
18170
|
var r, o;
|
|
18176
|
-
return n.indexOf("/") === -1 ? !((r = t["/"]) != null && r[n]) : !((o = t == null ? void 0 : t[
|
|
18177
|
-
}).map((n) =>
|
|
18171
|
+
return n.indexOf("/") === -1 ? !((r = t["/"]) != null && r[n]) : !((o = t == null ? void 0 : t[As(n)]) != null && o[n]);
|
|
18172
|
+
}).map((n) => As(n))
|
|
18178
18173
|
)
|
|
18179
18174
|
]), pw = async ({
|
|
18180
18175
|
predefinedExports: t,
|
|
@@ -18201,7 +18196,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18201
18196
|
keys: t,
|
|
18202
18197
|
fields: e
|
|
18203
18198
|
}) => t.map((n) => {
|
|
18204
|
-
const r =
|
|
18199
|
+
const r = _s(n), i = Is(n, e)[r], a = Dd(i), c = i.is_function === !0;
|
|
18205
18200
|
return a && !c ? `${n}/id` : n;
|
|
18206
18201
|
}), gw = (t) => {
|
|
18207
18202
|
const e = /* @__PURE__ */ new Map(), n = [];
|
|
@@ -18283,7 +18278,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18283
18278
|
}, xw = (t) => {
|
|
18284
18279
|
const { readOnly: e } = t.ooui;
|
|
18285
18280
|
return /* @__PURE__ */ s(
|
|
18286
|
-
|
|
18281
|
+
ys,
|
|
18287
18282
|
{
|
|
18288
18283
|
onChange: (r, o) => {
|
|
18289
18284
|
t.onChange && t.onChange(o);
|
|
@@ -18328,7 +18323,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18328
18323
|
/* @__PURE__ */ s(Je, { flex: "3", children: /* @__PURE__ */ s(
|
|
18329
18324
|
hd,
|
|
18330
18325
|
{
|
|
18331
|
-
ooui: new
|
|
18326
|
+
ooui: new Co({
|
|
18332
18327
|
name: "object_value",
|
|
18333
18328
|
relation: u,
|
|
18334
18329
|
readonly: a,
|
|
@@ -18509,7 +18504,7 @@ const { useToken: sw } = at, { TextArea: Ss } = Tt, iw = (t) => {
|
|
|
18509
18504
|
(u = d.current) == null || u.close(), o();
|
|
18510
18505
|
},
|
|
18511
18506
|
children: [
|
|
18512
|
-
/* @__PURE__ */ s(
|
|
18507
|
+
/* @__PURE__ */ s(Io, {}),
|
|
18513
18508
|
" ",
|
|
18514
18509
|
l("addNewAttachment")
|
|
18515
18510
|
]
|
|
@@ -18891,7 +18886,7 @@ function Mw({ toolbar: t }) {
|
|
|
18891
18886
|
/* @__PURE__ */ s(
|
|
18892
18887
|
Ut,
|
|
18893
18888
|
{
|
|
18894
|
-
icon: /* @__PURE__ */ s(
|
|
18889
|
+
icon: /* @__PURE__ */ s(us, {}),
|
|
18895
18890
|
tooltip: n("save"),
|
|
18896
18891
|
disabled: !m || W || !(P != null && P.write),
|
|
18897
18892
|
loading: p,
|
|
@@ -18930,7 +18925,7 @@ function Mw({ toolbar: t }) {
|
|
|
18930
18925
|
/* @__PURE__ */ s(
|
|
18931
18926
|
Ut,
|
|
18932
18927
|
{
|
|
18933
|
-
icon: /* @__PURE__ */ s(
|
|
18928
|
+
icon: /* @__PURE__ */ s(Ro, {}),
|
|
18934
18929
|
tooltip: n("showLogs"),
|
|
18935
18930
|
disabled: W || g === void 0,
|
|
18936
18931
|
onClick: () => Gs(C, g, n)
|
|
@@ -18939,7 +18934,7 @@ function Mw({ toolbar: t }) {
|
|
|
18939
18934
|
/* @__PURE__ */ s(
|
|
18940
18935
|
Ut,
|
|
18941
18936
|
{
|
|
18942
|
-
icon: /* @__PURE__ */ s(
|
|
18937
|
+
icon: /* @__PURE__ */ s(Fo, {}),
|
|
18943
18938
|
tooltip: n("refresh"),
|
|
18944
18939
|
disabled: W || g === void 0,
|
|
18945
18940
|
onClick: B
|
|
@@ -18968,9 +18963,9 @@ function Mw({ toolbar: t }) {
|
|
|
18968
18963
|
}
|
|
18969
18964
|
),
|
|
18970
18965
|
/* @__PURE__ */ s(Dt, {}),
|
|
18971
|
-
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(
|
|
18972
|
-
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(
|
|
18973
|
-
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(
|
|
18966
|
+
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(To, {}), ...J }),
|
|
18967
|
+
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(Ao, {}), ...ne }),
|
|
18968
|
+
/* @__PURE__ */ s(Cn, { icon: /* @__PURE__ */ s(_o, {}), ...Z }),
|
|
18974
18969
|
/* @__PURE__ */ s(
|
|
18975
18970
|
Fw,
|
|
18976
18971
|
{
|
|
@@ -18990,7 +18985,7 @@ function Mw({ toolbar: t }) {
|
|
|
18990
18985
|
}
|
|
18991
18986
|
),
|
|
18992
18987
|
/* @__PURE__ */ s(Dt, {}),
|
|
18993
|
-
/* @__PURE__ */ s(
|
|
18988
|
+
/* @__PURE__ */ s(ko, { res_id: g })
|
|
18994
18989
|
] }) : null;
|
|
18995
18990
|
}
|
|
18996
18991
|
const kw = it(Mw), kd = it(
|
|
@@ -19175,7 +19170,7 @@ const Ma = (t, e) => ({
|
|
|
19175
19170
|
tabIndex: 0,
|
|
19176
19171
|
loading: o,
|
|
19177
19172
|
style: { marginLeft: 15 },
|
|
19178
|
-
icon: /* @__PURE__ */ s(
|
|
19173
|
+
icon: /* @__PURE__ */ s(_o, {}),
|
|
19179
19174
|
htmlType: "submit",
|
|
19180
19175
|
type: "primary",
|
|
19181
19176
|
disabled: o,
|
|
@@ -19224,7 +19219,7 @@ function Vw({ refreshGraph: t }) {
|
|
|
19224
19219
|
/* @__PURE__ */ s(
|
|
19225
19220
|
Ut,
|
|
19226
19221
|
{
|
|
19227
|
-
icon: /* @__PURE__ */ s(
|
|
19222
|
+
icon: /* @__PURE__ */ s(Fo, {}),
|
|
19228
19223
|
tooltip: e("refresh"),
|
|
19229
19224
|
disabled: l,
|
|
19230
19225
|
loading: !1,
|
|
@@ -19246,7 +19241,7 @@ function Vw({ refreshGraph: t }) {
|
|
|
19246
19241
|
}
|
|
19247
19242
|
),
|
|
19248
19243
|
/* @__PURE__ */ s(Dt, {}),
|
|
19249
|
-
/* @__PURE__ */ s(
|
|
19244
|
+
/* @__PURE__ */ s(ko, { searchParams: i })
|
|
19250
19245
|
] });
|
|
19251
19246
|
}
|
|
19252
19247
|
const Bw = {
|
|
@@ -19386,7 +19381,7 @@ const Bw = {
|
|
|
19386
19381
|
) }),
|
|
19387
19382
|
/* @__PURE__ */ U("div", { style: Bw, children: [
|
|
19388
19383
|
/* @__PURE__ */ s(
|
|
19389
|
-
|
|
19384
|
+
Lo,
|
|
19390
19385
|
{
|
|
19391
19386
|
fields: {
|
|
19392
19387
|
...c == null ? void 0 : c.fields,
|
|
@@ -19431,8 +19426,8 @@ const Bw = {
|
|
|
19431
19426
|
}),
|
|
19432
19427
|
[i, n]
|
|
19433
19428
|
);
|
|
19434
|
-
return /* @__PURE__ */ s(
|
|
19435
|
-
},
|
|
19429
|
+
return /* @__PURE__ */ s(Os, { ...r, style: a, children: o });
|
|
19430
|
+
}, Rs = it(Uw), Ww = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(vi, {}) }), qw = (t) => t.replace(/@(\w+)/g, "**@$1**"), vi = Ht(
|
|
19436
19431
|
(t, e) => {
|
|
19437
19432
|
const {
|
|
19438
19433
|
value: n = "",
|
|
@@ -19551,7 +19546,7 @@ const Yw = {
|
|
|
19551
19546
|
}
|
|
19552
19547
|
)
|
|
19553
19548
|
}
|
|
19554
|
-
) }) }), { Title: Kw, Text: Ir } = Kt, { useToken: $d } = at, Jw = (t) => t.charAt(0).toUpperCase() + t.slice(1), Qw = (t) => Jw(st(t).calendar()),
|
|
19549
|
+
) }) }), { Title: Kw, Text: Ir } = Kt, { useToken: $d } = at, Jw = (t) => t.charAt(0).toUpperCase() + t.slice(1), Qw = (t) => Jw(st(t).calendar()), Fs = 450, ka = 8, Xw = { minRows: 1, maxRows: 4 }, Zw = {
|
|
19555
19550
|
display: "flex",
|
|
19556
19551
|
justifyContent: "center",
|
|
19557
19552
|
alignItems: "center",
|
|
@@ -19669,7 +19664,7 @@ const Yw = {
|
|
|
19669
19664
|
), F = /* @__PURE__ */ s("div", { style: b, children: e ? /* @__PURE__ */ U(Fe, { children: [
|
|
19670
19665
|
/* @__PURE__ */ s(Ir, { style: v, children: l }),
|
|
19671
19666
|
/* @__PURE__ */ s(
|
|
19672
|
-
|
|
19667
|
+
Rs,
|
|
19673
19668
|
{
|
|
19674
19669
|
userName: l,
|
|
19675
19670
|
size: 28,
|
|
@@ -19678,7 +19673,7 @@ const Yw = {
|
|
|
19678
19673
|
)
|
|
19679
19674
|
] }) : /* @__PURE__ */ U(Fe, { children: [
|
|
19680
19675
|
/* @__PURE__ */ s(
|
|
19681
|
-
|
|
19676
|
+
Rs,
|
|
19682
19677
|
{
|
|
19683
19678
|
userName: l,
|
|
19684
19679
|
size: 28,
|
|
@@ -19779,7 +19774,7 @@ const r0 = (t) => {
|
|
|
19779
19774
|
() => T.map((B) => ({
|
|
19780
19775
|
value: B.login,
|
|
19781
19776
|
label: /* @__PURE__ */ U("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
19782
|
-
/* @__PURE__ */ s(
|
|
19777
|
+
/* @__PURE__ */ s(Rs, { userName: B.name, size: 24 }),
|
|
19783
19778
|
/* @__PURE__ */ s("span", { children: B.name }),
|
|
19784
19779
|
/* @__PURE__ */ U(Ir, { type: "secondary", style: { fontSize: 12 }, children: [
|
|
19785
19780
|
"@",
|
|
@@ -19807,7 +19802,7 @@ const r0 = (t) => {
|
|
|
19807
19802
|
top: 0,
|
|
19808
19803
|
right: 0,
|
|
19809
19804
|
bottom: 0,
|
|
19810
|
-
width:
|
|
19805
|
+
width: Fs,
|
|
19811
19806
|
backgroundColor: m.colorBgContainer,
|
|
19812
19807
|
borderLeft: `1px solid ${m.colorBorder}`,
|
|
19813
19808
|
display: "flex",
|
|
@@ -19837,10 +19832,10 @@ const r0 = (t) => {
|
|
|
19837
19832
|
[m.colorBorder, m.colorBgElevated]
|
|
19838
19833
|
);
|
|
19839
19834
|
return v ? /* @__PURE__ */ s(bl, { onExitComplete: N, children: e && /* @__PURE__ */ U(
|
|
19840
|
-
|
|
19835
|
+
ps.div,
|
|
19841
19836
|
{
|
|
19842
19837
|
initial: { width: 0, opacity: 0 },
|
|
19843
|
-
animate: { width:
|
|
19838
|
+
animate: { width: Fs, opacity: 1 },
|
|
19844
19839
|
exit: { width: 0, opacity: 0 },
|
|
19845
19840
|
transition: { type: "spring", stiffness: 300, damping: 30 },
|
|
19846
19841
|
style: k,
|
|
@@ -20043,7 +20038,7 @@ const r0 = (t) => {
|
|
|
20043
20038
|
scrollbarWidth: "thin",
|
|
20044
20039
|
scrollbarColor: `${T.colorTextQuaternary} ${T.colorBgContainer}`,
|
|
20045
20040
|
paddingRight: ka,
|
|
20046
|
-
marginRight: w && g ?
|
|
20041
|
+
marginRight: w && g ? Fs + ka : 0,
|
|
20047
20042
|
transition: "margin-right 0.3s ease"
|
|
20048
20043
|
}),
|
|
20049
20044
|
[
|
|
@@ -20144,7 +20139,7 @@ function c0() {
|
|
|
20144
20139
|
/* @__PURE__ */ s(
|
|
20145
20140
|
Ut,
|
|
20146
20141
|
{
|
|
20147
|
-
icon: /* @__PURE__ */ s(
|
|
20142
|
+
icon: /* @__PURE__ */ s(Fo, {}),
|
|
20148
20143
|
tooltip: i("refresh"),
|
|
20149
20144
|
disabled: t,
|
|
20150
20145
|
loading: !1,
|
|
@@ -20154,7 +20149,7 @@ function c0() {
|
|
|
20154
20149
|
}
|
|
20155
20150
|
),
|
|
20156
20151
|
/* @__PURE__ */ s(Dt, {}),
|
|
20157
|
-
/* @__PURE__ */ s(
|
|
20152
|
+
/* @__PURE__ */ s(ko, {})
|
|
20158
20153
|
] });
|
|
20159
20154
|
}
|
|
20160
20155
|
const d0 = {
|
|
@@ -20220,8 +20215,8 @@ function Ld({
|
|
|
20220
20215
|
const Na = ({ value: t }) => K(
|
|
20221
20216
|
() => /* @__PURE__ */ s("div", { style: { display: "inline-block" }, children: t }),
|
|
20222
20217
|
[t]
|
|
20223
|
-
),
|
|
20224
|
-
...
|
|
20218
|
+
), as = {
|
|
20219
|
+
...No,
|
|
20225
20220
|
integer: Na,
|
|
20226
20221
|
float: Na
|
|
20227
20222
|
}, f0 = mt(Wr)`
|
|
@@ -20339,7 +20334,7 @@ const Na = ({ value: t }) => K(
|
|
|
20339
20334
|
value: B[1],
|
|
20340
20335
|
model: ne == null ? void 0 : ne.relation
|
|
20341
20336
|
});
|
|
20342
|
-
const Z =
|
|
20337
|
+
const Z = as == null ? void 0 : as[J], ue = (oe) => {
|
|
20343
20338
|
J === "many2one" && oe.stopPropagation();
|
|
20344
20339
|
}, re = (oe) => {
|
|
20345
20340
|
oe.stopPropagation(), l == null || l();
|
|
@@ -21004,7 +20999,7 @@ const Na = ({ value: t }) => K(
|
|
|
21004
20999
|
style: { color: z.colorTextSecondary }
|
|
21005
21000
|
}
|
|
21006
21001
|
) : /* @__PURE__ */ s(
|
|
21007
|
-
|
|
21002
|
+
Es,
|
|
21008
21003
|
{
|
|
21009
21004
|
menu: { items: be, onClick: ve },
|
|
21010
21005
|
trigger: ["click"],
|
|
@@ -21323,7 +21318,7 @@ const Na = ({ value: t }) => K(
|
|
|
21323
21318
|
te(), ae();
|
|
21324
21319
|
}, []);
|
|
21325
21320
|
const q = ml(
|
|
21326
|
-
|
|
21321
|
+
ms(pl, {
|
|
21327
21322
|
activationConstraint: {
|
|
21328
21323
|
distance: 8
|
|
21329
21324
|
}
|
|
@@ -22900,7 +22895,7 @@ const Y0 = af(lf), z0 = (t) => {
|
|
|
22900
22895
|
children: r
|
|
22901
22896
|
}
|
|
22902
22897
|
);
|
|
22903
|
-
},
|
|
22898
|
+
}, ls = "line_ids";
|
|
22904
22899
|
function G0(t, e) {
|
|
22905
22900
|
const { model: n, context: r = {}, id: o, configAction: i } = t, [a, c] = _([]), [l, d] = _(!1), [f, u] = _(), {
|
|
22906
22901
|
setIsLoading: m,
|
|
@@ -22922,7 +22917,7 @@ function G0(t, e) {
|
|
|
22922
22917
|
async function w() {
|
|
22923
22918
|
d(!0), m(!0), u(void 0);
|
|
22924
22919
|
try {
|
|
22925
|
-
const N = await F(), R = await I(N), E = N.fields[
|
|
22920
|
+
const N = await F(), R = await I(N), E = N.fields[ls].relation, A = R[ls].items;
|
|
22926
22921
|
y.current = N.fields;
|
|
22927
22922
|
const V = await S({
|
|
22928
22923
|
items: A,
|
|
@@ -23025,7 +23020,7 @@ function G0(t, e) {
|
|
|
23025
23020
|
await C({
|
|
23026
23021
|
model: n,
|
|
23027
23022
|
id: o,
|
|
23028
|
-
values: { [
|
|
23023
|
+
values: { [ls]: V },
|
|
23029
23024
|
fields: y.current,
|
|
23030
23025
|
context: r
|
|
23031
23026
|
});
|
|
@@ -23386,7 +23381,7 @@ const K0 = Ht(G0), J0 = (t) => {
|
|
|
23386
23381
|
const r = `https://www.gravatar.com/avatar/${sf(
|
|
23387
23382
|
t
|
|
23388
23383
|
)}?s=${e}&d=${n}`;
|
|
23389
|
-
return /* @__PURE__ */ s(
|
|
23384
|
+
return /* @__PURE__ */ s(Os, { src: r, size: e });
|
|
23390
23385
|
};
|
|
23391
23386
|
function uC({ text: t }) {
|
|
23392
23387
|
const e = t.split(`
|
|
@@ -23406,7 +23401,7 @@ const fC = (t) => {
|
|
|
23406
23401
|
title: e.author,
|
|
23407
23402
|
description: /* @__PURE__ */ U(yt, { direction: "horizontal", children: [
|
|
23408
23403
|
/* @__PURE__ */ s("span", { title: e.date, children: st(e.date).fromNow() }),
|
|
23409
|
-
e.isAuthor && /* @__PURE__ */ s(
|
|
23404
|
+
e.isAuthor && /* @__PURE__ */ s(Ds, { color: "blue", children: r("author") })
|
|
23410
23405
|
] }),
|
|
23411
23406
|
style: { marginBottom: "5px" }
|
|
23412
23407
|
}
|
|
@@ -23519,7 +23514,7 @@ function AC() {
|
|
|
23519
23514
|
return /* @__PURE__ */ s(SC, { className: "m-5 select-none", children: /* @__PURE__ */ s(TC, { level: 5, children: t("welcome") }) });
|
|
23520
23515
|
}
|
|
23521
23516
|
function _C(t, e) {
|
|
23522
|
-
const { children: n } = t, [r, o] = _("welcome"), { t: i } = Oe(), { showErrorNotification: a } = At(), { globalValues: c, rootContext: l } = Jt(), d =
|
|
23517
|
+
const { children: n } = t, [r, o] = _("welcome"), { t: i } = Oe(), { showErrorNotification: a } = At(), { globalValues: c, rootContext: l } = Jt(), d = Mo(
|
|
23523
23518
|
Et.FEATURE_LOGGABLE_ACTIONS
|
|
23524
23519
|
), [f, u] = Ee(
|
|
23525
23520
|
Y.getHandler().logAction
|
|
@@ -24212,12 +24207,12 @@ function Dx() {
|
|
|
24212
24207
|
onReorderTabs: i,
|
|
24213
24208
|
onUpdateTabTitle: a
|
|
24214
24209
|
} = t || {}, c = Q(null), [l, d] = _(!1), f = ml(
|
|
24215
|
-
|
|
24210
|
+
ms(pl, {
|
|
24216
24211
|
activationConstraint: {
|
|
24217
24212
|
distance: 8
|
|
24218
24213
|
}
|
|
24219
24214
|
}),
|
|
24220
|
-
|
|
24215
|
+
ms(ff, {
|
|
24221
24216
|
coordinateGetter: hf
|
|
24222
24217
|
})
|
|
24223
24218
|
), u = x((b) => {
|
|
@@ -24504,7 +24499,7 @@ const { useToken: OC } = at, kx = (t) => {
|
|
|
24504
24499
|
] });
|
|
24505
24500
|
};
|
|
24506
24501
|
export {
|
|
24507
|
-
|
|
24502
|
+
hs as ACTION_TYPE_REPORT,
|
|
24508
24503
|
Sm as ACTION_TYPE_UPDATE_TOKEN,
|
|
24509
24504
|
Cm as ACTION_TYPE_URL,
|
|
24510
24505
|
Dn as ACTION_TYPE_WINDOW,
|
|
@@ -24552,7 +24547,7 @@ export {
|
|
|
24552
24547
|
Wm as Icon,
|
|
24553
24548
|
Ym as Image,
|
|
24554
24549
|
Vr as Integer,
|
|
24555
|
-
|
|
24550
|
+
Eo as Label,
|
|
24556
24551
|
xm as MODEL_ACTIONS,
|
|
24557
24552
|
Fb as Many2one,
|
|
24558
24553
|
km as Many2oneLazy,
|
|
@@ -24567,7 +24562,7 @@ export {
|
|
|
24567
24562
|
X0 as Radio,
|
|
24568
24563
|
Sw as Reference,
|
|
24569
24564
|
Ox as RootView,
|
|
24570
|
-
|
|
24565
|
+
Lo as SearchFilter,
|
|
24571
24566
|
to as SearchModal,
|
|
24572
24567
|
id as SearchTree,
|
|
24573
24568
|
Ol as Selection,
|
|
@@ -24585,7 +24580,7 @@ export {
|
|
|
24585
24580
|
Bv as TreeActionView,
|
|
24586
24581
|
$w as Url,
|
|
24587
24582
|
Ex as UserAllFeatureKeys,
|
|
24588
|
-
|
|
24583
|
+
Rs as UserAvatar,
|
|
24589
24584
|
yn as UserFeatureKeys,
|
|
24590
24585
|
Px as dayjs,
|
|
24591
24586
|
un as showConfirmDialog,
|