@carbon/charts 1.16.11 → 1.17.1

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -26
  3. package/dist/{angle-utils-ByrL6LVp.mjs → angle-utils-Cq7fAZ_G.mjs} +2 -2
  4. package/dist/{angle-utils-ByrL6LVp.mjs.map → angle-utils-Cq7fAZ_G.mjs.map} +1 -1
  5. package/dist/{array-6NAAybxf.mjs → array-Dp6N70oc.mjs} +2 -2
  6. package/dist/{array-6NAAybxf.mjs.map → array-Dp6N70oc.mjs.map} +1 -1
  7. package/dist/{choropleth-BAn8HIaC.mjs → choropleth-BVD28Asn.mjs} +4 -10
  8. package/dist/choropleth-BVD28Asn.mjs.map +1 -0
  9. package/dist/{color-scale-utils-CSwgszB6.mjs → color-scale-utils-BpobzRX6.mjs} +2 -2
  10. package/dist/{color-scale-utils-CSwgszB6.mjs.map → color-scale-utils-BpobzRX6.mjs.map} +1 -1
  11. package/dist/components/diagrams/buildPaths.d.ts +15 -27
  12. package/dist/components/essentials/legend.spec.d.ts +1 -0
  13. package/dist/components/essentials/title.spec.d.ts +1 -0
  14. package/dist/components/index.mjs +1 -1
  15. package/dist/{index-fFi6OCaz.mjs → index-CeYuVh-h.mjs} +3 -3
  16. package/dist/{index-fFi6OCaz.mjs.map → index-CeYuVh-h.mjs.map} +1 -1
  17. package/dist/index.mjs +7 -7
  18. package/dist/model/index.mjs +2 -2
  19. package/dist/selectedGroups.spec.d.ts +1 -0
  20. package/dist/services/index.mjs +3 -3
  21. package/dist/services/time-series.spec.d.ts +1 -0
  22. package/dist/tests/index.d.ts +2 -0
  23. package/dist/tests/test-environment.d.ts +16 -0
  24. package/dist/tests/tools.d.ts +4 -0
  25. package/dist/tools.spec.d.ts +1 -0
  26. package/dist/umd/bundle.umd.cjs +1 -1
  27. package/dist/umd/bundle.umd.cjs.map +1 -1
  28. package/dist/umd/bundle.umd.js +1 -1
  29. package/package.json +18 -26
  30. package/dist/choropleth-BAn8HIaC.mjs.map +0 -1
  31. package/dist/demo/charts/alluvial.d.ts +0 -110
  32. package/dist/demo/charts/area.d.ts +0 -225
  33. package/dist/demo/charts/bar.d.ts +0 -763
  34. package/dist/demo/charts/boxplot.d.ts +0 -35
  35. package/dist/demo/charts/bubble.d.ts +0 -142
  36. package/dist/demo/charts/bullet.d.ts +0 -25
  37. package/dist/demo/charts/chart-types.d.ts +0 -128
  38. package/dist/demo/charts/choropleth.d.ts +0 -736
  39. package/dist/demo/charts/circle-pack.d.ts +0 -91
  40. package/dist/demo/charts/combo.d.ts +0 -483
  41. package/dist/demo/charts/donut.d.ts +0 -65
  42. package/dist/demo/charts/gauge.d.ts +0 -40
  43. package/dist/demo/charts/heatmap.d.ts +0 -126
  44. package/dist/demo/charts/hightlight.d.ts +0 -41
  45. package/dist/demo/charts/histogram.d.ts +0 -64
  46. package/dist/demo/charts/index.d.ts +0 -62
  47. package/dist/demo/charts/line.d.ts +0 -362
  48. package/dist/demo/charts/lollipop.d.ts +0 -40
  49. package/dist/demo/charts/meter.d.ts +0 -95
  50. package/dist/demo/charts/pie.d.ts +0 -47
  51. package/dist/demo/charts/radar.d.ts +0 -64
  52. package/dist/demo/charts/scatter.d.ts +0 -119
  53. package/dist/demo/charts/step.d.ts +0 -96
  54. package/dist/demo/charts/time-series-axis.d.ts +0 -326
  55. package/dist/demo/charts/toolbar.d.ts +0 -12
  56. package/dist/demo/charts/topojson-110.d.ts +0 -360
  57. package/dist/demo/charts/tree.d.ts +0 -30
  58. package/dist/demo/charts/treemap.d.ts +0 -15
  59. package/dist/demo/charts/wordcloud.d.ts +0 -14
  60. package/dist/demo/charts/zoom-bar.d.ts +0 -79
  61. package/dist/demo/index.d.ts +0 -4
  62. package/dist/demo/index.mjs +0 -51456
  63. package/dist/demo/index.mjs.map +0 -1
  64. package/dist/demo/styles.css +0 -34613
  65. package/dist/demo/styles.css.map +0 -1
  66. package/dist/demo/utils/index.d.ts +0 -2
  67. package/dist/demo/utils/package-versions.d.ts +0 -18
  68. package/dist/demo/utils/stackblitz/angular.d.ts +0 -3
  69. package/dist/demo/utils/stackblitz/index.d.ts +0 -5
  70. package/dist/demo/utils/stackblitz/object-to-string.d.ts +0 -5
  71. package/dist/demo/utils/stackblitz/react.d.ts +0 -3
  72. package/dist/demo/utils/stackblitz/svelte.d.ts +0 -3
  73. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +0 -3
  74. package/dist/demo/utils/stackblitz/vue.d.ts +0 -3
  75. package/dist/demo/utils/story-widgets.d.ts +0 -6
  76. package/scss/demos.scss +0 -412
