@gisce/react-ooui 2.115.0-alpha.5 → 2.115.0-alpha.6
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/helpers/treeHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +800 -797
- package/dist/react-ooui.es.js.map +1 -1
- package/package.json +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Label as cr, Field as ri, Tree as Ba, Tags as Cs, Reference as xs, Sele
|
|
|
8
8
|
import Jd, { QuestionCircleOutlined as za, ExclamationCircleOutlined as ho, LoadingOutlined as Gt, DownOutlined as Nr, CloseOutlined as Rn, CheckOutlined as dr, TranslationOutlined as Ka, FolderOpenOutlined as Ri, DownloadOutlined as Ei, ClearOutlined as ur, FormOutlined as Tr, TableOutlined as Oi, AreaChartOutlined as Xd, CalendarOutlined as Qd, BorderOuterOutlined as Ja, FileAddOutlined as go, CloseCircleFilled as Zd, FilterOutlined as er, EditOutlined as ki, CopyOutlined as $r, DeleteOutlined as Di, InfoCircleOutlined as yo, ReloadOutlined as vo, ThunderboltOutlined as bo, PrinterOutlined as wo, ExportOutlined as Mi, EnterOutlined as Co, SearchOutlined as Pr, SaveOutlined as ii, PlusOutlined as no, UpOutlined as eu, PlusSquareOutlined as Xa, MinusSquareOutlined as Qa, StarFilled as tu, StarOutlined as nu, LeftOutlined as Za, RightOutlined as el, ApiOutlined as ru, AlignLeftOutlined as ou, EyeOutlined as iu, LinkOutlined as Ss, MessageOutlined as su, SendOutlined as au, SettingOutlined as lu, EllipsisOutlined as cu } from "@ant-design/icons";
|
|
9
9
|
import { Interweave as hn } from "interweave";
|
|
10
10
|
import vt from "dayjs";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as sx } from "dayjs";
|
|
12
12
|
import du from "dayjs/plugin/advancedFormat";
|
|
13
13
|
import uu from "dayjs/plugin/customParseFormat";
|
|
14
14
|
import fu from "dayjs/plugin/isoWeek";
|
|
@@ -1404,19 +1404,22 @@ function Kf(t) {
|
|
|
1404
1404
|
return !0;
|
|
1405
1405
|
return !1;
|
|
1406
1406
|
}
|
|
1407
|
-
const
|
|
1407
|
+
const Jf = (t) => {
|
|
1408
|
+
const e = t.match(/^(.+)_(\d+)$/);
|
|
1409
|
+
return e ? e[1] : t;
|
|
1410
|
+
}, ar = ({
|
|
1408
1411
|
state: t
|
|
1409
1412
|
}) => {
|
|
1410
1413
|
if (!t)
|
|
1411
1414
|
return;
|
|
1412
1415
|
const e = t.filter((r) => r.sort).sort((r, o) => (r.sortIndex || 0) - (o.sortIndex || 0));
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
);
|
|
1416
|
+
if (e.length === 0)
|
|
1417
|
+
return;
|
|
1418
|
+
const n = /* @__PURE__ */ new Map();
|
|
1419
|
+
return e.forEach((r) => {
|
|
1420
|
+
const o = Jf(r.colId);
|
|
1421
|
+
n.has(o) || n.set(o, r.sort);
|
|
1422
|
+
}), Object.fromEntries(n);
|
|
1420
1423
|
}, Ar = (t) => {
|
|
1421
1424
|
if (t && Object.keys(t).length !== 0)
|
|
1422
1425
|
return Object.keys(t).map((e) => {
|
|
@@ -1515,7 +1518,7 @@ const ci = (t) => {
|
|
|
1515
1518
|
}, El = (t) => {
|
|
1516
1519
|
const e = t.filter((n) => n.id && n.id < 0).map((n) => n.id);
|
|
1517
1520
|
return e.length === 0 ? -1 : Math.min(...e) - 1;
|
|
1518
|
-
},
|
|
1521
|
+
}, Xf = (t, e) => {
|
|
1519
1522
|
const n = {};
|
|
1520
1523
|
return Object.keys(t).forEach((r) => {
|
|
1521
1524
|
var o;
|
|
@@ -1523,7 +1526,7 @@ const ci = (t) => {
|
|
|
1523
1526
|
(s) => s.operation !== "pendingRemove"
|
|
1524
1527
|
) : n[r] = t[r];
|
|
1525
1528
|
}), n;
|
|
1526
|
-
},
|
|
1529
|
+
}, Qf = ({
|
|
1527
1530
|
values: t,
|
|
1528
1531
|
fields: e
|
|
1529
1532
|
}) => {
|
|
@@ -1542,7 +1545,7 @@ const ci = (t) => {
|
|
|
1542
1545
|
n[r] = t[r];
|
|
1543
1546
|
}), n;
|
|
1544
1547
|
};
|
|
1545
|
-
function
|
|
1548
|
+
function Zf(t) {
|
|
1546
1549
|
const e = t.map((r) => r.id);
|
|
1547
1550
|
return t.filter((r, o) => {
|
|
1548
1551
|
const { id: s } = r;
|
|
@@ -1631,7 +1634,7 @@ const Ol = ({
|
|
|
1631
1634
|
colors: sr(l[1] || {}),
|
|
1632
1635
|
status: ro(l[1] || {})
|
|
1633
1636
|
};
|
|
1634
|
-
},
|
|
1637
|
+
}, em = (t, e) => {
|
|
1635
1638
|
if (!e)
|
|
1636
1639
|
return t;
|
|
1637
1640
|
const n = {};
|
|
@@ -1645,7 +1648,7 @@ const Ol = ({
|
|
|
1645
1648
|
} else
|
|
1646
1649
|
n[r] = t[r];
|
|
1647
1650
|
}), n;
|
|
1648
|
-
}, Mn = (t, e) =>
|
|
1651
|
+
}, Mn = (t, e) => em(t, e), Gr = ({
|
|
1649
1652
|
source: t,
|
|
1650
1653
|
target: e,
|
|
1651
1654
|
fields: n
|
|
@@ -1678,7 +1681,7 @@ const Ol = ({
|
|
|
1678
1681
|
else
|
|
1679
1682
|
t[o] === void 0 && e[o] !== void 0 ? r[o] = e[o] : t[o] !== e[o] && (e[o] === void 0 ? r[o] = null : r[o] = e[o]);
|
|
1680
1683
|
}), r;
|
|
1681
|
-
},
|
|
1684
|
+
}, tm = ({
|
|
1682
1685
|
changedFields: t,
|
|
1683
1686
|
formOoui: e,
|
|
1684
1687
|
types: n
|
|
@@ -1686,7 +1689,7 @@ const Ol = ({
|
|
|
1686
1689
|
var a;
|
|
1687
1690
|
const s = (a = e == null ? void 0 : e.findById(o)) == null ? void 0 : a.type;
|
|
1688
1691
|
return n.includes(s);
|
|
1689
|
-
}).some((o) => o === !0),
|
|
1692
|
+
}).some((o) => o === !0), nm = ({
|
|
1690
1693
|
fieldsDomain: t,
|
|
1691
1694
|
fields: e
|
|
1692
1695
|
}) => {
|
|
@@ -1699,7 +1702,7 @@ const Ol = ({
|
|
|
1699
1702
|
return !t || !Array.isArray(t) || (t == null ? void 0 : t.length) === 0 ? {} : (t.forEach((n) => {
|
|
1700
1703
|
(n == null ? void 0 : n[1]) === "=" && (e[n[0]] = n[2]);
|
|
1701
1704
|
}), e);
|
|
1702
|
-
},
|
|
1705
|
+
}, rm = ({
|
|
1703
1706
|
onChangeFieldActionArgs: t,
|
|
1704
1707
|
values: e,
|
|
1705
1708
|
parentValues: n = {}
|
|
@@ -1751,7 +1754,7 @@ const qn = ({
|
|
|
1751
1754
|
const o = t[r];
|
|
1752
1755
|
e[r] && e[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
|
|
1753
1756
|
}), n;
|
|
1754
|
-
},
|
|
1757
|
+
}, om = (t) => t ? "success" : "error", fr = (t) => {
|
|
1755
1758
|
if (!t)
|
|
1756
1759
|
return;
|
|
1757
1760
|
let e = 0;
|
|
@@ -1767,10 +1770,10 @@ const qn = ({
|
|
|
1767
1770
|
}, Pl = (t, e = 7) => ({
|
|
1768
1771
|
text: Lu(t)[e],
|
|
1769
1772
|
background: `${t}40`
|
|
1770
|
-
}),
|
|
1773
|
+
}), im = (t, e) => t.replace(
|
|
1771
1774
|
/\{([^}]+)\}/g,
|
|
1772
1775
|
(n, r) => e[r] !== void 0 ? e[r] : n
|
|
1773
|
-
), Rs = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""),
|
|
1776
|
+
), Rs = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""), sm = (t) => /* @__PURE__ */ U(
|
|
1774
1777
|
"div",
|
|
1775
1778
|
{
|
|
1776
1779
|
style: { display: "inline-block", cursor: "pointer" },
|
|
@@ -1783,7 +1786,7 @@ const qn = ({
|
|
|
1783
1786
|
] })
|
|
1784
1787
|
]
|
|
1785
1788
|
}
|
|
1786
|
-
),
|
|
1789
|
+
), am = (t) => {
|
|
1787
1790
|
const { ooui: e } = t, { relation: n, context: r, views: o } = e, [s, a] = A(!0), [d, c] = A(), [l, f] = A(/* @__PURE__ */ new Map()), u = Ae(dt), { getContext: m } = u || {};
|
|
1788
1791
|
Xe(() => {
|
|
1789
1792
|
g();
|
|
@@ -1803,8 +1806,8 @@ const qn = ({
|
|
|
1803
1806
|
a(!1);
|
|
1804
1807
|
}
|
|
1805
1808
|
};
|
|
1806
|
-
return s ? /* @__PURE__ */ i(ct, {}) : d ? (console.error(d), /* @__PURE__ */ i(Lt, { className: "mt-10", message: d, type: "error", banner: !0 })) : /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(
|
|
1807
|
-
},
|
|
1809
|
+
return s ? /* @__PURE__ */ i(ct, {}) : d ? (console.error(d), /* @__PURE__ */ i(Lt, { className: "mt-10", message: d, type: "error", banner: !0 })) : /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(lm, { ooui: e, views: l }) });
|
|
1810
|
+
}, lm = (t) => {
|
|
1808
1811
|
const { value: e, views: n, ooui: r, onChange: o } = t, { items: s = [] } = e || {}, [a, d] = A(!1), [c, l] = A(), [f, u] = A(!1), [m, p] = A(), {
|
|
1809
1812
|
relation: g,
|
|
1810
1813
|
context: h,
|
|
@@ -1856,7 +1859,7 @@ const qn = ({
|
|
|
1856
1859
|
var E, _, L, P;
|
|
1857
1860
|
const R = {
|
|
1858
1861
|
children: /* @__PURE__ */ i(
|
|
1859
|
-
|
|
1862
|
+
sm,
|
|
1860
1863
|
{
|
|
1861
1864
|
title: (E = k.values) == null ? void 0 : E[v],
|
|
1862
1865
|
summary: (_ = k.values) == null ? void 0 : _[b],
|
|
@@ -1893,7 +1896,7 @@ const qn = ({
|
|
|
1893
1896
|
}
|
|
1894
1897
|
)
|
|
1895
1898
|
] });
|
|
1896
|
-
},
|
|
1899
|
+
}, cm = {
|
|
1897
1900
|
true: "Sí",
|
|
1898
1901
|
false: "No",
|
|
1899
1902
|
simple_search: "Cerca simple",
|
|
@@ -2047,7 +2050,7 @@ const qn = ({
|
|
|
2047
2050
|
writeComment: "Escriu un comentari...",
|
|
2048
2051
|
noComments: "No hi ha comentaris",
|
|
2049
2052
|
noMatches: "Sense coincidències"
|
|
2050
|
-
},
|
|
2053
|
+
}, dm = {
|
|
2051
2054
|
true: "Yes",
|
|
2052
2055
|
false: "No",
|
|
2053
2056
|
simple_search: "Simple search",
|
|
@@ -2201,7 +2204,7 @@ const qn = ({
|
|
|
2201
2204
|
writeComment: "Write a comment...",
|
|
2202
2205
|
noComments: "No comments",
|
|
2203
2206
|
noMatches: "No matches"
|
|
2204
|
-
},
|
|
2207
|
+
}, um = {
|
|
2205
2208
|
true: "Sí",
|
|
2206
2209
|
false: "No",
|
|
2207
2210
|
simple_search: "Búsqueda simple",
|
|
@@ -2355,11 +2358,11 @@ const qn = ({
|
|
|
2355
2358
|
writeComment: "Escribe un comentario...",
|
|
2356
2359
|
noComments: "No hay comentarios",
|
|
2357
2360
|
noMatches: "Sin coincidencias"
|
|
2358
|
-
},
|
|
2359
|
-
ca_ES:
|
|
2360
|
-
en_US:
|
|
2361
|
-
es_ES:
|
|
2362
|
-
}, Ll = 100,
|
|
2361
|
+
}, fm = {
|
|
2362
|
+
ca_ES: cm,
|
|
2363
|
+
en_US: dm,
|
|
2364
|
+
es_ES: um
|
|
2365
|
+
}, Ll = 100, mm = {
|
|
2363
2366
|
erpFeatures: {},
|
|
2364
2367
|
userFeatures: {
|
|
2365
2368
|
features: {},
|
|
@@ -2371,7 +2374,7 @@ const qn = ({
|
|
|
2371
2374
|
devMode: !1,
|
|
2372
2375
|
treeMaxLimit: Ll,
|
|
2373
2376
|
onActionTriggered: void 0
|
|
2374
|
-
}, Vl = an.createContext(
|
|
2377
|
+
}, Vl = an.createContext(mm), Jt = () => {
|
|
2375
2378
|
const t = Ae(Vl);
|
|
2376
2379
|
if (!t)
|
|
2377
2380
|
throw new Error(
|
|
@@ -2388,7 +2391,7 @@ const qn = ({
|
|
|
2388
2391
|
}, Io = (t) => {
|
|
2389
2392
|
const { erpFeatures: e } = Jt();
|
|
2390
2393
|
return e[t];
|
|
2391
|
-
},
|
|
2394
|
+
}, pm = it(
|
|
2392
2395
|
({
|
|
2393
2396
|
erpFeatures: t,
|
|
2394
2397
|
locale: e,
|
|
@@ -2428,14 +2431,14 @@ const qn = ({
|
|
|
2428
2431
|
bu,
|
|
2429
2432
|
{
|
|
2430
2433
|
locale: e,
|
|
2431
|
-
localizedStrings: wu(
|
|
2434
|
+
localizedStrings: wu(fm, n),
|
|
2432
2435
|
children: c
|
|
2433
2436
|
}
|
|
2434
2437
|
) });
|
|
2435
2438
|
}
|
|
2436
2439
|
);
|
|
2437
|
-
|
|
2438
|
-
const Bt = 80, Fn = "ir.actions.act_window",
|
|
2440
|
+
pm.displayName = "ConfigContextProvider";
|
|
2441
|
+
const Bt = 80, Fn = "ir.actions.act_window", hm = "ir.actions.act_window_close", Bl = "ir.actions.wizard", di = "ir.actions.report.xml", gm = "ir.actions.act_url", ym = "ir.actions.actions", vm = "ir.act.update_token";
|
|
2439
2442
|
async function Hl({
|
|
2440
2443
|
actionId: t,
|
|
2441
2444
|
rootContext: e = {},
|
|
@@ -2493,7 +2496,7 @@ async function Hl({
|
|
|
2493
2496
|
treeExpandable: g
|
|
2494
2497
|
};
|
|
2495
2498
|
}
|
|
2496
|
-
const
|
|
2499
|
+
const bm = (t) => {
|
|
2497
2500
|
const e = K(!1), [n, r] = A(), [o, s] = A(!1), [a, d] = A(), [c, l] = A(), f = Ae(dt), { getContext: u, getPlainValues: m, activeId: p } = f || {}, { globalValues: g, rootContext: h } = Jt(), y = z(() => ({ ...u == null ? void 0 : u(), ...h }), [u, h]);
|
|
2498
2501
|
return { actionData: a, treeShortcut: c, loading: o, error: n, fetchData: async () => {
|
|
2499
2502
|
r(void 0), e.current || s(!0);
|
|
@@ -2626,7 +2629,7 @@ const vm = (t) => {
|
|
|
2626
2629
|
},
|
|
2627
2630
|
children: ({ measureRef: g }) => {
|
|
2628
2631
|
const b = Math.min(p || e || 200, r || 200), v = b > 0 ? b : 200, C = v, S = p || e, w = r, F = u ? /* @__PURE__ */ i(
|
|
2629
|
-
|
|
2632
|
+
Cm,
|
|
2630
2633
|
{
|
|
2631
2634
|
value: s,
|
|
2632
2635
|
total: a,
|
|
@@ -2639,7 +2642,7 @@ const vm = (t) => {
|
|
|
2639
2642
|
suffix: f
|
|
2640
2643
|
}
|
|
2641
2644
|
) : /* @__PURE__ */ i(
|
|
2642
|
-
|
|
2645
|
+
wm,
|
|
2643
2646
|
{
|
|
2644
2647
|
value: s,
|
|
2645
2648
|
total: a,
|
|
@@ -2682,7 +2685,7 @@ function Wl(t, e) {
|
|
|
2682
2685
|
const r = document.createElement("canvas").getContext("2d");
|
|
2683
2686
|
return r.font = e || getComputedStyle(document.body).font, r.measureText(t).width;
|
|
2684
2687
|
}
|
|
2685
|
-
function
|
|
2688
|
+
function wm({
|
|
2686
2689
|
measureRef: t,
|
|
2687
2690
|
width: e,
|
|
2688
2691
|
height: n,
|
|
@@ -2725,7 +2728,7 @@ function bm({
|
|
|
2725
2728
|
}
|
|
2726
2729
|
);
|
|
2727
2730
|
}
|
|
2728
|
-
function
|
|
2731
|
+
function Cm({
|
|
2729
2732
|
measureRef: t,
|
|
2730
2733
|
height: e,
|
|
2731
2734
|
width: n,
|
|
@@ -2789,7 +2792,7 @@ function wm({
|
|
|
2789
2792
|
}
|
|
2790
2793
|
);
|
|
2791
2794
|
}
|
|
2792
|
-
const { getValueForOperator: Es } = ja,
|
|
2795
|
+
const { getValueForOperator: Es } = ja, xm = (t) => {
|
|
2793
2796
|
const {
|
|
2794
2797
|
model: e,
|
|
2795
2798
|
domain: n,
|
|
@@ -2924,7 +2927,7 @@ const { getValueForOperator: Es } = ja, Cm = (t) => {
|
|
|
2924
2927
|
fixedHeight: p
|
|
2925
2928
|
}
|
|
2926
2929
|
);
|
|
2927
|
-
}, { processGraphData:
|
|
2930
|
+
}, { processGraphData: Sm } = ja, { getFieldsToRetrieve: Tm } = qd, _m = (t) => {
|
|
2928
2931
|
const {
|
|
2929
2932
|
model: e,
|
|
2930
2933
|
ooui: n,
|
|
@@ -2939,10 +2942,10 @@ const { getValueForOperator: Es } = ja, Cm = (t) => {
|
|
|
2939
2942
|
Y.getHandler().readObjects
|
|
2940
2943
|
), [S] = Oe(Y.getHandler().search), w = T(async () => {
|
|
2941
2944
|
l(!0), u(void 0), b(n.type || "line");
|
|
2942
|
-
const F =
|
|
2945
|
+
const F = Tm({ ooui: n });
|
|
2943
2946
|
let x, I;
|
|
2944
2947
|
try {
|
|
2945
|
-
({ values: x, fields: I } = await
|
|
2948
|
+
({ values: x, fields: I } = await Am({
|
|
2946
2949
|
model: e,
|
|
2947
2950
|
domain: r,
|
|
2948
2951
|
context: o,
|
|
@@ -2971,7 +2974,7 @@ const { getValueForOperator: Es } = ja, Cm = (t) => {
|
|
|
2971
2974
|
fetchData: w
|
|
2972
2975
|
};
|
|
2973
2976
|
h(x);
|
|
2974
|
-
const D =
|
|
2977
|
+
const D = Sm({
|
|
2975
2978
|
ooui: n,
|
|
2976
2979
|
values: x,
|
|
2977
2980
|
fields: I,
|
|
@@ -3011,7 +3014,7 @@ const { getValueForOperator: Es } = ja, Cm = (t) => {
|
|
|
3011
3014
|
fetchData: w
|
|
3012
3015
|
};
|
|
3013
3016
|
};
|
|
3014
|
-
async function
|
|
3017
|
+
async function Im({
|
|
3015
3018
|
model: t,
|
|
3016
3019
|
context: e,
|
|
3017
3020
|
fields: n,
|
|
@@ -3023,7 +3026,7 @@ async function _m({
|
|
|
3023
3026
|
fields: n
|
|
3024
3027
|
});
|
|
3025
3028
|
}
|
|
3026
|
-
async function
|
|
3029
|
+
async function Am({
|
|
3027
3030
|
fields: t,
|
|
3028
3031
|
model: e,
|
|
3029
3032
|
domain: n,
|
|
@@ -3033,7 +3036,7 @@ async function Im({
|
|
|
3033
3036
|
manualIds: a,
|
|
3034
3037
|
methods: d
|
|
3035
3038
|
}) {
|
|
3036
|
-
const { getFields: c, readObjects: l, search: f } = d, u = await
|
|
3039
|
+
const { getFields: c, readObjects: l, search: f } = d, u = await Im({
|
|
3037
3040
|
model: e,
|
|
3038
3041
|
context: r,
|
|
3039
3042
|
fields: t,
|
|
@@ -3124,7 +3127,7 @@ const Po = (t) => (e) => {
|
|
|
3124
3127
|
});
|
|
3125
3128
|
return { name: t === "pie" ? e.x : e.type, value: n };
|
|
3126
3129
|
}, zr = (t) => {
|
|
3127
|
-
if (typeof t == "string" &&
|
|
3130
|
+
if (typeof t == "string" && Fm(t))
|
|
3128
3131
|
return parseFloat(t).toLocaleString("es-ES", {
|
|
3129
3132
|
useGrouping: !0
|
|
3130
3133
|
});
|
|
@@ -3132,14 +3135,14 @@ const Po = (t) => (e) => {
|
|
|
3132
3135
|
return t.toLocaleString("es-ES", {
|
|
3133
3136
|
useGrouping: !0
|
|
3134
3137
|
});
|
|
3135
|
-
if (
|
|
3136
|
-
const e =
|
|
3138
|
+
if (Rm(t)) {
|
|
3139
|
+
const e = Em(t);
|
|
3137
3140
|
return e === null ? t : vt(t, ao.input[e]).format(
|
|
3138
3141
|
ao.output[e]
|
|
3139
3142
|
);
|
|
3140
3143
|
} else
|
|
3141
3144
|
return t;
|
|
3142
|
-
},
|
|
3145
|
+
}, Fm = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), ql = (t) => typeof t == "number" && !isNaN(t), ks = {
|
|
3143
3146
|
default: {
|
|
3144
3147
|
padding: "auto",
|
|
3145
3148
|
xAxis: {
|
|
@@ -3214,7 +3217,7 @@ const Po = (t) => (e) => {
|
|
|
3214
3217
|
}
|
|
3215
3218
|
}
|
|
3216
3219
|
};
|
|
3217
|
-
function
|
|
3220
|
+
function Rm(t) {
|
|
3218
3221
|
return typeof t != "string" || t === void 0 ? !1 : new Date(t).toString() !== "Invalid Date";
|
|
3219
3222
|
}
|
|
3220
3223
|
const ao = {
|
|
@@ -3233,7 +3236,7 @@ const ao = {
|
|
|
3233
3236
|
years: "YYYY"
|
|
3234
3237
|
}
|
|
3235
3238
|
};
|
|
3236
|
-
function
|
|
3239
|
+
function Em(t) {
|
|
3237
3240
|
for (const e in ao.input)
|
|
3238
3241
|
if (vt(
|
|
3239
3242
|
t,
|
|
@@ -3243,7 +3246,7 @@ function Rm(t) {
|
|
|
3243
3246
|
return e;
|
|
3244
3247
|
return null;
|
|
3245
3248
|
}
|
|
3246
|
-
const
|
|
3249
|
+
const Om = {
|
|
3247
3250
|
inner: {
|
|
3248
3251
|
label: {
|
|
3249
3252
|
type: "inner",
|
|
@@ -3260,7 +3263,7 @@ const Em = {
|
|
|
3260
3263
|
labelHeight: 28
|
|
3261
3264
|
}
|
|
3262
3265
|
}
|
|
3263
|
-
},
|
|
3266
|
+
}, km = (t) => {
|
|
3264
3267
|
const e = t.reduce((c, l) => c + l.value, 0), r = t.map((c) => c.value / e * 100).map(
|
|
3265
3268
|
(c) => Math.round(c * 100) / 100
|
|
3266
3269
|
), o = r.reduce((c, l) => c + l, 0);
|
|
@@ -3276,10 +3279,10 @@ const Em = {
|
|
|
3276
3279
|
x: c.x,
|
|
3277
3280
|
percent: d[l]
|
|
3278
3281
|
}));
|
|
3279
|
-
}, { Text: Ds } = Kt,
|
|
3280
|
-
line:
|
|
3281
|
-
bar:
|
|
3282
|
-
pie:
|
|
3282
|
+
}, { Text: Ds } = Kt, Dm = 400, Mm = it(Mu), Nm = it(Nu), $m = it($u), Pm = {
|
|
3283
|
+
line: Mm,
|
|
3284
|
+
bar: Nm,
|
|
3285
|
+
pie: $m
|
|
3283
3286
|
}, Yl = ({
|
|
3284
3287
|
type: t,
|
|
3285
3288
|
data: e,
|
|
@@ -3297,7 +3300,7 @@ const Em = {
|
|
|
3297
3300
|
return e.reduce((y, b) => y + b.value, 0);
|
|
3298
3301
|
}, [e, t]), l = z(() => {
|
|
3299
3302
|
if (t === "pie")
|
|
3300
|
-
return
|
|
3303
|
+
return km(e);
|
|
3301
3304
|
}, [e, t]), f = T(
|
|
3302
3305
|
(h) => {
|
|
3303
3306
|
if (!l)
|
|
@@ -3314,7 +3317,7 @@ const Em = {
|
|
|
3314
3317
|
}, [f, l]), m = T(
|
|
3315
3318
|
({ percent: h, x: y }) => h < 0.07 ? "" : f(y),
|
|
3316
3319
|
[f]
|
|
3317
|
-
), p =
|
|
3320
|
+
), p = Pm[t], g = z(() => Lm({
|
|
3318
3321
|
type: t,
|
|
3319
3322
|
data: e,
|
|
3320
3323
|
isGroup: n,
|
|
@@ -3358,7 +3361,7 @@ const Em = {
|
|
|
3358
3361
|
}
|
|
3359
3362
|
) : /* @__PURE__ */ i(Fe, { children: `Unknown graph type: ${t}` });
|
|
3360
3363
|
};
|
|
3361
|
-
function
|
|
3364
|
+
function Lm(t) {
|
|
3362
3365
|
const {
|
|
3363
3366
|
type: e,
|
|
3364
3367
|
data: n,
|
|
@@ -3370,7 +3373,7 @@ function Pm(t) {
|
|
|
3370
3373
|
fixedHeight: c
|
|
3371
3374
|
} = t;
|
|
3372
3375
|
let l = { ...ks[e] };
|
|
3373
|
-
if (l || (l = { ...ks.default }), l.data = n, l.height = c, e === "pie" ? (l.colorField = "x", l.angleField = "value", l = { ...l, ...
|
|
3376
|
+
if (l || (l = { ...ks.default }), l.data = n, l.height = c, e === "pie" ? (l.colorField = "x", l.angleField = "value", l = { ...l, ...Om.inner }, l.legend.itemValue = s, l.label.content = a) : (l.xField = "x", l.yField = "value", l.seriesField = "type", l.isGroup = r, o && (l.isStack = !0, l.groupField = "stacked", l.tooltip = {
|
|
3374
3377
|
fields: ["type", "value", "x"],
|
|
3375
3378
|
formatter: (f) => {
|
|
3376
3379
|
const u = f.value.toLocaleString("es-ES", {
|
|
@@ -3405,7 +3408,7 @@ function Pm(t) {
|
|
|
3405
3408
|
}
|
|
3406
3409
|
return l;
|
|
3407
3410
|
}
|
|
3408
|
-
const
|
|
3411
|
+
const Vm = ({
|
|
3409
3412
|
ooui: t,
|
|
3410
3413
|
model: e,
|
|
3411
3414
|
domain: n,
|
|
@@ -3414,7 +3417,7 @@ const Lm = ({
|
|
|
3414
3417
|
manualIds: s,
|
|
3415
3418
|
fixedHeight: a
|
|
3416
3419
|
}) => {
|
|
3417
|
-
const { t: d } = Ee(), { error: c, loading: l, values: f, type: u, evaluatedEntries: m, fetchData: p } =
|
|
3420
|
+
const { t: d } = Ee(), { error: c, loading: l, values: f, type: u, evaluatedEntries: m, fetchData: p } = _m({
|
|
3418
3421
|
model: e,
|
|
3419
3422
|
ooui: t,
|
|
3420
3423
|
limit: o,
|
|
@@ -3441,14 +3444,14 @@ const Lm = ({
|
|
|
3441
3444
|
}
|
|
3442
3445
|
);
|
|
3443
3446
|
}, Ms = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, br = (t, e) => {
|
|
3444
|
-
const n =
|
|
3447
|
+
const n = qm(t), r = Um(n), o = Wm(
|
|
3445
3448
|
r,
|
|
3446
3449
|
e
|
|
3447
3450
|
);
|
|
3448
3451
|
return [
|
|
3449
|
-
...Object.keys(o).map((d) =>
|
|
3452
|
+
...Object.keys(o).map((d) => Bm(d, o[d], e))
|
|
3450
3453
|
].reduce((d, c) => Array.isArray(c[0]) ? d.concat(c) : [...d, c], []);
|
|
3451
|
-
},
|
|
3454
|
+
}, Bm = (t, e, n) => {
|
|
3452
3455
|
var s;
|
|
3453
3456
|
const r = t.split("#")[0], o = (s = n.findById(r)) == null ? void 0 : s.type;
|
|
3454
3457
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -3470,14 +3473,14 @@ const Lm = ({
|
|
|
3470
3473
|
(a) => Ms(a)
|
|
3471
3474
|
)
|
|
3472
3475
|
] : [t, "=", Ms(e)];
|
|
3473
|
-
},
|
|
3476
|
+
}, Hm = (t) => Object.keys(t).filter((e) => e.indexOf("#date") !== -1), jm = (t) => {
|
|
3474
3477
|
const e = { ...t };
|
|
3475
3478
|
return Object.keys(e).forEach(
|
|
3476
3479
|
(n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete e[n]
|
|
3477
3480
|
), e;
|
|
3478
|
-
},
|
|
3479
|
-
const e = { ...
|
|
3480
|
-
return
|
|
3481
|
+
}, Um = (t) => {
|
|
3482
|
+
const e = { ...jm(t) };
|
|
3483
|
+
return Hm(t).forEach((r) => {
|
|
3481
3484
|
const o = t[r], s = r.split("#")[0], a = s + "#time", d = t[a];
|
|
3482
3485
|
let c, l;
|
|
3483
3486
|
if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), d && d[0] !== null)) {
|
|
@@ -3490,7 +3493,7 @@ const Lm = ({
|
|
|
3490
3493
|
}
|
|
3491
3494
|
e[s + "#datetime"] = [c, l];
|
|
3492
3495
|
}), e;
|
|
3493
|
-
},
|
|
3496
|
+
}, Wm = (t, e) => {
|
|
3494
3497
|
const n = Object.keys(t).filter((o) => {
|
|
3495
3498
|
const s = e.findById(o);
|
|
3496
3499
|
return s && s.type === "date";
|
|
@@ -3498,7 +3501,7 @@ const Lm = ({
|
|
|
3498
3501
|
return n.forEach((o) => {
|
|
3499
3502
|
delete r[o], t[o][0] !== null && (r[o + "#from"] = t[o][0]), t[o][1] !== null && (r[o + "#to"] = t[o][1]);
|
|
3500
3503
|
}), r;
|
|
3501
|
-
},
|
|
3504
|
+
}, qm = (t) => {
|
|
3502
3505
|
const e = { ...t };
|
|
3503
3506
|
return Object.keys(e).forEach(
|
|
3504
3507
|
(n) => (e[n] === void 0 || e[n] === null || e[n] === "") && delete e[n]
|
|
@@ -3525,12 +3528,12 @@ const Lm = ({
|
|
|
3525
3528
|
return r;
|
|
3526
3529
|
}, {});
|
|
3527
3530
|
return nr(n);
|
|
3528
|
-
}, { confirm:
|
|
3531
|
+
}, { confirm: Ym } = Pt, mr = ({
|
|
3529
3532
|
onOk: t,
|
|
3530
3533
|
onCancel: e,
|
|
3531
3534
|
t: n
|
|
3532
3535
|
}) => {
|
|
3533
|
-
|
|
3536
|
+
Ym({
|
|
3534
3537
|
title: n("unsavedChanges"),
|
|
3535
3538
|
icon: /* @__PURE__ */ i(ho, {}),
|
|
3536
3539
|
centered: !0,
|
|
@@ -3685,9 +3688,9 @@ function Jl(t) {
|
|
|
3685
3688
|
}
|
|
3686
3689
|
);
|
|
3687
3690
|
}
|
|
3688
|
-
const { useToken:
|
|
3691
|
+
const { useToken: Gm } = at;
|
|
3689
3692
|
function Xl(t) {
|
|
3690
|
-
const { badgeNumber: e = 0, ...n } = t, { token: r } =
|
|
3693
|
+
const { badgeNumber: e = 0, ...n } = t, { token: r } = Gm();
|
|
3691
3694
|
return /* @__PURE__ */ U("div", { style: { position: "relative" }, children: [
|
|
3692
3695
|
e > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
|
|
3693
3696
|
"span",
|
|
@@ -3737,7 +3740,7 @@ async function qi(t, e, n) {
|
|
|
3737
3740
|
] })
|
|
3738
3741
|
);
|
|
3739
3742
|
}
|
|
3740
|
-
function
|
|
3743
|
+
function zm(t) {
|
|
3741
3744
|
const { onSearch: e, disabled: n = !1, searchText: r } = t, { t: o } = Ee(), [s] = At.useForm(), [a, d] = A(!1), c = K(!1), l = K(r);
|
|
3742
3745
|
function f(p) {
|
|
3743
3746
|
const g = p.search;
|
|
@@ -3793,7 +3796,7 @@ function Gm(t) {
|
|
|
3793
3796
|
);
|
|
3794
3797
|
}
|
|
3795
3798
|
var Et = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t.FEATURE_SSE_SESSION_NOTIFICATIONS = "sse_session_notifications", t.FEATURE_COMMENTS_SYSTEM = "comments_system", t))(Et || {});
|
|
3796
|
-
const
|
|
3799
|
+
const QC = Object.values(Et), Xt = an.createContext(null), Km = (t) => {
|
|
3797
3800
|
const {
|
|
3798
3801
|
children: e,
|
|
3799
3802
|
openAction: n,
|
|
@@ -3836,7 +3839,7 @@ const XC = Object.values(Et), Xt = an.createContext(null), zm = (t) => {
|
|
|
3836
3839
|
function pr() {
|
|
3837
3840
|
return Ae(Xt) || {};
|
|
3838
3841
|
}
|
|
3839
|
-
const { useToken:
|
|
3842
|
+
const { useToken: Jm } = at, Xm = (t) => {
|
|
3840
3843
|
var E, _;
|
|
3841
3844
|
const {
|
|
3842
3845
|
searchVisible: e,
|
|
@@ -3847,7 +3850,7 @@ const { useToken: Km } = at, Jm = (t) => {
|
|
|
3847
3850
|
onApplySearch: a,
|
|
3848
3851
|
onRefetchSavedSearches: d,
|
|
3849
3852
|
onClearSavedSearch: c
|
|
3850
|
-
} = t, { t: l } = Ee(), { token: f } =
|
|
3853
|
+
} = t, { t: l } = Ee(), { token: f } = Jm(), u = K(null), m = Ae(
|
|
3851
3854
|
Xt
|
|
3852
3855
|
), { openDefaultActionForModel: p } = m || {}, g = Ae(
|
|
3853
3856
|
qt
|
|
@@ -4015,7 +4018,7 @@ const { useToken: Km } = at, Jm = (t) => {
|
|
|
4015
4018
|
var e;
|
|
4016
4019
|
for (let n = 0; n < t.length; n++)
|
|
4017
4020
|
await ((e = t == null ? void 0 : t[n]) == null ? void 0 : e.call(t));
|
|
4018
|
-
},
|
|
4021
|
+
}, Qm = (t, e) => {
|
|
4019
4022
|
const { children: n, globalValues: r = {} } = t, o = K(), s = K(), [a, d] = A(!1), c = Ae(
|
|
4020
4023
|
Xt
|
|
4021
4024
|
), { openAction: l } = c || {}, f = K([]), { t: u } = Ee(), { showErrorNotification: m } = Rt(), p = Io(
|
|
@@ -4132,9 +4135,9 @@ const { useToken: Km } = at, Jm = (t) => {
|
|
|
4132
4135
|
});
|
|
4133
4136
|
if (B === Fn)
|
|
4134
4137
|
return await x({ actionData: O, fields: k, values: R, context: E });
|
|
4135
|
-
if (B ===
|
|
4138
|
+
if (B === gm)
|
|
4136
4139
|
window.open(
|
|
4137
|
-
|
|
4140
|
+
im(O.url, { ...R, context: E }),
|
|
4138
4141
|
"_blank"
|
|
4139
4142
|
);
|
|
4140
4143
|
else
|
|
@@ -4190,7 +4193,7 @@ const { useToken: Km } = at, Jm = (t) => {
|
|
|
4190
4193
|
actionData: _
|
|
4191
4194
|
}), {};
|
|
4192
4195
|
} else {
|
|
4193
|
-
const { initialView: M, views: j } = await
|
|
4196
|
+
const { initialView: M, views: j } = await Zm({
|
|
4194
4197
|
model: _.res_model,
|
|
4195
4198
|
context: B,
|
|
4196
4199
|
view_mode: _.view_mode,
|
|
@@ -4311,7 +4314,7 @@ const { useToken: Km } = at, Jm = (t) => {
|
|
|
4311
4314
|
}
|
|
4312
4315
|
) });
|
|
4313
4316
|
};
|
|
4314
|
-
async function
|
|
4317
|
+
async function Zm({
|
|
4315
4318
|
views: t,
|
|
4316
4319
|
view_mode: e,
|
|
4317
4320
|
model: n,
|
|
@@ -4360,7 +4363,7 @@ async function Qm({
|
|
|
4360
4363
|
}
|
|
4361
4364
|
return { views: s, initialView: a };
|
|
4362
4365
|
}
|
|
4363
|
-
const
|
|
4366
|
+
const ep = Ht(Qm), Ql = ({
|
|
4364
4367
|
selectedRowItems: t,
|
|
4365
4368
|
onRefreshParentValues: e,
|
|
4366
4369
|
treeView: n,
|
|
@@ -4486,17 +4489,17 @@ const Zm = Ht(Xm), Ql = ({
|
|
|
4486
4489
|
};
|
|
4487
4490
|
}, kt = it(() => /* @__PURE__ */ i("div", { className: "inline-block w-2" }));
|
|
4488
4491
|
kt.displayName = "ActionBarSeparator";
|
|
4489
|
-
const
|
|
4492
|
+
const tp = "action", np = ["active_id", "active_ids", "id"], rp = ["target", "context", "domain", "fields"], ec = (t) => {
|
|
4490
4493
|
const e = new URL(window.location.origin);
|
|
4491
|
-
e.pathname =
|
|
4494
|
+
e.pathname = tp;
|
|
4492
4495
|
const n = {
|
|
4493
4496
|
...t,
|
|
4494
|
-
actionRawData: (t == null ? void 0 : t.actionRawData) &&
|
|
4497
|
+
actionRawData: (t == null ? void 0 : t.actionRawData) && ip(t.actionRawData)
|
|
4495
4498
|
};
|
|
4496
4499
|
return Object.entries(n).forEach(([r, o]) => {
|
|
4497
|
-
!
|
|
4500
|
+
!rp.includes(r) && o !== void 0 && (!Array.isArray(o) || o.length > 0) && e.searchParams.set(r, op(o));
|
|
4498
4501
|
}), e.toString();
|
|
4499
|
-
},
|
|
4502
|
+
}, op = (t) => typeof t == "object" ? JSON.stringify(t) : t.toString(), ip = (t) => {
|
|
4500
4503
|
const { context: e, domain: n, values: r } = t, o = {};
|
|
4501
4504
|
if (e && (typeof e == "string" ? e !== "{}" && (o.context = e) : typeof e == "object" && Object.keys(e).length > 0 && (o.context = e)), n && (Array.isArray(n) ? n.length > 0 && (o.domain = n) : n !== "false" && (o.domain = n)), (o.domain || o.context) && r && typeof r == "object" && Object.keys(r).length > 0) {
|
|
4502
4505
|
const s = tc(r);
|
|
@@ -4504,8 +4507,8 @@ const ep = "action", tp = ["active_id", "active_ids", "id"], np = ["target", "co
|
|
|
4504
4507
|
}
|
|
4505
4508
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
4506
4509
|
}, tc = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
|
|
4507
|
-
Object.entries(t).filter(([e]) =>
|
|
4508
|
-
),
|
|
4510
|
+
Object.entries(t).filter(([e]) => np.includes(e))
|
|
4511
|
+
), sp = En("IconExternalLink"), ap = En("IconShare2");
|
|
4509
4512
|
function Ao({ res_id: t, searchParams: e }) {
|
|
4510
4513
|
const n = K(null), { currentView: r, limit: o, currentPage: s, order: a } = Vt(), d = {
|
|
4511
4514
|
id: r.view_id,
|
|
@@ -4570,7 +4573,7 @@ function Ao({ res_id: t, searchParams: e }) {
|
|
|
4570
4573
|
{
|
|
4571
4574
|
title: l("openInNewTab"),
|
|
4572
4575
|
style: { height: 28 },
|
|
4573
|
-
icon: /* @__PURE__ */ i(
|
|
4576
|
+
icon: /* @__PURE__ */ i(sp, { size: 18, color: c.colorTextSecondary }),
|
|
4574
4577
|
type: "text",
|
|
4575
4578
|
onClick: () => window.open(y, "_blank", "noopener,noreferrer")
|
|
4576
4579
|
}
|
|
@@ -4580,13 +4583,13 @@ function Ao({ res_id: t, searchParams: e }) {
|
|
|
4580
4583
|
Ut,
|
|
4581
4584
|
{
|
|
4582
4585
|
style: { height: 28 },
|
|
4583
|
-
icon: /* @__PURE__ */ i(
|
|
4586
|
+
icon: /* @__PURE__ */ i(ap, { size: 16, color: c.colorTextSecondary }),
|
|
4584
4587
|
disabled: v,
|
|
4585
4588
|
tooltip: l("share")
|
|
4586
4589
|
}
|
|
4587
4590
|
) }) }) });
|
|
4588
4591
|
}
|
|
4589
|
-
function
|
|
4592
|
+
function lp({
|
|
4590
4593
|
parentContext: t = {},
|
|
4591
4594
|
treeExpandable: e,
|
|
4592
4595
|
toolbar: n,
|
|
@@ -4791,7 +4794,7 @@ function ap({
|
|
|
4791
4794
|
] }),
|
|
4792
4795
|
!e && /* @__PURE__ */ U(Fe, { children: [
|
|
4793
4796
|
/* @__PURE__ */ i(
|
|
4794
|
-
|
|
4797
|
+
zm,
|
|
4795
4798
|
{
|
|
4796
4799
|
disabled: m || u || x,
|
|
4797
4800
|
searchText: F,
|
|
@@ -4799,7 +4802,7 @@ function ap({
|
|
|
4799
4802
|
}
|
|
4800
4803
|
),
|
|
4801
4804
|
G && E !== "legacy" ? /* @__PURE__ */ i(
|
|
4802
|
-
|
|
4805
|
+
Xm,
|
|
4803
4806
|
{
|
|
4804
4807
|
context: t,
|
|
4805
4808
|
searchVisible: !!C,
|
|
@@ -4911,7 +4914,7 @@ function ap({
|
|
|
4911
4914
|
}
|
|
4912
4915
|
),
|
|
4913
4916
|
/* @__PURE__ */ i(
|
|
4914
|
-
|
|
4917
|
+
jb,
|
|
4915
4918
|
{
|
|
4916
4919
|
visible: $,
|
|
4917
4920
|
onClose: () => M(!1),
|
|
@@ -4929,7 +4932,7 @@ function ap({
|
|
|
4929
4932
|
/* @__PURE__ */ i(Ao, { searchParams: v })
|
|
4930
4933
|
] });
|
|
4931
4934
|
}
|
|
4932
|
-
const nc = it(
|
|
4935
|
+
const nc = it(lp), rc = it(() => /* @__PURE__ */ i(
|
|
4933
4936
|
Jd,
|
|
4934
4937
|
{
|
|
4935
4938
|
component: () => /* @__PURE__ */ U(
|
|
@@ -4956,7 +4959,7 @@ const nc = it(ap), rc = it(() => /* @__PURE__ */ i(
|
|
|
4956
4959
|
}
|
|
4957
4960
|
));
|
|
4958
4961
|
rc.displayName = "ExportIcon";
|
|
4959
|
-
const { useToken:
|
|
4962
|
+
const { useToken: cp } = at, { Title: dp, Text: Kr } = Kt, Br = ({
|
|
4960
4963
|
title: t,
|
|
4961
4964
|
children: e,
|
|
4962
4965
|
showSummary: n = !0,
|
|
@@ -4971,7 +4974,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
4971
4974
|
totalItems: l,
|
|
4972
4975
|
selectedRowItems: f,
|
|
4973
4976
|
treeType: u
|
|
4974
|
-
} = Ae(qt), { t: m } = Ee(), { token: p } =
|
|
4977
|
+
} = Ae(qt), { t: m } = Ee(), { token: p } = cp(), g = z(() => {
|
|
4975
4978
|
if (!n)
|
|
4976
4979
|
return null;
|
|
4977
4980
|
if ((s == null ? void 0 : s.type) === "form" && a) {
|
|
@@ -5057,7 +5060,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5057
5060
|
align: "middle",
|
|
5058
5061
|
children: [
|
|
5059
5062
|
/* @__PURE__ */ U(Ke, { flex: 2, children: [
|
|
5060
|
-
/* @__PURE__ */ i(
|
|
5063
|
+
/* @__PURE__ */ i(dp, { level: 3, style: { marginBottom: 0 }, children: t || o }),
|
|
5061
5064
|
r,
|
|
5062
5065
|
g
|
|
5063
5066
|
] }),
|
|
@@ -5134,7 +5137,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5134
5137
|
window.removeEventListener("resize", d), c.forEach((l) => l.disconnect());
|
|
5135
5138
|
};
|
|
5136
5139
|
}, [t, ...n]), z(() => o, [o]) - e;
|
|
5137
|
-
}, oc = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0,
|
|
5140
|
+
}, oc = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, up = (t) => {
|
|
5138
5141
|
const e = ut(async () => {
|
|
5139
5142
|
if (!t)
|
|
5140
5143
|
return;
|
|
@@ -5147,7 +5150,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5147
5150
|
[t]
|
|
5148
5151
|
);
|
|
5149
5152
|
return { getColumnState: e, updateColumnState: n };
|
|
5150
|
-
},
|
|
5153
|
+
}, fp = (t) => {
|
|
5151
5154
|
ce(() => () => {
|
|
5152
5155
|
n(), o();
|
|
5153
5156
|
}, []);
|
|
@@ -5181,16 +5184,16 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5181
5184
|
[t]
|
|
5182
5185
|
);
|
|
5183
5186
|
return { getColumnState: s, updateColumnState: a };
|
|
5184
|
-
},
|
|
5187
|
+
}, mp = (t) => {
|
|
5185
5188
|
const e = zt(
|
|
5186
5189
|
Et.FEATURE_USERVIEWPREFS
|
|
5187
5190
|
), {
|
|
5188
5191
|
getColumnState: n,
|
|
5189
5192
|
updateColumnState: r
|
|
5190
|
-
} =
|
|
5193
|
+
} = up(t), {
|
|
5191
5194
|
getColumnState: o,
|
|
5192
5195
|
updateColumnState: s
|
|
5193
|
-
} =
|
|
5196
|
+
} = fp(t), a = ut(async () => {
|
|
5194
5197
|
if (!e)
|
|
5195
5198
|
return n();
|
|
5196
5199
|
try {
|
|
@@ -5222,7 +5225,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5222
5225
|
const [n, r] = A(!0), o = K(void 0), s = K(!1), {
|
|
5223
5226
|
getColumnState: a,
|
|
5224
5227
|
updateColumnState: d
|
|
5225
|
-
} =
|
|
5228
|
+
} = mp(t), c = T(async () => {
|
|
5226
5229
|
if (!(s.current || e)) {
|
|
5227
5230
|
s.current = !0, r(!0);
|
|
5228
5231
|
try {
|
|
@@ -5254,7 +5257,7 @@ const { useToken: lp } = at, { Title: cp, Text: Kr } = Kt, Br = ({
|
|
|
5254
5257
|
);
|
|
5255
5258
|
return { getColumnState: l, loading: n, updateColumnState: f, fetchColumnState: c };
|
|
5256
5259
|
};
|
|
5257
|
-
function
|
|
5260
|
+
function pp(t) {
|
|
5258
5261
|
if (t)
|
|
5259
5262
|
try {
|
|
5260
5263
|
if (t.includes(":")) {
|
|
@@ -5284,7 +5287,7 @@ function sc(t) {
|
|
|
5284
5287
|
});
|
|
5285
5288
|
return e = `${o}:${s}`, t < 0 && (e = "-" + e), e;
|
|
5286
5289
|
}
|
|
5287
|
-
const
|
|
5290
|
+
const hp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac, {}) }), ac = ({ value: t }) => {
|
|
5288
5291
|
const e = K(0);
|
|
5289
5292
|
t !== void 0 && (e.current = t);
|
|
5290
5293
|
const n = t !== void 0 ? t : e.current, r = `${n.toLocaleString("en-US", {
|
|
@@ -5292,16 +5295,16 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5292
5295
|
maximumFractionDigits: 4,
|
|
5293
5296
|
useGrouping: !1
|
|
5294
5297
|
})}%`;
|
|
5295
|
-
return /* @__PURE__ */ U(
|
|
5296
|
-
/* @__PURE__ */ i(
|
|
5297
|
-
/* @__PURE__ */ i(
|
|
5298
|
+
return /* @__PURE__ */ U(gp, { children: [
|
|
5299
|
+
/* @__PURE__ */ i(yp, { percent: n }),
|
|
5300
|
+
/* @__PURE__ */ i(vp, { children: r })
|
|
5298
5301
|
] });
|
|
5299
|
-
},
|
|
5302
|
+
}, gp = Ft.div`
|
|
5300
5303
|
display: flex;
|
|
5301
5304
|
align-items: center;
|
|
5302
5305
|
width: 100%;
|
|
5303
5306
|
min-width: 0;
|
|
5304
|
-
`,
|
|
5307
|
+
`, yp = Ft($a)`
|
|
5305
5308
|
flex: 1;
|
|
5306
5309
|
min-width: 0;
|
|
5307
5310
|
.ant-progress-outer {
|
|
@@ -5311,10 +5314,10 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5311
5314
|
.ant-progress-text {
|
|
5312
5315
|
display: none;
|
|
5313
5316
|
}
|
|
5314
|
-
`,
|
|
5317
|
+
`, vp = Ft.div`
|
|
5315
5318
|
padding-left: 10px;
|
|
5316
5319
|
white-space: nowrap;
|
|
5317
|
-
`,
|
|
5320
|
+
`, bp = ({
|
|
5318
5321
|
onRetrieveData: t,
|
|
5319
5322
|
onItemClick: e,
|
|
5320
5323
|
onOpenChange: n
|
|
@@ -5436,7 +5439,7 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5436
5439
|
});
|
|
5437
5440
|
s(k), x = k.fields, I = k.toolbar;
|
|
5438
5441
|
}
|
|
5439
|
-
const N =
|
|
5442
|
+
const N = wp({ fields: x, toolbar: I });
|
|
5440
5443
|
let O = {};
|
|
5441
5444
|
return N.length > 0 && (O = { ...(D = await b({
|
|
5442
5445
|
model: n,
|
|
@@ -5502,7 +5505,7 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5502
5505
|
}
|
|
5503
5506
|
}
|
|
5504
5507
|
return /* @__PURE__ */ i(
|
|
5505
|
-
|
|
5508
|
+
bp,
|
|
5506
5509
|
{
|
|
5507
5510
|
onRetrieveData: w,
|
|
5508
5511
|
onItemClick: F,
|
|
@@ -5511,7 +5514,7 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5511
5514
|
}
|
|
5512
5515
|
}
|
|
5513
5516
|
);
|
|
5514
|
-
},
|
|
5517
|
+
}, wp = ({
|
|
5515
5518
|
fields: t,
|
|
5516
5519
|
toolbar: e
|
|
5517
5520
|
}) => {
|
|
@@ -5525,7 +5528,7 @@ const pp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(ac,
|
|
|
5525
5528
|
return [...new Set(r.filter((o) => o in t))];
|
|
5526
5529
|
};
|
|
5527
5530
|
var wn = /* @__PURE__ */ ((t) => (t.FEATURE_MANY2ONE_DISABLE_ARROW_MENU = "widget.many2one.disable.arrow_menu", t.FEATURE_MANY2ONE_DISABLE_FOLDER = "widget.many2one.disable.folder", t.FEATURE_ONE2MANY_ENABLE_NEW_TABLE = "widget.one2many.enable_new_table", t.FEATURE_TEST_FEATURE = "test.feature", t))(wn || {});
|
|
5528
|
-
const
|
|
5531
|
+
const ZC = Object.values(wn), Cp = (t) => {
|
|
5529
5532
|
const { m2oField: e, ooui: n } = t, r = Bn(
|
|
5530
5533
|
wn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
5531
5534
|
), o = z(() => {
|
|
@@ -5536,7 +5539,7 @@ const QC = Object.values(wn), wp = (t) => {
|
|
|
5536
5539
|
/* @__PURE__ */ i(Fe, { children: e.value }),
|
|
5537
5540
|
o && /* @__PURE__ */ i(Fr, { id: e.id, model: e.model })
|
|
5538
5541
|
] }) : /* @__PURE__ */ i(Fe, {});
|
|
5539
|
-
},
|
|
5542
|
+
}, xp = (t) => {
|
|
5540
5543
|
const { value: e, selectionValues: n } = t, r = Bn(
|
|
5541
5544
|
wn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
5542
5545
|
);
|
|
@@ -5548,7 +5551,7 @@ const QC = Object.values(wn), wp = (t) => {
|
|
|
5548
5551
|
/* @__PURE__ */ i(Fe, { children: a }),
|
|
5549
5552
|
!r && /* @__PURE__ */ i(Fr, { id: s, model: o })
|
|
5550
5553
|
] });
|
|
5551
|
-
},
|
|
5554
|
+
}, Sp = (t) => {
|
|
5552
5555
|
const { ooui: e, value: n } = t;
|
|
5553
5556
|
if (!n)
|
|
5554
5557
|
return null;
|
|
@@ -5557,16 +5560,16 @@ const QC = Object.values(wn), wp = (t) => {
|
|
|
5557
5560
|
const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = fr(r);
|
|
5558
5561
|
return /* @__PURE__ */ i(Wt, { title: r, children: /* @__PURE__ */ i(_i, { alt: r, style: { backgroundColor: s }, children: o }) });
|
|
5559
5562
|
};
|
|
5560
|
-
function
|
|
5563
|
+
function Tp(t) {
|
|
5561
5564
|
return t.length === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1);
|
|
5562
5565
|
}
|
|
5563
|
-
const
|
|
5566
|
+
const _p = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc, { ...t }) }), lc = (t) => {
|
|
5564
5567
|
var p;
|
|
5565
5568
|
const { t: e } = Ee(), [n, r] = Oe(
|
|
5566
5569
|
Y.getHandler().readObjects
|
|
5567
5570
|
), { getFieldValue: o } = Ae(dt) || {}, { ooui: s, value: a } = t, [d, c] = A("default");
|
|
5568
5571
|
let l = a, f = fr, u = a;
|
|
5569
|
-
s.selectionValues.size ? l = s.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], l = a[1]) : s.fieldType === "boolean" && (l = a ?
|
|
5572
|
+
s.selectionValues.size ? l = s.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], l = a[1]) : s.fieldType === "boolean" && (l = a ? Tp(s.label) : `${e("not")} ${s.label.toLowerCase()}`, f = om);
|
|
5570
5573
|
const m = T(async () => {
|
|
5571
5574
|
var g, h;
|
|
5572
5575
|
if (s.colorField)
|
|
@@ -5631,7 +5634,7 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5631
5634
|
},
|
|
5632
5635
|
o
|
|
5633
5636
|
)) });
|
|
5634
|
-
},
|
|
5637
|
+
}, Ip = ({
|
|
5635
5638
|
value: t = "",
|
|
5636
5639
|
onChange: e,
|
|
5637
5640
|
maxLength: n,
|
|
@@ -5723,7 +5726,7 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5723
5726
|
);
|
|
5724
5727
|
}, On = an.createContext(
|
|
5725
5728
|
null
|
|
5726
|
-
),
|
|
5729
|
+
), Ap = ({
|
|
5727
5730
|
children: t,
|
|
5728
5731
|
initialView: e
|
|
5729
5732
|
}) => {
|
|
@@ -5744,7 +5747,7 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5744
5747
|
children: t
|
|
5745
5748
|
}
|
|
5746
5749
|
);
|
|
5747
|
-
}, dc = () => Ae(On),
|
|
5750
|
+
}, dc = () => Ae(On), Fp = ({
|
|
5748
5751
|
value: t
|
|
5749
5752
|
}) => z(
|
|
5750
5753
|
() => /* @__PURE__ */ i(
|
|
@@ -5760,15 +5763,15 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5760
5763
|
}
|
|
5761
5764
|
),
|
|
5762
5765
|
[t]
|
|
5763
|
-
),
|
|
5766
|
+
), Rp = ({
|
|
5764
5767
|
value: t
|
|
5765
|
-
}) => z(() => /* @__PURE__ */ i(cc, { emails: t }), [t]),
|
|
5768
|
+
}) => z(() => /* @__PURE__ */ i(cc, { emails: t }), [t]), Ep = ({
|
|
5766
5769
|
value: t,
|
|
5767
5770
|
ooui: e
|
|
5768
5771
|
}) => z(
|
|
5769
|
-
() => /* @__PURE__ */ i(
|
|
5772
|
+
() => /* @__PURE__ */ i(Cp, { m2oField: t, ooui: e }),
|
|
5770
5773
|
[t, e]
|
|
5771
|
-
),
|
|
5774
|
+
), Op = ({ value: t }) => {
|
|
5772
5775
|
const { treeType: e } = Vt(), { treeType: n } = dc() || {}, r = (n || e) === "infinite";
|
|
5773
5776
|
return z(() => {
|
|
5774
5777
|
const o = /* @__PURE__ */ i(
|
|
@@ -5814,10 +5817,10 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5814
5817
|
}
|
|
5815
5818
|
) : o;
|
|
5816
5819
|
}, [t, r]);
|
|
5817
|
-
},
|
|
5820
|
+
}, kp = ({ value: t }) => /* @__PURE__ */ i(Su, { value: t }), Dp = ({
|
|
5818
5821
|
value: t,
|
|
5819
5822
|
ooui: e
|
|
5820
|
-
}) => z(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ i(Fe, { children: t[1] }) : /* @__PURE__ */ i(Fe, { children: t }) : /* @__PURE__ */ i(Fe, {}), [t, e.fieldType]),
|
|
5823
|
+
}) => z(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ i(Fe, { children: t[1] }) : /* @__PURE__ */ i(Fe, { children: t }) : /* @__PURE__ */ i(Fe, {}), [t, e.fieldType]), Mp = ({
|
|
5821
5824
|
value: t,
|
|
5822
5825
|
ooui: e
|
|
5823
5826
|
}) => /* @__PURE__ */ i(Tu, { value: t, timezone: e.timezone }), Ps = ({
|
|
@@ -5825,41 +5828,41 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5825
5828
|
}) => z(() => {
|
|
5826
5829
|
const e = Array.isArray(t == null ? void 0 : t.items) ? t == null ? void 0 : t.items.length : 0;
|
|
5827
5830
|
return /* @__PURE__ */ i(Fe, { children: `( ${e} )` });
|
|
5828
|
-
}, [t]),
|
|
5831
|
+
}, [t]), Np = ({
|
|
5829
5832
|
value: t
|
|
5830
|
-
}) => z(() => /* @__PURE__ */ i(ac, { value: t }), [t]),
|
|
5833
|
+
}) => z(() => /* @__PURE__ */ i(ac, { value: t }), [t]), $p = ({ value: t }) => z(() => /* @__PURE__ */ i(Fe, { children: sc(t) }), [t]), Ls = ({ value: t }) => z(
|
|
5831
5834
|
() => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: t }),
|
|
5832
5835
|
[t]
|
|
5833
|
-
),
|
|
5836
|
+
), Pp = ({ value: t }) => z(
|
|
5834
5837
|
() => /* @__PURE__ */ i(Hi, { value: t, style: { maxHeight: "30px" } }),
|
|
5835
5838
|
[t]
|
|
5836
|
-
),
|
|
5839
|
+
), Lp = ({
|
|
5837
5840
|
value: t,
|
|
5838
5841
|
ooui: e
|
|
5839
5842
|
}) => z(
|
|
5840
5843
|
() => /* @__PURE__ */ i(Pa, { value: t, disabled: !0, showText: !0 }),
|
|
5841
5844
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5842
5845
|
[e, t]
|
|
5843
|
-
),
|
|
5846
|
+
), Vp = ({
|
|
5844
5847
|
value: t,
|
|
5845
5848
|
ooui: e
|
|
5846
|
-
}) => z(() => /* @__PURE__ */ i(lc, { ooui: e, value: t }), [e, t]),
|
|
5849
|
+
}) => z(() => /* @__PURE__ */ i(lc, { ooui: e, value: t }), [e, t]), Bp = ({
|
|
5847
5850
|
value: t,
|
|
5848
5851
|
ooui: e
|
|
5849
5852
|
}) => z(() => {
|
|
5850
5853
|
let n = t;
|
|
5851
5854
|
return Array.isArray(t) && t.length === 2 && (n = t[0]), /* @__PURE__ */ i(Fe, { children: e.selectionValues.get(n) });
|
|
5852
|
-
}, [e, t]),
|
|
5855
|
+
}, [e, t]), Hp = ({
|
|
5853
5856
|
value: t,
|
|
5854
5857
|
ooui: e,
|
|
5855
5858
|
context: n
|
|
5856
5859
|
}) => z(
|
|
5857
|
-
() => /* @__PURE__ */ i(
|
|
5860
|
+
() => /* @__PURE__ */ i(xp, { value: t, selectionValues: e.selectionValues }),
|
|
5858
5861
|
[n, e.selectionValues, t]
|
|
5859
|
-
),
|
|
5862
|
+
), jp = ({
|
|
5860
5863
|
value: t,
|
|
5861
5864
|
ooui: e
|
|
5862
|
-
}) => z(() => /* @__PURE__ */ i(
|
|
5865
|
+
}) => z(() => /* @__PURE__ */ i(Sp, { ooui: e, value: t }), [e, t]), Up = ({
|
|
5863
5866
|
value: t,
|
|
5864
5867
|
ooui: e,
|
|
5865
5868
|
context: n
|
|
@@ -5889,28 +5892,28 @@ const Tp = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(lc,
|
|
|
5889
5892
|
[o]
|
|
5890
5893
|
);
|
|
5891
5894
|
}, Fo = {
|
|
5892
|
-
boolean:
|
|
5893
|
-
many2one:
|
|
5894
|
-
text:
|
|
5895
|
+
boolean: Fp,
|
|
5896
|
+
many2one: Ep,
|
|
5897
|
+
text: Op,
|
|
5895
5898
|
one2many: Ps,
|
|
5896
5899
|
many2many: Ps,
|
|
5897
|
-
progressbar:
|
|
5898
|
-
float_time:
|
|
5899
|
-
image:
|
|
5900
|
+
progressbar: Np,
|
|
5901
|
+
float_time: $p,
|
|
5902
|
+
image: Pp,
|
|
5900
5903
|
integer: Ls,
|
|
5901
5904
|
float: Ls,
|
|
5902
|
-
reference:
|
|
5903
|
-
tag:
|
|
5904
|
-
selection:
|
|
5905
|
-
date:
|
|
5906
|
-
datetime:
|
|
5907
|
-
avatar:
|
|
5908
|
-
tags:
|
|
5909
|
-
email:
|
|
5910
|
-
colorPicker:
|
|
5911
|
-
char:
|
|
5905
|
+
reference: Hp,
|
|
5906
|
+
tag: Vp,
|
|
5907
|
+
selection: Bp,
|
|
5908
|
+
date: kp,
|
|
5909
|
+
datetime: Mp,
|
|
5910
|
+
avatar: jp,
|
|
5911
|
+
tags: Up,
|
|
5912
|
+
email: Rp,
|
|
5913
|
+
colorPicker: Lp,
|
|
5914
|
+
char: Dp
|
|
5912
5915
|
};
|
|
5913
|
-
function
|
|
5916
|
+
function Wp({
|
|
5914
5917
|
tableRef: t
|
|
5915
5918
|
} = {}) {
|
|
5916
5919
|
const e = K({}), n = K({}), r = T(() => {
|
|
@@ -5964,7 +5967,7 @@ const Rr = ({
|
|
|
5964
5967
|
statusForResults: d,
|
|
5965
5968
|
updateAttributes: c,
|
|
5966
5969
|
clearAttributes: l
|
|
5967
|
-
} =
|
|
5970
|
+
} = Wp({
|
|
5968
5971
|
tableRef: o
|
|
5969
5972
|
}), f = zt(
|
|
5970
5973
|
Et.FEATURE_MANY2ONE_SORT
|
|
@@ -6151,7 +6154,7 @@ const Rr = ({
|
|
|
6151
6154
|
hasAggregates: c,
|
|
6152
6155
|
isLoading: a
|
|
6153
6156
|
};
|
|
6154
|
-
},
|
|
6157
|
+
}, qp = ({
|
|
6155
6158
|
selectedRowItems: t = [],
|
|
6156
6159
|
setSelectedRowItems: e,
|
|
6157
6160
|
onChangeSelectedRowKeys: n,
|
|
@@ -6219,7 +6222,7 @@ const Rr = ({
|
|
|
6219
6222
|
className: e
|
|
6220
6223
|
}
|
|
6221
6224
|
) });
|
|
6222
|
-
},
|
|
6225
|
+
}, Yp = {
|
|
6223
6226
|
format: "HH:mm:ss",
|
|
6224
6227
|
displayFormat: "HH:mm:ss",
|
|
6225
6228
|
placeholder: "__:__:__"
|
|
@@ -6229,7 +6232,7 @@ const Rr = ({
|
|
|
6229
6232
|
hours: Vo("HH"),
|
|
6230
6233
|
hoursMinutes: Vo("HH:mm"),
|
|
6231
6234
|
hoursMinutesSeconds: Vo("HH:mm:ss")
|
|
6232
|
-
},
|
|
6235
|
+
}, Gp = (t) => !t || t.trim() === "" ? !0 : wr.hours.test(t) || wr.hoursMinutes.test(t), zp = (t, e, n = !1) => {
|
|
6233
6236
|
if (!t || t.trim() === "") {
|
|
6234
6237
|
const r = e.format("HH"), o = e.format("mm"), s = e.format("ss");
|
|
6235
6238
|
return `${r}:${o}:${s}`;
|
|
@@ -6243,7 +6246,7 @@ const Rr = ({
|
|
|
6243
6246
|
return `${t}:${r}`;
|
|
6244
6247
|
}
|
|
6245
6248
|
return wr.hoursMinutesSeconds.test(t) ? t : null;
|
|
6246
|
-
},
|
|
6249
|
+
}, Kp = ({
|
|
6247
6250
|
value: t,
|
|
6248
6251
|
onChange: e,
|
|
6249
6252
|
autocompleteWithZeros: n = !1
|
|
@@ -6252,10 +6255,10 @@ const Rr = ({
|
|
|
6252
6255
|
(s) => {
|
|
6253
6256
|
if (s.key === "Enter") {
|
|
6254
6257
|
const d = s.target.value;
|
|
6255
|
-
if (!
|
|
6258
|
+
if (!Gp(d))
|
|
6256
6259
|
return;
|
|
6257
6260
|
s.preventDefault();
|
|
6258
|
-
const c =
|
|
6261
|
+
const c = zp(
|
|
6259
6262
|
d,
|
|
6260
6263
|
vt(),
|
|
6261
6264
|
n
|
|
@@ -6304,7 +6307,7 @@ const Rr = ({
|
|
|
6304
6307
|
e == null || e(u, m);
|
|
6305
6308
|
},
|
|
6306
6309
|
[e]
|
|
6307
|
-
), { handleKeyDown: l, handleBlur: f } =
|
|
6310
|
+
), { handleKeyDown: l, handleBlur: f } = Kp({
|
|
6308
6311
|
value: t,
|
|
6309
6312
|
onChange: e,
|
|
6310
6313
|
autocompleteWithZeros: r !== void 0
|
|
@@ -6322,10 +6325,10 @@ const Rr = ({
|
|
|
6322
6325
|
onSelect: d,
|
|
6323
6326
|
onBlur: (u) => f(u),
|
|
6324
6327
|
onKeyDown: (u) => l(u),
|
|
6325
|
-
format:
|
|
6328
|
+
format: Yp.displayFormat
|
|
6326
6329
|
}
|
|
6327
6330
|
);
|
|
6328
|
-
},
|
|
6331
|
+
}, Jp = (t) => {
|
|
6329
6332
|
const { ooui: e, showLabel: n = !1 } = t, { label: r, id: o } = e, s = [
|
|
6330
6333
|
new ri({
|
|
6331
6334
|
name: o + "#date",
|
|
@@ -6351,10 +6354,10 @@ const Rr = ({
|
|
|
6351
6354
|
),
|
|
6352
6355
|
/* @__PURE__ */ U("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
6353
6356
|
/* @__PURE__ */ i(st, { className: "w-full", children: /* @__PURE__ */ i(Ke, { span: 24, children: /* @__PURE__ */ i(fc, { ...t, ooui: s[0], showLabel: !1 }) }) }),
|
|
6354
|
-
/* @__PURE__ */ i(st, { className: "w-full", children: /* @__PURE__ */ i(Ke, { span: 24, children: /* @__PURE__ */ i(tt, { ...t, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(
|
|
6357
|
+
/* @__PURE__ */ i(st, { className: "w-full", children: /* @__PURE__ */ i(Ke, { span: 24, children: /* @__PURE__ */ i(tt, { ...t, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(Xp, {}) }) }) })
|
|
6355
6358
|
] })
|
|
6356
6359
|
] });
|
|
6357
|
-
},
|
|
6360
|
+
}, Xp = ({
|
|
6358
6361
|
value: t,
|
|
6359
6362
|
onChange: e
|
|
6360
6363
|
}) => {
|
|
@@ -6390,9 +6393,9 @@ const Rr = ({
|
|
|
6390
6393
|
}
|
|
6391
6394
|
) })
|
|
6392
6395
|
] });
|
|
6393
|
-
}, { defaultAlgorithm:
|
|
6396
|
+
}, { defaultAlgorithm: Qp, defaultSeed: Zp } = at, eh = Qp(Zp), Qi = it((t) => {
|
|
6394
6397
|
const { ooui: e } = t, { id: n, decimalDigits: r, readOnly: o, required: s } = e, a = Ae(dt), { elementHasLostFocus: d } = a || {}, c = z(() => s && !o, [s, o]), l = z(
|
|
6395
|
-
() => c ?
|
|
6398
|
+
() => c ? th : Dr,
|
|
6396
6399
|
[c]
|
|
6397
6400
|
), f = T((m) => m ? /* @__PURE__ */ i(_o, { content: m }) : null, []), u = T((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
|
|
6398
6401
|
return /* @__PURE__ */ i(tt, { required: c, type: "number", ...t, children: /* @__PURE__ */ i(
|
|
@@ -6412,13 +6415,13 @@ const Rr = ({
|
|
|
6412
6415
|
) });
|
|
6413
6416
|
});
|
|
6414
6417
|
Qi.displayName = "Float";
|
|
6415
|
-
const
|
|
6418
|
+
const th = Ft(Dr)`
|
|
6416
6419
|
&.ant-input-number {
|
|
6417
|
-
background-color: ${
|
|
6420
|
+
background-color: ${eh.colorPrimaryBg};
|
|
6418
6421
|
}
|
|
6419
|
-
`, { useToken:
|
|
6420
|
-
const { ooui: e, onChange: n } = t, { id: r, readOnly: o, required: s } = e, { token: a } =
|
|
6421
|
-
() => f ?
|
|
6422
|
+
`, { useToken: nh } = at, { defaultAlgorithm: rh, defaultSeed: oh } = at, ih = rh(oh), Er = it((t) => {
|
|
6423
|
+
const { ooui: e, onChange: n } = t, { id: r, readOnly: o, required: s } = e, { token: a } = nh(), d = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = Ae(dt), { elementHasLostFocus: l } = c || {}, f = z(() => s && !o, [s, o]), u = z(
|
|
6424
|
+
() => f ? sh : Dr,
|
|
6422
6425
|
[f]
|
|
6423
6426
|
), m = T((h) => h ? /* @__PURE__ */ i(_o, { content: h }) : null, []), p = T((h) => h === void 0 ? "" : typeof h == "string" && !isNaN(parseFloat(h)) ? `${Math.trunc(parseFloat(h))}`.replace(/[^0-9-]+/g, "") : typeof h == "number" ? `${Math.trunc(h)}`.replace(/[^0-9-]+/g, "") : "", []), g = T(
|
|
6424
6427
|
(h) => {
|
|
@@ -6445,12 +6448,12 @@ const eh = Ft(Dr)`
|
|
|
6445
6448
|
) });
|
|
6446
6449
|
});
|
|
6447
6450
|
Er.displayName = "Integer";
|
|
6448
|
-
const
|
|
6451
|
+
const sh = Ft(Dr)`
|
|
6449
6452
|
&.ant-input-number {
|
|
6450
|
-
background-color: ${
|
|
6453
|
+
background-color: ${ih.colorPrimaryBg};
|
|
6451
6454
|
}
|
|
6452
6455
|
`;
|
|
6453
|
-
function
|
|
6456
|
+
function ah(t) {
|
|
6454
6457
|
const { ooui: e, showLabel: n } = t, { id: r, label: o, tooltip: s } = e, a = e instanceof oi ? Er : Qi, d = (c) => /* @__PURE__ */ i(
|
|
6455
6458
|
a,
|
|
6456
6459
|
{
|
|
@@ -6492,17 +6495,17 @@ function sh(t) {
|
|
|
6492
6495
|
)
|
|
6493
6496
|
] });
|
|
6494
6497
|
}
|
|
6495
|
-
const { defaultAlgorithm:
|
|
6498
|
+
const { defaultAlgorithm: lh, defaultSeed: ch } = at, dh = lh(ch), { Option: uh } = Un, fh = (t) => {
|
|
6496
6499
|
const { ooui: e } = t, { required: n } = e;
|
|
6497
|
-
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(
|
|
6498
|
-
},
|
|
6500
|
+
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(mh, { ...t }) });
|
|
6501
|
+
}, mh = (t) => {
|
|
6499
6502
|
const { ooui: e, onChange: n, value: r } = t, { selectionValues: o, readOnly: s, required: a } = e, d = Array.from(o.entries()), c = d && d.length && d.filter((u) => {
|
|
6500
6503
|
const [m] = u;
|
|
6501
6504
|
return r ? !r.includes(m) : !0;
|
|
6502
6505
|
}).map((u) => {
|
|
6503
6506
|
const [m, p] = u;
|
|
6504
|
-
return /* @__PURE__ */ i(
|
|
6505
|
-
}), l = a && !s ?
|
|
6507
|
+
return /* @__PURE__ */ i(uh, { value: p, children: p }, m);
|
|
6508
|
+
}), l = a && !s ? ph : Un;
|
|
6506
6509
|
function f(u) {
|
|
6507
6510
|
const m = u.map((p) => {
|
|
6508
6511
|
const g = d.find(([, h]) => p === h);
|
|
@@ -6524,9 +6527,9 @@ const { defaultAlgorithm: ah, defaultSeed: lh } = at, ch = ah(lh), { Option: dh
|
|
|
6524
6527
|
children: c
|
|
6525
6528
|
}
|
|
6526
6529
|
);
|
|
6527
|
-
},
|
|
6530
|
+
}, ph = Ft(Un)`
|
|
6528
6531
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
6529
|
-
background-color: ${
|
|
6532
|
+
background-color: ${dh.colorPrimaryBg};
|
|
6530
6533
|
}
|
|
6531
6534
|
`;
|
|
6532
6535
|
function mc(t) {
|
|
@@ -6549,13 +6552,13 @@ function mc(t) {
|
|
|
6549
6552
|
case _n.progressbar:
|
|
6550
6553
|
case _n.float_time:
|
|
6551
6554
|
case _n.integer:
|
|
6552
|
-
return /* @__PURE__ */ i(
|
|
6555
|
+
return /* @__PURE__ */ i(ah, { ooui: e, showLabel: !0 });
|
|
6553
6556
|
case _n.date:
|
|
6554
6557
|
return /* @__PURE__ */ i(fc, { ooui: e, layout: "vertical", showLabel: !0 });
|
|
6555
6558
|
case _n.datetime:
|
|
6556
|
-
return /* @__PURE__ */ i(
|
|
6559
|
+
return /* @__PURE__ */ i(Jp, { ooui: e, layout: "vertical", showLabel: !0 });
|
|
6557
6560
|
case _n.selection:
|
|
6558
|
-
return /* @__PURE__ */ i(
|
|
6561
|
+
return /* @__PURE__ */ i(fh, { layout: "vertical", ooui: e, showLabel: !0 });
|
|
6559
6562
|
default:
|
|
6560
6563
|
return /* @__PURE__ */ i(
|
|
6561
6564
|
vl,
|
|
@@ -6568,7 +6571,7 @@ function mc(t) {
|
|
|
6568
6571
|
);
|
|
6569
6572
|
}
|
|
6570
6573
|
}
|
|
6571
|
-
const { useToken:
|
|
6574
|
+
const { useToken: hh } = at, { Title: gh } = Kt, { Header: yh, Content: vh, Footer: bh } = La, wh = ({
|
|
6572
6575
|
isOpen: t,
|
|
6573
6576
|
onClose: e,
|
|
6574
6577
|
children: n,
|
|
@@ -6577,7 +6580,7 @@ const { useToken: ph } = at, { Title: hh } = Kt, { Header: gh, Content: yh, Foot
|
|
|
6577
6580
|
headerButtons: s,
|
|
6578
6581
|
width: a = "500px"
|
|
6579
6582
|
}) => {
|
|
6580
|
-
const [d, c] = A(t), [l, f] = A(!1), u = K(null), { token: m } =
|
|
6583
|
+
const [d, c] = A(t), [l, f] = A(!1), u = K(null), { token: m } = hh(), p = T(
|
|
6581
6584
|
(b) => {
|
|
6582
6585
|
b.preventDefault(), b.stopPropagation(), e();
|
|
6583
6586
|
},
|
|
@@ -6672,8 +6675,8 @@ const { useToken: ph } = at, { Title: hh } = Kt, { Header: gh, Content: yh, Foot
|
|
|
6672
6675
|
flexDirection: "column"
|
|
6673
6676
|
},
|
|
6674
6677
|
children: [
|
|
6675
|
-
/* @__PURE__ */ U(
|
|
6676
|
-
/* @__PURE__ */ i(
|
|
6678
|
+
/* @__PURE__ */ U(yh, { style: y, children: [
|
|
6679
|
+
/* @__PURE__ */ i(gh, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
|
|
6677
6680
|
s && /* @__PURE__ */ i(
|
|
6678
6681
|
"div",
|
|
6679
6682
|
{
|
|
@@ -6696,7 +6699,7 @@ const { useToken: ph } = at, { Title: hh } = Kt, { Header: gh, Content: yh, Foot
|
|
|
6696
6699
|
)
|
|
6697
6700
|
] }),
|
|
6698
6701
|
/* @__PURE__ */ i(
|
|
6699
|
-
|
|
6702
|
+
vh,
|
|
6700
6703
|
{
|
|
6701
6704
|
style: {
|
|
6702
6705
|
flex: 1,
|
|
@@ -6706,7 +6709,7 @@ const { useToken: ph } = at, { Title: hh } = Kt, { Header: gh, Content: yh, Foot
|
|
|
6706
6709
|
}
|
|
6707
6710
|
),
|
|
6708
6711
|
o && /* @__PURE__ */ i(
|
|
6709
|
-
|
|
6712
|
+
bh,
|
|
6710
6713
|
{
|
|
6711
6714
|
style: {
|
|
6712
6715
|
...y,
|
|
@@ -6728,7 +6731,7 @@ var Bs = Object.prototype.toString, pc = function(e) {
|
|
|
6728
6731
|
var n = Bs.call(e), r = n === "[object Arguments]";
|
|
6729
6732
|
return r || (r = n !== "[object Array]" && e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && Bs.call(e.callee) === "[object Function]"), r;
|
|
6730
6733
|
}, Bo, Hs;
|
|
6731
|
-
function
|
|
6734
|
+
function Ch() {
|
|
6732
6735
|
if (Hs)
|
|
6733
6736
|
return Bo;
|
|
6734
6737
|
Hs = 1;
|
|
@@ -6816,9 +6819,9 @@ function wh() {
|
|
|
6816
6819
|
}
|
|
6817
6820
|
return Bo = t, Bo;
|
|
6818
6821
|
}
|
|
6819
|
-
var
|
|
6822
|
+
var xh = Array.prototype.slice, Sh = pc, js = Object.keys, Xr = js ? function(e) {
|
|
6820
6823
|
return js(e);
|
|
6821
|
-
} :
|
|
6824
|
+
} : Ch(), Us = Object.keys;
|
|
6822
6825
|
Xr.shim = function() {
|
|
6823
6826
|
if (Object.keys) {
|
|
6824
6827
|
var e = function() {
|
|
@@ -6826,7 +6829,7 @@ Xr.shim = function() {
|
|
|
6826
6829
|
return n && n.length === arguments.length;
|
|
6827
6830
|
}(1, 2);
|
|
6828
6831
|
e || (Object.keys = function(r) {
|
|
6829
|
-
return
|
|
6832
|
+
return Sh(r) ? Us(xh.call(r)) : Us(r);
|
|
6830
6833
|
});
|
|
6831
6834
|
} else
|
|
6832
6835
|
Object.keys = Xr;
|
|
@@ -6858,13 +6861,13 @@ var hc = Xr, gc = function() {
|
|
|
6858
6861
|
return !1;
|
|
6859
6862
|
}
|
|
6860
6863
|
return !0;
|
|
6861
|
-
},
|
|
6862
|
-
return
|
|
6863
|
-
}, yc = Object,
|
|
6864
|
+
}, Th = gc, Zi = function() {
|
|
6865
|
+
return Th() && !!Symbol.toStringTag;
|
|
6866
|
+
}, yc = Object, _h = Error, Ih = EvalError, Ah = RangeError, Fh = ReferenceError, Rh = SyntaxError, vc = TypeError, Eh = URIError, Oh = Math.abs, kh = Math.floor, Dh = Math.max, Mh = Math.min, Nh = Math.pow, $h = Math.round, Ph = Number.isNaN || function(e) {
|
|
6864
6867
|
return e !== e;
|
|
6865
|
-
},
|
|
6866
|
-
return
|
|
6867
|
-
},
|
|
6868
|
+
}, Lh = Ph, Vh = function(e) {
|
|
6869
|
+
return Lh(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
6870
|
+
}, Bh = Object.getOwnPropertyDescriptor, Qr = Bh;
|
|
6868
6871
|
if (Qr)
|
|
6869
6872
|
try {
|
|
6870
6873
|
Qr([], "length");
|
|
@@ -6878,8 +6881,8 @@ if (Zr)
|
|
|
6878
6881
|
} catch {
|
|
6879
6882
|
Zr = !1;
|
|
6880
6883
|
}
|
|
6881
|
-
var
|
|
6882
|
-
function
|
|
6884
|
+
var Hh = Zr, Ho, Ws;
|
|
6885
|
+
function jh() {
|
|
6883
6886
|
if (Ws)
|
|
6884
6887
|
return Ho;
|
|
6885
6888
|
Ws = 1;
|
|
@@ -6900,25 +6903,25 @@ function wc() {
|
|
|
6900
6903
|
var t = yc;
|
|
6901
6904
|
return Uo = t.getPrototypeOf || null, Uo;
|
|
6902
6905
|
}
|
|
6903
|
-
var
|
|
6906
|
+
var Uh = "Function.prototype.bind called on incompatible ", Wh = Object.prototype.toString, qh = Math.max, Yh = "[object Function]", Gs = function(e, n) {
|
|
6904
6907
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
6905
6908
|
r[o] = e[o];
|
|
6906
6909
|
for (var s = 0; s < n.length; s += 1)
|
|
6907
6910
|
r[s + e.length] = n[s];
|
|
6908
6911
|
return r;
|
|
6909
|
-
},
|
|
6912
|
+
}, Gh = function(e, n) {
|
|
6910
6913
|
for (var r = [], o = n || 0, s = 0; o < e.length; o += 1, s += 1)
|
|
6911
6914
|
r[s] = e[o];
|
|
6912
6915
|
return r;
|
|
6913
|
-
},
|
|
6916
|
+
}, zh = function(t, e) {
|
|
6914
6917
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
6915
6918
|
n += t[r], r + 1 < t.length && (n += e);
|
|
6916
6919
|
return n;
|
|
6917
|
-
},
|
|
6920
|
+
}, Kh = function(e) {
|
|
6918
6921
|
var n = this;
|
|
6919
|
-
if (typeof n != "function" ||
|
|
6920
|
-
throw new TypeError(
|
|
6921
|
-
for (var r =
|
|
6922
|
+
if (typeof n != "function" || Wh.apply(n) !== Yh)
|
|
6923
|
+
throw new TypeError(Uh + n);
|
|
6924
|
+
for (var r = Gh(arguments, 1), o, s = function() {
|
|
6922
6925
|
if (this instanceof o) {
|
|
6923
6926
|
var f = n.apply(
|
|
6924
6927
|
this,
|
|
@@ -6930,15 +6933,15 @@ var jh = "Function.prototype.bind called on incompatible ", Uh = Object.prototyp
|
|
|
6930
6933
|
e,
|
|
6931
6934
|
Gs(r, arguments)
|
|
6932
6935
|
);
|
|
6933
|
-
}, a =
|
|
6936
|
+
}, a = qh(0, n.length - r.length), d = [], c = 0; c < a; c++)
|
|
6934
6937
|
d[c] = "$" + c;
|
|
6935
|
-
if (o = Function("binder", "return function (" +
|
|
6938
|
+
if (o = Function("binder", "return function (" + zh(d, ",") + "){ return binder.apply(this,arguments); }")(s), n.prototype) {
|
|
6936
6939
|
var l = function() {
|
|
6937
6940
|
};
|
|
6938
6941
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
6939
6942
|
}
|
|
6940
6943
|
return o;
|
|
6941
|
-
},
|
|
6944
|
+
}, Jh = Kh, Hr = Function.prototype.bind || Jh, Wo, zs;
|
|
6942
6945
|
function ts() {
|
|
6943
6946
|
return zs || (zs = 1, Wo = Function.prototype.call), Wo;
|
|
6944
6947
|
}
|
|
@@ -6947,23 +6950,23 @@ function Cc() {
|
|
|
6947
6950
|
return Ks || (Ks = 1, qo = Function.prototype.apply), qo;
|
|
6948
6951
|
}
|
|
6949
6952
|
var Yo, Js;
|
|
6950
|
-
function
|
|
6953
|
+
function Xh() {
|
|
6951
6954
|
return Js || (Js = 1, Yo = typeof Reflect < "u" && Reflect && Reflect.apply), Yo;
|
|
6952
6955
|
}
|
|
6953
6956
|
var Go, Xs;
|
|
6954
|
-
function
|
|
6957
|
+
function Qh() {
|
|
6955
6958
|
if (Xs)
|
|
6956
6959
|
return Go;
|
|
6957
6960
|
Xs = 1;
|
|
6958
|
-
var t = Hr, e = Cc(), n = ts(), r =
|
|
6961
|
+
var t = Hr, e = Cc(), n = ts(), r = Xh();
|
|
6959
6962
|
return Go = r || t.call(n, e), Go;
|
|
6960
6963
|
}
|
|
6961
6964
|
var zo, Qs;
|
|
6962
|
-
function
|
|
6965
|
+
function Zh() {
|
|
6963
6966
|
if (Qs)
|
|
6964
6967
|
return zo;
|
|
6965
6968
|
Qs = 1;
|
|
6966
|
-
var t = Hr, e = vc, n = ts(), r =
|
|
6969
|
+
var t = Hr, e = vc, n = ts(), r = Qh();
|
|
6967
6970
|
return zo = function(s) {
|
|
6968
6971
|
if (s.length < 1 || typeof s[0] != "function")
|
|
6969
6972
|
throw new e("a function is required");
|
|
@@ -6971,11 +6974,11 @@ function Qh() {
|
|
|
6971
6974
|
}, zo;
|
|
6972
6975
|
}
|
|
6973
6976
|
var Ko, Zs;
|
|
6974
|
-
function
|
|
6977
|
+
function eg() {
|
|
6975
6978
|
if (Zs)
|
|
6976
6979
|
return Ko;
|
|
6977
6980
|
Zs = 1;
|
|
6978
|
-
var t =
|
|
6981
|
+
var t = Zh(), e = es, n;
|
|
6979
6982
|
try {
|
|
6980
6983
|
n = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
6981
6984
|
[].__proto__ === Array.prototype;
|
|
@@ -6996,11 +6999,11 @@ function Zh() {
|
|
|
6996
6999
|
) : !1, Ko;
|
|
6997
7000
|
}
|
|
6998
7001
|
var Jo, ea;
|
|
6999
|
-
function
|
|
7002
|
+
function tg() {
|
|
7000
7003
|
if (ea)
|
|
7001
7004
|
return Jo;
|
|
7002
7005
|
ea = 1;
|
|
7003
|
-
var t = bc(), e = wc(), n =
|
|
7006
|
+
var t = bc(), e = wc(), n = eg();
|
|
7004
7007
|
return Jo = t ? function(o) {
|
|
7005
7008
|
return t(o);
|
|
7006
7009
|
} : e ? function(o) {
|
|
@@ -7012,21 +7015,21 @@ function eg() {
|
|
|
7012
7015
|
} : null, Jo;
|
|
7013
7016
|
}
|
|
7014
7017
|
var Xo, ta;
|
|
7015
|
-
function
|
|
7018
|
+
function ng() {
|
|
7016
7019
|
if (ta)
|
|
7017
7020
|
return Xo;
|
|
7018
7021
|
ta = 1;
|
|
7019
7022
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Hr;
|
|
7020
7023
|
return Xo = n.call(t, e), Xo;
|
|
7021
7024
|
}
|
|
7022
|
-
var rt,
|
|
7025
|
+
var rt, rg = yc, og = _h, ig = Ih, sg = Ah, ag = Fh, lr = Rh, rr = vc, lg = Eh, cg = Oh, dg = kh, ug = Dh, fg = Mh, mg = Nh, pg = $h, hg = Vh, xc = Function, Qo = function(t) {
|
|
7023
7026
|
try {
|
|
7024
7027
|
return xc('"use strict"; return (' + t + ").constructor;")();
|
|
7025
7028
|
} catch {
|
|
7026
7029
|
}
|
|
7027
|
-
}, Or = es,
|
|
7030
|
+
}, Or = es, gg = Hh, Zo = function() {
|
|
7028
7031
|
throw new rr();
|
|
7029
|
-
},
|
|
7032
|
+
}, yg = Or ? function() {
|
|
7030
7033
|
try {
|
|
7031
7034
|
return arguments.callee, Zo;
|
|
7032
7035
|
} catch {
|
|
@@ -7036,7 +7039,7 @@ var rt, ng = yc, rg = Th, og = _h, ig = Ih, sg = Ah, lr = Fh, rr = vc, ag = Rh,
|
|
|
7036
7039
|
return Zo;
|
|
7037
7040
|
}
|
|
7038
7041
|
}
|
|
7039
|
-
}() : Zo, Jn =
|
|
7042
|
+
}() : Zo, Jn = jh()(), $t = tg(), vg = wc(), bg = bc(), Sc = Cc(), jr = ts(), Qn = {}, wg = typeof Uint8Array > "u" || !$t ? rt : $t(Uint8Array), Ln = {
|
|
7040
7043
|
__proto__: null,
|
|
7041
7044
|
"%AggregateError%": typeof AggregateError > "u" ? rt : AggregateError,
|
|
7042
7045
|
"%Array%": Array,
|
|
@@ -7058,10 +7061,10 @@ var rt, ng = yc, rg = Th, og = _h, ig = Ih, sg = Ah, lr = Fh, rr = vc, ag = Rh,
|
|
|
7058
7061
|
"%decodeURIComponent%": decodeURIComponent,
|
|
7059
7062
|
"%encodeURI%": encodeURI,
|
|
7060
7063
|
"%encodeURIComponent%": encodeURIComponent,
|
|
7061
|
-
"%Error%":
|
|
7064
|
+
"%Error%": og,
|
|
7062
7065
|
"%eval%": eval,
|
|
7063
7066
|
// eslint-disable-line no-eval
|
|
7064
|
-
"%EvalError%":
|
|
7067
|
+
"%EvalError%": ig,
|
|
7065
7068
|
"%Float16Array%": typeof Float16Array > "u" ? rt : Float16Array,
|
|
7066
7069
|
"%Float32Array%": typeof Float32Array > "u" ? rt : Float32Array,
|
|
7067
7070
|
"%Float64Array%": typeof Float64Array > "u" ? rt : Float64Array,
|
|
@@ -7079,14 +7082,14 @@ var rt, ng = yc, rg = Th, og = _h, ig = Ih, sg = Ah, lr = Fh, rr = vc, ag = Rh,
|
|
|
7079
7082
|
"%MapIteratorPrototype%": typeof Map > "u" || !Jn || !$t ? rt : $t((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
7080
7083
|
"%Math%": Math,
|
|
7081
7084
|
"%Number%": Number,
|
|
7082
|
-
"%Object%":
|
|
7085
|
+
"%Object%": rg,
|
|
7083
7086
|
"%Object.getOwnPropertyDescriptor%": Or,
|
|
7084
7087
|
"%parseFloat%": parseFloat,
|
|
7085
7088
|
"%parseInt%": parseInt,
|
|
7086
7089
|
"%Promise%": typeof Promise > "u" ? rt : Promise,
|
|
7087
7090
|
"%Proxy%": typeof Proxy > "u" ? rt : Proxy,
|
|
7088
|
-
"%RangeError%":
|
|
7089
|
-
"%ReferenceError%":
|
|
7091
|
+
"%RangeError%": sg,
|
|
7092
|
+
"%ReferenceError%": ag,
|
|
7090
7093
|
"%Reflect%": typeof Reflect > "u" ? rt : Reflect,
|
|
7091
7094
|
"%RegExp%": RegExp,
|
|
7092
7095
|
"%Set%": typeof Set > "u" ? rt : Set,
|
|
@@ -7096,38 +7099,38 @@ var rt, ng = yc, rg = Th, og = _h, ig = Ih, sg = Ah, lr = Fh, rr = vc, ag = Rh,
|
|
|
7096
7099
|
"%StringIteratorPrototype%": Jn && $t ? $t(""[Symbol.iterator]()) : rt,
|
|
7097
7100
|
"%Symbol%": Jn ? Symbol : rt,
|
|
7098
7101
|
"%SyntaxError%": lr,
|
|
7099
|
-
"%ThrowTypeError%":
|
|
7100
|
-
"%TypedArray%":
|
|
7102
|
+
"%ThrowTypeError%": yg,
|
|
7103
|
+
"%TypedArray%": wg,
|
|
7101
7104
|
"%TypeError%": rr,
|
|
7102
7105
|
"%Uint8Array%": typeof Uint8Array > "u" ? rt : Uint8Array,
|
|
7103
7106
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? rt : Uint8ClampedArray,
|
|
7104
7107
|
"%Uint16Array%": typeof Uint16Array > "u" ? rt : Uint16Array,
|
|
7105
7108
|
"%Uint32Array%": typeof Uint32Array > "u" ? rt : Uint32Array,
|
|
7106
|
-
"%URIError%":
|
|
7109
|
+
"%URIError%": lg,
|
|
7107
7110
|
"%WeakMap%": typeof WeakMap > "u" ? rt : WeakMap,
|
|
7108
7111
|
"%WeakRef%": typeof WeakRef > "u" ? rt : WeakRef,
|
|
7109
7112
|
"%WeakSet%": typeof WeakSet > "u" ? rt : WeakSet,
|
|
7110
7113
|
"%Function.prototype.call%": jr,
|
|
7111
7114
|
"%Function.prototype.apply%": Sc,
|
|
7112
|
-
"%Object.defineProperty%":
|
|
7113
|
-
"%Object.getPrototypeOf%":
|
|
7114
|
-
"%Math.abs%":
|
|
7115
|
-
"%Math.floor%":
|
|
7116
|
-
"%Math.max%":
|
|
7117
|
-
"%Math.min%":
|
|
7118
|
-
"%Math.pow%":
|
|
7119
|
-
"%Math.round%":
|
|
7120
|
-
"%Math.sign%":
|
|
7121
|
-
"%Reflect.getPrototypeOf%":
|
|
7115
|
+
"%Object.defineProperty%": gg,
|
|
7116
|
+
"%Object.getPrototypeOf%": vg,
|
|
7117
|
+
"%Math.abs%": cg,
|
|
7118
|
+
"%Math.floor%": dg,
|
|
7119
|
+
"%Math.max%": ug,
|
|
7120
|
+
"%Math.min%": fg,
|
|
7121
|
+
"%Math.pow%": mg,
|
|
7122
|
+
"%Math.round%": pg,
|
|
7123
|
+
"%Math.sign%": hg,
|
|
7124
|
+
"%Reflect.getPrototypeOf%": bg
|
|
7122
7125
|
};
|
|
7123
7126
|
if ($t)
|
|
7124
7127
|
try {
|
|
7125
7128
|
null.error;
|
|
7126
7129
|
} catch (t) {
|
|
7127
|
-
var
|
|
7128
|
-
Ln["%Error.prototype%"] =
|
|
7130
|
+
var Cg = $t($t(t));
|
|
7131
|
+
Ln["%Error.prototype%"] = Cg;
|
|
7129
7132
|
}
|
|
7130
|
-
var
|
|
7133
|
+
var xg = function t(e) {
|
|
7131
7134
|
var n;
|
|
7132
7135
|
if (e === "%AsyncFunction%")
|
|
7133
7136
|
n = Qo("async function () {}");
|
|
@@ -7196,21 +7199,21 @@ var Cg = function t(e) {
|
|
|
7196
7199
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
7197
7200
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
7198
7201
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
7199
|
-
}, Ur = Hr, lo =
|
|
7202
|
+
}, Ur = Hr, lo = ng(), Sg = Ur.call(jr, Array.prototype.concat), Tg = Ur.call(Sc, Array.prototype.splice), ra = Ur.call(jr, String.prototype.replace), co = Ur.call(jr, String.prototype.slice), _g = Ur.call(jr, RegExp.prototype.exec), Ig = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ag = /\\(\\)?/g, Fg = function(e) {
|
|
7200
7203
|
var n = co(e, 0, 1), r = co(e, -1);
|
|
7201
7204
|
if (n === "%" && r !== "%")
|
|
7202
7205
|
throw new lr("invalid intrinsic syntax, expected closing `%`");
|
|
7203
7206
|
if (r === "%" && n !== "%")
|
|
7204
7207
|
throw new lr("invalid intrinsic syntax, expected opening `%`");
|
|
7205
7208
|
var o = [];
|
|
7206
|
-
return ra(e,
|
|
7207
|
-
o[o.length] = d ? ra(c,
|
|
7209
|
+
return ra(e, Ig, function(s, a, d, c) {
|
|
7210
|
+
o[o.length] = d ? ra(c, Ag, "$1") : a || s;
|
|
7208
7211
|
}), o;
|
|
7209
|
-
},
|
|
7212
|
+
}, Rg = function(e, n) {
|
|
7210
7213
|
var r = e, o;
|
|
7211
7214
|
if (lo(na, r) && (o = na[r], r = "%" + o[0] + "%"), lo(Ln, r)) {
|
|
7212
7215
|
var s = Ln[r];
|
|
7213
|
-
if (s === Qn && (s =
|
|
7216
|
+
if (s === Qn && (s = xg(r)), typeof s > "u" && !n)
|
|
7214
7217
|
throw new rr("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
7215
7218
|
return {
|
|
7216
7219
|
alias: o,
|
|
@@ -7224,10 +7227,10 @@ var Cg = function t(e) {
|
|
|
7224
7227
|
throw new rr("intrinsic name must be a non-empty string");
|
|
7225
7228
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
7226
7229
|
throw new rr('"allowMissing" argument must be a boolean');
|
|
7227
|
-
if (
|
|
7230
|
+
if (_g(/^%?[^%]*%?$/, e) === null)
|
|
7228
7231
|
throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
7229
|
-
var r =
|
|
7230
|
-
l && (o = l[0],
|
|
7232
|
+
var r = Fg(e), o = r.length > 0 ? r[0] : "", s = Rg("%" + o + "%", n), a = s.name, d = s.value, c = !1, l = s.alias;
|
|
7233
|
+
l && (o = l[0], Tg(r, Sg([0, 1], l)));
|
|
7231
7234
|
for (var f = 1, u = !0; f < r.length; f += 1) {
|
|
7232
7235
|
var m = r[f], p = co(m, 0, 1), g = co(m, -1);
|
|
7233
7236
|
if ((p === '"' || p === "'" || p === "`" || g === '"' || g === "'" || g === "`") && p !== g)
|
|
@@ -7275,18 +7278,18 @@ var Cg = function t(e) {
|
|
|
7275
7278
|
};
|
|
7276
7279
|
d ? d(t.exports, "apply", { value: l }) : t.exports.apply = l;
|
|
7277
7280
|
})(Tc);
|
|
7278
|
-
var ns = Tc.exports, _c = Ro, Ic = ns,
|
|
7281
|
+
var ns = Tc.exports, _c = Ro, Ic = ns, Eg = Ic(_c("String.prototype.indexOf")), Ac = function(e, n) {
|
|
7279
7282
|
var r = _c(e, !!n);
|
|
7280
|
-
return typeof r == "function" &&
|
|
7281
|
-
},
|
|
7282
|
-
return
|
|
7283
|
+
return typeof r == "function" && Eg(e, ".prototype.") > -1 ? Ic(r) : r;
|
|
7284
|
+
}, Og = Zi(), kg = Ac, fi = kg("Object.prototype.toString"), Eo = function(e) {
|
|
7285
|
+
return Og && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : fi(e) === "[object Arguments]";
|
|
7283
7286
|
}, Fc = function(e) {
|
|
7284
7287
|
return Eo(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && fi(e) !== "[object Array]" && fi(e.callee) === "[object Function]";
|
|
7285
|
-
},
|
|
7288
|
+
}, Dg = function() {
|
|
7286
7289
|
return Eo(arguments);
|
|
7287
7290
|
}();
|
|
7288
7291
|
Eo.isLegacyArguments = Fc;
|
|
7289
|
-
var
|
|
7292
|
+
var Mg = Dg ? Eo : Fc, Ng = Ro, mi = Ng("%Object.defineProperty%", !0), pi = function() {
|
|
7290
7293
|
if (mi)
|
|
7291
7294
|
try {
|
|
7292
7295
|
return mi({}, "a", { value: 1 }), !0;
|
|
@@ -7304,7 +7307,7 @@ pi.hasArrayLengthDefineBug = function() {
|
|
|
7304
7307
|
return !0;
|
|
7305
7308
|
}
|
|
7306
7309
|
};
|
|
7307
|
-
var rs = pi,
|
|
7310
|
+
var rs = pi, $g = rs(), os = Ro, oa = $g && os("%Object.defineProperty%", !0), Pg = os("%SyntaxError%"), Xn = os("%TypeError%"), ia = es, Rc = function(e, n, r) {
|
|
7308
7311
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
7309
7312
|
throw new Xn("`obj` must be an object or a function`");
|
|
7310
7313
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -7328,45 +7331,45 @@ var rs = pi, Ng = rs(), os = Ro, oa = Ng && os("%Object.defineProperty%", !0), $
|
|
|
7328
7331
|
else if (d || !o && !s && !a)
|
|
7329
7332
|
e[n] = r;
|
|
7330
7333
|
else
|
|
7331
|
-
throw new
|
|
7332
|
-
},
|
|
7333
|
-
return typeof t == "function" &&
|
|
7334
|
-
}, Ec = rs(),
|
|
7334
|
+
throw new Pg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
7335
|
+
}, Lg = hc, Vg = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Bg = Object.prototype.toString, Hg = Array.prototype.concat, sa = Rc, jg = function(t) {
|
|
7336
|
+
return typeof t == "function" && Bg.call(t) === "[object Function]";
|
|
7337
|
+
}, Ec = rs(), Ug = function(t, e, n, r) {
|
|
7335
7338
|
if (e in t) {
|
|
7336
7339
|
if (r === !0) {
|
|
7337
7340
|
if (t[e] === n)
|
|
7338
7341
|
return;
|
|
7339
|
-
} else if (!
|
|
7342
|
+
} else if (!jg(r) || !r())
|
|
7340
7343
|
return;
|
|
7341
7344
|
}
|
|
7342
7345
|
Ec ? sa(t, e, n, !0) : sa(t, e, n);
|
|
7343
7346
|
}, Oc = function(t, e) {
|
|
7344
|
-
var n = arguments.length > 2 ? arguments[2] : {}, r =
|
|
7345
|
-
|
|
7347
|
+
var n = arguments.length > 2 ? arguments[2] : {}, r = Lg(e);
|
|
7348
|
+
Vg && (r = Hg.call(r, Object.getOwnPropertySymbols(e)));
|
|
7346
7349
|
for (var o = 0; o < r.length; o += 1)
|
|
7347
|
-
|
|
7350
|
+
Ug(t, r[o], e[r[o]], n[r[o]]);
|
|
7348
7351
|
};
|
|
7349
7352
|
Oc.supportsDescriptors = !!Ec;
|
|
7350
7353
|
var Wr = Oc, aa = function(t) {
|
|
7351
7354
|
return t !== t;
|
|
7352
7355
|
}, kc = function(e, n) {
|
|
7353
7356
|
return e === 0 && n === 0 ? 1 / e === 1 / n : !!(e === n || aa(e) && aa(n));
|
|
7354
|
-
},
|
|
7355
|
-
return typeof Object.is == "function" ? Object.is :
|
|
7356
|
-
},
|
|
7357
|
-
var e =
|
|
7358
|
-
return
|
|
7357
|
+
}, Wg = kc, Dc = function() {
|
|
7358
|
+
return typeof Object.is == "function" ? Object.is : Wg;
|
|
7359
|
+
}, qg = Dc, Yg = Wr, Gg = function() {
|
|
7360
|
+
var e = qg();
|
|
7361
|
+
return Yg(Object, { is: e }, {
|
|
7359
7362
|
is: function() {
|
|
7360
7363
|
return Object.is !== e;
|
|
7361
7364
|
}
|
|
7362
7365
|
}), e;
|
|
7363
|
-
},
|
|
7364
|
-
|
|
7366
|
+
}, zg = Wr, Kg = ns, Jg = kc, Mc = Dc, Xg = Gg, Nc = Kg(Mc(), Object);
|
|
7367
|
+
zg(Nc, {
|
|
7365
7368
|
getPolyfill: Mc,
|
|
7366
|
-
implementation:
|
|
7367
|
-
shim:
|
|
7369
|
+
implementation: Jg,
|
|
7370
|
+
shim: Xg
|
|
7368
7371
|
});
|
|
7369
|
-
var
|
|
7372
|
+
var Qg = Nc, hi = Ac, $c = Zi(), Pc, Lc, gi, yi;
|
|
7370
7373
|
if ($c) {
|
|
7371
7374
|
Pc = hi("Object.prototype.hasOwnProperty"), Lc = hi("RegExp.prototype.exec"), gi = {};
|
|
7372
7375
|
var ei = function() {
|
|
@@ -7377,10 +7380,10 @@ if ($c) {
|
|
|
7377
7380
|
valueOf: ei
|
|
7378
7381
|
}, typeof Symbol.toPrimitive == "symbol" && (yi[Symbol.toPrimitive] = ei);
|
|
7379
7382
|
}
|
|
7380
|
-
var
|
|
7383
|
+
var Zg = hi("Object.prototype.toString"), ey = Object.getOwnPropertyDescriptor, ty = "[object RegExp]", ny = $c ? function(e) {
|
|
7381
7384
|
if (!e || typeof e != "object")
|
|
7382
7385
|
return !1;
|
|
7383
|
-
var n =
|
|
7386
|
+
var n = ey(e, "lastIndex"), r = n && Pc(n, "value");
|
|
7384
7387
|
if (!r)
|
|
7385
7388
|
return !1;
|
|
7386
7389
|
try {
|
|
@@ -7389,7 +7392,7 @@ var Qg = hi("Object.prototype.toString"), Zg = Object.getOwnPropertyDescriptor,
|
|
|
7389
7392
|
return o === gi;
|
|
7390
7393
|
}
|
|
7391
7394
|
} : function(e) {
|
|
7392
|
-
return !e || typeof e != "object" && typeof e != "function" ? !1 :
|
|
7395
|
+
return !e || typeof e != "object" && typeof e != "function" ? !1 : Zg(e) === ty;
|
|
7393
7396
|
}, kr = function() {
|
|
7394
7397
|
return typeof (function() {
|
|
7395
7398
|
}).name == "string";
|
|
@@ -7407,24 +7410,24 @@ kr.functionsHaveConfigurableNames = function() {
|
|
|
7407
7410
|
}, "name");
|
|
7408
7411
|
return !!e && !!e.configurable;
|
|
7409
7412
|
};
|
|
7410
|
-
var
|
|
7413
|
+
var ry = Function.prototype.bind;
|
|
7411
7414
|
kr.boundFunctionsHaveNames = function() {
|
|
7412
|
-
return kr() && typeof
|
|
7415
|
+
return kr() && typeof ry == "function" && (function() {
|
|
7413
7416
|
}).bind().name !== "";
|
|
7414
7417
|
};
|
|
7415
|
-
var
|
|
7418
|
+
var oy = kr, la = Rc, iy = rs(), sy = oy.functionsHaveConfigurableNames(), ay = TypeError, ly = function(e, n) {
|
|
7416
7419
|
if (typeof e != "function")
|
|
7417
|
-
throw new
|
|
7420
|
+
throw new ay("`fn` is not a function");
|
|
7418
7421
|
var r = arguments.length > 2 && !!arguments[2];
|
|
7419
|
-
return (!r ||
|
|
7420
|
-
},
|
|
7421
|
-
if (this != null && this !==
|
|
7422
|
-
throw new
|
|
7422
|
+
return (!r || sy) && (iy ? la(e, "name", n, !0, !0) : la(e, "name", n)), e;
|
|
7423
|
+
}, cy = ly, dy = Object, uy = TypeError, Vc = cy(function() {
|
|
7424
|
+
if (this != null && this !== dy(this))
|
|
7425
|
+
throw new uy("RegExp.prototype.flags getter called on non-object");
|
|
7423
7426
|
var e = "";
|
|
7424
7427
|
return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
|
|
7425
|
-
}, "get flags", !0),
|
|
7426
|
-
if (
|
|
7427
|
-
var e =
|
|
7428
|
+
}, "get flags", !0), fy = Vc, my = Wr.supportsDescriptors, py = Object.getOwnPropertyDescriptor, Bc = function() {
|
|
7429
|
+
if (my && /a/mig.flags === "gim") {
|
|
7430
|
+
var e = py(RegExp.prototype, "flags");
|
|
7428
7431
|
if (e && typeof e.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
|
|
7429
7432
|
var n = "", r = {};
|
|
7430
7433
|
if (Object.defineProperty(r, "hasIndices", {
|
|
@@ -7439,34 +7442,34 @@ var ry = kr, la = Rc, oy = rs(), iy = ry.functionsHaveConfigurableNames(), sy =
|
|
|
7439
7442
|
return e.get;
|
|
7440
7443
|
}
|
|
7441
7444
|
}
|
|
7442
|
-
return
|
|
7443
|
-
},
|
|
7444
|
-
if (!
|
|
7445
|
-
throw new
|
|
7446
|
-
var e =
|
|
7447
|
-
return (!r || r.get !== e) &&
|
|
7445
|
+
return fy;
|
|
7446
|
+
}, hy = Wr.supportsDescriptors, gy = Bc, yy = Object.getOwnPropertyDescriptor, vy = Object.defineProperty, by = TypeError, ca = Object.getPrototypeOf, wy = /a/, Cy = function() {
|
|
7447
|
+
if (!hy || !ca)
|
|
7448
|
+
throw new by("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
7449
|
+
var e = gy(), n = ca(wy), r = yy(n, "flags");
|
|
7450
|
+
return (!r || r.get !== e) && vy(n, "flags", {
|
|
7448
7451
|
configurable: !0,
|
|
7449
7452
|
enumerable: !1,
|
|
7450
7453
|
get: e
|
|
7451
7454
|
}), e;
|
|
7452
|
-
},
|
|
7453
|
-
|
|
7455
|
+
}, xy = Wr, Sy = ns, Ty = Vc, Hc = Bc, _y = Cy, jc = Sy(Hc());
|
|
7456
|
+
xy(jc, {
|
|
7454
7457
|
getPolyfill: Hc,
|
|
7455
|
-
implementation:
|
|
7456
|
-
shim:
|
|
7458
|
+
implementation: Ty,
|
|
7459
|
+
shim: _y
|
|
7457
7460
|
});
|
|
7458
|
-
var
|
|
7461
|
+
var Iy = jc, Ay = Date.prototype.getDay, Fy = function(e) {
|
|
7459
7462
|
try {
|
|
7460
|
-
return
|
|
7463
|
+
return Ay.call(e), !0;
|
|
7461
7464
|
} catch {
|
|
7462
7465
|
return !1;
|
|
7463
7466
|
}
|
|
7464
|
-
},
|
|
7465
|
-
return typeof e != "object" || e === null ? !1 :
|
|
7466
|
-
}, da = hc, ua =
|
|
7467
|
+
}, Ry = Object.prototype.toString, Ey = "[object Date]", Oy = Zi(), ky = function(e) {
|
|
7468
|
+
return typeof e != "object" || e === null ? !1 : Oy ? Fy(e) : Ry.call(e) === Ey;
|
|
7469
|
+
}, da = hc, ua = Mg, fa = Qg, ma = ny, pa = Iy, ha = ky, ga = Date.prototype.getTime;
|
|
7467
7470
|
function Uc(t, e, n) {
|
|
7468
7471
|
var r = n || {};
|
|
7469
|
-
return (r.strict ? fa(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? fa(t, e) : t == e :
|
|
7472
|
+
return (r.strict ? fa(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? fa(t, e) : t == e : Dy(t, e, r);
|
|
7470
7473
|
}
|
|
7471
7474
|
function ya(t) {
|
|
7472
7475
|
return t == null;
|
|
@@ -7474,7 +7477,7 @@ function ya(t) {
|
|
|
7474
7477
|
function va(t) {
|
|
7475
7478
|
return !(!t || typeof t != "object" || typeof t.length != "number" || typeof t.copy != "function" || typeof t.slice != "function" || t.length > 0 && typeof t[0] != "number");
|
|
7476
7479
|
}
|
|
7477
|
-
function
|
|
7480
|
+
function Dy(t, e, n) {
|
|
7478
7481
|
var r, o;
|
|
7479
7482
|
if (typeof t != typeof e || ya(t) || ya(e) || t.prototype !== e.prototype || ua(t) !== ua(e))
|
|
7480
7483
|
return !1;
|
|
@@ -7513,8 +7516,8 @@ function ky(t, e, n) {
|
|
|
7513
7516
|
return !1;
|
|
7514
7517
|
return !0;
|
|
7515
7518
|
}
|
|
7516
|
-
var
|
|
7517
|
-
const hr = /* @__PURE__ */ pl(
|
|
7519
|
+
var My = Uc;
|
|
7520
|
+
const hr = /* @__PURE__ */ pl(My), { Text: Ny } = Kt, $y = ({
|
|
7518
7521
|
currentModel: t,
|
|
7519
7522
|
context: e,
|
|
7520
7523
|
searchParams: n,
|
|
@@ -7777,7 +7780,7 @@ const hr = /* @__PURE__ */ pl(Dy), { Text: My } = Kt, Ny = ({
|
|
|
7777
7780
|
autoFocus: !0
|
|
7778
7781
|
}
|
|
7779
7782
|
) : /* @__PURE__ */ i(
|
|
7780
|
-
|
|
7783
|
+
Ny,
|
|
7781
7784
|
{
|
|
7782
7785
|
style: {
|
|
7783
7786
|
fontSize: "14px",
|
|
@@ -7891,7 +7894,7 @@ const hr = /* @__PURE__ */ pl(Dy), { Text: My } = Kt, Ny = ({
|
|
|
7891
7894
|
uo(_.label)
|
|
7892
7895
|
);
|
|
7893
7896
|
}).map((k) => {
|
|
7894
|
-
const R = k, E = O[R.id] === !0, _ = F ? !1 : w && !
|
|
7897
|
+
const R = k, E = O[R.id] === !0, _ = F ? !1 : w && !Ly(w, R), L = x ? `${R.id}-top` : `${R.id}-bottom`;
|
|
7895
7898
|
return /* @__PURE__ */ i(
|
|
7896
7899
|
"div",
|
|
7897
7900
|
{
|
|
@@ -8123,7 +8126,7 @@ const is = (t) => {
|
|
|
8123
8126
|
shouldShowSingleSaveButton: M,
|
|
8124
8127
|
shouldShowSaveButtonGroup: j,
|
|
8125
8128
|
shouldShowSaveAsNew: H
|
|
8126
|
-
} =
|
|
8129
|
+
} = $y({
|
|
8127
8130
|
currentModel: c,
|
|
8128
8131
|
context: l,
|
|
8129
8132
|
searchParams: y,
|
|
@@ -8274,14 +8277,14 @@ const is = (t) => {
|
|
|
8274
8277
|
]);
|
|
8275
8278
|
return /* @__PURE__ */ U(Fe, { children: [
|
|
8276
8279
|
/* @__PURE__ */ i(
|
|
8277
|
-
|
|
8280
|
+
wh,
|
|
8278
8281
|
{
|
|
8279
8282
|
title: V(w),
|
|
8280
8283
|
isOpen: n,
|
|
8281
8284
|
onClose: r,
|
|
8282
8285
|
headerButtons: re,
|
|
8283
8286
|
footer: /* @__PURE__ */ i(
|
|
8284
|
-
|
|
8287
|
+
Py,
|
|
8285
8288
|
{
|
|
8286
8289
|
onClear: de,
|
|
8287
8290
|
onSubmit: ee,
|
|
@@ -8356,7 +8359,7 @@ const is = (t) => {
|
|
|
8356
8359
|
}
|
|
8357
8360
|
)
|
|
8358
8361
|
] });
|
|
8359
|
-
},
|
|
8362
|
+
}, Py = ({
|
|
8360
8363
|
onClear: t,
|
|
8361
8364
|
onSubmit: e,
|
|
8362
8365
|
searchParams: n
|
|
@@ -8400,13 +8403,13 @@ const is = (t) => {
|
|
|
8400
8403
|
]
|
|
8401
8404
|
}
|
|
8402
8405
|
);
|
|
8403
|
-
}, uo = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-zA-Z0-9\s]/g, "").toLowerCase(),
|
|
8406
|
+
}, uo = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-zA-Z0-9\s]/g, "").toLowerCase(), Ly = (t, e) => {
|
|
8404
8407
|
if (!t)
|
|
8405
8408
|
return !0;
|
|
8406
8409
|
const n = uo(e.label), r = uo(t);
|
|
8407
8410
|
return n.includes(r);
|
|
8408
8411
|
};
|
|
8409
|
-
function
|
|
8412
|
+
function Vy(t) {
|
|
8410
8413
|
const {
|
|
8411
8414
|
onAdvancedFilterToggle: e,
|
|
8412
8415
|
advancedFilter: n,
|
|
@@ -8435,7 +8438,7 @@ function Ly(t) {
|
|
|
8435
8438
|
] })
|
|
8436
8439
|
] });
|
|
8437
8440
|
}
|
|
8438
|
-
function
|
|
8441
|
+
function By(t) {
|
|
8439
8442
|
const { onLimitChange: e } = t, { t: n } = Ee(), r = new oi({ name: "limit" }), o = new oi({ name: "offset" });
|
|
8440
8443
|
return /* @__PURE__ */ U("div", { className: "pl-2 pt-2", children: [
|
|
8441
8444
|
/* @__PURE__ */ i(st, { children: n("parameters") }, "count_params"),
|
|
@@ -8455,7 +8458,7 @@ function Vy(t) {
|
|
|
8455
8458
|
] })
|
|
8456
8459
|
] });
|
|
8457
8460
|
}
|
|
8458
|
-
const { useToken:
|
|
8461
|
+
const { useToken: Hy } = at;
|
|
8459
8462
|
function Oo(t) {
|
|
8460
8463
|
const {
|
|
8461
8464
|
fields: e,
|
|
@@ -8471,7 +8474,7 @@ function Oo(t) {
|
|
|
8471
8474
|
searchError: u,
|
|
8472
8475
|
searchValues: m,
|
|
8473
8476
|
showLimitOptions: p = !0
|
|
8474
|
-
} = t, [g, h] = A(), [y, b] = A(), [v, C] = A(!1), S = K(), { token: w } =
|
|
8477
|
+
} = t, [g, h] = A(), [y, b] = A(), [v, C] = A(!1), S = K(), { token: w } = Hy(), [F] = At.useForm();
|
|
8475
8478
|
ce(() => {
|
|
8476
8479
|
F.setFieldsValue(m);
|
|
8477
8480
|
}, [m]), ce(() => {
|
|
@@ -8526,9 +8529,9 @@ function Oo(t) {
|
|
|
8526
8529
|
initialValues: { offset: a, limit: d },
|
|
8527
8530
|
children: [
|
|
8528
8531
|
I,
|
|
8529
|
-
v && p && /* @__PURE__ */ i(
|
|
8532
|
+
v && p && /* @__PURE__ */ i(By, { onLimitChange: c }),
|
|
8530
8533
|
/* @__PURE__ */ i(
|
|
8531
|
-
|
|
8534
|
+
Vy,
|
|
8532
8535
|
{
|
|
8533
8536
|
hideAdvancedFilter: (N() || (y == null ? void 0 : y._rows.length) === 0) && !p,
|
|
8534
8537
|
advancedFilter: v,
|
|
@@ -8561,7 +8564,7 @@ function Oo(t) {
|
|
|
8561
8564
|
function ss({
|
|
8562
8565
|
useLocalState: t = !1
|
|
8563
8566
|
}) {
|
|
8564
|
-
const e =
|
|
8567
|
+
const e = fv() && !t, n = Vt(), [r, o] = A(!1), [s, a] = A(!1), [d, c] = A([]), [l, f] = A(0), [u, m] = A(void 0), [p, g] = A([]), [h, y] = A({}), [b, v] = A(), [C, S] = A([]), [w, F] = A(), [x, I] = A(0), [D, N] = A(), [O, k] = A(1), [R, E] = A(Hn), [_, L] = A(Bt);
|
|
8565
8568
|
return e ? {
|
|
8566
8569
|
treeIsLoading: n.viewIsLoading ?? !1,
|
|
8567
8570
|
setTreeIsLoading: n.setViewIsLoading ?? (() => {
|
|
@@ -8655,7 +8658,7 @@ const gr = () => {
|
|
|
8655
8658
|
document.removeEventListener("visibilitychange", n);
|
|
8656
8659
|
};
|
|
8657
8660
|
}, []), t;
|
|
8658
|
-
},
|
|
8661
|
+
}, jy = 0.5 * 1e3, Uy = ({
|
|
8659
8662
|
model: t,
|
|
8660
8663
|
treeView: e,
|
|
8661
8664
|
tableRef: n,
|
|
@@ -8805,7 +8808,7 @@ const gr = () => {
|
|
|
8805
8808
|
);
|
|
8806
8809
|
Xe(() => (u && w && (L(), S.current = setInterval(
|
|
8807
8810
|
L,
|
|
8808
|
-
|
|
8811
|
+
jy
|
|
8809
8812
|
)), () => {
|
|
8810
8813
|
S.current && (clearInterval(S.current), S.current = null);
|
|
8811
8814
|
}), [u, w, L, c]);
|
|
@@ -8846,7 +8849,7 @@ const gr = () => {
|
|
|
8846
8849
|
onHasFunctionFieldsToParseConditions: k,
|
|
8847
8850
|
syncExternalRecordUpdates: V
|
|
8848
8851
|
};
|
|
8849
|
-
},
|
|
8852
|
+
}, Wy = 3 * 1e3, qy = (t) => {
|
|
8850
8853
|
const {
|
|
8851
8854
|
tableRef: e,
|
|
8852
8855
|
model: n,
|
|
@@ -8940,7 +8943,7 @@ const gr = () => {
|
|
|
8940
8943
|
]);
|
|
8941
8944
|
ce(() => () => {
|
|
8942
8945
|
b(), C();
|
|
8943
|
-
}, []), Xe(() => ((o == null ? void 0 : o.length) && g && (I(), p.current = setInterval(I,
|
|
8946
|
+
}, []), Xe(() => ((o == null ? void 0 : o.length) && g && (I(), p.current = setInterval(I, Wy)), () => {
|
|
8944
8947
|
p.current && (clearInterval(p.current), p.current = null);
|
|
8945
8948
|
}), [
|
|
8946
8949
|
o,
|
|
@@ -8980,7 +8983,7 @@ const gr = () => {
|
|
|
8980
8983
|
addRecordsToCheckFunctionFields: p,
|
|
8981
8984
|
onHasFunctionFieldsToParseConditions: g,
|
|
8982
8985
|
syncExternalRecordUpdates: h
|
|
8983
|
-
} =
|
|
8986
|
+
} = Uy({
|
|
8984
8987
|
model: t,
|
|
8985
8988
|
treeView: e,
|
|
8986
8989
|
tableRef: n,
|
|
@@ -8991,7 +8994,7 @@ const gr = () => {
|
|
|
8991
8994
|
updateAttributes: a,
|
|
8992
8995
|
results: d,
|
|
8993
8996
|
skipFunctionFieldsHandling: !!l
|
|
8994
|
-
}), { clear: y } =
|
|
8997
|
+
}), { clear: y } = qy({
|
|
8995
8998
|
model: t,
|
|
8996
8999
|
tableRef: n,
|
|
8997
9000
|
autorefreshableFields: l || s == null ? void 0 : s.autorefreshableFields,
|
|
@@ -9067,7 +9070,7 @@ const gr = () => {
|
|
|
9067
9070
|
className: "pb-4",
|
|
9068
9071
|
style: { height: 40, maxHeight: 40, overflow: "hidden" },
|
|
9069
9072
|
children: [
|
|
9070
|
-
/* @__PURE__ */ i(Ke, { span: o, children: /* @__PURE__ */ i(
|
|
9073
|
+
/* @__PURE__ */ i(Ke, { span: o, children: /* @__PURE__ */ i(Yy, { selectedRowKeys: e }) }),
|
|
9071
9074
|
n && /* @__PURE__ */ i(Ke, { span: 12, className: "text-center", children: n }),
|
|
9072
9075
|
/* @__PURE__ */ U(
|
|
9073
9076
|
Ke,
|
|
@@ -9084,7 +9087,7 @@ const gr = () => {
|
|
|
9084
9087
|
]
|
|
9085
9088
|
}
|
|
9086
9089
|
);
|
|
9087
|
-
},
|
|
9090
|
+
}, Yy = ({
|
|
9088
9091
|
selectedRowKeys: t
|
|
9089
9092
|
}) => {
|
|
9090
9093
|
const { t: e } = Ee();
|
|
@@ -9129,8 +9132,8 @@ const Yc = ({
|
|
|
9129
9132
|
var o, s, a, d;
|
|
9130
9133
|
!e || !t.current || (n === !1 || !r ? (s = (o = t.current).pauseAutoRefresh) == null || s.call(o) : (n === void 0 || n === !0) && r && ((d = (a = t.current).resumeAutoRefresh) == null || d.call(a)));
|
|
9131
9134
|
}, [n, e, r]);
|
|
9132
|
-
},
|
|
9133
|
-
function
|
|
9135
|
+
}, Gy = 10, zy = 200;
|
|
9136
|
+
function Ky(t, e) {
|
|
9134
9137
|
const {
|
|
9135
9138
|
model: n,
|
|
9136
9139
|
formView: r,
|
|
@@ -9150,7 +9153,7 @@ function zy(t, e) {
|
|
|
9150
9153
|
autoRefresh: b
|
|
9151
9154
|
} = t, v = K(null), C = K([]), S = K(!1), { showErrorNotification: w } = Rt(), { setCurrentSavedSearch: F } = Vt(), [x, I] = A(), [D, N] = A(!1), O = K(), k = K(null), R = Gi({
|
|
9152
9155
|
elementRef: k,
|
|
9153
|
-
offset:
|
|
9156
|
+
offset: Gy
|
|
9154
9157
|
}), E = y !== void 0 ? y : R, [_, L] = Oe(
|
|
9155
9158
|
Y.getHandler().searchCount
|
|
9156
9159
|
), [P, B] = Oe(
|
|
@@ -9395,12 +9398,12 @@ function zy(t, e) {
|
|
|
9395
9398
|
changeSelectedRowItems: Qe,
|
|
9396
9399
|
changeSelectedRowKeys: ot,
|
|
9397
9400
|
onSelectionCheckboxClicked: wt
|
|
9398
|
-
} =
|
|
9401
|
+
} = qp({
|
|
9399
9402
|
selectedRowItems: re,
|
|
9400
9403
|
setSelectedRowItems: ee,
|
|
9401
9404
|
onChangeSelectedRowKeys: f,
|
|
9402
9405
|
totalRows: x,
|
|
9403
|
-
maxRowsToSelect:
|
|
9406
|
+
maxRowsToSelect: zy,
|
|
9404
9407
|
onSelectAll: xn
|
|
9405
9408
|
}), yt = T(
|
|
9406
9409
|
async ({
|
|
@@ -9635,12 +9638,12 @@ function zy(t, e) {
|
|
|
9635
9638
|
/* @__PURE__ */ i("div", { ref: k, style: Ot, children: j || ge ? /* @__PURE__ */ i(ct, {}) : Ze })
|
|
9636
9639
|
] });
|
|
9637
9640
|
}
|
|
9638
|
-
const cs = Ht(
|
|
9641
|
+
const cs = Ht(Ky), wa = (t, e = "14px -apple-system") => {
|
|
9639
9642
|
const r = document.createElement("canvas").getContext("2d");
|
|
9640
9643
|
r.font = e;
|
|
9641
9644
|
const o = r.measureText(t);
|
|
9642
9645
|
return Math.round((o.width + 80) * 1.5);
|
|
9643
|
-
},
|
|
9646
|
+
}, Jy = (t, e, n = 500) => {
|
|
9644
9647
|
if (t.length === 0)
|
|
9645
9648
|
return { columns: t };
|
|
9646
9649
|
const r = t.map(
|
|
@@ -9661,11 +9664,11 @@ const cs = Ht(zy), wa = (t, e = "14px -apple-system") => {
|
|
|
9661
9664
|
source: e,
|
|
9662
9665
|
tableWidth: o
|
|
9663
9666
|
};
|
|
9664
|
-
},
|
|
9667
|
+
}, Xy = Ft.div`
|
|
9665
9668
|
display: flex;
|
|
9666
9669
|
align-items: center;
|
|
9667
9670
|
justify-content: center;
|
|
9668
|
-
`,
|
|
9671
|
+
`, Qy = ({
|
|
9669
9672
|
numberOfVisibleSelectedRows: t,
|
|
9670
9673
|
totalRecords: e,
|
|
9671
9674
|
numberOfTotalRows: n,
|
|
@@ -9694,7 +9697,7 @@ const cs = Ht(zy), wa = (t, e = "14px -apple-system") => {
|
|
|
9694
9697
|
"{totalRecords}",
|
|
9695
9698
|
o.toString()
|
|
9696
9699
|
) + " " });
|
|
9697
|
-
return /* @__PURE__ */ i(
|
|
9700
|
+
return /* @__PURE__ */ i(Xy, { children: o > n ? u : f });
|
|
9698
9701
|
};
|
|
9699
9702
|
var Ca = Object.prototype.hasOwnProperty;
|
|
9700
9703
|
function xa(t, e, n) {
|
|
@@ -9834,7 +9837,7 @@ const Gc = Ht(
|
|
|
9834
9837
|
}
|
|
9835
9838
|
) }),
|
|
9836
9839
|
x && /* @__PURE__ */ i(Ke, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
|
|
9837
|
-
|
|
9840
|
+
Qy,
|
|
9838
9841
|
{
|
|
9839
9842
|
numberOfVisibleSelectedRows: re,
|
|
9840
9843
|
numberOfRealSelectedRows: (u == null ? void 0 : u.length) || 0,
|
|
@@ -9869,7 +9872,7 @@ const Gc = Ht(
|
|
|
9869
9872
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: pe.join(", ") });
|
|
9870
9873
|
}, [D, u, R]), ee = z(() => {
|
|
9871
9874
|
if (R !== null && $ && $.length > 0)
|
|
9872
|
-
return
|
|
9875
|
+
return Jy($, D, 600);
|
|
9873
9876
|
}, [$, D, R]), X = z(() => p && (R != null && R.columns.some((re) => re.sum !== void 0)) ? p - 30 : p, [p, R == null ? void 0 : R.columns]);
|
|
9874
9877
|
return R === null || !ee || ((de = ee == null ? void 0 : ee.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ i(ct, { style: { padding: "2rem" } }) : /* @__PURE__ */ U(An, { children: [
|
|
9875
9878
|
W,
|
|
@@ -10136,7 +10139,7 @@ const zc = (t) => {
|
|
|
10136
10139
|
getAllIds: ae
|
|
10137
10140
|
};
|
|
10138
10141
|
};
|
|
10139
|
-
function
|
|
10142
|
+
function Zy(t, e) {
|
|
10140
10143
|
var Pe;
|
|
10141
10144
|
const {
|
|
10142
10145
|
model: n,
|
|
@@ -10398,7 +10401,7 @@ function Qy(t, e) {
|
|
|
10398
10401
|
]), Ne = D || ve;
|
|
10399
10402
|
return Ne ? (console.error(Ne), /* @__PURE__ */ i(Lt, { className: "mt-10", message: Ne, type: "error", banner: !0 })) : /* @__PURE__ */ i("div", { style: l ? {} : { display: "none" }, children: p ? /* @__PURE__ */ i(ct, {}) : Re() });
|
|
10400
10403
|
}
|
|
10401
|
-
const Kc = Ht(
|
|
10404
|
+
const Kc = Ht(Zy), ev = Bt, tv = (t) => {
|
|
10402
10405
|
const {
|
|
10403
10406
|
treeViewFetching: e,
|
|
10404
10407
|
treeOoui: n,
|
|
@@ -10809,7 +10812,7 @@ const Kc = Ht(Qy), Zy = Bt, ev = (t) => {
|
|
|
10809
10812
|
nameSearch: ie,
|
|
10810
10813
|
fetchChildrenForRecord: gn
|
|
10811
10814
|
};
|
|
10812
|
-
},
|
|
10815
|
+
}, nv = ({
|
|
10813
10816
|
filterType: t,
|
|
10814
10817
|
formView: e,
|
|
10815
10818
|
treeView: n,
|
|
@@ -10951,7 +10954,7 @@ const Kc = Ht(Qy), Zy = Bt, ev = (t) => {
|
|
|
10951
10954
|
)
|
|
10952
10955
|
);
|
|
10953
10956
|
ds.displayName = "PaginatedTableComponent";
|
|
10954
|
-
const
|
|
10957
|
+
const rv = it(ds), sn = (t) => {
|
|
10955
10958
|
const e = K(t);
|
|
10956
10959
|
return ce(() => {
|
|
10957
10960
|
e.current = t;
|
|
@@ -10959,7 +10962,7 @@ const nv = it(ds), sn = (t) => {
|
|
|
10959
10962
|
var r;
|
|
10960
10963
|
return (r = e.current) == null ? void 0 : r.call(e, ...n);
|
|
10961
10964
|
}).current;
|
|
10962
|
-
},
|
|
10965
|
+
}, ov = ({
|
|
10963
10966
|
treeView: t,
|
|
10964
10967
|
currentModel: e,
|
|
10965
10968
|
parentContext: n
|
|
@@ -11006,8 +11009,8 @@ const nv = it(ds), sn = (t) => {
|
|
|
11006
11009
|
t
|
|
11007
11010
|
]
|
|
11008
11011
|
) };
|
|
11009
|
-
},
|
|
11010
|
-
function
|
|
11012
|
+
}, iv = 10, sv = -30;
|
|
11013
|
+
function av(t, e) {
|
|
11011
11014
|
const {
|
|
11012
11015
|
model: n,
|
|
11013
11016
|
formView: r,
|
|
@@ -11031,7 +11034,7 @@ function sv(t, e) {
|
|
|
11031
11034
|
context: l
|
|
11032
11035
|
}), I = Gi({
|
|
11033
11036
|
elementRef: v,
|
|
11034
|
-
offset: w != null && w.isExpandable ?
|
|
11037
|
+
offset: w != null && w.isExpandable ? sv : iv
|
|
11035
11038
|
}), D = h !== void 0 ? h : I, N = z(() => {
|
|
11036
11039
|
if (w)
|
|
11037
11040
|
return cn(w);
|
|
@@ -11086,7 +11089,7 @@ function sv(t, e) {
|
|
|
11086
11089
|
nameSearchFetchCompleted: ke,
|
|
11087
11090
|
nameSearch: Ue,
|
|
11088
11091
|
fetchChildrenForRecord: xe
|
|
11089
|
-
} =
|
|
11092
|
+
} = tv({
|
|
11090
11093
|
treeViewFetching: x,
|
|
11091
11094
|
treeOoui: N,
|
|
11092
11095
|
treeView: w,
|
|
@@ -11119,7 +11122,7 @@ function sv(t, e) {
|
|
|
11119
11122
|
}
|
|
11120
11123
|
)
|
|
11121
11124
|
}));
|
|
11122
|
-
}, [Se, V, Ue]), { handleExpandableRowDoubleClick: Ge } =
|
|
11125
|
+
}, [Se, V, Ue]), { handleExpandableRowDoubleClick: Ge } = ov({
|
|
11123
11126
|
treeView: w,
|
|
11124
11127
|
currentModel: n,
|
|
11125
11128
|
parentContext: l
|
|
@@ -11148,10 +11151,10 @@ function sv(t, e) {
|
|
|
11148
11151
|
...d ? {} : { display: "none" }
|
|
11149
11152
|
}),
|
|
11150
11153
|
[D, d]
|
|
11151
|
-
), Re = Ue !== void 0 && ke, Ne = Re && q !== void 0 && q !== null && q === Bt, Pe = z(() => typeof q != "number" || isNaN(q) || q < 0 ? (le == null ? void 0 : le.length) || 0 : q || 0, [q, le]), Be = z(() => (le == null ? void 0 : le.length) > 0 && (typeof q != "number" || isNaN(q) || q < 0) ? le == null ? void 0 : le.length : f ? Bt : ve ||
|
|
11154
|
+
), Re = Ue !== void 0 && ke, Ne = Re && q !== void 0 && q !== null && q === Bt, Pe = z(() => typeof q != "number" || isNaN(q) || q < 0 ? (le == null ? void 0 : le.length) || 0 : q || 0, [q, le]), Be = z(() => (le == null ? void 0 : le.length) > 0 && (typeof q != "number" || isNaN(q) || q < 0) ? le == null ? void 0 : le.length : f ? Bt : ve || ev, [le == null ? void 0 : le.length, q, f, ve]);
|
|
11152
11155
|
return /* @__PURE__ */ U(jn, { children: [
|
|
11153
11156
|
!$ && !p && /* @__PURE__ */ i(
|
|
11154
|
-
|
|
11157
|
+
nv,
|
|
11155
11158
|
{
|
|
11156
11159
|
filterType: u,
|
|
11157
11160
|
formView: F,
|
|
@@ -11224,7 +11227,7 @@ function sv(t, e) {
|
|
|
11224
11227
|
) })
|
|
11225
11228
|
] });
|
|
11226
11229
|
}
|
|
11227
|
-
const Jc = Ht(
|
|
11230
|
+
const Jc = Ht(av), { useToken: lv } = at, Xc = ({
|
|
11228
11231
|
model: t,
|
|
11229
11232
|
context: e,
|
|
11230
11233
|
viewRef: n,
|
|
@@ -11232,7 +11235,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11232
11235
|
setSearchValues: o,
|
|
11233
11236
|
setSearchVisible: s
|
|
11234
11237
|
}) => {
|
|
11235
|
-
const { t: a } = Ee(), { token: d } =
|
|
11238
|
+
const { t: a } = Ee(), { token: d } = lv(), { globalValues: c } = Jt(), l = zt(
|
|
11236
11239
|
Et.FEATURE_SAVED_SEARCHES
|
|
11237
11240
|
), {
|
|
11238
11241
|
currentSavedSearch: f,
|
|
@@ -11401,10 +11404,10 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11401
11404
|
subtitle: F,
|
|
11402
11405
|
savedSearchesEnabled: l
|
|
11403
11406
|
};
|
|
11404
|
-
},
|
|
11407
|
+
}, cv = {
|
|
11405
11408
|
height: "calc(100vh - 80px - 102px)",
|
|
11406
11409
|
overflow: "auto"
|
|
11407
|
-
}, Hn = "legacy",
|
|
11410
|
+
}, Hn = "legacy", dv = (t) => {
|
|
11408
11411
|
const {
|
|
11409
11412
|
visible: e,
|
|
11410
11413
|
viewRef: n,
|
|
@@ -11490,7 +11493,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11490
11493
|
onClearSavedSearch: k
|
|
11491
11494
|
}
|
|
11492
11495
|
) }),
|
|
11493
|
-
/* @__PURE__ */ U("div", { style:
|
|
11496
|
+
/* @__PURE__ */ U("div", { style: cv, children: [
|
|
11494
11497
|
y === "infinite" && /* @__PURE__ */ i(
|
|
11495
11498
|
cs,
|
|
11496
11499
|
{
|
|
@@ -11538,7 +11541,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11538
11541
|
] }) : null;
|
|
11539
11542
|
}, qt = Dd(
|
|
11540
11543
|
null
|
|
11541
|
-
),
|
|
11544
|
+
), uv = (t) => {
|
|
11542
11545
|
const {
|
|
11543
11546
|
children: e,
|
|
11544
11547
|
currentView: n,
|
|
@@ -11696,7 +11699,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11696
11699
|
children: e
|
|
11697
11700
|
}
|
|
11698
11701
|
);
|
|
11699
|
-
},
|
|
11702
|
+
}, fv = () => !!Ae(qt), Vt = () => {
|
|
11700
11703
|
const t = Ae(qt);
|
|
11701
11704
|
return t || {
|
|
11702
11705
|
title: "",
|
|
@@ -11812,7 +11815,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11812
11815
|
permissionsLoading: !1,
|
|
11813
11816
|
permissionsError: null
|
|
11814
11817
|
};
|
|
11815
|
-
},
|
|
11818
|
+
}, mv = (t, e) => {
|
|
11816
11819
|
const {
|
|
11817
11820
|
view_id: n,
|
|
11818
11821
|
model: r,
|
|
@@ -11856,7 +11859,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11856
11859
|
operator: v.operator
|
|
11857
11860
|
} : {};
|
|
11858
11861
|
return /* @__PURE__ */ i(
|
|
11859
|
-
|
|
11862
|
+
xm,
|
|
11860
11863
|
{
|
|
11861
11864
|
showPercent: v.showPercent,
|
|
11862
11865
|
showTotal: v.showTotal,
|
|
@@ -11878,7 +11881,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11878
11881
|
case "bar":
|
|
11879
11882
|
case "pie":
|
|
11880
11883
|
return /* @__PURE__ */ i(
|
|
11881
|
-
|
|
11884
|
+
Vm,
|
|
11882
11885
|
{
|
|
11883
11886
|
model: r,
|
|
11884
11887
|
context: o,
|
|
@@ -11892,7 +11895,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11892
11895
|
default:
|
|
11893
11896
|
return /* @__PURE__ */ i(Fe, { children: `Graph ${m.type} not implemented` });
|
|
11894
11897
|
}
|
|
11895
|
-
}, Yn = Ht(
|
|
11898
|
+
}, Yn = Ht(mv), pv = (t) => {
|
|
11896
11899
|
const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: s } = t, [a, d] = A(!1), [c, l] = A(), [f, u] = A(), [m] = Oe(
|
|
11897
11900
|
Y.getHandler().readForView
|
|
11898
11901
|
), p = T(async () => {
|
|
@@ -11916,10 +11919,10 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11916
11919
|
fetchData: p,
|
|
11917
11920
|
graphData: f
|
|
11918
11921
|
};
|
|
11919
|
-
},
|
|
11922
|
+
}, hv = (t, e) => {
|
|
11920
11923
|
const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: d } = t, c = Ae(
|
|
11921
11924
|
qt
|
|
11922
|
-
), { setGraphIsLoading: l = void 0 } = c || {}, { error: f, loading: u, graphData: m, fetchData: p } =
|
|
11925
|
+
), { setGraphIsLoading: l = void 0 } = c || {}, { error: f, loading: u, graphData: m, fetchData: p } = pv({
|
|
11923
11926
|
view_id: n,
|
|
11924
11927
|
model: r,
|
|
11925
11928
|
domain: s,
|
|
@@ -11987,7 +11990,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11987
11990
|
default:
|
|
11988
11991
|
return /* @__PURE__ */ i(Fe, { children: `Graph ${m.type} not implemented` });
|
|
11989
11992
|
}
|
|
11990
|
-
}, us = Ht(
|
|
11993
|
+
}, us = Ht(hv), { useToken: gv } = at, { Text: Sa } = Kt, Qc = (t) => {
|
|
11991
11994
|
const {
|
|
11992
11995
|
title: e,
|
|
11993
11996
|
children: n,
|
|
@@ -11996,7 +11999,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
11996
11999
|
parms: s,
|
|
11997
12000
|
tooltip: a,
|
|
11998
12001
|
card: d = !1
|
|
11999
|
-
} = t, { token: c } =
|
|
12002
|
+
} = t, { token: c } = gv(), l = Object.keys(s).length > 0;
|
|
12000
12003
|
return /* @__PURE__ */ U(
|
|
12001
12004
|
"div",
|
|
12002
12005
|
{
|
|
@@ -12065,7 +12068,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
12065
12068
|
]
|
|
12066
12069
|
}
|
|
12067
12070
|
);
|
|
12068
|
-
},
|
|
12071
|
+
}, yv = (t) => {
|
|
12069
12072
|
const [e, n] = Oe(
|
|
12070
12073
|
Y.getHandler().execute
|
|
12071
12074
|
), [r, o] = Oe(
|
|
@@ -12199,7 +12202,7 @@ const Jc = Ht(sv), { useToken: av } = at, Xc = ({
|
|
|
12199
12202
|
}
|
|
12200
12203
|
);
|
|
12201
12204
|
};
|
|
12202
|
-
function
|
|
12205
|
+
function vv(t) {
|
|
12203
12206
|
const {
|
|
12204
12207
|
action: e,
|
|
12205
12208
|
model: n,
|
|
@@ -12361,14 +12364,14 @@ function yv(t) {
|
|
|
12361
12364
|
] }));
|
|
12362
12365
|
return $ ? (console.error($), /* @__PURE__ */ i(Lt, { className: "mt-10", message: $, type: "error", banner: !0 })) : u ? /* @__PURE__ */ i(ct, { style: { padding: "2rem" } }) : le();
|
|
12363
12366
|
}
|
|
12364
|
-
const ed = it(
|
|
12367
|
+
const ed = it(vv), { useToken: bv } = at, wv = 3 * 1e3, Cv = (t) => {
|
|
12365
12368
|
const { ooui: e } = t, { refreshCounter: n } = Lr(), r = e.actionId !== void 0, o = e.actionField !== void 0;
|
|
12366
|
-
return /* @__PURE__ */ i(tt, { ooui: e, children: r || o ? /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(
|
|
12367
|
-
},
|
|
12369
|
+
return /* @__PURE__ */ i(tt, { ooui: e, children: r || o ? /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(Sv, { ooui: e }, n) }) : /* @__PURE__ */ i(xv, { ooui: e }, n) });
|
|
12370
|
+
}, xv = (t) => {
|
|
12368
12371
|
var x;
|
|
12369
|
-
const { token: e } =
|
|
12372
|
+
const { token: e } = bv(), { ooui: n, value: r } = t, { locale: o } = Ee(), { getContext: s } = Lr(), [a, d] = A(n.icon), [c, l] = A(n.color), [f, u] = A(null), [m, p] = A(!1), [g, h] = Oe(
|
|
12370
12373
|
Y.getHandler().parseCondition
|
|
12371
|
-
), { fetchReferenceValues: y } =
|
|
12374
|
+
), { fetchReferenceValues: y } = yv({
|
|
12372
12375
|
context: s == null ? void 0 : s()
|
|
12373
12376
|
}), b = Bn(
|
|
12374
12377
|
wn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
@@ -12478,8 +12481,8 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12478
12481
|
}
|
|
12479
12482
|
);
|
|
12480
12483
|
return n.card ? /* @__PURE__ */ i(Mr, { children: F }) : F;
|
|
12481
|
-
},
|
|
12482
|
-
const { ooui: e } = t, { actionId: n, height: r } = e, { getFieldValue: o, activeId: s } = Lr(), a = e.actionField && parseInt(o(e.actionField) || "0", 10) || n, { actionData: d, treeShortcut: c, loading: l, error: f, fetchData: u } =
|
|
12484
|
+
}, Sv = (t) => {
|
|
12485
|
+
const { ooui: e } = t, { actionId: n, height: r } = e, { getFieldValue: o, activeId: s } = Lr(), a = e.actionField && parseInt(o(e.actionField) || "0", 10) || n, { actionData: d, treeShortcut: c, loading: l, error: f, fetchData: u } = bm(a), { openShortcut: m } = pr();
|
|
12483
12486
|
if (Xe(() => {
|
|
12484
12487
|
!e || !a || u();
|
|
12485
12488
|
}, [e, s, a]), f && f.message !== "active_id_not_found")
|
|
@@ -12498,14 +12501,14 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12498
12501
|
children: [
|
|
12499
12502
|
l && /* @__PURE__ */ i(Vr, {}),
|
|
12500
12503
|
!l && /* @__PURE__ */ i(Fe, { children: s ? (g == null ? void 0 : g.id) && /* @__PURE__ */ i(
|
|
12501
|
-
|
|
12504
|
+
Tv,
|
|
12502
12505
|
{
|
|
12503
12506
|
fixedHeight: r,
|
|
12504
12507
|
actionData: d,
|
|
12505
|
-
autoRefresh: e.autoRefresh ?
|
|
12508
|
+
autoRefresh: e.autoRefresh ? wv : void 0
|
|
12506
12509
|
}
|
|
12507
12510
|
) : /* @__PURE__ */ i(
|
|
12508
|
-
|
|
12511
|
+
_v,
|
|
12509
12512
|
{
|
|
12510
12513
|
image: to.PRESENTED_IMAGE_SIMPLE,
|
|
12511
12514
|
imageStyle: { height: 15 }
|
|
@@ -12514,7 +12517,7 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12514
12517
|
]
|
|
12515
12518
|
}
|
|
12516
12519
|
);
|
|
12517
|
-
},
|
|
12520
|
+
}, Tv = ({
|
|
12518
12521
|
actionData: t,
|
|
12519
12522
|
fixedHeight: e,
|
|
12520
12523
|
autoRefresh: n
|
|
@@ -12590,15 +12593,15 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12590
12593
|
error: new Error("Unsupported view type: " + r.type)
|
|
12591
12594
|
}
|
|
12592
12595
|
);
|
|
12593
|
-
},
|
|
12596
|
+
}, _v = Ft(to)`
|
|
12594
12597
|
&.ant-empty.ant-empty-normal {
|
|
12595
12598
|
margin: 0;
|
|
12596
12599
|
margin-top: 5px;
|
|
12597
12600
|
}
|
|
12598
|
-
`,
|
|
12601
|
+
`, Iv = (t) => {
|
|
12599
12602
|
const { ooui: e } = t;
|
|
12600
|
-
return /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(
|
|
12601
|
-
},
|
|
12603
|
+
return /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(Av, { ooui: e }) });
|
|
12604
|
+
}, Av = (t) => {
|
|
12602
12605
|
const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, s = o.filter((N) => N.operation !== "pendingRemove").map((N) => N.id), [a, d] = A([]), [c, l] = A(), [f, u] = A(!1), { relation: m, context: p, readOnly: g, field: h } = n, y = Ae(dt), { getContext: b } = y || {}, [v, C] = Oe(
|
|
12603
12606
|
Y.getHandler().evalDomain
|
|
12604
12607
|
), [S, w] = Oe(
|
|
@@ -12685,10 +12688,10 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12685
12688
|
filterOption: (N, O) => O.label.toLowerCase().includes(N.toString().toLowerCase())
|
|
12686
12689
|
}
|
|
12687
12690
|
) }) });
|
|
12688
|
-
}, Av = (t) => {
|
|
12689
|
-
const { ooui: e } = t;
|
|
12690
|
-
return /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(Fv, { ...t, ooui: e }) }) });
|
|
12691
12691
|
}, Fv = (t) => {
|
|
12692
|
+
const { ooui: e } = t;
|
|
12693
|
+
return /* @__PURE__ */ i(An, { children: /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(Rv, { ...t, ooui: e }) }) });
|
|
12694
|
+
}, Rv = (t) => {
|
|
12692
12695
|
var u, m, p;
|
|
12693
12696
|
const { value: e, ooui: n } = t, r = Ae(
|
|
12694
12697
|
Cn
|
|
@@ -12734,7 +12737,7 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12734
12737
|
width: "100%"
|
|
12735
12738
|
},
|
|
12736
12739
|
children: s.map((g, h) => /* @__PURE__ */ i(
|
|
12737
|
-
|
|
12740
|
+
Ev,
|
|
12738
12741
|
{
|
|
12739
12742
|
button: g,
|
|
12740
12743
|
processAction: r.processAction,
|
|
@@ -12756,7 +12759,7 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12756
12759
|
children: d ? /* @__PURE__ */ i(nl, { label: n.label, icon: a, children: f }) : f
|
|
12757
12760
|
}
|
|
12758
12761
|
);
|
|
12759
|
-
},
|
|
12762
|
+
}, Ev = ({
|
|
12760
12763
|
button: t,
|
|
12761
12764
|
processAction: e,
|
|
12762
12765
|
formContext: n,
|
|
@@ -12831,13 +12834,13 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12831
12834
|
children: t.name
|
|
12832
12835
|
}
|
|
12833
12836
|
);
|
|
12834
|
-
},
|
|
12837
|
+
}, Ov = 200, kv = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(Dv, { ooui: t.ooui, value: t.value }) }), Dv = (t) => {
|
|
12835
12838
|
const { value: e, ooui: n } = t;
|
|
12836
12839
|
if (!e)
|
|
12837
12840
|
return null;
|
|
12838
12841
|
const r = Array.isArray(e) ? String(e[0]) : String(e), o = Array.isArray(e) ? e[1] : e, s = {
|
|
12839
12842
|
value: r,
|
|
12840
|
-
size: n.width ||
|
|
12843
|
+
size: n.width || Ov,
|
|
12841
12844
|
bordered: n.border !== !1
|
|
12842
12845
|
};
|
|
12843
12846
|
return /* @__PURE__ */ U(ht, { direction: "vertical", align: "center", children: [
|
|
@@ -12854,7 +12857,7 @@ const ed = it(yv), { useToken: vv } = at, bv = 3 * 1e3, wv = (t) => {
|
|
|
12854
12857
|
}
|
|
12855
12858
|
) });
|
|
12856
12859
|
};
|
|
12857
|
-
function
|
|
12860
|
+
function Mv(t) {
|
|
12858
12861
|
const { ooui: e, responsiveBehaviour: n } = t, r = Mt(e.icon || ""), { t: o } = Ee(), s = e.title ? /* @__PURE__ */ U("span", { children: [
|
|
12859
12862
|
r && /* @__PURE__ */ i("span", { style: { marginRight: "8px" }, children: an.createElement(r) }),
|
|
12860
12863
|
e.title
|
|
@@ -12877,14 +12880,14 @@ function Dv(t) {
|
|
|
12877
12880
|
}
|
|
12878
12881
|
);
|
|
12879
12882
|
}
|
|
12880
|
-
const
|
|
12883
|
+
const Nv = (t) => {
|
|
12881
12884
|
switch (t) {
|
|
12882
12885
|
case "form":
|
|
12883
12886
|
return yr;
|
|
12884
12887
|
case "tree":
|
|
12885
12888
|
return qr;
|
|
12886
12889
|
case "notebook":
|
|
12887
|
-
return
|
|
12890
|
+
return Rb;
|
|
12888
12891
|
case "group":
|
|
12889
12892
|
return wd;
|
|
12890
12893
|
case "label":
|
|
@@ -12892,7 +12895,7 @@ const Mv = (t) => {
|
|
|
12892
12895
|
case "char":
|
|
12893
12896
|
return vl;
|
|
12894
12897
|
case "text":
|
|
12895
|
-
return
|
|
12898
|
+
return Ob;
|
|
12896
12899
|
case "button":
|
|
12897
12900
|
return Li;
|
|
12898
12901
|
case "buttonGroup":
|
|
@@ -12900,7 +12903,7 @@ const Mv = (t) => {
|
|
|
12900
12903
|
case "selection":
|
|
12901
12904
|
return xl;
|
|
12902
12905
|
case "many2one":
|
|
12903
|
-
return
|
|
12906
|
+
return eb;
|
|
12904
12907
|
case "boolean":
|
|
12905
12908
|
return Lf;
|
|
12906
12909
|
case "integer":
|
|
@@ -12908,88 +12911,88 @@ const Mv = (t) => {
|
|
|
12908
12911
|
case "float":
|
|
12909
12912
|
return Qi;
|
|
12910
12913
|
case "progressbar":
|
|
12911
|
-
return
|
|
12914
|
+
return hp;
|
|
12912
12915
|
case "date":
|
|
12913
|
-
return Ub;
|
|
12914
|
-
case "datetime":
|
|
12915
12916
|
return Wb;
|
|
12916
|
-
case "
|
|
12917
|
+
case "datetime":
|
|
12917
12918
|
return qb;
|
|
12919
|
+
case "time":
|
|
12920
|
+
return Yb;
|
|
12918
12921
|
case "one2many":
|
|
12919
12922
|
case "one2many_list":
|
|
12920
12923
|
case "many2many":
|
|
12921
|
-
return
|
|
12924
|
+
return xb;
|
|
12922
12925
|
case "separator":
|
|
12923
|
-
return
|
|
12926
|
+
return Db;
|
|
12924
12927
|
case "reference":
|
|
12925
|
-
return
|
|
12928
|
+
return zb;
|
|
12926
12929
|
case "binary":
|
|
12927
|
-
return
|
|
12930
|
+
return Xb;
|
|
12928
12931
|
case "image":
|
|
12929
12932
|
return Wf;
|
|
12930
12933
|
case "icon":
|
|
12931
12934
|
return jf;
|
|
12932
12935
|
case "url":
|
|
12933
|
-
return sw;
|
|
12934
|
-
case "email":
|
|
12935
12936
|
return aw;
|
|
12937
|
+
case "email":
|
|
12938
|
+
return lw;
|
|
12936
12939
|
case "float_time":
|
|
12937
|
-
return
|
|
12940
|
+
return _b;
|
|
12938
12941
|
case "fiber_grid":
|
|
12939
12942
|
return Yf;
|
|
12940
12943
|
case "timeline":
|
|
12941
|
-
return
|
|
12944
|
+
return am;
|
|
12942
12945
|
case "indicator":
|
|
12943
|
-
return
|
|
12946
|
+
return Cv;
|
|
12944
12947
|
case "tags":
|
|
12945
|
-
return
|
|
12948
|
+
return Iv;
|
|
12946
12949
|
case "tag":
|
|
12947
|
-
return
|
|
12950
|
+
return _p;
|
|
12948
12951
|
case "multicheckbox":
|
|
12949
|
-
return
|
|
12952
|
+
return b0;
|
|
12950
12953
|
case "markdown":
|
|
12951
|
-
return
|
|
12954
|
+
return hw;
|
|
12952
12955
|
case "radio":
|
|
12953
|
-
return
|
|
12956
|
+
return C0;
|
|
12954
12957
|
case "switch":
|
|
12955
|
-
return
|
|
12958
|
+
return S0;
|
|
12956
12959
|
case "steps":
|
|
12957
|
-
return
|
|
12960
|
+
return _0;
|
|
12958
12961
|
case "arrow_steps":
|
|
12959
|
-
return
|
|
12962
|
+
return F0;
|
|
12960
12963
|
case "codeeditor":
|
|
12961
12964
|
case "json":
|
|
12962
|
-
return
|
|
12965
|
+
return R0;
|
|
12963
12966
|
case "comments_timeline":
|
|
12964
|
-
return $0;
|
|
12965
|
-
case "html_preview":
|
|
12966
12967
|
return P0;
|
|
12967
|
-
case "
|
|
12968
|
+
case "html_preview":
|
|
12968
12969
|
return L0;
|
|
12970
|
+
case "alert":
|
|
12971
|
+
return V0;
|
|
12969
12972
|
case "spinner":
|
|
12970
12973
|
return fo;
|
|
12971
12974
|
case "carousel":
|
|
12972
|
-
return
|
|
12975
|
+
return j0;
|
|
12973
12976
|
case "colorPicker":
|
|
12974
|
-
return
|
|
12977
|
+
return W0;
|
|
12975
12978
|
case "action_buttons":
|
|
12976
|
-
return
|
|
12979
|
+
return Fv;
|
|
12977
12980
|
case "qrcode":
|
|
12978
|
-
return
|
|
12981
|
+
return kv;
|
|
12979
12982
|
case "card":
|
|
12980
|
-
return
|
|
12983
|
+
return Mv;
|
|
12981
12984
|
default:
|
|
12982
12985
|
return;
|
|
12983
12986
|
}
|
|
12984
|
-
},
|
|
12985
|
-
const { ooui: e } = t, { type: n } = e, r =
|
|
12987
|
+
}, $v = (t) => {
|
|
12988
|
+
const { ooui: e } = t, { type: n } = e, r = Nv(n);
|
|
12986
12989
|
return r ? Md(r, t) : null;
|
|
12987
|
-
},
|
|
12990
|
+
}, Pv = ({
|
|
12988
12991
|
item: t,
|
|
12989
12992
|
responsiveBehaviour: e
|
|
12990
12993
|
}) => ({
|
|
12991
12994
|
gridColumnStart: "span " + (e ? 1 : t.colspan)
|
|
12992
|
-
}),
|
|
12995
|
+
}), Lv = ({
|
|
12993
12996
|
row: t,
|
|
12994
12997
|
mustFillWithEmpties: e,
|
|
12995
12998
|
numberOfColumns: n
|
|
@@ -13008,10 +13011,10 @@ const Mv = (t) => {
|
|
|
13008
13011
|
r.push(new cr({ string: "" }));
|
|
13009
13012
|
}
|
|
13010
13013
|
}), r;
|
|
13011
|
-
},
|
|
13014
|
+
}, Vv = ({
|
|
13012
13015
|
row: t,
|
|
13013
13016
|
numberOfColumns: e
|
|
13014
|
-
}) => t.map((n) => (n._mustExpand && (n.colspan = e), n)),
|
|
13017
|
+
}) => t.map((n) => (n._mustExpand && (n.colspan = e), n)), Bv = (t, e) => {
|
|
13015
13018
|
const n = t.map((r) => r instanceof cr && r.fieldForLabel || r instanceof zd ? "auto" : "1fr");
|
|
13016
13019
|
if (n.length < e) {
|
|
13017
13020
|
const r = e - n.length;
|
|
@@ -13019,25 +13022,25 @@ const Mv = (t) => {
|
|
|
13019
13022
|
n.push("1fr");
|
|
13020
13023
|
}
|
|
13021
13024
|
return n.join(" ");
|
|
13022
|
-
},
|
|
13025
|
+
}, Hv = (t, e) => {
|
|
13023
13026
|
const n = e ? "1fr" : "auto", r = "auto";
|
|
13024
13027
|
let o = "";
|
|
13025
13028
|
for (let s = 0; s < t; s++)
|
|
13026
13029
|
o += s % 2 ? n : r, s + 1 < t && (o += " ");
|
|
13027
13030
|
return o;
|
|
13028
|
-
},
|
|
13031
|
+
}, jv = (t) => t.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), fs = (t) => {
|
|
13029
13032
|
const { container: e, responsiveBehaviour: n } = t, { rows: r } = e;
|
|
13030
13033
|
let { columns: o } = e;
|
|
13031
|
-
const s =
|
|
13034
|
+
const s = jv(r);
|
|
13032
13035
|
s < o && (o = s);
|
|
13033
13036
|
let a = !1, d = [];
|
|
13034
13037
|
const c = r.map((u, m) => {
|
|
13035
|
-
const p = u.filter((y) => !y.invisible), g =
|
|
13038
|
+
const p = u.filter((y) => !y.invisible), g = Vv({
|
|
13036
13039
|
row: p,
|
|
13037
13040
|
numberOfColumns: o
|
|
13038
13041
|
});
|
|
13039
13042
|
let h = g;
|
|
13040
|
-
return (m === 0 || !(u.length === 1 && u.some((y) => y.type === "group"))) && (h =
|
|
13043
|
+
return (m === 0 || !(u.length === 1 && u.some((y) => y.type === "group"))) && (h = Lv({
|
|
13041
13044
|
row: g,
|
|
13042
13045
|
numberOfColumns: o,
|
|
13043
13046
|
mustFillWithEmpties: n
|
|
@@ -13045,17 +13048,17 @@ const Mv = (t) => {
|
|
|
13045
13048
|
"div",
|
|
13046
13049
|
{
|
|
13047
13050
|
style: {
|
|
13048
|
-
|
|
13051
|
+
...Pv({ item: y, responsiveBehaviour: n }),
|
|
13049
13052
|
minWidth: 0
|
|
13050
13053
|
},
|
|
13051
|
-
children:
|
|
13054
|
+
children: $v({
|
|
13052
13055
|
ooui: y,
|
|
13053
13056
|
responsiveBehaviour: n
|
|
13054
13057
|
})
|
|
13055
13058
|
},
|
|
13056
13059
|
y.key
|
|
13057
13060
|
)));
|
|
13058
|
-
}), l = r.length === 1 ?
|
|
13061
|
+
}), l = r.length === 1 ? Bv(d, o) : Hv(o, a);
|
|
13059
13062
|
return /* @__PURE__ */ i("div", { style: {
|
|
13060
13063
|
display: "grid",
|
|
13061
13064
|
gridTemplateColumns: n ? "auto" : l,
|
|
@@ -13063,7 +13066,7 @@ const Mv = (t) => {
|
|
|
13063
13066
|
minHeight: 0,
|
|
13064
13067
|
minWidth: 0
|
|
13065
13068
|
}, children: c });
|
|
13066
|
-
}, td = an.createContext(null),
|
|
13069
|
+
}, td = an.createContext(null), Uv = (t) => {
|
|
13067
13070
|
const { children: e, setTitle: n } = t;
|
|
13068
13071
|
return /* @__PURE__ */ i(
|
|
13069
13072
|
td.Provider,
|
|
@@ -13074,12 +13077,12 @@ const Mv = (t) => {
|
|
|
13074
13077
|
children: e
|
|
13075
13078
|
}
|
|
13076
13079
|
);
|
|
13077
|
-
},
|
|
13080
|
+
}, Wv = (t, e) => {
|
|
13078
13081
|
const n = {};
|
|
13079
13082
|
return Object.keys(t).forEach((r) => {
|
|
13080
13083
|
n[r] = t[r], e != null && e[r] && (n[r].context = e[r]);
|
|
13081
13084
|
}), n;
|
|
13082
|
-
},
|
|
13085
|
+
}, qv = 3 * 1e3, Yv = (t) => {
|
|
13083
13086
|
const {
|
|
13084
13087
|
model: e,
|
|
13085
13088
|
id: n,
|
|
@@ -13118,7 +13121,7 @@ const Mv = (t) => {
|
|
|
13118
13121
|
r,
|
|
13119
13122
|
a
|
|
13120
13123
|
]);
|
|
13121
|
-
Xe(() => (n && n > 0 && (o == null ? void 0 : o.length) && l && (g(), c.current = setInterval(g,
|
|
13124
|
+
Xe(() => (n && n > 0 && (o == null ? void 0 : o.length) && l && (g(), c.current = setInterval(g, qv)), () => {
|
|
13122
13125
|
m(), c.current && (clearInterval(c.current), c.current = null);
|
|
13123
13126
|
}), [
|
|
13124
13127
|
o,
|
|
@@ -13135,7 +13138,7 @@ const Mv = (t) => {
|
|
|
13135
13138
|
f(!0);
|
|
13136
13139
|
}, []);
|
|
13137
13140
|
return { pause: h, resume: y };
|
|
13138
|
-
},
|
|
13141
|
+
}, Gv = () => {
|
|
13139
13142
|
const [t, e] = A({}), n = T(
|
|
13140
13143
|
(c, l, f = "error") => {
|
|
13141
13144
|
e((u) => ({ ...u, [c]: { message: l, type: f } }));
|
|
@@ -13175,8 +13178,8 @@ const Mv = (t) => {
|
|
|
13175
13178
|
clearAllFieldMessages: a,
|
|
13176
13179
|
setFieldMessagesArray: d
|
|
13177
13180
|
};
|
|
13178
|
-
},
|
|
13179
|
-
function
|
|
13181
|
+
}, zv = 800;
|
|
13182
|
+
function Kv(t, e) {
|
|
13180
13183
|
const {
|
|
13181
13184
|
model: n,
|
|
13182
13185
|
id: r,
|
|
@@ -13202,7 +13205,7 @@ function zv(t, e) {
|
|
|
13202
13205
|
forcedValues: x = {},
|
|
13203
13206
|
parentWidth: I,
|
|
13204
13207
|
onMustRefreshParent: D
|
|
13205
|
-
} = t, { t: N } = Ee(), [O, k] = A(!1), [R, E] = A(), [_, L] = A(), [P] = At.useForm(), [B, G] = A(), [V, $] = A(), M = Ae(td), [j, H] = A(), [W, J] = A(!1), [ee, X] = A(0), de = K(), re = K({}), pe = K(null), Z = K({}), te = K({}), se = K(!1), q = K(!1), fe = K(!1), me = (I !== void 0 ? I : j) <
|
|
13208
|
+
} = t, { t: N } = Ee(), [O, k] = A(!1), [R, E] = A(), [_, L] = A(), [P] = At.useForm(), [B, G] = A(), [V, $] = A(), M = Ae(td), [j, H] = A(), [W, J] = A(!1), [ee, X] = A(0), de = K(), re = K({}), pe = K(null), Z = K({}), te = K({}), se = K(!1), q = K(!1), fe = K(!1), me = (I !== void 0 ? I : j) < zv, ae = Ae(dt), { activeId: ie, getPlainValues: Ie } = ae || {}, Me = K(!1), $e = Ae(
|
|
13206
13209
|
qt
|
|
13207
13210
|
), {
|
|
13208
13211
|
setFormIsSaving: ve = void 0,
|
|
@@ -13229,7 +13232,7 @@ function zv(t, e) {
|
|
|
13229
13232
|
clearFieldMessage: he,
|
|
13230
13233
|
clearAllFieldMessages: Re,
|
|
13231
13234
|
setFieldMessagesArray: Ne
|
|
13232
|
-
} =
|
|
13235
|
+
} = Gv();
|
|
13233
13236
|
Yt(e, () => ({
|
|
13234
13237
|
submitForm: Sn,
|
|
13235
13238
|
getFields: Ct,
|
|
@@ -13470,7 +13473,7 @@ function zv(t, e) {
|
|
|
13470
13473
|
if (De = (await Y.getHandler().readObjects({
|
|
13471
13474
|
model: n,
|
|
13472
13475
|
ids: [we()],
|
|
13473
|
-
fields:
|
|
13476
|
+
fields: Wv(ue, ze == null ? void 0 : ze.contextForFields),
|
|
13474
13477
|
context: v
|
|
13475
13478
|
}))[0], b)
|
|
13476
13479
|
return { values: De, defaultGetCalled: He };
|
|
@@ -13582,7 +13585,7 @@ function zv(t, e) {
|
|
|
13582
13585
|
const ze = new qa(ue);
|
|
13583
13586
|
return ze.parse(be, {
|
|
13584
13587
|
readOnly: u || He,
|
|
13585
|
-
values:
|
|
13588
|
+
values: Xf(
|
|
13586
13589
|
{
|
|
13587
13590
|
...De,
|
|
13588
13591
|
...Qt()
|
|
@@ -13619,7 +13622,7 @@ function zv(t, e) {
|
|
|
13619
13622
|
target: ot(V),
|
|
13620
13623
|
fields: V
|
|
13621
13624
|
}), De = Object.keys(be);
|
|
13622
|
-
if (De.length !== 0 && !(
|
|
13625
|
+
if (De.length !== 0 && !(tm({
|
|
13623
13626
|
changedFields: De,
|
|
13624
13627
|
formOoui: _,
|
|
13625
13628
|
types: [
|
|
@@ -13658,7 +13661,7 @@ function zv(t, e) {
|
|
|
13658
13661
|
});
|
|
13659
13662
|
return;
|
|
13660
13663
|
}
|
|
13661
|
-
const De =
|
|
13664
|
+
const De = rm({
|
|
13662
13665
|
values: {
|
|
13663
13666
|
...ot(V),
|
|
13664
13667
|
context: {
|
|
@@ -13679,7 +13682,7 @@ function zv(t, e) {
|
|
|
13679
13682
|
const ze = {
|
|
13680
13683
|
...ot(V),
|
|
13681
13684
|
...He.value
|
|
13682
|
-
}, It =
|
|
13685
|
+
}, It = Qf({
|
|
13683
13686
|
values: ze,
|
|
13684
13687
|
fields: V
|
|
13685
13688
|
});
|
|
@@ -13711,7 +13714,7 @@ function zv(t, e) {
|
|
|
13711
13714
|
}));
|
|
13712
13715
|
}
|
|
13713
13716
|
if (He.domain && Object.keys(He.domain).length > 0) {
|
|
13714
|
-
const ze =
|
|
13717
|
+
const ze = nm({
|
|
13715
13718
|
fieldsDomain: He.domain,
|
|
13716
13719
|
fields: V
|
|
13717
13720
|
});
|
|
@@ -13738,9 +13741,9 @@ function zv(t, e) {
|
|
|
13738
13741
|
});
|
|
13739
13742
|
if (typeof De == "object" && De !== null && Object.keys(De).length === 0 && b)
|
|
13740
13743
|
Pe == null || Pe(we(), wt(), mt());
|
|
13741
|
-
else if (De.type && De.type ===
|
|
13744
|
+
else if (De.type && De.type === hm)
|
|
13742
13745
|
Pe == null || Pe(we(), wt(), mt());
|
|
13743
|
-
else if (De.type && De.type ===
|
|
13746
|
+
else if (De.type && De.type === vm)
|
|
13744
13747
|
We == null || We(De);
|
|
13745
13748
|
else if (De.type) {
|
|
13746
13749
|
let He = {};
|
|
@@ -13768,7 +13771,7 @@ function zv(t, e) {
|
|
|
13768
13771
|
context: be
|
|
13769
13772
|
}) {
|
|
13770
13773
|
const De = (await Y.getHandler().readObjects({
|
|
13771
|
-
model:
|
|
13774
|
+
model: ym,
|
|
13772
13775
|
ids: [parseInt(ue)],
|
|
13773
13776
|
context: v
|
|
13774
13777
|
}))[0];
|
|
@@ -13820,7 +13823,7 @@ function zv(t, e) {
|
|
|
13820
13823
|
},
|
|
13821
13824
|
[B, Ot, V, ot, vn]
|
|
13822
13825
|
);
|
|
13823
|
-
|
|
13826
|
+
Yv({
|
|
13824
13827
|
model: n,
|
|
13825
13828
|
id: ft,
|
|
13826
13829
|
context: v,
|
|
@@ -13957,7 +13960,7 @@ function zv(t, e) {
|
|
|
13957
13960
|
}
|
|
13958
13961
|
) : null;
|
|
13959
13962
|
}
|
|
13960
|
-
const yr = Ht(
|
|
13963
|
+
const yr = Ht(Kv), nd = (t) => {
|
|
13961
13964
|
const { visible: e, initialName: n, onSave: r, onCancel: o } = t, { t: s } = Ee(), [a, d] = A(n), [c, l] = A(!1);
|
|
13962
13965
|
ce(() => {
|
|
13963
13966
|
d(n);
|
|
@@ -14010,7 +14013,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14010
14013
|
) }) })
|
|
14011
14014
|
}
|
|
14012
14015
|
);
|
|
14013
|
-
},
|
|
14016
|
+
}, Jv = (t) => {
|
|
14014
14017
|
const {
|
|
14015
14018
|
isFavourite: e,
|
|
14016
14019
|
currentShortcutId: n,
|
|
@@ -14103,7 +14106,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14103
14106
|
handleSaveFavourite: I,
|
|
14104
14107
|
handleCancelNameModal: D,
|
|
14105
14108
|
initialName: N
|
|
14106
|
-
} =
|
|
14109
|
+
} = Jv({
|
|
14107
14110
|
isFavourite: p,
|
|
14108
14111
|
currentShortcutId: h,
|
|
14109
14112
|
defaultName: u,
|
|
@@ -14152,7 +14155,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14152
14155
|
] });
|
|
14153
14156
|
}
|
|
14154
14157
|
const E = f * 0.95;
|
|
14155
|
-
return /* @__PURE__ */ U(
|
|
14158
|
+
return /* @__PURE__ */ U(Uv, { setTitle: m, children: [
|
|
14156
14159
|
/* @__PURE__ */ i(
|
|
14157
14160
|
Pt,
|
|
14158
14161
|
{
|
|
@@ -14312,7 +14315,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14312
14315
|
}
|
|
14313
14316
|
)
|
|
14314
14317
|
] });
|
|
14315
|
-
},
|
|
14318
|
+
}, Xv = () => {
|
|
14316
14319
|
const [t, e] = Oe(
|
|
14317
14320
|
Y.getHandler().checkPermission
|
|
14318
14321
|
);
|
|
@@ -14344,7 +14347,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14344
14347
|
permissions: e,
|
|
14345
14348
|
enabled: n = !0
|
|
14346
14349
|
}) => {
|
|
14347
|
-
const [r, o] = A(null), [s, a] = A(!0), [d, c] = A(null), l = K(!1), { checkPermissions: f, cancelRequest: u } =
|
|
14350
|
+
const [r, o] = A(null), [s, a] = A(!0), [d, c] = A(null), l = K(!1), { checkPermissions: f, cancelRequest: u } = Xv();
|
|
14348
14351
|
return Xe(() => !n || !t || !e.length ? void 0 : ((async () => {
|
|
14349
14352
|
if (!l.current) {
|
|
14350
14353
|
l.current = !0, a(!0), c(null);
|
|
@@ -14368,7 +14371,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14368
14371
|
}),
|
|
14369
14372
|
[r, s, d]
|
|
14370
14373
|
);
|
|
14371
|
-
}, { defaultAlgorithm:
|
|
14374
|
+
}, { defaultAlgorithm: Qv, defaultSeed: Zv } = at, rd = Qv(Zv), eb = (t) => {
|
|
14372
14375
|
const { ooui: e } = t, { required: n } = e;
|
|
14373
14376
|
return /* @__PURE__ */ i(tt, { required: n, type: "array", validator: async (o, s) => {
|
|
14374
14377
|
if (!s)
|
|
@@ -14477,7 +14480,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14477
14480
|
async function de(q) {
|
|
14478
14481
|
q.keyCode === 13 ? (q.preventDefault(), q.stopPropagation(), await W()) : q.code === "Backspace" && $ !== void 0 && (q.preventDefault(), q.stopPropagation(), j([void 0, ""]));
|
|
14479
14482
|
}
|
|
14480
|
-
const re = o && !a ?
|
|
14483
|
+
const re = o && !a ? tb : St, pe = Bn(
|
|
14481
14484
|
wn.FEATURE_MANY2ONE_DISABLE_FOLDER
|
|
14482
14485
|
), Z = Bn(
|
|
14483
14486
|
wn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
@@ -14571,11 +14574,11 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14571
14574
|
}
|
|
14572
14575
|
)
|
|
14573
14576
|
] });
|
|
14574
|
-
},
|
|
14577
|
+
}, tb = Ft(St)`
|
|
14575
14578
|
.ant-input {
|
|
14576
14579
|
background-color: ${rd.colorPrimaryBg};
|
|
14577
14580
|
}
|
|
14578
|
-
`,
|
|
14581
|
+
`, nb = ({
|
|
14579
14582
|
title: t,
|
|
14580
14583
|
content: e,
|
|
14581
14584
|
onOk: n,
|
|
@@ -14622,7 +14625,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14622
14625
|
const n = rl(e);
|
|
14623
14626
|
return n.render(
|
|
14624
14627
|
/* @__PURE__ */ i(
|
|
14625
|
-
|
|
14628
|
+
nb,
|
|
14626
14629
|
{
|
|
14627
14630
|
...t,
|
|
14628
14631
|
onOk: async () => {
|
|
@@ -14791,7 +14794,7 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14791
14794
|
}) => {
|
|
14792
14795
|
const e = await (t == null ? void 0 : t());
|
|
14793
14796
|
return e != null && e.succeed ? { succeed: !0, currentId: e.id } : { succeed: !1, currentId: void 0 };
|
|
14794
|
-
},
|
|
14797
|
+
}, rb = ({
|
|
14795
14798
|
currentId: t,
|
|
14796
14799
|
currentModel: e,
|
|
14797
14800
|
onItemDuplicated: n,
|
|
@@ -14824,8 +14827,8 @@ const yr = Ht(zv), nd = (t) => {
|
|
|
14824
14827
|
duplicatingItem: o,
|
|
14825
14828
|
duplicate: d
|
|
14826
14829
|
};
|
|
14827
|
-
}, { useToken:
|
|
14828
|
-
function
|
|
14830
|
+
}, { useToken: ob } = at;
|
|
14831
|
+
function ib(t) {
|
|
14829
14832
|
var ee, X, de, re;
|
|
14830
14833
|
const {
|
|
14831
14834
|
title: e,
|
|
@@ -14850,7 +14853,7 @@ function ob(t) {
|
|
|
14850
14853
|
formRef: S,
|
|
14851
14854
|
onRefreshParentValues: w,
|
|
14852
14855
|
currentId: F
|
|
14853
|
-
} = t, { token: x } =
|
|
14856
|
+
} = t, { token: x } = ob(), { t: I } = Ee(), { activeModel: D } = Lr(), { permissions: N } = mo({
|
|
14854
14857
|
model: o,
|
|
14855
14858
|
permissions: ["create", "write", "unlink"],
|
|
14856
14859
|
enabled: !0
|
|
@@ -14858,7 +14861,7 @@ function ob(t) {
|
|
|
14858
14861
|
model: D,
|
|
14859
14862
|
permissions: ["write"],
|
|
14860
14863
|
enabled: !!D
|
|
14861
|
-
}), k = (N == null ? void 0 : N.create) ?? !1, R = (N == null ? void 0 : N.write) ?? !1, E = (N == null ? void 0 : N.unlink) ?? !1, _ = (O == null ? void 0 : O.write) ?? !1, { duplicatingItem: L, duplicate: P } =
|
|
14864
|
+
}), k = (N == null ? void 0 : N.create) ?? !1, R = (N == null ? void 0 : N.write) ?? !1, E = (N == null ? void 0 : N.unlink) ?? !1, _ = (O == null ? void 0 : O.write) ?? !1, { duplicatingItem: L, duplicate: P } = rb({
|
|
14862
14865
|
currentId: a === "form" ? F : parseInt(g[0]),
|
|
14863
14866
|
currentModel: o,
|
|
14864
14867
|
onItemDuplicated: () => {
|
|
@@ -15097,19 +15100,19 @@ const fd = it(
|
|
|
15097
15100
|
}
|
|
15098
15101
|
);
|
|
15099
15102
|
fd.displayName = "DeleteButton";
|
|
15100
|
-
const ms = it(
|
|
15103
|
+
const ms = it(ib), sb = {
|
|
15101
15104
|
form: qa,
|
|
15102
15105
|
tree: Ba,
|
|
15103
15106
|
graph: Yn
|
|
15104
15107
|
};
|
|
15105
|
-
function
|
|
15108
|
+
function ab(t) {
|
|
15106
15109
|
const e = t.map((r) => r.id);
|
|
15107
15110
|
return t.filter((r, o) => {
|
|
15108
15111
|
const { id: s } = r;
|
|
15109
15112
|
return !e.includes(s, o + 1);
|
|
15110
15113
|
});
|
|
15111
15114
|
}
|
|
15112
|
-
const
|
|
15115
|
+
const lb = (t) => {
|
|
15113
15116
|
var Ge, Te, We;
|
|
15114
15117
|
const { value: e, onChange: n, ooui: r, views: o } = t, { items: s = [] } = e || {}, { currentView: a, setCurrentView: d, itemIndex: c, setItemIndex: l } = Ae(
|
|
15115
15118
|
On
|
|
@@ -15145,7 +15148,7 @@ const ab = (t) => {
|
|
|
15145
15148
|
var _e, Q;
|
|
15146
15149
|
n == null || n({
|
|
15147
15150
|
fields: ((_e = o.get("form")) == null ? void 0 : _e.fields) || ((Q = o.get("tree")) == null ? void 0 : Q.fields),
|
|
15148
|
-
items:
|
|
15151
|
+
items: ab(oe)
|
|
15149
15152
|
});
|
|
15150
15153
|
}, fe = async () => {
|
|
15151
15154
|
await le(), c > Z.length - 1 && c !== 0 && l(0);
|
|
@@ -15356,7 +15359,7 @@ const ab = (t) => {
|
|
|
15356
15359
|
}
|
|
15357
15360
|
};
|
|
15358
15361
|
function Ue() {
|
|
15359
|
-
const oe =
|
|
15362
|
+
const oe = sb[a];
|
|
15360
15363
|
if (a === "graph")
|
|
15361
15364
|
return Wa(o.get("graph").arch).string;
|
|
15362
15365
|
{
|
|
@@ -15557,7 +15560,7 @@ const ab = (t) => {
|
|
|
15557
15560
|
t
|
|
15558
15561
|
]);
|
|
15559
15562
|
return n;
|
|
15560
|
-
},
|
|
15563
|
+
}, cb = ({
|
|
15561
15564
|
treeView: t,
|
|
15562
15565
|
relation: e,
|
|
15563
15566
|
context: n,
|
|
@@ -15727,7 +15730,7 @@ const ab = (t) => {
|
|
|
15727
15730
|
values: { ...u, id: m },
|
|
15728
15731
|
treeValues: { ...u, id: m }
|
|
15729
15732
|
} : h);
|
|
15730
|
-
s(
|
|
15733
|
+
s(Zf(p));
|
|
15731
15734
|
},
|
|
15732
15735
|
readOnly: o
|
|
15733
15736
|
}
|
|
@@ -15746,7 +15749,7 @@ const gd = ({
|
|
|
15746
15749
|
const { t: a } = Ee(), { currentView: d, itemIndex: c, setItemIndex: l } = Ae(
|
|
15747
15750
|
On
|
|
15748
15751
|
), { showErrorNotification: f } = Rt(), u = T(async () => {
|
|
15749
|
-
const h =
|
|
15752
|
+
const h = db({
|
|
15750
15753
|
selectedRowKeys: o,
|
|
15751
15754
|
items: n
|
|
15752
15755
|
});
|
|
@@ -15806,7 +15809,7 @@ const gd = ({
|
|
|
15806
15809
|
});
|
|
15807
15810
|
}, [t, p, a]) };
|
|
15808
15811
|
};
|
|
15809
|
-
function
|
|
15812
|
+
function db({
|
|
15810
15813
|
selectedRowKeys: t,
|
|
15811
15814
|
items: e
|
|
15812
15815
|
}) {
|
|
@@ -15958,10 +15961,10 @@ const yd = ({
|
|
|
15958
15961
|
onCloseSearchModal: u,
|
|
15959
15962
|
onSelectSearchValues: p
|
|
15960
15963
|
};
|
|
15961
|
-
}, bd = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, Ta = 400,
|
|
15964
|
+
}, bd = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, Ta = 400, ub = (t, e) => t.filter((n) => {
|
|
15962
15965
|
const r = e.find((o) => o.id === n.id);
|
|
15963
15966
|
return r ? JSON.stringify(n.treeValues) !== JSON.stringify(r.treeValues) : !0;
|
|
15964
|
-
}),
|
|
15967
|
+
}), fb = ({
|
|
15965
15968
|
items: t,
|
|
15966
15969
|
height: e,
|
|
15967
15970
|
onRowDoubleClick: n,
|
|
@@ -16107,7 +16110,7 @@ const yd = ({
|
|
|
16107
16110
|
w.current = t;
|
|
16108
16111
|
return;
|
|
16109
16112
|
}
|
|
16110
|
-
const Te =
|
|
16113
|
+
const Te = ub(t, w.current);
|
|
16111
16114
|
w.current = t, re(), Te.length > 0 && (async () => {
|
|
16112
16115
|
var ne;
|
|
16113
16116
|
const _e = Te.filter((ge) => ge.treeValues).map((ge) => ge.treeValues);
|
|
@@ -16175,7 +16178,7 @@ const yd = ({
|
|
|
16175
16178
|
[n]
|
|
16176
16179
|
);
|
|
16177
16180
|
return X ? /* @__PURE__ */ i(ct, {}) : b === "paginated" ? /* @__PURE__ */ i(
|
|
16178
|
-
|
|
16181
|
+
rv,
|
|
16179
16182
|
{
|
|
16180
16183
|
tableRef: S,
|
|
16181
16184
|
onRowStyle: Ce,
|
|
@@ -16233,7 +16236,7 @@ const yd = ({
|
|
|
16233
16236
|
onChangeTableType: v
|
|
16234
16237
|
}
|
|
16235
16238
|
);
|
|
16236
|
-
},
|
|
16239
|
+
}, mb = ["form", "tree", "graph"], pb = (t) => {
|
|
16237
16240
|
var Ye, Ce, Le;
|
|
16238
16241
|
const e = K(null), { value: n, onChange: r, ooui: o, views: s, treeType: a, onUserSelectTreeType: d } = t, { items: c = [] } = n || {}, l = hd({ one2manyItems: c }), { currentView: f, setCurrentView: u, itemIndex: m, setItemIndex: p, setTreeType: g } = Ae(On), {
|
|
16239
16242
|
readOnly: h,
|
|
@@ -16256,7 +16259,7 @@ const yd = ({
|
|
|
16256
16259
|
onChangeFirstVisibleRowIndex: P,
|
|
16257
16260
|
onGetFirstVisibileRowIndex: B,
|
|
16258
16261
|
onSelectionCheckboxClicked: G
|
|
16259
|
-
} =
|
|
16262
|
+
} = cb({
|
|
16260
16263
|
treeView: s.get("tree"),
|
|
16261
16264
|
relation: y,
|
|
16262
16265
|
context: O,
|
|
@@ -16397,7 +16400,7 @@ const yd = ({
|
|
|
16397
16400
|
}
|
|
16398
16401
|
),
|
|
16399
16402
|
f === "tree" && s.get("tree") && /* @__PURE__ */ i(
|
|
16400
|
-
|
|
16403
|
+
fb,
|
|
16401
16404
|
{
|
|
16402
16405
|
gridRef: e,
|
|
16403
16406
|
height: o.height,
|
|
@@ -16479,12 +16482,12 @@ const yd = ({
|
|
|
16479
16482
|
limit: 0
|
|
16480
16483
|
}
|
|
16481
16484
|
),
|
|
16482
|
-
!
|
|
16485
|
+
!mb.includes(f) && /* @__PURE__ */ U("span", { children: [
|
|
16483
16486
|
"Unsupported view ",
|
|
16484
16487
|
f
|
|
16485
16488
|
] })
|
|
16486
16489
|
] });
|
|
16487
|
-
},
|
|
16490
|
+
}, hb = ({
|
|
16488
16491
|
treeView: t,
|
|
16489
16492
|
relation: e,
|
|
16490
16493
|
context: n,
|
|
@@ -16547,10 +16550,10 @@ const yd = ({
|
|
|
16547
16550
|
onGetFirstVisibileRowIndex: f,
|
|
16548
16551
|
onSelectionCheckboxClicked: c
|
|
16549
16552
|
};
|
|
16550
|
-
},
|
|
16553
|
+
}, gb = 400, yb = (t, e) => t.filter((n) => {
|
|
16551
16554
|
const r = e.find((o) => o.id === n.id);
|
|
16552
16555
|
return r ? JSON.stringify(n.treeValues) !== JSON.stringify(r.treeValues) : !0;
|
|
16553
|
-
}),
|
|
16556
|
+
}), vb = ({
|
|
16554
16557
|
items: t,
|
|
16555
16558
|
height: e,
|
|
16556
16559
|
onRowDoubleClick: n,
|
|
@@ -16578,7 +16581,7 @@ const yd = ({
|
|
|
16578
16581
|
w.current = t;
|
|
16579
16582
|
return;
|
|
16580
16583
|
}
|
|
16581
|
-
const L =
|
|
16584
|
+
const L = yb(t, w.current);
|
|
16582
16585
|
w.current = t, C.current = {}, S.current && (S.current = {}), L.length > 0 && (async () => {
|
|
16583
16586
|
var $;
|
|
16584
16587
|
const G = L.filter((M) => M.treeValues).map((M) => M.treeValues);
|
|
@@ -16630,7 +16633,7 @@ const yd = ({
|
|
|
16630
16633
|
Pi,
|
|
16631
16634
|
{
|
|
16632
16635
|
ref: v,
|
|
16633
|
-
height: e ||
|
|
16636
|
+
height: e || gb,
|
|
16634
16637
|
columns: N,
|
|
16635
16638
|
onRequestData: O,
|
|
16636
16639
|
onRowDoubleClick: n,
|
|
@@ -16657,7 +16660,7 @@ const yd = ({
|
|
|
16657
16660
|
}
|
|
16658
16661
|
}
|
|
16659
16662
|
);
|
|
16660
|
-
},
|
|
16663
|
+
}, bb = ({
|
|
16661
16664
|
ooui: t,
|
|
16662
16665
|
items: e,
|
|
16663
16666
|
selectedRowKeys: n,
|
|
@@ -16670,7 +16673,7 @@ const yd = ({
|
|
|
16670
16673
|
model: r,
|
|
16671
16674
|
domain: s
|
|
16672
16675
|
});
|
|
16673
|
-
},
|
|
16676
|
+
}, wb = ["form", "tree", "graph"], Cb = (t) => {
|
|
16674
16677
|
var Me, $e, ve;
|
|
16675
16678
|
const e = K(null), { value: n, onChange: r, ooui: o, views: s } = t, { items: a = [] } = n || {}, d = hd({ one2manyItems: a }), { currentView: c, setCurrentView: l, itemIndex: f, setItemIndex: u } = Ae(
|
|
16676
16679
|
On
|
|
@@ -16695,13 +16698,13 @@ const yd = ({
|
|
|
16695
16698
|
onChangeFirstVisibleRowIndex: E,
|
|
16696
16699
|
onGetFirstVisibileRowIndex: _,
|
|
16697
16700
|
onSelectionCheckboxClicked: L
|
|
16698
|
-
} =
|
|
16701
|
+
} = hb({
|
|
16699
16702
|
treeView: s.get("tree"),
|
|
16700
16703
|
relation: p,
|
|
16701
16704
|
context: I,
|
|
16702
16705
|
allRowsIds: d.filter((ye) => ye.id !== void 0).map((ye) => ye.id),
|
|
16703
16706
|
gridRef: e
|
|
16704
|
-
}), [, P] =
|
|
16707
|
+
}), [, P] = bb({
|
|
16705
16708
|
ooui: N,
|
|
16706
16709
|
model: p,
|
|
16707
16710
|
items: d,
|
|
@@ -16834,7 +16837,7 @@ const yd = ({
|
|
|
16834
16837
|
}
|
|
16835
16838
|
),
|
|
16836
16839
|
c === "tree" && s.get("tree") && /* @__PURE__ */ i(
|
|
16837
|
-
|
|
16840
|
+
vb,
|
|
16838
16841
|
{
|
|
16839
16842
|
gridRef: e,
|
|
16840
16843
|
height: o.height,
|
|
@@ -16914,12 +16917,12 @@ const yd = ({
|
|
|
16914
16917
|
limit: 0
|
|
16915
16918
|
}
|
|
16916
16919
|
),
|
|
16917
|
-
!
|
|
16920
|
+
!wb.includes(c) && /* @__PURE__ */ U("span", { children: [
|
|
16918
16921
|
"Unsupported view ",
|
|
16919
16922
|
c
|
|
16920
16923
|
] })
|
|
16921
16924
|
] });
|
|
16922
|
-
}, _a = 30,
|
|
16925
|
+
}, _a = 30, xb = (t) => {
|
|
16923
16926
|
var R;
|
|
16924
16927
|
const { ooui: e } = t, { mode: n, relation: r, views: o, required: s, context: a } = e;
|
|
16925
16928
|
let d;
|
|
@@ -16991,7 +16994,7 @@ const yd = ({
|
|
|
16991
16994
|
l(!1);
|
|
16992
16995
|
}
|
|
16993
16996
|
};
|
|
16994
|
-
return n && n.length > 0 ? d = n[0] : d = "tree", c ? /* @__PURE__ */ i(ct, {}) : f ? (console.error(f), /* @__PURE__ */ i(Lt, { className: "mt-10", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ i(
|
|
16997
|
+
return n && n.length > 0 ? d = n[0] : d = "tree", c ? /* @__PURE__ */ i(ct, {}) : f ? (console.error(f), /* @__PURE__ */ i(Lt, { className: "mt-10", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ i(Ap, { initialView: d, children: /* @__PURE__ */ i(
|
|
16995
16998
|
tt,
|
|
16996
16999
|
{
|
|
16997
17000
|
required: s,
|
|
@@ -17008,7 +17011,7 @@ const yd = ({
|
|
|
17008
17011
|
},
|
|
17009
17012
|
...t,
|
|
17010
17013
|
children: /* @__PURE__ */ i(
|
|
17011
|
-
|
|
17014
|
+
Sb,
|
|
17012
17015
|
{
|
|
17013
17016
|
ooui: e,
|
|
17014
17017
|
views: m,
|
|
@@ -17021,7 +17024,7 @@ const yd = ({
|
|
|
17021
17024
|
)
|
|
17022
17025
|
}
|
|
17023
17026
|
) });
|
|
17024
|
-
},
|
|
17027
|
+
}, Sb = (t) => {
|
|
17025
17028
|
const { ooui: e, value: n, userTreeTypePreferenceRef: r, onUserSelectTreeType: o } = t, { treeType: s, setTreeType: a } = dc(), d = Bn(
|
|
17026
17029
|
wn.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
|
|
17027
17030
|
);
|
|
@@ -17044,7 +17047,7 @@ const yd = ({
|
|
|
17044
17047
|
return /* @__PURE__ */ i(ct, {});
|
|
17045
17048
|
if (d)
|
|
17046
17049
|
return /* @__PURE__ */ i(
|
|
17047
|
-
|
|
17050
|
+
pb,
|
|
17048
17051
|
{
|
|
17049
17052
|
...t,
|
|
17050
17053
|
treeType: s,
|
|
@@ -17052,14 +17055,14 @@ const yd = ({
|
|
|
17052
17055
|
}
|
|
17053
17056
|
);
|
|
17054
17057
|
if (s === "infinite")
|
|
17055
|
-
return /* @__PURE__ */ i(
|
|
17058
|
+
return /* @__PURE__ */ i(Cb, { ...t });
|
|
17056
17059
|
if (s === "legacy")
|
|
17057
|
-
return /* @__PURE__ */ i(
|
|
17058
|
-
}, { useToken:
|
|
17060
|
+
return /* @__PURE__ */ i(lb, { ...t });
|
|
17061
|
+
}, { useToken: Tb } = at, _b = (t) => {
|
|
17059
17062
|
const { ooui: e } = t, { required: n } = e;
|
|
17060
|
-
return /* @__PURE__ */ i(tt, { required: n, type: "number", ...t, children: /* @__PURE__ */ i(
|
|
17061
|
-
},
|
|
17062
|
-
const { ooui: e, value: n, onChange: r } = t, { id: o, readOnly: s, required: a } = e, { token: d } =
|
|
17063
|
+
return /* @__PURE__ */ i(tt, { required: n, type: "number", ...t, children: /* @__PURE__ */ i(Ib, { ooui: e }) });
|
|
17064
|
+
}, Ib = (t) => {
|
|
17065
|
+
const { ooui: e, value: n, onChange: r } = t, { id: o, readOnly: s, required: a } = e, { token: d } = Tb(), c = a && !s ? { backgroundColor: d.colorPrimaryBg } : void 0, l = K(), [f, u] = A(), m = Ae(dt), { elementHasLostFocus: p } = m || {};
|
|
17063
17066
|
ce(() => {
|
|
17064
17067
|
u(sc(n));
|
|
17065
17068
|
}, [n]);
|
|
@@ -17070,7 +17073,7 @@ const yd = ({
|
|
|
17070
17073
|
l.current = b.target.value, u(b.target.value);
|
|
17071
17074
|
}
|
|
17072
17075
|
async function y() {
|
|
17073
|
-
g(
|
|
17076
|
+
g(pp(f)), await new Promise((b) => setTimeout(b, 300)), p == null || p();
|
|
17074
17077
|
}
|
|
17075
17078
|
return /* @__PURE__ */ i(
|
|
17076
17079
|
St,
|
|
@@ -17124,7 +17127,7 @@ function wd(t) {
|
|
|
17124
17127
|
}
|
|
17125
17128
|
);
|
|
17126
17129
|
}
|
|
17127
|
-
const { TabPane:
|
|
17130
|
+
const { TabPane: Ab } = Va, Fb = Ft(Va)`
|
|
17128
17131
|
.ant-tabs-content-holder {
|
|
17129
17132
|
border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
|
|
17130
17133
|
border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
|
|
@@ -17144,7 +17147,7 @@ const { TabPane: Ib } = Va, Ab = Ft(Va)`
|
|
|
17144
17147
|
margin-bottom: 0 !important;
|
|
17145
17148
|
}
|
|
17146
17149
|
`;
|
|
17147
|
-
function
|
|
17150
|
+
function Rb(t) {
|
|
17148
17151
|
const { ooui: e, responsiveBehaviour: n } = t, r = e.pages, { token: o } = at.useToken();
|
|
17149
17152
|
function s(a) {
|
|
17150
17153
|
if (a) {
|
|
@@ -17153,13 +17156,13 @@ function Fb(t) {
|
|
|
17153
17156
|
}
|
|
17154
17157
|
}
|
|
17155
17158
|
return /* @__PURE__ */ i(
|
|
17156
|
-
|
|
17159
|
+
Fb,
|
|
17157
17160
|
{
|
|
17158
17161
|
defaultActiveKey: "1",
|
|
17159
17162
|
tabPosition: e.tabPosition,
|
|
17160
17163
|
$borderRadius: `${o.borderRadius}px`,
|
|
17161
17164
|
children: r.filter((a) => !a.invisible).map((a) => /* @__PURE__ */ i(
|
|
17162
|
-
|
|
17165
|
+
Ab,
|
|
17163
17166
|
{
|
|
17164
17167
|
tab: /* @__PURE__ */ U(Fe, { children: [
|
|
17165
17168
|
s(a.icon),
|
|
@@ -17180,10 +17183,10 @@ function Fb(t) {
|
|
|
17180
17183
|
}
|
|
17181
17184
|
);
|
|
17182
17185
|
}
|
|
17183
|
-
const { useToken:
|
|
17184
|
-
const { ooui: e } = t, { id: n, readOnly: r, required: o, height: s, translatable: a } = e, { token: d } =
|
|
17186
|
+
const { useToken: Eb } = at, { TextArea: vi } = St, Ob = (t) => {
|
|
17187
|
+
const { ooui: e } = t, { id: n, readOnly: r, required: o, height: s, translatable: a } = e, { token: d } = Eb(), c = o && !r ? { backgroundColor: d.colorPrimaryBg } : void 0, l = Ae(dt), { elementHasLostFocus: f } = l || {};
|
|
17185
17188
|
return /* @__PURE__ */ i(tt, { required: o, ...t, children: a ? /* @__PURE__ */ i(
|
|
17186
|
-
|
|
17189
|
+
kb,
|
|
17187
17190
|
{
|
|
17188
17191
|
field: n,
|
|
17189
17192
|
height: s,
|
|
@@ -17203,7 +17206,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17203
17206
|
onBlur: f
|
|
17204
17207
|
}
|
|
17205
17208
|
) });
|
|
17206
|
-
},
|
|
17209
|
+
}, kb = ({
|
|
17207
17210
|
value: t,
|
|
17208
17211
|
field: e,
|
|
17209
17212
|
requiredStyle: n,
|
|
@@ -17293,13 +17296,13 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17293
17296
|
}
|
|
17294
17297
|
) })
|
|
17295
17298
|
] });
|
|
17296
|
-
},
|
|
17299
|
+
}, Db = (t) => {
|
|
17297
17300
|
const { ooui: e } = t, { label: n, icon: r } = e, o = Mt(r || "");
|
|
17298
17301
|
return /* @__PURE__ */ i(po, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ U(ht, { children: [
|
|
17299
17302
|
o ? /* @__PURE__ */ i(o, {}) : null,
|
|
17300
17303
|
n
|
|
17301
17304
|
] }) });
|
|
17302
|
-
},
|
|
17305
|
+
}, Mb = ({
|
|
17303
17306
|
model: t,
|
|
17304
17307
|
context: e,
|
|
17305
17308
|
selectedRegistersToExport: n,
|
|
@@ -17319,7 +17322,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17319
17322
|
]);
|
|
17320
17323
|
const { datas: v } = await Y.getHandler().exportData({
|
|
17321
17324
|
model: t,
|
|
17322
|
-
fields:
|
|
17325
|
+
fields: Bb({
|
|
17323
17326
|
keys: y.selectedKeys,
|
|
17324
17327
|
fields: a.current
|
|
17325
17328
|
}),
|
|
@@ -17348,7 +17351,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17348
17351
|
fields: []
|
|
17349
17352
|
});
|
|
17350
17353
|
for (const [w, F] of Object.entries(S))
|
|
17351
|
-
S[w].string =
|
|
17354
|
+
S[w].string = $b({
|
|
17352
17355
|
parentTitle: v.string,
|
|
17353
17356
|
title: F.string
|
|
17354
17357
|
});
|
|
@@ -17359,7 +17362,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17359
17362
|
},
|
|
17360
17363
|
[e]
|
|
17361
17364
|
), m = T(async () => {
|
|
17362
|
-
const y = await
|
|
17365
|
+
const y = await Pb({ model: t, context: e }), b = await Vb({
|
|
17363
17366
|
predefinedExports: y,
|
|
17364
17367
|
fields: a.current,
|
|
17365
17368
|
onGetFieldChilds: u
|
|
@@ -17446,7 +17449,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17446
17449
|
for (const r of Object.keys(t)) {
|
|
17447
17450
|
const o = t[r], s = Cd(o), a = o.is_function === !0, d = s && !a;
|
|
17448
17451
|
n.push({
|
|
17449
|
-
key:
|
|
17452
|
+
key: Nb({ key: r, parentKey: e }),
|
|
17450
17453
|
title: o.string,
|
|
17451
17454
|
tooltip: o.help,
|
|
17452
17455
|
required: o.required,
|
|
@@ -17454,7 +17457,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17454
17457
|
});
|
|
17455
17458
|
}
|
|
17456
17459
|
return n;
|
|
17457
|
-
}, Cd = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many",
|
|
17460
|
+
}, Cd = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", Nb = ({
|
|
17458
17461
|
parentKey: t,
|
|
17459
17462
|
key: e
|
|
17460
17463
|
}) => `${t ? t + "/" : ""}${e}`, bi = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), wi = (t) => {
|
|
@@ -17462,10 +17465,10 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17462
17465
|
return t;
|
|
17463
17466
|
const e = t.split("/");
|
|
17464
17467
|
return e[e.length - 1];
|
|
17465
|
-
}, Ci = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[bi(t)],
|
|
17468
|
+
}, Ci = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[bi(t)], $b = ({
|
|
17466
17469
|
title: t,
|
|
17467
17470
|
parentTitle: e
|
|
17468
|
-
}) => `${e ? e + " → " : ""}${t}`,
|
|
17471
|
+
}) => `${e ? e + " → " : ""}${t}`, Pb = async ({
|
|
17469
17472
|
model: t,
|
|
17470
17473
|
context: e
|
|
17471
17474
|
}) => {
|
|
@@ -17485,24 +17488,24 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17485
17488
|
key: o.find((c) => c.id === a).name
|
|
17486
17489
|
}))
|
|
17487
17490
|
}));
|
|
17488
|
-
},
|
|
17491
|
+
}, Lb = ({
|
|
17489
17492
|
fields: t,
|
|
17490
17493
|
keys: e
|
|
17491
|
-
}) =>
|
|
17494
|
+
}) => Hb([
|
|
17492
17495
|
...new Set(
|
|
17493
17496
|
e.filter((n) => {
|
|
17494
17497
|
var r, o;
|
|
17495
17498
|
return n.indexOf("/") === -1 ? !((r = t["/"]) != null && r[n]) : !((o = t == null ? void 0 : t[bi(n)]) != null && o[n]);
|
|
17496
17499
|
}).map((n) => bi(n))
|
|
17497
17500
|
)
|
|
17498
|
-
]),
|
|
17501
|
+
]), Vb = async ({
|
|
17499
17502
|
predefinedExports: t,
|
|
17500
17503
|
fields: e,
|
|
17501
17504
|
onGetFieldChilds: n
|
|
17502
17505
|
}) => {
|
|
17503
17506
|
const r = t.flatMap(
|
|
17504
17507
|
(a) => a.fields.map((d) => d.key)
|
|
17505
|
-
), o =
|
|
17508
|
+
), o = Lb({
|
|
17506
17509
|
fields: e,
|
|
17507
17510
|
keys: r
|
|
17508
17511
|
}), s = [];
|
|
@@ -17516,13 +17519,13 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17516
17519
|
);
|
|
17517
17520
|
}
|
|
17518
17521
|
return s;
|
|
17519
|
-
},
|
|
17522
|
+
}, Bb = ({
|
|
17520
17523
|
keys: t,
|
|
17521
17524
|
fields: e
|
|
17522
17525
|
}) => t.map((n) => {
|
|
17523
17526
|
const r = wi(n), s = Ci(n, e)[r], a = Cd(s), d = s.is_function === !0;
|
|
17524
17527
|
return a && !d ? `${n}/id` : n;
|
|
17525
|
-
}),
|
|
17528
|
+
}), Hb = (t) => {
|
|
17526
17529
|
const e = /* @__PURE__ */ new Map(), n = [];
|
|
17527
17530
|
for (const r of t) {
|
|
17528
17531
|
const o = r.split("/");
|
|
@@ -17536,7 +17539,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17536
17539
|
const s = r.split("/").length, a = o.split("/").length;
|
|
17537
17540
|
return s - a;
|
|
17538
17541
|
}), n;
|
|
17539
|
-
},
|
|
17542
|
+
}, jb = (t) => {
|
|
17540
17543
|
const {
|
|
17541
17544
|
visible: e,
|
|
17542
17545
|
onClose: n,
|
|
@@ -17554,7 +17557,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17554
17557
|
onGetPredefinedExports: p,
|
|
17555
17558
|
onSavePredefinedExport: g,
|
|
17556
17559
|
onRemovePredefinedExport: h
|
|
17557
|
-
} =
|
|
17560
|
+
} = Mb({
|
|
17558
17561
|
model: r,
|
|
17559
17562
|
context: o,
|
|
17560
17563
|
domain: d,
|
|
@@ -17578,7 +17581,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17578
17581
|
onRemovePredefinedExport: h
|
|
17579
17582
|
}
|
|
17580
17583
|
);
|
|
17581
|
-
},
|
|
17584
|
+
}, Ub = (t) => {
|
|
17582
17585
|
const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: s } = e;
|
|
17583
17586
|
return /* @__PURE__ */ i(tt, { required: r, ...t, children: /* @__PURE__ */ i(
|
|
17584
17587
|
Ru,
|
|
@@ -17590,16 +17593,16 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17590
17593
|
timezone: s
|
|
17591
17594
|
}
|
|
17592
17595
|
) });
|
|
17593
|
-
}, xd = it(
|
|
17596
|
+
}, xd = it(Ub), Wb = (t) => {
|
|
17594
17597
|
const { ooui: e } = t;
|
|
17595
17598
|
return /* @__PURE__ */ i(xd, { ooui: e });
|
|
17596
|
-
}, Wb = (t) => {
|
|
17597
|
-
const { ooui: e } = t;
|
|
17598
|
-
return /* @__PURE__ */ i(xd, { ooui: e, showTime: !0 });
|
|
17599
17599
|
}, qb = (t) => {
|
|
17600
17600
|
const { ooui: e } = t;
|
|
17601
|
-
return /* @__PURE__ */ i(
|
|
17601
|
+
return /* @__PURE__ */ i(xd, { ooui: e, showTime: !0 });
|
|
17602
17602
|
}, Yb = (t) => {
|
|
17603
|
+
const { ooui: e } = t;
|
|
17604
|
+
return /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(Gb, { ooui: e }) });
|
|
17605
|
+
}, Gb = (t) => {
|
|
17603
17606
|
const { readOnly: e } = t.ooui;
|
|
17604
17607
|
return /* @__PURE__ */ i(
|
|
17605
17608
|
ui,
|
|
@@ -17612,10 +17615,10 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17612
17615
|
disabled: e
|
|
17613
17616
|
}
|
|
17614
17617
|
);
|
|
17615
|
-
}, Gb = (t) => {
|
|
17616
|
-
const { ooui: e } = t, { required: n } = e;
|
|
17617
|
-
return /* @__PURE__ */ i(tt, { required: n, ...t, children: /* @__PURE__ */ i(zb, { ooui: e }) });
|
|
17618
17618
|
}, zb = (t) => {
|
|
17619
|
+
const { ooui: e } = t, { required: n } = e;
|
|
17620
|
+
return /* @__PURE__ */ i(tt, { required: n, ...t, children: /* @__PURE__ */ i(Kb, { ooui: e }) });
|
|
17621
|
+
}, Kb = (t) => {
|
|
17619
17622
|
const { value: e, onChange: n, ooui: r } = t, { required: o, selectionValues: s, readOnly: a, domain: d } = r, c = e == null ? void 0 : e.split(","), [l, f] = A([]), [u, m] = A();
|
|
17620
17623
|
return ce(() => {
|
|
17621
17624
|
if (!e) {
|
|
@@ -17663,11 +17666,11 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17663
17666
|
}
|
|
17664
17667
|
) })
|
|
17665
17668
|
] });
|
|
17666
|
-
}, { useToken:
|
|
17669
|
+
}, { useToken: Jb } = at, Xb = (t) => {
|
|
17667
17670
|
const { ooui: e } = t, { required: n } = e;
|
|
17668
|
-
return /* @__PURE__ */ i(tt, { required: n, ...t, children: /* @__PURE__ */ i(
|
|
17669
|
-
},
|
|
17670
|
-
const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: s, filenameField: a } = e, { token: d } =
|
|
17671
|
+
return /* @__PURE__ */ i(tt, { required: n, ...t, children: /* @__PURE__ */ i(Qb, { ooui: e }) });
|
|
17672
|
+
}, Qb = (t) => {
|
|
17673
|
+
const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: s, filenameField: a } = e, { token: d } = Jb(), c = s && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, l = K(null), { setFieldValue: f, getFieldValue: u } = Ae(dt) || {}, { t: m } = Ee(), p = n ? Hf(n) : "", g = (C) => {
|
|
17671
17674
|
r == null || r(C);
|
|
17672
17675
|
};
|
|
17673
17676
|
async function h() {
|
|
@@ -17741,7 +17744,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17741
17744
|
)
|
|
17742
17745
|
] }) })
|
|
17743
17746
|
] });
|
|
17744
|
-
},
|
|
17747
|
+
}, Zb = (t) => {
|
|
17745
17748
|
const {
|
|
17746
17749
|
numberOfAttachments: e,
|
|
17747
17750
|
attachments: n = [],
|
|
@@ -17839,7 +17842,7 @@ const { useToken: Rb } = at, { TextArea: vi } = St, Eb = (t) => {
|
|
|
17839
17842
|
}
|
|
17840
17843
|
);
|
|
17841
17844
|
};
|
|
17842
|
-
function
|
|
17845
|
+
function ew(t) {
|
|
17843
17846
|
const {
|
|
17844
17847
|
attachments: e,
|
|
17845
17848
|
disabled: n = !1,
|
|
@@ -17901,7 +17904,7 @@ function Zb(t) {
|
|
|
17901
17904
|
p();
|
|
17902
17905
|
}, []), /* @__PURE__ */ U(Fe, { children: [
|
|
17903
17906
|
/* @__PURE__ */ i(
|
|
17904
|
-
|
|
17907
|
+
Zb,
|
|
17905
17908
|
{
|
|
17906
17909
|
numberOfAttachments: e.length,
|
|
17907
17910
|
attachments: d,
|
|
@@ -17926,7 +17929,7 @@ function Zb(t) {
|
|
|
17926
17929
|
)
|
|
17927
17930
|
] });
|
|
17928
17931
|
}
|
|
17929
|
-
const
|
|
17932
|
+
const tw = (t) => {
|
|
17930
17933
|
const { disabled: e, commentCount: n, onClick: r } = t, { t: o } = Ee();
|
|
17931
17934
|
return /* @__PURE__ */ U(
|
|
17932
17935
|
Dt,
|
|
@@ -17940,7 +17943,7 @@ const ew = (t) => {
|
|
|
17940
17943
|
]
|
|
17941
17944
|
}
|
|
17942
17945
|
);
|
|
17943
|
-
},
|
|
17946
|
+
}, nw = it(tw), rw = () => {
|
|
17944
17947
|
const {
|
|
17945
17948
|
treeType: t,
|
|
17946
17949
|
totalItems: e = 0,
|
|
@@ -18024,12 +18027,12 @@ const ew = (t) => {
|
|
|
18024
18027
|
shouldDisableNavigation: y()
|
|
18025
18028
|
};
|
|
18026
18029
|
};
|
|
18027
|
-
function
|
|
18030
|
+
function ow({ toolbar: t }) {
|
|
18028
18031
|
const e = Ae(
|
|
18029
18032
|
Xt
|
|
18030
18033
|
), { t: n } = Ee(), r = zt(
|
|
18031
18034
|
Et.FEATURE_COMMENTS_SYSTEM
|
|
18032
|
-
), { onNextClick: o, onPreviousClick: s, shouldDisableNavigation: a } =
|
|
18035
|
+
), { onNextClick: o, onPreviousClick: s, shouldDisableNavigation: a } = rw(), { showErrorNotification: d } = Rt(), {
|
|
18033
18036
|
availableViews: c,
|
|
18034
18037
|
currentView: l,
|
|
18035
18038
|
setCurrentView: f,
|
|
@@ -18285,7 +18288,7 @@ function rw({ toolbar: t }) {
|
|
|
18285
18288
|
/* @__PURE__ */ i(bn, { icon: /* @__PURE__ */ i(wo, {}), ...ee }),
|
|
18286
18289
|
/* @__PURE__ */ i(bn, { icon: /* @__PURE__ */ i(Co, {}), ...X }),
|
|
18287
18290
|
/* @__PURE__ */ i(
|
|
18288
|
-
|
|
18291
|
+
ew,
|
|
18289
18292
|
{
|
|
18290
18293
|
disabled: j,
|
|
18291
18294
|
attachments: N,
|
|
@@ -18295,7 +18298,7 @@ function rw({ toolbar: t }) {
|
|
|
18295
18298
|
}
|
|
18296
18299
|
),
|
|
18297
18300
|
r && /* @__PURE__ */ i(
|
|
18298
|
-
|
|
18301
|
+
nw,
|
|
18299
18302
|
{
|
|
18300
18303
|
disabled: j || g === void 0,
|
|
18301
18304
|
commentCount: V ?? 0,
|
|
@@ -18306,7 +18309,7 @@ function rw({ toolbar: t }) {
|
|
|
18306
18309
|
/* @__PURE__ */ i(Ao, { res_id: g })
|
|
18307
18310
|
] }) : null;
|
|
18308
18311
|
}
|
|
18309
|
-
const
|
|
18312
|
+
const iw = it(ow), Sd = it(
|
|
18310
18313
|
({
|
|
18311
18314
|
disabled: t,
|
|
18312
18315
|
onPreviousClick: e,
|
|
@@ -18345,8 +18348,8 @@ const Aa = (t, e) => ({
|
|
|
18345
18348
|
],
|
|
18346
18349
|
values: { selection_associated_object: `${t},${e}` },
|
|
18347
18350
|
forced_values: { res_model: t, res_id: e }
|
|
18348
|
-
}), { useToken:
|
|
18349
|
-
const { ooui: e, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = t, { id: a, readOnly: d, required: c } = e, { token: l } =
|
|
18351
|
+
}), { useToken: sw } = at, Td = (t) => {
|
|
18352
|
+
const { ooui: e, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = t, { id: a, readOnly: d, required: c } = e, { token: l } = sw(), f = c && !d ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Ae(dt), { elementHasLostFocus: m } = u || {}, [p, g] = A(!1), [h, y] = A(!1);
|
|
18350
18353
|
ce(() => {
|
|
18351
18354
|
d && !p && y(!1), !n && !d && (g(!0), y(!0));
|
|
18352
18355
|
}, [p, d]);
|
|
@@ -18401,7 +18404,7 @@ const Aa = (t, e) => ({
|
|
|
18401
18404
|
}
|
|
18402
18405
|
) })
|
|
18403
18406
|
] });
|
|
18404
|
-
},
|
|
18407
|
+
}, aw = (t) => {
|
|
18405
18408
|
const { ooui: e } = t, { required: n } = e;
|
|
18406
18409
|
return /* @__PURE__ */ i(tt, { required: n, ...t, children: /* @__PURE__ */ i(
|
|
18407
18410
|
Td,
|
|
@@ -18410,9 +18413,9 @@ const Aa = (t, e) => ({
|
|
|
18410
18413
|
valueValidator: (r) => r ? Wu(r) : !1
|
|
18411
18414
|
}
|
|
18412
18415
|
) });
|
|
18413
|
-
},
|
|
18416
|
+
}, lw = (t) => {
|
|
18414
18417
|
const { ooui: e } = t, { required: n } = e;
|
|
18415
|
-
return /* @__PURE__ */ i(tt, { required: n, ...t, children: e.multi ? /* @__PURE__ */ i(
|
|
18418
|
+
return /* @__PURE__ */ i(tt, { required: n, ...t, children: e.multi ? /* @__PURE__ */ i(Ip, { readonly: e.readOnly, maxLength: e.size }) : /* @__PURE__ */ i(
|
|
18416
18419
|
Td,
|
|
18417
18420
|
{
|
|
18418
18421
|
ooui: e,
|
|
@@ -18420,7 +18423,7 @@ const Aa = (t, e) => ({
|
|
|
18420
18423
|
valueValidator: (r) => r ? qu(r, { allow_display_name: !0 }) : !1
|
|
18421
18424
|
}
|
|
18422
18425
|
) });
|
|
18423
|
-
},
|
|
18426
|
+
}, cw = (t) => {
|
|
18424
18427
|
const { visible: e, onIdSubmitted: n, onCancel: r, isSearching: o } = t, { t: s } = Ee(), a = K(null), d = K(!1);
|
|
18425
18428
|
function c(l) {
|
|
18426
18429
|
const f = l.id.split(",").map((u) => parseInt(u.trim()));
|
|
@@ -18503,7 +18506,7 @@ const Aa = (t, e) => ({
|
|
|
18503
18506
|
}
|
|
18504
18507
|
);
|
|
18505
18508
|
};
|
|
18506
|
-
function
|
|
18509
|
+
function dw({ refreshGraph: t }) {
|
|
18507
18510
|
const { t: e } = Ee(), {
|
|
18508
18511
|
availableViews: n,
|
|
18509
18512
|
currentView: r,
|
|
@@ -18562,10 +18565,10 @@ function cw({ refreshGraph: t }) {
|
|
|
18562
18565
|
/* @__PURE__ */ i(Ao, { searchParams: s })
|
|
18563
18566
|
] });
|
|
18564
18567
|
}
|
|
18565
|
-
const
|
|
18568
|
+
const uw = {
|
|
18566
18569
|
height: "calc(100vh - 80px - 102px)",
|
|
18567
18570
|
overflow: "auto"
|
|
18568
|
-
},
|
|
18571
|
+
}, fw = (t) => {
|
|
18569
18572
|
const {
|
|
18570
18573
|
viewData: e,
|
|
18571
18574
|
visible: n,
|
|
@@ -18690,14 +18693,14 @@ const dw = {
|
|
|
18690
18693
|
const te = f ? us : Yn;
|
|
18691
18694
|
return /* @__PURE__ */ U(Fe, { children: [
|
|
18692
18695
|
/* @__PURE__ */ i(Br, { title: e.title || e.name, children: /* @__PURE__ */ i(
|
|
18693
|
-
|
|
18696
|
+
dw,
|
|
18694
18697
|
{
|
|
18695
18698
|
refreshGraph: () => {
|
|
18696
18699
|
W();
|
|
18697
18700
|
}
|
|
18698
18701
|
}
|
|
18699
18702
|
) }),
|
|
18700
|
-
/* @__PURE__ */ U("div", { style:
|
|
18703
|
+
/* @__PURE__ */ U("div", { style: uw, children: [
|
|
18701
18704
|
/* @__PURE__ */ i(
|
|
18702
18705
|
Oo,
|
|
18703
18706
|
{
|
|
@@ -18730,14 +18733,14 @@ const dw = {
|
|
|
18730
18733
|
context: o,
|
|
18731
18734
|
domain: un(O || [], s),
|
|
18732
18735
|
limit: P ? D : void 0,
|
|
18733
|
-
fixedHeight:
|
|
18736
|
+
fixedHeight: Dm,
|
|
18734
18737
|
manualIds: $
|
|
18735
18738
|
}
|
|
18736
18739
|
)
|
|
18737
18740
|
] })
|
|
18738
18741
|
] });
|
|
18739
|
-
},
|
|
18740
|
-
const { userName: e, style: n, ...r } = t, o = z(() =>
|
|
18742
|
+
}, mw = (t) => t.split(" ").filter((e) => e.length > 1).slice(0, 2).map((e) => e[0].toUpperCase()).join(""), pw = (t) => {
|
|
18743
|
+
const { userName: e, style: n, ...r } = t, o = z(() => mw(e), [e]), s = z(() => fr(e), [e]), a = z(
|
|
18741
18744
|
() => ({
|
|
18742
18745
|
backgroundColor: s,
|
|
18743
18746
|
...n
|
|
@@ -18745,7 +18748,7 @@ const dw = {
|
|
|
18745
18748
|
[s, n]
|
|
18746
18749
|
);
|
|
18747
18750
|
return /* @__PURE__ */ i(_i, { ...r, style: a, children: o });
|
|
18748
|
-
}, xi = it(
|
|
18751
|
+
}, xi = it(pw), hw = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(hs, {}) }), gw = (t) => t.replace(/@(\w+)/g, "**@$1**"), hs = Ht(
|
|
18749
18752
|
(t, e) => {
|
|
18750
18753
|
const {
|
|
18751
18754
|
value: n = "",
|
|
@@ -18835,17 +18838,17 @@ const dw = {
|
|
|
18835
18838
|
remarkPlugins: [Gu],
|
|
18836
18839
|
className: d,
|
|
18837
18840
|
components: g,
|
|
18838
|
-
children:
|
|
18841
|
+
children: gw(c || "")
|
|
18839
18842
|
}
|
|
18840
18843
|
) }) });
|
|
18841
18844
|
}
|
|
18842
18845
|
);
|
|
18843
18846
|
hs.displayName = "MarkdownInput";
|
|
18844
|
-
const
|
|
18847
|
+
const yw = {
|
|
18845
18848
|
margin: 0
|
|
18846
|
-
},
|
|
18847
|
-
p: ({ children: t }) => /* @__PURE__ */ i("p", { style:
|
|
18848
|
-
},
|
|
18849
|
+
}, vw = {
|
|
18850
|
+
p: ({ children: t }) => /* @__PURE__ */ i("p", { style: yw, children: t })
|
|
18851
|
+
}, bw = ({
|
|
18849
18852
|
comment: t,
|
|
18850
18853
|
model: e,
|
|
18851
18854
|
resourceId: n
|
|
@@ -18859,24 +18862,24 @@ const gw = {
|
|
|
18859
18862
|
hs,
|
|
18860
18863
|
{
|
|
18861
18864
|
value: t.body,
|
|
18862
|
-
components:
|
|
18865
|
+
components: vw
|
|
18863
18866
|
}
|
|
18864
18867
|
)
|
|
18865
18868
|
}
|
|
18866
|
-
) }) }), { Title:
|
|
18869
|
+
) }) }), { Title: ww, Text: eo } = Kt, { useToken: _d } = at, Si = 450, Fa = 8, Cw = { minRows: 1, maxRows: 4 }, xw = {
|
|
18867
18870
|
display: "flex",
|
|
18868
18871
|
justifyContent: "center",
|
|
18869
18872
|
alignItems: "center",
|
|
18870
18873
|
flex: 1
|
|
18871
|
-
},
|
|
18874
|
+
}, Sw = {
|
|
18872
18875
|
display: "flex",
|
|
18873
18876
|
justifyContent: "center",
|
|
18874
18877
|
alignItems: "center",
|
|
18875
18878
|
flex: 1
|
|
18876
|
-
},
|
|
18879
|
+
}, Tw = {
|
|
18877
18880
|
display: "flex",
|
|
18878
18881
|
flexDirection: "column"
|
|
18879
|
-
},
|
|
18882
|
+
}, _w = { margin: 0 }, Id = it(
|
|
18880
18883
|
({ comment: t, isOwnMessage: e, model: n, resourceId: r }) => {
|
|
18881
18884
|
const { token: o } = _d(), s = t["create_uid.name"], a = vt(t.create_date).format(
|
|
18882
18885
|
"HH:mm · DD/MM/YYYY"
|
|
@@ -18969,7 +18972,7 @@ const gw = {
|
|
|
18969
18972
|
h
|
|
18970
18973
|
] }) }),
|
|
18971
18974
|
/* @__PURE__ */ i("div", { style: g, children: /* @__PURE__ */ i(
|
|
18972
|
-
|
|
18975
|
+
bw,
|
|
18973
18976
|
{
|
|
18974
18977
|
comment: t,
|
|
18975
18978
|
model: n,
|
|
@@ -18981,7 +18984,7 @@ const gw = {
|
|
|
18981
18984
|
}
|
|
18982
18985
|
);
|
|
18983
18986
|
Id.displayName = "MessageBubble";
|
|
18984
|
-
const
|
|
18987
|
+
const Iw = (t) => {
|
|
18985
18988
|
const {
|
|
18986
18989
|
visible: e,
|
|
18987
18990
|
comments: n,
|
|
@@ -19110,7 +19113,7 @@ const _w = (t) => {
|
|
|
19110
19113
|
style: V,
|
|
19111
19114
|
children: [
|
|
19112
19115
|
/* @__PURE__ */ U("div", { style: $, children: [
|
|
19113
|
-
/* @__PURE__ */ i(
|
|
19116
|
+
/* @__PURE__ */ i(ww, { level: 5, style: _w, children: m("comments") }),
|
|
19114
19117
|
/* @__PURE__ */ i(
|
|
19115
19118
|
Je,
|
|
19116
19119
|
{
|
|
@@ -19121,13 +19124,13 @@ const _w = (t) => {
|
|
|
19121
19124
|
}
|
|
19122
19125
|
)
|
|
19123
19126
|
] }),
|
|
19124
|
-
/* @__PURE__ */ i(An, { children: /* @__PURE__ */ i("div", { style: G, children: r ? /* @__PURE__ */ i("div", { style:
|
|
19127
|
+
/* @__PURE__ */ i(An, { children: /* @__PURE__ */ i("div", { style: G, children: r ? /* @__PURE__ */ i("div", { style: xw, children: /* @__PURE__ */ i(ct, {}) }) : n.length === 0 ? /* @__PURE__ */ i("div", { style: Sw, children: /* @__PURE__ */ i(
|
|
19125
19128
|
to,
|
|
19126
19129
|
{
|
|
19127
19130
|
description: m("noComments"),
|
|
19128
19131
|
image: to.PRESENTED_IMAGE_SIMPLE
|
|
19129
19132
|
}
|
|
19130
|
-
) }) : /* @__PURE__ */ U("div", { style:
|
|
19133
|
+
) }) : /* @__PURE__ */ U("div", { style: Tw, children: [
|
|
19131
19134
|
[...n].reverse().map((j) => /* @__PURE__ */ i(
|
|
19132
19135
|
Id,
|
|
19133
19136
|
{
|
|
@@ -19155,7 +19158,7 @@ const _w = (t) => {
|
|
|
19155
19158
|
filterOption: !1,
|
|
19156
19159
|
notFoundContent: w ? /* @__PURE__ */ i(ct, { size: "small" }) : m("noMatches"),
|
|
19157
19160
|
placeholder: m("writeComment"),
|
|
19158
|
-
autoSize:
|
|
19161
|
+
autoSize: Cw,
|
|
19159
19162
|
disabled: h,
|
|
19160
19163
|
style: { flex: 1 }
|
|
19161
19164
|
}
|
|
@@ -19174,7 +19177,7 @@ const _w = (t) => {
|
|
|
19174
19177
|
]
|
|
19175
19178
|
}
|
|
19176
19179
|
) }) : null;
|
|
19177
|
-
},
|
|
19180
|
+
}, Aw = it(Iw), Fw = (t) => {
|
|
19178
19181
|
const { model: e, resourceId: n, context: r } = t, [o, s] = A([]), [a, d] = A(!1), [c, l] = Oe(
|
|
19179
19182
|
Y.getHandler().rawExecute
|
|
19180
19183
|
), f = ut(async () => {
|
|
@@ -19230,7 +19233,7 @@ const _w = (t) => {
|
|
|
19230
19233
|
cancelRequest: l,
|
|
19231
19234
|
commentCount: o.length
|
|
19232
19235
|
};
|
|
19233
|
-
}, { useToken:
|
|
19236
|
+
}, { useToken: Rw } = at, Ew = (t) => {
|
|
19234
19237
|
const {
|
|
19235
19238
|
visible: e,
|
|
19236
19239
|
formRef: n,
|
|
@@ -19250,9 +19253,9 @@ const _w = (t) => {
|
|
|
19250
19253
|
setCommentsPanelVisible: h,
|
|
19251
19254
|
setCommentCount: y,
|
|
19252
19255
|
setRefreshComments: b
|
|
19253
|
-
} = Vt(), { globalValues: v } = Jt(), { token: C } =
|
|
19256
|
+
} = Vt(), { globalValues: v } = Jt(), { token: C } = Rw(), S = zt(
|
|
19254
19257
|
Et.FEATURE_COMMENTS_SYSTEM
|
|
19255
|
-
), w = K(null), { comments: F, loading: x, fetchComments: I, addComment: D, fetchMentionUsers: N } =
|
|
19258
|
+
), w = K(null), { comments: F, loading: x, fetchComments: I, addComment: D, fetchMentionUsers: N } = Fw({
|
|
19256
19259
|
model: r,
|
|
19257
19260
|
resourceId: o,
|
|
19258
19261
|
context: d
|
|
@@ -19307,7 +19310,7 @@ const _w = (t) => {
|
|
|
19307
19310
|
]
|
|
19308
19311
|
);
|
|
19309
19312
|
return e ? /* @__PURE__ */ U(Fe, { children: [
|
|
19310
|
-
/* @__PURE__ */ i(Br, { children: /* @__PURE__ */ i(
|
|
19313
|
+
/* @__PURE__ */ i(Br, { children: /* @__PURE__ */ i(iw, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
19311
19314
|
/* @__PURE__ */ U("div", { ref: w, style: E, children: [
|
|
19312
19315
|
/* @__PURE__ */ i("div", { style: _, children: /* @__PURE__ */ i(
|
|
19313
19316
|
yr,
|
|
@@ -19326,7 +19329,7 @@ const _w = (t) => {
|
|
|
19326
19329
|
}
|
|
19327
19330
|
) }),
|
|
19328
19331
|
S && o !== void 0 && /* @__PURE__ */ i(
|
|
19329
|
-
|
|
19332
|
+
Aw,
|
|
19330
19333
|
{
|
|
19331
19334
|
visible: g ?? !1,
|
|
19332
19335
|
comments: F,
|
|
@@ -19342,7 +19345,7 @@ const _w = (t) => {
|
|
|
19342
19345
|
)
|
|
19343
19346
|
] })
|
|
19344
19347
|
] }) : null;
|
|
19345
|
-
}, gs = an.createContext(null),
|
|
19348
|
+
}, gs = an.createContext(null), Ow = (t) => {
|
|
19346
19349
|
const [e, n] = A(!1), [r, o] = A(!1), { children: s, dashboardRef: a, openAction: d } = t;
|
|
19347
19350
|
return /* @__PURE__ */ i(
|
|
19348
19351
|
gs.Provider,
|
|
@@ -19359,7 +19362,7 @@ const _w = (t) => {
|
|
|
19359
19362
|
}
|
|
19360
19363
|
);
|
|
19361
19364
|
};
|
|
19362
|
-
function
|
|
19365
|
+
function kw() {
|
|
19363
19366
|
const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = Ae(gs), { permissions: o } = Vt(), { t: s } = Ee();
|
|
19364
19367
|
return /* @__PURE__ */ U(ht, { wrap: !0, children: [
|
|
19365
19368
|
(o == null ? void 0 : o.write) && /* @__PURE__ */ i(
|
|
@@ -19409,24 +19412,24 @@ function Ow() {
|
|
|
19409
19412
|
/* @__PURE__ */ i(Ao, {})
|
|
19410
19413
|
] });
|
|
19411
19414
|
}
|
|
19412
|
-
const
|
|
19415
|
+
const Dw = {
|
|
19413
19416
|
height: "calc(100vh - 80px - 102px)",
|
|
19414
19417
|
overflow: "auto"
|
|
19415
|
-
},
|
|
19418
|
+
}, Mw = (t) => {
|
|
19416
19419
|
const { dashboardData: e, visible: n } = t, r = K(), o = Ae(
|
|
19417
19420
|
Xt
|
|
19418
19421
|
), { openShortcut: s } = o || {};
|
|
19419
19422
|
return !e || !n ? null : /* @__PURE__ */ U(
|
|
19420
|
-
|
|
19423
|
+
Ow,
|
|
19421
19424
|
{
|
|
19422
19425
|
dashboardRef: r,
|
|
19423
19426
|
openAction: (a) => {
|
|
19424
19427
|
s(a);
|
|
19425
19428
|
},
|
|
19426
19429
|
children: [
|
|
19427
|
-
/* @__PURE__ */ i(Br, { children: /* @__PURE__ */ i(
|
|
19428
|
-
/* @__PURE__ */ i("div", { style:
|
|
19429
|
-
|
|
19430
|
+
/* @__PURE__ */ i(Br, { children: /* @__PURE__ */ i(kw, {}) }),
|
|
19431
|
+
/* @__PURE__ */ i("div", { style: Dw, children: /* @__PURE__ */ i(
|
|
19432
|
+
v0,
|
|
19430
19433
|
{
|
|
19431
19434
|
ref: r,
|
|
19432
19435
|
model: e.model,
|
|
@@ -19476,7 +19479,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19476
19479
|
...Fo,
|
|
19477
19480
|
integer: Ra,
|
|
19478
19481
|
float: Ra
|
|
19479
|
-
},
|
|
19482
|
+
}, Nw = Ft(Mr)`
|
|
19480
19483
|
position: relative;
|
|
19481
19484
|
background-color: ${(t) => t.$isSelected && t.$selectedBgColor ? t.$selectedBgColor : t.$bgColor};
|
|
19482
19485
|
border: 1px solid ${(t) => t.$borderColor};
|
|
@@ -19503,7 +19506,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19503
19506
|
&:hover {
|
|
19504
19507
|
outline: ${(t) => t.$isDraggingActive ? "none" : `3px solid ${t.$color || t.$primaryColor}`};
|
|
19505
19508
|
}
|
|
19506
|
-
`,
|
|
19509
|
+
`, $w = Ft.div`
|
|
19507
19510
|
position: absolute;
|
|
19508
19511
|
left: 0;
|
|
19509
19512
|
top: 0;
|
|
@@ -19511,7 +19514,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19511
19514
|
width: 5px;
|
|
19512
19515
|
background-color: ${(t) => t.$color};
|
|
19513
19516
|
border-radius: 7px 0 0 7px;
|
|
19514
|
-
`,
|
|
19517
|
+
`, Pw = Ft.div`
|
|
19515
19518
|
position: absolute;
|
|
19516
19519
|
right: 8px;
|
|
19517
19520
|
top: 8px;
|
|
@@ -19519,7 +19522,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19519
19522
|
height: 10px;
|
|
19520
19523
|
border-radius: 50%;
|
|
19521
19524
|
background-color: ${(t) => t.$color};
|
|
19522
|
-
`,
|
|
19525
|
+
`, Lw = Ft.div`
|
|
19523
19526
|
position: absolute;
|
|
19524
19527
|
left: 0;
|
|
19525
19528
|
right: 0;
|
|
@@ -19530,7 +19533,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19530
19533
|
transition: opacity 0.15s ease;
|
|
19531
19534
|
z-index: 10;
|
|
19532
19535
|
${(t) => t.$position === "above" ? "top: -5.5px;" : "bottom: -5.5px;"}
|
|
19533
|
-
`, { Text: Ea, Link: Oa } = Kt, { useToken:
|
|
19536
|
+
`, { Text: Ea, Link: Oa } = Kt, { useToken: Vw } = at, Bw = (t) => {
|
|
19534
19537
|
const {
|
|
19535
19538
|
record: e,
|
|
19536
19539
|
kanbanDef: n,
|
|
@@ -19548,7 +19551,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19548
19551
|
isSelected: g = !1,
|
|
19549
19552
|
activeId: h = null,
|
|
19550
19553
|
dropPosition: y = null
|
|
19551
|
-
} = t, { token: b } =
|
|
19554
|
+
} = t, { token: b } = Vw(), [v, C] = A(null), { showErrorNotification: S } = Rt(), [w, F] = Oe(
|
|
19552
19555
|
Y.getHandler().execute
|
|
19553
19556
|
);
|
|
19554
19557
|
ce(() => () => {
|
|
@@ -19688,9 +19691,9 @@ const Ra = ({ value: t }) => z(
|
|
|
19688
19691
|
...D,
|
|
19689
19692
|
...N,
|
|
19690
19693
|
children: [
|
|
19691
|
-
$ && /* @__PURE__ */ i(
|
|
19694
|
+
$ && /* @__PURE__ */ i(Lw, { $color: b.colorPrimary, $position: y }),
|
|
19692
19695
|
/* @__PURE__ */ U(
|
|
19693
|
-
|
|
19696
|
+
Nw,
|
|
19694
19697
|
{
|
|
19695
19698
|
size: "small",
|
|
19696
19699
|
onClick: V,
|
|
@@ -19710,8 +19713,8 @@ const Ra = ({ value: t }) => z(
|
|
|
19710
19713
|
}
|
|
19711
19714
|
},
|
|
19712
19715
|
children: [
|
|
19713
|
-
s && /* @__PURE__ */ i(
|
|
19714
|
-
a && /* @__PURE__ */ i(
|
|
19716
|
+
s && /* @__PURE__ */ i($w, { $color: s }),
|
|
19717
|
+
a && /* @__PURE__ */ i(Pw, { $color: a }),
|
|
19715
19718
|
/* @__PURE__ */ i("div", { style: { marginBottom: "8px" }, children: L.map(
|
|
19716
19719
|
(M, j) => P(M, j === 0)
|
|
19717
19720
|
) }),
|
|
@@ -19734,7 +19737,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19734
19737
|
]
|
|
19735
19738
|
}
|
|
19736
19739
|
);
|
|
19737
|
-
}, Fd = it(
|
|
19740
|
+
}, Fd = it(Bw), Hw = (t) => {
|
|
19738
19741
|
const {
|
|
19739
19742
|
model: e,
|
|
19740
19743
|
domain: n,
|
|
@@ -19904,7 +19907,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19904
19907
|
refresh: J,
|
|
19905
19908
|
fetchNextPage: ee
|
|
19906
19909
|
};
|
|
19907
|
-
}, { Text:
|
|
19910
|
+
}, { Text: jw } = Kt, Uw = (t) => {
|
|
19908
19911
|
const { visible: e, initialLimit: n, onSave: r, onCancel: o } = t, { t: s } = Ee(), [a, d] = A(n);
|
|
19909
19912
|
ce(() => {
|
|
19910
19913
|
d(n);
|
|
@@ -19958,13 +19961,13 @@ const Ra = ({ value: t }) => z(
|
|
|
19958
19961
|
autoFocus: !0
|
|
19959
19962
|
}
|
|
19960
19963
|
),
|
|
19961
|
-
/* @__PURE__ */ i(
|
|
19964
|
+
/* @__PURE__ */ i(jw, { type: "secondary", style: { marginTop: 8, display: "block" }, children: s("column_limit_description") })
|
|
19962
19965
|
] }) })
|
|
19963
19966
|
}
|
|
19964
19967
|
);
|
|
19965
|
-
}, { Text: Jr } = Kt, { useToken:
|
|
19968
|
+
}, { Text: Jr } = Kt, { useToken: Ww } = at, qw = En("IconListNumbers"), Yw = En("IconExternalLink"), Gw = En("IconArrowLeft"), zw = En("IconArrowRight"), Kw = En("IconArrowBarToLeft"), Jw = En(
|
|
19966
19969
|
"IconArrowBarToRight"
|
|
19967
|
-
),
|
|
19970
|
+
), Xw = (t, e) => {
|
|
19968
19971
|
const {
|
|
19969
19972
|
column: n,
|
|
19970
19973
|
model: r,
|
|
@@ -19999,7 +20002,7 @@ const Ra = ({ value: t }) => z(
|
|
|
19999
20002
|
id: _,
|
|
20000
20003
|
label: L,
|
|
20001
20004
|
originalValue: P
|
|
20002
|
-
} = n, { t: B } = Ee(), { token: G } =
|
|
20005
|
+
} = n, { t: B } = Ee(), { token: G } = Ww(), [V, $] = A(!1), {
|
|
20003
20006
|
records: M,
|
|
20004
20007
|
count: j,
|
|
20005
20008
|
aggregates: H,
|
|
@@ -20012,7 +20015,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20012
20015
|
hasMore: pe,
|
|
20013
20016
|
refresh: Z,
|
|
20014
20017
|
fetchNextPage: te
|
|
20015
|
-
} =
|
|
20018
|
+
} = Hw({
|
|
20016
20019
|
model: r,
|
|
20017
20020
|
domain: o,
|
|
20018
20021
|
context: s,
|
|
@@ -20052,12 +20055,12 @@ const Ra = ({ value: t }) => z(
|
|
|
20052
20055
|
{
|
|
20053
20056
|
key: "openInNewTab",
|
|
20054
20057
|
label: B("open_column_in_new_tab"),
|
|
20055
|
-
icon: /* @__PURE__ */ i(
|
|
20058
|
+
icon: /* @__PURE__ */ i(Yw, { size: 16 })
|
|
20056
20059
|
},
|
|
20057
20060
|
{
|
|
20058
20061
|
key: "setLimit",
|
|
20059
20062
|
label: B("set_limit"),
|
|
20060
|
-
icon: /* @__PURE__ */ i(
|
|
20063
|
+
icon: /* @__PURE__ */ i(qw, { size: 16 }),
|
|
20061
20064
|
disabled: !f
|
|
20062
20065
|
}
|
|
20063
20066
|
]
|
|
@@ -20069,19 +20072,19 @@ const Ra = ({ value: t }) => z(
|
|
|
20069
20072
|
{
|
|
20070
20073
|
key: "moveLeft",
|
|
20071
20074
|
label: B("move_left"),
|
|
20072
|
-
icon: /* @__PURE__ */ i(
|
|
20075
|
+
icon: /* @__PURE__ */ i(Gw, { size: 16 }),
|
|
20073
20076
|
disabled: D
|
|
20074
20077
|
},
|
|
20075
20078
|
{
|
|
20076
20079
|
key: "moveRight",
|
|
20077
20080
|
label: B("move_right"),
|
|
20078
|
-
icon: /* @__PURE__ */ i(
|
|
20081
|
+
icon: /* @__PURE__ */ i(zw, { size: 16 }),
|
|
20079
20082
|
disabled: N
|
|
20080
20083
|
},
|
|
20081
20084
|
{
|
|
20082
20085
|
key: "moveBefore",
|
|
20083
20086
|
label: B("move_before"),
|
|
20084
|
-
icon: /* @__PURE__ */ i(
|
|
20087
|
+
icon: /* @__PURE__ */ i(Kw, { size: 16 }),
|
|
20085
20088
|
disabled: $e.length === 0,
|
|
20086
20089
|
children: $e.map((xe) => ({
|
|
20087
20090
|
key: `moveBefore_${xe.id}`,
|
|
@@ -20091,7 +20094,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20091
20094
|
{
|
|
20092
20095
|
key: "moveAfter",
|
|
20093
20096
|
label: B("move_after"),
|
|
20094
|
-
icon: /* @__PURE__ */ i(
|
|
20097
|
+
icon: /* @__PURE__ */ i(Jw, { size: 16 }),
|
|
20095
20098
|
disabled: $e.length === 0,
|
|
20096
20099
|
children: $e.map((xe) => ({
|
|
20097
20100
|
key: `moveAfter_${xe.id}`,
|
|
@@ -20402,7 +20405,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20402
20405
|
}
|
|
20403
20406
|
),
|
|
20404
20407
|
/* @__PURE__ */ i(
|
|
20405
|
-
|
|
20408
|
+
Uw,
|
|
20406
20409
|
{
|
|
20407
20410
|
visible: V,
|
|
20408
20411
|
initialLimit: u,
|
|
@@ -20413,8 +20416,8 @@ const Ra = ({ value: t }) => z(
|
|
|
20413
20416
|
]
|
|
20414
20417
|
}
|
|
20415
20418
|
);
|
|
20416
|
-
},
|
|
20417
|
-
Ht(
|
|
20419
|
+
}, Qw = it(
|
|
20420
|
+
Ht(Xw)
|
|
20418
20421
|
), $n = (t, e, n) => {
|
|
20419
20422
|
if (t == null && (e == null ? void 0 : e.type) !== "boolean")
|
|
20420
20423
|
return null;
|
|
@@ -20476,7 +20479,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20476
20479
|
};
|
|
20477
20480
|
}
|
|
20478
20481
|
}
|
|
20479
|
-
},
|
|
20482
|
+
}, Zw = (t, e) => {
|
|
20480
20483
|
const [n, r] = Oe(
|
|
20481
20484
|
Y.getHandler().rawExecute
|
|
20482
20485
|
), [o, s] = Oe(
|
|
@@ -20500,7 +20503,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20500
20503
|
[a, o]
|
|
20501
20504
|
);
|
|
20502
20505
|
return { getColumnPrefs: d, saveColumnPrefs: c };
|
|
20503
|
-
},
|
|
20506
|
+
}, e0 = (t) => {
|
|
20504
20507
|
const e = ef(t);
|
|
20505
20508
|
if (e.length > 0)
|
|
20506
20509
|
return e;
|
|
@@ -20509,7 +20512,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20509
20512
|
id: o.id,
|
|
20510
20513
|
data: o.data
|
|
20511
20514
|
}));
|
|
20512
|
-
},
|
|
20515
|
+
}, t0 = (t, e) => {
|
|
20513
20516
|
var oe, _e;
|
|
20514
20517
|
const {
|
|
20515
20518
|
columns: n,
|
|
@@ -20534,7 +20537,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20534
20537
|
onOpenColumnInNewTab: w
|
|
20535
20538
|
} = t, { t: F } = Ee(), { showErrorNotification: x } = Rt(), [I, D] = A(null), [N, O] = A(null), [k, R] = A({}), [E, _] = A(null), [L, P] = A(
|
|
20536
20539
|
null
|
|
20537
|
-
), B = K({}), G = K({}), V = K({}), $ = K({}), M = K({}), j = K({}), [H, W] = A([]), J = K(!1), { getColumnPrefs: ee, saveColumnPrefs: X } =
|
|
20540
|
+
), B = K({}), G = K({}), V = K({}), $ = K({}), M = K({}), j = K({}), [H, W] = A([]), J = K(!1), { getColumnPrefs: ee, saveColumnPrefs: X } = Zw(
|
|
20538
20541
|
o,
|
|
20539
20542
|
r
|
|
20540
20543
|
);
|
|
@@ -20935,7 +20938,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20935
20938
|
cl,
|
|
20936
20939
|
{
|
|
20937
20940
|
sensors: q,
|
|
20938
|
-
collisionDetection:
|
|
20941
|
+
collisionDetection: e0,
|
|
20939
20942
|
onDragStart: fe,
|
|
20940
20943
|
onDragOver: me,
|
|
20941
20944
|
onDragEnd: Se,
|
|
@@ -20952,7 +20955,7 @@ const Ra = ({ value: t }) => z(
|
|
|
20952
20955
|
height: "100%"
|
|
20953
20956
|
},
|
|
20954
20957
|
children: de.map((Q, ne) => /* @__PURE__ */ i(
|
|
20955
|
-
|
|
20958
|
+
Qw,
|
|
20956
20959
|
{
|
|
20957
20960
|
ref: ke[Q.id],
|
|
20958
20961
|
kanbanDef: f,
|
|
@@ -21014,9 +21017,9 @@ const Ra = ({ value: t }) => z(
|
|
|
21014
21017
|
]
|
|
21015
21018
|
}
|
|
21016
21019
|
);
|
|
21017
|
-
},
|
|
21018
|
-
Ht(
|
|
21019
|
-
),
|
|
21020
|
+
}, n0 = it(
|
|
21021
|
+
Ht(t0)
|
|
21022
|
+
), r0 = (t) => {
|
|
21020
21023
|
const {
|
|
21021
21024
|
model: e,
|
|
21022
21025
|
domain: n,
|
|
@@ -21157,7 +21160,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21157
21160
|
error: g,
|
|
21158
21161
|
refresh: I
|
|
21159
21162
|
};
|
|
21160
|
-
},
|
|
21163
|
+
}, o0 = (t, e) => {
|
|
21161
21164
|
const {
|
|
21162
21165
|
kanbanView: n,
|
|
21163
21166
|
model: r,
|
|
@@ -21195,7 +21198,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21195
21198
|
columns: D,
|
|
21196
21199
|
isLoading: N,
|
|
21197
21200
|
error: O
|
|
21198
|
-
} =
|
|
21201
|
+
} = r0({
|
|
21199
21202
|
model: r,
|
|
21200
21203
|
domain: o,
|
|
21201
21204
|
context: s,
|
|
@@ -21273,7 +21276,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21273
21276
|
showIcon: !0
|
|
21274
21277
|
}
|
|
21275
21278
|
) : !C || N && D.length === 0 ? /* @__PURE__ */ i(ct, { size: "large" }) : /* @__PURE__ */ i(
|
|
21276
|
-
|
|
21279
|
+
n0,
|
|
21277
21280
|
{
|
|
21278
21281
|
ref: R,
|
|
21279
21282
|
kanbanDef: C,
|
|
@@ -21324,9 +21327,9 @@ const Ra = ({ value: t }) => z(
|
|
|
21324
21327
|
v
|
|
21325
21328
|
]);
|
|
21326
21329
|
return /* @__PURE__ */ i(Fe, { children: G });
|
|
21327
|
-
},
|
|
21328
|
-
Ht(
|
|
21329
|
-
),
|
|
21330
|
+
}, i0 = it(
|
|
21331
|
+
Ht(o0)
|
|
21332
|
+
), s0 = ({
|
|
21330
21333
|
selectedItems: t,
|
|
21331
21334
|
setSelectedItems: e,
|
|
21332
21335
|
getOrderedIds: n
|
|
@@ -21349,7 +21352,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21349
21352
|
e([]), r.current = null;
|
|
21350
21353
|
}, [e]);
|
|
21351
21354
|
return { handleSelect: o, clearSelection: s };
|
|
21352
|
-
},
|
|
21355
|
+
}, a0 = 10, l0 = (t) => {
|
|
21353
21356
|
const {
|
|
21354
21357
|
visible: e,
|
|
21355
21358
|
kanbanView: n,
|
|
@@ -21371,7 +21374,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21371
21374
|
setSearchTreeNameSearch: w
|
|
21372
21375
|
} = ss({ useLocalState: !1 }), [F, x] = A(!1), [I, D] = A(), [N, O] = A(null), [k, R] = A(null), E = d, _ = K(null), L = K(null), P = K(null), B = K({}), G = Gi({
|
|
21373
21376
|
elementRef: _,
|
|
21374
|
-
offset:
|
|
21377
|
+
offset: a0,
|
|
21375
21378
|
dependencies: [P.current],
|
|
21376
21379
|
observedRefs: [L, P]
|
|
21377
21380
|
}), V = z(
|
|
@@ -21415,7 +21418,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21415
21418
|
if (Le.includes(Ce))
|
|
21416
21419
|
return Le;
|
|
21417
21420
|
return null;
|
|
21418
|
-
}, []), { handleSelect: J, clearSelection: ee } =
|
|
21421
|
+
}, []), { handleSelect: J, clearSelection: ee } = s0({
|
|
21419
21422
|
selectedItems: g || [],
|
|
21420
21423
|
setSelectedItems: h || (() => {
|
|
21421
21424
|
}),
|
|
@@ -21600,7 +21603,7 @@ const Ra = ({ value: t }) => z(
|
|
|
21600
21603
|
style: V,
|
|
21601
21604
|
onClick: de,
|
|
21602
21605
|
children: /* @__PURE__ */ i(
|
|
21603
|
-
|
|
21606
|
+
i0,
|
|
21604
21607
|
{
|
|
21605
21608
|
ref: E,
|
|
21606
21609
|
kanbanView: n,
|
|
@@ -21636,8 +21639,8 @@ const Ra = ({ value: t }) => z(
|
|
|
21636
21639
|
}
|
|
21637
21640
|
)
|
|
21638
21641
|
] }) : null;
|
|
21639
|
-
},
|
|
21640
|
-
async function
|
|
21642
|
+
}, c0 = it(l0);
|
|
21643
|
+
async function d0(t) {
|
|
21641
21644
|
const e = await Promise.all(
|
|
21642
21645
|
t.map(async (r) => {
|
|
21643
21646
|
try {
|
|
@@ -21652,7 +21655,7 @@ async function c0(t) {
|
|
|
21652
21655
|
info: e[o]
|
|
21653
21656
|
})).filter((r) => r.info !== null);
|
|
21654
21657
|
}
|
|
21655
|
-
function
|
|
21658
|
+
function u0({
|
|
21656
21659
|
currentTab: t
|
|
21657
21660
|
}) {
|
|
21658
21661
|
const { currentView: e, searchParams: n, currentId: r, limit: o, currentPage: s, order: a } = Vt(), { currentTab: d } = pr(), c = t || d;
|
|
@@ -21673,8 +21676,8 @@ function d0({
|
|
|
21673
21676
|
let g = !!f;
|
|
21674
21677
|
return p === "form" && (g = !!f && !!r), { shareUrl: m, canShare: g };
|
|
21675
21678
|
}
|
|
21676
|
-
const
|
|
21677
|
-
const { currentTab: t } = pr(), { title: e } = Jt(), { shareUrl: n } =
|
|
21679
|
+
const f0 = () => {
|
|
21680
|
+
const { currentTab: t } = pr(), { title: e } = Jt(), { shareUrl: n } = u0({ currentTab: t });
|
|
21678
21681
|
ce(() => {
|
|
21679
21682
|
if (n) {
|
|
21680
21683
|
const r = new URL(n, window.location.origin);
|
|
@@ -21684,7 +21687,7 @@ const u0 = () => {
|
|
|
21684
21687
|
document.title = e, t != null && t.title && t.title.length > 0 && (document.title = (t == null ? void 0 : t.title) + " - " + e);
|
|
21685
21688
|
}, [t, e]);
|
|
21686
21689
|
};
|
|
21687
|
-
function
|
|
21690
|
+
function m0(t, e) {
|
|
21688
21691
|
const {
|
|
21689
21692
|
domain: n,
|
|
21690
21693
|
model: r,
|
|
@@ -21762,7 +21765,7 @@ function f0(t, e) {
|
|
|
21762
21765
|
viewTuple: Ge
|
|
21763
21766
|
});
|
|
21764
21767
|
}
|
|
21765
|
-
const xe = await
|
|
21768
|
+
const xe = await d0(Ue);
|
|
21766
21769
|
for (const Ge of xe) {
|
|
21767
21770
|
if (!Ge)
|
|
21768
21771
|
continue;
|
|
@@ -21947,7 +21950,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
21947
21950
|
}
|
|
21948
21951
|
}
|
|
21949
21952
|
return D || te ? /* @__PURE__ */ i(ct, {}) : w ? /* @__PURE__ */ U(
|
|
21950
|
-
|
|
21953
|
+
uv,
|
|
21951
21954
|
{
|
|
21952
21955
|
title: a,
|
|
21953
21956
|
currentView: w,
|
|
@@ -21982,7 +21985,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
21982
21985
|
permissionsError: se,
|
|
21983
21986
|
children: [
|
|
21984
21987
|
/* @__PURE__ */ i(
|
|
21985
|
-
|
|
21988
|
+
p0,
|
|
21986
21989
|
{
|
|
21987
21990
|
availableViews: x,
|
|
21988
21991
|
formRef: q,
|
|
@@ -22005,7 +22008,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
22005
22008
|
}
|
|
22006
22009
|
),
|
|
22007
22010
|
/* @__PURE__ */ i(
|
|
22008
|
-
|
|
22011
|
+
cw,
|
|
22009
22012
|
{
|
|
22010
22013
|
visible: H,
|
|
22011
22014
|
onIdSubmitted: Se,
|
|
@@ -22019,7 +22022,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
22019
22022
|
}
|
|
22020
22023
|
) : null;
|
|
22021
22024
|
}
|
|
22022
|
-
const
|
|
22025
|
+
const p0 = ({
|
|
22023
22026
|
availableViews: t,
|
|
22024
22027
|
formRef: e,
|
|
22025
22028
|
currentId: n,
|
|
@@ -22038,11 +22041,11 @@ const m0 = ({
|
|
|
22038
22041
|
searchNameSearch: h,
|
|
22039
22042
|
setCurrentView: y,
|
|
22040
22043
|
setCurrentId: b
|
|
22041
|
-
}) => (
|
|
22044
|
+
}) => (f0(), t.map((v) => {
|
|
22042
22045
|
switch (v.type) {
|
|
22043
22046
|
case "form":
|
|
22044
22047
|
return /* @__PURE__ */ i(
|
|
22045
|
-
|
|
22048
|
+
Ew,
|
|
22046
22049
|
{
|
|
22047
22050
|
formRef: e,
|
|
22048
22051
|
currentId: n,
|
|
@@ -22062,7 +22065,7 @@ const m0 = ({
|
|
|
22062
22065
|
);
|
|
22063
22066
|
case "tree":
|
|
22064
22067
|
return /* @__PURE__ */ i(
|
|
22065
|
-
|
|
22068
|
+
dv,
|
|
22066
22069
|
{
|
|
22067
22070
|
visible: r.type === v.type && r.view_id === v.view_id,
|
|
22068
22071
|
limit: p,
|
|
@@ -22083,7 +22086,7 @@ const m0 = ({
|
|
|
22083
22086
|
);
|
|
22084
22087
|
case "graph":
|
|
22085
22088
|
return /* @__PURE__ */ i(
|
|
22086
|
-
|
|
22089
|
+
fw,
|
|
22087
22090
|
{
|
|
22088
22091
|
visible: r.type === v.type && r.view_id === v.view_id,
|
|
22089
22092
|
viewData: v,
|
|
@@ -22100,7 +22103,7 @@ const m0 = ({
|
|
|
22100
22103
|
);
|
|
22101
22104
|
case "dashboard":
|
|
22102
22105
|
return /* @__PURE__ */ i(
|
|
22103
|
-
|
|
22106
|
+
Mw,
|
|
22104
22107
|
{
|
|
22105
22108
|
dashboardData: v,
|
|
22106
22109
|
visible: r.type === v.type && r.view_id === v.view_id
|
|
@@ -22109,7 +22112,7 @@ const m0 = ({
|
|
|
22109
22112
|
);
|
|
22110
22113
|
case "kanban":
|
|
22111
22114
|
return /* @__PURE__ */ i(
|
|
22112
|
-
|
|
22115
|
+
c0,
|
|
22113
22116
|
{
|
|
22114
22117
|
visible: r.type === v.type && r.view_id === v.view_id,
|
|
22115
22118
|
kanbanView: v,
|
|
@@ -22122,8 +22125,8 @@ const m0 = ({
|
|
|
22122
22125
|
`${v.type}-${v.view_id}`
|
|
22123
22126
|
);
|
|
22124
22127
|
}
|
|
22125
|
-
})), Rd = Ht(
|
|
22126
|
-
const
|
|
22128
|
+
})), Rd = Ht(m0);
|
|
22129
|
+
const h0 = Ju(Xu), g0 = (t) => {
|
|
22127
22130
|
const { children: e = [], onPositionItemsChanged: n } = t, r = an.Children.map(
|
|
22128
22131
|
e,
|
|
22129
22132
|
(o) => {
|
|
@@ -22132,7 +22135,7 @@ const p0 = Ju(Xu), h0 = (t) => {
|
|
|
22132
22135
|
}
|
|
22133
22136
|
);
|
|
22134
22137
|
return /* @__PURE__ */ i(
|
|
22135
|
-
|
|
22138
|
+
h0,
|
|
22136
22139
|
{
|
|
22137
22140
|
className: "layout",
|
|
22138
22141
|
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
@@ -22153,7 +22156,7 @@ const p0 = Ju(Xu), h0 = (t) => {
|
|
|
22153
22156
|
}
|
|
22154
22157
|
);
|
|
22155
22158
|
}, ni = "line_ids";
|
|
22156
|
-
function
|
|
22159
|
+
function y0(t, e) {
|
|
22157
22160
|
const { model: n, context: r = {}, id: o, configAction: s } = t, [a, d] = A([]), [c, l] = A(!1), [f, u] = A(), {
|
|
22158
22161
|
setIsLoading: m,
|
|
22159
22162
|
openAction: p,
|
|
@@ -22285,7 +22288,7 @@ function g0(t, e) {
|
|
|
22285
22288
|
async function O() {
|
|
22286
22289
|
p(s);
|
|
22287
22290
|
}
|
|
22288
|
-
return c ? /* @__PURE__ */ i(Gt, {}) : f ? (console.error(f), /* @__PURE__ */ i(Lt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ i(
|
|
22291
|
+
return c ? /* @__PURE__ */ i(Gt, {}) : f ? (console.error(f), /* @__PURE__ */ i(Lt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ i(g0, { onPositionItemsChanged: N, children: a.map((k, R) => {
|
|
22289
22292
|
const { actionData: E, values: _ } = k, { position: L, id: P } = _, {
|
|
22290
22293
|
actionId: B,
|
|
22291
22294
|
actionType: G,
|
|
@@ -22428,10 +22431,10 @@ function g0(t, e) {
|
|
|
22428
22431
|
);
|
|
22429
22432
|
}) });
|
|
22430
22433
|
}
|
|
22431
|
-
const
|
|
22434
|
+
const v0 = Ht(y0), b0 = (t) => {
|
|
22432
22435
|
const { ooui: e } = t;
|
|
22433
|
-
return /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(
|
|
22434
|
-
},
|
|
22436
|
+
return /* @__PURE__ */ i(tt, { type: "array", ...t, children: /* @__PURE__ */ i(w0, { ooui: e }) });
|
|
22437
|
+
}, w0 = (t) => {
|
|
22435
22438
|
const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, s = o.filter((I) => I.operation !== "pendingRemove").map((I) => I.id), [a, d] = A([]), [c, l] = A(), [f, u] = A(!1), { relation: m, context: p, readOnly: g, field: h, columns: y } = n, b = Ae(dt), { getContext: v } = b || {};
|
|
22436
22439
|
Xe(() => {
|
|
22437
22440
|
S();
|
|
@@ -22512,25 +22515,25 @@ const y0 = Ht(g0), v0 = (t) => {
|
|
|
22512
22515
|
/* @__PURE__ */ i(Je, { onClick: F, disabled: s.length === 0, children: "Uncheck all" })
|
|
22513
22516
|
] })
|
|
22514
22517
|
] }) });
|
|
22515
|
-
}, w0 = (t) => {
|
|
22516
|
-
const { ooui: e } = t, { required: n } = e;
|
|
22517
|
-
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(C0, { ...t }) });
|
|
22518
22518
|
}, C0 = (t) => {
|
|
22519
|
+
const { ooui: e } = t, { required: n } = e;
|
|
22520
|
+
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(x0, { ...t }) });
|
|
22521
|
+
}, x0 = (t) => {
|
|
22519
22522
|
const { ooui: e, onChange: n, value: r } = t, { selectionValues: o, readOnly: s, direction: a } = e, d = Array.from(o.entries()), c = d && d.length && d.map((l) => {
|
|
22520
22523
|
const [f, u] = l;
|
|
22521
22524
|
return /* @__PURE__ */ i(bs, { value: f, children: u }, f);
|
|
22522
22525
|
});
|
|
22523
22526
|
return /* @__PURE__ */ i(bs.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(ht, { direction: a, children: c }) });
|
|
22524
|
-
}, x0 = (t) => {
|
|
22525
|
-
const { ooui: e } = t, { id: n, readOnly: r, required: o } = e;
|
|
22526
|
-
return /* @__PURE__ */ i(tt, { ...t, valuePropName: "checked", children: /* @__PURE__ */ i(S0, { id: n, readOnly: r, required: o }) });
|
|
22527
22527
|
}, S0 = (t) => {
|
|
22528
|
+
const { ooui: e } = t, { id: n, readOnly: r, required: o } = e;
|
|
22529
|
+
return /* @__PURE__ */ i(tt, { ...t, valuePropName: "checked", children: /* @__PURE__ */ i(T0, { id: n, readOnly: r, required: o }) });
|
|
22530
|
+
}, T0 = (t) => {
|
|
22528
22531
|
const { required: e, readOnly: n, ...r } = t;
|
|
22529
22532
|
return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(jd, { disabled: n, ...r }) });
|
|
22530
|
-
}, T0 = (t) => {
|
|
22531
|
-
const { ooui: e } = t, { required: n } = e;
|
|
22532
|
-
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(_0, { ...t }) });
|
|
22533
22533
|
}, _0 = (t) => {
|
|
22534
|
+
const { ooui: e } = t, { required: n } = e;
|
|
22535
|
+
return /* @__PURE__ */ i(tt, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(I0, { ...t }) });
|
|
22536
|
+
}, I0 = (t) => {
|
|
22534
22537
|
const { ooui: e, value: n } = t, { selectionValues: r, errorField: o, lastStep: s } = e, a = Ae(dt);
|
|
22535
22538
|
let d = [], c;
|
|
22536
22539
|
e.fieldType === "json" && n ? (d = n.map((u) => [u.title, u.title]), c = n.findIndex((u) => u.active)) : (d = Array.from(r.entries()), c = d.map((u) => u[0]).indexOf(n));
|
|
@@ -22543,7 +22546,7 @@ const y0 = Ht(g0), v0 = (t) => {
|
|
|
22543
22546
|
},
|
|
22544
22547
|
u[1]
|
|
22545
22548
|
)) });
|
|
22546
|
-
},
|
|
22549
|
+
}, A0 = (t) => {
|
|
22547
22550
|
const {
|
|
22548
22551
|
token: {
|
|
22549
22552
|
colorPrimaryBg: e,
|
|
@@ -22606,7 +22609,7 @@ const y0 = Ht(g0), v0 = (t) => {
|
|
|
22606
22609
|
/* @__PURE__ */ i("div", { style: f }),
|
|
22607
22610
|
/* @__PURE__ */ i("div", { style: u(p.active) })
|
|
22608
22611
|
] }, g)) });
|
|
22609
|
-
},
|
|
22612
|
+
}, F0 = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(A0, {}) }), R0 = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(E0, { ...t }) }), E0 = (t) => {
|
|
22610
22613
|
const { ooui: e, value: n, onChange: r } = t, { lang: o, height: s, readOnly: a } = e, d = Ae(dt), { elementHasLostFocus: c } = d || {}, l = T(
|
|
22611
22614
|
(u) => {
|
|
22612
22615
|
c && u.onDidBlurEditorWidget(() => c());
|
|
@@ -22634,13 +22637,13 @@ const y0 = Ht(g0), v0 = (t) => {
|
|
|
22634
22637
|
onChange: r
|
|
22635
22638
|
}
|
|
22636
22639
|
);
|
|
22637
|
-
}, { Meta:
|
|
22640
|
+
}, { Meta: O0 } = Mr, { Text: k0 } = Kt, D0 = ({ email: t, size: e = 40, theme: n = "" }) => {
|
|
22638
22641
|
const r = `https://www.gravatar.com/avatar/${Ku(
|
|
22639
22642
|
t
|
|
22640
22643
|
)}?s=${e}&d=${n}`;
|
|
22641
22644
|
return /* @__PURE__ */ i(_i, { src: r, size: e });
|
|
22642
22645
|
};
|
|
22643
|
-
function
|
|
22646
|
+
function M0({ text: t }) {
|
|
22644
22647
|
const e = t.split(`
|
|
22645
22648
|
`);
|
|
22646
22649
|
return /* @__PURE__ */ i("div", { children: e.map((n, r) => /* @__PURE__ */ U(jn, { children: [
|
|
@@ -22648,13 +22651,13 @@ function D0({ text: t }) {
|
|
|
22648
22651
|
r !== e.length - 1 && /* @__PURE__ */ i("br", {})
|
|
22649
22652
|
] }, r)) });
|
|
22650
22653
|
}
|
|
22651
|
-
const
|
|
22654
|
+
const N0 = (t) => {
|
|
22652
22655
|
const { data: e, style: n } = t, { t: r } = Ee();
|
|
22653
22656
|
return /* @__PURE__ */ U(Mr, { style: { ...n, textAlign: "start" }, children: [
|
|
22654
22657
|
/* @__PURE__ */ i(
|
|
22655
|
-
|
|
22658
|
+
O0,
|
|
22656
22659
|
{
|
|
22657
|
-
avatar: /* @__PURE__ */ i(
|
|
22660
|
+
avatar: /* @__PURE__ */ i(D0, { email: e.email, theme: "mp" }),
|
|
22658
22661
|
title: e.author,
|
|
22659
22662
|
description: /* @__PURE__ */ U(ht, { direction: "horizontal", children: [
|
|
22660
22663
|
/* @__PURE__ */ i("span", { title: e.date, children: vt(e.date).fromNow() }),
|
|
@@ -22663,12 +22666,12 @@ const M0 = (t) => {
|
|
|
22663
22666
|
style: { marginBottom: "5px" }
|
|
22664
22667
|
}
|
|
22665
22668
|
),
|
|
22666
|
-
/* @__PURE__ */ i(
|
|
22669
|
+
/* @__PURE__ */ i(k0, { children: /* @__PURE__ */ i(M0, { text: e.text }) })
|
|
22667
22670
|
] }, e.id);
|
|
22668
22671
|
}, ka = (t) => {
|
|
22669
22672
|
const e = Mt(t);
|
|
22670
22673
|
return e && /* @__PURE__ */ i(e, {});
|
|
22671
|
-
},
|
|
22674
|
+
}, $0 = (t) => {
|
|
22672
22675
|
const { value: e, ooui: n } = t, r = (e || []).map((o) => {
|
|
22673
22676
|
if (o.type === "action")
|
|
22674
22677
|
return {
|
|
@@ -22680,7 +22683,7 @@ const M0 = (t) => {
|
|
|
22680
22683
|
color: "gray",
|
|
22681
22684
|
position: o.event.isSender ? "left" : "right",
|
|
22682
22685
|
label: o.event.date,
|
|
22683
|
-
children: /* @__PURE__ */ i(
|
|
22686
|
+
children: /* @__PURE__ */ i(N0, { data: o.event }),
|
|
22684
22687
|
dot: o.icon ? ka(o.icon) : void 0
|
|
22685
22688
|
};
|
|
22686
22689
|
});
|
|
@@ -22698,7 +22701,7 @@ const M0 = (t) => {
|
|
|
22698
22701
|
}
|
|
22699
22702
|
}
|
|
22700
22703
|
);
|
|
22701
|
-
},
|
|
22704
|
+
}, P0 = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i($0, { ooui: t.ooui }) }), L0 = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(Eu, {}) }), V0 = (t) => {
|
|
22702
22705
|
const { ooui: e } = t, n = Ae(dt);
|
|
22703
22706
|
let { title: r, text: o, alertType: s, icon: a, buttons: d } = e;
|
|
22704
22707
|
if (e.fieldType && e.id) {
|
|
@@ -22731,9 +22734,9 @@ const M0 = (t) => {
|
|
|
22731
22734
|
icon: c(a)
|
|
22732
22735
|
}
|
|
22733
22736
|
);
|
|
22734
|
-
}, { defaultAlgorithm:
|
|
22737
|
+
}, { defaultAlgorithm: B0, defaultSeed: H0 } = at, Da = B0(H0), j0 = (t) => {
|
|
22735
22738
|
const { ooui: e, responsiveBehaviour: n = !1 } = t;
|
|
22736
|
-
return /* @__PURE__ */ i(
|
|
22739
|
+
return /* @__PURE__ */ i(U0, { autoplay: e.autoPlay, dots: !0, autoplaySpeed: 5e3, children: e.items.map((r, o) => /* @__PURE__ */ i(
|
|
22737
22740
|
fs,
|
|
22738
22741
|
{
|
|
22739
22742
|
container: r.container,
|
|
@@ -22741,7 +22744,7 @@ const M0 = (t) => {
|
|
|
22741
22744
|
},
|
|
22742
22745
|
o
|
|
22743
22746
|
)) });
|
|
22744
|
-
},
|
|
22747
|
+
}, U0 = Ft(Ud)`
|
|
22745
22748
|
.slick-dots li button {
|
|
22746
22749
|
background-color: ${Da.colorPrimary};
|
|
22747
22750
|
}
|
|
@@ -22751,7 +22754,7 @@ const M0 = (t) => {
|
|
|
22751
22754
|
.slick-dots-bottom {
|
|
22752
22755
|
bottom: -15px;
|
|
22753
22756
|
}
|
|
22754
|
-
`,
|
|
22757
|
+
`, W0 = (t) => /* @__PURE__ */ i(tt, { ...t, children: /* @__PURE__ */ i(q0, { ...t }) }), q0 = (t) => {
|
|
22755
22758
|
const { ooui: e, value: n, onChange: r } = t;
|
|
22756
22759
|
return /* @__PURE__ */ i(
|
|
22757
22760
|
Pa,
|
|
@@ -22765,12 +22768,12 @@ const M0 = (t) => {
|
|
|
22765
22768
|
value: n
|
|
22766
22769
|
}
|
|
22767
22770
|
);
|
|
22768
|
-
}, { Content:
|
|
22769
|
-
function
|
|
22771
|
+
}, { Content: Y0 } = La, { Title: G0 } = Kt;
|
|
22772
|
+
function z0() {
|
|
22770
22773
|
const { t } = Ee();
|
|
22771
|
-
return /* @__PURE__ */ i(
|
|
22774
|
+
return /* @__PURE__ */ i(Y0, { className: "m-5 select-none", children: /* @__PURE__ */ i(G0, { level: 5, children: t("welcome") }) });
|
|
22772
22775
|
}
|
|
22773
|
-
function
|
|
22776
|
+
function K0(t, e) {
|
|
22774
22777
|
const { children: n } = t, [r, o] = A("welcome"), { t: s } = Ee(), { showErrorNotification: a } = Rt(), { globalValues: d, rootContext: c } = Jt(), l = Io(
|
|
22775
22778
|
Et.FEATURE_LOGGABLE_ACTIONS
|
|
22776
22779
|
), [f, u] = Oe(
|
|
@@ -22784,7 +22787,7 @@ function z0(t, e) {
|
|
|
22784
22787
|
title: s("welcome"),
|
|
22785
22788
|
key: "welcome",
|
|
22786
22789
|
closable: !0,
|
|
22787
|
-
content: /* @__PURE__ */ i(
|
|
22790
|
+
content: /* @__PURE__ */ i(z0, {}),
|
|
22788
22791
|
action: null
|
|
22789
22792
|
}
|
|
22790
22793
|
]), g = K(/* @__PURE__ */ new Map()), h = K();
|
|
@@ -23262,7 +23265,7 @@ function z0(t, e) {
|
|
|
23262
23265
|
});
|
|
23263
23266
|
}
|
|
23264
23267
|
return /* @__PURE__ */ i(
|
|
23265
|
-
|
|
23268
|
+
Km,
|
|
23266
23269
|
{
|
|
23267
23270
|
openShortcut: D,
|
|
23268
23271
|
openAction: O,
|
|
@@ -23280,7 +23283,7 @@ function z0(t, e) {
|
|
|
23280
23283
|
onReorderTabs: b,
|
|
23281
23284
|
onUpdateTabTitle: v,
|
|
23282
23285
|
children: /* @__PURE__ */ i(
|
|
23283
|
-
|
|
23286
|
+
ep,
|
|
23284
23287
|
{
|
|
23285
23288
|
ref: h,
|
|
23286
23289
|
globalValues: d,
|
|
@@ -23290,9 +23293,9 @@ function z0(t, e) {
|
|
|
23290
23293
|
}
|
|
23291
23294
|
);
|
|
23292
23295
|
}
|
|
23293
|
-
const
|
|
23294
|
-
function
|
|
23295
|
-
const { label: e, onClose: n, tabKey: r, isActive: o, onSelected: s, onTitleChange: a } = t, { token: d } =
|
|
23296
|
+
const ex = Ht(K0), { useToken: J0 } = at;
|
|
23297
|
+
function X0(t) {
|
|
23298
|
+
const { label: e, onClose: n, tabKey: r, isActive: o, onSelected: s, onTitleChange: a } = t, { token: d } = J0(), c = o ? d.colorBgContainer : d.colorPrimaryBg, [l, f] = A(!1), [u, m] = A(e), p = K(null), g = d.colorPrimaryActive, {
|
|
23296
23299
|
attributes: h,
|
|
23297
23300
|
listeners: y,
|
|
23298
23301
|
setNodeRef: b,
|
|
@@ -23453,7 +23456,7 @@ function J0(t) {
|
|
|
23453
23456
|
}
|
|
23454
23457
|
);
|
|
23455
23458
|
}
|
|
23456
|
-
function
|
|
23459
|
+
function tx() {
|
|
23457
23460
|
const t = Ae(
|
|
23458
23461
|
Xt
|
|
23459
23462
|
), {
|
|
@@ -23543,7 +23546,7 @@ function ex() {
|
|
|
23543
23546
|
items: g,
|
|
23544
23547
|
strategy: sf,
|
|
23545
23548
|
children: n.map((b) => /* @__PURE__ */ i(
|
|
23546
|
-
|
|
23549
|
+
X0,
|
|
23547
23550
|
{
|
|
23548
23551
|
tabKey: b.key,
|
|
23549
23552
|
label: b.title,
|
|
@@ -23559,7 +23562,7 @@ function ex() {
|
|
|
23559
23562
|
}
|
|
23560
23563
|
) }) });
|
|
23561
23564
|
}
|
|
23562
|
-
function
|
|
23565
|
+
function Q0(t) {
|
|
23563
23566
|
const { tab: e } = t, n = Ae(
|
|
23564
23567
|
Xt
|
|
23565
23568
|
), { activeKey: r } = n || {}, o = {
|
|
@@ -23567,21 +23570,21 @@ function X0(t) {
|
|
|
23567
23570
|
};
|
|
23568
23571
|
return /* @__PURE__ */ i("div", { style: e.key !== r ? o : void 0, children: e.content });
|
|
23569
23572
|
}
|
|
23570
|
-
const
|
|
23571
|
-
function
|
|
23573
|
+
const Z0 = an.memo(Q0, () => !0);
|
|
23574
|
+
function nx() {
|
|
23572
23575
|
const t = Ae(
|
|
23573
23576
|
Xt
|
|
23574
|
-
), { tabs: e } = t || {}, n = (e == null ? void 0 : e.map((r) => /* @__PURE__ */ i(
|
|
23577
|
+
), { tabs: e } = t || {}, n = (e == null ? void 0 : e.map((r) => /* @__PURE__ */ i(Z0, { tab: r }, r.key))) || null;
|
|
23575
23578
|
return /* @__PURE__ */ i(Fe, { children: n });
|
|
23576
23579
|
}
|
|
23577
|
-
const { useToken:
|
|
23580
|
+
const { useToken: eC } = at, rx = (t) => {
|
|
23578
23581
|
const {
|
|
23579
23582
|
onRetrieveShortcuts: e,
|
|
23580
23583
|
onCheckIsFavourite: n,
|
|
23581
23584
|
onAddFavourite: r,
|
|
23582
23585
|
onRemoveFavourite: o,
|
|
23583
23586
|
onDropdownClosed: s
|
|
23584
|
-
} = t, [a, d] = A(!1), [c, l] = A(), [f, u] = A(!1), [m, p] = A(""), { t: g } = Ee(), { token: h } =
|
|
23587
|
+
} = t, [a, d] = A(!1), [c, l] = A(), [f, u] = A(!1), [m, p] = A(""), { t: g } = Ee(), { token: h } = eC(), y = K(null), b = Ae(
|
|
23585
23588
|
Xt
|
|
23586
23589
|
), {
|
|
23587
23590
|
openShortcut: v,
|
|
@@ -23757,90 +23760,90 @@ const { useToken: Z0 } = at, nx = (t) => {
|
|
|
23757
23760
|
};
|
|
23758
23761
|
export {
|
|
23759
23762
|
di as ACTION_TYPE_REPORT,
|
|
23760
|
-
|
|
23761
|
-
|
|
23763
|
+
vm as ACTION_TYPE_UPDATE_TOKEN,
|
|
23764
|
+
gm as ACTION_TYPE_URL,
|
|
23762
23765
|
Fn as ACTION_TYPE_WINDOW,
|
|
23763
|
-
|
|
23766
|
+
hm as ACTION_TYPE_WINDOW_CLOSE,
|
|
23764
23767
|
Bl as ACTION_TYPE_WIZARD,
|
|
23765
|
-
|
|
23768
|
+
iw as ActionBar,
|
|
23766
23769
|
Rd as ActionView,
|
|
23767
|
-
|
|
23768
|
-
|
|
23769
|
-
|
|
23770
|
-
|
|
23770
|
+
uv as ActionViewProvider,
|
|
23771
|
+
V0 as Alert,
|
|
23772
|
+
F0 as ArrowStepsField,
|
|
23773
|
+
Xb as Binary,
|
|
23771
23774
|
Lf as Boolean,
|
|
23772
23775
|
Li as Button,
|
|
23773
23776
|
wf as ButtonGroup,
|
|
23774
|
-
|
|
23775
|
-
|
|
23777
|
+
Mv as Card,
|
|
23778
|
+
j0 as Carousel,
|
|
23776
23779
|
vl as Char,
|
|
23777
|
-
|
|
23778
|
-
|
|
23779
|
-
|
|
23780
|
+
R0 as CodeEditor,
|
|
23781
|
+
W0 as ColorPicker,
|
|
23782
|
+
P0 as CommentsTimelineField,
|
|
23780
23783
|
Vl as ConfigContext,
|
|
23781
|
-
|
|
23784
|
+
pm as ConfigContextProvider,
|
|
23782
23785
|
Y as ConnectionProvider,
|
|
23783
|
-
|
|
23784
|
-
|
|
23786
|
+
ep as ContentRootProvider,
|
|
23787
|
+
nx as CurrentTabContent,
|
|
23785
23788
|
Bt as DEFAULT_SEARCH_LIMIT,
|
|
23786
|
-
|
|
23787
|
-
|
|
23788
|
-
|
|
23789
|
-
|
|
23790
|
-
|
|
23791
|
-
|
|
23789
|
+
v0 as Dashboard,
|
|
23790
|
+
g0 as DashboardGrid,
|
|
23791
|
+
Wb as Date,
|
|
23792
|
+
qb as DateTime,
|
|
23793
|
+
lw as Email,
|
|
23794
|
+
QC as ErpAllFeatureKeys,
|
|
23792
23795
|
Et as ErpFeatureKeys,
|
|
23793
|
-
|
|
23794
|
-
|
|
23796
|
+
jb as ExportModal,
|
|
23797
|
+
rx as FavouriteButton,
|
|
23795
23798
|
Qi as Float,
|
|
23796
|
-
|
|
23799
|
+
_b as FloatTime,
|
|
23797
23800
|
yr as Form,
|
|
23798
|
-
|
|
23801
|
+
Ew as FormActionView,
|
|
23799
23802
|
kn as FormModal,
|
|
23800
23803
|
Qc as GraphCard,
|
|
23801
|
-
|
|
23804
|
+
xm as GraphIndicator,
|
|
23802
23805
|
wd as Group,
|
|
23803
|
-
|
|
23806
|
+
L0 as HTMLPreview,
|
|
23804
23807
|
jf as Icon,
|
|
23805
23808
|
Wf as Image,
|
|
23806
23809
|
Er as Integer,
|
|
23807
23810
|
So as Label,
|
|
23808
|
-
|
|
23809
|
-
|
|
23810
|
-
|
|
23811
|
+
ym as MODEL_ACTIONS,
|
|
23812
|
+
eb as Many2one,
|
|
23813
|
+
hw as Markdown,
|
|
23811
23814
|
hs as MarkdownInput,
|
|
23812
|
-
|
|
23813
|
-
|
|
23814
|
-
|
|
23815
|
-
|
|
23816
|
-
|
|
23817
|
-
|
|
23818
|
-
|
|
23819
|
-
|
|
23820
|
-
|
|
23815
|
+
b0 as MultiCheckbox,
|
|
23816
|
+
Rb as Notebook,
|
|
23817
|
+
xb as One2many,
|
|
23818
|
+
hp as ProgressBar,
|
|
23819
|
+
kv as QRCode,
|
|
23820
|
+
Dv as QRCodeInput,
|
|
23821
|
+
C0 as Radio,
|
|
23822
|
+
zb as Reference,
|
|
23823
|
+
ex as RootView,
|
|
23821
23824
|
Oo as SearchFilter,
|
|
23822
23825
|
Do as SearchModal,
|
|
23823
23826
|
Kc as SearchTree,
|
|
23824
23827
|
xl as Selection,
|
|
23825
|
-
|
|
23828
|
+
Db as Separator,
|
|
23826
23829
|
fo as Spinner,
|
|
23827
|
-
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
|
|
23832
|
-
|
|
23833
|
-
|
|
23834
|
-
|
|
23830
|
+
_0 as Steps,
|
|
23831
|
+
S0 as Switch,
|
|
23832
|
+
X0 as Tab,
|
|
23833
|
+
tx as TabSelector,
|
|
23834
|
+
_p as Tag,
|
|
23835
|
+
Iv as Tags,
|
|
23836
|
+
Ob as Text,
|
|
23837
|
+
Yb as Time,
|
|
23835
23838
|
qr as Tree,
|
|
23836
|
-
|
|
23837
|
-
|
|
23838
|
-
|
|
23839
|
+
dv as TreeActionView,
|
|
23840
|
+
aw as Url,
|
|
23841
|
+
ZC as UserAllFeatureKeys,
|
|
23839
23842
|
xi as UserAvatar,
|
|
23840
23843
|
wn as UserFeatureKeys,
|
|
23841
|
-
|
|
23844
|
+
sx as dayjs,
|
|
23842
23845
|
dn as showConfirmDialog,
|
|
23843
|
-
|
|
23846
|
+
gw as transformMentions,
|
|
23844
23847
|
gr as useBrowserVisibility
|
|
23845
23848
|
};
|
|
23846
23849
|
//# sourceMappingURL=react-ooui.es.js.map
|