@carbon/charts 1.13.8 → 1.13.11

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 (42) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  3. package/dist/{_baseEach-8433307e.mjs → _baseEach-_pb8o-nX.mjs} +4 -4
  4. package/dist/{_baseEach-8433307e.mjs.map → _baseEach-_pb8o-nX.mjs.map} +1 -1
  5. package/dist/{a11y-7bad4f48.mjs → a11y-SOU26cr5.mjs} +1 -1
  6. package/dist/{a11y-7bad4f48.mjs.map → a11y-SOU26cr5.mjs.map} +1 -1
  7. package/dist/{angle-utils-8034b0e5.mjs → angle-utils-lGS6958-.mjs} +5 -5
  8. package/dist/{angle-utils-8034b0e5.mjs.map → angle-utils-lGS6958-.mjs.map} +1 -1
  9. package/dist/{choropleth-d532597d.mjs → choropleth-OVZrVx-E.mjs} +431 -431
  10. package/dist/{choropleth-d532597d.mjs.map → choropleth-OVZrVx-E.mjs.map} +1 -1
  11. package/dist/{color-scale-utils-2eb80bd2.mjs → color-scale-utils-xGxEq2HZ.mjs} +73 -73
  12. package/dist/{color-scale-utils-2eb80bd2.mjs.map → color-scale-utils-xGxEq2HZ.mjs.map} +1 -1
  13. package/dist/components/index.mjs +10 -10
  14. package/dist/demo/index.mjs +225 -251
  15. package/dist/demo/index.mjs.map +1 -1
  16. package/dist/demo/styles.css +971 -1053
  17. package/dist/demo/styles.css.map +1 -1
  18. package/dist/{enums-a96ef472.mjs → enums-tMKLWMMm.mjs} +1 -1
  19. package/dist/{enums-a96ef472.mjs.map → enums-tMKLWMMm.mjs.map} +1 -1
  20. package/dist/{index-ec554115.mjs → index-Ez18Vgtt.mjs} +3 -3
  21. package/dist/index-Ez18Vgtt.mjs.map +1 -0
  22. package/dist/index.mjs +60 -60
  23. package/dist/interfaces/index.mjs +2 -2
  24. package/dist/model/index.mjs +21 -1111
  25. package/dist/model/index.mjs.map +1 -1
  26. package/dist/services/index.mjs +17 -17
  27. package/dist/styles.css +40 -0
  28. package/dist/styles.css.map +1 -1
  29. package/dist/styles.min.css +1 -1
  30. package/dist/styles.min.css.map +1 -1
  31. package/dist/umd/bundle.umd.js +14 -14
  32. package/dist/umd/bundle.umd.js.map +1 -1
  33. package/dist/wordcloud-R5RMMPUP.mjs +1108 -0
  34. package/dist/wordcloud-R5RMMPUP.mjs.map +1 -0
  35. package/dist/{index-e91144ae.mjs → zoom-WD9MTgCJ.mjs} +51 -51
  36. package/dist/zoom-WD9MTgCJ.mjs.map +1 -0
  37. package/package.json +13 -18
  38. package/scss/demos.scss +4 -5
  39. package/styles.css +40 -0
  40. package/styles.min.css +1 -1
  41. package/dist/index-e91144ae.mjs.map +0 -1
  42. package/dist/index-ec554115.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,37 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.13.11 (2023-12-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **svelte:** strongly type dispatched events
11
+ ([#1703](https://github.com/carbon-design-system/carbon-charts/issues/1703))
12
+ ([1a37ef2](https://github.com/carbon-design-system/carbon-charts/commit/1a37ef2be692400b257446f62d1350899e27dd59))
13
+
14
+ # Change Log
15
+
16
+ All notable changes to this project will be documented in this file. See
17
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
+
19
+ ## 1.13.10 (2023-12-18)
20
+
21
+ **Note:** Version bump only for package @carbon/charts
22
+
23
+ # Change Log
24
+
25
+ All notable changes to this project will be documented in this file. See
26
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
27
+
28
+ ## 1.13.9 (2023-12-06)
29
+
30
+ **Note:** Version bump only for package @carbon/charts
31
+
32
+ # Change Log
33
+
34
+ All notable changes to this project will be documented in this file. See
35
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
36
+
6
37
  ## 1.13.8 (2023-11-15)
7
38
 
8
39
  **Note:** Version bump only for package @carbon/charts
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Carbon Charts is a component library for vanilla JavaScript. Chart visualizations are based on D3.js, a peer dependency.
4
4
 
5
- The required styles should be imported from `@carbon/charts/styles.css`. Additional documentation is provided in the Storybook demos.
5
+ The required styles should be imported from `@carbon/charts/dist/styles.css`. Additional documentation is provided in the Storybook demos.
6
6
 
7
7
  ## Getting started
8
8
 
@@ -1,12 +1,12 @@
1
- import { b as f, k as t, i as h } from "./color-scale-utils-2eb80bd2.mjs";
1
+ import { e as f, k as h, h as t } from "./color-scale-utils-xGxEq2HZ.mjs";
2
2
  function i(a, e) {
3
- return a && f(a, e, t);
3
+ return a && f(a, e, h);
4
4
  }
5
5
  function k(a, e) {
6
6
  return function(r, n) {
7
7
  if (r == null)
8
8
  return r;
9
- if (!h(r))
9
+ if (!t(r))
10
10
  return a(r, n);
11
11
  for (var u = r.length, s = e ? u : -1, b = Object(r); (e ? s-- : ++s < u) && n(b[s], s, b) !== !1; )
12
12
  ;
@@ -18,4 +18,4 @@ const v = E;
18
18
  export {
19
19
  v as b
20
20
  };
21
- //# sourceMappingURL=_baseEach-8433307e.mjs.map
21
+ //# sourceMappingURL=_baseEach-_pb8o-nX.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"_baseEach-8433307e.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.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"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","baseEach$1"],"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,IAAQJ,IAAYG,IAAS,IAC7BE,IAAW,OAAOJ,CAAU,IAExBD,IAAYI,MAAU,EAAEA,IAAQD,MAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBA,IAAIK,IAAWR,EAAeL,CAAU;AAExC,MAAAc,IAAeD;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"_baseEach-_pb8o-nX.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.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"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","baseEach$1"],"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,IAAQJ,IAAYG,IAAS,IAC7BE,IAAW,OAAOJ,CAAU,IAExBD,IAAYI,MAAU,EAAEA,IAAQD,MAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBA,IAAIK,IAAWR,EAAeL,CAAU;AAExC,MAAAc,IAAeD;","x_google_ignoreList":[0,1,2]}
@@ -2,4 +2,4 @@ var r = /* @__PURE__ */ ((c) => (c.GRAPHICS_DOCUMENT = "graphics-document", c.GR
2
2
  export {
3
3
  r as R
4
4
  };
5
- //# sourceMappingURL=a11y-7bad4f48.mjs.map
5
+ //# sourceMappingURL=a11y-SOU26cr5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"a11y-7bad4f48.mjs","sources":["../src/interfaces/a11y.ts"],"sourcesContent":["export enum Roles {\n\tGRAPHICS_DOCUMENT = 'graphics-document',\n\tGRAPHICS_OBJECT = 'graphics-object',\n\tGRAPHICS_SYMBOL = 'graphics-symbol',\n\tGROUP = 'group',\n\tDOCUMENT = 'document',\n\tCHECKBOX = 'checkbox',\n\tBUTTON = 'button',\n\tMENU = 'menu',\n\tMENU_ITEM = 'menuitem',\n\tIMG = 'img'\n}\n"],"names":["Roles"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,oBAAoB,qBACpBA,EAAA,kBAAkB,mBAClBA,EAAA,kBAAkB,mBAClBA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,YAAY,YACZA,EAAA,MAAM,OAVKA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"a11y-SOU26cr5.mjs","sources":["../src/interfaces/a11y.ts"],"sourcesContent":["export enum Roles {\n\tGRAPHICS_DOCUMENT = 'graphics-document',\n\tGRAPHICS_OBJECT = 'graphics-object',\n\tGRAPHICS_SYMBOL = 'graphics-symbol',\n\tGROUP = 'group',\n\tDOCUMENT = 'document',\n\tCHECKBOX = 'checkbox',\n\tBUTTON = 'button',\n\tMENU = 'menu',\n\tMENU_ITEM = 'menuitem',\n\tIMG = 'img'\n}\n"],"names":["Roles"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,oBAAoB,qBACpBA,EAAA,kBAAkB,mBAClBA,EAAA,kBAAkB,mBAClBA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,YAAY,YACZA,EAAA,MAAM,OAVKA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,6 +1,6 @@
1
1
  import { select as m } from "d3";
2
- import { a as fe, c as O, r as de, g as T, d as _ } from "./color-scale-utils-2eb80bd2.mjs";
3
- import { _ as P, T as E, o as b } from "./enums-a96ef472.mjs";
2
+ import { j as fe, l as O, r as de, m as T, n as _ } from "./color-scale-utils-xGxEq2HZ.mjs";
3
+ import { _ as P, T as E, o as b } from "./enums-tMKLWMMm.mjs";
4
4
  var me = /\s/;
5
5
  function ge(t) {
6
6
  for (var e = t.length; e-- && me.test(t.charAt(e)); )
@@ -11,7 +11,7 @@ var pe = /^\s+/;
11
11
  function ye(t) {
12
12
  return t && t.slice(0, ge(t) + 1).replace(pe, "");
13
13
  }
14
- var q = 0 / 0, we = /^[-+]0x[0-9a-f]+$/i, Se = /^0b[01]+$/i, Ee = /^0o[0-7]+$/i, be = parseInt;
14
+ var q = NaN, we = /^[-+]0x[0-9a-f]+$/i, Se = /^0b[01]+$/i, Ee = /^0o[0-7]+$/i, be = parseInt;
15
15
  function j(t) {
16
16
  if (typeof t == "number")
17
17
  return t;
@@ -89,7 +89,7 @@ function Le(t, e) {
89
89
  const n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
90
90
  return n.head.appendChild(r), n.body.appendChild(i), e && (r.href = e), i.href = t, i.href;
91
91
  }
92
- const De = (() => {
92
+ const De = /* @__PURE__ */ (() => {
93
93
  let t = 0;
94
94
  const e = () => (
95
95
  // eslint-disable-next-line no-bitwise
@@ -849,4 +849,4 @@ export {
849
849
  Ct as r,
850
850
  j as t
851
851
  };
852
- //# sourceMappingURL=angle-utils-8034b0e5.mjs.map
852
+ //# sourceMappingURL=angle-utils-lGS6958-.mjs.map