@gisce/react-ooui 1.4.11-rc.0 → 1.4.11-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Xe, { useContext as Y, useState as _, useEffect as pe, useRef as fe, useCallback as Le, forwardRef as bt, useImperativeHandle as xt } from "react";
|
|
2
|
-
import { Tooltip as mt, theme as He, Typography as an, Form as it, Row as xe, Col as ce, Modal as qe, Button as
|
|
2
|
+
import { Tooltip as mt, theme as He, Typography as an, Form as it, Row as xe, Col as ce, Modal as qe, Button as Ie, Dropdown as jt, Menu as Be, Spin as Me, Divider as ln, Space as Ye, Input as tt, Select as Ct, Checkbox as Pt, Alert as Qe, Timeline as ir, Statistic as ri, Card as oi, Tag as ii, message as xn, DatePicker as En, TimePicker as Mr, InputNumber as $n, Progress as si, Avatar as ai, Badge as li, Pagination as ci, Tabs as Er, Popover as di, Radio as sr, Switch as ui, Steps as ar, Layout as fi } from "antd";
|
|
3
3
|
import { Label as At, Field as In, Tree as $r, Reference as mi, Selection as Ln, Many2one as Lr, Boolean as hi, Container as pi, parseContext as wt, Form as Nr, Integer as Dn, SearchFieldTypes as ut, SearchFilter as gi, parseContextFields as Cn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Hr, parseGraph as Nn, graphFieldUtils as yi } from "@gisce/ooui";
|
|
4
4
|
import * as cr from "@ant-design/icons";
|
|
5
5
|
import Br, { QuestionCircleOutlined as jr, ExclamationCircleOutlined as ht, LoadingOutlined as nt, DownOutlined as Rt, WarningOutlined as Kr, CloseOutlined as Kt, CheckOutlined as kt, TranslationOutlined as Yr, FolderOpenOutlined as Pn, DownloadOutlined as Hn, ClearOutlined as Bn, StarFilled as Wr, StarOutlined as Ur, UpOutlined as vi, SearchOutlined as jn, RightCircleOutlined as wi, ThunderboltOutlined as Kn, PrinterOutlined as Yn, EnterOutlined as Gr, PlusSquareOutlined as bi, MinusSquareOutlined as xi, FileAddOutlined as cn, AlignLeftOutlined as Ci, ApiOutlined as Si, DeleteOutlined as Wn, LeftOutlined as qr, RightOutlined as zr, EyeOutlined as Ti, FormOutlined as Ht, TableOutlined as Un, AreaChartOutlined as Fi, CalendarOutlined as Oi, LinkOutlined as Jr, SaveOutlined as _i, CopyOutlined as Gn, InfoCircleOutlined as Zr, ReloadOutlined as dn, EditOutlined as Xr, FilterOutlined as Qr, CloseCircleFilled as Ii, BorderOuterOutlined as Di, SettingOutlined as Vi, ExportOutlined as Ai } from "@ant-design/icons";
|
|
6
6
|
import { Interweave as qn } from "interweave";
|
|
7
|
-
import { jsxs as P, jsx as n, Fragment as
|
|
7
|
+
import { jsxs as P, jsx as n, Fragment as ne } from "react/jsx-runtime";
|
|
8
8
|
import * as dr from "@tabler/icons-react";
|
|
9
9
|
import Ri from "antd/lib/input/TextArea";
|
|
10
10
|
import Yt from "styled-components";
|
|
@@ -337,7 +337,7 @@ const {
|
|
|
337
337
|
lang: r
|
|
338
338
|
} = e;
|
|
339
339
|
function i(o) {
|
|
340
|
-
return
|
|
340
|
+
return _e(o, r);
|
|
341
341
|
}
|
|
342
342
|
return /* @__PURE__ */ n(ve.Provider, {
|
|
343
343
|
value: {
|
|
@@ -346,7 +346,7 @@ const {
|
|
|
346
346
|
},
|
|
347
347
|
children: t
|
|
348
348
|
});
|
|
349
|
-
},
|
|
349
|
+
}, _e = (e, t) => {
|
|
350
350
|
var i;
|
|
351
351
|
return ((i = rs[t]) == null ? void 0 : i[e]) || e;
|
|
352
352
|
};
|
|
@@ -404,7 +404,7 @@ function ye({
|
|
|
404
404
|
flex: "auto",
|
|
405
405
|
children: p()
|
|
406
406
|
})]
|
|
407
|
-
}))() : (() => /* @__PURE__ */ P(
|
|
407
|
+
}))() : (() => /* @__PURE__ */ P(ne, {
|
|
408
408
|
children: [h, p()]
|
|
409
409
|
}))();
|
|
410
410
|
}
|
|
@@ -416,12 +416,12 @@ const {
|
|
|
416
416
|
lang: r
|
|
417
417
|
}) => {
|
|
418
418
|
is({
|
|
419
|
-
title:
|
|
419
|
+
title: _e("confirmation", r),
|
|
420
420
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
421
421
|
centered: !0,
|
|
422
422
|
content: t,
|
|
423
|
-
okText:
|
|
424
|
-
cancelText:
|
|
423
|
+
okText: _e("ok", r),
|
|
424
|
+
cancelText: _e("cancel", r),
|
|
425
425
|
onOk: e
|
|
426
426
|
});
|
|
427
427
|
}, Ne = Xe.createContext(null), ss = (e) => {
|
|
@@ -630,7 +630,7 @@ const to = (e) => {
|
|
|
630
630
|
}
|
|
631
631
|
return /* @__PURE__ */ n(ye, {
|
|
632
632
|
ooui: t,
|
|
633
|
-
children: /* @__PURE__ */ n(
|
|
633
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
634
634
|
block: !0,
|
|
635
635
|
disabled: !o || d,
|
|
636
636
|
onClick: g,
|
|
@@ -944,16 +944,16 @@ const no = (e) => {
|
|
|
944
944
|
p(!1), a();
|
|
945
945
|
}
|
|
946
946
|
function E() {
|
|
947
|
-
return c ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(
|
|
947
|
+
return c ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
948
948
|
children: [A(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(xe, {
|
|
949
949
|
justify: "end",
|
|
950
950
|
children: /* @__PURE__ */ P(Ye, {
|
|
951
|
-
children: [/* @__PURE__ */ n(
|
|
951
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
952
952
|
icon: /* @__PURE__ */ n(Kt, {}),
|
|
953
953
|
onClick: r,
|
|
954
954
|
disabled: y,
|
|
955
955
|
children: u("cancel")
|
|
956
|
-
}), /* @__PURE__ */ n(
|
|
956
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
957
957
|
icon: y ? /* @__PURE__ */ n(nt, {}) : /* @__PURE__ */ n(kt, {}),
|
|
958
958
|
disabled: y,
|
|
959
959
|
onClick: D,
|
|
@@ -987,7 +987,7 @@ function Je(e) {
|
|
|
987
987
|
} = e;
|
|
988
988
|
return /* @__PURE__ */ n(mt, {
|
|
989
989
|
title: t,
|
|
990
|
-
children: /* @__PURE__ */ n(
|
|
990
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
991
991
|
...r
|
|
992
992
|
})
|
|
993
993
|
});
|
|
@@ -1053,7 +1053,7 @@ const {
|
|
|
1053
1053
|
} = o || {}, [f, c] = _(!1), {
|
|
1054
1054
|
t: m
|
|
1055
1055
|
} = Y(ve);
|
|
1056
|
-
return s ? /* @__PURE__ */ P(
|
|
1056
|
+
return s ? /* @__PURE__ */ P(ne, {
|
|
1057
1057
|
children: [/* @__PURE__ */ n("div", {
|
|
1058
1058
|
onClick: () => {
|
|
1059
1059
|
if (u != null && u()) {
|
|
@@ -1088,7 +1088,7 @@ const {
|
|
|
1088
1088
|
c(!1), l == null || l();
|
|
1089
1089
|
}
|
|
1090
1090
|
})]
|
|
1091
|
-
}) : /* @__PURE__ */ n(
|
|
1091
|
+
}) : /* @__PURE__ */ n(ne, {
|
|
1092
1092
|
children: /* @__PURE__ */ P(xe, {
|
|
1093
1093
|
gutter: 8,
|
|
1094
1094
|
wrap: !1,
|
|
@@ -1376,7 +1376,7 @@ const Oa = (e) => {
|
|
|
1376
1376
|
function f() {
|
|
1377
1377
|
l(void 0);
|
|
1378
1378
|
}
|
|
1379
|
-
return /* @__PURE__ */ P(
|
|
1379
|
+
return /* @__PURE__ */ P(ne, {
|
|
1380
1380
|
children: [/* @__PURE__ */ P(xe, {
|
|
1381
1381
|
gutter: 8,
|
|
1382
1382
|
wrap: !1,
|
|
@@ -1681,7 +1681,7 @@ const Jn = async (e) => {
|
|
|
1681
1681
|
message: u,
|
|
1682
1682
|
type: "error",
|
|
1683
1683
|
banner: !0
|
|
1684
|
-
}) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(
|
|
1684
|
+
}) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
1685
1685
|
children: [/* @__PURE__ */ n(ir, {
|
|
1686
1686
|
style: {
|
|
1687
1687
|
padding: "1rem"
|
|
@@ -1753,7 +1753,7 @@ const Jn = async (e) => {
|
|
|
1753
1753
|
} = $a(), {
|
|
1754
1754
|
ooui: r,
|
|
1755
1755
|
value: i
|
|
1756
|
-
} = e, o = /* @__PURE__ */ P(
|
|
1756
|
+
} = e, o = /* @__PURE__ */ P(ne, {
|
|
1757
1757
|
children: [/* @__PURE__ */ P("span", {
|
|
1758
1758
|
children: [r.label, " "]
|
|
1759
1759
|
}), r.tooltip && /* @__PURE__ */ n(mt, {
|
|
@@ -2053,7 +2053,7 @@ const Mt = ({
|
|
|
2053
2053
|
message: u,
|
|
2054
2054
|
type: "error",
|
|
2055
2055
|
banner: !0
|
|
2056
|
-
}) : /* @__PURE__ */ n(
|
|
2056
|
+
}) : /* @__PURE__ */ n(ne, {
|
|
2057
2057
|
children: /* @__PURE__ */ n("div", {
|
|
2058
2058
|
className: "flex flex-row",
|
|
2059
2059
|
children: /* @__PURE__ */ n(Ct, {
|
|
@@ -2252,23 +2252,23 @@ const Mt = ({
|
|
|
2252
2252
|
lang: r
|
|
2253
2253
|
}) => {
|
|
2254
2254
|
nl({
|
|
2255
|
-
title:
|
|
2255
|
+
title: _e("unsavedChanges", r),
|
|
2256
2256
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
2257
2257
|
centered: !0,
|
|
2258
|
-
content:
|
|
2259
|
-
okText:
|
|
2258
|
+
content: _e("confirmCloseWithoutSave", r),
|
|
2259
|
+
okText: _e("closeWithoutSaving", r),
|
|
2260
2260
|
onOk: e,
|
|
2261
2261
|
onCancel: t,
|
|
2262
|
-
cancelText:
|
|
2262
|
+
cancelText: _e("cancel", r)
|
|
2263
2263
|
});
|
|
2264
2264
|
}, {
|
|
2265
2265
|
error: rl
|
|
2266
2266
|
} = qe, Sr = (e) => {
|
|
2267
2267
|
rl({
|
|
2268
|
-
title:
|
|
2268
|
+
title: _e("formHasErrors", e),
|
|
2269
2269
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
2270
2270
|
centered: !0,
|
|
2271
|
-
content:
|
|
2271
|
+
content: _e("fillRequiredFields", e)
|
|
2272
2272
|
});
|
|
2273
2273
|
}, {
|
|
2274
2274
|
warning: ol
|
|
@@ -2409,12 +2409,12 @@ const Mt = ({
|
|
|
2409
2409
|
attrs: Re
|
|
2410
2410
|
}), ee = Ze[0];
|
|
2411
2411
|
te.current = [...ee], J(Qt(Ze[1])), N(xr(Ze[1]));
|
|
2412
|
-
const
|
|
2412
|
+
const De = ee.map((ke) => ke.id), Ae = y !== void 0 ? It({
|
|
2413
2413
|
resultsToSort: ee,
|
|
2414
2414
|
sorter: y,
|
|
2415
2415
|
fields: { ...c.fields, ...m.fields }
|
|
2416
2416
|
}) : [...te.current];
|
|
2417
|
-
Z(Ae),
|
|
2417
|
+
Z(Ae), De.length > 0 ? h == null || h(0) : h == null || h(void 0);
|
|
2418
2418
|
} else
|
|
2419
2419
|
Z([]), h == null || h(void 0);
|
|
2420
2420
|
C(!1), u.current = !0;
|
|
@@ -2434,7 +2434,7 @@ const Mt = ({
|
|
|
2434
2434
|
async (ie) => {
|
|
2435
2435
|
const { params: de, newOffset: je } = ie || {}, we = hn(de || D, F), { colors: Re, status: Ze } = _t(c), ee = {};
|
|
2436
2436
|
Re && (ee.colors = Re), Ze && (ee.status = Ze);
|
|
2437
|
-
const { totalItems:
|
|
2437
|
+
const { totalItems: De, results: Ae, attrsEvaluated: ke } = await H.getHandler().searchForTree({
|
|
2438
2438
|
params: we,
|
|
2439
2439
|
limit: B.current,
|
|
2440
2440
|
offset: je || k,
|
|
@@ -2457,7 +2457,7 @@ const Mt = ({
|
|
|
2457
2457
|
} else
|
|
2458
2458
|
h == null || h(void 0);
|
|
2459
2459
|
C(!1);
|
|
2460
|
-
const me = await
|
|
2460
|
+
const me = await De;
|
|
2461
2461
|
O(me), f == null || f(me);
|
|
2462
2462
|
},
|
|
2463
2463
|
[
|
|
@@ -2947,13 +2947,13 @@ const Mt = ({
|
|
|
2947
2947
|
actionData: void 0
|
|
2948
2948
|
});
|
|
2949
2949
|
}
|
|
2950
|
-
return /* @__PURE__ */ n(
|
|
2950
|
+
return /* @__PURE__ */ n(ne, {
|
|
2951
2951
|
children: /* @__PURE__ */ n(Et.Provider, {
|
|
2952
2952
|
value: {
|
|
2953
2953
|
processAction: F,
|
|
2954
2954
|
globalValues: i
|
|
2955
2955
|
},
|
|
2956
|
-
children: /* @__PURE__ */ P(
|
|
2956
|
+
children: /* @__PURE__ */ P(ne, {
|
|
2957
2957
|
children: [r, /* @__PURE__ */ n(qe, {
|
|
2958
2958
|
title: c("generatingReport"),
|
|
2959
2959
|
open: a,
|
|
@@ -3103,10 +3103,10 @@ function Cl(e, t) {
|
|
|
3103
3103
|
setAttachments: Re = void 0,
|
|
3104
3104
|
title: Ze = void 0,
|
|
3105
3105
|
setTitle: ee = void 0
|
|
3106
|
-
} = (b ? We : {}) || {},
|
|
3106
|
+
} = (b ? We : {}) || {}, De = Y(Et), {
|
|
3107
3107
|
processAction: Ae,
|
|
3108
3108
|
globalValues: ke
|
|
3109
|
-
} =
|
|
3109
|
+
} = De || {};
|
|
3110
3110
|
xt(t, () => ({
|
|
3111
3111
|
submitForm: zt,
|
|
3112
3112
|
getFields: rt,
|
|
@@ -3131,8 +3131,8 @@ function Cl(e, t) {
|
|
|
3131
3131
|
elementHasLostFocus: !0
|
|
3132
3132
|
}), N(!1));
|
|
3133
3133
|
}, [W]);
|
|
3134
|
-
const le = (K, G, oe,
|
|
3135
|
-
de == null || de(!1), ie == null || ie(!1), s == null || s(K, G, oe,
|
|
3134
|
+
const le = (K, G, oe, re) => {
|
|
3135
|
+
de == null || de(!1), ie == null || ie(!1), s == null || s(K, G, oe, re), je == null || je(K);
|
|
3136
3136
|
}, me = () => {
|
|
3137
3137
|
ie == null || ie(!1), o == null || o();
|
|
3138
3138
|
}, Ue = (K) => {
|
|
@@ -3156,9 +3156,9 @@ function Cl(e, t) {
|
|
|
3156
3156
|
function Q() {
|
|
3157
3157
|
const K = Ke(), G = rt();
|
|
3158
3158
|
let oe = {};
|
|
3159
|
-
return Object.keys(K).forEach((
|
|
3160
|
-
const
|
|
3161
|
-
G[
|
|
3159
|
+
return Object.keys(K).forEach((re) => {
|
|
3160
|
+
const Te = K[re];
|
|
3161
|
+
G[re] && G[re].type === "many2one" && Te && Array.isArray(Te) && Te.length === 2 ? oe[re] = Te[0] : G[re] && (G[re].type === "one2many" || G[re].type === "many2many") && Te && Te.items ? oe[re] = Te.items.filter((yt) => yt.operation !== "pendingRemove").map((yt) => yt.id) : oe[re] = Te;
|
|
3162
3162
|
}), oe;
|
|
3163
3163
|
}
|
|
3164
3164
|
function se() {
|
|
@@ -3190,7 +3190,7 @@ function Cl(e, t) {
|
|
|
3190
3190
|
...ke
|
|
3191
3191
|
};
|
|
3192
3192
|
}
|
|
3193
|
-
const
|
|
3193
|
+
const Fe = async (K) => {
|
|
3194
3194
|
const G = ue() ? S == null ? void 0 : S.context : {};
|
|
3195
3195
|
return await H.getHandler().defaultGet({
|
|
3196
3196
|
model: r,
|
|
@@ -3201,7 +3201,7 @@ function Cl(e, t) {
|
|
|
3201
3201
|
},
|
|
3202
3202
|
extraValues: A
|
|
3203
3203
|
});
|
|
3204
|
-
},
|
|
3204
|
+
}, Oe = () => Object.keys(Tn({
|
|
3205
3205
|
source: te.current,
|
|
3206
3206
|
target: $e(O),
|
|
3207
3207
|
fields: O
|
|
@@ -3245,13 +3245,13 @@ function Cl(e, t) {
|
|
|
3245
3245
|
M(G != null && G.message ? G.message + G.stack : G), we == null || we(!1);
|
|
3246
3246
|
}
|
|
3247
3247
|
}, gt = async (K) => {
|
|
3248
|
-
let G, oe,
|
|
3249
|
-
we == null || we(!0), M(void 0), K != null && K.fields ? (oe = K.fields,
|
|
3248
|
+
let G, oe, re, Te;
|
|
3249
|
+
we == null || we(!0), M(void 0), K != null && K.fields ? (oe = K.fields, re = K.arch) : (oe = O, re = I), y && (K == null ? void 0 : K.forceRefresh) !== !0 ? G = y : {
|
|
3250
3250
|
values: G,
|
|
3251
|
-
defaultGetCalled:
|
|
3251
|
+
defaultGetCalled: Te
|
|
3252
3252
|
} = await Ko({
|
|
3253
3253
|
fields: oe,
|
|
3254
|
-
arch:
|
|
3254
|
+
arch: re
|
|
3255
3255
|
}), F && (G = {
|
|
3256
3256
|
...ja(F),
|
|
3257
3257
|
...G
|
|
@@ -3259,14 +3259,14 @@ function Cl(e, t) {
|
|
|
3259
3259
|
values: G,
|
|
3260
3260
|
fields: oe,
|
|
3261
3261
|
reset: !0,
|
|
3262
|
-
isDefaultGet:
|
|
3262
|
+
isDefaultGet: Te
|
|
3263
3263
|
}), Jt({
|
|
3264
3264
|
fields: oe,
|
|
3265
|
-
arch:
|
|
3265
|
+
arch: re,
|
|
3266
3266
|
values: G
|
|
3267
|
-
}), we == null || we(!1), de == null || de(!1),
|
|
3267
|
+
}), we == null || we(!1), de == null || de(!1), Te && N(!0);
|
|
3268
3268
|
}, nr = async () => new Promise(async (K) => {
|
|
3269
|
-
|
|
3269
|
+
Oe() ? Ut({
|
|
3270
3270
|
lang: C,
|
|
3271
3271
|
onOk: () => {
|
|
3272
3272
|
me == null || me(), K(!0);
|
|
@@ -3292,7 +3292,7 @@ function Cl(e, t) {
|
|
|
3292
3292
|
values: K,
|
|
3293
3293
|
fields: G,
|
|
3294
3294
|
reset: oe,
|
|
3295
|
-
isDefaultGet:
|
|
3295
|
+
isDefaultGet: re = !1
|
|
3296
3296
|
}) => {
|
|
3297
3297
|
const yt = {
|
|
3298
3298
|
...oe ? {} : k.getFieldsValue(!0),
|
|
@@ -3305,12 +3305,12 @@ function Cl(e, t) {
|
|
|
3305
3305
|
value: ni
|
|
3306
3306
|
};
|
|
3307
3307
|
});
|
|
3308
|
-
|
|
3308
|
+
re || (Z.current = wn), k.setFields(ti);
|
|
3309
3309
|
}, Ko = async ({
|
|
3310
3310
|
fields: K,
|
|
3311
3311
|
arch: G
|
|
3312
3312
|
}) => {
|
|
3313
|
-
let oe = {},
|
|
3313
|
+
let oe = {}, re = !1;
|
|
3314
3314
|
if (ue()) {
|
|
3315
3315
|
oe = (await H.getHandler().readObjects({
|
|
3316
3316
|
model: r,
|
|
@@ -3318,18 +3318,18 @@ function Cl(e, t) {
|
|
|
3318
3318
|
fields: K,
|
|
3319
3319
|
context: v
|
|
3320
3320
|
}))[0];
|
|
3321
|
-
const
|
|
3321
|
+
const Te = await H.getHandler().search({
|
|
3322
3322
|
params: [["res_model", "=", r], ["res_id", "=", ue()]],
|
|
3323
3323
|
fields: ["id", "name"],
|
|
3324
3324
|
context: Ce(),
|
|
3325
3325
|
model: "ir.attachment"
|
|
3326
3326
|
});
|
|
3327
|
-
Re == null || Re(
|
|
3327
|
+
Re == null || Re(Te);
|
|
3328
3328
|
} else
|
|
3329
|
-
Re == null || Re([]), oe = await
|
|
3329
|
+
Re == null || Re([]), oe = await Fe(K), re = !0;
|
|
3330
3330
|
return {
|
|
3331
3331
|
values: oe,
|
|
3332
|
-
defaultGetCalled:
|
|
3332
|
+
defaultGetCalled: re
|
|
3333
3333
|
};
|
|
3334
3334
|
}, rr = async (K) => {
|
|
3335
3335
|
const {
|
|
@@ -3355,7 +3355,7 @@ function Cl(e, t) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
}), te.current = $e(O);
|
|
3357
3357
|
} else {
|
|
3358
|
-
const oe = $e(O),
|
|
3358
|
+
const oe = $e(O), re = await H.getHandler().create({
|
|
3359
3359
|
model: r,
|
|
3360
3360
|
values: {
|
|
3361
3361
|
...oe,
|
|
@@ -3367,7 +3367,7 @@ function Cl(e, t) {
|
|
|
3367
3367
|
...S == null ? void 0 : S.context
|
|
3368
3368
|
}
|
|
3369
3369
|
});
|
|
3370
|
-
B.current =
|
|
3370
|
+
B.current = re, te.current = oe;
|
|
3371
3371
|
}
|
|
3372
3372
|
h && await h([ue()]), !g && G && (le == null || le(ue(), Ke(), se()));
|
|
3373
3373
|
}, Yo = async (K) => {
|
|
@@ -3380,19 +3380,19 @@ function Cl(e, t) {
|
|
|
3380
3380
|
const {
|
|
3381
3381
|
callOnSubmitSucceed: oe = !0
|
|
3382
3382
|
} = K || {};
|
|
3383
|
-
if (X.current = !0, M(void 0), z.current && !
|
|
3383
|
+
if (X.current = !0, M(void 0), z.current && !Oe() && ue() && oe) {
|
|
3384
3384
|
X.current = !1, de == null || de(!1), le == null || le(ue(), Ke(), se(), z.current), z.current = !1;
|
|
3385
|
-
const
|
|
3385
|
+
const re = ue();
|
|
3386
3386
|
return c && (B.current = void 0, $t({
|
|
3387
3387
|
values: {},
|
|
3388
3388
|
fields: O,
|
|
3389
3389
|
reset: !0
|
|
3390
3390
|
})), {
|
|
3391
3391
|
succeed: !0,
|
|
3392
|
-
id:
|
|
3392
|
+
id: re
|
|
3393
3393
|
};
|
|
3394
3394
|
}
|
|
3395
|
-
if (!
|
|
3395
|
+
if (!Oe() && ue() && oe)
|
|
3396
3396
|
return X.current = !1, de == null || de(!1), me == null || me(), {
|
|
3397
3397
|
succeed: !0,
|
|
3398
3398
|
id: ue()
|
|
@@ -3411,8 +3411,8 @@ function Cl(e, t) {
|
|
|
3411
3411
|
})), await gt({
|
|
3412
3412
|
forceRefresh: !0
|
|
3413
3413
|
}), G = !0, xn.success(x("savedRegisters"));
|
|
3414
|
-
} catch (
|
|
3415
|
-
X.current = !1, T(!1), ie == null || ie(!1), Ue == null || Ue(
|
|
3414
|
+
} catch (re) {
|
|
3415
|
+
X.current = !1, T(!1), ie == null || ie(!1), Ue == null || Ue(re), xn.error(x("errorWhileSavingForm")), M(re != null && re.message ? re.message : re);
|
|
3416
3416
|
} finally {
|
|
3417
3417
|
X.current = !1, ie == null || ie(!1), T(!1);
|
|
3418
3418
|
}
|
|
@@ -3425,15 +3425,15 @@ function Cl(e, t) {
|
|
|
3425
3425
|
arch: G,
|
|
3426
3426
|
values: oe
|
|
3427
3427
|
}) => {
|
|
3428
|
-
var
|
|
3429
|
-
const
|
|
3430
|
-
|
|
3428
|
+
var Te;
|
|
3429
|
+
const re = new Nr(K);
|
|
3430
|
+
re.parse(G, {
|
|
3431
3431
|
readOnly: f,
|
|
3432
3432
|
values: ka({
|
|
3433
3433
|
...oe,
|
|
3434
3434
|
...Se()
|
|
3435
3435
|
}, K)
|
|
3436
|
-
}), R(
|
|
3436
|
+
}), R(re), re.string && re.string !== Ze && (ee == null || ee(re.string)), q && re.string && ((Te = q.setTitle) == null || Te.call(q, re.string));
|
|
3437
3437
|
}, vn = async ({
|
|
3438
3438
|
elementHasLostFocus: K = !1
|
|
3439
3439
|
}) => {
|
|
@@ -3452,8 +3452,8 @@ function Cl(e, t) {
|
|
|
3452
3452
|
}) && K !== !0)
|
|
3453
3453
|
return;
|
|
3454
3454
|
{
|
|
3455
|
-
const
|
|
3456
|
-
Z.current =
|
|
3455
|
+
const re = Ot(k.getFieldsValue(!0), O);
|
|
3456
|
+
Z.current = re, u == null || u(re), de == null || de(!0), Uo(oe);
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
3459
|
}, Wo = Ta(vn, 100), Uo = async (K) => {
|
|
@@ -3485,47 +3485,47 @@ function Cl(e, t) {
|
|
|
3485
3485
|
},
|
|
3486
3486
|
parentValues: Pe == null ? void 0 : Pe(),
|
|
3487
3487
|
onChangeFieldActionArgs: G.args
|
|
3488
|
-
}),
|
|
3488
|
+
}), re = await H.getHandler().executeOnChange({
|
|
3489
3489
|
model: r,
|
|
3490
3490
|
action: G.method,
|
|
3491
3491
|
ids: ue() ? [ue()] : [],
|
|
3492
3492
|
payload: oe,
|
|
3493
3493
|
fields: O
|
|
3494
3494
|
});
|
|
3495
|
-
if (
|
|
3496
|
-
const
|
|
3495
|
+
if (re.value) {
|
|
3496
|
+
const Te = {
|
|
3497
3497
|
...$e(O),
|
|
3498
|
-
...
|
|
3498
|
+
...re.value
|
|
3499
3499
|
};
|
|
3500
3500
|
Jt({
|
|
3501
3501
|
fields: O,
|
|
3502
3502
|
arch: I,
|
|
3503
|
-
values:
|
|
3503
|
+
values: Te
|
|
3504
3504
|
}), $t({
|
|
3505
|
-
values:
|
|
3505
|
+
values: Te,
|
|
3506
3506
|
fields: O,
|
|
3507
3507
|
reset: !1
|
|
3508
3508
|
});
|
|
3509
3509
|
}
|
|
3510
|
-
if (
|
|
3510
|
+
if (re.warning && re.warning.title && re.warning.message && !ae.current) {
|
|
3511
3511
|
const {
|
|
3512
|
-
title:
|
|
3512
|
+
title: Te,
|
|
3513
3513
|
message: yt
|
|
3514
|
-
} =
|
|
3515
|
-
ae.current = !0, il(
|
|
3514
|
+
} = re.warning;
|
|
3515
|
+
ae.current = !0, il(Te, yt, () => {
|
|
3516
3516
|
ae.current = !1;
|
|
3517
3517
|
});
|
|
3518
3518
|
}
|
|
3519
|
-
if (
|
|
3520
|
-
const
|
|
3521
|
-
fieldsDomain:
|
|
3519
|
+
if (re.domain && Object.keys(re.domain).length > 0) {
|
|
3520
|
+
const Te = Ba({
|
|
3521
|
+
fieldsDomain: re.domain,
|
|
3522
3522
|
fields: O
|
|
3523
3523
|
});
|
|
3524
3524
|
Jt({
|
|
3525
|
-
fields:
|
|
3525
|
+
fields: Te,
|
|
3526
3526
|
arch: I,
|
|
3527
|
-
values: $e(
|
|
3528
|
-
}), j(
|
|
3527
|
+
values: $e(Te)
|
|
3528
|
+
}), j(Te);
|
|
3529
3529
|
}
|
|
3530
3530
|
};
|
|
3531
3531
|
async function qo({
|
|
@@ -3537,9 +3537,9 @@ function Cl(e, t) {
|
|
|
3537
3537
|
action: K,
|
|
3538
3538
|
payload: [ue()],
|
|
3539
3539
|
context: {
|
|
3540
|
-
...G,
|
|
3541
3540
|
...S == null ? void 0 : S.context,
|
|
3542
|
-
...v
|
|
3541
|
+
...v,
|
|
3542
|
+
...G
|
|
3543
3543
|
}
|
|
3544
3544
|
});
|
|
3545
3545
|
if (typeof oe == "object" && oe !== null && Object.keys(oe).length === 0 && g)
|
|
@@ -3547,8 +3547,8 @@ function Cl(e, t) {
|
|
|
3547
3547
|
else if (oe.type && oe.type === "ir.actions.act_window_close")
|
|
3548
3548
|
le == null || le(ue(), Ke(), se());
|
|
3549
3549
|
else if (oe.type) {
|
|
3550
|
-
let
|
|
3551
|
-
oe.context && (
|
|
3550
|
+
let re = {};
|
|
3551
|
+
oe.context && (re = wt({
|
|
3552
3552
|
context: oe.context,
|
|
3553
3553
|
fields: O,
|
|
3554
3554
|
values: Ke()
|
|
@@ -3556,7 +3556,7 @@ function Cl(e, t) {
|
|
|
3556
3556
|
actionData: oe,
|
|
3557
3557
|
context: {
|
|
3558
3558
|
...G,
|
|
3559
|
-
...
|
|
3559
|
+
...re
|
|
3560
3560
|
}
|
|
3561
3561
|
});
|
|
3562
3562
|
} else
|
|
@@ -3632,29 +3632,29 @@ function Cl(e, t) {
|
|
|
3632
3632
|
return;
|
|
3633
3633
|
}
|
|
3634
3634
|
try {
|
|
3635
|
-
(
|
|
3635
|
+
(Oe() || ue() === void 0) && (m === "2many" ? (await rr({
|
|
3636
3636
|
callOnSubmitSucceed: !1
|
|
3637
3637
|
}), z.current = !0) : await zt({
|
|
3638
3638
|
callOnSubmitSucceed: !1
|
|
3639
3639
|
}));
|
|
3640
|
-
const
|
|
3640
|
+
const re = z.current ? ge() : {}, Te = {
|
|
3641
3641
|
...oe,
|
|
3642
|
-
...
|
|
3642
|
+
...re
|
|
3643
3643
|
};
|
|
3644
3644
|
K === "object" ? await qo({
|
|
3645
3645
|
action: G,
|
|
3646
|
-
context:
|
|
3646
|
+
context: Te
|
|
3647
3647
|
}) : K === "workflow" ? await zo({
|
|
3648
3648
|
action: G
|
|
3649
3649
|
}) : K === "action" && await Jo({
|
|
3650
3650
|
action: G,
|
|
3651
|
-
context:
|
|
3651
|
+
context: Te
|
|
3652
3652
|
});
|
|
3653
|
-
} catch (
|
|
3654
|
-
Ge(
|
|
3653
|
+
} catch (re) {
|
|
3654
|
+
Ge(re);
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
const Qo = () => !S && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !V ? null : /* @__PURE__ */ n(
|
|
3657
|
+
const Qo = () => !S && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !V ? null : /* @__PURE__ */ n(ne, {
|
|
3658
3658
|
children: /* @__PURE__ */ n(ss, {
|
|
3659
3659
|
getValues: Ke,
|
|
3660
3660
|
getPlainValues: Q,
|
|
@@ -3668,7 +3668,7 @@ function Cl(e, t) {
|
|
|
3668
3668
|
getContext: Ce,
|
|
3669
3669
|
submitForm: zt,
|
|
3670
3670
|
fetchValues: gt,
|
|
3671
|
-
formHasChanges:
|
|
3671
|
+
formHasChanges: Oe,
|
|
3672
3672
|
elementHasLostFocus: Zo,
|
|
3673
3673
|
children: /* @__PURE__ */ n(it, {
|
|
3674
3674
|
form: k,
|
|
@@ -3684,18 +3684,18 @@ function Cl(e, t) {
|
|
|
3684
3684
|
})
|
|
3685
3685
|
})
|
|
3686
3686
|
})
|
|
3687
|
-
}), ei = () => /* @__PURE__ */ P(
|
|
3687
|
+
}), ei = () => /* @__PURE__ */ P(ne, {
|
|
3688
3688
|
children: [/* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(xe, {
|
|
3689
3689
|
justify: "end",
|
|
3690
3690
|
children: /* @__PURE__ */ P(Ye, {
|
|
3691
|
-
children: [/* @__PURE__ */ n(
|
|
3691
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
3692
3692
|
icon: /* @__PURE__ */ n(Kt, {}),
|
|
3693
3693
|
disabled: w,
|
|
3694
3694
|
onClick: async () => {
|
|
3695
3695
|
await nr();
|
|
3696
3696
|
},
|
|
3697
3697
|
children: "Cancel"
|
|
3698
|
-
}), /* @__PURE__ */ n(
|
|
3698
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
3699
3699
|
disabled: w || f,
|
|
3700
3700
|
loading: w,
|
|
3701
3701
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
@@ -3781,7 +3781,7 @@ const Gt = bt(Cl), qt = (e) => {
|
|
|
3781
3781
|
return /* @__PURE__ */ P(xe, {
|
|
3782
3782
|
align: "middle",
|
|
3783
3783
|
children: [/* @__PURE__ */ n(ce, {
|
|
3784
|
-
children: /* @__PURE__ */ n(
|
|
3784
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
3785
3785
|
type: m ? "primary" : "default",
|
|
3786
3786
|
icon: m ? /* @__PURE__ */ n(Wr, {
|
|
3787
3787
|
style: {
|
|
@@ -3844,7 +3844,7 @@ const Gt = bt(Cl), qt = (e) => {
|
|
|
3844
3844
|
name: o + "#time",
|
|
3845
3845
|
label: ""
|
|
3846
3846
|
})];
|
|
3847
|
-
return /* @__PURE__ */ P(
|
|
3847
|
+
return /* @__PURE__ */ P(ne, {
|
|
3848
3848
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3849
3849
|
ooui: new At({
|
|
3850
3850
|
name: o + "_label",
|
|
@@ -3969,7 +3969,7 @@ function _l(e) {
|
|
|
3969
3969
|
},
|
|
3970
3970
|
layout: "vertical"
|
|
3971
3971
|
});
|
|
3972
|
-
return /* @__PURE__ */ P(
|
|
3972
|
+
return /* @__PURE__ */ P(ne, {
|
|
3973
3973
|
children: [r && /* @__PURE__ */ n(un, {
|
|
3974
3974
|
ooui: new At({
|
|
3975
3975
|
name: i + "_label",
|
|
@@ -4139,12 +4139,12 @@ function $l(e) {
|
|
|
4139
4139
|
}), /* @__PURE__ */ P(ce, {
|
|
4140
4140
|
span: 12,
|
|
4141
4141
|
className: "text-right pb-2",
|
|
4142
|
-
children: [/* @__PURE__ */ n(
|
|
4142
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
4143
4143
|
className: "mr-5",
|
|
4144
4144
|
icon: /* @__PURE__ */ n(Bn, {}),
|
|
4145
4145
|
onClick: i,
|
|
4146
4146
|
children: s("clear")
|
|
4147
|
-
}), /* @__PURE__ */ n(
|
|
4147
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
4148
4148
|
icon: /* @__PURE__ */ n(jn, {}),
|
|
4149
4149
|
loading: o,
|
|
4150
4150
|
className: "mr-2",
|
|
@@ -4403,7 +4403,7 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4403
4403
|
children: /* @__PURE__ */ n(Ye, {
|
|
4404
4404
|
direction: "vertical",
|
|
4405
4405
|
className: "w-full",
|
|
4406
|
-
children: i.map((a) => /* @__PURE__ */ n(
|
|
4406
|
+
children: i.map((a) => /* @__PURE__ */ n(Ie, {
|
|
4407
4407
|
className: "w-full",
|
|
4408
4408
|
onClick: () => {
|
|
4409
4409
|
o(a);
|
|
@@ -4484,7 +4484,7 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4484
4484
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
4485
4485
|
children: p("report")
|
|
4486
4486
|
}, "print"), /* @__PURE__ */ n(Be.Divider, {}), /* @__PURE__ */ n(Be.ItemGroup, {
|
|
4487
|
-
title: /* @__PURE__ */ P(
|
|
4487
|
+
title: /* @__PURE__ */ P(ne, {
|
|
4488
4488
|
children: [/* @__PURE__ */ n(Gr, {}), " ", /* @__PURE__ */ P("span", {
|
|
4489
4489
|
children: [" ", p("related")]
|
|
4490
4490
|
})]
|
|
@@ -4535,7 +4535,7 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4535
4535
|
fields: f.fields
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
|
-
return /* @__PURE__ */ P(
|
|
4538
|
+
return /* @__PURE__ */ P(ne, {
|
|
4539
4539
|
children: [/* @__PURE__ */ n(jt, {
|
|
4540
4540
|
overlay: b(),
|
|
4541
4541
|
trigger: ["click"],
|
|
@@ -4564,13 +4564,13 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4564
4564
|
m2oField: t
|
|
4565
4565
|
} = e;
|
|
4566
4566
|
return t ? /* @__PURE__ */ P(Ye, {
|
|
4567
|
-
children: [/* @__PURE__ */ n(
|
|
4567
|
+
children: [/* @__PURE__ */ n(ne, {
|
|
4568
4568
|
children: t.value
|
|
4569
4569
|
}), /* @__PURE__ */ n(Zn, {
|
|
4570
4570
|
id: t.id,
|
|
4571
4571
|
model: t.model
|
|
4572
4572
|
})]
|
|
4573
|
-
}) : /* @__PURE__ */ n(
|
|
4573
|
+
}) : /* @__PURE__ */ n(ne, {});
|
|
4574
4574
|
}, Yl = (e) => {
|
|
4575
4575
|
const {
|
|
4576
4576
|
value: t,
|
|
@@ -4591,14 +4591,14 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4591
4591
|
if (pe(() => {
|
|
4592
4592
|
c();
|
|
4593
4593
|
}, [t]), !t && !a)
|
|
4594
|
-
return /* @__PURE__ */ n(
|
|
4594
|
+
return /* @__PURE__ */ n(ne, {});
|
|
4595
4595
|
if (a)
|
|
4596
4596
|
return /* @__PURE__ */ n(nt, {});
|
|
4597
4597
|
const m = i.get(u);
|
|
4598
4598
|
return /* @__PURE__ */ P(Ye, {
|
|
4599
|
-
children: [/* @__PURE__ */ n(
|
|
4599
|
+
children: [/* @__PURE__ */ n(ne, {
|
|
4600
4600
|
children: `${m}:`
|
|
4601
|
-
}), /* @__PURE__ */ n(
|
|
4601
|
+
}), /* @__PURE__ */ n(ne, {
|
|
4602
4602
|
children: o
|
|
4603
4603
|
}), /* @__PURE__ */ n(Zn, {
|
|
4604
4604
|
id: f,
|
|
@@ -5011,26 +5011,26 @@ const lt = {
|
|
|
5011
5011
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
5012
5012
|
}), Ql = (e) => {
|
|
5013
5013
|
if (!e || e && e.length === 0)
|
|
5014
|
-
return /* @__PURE__ */ n(
|
|
5014
|
+
return /* @__PURE__ */ n(ne, {});
|
|
5015
5015
|
const t = dt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
|
|
5016
|
-
return /* @__PURE__ */ n(
|
|
5016
|
+
return /* @__PURE__ */ n(ne, {
|
|
5017
5017
|
children: t
|
|
5018
5018
|
});
|
|
5019
5019
|
}, ec = (e) => {
|
|
5020
5020
|
if (!e || e && e.length === 0)
|
|
5021
|
-
return /* @__PURE__ */ n(
|
|
5021
|
+
return /* @__PURE__ */ n(ne, {});
|
|
5022
5022
|
const t = dt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
|
|
5023
|
-
return /* @__PURE__ */ n(
|
|
5023
|
+
return /* @__PURE__ */ n(ne, {
|
|
5024
5024
|
children: t
|
|
5025
5025
|
});
|
|
5026
5026
|
}, Ir = (e) => {
|
|
5027
5027
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
5028
|
-
return /* @__PURE__ */ n(
|
|
5028
|
+
return /* @__PURE__ */ n(ne, {
|
|
5029
5029
|
children: `( ${t} )`
|
|
5030
5030
|
});
|
|
5031
5031
|
}, tc = (e) => /* @__PURE__ */ n(So, {
|
|
5032
5032
|
value: e
|
|
5033
|
-
}), nc = (e) => /* @__PURE__ */ n(
|
|
5033
|
+
}), nc = (e) => /* @__PURE__ */ n(ne, {
|
|
5034
5034
|
children: Co(e)
|
|
5035
5035
|
}), Dr = (e) => /* @__PURE__ */ n("div", {
|
|
5036
5036
|
style: {
|
|
@@ -5046,9 +5046,9 @@ const lt = {
|
|
|
5046
5046
|
}), oc = (e, t, r, i) => /* @__PURE__ */ n(go, {
|
|
5047
5047
|
ooui: r,
|
|
5048
5048
|
value: e
|
|
5049
|
-
}), ic = (e, t, r, i) => /* @__PURE__ */ n(
|
|
5049
|
+
}), ic = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5050
5050
|
children: r.selectionValues.get(e)
|
|
5051
|
-
}), sc = (e, t, r, i) => /* @__PURE__ */ n(
|
|
5051
|
+
}), sc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
|
|
5052
5052
|
children: /* @__PURE__ */ n(Yl, {
|
|
5053
5053
|
value: e,
|
|
5054
5054
|
selectionValues: r.selectionValues,
|
|
@@ -5243,7 +5243,7 @@ function lc(e, t) {
|
|
|
5243
5243
|
page: Re,
|
|
5244
5244
|
offset: Ze,
|
|
5245
5245
|
getResults: ee,
|
|
5246
|
-
requestPageChange:
|
|
5246
|
+
requestPageChange: De,
|
|
5247
5247
|
changeSort: Ae,
|
|
5248
5248
|
fetchChildrenForRecord: ke,
|
|
5249
5249
|
colorsForResults: le,
|
|
@@ -5287,15 +5287,15 @@ function lc(e, t) {
|
|
|
5287
5287
|
g(!1), p(!0), C(void 0), z == null || z(!0);
|
|
5288
5288
|
try {
|
|
5289
5289
|
await rt(), g(!0);
|
|
5290
|
-
} catch (
|
|
5291
|
-
C(
|
|
5290
|
+
} catch (Oe) {
|
|
5291
|
+
C(Oe), z == null || z(!1);
|
|
5292
5292
|
} finally {
|
|
5293
5293
|
p(!1);
|
|
5294
5294
|
}
|
|
5295
5295
|
}, rt = async () => {
|
|
5296
5296
|
V(r);
|
|
5297
|
-
let
|
|
5298
|
-
i || (
|
|
5297
|
+
let Oe = i;
|
|
5298
|
+
i || (Oe = await H.getHandler().getView({
|
|
5299
5299
|
model: r,
|
|
5300
5300
|
type: "form",
|
|
5301
5301
|
context: c
|
|
@@ -5305,17 +5305,17 @@ function lc(e, t) {
|
|
|
5305
5305
|
model: r,
|
|
5306
5306
|
type: "tree",
|
|
5307
5307
|
context: c
|
|
5308
|
-
})), E(
|
|
5308
|
+
})), E(Oe), A($e);
|
|
5309
5309
|
};
|
|
5310
5310
|
pe(() => {
|
|
5311
5311
|
ue();
|
|
5312
5312
|
}, [r]);
|
|
5313
|
-
const Ke = (
|
|
5314
|
-
Ve == null || Ve(
|
|
5315
|
-
}, Q = async (
|
|
5313
|
+
const Ke = (Oe) => {
|
|
5314
|
+
Ve == null || Ve(Oe);
|
|
5315
|
+
}, Q = async (Oe) => {
|
|
5316
5316
|
const {
|
|
5317
5317
|
id: $e
|
|
5318
|
-
} =
|
|
5318
|
+
} = Oe;
|
|
5319
5319
|
$.current || ($.current = await H.getHandler().treeButOpen({
|
|
5320
5320
|
id: b.view_id,
|
|
5321
5321
|
model: F,
|
|
@@ -5327,17 +5327,17 @@ function lc(e, t) {
|
|
|
5327
5327
|
fields: b.fields,
|
|
5328
5328
|
values: {
|
|
5329
5329
|
active_id: $e,
|
|
5330
|
-
...
|
|
5330
|
+
...Oe
|
|
5331
5331
|
},
|
|
5332
5332
|
context: c
|
|
5333
5333
|
}));
|
|
5334
|
-
}, se = async (
|
|
5334
|
+
}, se = async (Oe) => {
|
|
5335
5335
|
const {
|
|
5336
5336
|
id: $e
|
|
5337
|
-
} =
|
|
5337
|
+
} = Oe;
|
|
5338
5338
|
if (b != null && b.isExpandable) {
|
|
5339
5339
|
try {
|
|
5340
|
-
await Q(
|
|
5340
|
+
await Q(Oe);
|
|
5341
5341
|
} catch (ot) {
|
|
5342
5342
|
Ge(ot);
|
|
5343
5343
|
}
|
|
@@ -5350,14 +5350,14 @@ function lc(e, t) {
|
|
|
5350
5350
|
treeView: b
|
|
5351
5351
|
});
|
|
5352
5352
|
};
|
|
5353
|
-
function Ce(
|
|
5354
|
-
const $e = ee().filter((ot) =>
|
|
5355
|
-
U == null || U($e), m == null || m(
|
|
5353
|
+
function Ce(Oe) {
|
|
5354
|
+
const $e = ee().filter((ot) => Oe.includes(ot.id));
|
|
5355
|
+
U == null || U($e), m == null || m(Oe);
|
|
5356
5356
|
}
|
|
5357
5357
|
function ge() {
|
|
5358
5358
|
return b != null && b.isExpandable ? M - 160 : M - (w + 210);
|
|
5359
5359
|
}
|
|
5360
|
-
const Se = () => !b || !D ? null : /* @__PURE__ */ P(
|
|
5360
|
+
const Se = () => !b || !D ? null : /* @__PURE__ */ P(ne, {
|
|
5361
5361
|
children: [/* @__PURE__ */ n(xo, {
|
|
5362
5362
|
fields: {
|
|
5363
5363
|
...D.fields,
|
|
@@ -5381,14 +5381,14 @@ function lc(e, t) {
|
|
|
5381
5381
|
page: Re,
|
|
5382
5382
|
treeView: b,
|
|
5383
5383
|
results: ee(),
|
|
5384
|
-
onRequestPageChange:
|
|
5384
|
+
onRequestPageChange: De,
|
|
5385
5385
|
loading: de,
|
|
5386
5386
|
onRowClicked: se,
|
|
5387
5387
|
scrollY: l || ge(),
|
|
5388
5388
|
colorsForResults: le,
|
|
5389
5389
|
statusForResults: me,
|
|
5390
5390
|
rowSelection: {
|
|
5391
|
-
selectedRowKeys: q == null ? void 0 : q.map((
|
|
5391
|
+
selectedRowKeys: q == null ? void 0 : q.map((Oe) => Oe.id),
|
|
5392
5392
|
onChange: Ce
|
|
5393
5393
|
},
|
|
5394
5394
|
sorter: te,
|
|
@@ -5397,10 +5397,10 @@ function lc(e, t) {
|
|
|
5397
5397
|
childField: b.field_parent,
|
|
5398
5398
|
rootTree: f
|
|
5399
5399
|
})]
|
|
5400
|
-
}),
|
|
5401
|
-
return
|
|
5400
|
+
}), Fe = x || we;
|
|
5401
|
+
return Fe ? /* @__PURE__ */ n(Qe, {
|
|
5402
5402
|
className: "mt-10",
|
|
5403
|
-
message:
|
|
5403
|
+
message: Fe,
|
|
5404
5404
|
type: "error",
|
|
5405
5405
|
banner: !0
|
|
5406
5406
|
}) : /* @__PURE__ */ n("div", {
|
|
@@ -5439,7 +5439,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5439
5439
|
}
|
|
5440
5440
|
i(y);
|
|
5441
5441
|
}
|
|
5442
|
-
const F = () => /* @__PURE__ */ P(
|
|
5442
|
+
const F = () => /* @__PURE__ */ P(ne, {
|
|
5443
5443
|
children: [/* @__PURE__ */ n(Io, {
|
|
5444
5444
|
model: o,
|
|
5445
5445
|
nameSearch: s,
|
|
@@ -5453,20 +5453,20 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5453
5453
|
}), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(xe, {
|
|
5454
5454
|
justify: "end",
|
|
5455
5455
|
children: /* @__PURE__ */ P(Ye, {
|
|
5456
|
-
children: [/* @__PURE__ */ n(
|
|
5456
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
5457
5457
|
icon: /* @__PURE__ */ n(cn, {}),
|
|
5458
5458
|
onClick: () => {
|
|
5459
5459
|
d(!0);
|
|
5460
5460
|
},
|
|
5461
5461
|
children: m("new")
|
|
5462
|
-
}), /* @__PURE__ */ n(
|
|
5462
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
5463
5463
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
5464
5464
|
onClick: () => {
|
|
5465
5465
|
v();
|
|
5466
5466
|
},
|
|
5467
5467
|
type: "primary",
|
|
5468
5468
|
children: m("ok")
|
|
5469
|
-
}), /* @__PURE__ */ n(
|
|
5469
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
5470
5470
|
icon: /* @__PURE__ */ n(Kt, {}),
|
|
5471
5471
|
onClick: h,
|
|
5472
5472
|
children: m("cancel")
|
|
@@ -5474,7 +5474,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5474
5474
|
})
|
|
5475
5475
|
})]
|
|
5476
5476
|
});
|
|
5477
|
-
return /* @__PURE__ */ P(
|
|
5477
|
+
return /* @__PURE__ */ P(ne, {
|
|
5478
5478
|
children: [/* @__PURE__ */ n(qe, {
|
|
5479
5479
|
title: m("search"),
|
|
5480
5480
|
centered: !0,
|
|
@@ -5667,7 +5667,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5667
5667
|
style: {
|
|
5668
5668
|
paddingRight: 0
|
|
5669
5669
|
},
|
|
5670
|
-
children: /* @__PURE__ */ n(
|
|
5670
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
5671
5671
|
icon: /* @__PURE__ */ n(Pn, {}),
|
|
5672
5672
|
disabled: k === void 0 || I === "" || b === void 0,
|
|
5673
5673
|
onClick: () => {
|
|
@@ -5684,7 +5684,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5684
5684
|
style: {
|
|
5685
5685
|
paddingLeft: 0
|
|
5686
5686
|
},
|
|
5687
|
-
children: /* @__PURE__ */ n(
|
|
5687
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
5688
5688
|
icon: h ? /* @__PURE__ */ n(nt, {}) : /* @__PURE__ */ n(jn, {}),
|
|
5689
5689
|
disabled: a || h,
|
|
5690
5690
|
onClick: () => {
|
|
@@ -6347,7 +6347,7 @@ const _c = {
|
|
|
6347
6347
|
isStack: h
|
|
6348
6348
|
})
|
|
6349
6349
|
})]
|
|
6350
|
-
}) : /* @__PURE__ */ n(
|
|
6350
|
+
}) : /* @__PURE__ */ n(ne, {
|
|
6351
6351
|
children: `Unknown graph type: ${c}`
|
|
6352
6352
|
});
|
|
6353
6353
|
};
|
|
@@ -6392,7 +6392,7 @@ const Vc = (e, t) => {
|
|
|
6392
6392
|
const F = Nn(v.arch);
|
|
6393
6393
|
c(F);
|
|
6394
6394
|
} catch (v) {
|
|
6395
|
-
return console.error(v), /* @__PURE__ */ n(
|
|
6395
|
+
return console.error(v), /* @__PURE__ */ n(ne, {
|
|
6396
6396
|
children: JSON.stringify(v)
|
|
6397
6397
|
});
|
|
6398
6398
|
}
|
|
@@ -6448,7 +6448,7 @@ const Vc = (e, t) => {
|
|
|
6448
6448
|
manualIds: l
|
|
6449
6449
|
});
|
|
6450
6450
|
default:
|
|
6451
|
-
return /* @__PURE__ */ n(
|
|
6451
|
+
return /* @__PURE__ */ n(ne, {
|
|
6452
6452
|
children: `Graph ${f.type} not implemented`
|
|
6453
6453
|
});
|
|
6454
6454
|
}
|
|
@@ -6459,13 +6459,13 @@ const Vc = (e, t) => {
|
|
|
6459
6459
|
lang: t
|
|
6460
6460
|
}) => {
|
|
6461
6461
|
Ac({
|
|
6462
|
-
title:
|
|
6462
|
+
title: _e("removeItems", t),
|
|
6463
6463
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
6464
6464
|
centered: !0,
|
|
6465
|
-
content:
|
|
6466
|
-
okText:
|
|
6465
|
+
content: _e("confirmRemove", t),
|
|
6466
|
+
okText: _e("yesConfirmRemove", t),
|
|
6467
6467
|
onOk: e,
|
|
6468
|
-
cancelText:
|
|
6468
|
+
cancelText: _e("cancel", t)
|
|
6469
6469
|
});
|
|
6470
6470
|
}, {
|
|
6471
6471
|
confirm: kc
|
|
@@ -6474,13 +6474,13 @@ const Vc = (e, t) => {
|
|
|
6474
6474
|
lang: t
|
|
6475
6475
|
}) => {
|
|
6476
6476
|
kc({
|
|
6477
|
-
title:
|
|
6477
|
+
title: _e("unlinkItems", t),
|
|
6478
6478
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
6479
6479
|
centered: !0,
|
|
6480
|
-
content:
|
|
6481
|
-
okText:
|
|
6480
|
+
content: _e("confirmUnlink", t),
|
|
6481
|
+
okText: _e("yesConfirmUnlink", t),
|
|
6482
6482
|
onOk: e,
|
|
6483
|
-
cancelText:
|
|
6483
|
+
cancelText: _e("cancel", t)
|
|
6484
6484
|
});
|
|
6485
6485
|
}, {
|
|
6486
6486
|
useToken: Ec
|
|
@@ -6541,7 +6541,7 @@ const Vc = (e, t) => {
|
|
|
6541
6541
|
});
|
|
6542
6542
|
}
|
|
6543
6543
|
function A() {
|
|
6544
|
-
return /* @__PURE__ */ P(
|
|
6544
|
+
return /* @__PURE__ */ P(ne, {
|
|
6545
6545
|
children: [v(), /* @__PURE__ */ n(Je, {
|
|
6546
6546
|
tooltip: "Previous item",
|
|
6547
6547
|
icon: /* @__PURE__ */ n(qr, {}),
|
|
@@ -6644,7 +6644,7 @@ const Pc = (e) => {
|
|
|
6644
6644
|
var se, Ce, ge;
|
|
6645
6645
|
A(!0), V(!1), E(void 0);
|
|
6646
6646
|
try {
|
|
6647
|
-
const [Se,
|
|
6647
|
+
const [Se, Fe] = await Jn({
|
|
6648
6648
|
treeView: {
|
|
6649
6649
|
arch: (se = o.get("tree")) == null ? void 0 : se.arch,
|
|
6650
6650
|
fields: (Ce = o.get("tree")) == null ? void 0 : Ce.fields
|
|
@@ -6660,7 +6660,7 @@ const Pc = (e) => {
|
|
|
6660
6660
|
},
|
|
6661
6661
|
currentView: Q || a
|
|
6662
6662
|
});
|
|
6663
|
-
return q.current || (q.current = Se.map((
|
|
6663
|
+
return q.current || (q.current = Se.map((Oe) => Oe.id)), (a || Q) === "tree" && Fe && J(Fe), be(Se), Se;
|
|
6664
6664
|
} catch (Se) {
|
|
6665
6665
|
E(Se);
|
|
6666
6666
|
} finally {
|
|
@@ -6731,7 +6731,7 @@ const Pc = (e) => {
|
|
|
6731
6731
|
Mc({
|
|
6732
6732
|
lang: g,
|
|
6733
6733
|
onOk: () => {
|
|
6734
|
-
a === "form" ?
|
|
6734
|
+
a === "form" ? De() : Ae();
|
|
6735
6735
|
}
|
|
6736
6736
|
});
|
|
6737
6737
|
return;
|
|
@@ -6739,7 +6739,7 @@ const Pc = (e) => {
|
|
|
6739
6739
|
Rc({
|
|
6740
6740
|
lang: g,
|
|
6741
6741
|
onOk: () => {
|
|
6742
|
-
a === "form" ?
|
|
6742
|
+
a === "form" ? De() : Ae();
|
|
6743
6743
|
}
|
|
6744
6744
|
});
|
|
6745
6745
|
}, Ze = async () => {
|
|
@@ -6760,7 +6760,7 @@ const Pc = (e) => {
|
|
|
6760
6760
|
a === "form" ? we(() => {
|
|
6761
6761
|
T(!0);
|
|
6762
6762
|
}) : T(!0);
|
|
6763
|
-
},
|
|
6763
|
+
}, De = async () => {
|
|
6764
6764
|
A(!0), V(!1), E(void 0);
|
|
6765
6765
|
try {
|
|
6766
6766
|
if (X[u].id > 0) {
|
|
@@ -6804,7 +6804,7 @@ const Pc = (e) => {
|
|
|
6804
6804
|
}
|
|
6805
6805
|
});
|
|
6806
6806
|
else if (Q)
|
|
6807
|
-
Se = s.map((
|
|
6807
|
+
Se = s.map((Fe) => Fe.id === Q ? {
|
|
6808
6808
|
id: Q,
|
|
6809
6809
|
operation: Q > 0 ? "pendingUpdate" : "pendingCreate",
|
|
6810
6810
|
values: {
|
|
@@ -6815,19 +6815,19 @@ const Pc = (e) => {
|
|
|
6815
6815
|
...Ce,
|
|
6816
6816
|
id: Q
|
|
6817
6817
|
}
|
|
6818
|
-
} :
|
|
6818
|
+
} : Fe);
|
|
6819
6819
|
else {
|
|
6820
|
-
const
|
|
6820
|
+
const Fe = Ra(s);
|
|
6821
6821
|
Se = s.concat({
|
|
6822
|
-
id:
|
|
6822
|
+
id: Fe,
|
|
6823
6823
|
operation: "pendingCreate",
|
|
6824
6824
|
values: {
|
|
6825
6825
|
...Ce,
|
|
6826
|
-
id:
|
|
6826
|
+
id: Fe
|
|
6827
6827
|
},
|
|
6828
6828
|
treeValues: {
|
|
6829
6829
|
...Ce,
|
|
6830
|
-
id:
|
|
6830
|
+
id: Fe
|
|
6831
6831
|
}
|
|
6832
6832
|
});
|
|
6833
6833
|
}
|
|
@@ -6853,7 +6853,7 @@ const Pc = (e) => {
|
|
|
6853
6853
|
...p == null ? void 0 : p(),
|
|
6854
6854
|
...B
|
|
6855
6855
|
}
|
|
6856
|
-
}))[0],
|
|
6856
|
+
}))[0], Fe = (await H.getHandler().readObjects({
|
|
6857
6857
|
model: N,
|
|
6858
6858
|
ids: [ge],
|
|
6859
6859
|
fields: o.get("tree").fields,
|
|
@@ -6866,7 +6866,7 @@ const Pc = (e) => {
|
|
|
6866
6866
|
id: ge,
|
|
6867
6867
|
operation: "pendingLink",
|
|
6868
6868
|
values: Se,
|
|
6869
|
-
treeValues:
|
|
6869
|
+
treeValues: Fe
|
|
6870
6870
|
});
|
|
6871
6871
|
}
|
|
6872
6872
|
be(se);
|
|
@@ -6888,7 +6888,7 @@ const Pc = (e) => {
|
|
|
6888
6888
|
const ue = () => {
|
|
6889
6889
|
var se, Ce, ge, Se;
|
|
6890
6890
|
if (a === "form")
|
|
6891
|
-
return X.length === 0 ? v("noCurrentEntries") : a !== z.current && s.some((
|
|
6891
|
+
return X.length === 0 ? v("noCurrentEntries") : a !== z.current && s.some((Fe) => !Fe.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Gt, {
|
|
6892
6892
|
formView: o.get("form"),
|
|
6893
6893
|
values: (se = X[u]) == null ? void 0 : se.values,
|
|
6894
6894
|
parentContext: {
|
|
@@ -6898,18 +6898,18 @@ const Pc = (e) => {
|
|
|
6898
6898
|
model: N,
|
|
6899
6899
|
id: (Ce = X[u]) == null ? void 0 : Ce.id,
|
|
6900
6900
|
submitMode: "values",
|
|
6901
|
-
onFieldsChange: (
|
|
6901
|
+
onFieldsChange: (Fe) => {
|
|
6902
6902
|
var ot;
|
|
6903
|
-
const
|
|
6903
|
+
const Oe = (ot = X[u]) == null ? void 0 : ot.id, $e = s.map((pt) => pt.id === Oe ? {
|
|
6904
6904
|
...pt,
|
|
6905
6905
|
operation: pt.operation === "original" ? "pendingUpdate" : pt.operation,
|
|
6906
6906
|
values: {
|
|
6907
|
-
...
|
|
6908
|
-
id:
|
|
6907
|
+
...Fe,
|
|
6908
|
+
id: Oe
|
|
6909
6909
|
},
|
|
6910
6910
|
treeValues: {
|
|
6911
|
-
...
|
|
6912
|
-
id:
|
|
6911
|
+
...Fe,
|
|
6912
|
+
id: Oe
|
|
6913
6913
|
}
|
|
6914
6914
|
} : pt);
|
|
6915
6915
|
be($e), V(!0);
|
|
@@ -6917,14 +6917,14 @@ const Pc = (e) => {
|
|
|
6917
6917
|
readOnly: W
|
|
6918
6918
|
});
|
|
6919
6919
|
let Q = [];
|
|
6920
|
-
if (X.some((
|
|
6921
|
-
resultsToSort: X.map((
|
|
6920
|
+
if (X.some((Fe) => Fe.treeValues) && (Q = O ? It({
|
|
6921
|
+
resultsToSort: X.map((Fe) => Fe.treeValues),
|
|
6922
6922
|
sorter: O,
|
|
6923
6923
|
fields: {
|
|
6924
6924
|
...o.get("tree").fields,
|
|
6925
6925
|
...((ge = o.get("form")) == null ? void 0 : ge.fields) || {}
|
|
6926
6926
|
}
|
|
6927
|
-
}) : X.map((
|
|
6927
|
+
}) : X.map((Fe) => Fe.treeValues)), a === "tree")
|
|
6928
6928
|
return /* @__PURE__ */ n(pn, {
|
|
6929
6929
|
total: X.length,
|
|
6930
6930
|
limit: X.length,
|
|
@@ -6947,11 +6947,11 @@ const Pc = (e) => {
|
|
|
6947
6947
|
readonly: W
|
|
6948
6948
|
});
|
|
6949
6949
|
if (a === "graph") {
|
|
6950
|
-
const
|
|
6950
|
+
const Fe = [[`${i.inv_field}`, "=", c]];
|
|
6951
6951
|
return /* @__PURE__ */ n(gn, {
|
|
6952
6952
|
view_id: o.get("graph").view_id,
|
|
6953
6953
|
model: i.relation,
|
|
6954
|
-
domain:
|
|
6954
|
+
domain: Fe,
|
|
6955
6955
|
context: {
|
|
6956
6956
|
...p == null ? void 0 : p(),
|
|
6957
6957
|
...B
|
|
@@ -6968,7 +6968,7 @@ const Pc = (e) => {
|
|
|
6968
6968
|
banner: !0
|
|
6969
6969
|
});
|
|
6970
6970
|
const rt = k;
|
|
6971
|
-
return b ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(
|
|
6971
|
+
return b ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
|
|
6972
6972
|
children: [/* @__PURE__ */ n($c, {
|
|
6973
6973
|
mode: a,
|
|
6974
6974
|
title: Ue(),
|
|
@@ -7151,7 +7151,7 @@ function Mo(e) {
|
|
|
7151
7151
|
showLabel: r = !0,
|
|
7152
7152
|
responsiveBehaviour: i
|
|
7153
7153
|
} = e, o = st(t.icon || "");
|
|
7154
|
-
return /* @__PURE__ */ n(
|
|
7154
|
+
return /* @__PURE__ */ n(ne, {
|
|
7155
7155
|
children: (t.label || o) && r ? /* @__PURE__ */ n(Bi, {
|
|
7156
7156
|
label: t.label,
|
|
7157
7157
|
icon: o,
|
|
@@ -7183,7 +7183,7 @@ function Wc(e) {
|
|
|
7183
7183
|
defaultActiveKey: "1",
|
|
7184
7184
|
tabPosition: t.tabPosition,
|
|
7185
7185
|
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Yc, {
|
|
7186
|
-
tab: /* @__PURE__ */ P(
|
|
7186
|
+
tab: /* @__PURE__ */ P(ne, {
|
|
7187
7187
|
children: [o(s.icon), " ", s.label]
|
|
7188
7188
|
}),
|
|
7189
7189
|
children: /* @__PURE__ */ n(Mo, {
|
|
@@ -7247,7 +7247,7 @@ const {
|
|
|
7247
7247
|
} = s || {}, [c, m] = _(!1), {
|
|
7248
7248
|
t: y
|
|
7249
7249
|
} = Y(ve);
|
|
7250
|
-
return a ? /* @__PURE__ */ P(
|
|
7250
|
+
return a ? /* @__PURE__ */ P(ne, {
|
|
7251
7251
|
children: [/* @__PURE__ */ n("div", {
|
|
7252
7252
|
onClick: () => {
|
|
7253
7253
|
if (d != null && d()) {
|
|
@@ -7284,7 +7284,7 @@ const {
|
|
|
7284
7284
|
m(!1), u == null || u();
|
|
7285
7285
|
}
|
|
7286
7286
|
})]
|
|
7287
|
-
}) : /* @__PURE__ */ P(
|
|
7287
|
+
}) : /* @__PURE__ */ P(ne, {
|
|
7288
7288
|
children: [/* @__PURE__ */ n(xe, {
|
|
7289
7289
|
gutter: 8,
|
|
7290
7290
|
wrap: !1,
|
|
@@ -7342,7 +7342,7 @@ const {
|
|
|
7342
7342
|
const l = fe({}), u = fe(/* @__PURE__ */ new Map()), d = Le(
|
|
7343
7343
|
async (g) => {
|
|
7344
7344
|
if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
|
|
7345
|
-
ct(
|
|
7345
|
+
ct(_e("selectAtLeastOneField", r));
|
|
7346
7346
|
return;
|
|
7347
7347
|
}
|
|
7348
7348
|
let v = o;
|
|
@@ -7911,14 +7911,14 @@ const ld = (e) => {
|
|
|
7911
7911
|
})]
|
|
7912
7912
|
}), /* @__PURE__ */ n(ce, {
|
|
7913
7913
|
children: /* @__PURE__ */ P(Ye, {
|
|
7914
|
-
children: [/* @__PURE__ */ n(
|
|
7914
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
7915
7915
|
icon: /* @__PURE__ */ n(Pn, {}),
|
|
7916
7916
|
disabled: o,
|
|
7917
7917
|
onClick: () => {
|
|
7918
7918
|
d.current.click();
|
|
7919
7919
|
},
|
|
7920
7920
|
children: "Select"
|
|
7921
|
-
}), /* @__PURE__ */ n(
|
|
7921
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
7922
7922
|
icon: /* @__PURE__ */ n(Ti, {}),
|
|
7923
7923
|
disabled: !r,
|
|
7924
7924
|
onClick: g,
|
|
@@ -8031,7 +8031,7 @@ function Xn(e) {
|
|
|
8031
8031
|
}), /* @__PURE__ */ n(jt, {
|
|
8032
8032
|
overlay: d(),
|
|
8033
8033
|
disabled: o || r.length === 1,
|
|
8034
|
-
children: /* @__PURE__ */ n(
|
|
8034
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
8035
8035
|
style: {
|
|
8036
8036
|
width: 25,
|
|
8037
8037
|
borderTopLeftRadius: 0,
|
|
@@ -8075,7 +8075,7 @@ function Dt(e) {
|
|
|
8075
8075
|
return /* @__PURE__ */ n(jt, {
|
|
8076
8076
|
overlay: l(),
|
|
8077
8077
|
disabled: a || !i || i.length === 0,
|
|
8078
|
-
children: /* @__PURE__ */ P(
|
|
8078
|
+
children: /* @__PURE__ */ P(Ie, {
|
|
8079
8079
|
children: [t, " ", s, " ", /* @__PURE__ */ n(Rt, {})]
|
|
8080
8080
|
})
|
|
8081
8081
|
});
|
|
@@ -8134,12 +8134,12 @@ const {
|
|
|
8134
8134
|
lang: r
|
|
8135
8135
|
}) => {
|
|
8136
8136
|
pd({
|
|
8137
|
-
title:
|
|
8137
|
+
title: _e("unsavedChanges", r),
|
|
8138
8138
|
icon: /* @__PURE__ */ n(ht, {}),
|
|
8139
8139
|
centered: !0,
|
|
8140
|
-
content:
|
|
8141
|
-
okText:
|
|
8142
|
-
cancelText:
|
|
8140
|
+
content: _e("confirmRefreshWithoutSave", r),
|
|
8141
|
+
okText: _e("discardAndRefresh", r),
|
|
8142
|
+
cancelText: _e("cancel", r),
|
|
8143
8143
|
onOk: e,
|
|
8144
8144
|
onCancel: t
|
|
8145
8145
|
});
|
|
@@ -8166,7 +8166,7 @@ const yd = (e) => {
|
|
|
8166
8166
|
} = e, {
|
|
8167
8167
|
t: i,
|
|
8168
8168
|
lang: o
|
|
8169
|
-
} = Y(ve), [s, a] = _(!1), l = /* @__PURE__ */ P(
|
|
8169
|
+
} = Y(ve), [s, a] = _(!1), l = /* @__PURE__ */ P(Ie, {
|
|
8170
8170
|
disabled: r,
|
|
8171
8171
|
children: [/* @__PURE__ */ n(Jr, {}), `(${t})`, /* @__PURE__ */ n(Rt, {
|
|
8172
8172
|
style: {
|
|
@@ -8196,7 +8196,7 @@ const yd = (e) => {
|
|
|
8196
8196
|
style: {
|
|
8197
8197
|
padding: 20
|
|
8198
8198
|
}
|
|
8199
|
-
}) : /* @__PURE__ */ P(
|
|
8199
|
+
}) : /* @__PURE__ */ P(ne, {
|
|
8200
8200
|
children: [/* @__PURE__ */ P("a", {
|
|
8201
8201
|
style: {
|
|
8202
8202
|
display: "block",
|
|
@@ -8206,7 +8206,7 @@ const yd = (e) => {
|
|
|
8206
8206
|
onClick: () => {
|
|
8207
8207
|
t(!1), u();
|
|
8208
8208
|
},
|
|
8209
|
-
children: [/* @__PURE__ */ n(Un, {}), " ",
|
|
8209
|
+
children: [/* @__PURE__ */ n(Un, {}), " ", _e("listAllAttachments", r)]
|
|
8210
8210
|
}), /* @__PURE__ */ P("a", {
|
|
8211
8211
|
style: {
|
|
8212
8212
|
display: "block"
|
|
@@ -8215,8 +8215,8 @@ const yd = (e) => {
|
|
|
8215
8215
|
onClick: () => {
|
|
8216
8216
|
t(!1), s();
|
|
8217
8217
|
},
|
|
8218
|
-
children: [/* @__PURE__ */ n(cn, {}), " ",
|
|
8219
|
-
}), i.length > 0 && /* @__PURE__ */ P(
|
|
8218
|
+
children: [/* @__PURE__ */ n(cn, {}), " ", _e("addNewAttachment", r)]
|
|
8219
|
+
}), i.length > 0 && /* @__PURE__ */ P(ne, {
|
|
8220
8220
|
children: [/* @__PURE__ */ n("li", {
|
|
8221
8221
|
className: "ant-dropdown-menu-item-divider"
|
|
8222
8222
|
}), i.map((d) => {
|
|
@@ -8237,7 +8237,7 @@ const yd = (e) => {
|
|
|
8237
8237
|
textAlign: "center"
|
|
8238
8238
|
},
|
|
8239
8239
|
children: (d.datas_fname || d.link) && /* @__PURE__ */ n(mt, {
|
|
8240
|
-
title: d.link ?
|
|
8240
|
+
title: d.link ? _e("openAttachmentLink", r) : _e("download", r),
|
|
8241
8241
|
children: /* @__PURE__ */ n(f, {
|
|
8242
8242
|
style: {
|
|
8243
8243
|
cursor: "pointer"
|
|
@@ -8253,7 +8253,7 @@ const yd = (e) => {
|
|
|
8253
8253
|
textAlign: "center"
|
|
8254
8254
|
},
|
|
8255
8255
|
children: /* @__PURE__ */ n(mt, {
|
|
8256
|
-
title:
|
|
8256
|
+
title: _e("openAttachment", r),
|
|
8257
8257
|
children: /* @__PURE__ */ n(Ht, {
|
|
8258
8258
|
style: {
|
|
8259
8259
|
cursor: "pointer"
|
|
@@ -8326,7 +8326,7 @@ function wd(e) {
|
|
|
8326
8326
|
}, []);
|
|
8327
8327
|
return pe(() => {
|
|
8328
8328
|
p();
|
|
8329
|
-
}, [p]), /* @__PURE__ */ P(
|
|
8329
|
+
}, [p]), /* @__PURE__ */ P(ne, {
|
|
8330
8330
|
children: [/* @__PURE__ */ n(yd, {
|
|
8331
8331
|
numberOfAttachments: t.length,
|
|
8332
8332
|
attachments: d,
|
|
@@ -8468,7 +8468,7 @@ function bd({
|
|
|
8468
8468
|
}
|
|
8469
8469
|
return r ? /* @__PURE__ */ P(Ye, {
|
|
8470
8470
|
wrap: !0,
|
|
8471
|
-
children: [F && /* @__PURE__ */ P(
|
|
8471
|
+
children: [F && /* @__PURE__ */ P(ne, {
|
|
8472
8472
|
children: [/* @__PURE__ */ n(Me, {}), Tt(), Tt()]
|
|
8473
8473
|
}), /* @__PURE__ */ n(Lo, {
|
|
8474
8474
|
disabled: a || F || p || h
|
|
@@ -8676,7 +8676,7 @@ const {
|
|
|
8676
8676
|
align: "middle",
|
|
8677
8677
|
children: [l ? null : /* @__PURE__ */ n(ce, {
|
|
8678
8678
|
flex: "32px",
|
|
8679
|
-
children: y ? /* @__PURE__ */ n(
|
|
8679
|
+
children: y ? /* @__PURE__ */ n(Ie, {
|
|
8680
8680
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
8681
8681
|
onClick: () => {
|
|
8682
8682
|
o(r) && (p(!1), g(!1));
|
|
@@ -8686,7 +8686,7 @@ const {
|
|
|
8686
8686
|
borderBottomRightRadius: 0
|
|
8687
8687
|
},
|
|
8688
8688
|
tabIndex: -1
|
|
8689
|
-
}) : /* @__PURE__ */ n(
|
|
8689
|
+
}) : /* @__PURE__ */ n(Ie, {
|
|
8690
8690
|
icon: /* @__PURE__ */ n(Xr, {}),
|
|
8691
8691
|
onClick: () => {
|
|
8692
8692
|
p(!0), g(!0);
|
|
@@ -8798,13 +8798,13 @@ const {
|
|
|
8798
8798
|
justify: "end",
|
|
8799
8799
|
children: /* @__PURE__ */ n(ce, {
|
|
8800
8800
|
children: /* @__PURE__ */ P(Ye, {
|
|
8801
|
-
children: [/* @__PURE__ */ n(
|
|
8801
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
8802
8802
|
icon: /* @__PURE__ */ n(Kt, {}),
|
|
8803
8803
|
htmlType: "button",
|
|
8804
8804
|
onClick: i,
|
|
8805
8805
|
disabled: o,
|
|
8806
8806
|
children: s("cancel")
|
|
8807
|
-
}), /* @__PURE__ */ n(
|
|
8807
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
8808
8808
|
loading: o,
|
|
8809
8809
|
style: {
|
|
8810
8810
|
marginLeft: 15
|
|
@@ -8938,7 +8938,7 @@ function yn(e) {
|
|
|
8938
8938
|
} = _d();
|
|
8939
8939
|
function m() {
|
|
8940
8940
|
if ((o == null ? void 0 : o.type) === "form")
|
|
8941
|
-
return s ? u === 0 ? /* @__PURE__ */ P(
|
|
8941
|
+
return s ? u === 0 ? /* @__PURE__ */ P(ne, {
|
|
8942
8942
|
children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8943
8943
|
copyable: {
|
|
8944
8944
|
icon: /* @__PURE__ */ n(Gn, {
|
|
@@ -8949,7 +8949,7 @@ function yn(e) {
|
|
|
8949
8949
|
},
|
|
8950
8950
|
children: s
|
|
8951
8951
|
}), ")"]
|
|
8952
|
-
}) : /* @__PURE__ */ P(
|
|
8952
|
+
}) : /* @__PURE__ */ P(ne, {
|
|
8953
8953
|
children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", u, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8954
8954
|
copyable: !0,
|
|
8955
8955
|
children: s
|
|
@@ -8957,14 +8957,14 @@ function yn(e) {
|
|
|
8957
8957
|
}) : "";
|
|
8958
8958
|
if ((o == null ? void 0 : o.type) === "tree" && d) {
|
|
8959
8959
|
if (d.length === 1)
|
|
8960
|
-
return /* @__PURE__ */ P(
|
|
8960
|
+
return /* @__PURE__ */ P(ne, {
|
|
8961
8961
|
children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Xt, {
|
|
8962
8962
|
copyable: !0,
|
|
8963
8963
|
children: d[0].id
|
|
8964
8964
|
}), ")"]
|
|
8965
8965
|
});
|
|
8966
8966
|
if (d.length > 1)
|
|
8967
|
-
return /* @__PURE__ */ P(
|
|
8967
|
+
return /* @__PURE__ */ P(ne, {
|
|
8968
8968
|
children: [d.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Xt, {
|
|
8969
8969
|
copyable: {
|
|
8970
8970
|
text: d.map((y) => y.id).join(", ")
|
|
@@ -9074,7 +9074,7 @@ const Dd = (e) => {
|
|
|
9074
9074
|
limit: E,
|
|
9075
9075
|
setLimit: x
|
|
9076
9076
|
});
|
|
9077
|
-
return !r || !t ? null : /* @__PURE__ */ P(
|
|
9077
|
+
return !r || !t ? null : /* @__PURE__ */ P(ne, {
|
|
9078
9078
|
children: [/* @__PURE__ */ n(yn, {
|
|
9079
9079
|
title: t.name,
|
|
9080
9080
|
children: /* @__PURE__ */ n(Od, {
|
|
@@ -9124,7 +9124,7 @@ const Dd = (e) => {
|
|
|
9124
9124
|
setResults: c,
|
|
9125
9125
|
setCurrentItemIndex: m
|
|
9126
9126
|
} = e;
|
|
9127
|
-
return t ? /* @__PURE__ */ P(
|
|
9127
|
+
return t ? /* @__PURE__ */ P(ne, {
|
|
9128
9128
|
children: [/* @__PURE__ */ n(yn, {
|
|
9129
9129
|
children: /* @__PURE__ */ n(bd, {
|
|
9130
9130
|
toolbar: a == null ? void 0 : a.toolbar
|
|
@@ -9199,7 +9199,7 @@ function Ad(e) {
|
|
|
9199
9199
|
})
|
|
9200
9200
|
})
|
|
9201
9201
|
}), /* @__PURE__ */ n(ce, {
|
|
9202
|
-
children: /* @__PURE__ */ n(
|
|
9202
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
9203
9203
|
htmlType: "submit",
|
|
9204
9204
|
disabled: r,
|
|
9205
9205
|
style: {
|
|
@@ -9314,9 +9314,9 @@ function kd(e) {
|
|
|
9314
9314
|
}
|
|
9315
9315
|
return /* @__PURE__ */ P(Ye, {
|
|
9316
9316
|
wrap: !0,
|
|
9317
|
-
children: [F && /* @__PURE__ */ P(
|
|
9317
|
+
children: [F && /* @__PURE__ */ P(ne, {
|
|
9318
9318
|
children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
|
|
9319
|
-
}), C ? null : /* @__PURE__ */ P(
|
|
9319
|
+
}), C ? null : /* @__PURE__ */ P(ne, {
|
|
9320
9320
|
children: [/* @__PURE__ */ n(Ad, {
|
|
9321
9321
|
disabled: l || a || F,
|
|
9322
9322
|
searchText: v,
|
|
@@ -9368,7 +9368,7 @@ function kd(e) {
|
|
|
9368
9368
|
var W;
|
|
9369
9369
|
(W = f == null ? void 0 : f.current) == null || W.refreshResults();
|
|
9370
9370
|
}
|
|
9371
|
-
}), !C && /* @__PURE__ */ P(
|
|
9371
|
+
}), !C && /* @__PURE__ */ P(ne, {
|
|
9372
9372
|
children: [vt(), /* @__PURE__ */ n(Xn, {
|
|
9373
9373
|
currentView: r,
|
|
9374
9374
|
availableViews: t,
|
|
@@ -9400,7 +9400,7 @@ function kd(e) {
|
|
|
9400
9400
|
}
|
|
9401
9401
|
});
|
|
9402
9402
|
}
|
|
9403
|
-
}), T && /* @__PURE__ */ P(
|
|
9403
|
+
}), T && /* @__PURE__ */ P(ne, {
|
|
9404
9404
|
children: [vt(), /* @__PURE__ */ n(Dt, {
|
|
9405
9405
|
icon: /* @__PURE__ */ n(Br, {
|
|
9406
9406
|
component: () => /* @__PURE__ */ P("svg", {
|
|
@@ -9495,7 +9495,7 @@ const Md = (e) => {
|
|
|
9495
9495
|
currentView: p,
|
|
9496
9496
|
setPreviousView: h
|
|
9497
9497
|
} = Y(et);
|
|
9498
|
-
return t ? /* @__PURE__ */ P(
|
|
9498
|
+
return t ? /* @__PURE__ */ P(ne, {
|
|
9499
9499
|
children: [/* @__PURE__ */ n(yn, {
|
|
9500
9500
|
children: /* @__PURE__ */ n(kd, {
|
|
9501
9501
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
@@ -9667,10 +9667,10 @@ function Hd(e, t) {
|
|
|
9667
9667
|
}));
|
|
9668
9668
|
const ie = async () => {
|
|
9669
9669
|
D(!0);
|
|
9670
|
-
const ee = [],
|
|
9670
|
+
const ee = [], De = [];
|
|
9671
9671
|
for (const le of s) {
|
|
9672
9672
|
const [me, Ue] = le;
|
|
9673
|
-
Ue !== "dashboard" ?
|
|
9673
|
+
Ue !== "dashboard" ? De.push({
|
|
9674
9674
|
viewTuple: le,
|
|
9675
9675
|
promise: H.getHandler().getView({
|
|
9676
9676
|
model: i,
|
|
@@ -9678,11 +9678,11 @@ function Hd(e, t) {
|
|
|
9678
9678
|
id: me,
|
|
9679
9679
|
context: o
|
|
9680
9680
|
})
|
|
9681
|
-
}) :
|
|
9681
|
+
}) : De.push({
|
|
9682
9682
|
viewTuple: le
|
|
9683
9683
|
});
|
|
9684
9684
|
}
|
|
9685
|
-
const Ae = await Pd(
|
|
9685
|
+
const Ae = await Pd(De);
|
|
9686
9686
|
for (const le of Ae) {
|
|
9687
9687
|
if (!le)
|
|
9688
9688
|
continue;
|
|
@@ -9744,8 +9744,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9744
9744
|
tabKey: u,
|
|
9745
9745
|
canWeClose: de
|
|
9746
9746
|
}), pe(() => {
|
|
9747
|
-
const ee = V.find((Ae) => Ae.type === "tree"),
|
|
9748
|
-
We(
|
|
9747
|
+
const ee = V.find((Ae) => Ae.type === "tree"), De = V.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type);
|
|
9748
|
+
We(De || ee), m ? z == null || z(E) : (Pe(void 0), M(void 0)), ie();
|
|
9749
9749
|
}, [i, s, m]), pe(() => {
|
|
9750
9750
|
be === u && (z == null || z(x), X == null || X(v));
|
|
9751
9751
|
}, [he, be]);
|
|
@@ -9758,9 +9758,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9758
9758
|
async function we(ee) {
|
|
9759
9759
|
var le;
|
|
9760
9760
|
J(!0);
|
|
9761
|
-
const
|
|
9761
|
+
const De = S.findIndex((me) => me.id === ee);
|
|
9762
9762
|
let Ae;
|
|
9763
|
-
if (
|
|
9763
|
+
if (De === -1) {
|
|
9764
9764
|
try {
|
|
9765
9765
|
Ae = (le = await H.getHandler().readObjects({
|
|
9766
9766
|
model: i,
|
|
@@ -9774,7 +9774,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9774
9774
|
return;
|
|
9775
9775
|
}
|
|
9776
9776
|
} else
|
|
9777
|
-
Ae = S[
|
|
9777
|
+
Ae = S[De];
|
|
9778
9778
|
J(!1), q(!1);
|
|
9779
9779
|
const ke = s.find((me) => me[1] === "form");
|
|
9780
9780
|
Ee({
|
|
@@ -9818,7 +9818,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9818
9818
|
model: i,
|
|
9819
9819
|
context: o,
|
|
9820
9820
|
domain: r,
|
|
9821
|
-
formView: V.find((
|
|
9821
|
+
formView: V.find((De) => De.type === "form"),
|
|
9822
9822
|
treeView: ee,
|
|
9823
9823
|
searchTreeRef: Z,
|
|
9824
9824
|
searchTreeNameSearch: W,
|
|
@@ -9835,8 +9835,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9835
9835
|
model: i,
|
|
9836
9836
|
context: o,
|
|
9837
9837
|
domain: r,
|
|
9838
|
-
treeView: V.find((
|
|
9839
|
-
formView: V.find((
|
|
9838
|
+
treeView: V.find((De) => De.type === "tree"),
|
|
9839
|
+
formView: V.find((De) => De.type === "form")
|
|
9840
9840
|
}, `${ee.type}-${ee.view_id}`);
|
|
9841
9841
|
case "dashboard":
|
|
9842
9842
|
return /* @__PURE__ */ n(Nd, {
|
|
@@ -9850,7 +9850,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9850
9850
|
te.current.clearAndReload();
|
|
9851
9851
|
else {
|
|
9852
9852
|
Pe(void 0);
|
|
9853
|
-
const ee = V.find((
|
|
9853
|
+
const ee = V.find((De) => De.type === "form");
|
|
9854
9854
|
We(ee);
|
|
9855
9855
|
}
|
|
9856
9856
|
}
|
|
@@ -10585,7 +10585,7 @@ const Zd = bt(Jd), Xd = (e) => {
|
|
|
10585
10585
|
});
|
|
10586
10586
|
}), V(C);
|
|
10587
10587
|
};
|
|
10588
|
-
return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(
|
|
10588
|
+
return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(ne, {
|
|
10589
10589
|
children: /* @__PURE__ */ P("div", {
|
|
10590
10590
|
className: "flex flex-row",
|
|
10591
10591
|
children: [/* @__PURE__ */ n(Pt.Group, {
|
|
@@ -10605,11 +10605,11 @@ const Zd = bt(Jd), Xd = (e) => {
|
|
|
10605
10605
|
}))
|
|
10606
10606
|
})
|
|
10607
10607
|
}), !p && /* @__PURE__ */ P(Ye, {
|
|
10608
|
-
children: [/* @__PURE__ */ n(
|
|
10608
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
10609
10609
|
onClick: A,
|
|
10610
10610
|
disabled: s.length == a.length,
|
|
10611
10611
|
children: "Check all"
|
|
10612
|
-
}), /* @__PURE__ */ n(
|
|
10612
|
+
}), /* @__PURE__ */ n(Ie, {
|
|
10613
10613
|
onClick: D,
|
|
10614
10614
|
disabled: s.length === 0,
|
|
10615
10615
|
children: "Uncheck all"
|
|
@@ -10780,7 +10780,7 @@ function fu(e, t) {
|
|
|
10780
10780
|
rootContext: o = {},
|
|
10781
10781
|
lang: s
|
|
10782
10782
|
} = e, [a, l] = _("welcome"), [u, d] = _([{
|
|
10783
|
-
title:
|
|
10783
|
+
title: _e("welcome", s),
|
|
10784
10784
|
key: "welcome",
|
|
10785
10785
|
closable: !0,
|
|
10786
10786
|
content: /* @__PURE__ */ n(uu, {})
|
|
@@ -11233,7 +11233,7 @@ function Yu() {
|
|
|
11233
11233
|
onRemoveTab: i,
|
|
11234
11234
|
onChangeTab: o
|
|
11235
11235
|
} = e || {};
|
|
11236
|
-
return /* @__PURE__ */ n(
|
|
11236
|
+
return /* @__PURE__ */ n(ne, {
|
|
11237
11237
|
children: r.map((s) => /* @__PURE__ */ n(hu, {
|
|
11238
11238
|
tabKey: s.key,
|
|
11239
11239
|
label: s.title,
|
|
@@ -11263,7 +11263,7 @@ function Wu() {
|
|
|
11263
11263
|
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(gu, {
|
|
11264
11264
|
tab: i
|
|
11265
11265
|
}, i.key))) || null;
|
|
11266
|
-
return /* @__PURE__ */ n(
|
|
11266
|
+
return /* @__PURE__ */ n(ne, {
|
|
11267
11267
|
children: r
|
|
11268
11268
|
});
|
|
11269
11269
|
}
|
|
@@ -11373,7 +11373,7 @@ const {
|
|
|
11373
11373
|
style: {
|
|
11374
11374
|
padding: "1rem"
|
|
11375
11375
|
}
|
|
11376
|
-
}) : d.length > 0 ? /* @__PURE__ */ n(
|
|
11376
|
+
}) : d.length > 0 ? /* @__PURE__ */ n(ne, {
|
|
11377
11377
|
children: d.map((k) => /* @__PURE__ */ n(Be.Item, {
|
|
11378
11378
|
children: /* @__PURE__ */ n(S, {
|
|
11379
11379
|
title: k.name,
|
|
@@ -11431,8 +11431,8 @@ const {
|
|
|
11431
11431
|
}
|
|
11432
11432
|
await x(), a(!s);
|
|
11433
11433
|
}
|
|
11434
|
-
return /* @__PURE__ */ P(
|
|
11435
|
-
children: [/* @__PURE__ */ n(
|
|
11434
|
+
return /* @__PURE__ */ P(ne, {
|
|
11435
|
+
children: [/* @__PURE__ */ n(Ie, {
|
|
11436
11436
|
type: s ? "primary" : "default",
|
|
11437
11437
|
icon: s ? /* @__PURE__ */ n(Wr, {
|
|
11438
11438
|
style: {
|
|
@@ -11449,7 +11449,7 @@ const {
|
|
|
11449
11449
|
overlay: M,
|
|
11450
11450
|
onVisibleChange: w,
|
|
11451
11451
|
open: l,
|
|
11452
|
-
children: /* @__PURE__ */ n(
|
|
11452
|
+
children: /* @__PURE__ */ n(Ie, {
|
|
11453
11453
|
style: {
|
|
11454
11454
|
width: 25,
|
|
11455
11455
|
borderTopLeftRadius: 0,
|