@kong-ui-public/analytics-chart 0.23.1 → 0.23.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.
@@ -18135,7 +18135,7 @@ const Cd = (n, t) => {
18135
18135
  beforeDestroy(n) {
18136
18136
  delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1;
18137
18137
  }
18138
- }, kd = 6, aS = 20, sS = "100%", Ds = 30, oS = 40, lS = 0, uS = 10, cS = 10, dS = 1, fS = /* @__PURE__ */ pe({
18138
+ }, kd = 6, aS = 20, sS = "100%", Ds = 30, oS = 40, lS = 0, uS = 10, cS = 10, dS = 1, fS = 4, hS = /* @__PURE__ */ pe({
18139
18139
  __name: "StackedBarChart",
18140
18140
  props: {
18141
18141
  chartData: {
@@ -18316,7 +18316,7 @@ const Cd = (n, t) => {
18316
18316
  }), A = B(() => {
18317
18317
  let N = parseInt(e.height, 10);
18318
18318
  if (k.value && p.value) {
18319
- const P = k.value * aS;
18319
+ const P = k.value * (aS + fS);
18320
18320
  N = Math.max(P, N);
18321
18321
  }
18322
18322
  return N;
@@ -18452,14 +18452,14 @@ const Cd = (n, t) => {
18452
18452
  }, null, 8, ["id", "chart-instance", "items"])
18453
18453
  ], 2));
18454
18454
  }
18455
- }), hS = /* @__PURE__ */ bn(fS, [["__scopeId", "data-v-1c2c9aa5"]]);
18455
+ }), gS = /* @__PURE__ */ bn(hS, [["__scopeId", "data-v-b1f37987"]]);
18456
18456
  /*!
18457
18457
  * chartjs-adapter-date-fns v3.0.0
18458
18458
  * https://www.chartjs.org
18459
18459
  * (c) 2022 chartjs-adapter-date-fns Contributors
18460
18460
  * Released under the MIT license
18461
18461
  */
