@splunk/charting-bundle 28.2.1 → 28.3.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/LICENSE.md CHANGED
@@ -408,7 +408,6 @@ This Configuration and Implementation Services Exhibit forms a part of the Splun
408
408
  8. **Insurance**
409
409
 
410
410
  Throughout any period of C&I Services we perform for you, we will maintain insurance policies in the types and amounts described below at our own expense:
411
-
412
411
  - Commercial General Liability Insurance with a limit of not less than $1,000,000 per occurrence and a general aggregate limit of not less than $2,000,000.
413
412
 
414
413
  - Business Auto Insurance with a limit of not less than $1,000,000 combined single limit. Such Insurance will cover liability arising out of "hired and non-owned" automobiles.
package/index.js CHANGED
@@ -40297,10 +40297,10 @@
40297
40297
  * @returns {String}
40298
40298
  * @public
40299
40299
  */ function i() {
40300
- var t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
40301
- return t.replace(/[xy]/g, (function(t) {
40302
- var e = Math.floor(Math.random() * 16);
40303
- var i = t === "x" ? e : e % 4 + 8;
40300
+ const t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
40301
+ return t.replace(/[xy]/g, (t => {
40302
+ const e = Math.floor(Math.random() * 16);
40303
+ const i = t === "x" ? e : e % 4 + 8;
40304
40304
  return i.toString(16);
40305
40305
  }));
40306
40306
  }
@@ -40311,10 +40311,9 @@
40311
40311
  * letters, digits, hyphens, and underscores.
40312
40312
  * @returns {String}
40313
40313
  * @public
40314
- */ function n() {
40315
- var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "id";
40314
+ */ function n(t = "id") {
40316
40315
  if (t.match(/^[a-zA-Z][\w-]*$/)) {
40317
- return "".concat(t, "-").concat(i());
40316
+ return `${t}-${i()}`;
40318
40317
  }
40319
40318
  throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores");
40320
40319
  }
@@ -54063,11 +54062,10 @@
54063
54062
  /***/ 7664:
54064
54063
  /***/ (t, e) => {
54065
54064
  "use strict";
54066
- Object.defineProperty(e, "__esModule", {
54065
+ /* eslint-disable import/prefer-default-export */ Object.defineProperty(e, "__esModule", {
54067
54066
  value: true
54068
54067
  });
54069
54068
  e.getEntry = i;
54070
- /* eslint-disable import/prefer-default-export */
54071
54069
  /**
54072
54070
  * Retrieves the cookie value for the reference name passed in.
54073
54071
  * This can be `null` if the token or the reference name is not found in the cookie.
@@ -54087,11 +54085,11 @@
54087
54085
  if (typeof document === "undefined") {
54088
54086
  return null;
54089
54087
  }
54090
- var e = new RegExp("(^|; ?)".concat(t, "=([^;]+)"));
54091
- var i = null;
54088
+ const e = new RegExp(`(^|; ?)${t}=([^;]+)`);
54089
+ let i = null;
54092
54090
  try {
54093
- var n = document.cookie.match(e);
54094
- i = n ? n[2] : null;
54091
+ const t = document.cookie.match(e);
54092
+ i = t ? t[2] : null;
54095
54093
  } catch (t) {
54096
54094
  // no-op, let `value` remain null
54097
54095
  }
@@ -85667,18 +85665,14 @@
85667
85665
  });
85668
85666
  },
85669
85667
  addPercentToName: function t(e, i) {
85670
- if (f.normalizeBoolean(this.properties["chart.showPercent"])) {
85671
- var n = l.default.format_percent(i / 100);
85672
- if (Number(this.properties["chart.precision"])) {
85673
- var r = Number(this.properties["chart.precision"]);
85674
- if (!isNaN(r) && r >= 0) {
85675
- n = (i / 100).toFixed(r);
85676
- return e + ", " + n + "%";
85677
- }
85678
- }
85679
- return e + ", " + n;
85668
+ if (!f.normalizeBoolean(this.properties["chart.showPercent"])) {
85669
+ return e;
85680
85670
  }
85681
- return e;
85671
+ var n = Number(this.properties["chart.precision"]);
85672
+ if (!isNaN(n) && n >= 0) {
85673
+ return e + ", " + i.toFixed(n) + "%";
85674
+ }
85675
+ return e + ", " + l.default.format_percent(i / 100);
85682
85676
  },
85683
85677
  formatDataLabel: function t(e) {
85684
85678
  return this.addPercentToName(e.point.name, e.percentage);