@gisce/ooui 2.21.0-alpha.2 → 2.21.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Group.d.ts +2 -2
- package/dist/Group.d.ts.map +1 -1
- package/dist/Page.d.ts +2 -2
- package/dist/Page.d.ts.map +1 -1
- package/dist/ooui.es.js +219 -219
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Group.ts +2 -2
- package/src/Page.ts +2 -2
- package/src/spec/Group.spec.ts +19 -0
- package/src/spec/Page.spec.ts +19 -0
package/dist/ooui.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (i, t, e) => (
|
|
4
|
-
import { decode as
|
|
5
|
-
import { evaluateCondition as
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var me = (i, t, e) => t in i ? ge(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var n = (i, t, e) => (me(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { decode as be } from "html-entities";
|
|
5
|
+
import { evaluateCondition as ye } from "@gisce/conscheck";
|
|
6
6
|
import * as Y from "txml";
|
|
7
7
|
import P from "moment";
|
|
8
|
-
const
|
|
8
|
+
const pe = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), xe = ({
|
|
9
9
|
entry: i,
|
|
10
10
|
values: t,
|
|
11
11
|
fields: e
|
|
12
12
|
}) => {
|
|
13
13
|
let [s, r, a] = i, l = t[s];
|
|
14
|
-
const o =
|
|
14
|
+
const o = Q({
|
|
15
15
|
fieldName: s,
|
|
16
16
|
valueInObject: l,
|
|
17
17
|
expectedValue: a,
|
|
@@ -41,7 +41,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
41
41
|
default:
|
|
42
42
|
return !1;
|
|
43
43
|
}
|
|
44
|
-
}, b = (i) =>
|
|
44
|
+
}, b = (i) => be(i, { level: "xml" }), Q = ({
|
|
45
45
|
fieldName: i,
|
|
46
46
|
valueInObject: t,
|
|
47
47
|
expectedValue: e,
|
|
@@ -61,7 +61,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
61
61
|
modifiedExpectedValue: null,
|
|
62
62
|
directOutcome: !1
|
|
63
63
|
} : (r.modifiedValueInObject = s[i].type === "boolean" ? !!t : t, s[i].type === "many2one" && e === !1 && t === void 0 ? r.modifiedExpectedValue = void 0 : (r.modifiedValueInObject = r.modifiedValueInObject === void 0 ? !1 : r.modifiedValueInObject, r.modifiedValueInObject = r.modifiedValueInObject === null ? !1 : r.modifiedValueInObject), s[i].type === "many2one" && Array.isArray(r.modifiedValueInObject) && r.modifiedValueInObject[0] === void 0 && (r.modifiedValueInObject = !1), s[i].type === "boolean" && (e === 0 || e === 1) && (r.modifiedExpectedValue = e !== 0), r);
|
|
64
|
-
},
|
|
64
|
+
}, we = ({
|
|
65
65
|
attrs: i,
|
|
66
66
|
values: t,
|
|
67
67
|
fields: e,
|
|
@@ -69,11 +69,11 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
69
69
|
}) => {
|
|
70
70
|
const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = b(d), h = JSON.parse(_), u = {};
|
|
71
71
|
for (const g of Object.keys(h)) {
|
|
72
|
-
const p = h[g].map((y) =>
|
|
72
|
+
const p = h[g].map((y) => xe({ entry: y, values: t, fields: e })).every((y) => y);
|
|
73
73
|
p ? u[g] = !0 : g === "readonly" && !p && s === "button" && (u[g] = !1);
|
|
74
74
|
}
|
|
75
75
|
return u;
|
|
76
|
-
},
|
|
76
|
+
}, ve = ({
|
|
77
77
|
attrs: i,
|
|
78
78
|
values: t,
|
|
79
79
|
fields: e,
|
|
@@ -84,14 +84,14 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
84
84
|
r.replace(/'/g, '"')
|
|
85
85
|
), l = {};
|
|
86
86
|
for (const o of Object.keys(a)) {
|
|
87
|
-
const d =
|
|
87
|
+
const d = ye({
|
|
88
88
|
object: t,
|
|
89
89
|
condition: a[o],
|
|
90
90
|
evaluateFieldComparison: ({
|
|
91
91
|
fieldName: _,
|
|
92
92
|
valueInObject: h,
|
|
93
93
|
expectedValue: u
|
|
94
|
-
}) =>
|
|
94
|
+
}) => Q({
|
|
95
95
|
fieldName: _,
|
|
96
96
|
valueInObject: h,
|
|
97
97
|
expectedValue: u,
|
|
@@ -106,7 +106,7 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
106
106
|
"Error parsing new json_attrs. Original string: " + i
|
|
107
107
|
) : r;
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, Fe = ({
|
|
110
110
|
tagAttributes: i,
|
|
111
111
|
values: t,
|
|
112
112
|
fields: e,
|
|
@@ -114,14 +114,14 @@ const ye = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), pe
|
|
|
114
114
|
fallbackMode: r = !0
|
|
115
115
|
}) => {
|
|
116
116
|
let a = {}, l = {};
|
|
117
|
-
if (i.attrs && (l =
|
|
117
|
+
if (i.attrs && (l = we({
|
|
118
118
|
attrs: i.attrs,
|
|
119
119
|
values: t,
|
|
120
120
|
fields: e,
|
|
121
121
|
widgetType: s
|
|
122
122
|
})), i.json_attrs)
|
|
123
123
|
try {
|
|
124
|
-
a =
|
|
124
|
+
a = ve({
|
|
125
125
|
attrs: i.json_attrs,
|
|
126
126
|
values: t,
|
|
127
127
|
fields: e,
|
|
@@ -305,7 +305,7 @@ class f extends C {
|
|
|
305
305
|
*/
|
|
306
306
|
n(this, "_fieldType", "");
|
|
307
307
|
n(this, "_autoRefresh", !1);
|
|
308
|
-
this._activated = !0, e && (e.name && (this._id = e.name), e.type && (this._fieldType = e.fieldsWidgetType), e.activated && (this._activated = e.activated), e.string && (this._label = b(e.string)), e.help && (this._tooltip = b(e.help)), e.nolabel && (e.nolabel === "1" || typeof e.nolabel == "boolean" && e.nolabel === !0) && (this._nolabel = !0), e.required && (e.required === "1" || e.required === !0 || e.required === "True") && (this._required = !0), e.sum && (this._sum = b(e.sum)), e.selection && (this._selectionValues = new Map(e.selection)), e.help_inline && (this.tooltipInline =
|
|
308
|
+
this._activated = !0, e && (e.name && (this._id = e.name), e.type && (this._fieldType = e.fieldsWidgetType), e.activated && (this._activated = e.activated), e.string && (this._label = b(e.string)), e.help && (this._tooltip = b(e.help)), e.nolabel && (e.nolabel === "1" || typeof e.nolabel == "boolean" && e.nolabel === !0) && (this._nolabel = !0), e.required && (e.required === "1" || e.required === !0 || e.required === "True") && (this._required = !0), e.sum && (this._sum = b(e.sum)), e.selection && (this._selectionValues = new Map(e.selection)), e.help_inline && (this.tooltipInline = pe(e.help_inline)), e.autorefresh && (this.autoRefresh = D(e.autorefresh)));
|
|
309
309
|
}
|
|
310
310
|
get id() {
|
|
311
311
|
return this._id;
|
|
@@ -384,14 +384,14 @@ class f extends C {
|
|
|
384
384
|
return this._id === e ? this : null;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class Ce extends f {
|
|
388
388
|
}
|
|
389
|
-
class
|
|
389
|
+
class X extends C {
|
|
390
390
|
findById(t) {
|
|
391
391
|
return null;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
class
|
|
394
|
+
class U extends f {
|
|
395
395
|
constructor(e) {
|
|
396
396
|
super({ ...e, nolabel: !0 });
|
|
397
397
|
/**
|
|
@@ -514,13 +514,13 @@ class z {
|
|
|
514
514
|
}
|
|
515
515
|
addWidget(t, e) {
|
|
516
516
|
const s = [], r = e ? e.addLabel : !0;
|
|
517
|
-
if (t instanceof
|
|
517
|
+
if (t instanceof X) {
|
|
518
518
|
this._rows.push([]), this._index++;
|
|
519
519
|
return;
|
|
520
520
|
}
|
|
521
521
|
if (t.colspan > this._columns && (t.colspan = this._columns), t.readOnly = t.readOnly || this.readOnly, r && t instanceof f && !t.nolabel) {
|
|
522
522
|
t.colspan > 1 && (t.colspan -= 1);
|
|
523
|
-
const l = new
|
|
523
|
+
const l = new U({
|
|
524
524
|
name: t.id + "_label",
|
|
525
525
|
string: t.label,
|
|
526
526
|
invisible: t.invisible,
|
|
@@ -623,8 +623,8 @@ const O = class O extends C {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
n(O, "_defaultColspan", 6);
|
|
626
|
-
let
|
|
627
|
-
const T = class T extends
|
|
626
|
+
let v = O;
|
|
627
|
+
const T = class T extends v {
|
|
628
628
|
constructor(e) {
|
|
629
629
|
super(e);
|
|
630
630
|
n(this, "_tabPosition", "top");
|
|
@@ -649,7 +649,20 @@ const T = class T extends x {
|
|
|
649
649
|
};
|
|
650
650
|
n(T, "_defaultColspan", 3);
|
|
651
651
|
let M = T;
|
|
652
|
-
class
|
|
652
|
+
class B extends v {
|
|
653
|
+
constructor(e) {
|
|
654
|
+
super(e);
|
|
655
|
+
n(this, "_loading", !1);
|
|
656
|
+
e && e.loading && (this._loading = e.loading);
|
|
657
|
+
}
|
|
658
|
+
get loading() {
|
|
659
|
+
return this._loading;
|
|
660
|
+
}
|
|
661
|
+
set loading(e) {
|
|
662
|
+
this._loading = e;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
class ke extends B {
|
|
653
666
|
constructor(e) {
|
|
654
667
|
super(e);
|
|
655
668
|
n(this, "_icon", null);
|
|
@@ -662,7 +675,7 @@ class Ce extends x {
|
|
|
662
675
|
this._icon = e;
|
|
663
676
|
}
|
|
664
677
|
}
|
|
665
|
-
class
|
|
678
|
+
class Oe extends B {
|
|
666
679
|
constructor(e) {
|
|
667
680
|
super(e);
|
|
668
681
|
n(this, "_icon", null);
|
|
@@ -675,7 +688,7 @@ class ke extends x {
|
|
|
675
688
|
this._icon = e;
|
|
676
689
|
}
|
|
677
690
|
}
|
|
678
|
-
class
|
|
691
|
+
class K extends f {
|
|
679
692
|
constructor(e) {
|
|
680
693
|
super({
|
|
681
694
|
...e,
|
|
@@ -747,7 +760,7 @@ class U extends f {
|
|
|
747
760
|
this._danger = e;
|
|
748
761
|
}
|
|
749
762
|
}
|
|
750
|
-
class
|
|
763
|
+
class Te extends v {
|
|
751
764
|
constructor(e) {
|
|
752
765
|
super(e);
|
|
753
766
|
n(this, "_defaultName", "");
|
|
@@ -778,7 +791,7 @@ class Oe extends x {
|
|
|
778
791
|
return this._container.rows.flat().filter((e) => !e.invisible);
|
|
779
792
|
}
|
|
780
793
|
}
|
|
781
|
-
class
|
|
794
|
+
class q extends f {
|
|
782
795
|
constructor(e) {
|
|
783
796
|
super(e);
|
|
784
797
|
/**
|
|
@@ -821,7 +834,7 @@ class $ extends f {
|
|
|
821
834
|
this._translatable = e;
|
|
822
835
|
}
|
|
823
836
|
}
|
|
824
|
-
class
|
|
837
|
+
class L extends f {
|
|
825
838
|
constructor(e) {
|
|
826
839
|
super(e);
|
|
827
840
|
/**
|
|
@@ -901,7 +914,7 @@ class W extends f {
|
|
|
901
914
|
this._size = e;
|
|
902
915
|
}
|
|
903
916
|
}
|
|
904
|
-
class
|
|
917
|
+
class Pe extends f {
|
|
905
918
|
constructor(e) {
|
|
906
919
|
super(e);
|
|
907
920
|
/**
|
|
@@ -927,19 +940,19 @@ class Te extends f {
|
|
|
927
940
|
this._relation = e;
|
|
928
941
|
}
|
|
929
942
|
}
|
|
930
|
-
class
|
|
943
|
+
class We extends L {
|
|
931
944
|
}
|
|
932
|
-
class
|
|
945
|
+
class Z extends f {
|
|
933
946
|
constructor(t) {
|
|
934
947
|
super(t);
|
|
935
948
|
}
|
|
936
949
|
}
|
|
937
|
-
class
|
|
950
|
+
class Ee extends f {
|
|
938
951
|
constructor(t) {
|
|
939
952
|
super(t);
|
|
940
953
|
}
|
|
941
954
|
}
|
|
942
|
-
class
|
|
955
|
+
class G extends f {
|
|
943
956
|
constructor(e) {
|
|
944
957
|
super(e);
|
|
945
958
|
/**
|
|
@@ -972,23 +985,23 @@ class L extends f {
|
|
|
972
985
|
this._decimalDigits = e;
|
|
973
986
|
}
|
|
974
987
|
}
|
|
975
|
-
class
|
|
988
|
+
class Ie extends G {
|
|
976
989
|
}
|
|
977
|
-
class
|
|
990
|
+
class Se extends f {
|
|
978
991
|
}
|
|
979
|
-
class
|
|
992
|
+
class ze extends G {
|
|
980
993
|
}
|
|
981
|
-
class
|
|
994
|
+
class Ve extends f {
|
|
982
995
|
constructor(t) {
|
|
983
996
|
super(t);
|
|
984
997
|
}
|
|
985
998
|
}
|
|
986
|
-
class
|
|
999
|
+
class Ye extends f {
|
|
987
1000
|
constructor(t) {
|
|
988
1001
|
super(t);
|
|
989
1002
|
}
|
|
990
1003
|
}
|
|
991
|
-
class
|
|
1004
|
+
class ee extends f {
|
|
992
1005
|
constructor(e) {
|
|
993
1006
|
super(e);
|
|
994
1007
|
/**
|
|
@@ -1082,7 +1095,7 @@ class Z extends f {
|
|
|
1082
1095
|
this._infinite = e;
|
|
1083
1096
|
}
|
|
1084
1097
|
}
|
|
1085
|
-
class
|
|
1098
|
+
class De extends C {
|
|
1086
1099
|
constructor(e) {
|
|
1087
1100
|
super(e);
|
|
1088
1101
|
/**
|
|
@@ -1108,9 +1121,9 @@ class Ye extends C {
|
|
|
1108
1121
|
return null;
|
|
1109
1122
|
}
|
|
1110
1123
|
}
|
|
1111
|
-
class
|
|
1124
|
+
class je extends W {
|
|
1112
1125
|
}
|
|
1113
|
-
class
|
|
1126
|
+
class Me extends f {
|
|
1114
1127
|
constructor(e) {
|
|
1115
1128
|
super(e);
|
|
1116
1129
|
/**
|
|
@@ -1126,18 +1139,18 @@ class je extends f {
|
|
|
1126
1139
|
this._filenameField = e;
|
|
1127
1140
|
}
|
|
1128
1141
|
}
|
|
1129
|
-
class
|
|
1142
|
+
class Ne extends f {
|
|
1130
1143
|
get showControls() {
|
|
1131
1144
|
var t;
|
|
1132
1145
|
return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
|
|
1133
1146
|
}
|
|
1134
1147
|
}
|
|
1135
|
-
class
|
|
1148
|
+
class Ae extends f {
|
|
1136
1149
|
constructor(t) {
|
|
1137
1150
|
super(t);
|
|
1138
1151
|
}
|
|
1139
1152
|
}
|
|
1140
|
-
class
|
|
1153
|
+
class Be extends ee {
|
|
1141
1154
|
constructor(e) {
|
|
1142
1155
|
super(e);
|
|
1143
1156
|
/**
|
|
@@ -1169,7 +1182,7 @@ class Ae extends Z {
|
|
|
1169
1182
|
return this.parsedWidgetProps.colorField;
|
|
1170
1183
|
}
|
|
1171
1184
|
}
|
|
1172
|
-
class
|
|
1185
|
+
class Le extends W {
|
|
1173
1186
|
constructor(e) {
|
|
1174
1187
|
super(e);
|
|
1175
1188
|
n(this, "_nolabel", !0);
|
|
@@ -1219,7 +1232,7 @@ class Be extends W {
|
|
|
1219
1232
|
this._height = e;
|
|
1220
1233
|
}
|
|
1221
1234
|
}
|
|
1222
|
-
class
|
|
1235
|
+
class te extends f {
|
|
1223
1236
|
constructor(e) {
|
|
1224
1237
|
super(e);
|
|
1225
1238
|
/**
|
|
@@ -1272,14 +1285,14 @@ class ee extends f {
|
|
|
1272
1285
|
this._columns = e;
|
|
1273
1286
|
}
|
|
1274
1287
|
}
|
|
1275
|
-
class
|
|
1288
|
+
class Ge extends te {
|
|
1276
1289
|
}
|
|
1277
|
-
class
|
|
1290
|
+
class Re extends W {
|
|
1278
1291
|
get colors() {
|
|
1279
1292
|
return this._parsedWidgetProps.colors || {};
|
|
1280
1293
|
}
|
|
1281
1294
|
}
|
|
1282
|
-
class
|
|
1295
|
+
class $e extends W {
|
|
1283
1296
|
constructor(e) {
|
|
1284
1297
|
super(e);
|
|
1285
1298
|
/**
|
|
@@ -1295,9 +1308,9 @@ class Re extends W {
|
|
|
1295
1308
|
this._direction = e;
|
|
1296
1309
|
}
|
|
1297
1310
|
}
|
|
1298
|
-
class
|
|
1311
|
+
class qe extends Z {
|
|
1299
1312
|
}
|
|
1300
|
-
class
|
|
1313
|
+
class Je extends f {
|
|
1301
1314
|
constructor(e) {
|
|
1302
1315
|
super(e);
|
|
1303
1316
|
/**
|
|
@@ -1327,7 +1340,7 @@ class qe extends f {
|
|
|
1327
1340
|
this._lastStep = e;
|
|
1328
1341
|
}
|
|
1329
1342
|
}
|
|
1330
|
-
class
|
|
1343
|
+
class ie extends L {
|
|
1331
1344
|
constructor(e) {
|
|
1332
1345
|
super(e);
|
|
1333
1346
|
n(this, "_lang", null);
|
|
@@ -1340,12 +1353,12 @@ class te extends B {
|
|
|
1340
1353
|
this._lang = e;
|
|
1341
1354
|
}
|
|
1342
1355
|
}
|
|
1343
|
-
class
|
|
1356
|
+
class He extends f {
|
|
1344
1357
|
constructor(t) {
|
|
1345
1358
|
super(t);
|
|
1346
1359
|
}
|
|
1347
1360
|
}
|
|
1348
|
-
class
|
|
1361
|
+
class Qe extends v {
|
|
1349
1362
|
constructor(e) {
|
|
1350
1363
|
super(e);
|
|
1351
1364
|
/**
|
|
@@ -1385,7 +1398,7 @@ class He extends x {
|
|
|
1385
1398
|
return this._container.rows.flat().filter((e) => !e.invisible);
|
|
1386
1399
|
}
|
|
1387
1400
|
}
|
|
1388
|
-
class
|
|
1401
|
+
class Xe extends f {
|
|
1389
1402
|
constructor(e) {
|
|
1390
1403
|
super(e);
|
|
1391
1404
|
/**
|
|
@@ -1404,13 +1417,13 @@ class Qe extends f {
|
|
|
1404
1417
|
this._height = e;
|
|
1405
1418
|
}
|
|
1406
1419
|
}
|
|
1407
|
-
class
|
|
1420
|
+
class J extends ie {
|
|
1408
1421
|
constructor() {
|
|
1409
1422
|
super(...arguments);
|
|
1410
1423
|
n(this, "_lang", "json");
|
|
1411
1424
|
}
|
|
1412
1425
|
}
|
|
1413
|
-
class
|
|
1426
|
+
class Ue extends f {
|
|
1414
1427
|
constructor(e) {
|
|
1415
1428
|
super(e);
|
|
1416
1429
|
n(this, "_multi", !1);
|
|
@@ -1430,20 +1443,7 @@ class Xe extends f {
|
|
|
1430
1443
|
this._size = e;
|
|
1431
1444
|
}
|
|
1432
1445
|
}
|
|
1433
|
-
class
|
|
1434
|
-
constructor(e) {
|
|
1435
|
-
super(e);
|
|
1436
|
-
n(this, "_loading", !1);
|
|
1437
|
-
e && e.loading && (this._loading = e.loading);
|
|
1438
|
-
}
|
|
1439
|
-
get loading() {
|
|
1440
|
-
return this._loading;
|
|
1441
|
-
}
|
|
1442
|
-
set loading(e) {
|
|
1443
|
-
this._loading = e;
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
class G {
|
|
1446
|
+
class R {
|
|
1447
1447
|
constructor() {
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Widget class
|
|
@@ -1456,135 +1456,135 @@ class G {
|
|
|
1456
1456
|
this._widgetClass = M;
|
|
1457
1457
|
break;
|
|
1458
1458
|
case "page":
|
|
1459
|
-
this._widgetClass =
|
|
1459
|
+
this._widgetClass = ke;
|
|
1460
1460
|
break;
|
|
1461
1461
|
case "group":
|
|
1462
|
-
this._widgetClass =
|
|
1462
|
+
this._widgetClass = Oe;
|
|
1463
1463
|
break;
|
|
1464
1464
|
case "label":
|
|
1465
|
-
this._widgetClass =
|
|
1465
|
+
this._widgetClass = U;
|
|
1466
1466
|
break;
|
|
1467
1467
|
case "char":
|
|
1468
|
-
this._widgetClass =
|
|
1468
|
+
this._widgetClass = q;
|
|
1469
1469
|
break;
|
|
1470
1470
|
case "text":
|
|
1471
|
-
this._widgetClass =
|
|
1471
|
+
this._widgetClass = L;
|
|
1472
1472
|
break;
|
|
1473
1473
|
case "button":
|
|
1474
|
-
this._widgetClass =
|
|
1474
|
+
this._widgetClass = K;
|
|
1475
1475
|
break;
|
|
1476
1476
|
case "buttonGroup":
|
|
1477
|
-
this._widgetClass =
|
|
1477
|
+
this._widgetClass = Te;
|
|
1478
1478
|
break;
|
|
1479
1479
|
case "selection":
|
|
1480
1480
|
this._widgetClass = W;
|
|
1481
1481
|
break;
|
|
1482
1482
|
case "many2one":
|
|
1483
|
-
this._widgetClass =
|
|
1483
|
+
this._widgetClass = Pe;
|
|
1484
1484
|
break;
|
|
1485
1485
|
case "boolean":
|
|
1486
|
-
this._widgetClass =
|
|
1486
|
+
this._widgetClass = Z;
|
|
1487
1487
|
break;
|
|
1488
1488
|
case "integer":
|
|
1489
|
-
this._widgetClass =
|
|
1489
|
+
this._widgetClass = Ee;
|
|
1490
1490
|
break;
|
|
1491
1491
|
case "float":
|
|
1492
|
-
this._widgetClass =
|
|
1492
|
+
this._widgetClass = G;
|
|
1493
1493
|
break;
|
|
1494
1494
|
case "float_time":
|
|
1495
|
-
this._widgetClass =
|
|
1495
|
+
this._widgetClass = Ie;
|
|
1496
1496
|
break;
|
|
1497
1497
|
case "date":
|
|
1498
|
-
this._widgetClass =
|
|
1498
|
+
this._widgetClass = Ve;
|
|
1499
1499
|
break;
|
|
1500
1500
|
case "datetime":
|
|
1501
|
-
this._widgetClass =
|
|
1501
|
+
this._widgetClass = Ye;
|
|
1502
1502
|
break;
|
|
1503
1503
|
case "progressbar":
|
|
1504
|
-
this._widgetClass =
|
|
1504
|
+
this._widgetClass = ze;
|
|
1505
1505
|
break;
|
|
1506
1506
|
case "markdown":
|
|
1507
|
-
this._widgetClass =
|
|
1507
|
+
this._widgetClass = We;
|
|
1508
1508
|
break;
|
|
1509
1509
|
case "many2many":
|
|
1510
1510
|
case "one2many":
|
|
1511
1511
|
case "one2many_list":
|
|
1512
|
-
this._widgetClass =
|
|
1512
|
+
this._widgetClass = ee;
|
|
1513
1513
|
break;
|
|
1514
1514
|
case "newline":
|
|
1515
|
-
this._widgetClass =
|
|
1515
|
+
this._widgetClass = X;
|
|
1516
1516
|
break;
|
|
1517
1517
|
case "separator":
|
|
1518
|
-
this._widgetClass =
|
|
1518
|
+
this._widgetClass = De;
|
|
1519
1519
|
break;
|
|
1520
1520
|
case "url":
|
|
1521
|
-
this._widgetClass =
|
|
1521
|
+
this._widgetClass = q;
|
|
1522
1522
|
break;
|
|
1523
1523
|
case "email":
|
|
1524
|
-
this._widgetClass =
|
|
1524
|
+
this._widgetClass = Ue;
|
|
1525
1525
|
break;
|
|
1526
1526
|
case "reference":
|
|
1527
|
-
this._widgetClass =
|
|
1527
|
+
this._widgetClass = je;
|
|
1528
1528
|
break;
|
|
1529
1529
|
case "binary":
|
|
1530
|
-
this._widgetClass =
|
|
1530
|
+
this._widgetClass = Me;
|
|
1531
1531
|
break;
|
|
1532
1532
|
case "image":
|
|
1533
|
-
this._widgetClass =
|
|
1533
|
+
this._widgetClass = Ne;
|
|
1534
1534
|
break;
|
|
1535
1535
|
case "fiber_grid":
|
|
1536
|
-
this._widgetClass =
|
|
1536
|
+
this._widgetClass = Ae;
|
|
1537
1537
|
break;
|
|
1538
1538
|
case "timeline":
|
|
1539
|
-
this._widgetClass =
|
|
1539
|
+
this._widgetClass = Be;
|
|
1540
1540
|
break;
|
|
1541
1541
|
case "indicator":
|
|
1542
|
-
this._widgetClass =
|
|
1542
|
+
this._widgetClass = Le;
|
|
1543
1543
|
break;
|
|
1544
1544
|
case "tags":
|
|
1545
|
-
this._widgetClass =
|
|
1545
|
+
this._widgetClass = Ge;
|
|
1546
1546
|
break;
|
|
1547
1547
|
case "tag":
|
|
1548
|
-
this._widgetClass =
|
|
1548
|
+
this._widgetClass = Re;
|
|
1549
1549
|
break;
|
|
1550
1550
|
case "avatar":
|
|
1551
|
-
this._widgetClass =
|
|
1551
|
+
this._widgetClass = Ce;
|
|
1552
1552
|
break;
|
|
1553
1553
|
case "radio":
|
|
1554
|
-
this._widgetClass =
|
|
1554
|
+
this._widgetClass = $e;
|
|
1555
1555
|
break;
|
|
1556
1556
|
case "multicheckbox":
|
|
1557
|
-
this._widgetClass =
|
|
1557
|
+
this._widgetClass = te;
|
|
1558
1558
|
break;
|
|
1559
1559
|
case "switch":
|
|
1560
|
-
this._widgetClass =
|
|
1560
|
+
this._widgetClass = qe;
|
|
1561
1561
|
break;
|
|
1562
1562
|
case "steps":
|
|
1563
|
-
this._widgetClass =
|
|
1563
|
+
this._widgetClass = Je;
|
|
1564
1564
|
break;
|
|
1565
1565
|
case "codeeditor":
|
|
1566
|
-
this._widgetClass =
|
|
1566
|
+
this._widgetClass = ie;
|
|
1567
1567
|
break;
|
|
1568
1568
|
case "time":
|
|
1569
|
-
this._widgetClass =
|
|
1569
|
+
this._widgetClass = He;
|
|
1570
1570
|
break;
|
|
1571
1571
|
case "html_preview":
|
|
1572
|
-
this._widgetClass =
|
|
1572
|
+
this._widgetClass = Se;
|
|
1573
1573
|
break;
|
|
1574
1574
|
case "alert":
|
|
1575
|
-
this._widgetClass =
|
|
1575
|
+
this._widgetClass = Qe;
|
|
1576
1576
|
break;
|
|
1577
1577
|
case "comments_timeline":
|
|
1578
|
-
this._widgetClass =
|
|
1578
|
+
this._widgetClass = Xe;
|
|
1579
1579
|
break;
|
|
1580
1580
|
case "json":
|
|
1581
|
-
this._widgetClass =
|
|
1581
|
+
this._widgetClass = J;
|
|
1582
1582
|
break;
|
|
1583
1583
|
case "arrow_steps":
|
|
1584
|
-
this._widgetClass =
|
|
1584
|
+
this._widgetClass = J;
|
|
1585
1585
|
break;
|
|
1586
1586
|
case "spinner":
|
|
1587
|
-
this._widgetClass =
|
|
1587
|
+
this._widgetClass = B;
|
|
1588
1588
|
break;
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
@@ -1650,7 +1650,7 @@ function et({
|
|
|
1650
1650
|
const s = ((r = e[t]) == null ? void 0 : r.type) || "passthrough";
|
|
1651
1651
|
return s === "many2one" ? i[t] ? i[t][0] || null : !1 : s === "one2many" || s === "many2many" ? i[t].map((a) => a.id) : i != null && i[t] ? i == null ? void 0 : i[t] : t.includes("'") ? t : parseInt(t);
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1653
|
+
const se = ({
|
|
1654
1654
|
context: i,
|
|
1655
1655
|
values: t,
|
|
1656
1656
|
fields: e
|
|
@@ -1658,9 +1658,9 @@ const ie = ({
|
|
|
1658
1658
|
try {
|
|
1659
1659
|
if (!i)
|
|
1660
1660
|
return;
|
|
1661
|
-
if (
|
|
1661
|
+
if (re(i) || typeof i != "string")
|
|
1662
1662
|
return i;
|
|
1663
|
-
const s =
|
|
1663
|
+
const s = ne(i);
|
|
1664
1664
|
if (s !== null)
|
|
1665
1665
|
return s;
|
|
1666
1666
|
if (i.trim().length === 0)
|
|
@@ -1687,21 +1687,21 @@ const ie = ({
|
|
|
1687
1687
|
}, kt = (i) => {
|
|
1688
1688
|
const t = [];
|
|
1689
1689
|
try {
|
|
1690
|
-
return !i ||
|
|
1690
|
+
return !i || re(i) || typeof i != "string" ? t : ne(i) !== null ? [] : (i.trim().length === 0 || i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((u) => u.split(":")).forEach((u) => {
|
|
1691
1691
|
!u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && t.push(u[1].replace(/'/g, ""));
|
|
1692
1692
|
}), t);
|
|
1693
1693
|
} catch {
|
|
1694
1694
|
}
|
|
1695
1695
|
return t;
|
|
1696
1696
|
};
|
|
1697
|
-
function
|
|
1697
|
+
function ne(i) {
|
|
1698
1698
|
try {
|
|
1699
1699
|
return JSON.parse(i.replace(/'/g, '"'));
|
|
1700
1700
|
} catch {
|
|
1701
1701
|
return null;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function re(i) {
|
|
1705
1705
|
return typeof i == "object" && i !== null && typeof i != "string";
|
|
1706
1706
|
}
|
|
1707
1707
|
const tt = (i) => {
|
|
@@ -1716,7 +1716,7 @@ function it(i) {
|
|
|
1716
1716
|
function e(s) {
|
|
1717
1717
|
const r = [];
|
|
1718
1718
|
for (const a of s)
|
|
1719
|
-
a instanceof
|
|
1719
|
+
a instanceof v ? e(a._container.rows.flat()) : r.push(a);
|
|
1720
1720
|
r.length > 0 && t.push(r);
|
|
1721
1721
|
}
|
|
1722
1722
|
for (const s of i)
|
|
@@ -1850,29 +1850,29 @@ class Ot {
|
|
|
1850
1850
|
container: e,
|
|
1851
1851
|
values: s
|
|
1852
1852
|
}) {
|
|
1853
|
-
const r = new
|
|
1853
|
+
const r = new R();
|
|
1854
1854
|
t.filter((a) => typeof a == "object").forEach((a) => {
|
|
1855
|
-
var
|
|
1855
|
+
var x, F;
|
|
1856
1856
|
const { tagName: l, attributes: o, children: d } = a;
|
|
1857
1857
|
let _ = l, h = o;
|
|
1858
1858
|
if (l === "field") {
|
|
1859
|
-
const { name:
|
|
1859
|
+
const { name: w, widget: E } = o;
|
|
1860
1860
|
if (E)
|
|
1861
1861
|
_ = E;
|
|
1862
|
-
else if (
|
|
1863
|
-
if (!this._fields[
|
|
1862
|
+
else if (w) {
|
|
1863
|
+
if (!this._fields[w])
|
|
1864
1864
|
throw new Error(
|
|
1865
|
-
`Field ${
|
|
1865
|
+
`Field ${w} doesn't exist in fields defintion`
|
|
1866
1866
|
);
|
|
1867
|
-
_ = this._fields[
|
|
1867
|
+
_ = this._fields[w].type;
|
|
1868
1868
|
}
|
|
1869
1869
|
h = {
|
|
1870
|
-
...this._fields[
|
|
1870
|
+
...this._fields[w],
|
|
1871
1871
|
...o,
|
|
1872
|
-
fieldsWidgetType: this._fields[
|
|
1872
|
+
fieldsWidgetType: this._fields[w].type
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
|
-
const u =
|
|
1875
|
+
const u = Fe({
|
|
1876
1876
|
tagAttributes: h,
|
|
1877
1877
|
values: s,
|
|
1878
1878
|
fields: this._fields,
|
|
@@ -1887,8 +1887,8 @@ class Ot {
|
|
|
1887
1887
|
values: s,
|
|
1888
1888
|
fields: this._fields
|
|
1889
1889
|
});
|
|
1890
|
-
const c =
|
|
1891
|
-
context: h.context || ((
|
|
1890
|
+
const c = se({
|
|
1891
|
+
context: h.context || ((x = this._fields[h.name]) == null ? void 0 : x.context),
|
|
1892
1892
|
values: s,
|
|
1893
1893
|
fields: this._fields
|
|
1894
1894
|
});
|
|
@@ -1896,7 +1896,7 @@ class Ot {
|
|
|
1896
1896
|
h.on_change
|
|
1897
1897
|
));
|
|
1898
1898
|
let m;
|
|
1899
|
-
|
|
1899
|
+
H(h.domain) ? m = h.domain : H((F = this._fields[h.name]) == null ? void 0 : F.domain) && (m = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
|
|
1900
1900
|
const p = {
|
|
1901
1901
|
...u,
|
|
1902
1902
|
...g,
|
|
@@ -1906,11 +1906,11 @@ class Ot {
|
|
|
1906
1906
|
};
|
|
1907
1907
|
e.readOnly && (p.readonly = !0);
|
|
1908
1908
|
const y = r.createWidget(_, p);
|
|
1909
|
-
y.invisible && y instanceof f && this._invisibleFields.push(p.name), y instanceof
|
|
1909
|
+
y.invisible && y instanceof f && this._invisibleFields.push(p.name), y instanceof v && this.parseNode({
|
|
1910
1910
|
fields: d,
|
|
1911
1911
|
container: y.container,
|
|
1912
1912
|
values: s
|
|
1913
|
-
}), y instanceof
|
|
1913
|
+
}), y instanceof K && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), e.addWidget(y);
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
1916
|
/**
|
|
@@ -1921,7 +1921,7 @@ class Ot {
|
|
|
1921
1921
|
return this.container.findById(t);
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function H(i) {
|
|
1925
1925
|
return i ? Array.isArray(i) && i.length > 0 ? !0 : typeof i == "string" && i !== "" && i !== "[]" : !1;
|
|
1926
1926
|
}
|
|
1927
1927
|
class Tt {
|
|
@@ -1998,7 +1998,7 @@ class Tt {
|
|
|
1998
1998
|
parse(t) {
|
|
1999
1999
|
const e = Y.parse(t).filter((r) => r.tagName === "tree")[0];
|
|
2000
2000
|
this._string = e.attributes.string || null, this._string && (this._string = b(this._string)), this._colors = e.attributes.colors || null, this._colors && (this._colors = b(this._colors)), this._status = e.attributes.status || null, this._status && (this._status = b(this._status)), this._editable = e.attributes.editable || null, this._infinite = e.attributes.infinite || !1;
|
|
2001
|
-
const s = new
|
|
2001
|
+
const s = new R();
|
|
2002
2002
|
e.children.forEach((r) => {
|
|
2003
2003
|
const { tagName: a, attributes: l } = r;
|
|
2004
2004
|
let o = null;
|
|
@@ -2010,7 +2010,7 @@ class Tt {
|
|
|
2010
2010
|
throw new Error(`Field ${d} doesn't exist in fields defintion`);
|
|
2011
2011
|
const u = this._fields[d];
|
|
2012
2012
|
o = u.type, (Array.isArray(u == null ? void 0 : u.domain) && (u == null ? void 0 : u.domain.length) === 0 || (u == null ? void 0 : u.domain) === !1) && l.domain && l.domain.length > 0 && delete u.domain;
|
|
2013
|
-
const g =
|
|
2013
|
+
const g = se({
|
|
2014
2014
|
context: l.context || u.context,
|
|
2015
2015
|
values: {},
|
|
2016
2016
|
fields: this._fields
|
|
@@ -2078,7 +2078,7 @@ class Pt {
|
|
|
2078
2078
|
return this._advancedSearchContainer;
|
|
2079
2079
|
}
|
|
2080
2080
|
parse() {
|
|
2081
|
-
const t = new
|
|
2081
|
+
const t = new R();
|
|
2082
2082
|
this.parseFields(
|
|
2083
2083
|
this.searchFields.primary,
|
|
2084
2084
|
t
|
|
@@ -2157,7 +2157,7 @@ class It {
|
|
|
2157
2157
|
return this._items;
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
|
-
class
|
|
2160
|
+
class ae {
|
|
2161
2161
|
constructor(t) {
|
|
2162
2162
|
n(this, "_string", null);
|
|
2163
2163
|
n(this, "_type");
|
|
@@ -2185,7 +2185,7 @@ class re {
|
|
|
2185
2185
|
return this._y_range;
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
class
|
|
2188
|
+
class le extends ae {
|
|
2189
2189
|
constructor(e, s) {
|
|
2190
2190
|
super(s);
|
|
2191
2191
|
n(this, "_color", null);
|
|
@@ -2211,7 +2211,7 @@ class ae extends re {
|
|
|
2211
2211
|
return this._suffix;
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
|
-
class rt extends
|
|
2214
|
+
class rt extends le {
|
|
2215
2215
|
constructor(e, s) {
|
|
2216
2216
|
super(e, s);
|
|
2217
2217
|
n(this, "_field");
|
|
@@ -2261,7 +2261,7 @@ const at = (i) => {
|
|
|
2261
2261
|
y: t
|
|
2262
2262
|
};
|
|
2263
2263
|
};
|
|
2264
|
-
class j extends
|
|
2264
|
+
class j extends ae {
|
|
2265
2265
|
constructor(e, s) {
|
|
2266
2266
|
super(s);
|
|
2267
2267
|
n(this, "_x");
|
|
@@ -2278,7 +2278,7 @@ class j extends re {
|
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
const lt = {
|
|
2281
|
-
indicator:
|
|
2281
|
+
indicator: le,
|
|
2282
2282
|
indicatorField: rt,
|
|
2283
2283
|
line: j,
|
|
2284
2284
|
bar: j,
|
|
@@ -2292,7 +2292,7 @@ const lt = {
|
|
|
2292
2292
|
throw new Error(`${e} not found as a GraphModel`);
|
|
2293
2293
|
return new s(e, t);
|
|
2294
2294
|
};
|
|
2295
|
-
class
|
|
2295
|
+
class oe {
|
|
2296
2296
|
constructor({ name: t, axis: e }) {
|
|
2297
2297
|
n(this, "_name");
|
|
2298
2298
|
n(this, "_axis");
|
|
@@ -2305,7 +2305,7 @@ class le {
|
|
|
2305
2305
|
return this._axis;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
class ot extends
|
|
2308
|
+
class ot extends oe {
|
|
2309
2309
|
constructor({
|
|
2310
2310
|
name: e,
|
|
2311
2311
|
operator: s,
|
|
@@ -2328,7 +2328,7 @@ class ot extends le {
|
|
|
2328
2328
|
return this._stacked;
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
class ct extends
|
|
2331
|
+
class ct extends oe {
|
|
2332
2332
|
constructor({ name: t }) {
|
|
2333
2333
|
super({ name: t, axis: "x" });
|
|
2334
2334
|
}
|
|
@@ -2339,7 +2339,7 @@ const dt = ({ ooui: i }) => {
|
|
|
2339
2339
|
s.operator !== "count" && !e.includes(s.name) && e.push(s.name), s.label && !e.includes(s.label) && e.push(s.label);
|
|
2340
2340
|
}), e) : [];
|
|
2341
2341
|
};
|
|
2342
|
-
function
|
|
2342
|
+
function $({
|
|
2343
2343
|
fields: i,
|
|
2344
2344
|
values: t,
|
|
2345
2345
|
fieldName: e
|
|
@@ -2358,7 +2358,7 @@ function R({
|
|
|
2358
2358
|
const zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2359
2359
|
__proto__: null,
|
|
2360
2360
|
getFieldsToRetrieve: dt,
|
|
2361
|
-
getValueAndLabelForField:
|
|
2361
|
+
getValueAndLabelForField: $
|
|
2362
2362
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2363
2363
|
function ut({
|
|
2364
2364
|
values: i,
|
|
@@ -2381,7 +2381,7 @@ function ht({
|
|
|
2381
2381
|
interval: e = 1
|
|
2382
2382
|
}) {
|
|
2383
2383
|
let s = [];
|
|
2384
|
-
const r =
|
|
2384
|
+
const r = de({
|
|
2385
2385
|
values: i,
|
|
2386
2386
|
groupBy: "type-stacked"
|
|
2387
2387
|
}), a = `${t}s`;
|
|
@@ -2392,7 +2392,7 @@ function ht({
|
|
|
2392
2392
|
if (s.push(h), _ === d.length - 1)
|
|
2393
2393
|
return;
|
|
2394
2394
|
const u = h.x, g = d[_ + 1].x;
|
|
2395
|
-
if (!
|
|
2395
|
+
if (!ce([u, g], a)) {
|
|
2396
2396
|
const c = _t({
|
|
2397
2397
|
dates: [u, g],
|
|
2398
2398
|
timerange: t,
|
|
@@ -2421,7 +2421,7 @@ function _t({
|
|
|
2421
2421
|
const a = i.sort((l, o) => l < o ? -1 : l > o ? 1 : 0);
|
|
2422
2422
|
for (let l = 0; l < a.length - 1; l++) {
|
|
2423
2423
|
const o = a[l], d = a[l + 1];
|
|
2424
|
-
if (!
|
|
2424
|
+
if (!ce([o, d], r)) {
|
|
2425
2425
|
const _ = P(o, S(r)).add(
|
|
2426
2426
|
e,
|
|
2427
2427
|
r
|
|
@@ -2439,7 +2439,7 @@ function ft({
|
|
|
2439
2439
|
const e = gt({
|
|
2440
2440
|
values: i,
|
|
2441
2441
|
timerange: t
|
|
2442
|
-
}), s = [], r =
|
|
2442
|
+
}), s = [], r = de({
|
|
2443
2443
|
values: e,
|
|
2444
2444
|
groupBy: "all"
|
|
2445
2445
|
});
|
|
@@ -2499,7 +2499,7 @@ function mt({
|
|
|
2499
2499
|
function bt(i) {
|
|
2500
2500
|
return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function ce(i, t) {
|
|
2503
2503
|
let e = !1;
|
|
2504
2504
|
const s = S(t);
|
|
2505
2505
|
if (i.length === 0)
|
|
@@ -2512,7 +2512,7 @@ function oe(i, t) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
return e;
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2515
|
+
function de({
|
|
2516
2516
|
values: i,
|
|
2517
2517
|
groupBy: t
|
|
2518
2518
|
}) {
|
|
@@ -2560,41 +2560,41 @@ const yt = {
|
|
|
2560
2560
|
Object.keys(r).forEach((m) => {
|
|
2561
2561
|
const p = r[m].label, y = r[m].entries;
|
|
2562
2562
|
if (c.label) {
|
|
2563
|
-
const
|
|
2563
|
+
const x = A({
|
|
2564
2564
|
fieldName: c.label,
|
|
2565
2565
|
values: y,
|
|
2566
2566
|
fields: e
|
|
2567
2567
|
});
|
|
2568
|
-
Object.keys(
|
|
2569
|
-
const
|
|
2570
|
-
entries:
|
|
2568
|
+
Object.keys(x).forEach((F) => {
|
|
2569
|
+
const w = x[F].entries, E = x[F].label, _e = N({
|
|
2570
|
+
entries: w,
|
|
2571
2571
|
fields: e,
|
|
2572
2572
|
fieldName: c.name
|
|
2573
|
-
}),
|
|
2574
|
-
values:
|
|
2573
|
+
}), fe = V({
|
|
2574
|
+
values: _e,
|
|
2575
2575
|
operator: c.operator
|
|
2576
2576
|
});
|
|
2577
2577
|
a.push({
|
|
2578
2578
|
x: p || !1,
|
|
2579
|
-
value:
|
|
2579
|
+
value: fe,
|
|
2580
2580
|
type: E,
|
|
2581
2581
|
operator: c.operator,
|
|
2582
2582
|
stacked: c.stacked
|
|
2583
2583
|
});
|
|
2584
2584
|
});
|
|
2585
2585
|
} else {
|
|
2586
|
-
const
|
|
2586
|
+
const x = N({
|
|
2587
2587
|
entries: y,
|
|
2588
2588
|
fields: e,
|
|
2589
2589
|
fieldName: c.name
|
|
2590
2590
|
}), F = V({
|
|
2591
|
-
values:
|
|
2591
|
+
values: x,
|
|
2592
2592
|
operator: c.operator
|
|
2593
2593
|
});
|
|
2594
2594
|
a.push({
|
|
2595
2595
|
x: p || !1,
|
|
2596
2596
|
value: F,
|
|
2597
|
-
type:
|
|
2597
|
+
type: ue({
|
|
2598
2598
|
yAxis: c,
|
|
2599
2599
|
fields: e
|
|
2600
2600
|
}),
|
|
@@ -2625,7 +2625,7 @@ const yt = {
|
|
|
2625
2625
|
if (i.type === "line" && i.y_range && (g.yAxisOpts = {
|
|
2626
2626
|
mode: i.y_range
|
|
2627
2627
|
}, i.y_range === "auto")) {
|
|
2628
|
-
const { min: c, max: m } =
|
|
2628
|
+
const { min: c, max: m } = he(u);
|
|
2629
2629
|
g.yAxisOpts.valueOpts = { min: c, max: m };
|
|
2630
2630
|
}
|
|
2631
2631
|
return g;
|
|
@@ -2635,7 +2635,7 @@ function N({
|
|
|
2635
2635
|
fieldName: t,
|
|
2636
2636
|
fields: e
|
|
2637
2637
|
}) {
|
|
2638
|
-
return i.map((s) =>
|
|
2638
|
+
return i.map((s) => $({
|
|
2639
2639
|
fieldName: t,
|
|
2640
2640
|
values: s,
|
|
2641
2641
|
fields: e
|
|
@@ -2686,7 +2686,7 @@ function A({
|
|
|
2686
2686
|
}) {
|
|
2687
2687
|
const s = {};
|
|
2688
2688
|
return e.forEach((r) => {
|
|
2689
|
-
const { value: a, label: l } =
|
|
2689
|
+
const { value: a, label: l } = $({
|
|
2690
2690
|
fields: t,
|
|
2691
2691
|
values: r,
|
|
2692
2692
|
fieldName: i
|
|
@@ -2701,14 +2701,14 @@ function xt(i) {
|
|
|
2701
2701
|
t = t.concat(s.entries);
|
|
2702
2702
|
}), t;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function ue({
|
|
2705
2705
|
yAxis: i,
|
|
2706
2706
|
fields: t
|
|
2707
2707
|
}) {
|
|
2708
2708
|
const e = t[i.name];
|
|
2709
2709
|
return e != null && e.string ? e.string : i.name;
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function he(i, t = 0.1) {
|
|
2712
2712
|
if (i.length === 0)
|
|
2713
2713
|
throw new Error("The values array cannot be empty.");
|
|
2714
2714
|
const e = i.map((l) => l.value), s = Math.min(...e), r = Math.max(...e), a = (r - s) * t;
|
|
@@ -2720,76 +2720,76 @@ function ue(i, t = 0.1) {
|
|
|
2720
2720
|
const Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2721
2721
|
__proto__: null,
|
|
2722
2722
|
getAllObjectsInGroupedValues: xt,
|
|
2723
|
-
getMinMax:
|
|
2723
|
+
getMinMax: he,
|
|
2724
2724
|
getValueForOperator: V,
|
|
2725
2725
|
getValuesForYField: N,
|
|
2726
2726
|
getValuesGroupedByField: A,
|
|
2727
|
-
getYAxisFieldname:
|
|
2727
|
+
getYAxisFieldname: ue,
|
|
2728
2728
|
labelsForOperator: yt,
|
|
2729
2729
|
processGraphData: pt
|
|
2730
2730
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2731
2731
|
export {
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2732
|
+
Qe as Alert,
|
|
2733
|
+
Ce as Avatar,
|
|
2734
|
+
Me as Binary,
|
|
2735
|
+
Z as Boolean,
|
|
2736
|
+
K as Button,
|
|
2737
|
+
Te as ButtonGroup,
|
|
2738
|
+
q as Char,
|
|
2739
|
+
ie as CodeEditor,
|
|
2740
|
+
Xe as Comments,
|
|
2741
2741
|
z as Container,
|
|
2742
|
-
|
|
2742
|
+
v as ContainerWidget,
|
|
2743
2743
|
It as Dashboard,
|
|
2744
2744
|
nt as DashboardItem,
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2745
|
+
Ve as Date,
|
|
2746
|
+
Ye as DateTime,
|
|
2747
|
+
Ue as Email,
|
|
2748
2748
|
f as Field,
|
|
2749
|
-
|
|
2750
|
-
|
|
2749
|
+
G as Float,
|
|
2750
|
+
Ie as FloatTime,
|
|
2751
2751
|
Ot as Form,
|
|
2752
|
-
|
|
2753
|
-
|
|
2752
|
+
ae as Graph,
|
|
2753
|
+
oe as GraphAxis,
|
|
2754
2754
|
j as GraphChart,
|
|
2755
|
-
|
|
2755
|
+
le as GraphIndicator,
|
|
2756
2756
|
rt as GraphIndicatorField,
|
|
2757
2757
|
ct as GraphXAxis,
|
|
2758
2758
|
ot as GraphYAxis,
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2759
|
+
Oe as Group,
|
|
2760
|
+
Se as HTMLPreview,
|
|
2761
|
+
Ne as Image,
|
|
2762
|
+
Le as Indicator,
|
|
2763
|
+
Ee as Integer,
|
|
2764
|
+
J as JSONField,
|
|
2765
|
+
U as Label,
|
|
2766
|
+
Pe as Many2one,
|
|
2767
|
+
We as Markdown,
|
|
2768
|
+
te as MultiCheckbox,
|
|
2769
|
+
X as NewLine,
|
|
2770
2770
|
M as Notebook,
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2771
|
+
ee as One2many,
|
|
2772
|
+
ke as Page,
|
|
2773
|
+
ze as ProgressBar,
|
|
2774
|
+
$e as Radio,
|
|
2775
|
+
je as Reference,
|
|
2776
2776
|
st as SearchFieldTypes,
|
|
2777
2777
|
Pt as SearchFilter,
|
|
2778
2778
|
W as Selection,
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2779
|
+
De as Separator,
|
|
2780
|
+
B as Spinner,
|
|
2781
|
+
Je as Steps,
|
|
2782
|
+
qe as Switch,
|
|
2783
|
+
Re as Tag,
|
|
2784
|
+
Ge as Tags,
|
|
2785
|
+
L as Text,
|
|
2786
|
+
He as Time,
|
|
2787
|
+
Be as Timeline,
|
|
2788
2788
|
Tt as Tree,
|
|
2789
2789
|
C as Widget,
|
|
2790
2790
|
zt as graphFieldUtils,
|
|
2791
2791
|
Vt as graphProcessor,
|
|
2792
|
-
|
|
2792
|
+
se as parseContext,
|
|
2793
2793
|
kt as parseContextFields,
|
|
2794
2794
|
Et as parseDomainFields,
|
|
2795
2795
|
St as parseGraph,
|