@carbon/charts-vue 1.13.7 → 1.13.10

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.13.10 (2023-12-18)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
15
+ ## 1.13.9 (2023-12-06)
16
+
17
+ **Note:** Version bump only for package @carbon/charts-vue
18
+
19
+ # Change Log
20
+
21
+ All notable changes to this project will be documented in this file. See
22
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
23
+
24
+ ## 1.13.8 (2023-11-15)
25
+
26
+ **Note:** Version bump only for package @carbon/charts-vue
27
+
28
+ # Change Log
29
+
30
+ All notable changes to this project will be documented in this file. See
31
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
32
+
6
33
  ## 1.13.7 (2023-11-01)
7
34
 
8
35
  **Note:** Version bump only for package @carbon/charts-vue
package/dist/index.mjs CHANGED
@@ -7973,7 +7973,7 @@ function Gn(e, t) {
7973
7973
  }
7974
7974
  var xO = Gn(Ce, "WeakMap");
7975
7975
  const tl = xO;
7976
- var yh = Object.create, bO = function() {
7976
+ var yh = Object.create, bO = /* @__PURE__ */ function() {
7977
7977
  function e() {
7978
7978
  }
7979
7979
  return function(t) {
@@ -8153,7 +8153,7 @@ var XO = "[object Arguments]";
8153
8153
  function bh(e) {
8154
8154
  return Ne(e) && Vn(e) == XO;
8155
8155
  }
8156
- var ng = Object.prototype, ZO = ng.hasOwnProperty, KO = ng.propertyIsEnumerable, QO = bh(function() {
8156
+ var ng = Object.prototype, ZO = ng.hasOwnProperty, KO = ng.propertyIsEnumerable, QO = bh(/* @__PURE__ */ function() {
8157
8157
  return arguments;
8158
8158
  }()) ? bh : function(e) {
8159
8159
  return Ne(e) && ZO.call(e, "callee") && !KO.call(e, "callee");
@@ -10046,7 +10046,7 @@ class Ue {
10046
10046
  getStackKeys({ bins: t = null, groups: n = null } = { bins: null, groups: null }) {
10047
10047
  const r = this.getOptions(), i = this.getDisplayData(n);
10048
10048
  let s;
10049
- t ? s = t.map((l) => `${l.x0}-${l.x1}`) : s = wi(
10049
+ t ? s = t.map((l) => `${l.x0}:${l.x1}`) : s = wi(
10050
10050
  i.map((l) => {
10051
10051
  const c = this.services.cartesianScales.getDomainIdentifier(l);
10052
10052
  return l[c] instanceof Date ? jh(l[c]) : l[c] && typeof l[c].toString == "function" ? l[c].toString() : l[c];
@@ -10061,7 +10061,7 @@ class Ue {
10061
10061
  getDataValuesGroupedByKeys({ bins: t = null, groups: n = null }) {
10062
10062
  const r = this.getOptions(), { groupMapsTo: i } = r.data, s = this.getDisplayData(n), a = this.getDataGroupNames(), o = this.getStackKeys({ bins: t, groups: n });
10063
10063
  return t ? o.map((l) => {
10064
- const [c, u] = l.split("-"), d = { x0: c, x1: u }, h = t.find((f) => f.x0.toString() === c.toString());
10064
+ const [c, u] = l.split(":"), d = { x0: c, x1: u }, h = t.find((f) => f.x0.toString() === c.toString());
10065
10065
  return a.forEach((f) => {
10066
10066
  d[f] = h.filter(
10067
10067
  (p) => p[i] === f
@@ -10242,11 +10242,7 @@ class Ue {
10242
10242
  });
10243
10243
  const i = this.getOptions();
10244
10244
  let s = "myChart";
10245
- const a = b(
10246
- i,
10247
- "fileDownload",
10248
- "fileName"
10249
- );
10245
+ const a = b(i, "fileDownload", "fileName");
10250
10246
  typeof a == "function" ? s = a("csv") : typeof a == "string" && (s = a), this.services.files.downloadCSV(n, `${s}.csv`);
10251
10247
  }
10252
10248
  getTabularData(t) {
@@ -10283,9 +10279,7 @@ class Ue {
10283
10279
  const t = this.getOptions(), n = b(t, "color", "scale");
10284
10280
  Object.keys(n).forEach((r) => {
10285
10281
  this.allDataGroups.includes(r) || console.warn(`"${r}" does not exist in data groups.`);
10286
- }), this.allDataGroups.filter(
10287
- (r) => n[r]
10288
- ).forEach(
10282
+ }), this.allDataGroups.filter((r) => n[r]).forEach(
10289
10283
  (r) => this.colorScale[r] = n[r]
10290
10284
  );
10291
10285
  }
@@ -10305,7 +10299,7 @@ class Ue {
10305
10299
  this.colorClassNames = fa().range(o).domain(this.allDataGroups);
10306
10300
  }
10307
10301
  }
10308
- class zn extends Ue {
10302
+ let zn = class extends Ue {
10309
10303
  // can't be protected as it's used by two-dimensional-axes.ts
10310
10304
  constructor(t) {
10311
10305
  super(t), this.axisFlavor = oa.DEFAULT;
@@ -10408,8 +10402,7 @@ class zn extends Ue {
10408
10402
  sanitize(t) {
10409
10403
  return t = super.sanitize(t), t = this.sanitizeDateValues(t), t;
10410
10404
  }
10411
- }
10412
- let aA = class extends zn {
10405
+ }, aA = class extends zn {
10413
10406
  constructor(t) {
10414
10407
  super(t);
10415
10408
  }
@@ -10982,7 +10975,7 @@ var _A = /^\s+/;
10982
10975
  function EA(e) {
10983
10976
  return e && e.slice(0, wA(e) + 1).replace(_A, "");
10984
10977
  }
10985
- var Wh = 0 / 0, SA = /^[-+]0x[0-9a-f]+$/i, OA = /^0b[01]+$/i, TA = /^0o[0-7]+$/i, MA = parseInt;
10978
+ var Wh = NaN, SA = /^[-+]0x[0-9a-f]+$/i, OA = /^0b[01]+$/i, TA = /^0o[0-7]+$/i, MA = parseInt;
10986
10979
  function oi(e) {
10987
10980
  if (typeof e == "number")
10988
10981
  return e;
@@ -11060,7 +11053,7 @@ function DA(e, t) {
11060
11053
  const n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
11061
11054
  return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
11062
11055
  }
11063
- const kA = (() => {
11056
+ const kA = /* @__PURE__ */ (() => {
11064
11057
  let e = 0;
11065
11058
  const t = () => (
11066
11059
  // eslint-disable-next-line no-bitwise
@@ -20898,7 +20891,7 @@ let sU = class extends on {
20898
20891
  return [0, An(v, (y) => y.length)];
20899
20892
  } else if (r.limitDomainToBins) {
20900
20893
  const { bins: v } = this.model.getBinConfigurations(), y = this.model.getStackKeys({ bins: v });
20901
- return [y[0].split("-")[0], y[y.length - 1].split("-")[1]];
20894
+ return [y[0].split(":")[0], y[y.length - 1].split(":")[1]];
20902
20895
  }
20903
20896
  const o = this.model.getDisplayData(), { extendLinearDomainBy: l, mapsTo: c, percentage: u, thresholds: d } = r, { reference: h, compareTo: f } = gn.ratio;
20904
20897
  if (r.domain)
@@ -22094,7 +22087,7 @@ const hB = St(HU, "CcvAlluvialChart"), dB = St(GU, "CcvAreaChart"), fB = St(FU,
22094
22087
  kB,
22095
22088
  RB,
22096
22089
  IB
22097
- ], r3 = {
22090
+ ], i3 = {
22098
22091
  install(e, t) {
22099
22092
  for (const n of NB)
22100
22093
  (!t || t.includes(n.name)) && e.component(n.name, n);
@@ -22126,6 +22119,6 @@ export {
22126
22119
  RB as CcvTreemapChart,
22127
22120
  IB as CcvWordCloudChart,
22128
22121
  mB as ExperimentalCcvChoroplethChart,
22129
- r3 as default
22122
+ i3 as default
22130
22123
  };
22131
22124
  //# sourceMappingURL=index.mjs.map