@carbon/charts-react 1.15.2 → 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) {
@@ -15218,7 +15218,7 @@ class rh extends Et {
15218
15218
  render(t = !1) {
15219
15219
  const n = this.getOptions(), r = x(n, "legend"), i = x(r, "alignment"), s = x(n, "legend", "orientation");
15220
15220
  let a = this.model.getDataGroups();
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 === 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");
15222
15222
  c && (a = this.sortDataGroups(a, c));
15223
15223
  const d = u.selectAll("div.legend-item").data(a, (g) => g.name), h = d.enter().append("div").attr("class", "legend-item");
15224
15224
  h.merge(u.selectAll("div.legend-item")).classed("active", function(g) {
@@ -16246,7 +16246,7 @@ class HN extends Et {
16246
16246
  s.alluvial.nodePadding > Ve.minNodePadding && (l = s.alluvial.nodePadding);
16247
16247
  const c = x(s, "alluvial", "nodeAlignment");
16248
16248
  let u = Vv;
16249
- c === Jt.LEFT ? u = pD : c === Jt.RIGHT && (u = mD);
16249
+ c === te.LEFT ? u = pD : c === te.RIGHT && (u = mD);
16250
16250
  const d = xD().nodeId((g) => g.name).nodeWidth(Ve.nodeWidth).nodePadding(l).nodeAlign(u).extent([
16251
16251
  [2, 30],
16252
16252
  [r - 2, i]
@@ -16603,7 +16603,7 @@ class w0 extends Et {
16603
16603
  const h = (_, S) => {
16604
16604
  x(r, "axes", _, "includeZero") === !1 && S[0] > 0 && S[1] > 0 && (d = S[0]);
16605
16605
  }, f = (_) => u ? s.getBoundedScaledValues(_)[0] : s.getRangeValue(d), p = (_) => u ? s.getBoundedScaledValues(_)[1] : s.getRangeValue(_);
16606
- 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(_)));
16607
16607
  const v = x(r, "color", "gradient", "enabled"), m = l && l.length === 1 && v;
16608
16608
  l.length > 1 && v && console.error("Gradients can only be enabled when having 1 single dataset");
16609
16609
  const y = n.selectAll("path.area").data(l, (_) => _.name), g = I(this.services.domUtils.getMainContainer());
@@ -16789,7 +16789,7 @@ class Kn extends Et {
16789
16789
  // @ts-ignore
16790
16790
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
16791
16791
  showRuler(t, [n, r]) {
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 === 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) => ({
16793
16793
  domainValue: this.services.cartesianScales.getDomainValue(m),
16794
16794
  originalData: m
16795
16795
  })).filter((m) => VN(m.domainValue, u));
@@ -17557,7 +17557,7 @@ class pe extends Et {
17557
17557
  }
17558
17558
  renderVertOrHorizSkeleton(t) {
17559
17559
  const n = this.services.cartesianScales.getOrientation();
17560
- 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");
17561
17561
  }
17562
17562
  renderPieSkeleton(t) {
17563
17563
  const n = this.computeOuterRadius(), r = 0;
@@ -17608,7 +17608,7 @@ class pe extends Et {
17608
17608
  r ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
17609
17609
  );
17610
17610
  let p = t + Nt.xOffset;
17611
- 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);
17612
17612
  const v = t + Nt.yOffset;
17613
17613
  f.attr("transform", `translate(${p}, ${v})`);
17614
17614
  }
@@ -17648,7 +17648,7 @@ class zN extends Et {
17648
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;
17649
17649
  if (h === 0)
17650
17650
  return;
17651
- 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(
17652
17652
  (M) => this.services.cartesianScales.getDomainValue(M),
17653
17653
  (M) => this.services.cartesianScales.getRangeValue(M),
17654
17654
  v
@@ -18376,7 +18376,7 @@ class tP extends Kn {
18376
18376
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18377
18377
  showRuler(t, [n, r]) {
18378
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(
18379
- o === ee.VERTICAL ? n : r
18379
+ o === Jt.VERTICAL ? n : r
18380
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) => {
18381
18381
  if (parseFloat(_t(m, "data.x0")) <= h && parseFloat(_t(m, "data.x1")) >= h)
18382
18382
  return !0;
@@ -18946,7 +18946,7 @@ class T0 extends Et {
18946
18946
  useAttrs: !0
18947
18947
  }), _ = f ? Nt.xOffset : 0, S = f ? Nt.yOffset : 0;
18948
18948
  let L = l + _;
18949
- 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);
18950
18950
  let k = l + S;
18951
18951
  y.length > 0 && (k += Nt.yOffsetCallout), r.attr("x", L + 7).attr("y", k), this.addEventListeners();
18952
18952
  }
@@ -19143,7 +19143,7 @@ class dP extends Et {
19143
19143
  useAttrs: !0
19144
19144
  });
19145
19145
  let m = d;
19146
- 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();
19147
19147
  }
19148
19148
  /**
19149
19149
  * draws the value number associated with the Gauge component in the center
@@ -19281,7 +19281,7 @@ class M0 extends ah {
19281
19281
  })
19282
19282
  ).attr("transform", (u) => {
19283
19283
  const d = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
19284
- 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})`;
19285
19285
  });
19286
19286
  const c = l.selectAll("path.bar").data(
19287
19287
  (u) => this.getDataCorrespondingToLabel(u),
@@ -19304,10 +19304,10 @@ class M0 extends ah {
19304
19304
  const d = this.services.cartesianScales.getDomainIdentifier(u);
19305
19305
  return this.model.getFillColor(u[i], u[d], u);
19306
19306
  }).attr("d", (u) => {
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.getValueThroughAxisPosition(v, 0), y = this.services.cartesianScales.getRangeValue(u), g = this.services.cartesianScales.getDomainValue(u) - h / 2, b = g + h;
19308
- 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))
19309
19309
  return de(
19310
- { x0: f, x1: p, y0: m, y1: y },
19310
+ { x0: f, x1: p, y0: y, y1: g },
19311
19311
  this.services.cartesianScales.getOrientation()
19312
19312
  );
19313
19313
  }).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
@@ -19626,7 +19626,7 @@ class pP extends Et {
19626
19626
  return;
19627
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]);
19628
19628
  let m = this.services.cartesianScales.getRangeValue(u[1]);
19629
- 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(
19630
19630
  { x0: f, x1: p, y0: v, y1: m },
19631
19631
  this.services.cartesianScales.getOrientation()
19632
19632
  );
@@ -19726,7 +19726,7 @@ class mP extends un {
19726
19726
  animate: t
19727
19727
  })
19728
19728
  ).style("stroke", (m) => this.model.getFillColor(m[i], m[l], m)).attr("opacity", 1);
19729
- 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();
19730
19730
  }
19731
19731
  // listen for when individual datapoints are hovered
19732
19732
  addScatterPointEventListeners() {
@@ -20130,7 +20130,7 @@ class vP extends Et {
20130
20130
  useAttrs: !0
20131
20131
  });
20132
20132
  let a = 0;
20133
- 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;
20134
20134
  }
20135
20135
  destroy() {
20136
20136
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", null).on("mousemove", null).on("mouseout", null);
@@ -20245,7 +20245,7 @@ class C0 extends ah {
20245
20245
  p = this.services.cartesianScales.getRangeValue(Math.max(0, y)), v = this.services.cartesianScales.getRangeValue(l);
20246
20246
  }
20247
20247
  const m = Math.abs(v - p);
20248
- 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))
20249
20249
  return de({ x0: h, x1: f, y0: p, y1: v }, a);
20250
20250
  }).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (l) => l.value), this.addEventListeners();
20251
20251
  }
@@ -20423,7 +20423,7 @@ class $0 extends ah {
20423
20423
  if (!this.isOutsideZoomedDomain(h, f)) {
20424
20424
  if (Math.abs(v - p) > 0 && Math.abs(v - p) > r.bars.dividerSize) {
20425
20425
  const m = c[0] < 0 && c[1] <= 0;
20426
- 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);
20427
20427
  }
20428
20428
  return de(
20429
20429
  { x0: h, x1: f, y0: p, y1: v },
@@ -21556,7 +21556,7 @@ class mH extends Pn {
21556
21556
  this.domainAxisPosition = r.primaryDomainAxisPosition, this.rangeAxisPosition = r.primaryRangeAxisPosition, this.isDualAxes() && (this.secondaryDomainAxisPosition = r.secondaryDomainAxisPosition, this.secondaryRangeAxisPosition = r.secondaryRangeAxisPosition);
21557
21557
  }
21558
21558
  determineOrientation() {
21559
- (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;
21560
21560
  }
21561
21561
  isDualAxes() {
21562
21562
  return this.dualAxes;
@@ -21769,6 +21769,10 @@ class mH extends Pn {
21769
21769
  let s;
21770
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;
21771
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
+ }
21772
21776
  getHighestDomainThreshold() {
21773
21777
  const t = x(this.model.getOptions(), "axes"), n = this.getDomainAxisPosition(), { thresholds: r } = t[n];
21774
21778
  if (!Array.isArray(r) || Array.isArray(r) && !r.length)
@@ -23814,7 +23818,7 @@ const Qn = /* @__PURE__ */ zv(w3), Jn = "cds", gV = ({ tag: e = "div", children:
23814
23818
  );
23815
23819
  };
23816
23820
  export {
23817
- Jt as Alignments,
23821
+ te as Alignments,
23818
23822
  j3 as AlluvialChart,
23819
23823
  W3 as AreaChart,
23820
23824
  _V as ArrowLeftMarker,