@carbon/charts-vue 1.27.0 → 1.27.3

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
@@ -8441,7 +8441,8 @@ let N = class Cl extends Dn {
8441
8441
  return `chart-${this.chartID}-${t}`;
8442
8442
  }
8443
8443
  initializeID() {
8444
- this.chartID = Math.floor((1 + Math.random()) * 281474976710656).toString(16);
8444
+ const t = this.model.getOptions().chartId;
8445
+ t ? this.chartID = t : this.chartID = Math.floor((1 + Math.random()) * 281474976710656).toString(16);
8445
8446
  }
8446
8447
  addMainContainer() {
8447
8448
  const t = this.model.getOptions(), n = y(t, "style", "prefix"), r = I(this.getHolder()).append("div").classed(`${ce}--${n}--chart-wrapper`, !0).attr("id", `chart-${this.getChartID()}`).style("height", "100%").style("width", "100%");
@@ -12402,7 +12403,7 @@ class co extends mt {
12402
12403
  <div class="cds--modal-container">
12403
12404
  <div class="cds--modal-header">
12404
12405
 
12405
- <p class="cds--modal-header__label cds--type-delta" id="modal-title">${r}</p>
12406
+ <p class="cds--modal-header__label cds--type-delta" id="${t}__modal-title">${r}</p>
12406
12407
 
12407
12408
  <p class="cds--modal-header__heading cds--type-beta" id="${t}__modal-description">${tn(
12408
12409
  n.title
@@ -19310,22 +19311,40 @@ function Mv(e, t, n) {
19310
19311
  function SN(e, t) {
19311
19312
  return t.length < 2 ? e : vc(e, Mv(t, 0, -1));
19312
19313
  }
19313
- function TN(e, t) {
19314
- return t = Wa(t, e), e = SN(e, t), e == null || delete e[cs(Vf(t))];
19314
+ var TN = Object.prototype, wN = TN.hasOwnProperty;
19315
+ function $N(e, t) {
19316
+ t = Wa(t, e);
19317
+ var n = -1, r = t.length;
19318
+ if (!r)
19319
+ return !0;
19320
+ for (var i = e == null || typeof e != "object" && typeof e != "function"; ++n < r; ) {
19321
+ var s = t[n];
19322
+ if (typeof s == "string") {
19323
+ if (s === "__proto__" && !wN.call(e, "__proto__"))
19324
+ return !1;
19325
+ if (s === "constructor" && n + 1 < r && typeof t[n + 1] == "string" && t[n + 1] === "prototype") {
19326
+ if (i && n === 0)
19327
+ continue;
19328
+ return !1;
19329
+ }
19330
+ }
19331
+ }
19332
+ var a = SN(e, t);
19333
+ return a == null || delete a[cs(Vf(t))];
19315
19334
  }
19316
- function wN(e) {
19335
+ function MN(e) {
19317
19336
  return Ef(e) ? void 0 : e;
19318
19337
  }
19319
- var $N = 1, MN = 2, CN = 4, AN = ON(function(e, t) {
19338
+ var CN = 1, AN = 2, LN = 4, DN = ON(function(e, t) {
19320
19339
  var n = {};
19321
19340
  if (e == null)
19322
19341
  return n;
19323
19342
  var r = !1;
19324
19343
  t = lc(t, function(s) {
19325
19344
  return s = Wa(s, e), r || (r = s.length > 1), s;
19326
- }), ni(e, Mf(e), n), r && (n = Pi(n, $N | MN | CN, wN));
19345
+ }), ni(e, Mf(e), n), r && (n = Pi(n, CN | AN | LN, MN));
19327
19346
  for (var i = t.length; i--; )
19328
- TN(n, t[i]);
19347
+ $N(n, t[i]);
19329
19348
  return n;
19330
19349
  });
19331
19350
  function gp(e) {
@@ -19334,29 +19353,29 @@ function gp(e) {
19334
19353
  function vp(e) {
19335
19354
  return Math.exp(e);
19336
19355
  }
19337
- function LN(e) {
19356
+ function kN(e) {
19338
19357
  return -Math.log(-e);
19339
19358
  }
19340
- function DN(e) {
19359
+ function RN(e) {
19341
19360
  return -Math.exp(-e);
19342
19361
  }
19343
- function kN(e) {
19362
+ function IN(e) {
19344
19363
  return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
19345
19364
  }
19346
- function RN(e) {
19347
- return e === 10 ? kN : e === Math.E ? Math.exp : (t) => Math.pow(e, t);
19365
+ function NN(e) {
19366
+ return e === 10 ? IN : e === Math.E ? Math.exp : (t) => Math.pow(e, t);
19348
19367
  }
19349
- function IN(e) {
19368
+ function PN(e) {
19350
19369
  return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
19351
19370
  }
19352
19371
  function yp(e) {
19353
19372
  return (t, n) => -e(-t, n);
19354
19373
  }
19355
- function NN(e) {
19374
+ function UN(e) {
19356
19375
  const t = e(gp, vp), n = t.domain;
19357
19376
  let r = 10, i, s;
19358
19377
  function a() {
19359
- return i = IN(r), s = RN(r), n()[0] < 0 ? (i = yp(i), s = yp(s), e(LN, DN)) : e(gp, vp), t;
19378
+ return i = PN(r), s = NN(r), n()[0] < 0 ? (i = yp(i), s = yp(s), e(kN, RN)) : e(gp, vp), t;
19360
19379
  }
19361
19380
  return t.base = function(o) {
19362
19381
  return arguments.length ? (r = +o, a()) : r;
@@ -19401,7 +19420,7 @@ function NN(e) {
19401
19420
  })), t;
19402
19421
  }
19403
19422
  function Cv() {
19404
- const e = NN(bm()).domain([1, 10]);
19423
+ const e = UN(bm()).domain([1, 10]);
19405
19424
  return e.copy = () => Ic(e, Cv()).base(e.base()), ri.apply(e, arguments), e;
19406
19425
  }
19407
19426
  function Ia(e, t, n) {
@@ -19456,7 +19475,7 @@ ho.prototype = {
19456
19475
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
19457
19476
  }
19458
19477
  };
19459
- function PN(e) {
19478
+ function BN(e) {
19460
19479
  return new ho(e);
19461
19480
  }
19462
19481
  function Av(e) {
@@ -19502,7 +19521,7 @@ Av.prototype = {
19502
19521
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
19503
19522
  }
19504
19523
  };
19505
- function UN(e) {
19524
+ function HN(e) {
19506
19525
  return new Av(e);
19507
19526
  }
19508
19527
  function Lv(e) {
@@ -19544,7 +19563,7 @@ Lv.prototype = {
19544
19563
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
19545
19564
  }
19546
19565
  };
19547
- function BN(e) {
19566
+ function VN(e) {
19548
19567
  return new Lv(e);
19549
19568
  }
19550
19569
  function Dv(e, t) {
@@ -19568,7 +19587,7 @@ Dv.prototype = {
19568
19587
  this._x.push(+e), this._y.push(+t);
19569
19588
  }
19570
19589
  };
19571
- const HN = function e(t) {
19590
+ const GN = function e(t) {
19572
19591
  function n(r) {
19573
19592
  return t === 1 ? new ho(r) : new Dv(r, t);
19574
19593
  }
@@ -19628,7 +19647,7 @@ au.prototype = {
19628
19647
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19629
19648
  }
19630
19649
  };
19631
- const VN = function e(t) {
19650
+ const zN = function e(t) {
19632
19651
  function n(r) {
19633
19652
  return new au(r, t);
19634
19653
  }
@@ -19679,7 +19698,7 @@ ou.prototype = {
19679
19698
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19680
19699
  }
19681
19700
  };
19682
- const GN = function e(t) {
19701
+ const FN = function e(t) {
19683
19702
  function n(r) {
19684
19703
  return new ou(r, t);
19685
19704
  }
@@ -19724,7 +19743,7 @@ lu.prototype = {
19724
19743
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19725
19744
  }
19726
19745
  };
19727
- const zN = function e(t) {
19746
+ const jN = function e(t) {
19728
19747
  function n(r) {
19729
19748
  return new lu(r, t);
19730
19749
  }
@@ -19790,7 +19809,7 @@ kv.prototype = {
19790
19809
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19791
19810
  }
19792
19811
  };
19793
- const FN = function e(t) {
19812
+ const WN = function e(t) {
19794
19813
  function n(r) {
19795
19814
  return t ? new kv(r, t) : new au(r, 0);
19796
19815
  }
@@ -19845,7 +19864,7 @@ Rv.prototype = {
19845
19864
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19846
19865
  }
19847
19866
  };
19848
- const jN = function e(t) {
19867
+ const qN = function e(t) {
19849
19868
  function n(r) {
19850
19869
  return t ? new Rv(r, t) : new ou(r, 0);
19851
19870
  }
@@ -19894,7 +19913,7 @@ Iv.prototype = {
19894
19913
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
19895
19914
  }
19896
19915
  };
19897
- const WN = function e(t) {
19916
+ const YN = function e(t) {
19898
19917
  function n(r) {
19899
19918
  return t ? new Iv(r, t) : new lu(r, 0);
19900
19919
  }
@@ -19985,10 +20004,10 @@ Pv.prototype = {
19985
20004
  this._context.bezierCurveTo(t, e, r, n, s, i);
19986
20005
  }
19987
20006
  };
19988
- function qN(e) {
20007
+ function XN(e) {
19989
20008
  return new Pa(e);
19990
20009
  }
19991
- function YN(e) {
20010
+ function ZN(e) {
19992
20011
  return new Nv(e);
19993
20012
  }
19994
20013
  function Uv(e) {
@@ -20026,7 +20045,7 @@ function Ep(e) {
20026
20045
  for (s[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) s[t] = 2 * e[t + 1] - i[t + 1];
20027
20046
  return [i, s];
20028
20047
  }
20029
- function XN(e) {
20048
+ function KN(e) {
20030
20049
  return new Uv(e);
20031
20050
  }
20032
20051
  function po(e, t) {
@@ -20066,16 +20085,16 @@ po.prototype = {
20066
20085
  this._x = e, this._y = t;
20067
20086
  }
20068
20087
  };
20069
- function ZN(e) {
20088
+ function QN(e) {
20070
20089
  return new po(e, 0.5);
20071
20090
  }
20072
- function KN(e) {
20091
+ function JN(e) {
20073
20092
  return new po(e, 0);
20074
20093
  }
20075
- function QN(e) {
20094
+ function tP(e) {
20076
20095
  return new po(e, 1);
20077
20096
  }
20078
- class JN extends Dn {
20097
+ class eP extends Dn {
20079
20098
  /**
20080
20099
  * focal: object to zoom into
20081
20100
  * canvasElements: all the elements to translate and zoom on the chart area
@@ -20100,7 +20119,7 @@ class JN extends Dn {
20100
20119
  t.transition().duration(r.duration).ease(r.ease).attr("transform", ""), this.services.events.dispatchEvent(T.CanvasZoom.CANVAS_ZOOM_OUT);
20101
20120
  }
20102
20121
  }
20103
- class tP extends Dn {
20122
+ class nP extends Dn {
20104
20123
  init() {
20105
20124
  this.documentFragment = document.createDocumentFragment();
20106
20125
  }
@@ -20117,7 +20136,7 @@ class tP extends Dn {
20117
20136
  }) : (r = document.createEvent("Event"), r.initEvent(t, !1, !0)), this.documentFragment.dispatchEvent(r);
20118
20137
  }
20119
20138
  }
20120
- class eP extends Dn {
20139
+ class rP extends Dn {
20121
20140
  constructor(t, n) {
20122
20141
  super(t, n);
20123
20142
  }
@@ -20145,7 +20164,7 @@ class eP extends Dn {
20145
20164
  r.download = n, r.href = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
20146
20165
  }
20147
20166
  }
20148
- class nP extends Dn {
20167
+ class iP extends Dn {
20149
20168
  constructor() {
20150
20169
  super(...arguments), this.pendingTransitions = {};
20151
20170
  }
@@ -20169,7 +20188,7 @@ function Gi(e, t) {
20169
20188
  const n = +Bt(e) - +Bt(t);
20170
20189
  return n < 0 ? -1 : n > 0 ? 1 : n;
20171
20190
  }
20172
- function rP(e, t, n) {
20191
+ function sP(e, t, n) {
20173
20192
  const [r, i] = or(
20174
20193
  n?.in,
20175
20194
  e,
@@ -20177,12 +20196,12 @@ function rP(e, t, n) {
20177
20196
  );
20178
20197
  return r.getFullYear() - i.getFullYear();
20179
20198
  }
20180
- function iP(e, t, n) {
20199
+ function aP(e, t, n) {
20181
20200
  const [r, i] = or(
20182
20201
  n?.in,
20183
20202
  e,
20184
20203
  t
20185
- ), s = Gi(r, i), a = Math.abs(rP(r, i));
20204
+ ), s = Gi(r, i), a = Math.abs(sP(r, i));
20186
20205
  r.setFullYear(1584), i.setFullYear(1584);
20187
20206
  const o = Gi(r, i) === -s, l = s * (a - +o);
20188
20207
  return l === 0 ? 0 : l;
@@ -20204,10 +20223,10 @@ function uu(e, t, n) {
20204
20223
  function Bv(e, t, n) {
20205
20224
  return uu(e, t * 12, n);
20206
20225
  }
20207
- function sP(e, t, n) {
20226
+ function oP(e, t, n) {
20208
20227
  return Bv(e, -t, n);
20209
20228
  }
20210
- function aP(e, t, n) {
20229
+ function lP(e, t, n) {
20211
20230
  const [r, i] = or(
20212
20231
  n?.in,
20213
20232
  e,
@@ -20215,38 +20234,38 @@ function aP(e, t, n) {
20215
20234
  ), s = r.getFullYear() - i.getFullYear(), a = r.getMonth() - i.getMonth();
20216
20235
  return s * 12 + a;
20217
20236
  }
20218
- function oP(e, t) {
20237
+ function cP(e, t) {
20219
20238
  const n = Bt(e, t?.in);
20220
20239
  return n.setHours(23, 59, 59, 999), n;
20221
20240
  }
20222
- function lP(e, t) {
20241
+ function uP(e, t) {
20223
20242
  const n = Bt(e, t?.in), r = n.getMonth();
20224
20243
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
20225
20244
  }
20226
- function cP(e, t) {
20245
+ function hP(e, t) {
20227
20246
  const n = Bt(e, t?.in);
20228
- return +oP(n, t) == +lP(n, t);
20247
+ return +cP(n, t) == +uP(n, t);
20229
20248
  }
20230
- function uP(e, t, n) {
20249
+ function dP(e, t, n) {
20231
20250
  const [r, i, s] = or(
20232
20251
  n?.in,
20233
20252
  e,
20234
20253
  e,
20235
20254
  t
20236
20255
  ), a = Gi(i, s), o = Math.abs(
20237
- aP(i, s)
20256
+ lP(i, s)
20238
20257
  );
20239
20258
  if (o < 1) return 0;
20240
20259
  i.getMonth() === 1 && i.getDate() > 27 && i.setDate(30), i.setMonth(i.getMonth() - a * o);
20241
20260
  let l = Gi(i, s) === -a;
20242
- cP(r) && o === 1 && Gi(r, s) === 1 && (l = !1);
20261
+ hP(r) && o === 1 && Gi(r, s) === 1 && (l = !1);
20243
20262
  const c = a * (o - +l);
20244
20263
  return c === 0 ? 0 : c;
20245
20264
  }
20246
- function hP(e, t, n) {
20265
+ function pP(e, t, n) {
20247
20266
  return uu(e, -t, n);
20248
20267
  }
20249
- function dP(e, t, n) {
20268
+ function fP(e, t, n) {
20250
20269
  const [r, i] = or(
20251
20270
  n?.in,
20252
20271
  e,
@@ -20266,7 +20285,7 @@ function Hv(e, t, n) {
20266
20285
  const r = Bt(e, n?.in);
20267
20286
  return isNaN(t) ? Ae(e, NaN) : (t && r.setDate(r.getDate() + t), r);
20268
20287
  }
20269
- function pP(e, t, n) {
20288
+ function mP(e, t, n) {
20270
20289
  return Hv(e, -t, n);
20271
20290
  }
20272
20291
  function hu(e) {
@@ -20275,7 +20294,7 @@ function hu(e) {
20275
20294
  return n === 0 ? 0 : n;
20276
20295
  };
20277
20296
  }
20278
- function fP(e, t, n) {
20297
+ function gP(e, t, n) {
20279
20298
  const [r, i] = or(
20280
20299
  n?.in,
20281
20300
  e,
@@ -20289,7 +20308,7 @@ function Vv(e, t, n) {
20289
20308
  function Gv(e, t, n) {
20290
20309
  return Vv(e, t * af);
20291
20310
  }
20292
- function mP(e, t, n) {
20311
+ function vP(e, t, n) {
20293
20312
  return Gv(e, -t);
20294
20313
  }
20295
20314
  function zv(e, t) {
@@ -20316,7 +20335,7 @@ function ic(e, t, n) {
20316
20335
  function $p(e, t, n) {
20317
20336
  return ic(e, -t);
20318
20337
  }
20319
- class gP extends Dn {
20338
+ class yP extends Dn {
20320
20339
  constructor() {
20321
20340
  super(...arguments), this.scaleTypes = {
20322
20341
  top: null,
@@ -20503,9 +20522,9 @@ class gP extends Dn {
20503
20522
  const r = this.model.getOptions(), i = y(r, "axes", t);
20504
20523
  if (i.scaleType === et.TIME) {
20505
20524
  const s = y(r, "timeScale", "addSpaceOnEdges");
20506
- return vP(n, s);
20525
+ return xP(n, s);
20507
20526
  } else
20508
- return yP(n, Nn.paddingRatio, i.scaleType);
20527
+ return bP(n, Nn.paddingRatio, i.scaleType);
20509
20528
  }
20510
20529
  findVerticalAxesPositions() {
20511
20530
  const t = this.model.getOptions(), n = y(t, "axes"), r = this.isDualAxes();
@@ -20569,7 +20588,7 @@ class gP extends Dn {
20569
20588
  b.forEach((x) => {
20570
20589
  const { ...S } = x;
20571
20590
  let $ = 0, D = 0;
20572
- Object.values(AN(S, "sharedStackKey")).forEach((C) => {
20591
+ Object.values(DN(S, "sharedStackKey")).forEach((C) => {
20573
20592
  isNaN(C) || (C < 0 ? D += C : $ += C);
20574
20593
  }), E.push([D, $]);
20575
20594
  }), g = [
@@ -20620,9 +20639,9 @@ class gP extends Dn {
20620
20639
  };
20621
20640
  }
20622
20641
  }
20623
- function vP(e, t) {
20642
+ function xP(e, t) {
20624
20643
  const n = new Date(e[0]), r = new Date(e[1]);
20625
- return iP(r, n) > 1 ? [sP(n, t), Bv(r, t)] : uP(r, n) > 1 ? [hP(n, t), uu(r, t)] : dP(r, n) > 1 ? [pP(n, t), Hv(r, t)] : fP(r, n) > 1 ? [mP(n, t), Gv(r, t)] : Sp(r, n) > 30 ? [
20644
+ return aP(r, n) > 1 ? [oP(n, t), Bv(r, t)] : dP(r, n) > 1 ? [pP(n, t), uu(r, t)] : fP(r, n) > 1 ? [mP(n, t), Hv(r, t)] : gP(r, n) > 1 ? [vP(n, t), Gv(r, t)] : Sp(r, n) > 30 ? [
20626
20645
  Tp(n, t * 30),
20627
20646
  rc(r, t * 30)
20628
20647
  ] : Sp(r, n) > 1 ? [Tp(n, t), rc(r, t)] : wp(r, n) > 15 ? [
@@ -20630,7 +20649,7 @@ function vP(e, t) {
20630
20649
  ic(r, t * 15)
20631
20650
  ] : wp(r, n) > 1 ? [$p(n, t), ic(r, t)] : [n, r];
20632
20651
  }
20633
- function yP([e, t], n, r) {
20652
+ function bP([e, t], n, r) {
20634
20653
  const i = (t - e) * n, s = t <= 0 && t + i > 0 ? 0 : t + i;
20635
20654
  let a = e >= 0 && e - i < 0 ? 0 : e - i;
20636
20655
  if (r === et.LOG && a <= 0) {
@@ -20640,27 +20659,27 @@ function yP([e, t], n, r) {
20640
20659
  }
20641
20660
  return [a, s];
20642
20661
  }
20643
- class xP extends Dn {
20662
+ class _P extends Dn {
20644
20663
  constructor() {
20645
20664
  super(...arguments), this.curveTypes = {
20646
20665
  curveLinear: ro,
20647
20666
  curveLinearClosed: tg,
20648
- curveBasis: PN,
20649
- curveBasisClosed: UN,
20650
- curveBasisOpen: BN,
20651
- curveBundle: HN,
20652
- curveCardinal: VN,
20653
- curveCardinalClosed: GN,
20654
- curveCardinalOpen: zN,
20655
- curveCatmullRom: FN,
20656
- curveCatmullRomClosed: jN,
20657
- curveCatmullRomOpen: WN,
20658
- curveMonotoneX: qN,
20659
- curveMonotoneY: YN,
20660
- curveNatural: XN,
20661
- curveStep: ZN,
20662
- curveStepAfter: QN,
20663
- curveStepBefore: KN
20667
+ curveBasis: BN,
20668
+ curveBasisClosed: HN,
20669
+ curveBasisOpen: VN,
20670
+ curveBundle: GN,
20671
+ curveCardinal: zN,
20672
+ curveCardinalClosed: FN,
20673
+ curveCardinalOpen: jN,
20674
+ curveCatmullRom: WN,
20675
+ curveCatmullRomClosed: qN,
20676
+ curveCatmullRomOpen: YN,
20677
+ curveMonotoneX: XN,
20678
+ curveMonotoneY: ZN,
20679
+ curveNatural: KN,
20680
+ curveStep: QN,
20681
+ curveStepAfter: tP,
20682
+ curveStepBefore: JN
20664
20683
  };
20665
20684
  }
20666
20685
  getD3Curve() {
@@ -20675,7 +20694,7 @@ class xP extends Dn {
20675
20694
  return console.warn(`The curve type '${t}' is invalid, using 'curveLinear' instead`), this.curveTypes.curveLinear;
20676
20695
  }
20677
20696
  }
20678
- class bP extends Dn {
20697
+ class EP extends Dn {
20679
20698
  isZoomBarEnabled() {
20680
20699
  if (!this.services.cartesianScales || !y(this.model.getOptions(), "zoomBar", "top", "enabled"))
20681
20700
  return !1;
@@ -20782,37 +20801,37 @@ class bP extends Dn {
20782
20801
  return y(this.model.getOptions(), "zoomBar", t, "locked");
20783
20802
  }
20784
20803
  }
20785
- function _P(e, t, n) {
20804
+ function OP(e, t, n) {
20786
20805
  var r = e.length;
20787
20806
  return n = n === void 0 ? r : n, !t && n >= r ? e : Mv(e, t, n);
20788
20807
  }
20789
- var EP = "\\ud800-\\udfff", OP = "\\u0300-\\u036f", SP = "\\ufe20-\\ufe2f", TP = "\\u20d0-\\u20ff", wP = OP + SP + TP, $P = "\\ufe0e\\ufe0f", MP = "\\u200d", CP = RegExp("[" + MP + EP + wP + $P + "]");
20808
+ var SP = "\\ud800-\\udfff", TP = "\\u0300-\\u036f", wP = "\\ufe20-\\ufe2f", $P = "\\u20d0-\\u20ff", MP = TP + wP + $P, CP = "\\ufe0e\\ufe0f", AP = "\\u200d", LP = RegExp("[" + AP + SP + MP + CP + "]");
20790
20809
  function Fv(e) {
20791
- return CP.test(e);
20810
+ return LP.test(e);
20792
20811
  }
20793
- function AP(e) {
20812
+ function DP(e) {
20794
20813
  return e.split("");
20795
20814
  }
20796
- var jv = "\\ud800-\\udfff", LP = "\\u0300-\\u036f", DP = "\\ufe20-\\ufe2f", kP = "\\u20d0-\\u20ff", RP = LP + DP + kP, IP = "\\ufe0e\\ufe0f", NP = "[" + jv + "]", sc = "[" + RP + "]", ac = "\\ud83c[\\udffb-\\udfff]", PP = "(?:" + sc + "|" + ac + ")", Wv = "[^" + jv + "]", qv = "(?:\\ud83c[\\udde6-\\uddff]){2}", Yv = "[\\ud800-\\udbff][\\udc00-\\udfff]", UP = "\\u200d", Xv = PP + "?", Zv = "[" + IP + "]?", BP = "(?:" + UP + "(?:" + [Wv, qv, Yv].join("|") + ")" + Zv + Xv + ")*", HP = Zv + Xv + BP, VP = "(?:" + [Wv + sc + "?", sc, qv, Yv, NP].join("|") + ")", GP = RegExp(ac + "(?=" + ac + ")|" + VP + HP, "g");
20797
- function zP(e) {
20798
- return e.match(GP) || [];
20815
+ var jv = "\\ud800-\\udfff", kP = "\\u0300-\\u036f", RP = "\\ufe20-\\ufe2f", IP = "\\u20d0-\\u20ff", NP = kP + RP + IP, PP = "\\ufe0e\\ufe0f", UP = "[" + jv + "]", sc = "[" + NP + "]", ac = "\\ud83c[\\udffb-\\udfff]", BP = "(?:" + sc + "|" + ac + ")", Wv = "[^" + jv + "]", qv = "(?:\\ud83c[\\udde6-\\uddff]){2}", Yv = "[\\ud800-\\udbff][\\udc00-\\udfff]", HP = "\\u200d", Xv = BP + "?", Zv = "[" + PP + "]?", VP = "(?:" + HP + "(?:" + [Wv, qv, Yv].join("|") + ")" + Zv + Xv + ")*", GP = Zv + Xv + VP, zP = "(?:" + [Wv + sc + "?", sc, qv, Yv, UP].join("|") + ")", FP = RegExp(ac + "(?=" + ac + ")|" + zP + GP, "g");
20816
+ function jP(e) {
20817
+ return e.match(FP) || [];
20799
20818
  }
20800
- function FP(e) {
20801
- return Fv(e) ? zP(e) : AP(e);
20819
+ function WP(e) {
20820
+ return Fv(e) ? jP(e) : DP(e);
20802
20821
  }
20803
- function jP(e) {
20822
+ function qP(e) {
20804
20823
  return function(t) {
20805
20824
  t = ls(t);
20806
- var n = Fv(t) ? FP(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? _P(n, 1).join("") : t.slice(1);
20825
+ var n = Fv(t) ? WP(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? OP(n, 1).join("") : t.slice(1);
20807
20826
  return r[e]() + i;
20808
20827
  };
20809
20828
  }
20810
- var WP = jP("toUpperCase");
20811
- function qP(e) {
20812
- return WP(ls(e).toLowerCase());
20829
+ var YP = qP("toUpperCase");
20830
+ function XP(e) {
20831
+ return YP(ls(e).toLowerCase());
20813
20832
  }
20814
- var YP = Og(function(e, t, n) {
20815
- return t = t.toLowerCase(), e + (n ? qP(t) : t);
20833
+ var ZP = Og(function(e, t, n) {
20834
+ return t = t.toLowerCase(), e + (n ? XP(t) : t);
20816
20835
  });
20817
20836
  class qe {
20818
20837
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -20820,12 +20839,12 @@ class qe {
20820
20839
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
20821
20840
  constructor(t, n) {
20822
20841
  this.components = [], this.services = {
20823
- canvasZoom: JN,
20842
+ canvasZoom: eP,
20824
20843
  domUtils: N,
20825
- events: tP,
20826
- files: eP,
20844
+ events: nP,
20845
+ files: rP,
20827
20846
  gradientUtils: Al,
20828
- transitions: nP
20847
+ transitions: iP
20829
20848
  }, this.model = new sn(this.services);
20830
20849
  }
20831
20850
  // Contains the code that uses properties that are overridable by the super-class
@@ -20951,9 +20970,9 @@ class qe {
20951
20970
  class fe extends qe {
20952
20971
  constructor(t, n) {
20953
20972
  super(t, n), this.services = Object.assign(this.services, {
20954
- cartesianScales: gP,
20955
- curves: xP,
20956
- zoom: bP
20973
+ cartesianScales: yP,
20974
+ curves: _P,
20975
+ zoom: EP
20957
20976
  }), this.model = new dr(this.services);
20958
20977
  }
20959
20978
  getAxisChartComponents(t, n) {
@@ -21052,7 +21071,7 @@ class fe extends qe {
21052
21071
  ];
21053
21072
  }
21054
21073
  }
21055
- class XP extends qe {
21074
+ class KP extends qe {
21056
21075
  constructor(t, n) {
21057
21076
  super(t, n), this.model = new Xw(this.services), this.model.setOptions(kt(wt.alluvialChart, n.options)), this.init(t, n);
21058
21077
  }
@@ -21068,7 +21087,7 @@ class XP extends qe {
21068
21087
  });
21069
21088
  }
21070
21089
  }
21071
- class ZP extends fe {
21090
+ class QP extends fe {
21072
21091
  constructor(t, n) {
21073
21092
  super(t, n), this.model.setOptions(
21074
21093
  kt(On(wt.areaChart), n.options)
@@ -21097,7 +21116,7 @@ class ZP extends fe {
21097
21116
  return this.getAxisChartComponents(t);
21098
21117
  }
21099
21118
  }
21100
- class KP extends fe {
21119
+ class JP extends fe {
21101
21120
  constructor(t, n) {
21102
21121
  super(t, n), this.model = new Zw(this.services), this.model.setOptions(kt(wt.boxplotChart, n.options)), this.init(t, n);
21103
21122
  }
@@ -21123,7 +21142,7 @@ class KP extends fe {
21123
21142
  });
21124
21143
  }
21125
21144
  }
21126
- class QP extends fe {
21145
+ class t3 extends fe {
21127
21146
  constructor(t, n) {
21128
21147
  super(t, n), this.model.setOptions(kt(wt.bubbleChart, n.options)), this.init(t, n);
21129
21148
  }
@@ -21145,7 +21164,7 @@ class QP extends fe {
21145
21164
  return this.getAxisChartComponents(t);
21146
21165
  }
21147
21166
  }
21148
- class JP extends fe {
21167
+ class e3 extends fe {
21149
21168
  constructor(t, n) {
21150
21169
  super(t, n), this.model = new Kw(this.services), this.model.setOptions(kt(wt.bulletChart, n.options)), this.init(t, n);
21151
21170
  }
@@ -21166,7 +21185,7 @@ class JP extends fe {
21166
21185
  return this.getAxisChartComponents(t);
21167
21186
  }
21168
21187
  }
21169
- class t3 extends qe {
21188
+ class n3 extends qe {
21170
21189
  constructor(t, n) {
21171
21190
  super(t, n), this.model = new Qw(this.services), this.model.setOptions(
21172
21191
  kt(wt.choroplethChart, n.options)
@@ -21266,7 +21285,7 @@ class t3 extends qe {
21266
21285
  return this.getChartComponents(t);
21267
21286
  }
21268
21287
  }
21269
- class e3 extends qe {
21288
+ class r3 extends qe {
21270
21289
  constructor(t, n) {
21271
21290
  super(t, n), this.model = new Jw(this.services), this.model.setOptions(kt(wt.circlePackChart, n.options)), this.init(t, n);
21272
21291
  }
@@ -21289,7 +21308,7 @@ const Mp = {
21289
21308
  [Te.GROUPED_BAR]: [Ev, ii],
21290
21309
  [Te.STACKED_BAR]: [Tv, Ra]
21291
21310
  };
21292
- class n3 extends fe {
21311
+ class i3 extends fe {
21293
21312
  constructor(t, n) {
21294
21313
  super(t, n);
21295
21314
  const r = kt(wt.comboChart, n.options);
@@ -21307,7 +21326,7 @@ class n3 extends fe {
21307
21326
  `Invalid chart type "${i.type}" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.`
21308
21327
  ), null;
21309
21328
  let o = !1;
21310
- const l = `${YP(i.type)}Chart`;
21329
+ const l = `${ZP(i.type)}Chart`;
21311
21330
  return a = at({}, wt[l], this.model.getOptions(), i.options), i.type === Te.STACKED_AREA && (o = !0), Mp[i.type].map(
21312
21331
  (c) => new c(this.model, this.services, {
21313
21332
  groups: i.correspondingDatasets,
@@ -21365,7 +21384,7 @@ class Kv extends qe {
21365
21384
  return this.getChartComponents(t);
21366
21385
  }
21367
21386
  }
21368
- class r3 extends Kv {
21387
+ class s3 extends Kv {
21369
21388
  constructor(t, n) {
21370
21389
  super(t, n, !0), this.model.setOptions(kt(wt.donutChart, n.options)), this.init(t, n);
21371
21390
  }
@@ -21384,7 +21403,7 @@ class r3 extends Kv {
21384
21403
  return this.getChartComponents(t);
21385
21404
  }
21386
21405
  }
21387
- class i3 extends qe {
21406
+ class a3 extends qe {
21388
21407
  constructor(t, n) {
21389
21408
  super(t, n), this.model = new e$(this.services), this.model.setOptions(kt(wt.gaugeChart, n.options)), this.init(t, n);
21390
21409
  }
@@ -21398,7 +21417,7 @@ class i3 extends qe {
21398
21417
  return this.getChartComponents(t);
21399
21418
  }
21400
21419
  }
21401
- class s3 extends fe {
21420
+ class o3 extends fe {
21402
21421
  constructor(t, n) {
21403
21422
  super(t, n), this.model.setOptions(kt(wt.groupedBarChart, n.options)), this.init(t, n);
21404
21423
  }
@@ -21420,7 +21439,7 @@ class s3 extends fe {
21420
21439
  return this.getAxisChartComponents(t);
21421
21440
  }
21422
21441
  }
21423
- class a3 extends fe {
21442
+ class l3 extends fe {
21424
21443
  constructor(t, n) {
21425
21444
  super(t, n), this.model = new n$(this.services), this.model.setOptions(
21426
21445
  kt(wt.heatmapChart, n.options)
@@ -21525,7 +21544,7 @@ class a3 extends fe {
21525
21544
  return this.getAxisChartComponents(t);
21526
21545
  }
21527
21546
  }
21528
- class o3 extends fe {
21547
+ class c3 extends fe {
21529
21548
  constructor(t, n) {
21530
21549
  super(t, n), this.model = new r$(this.services), this.model.setOptions(kt(wt.histogramChart, n.options)), this.init(t, n), this.update();
21531
21550
  }
@@ -21544,7 +21563,7 @@ class o3 extends fe {
21544
21563
  return this.getAxisChartComponents(t);
21545
21564
  }
21546
21565
  }
21547
- class l3 extends fe {
21566
+ class u3 extends fe {
21548
21567
  constructor(t, n) {
21549
21568
  super(t, n), this.model.setOptions(kt(wt.lineChart, n.options)), this.init(t, n);
21550
21569
  }
@@ -21566,7 +21585,7 @@ class l3 extends fe {
21566
21585
  return this.getAxisChartComponents(t);
21567
21586
  }
21568
21587
  }
21569
- class c3 extends fe {
21588
+ class h3 extends fe {
21570
21589
  constructor(t, n) {
21571
21590
  super(t, n), this.model.setOptions(kt(wt.lollipopChart, n.options)), this.init(t, n);
21572
21591
  }
@@ -21589,7 +21608,7 @@ class c3 extends fe {
21589
21608
  return this.getAxisChartComponents(t);
21590
21609
  }
21591
21610
  }
21592
- class u3 extends qe {
21611
+ class d3 extends qe {
21593
21612
  constructor(t, n) {
21594
21613
  super(t, n), this.model = new i$(this.services);
21595
21614
  const r = n.options.meter?.proportional ? at(On(wt.proportionalMeterChart), n.options) : at(On(wt.meterChart), n.options);
@@ -21638,7 +21657,7 @@ class u3 extends qe {
21638
21657
  });
21639
21658
  }
21640
21659
  }
21641
- class h3 extends qe {
21660
+ class p3 extends qe {
21642
21661
  constructor(t, n) {
21643
21662
  super(t, n), this.model = new s$(this.services), this.model.setOptions(kt(wt.radarChart, n.options)), this.init(t, n);
21644
21663
  }
@@ -21652,7 +21671,7 @@ class h3 extends qe {
21652
21671
  return this.getChartComponents(t);
21653
21672
  }
21654
21673
  }
21655
- class d3 extends fe {
21674
+ class f3 extends fe {
21656
21675
  constructor(t, n) {
21657
21676
  super(t, n), this.model.setOptions(kt(wt.scatterChart, n.options)), this.init(t, n);
21658
21677
  }
@@ -21674,7 +21693,7 @@ class d3 extends fe {
21674
21693
  return this.getAxisChartComponents(t);
21675
21694
  }
21676
21695
  }
21677
- class p3 extends qe {
21696
+ class m3 extends qe {
21678
21697
  constructor(t, n) {
21679
21698
  super(t, n), this.model = new a$(this.services), this.model.setOptions(kt(wt.treeChart, n.options)), this.init(t, n);
21680
21699
  }
@@ -21690,7 +21709,7 @@ class p3 extends qe {
21690
21709
  });
21691
21710
  }
21692
21711
  }
21693
- class f3 extends qe {
21712
+ class g3 extends qe {
21694
21713
  constructor(t, n) {
21695
21714
  super(t, n), this.model = new o$(this.services), this.model.setOptions(kt(wt.treemapChart, n.options)), this.init(t, n);
21696
21715
  }
@@ -21704,7 +21723,7 @@ class f3 extends qe {
21704
21723
  return this.getChartComponents(t);
21705
21724
  }
21706
21725
  }
21707
- class m3 extends fe {
21726
+ class v3 extends fe {
21708
21727
  constructor(t, n) {
21709
21728
  super(t, n), this.model.setOptions(kt(wt.simpleBarChart, n.options)), this.init(t, n);
21710
21729
  }
@@ -21726,7 +21745,7 @@ class m3 extends fe {
21726
21745
  return this.getAxisChartComponents(t);
21727
21746
  }
21728
21747
  }
21729
- class g3 extends fe {
21748
+ class y3 extends fe {
21730
21749
  constructor(t, n) {
21731
21750
  super(t, n), this.model.setOptions(kt(wt.stackedAreaChart, n.options)), this.init(t, n);
21732
21751
  }
@@ -21754,7 +21773,7 @@ class g3 extends fe {
21754
21773
  return this.getAxisChartComponents(t);
21755
21774
  }
21756
21775
  }
21757
- class v3 extends fe {
21776
+ class x3 extends fe {
21758
21777
  constructor(t, n) {
21759
21778
  super(t, n), this.model.setOptions(kt(wt.stackedBarChart, n.options)), this.init(t, n);
21760
21779
  }
@@ -21777,7 +21796,7 @@ class v3 extends fe {
21777
21796
  return this.getAxisChartComponents(t);
21778
21797
  }
21779
21798
  }
21780
- class y3 extends qe {
21799
+ class b3 extends qe {
21781
21800
  constructor(t, n) {
21782
21801
  super(t, n), this.model = new l$(this.services), this.model.setOptions(kt(wt.wordCloudChart, n.options)), this.init(t, n);
21783
21802
  }
@@ -21829,22 +21848,20 @@ function Lt(e, t) {
21829
21848
  template: '<div ref="chartDiv"></div>'
21830
21849
  });
21831
21850
  }
21832
- const x3 = Lt(XP, "CcvAlluvialChart"), b3 = Lt(ZP, "CcvAreaChart"), _3 = Lt(KP, "CcvBoxplotChart"), E3 = Lt(QP, "CcvBubbleChart"), O3 = Lt(JP, "CcvBulletChart"), Cp = Lt(
21833
- t3,
21851
+ const _3 = Lt(KP, "CcvAlluvialChart"), E3 = Lt(QP, "CcvAreaChart"), O3 = Lt(JP, "CcvBoxplotChart"), S3 = Lt(t3, "CcvBubbleChart"), T3 = Lt(e3, "CcvBulletChart"), Cp = Lt(
21852
+ n3,
21834
21853
  "ExperimentalCcvChoroplethChart"
21835
- ), S3 = Lt(e3, "CcvCirclePackChart"), T3 = Lt(n3, "CcvComboChart"), w3 = Lt(r3, "CcvDonutChart"), $3 = Lt(i3, "CcvGaugeChart"), M3 = Lt(s3, "CcvGroupedBarChart"), C3 = Lt(a3, "CcvHeatmapChart"), A3 = Lt(o3, "CcvHistogramChart"), L3 = Lt(l3, "CcvLineChart"), D3 = Lt(c3, "CcvLollipopChart"), k3 = Lt(u3, "CcvMeterChart"), R3 = Lt(Kv, "CcvPieChart"), I3 = Lt(h3, "CcvRadarChart"), N3 = Lt(d3, "CcvScatterChart"), P3 = Lt(m3, "CcvSimpleBarChart"), U3 = Lt(g3, "CcvStackedAreaChart"), B3 = Lt(v3, "CcvStackedBarChart"), H3 = Lt(p3, "CcvTreeChart"), V3 = Lt(f3, "CcvTreemapChart"), G3 = Lt(
21836
- y3,
21837
- "CcvWordCloudChart"
21838
- ), z3 = [
21839
- x3,
21854
+ ), w3 = Lt(r3, "CcvCirclePackChart"), $3 = Lt(i3, "CcvComboChart"), M3 = Lt(s3, "CcvDonutChart"), C3 = Lt(a3, "CcvGaugeChart"), A3 = Lt(o3, "CcvGroupedBarChart"), L3 = Lt(l3, "CcvHeatmapChart"), D3 = Lt(c3, "CcvHistogramChart"), k3 = Lt(u3, "CcvLineChart"), R3 = Lt(h3, "CcvLollipopChart"), I3 = Lt(d3, "CcvMeterChart"), N3 = Lt(Kv, "CcvPieChart"), P3 = Lt(p3, "CcvRadarChart"), U3 = Lt(f3, "CcvScatterChart"), B3 = Lt(v3, "CcvSimpleBarChart"), H3 = Lt(y3, "CcvStackedAreaChart"), V3 = Lt(x3, "CcvStackedBarChart"), G3 = Lt(m3, "CcvTreeChart"), z3 = Lt(g3, "CcvTreemapChart"), F3 = Lt(
21840
21855
  b3,
21856
+ "CcvWordCloudChart"
21857
+ ), j3 = [
21841
21858
  _3,
21842
21859
  E3,
21843
21860
  O3,
21844
- Cp,
21845
- Cp,
21846
21861
  S3,
21847
21862
  T3,
21863
+ Cp,
21864
+ Cp,
21848
21865
  w3,
21849
21866
  $3,
21850
21867
  M3,
@@ -21861,10 +21878,12 @@ const x3 = Lt(XP, "CcvAlluvialChart"), b3 = Lt(ZP, "CcvAreaChart"), _3 = Lt(KP,
21861
21878
  B3,
21862
21879
  H3,
21863
21880
  V3,
21864
- G3
21865
- ], oU = {
21881
+ G3,
21882
+ z3,
21883
+ F3
21884
+ ], cU = {
21866
21885
  install(e, t) {
21867
- for (const n of z3)
21886
+ for (const n of j3)
21868
21887
  n.name && (!t || t.includes(n.name)) && e.component(n.name, n);
21869
21888
  }
21870
21889
  };
@@ -21881,31 +21900,31 @@ export {
21881
21900
  Hs as CalloutDirections,
21882
21901
  Np as CanvasZoomEvent,
21883
21902
  zt as CartesianOrientations,
21884
- x3 as CcvAlluvialChart,
21885
- b3 as CcvAreaChart,
21886
- _3 as CcvBoxplotChart,
21887
- E3 as CcvBubbleChart,
21888
- O3 as CcvBulletChart,
21903
+ _3 as CcvAlluvialChart,
21904
+ E3 as CcvAreaChart,
21905
+ O3 as CcvBoxplotChart,
21906
+ S3 as CcvBubbleChart,
21907
+ T3 as CcvBulletChart,
21889
21908
  Cp as CcvChoroplethChart,
21890
- S3 as CcvCirclePackChart,
21891
- T3 as CcvComboChart,
21892
- w3 as CcvDonutChart,
21893
- $3 as CcvGaugeChart,
21894
- M3 as CcvGroupedBarChart,
21895
- C3 as CcvHeatmapChart,
21896
- A3 as CcvHistogramChart,
21897
- L3 as CcvLineChart,
21898
- D3 as CcvLollipopChart,
21899
- k3 as CcvMeterChart,
21900
- R3 as CcvPieChart,
21901
- I3 as CcvRadarChart,
21902
- N3 as CcvScatterChart,
21903
- P3 as CcvSimpleBarChart,
21904
- U3 as CcvStackedAreaChart,
21905
- B3 as CcvStackedBarChart,
21906
- H3 as CcvTreeChart,
21907
- V3 as CcvTreemapChart,
21908
- G3 as CcvWordCloudChart,
21909
+ w3 as CcvCirclePackChart,
21910
+ $3 as CcvComboChart,
21911
+ M3 as CcvDonutChart,
21912
+ C3 as CcvGaugeChart,
21913
+ A3 as CcvGroupedBarChart,
21914
+ L3 as CcvHeatmapChart,
21915
+ D3 as CcvHistogramChart,
21916
+ k3 as CcvLineChart,
21917
+ R3 as CcvLollipopChart,
21918
+ I3 as CcvMeterChart,
21919
+ N3 as CcvPieChart,
21920
+ P3 as CcvRadarChart,
21921
+ U3 as CcvScatterChart,
21922
+ B3 as CcvSimpleBarChart,
21923
+ H3 as CcvStackedAreaChart,
21924
+ V3 as CcvStackedBarChart,
21925
+ G3 as CcvTreeChart,
21926
+ z3 as CcvTreemapChart,
21927
+ F3 as CcvWordCloudChart,
21909
21928
  Ap as ChartEvent,
21910
21929
  ef as ChartTheme,
21911
21930
  Te as ChartTypes,
@@ -21946,6 +21965,6 @@ export {
21946
21965
  Ze as ZoomBarTypes,
21947
21966
  Ip as ZoomDomainEvent,
21948
21967
  Rp as ZoombarEvent,
21949
- oU as default
21968
+ cU as default
21950
21969
  };
21951
21970
  //# sourceMappingURL=index.mjs.map