@carbon/charts 1.22.14 → 1.22.16

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-ycwO-Ibq.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-ycwO-Ibq.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";
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";
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
+ import { $ as j, r as i, L as Z, q as h, 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 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 U, v as re, 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-Ds5Q8kNS.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-Ds5Q8kNS.mjs";
9
+ import { b as ms, T as ls, F as ps, E as ds, C as Cs, Z as us, a as vs, c as gs, f as ws } from "./index-CuPdtS0D.mjs";
10
+ import { G as Es, D as Rs } from "./angle-utils-CqlSifly.mjs";
11
+ import { S as vn, d as gn, a as wn, p as En, b as Rn, r as Tn } from "./angle-utils-CqlSifly.mjs";
12
12
  function Ts(t, s, e) {
13
13
  var n = t.length;
14
- return e = e === void 0 ? n : e, !s && e >= n ? t : ms(t, s, e);
14
+ return e = e === void 0 ? n : e, 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
  }
@@ -47,12 +47,12 @@ class T {
47
47
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
48
  constructor(s, e) {
49
49
  this.components = [], this.services = {
50
- canvasZoom: ls,
51
- domUtils: Es,
52
- events: ps,
53
- files: ds,
54
- gradientUtils: Rs,
55
- transitions: Cs
50
+ canvasZoom: Cs,
51
+ domUtils: Rs,
52
+ events: ds,
53
+ files: ps,
54
+ gradientUtils: Es,
55
+ transitions: ls
56
56
  }, this.model = new Re(this.services);
57
57
  }
58
58
  // Contains the code that uses properties that are overridable by the super-class
@@ -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),
@@ -178,9 +178,9 @@ class T {
178
178
  class u extends T {
179
179
  constructor(s, e) {
180
180
  super(s, e), this.services = Object.assign(this.services, {
181
- cartesianScales: us,
181
+ cartesianScales: gs,
182
182
  curves: vs,
183
- zoom: gs
183
+ zoom: us
184
184
  }), this.model = new Te(this.services);
185
185
  }
186
186
  getAxisChartComponents(s, e) {
@@ -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
  {
@@ -511,10 +511,10 @@ const Q = {
511
511
  [R.LINE]: [k, M],
512
512
  [R.SCATTER]: [M],
513
513
  [R.AREA]: [oe, k, M],
514
- [R.STACKED_AREA]: [ie, k, re, U],
514
+ [R.STACKED_AREA]: [he, k, ce, U],
515
515
  [R.SIMPLE_BAR]: [ae],
516
- [R.GROUPED_BAR]: [he, I],
517
- [R.STACKED_BAR]: [ce, U]
516
+ [R.GROUPED_BAR]: [re, I],
517
+ [R.STACKED_BAR]: [ie, U]
518
518
  };
519
519
  class ct extends u {
520
520
  constructor(s, e) {
@@ -638,7 +638,7 @@ class pt extends u {
638
638
  const s = [
639
639
  new d(this.model, this.services),
640
640
  new w(this.model, this.services),
641
- new he(this.model, this.services),
641
+ new re(this.model, this.services),
642
642
  new I(this.model, this.services),
643
643
  new C(this.model, this.services, {
644
644
  skeleton: p.VERT_OR_HORIZ
@@ -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
  {
@@ -968,9 +968,9 @@ class Ot extends u {
968
968
  new d(this.model, this.services),
969
969
  new w(this.model, this.services),
970
970
  new U(this.model, this.services),
971
- new ie(this.model, this.services),
971
+ new he(this.model, this.services),
972
972
  new k(this.model, this.services, { stacked: !0 }),
973
- new re(this.model, this.services, {
973
+ new ce(this.model, this.services, {
974
974
  fadeInOnChartHolderMouseover: !0,
975
975
  handleThresholds: !0,
976
976
  stacked: !0
@@ -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
  }
@@ -996,7 +996,7 @@ class ft extends u {
996
996
  new d(this.model, this.services),
997
997
  new w(this.model, this.services),
998
998
  new U(this.model, this.services),
999
- new ce(this.model, this.services),
999
+ new ie(this.model, this.services),
1000
1000
  new C(this.model, this.services, {
1001
1001
  skeleton: p.VERT_OR_HORIZ
1002
1002
  }),
@@ -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,13 +1051,13 @@ 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
- ls as CanvasZoom,
1057
+ Cs as CanvasZoom,
1058
1058
  Ro as CanvasZoomEvent,
1059
1059
  To as CartesianOrientations,
1060
- us as CartesianScales,
1060
+ gs as CartesianScales,
1061
1061
  T as Chart,
1062
1062
  Ne as ChartBrush,
1063
1063
  Ve as ChartClip,
@@ -1069,33 +1069,33 @@ 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,
1081
1081
  vs as Curves,
1082
- Es as DOMUtils,
1082
+ Rs as DOMUtils,
1083
1083
  Ao as DividerStatus,
1084
1084
  xo as DominantBaseline,
1085
1085
  Xe as Donut,
1086
1086
  mt as DonutChart,
1087
- ps as Events,
1087
+ ds as Events,
1088
1088
  at as ExperimentalChoroplethChart,
1089
- ds as Files,
1089
+ ps as Files,
1090
1090
  Qe as Gauge,
1091
1091
  lt as GaugeChart,
1092
1092
  ye as GaugeChartModel,
1093
1093
  yo as GaugeEvent,
1094
1094
  Do as GaugeTypes,
1095
1095
  on as GeoProjection,
1096
- Rs as GradientUtils,
1096
+ Es as GradientUtils,
1097
1097
  w as Grid,
1098
- he as GroupedBar,
1098
+ re as GroupedBar,
1099
1099
  pt as GroupedBarChart,
1100
1100
  Ye as Heatmap,
1101
1101
  dt as HeatmapChart,
@@ -1146,12 +1146,12 @@ export {
1146
1146
  ts as SkeletonLines,
1147
1147
  p as Skeletons,
1148
1148
  L as Spacer,
1149
- ie as StackedArea,
1149
+ he as StackedArea,
1150
1150
  Ot as StackedAreaChart,
1151
- ce as StackedBar,
1152
- ft as StackedBarChart,
1151
+ ie as StackedBar,
1152
+ St as StackedBarChart,
1153
1153
  U as StackedRuler,
1154
- re as StackedScatter,
1154
+ ce as StackedScatter,
1155
1155
  Go as Statuses,
1156
1156
  yt as TIME_INTERVALS,
1157
1157
  Vo as TextAnchor,
@@ -1164,7 +1164,7 @@ export {
1164
1164
  _o as ToolbarControlTypes,
1165
1165
  se as Tooltip,
1166
1166
  zo as TooltipEvent,
1167
- Cs as Transitions,
1167
+ ls as Transitions,
1168
1168
  as as Tree,
1169
1169
  Rt as TreeChart,
1170
1170
  Me as TreeChartModel,
@@ -1177,11 +1177,11 @@ 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,
1184
- gs as Zoom,
1184
+ us as Zoom,
1185
1185
  _e as ZoomBar,
1186
1186
  qo as ZoomBarTypes,
1187
1187
  Xo as ZoomDomainEvent,