@gisce/react-ooui 1.5.4-rc.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +556 -558
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +13 -13
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/custom/Markdown.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/stories/mocks/models/cups.ts +1 -18
- package/src/widgets/base/one2many/One2manyInput.tsx +1 -1
- package/src/widgets/custom/Markdown.tsx +1 -7
- package/src/widgets/views/Form.tsx +1 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -22,18 +22,17 @@ import Ui from "validator/lib/isURL";
|
|
|
22
22
|
import Gi from "validator/lib/isEmail";
|
|
23
23
|
import { useHotkeys as qi } from "react-hotkeys-hook";
|
|
24
24
|
import zi from "react-markdown";
|
|
25
|
-
import Ji from "
|
|
26
|
-
import Zi from "
|
|
27
|
-
import Xi from "
|
|
28
|
-
import { WidthProvider as Qi, Responsive as es } from "react-grid-layout";
|
|
25
|
+
import Ji from "@monaco-editor/react";
|
|
26
|
+
import Zi from "md5";
|
|
27
|
+
import { WidthProvider as Xi, Responsive as Qi } from "react-grid-layout";
|
|
29
28
|
import "react-grid-layout/css/styles.css";
|
|
30
29
|
import { v4 as oo } from "uuid";
|
|
31
30
|
const {
|
|
32
|
-
Text:
|
|
33
|
-
Title:
|
|
31
|
+
Text: es,
|
|
32
|
+
Title: ts
|
|
34
33
|
} = Ut, {
|
|
35
|
-
useToken:
|
|
36
|
-
} = Pe,
|
|
34
|
+
useToken: ns
|
|
35
|
+
} = Pe, rs = {
|
|
37
36
|
left: "justify-start",
|
|
38
37
|
center: "justify-center",
|
|
39
38
|
right: "justify-end"
|
|
@@ -50,9 +49,9 @@ const {
|
|
|
50
49
|
labelType: f
|
|
51
50
|
} = t, d = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
|
|
52
51
|
token: y
|
|
53
|
-
} =
|
|
52
|
+
} = ns(), p = l === void 0 ? es : ts;
|
|
54
53
|
return /* @__PURE__ */ P("div", {
|
|
55
|
-
className: `flex flex-row items-center pb-1 pt-1 ${
|
|
54
|
+
className: `flex flex-row items-center pb-1 pt-1 ${rs[m]}`,
|
|
56
55
|
children: [s && /* @__PURE__ */ n(pt, {
|
|
57
56
|
title: s,
|
|
58
57
|
children: /* @__PURE__ */ n(Ur, {
|
|
@@ -72,7 +71,7 @@ const {
|
|
|
72
71
|
})
|
|
73
72
|
})]
|
|
74
73
|
});
|
|
75
|
-
},
|
|
74
|
+
}, os = {
|
|
76
75
|
true: "S\xED",
|
|
77
76
|
false: "No",
|
|
78
77
|
simple_search: "B\xFAsqueda simple",
|
|
@@ -162,7 +161,7 @@ const {
|
|
|
162
161
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta p\xE0gina.",
|
|
163
162
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
164
163
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
165
|
-
},
|
|
164
|
+
}, is = {
|
|
166
165
|
true: "Yes",
|
|
167
166
|
false: "No",
|
|
168
167
|
simple_search: "Simple search",
|
|
@@ -252,7 +251,7 @@ const {
|
|
|
252
251
|
recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta p\xE0gina.",
|
|
253
252
|
selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
|
|
254
253
|
allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
|
|
255
|
-
},
|
|
254
|
+
}, ss = {
|
|
256
255
|
true: "S\xED",
|
|
257
256
|
false: "No",
|
|
258
257
|
simple_search: "B\xFAsqueda simple",
|
|
@@ -342,11 +341,11 @@ const {
|
|
|
342
341
|
recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en \xE9sta p\xE1gina.",
|
|
343
342
|
selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
|
|
344
343
|
allRecordsSelected: "Hay {totalRecords} registros seleccionados."
|
|
345
|
-
},
|
|
346
|
-
ca_ES:
|
|
347
|
-
en_US:
|
|
348
|
-
es_ES:
|
|
349
|
-
}, ye = Qe.createContext(null),
|
|
344
|
+
}, as = {
|
|
345
|
+
ca_ES: os,
|
|
346
|
+
en_US: is,
|
|
347
|
+
es_ES: ss
|
|
348
|
+
}, ye = Qe.createContext(null), ls = (e) => {
|
|
350
349
|
const {
|
|
351
350
|
children: t,
|
|
352
351
|
lang: r
|
|
@@ -363,7 +362,7 @@ const {
|
|
|
363
362
|
});
|
|
364
363
|
}, Oe = (e, t) => {
|
|
365
364
|
var i;
|
|
366
|
-
return ((i =
|
|
365
|
+
return ((i = as[t]) == null ? void 0 : i[e]) || e;
|
|
367
366
|
};
|
|
368
367
|
function we({
|
|
369
368
|
ooui: e,
|
|
@@ -424,13 +423,13 @@ function we({
|
|
|
424
423
|
}))();
|
|
425
424
|
}
|
|
426
425
|
const {
|
|
427
|
-
confirm:
|
|
426
|
+
confirm: cs
|
|
428
427
|
} = Je, zt = ({
|
|
429
428
|
onOk: e,
|
|
430
429
|
confirmMessage: t,
|
|
431
430
|
lang: r
|
|
432
431
|
}) => {
|
|
433
|
-
|
|
432
|
+
cs({
|
|
434
433
|
title: Oe("confirmation", r),
|
|
435
434
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
436
435
|
centered: !0,
|
|
@@ -439,7 +438,7 @@ const {
|
|
|
439
438
|
cancelText: Oe("cancel", r),
|
|
440
439
|
onOk: e
|
|
441
440
|
});
|
|
442
|
-
}, Le = Qe.createContext(null),
|
|
441
|
+
}, Le = Qe.createContext(null), ds = (e) => {
|
|
443
442
|
const {
|
|
444
443
|
children: t,
|
|
445
444
|
activeId: r,
|
|
@@ -569,7 +568,7 @@ const {
|
|
|
569
568
|
STOCK_UNINDENT: "AlignLeft",
|
|
570
569
|
STOCK_PREFERENCES: "Setting"
|
|
571
570
|
}, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), mr.hasOwnProperty(e) ? hr(mr[e], t) : hr(e, t));
|
|
572
|
-
function
|
|
571
|
+
function us(e) {
|
|
573
572
|
return `${e.split("-").map(
|
|
574
573
|
(t) => t.replace(
|
|
575
574
|
/\w\S*/g,
|
|
@@ -579,7 +578,7 @@ function fs(e) {
|
|
|
579
578
|
}
|
|
580
579
|
function hr(e, t) {
|
|
581
580
|
let r = e.charAt(0).toUpperCase() + e.slice(1);
|
|
582
|
-
r.indexOf("-") !== -1 && (r =
|
|
581
|
+
r.indexOf("-") !== -1 && (r = us(r));
|
|
583
582
|
const i = `${r}Outlined`;
|
|
584
583
|
if (ur[i])
|
|
585
584
|
return () => Qe.createElement(ur[i], {
|
|
@@ -661,7 +660,7 @@ const io = (e) => {
|
|
|
661
660
|
children: i
|
|
662
661
|
})
|
|
663
662
|
});
|
|
664
|
-
},
|
|
663
|
+
}, fs = (e) => {
|
|
665
664
|
const {
|
|
666
665
|
ooui: t
|
|
667
666
|
} = e, {
|
|
@@ -723,7 +722,7 @@ const io = (e) => {
|
|
|
723
722
|
onClick: A,
|
|
724
723
|
icon: /* @__PURE__ */ n(kt, {}),
|
|
725
724
|
type: d ? "primary" : void 0,
|
|
726
|
-
overlay: /* @__PURE__ */ n(
|
|
725
|
+
overlay: /* @__PURE__ */ n(ms, {
|
|
727
726
|
ooui: i,
|
|
728
727
|
executeButtonAction: h,
|
|
729
728
|
lang: C
|
|
@@ -735,7 +734,7 @@ const io = (e) => {
|
|
|
735
734
|
return /* @__PURE__ */ n(io, {
|
|
736
735
|
ooui: r
|
|
737
736
|
});
|
|
738
|
-
},
|
|
737
|
+
}, ms = (e) => {
|
|
739
738
|
const {
|
|
740
739
|
ooui: t,
|
|
741
740
|
executeButtonAction: r,
|
|
@@ -794,7 +793,7 @@ const io = (e) => {
|
|
|
794
793
|
return /* @__PURE__ */ n(Be, {
|
|
795
794
|
children: o
|
|
796
795
|
});
|
|
797
|
-
},
|
|
796
|
+
}, hs = 0.7;
|
|
798
797
|
function pr() {
|
|
799
798
|
const { innerWidth: e, innerHeight: t } = window;
|
|
800
799
|
return {
|
|
@@ -812,7 +811,7 @@ function hn() {
|
|
|
812
811
|
}
|
|
813
812
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
814
813
|
}, []), {
|
|
815
|
-
modalWidth: e.width *
|
|
814
|
+
modalWidth: e.width * hs,
|
|
816
815
|
modalHeight: e.height,
|
|
817
816
|
width: e.width,
|
|
818
817
|
height: e.height
|
|
@@ -847,15 +846,15 @@ const so = (e) => {
|
|
|
847
846
|
title: i
|
|
848
847
|
};
|
|
849
848
|
}, {
|
|
850
|
-
error:
|
|
851
|
-
warning:
|
|
849
|
+
error: ps,
|
|
850
|
+
warning: gs
|
|
852
851
|
} = Je, ze = (e) => {
|
|
853
852
|
const {
|
|
854
853
|
message: t,
|
|
855
854
|
type: r,
|
|
856
855
|
title: i
|
|
857
856
|
} = so(e);
|
|
858
|
-
(r === "error" ?
|
|
857
|
+
(r === "error" ? ps : gs)({
|
|
859
858
|
title: i,
|
|
860
859
|
icon: r === "error" ? /* @__PURE__ */ n(gt, {}) : /* @__PURE__ */ n(Gr, {}),
|
|
861
860
|
centered: !0,
|
|
@@ -1010,15 +1009,15 @@ function Xe(e) {
|
|
|
1010
1009
|
});
|
|
1011
1010
|
}
|
|
1012
1011
|
const {
|
|
1013
|
-
info:
|
|
1012
|
+
info: ys
|
|
1014
1013
|
} = Je, mt = (e) => {
|
|
1015
|
-
|
|
1014
|
+
ys({
|
|
1016
1015
|
title: "",
|
|
1017
1016
|
centered: !0,
|
|
1018
1017
|
content: e
|
|
1019
1018
|
});
|
|
1020
1019
|
}, {
|
|
1021
|
-
useToken:
|
|
1020
|
+
useToken: vs
|
|
1022
1021
|
} = Pe, lo = (e) => {
|
|
1023
1022
|
const {
|
|
1024
1023
|
ooui: t,
|
|
@@ -1031,7 +1030,7 @@ const {
|
|
|
1031
1030
|
translatable: l
|
|
1032
1031
|
} = t, {
|
|
1033
1032
|
token: f
|
|
1034
|
-
} =
|
|
1033
|
+
} = vs(), c = a && !o ? {
|
|
1035
1034
|
backgroundColor: f.colorPrimaryBg
|
|
1036
1035
|
} : void 0, d = W(Le), {
|
|
1037
1036
|
elementHasLostFocus: u
|
|
@@ -1047,7 +1046,7 @@ const {
|
|
|
1047
1046
|
disabled: o,
|
|
1048
1047
|
id: i,
|
|
1049
1048
|
onBlur: u
|
|
1050
|
-
})), l && !o && !r && (m = /* @__PURE__ */ n(
|
|
1049
|
+
})), l && !o && !r && (m = /* @__PURE__ */ n(ws, {
|
|
1051
1050
|
field: i,
|
|
1052
1051
|
requiredStyle: c
|
|
1053
1052
|
})), /* @__PURE__ */ n(we, {
|
|
@@ -1055,7 +1054,7 @@ const {
|
|
|
1055
1054
|
...e,
|
|
1056
1055
|
children: m
|
|
1057
1056
|
});
|
|
1058
|
-
},
|
|
1057
|
+
}, ws = ({
|
|
1059
1058
|
value: e,
|
|
1060
1059
|
field: t,
|
|
1061
1060
|
requiredStyle: r,
|
|
@@ -1134,10 +1133,10 @@ const {
|
|
|
1134
1133
|
})
|
|
1135
1134
|
});
|
|
1136
1135
|
}, {
|
|
1137
|
-
defaultAlgorithm:
|
|
1138
|
-
defaultSeed:
|
|
1139
|
-
} = Pe,
|
|
1140
|
-
Option:
|
|
1136
|
+
defaultAlgorithm: bs,
|
|
1137
|
+
defaultSeed: xs
|
|
1138
|
+
} = Pe, Cs = bs(xs), {
|
|
1139
|
+
Option: Ss
|
|
1141
1140
|
} = Ct, co = (e) => {
|
|
1142
1141
|
const {
|
|
1143
1142
|
ooui: t
|
|
@@ -1163,12 +1162,12 @@ const {
|
|
|
1163
1162
|
required: a
|
|
1164
1163
|
} = t, l = Array.from(o.entries()), f = l && l.length && l.map((d) => {
|
|
1165
1164
|
const [u, m] = d;
|
|
1166
|
-
return /* @__PURE__ */ n(
|
|
1165
|
+
return /* @__PURE__ */ n(Ss, {
|
|
1167
1166
|
value: u,
|
|
1168
1167
|
children: m
|
|
1169
1168
|
}, u);
|
|
1170
1169
|
});
|
|
1171
|
-
return /* @__PURE__ */ n(a && !s ?
|
|
1170
|
+
return /* @__PURE__ */ n(a && !s ? Ts : Ct, {
|
|
1172
1171
|
disabled: s,
|
|
1173
1172
|
onChange: r,
|
|
1174
1173
|
value: i,
|
|
@@ -1177,14 +1176,14 @@ const {
|
|
|
1177
1176
|
showSearch: !0,
|
|
1178
1177
|
children: f
|
|
1179
1178
|
});
|
|
1180
|
-
},
|
|
1179
|
+
}, Ts = Et(Ct)`
|
|
1181
1180
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
1182
|
-
background-color: ${
|
|
1181
|
+
background-color: ${Cs.colorPrimaryBg};
|
|
1183
1182
|
}
|
|
1184
1183
|
`, {
|
|
1185
|
-
defaultAlgorithm:
|
|
1186
|
-
defaultSeed:
|
|
1187
|
-
} = Pe, gr = Os
|
|
1184
|
+
defaultAlgorithm: Fs,
|
|
1185
|
+
defaultSeed: Os
|
|
1186
|
+
} = Pe, gr = Fs(Os), Is = (e) => {
|
|
1188
1187
|
const {
|
|
1189
1188
|
ooui: t
|
|
1190
1189
|
} = e, {
|
|
@@ -1195,13 +1194,13 @@ const {
|
|
|
1195
1194
|
return /* @__PURE__ */ n(we, {
|
|
1196
1195
|
...e,
|
|
1197
1196
|
valuePropName: "checked",
|
|
1198
|
-
children: /* @__PURE__ */ n(
|
|
1197
|
+
children: /* @__PURE__ */ n(_s, {
|
|
1199
1198
|
id: r,
|
|
1200
1199
|
readOnly: i,
|
|
1201
1200
|
required: o
|
|
1202
1201
|
})
|
|
1203
1202
|
});
|
|
1204
|
-
},
|
|
1203
|
+
}, _s = (e) => {
|
|
1205
1204
|
const {
|
|
1206
1205
|
required: t,
|
|
1207
1206
|
readOnly: r,
|
|
@@ -1209,12 +1208,12 @@ const {
|
|
|
1209
1208
|
} = e;
|
|
1210
1209
|
return /* @__PURE__ */ n("div", {
|
|
1211
1210
|
className: "flex flex-row",
|
|
1212
|
-
children: /* @__PURE__ */ n(t && !r ?
|
|
1211
|
+
children: /* @__PURE__ */ n(t && !r ? Ds : jt, {
|
|
1213
1212
|
disabled: r,
|
|
1214
1213
|
...i
|
|
1215
1214
|
})
|
|
1216
1215
|
});
|
|
1217
|
-
},
|
|
1216
|
+
}, Ds = Et(jt)`
|
|
1218
1217
|
.ant-checkbox-inner {
|
|
1219
1218
|
background-color: ${gr.colorPrimaryBg};
|
|
1220
1219
|
}
|
|
@@ -1224,54 +1223,54 @@ const {
|
|
|
1224
1223
|
}
|
|
1225
1224
|
`;
|
|
1226
1225
|
var ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1227
|
-
function
|
|
1226
|
+
function As(e) {
|
|
1228
1227
|
var t = typeof e;
|
|
1229
1228
|
return e != null && (t == "object" || t == "function");
|
|
1230
1229
|
}
|
|
1231
|
-
var fo =
|
|
1232
|
-
return
|
|
1233
|
-
},
|
|
1234
|
-
function
|
|
1235
|
-
for (var t = e.length; t-- &&
|
|
1230
|
+
var fo = As, Rs = typeof ft == "object" && ft && ft.Object === Object && ft, Vs = Rs, ks = Vs, Ms = typeof self == "object" && self && self.Object === Object && self, Es = ks || Ms || Function("return this")(), mo = Es, $s = mo, Ls = function() {
|
|
1231
|
+
return $s.Date.now();
|
|
1232
|
+
}, Ns = Ls, Ps = /\s/;
|
|
1233
|
+
function Hs(e) {
|
|
1234
|
+
for (var t = e.length; t-- && Ps.test(e.charAt(t)); )
|
|
1236
1235
|
;
|
|
1237
1236
|
return t;
|
|
1238
1237
|
}
|
|
1239
|
-
var
|
|
1240
|
-
function
|
|
1241
|
-
return e && e.slice(0,
|
|
1238
|
+
var Bs = Hs, js = Bs, Ks = /^\s+/;
|
|
1239
|
+
function Ys(e) {
|
|
1240
|
+
return e && e.slice(0, js(e) + 1).replace(Ks, "");
|
|
1242
1241
|
}
|
|
1243
|
-
var
|
|
1244
|
-
function
|
|
1245
|
-
var t =
|
|
1242
|
+
var Ws = Ys, Us = mo, Gs = Us.Symbol, ho = Gs, yr = ho, po = Object.prototype, qs = po.hasOwnProperty, zs = po.toString, Ht = yr ? yr.toStringTag : void 0;
|
|
1243
|
+
function Js(e) {
|
|
1244
|
+
var t = qs.call(e, Ht), r = e[Ht];
|
|
1246
1245
|
try {
|
|
1247
1246
|
e[Ht] = void 0;
|
|
1248
1247
|
var i = !0;
|
|
1249
1248
|
} catch {
|
|
1250
1249
|
}
|
|
1251
|
-
var o =
|
|
1250
|
+
var o = zs.call(e);
|
|
1252
1251
|
return i && (t ? e[Ht] = r : delete e[Ht]), o;
|
|
1253
1252
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1253
|
+
var Zs = Js, Xs = Object.prototype, Qs = Xs.toString;
|
|
1254
|
+
function ea(e) {
|
|
1255
|
+
return Qs.call(e);
|
|
1257
1256
|
}
|
|
1258
|
-
var
|
|
1259
|
-
function
|
|
1260
|
-
return e == null ? e === void 0 ?
|
|
1257
|
+
var ta = ea, vr = ho, na = Zs, ra = ta, oa = "[object Null]", ia = "[object Undefined]", wr = vr ? vr.toStringTag : void 0;
|
|
1258
|
+
function sa(e) {
|
|
1259
|
+
return e == null ? e === void 0 ? ia : oa : wr && wr in Object(e) ? na(e) : ra(e);
|
|
1261
1260
|
}
|
|
1262
|
-
var
|
|
1263
|
-
function
|
|
1261
|
+
var aa = sa;
|
|
1262
|
+
function la(e) {
|
|
1264
1263
|
return e != null && typeof e == "object";
|
|
1265
1264
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1268
|
-
return typeof e == "symbol" ||
|
|
1265
|
+
var ca = la, da = aa, ua = ca, fa = "[object Symbol]";
|
|
1266
|
+
function ma(e) {
|
|
1267
|
+
return typeof e == "symbol" || ua(e) && da(e) == fa;
|
|
1269
1268
|
}
|
|
1270
|
-
var
|
|
1271
|
-
function
|
|
1269
|
+
var ha = ma, pa = Ws, br = fo, ga = ha, xr = 0 / 0, ya = /^[-+]0x[0-9a-f]+$/i, va = /^0b[01]+$/i, wa = /^0o[0-7]+$/i, ba = parseInt;
|
|
1270
|
+
function xa(e) {
|
|
1272
1271
|
if (typeof e == "number")
|
|
1273
1272
|
return e;
|
|
1274
|
-
if (
|
|
1273
|
+
if (ga(e))
|
|
1275
1274
|
return xr;
|
|
1276
1275
|
if (br(e)) {
|
|
1277
1276
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1279,16 +1278,16 @@ function Ca(e) {
|
|
|
1279
1278
|
}
|
|
1280
1279
|
if (typeof e != "string")
|
|
1281
1280
|
return e === 0 ? e : +e;
|
|
1282
|
-
e =
|
|
1283
|
-
var r =
|
|
1284
|
-
return r ||
|
|
1281
|
+
e = pa(e);
|
|
1282
|
+
var r = va.test(e);
|
|
1283
|
+
return r || wa.test(e) ? ba(e.slice(2), r ? 2 : 8) : ya.test(e) ? xr : +e;
|
|
1285
1284
|
}
|
|
1286
|
-
var
|
|
1287
|
-
function
|
|
1285
|
+
var Ca = xa, Sa = fo, Fn = Ns, Cr = Ca, Ta = "Expected a function", Fa = Math.max, Oa = Math.min;
|
|
1286
|
+
function Ia(e, t, r) {
|
|
1288
1287
|
var i, o, s, a, l, f, c = 0, d = !1, u = !1, m = !0;
|
|
1289
1288
|
if (typeof e != "function")
|
|
1290
|
-
throw new TypeError(
|
|
1291
|
-
t = Cr(t) || 0,
|
|
1289
|
+
throw new TypeError(Ta);
|
|
1290
|
+
t = Cr(t) || 0, Sa(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Fa(Cr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
|
1292
1291
|
function y(S) {
|
|
1293
1292
|
var E = i, x = o;
|
|
1294
1293
|
return i = o = void 0, c = S, a = e.apply(x, E), a;
|
|
@@ -1298,7 +1297,7 @@ function _a(e, t, r) {
|
|
|
1298
1297
|
}
|
|
1299
1298
|
function h(S) {
|
|
1300
1299
|
var E = S - f, x = S - c, T = t - E;
|
|
1301
|
-
return u ?
|
|
1300
|
+
return u ? Oa(T, s - x) : T;
|
|
1302
1301
|
}
|
|
1303
1302
|
function g(S) {
|
|
1304
1303
|
var E = S - f, x = S - c;
|
|
@@ -1331,8 +1330,8 @@ function _a(e, t, r) {
|
|
|
1331
1330
|
}
|
|
1332
1331
|
return A.cancel = R, A.flush = b, A;
|
|
1333
1332
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1333
|
+
var _a = Ia;
|
|
1334
|
+
function Da(e) {
|
|
1336
1335
|
const r = Buffer.from(e, "base64").length / 1e3;
|
|
1337
1336
|
return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
|
|
1338
1337
|
}
|
|
@@ -1355,7 +1354,7 @@ function pn(e, t) {
|
|
|
1355
1354
|
var s = new Uint8Array(i), a = new Blob([s], { type: t + ";base64" }), l = URL.createObjectURL(a);
|
|
1356
1355
|
window.open(l);
|
|
1357
1356
|
}
|
|
1358
|
-
const
|
|
1357
|
+
const Aa = (e) => {
|
|
1359
1358
|
const {
|
|
1360
1359
|
ooui: t
|
|
1361
1360
|
} = e, {
|
|
@@ -1365,11 +1364,11 @@ const Ra = (e) => {
|
|
|
1365
1364
|
return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(we, {
|
|
1366
1365
|
required: r,
|
|
1367
1366
|
...e,
|
|
1368
|
-
children: /* @__PURE__ */ n(
|
|
1367
|
+
children: /* @__PURE__ */ n(Ra, {
|
|
1369
1368
|
ooui: t
|
|
1370
1369
|
})
|
|
1371
1370
|
});
|
|
1372
|
-
},
|
|
1371
|
+
}, Ra = (e) => {
|
|
1373
1372
|
const {
|
|
1374
1373
|
ooui: t,
|
|
1375
1374
|
value: r,
|
|
@@ -1440,7 +1439,7 @@ const Ra = (e) => {
|
|
|
1440
1439
|
})
|
|
1441
1440
|
})]
|
|
1442
1441
|
});
|
|
1443
|
-
},
|
|
1442
|
+
}, Va = (e) => {
|
|
1444
1443
|
const {
|
|
1445
1444
|
ooui: t
|
|
1446
1445
|
} = e, {
|
|
@@ -1449,9 +1448,9 @@ const Ra = (e) => {
|
|
|
1449
1448
|
return /* @__PURE__ */ n(we, {
|
|
1450
1449
|
required: r,
|
|
1451
1450
|
...e,
|
|
1452
|
-
children: /* @__PURE__ */ n(
|
|
1451
|
+
children: /* @__PURE__ */ n(ka, {})
|
|
1453
1452
|
});
|
|
1454
|
-
},
|
|
1453
|
+
}, ka = (e) => {
|
|
1455
1454
|
const {
|
|
1456
1455
|
value: t,
|
|
1457
1456
|
onChange: r
|
|
@@ -1472,7 +1471,7 @@ const Ra = (e) => {
|
|
|
1472
1471
|
}, _t = (e) => {
|
|
1473
1472
|
const t = e.arch, r = e.fields, i = new Hr(r);
|
|
1474
1473
|
return i.parse(t), i;
|
|
1475
|
-
},
|
|
1474
|
+
}, Ma = (e, t, r) => e.columns.map((o) => {
|
|
1476
1475
|
const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
|
|
1477
1476
|
let f;
|
|
1478
1477
|
return l && (f = (c) => l(c, a, o, r)), {
|
|
@@ -1529,7 +1528,7 @@ function Dt({
|
|
|
1529
1528
|
};
|
|
1530
1529
|
return e.sort(l);
|
|
1531
1530
|
}
|
|
1532
|
-
function
|
|
1531
|
+
function Ea(e) {
|
|
1533
1532
|
for (const t in e)
|
|
1534
1533
|
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
|
|
1535
1534
|
return !0;
|
|
@@ -1587,10 +1586,10 @@ const er = async (e) => {
|
|
|
1587
1586
|
}).concat(l),
|
|
1588
1587
|
u
|
|
1589
1588
|
];
|
|
1590
|
-
},
|
|
1589
|
+
}, $a = (e) => {
|
|
1591
1590
|
const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
|
|
1592
1591
|
return t.length === 0 ? -1 : Math.min(...t) - 1;
|
|
1593
|
-
},
|
|
1592
|
+
}, La = (e, t) => {
|
|
1594
1593
|
const r = {};
|
|
1595
1594
|
return Object.keys(e).forEach((i) => {
|
|
1596
1595
|
var o;
|
|
@@ -1598,7 +1597,7 @@ const er = async (e) => {
|
|
|
1598
1597
|
(s) => s.operation !== "pendingRemove"
|
|
1599
1598
|
) : r[i] = e[i];
|
|
1600
1599
|
}), r;
|
|
1601
|
-
},
|
|
1600
|
+
}, Na = (e) => {
|
|
1602
1601
|
const {
|
|
1603
1602
|
ooui: t
|
|
1604
1603
|
} = e, {
|
|
@@ -1637,12 +1636,12 @@ const er = async (e) => {
|
|
|
1637
1636
|
}) : /* @__PURE__ */ n(we, {
|
|
1638
1637
|
type: "array",
|
|
1639
1638
|
...e,
|
|
1640
|
-
children: /* @__PURE__ */ n(
|
|
1639
|
+
children: /* @__PURE__ */ n(Pa, {
|
|
1641
1640
|
ooui: t,
|
|
1642
1641
|
views: c
|
|
1643
1642
|
})
|
|
1644
1643
|
});
|
|
1645
|
-
},
|
|
1644
|
+
}, Pa = (e) => {
|
|
1646
1645
|
const {
|
|
1647
1646
|
value: t,
|
|
1648
1647
|
views: r,
|
|
@@ -1753,21 +1752,21 @@ const er = async (e) => {
|
|
|
1753
1752
|
})]
|
|
1754
1753
|
});
|
|
1755
1754
|
}, {
|
|
1756
|
-
useToken:
|
|
1757
|
-
} = Pe,
|
|
1755
|
+
useToken: Ha
|
|
1756
|
+
} = Pe, Ba = (e) => {
|
|
1758
1757
|
const {
|
|
1759
1758
|
ooui: t
|
|
1760
1759
|
} = e;
|
|
1761
1760
|
return /* @__PURE__ */ n(we, {
|
|
1762
1761
|
ooui: t,
|
|
1763
|
-
children: /* @__PURE__ */ n(
|
|
1762
|
+
children: /* @__PURE__ */ n(ja, {
|
|
1764
1763
|
ooui: t
|
|
1765
1764
|
})
|
|
1766
1765
|
});
|
|
1767
|
-
},
|
|
1766
|
+
}, ja = (e) => {
|
|
1768
1767
|
const {
|
|
1769
1768
|
token: t
|
|
1770
|
-
} =
|
|
1769
|
+
} = Ha(), {
|
|
1771
1770
|
ooui: r,
|
|
1772
1771
|
value: i
|
|
1773
1772
|
} = e, o = /* @__PURE__ */ P(te, {
|
|
@@ -1794,7 +1793,7 @@ const er = async (e) => {
|
|
|
1794
1793
|
return r.card ? /* @__PURE__ */ n(Nn, {
|
|
1795
1794
|
children: l
|
|
1796
1795
|
}) : l;
|
|
1797
|
-
},
|
|
1796
|
+
}, Ka = (e, t) => {
|
|
1798
1797
|
if (!t)
|
|
1799
1798
|
return e;
|
|
1800
1799
|
const r = {};
|
|
@@ -1808,7 +1807,7 @@ const er = async (e) => {
|
|
|
1808
1807
|
} else
|
|
1809
1808
|
r[i] = e[i];
|
|
1810
1809
|
}), r;
|
|
1811
|
-
}, It = (e, t) =>
|
|
1810
|
+
}, It = (e, t) => Ka(e, t), On = ({
|
|
1812
1811
|
source: e,
|
|
1813
1812
|
target: t,
|
|
1814
1813
|
fields: r
|
|
@@ -1841,7 +1840,7 @@ const er = async (e) => {
|
|
|
1841
1840
|
else
|
|
1842
1841
|
e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
|
|
1843
1842
|
}), i;
|
|
1844
|
-
},
|
|
1843
|
+
}, Ya = ({
|
|
1845
1844
|
changedFields: e,
|
|
1846
1845
|
formOoui: t,
|
|
1847
1846
|
types: r
|
|
@@ -1849,7 +1848,7 @@ const er = async (e) => {
|
|
|
1849
1848
|
var a;
|
|
1850
1849
|
const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
|
|
1851
1850
|
return r.includes(s);
|
|
1852
|
-
}).some((o) => o === !0),
|
|
1851
|
+
}).some((o) => o === !0), Wa = ({
|
|
1853
1852
|
fieldsDomain: e,
|
|
1854
1853
|
fields: t
|
|
1855
1854
|
}) => {
|
|
@@ -1857,12 +1856,12 @@ const er = async (e) => {
|
|
|
1857
1856
|
return Object.keys(t).forEach((i) => {
|
|
1858
1857
|
r[i] = t[i], e[i] && (r[i].domain = e[i]);
|
|
1859
1858
|
}), r;
|
|
1860
|
-
},
|
|
1859
|
+
}, Ua = (e) => {
|
|
1861
1860
|
const t = {};
|
|
1862
1861
|
return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
|
|
1863
1862
|
(r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
|
|
1864
1863
|
}), t);
|
|
1865
|
-
},
|
|
1864
|
+
}, Ga = ({
|
|
1866
1865
|
onChangeFieldActionArgs: e,
|
|
1867
1866
|
values: t,
|
|
1868
1867
|
parentValues: r = {}
|
|
@@ -1923,7 +1922,7 @@ const $t = ({
|
|
|
1923
1922
|
r += ("00" + i.toString(16)).slice(-2);
|
|
1924
1923
|
}
|
|
1925
1924
|
return r;
|
|
1926
|
-
},
|
|
1925
|
+
}, qa = (e, t) => e.replace(/\{([^}]+)\}/g, (r, i) => t[i] !== void 0 ? t[i] : r), za = (e) => /* @__PURE__ */ n(we, {
|
|
1927
1926
|
...e,
|
|
1928
1927
|
children: /* @__PURE__ */ n(bo, {
|
|
1929
1928
|
...e
|
|
@@ -1956,18 +1955,18 @@ const $t = ({
|
|
|
1956
1955
|
color: t,
|
|
1957
1956
|
children: e.children
|
|
1958
1957
|
});
|
|
1959
|
-
},
|
|
1958
|
+
}, Ja = (e) => {
|
|
1960
1959
|
const {
|
|
1961
1960
|
ooui: t
|
|
1962
1961
|
} = e;
|
|
1963
1962
|
return /* @__PURE__ */ n(we, {
|
|
1964
1963
|
type: "array",
|
|
1965
1964
|
...e,
|
|
1966
|
-
children: /* @__PURE__ */ n(
|
|
1965
|
+
children: /* @__PURE__ */ n(Za, {
|
|
1967
1966
|
ooui: t
|
|
1968
1967
|
})
|
|
1969
1968
|
});
|
|
1970
|
-
},
|
|
1969
|
+
}, Za = (e) => {
|
|
1971
1970
|
const {
|
|
1972
1971
|
value: t,
|
|
1973
1972
|
ooui: r,
|
|
@@ -2085,14 +2084,14 @@ const $t = ({
|
|
|
2085
2084
|
})
|
|
2086
2085
|
})
|
|
2087
2086
|
});
|
|
2088
|
-
},
|
|
2087
|
+
}, Xa = (e) => {
|
|
2089
2088
|
switch (e) {
|
|
2090
2089
|
case "form":
|
|
2091
2090
|
return Zt;
|
|
2092
2091
|
case "tree":
|
|
2093
2092
|
return gn;
|
|
2094
2093
|
case "notebook":
|
|
2095
|
-
return
|
|
2094
|
+
return Zc;
|
|
2096
2095
|
case "group":
|
|
2097
2096
|
return No;
|
|
2098
2097
|
case "label":
|
|
@@ -2100,87 +2099,87 @@ const $t = ({
|
|
|
2100
2099
|
case "char":
|
|
2101
2100
|
return lo;
|
|
2102
2101
|
case "text":
|
|
2103
|
-
return
|
|
2102
|
+
return Qc;
|
|
2104
2103
|
case "button":
|
|
2105
2104
|
return io;
|
|
2106
2105
|
case "buttonGroup":
|
|
2107
|
-
return
|
|
2106
|
+
return fs;
|
|
2108
2107
|
case "selection":
|
|
2109
2108
|
return co;
|
|
2110
2109
|
case "many2one":
|
|
2111
|
-
return
|
|
2110
|
+
return vc;
|
|
2112
2111
|
case "boolean":
|
|
2113
|
-
return
|
|
2112
|
+
return Is;
|
|
2114
2113
|
case "integer":
|
|
2115
2114
|
return on;
|
|
2116
2115
|
case "float":
|
|
2117
2116
|
return To;
|
|
2118
2117
|
case "progressbar":
|
|
2119
|
-
return
|
|
2118
|
+
return Wl;
|
|
2120
2119
|
case "date":
|
|
2121
|
-
return
|
|
2120
|
+
return ud;
|
|
2122
2121
|
case "datetime":
|
|
2123
|
-
return
|
|
2122
|
+
return fd;
|
|
2124
2123
|
case "time":
|
|
2125
|
-
return
|
|
2124
|
+
return hd;
|
|
2126
2125
|
case "one2many":
|
|
2127
2126
|
case "one2many_list":
|
|
2128
2127
|
case "many2many":
|
|
2129
|
-
return
|
|
2128
|
+
return Uc;
|
|
2130
2129
|
case "separator":
|
|
2131
|
-
return
|
|
2130
|
+
return td;
|
|
2132
2131
|
case "reference":
|
|
2133
|
-
return
|
|
2132
|
+
return gd;
|
|
2134
2133
|
case "binary":
|
|
2135
|
-
return
|
|
2134
|
+
return wd;
|
|
2136
2135
|
case "image":
|
|
2137
|
-
return
|
|
2136
|
+
return Aa;
|
|
2138
2137
|
case "url":
|
|
2139
|
-
return
|
|
2138
|
+
return _d;
|
|
2140
2139
|
case "email":
|
|
2141
|
-
return
|
|
2140
|
+
return Dd;
|
|
2142
2141
|
case "float_time":
|
|
2143
|
-
return
|
|
2142
|
+
return qc;
|
|
2144
2143
|
case "fiber_grid":
|
|
2145
|
-
return
|
|
2144
|
+
return Va;
|
|
2146
2145
|
case "timeline":
|
|
2147
|
-
return
|
|
2146
|
+
return Na;
|
|
2148
2147
|
case "indicator":
|
|
2149
|
-
return
|
|
2148
|
+
return Ba;
|
|
2150
2149
|
case "tags":
|
|
2151
|
-
return Za;
|
|
2152
|
-
case "tag":
|
|
2153
2150
|
return Ja;
|
|
2151
|
+
case "tag":
|
|
2152
|
+
return za;
|
|
2154
2153
|
case "multicheckbox":
|
|
2155
|
-
return
|
|
2154
|
+
return ou;
|
|
2156
2155
|
case "markdown":
|
|
2157
|
-
return
|
|
2156
|
+
return su;
|
|
2158
2157
|
case "radio":
|
|
2159
|
-
return
|
|
2158
|
+
return lu;
|
|
2160
2159
|
case "switch":
|
|
2161
|
-
return
|
|
2160
|
+
return du;
|
|
2162
2161
|
case "steps":
|
|
2163
|
-
return
|
|
2162
|
+
return fu;
|
|
2164
2163
|
case "codeeditor":
|
|
2165
|
-
return
|
|
2164
|
+
return hu;
|
|
2166
2165
|
case "comments_timeline":
|
|
2167
|
-
return
|
|
2166
|
+
return Cu;
|
|
2168
2167
|
default:
|
|
2169
2168
|
return;
|
|
2170
2169
|
}
|
|
2171
|
-
},
|
|
2170
|
+
}, Qa = (e) => {
|
|
2172
2171
|
const {
|
|
2173
2172
|
ooui: t
|
|
2174
2173
|
} = e, {
|
|
2175
2174
|
type: r
|
|
2176
|
-
} = t, i =
|
|
2175
|
+
} = t, i = Xa(r);
|
|
2177
2176
|
return i ? Qe.createElement(i, e) : null;
|
|
2178
|
-
},
|
|
2177
|
+
}, el = ({
|
|
2179
2178
|
item: e,
|
|
2180
2179
|
responsiveBehaviour: t
|
|
2181
2180
|
}) => ({
|
|
2182
2181
|
gridColumnStart: "span " + (t ? 1 : e.colspan)
|
|
2183
|
-
}),
|
|
2182
|
+
}), tl = ({
|
|
2184
2183
|
row: e,
|
|
2185
2184
|
mustFillWithEmpties: t,
|
|
2186
2185
|
numberOfColumns: r
|
|
@@ -2199,10 +2198,10 @@ const $t = ({
|
|
|
2199
2198
|
i.push(new Vt({ string: "" }));
|
|
2200
2199
|
}
|
|
2201
2200
|
}), i;
|
|
2202
|
-
},
|
|
2201
|
+
}, nl = ({
|
|
2203
2202
|
row: e,
|
|
2204
2203
|
numberOfColumns: t
|
|
2205
|
-
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)),
|
|
2204
|
+
}) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), rl = (e, t) => {
|
|
2206
2205
|
const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof yi ? "auto" : "1fr");
|
|
2207
2206
|
if (r.length < t) {
|
|
2208
2207
|
const i = t - r.length;
|
|
@@ -2210,13 +2209,13 @@ const $t = ({
|
|
|
2210
2209
|
r.push("1fr");
|
|
2211
2210
|
}
|
|
2212
2211
|
return r.join(" ");
|
|
2213
|
-
},
|
|
2212
|
+
}, ol = (e, t) => {
|
|
2214
2213
|
const r = t ? "1fr" : "auto", i = "auto";
|
|
2215
2214
|
let o = "";
|
|
2216
2215
|
for (let s = 0; s < e; s++)
|
|
2217
2216
|
o += s % 2 ? r : i, s + 1 < e && (o += " ");
|
|
2218
2217
|
return o;
|
|
2219
|
-
},
|
|
2218
|
+
}, il = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Mn = (e) => {
|
|
2220
2219
|
const {
|
|
2221
2220
|
container: t,
|
|
2222
2221
|
responsiveBehaviour: r
|
|
@@ -2226,33 +2225,33 @@ const $t = ({
|
|
|
2226
2225
|
let {
|
|
2227
2226
|
columns: o
|
|
2228
2227
|
} = t;
|
|
2229
|
-
const s =
|
|
2228
|
+
const s = il(i);
|
|
2230
2229
|
s < o && (o = s);
|
|
2231
2230
|
let a = !1, l = [];
|
|
2232
2231
|
const f = i.map((u, m) => {
|
|
2233
|
-
const y = u.filter((g) => !g.invisible), p =
|
|
2232
|
+
const y = u.filter((g) => !g.invisible), p = nl({
|
|
2234
2233
|
row: y,
|
|
2235
2234
|
numberOfColumns: o
|
|
2236
2235
|
});
|
|
2237
2236
|
let h = p;
|
|
2238
|
-
return (m === 0 || !(u.length === 1 && u.some((g) => g.type === "group"))) && (h =
|
|
2237
|
+
return (m === 0 || !(u.length === 1 && u.some((g) => g.type === "group"))) && (h = tl({
|
|
2239
2238
|
row: p,
|
|
2240
2239
|
numberOfColumns: o,
|
|
2241
2240
|
mustFillWithEmpties: r
|
|
2242
2241
|
}), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
|
|
2243
2242
|
style: {
|
|
2244
|
-
...
|
|
2243
|
+
...el({
|
|
2245
2244
|
item: g,
|
|
2246
2245
|
responsiveBehaviour: r
|
|
2247
2246
|
}),
|
|
2248
2247
|
minWidth: 0
|
|
2249
2248
|
},
|
|
2250
|
-
children:
|
|
2249
|
+
children: Qa({
|
|
2251
2250
|
ooui: g,
|
|
2252
2251
|
responsiveBehaviour: r
|
|
2253
2252
|
})
|
|
2254
2253
|
}, g.key)));
|
|
2255
|
-
}), c = i.length === 1 ?
|
|
2254
|
+
}), c = i.length === 1 ? rl(l, o) : ol(o, a);
|
|
2256
2255
|
return /* @__PURE__ */ n("div", {
|
|
2257
2256
|
style: {
|
|
2258
2257
|
display: "grid",
|
|
@@ -2264,13 +2263,13 @@ const $t = ({
|
|
|
2264
2263
|
children: f
|
|
2265
2264
|
});
|
|
2266
2265
|
}, {
|
|
2267
|
-
confirm:
|
|
2266
|
+
confirm: sl
|
|
2268
2267
|
} = Je, Jt = ({
|
|
2269
2268
|
onOk: e,
|
|
2270
2269
|
onCancel: t,
|
|
2271
2270
|
lang: r
|
|
2272
2271
|
}) => {
|
|
2273
|
-
|
|
2272
|
+
sl({
|
|
2274
2273
|
title: Oe("unsavedChanges", r),
|
|
2275
2274
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
2276
2275
|
centered: !0,
|
|
@@ -2281,25 +2280,25 @@ const $t = ({
|
|
|
2281
2280
|
cancelText: Oe("cancel", r)
|
|
2282
2281
|
});
|
|
2283
2282
|
}, {
|
|
2284
|
-
error:
|
|
2283
|
+
error: al
|
|
2285
2284
|
} = Je, Fr = (e) => {
|
|
2286
|
-
|
|
2285
|
+
al({
|
|
2287
2286
|
title: Oe("formHasErrors", e),
|
|
2288
2287
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
2289
2288
|
centered: !0,
|
|
2290
2289
|
content: Oe("fillRequiredFields", e)
|
|
2291
2290
|
});
|
|
2292
2291
|
}, {
|
|
2293
|
-
warning:
|
|
2294
|
-
} = Je,
|
|
2295
|
-
|
|
2292
|
+
warning: ll
|
|
2293
|
+
} = Je, cl = (e, t, r) => {
|
|
2294
|
+
ll({
|
|
2296
2295
|
title: e,
|
|
2297
2296
|
icon: /* @__PURE__ */ n(Gr, {}),
|
|
2298
2297
|
centered: !0,
|
|
2299
2298
|
content: t,
|
|
2300
2299
|
onOk: r
|
|
2301
2300
|
});
|
|
2302
|
-
}, Co = Qe.createContext(null),
|
|
2301
|
+
}, Co = Qe.createContext(null), dl = (e) => {
|
|
2303
2302
|
const {
|
|
2304
2303
|
children: t,
|
|
2305
2304
|
setTitle: r
|
|
@@ -2310,12 +2309,12 @@ const $t = ({
|
|
|
2310
2309
|
},
|
|
2311
2310
|
children: t
|
|
2312
2311
|
});
|
|
2313
|
-
}, Or = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e,
|
|
2314
|
-
const r =
|
|
2312
|
+
}, Or = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ul = (e, t) => {
|
|
2313
|
+
const r = yl(e), i = pl(r), o = gl(i, t);
|
|
2315
2314
|
return [
|
|
2316
|
-
...Object.keys(o).map((l) =>
|
|
2315
|
+
...Object.keys(o).map((l) => fl(l, o[l], t))
|
|
2317
2316
|
].reduce((l, f) => Array.isArray(f[0]) ? l.concat(f) : [...l, f], []);
|
|
2318
|
-
},
|
|
2317
|
+
}, fl = (e, t, r) => {
|
|
2319
2318
|
var s;
|
|
2320
2319
|
const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
|
|
2321
2320
|
if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
|
|
@@ -2337,14 +2336,14 @@ const $t = ({
|
|
|
2337
2336
|
(a) => Or(a)
|
|
2338
2337
|
)
|
|
2339
2338
|
] : [e, "=", Or(t)];
|
|
2340
|
-
},
|
|
2339
|
+
}, ml = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), hl = (e) => {
|
|
2341
2340
|
const t = { ...e };
|
|
2342
2341
|
return Object.keys(t).forEach(
|
|
2343
2342
|
(r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
|
|
2344
2343
|
), t;
|
|
2345
|
-
},
|
|
2346
|
-
const t = { ...
|
|
2347
|
-
return
|
|
2344
|
+
}, pl = (e) => {
|
|
2345
|
+
const t = { ...hl(e) };
|
|
2346
|
+
return ml(e).forEach((i) => {
|
|
2348
2347
|
const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
|
|
2349
2348
|
let f, c;
|
|
2350
2349
|
if (o[0] !== null && (f = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
|
|
@@ -2357,7 +2356,7 @@ const $t = ({
|
|
|
2357
2356
|
}
|
|
2358
2357
|
t[s + "#datetime"] = [f, c];
|
|
2359
2358
|
}), t;
|
|
2360
|
-
},
|
|
2359
|
+
}, gl = (e, t) => {
|
|
2361
2360
|
const r = Object.keys(e).filter((o) => {
|
|
2362
2361
|
const s = t.findById(o);
|
|
2363
2362
|
return s && s.type === "date";
|
|
@@ -2366,18 +2365,18 @@ const $t = ({
|
|
|
2366
2365
|
return r.forEach((o) => {
|
|
2367
2366
|
delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
|
|
2368
2367
|
}), i;
|
|
2369
|
-
},
|
|
2368
|
+
}, yl = (e) => {
|
|
2370
2369
|
const t = { ...e };
|
|
2371
2370
|
return Object.keys(t).forEach(
|
|
2372
2371
|
(r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
|
|
2373
2372
|
), t;
|
|
2374
|
-
},
|
|
2373
|
+
}, vl = (e) => {
|
|
2375
2374
|
const t = {};
|
|
2376
2375
|
return e.forEach((r) => {
|
|
2377
2376
|
Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
|
|
2378
2377
|
}), Object.keys(t);
|
|
2379
2378
|
}, Yt = (e, t) => {
|
|
2380
|
-
const r = [...e], i =
|
|
2379
|
+
const r = [...e], i = vl(e);
|
|
2381
2380
|
return t.forEach((o) => {
|
|
2382
2381
|
Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
|
|
2383
2382
|
}), r;
|
|
@@ -2612,7 +2611,7 @@ const $t = ({
|
|
|
2612
2611
|
totalItems: $,
|
|
2613
2612
|
getAllIds: Ce
|
|
2614
2613
|
};
|
|
2615
|
-
}, rt = Qe.createContext(null),
|
|
2614
|
+
}, rt = Qe.createContext(null), wl = (e) => {
|
|
2616
2615
|
const {
|
|
2617
2616
|
children: t,
|
|
2618
2617
|
currentView: r,
|
|
@@ -2709,7 +2708,7 @@ const $t = ({
|
|
|
2709
2708
|
},
|
|
2710
2709
|
children: t
|
|
2711
2710
|
});
|
|
2712
|
-
}, dt = Qe.createContext(null),
|
|
2711
|
+
}, dt = Qe.createContext(null), bl = (e) => {
|
|
2713
2712
|
const {
|
|
2714
2713
|
children: t,
|
|
2715
2714
|
openAction: r,
|
|
@@ -2742,7 +2741,7 @@ const $t = ({
|
|
|
2742
2741
|
var t;
|
|
2743
2742
|
for (let r = 0; r < e.length; r++)
|
|
2744
2743
|
await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
|
|
2745
|
-
},
|
|
2744
|
+
}, xl = (e, t) => {
|
|
2746
2745
|
const {
|
|
2747
2746
|
children: r,
|
|
2748
2747
|
globalValues: i = {}
|
|
@@ -2840,7 +2839,7 @@ const $t = ({
|
|
|
2840
2839
|
context: F
|
|
2841
2840
|
});
|
|
2842
2841
|
if (L === "ir.actions.act_url")
|
|
2843
|
-
window.open(
|
|
2842
|
+
window.open(qa(E.url, {
|
|
2844
2843
|
...T,
|
|
2845
2844
|
context: F
|
|
2846
2845
|
}), "_blank");
|
|
@@ -2900,7 +2899,7 @@ const $t = ({
|
|
|
2900
2899
|
const {
|
|
2901
2900
|
initialView: k,
|
|
2902
2901
|
views: D
|
|
2903
|
-
} = await
|
|
2902
|
+
} = await Cl({
|
|
2904
2903
|
model: w.res_model,
|
|
2905
2904
|
context: V,
|
|
2906
2905
|
view_mode: w.view_mode,
|
|
@@ -3012,7 +3011,7 @@ const $t = ({
|
|
|
3012
3011
|
})
|
|
3013
3012
|
});
|
|
3014
3013
|
};
|
|
3015
|
-
async function
|
|
3014
|
+
async function Cl({
|
|
3016
3015
|
views: e,
|
|
3017
3016
|
view_mode: t,
|
|
3018
3017
|
model: r,
|
|
@@ -3065,7 +3064,7 @@ async function Sl({
|
|
|
3065
3064
|
initialView: a
|
|
3066
3065
|
};
|
|
3067
3066
|
}
|
|
3068
|
-
const
|
|
3067
|
+
const Sl = bt(xl), Tl = ({
|
|
3069
3068
|
error: e,
|
|
3070
3069
|
className: t
|
|
3071
3070
|
}) => {
|
|
@@ -3089,8 +3088,8 @@ const Tl = bt(Cl), Fl = ({
|
|
|
3089
3088
|
type: i,
|
|
3090
3089
|
banner: !0
|
|
3091
3090
|
});
|
|
3092
|
-
},
|
|
3093
|
-
function
|
|
3091
|
+
}, Fl = 800;
|
|
3092
|
+
function Ol(e, t) {
|
|
3094
3093
|
const {
|
|
3095
3094
|
model: r,
|
|
3096
3095
|
id: i,
|
|
@@ -3117,7 +3116,7 @@ function Il(e, t) {
|
|
|
3117
3116
|
} = e, {
|
|
3118
3117
|
t: x,
|
|
3119
3118
|
lang: T
|
|
3120
|
-
} = W(ye), [F, w] = _(!1), [L, V] = _(), [O, M] = _(), [k] = lt.useForm(), [D, $] = _(), [I, j] = _(), G = W(Co), [U, Y] = _(), [z, N] = _(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), he = (E !== void 0 ? E : U) <
|
|
3119
|
+
} = W(ye), [F, w] = _(!1), [L, V] = _(), [O, M] = _(), [k] = lt.useForm(), [D, $] = _(), [I, j] = _(), G = W(Co), [U, Y] = _(), [z, N] = _(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), he = (E !== void 0 ? E : U) < Fl, Me = W(Le), {
|
|
3121
3120
|
activeId: De,
|
|
3122
3121
|
getPlainValues: Ne
|
|
3123
3122
|
} = Me || {}, Ue = W(rt), {
|
|
@@ -3278,7 +3277,7 @@ function Il(e, t) {
|
|
|
3278
3277
|
fields: re,
|
|
3279
3278
|
arch: oe
|
|
3280
3279
|
}), C && (q = {
|
|
3281
|
-
...
|
|
3280
|
+
...Ua(C),
|
|
3282
3281
|
...q
|
|
3283
3282
|
}), X.current = It(q, re), Nt({
|
|
3284
3283
|
values: q,
|
|
@@ -3455,7 +3454,7 @@ function Il(e, t) {
|
|
|
3455
3454
|
const pe = new jr(K);
|
|
3456
3455
|
pe.parse(q, {
|
|
3457
3456
|
readOnly: d || oe,
|
|
3458
|
-
values:
|
|
3457
|
+
values: La({
|
|
3459
3458
|
...re,
|
|
3460
3459
|
...Fe()
|
|
3461
3460
|
}, K)
|
|
@@ -3471,7 +3470,7 @@ function Il(e, t) {
|
|
|
3471
3470
|
fields: I
|
|
3472
3471
|
}), re = Object.keys(q);
|
|
3473
3472
|
if (re.length !== 0) {
|
|
3474
|
-
if (
|
|
3473
|
+
if (Ya({
|
|
3475
3474
|
changedFields: re,
|
|
3476
3475
|
formOoui: O,
|
|
3477
3476
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
@@ -3482,7 +3481,7 @@ function Il(e, t) {
|
|
|
3482
3481
|
ne.current = oe, f == null || f(oe), ie == null || ie(!0), Zo(re);
|
|
3483
3482
|
}
|
|
3484
3483
|
}
|
|
3485
|
-
}, Jo =
|
|
3484
|
+
}, Jo = _a(wn, 100), Zo = async (K) => {
|
|
3486
3485
|
try {
|
|
3487
3486
|
for (let q = 0; q < K.length; q += 1) {
|
|
3488
3487
|
const re = K[q];
|
|
@@ -3501,7 +3500,7 @@ function Il(e, t) {
|
|
|
3501
3500
|
});
|
|
3502
3501
|
return;
|
|
3503
3502
|
}
|
|
3504
|
-
const re =
|
|
3503
|
+
const re = Ga({
|
|
3505
3504
|
values: {
|
|
3506
3505
|
...qe(I),
|
|
3507
3506
|
context: {
|
|
@@ -3538,12 +3537,12 @@ function Il(e, t) {
|
|
|
3538
3537
|
title: pe,
|
|
3539
3538
|
message: nt
|
|
3540
3539
|
} = oe.warning;
|
|
3541
|
-
le.current = !0,
|
|
3540
|
+
le.current = !0, cl(pe, nt, () => {
|
|
3542
3541
|
le.current = !1;
|
|
3543
3542
|
});
|
|
3544
3543
|
}
|
|
3545
3544
|
if (oe.domain && Object.keys(oe.domain).length > 0) {
|
|
3546
|
-
const pe =
|
|
3545
|
+
const pe = Wa({
|
|
3547
3546
|
fieldsDomain: oe.domain,
|
|
3548
3547
|
fields: I
|
|
3549
3548
|
});
|
|
@@ -3667,7 +3666,7 @@ function Il(e, t) {
|
|
|
3667
3666
|
}
|
|
3668
3667
|
let oe = !1;
|
|
3669
3668
|
try {
|
|
3670
|
-
|
|
3669
|
+
(tt() || de() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await sr({
|
|
3671
3670
|
callOnSubmitSucceed: !1
|
|
3672
3671
|
}), Z.current = !0) : await Qt({
|
|
3673
3672
|
callOnSubmitSucceed: !1
|
|
@@ -3690,7 +3689,7 @@ function Il(e, t) {
|
|
|
3690
3689
|
}
|
|
3691
3690
|
}
|
|
3692
3691
|
const oi = () => !O && !L ? /* @__PURE__ */ n(Re, {}) : !r && !p || !R ? null : /* @__PURE__ */ n(te, {
|
|
3693
|
-
children: /* @__PURE__ */ n(
|
|
3692
|
+
children: /* @__PURE__ */ n(ds, {
|
|
3694
3693
|
getValues: Ke,
|
|
3695
3694
|
getPlainValues: Q,
|
|
3696
3695
|
getFields: ot,
|
|
@@ -3754,14 +3753,14 @@ function Il(e, t) {
|
|
|
3754
3753
|
}) => /* @__PURE__ */ P("div", {
|
|
3755
3754
|
className: "pb-2",
|
|
3756
3755
|
ref: K,
|
|
3757
|
-
children: [L && /* @__PURE__ */ n(
|
|
3756
|
+
children: [L && /* @__PURE__ */ n(Tl, {
|
|
3758
3757
|
className: "mt-5 mb-10",
|
|
3759
3758
|
error: L
|
|
3760
3759
|
}), oi(), a && ii()]
|
|
3761
3760
|
})
|
|
3762
3761
|
}) : null;
|
|
3763
3762
|
}
|
|
3764
|
-
const Zt = bt(
|
|
3763
|
+
const Zt = bt(Ol), Xt = (e) => {
|
|
3765
3764
|
const {
|
|
3766
3765
|
visible: t,
|
|
3767
3766
|
id: r,
|
|
@@ -3837,7 +3836,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3837
3836
|
});
|
|
3838
3837
|
}
|
|
3839
3838
|
const R = c * 0.95;
|
|
3840
|
-
return /* @__PURE__ */ n(
|
|
3839
|
+
return /* @__PURE__ */ n(dl, {
|
|
3841
3840
|
setTitle: u,
|
|
3842
3841
|
children: /* @__PURE__ */ n(Je, {
|
|
3843
3842
|
title: a ? C() : d,
|
|
@@ -3858,14 +3857,14 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3858
3857
|
})
|
|
3859
3858
|
})
|
|
3860
3859
|
});
|
|
3861
|
-
},
|
|
3860
|
+
}, Il = (e) => /* @__PURE__ */ n(we, {
|
|
3862
3861
|
...e,
|
|
3863
3862
|
layout: "vertical",
|
|
3864
3863
|
children: /* @__PURE__ */ n(Pn.RangePicker, {
|
|
3865
3864
|
allowEmpty: [!0, !0],
|
|
3866
3865
|
format: "DD/MM/YYYY"
|
|
3867
3866
|
})
|
|
3868
|
-
}),
|
|
3867
|
+
}), _l = (e) => {
|
|
3869
3868
|
const {
|
|
3870
3869
|
ooui: t,
|
|
3871
3870
|
showLabel: r = !1
|
|
@@ -3918,7 +3917,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3918
3917
|
})]
|
|
3919
3918
|
});
|
|
3920
3919
|
}, {
|
|
3921
|
-
useToken:
|
|
3920
|
+
useToken: Dl
|
|
3922
3921
|
} = Pe, To = (e) => {
|
|
3923
3922
|
const {
|
|
3924
3923
|
ooui: t
|
|
@@ -3929,7 +3928,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3929
3928
|
required: s
|
|
3930
3929
|
} = t, {
|
|
3931
3930
|
token: a
|
|
3932
|
-
} =
|
|
3931
|
+
} = Dl(), l = s && !o ? {
|
|
3933
3932
|
backgroundColor: a.colorPrimaryBg
|
|
3934
3933
|
} : void 0, f = W(Le), {
|
|
3935
3934
|
elementHasLostFocus: c
|
|
@@ -3950,7 +3949,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3950
3949
|
})
|
|
3951
3950
|
});
|
|
3952
3951
|
}, {
|
|
3953
|
-
useToken:
|
|
3952
|
+
useToken: Al
|
|
3954
3953
|
} = Pe, on = (e) => {
|
|
3955
3954
|
const {
|
|
3956
3955
|
ooui: t,
|
|
@@ -3961,7 +3960,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3961
3960
|
required: s
|
|
3962
3961
|
} = t, {
|
|
3963
3962
|
token: a
|
|
3964
|
-
} =
|
|
3963
|
+
} = Al(), l = s && !o ? {
|
|
3965
3964
|
backgroundColor: a.colorPrimaryBg
|
|
3966
3965
|
} : void 0, f = W(Le), {
|
|
3967
3966
|
elementHasLostFocus: c
|
|
@@ -3985,7 +3984,7 @@ const Zt = bt(Il), Xt = (e) => {
|
|
|
3985
3984
|
})
|
|
3986
3985
|
});
|
|
3987
3986
|
};
|
|
3988
|
-
function
|
|
3987
|
+
function Rl(e) {
|
|
3989
3988
|
const {
|
|
3990
3989
|
ooui: t,
|
|
3991
3990
|
showLabel: r
|
|
@@ -4030,11 +4029,11 @@ function Vl(e) {
|
|
|
4030
4029
|
});
|
|
4031
4030
|
}
|
|
4032
4031
|
const {
|
|
4033
|
-
defaultAlgorithm:
|
|
4034
|
-
defaultSeed:
|
|
4035
|
-
} = Pe,
|
|
4036
|
-
Option:
|
|
4037
|
-
} = Ct,
|
|
4032
|
+
defaultAlgorithm: Vl,
|
|
4033
|
+
defaultSeed: kl
|
|
4034
|
+
} = Pe, Ml = Vl(kl), {
|
|
4035
|
+
Option: El
|
|
4036
|
+
} = Ct, $l = (e) => {
|
|
4038
4037
|
const {
|
|
4039
4038
|
ooui: t
|
|
4040
4039
|
} = e, {
|
|
@@ -4044,11 +4043,11 @@ const {
|
|
|
4044
4043
|
required: r,
|
|
4045
4044
|
type: "any",
|
|
4046
4045
|
...e,
|
|
4047
|
-
children: /* @__PURE__ */ n(
|
|
4046
|
+
children: /* @__PURE__ */ n(Ll, {
|
|
4048
4047
|
...e
|
|
4049
4048
|
})
|
|
4050
4049
|
});
|
|
4051
|
-
},
|
|
4050
|
+
}, Ll = (e) => {
|
|
4052
4051
|
const {
|
|
4053
4052
|
ooui: t,
|
|
4054
4053
|
onChange: r,
|
|
@@ -4062,11 +4061,11 @@ const {
|
|
|
4062
4061
|
return i ? !i.includes(m) : !0;
|
|
4063
4062
|
}).map((u) => {
|
|
4064
4063
|
const [m, y] = u;
|
|
4065
|
-
return /* @__PURE__ */ n(
|
|
4064
|
+
return /* @__PURE__ */ n(El, {
|
|
4066
4065
|
value: y,
|
|
4067
4066
|
children: y
|
|
4068
4067
|
}, m);
|
|
4069
|
-
}), c = a && !s ?
|
|
4068
|
+
}), c = a && !s ? Nl : Ct;
|
|
4070
4069
|
function d(u) {
|
|
4071
4070
|
const m = u.map((y) => {
|
|
4072
4071
|
const p = l.find(([h, g]) => y === g);
|
|
@@ -4086,12 +4085,12 @@ const {
|
|
|
4086
4085
|
showArrow: !0,
|
|
4087
4086
|
children: f
|
|
4088
4087
|
});
|
|
4089
|
-
},
|
|
4088
|
+
}, Nl = Et(Ct)`
|
|
4090
4089
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
4091
|
-
background-color: ${
|
|
4090
|
+
background-color: ${Ml.colorPrimaryBg};
|
|
4092
4091
|
}
|
|
4093
4092
|
`;
|
|
4094
|
-
function
|
|
4093
|
+
function Pl(e) {
|
|
4095
4094
|
const {
|
|
4096
4095
|
field: t
|
|
4097
4096
|
} = e;
|
|
@@ -4116,24 +4115,24 @@ function Hl(e) {
|
|
|
4116
4115
|
case ht.progressbar:
|
|
4117
4116
|
case ht.float_time:
|
|
4118
4117
|
case ht.integer:
|
|
4119
|
-
return /* @__PURE__ */ n(
|
|
4118
|
+
return /* @__PURE__ */ n(Rl, {
|
|
4120
4119
|
ooui: t,
|
|
4121
4120
|
showLabel: !0
|
|
4122
4121
|
});
|
|
4123
4122
|
case ht.date:
|
|
4124
|
-
return /* @__PURE__ */ n(
|
|
4123
|
+
return /* @__PURE__ */ n(Il, {
|
|
4125
4124
|
ooui: t,
|
|
4126
4125
|
layout: "vertical",
|
|
4127
4126
|
showLabel: !0
|
|
4128
4127
|
});
|
|
4129
4128
|
case ht.datetime:
|
|
4130
|
-
return /* @__PURE__ */ n(
|
|
4129
|
+
return /* @__PURE__ */ n(_l, {
|
|
4131
4130
|
ooui: t,
|
|
4132
4131
|
layout: "vertical",
|
|
4133
4132
|
showLabel: !0
|
|
4134
4133
|
});
|
|
4135
4134
|
case ht.selection:
|
|
4136
|
-
return /* @__PURE__ */ n(
|
|
4135
|
+
return /* @__PURE__ */ n($l, {
|
|
4137
4136
|
layout: "vertical",
|
|
4138
4137
|
ooui: t,
|
|
4139
4138
|
showLabel: !0
|
|
@@ -4147,7 +4146,7 @@ function Hl(e) {
|
|
|
4147
4146
|
});
|
|
4148
4147
|
}
|
|
4149
4148
|
}
|
|
4150
|
-
function
|
|
4149
|
+
function Hl(e) {
|
|
4151
4150
|
const {
|
|
4152
4151
|
onAdvancedFilterToggle: t,
|
|
4153
4152
|
advancedFilter: r,
|
|
@@ -4188,7 +4187,7 @@ function Bl(e) {
|
|
|
4188
4187
|
})]
|
|
4189
4188
|
});
|
|
4190
4189
|
}
|
|
4191
|
-
function
|
|
4190
|
+
function Bl(e) {
|
|
4192
4191
|
const {
|
|
4193
4192
|
onLimitChange: t
|
|
4194
4193
|
} = e, {
|
|
@@ -4216,7 +4215,7 @@ function jl(e) {
|
|
|
4216
4215
|
});
|
|
4217
4216
|
}
|
|
4218
4217
|
const {
|
|
4219
|
-
useToken:
|
|
4218
|
+
useToken: jl
|
|
4220
4219
|
} = Pe;
|
|
4221
4220
|
function Fo(e) {
|
|
4222
4221
|
const {
|
|
@@ -4238,7 +4237,7 @@ function Fo(e) {
|
|
|
4238
4237
|
showLimitOptions: y = !0
|
|
4239
4238
|
} = e, [p, h] = _(), [g, v] = _(), [C, R] = _(!1), b = ue(), {
|
|
4240
4239
|
token: A
|
|
4241
|
-
} =
|
|
4240
|
+
} = jl(), [S] = lt.useForm();
|
|
4242
4241
|
ge(() => {
|
|
4243
4242
|
S.setFieldsValue(m);
|
|
4244
4243
|
}, [m]);
|
|
@@ -4251,7 +4250,7 @@ function Fo(e) {
|
|
|
4251
4250
|
xs: 24,
|
|
4252
4251
|
className: "p-2",
|
|
4253
4252
|
xl: 6,
|
|
4254
|
-
children: /* @__PURE__ */ n(
|
|
4253
|
+
children: /* @__PURE__ */ n(Pl, {
|
|
4255
4254
|
field: O
|
|
4256
4255
|
})
|
|
4257
4256
|
}, M))
|
|
@@ -4267,7 +4266,7 @@ function Fo(e) {
|
|
|
4267
4266
|
offset: L
|
|
4268
4267
|
} = F;
|
|
4269
4268
|
delete F.offset, delete F.limit;
|
|
4270
|
-
const V =
|
|
4269
|
+
const V = ul(F, (O = b.current) == null ? void 0 : O._advancedSearchContainer);
|
|
4271
4270
|
o({
|
|
4272
4271
|
params: V,
|
|
4273
4272
|
offset: L,
|
|
@@ -4300,9 +4299,9 @@ function Fo(e) {
|
|
|
4300
4299
|
offset: a,
|
|
4301
4300
|
limit: l
|
|
4302
4301
|
},
|
|
4303
|
-
children: [x, C && y && /* @__PURE__ */ n(
|
|
4302
|
+
children: [x, C && y && /* @__PURE__ */ n(Bl, {
|
|
4304
4303
|
onLimitChange: f
|
|
4305
|
-
}), /* @__PURE__ */ n(
|
|
4304
|
+
}), /* @__PURE__ */ n(Hl, {
|
|
4306
4305
|
advancedFilter: C,
|
|
4307
4306
|
onAdvancedFilterToggle: () => {
|
|
4308
4307
|
R(!C);
|
|
@@ -4329,7 +4328,7 @@ const _r = (e, t = "14px -apple-system") => {
|
|
|
4329
4328
|
i.font = t;
|
|
4330
4329
|
const o = i.measureText(e);
|
|
4331
4330
|
return Math.round((o.width + 80) * 1.5);
|
|
4332
|
-
},
|
|
4331
|
+
}, Kl = (e, t, r = 500) => {
|
|
4333
4332
|
if (e.length === 0)
|
|
4334
4333
|
return e;
|
|
4335
4334
|
const i = e.map(
|
|
@@ -4351,7 +4350,7 @@ const _r = (e, t = "14px -apple-system") => {
|
|
|
4351
4350
|
tableWidth: o
|
|
4352
4351
|
};
|
|
4353
4352
|
};
|
|
4354
|
-
function
|
|
4353
|
+
function Yl(e) {
|
|
4355
4354
|
if (!!e)
|
|
4356
4355
|
try {
|
|
4357
4356
|
if (e.includes(":")) {
|
|
@@ -4381,7 +4380,7 @@ function Oo(e) {
|
|
|
4381
4380
|
});
|
|
4382
4381
|
return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
|
|
4383
4382
|
}
|
|
4384
|
-
const
|
|
4383
|
+
const Wl = (e) => /* @__PURE__ */ n(we, {
|
|
4385
4384
|
...e,
|
|
4386
4385
|
children: /* @__PURE__ */ n(Io, {})
|
|
4387
4386
|
}), Io = ({
|
|
@@ -4398,7 +4397,7 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
|
|
|
4398
4397
|
display: "flex",
|
|
4399
4398
|
alignItems: "center"
|
|
4400
4399
|
},
|
|
4401
|
-
children: [/* @__PURE__ */ n(
|
|
4400
|
+
children: [/* @__PURE__ */ n(Ul, {
|
|
4402
4401
|
percent: e
|
|
4403
4402
|
}), /* @__PURE__ */ n("div", {
|
|
4404
4403
|
style: {
|
|
@@ -4408,7 +4407,7 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
|
|
|
4408
4407
|
children: t
|
|
4409
4408
|
})]
|
|
4410
4409
|
});
|
|
4411
|
-
},
|
|
4410
|
+
}, Ul = Et(ci)`
|
|
4412
4411
|
.ant-progress-outer {
|
|
4413
4412
|
margin-right: 0px;
|
|
4414
4413
|
padding-right: 0px;
|
|
@@ -4592,7 +4591,7 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
|
|
|
4592
4591
|
onCancel: () => l(!1)
|
|
4593
4592
|
})]
|
|
4594
4593
|
});
|
|
4595
|
-
},
|
|
4594
|
+
}, Gl = (e) => {
|
|
4596
4595
|
const {
|
|
4597
4596
|
m2oField: t
|
|
4598
4597
|
} = e;
|
|
@@ -4604,7 +4603,7 @@ const Ul = (e) => /* @__PURE__ */ n(we, {
|
|
|
4604
4603
|
model: t.model
|
|
4605
4604
|
})]
|
|
4606
4605
|
}) : /* @__PURE__ */ n(te, {});
|
|
4607
|
-
},
|
|
4606
|
+
}, ql = (e) => {
|
|
4608
4607
|
const {
|
|
4609
4608
|
value: t,
|
|
4610
4609
|
context: r,
|
|
@@ -4847,7 +4846,7 @@ var _o = { exports: {} };
|
|
|
4847
4846
|
}, T.en = S[A], T.Ls = S, T.p = {}, T;
|
|
4848
4847
|
});
|
|
4849
4848
|
})(_o);
|
|
4850
|
-
const at = _o.exports,
|
|
4849
|
+
const at = _o.exports, zl = (e) => {
|
|
4851
4850
|
const {
|
|
4852
4851
|
ooui: t,
|
|
4853
4852
|
value: r
|
|
@@ -4881,7 +4880,7 @@ var Do = { exports: {} };
|
|
|
4881
4880
|
};
|
|
4882
4881
|
});
|
|
4883
4882
|
})(Do);
|
|
4884
|
-
const
|
|
4883
|
+
const Jl = Do.exports;
|
|
4885
4884
|
var Ao = { exports: {} };
|
|
4886
4885
|
(function(e, t) {
|
|
4887
4886
|
(function(r, i) {
|
|
@@ -4959,11 +4958,11 @@ var Ao = { exports: {} };
|
|
|
4959
4958
|
};
|
|
4960
4959
|
});
|
|
4961
4960
|
})(Ao);
|
|
4962
|
-
const
|
|
4963
|
-
useToken:
|
|
4961
|
+
const Zl = Ao.exports, {
|
|
4962
|
+
useToken: Xl
|
|
4964
4963
|
} = Pe;
|
|
4964
|
+
at.extend(Jl);
|
|
4965
4965
|
at.extend(Zl);
|
|
4966
|
-
at.extend(Xl);
|
|
4967
4966
|
const ut = {
|
|
4968
4967
|
date: {
|
|
4969
4968
|
placeholder: "__/__/____",
|
|
@@ -4985,12 +4984,12 @@ const ut = {
|
|
|
4985
4984
|
return /* @__PURE__ */ n(we, {
|
|
4986
4985
|
required: i,
|
|
4987
4986
|
...e,
|
|
4988
|
-
children: /* @__PURE__ */ n(
|
|
4987
|
+
children: /* @__PURE__ */ n(Ql, {
|
|
4989
4988
|
ooui: t,
|
|
4990
4989
|
showTime: r
|
|
4991
4990
|
})
|
|
4992
4991
|
});
|
|
4993
|
-
},
|
|
4992
|
+
}, Ql = (e) => {
|
|
4994
4993
|
const {
|
|
4995
4994
|
value: t,
|
|
4996
4995
|
onChange: r,
|
|
@@ -5002,7 +5001,7 @@ const ut = {
|
|
|
5002
5001
|
required: l
|
|
5003
5002
|
} = i, {
|
|
5004
5003
|
token: f
|
|
5005
|
-
} =
|
|
5004
|
+
} = Xl(), c = l && !a ? {
|
|
5006
5005
|
backgroundColor: f.colorPrimaryBg
|
|
5007
5006
|
} : void 0, d = o ? "time" : "date", u = (p) => {
|
|
5008
5007
|
r == null || r(p);
|
|
@@ -5027,11 +5026,11 @@ const ut = {
|
|
|
5027
5026
|
value: y,
|
|
5028
5027
|
onChange: m
|
|
5029
5028
|
});
|
|
5030
|
-
},
|
|
5029
|
+
}, ec = Et.div`
|
|
5031
5030
|
display: flex;
|
|
5032
5031
|
align-items: center;
|
|
5033
5032
|
justify-content: center;
|
|
5034
|
-
`,
|
|
5033
|
+
`, tc = ({
|
|
5035
5034
|
numberOfVisibleSelectedRows: e,
|
|
5036
5035
|
totalRecords: t,
|
|
5037
5036
|
numberOfTotalRows: r,
|
|
@@ -5063,10 +5062,10 @@ const ut = {
|
|
|
5063
5062
|
},
|
|
5064
5063
|
children: f.allRecordsSelected.replace("{totalRecords}", o.toString()) + " "
|
|
5065
5064
|
});
|
|
5066
|
-
return /* @__PURE__ */ n(
|
|
5065
|
+
return /* @__PURE__ */ n(ec, {
|
|
5067
5066
|
children: o > r ? u : d
|
|
5068
5067
|
});
|
|
5069
|
-
},
|
|
5068
|
+
}, nc = (e) => /* @__PURE__ */ n("div", {
|
|
5070
5069
|
style: {
|
|
5071
5070
|
display: "flex",
|
|
5072
5071
|
justifyContent: "center",
|
|
@@ -5076,18 +5075,18 @@ const ut = {
|
|
|
5076
5075
|
checked: e,
|
|
5077
5076
|
disabled: !0
|
|
5078
5077
|
})
|
|
5079
|
-
}),
|
|
5078
|
+
}), rc = (e) => /* @__PURE__ */ n(Gl, {
|
|
5080
5079
|
m2oField: e
|
|
5081
|
-
}),
|
|
5080
|
+
}), oc = (e) => /* @__PURE__ */ n(Xn, {
|
|
5082
5081
|
content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
|
|
5083
|
-
}),
|
|
5082
|
+
}), ic = (e) => {
|
|
5084
5083
|
if (!e || e && e.length === 0)
|
|
5085
5084
|
return /* @__PURE__ */ n(te, {});
|
|
5086
5085
|
const t = at(e, ut.date.dateInternalFormat).format(ut.date.dateDisplayFormat);
|
|
5087
5086
|
return /* @__PURE__ */ n(te, {
|
|
5088
5087
|
children: t
|
|
5089
5088
|
});
|
|
5090
|
-
},
|
|
5089
|
+
}, sc = (e) => {
|
|
5091
5090
|
if (!e || e && e.length === 0)
|
|
5092
5091
|
return /* @__PURE__ */ n(te, {});
|
|
5093
5092
|
const t = at(e, ut.time.dateInternalFormat).format(ut.time.dateDisplayFormat);
|
|
@@ -5099,33 +5098,33 @@ const ut = {
|
|
|
5099
5098
|
return /* @__PURE__ */ n(te, {
|
|
5100
5099
|
children: `( ${t} )`
|
|
5101
5100
|
});
|
|
5102
|
-
},
|
|
5101
|
+
}, ac = (e) => /* @__PURE__ */ n(Io, {
|
|
5103
5102
|
value: e
|
|
5104
|
-
}),
|
|
5103
|
+
}), lc = (e) => /* @__PURE__ */ n(te, {
|
|
5105
5104
|
children: Oo(e)
|
|
5106
5105
|
}), Rr = (e) => /* @__PURE__ */ n("div", {
|
|
5107
5106
|
style: {
|
|
5108
5107
|
textAlign: "right"
|
|
5109
5108
|
},
|
|
5110
5109
|
children: e
|
|
5111
|
-
}),
|
|
5110
|
+
}), cc = (e) => /* @__PURE__ */ n("img", {
|
|
5112
5111
|
src: `data:image/*;base64,${e}`,
|
|
5113
5112
|
style: {
|
|
5114
5113
|
maxWidth: "50px",
|
|
5115
5114
|
padding: "5px"
|
|
5116
5115
|
}
|
|
5117
|
-
}),
|
|
5116
|
+
}), dc = (e, t, r, i) => /* @__PURE__ */ n(bo, {
|
|
5118
5117
|
ooui: r,
|
|
5119
5118
|
value: e
|
|
5120
|
-
}),
|
|
5119
|
+
}), uc = (e, t, r, i) => /* @__PURE__ */ n(te, {
|
|
5121
5120
|
children: r.selectionValues.get(e)
|
|
5122
|
-
}),
|
|
5123
|
-
children: /* @__PURE__ */ n(
|
|
5121
|
+
}), fc = (e, t, r, i) => /* @__PURE__ */ n(te, {
|
|
5122
|
+
children: /* @__PURE__ */ n(ql, {
|
|
5124
5123
|
value: e,
|
|
5125
5124
|
selectionValues: r.selectionValues,
|
|
5126
5125
|
context: i
|
|
5127
5126
|
})
|
|
5128
|
-
}),
|
|
5127
|
+
}), mc = (e, t, r, i) => /* @__PURE__ */ n(zl, {
|
|
5129
5128
|
ooui: r,
|
|
5130
5129
|
value: e
|
|
5131
5130
|
});
|
|
@@ -5161,23 +5160,23 @@ function gn(e) {
|
|
|
5161
5160
|
} = (C ? O : {}) || {};
|
|
5162
5161
|
ge(() => {
|
|
5163
5162
|
w.current = _t(o);
|
|
5164
|
-
const N =
|
|
5165
|
-
boolean:
|
|
5166
|
-
many2one:
|
|
5167
|
-
text:
|
|
5163
|
+
const N = Ma(w.current, {
|
|
5164
|
+
boolean: nc,
|
|
5165
|
+
many2one: rc,
|
|
5166
|
+
text: oc,
|
|
5168
5167
|
one2many: Ar,
|
|
5169
5168
|
many2many: Ar,
|
|
5170
|
-
progressbar:
|
|
5171
|
-
float_time:
|
|
5172
|
-
image:
|
|
5169
|
+
progressbar: ac,
|
|
5170
|
+
float_time: lc,
|
|
5171
|
+
image: cc,
|
|
5173
5172
|
integer: Rr,
|
|
5174
5173
|
float: Rr,
|
|
5175
|
-
reference:
|
|
5176
|
-
tag:
|
|
5177
|
-
selection:
|
|
5178
|
-
date:
|
|
5179
|
-
datetime:
|
|
5180
|
-
avatar:
|
|
5174
|
+
reference: fc,
|
|
5175
|
+
tag: dc,
|
|
5176
|
+
selection: uc,
|
|
5177
|
+
date: ic,
|
|
5178
|
+
datetime: sc,
|
|
5179
|
+
avatar: mc
|
|
5181
5180
|
}, R);
|
|
5182
5181
|
T(N), w.current.string && M !== w.current.string && (k == null || k(w.current.string));
|
|
5183
5182
|
}, [o]), ge(() => {
|
|
@@ -5207,7 +5206,7 @@ function gn(e) {
|
|
|
5207
5206
|
}), A && /* @__PURE__ */ n(ce, {
|
|
5208
5207
|
span: 8,
|
|
5209
5208
|
className: "text-center",
|
|
5210
|
-
children: /* @__PURE__ */ n(
|
|
5209
|
+
children: /* @__PURE__ */ n(tc, {
|
|
5211
5210
|
numberOfVisibleSelectedRows: N,
|
|
5212
5211
|
numberOfRealSelectedRows: ((B = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : B.length) || 0,
|
|
5213
5212
|
numberOfTotalRows: S.length,
|
|
@@ -5240,7 +5239,7 @@ function gn(e) {
|
|
|
5240
5239
|
}
|
|
5241
5240
|
let U, Y = u;
|
|
5242
5241
|
if (w.current !== null) {
|
|
5243
|
-
U =
|
|
5242
|
+
U = Kl(x, S, 600);
|
|
5244
5243
|
const B = w.current;
|
|
5245
5244
|
u && B.columns.some((X) => X.sum !== void 0) && (Y = u - 30);
|
|
5246
5245
|
}
|
|
@@ -5263,7 +5262,7 @@ function gn(e) {
|
|
|
5263
5262
|
color: m[N.id]
|
|
5264
5263
|
};
|
|
5265
5264
|
},
|
|
5266
|
-
onRowStatus:
|
|
5265
|
+
onRowStatus: Ea(y) ? (N) => {
|
|
5267
5266
|
if (y[N.id])
|
|
5268
5267
|
return /* @__PURE__ */ n(di, {
|
|
5269
5268
|
color: y[N.id]
|
|
@@ -5285,7 +5284,7 @@ function gn(e) {
|
|
|
5285
5284
|
}), G()]
|
|
5286
5285
|
});
|
|
5287
5286
|
}
|
|
5288
|
-
function
|
|
5287
|
+
function hc(e, t) {
|
|
5289
5288
|
const {
|
|
5290
5289
|
model: r,
|
|
5291
5290
|
formView: i,
|
|
@@ -5508,7 +5507,7 @@ function pc(e, t) {
|
|
|
5508
5507
|
children: y ? /* @__PURE__ */ n(Re, {}) : tt()
|
|
5509
5508
|
});
|
|
5510
5509
|
}
|
|
5511
|
-
const Vo = bt(
|
|
5510
|
+
const Vo = bt(hc), ko = (e) => {
|
|
5512
5511
|
const {
|
|
5513
5512
|
visible: t,
|
|
5514
5513
|
onCloseModal: r,
|
|
@@ -5597,18 +5596,18 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
5597
5596
|
})]
|
|
5598
5597
|
});
|
|
5599
5598
|
}, {
|
|
5600
|
-
error:
|
|
5599
|
+
error: pc
|
|
5601
5600
|
} = Je, sn = (e) => {
|
|
5602
|
-
|
|
5601
|
+
pc({
|
|
5603
5602
|
title: "Error",
|
|
5604
5603
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
5605
5604
|
centered: !0,
|
|
5606
5605
|
content: e
|
|
5607
5606
|
});
|
|
5608
5607
|
}, {
|
|
5609
|
-
defaultAlgorithm:
|
|
5610
|
-
defaultSeed:
|
|
5611
|
-
} = Pe, Mo = yc
|
|
5608
|
+
defaultAlgorithm: gc,
|
|
5609
|
+
defaultSeed: yc
|
|
5610
|
+
} = Pe, Mo = gc(yc), vc = (e) => {
|
|
5612
5611
|
const {
|
|
5613
5612
|
ooui: t
|
|
5614
5613
|
} = e, {
|
|
@@ -5743,7 +5742,7 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
5743
5742
|
wrap: !1,
|
|
5744
5743
|
children: [/* @__PURE__ */ n(ce, {
|
|
5745
5744
|
flex: "auto",
|
|
5746
|
-
children: /* @__PURE__ */ n(o && !a ?
|
|
5745
|
+
children: /* @__PURE__ */ n(o && !a ? wc : it, {
|
|
5747
5746
|
type: "text",
|
|
5748
5747
|
value: b,
|
|
5749
5748
|
disabled: a,
|
|
@@ -5827,11 +5826,11 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
5827
5826
|
readOnly: a
|
|
5828
5827
|
})]
|
|
5829
5828
|
});
|
|
5830
|
-
},
|
|
5829
|
+
}, wc = Et(it)`
|
|
5831
5830
|
.ant-input {
|
|
5832
5831
|
background-color: ${Mo.colorPrimaryBg};
|
|
5833
5832
|
}
|
|
5834
|
-
`, $o = Qe.createContext(null),
|
|
5833
|
+
`, $o = Qe.createContext(null), bc = ({
|
|
5835
5834
|
children: e,
|
|
5836
5835
|
initialView: t
|
|
5837
5836
|
}) => {
|
|
@@ -5849,7 +5848,7 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
5849
5848
|
});
|
|
5850
5849
|
}, {
|
|
5851
5850
|
getValueForOperator: Vr
|
|
5852
|
-
} = Yr, an = 0.7, ln = 30,
|
|
5851
|
+
} = Yr, an = 0.7, ln = 30, xc = (e) => {
|
|
5853
5852
|
const {
|
|
5854
5853
|
model: t,
|
|
5855
5854
|
domain: r,
|
|
@@ -5991,7 +5990,7 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
5991
5990
|
},
|
|
5992
5991
|
children: ({
|
|
5993
5992
|
measureRef: D
|
|
5994
|
-
}) => a ? /* @__PURE__ */ n(
|
|
5993
|
+
}) => a ? /* @__PURE__ */ n(Sc, {
|
|
5995
5994
|
value: p,
|
|
5996
5995
|
total: C,
|
|
5997
5996
|
percent: g,
|
|
@@ -6001,7 +6000,7 @@ const Vo = bt(pc), ko = (e) => {
|
|
|
6001
6000
|
color: x,
|
|
6002
6001
|
icon: F,
|
|
6003
6002
|
suffix: f
|
|
6004
|
-
}) : /* @__PURE__ */ n(
|
|
6003
|
+
}) : /* @__PURE__ */ n(Cc, {
|
|
6005
6004
|
value: p,
|
|
6006
6005
|
total: C,
|
|
6007
6006
|
measureRef: D,
|
|
@@ -6017,7 +6016,7 @@ function Lo(e, t) {
|
|
|
6017
6016
|
const i = document.createElement("canvas").getContext("2d");
|
|
6018
6017
|
return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
|
|
6019
6018
|
}
|
|
6020
|
-
function
|
|
6019
|
+
function Cc({
|
|
6021
6020
|
measureRef: e,
|
|
6022
6021
|
width: t,
|
|
6023
6022
|
height: r,
|
|
@@ -6064,7 +6063,7 @@ function Sc({
|
|
|
6064
6063
|
})
|
|
6065
6064
|
});
|
|
6066
6065
|
}
|
|
6067
|
-
function
|
|
6066
|
+
function Sc({
|
|
6068
6067
|
measureRef: e,
|
|
6069
6068
|
height: t,
|
|
6070
6069
|
width: r,
|
|
@@ -6142,22 +6141,22 @@ const In = (e) => (t) => {
|
|
|
6142
6141
|
});
|
|
6143
6142
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
6144
6143
|
}, en = (e) => {
|
|
6145
|
-
if (typeof e == "string" &&
|
|
6144
|
+
if (typeof e == "string" && Tc(e))
|
|
6146
6145
|
return parseFloat(e).toLocaleString("es-ES", {
|
|
6147
6146
|
useGrouping: !0
|
|
6148
6147
|
});
|
|
6149
|
-
if (
|
|
6148
|
+
if (Fc(e))
|
|
6150
6149
|
return e.toLocaleString("es-ES", {
|
|
6151
6150
|
useGrouping: !0
|
|
6152
6151
|
});
|
|
6153
|
-
if (
|
|
6154
|
-
const t =
|
|
6152
|
+
if (Oc(e)) {
|
|
6153
|
+
const t = Ic(e);
|
|
6155
6154
|
return t === null ? e : at(e, cn.input[t]).format(
|
|
6156
6155
|
cn.output[t]
|
|
6157
6156
|
);
|
|
6158
6157
|
} else
|
|
6159
6158
|
return e;
|
|
6160
|
-
},
|
|
6159
|
+
}, Tc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Fc = (e) => typeof e == "number" && !isNaN(e), kr = {
|
|
6161
6160
|
default: {
|
|
6162
6161
|
padding: "auto",
|
|
6163
6162
|
xAxis: {
|
|
@@ -6239,7 +6238,7 @@ const In = (e) => (t) => {
|
|
|
6239
6238
|
}
|
|
6240
6239
|
}
|
|
6241
6240
|
};
|
|
6242
|
-
function
|
|
6241
|
+
function Oc(e) {
|
|
6243
6242
|
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
6244
6243
|
}
|
|
6245
6244
|
const cn = {
|
|
@@ -6258,7 +6257,7 @@ const cn = {
|
|
|
6258
6257
|
years: "YYYY"
|
|
6259
6258
|
}
|
|
6260
6259
|
};
|
|
6261
|
-
function
|
|
6260
|
+
function Ic(e) {
|
|
6262
6261
|
for (const t in cn.input)
|
|
6263
6262
|
if (at(
|
|
6264
6263
|
e,
|
|
@@ -6269,10 +6268,10 @@ function _c(e) {
|
|
|
6269
6268
|
return null;
|
|
6270
6269
|
}
|
|
6271
6270
|
const {
|
|
6272
|
-
processGraphData:
|
|
6271
|
+
processGraphData: _c
|
|
6273
6272
|
} = Yr, {
|
|
6274
|
-
getFieldsToRetrieve:
|
|
6275
|
-
} = wi,
|
|
6273
|
+
getFieldsToRetrieve: Dc
|
|
6274
|
+
} = wi, Ac = (e) => {
|
|
6276
6275
|
const {
|
|
6277
6276
|
model: t,
|
|
6278
6277
|
domain: r = [],
|
|
@@ -6287,7 +6286,7 @@ const {
|
|
|
6287
6286
|
c(!0), u(void 0);
|
|
6288
6287
|
const C = jn(o);
|
|
6289
6288
|
v(C.type || "line");
|
|
6290
|
-
const R =
|
|
6289
|
+
const R = Dc({
|
|
6291
6290
|
ooui: C
|
|
6292
6291
|
});
|
|
6293
6292
|
let b, A;
|
|
@@ -6295,7 +6294,7 @@ const {
|
|
|
6295
6294
|
({
|
|
6296
6295
|
values: b,
|
|
6297
6296
|
fields: A
|
|
6298
|
-
} = await
|
|
6297
|
+
} = await Vc({
|
|
6299
6298
|
model: t,
|
|
6300
6299
|
domain: r,
|
|
6301
6300
|
context: i,
|
|
@@ -6314,7 +6313,7 @@ const {
|
|
|
6314
6313
|
return;
|
|
6315
6314
|
}
|
|
6316
6315
|
h(b);
|
|
6317
|
-
const S =
|
|
6316
|
+
const S = _c({
|
|
6318
6317
|
ooui: C,
|
|
6319
6318
|
values: b,
|
|
6320
6319
|
fields: A,
|
|
@@ -6337,7 +6336,7 @@ const {
|
|
|
6337
6336
|
evaluatedEntries: p
|
|
6338
6337
|
};
|
|
6339
6338
|
};
|
|
6340
|
-
async function
|
|
6339
|
+
async function Rc({
|
|
6341
6340
|
model: e,
|
|
6342
6341
|
context: t,
|
|
6343
6342
|
fields: r
|
|
@@ -6348,7 +6347,7 @@ async function Vc({
|
|
|
6348
6347
|
fields: r
|
|
6349
6348
|
});
|
|
6350
6349
|
}
|
|
6351
|
-
async function
|
|
6350
|
+
async function Vc({
|
|
6352
6351
|
fields: e,
|
|
6353
6352
|
model: t,
|
|
6354
6353
|
domain: r,
|
|
@@ -6357,7 +6356,7 @@ async function kc({
|
|
|
6357
6356
|
limit: s,
|
|
6358
6357
|
manualIds: a
|
|
6359
6358
|
}) {
|
|
6360
|
-
const l = await
|
|
6359
|
+
const l = await Rc({
|
|
6361
6360
|
model: t,
|
|
6362
6361
|
context: i,
|
|
6363
6362
|
fields: e
|
|
@@ -6386,11 +6385,11 @@ async function kc({
|
|
|
6386
6385
|
fields: l
|
|
6387
6386
|
};
|
|
6388
6387
|
}
|
|
6389
|
-
const
|
|
6388
|
+
const kc = {
|
|
6390
6389
|
line: Ei,
|
|
6391
6390
|
bar: $i,
|
|
6392
6391
|
pie: Li
|
|
6393
|
-
},
|
|
6392
|
+
}, Mc = (e) => {
|
|
6394
6393
|
var v;
|
|
6395
6394
|
const {
|
|
6396
6395
|
model: t,
|
|
@@ -6407,7 +6406,7 @@ const Mc = {
|
|
|
6407
6406
|
values: d,
|
|
6408
6407
|
type: u,
|
|
6409
6408
|
evaluatedEntries: m
|
|
6410
|
-
} =
|
|
6409
|
+
} = Ac({
|
|
6411
6410
|
model: t,
|
|
6412
6411
|
xml: o,
|
|
6413
6412
|
limit: s,
|
|
@@ -6433,7 +6432,7 @@ const Mc = {
|
|
|
6433
6432
|
data: y,
|
|
6434
6433
|
isGroup: p,
|
|
6435
6434
|
isStack: h
|
|
6436
|
-
} = d, g =
|
|
6435
|
+
} = d, g = kc[u];
|
|
6437
6436
|
return g ? /* @__PURE__ */ P("div", {
|
|
6438
6437
|
style: {
|
|
6439
6438
|
padding: "1rem"
|
|
@@ -6446,7 +6445,7 @@ const Mc = {
|
|
|
6446
6445
|
useGrouping: !0
|
|
6447
6446
|
})}`
|
|
6448
6447
|
}), /* @__PURE__ */ n(g, {
|
|
6449
|
-
|
|
6448
|
+
...Ec({
|
|
6450
6449
|
type: u,
|
|
6451
6450
|
data: y,
|
|
6452
6451
|
isGroup: p,
|
|
@@ -6457,7 +6456,7 @@ const Mc = {
|
|
|
6457
6456
|
children: `Unknown graph type: ${u}`
|
|
6458
6457
|
});
|
|
6459
6458
|
};
|
|
6460
|
-
function
|
|
6459
|
+
function Ec(e) {
|
|
6461
6460
|
const {
|
|
6462
6461
|
type: t,
|
|
6463
6462
|
data: r,
|
|
@@ -6467,7 +6466,7 @@ function $c(e) {
|
|
|
6467
6466
|
let s = kr[t];
|
|
6468
6467
|
return s || (s = kr.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
|
|
6469
6468
|
}
|
|
6470
|
-
const
|
|
6469
|
+
const $c = (e, t) => {
|
|
6471
6470
|
const {
|
|
6472
6471
|
view_id: r,
|
|
6473
6472
|
model: i,
|
|
@@ -6529,7 +6528,7 @@ const Lc = (e, t) => {
|
|
|
6529
6528
|
field: v.field,
|
|
6530
6529
|
operator: v.operator
|
|
6531
6530
|
} : {};
|
|
6532
|
-
return /* @__PURE__ */ n(
|
|
6531
|
+
return /* @__PURE__ */ n(xc, {
|
|
6533
6532
|
showPercent: v.showPercent,
|
|
6534
6533
|
totalDomain: v.totalDomain,
|
|
6535
6534
|
colorCondition: v.color,
|
|
@@ -6545,7 +6544,7 @@ const Lc = (e, t) => {
|
|
|
6545
6544
|
case "line":
|
|
6546
6545
|
case "bar":
|
|
6547
6546
|
case "pie":
|
|
6548
|
-
return /* @__PURE__ */ n(
|
|
6547
|
+
return /* @__PURE__ */ n(Mc, {
|
|
6549
6548
|
model: i,
|
|
6550
6549
|
context: o,
|
|
6551
6550
|
domain: s,
|
|
@@ -6558,13 +6557,13 @@ const Lc = (e, t) => {
|
|
|
6558
6557
|
children: `Graph ${d.type} not implemented`
|
|
6559
6558
|
});
|
|
6560
6559
|
}
|
|
6561
|
-
}, yn = bt(
|
|
6562
|
-
confirm:
|
|
6563
|
-
} = Je,
|
|
6560
|
+
}, yn = bt($c), {
|
|
6561
|
+
confirm: Lc
|
|
6562
|
+
} = Je, Nc = ({
|
|
6564
6563
|
onOk: e,
|
|
6565
6564
|
lang: t
|
|
6566
6565
|
}) => {
|
|
6567
|
-
|
|
6566
|
+
Lc({
|
|
6568
6567
|
title: Oe("removeItems", t),
|
|
6569
6568
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
6570
6569
|
centered: !0,
|
|
@@ -6574,12 +6573,12 @@ const Lc = (e, t) => {
|
|
|
6574
6573
|
cancelText: Oe("cancel", t)
|
|
6575
6574
|
});
|
|
6576
6575
|
}, {
|
|
6577
|
-
confirm:
|
|
6578
|
-
} = Je,
|
|
6576
|
+
confirm: Pc
|
|
6577
|
+
} = Je, Hc = ({
|
|
6579
6578
|
onOk: e,
|
|
6580
6579
|
lang: t
|
|
6581
6580
|
}) => {
|
|
6582
|
-
|
|
6581
|
+
Pc({
|
|
6583
6582
|
title: Oe("unlinkItems", t),
|
|
6584
6583
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
6585
6584
|
centered: !0,
|
|
@@ -6589,8 +6588,8 @@ const Lc = (e, t) => {
|
|
|
6589
6588
|
cancelText: Oe("cancel", t)
|
|
6590
6589
|
});
|
|
6591
6590
|
}, {
|
|
6592
|
-
useToken:
|
|
6593
|
-
} = Pe,
|
|
6591
|
+
useToken: Bc
|
|
6592
|
+
} = Pe, jc = (e) => {
|
|
6594
6593
|
const {
|
|
6595
6594
|
title: t,
|
|
6596
6595
|
readOnly: r,
|
|
@@ -6609,7 +6608,7 @@ const Lc = (e, t) => {
|
|
|
6609
6608
|
showToggleButton: h
|
|
6610
6609
|
} = e, {
|
|
6611
6610
|
token: g
|
|
6612
|
-
} =
|
|
6611
|
+
} = Bc();
|
|
6613
6612
|
function v() {
|
|
6614
6613
|
return /* @__PURE__ */ n("div", {
|
|
6615
6614
|
className: "inline-block w-3"
|
|
@@ -6680,12 +6679,12 @@ const Lc = (e, t) => {
|
|
|
6680
6679
|
})]
|
|
6681
6680
|
})]
|
|
6682
6681
|
});
|
|
6683
|
-
},
|
|
6682
|
+
}, Kc = {
|
|
6684
6683
|
form: jr,
|
|
6685
6684
|
tree: Hr,
|
|
6686
6685
|
graph: yn
|
|
6687
6686
|
};
|
|
6688
|
-
function
|
|
6687
|
+
function Yc(e) {
|
|
6689
6688
|
const t = e.map((i) => i.id);
|
|
6690
6689
|
return e.filter((i, o) => {
|
|
6691
6690
|
const {
|
|
@@ -6694,7 +6693,7 @@ function Wc(e) {
|
|
|
6694
6693
|
return !t.includes(s, o + 1);
|
|
6695
6694
|
});
|
|
6696
6695
|
}
|
|
6697
|
-
const
|
|
6696
|
+
const Wc = (e) => {
|
|
6698
6697
|
var Ke;
|
|
6699
6698
|
const {
|
|
6700
6699
|
value: t,
|
|
@@ -6742,7 +6741,7 @@ const Uc = (e) => {
|
|
|
6742
6741
|
var ae, Te;
|
|
6743
6742
|
r == null || r({
|
|
6744
6743
|
fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Te = o.get("tree")) == null ? void 0 : Te.fields),
|
|
6745
|
-
items:
|
|
6744
|
+
items: Yc(Q)
|
|
6746
6745
|
});
|
|
6747
6746
|
}, Me = async () => {
|
|
6748
6747
|
await De(), f > J.length - 1 && f !== 0 && c(0);
|
|
@@ -6834,7 +6833,7 @@ const Uc = (e) => {
|
|
|
6834
6833
|
}) : Q();
|
|
6835
6834
|
}, $e = () => {
|
|
6836
6835
|
if (ne) {
|
|
6837
|
-
|
|
6836
|
+
Hc({
|
|
6838
6837
|
lang: g,
|
|
6839
6838
|
onOk: () => {
|
|
6840
6839
|
a === "form" ? Se() : Ve();
|
|
@@ -6842,7 +6841,7 @@ const Uc = (e) => {
|
|
|
6842
6841
|
});
|
|
6843
6842
|
return;
|
|
6844
6843
|
}
|
|
6845
|
-
|
|
6844
|
+
Nc({
|
|
6846
6845
|
lang: g,
|
|
6847
6846
|
onOk: () => {
|
|
6848
6847
|
a === "form" ? Se() : Ve();
|
|
@@ -6923,7 +6922,7 @@ const Uc = (e) => {
|
|
|
6923
6922
|
}
|
|
6924
6923
|
} : _e);
|
|
6925
6924
|
else {
|
|
6926
|
-
const _e =
|
|
6925
|
+
const _e = $a(s);
|
|
6927
6926
|
Fe = s.concat({
|
|
6928
6927
|
id: _e,
|
|
6929
6928
|
operation: "pendingCreate",
|
|
@@ -6983,7 +6982,7 @@ const Uc = (e) => {
|
|
|
6983
6982
|
}
|
|
6984
6983
|
};
|
|
6985
6984
|
function Ge() {
|
|
6986
|
-
const Q =
|
|
6985
|
+
const Q = Kc[a];
|
|
6987
6986
|
if (a === "graph")
|
|
6988
6987
|
return jn(o.get("graph").arch).string;
|
|
6989
6988
|
{
|
|
@@ -7075,10 +7074,10 @@ const Uc = (e) => {
|
|
|
7075
7074
|
});
|
|
7076
7075
|
const ot = k;
|
|
7077
7076
|
return b ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(te, {
|
|
7078
|
-
children: [/* @__PURE__ */ n(
|
|
7077
|
+
children: [/* @__PURE__ */ n(jc, {
|
|
7079
7078
|
mode: a,
|
|
7080
7079
|
title: Ge(),
|
|
7081
|
-
readOnly: z
|
|
7080
|
+
readOnly: z,
|
|
7082
7081
|
isMany2Many: ne,
|
|
7083
7082
|
formHasChanges: C,
|
|
7084
7083
|
totalItems: J.length,
|
|
@@ -7126,7 +7125,7 @@ const Uc = (e) => {
|
|
|
7126
7125
|
}
|
|
7127
7126
|
})]
|
|
7128
7127
|
});
|
|
7129
|
-
},
|
|
7128
|
+
}, Uc = (e) => {
|
|
7130
7129
|
const {
|
|
7131
7130
|
ooui: t
|
|
7132
7131
|
} = e, {
|
|
@@ -7174,7 +7173,7 @@ const Uc = (e) => {
|
|
|
7174
7173
|
message: d,
|
|
7175
7174
|
type: "error",
|
|
7176
7175
|
banner: !0
|
|
7177
|
-
}) : /* @__PURE__ */ n(
|
|
7176
|
+
}) : /* @__PURE__ */ n(bc, {
|
|
7178
7177
|
initialView: l,
|
|
7179
7178
|
children: /* @__PURE__ */ n(we, {
|
|
7180
7179
|
required: s,
|
|
@@ -7190,15 +7189,15 @@ const Uc = (e) => {
|
|
|
7190
7189
|
throw new Error();
|
|
7191
7190
|
},
|
|
7192
7191
|
...e,
|
|
7193
|
-
children: /* @__PURE__ */ n(
|
|
7192
|
+
children: /* @__PURE__ */ n(Wc, {
|
|
7194
7193
|
ooui: t,
|
|
7195
7194
|
views: m
|
|
7196
7195
|
})
|
|
7197
7196
|
})
|
|
7198
7197
|
});
|
|
7199
7198
|
}, {
|
|
7200
|
-
useToken:
|
|
7201
|
-
} = Pe,
|
|
7199
|
+
useToken: Gc
|
|
7200
|
+
} = Pe, qc = (e) => {
|
|
7202
7201
|
const {
|
|
7203
7202
|
ooui: t
|
|
7204
7203
|
} = e, {
|
|
@@ -7208,11 +7207,11 @@ const Uc = (e) => {
|
|
|
7208
7207
|
required: r,
|
|
7209
7208
|
type: "number",
|
|
7210
7209
|
...e,
|
|
7211
|
-
children: /* @__PURE__ */ n(
|
|
7210
|
+
children: /* @__PURE__ */ n(zc, {
|
|
7212
7211
|
ooui: t
|
|
7213
7212
|
})
|
|
7214
7213
|
});
|
|
7215
|
-
},
|
|
7214
|
+
}, zc = (e) => {
|
|
7216
7215
|
const {
|
|
7217
7216
|
ooui: t,
|
|
7218
7217
|
value: r,
|
|
@@ -7223,7 +7222,7 @@ const Uc = (e) => {
|
|
|
7223
7222
|
required: a
|
|
7224
7223
|
} = t, {
|
|
7225
7224
|
token: l
|
|
7226
|
-
} =
|
|
7225
|
+
} = Gc(), f = a && !s ? {
|
|
7227
7226
|
backgroundColor: l.colorPrimaryBg
|
|
7228
7227
|
} : void 0, c = ue(), [d, u] = _(), m = W(Le), {
|
|
7229
7228
|
elementHasLostFocus: y
|
|
@@ -7238,7 +7237,7 @@ const Uc = (e) => {
|
|
|
7238
7237
|
c.current = v.target.value, u(v.target.value);
|
|
7239
7238
|
}
|
|
7240
7239
|
async function g() {
|
|
7241
|
-
p(
|
|
7240
|
+
p(Yl(d)), await new Promise((v) => setTimeout(v, 300)), y == null || y();
|
|
7242
7241
|
}
|
|
7243
7242
|
return /* @__PURE__ */ n(it, {
|
|
7244
7243
|
value: d,
|
|
@@ -7272,9 +7271,9 @@ function No(e) {
|
|
|
7272
7271
|
});
|
|
7273
7272
|
}
|
|
7274
7273
|
const {
|
|
7275
|
-
TabPane:
|
|
7274
|
+
TabPane: Jc
|
|
7276
7275
|
} = Pr;
|
|
7277
|
-
function
|
|
7276
|
+
function Zc(e) {
|
|
7278
7277
|
const {
|
|
7279
7278
|
ooui: t,
|
|
7280
7279
|
responsiveBehaviour: r
|
|
@@ -7288,7 +7287,7 @@ function Xc(e) {
|
|
|
7288
7287
|
return /* @__PURE__ */ n(Pr, {
|
|
7289
7288
|
defaultActiveKey: "1",
|
|
7290
7289
|
tabPosition: t.tabPosition,
|
|
7291
|
-
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
|
|
7290
|
+
children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Jc, {
|
|
7292
7291
|
tab: /* @__PURE__ */ P(te, {
|
|
7293
7292
|
children: [o(s.icon), " ", s.label]
|
|
7294
7293
|
}),
|
|
@@ -7301,10 +7300,10 @@ function Xc(e) {
|
|
|
7301
7300
|
});
|
|
7302
7301
|
}
|
|
7303
7302
|
const {
|
|
7304
|
-
useToken:
|
|
7303
|
+
useToken: Xc
|
|
7305
7304
|
} = Pe, {
|
|
7306
7305
|
TextArea: En
|
|
7307
|
-
} = it,
|
|
7306
|
+
} = it, Qc = (e) => {
|
|
7308
7307
|
const {
|
|
7309
7308
|
ooui: t
|
|
7310
7309
|
} = e, {
|
|
@@ -7315,7 +7314,7 @@ const {
|
|
|
7315
7314
|
translatable: a
|
|
7316
7315
|
} = t, {
|
|
7317
7316
|
token: l
|
|
7318
|
-
} =
|
|
7317
|
+
} = Xc(), f = o && !i ? {
|
|
7319
7318
|
backgroundColor: l.colorPrimaryBg
|
|
7320
7319
|
} : void 0, c = W(Le), {
|
|
7321
7320
|
elementHasLostFocus: d
|
|
@@ -7323,7 +7322,7 @@ const {
|
|
|
7323
7322
|
return /* @__PURE__ */ n(we, {
|
|
7324
7323
|
required: o,
|
|
7325
7324
|
...e,
|
|
7326
|
-
children: a ? /* @__PURE__ */ n(
|
|
7325
|
+
children: a ? /* @__PURE__ */ n(ed, {
|
|
7327
7326
|
field: r,
|
|
7328
7327
|
height: s,
|
|
7329
7328
|
requiredStyle: f
|
|
@@ -7337,7 +7336,7 @@ const {
|
|
|
7337
7336
|
onBlur: d
|
|
7338
7337
|
})
|
|
7339
7338
|
});
|
|
7340
|
-
},
|
|
7339
|
+
}, ed = ({
|
|
7341
7340
|
value: e,
|
|
7342
7341
|
field: t,
|
|
7343
7342
|
requiredStyle: r,
|
|
@@ -7422,7 +7421,7 @@ const {
|
|
|
7422
7421
|
})
|
|
7423
7422
|
})]
|
|
7424
7423
|
});
|
|
7425
|
-
},
|
|
7424
|
+
}, td = (e) => {
|
|
7426
7425
|
const {
|
|
7427
7426
|
ooui: t
|
|
7428
7427
|
} = e, {
|
|
@@ -7436,7 +7435,7 @@ const {
|
|
|
7436
7435
|
children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
|
|
7437
7436
|
})
|
|
7438
7437
|
});
|
|
7439
|
-
},
|
|
7438
|
+
}, nd = ({
|
|
7440
7439
|
model: e,
|
|
7441
7440
|
context: t,
|
|
7442
7441
|
locale: r,
|
|
@@ -7457,7 +7456,7 @@ const {
|
|
|
7457
7456
|
]);
|
|
7458
7457
|
const { datas: C } = await H.getHandler().exportData({
|
|
7459
7458
|
model: e,
|
|
7460
|
-
fields:
|
|
7459
|
+
fields: ld({
|
|
7461
7460
|
keys: g.selectedKeys,
|
|
7462
7461
|
fields: l.current
|
|
7463
7462
|
}),
|
|
@@ -7486,7 +7485,7 @@ const {
|
|
|
7486
7485
|
fields: []
|
|
7487
7486
|
});
|
|
7488
7487
|
for (const [A, S] of Object.entries(b))
|
|
7489
|
-
b[A].string =
|
|
7488
|
+
b[A].string = od({
|
|
7490
7489
|
parentTitle: C.string,
|
|
7491
7490
|
title: S.string
|
|
7492
7491
|
});
|
|
@@ -7497,7 +7496,7 @@ const {
|
|
|
7497
7496
|
},
|
|
7498
7497
|
[l.current, e, t]
|
|
7499
7498
|
), m = ke(async () => {
|
|
7500
|
-
const g = await
|
|
7499
|
+
const g = await id({ model: e, context: t }), v = await ad({
|
|
7501
7500
|
predefinedExports: g,
|
|
7502
7501
|
fields: l.current,
|
|
7503
7502
|
onGetFieldChilds: u
|
|
@@ -7579,7 +7578,7 @@ const {
|
|
|
7579
7578
|
continue;
|
|
7580
7579
|
const s = Po(o);
|
|
7581
7580
|
r.push({
|
|
7582
|
-
key:
|
|
7581
|
+
key: rd({ key: i, parentKey: t }),
|
|
7583
7582
|
title: o.string,
|
|
7584
7583
|
tooltip: o.help,
|
|
7585
7584
|
required: o.required,
|
|
@@ -7587,7 +7586,7 @@ const {
|
|
|
7587
7586
|
});
|
|
7588
7587
|
}
|
|
7589
7588
|
return r;
|
|
7590
|
-
}, Po = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many",
|
|
7589
|
+
}, Po = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", rd = ({
|
|
7591
7590
|
parentKey: e,
|
|
7592
7591
|
key: t
|
|
7593
7592
|
}) => `${e ? e + "/" : ""}${t}`, Bt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), $n = (e) => {
|
|
@@ -7595,10 +7594,10 @@ const {
|
|
|
7595
7594
|
return e;
|
|
7596
7595
|
const t = e.split("/");
|
|
7597
7596
|
return t[t.length - 1];
|
|
7598
|
-
}, Ln = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Bt(e)],
|
|
7597
|
+
}, Ln = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Bt(e)], od = ({
|
|
7599
7598
|
title: e,
|
|
7600
7599
|
parentTitle: t
|
|
7601
|
-
}) => `${t ? t + " \u2192 " : ""}${e}`,
|
|
7600
|
+
}) => `${t ? t + " \u2192 " : ""}${e}`, id = async ({
|
|
7602
7601
|
model: e,
|
|
7603
7602
|
context: t
|
|
7604
7603
|
}) => {
|
|
@@ -7618,10 +7617,10 @@ const {
|
|
|
7618
7617
|
key: o.find((f) => f.id === a).name
|
|
7619
7618
|
}))
|
|
7620
7619
|
}));
|
|
7621
|
-
},
|
|
7620
|
+
}, sd = ({
|
|
7622
7621
|
fields: e,
|
|
7623
7622
|
keys: t
|
|
7624
|
-
}) =>
|
|
7623
|
+
}) => cd([
|
|
7625
7624
|
...new Set(
|
|
7626
7625
|
t.filter((r) => {
|
|
7627
7626
|
var i, o, s;
|
|
@@ -7635,27 +7634,27 @@ const {
|
|
|
7635
7634
|
}
|
|
7636
7635
|
}).map((r) => Bt(r))
|
|
7637
7636
|
)
|
|
7638
|
-
]),
|
|
7637
|
+
]), ad = async ({
|
|
7639
7638
|
predefinedExports: e,
|
|
7640
7639
|
fields: t,
|
|
7641
7640
|
onGetFieldChilds: r
|
|
7642
7641
|
}) => {
|
|
7643
7642
|
const i = e.flatMap(
|
|
7644
7643
|
(a) => a.fields.map((l) => l.key)
|
|
7645
|
-
), o =
|
|
7644
|
+
), o = sd({
|
|
7646
7645
|
fields: t,
|
|
7647
7646
|
keys: i
|
|
7648
7647
|
}), s = [];
|
|
7649
7648
|
for (const a of o)
|
|
7650
7649
|
s.push({ key: a, childs: await r(a) });
|
|
7651
7650
|
return s;
|
|
7652
|
-
},
|
|
7651
|
+
}, ld = ({
|
|
7653
7652
|
keys: e,
|
|
7654
7653
|
fields: t
|
|
7655
7654
|
}) => e.map((r) => {
|
|
7656
7655
|
const i = $n(r), s = Ln(r, t)[i];
|
|
7657
7656
|
return Po(s) ? `${r}/id` : r;
|
|
7658
|
-
}),
|
|
7657
|
+
}), cd = (e) => {
|
|
7659
7658
|
const t = /* @__PURE__ */ new Map(), r = [];
|
|
7660
7659
|
for (const i of e) {
|
|
7661
7660
|
const o = i.split("/");
|
|
@@ -7669,7 +7668,7 @@ const {
|
|
|
7669
7668
|
const s = i.split("/").length, a = o.split("/").length;
|
|
7670
7669
|
return s - a;
|
|
7671
7670
|
}), r;
|
|
7672
|
-
},
|
|
7671
|
+
}, dd = (e) => {
|
|
7673
7672
|
const {
|
|
7674
7673
|
visible: t,
|
|
7675
7674
|
locale: r,
|
|
@@ -7688,7 +7687,7 @@ const {
|
|
|
7688
7687
|
onGetPredefinedExports: p,
|
|
7689
7688
|
onSavePredefinedExport: h,
|
|
7690
7689
|
onRemovePredefinedExport: g
|
|
7691
|
-
} =
|
|
7690
|
+
} = nd({
|
|
7692
7691
|
model: o,
|
|
7693
7692
|
context: s,
|
|
7694
7693
|
domain: f,
|
|
@@ -7711,14 +7710,14 @@ const {
|
|
|
7711
7710
|
onSavePredefinedExport: h,
|
|
7712
7711
|
onRemovePredefinedExport: g
|
|
7713
7712
|
});
|
|
7714
|
-
},
|
|
7713
|
+
}, ud = (e) => {
|
|
7715
7714
|
const {
|
|
7716
7715
|
ooui: t
|
|
7717
7716
|
} = e;
|
|
7718
7717
|
return /* @__PURE__ */ n(Ro, {
|
|
7719
7718
|
ooui: t
|
|
7720
7719
|
});
|
|
7721
|
-
},
|
|
7720
|
+
}, fd = (e) => {
|
|
7722
7721
|
const {
|
|
7723
7722
|
ooui: t
|
|
7724
7723
|
} = e;
|
|
@@ -7857,24 +7856,24 @@ var Ho = { exports: {} };
|
|
|
7857
7856
|
};
|
|
7858
7857
|
});
|
|
7859
7858
|
})(Ho);
|
|
7860
|
-
const
|
|
7861
|
-
at.extend(
|
|
7862
|
-
const
|
|
7859
|
+
const md = Ho.exports;
|
|
7860
|
+
at.extend(md);
|
|
7861
|
+
const hd = (e) => {
|
|
7863
7862
|
const {
|
|
7864
7863
|
ooui: t
|
|
7865
7864
|
} = e;
|
|
7866
7865
|
return /* @__PURE__ */ n(we, {
|
|
7867
7866
|
...e,
|
|
7868
|
-
children: /* @__PURE__ */ n(
|
|
7867
|
+
children: /* @__PURE__ */ n(pd, {
|
|
7869
7868
|
ooui: t
|
|
7870
7869
|
})
|
|
7871
7870
|
});
|
|
7872
|
-
},
|
|
7871
|
+
}, pd = (e) => /* @__PURE__ */ n(Lr, {
|
|
7873
7872
|
onChange: (r, i) => {
|
|
7874
7873
|
e.onChange && e.onChange(i);
|
|
7875
7874
|
},
|
|
7876
7875
|
value: e.value ? at(e.value, "HH:mm:ss") : void 0
|
|
7877
|
-
}),
|
|
7876
|
+
}), gd = (e) => {
|
|
7878
7877
|
const {
|
|
7879
7878
|
ooui: t
|
|
7880
7879
|
} = e, {
|
|
@@ -7883,11 +7882,11 @@ const pd = (e) => {
|
|
|
7883
7882
|
return /* @__PURE__ */ n(we, {
|
|
7884
7883
|
required: r,
|
|
7885
7884
|
...e,
|
|
7886
|
-
children: /* @__PURE__ */ n(
|
|
7885
|
+
children: /* @__PURE__ */ n(yd, {
|
|
7887
7886
|
ooui: t
|
|
7888
7887
|
})
|
|
7889
7888
|
});
|
|
7890
|
-
},
|
|
7889
|
+
}, yd = (e) => {
|
|
7891
7890
|
const {
|
|
7892
7891
|
value: t,
|
|
7893
7892
|
onChange: r,
|
|
@@ -7944,8 +7943,8 @@ const pd = (e) => {
|
|
|
7944
7943
|
})]
|
|
7945
7944
|
});
|
|
7946
7945
|
}, {
|
|
7947
|
-
useToken:
|
|
7948
|
-
} = Pe,
|
|
7946
|
+
useToken: vd
|
|
7947
|
+
} = Pe, wd = (e) => {
|
|
7949
7948
|
const {
|
|
7950
7949
|
ooui: t
|
|
7951
7950
|
} = e, {
|
|
@@ -7954,11 +7953,11 @@ const pd = (e) => {
|
|
|
7954
7953
|
return /* @__PURE__ */ n(we, {
|
|
7955
7954
|
required: r,
|
|
7956
7955
|
...e,
|
|
7957
|
-
children: /* @__PURE__ */ n(
|
|
7956
|
+
children: /* @__PURE__ */ n(bd, {
|
|
7958
7957
|
ooui: t
|
|
7959
7958
|
})
|
|
7960
7959
|
});
|
|
7961
|
-
},
|
|
7960
|
+
}, bd = (e) => {
|
|
7962
7961
|
const {
|
|
7963
7962
|
ooui: t,
|
|
7964
7963
|
value: r,
|
|
@@ -7969,14 +7968,14 @@ const pd = (e) => {
|
|
|
7969
7968
|
filenameField: a
|
|
7970
7969
|
} = t, {
|
|
7971
7970
|
token: l
|
|
7972
|
-
} =
|
|
7971
|
+
} = vd(), f = s && !o ? {
|
|
7973
7972
|
backgroundColor: l.colorPrimaryBg
|
|
7974
7973
|
} : void 0, c = ue(null), {
|
|
7975
7974
|
setFieldValue: d,
|
|
7976
7975
|
getFieldValue: u
|
|
7977
7976
|
} = W(Le) || {}, {
|
|
7978
7977
|
t: m
|
|
7979
|
-
} = W(ye), y = r ?
|
|
7978
|
+
} = W(ye), y = r ? Da(r) : "", p = (R) => {
|
|
7980
7979
|
i == null || i(R);
|
|
7981
7980
|
};
|
|
7982
7981
|
async function h() {
|
|
@@ -8233,13 +8232,13 @@ function Bo(e) {
|
|
|
8233
8232
|
});
|
|
8234
8233
|
}
|
|
8235
8234
|
const {
|
|
8236
|
-
confirm:
|
|
8237
|
-
} = Je,
|
|
8235
|
+
confirm: xd
|
|
8236
|
+
} = Je, Cd = ({
|
|
8238
8237
|
onOk: e,
|
|
8239
8238
|
onCancel: t,
|
|
8240
8239
|
lang: r
|
|
8241
8240
|
}) => {
|
|
8242
|
-
|
|
8241
|
+
xd({
|
|
8243
8242
|
title: Oe("unsavedChanges", r),
|
|
8244
8243
|
icon: /* @__PURE__ */ n(gt, {}),
|
|
8245
8244
|
centered: !0,
|
|
@@ -8265,7 +8264,7 @@ async function jo(e, t, r) {
|
|
|
8265
8264
|
children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + f[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
|
|
8266
8265
|
}));
|
|
8267
8266
|
}
|
|
8268
|
-
const
|
|
8267
|
+
const Sd = (e) => {
|
|
8269
8268
|
const {
|
|
8270
8269
|
numberOfAttachments: t,
|
|
8271
8270
|
disabled: r
|
|
@@ -8284,12 +8283,12 @@ const Td = (e) => {
|
|
|
8284
8283
|
onVisibleChange: (f) => a(f),
|
|
8285
8284
|
visible: s,
|
|
8286
8285
|
placement: "bottom",
|
|
8287
|
-
content:
|
|
8286
|
+
content: Td(e, a, o),
|
|
8288
8287
|
title: i("attachments"),
|
|
8289
8288
|
arrowContent: null,
|
|
8290
8289
|
children: l
|
|
8291
8290
|
});
|
|
8292
|
-
},
|
|
8291
|
+
}, Td = (e, t, r) => {
|
|
8293
8292
|
const {
|
|
8294
8293
|
attachments: i = [],
|
|
8295
8294
|
loading: o,
|
|
@@ -8375,7 +8374,7 @@ const Td = (e) => {
|
|
|
8375
8374
|
})]
|
|
8376
8375
|
});
|
|
8377
8376
|
};
|
|
8378
|
-
function
|
|
8377
|
+
function Fd(e) {
|
|
8379
8378
|
const {
|
|
8380
8379
|
attachments: t,
|
|
8381
8380
|
disabled: r = !1,
|
|
@@ -8433,7 +8432,7 @@ function Od(e) {
|
|
|
8433
8432
|
return ge(() => {
|
|
8434
8433
|
p();
|
|
8435
8434
|
}, [p]), /* @__PURE__ */ P(te, {
|
|
8436
|
-
children: [/* @__PURE__ */ n(
|
|
8435
|
+
children: [/* @__PURE__ */ n(Sd, {
|
|
8437
8436
|
numberOfAttachments: t.length,
|
|
8438
8437
|
attachments: c,
|
|
8439
8438
|
disabled: r,
|
|
@@ -8453,7 +8452,7 @@ function Od(e) {
|
|
|
8453
8452
|
})]
|
|
8454
8453
|
});
|
|
8455
8454
|
}
|
|
8456
|
-
function
|
|
8455
|
+
function Od({
|
|
8457
8456
|
toolbar: e
|
|
8458
8457
|
}) {
|
|
8459
8458
|
const {
|
|
@@ -8492,7 +8491,7 @@ function Id({
|
|
|
8492
8491
|
} = V || {};
|
|
8493
8492
|
function k(N) {
|
|
8494
8493
|
if (s) {
|
|
8495
|
-
|
|
8494
|
+
Cd({
|
|
8496
8495
|
lang: F,
|
|
8497
8496
|
onOk: () => {
|
|
8498
8497
|
N();
|
|
@@ -8686,7 +8685,7 @@ function Id({
|
|
|
8686
8685
|
action_type: N.type
|
|
8687
8686
|
});
|
|
8688
8687
|
}
|
|
8689
|
-
}), /* @__PURE__ */ n(
|
|
8688
|
+
}), /* @__PURE__ */ n(Fd, {
|
|
8690
8689
|
disabled: Y,
|
|
8691
8690
|
attachments: R,
|
|
8692
8691
|
onAddNewAttachment: async () => {
|
|
@@ -8751,7 +8750,7 @@ async function Ot({
|
|
|
8751
8750
|
};
|
|
8752
8751
|
}
|
|
8753
8752
|
const {
|
|
8754
|
-
useToken:
|
|
8753
|
+
useToken: Id
|
|
8755
8754
|
} = Pe, Ko = (e) => {
|
|
8756
8755
|
const {
|
|
8757
8756
|
ooui: t,
|
|
@@ -8765,7 +8764,7 @@ const {
|
|
|
8765
8764
|
required: f
|
|
8766
8765
|
} = t, {
|
|
8767
8766
|
token: c
|
|
8768
|
-
} =
|
|
8767
|
+
} = Id(), d = f && !l ? {
|
|
8769
8768
|
backgroundColor: c.colorPrimaryBg
|
|
8770
8769
|
} : void 0, u = W(Le), {
|
|
8771
8770
|
elementHasLostFocus: m
|
|
@@ -8828,7 +8827,7 @@ const {
|
|
|
8828
8827
|
})
|
|
8829
8828
|
})]
|
|
8830
8829
|
});
|
|
8831
|
-
},
|
|
8830
|
+
}, _d = (e) => {
|
|
8832
8831
|
const {
|
|
8833
8832
|
ooui: t
|
|
8834
8833
|
} = e, {
|
|
@@ -8842,7 +8841,7 @@ const {
|
|
|
8842
8841
|
valueValidator: (i) => i ? Ui(i) : !1
|
|
8843
8842
|
})
|
|
8844
8843
|
});
|
|
8845
|
-
},
|
|
8844
|
+
}, Dd = (e) => {
|
|
8846
8845
|
const {
|
|
8847
8846
|
ooui: t
|
|
8848
8847
|
} = e, {
|
|
@@ -8857,7 +8856,7 @@ const {
|
|
|
8857
8856
|
valueValidator: (i) => i ? Gi(i) : !1
|
|
8858
8857
|
})
|
|
8859
8858
|
});
|
|
8860
|
-
},
|
|
8859
|
+
}, Ad = (e) => {
|
|
8861
8860
|
const {
|
|
8862
8861
|
visible: t,
|
|
8863
8862
|
onIdSubmitted: r,
|
|
@@ -8927,7 +8926,7 @@ const {
|
|
|
8927
8926
|
})
|
|
8928
8927
|
});
|
|
8929
8928
|
}, {
|
|
8930
|
-
useToken:
|
|
8929
|
+
useToken: Rd
|
|
8931
8930
|
} = Pe;
|
|
8932
8931
|
function Yo(e) {
|
|
8933
8932
|
const {
|
|
@@ -8935,7 +8934,7 @@ function Yo(e) {
|
|
|
8935
8934
|
...r
|
|
8936
8935
|
} = e, {
|
|
8937
8936
|
token: i
|
|
8938
|
-
} =
|
|
8937
|
+
} = Rd();
|
|
8939
8938
|
return /* @__PURE__ */ P("div", {
|
|
8940
8939
|
style: {
|
|
8941
8940
|
position: "relative"
|
|
@@ -8969,7 +8968,7 @@ function Yo(e) {
|
|
|
8969
8968
|
})]
|
|
8970
8969
|
});
|
|
8971
8970
|
}
|
|
8972
|
-
function
|
|
8971
|
+
function Vd({
|
|
8973
8972
|
refreshGraph: e
|
|
8974
8973
|
}) {
|
|
8975
8974
|
const {
|
|
@@ -9020,9 +9019,9 @@ function kd({
|
|
|
9020
9019
|
});
|
|
9021
9020
|
}
|
|
9022
9021
|
const {
|
|
9023
|
-
useToken:
|
|
9022
|
+
useToken: kd
|
|
9024
9023
|
} = Pe, {
|
|
9025
|
-
Title:
|
|
9024
|
+
Title: Md,
|
|
9026
9025
|
Text: tn
|
|
9027
9026
|
} = Ut;
|
|
9028
9027
|
function vn(e) {
|
|
@@ -9041,7 +9040,7 @@ function vn(e) {
|
|
|
9041
9040
|
t: d
|
|
9042
9041
|
} = W(ye), {
|
|
9043
9042
|
token: u
|
|
9044
|
-
} =
|
|
9043
|
+
} = kd();
|
|
9045
9044
|
function m() {
|
|
9046
9045
|
if ((o == null ? void 0 : o.type) === "form")
|
|
9047
9046
|
return s ? f === 0 ? /* @__PURE__ */ P(te, {
|
|
@@ -9096,7 +9095,7 @@ function vn(e) {
|
|
|
9096
9095
|
align: "middle",
|
|
9097
9096
|
children: [/* @__PURE__ */ P(ce, {
|
|
9098
9097
|
flex: 2,
|
|
9099
|
-
children: [/* @__PURE__ */ n(
|
|
9098
|
+
children: [/* @__PURE__ */ n(Md, {
|
|
9100
9099
|
level: 3,
|
|
9101
9100
|
style: {
|
|
9102
9101
|
marginBottom: 0
|
|
@@ -9115,7 +9114,7 @@ function vn(e) {
|
|
|
9115
9114
|
})]
|
|
9116
9115
|
});
|
|
9117
9116
|
}
|
|
9118
|
-
const
|
|
9117
|
+
const Ed = (e) => {
|
|
9119
9118
|
const {
|
|
9120
9119
|
viewData: t,
|
|
9121
9120
|
visible: r,
|
|
@@ -9183,7 +9182,7 @@ const $d = (e) => {
|
|
|
9183
9182
|
return !r || !t ? null : /* @__PURE__ */ P(te, {
|
|
9184
9183
|
children: [/* @__PURE__ */ n(vn, {
|
|
9185
9184
|
title: t.name,
|
|
9186
|
-
children: /* @__PURE__ */ n(
|
|
9185
|
+
children: /* @__PURE__ */ n(Vd, {
|
|
9187
9186
|
refreshGraph: () => {
|
|
9188
9187
|
f.current.refresh();
|
|
9189
9188
|
}
|
|
@@ -9215,7 +9214,7 @@ const $d = (e) => {
|
|
|
9215
9214
|
manualIds: V ? y == null ? void 0 : y.map((j) => j.id) : void 0
|
|
9216
9215
|
})]
|
|
9217
9216
|
});
|
|
9218
|
-
},
|
|
9217
|
+
}, $d = (e) => {
|
|
9219
9218
|
const {
|
|
9220
9219
|
visible: t,
|
|
9221
9220
|
formRef: r,
|
|
@@ -9232,7 +9231,7 @@ const $d = (e) => {
|
|
|
9232
9231
|
} = e;
|
|
9233
9232
|
return t ? /* @__PURE__ */ P(te, {
|
|
9234
9233
|
children: [/* @__PURE__ */ n(vn, {
|
|
9235
|
-
children: /* @__PURE__ */ n(
|
|
9234
|
+
children: /* @__PURE__ */ n(Od, {
|
|
9236
9235
|
toolbar: a == null ? void 0 : a.toolbar
|
|
9237
9236
|
})
|
|
9238
9237
|
}), /* @__PURE__ */ n(Zt, {
|
|
@@ -9251,7 +9250,7 @@ const $d = (e) => {
|
|
|
9251
9250
|
})]
|
|
9252
9251
|
}) : null;
|
|
9253
9252
|
};
|
|
9254
|
-
function
|
|
9253
|
+
function Ld(e) {
|
|
9255
9254
|
const {
|
|
9256
9255
|
onSearch: t,
|
|
9257
9256
|
disabled: r = !1,
|
|
@@ -9318,10 +9317,10 @@ function Nd(e) {
|
|
|
9318
9317
|
})
|
|
9319
9318
|
});
|
|
9320
9319
|
}
|
|
9321
|
-
const
|
|
9320
|
+
const Nd = Qe.createContext({
|
|
9322
9321
|
previewFeatures: !1
|
|
9323
9322
|
});
|
|
9324
|
-
function
|
|
9323
|
+
function Pd(e) {
|
|
9325
9324
|
var U;
|
|
9326
9325
|
const {
|
|
9327
9326
|
availableViews: t,
|
|
@@ -9352,7 +9351,7 @@ function Hd(e) {
|
|
|
9352
9351
|
treeExpandable: T,
|
|
9353
9352
|
toolbar: F
|
|
9354
9353
|
} = e;
|
|
9355
|
-
W(
|
|
9354
|
+
W(Nd);
|
|
9356
9355
|
const {
|
|
9357
9356
|
t: w,
|
|
9358
9357
|
lang: L
|
|
@@ -9423,7 +9422,7 @@ function Hd(e) {
|
|
|
9423
9422
|
children: [C && /* @__PURE__ */ P(te, {
|
|
9424
9423
|
children: [/* @__PURE__ */ n(Re, {}), vt(), vt()]
|
|
9425
9424
|
}), T ? null : /* @__PURE__ */ P(te, {
|
|
9426
|
-
children: [/* @__PURE__ */ n(
|
|
9425
|
+
children: [/* @__PURE__ */ n(Ld, {
|
|
9427
9426
|
disabled: l || a || C,
|
|
9428
9427
|
searchText: v,
|
|
9429
9428
|
onSearch: (Y) => {
|
|
@@ -9561,7 +9560,7 @@ function Hd(e) {
|
|
|
9561
9560
|
k(!0);
|
|
9562
9561
|
},
|
|
9563
9562
|
disabled: l || a || C || D
|
|
9564
|
-
}), /* @__PURE__ */ n(
|
|
9563
|
+
}), /* @__PURE__ */ n(dd, {
|
|
9565
9564
|
visible: M,
|
|
9566
9565
|
locale: L,
|
|
9567
9566
|
onClose: () => k(!1),
|
|
@@ -9580,7 +9579,7 @@ function vt() {
|
|
|
9580
9579
|
className: "inline-block w-2"
|
|
9581
9580
|
});
|
|
9582
9581
|
}
|
|
9583
|
-
const
|
|
9582
|
+
const Hd = (e) => {
|
|
9584
9583
|
const {
|
|
9585
9584
|
visible: t,
|
|
9586
9585
|
searchTreeRef: r,
|
|
@@ -9601,7 +9600,7 @@ const Bd = (e) => {
|
|
|
9601
9600
|
} = W(rt);
|
|
9602
9601
|
return t ? /* @__PURE__ */ P(te, {
|
|
9603
9602
|
children: [/* @__PURE__ */ n(vn, {
|
|
9604
|
-
children: /* @__PURE__ */ n(
|
|
9603
|
+
children: /* @__PURE__ */ n(Pd, {
|
|
9605
9604
|
toolbar: a == null ? void 0 : a.toolbar,
|
|
9606
9605
|
parentContext: o,
|
|
9607
9606
|
treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
|
|
@@ -9627,7 +9626,7 @@ const Bd = (e) => {
|
|
|
9627
9626
|
}
|
|
9628
9627
|
})]
|
|
9629
9628
|
}) : null;
|
|
9630
|
-
}, rr = Qe.createContext(null),
|
|
9629
|
+
}, rr = Qe.createContext(null), Bd = (e) => {
|
|
9631
9630
|
const [t, r] = _(!1), [i, o] = _(!1), {
|
|
9632
9631
|
children: s,
|
|
9633
9632
|
dashboardRef: a,
|
|
@@ -9645,7 +9644,7 @@ const Bd = (e) => {
|
|
|
9645
9644
|
children: s
|
|
9646
9645
|
});
|
|
9647
9646
|
};
|
|
9648
|
-
function
|
|
9647
|
+
function jd() {
|
|
9649
9648
|
const {
|
|
9650
9649
|
isLoading: e,
|
|
9651
9650
|
dashboardRef: t,
|
|
@@ -9669,7 +9668,7 @@ function Kd() {
|
|
|
9669
9668
|
onClick: () => {
|
|
9670
9669
|
i(!r);
|
|
9671
9670
|
}
|
|
9672
|
-
}),
|
|
9671
|
+
}), Kd(), /* @__PURE__ */ n(Ze, {
|
|
9673
9672
|
icon: /* @__PURE__ */ n(Vi, {}),
|
|
9674
9673
|
tooltip: o("configDashboard"),
|
|
9675
9674
|
disabled: e,
|
|
@@ -9688,25 +9687,25 @@ function Kd() {
|
|
|
9688
9687
|
})]
|
|
9689
9688
|
});
|
|
9690
9689
|
}
|
|
9691
|
-
function
|
|
9690
|
+
function Kd() {
|
|
9692
9691
|
return /* @__PURE__ */ n("div", {
|
|
9693
9692
|
className: "inline-block w-2"
|
|
9694
9693
|
});
|
|
9695
9694
|
}
|
|
9696
|
-
const
|
|
9695
|
+
const Yd = (e) => {
|
|
9697
9696
|
const {
|
|
9698
9697
|
dashboardData: t
|
|
9699
9698
|
} = e, r = ue(), i = W(dt), {
|
|
9700
9699
|
openShortcut: o
|
|
9701
9700
|
} = i || {};
|
|
9702
|
-
return t ? /* @__PURE__ */ P(
|
|
9701
|
+
return t ? /* @__PURE__ */ P(Bd, {
|
|
9703
9702
|
dashboardRef: r,
|
|
9704
9703
|
openAction: (s) => {
|
|
9705
9704
|
o(s);
|
|
9706
9705
|
},
|
|
9707
9706
|
children: [/* @__PURE__ */ n(vn, {
|
|
9708
|
-
children: /* @__PURE__ */ n(
|
|
9709
|
-
}), /* @__PURE__ */ n(
|
|
9707
|
+
children: /* @__PURE__ */ n(jd, {})
|
|
9708
|
+
}), /* @__PURE__ */ n(ru, {
|
|
9710
9709
|
ref: r,
|
|
9711
9710
|
model: t.model,
|
|
9712
9711
|
id: t.id,
|
|
@@ -9715,7 +9714,7 @@ const Wd = (e) => {
|
|
|
9715
9714
|
})]
|
|
9716
9715
|
}) : null;
|
|
9717
9716
|
};
|
|
9718
|
-
async function
|
|
9717
|
+
async function Wd(e) {
|
|
9719
9718
|
const t = await Promise.all(
|
|
9720
9719
|
e.map(async (i) => {
|
|
9721
9720
|
try {
|
|
@@ -9730,7 +9729,7 @@ async function Ud(e) {
|
|
|
9730
9729
|
info: t[o]
|
|
9731
9730
|
})).filter((i) => i.info !== null);
|
|
9732
9731
|
}
|
|
9733
|
-
function
|
|
9732
|
+
function Ud(e, t) {
|
|
9734
9733
|
const {
|
|
9735
9734
|
domain: r,
|
|
9736
9735
|
model: i,
|
|
@@ -9786,7 +9785,7 @@ function Gd(e, t) {
|
|
|
9786
9785
|
viewTuple: se
|
|
9787
9786
|
});
|
|
9788
9787
|
}
|
|
9789
|
-
const Ve = await
|
|
9788
|
+
const Ve = await Wd(Se);
|
|
9790
9789
|
for (const se of Ve) {
|
|
9791
9790
|
if (!se)
|
|
9792
9791
|
continue;
|
|
@@ -9901,7 +9900,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9901
9900
|
return R.map((ee) => {
|
|
9902
9901
|
switch (ee.type) {
|
|
9903
9902
|
case "form":
|
|
9904
|
-
return /* @__PURE__ */ n(
|
|
9903
|
+
return /* @__PURE__ */ n($d, {
|
|
9905
9904
|
formRef: X,
|
|
9906
9905
|
currentId: x,
|
|
9907
9906
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
@@ -9916,7 +9915,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9916
9915
|
setCurrentItemIndex: V
|
|
9917
9916
|
}, `${ee.type}-${ee.view_id}`);
|
|
9918
9917
|
case "tree":
|
|
9919
|
-
return /* @__PURE__ */ n(
|
|
9918
|
+
return /* @__PURE__ */ n(Hd, {
|
|
9920
9919
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
9921
9920
|
limit: g,
|
|
9922
9921
|
model: i,
|
|
@@ -9933,7 +9932,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9933
9932
|
setCurrentView: Ue
|
|
9934
9933
|
}, `${ee.type}-${ee.view_id}`);
|
|
9935
9934
|
case "graph":
|
|
9936
|
-
return /* @__PURE__ */ n(
|
|
9935
|
+
return /* @__PURE__ */ n(Ed, {
|
|
9937
9936
|
visible: v.type === ee.type && v.view_id === ee.view_id,
|
|
9938
9937
|
viewData: ee,
|
|
9939
9938
|
model: i,
|
|
@@ -9943,7 +9942,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9943
9942
|
formView: R.find((Se) => Se.type === "form")
|
|
9944
9943
|
}, `${ee.type}-${ee.view_id}`);
|
|
9945
9944
|
case "dashboard":
|
|
9946
|
-
return /* @__PURE__ */ n(
|
|
9945
|
+
return /* @__PURE__ */ n(Yd, {
|
|
9947
9946
|
dashboardData: ee
|
|
9948
9947
|
}, `${ee.type}-${ee.view_id}`);
|
|
9949
9948
|
}
|
|
@@ -9958,7 +9957,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9958
9957
|
Ue(ee);
|
|
9959
9958
|
}
|
|
9960
9959
|
}
|
|
9961
|
-
return A ? /* @__PURE__ */ n(Re, {}) : v ? /* @__PURE__ */ P(
|
|
9960
|
+
return A ? /* @__PURE__ */ n(Re, {}) : v ? /* @__PURE__ */ P(wl, {
|
|
9962
9961
|
title: a,
|
|
9963
9962
|
currentView: v,
|
|
9964
9963
|
setCurrentView: Ue,
|
|
@@ -9983,7 +9982,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9983
9982
|
searchTreeNameSearch: z,
|
|
9984
9983
|
goToResourceId: be,
|
|
9985
9984
|
limit: g,
|
|
9986
|
-
children: [$e(), /* @__PURE__ */ n(
|
|
9985
|
+
children: [$e(), /* @__PURE__ */ n(Ad, {
|
|
9987
9986
|
visible: j,
|
|
9988
9987
|
onIdSubmitted: be,
|
|
9989
9988
|
isSearching: U,
|
|
@@ -9993,8 +9992,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9993
9992
|
})]
|
|
9994
9993
|
}) : null;
|
|
9995
9994
|
}
|
|
9996
|
-
const Wo = bt(
|
|
9997
|
-
async function
|
|
9995
|
+
const Wo = bt(Ud);
|
|
9996
|
+
async function Gd({
|
|
9998
9997
|
actionId: e,
|
|
9999
9998
|
rootContext: t = {},
|
|
10000
9999
|
globalValues: r = {}
|
|
@@ -10046,7 +10045,7 @@ async function qd({
|
|
|
10046
10045
|
treeExpandable: y
|
|
10047
10046
|
};
|
|
10048
10047
|
}
|
|
10049
|
-
const
|
|
10048
|
+
const qd = Xi(Qi), zd = (e) => {
|
|
10050
10049
|
const {
|
|
10051
10050
|
children: t = [],
|
|
10052
10051
|
onPositionItemsChanged: r
|
|
@@ -10060,7 +10059,7 @@ const zd = Qi(es), Jd = (e) => {
|
|
|
10060
10059
|
children: o
|
|
10061
10060
|
}, a);
|
|
10062
10061
|
});
|
|
10063
|
-
return /* @__PURE__ */ n(
|
|
10062
|
+
return /* @__PURE__ */ n(qd, {
|
|
10064
10063
|
className: "layout",
|
|
10065
10064
|
cols: {
|
|
10066
10065
|
lg: 12,
|
|
@@ -10083,10 +10082,10 @@ const zd = Qi(es), Jd = (e) => {
|
|
|
10083
10082
|
children: i
|
|
10084
10083
|
});
|
|
10085
10084
|
}, {
|
|
10086
|
-
useToken:
|
|
10085
|
+
useToken: Jd
|
|
10087
10086
|
} = Pe, {
|
|
10088
|
-
Text:
|
|
10089
|
-
} = Ut,
|
|
10087
|
+
Text: Zd
|
|
10088
|
+
} = Ut, Xd = (e) => {
|
|
10090
10089
|
const {
|
|
10091
10090
|
title: t,
|
|
10092
10091
|
children: r,
|
|
@@ -10094,7 +10093,7 @@ const zd = Qi(es), Jd = (e) => {
|
|
|
10094
10093
|
openAction: o
|
|
10095
10094
|
} = e, {
|
|
10096
10095
|
token: s
|
|
10097
|
-
} =
|
|
10096
|
+
} = Jd();
|
|
10098
10097
|
return /* @__PURE__ */ P("div", {
|
|
10099
10098
|
className: "shadow-md",
|
|
10100
10099
|
style: {
|
|
@@ -10122,7 +10121,7 @@ const zd = Qi(es), Jd = (e) => {
|
|
|
10122
10121
|
cursor: "grab",
|
|
10123
10122
|
overflow: "hidden"
|
|
10124
10123
|
},
|
|
10125
|
-
children: /* @__PURE__ */ n(
|
|
10124
|
+
children: /* @__PURE__ */ n(Zd, {
|
|
10126
10125
|
ellipsis: !0,
|
|
10127
10126
|
children: t
|
|
10128
10127
|
})
|
|
@@ -10146,8 +10145,8 @@ const zd = Qi(es), Jd = (e) => {
|
|
|
10146
10145
|
})]
|
|
10147
10146
|
}), r]
|
|
10148
10147
|
});
|
|
10149
|
-
},
|
|
10150
|
-
function
|
|
10148
|
+
}, Qd = 80;
|
|
10149
|
+
function eu(e) {
|
|
10151
10150
|
const {
|
|
10152
10151
|
action: t,
|
|
10153
10152
|
model: r,
|
|
@@ -10156,7 +10155,7 @@ function tu(e) {
|
|
|
10156
10155
|
domain: s = [],
|
|
10157
10156
|
visible: a = !0,
|
|
10158
10157
|
parentContext: l = {}
|
|
10159
|
-
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [b, A] = _(0), S = ue(
|
|
10158
|
+
} = e, [f, c] = _(!1), [d, u] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [C, R] = _(1), [b, A] = _(0), S = ue(Qd), E = ue([]), [x, T] = _(0), [F, w] = _([]), [L, V] = _(void 0), [O, M] = _(), [k, D] = _(), [$, I] = _(), [j, G] = _(!1), U = ue([]), Y = (Z) => {
|
|
10160
10159
|
G(!0), R(Z), A((Z - 1) * S.current);
|
|
10161
10160
|
}, z = async () => {
|
|
10162
10161
|
const Z = U.current.length > 0 ? U.current : s, fe = Yt(E.current, Z), {
|
|
@@ -10288,7 +10287,7 @@ function tu(e) {
|
|
|
10288
10287
|
}
|
|
10289
10288
|
}) : J();
|
|
10290
10289
|
}
|
|
10291
|
-
const
|
|
10290
|
+
const tu = (e) => {
|
|
10292
10291
|
const {
|
|
10293
10292
|
model: t
|
|
10294
10293
|
} = e, [r, i] = _();
|
|
@@ -10316,7 +10315,7 @@ const nu = (e) => {
|
|
|
10316
10315
|
})
|
|
10317
10316
|
});
|
|
10318
10317
|
}, Dn = "line_ids";
|
|
10319
|
-
function
|
|
10318
|
+
function nu(e, t) {
|
|
10320
10319
|
const {
|
|
10321
10320
|
model: r,
|
|
10322
10321
|
context: i = {},
|
|
@@ -10396,7 +10395,7 @@ function ru(e, t) {
|
|
|
10396
10395
|
values: w
|
|
10397
10396
|
} = F;
|
|
10398
10397
|
if (w.action_id && w.action_id.length > 0) {
|
|
10399
|
-
const L = parseInt(w.action_id[0], 10), V = await
|
|
10398
|
+
const L = parseInt(w.action_id[0], 10), V = await Gd({
|
|
10400
10399
|
actionId: L,
|
|
10401
10400
|
rootContext: i
|
|
10402
10401
|
});
|
|
@@ -10461,7 +10460,7 @@ function ru(e, t) {
|
|
|
10461
10460
|
message: d,
|
|
10462
10461
|
type: "error",
|
|
10463
10462
|
banner: !0
|
|
10464
|
-
})) : f ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(
|
|
10463
|
+
})) : f ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(zd, {
|
|
10465
10464
|
onPositionItemsChanged: S,
|
|
10466
10465
|
children: a.map((x, T) => {
|
|
10467
10466
|
const {
|
|
@@ -10503,12 +10502,12 @@ function ru(e, t) {
|
|
|
10503
10502
|
limit: Y
|
|
10504
10503
|
});
|
|
10505
10504
|
else if ((U == null ? void 0 : U.type) === "form")
|
|
10506
|
-
N = /* @__PURE__ */ n(
|
|
10505
|
+
N = /* @__PURE__ */ n(tu, {
|
|
10507
10506
|
model: I,
|
|
10508
10507
|
actionDomain: G
|
|
10509
10508
|
});
|
|
10510
10509
|
else if ((U == null ? void 0 : U.type) === "tree")
|
|
10511
|
-
N = /* @__PURE__ */ n(
|
|
10510
|
+
N = /* @__PURE__ */ n(eu, {
|
|
10512
10511
|
model: I,
|
|
10513
10512
|
domain: G,
|
|
10514
10513
|
view_id: $.filter((ne) => ne[1] === "tree")[0][0],
|
|
@@ -10578,7 +10577,7 @@ function ru(e, t) {
|
|
|
10578
10577
|
view_type: le
|
|
10579
10578
|
};
|
|
10580
10579
|
}
|
|
10581
|
-
return /* @__PURE__ */ n(
|
|
10580
|
+
return /* @__PURE__ */ n(Xd, {
|
|
10582
10581
|
id: V,
|
|
10583
10582
|
title: D,
|
|
10584
10583
|
parms: z,
|
|
@@ -10589,18 +10588,18 @@ function ru(e, t) {
|
|
|
10589
10588
|
})
|
|
10590
10589
|
});
|
|
10591
10590
|
}
|
|
10592
|
-
const
|
|
10591
|
+
const ru = bt(nu), ou = (e) => {
|
|
10593
10592
|
const {
|
|
10594
10593
|
ooui: t
|
|
10595
10594
|
} = e;
|
|
10596
10595
|
return /* @__PURE__ */ n(we, {
|
|
10597
10596
|
type: "array",
|
|
10598
10597
|
...e,
|
|
10599
|
-
children: /* @__PURE__ */ n(
|
|
10598
|
+
children: /* @__PURE__ */ n(iu, {
|
|
10600
10599
|
ooui: t
|
|
10601
10600
|
})
|
|
10602
10601
|
});
|
|
10603
|
-
},
|
|
10602
|
+
}, iu = (e) => {
|
|
10604
10603
|
const {
|
|
10605
10604
|
value: t,
|
|
10606
10605
|
ooui: r,
|
|
@@ -10721,12 +10720,12 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10721
10720
|
})]
|
|
10722
10721
|
})
|
|
10723
10722
|
});
|
|
10724
|
-
},
|
|
10723
|
+
}, su = (e) => /* @__PURE__ */ n(we, {
|
|
10725
10724
|
...e,
|
|
10726
|
-
children: /* @__PURE__ */ n(
|
|
10725
|
+
children: /* @__PURE__ */ n(au, {
|
|
10727
10726
|
...e
|
|
10728
10727
|
})
|
|
10729
|
-
}),
|
|
10728
|
+
}), au = (e) => {
|
|
10730
10729
|
const {
|
|
10731
10730
|
value: t,
|
|
10732
10731
|
ooui: r
|
|
@@ -10737,12 +10736,11 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10737
10736
|
overflow: "auto"
|
|
10738
10737
|
},
|
|
10739
10738
|
children: /* @__PURE__ */ n(zi, {
|
|
10740
|
-
remarkPlugins: [Ji],
|
|
10741
10739
|
className: "markdown-typography",
|
|
10742
10740
|
children: t
|
|
10743
10741
|
})
|
|
10744
10742
|
});
|
|
10745
|
-
},
|
|
10743
|
+
}, lu = (e) => {
|
|
10746
10744
|
const {
|
|
10747
10745
|
ooui: t
|
|
10748
10746
|
} = e, {
|
|
@@ -10752,11 +10750,11 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10752
10750
|
required: r,
|
|
10753
10751
|
type: "any",
|
|
10754
10752
|
...e,
|
|
10755
|
-
children: /* @__PURE__ */ n(
|
|
10753
|
+
children: /* @__PURE__ */ n(cu, {
|
|
10756
10754
|
...e
|
|
10757
10755
|
})
|
|
10758
10756
|
});
|
|
10759
|
-
},
|
|
10757
|
+
}, cu = (e) => {
|
|
10760
10758
|
const {
|
|
10761
10759
|
ooui: t,
|
|
10762
10760
|
onChange: r,
|
|
@@ -10781,7 +10779,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10781
10779
|
children: f
|
|
10782
10780
|
})
|
|
10783
10781
|
});
|
|
10784
|
-
},
|
|
10782
|
+
}, du = (e) => {
|
|
10785
10783
|
const {
|
|
10786
10784
|
ooui: t
|
|
10787
10785
|
} = e, {
|
|
@@ -10792,13 +10790,13 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10792
10790
|
return /* @__PURE__ */ n(we, {
|
|
10793
10791
|
...e,
|
|
10794
10792
|
valuePropName: "checked",
|
|
10795
|
-
children: /* @__PURE__ */ n(
|
|
10793
|
+
children: /* @__PURE__ */ n(uu, {
|
|
10796
10794
|
id: r,
|
|
10797
10795
|
readOnly: i,
|
|
10798
10796
|
required: o
|
|
10799
10797
|
})
|
|
10800
10798
|
});
|
|
10801
|
-
},
|
|
10799
|
+
}, uu = (e) => {
|
|
10802
10800
|
const {
|
|
10803
10801
|
required: t,
|
|
10804
10802
|
readOnly: r,
|
|
@@ -10811,7 +10809,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10811
10809
|
...i
|
|
10812
10810
|
})
|
|
10813
10811
|
});
|
|
10814
|
-
},
|
|
10812
|
+
}, fu = (e) => {
|
|
10815
10813
|
const {
|
|
10816
10814
|
ooui: t
|
|
10817
10815
|
} = e, {
|
|
@@ -10821,11 +10819,11 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10821
10819
|
required: r,
|
|
10822
10820
|
type: "any",
|
|
10823
10821
|
...e,
|
|
10824
|
-
children: /* @__PURE__ */ n(
|
|
10822
|
+
children: /* @__PURE__ */ n(mu, {
|
|
10825
10823
|
...e
|
|
10826
10824
|
})
|
|
10827
10825
|
});
|
|
10828
|
-
},
|
|
10826
|
+
}, mu = (e) => {
|
|
10829
10827
|
const {
|
|
10830
10828
|
ooui: t,
|
|
10831
10829
|
value: r
|
|
@@ -10842,7 +10840,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10842
10840
|
description: u === l && f === "error" ? c : null
|
|
10843
10841
|
}))
|
|
10844
10842
|
});
|
|
10845
|
-
},
|
|
10843
|
+
}, hu = (e) => {
|
|
10846
10844
|
const {
|
|
10847
10845
|
ooui: t
|
|
10848
10846
|
} = e, {
|
|
@@ -10853,7 +10851,7 @@ const ou = bt(ru), iu = (e) => {
|
|
|
10853
10851
|
} = o || {};
|
|
10854
10852
|
return /* @__PURE__ */ n(we, {
|
|
10855
10853
|
...e,
|
|
10856
|
-
children: /* @__PURE__ */ n(
|
|
10854
|
+
children: /* @__PURE__ */ n(Ji, {
|
|
10857
10855
|
defaultLanguage: r || "",
|
|
10858
10856
|
height: i || 300,
|
|
10859
10857
|
onMount: (l) => {
|
|
@@ -10905,24 +10903,24 @@ var Uo = { exports: {} };
|
|
|
10905
10903
|
};
|
|
10906
10904
|
});
|
|
10907
10905
|
})(Uo);
|
|
10908
|
-
const
|
|
10909
|
-
Meta:
|
|
10906
|
+
const pu = Uo.exports, {
|
|
10907
|
+
Meta: gu
|
|
10910
10908
|
} = Nn, {
|
|
10911
|
-
Text:
|
|
10909
|
+
Text: yu
|
|
10912
10910
|
} = Ut;
|
|
10913
|
-
at.extend(
|
|
10914
|
-
const
|
|
10911
|
+
at.extend(pu);
|
|
10912
|
+
const vu = ({
|
|
10915
10913
|
email: e,
|
|
10916
10914
|
size: t = 40,
|
|
10917
10915
|
theme: r = ""
|
|
10918
10916
|
}) => {
|
|
10919
|
-
const i = `https://www.gravatar.com/avatar/${
|
|
10917
|
+
const i = `https://www.gravatar.com/avatar/${Zi(e)}?s=${t}&d=${r}`;
|
|
10920
10918
|
return /* @__PURE__ */ n(Nr, {
|
|
10921
10919
|
src: i,
|
|
10922
10920
|
size: t
|
|
10923
10921
|
});
|
|
10924
10922
|
};
|
|
10925
|
-
function
|
|
10923
|
+
function wu({
|
|
10926
10924
|
text: e
|
|
10927
10925
|
}) {
|
|
10928
10926
|
const t = e.split(`
|
|
@@ -10933,7 +10931,7 @@ function bu({
|
|
|
10933
10931
|
}, i))
|
|
10934
10932
|
});
|
|
10935
10933
|
}
|
|
10936
|
-
const
|
|
10934
|
+
const bu = (e) => {
|
|
10937
10935
|
const {
|
|
10938
10936
|
data: t,
|
|
10939
10937
|
style: r
|
|
@@ -10945,8 +10943,8 @@ const xu = (e) => {
|
|
|
10945
10943
|
...r,
|
|
10946
10944
|
textAlign: "start"
|
|
10947
10945
|
},
|
|
10948
|
-
children: [/* @__PURE__ */ n(
|
|
10949
|
-
avatar: /* @__PURE__ */ n(
|
|
10946
|
+
children: [/* @__PURE__ */ n(gu, {
|
|
10947
|
+
avatar: /* @__PURE__ */ n(vu, {
|
|
10950
10948
|
email: t.email,
|
|
10951
10949
|
theme: "mp"
|
|
10952
10950
|
}),
|
|
@@ -10964,13 +10962,13 @@ const xu = (e) => {
|
|
|
10964
10962
|
style: {
|
|
10965
10963
|
marginBottom: "5px"
|
|
10966
10964
|
}
|
|
10967
|
-
}), /* @__PURE__ */ n(
|
|
10968
|
-
children: /* @__PURE__ */ n(
|
|
10965
|
+
}), /* @__PURE__ */ n(yu, {
|
|
10966
|
+
children: /* @__PURE__ */ n(wu, {
|
|
10969
10967
|
text: t.text
|
|
10970
10968
|
})
|
|
10971
10969
|
})]
|
|
10972
10970
|
}, t.id);
|
|
10973
|
-
},
|
|
10971
|
+
}, xu = (e) => {
|
|
10974
10972
|
const {
|
|
10975
10973
|
value: t
|
|
10976
10974
|
} = e, r = (t || []).map((i) => {
|
|
@@ -10983,7 +10981,7 @@ const xu = (e) => {
|
|
|
10983
10981
|
color: "gray",
|
|
10984
10982
|
position: i.event.isSender ? "left" : "right",
|
|
10985
10983
|
label: i.event.date,
|
|
10986
|
-
children: /* @__PURE__ */ n(
|
|
10984
|
+
children: /* @__PURE__ */ n(bu, {
|
|
10987
10985
|
data: i.event
|
|
10988
10986
|
})
|
|
10989
10987
|
};
|
|
@@ -10992,27 +10990,27 @@ const xu = (e) => {
|
|
|
10992
10990
|
mode: "alternate",
|
|
10993
10991
|
items: r
|
|
10994
10992
|
});
|
|
10995
|
-
},
|
|
10993
|
+
}, Cu = (e) => /* @__PURE__ */ n(we, {
|
|
10996
10994
|
...e,
|
|
10997
|
-
children: /* @__PURE__ */ n(
|
|
10995
|
+
children: /* @__PURE__ */ n(xu, {})
|
|
10998
10996
|
}), {
|
|
10999
|
-
Content:
|
|
10997
|
+
Content: Su
|
|
11000
10998
|
} = hi, {
|
|
11001
|
-
Title:
|
|
10999
|
+
Title: Tu
|
|
11002
11000
|
} = Ut;
|
|
11003
|
-
function
|
|
11001
|
+
function Fu() {
|
|
11004
11002
|
const {
|
|
11005
11003
|
t: e
|
|
11006
11004
|
} = W(ye);
|
|
11007
|
-
return /* @__PURE__ */ n(
|
|
11005
|
+
return /* @__PURE__ */ n(Su, {
|
|
11008
11006
|
className: "m-5 select-none",
|
|
11009
|
-
children: /* @__PURE__ */ n(
|
|
11007
|
+
children: /* @__PURE__ */ n(Tu, {
|
|
11010
11008
|
level: 5,
|
|
11011
11009
|
children: e("welcome")
|
|
11012
11010
|
})
|
|
11013
11011
|
});
|
|
11014
11012
|
}
|
|
11015
|
-
function
|
|
11013
|
+
function Ou(e, t) {
|
|
11016
11014
|
const {
|
|
11017
11015
|
children: r,
|
|
11018
11016
|
globalValues: i = {},
|
|
@@ -11022,7 +11020,7 @@ function Iu(e, t) {
|
|
|
11022
11020
|
title: Oe("welcome", s),
|
|
11023
11021
|
key: "welcome",
|
|
11024
11022
|
closable: !0,
|
|
11025
|
-
content: /* @__PURE__ */ n(
|
|
11023
|
+
content: /* @__PURE__ */ n(Fu, {})
|
|
11026
11024
|
}]), d = ue(/* @__PURE__ */ new Map()), u = ue();
|
|
11027
11025
|
xt(t, () => ({
|
|
11028
11026
|
retrieveAndOpenAction: p,
|
|
@@ -11374,9 +11372,9 @@ function Iu(e, t) {
|
|
|
11374
11372
|
});
|
|
11375
11373
|
}
|
|
11376
11374
|
}
|
|
11377
|
-
return /* @__PURE__ */ n(
|
|
11375
|
+
return /* @__PURE__ */ n(ls, {
|
|
11378
11376
|
lang: s,
|
|
11379
|
-
children: /* @__PURE__ */ n(
|
|
11377
|
+
children: /* @__PURE__ */ n(bl, {
|
|
11380
11378
|
openShortcut: v,
|
|
11381
11379
|
openAction: R,
|
|
11382
11380
|
openRelate: g,
|
|
@@ -11390,7 +11388,7 @@ function Iu(e, t) {
|
|
|
11390
11388
|
onChangeTab: (b) => {
|
|
11391
11389
|
l(b);
|
|
11392
11390
|
},
|
|
11393
|
-
children: /* @__PURE__ */ n(
|
|
11391
|
+
children: /* @__PURE__ */ n(Sl, {
|
|
11394
11392
|
ref: u,
|
|
11395
11393
|
globalValues: i,
|
|
11396
11394
|
children: r
|
|
@@ -11398,10 +11396,10 @@ function Iu(e, t) {
|
|
|
11398
11396
|
})
|
|
11399
11397
|
});
|
|
11400
11398
|
}
|
|
11401
|
-
const
|
|
11402
|
-
useToken:
|
|
11399
|
+
const sf = bt(Ou), {
|
|
11400
|
+
useToken: Iu
|
|
11403
11401
|
} = Pe;
|
|
11404
|
-
function
|
|
11402
|
+
function _u(e) {
|
|
11405
11403
|
const {
|
|
11406
11404
|
label: t,
|
|
11407
11405
|
onClose: r,
|
|
@@ -11410,7 +11408,7 @@ function Du(e) {
|
|
|
11410
11408
|
onSelected: s
|
|
11411
11409
|
} = e, {
|
|
11412
11410
|
token: a
|
|
11413
|
-
} =
|
|
11411
|
+
} = Iu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
|
|
11414
11412
|
return /* @__PURE__ */ P("div", {
|
|
11415
11413
|
onClick: () => {
|
|
11416
11414
|
!o && s(i);
|
|
@@ -11465,7 +11463,7 @@ function Du(e) {
|
|
|
11465
11463
|
})]
|
|
11466
11464
|
});
|
|
11467
11465
|
}
|
|
11468
|
-
function
|
|
11466
|
+
function af() {
|
|
11469
11467
|
const e = W(dt), {
|
|
11470
11468
|
activeKey: t,
|
|
11471
11469
|
tabs: r,
|
|
@@ -11473,7 +11471,7 @@ function cf() {
|
|
|
11473
11471
|
onChangeTab: o
|
|
11474
11472
|
} = e || {};
|
|
11475
11473
|
return /* @__PURE__ */ n(te, {
|
|
11476
|
-
children: r.map((s) => /* @__PURE__ */ n(
|
|
11474
|
+
children: r.map((s) => /* @__PURE__ */ n(_u, {
|
|
11477
11475
|
tabKey: s.key,
|
|
11478
11476
|
label: s.title,
|
|
11479
11477
|
onClose: i,
|
|
@@ -11482,7 +11480,7 @@ function cf() {
|
|
|
11482
11480
|
}, s.key))
|
|
11483
11481
|
});
|
|
11484
11482
|
}
|
|
11485
|
-
function
|
|
11483
|
+
function Du(e) {
|
|
11486
11484
|
const {
|
|
11487
11485
|
tab: t
|
|
11488
11486
|
} = e, r = W(dt), {
|
|
@@ -11495,11 +11493,11 @@ function Au(e) {
|
|
|
11495
11493
|
children: t.content
|
|
11496
11494
|
});
|
|
11497
11495
|
}
|
|
11498
|
-
const
|
|
11499
|
-
function
|
|
11496
|
+
const Au = Qe.memo(Du, () => !0);
|
|
11497
|
+
function lf() {
|
|
11500
11498
|
const e = W(dt), {
|
|
11501
11499
|
tabs: t
|
|
11502
|
-
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(
|
|
11500
|
+
} = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Au, {
|
|
11503
11501
|
tab: i
|
|
11504
11502
|
}, i.key))) || null;
|
|
11505
11503
|
return /* @__PURE__ */ n(te, {
|
|
@@ -11507,8 +11505,8 @@ function df() {
|
|
|
11507
11505
|
});
|
|
11508
11506
|
}
|
|
11509
11507
|
const {
|
|
11510
|
-
useToken:
|
|
11511
|
-
} = Pe,
|
|
11508
|
+
useToken: Ru
|
|
11509
|
+
} = Pe, cf = (e) => {
|
|
11512
11510
|
const {
|
|
11513
11511
|
onRetrieveShortcuts: t,
|
|
11514
11512
|
onCheckIsFavourite: r,
|
|
@@ -11518,7 +11516,7 @@ const {
|
|
|
11518
11516
|
t: h
|
|
11519
11517
|
} = W(ye) || {}, {
|
|
11520
11518
|
token: g
|
|
11521
|
-
} =
|
|
11519
|
+
} = Ru(), v = W(dt), {
|
|
11522
11520
|
openShortcut: C,
|
|
11523
11521
|
tabs: R,
|
|
11524
11522
|
activeKey: b,
|
|
@@ -11705,58 +11703,58 @@ const {
|
|
|
11705
11703
|
});
|
|
11706
11704
|
};
|
|
11707
11705
|
export {
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11706
|
+
Od as ActionBar,
|
|
11707
|
+
wd as Binary,
|
|
11708
|
+
Is as Boolean,
|
|
11711
11709
|
io as Button,
|
|
11712
|
-
|
|
11710
|
+
fs as ButtonGroup,
|
|
11713
11711
|
lo as Char,
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11712
|
+
hu as CodeEditor,
|
|
11713
|
+
Cu as CommentsTimelineField,
|
|
11714
|
+
Nd as ConfigContext,
|
|
11717
11715
|
H as ConnectionProvider,
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11716
|
+
Sl as ContentRootProvider,
|
|
11717
|
+
lf as CurrentTabContent,
|
|
11718
|
+
ru as Dashboard,
|
|
11719
|
+
zd as DashboardGrid,
|
|
11720
|
+
Xd as DashboardGridItem,
|
|
11721
|
+
ud as Date,
|
|
11722
|
+
fd as DateTime,
|
|
11723
|
+
Dd as Email,
|
|
11724
|
+
dd as ExportModal,
|
|
11725
|
+
cf as FavouriteButton,
|
|
11728
11726
|
To as Float,
|
|
11729
|
-
|
|
11727
|
+
qc as FloatTime,
|
|
11730
11728
|
Zt as Form,
|
|
11731
11729
|
Xt as FormModal,
|
|
11732
|
-
|
|
11730
|
+
xc as GraphIndicator,
|
|
11733
11731
|
No as Group,
|
|
11734
|
-
|
|
11732
|
+
Aa as Image,
|
|
11735
11733
|
on as Integer,
|
|
11736
11734
|
mn as Label,
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11735
|
+
vc as Many2one,
|
|
11736
|
+
su as Markdown,
|
|
11737
|
+
ou as MultiCheckbox,
|
|
11738
|
+
Zc as Notebook,
|
|
11739
|
+
Uc as One2many,
|
|
11740
|
+
Wl as ProgressBar,
|
|
11741
|
+
lu as Radio,
|
|
11742
|
+
gd as Reference,
|
|
11743
|
+
sf as RootView,
|
|
11746
11744
|
Fo as SearchFilter,
|
|
11747
11745
|
ko as SearchModal,
|
|
11748
11746
|
Vo as SearchTree,
|
|
11749
11747
|
co as Selection,
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11748
|
+
td as Separator,
|
|
11749
|
+
fu as Steps,
|
|
11750
|
+
du as Switch,
|
|
11751
|
+
af as TabSelector,
|
|
11752
|
+
za as Tag,
|
|
11753
|
+
Ja as Tags,
|
|
11754
|
+
Qc as Text,
|
|
11755
|
+
hd as Time,
|
|
11758
11756
|
gn as Tree,
|
|
11759
|
-
|
|
11757
|
+
_d as Url,
|
|
11760
11758
|
ct as iconMapper,
|
|
11761
11759
|
zt as showConfirmDialog
|
|
11762
11760
|
};
|