@gisce/ooui 0.22.1 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SearchFilter.d.ts +2 -8
- package/dist/SearchFilter.d.ts.map +1 -1
- package/dist/ooui.es.js +123 -129
- package/dist/ooui.es.js.map +1 -1
- package/dist/ooui.umd.js +8 -8
- package/dist/ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/SearchFilter.ts +6 -28
- package/src/spec/SearchFilter.spec.ts +37 -120
package/dist/ooui.es.js
CHANGED
|
@@ -792,12 +792,12 @@ class Cr extends U {
|
|
|
792
792
|
}
|
|
793
793
|
class Ki extends Cr {
|
|
794
794
|
}
|
|
795
|
-
class
|
|
795
|
+
class Qi extends Pe {
|
|
796
796
|
get colors() {
|
|
797
797
|
return this._parsedWidgetProps.colors || {};
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
class
|
|
800
|
+
class Xi extends Pe {
|
|
801
801
|
constructor(e) {
|
|
802
802
|
super(e), this._direction = "horizontal", e && this.parsedWidgetProps.hasOwnProperty("direction") && (this._direction = this.parsedWidgetProps.direction);
|
|
803
803
|
}
|
|
@@ -941,13 +941,13 @@ class jt {
|
|
|
941
941
|
this._widgetClass = Ki;
|
|
942
942
|
break;
|
|
943
943
|
case "tag":
|
|
944
|
-
this._widgetClass =
|
|
944
|
+
this._widgetClass = Qi;
|
|
945
945
|
break;
|
|
946
946
|
case "avatar":
|
|
947
947
|
this._widgetClass = Oi;
|
|
948
948
|
break;
|
|
949
949
|
case "radio":
|
|
950
|
-
this._widgetClass =
|
|
950
|
+
this._widgetClass = Xi;
|
|
951
951
|
break;
|
|
952
952
|
case "multicheckbox":
|
|
953
953
|
this._widgetClass = Cr;
|
|
@@ -1124,11 +1124,11 @@ Char: ` + t[r]
|
|
|
1124
1124
|
var J = D();
|
|
1125
1125
|
B.push(J), J.tagName[0] === "?" && (B.push(...J.children), J.children = []);
|
|
1126
1126
|
} else {
|
|
1127
|
-
var
|
|
1127
|
+
var X = c();
|
|
1128
1128
|
if (n)
|
|
1129
|
-
|
|
1129
|
+
X.length > 0 && B.push(X);
|
|
1130
1130
|
else {
|
|
1131
|
-
var ce =
|
|
1131
|
+
var ce = X.trim();
|
|
1132
1132
|
ce.length > 0 && B.push(ce);
|
|
1133
1133
|
}
|
|
1134
1134
|
r++;
|
|
@@ -1442,12 +1442,12 @@ var qn = {}.toString, Ur = Array.isArray || function(t) {
|
|
|
1442
1442
|
*/
|
|
1443
1443
|
var Wr = 50;
|
|
1444
1444
|
y.TYPED_ARRAY_SUPPORT = xe.TYPED_ARRAY_SUPPORT !== void 0 ? xe.TYPED_ARRAY_SUPPORT : !0;
|
|
1445
|
-
var Vn =
|
|
1446
|
-
function
|
|
1445
|
+
var Vn = Qe();
|
|
1446
|
+
function Qe() {
|
|
1447
1447
|
return y.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
1448
1448
|
}
|
|
1449
1449
|
function se(t, e) {
|
|
1450
|
-
if (
|
|
1450
|
+
if (Qe() < e)
|
|
1451
1451
|
throw new RangeError("Invalid typed array length");
|
|
1452
1452
|
return y.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e), t.__proto__ = y.prototype) : (t === null && (t = new y(e)), t.length = e), t;
|
|
1453
1453
|
}
|
|
@@ -1536,14 +1536,14 @@ function Jn(t, e) {
|
|
|
1536
1536
|
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
1537
1537
|
}
|
|
1538
1538
|
function $t(t) {
|
|
1539
|
-
if (t >=
|
|
1540
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
1539
|
+
if (t >= Qe())
|
|
1540
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + Qe().toString(16) + " bytes");
|
|
1541
1541
|
return t | 0;
|
|
1542
1542
|
}
|
|
1543
1543
|
function Kn(t) {
|
|
1544
1544
|
return +t != t && (t = 0), y.alloc(+t);
|
|
1545
1545
|
}
|
|
1546
|
-
y.isBuffer =
|
|
1546
|
+
y.isBuffer = Qr;
|
|
1547
1547
|
function ne(t) {
|
|
1548
1548
|
return !!(t != null && t._isBuffer);
|
|
1549
1549
|
}
|
|
@@ -1613,7 +1613,7 @@ function zr(t, e) {
|
|
|
1613
1613
|
case "utf8":
|
|
1614
1614
|
case "utf-8":
|
|
1615
1615
|
case void 0:
|
|
1616
|
-
return
|
|
1616
|
+
return Xe(t).length;
|
|
1617
1617
|
case "ucs2":
|
|
1618
1618
|
case "ucs-2":
|
|
1619
1619
|
case "utf16le":
|
|
@@ -1625,12 +1625,12 @@ function zr(t, e) {
|
|
|
1625
1625
|
return Kr(t).length;
|
|
1626
1626
|
default:
|
|
1627
1627
|
if (i)
|
|
1628
|
-
return
|
|
1628
|
+
return Xe(t).length;
|
|
1629
1629
|
e = ("" + e).toLowerCase(), i = !0;
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
y.byteLength = zr;
|
|
1633
|
-
function
|
|
1633
|
+
function Qn(t, e, r) {
|
|
1634
1634
|
var i = !1;
|
|
1635
1635
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
|
|
1636
1636
|
return "";
|
|
@@ -1690,7 +1690,7 @@ y.prototype.swap64 = function() {
|
|
|
1690
1690
|
};
|
|
1691
1691
|
y.prototype.toString = function() {
|
|
1692
1692
|
var e = this.length | 0;
|
|
1693
|
-
return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) :
|
|
1693
|
+
return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) : Qn.apply(this, arguments);
|
|
1694
1694
|
};
|
|
1695
1695
|
y.prototype.equals = function(e) {
|
|
1696
1696
|
if (!ne(e))
|
|
@@ -1779,7 +1779,7 @@ y.prototype.indexOf = function(e, r, i) {
|
|
|
1779
1779
|
y.prototype.lastIndexOf = function(e, r, i) {
|
|
1780
1780
|
return qr(this, e, r, i, !1);
|
|
1781
1781
|
};
|
|
1782
|
-
function
|
|
1782
|
+
function Xn(t, e, r, i) {
|
|
1783
1783
|
r = Number(r) || 0;
|
|
1784
1784
|
var n = t.length - r;
|
|
1785
1785
|
i ? (i = Number(i), i > n && (i = n)) : i = n;
|
|
@@ -1796,7 +1796,7 @@ function Qn(t, e, r, i) {
|
|
|
1796
1796
|
return a;
|
|
1797
1797
|
}
|
|
1798
1798
|
function Zn(t, e, r, i) {
|
|
1799
|
-
return st(
|
|
1799
|
+
return st(Xe(e, t.length - r), t, r, i);
|
|
1800
1800
|
}
|
|
1801
1801
|
function Vr(t, e, r, i) {
|
|
1802
1802
|
return st(da(e), t, r, i);
|
|
@@ -1828,7 +1828,7 @@ y.prototype.write = function(e, r, i, n) {
|
|
|
1828
1828
|
for (var a = !1; ; )
|
|
1829
1829
|
switch (n) {
|
|
1830
1830
|
case "hex":
|
|
1831
|
-
return
|
|
1831
|
+
return Xn(this, e, r, i);
|
|
1832
1832
|
case "utf8":
|
|
1833
1833
|
case "utf-8":
|
|
1834
1834
|
return Zn(this, e, r, i);
|
|
@@ -2170,7 +2170,7 @@ y.prototype.fill = function(e, r, i, n) {
|
|
|
2170
2170
|
for (a = r; a < i; ++a)
|
|
2171
2171
|
this[a] = e;
|
|
2172
2172
|
else {
|
|
2173
|
-
var u = ne(e) ? e :
|
|
2173
|
+
var u = ne(e) ? e : Xe(new y(e, n).toString()), f = u.length;
|
|
2174
2174
|
for (a = 0; a < i - r; ++a)
|
|
2175
2175
|
this[a + r] = u[a % f];
|
|
2176
2176
|
}
|
|
@@ -2190,7 +2190,7 @@ function ca(t) {
|
|
|
2190
2190
|
function ha(t) {
|
|
2191
2191
|
return t < 16 ? "0" + t.toString(16) : t.toString(16);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Xe(t, e) {
|
|
2194
2194
|
e = e || 1 / 0;
|
|
2195
2195
|
for (var r, i = t.length, n = null, s = [], a = 0; a < i; ++a) {
|
|
2196
2196
|
if (r = t.charCodeAt(a), r > 55295 && r < 57344) {
|
|
@@ -2266,21 +2266,21 @@ function st(t, e, r, i) {
|
|
|
2266
2266
|
function _a(t) {
|
|
2267
2267
|
return t !== t;
|
|
2268
2268
|
}
|
|
2269
|
-
function Xr(t) {
|
|
2270
|
-
return t != null && (!!t._isBuffer || Qr(t) || pa(t));
|
|
2271
|
-
}
|
|
2272
2269
|
function Qr(t) {
|
|
2270
|
+
return t != null && (!!t._isBuffer || Xr(t) || pa(t));
|
|
2271
|
+
}
|
|
2272
|
+
function Xr(t) {
|
|
2273
2273
|
return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
2274
2274
|
}
|
|
2275
2275
|
function pa(t) {
|
|
2276
|
-
return typeof t.readFloatLE == "function" && typeof t.slice == "function" &&
|
|
2276
|
+
return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Xr(t.slice(0, 0));
|
|
2277
2277
|
}
|
|
2278
2278
|
const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2279
2279
|
__proto__: null,
|
|
2280
2280
|
Buffer: y,
|
|
2281
2281
|
INSPECT_MAX_BYTES: Wr,
|
|
2282
2282
|
SlowBuffer: Kn,
|
|
2283
|
-
isBuffer:
|
|
2283
|
+
isBuffer: Qr,
|
|
2284
2284
|
kMaxLength: Vn
|
|
2285
2285
|
}, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Yt(ya);
|
|
2286
2286
|
var Pt;
|
|
@@ -2367,7 +2367,7 @@ function ie(t, e) {
|
|
|
2367
2367
|
seen: [],
|
|
2368
2368
|
stylize: ma
|
|
2369
2369
|
};
|
|
2370
|
-
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e &&
|
|
2370
|
+
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e && Qt(r, e), re(r.showHidden) && (r.showHidden = !1), re(r.depth) && (r.depth = 2), re(r.colors) && (r.colors = !1), re(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = ba), Ze(r, t, r.depth);
|
|
2371
2371
|
}
|
|
2372
2372
|
ie.colors = {
|
|
2373
2373
|
bold: [1, 22],
|
|
@@ -2587,7 +2587,7 @@ function Ta() {
|
|
|
2587
2587
|
function ai() {
|
|
2588
2588
|
console.log("%s - %s", Ta(), lt.apply(null, arguments));
|
|
2589
2589
|
}
|
|
2590
|
-
function
|
|
2590
|
+
function Qt(t, e) {
|
|
2591
2591
|
if (!e || !pe(e))
|
|
2592
2592
|
return t;
|
|
2593
2593
|
for (var r = Object.keys(e), i = r.length; i--; )
|
|
@@ -2599,7 +2599,7 @@ function si(t, e) {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
const Ca = {
|
|
2601
2601
|
inherits: Zr,
|
|
2602
|
-
_extend:
|
|
2602
|
+
_extend: Qt,
|
|
2603
2603
|
log: ai,
|
|
2604
2604
|
isBuffer: ni,
|
|
2605
2605
|
isPrimitive: ii,
|
|
@@ -2643,7 +2643,7 @@ const Ca = {
|
|
|
2643
2643
|
isBuffer: ni,
|
|
2644
2644
|
log: ai,
|
|
2645
2645
|
inherits: Zr,
|
|
2646
|
-
_extend:
|
|
2646
|
+
_extend: Qt,
|
|
2647
2647
|
default: Ca
|
|
2648
2648
|
}, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ Yt(Aa);
|
|
2649
2649
|
var Et, sr;
|
|
@@ -2826,7 +2826,7 @@ function ka(t, e) {
|
|
|
2826
2826
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
2827
2827
|
}
|
|
2828
2828
|
var ui = {};
|
|
2829
|
-
function
|
|
2829
|
+
function Q(t, e, r) {
|
|
2830
2830
|
r || (r = Error);
|
|
2831
2831
|
function i(s, a, u) {
|
|
2832
2832
|
return typeof e == "string" ? e : e(s, a, u);
|
|
@@ -2858,10 +2858,10 @@ function Na(t, e, r) {
|
|
|
2858
2858
|
function Ia(t, e, r) {
|
|
2859
2859
|
return typeof r != "number" && (r = 0), r + e.length > t.length ? !1 : t.indexOf(e, r) !== -1;
|
|
2860
2860
|
}
|
|
2861
|
-
|
|
2861
|
+
Q("ERR_INVALID_OPT_VALUE", function(t, e) {
|
|
2862
2862
|
return 'The value "' + e + '" is invalid for option "' + t + '"';
|
|
2863
2863
|
}, TypeError);
|
|
2864
|
-
|
|
2864
|
+
Q("ERR_INVALID_ARG_TYPE", function(t, e, r) {
|
|
2865
2865
|
var i;
|
|
2866
2866
|
typeof e == "string" && Pa(e, "not ") ? (i = "must not be", e = e.replace(/^not /, "")) : i = "must be";
|
|
2867
2867
|
var n;
|
|
@@ -2873,22 +2873,22 @@ X("ERR_INVALID_ARG_TYPE", function(t, e, r) {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
return n += ". Received type ".concat(typeof r), n;
|
|
2875
2875
|
}, TypeError);
|
|
2876
|
-
|
|
2877
|
-
|
|
2876
|
+
Q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
2877
|
+
Q("ERR_METHOD_NOT_IMPLEMENTED", function(t) {
|
|
2878
2878
|
return "The " + t + " method is not implemented";
|
|
2879
2879
|
});
|
|
2880
|
-
|
|
2881
|
-
|
|
2880
|
+
Q("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
2881
|
+
Q("ERR_STREAM_DESTROYED", function(t) {
|
|
2882
2882
|
return "Cannot call " + t + " after a stream was destroyed";
|
|
2883
2883
|
});
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2884
|
+
Q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
2885
|
+
Q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
2886
|
+
Q("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
2887
|
+
Q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
2888
|
+
Q("ERR_UNKNOWN_ENCODING", function(t) {
|
|
2889
2889
|
return "Unknown encoding: " + t;
|
|
2890
2890
|
}, TypeError);
|
|
2891
|
-
|
|
2891
|
+
Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
2892
2892
|
ye.codes = ui;
|
|
2893
2893
|
var Ba = ye.codes.ERR_INVALID_OPT_VALUE;
|
|
2894
2894
|
function La(t, e, r) {
|
|
@@ -3089,10 +3089,10 @@ function ci() {
|
|
|
3089
3089
|
j(d, x, O, h, P);
|
|
3090
3090
|
else {
|
|
3091
3091
|
var o = Be(x) || d.destroyed;
|
|
3092
|
-
!o && !x.corked && !x.bufferProcessing && x.bufferedRequest && ee(d, x), O ? N.nextTick(
|
|
3092
|
+
!o && !x.corked && !x.bufferProcessing && x.bufferedRequest && ee(d, x), O ? N.nextTick(X, d, x, o, P) : X(d, x, o, P);
|
|
3093
3093
|
}
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function X(d, h, x, O) {
|
|
3096
3096
|
x || ce(d, h), h.pendingcb--, O(), he(d, h);
|
|
3097
3097
|
}
|
|
3098
3098
|
function ce(d, h) {
|
|
@@ -3466,7 +3466,7 @@ function hi(t, e, r) {
|
|
|
3466
3466
|
t.removeListener("complete", u), t.removeListener("abort", w), t.removeListener("request", _), t.req && t.req.removeListener("finish", u), t.removeListener("end", s), t.removeListener("close", s), t.removeListener("finish", u), t.removeListener("end", g), t.removeListener("error", b), t.removeListener("close", w);
|
|
3467
3467
|
};
|
|
3468
3468
|
}
|
|
3469
|
-
var
|
|
3469
|
+
var Xt = hi, Ct, _r;
|
|
3470
3470
|
function $a() {
|
|
3471
3471
|
if (_r)
|
|
3472
3472
|
return Ct;
|
|
@@ -3475,7 +3475,7 @@ function $a() {
|
|
|
3475
3475
|
function e(c, p, R) {
|
|
3476
3476
|
return p in c ? Object.defineProperty(c, p, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : c[p] = R, c;
|
|
3477
3477
|
}
|
|
3478
|
-
var r =
|
|
3478
|
+
var r = Xt, i = Symbol("lastResolve"), n = Symbol("lastReject"), s = Symbol("error"), a = Symbol("ended"), u = Symbol("lastPromise"), f = Symbol("handlePromise"), g = Symbol("stream");
|
|
3479
3479
|
function b(c, p) {
|
|
3480
3480
|
return {
|
|
3481
3481
|
value: c,
|
|
@@ -3663,7 +3663,7 @@ function di() {
|
|
|
3663
3663
|
return !k.ended && (k.length < k.highWaterMark || k.length === 0);
|
|
3664
3664
|
}
|
|
3665
3665
|
function $(o, l, v, T) {
|
|
3666
|
-
l.flowing && l.length === 0 && !l.sync ? (l.awaitDrain = 0, o.emit("data", v)) : (l.length += l.objectMode ? 1 : v.length, T ? l.buffer.unshift(v) : l.buffer.push(v), l.needReadable &&
|
|
3666
|
+
l.flowing && l.length === 0 && !l.sync ? (l.awaitDrain = 0, o.emit("data", v)) : (l.length += l.objectMode ? 1 : v.length, T ? l.buffer.unshift(v) : l.buffer.push(v), l.needReadable && X(o)), ee(o, l);
|
|
3667
3667
|
}
|
|
3668
3668
|
function Z(o, l) {
|
|
3669
3669
|
var v;
|
|
@@ -3690,7 +3690,7 @@ function di() {
|
|
|
3690
3690
|
f("read", o), o = parseInt(o, 10);
|
|
3691
3691
|
var l = this._readableState, v = o;
|
|
3692
3692
|
if (o !== 0 && (l.emittedReadable = !1), o === 0 && l.needReadable && ((l.highWaterMark !== 0 ? l.length >= l.highWaterMark : l.length > 0) || l.ended))
|
|
3693
|
-
return f("read: emitReadable", l.length, l.ended), l.length === 0 && l.ended ? x(this) :
|
|
3693
|
+
return f("read: emitReadable", l.length, l.ended), l.length === 0 && l.ended ? x(this) : X(this), null;
|
|
3694
3694
|
if (o = G(o, l), o === 0 && l.ended)
|
|
3695
3695
|
return l.length === 0 && x(this), null;
|
|
3696
3696
|
var T = l.needReadable;
|
|
@@ -3704,10 +3704,10 @@ function di() {
|
|
|
3704
3704
|
var v = l.decoder.end();
|
|
3705
3705
|
v && v.length && (l.buffer.push(v), l.length += l.objectMode ? 1 : v.length);
|
|
3706
3706
|
}
|
|
3707
|
-
l.ended = !0, l.sync ?
|
|
3707
|
+
l.ended = !0, l.sync ? X(o) : (l.needReadable = !1, l.emittedReadable || (l.emittedReadable = !0, ce(o)));
|
|
3708
3708
|
}
|
|
3709
3709
|
}
|
|
3710
|
-
function
|
|
3710
|
+
function X(o) {
|
|
3711
3711
|
var l = o._readableState;
|
|
3712
3712
|
f("emitReadable", l.needReadable, l.emittedReadable), l.needReadable = !1, l.emittedReadable || (f("emitReadable", l.flowing), l.emittedReadable = !0, N.nextTick(ce, o));
|
|
3713
3713
|
}
|
|
@@ -3806,7 +3806,7 @@ function di() {
|
|
|
3806
3806
|
return I === -1 ? this : (l.pipes.splice(I, 1), l.pipesCount -= 1, l.pipesCount === 1 && (l.pipes = l.pipes[0]), o.emit("unpipe", this, v), this);
|
|
3807
3807
|
}, A.prototype.on = function(o, l) {
|
|
3808
3808
|
var v = r.prototype.on.call(this, o, l), T = this._readableState;
|
|
3809
|
-
return o === "data" ? (T.readableListening = this.listenerCount("readable") > 0, T.flowing !== !1 && this.resume()) : o === "readable" && !T.endEmitted && !T.readableListening && (T.readableListening = T.needReadable = !0, T.flowing = !1, T.emittedReadable = !1, f("on readable", T.length, T.reading), T.length ?
|
|
3809
|
+
return o === "data" ? (T.readableListening = this.listenerCount("readable") > 0, T.flowing !== !1 && this.resume()) : o === "readable" && !T.endEmitted && !T.readableListening && (T.readableListening = T.needReadable = !0, T.flowing = !1, T.emittedReadable = !1, f("on readable", T.length, T.reading), T.length ? X(this) : T.reading || N.nextTick(he, this)), v;
|
|
3810
3810
|
}, A.prototype.addListener = A.prototype.on, A.prototype.removeListener = function(o, l) {
|
|
3811
3811
|
var v = r.prototype.removeListener.call(this, o, l);
|
|
3812
3812
|
return o === "readable" && N.nextTick(Le, this), v;
|
|
@@ -3917,9 +3917,9 @@ function di() {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
return Ft;
|
|
3919
3919
|
}
|
|
3920
|
-
var gi = oe, ft = ye.codes, Ga = ft.ERR_METHOD_NOT_IMPLEMENTED, Ja = ft.ERR_MULTIPLE_CALLBACK, Ka = ft.ERR_TRANSFORM_ALREADY_TRANSFORMING,
|
|
3920
|
+
var gi = oe, ft = ye.codes, Ga = ft.ERR_METHOD_NOT_IMPLEMENTED, Ja = ft.ERR_MULTIPLE_CALLBACK, Ka = ft.ERR_TRANSFORM_ALREADY_TRANSFORMING, Qa = ft.ERR_TRANSFORM_WITH_LENGTH_0, ct = Re();
|
|
3921
3921
|
fe.exports(oe, ct);
|
|
3922
|
-
function
|
|
3922
|
+
function Xa(t, e) {
|
|
3923
3923
|
var r = this._transformState;
|
|
3924
3924
|
r.transforming = !1;
|
|
3925
3925
|
var i = r.writecb;
|
|
@@ -3933,7 +3933,7 @@ function oe(t) {
|
|
|
3933
3933
|
if (!(this instanceof oe))
|
|
3934
3934
|
return new oe(t);
|
|
3935
3935
|
ct.call(this, t), this._transformState = {
|
|
3936
|
-
afterTransform:
|
|
3936
|
+
afterTransform: Xa.bind(this),
|
|
3937
3937
|
needTransform: !1,
|
|
3938
3938
|
transforming: !1,
|
|
3939
3939
|
writecb: null,
|
|
@@ -3973,7 +3973,7 @@ function wr(t, e, r) {
|
|
|
3973
3973
|
if (e)
|
|
3974
3974
|
return t.emit("error", e);
|
|
3975
3975
|
if (r != null && t.push(r), t._writableState.length)
|
|
3976
|
-
throw new
|
|
3976
|
+
throw new Qa();
|
|
3977
3977
|
if (t._transformState.transforming)
|
|
3978
3978
|
throw new Ka();
|
|
3979
3979
|
return t.push(null);
|
|
@@ -4008,7 +4008,7 @@ function as(t, e, r, i) {
|
|
|
4008
4008
|
var n = !1;
|
|
4009
4009
|
t.on("close", function() {
|
|
4010
4010
|
n = !0;
|
|
4011
|
-
}), Ot === void 0 && (Ot =
|
|
4011
|
+
}), Ot === void 0 && (Ot = Xt), Ot(t, {
|
|
4012
4012
|
readable: e,
|
|
4013
4013
|
writable: r
|
|
4014
4014
|
}, function(a) {
|
|
@@ -4052,7 +4052,7 @@ function ls() {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
var us = ls;
|
|
4054
4054
|
(function(t, e) {
|
|
4055
|
-
e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform = gi, e.PassThrough = es, e.finished =
|
|
4055
|
+
e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform = gi, e.PassThrough = es, e.finished = Xt, e.pipeline = us;
|
|
4056
4056
|
})(Mt, Mt.exports);
|
|
4057
4057
|
var yi = Mt.exports.Transform, wi = fe.exports;
|
|
4058
4058
|
function Se(t) {
|
|
@@ -4092,7 +4092,7 @@ zt.exports.obj = Zt(function(t, e, r) {
|
|
|
4092
4092
|
var i = new Se(Object.assign({ objectMode: !0, highWaterMark: 16 }, t));
|
|
4093
4093
|
return i._transform = e, r && (i._flush = r), i;
|
|
4094
4094
|
});
|
|
4095
|
-
class
|
|
4095
|
+
class Ms {
|
|
4096
4096
|
constructor(e, r = 4) {
|
|
4097
4097
|
this._string = null, this._type = "form", this._readOnly = !1, this._context = {}, this._onChangeFields = {}, this._keyIdx = 0, this._invisibleFields = [], this._fields = e, this._container = new Je(r, 6, !1, "root");
|
|
4098
4098
|
}
|
|
@@ -4278,7 +4278,7 @@ class ks {
|
|
|
4278
4278
|
});
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
|
-
const
|
|
4281
|
+
const cs = {
|
|
4282
4282
|
text: "text",
|
|
4283
4283
|
many2one: "many2one",
|
|
4284
4284
|
char: "char",
|
|
@@ -4304,38 +4304,32 @@ class Ps {
|
|
|
4304
4304
|
get advancedSearchContainer() {
|
|
4305
4305
|
return this._advancedSearchContainer;
|
|
4306
4306
|
}
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
}
|
|
4310
|
-
constructor(e, r, i, n = 8) {
|
|
4311
|
-
this._searchFields = e, this._fields = r, this._formXml = i, this._simpleSearchContainer = new Je(n), this._advancedSearchContainer = new Je(n);
|
|
4307
|
+
constructor(e, r, i = 8) {
|
|
4308
|
+
this._searchFields = e, this._fields = r, this._simpleSearchContainer = new Je(i), this._advancedSearchContainer = new Je(i);
|
|
4312
4309
|
}
|
|
4313
4310
|
parse() {
|
|
4314
|
-
const e = new jt()
|
|
4315
|
-
|
|
4311
|
+
const e = new jt();
|
|
4312
|
+
this.parseFields(
|
|
4316
4313
|
this.searchFields.primary,
|
|
4317
|
-
e
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
this.simpleSearchContainer.addWidget(s, { addLabel: !1 }), this.advancedSearchContainer.addWidget(s, { addLabel: !1 });
|
|
4314
|
+
e
|
|
4315
|
+
).forEach((n) => {
|
|
4316
|
+
this.simpleSearchContainer.addWidget(n, { addLabel: !1 }), this.advancedSearchContainer.addWidget(n, { addLabel: !1 });
|
|
4321
4317
|
}), this.parseFields(
|
|
4322
4318
|
this.searchFields.secondary,
|
|
4323
|
-
e
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
this.advancedSearchContainer.addWidget(s, { addLabel: !1 });
|
|
4319
|
+
e
|
|
4320
|
+
).forEach((n) => {
|
|
4321
|
+
this.advancedSearchContainer.addWidget(n, { addLabel: !1 });
|
|
4327
4322
|
});
|
|
4328
4323
|
}
|
|
4329
|
-
parseFields(e, r
|
|
4330
|
-
return e.map((
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
name: n,
|
|
4324
|
+
parseFields(e, r) {
|
|
4325
|
+
return e.map((i) => {
|
|
4326
|
+
const n = {
|
|
4327
|
+
...this.fields[i],
|
|
4328
|
+
name: i,
|
|
4335
4329
|
colspan: 2
|
|
4336
|
-
}, { type:
|
|
4337
|
-
let
|
|
4338
|
-
return
|
|
4330
|
+
}, { type: s, widget: a } = n;
|
|
4331
|
+
let u = a != null ? a : s;
|
|
4332
|
+
return cs[u] === void 0 && (u = s), r.createWidget(u, n);
|
|
4339
4333
|
});
|
|
4340
4334
|
}
|
|
4341
4335
|
findById(e) {
|
|
@@ -4358,7 +4352,7 @@ const Ns = ({
|
|
|
4358
4352
|
)) : (u = n, f = "id"), u === e && r.push([f, s, a]);
|
|
4359
4353
|
}), r;
|
|
4360
4354
|
};
|
|
4361
|
-
class
|
|
4355
|
+
class hs {
|
|
4362
4356
|
constructor(e) {
|
|
4363
4357
|
this._action_id = null, this._position = null, e.action_id && (this._action_id = e.action_id), e.position && (this._position = e.position);
|
|
4364
4358
|
}
|
|
@@ -4376,7 +4370,7 @@ class Is {
|
|
|
4376
4370
|
this._string = r.attributes.string || null;
|
|
4377
4371
|
const { children: i } = r;
|
|
4378
4372
|
i.forEach((n) => {
|
|
4379
|
-
n.tagName === "dashboard_item" && this._items.push(new
|
|
4373
|
+
n.tagName === "dashboard_item" && this._items.push(new hs(n.attributes));
|
|
4380
4374
|
});
|
|
4381
4375
|
}
|
|
4382
4376
|
get string() {
|
|
@@ -4400,10 +4394,10 @@ class bi {
|
|
|
4400
4394
|
return this._timerange;
|
|
4401
4395
|
}
|
|
4402
4396
|
}
|
|
4403
|
-
const
|
|
4397
|
+
const ds = (t) => t === 1 || t === "1" || t === !0 || t === "True";
|
|
4404
4398
|
class mi extends bi {
|
|
4405
4399
|
constructor(e, r) {
|
|
4406
|
-
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = q(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = q(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent =
|
|
4400
|
+
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = q(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = q(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent = ds(r.attributes.showPercent);
|
|
4407
4401
|
}
|
|
4408
4402
|
get color() {
|
|
4409
4403
|
return this._color;
|
|
@@ -4421,7 +4415,7 @@ class mi extends bi {
|
|
|
4421
4415
|
return this._suffix;
|
|
4422
4416
|
}
|
|
4423
4417
|
}
|
|
4424
|
-
class
|
|
4418
|
+
class gs extends mi {
|
|
4425
4419
|
constructor(e, r) {
|
|
4426
4420
|
super(e, r);
|
|
4427
4421
|
const { children: i } = r;
|
|
@@ -4439,7 +4433,7 @@ class _s extends mi {
|
|
|
4439
4433
|
return this._operator;
|
|
4440
4434
|
}
|
|
4441
4435
|
}
|
|
4442
|
-
const
|
|
4436
|
+
const _s = (t) => {
|
|
4443
4437
|
const e = [];
|
|
4444
4438
|
let r;
|
|
4445
4439
|
if (t.forEach((i) => {
|
|
@@ -4449,10 +4443,10 @@ const ps = (t) => {
|
|
|
4449
4443
|
throw new Error(`Field ${a} doesn't have an axis`);
|
|
4450
4444
|
if (!a)
|
|
4451
4445
|
throw new Error("Missing name attribute for field");
|
|
4452
|
-
n === "x" ? r = new
|
|
4446
|
+
n === "x" ? r = new ws({
|
|
4453
4447
|
name: a
|
|
4454
4448
|
}) : n === "y" && e.push(
|
|
4455
|
-
new
|
|
4449
|
+
new ys({
|
|
4456
4450
|
name: a,
|
|
4457
4451
|
operator: s,
|
|
4458
4452
|
label: u,
|
|
@@ -4472,7 +4466,7 @@ const ps = (t) => {
|
|
|
4472
4466
|
class Dt extends bi {
|
|
4473
4467
|
constructor(e, r) {
|
|
4474
4468
|
super(r), this._type = e;
|
|
4475
|
-
const i =
|
|
4469
|
+
const i = _s(r.children);
|
|
4476
4470
|
this._x = i.x, this._y = i.y;
|
|
4477
4471
|
}
|
|
4478
4472
|
get x() {
|
|
@@ -4482,9 +4476,9 @@ class Dt extends bi {
|
|
|
4482
4476
|
return this._y;
|
|
4483
4477
|
}
|
|
4484
4478
|
}
|
|
4485
|
-
const
|
|
4479
|
+
const ps = {
|
|
4486
4480
|
indicator: mi,
|
|
4487
|
-
indicatorField:
|
|
4481
|
+
indicatorField: gs,
|
|
4488
4482
|
line: Dt,
|
|
4489
4483
|
bar: Dt,
|
|
4490
4484
|
pie: Dt
|
|
@@ -4492,7 +4486,7 @@ const ys = {
|
|
|
4492
4486
|
const e = rt(t).filter((n) => n.tagName === "graph")[0], r = e.attributes.type;
|
|
4493
4487
|
if (!r)
|
|
4494
4488
|
throw new Error(`${r} is not a valid graph`);
|
|
4495
|
-
const i =
|
|
4489
|
+
const i = ps[r];
|
|
4496
4490
|
if (!i)
|
|
4497
4491
|
throw new Error(`${r} not found as a GraphModel`);
|
|
4498
4492
|
return new i(r, e);
|
|
@@ -4508,7 +4502,7 @@ class vi {
|
|
|
4508
4502
|
this._name = e, this._axis = r;
|
|
4509
4503
|
}
|
|
4510
4504
|
}
|
|
4511
|
-
class
|
|
4505
|
+
class ys extends vi {
|
|
4512
4506
|
constructor({
|
|
4513
4507
|
name: e,
|
|
4514
4508
|
operator: r,
|
|
@@ -4527,12 +4521,12 @@ class ws extends vi {
|
|
|
4527
4521
|
return this._stacked;
|
|
4528
4522
|
}
|
|
4529
4523
|
}
|
|
4530
|
-
class
|
|
4524
|
+
class ws extends vi {
|
|
4531
4525
|
constructor({ name: e }) {
|
|
4532
4526
|
super({ name: e, axis: "x" });
|
|
4533
4527
|
}
|
|
4534
4528
|
}
|
|
4535
|
-
const
|
|
4529
|
+
const bs = ({ ooui: t }) => {
|
|
4536
4530
|
const r = [t.x.name];
|
|
4537
4531
|
return t.y ? (t.y.forEach((i) => {
|
|
4538
4532
|
i.operator !== "count" && !r.includes(i.name) && r.push(i.name), i.label && !r.includes(i.label) && r.push(i.label);
|
|
@@ -4556,23 +4550,23 @@ function er({
|
|
|
4556
4550
|
}
|
|
4557
4551
|
const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4558
4552
|
__proto__: null,
|
|
4559
|
-
getFieldsToRetrieve:
|
|
4553
|
+
getFieldsToRetrieve: bs,
|
|
4560
4554
|
getValueAndLabelForField: er
|
|
4561
4555
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4562
|
-
function
|
|
4556
|
+
function ms({
|
|
4563
4557
|
values: t,
|
|
4564
4558
|
timerange: e
|
|
4565
4559
|
}) {
|
|
4566
|
-
const r =
|
|
4560
|
+
const r = xs({
|
|
4567
4561
|
values: t,
|
|
4568
4562
|
timerange: e
|
|
4569
4563
|
});
|
|
4570
|
-
return
|
|
4564
|
+
return vs({
|
|
4571
4565
|
values: r,
|
|
4572
4566
|
timerange: e
|
|
4573
4567
|
});
|
|
4574
4568
|
}
|
|
4575
|
-
function
|
|
4569
|
+
function vs({
|
|
4576
4570
|
values: t,
|
|
4577
4571
|
timerange: e
|
|
4578
4572
|
}) {
|
|
@@ -4589,7 +4583,7 @@ function Es({
|
|
|
4589
4583
|
return;
|
|
4590
4584
|
const b = g.x, w = u[f + 1].x;
|
|
4591
4585
|
if (!Ei([b, w], n)) {
|
|
4592
|
-
const _ =
|
|
4586
|
+
const _ = Es({
|
|
4593
4587
|
dates: [b, w],
|
|
4594
4588
|
timerange: e
|
|
4595
4589
|
});
|
|
@@ -4605,7 +4599,7 @@ function Es({
|
|
|
4605
4599
|
}
|
|
4606
4600
|
}), r.sort((a, u) => a.x < u.x ? -1 : a.x > u.x ? 1 : 0);
|
|
4607
4601
|
}
|
|
4608
|
-
function
|
|
4602
|
+
function Es({
|
|
4609
4603
|
dates: t,
|
|
4610
4604
|
timerange: e
|
|
4611
4605
|
}) {
|
|
@@ -4623,11 +4617,11 @@ function xs({
|
|
|
4623
4617
|
}
|
|
4624
4618
|
return r;
|
|
4625
4619
|
}
|
|
4626
|
-
function
|
|
4620
|
+
function xs({
|
|
4627
4621
|
values: t,
|
|
4628
4622
|
timerange: e
|
|
4629
4623
|
}) {
|
|
4630
|
-
const r =
|
|
4624
|
+
const r = Rs({
|
|
4631
4625
|
values: t,
|
|
4632
4626
|
timerange: e
|
|
4633
4627
|
});
|
|
@@ -4647,23 +4641,23 @@ function Rs({
|
|
|
4647
4641
|
});
|
|
4648
4642
|
}), i;
|
|
4649
4643
|
}
|
|
4650
|
-
function
|
|
4644
|
+
function Rs({
|
|
4651
4645
|
values: t,
|
|
4652
4646
|
timerange: e
|
|
4653
4647
|
}) {
|
|
4654
4648
|
return t.map((r) => ({
|
|
4655
4649
|
...r,
|
|
4656
|
-
x:
|
|
4650
|
+
x: Ss({
|
|
4657
4651
|
date: r.x,
|
|
4658
4652
|
timerange: e
|
|
4659
4653
|
})
|
|
4660
4654
|
}));
|
|
4661
4655
|
}
|
|
4662
|
-
function
|
|
4656
|
+
function Ss({
|
|
4663
4657
|
date: t,
|
|
4664
4658
|
timerange: e
|
|
4665
4659
|
}) {
|
|
4666
|
-
let r =
|
|
4660
|
+
let r = Ts(t);
|
|
4667
4661
|
const i = Me(t, r);
|
|
4668
4662
|
switch (e) {
|
|
4669
4663
|
case "hour": {
|
|
@@ -4689,7 +4683,7 @@ function Ts({
|
|
|
4689
4683
|
}
|
|
4690
4684
|
return i.format(r);
|
|
4691
4685
|
}
|
|
4692
|
-
function
|
|
4686
|
+
function Ts(t) {
|
|
4693
4687
|
return t.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
4694
4688
|
}
|
|
4695
4689
|
function Ei(t, e) {
|
|
@@ -4730,7 +4724,7 @@ function Ge(t) {
|
|
|
4730
4724
|
return "YYYY";
|
|
4731
4725
|
}
|
|
4732
4726
|
}
|
|
4733
|
-
const
|
|
4727
|
+
const Cs = {
|
|
4734
4728
|
count: "count",
|
|
4735
4729
|
"+": "sum",
|
|
4736
4730
|
"-": "subtract",
|
|
@@ -4738,7 +4732,7 @@ const As = {
|
|
|
4738
4732
|
avg: "average",
|
|
4739
4733
|
min: "min",
|
|
4740
4734
|
max: "max"
|
|
4741
|
-
},
|
|
4735
|
+
}, As = ({
|
|
4742
4736
|
ooui: t,
|
|
4743
4737
|
values: e,
|
|
4744
4738
|
fields: r,
|
|
@@ -4805,7 +4799,7 @@ const As = {
|
|
|
4805
4799
|
(_) => _.x !== !1
|
|
4806
4800
|
));
|
|
4807
4801
|
let w = b;
|
|
4808
|
-
return t.timerange ? w =
|
|
4802
|
+
return t.timerange ? w = ms({
|
|
4809
4803
|
values: w,
|
|
4810
4804
|
timerange: t.timerange
|
|
4811
4805
|
}) : t.type == "pie" && (w = b.sort((_, m) => m.value - _.value)), {
|
|
@@ -4878,7 +4872,7 @@ function Lt({
|
|
|
4878
4872
|
i[s] || (i[s] = { label: a, entries: [] }), i[s].entries.push(n);
|
|
4879
4873
|
}), i;
|
|
4880
4874
|
}
|
|
4881
|
-
function
|
|
4875
|
+
function Fs(t) {
|
|
4882
4876
|
let e = [];
|
|
4883
4877
|
return Object.keys(t).forEach((r) => {
|
|
4884
4878
|
const i = t[r];
|
|
@@ -4894,12 +4888,12 @@ function Ri({
|
|
|
4894
4888
|
}
|
|
4895
4889
|
const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4896
4890
|
__proto__: null,
|
|
4897
|
-
labelsForOperator:
|
|
4898
|
-
processGraphData:
|
|
4891
|
+
labelsForOperator: Cs,
|
|
4892
|
+
processGraphData: As,
|
|
4899
4893
|
getValuesForYField: Bt,
|
|
4900
4894
|
getValueForOperator: tt,
|
|
4901
4895
|
getValuesGroupedByField: Lt,
|
|
4902
|
-
getAllObjectsInGroupedValues:
|
|
4896
|
+
getAllObjectsInGroupedValues: Fs,
|
|
4903
4897
|
getYAxisFieldname: Ri
|
|
4904
4898
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4905
4899
|
export {
|
|
@@ -4913,20 +4907,20 @@ export {
|
|
|
4913
4907
|
Je as Container,
|
|
4914
4908
|
Ce as ContainerWidget,
|
|
4915
4909
|
Is as Dashboard,
|
|
4916
|
-
|
|
4910
|
+
hs as DashboardItem,
|
|
4917
4911
|
Wi as Date,
|
|
4918
4912
|
ji as DateTime,
|
|
4919
4913
|
U as Field,
|
|
4920
4914
|
Wt as Float,
|
|
4921
4915
|
Li as FloatTime,
|
|
4922
|
-
|
|
4916
|
+
Ms as Form,
|
|
4923
4917
|
bi as Graph,
|
|
4924
4918
|
vi as GraphAxis,
|
|
4925
4919
|
Dt as GraphChart,
|
|
4926
4920
|
mi as GraphIndicator,
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4921
|
+
gs as GraphIndicatorField,
|
|
4922
|
+
ws as GraphXAxis,
|
|
4923
|
+
ys as GraphYAxis,
|
|
4930
4924
|
Mi as Group,
|
|
4931
4925
|
$i as Image,
|
|
4932
4926
|
Ji as Indicator,
|
|
@@ -4941,15 +4935,15 @@ export {
|
|
|
4941
4935
|
Tr as One2many,
|
|
4942
4936
|
Di as Page,
|
|
4943
4937
|
Ui as ProgressBar,
|
|
4944
|
-
|
|
4938
|
+
Xi as Radio,
|
|
4945
4939
|
qi as Reference,
|
|
4946
|
-
|
|
4940
|
+
cs as SearchFieldTypes,
|
|
4947
4941
|
Ps as SearchFilter,
|
|
4948
4942
|
Pe as Selection,
|
|
4949
4943
|
zi as Separator,
|
|
4950
4944
|
en as Steps,
|
|
4951
4945
|
Zi as Switch,
|
|
4952
|
-
|
|
4946
|
+
Qi as Tag,
|
|
4953
4947
|
Ki as Tags,
|
|
4954
4948
|
Ut as Text,
|
|
4955
4949
|
rn as Time,
|