@carbon/charts-react 1.15.1 → 1.15.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
@@ -33,7 +33,7 @@ const Y0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33
33
  ZoomBar: Tp,
34
34
  ZoomDomain: Mp
35
35
  }, Symbol.toStringTag, { value: "Module" })), O = Y0;
36
- var nt = /* @__PURE__ */ ((e) => (e.HTML = "html", e.SVG = "svg", e))(nt || {}), qp = /* @__PURE__ */ ((e) => (e.WHITE = "white", e.G100 = "g100", e.G90 = "g90", e.G10 = "g10", e))(qp || {}), st = /* @__PURE__ */ ((e) => (e.BACKGROUND = "background", e.FILL = "fill", e.STROKE = "stroke", e.TOOLTIP = "tooltip", e))(st || {}), z = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e.TOP = "top", e.BOTTOM = "bottom", e))(z || {}), sn = /* @__PURE__ */ ((e) => (e.GRAPH_VIEW = "graph_view", e.SLIDER_VIEW = "slider_view", e))(sn || {}), We = /* @__PURE__ */ ((e) => (e.END_LINE = "end_line", e.MID_LINE = "mid_line", e.FRONT_LINE = "front_line", e.NONE = "none", e))(We || {}), ee = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(ee || {}), tt = /* @__PURE__ */ ((e) => (e.TIME = "time", e.LINEAR = "linear", e.LOG = "log", e.LABELS = "labels", e.LABELS_RATIO = "labels-ratio", e))(tt || {}), es = /* @__PURE__ */ ((e) => (e.RIGHT = "right", e.LEFT = "left", e.TOP = "top", e.BOTTOM = "bottom", e))(es || {}), Jt = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(Jt || {}), cs = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(cs || {}), su = /* @__PURE__ */ ((e) => (e.TREE = "tree", e.DENDROGRAM = "dendrogram", e))(su || {}), Pt = /* @__PURE__ */ ((e) => (e.ROW = "row", e.COLUMN = "column", e.ROW_REVERSE = "row-reverse", e.COLUMN_REVERSE = "column-reverse", e))(Pt || {}), ut = /* @__PURE__ */ ((e) => (e.FIXED = "fixed", e.PREFERRED = "preferred", e.STRETCH = "stretch", e))(ut || {}), mi = /* @__PURE__ */ ((e) => (e.CENTER = "center", e))(mi || {}), ha = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(ha || {}), Qt = /* @__PURE__ */ ((e) => (e.GRID = "grid", e.VERT_OR_HORIZ = "vertOrHoriz", e.PIE = "pie", e.DONUT = "donut", e))(Qt || {}), yn = /* @__PURE__ */ ((e) => (e.START = "start", e.MIDDLE = "middle", e.END = "end", e))(yn || {}), xn = /* @__PURE__ */ ((e) => (e.BASELINE = "baseline", e.MIDDLE = "middle", e.HANGING = "hanging", e))(xn || {}), jr = /* @__PURE__ */ ((e) => (e.SEMI = "semi", e.FULL = "full", e))(jr || {}), zl = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e))(zl || {}), da = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e))(da || {}), fa = /* @__PURE__ */ ((e) => (e.ALWAYS = "always", e.AUTO = "auto", e.NEVER = "never", e))(fa || {}), Ie = /* @__PURE__ */ ((e) => (e.SCATTER = "scatter", e.LINE = "line", e.SIMPLE_BAR = "simple-bar", e.STACKED_BAR = "stacked-bar", e.GROUPED_BAR = "grouped-bar", e.AREA = "area", e.STACKED_AREA = "stacked-area", e))(Ie || {}), Mt = /* @__PURE__ */ ((e) => (e.EXPORT_CSV = "Export as CSV", e.EXPORT_PNG = "Export as PNG", e.EXPORT_JPG = "Export as JPG", e.ZOOM_IN = "Zoom in", e.ZOOM_OUT = "Zoom out", e.RESET_ZOOM = "Reset zoom", e.MAKE_FULLSCREEN = "Make fullscreen", e.EXIT_FULLSCREEN = "Exit fullscreen", e.SHOW_AS_DATATABLE = "Show as data-table", e.CUSTOM = "Custom", e))(Mt || {}), Gl = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Gl || {}), Kt = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.RADIUS = "radius", e.AREA = "area", e.SIZE = "size", e.LINE = "line", e.QUARTILE = "quartile", e.ZOOM = "zoom", e))(Kt || {}), pa = /* @__PURE__ */ ((e) => (e.LINEAR = "linear", e.QUANTIZE = "quantize", e))(pa || {}), ns = /* @__PURE__ */ ((e) => (e.ON = "on", e.AUTO = "auto", e.OFF = "off", e))(ns || {}), Eo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HOVERABLE = "hoverable", e))(Eo || {}), En = /* @__PURE__ */ ((e) => (e.geoEqualEarth = "geoEqualEarth", e.geoAlbers = "geoAlbers", e.geoConicEqualArea = "geoConicEqualArea", e.geoConicEquidistant = "geoConicEquidistant", e.geoEquirectangular = "geoEquirectangular", e.geoMercator = "geoMercator", e.geoNaturalEarth1 = "geoNaturalEarth1", e))(En || {});
36
+ var nt = /* @__PURE__ */ ((e) => (e.HTML = "html", e.SVG = "svg", e))(nt || {}), qp = /* @__PURE__ */ ((e) => (e.WHITE = "white", e.G100 = "g100", e.G90 = "g90", e.G10 = "g10", e))(qp || {}), st = /* @__PURE__ */ ((e) => (e.BACKGROUND = "background", e.FILL = "fill", e.STROKE = "stroke", e.TOOLTIP = "tooltip", e))(st || {}), z = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e.TOP = "top", e.BOTTOM = "bottom", e))(z || {}), sn = /* @__PURE__ */ ((e) => (e.GRAPH_VIEW = "graph_view", e.SLIDER_VIEW = "slider_view", e))(sn || {}), We = /* @__PURE__ */ ((e) => (e.END_LINE = "end_line", e.MID_LINE = "mid_line", e.FRONT_LINE = "front_line", e.NONE = "none", e))(We || {}), Jt = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(Jt || {}), tt = /* @__PURE__ */ ((e) => (e.TIME = "time", e.LINEAR = "linear", e.LOG = "log", e.LABELS = "labels", e.LABELS_RATIO = "labels-ratio", e))(tt || {}), es = /* @__PURE__ */ ((e) => (e.RIGHT = "right", e.LEFT = "left", e.TOP = "top", e.BOTTOM = "bottom", e))(es || {}), te = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(te || {}), cs = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(cs || {}), su = /* @__PURE__ */ ((e) => (e.TREE = "tree", e.DENDROGRAM = "dendrogram", e))(su || {}), Pt = /* @__PURE__ */ ((e) => (e.ROW = "row", e.COLUMN = "column", e.ROW_REVERSE = "row-reverse", e.COLUMN_REVERSE = "column-reverse", e))(Pt || {}), ut = /* @__PURE__ */ ((e) => (e.FIXED = "fixed", e.PREFERRED = "preferred", e.STRETCH = "stretch", e))(ut || {}), mi = /* @__PURE__ */ ((e) => (e.CENTER = "center", e))(mi || {}), ha = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(ha || {}), Qt = /* @__PURE__ */ ((e) => (e.GRID = "grid", e.VERT_OR_HORIZ = "vertOrHoriz", e.PIE = "pie", e.DONUT = "donut", e))(Qt || {}), yn = /* @__PURE__ */ ((e) => (e.START = "start", e.MIDDLE = "middle", e.END = "end", e))(yn || {}), xn = /* @__PURE__ */ ((e) => (e.BASELINE = "baseline", e.MIDDLE = "middle", e.HANGING = "hanging", e))(xn || {}), jr = /* @__PURE__ */ ((e) => (e.SEMI = "semi", e.FULL = "full", e))(jr || {}), zl = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e))(zl || {}), da = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e))(da || {}), fa = /* @__PURE__ */ ((e) => (e.ALWAYS = "always", e.AUTO = "auto", e.NEVER = "never", e))(fa || {}), Ie = /* @__PURE__ */ ((e) => (e.SCATTER = "scatter", e.LINE = "line", e.SIMPLE_BAR = "simple-bar", e.STACKED_BAR = "stacked-bar", e.GROUPED_BAR = "grouped-bar", e.AREA = "area", e.STACKED_AREA = "stacked-area", e))(Ie || {}), Mt = /* @__PURE__ */ ((e) => (e.EXPORT_CSV = "Export as CSV", e.EXPORT_PNG = "Export as PNG", e.EXPORT_JPG = "Export as JPG", e.ZOOM_IN = "Zoom in", e.ZOOM_OUT = "Zoom out", e.RESET_ZOOM = "Reset zoom", e.MAKE_FULLSCREEN = "Make fullscreen", e.EXIT_FULLSCREEN = "Exit fullscreen", e.SHOW_AS_DATATABLE = "Show as data-table", e.CUSTOM = "Custom", e))(Mt || {}), Gl = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Gl || {}), Kt = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.RADIUS = "radius", e.AREA = "area", e.SIZE = "size", e.LINE = "line", e.QUARTILE = "quartile", e.ZOOM = "zoom", e))(Kt || {}), pa = /* @__PURE__ */ ((e) => (e.LINEAR = "linear", e.QUANTIZE = "quantize", e))(pa || {}), ns = /* @__PURE__ */ ((e) => (e.ON = "on", e.AUTO = "auto", e.OFF = "off", e))(ns || {}), Eo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HOVERABLE = "hoverable", e))(Eo || {}), En = /* @__PURE__ */ ((e) => (e.geoEqualEarth = "geoEqualEarth", e.geoAlbers = "geoAlbers", e.geoConicEqualArea = "geoConicEqualArea", e.geoConicEquidistant = "geoConicEquidistant", e.geoEquirectangular = "geoEquirectangular", e.geoMercator = "geoMercator", e.geoNaturalEarth1 = "geoNaturalEarth1", e))(En || {});
37
37
  function pr(e, t) {
38
38
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
39
39
  }
