@carbon/charts 1.11.3 → 1.11.5

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/{_baseEach-477c04db.js → _baseEach-326db134.js} +2 -2
  3. package/dist/{_baseEach-477c04db.js.map → _baseEach-326db134.js.map} +1 -1
  4. package/dist/{_baseEach-05847c57.mjs → _baseEach-9b6a12fa.mjs} +2 -2
  5. package/dist/{_baseEach-05847c57.mjs.map → _baseEach-9b6a12fa.mjs.map} +1 -1
  6. package/dist/angle-utils-264ed176.mjs +840 -0
  7. package/dist/angle-utils-264ed176.mjs.map +1 -0
  8. package/dist/angle-utils-ccc0d890.js +3 -0
  9. package/dist/angle-utils-ccc0d890.js.map +1 -0
  10. package/dist/{choropleth-db3ae9eb.js → choropleth-300f112d.js} +15 -15
  11. package/dist/{choropleth-db3ae9eb.js.map → choropleth-300f112d.js.map} +1 -1
  12. package/dist/{choropleth-449cf25e.mjs → choropleth-9123f871.mjs} +1534 -1531
  13. package/dist/{choropleth-449cf25e.mjs.map → choropleth-9123f871.mjs.map} +1 -1
  14. package/dist/color-scale-utils-2cd523be.js +2 -0
  15. package/dist/color-scale-utils-2cd523be.js.map +1 -0
  16. package/dist/color-scale-utils-b9604b2c.mjs +3335 -0
  17. package/dist/color-scale-utils-b9604b2c.mjs.map +1 -0
  18. package/dist/components/index.js +1 -1
  19. package/dist/components/index.mjs +4 -4
  20. package/dist/demo/index.js +10 -10
  21. package/dist/demo/index.js.map +1 -1
  22. package/dist/demo/index.mjs +291 -300
  23. package/dist/demo/index.mjs.map +1 -1
  24. package/dist/demo/utils/package-versions.d.ts +5 -5
  25. package/dist/{index-e425a7b5.mjs → index-4b5d1e49.mjs} +3 -3
  26. package/dist/{index-e425a7b5.mjs.map → index-4b5d1e49.mjs.map} +1 -1
  27. package/dist/index-becfb567.mjs.map +1 -1
  28. package/dist/index-d865d500.js.map +1 -1
  29. package/dist/{index-4203ca23.js → index-eace9da9.js} +2 -2
  30. package/dist/{index-4203ca23.js.map → index-eace9da9.js.map} +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +38 -38
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/model/index.js +1 -1
  36. package/dist/model/index.js.map +1 -1
  37. package/dist/model/index.mjs +34 -34
  38. package/dist/model/index.mjs.map +1 -1
  39. package/dist/services/index.js +1 -1
  40. package/dist/services/index.mjs +10 -10
  41. package/package.json +17 -19
  42. package/dist/angle-utils-512bc5cd.js +0 -2
  43. package/dist/angle-utils-512bc5cd.js.map +0 -1
  44. package/dist/angle-utils-7255d1d9.mjs +0 -387
  45. package/dist/angle-utils-7255d1d9.mjs.map +0 -1
  46. package/dist/color-scale-utils-222feda6.mjs +0 -3815
  47. package/dist/color-scale-utils-222feda6.mjs.map +0 -1
  48. package/dist/color-scale-utils-79786095.js +0 -3
  49. package/dist/color-scale-utils-79786095.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { t as Y, g as l, m as a, o as r, f as J, h as V } from "./color-scale-utils-222feda6.mjs";
