@gisce/react-ooui 2.11.0-alpha.5 → 2.11.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/hooks/{useFormIndicatorData.d.ts → useFormGraphData.d.ts} +2 -2
- package/dist/hooks/useFormGraphData.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/react-ooui.es.js +579 -579
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/views/DashboardGrid/index.d.ts +0 -2
- package/dist/widgets/views/DashboardGrid/index.d.ts.map +1 -1
- package/dist/widgets/views/Graph/GraphCard.d.ts +3 -0
- package/dist/widgets/views/Graph/GraphCard.d.ts.map +1 -0
- package/dist/widgets/views/{DashboardGrid/DashboardGridItem.types.d.ts → Graph/GraphCard.types.d.ts} +2 -2
- package/dist/widgets/views/Graph/GraphCard.types.d.ts.map +1 -0
- package/dist/widgets/views/Graph/index.d.ts +3 -0
- package/dist/widgets/views/Graph/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/hooks/useFormIndicatorData.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +0 -3
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +0 -1
- package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +0 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -3,10 +3,10 @@ var Ci = (e, t, n) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Cr = (e, t, n) => (Ci(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { jsxs as D, jsx as i, Fragment as ie } from "react/jsx-runtime";
|
|
5
5
|
import ot, { useContext as Z, useState as v, useEffect as ue, useRef as re, memo as Wn, useMemo as Ie, useCallback as X, createContext as xi, forwardRef as pt, useImperativeHandle as ht, createElement as Si, Fragment as zr } from "react";
|
|
6
|
-
import { Tooltip as wt, theme as Ke, Typography as Pt, Form as dt, Row as Ve, Col as ye, Modal as Ze, Button as Ne, Dropdown as Ti, Menu as xr, Spin as je, Divider as pn, Space as
|
|
6
|
+
import { Tooltip as wt, theme as Ke, Typography as Pt, Form as dt, Row as Ve, Col as ye, Modal as Ze, Button as Ne, Dropdown as Ti, Menu as xr, Spin as je, Divider as pn, Space as Ue, Input as it, Select as Rt, Checkbox as Yt, Alert as Je, Timeline as Dn, Statistic as Ii, Card as Gn, Tag as Jr, message as Rn, DatePicker as Un, TimePicker as Fi, InputNumber as Xr, Progress as Ri, Avatar as Qr, Pagination as Oi, Badge as Vi, Tabs as Zr, Radio as Sr, Switch as _i, Steps as Tr, Layout as Ai } from "antd";
|
|
7
7
|
import { Label as Nt, Field as En, Tree as eo, Reference as Di, Selection as Yn, Many2one as to, Boolean as Ei, parseContext as St, graphProcessor as no, parseGraph as qn, graphFieldUtils as ki, Container as Mi, Form as ro, Integer as kn, SearchFieldTypes as yt, SearchFilter as Pi, parseContextFields as Ni, parseDomainFields as Li, transformDomainForChildWidget as zn } from "@gisce/ooui";
|
|
8
8
|
import * as Ir from "@ant-design/icons";
|
|
9
|
-
import oo, { QuestionCircleOutlined as io, ExclamationCircleOutlined as vt, LoadingOutlined as gt, DownOutlined as hn, WarningOutlined as so, CloseOutlined as en, CheckOutlined as gn, TranslationOutlined as ao, FolderOpenOutlined as Jn, DownloadOutlined as Xn, ClearOutlined as Qn, ExportOutlined as $i, StarFilled as Hi, StarOutlined as Bi, UpOutlined as ji, SearchOutlined as Zn, ThunderboltOutlined as er, PrinterOutlined as tr, EnterOutlined as nr, PlusSquareOutlined as Ki, MinusSquareOutlined as Wi, FileAddOutlined as yn, AlignLeftOutlined as
|
|
9
|
+
import oo, { QuestionCircleOutlined as io, ExclamationCircleOutlined as vt, LoadingOutlined as gt, DownOutlined as hn, WarningOutlined as so, CloseOutlined as en, CheckOutlined as gn, TranslationOutlined as ao, FolderOpenOutlined as Jn, DownloadOutlined as Xn, ClearOutlined as Qn, ExportOutlined as $i, StarFilled as Hi, StarOutlined as Bi, UpOutlined as ji, SearchOutlined as Zn, ThunderboltOutlined as er, PrinterOutlined as tr, EnterOutlined as nr, PlusSquareOutlined as Ki, MinusSquareOutlined as Wi, FileAddOutlined as yn, AlignLeftOutlined as Gi, ApiOutlined as Ui, DeleteOutlined as rr, LeftOutlined as co, RightOutlined as lo, EyeOutlined as Yi, FormOutlined as qt, TableOutlined as or, AreaChartOutlined as qi, CalendarOutlined as zi, LinkOutlined as Fr, SaveOutlined as Ji, CopyOutlined as ir, InfoCircleOutlined as uo, ReloadOutlined as wn, EditOutlined as fo, PlusOutlined as Xi, FilterOutlined as mo, CloseCircleFilled as Qi, BorderOuterOutlined as Zi, SettingOutlined as es } from "@ant-design/icons";
|
|
10
10
|
import { Interweave as zt } from "interweave";
|
|
11
11
|
import { useLocale as he, FormigaConfigProvider as ts, mergeStrings as ns, Many2OneSuffix as rs, Many2OneSuffixModal as Rr, FieldSet as os, ExportModal as is, Dropdown as po, DropdownButton as Et, HTMLPreview as ss, FavouriteButton as as } from "@gisce/react-formiga-components";
|
|
12
12
|
import * as Or from "@tabler/icons-react";
|
|
@@ -36,15 +36,15 @@ import "@gisce/react-formiga-table/style.css";
|
|
|
36
36
|
import Fs from "antd/es/typography/Link";
|
|
37
37
|
import cr from "antd/es/alert/ErrorBoundary";
|
|
38
38
|
import { GridUi as Rs } from "@gisce/fiber-diagram";
|
|
39
|
-
import
|
|
39
|
+
import Os from "validator/lib/isURL";
|
|
40
|
+
import Vs from "validator/lib/isEmail";
|
|
41
|
+
import { useHotkeys as _s } from "react-hotkeys-hook";
|
|
42
|
+
import As from "react-markdown";
|
|
43
|
+
import Ds from "remark-gfm";
|
|
44
|
+
import Es from "@monaco-editor/react";
|
|
45
|
+
import ks from "md5";
|
|
46
|
+
import { WidthProvider as Ms, Responsive as Ps } from "react-grid-layout";
|
|
40
47
|
import "react-grid-layout/css/styles.css";
|
|
41
|
-
import _s from "validator/lib/isURL";
|
|
42
|
-
import As from "validator/lib/isEmail";
|
|
43
|
-
import { useHotkeys as Ds } from "react-hotkeys-hook";
|
|
44
|
-
import Es from "react-markdown";
|
|
45
|
-
import ks from "remark-gfm";
|
|
46
|
-
import Ms from "@monaco-editor/react";
|
|
47
|
-
import Ps from "md5";
|
|
48
48
|
const { Text: Ns, Title: Ls } = Pt, { useToken: $s } = Ke, Hs = {
|
|
49
49
|
left: "justify-start",
|
|
50
50
|
center: "justify-center",
|
|
@@ -398,7 +398,7 @@ const go = (e) => {
|
|
|
398
398
|
icon: /* @__PURE__ */ i(hn, {}),
|
|
399
399
|
type: u ? "primary" : void 0,
|
|
400
400
|
overlay: /* @__PURE__ */ i(
|
|
401
|
-
|
|
401
|
+
Gs,
|
|
402
402
|
{
|
|
403
403
|
ooui: o,
|
|
404
404
|
executeButtonAction: m
|
|
@@ -412,7 +412,7 @@ const go = (e) => {
|
|
|
412
412
|
) });
|
|
413
413
|
if (n)
|
|
414
414
|
return /* @__PURE__ */ i(go, { ooui: n });
|
|
415
|
-
},
|
|
415
|
+
}, Gs = (e) => {
|
|
416
416
|
const { t } = he(), { ooui: n, executeButtonAction: o } = e;
|
|
417
417
|
if (!n)
|
|
418
418
|
return null;
|
|
@@ -465,7 +465,7 @@ const go = (e) => {
|
|
|
465
465
|
);
|
|
466
466
|
});
|
|
467
467
|
return /* @__PURE__ */ i(xr, { children: r });
|
|
468
|
-
},
|
|
468
|
+
}, Us = 0.7;
|
|
469
469
|
function Ar() {
|
|
470
470
|
const { innerWidth: e, innerHeight: t } = window;
|
|
471
471
|
return {
|
|
@@ -483,7 +483,7 @@ function bn() {
|
|
|
483
483
|
}
|
|
484
484
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
485
485
|
}, []), {
|
|
486
|
-
modalWidth: e.width *
|
|
486
|
+
modalWidth: e.width * Us,
|
|
487
487
|
modalHeight: e.height,
|
|
488
488
|
width: e.width,
|
|
489
489
|
height: e.height
|
|
@@ -607,7 +607,7 @@ const yo = (e) => {
|
|
|
607
607
|
return l ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ D(ie, { children: [
|
|
608
608
|
C(),
|
|
609
609
|
/* @__PURE__ */ i(pn, {}),
|
|
610
|
-
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(
|
|
610
|
+
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
|
|
611
611
|
/* @__PURE__ */ i(
|
|
612
612
|
Ne,
|
|
613
613
|
{
|
|
@@ -859,7 +859,7 @@ const la = (e) => {
|
|
|
859
859
|
}
|
|
860
860
|
)
|
|
861
861
|
] }),
|
|
862
|
-
/* @__PURE__ */ i(Ve, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ D(
|
|
862
|
+
/* @__PURE__ */ i(Ve, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ D(Ue, { children: [
|
|
863
863
|
/* @__PURE__ */ i(
|
|
864
864
|
ze,
|
|
865
865
|
{
|
|
@@ -1851,9 +1851,9 @@ const { getValueForOperator: kr } = no, Va = (e) => {
|
|
|
1851
1851
|
}, [t, r]);
|
|
1852
1852
|
async function K({
|
|
1853
1853
|
domain: M,
|
|
1854
|
-
isTotal:
|
|
1854
|
+
isTotal: U
|
|
1855
1855
|
}) {
|
|
1856
|
-
if (
|
|
1856
|
+
if (U)
|
|
1857
1857
|
return await j({ domain: M });
|
|
1858
1858
|
if (f && u) {
|
|
1859
1859
|
const z = l || await _({
|
|
@@ -1879,13 +1879,13 @@ const { getValueForOperator: kr } = no, Va = (e) => {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
async function j({ domain: M }) {
|
|
1881
1881
|
if (f && u) {
|
|
1882
|
-
const
|
|
1882
|
+
const U = await _({
|
|
1883
1883
|
params: M,
|
|
1884
1884
|
model: t,
|
|
1885
1885
|
context: o
|
|
1886
1886
|
}), z = await x({
|
|
1887
1887
|
model: t,
|
|
1888
|
-
ids:
|
|
1888
|
+
ids: U,
|
|
1889
1889
|
fieldsToRetrieve: [f],
|
|
1890
1890
|
context: o
|
|
1891
1891
|
});
|
|
@@ -1902,7 +1902,7 @@ const { getValueForOperator: kr } = no, Va = (e) => {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
async function W() {
|
|
1904
1904
|
h(!0), S(void 0);
|
|
1905
|
-
let M,
|
|
1905
|
+
let M, U;
|
|
1906
1906
|
try {
|
|
1907
1907
|
const z = await K({ domain: n, isTotal: !1 });
|
|
1908
1908
|
if (g(z), s) {
|
|
@@ -1916,10 +1916,10 @@ const { getValueForOperator: kr } = no, Va = (e) => {
|
|
|
1916
1916
|
isTotal: !0
|
|
1917
1917
|
}), T(M);
|
|
1918
1918
|
}
|
|
1919
|
-
if (M ? (
|
|
1919
|
+
if (M ? (U = Math.round(z / M * 100 * 100) / 100, w(U)) : w(0), r) {
|
|
1920
1920
|
const J = await N({
|
|
1921
1921
|
condition: r,
|
|
1922
|
-
values: { value: z, percent:
|
|
1922
|
+
values: { value: z, percent: U },
|
|
1923
1923
|
context: o
|
|
1924
1924
|
});
|
|
1925
1925
|
C(J);
|
|
@@ -1928,7 +1928,7 @@ const { getValueForOperator: kr } = no, Va = (e) => {
|
|
|
1928
1928
|
if (c.indexOf(":") !== -1) {
|
|
1929
1929
|
const J = await N({
|
|
1930
1930
|
condition: c,
|
|
1931
|
-
values: { value: z, percent:
|
|
1931
|
+
values: { value: z, percent: U },
|
|
1932
1932
|
context: o
|
|
1933
1933
|
});
|
|
1934
1934
|
V(J);
|
|
@@ -2388,7 +2388,7 @@ const ja = (e) => {
|
|
|
2388
2388
|
setSearchTreeNameSearch: V,
|
|
2389
2389
|
goToResourceId: I,
|
|
2390
2390
|
limit: S
|
|
2391
|
-
} = e, [_, x] = v(!1), [O, A] = v(!1), [N, K] = v(!1), [j, W] = v(!0), [M,
|
|
2391
|
+
} = e, [_, x] = v(!1), [O, A] = v(!1), [N, K] = v(!1), [j, W] = v(!0), [M, U] = v(!0), [z, J] = v([]), [Y, B] = v(!1), [E, L] = v([]), [$, de] = v(!1), [ee, oe] = v(!0), [ve, Q] = v(), [ae, xe] = v({}), [De, Ee] = v(
|
|
2392
2392
|
S !== void 0 ? S : Ft
|
|
2393
2393
|
), [ke, fe] = v(o);
|
|
2394
2394
|
ue(() => {
|
|
@@ -2440,7 +2440,7 @@ const ja = (e) => {
|
|
|
2440
2440
|
formIsLoading: j,
|
|
2441
2441
|
setFormIsLoading: W,
|
|
2442
2442
|
treeIsLoading: M,
|
|
2443
|
-
setTreeIsLoading:
|
|
2443
|
+
setTreeIsLoading: U,
|
|
2444
2444
|
attachments: z,
|
|
2445
2445
|
setAttachments: J,
|
|
2446
2446
|
selectedRowItems: C,
|
|
@@ -2542,7 +2542,7 @@ const ja = (e) => {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
}, $t = pt(Wa);
|
|
2544
2544
|
var rn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e))(rn || {});
|
|
2545
|
-
const Cf = Object.values(rn),
|
|
2545
|
+
const Cf = Object.values(rn), Ga = (e) => {
|
|
2546
2546
|
const { model: t, domain: n = [], context: o = {}, view_id: r, manualIds: s } = e, [a, c] = v(!1), [d, f] = v(), [u, l] = v(), [p] = Xe(
|
|
2547
2547
|
k.getHandler().readForView
|
|
2548
2548
|
), h = X(async () => {
|
|
@@ -2566,10 +2566,10 @@ const Cf = Object.values(rn), Ua = (e) => {
|
|
|
2566
2566
|
fetchData: h,
|
|
2567
2567
|
graphData: u
|
|
2568
2568
|
};
|
|
2569
|
-
},
|
|
2569
|
+
}, Ua = (e, t) => {
|
|
2570
2570
|
const { view_id: n, model: o, context: r, domain: s, manualIds: a } = e, c = Z(
|
|
2571
2571
|
nt
|
|
2572
|
-
), { setGraphIsLoading: d = void 0 } = c || {}, { error: f, loading: u, graphData: l, fetchData: p } =
|
|
2572
|
+
), { setGraphIsLoading: d = void 0 } = c || {}, { error: f, loading: u, graphData: l, fetchData: p } = Ga({
|
|
2573
2573
|
view_id: n,
|
|
2574
2574
|
model: o,
|
|
2575
2575
|
domain: s,
|
|
@@ -2623,38 +2623,40 @@ const Cf = Object.values(rn), Ua = (e) => {
|
|
|
2623
2623
|
default:
|
|
2624
2624
|
return /* @__PURE__ */ i(ie, { children: `Graph ${l.type} not implemented` });
|
|
2625
2625
|
}
|
|
2626
|
-
}, Eo = pt(
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2626
|
+
}, Eo = pt(Ua), at = ot.createContext(null), Ya = (e) => {
|
|
2627
|
+
const {
|
|
2628
|
+
children: t,
|
|
2629
|
+
openAction: n,
|
|
2630
|
+
openRelate: o,
|
|
2631
|
+
openDefaultActionForModel: r,
|
|
2632
|
+
openShortcut: s,
|
|
2633
|
+
activeKey: a,
|
|
2634
|
+
onChangeTab: c,
|
|
2635
|
+
onRemoveTab: d,
|
|
2636
|
+
tabs: f
|
|
2637
|
+
} = e, [u, l] = v(), [p, h] = v();
|
|
2635
2638
|
return /* @__PURE__ */ i(
|
|
2636
|
-
|
|
2639
|
+
at.Provider,
|
|
2637
2640
|
{
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
);
|
|
2641
|
+
value: {
|
|
2642
|
+
openAction: n,
|
|
2643
|
+
openRelate: o,
|
|
2644
|
+
openDefaultActionForModel: r,
|
|
2645
|
+
activeKey: a,
|
|
2646
|
+
openShortcut: s,
|
|
2647
|
+
onChangeTab: c,
|
|
2648
|
+
onRemoveTab: d,
|
|
2649
|
+
tabs: f,
|
|
2650
|
+
currentId: p,
|
|
2651
|
+
currentView: u,
|
|
2652
|
+
setCurrentId: h,
|
|
2653
|
+
setCurrentView: l
|
|
2652
2654
|
},
|
|
2653
|
-
children:
|
|
2655
|
+
children: t
|
|
2654
2656
|
}
|
|
2655
2657
|
);
|
|
2656
|
-
}, { useToken:
|
|
2657
|
-
const { title: t, children: n, action: o, openAction: r, parms: s } = e, { token: a } =
|
|
2658
|
+
}, { useToken: qa } = Ke, { Text: za } = Pt, ko = (e) => {
|
|
2659
|
+
const { title: t, children: n, action: o, openAction: r, parms: s } = e, { token: a } = qa(), c = Object.keys(s).length > 0;
|
|
2658
2660
|
return /* @__PURE__ */ D(
|
|
2659
2661
|
"div",
|
|
2660
2662
|
{
|
|
@@ -2690,7 +2692,7 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2690
2692
|
cursor: c ? "grab" : void 0,
|
|
2691
2693
|
overflow: "hidden"
|
|
2692
2694
|
},
|
|
2693
|
-
children: /* @__PURE__ */ i(
|
|
2695
|
+
children: /* @__PURE__ */ i(za, { ellipsis: !0, children: t })
|
|
2694
2696
|
}
|
|
2695
2697
|
),
|
|
2696
2698
|
o && /* @__PURE__ */ i(ye, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(Ve, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
|
|
@@ -2709,43 +2711,11 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2709
2711
|
]
|
|
2710
2712
|
}
|
|
2711
2713
|
);
|
|
2712
|
-
},
|
|
2713
|
-
const {
|
|
2714
|
-
children: t,
|
|
2715
|
-
openAction: n,
|
|
2716
|
-
openRelate: o,
|
|
2717
|
-
openDefaultActionForModel: r,
|
|
2718
|
-
openShortcut: s,
|
|
2719
|
-
activeKey: a,
|
|
2720
|
-
onChangeTab: c,
|
|
2721
|
-
onRemoveTab: d,
|
|
2722
|
-
tabs: f
|
|
2723
|
-
} = e, [u, l] = v(), [p, h] = v();
|
|
2724
|
-
return /* @__PURE__ */ i(
|
|
2725
|
-
at.Provider,
|
|
2726
|
-
{
|
|
2727
|
-
value: {
|
|
2728
|
-
openAction: n,
|
|
2729
|
-
openRelate: o,
|
|
2730
|
-
openDefaultActionForModel: r,
|
|
2731
|
-
activeKey: a,
|
|
2732
|
-
openShortcut: s,
|
|
2733
|
-
onChangeTab: c,
|
|
2734
|
-
onRemoveTab: d,
|
|
2735
|
-
tabs: f,
|
|
2736
|
-
currentId: p,
|
|
2737
|
-
currentView: u,
|
|
2738
|
-
setCurrentId: h,
|
|
2739
|
-
setCurrentView: l
|
|
2740
|
-
},
|
|
2741
|
-
children: t
|
|
2742
|
-
}
|
|
2743
|
-
);
|
|
2744
|
-
}, { useToken: Qa } = Ke, Za = (e) => {
|
|
2714
|
+
}, { useToken: Ja } = Ke, Xa = (e) => {
|
|
2745
2715
|
const { ooui: t } = e, n = t.actionId !== void 0;
|
|
2746
|
-
return /* @__PURE__ */ i(Ce, { ooui: t, children: n ? /* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(
|
|
2747
|
-
},
|
|
2748
|
-
const { token: t } =
|
|
2716
|
+
return /* @__PURE__ */ i(Ce, { ooui: t, children: n ? /* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(Za, { ooui: t }) }) : /* @__PURE__ */ i(Qa, { ooui: t }) });
|
|
2717
|
+
}, Qa = (e) => {
|
|
2718
|
+
const { token: t } = Ja(), { ooui: n, value: o } = e, r = /* @__PURE__ */ D(ie, { children: [
|
|
2749
2719
|
/* @__PURE__ */ D("span", { children: [
|
|
2750
2720
|
n.label,
|
|
2751
2721
|
" "
|
|
@@ -2769,8 +2739,8 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2769
2739
|
value: a
|
|
2770
2740
|
}
|
|
2771
2741
|
);
|
|
2772
|
-
return n.card ? /* @__PURE__ */ i(
|
|
2773
|
-
},
|
|
2742
|
+
return n.card ? /* @__PURE__ */ i(Gn, { children: c }) : c;
|
|
2743
|
+
}, Za = (e) => {
|
|
2774
2744
|
const { ooui: t } = e, { actionId: n } = t, { actionData: o, treeShortcut: r, loading: s, error: a } = Fa(n), c = fr(
|
|
2775
2745
|
rn.FEATURE_READFORVIEW
|
|
2776
2746
|
), d = Z(
|
|
@@ -2801,7 +2771,7 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2801
2771
|
)
|
|
2802
2772
|
}
|
|
2803
2773
|
);
|
|
2804
|
-
},
|
|
2774
|
+
}, ec = (e, t) => {
|
|
2805
2775
|
if (!t)
|
|
2806
2776
|
return e;
|
|
2807
2777
|
const n = {};
|
|
@@ -2815,7 +2785,7 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2815
2785
|
} else
|
|
2816
2786
|
n[o] = e[o];
|
|
2817
2787
|
}), n;
|
|
2818
|
-
}, At = (e, t) =>
|
|
2788
|
+
}, At = (e, t) => ec(e, t), Vn = ({
|
|
2819
2789
|
source: e,
|
|
2820
2790
|
target: t,
|
|
2821
2791
|
fields: n
|
|
@@ -2848,7 +2818,7 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2848
2818
|
else
|
|
2849
2819
|
e[r] === void 0 && t[r] !== void 0 ? o[r] = t[r] : e[r] !== t[r] && (t[r] === void 0 ? o[r] = null : o[r] = t[r]);
|
|
2850
2820
|
}), o;
|
|
2851
|
-
},
|
|
2821
|
+
}, tc = ({
|
|
2852
2822
|
changedFields: e,
|
|
2853
2823
|
formOoui: t,
|
|
2854
2824
|
types: n
|
|
@@ -2856,7 +2826,7 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2856
2826
|
var a;
|
|
2857
2827
|
const s = (a = t == null ? void 0 : t.findById(r)) == null ? void 0 : a.type;
|
|
2858
2828
|
return n.includes(s);
|
|
2859
|
-
}).some((r) => r === !0),
|
|
2829
|
+
}).some((r) => r === !0), nc = ({
|
|
2860
2830
|
fieldsDomain: e,
|
|
2861
2831
|
fields: t
|
|
2862
2832
|
}) => {
|
|
@@ -2864,12 +2834,12 @@ const Ya = Os(Vs), qa = (e) => {
|
|
|
2864
2834
|
return Object.keys(t).forEach((o) => {
|
|
2865
2835
|
n[o] = t[o], e[o] && (n[o].domain = e[o]);
|
|
2866
2836
|
}), n;
|
|
2867
|
-
},
|
|
2837
|
+
}, rc = (e) => {
|
|
2868
2838
|
const t = {};
|
|
2869
2839
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
|
|
2870
2840
|
(n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
|
|
2871
2841
|
}), t);
|
|
2872
|
-
},
|
|
2842
|
+
}, oc = ({
|
|
2873
2843
|
onChangeFieldActionArgs: e,
|
|
2874
2844
|
values: t,
|
|
2875
2845
|
parentValues: n = {}
|
|
@@ -2930,10 +2900,10 @@ const Ot = ({
|
|
|
2930
2900
|
n += ("00" + r.toString(16)).slice(-2);
|
|
2931
2901
|
}
|
|
2932
2902
|
return n;
|
|
2933
|
-
},
|
|
2903
|
+
}, ic = (e, t) => e.replace(
|
|
2934
2904
|
/\{([^}]+)\}/g,
|
|
2935
2905
|
(n, o) => t[o] !== void 0 ? t[o] : n
|
|
2936
|
-
), Lr = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""),
|
|
2906
|
+
), Lr = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), sc = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Po, { ...e }) }), Po = (e) => {
|
|
2937
2907
|
const { ooui: t, value: n } = e;
|
|
2938
2908
|
let o = n, r = n;
|
|
2939
2909
|
if (t.selectionValues.size ? o = t.selectionValues.get(n) : Array.isArray(n) && (r = n[0], o = n[1]), !n)
|
|
@@ -2948,10 +2918,10 @@ const Ot = ({
|
|
|
2948
2918
|
borderStyle: "solid",
|
|
2949
2919
|
borderWidth: "1px"
|
|
2950
2920
|
}, t = `${t}20`), /* @__PURE__ */ i(Jr, { ...e, style: n, color: t, children: e.children });
|
|
2951
|
-
},
|
|
2921
|
+
}, ac = (e) => {
|
|
2952
2922
|
const { ooui: t } = e;
|
|
2953
|
-
return /* @__PURE__ */ i(Ce, { type: "array", ...e, children: /* @__PURE__ */ i(
|
|
2954
|
-
},
|
|
2923
|
+
return /* @__PURE__ */ i(Ce, { type: "array", ...e, children: /* @__PURE__ */ i(cc, { ooui: t }) });
|
|
2924
|
+
}, cc = (e) => {
|
|
2955
2925
|
const { value: t, ooui: n, onChange: o } = e, { items: r = [] } = t || {}, s = r.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, c] = v([]), [d, f] = v(), [u, l] = v(!1), { relation: p, context: h, readOnly: m, field: g } = n, y = Z(Le), { getContext: w } = y || {};
|
|
2956
2926
|
bt(() => {
|
|
2957
2927
|
T();
|
|
@@ -3032,14 +3002,14 @@ const Ot = ({
|
|
|
3032
3002
|
filterOption: (R, V) => V.label.toLowerCase().includes(R.toString())
|
|
3033
3003
|
}
|
|
3034
3004
|
) }) });
|
|
3035
|
-
},
|
|
3005
|
+
}, lc = (e) => {
|
|
3036
3006
|
switch (e) {
|
|
3037
3007
|
case "form":
|
|
3038
3008
|
return jt;
|
|
3039
3009
|
case "tree":
|
|
3040
3010
|
return on;
|
|
3041
3011
|
case "notebook":
|
|
3042
|
-
return
|
|
3012
|
+
return nd;
|
|
3043
3013
|
case "group":
|
|
3044
3014
|
return Zo;
|
|
3045
3015
|
case "label":
|
|
@@ -3047,7 +3017,7 @@ const Ot = ({
|
|
|
3047
3017
|
case "char":
|
|
3048
3018
|
return vo;
|
|
3049
3019
|
case "text":
|
|
3050
|
-
return
|
|
3020
|
+
return od;
|
|
3051
3021
|
case "button":
|
|
3052
3022
|
return go;
|
|
3053
3023
|
case "buttonGroup":
|
|
@@ -3055,7 +3025,7 @@ const Ot = ({
|
|
|
3055
3025
|
case "selection":
|
|
3056
3026
|
return bo;
|
|
3057
3027
|
case "many2one":
|
|
3058
|
-
return
|
|
3028
|
+
return Vl;
|
|
3059
3029
|
case "boolean":
|
|
3060
3030
|
return ia;
|
|
3061
3031
|
case "integer":
|
|
@@ -3063,41 +3033,41 @@ const Ot = ({
|
|
|
3063
3033
|
case "float":
|
|
3064
3034
|
return Lo;
|
|
3065
3035
|
case "progressbar":
|
|
3066
|
-
return
|
|
3036
|
+
return rl;
|
|
3067
3037
|
case "date":
|
|
3068
|
-
return
|
|
3038
|
+
return gd;
|
|
3069
3039
|
case "datetime":
|
|
3070
|
-
return
|
|
3040
|
+
return yd;
|
|
3071
3041
|
case "time":
|
|
3072
|
-
return
|
|
3042
|
+
return wd;
|
|
3073
3043
|
case "one2many":
|
|
3074
3044
|
case "one2many_list":
|
|
3075
3045
|
case "many2many":
|
|
3076
|
-
return
|
|
3046
|
+
return Xl;
|
|
3077
3047
|
case "separator":
|
|
3078
|
-
return
|
|
3048
|
+
return sd;
|
|
3079
3049
|
case "reference":
|
|
3080
|
-
return
|
|
3050
|
+
return bd;
|
|
3081
3051
|
case "binary":
|
|
3082
|
-
return
|
|
3052
|
+
return Sd;
|
|
3083
3053
|
case "image":
|
|
3084
3054
|
return la;
|
|
3085
3055
|
case "url":
|
|
3086
|
-
return
|
|
3056
|
+
return Ad;
|
|
3087
3057
|
case "email":
|
|
3088
|
-
return
|
|
3058
|
+
return Dd;
|
|
3089
3059
|
case "float_time":
|
|
3090
|
-
return
|
|
3060
|
+
return Zl;
|
|
3091
3061
|
case "fiber_grid":
|
|
3092
3062
|
return ua;
|
|
3093
3063
|
case "timeline":
|
|
3094
3064
|
return wa;
|
|
3095
3065
|
case "indicator":
|
|
3096
|
-
return
|
|
3066
|
+
return Xa;
|
|
3097
3067
|
case "tags":
|
|
3098
|
-
return
|
|
3068
|
+
return ac;
|
|
3099
3069
|
case "tag":
|
|
3100
|
-
return
|
|
3070
|
+
return sc;
|
|
3101
3071
|
case "multicheckbox":
|
|
3102
3072
|
return nu;
|
|
3103
3073
|
case "markdown":
|
|
@@ -3119,15 +3089,15 @@ const Ot = ({
|
|
|
3119
3089
|
default:
|
|
3120
3090
|
return;
|
|
3121
3091
|
}
|
|
3122
|
-
},
|
|
3123
|
-
const { ooui: t } = e, { type: n } = t, o =
|
|
3092
|
+
}, dc = (e) => {
|
|
3093
|
+
const { ooui: t } = e, { type: n } = t, o = lc(n);
|
|
3124
3094
|
return o ? Si(o, e) : null;
|
|
3125
|
-
},
|
|
3095
|
+
}, uc = ({
|
|
3126
3096
|
item: e,
|
|
3127
3097
|
responsiveBehaviour: t
|
|
3128
3098
|
}) => ({
|
|
3129
3099
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
3130
|
-
}),
|
|
3100
|
+
}), fc = ({
|
|
3131
3101
|
row: e,
|
|
3132
3102
|
mustFillWithEmpties: t,
|
|
3133
3103
|
numberOfColumns: n
|
|
@@ -3146,10 +3116,10 @@ const Ot = ({
|
|
|
3146
3116
|
o.push(new Nt({ string: "" }));
|
|
3147
3117
|
}
|
|
3148
3118
|
}), o;
|
|
3149
|
-
},
|
|
3119
|
+
}, mc = ({
|
|
3150
3120
|
row: e,
|
|
3151
3121
|
numberOfColumns: t
|
|
3152
|
-
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)),
|
|
3122
|
+
}) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), pc = (e, t) => {
|
|
3153
3123
|
const n = e.map((o) => o instanceof Nt && o.fieldForLabel || o instanceof Mi ? "auto" : "1fr");
|
|
3154
3124
|
if (n.length < t) {
|
|
3155
3125
|
const o = t - n.length;
|
|
@@ -3157,25 +3127,25 @@ const Ot = ({
|
|
|
3157
3127
|
n.push("1fr");
|
|
3158
3128
|
}
|
|
3159
3129
|
return n.join(" ");
|
|
3160
|
-
},
|
|
3130
|
+
}, hc = (e, t) => {
|
|
3161
3131
|
const n = t ? "1fr" : "auto", o = "auto";
|
|
3162
3132
|
let r = "";
|
|
3163
3133
|
for (let s = 0; s < e; s++)
|
|
3164
3134
|
r += s % 2 ? n : o, s + 1 < e && (r += " ");
|
|
3165
3135
|
return r;
|
|
3166
|
-
},
|
|
3136
|
+
}, gc = (e) => e.map((n) => n.reduce((o, r) => o + r.colspan, 0)).reduce((n, o) => Math.max(n, o)), Nn = (e) => {
|
|
3167
3137
|
const { container: t, responsiveBehaviour: n } = e, { rows: o } = t;
|
|
3168
3138
|
let { columns: r } = t;
|
|
3169
|
-
const s =
|
|
3139
|
+
const s = gc(o);
|
|
3170
3140
|
s < r && (r = s);
|
|
3171
3141
|
let a = !1, c = [];
|
|
3172
3142
|
const d = o.map((l, p) => {
|
|
3173
|
-
const h = l.filter((y) => !y.invisible), m =
|
|
3143
|
+
const h = l.filter((y) => !y.invisible), m = mc({
|
|
3174
3144
|
row: h,
|
|
3175
3145
|
numberOfColumns: r
|
|
3176
3146
|
});
|
|
3177
3147
|
let g = m;
|
|
3178
|
-
return (p === 0 || !(l.length === 1 && l.some((y) => y.type === "group"))) && (g =
|
|
3148
|
+
return (p === 0 || !(l.length === 1 && l.some((y) => y.type === "group"))) && (g = fc({
|
|
3179
3149
|
row: m,
|
|
3180
3150
|
numberOfColumns: r,
|
|
3181
3151
|
mustFillWithEmpties: n
|
|
@@ -3183,17 +3153,17 @@ const Ot = ({
|
|
|
3183
3153
|
"div",
|
|
3184
3154
|
{
|
|
3185
3155
|
style: {
|
|
3186
|
-
...
|
|
3156
|
+
...uc({ item: y, responsiveBehaviour: n }),
|
|
3187
3157
|
minWidth: 0
|
|
3188
3158
|
},
|
|
3189
|
-
children:
|
|
3159
|
+
children: dc({
|
|
3190
3160
|
ooui: y,
|
|
3191
3161
|
responsiveBehaviour: n
|
|
3192
3162
|
})
|
|
3193
3163
|
},
|
|
3194
3164
|
y.key
|
|
3195
3165
|
)));
|
|
3196
|
-
}), f = o.length === 1 ?
|
|
3166
|
+
}), f = o.length === 1 ? pc(c, r) : hc(r, a);
|
|
3197
3167
|
return /* @__PURE__ */ i("div", { style: {
|
|
3198
3168
|
display: "grid",
|
|
3199
3169
|
alignItems: "center",
|
|
@@ -3202,12 +3172,12 @@ const Ot = ({
|
|
|
3202
3172
|
minHeight: 0,
|
|
3203
3173
|
minWidth: 0
|
|
3204
3174
|
}, children: d });
|
|
3205
|
-
}, { confirm:
|
|
3175
|
+
}, { confirm: yc } = Ze, Ht = ({
|
|
3206
3176
|
onOk: e,
|
|
3207
3177
|
onCancel: t,
|
|
3208
3178
|
t: n
|
|
3209
3179
|
}) => {
|
|
3210
|
-
|
|
3180
|
+
yc({
|
|
3211
3181
|
title: n("unsavedChanges"),
|
|
3212
3182
|
icon: /* @__PURE__ */ i(vt, {}),
|
|
3213
3183
|
centered: !0,
|
|
@@ -3217,22 +3187,22 @@ const Ot = ({
|
|
|
3217
3187
|
onCancel: t,
|
|
3218
3188
|
cancelText: n("cancel")
|
|
3219
3189
|
});
|
|
3220
|
-
}, { error:
|
|
3221
|
-
|
|
3190
|
+
}, { error: wc } = Ze, $r = (e) => {
|
|
3191
|
+
wc({
|
|
3222
3192
|
title: e("formHasErrors"),
|
|
3223
3193
|
icon: /* @__PURE__ */ i(vt, {}),
|
|
3224
3194
|
centered: !0,
|
|
3225
3195
|
content: e("fillRequiredFields")
|
|
3226
3196
|
});
|
|
3227
|
-
}, { warning:
|
|
3228
|
-
|
|
3197
|
+
}, { warning: vc } = Ze, bc = (e, t, n) => {
|
|
3198
|
+
vc({
|
|
3229
3199
|
title: e,
|
|
3230
3200
|
icon: /* @__PURE__ */ i(so, {}),
|
|
3231
3201
|
centered: !0,
|
|
3232
3202
|
content: t,
|
|
3233
3203
|
onOk: n
|
|
3234
3204
|
});
|
|
3235
|
-
}, No = ot.createContext(null),
|
|
3205
|
+
}, No = ot.createContext(null), Cc = (e) => {
|
|
3236
3206
|
const { children: t, setTitle: n } = e;
|
|
3237
3207
|
return /* @__PURE__ */ i(
|
|
3238
3208
|
No.Provider,
|
|
@@ -3247,7 +3217,7 @@ const Ot = ({
|
|
|
3247
3217
|
var t;
|
|
3248
3218
|
for (let n = 0; n < e.length; n++)
|
|
3249
3219
|
await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
|
|
3250
|
-
},
|
|
3220
|
+
}, xc = (e, t) => {
|
|
3251
3221
|
const { children: n, globalValues: o = {} } = e, r = re(), s = re(), [a, c] = v(!1), d = Z(
|
|
3252
3222
|
at
|
|
3253
3223
|
), { openAction: f } = d || {}, u = re([]), { t: l } = he();
|
|
@@ -3271,7 +3241,7 @@ const Ot = ({
|
|
|
3271
3241
|
Qe(`${j} action not supported`);
|
|
3272
3242
|
return;
|
|
3273
3243
|
}
|
|
3274
|
-
const { ids: W } = N || {}, M = W || [],
|
|
3244
|
+
const { ids: W } = N || {}, M = W || [], U = typeof O == "string" ? St({
|
|
3275
3245
|
context: O,
|
|
3276
3246
|
fields: S,
|
|
3277
3247
|
values: _
|
|
@@ -3282,7 +3252,7 @@ const Ot = ({
|
|
|
3282
3252
|
name: K,
|
|
3283
3253
|
datas: N,
|
|
3284
3254
|
ids: M,
|
|
3285
|
-
context: { ...x, ...
|
|
3255
|
+
context: { ...x, ...U }
|
|
3286
3256
|
});
|
|
3287
3257
|
c(!0), s.current = !0, r.current = setInterval(() => {
|
|
3288
3258
|
w(z);
|
|
@@ -3324,7 +3294,7 @@ const Ot = ({
|
|
|
3324
3294
|
return await T({ actionData: V, fields: I, values: S, context: _ });
|
|
3325
3295
|
if (O === "ir.actions.act_url")
|
|
3326
3296
|
window.open(
|
|
3327
|
-
|
|
3297
|
+
ic(V.url, { ...S, context: _ }),
|
|
3328
3298
|
"_blank"
|
|
3329
3299
|
);
|
|
3330
3300
|
else
|
|
@@ -3374,7 +3344,7 @@ const Ot = ({
|
|
|
3374
3344
|
context: A
|
|
3375
3345
|
}), {};
|
|
3376
3346
|
} else {
|
|
3377
|
-
const { initialView: j, views: W } = await
|
|
3347
|
+
const { initialView: j, views: W } = await Sc({
|
|
3378
3348
|
model: x.res_model,
|
|
3379
3349
|
context: A,
|
|
3380
3350
|
view_mode: x.view_mode,
|
|
@@ -3475,7 +3445,7 @@ const Ot = ({
|
|
|
3475
3445
|
}
|
|
3476
3446
|
) });
|
|
3477
3447
|
};
|
|
3478
|
-
async function
|
|
3448
|
+
async function Sc({
|
|
3479
3449
|
views: e,
|
|
3480
3450
|
view_mode: t,
|
|
3481
3451
|
model: n,
|
|
@@ -3524,13 +3494,13 @@ async function Ic({
|
|
|
3524
3494
|
}
|
|
3525
3495
|
return { views: s, initialView: a };
|
|
3526
3496
|
}
|
|
3527
|
-
const
|
|
3497
|
+
const Tc = pt(xc), Ic = (e, t) => {
|
|
3528
3498
|
const n = {};
|
|
3529
3499
|
return Object.keys(e).forEach((o) => {
|
|
3530
3500
|
n[o] = e[o], t != null && t[o] && (n[o].context = t[o]);
|
|
3531
3501
|
}), n;
|
|
3532
|
-
},
|
|
3533
|
-
function
|
|
3502
|
+
}, Fc = 800;
|
|
3503
|
+
function Rc(e, t) {
|
|
3534
3504
|
const {
|
|
3535
3505
|
model: n,
|
|
3536
3506
|
id: o,
|
|
@@ -3554,7 +3524,7 @@ function Vc(e, t) {
|
|
|
3554
3524
|
defaultValues: C,
|
|
3555
3525
|
forcedValues: R = {},
|
|
3556
3526
|
parentWidth: V
|
|
3557
|
-
} = e, { t: I } = he(), [S, _] = v(!1), [x, O] = v(), [A, N] = v(), [K] = dt.useForm(), [j, W] = v(), [M,
|
|
3527
|
+
} = e, { t: I } = he(), [S, _] = v(!1), [x, O] = v(), [A, N] = v(), [K] = dt.useForm(), [j, W] = v(), [M, U] = v(), z = Z(No), [J, Y] = v(), [B, E] = v(!1), L = re(), $ = re({}), de = re({}), ee = re(!1), oe = re(!1), ve = re(!1), ae = (V !== void 0 ? V : J) < Fc, xe = Z(Le), { activeId: De, getPlainValues: Ee } = xe || {}, ke = Z(
|
|
3558
3528
|
nt
|
|
3559
3529
|
), {
|
|
3560
3530
|
setFormIsSaving: fe = void 0,
|
|
@@ -3564,9 +3534,9 @@ function Vc(e, t) {
|
|
|
3564
3534
|
setAttachments: me = void 0,
|
|
3565
3535
|
title: Me = void 0,
|
|
3566
3536
|
setTitle: He = void 0
|
|
3567
|
-
} = (F ? ke : {}) || {},
|
|
3537
|
+
} = (F ? ke : {}) || {}, G = Z(
|
|
3568
3538
|
Bt
|
|
3569
|
-
), { processAction: Se, globalValues: _e } =
|
|
3539
|
+
), { processAction: Se, globalValues: _e } = G || {};
|
|
3570
3540
|
ht(t, () => ({
|
|
3571
3541
|
submitForm: an,
|
|
3572
3542
|
getFields: We,
|
|
@@ -3576,7 +3546,7 @@ function Vc(e, t) {
|
|
|
3576
3546
|
fetchValues: lt,
|
|
3577
3547
|
cancelUnsavedChanges: Be,
|
|
3578
3548
|
clearAndReload: () => {
|
|
3579
|
-
L.current = void 0, N(void 0),
|
|
3549
|
+
L.current = void 0, N(void 0), Gt();
|
|
3580
3550
|
}
|
|
3581
3551
|
})), ue(() => {
|
|
3582
3552
|
if (O(void 0), !(!n && !m)) {
|
|
@@ -3584,7 +3554,7 @@ function Vc(e, t) {
|
|
|
3584
3554
|
L.current = void 0, N(void 0);
|
|
3585
3555
|
return;
|
|
3586
3556
|
}
|
|
3587
|
-
(o === void 0 && M || o !== void 0 && M && o < 0) && (L.current = void 0, N(void 0)),
|
|
3557
|
+
(o === void 0 && M || o !== void 0 && M && o < 0) && (L.current = void 0, N(void 0)), Gt();
|
|
3588
3558
|
}
|
|
3589
3559
|
}, [o, n, h, m, T]), ue(() => {
|
|
3590
3560
|
B && (Sn({
|
|
@@ -3617,7 +3587,7 @@ function Vc(e, t) {
|
|
|
3617
3587
|
const P = Pe(), H = We(), te = {};
|
|
3618
3588
|
return Object.keys(P).forEach((ne) => {
|
|
3619
3589
|
const we = P[ne];
|
|
3620
|
-
H[ne] && H[ne].type === "many2one" && we && Array.isArray(we) && we.length === 2 ? te[ne] = we[0] : H[ne] && (H[ne].type === "one2many" || H[ne].type === "many2many") && we && we.items ? te[ne] = we.items.filter((
|
|
3590
|
+
H[ne] && H[ne].type === "many2one" && we && Array.isArray(we) && we.length === 2 ? te[ne] = we[0] : H[ne] && (H[ne].type === "one2many" || H[ne].type === "many2many") && we && we.items ? te[ne] = we.items.filter((Ge) => Ge.operation !== "pendingRemove").map((Ge) => Ge.id) : te[ne] = we;
|
|
3621
3591
|
}), te;
|
|
3622
3592
|
}
|
|
3623
3593
|
function le() {
|
|
@@ -3677,13 +3647,13 @@ function Vc(e, t) {
|
|
|
3677
3647
|
return Rn.error(I("fillRequiredFields")), !0;
|
|
3678
3648
|
}
|
|
3679
3649
|
}
|
|
3680
|
-
const
|
|
3650
|
+
const Gt = async () => {
|
|
3681
3651
|
O(void 0), ce == null || ce(!0);
|
|
3682
3652
|
let P;
|
|
3683
3653
|
try {
|
|
3684
3654
|
m ? P = { arch: m.arch, fields: m.fields } : P = await rt();
|
|
3685
3655
|
const { fields: H, arch: te } = P;
|
|
3686
|
-
|
|
3656
|
+
U(H), W(te), await lt({
|
|
3687
3657
|
fields: H,
|
|
3688
3658
|
arch: te
|
|
3689
3659
|
});
|
|
@@ -3695,12 +3665,12 @@ function Vc(e, t) {
|
|
|
3695
3665
|
ce == null || ce(!0), O(void 0), P != null && P.fields ? (te = P.fields, ne = P.arch) : (te = M, ne = j), h && (P == null ? void 0 : P.forceRefresh) !== !0 ? H = h : { values: H, defaultGetCalled: we } = await si({
|
|
3696
3666
|
fields: te,
|
|
3697
3667
|
arch: ne
|
|
3698
|
-
}), b && (H = { ...
|
|
3668
|
+
}), b && (H = { ...rc(b), ...H }), $.current = At(H, te), ut({
|
|
3699
3669
|
values: H,
|
|
3700
3670
|
fields: te,
|
|
3701
3671
|
reset: !0,
|
|
3702
3672
|
isDefaultGet: we
|
|
3703
|
-
}),
|
|
3673
|
+
}), Ut({ fields: te, arch: ne, values: H }), ce == null || ce(!1), Fe == null || Fe(!1), we && E(!0);
|
|
3704
3674
|
}, Be = async () => new Promise(async (P) => {
|
|
3705
3675
|
tt() ? Ht({
|
|
3706
3676
|
t: I,
|
|
@@ -3730,7 +3700,7 @@ function Vc(e, t) {
|
|
|
3730
3700
|
reset: te,
|
|
3731
3701
|
isDefaultGet: ne = !1
|
|
3732
3702
|
}) => {
|
|
3733
|
-
const
|
|
3703
|
+
const Ge = { ...te ? {} : K.getFieldsValue(!0), ...P }, In = At(Ge, H), wi = Object.keys(H).map((Fn) => {
|
|
3734
3704
|
const vi = In[Fn] !== void 0 ? In[Fn] : void 0;
|
|
3735
3705
|
return {
|
|
3736
3706
|
name: Fn,
|
|
@@ -3753,11 +3723,11 @@ function Vc(e, t) {
|
|
|
3753
3723
|
if (te = (await k.getHandler().readObjects({
|
|
3754
3724
|
model: n,
|
|
3755
3725
|
ids: [se()],
|
|
3756
|
-
fields:
|
|
3726
|
+
fields: Ic(P, we == null ? void 0 : we.contextForFields),
|
|
3757
3727
|
context: w
|
|
3758
3728
|
}))[0], y)
|
|
3759
3729
|
return { values: te, defaultGetCalled: ne };
|
|
3760
|
-
const
|
|
3730
|
+
const Ge = await k.getHandler().search({
|
|
3761
3731
|
params: [
|
|
3762
3732
|
["res_model", "=", n],
|
|
3763
3733
|
["res_id", "=", se()]
|
|
@@ -3766,7 +3736,7 @@ function Vc(e, t) {
|
|
|
3766
3736
|
context: Oe(),
|
|
3767
3737
|
model: "ir.attachment"
|
|
3768
3738
|
});
|
|
3769
|
-
me == null || me(
|
|
3739
|
+
me == null || me(Ge);
|
|
3770
3740
|
} else
|
|
3771
3741
|
me == null || me([]), te = await Ae(P), ne = !0;
|
|
3772
3742
|
return { values: te, defaultGetCalled: ne };
|
|
@@ -3847,20 +3817,20 @@ function Vc(e, t) {
|
|
|
3847
3817
|
P
|
|
3848
3818
|
)
|
|
3849
3819
|
}), we;
|
|
3850
|
-
},
|
|
3820
|
+
}, Ut = ({
|
|
3851
3821
|
fields: P,
|
|
3852
3822
|
arch: H,
|
|
3853
3823
|
values: te,
|
|
3854
3824
|
operationInProgress: ne = !1
|
|
3855
3825
|
}) => {
|
|
3856
|
-
var
|
|
3826
|
+
var Ge;
|
|
3857
3827
|
const we = vr({
|
|
3858
3828
|
arch: H,
|
|
3859
3829
|
fields: P,
|
|
3860
3830
|
values: te,
|
|
3861
3831
|
operationInProgress: ne
|
|
3862
3832
|
});
|
|
3863
|
-
N(we), we.string && we.string !== Me && (He == null || He(we.string)), z && we.string && ((
|
|
3833
|
+
N(we), we.string && we.string !== Me && (He == null || He(we.string)), z && we.string && ((Ge = z.setTitle) == null || Ge.call(z, we.string));
|
|
3864
3834
|
}, Sn = async ({
|
|
3865
3835
|
elementHasLostFocus: P = !1
|
|
3866
3836
|
}) => {
|
|
@@ -3871,7 +3841,7 @@ function Vc(e, t) {
|
|
|
3871
3841
|
target: Ye(M),
|
|
3872
3842
|
fields: M
|
|
3873
3843
|
}), te = Object.keys(H);
|
|
3874
|
-
if (te.length !== 0 && !(
|
|
3844
|
+
if (te.length !== 0 && !(tc({
|
|
3875
3845
|
changedFields: te,
|
|
3876
3846
|
formOoui: A,
|
|
3877
3847
|
types: [
|
|
@@ -3901,14 +3871,14 @@ function Vc(e, t) {
|
|
|
3901
3871
|
}, di = async (P) => {
|
|
3902
3872
|
const H = A == null ? void 0 : A.onChangeFields[P];
|
|
3903
3873
|
if (!H) {
|
|
3904
|
-
|
|
3874
|
+
Ut({
|
|
3905
3875
|
fields: M,
|
|
3906
3876
|
arch: j,
|
|
3907
3877
|
values: Ye(M)
|
|
3908
3878
|
});
|
|
3909
3879
|
return;
|
|
3910
3880
|
}
|
|
3911
|
-
const te =
|
|
3881
|
+
const te = oc({
|
|
3912
3882
|
values: {
|
|
3913
3883
|
...Ye(M),
|
|
3914
3884
|
context: {
|
|
@@ -3929,36 +3899,36 @@ function Vc(e, t) {
|
|
|
3929
3899
|
const we = {
|
|
3930
3900
|
...Ye(M),
|
|
3931
3901
|
...ne.value
|
|
3932
|
-
},
|
|
3902
|
+
}, Ge = ga({
|
|
3933
3903
|
values: we,
|
|
3934
3904
|
fields: M
|
|
3935
3905
|
});
|
|
3936
|
-
|
|
3906
|
+
Ut({
|
|
3937
3907
|
fields: M,
|
|
3938
3908
|
arch: j,
|
|
3939
|
-
values:
|
|
3909
|
+
values: Ge
|
|
3940
3910
|
}), ut({
|
|
3941
|
-
values:
|
|
3911
|
+
values: Ge,
|
|
3942
3912
|
fields: M,
|
|
3943
3913
|
reset: !1
|
|
3944
3914
|
});
|
|
3945
3915
|
}
|
|
3946
3916
|
if (ne.warning && ne.warning.title && ne.warning.message && !ee.current) {
|
|
3947
|
-
const { title: we, message:
|
|
3948
|
-
ee.current = !0,
|
|
3917
|
+
const { title: we, message: Ge } = ne.warning;
|
|
3918
|
+
ee.current = !0, bc(we, Ge, () => {
|
|
3949
3919
|
ee.current = !1;
|
|
3950
3920
|
});
|
|
3951
3921
|
}
|
|
3952
3922
|
if (ne.domain && Object.keys(ne.domain).length > 0) {
|
|
3953
|
-
const we =
|
|
3923
|
+
const we = nc({
|
|
3954
3924
|
fieldsDomain: ne.domain,
|
|
3955
3925
|
fields: M
|
|
3956
3926
|
});
|
|
3957
|
-
|
|
3927
|
+
Ut({
|
|
3958
3928
|
fields: we,
|
|
3959
3929
|
arch: j,
|
|
3960
3930
|
values: Ye(we)
|
|
3961
|
-
}),
|
|
3931
|
+
}), U(we);
|
|
3962
3932
|
}
|
|
3963
3933
|
};
|
|
3964
3934
|
async function ui({
|
|
@@ -4034,7 +4004,7 @@ function Vc(e, t) {
|
|
|
4034
4004
|
Sn({ elementHasLostFocus: !0 });
|
|
4035
4005
|
}
|
|
4036
4006
|
function Tn(P) {
|
|
4037
|
-
|
|
4007
|
+
Ut({
|
|
4038
4008
|
fields: M,
|
|
4039
4009
|
arch: j,
|
|
4040
4010
|
values: Ye(M),
|
|
@@ -4057,8 +4027,8 @@ function Vc(e, t) {
|
|
|
4057
4027
|
let ne = !1;
|
|
4058
4028
|
try {
|
|
4059
4029
|
!u && (tt() || se() === void 0) && (ne = !0, Tn(!0), p === "2many" ? (await wr({ callOnSubmitSucceed: !1 }), ve.current = !0) : await an({ callOnSubmitSucceed: !1 }));
|
|
4060
|
-
const we = ve.current ? Te() : {},
|
|
4061
|
-
P === "object" ? await ui({ action: H, context:
|
|
4030
|
+
const we = ve.current ? Te() : {}, Ge = { ...te, ...we };
|
|
4031
|
+
P === "object" ? await ui({ action: H, context: Ge }) : P === "workflow" ? await fi({ action: H }) : P === "action" && await mi({ action: H, context: Ge }), ne && Tn(!1);
|
|
4062
4032
|
} catch (we) {
|
|
4063
4033
|
ne && Tn(!1), Qe(we);
|
|
4064
4034
|
}
|
|
@@ -4101,7 +4071,7 @@ function Vc(e, t) {
|
|
|
4101
4071
|
}
|
|
4102
4072
|
) }), yi = () => /* @__PURE__ */ D(ie, { children: [
|
|
4103
4073
|
/* @__PURE__ */ i(pn, {}),
|
|
4104
|
-
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(
|
|
4074
|
+
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
|
|
4105
4075
|
/* @__PURE__ */ i(
|
|
4106
4076
|
Ne,
|
|
4107
4077
|
{
|
|
@@ -4144,7 +4114,7 @@ function Vc(e, t) {
|
|
|
4144
4114
|
}
|
|
4145
4115
|
) : null;
|
|
4146
4116
|
}
|
|
4147
|
-
const jt = pt(
|
|
4117
|
+
const jt = pt(Rc), Kt = (e) => {
|
|
4148
4118
|
const {
|
|
4149
4119
|
visible: t,
|
|
4150
4120
|
id: n,
|
|
@@ -4198,7 +4168,7 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4198
4168
|
] });
|
|
4199
4169
|
}
|
|
4200
4170
|
const I = u * 0.95;
|
|
4201
|
-
return /* @__PURE__ */ i(
|
|
4171
|
+
return /* @__PURE__ */ i(Cc, { setTitle: p, children: /* @__PURE__ */ i(
|
|
4202
4172
|
Ze,
|
|
4203
4173
|
{
|
|
4204
4174
|
title: a ? V() : l,
|
|
@@ -4223,8 +4193,8 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4223
4193
|
)
|
|
4224
4194
|
}
|
|
4225
4195
|
) });
|
|
4226
|
-
},
|
|
4227
|
-
|
|
4196
|
+
}, Oc = (e) => /* @__PURE__ */ i(Ce, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
|
|
4197
|
+
Un.RangePicker,
|
|
4228
4198
|
{
|
|
4229
4199
|
allowEmpty: [!0, !0],
|
|
4230
4200
|
format: "DD/MM/YYYY"
|
|
@@ -4251,7 +4221,7 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4251
4221
|
}
|
|
4252
4222
|
}
|
|
4253
4223
|
);
|
|
4254
|
-
},
|
|
4224
|
+
}, Vc = (e) => {
|
|
4255
4225
|
const { ooui: t, showLabel: n = !1 } = e, { label: o, id: r } = t, s = [
|
|
4256
4226
|
new En({
|
|
4257
4227
|
name: r + "#date",
|
|
@@ -4277,17 +4247,17 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4277
4247
|
),
|
|
4278
4248
|
/* @__PURE__ */ D(Ve, { align: "bottom", className: "p-0", children: [
|
|
4279
4249
|
/* @__PURE__ */ i(ye, { className: "mr-2", children: /* @__PURE__ */ i(Ce, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ i(
|
|
4280
|
-
|
|
4250
|
+
Un.RangePicker,
|
|
4281
4251
|
{
|
|
4282
4252
|
className: "w-60",
|
|
4283
4253
|
allowEmpty: [!0, !0],
|
|
4284
4254
|
format: "DD/MM/YYYY"
|
|
4285
4255
|
}
|
|
4286
4256
|
) }) }),
|
|
4287
|
-
/* @__PURE__ */ i(ye, { children: /* @__PURE__ */ i(Ce, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(
|
|
4257
|
+
/* @__PURE__ */ i(ye, { children: /* @__PURE__ */ i(Ce, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(_c, {}) }) })
|
|
4288
4258
|
] })
|
|
4289
4259
|
] });
|
|
4290
|
-
},
|
|
4260
|
+
}, _c = ({
|
|
4291
4261
|
value: e,
|
|
4292
4262
|
onChange: t
|
|
4293
4263
|
}) => /* @__PURE__ */ D("div", { style: { marginTop: 5 }, children: [
|
|
@@ -4315,8 +4285,8 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4315
4285
|
}
|
|
4316
4286
|
}
|
|
4317
4287
|
)
|
|
4318
|
-
] }), { useToken:
|
|
4319
|
-
const { ooui: t } = e, { id: n, decimalDigits: o, readOnly: r, required: s } = t, { token: a } =
|
|
4288
|
+
] }), { useToken: Ac } = Ke, Lo = (e) => {
|
|
4289
|
+
const { ooui: t } = e, { id: n, decimalDigits: o, readOnly: r, required: s } = t, { token: a } = Ac(), c = s && !r ? { backgroundColor: a.colorPrimaryBg } : void 0, d = Z(Le), { elementHasLostFocus: f } = d || {};
|
|
4320
4290
|
return /* @__PURE__ */ i(Ce, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
4321
4291
|
Xr,
|
|
4322
4292
|
{
|
|
@@ -4331,8 +4301,8 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4331
4301
|
wheel: !1
|
|
4332
4302
|
}
|
|
4333
4303
|
) });
|
|
4334
|
-
}, { useToken:
|
|
4335
|
-
const { ooui: t, onChange: n } = e, { id: o, readOnly: r, required: s } = t, { token: a } =
|
|
4304
|
+
}, { useToken: Dc } = Ke, mn = (e) => {
|
|
4305
|
+
const { ooui: t, onChange: n } = e, { id: o, readOnly: r, required: s } = t, { token: a } = Dc(), c = s && !r ? { backgroundColor: a.colorPrimaryBg } : void 0, d = Z(Le), { elementHasLostFocus: f } = d || {};
|
|
4336
4306
|
return /* @__PURE__ */ i(Ce, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
4337
4307
|
Xr,
|
|
4338
4308
|
{
|
|
@@ -4351,7 +4321,7 @@ const jt = pt(Vc), Kt = (e) => {
|
|
|
4351
4321
|
}
|
|
4352
4322
|
) });
|
|
4353
4323
|
};
|
|
4354
|
-
function
|
|
4324
|
+
function Ec(e) {
|
|
4355
4325
|
const { ooui: t, showLabel: n } = e, { id: o, label: r, tooltip: s } = t, a = t instanceof kn ? mn : Lo, c = (d) => /* @__PURE__ */ i(
|
|
4356
4326
|
a,
|
|
4357
4327
|
{
|
|
@@ -4384,17 +4354,17 @@ function Mc(e) {
|
|
|
4384
4354
|
] })
|
|
4385
4355
|
] });
|
|
4386
4356
|
}
|
|
4387
|
-
const { defaultAlgorithm:
|
|
4357
|
+
const { defaultAlgorithm: kc, defaultSeed: Mc } = Ke, Pc = kc(Mc), { Option: Nc } = Rt, Lc = (e) => {
|
|
4388
4358
|
const { ooui: t } = e, { required: n } = t;
|
|
4389
|
-
return /* @__PURE__ */ i(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(
|
|
4390
|
-
},
|
|
4359
|
+
return /* @__PURE__ */ i(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ i($c, { ...e }) });
|
|
4360
|
+
}, $c = (e) => {
|
|
4391
4361
|
const { ooui: t, onChange: n, value: o } = e, { selectionValues: r, readOnly: s, required: a } = t, c = Array.from(r.entries()), d = c && c.length && c.filter((l) => {
|
|
4392
4362
|
const [p] = l;
|
|
4393
4363
|
return o ? !o.includes(p) : !0;
|
|
4394
4364
|
}).map((l) => {
|
|
4395
4365
|
const [p, h] = l;
|
|
4396
|
-
return /* @__PURE__ */ i(
|
|
4397
|
-
}), f = a && !s ?
|
|
4366
|
+
return /* @__PURE__ */ i(Nc, { value: h, children: h }, p);
|
|
4367
|
+
}), f = a && !s ? Hc : Rt;
|
|
4398
4368
|
function u(l) {
|
|
4399
4369
|
const p = l.map((h) => {
|
|
4400
4370
|
const m = c.find(([g, y]) => h === y);
|
|
@@ -4417,12 +4387,12 @@ const { defaultAlgorithm: Pc, defaultSeed: Nc } = Ke, Lc = Pc(Nc), { Option: $c
|
|
|
4417
4387
|
children: d
|
|
4418
4388
|
}
|
|
4419
4389
|
);
|
|
4420
|
-
},
|
|
4390
|
+
}, Hc = Lt(Rt)`
|
|
4421
4391
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4422
|
-
background-color: ${
|
|
4392
|
+
background-color: ${Pc.colorPrimaryBg};
|
|
4423
4393
|
}
|
|
4424
4394
|
`;
|
|
4425
|
-
function
|
|
4395
|
+
function Bc(e) {
|
|
4426
4396
|
const { field: t } = e;
|
|
4427
4397
|
t.readOnly = !1, t.required = !1;
|
|
4428
4398
|
const { t: n } = he();
|
|
@@ -4442,18 +4412,18 @@ function Kc(e) {
|
|
|
4442
4412
|
case yt.progressbar:
|
|
4443
4413
|
case yt.float_time:
|
|
4444
4414
|
case yt.integer:
|
|
4445
|
-
return /* @__PURE__ */ i(
|
|
4415
|
+
return /* @__PURE__ */ i(Ec, { ooui: t, showLabel: !0 });
|
|
4446
4416
|
case yt.date:
|
|
4447
|
-
return /* @__PURE__ */ i(
|
|
4417
|
+
return /* @__PURE__ */ i(Oc, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
4448
4418
|
case yt.datetime:
|
|
4449
|
-
return /* @__PURE__ */ i(
|
|
4419
|
+
return /* @__PURE__ */ i(Vc, { ooui: t, layout: "vertical", showLabel: !0 });
|
|
4450
4420
|
case yt.selection:
|
|
4451
|
-
return /* @__PURE__ */ i(
|
|
4421
|
+
return /* @__PURE__ */ i(Lc, { layout: "vertical", ooui: t, showLabel: !0 });
|
|
4452
4422
|
default:
|
|
4453
4423
|
return /* @__PURE__ */ i(vo, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
|
|
4454
4424
|
}
|
|
4455
4425
|
}
|
|
4456
|
-
function
|
|
4426
|
+
function jc(e) {
|
|
4457
4427
|
const { onAdvancedFilterToggle: t, advancedFilter: n, onClear: o, isSearching: r } = e, { t: s } = he();
|
|
4458
4428
|
return /* @__PURE__ */ D(Ve, { children: [
|
|
4459
4429
|
/* @__PURE__ */ i(ye, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
|
|
@@ -4476,11 +4446,11 @@ function Wc(e) {
|
|
|
4476
4446
|
] })
|
|
4477
4447
|
] });
|
|
4478
4448
|
}
|
|
4479
|
-
function
|
|
4449
|
+
function Kc(e) {
|
|
4480
4450
|
const { onLimitChange: t } = e, { t: n } = he(), o = new kn({ name: "limit" }), r = new kn({ name: "offset" });
|
|
4481
4451
|
return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
|
|
4482
4452
|
/* @__PURE__ */ i(Ve, { children: n("parameters") }, "count_params"),
|
|
4483
|
-
/* @__PURE__ */ D(
|
|
4453
|
+
/* @__PURE__ */ D(Ue, { align: "center", children: [
|
|
4484
4454
|
n("limit") + " :",
|
|
4485
4455
|
/* @__PURE__ */ i(
|
|
4486
4456
|
mn,
|
|
@@ -4496,15 +4466,15 @@ function Uc(e) {
|
|
|
4496
4466
|
] })
|
|
4497
4467
|
] });
|
|
4498
4468
|
}
|
|
4499
|
-
const Br = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e,
|
|
4500
|
-
const n =
|
|
4469
|
+
const Br = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Wc = (e, t) => {
|
|
4470
|
+
const n = Jc(e), o = qc(n), r = zc(
|
|
4501
4471
|
o,
|
|
4502
4472
|
t
|
|
4503
4473
|
);
|
|
4504
4474
|
return [
|
|
4505
|
-
...Object.keys(r).map((c) =>
|
|
4475
|
+
...Object.keys(r).map((c) => Gc(c, r[c], t))
|
|
4506
4476
|
].reduce((c, d) => Array.isArray(d[0]) ? c.concat(d) : [...c, d], []);
|
|
4507
|
-
},
|
|
4477
|
+
}, Gc = (e, t, n) => {
|
|
4508
4478
|
var s;
|
|
4509
4479
|
const o = e.split("#")[0], r = (s = n.findById(o)) == null ? void 0 : s.type;
|
|
4510
4480
|
if (r === "char" || r === "text" || r === "many2one" || r === "many2many" || r === "one2many")
|
|
@@ -4526,14 +4496,14 @@ const Br = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
4526
4496
|
(a) => Br(a)
|
|
4527
4497
|
)
|
|
4528
4498
|
] : [e, "=", Br(t)];
|
|
4529
|
-
},
|
|
4499
|
+
}, Uc = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Yc = (e) => {
|
|
4530
4500
|
const t = { ...e };
|
|
4531
4501
|
return Object.keys(t).forEach(
|
|
4532
4502
|
(n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
|
|
4533
4503
|
), t;
|
|
4534
|
-
},
|
|
4535
|
-
const t = { ...
|
|
4536
|
-
return
|
|
4504
|
+
}, qc = (e) => {
|
|
4505
|
+
const t = { ...Yc(e) };
|
|
4506
|
+
return Uc(e).forEach((o) => {
|
|
4537
4507
|
const r = e[o], s = o.split("#")[0], a = s + "#time", c = e[a];
|
|
4538
4508
|
let d, f;
|
|
4539
4509
|
if (r[0] !== null && (d = r[0].format("YYYY-MM-DD"), c && c[0] !== null)) {
|
|
@@ -4546,7 +4516,7 @@ const Br = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
4546
4516
|
}
|
|
4547
4517
|
t[s + "#datetime"] = [d, f];
|
|
4548
4518
|
}), t;
|
|
4549
|
-
},
|
|
4519
|
+
}, zc = (e, t) => {
|
|
4550
4520
|
const n = Object.keys(e).filter((r) => {
|
|
4551
4521
|
const s = t.findById(r);
|
|
4552
4522
|
return s && s.type === "date";
|
|
@@ -4554,22 +4524,22 @@ const Br = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
|
|
|
4554
4524
|
return n.forEach((r) => {
|
|
4555
4525
|
delete o[r], e[r][0] !== null && (o[r + "#from"] = e[r][0]), e[r][1] !== null && (o[r + "#to"] = e[r][1]);
|
|
4556
4526
|
}), o;
|
|
4557
|
-
},
|
|
4527
|
+
}, Jc = (e) => {
|
|
4558
4528
|
const t = { ...e };
|
|
4559
4529
|
return Object.keys(t).forEach(
|
|
4560
4530
|
(n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
|
|
4561
4531
|
), t;
|
|
4562
|
-
},
|
|
4532
|
+
}, Xc = (e) => {
|
|
4563
4533
|
const t = {};
|
|
4564
4534
|
return e.forEach((n) => {
|
|
4565
4535
|
Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
|
|
4566
4536
|
}), Object.keys(t);
|
|
4567
4537
|
}, Qt = (e, t) => {
|
|
4568
|
-
const n = [...e], o =
|
|
4538
|
+
const n = [...e], o = Xc(e);
|
|
4569
4539
|
return t.forEach((r) => {
|
|
4570
4540
|
Array.isArray(r) && r[0] ? o.includes(r[0]) || n.push(r) : o.includes(r) || n.push(r);
|
|
4571
4541
|
}), n;
|
|
4572
|
-
}, { useToken:
|
|
4542
|
+
}, { useToken: Qc } = Ke;
|
|
4573
4543
|
function $o(e) {
|
|
4574
4544
|
const {
|
|
4575
4545
|
fields: t,
|
|
@@ -4585,7 +4555,7 @@ function $o(e) {
|
|
|
4585
4555
|
searchError: l,
|
|
4586
4556
|
searchValues: p,
|
|
4587
4557
|
showLimitOptions: h = !0
|
|
4588
|
-
} = e, [m, g] = v(), [y, w] = v(), [b, T] = v(!1), F = re(), { token: C } =
|
|
4558
|
+
} = e, [m, g] = v(), [y, w] = v(), [b, T] = v(!1), F = re(), { token: C } = Qc(), [R] = dt.useForm();
|
|
4589
4559
|
ue(() => {
|
|
4590
4560
|
R.setFieldsValue(p);
|
|
4591
4561
|
}, [p]);
|
|
@@ -4593,7 +4563,7 @@ function $o(e) {
|
|
|
4593
4563
|
if (!y)
|
|
4594
4564
|
return;
|
|
4595
4565
|
const _ = b ? y : m, x = _ == null ? void 0 : _.rows;
|
|
4596
|
-
return x == null ? void 0 : x.map((O, A) => /* @__PURE__ */ i(Ve, { children: O.map((N, K) => /* @__PURE__ */ i(ye, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(
|
|
4566
|
+
return x == null ? void 0 : x.map((O, A) => /* @__PURE__ */ i(Ve, { children: O.map((N, K) => /* @__PURE__ */ i(ye, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Bc, { field: N }) }, K)) }, A));
|
|
4597
4567
|
};
|
|
4598
4568
|
bt(() => {
|
|
4599
4569
|
T(!1), F.current = new Pi(n, t), F.current.parse(), g(F.current._simpleSearchContainer), w(F.current._advancedSearchContainer);
|
|
@@ -4602,7 +4572,7 @@ function $o(e) {
|
|
|
4602
4572
|
var N;
|
|
4603
4573
|
const { limit: x, offset: O } = _;
|
|
4604
4574
|
delete _.offset, delete _.limit;
|
|
4605
|
-
const A =
|
|
4575
|
+
const A = Wc(
|
|
4606
4576
|
_,
|
|
4607
4577
|
(N = F.current) == null ? void 0 : N._advancedSearchContainer
|
|
4608
4578
|
);
|
|
@@ -4627,9 +4597,9 @@ function $o(e) {
|
|
|
4627
4597
|
initialValues: { offset: a, limit: c },
|
|
4628
4598
|
children: [
|
|
4629
4599
|
I,
|
|
4630
|
-
b && h && /* @__PURE__ */ i(
|
|
4600
|
+
b && h && /* @__PURE__ */ i(Kc, { onLimitChange: d }),
|
|
4631
4601
|
/* @__PURE__ */ i(
|
|
4632
|
-
|
|
4602
|
+
jc,
|
|
4633
4603
|
{
|
|
4634
4604
|
advancedFilter: b,
|
|
4635
4605
|
onAdvancedFilterToggle: () => {
|
|
@@ -4663,7 +4633,7 @@ const jr = (e, t = "14px -apple-system") => {
|
|
|
4663
4633
|
o.font = t;
|
|
4664
4634
|
const r = o.measureText(e);
|
|
4665
4635
|
return Math.round((r.width + 80) * 1.5);
|
|
4666
|
-
},
|
|
4636
|
+
}, Zc = (e, t, n = 500) => {
|
|
4667
4637
|
if (e.length === 0)
|
|
4668
4638
|
return { columns: e };
|
|
4669
4639
|
const o = e.map(
|
|
@@ -4684,11 +4654,11 @@ const jr = (e, t = "14px -apple-system") => {
|
|
|
4684
4654
|
source: t,
|
|
4685
4655
|
tableWidth: r
|
|
4686
4656
|
};
|
|
4687
|
-
},
|
|
4657
|
+
}, el = Lt.div`
|
|
4688
4658
|
display: flex;
|
|
4689
4659
|
align-items: center;
|
|
4690
4660
|
justify-content: center;
|
|
4691
|
-
`,
|
|
4661
|
+
`, tl = ({
|
|
4692
4662
|
numberOfVisibleSelectedRows: e,
|
|
4693
4663
|
totalRecords: t,
|
|
4694
4664
|
numberOfTotalRows: n,
|
|
@@ -4717,9 +4687,9 @@ const jr = (e, t = "14px -apple-system") => {
|
|
|
4717
4687
|
"{totalRecords}",
|
|
4718
4688
|
r.toString()
|
|
4719
4689
|
) + " " });
|
|
4720
|
-
return /* @__PURE__ */ i(
|
|
4690
|
+
return /* @__PURE__ */ i(el, { children: r > n ? l : u });
|
|
4721
4691
|
};
|
|
4722
|
-
function
|
|
4692
|
+
function nl(e) {
|
|
4723
4693
|
if (e)
|
|
4724
4694
|
try {
|
|
4725
4695
|
if (e.includes(":")) {
|
|
@@ -4749,17 +4719,17 @@ function Ho(e) {
|
|
|
4749
4719
|
});
|
|
4750
4720
|
return t = `${r}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4751
4721
|
}
|
|
4752
|
-
const
|
|
4722
|
+
const rl = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo, {}) }), Bo = ({ value: e }) => {
|
|
4753
4723
|
const t = `${(e || 0).toLocaleString("en-US", {
|
|
4754
4724
|
minimumIntegerDigits: 1,
|
|
4755
4725
|
maximumFractionDigits: 4,
|
|
4756
4726
|
useGrouping: !1
|
|
4757
4727
|
})}%`;
|
|
4758
4728
|
return /* @__PURE__ */ D("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
|
|
4759
|
-
/* @__PURE__ */ i(
|
|
4729
|
+
/* @__PURE__ */ i(ol, { percent: e }),
|
|
4760
4730
|
/* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
|
|
4761
4731
|
] });
|
|
4762
|
-
},
|
|
4732
|
+
}, ol = Lt(Ri)`
|
|
4763
4733
|
.ant-progress-outer {
|
|
4764
4734
|
margin-right: 0px;
|
|
4765
4735
|
padding-right: 0px;
|
|
@@ -4767,7 +4737,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4767
4737
|
.ant-progress-text {
|
|
4768
4738
|
display: none;
|
|
4769
4739
|
}
|
|
4770
|
-
`,
|
|
4740
|
+
`, il = ({
|
|
4771
4741
|
onRetrieveData: e,
|
|
4772
4742
|
onItemClick: t,
|
|
4773
4743
|
onOpenChange: n
|
|
@@ -4862,7 +4832,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4862
4832
|
context: o
|
|
4863
4833
|
});
|
|
4864
4834
|
s(T);
|
|
4865
|
-
const F =
|
|
4835
|
+
const F = sl(T);
|
|
4866
4836
|
let C = {};
|
|
4867
4837
|
if (F.length > 0 && (C = { ...(R = await m({
|
|
4868
4838
|
model: n,
|
|
@@ -4911,7 +4881,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4911
4881
|
}
|
|
4912
4882
|
}
|
|
4913
4883
|
return /* @__PURE__ */ i(
|
|
4914
|
-
|
|
4884
|
+
il,
|
|
4915
4885
|
{
|
|
4916
4886
|
onRetrieveData: w,
|
|
4917
4887
|
onItemClick: b,
|
|
@@ -4920,7 +4890,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4920
4890
|
}
|
|
4921
4891
|
}
|
|
4922
4892
|
);
|
|
4923
|
-
},
|
|
4893
|
+
}, sl = (e) => {
|
|
4924
4894
|
const { toolbar: t } = e, o = ["action", "relate", "print"].flatMap((r) => {
|
|
4925
4895
|
const s = t[r];
|
|
4926
4896
|
return (s == null ? void 0 : s.flatMap((a) => {
|
|
@@ -4931,13 +4901,13 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4931
4901
|
return [
|
|
4932
4902
|
...new Set(o.filter((r) => r in e.fields))
|
|
4933
4903
|
];
|
|
4934
|
-
},
|
|
4904
|
+
}, al = (e) => {
|
|
4935
4905
|
const { m2oField: t } = e;
|
|
4936
|
-
return t ? /* @__PURE__ */ D(
|
|
4906
|
+
return t ? /* @__PURE__ */ D(Ue, { children: [
|
|
4937
4907
|
/* @__PURE__ */ i(ie, { children: t.value }),
|
|
4938
4908
|
/* @__PURE__ */ i(pr, { id: t.id, model: t.model })
|
|
4939
4909
|
] }) : /* @__PURE__ */ i(ie, {});
|
|
4940
|
-
},
|
|
4910
|
+
}, cl = (e) => {
|
|
4941
4911
|
const { value: t, context: n, selectionValues: o } = e, [r, s] = v(), [a, c] = v(!1), [d, f] = t ? t.split(",") : [], u = parseInt(f), l = X(async () => {
|
|
4942
4912
|
if (!t || t && r)
|
|
4943
4913
|
return;
|
|
@@ -4957,12 +4927,12 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4957
4927
|
if (a)
|
|
4958
4928
|
return /* @__PURE__ */ i(gt, {});
|
|
4959
4929
|
const p = o.get(d);
|
|
4960
|
-
return /* @__PURE__ */ D(
|
|
4930
|
+
return /* @__PURE__ */ D(Ue, { children: [
|
|
4961
4931
|
/* @__PURE__ */ i(ie, { children: `${p}:` }),
|
|
4962
4932
|
/* @__PURE__ */ i(ie, { children: r }),
|
|
4963
4933
|
/* @__PURE__ */ i(pr, { id: u, model: d })
|
|
4964
4934
|
] });
|
|
4965
|
-
},
|
|
4935
|
+
}, ll = (e) => {
|
|
4966
4936
|
const { ooui: t, value: n } = e;
|
|
4967
4937
|
if (!n)
|
|
4968
4938
|
return null;
|
|
@@ -4970,7 +4940,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4970
4940
|
t.selectionValues.size ? o = t.selectionValues.get(n) : Array.isArray(n) && (o = n[1]);
|
|
4971
4941
|
const r = o.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = Xt(o);
|
|
4972
4942
|
return /* @__PURE__ */ i(wt, { title: o, children: /* @__PURE__ */ i(Qr, { alt: o, style: { backgroundColor: s }, children: r }) });
|
|
4973
|
-
}, { useToken:
|
|
4943
|
+
}, { useToken: dl } = Ke, ft = {
|
|
4974
4944
|
date: {
|
|
4975
4945
|
placeholder: "__/__/____",
|
|
4976
4946
|
dateDisplayFormat: "DD/MM/YYYY",
|
|
@@ -4983,9 +4953,9 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4983
4953
|
}
|
|
4984
4954
|
}, jo = (e) => {
|
|
4985
4955
|
const { ooui: t, showTime: n = !1 } = e, { required: o } = t;
|
|
4986
|
-
return /* @__PURE__ */ i(Ce, { required: o, ...e, children: /* @__PURE__ */ i(
|
|
4987
|
-
},
|
|
4988
|
-
const { value: t, onChange: n, ooui: o, showTime: r } = e, { id: s, readOnly: a, required: c } = o, { token: d } =
|
|
4956
|
+
return /* @__PURE__ */ i(Ce, { required: o, ...e, children: /* @__PURE__ */ i(ul, { ooui: t, showTime: n }) });
|
|
4957
|
+
}, ul = (e) => {
|
|
4958
|
+
const { value: t, onChange: n, ooui: o, showTime: r } = e, { id: s, readOnly: a, required: c } = o, { token: d } = dl(), f = c && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, u = r ? "time" : "date", l = (m) => {
|
|
4989
4959
|
n == null || n(m);
|
|
4990
4960
|
}, p = (m) => {
|
|
4991
4961
|
if (m == null) {
|
|
@@ -4995,7 +4965,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
4995
4965
|
l(m.format(ft[u].dateInternalFormat));
|
|
4996
4966
|
}, h = t ? et(t, ft[u].dateInternalFormat) : void 0;
|
|
4997
4967
|
return /* @__PURE__ */ i(
|
|
4998
|
-
|
|
4968
|
+
Un,
|
|
4999
4969
|
{
|
|
5000
4970
|
style: { width: "100%", ...f },
|
|
5001
4971
|
placeholder: r ? ft.time.placeholder : ft.date.placeholder,
|
|
@@ -5011,7 +4981,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5011
4981
|
changeOnBlur: !0
|
|
5012
4982
|
}
|
|
5013
4983
|
);
|
|
5014
|
-
},
|
|
4984
|
+
}, fl = ({
|
|
5015
4985
|
value: e
|
|
5016
4986
|
}) => Ie(
|
|
5017
4987
|
() => /* @__PURE__ */ i(
|
|
@@ -5026,7 +4996,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5026
4996
|
}
|
|
5027
4997
|
),
|
|
5028
4998
|
[e]
|
|
5029
|
-
),
|
|
4999
|
+
), ml = ({ value: e }) => Ie(() => /* @__PURE__ */ i(al, { m2oField: e }), [e]), pl = ({ value: e }) => Ie(
|
|
5030
5000
|
() => /* @__PURE__ */ i(
|
|
5031
5001
|
zt,
|
|
5032
5002
|
{
|
|
@@ -5034,7 +5004,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5034
5004
|
}
|
|
5035
5005
|
),
|
|
5036
5006
|
[e]
|
|
5037
|
-
),
|
|
5007
|
+
), hl = ({ value: e }) => Ie(() => {
|
|
5038
5008
|
if (!e || e && e.length === 0)
|
|
5039
5009
|
return /* @__PURE__ */ i(ie, {});
|
|
5040
5010
|
const t = et(
|
|
@@ -5042,7 +5012,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5042
5012
|
ft.date.dateInternalFormat
|
|
5043
5013
|
).format(ft.date.dateDisplayFormat);
|
|
5044
5014
|
return /* @__PURE__ */ i(ie, { children: t });
|
|
5045
|
-
}, [e]),
|
|
5015
|
+
}, [e]), gl = ({ value: e }) => Ie(() => {
|
|
5046
5016
|
if (!e || e && e.length === 0)
|
|
5047
5017
|
return /* @__PURE__ */ i(ie, {});
|
|
5048
5018
|
const t = et(
|
|
@@ -5055,12 +5025,12 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5055
5025
|
}) => Ie(() => {
|
|
5056
5026
|
const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
|
|
5057
5027
|
return /* @__PURE__ */ i(ie, { children: `( ${t} )` });
|
|
5058
|
-
}, [e]),
|
|
5028
|
+
}, [e]), yl = ({
|
|
5059
5029
|
value: e
|
|
5060
|
-
}) => Ie(() => /* @__PURE__ */ i(Bo, { value: e }), [e]),
|
|
5030
|
+
}) => Ie(() => /* @__PURE__ */ i(Bo, { value: e }), [e]), wl = ({ value: e }) => Ie(() => /* @__PURE__ */ i(ie, { children: Ho(e) }), [e]), Wr = ({ value: e }) => Ie(
|
|
5061
5031
|
() => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
|
|
5062
5032
|
[e]
|
|
5063
|
-
),
|
|
5033
|
+
), vl = ({ value: e }) => Ie(
|
|
5064
5034
|
() => /* @__PURE__ */ i(
|
|
5065
5035
|
"img",
|
|
5066
5036
|
{
|
|
@@ -5069,12 +5039,12 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5069
5039
|
}
|
|
5070
5040
|
),
|
|
5071
5041
|
[e]
|
|
5072
|
-
),
|
|
5042
|
+
), bl = ({
|
|
5073
5043
|
value: e,
|
|
5074
5044
|
key: t,
|
|
5075
5045
|
ooui: n,
|
|
5076
5046
|
context: o
|
|
5077
|
-
}) => Ie(() => /* @__PURE__ */ i(Po, { ooui: n, value: e }), [n, e]),
|
|
5047
|
+
}) => Ie(() => /* @__PURE__ */ i(Po, { ooui: n, value: e }), [n, e]), Cl = ({
|
|
5078
5048
|
value: e,
|
|
5079
5049
|
key: t,
|
|
5080
5050
|
ooui: n,
|
|
@@ -5082,14 +5052,14 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5082
5052
|
}) => Ie(() => {
|
|
5083
5053
|
let r = e;
|
|
5084
5054
|
return Array.isArray(e) && e.length === 2 && (r = e[0]), /* @__PURE__ */ i(ie, { children: n.selectionValues.get(r) });
|
|
5085
|
-
}, [n, e]),
|
|
5055
|
+
}, [n, e]), xl = ({
|
|
5086
5056
|
value: e,
|
|
5087
5057
|
key: t,
|
|
5088
5058
|
ooui: n,
|
|
5089
5059
|
context: o
|
|
5090
5060
|
}) => Ie(
|
|
5091
5061
|
() => /* @__PURE__ */ i(
|
|
5092
|
-
|
|
5062
|
+
cl,
|
|
5093
5063
|
{
|
|
5094
5064
|
value: e,
|
|
5095
5065
|
selectionValues: n.selectionValues,
|
|
@@ -5097,12 +5067,12 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5097
5067
|
}
|
|
5098
5068
|
),
|
|
5099
5069
|
[o, n.selectionValues, e]
|
|
5100
|
-
),
|
|
5070
|
+
), Sl = ({
|
|
5101
5071
|
value: e,
|
|
5102
5072
|
key: t,
|
|
5103
5073
|
ooui: n,
|
|
5104
5074
|
context: o
|
|
5105
|
-
}) => Ie(() => /* @__PURE__ */ i(
|
|
5075
|
+
}) => Ie(() => /* @__PURE__ */ i(ll, { ooui: n, value: e }), [n, e]), Tl = ({
|
|
5106
5076
|
value: e,
|
|
5107
5077
|
key: t,
|
|
5108
5078
|
ooui: n,
|
|
@@ -5148,23 +5118,23 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5148
5118
|
}
|
|
5149
5119
|
), [l, a]);
|
|
5150
5120
|
}, Ko = {
|
|
5151
|
-
boolean:
|
|
5152
|
-
many2one:
|
|
5153
|
-
text:
|
|
5121
|
+
boolean: fl,
|
|
5122
|
+
many2one: ml,
|
|
5123
|
+
text: pl,
|
|
5154
5124
|
one2many: Kr,
|
|
5155
5125
|
many2many: Kr,
|
|
5156
|
-
progressbar:
|
|
5157
|
-
float_time:
|
|
5158
|
-
image:
|
|
5126
|
+
progressbar: yl,
|
|
5127
|
+
float_time: wl,
|
|
5128
|
+
image: vl,
|
|
5159
5129
|
integer: Wr,
|
|
5160
5130
|
float: Wr,
|
|
5161
|
-
reference:
|
|
5162
|
-
tag:
|
|
5163
|
-
selection:
|
|
5164
|
-
date:
|
|
5165
|
-
datetime:
|
|
5166
|
-
avatar:
|
|
5167
|
-
tags:
|
|
5131
|
+
reference: xl,
|
|
5132
|
+
tag: bl,
|
|
5133
|
+
selection: Cl,
|
|
5134
|
+
date: hl,
|
|
5135
|
+
datetime: gl,
|
|
5136
|
+
avatar: Sl,
|
|
5137
|
+
tags: Tl
|
|
5168
5138
|
}, Wo = pt(
|
|
5169
5139
|
(e, t) => {
|
|
5170
5140
|
var de;
|
|
@@ -5193,7 +5163,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5193
5163
|
onSelectAllRecords: V
|
|
5194
5164
|
} = e, I = re(null), [S, _] = v([]), x = re(!1), [O, A] = v(), { t: N } = he(), K = re(o), j = Z(
|
|
5195
5165
|
nt
|
|
5196
|
-
), { title: W = void 0, setTitle: M = void 0 } = (F ? j : {}) || {},
|
|
5166
|
+
), { title: W = void 0, setTitle: M = void 0 } = (F ? j : {}) || {}, U = Ie(() => {
|
|
5197
5167
|
if (O)
|
|
5198
5168
|
return So(
|
|
5199
5169
|
O,
|
|
@@ -5238,7 +5208,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5238
5208
|
}
|
|
5239
5209
|
) }),
|
|
5240
5210
|
V && /* @__PURE__ */ i(ye, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
|
|
5241
|
-
|
|
5211
|
+
tl,
|
|
5242
5212
|
{
|
|
5243
5213
|
numberOfVisibleSelectedRows: ee,
|
|
5244
5214
|
numberOfRealSelectedRows: (l == null ? void 0 : l.length) || 0,
|
|
@@ -5272,9 +5242,9 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5272
5242
|
oe.push(`${Q.label}: ${Math.round(ae * 100) / 100}`);
|
|
5273
5243
|
}), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: oe.join(", ") });
|
|
5274
5244
|
}, [S, l, O]), L = Ie(() => {
|
|
5275
|
-
if (O !== null &&
|
|
5276
|
-
return
|
|
5277
|
-
}, [
|
|
5245
|
+
if (O !== null && U && U.length > 0)
|
|
5246
|
+
return Zc(U, S, 600);
|
|
5247
|
+
}, [U, S, O]), $ = Ie(() => h && (O != null && O.columns.some((ee) => ee.sum !== void 0)) ? h - 30 : h, [h, O == null ? void 0 : O.columns]);
|
|
5278
5248
|
return O === null || !L || ((de = L == null ? void 0 : L.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ i(je, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(cr, { children: [
|
|
5279
5249
|
B,
|
|
5280
5250
|
/* @__PURE__ */ i(
|
|
@@ -5314,7 +5284,7 @@ const il = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(Bo,
|
|
|
5314
5284
|
), on = Wn(Wo);
|
|
5315
5285
|
on.displayName = "Tree";
|
|
5316
5286
|
Wo.displayName = "UnmemoizedTree";
|
|
5317
|
-
const
|
|
5287
|
+
const Go = (e) => {
|
|
5318
5288
|
const {
|
|
5319
5289
|
model: t,
|
|
5320
5290
|
setSearchTreeNameSearch: n,
|
|
@@ -5340,7 +5310,7 @@ const Uo = (e) => {
|
|
|
5340
5310
|
searchParams: R = [],
|
|
5341
5311
|
setSearchValues: V,
|
|
5342
5312
|
clearSelection: I
|
|
5343
|
-
} = e, [S, _] = v(!1), [x, O] = v(!1), [A, N] = v(), [K, j] = v(1), [W, M] = v(0), [
|
|
5313
|
+
} = e, [S, _] = v(!1), [x, O] = v(!1), [A, N] = v(), [K, j] = v(1), [W, M] = v(0), [U, z] = v(), [J, Y] = v([]), [B, E] = v(void 0), [L, $] = v(void 0), de = re(F || Ft), ee = re([]), oe = X(
|
|
5344
5314
|
(ce) => {
|
|
5345
5315
|
y == null || y([...ce]), Y([...ce]);
|
|
5346
5316
|
},
|
|
@@ -5354,15 +5324,15 @@ const Uo = (e) => {
|
|
|
5354
5324
|
context: f
|
|
5355
5325
|
});
|
|
5356
5326
|
if (z(ce.length), u == null || u(ce.length), ce.length > 0) {
|
|
5357
|
-
const me = ce.map((pe) => pe == null ? void 0 : pe[0]), { colors: Me, status: He } = Tt(l),
|
|
5358
|
-
Me && (
|
|
5327
|
+
const me = ce.map((pe) => pe == null ? void 0 : pe[0]), { colors: Me, status: He } = Tt(l), G = {};
|
|
5328
|
+
Me && (G.colors = Me), He && (G.status = He);
|
|
5359
5329
|
const Se = await k.getHandler().readEvalUiObjects({
|
|
5360
5330
|
model: t,
|
|
5361
5331
|
ids: me,
|
|
5362
5332
|
arch: l == null ? void 0 : l.arch,
|
|
5363
5333
|
fields: l.field_parent ? { ...l.fields, [l.field_parent]: {} } : l.fields,
|
|
5364
5334
|
context: f,
|
|
5365
|
-
attrs:
|
|
5335
|
+
attrs: G
|
|
5366
5336
|
}), _e = Se[0];
|
|
5367
5337
|
ee.current = [..._e], E(Jt(Se[1])), $(Er(Se[1]));
|
|
5368
5338
|
const ge = _e.map((pe) => pe.id), be = h !== void 0 ? kt({
|
|
@@ -5388,8 +5358,8 @@ const Uo = (e) => {
|
|
|
5388
5358
|
u
|
|
5389
5359
|
]), ae = X(
|
|
5390
5360
|
async (ce) => {
|
|
5391
|
-
const { params: me, newOffset: Me } = ce || {}, He = Qt(me || R, b), { colors:
|
|
5392
|
-
|
|
5361
|
+
const { params: me, newOffset: Me } = ce || {}, He = Qt(me || R, b), { colors: G, status: Se } = Tt(l), _e = {};
|
|
5362
|
+
G && (_e.colors = G), Se && (_e.status = Se);
|
|
5393
5363
|
const { totalItems: ge, results: be, attrsEvaluated: pe } = await k.getHandler().searchForTree({
|
|
5394
5364
|
params: He,
|
|
5395
5365
|
limit: de.current,
|
|
@@ -5472,10 +5442,10 @@ const Uo = (e) => {
|
|
|
5472
5442
|
]
|
|
5473
5443
|
), Ee = X(
|
|
5474
5444
|
(ce) => {
|
|
5475
|
-
const { params: me, searchValues: Me, limit: He, offset:
|
|
5476
|
-
S || (n == null || n(void 0), o == null || o([]), V == null || V(Me), r == null || r(me), s == null || s(!1), O(!0), N(void 0), j(1), He && (de.current = He, C == null || C(He)),
|
|
5445
|
+
const { params: me, searchValues: Me, limit: He, offset: G } = ce;
|
|
5446
|
+
S || (n == null || n(void 0), o == null || o([]), V == null || V(Me), r == null || r(me), s == null || s(!1), O(!0), N(void 0), j(1), He && (de.current = He, C == null || C(He)), G && M(G), xe({
|
|
5477
5447
|
params: me,
|
|
5478
|
-
newOffset:
|
|
5448
|
+
newOffset: G
|
|
5479
5449
|
}));
|
|
5480
5450
|
},
|
|
5481
5451
|
[
|
|
@@ -5517,8 +5487,8 @@ const Uo = (e) => {
|
|
|
5517
5487
|
params: Qt(R, b),
|
|
5518
5488
|
model: t,
|
|
5519
5489
|
context: f,
|
|
5520
|
-
totalItems:
|
|
5521
|
-
}), [t, f,
|
|
5490
|
+
totalItems: U
|
|
5491
|
+
}), [t, f, U, R, b]);
|
|
5522
5492
|
return {
|
|
5523
5493
|
submit: Ee,
|
|
5524
5494
|
clear: fe,
|
|
@@ -5535,11 +5505,11 @@ const Uo = (e) => {
|
|
|
5535
5505
|
fetchChildrenForRecord: Fe,
|
|
5536
5506
|
colorsForResults: B,
|
|
5537
5507
|
statusForResults: L,
|
|
5538
|
-
totalItems:
|
|
5508
|
+
totalItems: U,
|
|
5539
5509
|
getAllIds: $e
|
|
5540
5510
|
};
|
|
5541
5511
|
};
|
|
5542
|
-
function
|
|
5512
|
+
function Il(e, t) {
|
|
5543
5513
|
var lt;
|
|
5544
5514
|
const {
|
|
5545
5515
|
model: n,
|
|
@@ -5559,7 +5529,7 @@ function Rl(e, t) {
|
|
|
5559
5529
|
nt
|
|
5560
5530
|
), {
|
|
5561
5531
|
setResults: M = void 0,
|
|
5562
|
-
setCurrentItemIndex:
|
|
5532
|
+
setCurrentItemIndex: U = void 0,
|
|
5563
5533
|
currentId: z = void 0,
|
|
5564
5534
|
results: J = void 0,
|
|
5565
5535
|
selectedRowItems: Y = void 0,
|
|
@@ -5589,7 +5559,7 @@ function Rl(e, t) {
|
|
|
5589
5559
|
tableRefreshing: me,
|
|
5590
5560
|
searchFilterLoading: Me,
|
|
5591
5561
|
searchError: He,
|
|
5592
|
-
page:
|
|
5562
|
+
page: G,
|
|
5593
5563
|
limit: Se,
|
|
5594
5564
|
offset: _e,
|
|
5595
5565
|
getResults: ge,
|
|
@@ -5600,7 +5570,7 @@ function Rl(e, t) {
|
|
|
5600
5570
|
statusForResults: Pe,
|
|
5601
5571
|
totalItems: q,
|
|
5602
5572
|
getAllIds: le
|
|
5603
|
-
} =
|
|
5573
|
+
} = Go({
|
|
5604
5574
|
model: T,
|
|
5605
5575
|
setSearchTreeNameSearch: Q,
|
|
5606
5576
|
setSelectedRowItems: fe,
|
|
@@ -5616,7 +5586,7 @@ function Rl(e, t) {
|
|
|
5616
5586
|
treeView: C,
|
|
5617
5587
|
sorter: ee,
|
|
5618
5588
|
setSorter: oe,
|
|
5619
|
-
setCurrentItemIndex:
|
|
5589
|
+
setCurrentItemIndex: U,
|
|
5620
5590
|
setResultsActionView: M,
|
|
5621
5591
|
resultsActionView: J,
|
|
5622
5592
|
domain: d,
|
|
@@ -5634,7 +5604,7 @@ function Rl(e, t) {
|
|
|
5634
5604
|
getDomain: () => d
|
|
5635
5605
|
})), ue(() => {
|
|
5636
5606
|
g && f && C && (w.current = !1, ce());
|
|
5637
|
-
}, [
|
|
5607
|
+
}, [G, _e, g, f, a, C]);
|
|
5638
5608
|
const Oe = async () => {
|
|
5639
5609
|
y(!1), m(!0), _(void 0), ae == null || ae(!0);
|
|
5640
5610
|
try {
|
|
@@ -5740,7 +5710,7 @@ function Rl(e, t) {
|
|
|
5740
5710
|
context: l,
|
|
5741
5711
|
total: q,
|
|
5742
5712
|
limit: Se,
|
|
5743
|
-
page:
|
|
5713
|
+
page: G,
|
|
5744
5714
|
treeView: C,
|
|
5745
5715
|
results: ge(),
|
|
5746
5716
|
onRequestPageChange: be,
|
|
@@ -5773,7 +5743,7 @@ function Rl(e, t) {
|
|
|
5773
5743
|
_e,
|
|
5774
5744
|
tt,
|
|
5775
5745
|
Re,
|
|
5776
|
-
|
|
5746
|
+
G,
|
|
5777
5747
|
l,
|
|
5778
5748
|
be,
|
|
5779
5749
|
u,
|
|
@@ -5790,10 +5760,10 @@ function Rl(e, t) {
|
|
|
5790
5760
|
q,
|
|
5791
5761
|
c,
|
|
5792
5762
|
C
|
|
5793
|
-
]),
|
|
5794
|
-
return
|
|
5763
|
+
]), Gt = S || He;
|
|
5764
|
+
return Gt ? /* @__PURE__ */ i(Je, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: f ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(je, {}) : sn() });
|
|
5795
5765
|
}
|
|
5796
|
-
const
|
|
5766
|
+
const Uo = pt(Il), hr = (e) => {
|
|
5797
5767
|
const {
|
|
5798
5768
|
visible: t,
|
|
5799
5769
|
onCloseModal: n,
|
|
@@ -5817,7 +5787,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5817
5787
|
}
|
|
5818
5788
|
const b = () => /* @__PURE__ */ D(ie, { children: [
|
|
5819
5789
|
/* @__PURE__ */ i(
|
|
5820
|
-
|
|
5790
|
+
Uo,
|
|
5821
5791
|
{
|
|
5822
5792
|
model: r,
|
|
5823
5793
|
nameSearch: s,
|
|
@@ -5829,7 +5799,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5829
5799
|
}
|
|
5830
5800
|
),
|
|
5831
5801
|
/* @__PURE__ */ i(pn, {}),
|
|
5832
|
-
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(
|
|
5802
|
+
/* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
|
|
5833
5803
|
/* @__PURE__ */ i(
|
|
5834
5804
|
Ne,
|
|
5835
5805
|
{
|
|
@@ -5885,8 +5855,8 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5885
5855
|
}
|
|
5886
5856
|
)
|
|
5887
5857
|
] });
|
|
5888
|
-
}, { error:
|
|
5889
|
-
|
|
5858
|
+
}, { error: Fl } = Ze, Zt = (e) => {
|
|
5859
|
+
Fl({
|
|
5890
5860
|
title: "Error",
|
|
5891
5861
|
icon: /* @__PURE__ */ i(vt, {}),
|
|
5892
5862
|
centered: !0,
|
|
@@ -5895,7 +5865,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5895
5865
|
}, $n = (e) => {
|
|
5896
5866
|
const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
|
|
5897
5867
|
Zt(t);
|
|
5898
|
-
}, { defaultAlgorithm:
|
|
5868
|
+
}, { defaultAlgorithm: Rl, defaultSeed: Ol } = Ke, Yo = Rl(Ol), Vl = (e) => {
|
|
5899
5869
|
const { ooui: t } = e, { required: n } = t;
|
|
5900
5870
|
return /* @__PURE__ */ i(Ce, { required: n, type: "array", validator: async (r, s) => {
|
|
5901
5871
|
if (!s)
|
|
@@ -5921,7 +5891,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5921
5891
|
}, [t]);
|
|
5922
5892
|
const M = ($) => {
|
|
5923
5893
|
n == null || n($), O == null || O();
|
|
5924
|
-
},
|
|
5894
|
+
}, U = ($) => {
|
|
5925
5895
|
R.current = $.target.value, M([void 0, ""]);
|
|
5926
5896
|
}, z = async () => {
|
|
5927
5897
|
if (!g && F !== W) {
|
|
@@ -5996,12 +5966,12 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
5996
5966
|
}
|
|
5997
5967
|
return /* @__PURE__ */ D(Ve, { gutter: 8, wrap: !1, children: [
|
|
5998
5968
|
/* @__PURE__ */ i(ye, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
|
|
5999
|
-
r && !a ?
|
|
5969
|
+
r && !a ? _l : it,
|
|
6000
5970
|
{
|
|
6001
5971
|
type: "text",
|
|
6002
5972
|
value: F,
|
|
6003
5973
|
disabled: a,
|
|
6004
|
-
onChange:
|
|
5974
|
+
onChange: U,
|
|
6005
5975
|
style: {
|
|
6006
5976
|
...u,
|
|
6007
5977
|
borderTopRightRadius: 0,
|
|
@@ -6077,13 +6047,13 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6077
6047
|
}
|
|
6078
6048
|
)
|
|
6079
6049
|
] });
|
|
6080
|
-
},
|
|
6050
|
+
}, _l = Lt(it)`
|
|
6081
6051
|
.ant-input {
|
|
6082
6052
|
background-color: ${Yo.colorPrimaryBg};
|
|
6083
6053
|
}
|
|
6084
6054
|
`, Wt = ot.createContext(
|
|
6085
6055
|
null
|
|
6086
|
-
),
|
|
6056
|
+
), Al = ({
|
|
6087
6057
|
children: e,
|
|
6088
6058
|
initialView: t
|
|
6089
6059
|
}) => {
|
|
@@ -6102,7 +6072,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6102
6072
|
children: e
|
|
6103
6073
|
}
|
|
6104
6074
|
);
|
|
6105
|
-
},
|
|
6075
|
+
}, Dl = ({
|
|
6106
6076
|
title: e,
|
|
6107
6077
|
content: t,
|
|
6108
6078
|
onOk: n,
|
|
@@ -6149,7 +6119,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6149
6119
|
const n = ho(t);
|
|
6150
6120
|
return n.render(
|
|
6151
6121
|
/* @__PURE__ */ i(
|
|
6152
|
-
|
|
6122
|
+
Dl,
|
|
6153
6123
|
{
|
|
6154
6124
|
...e,
|
|
6155
6125
|
onOk: async () => {
|
|
@@ -6192,7 +6162,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6192
6162
|
onOk: t,
|
|
6193
6163
|
cancelText: e("cancel")
|
|
6194
6164
|
});
|
|
6195
|
-
}, { useToken:
|
|
6165
|
+
}, { useToken: El } = Ke, Qo = (e) => {
|
|
6196
6166
|
const {
|
|
6197
6167
|
title: t,
|
|
6198
6168
|
readOnly: n,
|
|
@@ -6209,7 +6179,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6209
6179
|
selectedRowKeys: h,
|
|
6210
6180
|
showCreateButton: m,
|
|
6211
6181
|
showToggleButton: g
|
|
6212
|
-
} = e, { token: y } =
|
|
6182
|
+
} = e, { token: y } = El();
|
|
6213
6183
|
function w() {
|
|
6214
6184
|
return /* @__PURE__ */ i("div", { className: "inline-block w-3" });
|
|
6215
6185
|
}
|
|
@@ -6231,7 +6201,7 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6231
6201
|
ze,
|
|
6232
6202
|
{
|
|
6233
6203
|
tooltip: l ? "Unlink" : "Delete",
|
|
6234
|
-
icon: l ? /* @__PURE__ */ i(
|
|
6204
|
+
icon: l ? /* @__PURE__ */ i(Ui, {}) : /* @__PURE__ */ i(rr, {}),
|
|
6235
6205
|
onClick: a,
|
|
6236
6206
|
disabled: c === 0 || n || s !== "form" && h.length === 0
|
|
6237
6207
|
}
|
|
@@ -6298,29 +6268,29 @@ const Go = pt(Rl), hr = (e) => {
|
|
|
6298
6268
|
ze,
|
|
6299
6269
|
{
|
|
6300
6270
|
tooltip: "Toggle view mode",
|
|
6301
|
-
icon: /* @__PURE__ */ i(
|
|
6271
|
+
icon: /* @__PURE__ */ i(Gi, {}),
|
|
6302
6272
|
onClick: r
|
|
6303
6273
|
}
|
|
6304
6274
|
)
|
|
6305
6275
|
] })
|
|
6306
6276
|
] });
|
|
6307
|
-
},
|
|
6277
|
+
}, kl = {
|
|
6308
6278
|
form: ro,
|
|
6309
6279
|
tree: eo,
|
|
6310
6280
|
graph: $t
|
|
6311
6281
|
};
|
|
6312
|
-
function
|
|
6282
|
+
function Ml(e) {
|
|
6313
6283
|
const t = e.map((o) => o.id);
|
|
6314
6284
|
return e.filter((o, r) => {
|
|
6315
6285
|
const { id: s } = o;
|
|
6316
6286
|
return !t.includes(s, r + 1);
|
|
6317
6287
|
});
|
|
6318
6288
|
}
|
|
6319
|
-
const
|
|
6289
|
+
const Pl = (e) => {
|
|
6320
6290
|
var Pe;
|
|
6321
6291
|
const { value: t, onChange: n, ooui: o, views: r } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: c, itemIndex: d, setItemIndex: f } = Z(
|
|
6322
6292
|
Wt
|
|
6323
|
-
), u = Z(Le), { activeId: l, getFields: p, getValues: h, getContext: m, domain: g } = u || {}, { t: y } = he(), [w, b] = v(!1), [T, F] = v(!1), [C, R] = v(), [V, I] = v(!1), [S, _] = v(!1), [x, O] = v(), [A, N] = v([]), [K, j] = v(!1), W = re([]), [M,
|
|
6293
|
+
), u = Z(Le), { activeId: l, getFields: p, getValues: h, getContext: m, domain: g } = u || {}, { t: y } = he(), [w, b] = v(!1), [T, F] = v(!1), [C, R] = v(), [V, I] = v(!1), [S, _] = v(!1), [x, O] = v(), [A, N] = v([]), [K, j] = v(!1), W = re([]), [M, U] = v(), z = re(), [J, Y] = v(void 0), {
|
|
6324
6294
|
readOnly: B,
|
|
6325
6295
|
relation: E,
|
|
6326
6296
|
context: L,
|
|
@@ -6345,7 +6315,7 @@ const Ll = (e) => {
|
|
|
6345
6315
|
var le, Oe;
|
|
6346
6316
|
n == null || n({
|
|
6347
6317
|
fields: ((le = r.get("form")) == null ? void 0 : le.fields) || ((Oe = r.get("tree")) == null ? void 0 : Oe.fields),
|
|
6348
|
-
items:
|
|
6318
|
+
items: Ml(q)
|
|
6349
6319
|
});
|
|
6350
6320
|
}, xe = async () => {
|
|
6351
6321
|
await De(), d > oe.length - 1 && d !== 0 && f(0);
|
|
@@ -6433,7 +6403,7 @@ const Ll = (e) => {
|
|
|
6433
6403
|
Xo({
|
|
6434
6404
|
t: y,
|
|
6435
6405
|
onOk: async () => {
|
|
6436
|
-
a === "form" ?
|
|
6406
|
+
a === "form" ? G() : Se();
|
|
6437
6407
|
}
|
|
6438
6408
|
});
|
|
6439
6409
|
return;
|
|
@@ -6441,7 +6411,7 @@ const Ll = (e) => {
|
|
|
6441
6411
|
Jo({
|
|
6442
6412
|
t: y,
|
|
6443
6413
|
onOk: async () => {
|
|
6444
|
-
a === "form" ?
|
|
6414
|
+
a === "form" ? G() : Se();
|
|
6445
6415
|
}
|
|
6446
6416
|
});
|
|
6447
6417
|
}, Me = async () => {
|
|
@@ -6454,7 +6424,7 @@ const Ll = (e) => {
|
|
|
6454
6424
|
a === "form" ? ce(() => {
|
|
6455
6425
|
_(!0);
|
|
6456
6426
|
}) : _(!0);
|
|
6457
|
-
},
|
|
6427
|
+
}, G = async () => {
|
|
6458
6428
|
F(!0), b(!1), R(void 0);
|
|
6459
6429
|
try {
|
|
6460
6430
|
if (oe[d].id > 0) {
|
|
@@ -6546,7 +6516,7 @@ const Ll = (e) => {
|
|
|
6546
6516
|
}
|
|
6547
6517
|
};
|
|
6548
6518
|
function pe() {
|
|
6549
|
-
const q =
|
|
6519
|
+
const q = kl[a];
|
|
6550
6520
|
if (a === "graph")
|
|
6551
6521
|
return qn(r.get("graph").arch).string;
|
|
6552
6522
|
{
|
|
@@ -6601,7 +6571,7 @@ const Ll = (e) => {
|
|
|
6601
6571
|
selectedRowKeys: A,
|
|
6602
6572
|
onRowSelectionChange: N,
|
|
6603
6573
|
sorter: M,
|
|
6604
|
-
onChangeSort:
|
|
6574
|
+
onChangeSort: U,
|
|
6605
6575
|
context: { ...m == null ? void 0 : m(), ...L },
|
|
6606
6576
|
colorsForResults: J,
|
|
6607
6577
|
readonly: B,
|
|
@@ -6683,7 +6653,7 @@ const Ll = (e) => {
|
|
|
6683
6653
|
}
|
|
6684
6654
|
)
|
|
6685
6655
|
] });
|
|
6686
|
-
},
|
|
6656
|
+
}, Nl = ({
|
|
6687
6657
|
fieldName: e,
|
|
6688
6658
|
widgetDomain: t
|
|
6689
6659
|
}) => {
|
|
@@ -6713,7 +6683,7 @@ const Ll = (e) => {
|
|
|
6713
6683
|
));
|
|
6714
6684
|
}
|
|
6715
6685
|
return n.current;
|
|
6716
|
-
},
|
|
6686
|
+
}, Ll = ({
|
|
6717
6687
|
treeView: e,
|
|
6718
6688
|
relation: t,
|
|
6719
6689
|
context: n
|
|
@@ -6753,7 +6723,7 @@ const Ll = (e) => {
|
|
|
6753
6723
|
onChangeAllRowSelectedMode: d,
|
|
6754
6724
|
allRowSelectedMode: c.current
|
|
6755
6725
|
};
|
|
6756
|
-
},
|
|
6726
|
+
}, $l = ({
|
|
6757
6727
|
items: e,
|
|
6758
6728
|
relation: t,
|
|
6759
6729
|
context: n,
|
|
@@ -6816,9 +6786,9 @@ const Ll = (e) => {
|
|
|
6816
6786
|
getOriginalItemsWithRestoredItemId: u,
|
|
6817
6787
|
onFormChanges: l
|
|
6818
6788
|
};
|
|
6819
|
-
},
|
|
6789
|
+
}, Hl = ({
|
|
6820
6790
|
one2manyItems: e
|
|
6821
|
-
}) => Pn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]),
|
|
6791
|
+
}) => Pn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Bl = ({
|
|
6822
6792
|
formView: e,
|
|
6823
6793
|
items: t,
|
|
6824
6794
|
context: n,
|
|
@@ -6850,7 +6820,7 @@ const Ll = (e) => {
|
|
|
6850
6820
|
readOnly: r
|
|
6851
6821
|
}
|
|
6852
6822
|
);
|
|
6853
|
-
},
|
|
6823
|
+
}, jl = ({
|
|
6854
6824
|
isMany2many: e,
|
|
6855
6825
|
triggerChange: t,
|
|
6856
6826
|
items: n,
|
|
@@ -6861,7 +6831,7 @@ const Ll = (e) => {
|
|
|
6861
6831
|
const { t: a } = he(), { currentView: c, itemIndex: d, setItemIndex: f } = Z(
|
|
6862
6832
|
Wt
|
|
6863
6833
|
), u = X(async () => {
|
|
6864
|
-
const m =
|
|
6834
|
+
const m = Kl({
|
|
6865
6835
|
selectedRowKeys: r,
|
|
6866
6836
|
items: n
|
|
6867
6837
|
});
|
|
@@ -6913,7 +6883,7 @@ const Ll = (e) => {
|
|
|
6913
6883
|
});
|
|
6914
6884
|
}, [e, p, a]) };
|
|
6915
6885
|
};
|
|
6916
|
-
function
|
|
6886
|
+
function Kl({
|
|
6917
6887
|
selectedRowKeys: e,
|
|
6918
6888
|
items: t
|
|
6919
6889
|
}) {
|
|
@@ -6922,7 +6892,7 @@ function Ul({
|
|
|
6922
6892
|
r.id && o[r.id] > 0 && (n.push(r), o[r.id] -= 1);
|
|
6923
6893
|
}), n;
|
|
6924
6894
|
}
|
|
6925
|
-
const
|
|
6895
|
+
const Wl = ({
|
|
6926
6896
|
currentView: e,
|
|
6927
6897
|
inv_field: t,
|
|
6928
6898
|
activeId: n,
|
|
@@ -6994,7 +6964,7 @@ const Gl = ({
|
|
|
6994
6964
|
onFormModalSubmitSucceed: T,
|
|
6995
6965
|
openItemInFormModal: F
|
|
6996
6966
|
};
|
|
6997
|
-
},
|
|
6967
|
+
}, Gl = ({
|
|
6998
6968
|
currentView: e,
|
|
6999
6969
|
showFormChangesDialogIfNeeded: t,
|
|
7000
6970
|
items: n,
|
|
@@ -7050,18 +7020,18 @@ const Gl = ({
|
|
|
7050
7020
|
onCloseSearchModal: u,
|
|
7051
7021
|
onSelectSearchValues: p
|
|
7052
7022
|
};
|
|
7053
|
-
},
|
|
7023
|
+
}, Ul = (e) => {
|
|
7054
7024
|
const t = It(() => {
|
|
7055
|
-
const o = localStorage.getItem(
|
|
7025
|
+
const o = localStorage.getItem(Gr(e));
|
|
7056
7026
|
return o ? JSON.parse(o) : void 0;
|
|
7057
7027
|
}, [e]), n = It(
|
|
7058
7028
|
(o) => {
|
|
7059
|
-
localStorage.setItem(
|
|
7029
|
+
localStorage.setItem(Gr(e), JSON.stringify(o));
|
|
7060
7030
|
},
|
|
7061
7031
|
[e]
|
|
7062
7032
|
);
|
|
7063
7033
|
return { getColumnState: t, updateColumnState: n };
|
|
7064
|
-
},
|
|
7034
|
+
}, Gr = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, Yl = 400, ql = ({
|
|
7065
7035
|
items: e,
|
|
7066
7036
|
height: t,
|
|
7067
7037
|
onRowDoubleClick: n,
|
|
@@ -7102,9 +7072,9 @@ const Gl = ({
|
|
|
7102
7072
|
});
|
|
7103
7073
|
if (j.length === 0)
|
|
7104
7074
|
return [];
|
|
7105
|
-
const { results: W, colors: M } = await a(j),
|
|
7075
|
+
const { results: W, colors: M } = await a(j), U = lr(r, W), z = K.map((J) => {
|
|
7106
7076
|
var B;
|
|
7107
|
-
const Y =
|
|
7077
|
+
const Y = U.find((E) => E.id === J);
|
|
7108
7078
|
return Y || ((B = A.find((E) => E.id === J)) == null ? void 0 : B.treeValues);
|
|
7109
7079
|
});
|
|
7110
7080
|
return b.current = { ...b.current, ...M }, z;
|
|
@@ -7114,7 +7084,7 @@ const Gl = ({
|
|
|
7114
7084
|
var O, A, N, K;
|
|
7115
7085
|
if (b.current[(A = (O = x.node) == null ? void 0 : O.data) == null ? void 0 : A.id])
|
|
7116
7086
|
return { color: b.current[(K = (N = x.node) == null ? void 0 : N.data) == null ? void 0 : K.id] };
|
|
7117
|
-
}, []), { getColumnState: S, updateColumnState: _ } =
|
|
7087
|
+
}, []), { getColumnState: S, updateColumnState: _ } = Ul({
|
|
7118
7088
|
...g,
|
|
7119
7089
|
model: f
|
|
7120
7090
|
});
|
|
@@ -7122,7 +7092,7 @@ const Gl = ({
|
|
|
7122
7092
|
xs,
|
|
7123
7093
|
{
|
|
7124
7094
|
ref: w,
|
|
7125
|
-
height: t ||
|
|
7095
|
+
height: t || Yl,
|
|
7126
7096
|
columns: R,
|
|
7127
7097
|
onRequestData: V,
|
|
7128
7098
|
onRowDoubleClick: n,
|
|
@@ -7139,9 +7109,9 @@ const Gl = ({
|
|
|
7139
7109
|
totalRows: C
|
|
7140
7110
|
}
|
|
7141
7111
|
);
|
|
7142
|
-
},
|
|
7112
|
+
}, zl = ["form", "tree", "graph"], Jl = (e) => {
|
|
7143
7113
|
var ce;
|
|
7144
|
-
const t = re(null), { value: n, onChange: o, ooui: r, views: s } = e, { items: a = [] } = n || {}, c =
|
|
7114
|
+
const t = re(null), { value: n, onChange: o, ooui: r, views: s } = e, { items: a = [] } = n || {}, c = Hl({ one2manyItems: a }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: l } = Z(
|
|
7145
7115
|
Wt
|
|
7146
7116
|
), {
|
|
7147
7117
|
readOnly: p,
|
|
@@ -7149,7 +7119,7 @@ const Gl = ({
|
|
|
7149
7119
|
context: m,
|
|
7150
7120
|
domain: g,
|
|
7151
7121
|
id: y
|
|
7152
|
-
} = r, w = Z(Le), { activeId: b, getContext: T } = w || {}, F = s.size > 1, C = ((ce = s.get("form")) == null ? void 0 : ce.fields) !== void 0, R = Ie(() => ({ ...T == null ? void 0 : T(), ...m }), [T, m]), V =
|
|
7122
|
+
} = r, w = Z(Le), { activeId: b, getContext: T } = w || {}, F = s.size > 1, C = ((ce = s.get("form")) == null ? void 0 : ce.fields) !== void 0, R = Ie(() => ({ ...T == null ? void 0 : T(), ...m }), [T, m]), V = Nl({
|
|
7153
7123
|
widgetDomain: g,
|
|
7154
7124
|
fieldName: y
|
|
7155
7125
|
}), {
|
|
@@ -7162,14 +7132,14 @@ const Gl = ({
|
|
|
7162
7132
|
onGetSelectedRowKeys: N,
|
|
7163
7133
|
allRowSelectedMode: K,
|
|
7164
7134
|
onChangeAllRowSelectedMode: j
|
|
7165
|
-
} =
|
|
7135
|
+
} = Ll({
|
|
7166
7136
|
treeView: s.get("tree"),
|
|
7167
7137
|
relation: h,
|
|
7168
7138
|
context: R
|
|
7169
7139
|
}), W = Ie(() => {
|
|
7170
7140
|
const { title: me } = s.get(d) || {};
|
|
7171
7141
|
return me || r.label;
|
|
7172
|
-
}, [d, r.label, s]), M = r.type === "many2many",
|
|
7142
|
+
}, [d, r.label, s]), M = r.type === "many2many", U = X(
|
|
7173
7143
|
(me) => {
|
|
7174
7144
|
var Me, He;
|
|
7175
7145
|
o == null || o({
|
|
@@ -7183,13 +7153,13 @@ const Gl = ({
|
|
|
7183
7153
|
onFormChanges: J,
|
|
7184
7154
|
showFormChangesDialogIfNeeded: Y,
|
|
7185
7155
|
setFormHasChanges: B
|
|
7186
|
-
} =
|
|
7156
|
+
} = $l({
|
|
7187
7157
|
items: c,
|
|
7188
7158
|
formView: s.get("form"),
|
|
7189
7159
|
treeView: s.get("tree"),
|
|
7190
7160
|
relation: h,
|
|
7191
7161
|
context: R,
|
|
7192
|
-
triggerChange:
|
|
7162
|
+
triggerChange: U
|
|
7193
7163
|
}), {
|
|
7194
7164
|
showFormModal: E,
|
|
7195
7165
|
modalItem: L,
|
|
@@ -7198,12 +7168,12 @@ const Gl = ({
|
|
|
7198
7168
|
onFormModalSubmitSucceed: ee,
|
|
7199
7169
|
createItem: oe,
|
|
7200
7170
|
openItemInFormModal: ve
|
|
7201
|
-
} =
|
|
7171
|
+
} = Wl({
|
|
7202
7172
|
activeId: b,
|
|
7203
7173
|
inv_field: r.inv_field,
|
|
7204
7174
|
showFormChangesDialogIfNeeded: Y,
|
|
7205
7175
|
currentView: d,
|
|
7206
|
-
triggerChange:
|
|
7176
|
+
triggerChange: U,
|
|
7207
7177
|
items: c,
|
|
7208
7178
|
setCurrentView: f,
|
|
7209
7179
|
setItemIndex: l,
|
|
@@ -7215,18 +7185,18 @@ const Gl = ({
|
|
|
7215
7185
|
onSelectSearchValues: ae,
|
|
7216
7186
|
onCloseSearchModal: xe,
|
|
7217
7187
|
searchItem: De
|
|
7218
|
-
} =
|
|
7188
|
+
} = Gl({
|
|
7219
7189
|
showFormChangesDialogIfNeeded: Y,
|
|
7220
7190
|
currentView: d,
|
|
7221
|
-
triggerChange:
|
|
7191
|
+
triggerChange: U,
|
|
7222
7192
|
items: c,
|
|
7223
7193
|
views: s,
|
|
7224
7194
|
context: R,
|
|
7225
7195
|
relation: h
|
|
7226
|
-
}), { showRemoveConfirm: Ee } =
|
|
7196
|
+
}), { showRemoveConfirm: Ee } = jl({
|
|
7227
7197
|
isMany2many: M,
|
|
7228
7198
|
items: c,
|
|
7229
|
-
triggerChange:
|
|
7199
|
+
triggerChange: U,
|
|
7230
7200
|
setFormHasChanges: B,
|
|
7231
7201
|
selectedRowKeys: _,
|
|
7232
7202
|
setSelectedRowKeys: x
|
|
@@ -7281,7 +7251,7 @@ const Gl = ({
|
|
|
7281
7251
|
}
|
|
7282
7252
|
),
|
|
7283
7253
|
d === "tree" && /* @__PURE__ */ i(
|
|
7284
|
-
|
|
7254
|
+
ql,
|
|
7285
7255
|
{
|
|
7286
7256
|
gridRef: t,
|
|
7287
7257
|
items: c,
|
|
@@ -7305,7 +7275,7 @@ const Gl = ({
|
|
|
7305
7275
|
}
|
|
7306
7276
|
),
|
|
7307
7277
|
d === "form" && /* @__PURE__ */ i(
|
|
7308
|
-
|
|
7278
|
+
Bl,
|
|
7309
7279
|
{
|
|
7310
7280
|
items: c,
|
|
7311
7281
|
formView: s.get("form"),
|
|
@@ -7353,12 +7323,12 @@ const Gl = ({
|
|
|
7353
7323
|
limit: 0
|
|
7354
7324
|
}
|
|
7355
7325
|
),
|
|
7356
|
-
!
|
|
7326
|
+
!zl.includes(d) && /* @__PURE__ */ D("span", { children: [
|
|
7357
7327
|
"Unsupported view ",
|
|
7358
7328
|
d
|
|
7359
7329
|
] })
|
|
7360
7330
|
] });
|
|
7361
|
-
},
|
|
7331
|
+
}, Xl = (e) => {
|
|
7362
7332
|
var C;
|
|
7363
7333
|
const { ooui: t } = e, { mode: n, relation: o, views: r, required: s, context: a } = t;
|
|
7364
7334
|
let c;
|
|
@@ -7389,7 +7359,7 @@ const Gl = ({
|
|
|
7389
7359
|
f(!1);
|
|
7390
7360
|
}
|
|
7391
7361
|
};
|
|
7392
|
-
return n && n.length > 0 ? c = n[0] : c = "tree", d ? /* @__PURE__ */ i(je, {}) : u ? /* @__PURE__ */ i(Je, { className: "mt-10", message: u, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
7362
|
+
return n && n.length > 0 ? c = n[0] : c = "tree", d ? /* @__PURE__ */ i(je, {}) : u ? /* @__PURE__ */ i(Je, { className: "mt-10", message: u, type: "error", banner: !0 }) : /* @__PURE__ */ i(Al, { initialView: c, children: /* @__PURE__ */ i(
|
|
7393
7363
|
Ce,
|
|
7394
7364
|
{
|
|
7395
7365
|
required: s,
|
|
@@ -7406,21 +7376,21 @@ const Gl = ({
|
|
|
7406
7376
|
},
|
|
7407
7377
|
...e,
|
|
7408
7378
|
children: t.infinite ? /* @__PURE__ */ i(
|
|
7409
|
-
|
|
7379
|
+
Jl,
|
|
7410
7380
|
{
|
|
7411
7381
|
ooui: t,
|
|
7412
7382
|
views: p,
|
|
7413
7383
|
parentViewId: w,
|
|
7414
7384
|
treeViewId: (C = p.get("tree")) == null ? void 0 : C.view_id
|
|
7415
7385
|
}
|
|
7416
|
-
) : /* @__PURE__ */ i(
|
|
7386
|
+
) : /* @__PURE__ */ i(Pl, { ooui: t, views: p })
|
|
7417
7387
|
}
|
|
7418
7388
|
) });
|
|
7419
|
-
}, { useToken:
|
|
7389
|
+
}, { useToken: Ql } = Ke, Zl = (e) => {
|
|
7420
7390
|
const { ooui: t } = e, { required: n } = t;
|
|
7421
|
-
return /* @__PURE__ */ i(Ce, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(
|
|
7422
|
-
},
|
|
7423
|
-
const { ooui: t, value: n, onChange: o } = e, { id: r, readOnly: s, required: a } = t, { token: c } =
|
|
7391
|
+
return /* @__PURE__ */ i(Ce, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(ed, { ooui: t }) });
|
|
7392
|
+
}, ed = (e) => {
|
|
7393
|
+
const { ooui: t, value: n, onChange: o } = e, { id: r, readOnly: s, required: a } = t, { token: c } = Ql(), d = a && !s ? { backgroundColor: c.colorPrimaryBg } : void 0, f = re(), [u, l] = v(), p = Z(Le), { elementHasLostFocus: h } = p || {};
|
|
7424
7394
|
ue(() => {
|
|
7425
7395
|
l(Ho(n));
|
|
7426
7396
|
}, [n]);
|
|
@@ -7431,7 +7401,7 @@ const Gl = ({
|
|
|
7431
7401
|
f.current = w.target.value, l(w.target.value);
|
|
7432
7402
|
}
|
|
7433
7403
|
async function y() {
|
|
7434
|
-
m(
|
|
7404
|
+
m(nl(u)), await new Promise((w) => setTimeout(w, 300)), h == null || h();
|
|
7435
7405
|
}
|
|
7436
7406
|
return /* @__PURE__ */ i(
|
|
7437
7407
|
it,
|
|
@@ -7463,8 +7433,8 @@ function Zo(e) {
|
|
|
7463
7433
|
}
|
|
7464
7434
|
) });
|
|
7465
7435
|
}
|
|
7466
|
-
const { TabPane:
|
|
7467
|
-
function
|
|
7436
|
+
const { TabPane: td } = Zr;
|
|
7437
|
+
function nd(e) {
|
|
7468
7438
|
const { ooui: t, responsiveBehaviour: n } = e, o = t.pages;
|
|
7469
7439
|
function r(s) {
|
|
7470
7440
|
if (s) {
|
|
@@ -7473,7 +7443,7 @@ function od(e) {
|
|
|
7473
7443
|
}
|
|
7474
7444
|
}
|
|
7475
7445
|
return /* @__PURE__ */ i(Zr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: o.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
|
|
7476
|
-
|
|
7446
|
+
td,
|
|
7477
7447
|
{
|
|
7478
7448
|
tab: /* @__PURE__ */ D(ie, { children: [
|
|
7479
7449
|
r(s.icon),
|
|
@@ -7492,10 +7462,10 @@ function od(e) {
|
|
|
7492
7462
|
s.label
|
|
7493
7463
|
)) });
|
|
7494
7464
|
}
|
|
7495
|
-
const { useToken:
|
|
7496
|
-
const { ooui: t } = e, { id: n, readOnly: o, required: r, height: s, translatable: a } = t, { token: c } =
|
|
7465
|
+
const { useToken: rd } = Ke, { TextArea: Hn } = it, od = (e) => {
|
|
7466
|
+
const { ooui: t } = e, { id: n, readOnly: o, required: r, height: s, translatable: a } = t, { token: c } = rd(), d = r && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, f = Z(Le), { elementHasLostFocus: u } = f || {};
|
|
7497
7467
|
return /* @__PURE__ */ i(Ce, { required: r, ...e, children: a ? /* @__PURE__ */ i(
|
|
7498
|
-
|
|
7468
|
+
id,
|
|
7499
7469
|
{
|
|
7500
7470
|
field: n,
|
|
7501
7471
|
height: s,
|
|
@@ -7513,7 +7483,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7513
7483
|
onBlur: u
|
|
7514
7484
|
}
|
|
7515
7485
|
) });
|
|
7516
|
-
},
|
|
7486
|
+
}, id = ({
|
|
7517
7487
|
value: e,
|
|
7518
7488
|
field: t,
|
|
7519
7489
|
requiredStyle: n,
|
|
@@ -7603,13 +7573,13 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7603
7573
|
}
|
|
7604
7574
|
) })
|
|
7605
7575
|
] });
|
|
7606
|
-
},
|
|
7576
|
+
}, sd = (e) => {
|
|
7607
7577
|
const { ooui: t } = e, { label: n, icon: o } = t, r = st(o || "");
|
|
7608
|
-
return /* @__PURE__ */ i(pn, { orientation: "left", className: "text-sm", children: (r || n) && /* @__PURE__ */ D(
|
|
7578
|
+
return /* @__PURE__ */ i(pn, { orientation: "left", className: "text-sm", children: (r || n) && /* @__PURE__ */ D(Ue, { children: [
|
|
7609
7579
|
r ? /* @__PURE__ */ i(r, {}) : null,
|
|
7610
7580
|
n
|
|
7611
7581
|
] }) });
|
|
7612
|
-
},
|
|
7582
|
+
}, ad = ({
|
|
7613
7583
|
model: e,
|
|
7614
7584
|
context: t,
|
|
7615
7585
|
selectedRegistersToExport: n,
|
|
@@ -7629,7 +7599,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7629
7599
|
]);
|
|
7630
7600
|
const { datas: b } = await k.getHandler().exportData({
|
|
7631
7601
|
model: e,
|
|
7632
|
-
fields:
|
|
7602
|
+
fields: md({
|
|
7633
7603
|
keys: y.selectedKeys,
|
|
7634
7604
|
fields: a.current
|
|
7635
7605
|
}),
|
|
@@ -7649,7 +7619,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7649
7619
|
context: t,
|
|
7650
7620
|
fields: []
|
|
7651
7621
|
});
|
|
7652
|
-
return a.current["/"] = y,
|
|
7622
|
+
return a.current["/"] = y, Ur({ fields: y });
|
|
7653
7623
|
}, [e, t, a]), l = X(
|
|
7654
7624
|
async (y) => {
|
|
7655
7625
|
const b = Kn(y, a.current)[jn(y)], T = b.relation, F = await k.getHandler().getFields({
|
|
@@ -7658,18 +7628,18 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7658
7628
|
fields: []
|
|
7659
7629
|
});
|
|
7660
7630
|
for (const [C, R] of Object.entries(F))
|
|
7661
|
-
F[C].string =
|
|
7631
|
+
F[C].string = ld({
|
|
7662
7632
|
parentTitle: b.string,
|
|
7663
7633
|
title: R.string
|
|
7664
7634
|
});
|
|
7665
|
-
return a.current[y] = F,
|
|
7635
|
+
return a.current[y] = F, Ur({
|
|
7666
7636
|
fields: F,
|
|
7667
7637
|
parentKey: y
|
|
7668
7638
|
});
|
|
7669
7639
|
},
|
|
7670
7640
|
[t]
|
|
7671
7641
|
), p = X(async () => {
|
|
7672
|
-
const y = await
|
|
7642
|
+
const y = await dd({ model: e, context: t }), w = await fd({
|
|
7673
7643
|
predefinedExports: y,
|
|
7674
7644
|
fields: a.current,
|
|
7675
7645
|
onGetFieldChilds: l
|
|
@@ -7743,7 +7713,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7743
7713
|
onSavePredefinedExport: g,
|
|
7744
7714
|
onRemovePredefinedExport: h
|
|
7745
7715
|
};
|
|
7746
|
-
},
|
|
7716
|
+
}, Ur = ({
|
|
7747
7717
|
fields: e,
|
|
7748
7718
|
parentKey: t
|
|
7749
7719
|
}) => {
|
|
@@ -7754,7 +7724,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7754
7724
|
continue;
|
|
7755
7725
|
const s = ei(r);
|
|
7756
7726
|
n.push({
|
|
7757
|
-
key:
|
|
7727
|
+
key: cd({ key: o, parentKey: t }),
|
|
7758
7728
|
title: r.string,
|
|
7759
7729
|
tooltip: r.help,
|
|
7760
7730
|
required: r.required,
|
|
@@ -7762,7 +7732,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7762
7732
|
});
|
|
7763
7733
|
}
|
|
7764
7734
|
return n;
|
|
7765
|
-
}, ei = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
7735
|
+
}, ei = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", cd = ({
|
|
7766
7736
|
parentKey: e,
|
|
7767
7737
|
key: t
|
|
7768
7738
|
}) => `${e ? e + "/" : ""}${t}`, Bn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), jn = (e) => {
|
|
@@ -7770,10 +7740,10 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7770
7740
|
return e;
|
|
7771
7741
|
const t = e.split("/");
|
|
7772
7742
|
return t[t.length - 1];
|
|
7773
|
-
}, Kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Bn(e)],
|
|
7743
|
+
}, Kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Bn(e)], ld = ({
|
|
7774
7744
|
title: e,
|
|
7775
7745
|
parentTitle: t
|
|
7776
|
-
}) => `${t ? t + " → " : ""}${e}`,
|
|
7746
|
+
}) => `${t ? t + " → " : ""}${e}`, dd = async ({
|
|
7777
7747
|
model: e,
|
|
7778
7748
|
context: t
|
|
7779
7749
|
}) => {
|
|
@@ -7793,24 +7763,24 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7793
7763
|
key: r.find((d) => d.id === a).name
|
|
7794
7764
|
}))
|
|
7795
7765
|
}));
|
|
7796
|
-
},
|
|
7766
|
+
}, ud = ({
|
|
7797
7767
|
fields: e,
|
|
7798
7768
|
keys: t
|
|
7799
|
-
}) =>
|
|
7769
|
+
}) => pd([
|
|
7800
7770
|
...new Set(
|
|
7801
7771
|
t.filter((n) => {
|
|
7802
7772
|
var o, r;
|
|
7803
7773
|
return n.indexOf("/") === -1 ? !((o = e["/"]) != null && o[n]) : !((r = e == null ? void 0 : e[Bn(n)]) != null && r[n]);
|
|
7804
7774
|
}).map((n) => Bn(n))
|
|
7805
7775
|
)
|
|
7806
|
-
]),
|
|
7776
|
+
]), fd = async ({
|
|
7807
7777
|
predefinedExports: e,
|
|
7808
7778
|
fields: t,
|
|
7809
7779
|
onGetFieldChilds: n
|
|
7810
7780
|
}) => {
|
|
7811
7781
|
const o = e.flatMap(
|
|
7812
7782
|
(a) => a.fields.map((c) => c.key)
|
|
7813
|
-
), r =
|
|
7783
|
+
), r = ud({
|
|
7814
7784
|
fields: t,
|
|
7815
7785
|
keys: o
|
|
7816
7786
|
}), s = [];
|
|
@@ -7824,13 +7794,13 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7824
7794
|
);
|
|
7825
7795
|
}
|
|
7826
7796
|
return s;
|
|
7827
|
-
},
|
|
7797
|
+
}, md = ({
|
|
7828
7798
|
keys: e,
|
|
7829
7799
|
fields: t
|
|
7830
7800
|
}) => e.map((n) => {
|
|
7831
7801
|
const o = jn(n), s = Kn(n, t)[o];
|
|
7832
7802
|
return ei(s) ? `${n}/id` : n;
|
|
7833
|
-
}),
|
|
7803
|
+
}), pd = (e) => {
|
|
7834
7804
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
7835
7805
|
for (const o of e) {
|
|
7836
7806
|
const r = o.split("/");
|
|
@@ -7844,7 +7814,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7844
7814
|
const s = o.split("/").length, a = r.split("/").length;
|
|
7845
7815
|
return s - a;
|
|
7846
7816
|
}), n;
|
|
7847
|
-
},
|
|
7817
|
+
}, hd = (e) => {
|
|
7848
7818
|
const {
|
|
7849
7819
|
visible: t,
|
|
7850
7820
|
onClose: n,
|
|
@@ -7862,7 +7832,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7862
7832
|
onGetPredefinedExports: h,
|
|
7863
7833
|
onSavePredefinedExport: m,
|
|
7864
7834
|
onRemovePredefinedExport: g
|
|
7865
|
-
} =
|
|
7835
|
+
} = ad({
|
|
7866
7836
|
model: o,
|
|
7867
7837
|
context: r,
|
|
7868
7838
|
domain: c,
|
|
@@ -7886,16 +7856,16 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7886
7856
|
onRemovePredefinedExport: g
|
|
7887
7857
|
}
|
|
7888
7858
|
);
|
|
7889
|
-
},
|
|
7859
|
+
}, gd = (e) => {
|
|
7890
7860
|
const { ooui: t } = e;
|
|
7891
7861
|
return /* @__PURE__ */ i(jo, { ooui: t });
|
|
7892
|
-
},
|
|
7862
|
+
}, yd = (e) => {
|
|
7893
7863
|
const { ooui: t } = e;
|
|
7894
7864
|
return /* @__PURE__ */ i(jo, { ooui: t, showTime: !0 });
|
|
7895
|
-
},
|
|
7865
|
+
}, wd = (e) => {
|
|
7896
7866
|
const { ooui: t } = e;
|
|
7897
|
-
return /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(
|
|
7898
|
-
},
|
|
7867
|
+
return /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(vd, { ooui: t }) });
|
|
7868
|
+
}, vd = (e) => /* @__PURE__ */ i(
|
|
7899
7869
|
Ln,
|
|
7900
7870
|
{
|
|
7901
7871
|
onChange: (n, o) => {
|
|
@@ -7904,10 +7874,10 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7904
7874
|
numberOfSelectsToHide: 3,
|
|
7905
7875
|
value: e.value ? et(e.value, "HH:mm:ss") : void 0
|
|
7906
7876
|
}
|
|
7907
|
-
),
|
|
7877
|
+
), bd = (e) => {
|
|
7908
7878
|
const { ooui: t } = e, { required: n } = t;
|
|
7909
|
-
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
7910
|
-
},
|
|
7879
|
+
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(Cd, { ooui: t }) });
|
|
7880
|
+
}, Cd = (e) => {
|
|
7911
7881
|
const { value: t, onChange: n, ooui: o } = e, { required: r, selectionValues: s, readOnly: a, domain: c } = o, d = t == null ? void 0 : t.split(","), [f, u] = v([]), [l, p] = v();
|
|
7912
7882
|
return ue(() => {
|
|
7913
7883
|
if (!t) {
|
|
@@ -7955,11 +7925,11 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
7955
7925
|
}
|
|
7956
7926
|
) })
|
|
7957
7927
|
] });
|
|
7958
|
-
}, { useToken:
|
|
7928
|
+
}, { useToken: xd } = Ke, Sd = (e) => {
|
|
7959
7929
|
const { ooui: t } = e, { required: n } = t;
|
|
7960
|
-
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
7961
|
-
},
|
|
7962
|
-
const { ooui: t, value: n, onChange: o } = e, { readOnly: r, required: s, filenameField: a } = t, { token: c } =
|
|
7930
|
+
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(Td, { ooui: t }) });
|
|
7931
|
+
}, Td = (e) => {
|
|
7932
|
+
const { ooui: t, value: n, onChange: o } = e, { readOnly: r, required: s, filenameField: a } = t, { token: c } = xd(), d = s && !r ? { backgroundColor: c.colorPrimaryBg } : void 0, f = re(null), { setFieldValue: u, getFieldValue: l } = Z(Le) || {}, { t: p } = he(), h = n ? ca(n) : "", m = (T) => {
|
|
7963
7933
|
o == null || o(T);
|
|
7964
7934
|
};
|
|
7965
7935
|
async function g() {
|
|
@@ -8000,7 +7970,7 @@ const { useToken: id } = Ke, { TextArea: Hn } = it, sd = (e) => {
|
|
|
8000
7970
|
}
|
|
8001
7971
|
)
|
|
8002
7972
|
] }),
|
|
8003
|
-
/* @__PURE__ */ i(ye, { children: /* @__PURE__ */ D(
|
|
7973
|
+
/* @__PURE__ */ i(ye, { children: /* @__PURE__ */ D(Ue, { children: [
|
|
8004
7974
|
/* @__PURE__ */ i(
|
|
8005
7975
|
Ne,
|
|
8006
7976
|
{
|
|
@@ -8173,12 +8143,12 @@ function ti(e) {
|
|
|
8173
8143
|
}
|
|
8174
8144
|
);
|
|
8175
8145
|
}
|
|
8176
|
-
const { confirm:
|
|
8146
|
+
const { confirm: Id } = Ze, Fd = ({
|
|
8177
8147
|
onOk: e,
|
|
8178
8148
|
onCancel: t,
|
|
8179
8149
|
t: n
|
|
8180
8150
|
}) => {
|
|
8181
|
-
|
|
8151
|
+
Id({
|
|
8182
8152
|
title: n("unsavedChanges"),
|
|
8183
8153
|
icon: /* @__PURE__ */ i(vt, {}),
|
|
8184
8154
|
centered: !0,
|
|
@@ -8212,7 +8182,7 @@ async function ni(e, t, n) {
|
|
|
8212
8182
|
] })
|
|
8213
8183
|
);
|
|
8214
8184
|
}
|
|
8215
|
-
const
|
|
8185
|
+
const Rd = (e) => {
|
|
8216
8186
|
const {
|
|
8217
8187
|
numberOfAttachments: t,
|
|
8218
8188
|
attachments: n = [],
|
|
@@ -8310,7 +8280,7 @@ const Vd = (e) => {
|
|
|
8310
8280
|
}
|
|
8311
8281
|
);
|
|
8312
8282
|
};
|
|
8313
|
-
function
|
|
8283
|
+
function Od(e) {
|
|
8314
8284
|
const {
|
|
8315
8285
|
attachments: t,
|
|
8316
8286
|
disabled: n = !1,
|
|
@@ -8375,7 +8345,7 @@ function _d(e) {
|
|
|
8375
8345
|
m();
|
|
8376
8346
|
}, [m]), /* @__PURE__ */ D(ie, { children: [
|
|
8377
8347
|
/* @__PURE__ */ i(
|
|
8378
|
-
|
|
8348
|
+
Rd,
|
|
8379
8349
|
{
|
|
8380
8350
|
numberOfAttachments: t.length,
|
|
8381
8351
|
attachments: f,
|
|
@@ -8401,7 +8371,7 @@ function _d(e) {
|
|
|
8401
8371
|
)
|
|
8402
8372
|
] });
|
|
8403
8373
|
}
|
|
8404
|
-
function
|
|
8374
|
+
function Vd({ toolbar: e }) {
|
|
8405
8375
|
const {
|
|
8406
8376
|
availableViews: t,
|
|
8407
8377
|
currentView: n,
|
|
@@ -8434,7 +8404,7 @@ function Ad({ toolbar: e }) {
|
|
|
8434
8404
|
), { openRelate: A, openDefaultActionForModel: N } = O || {};
|
|
8435
8405
|
function K(E) {
|
|
8436
8406
|
if (s) {
|
|
8437
|
-
|
|
8407
|
+
Fd({
|
|
8438
8408
|
t: S,
|
|
8439
8409
|
onOk: () => {
|
|
8440
8410
|
E();
|
|
@@ -8462,7 +8432,7 @@ function Ad({ toolbar: e }) {
|
|
|
8462
8432
|
function M() {
|
|
8463
8433
|
d && u > 0 ? (f == null || f(u - 1), l == null || l(d[u - 1].id)) : d && u === 0 && (f == null || f(d.length - 1), l == null || l(d[d.length - 1].id));
|
|
8464
8434
|
}
|
|
8465
|
-
function
|
|
8435
|
+
function U() {
|
|
8466
8436
|
tn({
|
|
8467
8437
|
confirmMessage: S("confirmRemoveItem"),
|
|
8468
8438
|
t: S,
|
|
@@ -8515,7 +8485,7 @@ function Ad({ toolbar: e }) {
|
|
|
8515
8485
|
}
|
|
8516
8486
|
});
|
|
8517
8487
|
}
|
|
8518
|
-
return n ? /* @__PURE__ */ D(
|
|
8488
|
+
return n ? /* @__PURE__ */ D(Ue, { wrap: !0, children: [
|
|
8519
8489
|
b && /* @__PURE__ */ D(ie, { children: [
|
|
8520
8490
|
/* @__PURE__ */ i(je, {}),
|
|
8521
8491
|
Vt(),
|
|
@@ -8554,7 +8524,7 @@ function Ad({ toolbar: e }) {
|
|
|
8554
8524
|
tooltip: S("delete"),
|
|
8555
8525
|
disabled: a || c === void 0 || m || g || b,
|
|
8556
8526
|
loading: m,
|
|
8557
|
-
onClick:
|
|
8527
|
+
onClick: U
|
|
8558
8528
|
}
|
|
8559
8529
|
),
|
|
8560
8530
|
Vt(),
|
|
@@ -8599,7 +8569,7 @@ function Ad({ toolbar: e }) {
|
|
|
8599
8569
|
}
|
|
8600
8570
|
),
|
|
8601
8571
|
Vt(),
|
|
8602
|
-
/* @__PURE__ */ D(
|
|
8572
|
+
/* @__PURE__ */ D(Ue, { children: [
|
|
8603
8573
|
/* @__PURE__ */ i(
|
|
8604
8574
|
qe,
|
|
8605
8575
|
{
|
|
@@ -8690,7 +8660,7 @@ function Ad({ toolbar: e }) {
|
|
|
8690
8660
|
}
|
|
8691
8661
|
),
|
|
8692
8662
|
/* @__PURE__ */ i(
|
|
8693
|
-
|
|
8663
|
+
Od,
|
|
8694
8664
|
{
|
|
8695
8665
|
disabled: Y,
|
|
8696
8666
|
attachments: T,
|
|
@@ -8756,8 +8726,8 @@ function qr(e, t) {
|
|
|
8756
8726
|
}
|
|
8757
8727
|
};
|
|
8758
8728
|
}
|
|
8759
|
-
const { useToken:
|
|
8760
|
-
const { ooui: t, value: n, onChange: o, valueValidator: r, linkPrefix: s = "" } = e, { id: a, readOnly: c, required: d } = t, { token: f } =
|
|
8729
|
+
const { useToken: _d } = Ke, ri = (e) => {
|
|
8730
|
+
const { ooui: t, value: n, onChange: o, valueValidator: r, linkPrefix: s = "" } = e, { id: a, readOnly: c, required: d } = t, { token: f } = _d(), u = d && !c ? { backgroundColor: f.colorPrimaryBg } : void 0, l = Z(Le), { elementHasLostFocus: p } = l || {}, [h, m] = v(!1), [g, y] = v(!1);
|
|
8761
8731
|
ue(() => {
|
|
8762
8732
|
c && !h && y(!1), !n && !c && (m(!0), y(!0));
|
|
8763
8733
|
}, [h, c]);
|
|
@@ -8812,26 +8782,26 @@ const { useToken: Dd } = Ke, ri = (e) => {
|
|
|
8812
8782
|
}
|
|
8813
8783
|
) })
|
|
8814
8784
|
] });
|
|
8815
|
-
},
|
|
8785
|
+
}, Ad = (e) => {
|
|
8816
8786
|
const { ooui: t } = e, { required: n } = t;
|
|
8817
8787
|
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
8818
8788
|
ri,
|
|
8819
8789
|
{
|
|
8820
8790
|
ooui: t,
|
|
8821
|
-
valueValidator: (o) => o ?
|
|
8791
|
+
valueValidator: (o) => o ? Os(o) : !1
|
|
8822
8792
|
}
|
|
8823
8793
|
) });
|
|
8824
|
-
},
|
|
8794
|
+
}, Dd = (e) => {
|
|
8825
8795
|
const { ooui: t } = e, { required: n } = t;
|
|
8826
8796
|
return /* @__PURE__ */ i(Ce, { required: n, ...e, children: /* @__PURE__ */ i(
|
|
8827
8797
|
ri,
|
|
8828
8798
|
{
|
|
8829
8799
|
ooui: t,
|
|
8830
8800
|
linkPrefix: "mailto:",
|
|
8831
|
-
valueValidator: (o) => o ?
|
|
8801
|
+
valueValidator: (o) => o ? Vs(o) : !1
|
|
8832
8802
|
}
|
|
8833
8803
|
) });
|
|
8834
|
-
},
|
|
8804
|
+
}, Ed = (e) => {
|
|
8835
8805
|
const { visible: t, onIdSubmitted: n, onCancel: o, isSearching: r } = e, { t: s } = he(), a = re(null), c = re(!1);
|
|
8836
8806
|
function d(f) {
|
|
8837
8807
|
const u = f.id.split(",").map((l) => parseInt(l.trim()));
|
|
@@ -8867,7 +8837,7 @@ const { useToken: Dd } = Ke, ri = (e) => {
|
|
|
8867
8837
|
children: /* @__PURE__ */ i(it, { style: { width: "100%" }, autoFocus: !0, ref: a })
|
|
8868
8838
|
}
|
|
8869
8839
|
),
|
|
8870
|
-
/* @__PURE__ */ i(Ve, { align: "middle", justify: "end", children: /* @__PURE__ */ i(ye, { children: /* @__PURE__ */ D(
|
|
8840
|
+
/* @__PURE__ */ i(Ve, { align: "middle", justify: "end", children: /* @__PURE__ */ i(ye, { children: /* @__PURE__ */ D(Ue, { children: [
|
|
8871
8841
|
/* @__PURE__ */ i(
|
|
8872
8842
|
Ne,
|
|
8873
8843
|
{
|
|
@@ -8913,9 +8883,9 @@ const { useToken: Dd } = Ke, ri = (e) => {
|
|
|
8913
8883
|
] })
|
|
8914
8884
|
}
|
|
8915
8885
|
);
|
|
8916
|
-
}, { useToken:
|
|
8886
|
+
}, { useToken: kd } = Ke;
|
|
8917
8887
|
function oi(e) {
|
|
8918
|
-
const { badgeNumber: t = 0, ...n } = e, { token: o } =
|
|
8888
|
+
const { badgeNumber: t = 0, ...n } = e, { token: o } = kd();
|
|
8919
8889
|
return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
|
|
8920
8890
|
t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
|
|
8921
8891
|
"span",
|
|
@@ -8942,7 +8912,7 @@ function oi(e) {
|
|
|
8942
8912
|
)
|
|
8943
8913
|
] });
|
|
8944
8914
|
}
|
|
8945
|
-
function
|
|
8915
|
+
function Md({ refreshGraph: e }) {
|
|
8946
8916
|
const { t } = he(), {
|
|
8947
8917
|
availableViews: n,
|
|
8948
8918
|
currentView: o,
|
|
@@ -8954,7 +8924,7 @@ function Nd({ refreshGraph: e }) {
|
|
|
8954
8924
|
previousView: f,
|
|
8955
8925
|
setPreviousView: u
|
|
8956
8926
|
} = Z(nt);
|
|
8957
|
-
return /* @__PURE__ */ D(
|
|
8927
|
+
return /* @__PURE__ */ D(Ue, { wrap: !0, children: [
|
|
8958
8928
|
/* @__PURE__ */ i(
|
|
8959
8929
|
oi,
|
|
8960
8930
|
{
|
|
@@ -8999,7 +8969,7 @@ function Nd({ refreshGraph: e }) {
|
|
|
8999
8969
|
)
|
|
9000
8970
|
] });
|
|
9001
8971
|
}
|
|
9002
|
-
const { useToken:
|
|
8972
|
+
const { useToken: Pd } = Ke, { Title: Nd, Text: ln } = Pt;
|
|
9003
8973
|
function xn(e) {
|
|
9004
8974
|
const { title: t, children: n } = e, {
|
|
9005
8975
|
title: o,
|
|
@@ -9009,7 +8979,7 @@ function xn(e) {
|
|
|
9009
8979
|
results: c,
|
|
9010
8980
|
totalItems: d,
|
|
9011
8981
|
selectedRowItems: f
|
|
9012
|
-
} = Z(nt), { t: u } = he(), { token: l } =
|
|
8982
|
+
} = Z(nt), { t: u } = he(), { token: l } = Pd();
|
|
9013
8983
|
function p() {
|
|
9014
8984
|
if ((r == null ? void 0 : r.type) === "form")
|
|
9015
8985
|
return s ? d === 0 ? /* @__PURE__ */ D(ie, { children: [
|
|
@@ -9091,7 +9061,7 @@ function xn(e) {
|
|
|
9091
9061
|
align: "middle",
|
|
9092
9062
|
children: [
|
|
9093
9063
|
/* @__PURE__ */ D(ye, { flex: 2, children: [
|
|
9094
|
-
/* @__PURE__ */ i(
|
|
9064
|
+
/* @__PURE__ */ i(Nd, { level: 3, style: { marginBottom: 0 }, children: t || o }),
|
|
9095
9065
|
p()
|
|
9096
9066
|
] }),
|
|
9097
9067
|
/* @__PURE__ */ i(ye, { flex: 3, children: /* @__PURE__ */ i(Ve, { justify: "end", children: n }) })
|
|
@@ -9103,7 +9073,7 @@ function xn(e) {
|
|
|
9103
9073
|
}
|
|
9104
9074
|
);
|
|
9105
9075
|
}
|
|
9106
|
-
const
|
|
9076
|
+
const Ld = (e) => {
|
|
9107
9077
|
const { viewData: t, visible: n, model: o, context: r, domain: s, formView: a, treeView: c } = e, d = re(), f = Z(
|
|
9108
9078
|
nt
|
|
9109
9079
|
), {
|
|
@@ -9133,7 +9103,7 @@ const Hd = (e) => {
|
|
|
9133
9103
|
}, [S]), ue(() => {
|
|
9134
9104
|
t.view_id !== O.view_id && N(!0);
|
|
9135
9105
|
}, [O]);
|
|
9136
|
-
const { clear: K, searchFilterLoading: j, searchError: W, offset: M, tableRefreshing:
|
|
9106
|
+
const { clear: K, searchFilterLoading: j, searchError: W, offset: M, tableRefreshing: U } = Go({
|
|
9137
9107
|
model: o,
|
|
9138
9108
|
setSearchTreeNameSearch: C,
|
|
9139
9109
|
setSelectedRowItems: m,
|
|
@@ -9158,7 +9128,7 @@ const Hd = (e) => {
|
|
|
9158
9128
|
});
|
|
9159
9129
|
return !n || !t ? null : /* @__PURE__ */ D(ie, { children: [
|
|
9160
9130
|
/* @__PURE__ */ i(xn, { title: t.title || t.name, children: /* @__PURE__ */ i(
|
|
9161
|
-
|
|
9131
|
+
Md,
|
|
9162
9132
|
{
|
|
9163
9133
|
refreshGraph: () => {
|
|
9164
9134
|
d.current.refresh();
|
|
@@ -9186,7 +9156,7 @@ const Hd = (e) => {
|
|
|
9186
9156
|
showLimitOptions: !1
|
|
9187
9157
|
}
|
|
9188
9158
|
),
|
|
9189
|
-
|
|
9159
|
+
U ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ i(
|
|
9190
9160
|
$t,
|
|
9191
9161
|
{
|
|
9192
9162
|
ref: d,
|
|
@@ -9199,7 +9169,7 @@ const Hd = (e) => {
|
|
|
9199
9169
|
}
|
|
9200
9170
|
)
|
|
9201
9171
|
] });
|
|
9202
|
-
},
|
|
9172
|
+
}, $d = (e) => {
|
|
9203
9173
|
const {
|
|
9204
9174
|
visible: t,
|
|
9205
9175
|
formRef: n,
|
|
@@ -9215,7 +9185,7 @@ const Hd = (e) => {
|
|
|
9215
9185
|
setCurrentItemIndex: p
|
|
9216
9186
|
} = e;
|
|
9217
9187
|
return t ? /* @__PURE__ */ D(ie, { children: [
|
|
9218
|
-
/* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(
|
|
9188
|
+
/* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(Vd, { toolbar: a == null ? void 0 : a.toolbar }) }),
|
|
9219
9189
|
/* @__PURE__ */ i(
|
|
9220
9190
|
jt,
|
|
9221
9191
|
{
|
|
@@ -9235,7 +9205,7 @@ const Hd = (e) => {
|
|
|
9235
9205
|
)
|
|
9236
9206
|
] }) : null;
|
|
9237
9207
|
};
|
|
9238
|
-
function
|
|
9208
|
+
function Hd(e) {
|
|
9239
9209
|
const { onSearch: t, disabled: n = !1, searchText: o } = e, { t: r } = he(), [s] = dt.useForm(), [a, c] = v(!1);
|
|
9240
9210
|
function d(u) {
|
|
9241
9211
|
t(u.search);
|
|
@@ -9276,7 +9246,7 @@ function jd(e) {
|
|
|
9276
9246
|
) })
|
|
9277
9247
|
] }) });
|
|
9278
9248
|
}
|
|
9279
|
-
function
|
|
9249
|
+
function Bd(e) {
|
|
9280
9250
|
var Y;
|
|
9281
9251
|
const {
|
|
9282
9252
|
availableViews: t,
|
|
@@ -9312,11 +9282,11 @@ function Kd(e) {
|
|
|
9312
9282
|
confirmMessage: O("confirmRemove"),
|
|
9313
9283
|
t: O,
|
|
9314
9284
|
onOk: () => {
|
|
9315
|
-
|
|
9285
|
+
U();
|
|
9316
9286
|
}
|
|
9317
9287
|
});
|
|
9318
9288
|
}
|
|
9319
|
-
async function
|
|
9289
|
+
async function U() {
|
|
9320
9290
|
var B;
|
|
9321
9291
|
try {
|
|
9322
9292
|
s == null || s(!0), await k.getHandler().deleteObjects({
|
|
@@ -9365,7 +9335,7 @@ function Kd(e) {
|
|
|
9365
9335
|
}
|
|
9366
9336
|
});
|
|
9367
9337
|
}
|
|
9368
|
-
return /* @__PURE__ */ D(
|
|
9338
|
+
return /* @__PURE__ */ D(Ue, { wrap: !0, children: [
|
|
9369
9339
|
b && /* @__PURE__ */ D(ie, { children: [
|
|
9370
9340
|
/* @__PURE__ */ i(je, {}),
|
|
9371
9341
|
xt(),
|
|
@@ -9373,7 +9343,7 @@ function Kd(e) {
|
|
|
9373
9343
|
] }),
|
|
9374
9344
|
S ? null : /* @__PURE__ */ D(ie, { children: [
|
|
9375
9345
|
/* @__PURE__ */ i(
|
|
9376
|
-
|
|
9346
|
+
Hd,
|
|
9377
9347
|
{
|
|
9378
9348
|
disabled: c || a,
|
|
9379
9349
|
searchText: w,
|
|
@@ -9566,7 +9536,7 @@ function Kd(e) {
|
|
|
9566
9536
|
}
|
|
9567
9537
|
),
|
|
9568
9538
|
/* @__PURE__ */ i(
|
|
9569
|
-
|
|
9539
|
+
hd,
|
|
9570
9540
|
{
|
|
9571
9541
|
visible: K,
|
|
9572
9542
|
onClose: () => j(!1),
|
|
@@ -9588,7 +9558,7 @@ function Kd(e) {
|
|
|
9588
9558
|
function xt() {
|
|
9589
9559
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
9590
9560
|
}
|
|
9591
|
-
const
|
|
9561
|
+
const jd = (e) => {
|
|
9592
9562
|
const {
|
|
9593
9563
|
visible: t,
|
|
9594
9564
|
searchTreeRef: n,
|
|
@@ -9608,7 +9578,7 @@ const Wd = (e) => {
|
|
|
9608
9578
|
);
|
|
9609
9579
|
return t ? /* @__PURE__ */ D(ie, { children: [
|
|
9610
9580
|
/* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(
|
|
9611
|
-
|
|
9581
|
+
Bd,
|
|
9612
9582
|
{
|
|
9613
9583
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9614
9584
|
parentContext: r,
|
|
@@ -9616,7 +9586,7 @@ const Wd = (e) => {
|
|
|
9616
9586
|
}
|
|
9617
9587
|
) }),
|
|
9618
9588
|
/* @__PURE__ */ i(
|
|
9619
|
-
|
|
9589
|
+
Uo,
|
|
9620
9590
|
{
|
|
9621
9591
|
ref: n,
|
|
9622
9592
|
rootTree: !0,
|
|
@@ -9639,7 +9609,7 @@ const Wd = (e) => {
|
|
|
9639
9609
|
}
|
|
9640
9610
|
)
|
|
9641
9611
|
] }) : null;
|
|
9642
|
-
}, yr = ot.createContext(null),
|
|
9612
|
+
}, yr = ot.createContext(null), Kd = (e) => {
|
|
9643
9613
|
const [t, n] = v(!1), [o, r] = v(!1), { children: s, dashboardRef: a, openAction: c } = e;
|
|
9644
9614
|
return /* @__PURE__ */ i(
|
|
9645
9615
|
yr.Provider,
|
|
@@ -9656,9 +9626,9 @@ const Wd = (e) => {
|
|
|
9656
9626
|
}
|
|
9657
9627
|
);
|
|
9658
9628
|
};
|
|
9659
|
-
function
|
|
9629
|
+
function Wd() {
|
|
9660
9630
|
const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: o } = Z(yr), { t: r } = he();
|
|
9661
|
-
return /* @__PURE__ */ D(
|
|
9631
|
+
return /* @__PURE__ */ D(Ue, { wrap: !0, children: [
|
|
9662
9632
|
/* @__PURE__ */ i(
|
|
9663
9633
|
qe,
|
|
9664
9634
|
{
|
|
@@ -9677,7 +9647,7 @@ function Gd() {
|
|
|
9677
9647
|
}
|
|
9678
9648
|
}
|
|
9679
9649
|
),
|
|
9680
|
-
|
|
9650
|
+
Gd(),
|
|
9681
9651
|
/* @__PURE__ */ i(
|
|
9682
9652
|
qe,
|
|
9683
9653
|
{
|
|
@@ -9704,22 +9674,22 @@ function Gd() {
|
|
|
9704
9674
|
)
|
|
9705
9675
|
] });
|
|
9706
9676
|
}
|
|
9707
|
-
function
|
|
9677
|
+
function Gd() {
|
|
9708
9678
|
return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
|
|
9709
9679
|
}
|
|
9710
|
-
const
|
|
9680
|
+
const Ud = (e) => {
|
|
9711
9681
|
const { dashboardData: t, visible: n } = e, o = re(), r = Z(
|
|
9712
9682
|
at
|
|
9713
9683
|
), { openShortcut: s } = r || {};
|
|
9714
9684
|
return !t || !n ? null : /* @__PURE__ */ D(
|
|
9715
|
-
|
|
9685
|
+
Kd,
|
|
9716
9686
|
{
|
|
9717
9687
|
dashboardRef: o,
|
|
9718
9688
|
openAction: (a) => {
|
|
9719
9689
|
s(a);
|
|
9720
9690
|
},
|
|
9721
9691
|
children: [
|
|
9722
|
-
/* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(
|
|
9692
|
+
/* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(Wd, {}) }),
|
|
9723
9693
|
/* @__PURE__ */ i(
|
|
9724
9694
|
tu,
|
|
9725
9695
|
{
|
|
@@ -9734,7 +9704,7 @@ const qd = (e) => {
|
|
|
9734
9704
|
}
|
|
9735
9705
|
);
|
|
9736
9706
|
};
|
|
9737
|
-
async function
|
|
9707
|
+
async function Yd(e) {
|
|
9738
9708
|
const t = await Promise.all(
|
|
9739
9709
|
e.map(async (o) => {
|
|
9740
9710
|
try {
|
|
@@ -9749,7 +9719,7 @@ async function zd(e) {
|
|
|
9749
9719
|
info: t[r]
|
|
9750
9720
|
})).filter((o) => o.info !== null);
|
|
9751
9721
|
}
|
|
9752
|
-
function
|
|
9722
|
+
function qd(e, t) {
|
|
9753
9723
|
const {
|
|
9754
9724
|
domain: n,
|
|
9755
9725
|
model: o,
|
|
@@ -9768,7 +9738,7 @@ function Jd(e, t) {
|
|
|
9768
9738
|
limit: y
|
|
9769
9739
|
} = e, [w, b] = v(), [T, F] = v([]), [C, R] = v(!0), V = p || void 0, [I, S] = v(
|
|
9770
9740
|
V
|
|
9771
|
-
), [_, x] = v([]), [O, A] = v(), [N, K] = v([]), [j, W] = v(), [M,
|
|
9741
|
+
), [_, x] = v([]), [O, A] = v(), [N, K] = v([]), [j, W] = v(), [M, U] = v(0), [z, J] = v(!1), [Y, B] = v(!1), [E, L] = v(), { t: $ } = he(), de = re(), ee = re(), oe = Z(
|
|
9772
9742
|
at
|
|
9773
9743
|
), {
|
|
9774
9744
|
setCurrentView: ve,
|
|
@@ -9778,27 +9748,27 @@ function Jd(e, t) {
|
|
|
9778
9748
|
openAction: De,
|
|
9779
9749
|
onRemoveTab: Ee
|
|
9780
9750
|
} = oe || {};
|
|
9781
|
-
|
|
9751
|
+
_s(
|
|
9782
9752
|
"ctrl+g,command+g",
|
|
9783
|
-
(
|
|
9784
|
-
|
|
9753
|
+
(G) => {
|
|
9754
|
+
G.preventDefault(), ce();
|
|
9785
9755
|
},
|
|
9786
9756
|
[xe, ae, w, O, N]
|
|
9787
9757
|
);
|
|
9788
|
-
function ke(
|
|
9789
|
-
S(
|
|
9758
|
+
function ke(G) {
|
|
9759
|
+
S(G), Q == null || Q(G);
|
|
9790
9760
|
}
|
|
9791
|
-
function fe(
|
|
9792
|
-
b(
|
|
9761
|
+
function fe(G) {
|
|
9762
|
+
b(G);
|
|
9793
9763
|
const Se = { action_id: h, action_type: m };
|
|
9794
|
-
ve == null || ve({ ...
|
|
9764
|
+
ve == null || ve({ ...G, extra: Se });
|
|
9795
9765
|
}
|
|
9796
9766
|
ht(t, () => ({
|
|
9797
9767
|
canWeClose: $e
|
|
9798
9768
|
}));
|
|
9799
9769
|
const Fe = async () => {
|
|
9800
9770
|
R(!0);
|
|
9801
|
-
const
|
|
9771
|
+
const G = [], Se = [];
|
|
9802
9772
|
for (const be of s) {
|
|
9803
9773
|
const [pe, se] = be;
|
|
9804
9774
|
se !== "dashboard" ? Se.push({
|
|
@@ -9813,7 +9783,7 @@ function Jd(e, t) {
|
|
|
9813
9783
|
viewTuple: be
|
|
9814
9784
|
});
|
|
9815
9785
|
}
|
|
9816
|
-
const _e = await
|
|
9786
|
+
const _e = await Yd(Se);
|
|
9817
9787
|
for (const be of _e) {
|
|
9818
9788
|
if (!be)
|
|
9819
9789
|
continue;
|
|
@@ -9833,7 +9803,7 @@ function Jd(e, t) {
|
|
|
9833
9803
|
res_model: o,
|
|
9834
9804
|
view_id: We[0],
|
|
9835
9805
|
view_type: We[1]
|
|
9836
|
-
}),
|
|
9806
|
+
}), G.push({
|
|
9837
9807
|
type: "dashboard",
|
|
9838
9808
|
id: r.active_id,
|
|
9839
9809
|
model: o,
|
|
@@ -9843,14 +9813,14 @@ function Jd(e, t) {
|
|
|
9843
9813
|
break;
|
|
9844
9814
|
}
|
|
9845
9815
|
case "form": {
|
|
9846
|
-
|
|
9816
|
+
G.push({
|
|
9847
9817
|
...se,
|
|
9848
9818
|
type: pe
|
|
9849
9819
|
});
|
|
9850
9820
|
break;
|
|
9851
9821
|
}
|
|
9852
9822
|
case "tree": {
|
|
9853
|
-
|
|
9823
|
+
G.push({
|
|
9854
9824
|
...se,
|
|
9855
9825
|
isExpandable: g,
|
|
9856
9826
|
type: pe
|
|
@@ -9858,7 +9828,7 @@ function Jd(e, t) {
|
|
|
9858
9828
|
break;
|
|
9859
9829
|
}
|
|
9860
9830
|
case "graph": {
|
|
9861
|
-
|
|
9831
|
+
G.push({
|
|
9862
9832
|
...se,
|
|
9863
9833
|
type: pe
|
|
9864
9834
|
});
|
|
@@ -9867,23 +9837,23 @@ function Jd(e, t) {
|
|
|
9867
9837
|
}
|
|
9868
9838
|
}
|
|
9869
9839
|
let ge;
|
|
9870
|
-
!f &&
|
|
9840
|
+
!f && G.find((be) => be.type === "tree") ? ge = G.find(
|
|
9871
9841
|
(pe) => pe.type === "tree"
|
|
9872
|
-
) : f ? ge =
|
|
9842
|
+
) : f ? ge = G.find((pe) => f.id ? pe.type === f.type && pe.view_id === f.id : pe.type === f.type) : ge = G.find(
|
|
9873
9843
|
(pe) => pe.type === "form"
|
|
9874
9844
|
), ge || (Qe(
|
|
9875
9845
|
`Error determining the first view to show for model ${o}.
|
|
9876
9846
|
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
|
|
9877
|
-
), Ee == null || Ee(d)), fe(ge), F(
|
|
9847
|
+
), Ee == null || Ee(d)), fe(ge), F(G), R(!1);
|
|
9878
9848
|
};
|
|
9879
9849
|
c({ tabKey: d, canWeClose: $e }), ue(() => {
|
|
9880
|
-
const
|
|
9881
|
-
fe(Se ||
|
|
9850
|
+
const G = T.find((_e) => _e.type === "tree"), Se = T.find((_e) => f.id ? _e.type === f.type && _e.view_id === f.id : _e.type === f.type);
|
|
9851
|
+
fe(Se || G), p ? Q == null || Q(V) : (ke(void 0), A(void 0)), Fe();
|
|
9882
9852
|
}, [o, s, p]), ue(() => {
|
|
9883
9853
|
if (xe === d) {
|
|
9884
9854
|
Q == null || Q(I);
|
|
9885
|
-
const
|
|
9886
|
-
ve == null || ve({ ...w, extra:
|
|
9855
|
+
const G = { action_id: h, action_type: m };
|
|
9856
|
+
ve == null || ve({ ...w, extra: G });
|
|
9887
9857
|
}
|
|
9888
9858
|
}, [ae, xe]);
|
|
9889
9859
|
async function $e() {
|
|
@@ -9892,13 +9862,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9892
9862
|
async function ce() {
|
|
9893
9863
|
xe === d && (w.type === "form" && !await de.current.cancelUnsavedChanges() || J(!0));
|
|
9894
9864
|
}
|
|
9895
|
-
async function me(
|
|
9865
|
+
async function me(G, Se) {
|
|
9896
9866
|
var be;
|
|
9897
9867
|
B(!0);
|
|
9898
9868
|
let _e, ge;
|
|
9899
|
-
if (
|
|
9869
|
+
if (G.length === 1) {
|
|
9900
9870
|
_e = "form", ge = [];
|
|
9901
|
-
const pe =
|
|
9871
|
+
const pe = G[0], se = N.findIndex((Pe) => Pe.id === pe);
|
|
9902
9872
|
let We;
|
|
9903
9873
|
if (se === -1) {
|
|
9904
9874
|
try {
|
|
@@ -9916,9 +9886,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9916
9886
|
} else
|
|
9917
9887
|
We = N[se];
|
|
9918
9888
|
} else
|
|
9919
|
-
_e = "tree", ge = [["id", "in",
|
|
9889
|
+
_e = "tree", ge = [["id", "in", G]];
|
|
9920
9890
|
if (B(!1), J(!1), Se && _e === "form") {
|
|
9921
|
-
ke(
|
|
9891
|
+
ke(G[0]);
|
|
9922
9892
|
const pe = T.find(
|
|
9923
9893
|
(se) => se.type === "form"
|
|
9924
9894
|
);
|
|
@@ -9935,21 +9905,21 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9935
9905
|
initialView: { id: pe == null ? void 0 : pe[0], type: _e },
|
|
9936
9906
|
action_id: h,
|
|
9937
9907
|
action_type: m,
|
|
9938
|
-
res_id:
|
|
9908
|
+
res_id: G[0]
|
|
9939
9909
|
});
|
|
9940
9910
|
}
|
|
9941
9911
|
}
|
|
9942
9912
|
function Me() {
|
|
9943
|
-
return T.map((
|
|
9944
|
-
switch (
|
|
9913
|
+
return T.map((G) => {
|
|
9914
|
+
switch (G.type) {
|
|
9945
9915
|
case "form":
|
|
9946
9916
|
return /* @__PURE__ */ i(
|
|
9947
|
-
|
|
9917
|
+
$d,
|
|
9948
9918
|
{
|
|
9949
9919
|
formRef: de,
|
|
9950
9920
|
currentId: I,
|
|
9951
|
-
visible: w.type ===
|
|
9952
|
-
formView:
|
|
9921
|
+
visible: w.type === G.type && w.view_id === G.view_id,
|
|
9922
|
+
formView: G,
|
|
9953
9923
|
model: o,
|
|
9954
9924
|
context: r,
|
|
9955
9925
|
domain: n,
|
|
@@ -9959,19 +9929,19 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9959
9929
|
setResults: K,
|
|
9960
9930
|
setCurrentItemIndex: A
|
|
9961
9931
|
},
|
|
9962
|
-
`${
|
|
9932
|
+
`${G.type}-${G.view_id}`
|
|
9963
9933
|
);
|
|
9964
9934
|
case "tree":
|
|
9965
9935
|
return /* @__PURE__ */ i(
|
|
9966
|
-
|
|
9936
|
+
jd,
|
|
9967
9937
|
{
|
|
9968
|
-
visible: w.type ===
|
|
9938
|
+
visible: w.type === G.type && w.view_id === G.view_id,
|
|
9969
9939
|
limit: y,
|
|
9970
9940
|
model: o,
|
|
9971
9941
|
context: r,
|
|
9972
9942
|
domain: n,
|
|
9973
9943
|
formView: T.find((Se) => Se.type === "form"),
|
|
9974
|
-
treeView:
|
|
9944
|
+
treeView: G,
|
|
9975
9945
|
searchTreeRef: ee,
|
|
9976
9946
|
searchTreeNameSearch: E,
|
|
9977
9947
|
availableViews: T,
|
|
@@ -9980,30 +9950,30 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9980
9950
|
setCurrentId: ke,
|
|
9981
9951
|
setCurrentView: fe
|
|
9982
9952
|
},
|
|
9983
|
-
`${
|
|
9953
|
+
`${G.type}-${G.view_id}`
|
|
9984
9954
|
);
|
|
9985
9955
|
case "graph":
|
|
9986
9956
|
return /* @__PURE__ */ i(
|
|
9987
|
-
|
|
9957
|
+
Ld,
|
|
9988
9958
|
{
|
|
9989
|
-
visible: w.type ===
|
|
9990
|
-
viewData:
|
|
9959
|
+
visible: w.type === G.type && w.view_id === G.view_id,
|
|
9960
|
+
viewData: G,
|
|
9991
9961
|
model: o,
|
|
9992
9962
|
context: r,
|
|
9993
9963
|
domain: n,
|
|
9994
9964
|
treeView: T.find((Se) => Se.type === "tree"),
|
|
9995
9965
|
formView: T.find((Se) => Se.type === "form")
|
|
9996
9966
|
},
|
|
9997
|
-
`${
|
|
9967
|
+
`${G.type}-${G.view_id}`
|
|
9998
9968
|
);
|
|
9999
9969
|
case "dashboard":
|
|
10000
9970
|
return /* @__PURE__ */ i(
|
|
10001
|
-
|
|
9971
|
+
Ud,
|
|
10002
9972
|
{
|
|
10003
|
-
dashboardData:
|
|
10004
|
-
visible: w.type ===
|
|
9973
|
+
dashboardData: G,
|
|
9974
|
+
visible: w.type === G.type && w.view_id === G.view_id
|
|
10005
9975
|
},
|
|
10006
|
-
`${
|
|
9976
|
+
`${G.type}-${G.view_id}`
|
|
10007
9977
|
);
|
|
10008
9978
|
}
|
|
10009
9979
|
});
|
|
@@ -10013,10 +9983,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10013
9983
|
de.current.clearAndReload();
|
|
10014
9984
|
else {
|
|
10015
9985
|
ke(void 0);
|
|
10016
|
-
const
|
|
9986
|
+
const G = T.find(
|
|
10017
9987
|
(Se) => Se.type === "form"
|
|
10018
9988
|
);
|
|
10019
|
-
fe(
|
|
9989
|
+
fe(G);
|
|
10020
9990
|
}
|
|
10021
9991
|
}
|
|
10022
9992
|
return C ? /* @__PURE__ */ i(je, {}) : w ? /* @__PURE__ */ D(
|
|
@@ -10039,7 +10009,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10039
10009
|
sorter: j,
|
|
10040
10010
|
setSorter: W,
|
|
10041
10011
|
totalItems: M,
|
|
10042
|
-
setTotalItems:
|
|
10012
|
+
setTotalItems: U,
|
|
10043
10013
|
selectedRowItems: _,
|
|
10044
10014
|
setSelectedRowItems: x,
|
|
10045
10015
|
setSearchTreeNameSearch: L,
|
|
@@ -10049,7 +10019,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10049
10019
|
children: [
|
|
10050
10020
|
Me(),
|
|
10051
10021
|
/* @__PURE__ */ i(
|
|
10052
|
-
|
|
10022
|
+
Ed,
|
|
10053
10023
|
{
|
|
10054
10024
|
visible: z,
|
|
10055
10025
|
onIdSubmitted: me,
|
|
@@ -10063,7 +10033,37 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
10063
10033
|
}
|
|
10064
10034
|
) : null;
|
|
10065
10035
|
}
|
|
10066
|
-
const ii = pt(
|
|
10036
|
+
const ii = pt(qd);
|
|
10037
|
+
const zd = Ms(Ps), Jd = (e) => {
|
|
10038
|
+
const { children: t = [], onPositionItemsChanged: n } = e, o = ot.Children.map(
|
|
10039
|
+
t,
|
|
10040
|
+
(r) => {
|
|
10041
|
+
const { parms: s, id: a } = r.props;
|
|
10042
|
+
return /* @__PURE__ */ i("div", { "data-grid": s, children: r }, a);
|
|
10043
|
+
}
|
|
10044
|
+
);
|
|
10045
|
+
return /* @__PURE__ */ i(
|
|
10046
|
+
zd,
|
|
10047
|
+
{
|
|
10048
|
+
className: "layout",
|
|
10049
|
+
cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
|
|
10050
|
+
draggableHandle: ".draggable-head",
|
|
10051
|
+
rowHeight: 30,
|
|
10052
|
+
onLayoutChange: (r) => {
|
|
10053
|
+
n == null || n(
|
|
10054
|
+
r.map((s) => ({
|
|
10055
|
+
id: parseInt(s.i.replace(".$", ""), 10),
|
|
10056
|
+
x: s.x,
|
|
10057
|
+
y: s.y,
|
|
10058
|
+
w: s.w,
|
|
10059
|
+
h: s.h
|
|
10060
|
+
}))
|
|
10061
|
+
);
|
|
10062
|
+
},
|
|
10063
|
+
children: o
|
|
10064
|
+
}
|
|
10065
|
+
);
|
|
10066
|
+
};
|
|
10067
10067
|
function Xd(e) {
|
|
10068
10068
|
const {
|
|
10069
10069
|
action: t,
|
|
@@ -10073,7 +10073,7 @@ function Xd(e) {
|
|
|
10073
10073
|
domain: s = [],
|
|
10074
10074
|
visible: a = !0,
|
|
10075
10075
|
parentContext: c = {}
|
|
10076
|
-
} = e, [d, f] = v(!1), [u, l] = v(!1), [p, h] = v(), [m, g] = v(), [y, w] = v(), [b, T] = v(1), [F, C] = v(0), R = re(Ft), V = re([]), [I, S] = v(0), [_, x] = v([]), [O, A] = v(void 0), [N, K] = v(), [j, W] = v(), [M,
|
|
10076
|
+
} = e, [d, f] = v(!1), [u, l] = v(!1), [p, h] = v(), [m, g] = v(), [y, w] = v(), [b, T] = v(1), [F, C] = v(0), R = re(Ft), V = re([]), [I, S] = v(0), [_, x] = v([]), [O, A] = v(void 0), [N, K] = v(), [j, W] = v(), [M, U] = v(), [z, J] = v(!1), Y = re([]), B = (Q) => {
|
|
10077
10077
|
J(!0), T(Q), C((Q - 1) * R.current);
|
|
10078
10078
|
}, E = async () => {
|
|
10079
10079
|
const Q = Y.current.length > 0 ? Y.current : s, ae = Qt(V.current, Q), { colors: xe } = Tt(m), { totalItems: De, results: Ee, attrsEvaluated: ke } = await k.getHandler().searchForTree({
|
|
@@ -10105,11 +10105,11 @@ function Xd(e) {
|
|
|
10105
10105
|
u && a && L();
|
|
10106
10106
|
}, [b, F, u, a]);
|
|
10107
10107
|
const $ = async (Q) => {
|
|
10108
|
-
l(!1), f(!0),
|
|
10108
|
+
l(!1), f(!0), U(void 0);
|
|
10109
10109
|
try {
|
|
10110
10110
|
Q === "action" ? await de() : await ee(), l(!0);
|
|
10111
10111
|
} catch (ae) {
|
|
10112
|
-
|
|
10112
|
+
U(ae);
|
|
10113
10113
|
} finally {
|
|
10114
10114
|
f(!1);
|
|
10115
10115
|
}
|
|
@@ -10271,7 +10271,7 @@ function eu(e, t) {
|
|
|
10271
10271
|
const W = parseInt(j.action_id[0], 10), M = Ro({
|
|
10272
10272
|
actionId: W,
|
|
10273
10273
|
rootContext: o
|
|
10274
|
-
}).then((
|
|
10274
|
+
}).then((U) => ({ ...K, actionData: U }));
|
|
10275
10275
|
A.push(M);
|
|
10276
10276
|
}
|
|
10277
10277
|
}
|
|
@@ -10288,17 +10288,17 @@ function eu(e, t) {
|
|
|
10288
10288
|
return !1;
|
|
10289
10289
|
if (!M.position)
|
|
10290
10290
|
return !0;
|
|
10291
|
-
const
|
|
10291
|
+
const U = {
|
|
10292
10292
|
...JSON.parse(M.position.replace(/'/g, '"')),
|
|
10293
10293
|
id: M.id
|
|
10294
10294
|
};
|
|
10295
|
-
return JSON.stringify(W) !== JSON.stringify(
|
|
10295
|
+
return JSON.stringify(W) !== JSON.stringify(U);
|
|
10296
10296
|
});
|
|
10297
10297
|
if (A.length === 0)
|
|
10298
10298
|
return;
|
|
10299
10299
|
const K = a.filter((W) => A.map((M) => M.id).includes(W.id)).map((W) => {
|
|
10300
10300
|
const M = {
|
|
10301
|
-
...A.find((
|
|
10301
|
+
...A.find((U) => U.id === W.id)
|
|
10302
10302
|
};
|
|
10303
10303
|
return delete M.id, { ...W }, {
|
|
10304
10304
|
...W,
|
|
@@ -10323,10 +10323,10 @@ function eu(e, t) {
|
|
|
10323
10323
|
async function x() {
|
|
10324
10324
|
h(s);
|
|
10325
10325
|
}
|
|
10326
|
-
return d ? /* @__PURE__ */ i(gt, {}) : u ? /* @__PURE__ */ i(Je, { className: "mt-10 mb-20", message: u, type: "error", banner: !0 }) : /* @__PURE__ */ i(
|
|
10326
|
+
return d ? /* @__PURE__ */ i(gt, {}) : u ? /* @__PURE__ */ i(Je, { className: "mt-10 mb-20", message: u, type: "error", banner: !0 }) : /* @__PURE__ */ i(Jd, { onPositionItemsChanged: _, children: a.map((O, A) => {
|
|
10327
10327
|
const { actionData: N, values: K } = O, { position: j, id: W } = K, {
|
|
10328
10328
|
actionId: M,
|
|
10329
|
-
actionType:
|
|
10329
|
+
actionType: U,
|
|
10330
10330
|
key: z,
|
|
10331
10331
|
title: J,
|
|
10332
10332
|
views: Y,
|
|
@@ -10401,7 +10401,7 @@ function eu(e, t) {
|
|
|
10401
10401
|
ii,
|
|
10402
10402
|
{
|
|
10403
10403
|
action_id: M,
|
|
10404
|
-
action_type:
|
|
10404
|
+
action_type: U,
|
|
10405
10405
|
tabKey: z,
|
|
10406
10406
|
title: J,
|
|
10407
10407
|
views: Y,
|
|
@@ -10525,7 +10525,7 @@ const tu = pt(eu), nu = (e) => {
|
|
|
10525
10525
|
children: /* @__PURE__ */ i(Ve, { children: a.map((I) => /* @__PURE__ */ i(ye, { span: Math.floor(24 / y), children: /* @__PURE__ */ i(Yt, { value: I.value, children: I.label }) })) })
|
|
10526
10526
|
}
|
|
10527
10527
|
),
|
|
10528
|
-
!m && /* @__PURE__ */ D(
|
|
10528
|
+
!m && /* @__PURE__ */ D(Ue, { children: [
|
|
10529
10529
|
/* @__PURE__ */ i(
|
|
10530
10530
|
Ne,
|
|
10531
10531
|
{
|
|
@@ -10547,9 +10547,9 @@ const tu = pt(eu), nu = (e) => {
|
|
|
10547
10547
|
overflow: "auto"
|
|
10548
10548
|
},
|
|
10549
10549
|
children: /* @__PURE__ */ i(
|
|
10550
|
-
|
|
10550
|
+
As,
|
|
10551
10551
|
{
|
|
10552
|
-
remarkPlugins: [
|
|
10552
|
+
remarkPlugins: [Ds],
|
|
10553
10553
|
className: "markdown-typography",
|
|
10554
10554
|
children: t
|
|
10555
10555
|
}
|
|
@@ -10564,7 +10564,7 @@ const tu = pt(eu), nu = (e) => {
|
|
|
10564
10564
|
const [u, l] = f;
|
|
10565
10565
|
return /* @__PURE__ */ i(Sr, { value: u, children: l }, u);
|
|
10566
10566
|
});
|
|
10567
|
-
return /* @__PURE__ */ i(Sr.Group, { disabled: s, onChange: n, value: o, children: /* @__PURE__ */ i(
|
|
10567
|
+
return /* @__PURE__ */ i(Sr.Group, { disabled: s, onChange: n, value: o, children: /* @__PURE__ */ i(Ue, { direction: a, children: d }) });
|
|
10568
10568
|
}, cu = (e) => {
|
|
10569
10569
|
const { ooui: t } = e, { id: n, readOnly: o, required: r } = t;
|
|
10570
10570
|
return /* @__PURE__ */ i(Ce, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(lu, { id: n, readOnly: o, required: r }) });
|
|
@@ -10587,7 +10587,7 @@ const tu = pt(eu), nu = (e) => {
|
|
|
10587
10587
|
}, fu = (e) => {
|
|
10588
10588
|
const { ooui: t } = e, { lang: n, height: o, readOnly: r } = t, s = Z(Le), { elementHasLostFocus: a } = s || {};
|
|
10589
10589
|
return /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(
|
|
10590
|
-
|
|
10590
|
+
Es,
|
|
10591
10591
|
{
|
|
10592
10592
|
options: {
|
|
10593
10593
|
readOnly: r
|
|
@@ -10599,8 +10599,8 @@ const tu = pt(eu), nu = (e) => {
|
|
|
10599
10599
|
}
|
|
10600
10600
|
}
|
|
10601
10601
|
) });
|
|
10602
|
-
}, { Meta: mu } =
|
|
10603
|
-
const o = `https://www.gravatar.com/avatar/${
|
|
10602
|
+
}, { Meta: mu } = Gn, { Text: pu } = Pt, hu = ({ email: e, size: t = 40, theme: n = "" }) => {
|
|
10603
|
+
const o = `https://www.gravatar.com/avatar/${ks(
|
|
10604
10604
|
e
|
|
10605
10605
|
)}?s=${t}&d=${n}`;
|
|
10606
10606
|
return /* @__PURE__ */ i(Qr, { src: o, size: t });
|
|
@@ -10615,13 +10615,13 @@ function gu({ text: e }) {
|
|
|
10615
10615
|
}
|
|
10616
10616
|
const yu = (e) => {
|
|
10617
10617
|
const { data: t, style: n } = e, { t: o } = he();
|
|
10618
|
-
return /* @__PURE__ */ D(
|
|
10618
|
+
return /* @__PURE__ */ D(Gn, { style: { ...n, textAlign: "start" }, children: [
|
|
10619
10619
|
/* @__PURE__ */ i(
|
|
10620
10620
|
mu,
|
|
10621
10621
|
{
|
|
10622
10622
|
avatar: /* @__PURE__ */ i(hu, { email: t.email, theme: "mp" }),
|
|
10623
10623
|
title: t.author,
|
|
10624
|
-
description: /* @__PURE__ */ D(
|
|
10624
|
+
description: /* @__PURE__ */ D(Ue, { direction: "horizontal", children: [
|
|
10625
10625
|
/* @__PURE__ */ i("span", { title: t.date, children: et(t.date).fromNow() }),
|
|
10626
10626
|
t.isAuthor && /* @__PURE__ */ i(Jr, { color: "blue", children: o("author") })
|
|
10627
10627
|
] }),
|
|
@@ -10722,7 +10722,7 @@ function Iu(e, t) {
|
|
|
10722
10722
|
res_model: j,
|
|
10723
10723
|
views: W,
|
|
10724
10724
|
name: M,
|
|
10725
|
-
target:
|
|
10725
|
+
target: U,
|
|
10726
10726
|
view_type: z,
|
|
10727
10727
|
limit: J
|
|
10728
10728
|
} = _, Y = z === "tree", B = [];
|
|
@@ -10758,7 +10758,7 @@ function Iu(e, t) {
|
|
|
10758
10758
|
model: j,
|
|
10759
10759
|
views: B,
|
|
10760
10760
|
title: M,
|
|
10761
|
-
target:
|
|
10761
|
+
target: U,
|
|
10762
10762
|
initialView: E,
|
|
10763
10763
|
action_type: x,
|
|
10764
10764
|
action_id: A,
|
|
@@ -10802,7 +10802,7 @@ function Iu(e, t) {
|
|
|
10802
10802
|
target: A,
|
|
10803
10803
|
string: N,
|
|
10804
10804
|
limit: K
|
|
10805
|
-
} = F, [j, W] = O[0], M = { id: j, type: W },
|
|
10805
|
+
} = F, [j, W] = O[0], M = { id: j, type: W }, U = St({
|
|
10806
10806
|
context: _,
|
|
10807
10807
|
values: { ...R, ...a },
|
|
10808
10808
|
fields: C
|
|
@@ -10813,13 +10813,13 @@ function Iu(e, t) {
|
|
|
10813
10813
|
values: { ...R, ...a }
|
|
10814
10814
|
}),
|
|
10815
10815
|
fields: C,
|
|
10816
|
-
context: { ...c, ...
|
|
10816
|
+
context: { ...c, ...U }
|
|
10817
10817
|
}) : [];
|
|
10818
10818
|
T({
|
|
10819
10819
|
model: S,
|
|
10820
10820
|
target: A,
|
|
10821
10821
|
views: O,
|
|
10822
|
-
context: { ...c, ...
|
|
10822
|
+
context: { ...c, ...U },
|
|
10823
10823
|
domain: z,
|
|
10824
10824
|
title: N,
|
|
10825
10825
|
initialView: M,
|
|
@@ -10852,7 +10852,7 @@ function Iu(e, t) {
|
|
|
10852
10852
|
name: j,
|
|
10853
10853
|
target: W,
|
|
10854
10854
|
view_type: M,
|
|
10855
|
-
limit:
|
|
10855
|
+
limit: U
|
|
10856
10856
|
} = x, z = M === "tree", J = [];
|
|
10857
10857
|
for (const L of K) {
|
|
10858
10858
|
const [$, de] = L;
|
|
@@ -10889,7 +10889,7 @@ function Iu(e, t) {
|
|
|
10889
10889
|
action_type: R,
|
|
10890
10890
|
res_id: V,
|
|
10891
10891
|
treeExpandable: z,
|
|
10892
|
-
limit: S && (
|
|
10892
|
+
limit: S && (U === 0 || U === !1) ? Ft : U
|
|
10893
10893
|
});
|
|
10894
10894
|
}
|
|
10895
10895
|
async function b({
|
|
@@ -10928,7 +10928,7 @@ function Iu(e, t) {
|
|
|
10928
10928
|
}) {
|
|
10929
10929
|
const M = ar();
|
|
10930
10930
|
if (S !== "current") {
|
|
10931
|
-
const
|
|
10931
|
+
const U = await k.getHandler().getView({
|
|
10932
10932
|
model: R,
|
|
10933
10933
|
type: "form",
|
|
10934
10934
|
id: _.type === "form" ? _.id : void 0,
|
|
@@ -10937,17 +10937,17 @@ function Iu(e, t) {
|
|
|
10937
10937
|
l.current.openActionModal({
|
|
10938
10938
|
domain: F,
|
|
10939
10939
|
model: R,
|
|
10940
|
-
formView:
|
|
10940
|
+
formView: U,
|
|
10941
10941
|
context: { ...c, ...C },
|
|
10942
10942
|
actionData: {
|
|
10943
10943
|
action_id: x,
|
|
10944
10944
|
action_type: O,
|
|
10945
10945
|
res_id: A,
|
|
10946
|
-
view_id:
|
|
10946
|
+
view_id: U.view_id
|
|
10947
10947
|
}
|
|
10948
10948
|
});
|
|
10949
10949
|
} else {
|
|
10950
|
-
const
|
|
10950
|
+
const U = _ && Array.isArray(_.id) ? { ..._, id: _.id[0] } : _;
|
|
10951
10951
|
g({
|
|
10952
10952
|
title: I,
|
|
10953
10953
|
action: {
|
|
@@ -10966,7 +10966,7 @@ function Iu(e, t) {
|
|
|
10966
10966
|
context: { ...c, ...C },
|
|
10967
10967
|
domain: F,
|
|
10968
10968
|
setCanWeClose: h,
|
|
10969
|
-
initialView:
|
|
10969
|
+
initialView: U,
|
|
10970
10970
|
res_id: A,
|
|
10971
10971
|
formDefaultValues: N,
|
|
10972
10972
|
formForcedValues: K,
|
|
@@ -10979,7 +10979,7 @@ function Iu(e, t) {
|
|
|
10979
10979
|
}
|
|
10980
10980
|
}
|
|
10981
10981
|
return /* @__PURE__ */ i(
|
|
10982
|
-
|
|
10982
|
+
Ya,
|
|
10983
10983
|
{
|
|
10984
10984
|
openShortcut: w,
|
|
10985
10985
|
openAction: T,
|
|
@@ -10995,7 +10995,7 @@ function Iu(e, t) {
|
|
|
10995
10995
|
r(F);
|
|
10996
10996
|
},
|
|
10997
10997
|
children: /* @__PURE__ */ i(
|
|
10998
|
-
|
|
10998
|
+
Tc,
|
|
10999
10999
|
{
|
|
11000
11000
|
ref: l,
|
|
11001
11001
|
globalValues: a,
|
|
@@ -11235,10 +11235,10 @@ const { useToken: _u } = Ke, If = (e) => {
|
|
|
11235
11235
|
);
|
|
11236
11236
|
};
|
|
11237
11237
|
export {
|
|
11238
|
-
|
|
11238
|
+
Vd as ActionBar,
|
|
11239
11239
|
ii as ActionView,
|
|
11240
11240
|
Cu as Alert,
|
|
11241
|
-
|
|
11241
|
+
Sd as Binary,
|
|
11242
11242
|
ia as Boolean,
|
|
11243
11243
|
go as Button,
|
|
11244
11244
|
Ws as ButtonGroup,
|
|
@@ -11248,52 +11248,52 @@ export {
|
|
|
11248
11248
|
Fo as ConfigContext,
|
|
11249
11249
|
Ia as ConfigContextProvider,
|
|
11250
11250
|
k as ConnectionProvider,
|
|
11251
|
-
|
|
11251
|
+
Tc as ContentRootProvider,
|
|
11252
11252
|
Tf as CurrentTabContent,
|
|
11253
11253
|
tu as Dashboard,
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
kd as Email,
|
|
11254
|
+
Jd as DashboardGrid,
|
|
11255
|
+
gd as Date,
|
|
11256
|
+
yd as DateTime,
|
|
11257
|
+
Dd as Email,
|
|
11259
11258
|
Cf as ErpAllFeatureKeys,
|
|
11260
11259
|
rn as ErpFeatureKeys,
|
|
11261
|
-
|
|
11260
|
+
hd as ExportModal,
|
|
11262
11261
|
If as FavouriteButton,
|
|
11263
11262
|
Lo as Float,
|
|
11264
|
-
|
|
11263
|
+
Zl as FloatTime,
|
|
11265
11264
|
jt as Form,
|
|
11266
11265
|
Kt as FormModal,
|
|
11266
|
+
ko as GraphCard,
|
|
11267
11267
|
Va as GraphIndicator,
|
|
11268
11268
|
Zo as Group,
|
|
11269
11269
|
bu as HTMLPreview,
|
|
11270
11270
|
la as Image,
|
|
11271
11271
|
mn as Integer,
|
|
11272
11272
|
vn as Label,
|
|
11273
|
-
|
|
11273
|
+
Vl as Many2one,
|
|
11274
11274
|
ou as Markdown,
|
|
11275
11275
|
nu as MultiCheckbox,
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11276
|
+
nd as Notebook,
|
|
11277
|
+
Xl as One2many,
|
|
11278
|
+
rl as ProgressBar,
|
|
11279
11279
|
su as Radio,
|
|
11280
|
-
|
|
11280
|
+
bd as Reference,
|
|
11281
11281
|
xf as RootView,
|
|
11282
11282
|
$o as SearchFilter,
|
|
11283
11283
|
hr as SearchModal,
|
|
11284
|
-
|
|
11284
|
+
Uo as SearchTree,
|
|
11285
11285
|
bo as Selection,
|
|
11286
|
-
|
|
11286
|
+
sd as Separator,
|
|
11287
11287
|
du as Steps,
|
|
11288
11288
|
cu as Switch,
|
|
11289
11289
|
Ru as Tab,
|
|
11290
11290
|
Sf as TabSelector,
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11291
|
+
sc as Tag,
|
|
11292
|
+
ac as Tags,
|
|
11293
|
+
od as Text,
|
|
11294
|
+
wd as Time,
|
|
11295
11295
|
on as Tree,
|
|
11296
|
-
|
|
11296
|
+
Ad as Url,
|
|
11297
11297
|
st as iconMapper,
|
|
11298
11298
|
tn as showConfirmDialog
|
|
11299
11299
|
};
|