@@ -1,4 +1,4 @@
1
- import { b as f, k as i, i as b } from "./color-scale-utils-CSwgszB6.mjs";
1
+ import { b as f, k as i, i as b } from "./color-scale-utils-BpobzRX6.mjs";
2
2
  function h(r, n) {
3
3
  return r && f(r, n, i);
4
4
  }
@@ -29,4 +29,4 @@ export {
29
29
  g as c,
30
30
  k as s
31
31
  };
32
- //# sourceMappingURL=array-6NAAybxf.mjs.map
32
+ //# sourceMappingURL=array-Dp6N70oc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-6NAAybxf.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.js","../../../node_modules/d3/node_modules/d3-shape/src/constant.js","../../../node_modules/d3/node_modules/d3-shape/src/array.js"],"sourcesContent":["import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","constant","x","slice","array"],"mappings":";AAWA,SAASA,EAAWC,GAAQC,GAAU;AACpC,SAAOD,KAAUE,EAAQF,GAAQC,GAAUE,CAAI;AACjD;ACHA,SAASC,EAAeC,GAAUC,GAAW;AAC3C,SAAO,SAASC,GAAYN,GAAU;AACpC,QAAIM,KAAc;AAChB,aAAOA;AAET,QAAI,CAACC,EAAYD,CAAU;AACzB,aAAOF,EAASE,GAAYN,CAAQ;AAMtC,aAJIQ,IAASF,EAAW,QACpBG,IAA6B,IAC7BC,IAAW,OAAOJ,CAAU,GAEF,EAAEG,IAAQD,KAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBG,IAACK,IAAWR,EAAeL,CAAU;ACXzB,SAAQc,EAACC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACX;AACA;ACJU,IAACC,IAAQ,MAAM,UAAU;AAEpB,SAAQC,EAACF,GAAG;AACzB,SAAO,OAAOA,KAAM,YAAY,YAAYA,IACxCA,IACA,MAAM,KAAKA,CAAC;AAClB;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"array-Dp6N70oc.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.js","../../../node_modules/d3/node_modules/d3-shape/src/constant.js","../../../node_modules/d3/node_modules/d3-shape/src/array.js"],"sourcesContent":["import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","constant","x","slice","array"],"mappings":";AAWA,SAASA,EAAWC,GAAQC,GAAU;AACpC,SAAOD,KAAUE,EAAQF,GAAQC,GAAUE,CAAI;AACjD;ACHA,SAASC,EAAeC,GAAUC,GAAW;AAC3C,SAAO,SAASC,GAAYN,GAAU;AACpC,QAAIM,KAAc;AAChB,aAAOA;AAET,QAAI,CAACC,EAAYD,CAAU;AACzB,aAAOF,EAASE,GAAYN,CAAQ;AAMtC,aAJIQ,IAASF,EAAW,QACpBG,IAA6B,IAC7BC,IAAW,OAAOJ,CAAU,GAEF,EAAEG,IAAQD,KAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBG,IAACK,IAAWR,EAAeL,CAAU;ACXzB,SAAQc,EAACC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACX;AACA;ACJU,IAACC,IAAQ,MAAM,UAAU;AAEpB,SAAQC,EAACF,GAAG;AACzB,SAAO,OAAOA,KAAM,YAAY,YAAYA,IACxCA,IACA,MAAM,KAAKA,CAAC;AAClB;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,8 +1,8 @@
1
- import { t as fo, $ as Bl, i as Gl, a0 as go, a1 as mo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as vo, a8 as Ur, a9 as nn, g as T, p as qt, a as en, C as zr, aa as yt, w as wt, ab as _n, H as Yt, E as Fr, ac as yo, ad as ks, c as Xl, ae as ve, I as yi, K as Ei, e as ee, af as gn, ag as pe, f as ge, x as fe, ah as jl, h as Ze, O as Yl, ai as Re, z as vt, l as jt, aj as Vt, ak as ql, M as Zl, al as Eo, y as Ct, q as un, n as Bn, am as Us, an as Kl, ao as Jl, ap as Si, aq as Wr, A as Oe, ar as Xr, as as So, at as xo } from "./color-scale-utils-CSwgszB6.mjs";
1
+ import { t as fo, $ as Bl, i as Gl, a0 as go, a1 as mo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as vo, a8 as Ur, a9 as nn, g as T, p as qt, a as en, C as zr, aa as yt, w as wt, ab as _n, H as Yt, E as Fr, ac as yo, ad as ks, c as Xl, ae as ve, I as yi, K as Ei, e as ee, af as gn, ag as pe, f as ge, x as fe, ah as jl, h as Ze, O as Yl, ai as Re, z as vt, l as jt, aj as Vt, ak as ql, M as Zl, al as Eo, y as Ct, q as un, n as Bn, am as Us, an as Kl, ao as Jl, ap as Si, aq as Wr, A as Oe, ar as Xr, as as So, at as xo } from "./color-scale-utils-BpobzRX6.mjs";
2
2
  import { y as nt, _ as x, K as xt, r as xe, q as Ge, L as Ql, A as Jt, m as tt, s as we, V as Ke, S as _t, e as q, Z as He, i as Ft, f as jr, J as zs, d as tc, F as Gn, n as Fs, H as Ws, C as Xs, p as Hn, b as Yr, D as js, Q as ec, x as Le, $ as Un, N as Ys } from "./enums-DwsxZqjR.mjs";