2
- import { T as It, l as Ht, n as Gt, p as Vt, q as Nt, s as Ut, u as Zt, d as _t, v as zt, w as Wt, M as jt, j as $t, x as Kt, N as Jt, O as qt, P as Xt, Q as Qt, R as Yt, y as eo, z as so, S as to, A as oo, B as no, C as io, D as ro, E as ao, F as ho, G as co, H as mo, K as lo, I as po, J as Co, L as uo } from "./color-scale-utils-222feda6.mjs";
1
+ import { t as Y, g as l, m as a, o as r, e as J, f as V } from "./color-scale-utils-b9604b2c.mjs";
2
+ import { T as It, j as Ht, l as Gt, n as Vt, p as Nt, q as Ut, s as Zt, d as _t, u as zt, v as Wt, L as jt, h as $t, w as Kt, M as Jt, N as qt, O as Xt, P as Qt, Q as Yt, x as eo, y as so, R as to, z as oo, A as no, B as io, C as ro, D as ao, E as ho, F as co, G as mo, J as lo, H as po, I as Co, K as uo } from "./color-scale-utils-b9604b2c.mjs";
3
3
  import { i as go } from "./index-ec554115.mjs";
4
- import { ChartModel as Re, ChartModelCartesian as Te, AlluvialChartModel as be, BoxplotChartModel as Oe, BulletChartModel as Se, ChoroplethModel as fe, CirclePackChartModel as Ae, PieChartModel as xe, GaugeChartModel as ye, HeatmapModel as De, ChartModelBinned as Fe, MeterChartModel as Le, RadarChartModel as Pe, TreeChartModel as Me, TreemapChartModel as ke, WordCloudModel as Be } from "./model/index.mjs";
4
+ import { ChartModel as Re, ChartModelCartesian as Te, AlluvialChartModel as be, BoxplotChartModel as Oe, BulletChartModel as fe, ChoroplethModel as Se, CirclePackChartModel as Ae, PieChartModel as xe, GaugeChartModel as ye, HeatmapModel as De, ChartModelBinned as Fe, MeterChartModel as Le, RadarChartModel as Pe, TreeChartModel as Me, TreemapChartModel as ke, WordCloudModel as Be } from "./model/index.mjs";
5
5
  import { _ as j, r as i, q as c, L as Z, y as A, t as N, e as $, S as Ie, u as K, F as p, l as R } from "./enums-a96ef472.mjs";
6
- import { A as Eo, a as Ro, b as To, c as bo, d as Oo, f as So, B as fo, g as Ao, C as xo, h as yo, i as Do, j as Fo, k as Lo, m as Po, n as Mo, D as ko, o as Bo, G as Io, p as Ho, s as Go, v as Vo, M as No, w as Uo, P as Zo, x as _o, R as zo, z as Wo, H as jo, T as $o, I as Ko, J as Jo, K as qo, N as Xo, O as Qo, Q as Yo, U as en, V as sn, W as tn, Z as on, X as nn, Y as rn } from "./enums-a96ef472.mjs";
7
- import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as F, d as se, M as W, e as Ve, f as Ne, g as Ue, H as Ze, Z as _e, A as te, h as ze, i as d, G as w, R as B, j as k, k as oe, l as M, m as C, B as We, n as I, o as je, p as $e, q as ne, r as Ke, s as Je, t as ie, u as re, v as U, w as ae, x as he, y as ce, P as qe, D as Xe, z as Qe, E as Ye, F as es, I as ss, J as ts, K as os, N as ns, O as is, Q as rs, U as as, V as hs, W as cs } from "./choropleth-449cf25e.mjs";
8
- import { X as hn, a8 as cn, a9 as mn, a7 as ln, Y as pn, _ as dn, $ as Cn, a0 as un, a1 as vn, a2 as gn, a3 as wn, a4 as En, a5 as Rn, a6 as Tn } from "./choropleth-449cf25e.mjs";
9
- import { C as ms, E as ls, F as ps, T as ds, a as Cs, b as us, Z as vs, f as gs } from "./index-e425a7b5.mjs";
10
- import { D as ws, G as Es } from "./angle-utils-7255d1d9.mjs";
11
- import { S as On, d as Sn, a as fn, p as An, b as xn, r as yn } from "./angle-utils-7255d1d9.mjs";
6
+ import { A as Eo, a as Ro, b as To, c as bo, d as Oo, f as fo, B as So, g as Ao, C as xo, h as yo, i as Do, j as Fo, k as Lo, m as Po, n as Mo, D as ko, o as Bo, G as Io, p as Ho, s as Go, v as Vo, M as No, w as Uo, P as Zo, x as _o, R as zo, z as Wo, H as jo, T as $o, I as Ko, J as Jo, K as qo, N as Xo, O as Qo, Q as Yo, U as en, V as sn, W as tn, Z as on, X as nn, Y as rn } from "./enums-a96ef472.mjs";
7
+ import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as F, d as se, M as W, e as Ve, f as Ne, g as Ue, H as Ze, Z as _e, A as te, h as ze, i as d, G as w, R as B, j as k, k as oe, l as M, m as C, B as We, n as I, o as je, p as $e, q as ne, r as Ke, s as Je, t as ie, u as re, v as U, w as ae, x as he, y as ce, P as qe, D as Xe, z as Qe, E as Ye, F as es, I as ss, J as ts, K as os, N as ns, O as is, Q as rs, U as as, V as hs, W as cs } from "./choropleth-9123f871.mjs";
8
+ import { X as hn, a8 as cn, a9 as mn, a7 as ln, Y as pn, _ as dn, $ as Cn, a0 as un, a1 as vn, a2 as gn, a3 as wn, a4 as En, a5 as Rn, a6 as Tn } from "./choropleth-9123f871.mjs";
9
+ import { C as ms, E as ls, F as ps, T as ds, a as Cs, b as us, Z as vs, f as gs } from "./index-4b5d1e49.mjs";
10
+ import { D as ws, G as Es } from "./angle-utils-264ed176.mjs";
11
+ import { S as On, d as fn, a as Sn, p as An, b as xn, r as yn } from "./angle-utils-264ed176.mjs";
12
12
  import "d3";
