@gisce/react-ooui 2.125.2 → 2.125.4
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/{TabContent-76f1cb1a.mjs → TabContent-e1cbbf1c.mjs} +683 -680
- package/dist/TabContent-e1cbbf1c.mjs.map +1 -0
- package/dist/comments/MessageBubble.d.ts.map +1 -1
- package/dist/docs.es.js +1 -1
- package/dist/helpers/filesHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +2 -2
- package/package.json +1 -1
- package/dist/TabContent-76f1cb1a.mjs.map +0 -1
|
@@ -3,9 +3,9 @@ var Zd = (t, e, n) => e in t ? Xd(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var _i = (t, e, n) => (Zd(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import { jsx as s, jsxs as H, Fragment as Oe } from "react/jsx-runtime";
|
|
5
5
|
import fn, { useContext as ke, useState as E, useEffect as ye, useRef as X, memo as nt, useCallback as S, useMemo as K, forwardRef as zt, useImperativeHandle as en, Fragment as Gn, createContext as eu, createElement as Ka } from "react";
|
|
6
|
-
import { Tooltip as
|
|
6
|
+
import { Tooltip as Pt, theme as ot, Typography as Jt, Form as Dt, Row as dt, Col as et, Modal as jt, Button as Ke, Dropdown as Bs, Menu as Ja, Space as ht, Spin as ct, Divider as Yr, Input as Mt, Select as gn, Checkbox as kr, Empty as mr, Alert as Ut, Timeline as Qa, Progress as tu, Badge as Kn, message as pr, Popover as nu, Avatar as Ro, Tag as Hs, ColorPicker as Xa, DatePicker as ru, TimePicker as ou, InputNumber as qr, Layout as Za, Pagination as su, Statistic as iu, Card as Gr, QRCode as au, Tabs as el, Mentions as lu, Radio as Ai, Switch as tl, Steps as Ii, Carousel as cu } from "antd";
|
|
7
7
|
import { Label as wr, Field as Cs, Tree as nl, Tags as Ei, Reference as Ri, Selection as yo, Many2one as Fo, Boolean as du, parseContext as Mn, parseContextFields as uu, parseDomainFields as fu, transformDomainForChildWidget as Oo, graphProcessor as rl, graphFieldUtils as mu, Integer as xs, SearchFieldTypes as Dn, SearchFilter as ol, parseGraph as sl, Container as pu, Form as il, KanbanCard as hu, Button as al, Kanban as ll } from "@gisce/ooui";
|
|
8
|
-
import gu, { QuestionCircleOutlined as cl, ExclamationCircleOutlined as Do, LoadingOutlined as Zt, DownOutlined as Kr, CloseOutlined as kn, CheckOutlined as $n, TranslationOutlined as dl, ExportOutlined as $r, ThunderboltOutlined as Mo, PrinterOutlined as No, EnterOutlined as ko, CloseCircleFilled as ul, SearchOutlined as Cr, PlusOutlined as
|
|
8
|
+
import gu, { QuestionCircleOutlined as cl, ExclamationCircleOutlined as Do, LoadingOutlined as Zt, DownOutlined as Kr, CloseOutlined as kn, CheckOutlined as $n, TranslationOutlined as dl, ExportOutlined as $r, ThunderboltOutlined as Mo, PrinterOutlined as No, EnterOutlined as ko, CloseCircleFilled as ul, SearchOutlined as Cr, PlusOutlined as Pr, FolderOpenOutlined as js, DownloadOutlined as Us, ClearOutlined as xr, FormOutlined as vo, TableOutlined as fl, AreaChartOutlined as yu, CalendarOutlined as vu, BorderOuterOutlined as ml, FileAddOutlined as $o, FilterOutlined as lr, EditOutlined as pl, CopyOutlined as Jn, DeleteOutlined as Po, InfoCircleOutlined as Lo, ReloadOutlined as Jr, SaveOutlined as Ss, UpOutlined as bu, PlusSquareOutlined as hl, MinusSquareOutlined as gl, StarFilled as wu, StarOutlined as Cu, LeftOutlined as yl, RightOutlined as vl, ApiOutlined as xu, AlignLeftOutlined as Su, EyeOutlined as Tu, LinkOutlined as Fi, MessageOutlined as _u, BellFilled as Au, BellOutlined as Iu, ExclamationCircleFilled as Eu, SendOutlined as Ru, SettingOutlined as Fu, EllipsisOutlined as Ou } from "@ant-design/icons";
|
|
9
9
|
import { Interweave as Tn } from "interweave";
|
|
10
10
|
import it from "dayjs";
|
|
11
11
|
import Du from "dayjs/plugin/advancedFormat";
|
|
@@ -13,10 +13,10 @@ import Mu from "dayjs/plugin/customParseFormat";
|
|
|
13
13
|
import Nu from "dayjs/plugin/isoWeek";
|
|
14
14
|
import ku from "dayjs/plugin/timezone";
|
|
15
15
|
import $u from "dayjs/plugin/duration";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import Pu from "dayjs/plugin/relativeTime";
|
|
17
|
+
import Lu from "dayjs/plugin/weekday";
|
|
18
18
|
import Vu from "dayjs/plugin/localeData";
|
|
19
|
-
import { useLocale as Me, Icon as
|
|
19
|
+
import { useLocale as Me, Icon as Lr, iconMapper as Lt, useNotificationContext as Bu, FormigaConfigProvider as Hu, mergeStrings as ju, Many2OneSuffix as Uu, Many2OneSuffixModal as Oi, Dropdown as bl, ToggleDropdownButton as Wu, getTablerIcon as In, DropdownButton as _n, ProgressBarValue as zu, DateValue as Yu, DateTimeValue as qu, useDatePickerLocale as Gu, SkeletonPill as Ku, PaginationHeader as Ju, FieldSet as wl, ExportModal as Qu, DateMaskedInput as Cl, DateInput as Xu, HTMLPreview as Zu } from "@gisce/react-formiga-components";
|
|
20
20
|
import yt from "antd/es/alert/ErrorBoundary";
|
|
21
21
|
import ef from "antd/lib/input/TextArea";
|
|
22
22
|
import pt from "styled-components";
|
|
@@ -146,7 +146,7 @@ const ut = fn.createContext(null), Mf = (t) => {
|
|
|
146
146
|
refreshCounter: 0
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var Pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
150
150
|
function Sr(t) {
|
|
151
151
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
152
152
|
}
|
|
@@ -154,7 +154,7 @@ var El = { exports: {} };
|
|
|
154
154
|
(function(t, e) {
|
|
155
155
|
(function(n, r) {
|
|
156
156
|
t.exports = r();
|
|
157
|
-
})(
|
|
157
|
+
})(Pn, function() {
|
|
158
158
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
|
|
159
159
|
return function(i, a, d) {
|
|
160
160
|
var c = a.prototype;
|
|
@@ -237,7 +237,7 @@ var Rl = { exports: {} };
|
|
|
237
237
|
(function(t, e) {
|
|
238
238
|
(function(n, r) {
|
|
239
239
|
t.exports = r();
|
|
240
|
-
})(
|
|
240
|
+
})(Pn, function() {
|
|
241
241
|
return function(n, r, o) {
|
|
242
242
|
var i = "h:mm A", a = { lastDay: "[Yesterday at] " + i, sameDay: "[Today at] " + i, nextDay: "[Tomorrow at] " + i, nextWeek: "dddd [at] " + i, lastWeek: "[Last] dddd [at] " + i, sameElse: "MM/DD/YYYY" };
|
|
243
243
|
r.prototype.calendar = function(d, c) {
|
|
@@ -248,12 +248,12 @@ var Rl = { exports: {} };
|
|
|
248
248
|
});
|
|
249
249
|
})(Rl);
|
|
250
250
|
var $f = Rl.exports;
|
|
251
|
-
const
|
|
251
|
+
const Pf = /* @__PURE__ */ Sr($f);
|
|
252
252
|
var Fl = { exports: {} };
|
|
253
253
|
(function(t, e) {
|
|
254
254
|
(function(n, r) {
|
|
255
255
|
t.exports = r();
|
|
256
|
-
})(
|
|
256
|
+
})(Pn, function() {
|
|
257
257
|
return function(n, r, o) {
|
|
258
258
|
r.prototype.isToday = function() {
|
|
259
259
|
var i = "YYYY-MM-DD", a = o();
|
|
@@ -262,13 +262,13 @@ var Fl = { exports: {} };
|
|
|
262
262
|
};
|
|
263
263
|
});
|
|
264
264
|
})(Fl);
|
|
265
|
-
var
|
|
266
|
-
const Vf = /* @__PURE__ */ Sr(
|
|
265
|
+
var Lf = Fl.exports;
|
|
266
|
+
const Vf = /* @__PURE__ */ Sr(Lf);
|
|
267
267
|
var Ol = { exports: {} };
|
|
268
268
|
(function(t, e) {
|
|
269
269
|
(function(n, r) {
|
|
270
270
|
t.exports = r();
|
|
271
|
-
})(
|
|
271
|
+
})(Pn, function() {
|
|
272
272
|
return function(n, r, o) {
|
|
273
273
|
r.prototype.isYesterday = function() {
|
|
274
274
|
var i = "YYYY-MM-DD", a = o().subtract(1, "day");
|
|
@@ -283,7 +283,7 @@ var Dl = { exports: {} };
|
|
|
283
283
|
(function(t, e) {
|
|
284
284
|
(function(n, r) {
|
|
285
285
|
t.exports = r();
|
|
286
|
-
})(
|
|
286
|
+
})(Pn, function() {
|
|
287
287
|
return function(n, r, o) {
|
|
288
288
|
o.updateLocale = function(i, a) {
|
|
289
289
|
var d = o.Ls[i];
|
|
@@ -301,7 +301,7 @@ var Wf = { exports: {} };
|
|
|
301
301
|
(function(t, e) {
|
|
302
302
|
(function(n, r) {
|
|
303
303
|
t.exports = r(it);
|
|
304
|
-
})(
|
|
304
|
+
})(Pn, function(n) {
|
|
305
305
|
function r(a) {
|
|
306
306
|
return a && typeof a == "object" && "default" in a ? a : { default: a };
|
|
307
307
|
}
|
|
@@ -315,7 +315,7 @@ var zf = { exports: {} };
|
|
|
315
315
|
(function(t, e) {
|
|
316
316
|
(function(n, r) {
|
|
317
317
|
t.exports = r();
|
|
318
|
-
})(
|
|
318
|
+
})(Pn, function() {
|
|
319
319
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(n) {
|
|
320
320
|
var r = ["th", "st", "nd", "rd"], o = n % 100;
|
|
321
321
|
return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
|
|
@@ -326,7 +326,7 @@ var Yf = { exports: {} };
|
|
|
326
326
|
(function(t, e) {
|
|
327
327
|
(function(n, r) {
|
|
328
328
|
t.exports = r(it);
|
|
329
|
-
})(
|
|
329
|
+
})(Pn, function(n) {
|
|
330
330
|
function r(a) {
|
|
331
331
|
return a && typeof a == "object" && "default" in a ? a : { default: a };
|
|
332
332
|
}
|
|
@@ -342,10 +342,10 @@ it.extend(Mu);
|
|
|
342
342
|
it.extend(Nu);
|
|
343
343
|
it.extend(ku);
|
|
344
344
|
it.extend($u);
|
|
345
|
-
it.extend(Lu);
|
|
346
345
|
it.extend(Pu);
|
|
346
|
+
it.extend(Lu);
|
|
347
347
|
it.extend(Vu);
|
|
348
|
-
it.extend(
|
|
348
|
+
it.extend(Pf);
|
|
349
349
|
it.extend(Vf);
|
|
350
350
|
it.extend(Hf);
|
|
351
351
|
it.extend(Uf);
|
|
@@ -402,7 +402,7 @@ const { Text: qf, Title: Gf } = Jt, { useToken: Kf } = ot, Jf = {
|
|
|
402
402
|
{
|
|
403
403
|
className: `flex flex-row items-center pb-1 pt-1 ${Jf[g]}`,
|
|
404
404
|
children: [
|
|
405
|
-
i && /* @__PURE__ */ s(
|
|
405
|
+
i && /* @__PURE__ */ s(Pt, { title: i, children: /* @__PURE__ */ s(
|
|
406
406
|
cl,
|
|
407
407
|
{
|
|
408
408
|
className: "pr-1 text-xs",
|
|
@@ -515,7 +515,7 @@ const { confirm: Qf } = jt, vn = ({
|
|
|
515
515
|
h();
|
|
516
516
|
}
|
|
517
517
|
function v() {
|
|
518
|
-
return m ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(
|
|
518
|
+
return m ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(Lr, { icon: d });
|
|
519
519
|
}
|
|
520
520
|
return /* @__PURE__ */ s(tt, { ooui: e, children: /* @__PURE__ */ s(
|
|
521
521
|
Ke,
|
|
@@ -551,7 +551,7 @@ const { confirm: Qf } = jt, vn = ({
|
|
|
551
551
|
if (h)
|
|
552
552
|
return /* @__PURE__ */ s(Zt, {});
|
|
553
553
|
if (l) {
|
|
554
|
-
const w =
|
|
554
|
+
const w = Lt(l);
|
|
555
555
|
return w && /* @__PURE__ */ s(w, {});
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -628,7 +628,7 @@ const { confirm: Qf } = jt, vn = ({
|
|
|
628
628
|
if (p)
|
|
629
629
|
return /* @__PURE__ */ s(Zt, {});
|
|
630
630
|
if (l) {
|
|
631
|
-
const b =
|
|
631
|
+
const b = Lt(l);
|
|
632
632
|
return b && /* @__PURE__ */ s(b, {});
|
|
633
633
|
}
|
|
634
634
|
}
|
|
@@ -730,7 +730,7 @@ const Ml = (t) => {
|
|
|
730
730
|
c.map((m) => /* @__PURE__ */ s(
|
|
731
731
|
Ke,
|
|
732
732
|
{
|
|
733
|
-
icon: /* @__PURE__ */ s(
|
|
733
|
+
icon: /* @__PURE__ */ s(Lr, { icon: m.icon }),
|
|
734
734
|
size: "small",
|
|
735
735
|
onClick: () => {
|
|
736
736
|
t == null || t(m.action), l == null || l.destroy();
|
|
@@ -743,7 +743,7 @@ const Ml = (t) => {
|
|
|
743
743
|
Ke,
|
|
744
744
|
{
|
|
745
745
|
type: "primary",
|
|
746
|
-
icon: /* @__PURE__ */ s(
|
|
746
|
+
icon: /* @__PURE__ */ s(Lr, { icon: "check" }),
|
|
747
747
|
size: "small",
|
|
748
748
|
onClick: () => {
|
|
749
749
|
var m;
|
|
@@ -825,22 +825,22 @@ const Ml = (t) => {
|
|
|
825
825
|
params: [["translatable", "=", "1"]],
|
|
826
826
|
fieldsToRetrieve: ["code", "name"],
|
|
827
827
|
model: "res.lang"
|
|
828
|
-
})).map((
|
|
829
|
-
code:
|
|
830
|
-
name:
|
|
828
|
+
})).map((P) => ({
|
|
829
|
+
code: P.code,
|
|
830
|
+
name: P.name
|
|
831
831
|
}));
|
|
832
832
|
return f == null || f(D), D;
|
|
833
833
|
}
|
|
834
834
|
async function w(O) {
|
|
835
835
|
const D = {};
|
|
836
|
-
for (const
|
|
836
|
+
for (const P of O) {
|
|
837
837
|
const M = (await G.getHandler().readObjects({
|
|
838
838
|
model: r,
|
|
839
839
|
ids: [o],
|
|
840
840
|
fieldsToRetrieve: [i],
|
|
841
|
-
context: { lang:
|
|
841
|
+
context: { lang: P.code }
|
|
842
842
|
}))[0];
|
|
843
|
-
D[
|
|
843
|
+
D[P.code] = M[i] || "";
|
|
844
844
|
}
|
|
845
845
|
v.current = D, y(D);
|
|
846
846
|
}
|
|
@@ -852,10 +852,10 @@ const Ml = (t) => {
|
|
|
852
852
|
{
|
|
853
853
|
rows: 4,
|
|
854
854
|
value: h[O.code] || "",
|
|
855
|
-
onChange: (
|
|
855
|
+
onChange: (P) => {
|
|
856
856
|
y({
|
|
857
857
|
...h,
|
|
858
|
-
[O.code]:
|
|
858
|
+
[O.code]: P.target.value
|
|
859
859
|
});
|
|
860
860
|
},
|
|
861
861
|
disabled: p
|
|
@@ -927,7 +927,7 @@ const Ml = (t) => {
|
|
|
927
927
|
};
|
|
928
928
|
function Nt(t) {
|
|
929
929
|
const { tooltip: e, ...n } = t;
|
|
930
|
-
return /* @__PURE__ */ s(
|
|
930
|
+
return /* @__PURE__ */ s(Pt, { title: e, children: /* @__PURE__ */ s(Ke, { ...n }) });
|
|
931
931
|
}
|
|
932
932
|
const { info: nm } = jt, Wn = (t) => {
|
|
933
933
|
nm({
|
|
@@ -970,7 +970,7 @@ Vr.displayName = "BaseInput";
|
|
|
970
970
|
const kl = (t) => {
|
|
971
971
|
const { ooui: e, isSearchField: n = !1 } = t, { id: r, readOnly: o, required: i, translatable: a } = e;
|
|
972
972
|
let d = /* @__PURE__ */ s($l, { ooui: e, isSearchField: n });
|
|
973
|
-
return a && !o && !n && (d = /* @__PURE__ */ s(
|
|
973
|
+
return a && !o && !n && (d = /* @__PURE__ */ s(Pl, { ooui: e, field: r })), /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(tt, { required: i, ...t, children: d }) });
|
|
974
974
|
}, $l = nt(
|
|
975
975
|
({
|
|
976
976
|
value: t,
|
|
@@ -1013,7 +1013,7 @@ const kl = (t) => {
|
|
|
1013
1013
|
return /* @__PURE__ */ s(
|
|
1014
1014
|
Vr,
|
|
1015
1015
|
{
|
|
1016
|
-
component: u ?
|
|
1016
|
+
component: u ? Ll : Mt,
|
|
1017
1017
|
ooui: e,
|
|
1018
1018
|
value: f,
|
|
1019
1019
|
disabled: a || m || c && !n,
|
|
@@ -1026,7 +1026,7 @@ const kl = (t) => {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
);
|
|
1028
1028
|
$l.displayName = "CharInput";
|
|
1029
|
-
const
|
|
1029
|
+
const Pl = nt(
|
|
1030
1030
|
({
|
|
1031
1031
|
ooui: t,
|
|
1032
1032
|
value: e,
|
|
@@ -1088,7 +1088,7 @@ const Ll = nt(
|
|
|
1088
1088
|
/* @__PURE__ */ s(et, { flex: "auto", children: /* @__PURE__ */ s(
|
|
1089
1089
|
Vr,
|
|
1090
1090
|
{
|
|
1091
|
-
component: h ?
|
|
1091
|
+
component: h ? Ll : Mt,
|
|
1092
1092
|
ooui: t,
|
|
1093
1093
|
value: e,
|
|
1094
1094
|
id: n,
|
|
@@ -1108,7 +1108,7 @@ const Ll = nt(
|
|
|
1108
1108
|
] });
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
|
|
1111
|
+
Pl.displayName = "TranslatableCharComp";
|
|
1112
1112
|
const im = pt(Mt)`
|
|
1113
1113
|
&.ant-input {
|
|
1114
1114
|
cursor: ${(t) => t.disabled ? "pointer" : "text"};
|
|
@@ -1120,7 +1120,7 @@ const im = pt(Mt)`
|
|
|
1120
1120
|
cursor: pointer;
|
|
1121
1121
|
pointer-events: none;
|
|
1122
1122
|
}
|
|
1123
|
-
`,
|
|
1123
|
+
`, Ll = pt(Mt)`
|
|
1124
1124
|
&.ant-input {
|
|
1125
1125
|
background-color: ${qs.colorPrimaryBg};
|
|
1126
1126
|
}
|
|
@@ -1308,7 +1308,7 @@ const im = pt(Mt)`
|
|
|
1308
1308
|
function Ni(t, e, n) {
|
|
1309
1309
|
return n.indexOf(t) === e;
|
|
1310
1310
|
}
|
|
1311
|
-
const
|
|
1311
|
+
const Ln = ({
|
|
1312
1312
|
values: t,
|
|
1313
1313
|
fields: e
|
|
1314
1314
|
}) => {
|
|
@@ -2060,10 +2060,10 @@ function Yl(t, e, n) {
|
|
|
2060
2060
|
for (let l = 0; l < r.length; l++)
|
|
2061
2061
|
o[l] = r.charCodeAt(l);
|
|
2062
2062
|
const i = new Uint8Array(o), a = new Blob([i], { type: e }), d = URL.createObjectURL(a);
|
|
2063
|
-
return window.open(d) ?
|
|
2063
|
+
return window.open(d) ? !0 : (URL.revokeObjectURL(d), Gs(t, e, n), !1);
|
|
2064
2064
|
}
|
|
2065
2065
|
var kt = /* @__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))(kt || {});
|
|
2066
|
-
const TS = Object.values(kt), qt = 80, Nn = "ir.actions.act_window", Nm = "ir.actions.act_window_close", km = "ir.actions.wizard", As = "ir.actions.report.xml", $m = "ir.actions.act_url",
|
|
2066
|
+
const TS = Object.values(kt), qt = 80, Nn = "ir.actions.act_window", Nm = "ir.actions.act_window_close", km = "ir.actions.wizard", As = "ir.actions.report.xml", $m = "ir.actions.act_url", Pm = "ir.actions.actions", Lm = "ir.act.update_token", es = "9007199254740991";
|
|
2067
2067
|
function an(t) {
|
|
2068
2068
|
if (t == null)
|
|
2069
2069
|
return null;
|
|
@@ -2368,7 +2368,7 @@ const Is = (t) => {
|
|
|
2368
2368
|
console.error("Error extracting visible tree fields:", e);
|
|
2369
2369
|
return;
|
|
2370
2370
|
}
|
|
2371
|
-
}, En = fn.createContext(null),
|
|
2371
|
+
}, En = fn.createContext(null), Pi = async (t) => {
|
|
2372
2372
|
var e;
|
|
2373
2373
|
for (let n = 0; n < t.length; n++)
|
|
2374
2374
|
await ((e = t == null ? void 0 : t[n]) == null ? void 0 : e.call(t));
|
|
@@ -2391,7 +2391,7 @@ const Is = (t) => {
|
|
|
2391
2391
|
context: {}
|
|
2392
2392
|
}
|
|
2393
2393
|
);
|
|
2394
|
-
async function x(
|
|
2394
|
+
async function x(P) {
|
|
2395
2395
|
var te;
|
|
2396
2396
|
const {
|
|
2397
2397
|
reportData: M,
|
|
@@ -2400,13 +2400,13 @@ const Is = (t) => {
|
|
|
2400
2400
|
context: A = {},
|
|
2401
2401
|
treeView: k,
|
|
2402
2402
|
view_id: $
|
|
2403
|
-
} =
|
|
2403
|
+
} = P, {
|
|
2404
2404
|
context: j,
|
|
2405
2405
|
model: Q,
|
|
2406
2406
|
datas: V = {},
|
|
2407
2407
|
report_name: B,
|
|
2408
2408
|
type: N,
|
|
2409
|
-
id:
|
|
2409
|
+
id: L
|
|
2410
2410
|
} = M;
|
|
2411
2411
|
if (!$ && k) {
|
|
2412
2412
|
const ee = Is(k);
|
|
@@ -2434,7 +2434,7 @@ const Is = (t) => {
|
|
|
2434
2434
|
try {
|
|
2435
2435
|
g({
|
|
2436
2436
|
action_type: N,
|
|
2437
|
-
action_id:
|
|
2437
|
+
action_id: L,
|
|
2438
2438
|
context: A
|
|
2439
2439
|
});
|
|
2440
2440
|
} catch (be) {
|
|
@@ -2454,11 +2454,11 @@ const Is = (t) => {
|
|
|
2454
2454
|
i.current = !1, clearInterval(o.current), m(ee), d(!1);
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
async function w(
|
|
2457
|
+
async function w(P) {
|
|
2458
2458
|
let M;
|
|
2459
2459
|
try {
|
|
2460
2460
|
if (M = await G.getHandler().getReport({
|
|
2461
|
-
id:
|
|
2461
|
+
id: P
|
|
2462
2462
|
}), M.state && i.current === !0) {
|
|
2463
2463
|
i.current = !1, clearInterval(o.current), d(!1);
|
|
2464
2464
|
const F = await hr(M.result);
|
|
@@ -2473,7 +2473,7 @@ const Is = (t) => {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
2475
|
async function _({
|
|
2476
|
-
actionData:
|
|
2476
|
+
actionData: P,
|
|
2477
2477
|
fields: M,
|
|
2478
2478
|
values: F,
|
|
2479
2479
|
context: R,
|
|
@@ -2481,10 +2481,10 @@ const Is = (t) => {
|
|
|
2481
2481
|
treeView: k,
|
|
2482
2482
|
view_id: $
|
|
2483
2483
|
}) {
|
|
2484
|
-
const { type: j } =
|
|
2484
|
+
const { type: j } = P;
|
|
2485
2485
|
if (A && f.current.push(A), j === As)
|
|
2486
2486
|
return await x({
|
|
2487
|
-
reportData:
|
|
2487
|
+
reportData: P,
|
|
2488
2488
|
fields: M,
|
|
2489
2489
|
values: F,
|
|
2490
2490
|
context: R,
|
|
@@ -2492,10 +2492,10 @@ const Is = (t) => {
|
|
|
2492
2492
|
view_id: $
|
|
2493
2493
|
});
|
|
2494
2494
|
if (j === Nn)
|
|
2495
|
-
return await T({ actionData:
|
|
2495
|
+
return await T({ actionData: P, fields: M, values: F, context: R });
|
|
2496
2496
|
if (j === $m)
|
|
2497
2497
|
window.open(
|
|
2498
|
-
Tm(
|
|
2498
|
+
Tm(P.url, { ...F, context: R }),
|
|
2499
2499
|
"_blank"
|
|
2500
2500
|
);
|
|
2501
2501
|
else
|
|
@@ -2506,16 +2506,16 @@ const Is = (t) => {
|
|
|
2506
2506
|
}), {};
|
|
2507
2507
|
}
|
|
2508
2508
|
async function T({
|
|
2509
|
-
actionData:
|
|
2509
|
+
actionData: P,
|
|
2510
2510
|
fields: M = {},
|
|
2511
2511
|
values: F = {},
|
|
2512
2512
|
context: R = {}
|
|
2513
2513
|
}) {
|
|
2514
2514
|
var B;
|
|
2515
|
-
let A =
|
|
2516
|
-
|
|
2515
|
+
let A = P;
|
|
2516
|
+
P.res_model || (A = (await G.getHandler().readObjects({
|
|
2517
2517
|
model: Nn,
|
|
2518
|
-
ids: [parseInt(
|
|
2518
|
+
ids: [parseInt(P.id)],
|
|
2519
2519
|
context: R
|
|
2520
2520
|
}))[0]);
|
|
2521
2521
|
const k = A.context, $ = typeof (A == null ? void 0 : A.context) == "string" ? Mn({
|
|
@@ -2530,7 +2530,7 @@ const Is = (t) => {
|
|
|
2530
2530
|
const V = A.domain;
|
|
2531
2531
|
if (A.domain && (Q = await G.getHandler().evalDomain({
|
|
2532
2532
|
domain: A.domain,
|
|
2533
|
-
values:
|
|
2533
|
+
values: Ln({
|
|
2534
2534
|
fields: M,
|
|
2535
2535
|
values: { ...F, ...r }
|
|
2536
2536
|
}),
|
|
@@ -2551,7 +2551,7 @@ const Is = (t) => {
|
|
|
2551
2551
|
actionData: A
|
|
2552
2552
|
}), {};
|
|
2553
2553
|
} else {
|
|
2554
|
-
const { initialView: N, views:
|
|
2554
|
+
const { initialView: N, views: L } = await Wm({
|
|
2555
2555
|
model: A.res_model,
|
|
2556
2556
|
context: j,
|
|
2557
2557
|
view_mode: A.view_mode,
|
|
@@ -2562,7 +2562,7 @@ const Is = (t) => {
|
|
|
2562
2562
|
context: j,
|
|
2563
2563
|
domain: Q,
|
|
2564
2564
|
model: A.res_model,
|
|
2565
|
-
views:
|
|
2565
|
+
views: L,
|
|
2566
2566
|
title: A.name,
|
|
2567
2567
|
initialView: N,
|
|
2568
2568
|
action_id: A.id,
|
|
@@ -2578,7 +2578,7 @@ const Is = (t) => {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
function I({
|
|
2581
|
-
domain:
|
|
2581
|
+
domain: P,
|
|
2582
2582
|
model: M,
|
|
2583
2583
|
formView: F,
|
|
2584
2584
|
context: R,
|
|
@@ -2596,10 +2596,10 @@ const Is = (t) => {
|
|
|
2596
2596
|
} catch (Q) {
|
|
2597
2597
|
console.error(Q);
|
|
2598
2598
|
}
|
|
2599
|
-
y ? O({ domain:
|
|
2599
|
+
y ? O({ domain: P, model: M, formView: F, context: R, actionData: A }) : (C({ domain: P, model: M, context: R, formView: F, actionData: A }), v(!0));
|
|
2600
2600
|
}
|
|
2601
2601
|
async function O({
|
|
2602
|
-
domain:
|
|
2602
|
+
domain: P,
|
|
2603
2603
|
model: M,
|
|
2604
2604
|
formView: F,
|
|
2605
2605
|
context: R,
|
|
@@ -2611,10 +2611,10 @@ const Is = (t) => {
|
|
|
2611
2611
|
context: {},
|
|
2612
2612
|
formView: void 0,
|
|
2613
2613
|
actionData: void 0
|
|
2614
|
-
}), v(!1), await new Promise((k) => setTimeout(k, 300)), C({ domain:
|
|
2614
|
+
}), v(!1), await new Promise((k) => setTimeout(k, 300)), C({ domain: P, model: M, context: R, formView: F, actionData: A }), v(!0);
|
|
2615
2615
|
}
|
|
2616
2616
|
async function D() {
|
|
2617
|
-
|
|
2617
|
+
Pi(f.current), f.current = [], v(!1), C({
|
|
2618
2618
|
domain: void 0,
|
|
2619
2619
|
model: void 0,
|
|
2620
2620
|
context: {},
|
|
@@ -2654,7 +2654,7 @@ const Is = (t) => {
|
|
|
2654
2654
|
visible: y,
|
|
2655
2655
|
onSubmitSucceed: D,
|
|
2656
2656
|
onCancel: () => {
|
|
2657
|
-
|
|
2657
|
+
Pi(f.current), f.current = [], v(!1), C({
|
|
2658
2658
|
domain: void 0,
|
|
2659
2659
|
model: void 0,
|
|
2660
2660
|
context: {},
|
|
@@ -2857,20 +2857,20 @@ const zm = zt(Um), Ym = ({
|
|
|
2857
2857
|
});
|
|
2858
2858
|
a(F), I = F.fields, O = F.toolbar;
|
|
2859
2859
|
}
|
|
2860
|
-
const
|
|
2860
|
+
const P = qm({ fields: I, toolbar: O });
|
|
2861
2861
|
let M = {};
|
|
2862
|
-
return
|
|
2862
|
+
return P.length > 0 && (M = { ...(D = await b({
|
|
2863
2863
|
model: n,
|
|
2864
2864
|
ids: [e],
|
|
2865
|
-
fieldsToRetrieve:
|
|
2865
|
+
fieldsToRetrieve: P,
|
|
2866
2866
|
context: r
|
|
2867
2867
|
})) == null ? void 0 : D[0] }), M = { ...Hn(M, I), active_id: e }, c(M), O ? {
|
|
2868
2868
|
actionItems: O.action,
|
|
2869
2869
|
relateItems: O.relate,
|
|
2870
2870
|
printItems: O.print
|
|
2871
2871
|
} : void 0;
|
|
2872
|
-
} catch (
|
|
2873
|
-
console.error("Error in Many2oneSuffix fetchData:",
|
|
2872
|
+
} catch (P) {
|
|
2873
|
+
console.error("Error in Many2oneSuffix fetchData:", P);
|
|
2874
2874
|
return;
|
|
2875
2875
|
}
|
|
2876
2876
|
}, [r, g, y, e, n, b, x]);
|
|
@@ -2971,7 +2971,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
2971
2971
|
getContext: y,
|
|
2972
2972
|
elementHasLostFocus: v,
|
|
2973
2973
|
getAllHierarchyValues: b
|
|
2974
|
-
} = p || {}, [C, x] = E([]), [w, _] = E(!1), [T, I] = E(!1), [O, D] = E(!1), [
|
|
2974
|
+
} = p || {}, [C, x] = E([]), [w, _] = E(!1), [T, I] = E(!1), [O, D] = E(!1), [P, M] = E(!1), [F, R] = E([]), A = X([]), k = X(!1), $ = X(/* @__PURE__ */ new Set()), j = K(
|
|
2975
2975
|
() => {
|
|
2976
2976
|
var re, q, Z, ce;
|
|
2977
2977
|
return {
|
|
@@ -2991,7 +2991,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
2991
2991
|
), N = K(() => {
|
|
2992
2992
|
let re = !0;
|
|
2993
2993
|
return B === !0 && (re = !1), r.showMenu !== void 0 && (re = r.showMenu), re;
|
|
2994
|
-
}, [r.showMenu, B]),
|
|
2994
|
+
}, [r.showMenu, B]), L = K(() => o ? e == null ? [] : Array.isArray(e) && e.length > 0 && Array.isArray(e[0]) && (typeof e[0][0] == "number" || typeof e[0][0] == "string") ? e : Array.isArray(e) && (typeof e[0] == "number" || typeof e[0] == "string") ? [[e[0], e[1]]] : [] : [], [e, o]), U = K(() => {
|
|
2995
2995
|
if (!o && e != null) {
|
|
2996
2996
|
if (typeof e == "number")
|
|
2997
2997
|
return [e, ""];
|
|
@@ -2999,8 +2999,8 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
2999
2999
|
return e;
|
|
3000
3000
|
}
|
|
3001
3001
|
}, [e, o]), z = U == null ? void 0 : U[0], Y = (U == null ? void 0 : U[1]) ?? "", te = K(
|
|
3002
|
-
() =>
|
|
3003
|
-
[
|
|
3002
|
+
() => L.map((re) => re[0]),
|
|
3003
|
+
[L]
|
|
3004
3004
|
), [ee, be] = $e(
|
|
3005
3005
|
G.getHandler().evalDomain
|
|
3006
3006
|
), [fe, se] = $e(
|
|
@@ -3026,7 +3026,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3026
3026
|
try {
|
|
3027
3027
|
A.current = await ee({
|
|
3028
3028
|
domain: f,
|
|
3029
|
-
values:
|
|
3029
|
+
values: Ln({
|
|
3030
3030
|
fields: (h == null ? void 0 : h()) ?? {},
|
|
3031
3031
|
values: (b == null ? void 0 : b()) ?? {}
|
|
3032
3032
|
}),
|
|
@@ -3192,8 +3192,8 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3192
3192
|
n,
|
|
3193
3193
|
le
|
|
3194
3194
|
]), Je(() => {
|
|
3195
|
-
if (o && a &&
|
|
3196
|
-
const re =
|
|
3195
|
+
if (o && a && L.length > 0) {
|
|
3196
|
+
const re = L.filter(
|
|
3197
3197
|
([q, Z]) => !Z && !$.current.has(q)
|
|
3198
3198
|
).map(([q]) => q);
|
|
3199
3199
|
re.length > 0 && (re.forEach(
|
|
@@ -3209,7 +3209,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3209
3209
|
Z.forEach((Ie) => {
|
|
3210
3210
|
ce.set(Ie[0], Ie[1]);
|
|
3211
3211
|
});
|
|
3212
|
-
const Se =
|
|
3212
|
+
const Se = L.map(
|
|
3213
3213
|
([Ie, Ae]) => !Ae && ce.has(Ie) ? [Ie, ce.get(Ie)] : [Ie, Ae]
|
|
3214
3214
|
);
|
|
3215
3215
|
n == null || n(Se);
|
|
@@ -3219,7 +3219,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3219
3219
|
}
|
|
3220
3220
|
}, [
|
|
3221
3221
|
o,
|
|
3222
|
-
|
|
3222
|
+
L,
|
|
3223
3223
|
a,
|
|
3224
3224
|
c,
|
|
3225
3225
|
y,
|
|
@@ -3234,21 +3234,21 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3234
3234
|
), ve = S(
|
|
3235
3235
|
(re) => {
|
|
3236
3236
|
const q = new Set(
|
|
3237
|
-
|
|
3238
|
-
), Z = re.filter((Se) => !q.has(Se)), ce =
|
|
3237
|
+
L.map(([Se]) => Se)
|
|
3238
|
+
), Z = re.filter((Se) => !q.has(Se)), ce = L.filter(
|
|
3239
3239
|
([Se]) => re.some((Ie) => Ie === Se)
|
|
3240
3240
|
);
|
|
3241
3241
|
Ne(Z, ce);
|
|
3242
3242
|
},
|
|
3243
|
-
[
|
|
3243
|
+
[L, Ne]
|
|
3244
3244
|
), Ce = S(
|
|
3245
3245
|
(re) => {
|
|
3246
|
-
const q =
|
|
3246
|
+
const q = L.filter(
|
|
3247
3247
|
([Z]) => Z !== re
|
|
3248
3248
|
);
|
|
3249
3249
|
W(q);
|
|
3250
3250
|
},
|
|
3251
|
-
[
|
|
3251
|
+
[L, W]
|
|
3252
3252
|
), He = S(
|
|
3253
3253
|
(re) => {
|
|
3254
3254
|
!o && re.code === "Backspace" && z !== void 0 && (re.preventDefault(), re.stopPropagation(), ne([void 0, ""]), ie(""));
|
|
@@ -3268,15 +3268,15 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3268
3268
|
if (D(!1), re.length !== 0)
|
|
3269
3269
|
if (o) {
|
|
3270
3270
|
const q = new Set(
|
|
3271
|
-
|
|
3271
|
+
L.map(([ce]) => ce)
|
|
3272
3272
|
), Z = re.filter((ce) => !q.has(ce));
|
|
3273
|
-
Ne(Z,
|
|
3273
|
+
Ne(Z, L);
|
|
3274
3274
|
} else
|
|
3275
3275
|
await he(re[0]);
|
|
3276
3276
|
},
|
|
3277
3277
|
[
|
|
3278
3278
|
o,
|
|
3279
|
-
|
|
3279
|
+
L,
|
|
3280
3280
|
he,
|
|
3281
3281
|
Ne
|
|
3282
3282
|
]
|
|
@@ -3294,13 +3294,13 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3294
3294
|
re,
|
|
3295
3295
|
(j.showAdvancedSearch || j.showCreate && V) && /* @__PURE__ */ H(Ql, { children: [
|
|
3296
3296
|
/* @__PURE__ */ s(ep, {}),
|
|
3297
|
-
j.showAdvancedSearch && /* @__PURE__ */ H(
|
|
3297
|
+
j.showAdvancedSearch && /* @__PURE__ */ H(Li, { onClick: Ge, children: [
|
|
3298
3298
|
/* @__PURE__ */ s(Cr, {}),
|
|
3299
3299
|
" ",
|
|
3300
3300
|
u("advanced_search")
|
|
3301
3301
|
] }),
|
|
3302
|
-
j.showCreate && V && /* @__PURE__ */ H(
|
|
3303
|
-
/* @__PURE__ */ s(
|
|
3302
|
+
j.showCreate && V && /* @__PURE__ */ H(Li, { onClick: Fe, children: [
|
|
3303
|
+
/* @__PURE__ */ s(Pr, {}),
|
|
3304
3304
|
" ",
|
|
3305
3305
|
u("createNewRecord")
|
|
3306
3306
|
] })
|
|
@@ -3325,15 +3325,15 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3325
3325
|
[Y]
|
|
3326
3326
|
), ae = S(
|
|
3327
3327
|
(re) => {
|
|
3328
|
-
const { value: q, closable: Z, onClose: ce } = re, Se =
|
|
3328
|
+
const { value: q, closable: Z, onClose: ce } = re, Se = L.find(([Pe]) => Pe === q), Ie = (Se == null ? void 0 : Se[1]) || `ID: ${q}`;
|
|
3329
3329
|
return /* @__PURE__ */ H(op, { children: [
|
|
3330
3330
|
/* @__PURE__ */ s("span", { children: Ie }),
|
|
3331
|
-
Z && !d && /* @__PURE__ */ s(sp, { onClick: (
|
|
3332
|
-
|
|
3331
|
+
Z && !d && /* @__PURE__ */ s(sp, { onClick: (Pe) => {
|
|
3332
|
+
Pe.preventDefault(), Pe.stopPropagation(), Ce(q), ce();
|
|
3333
3333
|
}, children: /* @__PURE__ */ s(kn, {}) })
|
|
3334
3334
|
] });
|
|
3335
3335
|
},
|
|
3336
|
-
[
|
|
3336
|
+
[L, Ce, d]
|
|
3337
3337
|
);
|
|
3338
3338
|
return /* @__PURE__ */ H(Oe, { children: [
|
|
3339
3339
|
/* @__PURE__ */ s(rp, { $hideInput: !o && !T && !!z, children: /* @__PURE__ */ H(
|
|
@@ -3370,7 +3370,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3370
3370
|
] }) : void 0,
|
|
3371
3371
|
children: [
|
|
3372
3372
|
!o && z && Y && /* @__PURE__ */ s(gn.Option, { value: z, children: Y }, z),
|
|
3373
|
-
o &&
|
|
3373
|
+
o && L.map(([re, q]) => /* @__PURE__ */ s(gn.Option, { value: re, children: q || `ID: ${re}` }, re))
|
|
3374
3374
|
]
|
|
3375
3375
|
}
|
|
3376
3376
|
) }),
|
|
@@ -3391,7 +3391,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3391
3391
|
{
|
|
3392
3392
|
model: a,
|
|
3393
3393
|
parentContext: { ...y == null ? void 0 : y(), ...c },
|
|
3394
|
-
visible:
|
|
3394
|
+
visible: P,
|
|
3395
3395
|
onSubmitSucceed: Re,
|
|
3396
3396
|
onCancel: Ue
|
|
3397
3397
|
}
|
|
@@ -3409,7 +3409,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3409
3409
|
background-color: transparent;
|
|
3410
3410
|
}
|
|
3411
3411
|
}
|
|
3412
|
-
`, Ql = pt.div``,
|
|
3412
|
+
`, Ql = pt.div``, Li = pt.div`
|
|
3413
3413
|
min-height: 26px;
|
|
3414
3414
|
padding: 0px 12px;
|
|
3415
3415
|
cursor: pointer;
|
|
@@ -3470,22 +3470,22 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3470
3470
|
`, Js = (t) => {
|
|
3471
3471
|
const { name: e, size: n, color: r } = t, o = {};
|
|
3472
3472
|
n && (o.fontSize = n), r && (o.color = r);
|
|
3473
|
-
const i =
|
|
3473
|
+
const i = Lt(
|
|
3474
3474
|
e,
|
|
3475
3475
|
Object.keys(o).length > 0 ? { style: o } : void 0
|
|
3476
3476
|
);
|
|
3477
3477
|
return i ? /* @__PURE__ */ s(i, {}) : null;
|
|
3478
3478
|
}, lp = (t) => {
|
|
3479
3479
|
const { ooui: e } = t, { required: n, name: r, size: o, color: i } = e;
|
|
3480
|
-
return
|
|
3480
|
+
return Lt(r) ? /* @__PURE__ */ s(Js, { name: r, size: o, color: i }) : /* @__PURE__ */ s(tt, { required: n, ...t, children: /* @__PURE__ */ s(cp, { ooui: e }) });
|
|
3481
3481
|
}, cp = (t) => {
|
|
3482
3482
|
const { ooui: e, value: n } = t, { size: r, color: o } = e;
|
|
3483
|
-
return n &&
|
|
3483
|
+
return n && Lt(n) ? /* @__PURE__ */ s(Js, { name: n, size: r, color: o }) : (n && console.warn(`Icon not found: ${n}`), null);
|
|
3484
3484
|
}, Qs = (t) => {
|
|
3485
3485
|
const { value: e, style: n = {}, width: r, height: o } = t;
|
|
3486
3486
|
if (e) {
|
|
3487
3487
|
const i = o || r;
|
|
3488
|
-
if (
|
|
3488
|
+
if (Lt(e))
|
|
3489
3489
|
return /* @__PURE__ */ s(Js, { name: e, size: i });
|
|
3490
3490
|
{
|
|
3491
3491
|
const a = { ...n };
|
|
@@ -3494,7 +3494,7 @@ const _S = Object.values(Ct), { defaultAlgorithm: Gm, defaultSeed: Km } = ot, An
|
|
|
3494
3494
|
}
|
|
3495
3495
|
}, dp = (t) => {
|
|
3496
3496
|
const { ooui: e } = t, { required: n, id: r, width: o, height: i } = e;
|
|
3497
|
-
return
|
|
3497
|
+
return Lt(r) ? /* @__PURE__ */ s(Qs, { value: r, width: o, height: i }) : /* @__PURE__ */ s(tt, { required: n, ...t, children: /* @__PURE__ */ s(up, { ooui: e }) });
|
|
3498
3498
|
}, up = (t) => {
|
|
3499
3499
|
const { ooui: e, value: n, onChange: r } = t, { readOnly: o, width: i, height: a } = e, d = X(null), { t: c } = Me(), l = (p) => {
|
|
3500
3500
|
r == null || r(p);
|
|
@@ -3840,9 +3840,9 @@ const Zl = ({
|
|
|
3840
3840
|
if (a)
|
|
3841
3841
|
return /* @__PURE__ */ s(ct, {});
|
|
3842
3842
|
const D = (M) => {
|
|
3843
|
-
const F =
|
|
3843
|
+
const F = Lt(M);
|
|
3844
3844
|
return F && /* @__PURE__ */ s(F, {});
|
|
3845
|
-
},
|
|
3845
|
+
}, P = w.map((M) => {
|
|
3846
3846
|
var R, A, k, $;
|
|
3847
3847
|
const F = {
|
|
3848
3848
|
children: /* @__PURE__ */ s(
|
|
@@ -3861,7 +3861,7 @@ const Zl = ({
|
|
|
3861
3861
|
return (k = M.values) != null && k[C] && (F.dot = D(M.values[C])), ($ = M.values) != null && $[x] && (F.color = !_l(M.values[x]) && !Al(M.values[x]) && !M.values[x].toString().startsWith("#") ? Tr(M.values[x]) : M.values[x]), F;
|
|
3862
3862
|
});
|
|
3863
3863
|
return /* @__PURE__ */ H(Oe, { children: [
|
|
3864
|
-
/* @__PURE__ */ s(Qa, { style: { padding: "1rem" }, items:
|
|
3864
|
+
/* @__PURE__ */ s(Qa, { style: { padding: "1rem" }, items: P }),
|
|
3865
3865
|
/* @__PURE__ */ s(
|
|
3866
3866
|
Rn,
|
|
3867
3867
|
{
|
|
@@ -4128,7 +4128,7 @@ function Cp({
|
|
|
4128
4128
|
`bold ${Math.floor(c * 1.03)}px sans-serif`
|
|
4129
4129
|
);
|
|
4130
4130
|
a && (m = m * 2), m >= e * 0.85 && (c = e * 0.85 / m * c);
|
|
4131
|
-
const p = a &&
|
|
4131
|
+
const p = a && Lt(a, { style: { fontSize: c * 0.7 } });
|
|
4132
4132
|
return /* @__PURE__ */ s(
|
|
4133
4133
|
"div",
|
|
4134
4134
|
{
|
|
@@ -4176,7 +4176,7 @@ function xp({
|
|
|
4176
4176
|
`bold ${Math.floor(f * 1.03)}px sans-serif`
|
|
4177
4177
|
);
|
|
4178
4178
|
d && (g = g * 1.5), (g >= n * 0.85 || f * 2 < l) && (f = n * 0.85 / g * f);
|
|
4179
|
-
const h = d &&
|
|
4179
|
+
const h = d && Lt(d, { style: { fontSize: f } });
|
|
4180
4180
|
return /* @__PURE__ */ s(
|
|
4181
4181
|
"div",
|
|
4182
4182
|
{
|
|
@@ -4228,7 +4228,7 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4228
4228
|
manualIds: m,
|
|
4229
4229
|
fixedHeight: p,
|
|
4230
4230
|
showTotal: g
|
|
4231
|
-
} = t, [h, y] = E(!1), [v, b] = E(), [C, x] = E(0), [w, _] = E(), [T, I] = E(), [O, D] = E(), [
|
|
4231
|
+
} = t, [h, y] = E(!1), [v, b] = E(), [C, x] = E(0), [w, _] = E(), [T, I] = E(), [O, D] = E(), [P, M] = E(), [F] = $e(
|
|
4232
4232
|
G.getHandler().searchAllIds
|
|
4233
4233
|
), [R] = $e(
|
|
4234
4234
|
G.getHandler().readObjects
|
|
@@ -4249,13 +4249,13 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4249
4249
|
if (N)
|
|
4250
4250
|
return await Q({ domain: B });
|
|
4251
4251
|
if (f && u) {
|
|
4252
|
-
const
|
|
4252
|
+
const L = m || await F({
|
|
4253
4253
|
params: B,
|
|
4254
4254
|
model: e,
|
|
4255
4255
|
context: r
|
|
4256
4256
|
}), U = await R({
|
|
4257
4257
|
model: e,
|
|
4258
|
-
ids:
|
|
4258
|
+
ids: L,
|
|
4259
4259
|
fieldsToRetrieve: [f],
|
|
4260
4260
|
context: r
|
|
4261
4261
|
});
|
|
@@ -4276,14 +4276,14 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4276
4276
|
params: B,
|
|
4277
4277
|
model: e,
|
|
4278
4278
|
context: r
|
|
4279
|
-
}),
|
|
4279
|
+
}), L = await R({
|
|
4280
4280
|
model: e,
|
|
4281
4281
|
ids: N,
|
|
4282
4282
|
fieldsToRetrieve: [f],
|
|
4283
4283
|
context: r
|
|
4284
4284
|
});
|
|
4285
4285
|
return Bi({
|
|
4286
|
-
values:
|
|
4286
|
+
values: L.map((U) => U[f]),
|
|
4287
4287
|
operator: u
|
|
4288
4288
|
});
|
|
4289
4289
|
} else
|
|
@@ -4297,8 +4297,8 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4297
4297
|
y(!0), M(void 0);
|
|
4298
4298
|
let B, N;
|
|
4299
4299
|
try {
|
|
4300
|
-
const
|
|
4301
|
-
if (b(
|
|
4300
|
+
const L = await j({ domain: n, isTotal: !1 });
|
|
4301
|
+
if (b(L), i) {
|
|
4302
4302
|
const U = await k({
|
|
4303
4303
|
domain: i,
|
|
4304
4304
|
values: {},
|
|
@@ -4309,10 +4309,10 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4309
4309
|
isTotal: !0
|
|
4310
4310
|
}), _(B);
|
|
4311
4311
|
}
|
|
4312
|
-
if (B ? (N = Math.round(
|
|
4312
|
+
if (B ? (N = Math.round(L / B * 100 * 100) / 100, x(N)) : x(0), o) {
|
|
4313
4313
|
const U = await $({
|
|
4314
4314
|
condition: o,
|
|
4315
|
-
values: { value:
|
|
4315
|
+
values: { value: L, percent: N },
|
|
4316
4316
|
context: r
|
|
4317
4317
|
});
|
|
4318
4318
|
I(U);
|
|
@@ -4321,19 +4321,19 @@ const { getValueForOperator: Bi } = rl, Sp = (t) => {
|
|
|
4321
4321
|
if (c.indexOf(":") !== -1) {
|
|
4322
4322
|
const U = await $({
|
|
4323
4323
|
condition: c,
|
|
4324
|
-
values: { value:
|
|
4324
|
+
values: { value: L, percent: N },
|
|
4325
4325
|
context: r
|
|
4326
4326
|
});
|
|
4327
4327
|
D(U);
|
|
4328
4328
|
} else
|
|
4329
4329
|
D(c);
|
|
4330
4330
|
M(void 0);
|
|
4331
|
-
} catch (
|
|
4332
|
-
M(JSON.stringify(
|
|
4331
|
+
} catch (L) {
|
|
4332
|
+
M(JSON.stringify(L));
|
|
4333
4333
|
}
|
|
4334
4334
|
y(!1);
|
|
4335
4335
|
}
|
|
4336
|
-
return h ? /* @__PURE__ */ s(Zr, {}) :
|
|
4336
|
+
return h ? /* @__PURE__ */ s(Zr, {}) : P ? (console.error(P), /* @__PURE__ */ s(Ut, { className: "mt-10", message: P, type: "error", banner: !0 })) : /* @__PURE__ */ s(
|
|
4337
4337
|
ic,
|
|
4338
4338
|
{
|
|
4339
4339
|
value: v,
|
|
@@ -4703,10 +4703,10 @@ const Dp = {
|
|
|
4703
4703
|
x: c.x,
|
|
4704
4704
|
percent: d[l]
|
|
4705
4705
|
}));
|
|
4706
|
-
}, { Text: Ui } = Jt, Np = 400, kp = nt(nf), $p = nt(rf),
|
|
4706
|
+
}, { Text: Ui } = Jt, Np = 400, kp = nt(nf), $p = nt(rf), Pp = nt(of), Lp = {
|
|
4707
4707
|
line: kp,
|
|
4708
4708
|
bar: $p,
|
|
4709
|
-
pie:
|
|
4709
|
+
pie: Pp
|
|
4710
4710
|
}, cc = ({
|
|
4711
4711
|
type: t,
|
|
4712
4712
|
data: e,
|
|
@@ -4741,7 +4741,7 @@ const Dp = {
|
|
|
4741
4741
|
}, [f, l]), m = S(
|
|
4742
4742
|
({ percent: h, x: y }) => h < 0.07 ? "" : f(y),
|
|
4743
4743
|
[f]
|
|
4744
|
-
), p =
|
|
4744
|
+
), p = Lp[t], g = K(() => Vp({
|
|
4745
4745
|
type: t,
|
|
4746
4746
|
data: e,
|
|
4747
4747
|
isGroup: n,
|
|
@@ -5231,7 +5231,7 @@ function Jp(t) {
|
|
|
5231
5231
|
disabled: n,
|
|
5232
5232
|
onChange: m,
|
|
5233
5233
|
style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
5234
|
-
suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(
|
|
5234
|
+
suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Pt, { title: o("clear"), children: /* @__PURE__ */ s(
|
|
5235
5235
|
ul,
|
|
5236
5236
|
{
|
|
5237
5237
|
style: { color: "rgba(0,0,0,.45)" },
|
|
@@ -5323,7 +5323,7 @@ const { useToken: Qp } = ot, Xp = (t) => {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
},
|
|
5325
5325
|
[i, T, _]
|
|
5326
|
-
),
|
|
5326
|
+
), P = S(
|
|
5327
5327
|
(k) => {
|
|
5328
5328
|
const $ = k.originalData || k;
|
|
5329
5329
|
if ($ != null && $.domain) {
|
|
@@ -5363,7 +5363,7 @@ const { useToken: Qp } = ot, Xp = (t) => {
|
|
|
5363
5363
|
count: (r == null ? void 0 : r.length) || 0,
|
|
5364
5364
|
color: f.colorPrimary,
|
|
5365
5365
|
offset: [-70, 2],
|
|
5366
|
-
children: /* @__PURE__ */ s(
|
|
5366
|
+
children: /* @__PURE__ */ s(Pt, { title: l == null ? void 0 : l("advanced_search"), children: /* @__PURE__ */ s(
|
|
5367
5367
|
Wu,
|
|
5368
5368
|
{
|
|
5369
5369
|
ref: u,
|
|
@@ -5371,7 +5371,7 @@ const { useToken: Qp } = ot, Xp = (t) => {
|
|
|
5371
5371
|
onToggle: n,
|
|
5372
5372
|
activeIcon: /* @__PURE__ */ s(lr, {}),
|
|
5373
5373
|
inactiveIcon: /* @__PURE__ */ s(lr, {}),
|
|
5374
|
-
onItemClick:
|
|
5374
|
+
onItemClick: P,
|
|
5375
5375
|
placement: "bottomRight",
|
|
5376
5376
|
disabled: o,
|
|
5377
5377
|
header: /* @__PURE__ */ H("div", { style: { width: 300, padding: 5 }, children: [
|
|
@@ -5383,7 +5383,7 @@ const { useToken: Qp } = ot, Xp = (t) => {
|
|
|
5383
5383
|
children: (R = l == null ? void 0 : l("actions")) == null ? void 0 : R.toUpperCase()
|
|
5384
5384
|
}
|
|
5385
5385
|
),
|
|
5386
|
-
/* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(
|
|
5386
|
+
/* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Pt, { title: l == null ? void 0 : l("clear_search"), children: /* @__PURE__ */ H(
|
|
5387
5387
|
"div",
|
|
5388
5388
|
{
|
|
5389
5389
|
style: {
|
|
@@ -5414,7 +5414,7 @@ const { useToken: Qp } = ot, Xp = (t) => {
|
|
|
5414
5414
|
] }),
|
|
5415
5415
|
/* @__PURE__ */ H("div", { style: { display: "flex" }, children: [
|
|
5416
5416
|
/* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: (A = l == null ? void 0 : l("saved_searches")) == null ? void 0 : A.toUpperCase() }),
|
|
5417
|
-
/* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(
|
|
5417
|
+
/* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Pt, { title: l == null ? void 0 : l("edit_saved_searches"), children: /* @__PURE__ */ s(
|
|
5418
5418
|
pl,
|
|
5419
5419
|
{
|
|
5420
5420
|
style: { color: f.colorPrimary, cursor: "pointer" },
|
|
@@ -5684,7 +5684,7 @@ function ih({
|
|
|
5684
5684
|
setPreviousView: I,
|
|
5685
5685
|
previousView: O,
|
|
5686
5686
|
results: D,
|
|
5687
|
-
limit:
|
|
5687
|
+
limit: P,
|
|
5688
5688
|
totalItems: M,
|
|
5689
5689
|
isActive: F,
|
|
5690
5690
|
treeType: R,
|
|
@@ -5695,7 +5695,7 @@ function ih({
|
|
|
5695
5695
|
kt.FEATURE_ADVANCED_EXPORT
|
|
5696
5696
|
), Q = rn(
|
|
5697
5697
|
kt.FEATURE_SAVED_SEARCHES
|
|
5698
|
-
), { t: V } = Me(), [B, N] = E(!1),
|
|
5698
|
+
), { t: V } = Me(), [B, N] = E(!1), L = X(!0), { showErrorNotification: U } = Et(), z = S(() => {
|
|
5699
5699
|
var de;
|
|
5700
5700
|
(de = h == null ? void 0 : h.current) == null || de.refreshResults();
|
|
5701
5701
|
}, [h]), Y = S(() => {
|
|
@@ -5814,8 +5814,8 @@ function ih({
|
|
|
5814
5814
|
);
|
|
5815
5815
|
ye(() => {
|
|
5816
5816
|
if (R === "infinite" && _ === void 0) {
|
|
5817
|
-
if (
|
|
5818
|
-
|
|
5817
|
+
if (L.current) {
|
|
5818
|
+
L.current = !1;
|
|
5819
5819
|
return;
|
|
5820
5820
|
}
|
|
5821
5821
|
setTimeout(() => {
|
|
@@ -5909,7 +5909,7 @@ function ih({
|
|
|
5909
5909
|
/* @__PURE__ */ s(
|
|
5910
5910
|
fc,
|
|
5911
5911
|
{
|
|
5912
|
-
icon: /* @__PURE__ */ s(
|
|
5912
|
+
icon: /* @__PURE__ */ s(Po, {}),
|
|
5913
5913
|
tooltip: V("delete"),
|
|
5914
5914
|
disabled: !(l && (l == null ? void 0 : l.length) > 0) || T || !($ != null && $.unlink),
|
|
5915
5915
|
loading: u,
|
|
@@ -5921,7 +5921,7 @@ function ih({
|
|
|
5921
5921
|
/* @__PURE__ */ s(
|
|
5922
5922
|
Kt,
|
|
5923
5923
|
{
|
|
5924
|
-
icon: /* @__PURE__ */ s(
|
|
5924
|
+
icon: /* @__PURE__ */ s(Lo, {}),
|
|
5925
5925
|
tooltip: V("showLogs"),
|
|
5926
5926
|
disabled: !(l && (l == null ? void 0 : l.length) === 1) || T,
|
|
5927
5927
|
onClick: () => ei(g, l[0].id, V)
|
|
@@ -5985,7 +5985,7 @@ function ih({
|
|
|
5985
5985
|
onClose: () => N(!1),
|
|
5986
5986
|
model: g,
|
|
5987
5987
|
domain: se,
|
|
5988
|
-
limit:
|
|
5988
|
+
limit: P,
|
|
5989
5989
|
totalRegisters: M || 0,
|
|
5990
5990
|
selectedRegistersToExport: l,
|
|
5991
5991
|
visibleRegisters: (D == null ? void 0 : D.length) || 0,
|
|
@@ -6385,7 +6385,7 @@ const mh = (t) => /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(Tc,
|
|
|
6385
6385
|
let n = e;
|
|
6386
6386
|
(i = t.selectionValues) != null && i.size ? n = t.selectionValues.get(e) : Array.isArray(e) && (n = e[1]);
|
|
6387
6387
|
const r = n.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), o = Tr(n);
|
|
6388
|
-
return /* @__PURE__ */ s(
|
|
6388
|
+
return /* @__PURE__ */ s(Pt, { title: n, children: /* @__PURE__ */ s(Ro, { alt: n, style: { backgroundColor: o }, children: r }) });
|
|
6389
6389
|
}, gh = (t) => {
|
|
6390
6390
|
const { ooui: e } = t;
|
|
6391
6391
|
return /* @__PURE__ */ s(tt, { type: "string", ...t, children: /* @__PURE__ */ s(_c, { ooui: e }) });
|
|
@@ -6731,7 +6731,7 @@ const Ch = ({
|
|
|
6731
6731
|
}
|
|
6732
6732
|
);
|
|
6733
6733
|
return r ? /* @__PURE__ */ s(
|
|
6734
|
-
|
|
6734
|
+
Pt,
|
|
6735
6735
|
{
|
|
6736
6736
|
title: o,
|
|
6737
6737
|
color: "white",
|
|
@@ -6833,14 +6833,14 @@ const Ch = ({
|
|
|
6833
6833
|
}) => K(() => {
|
|
6834
6834
|
let n = t;
|
|
6835
6835
|
return Array.isArray(t) && t.length === 2 && (n = t[0]), /* @__PURE__ */ s(Oe, { children: e.selectionValues.get(n) });
|
|
6836
|
-
}, [e, t]),
|
|
6836
|
+
}, [e, t]), Ph = ({
|
|
6837
6837
|
value: t,
|
|
6838
6838
|
ooui: e,
|
|
6839
6839
|
context: n
|
|
6840
6840
|
}) => K(
|
|
6841
6841
|
() => /* @__PURE__ */ s(hh, { value: t, selectionValues: e.selectionValues }),
|
|
6842
6842
|
[n, e.selectionValues, t]
|
|
6843
|
-
),
|
|
6843
|
+
), Lh = ({
|
|
6844
6844
|
value: t,
|
|
6845
6845
|
ooui: e
|
|
6846
6846
|
}) => K(
|
|
@@ -6887,12 +6887,12 @@ const Ch = ({
|
|
|
6887
6887
|
image: Mh,
|
|
6888
6888
|
integer: Dh,
|
|
6889
6889
|
float: Oh,
|
|
6890
|
-
reference:
|
|
6890
|
+
reference: Ph,
|
|
6891
6891
|
tag: kh,
|
|
6892
6892
|
selection: $h,
|
|
6893
6893
|
date: Th,
|
|
6894
6894
|
datetime: Ah,
|
|
6895
|
-
avatar:
|
|
6895
|
+
avatar: Lh,
|
|
6896
6896
|
tags: Vh,
|
|
6897
6897
|
email: xh,
|
|
6898
6898
|
colorPicker: Nh,
|
|
@@ -7999,10 +7999,10 @@ var kc = po, $c = function() {
|
|
|
7999
7999
|
return !0;
|
|
8000
8000
|
}, Sg = $c, ai = function() {
|
|
8001
8001
|
return Sg() && !!Symbol.toStringTag;
|
|
8002
|
-
},
|
|
8002
|
+
}, Pc = Object, Tg = Error, _g = EvalError, Ag = RangeError, Ig = ReferenceError, Eg = SyntaxError, Lc = TypeError, Rg = URIError, Fg = Math.abs, Og = Math.floor, Dg = Math.max, Mg = Math.min, Ng = Math.pow, kg = Math.round, $g = Number.isNaN || function(e) {
|
|
8003
8003
|
return e !== e;
|
|
8004
|
-
},
|
|
8005
|
-
return
|
|
8004
|
+
}, Pg = $g, Lg = function(e) {
|
|
8005
|
+
return Pg(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
8006
8006
|
}, Vg = Object.getOwnPropertyDescriptor, ho = Vg;
|
|
8007
8007
|
if (ho)
|
|
8008
8008
|
try {
|
|
@@ -8036,7 +8036,7 @@ function Bc() {
|
|
|
8036
8036
|
if (ra)
|
|
8037
8037
|
return as;
|
|
8038
8038
|
ra = 1;
|
|
8039
|
-
var t =
|
|
8039
|
+
var t = Pc;
|
|
8040
8040
|
return as = t.getPrototypeOf || null, as;
|
|
8041
8041
|
}
|
|
8042
8042
|
var jg = "Function.prototype.bind called on incompatible ", Ug = Object.prototype.toString, Wg = Math.max, zg = "[object Function]", oa = function(e, n) {
|
|
@@ -8102,7 +8102,7 @@ function Xg() {
|
|
|
8102
8102
|
if (ca)
|
|
8103
8103
|
return fs;
|
|
8104
8104
|
ca = 1;
|
|
8105
|
-
var t = to, e =
|
|
8105
|
+
var t = to, e = Lc, n = ci(), r = Qg();
|
|
8106
8106
|
return fs = function(i) {
|
|
8107
8107
|
if (i.length < 1 || typeof i[0] != "function")
|
|
8108
8108
|
throw new e("a function is required");
|
|
@@ -8158,7 +8158,7 @@ function ty() {
|
|
|
8158
8158
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = to;
|
|
8159
8159
|
return hs = n.call(t, e), hs;
|
|
8160
8160
|
}
|
|
8161
|
-
var st, ny =
|
|
8161
|
+
var st, ny = Pc, ry = Tg, oy = _g, sy = Ag, iy = Ig, br = Eg, ur = Lc, ay = Rg, ly = Fg, cy = Og, dy = Dg, uy = Mg, fy = Ng, my = kg, py = Lg, jc = Function, gs = function(t) {
|
|
8162
8162
|
try {
|
|
8163
8163
|
return jc('"use strict"; return (' + t + ").constructor;")();
|
|
8164
8164
|
} catch {
|
|
@@ -8468,7 +8468,7 @@ var ui = Os, ky = ui(), fi = qo, ha = ky && fi("%Object.defineProperty%", !0), $
|
|
|
8468
8468
|
e[n] = r;
|
|
8469
8469
|
else
|
|
8470
8470
|
throw new $y("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
8471
|
-
},
|
|
8471
|
+
}, Py = kc, Ly = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Vy = Object.prototype.toString, By = Array.prototype.concat, ya = Kc, Hy = function(t) {
|
|
8472
8472
|
return typeof t == "function" && Vy.call(t) === "[object Function]";
|
|
8473
8473
|
}, Jc = ui(), jy = function(t, e, n, r) {
|
|
8474
8474
|
if (e in t) {
|
|
@@ -8480,8 +8480,8 @@ var ui = Os, ky = ui(), fi = qo, ha = ky && fi("%Object.defineProperty%", !0), $
|
|
|
8480
8480
|
}
|
|
8481
8481
|
Jc ? ya(t, e, n, !0) : ya(t, e, n);
|
|
8482
8482
|
}, Qc = function(t, e) {
|
|
8483
|
-
var n = arguments.length > 2 ? arguments[2] : {}, r =
|
|
8484
|
-
|
|
8483
|
+
var n = arguments.length > 2 ? arguments[2] : {}, r = Py(e);
|
|
8484
|
+
Ly && (r = By.call(r, Object.getOwnPropertySymbols(e)));
|
|
8485
8485
|
for (var o = 0; o < r.length; o += 1)
|
|
8486
8486
|
jy(t, r[o], e[r[o]], n[r[o]]);
|
|
8487
8487
|
};
|
|
@@ -8771,7 +8771,7 @@ const Ir = /* @__PURE__ */ Sr(Mv), { Text: Nv } = Jt, kv = ({
|
|
|
8771
8771
|
f,
|
|
8772
8772
|
u,
|
|
8773
8773
|
i
|
|
8774
|
-
]),
|
|
8774
|
+
]), P = S(() => {
|
|
8775
8775
|
d && (w(!0), T(m || ""), C(!0));
|
|
8776
8776
|
}, [d, m]), M = lt(async () => {
|
|
8777
8777
|
if (!d || !t || !(n != null && n.length))
|
|
@@ -8955,7 +8955,7 @@ const Ir = /* @__PURE__ */ Sr(Mv), { Text: Nv } = Jt, kv = ({
|
|
|
8955
8955
|
), N = K(
|
|
8956
8956
|
() => !!(o && !y),
|
|
8957
8957
|
[o, y]
|
|
8958
|
-
),
|
|
8958
|
+
), L = S(() => {
|
|
8959
8959
|
d && (i == null || i(null), p(""), v(!1));
|
|
8960
8960
|
}, [d, i]);
|
|
8961
8961
|
return {
|
|
@@ -8968,9 +8968,9 @@ const Ir = /* @__PURE__ */ Sr(Mv), { Text: Nv } = Jt, kv = ({
|
|
|
8968
8968
|
setShowSaveModal: C,
|
|
8969
8969
|
setModalInputValue: T,
|
|
8970
8970
|
handleSave: D,
|
|
8971
|
-
handleSaveAsNew:
|
|
8971
|
+
handleSaveAsNew: P,
|
|
8972
8972
|
handleModalSave: M,
|
|
8973
|
-
handleClear:
|
|
8973
|
+
handleClear: L,
|
|
8974
8974
|
renderSavedSearchTitle: j,
|
|
8975
8975
|
shouldShowSaveButtons: Q,
|
|
8976
8976
|
shouldShowSingleSaveButton: V,
|
|
@@ -9016,13 +9016,13 @@ const Ir = /* @__PURE__ */ Sr(Mv), { Text: Nv } = Jt, kv = ({
|
|
|
9016
9016
|
}) => {
|
|
9017
9017
|
if (!o)
|
|
9018
9018
|
return;
|
|
9019
|
-
const O = o == null ? void 0 : o.rows, D = O == null ? void 0 : O.flatMap((R) => R),
|
|
9019
|
+
const O = o == null ? void 0 : o.rows, D = O == null ? void 0 : O.flatMap((R) => R), P = D == null ? void 0 : D.filter(
|
|
9020
9020
|
(R) => R && R.id !== void 0 && R.label !== void 0
|
|
9021
9021
|
), M = Object.keys(c).reduce((R, A) => {
|
|
9022
9022
|
const k = A.replace(/#.*$/, "");
|
|
9023
9023
|
return R[k] === void 0 && (R[k] = c[A] !== void 0), R;
|
|
9024
|
-
}, {}), F = T ?
|
|
9025
|
-
return
|
|
9024
|
+
}, {}), F = T ? P.reduce((R, A) => (R[A.id] = M[A.id], R), {}) : M;
|
|
9025
|
+
return P.filter((R) => T ? F[R.id] === !0 : !0).sort((R, A) => {
|
|
9026
9026
|
const k = R, $ = A;
|
|
9027
9027
|
if (T) {
|
|
9028
9028
|
const j = y.indexOf(k.id), Q = y.indexOf($.id);
|
|
@@ -9093,9 +9093,9 @@ const Ir = /* @__PURE__ */ Sr(Mv), { Text: Nv } = Jt, kv = ({
|
|
|
9093
9093
|
}, 150);
|
|
9094
9094
|
}
|
|
9095
9095
|
}
|
|
9096
|
-
const
|
|
9097
|
-
|
|
9098
|
-
const F =
|
|
9096
|
+
const P = O.filter((M) => !D.includes(M));
|
|
9097
|
+
P.length > 0 && v((M) => {
|
|
9098
|
+
const F = P.map(
|
|
9099
9099
|
(R) => R.replace(/#.*$/, "")
|
|
9100
9100
|
);
|
|
9101
9101
|
return M.filter((R) => !F.includes(R));
|
|
@@ -9268,7 +9268,7 @@ const mi = (t) => {
|
|
|
9268
9268
|
}, [n, h]);
|
|
9269
9269
|
const {
|
|
9270
9270
|
savedSearchName: D,
|
|
9271
|
-
hasChanges:
|
|
9271
|
+
hasChanges: P,
|
|
9272
9272
|
showSaveModal: M,
|
|
9273
9273
|
isModalSaveAsNew: F,
|
|
9274
9274
|
modalInputValue: R,
|
|
@@ -9280,7 +9280,7 @@ const mi = (t) => {
|
|
|
9280
9280
|
handleClear: V,
|
|
9281
9281
|
renderSavedSearchTitle: B,
|
|
9282
9282
|
shouldShowSaveButtons: N,
|
|
9283
|
-
shouldShowSingleSaveButton:
|
|
9283
|
+
shouldShowSingleSaveButton: L,
|
|
9284
9284
|
shouldShowSaveButtonGroup: U,
|
|
9285
9285
|
shouldShowSaveAsNew: z
|
|
9286
9286
|
} = kv({
|
|
@@ -9399,7 +9399,7 @@ const mi = (t) => {
|
|
|
9399
9399
|
{
|
|
9400
9400
|
key: "saveAsNew",
|
|
9401
9401
|
label: u("saveAsNewSearchFilter"),
|
|
9402
|
-
icon: /* @__PURE__ */ s(
|
|
9402
|
+
icon: /* @__PURE__ */ s(Pr, {})
|
|
9403
9403
|
}
|
|
9404
9404
|
],
|
|
9405
9405
|
onClick: ({ key: oe }) => {
|
|
@@ -9421,7 +9421,7 @@ const mi = (t) => {
|
|
|
9421
9421
|
Ke,
|
|
9422
9422
|
{
|
|
9423
9423
|
size: "small",
|
|
9424
|
-
icon: z ? /* @__PURE__ */ s(
|
|
9424
|
+
icon: z ? /* @__PURE__ */ s(Pr, {}) : /* @__PURE__ */ s(Ss, {}),
|
|
9425
9425
|
onClick: z ? j : $,
|
|
9426
9426
|
style: { height: "24px" },
|
|
9427
9427
|
children: u(z ? "saveAsNewSearchFilter" : "saveSearchFilter")
|
|
@@ -9429,9 +9429,9 @@ const mi = (t) => {
|
|
|
9429
9429
|
) : null, [
|
|
9430
9430
|
N,
|
|
9431
9431
|
U,
|
|
9432
|
-
P,
|
|
9433
|
-
z,
|
|
9434
9432
|
L,
|
|
9433
|
+
z,
|
|
9434
|
+
P,
|
|
9435
9435
|
u,
|
|
9436
9436
|
$,
|
|
9437
9437
|
j
|
|
@@ -9570,7 +9570,7 @@ const mi = (t) => {
|
|
|
9570
9570
|
const n = ir(e.label), r = ir(t);
|
|
9571
9571
|
return n.includes(r);
|
|
9572
9572
|
};
|
|
9573
|
-
function
|
|
9573
|
+
function Pv(t) {
|
|
9574
9574
|
const {
|
|
9575
9575
|
onAdvancedFilterToggle: e,
|
|
9576
9576
|
advancedFilter: n,
|
|
@@ -9599,7 +9599,7 @@ function Lv(t) {
|
|
|
9599
9599
|
] })
|
|
9600
9600
|
] });
|
|
9601
9601
|
}
|
|
9602
|
-
function
|
|
9602
|
+
function Lv(t) {
|
|
9603
9603
|
const { onLimitChange: e } = t, { t: n } = Me(), r = new xs({ name: "limit" }), o = new xs({ name: "offset" });
|
|
9604
9604
|
return /* @__PURE__ */ H("div", { className: "pl-2 pt-2", children: [
|
|
9605
9605
|
/* @__PURE__ */ s(dt, { children: n("parameters") }, "count_params"),
|
|
@@ -9662,7 +9662,7 @@ function Ko(t) {
|
|
|
9662
9662
|
_
|
|
9663
9663
|
);
|
|
9664
9664
|
o({ params: A, offset: R, limit: F, searchValues: M });
|
|
9665
|
-
},
|
|
9665
|
+
}, P = S(() => {
|
|
9666
9666
|
if (!g || !y)
|
|
9667
9667
|
return !1;
|
|
9668
9668
|
const M = g.rows.reduce(
|
|
@@ -9693,11 +9693,11 @@ function Ko(t) {
|
|
|
9693
9693
|
initialValues: { offset: a, limit: d },
|
|
9694
9694
|
children: [
|
|
9695
9695
|
O,
|
|
9696
|
-
b && p && /* @__PURE__ */ s(
|
|
9696
|
+
b && p && /* @__PURE__ */ s(Lv, { onLimitChange: c }),
|
|
9697
9697
|
/* @__PURE__ */ s(
|
|
9698
|
-
|
|
9698
|
+
Pv,
|
|
9699
9699
|
{
|
|
9700
|
-
hideAdvancedFilter: (
|
|
9700
|
+
hideAdvancedFilter: (P() || (y == null ? void 0 : y._rows.length) === 0) && !p,
|
|
9701
9701
|
advancedFilter: b,
|
|
9702
9702
|
onAdvancedFilterToggle: () => {
|
|
9703
9703
|
C(!b);
|
|
@@ -9728,7 +9728,7 @@ function Ko(t) {
|
|
|
9728
9728
|
function pi({
|
|
9729
9729
|
useLocalState: t = !1
|
|
9730
9730
|
}) {
|
|
9731
|
-
const e = fb() && !t, n = Yt(), [r, o] = E(!1), [i, a] = E(!1), [d, c] = E([]), [l, f] = E(0), [u, m] = E(void 0), [p, g] = E([]), [h, y] = E({}), [v, b] = E(), [C, x] = E([]), [w, _] = E(), [T, I] = E(0), [O, D] = E(), [
|
|
9731
|
+
const e = fb() && !t, n = Yt(), [r, o] = E(!1), [i, a] = E(!1), [d, c] = E([]), [l, f] = E(0), [u, m] = E(void 0), [p, g] = E([]), [h, y] = E({}), [v, b] = E(), [C, x] = E([]), [w, _] = E(), [T, I] = E(0), [O, D] = E(), [P, M] = E(1), [F, R] = E(qn), [A, k] = E(qt);
|
|
9732
9732
|
return e ? {
|
|
9733
9733
|
treeIsLoading: n.viewIsLoading ?? !1,
|
|
9734
9734
|
setTreeIsLoading: n.setViewIsLoading ?? (() => {
|
|
@@ -9804,7 +9804,7 @@ function pi({
|
|
|
9804
9804
|
isActive: void 0,
|
|
9805
9805
|
order: O,
|
|
9806
9806
|
setOrder: D,
|
|
9807
|
-
currentPage:
|
|
9807
|
+
currentPage: P,
|
|
9808
9808
|
setCurrentPage: M,
|
|
9809
9809
|
treeType: F,
|
|
9810
9810
|
setTreeType: R,
|
|
@@ -9847,45 +9847,45 @@ const Er = () => {
|
|
|
9847
9847
|
context: r,
|
|
9848
9848
|
fields: h
|
|
9849
9849
|
})
|
|
9850
|
-
), [D,
|
|
9850
|
+
), [D, P] = $e(
|
|
9851
9851
|
G.getHandler().parseConditions
|
|
9852
9852
|
), M = Er();
|
|
9853
9853
|
ye(() => {
|
|
9854
9854
|
o === !1 && Q(), (o === void 0 || o === !0) && !M && Q(), (o === void 0 || o === !0) && M && V();
|
|
9855
9855
|
}, [o, M]), ye(() => () => {
|
|
9856
|
-
O(),
|
|
9857
|
-
}, []), ye(() => (o || (O(),
|
|
9858
|
-
O(),
|
|
9859
|
-
}), [o, O,
|
|
9856
|
+
O(), P(), w.current && (clearInterval(w.current), w.current = null), C.current.clear(), x.current = [], g.current = [];
|
|
9857
|
+
}, []), ye(() => (o || (O(), P(), C.current.clear()), () => {
|
|
9858
|
+
O(), P();
|
|
9859
|
+
}), [o, O, P]), ye(() => {
|
|
9860
9860
|
if (!h) {
|
|
9861
9861
|
p(!1), g.current = [];
|
|
9862
9862
|
return;
|
|
9863
9863
|
}
|
|
9864
|
-
const N = Object.entries(h).filter(([
|
|
9864
|
+
const N = Object.entries(h).filter(([L, U]) => U.is_function === !0).map(([L]) => L);
|
|
9865
9865
|
p(N.length > 0), g.current = N;
|
|
9866
9866
|
}, [h]);
|
|
9867
9867
|
const F = S(() => {
|
|
9868
9868
|
var U, z;
|
|
9869
9869
|
if (!e)
|
|
9870
9870
|
return !1;
|
|
9871
|
-
const N = ((U = e.fields_in_conditions) == null ? void 0 : U.colors) || [],
|
|
9872
|
-
return N.some((Y) => g.current.includes(Y)) ||
|
|
9871
|
+
const N = ((U = e.fields_in_conditions) == null ? void 0 : U.colors) || [], L = ((z = e.fields_in_conditions) == null ? void 0 : z.status) || [];
|
|
9872
|
+
return N.some((Y) => g.current.includes(Y)) || L.some((Y) => g.current.includes(Y));
|
|
9873
9873
|
}, [e]), R = S(async () => {
|
|
9874
9874
|
if (!m || v.size === 0 || !o || !g.current.length || !a)
|
|
9875
9875
|
return;
|
|
9876
9876
|
const N = Array.from(v).filter(
|
|
9877
|
-
(
|
|
9878
|
-
!C.current.has(
|
|
9877
|
+
(L) => L > 0 && // Skip negative/temporal IDs
|
|
9878
|
+
!C.current.has(L) && !x.current.find((U) => U.id === L)
|
|
9879
9879
|
);
|
|
9880
9880
|
if (N.length !== 0)
|
|
9881
9881
|
try {
|
|
9882
9882
|
N.forEach((Y) => C.current.add(Y));
|
|
9883
|
-
const { results:
|
|
9883
|
+
const { results: L } = await I({
|
|
9884
9884
|
searchIds: N,
|
|
9885
9885
|
fieldsToRetrieve: g.current
|
|
9886
9886
|
}), U = await ln(
|
|
9887
9887
|
a,
|
|
9888
|
-
|
|
9888
|
+
L,
|
|
9889
9889
|
r,
|
|
9890
9890
|
u
|
|
9891
9891
|
), z = [...x.current];
|
|
@@ -9895,8 +9895,8 @@ const Er = () => {
|
|
|
9895
9895
|
);
|
|
9896
9896
|
te >= 0 ? z[te] = Y : z.push(Y), C.current.delete(Y.id);
|
|
9897
9897
|
}), x.current = z;
|
|
9898
|
-
} catch (
|
|
9899
|
-
N.forEach((U) => C.current.delete(U)),
|
|
9898
|
+
} catch (L) {
|
|
9899
|
+
N.forEach((U) => C.current.delete(U)), L.name !== "AbortError" && console.error("Error updating function fields:", L);
|
|
9900
9900
|
}
|
|
9901
9901
|
}, [
|
|
9902
9902
|
m,
|
|
@@ -9913,12 +9913,12 @@ const Er = () => {
|
|
|
9913
9913
|
(N) => {
|
|
9914
9914
|
if (!N || N.length === 0)
|
|
9915
9915
|
return;
|
|
9916
|
-
const
|
|
9917
|
-
if (
|
|
9916
|
+
const L = N.filter((z) => z > 0);
|
|
9917
|
+
if (L.length === 0)
|
|
9918
9918
|
return;
|
|
9919
9919
|
b((z) => {
|
|
9920
9920
|
const Y = new Set(z);
|
|
9921
|
-
return
|
|
9921
|
+
return L.forEach((te) => Y.add(te)), Y;
|
|
9922
9922
|
}), g.current.length > 0 && o && a && setTimeout(() => {
|
|
9923
9923
|
R();
|
|
9924
9924
|
}, 100);
|
|
@@ -9931,13 +9931,13 @@ const Er = () => {
|
|
|
9931
9931
|
(Y) => N.some((te) => te[Y] !== void 0)
|
|
9932
9932
|
) || !F() || !a || !d)
|
|
9933
9933
|
return;
|
|
9934
|
-
const
|
|
9934
|
+
const L = N.map((Y) => ({ ...c == null ? void 0 : c.find((ee) => ee.id === Y.id), ...Y })), U = jr({
|
|
9935
9935
|
treeOoui: a
|
|
9936
9936
|
});
|
|
9937
9937
|
try {
|
|
9938
9938
|
const Y = await D({
|
|
9939
9939
|
conditions: U,
|
|
9940
|
-
values:
|
|
9940
|
+
values: L,
|
|
9941
9941
|
context: r
|
|
9942
9942
|
});
|
|
9943
9943
|
d(Y, a), (z = n == null ? void 0 : n.current) == null || z.refreshRowStyles();
|
|
@@ -9960,7 +9960,7 @@ const Er = () => {
|
|
|
9960
9960
|
const N = ((U = n == null ? void 0 : n.current) == null ? void 0 : U.getVisibleRows()) || [];
|
|
9961
9961
|
if (N.length === 0 || x.current.length === 0)
|
|
9962
9962
|
return;
|
|
9963
|
-
const
|
|
9963
|
+
const L = x.current.filter((Y) => {
|
|
9964
9964
|
const te = N.find(
|
|
9965
9965
|
(be) => (be == null ? void 0 : be.id) === (Y == null ? void 0 : Y.id)
|
|
9966
9966
|
);
|
|
@@ -9968,9 +9968,9 @@ const Er = () => {
|
|
|
9968
9968
|
(be) => Y[be] !== te[be]
|
|
9969
9969
|
) : !1;
|
|
9970
9970
|
}).filter(Boolean);
|
|
9971
|
-
|
|
9971
|
+
L.length > 0 && (k(L), (z = n == null ? void 0 : n.current) == null || z.updateRows(L));
|
|
9972
9972
|
}, [n, k]), j = S(
|
|
9973
|
-
(N,
|
|
9973
|
+
(N, L) => f || !g.current.includes(L) ? !1 : C.current.has(N == null ? void 0 : N.id) ? !0 : !x.current.find((U) => U.id === (N == null ? void 0 : N.id)),
|
|
9974
9974
|
[f]
|
|
9975
9975
|
);
|
|
9976
9976
|
Je(() => (m && _ && ($(), w.current = setInterval(
|
|
@@ -9980,27 +9980,27 @@ const Er = () => {
|
|
|
9980
9980
|
w.current && (clearInterval(w.current), w.current = null);
|
|
9981
9981
|
}), [m, _, $, c]);
|
|
9982
9982
|
const Q = S(() => {
|
|
9983
|
-
T(!1), w.current && (clearInterval(w.current), w.current = null), O(),
|
|
9984
|
-
}, [O,
|
|
9983
|
+
T(!1), w.current && (clearInterval(w.current), w.current = null), O(), P(), C.current.clear();
|
|
9984
|
+
}, [O, P]), V = S(() => {
|
|
9985
9985
|
y && T(!0);
|
|
9986
9986
|
}, [y]), B = S((N) => {
|
|
9987
9987
|
if (!N || N.length === 0)
|
|
9988
9988
|
return;
|
|
9989
|
-
const
|
|
9989
|
+
const L = [...x.current];
|
|
9990
9990
|
N.forEach((U) => {
|
|
9991
|
-
const z =
|
|
9991
|
+
const z = L.findIndex(
|
|
9992
9992
|
(Y) => Y.id === U.id
|
|
9993
9993
|
);
|
|
9994
9994
|
if (z >= 0) {
|
|
9995
|
-
const Y = { ...
|
|
9995
|
+
const Y = { ...L[z] };
|
|
9996
9996
|
g.current.forEach((te) => {
|
|
9997
9997
|
U[te] !== void 0 && (Y[te] = U[te]);
|
|
9998
|
-
}),
|
|
9998
|
+
}), L[z] = Y;
|
|
9999
9999
|
} else
|
|
10000
10000
|
g.current.some(
|
|
10001
10001
|
(te) => U[te] !== void 0
|
|
10002
|
-
) &&
|
|
10003
|
-
}), x.current =
|
|
10002
|
+
) && L.push(U);
|
|
10003
|
+
}), x.current = L;
|
|
10004
10004
|
}, []);
|
|
10005
10005
|
return ye(() => {
|
|
10006
10006
|
l && l(B);
|
|
@@ -10041,7 +10041,7 @@ const Er = () => {
|
|
|
10041
10041
|
[o]
|
|
10042
10042
|
);
|
|
10043
10043
|
ye(() => {
|
|
10044
|
-
i === !1 && D(), (i === void 0 || i === !0) && !w && D(), (i === void 0 || i === !0) && w &&
|
|
10044
|
+
i === !1 && D(), (i === void 0 || i === !0) && !w && D(), (i === void 0 || i === !0) && w && P();
|
|
10045
10045
|
}, [i, w]);
|
|
10046
10046
|
const I = S(() => {
|
|
10047
10047
|
var A, k;
|
|
@@ -10075,7 +10075,7 @@ const Er = () => {
|
|
|
10075
10075
|
const Q = jr({
|
|
10076
10076
|
treeOoui: a
|
|
10077
10077
|
}), V = j.map((B) => ({ ...l == null ? void 0 : l.find(
|
|
10078
|
-
(
|
|
10078
|
+
(L) => L.id === B.id
|
|
10079
10079
|
), ...B }));
|
|
10080
10080
|
try {
|
|
10081
10081
|
const B = await C({
|
|
@@ -10125,7 +10125,7 @@ const Er = () => {
|
|
|
10125
10125
|
]);
|
|
10126
10126
|
const D = S(() => {
|
|
10127
10127
|
y(!1), g.current && (clearInterval(g.current), g.current = null), b(), x();
|
|
10128
|
-
}, [b, x]),
|
|
10128
|
+
}, [b, x]), P = S(() => {
|
|
10129
10129
|
y(!0);
|
|
10130
10130
|
}, []);
|
|
10131
10131
|
ye(() => () => {
|
|
@@ -10134,7 +10134,7 @@ const Er = () => {
|
|
|
10134
10134
|
const M = S(() => {
|
|
10135
10135
|
_.current = {};
|
|
10136
10136
|
}, []);
|
|
10137
|
-
return { pause: D, resume:
|
|
10137
|
+
return { pause: D, resume: P, clear: M };
|
|
10138
10138
|
}, hi = ({
|
|
10139
10139
|
model: t,
|
|
10140
10140
|
treeView: e,
|
|
@@ -10339,7 +10339,7 @@ function Gv(t, e) {
|
|
|
10339
10339
|
Tt(
|
|
10340
10340
|
Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
|
|
10341
10341
|
);
|
|
10342
|
-
const C = X([]), x = X(!1), { showErrorNotification: w } = Et(), { setCurrentSavedSearch: _ } = Yt(), [T, I] = E(), [O, D] = E(!1),
|
|
10342
|
+
const C = X([]), x = X(!1), { showErrorNotification: w } = Et(), { setCurrentSavedSearch: _ } = Yt(), [T, I] = E(), [O, D] = E(!1), P = X(), M = X(null), F = ni({
|
|
10343
10343
|
elementRef: M,
|
|
10344
10344
|
offset: Yv
|
|
10345
10345
|
}), R = y !== void 0 ? y : F, [A, k] = $e(
|
|
@@ -10352,7 +10352,7 @@ function Gv(t, e) {
|
|
|
10352
10352
|
ye(() => () => {
|
|
10353
10353
|
k(), j(), V();
|
|
10354
10354
|
}, []);
|
|
10355
|
-
const { treeView: B, formView: N, loading:
|
|
10355
|
+
const { treeView: B, formView: N, loading: L } = ti({
|
|
10356
10356
|
model: n,
|
|
10357
10357
|
formViewProps: r,
|
|
10358
10358
|
treeViewProps: o,
|
|
@@ -10380,10 +10380,10 @@ function Gv(t, e) {
|
|
|
10380
10380
|
setOrder: je
|
|
10381
10381
|
} = pi({ useLocalState: !c }), ve = u || W, Ce = X(ve), He = X(!1), Be = X(), Ge = X(), Fe = X(!1), Ve = X(ve), ze = X(!1);
|
|
10382
10382
|
ye(() => {
|
|
10383
|
-
|
|
10383
|
+
P.current !== void 0 && P.current !== T && (ee == null || ee(0), setTimeout(() => {
|
|
10384
10384
|
var rt;
|
|
10385
10385
|
(rt = b.current) == null || rt.scrollToTop();
|
|
10386
|
-
}, 0)),
|
|
10386
|
+
}, 0)), P.current = T, Ve.current = ve;
|
|
10387
10387
|
}, [T]), ye(() => {
|
|
10388
10388
|
var Bt, It, pn, er;
|
|
10389
10389
|
const rt = ve && ve.trim().length > 0, gt = Ce.current && typeof Ce.current == "string" && Ce.current.trim().length > 0;
|
|
@@ -10418,7 +10418,7 @@ function Gv(t, e) {
|
|
|
10418
10418
|
}), {
|
|
10419
10419
|
isFieldLoading: Ie,
|
|
10420
10420
|
refreshFunctionFields: Ae,
|
|
10421
|
-
clearAutorefreshableFields:
|
|
10421
|
+
clearAutorefreshableFields: Pe,
|
|
10422
10422
|
addRecordsToCheckFunctionFields: De,
|
|
10423
10423
|
onHasFunctionFieldsToParseConditions: qe,
|
|
10424
10424
|
shouldMakeDeferredFunctionRead: _t
|
|
@@ -10693,11 +10693,11 @@ function Gv(t, e) {
|
|
|
10693
10693
|
}, [oe, z]);
|
|
10694
10694
|
const mt = S(async () => {
|
|
10695
10695
|
var rt;
|
|
10696
|
-
Rt([]), Se(),
|
|
10696
|
+
Rt([]), Se(), Pe(), Be.current = void 0, D(!1), (rt = b == null ? void 0 : b.current) == null || rt.refresh(), Ae();
|
|
10697
10697
|
}, [
|
|
10698
10698
|
Rt,
|
|
10699
10699
|
Se,
|
|
10700
|
-
|
|
10700
|
+
Pe,
|
|
10701
10701
|
Ae
|
|
10702
10702
|
]);
|
|
10703
10703
|
en(e, () => ({
|
|
@@ -10823,7 +10823,7 @@ function Gv(t, e) {
|
|
|
10823
10823
|
)
|
|
10824
10824
|
}
|
|
10825
10825
|
),
|
|
10826
|
-
/* @__PURE__ */ s("div", { ref: M, style: St, children:
|
|
10826
|
+
/* @__PURE__ */ s("div", { ref: M, style: St, children: L || Z ? /* @__PURE__ */ s(ct, {}) : Ye })
|
|
10827
10827
|
] });
|
|
10828
10828
|
}
|
|
10829
10829
|
const yi = zt(Gv), Da = (t, e = "14px -apple-system") => {
|
|
@@ -10996,7 +10996,7 @@ const hd = zt(
|
|
|
10996
10996
|
context: w,
|
|
10997
10997
|
readonly: _,
|
|
10998
10998
|
onSelectAllRecords: T
|
|
10999
|
-
} = t, I = X(null), [O, D] = E([]),
|
|
10999
|
+
} = t, I = X(null), [O, D] = E([]), P = X([]), M = X(!1), [F, R] = E(), { t: A } = Me(), k = X(r), $ = ke(
|
|
11000
11000
|
Qt
|
|
11001
11001
|
), { title: j = void 0, setTitle: Q = void 0 } = (x ? $ : {}) || {}, V = rn(
|
|
11002
11002
|
kt.FEATURE_MANY2ONE_SORT
|
|
@@ -11022,9 +11022,9 @@ const hd = zt(
|
|
|
11022
11022
|
const se = yn(i);
|
|
11023
11023
|
R(se), se.string && j !== se.string && (Q == null || Q(se.string));
|
|
11024
11024
|
}, [i, j]), ye(() => {
|
|
11025
|
-
if (!!Nr(
|
|
11025
|
+
if (!!Nr(P.current, a) || !F)
|
|
11026
11026
|
return;
|
|
11027
|
-
|
|
11027
|
+
P.current = [...a], M.current = !1, (async () => {
|
|
11028
11028
|
const oe = await ln(
|
|
11029
11029
|
F,
|
|
11030
11030
|
a,
|
|
@@ -11035,7 +11035,7 @@ const hd = zt(
|
|
|
11035
11035
|
}, [a, F, w]), ye(() => {
|
|
11036
11036
|
k.current = r;
|
|
11037
11037
|
}, [r]);
|
|
11038
|
-
const
|
|
11038
|
+
const L = (n - 1) * k.current + 1, U = L - 1 + O.length, z = o === void 0 ? null : o === 0 ? A("no_results") : A("summary").replace("{from}", L == null ? void 0 : L.toString()).replace("{to}", U == null ? void 0 : U.toString()).replace("{total}", o == null ? void 0 : o.toString()), Y = K(() => {
|
|
11039
11039
|
if (!f || i.isExpandable)
|
|
11040
11040
|
return null;
|
|
11041
11041
|
const se = O == null ? void 0 : O.filter(
|
|
@@ -11171,9 +11171,9 @@ const gd = (t) => {
|
|
|
11171
11171
|
clearSelection: I
|
|
11172
11172
|
} = t, O = Tt(
|
|
11173
11173
|
Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
|
|
11174
|
-
), [D,
|
|
11174
|
+
), [D, P] = E(!1), [M, F] = E(!1), [R, A] = E(), [k, $] = E(1), [j, Q] = E(0), [V, B] = E(), [N, L] = E([]), [U, z] = E(void 0), [Y, te] = E(void 0), ee = X(x || qt), be = X([]), fe = S(
|
|
11175
11175
|
(he) => {
|
|
11176
|
-
y == null || y([...he]),
|
|
11176
|
+
y == null || y([...he]), L([...he]);
|
|
11177
11177
|
},
|
|
11178
11178
|
[y]
|
|
11179
11179
|
), se = v || N, le = S(async () => {
|
|
@@ -11204,7 +11204,7 @@ const gd = (t) => {
|
|
|
11204
11204
|
fe(Fe), Ge.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
11205
11205
|
} else
|
|
11206
11206
|
fe([]), h == null || h(void 0);
|
|
11207
|
-
|
|
11207
|
+
P(!1), c.current = !0;
|
|
11208
11208
|
}, [
|
|
11209
11209
|
fe,
|
|
11210
11210
|
c,
|
|
@@ -11243,7 +11243,7 @@ const gd = (t) => {
|
|
|
11243
11243
|
Ue === -1 ? h == null || h(0) : h == null || h(Ue);
|
|
11244
11244
|
} else
|
|
11245
11245
|
h == null || h(void 0);
|
|
11246
|
-
|
|
11246
|
+
P(!1);
|
|
11247
11247
|
const Re = await Ge();
|
|
11248
11248
|
B(Re), f == null || f(Re);
|
|
11249
11249
|
},
|
|
@@ -11265,9 +11265,9 @@ const gd = (t) => {
|
|
|
11265
11265
|
), ne = S(
|
|
11266
11266
|
async (he) => {
|
|
11267
11267
|
try {
|
|
11268
|
-
|
|
11268
|
+
P(!0), a == null || a(!0), d && !c.current ? await le() : await oe(he), I == null || I();
|
|
11269
11269
|
} catch (Ne) {
|
|
11270
|
-
A(typeof Ne == "string" ? Ne : Ne.message),
|
|
11270
|
+
A(typeof Ne == "string" ? Ne : Ne.message), P(!1);
|
|
11271
11271
|
} finally {
|
|
11272
11272
|
r == null || r([]), F(!1), a == null || a(!1);
|
|
11273
11273
|
}
|
|
@@ -11321,9 +11321,9 @@ const gd = (t) => {
|
|
|
11321
11321
|
]
|
|
11322
11322
|
), ie = S(
|
|
11323
11323
|
(he) => {
|
|
11324
|
-
|
|
11324
|
+
P(!0), $(he), Q((he - 1) * x);
|
|
11325
11325
|
},
|
|
11326
|
-
[
|
|
11326
|
+
[P, x, Q, $]
|
|
11327
11327
|
), pe = S(() => {
|
|
11328
11328
|
D || (n == null || n(void 0), o == null || o([]), T == null || T({}), A(void 0), Q(0), $(1), w == null || w(x || qt));
|
|
11329
11329
|
}, [
|
|
@@ -11389,7 +11389,7 @@ function Zv(t, e) {
|
|
|
11389
11389
|
rootTree: f = !1,
|
|
11390
11390
|
parentContext: u = {},
|
|
11391
11391
|
onChangeSelectedRowKeys: m
|
|
11392
|
-
} = t, [p, g] = E(!1), [h, y] = E(!1), v = X(!1), b = X(null), [C, x] = E(), [w, _] = E(), [T, I] = E(), [O, D] = E(), [
|
|
11392
|
+
} = t, [p, g] = E(!1), [h, y] = E(!1), v = X(!1), b = X(null), [C, x] = E(), [w, _] = E(), [T, I] = E(), [O, D] = E(), [P, M] = E(200), F = X(), { height: R } = Ho(), A = ke(
|
|
11393
11393
|
En
|
|
11394
11394
|
), { processAction: k } = A || {}, $ = ke(
|
|
11395
11395
|
Qt
|
|
@@ -11399,7 +11399,7 @@ function Zv(t, e) {
|
|
|
11399
11399
|
currentId: V = void 0,
|
|
11400
11400
|
results: B = void 0,
|
|
11401
11401
|
selectedRowItems: N = void 0,
|
|
11402
|
-
setSelectedRowItems:
|
|
11402
|
+
setSelectedRowItems: L = void 0,
|
|
11403
11403
|
searchParams: U = [],
|
|
11404
11404
|
setSearchParams: z = void 0,
|
|
11405
11405
|
searchVisible: Y = !0,
|
|
@@ -11414,10 +11414,10 @@ function Zv(t, e) {
|
|
|
11414
11414
|
limit: W = qt,
|
|
11415
11415
|
setLimit: me = void 0
|
|
11416
11416
|
} = (f ? $ : {}) || {}, { showErrorNotification: ie } = Et(), pe = S(
|
|
11417
|
-
(
|
|
11418
|
-
|
|
11417
|
+
(Pe) => {
|
|
11418
|
+
L == null || L(Pe.map((De) => ({ id: De }))), m == null || m(Pe);
|
|
11419
11419
|
},
|
|
11420
|
-
[m,
|
|
11420
|
+
[m, L]
|
|
11421
11421
|
), {
|
|
11422
11422
|
submit: de,
|
|
11423
11423
|
clear: Ee,
|
|
@@ -11474,15 +11474,15 @@ function Zv(t, e) {
|
|
|
11474
11474
|
y(!1), g(!0), D(void 0), le == null || le(!0);
|
|
11475
11475
|
try {
|
|
11476
11476
|
await ae(), y(!0);
|
|
11477
|
-
} catch (
|
|
11478
|
-
ie(
|
|
11477
|
+
} catch (Pe) {
|
|
11478
|
+
ie(Pe), le == null || le(!1);
|
|
11479
11479
|
} finally {
|
|
11480
11480
|
g(!1);
|
|
11481
11481
|
}
|
|
11482
11482
|
}, ae = async () => {
|
|
11483
11483
|
x(n);
|
|
11484
|
-
let
|
|
11485
|
-
r || (
|
|
11484
|
+
let Pe = r;
|
|
11485
|
+
r || (Pe = await G.getHandler().getView({
|
|
11486
11486
|
model: n,
|
|
11487
11487
|
type: "form",
|
|
11488
11488
|
context: u
|
|
@@ -11492,19 +11492,19 @@ function Zv(t, e) {
|
|
|
11492
11492
|
model: n,
|
|
11493
11493
|
type: "tree",
|
|
11494
11494
|
context: u
|
|
11495
|
-
})), I(
|
|
11495
|
+
})), I(Pe), _(De);
|
|
11496
11496
|
};
|
|
11497
11497
|
ye(() => {
|
|
11498
11498
|
ue();
|
|
11499
11499
|
}, [n]);
|
|
11500
11500
|
const J = S(
|
|
11501
|
-
(
|
|
11502
|
-
me == null || me(
|
|
11501
|
+
(Pe) => {
|
|
11502
|
+
me == null || me(Pe);
|
|
11503
11503
|
},
|
|
11504
11504
|
[me]
|
|
11505
11505
|
), Te = S(
|
|
11506
|
-
async (
|
|
11507
|
-
const { id: De } =
|
|
11506
|
+
async (Pe) => {
|
|
11507
|
+
const { id: De } = Pe;
|
|
11508
11508
|
F.current || (F.current = await G.getHandler().treeButOpen({
|
|
11509
11509
|
id: w.view_id,
|
|
11510
11510
|
model: C,
|
|
@@ -11516,7 +11516,7 @@ function Zv(t, e) {
|
|
|
11516
11516
|
fields: w.fields,
|
|
11517
11517
|
values: {
|
|
11518
11518
|
active_id: De,
|
|
11519
|
-
...
|
|
11519
|
+
...Pe
|
|
11520
11520
|
},
|
|
11521
11521
|
context: u,
|
|
11522
11522
|
treeView: w,
|
|
@@ -11525,11 +11525,11 @@ function Zv(t, e) {
|
|
|
11525
11525
|
},
|
|
11526
11526
|
[C, u, k, w]
|
|
11527
11527
|
), re = S(
|
|
11528
|
-
async (
|
|
11529
|
-
const { id: De } =
|
|
11528
|
+
async (Pe) => {
|
|
11529
|
+
const { id: De } = Pe;
|
|
11530
11530
|
if (w != null && w.isExpandable) {
|
|
11531
11531
|
try {
|
|
11532
|
-
await Te(
|
|
11532
|
+
await Te(Pe);
|
|
11533
11533
|
} catch (qe) {
|
|
11534
11534
|
ie(qe);
|
|
11535
11535
|
}
|
|
@@ -11551,10 +11551,10 @@ function Zv(t, e) {
|
|
|
11551
11551
|
w
|
|
11552
11552
|
]
|
|
11553
11553
|
), q = S(async () => {
|
|
11554
|
-
const
|
|
11555
|
-
|
|
11556
|
-
}, [ge, m,
|
|
11557
|
-
() => N == null ? void 0 : N.map((
|
|
11554
|
+
const Pe = await ge();
|
|
11555
|
+
L == null || L(Pe.map((De) => ({ id: De }))), m == null || m(Pe);
|
|
11556
|
+
}, [ge, m, L]), Z = K(() => w != null && w.isExpandable ? R - 160 : R - (P + 240), [R, P, w == null ? void 0 : w.isExpandable]), ce = K(
|
|
11557
|
+
() => N == null ? void 0 : N.map((Pe) => Pe.id),
|
|
11558
11558
|
[N]
|
|
11559
11559
|
), Se = S(() => !w || !T ? null : /* @__PURE__ */ H(Oe, { children: [
|
|
11560
11560
|
/* @__PURE__ */ s(
|
|
@@ -11666,7 +11666,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11666
11666
|
treeFirstVisibleRow: I,
|
|
11667
11667
|
treeFirstVisibleColumn: O,
|
|
11668
11668
|
setTreeFirstVisibleColumn: D,
|
|
11669
|
-
selectedRowItems:
|
|
11669
|
+
selectedRowItems: P,
|
|
11670
11670
|
setSearchParams: M,
|
|
11671
11671
|
searchValues: F,
|
|
11672
11672
|
searchParams: R,
|
|
@@ -11678,7 +11678,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11678
11678
|
setSearchQuery: V,
|
|
11679
11679
|
setTotalItems: B,
|
|
11680
11680
|
isActive: N,
|
|
11681
|
-
currentPage:
|
|
11681
|
+
currentPage: L,
|
|
11682
11682
|
setCurrentPage: U,
|
|
11683
11683
|
order: z,
|
|
11684
11684
|
setOrder: Y,
|
|
@@ -11723,10 +11723,10 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11723
11723
|
), Se = K(
|
|
11724
11724
|
() => bn(R || [], c),
|
|
11725
11725
|
[c, R]
|
|
11726
|
-
), Ie = K(() => (
|
|
11726
|
+
), Ie = K(() => (P == null ? void 0 : P.map((Ye) => Ye.id)) || [], [P]), Ae = S(() => {
|
|
11727
11727
|
const Xe = `${JSON.stringify(he ? c : Se)}-${he}`;
|
|
11728
11728
|
return Xe !== Ce.current ? (Ce.current = Xe, !0) : !1;
|
|
11729
|
-
}, [c, Se, he]),
|
|
11729
|
+
}, [c, Se, he]), Pe = S(async () => {
|
|
11730
11730
|
me(void 0), B(0), ne(!0);
|
|
11731
11731
|
try {
|
|
11732
11732
|
const Ye = await J({
|
|
@@ -11803,11 +11803,11 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11803
11803
|
treeOoui: n,
|
|
11804
11804
|
hasFunctionFieldsToParseConditions: ue && ge()
|
|
11805
11805
|
});
|
|
11806
|
-
!he && Ae() &&
|
|
11806
|
+
!he && Ae() && Pe();
|
|
11807
11807
|
const { results: mt, attrsEvaluated: St } = await re({
|
|
11808
11808
|
params: Xe,
|
|
11809
11809
|
limit: le,
|
|
11810
|
-
offset: y ? 0 : ((
|
|
11810
|
+
offset: y ? 0 : ((L || 1) - 1) * le,
|
|
11811
11811
|
model: o,
|
|
11812
11812
|
fields: r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields,
|
|
11813
11813
|
context: l,
|
|
@@ -11854,14 +11854,14 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11854
11854
|
re,
|
|
11855
11855
|
le,
|
|
11856
11856
|
y,
|
|
11857
|
-
|
|
11857
|
+
L,
|
|
11858
11858
|
o,
|
|
11859
11859
|
r,
|
|
11860
11860
|
l,
|
|
11861
11861
|
V,
|
|
11862
11862
|
j,
|
|
11863
11863
|
m,
|
|
11864
|
-
|
|
11864
|
+
Pe,
|
|
11865
11865
|
xe,
|
|
11866
11866
|
B,
|
|
11867
11867
|
ae
|
|
@@ -11904,7 +11904,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
11904
11904
|
r,
|
|
11905
11905
|
n,
|
|
11906
11906
|
le,
|
|
11907
|
-
|
|
11907
|
+
L,
|
|
11908
11908
|
he,
|
|
11909
11909
|
c,
|
|
11910
11910
|
z
|
|
@@ -12046,7 +12046,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
12046
12046
|
selectAllRecords: at,
|
|
12047
12047
|
onHeaderCheckboxClick: mn,
|
|
12048
12048
|
headerCheckboxState: bt,
|
|
12049
|
-
currentPage:
|
|
12049
|
+
currentPage: L,
|
|
12050
12050
|
limit: le,
|
|
12051
12051
|
order: z,
|
|
12052
12052
|
setOrder: Y,
|
|
@@ -12160,7 +12160,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
12160
12160
|
onChangeTreeType: I,
|
|
12161
12161
|
onFetchChildrenForRecord: O,
|
|
12162
12162
|
childField: D,
|
|
12163
|
-
autoRefresh:
|
|
12163
|
+
autoRefresh: P
|
|
12164
12164
|
}) => !t || !e ? null : /* @__PURE__ */ s(
|
|
12165
12165
|
lf,
|
|
12166
12166
|
{
|
|
@@ -12189,7 +12189,7 @@ const yd = zt(Zv), eb = qt, tb = (t) => {
|
|
|
12189
12189
|
initialSortState: w,
|
|
12190
12190
|
onSortChange: _,
|
|
12191
12191
|
onChangeTableType: I,
|
|
12192
|
-
autoRefresh:
|
|
12192
|
+
autoRefresh: P,
|
|
12193
12193
|
expandableOpts: O ? {
|
|
12194
12194
|
expandIcon: hl,
|
|
12195
12195
|
collapseIcon: gl,
|
|
@@ -12286,7 +12286,7 @@ function ab(t, e) {
|
|
|
12286
12286
|
if (w)
|
|
12287
12287
|
return yn(w);
|
|
12288
12288
|
}, [w]), {
|
|
12289
|
-
columns:
|
|
12289
|
+
columns: P,
|
|
12290
12290
|
strings: M,
|
|
12291
12291
|
getColumnState: F,
|
|
12292
12292
|
updateColumnState: R,
|
|
@@ -12303,9 +12303,9 @@ function ab(t, e) {
|
|
|
12303
12303
|
model: n
|
|
12304
12304
|
}) : void 0,
|
|
12305
12305
|
tableRef: v
|
|
12306
|
-
}), V = K(() =>
|
|
12306
|
+
}), V = K(() => P || [], [P]), B = w == null ? void 0 : w.isExpandable, {
|
|
12307
12307
|
searchVisible: N,
|
|
12308
|
-
searchValues:
|
|
12308
|
+
searchValues: L,
|
|
12309
12309
|
selectedRowKeys: U,
|
|
12310
12310
|
refresh: z,
|
|
12311
12311
|
onRowStatus: Y,
|
|
@@ -12398,7 +12398,7 @@ function ab(t, e) {
|
|
|
12398
12398
|
...d ? {} : { display: "none" }
|
|
12399
12399
|
}),
|
|
12400
12400
|
[O, d]
|
|
12401
|
-
), Se = Re !== void 0 && ze, Ie = Se && W !== void 0 && W !== null && W === qt, Ae = K(() => typeof W != "number" || isNaN(W) || W < 0 ? (ie == null ? void 0 : ie.length) || 0 : W || 0, [W, ie]),
|
|
12401
|
+
), Se = Re !== void 0 && ze, Ie = Se && W !== void 0 && W !== null && W === qt, Ae = K(() => typeof W != "number" || isNaN(W) || W < 0 ? (ie == null ? void 0 : ie.length) || 0 : W || 0, [W, ie]), Pe = K(() => (ie == null ? void 0 : ie.length) > 0 && (typeof W != "number" || isNaN(W) || W < 0) ? ie == null ? void 0 : ie.length : f ? qt : ve || eb, [ie == null ? void 0 : ie.length, W, f, ve]);
|
|
12402
12402
|
return /* @__PURE__ */ H(Gn, { children: [
|
|
12403
12403
|
!B && !p && /* @__PURE__ */ s(
|
|
12404
12404
|
nb,
|
|
@@ -12407,7 +12407,7 @@ function ab(t, e) {
|
|
|
12407
12407
|
formView: _,
|
|
12408
12408
|
treeView: w,
|
|
12409
12409
|
searchVisible: N,
|
|
12410
|
-
searchValues:
|
|
12410
|
+
searchValues: L,
|
|
12411
12411
|
onSearchFilterClear: fe,
|
|
12412
12412
|
onSearchFilterSubmit: se,
|
|
12413
12413
|
onSideSearchFilterClose: le,
|
|
@@ -12422,7 +12422,7 @@ function ab(t, e) {
|
|
|
12422
12422
|
total: Ae,
|
|
12423
12423
|
totalRowsLoading: ne,
|
|
12424
12424
|
page: f ? 1 : je || 1,
|
|
12425
|
-
pageSize:
|
|
12425
|
+
pageSize: Pe,
|
|
12426
12426
|
maxPageSize: x,
|
|
12427
12427
|
currentPageSelectedCount: U.length,
|
|
12428
12428
|
onRequestPageChange: pe,
|
|
@@ -12567,7 +12567,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12567
12567
|
},
|
|
12568
12568
|
children: [
|
|
12569
12569
|
/* @__PURE__ */ s(
|
|
12570
|
-
|
|
12570
|
+
Pt,
|
|
12571
12571
|
{
|
|
12572
12572
|
title: /* @__PURE__ */ H("div", { children: [
|
|
12573
12573
|
/* @__PURE__ */ s("div", { children: a("openSavedSearchInSidebar") }),
|
|
@@ -12614,7 +12614,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12614
12614
|
)
|
|
12615
12615
|
}
|
|
12616
12616
|
),
|
|
12617
|
-
/* @__PURE__ */ s(
|
|
12617
|
+
/* @__PURE__ */ s(Pt, { title: a("clear_search"), children: /* @__PURE__ */ s(
|
|
12618
12618
|
kn,
|
|
12619
12619
|
{
|
|
12620
12620
|
style: {
|
|
@@ -12683,7 +12683,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12683
12683
|
setSearchVisible: I,
|
|
12684
12684
|
setSearchParams: O,
|
|
12685
12685
|
setSearchValues: D
|
|
12686
|
-
} = ke(Qt), { fetchSavedSearches:
|
|
12686
|
+
} = ke(Qt), { fetchSavedSearches: P, handleClearSavedSearch: M, subtitle: F } = bd({
|
|
12687
12687
|
model: r,
|
|
12688
12688
|
context: o,
|
|
12689
12689
|
viewRef: n,
|
|
@@ -12732,7 +12732,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12732
12732
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
12733
12733
|
parentContext: o,
|
|
12734
12734
|
treeExpandable: Co(a),
|
|
12735
|
-
onRefetchSavedSearches:
|
|
12735
|
+
onRefetchSavedSearches: P,
|
|
12736
12736
|
onClearSavedSearch: M
|
|
12737
12737
|
}
|
|
12738
12738
|
) }),
|
|
@@ -12812,19 +12812,19 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12812
12812
|
goToResourceId: I,
|
|
12813
12813
|
limit: O,
|
|
12814
12814
|
isActive: D,
|
|
12815
|
-
initialSearchParams:
|
|
12815
|
+
initialSearchParams: P,
|
|
12816
12816
|
initialCurrentPage: M,
|
|
12817
12817
|
initialOrder: F,
|
|
12818
12818
|
permissions: R,
|
|
12819
12819
|
permissionsLoading: A,
|
|
12820
12820
|
permissionsError: k,
|
|
12821
12821
|
initialOpenComments: $
|
|
12822
|
-
} = t, [j, Q] = E(!1), [V, B] = E(!1), [N,
|
|
12823
|
-
|
|
12822
|
+
} = t, [j, Q] = E(!1), [V, B] = E(!1), [N, L] = E(!1), [U, z] = E(!0), [Y, te] = E(!0), [ee, be] = E([]), [fe, se] = E(!1), [le, oe] = E(
|
|
12823
|
+
P || []
|
|
12824
12824
|
), [ne, W] = E(!1), [me, ie] = E(!0), [pe, de] = E(), Ee = S(() => {
|
|
12825
12825
|
de(n), c();
|
|
12826
12826
|
}, [n, c, de]), he = K(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((vt, xt) => ({ ...vt, ...xt.fields || {} }), {}), [i, n]), [Ne, je] = E(
|
|
12827
|
-
uc(
|
|
12827
|
+
uc(P || [], he)
|
|
12828
12828
|
), [ve, Ce] = E(0), [He, Be] = E(void 0), [Ge, Fe] = E(), [Ve, ze] = E(qn), [Re, Ue] = E(
|
|
12829
12829
|
F
|
|
12830
12830
|
), [xe, ge] = E(
|
|
@@ -12833,7 +12833,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12833
12833
|
M || 1
|
|
12834
12834
|
), [re, q] = E(null), [Z, ce] = E([]), [Se, Ie] = E(
|
|
12835
12835
|
$ ?? !1
|
|
12836
|
-
), [Ae,
|
|
12836
|
+
), [Ae, Pe] = E(0), [De, qe] = E({ fn: void 0 }), _t = S(
|
|
12837
12837
|
(vt) => {
|
|
12838
12838
|
qe({ fn: vt });
|
|
12839
12839
|
},
|
|
@@ -12884,7 +12884,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12884
12884
|
setResults: u,
|
|
12885
12885
|
currentModel: h,
|
|
12886
12886
|
removingItem: N,
|
|
12887
|
-
setRemovingItem:
|
|
12887
|
+
setRemovingItem: L,
|
|
12888
12888
|
formIsLoading: U,
|
|
12889
12889
|
setFormIsLoading: z,
|
|
12890
12890
|
viewIsLoading: Y,
|
|
@@ -12935,7 +12935,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
12935
12935
|
commentsPanelVisible: Se,
|
|
12936
12936
|
setCommentsPanelVisible: Ie,
|
|
12937
12937
|
commentCount: Ae,
|
|
12938
|
-
setCommentCount:
|
|
12938
|
+
setCommentCount: Pe,
|
|
12939
12939
|
refreshComments: De.fn,
|
|
12940
12940
|
setRefreshComments: _t,
|
|
12941
12941
|
permissions: R,
|
|
@@ -13282,7 +13282,7 @@ const vd = zt(ab), { useToken: lb } = ot, bd = ({
|
|
|
13282
13282
|
overflow: "hidden"
|
|
13283
13283
|
},
|
|
13284
13284
|
children: a ? /* @__PURE__ */ H(Oe, { children: [
|
|
13285
|
-
/* @__PURE__ */ s(
|
|
13285
|
+
/* @__PURE__ */ s(Pt, { title: a, children: /* @__PURE__ */ s(Lo, { className: "pr-1 text-xs" }) }),
|
|
13286
13286
|
/* @__PURE__ */ s(ka, { ellipsis: !0, children: e })
|
|
13287
13287
|
] }) : /* @__PURE__ */ s(
|
|
13288
13288
|
ka,
|
|
@@ -13460,7 +13460,7 @@ function vb(t) {
|
|
|
13460
13460
|
treeExpandable: c,
|
|
13461
13461
|
fixedHeight: l,
|
|
13462
13462
|
autoRefresh: f
|
|
13463
|
-
} = t, [u, m] = E(!1), [p, g] = E(!1), [h, y] = E(), [v, b] = E(), [C, x] = E(), [w, _] = E(1), [T, I] = E(0), O = X(qt), D = X([]), [
|
|
13463
|
+
} = t, [u, m] = E(!1), [p, g] = E(!1), [h, y] = E(), [v, b] = E(), [C, x] = E(), [w, _] = E(1), [T, I] = E(0), O = X(qt), D = X([]), [P, M] = E(0), [F, R] = E([]), [A, k] = E(void 0), [$, j] = E(), [Q, V] = E(), [B, N] = E(), [L, U] = E(!1), [z, Y] = E(qn), te = X([]), { treeMaxLimit: ee } = on(), be = (pe) => {
|
|
13464
13464
|
U(!0), _(pe), I((pe - 1) * O.current);
|
|
13465
13465
|
}, fe = async () => {
|
|
13466
13466
|
const pe = te.current.length > 0 ? te.current : i, de = bn(D.current, pe), { colors: Ee } = yn(v), { totalItems: he, results: Ne, attrsEvaluated: je } = await G.getHandler().searchForTree({
|
|
@@ -13585,13 +13585,13 @@ function vb(t) {
|
|
|
13585
13585
|
so,
|
|
13586
13586
|
{
|
|
13587
13587
|
showPagination: !1,
|
|
13588
|
-
total:
|
|
13588
|
+
total: P,
|
|
13589
13589
|
limit: O.current,
|
|
13590
13590
|
page: w,
|
|
13591
13591
|
treeView: v,
|
|
13592
13592
|
results: F,
|
|
13593
13593
|
onRequestPageChange: be,
|
|
13594
|
-
loading:
|
|
13594
|
+
loading: L,
|
|
13595
13595
|
onRowClicked: me,
|
|
13596
13596
|
colorsForResults: A,
|
|
13597
13597
|
sorter: $,
|
|
@@ -13626,14 +13626,14 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13626
13626
|
async function I(O, D) {
|
|
13627
13627
|
if (O && O.includes(":"))
|
|
13628
13628
|
try {
|
|
13629
|
-
const
|
|
13629
|
+
const P = await g({
|
|
13630
13630
|
condition: O,
|
|
13631
13631
|
values: { value: r },
|
|
13632
13632
|
context: {}
|
|
13633
13633
|
});
|
|
13634
|
-
D(
|
|
13635
|
-
} catch (
|
|
13636
|
-
console.error("Error evaluando icono:",
|
|
13634
|
+
D(P);
|
|
13635
|
+
} catch (P) {
|
|
13636
|
+
console.error("Error evaluando icono:", P);
|
|
13637
13637
|
}
|
|
13638
13638
|
else
|
|
13639
13639
|
D(O);
|
|
@@ -13666,14 +13666,14 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13666
13666
|
n.label,
|
|
13667
13667
|
" "
|
|
13668
13668
|
] }),
|
|
13669
|
-
n.tooltip && /* @__PURE__ */ s(
|
|
13669
|
+
n.tooltip && /* @__PURE__ */ s(Pt, { title: n.tooltip, children: /* @__PURE__ */ s(
|
|
13670
13670
|
cl,
|
|
13671
13671
|
{
|
|
13672
13672
|
className: "pr-1 text-xs",
|
|
13673
13673
|
style: { color: e.colorPrimaryBg }
|
|
13674
13674
|
}
|
|
13675
13675
|
) })
|
|
13676
|
-
] }), x =
|
|
13676
|
+
] }), x = Lt(a);
|
|
13677
13677
|
let w = r;
|
|
13678
13678
|
if (n.fieldType === "reference")
|
|
13679
13679
|
m ? w = /* @__PURE__ */ s(ct, { size: "small" }) : f ? w = /* @__PURE__ */ H(ht, { children: [
|
|
@@ -13870,7 +13870,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13870
13870
|
if (g && (D = [["id", "in", i]]), n.domain) {
|
|
13871
13871
|
const F = await b({
|
|
13872
13872
|
domain: n.domain,
|
|
13873
|
-
values:
|
|
13873
|
+
values: Ln({
|
|
13874
13874
|
fields: y == null ? void 0 : y.getFields(),
|
|
13875
13875
|
values: y.getAllHierarchyValues()
|
|
13876
13876
|
}),
|
|
@@ -13890,24 +13890,24 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13890
13890
|
return Array.isArray(R) && (A = R[1]), { label: A, value: F.id };
|
|
13891
13891
|
});
|
|
13892
13892
|
d(M);
|
|
13893
|
-
} catch (
|
|
13894
|
-
l(
|
|
13893
|
+
} catch (P) {
|
|
13894
|
+
l(P);
|
|
13895
13895
|
} finally {
|
|
13896
13896
|
u(!1);
|
|
13897
13897
|
}
|
|
13898
13898
|
}
|
|
13899
13899
|
const I = (D) => {
|
|
13900
|
-
const
|
|
13900
|
+
const P = o.map((F) => D.includes(F.id) ? F.operation === "pendingRemove" ? {
|
|
13901
13901
|
...F,
|
|
13902
13902
|
operation: "pendingLink"
|
|
13903
|
-
} : F : { id: F.id, operation: "pendingRemove" }), M =
|
|
13903
|
+
} : F : { id: F.id, operation: "pendingRemove" }), M = P.map((F) => F.id);
|
|
13904
13904
|
D.filter((F) => !M.includes(F)).forEach((F) => {
|
|
13905
|
-
|
|
13906
|
-
}), _(
|
|
13905
|
+
P.push({ id: F, operation: "pendingLink" });
|
|
13906
|
+
}), _(P);
|
|
13907
13907
|
}, O = (D) => {
|
|
13908
|
-
const { label:
|
|
13908
|
+
const { label: P, closable: M, onClose: F } = D, R = ($) => {
|
|
13909
13909
|
$.preventDefault(), $.stopPropagation();
|
|
13910
|
-
}, A = Tr(
|
|
13910
|
+
}, A = Tr(P), k = A && jl(A);
|
|
13911
13911
|
return /* @__PURE__ */ s(
|
|
13912
13912
|
ri,
|
|
13913
13913
|
{
|
|
@@ -13916,7 +13916,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13916
13916
|
closable: M,
|
|
13917
13917
|
onClose: F,
|
|
13918
13918
|
closeIcon: /* @__PURE__ */ s("span", { style: { color: k && k.text }, children: "X" }),
|
|
13919
|
-
children:
|
|
13919
|
+
children: P
|
|
13920
13920
|
}
|
|
13921
13921
|
);
|
|
13922
13922
|
};
|
|
@@ -13931,7 +13931,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13931
13931
|
options: a,
|
|
13932
13932
|
onChange: I,
|
|
13933
13933
|
loading: f,
|
|
13934
|
-
filterOption: (D,
|
|
13934
|
+
filterOption: (D, P) => P.label.toLowerCase().includes(D.toString().toLowerCase())
|
|
13935
13935
|
}
|
|
13936
13936
|
) }) });
|
|
13937
13937
|
}, Eb = (t) => {
|
|
@@ -13958,7 +13958,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
13958
13958
|
}, [e]), a = K(
|
|
13959
13959
|
() => {
|
|
13960
13960
|
var g;
|
|
13961
|
-
return
|
|
13961
|
+
return Lt(((g = n.raw_props) == null ? void 0 : g.icon) || "");
|
|
13962
13962
|
},
|
|
13963
13963
|
[(u = n.raw_props) == null ? void 0 : u.icon]
|
|
13964
13964
|
), d = K(
|
|
@@ -14061,7 +14061,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
14061
14061
|
c,
|
|
14062
14062
|
n
|
|
14063
14063
|
]), u = K(
|
|
14064
|
-
() => t.icon ? /* @__PURE__ */ s(
|
|
14064
|
+
() => t.icon ? /* @__PURE__ */ s(Lr, { icon: t.icon }) : void 0,
|
|
14065
14065
|
[t.icon]
|
|
14066
14066
|
);
|
|
14067
14067
|
return /* @__PURE__ */ s(
|
|
@@ -14104,7 +14104,7 @@ const xd = nt(vb), { useToken: bb } = ot, wb = 3 * 1e3, Cb = (t) => {
|
|
|
14104
14104
|
) });
|
|
14105
14105
|
};
|
|
14106
14106
|
function Nb(t) {
|
|
14107
|
-
const { ooui: e, responsiveBehaviour: n } = t, r =
|
|
14107
|
+
const { ooui: e, responsiveBehaviour: n } = t, r = Lt(e.icon || ""), { t: o } = Me(), i = e.title ? /* @__PURE__ */ H("span", { children: [
|
|
14108
14108
|
r && /* @__PURE__ */ s("span", { style: { marginRight: "8px" }, children: fn.createElement(r) }),
|
|
14109
14109
|
e.title
|
|
14110
14110
|
] }) : void 0;
|
|
@@ -14249,12 +14249,12 @@ const kb = (t) => {
|
|
|
14249
14249
|
}), i.parsedWidgetProps = e.parsedWidgetProps);
|
|
14250
14250
|
const a = kb(o);
|
|
14251
14251
|
return a ? Ka(a, { ...t, ooui: i }) : null;
|
|
14252
|
-
},
|
|
14252
|
+
}, Pb = ({
|
|
14253
14253
|
item: t,
|
|
14254
14254
|
responsiveBehaviour: e
|
|
14255
14255
|
}) => ({
|
|
14256
14256
|
gridColumnStart: "span " + (e ? 1 : t.colspan)
|
|
14257
|
-
}),
|
|
14257
|
+
}), Lb = ({
|
|
14258
14258
|
row: t,
|
|
14259
14259
|
mustFillWithEmpties: e,
|
|
14260
14260
|
numberOfColumns: n
|
|
@@ -14304,7 +14304,7 @@ const kb = (t) => {
|
|
|
14304
14304
|
numberOfColumns: o
|
|
14305
14305
|
});
|
|
14306
14306
|
let y = h;
|
|
14307
|
-
return (p === 0 || !(m.length === 1 && m.some((v) => v.type === "group"))) && (y =
|
|
14307
|
+
return (p === 0 || !(m.length === 1 && m.some((v) => v.type === "group"))) && (y = Lb({
|
|
14308
14308
|
row: h,
|
|
14309
14309
|
numberOfColumns: o,
|
|
14310
14310
|
mustFillWithEmpties: n
|
|
@@ -14315,7 +14315,7 @@ const kb = (t) => {
|
|
|
14315
14315
|
"div",
|
|
14316
14316
|
{
|
|
14317
14317
|
style: {
|
|
14318
|
-
...
|
|
14318
|
+
...Pb({ item: v, responsiveBehaviour: n }),
|
|
14319
14319
|
minWidth: b
|
|
14320
14320
|
},
|
|
14321
14321
|
children: $b({
|
|
@@ -14474,7 +14474,7 @@ function Kb(t, e) {
|
|
|
14474
14474
|
forcedValues: T = {},
|
|
14475
14475
|
parentWidth: I,
|
|
14476
14476
|
onMustRefreshParent: O
|
|
14477
|
-
} = t, { t: D } = Me(), [
|
|
14477
|
+
} = t, { t: D } = Me(), [P, M] = E(!1), [F, R] = E(), [A, k] = E(), [$] = Dt.useForm(), [j, Q] = E(), [V, B] = E(), N = ke(Sd), [L, U] = E(), [z, Y] = E(!1), [te, ee] = E(0), be = X(), fe = X({}), se = X(null), le = X({}), oe = X({}), ne = X(!1), W = X(!1), me = X(!1), pe = (I !== void 0 ? I : L) < Gb, de = ke(ut), { activeId: Ee, getPlainValues: he } = de || {}, Ne = X(!1), je = ke(
|
|
14478
14478
|
Qt
|
|
14479
14479
|
), {
|
|
14480
14480
|
setFormIsSaving: ve = void 0,
|
|
@@ -14530,29 +14530,29 @@ function Kb(t, e) {
|
|
|
14530
14530
|
if (F) {
|
|
14531
14531
|
const _e = F;
|
|
14532
14532
|
_e.fields && Array.isArray(_e.fields) && Ie(
|
|
14533
|
-
((we = _e.fields) == null ? void 0 : we.map((
|
|
14534
|
-
...
|
|
14533
|
+
((we = _e.fields) == null ? void 0 : we.map((Le) => ({
|
|
14534
|
+
...Le,
|
|
14535
14535
|
type: _e.type || "error"
|
|
14536
14536
|
}))) || []
|
|
14537
14537
|
), J(F);
|
|
14538
14538
|
}
|
|
14539
14539
|
}, [F]);
|
|
14540
|
-
const Ae = (we, _e,
|
|
14541
|
-
Ce == null || Ce(!1), ve == null || ve(!1), a == null || a(we, _e,
|
|
14542
|
-
},
|
|
14540
|
+
const Ae = (we, _e, Le, We) => {
|
|
14541
|
+
Ce == null || Ce(!1), ve == null || ve(!1), a == null || a(we, _e, Le, We), He == null || He(we), Ne.current && (O == null || O());
|
|
14542
|
+
}, Pe = (we) => {
|
|
14543
14543
|
ve == null || ve(!1), f == null || f(we);
|
|
14544
14544
|
}, De = S(() => r || be.current, [r]), qe = r || be.current;
|
|
14545
14545
|
function _t() {
|
|
14546
14546
|
return V;
|
|
14547
14547
|
}
|
|
14548
14548
|
function At() {
|
|
14549
|
-
const we = at(), _e = _t(),
|
|
14549
|
+
const we = at(), _e = _t(), Le = {};
|
|
14550
14550
|
return Object.keys(we).forEach((We) => {
|
|
14551
14551
|
const Ze = we[We];
|
|
14552
|
-
_e[We] && _e[We].type === "many2one" && Ze && Array.isArray(Ze) && Ze.length === 2 ?
|
|
14552
|
+
_e[We] && _e[We].type === "many2one" && Ze && Array.isArray(Ze) && Ze.length === 2 ? Le[We] = Ze[0] : _e[We] && (_e[We].type === "one2many" || _e[We].type === "many2many") && Ze && Ze.items ? Le[We] = Ze.items.filter((Ot) => Ot.operation !== "pendingRemove").map((Ot) => Ot.id) : Le[We] = Ze;
|
|
14553
14553
|
}), {
|
|
14554
14554
|
...Gt(),
|
|
14555
|
-
...
|
|
14555
|
+
...Le
|
|
14556
14556
|
};
|
|
14557
14557
|
}
|
|
14558
14558
|
function vt() {
|
|
@@ -14669,26 +14669,26 @@ function Kb(t, e) {
|
|
|
14669
14669
|
let we;
|
|
14670
14670
|
try {
|
|
14671
14671
|
h ? we = { arch: h.arch, fields: h.fields } : we = await mt();
|
|
14672
|
-
const { fields: _e, arch:
|
|
14673
|
-
B(_e), Q(
|
|
14672
|
+
const { fields: _e, arch: Le } = we;
|
|
14673
|
+
B(_e), Q(Le), await Xe({
|
|
14674
14674
|
fields: _e,
|
|
14675
|
-
arch:
|
|
14675
|
+
arch: Le
|
|
14676
14676
|
});
|
|
14677
14677
|
} catch (_e) {
|
|
14678
14678
|
R(_e), Be == null || Be(!1);
|
|
14679
14679
|
}
|
|
14680
14680
|
}, Xe = async (we) => {
|
|
14681
14681
|
ee((Ot) => Ot + 1);
|
|
14682
|
-
let _e,
|
|
14683
|
-
Be == null || Be(!0), R(void 0), Se(), we != null && we.fields ? (
|
|
14684
|
-
fields:
|
|
14682
|
+
let _e, Le, We, Ze;
|
|
14683
|
+
Be == null || Be(!0), R(void 0), Se(), we != null && we.fields ? (Le = we.fields, We = we.arch) : (Le = V, We = j), g && (we == null ? void 0 : we.forceRefresh) !== !0 ? _e = g : { values: _e, defaultGetCalled: Ze } = await sn({
|
|
14684
|
+
fields: Le,
|
|
14685
14685
|
arch: We
|
|
14686
|
-
}), C && (_e = { ...Hl(C), ..._e }), fe.current = Hn(_e,
|
|
14686
|
+
}), C && (_e = { ...Hl(C), ..._e }), fe.current = Hn(_e, Le), se.current === null && (se.current = Hn(_e, Le)), St({
|
|
14687
14687
|
values: _e,
|
|
14688
|
-
fields:
|
|
14688
|
+
fields: Le,
|
|
14689
14689
|
reset: !0,
|
|
14690
14690
|
isDefaultGet: Ze
|
|
14691
|
-
}), nn({ fields:
|
|
14691
|
+
}), nn({ fields: Le, arch: We, values: _e }), Be == null || Be(!1), Ce == null || Ce(!1), Ze && Y(!0);
|
|
14692
14692
|
}, ft = async () => new Promise(async (we) => {
|
|
14693
14693
|
Rt() ? _r({
|
|
14694
14694
|
t: D,
|
|
@@ -14717,10 +14717,10 @@ function Kb(t, e) {
|
|
|
14717
14717
|
({
|
|
14718
14718
|
values: we,
|
|
14719
14719
|
fields: _e,
|
|
14720
|
-
reset:
|
|
14720
|
+
reset: Le,
|
|
14721
14721
|
isDefaultGet: We = !1
|
|
14722
14722
|
}) => {
|
|
14723
|
-
const Ot = { ...
|
|
14723
|
+
const Ot = { ...Le ? {} : $.getFieldsValue(!0), ...we }, Xo = Hn(Ot, _e), Qd = Object.keys(_e).map((Zo) => ({
|
|
14724
14724
|
name: Zo,
|
|
14725
14725
|
touched: !1,
|
|
14726
14726
|
value: Xo[Zo] !== void 0 ? Xo[Zo] : void 0
|
|
@@ -14732,20 +14732,20 @@ function Kb(t, e) {
|
|
|
14732
14732
|
fields: we,
|
|
14733
14733
|
arch: _e
|
|
14734
14734
|
}) => {
|
|
14735
|
-
let
|
|
14735
|
+
let Le = {}, We = !1;
|
|
14736
14736
|
if (De()) {
|
|
14737
14737
|
const Ze = A || Bn({
|
|
14738
14738
|
arch: _e,
|
|
14739
14739
|
fields: we,
|
|
14740
14740
|
values: {}
|
|
14741
14741
|
});
|
|
14742
|
-
if (
|
|
14742
|
+
if (Le = (await G.getHandler().readObjects({
|
|
14743
14743
|
model: n,
|
|
14744
14744
|
ids: [De()],
|
|
14745
14745
|
fields: Wb(we, Ze == null ? void 0 : Ze.contextForFields),
|
|
14746
14746
|
context: b
|
|
14747
14747
|
}))[0], v)
|
|
14748
|
-
return { values:
|
|
14748
|
+
return { values: Le, defaultGetCalled: We };
|
|
14749
14749
|
const Ot = await G.getHandler().search({
|
|
14750
14750
|
params: [
|
|
14751
14751
|
["res_model", "=", n],
|
|
@@ -14759,13 +14759,13 @@ function Kb(t, e) {
|
|
|
14759
14759
|
} else {
|
|
14760
14760
|
Ge == null || Ge([]);
|
|
14761
14761
|
const Ze = await Fn(we);
|
|
14762
|
-
oe.current = Ze,
|
|
14762
|
+
oe.current = Ze, Le = Ze, Le.id && (be.current = Le.id), We = !0;
|
|
14763
14763
|
}
|
|
14764
|
-
return { values:
|
|
14764
|
+
return { values: Le, defaultGetCalled: We };
|
|
14765
14765
|
}, xn = async (we) => {
|
|
14766
14766
|
const { callOnSubmitSucceed: _e = !0 } = we || {};
|
|
14767
14767
|
if (De()) {
|
|
14768
|
-
const
|
|
14768
|
+
const Le = lo({
|
|
14769
14769
|
source: fe.current,
|
|
14770
14770
|
target: Qe(V),
|
|
14771
14771
|
fields: V
|
|
@@ -14773,7 +14773,7 @@ function Kb(t, e) {
|
|
|
14773
14773
|
await G.getHandler().update({
|
|
14774
14774
|
model: n,
|
|
14775
14775
|
id: De(),
|
|
14776
|
-
values: { ...
|
|
14776
|
+
values: { ...Le, ...T },
|
|
14777
14777
|
fields: V,
|
|
14778
14778
|
context: {
|
|
14779
14779
|
...b,
|
|
@@ -14781,16 +14781,16 @@ function Kb(t, e) {
|
|
|
14781
14781
|
}
|
|
14782
14782
|
}), fe.current = Qe(V);
|
|
14783
14783
|
} else {
|
|
14784
|
-
const
|
|
14784
|
+
const Le = Qe(V), We = await G.getHandler().create({
|
|
14785
14785
|
model: n,
|
|
14786
|
-
values: { ...
|
|
14786
|
+
values: { ...Le, ...T },
|
|
14787
14787
|
fields: V,
|
|
14788
14788
|
context: {
|
|
14789
14789
|
...b,
|
|
14790
14790
|
...A == null ? void 0 : A.context
|
|
14791
14791
|
}
|
|
14792
14792
|
});
|
|
14793
|
-
be.current = We, fe.current =
|
|
14793
|
+
be.current = We, fe.current = Le;
|
|
14794
14794
|
}
|
|
14795
14795
|
y && await y([De()]), !v && _e && (Ae == null || Ae(De(), at(), xt()));
|
|
14796
14796
|
}, Zn = async (we) => {
|
|
@@ -14798,8 +14798,8 @@ function Kb(t, e) {
|
|
|
14798
14798
|
!v && _e && (Ae == null || Ae(De(), at(), xt()));
|
|
14799
14799
|
}, Xt = async (we) => {
|
|
14800
14800
|
let _e = !1;
|
|
14801
|
-
const { callOnSubmitSucceed:
|
|
14802
|
-
if (W.current = !0, R(void 0), Se(), me.current && !Rt() && De() &&
|
|
14801
|
+
const { callOnSubmitSucceed: Le = !0 } = we || {};
|
|
14802
|
+
if (W.current = !0, R(void 0), Se(), me.current && !Rt() && De() && Le) {
|
|
14803
14803
|
W.current = !1, Ce == null || Ce(!1), Ae == null || Ae(
|
|
14804
14804
|
De(),
|
|
14805
14805
|
at(),
|
|
@@ -14813,7 +14813,7 @@ function Kb(t, e) {
|
|
|
14813
14813
|
reset: !0
|
|
14814
14814
|
})), { succeed: !0, id: We };
|
|
14815
14815
|
}
|
|
14816
|
-
if (!Rt() && De() &&
|
|
14816
|
+
if (!Rt() && De() && Le) {
|
|
14817
14817
|
const We = Qe(V), Ze = lo({
|
|
14818
14818
|
source: se.current || fe.current,
|
|
14819
14819
|
target: We,
|
|
@@ -14839,7 +14839,7 @@ function Kb(t, e) {
|
|
|
14839
14839
|
duration: 3
|
|
14840
14840
|
});
|
|
14841
14841
|
} catch (We) {
|
|
14842
|
-
W.current = !1, M(!1), ve == null || ve(!1),
|
|
14842
|
+
W.current = !1, M(!1), ve == null || ve(!1), Pe == null || Pe(We), R(We);
|
|
14843
14843
|
} finally {
|
|
14844
14844
|
W.current = !1, ve == null || ve(!1), M(!1);
|
|
14845
14845
|
}
|
|
@@ -14848,7 +14848,7 @@ function Kb(t, e) {
|
|
|
14848
14848
|
({
|
|
14849
14849
|
fields: we,
|
|
14850
14850
|
arch: _e,
|
|
14851
|
-
values:
|
|
14851
|
+
values: Le,
|
|
14852
14852
|
operationInProgress: We = !1
|
|
14853
14853
|
}) => {
|
|
14854
14854
|
const Ze = new il(we);
|
|
@@ -14856,7 +14856,7 @@ function Kb(t, e) {
|
|
|
14856
14856
|
readOnly: u || We,
|
|
14857
14857
|
values: pp(
|
|
14858
14858
|
{
|
|
14859
|
-
...
|
|
14859
|
+
...Le,
|
|
14860
14860
|
...Gt()
|
|
14861
14861
|
},
|
|
14862
14862
|
we
|
|
@@ -14868,14 +14868,14 @@ function Kb(t, e) {
|
|
|
14868
14868
|
({
|
|
14869
14869
|
fields: we,
|
|
14870
14870
|
arch: _e,
|
|
14871
|
-
values:
|
|
14871
|
+
values: Le,
|
|
14872
14872
|
operationInProgress: We = !1
|
|
14873
14873
|
}) => {
|
|
14874
14874
|
var Ot;
|
|
14875
14875
|
const Ze = Bn({
|
|
14876
14876
|
arch: _e,
|
|
14877
14877
|
fields: we,
|
|
14878
|
-
values:
|
|
14878
|
+
values: Le,
|
|
14879
14879
|
operationInProgress: We
|
|
14880
14880
|
});
|
|
14881
14881
|
k(Ze), Ze.string && Ze.string !== Fe && (Ve == null || Ve(Ze.string)), N && Ze.string && ((Ot = N.setTitle) == null || Ot.call(N, Ze.string));
|
|
@@ -14890,9 +14890,9 @@ function Kb(t, e) {
|
|
|
14890
14890
|
source: le.current,
|
|
14891
14891
|
target: Qe(V),
|
|
14892
14892
|
fields: V
|
|
14893
|
-
}),
|
|
14894
|
-
if (
|
|
14895
|
-
changedFields:
|
|
14893
|
+
}), Le = Object.keys(_e);
|
|
14894
|
+
if (Le.length !== 0 && !(wm({
|
|
14895
|
+
changedFields: Le,
|
|
14896
14896
|
formOoui: A,
|
|
14897
14897
|
types: [
|
|
14898
14898
|
"text",
|
|
@@ -14909,13 +14909,13 @@ function Kb(t, e) {
|
|
|
14909
14909
|
const We = Hn($.getFieldsValue(!0), V);
|
|
14910
14910
|
le.current = We, l == null || l(We), Ce == null || Ce(!0), Object.keys(We).forEach((Ze) => {
|
|
14911
14911
|
ce(Ze);
|
|
14912
|
-
}), gt(
|
|
14912
|
+
}), gt(Le);
|
|
14913
14913
|
}
|
|
14914
14914
|
}, rt = xl(Fr, 100), gt = async (we) => {
|
|
14915
14915
|
try {
|
|
14916
14916
|
for (let _e = 0; _e < we.length; _e += 1) {
|
|
14917
|
-
const
|
|
14918
|
-
await Bt(
|
|
14917
|
+
const Le = we[_e];
|
|
14918
|
+
await Bt(Le);
|
|
14919
14919
|
}
|
|
14920
14920
|
} catch (_e) {
|
|
14921
14921
|
J(_e);
|
|
@@ -14930,7 +14930,7 @@ function Kb(t, e) {
|
|
|
14930
14930
|
});
|
|
14931
14931
|
return;
|
|
14932
14932
|
}
|
|
14933
|
-
const
|
|
14933
|
+
const Le = xm({
|
|
14934
14934
|
values: {
|
|
14935
14935
|
...Qe(V),
|
|
14936
14936
|
context: {
|
|
@@ -14944,7 +14944,7 @@ function Kb(t, e) {
|
|
|
14944
14944
|
model: n,
|
|
14945
14945
|
action: _e.method,
|
|
14946
14946
|
ids: De() ? [De()] : [],
|
|
14947
|
-
payload:
|
|
14947
|
+
payload: Le,
|
|
14948
14948
|
fields: V
|
|
14949
14949
|
});
|
|
14950
14950
|
if (We.value) {
|
|
@@ -14998,7 +14998,7 @@ function Kb(t, e) {
|
|
|
14998
14998
|
action: we,
|
|
14999
14999
|
context: _e
|
|
15000
15000
|
}) {
|
|
15001
|
-
const
|
|
15001
|
+
const Le = await G.getHandler().execute({
|
|
15002
15002
|
model: n,
|
|
15003
15003
|
action: we,
|
|
15004
15004
|
payload: [De()],
|
|
@@ -15008,20 +15008,20 @@ function Kb(t, e) {
|
|
|
15008
15008
|
..._e
|
|
15009
15009
|
}
|
|
15010
15010
|
});
|
|
15011
|
-
if (typeof
|
|
15011
|
+
if (typeof Le == "object" && Le !== null && Object.keys(Le).length === 0 && v)
|
|
15012
15012
|
Ae == null || Ae(De(), at(), xt());
|
|
15013
|
-
else if (
|
|
15013
|
+
else if (Le.type && Le.type === Nm)
|
|
15014
15014
|
Ae == null || Ae(De(), at(), xt());
|
|
15015
|
-
else if (
|
|
15016
|
-
ae == null || ae(
|
|
15017
|
-
else if (
|
|
15015
|
+
else if (Le.type && Le.type === Lm)
|
|
15016
|
+
ae == null || ae(Le);
|
|
15017
|
+
else if (Le.type) {
|
|
15018
15018
|
let We = {};
|
|
15019
|
-
|
|
15020
|
-
context:
|
|
15019
|
+
Le.context && (We = Mn({
|
|
15020
|
+
context: Le.context,
|
|
15021
15021
|
fields: V,
|
|
15022
15022
|
values: at()
|
|
15023
15023
|
})), await Sn({
|
|
15024
|
-
actionData:
|
|
15024
|
+
actionData: Le,
|
|
15025
15025
|
context: { ..._e, ...We }
|
|
15026
15026
|
});
|
|
15027
15027
|
} else
|
|
@@ -15039,18 +15039,18 @@ function Kb(t, e) {
|
|
|
15039
15039
|
action: we,
|
|
15040
15040
|
context: _e
|
|
15041
15041
|
}) {
|
|
15042
|
-
const
|
|
15043
|
-
model:
|
|
15042
|
+
const Le = (await G.getHandler().readObjects({
|
|
15043
|
+
model: Pm,
|
|
15044
15044
|
ids: [parseInt(we)],
|
|
15045
15045
|
context: b
|
|
15046
15046
|
}))[0];
|
|
15047
|
-
await Sn({ actionData:
|
|
15047
|
+
await Sn({ actionData: Le, context: _e });
|
|
15048
15048
|
}
|
|
15049
15049
|
async function Sn({
|
|
15050
15050
|
actionData: we,
|
|
15051
15051
|
context: _e = {}
|
|
15052
15052
|
}) {
|
|
15053
|
-
const { closeParent:
|
|
15053
|
+
const { closeParent: Le } = await (Ue == null ? void 0 : Ue({
|
|
15054
15054
|
actionData: we,
|
|
15055
15055
|
fields: V,
|
|
15056
15056
|
values: at(),
|
|
@@ -15063,7 +15063,7 @@ function Kb(t, e) {
|
|
|
15063
15063
|
Ne.current = !0, await Xe({ forceRefresh: !0 });
|
|
15064
15064
|
}
|
|
15065
15065
|
})) || {};
|
|
15066
|
-
!w &&
|
|
15066
|
+
!w && Le && (Ae == null || Ae(De(), at(), xt()));
|
|
15067
15067
|
}
|
|
15068
15068
|
function tr() {
|
|
15069
15069
|
Fr({ elementHasLostFocus: !0 });
|
|
@@ -15104,7 +15104,7 @@ function Kb(t, e) {
|
|
|
15104
15104
|
async function ao({
|
|
15105
15105
|
type: we,
|
|
15106
15106
|
action: _e,
|
|
15107
|
-
context:
|
|
15107
|
+
context: Le
|
|
15108
15108
|
}) {
|
|
15109
15109
|
if (we === "cancel") {
|
|
15110
15110
|
bt == null || bt();
|
|
@@ -15121,7 +15121,7 @@ function Kb(t, e) {
|
|
|
15121
15121
|
let We = !1;
|
|
15122
15122
|
try {
|
|
15123
15123
|
!u && (Rt() || De() === void 0) && (We = !0, nr(!0), p === "2many" ? (await xn({ callOnSubmitSucceed: !1 }), me.current = !0) : await Xt({ callOnSubmitSucceed: !1 }));
|
|
15124
|
-
const Ze = me.current ? tn() : {}, Ot = { ...
|
|
15124
|
+
const Ze = me.current ? tn() : {}, Ot = { ...Le, ...Ze };
|
|
15125
15125
|
we === "object" ? await It({ action: _e, context: Ot }) : we === "workflow" ? await pn({ action: _e }) : we === "action" && await er({ action: _e, context: Ot }), We && nr(!1);
|
|
15126
15126
|
} catch (Ze) {
|
|
15127
15127
|
We && nr(!1), J(Ze);
|
|
@@ -15180,7 +15180,7 @@ function Kb(t, e) {
|
|
|
15180
15180
|
Ke,
|
|
15181
15181
|
{
|
|
15182
15182
|
icon: /* @__PURE__ */ s($r, {}),
|
|
15183
|
-
disabled:
|
|
15183
|
+
disabled: P,
|
|
15184
15184
|
onClick: mn,
|
|
15185
15185
|
children: D("openInNewTab")
|
|
15186
15186
|
}
|
|
@@ -15190,7 +15190,7 @@ function Kb(t, e) {
|
|
|
15190
15190
|
Ke,
|
|
15191
15191
|
{
|
|
15192
15192
|
icon: /* @__PURE__ */ s(kn, {}),
|
|
15193
|
-
disabled:
|
|
15193
|
+
disabled: P,
|
|
15194
15194
|
onClick: async () => {
|
|
15195
15195
|
await ft();
|
|
15196
15196
|
},
|
|
@@ -15200,8 +15200,8 @@ function Kb(t, e) {
|
|
|
15200
15200
|
/* @__PURE__ */ s(
|
|
15201
15201
|
Ke,
|
|
15202
15202
|
{
|
|
15203
|
-
disabled:
|
|
15204
|
-
loading:
|
|
15203
|
+
disabled: P || u,
|
|
15204
|
+
loading: P,
|
|
15205
15205
|
icon: /* @__PURE__ */ s($n, {}),
|
|
15206
15206
|
onClick: async () => {
|
|
15207
15207
|
await Xt();
|
|
@@ -15387,9 +15387,9 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15387
15387
|
}
|
|
15388
15388
|
});
|
|
15389
15389
|
Je(() => {
|
|
15390
|
-
a && !w &&
|
|
15390
|
+
a && !w && P();
|
|
15391
15391
|
}, [d, a]);
|
|
15392
|
-
async function
|
|
15392
|
+
async function P() {
|
|
15393
15393
|
const A = await G.getHandler().isShortcutFavorite({
|
|
15394
15394
|
action_id: v,
|
|
15395
15395
|
action_type: C,
|
|
@@ -15508,7 +15508,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15508
15508
|
}, [f, T, _]), D = K(
|
|
15509
15509
|
() => w ? yi : yd,
|
|
15510
15510
|
[w]
|
|
15511
|
-
),
|
|
15511
|
+
), P = S(() => {
|
|
15512
15512
|
l(!0);
|
|
15513
15513
|
}, []), M = S(() => {
|
|
15514
15514
|
l(!1), T();
|
|
@@ -15554,7 +15554,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15554
15554
|
{
|
|
15555
15555
|
disabled: m || !d,
|
|
15556
15556
|
icon: /* @__PURE__ */ s($o, {}),
|
|
15557
|
-
onClick:
|
|
15557
|
+
onClick: P,
|
|
15558
15558
|
children: y("new")
|
|
15559
15559
|
}
|
|
15560
15560
|
),
|
|
@@ -15615,7 +15615,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15615
15615
|
domain: I,
|
|
15616
15616
|
getFields: O,
|
|
15617
15617
|
getContext: D,
|
|
15618
|
-
elementHasLostFocus:
|
|
15618
|
+
elementHasLostFocus: P,
|
|
15619
15619
|
getAllHierarchyValues: M
|
|
15620
15620
|
} = T || {}, F = X([]), [R, A] = E([]), { showErrorNotification: k } = Et(), { permissions: $ } = Br({
|
|
15621
15621
|
model: i,
|
|
@@ -15627,14 +15627,14 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15627
15627
|
}, [e]), ye(() => {
|
|
15628
15628
|
B && N.length === 0 ? te(B) : B && N.length > 0 ? w(N) : !B && !N && w(_.current || "");
|
|
15629
15629
|
}, [e]);
|
|
15630
|
-
const
|
|
15631
|
-
n == null || n(W),
|
|
15630
|
+
const L = (W) => {
|
|
15631
|
+
n == null || n(W), P == null || P();
|
|
15632
15632
|
}, U = (W) => {
|
|
15633
|
-
_.current = W.target.value,
|
|
15633
|
+
_.current = W.target.value, L([void 0, ""]);
|
|
15634
15634
|
}, z = async () => {
|
|
15635
15635
|
if (!h && x !== N) {
|
|
15636
15636
|
if (await new Promise((W) => setTimeout(W, 100)), C.current) {
|
|
15637
|
-
|
|
15637
|
+
L([void 0, ""]);
|
|
15638
15638
|
return;
|
|
15639
15639
|
}
|
|
15640
15640
|
y(!0);
|
|
@@ -15647,7 +15647,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15647
15647
|
payload: _.current,
|
|
15648
15648
|
context: { ...D == null ? void 0 : D(), ...d }
|
|
15649
15649
|
});
|
|
15650
|
-
W.length === 1 ? (_.current = void 0,
|
|
15650
|
+
W.length === 1 ? (_.current = void 0, L(W[0])) : Y(_.current);
|
|
15651
15651
|
}
|
|
15652
15652
|
} catch (W) {
|
|
15653
15653
|
k(W);
|
|
@@ -15676,7 +15676,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15676
15676
|
model: i,
|
|
15677
15677
|
context: { ...D == null ? void 0 : D(), ...d }
|
|
15678
15678
|
});
|
|
15679
|
-
|
|
15679
|
+
L([W, me[0][1]]);
|
|
15680
15680
|
} catch (me) {
|
|
15681
15681
|
k(me);
|
|
15682
15682
|
} finally {
|
|
@@ -15686,7 +15686,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15686
15686
|
async function ee() {
|
|
15687
15687
|
l && (F.current = await G.getHandler().evalDomain({
|
|
15688
15688
|
domain: l,
|
|
15689
|
-
values:
|
|
15689
|
+
values: Ln({
|
|
15690
15690
|
fields: O(),
|
|
15691
15691
|
values: M()
|
|
15692
15692
|
}),
|
|
@@ -15700,7 +15700,7 @@ const Rr = zt(Kb), Jb = (t) => {
|
|
|
15700
15700
|
)), A(F.current);
|
|
15701
15701
|
}
|
|
15702
15702
|
async function be(W) {
|
|
15703
|
-
W.keyCode === 13 ? (W.preventDefault(), W.stopPropagation(), await z()) : W.code === "Backspace" && B !== void 0 && (W.preventDefault(), W.stopPropagation(),
|
|
15703
|
+
W.keyCode === 13 ? (W.preventDefault(), W.stopPropagation(), await z()) : W.code === "Backspace" && B !== void 0 && (W.preventDefault(), W.stopPropagation(), L([void 0, ""]));
|
|
15704
15704
|
}
|
|
15705
15705
|
const fe = o && !a ? tw : Mt, se = Tt(
|
|
15706
15706
|
Ct.FEATURE_MANY2ONE_DISABLE_FOLDER
|
|
@@ -16077,14 +16077,14 @@ function sw(t) {
|
|
|
16077
16077
|
currentId: _,
|
|
16078
16078
|
onOpenInListView: T,
|
|
16079
16079
|
canOpenInListView: I
|
|
16080
|
-
} = t, { token: O } = ow(), { t: D } = Me(), { activeModel:
|
|
16080
|
+
} = t, { token: O } = ow(), { t: D } = Me(), { activeModel: P } = Qr(), { permissions: M } = Br({
|
|
16081
16081
|
model: o,
|
|
16082
16082
|
permissions: ["create", "write", "unlink"],
|
|
16083
16083
|
enabled: !0
|
|
16084
16084
|
}), { permissions: F } = Br({
|
|
16085
|
-
model:
|
|
16085
|
+
model: P,
|
|
16086
16086
|
permissions: ["write"],
|
|
16087
|
-
enabled: !!
|
|
16087
|
+
enabled: !!P
|
|
16088
16088
|
}), R = (M == null ? void 0 : M.create) ?? !1, A = (M == null ? void 0 : M.write) ?? !1, k = (M == null ? void 0 : M.unlink) ?? !1, $ = (F == null ? void 0 : F.write) ?? !1, { duplicatingItem: j, duplicate: Q } = rw({
|
|
16089
16089
|
currentId: a === "form" ? _ : parseInt(g[0]),
|
|
16090
16090
|
currentModel: o,
|
|
@@ -16099,7 +16099,7 @@ function sw(t) {
|
|
|
16099
16099
|
formRef: x,
|
|
16100
16100
|
onRefreshParentValues: w
|
|
16101
16101
|
}), {
|
|
16102
|
-
actionButtonProps:
|
|
16102
|
+
actionButtonProps: L,
|
|
16103
16103
|
printButtonProps: U
|
|
16104
16104
|
} = gc({
|
|
16105
16105
|
toolbar: v,
|
|
@@ -16150,7 +16150,7 @@ function sw(t) {
|
|
|
16150
16150
|
/* @__PURE__ */ s(
|
|
16151
16151
|
Nt,
|
|
16152
16152
|
{
|
|
16153
|
-
icon: /* @__PURE__ */ s(
|
|
16153
|
+
icon: /* @__PURE__ */ s(Lo, {}),
|
|
16154
16154
|
tooltip: D("showLogs"),
|
|
16155
16155
|
disabled: !(a === "form" && _ !== void 0 && Wt(_) || a === "tree" && g.length === 1 && (g == null ? void 0 : g[0]) !== void 0 && Wt(an(g[0]))),
|
|
16156
16156
|
onClick: () => ei(
|
|
@@ -16217,7 +16217,7 @@ function sw(t) {
|
|
|
16217
16217
|
_n,
|
|
16218
16218
|
{
|
|
16219
16219
|
icon: /* @__PURE__ */ s(Mo, {}),
|
|
16220
|
-
...a === "form" ? V :
|
|
16220
|
+
...a === "form" ? V : L
|
|
16221
16221
|
}
|
|
16222
16222
|
)
|
|
16223
16223
|
] }),
|
|
@@ -16326,7 +16326,7 @@ const Md = nt(
|
|
|
16326
16326
|
Nt,
|
|
16327
16327
|
{
|
|
16328
16328
|
tooltip: o(t ? "unlink" : "delete"),
|
|
16329
|
-
icon: t ? /* @__PURE__ */ s(xu, {}) : /* @__PURE__ */ s(
|
|
16329
|
+
icon: t ? /* @__PURE__ */ s(xu, {}) : /* @__PURE__ */ s(Po, {}),
|
|
16330
16330
|
onClick: n,
|
|
16331
16331
|
danger: !t,
|
|
16332
16332
|
type: t ? "default" : "primary",
|
|
@@ -16359,7 +16359,7 @@ const lw = (t) => {
|
|
|
16359
16359
|
domain: g,
|
|
16360
16360
|
fetchValues: h,
|
|
16361
16361
|
getAllHierarchyValues: y
|
|
16362
|
-
} = f || {}, { t: v } = Me(), [b, C] = E(!1), [x, w] = E(!1), [_, T] = E(), [I, O] = E(!1), [D,
|
|
16362
|
+
} = f || {}, { t: v } = Me(), [b, C] = E(!1), [x, w] = E(!1), [_, T] = E(), [I, O] = E(!1), [D, P] = E(!1), [M, F] = E(), [R, A] = E([]), [k, $] = E(!1), [j, Q] = E([]), [V, B] = E(), N = X(), [L, U] = E(void 0), z = X(), {
|
|
16363
16363
|
readOnly: Y,
|
|
16364
16364
|
relation: te,
|
|
16365
16365
|
context: ee,
|
|
@@ -16419,7 +16419,7 @@ const lw = (t) => {
|
|
|
16419
16419
|
let J = [];
|
|
16420
16420
|
be && (J = await G.getHandler().evalDomain({
|
|
16421
16421
|
domain: be,
|
|
16422
|
-
values:
|
|
16422
|
+
values: Ln({
|
|
16423
16423
|
fields: m(),
|
|
16424
16424
|
values: y()
|
|
16425
16425
|
}),
|
|
@@ -16501,8 +16501,8 @@ const lw = (t) => {
|
|
|
16501
16501
|
}) : ($(!0), F({ defaultValues: Te }), O(!0));
|
|
16502
16502
|
}, He = async () => {
|
|
16503
16503
|
a === "form" ? je(() => {
|
|
16504
|
-
|
|
16505
|
-
}) :
|
|
16504
|
+
P(!0);
|
|
16505
|
+
}) : P(!0);
|
|
16506
16506
|
}, Be = async () => {
|
|
16507
16507
|
w(!0), C(!1), T(void 0);
|
|
16508
16508
|
try {
|
|
@@ -16618,12 +16618,12 @@ const lw = (t) => {
|
|
|
16618
16618
|
submitMode: "values",
|
|
16619
16619
|
onFieldsChange: (ce) => {
|
|
16620
16620
|
var Ae;
|
|
16621
|
-
const Se = (Ae = le[c]) == null ? void 0 : Ae.id, Ie = i.map((
|
|
16622
|
-
...
|
|
16623
|
-
operation:
|
|
16621
|
+
const Se = (Ae = le[c]) == null ? void 0 : Ae.id, Ie = i.map((Pe) => Pe.id === Se ? {
|
|
16622
|
+
...Pe,
|
|
16623
|
+
operation: Pe.operation === "original" ? "pendingUpdate" : Pe.operation,
|
|
16624
16624
|
values: { ...ce, id: Se },
|
|
16625
16625
|
treeValues: { ...ce, id: Se }
|
|
16626
|
-
} :
|
|
16626
|
+
} : Pe);
|
|
16627
16627
|
W(Ie), C(!0);
|
|
16628
16628
|
},
|
|
16629
16629
|
readOnly: Y
|
|
@@ -16653,7 +16653,7 @@ const lw = (t) => {
|
|
|
16653
16653
|
sorter: V,
|
|
16654
16654
|
onChangeSort: B,
|
|
16655
16655
|
context: { ...p == null ? void 0 : p(), ...ee },
|
|
16656
|
-
colorsForResults:
|
|
16656
|
+
colorsForResults: L,
|
|
16657
16657
|
readonly: Y,
|
|
16658
16658
|
scrollY: r == null ? void 0 : r.height
|
|
16659
16659
|
}
|
|
@@ -16748,10 +16748,10 @@ const lw = (t) => {
|
|
|
16748
16748
|
context: { ...p == null ? void 0 : p(), ...ee },
|
|
16749
16749
|
visible: D,
|
|
16750
16750
|
onSelectValues: async (J) => {
|
|
16751
|
-
|
|
16751
|
+
P(!1), ze(J);
|
|
16752
16752
|
},
|
|
16753
16753
|
onCloseModal: () => {
|
|
16754
|
-
|
|
16754
|
+
P(!1);
|
|
16755
16755
|
}
|
|
16756
16756
|
}
|
|
16757
16757
|
)
|
|
@@ -16775,7 +16775,7 @@ const lw = (t) => {
|
|
|
16775
16775
|
let l = [];
|
|
16776
16776
|
e && (l = await G.getHandler().evalDomain({
|
|
16777
16777
|
domain: e,
|
|
16778
|
-
values:
|
|
16778
|
+
values: Ln({
|
|
16779
16779
|
fields: o(),
|
|
16780
16780
|
values: d()
|
|
16781
16781
|
}),
|
|
@@ -16974,7 +16974,7 @@ const lw = (t) => {
|
|
|
16974
16974
|
}
|
|
16975
16975
|
);
|
|
16976
16976
|
xi.displayName = "One2manyForm";
|
|
16977
|
-
const
|
|
16977
|
+
const Pd = ({
|
|
16978
16978
|
isMany2many: t,
|
|
16979
16979
|
triggerChange: e,
|
|
16980
16980
|
items: n,
|
|
@@ -17066,7 +17066,7 @@ function dw({
|
|
|
17066
17066
|
o.id && r[i] > 0 && (n.push(o), r[i] -= 1);
|
|
17067
17067
|
}), n;
|
|
17068
17068
|
}
|
|
17069
|
-
const
|
|
17069
|
+
const Ld = ({
|
|
17070
17070
|
currentView: t,
|
|
17071
17071
|
inv_field: e,
|
|
17072
17072
|
activeId: n,
|
|
@@ -17109,19 +17109,19 @@ const Pd = ({
|
|
|
17109
17109
|
treeValues: { ...I, id: _ }
|
|
17110
17110
|
});
|
|
17111
17111
|
else if (_)
|
|
17112
|
-
D = o.map((
|
|
17112
|
+
D = o.map((P) => P.id === _ ? {
|
|
17113
17113
|
id: _,
|
|
17114
17114
|
operation: Wt(_) ? "pendingUpdate" : "pendingCreate",
|
|
17115
17115
|
values: { ...I, id: _ },
|
|
17116
17116
|
treeValues: { ...I, id: _ }
|
|
17117
|
-
} :
|
|
17117
|
+
} : P);
|
|
17118
17118
|
else {
|
|
17119
|
-
const
|
|
17119
|
+
const P = Xl(o);
|
|
17120
17120
|
D = o.concat({
|
|
17121
|
-
id:
|
|
17121
|
+
id: P,
|
|
17122
17122
|
operation: "pendingCreate",
|
|
17123
|
-
values: { ...I, id:
|
|
17124
|
-
treeValues: { ...I, id:
|
|
17123
|
+
values: { ...I, id: P },
|
|
17124
|
+
treeValues: { ...I, id: P }
|
|
17125
17125
|
});
|
|
17126
17126
|
}
|
|
17127
17127
|
i(D), setTimeout(() => {
|
|
@@ -17238,11 +17238,11 @@ const Pd = ({
|
|
|
17238
17238
|
}) => {
|
|
17239
17239
|
const C = X(null), x = l || C, w = Tt(
|
|
17240
17240
|
Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
|
|
17241
|
-
), _ = X(), T = X(t), [I, O] = E(0), [D,
|
|
17241
|
+
), _ = X(), T = X(t), [I, O] = E(0), [D, P] = E(), [M, F] = E(0), R = X([]), [A, k] = E([]), [$, j] = E(!1), Q = wt(() => t.length, [t]), {
|
|
17242
17242
|
columns: V,
|
|
17243
17243
|
strings: B,
|
|
17244
17244
|
colorsForResults: N,
|
|
17245
|
-
statusForResults:
|
|
17245
|
+
statusForResults: L,
|
|
17246
17246
|
onRowStyle: U,
|
|
17247
17247
|
statusComponent: z,
|
|
17248
17248
|
onRowStatus: Y,
|
|
@@ -17302,7 +17302,7 @@ const Pd = ({
|
|
|
17302
17302
|
endRow: J,
|
|
17303
17303
|
sortFields: re
|
|
17304
17304
|
});
|
|
17305
|
-
if (Z && (N.current = { ...N.current, ...Z }), ce && (
|
|
17305
|
+
if (Z && (N.current = { ...N.current, ...Z }), ce && (L.current || (L.current = {}), L.current = { ...L.current, ...ce }), Z || ce) {
|
|
17306
17306
|
const Ie = q.map((Ae) => ({
|
|
17307
17307
|
id: Ae.id,
|
|
17308
17308
|
colors: Z == null ? void 0 : Z[Ae.id],
|
|
@@ -17316,7 +17316,7 @@ const Pd = ({
|
|
|
17316
17316
|
[
|
|
17317
17317
|
N,
|
|
17318
17318
|
d,
|
|
17319
|
-
|
|
17319
|
+
L,
|
|
17320
17320
|
o,
|
|
17321
17321
|
W,
|
|
17322
17322
|
fe
|
|
@@ -17334,7 +17334,7 @@ const Pd = ({
|
|
|
17334
17334
|
endRow: t.length,
|
|
17335
17335
|
sortFields: ae
|
|
17336
17336
|
});
|
|
17337
|
-
if (Te && (N.current = { ...N.current, ...Te }), re && (
|
|
17337
|
+
if (Te && (N.current = { ...N.current, ...Te }), re && (L.current || (L.current = {}), L.current = { ...L.current, ...re }), Te || re) {
|
|
17338
17338
|
const Z = J.map((ce) => ({
|
|
17339
17339
|
id: ce.id,
|
|
17340
17340
|
colors: Te == null ? void 0 : Te[ce.id],
|
|
@@ -17352,7 +17352,7 @@ const Pd = ({
|
|
|
17352
17352
|
t,
|
|
17353
17353
|
d,
|
|
17354
17354
|
N,
|
|
17355
|
-
|
|
17355
|
+
L,
|
|
17356
17356
|
o,
|
|
17357
17357
|
W,
|
|
17358
17358
|
fe
|
|
@@ -17390,7 +17390,7 @@ const Pd = ({
|
|
|
17390
17390
|
var ae;
|
|
17391
17391
|
se(), v === "paginated" ? F((J) => J + 1) : (ae = x == null ? void 0 : x.current) == null || ae.refresh();
|
|
17392
17392
|
}, [se, v, x]), je = un(O), ve = un(
|
|
17393
|
-
|
|
17393
|
+
P
|
|
17394
17394
|
), Ce = un(ee), He = un(te), Be = un(Y), Ge = un(U), Fe = S(
|
|
17395
17395
|
(ae) => {
|
|
17396
17396
|
ae.selected ? c([...h, ae.id]) : c(
|
|
@@ -17399,7 +17399,7 @@ const Pd = ({
|
|
|
17399
17399
|
},
|
|
17400
17400
|
[h, c]
|
|
17401
17401
|
), Ve = K(() => h.length === 0 ? "unchecked" : h.length === oe.length ? "checked" : "indeterminate", [h, oe.length]), ze = un((ae) => {
|
|
17402
|
-
R.current = ae, O(0),
|
|
17402
|
+
R.current = ae, O(0), P(void 0), v === "paginated" && t.length > 0 && pe().then(k);
|
|
17403
17403
|
}), Re = un(pe);
|
|
17404
17404
|
Je(() => {
|
|
17405
17405
|
v === "paginated" && (t.length > 0 ? Re().then(k) : k([]));
|
|
@@ -17501,7 +17501,7 @@ const Pd = ({
|
|
|
17501
17501
|
activeId: w,
|
|
17502
17502
|
getContext: _,
|
|
17503
17503
|
fetchValues: T
|
|
17504
|
-
} = x || {}, I = X(), O = i.size > 1, D = ((ze = i.get("form")) == null ? void 0 : ze.fields) !== void 0,
|
|
17504
|
+
} = x || {}, I = X(), O = i.size > 1, D = ((ze = i.get("form")) == null ? void 0 : ze.fields) !== void 0, P = K(() => ({ ..._ == null ? void 0 : _(), ...v }), [_, v]), M = Nd({
|
|
17505
17505
|
widgetDomain: b,
|
|
17506
17506
|
fieldName: C
|
|
17507
17507
|
}), {
|
|
@@ -17515,7 +17515,7 @@ const Pd = ({
|
|
|
17515
17515
|
} = cw({
|
|
17516
17516
|
treeView: i.get("tree"),
|
|
17517
17517
|
relation: y,
|
|
17518
|
-
context:
|
|
17518
|
+
context: P,
|
|
17519
17519
|
allRowsIds: l.filter((xe) => xe.id !== void 0).map((xe) => xe.id),
|
|
17520
17520
|
gridRef: e
|
|
17521
17521
|
}), V = K(() => {
|
|
@@ -17531,7 +17531,7 @@ const Pd = ({
|
|
|
17531
17531
|
},
|
|
17532
17532
|
[r, i]
|
|
17533
17533
|
), {
|
|
17534
|
-
formHasChanges:
|
|
17534
|
+
formHasChanges: L,
|
|
17535
17535
|
onFormChanges: U,
|
|
17536
17536
|
showFormChangesDialogIfNeeded: z,
|
|
17537
17537
|
setFormHasChanges: Y
|
|
@@ -17540,7 +17540,7 @@ const Pd = ({
|
|
|
17540
17540
|
formView: i.get("form"),
|
|
17541
17541
|
treeView: i.get("tree"),
|
|
17542
17542
|
relation: y,
|
|
17543
|
-
context:
|
|
17543
|
+
context: P,
|
|
17544
17544
|
triggerChange: N
|
|
17545
17545
|
}), {
|
|
17546
17546
|
showFormModal: te,
|
|
@@ -17550,7 +17550,7 @@ const Pd = ({
|
|
|
17550
17550
|
onFormModalSubmitSucceed: se,
|
|
17551
17551
|
createItem: le,
|
|
17552
17552
|
openItemInFormModal: oe
|
|
17553
|
-
} =
|
|
17553
|
+
} = Ld({
|
|
17554
17554
|
activeId: w,
|
|
17555
17555
|
inv_field: o.inv_field,
|
|
17556
17556
|
showFormChangesDialogIfNeeded: z,
|
|
@@ -17559,7 +17559,7 @@ const Pd = ({
|
|
|
17559
17559
|
items: l,
|
|
17560
17560
|
setCurrentView: u,
|
|
17561
17561
|
setItemIndex: p,
|
|
17562
|
-
context:
|
|
17562
|
+
context: P,
|
|
17563
17563
|
relation: y,
|
|
17564
17564
|
formView: i.get("form"),
|
|
17565
17565
|
onAfterSubmit: () => {
|
|
@@ -17577,7 +17577,7 @@ const Pd = ({
|
|
|
17577
17577
|
triggerChange: N,
|
|
17578
17578
|
items: l,
|
|
17579
17579
|
views: i,
|
|
17580
|
-
context:
|
|
17580
|
+
context: P,
|
|
17581
17581
|
relation: y
|
|
17582
17582
|
}), pe = S(
|
|
17583
17583
|
async (xe) => {
|
|
@@ -17587,7 +17587,7 @@ const Pd = ({
|
|
|
17587
17587
|
}, 0);
|
|
17588
17588
|
},
|
|
17589
17589
|
[W]
|
|
17590
|
-
), { showRemoveConfirm: de } =
|
|
17590
|
+
), { showRemoveConfirm: de } = Pd({
|
|
17591
17591
|
isMany2many: B,
|
|
17592
17592
|
items: l,
|
|
17593
17593
|
triggerChange: N,
|
|
@@ -17640,7 +17640,7 @@ const Pd = ({
|
|
|
17640
17640
|
Fe && Be({
|
|
17641
17641
|
model: y,
|
|
17642
17642
|
domain: [["id", "in", Ge]],
|
|
17643
|
-
context:
|
|
17643
|
+
context: P,
|
|
17644
17644
|
views: [
|
|
17645
17645
|
[(xe = i.get("tree")) == null ? void 0 : xe.view_id, "tree"],
|
|
17646
17646
|
[(ge = i.get("form")) == null ? void 0 : ge.view_id, "form"]
|
|
@@ -17651,7 +17651,7 @@ const Pd = ({
|
|
|
17651
17651
|
action_id: -1,
|
|
17652
17652
|
action_type: "ir.actions.act_window"
|
|
17653
17653
|
});
|
|
17654
|
-
}, [Fe, Be, y, Ge,
|
|
17654
|
+
}, [Fe, Be, y, Ge, P, i, V]);
|
|
17655
17655
|
return /* @__PURE__ */ H(Oe, { children: [
|
|
17656
17656
|
/* @__PURE__ */ s(
|
|
17657
17657
|
Ci,
|
|
@@ -17662,7 +17662,7 @@ const Pd = ({
|
|
|
17662
17662
|
model: y,
|
|
17663
17663
|
readOnly: h || !1,
|
|
17664
17664
|
isMany2Many: B,
|
|
17665
|
-
formHasChanges:
|
|
17665
|
+
formHasChanges: L,
|
|
17666
17666
|
totalItems: l.length,
|
|
17667
17667
|
currentItemIndex: m,
|
|
17668
17668
|
onDelete: de,
|
|
@@ -17676,7 +17676,7 @@ const Pd = ({
|
|
|
17676
17676
|
showToggleButton: O,
|
|
17677
17677
|
toolbar: (Ue = i.get(f)) == null ? void 0 : Ue.toolbar,
|
|
17678
17678
|
treeView: i.get("tree"),
|
|
17679
|
-
context: { ..._ == null ? void 0 : _(), ...
|
|
17679
|
+
context: { ..._ == null ? void 0 : _(), ...P },
|
|
17680
17680
|
formRef: I,
|
|
17681
17681
|
onRefreshParentValues: () => {
|
|
17682
17682
|
var xe;
|
|
@@ -17696,7 +17696,7 @@ const Pd = ({
|
|
|
17696
17696
|
onFetchRecords: R,
|
|
17697
17697
|
ooui: F,
|
|
17698
17698
|
treeView: i.get("tree"),
|
|
17699
|
-
context:
|
|
17699
|
+
context: P,
|
|
17700
17700
|
onRowDoubleClick: he,
|
|
17701
17701
|
showPointerCursorInRows: ve,
|
|
17702
17702
|
onRowSelectionChange: k,
|
|
@@ -17720,7 +17720,7 @@ const Pd = ({
|
|
|
17720
17720
|
ref: I,
|
|
17721
17721
|
items: l,
|
|
17722
17722
|
formView: i.get("form"),
|
|
17723
|
-
context:
|
|
17723
|
+
context: P,
|
|
17724
17724
|
relation: y,
|
|
17725
17725
|
readOnly: h || !1,
|
|
17726
17726
|
onChange: U
|
|
@@ -17737,7 +17737,7 @@ const Pd = ({
|
|
|
17737
17737
|
defaultValues: ee == null ? void 0 : ee.defaultValues,
|
|
17738
17738
|
visible: te,
|
|
17739
17739
|
onSubmitSucceed: se,
|
|
17740
|
-
parentContext:
|
|
17740
|
+
parentContext: P,
|
|
17741
17741
|
onCancel: fe,
|
|
17742
17742
|
readOnly: h,
|
|
17743
17743
|
mustClearAfterSave: be,
|
|
@@ -17752,7 +17752,7 @@ const Pd = ({
|
|
|
17752
17752
|
{
|
|
17753
17753
|
domain: M,
|
|
17754
17754
|
model: y,
|
|
17755
|
-
context:
|
|
17755
|
+
context: P,
|
|
17756
17756
|
visible: ne,
|
|
17757
17757
|
onSelectValues: pe,
|
|
17758
17758
|
onCloseModal: me
|
|
@@ -17765,7 +17765,7 @@ const Pd = ({
|
|
|
17765
17765
|
view_id: i.get("graph").view_id,
|
|
17766
17766
|
model: y,
|
|
17767
17767
|
domain: [[`${o.inv_field}`, "=", w]],
|
|
17768
|
-
context:
|
|
17768
|
+
context: P,
|
|
17769
17769
|
limit: 0
|
|
17770
17770
|
}
|
|
17771
17771
|
),
|
|
@@ -17873,7 +17873,7 @@ const Pd = ({
|
|
|
17873
17873
|
const $ = yw(t, w.current);
|
|
17874
17874
|
w.current = t, C.current = {}, x.current && (x.current = {}), $.length > 0 && (async () => {
|
|
17875
17875
|
var N;
|
|
17876
|
-
const V = $.filter((
|
|
17876
|
+
const V = $.filter((L) => L.treeValues).map((L) => L.treeValues);
|
|
17877
17877
|
if (V.length === 0)
|
|
17878
17878
|
return;
|
|
17879
17879
|
const B = await ln(
|
|
@@ -17884,7 +17884,7 @@ const Pd = ({
|
|
|
17884
17884
|
(N = b == null ? void 0 : b.current) == null || N.updateRows(B);
|
|
17885
17885
|
})(), (j = b == null ? void 0 : b.current) == null || j.unselectAll();
|
|
17886
17886
|
}, [t, o, i]);
|
|
17887
|
-
const D = wt(() => t.length, [t]),
|
|
17887
|
+
const D = wt(() => t.length, [t]), P = wt(() => Ks(
|
|
17888
17888
|
o,
|
|
17889
17889
|
{
|
|
17890
17890
|
...zo
|
|
@@ -17899,13 +17899,13 @@ const Pd = ({
|
|
|
17899
17899
|
}) => {
|
|
17900
17900
|
const V = yr({
|
|
17901
17901
|
state: Q
|
|
17902
|
-
}), { results: B, colors: N, status:
|
|
17902
|
+
}), { results: B, colors: N, status: L } = await a({
|
|
17903
17903
|
allItems: _.current,
|
|
17904
17904
|
startRow: $,
|
|
17905
17905
|
endRow: j,
|
|
17906
17906
|
sortFields: V
|
|
17907
17907
|
});
|
|
17908
|
-
return C.current = { ...C.current, ...N }, !x.current &&
|
|
17908
|
+
return C.current = { ...C.current, ...N }, !x.current && L && (x.current = {}), L && (x.current = { ...x.current, ...L }), B;
|
|
17909
17909
|
},
|
|
17910
17910
|
[a]
|
|
17911
17911
|
), F = S(($) => {
|
|
@@ -17923,7 +17923,7 @@ const Pd = ({
|
|
|
17923
17923
|
{
|
|
17924
17924
|
ref: b,
|
|
17925
17925
|
height: e || gw,
|
|
17926
|
-
columns:
|
|
17926
|
+
columns: P,
|
|
17927
17927
|
onRequestData: M,
|
|
17928
17928
|
onRowDoubleClick: n,
|
|
17929
17929
|
showPointerCursorInRows: y,
|
|
@@ -17981,7 +17981,7 @@ const Pd = ({
|
|
|
17981
17981
|
fieldName: y
|
|
17982
17982
|
}), {
|
|
17983
17983
|
treeOoui: D,
|
|
17984
|
-
onTreeFetchRows:
|
|
17984
|
+
onTreeFetchRows: P,
|
|
17985
17985
|
selectedRowKeys: M,
|
|
17986
17986
|
setSelectedRowKeys: F,
|
|
17987
17987
|
onChangeFirstVisibleRowIndex: R,
|
|
@@ -18013,7 +18013,7 @@ const Pd = ({
|
|
|
18013
18013
|
), {
|
|
18014
18014
|
formHasChanges: B,
|
|
18015
18015
|
onFormChanges: N,
|
|
18016
|
-
showFormChangesDialogIfNeeded:
|
|
18016
|
+
showFormChangesDialogIfNeeded: L,
|
|
18017
18017
|
setFormHasChanges: U
|
|
18018
18018
|
} = kd({
|
|
18019
18019
|
items: d,
|
|
@@ -18030,10 +18030,10 @@ const Pd = ({
|
|
|
18030
18030
|
onFormModalSubmitSucceed: be,
|
|
18031
18031
|
createItem: fe,
|
|
18032
18032
|
openItemInFormModal: se
|
|
18033
|
-
} =
|
|
18033
|
+
} = Ld({
|
|
18034
18034
|
activeId: b,
|
|
18035
18035
|
inv_field: o.inv_field,
|
|
18036
|
-
showFormChangesDialogIfNeeded:
|
|
18036
|
+
showFormChangesDialogIfNeeded: L,
|
|
18037
18037
|
currentView: c,
|
|
18038
18038
|
triggerChange: V,
|
|
18039
18039
|
items: d,
|
|
@@ -18048,14 +18048,14 @@ const Pd = ({
|
|
|
18048
18048
|
onCloseSearchModal: ne,
|
|
18049
18049
|
searchItem: W
|
|
18050
18050
|
} = Vd({
|
|
18051
|
-
showFormChangesDialogIfNeeded:
|
|
18051
|
+
showFormChangesDialogIfNeeded: L,
|
|
18052
18052
|
currentView: c,
|
|
18053
18053
|
triggerChange: V,
|
|
18054
18054
|
items: d,
|
|
18055
18055
|
views: i,
|
|
18056
18056
|
context: I,
|
|
18057
18057
|
relation: p
|
|
18058
|
-
}), { showRemoveConfirm: me } =
|
|
18058
|
+
}), { showRemoveConfirm: me } = Pd({
|
|
18059
18059
|
isMany2many: Q,
|
|
18060
18060
|
items: d,
|
|
18061
18061
|
triggerChange: V,
|
|
@@ -18064,7 +18064,7 @@ const Pd = ({
|
|
|
18064
18064
|
setSelectedRowKeys: F
|
|
18065
18065
|
}), ie = () => {
|
|
18066
18066
|
const Ce = Array.from(i.keys()), He = Ce[(Ce.indexOf(c) + 1) % Ce.length];
|
|
18067
|
-
c === "form" ?
|
|
18067
|
+
c === "form" ? L(() => {
|
|
18068
18068
|
l(He);
|
|
18069
18069
|
}) : l(He);
|
|
18070
18070
|
}, pe = lt(
|
|
@@ -18075,12 +18075,12 @@ const Pd = ({
|
|
|
18075
18075
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18076
18076
|
[d]
|
|
18077
18077
|
), de = S(() => {
|
|
18078
|
-
f > 0 && (c === "form" ?
|
|
18078
|
+
f > 0 && (c === "form" ? L(() => {
|
|
18079
18079
|
u(f - 1);
|
|
18080
18080
|
}) : u(f - 1));
|
|
18081
|
-
}, [c, f, u,
|
|
18081
|
+
}, [c, f, u, L]), Ee = S(() => {
|
|
18082
18082
|
const Ce = d.length;
|
|
18083
|
-
f < Ce - 1 && (c === "form" ?
|
|
18083
|
+
f < Ce - 1 && (c === "form" ? L(() => {
|
|
18084
18084
|
u(f + 1);
|
|
18085
18085
|
}) : u(f + 1));
|
|
18086
18086
|
}, [
|
|
@@ -18088,7 +18088,7 @@ const Pd = ({
|
|
|
18088
18088
|
f,
|
|
18089
18089
|
d.length,
|
|
18090
18090
|
u,
|
|
18091
|
-
|
|
18091
|
+
L
|
|
18092
18092
|
]), he = K(() => {
|
|
18093
18093
|
var Ce;
|
|
18094
18094
|
return ((Ce = i.get("form")) == null ? void 0 : Ce.fields) !== void 0;
|
|
@@ -18132,7 +18132,7 @@ const Pd = ({
|
|
|
18132
18132
|
height: o.height,
|
|
18133
18133
|
items: d,
|
|
18134
18134
|
readOnly: m || !1,
|
|
18135
|
-
onFetchRecords:
|
|
18135
|
+
onFetchRecords: P,
|
|
18136
18136
|
ooui: D,
|
|
18137
18137
|
context: I,
|
|
18138
18138
|
onRowDoubleClick: pe,
|
|
@@ -18211,7 +18211,7 @@ const Pd = ({
|
|
|
18211
18211
|
c
|
|
18212
18212
|
] })
|
|
18213
18213
|
] });
|
|
18214
|
-
},
|
|
18214
|
+
}, Pa = 30, xw = (t) => {
|
|
18215
18215
|
var F;
|
|
18216
18216
|
const { ooui: e } = t, { mode: n, relation: r, views: o, required: i, context: a } = e;
|
|
18217
18217
|
let d;
|
|
@@ -18221,7 +18221,7 @@ const Pd = ({
|
|
|
18221
18221
|
G.getHandler().getToolbar
|
|
18222
18222
|
);
|
|
18223
18223
|
Je(() => {
|
|
18224
|
-
|
|
18224
|
+
P();
|
|
18225
18225
|
}, [e]), ye(() => () => {
|
|
18226
18226
|
_(), x();
|
|
18227
18227
|
}, []);
|
|
@@ -18261,7 +18261,7 @@ const Pd = ({
|
|
|
18261
18261
|
type: R,
|
|
18262
18262
|
context: { ...h == null ? void 0 : h(), ...a }
|
|
18263
18263
|
});
|
|
18264
|
-
},
|
|
18264
|
+
}, P = async () => {
|
|
18265
18265
|
l(!0), u(void 0);
|
|
18266
18266
|
try {
|
|
18267
18267
|
if (n && n.length > 0) {
|
|
@@ -18319,7 +18319,7 @@ const Pd = ({
|
|
|
18319
18319
|
);
|
|
18320
18320
|
if (Je(() => {
|
|
18321
18321
|
if (d) {
|
|
18322
|
-
const c = () => e.infinite === "1" || e.infinite === !0 ? "infinite" : e.infinite === "0" || e.infinite === !1 ? "paginated" : (e.infinite === void 0 || e.infinite === null) && n && Array.isArray(n.items) && n.items.length >=
|
|
18322
|
+
const c = () => e.infinite === "1" || e.infinite === !0 ? "infinite" : e.infinite === "0" || e.infinite === !1 ? "paginated" : (e.infinite === void 0 || e.infinite === null) && n && Array.isArray(n.items) && n.items.length >= Pa ? "infinite" : "paginated", l = r.current;
|
|
18323
18323
|
a(l && l !== "legacy" ? l : c());
|
|
18324
18324
|
return;
|
|
18325
18325
|
}
|
|
@@ -18327,7 +18327,7 @@ const Pd = ({
|
|
|
18327
18327
|
a("infinite");
|
|
18328
18328
|
return;
|
|
18329
18329
|
}
|
|
18330
|
-
if (n && Array.isArray(n.items) && n.items.length >=
|
|
18330
|
+
if (n && Array.isArray(n.items) && n.items.length >= Pa) {
|
|
18331
18331
|
a("infinite");
|
|
18332
18332
|
return;
|
|
18333
18333
|
}
|
|
@@ -18379,7 +18379,7 @@ const Pd = ({
|
|
|
18379
18379
|
);
|
|
18380
18380
|
};
|
|
18381
18381
|
function Hd(t) {
|
|
18382
|
-
const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o =
|
|
18382
|
+
const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = Lt(e.icon || ""), { t: i } = Me(), a = e.backgroundColor, d = a ? uf(a).darken(30).toString() : void 0, c = (e.label || o) && n;
|
|
18383
18383
|
return /* @__PURE__ */ s(
|
|
18384
18384
|
"div",
|
|
18385
18385
|
{
|
|
@@ -18440,7 +18440,7 @@ function Rw(t) {
|
|
|
18440
18440
|
const { ooui: e, responsiveBehaviour: n } = t, r = e.pages, { token: o } = ot.useToken();
|
|
18441
18441
|
function i(a) {
|
|
18442
18442
|
if (a) {
|
|
18443
|
-
const d =
|
|
18443
|
+
const d = Lt(a);
|
|
18444
18444
|
return d && /* @__PURE__ */ s(d, {});
|
|
18445
18445
|
}
|
|
18446
18446
|
}
|
|
@@ -18586,7 +18586,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18586
18586
|
) })
|
|
18587
18587
|
] });
|
|
18588
18588
|
}, Mw = (t) => {
|
|
18589
|
-
const { ooui: e } = t, { label: n, icon: r } = e, o =
|
|
18589
|
+
const { ooui: e } = t, { label: n, icon: r } = e, o = Lt(r || "");
|
|
18590
18590
|
return /* @__PURE__ */ s(Yr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ H(ht, { children: [
|
|
18591
18591
|
o ? /* @__PURE__ */ s(o, {}) : null,
|
|
18592
18592
|
n
|
|
@@ -18631,10 +18631,10 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18631
18631
|
context: e,
|
|
18632
18632
|
fields: []
|
|
18633
18633
|
});
|
|
18634
|
-
return a.current["/"] = y,
|
|
18634
|
+
return a.current["/"] = y, La({ fields: y });
|
|
18635
18635
|
}, [t, e, a]), u = S(
|
|
18636
18636
|
async (y) => {
|
|
18637
|
-
const b =
|
|
18637
|
+
const b = Ls(y, a.current)[Ps(y)], C = b.relation, x = await G.getHandler().getFields({
|
|
18638
18638
|
model: C,
|
|
18639
18639
|
context: e,
|
|
18640
18640
|
fields: []
|
|
@@ -18644,14 +18644,14 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18644
18644
|
parentTitle: b.string,
|
|
18645
18645
|
title: _.string
|
|
18646
18646
|
});
|
|
18647
|
-
return a.current[y] = x,
|
|
18647
|
+
return a.current[y] = x, La({
|
|
18648
18648
|
fields: x,
|
|
18649
18649
|
parentKey: y
|
|
18650
18650
|
});
|
|
18651
18651
|
},
|
|
18652
18652
|
[e]
|
|
18653
18653
|
), m = S(async () => {
|
|
18654
|
-
const y = await
|
|
18654
|
+
const y = await Pw({ model: t, context: e }), v = await Vw({
|
|
18655
18655
|
predefinedExports: y,
|
|
18656
18656
|
fields: a.current,
|
|
18657
18657
|
onGetFieldChilds: u
|
|
@@ -18660,7 +18660,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18660
18660
|
predefinedExports: y.map((C) => ({
|
|
18661
18661
|
...C,
|
|
18662
18662
|
fields: C.fields.map((x) => {
|
|
18663
|
-
const w =
|
|
18663
|
+
const w = Ps(x.key), _ = Ls(x.key, a.current);
|
|
18664
18664
|
if (!_)
|
|
18665
18665
|
return {
|
|
18666
18666
|
key: x.key
|
|
@@ -18730,7 +18730,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18730
18730
|
onSavePredefinedExport: h,
|
|
18731
18731
|
onRemovePredefinedExport: p
|
|
18732
18732
|
};
|
|
18733
|
-
},
|
|
18733
|
+
}, La = ({
|
|
18734
18734
|
fields: t,
|
|
18735
18735
|
parentKey: e
|
|
18736
18736
|
}) => {
|
|
@@ -18749,15 +18749,15 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18749
18749
|
}, jd = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", kw = ({
|
|
18750
18750
|
parentKey: t,
|
|
18751
18751
|
key: e
|
|
18752
|
-
}) => `${t ? t + "/" : ""}${e}`, $s = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"),
|
|
18752
|
+
}) => `${t ? t + "/" : ""}${e}`, $s = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), Ps = (t) => {
|
|
18753
18753
|
if (t.indexOf("/") === -1)
|
|
18754
18754
|
return t;
|
|
18755
18755
|
const e = t.split("/");
|
|
18756
18756
|
return e[e.length - 1];
|
|
18757
|
-
},
|
|
18757
|
+
}, Ls = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[$s(t)], $w = ({
|
|
18758
18758
|
title: t,
|
|
18759
18759
|
parentTitle: e
|
|
18760
|
-
}) => `${e ? e + " → " : ""}${t}`,
|
|
18760
|
+
}) => `${e ? e + " → " : ""}${t}`, Pw = async ({
|
|
18761
18761
|
model: t,
|
|
18762
18762
|
context: e
|
|
18763
18763
|
}) => {
|
|
@@ -18777,7 +18777,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18777
18777
|
key: o.find((c) => c.id === a).name
|
|
18778
18778
|
}))
|
|
18779
18779
|
}));
|
|
18780
|
-
},
|
|
18780
|
+
}, Lw = ({
|
|
18781
18781
|
fields: t,
|
|
18782
18782
|
keys: e
|
|
18783
18783
|
}) => Hw([
|
|
@@ -18794,7 +18794,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18794
18794
|
}) => {
|
|
18795
18795
|
const r = t.flatMap(
|
|
18796
18796
|
(a) => a.fields.map((d) => d.key)
|
|
18797
|
-
), o =
|
|
18797
|
+
), o = Lw({
|
|
18798
18798
|
fields: e,
|
|
18799
18799
|
keys: r
|
|
18800
18800
|
}), i = [];
|
|
@@ -18812,7 +18812,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
18812
18812
|
keys: t,
|
|
18813
18813
|
fields: e
|
|
18814
18814
|
}) => t.map((n) => {
|
|
18815
|
-
const r =
|
|
18815
|
+
const r = Ps(n), i = Ls(n, e)[r], a = jd(i), d = i.is_function === !0;
|
|
18816
18816
|
return a && !d ? `${n}/id` : n;
|
|
18817
18817
|
}), Hw = (t) => {
|
|
18818
18818
|
const e = /* @__PURE__ */ new Map(), n = [];
|
|
@@ -19080,7 +19080,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
19080
19080
|
items: n.map((u) => {
|
|
19081
19081
|
const m = u.link ? Fi : Us, p = /* @__PURE__ */ H(dt, { wrap: !1, align: "middle", gutter: 8, children: [
|
|
19082
19082
|
/* @__PURE__ */ s(et, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
|
|
19083
|
-
|
|
19083
|
+
Pt,
|
|
19084
19084
|
{
|
|
19085
19085
|
title: u.link ? c("openAttachmentLink") : c("download"),
|
|
19086
19086
|
children: /* @__PURE__ */ s(
|
|
@@ -19095,7 +19095,7 @@ const { useToken: Fw } = ot, { TextArea: ks } = Mt, Ow = (t) => {
|
|
|
19095
19095
|
)
|
|
19096
19096
|
}
|
|
19097
19097
|
) }),
|
|
19098
|
-
/* @__PURE__ */ s(et, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(
|
|
19098
|
+
/* @__PURE__ */ s(et, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Pt, { title: c("openAttachment"), children: /* @__PURE__ */ s(
|
|
19099
19099
|
vo,
|
|
19100
19100
|
{
|
|
19101
19101
|
style: { cursor: "pointer" },
|
|
@@ -19371,7 +19371,7 @@ function o0({ toolbar: t }) {
|
|
|
19371
19371
|
setResults: I,
|
|
19372
19372
|
formIsLoading: O,
|
|
19373
19373
|
attachments: D,
|
|
19374
|
-
formRef:
|
|
19374
|
+
formRef: P,
|
|
19375
19375
|
setFormHasChanges: M,
|
|
19376
19376
|
previousView: F,
|
|
19377
19377
|
setPreviousView: R,
|
|
@@ -19382,7 +19382,7 @@ function o0({ toolbar: t }) {
|
|
|
19382
19382
|
setCommentsPanelVisible: Q,
|
|
19383
19383
|
commentCount: V,
|
|
19384
19384
|
refreshComments: B
|
|
19385
|
-
} = Yt(), { openDefaultActionForModel: N } = e || {},
|
|
19385
|
+
} = Yt(), { openDefaultActionForModel: N } = e || {}, L = K(
|
|
19386
19386
|
() => p || w || O || _,
|
|
19387
19387
|
[p, w, O, _]
|
|
19388
19388
|
), U = S(
|
|
@@ -19392,20 +19392,20 @@ function o0({ toolbar: t }) {
|
|
|
19392
19392
|
[m, n]
|
|
19393
19393
|
), z = S(() => {
|
|
19394
19394
|
U(() => {
|
|
19395
|
-
|
|
19395
|
+
P.current.fetchValues(), B == null || B();
|
|
19396
19396
|
});
|
|
19397
|
-
}, [U,
|
|
19397
|
+
}, [U, P, B]), { actionButtonProps: Y, printButtonProps: te, relateButtonProps: ee } = Rd({
|
|
19398
19398
|
toolbar: t,
|
|
19399
19399
|
model: C,
|
|
19400
|
-
mustDisableButtons:
|
|
19401
|
-
formRef:
|
|
19400
|
+
mustDisableButtons: L,
|
|
19401
|
+
formRef: P,
|
|
19402
19402
|
onRefreshParentValues: z
|
|
19403
19403
|
}), be = S(async () => {
|
|
19404
19404
|
try {
|
|
19405
19405
|
x == null || x(!0), await G.getHandler().deleteObjects({
|
|
19406
19406
|
model: C,
|
|
19407
19407
|
ids: [g],
|
|
19408
|
-
context:
|
|
19408
|
+
context: P.current.getContext()
|
|
19409
19409
|
});
|
|
19410
19410
|
const W = h == null ? void 0 : h.filter(
|
|
19411
19411
|
(ie) => ie.id !== g
|
|
@@ -19422,7 +19422,7 @@ function o0({ toolbar: t }) {
|
|
|
19422
19422
|
g,
|
|
19423
19423
|
v,
|
|
19424
19424
|
C,
|
|
19425
|
-
|
|
19425
|
+
P,
|
|
19426
19426
|
h,
|
|
19427
19427
|
b,
|
|
19428
19428
|
y,
|
|
@@ -19435,7 +19435,7 @@ function o0({ toolbar: t }) {
|
|
|
19435
19435
|
const W = await G.getHandler().duplicate({
|
|
19436
19436
|
id: g,
|
|
19437
19437
|
model: C,
|
|
19438
|
-
context:
|
|
19438
|
+
context: P.current.getContext()
|
|
19439
19439
|
});
|
|
19440
19440
|
W && await (A == null ? void 0 : A([W]));
|
|
19441
19441
|
} catch (W) {
|
|
@@ -19446,7 +19446,7 @@ function o0({ toolbar: t }) {
|
|
|
19446
19446
|
}, [
|
|
19447
19447
|
g,
|
|
19448
19448
|
C,
|
|
19449
|
-
|
|
19449
|
+
P,
|
|
19450
19450
|
A,
|
|
19451
19451
|
T,
|
|
19452
19452
|
d
|
|
@@ -19486,17 +19486,17 @@ function o0({ toolbar: t }) {
|
|
|
19486
19486
|
return jn(
|
|
19487
19487
|
"pagedown",
|
|
19488
19488
|
async () => {
|
|
19489
|
-
!k || !await
|
|
19489
|
+
!k || !await P.current.cancelUnsavedChanges() || o();
|
|
19490
19490
|
},
|
|
19491
19491
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
19492
|
-
[k, o,
|
|
19492
|
+
[k, o, P]
|
|
19493
19493
|
), jn(
|
|
19494
19494
|
"pageup",
|
|
19495
19495
|
async () => {
|
|
19496
|
-
!k || !await
|
|
19496
|
+
!k || !await P.current.cancelUnsavedChanges() || i();
|
|
19497
19497
|
},
|
|
19498
19498
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
19499
|
-
[k, i,
|
|
19499
|
+
[k, i, P]
|
|
19500
19500
|
), jn(
|
|
19501
19501
|
"ctrl+s,command+s",
|
|
19502
19502
|
() => k && (u == null ? void 0 : u()),
|
|
@@ -19505,7 +19505,7 @@ function o0({ toolbar: t }) {
|
|
|
19505
19505
|
), jn(
|
|
19506
19506
|
"ctrl+l,command+l",
|
|
19507
19507
|
async () => {
|
|
19508
|
-
!k || !F || !await
|
|
19508
|
+
!k || !F || !await P.current.cancelUnsavedChanges() || (R == null || R(l), f == null || f(F));
|
|
19509
19509
|
},
|
|
19510
19510
|
{ enableOnFormTags: !0, preventDefault: !0 },
|
|
19511
19511
|
[
|
|
@@ -19514,7 +19514,7 @@ function o0({ toolbar: t }) {
|
|
|
19514
19514
|
l,
|
|
19515
19515
|
R,
|
|
19516
19516
|
f,
|
|
19517
|
-
|
|
19517
|
+
P
|
|
19518
19518
|
]
|
|
19519
19519
|
), l ? /* @__PURE__ */ H(ht, { wrap: !0, children: [
|
|
19520
19520
|
O && /* @__PURE__ */ H(Oe, { children: [
|
|
@@ -19522,13 +19522,13 @@ function o0({ toolbar: t }) {
|
|
|
19522
19522
|
/* @__PURE__ */ s($t, {}),
|
|
19523
19523
|
/* @__PURE__ */ s($t, {})
|
|
19524
19524
|
] }),
|
|
19525
|
-
/* @__PURE__ */ s(mc, { disabled:
|
|
19525
|
+
/* @__PURE__ */ s(mc, { disabled: L || !($ != null && $.create) }),
|
|
19526
19526
|
/* @__PURE__ */ s(
|
|
19527
19527
|
Kt,
|
|
19528
19528
|
{
|
|
19529
19529
|
icon: /* @__PURE__ */ s(Ss, {}),
|
|
19530
19530
|
tooltip: n("save"),
|
|
19531
|
-
disabled: !m ||
|
|
19531
|
+
disabled: !m || L || !($ != null && $.write),
|
|
19532
19532
|
loading: p,
|
|
19533
19533
|
onClick: u
|
|
19534
19534
|
}
|
|
@@ -19538,7 +19538,7 @@ function o0({ toolbar: t }) {
|
|
|
19538
19538
|
{
|
|
19539
19539
|
icon: /* @__PURE__ */ s(Jn, {}),
|
|
19540
19540
|
tooltip: n("duplicate"),
|
|
19541
|
-
disabled: m ||
|
|
19541
|
+
disabled: m || L || g === void 0 || !($ != null && $.create),
|
|
19542
19542
|
loading: _,
|
|
19543
19543
|
onClick: () => vn({
|
|
19544
19544
|
confirmMessage: n("confirmDuplicate"),
|
|
@@ -19550,9 +19550,9 @@ function o0({ toolbar: t }) {
|
|
|
19550
19550
|
/* @__PURE__ */ s(
|
|
19551
19551
|
fc,
|
|
19552
19552
|
{
|
|
19553
|
-
icon: /* @__PURE__ */ s(
|
|
19553
|
+
icon: /* @__PURE__ */ s(Po, {}),
|
|
19554
19554
|
tooltip: n("delete"),
|
|
19555
|
-
disabled:
|
|
19555
|
+
disabled: L || g === void 0 || !($ != null && $.unlink),
|
|
19556
19556
|
loading: w,
|
|
19557
19557
|
onClick: () => vn({
|
|
19558
19558
|
confirmMessage: n("confirmRemoveItem"),
|
|
@@ -19565,9 +19565,9 @@ function o0({ toolbar: t }) {
|
|
|
19565
19565
|
/* @__PURE__ */ s(
|
|
19566
19566
|
Kt,
|
|
19567
19567
|
{
|
|
19568
|
-
icon: /* @__PURE__ */ s(
|
|
19568
|
+
icon: /* @__PURE__ */ s(Lo, {}),
|
|
19569
19569
|
tooltip: n("showLogs"),
|
|
19570
|
-
disabled:
|
|
19570
|
+
disabled: L || g === void 0,
|
|
19571
19571
|
onClick: () => ei(C, g, n)
|
|
19572
19572
|
}
|
|
19573
19573
|
),
|
|
@@ -19576,7 +19576,7 @@ function o0({ toolbar: t }) {
|
|
|
19576
19576
|
{
|
|
19577
19577
|
icon: /* @__PURE__ */ s(Jr, {}),
|
|
19578
19578
|
tooltip: n("refresh"),
|
|
19579
|
-
disabled:
|
|
19579
|
+
disabled: L || g === void 0,
|
|
19580
19580
|
onClick: z
|
|
19581
19581
|
}
|
|
19582
19582
|
),
|
|
@@ -19588,7 +19588,7 @@ function o0({ toolbar: t }) {
|
|
|
19588
19588
|
previousView: F,
|
|
19589
19589
|
availableViews: c,
|
|
19590
19590
|
onChangeView: se,
|
|
19591
|
-
disabled:
|
|
19591
|
+
disabled: L,
|
|
19592
19592
|
formHasChanges: m
|
|
19593
19593
|
}
|
|
19594
19594
|
),
|
|
@@ -19596,7 +19596,7 @@ function o0({ toolbar: t }) {
|
|
|
19596
19596
|
/* @__PURE__ */ s(
|
|
19597
19597
|
Wd,
|
|
19598
19598
|
{
|
|
19599
|
-
disabled:
|
|
19599
|
+
disabled: L || a,
|
|
19600
19600
|
onPreviousClick: i,
|
|
19601
19601
|
onNextClick: o,
|
|
19602
19602
|
tryAction: U
|
|
@@ -19609,7 +19609,7 @@ function o0({ toolbar: t }) {
|
|
|
19609
19609
|
/* @__PURE__ */ s(
|
|
19610
19610
|
e0,
|
|
19611
19611
|
{
|
|
19612
|
-
disabled:
|
|
19612
|
+
disabled: L,
|
|
19613
19613
|
attachments: D,
|
|
19614
19614
|
onAddNewAttachment: le,
|
|
19615
19615
|
onListAllAttachments: oe,
|
|
@@ -19619,7 +19619,7 @@ function o0({ toolbar: t }) {
|
|
|
19619
19619
|
r && /* @__PURE__ */ s(
|
|
19620
19620
|
n0,
|
|
19621
19621
|
{
|
|
19622
|
-
disabled:
|
|
19622
|
+
disabled: L || g === void 0,
|
|
19623
19623
|
commentCount: V ?? 0,
|
|
19624
19624
|
onClick: () => Q == null ? void 0 : Q(!j)
|
|
19625
19625
|
}
|
|
@@ -19797,7 +19797,7 @@ const Va = (t, e) => ({
|
|
|
19797
19797
|
tabIndex: 1,
|
|
19798
19798
|
loading: o,
|
|
19799
19799
|
style: { marginLeft: 15 },
|
|
19800
|
-
icon: /* @__PURE__ */ s(
|
|
19800
|
+
icon: /* @__PURE__ */ s(Pr, {}),
|
|
19801
19801
|
htmlType: "submit",
|
|
19802
19802
|
disabled: o,
|
|
19803
19803
|
onClick: () => {
|
|
@@ -19919,7 +19919,7 @@ const u0 = {
|
|
|
19919
19919
|
setViewIsLoading: I = void 0,
|
|
19920
19920
|
limit: O,
|
|
19921
19921
|
setLimit: D,
|
|
19922
|
-
searchParams:
|
|
19922
|
+
searchParams: P,
|
|
19923
19923
|
searchValues: M,
|
|
19924
19924
|
setSearchValues: F,
|
|
19925
19925
|
currentView: R,
|
|
@@ -19929,14 +19929,14 @@ const u0 = {
|
|
|
19929
19929
|
ye(() => {
|
|
19930
19930
|
n && V(!0);
|
|
19931
19931
|
}, [n]);
|
|
19932
|
-
const
|
|
19933
|
-
() => bn(
|
|
19934
|
-
[i,
|
|
19932
|
+
const L = wt(
|
|
19933
|
+
() => bn(P || [], i),
|
|
19934
|
+
[i, P]
|
|
19935
19935
|
), U = lt(async () => {
|
|
19936
19936
|
if (!n)
|
|
19937
19937
|
return;
|
|
19938
19938
|
const ne = await G.getHandler().searchAllIds({
|
|
19939
|
-
params: k ? i :
|
|
19939
|
+
params: k ? i : L,
|
|
19940
19940
|
model: r,
|
|
19941
19941
|
context: o,
|
|
19942
19942
|
totalItems: A
|
|
@@ -19946,7 +19946,7 @@ const u0 = {
|
|
|
19946
19946
|
n,
|
|
19947
19947
|
k,
|
|
19948
19948
|
i,
|
|
19949
|
-
|
|
19949
|
+
L,
|
|
19950
19950
|
r,
|
|
19951
19951
|
o,
|
|
19952
19952
|
A
|
|
@@ -19967,7 +19967,7 @@ const u0 = {
|
|
|
19967
19967
|
n,
|
|
19968
19968
|
k,
|
|
19969
19969
|
i,
|
|
19970
|
-
|
|
19970
|
+
L,
|
|
19971
19971
|
A,
|
|
19972
19972
|
$,
|
|
19973
19973
|
h
|
|
@@ -19980,7 +19980,7 @@ const u0 = {
|
|
|
19980
19980
|
model: r,
|
|
19981
19981
|
setSearchTreeNameSearch: T,
|
|
19982
19982
|
setSelectedRowItems: y,
|
|
19983
|
-
searchParams:
|
|
19983
|
+
searchParams: P,
|
|
19984
19984
|
setSearchValues: F,
|
|
19985
19985
|
setSearchParams: v,
|
|
19986
19986
|
setSearchVisible: C,
|
|
@@ -20052,7 +20052,7 @@ const u0 = {
|
|
|
20052
20052
|
viewData: e,
|
|
20053
20053
|
model: r,
|
|
20054
20054
|
context: o,
|
|
20055
|
-
domain: bn(
|
|
20055
|
+
domain: bn(P || [], i),
|
|
20056
20056
|
limit: $ ? O : void 0,
|
|
20057
20057
|
fixedHeight: Np,
|
|
20058
20058
|
manualIds: B
|
|
@@ -20130,7 +20130,7 @@ const u0 = {
|
|
|
20130
20130
|
/* @__PURE__ */ H("div", { style: g0, children: [
|
|
20131
20131
|
/* @__PURE__ */ s("div", { style: y0, children: /* @__PURE__ */ s(Ba, { style: l, children: u }) }),
|
|
20132
20132
|
/* @__PURE__ */ s(
|
|
20133
|
-
|
|
20133
|
+
Pt,
|
|
20134
20134
|
{
|
|
20135
20135
|
placement: "left",
|
|
20136
20136
|
title: d(f ? "unsubscribe" : "subscribe"),
|
|
@@ -20153,7 +20153,7 @@ const u0 = {
|
|
|
20153
20153
|
{
|
|
20154
20154
|
max: { count: 5, style: { backgroundColor: a.colorPrimary } },
|
|
20155
20155
|
size: 24,
|
|
20156
|
-
children: t.map((m) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
|
|
20156
|
+
children: t.map((m) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(Pt, { title: m.name, children: /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Eo, { userName: m.name, size: 24 }) }) }) }, m.id))
|
|
20157
20157
|
}
|
|
20158
20158
|
)
|
|
20159
20159
|
] })
|
|
@@ -20430,7 +20430,10 @@ const R0 = {
|
|
|
20430
20430
|
backgroundColor: e ? l.colorPrimaryBg : l.colorFillTertiary,
|
|
20431
20431
|
padding: "8px 12px",
|
|
20432
20432
|
borderRadius: 12,
|
|
20433
|
-
display: "inline-block"
|
|
20433
|
+
display: "inline-block",
|
|
20434
|
+
maxWidth: "100%",
|
|
20435
|
+
overflowWrap: "break-word",
|
|
20436
|
+
wordBreak: "break-word"
|
|
20434
20437
|
}),
|
|
20435
20438
|
[l.colorPrimaryBg, l.colorFillTertiary, e]
|
|
20436
20439
|
), I = K(
|
|
@@ -20462,7 +20465,7 @@ const R0 = {
|
|
|
20462
20465
|
transition: "background-color 0.1s ease-out"
|
|
20463
20466
|
}),
|
|
20464
20467
|
[u, e, c]
|
|
20465
|
-
),
|
|
20468
|
+
), P = K(
|
|
20466
20469
|
() => ({
|
|
20467
20470
|
position: "absolute",
|
|
20468
20471
|
top: "50%",
|
|
@@ -20514,7 +20517,7 @@ const R0 = {
|
|
|
20514
20517
|
}
|
|
20515
20518
|
),
|
|
20516
20519
|
/* @__PURE__ */ s(fo, { style: ja, children: h })
|
|
20517
|
-
] }) }), j = /* @__PURE__ */ s(
|
|
20520
|
+
] }) }), j = /* @__PURE__ */ s(Pt, { title: y, children: /* @__PURE__ */ s(fo, { style: O, children: v }) });
|
|
20518
20521
|
return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H(Oe, { children: [
|
|
20519
20522
|
r && o && /* @__PURE__ */ H("div", { style: M0, children: [
|
|
20520
20523
|
/* @__PURE__ */ s("div", { style: x }),
|
|
@@ -20531,16 +20534,16 @@ const R0 = {
|
|
|
20531
20534
|
onMouseEnter: R,
|
|
20532
20535
|
onMouseLeave: A,
|
|
20533
20536
|
children: [
|
|
20534
|
-
e && c && /* @__PURE__ */ s(
|
|
20537
|
+
e && c && /* @__PURE__ */ s(Pt, { title: f("delete"), placement: "top", children: /* @__PURE__ */ s(
|
|
20535
20538
|
"span",
|
|
20536
20539
|
{
|
|
20537
20540
|
role: "button",
|
|
20538
20541
|
"aria-label": f("delete"),
|
|
20539
|
-
style:
|
|
20542
|
+
style: P,
|
|
20540
20543
|
onClick: k,
|
|
20541
20544
|
onMouseEnter: M,
|
|
20542
20545
|
onMouseLeave: F,
|
|
20543
|
-
children: /* @__PURE__ */ s(
|
|
20546
|
+
children: /* @__PURE__ */ s(Po, {})
|
|
20544
20547
|
}
|
|
20545
20548
|
) }),
|
|
20546
20549
|
/* @__PURE__ */ H("div", { style: I, children: [
|
|
@@ -20606,7 +20609,7 @@ const { useToken: k0 } = ot, $0 = {
|
|
|
20606
20609
|
}
|
|
20607
20610
|
);
|
|
20608
20611
|
qd.displayName = "UnreadDivider";
|
|
20609
|
-
const
|
|
20612
|
+
const P0 = nt(qd), { Title: L0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t) => t.charAt(0).toUpperCase() + t.slice(1), j0 = (t) => H0(it(t).calendar()), Vs = 450, Ua = 8, U0 = { minRows: 1, maxRows: 4 }, W0 = typeof navigator < "u" && /firefox/i.test(navigator.userAgent), Wa = {
|
|
20610
20613
|
display: "flex",
|
|
20611
20614
|
justifyContent: "center",
|
|
20612
20615
|
alignItems: "center",
|
|
@@ -20640,7 +20643,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20640
20643
|
onToggleMute: b,
|
|
20641
20644
|
lastMessageRead: C,
|
|
20642
20645
|
onMarkAsRead: x
|
|
20643
|
-
} = t, { token: w } = B0(), { t: _ } = Me(), [T, I] = E(""), [O, D] = E([]), [
|
|
20646
|
+
} = t, { token: w } = B0(), { t: _ } = Me(), [T, I] = E(""), [O, D] = E([]), [P, M] = E(e), [F, R] = E([]), [A, k] = E(!1), [$, j] = E(!1), [Q, V] = E(!1), [B, N] = E(!1), [L, U] = E(!1), [z, Y] = E(!1), te = X(null), ee = X(null), be = X(null), fe = X(/* @__PURE__ */ new Map()), se = X(null), le = X(r), oe = X(null), ne = n.length > 0 ? n[0].id : null, W = C !== void 0, me = K(
|
|
20644
20647
|
() => O.some((ge) => ge.status === "sending"),
|
|
20645
20648
|
[O]
|
|
20646
20649
|
), ie = K(() => {
|
|
@@ -20737,7 +20740,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20737
20740
|
[]
|
|
20738
20741
|
);
|
|
20739
20742
|
ye(() => {
|
|
20740
|
-
e && n.length > 0 && !r && !Q && W &&
|
|
20743
|
+
e && n.length > 0 && !r && !Q && W && L && (ie && B && oe.current ? (V(!0), requestAnimationFrame(() => {
|
|
20741
20744
|
requestAnimationFrame(() => {
|
|
20742
20745
|
oe.current && ve(oe.current);
|
|
20743
20746
|
});
|
|
@@ -20748,7 +20751,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20748
20751
|
r,
|
|
20749
20752
|
Q,
|
|
20750
20753
|
W,
|
|
20751
|
-
|
|
20754
|
+
L,
|
|
20752
20755
|
ie,
|
|
20753
20756
|
B,
|
|
20754
20757
|
je,
|
|
@@ -20817,7 +20820,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20817
20820
|
}, []), xe = S(() => {
|
|
20818
20821
|
j(!1);
|
|
20819
20822
|
}, []);
|
|
20820
|
-
return
|
|
20823
|
+
return P ? /* @__PURE__ */ s(Il, { onExitComplete: He, children: e && /* @__PURE__ */ H(
|
|
20821
20824
|
_s.div,
|
|
20822
20825
|
{
|
|
20823
20826
|
initial: { width: 0, opacity: 0 },
|
|
@@ -20828,8 +20831,8 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20828
20831
|
children: [
|
|
20829
20832
|
/* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H("div", { style: Ee, children: [
|
|
20830
20833
|
/* @__PURE__ */ H("div", { style: q0, children: [
|
|
20831
|
-
/* @__PURE__ */ s(
|
|
20832
|
-
/* @__PURE__ */ s(
|
|
20834
|
+
/* @__PURE__ */ s(L0, { level: 5, style: Y0, children: _("comments") }),
|
|
20835
|
+
/* @__PURE__ */ s(Pt, { title: _("refresh"), children: /* @__PURE__ */ s(
|
|
20833
20836
|
Ke,
|
|
20834
20837
|
{
|
|
20835
20838
|
type: "text",
|
|
@@ -20883,7 +20886,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
20883
20886
|
},
|
|
20884
20887
|
children: [
|
|
20885
20888
|
q && /* @__PURE__ */ s(
|
|
20886
|
-
|
|
20889
|
+
P0,
|
|
20887
20890
|
{
|
|
20888
20891
|
ref: Ce,
|
|
20889
20892
|
label: _("newMessages")
|
|
@@ -21131,7 +21134,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
21131
21134
|
userStatus: I,
|
|
21132
21135
|
loading: O,
|
|
21133
21136
|
fetchComments: D,
|
|
21134
|
-
addComment:
|
|
21137
|
+
addComment: P,
|
|
21135
21138
|
deleteComment: M,
|
|
21136
21139
|
fetchMentionUsers: F,
|
|
21137
21140
|
markAsRead: R
|
|
@@ -21162,10 +21165,10 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
21162
21165
|
}, [w, D, v]);
|
|
21163
21166
|
const Q = S(
|
|
21164
21167
|
async (z) => {
|
|
21165
|
-
const Y = await
|
|
21168
|
+
const Y = await P(z);
|
|
21166
21169
|
await D({ silent: !0 }), Y && R(Y);
|
|
21167
21170
|
},
|
|
21168
|
-
[
|
|
21171
|
+
[P, D, R]
|
|
21169
21172
|
), V = S(() => {
|
|
21170
21173
|
h == null || h(!1);
|
|
21171
21174
|
}, [h]), B = S(
|
|
@@ -21185,7 +21188,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
21185
21188
|
height: "calc(100vh - 80px)"
|
|
21186
21189
|
}),
|
|
21187
21190
|
[]
|
|
21188
|
-
),
|
|
21191
|
+
), L = K(
|
|
21189
21192
|
() => ({
|
|
21190
21193
|
display: "flex",
|
|
21191
21194
|
flex: 1,
|
|
@@ -21214,7 +21217,7 @@ const L0 = nt(qd), { Title: P0, Text: V0 } = Jt, { useToken: B0 } = ot, H0 = (t)
|
|
|
21214
21217
|
);
|
|
21215
21218
|
return e ? /* @__PURE__ */ H("div", { style: N, children: [
|
|
21216
21219
|
/* @__PURE__ */ s(eo, { children: /* @__PURE__ */ s(s0, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
21217
|
-
/* @__PURE__ */ H("div", { style:
|
|
21220
|
+
/* @__PURE__ */ H("div", { style: L, children: [
|
|
21218
21221
|
/* @__PURE__ */ s("div", { style: U, children: /* @__PURE__ */ s(
|
|
21219
21222
|
Rr,
|
|
21220
21223
|
{
|
|
@@ -21511,7 +21514,7 @@ const oC = ({
|
|
|
21511
21514
|
}, [f]), { runAction: I } = Gd({
|
|
21512
21515
|
context: d,
|
|
21513
21516
|
onRefreshParentValues: T
|
|
21514
|
-
}), { attributes: O, listeners: D, setNodeRef:
|
|
21517
|
+
}), { attributes: O, listeners: D, setNodeRef: P, isDragging: M } = Ef({
|
|
21515
21518
|
id: e.id,
|
|
21516
21519
|
disabled: !r,
|
|
21517
21520
|
data: { columnId: m }
|
|
@@ -21529,10 +21532,10 @@ const oC = ({
|
|
|
21529
21532
|
widgetMap: Y
|
|
21530
21533
|
};
|
|
21531
21534
|
}, [n, e]), k = wt(() => n.card_fields.filter((N) => {
|
|
21532
|
-
const
|
|
21533
|
-
return !
|
|
21535
|
+
const L = A.get(N.id);
|
|
21536
|
+
return !L || !L.invisible;
|
|
21534
21537
|
}), [n.card_fields, A]), $ = S(
|
|
21535
|
-
(N,
|
|
21538
|
+
(N, L) => {
|
|
21536
21539
|
const U = N.id;
|
|
21537
21540
|
if (!U || !n.fields[U])
|
|
21538
21541
|
return null;
|
|
@@ -21562,7 +21565,7 @@ const oC = ({
|
|
|
21562
21565
|
se(),
|
|
21563
21566
|
/* @__PURE__ */ s("span", { style: { fontSize: "12px", fontWeight: 600 }, children: oe })
|
|
21564
21567
|
] });
|
|
21565
|
-
return
|
|
21568
|
+
return L && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ya, { onClick: fe, children: ne }) }, U) : /* @__PURE__ */ s(
|
|
21566
21569
|
"div",
|
|
21567
21570
|
{
|
|
21568
21571
|
style: { marginBottom: "4px" },
|
|
@@ -21576,18 +21579,18 @@ const oC = ({
|
|
|
21576
21579
|
se(),
|
|
21577
21580
|
/* @__PURE__ */ s(za, { strong: !0, style: { fontSize: "12px" }, children: z ? z.toString() : "-" })
|
|
21578
21581
|
] });
|
|
21579
|
-
return
|
|
21582
|
+
return L && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ya, { onClick: fe, children: le }) }, U) : /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: le }, U);
|
|
21580
21583
|
},
|
|
21581
21584
|
[e, d, n.fields, c]
|
|
21582
21585
|
), j = S(
|
|
21583
|
-
async (N,
|
|
21586
|
+
async (N, L) => {
|
|
21584
21587
|
if (N.stopPropagation(), !b) {
|
|
21585
|
-
C(
|
|
21588
|
+
C(L.id);
|
|
21586
21589
|
try {
|
|
21587
|
-
if (
|
|
21590
|
+
if (L.buttonType === "object") {
|
|
21588
21591
|
const U = await w({
|
|
21589
21592
|
model: o,
|
|
21590
|
-
action:
|
|
21593
|
+
action: L.id,
|
|
21591
21594
|
payload: [e.id],
|
|
21592
21595
|
context: {
|
|
21593
21596
|
...d,
|
|
@@ -21621,7 +21624,7 @@ const oC = ({
|
|
|
21621
21624
|
x
|
|
21622
21625
|
]
|
|
21623
21626
|
), Q = wt(() => R.reduce(
|
|
21624
|
-
(N,
|
|
21627
|
+
(N, L) => (N[L.id] = (U) => j(U, L), N),
|
|
21625
21628
|
{}
|
|
21626
21629
|
), [R, j]), V = S(
|
|
21627
21630
|
(N) => {
|
|
@@ -21635,7 +21638,7 @@ const oC = ({
|
|
|
21635
21638
|
return /* @__PURE__ */ H(
|
|
21636
21639
|
"div",
|
|
21637
21640
|
{
|
|
21638
|
-
ref:
|
|
21641
|
+
ref: P,
|
|
21639
21642
|
style: { ...F, position: "relative" },
|
|
21640
21643
|
...O,
|
|
21641
21644
|
...D,
|
|
@@ -21666,7 +21669,7 @@ const oC = ({
|
|
|
21666
21669
|
a && /* @__PURE__ */ s(dC, { $color: a }),
|
|
21667
21670
|
/* @__PURE__ */ H(yt, { children: [
|
|
21668
21671
|
/* @__PURE__ */ s("div", { style: { marginBottom: "8px" }, children: k.map(
|
|
21669
|
-
(N,
|
|
21672
|
+
(N, L) => $(N, L === 0)
|
|
21670
21673
|
) }),
|
|
21671
21674
|
R.length > 0 && /* @__PURE__ */ s(ht, { size: [8, 8], wrap: !0, children: R.map((N) => /* @__PURE__ */ s(
|
|
21672
21675
|
Ke,
|
|
@@ -21676,7 +21679,7 @@ const oC = ({
|
|
|
21676
21679
|
danger: N.danger,
|
|
21677
21680
|
loading: b === N.id,
|
|
21678
21681
|
onClick: Q[N.id],
|
|
21679
|
-
icon: N.icon ? /* @__PURE__ */ s(
|
|
21682
|
+
icon: N.icon ? /* @__PURE__ */ s(Lr, { icon: N.icon }) : void 0,
|
|
21680
21683
|
children: N.caption || N.label || N.id
|
|
21681
21684
|
},
|
|
21682
21685
|
N.id
|
|
@@ -21699,7 +21702,7 @@ const oC = ({
|
|
|
21699
21702
|
fieldsToRetrieve: d = [],
|
|
21700
21703
|
enabled: c = !0,
|
|
21701
21704
|
kanbanDef: l
|
|
21702
|
-
} = t, [f, u] = E([]), [m, p] = E({}), [g, h] = E(!1), [y, v] = E(!1), [b, C] = E(!1), [x, w] = E(null), [_, T] = E(0), [I, O] = E(!0), [D,
|
|
21705
|
+
} = t, [f, u] = E([]), [m, p] = E({}), [g, h] = E(!1), [y, v] = E(!1), [b, C] = E(!1), [x, w] = E(null), [_, T] = E(0), [I, O] = E(!0), [D, P] = E(0), [M, F] = E({}), [R, A] = E({}), k = 30, [$, j] = $e(
|
|
21703
21706
|
G.getHandler().searchForTree
|
|
21704
21707
|
), [Q, V] = $e(
|
|
21705
21708
|
G.getHandler().readAggregates
|
|
@@ -21709,7 +21712,7 @@ const oC = ({
|
|
|
21709
21712
|
ye(() => () => {
|
|
21710
21713
|
j(), V(), N();
|
|
21711
21714
|
}, []);
|
|
21712
|
-
const
|
|
21715
|
+
const L = wt(() => {
|
|
21713
21716
|
if (!(l != null && l.aggregations))
|
|
21714
21717
|
return;
|
|
21715
21718
|
const ee = l.aggregations;
|
|
@@ -21739,9 +21742,9 @@ const oC = ({
|
|
|
21739
21742
|
context: r,
|
|
21740
21743
|
name_search: a
|
|
21741
21744
|
});
|
|
21742
|
-
|
|
21745
|
+
P(ie);
|
|
21743
21746
|
} catch (ie) {
|
|
21744
|
-
ie.name !== "AbortError" && console.error("Error fetching column count:", ie),
|
|
21747
|
+
ie.name !== "AbortError" && console.error("Error fetching column count:", ie), P(0);
|
|
21745
21748
|
}
|
|
21746
21749
|
const fe = [
|
|
21747
21750
|
.../* @__PURE__ */ new Set([...d, l.column_field])
|
|
@@ -21766,13 +21769,13 @@ const oC = ({
|
|
|
21766
21769
|
name_search: a
|
|
21767
21770
|
}
|
|
21768
21771
|
);
|
|
21769
|
-
if (u(W), a ? (T(0), O(!1)) : ee ? (T((ie) => ie + k), O(W.length === k)) : (T(k), O(W.length === k)),
|
|
21772
|
+
if (u(W), a ? (T(0), O(!1)) : ee ? (T((ie) => ie + k), O(W.length === k)) : (T(k), O(W.length === k)), L && !ee)
|
|
21770
21773
|
if (W.length > 0)
|
|
21771
21774
|
try {
|
|
21772
21775
|
const pe = await Q({
|
|
21773
21776
|
model: e,
|
|
21774
21777
|
domain: U,
|
|
21775
|
-
aggregateFields:
|
|
21778
|
+
aggregateFields: L,
|
|
21776
21779
|
context: r
|
|
21777
21780
|
}), de = {};
|
|
21778
21781
|
Object.entries(pe).forEach(([Ee, he]) => {
|
|
@@ -21815,7 +21818,7 @@ const oC = ({
|
|
|
21815
21818
|
a,
|
|
21816
21819
|
r,
|
|
21817
21820
|
d,
|
|
21818
|
-
|
|
21821
|
+
L,
|
|
21819
21822
|
l,
|
|
21820
21823
|
$,
|
|
21821
21824
|
B,
|
|
@@ -21945,7 +21948,7 @@ const oC = ({
|
|
|
21945
21948
|
onMoveToPosition: I,
|
|
21946
21949
|
onSelectAllInColumn: O,
|
|
21947
21950
|
isFirstColumn: D = !1,
|
|
21948
|
-
isLastColumn:
|
|
21951
|
+
isLastColumn: P = !1,
|
|
21949
21952
|
allColumns: M = [],
|
|
21950
21953
|
activeId: F = null,
|
|
21951
21954
|
overId: R = null,
|
|
@@ -21955,7 +21958,7 @@ const oC = ({
|
|
|
21955
21958
|
label: $,
|
|
21956
21959
|
originalValue: j
|
|
21957
21960
|
} = n, { t: Q } = Me(), { token: V } = yC(), [B, N] = E(!1), {
|
|
21958
|
-
records:
|
|
21961
|
+
records: L,
|
|
21959
21962
|
count: U,
|
|
21960
21963
|
aggregates: z,
|
|
21961
21964
|
colorsForRecords: Y,
|
|
@@ -21987,15 +21990,15 @@ const oC = ({
|
|
|
21987
21990
|
), ye(() => {
|
|
21988
21991
|
v(k, U);
|
|
21989
21992
|
}, [k, U, v]), Je(() => {
|
|
21990
|
-
b &&
|
|
21991
|
-
}, [k,
|
|
21993
|
+
b && L.length > 0 && b(k, L, Y, te);
|
|
21994
|
+
}, [k, L, Y, te, b]);
|
|
21992
21995
|
const { setNodeRef: W } = wf({
|
|
21993
21996
|
id: k
|
|
21994
|
-
}), me = K(() =>
|
|
21997
|
+
}), me = K(() => L.map((ue) => ue.id), [L]), ie = u !== void 0 && U > u, pe = K(() => z && Object.keys(z).length > 0 ? Object.values(z).map((ue) => `${ue.label}: ${ue.amount}`).join(", ") : null, [z]), de = X(null);
|
|
21995
21998
|
ye(() => {
|
|
21996
21999
|
pe && !be && !se && (de.current = pe);
|
|
21997
22000
|
}, [pe, be, se]);
|
|
21998
|
-
const Ee = K(() => pe && !be && !se ? pe : de.current ? de.current : be && z && Object.keys(z).length > 0 ? Object.values(z).map((ue) => `${ue.label}: ...`).join(", ") : null, [pe, z, be, se]), he = K(() => p ?
|
|
22001
|
+
const Ee = K(() => pe && !be && !se ? pe : de.current ? de.current : be && z && Object.keys(z).length > 0 ? Object.values(z).map((ue) => `${ue.label}: ...`).join(", ") : null, [pe, z, be, se]), he = K(() => p ? L.reduce((ue, ae) => (ue[ae.id] = () => p(ae), ue), {}) : {}, [L, p]), Ne = K(() => g ? L.reduce((ue, ae) => (ue[ae.id] = (J) => g(ae, k, J), ue), {}) : {}, [L, g, k]), je = K(() => L.some((ue) => te == null ? void 0 : te[ue.id]), [L, te]), ve = K(
|
|
21999
22002
|
() => M.filter((ue) => ue.id !== k),
|
|
22000
22003
|
[M, k]
|
|
22001
22004
|
), Ce = K(
|
|
@@ -22019,7 +22022,7 @@ const oC = ({
|
|
|
22019
22022
|
key: "selectAllCards",
|
|
22020
22023
|
label: Q("select_all_cards"),
|
|
22021
22024
|
icon: /* @__PURE__ */ s(TC, { size: 16 }),
|
|
22022
|
-
disabled:
|
|
22025
|
+
disabled: L.length === 0
|
|
22023
22026
|
}
|
|
22024
22027
|
]
|
|
22025
22028
|
},
|
|
@@ -22037,7 +22040,7 @@ const oC = ({
|
|
|
22037
22040
|
key: "moveRight",
|
|
22038
22041
|
label: Q("move_right"),
|
|
22039
22042
|
icon: /* @__PURE__ */ s(CC, { size: 16 }),
|
|
22040
|
-
disabled:
|
|
22043
|
+
disabled: P
|
|
22041
22044
|
},
|
|
22042
22045
|
{
|
|
22043
22046
|
key: "moveBefore",
|
|
@@ -22066,9 +22069,9 @@ const oC = ({
|
|
|
22066
22069
|
Q,
|
|
22067
22070
|
f,
|
|
22068
22071
|
D,
|
|
22069
|
-
|
|
22072
|
+
P,
|
|
22070
22073
|
ve,
|
|
22071
|
-
|
|
22074
|
+
L.length
|
|
22072
22075
|
]
|
|
22073
22076
|
), He = S(
|
|
22074
22077
|
({ key: ue }) => {
|
|
@@ -22114,12 +22117,12 @@ const oC = ({
|
|
|
22114
22117
|
), Ue = S(
|
|
22115
22118
|
(ue) => {
|
|
22116
22119
|
var J;
|
|
22117
|
-
const ae = (J =
|
|
22120
|
+
const ae = (J = L[ue]) == null ? void 0 : J.id;
|
|
22118
22121
|
return ae !== void 0 ? ae : `${k}-placeholder-${ue}`;
|
|
22119
22122
|
},
|
|
22120
|
-
[
|
|
22123
|
+
[L, k]
|
|
22121
22124
|
), xe = Of({
|
|
22122
|
-
count:
|
|
22125
|
+
count: L.length,
|
|
22123
22126
|
getScrollElement: () => Ve.current,
|
|
22124
22127
|
estimateSize: Re,
|
|
22125
22128
|
getItemKey: Ue,
|
|
@@ -22128,8 +22131,8 @@ const oC = ({
|
|
|
22128
22131
|
}), ge = xe.getVirtualItems();
|
|
22129
22132
|
return ye(() => {
|
|
22130
22133
|
const [ue] = [...ge].reverse();
|
|
22131
|
-
ue && ue.index >=
|
|
22132
|
-
}, [ge,
|
|
22134
|
+
ue && ue.index >= L.length - 5 && le && !fe && ne();
|
|
22135
|
+
}, [ge, L.length, le, fe, ne]), U === 0 && !l.drag ? null : /* @__PURE__ */ H(
|
|
22133
22136
|
"div",
|
|
22134
22137
|
{
|
|
22135
22138
|
style: {
|
|
@@ -22277,7 +22280,7 @@ const oC = ({
|
|
|
22277
22280
|
position: "relative"
|
|
22278
22281
|
},
|
|
22279
22282
|
children: ge.map((ue) => {
|
|
22280
|
-
const ae =
|
|
22283
|
+
const ae = L[ue.index];
|
|
22281
22284
|
return /* @__PURE__ */ s(
|
|
22282
22285
|
"div",
|
|
22283
22286
|
{
|
|
@@ -22336,7 +22339,7 @@ const oC = ({
|
|
|
22336
22339
|
] })
|
|
22337
22340
|
}
|
|
22338
22341
|
),
|
|
22339
|
-
|
|
22342
|
+
L.length === 0 && !be && /* @__PURE__ */ s(
|
|
22340
22343
|
"div",
|
|
22341
22344
|
{
|
|
22342
22345
|
style: {
|
|
@@ -22361,7 +22364,7 @@ const oC = ({
|
|
|
22361
22364
|
Ke,
|
|
22362
22365
|
{
|
|
22363
22366
|
type: "text",
|
|
22364
|
-
icon: /* @__PURE__ */ s(
|
|
22367
|
+
icon: /* @__PURE__ */ s(Pr, {}),
|
|
22365
22368
|
onClick: C,
|
|
22366
22369
|
style: {
|
|
22367
22370
|
width: "100%",
|
|
@@ -22508,9 +22511,9 @@ const oC = ({
|
|
|
22508
22511
|
onDragSuccess: x,
|
|
22509
22512
|
onOpenColumnInNewTab: w,
|
|
22510
22513
|
onSelectAllInColumn: _
|
|
22511
|
-
} = t, { t: T } = Me(), { showErrorNotification: I } = Et(), [O, D] = E(null), [
|
|
22514
|
+
} = t, { t: T } = Me(), { showErrorNotification: I } = Et(), [O, D] = E(null), [P, M] = E(null), [F, R] = E({}), [A, k] = E(null), [$, j] = E(
|
|
22512
22515
|
null
|
|
22513
|
-
), Q = X({}), V = X({}), B = X({}), N = X({}),
|
|
22516
|
+
), Q = X({}), V = X({}), B = X({}), N = X({}), L = X({}), U = X({}), [z, Y] = E([]), te = X(!1), { getColumnPrefs: ee, saveColumnPrefs: be } = IC(
|
|
22514
22517
|
o,
|
|
22515
22518
|
r
|
|
22516
22519
|
);
|
|
@@ -22576,7 +22579,7 @@ const oC = ({
|
|
|
22576
22579
|
[n, f, T]
|
|
22577
22580
|
), de = S(
|
|
22578
22581
|
(q) => {
|
|
22579
|
-
var
|
|
22582
|
+
var Pe;
|
|
22580
22583
|
const { over: Z, active: ce } = q;
|
|
22581
22584
|
if (!Z) {
|
|
22582
22585
|
M(null), k(null), j(null);
|
|
@@ -22590,7 +22593,7 @@ const oC = ({
|
|
|
22590
22593
|
}
|
|
22591
22594
|
return;
|
|
22592
22595
|
}
|
|
22593
|
-
const Se = Z.id, Ie = (
|
|
22596
|
+
const Se = Z.id, Ie = (Pe = Z.data.current) == null ? void 0 : Pe.columnId;
|
|
22594
22597
|
if (Ie) {
|
|
22595
22598
|
if (M(Ie), Se !== ce.id) {
|
|
22596
22599
|
k(Se);
|
|
@@ -22634,13 +22637,13 @@ const oC = ({
|
|
|
22634
22637
|
(q, Z, ce, Se) => {
|
|
22635
22638
|
const Ae = (U.current[q] || []).filter(
|
|
22636
22639
|
(De) => De !== Se
|
|
22637
|
-
),
|
|
22638
|
-
if (
|
|
22640
|
+
), Pe = Ae.indexOf(Z);
|
|
22641
|
+
if (Pe === -1)
|
|
22639
22642
|
return { prevId: null, nextId: null };
|
|
22640
22643
|
if (ce === "above")
|
|
22641
|
-
return { prevId:
|
|
22644
|
+
return { prevId: Pe > 0 ? Ae[Pe - 1] : null, nextId: Z };
|
|
22642
22645
|
{
|
|
22643
|
-
const De = Z, qe =
|
|
22646
|
+
const De = Z, qe = Pe < Ae.length - 1 ? Ae[Pe + 1] : null;
|
|
22644
22647
|
return { prevId: De, nextId: qe };
|
|
22645
22648
|
}
|
|
22646
22649
|
},
|
|
@@ -22654,14 +22657,14 @@ const oC = ({
|
|
|
22654
22657
|
},
|
|
22655
22658
|
[g]
|
|
22656
22659
|
), je = S(() => {
|
|
22657
|
-
Object.values(
|
|
22660
|
+
Object.values(L.current).forEach((q) => {
|
|
22658
22661
|
q && q.refresh();
|
|
22659
22662
|
});
|
|
22660
22663
|
}, []), ve = S(
|
|
22661
22664
|
(q, Z) => {
|
|
22662
|
-
const ce =
|
|
22665
|
+
const ce = L.current[Z];
|
|
22663
22666
|
ce && ce.refresh();
|
|
22664
|
-
const Se =
|
|
22667
|
+
const Se = L.current[q];
|
|
22665
22668
|
Se && Se.refresh();
|
|
22666
22669
|
},
|
|
22667
22670
|
[]
|
|
@@ -22695,10 +22698,10 @@ const oC = ({
|
|
|
22695
22698
|
Y((Se) => {
|
|
22696
22699
|
if (Se.indexOf(q) === -1)
|
|
22697
22700
|
return Se;
|
|
22698
|
-
const Ae = Se.filter((qe) => qe !== q),
|
|
22699
|
-
if (
|
|
22701
|
+
const Ae = Se.filter((qe) => qe !== q), Pe = Ae.indexOf(Z);
|
|
22702
|
+
if (Pe === -1)
|
|
22700
22703
|
return Se;
|
|
22701
|
-
const De = ce === "before" ?
|
|
22704
|
+
const De = ce === "before" ? Pe : Pe + 1;
|
|
22702
22705
|
return Ae.splice(De, 0, q), se(Ae, F), Ae;
|
|
22703
22706
|
});
|
|
22704
22707
|
},
|
|
@@ -22718,7 +22721,7 @@ const oC = ({
|
|
|
22718
22721
|
Ae();
|
|
22719
22722
|
return;
|
|
22720
22723
|
}
|
|
22721
|
-
const
|
|
22724
|
+
const Pe = Z.id, De = N.current[Pe];
|
|
22722
22725
|
if (!De) {
|
|
22723
22726
|
Ae();
|
|
22724
22727
|
return;
|
|
@@ -22753,13 +22756,13 @@ const oC = ({
|
|
|
22753
22756
|
qe.id,
|
|
22754
22757
|
Vt,
|
|
22755
22758
|
tn,
|
|
22756
|
-
|
|
22759
|
+
Pe
|
|
22757
22760
|
);
|
|
22758
22761
|
(dn !== null || Cn !== null) && await ne({
|
|
22759
22762
|
model: r,
|
|
22760
22763
|
action: "reorder_element",
|
|
22761
22764
|
payload: [
|
|
22762
|
-
|
|
22765
|
+
Pe,
|
|
22763
22766
|
dn,
|
|
22764
22767
|
Cn,
|
|
22765
22768
|
f.sort || null,
|
|
@@ -22767,7 +22770,7 @@ const oC = ({
|
|
|
22767
22770
|
]
|
|
22768
22771
|
});
|
|
22769
22772
|
}
|
|
22770
|
-
const cn =
|
|
22773
|
+
const cn = L.current[qe.id];
|
|
22771
22774
|
cn && cn.refresh();
|
|
22772
22775
|
return;
|
|
22773
22776
|
}
|
|
@@ -22786,14 +22789,14 @@ const oC = ({
|
|
|
22786
22789
|
model: r,
|
|
22787
22790
|
action: bt,
|
|
22788
22791
|
payload: [
|
|
22789
|
-
[
|
|
22792
|
+
[Pe],
|
|
22790
22793
|
f.column_field,
|
|
22791
22794
|
Qe != null && Qe.id ? parseInt(Qe == null ? void 0 : Qe.id) : null,
|
|
22792
22795
|
at != null && at.id ? parseInt(at == null ? void 0 : at.id) : null,
|
|
22793
22796
|
{
|
|
22794
22797
|
...a,
|
|
22795
|
-
active_id:
|
|
22796
|
-
active_ids: [
|
|
22798
|
+
active_id: Pe,
|
|
22799
|
+
active_ids: [Pe]
|
|
22797
22800
|
}
|
|
22798
22801
|
]
|
|
22799
22802
|
});
|
|
@@ -22808,13 +22811,13 @@ const oC = ({
|
|
|
22808
22811
|
qe.id,
|
|
22809
22812
|
Vt,
|
|
22810
22813
|
tn,
|
|
22811
|
-
|
|
22814
|
+
Pe
|
|
22812
22815
|
);
|
|
22813
22816
|
(cn !== null || dn !== null) && await ne({
|
|
22814
22817
|
model: r,
|
|
22815
22818
|
action: "reorder_element",
|
|
22816
22819
|
payload: [
|
|
22817
|
-
|
|
22820
|
+
Pe,
|
|
22818
22821
|
cn,
|
|
22819
22822
|
dn,
|
|
22820
22823
|
f.sort || null,
|
|
@@ -22853,7 +22856,7 @@ const oC = ({
|
|
|
22853
22856
|
);
|
|
22854
22857
|
const ze = S(
|
|
22855
22858
|
(q, Z) => {
|
|
22856
|
-
Z ?
|
|
22859
|
+
Z ? L.current[q] = Z : delete L.current[q], y(q, Z);
|
|
22857
22860
|
},
|
|
22858
22861
|
[y]
|
|
22859
22862
|
), Re = wt(() => {
|
|
@@ -22947,7 +22950,7 @@ const oC = ({
|
|
|
22947
22950
|
selectedCardIds: h,
|
|
22948
22951
|
onCountChange: v,
|
|
22949
22952
|
onRecordsUpdate: Ne,
|
|
22950
|
-
isOver:
|
|
22953
|
+
isOver: P === q.id,
|
|
22951
22954
|
onAddCardClick: Ue[q.id],
|
|
22952
22955
|
onRefreshAll: je,
|
|
22953
22956
|
onOpenColumnInNewTab: J,
|
|
@@ -23020,10 +23023,10 @@ const oC = ({
|
|
|
23020
23023
|
if (O === "selection") {
|
|
23021
23024
|
const D = i.selection || i.selectionValues;
|
|
23022
23025
|
if (D)
|
|
23023
|
-
return D.map(([
|
|
23024
|
-
id: String(
|
|
23026
|
+
return D.map(([P, M]) => ({
|
|
23027
|
+
id: String(P),
|
|
23025
23028
|
label: String(M),
|
|
23026
|
-
originalValue:
|
|
23029
|
+
originalValue: P
|
|
23027
23030
|
}));
|
|
23028
23031
|
}
|
|
23029
23032
|
return null;
|
|
@@ -23075,14 +23078,14 @@ const oC = ({
|
|
|
23075
23078
|
}
|
|
23076
23079
|
p(!0), h(null);
|
|
23077
23080
|
try {
|
|
23078
|
-
const D = bn(n, a),
|
|
23081
|
+
const D = bn(n, a), P = await y({
|
|
23079
23082
|
model: e,
|
|
23080
23083
|
params: D,
|
|
23081
23084
|
context: r,
|
|
23082
23085
|
fieldsToRetrieve: [o],
|
|
23083
23086
|
limit: 1e3
|
|
23084
23087
|
}), M = /* @__PURE__ */ new Map();
|
|
23085
|
-
|
|
23088
|
+
P.forEach((R) => {
|
|
23086
23089
|
const A = R[o], k = Un(
|
|
23087
23090
|
A,
|
|
23088
23091
|
i,
|
|
@@ -23170,7 +23173,7 @@ const oC = ({
|
|
|
23170
23173
|
) && n.fields.state && B.push("state"), [...new Set(B)];
|
|
23171
23174
|
}, [x, n.fields]), {
|
|
23172
23175
|
columns: D,
|
|
23173
|
-
isLoading:
|
|
23176
|
+
isLoading: P,
|
|
23174
23177
|
error: M
|
|
23175
23178
|
} = OC({
|
|
23176
23179
|
model: r,
|
|
@@ -23184,14 +23187,14 @@ const oC = ({
|
|
|
23184
23187
|
}), F = X(/* @__PURE__ */ new Map()), R = X(null), A = X({});
|
|
23185
23188
|
ye(() => {
|
|
23186
23189
|
const B = d && d.trim().length > 0, N = b.current && typeof b.current == "string" && b.current.trim().length > 0;
|
|
23187
|
-
!B && N && F.current.forEach((
|
|
23188
|
-
|
|
23190
|
+
!B && N && F.current.forEach((L) => {
|
|
23191
|
+
L.refresh();
|
|
23189
23192
|
}), b.current = d;
|
|
23190
23193
|
}, [d]);
|
|
23191
23194
|
const k = S((B) => {
|
|
23192
23195
|
B.forEach((N) => {
|
|
23193
|
-
const
|
|
23194
|
-
|
|
23196
|
+
const L = F.current.get(N);
|
|
23197
|
+
L && L.refresh();
|
|
23195
23198
|
});
|
|
23196
23199
|
}, []);
|
|
23197
23200
|
en(
|
|
@@ -23217,11 +23220,11 @@ const oC = ({
|
|
|
23217
23220
|
...A.current,
|
|
23218
23221
|
[B]: N
|
|
23219
23222
|
};
|
|
23220
|
-
const
|
|
23223
|
+
const L = Object.values(A.current).reduce(
|
|
23221
23224
|
(U, z) => U + z,
|
|
23222
23225
|
0
|
|
23223
23226
|
);
|
|
23224
|
-
p == null || p(
|
|
23227
|
+
p == null || p(L);
|
|
23225
23228
|
},
|
|
23226
23229
|
[p]
|
|
23227
23230
|
), Q = S(
|
|
@@ -23231,8 +23234,8 @@ const oC = ({
|
|
|
23231
23234
|
[k]
|
|
23232
23235
|
);
|
|
23233
23236
|
ye(() => {
|
|
23234
|
-
m == null || m(
|
|
23235
|
-
}, [
|
|
23237
|
+
m == null || m(P);
|
|
23238
|
+
}, [P, m]);
|
|
23236
23239
|
const V = wt(() => _ ? /* @__PURE__ */ s(
|
|
23237
23240
|
Ut,
|
|
23238
23241
|
{
|
|
@@ -23249,7 +23252,7 @@ const oC = ({
|
|
|
23249
23252
|
type: "error",
|
|
23250
23253
|
showIcon: !0
|
|
23251
23254
|
}
|
|
23252
|
-
) : !x ||
|
|
23255
|
+
) : !x || P && D.length === 0 ? /* @__PURE__ */ s(ct, { size: "large" }) : /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
|
|
23253
23256
|
FC,
|
|
23254
23257
|
{
|
|
23255
23258
|
ref: R,
|
|
@@ -23280,7 +23283,7 @@ const oC = ({
|
|
|
23280
23283
|
M,
|
|
23281
23284
|
x,
|
|
23282
23285
|
D,
|
|
23283
|
-
|
|
23286
|
+
P,
|
|
23284
23287
|
r,
|
|
23285
23288
|
n.view_id,
|
|
23286
23289
|
o,
|
|
@@ -23348,7 +23351,7 @@ const oC = ({
|
|
|
23348
23351
|
setSearchValues: C,
|
|
23349
23352
|
searchTreeNameSearch: x,
|
|
23350
23353
|
setSearchTreeNameSearch: w
|
|
23351
|
-
} = pi({ useLocalState: !1 }), [_, T] = E(!1), [I, O] = E(), [D,
|
|
23354
|
+
} = pi({ useLocalState: !1 }), [_, T] = E(!1), [I, O] = E(), [D, P] = E(null), [M, F] = E(null), R = d, A = X(null), k = X(null), $ = X(null), j = X({}), Q = ni({
|
|
23352
23355
|
elementRef: A,
|
|
23353
23356
|
offset: kC,
|
|
23354
23357
|
dependencies: [$.current],
|
|
@@ -23382,7 +23385,7 @@ const oC = ({
|
|
|
23382
23385
|
return (Re == null ? void 0 : Re.id) ?? null;
|
|
23383
23386
|
},
|
|
23384
23387
|
[n.fields, u]
|
|
23385
|
-
),
|
|
23388
|
+
), L = S((Fe) => {
|
|
23386
23389
|
O(Fe), T(!0);
|
|
23387
23390
|
}, []), U = S(
|
|
23388
23391
|
(Fe, Ve) => {
|
|
@@ -23410,7 +23413,7 @@ const oC = ({
|
|
|
23410
23413
|
},
|
|
23411
23414
|
[te]
|
|
23412
23415
|
), fe = S((Fe) => {
|
|
23413
|
-
|
|
23416
|
+
P(Fe), O(void 0), T(!0);
|
|
23414
23417
|
}, []), se = S(
|
|
23415
23418
|
(Fe, Ve, ze) => {
|
|
23416
23419
|
var Re, Ue, xe;
|
|
@@ -23441,14 +23444,14 @@ const oC = ({
|
|
|
23441
23444
|
(Fe) => {
|
|
23442
23445
|
T(!1);
|
|
23443
23446
|
const Ve = I;
|
|
23444
|
-
O(void 0),
|
|
23447
|
+
O(void 0), P(null), se(Fe == null ? void 0 : Fe.id, Fe == null ? void 0 : Fe.values, Ve);
|
|
23445
23448
|
},
|
|
23446
23449
|
[I, se]
|
|
23447
23450
|
), oe = S(
|
|
23448
23451
|
(Fe, Ve) => {
|
|
23449
23452
|
var ze;
|
|
23450
23453
|
if (T(!1), D && B)
|
|
23451
|
-
(ze = R.current) == null || ze.refreshColumns([D.id]),
|
|
23454
|
+
(ze = R.current) == null || ze.refreshColumns([D.id]), P(null);
|
|
23452
23455
|
else {
|
|
23453
23456
|
const Re = I;
|
|
23454
23457
|
O(void 0), se(Fe, Ve, Re);
|
|
@@ -23603,7 +23606,7 @@ const oC = ({
|
|
|
23603
23606
|
context: o,
|
|
23604
23607
|
searchParams: y || [],
|
|
23605
23608
|
nameSearch: x,
|
|
23606
|
-
onCardClick:
|
|
23609
|
+
onCardClick: L,
|
|
23607
23610
|
onCardSelect: ee,
|
|
23608
23611
|
onColumnRecordIdsChange: U,
|
|
23609
23612
|
selectedCardIds: Be,
|
|
@@ -23631,8 +23634,8 @@ const oC = ({
|
|
|
23631
23634
|
}
|
|
23632
23635
|
)
|
|
23633
23636
|
] }) : null;
|
|
23634
|
-
},
|
|
23635
|
-
async function
|
|
23637
|
+
}, PC = nt($C);
|
|
23638
|
+
async function LC(t) {
|
|
23636
23639
|
const e = await Promise.all(
|
|
23637
23640
|
t.map(async (r) => {
|
|
23638
23641
|
try {
|
|
@@ -23701,7 +23704,7 @@ function HC(t, e) {
|
|
|
23701
23704
|
currentPage: C,
|
|
23702
23705
|
order: x,
|
|
23703
23706
|
openComments: w
|
|
23704
|
-
} = t, [_, T] = E(), [I, O] = E([]), [D,
|
|
23707
|
+
} = t, [_, T] = E(), [I, O] = E([]), [D, P] = E(!0), M = p || void 0, [F, R] = E(M), [A, k] = E([]), [$, j] = E(), [Q, V] = E([]), [B, N] = E(), [L, U] = E(), [z, Y] = E(!1), [te, ee] = E(!1), [be, fe] = E(), { t: se } = Me(), { showErrorNotification: le } = Et(), {
|
|
23705
23708
|
permissions: oe,
|
|
23706
23709
|
loading: ne,
|
|
23707
23710
|
error: W
|
|
@@ -23740,7 +23743,7 @@ function HC(t, e) {
|
|
|
23740
23743
|
canWeClose: Ge
|
|
23741
23744
|
}));
|
|
23742
23745
|
const Be = S(async () => {
|
|
23743
|
-
|
|
23746
|
+
P(!0);
|
|
23744
23747
|
const Re = [], Ue = [];
|
|
23745
23748
|
for (const ue of i) {
|
|
23746
23749
|
const [ae, J] = ue;
|
|
@@ -23756,7 +23759,7 @@ function HC(t, e) {
|
|
|
23756
23759
|
viewTuple: ue
|
|
23757
23760
|
});
|
|
23758
23761
|
}
|
|
23759
|
-
const xe = await
|
|
23762
|
+
const xe = await LC(Ue);
|
|
23760
23763
|
for (const ue of xe) {
|
|
23761
23764
|
if (!ue)
|
|
23762
23765
|
continue;
|
|
@@ -23842,7 +23845,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
23842
23845
|
action_id: g,
|
|
23843
23846
|
action_type: h
|
|
23844
23847
|
})
|
|
23845
|
-
), ve == null || ve(c)), He(ge), O(Re),
|
|
23848
|
+
), ve == null || ve(c)), He(ge), O(Re), P(!1);
|
|
23846
23849
|
}, [
|
|
23847
23850
|
l,
|
|
23848
23851
|
He,
|
|
@@ -23959,7 +23962,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
23959
23962
|
currentModel: r,
|
|
23960
23963
|
sorter: B,
|
|
23961
23964
|
setSorter: N,
|
|
23962
|
-
totalItems:
|
|
23965
|
+
totalItems: L,
|
|
23963
23966
|
setTotalItems: U,
|
|
23964
23967
|
selectedRowItems: A,
|
|
23965
23968
|
setSelectedRowItems: k,
|
|
@@ -24104,7 +24107,7 @@ const jC = ({
|
|
|
24104
24107
|
);
|
|
24105
24108
|
case "kanban":
|
|
24106
24109
|
return /* @__PURE__ */ s(
|
|
24107
|
-
|
|
24110
|
+
PC,
|
|
24108
24111
|
{
|
|
24109
24112
|
visible: r.type === b.type && r.view_id === b.view_id,
|
|
24110
24113
|
kanbanView: b,
|
|
@@ -24164,7 +24167,7 @@ function zC(t, e) {
|
|
|
24164
24167
|
refresh: () => {
|
|
24165
24168
|
w();
|
|
24166
24169
|
},
|
|
24167
|
-
configDashboard:
|
|
24170
|
+
configDashboard: P
|
|
24168
24171
|
}));
|
|
24169
24172
|
async function w() {
|
|
24170
24173
|
l(!0), m(!0), u(void 0);
|
|
@@ -24277,7 +24280,7 @@ function zC(t, e) {
|
|
|
24277
24280
|
context: r
|
|
24278
24281
|
});
|
|
24279
24282
|
}
|
|
24280
|
-
async function
|
|
24283
|
+
async function P() {
|
|
24281
24284
|
p(i);
|
|
24282
24285
|
}
|
|
24283
24286
|
return c ? /* @__PURE__ */ s(Zt, {}) : f ? (console.error(f), /* @__PURE__ */ s(Ut, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(WC, { onPositionItemsChanged: D, children: a.map((M, F) => {
|
|
@@ -24287,7 +24290,7 @@ function zC(t, e) {
|
|
|
24287
24290
|
key: V,
|
|
24288
24291
|
title: B,
|
|
24289
24292
|
description: N,
|
|
24290
|
-
views:
|
|
24293
|
+
views: L,
|
|
24291
24294
|
model: U,
|
|
24292
24295
|
context: z,
|
|
24293
24296
|
domain: Y,
|
|
@@ -24306,7 +24309,7 @@ function zC(t, e) {
|
|
|
24306
24309
|
fe = /* @__PURE__ */ s(
|
|
24307
24310
|
ne,
|
|
24308
24311
|
{
|
|
24309
|
-
view_id:
|
|
24312
|
+
view_id: L.filter(
|
|
24310
24313
|
(W) => W[1] === "graph"
|
|
24311
24314
|
)[0][0],
|
|
24312
24315
|
model: U,
|
|
@@ -24321,7 +24324,7 @@ function zC(t, e) {
|
|
|
24321
24324
|
Cd,
|
|
24322
24325
|
{
|
|
24323
24326
|
model: U,
|
|
24324
|
-
view_id:
|
|
24327
|
+
view_id: L.filter(
|
|
24325
24328
|
(oe) => oe[1] === "form"
|
|
24326
24329
|
)[0][0],
|
|
24327
24330
|
actionDomain: Y
|
|
@@ -24334,12 +24337,12 @@ function zC(t, e) {
|
|
|
24334
24337
|
{
|
|
24335
24338
|
model: U,
|
|
24336
24339
|
domain: Y,
|
|
24337
|
-
view_id:
|
|
24340
|
+
view_id: L.filter(
|
|
24338
24341
|
(oe) => oe[1] === "tree"
|
|
24339
24342
|
)[0][0],
|
|
24340
24343
|
treeExpandable: R.treeExpandable,
|
|
24341
24344
|
onRowClicked: (oe) => {
|
|
24342
|
-
const ne =
|
|
24345
|
+
const ne = L.find((W) => {
|
|
24343
24346
|
const [, me] = W;
|
|
24344
24347
|
return me === "form";
|
|
24345
24348
|
});
|
|
@@ -24373,7 +24376,7 @@ function zC(t, e) {
|
|
|
24373
24376
|
action_type: Q,
|
|
24374
24377
|
tabKey: V,
|
|
24375
24378
|
title: B,
|
|
24376
|
-
views:
|
|
24379
|
+
views: L,
|
|
24377
24380
|
model: U,
|
|
24378
24381
|
context: z,
|
|
24379
24382
|
domain: Y,
|
|
@@ -24386,7 +24389,7 @@ function zC(t, e) {
|
|
|
24386
24389
|
);
|
|
24387
24390
|
}
|
|
24388
24391
|
let se;
|
|
24389
|
-
const le =
|
|
24392
|
+
const le = L.find((oe) => {
|
|
24390
24393
|
const [, ne] = oe;
|
|
24391
24394
|
return ne === "tree";
|
|
24392
24395
|
});
|
|
@@ -24442,7 +24445,7 @@ const YC = zt(zC), qC = (t) => {
|
|
|
24442
24445
|
if (n.domain) {
|
|
24443
24446
|
const O = await G.getHandler().evalDomain({
|
|
24444
24447
|
domain: n.domain,
|
|
24445
|
-
values:
|
|
24448
|
+
values: Ln({
|
|
24446
24449
|
fields: v == null ? void 0 : v.getFields(),
|
|
24447
24450
|
values: v.getAllHierarchyValues()
|
|
24448
24451
|
}),
|
|
@@ -24457,10 +24460,10 @@ const YC = zt(zC), qC = (t) => {
|
|
|
24457
24460
|
params: I,
|
|
24458
24461
|
fieldsToRetrieve: [h],
|
|
24459
24462
|
context: { ...b == null ? void 0 : b(), ...p }
|
|
24460
|
-
})).map((
|
|
24461
|
-
const M =
|
|
24463
|
+
})).map((P) => {
|
|
24464
|
+
const M = P[h];
|
|
24462
24465
|
let F = M;
|
|
24463
|
-
return Array.isArray(M) && (F = M[1]), { label: F, value:
|
|
24466
|
+
return Array.isArray(M) && (F = M[1]), { label: F, value: P.id };
|
|
24464
24467
|
});
|
|
24465
24468
|
d(D);
|
|
24466
24469
|
} catch (O) {
|
|
@@ -24476,12 +24479,12 @@ const YC = zt(zC), qC = (t) => {
|
|
|
24476
24479
|
}, _ = () => {
|
|
24477
24480
|
T([]);
|
|
24478
24481
|
}, T = (I) => {
|
|
24479
|
-
const O = o.map((
|
|
24480
|
-
...
|
|
24482
|
+
const O = o.map((P) => I.includes(P.id) ? P.operation === "pendingRemove" ? {
|
|
24483
|
+
...P,
|
|
24481
24484
|
operation: "original"
|
|
24482
|
-
} :
|
|
24483
|
-
I.filter((
|
|
24484
|
-
O.push({ id:
|
|
24485
|
+
} : P : { id: P.id, operation: "pendingRemove" }), D = O.map((P) => P.id);
|
|
24486
|
+
I.filter((P) => !D.includes(P)).forEach((P) => {
|
|
24487
|
+
O.push({ id: P, operation: "pendingLink" });
|
|
24485
24488
|
}), C(O);
|
|
24486
24489
|
};
|
|
24487
24490
|
return f && a.length === 0 ? /* @__PURE__ */ s(ct, {}) : /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ H("div", { className: "flex flex-row", children: [
|
|
@@ -24600,7 +24603,7 @@ const YC = zt(zC), qC = (t) => {
|
|
|
24600
24603
|
borderTop: "16px solid transparent",
|
|
24601
24604
|
borderBottom: "16px solid transparent"
|
|
24602
24605
|
}), m = (p) => {
|
|
24603
|
-
const g =
|
|
24606
|
+
const g = Lt(p);
|
|
24604
24607
|
return g && /* @__PURE__ */ s(g, {});
|
|
24605
24608
|
};
|
|
24606
24609
|
return /* @__PURE__ */ s("ul", { style: c, children: (t.value || []).map((p, g) => /* @__PURE__ */ H("li", { style: l(p.active), children: [
|
|
@@ -24672,7 +24675,7 @@ const ux = (t) => {
|
|
|
24672
24675
|
/* @__PURE__ */ s(lx, { children: /* @__PURE__ */ s(dx, { text: e.text }) })
|
|
24673
24676
|
] }, e.id);
|
|
24674
24677
|
}, qa = (t) => {
|
|
24675
|
-
const e =
|
|
24678
|
+
const e = Lt(t);
|
|
24676
24679
|
return e && /* @__PURE__ */ s(e, {});
|
|
24677
24680
|
}, fx = (t) => {
|
|
24678
24681
|
const { value: e, ooui: n } = t, r = (e || []).map((o) => {
|
|
@@ -24721,7 +24724,7 @@ const ux = (t) => {
|
|
|
24721
24724
|
}
|
|
24722
24725
|
function c(f) {
|
|
24723
24726
|
if (f) {
|
|
24724
|
-
const u =
|
|
24727
|
+
const u = Lt(f);
|
|
24725
24728
|
return u && /* @__PURE__ */ s(u, {});
|
|
24726
24729
|
}
|
|
24727
24730
|
}
|
|
@@ -24864,7 +24867,7 @@ function _x(t, e) {
|
|
|
24864
24867
|
return console.error(N), [];
|
|
24865
24868
|
}
|
|
24866
24869
|
})();
|
|
24867
|
-
|
|
24870
|
+
P({
|
|
24868
24871
|
...F,
|
|
24869
24872
|
limit: k,
|
|
24870
24873
|
context: { ...c, ...V },
|
|
@@ -24888,7 +24891,7 @@ function _x(t, e) {
|
|
|
24888
24891
|
type: "form",
|
|
24889
24892
|
context: c
|
|
24890
24893
|
});
|
|
24891
|
-
return await
|
|
24894
|
+
return await P({
|
|
24892
24895
|
action_id: -1,
|
|
24893
24896
|
action_type: Nn,
|
|
24894
24897
|
model: F,
|
|
@@ -24923,7 +24926,7 @@ function _x(t, e) {
|
|
|
24923
24926
|
});
|
|
24924
24927
|
return;
|
|
24925
24928
|
}
|
|
24926
|
-
const [B, N] = F.split(","),
|
|
24929
|
+
const [B, N] = F.split(","), L = an(N), U = V.context, z = Mn({
|
|
24927
24930
|
context: U,
|
|
24928
24931
|
values: d
|
|
24929
24932
|
}), Y = V.domain, te = await (async () => {
|
|
@@ -24970,7 +24973,7 @@ function _x(t, e) {
|
|
|
24970
24973
|
const [ie, pe] = W[0];
|
|
24971
24974
|
me = { id: ie, type: pe };
|
|
24972
24975
|
}
|
|
24973
|
-
|
|
24976
|
+
P({
|
|
24974
24977
|
domain: [...te, ...j],
|
|
24975
24978
|
context: { ...c, ...z },
|
|
24976
24979
|
model: ee,
|
|
@@ -24979,7 +24982,7 @@ function _x(t, e) {
|
|
|
24979
24982
|
target: se,
|
|
24980
24983
|
initialView: me,
|
|
24981
24984
|
action_type: B,
|
|
24982
|
-
action_id:
|
|
24985
|
+
action_id: L,
|
|
24983
24986
|
values: R,
|
|
24984
24987
|
forced_values: A,
|
|
24985
24988
|
res_id: $,
|
|
@@ -25022,27 +25025,27 @@ function _x(t, e) {
|
|
|
25022
25025
|
domain: V,
|
|
25023
25026
|
views: B,
|
|
25024
25027
|
target: N,
|
|
25025
|
-
string:
|
|
25028
|
+
string: L,
|
|
25026
25029
|
limit: U
|
|
25027
25030
|
} = F, [z, Y] = B[0], te = { id: z, type: Y }, ee = Q, be = Mn({
|
|
25028
25031
|
context: ee,
|
|
25029
25032
|
values: { ...A, ...d }
|
|
25030
25033
|
}), fe = V, se = V ? await G.getHandler().evalDomain({
|
|
25031
25034
|
domain: V,
|
|
25032
|
-
values:
|
|
25035
|
+
values: Ln({
|
|
25033
25036
|
fields: R,
|
|
25034
25037
|
values: { ...A, ...d }
|
|
25035
25038
|
}),
|
|
25036
25039
|
fields: R,
|
|
25037
25040
|
context: { ...c, ...be }
|
|
25038
25041
|
}) : [];
|
|
25039
|
-
|
|
25042
|
+
P({
|
|
25040
25043
|
model: j,
|
|
25041
25044
|
target: N,
|
|
25042
25045
|
views: B,
|
|
25043
25046
|
context: { ...c, ...be },
|
|
25044
25047
|
domain: se,
|
|
25045
|
-
title:
|
|
25048
|
+
title: L,
|
|
25046
25049
|
initialView: te,
|
|
25047
25050
|
action_id: k,
|
|
25048
25051
|
action_type: $,
|
|
@@ -25065,18 +25068,18 @@ function _x(t, e) {
|
|
|
25065
25068
|
values: Q = {},
|
|
25066
25069
|
domain: V,
|
|
25067
25070
|
name: B
|
|
25068
|
-
} = F, N = `${A},${R}`,
|
|
25071
|
+
} = F, N = `${A},${R}`, L = await G.getHandler().getActionData({
|
|
25069
25072
|
action: N,
|
|
25070
25073
|
context: c
|
|
25071
|
-
}), U =
|
|
25074
|
+
}), U = L.context, z = Mn({
|
|
25072
25075
|
context: U,
|
|
25073
25076
|
values: { ...d, ...Q },
|
|
25074
25077
|
fields: {}
|
|
25075
25078
|
});
|
|
25076
25079
|
let Y = [];
|
|
25077
|
-
const te = V && V.length > 0 ? V :
|
|
25078
|
-
(V == null ? void 0 : V.length) > 0 ? Y = V :
|
|
25079
|
-
domain:
|
|
25080
|
+
const te = V && V.length > 0 ? V : L.domain;
|
|
25081
|
+
(V == null ? void 0 : V.length) > 0 ? Y = V : L.domain && (Y = await G.getHandler().evalDomain({
|
|
25082
|
+
domain: L.domain,
|
|
25080
25083
|
values: { ...d, ...Q },
|
|
25081
25084
|
context: { ...c, ...z }
|
|
25082
25085
|
}));
|
|
@@ -25087,7 +25090,7 @@ function _x(t, e) {
|
|
|
25087
25090
|
target: se,
|
|
25088
25091
|
view_type: le,
|
|
25089
25092
|
limit: oe
|
|
25090
|
-
} =
|
|
25093
|
+
} = L, ne = le === "tree", W = [];
|
|
25091
25094
|
for (const de of be) {
|
|
25092
25095
|
const [Ee, he] = de;
|
|
25093
25096
|
if (Ee)
|
|
@@ -25111,7 +25114,7 @@ function _x(t, e) {
|
|
|
25111
25114
|
} else
|
|
25112
25115
|
[me, ie] = W.find((de) => de[0] === void 0 ? !1 : de[0] === $);
|
|
25113
25116
|
const pe = { id: me, type: ie };
|
|
25114
|
-
|
|
25117
|
+
P({
|
|
25115
25118
|
domain: Y,
|
|
25116
25119
|
context: { ...c, ...z },
|
|
25117
25120
|
model: ee,
|
|
@@ -25151,7 +25154,7 @@ function _x(t, e) {
|
|
|
25151
25154
|
context: Q
|
|
25152
25155
|
});
|
|
25153
25156
|
}
|
|
25154
|
-
async function
|
|
25157
|
+
async function P(F) {
|
|
25155
25158
|
var ne;
|
|
25156
25159
|
const {
|
|
25157
25160
|
domain: R,
|
|
@@ -25163,7 +25166,7 @@ function _x(t, e) {
|
|
|
25163
25166
|
initialView: V,
|
|
25164
25167
|
action_id: B,
|
|
25165
25168
|
action_type: N,
|
|
25166
|
-
res_id:
|
|
25169
|
+
res_id: L,
|
|
25167
25170
|
values: U,
|
|
25168
25171
|
forced_values: z,
|
|
25169
25172
|
readOnly: Y,
|
|
@@ -25199,7 +25202,7 @@ function _x(t, e) {
|
|
|
25199
25202
|
actionData: {
|
|
25200
25203
|
action_id: B,
|
|
25201
25204
|
action_type: N,
|
|
25202
|
-
res_id:
|
|
25205
|
+
res_id: L,
|
|
25203
25206
|
view_id: W.view_id
|
|
25204
25207
|
}
|
|
25205
25208
|
});
|
|
@@ -25220,7 +25223,7 @@ function _x(t, e) {
|
|
|
25220
25223
|
domain: R,
|
|
25221
25224
|
setCanWeClose: C,
|
|
25222
25225
|
initialView: W,
|
|
25223
|
-
res_id:
|
|
25226
|
+
res_id: L,
|
|
25224
25227
|
formDefaultValues: U,
|
|
25225
25228
|
formForcedValues: z,
|
|
25226
25229
|
formReadOnly: Y,
|
|
@@ -25256,7 +25259,7 @@ function _x(t, e) {
|
|
|
25256
25259
|
$.push([N, B]);
|
|
25257
25260
|
}
|
|
25258
25261
|
const [j, Q] = $[0];
|
|
25259
|
-
return await
|
|
25262
|
+
return await P({
|
|
25260
25263
|
action_id: -1,
|
|
25261
25264
|
action_type: Nn,
|
|
25262
25265
|
model: F,
|
|
@@ -25275,7 +25278,7 @@ function _x(t, e) {
|
|
|
25275
25278
|
Dm,
|
|
25276
25279
|
{
|
|
25277
25280
|
openShortcut: O,
|
|
25278
|
-
openAction:
|
|
25281
|
+
openAction: P,
|
|
25279
25282
|
openRelate: I,
|
|
25280
25283
|
openDefaultActionForModel: D,
|
|
25281
25284
|
tabs: m,
|
|
@@ -25365,8 +25368,8 @@ export {
|
|
|
25365
25368
|
Nm as am,
|
|
25366
25369
|
As as an,
|
|
25367
25370
|
$m as ao,
|
|
25368
|
-
|
|
25369
|
-
|
|
25371
|
+
Lm as ap,
|
|
25372
|
+
Pm as aq,
|
|
25370
25373
|
Er as ar,
|
|
25371
25374
|
Ar as as,
|
|
25372
25375
|
Dc as at,
|
|
@@ -25400,4 +25403,4 @@ export {
|
|
|
25400
25403
|
zm as y,
|
|
25401
25404
|
YC as z
|
|
25402
25405
|
};
|
|
25403
|
-
//# sourceMappingURL=TabContent-
|
|
25406
|
+
//# sourceMappingURL=TabContent-e1cbbf1c.mjs.map
|