@gisce/ooui 2.2.0 → 2.2.1
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/Form.d.ts.map +1 -1
- package/dist/ooui.es.js +66 -66
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Form.ts +1 -2
- package/src/spec/Form.spec.ts +2334 -0
package/dist/Form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AASlD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,cAAM,IAAI;IACR;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,MAAM,QAET;IAED,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC9B,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED;;OAEG;IACH,KAAK,EAAE,MAAM,CAAU;IACvB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,SAAS,EAAE,OAAO,CAAS;IAC3B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IAED;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAM;IACnB,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,GAAG,EAErB;IAED;;OAEG;IACH,eAAe,EAAE,GAAG,CAAM;IAC1B,IAAI,cAAc,IAAI,GAAG,CAExB;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,GAAG,EAE5B;IAkBD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAK;IACpB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAChC,IAAI,eAAe,IAAI,MAAM,EAAE,CAE9B;IAED,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,EAElC;gBAEW,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU;IAK/C,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAqB7C,SAAS,CAAC,EACR,MAAM,EACN,SAAS,EACT,MAAM,GACP,EAAE;QACD,MAAM,EAAE,UAAU,EAAE,CAAC;QACrB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,EAAE,GAAG,CAAC;KACb;IA+GD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAGpC;AAaD,eAAe,IAAI,CAAC"}
|
package/dist/ooui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (s, t, e) => (
|
|
4
|
-
import { decode as
|
|
5
|
-
import { evaluateCondition as
|
|
1
|
+
var oe = Object.defineProperty;
|
|
2
|
+
var ce = (s, t, e) => t in s ? oe(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var n = (s, t, e) => (ce(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { decode as de } from "html-entities";
|
|
5
|
+
import { evaluateCondition as ue } from "@gisce/conscheck";
|
|
6
6
|
import * as Y from "txml";
|
|
7
7
|
import E from "moment";
|
|
8
8
|
const F = class F {
|
|
@@ -108,7 +108,7 @@ const F = class F {
|
|
|
108
108
|
*/
|
|
109
109
|
n(F, "_defaultColspan", 1);
|
|
110
110
|
let v = F;
|
|
111
|
-
const
|
|
111
|
+
const he = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), _e = ({
|
|
112
112
|
entry: s,
|
|
113
113
|
values: t,
|
|
114
114
|
fields: e
|
|
@@ -144,7 +144,7 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
144
144
|
default:
|
|
145
145
|
return !1;
|
|
146
146
|
}
|
|
147
|
-
}, b = (s) =>
|
|
147
|
+
}, b = (s) => de(s, { level: "xml" }), q = ({
|
|
148
148
|
fieldName: s,
|
|
149
149
|
valueInObject: t,
|
|
150
150
|
expectedValue: e,
|
|
@@ -164,7 +164,7 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
164
164
|
modifiedExpectedValue: null,
|
|
165
165
|
directOutcome: !1
|
|
166
166
|
} : (r.modifiedValueInObject = i[s].type === "boolean" ? !!t : t, i[s].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), i[s].type === "many2one" && Array.isArray(r.modifiedValueInObject) && r.modifiedValueInObject[0] === void 0 && (r.modifiedValueInObject = !1), i[s].type === "boolean" && (e === 0 || e === 1) && (r.modifiedExpectedValue = e !== 0), r);
|
|
167
|
-
},
|
|
167
|
+
}, fe = ({
|
|
168
168
|
attrs: s,
|
|
169
169
|
values: t,
|
|
170
170
|
fields: e,
|
|
@@ -172,11 +172,11 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
172
172
|
}) => {
|
|
173
173
|
const h = s.replace(/\(/g, "[").replace(/\)/g, "]").replace(/'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), _ = b(h), u = JSON.parse(_), d = {};
|
|
174
174
|
for (const c of Object.keys(u)) {
|
|
175
|
-
const y = u[c].map((m) =>
|
|
175
|
+
const y = u[c].map((m) => _e({ entry: m, values: t, fields: e })).every((m) => m);
|
|
176
176
|
y ? d[c] = !0 : c === "readonly" && !y && i === "button" && (d[c] = !1);
|
|
177
177
|
}
|
|
178
178
|
return d;
|
|
179
|
-
},
|
|
179
|
+
}, ge = ({
|
|
180
180
|
attrs: s,
|
|
181
181
|
values: t,
|
|
182
182
|
fields: e
|
|
@@ -186,7 +186,7 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
186
186
|
i.replace(/'/g, '"')
|
|
187
187
|
), a = {};
|
|
188
188
|
for (const l of Object.keys(r))
|
|
189
|
-
a[l] =
|
|
189
|
+
a[l] = ue({
|
|
190
190
|
object: t,
|
|
191
191
|
condition: r[l],
|
|
192
192
|
evaluateFieldComparison: ({
|
|
@@ -206,7 +206,7 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
206
206
|
"Error parsing new json_attrs. Original string: " + s
|
|
207
207
|
) : i;
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, me = ({
|
|
210
210
|
tagAttributes: s,
|
|
211
211
|
values: t,
|
|
212
212
|
fields: e,
|
|
@@ -214,14 +214,14 @@ const _e = (s = !1) => (s = JSON.parse(s.toString().toLowerCase()), +s > 0), fe
|
|
|
214
214
|
fallbackMode: r = !0
|
|
215
215
|
}) => {
|
|
216
216
|
let a = {}, l = {};
|
|
217
|
-
if (s.attrs && (l =
|
|
217
|
+
if (s.attrs && (l = fe({
|
|
218
218
|
attrs: s.attrs,
|
|
219
219
|
values: t,
|
|
220
220
|
fields: e,
|
|
221
221
|
widgetType: i
|
|
222
222
|
})), s.json_attrs)
|
|
223
223
|
try {
|
|
224
|
-
a =
|
|
224
|
+
a = ge({
|
|
225
225
|
attrs: s.json_attrs,
|
|
226
226
|
values: t,
|
|
227
227
|
fields: e
|
|
@@ -287,7 +287,7 @@ class g extends v {
|
|
|
287
287
|
* Values and keys
|
|
288
288
|
*/
|
|
289
289
|
n(this, "_selectionValues", /* @__PURE__ */ new Map([]));
|
|
290
|
-
this._activated = !0, e && (e.name && (this._id = e.name), 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 =
|
|
290
|
+
this._activated = !0, e && (e.name && (this._id = e.name), 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 = he(e.help_inline)));
|
|
291
291
|
}
|
|
292
292
|
get id() {
|
|
293
293
|
return this._id;
|
|
@@ -351,7 +351,7 @@ class g extends v {
|
|
|
351
351
|
return this._id === e ? this : null;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
class
|
|
354
|
+
class be extends g {
|
|
355
355
|
}
|
|
356
356
|
class J extends v {
|
|
357
357
|
findById(t) {
|
|
@@ -616,7 +616,7 @@ const O = class O extends C {
|
|
|
616
616
|
};
|
|
617
617
|
n(O, "_defaultColspan", 3);
|
|
618
618
|
let M = O;
|
|
619
|
-
class
|
|
619
|
+
class ye extends C {
|
|
620
620
|
constructor(e) {
|
|
621
621
|
super(e);
|
|
622
622
|
n(this, "_icon", null);
|
|
@@ -642,7 +642,7 @@ class pe extends C {
|
|
|
642
642
|
this._icon = e;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
class
|
|
645
|
+
class Q extends g {
|
|
646
646
|
constructor(e) {
|
|
647
647
|
super({
|
|
648
648
|
...e,
|
|
@@ -873,7 +873,7 @@ class we extends g {
|
|
|
873
873
|
}
|
|
874
874
|
class ve extends B {
|
|
875
875
|
}
|
|
876
|
-
class
|
|
876
|
+
class X extends g {
|
|
877
877
|
constructor(t) {
|
|
878
878
|
super(t);
|
|
879
879
|
}
|
|
@@ -966,7 +966,7 @@ class Te extends g {
|
|
|
966
966
|
this._mustExpand = e;
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
class
|
|
969
|
+
class U extends g {
|
|
970
970
|
constructor(e) {
|
|
971
971
|
super(e);
|
|
972
972
|
/**
|
|
@@ -1098,7 +1098,7 @@ class We extends g {
|
|
|
1098
1098
|
super(t);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class Ve extends
|
|
1101
|
+
class Ve extends U {
|
|
1102
1102
|
constructor(e) {
|
|
1103
1103
|
super(e);
|
|
1104
1104
|
/**
|
|
@@ -1158,7 +1158,7 @@ class Ye extends T {
|
|
|
1158
1158
|
this._suffix = e;
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
class
|
|
1161
|
+
class K extends g {
|
|
1162
1162
|
constructor(e) {
|
|
1163
1163
|
super(e);
|
|
1164
1164
|
/**
|
|
@@ -1211,7 +1211,7 @@ class Z extends g {
|
|
|
1211
1211
|
this._columns = e;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
|
-
class De extends
|
|
1214
|
+
class De extends K {
|
|
1215
1215
|
}
|
|
1216
1216
|
class je extends T {
|
|
1217
1217
|
get colors() {
|
|
@@ -1234,7 +1234,7 @@ class Me extends T {
|
|
|
1234
1234
|
this._direction = e;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
class Ne extends
|
|
1237
|
+
class Ne extends X {
|
|
1238
1238
|
}
|
|
1239
1239
|
class Ae extends g {
|
|
1240
1240
|
constructor(e) {
|
|
@@ -1290,7 +1290,7 @@ class L {
|
|
|
1290
1290
|
this._widgetClass = M;
|
|
1291
1291
|
break;
|
|
1292
1292
|
case "page":
|
|
1293
|
-
this._widgetClass =
|
|
1293
|
+
this._widgetClass = ye;
|
|
1294
1294
|
break;
|
|
1295
1295
|
case "group":
|
|
1296
1296
|
this._widgetClass = pe;
|
|
@@ -1305,7 +1305,7 @@ class L {
|
|
|
1305
1305
|
this._widgetClass = B;
|
|
1306
1306
|
break;
|
|
1307
1307
|
case "button":
|
|
1308
|
-
this._widgetClass =
|
|
1308
|
+
this._widgetClass = Q;
|
|
1309
1309
|
break;
|
|
1310
1310
|
case "buttonGroup":
|
|
1311
1311
|
this._widgetClass = xe;
|
|
@@ -1317,7 +1317,7 @@ class L {
|
|
|
1317
1317
|
this._widgetClass = we;
|
|
1318
1318
|
break;
|
|
1319
1319
|
case "boolean":
|
|
1320
|
-
this._widgetClass =
|
|
1320
|
+
this._widgetClass = X;
|
|
1321
1321
|
break;
|
|
1322
1322
|
case "integer":
|
|
1323
1323
|
this._widgetClass = Ce;
|
|
@@ -1345,7 +1345,7 @@ class L {
|
|
|
1345
1345
|
break;
|
|
1346
1346
|
case "one2many":
|
|
1347
1347
|
case "one2many_list":
|
|
1348
|
-
this._widgetClass =
|
|
1348
|
+
this._widgetClass = U;
|
|
1349
1349
|
break;
|
|
1350
1350
|
case "newline":
|
|
1351
1351
|
this._widgetClass = J;
|
|
@@ -1384,13 +1384,13 @@ class L {
|
|
|
1384
1384
|
this._widgetClass = je;
|
|
1385
1385
|
break;
|
|
1386
1386
|
case "avatar":
|
|
1387
|
-
this._widgetClass =
|
|
1387
|
+
this._widgetClass = be;
|
|
1388
1388
|
break;
|
|
1389
1389
|
case "radio":
|
|
1390
1390
|
this._widgetClass = Me;
|
|
1391
1391
|
break;
|
|
1392
1392
|
case "multicheckbox":
|
|
1393
|
-
this._widgetClass =
|
|
1393
|
+
this._widgetClass = K;
|
|
1394
1394
|
break;
|
|
1395
1395
|
case "switch":
|
|
1396
1396
|
this._widgetClass = Ne;
|
|
@@ -1475,9 +1475,9 @@ const qe = ({
|
|
|
1475
1475
|
try {
|
|
1476
1476
|
if (!s)
|
|
1477
1477
|
return;
|
|
1478
|
-
if (
|
|
1478
|
+
if (ee(s) || typeof s != "string")
|
|
1479
1479
|
return s;
|
|
1480
|
-
const i =
|
|
1480
|
+
const i = Z(s);
|
|
1481
1481
|
if (i !== null)
|
|
1482
1482
|
return i;
|
|
1483
1483
|
if (s.trim().length === 0)
|
|
@@ -1504,21 +1504,21 @@ const qe = ({
|
|
|
1504
1504
|
}, bt = (s) => {
|
|
1505
1505
|
const t = [];
|
|
1506
1506
|
try {
|
|
1507
|
-
return !s ||
|
|
1507
|
+
return !s || ee(s) || typeof s != "string" ? t : Z(s) !== null ? [] : (s.trim().length === 0 || s.replace(/"/g, "'").replace(/\s/g, "").replace(/True/g, "true").replace(/False/g, "false").replace(/\{/g, "").replace(/\}/g, "").split(",").map((d) => d.split(":")).forEach((d) => {
|
|
1508
1508
|
!d[1].includes("'") && d[1] !== "true" && d[1] !== "false" && t.push(d[1].replace(/'/g, ""));
|
|
1509
1509
|
}), t);
|
|
1510
1510
|
} catch {
|
|
1511
1511
|
}
|
|
1512
1512
|
return t;
|
|
1513
1513
|
};
|
|
1514
|
-
function
|
|
1514
|
+
function Z(s) {
|
|
1515
1515
|
try {
|
|
1516
1516
|
return JSON.parse(s.replace(/'/g, '"'));
|
|
1517
1517
|
} catch {
|
|
1518
1518
|
return null;
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function ee(s) {
|
|
1522
1522
|
return typeof s == "object" && s !== null && typeof s != "string";
|
|
1523
1523
|
}
|
|
1524
1524
|
const Je = (s) => {
|
|
@@ -1655,7 +1655,7 @@ class yt {
|
|
|
1655
1655
|
fieldsWidgetType: this._fields[x].type
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
1658
|
-
const d =
|
|
1658
|
+
const d = me({
|
|
1659
1659
|
tagAttributes: u,
|
|
1660
1660
|
values: i,
|
|
1661
1661
|
fields: this._fields,
|
|
@@ -1687,13 +1687,13 @@ class yt {
|
|
|
1687
1687
|
domain: p,
|
|
1688
1688
|
key: `${this._keyIdx}`
|
|
1689
1689
|
};
|
|
1690
|
-
e
|
|
1690
|
+
e.readOnly && (y.readonly = !0);
|
|
1691
1691
|
const m = r.createWidget(_, y);
|
|
1692
1692
|
m.invisible && m instanceof g && this._invisibleFields.push(y.name), m instanceof C && this.parseNode({
|
|
1693
1693
|
fields: h,
|
|
1694
1694
|
container: m.container,
|
|
1695
1695
|
values: i
|
|
1696
|
-
}), m instanceof
|
|
1696
|
+
}), m instanceof Q && m.readOnly !== void 0 || (m.readOnly = m.readOnly || this.readOnly), e.addWidget(m);
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
1699
|
/**
|
|
@@ -1905,7 +1905,7 @@ class Ct {
|
|
|
1905
1905
|
return this._items;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
class
|
|
1908
|
+
class te {
|
|
1909
1909
|
constructor(t) {
|
|
1910
1910
|
n(this, "_string", null);
|
|
1911
1911
|
n(this, "_type");
|
|
@@ -1923,7 +1923,7 @@ class se {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
const Xe = (s) => s === 1 || s === "1" || s === !0 || s === "True";
|
|
1926
|
-
class
|
|
1926
|
+
class se extends te {
|
|
1927
1927
|
constructor(e, i) {
|
|
1928
1928
|
super(i);
|
|
1929
1929
|
n(this, "_color", null);
|
|
@@ -1949,7 +1949,7 @@ class ie extends se {
|
|
|
1949
1949
|
return this._suffix;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
class Ue extends
|
|
1952
|
+
class Ue extends se {
|
|
1953
1953
|
constructor(e, i) {
|
|
1954
1954
|
super(e, i);
|
|
1955
1955
|
n(this, "_field");
|
|
@@ -1999,7 +1999,7 @@ const Ke = (s) => {
|
|
|
1999
1999
|
y: t
|
|
2000
2000
|
};
|
|
2001
2001
|
};
|
|
2002
|
-
class j extends
|
|
2002
|
+
class j extends te {
|
|
2003
2003
|
constructor(e, i) {
|
|
2004
2004
|
super(i);
|
|
2005
2005
|
n(this, "_x");
|
|
@@ -2016,7 +2016,7 @@ class j extends se {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
2018
|
const Ze = {
|
|
2019
|
-
indicator:
|
|
2019
|
+
indicator: se,
|
|
2020
2020
|
indicatorField: Ue,
|
|
2021
2021
|
line: j,
|
|
2022
2022
|
bar: j,
|
|
@@ -2030,7 +2030,7 @@ const Ze = {
|
|
|
2030
2030
|
throw new Error(`${e} not found as a GraphModel`);
|
|
2031
2031
|
return new i(e, t);
|
|
2032
2032
|
};
|
|
2033
|
-
class
|
|
2033
|
+
class ie {
|
|
2034
2034
|
constructor({ name: t, axis: e }) {
|
|
2035
2035
|
n(this, "_name");
|
|
2036
2036
|
n(this, "_axis");
|
|
@@ -2043,7 +2043,7 @@ class ne {
|
|
|
2043
2043
|
return this._axis;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
|
-
class et extends
|
|
2046
|
+
class et extends ie {
|
|
2047
2047
|
constructor({
|
|
2048
2048
|
name: e,
|
|
2049
2049
|
operator: i,
|
|
@@ -2066,7 +2066,7 @@ class et extends ne {
|
|
|
2066
2066
|
return this._stacked;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
class tt extends
|
|
2069
|
+
class tt extends ie {
|
|
2070
2070
|
constructor({ name: t }) {
|
|
2071
2071
|
super({ name: t, axis: "x" });
|
|
2072
2072
|
}
|
|
@@ -2116,7 +2116,7 @@ function nt({
|
|
|
2116
2116
|
timerange: t
|
|
2117
2117
|
}) {
|
|
2118
2118
|
let e = [];
|
|
2119
|
-
const i =
|
|
2119
|
+
const i = re({
|
|
2120
2120
|
values: s,
|
|
2121
2121
|
groupBy: "type-stacked"
|
|
2122
2122
|
}), r = `${t}s`;
|
|
@@ -2127,7 +2127,7 @@ function nt({
|
|
|
2127
2127
|
if (e.push(_), h === o.length - 1)
|
|
2128
2128
|
return;
|
|
2129
2129
|
const u = _.x, d = o[h + 1].x;
|
|
2130
|
-
if (!
|
|
2130
|
+
if (!ne([u, d], r)) {
|
|
2131
2131
|
const c = rt({
|
|
2132
2132
|
dates: [u, d],
|
|
2133
2133
|
timerange: t
|
|
@@ -2154,7 +2154,7 @@ function rt({
|
|
|
2154
2154
|
const r = s.sort((a, l) => a < l ? -1 : a > l ? 1 : 0);
|
|
2155
2155
|
for (let a = 0; a < r.length - 1; a++) {
|
|
2156
2156
|
const l = r[a], o = r[a + 1];
|
|
2157
|
-
if (!
|
|
2157
|
+
if (!ne([l, o], i)) {
|
|
2158
2158
|
const h = E(l, I(i)).add(1, i), _ = E(o, I(i));
|
|
2159
2159
|
for (; h.isBefore(_); )
|
|
2160
2160
|
e.push(h.format(I(i))), h.add(1, i);
|
|
@@ -2169,7 +2169,7 @@ function at({
|
|
|
2169
2169
|
const e = lt({
|
|
2170
2170
|
values: s,
|
|
2171
2171
|
timerange: t
|
|
2172
|
-
}), i = [], r =
|
|
2172
|
+
}), i = [], r = re({
|
|
2173
2173
|
values: e,
|
|
2174
2174
|
groupBy: "all"
|
|
2175
2175
|
});
|
|
@@ -2229,7 +2229,7 @@ function ot({
|
|
|
2229
2229
|
function ct(s) {
|
|
2230
2230
|
return s.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function ne(s, t) {
|
|
2233
2233
|
let e = !1;
|
|
2234
2234
|
const i = I(t);
|
|
2235
2235
|
if (s.length === 0)
|
|
@@ -2242,7 +2242,7 @@ function re(s, t) {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
return e;
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function re({
|
|
2246
2246
|
values: s,
|
|
2247
2247
|
groupBy: t
|
|
2248
2248
|
}) {
|
|
@@ -2300,13 +2300,13 @@ const dt = {
|
|
|
2300
2300
|
entries: P,
|
|
2301
2301
|
fields: e,
|
|
2302
2302
|
fieldName: c.name
|
|
2303
|
-
}),
|
|
2303
|
+
}), le = V({
|
|
2304
2304
|
values: z,
|
|
2305
2305
|
operator: c.operator
|
|
2306
2306
|
});
|
|
2307
2307
|
a.push({
|
|
2308
2308
|
x: p || !1,
|
|
2309
|
-
value:
|
|
2309
|
+
value: le,
|
|
2310
2310
|
type: x,
|
|
2311
2311
|
operator: c.operator,
|
|
2312
2312
|
stacked: c.stacked
|
|
@@ -2324,7 +2324,7 @@ const dt = {
|
|
|
2324
2324
|
a.push({
|
|
2325
2325
|
x: p || !1,
|
|
2326
2326
|
value: w,
|
|
2327
|
-
type:
|
|
2327
|
+
type: ae({
|
|
2328
2328
|
yAxis: c,
|
|
2329
2329
|
fields: e
|
|
2330
2330
|
}),
|
|
@@ -2422,7 +2422,7 @@ function ht(s) {
|
|
|
2422
2422
|
t = t.concat(i.entries);
|
|
2423
2423
|
}), t;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function ae({
|
|
2426
2426
|
yAxis: s,
|
|
2427
2427
|
fields: t
|
|
2428
2428
|
}) {
|
|
@@ -2435,15 +2435,15 @@ const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2435
2435
|
getValueForOperator: V,
|
|
2436
2436
|
getValuesForYField: N,
|
|
2437
2437
|
getValuesGroupedByField: A,
|
|
2438
|
-
getYAxisFieldname:
|
|
2438
|
+
getYAxisFieldname: ae,
|
|
2439
2439
|
labelsForOperator: dt,
|
|
2440
2440
|
processGraphData: ut
|
|
2441
2441
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2442
2442
|
export {
|
|
2443
|
-
|
|
2443
|
+
be as Avatar,
|
|
2444
2444
|
Se as Binary,
|
|
2445
|
-
|
|
2446
|
-
|
|
2445
|
+
X as Boolean,
|
|
2446
|
+
Q as Button,
|
|
2447
2447
|
xe as ButtonGroup,
|
|
2448
2448
|
D as Char,
|
|
2449
2449
|
Be as CodeEditor,
|
|
@@ -2457,10 +2457,10 @@ export {
|
|
|
2457
2457
|
G as Float,
|
|
2458
2458
|
Fe as FloatTime,
|
|
2459
2459
|
yt as Form,
|
|
2460
|
-
|
|
2461
|
-
|
|
2460
|
+
te as Graph,
|
|
2461
|
+
ie as GraphAxis,
|
|
2462
2462
|
j as GraphChart,
|
|
2463
|
-
|
|
2463
|
+
se as GraphIndicator,
|
|
2464
2464
|
Ue as GraphIndicatorField,
|
|
2465
2465
|
tt as GraphXAxis,
|
|
2466
2466
|
et as GraphYAxis,
|
|
@@ -2472,11 +2472,11 @@ export {
|
|
|
2472
2472
|
Te as Many2many,
|
|
2473
2473
|
we as Many2one,
|
|
2474
2474
|
ve as Markdown,
|
|
2475
|
-
|
|
2475
|
+
K as MultiCheckbox,
|
|
2476
2476
|
J as NewLine,
|
|
2477
2477
|
M as Notebook,
|
|
2478
|
-
|
|
2479
|
-
|
|
2478
|
+
U as One2many,
|
|
2479
|
+
ye as Page,
|
|
2480
2480
|
ke as ProgressBar,
|
|
2481
2481
|
Me as Radio,
|
|
2482
2482
|
ze as Reference,
|