@carbon/charts 1.23.3 → 1.23.5

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.
@@ -1,4 +1,4 @@
1
- import { b as f, k as i, i as b } from "./color-scale-utils-ycwO-Ibq.mjs";
1
+ import { b as f, k as i, i as b } from "./color-scale-utils-BPsvYA85.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-j65rN_vo.mjs.map
32
+ //# sourceMappingURL=array-CLq6Q40W.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-j65rN_vo.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,EACR;AACH;AClBG,IAACK,IAAWR,EAAeL,CAAU;ACXzB,SAAQc,EAACC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACR;AACH;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-CLq6Q40W.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,EACR;AACH;AClBG,IAACK,IAAWR,EAAeL,CAAU;ACXzB,SAAQc,EAACC,GAAG;AACzB,SAAO,WAAoB;AACzB,WAAOA;AAAA,EACR;AACH;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 Hr, $ as il, i as al, a0 as rl, a1 as Br, a2 as zr, a3 as ol, a4 as ll, a5 as cl, a6 as ul, a7 as Ur, a8 as va, a9 as nn, g as O, p as Kt, a as en, C as ya, aa as xt, w as At, ab as wn, E as Ea, H as jt, ac as Fr, ad as Os, c as hl, ae as Ee, I as ui, K as hi, e as se, af as vn, ag as ge, f as ve, x as me, ah as dl, h as je, O as pl, ai as Re, z as Et, l as qt, aj as Gt, ak as fl, M as gl, al as Wr, y as _t, q as un, n as Hn, am as Ns, an as ml, ao as vl, ap as di, aq as xa, A as Le, ar as Sa, as as Xr, at as yl } from "./color-scale-utils-ycwO-Ibq.mjs";
1
+ import { t as Hr, $ as il, i as al, a0 as rl, a1 as Br, a2 as zr, a3 as ol, a4 as ll, a5 as cl, a6 as ul, a7 as Ur, a8 as va, a9 as nn, g as O, p as Kt, a as en, C as ya, aa as xt, w as At, ab as wn, E as Ea, H as jt, ac as Fr, ad as Os, c as hl, ae as Ee, I as ui, K as hi, e as se, af as vn, ag as ge, f as ve, x as me, ah as dl, h as je, O as pl, ai as Re, z as Et, l as qt, aj as Gt, ak as fl, M as gl, al as Wr, y as _t, q as un, n as Hn, am as Ns, an as ml, ao as vl, ap as di, aq as xa, A as Le, ar as Sa, as as Xr, at as yl } from "./color-scale-utils-BPsvYA85.mjs";
2
2
  import { y as at, $ as T, N as Tt, r as Te, q as Be, L as El, A as te, m as nt, s as Ae, W as Ke, S as kt, e as J, Z as ze, i as Xt, f as Ta, J as Ps, d as xl, F as Bn, n as $s, H as Vs, C as Gs, p as zn, b as ba, D as Hs, U as Sl, x as Me, a0 as Un, O as Bs } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as lt } from "./a11y-ePqvrObQ.mjs";
4
- import { t as ns, s as D, h as Oa, e as Ut, c as ss, f as we, g as le, m as zs, i as La, j as Aa, k as Je, l as Rt, n as Ma, o as Tl, q as bl, u as Hi, D as I, v as Ol, w as pi, G as wa, x as Bi, y as Ll, a as Al, p as bt, r as Ca, b as Ml } from "./angle-utils-CqlSifly.mjs";
5
- import { b as Yr, c as pt, a as zi, s as wl } from "./array-j65rN_vo.mjs";
4
+ import { t as ns, s as D, h as Oa, e as Ut, c as ss, f as we, g as le, m as zs, i as La, j as Aa, k as Je, l as Rt, n as Ma, o as Tl, q as bl, u as Hi, D as I, v as Ol, w as pi, G as wa, x as Bi, y as Ll, a as Al, p as bt, r as Ca, b as Ml } from "./angle-utils-Re7uVv7K.mjs";
5
+ import { b as Yr, c as pt, a as zi, s as wl } from "./array-CLq6Q40W.mjs";
6
6
  function Cl(i, t, e, n) {
7
7
  for (var s = -1, a = i == null ? 0 : i.length; ++s < a; )
8
8
  e = t(e, i[s], s, i);
@@ -4274,8 +4274,8 @@ class Nd extends dt {
4274
4274
  const e = this.getOptions(), n = O(e, "tooltip", "truncation", "type"), s = O(e, "tooltip", "truncation", "threshold"), a = O(e, "tooltip", "truncation", "numCharacter");
4275
4275
  return n !== Ke.NONE ? t.map((r) => {
4276
4276
  const o = r.labelIcon ? 12 : 0;
4277
- return r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r.label && r.label.length + o > s && (r.label = wn(r.label, n, a)), r.value && r.value.length > s && (r.value = wn(r.value, n, a)), r;
4278
- }) : t.map((r) => (r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r));
4277
+ return r.value = this.valueFormatter(r.value, r.label), r.label && r.label.length + o > s && (r.label = wn(r.label, n, a)), r.value && r.value.length > s && (r.value = wn(r.value, n, a)), r;
4278
+ }) : t.map((r) => (r.value = this.valueFormatter(r.value, r.label), r));
4279
4279
  }
4280
4280
  getTooltipHTML(t) {
4281
4281
  return '<ul class="multi-tooltip">' + t.map(
@@ -6670,7 +6670,7 @@ class sp extends dt {
6670
6670
  const e = this.parent, { width: n, height: s } = I.getSVGElementSize(e, {
6671
6671
  useAttrs: !0
6672
6672
  });
6673
- this.backdrop = I.appendOrSelect(e, "svg.chart-skeleton.DAII").attr("width", n).attr("height", s);
6673
+ this.backdrop = I.appendOrSelect(e, "svg.chart-skeleton.DAII").attr("role", "presentation").attr("width", n).attr("height", s);
6674
6674
  const a = I.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop");
6675
6675
  a.attr("width", "100%").attr("height", "100%");
6676
6676
  const [r] = this.xScale.range(), [, o] = this.yScale.range();
@@ -9442,7 +9442,10 @@ class Wm extends sp {
9442
9442
  }
9443
9443
  updateBackdropStyle() {
9444
9444
  const t = this.parent;
9445
- this.backdrop = I.appendOrSelect(t, "svg.chart-skeleton.DAII"), I.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
9445
+ this.backdrop = I.appendOrSelect(t, "svg.chart-skeleton.DAII").attr(
9446
+ "role",
9447
+ "presentation"
9448
+ ), I.appendOrSelect(this.backdrop, "rect.chart-skeleton-backdrop").classed("shimmer-effect-lines", !1).classed("shimmer-effect-sparkline", !0).style("stroke", null);
9446
9449
  }
9447
9450
  }
9448
9451
  class Xm extends dt {
@@ -10742,4 +10745,4 @@ export {
10742
10745
  Zm as y,
10743
10746
  $m as z
10744
10747
  };
10745
- //# sourceMappingURL=choropleth-BOOQMTNf.mjs.map
10748
+ //# sourceMappingURL=choropleth-C0wftO71.mjs.map