3
3
  import { R as st } from "./a11y-ePqvrObQ.mjs";
4
- import { t as es, s as I, c as qr, e as Ae, f as ae, h as Zr, g as Ht, i as ns, j as Je, m as qs, k as Kr, l as Rt, n as Jr, o as nc, q as sc, u as lr, D as C, v as ic, w as xi, G as Qr, x as cr, y as rc, a as ac, p as bt, r as ta, b as oc } from "./angle-utils-ByrL6LVp.mjs";
5
- import { b as bo, c as ct, a as ur, s as lc } from "./array-6NAAybxf.mjs";
4
+ import { t as es, s as I, c as qr, e as Ae, f as ae, h as Zr, g as Ht, i as ns, j as Je, m as qs, k as Kr, l as Rt, n as Jr, o as nc, q as sc, u as lr, D as C, v as ic, w as xi, G as Qr, x as cr, y as rc, a as ac, p as bt, r as ta, b as oc } from "./angle-utils-Cq7fAZ_G.mjs";
5
+ import { b as bo, c as ct, a as ur, s as lc } from "./array-Dp6N70oc.mjs";
6
6
  function cc(s, t, e, n) {
7
7
  for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
8
8
  e = t(e, s[i], i, s);
@@ -6938,9 +6938,6 @@ class Al extends at {
6938
6938
  formatTooltipData(t) {
6939
6939
  return t;
6940
6940
  }
6941
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6942
- // @ts-ignore
6943
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6944
6941
  showRuler(t, [e, n]) {
6945
6942
  const i = this.parent, r = this.services.cartesianScales.getOrientation(), a = this.model.getDisplayData(), o = this.services.cartesianScales.getRangeScale(), [c, l] = o.range(), h = r === Ft.HORIZONTAL ? n : e, d = C.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), u = C.appendOrSelect(d, "line.ruler-line"), p = i.selectAll("[role=graphics-symbol]"), f = a.map((m) => ({
6946
6943
  domainValue: this.services.cartesianScales.getDomainValue(m),
@@ -8505,9 +8502,6 @@ class L0 extends Al {
8505
8502
  constructor() {
8506
8503
  super(...arguments), this.type = "ruler-binned", this.renderType = nt.SVG;
8507
8504
  }
8508
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8509
- // @ts-ignore
8510
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8511
8505
  showRuler(t, [e, n]) {
8512
8506
  const i = this.parent, r = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), c = a.getRangeScale(), [l, h] = c.range(), d = a.getDomainScale(), u = d.invert(
8513
8507
  o === Ft.VERTICAL ? e : n
@@ -11722,4 +11716,4 @@ export {
11722
11716
  K0 as y,
11723
11717
  H0 as z
11724
11718
  };
11725
- //# sourceMappingURL=choropleth-BAn8HIaC.mjs.map
11719
+ //# sourceMappingURL=choropleth-BVD28Asn.mjs.map