@kong-ui-public/dashboard-renderer 8.22.1 → 8.23.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/{GeoMapRenderer-CvHqxDt9.js → GeoMapRenderer-D35mhyQN.js} +1 -1
- package/dist/dashboard-renderer.es.js +1 -1
- package/dist/dashboard-renderer.umd.js +4 -4
- package/dist/{index-C8MsNMjG.js → index-BEIZB5yG.js} +128 -127
- package/dist/style.css +1 -1
- package/dist/types/components/DashboardRenderer.vue.d.ts +76 -0
- package/dist/types/components/DashboardRenderer.vue.d.ts.map +1 -1
- package/dist/types/components/DashboardTile.vue.d.ts +114 -0
- package/dist/types/components/DashboardTile.vue.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as _e, computed as R, openBlock as O, createElementBlock as re, renderSlot as Xe, createTextVNode as Ke, toDisplayString as ne, createVNode as ye, withCtx as j, inject as qe, provide as hs, toRaw as fs, isRef as ms, isReactive as gs, toRef as st, hasInjectionContext as Vt, ref as Z, onMounted as Tt, watch as Je, onUnmounted as lt, getCurrentInstance as ps, readonly as
|
|
2
|
-
import { isPlatformDatasource as
|
|
1
|
+
import { defineComponent as _e, computed as R, openBlock as O, createElementBlock as re, renderSlot as Xe, createTextVNode as Ke, toDisplayString as ne, createVNode as ye, withCtx as j, inject as qe, provide as hs, toRaw as fs, isRef as ms, isReactive as gs, toRef as st, hasInjectionContext as Vt, ref as Z, onMounted as Tt, watch as Je, onUnmounted as lt, getCurrentInstance as ps, readonly as It, resolveComponent as xe, withKeys as ys, unref as S, createElementVNode as he, createCommentVNode as me, createBlock as Q, watchEffect as Wi, createSlots as kt, mergeProps as Gi, normalizeStyle as pt, normalizeClass as et, normalizeProps as vs, guardReactiveProps as _s, defineAsyncComponent as Yi, Fragment as Ft, useCssVars as Ut, useModel as ji, nextTick as $t, resolveDynamicComponent as Ki, toHandlers as ws, mergeModels as yt, renderList as Xi, useTemplateRef as Jt } from "vue";
|
|
2
|
+
import { isPlatformDatasource as Bt, msToGranularity as Pt, TimePeriods as Wt, TIMEFRAME_LOOKUP as Gt, requestFilterTypeEmptyV2 as bs, restoreAfterCapture as ei, prepareForCapture as xs, formatTimestamp as ti, EXPORT_RECORD_LIMIT as Qi, formatTime as ii } from "@kong-ui-public/analytics-utilities";
|
|
3
3
|
import { InfoIcon as Es, VisibilityOffIcon as Cs, WarningOutlineIcon as Ts, WarningIcon as si, ProgressIcon as ks, RefreshIcon as Rs, EditIcon as Ss, MoreIcon as Ds } from "@kong/icons";
|
|
4
4
|
import { createI18n as Os, i18nTComponent as zs } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAnalyticsConfigStore as
|
|
6
|
-
import
|
|
7
|
-
import Is from "swrv";
|
|
5
|
+
import { useAnalyticsConfigStore as Yt, useDatasourceConfigStore as ut } from "@kong-ui-public/analytics-config-store";
|
|
6
|
+
import Ns from "swrv";
|
|
8
7
|
import "axios";
|
|
8
|
+
import { handleQueryError as Ms, AnalyticsChart as As, SimpleChart as Ls, TopNTable as Is } from "@kong-ui-public/analytics-chart";
|
|
9
9
|
import { MetricsProvider as Ps, MetricsConsumer as qs } from "@kong-ui-public/analytics-metric-provider";
|
|
10
10
|
import { TableDataGrid as Hs } from "@kong-ui-public/table-data-grid";
|
|
11
11
|
const Fs = {
|
|
@@ -75,7 +75,7 @@ const Fs = {
|
|
|
75
75
|
const s = Fs[n];
|
|
76
76
|
return typeof s == "string" ? i = s : e === 1 ? i = s.one : i = s.other.replace("{{count}}", e.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
77
77
|
};
|
|
78
|
-
function
|
|
78
|
+
function Dt(n) {
|
|
79
79
|
return (e = {}) => {
|
|
80
80
|
const t = e.width ? String(e.width) : n.defaultWidth;
|
|
81
81
|
return n.formats[t] || n.formats[n.defaultWidth];
|
|
@@ -97,15 +97,15 @@ const $s = {
|
|
|
97
97
|
medium: "{{date}}, {{time}}",
|
|
98
98
|
short: "{{date}}, {{time}}"
|
|
99
99
|
}, Gs = {
|
|
100
|
-
date:
|
|
100
|
+
date: Dt({
|
|
101
101
|
formats: $s,
|
|
102
102
|
defaultWidth: "full"
|
|
103
103
|
}),
|
|
104
|
-
time:
|
|
104
|
+
time: Dt({
|
|
105
105
|
formats: Bs,
|
|
106
106
|
defaultWidth: "full"
|
|
107
107
|
}),
|
|
108
|
-
dateTime:
|
|
108
|
+
dateTime: Dt({
|
|
109
109
|
formats: Ws,
|
|
110
110
|
defaultWidth: "full"
|
|
111
111
|
})
|
|
@@ -1295,7 +1295,7 @@ function tr(n, e) {
|
|
|
1295
1295
|
parseInt(i[6], 10)
|
|
1296
1296
|
];
|
|
1297
1297
|
}
|
|
1298
|
-
const
|
|
1298
|
+
const Ot = {}, hi = new Intl.DateTimeFormat("en-US", {
|
|
1299
1299
|
hourCycle: "h23",
|
|
1300
1300
|
timeZone: "America/New_York",
|
|
1301
1301
|
year: "numeric",
|
|
@@ -1306,7 +1306,7 @@ const Dt = {}, hi = new Intl.DateTimeFormat("en-US", {
|
|
|
1306
1306
|
second: "2-digit"
|
|
1307
1307
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ir = hi === "06/25/2014, 00:00:00" || hi === "06/25/2014 00:00:00";
|
|
1308
1308
|
function sr(n) {
|
|
1309
|
-
return
|
|
1309
|
+
return Ot[n] || (Ot[n] = ir ? new Intl.DateTimeFormat("en-US", {
|
|
1310
1310
|
hourCycle: "h23",
|
|
1311
1311
|
timeZone: n,
|
|
1312
1312
|
year: "numeric",
|
|
@@ -1324,13 +1324,13 @@ function sr(n) {
|
|
|
1324
1324
|
hour: "2-digit",
|
|
1325
1325
|
minute: "2-digit",
|
|
1326
1326
|
second: "2-digit"
|
|
1327
|
-
})),
|
|
1327
|
+
})), Ot[n];
|
|
1328
1328
|
}
|
|
1329
1329
|
function ts(n, e, t, i, s, r, o) {
|
|
1330
1330
|
const a = /* @__PURE__ */ new Date(0);
|
|
1331
1331
|
return a.setUTCFullYear(n, e, t), a.setUTCHours(i, s, r, o), a;
|
|
1332
1332
|
}
|
|
1333
|
-
const fi = 36e5, nr = 6e4,
|
|
1333
|
+
const fi = 36e5, nr = 6e4, zt = {
|
|
1334
1334
|
timezoneZ: /^(Z)$/,
|
|
1335
1335
|
timezoneHH: /^([+-]\d{2})$/,
|
|
1336
1336
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -1338,20 +1338,20 @@ const fi = 36e5, nr = 6e4, Ot = {
|
|
|
1338
1338
|
function is(n, e, t) {
|
|
1339
1339
|
if (!n)
|
|
1340
1340
|
return 0;
|
|
1341
|
-
let i =
|
|
1341
|
+
let i = zt.timezoneZ.exec(n);
|
|
1342
1342
|
if (i)
|
|
1343
1343
|
return 0;
|
|
1344
1344
|
let s, r;
|
|
1345
|
-
if (i =
|
|
1345
|
+
if (i = zt.timezoneHH.exec(n), i)
|
|
1346
1346
|
return s = parseInt(i[1], 10), mi(s) ? -(s * fi) : NaN;
|
|
1347
|
-
if (i =
|
|
1347
|
+
if (i = zt.timezoneHHMM.exec(n), i) {
|
|
1348
1348
|
s = parseInt(i[2], 10);
|
|
1349
1349
|
const o = parseInt(i[3], 10);
|
|
1350
1350
|
return mi(s, o) ? (r = Math.abs(s) * fi + o * nr, i[1] === "+" ? -r : r) : NaN;
|
|
1351
1351
|
}
|
|
1352
1352
|
if (ar(n)) {
|
|
1353
1353
|
e = new Date(e || Date.now());
|
|
1354
|
-
const o = t ? e : rr(e), a =
|
|
1354
|
+
const o = t ? e : rr(e), a = qt(o, n);
|
|
1355
1355
|
return -(t ? a : or(e, a, n));
|
|
1356
1356
|
}
|
|
1357
1357
|
return NaN;
|
|
@@ -1359,7 +1359,7 @@ function is(n, e, t) {
|
|
|
1359
1359
|
function rr(n) {
|
|
1360
1360
|
return ts(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function qt(n, e) {
|
|
1363
1363
|
const t = Vn(n, e), i = ts(t[0], t[1] - 1, t[2], t[3] % 24, t[4], t[5], 0).getTime();
|
|
1364
1364
|
let s = n.getTime();
|
|
1365
1365
|
const r = s % 1e3;
|
|
@@ -1367,11 +1367,11 @@ function Pt(n, e) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function or(n, e, t) {
|
|
1369
1369
|
let s = n.getTime() - e;
|
|
1370
|
-
const r =
|
|
1370
|
+
const r = qt(new Date(s), t);
|
|
1371
1371
|
if (e === r)
|
|
1372
1372
|
return e;
|
|
1373
1373
|
s -= r - e;
|
|
1374
|
-
const o =
|
|
1374
|
+
const o = qt(new Date(s), t);
|
|
1375
1375
|
return r === o ? r : Math.max(r, o);
|
|
1376
1376
|
}
|
|
1377
1377
|
function mi(n, e) {
|
|
@@ -1390,7 +1390,7 @@ function ar(n) {
|
|
|
1390
1390
|
const lr = 60 * 1e3, ur = {
|
|
1391
1391
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1392
1392
|
X: function(n, e, t) {
|
|
1393
|
-
const i =
|
|
1393
|
+
const i = Nt(t.timeZone, n);
|
|
1394
1394
|
if (i === 0)
|
|
1395
1395
|
return "Z";
|
|
1396
1396
|
switch (e) {
|
|
@@ -1410,7 +1410,7 @@ const lr = 60 * 1e3, ur = {
|
|
|
1410
1410
|
},
|
|
1411
1411
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1412
1412
|
x: function(n, e, t) {
|
|
1413
|
-
const i =
|
|
1413
|
+
const i = Nt(t.timeZone, n);
|
|
1414
1414
|
switch (e) {
|
|
1415
1415
|
// Hours and optional minutes
|
|
1416
1416
|
case "x":
|
|
@@ -1428,7 +1428,7 @@ const lr = 60 * 1e3, ur = {
|
|
|
1428
1428
|
},
|
|
1429
1429
|
// Timezone (GMT)
|
|
1430
1430
|
O: function(n, e, t) {
|
|
1431
|
-
const i =
|
|
1431
|
+
const i = Nt(t.timeZone, n);
|
|
1432
1432
|
switch (e) {
|
|
1433
1433
|
// Short
|
|
1434
1434
|
case "O":
|
|
@@ -1452,7 +1452,7 @@ const lr = 60 * 1e3, ur = {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
|
-
function
|
|
1455
|
+
function Nt(n, e) {
|
|
1456
1456
|
const t = n ? is(n, e, !0) / lr : e?.getTimezoneOffset() ?? 0;
|
|
1457
1457
|
if (Number.isNaN(t))
|
|
1458
1458
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
@@ -1480,7 +1480,7 @@ function yi(n) {
|
|
|
1480
1480
|
const e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
1481
1481
|
return e.setUTCFullYear(n.getFullYear()), +n - +e;
|
|
1482
1482
|
}
|
|
1483
|
-
const dr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
1483
|
+
const dr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Mt = 36e5, vi = 6e4, hr = 2, ke = {
|
|
1484
1484
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
1485
1485
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
1486
1486
|
// year tokens
|
|
@@ -1608,13 +1608,13 @@ function pr(n, e) {
|
|
|
1608
1608
|
function yr(n) {
|
|
1609
1609
|
let e, t, i = ke.HH.exec(n);
|
|
1610
1610
|
if (i)
|
|
1611
|
-
return e = parseFloat(i[1].replace(",", ".")),
|
|
1611
|
+
return e = parseFloat(i[1].replace(",", ".")), At(e) ? e % 24 * Mt : NaN;
|
|
1612
1612
|
if (i = ke.HHMM.exec(n), i)
|
|
1613
|
-
return e = parseInt(i[1], 10), t = parseFloat(i[2].replace(",", ".")),
|
|
1613
|
+
return e = parseInt(i[1], 10), t = parseFloat(i[2].replace(",", ".")), At(e, t) ? e % 24 * Mt + t * vi : NaN;
|
|
1614
1614
|
if (i = ke.HHMMSS.exec(n), i) {
|
|
1615
1615
|
e = parseInt(i[1], 10), t = parseInt(i[2], 10);
|
|
1616
1616
|
const s = parseFloat(i[3].replace(",", "."));
|
|
1617
|
-
return
|
|
1617
|
+
return At(e, t, s) ? e % 24 * Mt + t * vi + s * 1e3 : NaN;
|
|
1618
1618
|
}
|
|
1619
1619
|
return null;
|
|
1620
1620
|
}
|
|
@@ -1650,7 +1650,7 @@ function wr(n, e) {
|
|
|
1650
1650
|
function bi(n, e) {
|
|
1651
1651
|
return !(n < 0 || n > 52 || e != null && (e < 0 || e > 6));
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function At(n, e, t) {
|
|
1654
1654
|
return !(n < 0 || n >= 25 || e != null && (e < 0 || e >= 60) || t != null && (t < 0 || t >= 60));
|
|
1655
1655
|
}
|
|
1656
1656
|
const br = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
@@ -1668,7 +1668,7 @@ function xi(n, e, t = {}) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return Yn(n, e, t);
|
|
1670
1670
|
}
|
|
1671
|
-
const
|
|
1671
|
+
const Ht = "#6c7489", Ei = "12px", xr = "16px", Ci = "20px", Ti = "32px", ns = "20px";
|
|
1672
1672
|
var ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1673
1673
|
function Er(n) {
|
|
1674
1674
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -2275,14 +2275,14 @@ function rs() {
|
|
|
2275
2275
|
// Translation component <i18n-t>
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
const dt = 170,
|
|
2278
|
+
const dt = 170, jt = 6, Ue = "analytics-query-provider", Si = "{entity-id}", Wr = "{cp-id}", Gr = "{timeframe}", Yr = 30 * 1e3, jr = 3e5, Kr = 36e5;
|
|
2279
2279
|
function Xr() {
|
|
2280
2280
|
const n = qe(Ue);
|
|
2281
2281
|
return {
|
|
2282
2282
|
evaluateFeatureFlag: (t, i) => n ? n.evaluateFeatureFlagFn(t, i) : i
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
|
-
var
|
|
2285
|
+
var Lt = { exports: {} }, Di;
|
|
2286
2286
|
function Qr() {
|
|
2287
2287
|
return Di || (Di = 1, (function(n) {
|
|
2288
2288
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
@@ -2387,14 +2387,14 @@ function Qr() {
|
|
|
2387
2387
|
var u;
|
|
2388
2388
|
return l ? (u = t ? t + l : l, this._events[u] && o(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
|
|
2389
2389
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = t, a.EventEmitter = a, n.exports = a;
|
|
2390
|
-
})(
|
|
2390
|
+
})(Lt)), Lt.exports;
|
|
2391
2391
|
}
|
|
2392
2392
|
var Zr = Qr();
|
|
2393
2393
|
const Vr = /* @__PURE__ */ Er(Zr);
|
|
2394
|
-
class
|
|
2394
|
+
class Kt extends Error {
|
|
2395
2395
|
name = "TimeoutError";
|
|
2396
2396
|
constructor(e, t) {
|
|
2397
|
-
super(e, t), Error.captureStackTrace?.(this,
|
|
2397
|
+
super(e, t), Error.captureStackTrace?.(this, Kt);
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
2400
|
const Oi = (n) => n.reason ?? new DOMException("This operation was aborted.", "AbortError");
|
|
@@ -2418,7 +2418,7 @@ function Jr(n, e) {
|
|
|
2418
2418
|
h(Oi(o));
|
|
2419
2419
|
}, o.addEventListener("abort", c, { once: !0 })), n.then(d, h), t === Number.POSITIVE_INFINITY)
|
|
2420
2420
|
return;
|
|
2421
|
-
const y = new
|
|
2421
|
+
const y = new Kt();
|
|
2422
2422
|
a = r.setTimeout.call(void 0, () => {
|
|
2423
2423
|
if (i) {
|
|
2424
2424
|
try {
|
|
@@ -3038,7 +3038,7 @@ class io extends Vr {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
}
|
|
3040
3040
|
const so = () => {
|
|
3041
|
-
const n =
|
|
3041
|
+
const n = Yt(), e = qe(Ue);
|
|
3042
3042
|
if (!e)
|
|
3043
3043
|
return;
|
|
3044
3044
|
if (e.queryFnOverride) {
|
|
@@ -3104,14 +3104,14 @@ function lo({
|
|
|
3104
3104
|
definition: t,
|
|
3105
3105
|
chartData: i
|
|
3106
3106
|
}) {
|
|
3107
|
-
const s = Z(""), r = Z(""), o = Z(void 0), a = Z(void 0), c =
|
|
3107
|
+
const s = Z(""), r = Z(""), o = Z(void 0), a = Z(void 0), c = Yt(), l = ut(), { stripUnknownFilters: u, loading: d } = rt(l), h = R(() => Ne(t.value));
|
|
3108
3108
|
Tt(async () => {
|
|
3109
3109
|
s.value = await n?.exploreBaseUrl?.() ?? "", r.value = await n?.requestsBaseUrl?.() ?? "";
|
|
3110
3110
|
});
|
|
3111
3111
|
const y = R(() => c.analytics && c.percentiles), _ = R(() => {
|
|
3112
3112
|
const p = t.value.chart.type;
|
|
3113
3113
|
return ["golden_signals", "gauge"].includes(p) ? !1 : p === "top_n" ? !!e.value.editable || !!e.value.showTileActions : !0;
|
|
3114
|
-
}), T = R(() => r.value && t.value.query && !h.value && t.value.query.datasource !== "llm_usage" && t.value.query.datasource !== "managed_cache_usage" &&
|
|
3114
|
+
}), T = R(() => r.value && t.value.query && !h.value && t.value.query.datasource !== "llm_usage" && t.value.query.datasource !== "managed_cache_usage" && !Bt(t.value.query.datasource) && y.value && !d.value), v = R(() => s.value && t.value.query && ao(t.value.query.datasource) && y.value && !d.value), A = R(() => i.value ? Pt(i.value.meta.granularity_ms) : void 0), k = R(() => {
|
|
3115
3115
|
const p = t.value, x = [...e.value.filters, ...p.query.filters ?? []], C = "metrics" in p.query ? p.query.metrics : void 0, N = p.query?.datasource ?? "api_usage";
|
|
3116
3116
|
return u.value({
|
|
3117
3117
|
datasource: N,
|
|
@@ -3191,8 +3191,8 @@ function lo({
|
|
|
3191
3191
|
buildRequestLink: z
|
|
3192
3192
|
};
|
|
3193
3193
|
}
|
|
3194
|
-
const uo = (n) => n.type === "relative" ?
|
|
3195
|
-
const i =
|
|
3194
|
+
const uo = (n) => n.type === "relative" ? Wt.get(Gt[n.time_range])?.timeframeLengthMs() : new Date(n.end).getTime() - new Date(n.start).getTime(), co = (n) => n.reduce((e, t) => {
|
|
3195
|
+
const i = Wt.get(Gt[t])?.maximumTimeframeLength();
|
|
3196
3196
|
return i === void 0 || e && i <= e.durationSeconds ? e : { durationSeconds: i, key: t };
|
|
3197
3197
|
}, void 0), os = (n, e) => {
|
|
3198
3198
|
if (!n || !e?.length)
|
|
@@ -3224,7 +3224,7 @@ function fo() {
|
|
|
3224
3224
|
datasource: u,
|
|
3225
3225
|
limit: d,
|
|
3226
3226
|
...h
|
|
3227
|
-
} = o, y = u || "basic", _ =
|
|
3227
|
+
} = o, y = u || "basic", _ = Bt(y), T = i.value({
|
|
3228
3228
|
datasource: y,
|
|
3229
3229
|
filters: [
|
|
3230
3230
|
...o.filters ?? [],
|
|
@@ -3258,7 +3258,7 @@ function mo({
|
|
|
3258
3258
|
isFullscreen: t = Z(!1),
|
|
3259
3259
|
preview: i = Z(!1)
|
|
3260
3260
|
}) {
|
|
3261
|
-
const s =
|
|
3261
|
+
const s = Yt(), r = ut(), { loading: o } = rt(s), { loading: a } = rt(r), c = R(() => n.value.timeSpec ? n.value.timeSpec : {
|
|
3262
3262
|
type: "relative",
|
|
3263
3263
|
time_range: s.defaultQueryTimeForOrg
|
|
3264
3264
|
}), l = R(() => {
|
|
@@ -3446,7 +3446,7 @@ function _o(n) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
return {
|
|
3448
3448
|
exportPdf: i,
|
|
3449
|
-
exportState:
|
|
3449
|
+
exportState: It(t)
|
|
3450
3450
|
};
|
|
3451
3451
|
}
|
|
3452
3452
|
const Re = {
|
|
@@ -3596,7 +3596,7 @@ const Re = {
|
|
|
3596
3596
|
}, {
|
|
3597
3597
|
default: j(() => [
|
|
3598
3598
|
ye(S(Es), {
|
|
3599
|
-
color: `var(--kui-color-text-neutral, ${S(
|
|
3599
|
+
color: `var(--kui-color-text-neutral, ${S(Ht)})`,
|
|
3600
3600
|
size: `var(--kui-icon-size-30, ${S(xr)})`
|
|
3601
3601
|
}, null, 8, ["color", "size"])
|
|
3602
3602
|
]),
|
|
@@ -3683,7 +3683,7 @@ function To(n = Z({}), e, t, i = Co) {
|
|
|
3683
3683
|
swrvState: us
|
|
3684
3684
|
};
|
|
3685
3685
|
}
|
|
3686
|
-
const
|
|
3686
|
+
const Xt = /* @__PURE__ */ _e({
|
|
3687
3687
|
__name: "QueryDataProvider",
|
|
3688
3688
|
props: {
|
|
3689
3689
|
context: {},
|
|
@@ -3694,7 +3694,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3694
3694
|
},
|
|
3695
3695
|
emits: ["chart-data", "query-complete"],
|
|
3696
3696
|
setup(n, { emit: e }) {
|
|
3697
|
-
const t = n, i = e, { i18n: s } = Re.useI18n(), { issueQuery: r } = Re.useIssueQuery(), o = qe(Ue), a = () => t.queryReady && o ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, { data: c, error: l, isValidating: u } =
|
|
3697
|
+
const t = n, i = e, { i18n: s } = Re.useI18n(), { issueQuery: r } = Re.useIssueQuery(), o = qe(Ue), a = () => t.queryReady && o ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, { data: c, error: l, isValidating: u } = Ns(a, async () => {
|
|
3698
3698
|
const k = a();
|
|
3699
3699
|
try {
|
|
3700
3700
|
const E = await r(t.query, t.context, t.limitOverride);
|
|
@@ -3702,7 +3702,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3702
3702
|
} catch (E) {
|
|
3703
3703
|
if (a() !== k)
|
|
3704
3704
|
return;
|
|
3705
|
-
throw y.value =
|
|
3705
|
+
throw y.value = Ms(E), E;
|
|
3706
3706
|
} finally {
|
|
3707
3707
|
a() === k && i("query-complete");
|
|
3708
3708
|
}
|
|
@@ -3742,48 +3742,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3742
3742
|
]), 1024)) : A.value ? Xe(k.$slots, "default", { data: A.value }, void 0, void 0, 2) : me("", !0);
|
|
3743
3743
|
};
|
|
3744
3744
|
}
|
|
3745
|
-
}), ko = /* @__PURE__ */ _e({
|
|
3746
|
-
__name: "SimpleChartRenderer",
|
|
3747
|
-
props: {
|
|
3748
|
-
query: {},
|
|
3749
|
-
context: {},
|
|
3750
|
-
queryReady: { type: Boolean },
|
|
3751
|
-
chartOptions: {},
|
|
3752
|
-
height: {},
|
|
3753
|
-
refreshCounter: {},
|
|
3754
|
-
headerDescription: {},
|
|
3755
|
-
requestsLink: {},
|
|
3756
|
-
exploreLink: {}
|
|
3757
|
-
},
|
|
3758
|
-
setup(n) {
|
|
3759
|
-
const e = n, t = R(() => e.chartOptions.type === "single_value");
|
|
3760
|
-
return (i, s) => (O(), Q(Kt, {
|
|
3761
|
-
context: n.context,
|
|
3762
|
-
query: n.query,
|
|
3763
|
-
"query-ready": n.queryReady,
|
|
3764
|
-
"refresh-counter": n.refreshCounter
|
|
3765
|
-
}, {
|
|
3766
|
-
default: j(({ data: r }) => [
|
|
3767
|
-
he("div", {
|
|
3768
|
-
class: et(["analytics-chart", { "single-value": t.value }]),
|
|
3769
|
-
style: pt(t.value ? void 0 : { height: `${n.height}px` })
|
|
3770
|
-
}, [
|
|
3771
|
-
ye(S(Ms), {
|
|
3772
|
-
"chart-data": r,
|
|
3773
|
-
"chart-options": n.chartOptions,
|
|
3774
|
-
"synthetics-data-key": t.value ? void 0 : n.chartOptions.synthetics_data_key
|
|
3775
|
-
}, null, 8, ["chart-data", "chart-options", "synthetics-data-key"])
|
|
3776
|
-
], 6)
|
|
3777
|
-
]),
|
|
3778
|
-
_: 1
|
|
3779
|
-
}, 8, ["context", "query", "query-ready", "refresh-counter"]));
|
|
3780
|
-
}
|
|
3781
|
-
}), Ge = (n, e) => {
|
|
3782
|
-
const t = n.__vccOpts || n;
|
|
3783
|
-
for (const [i, s] of e)
|
|
3784
|
-
t[i] = s;
|
|
3785
|
-
return t;
|
|
3786
|
-
}, Ii = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-2cbfac70"]]), Ro = { class: "analytics-chart" }, So = /* @__PURE__ */ _e({
|
|
3745
|
+
}), ko = { class: "analytics-chart" }, Ro = /* @__PURE__ */ _e({
|
|
3787
3746
|
__name: "BaseAnalyticsChartRenderer",
|
|
3788
3747
|
props: {
|
|
3789
3748
|
query: {},
|
|
@@ -3812,7 +3771,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3812
3771
|
};
|
|
3813
3772
|
return (l, u) => {
|
|
3814
3773
|
const d = xe("KDropdownItem");
|
|
3815
|
-
return O(), Q(
|
|
3774
|
+
return O(), Q(Xt, {
|
|
3816
3775
|
context: n.context,
|
|
3817
3776
|
query: n.query,
|
|
3818
3777
|
"query-ready": n.queryReady,
|
|
@@ -3820,7 +3779,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3820
3779
|
onChartData: c
|
|
3821
3780
|
}, {
|
|
3822
3781
|
default: j(({ data: h }) => [
|
|
3823
|
-
he("div",
|
|
3782
|
+
he("div", ko, [
|
|
3824
3783
|
ye(S(As), Gi({
|
|
3825
3784
|
"chart-data": h,
|
|
3826
3785
|
"chart-options": r.value,
|
|
@@ -3853,7 +3812,48 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3853
3812
|
}, 8, ["context", "query", "query-ready", "refresh-counter"]);
|
|
3854
3813
|
};
|
|
3855
3814
|
}
|
|
3856
|
-
}),
|
|
3815
|
+
}), Ge = (n, e) => {
|
|
3816
|
+
const t = n.__vccOpts || n;
|
|
3817
|
+
for (const [i, s] of e)
|
|
3818
|
+
t[i] = s;
|
|
3819
|
+
return t;
|
|
3820
|
+
}, Rt = /* @__PURE__ */ Ge(Ro, [["__scopeId", "data-v-e1e7f610"]]), So = /* @__PURE__ */ _e({
|
|
3821
|
+
__name: "SimpleChartRenderer",
|
|
3822
|
+
props: {
|
|
3823
|
+
query: {},
|
|
3824
|
+
context: {},
|
|
3825
|
+
queryReady: { type: Boolean },
|
|
3826
|
+
chartOptions: {},
|
|
3827
|
+
height: {},
|
|
3828
|
+
refreshCounter: {},
|
|
3829
|
+
headerDescription: {},
|
|
3830
|
+
requestsLink: {},
|
|
3831
|
+
exploreLink: {}
|
|
3832
|
+
},
|
|
3833
|
+
setup(n) {
|
|
3834
|
+
const e = n, t = R(() => e.chartOptions.type === "single_value");
|
|
3835
|
+
return (i, s) => (O(), Q(Xt, {
|
|
3836
|
+
context: n.context,
|
|
3837
|
+
query: n.query,
|
|
3838
|
+
"query-ready": n.queryReady,
|
|
3839
|
+
"refresh-counter": n.refreshCounter
|
|
3840
|
+
}, {
|
|
3841
|
+
default: j(({ data: r }) => [
|
|
3842
|
+
he("div", {
|
|
3843
|
+
class: et(["analytics-chart", { "single-value": t.value }]),
|
|
3844
|
+
style: pt(t.value ? void 0 : { height: `${n.height}px` })
|
|
3845
|
+
}, [
|
|
3846
|
+
ye(S(Ls), {
|
|
3847
|
+
"chart-data": r,
|
|
3848
|
+
"chart-options": n.chartOptions,
|
|
3849
|
+
"synthetics-data-key": t.value ? void 0 : n.chartOptions.synthetics_data_key
|
|
3850
|
+
}, null, 8, ["chart-data", "chart-options", "synthetics-data-key"])
|
|
3851
|
+
], 6)
|
|
3852
|
+
]),
|
|
3853
|
+
_: 1
|
|
3854
|
+
}, 8, ["context", "query", "query-ready", "refresh-counter"]));
|
|
3855
|
+
}
|
|
3856
|
+
}), Ii = /* @__PURE__ */ Ge(So, [["__scopeId", "data-v-2cbfac70"]]), Pi = /* @__PURE__ */ _e({
|
|
3857
3857
|
__name: "BarChartRenderer",
|
|
3858
3858
|
props: {
|
|
3859
3859
|
query: {},
|
|
@@ -3867,7 +3867,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3867
3867
|
exploreLink: {}
|
|
3868
3868
|
},
|
|
3869
3869
|
setup(n) {
|
|
3870
|
-
return (e, t) => (O(), Q(
|
|
3870
|
+
return (e, t) => (O(), Q(Rt, {
|
|
3871
3871
|
"chart-options": n.chartOptions,
|
|
3872
3872
|
context: n.context,
|
|
3873
3873
|
"extra-props": { showAnnotations: !1 },
|
|
@@ -3893,7 +3893,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3893
3893
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
3894
3894
|
setup(n, { emit: e }) {
|
|
3895
3895
|
const t = e;
|
|
3896
|
-
return (i, s) => (O(), Q(
|
|
3896
|
+
return (i, s) => (O(), Q(Rt, {
|
|
3897
3897
|
"chart-options": n.chartOptions,
|
|
3898
3898
|
context: n.context,
|
|
3899
3899
|
"explore-link": n.exploreLink,
|
|
@@ -3996,14 +3996,14 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
3996
3996
|
return u.replace(Si, l.id);
|
|
3997
3997
|
return "";
|
|
3998
3998
|
};
|
|
3999
|
-
return (l, u) => (O(), Q(
|
|
3999
|
+
return (l, u) => (O(), Q(Xt, {
|
|
4000
4000
|
context: n.context,
|
|
4001
4001
|
query: n.query,
|
|
4002
4002
|
"query-ready": n.queryReady,
|
|
4003
4003
|
"refresh-counter": n.refreshCounter
|
|
4004
4004
|
}, {
|
|
4005
4005
|
default: j(({ data: d }) => [
|
|
4006
|
-
ye(S(
|
|
4006
|
+
ye(S(Is), {
|
|
4007
4007
|
data: d,
|
|
4008
4008
|
"synthetics-data-key": n.chartOptions.synthetics_data_key
|
|
4009
4009
|
}, kt({ _: 2 }, [
|
|
@@ -4018,7 +4018,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4018
4018
|
deleted: h.deleted
|
|
4019
4019
|
},
|
|
4020
4020
|
"external-link": c(h)
|
|
4021
|
-
}, null, 8, ["entity-link-data", "external-link"])) : (O(), re(
|
|
4021
|
+
}, null, 8, ["entity-link-data", "external-link"])) : (O(), re(Ft, { key: 1 }, [
|
|
4022
4022
|
h.name === "empty" ? (O(), re("i", No, ne(h.name), 1)) : (O(), re("span", Mo, ne(h.name), 1))
|
|
4023
4023
|
], 64))
|
|
4024
4024
|
]),
|
|
@@ -4194,7 +4194,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4194
4194
|
exploreLink: {}
|
|
4195
4195
|
},
|
|
4196
4196
|
setup(n) {
|
|
4197
|
-
return (e, t) => (O(), Q(
|
|
4197
|
+
return (e, t) => (O(), Q(Rt, {
|
|
4198
4198
|
"chart-options": n.chartOptions,
|
|
4199
4199
|
context: n.context,
|
|
4200
4200
|
height: n.height,
|
|
@@ -4225,12 +4225,12 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4225
4225
|
}),
|
|
4226
4226
|
emits: /* @__PURE__ */ yt(["chart-data", "tile-loaded", "edit-tile", "duplicate-tile", "remove-tile", "tile-time-range-zoom", "tile-bounds-change"], ["update:refreshCounter"]),
|
|
4227
4227
|
setup(n, { expose: e, emit: t }) {
|
|
4228
|
-
|
|
4229
|
-
|
|
4228
|
+
Ut((D) => ({
|
|
4229
|
+
fb0f0a9c: `${D.height}px`
|
|
4230
4230
|
}));
|
|
4231
4231
|
const i = parseInt(ns, 10), s = ji(n, "refreshCounter"), r = () => {
|
|
4232
4232
|
k.value = !0, s.value++;
|
|
4233
|
-
}, o = t, a = Yi(() => import("./GeoMapRenderer-
|
|
4233
|
+
}, o = t, a = Yi(() => import("./GeoMapRenderer-D35mhyQN.js")), c = qe(Ue), l = ut(), { datasourceConfigMap: u, stripUnknownFilters: d } = rt(l), { i18n: h } = Re.useI18n(), y = Z(), _ = Z({ status: "loading" }), T = Z(!1), v = Z(), A = Z(!1), k = Z(!0), E = R(() => n.definition.chart), K = R(() => "chart_title" in E.value ? E.value.chart_title : void 0), z = R(() => n.definition.header_description), te = R(() => E.value.type === "slottable"), X = R(() => Ne(n.definition) ? !1 : !("allow_csv_export" in E.value) || E.value.allow_csv_export !== !1), {
|
|
4234
4234
|
exploreLinkKebabMenu: m,
|
|
4235
4235
|
requestsLinkKebabMenu: f,
|
|
4236
4236
|
canShowKebabMenu: p,
|
|
@@ -4244,12 +4244,12 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4244
4244
|
buildRequestsQueryZoomActions: ue
|
|
4245
4245
|
} = Re.useContextLinks({
|
|
4246
4246
|
queryBridge: c,
|
|
4247
|
-
chartData:
|
|
4247
|
+
chartData: It(y),
|
|
4248
4248
|
definition: st(() => n.definition),
|
|
4249
|
-
context:
|
|
4249
|
+
context: It(st(() => n.context))
|
|
4250
4250
|
}), { issueQuery: P } = Re.useIssueQuery();
|
|
4251
4251
|
Je(() => n.definition, async (D, B) => {
|
|
4252
|
-
await
|
|
4252
|
+
await $t(), v.value && (A.value = v.value.scrollWidth > v.value.clientWidth);
|
|
4253
4253
|
try {
|
|
4254
4254
|
JSON.stringify(D?.query) !== JSON.stringify(B?.query) && (k.value = !0);
|
|
4255
4255
|
} catch {
|
|
@@ -4258,6 +4258,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4258
4258
|
const se = R(() => h.t("csvExport.defaultFilename")), L = R(() => !!m.value || X.value || !!n.context.editable), b = R(() => !n.hideActions && p.value && L.value), w = R(() => b.value && L.value && !n.isFullscreen), Y = {
|
|
4259
4259
|
timeseries_line: qi,
|
|
4260
4260
|
timeseries_bar: qi,
|
|
4261
|
+
scatter: Rt,
|
|
4261
4262
|
horizontal_bar: Pi,
|
|
4262
4263
|
vertical_bar: Pi,
|
|
4263
4264
|
gauge: Ii,
|
|
@@ -4303,10 +4304,10 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4303
4304
|
if (Ne(n.definition))
|
|
4304
4305
|
return null;
|
|
4305
4306
|
const D = n.definition.query, B = D?.time_range;
|
|
4306
|
-
if (
|
|
4307
|
+
if (Bt(D?.datasource) && !D.dimensions?.includes("time"))
|
|
4307
4308
|
return h.t("renderer.as_of_today");
|
|
4308
4309
|
if (B?.type === "relative") {
|
|
4309
|
-
const de =
|
|
4310
|
+
const de = Wt.get(Gt[B.time_range]);
|
|
4310
4311
|
return de ? de.display : (console.warn("Did not recognize the given relative time range:", B.time_range), B.time_range);
|
|
4311
4312
|
} else if (B?.type === "absolute") {
|
|
4312
4313
|
const de = B.tz || "Etc/UTC";
|
|
@@ -4323,13 +4324,13 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4323
4324
|
W.value,
|
|
4324
4325
|
!!z.value,
|
|
4325
4326
|
n.showRefresh
|
|
4326
|
-
].some(Boolean)), ae = R(() => y.value ?
|
|
4327
|
+
].some(Boolean)), ae = R(() => y.value ? Pt(y.value.meta.granularity_ms) : void 0), q = R(() => ["timeseries_line", "timeseries_bar"].includes(E.value.type)), ce = R(() => {
|
|
4327
4328
|
if (Ne(n.definition) || !q.value || !n.queryReady || k.value)
|
|
4328
4329
|
return !1;
|
|
4329
4330
|
const D = n.definition.query.granularity;
|
|
4330
4331
|
return !D || !ae.value ? !1 : D !== ae.value;
|
|
4331
4332
|
}), ge = R(() => {
|
|
4332
|
-
const D =
|
|
4333
|
+
const D = Pt(y.value?.meta.granularity_ms ?? 0) ?? "unknown", B = Ne(n.definition) ? "unknown" : n.definition.query.granularity ?? "unknown";
|
|
4333
4334
|
return h.t("query_aged_out_warning", {
|
|
4334
4335
|
currentGranularity: h.t(`granularities.${D}`),
|
|
4335
4336
|
savedGranularity: h.t(`granularities.${B}`)
|
|
@@ -4490,7 +4491,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4490
4491
|
b.value && n.context.editable && !n.isFullscreen ? (O(), Q(S(Ss), {
|
|
4491
4492
|
key: 0,
|
|
4492
4493
|
class: "edit-icon",
|
|
4493
|
-
color: `var(--kui-color-text-neutral, ${S(
|
|
4494
|
+
color: `var(--kui-color-text-neutral, ${S(Ht)})`,
|
|
4494
4495
|
"data-testid": `edit-tile-${n.tileId}`,
|
|
4495
4496
|
size: `var(--kui-icon-size-40, ${S(Ci)})`,
|
|
4496
4497
|
onClick: ie
|
|
@@ -4550,7 +4551,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4550
4551
|
default: j(() => [
|
|
4551
4552
|
ye(S(Ds), {
|
|
4552
4553
|
class: "kebab-action-menu",
|
|
4553
|
-
color: `var(--kui-color-text-neutral, ${S(
|
|
4554
|
+
color: `var(--kui-color-text-neutral, ${S(Ht)})`,
|
|
4554
4555
|
"data-testid": `kebab-action-menu-${n.tileId}`,
|
|
4555
4556
|
size: `var(--kui-icon-size-40, ${S(Ci)})`
|
|
4556
4557
|
}, null, 8, ["color", "data-testid", "size"])
|
|
@@ -4578,7 +4579,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4578
4579
|
], 10, Uo);
|
|
4579
4580
|
};
|
|
4580
4581
|
}
|
|
4581
|
-
}), cs = /* @__PURE__ */ Ge(Vo, [["__scopeId", "data-v-
|
|
4582
|
+
}), cs = /* @__PURE__ */ Ge(Vo, [["__scopeId", "data-v-5cfd08da"]]), Jo = (n, e) => {
|
|
4582
4583
|
let t = 0;
|
|
4583
4584
|
const i = /* @__PURE__ */ new Map();
|
|
4584
4585
|
e.forEach((r) => {
|
|
@@ -4600,7 +4601,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4600
4601
|
columns: {
|
|
4601
4602
|
type: Number,
|
|
4602
4603
|
required: !1,
|
|
4603
|
-
default: () =>
|
|
4604
|
+
default: () => jt
|
|
4604
4605
|
},
|
|
4605
4606
|
tiles: {
|
|
4606
4607
|
type: Array,
|
|
@@ -4608,7 +4609,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4608
4609
|
}
|
|
4609
4610
|
},
|
|
4610
4611
|
setup(n) {
|
|
4611
|
-
|
|
4612
|
+
Ut((a) => ({
|
|
4612
4613
|
v821fda82: e.columns,
|
|
4613
4614
|
v0870d42d: r.value
|
|
4614
4615
|
}));
|
|
@@ -4637,7 +4638,7 @@ const Kt = /* @__PURE__ */ _e({
|
|
|
4637
4638
|
ref: t,
|
|
4638
4639
|
class: "kong-ui-public-grid-layout"
|
|
4639
4640
|
}, [
|
|
4640
|
-
(O(!0), re(
|
|
4641
|
+
(O(!0), re(Ft, null, Xi(o.value, (l) => (O(), re("div", {
|
|
4641
4642
|
key: l.key,
|
|
4642
4643
|
class: et(["grid-cell", {
|
|
4643
4644
|
"empty-cell": !l.tile
|
|
@@ -5518,14 +5519,14 @@ function Bi(n) {
|
|
|
5518
5519
|
delete Pe.pointerLeaveTimeout, ds(n, "mouseleave");
|
|
5519
5520
|
}, 10));
|
|
5520
5521
|
}
|
|
5521
|
-
class
|
|
5522
|
+
class St {
|
|
5522
5523
|
constructor(e, t, i) {
|
|
5523
5524
|
this.host = e, this.dir = t, this.option = i, this.moving = !1, this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this._init();
|
|
5524
5525
|
}
|
|
5525
5526
|
/** @internal */
|
|
5526
5527
|
_init() {
|
|
5527
5528
|
const e = this.el = document.createElement("div");
|
|
5528
|
-
return e.classList.add("ui-resizable-handle"), e.classList.add(`${
|
|
5529
|
+
return e.classList.add("ui-resizable-handle"), e.classList.add(`${St.prefix}${this.dir}`), e.style.zIndex = "100", e.style.userSelect = "none", this.host.appendChild(this.el), this.el.addEventListener("mousedown", this._mouseDown), Me && (this.el.addEventListener("touchstart", bt), this.el.addEventListener("pointerdown", Ct)), this;
|
|
5529
5530
|
}
|
|
5530
5531
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
5531
5532
|
destroy() {
|
|
@@ -5553,7 +5554,7 @@ class Rt {
|
|
|
5553
5554
|
return this.option[e] && this.option[e](t), this;
|
|
5554
5555
|
}
|
|
5555
5556
|
}
|
|
5556
|
-
|
|
5557
|
+
St.prefix = "ui-resizable-";
|
|
5557
5558
|
class Qt {
|
|
5558
5559
|
constructor() {
|
|
5559
5560
|
this._eventRegister = {};
|
|
@@ -5652,7 +5653,7 @@ class ot extends Qt {
|
|
|
5652
5653
|
}
|
|
5653
5654
|
/** @internal */
|
|
5654
5655
|
_setupHandlers() {
|
|
5655
|
-
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new
|
|
5656
|
+
return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new St(this.el, e, {
|
|
5656
5657
|
start: (t) => {
|
|
5657
5658
|
this._resizeStart(t);
|
|
5658
5659
|
},
|
|
@@ -7270,7 +7271,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7270
7271
|
props: {
|
|
7271
7272
|
tiles: {},
|
|
7272
7273
|
tileHeight: { default: dt },
|
|
7273
|
-
columns: { default:
|
|
7274
|
+
columns: { default: jt }
|
|
7274
7275
|
},
|
|
7275
7276
|
emits: ["update-tiles"],
|
|
7276
7277
|
setup(n, { expose: e, emit: t }) {
|
|
@@ -7316,7 +7317,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7316
7317
|
if (y > _ && a) {
|
|
7317
7318
|
const T = i.tiles.slice(_);
|
|
7318
7319
|
for (const v of T)
|
|
7319
|
-
o.value.set(`${v.id}`, v), await
|
|
7320
|
+
o.value.set(`${v.id}`, v), await $t(), a.makeWidget(c(v.id), {
|
|
7320
7321
|
autoPosition: !0,
|
|
7321
7322
|
w: v.layout.size.cols,
|
|
7322
7323
|
h: v.layout.size.rows
|
|
@@ -7331,7 +7332,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7331
7332
|
ref: r,
|
|
7332
7333
|
class: "grid-stack"
|
|
7333
7334
|
}, [
|
|
7334
|
-
(O(!0), re(
|
|
7335
|
+
(O(!0), re(Ft, null, Xi(i.tiles, (T) => (O(), re("div", {
|
|
7335
7336
|
key: T.id,
|
|
7336
7337
|
class: "grid-stack-item",
|
|
7337
7338
|
"data-id": `${T.id}`,
|
|
@@ -7389,7 +7390,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7389
7390
|
}),
|
|
7390
7391
|
emits: /* @__PURE__ */ yt(["edit-tile", "tile-time-range-zoom", "tiles-loaded"], ["update:modelValue"]),
|
|
7391
7392
|
setup(n, { expose: e, emit: t }) {
|
|
7392
|
-
|
|
7393
|
+
Ut((b) => ({
|
|
7393
7394
|
v916e2ce4: u.value
|
|
7394
7395
|
}));
|
|
7395
7396
|
const i = t, s = ji(n, "modelValue"), { i18n: r } = Re.useI18n(), o = Z(0), a = Z(null), c = Z(), l = Z(), u = Z("scale(1)"), d = /* @__PURE__ */ new Set(), h = qe(Ue);
|
|
@@ -7458,7 +7459,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7458
7459
|
});
|
|
7459
7460
|
s.value.tiles = w.sort(A);
|
|
7460
7461
|
}, x = async () => {
|
|
7461
|
-
if (u.value = "scale(1)", await
|
|
7462
|
+
if (u.value = "scale(1)", await $t(), l.value) {
|
|
7462
7463
|
const { availWidth: b, availHeight: w } = window.screen, { width: Y, height: H } = l.value.getBoundingClientRect(), U = Math.min(w / H, b / Y);
|
|
7463
7464
|
u.value = `scale(${U})`;
|
|
7464
7465
|
}
|
|
@@ -7651,7 +7652,7 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7651
7652
|
query: t
|
|
7652
7653
|
}
|
|
7653
7654
|
};
|
|
7654
|
-
}, pa = (n, e =
|
|
7655
|
+
}, pa = (n, e = jt) => {
|
|
7655
7656
|
if (!n.length)
|
|
7656
7657
|
return [];
|
|
7657
7658
|
let t = 0, i = 0, s = 0;
|
|
@@ -7689,13 +7690,13 @@ const oa = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], aa = { cl
|
|
|
7689
7690
|
};
|
|
7690
7691
|
export {
|
|
7691
7692
|
Wr as C,
|
|
7692
|
-
|
|
7693
|
+
jt as D,
|
|
7693
7694
|
Si as E,
|
|
7694
7695
|
Kr as F,
|
|
7695
7696
|
ta as G,
|
|
7696
7697
|
Ue as I,
|
|
7697
7698
|
Gr as T,
|
|
7698
|
-
|
|
7699
|
+
Xt as _,
|
|
7699
7700
|
Eo as a,
|
|
7700
7701
|
dt as b,
|
|
7701
7702
|
Yr as c,
|