@carbon/charts 1.22.14 → 1.22.15

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/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
- import { t as Y, g as l, m as a, o as r, c as J, a as V } from "./color-scale-utils-BfTM18gQ.mjs";
2
- import { T as yt, e as Dt, f as Lt, h as Ft, j as Pt, l as Mt, n as kt, p as Bt, q as It, r as Ht, I as Gt, d as Vt, s as Nt, J as Ut, K as Zt, L as _t, M as zt, N as Wt, u as jt, v as $t, O as Kt, w as Jt, x as qt, y as Xt, z as Qt, A as Yt, B as eo, C as so, D as to, G as oo, E as no, F as io, H as ro } from "./color-scale-utils-BfTM18gQ.mjs";
1
+ import { t as Y, g as l, m as a, o as r, c as J, a as V } from "./color-scale-utils-BW_t5gbK.mjs";
2
+ import { T as yt, e as Dt, f as Lt, h as Ft, j as Pt, l as Mt, n as kt, p as Bt, q as It, r as Ht, I as Gt, d as Vt, s as Nt, J as Ut, K as Zt, L as _t, M as zt, N as Wt, u as jt, v as $t, O as Kt, w as Jt, x as qt, y as Xt, z as Qt, A as Yt, B as eo, C as so, D as to, G as oo, E as no, F as io, H as ro } from "./color-scale-utils-BW_t5gbK.mjs";
3
3
  import { i as ho } from "./index-DwV8lNnO.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 Le, MeterChartModel as Fe, 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 Se, ChoroplethModel as fe, CirclePackChartModel as Ae, PieChartModel as xe, GaugeChartModel as ye, HeatmapModel as De, ChartModelBinned as Le, MeterChartModel as Fe, 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 h, L as Z, y as A, t as N, e as $, S as Ie, u as K, F as p, l as R } from "./axis-scales-CPuwbFQf.mjs";
6
- import { A as mo, a as lo, b as po, c as Co, d as uo, f as vo, B as go, g as wo, C as Eo, h as Ro, i as To, j as bo, k as Oo, m as fo, n as So, D as Ao, o as xo, G as yo, p as Do, s as Lo, v as Fo, M as Po, w as Mo, P as ko, x as Bo, R as Io, z as Ho, H as Go, T as Vo, I as No, J as Uo, K as Zo, N as _o, O as zo, Q as Wo, U as jo, V as $o, W as Ko, X as Jo, Z as qo, Y as Xo, _ as Qo } from "./axis-scales-CPuwbFQf.mjs";
7
- import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as L, 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-DveQIPGG.mjs";
8
- import { X as en, a8 as sn, a9 as tn, a7 as on, Y as nn, _ as rn, $ as an, a0 as hn, a1 as cn, a2 as mn, a3 as ln, a4 as pn, a5 as dn, a6 as Cn } from "./choropleth-DveQIPGG.mjs";
9
- import { b as ms, C as ls, E as ps, F as ds, T as Cs, a as us, c as vs, Z as gs, f as ws } from "./index-fH71cv3F.mjs";
10
- import { D as Es, G as Rs } from "./angle-utils-oUqMSPUJ.mjs";
11
- import { S as vn, d as gn, a as wn, p as En, b as Rn, r as Tn } from "./angle-utils-oUqMSPUJ.mjs";
6
+ import { A as mo, a as lo, b as po, c as Co, d as uo, f as vo, B as go, g as wo, C as Eo, h as Ro, i as To, j as bo, k as Oo, m as So, n as fo, D as Ao, o as xo, G as yo, p as Do, s as Lo, v as Fo, M as Po, w as Mo, P as ko, x as Bo, R as Io, z as Ho, H as Go, T as Vo, I as No, J as Uo, K as Zo, N as _o, O as zo, Q as Wo, U as jo, V as $o, W as Ko, X as Jo, Z as qo, Y as Xo, _ as Qo } from "./axis-scales-CPuwbFQf.mjs";
7
+ import { c as He, L as ee, C as Ge, T as _, a as z, b as g, S as L, 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-G6hhqYGx.mjs";
8
+ import { X as en, a8 as sn, a9 as tn, a7 as on, Y as nn, _ as rn, $ as an, a0 as hn, a1 as cn, a2 as mn, a3 as ln, a4 as pn, a5 as dn, a6 as Cn } from "./choropleth-G6hhqYGx.mjs";
9
+ import { b as ms, C as ls, E as ps, F as ds, T as Cs, a as us, c as vs, Z as gs, f as ws } from "./index-DgnXvTcC.mjs";
10
+ import { D as Es, G as Rs } from "./angle-utils-1yDCWVo3.mjs";
11
+ import { S as vn, d as gn, a as wn, p as En, b as Rn, r as Tn } from "./angle-utils-1yDCWVo3.mjs";
12
12
  function Ts(t, s, e) {
13
13
  var n = t.length;
14
14
  return e = e === void 0 ? n : e, !s && e >= n ? t : ms(t, s, e);
15
15
  }
16
- 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 + "]");
16
+ 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 + "]");
17
17
  function me(t) {
18
18
  return Ds.test(t);
19
19
  }