18462
- const gS = {
18462
+ const pS = {
18463
18463
  datetime: "MMM d, yyyy, h:mm:ss aaaa",
18464
18464
  millisecond: "h:mm:ss.SSS aaaa",
18465
18465
  second: "h:mm:ss aaaa",
@@ -18475,7 +18475,7 @@ mf._date.override({
18475
18475
  _id: "date-fns",
18476
18476
  // DEBUG
18477
18477
  formats: function() {
18478
- return gS;
18478
+ return pS;
18479
18479
  },
18480
18480
  parse: function(n, t) {
18481
18481
  if (n === null || typeof n > "u")
@@ -18602,31 +18602,31 @@ const Wh = {
18602
18602
  type: String,
18603
18603
  default: void 0
18604
18604
  }
18605
- }, pS = {
18605
+ }, mS = {
18606
18606
  ariaLabel: {
18607
18607
  type: String
18608
18608
  },
18609
18609
  ariaDescribedby: {
18610
18610
  type: String
18611
18611
  }
18612
- }, mS = {
18612
+ }, vS = {
18613
18613
  type: {
18614
18614
  type: String,
18615
18615
  required: !0
18616
18616
  },
18617
18617
  ...Wh,
18618
- ...pS
18619
- }, vS = ip[0] === "2" ? (n, t) => Object.assign(n, {
18618
+ ...mS
18619
+ }, bS = ip[0] === "2" ? (n, t) => Object.assign(n, {
18620
18620
  attrs: t
18621
18621
  }) : (n, t) => Object.assign(n, t);
18622
18622
  function hi(n) {
18623
18623
  return Wd(n) ? Cs(n) : n;
18624
18624
  }
18625
- function bS(n) {
18625
+ function yS(n) {
18626
18626
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n;
18627
18627
  return Wd(t) ? new Proxy(n, {}) : n;
18628
18628
  }
18629
- function yS(n, t) {
18629
+ function xS(n, t) {
18630
18630
  const e = n.options;
18631
18631
  e && t && Object.assign(e, t);
18632
18632
  }
@@ -18642,15 +18642,15 @@ function Hh(n, t, e) {
18642
18642
  } : (i.push(a), Object.assign(a, r), a);
18643
18643
  });
18644
18644
  }
18645
- function xS(n, t) {
18645
+ function _S(n, t) {
18646
18646
  const e = {
18647
18647
  labels: [],
18648
18648
  datasets: []
18649
18649
  };
18650
18650
  return Yh(e, n.labels), Hh(e, n.datasets, t), e;
18651
18651
  }
18652
- const _S = pe({
18653
- props: mS,
18652
+ const wS = pe({
18653
+ props: vS,
18654
18654
  setup(n, t) {
18655
18655
  let { expose: e, slots: i } = t;
18656
18656
  const r = bt(null), a = Go(null);
@@ -18660,7 +18660,7 @@ const _S = pe({
18660
18660
  const s = () => {
18661
18661
  if (!r.value)
18662
18662
  return;
18663
- const { type: u, data: c, options: d, plugins: f, datasetIdKey: h } = n, g = xS(c, h), b = bS(g, c);
18663
+ const { type: u, data: c, options: d, plugins: f, datasetIdKey: h } = n, g = _S(c, h), b = yS(g, c);
18664
18664
  a.value = new Ye(r.value, {
18665
18665
  type: u,
18666
18666
  data: b,
@@ -18686,7 +18686,7 @@ const _S = pe({
18686
18686
  let m = !1;
18687
18687
  if (d) {
18688
18688
  const p = hi(d), y = hi(h);
18689
- p && p !== y && (yS(b, p), m = !0);
18689
+ p && p !== y && (xS(b, p), m = !0);
18690
18690
  }
18691
18691
  if (f) {
18692
18692
  const p = hi(f.labels), y = hi(g.labels), _ = hi(f.datasets), x = hi(g.datasets);
@@ -18719,7 +18719,7 @@ function zl(n, t) {
18719
18719
  };
18720
18720
  return r({
18721
18721
  chart: a
18722
- }), () => ks(_S, vS({
18722
+ }), () => ks(wS, bS({
18723
18723
  ref: s
18724
18724
  }, {
18725
18725
  type: n,
@@ -18728,7 +18728,7 @@ function zl(n, t) {
18728
18728
  }
18729
18729
  });
18730
18730
  }
18731
- const wS = /* @__PURE__ */ zl("bar", tr), zh = /* @__PURE__ */ zl("doughnut", kn), TS = /* @__PURE__ */ zl("line", er), MS = { class: "chart-container" }, DS = /* @__PURE__ */ pe({
18731
+ const TS = /* @__PURE__ */ zl("bar", tr), zh = /* @__PURE__ */ zl("doughnut", kn), MS = /* @__PURE__ */ zl("line", er), DS = { class: "chart-container" }, SS = /* @__PURE__ */ pe({
18732
18732
  __name: "DoughnutChart",
18733
18733
  props: {
18734
18734
  chartData: {
@@ -18807,7 +18807,7 @@ const wS = /* @__PURE__ */ zl("bar", tr), zh = /* @__PURE__ */ zl("doughnut", kn
18807
18807
  class: Zn(["chart-parent", g(n.legendPosition)]),
18808
18808
  "data-testid": "doughnut-chart-parent"
18809
18809
  }, [
18810
- gt("div", MS, [
18810
+ gt("div", DS, [
18811
18811
  ce(dt(zh), {
18812
18812
  ref_key: "chartInstance",
18813
18813
  ref: h,
@@ -18834,7 +18834,7 @@ const wS = /* @__PURE__ */ zl("bar", tr), zh = /* @__PURE__ */ zl("doughnut", kn
18834
18834
  }, null, 8, ["id", "chart-instance", "items", "position"])
18835
18835
  ], 2));
18836
18836
  }
18837
- }), SS = /* @__PURE__ */ bn(DS, [["__scopeId", "data-v-3eb7ba8d"]]);
18837
+ }), CS = /* @__PURE__ */ bn(SS, [["__scopeId", "data-v-3eb7ba8d"]]);
18838
18838
  var pi = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(pi || {}), ka = { exports: {} };
18839
18839
  ka.exports;
18840
18840
  (function(n, t) {
@@ -19425,10 +19425,10 @@ ka.exports;
19425
19425
  }
19426
19426
  n.exports = Qg;
19427
19427
  })(ka, ka.exports);
19428
- var CS = ka.exports;
19429
- const kS = /* @__PURE__ */ ri(CS);
19430
- var OS = 1 / 0, PS = 9007199254740991, ES = "[object Arguments]", AS = "[object Function]", RS = "[object GeneratorFunction]", LS = "[object Symbol]", IS = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, NS = typeof self == "object" && self && self.Object === Object && self, FS = IS || NS || Function("return this")();
19431
- function US(n, t, e) {
19428
+ var kS = ka.exports;
19429
+ const OS = /* @__PURE__ */ ri(kS);
19430
+ var PS = 1 / 0, ES = 9007199254740991, AS = "[object Arguments]", RS = "[object Function]", LS = "[object GeneratorFunction]", IS = "[object Symbol]", NS = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, FS = typeof self == "object" && self && self.Object === Object && self, US = NS || FS || Function("return this")();
19431
+ function WS(n, t, e) {
19432
19432
  switch (e.length) {
19433
19433
  case 0:
19434
19434
  return n.call(t);
@@ -19441,87 +19441,87 @@ function US(n, t, e) {
19441
19441
  }
19442
19442
  return n.apply(t, e);
19443
19443
  }
19444
- function WS(n, t) {
19444
+ function YS(n, t) {
19445
19445
  for (var e = -1, i = n ? n.length : 0, r = Array(i); ++e < i; )
19446
19446
  r[e] = t(n[e], e, n);
19447
19447
  return r;
19448
19448
  }
19449
- function YS(n, t) {
19449
+ function HS(n, t) {
19450
19450
  for (var e = -1, i = t.length, r = n.length; ++e < i; )
19451
19451
  n[r + e] = t[e];
19452
19452
  return n;
19453
19453
  }
19454
- var $l = Object.prototype, HS = $l.hasOwnProperty, Bl = $l.toString, Od = FS.Symbol, zS = $l.propertyIsEnumerable, Pd = Od ? Od.isConcatSpreadable : void 0, Ed = Math.max;
19454
+ var $l = Object.prototype, zS = $l.hasOwnProperty, Bl = $l.toString, Od = US.Symbol, $S = $l.propertyIsEnumerable, Pd = Od ? Od.isConcatSpreadable : void 0, Ed = Math.max;
19455
19455
  function $h(n, t, e, i, r) {
19456
19456
  var a = -1, s = n.length;
19457
- for (e || (e = qS), r || (r = []); ++a < s; ) {
19457
+ for (e || (e = VS), r || (r = []); ++a < s; ) {
19458
19458
  var o = n[a];
19459
- t > 0 && e(o) ? t > 1 ? $h(o, t - 1, e, i, r) : YS(r, o) : i || (r[r.length] = o);
19459
+ t > 0 && e(o) ? t > 1 ? $h(o, t - 1, e, i, r) : HS(r, o) : i || (r[r.length] = o);
19460
19460
  }
19461
19461
  return r;
19462
19462
  }
19463
- function $S(n, t) {
19464
- return n = Object(n), BS(n, t, function(e, i) {
19463
+ function BS(n, t) {
19464
+ return n = Object(n), jS(n, t, function(e, i) {
19465
19465
  return i in n;
19466
19466
  });
19467
19467
  }
19468
- function BS(n, t, e) {
19468
+ function jS(n, t, e) {
19469
19469
  for (var i = -1, r = t.length, a = {}; ++i < r; ) {
19470
19470
  var s = t[i], o = n[s];
19471
19471
  e(o, s) && (a[s] = o);
19472
19472
  }
19473
19473
  return a;
19474
19474
  }
19475
- function jS(n, t) {
19475
+ function qS(n, t) {
19476
19476
  return t = Ed(t === void 0 ? n.length - 1 : t, 0), function() {
19477
19477
  for (var e = arguments, i = -1, r = Ed(e.length - t, 0), a = Array(r); ++i < r; )
19478
19478
  a[i] = e[t + i];
19479
19479
  i = -1;
19480
19480
  for (var s = Array(t + 1); ++i < t; )
19481
19481
  s[i] = e[i];
19482
- return s[t] = a, US(n, this, s);
19482
+ return s[t] = a, WS(n, this, s);
19483
19483
  };
19484
19484
  }
19485
- function qS(n) {
19486
- return GS(n) || XS(n) || !!(Pd && n && n[Pd]);
19487
- }
19488
19485
  function VS(n) {
19489
- if (typeof n == "string" || eC(n))
19490
- return n;
19491
- var t = n + "";
19492
- return t == "0" && 1 / n == -OS ? "-0" : t;
19486
+ return KS(n) || GS(n) || !!(Pd && n && n[Pd]);
19493
19487
  }
19494
19488
  function XS(n) {
19495
- return ZS(n) && HS.call(n, "callee") && (!zS.call(n, "callee") || Bl.call(n) == ES);
19489
+ if (typeof n == "string" || nC(n))
19490
+ return n;
19491
+ var t = n + "";
19492
+ return t == "0" && 1 / n == -PS ? "-0" : t;
19496
19493
  }
19497
- var GS = Array.isArray;
19498
- function KS(n) {
19499
- return n != null && JS(n.length) && !QS(n);
19494
+ function GS(n) {
19495
+ return QS(n) && zS.call(n, "callee") && (!$S.call(n, "callee") || Bl.call(n) == AS);
19500
19496
  }
19497
+ var KS = Array.isArray;
19501
19498
  function ZS(n) {
19502
- return Bh(n) && KS(n);
19499
+ return n != null && tC(n.length) && !JS(n);
19503
19500
  }
19504
19501
  function QS(n) {
19505
- var t = tC(n) ? Bl.call(n) : "";
19506
- return t == AS || t == RS;
19502
+ return Bh(n) && ZS(n);
19507
19503
  }
19508
19504
  function JS(n) {
19509
- return typeof n == "number" && n > -1 && n % 1 == 0 && n <= PS;
19505
+ var t = eC(n) ? Bl.call(n) : "";
19506
+ return t == RS || t == LS;
19510
19507
  }
19511
19508
  function tC(n) {
19509
+ return typeof n == "number" && n > -1 && n % 1 == 0 && n <= ES;
19510
+ }
19511
+ function eC(n) {
19512
19512
  var t = typeof n;
19513
19513
  return !!n && (t == "object" || t == "function");
19514
19514
  }
19515
19515
  function Bh(n) {
19516
19516
  return !!n && typeof n == "object";
19517
19517
  }
19518
- function eC(n) {
19519
- return typeof n == "symbol" || Bh(n) && Bl.call(n) == LS;
19518
+ function nC(n) {
19519
+ return typeof n == "symbol" || Bh(n) && Bl.call(n) == IS;
19520
19520
  }
19521
- var nC = jS(function(n, t) {
19522
- return n == null ? {} : $S(n, WS($h(t, 1), VS));
19523
- }), iC = nC;
19524
- const rC = /* @__PURE__ */ ri(iC);
19521
+ var iC = qS(function(n, t) {
19522
+ return n == null ? {} : BS(n, YS($h(t, 1), XS));
19523
+ }), rC = iC;
19524
+ const aC = /* @__PURE__ */ ri(rC);
19525
19525
  var jh = { exports: {} };
19526
19526
  (function(n, t) {
19527
19527
  (function(e, i) {
@@ -19594,7 +19594,7 @@ var jh = { exports: {} };
19594
19594
  s.saveAs = l.saveAs = l, n.exports = l;
19595
19595
  });
19596
19596
  })(jh);
19597
- var aC = jh.exports, qh = { exports: {} };
19597
+ var sC = jh.exports, qh = { exports: {} };
19598
19598
  /* @license
19599
19599
  Papa Parse
19600
19600
  v5.4.1
@@ -20145,8 +20145,8 @@ License: MIT
20145
20145
  }), (d.prototype = Object.create(c.prototype)).constructor = d, (f.prototype = Object.create(c.prototype)).constructor = f, (h.prototype = Object.create(h.prototype)).constructor = h, (g.prototype = Object.create(c.prototype)).constructor = g, l;
20146
20146
  });
20147
20147
  })(qh);
20148
- var sC = qh.exports;
20149
- const oC = ["id"], lC = /* @__PURE__ */ pe({
20148
+ var oC = qh.exports;
20149
+ const lC = ["id"], uC = /* @__PURE__ */ pe({
20150
20150
  __name: "VueJsonCsv",
20151
20151
  props: {
20152
20152
  data: {
@@ -20211,12 +20211,12 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20211
20211
  const c = i.labels;
20212
20212
  if (typeof i.fields !== pi.Object)
20213
20213
  throw new Error("Labels needs to be a object containing key / value pairs.");
20214
- return typeof c === pi.Object ? (d) => kS(d, (f, h) => c[h] || h) : (d) => d;
20214
+ return typeof c === pi.Object ? (d) => OS(d, (f, h) => c[h] || h) : (d) => d;
20215
20215
  }, o = () => {
20216
20216
  const c = i.fields;
20217
20217
  if (typeof i.fields !== pi.Object && !Array.isArray(c))
20218
20218
  throw new Error("Fields needs to be an array of strings.");
20219
- return Array.isArray(c) ? (d) => rC(d, c) : (d) => d;
20219
+ return Array.isArray(c) ? (d) => aC(d, c) : (d) => d;
20220
20220
  }, l = () => {
20221
20221
  if (typeof i.fields === pi.Undefined && typeof i.labels === pi.Undefined)
20222
20222
  return i.data;
@@ -20228,7 +20228,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20228
20228
  return;
20229
20229
  }
20230
20230
  e("export-started", a.value);
20231
- let c = sC.unparse(a.value, Object.assign({
20231
+ let c = oC.unparse(a.value, Object.assign({
20232
20232
  delimiter: i.delimiter,
20233
20233
  encoding: i.encoding
20234
20234
  }));
@@ -20237,7 +20237,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20237
20237
  const d = new Blob([c], {
20238
20238
  type: "text/csv;charset=" + i.encoding
20239
20239
  });
20240
- aC.saveAs(d, i.filename);
20240
+ sC.saveAs(d, i.filename);
20241
20241
  }
20242
20242
  };
20243
20243
  return (c, d) => (tt(), yt("div", {
@@ -20248,9 +20248,9 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20248
20248
  Qo(c.$slots, "default", {}, () => [
20249
20249
  We("Download " + ft(n.filename), 1)
20250
20250
  ])
20251
- ], 8, oC));
20251
+ ], 8, lC));
20252
20252
  }
20253
- }), uC = /* @__PURE__ */ pe({
20253
+ }), cC = /* @__PURE__ */ pe({
20254
20254
  __name: "DownloadCsv",
20255
20255
  props: {
20256
20256
  rows: {},
@@ -20260,7 +20260,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20260
20260
  setup(n) {
20261
20261
  const t = n, e = B(() => Object.keys(t.headers));
20262
20262
  return (i, r) => (tt(), yt("div", null, [
20263
- ce(lC, {
20263
+ ce(uC, {
20264
20264
  data: i.rows,
20265
20265
  fields: e.value,
20266
20266
  filename: i.filename,
@@ -20273,14 +20273,14 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20273
20273
  }, 8, ["data", "fields", "filename", "labels"])
20274
20274
  ]));
20275
20275
  }
20276
- }), cC = { class: "kong-ui-public-csv-export-modal" }, dC = {
20276
+ }), dC = { class: "kong-ui-public-csv-export-modal" }, fC = {
20277
20277
  key: 0,
20278
20278
  class: "selected-range"
20279
- }, fC = {
20279
+ }, hC = {
20280
20280
  key: 1,
20281
20281
  class: "text-muted",
20282
20282
  tag: "span"
20283
- }, Ad = 3, hC = /* @__PURE__ */ pe({
20283
+ }, Ad = 3, gC = /* @__PURE__ */ pe({
20284
20284
  __name: "CsvExportModal",
20285
20285
  props: {
20286
20286
  filename: {},
@@ -20347,7 +20347,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20347
20347
  l.value++;
20348
20348
  }), (g, b) => {
20349
20349
  const m = je("KEmptyState"), p = je("KTable"), y = je("KButton"), _ = je("KPrompt");
20350
- return tt(), yt("div", cC, [
20350
+ return tt(), yt("div", dC, [
20351
20351
  ce(_, {
20352
20352
  class: "vitals-report",
20353
20353
  "data-testid": "csv-export-modal",
@@ -20362,7 +20362,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20362
20362
  var x;
20363
20363
  return [
20364
20364
  gt("div", null, [
20365
- o.value ? (tt(), yt("div", dC, [
20365
+ o.value ? (tt(), yt("div", fC, [
20366
20366
  gt("p", null, ft(g.modalDescription ? g.modalDescription : dt(e).t("csvExport.exportDescription")), 1),
20367
20367
  gt("p", null, ft(dt(e).t("csvExport.exportTimeRange")) + ": " + ft(g.selectedRange), 1)
20368
20368
  ])) : te("", !0),
@@ -20392,7 +20392,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20392
20392
  ]),
20393
20393
  _: 1
20394
20394
  }, 8, ["fetcher-cache-key", "headers"]),
20395
- !s.value && o.value ? (tt(), yt("div", fC, ft(c.value), 1)) : te("", !0)
20395
+ !s.value && o.value ? (tt(), yt("div", hC, ft(c.value), 1)) : te("", !0)
20396
20396
  ])
20397
20397
  ];
20398
20398
  }),
@@ -20407,7 +20407,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20407
20407
  ]),
20408
20408
  _: 1
20409
20409
  }),
20410
- ce(uC, {
20410
+ ce(cC, {
20411
20411
  class: "vitals-report-export-button",
20412
20412
  filename: a,
20413
20413
  headers: f.value.csvHeaders,
@@ -20450,7 +20450,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20450
20450
  beforeDestroy() {
20451
20451
  delete this.clickedSegment;
20452
20452
  }
20453
- }, gC = /* @__PURE__ */ pe({
20453
+ }, pC = /* @__PURE__ */ pe({
20454
20454
  __name: "TimeSeriesChart",
20455
20455
  props: {
20456
20456
  chartData: {
@@ -20585,7 +20585,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20585
20585
  class: "chart-container",
20586
20586
  onClick: x[0] || (x[0] = (M) => y())
20587
20587
  }, [
20588
- n.type === dt(he).TIMESERIES_LINE ? (tt(), ue(dt(TS), {
20588
+ n.type === dt(he).TIMESERIES_LINE ? (tt(), ue(dt(MS), {
20589
20589
  key: 0,
20590
20590
  ref_key: "chartInstance",
20591
20591
  ref: i,
@@ -20594,7 +20594,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20594
20594
  "data-testid": "time-series-line-chart",
20595
20595
  options: dt(h),
20596
20596
  plugins: f.value
20597
- }, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === dt(he).TIMESERIES_BAR ? (tt(), ue(dt(wS), {
20597
+ }, null, 8, ["chart-id", "data", "options", "plugins"])) : n.type === dt(he).TIMESERIES_BAR ? (tt(), ue(dt(TS), {
20598
20598
  key: 1,
20599
20599
  ref_key: "chartInstance",
20600
20600
  ref: i,
@@ -20629,16 +20629,16 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20629
20629
  }, null, 8, ["id", "chart-instance", "items"])
20630
20630
  ], 2));
20631
20631
  }
20632
- }), pC = /* @__PURE__ */ bn(gC, [["__scopeId", "data-v-72ca9034"]]), mC = { class: "analytics-chart-shell" }, vC = { class: "chart-header" }, bC = {
20632
+ }), mC = /* @__PURE__ */ bn(pC, [["__scopeId", "data-v-72ca9034"]]), vC = { class: "analytics-chart-shell" }, bC = { class: "chart-header" }, yC = {
20633
20633
  key: 0,
20634
20634
  class: "chart-title"
20635
- }, yC = { class: "chart-header-icons-wrapper" }, xC = {
20635
+ }, xC = { class: "chart-header-icons-wrapper" }, _C = {
20636
20636
  key: 1,
20637
20637
  class: "chart-export-button"
20638
- }, _C = {
20638
+ }, wC = {
20639
20639
  key: 1,
20640
20640
  class: "analytics-chart-parent"
20641
- }, wC = /* @__PURE__ */ pe({
20641
+ }, TC = /* @__PURE__ */ pe({
20642
20642
  __name: "AnalyticsChart",
20643
20643
  props: {
20644
20644
  allowCsvExport: {
@@ -20781,10 +20781,10 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20781
20781
  };
20782
20782
  return ru("showLegendValues", d), ru("legendPosition", It(t, "legendPosition")), (R, z) => {
20783
20783
  const L = je("KTooltip"), nt = je("KButton"), H = je("KEmptyState");
20784
- return tt(), yt("div", mC, [
20785
- gt("div", vC, [
20786
- n.chartTitle ? (tt(), yt("div", bC, ft(n.chartTitle), 1)) : te("", !0),
20787
- gt("div", yC, [
20784
+ return tt(), yt("div", vC, [
20785
+ gt("div", bC, [
20786
+ n.chartTitle ? (tt(), yt("div", yC, ft(n.chartTitle), 1)) : te("", !0),
20787
+ gt("div", xC, [
20788
20788
  T.value && g.value && h.value ? (tt(), ue(L, {
20789
20789
  key: 0,
20790
20790
  class: "tooltip",
@@ -20804,7 +20804,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20804
20804
  _: 1
20805
20805
  })) : te("", !0)
20806
20806
  ]),
20807
- n.allowCsvExport && T.value ? (tt(), yt("div", xC, [
20807
+ n.allowCsvExport && T.value ? (tt(), yt("div", _C, [
20808
20808
  ce(nt, {
20809
20809
  appearance: "tertiary",
20810
20810
  class: "chart-export-button-display",
@@ -20817,7 +20817,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20817
20817
  _: 1
20818
20818
  })
20819
20819
  ])) : te("", !0),
20820
- n.allowCsvExport && T.value && E.value ? (tt(), ue(hC, {
20820
+ n.allowCsvExport && T.value && E.value ? (tt(), ue(gC, {
20821
20821
  key: 2,
20822
20822
  "chart-data": s.value,
20823
20823
  filename: r.value,
@@ -20825,8 +20825,8 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20825
20825
  onToggleModal: W
20826
20826
  }, null, 8, ["chart-data", "filename", "selected-range"])) : te("", !0)
20827
20827
  ]),
20828
- T.value ? (tt(), yt("div", _C, [
20829
- p.value ? (tt(), ue(pC, {
20828
+ T.value ? (tt(), yt("div", wC, [
20829
+ p.value ? (tt(), ue(mC, {
20830
20830
  key: 0,
20831
20831
  "chart-data": o.value,
20832
20832
  "chart-legend-sort-fn": n.chartOptions.chartLegendSortFn,
@@ -20844,7 +20844,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20844
20844
  "time-range-sec": l.value,
20845
20845
  "tooltip-title": n.tooltipTitle,
20846
20846
  type: n.chartOptions.type
20847
- }, null, 8, ["chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dataset-colors", "dimension-axes-title", "fill", "granularity", "legend-values", "metric-axes-title", "metric-unit", "stacked", "synthetics-data-key", "time-range-ms", "time-range-sec", "tooltip-title", "type"])) : m.value ? (tt(), ue(hS, {
20847
+ }, null, 8, ["chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dataset-colors", "dimension-axes-title", "fill", "granularity", "legend-values", "metric-axes-title", "metric-unit", "stacked", "synthetics-data-key", "time-range-ms", "time-range-sec", "tooltip-title", "type"])) : m.value ? (tt(), ue(gS, {
20848
20848
  key: 1,
20849
20849
  annotations: n.showAnnotations,
20850
20850
  "chart-data": o.value,
@@ -20860,7 +20860,7 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20860
20860
  "synthetics-data-key": n.syntheticsDataKey,
20861
20861
  "tooltip-title": n.tooltipTitle,
20862
20862
  onHeightUpdate: a
20863
- }, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-title"])) : y.value ? (tt(), ue(SS, {
20863
+ }, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-title"])) : y.value ? (tt(), ue(CS, {
20864
20864
  key: 2,
20865
20865
  "chart-data": o.value,
20866
20866
  "dataset-colors": n.chartOptions.chartDatasetColors,
@@ -20890,14 +20890,14 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20890
20890
  ]);
20891
20891
  };
20892
20892
  }
20893
- }), ZC = /* @__PURE__ */ bn(wC, [["__scopeId", "data-v-6fbaf265"]]), TC = {
20893
+ }), QC = /* @__PURE__ */ bn(TC, [["__scopeId", "data-v-6fbaf265"]]), MC = {
20894
20894
  class: "chart-parent",
20895
20895
  "data-testid": "doughnut-chart-parent"
20896
- }, MC = { class: "chart-totals-flex" }, DC = {
20896
+ }, DC = { class: "chart-totals-flex" }, SC = {
20897
20897
  key: 1,
20898
20898
  class: "metric-small",
20899
20899
  "data-testid": "doughnut-chart-total"
20900
- }, SC = /* @__PURE__ */ pe({
20900
+ }, CC = /* @__PURE__ */ pe({
20901
20901
  __name: "GaugeChart",
20902
20902
  props: {
20903
20903
  chartData: {
@@ -20967,15 +20967,15 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20967
20967
  var h;
20968
20968
  return `color: ${(h = r == null ? void 0 : r.value[0]) == null ? void 0 : h.backgroundColor[t.numerator]}`;
20969
20969
  }), d = B(() => [Xi.Full, Xi.SingleMetric].includes(t.metricDisplay)), f = B(() => t.metricDisplay === Xi.Full);
20970
- return (h, g) => (tt(), yt("div", TC, [
20971
- gt("div", MC, [
20970
+ return (h, g) => (tt(), yt("div", MC, [
20971
+ gt("div", DC, [
20972
20972
  d.value ? (tt(), yt("div", {
20973
20973
  key: 0,
20974
20974
  class: "metric-large",
20975
20975
  "data-testid": "doughnut-chart-metric",
20976
20976
  style: Je(c.value)
20977
20977
  }, ft(l.value), 5)) : te("", !0),
20978
- f.value ? (tt(), yt("div", DC, ft(dt(e).t("total")) + ": " + ft(u.value), 1)) : te("", !0)
20978
+ f.value ? (tt(), yt("div", SC, ft(dt(e).t("total")) + ": " + ft(u.value), 1)) : te("", !0)
20979
20979
  ]),
20980
20980
  gt("div", {
20981
20981
  class: "chart-container",
@@ -20991,10 +20991,10 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
20991
20991
  ], 4)
20992
20992
  ]));
20993
20993
  }
20994
- }), CC = /* @__PURE__ */ bn(SC, [["__scopeId", "data-v-5871cb7a"]]), kC = { class: "simple-chart-shell" }, OC = {
20994
+ }), kC = /* @__PURE__ */ bn(CC, [["__scopeId", "data-v-5871cb7a"]]), OC = { class: "simple-chart-shell" }, PC = {
20995
20995
  key: 1,
20996
20996
  class: "analytics-chart-parent"
20997
- }, PC = /* @__PURE__ */ pe({
20997
+ }, EC = /* @__PURE__ */ pe({
20998
20998
  __name: "SimpleChart",
20999
20999
  props: {
21000
21000
  chartData: {
@@ -21044,9 +21044,9 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21044
21044
  }), a = B(() => t.chartOptions.type === Tl.GAUGE), s = B(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), o = B(() => t.chartData && t.chartData.meta && t.chartData.records.length);
21045
21045
  return (l, u) => {
21046
21046
  const c = je("KEmptyState");
21047
- return tt(), yt("div", kC, [
21048
- o.value ? (tt(), yt("div", OC, [
21049
- a.value ? (tt(), ue(CC, {
21047
+ return tt(), yt("div", OC, [
21048
+ o.value ? (tt(), yt("div", PC, [
21049
+ a.value ? (tt(), ue(kC, {
21050
21050
  key: 0,
21051
21051
  "chart-data": i.value,
21052
21052
  "dataset-colors": n.chartOptions.chartDatasetColors,
@@ -21073,20 +21073,20 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21073
21073
  ]);
21074
21074
  };
21075
21075
  }
21076
- }), QC = /* @__PURE__ */ bn(PC, [["__scopeId", "data-v-f014a616"]]), EC = {
21076
+ }), JC = /* @__PURE__ */ bn(EC, [["__scopeId", "data-v-f014a616"]]), AC = {
21077
21077
  class: "top-n-card-title",
21078
21078
  "data-testid": "top-n-card-title"
21079
- }, AC = {
21079
+ }, RC = {
21080
21080
  class: "top-n-card-description",
21081
21081
  "data-testid": "top-n-card-description"
21082
- }, RC = {
21082
+ }, LC = {
21083
21083
  key: 3,
21084
21084
  class: "top-n-table",
21085
21085
  "data-testid": "top-n-table"
21086
- }, LC = { class: "table-headings" }, IC = { class: "table-row" }, NC = { class: "column-1" }, FC = { class: "column-2" }, UC = {
21086
+ }, IC = { class: "table-headings" }, NC = { class: "table-row" }, FC = { class: "column-1" }, UC = { class: "column-2" }, WC = {
21087
21087
  class: "table-body",
21088
21088
  "data-testid": "top-n-data"
21089
- }, WC = ["data-testid"], YC = { class: "column-1" }, HC = { class: "column-2" }, zC = /* @__PURE__ */ pe({
21089
+ }, YC = ["data-testid"], HC = { class: "column-1" }, zC = { class: "column-2" }, $C = /* @__PURE__ */ pe({
21090
21090
  __name: "TopNTable",
21091
21091
  props: {
21092
21092
  title: {
@@ -21168,20 +21168,20 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21168
21168
  key: 1,
21169
21169
  "table-columns": 2,
21170
21170
  type: "table"
21171
- })) : r.value ? (tt(), yt("div", RC, [
21172
- gt("div", LC, [
21173
- gt("div", IC, [
21174
- gt("div", NC, ft(dt(e).t("topNTable.nameLabel")), 1),
21175
- gt("div", FC, ft(l.value), 1)
21171
+ })) : r.value ? (tt(), yt("div", LC, [
21172
+ gt("div", IC, [
21173
+ gt("div", NC, [
21174
+ gt("div", FC, ft(dt(e).t("topNTable.nameLabel")), 1),
21175
+ gt("div", UC, ft(l.value), 1)
21176
21176
  ])
21177
21177
  ]),
21178
- gt("div", UC, [
21178
+ gt("div", WC, [
21179
21179
  (tt(!0), yt(la, null, Ko(i.value, (_, x) => (tt(), yt("div", {
21180
21180
  key: `entry-${x}`,
21181
21181
  class: "table-row",
21182
21182
  "data-testid": `row-${c(_)}`
21183
21183
  }, [
21184
- gt("div", YC, [
21184
+ gt("div", HC, [
21185
21185
  Qo(g.$slots, "name", {
21186
21186
  record: {
21187
21187
  id: c(_),
@@ -21193,8 +21193,8 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21193
21193
  We(ft(d(_)), 1)
21194
21194
  ], !0)
21195
21195
  ]),
21196
- gt("div", HC, "   " + ft(h(_)), 1)
21197
- ], 8, WC))), 128))
21196
+ gt("div", zC, "   " + ft(h(_)), 1)
21197
+ ], 8, YC))), 128))
21198
21198
  ])
21199
21199
  ])) : (tt(), ue(m, {
21200
21200
  key: 2,
@@ -21214,21 +21214,21 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21214
21214
  n.title ? {
21215
21215
  name: "title",
21216
21216
  fn: qt(() => [
21217
- gt("div", EC, ft(n.title), 1)
21217
+ gt("div", AC, ft(n.title), 1)
21218
21218
  ]),
21219
21219
  key: "0"
21220
21220
  } : void 0,
21221
21221
  n.description ? {
21222
21222
  name: "actions",
21223
21223
  fn: qt(() => [
21224
- gt("div", AC, ft(n.description), 1)
21224
+ gt("div", RC, ft(n.description), 1)
21225
21225
  ]),
21226
21226
  key: "1"
21227
21227
  } : void 0
21228
21228
  ]), 1024);
21229
21229
  };
21230
21230
  }
21231
- }), JC = /* @__PURE__ */ bn(zC, [["__scopeId", "data-v-bd78642f"]]), Ld = "#e0e4ea", $C = {
21231
+ }), tk = /* @__PURE__ */ bn($C, [["__scopeId", "data-v-bd78642f"]]), Ld = "#e0e4ea", BC = {
21232
21232
  100: ["#c8e2fd", "#80bfff", "#4da6ff", "#1a8cff", "#0072e5", "#0059b2"],
21233
21233
  200: ["#ceedd2", "#9edca6", "#89d595", "#6fcc83", "#44c26b", "#0bb652", "#0ca84a", "#169643", "#196e33", "#1b572a"],
21234
21234
  300: ["#fff4db", "#ffe9b8", "#ffe2a1", "#ffd982", "#ffd062", "#fdc53b", "#f4bb1e", "#e8b00b", "#d9a30f", "#c89407"],
@@ -21236,11 +21236,11 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21236
21236
  500: ["#ffd5d5", "#ffb6b6", "#ff9d9d", "#ff8484", "#ff6a6a", "#ff4545", "#fb1f1f", "#e90b0b", "#d40202", "#be0202"]
21237
21237
  }, Hi = (n, t) => {
21238
21238
  let e = 1;
21239
- const i = $C[n], r = /* @__PURE__ */ new Map();
21239
+ const i = BC[n], r = /* @__PURE__ */ new Map();
21240
21240
  for (const a of t)
21241
21241
  r.set(a, i[e]), e = e % (i.length - 1) + 1;
21242
21242
  return r.set(-1, i[0]), r;
21243
- }, BC = /* @__PURE__ */ new Map([
21243
+ }, jC = /* @__PURE__ */ new Map([
21244
21244
  [100, Hi("100", [100, 101, 102, 103])],
21245
21245
  [200, Hi("200", [200, 201, 202, 203, 204, 205, 206, 207, 208, 226])],
21246
21246
  [300, Hi("300", [300, 301, 302, 303, 304, 305, 307, 308])],
@@ -21276,33 +21276,33 @@ const oC = ["id"], lC = /* @__PURE__ */ pe({
21276
21276
  451
21277
21277
  ])],
21278
21278
  [500, Hi("500", [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511])]
21279
- ]), jC = (n) => {
21280
- const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = BC.get(e);
21279
+ ]), qC = (n) => {
21280
+ const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = jC.get(e);
21281
21281
  return i === void 0 ? Ld : i.get(t) ?? i.get(-1) ?? Ld;
21282
- }, tk = (n) => {
21283
- const t = jC(n);
21282
+ }, ek = (n) => {
21283
+ const t = qC(n);
21284
21284
  return { solid: t, light: t };
21285
21285
  };
21286
21286
  export {
21287
- ZC as AnalyticsChart,
21287
+ QC as AnalyticsChart,
21288
21288
  Kt as ChartLegendPosition,
21289
21289
  Xi as ChartMetricDisplay,
21290
21290
  he as ChartTypes,
21291
21291
  Tl as ChartTypesSimple,
21292
- hC as CsvExportModal,
21292
+ gC as CsvExportModal,
21293
21293
  G1 as DECIMAL_DISPLAY,
21294
21294
  Lo as MAX_LABEL_LENGTH,
21295
- QC as SimpleChart,
21296
- JC as TopNTable,
21295
+ JC as SimpleChart,
21296
+ tk as TopNTable,
21297
21297
  pi as ValidType,
21298
21298
  K1 as accessibleGrey,
21299
- BC as codesInSpec,
21299
+ jC as codesInSpec,
21300
21300
  Ma as darkenColor,
21301
21301
  Ve as datavisPalette,
21302
21302
  Ro as formatTime,
21303
21303
  Ld as lightGrey,
21304
21304
  rr as lookupDatavisColor,
21305
- tk as lookupStatusCodeCategoryColor,
21306
- jC as lookupStatusCodeColor,
21305
+ ek as lookupStatusCodeCategoryColor,
21306
+ qC as lookupStatusCodeColor,
21307
21307
  Ao as numberFormatter
21308
21308
  };