@gisce/ooui 2.37.0-alpha.1 → 2.37.0
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/README.md +0 -2
- package/dist/QRCode.d.ts +11 -0
- package/dist/QRCode.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/ooui.es.js +211 -199
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/QRCode.ts +21 -0
- package/src/WidgetFactory.ts +4 -4
- package/src/index.ts +2 -2
- package/src/spec/QRCode.spec.ts +127 -0
- package/dist/ActionButtons.d.ts +0 -5
- package/dist/ActionButtons.d.ts.map +0 -1
- package/src/ActionButtons.ts +0 -5
package/dist/ooui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var be = Object.defineProperty;
|
|
2
2
|
var ye = (i, t, e) => t in i ? be(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var r = (i, t, e) => (ye(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { decode as
|
|
5
|
-
import { evaluateCondition as
|
|
4
|
+
import { decode as pe } from "html-entities";
|
|
5
|
+
import { evaluateCondition as xe } from "@gisce/conscheck";
|
|
6
6
|
import * as D from "txml";
|
|
7
7
|
import T from "moment";
|
|
8
8
|
const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe = ({
|
|
@@ -41,7 +41,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
41
41
|
default:
|
|
42
42
|
return !1;
|
|
43
43
|
}
|
|
44
|
-
}, m = (i) =>
|
|
44
|
+
}, m = (i) => pe(i, { level: "xml" }), X = ({
|
|
45
45
|
fieldName: i,
|
|
46
46
|
valueInObject: t,
|
|
47
47
|
expectedValue: e,
|
|
@@ -67,12 +67,12 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
67
67
|
fields: e,
|
|
68
68
|
widgetType: s
|
|
69
69
|
}) => {
|
|
70
|
-
const
|
|
70
|
+
const d = i.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = m(d), h = JSON.parse(_), u = {};
|
|
71
71
|
for (const g of Object.keys(h)) {
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const p = h[g].map((y) => Fe({ entry: y, values: t, fields: e })).every((y) => y);
|
|
73
|
+
p ? u[g] = !0 : g === "readonly" && !p && s === "button" && (u[g] = !1);
|
|
74
74
|
}
|
|
75
|
-
return
|
|
75
|
+
return u;
|
|
76
76
|
}, U = (i) => {
|
|
77
77
|
if (i === void 0)
|
|
78
78
|
return {};
|
|
@@ -95,21 +95,21 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
95
95
|
n.replace(/'/g, '"')
|
|
96
96
|
), l = {};
|
|
97
97
|
for (const o of Object.keys(a)) {
|
|
98
|
-
const
|
|
98
|
+
const d = xe({
|
|
99
99
|
object: t,
|
|
100
100
|
condition: a[o],
|
|
101
101
|
evaluateFieldComparison: ({
|
|
102
102
|
fieldName: _,
|
|
103
103
|
valueInObject: h,
|
|
104
|
-
expectedValue:
|
|
104
|
+
expectedValue: u
|
|
105
105
|
}) => X({
|
|
106
106
|
fieldName: _,
|
|
107
107
|
valueInObject: h,
|
|
108
|
-
expectedValue:
|
|
108
|
+
expectedValue: u,
|
|
109
109
|
fields: e
|
|
110
110
|
})
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
d ? l[o] = !0 : o === "readonly" && !d && s === "button" && (l[o] = !1);
|
|
113
113
|
}
|
|
114
114
|
return l;
|
|
115
115
|
} catch (n) {
|
|
@@ -157,7 +157,7 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
157
157
|
attrs: void 0,
|
|
158
158
|
json_attrs: void 0
|
|
159
159
|
};
|
|
160
|
-
}, k = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true",
|
|
160
|
+
}, k = (i) => i === 1 || i === "1" || i === !0 || i === "True" || i === "true", P = class P {
|
|
161
161
|
constructor(t) {
|
|
162
162
|
/**
|
|
163
163
|
* Determines if widget is read only (default is undefined)
|
|
@@ -194,13 +194,13 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
194
194
|
* Base type of the field
|
|
195
195
|
*/
|
|
196
196
|
r(this, "_fieldType", "");
|
|
197
|
-
this._colspan =
|
|
197
|
+
this._colspan = P._defaultColspan, this._invisible = !1, t && (t.colspan && (this._colspan = +t.colspan), t.readonly !== void 0 && (this._readOnly = k(t.readonly)), t.invisible && (t.invisible === 1 || t.invisible === "1" || t.invisible === !0) && (this._invisible = !0), t.type && (this._type = t.type), t.context && (this._context = t.context), t.domain && (typeof t.domain != "string" ? this._domain = m(JSON.stringify(t.domain)) : this._domain = m(t.domain)), t.type && (this._fieldType = t.fieldsWidgetType), t.widget_props && (this._parsedWidgetProps = U(t.widget_props)), t.key && (this._key = t.key), t.is_function && (this._isFunction = t.is_function), t.is_sortable && (this._isSortable = t.is_sortable));
|
|
198
198
|
}
|
|
199
199
|
static get defaultColspan() {
|
|
200
|
-
return
|
|
200
|
+
return P._defaultColspan;
|
|
201
201
|
}
|
|
202
202
|
static set defaultColspan(t) {
|
|
203
|
-
|
|
203
|
+
P._defaultColspan = t;
|
|
204
204
|
}
|
|
205
205
|
get readOnly() {
|
|
206
206
|
return this._readOnly;
|
|
@@ -266,8 +266,8 @@ const we = (i = !1) => (i = JSON.parse(i.toString().toLowerCase()), +i > 0), Fe
|
|
|
266
266
|
/**
|
|
267
267
|
* Default colspan
|
|
268
268
|
*/
|
|
269
|
-
r(
|
|
270
|
-
let C =
|
|
269
|
+
r(P, "_defaultColspan", 1);
|
|
270
|
+
let C = P;
|
|
271
271
|
class f extends C {
|
|
272
272
|
constructor(e) {
|
|
273
273
|
super(e);
|
|
@@ -571,7 +571,7 @@ class V {
|
|
|
571
571
|
}), e;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const O = class O extends C {
|
|
575
575
|
constructor(e) {
|
|
576
576
|
super(e);
|
|
577
577
|
/**
|
|
@@ -594,7 +594,7 @@ const P = class P extends C {
|
|
|
594
594
|
r(this, "_label", "");
|
|
595
595
|
this._container = new V(
|
|
596
596
|
e == null ? void 0 : e.col,
|
|
597
|
-
|
|
597
|
+
O._defaultColspan,
|
|
598
598
|
this.readOnly,
|
|
599
599
|
e == null ? void 0 : e.key
|
|
600
600
|
), e && (e.name && (this._id = e.name), e.colspan ? this._container.colspan = +e.colspan : this._mustExpand = !0, e.string && (this._label = m(e.string)));
|
|
@@ -606,10 +606,10 @@ const P = class P extends C {
|
|
|
606
606
|
this._id = e;
|
|
607
607
|
}
|
|
608
608
|
static get defaultColspan() {
|
|
609
|
-
return
|
|
609
|
+
return O._defaultColspan;
|
|
610
610
|
}
|
|
611
611
|
static set defaultColspan(e) {
|
|
612
|
-
|
|
612
|
+
O._defaultColspan = e;
|
|
613
613
|
}
|
|
614
614
|
get container() {
|
|
615
615
|
return this._container;
|
|
@@ -643,8 +643,8 @@ const P = class P extends C {
|
|
|
643
643
|
return e === this.id ? this : this.container.findById(e);
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
r(
|
|
647
|
-
let w =
|
|
646
|
+
r(O, "_defaultColspan", 6);
|
|
647
|
+
let w = O;
|
|
648
648
|
const W = class W extends w {
|
|
649
649
|
constructor(e) {
|
|
650
650
|
super(e);
|
|
@@ -683,7 +683,7 @@ class R extends w {
|
|
|
683
683
|
this._loading = e;
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
class
|
|
686
|
+
class Pe extends R {
|
|
687
687
|
constructor(e) {
|
|
688
688
|
super(e);
|
|
689
689
|
r(this, "_icon", null);
|
|
@@ -696,7 +696,7 @@ class Oe extends R {
|
|
|
696
696
|
this._icon = e;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
class
|
|
699
|
+
class Oe extends R {
|
|
700
700
|
constructor(e) {
|
|
701
701
|
var s;
|
|
702
702
|
super(e);
|
|
@@ -833,8 +833,6 @@ class We extends w {
|
|
|
833
833
|
return this._container.rows.flat().filter((e) => !e.invisible);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
class Te extends f {
|
|
837
|
-
}
|
|
838
836
|
class A extends f {
|
|
839
837
|
constructor(e) {
|
|
840
838
|
super(e);
|
|
@@ -958,7 +956,7 @@ class z extends f {
|
|
|
958
956
|
this._size = e;
|
|
959
957
|
}
|
|
960
958
|
}
|
|
961
|
-
class
|
|
959
|
+
class Te extends f {
|
|
962
960
|
constructor(e) {
|
|
963
961
|
super(e);
|
|
964
962
|
/**
|
|
@@ -993,14 +991,14 @@ class ze extends f {
|
|
|
993
991
|
return this.parsedWidgetProps.showMenu;
|
|
994
992
|
}
|
|
995
993
|
}
|
|
996
|
-
class
|
|
994
|
+
class ze extends L {
|
|
997
995
|
}
|
|
998
996
|
class te extends f {
|
|
999
997
|
constructor(t) {
|
|
1000
998
|
super(t);
|
|
1001
999
|
}
|
|
1002
1000
|
}
|
|
1003
|
-
class
|
|
1001
|
+
class Se extends f {
|
|
1004
1002
|
constructor(t) {
|
|
1005
1003
|
super(t);
|
|
1006
1004
|
}
|
|
@@ -1038,18 +1036,18 @@ class G extends f {
|
|
|
1038
1036
|
this._decimalDigits = e;
|
|
1039
1037
|
}
|
|
1040
1038
|
}
|
|
1041
|
-
class
|
|
1039
|
+
class Ie extends G {
|
|
1042
1040
|
}
|
|
1043
|
-
class
|
|
1041
|
+
class Ee extends f {
|
|
1044
1042
|
}
|
|
1045
|
-
class
|
|
1043
|
+
class Ve extends G {
|
|
1046
1044
|
}
|
|
1047
|
-
class
|
|
1045
|
+
class Ye extends f {
|
|
1048
1046
|
constructor(t) {
|
|
1049
1047
|
super(t);
|
|
1050
1048
|
}
|
|
1051
1049
|
}
|
|
1052
|
-
class
|
|
1050
|
+
class De extends f {
|
|
1053
1051
|
constructor(e) {
|
|
1054
1052
|
super(e);
|
|
1055
1053
|
r(this, "_timezone");
|
|
@@ -1156,7 +1154,7 @@ class ie extends f {
|
|
|
1156
1154
|
this._infinite = e;
|
|
1157
1155
|
}
|
|
1158
1156
|
}
|
|
1159
|
-
class
|
|
1157
|
+
class je extends C {
|
|
1160
1158
|
constructor(e) {
|
|
1161
1159
|
super(e);
|
|
1162
1160
|
/**
|
|
@@ -1182,9 +1180,9 @@ class Me extends C {
|
|
|
1182
1180
|
return null;
|
|
1183
1181
|
}
|
|
1184
1182
|
}
|
|
1185
|
-
class
|
|
1183
|
+
class Me extends z {
|
|
1186
1184
|
}
|
|
1187
|
-
class
|
|
1185
|
+
class Ae extends f {
|
|
1188
1186
|
constructor(e) {
|
|
1189
1187
|
super(e);
|
|
1190
1188
|
/**
|
|
@@ -1200,18 +1198,18 @@ class Ne extends f {
|
|
|
1200
1198
|
this._filenameField = e;
|
|
1201
1199
|
}
|
|
1202
1200
|
}
|
|
1203
|
-
class
|
|
1201
|
+
class Ne extends f {
|
|
1204
1202
|
get showControls() {
|
|
1205
1203
|
var t;
|
|
1206
1204
|
return ((t = this.parsedWidgetProps) == null ? void 0 : t.showControls) ?? !0;
|
|
1207
1205
|
}
|
|
1208
1206
|
}
|
|
1209
|
-
class
|
|
1207
|
+
class Be extends f {
|
|
1210
1208
|
constructor(t) {
|
|
1211
1209
|
super(t);
|
|
1212
1210
|
}
|
|
1213
1211
|
}
|
|
1214
|
-
class
|
|
1212
|
+
class Re extends ie {
|
|
1215
1213
|
constructor(e) {
|
|
1216
1214
|
super(e);
|
|
1217
1215
|
/**
|
|
@@ -1243,7 +1241,7 @@ class Le extends ie {
|
|
|
1243
1241
|
return this.parsedWidgetProps.colorField;
|
|
1244
1242
|
}
|
|
1245
1243
|
}
|
|
1246
|
-
class
|
|
1244
|
+
class Le extends z {
|
|
1247
1245
|
constructor(e) {
|
|
1248
1246
|
super(e);
|
|
1249
1247
|
r(this, "_nolabel", !0);
|
|
@@ -1370,9 +1368,9 @@ class se extends f {
|
|
|
1370
1368
|
this._columns = e;
|
|
1371
1369
|
}
|
|
1372
1370
|
}
|
|
1373
|
-
class
|
|
1371
|
+
class Ge extends se {
|
|
1374
1372
|
}
|
|
1375
|
-
class
|
|
1373
|
+
class $e extends z {
|
|
1376
1374
|
get colors() {
|
|
1377
1375
|
return this._parsedWidgetProps.colors || {};
|
|
1378
1376
|
}
|
|
@@ -1381,7 +1379,7 @@ class qe extends z {
|
|
|
1381
1379
|
return ((t = this._parsedWidgetProps) == null ? void 0 : t.colorField) || null;
|
|
1382
1380
|
}
|
|
1383
1381
|
}
|
|
1384
|
-
class
|
|
1382
|
+
class qe extends z {
|
|
1385
1383
|
constructor(e) {
|
|
1386
1384
|
super(e);
|
|
1387
1385
|
/**
|
|
@@ -1397,9 +1395,9 @@ class Je extends z {
|
|
|
1397
1395
|
this._direction = e;
|
|
1398
1396
|
}
|
|
1399
1397
|
}
|
|
1400
|
-
class
|
|
1398
|
+
class Je extends te {
|
|
1401
1399
|
}
|
|
1402
|
-
class
|
|
1400
|
+
class He extends f {
|
|
1403
1401
|
constructor(e) {
|
|
1404
1402
|
super(e);
|
|
1405
1403
|
/**
|
|
@@ -1442,12 +1440,12 @@ class re extends L {
|
|
|
1442
1440
|
this._lang = e;
|
|
1443
1441
|
}
|
|
1444
1442
|
}
|
|
1445
|
-
class
|
|
1443
|
+
class Qe extends f {
|
|
1446
1444
|
constructor(t) {
|
|
1447
1445
|
super(t);
|
|
1448
1446
|
}
|
|
1449
1447
|
}
|
|
1450
|
-
class
|
|
1448
|
+
class Xe extends w {
|
|
1451
1449
|
constructor(e) {
|
|
1452
1450
|
super(e);
|
|
1453
1451
|
/**
|
|
@@ -1487,7 +1485,7 @@ class Ue extends w {
|
|
|
1487
1485
|
return this._container.rows.flat().filter((e) => !e.invisible);
|
|
1488
1486
|
}
|
|
1489
1487
|
}
|
|
1490
|
-
class
|
|
1488
|
+
class Ue extends f {
|
|
1491
1489
|
constructor(e) {
|
|
1492
1490
|
super(e);
|
|
1493
1491
|
/**
|
|
@@ -1512,7 +1510,7 @@ class H extends re {
|
|
|
1512
1510
|
r(this, "_lang", "json");
|
|
1513
1511
|
}
|
|
1514
1512
|
}
|
|
1515
|
-
class
|
|
1513
|
+
class Ke extends f {
|
|
1516
1514
|
constructor(e) {
|
|
1517
1515
|
super(e);
|
|
1518
1516
|
r(this, "_multi", !1);
|
|
@@ -1532,7 +1530,7 @@ class Ze extends f {
|
|
|
1532
1530
|
this._size = e;
|
|
1533
1531
|
}
|
|
1534
1532
|
}
|
|
1535
|
-
class
|
|
1533
|
+
class Ze extends w {
|
|
1536
1534
|
constructor(e) {
|
|
1537
1535
|
super(e);
|
|
1538
1536
|
r(this, "_autoPlay", !0);
|
|
@@ -1548,11 +1546,25 @@ class et extends w {
|
|
|
1548
1546
|
return this._container.rows.flat().filter((e) => !e.invisible);
|
|
1549
1547
|
}
|
|
1550
1548
|
}
|
|
1551
|
-
class
|
|
1549
|
+
class et extends A {
|
|
1552
1550
|
get showText() {
|
|
1553
1551
|
return this.parsedWidgetProps.show_text ?? !0;
|
|
1554
1552
|
}
|
|
1555
1553
|
}
|
|
1554
|
+
class tt extends f {
|
|
1555
|
+
get width() {
|
|
1556
|
+
var t;
|
|
1557
|
+
return (t = this.parsedWidgetProps) == null ? void 0 : t.width;
|
|
1558
|
+
}
|
|
1559
|
+
get border() {
|
|
1560
|
+
var t;
|
|
1561
|
+
return ((t = this.parsedWidgetProps) == null ? void 0 : t.border) ?? !1;
|
|
1562
|
+
}
|
|
1563
|
+
get showValue() {
|
|
1564
|
+
var t;
|
|
1565
|
+
return console.log(this.parsedWidgetProps), ((t = this.parsedWidgetProps) == null ? void 0 : t.showValue) ?? !1;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1556
1568
|
class $ {
|
|
1557
1569
|
constructor() {
|
|
1558
1570
|
/**
|
|
@@ -1566,10 +1578,10 @@ class $ {
|
|
|
1566
1578
|
this._widgetClass = M;
|
|
1567
1579
|
break;
|
|
1568
1580
|
case "page":
|
|
1569
|
-
this._widgetClass =
|
|
1581
|
+
this._widgetClass = Pe;
|
|
1570
1582
|
break;
|
|
1571
1583
|
case "group":
|
|
1572
|
-
this._widgetClass =
|
|
1584
|
+
this._widgetClass = Oe;
|
|
1573
1585
|
break;
|
|
1574
1586
|
case "label":
|
|
1575
1587
|
this._widgetClass = Z;
|
|
@@ -1586,38 +1598,35 @@ class $ {
|
|
|
1586
1598
|
case "buttonGroup":
|
|
1587
1599
|
this._widgetClass = We;
|
|
1588
1600
|
break;
|
|
1589
|
-
case "action_buttons":
|
|
1590
|
-
this._widgetClass = Te;
|
|
1591
|
-
break;
|
|
1592
1601
|
case "selection":
|
|
1593
1602
|
this._widgetClass = z;
|
|
1594
1603
|
break;
|
|
1595
1604
|
case "many2one":
|
|
1596
|
-
this._widgetClass =
|
|
1605
|
+
this._widgetClass = Te;
|
|
1597
1606
|
break;
|
|
1598
1607
|
case "boolean":
|
|
1599
1608
|
this._widgetClass = te;
|
|
1600
1609
|
break;
|
|
1601
1610
|
case "integer":
|
|
1602
|
-
this._widgetClass =
|
|
1611
|
+
this._widgetClass = Se;
|
|
1603
1612
|
break;
|
|
1604
1613
|
case "float":
|
|
1605
1614
|
this._widgetClass = G;
|
|
1606
1615
|
break;
|
|
1607
1616
|
case "float_time":
|
|
1608
|
-
this._widgetClass =
|
|
1617
|
+
this._widgetClass = Ie;
|
|
1609
1618
|
break;
|
|
1610
1619
|
case "date":
|
|
1611
|
-
this._widgetClass =
|
|
1620
|
+
this._widgetClass = Ye;
|
|
1612
1621
|
break;
|
|
1613
1622
|
case "datetime":
|
|
1614
|
-
this._widgetClass =
|
|
1623
|
+
this._widgetClass = De;
|
|
1615
1624
|
break;
|
|
1616
1625
|
case "progressbar":
|
|
1617
|
-
this._widgetClass =
|
|
1626
|
+
this._widgetClass = Ve;
|
|
1618
1627
|
break;
|
|
1619
1628
|
case "markdown":
|
|
1620
|
-
this._widgetClass =
|
|
1629
|
+
this._widgetClass = ze;
|
|
1621
1630
|
break;
|
|
1622
1631
|
case "many2many":
|
|
1623
1632
|
case "one2many":
|
|
@@ -1628,67 +1637,67 @@ class $ {
|
|
|
1628
1637
|
this._widgetClass = K;
|
|
1629
1638
|
break;
|
|
1630
1639
|
case "separator":
|
|
1631
|
-
this._widgetClass =
|
|
1640
|
+
this._widgetClass = je;
|
|
1632
1641
|
break;
|
|
1633
1642
|
case "url":
|
|
1634
1643
|
this._widgetClass = A;
|
|
1635
1644
|
break;
|
|
1636
1645
|
case "email":
|
|
1637
|
-
this._widgetClass =
|
|
1646
|
+
this._widgetClass = Ke;
|
|
1638
1647
|
break;
|
|
1639
1648
|
case "reference":
|
|
1640
|
-
this._widgetClass =
|
|
1649
|
+
this._widgetClass = Me;
|
|
1641
1650
|
break;
|
|
1642
1651
|
case "binary":
|
|
1643
|
-
this._widgetClass =
|
|
1652
|
+
this._widgetClass = Ae;
|
|
1644
1653
|
break;
|
|
1645
1654
|
case "image":
|
|
1646
|
-
this._widgetClass =
|
|
1655
|
+
this._widgetClass = Ne;
|
|
1647
1656
|
break;
|
|
1648
1657
|
case "fiber_grid":
|
|
1649
|
-
this._widgetClass =
|
|
1658
|
+
this._widgetClass = Be;
|
|
1650
1659
|
break;
|
|
1651
1660
|
case "timeline":
|
|
1652
|
-
this._widgetClass =
|
|
1661
|
+
this._widgetClass = Re;
|
|
1653
1662
|
break;
|
|
1654
1663
|
case "indicator":
|
|
1655
|
-
this._widgetClass =
|
|
1664
|
+
this._widgetClass = Le;
|
|
1656
1665
|
break;
|
|
1657
1666
|
case "tags":
|
|
1658
|
-
this._widgetClass =
|
|
1667
|
+
this._widgetClass = Ge;
|
|
1659
1668
|
break;
|
|
1660
1669
|
case "tag":
|
|
1661
|
-
this._widgetClass =
|
|
1670
|
+
this._widgetClass = $e;
|
|
1662
1671
|
break;
|
|
1663
1672
|
case "avatar":
|
|
1664
1673
|
this._widgetClass = ke;
|
|
1665
1674
|
break;
|
|
1666
1675
|
case "radio":
|
|
1667
|
-
this._widgetClass =
|
|
1676
|
+
this._widgetClass = qe;
|
|
1668
1677
|
break;
|
|
1669
1678
|
case "multicheckbox":
|
|
1670
1679
|
this._widgetClass = se;
|
|
1671
1680
|
break;
|
|
1672
1681
|
case "switch":
|
|
1673
|
-
this._widgetClass =
|
|
1682
|
+
this._widgetClass = Je;
|
|
1674
1683
|
break;
|
|
1675
1684
|
case "steps":
|
|
1676
|
-
this._widgetClass =
|
|
1685
|
+
this._widgetClass = He;
|
|
1677
1686
|
break;
|
|
1678
1687
|
case "codeeditor":
|
|
1679
1688
|
this._widgetClass = re;
|
|
1680
1689
|
break;
|
|
1681
1690
|
case "time":
|
|
1682
|
-
this._widgetClass =
|
|
1691
|
+
this._widgetClass = Qe;
|
|
1683
1692
|
break;
|
|
1684
1693
|
case "html_preview":
|
|
1685
|
-
this._widgetClass =
|
|
1694
|
+
this._widgetClass = Ee;
|
|
1686
1695
|
break;
|
|
1687
1696
|
case "alert":
|
|
1688
|
-
this._widgetClass =
|
|
1697
|
+
this._widgetClass = Xe;
|
|
1689
1698
|
break;
|
|
1690
1699
|
case "comments_timeline":
|
|
1691
|
-
this._widgetClass =
|
|
1700
|
+
this._widgetClass = Ue;
|
|
1692
1701
|
break;
|
|
1693
1702
|
case "json":
|
|
1694
1703
|
this._widgetClass = H;
|
|
@@ -1700,9 +1709,12 @@ class $ {
|
|
|
1700
1709
|
this._widgetClass = R;
|
|
1701
1710
|
break;
|
|
1702
1711
|
case "carousel":
|
|
1703
|
-
this._widgetClass =
|
|
1712
|
+
this._widgetClass = Ze;
|
|
1704
1713
|
break;
|
|
1705
1714
|
case "colorPicker":
|
|
1715
|
+
this._widgetClass = et;
|
|
1716
|
+
break;
|
|
1717
|
+
case "qrcode":
|
|
1706
1718
|
this._widgetClass = tt;
|
|
1707
1719
|
break;
|
|
1708
1720
|
}
|
|
@@ -1740,15 +1752,15 @@ const it = ({
|
|
|
1740
1752
|
const n = {}, a = {};
|
|
1741
1753
|
for (const o of Object.keys(s))
|
|
1742
1754
|
if (t.state === o) {
|
|
1743
|
-
const
|
|
1744
|
-
for (const _ of
|
|
1745
|
-
const [h,
|
|
1746
|
-
a[h] || (a[h] = []), a[h].push(
|
|
1755
|
+
const d = s[o];
|
|
1756
|
+
for (const _ of d) {
|
|
1757
|
+
const [h, u] = _;
|
|
1758
|
+
a[h] || (a[h] = []), a[h].push(u);
|
|
1747
1759
|
}
|
|
1748
1760
|
}
|
|
1749
1761
|
for (const o of Object.keys(a)) {
|
|
1750
|
-
const
|
|
1751
|
-
n[o] =
|
|
1762
|
+
const d = a[o];
|
|
1763
|
+
n[o] = d.some((_) => _);
|
|
1752
1764
|
}
|
|
1753
1765
|
return n;
|
|
1754
1766
|
}, st = ({
|
|
@@ -1784,16 +1796,16 @@ const ne = ({
|
|
|
1784
1796
|
return s;
|
|
1785
1797
|
if (i.trim().length === 0)
|
|
1786
1798
|
return;
|
|
1787
|
-
const
|
|
1788
|
-
return
|
|
1799
|
+
const u = i.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((c) => c.split(":")), g = {};
|
|
1800
|
+
return u.forEach((c) => {
|
|
1789
1801
|
const b = c[1];
|
|
1790
1802
|
if (!c[1].includes("'") && c[1] !== "true" && c[1] !== "false") {
|
|
1791
|
-
const
|
|
1803
|
+
const p = rt({
|
|
1792
1804
|
values: t,
|
|
1793
1805
|
fields: e,
|
|
1794
1806
|
fieldName: b === "active_id" ? "id" : b
|
|
1795
1807
|
});
|
|
1796
|
-
g[c[0].replace(/'/g, "")] =
|
|
1808
|
+
g[c[0].replace(/'/g, "")] = p || void 0;
|
|
1797
1809
|
} else
|
|
1798
1810
|
c[1] === "true" ? g[c[0].replace(/'/g, "")] = !0 : c[1] === "false" ? g[c[0].replace(/'/g, "")] = !1 : g[c[0].replace(/'/g, "")] = c[1].replace(
|
|
1799
1811
|
/'/g,
|
|
@@ -1806,8 +1818,8 @@ const ne = ({
|
|
|
1806
1818
|
}, Tt = (i) => {
|
|
1807
1819
|
const t = [];
|
|
1808
1820
|
try {
|
|
1809
|
-
return !i || le(i) || typeof i != "string" ? t : ae(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((
|
|
1810
|
-
!
|
|
1821
|
+
return !i || le(i) || typeof i != "string" ? t : ae(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) => {
|
|
1822
|
+
!u[1].includes("'") && u[1] !== "true" && u[1] !== "false" && t.push(u[1].replace(/'/g, ""));
|
|
1811
1823
|
}), t);
|
|
1812
1824
|
} catch {
|
|
1813
1825
|
}
|
|
@@ -1952,17 +1964,17 @@ class zt {
|
|
|
1952
1964
|
}
|
|
1953
1965
|
parse(t, e) {
|
|
1954
1966
|
var o;
|
|
1955
|
-
const { values: s = {}, readOnly: n = !1 } = e || {}, a = D.parse(t).filter((
|
|
1967
|
+
const { values: s = {}, readOnly: n = !1 } = e || {}, a = D.parse(t).filter((d) => d.tagName === "form")[0];
|
|
1956
1968
|
this._string = ((o = a.attributes) == null ? void 0 : o.string) || null, this._string && (this._string = m(this._string)), this._readOnly = n, this._context = s.id ? { active_id: s.id, active_ids: [s.id] } : {}, this._invisibleFields = [], this.parseNode({
|
|
1957
1969
|
fields: a.children,
|
|
1958
1970
|
container: this._container,
|
|
1959
1971
|
values: s
|
|
1960
1972
|
});
|
|
1961
1973
|
const l = at(this._container._rows);
|
|
1962
|
-
l.forEach((
|
|
1963
|
-
const _ =
|
|
1964
|
-
_._id && _._context && (this._contextForFields[_._id] =
|
|
1965
|
-
}), this._autorefreshableFields = l.filter((
|
|
1974
|
+
l.forEach((d) => {
|
|
1975
|
+
const _ = d;
|
|
1976
|
+
_._id && _._context && (this._contextForFields[_._id] = d._context);
|
|
1977
|
+
}), this._autorefreshableFields = l.filter((d) => d instanceof f && d.autoRefresh).map((d) => d._id);
|
|
1966
1978
|
}
|
|
1967
1979
|
parseNode({
|
|
1968
1980
|
fields: t,
|
|
@@ -1972,29 +1984,29 @@ class zt {
|
|
|
1972
1984
|
const n = new $();
|
|
1973
1985
|
t.filter((a) => typeof a == "object").forEach((a) => {
|
|
1974
1986
|
var F, v;
|
|
1975
|
-
const { tagName: l, attributes: o, children:
|
|
1987
|
+
const { tagName: l, attributes: o, children: d } = a;
|
|
1976
1988
|
let _ = l, h = o;
|
|
1977
1989
|
if (l === "field") {
|
|
1978
|
-
const { name:
|
|
1990
|
+
const { name: x, widget: S } = o;
|
|
1979
1991
|
if (S)
|
|
1980
1992
|
_ = S;
|
|
1981
|
-
else if (
|
|
1982
|
-
if (!this._fields[
|
|
1993
|
+
else if (x) {
|
|
1994
|
+
if (!this._fields[x])
|
|
1983
1995
|
throw new Error(
|
|
1984
|
-
`Field ${
|
|
1996
|
+
`Field ${x} doesn't exist in fields defintion`
|
|
1985
1997
|
);
|
|
1986
|
-
_ = this._fields[
|
|
1998
|
+
_ = this._fields[x].type, o.widget_props = {
|
|
1987
1999
|
...U(o.widget_props),
|
|
1988
|
-
...this._fields[
|
|
2000
|
+
...this._fields[x].widget_props || {}
|
|
1989
2001
|
};
|
|
1990
2002
|
}
|
|
1991
2003
|
h = {
|
|
1992
|
-
...this._fields[
|
|
2004
|
+
...this._fields[x],
|
|
1993
2005
|
...o,
|
|
1994
|
-
fieldsWidgetType: this._fields[
|
|
2006
|
+
fieldsWidgetType: this._fields[x].type
|
|
1995
2007
|
};
|
|
1996
2008
|
}
|
|
1997
|
-
const
|
|
2009
|
+
const u = Ce({
|
|
1998
2010
|
tagAttributes: h,
|
|
1999
2011
|
values: s,
|
|
2000
2012
|
fields: this._fields,
|
|
@@ -2019,17 +2031,17 @@ class zt {
|
|
|
2019
2031
|
));
|
|
2020
2032
|
let b;
|
|
2021
2033
|
Q(h.domain) ? b = h.domain : Q((v = this._fields[h.name]) == null ? void 0 : v.domain) && (b = this._fields[h.name].domain), this._keyIdx = this._keyIdx + 1;
|
|
2022
|
-
const
|
|
2023
|
-
...
|
|
2034
|
+
const p = {
|
|
2035
|
+
...u,
|
|
2024
2036
|
...g,
|
|
2025
2037
|
context: c,
|
|
2026
2038
|
domain: b,
|
|
2027
2039
|
key: `${this._keyIdx}`
|
|
2028
2040
|
};
|
|
2029
|
-
e.readOnly && (
|
|
2030
|
-
const y = n.createWidget(_,
|
|
2031
|
-
y.invisible && y instanceof f && this._invisibleFields.push(
|
|
2032
|
-
fields:
|
|
2041
|
+
e.readOnly && (p.readonly = !0);
|
|
2042
|
+
const y = n.createWidget(_, p);
|
|
2043
|
+
y.invisible && y instanceof f && this._invisibleFields.push(p.name), y instanceof w && this.parseNode({
|
|
2044
|
+
fields: d,
|
|
2033
2045
|
container: y.container,
|
|
2034
2046
|
values: s
|
|
2035
2047
|
}), y instanceof ee && y.readOnly !== void 0 || (y.readOnly = y.readOnly || this.readOnly), e.addWidget(y);
|
|
@@ -2125,30 +2137,30 @@ class St {
|
|
|
2125
2137
|
const { tagName: a, attributes: l } = n;
|
|
2126
2138
|
let o = null;
|
|
2127
2139
|
if (a === "field") {
|
|
2128
|
-
const { name:
|
|
2140
|
+
const { name: d, widget: _ } = l;
|
|
2129
2141
|
let h = l;
|
|
2130
|
-
if (
|
|
2131
|
-
if (!this._fields[
|
|
2132
|
-
throw new Error(`Field ${
|
|
2133
|
-
const
|
|
2134
|
-
o =
|
|
2142
|
+
if (d) {
|
|
2143
|
+
if (!this._fields[d])
|
|
2144
|
+
throw new Error(`Field ${d} doesn't exist in fields defintion`);
|
|
2145
|
+
const u = this._fields[d];
|
|
2146
|
+
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;
|
|
2135
2147
|
const g = ne({
|
|
2136
|
-
context: l.context ||
|
|
2148
|
+
context: l.context || u.context,
|
|
2137
2149
|
values: {},
|
|
2138
2150
|
fields: this._fields
|
|
2139
2151
|
});
|
|
2140
2152
|
h = {
|
|
2141
|
-
...
|
|
2153
|
+
...u,
|
|
2142
2154
|
...l,
|
|
2143
|
-
fieldsWidgetType:
|
|
2155
|
+
fieldsWidgetType: u == null ? void 0 : u.type,
|
|
2144
2156
|
context: g
|
|
2145
|
-
}, this._contextForFields[
|
|
2157
|
+
}, this._contextForFields[d] = g;
|
|
2146
2158
|
}
|
|
2147
2159
|
if (_ && (o = _), !h.invisible) {
|
|
2148
|
-
const
|
|
2149
|
-
this._columns.push(
|
|
2160
|
+
const u = s.createWidget(o, h);
|
|
2161
|
+
this._columns.push(u);
|
|
2150
2162
|
}
|
|
2151
|
-
k(h.autorefresh) && this._autorefreshableFields.push(
|
|
2163
|
+
k(h.autorefresh) && this._autorefreshableFields.push(d);
|
|
2152
2164
|
}
|
|
2153
2165
|
});
|
|
2154
2166
|
}
|
|
@@ -2241,11 +2253,11 @@ const Et = ({
|
|
|
2241
2253
|
if (!Array.isArray(s))
|
|
2242
2254
|
return;
|
|
2243
2255
|
const [n, a, l] = s;
|
|
2244
|
-
let o,
|
|
2245
|
-
n.indexOf(".") !== -1 ? (o = n.substr(0, n.indexOf(".")),
|
|
2256
|
+
let o, d;
|
|
2257
|
+
n.indexOf(".") !== -1 ? (o = n.substr(0, n.indexOf(".")), d = n.substr(
|
|
2246
2258
|
n.indexOf(".") + 1,
|
|
2247
2259
|
n.length - 1
|
|
2248
|
-
)) : (o = n,
|
|
2260
|
+
)) : (o = n, d = "id"), o === t && e.push([d, a, l]);
|
|
2249
2261
|
}), e;
|
|
2250
2262
|
}, Vt = (i) => typeof i != "string" ? [] : i.replace(/[()[\]]/g, "").split(",").map((t) => t.trim()).filter((t) => !t.includes("'"));
|
|
2251
2263
|
class ot {
|
|
@@ -2353,12 +2365,12 @@ class ct extends ce {
|
|
|
2353
2365
|
return this._operator;
|
|
2354
2366
|
}
|
|
2355
2367
|
}
|
|
2356
|
-
const
|
|
2368
|
+
const dt = (i) => {
|
|
2357
2369
|
const t = [];
|
|
2358
2370
|
let e;
|
|
2359
2371
|
if (i.forEach((s) => {
|
|
2360
2372
|
if (s.tagName === "field") {
|
|
2361
|
-
const n = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0,
|
|
2373
|
+
const n = s.attributes.axis, a = s.attributes.operator, l = s.attributes.name, o = s.attributes.label || void 0, d = s.attributes.stacked || void 0;
|
|
2362
2374
|
if (!n)
|
|
2363
2375
|
throw new Error(`Field ${l} doesn't have an axis`);
|
|
2364
2376
|
if (!l)
|
|
@@ -2370,7 +2382,7 @@ const ut = (i) => {
|
|
|
2370
2382
|
name: l,
|
|
2371
2383
|
operator: a,
|
|
2372
2384
|
label: o,
|
|
2373
|
-
stacked:
|
|
2385
|
+
stacked: d
|
|
2374
2386
|
})
|
|
2375
2387
|
);
|
|
2376
2388
|
}
|
|
@@ -2389,7 +2401,7 @@ class j extends oe {
|
|
|
2389
2401
|
r(this, "_x");
|
|
2390
2402
|
r(this, "_y");
|
|
2391
2403
|
this._type = e;
|
|
2392
|
-
const n =
|
|
2404
|
+
const n = dt(s.children);
|
|
2393
2405
|
this._x = n.x, this._y = n.y;
|
|
2394
2406
|
}
|
|
2395
2407
|
get x() {
|
|
@@ -2399,7 +2411,7 @@ class j extends oe {
|
|
|
2399
2411
|
return this._y;
|
|
2400
2412
|
}
|
|
2401
2413
|
}
|
|
2402
|
-
const
|
|
2414
|
+
const ut = {
|
|
2403
2415
|
indicator: ce,
|
|
2404
2416
|
indicatorField: ct,
|
|
2405
2417
|
line: j,
|
|
@@ -2409,12 +2421,12 @@ const dt = {
|
|
|
2409
2421
|
const t = D.parse(i).filter((n) => n.tagName === "graph")[0], e = t.attributes.type;
|
|
2410
2422
|
if (!e)
|
|
2411
2423
|
throw new Error(`${e} is not a valid graph`);
|
|
2412
|
-
const s =
|
|
2424
|
+
const s = ut[e];
|
|
2413
2425
|
if (!s)
|
|
2414
2426
|
throw new Error(`${e} not found as a GraphModel`);
|
|
2415
2427
|
return new s(e, t);
|
|
2416
2428
|
};
|
|
2417
|
-
class
|
|
2429
|
+
class de {
|
|
2418
2430
|
constructor({ name: t, axis: e }) {
|
|
2419
2431
|
r(this, "_name");
|
|
2420
2432
|
r(this, "_axis");
|
|
@@ -2427,7 +2439,7 @@ class ue {
|
|
|
2427
2439
|
return this._axis;
|
|
2428
2440
|
}
|
|
2429
2441
|
}
|
|
2430
|
-
class ht extends
|
|
2442
|
+
class ht extends de {
|
|
2431
2443
|
constructor({
|
|
2432
2444
|
name: e,
|
|
2433
2445
|
operator: s,
|
|
@@ -2450,7 +2462,7 @@ class ht extends ue {
|
|
|
2450
2462
|
return this._stacked;
|
|
2451
2463
|
}
|
|
2452
2464
|
}
|
|
2453
|
-
class _t extends
|
|
2465
|
+
class _t extends de {
|
|
2454
2466
|
constructor({ name: t }) {
|
|
2455
2467
|
super({ name: t, axis: "x" });
|
|
2456
2468
|
}
|
|
@@ -2508,15 +2520,15 @@ function mt({
|
|
|
2508
2520
|
groupBy: "type-stacked"
|
|
2509
2521
|
}), a = `${t}s`;
|
|
2510
2522
|
return Object.keys(n).forEach((o) => {
|
|
2511
|
-
const
|
|
2512
|
-
for (let _ = 0; _ <
|
|
2513
|
-
const h =
|
|
2514
|
-
if (s.push(h), _ ===
|
|
2523
|
+
const d = n[o];
|
|
2524
|
+
for (let _ = 0; _ < d.length; _++) {
|
|
2525
|
+
const h = d[_];
|
|
2526
|
+
if (s.push(h), _ === d.length - 1)
|
|
2515
2527
|
return;
|
|
2516
|
-
const
|
|
2517
|
-
if (!
|
|
2528
|
+
const u = h.x, g = d[_ + 1].x;
|
|
2529
|
+
if (!ue([u, g], a)) {
|
|
2518
2530
|
const c = bt({
|
|
2519
|
-
dates: [
|
|
2531
|
+
dates: [u, g],
|
|
2520
2532
|
timerange: t,
|
|
2521
2533
|
interval: e
|
|
2522
2534
|
});
|
|
@@ -2530,7 +2542,7 @@ function mt({
|
|
|
2530
2542
|
);
|
|
2531
2543
|
}
|
|
2532
2544
|
}
|
|
2533
|
-
}), s.sort((o,
|
|
2545
|
+
}), s.sort((o, d) => o.x < d.x ? -1 : o.x > d.x ? 1 : 0);
|
|
2534
2546
|
}
|
|
2535
2547
|
function bt({
|
|
2536
2548
|
dates: i,
|
|
@@ -2542,12 +2554,12 @@ function bt({
|
|
|
2542
2554
|
return i;
|
|
2543
2555
|
const a = i.sort((l, o) => l < o ? -1 : l > o ? 1 : 0);
|
|
2544
2556
|
for (let l = 0; l < a.length - 1; l++) {
|
|
2545
|
-
const o = a[l],
|
|
2546
|
-
if (!
|
|
2557
|
+
const o = a[l], d = a[l + 1];
|
|
2558
|
+
if (!ue([o, d], n)) {
|
|
2547
2559
|
const _ = T(o, E(n)).add(
|
|
2548
2560
|
e,
|
|
2549
2561
|
n
|
|
2550
|
-
), h = T(
|
|
2562
|
+
), h = T(d, E(n));
|
|
2551
2563
|
for (; _.isBefore(h); )
|
|
2552
2564
|
s.push(_.format(E(n))), _.add(e, n);
|
|
2553
2565
|
}
|
|
@@ -2558,7 +2570,7 @@ function yt({
|
|
|
2558
2570
|
values: i,
|
|
2559
2571
|
timerange: t
|
|
2560
2572
|
}) {
|
|
2561
|
-
const e =
|
|
2573
|
+
const e = pt({
|
|
2562
2574
|
values: i,
|
|
2563
2575
|
timerange: t
|
|
2564
2576
|
}), s = [], n = he({
|
|
@@ -2566,29 +2578,29 @@ function yt({
|
|
|
2566
2578
|
groupBy: "all"
|
|
2567
2579
|
});
|
|
2568
2580
|
return Object.keys(n).forEach((a) => {
|
|
2569
|
-
const l = n[a], o = l[0].operator === "count" ? "+" : l[0].operator,
|
|
2581
|
+
const l = n[a], o = l[0].operator === "count" ? "+" : l[0].operator, d = Y({
|
|
2570
2582
|
values: l.map((_) => _.value),
|
|
2571
2583
|
operator: o
|
|
2572
2584
|
});
|
|
2573
2585
|
s.push({
|
|
2574
2586
|
...l[0],
|
|
2575
|
-
value:
|
|
2587
|
+
value: d
|
|
2576
2588
|
});
|
|
2577
2589
|
}), s;
|
|
2578
2590
|
}
|
|
2579
|
-
function
|
|
2591
|
+
function pt({
|
|
2580
2592
|
values: i,
|
|
2581
2593
|
timerange: t
|
|
2582
2594
|
}) {
|
|
2583
2595
|
return i.map((e) => ({
|
|
2584
2596
|
...e,
|
|
2585
|
-
x:
|
|
2597
|
+
x: xt({
|
|
2586
2598
|
date: e.x,
|
|
2587
2599
|
timerange: t
|
|
2588
2600
|
})
|
|
2589
2601
|
}));
|
|
2590
2602
|
}
|
|
2591
|
-
function
|
|
2603
|
+
function xt({
|
|
2592
2604
|
date: i,
|
|
2593
2605
|
timerange: t
|
|
2594
2606
|
}) {
|
|
@@ -2621,7 +2633,7 @@ function pt({
|
|
|
2621
2633
|
function wt(i) {
|
|
2622
2634
|
return i.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
2623
2635
|
}
|
|
2624
|
-
function
|
|
2636
|
+
function ue(i, t) {
|
|
2625
2637
|
let e = !1;
|
|
2626
2638
|
const s = E(t);
|
|
2627
2639
|
if (i.length === 0)
|
|
@@ -2680,7 +2692,7 @@ const Ft = {
|
|
|
2680
2692
|
}), a = [];
|
|
2681
2693
|
i.y.forEach((c) => {
|
|
2682
2694
|
Object.keys(n).forEach((b) => {
|
|
2683
|
-
const
|
|
2695
|
+
const p = n[b].label, y = n[b].entries;
|
|
2684
2696
|
if (c.label) {
|
|
2685
2697
|
const F = B({
|
|
2686
2698
|
fieldName: c.label,
|
|
@@ -2688,8 +2700,8 @@ const Ft = {
|
|
|
2688
2700
|
fields: e
|
|
2689
2701
|
});
|
|
2690
2702
|
Object.keys(F).forEach((v) => {
|
|
2691
|
-
const
|
|
2692
|
-
entries:
|
|
2703
|
+
const x = F[v].entries, S = F[v].label, ge = N({
|
|
2704
|
+
entries: x,
|
|
2693
2705
|
fields: e,
|
|
2694
2706
|
fieldName: c.name
|
|
2695
2707
|
}), me = Y({
|
|
@@ -2697,7 +2709,7 @@ const Ft = {
|
|
|
2697
2709
|
operator: c.operator
|
|
2698
2710
|
});
|
|
2699
2711
|
a.push({
|
|
2700
|
-
x:
|
|
2712
|
+
x: p || !1,
|
|
2701
2713
|
value: me,
|
|
2702
2714
|
type: S,
|
|
2703
2715
|
operator: c.operator,
|
|
@@ -2714,7 +2726,7 @@ const Ft = {
|
|
|
2714
2726
|
operator: c.operator
|
|
2715
2727
|
});
|
|
2716
2728
|
a.push({
|
|
2717
|
-
x:
|
|
2729
|
+
x: p || !1,
|
|
2718
2730
|
value: v,
|
|
2719
2731
|
type: _e({
|
|
2720
2732
|
yAxis: c,
|
|
@@ -2733,21 +2745,21 @@ const Ft = {
|
|
|
2733
2745
|
i.type === "pie" && h.some((c) => c.x === !1) ? h = h.map((c) => c.x === !1 ? { ...c, x: (s == null ? void 0 : s.uninformedString) || "Not informed" } : c) : _.some((c) => c.x === !1) && (h = h.filter(
|
|
2734
2746
|
(c) => c.x !== !1
|
|
2735
2747
|
));
|
|
2736
|
-
let
|
|
2737
|
-
i.timerange ?
|
|
2738
|
-
values:
|
|
2748
|
+
let u = h;
|
|
2749
|
+
i.timerange ? u = gt({
|
|
2750
|
+
values: u,
|
|
2739
2751
|
timerange: i.timerange,
|
|
2740
2752
|
interval: i.interval
|
|
2741
|
-
}) : i.type == "pie" && (
|
|
2753
|
+
}) : i.type == "pie" && (u = h.sort((c, b) => b.value - c.value));
|
|
2742
2754
|
const g = {
|
|
2743
|
-
data:
|
|
2755
|
+
data: u,
|
|
2744
2756
|
isGroup: o || l,
|
|
2745
2757
|
isStack: o
|
|
2746
2758
|
};
|
|
2747
2759
|
if (i.type === "line" && i.y_range && (g.yAxisOpts = {
|
|
2748
2760
|
mode: i.y_range
|
|
2749
2761
|
}, i.y_range === "auto")) {
|
|
2750
|
-
const { min: c, max: b } = fe(
|
|
2762
|
+
const { min: c, max: b } = fe(u);
|
|
2751
2763
|
g.yAxisOpts.valueOpts = { min: c, max: b };
|
|
2752
2764
|
}
|
|
2753
2765
|
return g;
|
|
@@ -2851,65 +2863,65 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2851
2863
|
processGraphData: vt
|
|
2852
2864
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2853
2865
|
export {
|
|
2854
|
-
|
|
2855
|
-
Ue as Alert,
|
|
2866
|
+
Xe as Alert,
|
|
2856
2867
|
ke as Avatar,
|
|
2857
|
-
|
|
2868
|
+
Ae as Binary,
|
|
2858
2869
|
te as Boolean,
|
|
2859
2870
|
ee as Button,
|
|
2860
2871
|
We as ButtonGroup,
|
|
2861
|
-
|
|
2872
|
+
Ze as Carousel,
|
|
2862
2873
|
A as Char,
|
|
2863
2874
|
re as CodeEditor,
|
|
2864
|
-
|
|
2865
|
-
|
|
2875
|
+
et as ColorPicker,
|
|
2876
|
+
Ue as Comments,
|
|
2866
2877
|
V as Container,
|
|
2867
2878
|
w as ContainerWidget,
|
|
2868
2879
|
Yt as Dashboard,
|
|
2869
2880
|
ot as DashboardItem,
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2881
|
+
Ye as Date,
|
|
2882
|
+
De as DateTime,
|
|
2883
|
+
Ke as Email,
|
|
2873
2884
|
f as Field,
|
|
2874
2885
|
G as Float,
|
|
2875
|
-
|
|
2886
|
+
Ie as FloatTime,
|
|
2876
2887
|
zt as Form,
|
|
2877
2888
|
oe as Graph,
|
|
2878
|
-
|
|
2889
|
+
de as GraphAxis,
|
|
2879
2890
|
j as GraphChart,
|
|
2880
2891
|
ce as GraphIndicator,
|
|
2881
2892
|
ct as GraphIndicatorField,
|
|
2882
2893
|
_t as GraphXAxis,
|
|
2883
2894
|
ht as GraphYAxis,
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2895
|
+
Oe as Group,
|
|
2896
|
+
Ee as HTMLPreview,
|
|
2897
|
+
Ne as Image,
|
|
2898
|
+
Le as Indicator,
|
|
2899
|
+
Se as Integer,
|
|
2889
2900
|
H as JSONField,
|
|
2890
2901
|
Z as Label,
|
|
2891
|
-
|
|
2892
|
-
|
|
2902
|
+
Te as Many2one,
|
|
2903
|
+
ze as Markdown,
|
|
2893
2904
|
se as MultiCheckbox,
|
|
2894
2905
|
K as NewLine,
|
|
2895
2906
|
M as Notebook,
|
|
2896
2907
|
ie as One2many,
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2908
|
+
Pe as Page,
|
|
2909
|
+
Ve as ProgressBar,
|
|
2910
|
+
tt as QRCode,
|
|
2911
|
+
qe as Radio,
|
|
2912
|
+
Me as Reference,
|
|
2901
2913
|
lt as SearchFieldTypes,
|
|
2902
2914
|
It as SearchFilter,
|
|
2903
2915
|
z as Selection,
|
|
2904
|
-
|
|
2916
|
+
je as Separator,
|
|
2905
2917
|
R as Spinner,
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2918
|
+
He as Steps,
|
|
2919
|
+
Je as Switch,
|
|
2920
|
+
$e as Tag,
|
|
2921
|
+
Ge as Tags,
|
|
2910
2922
|
L as Text,
|
|
2911
|
-
|
|
2912
|
-
|
|
2923
|
+
Qe as Time,
|
|
2924
|
+
Re as Timeline,
|
|
2913
2925
|
St as Tree,
|
|
2914
2926
|
C as Widget,
|
|
2915
2927
|
jt as graphFieldUtils,
|