@@ -128,10 +128,10 @@ class T {
128
128
  growth: i.STRETCH,
129
129
  renderType: l(e, "graphFrameRenderType") || A.SVG
130
130
  }, D = l(e, "excludeLegend") !== !0 && n.legend.enabled !== !1;
131
- let f = h.COLUMN;
131
+ let S = h.COLUMN;
132
132
  if (D) {
133
- const S = l(n, "legend", "position");
134
- S === "left" ? (f = h.ROW, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : S === "right" ? (f = h.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : S === "bottom" && (f = h.COLUMN_REVERSE);
133
+ const f = l(n, "legend", "position");
134
+ f === "left" ? (S = h.ROW, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "right" ? (S = h.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = N.VERTICAL)) : f === "bottom" && (S = h.COLUMN_REVERSE);
135
135
  }
136
136
  const P = {
137
137
  id: "spacer",
@@ -149,7 +149,7 @@ class T {
149
149
  y
150
150
  ],
151
151
  {
152
- direction: f
152
+ direction: S
153
153
  }
154
154
  )
155
155
  ],
@@ -157,14 +157,14 @@ class T {
157
157
  }, E = [];
158
158
  if (b || o) {
159
159
  E.push(F);
160
- const S = {
160
+ const f = {
161
161
  id: "spacer",
162
162
  components: [
163
163
  new L(this.model, this.services, o ? { size: 15 } : void 0)
164
164
  ],
165
165
  growth: i.PREFERRED
166
166
  };
167
- E.push(S);
167
+ E.push(f);
168
168
  }
169
169
  return E.push(v), [
170
170
  new se(this.model, this.services),
@@ -194,7 +194,7 @@ class u extends T {
194
194
  id: "toolbar",
195
195
  components: [new z(this.model, this.services)],
196
196
  growth: i.PREFERRED
197
- }, f = {
197
+ }, S = {
198
198
  id: "header",
199
199
  components: [
200
200
  new g(
@@ -227,10 +227,10 @@ class u extends T {
227
227
  growth: i.STRETCH,
228
228
  renderType: A.SVG
229
229
  }, E = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1;
230
- let S = h.COLUMN;
230
+ let f = h.COLUMN;
231
231
  if (E) {
232
232
  const G = l(this.model.getOptions(), "legend", "position");
233
- G === K.LEFT ? (S = h.ROW, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.RIGHT ? (S = h.ROW_REVERSE, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.BOTTOM && (S = h.COLUMN_REVERSE);
233
+ G === K.LEFT ? (f = h.ROW, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.RIGHT ? (f = h.ROW_REVERSE, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = N.VERTICAL)) : G === K.BOTTOM && (f = h.COLUMN_REVERSE);
234
234
  }
235
235
  const ge = {
236
236
  id: "spacer",
@@ -248,7 +248,7 @@ class u extends T {
248
248
  v
249
249
  ],
250
250
  {
251
- direction: S
251
+ direction: f
252
252
  }
253
253
  )
254
254
  ],
@@ -260,7 +260,7 @@ class u extends T {
260
260
  renderType: A.SVG
261
261
  }, H = [];
262
262
  if (F || c) {
263
- H.push(f);
263
+ H.push(S);
264
264
  const G = {
265
265
  id: "spacer",
266
266
  components: [
@@ -374,7 +374,7 @@ class it extends u {
374
374
  }
375
375
  class rt extends u {
376
376
  constructor(s, e) {
377
- super(s, e), this.model = new fe(this.services), this.model.setOptions(a(r.bulletChart, e.options)), this.init(s, e);
377
+ super(s, e), this.model = new Se(this.services), this.model.setOptions(a(r.bulletChart, e.options)), this.init(s, e);
378
378
  }
379
379
  /**
380
380
  * Retrieves the components to be rendered inside the graph frame.
@@ -395,7 +395,7 @@ class rt extends u {
395
395
  }
396
396
  class at extends T {
397
397
  constructor(s, e) {
398
- super(s, e), this.model = new Se(this.services), this.model.setOptions(
398
+ super(s, e), this.model = new fe(this.services), this.model.setOptions(
399
399
  a(r.choroplethChart, e.options)
400
400
  ), this.init(s, e);
401
401
  }
@@ -442,7 +442,7 @@ class at extends T {
442
442
  components: s,
443
443
  growth: i.STRETCH,
444
444
  renderType: A.SVG
445
- }, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, f = {
445
+ }, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, S = {
446
446
  id: "spacer",
447
447
  components: [new L(this.model, this.services, { size: 15 })],
448
448
  growth: i.PREFERRED
@@ -454,7 +454,7 @@ class at extends T {
454
454
  this.services,
455
455
  [
456
456
  ...y ? [x] : [],
457
- ...y ? [f] : [],
457
+ ...y ? [S] : [],
458
458
  F
459
459
  ],
460
460
  {
@@ -698,7 +698,7 @@ class dt extends u {
698
698
  components: s,
699
699
  growth: i.STRETCH,
700
700
  renderType: A.SVG
701
- }, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, f = {
701
+ }, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, S = {
702
702
  id: "spacer",
703
703
  components: [new L(this.model, this.services, { size: 15 })],
704
704
  growth: i.PREFERRED
@@ -710,7 +710,7 @@ class dt extends u {
710
710
  this.services,
711
711
  [
712
712
  ...y ? [x] : [],
713
- ...y ? [f] : [],
713
+ ...y ? [S] : [],
714
714
  F
715
715
  ],
716
716
  {
@@ -982,7 +982,7 @@ class Ot extends u {
982
982
  return this.getAxisChartComponents(s);
983
983
  }
984
984
  }
985
- class ft extends u {
985
+ class St extends u {
986
986
  constructor(s, e) {
987
987
  super(s, e), this.model.setOptions(a(r.stackedBarChart, e.options)), this.init(s, e);
988
988
  }
@@ -1005,7 +1005,7 @@ class ft extends u {
1005
1005
  return this.getAxisChartComponents(s);
1006
1006
  }
1007
1007
  }
1008
- class St extends T {
1008
+ class ft extends T {
1009
1009
  constructor(s, e) {
1010
1010
  super(s, e), this.model = new Be(this.services), this.model.setOptions(a(r.wordCloudChart, e.options)), this.init(s, e);
1011
1011
  }
@@ -1051,7 +1051,7 @@ export {
1051
1051
  it as BubbleChart,
1052
1052
  $e as Bullet,
1053
1053
  rt as BulletChart,
1054
- fe as BulletChartModel,
1054
+ Se as BulletChartModel,
1055
1055
  Eo as CalloutDirections,
1056
1056
  Ge as CanvasChartClip,
1057
1057
  ls as CanvasZoom,
@@ -1069,12 +1069,12 @@ export {
1069
1069
  R as ChartTypes,
1070
1070
  Ke as Choropleth,
1071
1071
  at as ChoroplethChart,
1072
- Se as ChoroplethModel,
1072
+ fe as ChoroplethModel,
1073
1073
  Je as CirclePack,
1074
1074
  ht as CirclePackChart,
1075
1075
  Ae as CirclePackChartModel,
1076
- fo as ColorClassNameTypes,
1077
- So as ColorLegendType,
1076
+ So as ColorClassNameTypes,
1077
+ fo as ColorLegendType,
1078
1078
  ne as ColorScaleLegend,
1079
1079
  ct as ComboChart,
1080
1080
  tn as Component,
@@ -1149,7 +1149,7 @@ export {
1149
1149
  ie as StackedArea,
1150
1150
  Ot as StackedAreaChart,
1151
1151
  ce as StackedBar,
1152
- ft as StackedBarChart,
1152
+ St as StackedBarChart,
1153
1153
  U as StackedRuler,
1154
1154
  re as StackedScatter,
1155
1155
  Go as Statuses,
@@ -1177,7 +1177,7 @@ export {
1177
1177
  Ko as TruncationTypes,
1178
1178
  d as TwoDimensionalAxes,
1179
1179
  cs as WordCloud,
1180
- St as WordCloudChart,
1180
+ ft as WordCloudChart,
1181
1181
  Jo as WordCloudEvent,
1182
1182
  Be as WordCloudModel,
1183
1183
  I as ZeroLine,
@@ -1,6 +1,6 @@
1
- import { a0 as tt, a1 as et, au as st, av as w, aw as $, ad as N, ax as at, ay as nt, az as ot, ap as P, ar as k, g as p, w as E, c as F, v as rt, ao as L, J as z, aA as H, a as R, r as Z, V as Q, ac as C, L as W, ai as it, aB as lt, aa as A } from "../color-scale-utils-BfTM18gQ.mjs";
1
+ import { a0 as tt, a1 as et, au as st, av as w, aw as $, ad as N, ax as at, ay as nt, az as ot, ap as P, ar as k, g as p, w as E, c as F, v as rt, ao as L, J as z, aA as H, a as R, r as Z, V as Q, ac as C, L as W, ai as it, aB as lt, aa as A } from "../color-scale-utils-BW_t5gbK.mjs";
2
2
  import { S as b, $ as U, d as X, e as q, s as ct } from "../axis-scales-CPuwbFQf.mjs";
3
- import { b as ut, c as I, a as pt } from "../array-CpT8VxH2.mjs";
3
+ import { b as ut, c as I, a as pt } from "../array-74GCZNYz.mjs";
4
4
  function ht(u, t, e, s) {
5
5
  for (var a = -1, n = u == null ? 0 : u.length; ++a < n; ) {
6
6
  var o = u[a];
@@ -1,6 +1,6 @@
1
- import { T as e, I as r, J as o, K as i, L as t, M as l, N as m, O as n } from "../color-scale-utils-BfTM18gQ.mjs";
2
- import { D as c, G as d, S as C, d as f, a as p, p as D, b as S, r as g } from "../angle-utils-oUqMSPUJ.mjs";
3
- import { C as E, a as I, c as M, E as x, F as L, T as N, Z as O } from "../index-fH71cv3F.mjs";
1
+ import { T as e, I as r, J as o, K as i, L as t, M as l, N as m, O as n } from "../color-scale-utils-BW_t5gbK.mjs";
2
+ import { D as c, G as d, S as C, d as f, a as p, p as D, b as S, r as g } from "../angle-utils-1yDCWVo3.mjs";
3
+ import { C as E, a as I, c as M, E as x, F as L, T as N, Z as O } from "../index-DgnXvTcC.mjs";
4
4
  export {
5
5
  E as CanvasZoom,
6
6
  I as CartesianScales,