13
13
  import "./index-becfb567.mjs";
14
14
  import "./a11y-7bad4f48.mjs";
15
- import "./_baseEach-05847c57.mjs";
15
+ import "./_baseEach-9b6a12fa.mjs";
16
16
  import "d3-sankey";
17
17
  import "d3-cloud";
18
18
  function Rs(o, e, s) {
@@ -26,7 +26,7 @@ function Ts(o, e, s) {
26
26
  var n = o.length;
27
27
  return s = s === void 0 ? n : s, !e && s >= n ? o : Rs(o, e, s);
28
28
  }
29
- var bs = "\\ud800-\\udfff", Os = "\\u0300-\\u036f", Ss = "\\ufe20-\\ufe2f", fs = "\\u20d0-\\u20ff", As = Os + Ss + fs, xs = "\\ufe0e\\ufe0f", ys = "\\u200d", Ds = RegExp("[" + ys + bs + As + xs + "]");
29
+ var bs = "\\ud800-\\udfff", Os = "\\u0300-\\u036f", fs = "\\ufe20-\\ufe2f", Ss = "\\u20d0-\\u20ff", As = Os + fs + Ss, xs = "\\ufe0e\\ufe0f", ys = "\\u200d", Ds = RegExp("[" + ys + bs + As + xs + "]");
30
30
  function me(o) {
31
31
  return Ds.test(o);
32
32
  }
@@ -138,10 +138,10 @@ class T {
138
138
  growth: i.STRETCH,
139
139
  renderType: l(s, "graphFrameRenderType") || A.SVG
140
140
  }, D = l(s, "excludeLegend") !== !0 && n.legend.enabled !== !1;
141
- let S = c.COLUMN;
141
+ let f = c.COLUMN;
142
142
  if (D) {
143
- const f = l(n, "legend", "position");
144
- f === "left" ? (S = c.ROW, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "right" ? (S = c.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "bottom" && (S = c.COLUMN_REVERSE);
143
+ const S = l(n, "legend", "position");
144
+ S === "left" ? (f = c.ROW, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : S === "right" ? (f = c.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : S === "bottom" && (f = c.COLUMN_REVERSE);
145
145
  }
146
146
  const P = {
147
147
  id: "spacer",
@@ -159,7 +159,7 @@ class T {
159
159
  y
160
160
  ],
161
161
  {
162
- direction: S
162
+ direction: f
163
163
  }
164
164
  )
165
165
  ],
@@ -167,14 +167,14 @@ class T {
167
167
  }, E = [];
168
168
  if (b || t) {
169
169
  E.push(L);
170
- const f = {
170
+ const S = {
171
171
  id: "spacer",
172
172
  components: [
173
173
  new F(this.model, this.services, t ? { size: 15 } : void 0)
174
174
  ],
175
175
  growth: i.PREFERRED
176
176
  };
177
- E.push(f);
177
+ E.push(S);
178
178
  }
179
179
  return E.push(v), [
180
180
  new se(this.model, this.services),
@@ -204,7 +204,7 @@ class u extends T {
204
204
  id: "toolbar",
205
205
  components: [new z(this.model, this.services)],
206
206
  growth: i.PREFERRED
207
- }, S = {
207
+ }, f = {
208
208
  id: "header",
209
209
  components: [
210
210
  new g(
@@ -237,10 +237,10 @@ class u extends T {
237
237
  growth: i.STRETCH,
238
238
  renderType: A.SVG
239
239
  }, E = l(s, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1;
240
- let f = c.COLUMN;
240
+ let S = c.COLUMN;
241
241
  if (E) {
242
242
  const G = l(this.model.getOptions(), "legend", "position");
243
- G === K.LEFT ? (f = c.ROW, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.RIGHT ? (f = c.ROW_REVERSE, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.BOTTOM && (f = c.COLUMN_REVERSE);
243
+ G === K.LEFT ? (S = c.ROW, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.RIGHT ? (S = c.ROW_REVERSE, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.BOTTOM && (S = c.COLUMN_REVERSE);
244
244
  }
245
245
  const ge = {
246
246
  id: "spacer",
@@ -258,7 +258,7 @@ class u extends T {
258
258
  v
259
259
  ],
260
260
  {
261
- direction: f
261
+ direction: S
262
262
  }
263
263
  )
264
264
  ],
@@ -270,7 +270,7 @@ class u extends T {
270
270
  renderType: A.SVG
271
271
  }, H = [];
272
272
  if (L || h) {
273
- H.push(S);
273
+ H.push(f);
274
274
  const G = {
275
275
  id: "spacer",
276
276
  components: [
@@ -362,7 +362,7 @@ class dt extends u {
362
362
  }
363
363
  class Ct extends u {
364
364
  constructor(e, s) {
365
- super(e, s), this.model = new Se(this.services), this.model.setOptions(a(r.bulletChart, s.options)), this.init(e, s);
365
+ super(e, s), this.model = new fe(this.services), this.model.setOptions(a(r.bulletChart, s.options)), this.init(e, s);
366
366
  }
367
367
  getComponents() {
368
368
  const e = [
@@ -378,7 +378,7 @@ class Ct extends u {
378
378
  }
379
379
  class ut extends T {
380
380
  constructor(e, s) {
381
- super(e, s), this.model = new fe(this.services), this.model.setOptions(
381
+ super(e, s), this.model = new Se(this.services), this.model.setOptions(
382
382
  a(r.choroplethChart, s.options)
383
383
  ), this.init(e, s);
384
384
  }
@@ -425,7 +425,7 @@ class ut extends T {
425
425
  components: e,
426
426
  growth: i.STRETCH,
427
427
  renderType: A.SVG
428
- }, y = l(s, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1, D = c.COLUMN_REVERSE, S = {
428
+ }, y = l(s, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1, D = c.COLUMN_REVERSE, f = {
429
429
  id: "spacer",
430
430
  components: [new F(this.model, this.services, { size: 15 })],
431
431
  growth: i.PREFERRED
@@ -437,7 +437,7 @@ class ut extends T {
437
437
  this.services,
438
438
  [
439
439
  ...y ? [x] : [],
440
- ...y ? [S] : [],
440
+ ...y ? [f] : [],
441
441
  L
442
442
  ],
443
443
  {
@@ -649,7 +649,7 @@ class Tt extends u {
649
649
  components: e,
650
650
  growth: i.STRETCH,
651
651
  renderType: A.SVG
652
- }, y = l(s, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1, D = c.COLUMN_REVERSE, S = {
652
+ }, y = l(s, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1, D = c.COLUMN_REVERSE, f = {
653
653
  id: "spacer",
654
654
  components: [new F(this.model, this.services, { size: 15 })],
655
655
  growth: i.PREFERRED
@@ -661,7 +661,7 @@ class Tt extends u {
661
661
  this.services,
662
662
  [
663
663
  ...y ? [x] : [],
664
- ...y ? [S] : [],
664
+ ...y ? [f] : [],
665
665
  L
666
666
  ],
667
667
  {
@@ -729,7 +729,7 @@ class Ot extends u {
729
729
  return this.getAxisChartComponents(e);
730
730
  }
731
731
  }
732
- class St extends u {
732
+ class ft extends u {
733
733
  constructor(e, s) {
734
734
  super(e, s), this.model.setOptions(a(r.lollipopChart, s.options)), this.init(e, s);
735
735
  }
@@ -747,7 +747,7 @@ class St extends u {
747
747
  return this.getAxisChartComponents(e);
748
748
  }
749
749
  }
750
- class ft extends T {
750
+ class St extends T {
751
751
  constructor(e, s) {
752
752
  var t;
753
753
  super(e, s), this.model = new Le(this.services);
@@ -925,9 +925,9 @@ export {
925
925
  bo as AxisEvent,
926
926
  Oo as AxisFlavor,
927
927
  $ as AxisPositions,
928
- So as AxisTitleOrientations,
928
+ fo as AxisTitleOrientations,
929
929
  cn as Bar,
930
- fo as BarEvent,
930
+ So as BarEvent,
931
931
  es as BinnedRuler,
932
932
  We as Boxplot,
933
933
  pt as BoxplotChart,
@@ -937,7 +937,7 @@ export {
937
937
  dt as BubbleChart,
938
938
  $e as Bullet,
939
939
  Ct as BulletChart,
940
- Se as BulletChartModel,
940
+ fe as BulletChartModel,
941
941
  xo as CalloutDirections,
942
942
  Ge as CanvasChartClip,
943
943
  ms as CanvasZoom,
@@ -954,7 +954,7 @@ export {
954
954
  Lo as ChartTheme,
955
955
  R as ChartTypes,
956
956
  Ke as Choropleth,
957
- fe as ChoroplethModel,
957
+ Se as ChoroplethModel,
958
958
  Je as CirclePack,
959
959
  vt as CirclePackChart,
960
960
  Ae as CirclePackChartModel,
@@ -1001,9 +1001,9 @@ export {
1001
1001
  Ot as LineChart,
1002
1002
  Vo as LineEvent,
1003
1003
  os as Lollipop,
1004
- St as LollipopChart,
1004
+ ft as LollipopChart,
1005
1005
  is as Meter,
1006
- ft as MeterChart,
1006
+ St as MeterChart,
1007
1007
  Le as MeterChartModel,
1008
1008
  ns as MeterTitle,
1009
1009
  W as Modal,
@@ -1088,9 +1088,9 @@ export {
1088
1088
  jt as computeTimeIntervalName,
1089
1089
  $t as configurations,
1090
1090
  Kt as defaultLegendAdditionalItems,
1091
- Sn as degToRad,
1091
+ fn as degToRad,
1092
1092
  En as diamond,
1093
- fn as distanceBetweenPointOnCircAndVerticalDiameter,
1093
+ Sn as distanceBetweenPointOnCircAndVerticalDiameter,
1094
1094
  Jt as formatDateTillMilliSeconds,
1095
1095
  qt as formatTick,
1096
1096
  Xt as getColorScale,