@gisce/react-ooui 2.98.1 → 2.98.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +163 -163
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/views/Form.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -17,7 +17,7 @@ import Xc from "dayjs/plugin/duration";
|
|
|
17
17
|
import Qc from "dayjs/plugin/relativeTime";
|
|
18
18
|
import Zc from "dayjs/plugin/weekday";
|
|
19
19
|
import ed from "dayjs/plugin/localeData";
|
|
20
|
-
import { useLocale as
|
|
20
|
+
import { useLocale as xe, Icon as Mo, iconMapper as Pt, useNotificationContext as td, FormigaConfigProvider as nd, mergeStrings as rd, Dropdown as ca, ToggleDropdownButton as od, getTablerIcon as da, DropdownButton as Zt, useDatePickerLocale as sd, SkeletonPill as id, Many2OneSuffix as ad, Many2OneSuffixModal as Ls, DateValue as ld, DateTimeValue as cd, PaginationHeader as dd, FieldSet as ud, ExportModal as fd, DateInput as pd, HTMLPreview as md, FavouriteButton as hd } from "@gisce/react-formiga-components";
|
|
21
21
|
import gd from "antd/lib/input/TextArea";
|
|
22
22
|
import St from "styled-components";
|
|
23
23
|
import os from "react-measure";
|
|
@@ -333,7 +333,7 @@ function We({
|
|
|
333
333
|
validator: c
|
|
334
334
|
}) {
|
|
335
335
|
var $;
|
|
336
|
-
const { id: d, label: f, tooltip: u } = t, { t: p } =
|
|
336
|
+
const { id: d, label: f, tooltip: u } = t, { t: p } = xe(), m = Ot.useFormInstance(), g = a ? [
|
|
337
337
|
{
|
|
338
338
|
required: !0,
|
|
339
339
|
message: p("fillRequiredField"),
|
|
@@ -402,7 +402,7 @@ const { confirm: ou } = Ft, tn = ({
|
|
|
402
402
|
icon: l,
|
|
403
403
|
context: c,
|
|
404
404
|
readOnly: d
|
|
405
|
-
} = e, f = pe(Qe), { executeButtonAction: u } = f || {}, [p, m] = T(!1), { t: g } =
|
|
405
|
+
} = e, f = pe(Qe), { executeButtonAction: u } = f || {}, [p, m] = T(!1), { t: g } = xe();
|
|
406
406
|
async function h() {
|
|
407
407
|
m(!0), await u({ type: i, action: n, context: c }), m(!1);
|
|
408
408
|
}
|
|
@@ -451,7 +451,7 @@ const { confirm: ou } = Ft, tn = ({
|
|
|
451
451
|
primary: f,
|
|
452
452
|
context: u,
|
|
453
453
|
readOnly: p
|
|
454
|
-
} = n || {}, m = pe(Qe), { executeButtonAction: g } = m || {}, [h, v] = T(!1), { t: y } =
|
|
454
|
+
} = n || {}, m = pe(Qe), { executeButtonAction: g } = m || {}, [h, v] = T(!1), { t: y } = xe();
|
|
455
455
|
function b() {
|
|
456
456
|
if (h)
|
|
457
457
|
return /* @__PURE__ */ s(Bt, {});
|
|
@@ -502,7 +502,7 @@ const { confirm: ou } = Ft, tn = ({
|
|
|
502
502
|
if (n)
|
|
503
503
|
return /* @__PURE__ */ s(as, { ooui: n });
|
|
504
504
|
}, iu = (t) => {
|
|
505
|
-
const { t: e } =
|
|
505
|
+
const { t: e } = xe(), { ooui: n, executeButtonAction: r } = t;
|
|
506
506
|
if (!n)
|
|
507
507
|
return null;
|
|
508
508
|
const o = n.map((i) => {
|
|
@@ -704,7 +704,7 @@ const va = (t) => {
|
|
|
704
704
|
destroyErrorNotification: n
|
|
705
705
|
};
|
|
706
706
|
}, ba = (t) => {
|
|
707
|
-
const { visible: e, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = t, { modalWidth: l } = Jr(), { t: c } =
|
|
707
|
+
const { visible: e, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = t, { modalWidth: l } = Jr(), { t: c } = xe(), [d, f] = T([]), [u, p] = T(!1), [m, g] = T(!1), [h, v] = T({}), y = Z(), { showErrorNotification: b } = yt();
|
|
708
708
|
ce(() => {
|
|
709
709
|
e ? w() : v({});
|
|
710
710
|
}, [e]);
|
|
@@ -931,7 +931,7 @@ const Ca = it(
|
|
|
931
931
|
fetchValues: l,
|
|
932
932
|
formHasChanges: c,
|
|
933
933
|
elementHasLostFocus: d
|
|
934
|
-
} = o || {}, [f, u] = T(!1), { t: p } =
|
|
934
|
+
} = o || {}, [f, u] = T(!1), { t: p } = xe(), { required: m, readOnly: g } = t, h = re(
|
|
935
935
|
() => m && !g,
|
|
936
936
|
[m, g]
|
|
937
937
|
), v = O(
|
|
@@ -1100,7 +1100,7 @@ const cs = (t) => {
|
|
|
1100
1100
|
const { ooui: e } = t, { required: n, id: r } = e;
|
|
1101
1101
|
return Pt(r) ? /* @__PURE__ */ s(cs, { value: r }) : /* @__PURE__ */ s(We, { required: n, ...t, children: /* @__PURE__ */ s(Ru, { ooui: e }) });
|
|
1102
1102
|
}, Ru = (t) => {
|
|
1103
|
-
const { ooui: e, value: n, onChange: r } = t, { readOnly: o } = e, i = Z(null), { t: a } =
|
|
1103
|
+
const { ooui: e, value: n, onChange: r } = t, { readOnly: o } = e, i = Z(null), { t: a } = xe(), l = (u) => {
|
|
1104
1104
|
r == null || r(u);
|
|
1105
1105
|
};
|
|
1106
1106
|
async function c() {
|
|
@@ -2976,7 +2976,7 @@ const hf = {
|
|
|
2976
2976
|
yAxisOpts: i,
|
|
2977
2977
|
fixedHeight: a
|
|
2978
2978
|
}) => {
|
|
2979
|
-
const { t: l } =
|
|
2979
|
+
const { t: l } = xe(), c = re(() => {
|
|
2980
2980
|
if (!(t !== "pie" || e.reduce(
|
|
2981
2981
|
(v, y) => y.operator === "+" ? v + y.value : 0,
|
|
2982
2982
|
0
|
|
@@ -3075,7 +3075,7 @@ const Sf = ({
|
|
|
3075
3075
|
manualIds: i,
|
|
3076
3076
|
fixedHeight: a
|
|
3077
3077
|
}) => {
|
|
3078
|
-
const { t: l } =
|
|
3078
|
+
const { t: l } = xe(), { error: c, loading: d, values: f, type: u, evaluatedEntries: p, fetchData: m } = cf({
|
|
3079
3079
|
model: e,
|
|
3080
3080
|
ooui: t,
|
|
3081
3081
|
limit: o,
|
|
@@ -3218,7 +3218,7 @@ function fs(t) {
|
|
|
3218
3218
|
disabled: o = !1,
|
|
3219
3219
|
formHasChanges: i = !1,
|
|
3220
3220
|
previousView: a
|
|
3221
|
-
} = t, { t: l } =
|
|
3221
|
+
} = t, { t: l } = xe(), c = re(() => [
|
|
3222
3222
|
{
|
|
3223
3223
|
label: l("viewAs"),
|
|
3224
3224
|
items: n.map((u, p) => {
|
|
@@ -3322,7 +3322,7 @@ const Ba = (t) => /* @__PURE__ */ s(At, { ...t, type: "primary", danger: !0 });
|
|
|
3322
3322
|
function ja(t) {
|
|
3323
3323
|
const { disabled: e = !1 } = t, { formHasChanges: n, onNewClicked: r } = pe(
|
|
3324
3324
|
It
|
|
3325
|
-
), { t: o } =
|
|
3325
|
+
), { t: o } = xe(), i = () => {
|
|
3326
3326
|
if (n) {
|
|
3327
3327
|
Yn({
|
|
3328
3328
|
t: o,
|
|
@@ -3398,7 +3398,7 @@ async function ps(t, e, n) {
|
|
|
3398
3398
|
);
|
|
3399
3399
|
}
|
|
3400
3400
|
function Df(t) {
|
|
3401
|
-
const { onSearch: e, disabled: n = !1, searchText: r } = t, { t: o } =
|
|
3401
|
+
const { onSearch: e, disabled: n = !1, searchText: r } = t, { t: o } = xe(), [i] = Ot.useForm(), [a, l] = T(!1), c = Z(!1), d = Z(r);
|
|
3402
3402
|
function f(m) {
|
|
3403
3403
|
const g = m.search;
|
|
3404
3404
|
d.current = g, e(g);
|
|
@@ -3507,7 +3507,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
|
|
|
3507
3507
|
onApplySearch: a,
|
|
3508
3508
|
onRefetchSavedSearches: l,
|
|
3509
3509
|
onClearSavedSearch: c
|
|
3510
|
-
} = t, { t: d } =
|
|
3510
|
+
} = t, { t: d } = xe(), { token: f } = Pf(), u = Z(null), p = pe(
|
|
3511
3511
|
Nt
|
|
3512
3512
|
), { openDefaultActionForModel: m } = p || {}, g = pe(
|
|
3513
3513
|
It
|
|
@@ -3678,7 +3678,7 @@ const { useToken: Pf } = Xe, Mf = (t) => {
|
|
|
3678
3678
|
}, $f = (t, e) => {
|
|
3679
3679
|
const { children: n, globalValues: r = {} } = t, o = Z(), i = Z(), [a, l] = T(!1), c = pe(
|
|
3680
3680
|
Nt
|
|
3681
|
-
), { openAction: d } = c || {}, f = Z([]), { t: u } =
|
|
3681
|
+
), { openAction: d } = c || {}, f = Z([]), { t: u } = xe(), { showErrorNotification: p } = yt(), m = Zr(
|
|
3682
3682
|
wt.FEATURE_LOGGABLE_ACTIONS
|
|
3683
3683
|
), [g, h] = Re(
|
|
3684
3684
|
H.getHandler().logAction
|
|
@@ -4035,7 +4035,7 @@ const Vf = $t($f), Wa = ({
|
|
|
4035
4035
|
model: o,
|
|
4036
4036
|
toolbar: i
|
|
4037
4037
|
}) => {
|
|
4038
|
-
const { t: a } =
|
|
4038
|
+
const { t: a } = xe(), l = Wa({
|
|
4039
4039
|
selectedRowItems: n,
|
|
4040
4040
|
onRefreshParentValues: r
|
|
4041
4041
|
}), [c, d] = T(null), [f, u] = T(!1), [p] = Re(
|
|
@@ -4142,7 +4142,7 @@ function eo({ res_id: t, searchParams: e }) {
|
|
|
4142
4142
|
const n = Z(null), { currentView: r, limit: o, currentPage: i, order: a } = jt(), l = {
|
|
4143
4143
|
id: r.view_id,
|
|
4144
4144
|
type: r.type
|
|
4145
|
-
}, { token: c } = Xe.useToken(), { t: d } =
|
|
4145
|
+
}, { token: c } = Xe.useToken(), { t: d } = xe(), [f, u] = T(!1), { currentTab: p } = gr(), m = O(
|
|
4146
4146
|
(C) => {
|
|
4147
4147
|
try {
|
|
4148
4148
|
const x = document.createElement("textarea");
|
|
@@ -4259,7 +4259,7 @@ function Gf({
|
|
|
4259
4259
|
wt.FEATURE_ADVANCED_EXPORT
|
|
4260
4260
|
), V = Lt(
|
|
4261
4261
|
wt.FEATURE_SAVED_SEARCHES
|
|
4262
|
-
), { t: N } =
|
|
4262
|
+
), { t: N } = xe(), [U, j] = T(!1), ee = Z(!0), { showErrorNotification: B } = yt(), z = O(() => {
|
|
4263
4263
|
var ne;
|
|
4264
4264
|
(ne = h == null ? void 0 : h.current) == null || ne.refreshResults();
|
|
4265
4265
|
}, [h]), K = O(() => {
|
|
@@ -4389,7 +4389,7 @@ function Gf({
|
|
|
4389
4389
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
4390
4390
|
[w, I, C]
|
|
4391
4391
|
);
|
|
4392
|
-
const
|
|
4392
|
+
const we = O(() => {
|
|
4393
4393
|
tn({
|
|
4394
4394
|
confirmMessage: N("confirmDuplicate"),
|
|
4395
4395
|
t: N,
|
|
@@ -4454,7 +4454,7 @@ function Gf({
|
|
|
4454
4454
|
tooltip: N("duplicate"),
|
|
4455
4455
|
disabled: !d || (d == null ? void 0 : d.length) !== 1 || p || S || !(M != null && M.create),
|
|
4456
4456
|
loading: p,
|
|
4457
|
-
onClick:
|
|
4457
|
+
onClick: we
|
|
4458
4458
|
}
|
|
4459
4459
|
),
|
|
4460
4460
|
/* @__PURE__ */ s(
|
|
@@ -4590,7 +4590,7 @@ const { useToken: zf } = Xe, { Title: Kf, Text: Tr } = on, to = ({
|
|
|
4590
4590
|
totalItems: d,
|
|
4591
4591
|
selectedRowItems: f,
|
|
4592
4592
|
treeType: u
|
|
4593
|
-
} = pe(It), { t: p } =
|
|
4593
|
+
} = pe(It), { t: p } = xe(), { token: m } = zf(), g = re(() => {
|
|
4594
4594
|
if (!n)
|
|
4595
4595
|
return null;
|
|
4596
4596
|
if ((i == null ? void 0 : i.type) === "form" && a) {
|
|
@@ -5279,7 +5279,7 @@ const { defaultAlgorithm: hp, defaultSeed: gp } = Xe, yp = hp(gp), { Option: vp
|
|
|
5279
5279
|
function Qa(t) {
|
|
5280
5280
|
const { field: e } = t;
|
|
5281
5281
|
e.readOnly = !1, e.required = !1;
|
|
5282
|
-
const { t: n } =
|
|
5282
|
+
const { t: n } = xe();
|
|
5283
5283
|
switch (e.type) {
|
|
5284
5284
|
case an.boolean: {
|
|
5285
5285
|
const o = new Xo({
|
|
@@ -6586,7 +6586,7 @@ const zn = /* @__PURE__ */ ga(Bh), { Text: jh } = on, Uh = ({
|
|
|
6586
6586
|
};
|
|
6587
6587
|
}, _l = $t(
|
|
6588
6588
|
(t, e) => {
|
|
6589
|
-
const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = t, [l] = Ot.useForm(), [c, d] = T({}), [f, u] = T(""), { t: p } =
|
|
6589
|
+
const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = t, [l] = Ot.useForm(), [c, d] = T({}), [f, u] = T(""), { t: p } = xe(), [m, g] = T(0), h = Z(null), [v, y] = T([]);
|
|
6590
6590
|
Ue(() => {
|
|
6591
6591
|
l.setFieldsValue(r);
|
|
6592
6592
|
const x = Pn(r || {});
|
|
@@ -6834,7 +6834,7 @@ const El = (t) => {
|
|
|
6834
6834
|
searchValues: l,
|
|
6835
6835
|
currentModel: c,
|
|
6836
6836
|
context: d
|
|
6837
|
-
} = t, f = Z(), { t: u } =
|
|
6837
|
+
} = t, f = Z(), { t: u } = xe(), p = Z(), m = Z(null), {
|
|
6838
6838
|
currentSavedSearch: g,
|
|
6839
6839
|
searchParams: h
|
|
6840
6840
|
} = jt(), [v, y] = T([]), [b, w] = T({}), C = Jt(() => v, [v]), x = Jt(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), D = Jt(() => {
|
|
@@ -6947,7 +6947,7 @@ const El = (t) => {
|
|
|
6947
6947
|
[b]
|
|
6948
6948
|
), q = ut(
|
|
6949
6949
|
(G, le = {}) => {
|
|
6950
|
-
var te, Y, ge,
|
|
6950
|
+
var te, Y, ge, we, ve;
|
|
6951
6951
|
if (G) {
|
|
6952
6952
|
const ne = { ...le };
|
|
6953
6953
|
Object.entries(le).forEach(([Te]) => {
|
|
@@ -6959,7 +6959,7 @@ const El = (t) => {
|
|
|
6959
6959
|
y(ie);
|
|
6960
6960
|
return;
|
|
6961
6961
|
}
|
|
6962
|
-
(Y = m.current) == null || Y.resetFields(), (ge = m.current) == null || ge.setFieldsValue({}), (ve = (
|
|
6962
|
+
(Y = m.current) == null || Y.resetFields(), (ge = m.current) == null || ge.setFieldsValue({}), (ve = (we = m.current) == null ? void 0 : we.resetInitialValues) == null || ve.call(we), y([]), w({}), V(), o && o();
|
|
6963
6963
|
},
|
|
6964
6964
|
[v, o, V]
|
|
6965
6965
|
), oe = Jt(() => U ? ee ? /* @__PURE__ */ L(ct.Compact, { size: "small", children: [
|
|
@@ -7107,7 +7107,7 @@ const El = (t) => {
|
|
|
7107
7107
|
onSubmit: e,
|
|
7108
7108
|
searchParams: n
|
|
7109
7109
|
}) => {
|
|
7110
|
-
const { t: r } =
|
|
7110
|
+
const { t: r } = xe();
|
|
7111
7111
|
return /* @__PURE__ */ L(
|
|
7112
7112
|
"div",
|
|
7113
7113
|
{
|
|
@@ -7159,7 +7159,7 @@ function Gh(t) {
|
|
|
7159
7159
|
onClear: r,
|
|
7160
7160
|
isSearching: o,
|
|
7161
7161
|
hideAdvancedFilter: i
|
|
7162
|
-
} = t, { t: a } =
|
|
7162
|
+
} = t, { t: a } = xe();
|
|
7163
7163
|
return /* @__PURE__ */ L(Ge, { children: [
|
|
7164
7164
|
!i && /* @__PURE__ */ s(Oe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ L("a", { className: "text-xs", onClick: e, children: [
|
|
7165
7165
|
n ? /* @__PURE__ */ s(Lc, { className: "pr-1" }) : /* @__PURE__ */ s(ur, { className: "pr-1" }),
|
|
@@ -7182,7 +7182,7 @@ function Gh(t) {
|
|
|
7182
7182
|
] });
|
|
7183
7183
|
}
|
|
7184
7184
|
function Yh(t) {
|
|
7185
|
-
const { onLimitChange: e } = t, { t: n } =
|
|
7185
|
+
const { onLimitChange: e } = t, { t: n } = xe(), r = new Do({ name: "limit" }), o = new Do({ name: "offset" });
|
|
7186
7186
|
return /* @__PURE__ */ L("div", { className: "pl-2 pt-2", children: [
|
|
7187
7187
|
/* @__PURE__ */ s(Ge, { children: n("parameters") }, "count_params"),
|
|
7188
7188
|
/* @__PURE__ */ L(ct, { align: "center", children: [
|
|
@@ -7730,7 +7730,7 @@ const dr = ({
|
|
|
7730
7730
|
}, Ml = ({
|
|
7731
7731
|
onFilterSearchClick: t
|
|
7732
7732
|
}) => {
|
|
7733
|
-
const { t: e } =
|
|
7733
|
+
const { t: e } = xe(), n = (a) => {
|
|
7734
7734
|
a.preventDefault(), t();
|
|
7735
7735
|
}, r = e("nameSearchLimitNote"), o = e("filterSearchLink"), i = r.split(o);
|
|
7736
7736
|
return i.length > 1 ? /* @__PURE__ */ L("span", { style: { fontSize: "12px", color: "#666" }, children: [
|
|
@@ -7754,7 +7754,7 @@ const dr = ({
|
|
|
7754
7754
|
selectedRowKeys: e,
|
|
7755
7755
|
customMiddleComponent: n
|
|
7756
7756
|
}) => {
|
|
7757
|
-
const { t: r } =
|
|
7757
|
+
const { t: r } = xe(), o = n ? 6 : 12;
|
|
7758
7758
|
return /* @__PURE__ */ L(
|
|
7759
7759
|
Ge,
|
|
7760
7760
|
{
|
|
@@ -7782,7 +7782,7 @@ const dr = ({
|
|
|
7782
7782
|
}, Qh = ({
|
|
7783
7783
|
selectedRowKeys: t
|
|
7784
7784
|
}) => {
|
|
7785
|
-
const { t: e } =
|
|
7785
|
+
const { t: e } = xe();
|
|
7786
7786
|
if (t.length === 1)
|
|
7787
7787
|
return /* @__PURE__ */ L(he, { children: [
|
|
7788
7788
|
"1 ",
|
|
@@ -7878,7 +7878,7 @@ const eg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Nl,
|
|
|
7878
7878
|
onItemClick: e,
|
|
7879
7879
|
onOpenChange: n
|
|
7880
7880
|
}) => {
|
|
7881
|
-
const [r, o] = T(!1), [i, a] = T(!1), { t: l } =
|
|
7881
|
+
const [r, o] = T(!1), [i, a] = T(!1), { t: l } = xe(), [c, d] = T(), f = O(async () => {
|
|
7882
7882
|
const {
|
|
7883
7883
|
actionItems: u = [],
|
|
7884
7884
|
relateItems: p = [],
|
|
@@ -8154,7 +8154,7 @@ function cg(t) {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
const dg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Vl, { ...t }) }), Vl = (t) => {
|
|
8156
8156
|
var m;
|
|
8157
|
-
const { t: e } =
|
|
8157
|
+
const { t: e } = xe(), [n, r] = Re(
|
|
8158
8158
|
H.getHandler().readObjects
|
|
8159
8159
|
), { getFieldValue: o } = pe(Qe) || {}, { ooui: i, value: a } = t, [l, c] = T("default");
|
|
8160
8160
|
let d = a, f = mr, u = a;
|
|
@@ -8538,7 +8538,7 @@ const dg = (t) => /* @__PURE__ */ s(We, { ...t, children: /* @__PURE__ */ s(Vl,
|
|
|
8538
8538
|
colorPicker: Sg,
|
|
8539
8539
|
char: vg
|
|
8540
8540
|
}, Bl = (t, e) => {
|
|
8541
|
-
const { t: n } =
|
|
8541
|
+
const { t: n } = xe(), r = Lt(
|
|
8542
8542
|
wt.FEATURE_MANY2ONE_SORT
|
|
8543
8543
|
), o = Jt(() => {
|
|
8544
8544
|
if (t)
|
|
@@ -8576,7 +8576,7 @@ function Og(t, e) {
|
|
|
8576
8576
|
nameSearch: u,
|
|
8577
8577
|
filterType: p = "side",
|
|
8578
8578
|
onChangeTreeType: m
|
|
8579
|
-
} = t, g = Z(null), h = Z([]), v = Z(!1), { showErrorNotification: y } = yt(), { setCurrentSavedSearch: b } = jt(), [w, C] = T(), [x, D] = T(!1), { t: S } =
|
|
8579
|
+
} = t, g = Z(null), h = Z([]), v = Z(!1), { showErrorNotification: y } = yt(), { setCurrentSavedSearch: b } = jt(), [w, C] = T(), [x, D] = T(!1), { t: S } = xe(), P = Z(null), F = Ka({
|
|
8580
8580
|
elementRef: P,
|
|
8581
8581
|
offset: _g
|
|
8582
8582
|
}), [$, R] = Re(
|
|
@@ -8613,7 +8613,7 @@ function Og(t, e) {
|
|
|
8613
8613
|
setSearchQuery: te,
|
|
8614
8614
|
setTotalItems: Y,
|
|
8615
8615
|
isActive: ge,
|
|
8616
|
-
order:
|
|
8616
|
+
order: we,
|
|
8617
8617
|
setOrder: ve
|
|
8618
8618
|
} = Ol({ useLocalState: !c }), ne = u || oe, ie = Z(ne), Te = Z(!1), Ee = Z(), ke = Z(), $e = Z(!1);
|
|
8619
8619
|
ce(() => {
|
|
@@ -8721,16 +8721,16 @@ function Og(t, e) {
|
|
|
8721
8721
|
if (!me)
|
|
8722
8722
|
return [];
|
|
8723
8723
|
let Je;
|
|
8724
|
-
if (!v.current &&
|
|
8724
|
+
if (!v.current && we) {
|
|
8725
8725
|
const X = Er({
|
|
8726
|
-
state:
|
|
8726
|
+
state: we
|
|
8727
8727
|
});
|
|
8728
8728
|
Je = Or(X);
|
|
8729
8729
|
} else {
|
|
8730
|
-
const X = ot == null ? void 0 : ot.filter((
|
|
8731
|
-
sort:
|
|
8732
|
-
sortIndex:
|
|
8733
|
-
colId:
|
|
8730
|
+
const X = ot == null ? void 0 : ot.filter((be) => be.sort || be.sortIndex).map((be) => ({
|
|
8731
|
+
sort: be.sort || void 0,
|
|
8732
|
+
sortIndex: be.sortIndex || void 0,
|
|
8733
|
+
colId: be.colId
|
|
8734
8734
|
})), ae = X && (X == null ? void 0 : X.length) > 0 ? X : void 0, ye = Er({
|
|
8735
8735
|
state: ae
|
|
8736
8736
|
});
|
|
@@ -8774,7 +8774,7 @@ function Og(t, e) {
|
|
|
8774
8774
|
},
|
|
8775
8775
|
[
|
|
8776
8776
|
le,
|
|
8777
|
-
|
|
8777
|
+
we,
|
|
8778
8778
|
a,
|
|
8779
8779
|
Ae,
|
|
8780
8780
|
n,
|
|
@@ -8913,7 +8913,7 @@ function Og(t, e) {
|
|
|
8913
8913
|
statusComponent: kt,
|
|
8914
8914
|
onRowStatus: Gt,
|
|
8915
8915
|
strings: rt,
|
|
8916
|
-
initialSortState:
|
|
8916
|
+
initialSortState: we,
|
|
8917
8917
|
cacheBlockSize: fe,
|
|
8918
8918
|
onChangeTableType: m
|
|
8919
8919
|
}
|
|
@@ -8938,7 +8938,7 @@ function Og(t, e) {
|
|
|
8938
8938
|
kt,
|
|
8939
8939
|
Gt,
|
|
8940
8940
|
rt,
|
|
8941
|
-
|
|
8941
|
+
we,
|
|
8942
8942
|
m
|
|
8943
8943
|
]), Vt = Z(de), fn = Z(N);
|
|
8944
8944
|
Ue(() => {
|
|
@@ -9120,7 +9120,7 @@ const jl = $t(Og), Ni = (t, e = "14px -apple-system") => {
|
|
|
9120
9120
|
onSelectAllRecords: r,
|
|
9121
9121
|
numberOfRealSelectedRows: o
|
|
9122
9122
|
}) => {
|
|
9123
|
-
const [i, a] = T(!1), { t: l } =
|
|
9123
|
+
const [i, a] = T(!1), { t: l } = xe(), c = {
|
|
9124
9124
|
recordsSelected: l("recordsSelected"),
|
|
9125
9125
|
selectAllRecords: l("selectAllRecords"),
|
|
9126
9126
|
allRecordsSelected: l("allRecordsSelected")
|
|
@@ -9169,7 +9169,7 @@ const jl = $t(Og), Ni = (t, e = "14px -apple-system") => {
|
|
|
9169
9169
|
context: x,
|
|
9170
9170
|
readonly: D,
|
|
9171
9171
|
onSelectAllRecords: S
|
|
9172
|
-
} = t, P = Z(null), [F, $] = T([]), R = Z(!1), [E, I] = T(), { t: A } =
|
|
9172
|
+
} = t, P = Z(null), [F, $] = T([]), R = Z(!1), [E, I] = T(), { t: A } = xe(), k = Z(r), _ = pe(
|
|
9173
9173
|
It
|
|
9174
9174
|
), { title: M = void 0, setTitle: W = void 0 } = (C ? _ : {}) || {}, V = Lt(
|
|
9175
9175
|
wt.FEATURE_MANY2ONE_SORT
|
|
@@ -9474,7 +9474,7 @@ const Wl = (t) => {
|
|
|
9474
9474
|
$(!0), _(ie), W((ie - 1) * C);
|
|
9475
9475
|
},
|
|
9476
9476
|
[$, C, W, _]
|
|
9477
|
-
),
|
|
9477
|
+
), we = O(() => {
|
|
9478
9478
|
F || (n == null || n(void 0), o == null || o([]), S == null || S({}), A(void 0), W(0), _(1), x == null || x(C || Ct));
|
|
9479
9479
|
}, [
|
|
9480
9480
|
F,
|
|
@@ -9502,7 +9502,7 @@ const Wl = (t) => {
|
|
|
9502
9502
|
}), [e, d, V, D, b]);
|
|
9503
9503
|
return {
|
|
9504
9504
|
submit: Y,
|
|
9505
|
-
clear:
|
|
9505
|
+
clear: we,
|
|
9506
9506
|
fetchResults: le,
|
|
9507
9507
|
tableRefreshing: F,
|
|
9508
9508
|
searchFilterLoading: R,
|
|
@@ -9558,7 +9558,7 @@ function Mg(t, e) {
|
|
|
9558
9558
|
setSearchValues: te = void 0,
|
|
9559
9559
|
limit: Y = Ct,
|
|
9560
9560
|
setLimit: ge = void 0
|
|
9561
|
-
} = (f ? M : {}) || {}, { showErrorNotification:
|
|
9561
|
+
} = (f ? M : {}) || {}, { showErrorNotification: we } = yt(), ve = O(
|
|
9562
9562
|
(Ie) => {
|
|
9563
9563
|
ee == null || ee(Ie.map((at) => ({ id: at }))), p == null || p(Ie);
|
|
9564
9564
|
},
|
|
@@ -9620,7 +9620,7 @@ function Mg(t, e) {
|
|
|
9620
9620
|
try {
|
|
9621
9621
|
await rt(), v(!0);
|
|
9622
9622
|
} catch (Ie) {
|
|
9623
|
-
|
|
9623
|
+
we(Ie), G == null || G(!1);
|
|
9624
9624
|
} finally {
|
|
9625
9625
|
g(!1);
|
|
9626
9626
|
}
|
|
@@ -9674,7 +9674,7 @@ function Mg(t, e) {
|
|
|
9674
9674
|
try {
|
|
9675
9675
|
await Ce(Ie);
|
|
9676
9676
|
} catch (Ut) {
|
|
9677
|
-
|
|
9677
|
+
we(Ut);
|
|
9678
9678
|
}
|
|
9679
9679
|
return;
|
|
9680
9680
|
}
|
|
@@ -9689,7 +9689,7 @@ function Mg(t, e) {
|
|
|
9689
9689
|
w,
|
|
9690
9690
|
S,
|
|
9691
9691
|
i,
|
|
9692
|
-
|
|
9692
|
+
we,
|
|
9693
9693
|
Ce,
|
|
9694
9694
|
x
|
|
9695
9695
|
]
|
|
@@ -9821,7 +9821,7 @@ const ql = $t(Mg), $g = Ct, Ng = (t) => {
|
|
|
9821
9821
|
setOrder: N,
|
|
9822
9822
|
limit: U,
|
|
9823
9823
|
setLimit: j
|
|
9824
|
-
} = Ol({ useLocalState: !i }), { treeMaxLimit: ee } = Xt(), { setCurrentSavedSearch: B } = jt(), z = Math.min(U, ee), [K, Q] = T(!0), [de, q] = T(), [oe, se] = T([]), [G, le] = T(!1), te = a || $, Y = Z(te), ge = Z(P),
|
|
9824
|
+
} = Ol({ useLocalState: !i }), { treeMaxLimit: ee } = Xt(), { setCurrentSavedSearch: B } = jt(), z = Math.min(U, ee), [K, Q] = T(!0), [de, q] = T(), [oe, se] = T([]), [G, le] = T(!1), te = a || $, Y = Z(te), ge = Z(P), we = Z(g), ve = Z(), ne = Z([]), ie = Z(!1), Te = (r == null ? void 0 : r.fields_in_conditions) !== void 0, Ee = re(() => Ja({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), [ke, $e] = Re(
|
|
9825
9825
|
H.getHandler().parseConditions
|
|
9826
9826
|
), {
|
|
9827
9827
|
fetchColumnState: me,
|
|
@@ -10075,8 +10075,8 @@ const ql = $t(Mg), $g = Ct, Ng = (t) => {
|
|
|
10075
10075
|
const Fe = !zn(
|
|
10076
10076
|
P,
|
|
10077
10077
|
ge.current
|
|
10078
|
-
), Le =
|
|
10079
|
-
Fe && (Le || f === "top") && Gt(), ge.current = P,
|
|
10078
|
+
), Le = we.current && !g;
|
|
10079
|
+
Fe && (Le || f === "top") && Gt(), ge.current = P, we.current = g;
|
|
10080
10080
|
}, [P, g]);
|
|
10081
10081
|
const Vt = O(
|
|
10082
10082
|
(Fe, Le) => {
|
|
@@ -10469,7 +10469,7 @@ function jg(t, e) {
|
|
|
10469
10469
|
limit: te,
|
|
10470
10470
|
order: Y,
|
|
10471
10471
|
setTreeFirstVisibleColumn: ge,
|
|
10472
|
-
onGetFirstVisibleColumn:
|
|
10472
|
+
onGetFirstVisibleColumn: we,
|
|
10473
10473
|
onSortChange: ve,
|
|
10474
10474
|
isFieldLoading: ne,
|
|
10475
10475
|
setSearchVisible: ie,
|
|
@@ -10572,7 +10572,7 @@ function jg(t, e) {
|
|
|
10572
10572
|
getColumnState: se,
|
|
10573
10573
|
setTreeFirstVisibleRow: k,
|
|
10574
10574
|
onGetFirstVisibleRowIndex: A,
|
|
10575
|
-
onGetFirstVisibleColumn:
|
|
10575
|
+
onGetFirstVisibleColumn: we,
|
|
10576
10576
|
setTreeFirstVisibleColumn: ge,
|
|
10577
10577
|
footerComp: Se,
|
|
10578
10578
|
statusComp: tt,
|
|
@@ -10655,7 +10655,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
|
|
|
10655
10655
|
setSearchValues: k,
|
|
10656
10656
|
searchParams: _,
|
|
10657
10657
|
isActive: M
|
|
10658
|
-
} = pe(It), { token: W } = Wg(), { t: V } =
|
|
10658
|
+
} = pe(It), { token: W } = Wg(), { t: V } = xe(), N = Lt(
|
|
10659
10659
|
wt.FEATURE_SAVED_SEARCHES
|
|
10660
10660
|
), [U] = Re(
|
|
10661
10661
|
H.getHandler().searchAllIds
|
|
@@ -10928,7 +10928,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
|
|
|
10928
10928
|
permissionsError: _
|
|
10929
10929
|
} = t, [M, W] = T(!1), [V, N] = T(!1), [U, j] = T(!1), [ee, B] = T(!0), [z, K] = T(!0), [Q, de] = T([]), [q, oe] = T(!1), [se, G] = T(
|
|
10930
10930
|
R || []
|
|
10931
|
-
), [le, te] = T(!1), [Y, ge] = T(!0), [
|
|
10931
|
+
), [le, te] = T(!1), [Y, ge] = T(!0), [we, ve] = T(), ne = re(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((Ae, Tt) => ({ ...Ae, ...Tt.fields || {} }), {}), [i, n]), [ie, Te] = T(
|
|
10932
10932
|
Ha(R || [], ne)
|
|
10933
10933
|
), [Ee, ke] = T(0), [$e, me] = T(void 0), [qe, st] = T(), [Ze, et] = T(Bn), [Se, tt] = T(
|
|
10934
10934
|
I
|
|
@@ -10948,7 +10948,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
|
|
|
10948
10948
|
)[0]
|
|
10949
10949
|
);
|
|
10950
10950
|
}, [i]), ce(() => {
|
|
10951
|
-
(
|
|
10951
|
+
(we == null ? void 0 : we.view_id) === n.view_id && i.length > 1 && ve(
|
|
10952
10952
|
i.filter(
|
|
10953
10953
|
(Ae) => Ae.view_id !== n.view_id
|
|
10954
10954
|
)[0]
|
|
@@ -11005,7 +11005,7 @@ const Ug = $t(jg), { useToken: Wg } = Xe, Bn = "legacy", qg = (t) => {
|
|
|
11005
11005
|
setSearchTreeNameSearch: S,
|
|
11006
11006
|
setGraphIsLoading: ge,
|
|
11007
11007
|
graphIsLoading: Y,
|
|
11008
|
-
previousView:
|
|
11008
|
+
previousView: we,
|
|
11009
11009
|
setPreviousView: ve,
|
|
11010
11010
|
goToResourceId: P,
|
|
11011
11011
|
searchValues: ie,
|
|
@@ -11421,12 +11421,12 @@ function Qg(t) {
|
|
|
11421
11421
|
attrs: le && { colors: le }
|
|
11422
11422
|
});
|
|
11423
11423
|
I(Vn(ge));
|
|
11424
|
-
const
|
|
11424
|
+
const we = kn({
|
|
11425
11425
|
resultsToSort: Y,
|
|
11426
11426
|
sorter: A,
|
|
11427
11427
|
fields: { ...g.fields, ...v.fields }
|
|
11428
11428
|
});
|
|
11429
|
-
U(!1), R(
|
|
11429
|
+
U(!1), R(we);
|
|
11430
11430
|
const ve = await te();
|
|
11431
11431
|
F(ve);
|
|
11432
11432
|
}, z = async () => {
|
|
@@ -11516,7 +11516,7 @@ const Kl = it(Qg), { useToken: Zg } = Xe, ey = (t) => {
|
|
|
11516
11516
|
return /* @__PURE__ */ s(We, { ooui: e, children: n || r ? /* @__PURE__ */ s(Ir, { children: /* @__PURE__ */ s(ny, { ooui: e }) }) : /* @__PURE__ */ s(ty, { ooui: e }) });
|
|
11517
11517
|
}, ty = (t) => {
|
|
11518
11518
|
var y;
|
|
11519
|
-
const { token: e } = Zg(), { ooui: n, value: r } = t, { locale: o } =
|
|
11519
|
+
const { token: e } = Zg(), { ooui: n, value: r } = t, { locale: o } = xe(), [i, a] = T(n.icon), [l, c] = T(n.color), [d, f] = Re(
|
|
11520
11520
|
H.getHandler().parseCondition
|
|
11521
11521
|
), u = ir(
|
|
11522
11522
|
bn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
@@ -12089,7 +12089,7 @@ function xy(t, e) {
|
|
|
12089
12089
|
forcedValues: D = {},
|
|
12090
12090
|
parentWidth: S,
|
|
12091
12091
|
onMustRefreshParent: P
|
|
12092
|
-
} = t, { t: F } =
|
|
12092
|
+
} = t, { t: F } = xe(), [$, R] = T(!1), [E, I] = T(), [A, k] = T(), [_] = Ot.useForm(), [M, W] = T(), [V, N] = T(), U = pe(Jl), [j, ee] = T(), [B, z] = T(!1), K = Z(), Q = Z({}), de = Z({}), q = Z(!1), oe = Z(!1), se = Z(!1), le = (S !== void 0 ? S : j) < wy, te = pe(Qe), { activeId: Y, getPlainValues: ge } = te || {}, we = Z(!1), ve = pe(
|
|
12093
12093
|
It
|
|
12094
12094
|
), {
|
|
12095
12095
|
setFormIsSaving: ne = void 0,
|
|
@@ -12150,8 +12150,8 @@ function xy(t, e) {
|
|
|
12150
12150
|
), Se(E);
|
|
12151
12151
|
}
|
|
12152
12152
|
}, [E]);
|
|
12153
|
-
const J = (X, ae, ye,
|
|
12154
|
-
ie == null || ie(!1), ne == null || ne(!1), i == null || i(X, ae, ye,
|
|
12153
|
+
const J = (X, ae, ye, be) => {
|
|
12154
|
+
ie == null || ie(!1), ne == null || ne(!1), i == null || i(X, ae, ye, be), Te == null || Te(X), we.current && (P == null || P());
|
|
12155
12155
|
}, Ce = (X) => {
|
|
12156
12156
|
ne == null || ne(!1), d == null || d(X);
|
|
12157
12157
|
}, ue = O(() => r || K.current, [r]), De = r || K.current;
|
|
@@ -12160,9 +12160,9 @@ function xy(t, e) {
|
|
|
12160
12160
|
}
|
|
12161
12161
|
function Ae() {
|
|
12162
12162
|
const X = mt(), ae = Ve(), ye = {};
|
|
12163
|
-
return Object.keys(X).forEach((
|
|
12164
|
-
const Me = X[
|
|
12165
|
-
ae[
|
|
12163
|
+
return Object.keys(X).forEach((be) => {
|
|
12164
|
+
const Me = X[be];
|
|
12165
|
+
ae[be] && ae[be].type === "many2one" && Me && Array.isArray(Me) && Me.length === 2 ? ye[be] = Me[0] : ae[be] && (ae[be].type === "one2many" || ae[be].type === "many2many") && Me && Me.items ? ye[be] = Me.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : ye[be] = Me;
|
|
12166
12166
|
}), {
|
|
12167
12167
|
...at(),
|
|
12168
12168
|
...ye
|
|
@@ -12225,7 +12225,7 @@ function xy(t, e) {
|
|
|
12225
12225
|
X[ae] === void 0 && delete X[ae];
|
|
12226
12226
|
return X;
|
|
12227
12227
|
}, [lt, at, V]), xt = O(() => {
|
|
12228
|
-
|
|
12228
|
+
we.current && (P == null || P()), ne == null || ne(!1), o == null || o({ id: ue(), values: mt() });
|
|
12229
12229
|
}, [
|
|
12230
12230
|
ue,
|
|
12231
12231
|
mt,
|
|
@@ -12263,16 +12263,16 @@ function xy(t, e) {
|
|
|
12263
12263
|
I(ae), Ee == null || Ee(!1);
|
|
12264
12264
|
}
|
|
12265
12265
|
}, kt = async (X) => {
|
|
12266
|
-
let ae, ye,
|
|
12267
|
-
Ee == null || Ee(!0), I(void 0), Ne(), X != null && X.fields ? (ye = X.fields,
|
|
12266
|
+
let ae, ye, be, Me;
|
|
12267
|
+
Ee == null || Ee(!0), I(void 0), Ne(), X != null && X.fields ? (ye = X.fields, be = X.arch) : (ye = V, be = M), m && (X == null ? void 0 : X.forceRefresh) !== !0 ? ae = m : { values: ae, defaultGetCalled: Me } = await fn({
|
|
12268
12268
|
fields: ye,
|
|
12269
|
-
arch:
|
|
12269
|
+
arch: be
|
|
12270
12270
|
}), b && (ae = { ...Uu(b), ...ae }), Q.current = _n(ae, ye), Vt({
|
|
12271
12271
|
values: ae,
|
|
12272
12272
|
fields: ye,
|
|
12273
12273
|
reset: !0,
|
|
12274
12274
|
isDefaultGet: Me
|
|
12275
|
-
}), qt({ fields: ye, arch:
|
|
12275
|
+
}), qt({ fields: ye, arch: be, values: ae }), Ee == null || Ee(!1), ie == null || ie(!1), Me && z(!0);
|
|
12276
12276
|
}, Gt = async () => new Promise(async (X) => {
|
|
12277
12277
|
Wt() ? Yn({
|
|
12278
12278
|
t: F,
|
|
@@ -12301,21 +12301,21 @@ function xy(t, e) {
|
|
|
12301
12301
|
values: X,
|
|
12302
12302
|
fields: ae,
|
|
12303
12303
|
reset: ye,
|
|
12304
|
-
isDefaultGet:
|
|
12304
|
+
isDefaultGet: be = !1
|
|
12305
12305
|
}) => {
|
|
12306
12306
|
const ht = { ...ye ? {} : _.getFieldsValue(!0), ...X }, ao = _n(ht, ae), hc = Object.keys(ae).map((lo) => ({
|
|
12307
12307
|
name: lo,
|
|
12308
12308
|
touched: !1,
|
|
12309
12309
|
value: ao[lo] !== void 0 ? ao[lo] : void 0
|
|
12310
12310
|
}));
|
|
12311
|
-
|
|
12311
|
+
be || (de.current = ao), _.setFields(hc);
|
|
12312
12312
|
},
|
|
12313
12313
|
[_]
|
|
12314
12314
|
), fn = async ({
|
|
12315
12315
|
fields: X,
|
|
12316
12316
|
arch: ae
|
|
12317
12317
|
}) => {
|
|
12318
|
-
let ye = {},
|
|
12318
|
+
let ye = {}, be = !1;
|
|
12319
12319
|
if (ue()) {
|
|
12320
12320
|
const Me = A || mn({
|
|
12321
12321
|
arch: ae,
|
|
@@ -12328,7 +12328,7 @@ function xy(t, e) {
|
|
|
12328
12328
|
fields: gy(X, Me == null ? void 0 : Me.contextForFields),
|
|
12329
12329
|
context: y
|
|
12330
12330
|
}))[0], v)
|
|
12331
|
-
return { values: ye, defaultGetCalled:
|
|
12331
|
+
return { values: ye, defaultGetCalled: be };
|
|
12332
12332
|
const ht = await H.getHandler().search({
|
|
12333
12333
|
params: [
|
|
12334
12334
|
["res_model", "=", n],
|
|
@@ -12340,8 +12340,8 @@ function xy(t, e) {
|
|
|
12340
12340
|
});
|
|
12341
12341
|
ke == null || ke(ht);
|
|
12342
12342
|
} else
|
|
12343
|
-
ke == null || ke([]), ye = await Ut(X), ye.id && (K.current = ye.id),
|
|
12344
|
-
return { values: ye, defaultGetCalled:
|
|
12343
|
+
ke == null || ke([]), ye = await Ut(X), ye.id && (K.current = ye.id), be = !0;
|
|
12344
|
+
return { values: ye, defaultGetCalled: be };
|
|
12345
12345
|
}, Qt = async (X) => {
|
|
12346
12346
|
const { callOnSubmitSucceed: ae = !0 } = X || {};
|
|
12347
12347
|
if (ue()) {
|
|
@@ -12361,7 +12361,7 @@ function xy(t, e) {
|
|
|
12361
12361
|
}
|
|
12362
12362
|
}), Q.current = lt(V);
|
|
12363
12363
|
} else {
|
|
12364
|
-
const ye = lt(V),
|
|
12364
|
+
const ye = lt(V), be = await H.getHandler().create({
|
|
12365
12365
|
model: n,
|
|
12366
12366
|
values: { ...ye, ...D },
|
|
12367
12367
|
fields: V,
|
|
@@ -12370,7 +12370,7 @@ function xy(t, e) {
|
|
|
12370
12370
|
...A == null ? void 0 : A.context
|
|
12371
12371
|
}
|
|
12372
12372
|
});
|
|
12373
|
-
K.current =
|
|
12373
|
+
K.current = be, Q.current = ye;
|
|
12374
12374
|
}
|
|
12375
12375
|
h && await h([ue()]), !v && ae && (J == null || J(ue(), mt(), pt()));
|
|
12376
12376
|
}, pn = async (X) => {
|
|
@@ -12386,8 +12386,8 @@ function xy(t, e) {
|
|
|
12386
12386
|
pt(),
|
|
12387
12387
|
se.current
|
|
12388
12388
|
), se.current = !1;
|
|
12389
|
-
const
|
|
12390
|
-
return u && (K.current = void 0, Vt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id:
|
|
12389
|
+
const be = ue();
|
|
12390
|
+
return u && (K.current = void 0, Vt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id: be };
|
|
12391
12391
|
}
|
|
12392
12392
|
if (!Wt() && ue() && ye)
|
|
12393
12393
|
return oe.current = !1, ie == null || ie(!1), xt == null || xt(), { succeed: !0, id: ue() };
|
|
@@ -12404,8 +12404,8 @@ function xy(t, e) {
|
|
|
12404
12404
|
title: F("savedRegisters"),
|
|
12405
12405
|
duration: 3
|
|
12406
12406
|
});
|
|
12407
|
-
} catch (
|
|
12408
|
-
oe.current = !1, R(!1), ne == null || ne(!1), Ce == null || Ce(
|
|
12407
|
+
} catch (be) {
|
|
12408
|
+
oe.current = !1, R(!1), ne == null || ne(!1), Ce == null || Ce(be), I(be);
|
|
12409
12409
|
} finally {
|
|
12410
12410
|
oe.current = !1, ne == null || ne(!1), R(!1);
|
|
12411
12411
|
}
|
|
@@ -12415,11 +12415,11 @@ function xy(t, e) {
|
|
|
12415
12415
|
fields: X,
|
|
12416
12416
|
arch: ae,
|
|
12417
12417
|
values: ye,
|
|
12418
|
-
operationInProgress:
|
|
12418
|
+
operationInProgress: be = !1
|
|
12419
12419
|
}) => {
|
|
12420
12420
|
const Me = new ta(X);
|
|
12421
12421
|
return Me.parse(ae, {
|
|
12422
|
-
readOnly: f ||
|
|
12422
|
+
readOnly: f || be,
|
|
12423
12423
|
values: Du(
|
|
12424
12424
|
{
|
|
12425
12425
|
...ye,
|
|
@@ -12435,14 +12435,14 @@ function xy(t, e) {
|
|
|
12435
12435
|
fields: X,
|
|
12436
12436
|
arch: ae,
|
|
12437
12437
|
values: ye,
|
|
12438
|
-
operationInProgress:
|
|
12438
|
+
operationInProgress: be = !1
|
|
12439
12439
|
}) => {
|
|
12440
12440
|
var ht;
|
|
12441
12441
|
const Me = mn({
|
|
12442
12442
|
arch: ae,
|
|
12443
12443
|
fields: X,
|
|
12444
12444
|
values: ye,
|
|
12445
|
-
operationInProgress:
|
|
12445
|
+
operationInProgress: be
|
|
12446
12446
|
});
|
|
12447
12447
|
k(Me), Me.string && Me.string !== $e && (me == null || me(Me.string)), U && Me.string && ((ht = U.setTitle) == null || ht.call(U, Me.string));
|
|
12448
12448
|
},
|
|
@@ -12472,8 +12472,8 @@ function xy(t, e) {
|
|
|
12472
12472
|
"many2one"
|
|
12473
12473
|
]
|
|
12474
12474
|
}) && X !== !0)) {
|
|
12475
|
-
const
|
|
12476
|
-
de.current =
|
|
12475
|
+
const be = _n(_.getFieldsValue(!0), V);
|
|
12476
|
+
de.current = be, c == null || c(be), ie == null || ie(!0), Object.keys(be).forEach((Me) => {
|
|
12477
12477
|
Pe(Me);
|
|
12478
12478
|
}), Le(ye);
|
|
12479
12479
|
}
|
|
@@ -12506,17 +12506,17 @@ function xy(t, e) {
|
|
|
12506
12506
|
},
|
|
12507
12507
|
parentValues: ge == null ? void 0 : ge(),
|
|
12508
12508
|
onChangeFieldActionArgs: ae.args
|
|
12509
|
-
}),
|
|
12509
|
+
}), be = await H.getHandler().executeOnChange({
|
|
12510
12510
|
model: n,
|
|
12511
12511
|
action: ae.method,
|
|
12512
12512
|
ids: ue() ? [ue()] : [],
|
|
12513
12513
|
payload: ye,
|
|
12514
12514
|
fields: V
|
|
12515
12515
|
});
|
|
12516
|
-
if (
|
|
12516
|
+
if (be.value) {
|
|
12517
12517
|
const Me = {
|
|
12518
12518
|
...lt(V),
|
|
12519
|
-
...
|
|
12519
|
+
...be.value
|
|
12520
12520
|
}, ht = ku({
|
|
12521
12521
|
values: Me,
|
|
12522
12522
|
fields: V
|
|
@@ -12531,26 +12531,26 @@ function xy(t, e) {
|
|
|
12531
12531
|
reset: !1
|
|
12532
12532
|
});
|
|
12533
12533
|
}
|
|
12534
|
-
if (
|
|
12535
|
-
const { title: Me, message: ht } =
|
|
12536
|
-
|
|
12534
|
+
if (be.warning && be.warning.title && be.warning.message && !q.current) {
|
|
12535
|
+
const { title: Me, message: ht } = be.warning;
|
|
12536
|
+
rt([
|
|
12537
12537
|
{
|
|
12538
12538
|
field: X,
|
|
12539
12539
|
message: ht,
|
|
12540
12540
|
type: "warning"
|
|
12541
12541
|
}
|
|
12542
|
-
]), Se({
|
|
12542
|
+
]), (be.warning.popup === !0 || be.warning.popup === void 0) && (q.current = !0, Se({
|
|
12543
12543
|
type: "warning",
|
|
12544
12544
|
title: Me,
|
|
12545
12545
|
body: ht,
|
|
12546
12546
|
onOk: () => {
|
|
12547
12547
|
q.current = !1;
|
|
12548
12548
|
}
|
|
12549
|
-
});
|
|
12549
|
+
}));
|
|
12550
12550
|
}
|
|
12551
|
-
if (
|
|
12551
|
+
if (be.domain && Object.keys(be.domain).length > 0) {
|
|
12552
12552
|
const Me = ju({
|
|
12553
|
-
fieldsDomain:
|
|
12553
|
+
fieldsDomain: be.domain,
|
|
12554
12554
|
fields: V
|
|
12555
12555
|
});
|
|
12556
12556
|
qt({
|
|
@@ -12579,14 +12579,14 @@ function xy(t, e) {
|
|
|
12579
12579
|
else if (ye.type && ye.type === "ir.actions.act_window_close")
|
|
12580
12580
|
J == null || J(ue(), mt(), pt());
|
|
12581
12581
|
else if (ye.type) {
|
|
12582
|
-
let
|
|
12583
|
-
ye.context && (
|
|
12582
|
+
let be = {};
|
|
12583
|
+
ye.context && (be = ln({
|
|
12584
12584
|
context: ye.context,
|
|
12585
12585
|
fields: V,
|
|
12586
12586
|
values: mt()
|
|
12587
12587
|
})), await Je({
|
|
12588
12588
|
actionData: ye,
|
|
12589
|
-
context: { ...ae, ...
|
|
12589
|
+
context: { ...ae, ...be }
|
|
12590
12590
|
});
|
|
12591
12591
|
} else
|
|
12592
12592
|
await kt({ forceRefresh: !0 });
|
|
@@ -12624,7 +12624,7 @@ function xy(t, e) {
|
|
|
12624
12624
|
...ae
|
|
12625
12625
|
},
|
|
12626
12626
|
onRefreshParentValues: async () => {
|
|
12627
|
-
|
|
12627
|
+
we.current = !0, await kt({ forceRefresh: !0 });
|
|
12628
12628
|
}
|
|
12629
12629
|
})) || {};
|
|
12630
12630
|
!C && ye && (J == null || J(ue(), mt(), pt()));
|
|
@@ -12682,13 +12682,13 @@ function xy(t, e) {
|
|
|
12682
12682
|
});
|
|
12683
12683
|
return;
|
|
12684
12684
|
}
|
|
12685
|
-
let
|
|
12685
|
+
let be = !1;
|
|
12686
12686
|
try {
|
|
12687
|
-
!f && (Wt() || ue() === void 0) && (
|
|
12687
|
+
!f && (Wt() || ue() === void 0) && (be = !0, _t(!0), p === "2many" ? (await Qt({ callOnSubmitSucceed: !1 }), se.current = !0) : await sn({ callOnSubmitSucceed: !1 }));
|
|
12688
12688
|
const Me = se.current ? Ie() : {}, ht = { ...ye, ...Me };
|
|
12689
|
-
X === "object" ? await fe({ action: ae, context: ht }) : X === "workflow" ? await _e({ action: ae }) : X === "action" && await ot({ action: ae, context: ht }),
|
|
12689
|
+
X === "object" ? await fe({ action: ae, context: ht }) : X === "workflow" ? await _e({ action: ae }) : X === "action" && await ot({ action: ae, context: ht }), be && _t(!1);
|
|
12690
12690
|
} catch (Me) {
|
|
12691
|
-
|
|
12691
|
+
be && _t(!1), Se(Me);
|
|
12692
12692
|
}
|
|
12693
12693
|
}
|
|
12694
12694
|
const io = () => !A && !E ? /* @__PURE__ */ s(nt, {}) : !n && !g || !w ? null : /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(
|
|
@@ -12867,7 +12867,7 @@ const Jn = $t(xy), Xn = (t) => {
|
|
|
12867
12867
|
context: a = {},
|
|
12868
12868
|
canCreate: l = !0
|
|
12869
12869
|
}) => {
|
|
12870
|
-
const [c, d] = T(!1), [f, u] = T([]), [p, m] = T(!1), { modalWidth: g, modalHeight: h } = Jr(), { t: v } =
|
|
12870
|
+
const [c, d] = T(!1), [f, u] = T([]), [p, m] = T(!1), { modalWidth: g, modalHeight: h } = Jr(), { t: v } = xe(), { showErrorNotification: y } = yt(), {
|
|
12871
12871
|
treeView: b,
|
|
12872
12872
|
formView: w,
|
|
12873
12873
|
loading: C
|
|
@@ -13341,7 +13341,7 @@ const Jn = $t(xy), Xn = (t) => {
|
|
|
13341
13341
|
model: r,
|
|
13342
13342
|
toolbar: o
|
|
13343
13343
|
}) => {
|
|
13344
|
-
const { t: i } =
|
|
13344
|
+
const { t: i } = xe(), a = pe(
|
|
13345
13345
|
Sn
|
|
13346
13346
|
), l = pe(
|
|
13347
13347
|
Nt
|
|
@@ -13518,7 +13518,7 @@ function Ey(t) {
|
|
|
13518
13518
|
formRef: w,
|
|
13519
13519
|
onRefreshParentValues: C,
|
|
13520
13520
|
currentId: x
|
|
13521
|
-
} = t, { token: D } = _y(), { t: S } =
|
|
13521
|
+
} = t, { token: D } = _y(), { t: S } = xe(), { activeModel: P } = is(), { permissions: F } = Vr({
|
|
13522
13522
|
model: o,
|
|
13523
13523
|
permissions: ["create", "write", "unlink"],
|
|
13524
13524
|
enabled: !0
|
|
@@ -13709,7 +13709,7 @@ const sc = it(
|
|
|
13709
13709
|
onPreviousItem: n,
|
|
13710
13710
|
onNextItem: r
|
|
13711
13711
|
}) => {
|
|
13712
|
-
const { t: o } =
|
|
13712
|
+
const { t: o } = xe();
|
|
13713
13713
|
return /* @__PURE__ */ L(he, { children: [
|
|
13714
13714
|
/* @__PURE__ */ s(zt, {}),
|
|
13715
13715
|
/* @__PURE__ */ s(
|
|
@@ -13748,7 +13748,7 @@ const ic = it(
|
|
|
13748
13748
|
onDelete: n,
|
|
13749
13749
|
disabled: r
|
|
13750
13750
|
}) => {
|
|
13751
|
-
const { t: o } =
|
|
13751
|
+
const { t: o } = xe();
|
|
13752
13752
|
return /* @__PURE__ */ s(Un, { count: e.length, children: /* @__PURE__ */ s(
|
|
13753
13753
|
bt,
|
|
13754
13754
|
{
|
|
@@ -13786,7 +13786,7 @@ const ky = (t) => {
|
|
|
13786
13786
|
domain: g,
|
|
13787
13787
|
fetchValues: h,
|
|
13788
13788
|
getAllHierarchyValues: v
|
|
13789
|
-
} = f || {}, { t: y } =
|
|
13789
|
+
} = f || {}, { t: y } = xe(), [b, w] = T(!1), [C, x] = T(!1), [D, S] = T(), [P, F] = T(!1), [$, R] = T(!1), [E, I] = T(), [A, k] = T([]), [_, M] = T(!1), [W, V] = T([]), [N, U] = T(), j = Z(), [ee, B] = T(void 0), z = Z(), {
|
|
13790
13790
|
readOnly: K,
|
|
13791
13791
|
relation: Q,
|
|
13792
13792
|
context: de,
|
|
@@ -13814,8 +13814,8 @@ const ky = (t) => {
|
|
|
13814
13814
|
items: Dy(J)
|
|
13815
13815
|
});
|
|
13816
13816
|
}, ge = async () => {
|
|
13817
|
-
await
|
|
13818
|
-
},
|
|
13817
|
+
await we(), c > G.length - 1 && c !== 0 && d(0);
|
|
13818
|
+
}, we = async (J) => {
|
|
13819
13819
|
var Ce, ue, De;
|
|
13820
13820
|
x(!0), w(!1), S(void 0);
|
|
13821
13821
|
try {
|
|
@@ -13990,7 +13990,7 @@ const ky = (t) => {
|
|
|
13990
13990
|
const { id: Ce } = J;
|
|
13991
13991
|
let ue = i;
|
|
13992
13992
|
const De = i.find((Ve) => Ve.id === Ce);
|
|
13993
|
-
(De == null ? void 0 : De.values) === void 0 && (ue = await
|
|
13993
|
+
(De == null ? void 0 : De.values) === void 0 && (ue = await we("form")), I(ue.find((Ve) => Ve.id === Ce)), M(!1), F(!0);
|
|
13994
13994
|
}, tt = async (J) => {
|
|
13995
13995
|
x(!0);
|
|
13996
13996
|
const Ce = i, ue = J.filter((De) => !i.find((Ve) => Ve.id === De));
|
|
@@ -14288,7 +14288,7 @@ const ky = (t) => {
|
|
|
14288
14288
|
formView: o,
|
|
14289
14289
|
triggerChange: i
|
|
14290
14290
|
}) => {
|
|
14291
|
-
const [a, l] = T(!1), { itemIndex: c } = pe(Tn), { t: d } =
|
|
14291
|
+
const [a, l] = T(!1), { itemIndex: c } = pe(Tn), { t: d } = xe();
|
|
14292
14292
|
ce(() => {
|
|
14293
14293
|
const g = t[c];
|
|
14294
14294
|
(!g || (g == null ? void 0 : g.operation) === "original") && l(!1);
|
|
@@ -14365,7 +14365,7 @@ const ky = (t) => {
|
|
|
14365
14365
|
onChange: i
|
|
14366
14366
|
}, a) => {
|
|
14367
14367
|
var d, f;
|
|
14368
|
-
const { itemIndex: l } = pe(Tn), { t: c } =
|
|
14368
|
+
const { itemIndex: l } = pe(Tn), { t: c } = xe();
|
|
14369
14369
|
return e.length === 0 ? c("noCurrentEntries") : /* @__PURE__ */ s(
|
|
14370
14370
|
Jn,
|
|
14371
14371
|
{
|
|
@@ -14400,7 +14400,7 @@ const Vy = ({
|
|
|
14400
14400
|
selectedRowKeys: o,
|
|
14401
14401
|
setSelectedRowKeys: i
|
|
14402
14402
|
}) => {
|
|
14403
|
-
const { t: a } =
|
|
14403
|
+
const { t: a } = xe(), { currentView: l, itemIndex: c, setItemIndex: d } = pe(
|
|
14404
14404
|
Tn
|
|
14405
14405
|
), { showErrorNotification: f } = yt(), u = O(async () => {
|
|
14406
14406
|
const h = Ly({
|
|
@@ -14634,7 +14634,7 @@ const Hy = ({
|
|
|
14634
14634
|
selectedRowKeys: h = [],
|
|
14635
14635
|
showPointerCursorInRows: v = !0
|
|
14636
14636
|
}) => {
|
|
14637
|
-
const y = Z(), b = c || y, w = Z({}), C = Z(), x = Z(), D = Z(t), { t: S } =
|
|
14637
|
+
const y = Z(), b = c || y, w = Z({}), C = Z(), x = Z(), D = Z(t), { t: S } = xe(), P = Lt(
|
|
14638
14638
|
wt.FEATURE_MANY2ONE_SORT
|
|
14639
14639
|
);
|
|
14640
14640
|
Ue(() => {
|
|
@@ -14823,7 +14823,7 @@ const Hy = ({
|
|
|
14823
14823
|
setFormHasChanges: B,
|
|
14824
14824
|
selectedRowKeys: E,
|
|
14825
14825
|
setSelectedRowKeys: I
|
|
14826
|
-
}),
|
|
14826
|
+
}), we = () => {
|
|
14827
14827
|
const me = Array.from(i.keys()), qe = me[(me.indexOf(c) + 1) % me.length];
|
|
14828
14828
|
c === "form" ? ee(() => {
|
|
14829
14829
|
d(qe);
|
|
@@ -14869,7 +14869,7 @@ const Hy = ({
|
|
|
14869
14869
|
currentItemIndex: f,
|
|
14870
14870
|
onDelete: ge,
|
|
14871
14871
|
onCreateItem: oe,
|
|
14872
|
-
onToggleViewMode:
|
|
14872
|
+
onToggleViewMode: we,
|
|
14873
14873
|
onPreviousItem: ne,
|
|
14874
14874
|
onNextItem: ie,
|
|
14875
14875
|
onSearchItem: Y,
|
|
@@ -15117,7 +15117,7 @@ const Hy = ({
|
|
|
15117
15117
|
) });
|
|
15118
15118
|
};
|
|
15119
15119
|
function cc(t) {
|
|
15120
|
-
const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = Pt(e.icon || ""), { t: i } =
|
|
15120
|
+
const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = Pt(e.icon || ""), { t: i } = xe(), a = e.backgroundColor, l = a ? Rd(a).darken(30).toString() : void 0, c = (e.label || o) && n;
|
|
15121
15121
|
return /* @__PURE__ */ s(
|
|
15122
15122
|
"div",
|
|
15123
15123
|
{
|
|
@@ -15246,7 +15246,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
|
|
|
15246
15246
|
fetchValues: c,
|
|
15247
15247
|
formHasChanges: d,
|
|
15248
15248
|
elementHasLostFocus: f
|
|
15249
|
-
} = i || {}, [u, p] = T(!1), { t: m } =
|
|
15249
|
+
} = i || {}, [u, p] = T(!1), { t: m } = xe();
|
|
15250
15250
|
return a ? /* @__PURE__ */ L(he, { children: [
|
|
15251
15251
|
/* @__PURE__ */ s(
|
|
15252
15252
|
"div",
|
|
@@ -15337,7 +15337,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
|
|
|
15337
15337
|
limit: o,
|
|
15338
15338
|
onClose: i
|
|
15339
15339
|
}) => {
|
|
15340
|
-
const a = Z({}), l = Z(/* @__PURE__ */ new Map()), { t: c } =
|
|
15340
|
+
const a = Z({}), l = Z(/* @__PURE__ */ new Map()), { t: c } = xe(), d = O(
|
|
15341
15341
|
async (v) => {
|
|
15342
15342
|
if (v.selectedKeys === void 0 || v.selectedKeys.length === 0) {
|
|
15343
15343
|
yn(c("selectAtLeastOneField"));
|
|
@@ -15697,7 +15697,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
|
|
|
15697
15697
|
const { ooui: e } = t, { required: n } = e;
|
|
15698
15698
|
return /* @__PURE__ */ s(We, { required: n, ...t, children: /* @__PURE__ */ s(Fv, { ooui: e }) });
|
|
15699
15699
|
}, Fv = (t) => {
|
|
15700
|
-
const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: l } = Sv(), c = i && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = Z(null), { setFieldValue: f, getFieldValue: u } = pe(Qe) || {}, { t: p } =
|
|
15700
|
+
const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: l } = Sv(), c = i && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = Z(null), { setFieldValue: f, getFieldValue: u } = pe(Qe) || {}, { t: p } = xe(), m = n ? Fu(n) : "", g = (w) => {
|
|
15701
15701
|
r == null || r(w);
|
|
15702
15702
|
};
|
|
15703
15703
|
async function h() {
|
|
@@ -15780,7 +15780,7 @@ const { useToken: rv } = Xe, { TextArea: qo } = ft, ov = (t) => {
|
|
|
15780
15780
|
onOpenAttachmentLink: i,
|
|
15781
15781
|
onOpenAttachmentDetail: a,
|
|
15782
15782
|
onListAllAttachments: l
|
|
15783
|
-
} = t, { t: c } =
|
|
15783
|
+
} = t, { t: c } = xe(), d = Z(null), f = /* @__PURE__ */ L(je, { children: [
|
|
15784
15784
|
/* @__PURE__ */ s(Vs, {}),
|
|
15785
15785
|
`(${e})`,
|
|
15786
15786
|
/* @__PURE__ */ s(ur, { style: { fontSize: 12 } })
|
|
@@ -15876,7 +15876,7 @@ function Rv(t) {
|
|
|
15876
15876
|
onAddNewAttachment: r,
|
|
15877
15877
|
onListAllAttachments: o,
|
|
15878
15878
|
onViewAttachmentDetails: i
|
|
15879
|
-
} = t, { formRef: a } = pe(It), [l, c] = T(!1), [d, f] = T([]), [u, p] = T(!1), { t: m } =
|
|
15879
|
+
} = t, { formRef: a } = pe(It), [l, c] = T(!1), [d, f] = T([]), [u, p] = T(!1), { t: m } = xe(), { showErrorNotification: g } = yt(), h = O(async () => {
|
|
15880
15880
|
if (!(!e || e.length === 0)) {
|
|
15881
15881
|
c(!0);
|
|
15882
15882
|
try {
|
|
@@ -16046,7 +16046,7 @@ const Iv = () => {
|
|
|
16046
16046
|
function _v({ toolbar: t }) {
|
|
16047
16047
|
const e = pe(
|
|
16048
16048
|
Nt
|
|
16049
|
-
), { t: n } =
|
|
16049
|
+
), { t: n } = xe(), { onNextClick: r, onPreviousClick: o } = Iv(), { showErrorNotification: i } = yt(), {
|
|
16050
16050
|
availableViews: a,
|
|
16051
16051
|
currentView: l,
|
|
16052
16052
|
setCurrentView: c,
|
|
@@ -16316,7 +16316,7 @@ const Ev = it(_v), fc = it(
|
|
|
16316
16316
|
onNextClick: n,
|
|
16317
16317
|
tryAction: r
|
|
16318
16318
|
}) => {
|
|
16319
|
-
const { t: o } =
|
|
16319
|
+
const { t: o } = xe();
|
|
16320
16320
|
return /* @__PURE__ */ L(ct, { children: [
|
|
16321
16321
|
/* @__PURE__ */ s(
|
|
16322
16322
|
At,
|
|
@@ -16424,7 +16424,7 @@ const Hi = (t, e) => ({
|
|
|
16424
16424
|
}
|
|
16425
16425
|
) });
|
|
16426
16426
|
}, Pv = (t) => {
|
|
16427
|
-
const { visible: e, onIdSubmitted: n, onCancel: r, isSearching: o } = t, { t: i } =
|
|
16427
|
+
const { visible: e, onIdSubmitted: n, onCancel: r, isSearching: o } = t, { t: i } = xe(), a = Z(null), l = Z(!1);
|
|
16428
16428
|
function c(d) {
|
|
16429
16429
|
const f = d.id.split(",").map((u) => parseInt(u.trim()));
|
|
16430
16430
|
n(f, l.current), l.current = !1;
|
|
@@ -16507,7 +16507,7 @@ const Hi = (t, e) => ({
|
|
|
16507
16507
|
);
|
|
16508
16508
|
};
|
|
16509
16509
|
function Mv({ refreshGraph: t }) {
|
|
16510
|
-
const { t: e } =
|
|
16510
|
+
const { t: e } = xe(), {
|
|
16511
16511
|
availableViews: n,
|
|
16512
16512
|
currentView: r,
|
|
16513
16513
|
setCurrentView: o,
|
|
@@ -16787,7 +16787,7 @@ const $v = (t) => {
|
|
|
16787
16787
|
);
|
|
16788
16788
|
};
|
|
16789
16789
|
function Lv() {
|
|
16790
|
-
const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = pe(Ds), { permissions: o } = jt(), { t: i } =
|
|
16790
|
+
const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = pe(Ds), { permissions: o } = jt(), { t: i } = xe();
|
|
16791
16791
|
return /* @__PURE__ */ L(ct, { wrap: !0, children: [
|
|
16792
16792
|
(o == null ? void 0 : o.write) && /* @__PURE__ */ s(
|
|
16793
16793
|
At,
|
|
@@ -16932,7 +16932,7 @@ function Wv(t, e) {
|
|
|
16932
16932
|
order: w
|
|
16933
16933
|
} = t, [C, x] = T(), [D, S] = T([]), [P, F] = T(!0), $ = p || void 0, [R, E] = T(
|
|
16934
16934
|
$
|
|
16935
|
-
), [I, A] = T([]), [k, _] = T(), [M, W] = T([]), [V, N] = T(), [U, j] = T(), [ee, B] = T(!1), [z, K] = T(!1), [Q, de] = T(), { t: q } =
|
|
16935
|
+
), [I, A] = T([]), [k, _] = T(), [M, W] = T([]), [V, N] = T(), [U, j] = T(), [ee, B] = T(!1), [z, K] = T(!1), [Q, de] = T(), { t: q } = xe(), { showErrorNotification: oe } = yt(), {
|
|
16936
16936
|
permissions: se,
|
|
16937
16937
|
loading: G,
|
|
16938
16938
|
error: le
|
|
@@ -16943,7 +16943,7 @@ function Wv(t, e) {
|
|
|
16943
16943
|
}), te = Z(), Y = Z(), ge = pe(
|
|
16944
16944
|
Nt
|
|
16945
16945
|
), {
|
|
16946
|
-
setCurrentView:
|
|
16946
|
+
setCurrentView: we,
|
|
16947
16947
|
setCurrentId: ve,
|
|
16948
16948
|
tabs: ne,
|
|
16949
16949
|
activeKey: ie,
|
|
@@ -16963,9 +16963,9 @@ function Wv(t, e) {
|
|
|
16963
16963
|
}
|
|
16964
16964
|
const $e = O(
|
|
16965
16965
|
(Se) => {
|
|
16966
|
-
x(Se),
|
|
16966
|
+
x(Se), we == null || we(Se);
|
|
16967
16967
|
},
|
|
16968
|
-
[
|
|
16968
|
+
[we]
|
|
16969
16969
|
);
|
|
16970
16970
|
Ht(e, () => ({
|
|
16971
16971
|
canWeClose: qe
|
|
@@ -17087,7 +17087,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
17087
17087
|
if (ie === c) {
|
|
17088
17088
|
ve == null || ve(R);
|
|
17089
17089
|
const Se = { action_id: m, action_type: g };
|
|
17090
|
-
|
|
17090
|
+
we == null || we({ ...C, extra: Se });
|
|
17091
17091
|
}
|
|
17092
17092
|
}, [ne, ie]), ce(() => {
|
|
17093
17093
|
le && oe({
|
|
@@ -17539,12 +17539,12 @@ function zv(t, e) {
|
|
|
17539
17539
|
});
|
|
17540
17540
|
if (te) {
|
|
17541
17541
|
const [Y, ge] = te, {
|
|
17542
|
-
actionId:
|
|
17542
|
+
actionId: we,
|
|
17543
17543
|
actionType: ve,
|
|
17544
17544
|
title: ne,
|
|
17545
17545
|
model: ie
|
|
17546
17546
|
} = A, Te = {
|
|
17547
|
-
action_id:
|
|
17547
|
+
action_id: we,
|
|
17548
17548
|
action_type: ve,
|
|
17549
17549
|
name: ne,
|
|
17550
17550
|
res_id: le.id,
|
|
@@ -17588,13 +17588,13 @@ function zv(t, e) {
|
|
|
17588
17588
|
const [le, te] = G, {
|
|
17589
17589
|
actionId: Y,
|
|
17590
17590
|
actionType: ge,
|
|
17591
|
-
title:
|
|
17591
|
+
title: we,
|
|
17592
17592
|
model: ve
|
|
17593
17593
|
} = A;
|
|
17594
17594
|
se = {
|
|
17595
17595
|
action_id: Y,
|
|
17596
17596
|
action_type: ge,
|
|
17597
|
-
name:
|
|
17597
|
+
name: we,
|
|
17598
17598
|
res_id: !1,
|
|
17599
17599
|
res_model: ve,
|
|
17600
17600
|
view_id: le,
|
|
@@ -17856,7 +17856,7 @@ function pb({ text: t }) {
|
|
|
17856
17856
|
] }, r)) });
|
|
17857
17857
|
}
|
|
17858
17858
|
const mb = (t) => {
|
|
17859
|
-
const { data: e, style: n } = t, { t: r } =
|
|
17859
|
+
const { data: e, style: n } = t, { t: r } = xe();
|
|
17860
17860
|
return /* @__PURE__ */ L(Jo, { style: { ...n, textAlign: "start" }, children: [
|
|
17861
17861
|
/* @__PURE__ */ s(
|
|
17862
17862
|
db,
|
|
@@ -17974,11 +17974,11 @@ const mb = (t) => {
|
|
|
17974
17974
|
);
|
|
17975
17975
|
}, { Content: Fb } = qi, { Title: Ab } = on;
|
|
17976
17976
|
function Rb() {
|
|
17977
|
-
const { t } =
|
|
17977
|
+
const { t } = xe();
|
|
17978
17978
|
return /* @__PURE__ */ s(Fb, { className: "m-5 select-none", children: /* @__PURE__ */ s(Ab, { level: 5, children: t("welcome") }) });
|
|
17979
17979
|
}
|
|
17980
17980
|
function Ib(t, e) {
|
|
17981
|
-
const { children: n } = t, [r, o] = T("welcome"), { t: i } =
|
|
17981
|
+
const { children: n } = t, [r, o] = T("welcome"), { t: i } = xe(), { showErrorNotification: a } = yt(), { globalValues: l, rootContext: c } = Xt(), d = Zr(
|
|
17982
17982
|
wt.FEATURE_LOGGABLE_ACTIONS
|
|
17983
17983
|
), [f, u] = Re(
|
|
17984
17984
|
H.getHandler().logAction
|
|
@@ -18131,8 +18131,8 @@ function Ib(t, e) {
|
|
|
18131
18131
|
values: l,
|
|
18132
18132
|
context: { ...c, ...z, ...V }
|
|
18133
18133
|
}) : [];
|
|
18134
|
-
} catch (
|
|
18135
|
-
return console.error(
|
|
18134
|
+
} catch (we) {
|
|
18135
|
+
return console.error(we), [];
|
|
18136
18136
|
}
|
|
18137
18137
|
})(), {
|
|
18138
18138
|
res_model: de,
|
|
@@ -18142,10 +18142,10 @@ function Ib(t, e) {
|
|
|
18142
18142
|
view_type: G,
|
|
18143
18143
|
limit: le
|
|
18144
18144
|
} = N, te = G === "tree", Y = [];
|
|
18145
|
-
for (const
|
|
18146
|
-
const [ve, ne] =
|
|
18145
|
+
for (const we of q) {
|
|
18146
|
+
const [ve, ne] = we;
|
|
18147
18147
|
if (ve)
|
|
18148
|
-
Y.push(
|
|
18148
|
+
Y.push(we);
|
|
18149
18149
|
else if (ne === "dashboard")
|
|
18150
18150
|
Y.push([void 0, "dashboard"]);
|
|
18151
18151
|
else {
|
|
@@ -18160,13 +18160,13 @@ function Ib(t, e) {
|
|
|
18160
18160
|
}
|
|
18161
18161
|
let ge;
|
|
18162
18162
|
if (_) {
|
|
18163
|
-
const [
|
|
18163
|
+
const [we, ve] = Y.find(
|
|
18164
18164
|
([ne, ie]) => ie === _
|
|
18165
18165
|
);
|
|
18166
|
-
ge = { id:
|
|
18166
|
+
ge = { id: we, type: ve };
|
|
18167
18167
|
} else {
|
|
18168
|
-
const [
|
|
18169
|
-
ge = { id:
|
|
18168
|
+
const [we, ve] = Y[0];
|
|
18169
|
+
ge = { id: we, type: ve };
|
|
18170
18170
|
}
|
|
18171
18171
|
R({
|
|
18172
18172
|
domain: [...Q, ...W],
|
|
@@ -18307,7 +18307,7 @@ function Ib(t, e) {
|
|
|
18307
18307
|
Y = void 0, ge = ve[1];
|
|
18308
18308
|
} else
|
|
18309
18309
|
[Y, ge] = te.find((ve) => ve[0] === void 0 ? !1 : ve[0] === M);
|
|
18310
|
-
const
|
|
18310
|
+
const we = { id: Y, type: ge };
|
|
18311
18311
|
R({
|
|
18312
18312
|
domain: z,
|
|
18313
18313
|
context: { ...c, ...B },
|
|
@@ -18315,7 +18315,7 @@ function Ib(t, e) {
|
|
|
18315
18315
|
views: te,
|
|
18316
18316
|
title: q,
|
|
18317
18317
|
target: oe,
|
|
18318
|
-
initialView:
|
|
18318
|
+
initialView: we,
|
|
18319
18319
|
action_id: A,
|
|
18320
18320
|
action_type: k,
|
|
18321
18321
|
res_id: _,
|
|
@@ -18784,7 +18784,7 @@ const { useToken: kb } = Xe, Mw = (t) => {
|
|
|
18784
18784
|
onAddFavourite: r,
|
|
18785
18785
|
onRemoveFavourite: o,
|
|
18786
18786
|
onDropdownClosed: i
|
|
18787
|
-
} = t, [a, l] = T(!1), [c, d] = T(), { t: f } =
|
|
18787
|
+
} = t, [a, l] = T(!1), [c, d] = T(), { t: f } = xe(), { token: u } = kb(), p = Z(null), m = pe(
|
|
18788
18788
|
Nt
|
|
18789
18789
|
), {
|
|
18790
18790
|
openShortcut: g,
|