@kong-ui-public/analytics-utilities 12.5.0 → 12.5.1-pr.2743.2e6ab6bf8.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/dist/types/types/explore/requests.d.ts +2 -2
- package/dist/types/types/explore/requests.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +46 -45
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Jr = Object.defineProperty;
|
|
2
2
|
var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
const Co = 3e4, Yo = 1e3,
|
|
4
|
+
const Co = 3e4, Yo = 1e3, ko = "analytics-query-provider";
|
|
5
5
|
var p = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(p || {});
|
|
6
|
-
const
|
|
6
|
+
const Go = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -120,6 +120,7 @@ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
|
|
|
120
120
|
"llm_embeddings_cost"
|
|
121
121
|
], ia = [
|
|
122
122
|
"api",
|
|
123
|
+
"api_package",
|
|
123
124
|
"api_product",
|
|
124
125
|
"api_product_version",
|
|
125
126
|
"application",
|
|
@@ -1033,7 +1034,7 @@ const Ra = {
|
|
|
1033
1034
|
long: "{{date}} 'at' {{time}}",
|
|
1034
1035
|
medium: "{{date}}, {{time}}",
|
|
1035
1036
|
short: "{{date}}, {{time}}"
|
|
1036
|
-
},
|
|
1037
|
+
}, ka = {
|
|
1037
1038
|
date: He({
|
|
1038
1039
|
formats: Ra,
|
|
1039
1040
|
defaultWidth: "full"
|
|
@@ -1046,14 +1047,14 @@ const Ra = {
|
|
|
1046
1047
|
formats: Ya,
|
|
1047
1048
|
defaultWidth: "full"
|
|
1048
1049
|
})
|
|
1049
|
-
},
|
|
1050
|
+
}, Ga = {
|
|
1050
1051
|
lastWeek: "'last' eeee 'at' p",
|
|
1051
1052
|
yesterday: "'yesterday at' p",
|
|
1052
1053
|
today: "'today at' p",
|
|
1053
1054
|
tomorrow: "'tomorrow at' p",
|
|
1054
1055
|
nextWeek: "eeee 'at' p",
|
|
1055
1056
|
other: "P"
|
|
1056
|
-
}, Aa = (e, t, n, r) =>
|
|
1057
|
+
}, Aa = (e, t, n, r) => Ga[e];
|
|
1057
1058
|
function re(e) {
|
|
1058
1059
|
return (t, n) => {
|
|
1059
1060
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -1367,7 +1368,7 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
|
|
|
1367
1368
|
}, ui = {
|
|
1368
1369
|
code: "en-US",
|
|
1369
1370
|
formatDistance: Pa,
|
|
1370
|
-
formatLong:
|
|
1371
|
+
formatLong: ka,
|
|
1371
1372
|
formatRelative: Aa,
|
|
1372
1373
|
localize: za,
|
|
1373
1374
|
match: si,
|
|
@@ -1380,9 +1381,9 @@ let ci = {};
|
|
|
1380
1381
|
function ue() {
|
|
1381
1382
|
return ci;
|
|
1382
1383
|
}
|
|
1383
|
-
const hn = 6048e5, li = 864e5, di = 60, mi = 3600,
|
|
1384
|
+
const hn = 6048e5, li = 864e5, di = 60, mi = 3600, Gt = Symbol.for("constructDateFrom");
|
|
1384
1385
|
function R(e, t) {
|
|
1385
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
1386
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && Gt in e ? e[Gt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1386
1387
|
}
|
|
1387
1388
|
function O(e, t) {
|
|
1388
1389
|
return R(t || e, e);
|
|
@@ -2102,7 +2103,7 @@ function xi(e) {
|
|
|
2102
2103
|
function Pi(e) {
|
|
2103
2104
|
return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
|
|
2104
2105
|
}
|
|
2105
|
-
const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/,
|
|
2106
|
+
const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, ki = /''/g, Gi = /[a-zA-Z]/;
|
|
2106
2107
|
function Ai(e, t, n) {
|
|
2107
2108
|
var f, d, h, b, E, N, C, W;
|
|
2108
2109
|
const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ui, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
|
|
@@ -2123,7 +2124,7 @@ function Ai(e, t, n) {
|
|
|
2123
2124
|
return { isToken: !1, value: Fi(v) };
|
|
2124
2125
|
if (Ft[D])
|
|
2125
2126
|
return { isToken: !0, value: v };
|
|
2126
|
-
if (D.match(
|
|
2127
|
+
if (D.match(Gi))
|
|
2127
2128
|
throw new RangeError(
|
|
2128
2129
|
"Format string contains an unescaped latin alphabet character `" + D + "`"
|
|
2129
2130
|
);
|
|
@@ -2145,7 +2146,7 @@ function Ai(e, t, n) {
|
|
|
2145
2146
|
}
|
|
2146
2147
|
function Fi(e) {
|
|
2147
2148
|
const t = e.match(Yi);
|
|
2148
|
-
return t ? t[1].replace(
|
|
2149
|
+
return t ? t[1].replace(ki, "'") : e;
|
|
2149
2150
|
}
|
|
2150
2151
|
function Le(e, t, n) {
|
|
2151
2152
|
const r = O(e, n == null ? void 0 : n.in);
|
|
@@ -2794,8 +2795,8 @@ De.exports;
|
|
|
2794
2795
|
(function(e, t) {
|
|
2795
2796
|
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", m = "[object Boolean]", g = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", N = "[object Promise]", C = "[object RegExp]", W = "[object Set]", v = "[object String]", D = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", ct = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2796
2797
|
w[o] = w[c] = w[tt] = w[le] = w[m] = w[g] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[v] = w[D] = w[st] = w[ut] = w[ct] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
|
|
2797
|
-
var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e,
|
|
2798
|
-
function
|
|
2798
|
+
var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, kn = mt && mt.exports === dt;
|
|
2799
|
+
function Gn(a, s) {
|
|
2799
2800
|
return a.set(s[0], s[1]), a;
|
|
2800
2801
|
}
|
|
2801
2802
|
function An(a, s) {
|
|
@@ -2855,7 +2856,7 @@ De.exports;
|
|
|
2855
2856
|
return a ? "Symbol(src)_1." + a : "";
|
|
2856
2857
|
}(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
|
|
2857
2858
|
"^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2858
|
-
), wt =
|
|
2859
|
+
), wt = kn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = Ne(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = Ne(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
|
|
2859
2860
|
function j(a) {
|
|
2860
2861
|
var s = -1, u = a ? a.length : 0;
|
|
2861
2862
|
for (this.clear(); ++s < u; ) {
|
|
@@ -2886,7 +2887,7 @@ De.exports;
|
|
|
2886
2887
|
return u[a] = ne && s === void 0 ? r : s, this;
|
|
2887
2888
|
}
|
|
2888
2889
|
j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
|
|
2889
|
-
function
|
|
2890
|
+
function k(a) {
|
|
2890
2891
|
var s = -1, u = a ? a.length : 0;
|
|
2891
2892
|
for (this.clear(); ++s < u; ) {
|
|
2892
2893
|
var y = a[s];
|
|
@@ -2914,7 +2915,7 @@ De.exports;
|
|
|
2914
2915
|
var u = this.__data__, y = fe(u, a);
|
|
2915
2916
|
return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
|
|
2916
2917
|
}
|
|
2917
|
-
|
|
2918
|
+
k.prototype.clear = sr, k.prototype.delete = ur, k.prototype.get = cr, k.prototype.has = lr, k.prototype.set = dr;
|
|
2918
2919
|
function B(a) {
|
|
2919
2920
|
var s = -1, u = a ? a.length : 0;
|
|
2920
2921
|
for (this.clear(); ++s < u; ) {
|
|
@@ -2925,7 +2926,7 @@ De.exports;
|
|
|
2925
2926
|
function mr() {
|
|
2926
2927
|
this.__data__ = {
|
|
2927
2928
|
hash: new j(),
|
|
2928
|
-
map: new (te ||
|
|
2929
|
+
map: new (te || k)(),
|
|
2929
2930
|
string: new j()
|
|
2930
2931
|
};
|
|
2931
2932
|
}
|
|
@@ -2943,10 +2944,10 @@ De.exports;
|
|
|
2943
2944
|
}
|
|
2944
2945
|
B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
|
|
2945
2946
|
function Z(a) {
|
|
2946
|
-
this.__data__ = new
|
|
2947
|
+
this.__data__ = new k(a);
|
|
2947
2948
|
}
|
|
2948
2949
|
function pr() {
|
|
2949
|
-
this.__data__ = new
|
|
2950
|
+
this.__data__ = new k();
|
|
2950
2951
|
}
|
|
2951
2952
|
function _r(a) {
|
|
2952
2953
|
return this.__data__.delete(a);
|
|
@@ -2959,7 +2960,7 @@ De.exports;
|
|
|
2959
2960
|
}
|
|
2960
2961
|
function Tr(a, s) {
|
|
2961
2962
|
var u = this.__data__;
|
|
2962
|
-
if (u instanceof
|
|
2963
|
+
if (u instanceof k) {
|
|
2963
2964
|
var y = u.__data__;
|
|
2964
2965
|
if (!te || y.length < n - 1)
|
|
2965
2966
|
return y.push([a, s]), this;
|
|
@@ -2969,7 +2970,7 @@ De.exports;
|
|
|
2969
2970
|
}
|
|
2970
2971
|
Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
|
|
2971
2972
|
function Dr(a, s) {
|
|
2972
|
-
var u =
|
|
2973
|
+
var u = Ge(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
|
|
2973
2974
|
for (var x in a)
|
|
2974
2975
|
H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
|
|
2975
2976
|
return u;
|
|
@@ -2987,16 +2988,16 @@ De.exports;
|
|
|
2987
2988
|
function Mr(a, s) {
|
|
2988
2989
|
return a && Et(s, Ae(s), a);
|
|
2989
2990
|
}
|
|
2990
|
-
function Ye(a, s, u, y, M, x,
|
|
2991
|
+
function Ye(a, s, u, y, M, x, G) {
|
|
2991
2992
|
var P;
|
|
2992
|
-
if (y && (P = x ? y(a, M, x,
|
|
2993
|
+
if (y && (P = x ? y(a, M, x, G) : y(a)), P !== void 0)
|
|
2993
2994
|
return P;
|
|
2994
2995
|
if (!ye(a))
|
|
2995
2996
|
return a;
|
|
2996
|
-
var Rt =
|
|
2997
|
+
var Rt = Ge(a);
|
|
2997
2998
|
if (Rt) {
|
|
2998
2999
|
if (P = Hr(a), !s)
|
|
2999
|
-
return
|
|
3000
|
+
return Gr(a, P);
|
|
3000
3001
|
} else {
|
|
3001
3002
|
var Q = z(a), Ct = Q == f || Q == d;
|
|
3002
3003
|
if (Br(a))
|
|
@@ -3012,14 +3013,14 @@ De.exports;
|
|
|
3012
3013
|
P = Ur(a, Q, Ye, s);
|
|
3013
3014
|
}
|
|
3014
3015
|
}
|
|
3015
|
-
|
|
3016
|
-
var Yt =
|
|
3016
|
+
G || (G = new Z());
|
|
3017
|
+
var Yt = G.get(a);
|
|
3017
3018
|
if (Yt)
|
|
3018
3019
|
return Yt;
|
|
3019
|
-
if (
|
|
3020
|
-
var
|
|
3021
|
-
return Fn(
|
|
3022
|
-
|
|
3020
|
+
if (G.set(a, P), !Rt)
|
|
3021
|
+
var kt = u ? Fr(a) : Ae(a);
|
|
3022
|
+
return Fn(kt || a, function(Fe, ge) {
|
|
3023
|
+
kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, G));
|
|
3023
3024
|
}), P;
|
|
3024
3025
|
}
|
|
3025
3026
|
function Sr(a) {
|
|
@@ -3027,7 +3028,7 @@ De.exports;
|
|
|
3027
3028
|
}
|
|
3028
3029
|
function Or(a, s, u) {
|
|
3029
3030
|
var y = s(a);
|
|
3030
|
-
return
|
|
3031
|
+
return Ge(a) ? y : Hn(y, u(a));
|
|
3031
3032
|
}
|
|
3032
3033
|
function Er(a) {
|
|
3033
3034
|
return me.call(a);
|
|
@@ -3052,17 +3053,17 @@ De.exports;
|
|
|
3052
3053
|
var u = new a.constructor(a.length);
|
|
3053
3054
|
return a.copy(u), u;
|
|
3054
3055
|
}
|
|
3055
|
-
function
|
|
3056
|
+
function ke(a) {
|
|
3056
3057
|
var s = new a.constructor(a.byteLength);
|
|
3057
3058
|
return new Tt(s).set(new Tt(a)), s;
|
|
3058
3059
|
}
|
|
3059
3060
|
function xr(a, s) {
|
|
3060
|
-
var u = s ?
|
|
3061
|
+
var u = s ? ke(a.buffer) : a.buffer;
|
|
3061
3062
|
return new a.constructor(u, a.byteOffset, a.byteLength);
|
|
3062
3063
|
}
|
|
3063
3064
|
function Pr(a, s, u) {
|
|
3064
3065
|
var y = s ? u(yt(a), !0) : yt(a);
|
|
3065
|
-
return ft(y,
|
|
3066
|
+
return ft(y, Gn, new a.constructor());
|
|
3066
3067
|
}
|
|
3067
3068
|
function Rr(a) {
|
|
3068
3069
|
var s = new a.constructor(a.source, xn.exec(a));
|
|
@@ -3075,11 +3076,11 @@ De.exports;
|
|
|
3075
3076
|
function Yr(a) {
|
|
3076
3077
|
return St ? Object(St.call(a)) : {};
|
|
3077
3078
|
}
|
|
3078
|
-
function
|
|
3079
|
-
var u = s ?
|
|
3079
|
+
function kr(a, s) {
|
|
3080
|
+
var u = s ? ke(a.buffer) : a.buffer;
|
|
3080
3081
|
return new a.constructor(u, a.byteOffset, a.length);
|
|
3081
3082
|
}
|
|
3082
|
-
function
|
|
3083
|
+
function Gr(a, s) {
|
|
3083
3084
|
var u = -1, y = a.length;
|
|
3084
3085
|
for (s || (s = Array(y)); ++u < y; )
|
|
3085
3086
|
s[u] = a[u];
|
|
@@ -3088,8 +3089,8 @@ De.exports;
|
|
|
3088
3089
|
function Et(a, s, u, y) {
|
|
3089
3090
|
u || (u = {});
|
|
3090
3091
|
for (var M = -1, x = s.length; ++M < x; ) {
|
|
3091
|
-
var
|
|
3092
|
-
Ot(u,
|
|
3092
|
+
var G = s[M], P = void 0;
|
|
3093
|
+
Ot(u, G, P === void 0 ? a[G] : P);
|
|
3093
3094
|
}
|
|
3094
3095
|
return u;
|
|
3095
3096
|
}
|
|
@@ -3136,7 +3137,7 @@ De.exports;
|
|
|
3136
3137
|
var M = a.constructor;
|
|
3137
3138
|
switch (s) {
|
|
3138
3139
|
case tt:
|
|
3139
|
-
return
|
|
3140
|
+
return ke(a);
|
|
3140
3141
|
case m:
|
|
3141
3142
|
case g:
|
|
3142
3143
|
return new M(+a);
|
|
@@ -3151,7 +3152,7 @@ De.exports;
|
|
|
3151
3152
|
case ut:
|
|
3152
3153
|
case ct:
|
|
3153
3154
|
case lt:
|
|
3154
|
-
return
|
|
3155
|
+
return kr(a, y);
|
|
3155
3156
|
case h:
|
|
3156
3157
|
return Pr(a, y, u);
|
|
3157
3158
|
case b:
|
|
@@ -3201,7 +3202,7 @@ De.exports;
|
|
|
3201
3202
|
function Vr(a) {
|
|
3202
3203
|
return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
|
|
3203
3204
|
}
|
|
3204
|
-
var
|
|
3205
|
+
var Ge = Array.isArray;
|
|
3205
3206
|
function xt(a) {
|
|
3206
3207
|
return a != null && Zr(a.length) && !Pt(a);
|
|
3207
3208
|
}
|
|
@@ -3958,7 +3959,7 @@ export {
|
|
|
3958
3959
|
es as DeltaQueryTime,
|
|
3959
3960
|
Yo as EXPORT_RECORD_LIMIT,
|
|
3960
3961
|
Te as Granularities,
|
|
3961
|
-
|
|
3962
|
+
ko as INJECT_QUERY_PROVIDER,
|
|
3962
3963
|
Co as REFRESH_INTERVAL_MS,
|
|
3963
3964
|
et as SeededRandom,
|
|
3964
3965
|
as as TIMEFRAME_LOOKUP,
|
|
@@ -3983,7 +3984,7 @@ export {
|
|
|
3983
3984
|
rn as dstOffsetHours,
|
|
3984
3985
|
ra as exploreAggregations,
|
|
3985
3986
|
ta as exploreFilterTypesV2,
|
|
3986
|
-
|
|
3987
|
+
Go as extendedRelativeTimeRangeValues,
|
|
3987
3988
|
Oe as filterableAiExploreDimensions,
|
|
3988
3989
|
Me as filterableBasicExploreDimensions,
|
|
3989
3990
|
Se as filterableExploreDimensions,
|