@@ -4750,7 +4750,7 @@ function Ou() {
4750
4750
  }, gi.apply(ig(a), arguments);
4751
4751
  }
4752
4752
  const yl = /* @__PURE__ */ new Date(), xl = /* @__PURE__ */ new Date();
4753
- function te(e, t, n, r) {
4753
+ function ee(e, t, n, r) {
4754
4754
  function i(s) {
4755
4755
  return e(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
4756
4756
  }
@@ -4766,7 +4766,7 @@ function te(e, t, n, r) {
4766
4766
  l.push(c = /* @__PURE__ */ new Date(+s)), t(s, o), e(s);
4767
4767
  while (c < s && s < a);
4768
4768
  return l;
4769
- }, i.filter = (s) => te((a) => {
4769
+ }, i.filter = (s) => ee((a) => {
4770
4770
  if (a >= a)
4771
4771
  for (; e(a), !s(a); )
4772
4772
  a.setTime(a - 1);
@@ -4782,67 +4782,67 @@ function te(e, t, n, r) {
4782
4782
  ;
4783
4783
  }), n && (i.count = (s, a) => (yl.setTime(+s), xl.setTime(+a), e(yl), e(xl), Math.floor(n(yl, xl))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (a) => r(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i;
4784
4784
  }
4785
- const Ja = te(() => {
4785
+ const Ja = ee(() => {
4786
4786
  }, (e, t) => {
4787
4787
  e.setTime(+e + t);
4788
4788
  }, (e, t) => t - e);
4789
- Ja.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? te((t) => {
4789
+ Ja.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? ee((t) => {
4790
4790
  t.setTime(Math.floor(t / e) * e);
4791
4791
  }, (t, n) => {
4792
4792
  t.setTime(+t + n * e);
4793
4793
  }, (t, n) => (n - t) / e) : Ja);
4794
4794
  Ja.range;
4795
- const Sn = 1e3, Pe = Sn * 60, On = Pe * 60, Ln = On * 24, Tu = Ln * 7, bd = Ln * 30, bl = Ln * 365, Yr = te((e) => {
4795
+ const Sn = 1e3, Pe = Sn * 60, On = Pe * 60, Ln = On * 24, Tu = Ln * 7, bd = Ln * 30, bl = Ln * 365, Yr = ee((e) => {
4796
4796
  e.setTime(e - e.getMilliseconds());
4797
4797
  }, (e, t) => {
4798
4798
  e.setTime(+e + t * Sn);
4799
4799
  }, (e, t) => (t - e) / Sn, (e) => e.getUTCSeconds());
4800
4800
  Yr.range;
4801
- const Mu = te((e) => {
4801
+ const Mu = ee((e) => {
4802
4802
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * Sn);
4803
4803
  }, (e, t) => {
4804
4804
  e.setTime(+e + t * Pe);
4805
4805
  }, (e, t) => (t - e) / Pe, (e) => e.getMinutes());
4806
4806
  Mu.range;
4807
- const bw = te((e) => {
4807
+ const bw = ee((e) => {
4808
4808
  e.setUTCSeconds(0, 0);
4809
4809
  }, (e, t) => {
4810
4810
  e.setTime(+e + t * Pe);
4811
4811
  }, (e, t) => (t - e) / Pe, (e) => e.getUTCMinutes());
4812
4812
  bw.range;
4813
- const Cu = te((e) => {
4813
+ const Cu = ee((e) => {
4814
4814
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * Sn - e.getMinutes() * Pe);
4815
4815
  }, (e, t) => {
4816
4816
  e.setTime(+e + t * On);
4817
4817
  }, (e, t) => (t - e) / On, (e) => e.getHours());
4818
4818
  Cu.range;
4819
- const Ew = te((e) => {
4819
+ const Ew = ee((e) => {
4820
4820
  e.setUTCMinutes(0, 0, 0);
4821
4821
  }, (e, t) => {
4822
4822
  e.setTime(+e + t * On);
4823
4823
  }, (e, t) => (t - e) / On, (e) => e.getUTCHours());
4824
4824
  Ew.range;
4825
- const As = te(
4825
+ const As = ee(
4826
4826
  (e) => e.setHours(0, 0, 0, 0),
4827
4827
  (e, t) => e.setDate(e.getDate() + t),
4828
4828
  (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Pe) / Ln,
4829
4829
  (e) => e.getDate() - 1
4830
4830
  );
4831
4831
  As.range;
4832
- const Au = te((e) => {
4832
+ const Au = ee((e) => {
4833
4833
  e.setUTCHours(0, 0, 0, 0);
4834
4834
  }, (e, t) => {
4835
4835
  e.setUTCDate(e.getUTCDate() + t);
4836
4836
  }, (e, t) => (t - e) / Ln, (e) => e.getUTCDate() - 1);
4837
4837
  Au.range;
4838
- const _w = te((e) => {
4838
+ const _w = ee((e) => {
4839
4839
  e.setUTCHours(0, 0, 0, 0);
4840
4840
  }, (e, t) => {
4841
4841
  e.setUTCDate(e.getUTCDate() + t);
4842
4842
  }, (e, t) => (t - e) / Ln, (e) => Math.floor(e / Ln));
4843
4843
  _w.range;
4844
4844
  function Or(e) {
4845
- return te((t) => {
4845
+ return ee((t) => {
4846
4846
  t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
4847
4847
  }, (t, n) => {
4848
4848
  t.setDate(t.getDate() + n * 7);
@@ -4857,7 +4857,7 @@ li.range;
4857
4857
  Ow.range;
4858
4858
  Tw.range;
4859
4859
  function Tr(e) {
4860
- return te((t) => {
4860
+ return ee((t) => {
4861
4861
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
4862
4862
  }, (t, n) => {
4863
4863
  t.setUTCDate(t.getUTCDate() + n * 7);
@@ -4871,35 +4871,35 @@ Cw.range;
4871
4871
  ci.range;
4872
4872
  Aw.range;
4873
4873
  $w.range;
4874
- const $u = te((e) => {
4874
+ const $u = ee((e) => {
4875
4875
  e.setDate(1), e.setHours(0, 0, 0, 0);
4876
4876
  }, (e, t) => {
4877
4877
  e.setMonth(e.getMonth() + t);
4878
4878
  }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
4879
4879
  $u.range;
4880
- const Lw = te((e) => {
4880
+ const Lw = ee((e) => {
4881
4881
  e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
4882
4882
  }, (e, t) => {
4883
4883
  e.setUTCMonth(e.getUTCMonth() + t);
4884
4884
  }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
4885
4885
  Lw.range;
4886
- const Rn = te((e) => {
4886
+ const Rn = ee((e) => {
4887
4887
  e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
4888
4888
  }, (e, t) => {
4889
4889
  e.setFullYear(e.getFullYear() + t);
4890
4890
  }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
4891
- Rn.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : te((t) => {
4891
+ Rn.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : ee((t) => {
4892
4892
  t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
4893
4893
  }, (t, n) => {
4894
4894
  t.setFullYear(t.getFullYear() + n * e);
4895
4895
  });
4896
4896
  Rn.range;
4897
- const _r = te((e) => {
4897
+ const _r = ee((e) => {
4898
4898
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
4899
4899
  }, (e, t) => {
4900
4900
  e.setUTCFullYear(e.getUTCFullYear() + t);
4901
4901
  }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
4902
- _r.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : te((t) => {
4902
+ _r.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : ee((t) => {
4903
4903
  t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
4904
4904
  }, (t, n) => {
4905
4905
  t.setUTCFullYear(t.getUTCFullYear() + n * e);
@@ -8654,7 +8654,7 @@ const ge = "cds", wn = {
8654
8654
  position: es.BOTTOM,
8655
8655
  clickable: !0,
8656
8656
  truncation: Kr,
8657
- alignment: Jt.LEFT,
8657
+ alignment: te.LEFT,
8658
8658
  order: null,
8659
8659
  additionalItems: []
8660
8660
  }, B$ = {
@@ -8898,7 +8898,7 @@ const ue = {
8898
8898
  formatter: null,
8899
8899
  enabled: !0
8900
8900
  },
8901
- alignment: Jt.LEFT,
8901
+ alignment: te.LEFT,
8902
8902
  sortFunction: null,
8903
8903
  valueMapsTo: "value"
8904
8904
  }
@@ -8918,7 +8918,7 @@ const ue = {
8918
8918
  numberSpacing: 10,
8919
8919
  deltaFontSize: (e) => e / 8,
8920
8920
  valueFontSize: (e) => e / 2.5,
8921
- alignment: Jt.LEFT
8921
+ alignment: te.LEFT
8922
8922
  }
8923
8923
  }), Q$ = lt({}, vv, {
8924
8924
  donut: {
@@ -8927,7 +8927,7 @@ const ue = {
8927
8927
  titleFontSize: (e) => `${Math.min(e / 100 * 15, 15)}px`,
8928
8928
  titleYPosition: (e) => Math.min(e / 80 * 20, 20)
8929
8929
  },
8930
- alignment: Jt.LEFT
8930
+ alignment: te.LEFT
8931
8931
  }
8932
8932
  }), yv = lt({}, ue, {
8933
8933
  legend: {
@@ -8953,7 +8953,7 @@ const ue = {
8953
8953
  angle: "key",
8954
8954
  value: "value"
8955
8955
  },
8956
- alignment: Jt.LEFT
8956
+ alignment: te.LEFT
8957
8957
  },
8958
8958
  tooltip: {
8959
8959
  gridline: {
@@ -8983,7 +8983,7 @@ const ue = {
8983
8983
  data: lt(ue.data, {
8984
8984
  groupMapsTo: "source"
8985
8985
  }),
8986
- nodeAlignment: Jt.CENTER,
8986
+ nodeAlignment: te.CENTER,
8987
8987
  nodePadding: 24,
8988
8988
  monochrome: !1,
8989
8989
  nodes: []
@@ -9126,7 +9126,7 @@ const x = (e, ...t) => {
9126
9126
  return n;
9127
9127
  }
9128
9128
  return null;
9129
- }, xv = (e, t) => t === ee.HORIZONTAL ? {
9129
+ }, xv = (e, t) => t === Jt.HORIZONTAL ? {
9130
9130
  y0: e.x0,
9131
9131
  y1: e.x1,
9132
9132
  x0: e.y0,
@@ -9136,7 +9136,7 @@ const x = (e, ...t) => {
9136
9136
  return `M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`;
9137
9137
  };
9138
9138
  function Tn(e, t, n) {
9139
- return n === ee.VERTICAL ? [e, t] : [t, e];
9139
+ return n === Jt.VERTICAL ? [e, t] : [t, e];
9140
9140
  }
9141
9141
  const bv = 6048e5, cL = 864e5, Ev = 6e4, _v = 36e5;
9142
9142
  function vf(e) {
@@ -10563,7 +10563,7 @@ let fn = class {
10563
10563
  ...t.map((a) => [
10564
10564
  a.source,
10565
10565
  a.target,
10566
- n(a.value, r)
10566
+ a.value === null ? "&ndash;" : n(a.value, r)
10567
10567
  ])
10568
10568
  ];
10569
10569
  return super.formatTable({ headers: i, cells: s });
@@ -10694,7 +10694,7 @@ let fn = class {
10694
10694
  ...t.map((a) => [
10695
10695
  a.id === null ? "&ndash;" : a.id,
10696
10696
  a.name,
10697
- n(a.value, r)
10697
+ a.value === null ? "&ndash;" : n(a.value, r)
10698
10698
  ])
10699
10699
  ];
10700
10700
  return super.formatTable({ headers: i, cells: s });
@@ -10963,7 +10963,7 @@ let fn = class {
10963
10963
  ...t.map((l) => [
10964
10964
  l[n.identifier] === null ? "&ndash;" : l[n.identifier],
10965
10965
  l[r.identifier] === null ? "&ndash;" : l[r.identifier],
10966
- i(l.value, s)
10966
+ l.value === null ? "&ndash;" : i(l.value, s)
10967
10967
  ])
10968
10968
  ];
10969
10969
  return super.formatTable({ headers: a, cells: o });
@@ -11044,17 +11044,19 @@ let fn = class {
11044
11044
  l = ["Group", "Value", ...i ? ["Status"] : []], c = [
11045
11045
  [
11046
11046
  d[r],
11047
- a(d.value, o),
11047
+ d.value === null ? "&ndash;" : a(d.value, o),
11048
11048
  ...i ? [i] : []
11049
11049
  ]
11050
11050
  ];
11051
11051
  } else
11052
11052
  u = x(s, "total") || this.getMaximumDomain(t), l = ["Group", "Value", "Percentage of total"], c = [
11053
11053
  ...t.map((h) => {
11054
- const f = h.value, p = Number((h.value / u * 100).toFixed(2));
11054
+ let f;
11055
+ h.value !== null && h.value !== void 0 ? f = Number(h.value) : f = 0;
11056
+ let p = Number((h.value / u * 100).toFixed(2));
11055
11057
  return [
11056
11058
  h[r],
11057
- a(f, o),
11059
+ h.value === null ? "&ndash;" : a(f, o),
11058
11060
  a(p, o) + " %"
11059
11061
  ];
11060
11062
  })
@@ -11104,7 +11106,11 @@ let fn = class {
11104
11106
  const t = this.getDisplayData(), { number: n, code: r } = x(this.getOptions(), "locale"), i = ["Child", "Group", "Value"], s = [];
11105
11107
  return t.forEach((a) => {
11106
11108
  Array.isArray(a.children) ? a.children.forEach((o) => {
11107
- s.push([o.name, a.name, n(o.value, r)]);
11109
+ s.push([
11110
+ o.name,
11111
+ a.name,
11112
+ o.value === null ? "&ndash;" : n(o.value, r)
11113
+ ]);
11108
11114
  }) : x(a.name) !== null && x(a.value) && s.push(["–", a.name, n(a.value, r)]);
11109
11115
  }), super.formatTable({ headers: i, cells: s });
11110
11116
  }
@@ -15212,7 +15218,7 @@ class rh extends Et {
15212
15218
  render(t = !1) {
15213
15219
  const n = this.getOptions(), r = x(n, "legend"), i = x(r, "alignment"), s = x(n, "legend", "orientation");
15214
15220
  let a = this.model.getDataGroups();
15215
- const { DISABLED: o } = jt.items.status, l = a.some((g) => g.status === o), c = x(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === Jt.CENTER).classed("right-aligned", i === Jt.RIGHT).classed(s, !0).classed("has-deactivated-items", l).attr("role", ht.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
15221
+ const { DISABLED: o } = jt.items.status, l = a.some((g) => g.status === o), c = x(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === te.CENTER).classed("right-aligned", i === te.RIGHT).classed(s, !0).classed("has-deactivated-items", l).attr("role", ht.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
15216
15222
  c && (a = this.sortDataGroups(a, c));
15217
15223
  const d = u.selectAll("div.legend-item").data(a, (g) => g.name), h = d.enter().append("div").attr("class", "legend-item");
15218
15224
  h.merge(u.selectAll("div.legend-item")).classed("active", function(g) {
@@ -16240,7 +16246,7 @@ class HN extends Et {
16240
16246
  s.alluvial.nodePadding > Ve.minNodePadding && (l = s.alluvial.nodePadding);
16241
16247
  const c = x(s, "alluvial", "nodeAlignment");
16242
16248
  let u = Vv;
16243
- c === Jt.LEFT ? u = pD : c === Jt.RIGHT && (u = mD);
16249
+ c === te.LEFT ? u = pD : c === te.RIGHT && (u = mD);
16244
16250
  const d = xD().nodeId((g) => g.name).nodeWidth(Ve.nodeWidth).nodePadding(l).nodeAlign(u).extent([
16245
16251
  [2, 30],
16246
16252
  [r - 2, i]
@@ -16597,7 +16603,7 @@ class w0 extends Et {
16597
16603
  const h = (_, S) => {
16598
16604
  x(r, "axes", _, "includeZero") === !1 && S[0] > 0 && S[1] > 0 && (d = S[0]);
16599
16605
  }, f = (_) => u ? s.getBoundedScaledValues(_)[0] : s.getRangeValue(d), p = (_) => u ? s.getBoundedScaledValues(_)[1] : s.getRangeValue(_);
16600
- a === ee.VERTICAL ? (i = s.getMainYScale().domain(), h(s.getMainYAxisPosition(), i), o.x((_) => s.getDomainValue(_)).y0((_) => f(_)).y1((_) => p(_))) : (i = s.getMainXScale().domain(), h(s.getMainXAxisPosition(), i), o.x0((_) => f(_)).x1((_) => p(_)).y((_) => s.getDomainValue(_)));
16606
+ a === Jt.VERTICAL ? (i = s.getMainYScale().domain(), h(s.getMainYAxisPosition(), i), o.x((_) => s.getDomainValue(_)).y0((_) => f(_)).y1((_) => p(_))) : (i = s.getMainXScale().domain(), h(s.getMainXAxisPosition(), i), o.x0((_) => f(_)).x1((_) => p(_)).y((_) => s.getDomainValue(_)));
16601
16607
  const v = x(r, "color", "gradient", "enabled"), m = l && l.length === 1 && v;
16602
16608
  l.length > 1 && v && console.error("Gradients can only be enabled when having 1 single dataset");
16603
16609
  const y = n.selectAll("path.area").data(l, (_) => _.name), g = I(this.services.domUtils.getMainContainer());
@@ -16783,7 +16789,7 @@ class Kn extends Et {
16783
16789
  // @ts-ignore
16784
16790
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
16785
16791
  showRuler(t, [n, r]) {
16786
- const i = this.parent, s = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), u = s === ee.HORIZONTAL ? r : n, d = N.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), h = N.appendOrSelect(d, "line.ruler-line"), f = i.selectAll("[role=graphics-symbol]"), p = a.map((m) => ({
16792
+ const i = this.parent, s = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [l, c] = o.range(), u = s === Jt.HORIZONTAL ? r : n, d = N.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), h = N.appendOrSelect(d, "line.ruler-line"), f = i.selectAll("[role=graphics-symbol]"), p = a.map((m) => ({
16787
16793
  domainValue: this.services.cartesianScales.getDomainValue(m),
16788
16794
  originalData: m
16789
16795
  })).filter((m) => VN(m.domainValue, u));
@@ -17551,7 +17557,7 @@ class pe extends Et {
17551
17557
  }
17552
17558
  renderVertOrHorizSkeleton(t) {
17553
17559
  const n = this.services.cartesianScales.getOrientation();
17554
- this.setScales(), this.drawBackdrop(t), n === ee.VERTICAL && this.drawYGrid(t), n === ee.HORIZONTAL && this.drawXGrid(t), this.setShimmerEffect("shimmer-lines");
17560
+ this.setScales(), this.drawBackdrop(t), n === Jt.VERTICAL && this.drawYGrid(t), n === Jt.HORIZONTAL && this.drawXGrid(t), this.setShimmerEffect("shimmer-lines");
17555
17561
  }
17556
17562
  renderPieSkeleton(t) {
17557
17563
  const n = this.computeOuterRadius(), r = 0;
@@ -17602,7 +17608,7 @@ class pe extends Et {
17602
17608
  r ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
17603
17609
  );
17604
17610
  let p = t + Nt.xOffset;
17605
- c === Jt.CENTER ? p = s / 2 : c === Jt.RIGHT && (p = s - t - Nt.xOffset);
17611
+ c === te.CENTER ? p = s / 2 : c === te.RIGHT && (p = s - t - Nt.xOffset);
17606
17612
  const v = t + Nt.yOffset;
17607
17613
  f.attr("transform", `translate(${p}, ${v})`);
17608
17614
  }
@@ -17642,7 +17648,7 @@ class zN extends Et {
17642
17648
  const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, s = this.model.getDataGroupNames(), a = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [l, c] = a.range(), [u, d] = o.range(), h = c - l, f = u - d;
17643
17649
  if (h === 0)
17644
17650
  return;
17645
- const { cartesianScales: p } = this.services, v = p.getOrientation(), m = v === ee.VERTICAL, [y, g] = Tn(
17651
+ const { cartesianScales: p } = this.services, v = p.getOrientation(), m = v === Jt.VERTICAL, [y, g] = Tn(
17646
17652
  (M) => this.services.cartesianScales.getDomainValue(M),
17647
17653
  (M) => this.services.cartesianScales.getRangeValue(M),
17648
17654
  v
@@ -18370,7 +18376,7 @@ class tP extends Kn {
18370
18376
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18371
18377
  showRuler(t, [n, r]) {
18372
18378
  const i = this.parent, s = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), l = a.getRangeScale(), [c, u] = l.range(), d = a.getDomainScale(), h = d.invert(
18373
- o === ee.VERTICAL ? n : r
18379
+ o === Jt.VERTICAL ? n : r
18374
18380
  ), f = N.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), p = N.appendOrSelect(f, "line.ruler-line"), v = i.selectAll("[role=graphics-symbol]").filter((m) => {
18375
18381
  if (parseFloat(_t(m, "data.x0")) <= h && parseFloat(_t(m, "data.x1")) >= h)
18376
18382
  return !0;
@@ -18606,7 +18612,7 @@ class lP extends Ps {
18606
18612
  */
18607
18613
  appendPercentage() {
18608
18614
  const t = x(this.model.getDisplayData(), 0, "value"), { code: n, number: r } = x(this.getOptions(), "locale"), i = this.getComponentContainer(), s = N.appendOrSelect(i, "text.meter-title"), a = x(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [t] : [], o = i.selectAll("text.percent-value").data(a), l = re.statusBar.paddingRight;
18609
- o.enter().append("text").classed("percent-value", !0).merge(o).text((c) => `${r(c, n)}%`).attr("x", +s.attr("x") + s.node().getComputedTextLength() + l).attr("y", s.attr("y")), o.exit().remove();
18615
+ o.enter().append("text").classed("percent-value", !0).merge(o).text((c) => `${c != null ? r(c, n) : 0}%`).attr("x", +s.attr("x") + s.node().getComputedTextLength() + l).attr("y", s.attr("y")), o.exit().remove();
18610
18616
  }
18611
18617
  /**
18612
18618
  * Uses the parent class truncate logic
@@ -18940,7 +18946,7 @@ class T0 extends Et {
18940
18946
  useAttrs: !0
18941
18947
  }), _ = f ? Nt.xOffset : 0, S = f ? Nt.yOffset : 0;
18942
18948
  let L = l + _;
18943
- b === Jt.CENTER ? L = w / 2 : b === Jt.RIGHT && (L = w - l - Nt.xOffset);
18949
+ b === te.CENTER ? L = w / 2 : b === te.RIGHT && (L = w - l - Nt.xOffset);
18944
18950
  let k = l + S;
18945
18951
  y.length > 0 && (k += Nt.yOffsetCallout), r.attr("x", L + 7).attr("y", k), this.addEventListeners();
18946
18952
  }
@@ -19137,7 +19143,7 @@ class dP extends Et {
19137
19143
  useAttrs: !0
19138
19144
  });
19139
19145
  let m = d;
19140
- p === Jt.CENTER ? m = v / 2 : p === Jt.RIGHT && (m = v - d), n.attr("x", m).attr("y", d), this.addEventListeners();
19146
+ p === te.CENTER ? m = v / 2 : p === te.RIGHT && (m = v - d), n.attr("x", m).attr("y", d), this.addEventListeners();
19141
19147
  }
19142
19148
  /**
19143
19149
  * draws the value number associated with the Gauge component in the center
@@ -19275,7 +19281,7 @@ class M0 extends ah {
19275
19281
  })
19276
19282
  ).attr("transform", (u) => {
19277
19283
  const d = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
19278
- return this.services.cartesianScales.getOrientation() === ee.VERTICAL ? `translate(${d}, 0)` : `translate(0, ${d})`;
19284
+ return this.services.cartesianScales.getOrientation() === Jt.VERTICAL ? `translate(${d}, 0)` : `translate(0, ${d})`;
19279
19285
  });
19280
19286
  const c = l.selectAll("path.bar").data(
19281
19287
  (u) => this.getDataCorrespondingToLabel(u),
@@ -19298,10 +19304,10 @@ class M0 extends ah {
19298
19304
  const d = this.services.cartesianScales.getDomainIdentifier(u);
19299
19305
  return this.model.getFillColor(u[i], u[d], u);
19300
19306
  }).attr("d", (u) => {
19301
- const d = this.groupScale(u[i]), h = this.getBarWidth(), f = d, p = d + h, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), m = this.services.cartesianScales.getValueThroughAxisPosition(v, 0), y = this.services.cartesianScales.getRangeValue(u), g = this.services.cartesianScales.getDomainValue(u) - h / 2, b = g + h;
19302
- if (!this.isOutsideZoomedDomain(g, b))
19307
+ const d = this.groupScale(u[i]), h = this.getBarWidth(), f = d, p = d + h, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), m = this.services.cartesianScales.getDomainLowerBound(v), y = this.services.cartesianScales.getValueThroughAxisPosition(v, m), g = this.services.cartesianScales.getRangeValue(u), b = this.services.cartesianScales.getDomainValue(u) - h / 2, w = b + h;
19308
+ if (!this.isOutsideZoomedDomain(b, w))
19303
19309
  return de(
19304
- { x0: f, x1: p, y0: m, y1: y },
19310
+ { x0: f, x1: p, y0: y, y1: g },
19305
19311
  this.services.cartesianScales.getOrientation()
19306
19312
  );
19307
19313
  }).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
@@ -19620,7 +19626,7 @@ class pP extends Et {
19620
19626
  return;
19621
19627
  const h = o(d.x1) - o(d.x0) - 1, f = this.services.cartesianScales.getDomainValue(d.x0), p = f + h, v = this.services.cartesianScales.getRangeValue(u[0]);
19622
19628
  let m = this.services.cartesianScales.getRangeValue(u[1]);
19623
- return Math.abs(m - v) > 0 && Math.abs(m - v) > r.bars.dividerSize && (this.services.cartesianScales.getOrientation() === ee.VERTICAL ? m += 1 : m -= 1), de(
19629
+ return Math.abs(m - v) > 0 && Math.abs(m - v) > r.bars.dividerSize && (this.services.cartesianScales.getOrientation() === Jt.VERTICAL ? m += 1 : m -= 1), de(
19624
19630
  { x0: f, x1: p, y0: v, y1: m },
19625
19631
  this.services.cartesianScales.getOrientation()
19626
19632
  );
@@ -19720,7 +19726,7 @@ class mP extends un {
19720
19726
  animate: t
19721
19727
  })
19722
19728
  ).style("stroke", (m) => this.model.getFillColor(m[i], m[l], m)).attr("opacity", 1);
19723
- d === ee.HORIZONTAL ? v.attr("y1", f).attr("y2", f).attr("x1", a.range()[0]).attr("x2", (m) => h(m) - r.points.radius) : v.attr("x1", h).attr("x2", h).attr("y1", o.range()[0]).attr("y2", (m) => f(m) + r.points.radius), this.addScatterPointEventListeners();
19729
+ d === Jt.HORIZONTAL ? v.attr("y1", f).attr("y2", f).attr("x1", a.range()[0]).attr("x2", (m) => h(m) - r.points.radius) : v.attr("x1", h).attr("x2", h).attr("y1", o.range()[0]).attr("y2", (m) => f(m) + r.points.radius), this.addScatterPointEventListeners();
19724
19730
  }
19725
19731
  // listen for when individual datapoints are hovered
19726
19732
  addScatterPointEventListeners() {
@@ -20124,7 +20130,7 @@ class vP extends Et {
20124
20130
  useAttrs: !0
20125
20131
  });
20126
20132
  let a = 0;
20127
- return t === Jt.CENTER ? a = Math.floor((s - i.width) / 2) : t === Jt.RIGHT && (a = s - i.width), a;
20133
+ return t === te.CENTER ? a = Math.floor((s - i.width) / 2) : t === te.RIGHT && (a = s - i.width), a;
20128
20134
  }
20129
20135
  destroy() {
20130
20136
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
@@ -20239,7 +20245,7 @@ class C0 extends ah {
20239
20245
  p = this.services.cartesianScales.getRangeValue(Math.max(0, y)), v = this.services.cartesianScales.getRangeValue(l);
20240
20246
  }
20241
20247
  const m = Math.abs(v - p);
20242
- if (m !== 0 && m < 2 && (d > 0 && a === ee.VERTICAL || d < 0 && a === ee.HORIZONTAL ? v = p - 2 : v = p + 2), !this.isOutsideZoomedDomain(h, f))
20248
+ if (m !== 0 && m < 2 && (d > 0 && a === Jt.VERTICAL || d < 0 && a === Jt.HORIZONTAL ? v = p - 2 : v = p + 2), !this.isOutsideZoomedDomain(h, f))
20243
20249
  return de({ x0: h, x1: f, y0: p, y1: v }, a);
20244
20250
  }).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (l) => l.value), this.addEventListeners();
20245
20251
  }
@@ -20417,7 +20423,7 @@ class $0 extends ah {
20417
20423
  if (!this.isOutsideZoomedDomain(h, f)) {
20418
20424
  if (Math.abs(v - p) > 0 && Math.abs(v - p) > r.bars.dividerSize) {
20419
20425
  const m = c[0] < 0 && c[1] <= 0;
20420
- m && a.length > 1 ? this.services.cartesianScales.getOrientation() === ee.VERTICAL ? v += c[1] === 0 ? 2 : 1 : v -= 1 : m || (this.services.cartesianScales.getOrientation() === ee.VERTICAL ? v += 1 : v -= 1);
20426
+ m && a.length > 1 ? this.services.cartesianScales.getOrientation() === Jt.VERTICAL ? v += c[1] === 0 ? 2 : 1 : v -= 1 : m || (this.services.cartesianScales.getOrientation() === Jt.VERTICAL ? v += 1 : v -= 1);
20421
20427
  }
20422
20428
  return de(
20423
20429
  { x0: h, x1: f, y0: p, y1: v },
@@ -21550,7 +21556,7 @@ class mH extends Pn {
21550
21556
  this.domainAxisPosition = r.primaryDomainAxisPosition, this.rangeAxisPosition = r.primaryRangeAxisPosition, this.isDualAxes() && (this.secondaryDomainAxisPosition = r.secondaryDomainAxisPosition, this.secondaryRangeAxisPosition = r.secondaryRangeAxisPosition);
21551
21557
  }
21552
21558
  determineOrientation() {
21553
- (this.rangeAxisPosition === z.LEFT || this.rangeAxisPosition === z.RIGHT) && (this.domainAxisPosition === z.BOTTOM || this.domainAxisPosition === z.TOP) ? this.orientation = ee.VERTICAL : this.orientation = ee.HORIZONTAL;
21559
+ (this.rangeAxisPosition === z.LEFT || this.rangeAxisPosition === z.RIGHT) && (this.domainAxisPosition === z.BOTTOM || this.domainAxisPosition === z.TOP) ? this.orientation = Jt.VERTICAL : this.orientation = Jt.HORIZONTAL;
21554
21560
  }
21555
21561
  isDualAxes() {
21556
21562
  return this.dualAxes;
@@ -21763,6 +21769,10 @@ class mH extends Pn {
21763
21769
  let s;
21764
21770
  return i === tt.TIME ? s = pg() : i === tt.LOG ? s = ag().base(r.base || 10) : i === tt.LABELS || i === tt.LABELS_RATIO ? s = Cs() : s = Ze(), s.domain(this.getScaleDomain(t)), s;
21765
21771
  }
21772
+ getDomainLowerBound(t) {
21773
+ let n, r = 0;
21774
+ return this.getOrientation() === Jt.VERTICAL ? n = this.getMainYScale().domain() : n = this.getMainXScale().domain(), x(this.model.getOptions(), "axes", t, "includeZero") === !1 && n[0] > 0 && n[1] > 0 && (r = n[0]), r;
21775
+ }
21766
21776
  getHighestDomainThreshold() {
21767
21777
  const t = x(this.model.getOptions(), "axes"), n = this.getDomainAxisPosition(), { thresholds: r } = t[n];
21768
21778
  if (!Array.isArray(r) || Array.isArray(r) && !r.length)
@@ -23808,7 +23818,7 @@ const Qn = /* @__PURE__ */ zv(w3), Jn = "cds", gV = ({ tag: e = "div", children:
23808
23818
  );
23809
23819
  };
23810
23820
  export {
23811
- Jt as Alignments,
23821
+ te as Alignments,
23812
23822
  j3 as AlluvialChart,
23813
23823
  W3 as AreaChart,
23814
23824
  _V as ArrowLeftMarker,