@carbon/charts 1.11.21 → 1.12.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 +3 -3
- package/dist/demo/index.mjs +227 -244
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +4499 -692
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/package-versions.d.ts +0 -2
- package/dist/styles.css +4249 -781
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/package.json +21 -21
- package/scss/_chart-holder.scss +18 -17
- package/scss/_chart-wrapper.scss +6 -0
- package/scss/_color-palette.scss +2 -2
- package/scss/_colors.scss +26 -25
- package/scss/_globals.scss +8 -0
- package/scss/_tokens.scss +50 -50
- package/scss/_transition.scss +4 -0
- package/scss/_type.scss +14 -14
- package/scss/components/_axis.scss +12 -11
- package/scss/components/_callouts.scss +4 -3
- package/scss/components/_color-legend.scss +4 -4
- package/scss/components/_grid-brush.scss +7 -5
- package/scss/components/_grid.scss +9 -8
- package/scss/components/_highlights.scss +6 -3
- package/scss/components/_layout.scss +5 -3
- package/scss/components/_legend.scss +14 -11
- package/scss/components/_meter-title.scss +11 -9
- package/scss/components/_modal.scss +14 -11
- package/scss/components/_ruler.scss +6 -3
- package/scss/components/_skeleton-lines.scss +9 -6
- package/scss/components/_skeleton.scss +9 -6
- package/scss/components/_threshold.scss +12 -11
- package/scss/components/_title.scss +5 -5
- package/scss/components/_toolbar.scss +6 -6
- package/scss/components/_tooltip.scss +12 -11
- package/scss/components/_zero-line.scss +4 -3
- package/scss/components/_zoom-bar.scss +16 -14
- package/scss/components/diagrams/_card-node.scss +74 -74
- package/scss/components/diagrams/_edge.scss +46 -49
- package/scss/components/diagrams/_marker.scss +4 -5
- package/scss/components/diagrams/_shape-node.scss +72 -73
- package/scss/components/diagrams/index.scss +4 -4
- package/scss/components/index.scss +20 -20
- package/scss/demos.scss +1 -0
- package/scss/graphs/_alluvial.scss +7 -6
- package/scss/graphs/_area.scss +4 -2
- package/scss/graphs/_bubble.scss +6 -5
- package/scss/graphs/_bullet.scss +11 -13
- package/scss/graphs/_choropleth.scss +7 -7
- package/scss/graphs/_circle-pack.scss +7 -6
- package/scss/graphs/_donut.scss +3 -1
- package/scss/graphs/_gauge.scss +7 -6
- package/scss/graphs/_heatmap.scss +6 -6
- package/scss/graphs/_line.scss +6 -4
- package/scss/graphs/_lollipop.scss +3 -1
- package/scss/graphs/_meter.scss +11 -10
- package/scss/graphs/_pie.scss +3 -1
- package/scss/graphs/_radar.scss +6 -5
- package/scss/graphs/_scatter-stacked.scss +4 -3
- package/scss/graphs/_scatter.scss +6 -5
- package/scss/graphs/_tree.scss +11 -9
- package/scss/graphs/_treemap.scss +3 -1
- package/scss/graphs/_wordcloud.scss +3 -1
- package/scss/graphs/index.scss +19 -19
- package/scss/index.scss +10 -31
- package/styles.css +4249 -781
- package/styles.min.css +1 -1
- package/scss/components/_edge.scss +0 -65
- package/scss/components/_marker.scss +0 -7
package/dist/demo/index.mjs
CHANGED
|
@@ -860,7 +860,7 @@ const dA = [
|
|
|
860
860
|
stacked: !0
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
},
|
|
863
|
+
}, C = [
|
|
864
864
|
{ group: "Dataset 1", date: new Date(2019, 0, 1), value: 1e4 },
|
|
865
865
|
{ group: "Dataset 1", date: new Date(2019, 0, 5), value: 65e3 },
|
|
866
866
|
{ group: "Dataset 1", date: new Date(2019, 0, 8), value: 1e4 },
|
|
@@ -881,7 +881,7 @@ const dA = [
|
|
|
881
881
|
{ group: "Dataset 4", date: new Date(2019, 0, 8), value: 51432 },
|
|
882
882
|
{ group: "Dataset 4", date: new Date(2019, 0, 15), value: 40323 },
|
|
883
883
|
{ group: "Dataset 4", date: new Date(2019, 0, 19), value: 31300 }
|
|
884
|
-
],
|
|
884
|
+
], O = {
|
|
885
885
|
title: "Vertical stacked bar (time series)",
|
|
886
886
|
axes: {
|
|
887
887
|
left: {
|
|
@@ -926,7 +926,7 @@ const dA = [
|
|
|
926
926
|
scaleType: "time"
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
}, P_ =
|
|
929
|
+
}, P_ = C, B_ = {
|
|
930
930
|
title: "Custom ticks (stacked bar)",
|
|
931
931
|
axes: {
|
|
932
932
|
left: {
|
|
@@ -951,7 +951,7 @@ const dA = [
|
|
|
951
951
|
stacked: !0
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
}, d_ =
|
|
954
|
+
}, d_ = C, p_ = [], m_ = {
|
|
955
955
|
title: "Vertical simple bar (empty state)",
|
|
956
956
|
axes: {
|
|
957
957
|
left: {},
|
|
@@ -1170,9 +1170,9 @@ const dA = [
|
|
|
1170
1170
|
stackedBarShortIntervalTimeSeriesOptions: T_,
|
|
1171
1171
|
stackedBarSkeletonData: W_,
|
|
1172
1172
|
stackedBarSkeletonOptions: b_,
|
|
1173
|
-
stackedBarTimeSeriesData:
|
|
1173
|
+
stackedBarTimeSeriesData: C,
|
|
1174
1174
|
stackedBarTimeSeriesDataCustomTicks: P_,
|
|
1175
|
-
stackedBarTimeSeriesOptions:
|
|
1175
|
+
stackedBarTimeSeriesOptions: O,
|
|
1176
1176
|
stackedBarTimeSeriesOptionsCustomTicks: B_,
|
|
1177
1177
|
stackedHorizontalBarData: s_,
|
|
1178
1178
|
stackedHorizontalBarEmptyStateData: x_,
|
|
@@ -1231,7 +1231,7 @@ const dA = [
|
|
|
1231
1231
|
simpleBoxplotOptions: ee,
|
|
1232
1232
|
simpleVerticalBoxplotData: ae,
|
|
1233
1233
|
simpleVerticalBoxplotOptions: Se
|
|
1234
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1234
|
+
}, Symbol.toStringTag, { value: "Module" })), s = [
|
|
1235
1235
|
{ group: "Dataset 1", key: "Qty", value: 34200 },
|
|
1236
1236
|
{ group: "Dataset 1", key: "More", value: 23500 },
|
|
1237
1237
|
{ group: "Dataset 1", key: "Sold", value: 53100 },
|
|
@@ -1456,7 +1456,7 @@ const dA = [
|
|
|
1456
1456
|
{ group: "Dataset 4", date: new Date(2019, 0, 8), value: 51432 },
|
|
1457
1457
|
{ group: "Dataset 4", date: new Date(2019, 0, 15), value: 25332 },
|
|
1458
1458
|
{ group: "Dataset 4", date: new Date(2019, 0, 19), value: null }
|
|
1459
|
-
],
|
|
1459
|
+
], R = {
|
|
1460
1460
|
title: "Line (time series)",
|
|
1461
1461
|
axes: {
|
|
1462
1462
|
bottom: {
|
|
@@ -1687,7 +1687,7 @@ const dA = [
|
|
|
1687
1687
|
dualLine: Te,
|
|
1688
1688
|
lineCustomColorOptions: re,
|
|
1689
1689
|
lineCustomDomainOptions: te,
|
|
1690
|
-
lineData:
|
|
1690
|
+
lineData: s,
|
|
1691
1691
|
lineEmptyStateData: Ie,
|
|
1692
1692
|
lineEmptyStateOptions: se,
|
|
1693
1693
|
lineLogAxisData: Re,
|
|
@@ -1705,7 +1705,7 @@ const dA = [
|
|
|
1705
1705
|
lineTimeSeriesDenseData: ne,
|
|
1706
1706
|
lineTimeSeriesDenseOptions: ie,
|
|
1707
1707
|
lineTimeSeriesDualAxesData: ue,
|
|
1708
|
-
lineTimeSeriesOptions:
|
|
1708
|
+
lineTimeSeriesOptions: R,
|
|
1709
1709
|
lineTimeSeriesRotatedTicksOptions: Oe,
|
|
1710
1710
|
lineTimeSeriesWithThresholdsOptions: oe,
|
|
1711
1711
|
sparklineLoadingOptions: Me
|
|
@@ -45681,13 +45681,13 @@ const dA = [
|
|
|
45681
45681
|
}, Symbol.toStringTag, { value: "Module" })), SS = Object.assign({}, NA, {
|
|
45682
45682
|
title: "Step (discrete)",
|
|
45683
45683
|
curve: "curveStepAfter"
|
|
45684
|
-
}), MS =
|
|
45684
|
+
}), MS = s, RA = Object.assign({}, R, {
|
|
45685
45685
|
title: "Step (time series)",
|
|
45686
45686
|
curve: "curveStepAfter"
|
|
45687
|
-
}), FA = i, ES = [], NS = Object.assign({},
|
|
45687
|
+
}), FA = i, ES = [], NS = Object.assign({}, R, {
|
|
45688
45688
|
title: "Step (empty state)",
|
|
45689
45689
|
curve: "curveStepAfter"
|
|
45690
|
-
}), tS = [], LS = Object.assign({},
|
|
45690
|
+
}), tS = [], LS = Object.assign({}, R, {
|
|
45691
45691
|
title: "Step (skeleton)",
|
|
45692
45692
|
curve: "curveStepAfter",
|
|
45693
45693
|
data: {
|
|
@@ -46916,10 +46916,10 @@ const dA = [
|
|
|
46916
46916
|
<path d="M13,9H9a2,2,0,0,0-2,2V23H9V18h4v5h2V11A2,2,0,0,0,13,9ZM9,16V11h4v5Z"/><rect data-name="<Transparent Rectangle>" width="32" height="32" style="fill: none"/>`
|
|
46917
46917
|
}
|
|
46918
46918
|
}
|
|
46919
|
-
], e && (e.titleSuffix && (_.title += e.titleSuffix), e.numberOfIcons && (_.toolbar.numberOfIcons = e.numberOfIcons), e.controls && (_.toolbar.controls = e.controls)), _), jS =
|
|
46920
|
-
Object.assign({},
|
|
46919
|
+
], e && (e.titleSuffix && (_.title += e.titleSuffix), e.numberOfIcons && (_.toolbar.numberOfIcons = e.numberOfIcons), e.controls && (_.toolbar.controls = e.controls)), _), jS = C, qS = QS(
|
|
46920
|
+
Object.assign({}, O)
|
|
46921
46921
|
), $S = i, AM = QS(
|
|
46922
|
-
Object.assign({},
|
|
46922
|
+
Object.assign({}, R),
|
|
46923
46923
|
{
|
|
46924
46924
|
titleSuffix: " - two icons",
|
|
46925
46925
|
numberOfIcons: 2,
|
|
@@ -47081,16 +47081,16 @@ const dA = [
|
|
|
47081
47081
|
), NM = h, tM = L(
|
|
47082
47082
|
Object.assign({}, eA),
|
|
47083
47083
|
{ sliderView: !0 }
|
|
47084
|
-
), LM =
|
|
47085
|
-
Object.assign({},
|
|
47086
|
-
), rM =
|
|
47087
|
-
Object.assign({},
|
|
47084
|
+
), LM = C, DM = L(
|
|
47085
|
+
Object.assign({}, O)
|
|
47086
|
+
), rM = C, oM = L(
|
|
47087
|
+
Object.assign({}, O),
|
|
47088
47088
|
{ includeDefinedZoomBarData: !0 }
|
|
47089
47089
|
), nM = tA, iM = L(
|
|
47090
47090
|
Object.assign({}, LA),
|
|
47091
47091
|
{ sliderView: !0 }
|
|
47092
47092
|
), CM = i, OM = L(
|
|
47093
|
-
Object.assign({},
|
|
47093
|
+
Object.assign({}, R)
|
|
47094
47094
|
), RM = CA, FM = L(
|
|
47095
47095
|
Object.assign({}, OA)
|
|
47096
47096
|
), IM = FA, sM = L(
|
|
@@ -47190,7 +47190,7 @@ const BM = [], G = L(
|
|
|
47190
47190
|
loading: !0
|
|
47191
47191
|
}
|
|
47192
47192
|
},
|
|
47193
|
-
|
|
47193
|
+
O
|
|
47194
47194
|
),
|
|
47195
47195
|
{ includeDefinedZoomBarData: !0 }
|
|
47196
47196
|
);
|
|
@@ -47204,7 +47204,7 @@ const cM = [], Z = L(
|
|
|
47204
47204
|
loading: !0
|
|
47205
47205
|
}
|
|
47206
47206
|
},
|
|
47207
|
-
|
|
47207
|
+
O
|
|
47208
47208
|
)
|
|
47209
47209
|
);
|
|
47210
47210
|
Z.title = "Zoom bar (skeleton)";
|
|
@@ -48753,7 +48753,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48753
48753
|
heatmapPositiveNegativeData: bM,
|
|
48754
48754
|
heatmapPositiveNegativeOptions: WM,
|
|
48755
48755
|
heatmapQuantizeLegendOption: hM
|
|
48756
|
-
}, Symbol.toStringTag, { value: "Module" })), $M = "@carbon/charts", AE = "1.
|
|
48756
|
+
}, Symbol.toStringTag, { value: "Module" })), $M = "@carbon/charts", AE = "1.12.0", _E = "Carbon Charts component library", eE = "./dist/index.mjs", aE = "./dist/umd/bundle.umd.js", SE = "./dist/index.d.ts", ME = {
|
|
48757
48757
|
"./package.json": "./package.json",
|
|
48758
48758
|
"./styles.min.css": "./dist/styles.min.css",
|
|
48759
48759
|
"./styles.css": "./dist/styles.css",
|
|
@@ -48825,7 +48825,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48825
48825
|
"@carbon/colors": "^11.19.0",
|
|
48826
48826
|
"@carbon/telemetry": "~0.1.0",
|
|
48827
48827
|
"@carbon/utils-position": "^1.1.4",
|
|
48828
|
-
"carbon-components": "^10.58.
|
|
48828
|
+
"carbon-components": "^10.58.10",
|
|
48829
48829
|
d3: "^7.8.5",
|
|
48830
48830
|
"d3-cloud": "^1.2.7",
|
|
48831
48831
|
"d3-sankey": "^0.12.3",
|
|
@@ -48833,7 +48833,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48833
48833
|
"html-to-image": "^1.11.11",
|
|
48834
48834
|
"lodash-es": "^4.17.21",
|
|
48835
48835
|
"topojson-client": "^3.1.0",
|
|
48836
|
-
tslib: "^2.6.
|
|
48836
|
+
tslib: "^2.6.2"
|
|
48837
48837
|
}, DE = {
|
|
48838
48838
|
d3: "^7.0.0",
|
|
48839
48839
|
"d3-cloud": "^1.2.5",
|
|
@@ -48848,29 +48848,29 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48848
48848
|
}, oE = {
|
|
48849
48849
|
"@babel/core": "^7.22.10",
|
|
48850
48850
|
"@carbon/import-once": "^10.7.0",
|
|
48851
|
-
"@carbon/layout": "^11.
|
|
48852
|
-
"@carbon/styles": "^1.
|
|
48853
|
-
"@carbon/themes": "^11.
|
|
48851
|
+
"@carbon/layout": "^11.19.0",
|
|
48852
|
+
"@carbon/styles": "^1.36.0",
|
|
48853
|
+
"@carbon/themes": "^11.24.0",
|
|
48854
48854
|
"@rollup/plugin-replace": "^5.0.2",
|
|
48855
48855
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
48856
48856
|
"@stackblitz/sdk": "^1.9.0",
|
|
48857
|
-
"@storybook/addon-essentials": "^7.2
|
|
48858
|
-
"@storybook/addon-interactions": "^7.2
|
|
48859
|
-
"@storybook/addon-links": "^7.2
|
|
48860
|
-
"@storybook/blocks": "^7.2
|
|
48861
|
-
"@storybook/html": "^7.2
|
|
48862
|
-
"@storybook/html-vite": "^7.2
|
|
48863
|
-
"@storybook/manager-api": "^7.2
|
|
48857
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
48858
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
48859
|
+
"@storybook/addon-links": "^7.3.2",
|
|
48860
|
+
"@storybook/blocks": "^7.3.2",
|
|
48861
|
+
"@storybook/html": "^7.3.2",
|
|
48862
|
+
"@storybook/html-vite": "^7.3.2",
|
|
48863
|
+
"@storybook/manager-api": "^7.3.2",
|
|
48864
48864
|
"@storybook/testing-library": "^0.2.0",
|
|
48865
|
-
"@storybook/theming": "^7.2
|
|
48865
|
+
"@storybook/theming": "^7.3.2",
|
|
48866
48866
|
"@types/d3": "^7.4.0",
|
|
48867
48867
|
"@types/d3-cloud": "^1.2.5",
|
|
48868
48868
|
"@types/d3-sankey": "^0.12.1",
|
|
48869
48869
|
"@types/lodash-es": "^4.17.8",
|
|
48870
48870
|
"@types/topojson": "^3.2.3",
|
|
48871
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
48872
|
-
"@typescript-eslint/parser": "^6.
|
|
48873
|
-
concurrently: "^8.2.
|
|
48871
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
48872
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
48873
|
+
concurrently: "^8.2.1",
|
|
48874
48874
|
"downlevel-dts": "^0.11.0",
|
|
48875
48875
|
eslint: "^8.47.0",
|
|
48876
48876
|
"eslint-config-prettier": "^9.0.0",
|
|
@@ -48879,13 +48879,13 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48879
48879
|
react: "^18.2.0",
|
|
48880
48880
|
"react-dom": "^18.2.0",
|
|
48881
48881
|
"resize-observer-polyfill": "^1.5.1",
|
|
48882
|
-
sass: "
|
|
48883
|
-
storybook: "^7.2
|
|
48882
|
+
sass: "^1.66.1",
|
|
48883
|
+
storybook: "^7.3.2",
|
|
48884
48884
|
typedoc: "^0.24.8",
|
|
48885
48885
|
typescript: "^5.1.6",
|
|
48886
48886
|
vite: "^4.4.9",
|
|
48887
48887
|
"vite-plugin-dts": "^3.5.2",
|
|
48888
|
-
vitest: "^0.34.
|
|
48888
|
+
vitest: "^0.34.2"
|
|
48889
48889
|
}, nE = {
|
|
48890
48890
|
access: "public"
|
|
48891
48891
|
}, iE = [
|
|
@@ -48927,7 +48927,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48927
48927
|
email: "iliadm@ca.ibm.com",
|
|
48928
48928
|
url: "https://github.com/theiliad"
|
|
48929
48929
|
}
|
|
48930
|
-
], IE = "f7037103474e53901678dd9e62095b0b1f0f62c4",
|
|
48930
|
+
], IE = "f7037103474e53901678dd9e62095b0b1f0f62c4", B = {
|
|
48931
48931
|
name: $M,
|
|
48932
48932
|
version: AE,
|
|
48933
48933
|
description: _E,
|
|
@@ -48949,9 +48949,9 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48949
48949
|
maintainers: RE,
|
|
48950
48950
|
contributors: FE,
|
|
48951
48951
|
gitHead: IE
|
|
48952
|
-
}, sE = "@carbon/charts-angular", lE = "1.
|
|
48953
|
-
"./styles.min.css": "./
|
|
48954
|
-
"./styles.css": "./
|
|
48952
|
+
}, sE = "@carbon/charts-angular", lE = "1.12.0", uE = "Carbon Charts component library for Angular", TE = {
|
|
48953
|
+
"./styles.min.css": "./styles.min.css",
|
|
48954
|
+
"./styles.css": "./styles.css"
|
|
48955
48955
|
}, PE = !1, BE = {
|
|
48956
48956
|
ng: "ng",
|
|
48957
48957
|
postinstall: "carbon-telemetry collect --install",
|
|
@@ -48978,39 +48978,39 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
48978
48978
|
}, dE = {
|
|
48979
48979
|
"@carbon/charts": "workspace:*",
|
|
48980
48980
|
"@carbon/telemetry": "~0.1.0",
|
|
48981
|
-
tslib: "^2.6.
|
|
48981
|
+
tslib: "^2.6.2"
|
|
48982
48982
|
}, pE = {
|
|
48983
48983
|
"@angular-devkit/build-angular": "^16.2.0",
|
|
48984
|
-
"@angular-eslint/builder": "^16.1.
|
|
48985
|
-
"@angular-eslint/eslint-plugin": "^16.1.
|
|
48986
|
-
"@angular-eslint/eslint-plugin-template": "^16.1.
|
|
48987
|
-
"@angular-eslint/schematics": "^16.1.
|
|
48988
|
-
"@angular-eslint/template-parser": "^16.1.
|
|
48989
|
-
"@angular/animations": "^16.2.
|
|
48984
|
+
"@angular-eslint/builder": "^16.1.1",
|
|
48985
|
+
"@angular-eslint/eslint-plugin": "^16.1.1",
|
|
48986
|
+
"@angular-eslint/eslint-plugin-template": "^16.1.1",
|
|
48987
|
+
"@angular-eslint/schematics": "^16.1.1",
|
|
48988
|
+
"@angular-eslint/template-parser": "^16.1.1",
|
|
48989
|
+
"@angular/animations": "^16.2.2",
|
|
48990
48990
|
"@angular/cli": "^16.2.0",
|
|
48991
|
-
"@angular/common": "^16.2.
|
|
48992
|
-
"@angular/compiler": "^16.2.
|
|
48993
|
-
"@angular/compiler-cli": "^16.2.
|
|
48994
|
-
"@angular/core": "^16.2.
|
|
48995
|
-
"@angular/forms": "^16.2.
|
|
48996
|
-
"@angular/platform-browser": "^16.2.
|
|
48997
|
-
"@angular/platform-browser-dynamic": "^16.2.
|
|
48991
|
+
"@angular/common": "^16.2.2",
|
|
48992
|
+
"@angular/compiler": "^16.2.2",
|
|
48993
|
+
"@angular/compiler-cli": "^16.2.2",
|
|
48994
|
+
"@angular/core": "^16.2.2",
|
|
48995
|
+
"@angular/forms": "^16.2.2",
|
|
48996
|
+
"@angular/platform-browser": "^16.2.2",
|
|
48997
|
+
"@angular/platform-browser-dynamic": "^16.2.2",
|
|
48998
48998
|
"@babel/core": "^7.22.10",
|
|
48999
48999
|
"@carbon/icon-helpers": "^10.44.0",
|
|
49000
|
-
"@carbon/icons": "^11.
|
|
49000
|
+
"@carbon/icons": "^11.25.0",
|
|
49001
49001
|
"@stackblitz/sdk": "^1.9.0",
|
|
49002
|
-
"@storybook/addon-essentials": "^7.2
|
|
49003
|
-
"@storybook/addon-interactions": "^7.2
|
|
49004
|
-
"@storybook/addon-links": "^7.2
|
|
49005
|
-
"@storybook/angular": "^7.2
|
|
49006
|
-
"@storybook/blocks": "^7.2
|
|
49007
|
-
"@storybook/manager-api": "^7.2
|
|
49002
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
49003
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
49004
|
+
"@storybook/addon-links": "^7.3.2",
|
|
49005
|
+
"@storybook/angular": "^7.3.2",
|
|
49006
|
+
"@storybook/blocks": "^7.3.2",
|
|
49007
|
+
"@storybook/manager-api": "^7.3.2",
|
|
49008
49008
|
"@storybook/testing-library": "^0.2.0",
|
|
49009
|
-
"@storybook/theming": "^7.2
|
|
49009
|
+
"@storybook/theming": "^7.3.2",
|
|
49010
49010
|
"@types/carbon__icon-helpers": "^10.7.2",
|
|
49011
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
49012
|
-
"@typescript-eslint/parser": "^6.
|
|
49013
|
-
concurrently: "^8.2.
|
|
49011
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
49012
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
49013
|
+
concurrently: "^8.2.1",
|
|
49014
49014
|
d3: "^7.8.5",
|
|
49015
49015
|
"d3-cloud": "^1.2.7",
|
|
49016
49016
|
"d3-sankey": "^0.12.3",
|
|
@@ -49024,7 +49024,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49024
49024
|
react: "^18.2.0",
|
|
49025
49025
|
"react-dom": "^18.2.0",
|
|
49026
49026
|
rxjs: "~7.8.1",
|
|
49027
|
-
storybook: "^7.2
|
|
49027
|
+
storybook: "^7.3.2",
|
|
49028
49028
|
"style-loader": "^3.3.3",
|
|
49029
49029
|
typescript: "~5.1.6",
|
|
49030
49030
|
"zone.js": "~0.13.1"
|
|
@@ -49093,7 +49093,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49093
49093
|
maintainers: yE,
|
|
49094
49094
|
contributors: vE,
|
|
49095
49095
|
gitHead: HE
|
|
49096
|
-
}, hE = "@carbon/charts-react", WE = "1.
|
|
49096
|
+
}, hE = "@carbon/charts-react", WE = "1.12.0", bE = "Carbon Charts component library for React", VE = "./dist/index.js", YE = "./dist/index.mjs", kE = "./dist/index.d.ts", fE = {
|
|
49097
49097
|
"./package.json": "./package.json",
|
|
49098
49098
|
".": {
|
|
49099
49099
|
types: "./dist/index.d.ts",
|
|
@@ -49128,7 +49128,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49128
49128
|
"pub:demo": "cp -a demo/bundle/. ../../pages/react"
|
|
49129
49129
|
}, JE = {
|
|
49130
49130
|
"@carbon/charts": "workspace:*",
|
|
49131
|
-
"@carbon/icons-react": "^11.
|
|
49131
|
+
"@carbon/icons-react": "^11.25.0",
|
|
49132
49132
|
"@carbon/telemetry": "~0.1.0"
|
|
49133
49133
|
}, zE = {
|
|
49134
49134
|
react: "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -49143,24 +49143,24 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49143
49143
|
"@babel/preset-typescript": "^7.22.5",
|
|
49144
49144
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
49145
49145
|
"@stackblitz/sdk": "1.9.0",
|
|
49146
|
-
"@storybook/addon-essentials": "^7.2
|
|
49147
|
-
"@storybook/addon-interactions": "^7.2
|
|
49148
|
-
"@storybook/addon-links": "^7.2
|
|
49149
|
-
"@storybook/blocks": "^7.2
|
|
49150
|
-
"@storybook/manager-api": "^7.2
|
|
49151
|
-
"@storybook/react": "^7.2
|
|
49152
|
-
"@storybook/react-vite": "^7.2
|
|
49153
|
-
"@storybook/react-webpack5": "^7.2
|
|
49146
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
49147
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
49148
|
+
"@storybook/addon-links": "^7.3.2",
|
|
49149
|
+
"@storybook/blocks": "^7.3.2",
|
|
49150
|
+
"@storybook/manager-api": "^7.3.2",
|
|
49151
|
+
"@storybook/react": "^7.3.2",
|
|
49152
|
+
"@storybook/react-vite": "^7.3.2",
|
|
49153
|
+
"@storybook/react-webpack5": "^7.3.2",
|
|
49154
49154
|
"@storybook/testing-library": "^0.2.0",
|
|
49155
|
-
"@storybook/theming": "^7.2
|
|
49156
|
-
"@types/carbon__icons-react": "^11.
|
|
49157
|
-
"@types/react": "^18.2.
|
|
49155
|
+
"@storybook/theming": "^7.3.2",
|
|
49156
|
+
"@types/carbon__icons-react": "^11.25.0",
|
|
49157
|
+
"@types/react": "^18.2.21",
|
|
49158
49158
|
"@types/react-dom": "^18.2.7",
|
|
49159
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
49160
|
-
"@typescript-eslint/parser": "^6.
|
|
49159
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
49160
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
49161
49161
|
"@vitejs/plugin-react": "^4.0.4",
|
|
49162
49162
|
classnames: "^2.3.2",
|
|
49163
|
-
concurrently: "^8.2.
|
|
49163
|
+
concurrently: "^8.2.1",
|
|
49164
49164
|
"css-loader": "6.8.1",
|
|
49165
49165
|
d3: "^7.8.5",
|
|
49166
49166
|
"d3-cloud": "^1.2.7",
|
|
@@ -49169,12 +49169,12 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49169
49169
|
eslint: "^8.47.0",
|
|
49170
49170
|
"eslint-config-prettier": "^9.0.0",
|
|
49171
49171
|
"eslint-plugin-prettier": "^5.0.0",
|
|
49172
|
-
"eslint-plugin-react": "^7.33.
|
|
49172
|
+
"eslint-plugin-react": "^7.33.2",
|
|
49173
49173
|
"eslint-plugin-storybook": "^0.6.13",
|
|
49174
49174
|
react: "^18.2.0",
|
|
49175
49175
|
"react-dom": "^18.2.0",
|
|
49176
|
-
sass: "^1.
|
|
49177
|
-
storybook: "^7.2
|
|
49176
|
+
sass: "^1.66.1",
|
|
49177
|
+
storybook: "^7.3.2",
|
|
49178
49178
|
"style-loader": "^3.3.3",
|
|
49179
49179
|
typescript: "^5.1.6",
|
|
49180
49180
|
vite: "^4.4.9",
|
|
@@ -49251,7 +49251,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49251
49251
|
maintainers: eN,
|
|
49252
49252
|
contributors: aN,
|
|
49253
49253
|
gitHead: SN
|
|
49254
|
-
}, EN = "@carbon/charts-svelte", NN = "1.
|
|
49254
|
+
}, EN = "@carbon/charts-svelte", NN = "1.12.0", tN = "Carbon Charts component library for Svelte", LN = {
|
|
49255
49255
|
postinstall: "carbon-telemetry collect --install",
|
|
49256
49256
|
"file:styles": "cp ../core/dist/styles.* dist",
|
|
49257
49257
|
"build:package": "svelte-kit sync && svelte-package && yarn file:styles",
|
|
@@ -49287,21 +49287,21 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49287
49287
|
"@carbon/telemetry": "~0.1.0"
|
|
49288
49288
|
}, FN = {
|
|
49289
49289
|
"@stackblitz/sdk": "^1.9.0",
|
|
49290
|
-
"@storybook/addon-essentials": "^7.2
|
|
49291
|
-
"@storybook/addon-interactions": "^7.2
|
|
49292
|
-
"@storybook/addon-links": "^7.2
|
|
49293
|
-
"@storybook/blocks": "^7.2
|
|
49294
|
-
"@storybook/manager-api": "^7.2
|
|
49295
|
-
"@storybook/svelte": "^7.2
|
|
49296
|
-
"@storybook/sveltekit": "^7.2
|
|
49290
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
49291
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
49292
|
+
"@storybook/addon-links": "^7.3.2",
|
|
49293
|
+
"@storybook/blocks": "^7.3.2",
|
|
49294
|
+
"@storybook/manager-api": "^7.3.2",
|
|
49295
|
+
"@storybook/svelte": "^7.3.2",
|
|
49296
|
+
"@storybook/sveltekit": "^7.3.2",
|
|
49297
49297
|
"@storybook/testing-library": "^0.2.0",
|
|
49298
|
-
"@storybook/theming": "^7.2
|
|
49298
|
+
"@storybook/theming": "^7.3.2",
|
|
49299
49299
|
"@sveltejs/adapter-auto": "^2.1.0",
|
|
49300
|
-
"@sveltejs/kit": "^1.
|
|
49300
|
+
"@sveltejs/kit": "^1.23.0",
|
|
49301
49301
|
"@sveltejs/package": "^2.2.1",
|
|
49302
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
49303
|
-
"@typescript-eslint/parser": "^6.
|
|
49304
|
-
concurrently: "^8.2.
|
|
49302
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
49303
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
49304
|
+
concurrently: "^8.2.1",
|
|
49305
49305
|
d3: "^7.8.5",
|
|
49306
49306
|
"d3-cloud": "^1.2.7",
|
|
49307
49307
|
"d3-sankey": "^0.12.3",
|
|
@@ -49310,13 +49310,13 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49310
49310
|
"eslint-plugin-storybook": "^0.6.13",
|
|
49311
49311
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
49312
49312
|
"prettier-plugin-svelte": "^3.0.3",
|
|
49313
|
-
publint: "^0.2.
|
|
49313
|
+
publint: "^0.2.2",
|
|
49314
49314
|
react: "^18.2.0",
|
|
49315
49315
|
"react-dom": "^18.2.0",
|
|
49316
|
-
storybook: "^7.2
|
|
49316
|
+
storybook: "^7.3.2",
|
|
49317
49317
|
svelte: "^4.2.0",
|
|
49318
49318
|
"svelte-check": "^3.5.0",
|
|
49319
|
-
tslib: "^2.6.
|
|
49319
|
+
tslib: "^2.6.2",
|
|
49320
49320
|
typescript: "^5.1.6",
|
|
49321
49321
|
vite: "^4.4.9"
|
|
49322
49322
|
}, IN = {
|
|
@@ -49389,7 +49389,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49389
49389
|
author: cN,
|
|
49390
49390
|
keywords: dN,
|
|
49391
49391
|
gitHead: pN
|
|
49392
|
-
}, mN = "@carbon/charts-vue", UN = "1.
|
|
49392
|
+
}, mN = "@carbon/charts-vue", UN = "1.12.0", GN = "Carbon Charts component library for Vue", gN = "./dist/index.js", KN = "./dist/index.mjs", yN = "./dist/index.d.ts", vN = {
|
|
49393
49393
|
"./styles.min.css": "./dist/styles.min.css",
|
|
49394
49394
|
"./styles.css": "./dist/styles.css",
|
|
49395
49395
|
".": {
|
|
@@ -49425,19 +49425,19 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49425
49425
|
"@babel/core": "^7.22.10",
|
|
49426
49426
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
49427
49427
|
"@stackblitz/sdk": "^1.9.0",
|
|
49428
|
-
"@storybook/addon-essentials": "^7.2
|
|
49429
|
-
"@storybook/addon-interactions": "^7.2
|
|
49430
|
-
"@storybook/addon-links": "^7.2
|
|
49431
|
-
"@storybook/blocks": "^7.2
|
|
49432
|
-
"@storybook/manager-api": "^7.2
|
|
49428
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
49429
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
49430
|
+
"@storybook/addon-links": "^7.3.2",
|
|
49431
|
+
"@storybook/blocks": "^7.3.2",
|
|
49432
|
+
"@storybook/manager-api": "^7.3.2",
|
|
49433
49433
|
"@storybook/testing-library": "^0.2.0",
|
|
49434
|
-
"@storybook/theming": "^7.2
|
|
49435
|
-
"@storybook/vue3": "^7.2
|
|
49436
|
-
"@storybook/vue3-vite": "^7.2
|
|
49434
|
+
"@storybook/theming": "^7.3.2",
|
|
49435
|
+
"@storybook/vue3": "^7.3.2",
|
|
49436
|
+
"@storybook/vue3-vite": "^7.3.2",
|
|
49437
49437
|
"@types/d3": "^7.4.0",
|
|
49438
49438
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
49439
49439
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
49440
|
-
concurrently: "^8.2.
|
|
49440
|
+
concurrently: "^8.2.1",
|
|
49441
49441
|
d3: "^7.8.5",
|
|
49442
49442
|
"d3-cloud": "^1.2.7",
|
|
49443
49443
|
"d3-sankey": "^0.12.3",
|
|
@@ -49446,7 +49446,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49446
49446
|
"eslint-plugin-vue": "^9.17.0",
|
|
49447
49447
|
react: "^18.2.0",
|
|
49448
49448
|
"react-dom": "^18.2.0",
|
|
49449
|
-
storybook: "^7.2
|
|
49449
|
+
storybook: "^7.3.2",
|
|
49450
49450
|
typescript: "^5.1.6",
|
|
49451
49451
|
vite: "^4.4.9",
|
|
49452
49452
|
"vite-plugin-dts": "^3.5.2",
|
|
@@ -49504,60 +49504,56 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49504
49504
|
license: fN,
|
|
49505
49505
|
author: ZN,
|
|
49506
49506
|
keywords: wN
|
|
49507
|
-
},
|
|
49508
|
-
carbonCharts:
|
|
49509
|
-
|
|
49510
|
-
|
|
49511
|
-
|
|
49512
|
-
d3Sankey: C.dependencies["d3-sankey"],
|
|
49507
|
+
}, M = {
|
|
49508
|
+
carbonCharts: B.version,
|
|
49509
|
+
d3: B.dependencies.d3,
|
|
49510
|
+
d3Cloud: B.dependencies["d3-cloud"],
|
|
49511
|
+
d3Sankey: B.dependencies["d3-sankey"],
|
|
49513
49512
|
angular: c.dependencies["@angular/core"],
|
|
49514
49513
|
react: MN.dependencies.react,
|
|
49515
49514
|
rxjs: c.dependencies.rxjs,
|
|
49516
|
-
sass: C.devDependencies.sass,
|
|
49517
49515
|
svelteVite: "^2.4.2",
|
|
49518
49516
|
svelteTsConfig: "^5.0.0",
|
|
49519
49517
|
svelte: BA.devDependencies.svelte,
|
|
49520
49518
|
svelteCheck: BA.devDependencies["svelte-check"],
|
|
49521
49519
|
tslib: c.dependencies.tslib,
|
|
49522
49520
|
typescript: c.dependencies.typescript,
|
|
49523
|
-
vite:
|
|
49521
|
+
vite: B.devDependencies.vite,
|
|
49524
49522
|
vue: JN.dependencies.vue,
|
|
49525
49523
|
zoneJs: c.dependencies["zone.js"]
|
|
49526
49524
|
};
|
|
49527
49525
|
function D(_, e = 0, a = !0) {
|
|
49528
|
-
let
|
|
49526
|
+
let S = a ? "export default " : "";
|
|
49529
49527
|
const E = " ".repeat(e * 2);
|
|
49530
49528
|
if (Array.isArray(_))
|
|
49531
|
-
|
|
49529
|
+
S += `[
|
|
49532
49530
|
`, _.forEach((N, t) => {
|
|
49533
|
-
|
|
49531
|
+
S += E + " " + D(N, e + 1, !1), t < _.length - 1 && (S += ","), S += `
|
|
49534
49532
|
`;
|
|
49535
|
-
}),
|
|
49533
|
+
}), S += E + "]";
|
|
49536
49534
|
else if (typeof _ == "object" && _ !== null)
|
|
49537
49535
|
if (_ instanceof Date)
|
|
49538
|
-
|
|
49536
|
+
S += `new Date(${_.getFullYear()}, ${_.getMonth()}, ${_.getDate()})`;
|
|
49539
49537
|
else {
|
|
49540
|
-
|
|
49538
|
+
S += `{
|
|
49541
49539
|
`;
|
|
49542
49540
|
const N = Object.keys(_);
|
|
49543
49541
|
N.forEach((t, r) => {
|
|
49544
|
-
const
|
|
49545
|
-
|
|
49542
|
+
const l = /^[a-z$_][a-z0-9$_]*$/i.test(t) ? t : `'${t}'`;
|
|
49543
|
+
S += E + " " + l + ": ", typeof _[t] == "function" ? S += _[t].toString().replace(/\\(['"`])/g, "$1") : t === "content" && typeof _[t] == "string" ? S += "`" + _[t].replace(/`/g, "\\`") + "`" : S += D(_[t], e + 1, !1), r < N.length - 1 && (S += ","), S += `
|
|
49546
49544
|
`;
|
|
49547
|
-
}),
|
|
49545
|
+
}), S += E + "}";
|
|
49548
49546
|
}
|
|
49549
49547
|
else
|
|
49550
|
-
typeof _ == "string" ?
|
|
49551
|
-
return
|
|
49548
|
+
typeof _ == "string" ? S += `'${_.replace(/(['"`])/g, "\\$1")}'` : S += _;
|
|
49549
|
+
return S;
|
|
49552
49550
|
}
|
|
49553
49551
|
function zN(_) {
|
|
49554
49552
|
const e = {
|
|
49555
|
-
"@carbon/charts":
|
|
49556
|
-
|
|
49557
|
-
d3:
|
|
49558
|
-
"d3-
|
|
49559
|
-
"d3-sankey": S.d3Sankey,
|
|
49560
|
-
sass: S.sass
|
|
49553
|
+
"@carbon/charts": M.carbonCharts,
|
|
49554
|
+
d3: M.d3,
|
|
49555
|
+
"d3-cloud": M.d3Cloud,
|
|
49556
|
+
"d3-sankey": M.d3Sankey
|
|
49561
49557
|
}, a = `<html>
|
|
49562
49558
|
<head>
|
|
49563
49559
|
<title>Carbon Charts Vanilla JavaScript Example</title>
|
|
@@ -49584,7 +49580,7 @@ function zN(_) {
|
|
|
49584
49580
|
</div>
|
|
49585
49581
|
<script src="src/index.js"><\/script>
|
|
49586
49582
|
</body>
|
|
49587
|
-
</html>`,
|
|
49583
|
+
</html>`, S = `/* Disclaimer: Data only used for demo purposes - not an accurate representation of world map */
|
|
49588
49584
|
|
|
49589
49585
|
async function loadTopoData() {
|
|
49590
49586
|
try {
|
|
@@ -49609,10 +49605,9 @@ new ${_.chartType.vanilla}(chartHolder, {
|
|
|
49609
49605
|
import { ${_.chartType.vanilla} } from '@carbon/charts'
|
|
49610
49606
|
import options from './options.js'
|
|
49611
49607
|
import data from './data.js'
|
|
49612
|
-
import '@carbon/styles/css/styles.css'
|
|
49613
49608
|
import '@carbon/charts/styles.css'
|
|
49614
49609
|
|
|
49615
|
-
${E ?
|
|
49610
|
+
${E ? S : N}
|
|
49616
49611
|
`, r = {
|
|
49617
49612
|
name: "carbon-charts-vanilla-js-example",
|
|
49618
49613
|
description: "Carbon Charts Vanilla JavaScript Example",
|
|
@@ -49634,21 +49629,19 @@ ${E ? M : N}
|
|
|
49634
49629
|
}
|
|
49635
49630
|
function xN(_) {
|
|
49636
49631
|
const e = {
|
|
49637
|
-
"@angular/animations":
|
|
49638
|
-
"@angular/common":
|
|
49639
|
-
"@angular/compiler":
|
|
49640
|
-
"@angular/core":
|
|
49641
|
-
"@angular/platform-browser":
|
|
49642
|
-
"@carbon/charts":
|
|
49643
|
-
"@carbon/charts-angular":
|
|
49644
|
-
|
|
49645
|
-
d3:
|
|
49646
|
-
"d3-
|
|
49647
|
-
|
|
49648
|
-
|
|
49649
|
-
|
|
49650
|
-
tslib: S.tslib,
|
|
49651
|
-
"zone.js": S.zoneJs
|
|
49632
|
+
"@angular/animations": M.angular,
|
|
49633
|
+
"@angular/common": M.angular,
|
|
49634
|
+
"@angular/compiler": M.angular,
|
|
49635
|
+
"@angular/core": M.angular,
|
|
49636
|
+
"@angular/platform-browser": M.angular,
|
|
49637
|
+
"@carbon/charts": M.carbonCharts,
|
|
49638
|
+
"@carbon/charts-angular": M.carbonCharts,
|
|
49639
|
+
d3: M.d3,
|
|
49640
|
+
"d3-cloud": M.d3Cloud,
|
|
49641
|
+
"d3-sankey": M.d3Sankey,
|
|
49642
|
+
rxjs: M.rxjs,
|
|
49643
|
+
tslib: M.tslib,
|
|
49644
|
+
"zone.js": M.zoneJs
|
|
49652
49645
|
}, a = `<!doctype html>
|
|
49653
49646
|
<html lang="en">
|
|
49654
49647
|
<head>
|
|
@@ -49672,7 +49665,7 @@ function xN(_) {
|
|
|
49672
49665
|
<my-app></my-app>
|
|
49673
49666
|
</div>
|
|
49674
49667
|
</body>
|
|
49675
|
-
</html>`,
|
|
49668
|
+
</html>`, S = `import 'zone.js/dist/zone'
|
|
49676
49669
|
import { Component } from '@angular/core'
|
|
49677
49670
|
import { CommonModule } from '@angular/common'
|
|
49678
49671
|
import { bootstrapApplication } from '@angular/platform-browser'
|
|
@@ -49692,9 +49685,8 @@ export class App {
|
|
|
49692
49685
|
}
|
|
49693
49686
|
|
|
49694
49687
|
bootstrapApplication(App)
|
|
49695
|
-
`, E = `@import '@carbon/
|
|
49696
|
-
|
|
49697
|
-
`, N = `{
|
|
49688
|
+
`, E = `@import '@carbon/charts/styles.css';
|
|
49689
|
+
`, N = `{
|
|
49698
49690
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
49699
49691
|
"version": 1,
|
|
49700
49692
|
"newProjectRoot": "projects",
|
|
@@ -49790,7 +49782,7 @@ bootstrapApplication(App)
|
|
|
49790
49782
|
files: {
|
|
49791
49783
|
"src/data.ts": D(_.data),
|
|
49792
49784
|
"src/index.html": a,
|
|
49793
|
-
"src/main.ts":
|
|
49785
|
+
"src/main.ts": S,
|
|
49794
49786
|
"src/options.ts": D(_.options),
|
|
49795
49787
|
"src/styles.css": E,
|
|
49796
49788
|
"angular.json": N,
|
|
@@ -49801,14 +49793,12 @@ bootstrapApplication(App)
|
|
|
49801
49793
|
}
|
|
49802
49794
|
function XN(_) {
|
|
49803
49795
|
const e = {
|
|
49804
|
-
"@carbon/charts-react":
|
|
49805
|
-
|
|
49806
|
-
d3:
|
|
49807
|
-
"d3-
|
|
49808
|
-
|
|
49809
|
-
react:
|
|
49810
|
-
"react-dom": S.react,
|
|
49811
|
-
sass: S.sass
|
|
49796
|
+
"@carbon/charts-react": M.carbonCharts,
|
|
49797
|
+
d3: M.d3,
|
|
49798
|
+
"d3-cloud": M.d3Cloud,
|
|
49799
|
+
"d3-sankey": M.d3Sankey,
|
|
49800
|
+
react: M.react,
|
|
49801
|
+
"react-dom": M.react
|
|
49812
49802
|
}, a = `<!doctype html>
|
|
49813
49803
|
<html lang="en">
|
|
49814
49804
|
<head>
|
|
@@ -49832,13 +49822,11 @@ function XN(_) {
|
|
|
49832
49822
|
<div id="root"></div>
|
|
49833
49823
|
</div>
|
|
49834
49824
|
</body>
|
|
49835
|
-
</html>`,
|
|
49825
|
+
</html>`, S = `import React from 'react'
|
|
49836
49826
|
import ReactDOM from 'react-dom/client'
|
|
49837
49827
|
import { ${_.chartType.vanilla} } from '@carbon/charts-react'
|
|
49838
49828
|
import data from './data.js'
|
|
49839
49829
|
import options from './options.js'
|
|
49840
|
-
|
|
49841
|
-
import '@carbon/styles/css/styles.css'
|
|
49842
49830
|
import '@carbon/charts-react/styles.css'
|
|
49843
49831
|
|
|
49844
49832
|
class App extends React.Component {
|
|
@@ -49876,7 +49864,7 @@ root.render(
|
|
|
49876
49864
|
files: {
|
|
49877
49865
|
"public/index.html": a,
|
|
49878
49866
|
"src/data.js": D(_.data),
|
|
49879
|
-
"src/index.js":
|
|
49867
|
+
"src/index.js": S,
|
|
49880
49868
|
"src/options.js": D(_.options),
|
|
49881
49869
|
"package.json": JSON.stringify(E, null, 2)
|
|
49882
49870
|
}
|
|
@@ -49884,18 +49872,17 @@ root.render(
|
|
|
49884
49872
|
}
|
|
49885
49873
|
function QN(_) {
|
|
49886
49874
|
const e = {
|
|
49887
|
-
"@carbon/charts-svelte":
|
|
49888
|
-
"@
|
|
49889
|
-
"@
|
|
49890
|
-
|
|
49891
|
-
d3:
|
|
49892
|
-
"d3-
|
|
49893
|
-
|
|
49894
|
-
svelte:
|
|
49895
|
-
|
|
49896
|
-
|
|
49897
|
-
|
|
49898
|
-
vite: S.vite
|
|
49875
|
+
"@carbon/charts-svelte": M.carbonCharts,
|
|
49876
|
+
"@sveltejs/vite-plugin-svelte": M.svelteVite,
|
|
49877
|
+
"@tsconfig/svelte": M.svelteTsConfig,
|
|
49878
|
+
d3: M.d3,
|
|
49879
|
+
"d3-cloud": M.d3Cloud,
|
|
49880
|
+
"d3-sankey": M.d3Sankey,
|
|
49881
|
+
svelte: M.svelte,
|
|
49882
|
+
"svelte-check": M.svelteCheck,
|
|
49883
|
+
tslib: M.tslib,
|
|
49884
|
+
typescript: M.typescript,
|
|
49885
|
+
vite: M.vite
|
|
49899
49886
|
};
|
|
49900
49887
|
let a = _.chartType.vanilla;
|
|
49901
49888
|
switch (a) {
|
|
@@ -49909,9 +49896,8 @@ function QN(_) {
|
|
|
49909
49896
|
a = "BarChartStacked";
|
|
49910
49897
|
break;
|
|
49911
49898
|
}
|
|
49912
|
-
const
|
|
49899
|
+
const S = `<script lang="ts">
|
|
49913
49900
|
import { ${a} } from '@carbon/charts-svelte'
|
|
49914
|
-
import '@carbon/styles/css/styles.css'
|
|
49915
49901
|
import '@carbon/charts-svelte/styles.css'
|
|
49916
49902
|
import options from './options.js'
|
|
49917
49903
|
import data from './data.js'
|
|
@@ -49943,7 +49929,7 @@ export default app
|
|
|
49943
49929
|
<div id="app"></div>
|
|
49944
49930
|
<script type="module" src="/src/main.ts"><\/script>
|
|
49945
49931
|
</body>
|
|
49946
|
-
</html>`,
|
|
49932
|
+
</html>`, l = {
|
|
49947
49933
|
name: "carbon-charts-svelte-example",
|
|
49948
49934
|
description: "Carbon Charts Svelte Example",
|
|
49949
49935
|
version: "0.0.0",
|
|
@@ -49955,7 +49941,7 @@ export default app
|
|
|
49955
49941
|
check: "svelte-check --tsconfig ./tsconfig.json"
|
|
49956
49942
|
},
|
|
49957
49943
|
devDependencies: e
|
|
49958
|
-
},
|
|
49944
|
+
}, u = `import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
|
49959
49945
|
|
|
49960
49946
|
export default {
|
|
49961
49947
|
preprocess: vitePreprocess()
|
|
@@ -49992,15 +49978,15 @@ export default defineConfig({
|
|
|
49992
49978
|
template: "node",
|
|
49993
49979
|
title: "Carbon Charts Svelte Example",
|
|
49994
49980
|
files: {
|
|
49995
|
-
"src/App.svelte":
|
|
49981
|
+
"src/App.svelte": S,
|
|
49996
49982
|
"src/data.js": D(_.data),
|
|
49997
49983
|
"src/main.ts": E,
|
|
49998
49984
|
"src/options.js": D(_.options),
|
|
49999
49985
|
"src/vite-env.d.ts": N,
|
|
50000
49986
|
".stackblitzrc": t,
|
|
50001
49987
|
"index.html": r,
|
|
50002
|
-
"package.json": JSON.stringify(
|
|
50003
|
-
"svelte.config.js":
|
|
49988
|
+
"package.json": JSON.stringify(l, null, 2),
|
|
49989
|
+
"svelte.config.js": u,
|
|
50004
49990
|
"tsconfig.json": g,
|
|
50005
49991
|
"tsconfig.node.json": n,
|
|
50006
49992
|
"vite.config.ts": K
|
|
@@ -50009,13 +49995,11 @@ export default defineConfig({
|
|
|
50009
49995
|
}
|
|
50010
49996
|
function jN(_) {
|
|
50011
49997
|
const e = {
|
|
50012
|
-
"@carbon/charts-vue":
|
|
50013
|
-
|
|
50014
|
-
d3:
|
|
50015
|
-
"d3-
|
|
50016
|
-
|
|
50017
|
-
sass: S.sass,
|
|
50018
|
-
vue: S.vue
|
|
49998
|
+
"@carbon/charts-vue": M.carbonCharts,
|
|
49999
|
+
d3: M.d3,
|
|
50000
|
+
"d3-cloud": M.d3Cloud,
|
|
50001
|
+
"d3-sankey": M.d3Sankey,
|
|
50002
|
+
vue: M.vue
|
|
50019
50003
|
}, a = `<!DOCTYPE html>
|
|
50020
50004
|
<html lang="en">
|
|
50021
50005
|
<head>
|
|
@@ -50033,7 +50017,7 @@ function jN(_) {
|
|
|
50033
50017
|
<body>
|
|
50034
50018
|
<div id="app"></div>
|
|
50035
50019
|
</body>
|
|
50036
|
-
</html>`,
|
|
50020
|
+
</html>`, S = `<template>
|
|
50037
50021
|
<div id="app" class="p-1">
|
|
50038
50022
|
<${_.chartType.vue} :data="data" :options="options" />
|
|
50039
50023
|
</div>
|
|
@@ -50054,7 +50038,6 @@ export default {
|
|
|
50054
50038
|
<\/script>
|
|
50055
50039
|
|
|
50056
50040
|
<style>
|
|
50057
|
-
@import '@carbon/styles/css/styles.css';
|
|
50058
50041
|
@import '@carbon/charts-vue/styles.css';
|
|
50059
50042
|
.p-1 {
|
|
50060
50043
|
padding: 2rem;
|
|
@@ -50083,7 +50066,7 @@ app.mount('#app')
|
|
|
50083
50066
|
dependencies: e,
|
|
50084
50067
|
files: {
|
|
50085
50068
|
"public/index.html": a,
|
|
50086
|
-
"src/App.vue":
|
|
50069
|
+
"src/App.vue": S,
|
|
50087
50070
|
"src/data.js": D(_.data),
|
|
50088
50071
|
"src/main.js": E,
|
|
50089
50072
|
"src/options.js": D(_.options),
|
|
@@ -50092,7 +50075,7 @@ app.mount('#app')
|
|
|
50092
50075
|
};
|
|
50093
50076
|
}
|
|
50094
50077
|
const qN = (_) => {
|
|
50095
|
-
var
|
|
50078
|
+
var S, E, N;
|
|
50096
50079
|
const e = document.createElement("div");
|
|
50097
50080
|
e.id = "theme-picker", e.innerHTML = `
|
|
50098
50081
|
<fieldset class="cds--fieldset marginTop-45">
|
|
@@ -50135,7 +50118,7 @@ const qN = (_) => {
|
|
|
50135
50118
|
</div>
|
|
50136
50119
|
</fieldset>`;
|
|
50137
50120
|
const a = document.documentElement.getAttribute("data-carbon-theme");
|
|
50138
|
-
a ? (
|
|
50121
|
+
a ? (S = e.querySelector(`input#theme__${a}`)) == null || S.setAttribute("checked", "true") : (E = e.querySelector("input#theme__white")) == null || E.setAttribute("checked", "true"), (N = _.querySelector("#charting-controls")) == null || N.appendChild(e);
|
|
50139
50122
|
}, $N = (_, e) => {
|
|
50140
50123
|
const a = [
|
|
50141
50124
|
"geoEqualEarth",
|
|
@@ -50145,7 +50128,7 @@ const qN = (_) => {
|
|
|
50145
50128
|
"geoEquirectangular",
|
|
50146
50129
|
"geoMercator",
|
|
50147
50130
|
"geoNaturalEarth1"
|
|
50148
|
-
],
|
|
50131
|
+
], S = e.model.getOptions(), E = document.createElement("div");
|
|
50149
50132
|
E.id = "projection-picker", E.innerHTML = `
|
|
50150
50133
|
<div class="cds--form-item">
|
|
50151
50134
|
<div class="cds--select">
|
|
@@ -50163,14 +50146,14 @@ const qN = (_) => {
|
|
|
50163
50146
|
</div>
|
|
50164
50147
|
</div>`, E.querySelector("#projection-select").addEventListener("change", (N) => {
|
|
50165
50148
|
const { value: t } = N.target;
|
|
50166
|
-
|
|
50149
|
+
S.thematic.projection = t, e.model.setOptions(S);
|
|
50167
50150
|
}), _.querySelector("#charting-controls").appendChild(E);
|
|
50168
50151
|
}, A3 = (_, e, a = { colorPairingOptions: null }) => {
|
|
50169
50152
|
var K, PA;
|
|
50170
|
-
const { colorPairingOptions:
|
|
50171
|
-
let
|
|
50172
|
-
r > 5 && (
|
|
50173
|
-
const g = `${
|
|
50153
|
+
const { colorPairingOptions: S } = a, E = e.model.getOptions(), { numberOfVariants: N, option: t } = E.color.pairing, r = e.model.getAllDataGroupsNames().length, l = N || r;
|
|
50154
|
+
let u = !1;
|
|
50155
|
+
r > 5 && (u = !0);
|
|
50156
|
+
const g = `${l}-${t}`, n = document.createElement("div");
|
|
50174
50157
|
n.id = "color-palette-picker", n.innerHTML = `
|
|
50175
50158
|
<div class="cds--form-item">
|
|
50176
50159
|
<div class="cds--select">
|
|
@@ -50180,37 +50163,37 @@ const qN = (_) => {
|
|
|
50180
50163
|
<option class="cds--select-option" value="" disabled selected hidden>
|
|
50181
50164
|
Choose an option
|
|
50182
50165
|
</option>
|
|
50183
|
-
${
|
|
50184
|
-
const z =
|
|
50185
|
-
let
|
|
50186
|
-
const
|
|
50187
|
-
if (
|
|
50188
|
-
for (let
|
|
50189
|
-
|
|
50190
|
-
<option class="cds--select-option" ${
|
|
50191
|
-
${
|
|
50166
|
+
${S ? Object.keys(S).map((F) => {
|
|
50167
|
+
const z = S ? S[F] : 0;
|
|
50168
|
+
let T = `<optgroup class="cds--select-optgroup" label="${F} groups">`;
|
|
50169
|
+
const I = parseInt(F);
|
|
50170
|
+
if (I !== 14)
|
|
50171
|
+
for (let P = 1; P <= z; P++)
|
|
50172
|
+
T += `
|
|
50173
|
+
<option class="cds--select-option" ${u || I < r ? "disabled" : ""} value="${F}-option-${P}" ${g === `${I}-${P}` ? "selected" : ""}>
|
|
50174
|
+
${I}-color groups, option ${P}
|
|
50192
50175
|
</option>`;
|
|
50193
50176
|
else
|
|
50194
|
-
|
|
50177
|
+
T += `<option class="cds--select-option" value="14-color-option-1" ${g === "14-1" || u ? "selected" : ""}>
|
|
50195
50178
|
Categorical palette
|
|
50196
50179
|
</option>`;
|
|
50197
|
-
return
|
|
50180
|
+
return T;
|
|
50198
50181
|
}).join("") : ""}
|
|
50199
50182
|
</select>
|
|
50200
50183
|
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="cds--select__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"></path></svg>
|
|
50201
50184
|
</div>
|
|
50202
50185
|
</div>
|
|
50203
50186
|
</div>
|
|
50204
|
-
</div>`, (K = n == null ? void 0 : n.querySelector("#color-palette-select")) == null || K.addEventListener("change", (
|
|
50205
|
-
const { value: z } =
|
|
50206
|
-
E.color.pairing.numberOfVariants =
|
|
50187
|
+
</div>`, (K = n == null ? void 0 : n.querySelector("#color-palette-select")) == null || K.addEventListener("change", (F) => {
|
|
50188
|
+
const { value: z } = F.target, [T, I] = z.split("-color-option-");
|
|
50189
|
+
E.color.pairing.numberOfVariants = T, E.color.pairing.option = I, e.model.setOptions(E);
|
|
50207
50190
|
}), (PA = _ == null ? void 0 : _.querySelector("#charting-controls")) == null || PA.appendChild(n);
|
|
50208
|
-
}, g3 = (_, e, a,
|
|
50191
|
+
}, g3 = (_, e, a, S = { colorPairingOptions: null }) => {
|
|
50209
50192
|
var E, N;
|
|
50210
|
-
_.querySelector("#charting-controls") && (_.querySelector("#charting-controls").innerHTML = ""), qN(_), ((E = e == null ? void 0 : e.configs) == null ? void 0 : E.excludeColorPaletteControl) !== !0 && A3(_, a,
|
|
50193
|
+
_.querySelector("#charting-controls") && (_.querySelector("#charting-controls").innerHTML = ""), qN(_), ((E = e == null ? void 0 : e.configs) == null ? void 0 : E.excludeColorPaletteControl) !== !0 && A3(_, a, S), (N = e == null ? void 0 : e.configs) != null && N.includeProjectionControl && $N(_, a), _3(_, a);
|
|
50211
50194
|
}, _3 = (_, e) => {
|
|
50212
|
-
const a = _.querySelectorAll("div#theme-picker input.cds--radio-button"),
|
|
50213
|
-
|
|
50195
|
+
const a = _.querySelectorAll("div#theme-picker input.cds--radio-button"), S = document.documentElement.getAttribute("data-carbon-theme");
|
|
50196
|
+
S && e.services.domUtils.getHolder().setAttribute("data-carbon-theme", S), a.forEach((E) => {
|
|
50214
50197
|
E.addEventListener("click", (N) => {
|
|
50215
50198
|
const t = N.target.value;
|
|
50216
50199
|
document.documentElement.setAttribute("data-carbon-theme", t), e.model.setOptions({ ...e.model.getOptions(), theme: t });
|
|
@@ -50241,8 +50224,8 @@ const qN = (_) => {
|
|
|
50241
50224
|
}
|
|
50242
50225
|
];
|
|
50243
50226
|
a = a.filter((t) => t.name !== e);
|
|
50244
|
-
const
|
|
50245
|
-
|
|
50227
|
+
const S = document.createElement("div");
|
|
50228
|
+
S.setAttribute("class", "cds--row resource-card-group");
|
|
50246
50229
|
let E = "";
|
|
50247
50230
|
a.forEach((t) => {
|
|
50248
50231
|
E += `<div class="cds--no-gutter-sm cds--col-md-6 cds--col-lg-6">
|
|
@@ -50263,7 +50246,7 @@ const qN = (_) => {
|
|
|
50263
50246
|
</div>
|
|
50264
50247
|
</div>
|
|
50265
50248
|
</div>`;
|
|
50266
|
-
}),
|
|
50249
|
+
}), S.innerHTML = E, (N = _ == null ? void 0 : _.querySelector("#other-versions")) == null || N.appendChild(S);
|
|
50267
50250
|
}, A = {
|
|
50268
50251
|
AlluvialChart: {
|
|
50269
50252
|
vanilla: "AlluvialChart",
|
|
@@ -50411,7 +50394,7 @@ const qN = (_) => {
|
|
|
50411
50394
|
},
|
|
50412
50395
|
{
|
|
50413
50396
|
options: te,
|
|
50414
|
-
data:
|
|
50397
|
+
data: s,
|
|
50415
50398
|
chartType: A.LineChart
|
|
50416
50399
|
},
|
|
50417
50400
|
{
|
|
@@ -50521,7 +50504,7 @@ const qN = (_) => {
|
|
|
50521
50504
|
},
|
|
50522
50505
|
{
|
|
50523
50506
|
options: re,
|
|
50524
|
-
data:
|
|
50507
|
+
data: s,
|
|
50525
50508
|
chartType: A.LineChart
|
|
50526
50509
|
},
|
|
50527
50510
|
{
|
|
@@ -50566,7 +50549,7 @@ const qN = (_) => {
|
|
|
50566
50549
|
},
|
|
50567
50550
|
{
|
|
50568
50551
|
options: Pe,
|
|
50569
|
-
data:
|
|
50552
|
+
data: s,
|
|
50570
50553
|
chartType: A.LineChart
|
|
50571
50554
|
}
|
|
50572
50555
|
]
|
|
@@ -50910,8 +50893,8 @@ const qN = (_) => {
|
|
|
50910
50893
|
chartType: A.StackedBarChart
|
|
50911
50894
|
},
|
|
50912
50895
|
{
|
|
50913
|
-
options:
|
|
50914
|
-
data:
|
|
50896
|
+
options: O,
|
|
50897
|
+
data: C,
|
|
50915
50898
|
chartType: A.StackedBarChart
|
|
50916
50899
|
},
|
|
50917
50900
|
{
|
|
@@ -51159,11 +51142,11 @@ const qN = (_) => {
|
|
|
51159
51142
|
demos: [
|
|
51160
51143
|
{
|
|
51161
51144
|
options: NA,
|
|
51162
|
-
data:
|
|
51145
|
+
data: s,
|
|
51163
51146
|
chartType: A.LineChart
|
|
51164
51147
|
},
|
|
51165
51148
|
{
|
|
51166
|
-
options:
|
|
51149
|
+
options: R,
|
|
51167
51150
|
data: i,
|
|
51168
51151
|
chartType: A.LineChart,
|
|
51169
51152
|
mainDemo: !0
|