@carbon/charts 1.16.11 → 1.17.0
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/CHANGELOG.md +13 -0
- package/README.md +2 -26
- package/dist/{angle-utils-ByrL6LVp.mjs → angle-utils-Cq7fAZ_G.mjs} +2 -2
- package/dist/{angle-utils-ByrL6LVp.mjs.map → angle-utils-Cq7fAZ_G.mjs.map} +1 -1
- package/dist/{array-6NAAybxf.mjs → array-Dp6N70oc.mjs} +2 -2
- package/dist/{array-6NAAybxf.mjs.map → array-Dp6N70oc.mjs.map} +1 -1
- package/dist/{choropleth-BAn8HIaC.mjs → choropleth-BVD28Asn.mjs} +4 -10
- package/dist/choropleth-BVD28Asn.mjs.map +1 -0
- package/dist/{color-scale-utils-CSwgszB6.mjs → color-scale-utils-BpobzRX6.mjs} +2 -2
- package/dist/{color-scale-utils-CSwgszB6.mjs.map → color-scale-utils-BpobzRX6.mjs.map} +1 -1
- package/dist/components/diagrams/buildPaths.d.ts +15 -27
- package/dist/components/essentials/legend.spec.d.ts +1 -0
- package/dist/components/essentials/title.spec.d.ts +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/{index-fFi6OCaz.mjs → index-CeYuVh-h.mjs} +3 -3
- package/dist/{index-fFi6OCaz.mjs.map → index-CeYuVh-h.mjs.map} +1 -1
- package/dist/index.mjs +7 -7
- package/dist/model/index.mjs +2 -2
- package/dist/selectedGroups.spec.d.ts +1 -0
- package/dist/services/index.mjs +3 -3
- package/dist/services/time-series.spec.d.ts +1 -0
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/test-environment.d.ts +16 -0
- package/dist/tests/tools.d.ts +4 -0
- package/dist/tools.spec.d.ts +1 -0
- package/dist/umd/bundle.umd.cjs +1 -1
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +1 -1
- package/package.json +18 -26
- package/dist/choropleth-BAn8HIaC.mjs.map +0 -1
- package/dist/demo/charts/alluvial.d.ts +0 -110
- package/dist/demo/charts/area.d.ts +0 -225
- package/dist/demo/charts/bar.d.ts +0 -763
- package/dist/demo/charts/boxplot.d.ts +0 -35
- package/dist/demo/charts/bubble.d.ts +0 -142
- package/dist/demo/charts/bullet.d.ts +0 -25
- package/dist/demo/charts/chart-types.d.ts +0 -128
- package/dist/demo/charts/choropleth.d.ts +0 -736
- package/dist/demo/charts/circle-pack.d.ts +0 -91
- package/dist/demo/charts/combo.d.ts +0 -483
- package/dist/demo/charts/donut.d.ts +0 -65
- package/dist/demo/charts/gauge.d.ts +0 -40
- package/dist/demo/charts/heatmap.d.ts +0 -126
- package/dist/demo/charts/hightlight.d.ts +0 -41
- package/dist/demo/charts/histogram.d.ts +0 -64
- package/dist/demo/charts/index.d.ts +0 -62
- package/dist/demo/charts/line.d.ts +0 -362
- package/dist/demo/charts/lollipop.d.ts +0 -40
- package/dist/demo/charts/meter.d.ts +0 -95
- package/dist/demo/charts/pie.d.ts +0 -47
- package/dist/demo/charts/radar.d.ts +0 -64
- package/dist/demo/charts/scatter.d.ts +0 -119
- package/dist/demo/charts/step.d.ts +0 -96
- package/dist/demo/charts/time-series-axis.d.ts +0 -326
- package/dist/demo/charts/toolbar.d.ts +0 -12
- package/dist/demo/charts/topojson-110.d.ts +0 -360
- package/dist/demo/charts/tree.d.ts +0 -30
- package/dist/demo/charts/treemap.d.ts +0 -15
- package/dist/demo/charts/wordcloud.d.ts +0 -14
- package/dist/demo/charts/zoom-bar.d.ts +0 -79
- package/dist/demo/index.d.ts +0 -4
- package/dist/demo/index.mjs +0 -51456
- package/dist/demo/index.mjs.map +0 -1
- package/dist/demo/styles.css +0 -34613
- package/dist/demo/styles.css.map +0 -1
- package/dist/demo/utils/index.d.ts +0 -2
- package/dist/demo/utils/package-versions.d.ts +0 -18
- package/dist/demo/utils/stackblitz/angular.d.ts +0 -3
- package/dist/demo/utils/stackblitz/index.d.ts +0 -5
- package/dist/demo/utils/stackblitz/object-to-string.d.ts +0 -5
- package/dist/demo/utils/stackblitz/react.d.ts +0 -3
- package/dist/demo/utils/stackblitz/svelte.d.ts +0 -3
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +0 -3
- package/dist/demo/utils/stackblitz/vue.d.ts +0 -3
- package/dist/demo/utils/story-widgets.d.ts +0 -6
- 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-
|
|
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-
|
|
32
|
+
//# sourceMappingURL=array-Dp6N70oc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-
|
|
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-
|
|
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-
|
|
5
|
-
import { b as bo, c as ct, a as ur, s as lc } from "./array-
|
|
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-
|
|
11719
|
+
//# sourceMappingURL=choropleth-BVD28Asn.mjs.map
|