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