@carbon/charts-vue 1.11.0 → 1.11.2

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 (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/dist/components/CcvAlluvialChart.d.ts +91 -41
  4. package/dist/components/CcvAreaChart.d.ts +91 -41
  5. package/dist/components/CcvBoxplotChart.d.ts +90 -41
  6. package/dist/components/CcvBubbleChart.d.ts +91 -41
  7. package/dist/components/CcvBulletChart.d.ts +91 -41
  8. package/dist/components/CcvChoroplethChart.d.ts +91 -41
  9. package/dist/components/CcvCirclePackChart.d.ts +91 -42
  10. package/dist/components/CcvComboChart.d.ts +91 -42
  11. package/dist/components/CcvDonutChart.d.ts +91 -42
  12. package/dist/components/CcvGaugeChart.d.ts +91 -41
  13. package/dist/components/CcvGroupedBarChart.d.ts +91 -41
  14. package/dist/components/CcvHeatmapChart.d.ts +91 -41
  15. package/dist/components/CcvHistogramChart.d.ts +91 -42
  16. package/dist/components/CcvLineChart.d.ts +91 -42
  17. package/dist/components/CcvLollipopChart.d.ts +90 -42
  18. package/dist/components/CcvMeterChart.d.ts +91 -42
  19. package/dist/components/CcvPieChart.d.ts +91 -41
  20. package/dist/components/CcvRadarChart.d.ts +91 -41
  21. package/dist/components/CcvScatterChart.d.ts +91 -41
  22. package/dist/components/CcvSimpleBarChart.d.ts +91 -41
  23. package/dist/components/CcvStackedAreaChart.d.ts +91 -41
  24. package/dist/components/CcvStackedBarChart.d.ts +91 -41
  25. package/dist/components/CcvTreeChart.d.ts +91 -41
  26. package/dist/components/CcvTreemapChart.d.ts +90 -41
  27. package/dist/components/CcvWordCloudChart.d.ts +91 -41
  28. package/dist/components/chartFactory.d.ts +90 -0
  29. package/dist/components/index.d.ts +25 -25
  30. package/dist/index.d.ts +6 -6
  31. package/dist/index.js +17 -17
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +6700 -7844
  34. package/dist/index.mjs.map +1 -1
  35. package/package.json +14 -24
  36. package/dist/components/CcvBaseChart.d.ts +0 -29
@@ -1,41 +1,91 @@
1
- import { ChartTabularData, WorldCloudChartOptions } from '@carbon/charts';
2
- declare const _sfc_main: import('./vue/dist/vue.esm.js').DefineComponent<{
3
- data: {
4
- type: () => ChartTabularData;
5
- required: true;
6
- };
7
- options: {
8
- type: () => WorldCloudChartOptions;
9
- required: true;
10
- };
11
- }, {}, {}, {}, {}, import('./vue/dist/vue.esm.js/types/v3-component-options.js').ComponentOptionsMixin, import('./vue/dist/vue.esm.js').DefineComponent<{
12
- data: {
13
- type: () => ChartTabularData;
14
- required: true;
15
- };
16
- options: {
17
- type: ObjectConstructor;
18
- required: true;
19
- };
20
- }, {}, {
21
- coreChart: import("./CcvBaseChart").CoreChart<any> | null;
22
- }, {}, {}, import('./vue/dist/vue.esm.js/types/v3-component-options.js').ComponentOptionsMixin, import('./vue/dist/vue.esm.js/types/v3-component-options.js').ComponentOptionsMixin, {}, string, Readonly<import('./vue/dist/vue.esm.js').ExtractPropTypes<{
23
- data: {
24
- type: () => ChartTabularData;
25
- required: true;
26
- };
27
- options: {
28
- type: ObjectConstructor;
29
- required: true;
30
- };
31
- }>>, {}>, {}, string, Readonly<import('./vue/dist/vue.esm.js').ExtractPropTypes<{
32
- data: {
33
- type: () => ChartTabularData;
34
- required: true;
35
- };
36
- options: {
37
- type: () => WorldCloudChartOptions;
38
- required: true;
39
- };
40
- }>>, {}>;
41
- export default _sfc_main;
1
+ import { type WorldCloudChartOptions } from '@carbon/charts';
2
+ declare const _default: import('./vue/dist/vue.esm-bundler.js').DefineComponent<{
3
+ data: {
4
+ type: () => import("@carbon/charts").ChartTabularData;
5
+ required: true;
6
+ };
7
+ options: {
8
+ type: () => WorldCloudChartOptions;
9
+ required: true;
10
+ };
11
+ }, {
12
+ chart: import('./vue/dist/vue.esm-bundler.js').Ref<{
13
+ components: {
14
+ type: string;
15
+ renderType: import("@carbon/charts").RenderTypes;
16
+ id: string;
17
+ init: () => void;
18
+ render: (animate?: boolean | undefined) => void;
19
+ destroy: () => void;
20
+ setModel: (newObj: any) => void;
21
+ setServices: (newObj: any) => void;
22
+ setParent: (parent: any) => void;
23
+ getParent: () => import("d3-selection").Selection<HTMLDivElement | SVGGraphicsElement, any, HTMLElement, any>;
24
+ getComponentContainer: (configs?: {
25
+ withinChartClip: boolean;
26
+ } | undefined) => import("d3-selection").Selection<any, any, Element, any>;
27
+ getOptions: () => any;
28
+ }[];
29
+ services: any;
30
+ model: {
31
+ getAllDataFromDomain: (groups?: any) => any;
32
+ getDisplayData: (groups?: any) => any;
33
+ getData: () => any;
34
+ isDataEmpty: () => boolean;
35
+ setData: (newData: any) => any;
36
+ getDataGroups: (groups?: any) => any;
37
+ getActiveDataGroups: (groups?: any) => any;
38
+ getDataGroupNames: (groups?: any) => any;
39
+ getActiveDataGroupNames: (groups?: any) => any;
40
+ getBinConfigurations: () => {
41
+ bins: import("d3-array").Bin<number, number>[];
42
+ binsDomain: any[];
43
+ };
44
+ getBinnedStackedData: () => import("d3-shape").SeriesPoint<{
45
+ [key: string]: number;
46
+ }>[][];
47
+ getGroupedData: (groups?: any) => {
48
+ name: string;
49
+ data: any;
50
+ }[];
51
+ getStackKeys: ({ bins, groups }?: import("@carbon/charts").StackKeysParams | undefined) => any;
52
+ getDataValuesGroupedByKeys: ({ bins, groups }: import("@carbon/charts").StackKeysParams) => any;
53
+ getStackedData: ({ percentage, groups, divergent }: import("@carbon/charts").StackKeysParams) => any[][];
54
+ getOptions: () => any;
55
+ set: (newState: any, configs?: any) => void;
56
+ get: (property?: string | undefined) => any;
57
+ setOptions: (newOptions: any) => void;
58
+ update: (animate?: boolean | undefined) => void;
59
+ toggleDataLabel: (changedLabel: string) => void;
60
+ getIsFilled: (group: any, key?: any, data?: any, defaultFilled?: boolean | undefined) => any;
61
+ getFillColor: (group: any, key?: any, data?: any) => any;
62
+ getStrokeColor: (group: any, key?: any, data?: any) => any;
63
+ isUserProvidedColorScaleValid: () => any;
64
+ getColorClassName: (configs: {
65
+ classNameTypes?: import("@carbon/charts").ColorClassNameTypes[] | undefined;
66
+ dataGroupName?: string | number | undefined;
67
+ originalClassName?: string | undefined;
68
+ value?: number | undefined;
69
+ }) => string;
70
+ getStatus: () => any;
71
+ getAllDataGroupsNames: () => string[];
72
+ getTabularDataArray: () => import("@carbon/charts").ChartTabularData;
73
+ exportToCSV: () => void;
74
+ };
75
+ init: (holder: HTMLDivElement, chartConfigs: import("@carbon/charts").ChartConfig<import("@carbon/charts").BaseChartOptions>) => void;
76
+ getComponents: () => import("@carbon/charts").Component[];
77
+ update: () => void;
78
+ destroy: () => void;
79
+ } | null>;
80
+ chartDiv: import('./vue/dist/vue.esm-bundler.js').Ref<HTMLDivElement | null>;
81
+ }, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
82
+ data: {
83
+ type: () => import("@carbon/charts").ChartTabularData;
84
+ required: true;
85
+ };
86
+ options: {
87
+ type: () => WorldCloudChartOptions;
88
+ required: true;
89
+ };
90
+ }>>, {}, {}>;
91
+ export default _default;
@@ -0,0 +1,90 @@
1
+ import type { ChartTabularData, ChartOptions } from '@carbon/charts';
2
+ export declare function chartFactory<T extends ChartOptions>(chartType: any, chartName: string): import('./vue/dist/vue.esm-bundler.js').DefineComponent<{
3
+ data: {
4
+ type: () => ChartTabularData;
5
+ required: true;
6
+ };
7
+ options: {
8
+ type: () => T;
9
+ required: true;
10
+ };
11
+ }, {
12
+ chart: import('./vue/dist/vue.esm-bundler.js').Ref<{
13
+ components: {
14
+ type: string;
15
+ renderType: import("@carbon/charts").RenderTypes;
16
+ id: string;
17
+ init: () => void;
18
+ render: (animate?: boolean | undefined) => void;
19
+ destroy: () => void;
20
+ setModel: (newObj: any) => void;
21
+ setServices: (newObj: any) => void;
22
+ setParent: (parent: any) => void;
23
+ getParent: () => import("d3-selection").Selection<HTMLDivElement | SVGGraphicsElement, any, HTMLElement, any>;
24
+ getComponentContainer: (configs?: {
25
+ withinChartClip: boolean;
26
+ } | undefined) => import("d3-selection").Selection<any, any, Element, any>;
27
+ getOptions: () => any;
28
+ }[];
29
+ services: any;
30
+ model: {
31
+ getAllDataFromDomain: (groups?: any) => any;
32
+ getDisplayData: (groups?: any) => any;
33
+ getData: () => any;
34
+ isDataEmpty: () => boolean;
35
+ setData: (newData: any) => any;
36
+ getDataGroups: (groups?: any) => any;
37
+ getActiveDataGroups: (groups?: any) => any;
38
+ getDataGroupNames: (groups?: any) => any;
39
+ getActiveDataGroupNames: (groups?: any) => any;
40
+ getBinConfigurations: () => {
41
+ bins: import("d3-array").Bin<number, number>[];
42
+ binsDomain: any[];
43
+ };
44
+ getBinnedStackedData: () => import("d3-shape").SeriesPoint<{
45
+ [key: string]: number;
46
+ }>[][];
47
+ getGroupedData: (groups?: any) => {
48
+ name: string;
49
+ data: any;
50
+ }[];
51
+ getStackKeys: ({ bins, groups }?: import("@carbon/charts").StackKeysParams | undefined) => any;
52
+ getDataValuesGroupedByKeys: ({ bins, groups }: import("@carbon/charts").StackKeysParams) => any;
53
+ getStackedData: ({ percentage, groups, divergent }: import("@carbon/charts").StackKeysParams) => any[][];
54
+ getOptions: () => any;
55
+ set: (newState: any, configs?: any) => void;
56
+ get: (property?: string | undefined) => any;
57
+ setOptions: (newOptions: any) => void;
58
+ update: (animate?: boolean | undefined) => void;
59
+ toggleDataLabel: (changedLabel: string) => void;
60
+ getIsFilled: (group: any, key?: any, data?: any, defaultFilled?: boolean | undefined) => any;
61
+ getFillColor: (group: any, key?: any, data?: any) => any;
62
+ getStrokeColor: (group: any, key?: any, data?: any) => any;
63
+ isUserProvidedColorScaleValid: () => any;
64
+ getColorClassName: (configs: {
65
+ classNameTypes?: import("@carbon/charts").ColorClassNameTypes[] | undefined;
66
+ dataGroupName?: string | number | undefined;
67
+ originalClassName?: string | undefined;
68
+ value?: number | undefined;
69
+ }) => string;
70
+ getStatus: () => any;
71
+ getAllDataGroupsNames: () => string[];
72
+ getTabularDataArray: () => ChartTabularData;
73
+ exportToCSV: () => void;
74
+ };
75
+ init: (holder: HTMLDivElement, chartConfigs: import("@carbon/charts").ChartConfig<import("@carbon/charts").BaseChartOptions>) => void;
76
+ getComponents: () => import("@carbon/charts").Component[];
77
+ update: () => void;
78
+ destroy: () => void;
79
+ } | null>;
80
+ chartDiv: import('./vue/dist/vue.esm-bundler.js').Ref<HTMLDivElement | null>;
81
+ }, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
82
+ data: {
83
+ type: () => ChartTabularData;
84
+ required: true;
85
+ };
86
+ options: {
87
+ type: () => T;
88
+ required: true;
89
+ };
90
+ }>>, {}, {}>;
@@ -1,25 +1,25 @@
1
- export { default as CcvAlluvialChart } from "./CcvAlluvialChart";
2
- export { default as CcvAreaChart } from "./CcvAreaChart";
3
- export { default as CcvBoxplotChart } from "./CcvBoxplotChart";
4
- export { default as CcvBubbleChart } from "./CcvBubbleChart";
5
- export { default as CcvBulletChart } from "./CcvBulletChart";
6
- export { default as ExperimentalCcvChoroplethChart } from "./CcvChoroplethChart";
7
- export { default as CcvCirclePackChart } from "./CcvCirclePackChart";
8
- export { default as CcvComboChart } from "./CcvComboChart";
9
- export { default as CcvDonutChart } from "./CcvDonutChart";
10
- export { default as CcvGaugeChart } from "./CcvGaugeChart";
11
- export { default as CcvGroupedBarChart } from "./CcvGroupedBarChart";
12
- export { default as CcvHeatmapChart } from "./CcvHeatmapChart";
13
- export { default as CcvHistogramChart } from "./CcvHistogramChart";
14
- export { default as CcvLineChart } from "./CcvLineChart";
15
- export { default as CcvLollipopChart } from "./CcvLollipopChart";
16
- export { default as CcvMeterChart } from "./CcvMeterChart";
17
- export { default as CcvPieChart } from "./CcvPieChart";
18
- export { default as CcvRadarChart } from "./CcvRadarChart";
19
- export { default as CcvScatterChart } from "./CcvScatterChart";
20
- export { default as CcvSimpleBarChart } from "./CcvSimpleBarChart";
21
- export { default as CcvStackedAreaChart } from "./CcvStackedAreaChart";
22
- export { default as CcvStackedBarChart } from "./CcvStackedBarChart";
23
- export { default as CcvTreeChart } from "./CcvTreeChart";
24
- export { default as CcvTreemapChart } from "./CcvTreemapChart";
25
- export { default as CcvWordCloudChart } from "./CcvWordCloudChart";
1
+ export { default as CcvAlluvialChart } from './CcvAlluvialChart.ts';
2
+ export { default as CcvAreaChart } from './CcvAreaChart.ts';
3
+ export { default as CcvBoxplotChart } from './CcvBoxplotChart.ts';
4
+ export { default as CcvBubbleChart } from './CcvBubbleChart.ts';
5
+ export { default as CcvBulletChart } from './CcvBulletChart.ts';
6
+ export { default as ExperimentalCcvChoroplethChart } from './CcvChoroplethChart.ts';
7
+ export { default as CcvCirclePackChart } from './CcvCirclePackChart.ts';
8
+ export { default as CcvComboChart } from './CcvComboChart.ts';
9
+ export { default as CcvDonutChart } from './CcvDonutChart.ts';
10
+ export { default as CcvGaugeChart } from './CcvGaugeChart.ts';
11
+ export { default as CcvGroupedBarChart } from './CcvGroupedBarChart.ts';
12
+ export { default as CcvHeatmapChart } from './CcvHeatmapChart.ts';
13
+ export { default as CcvHistogramChart } from './CcvHistogramChart.ts';
14
+ export { default as CcvLineChart } from './CcvLineChart.ts';
15
+ export { default as CcvLollipopChart } from './CcvLollipopChart.ts';
16
+ export { default as CcvMeterChart } from './CcvMeterChart.ts';
17
+ export { default as CcvPieChart } from './CcvPieChart.ts';
18
+ export { default as CcvRadarChart } from './CcvRadarChart.ts';
19
+ export { default as CcvScatterChart } from './CcvScatterChart.ts';
20
+ export { default as CcvSimpleBarChart } from './CcvSimpleBarChart.ts';
21
+ export { default as CcvStackedAreaChart } from './CcvStackedAreaChart.ts';
22
+ export { default as CcvStackedBarChart } from './CcvStackedBarChart.ts';
23
+ export { default as CcvTreeChart } from './CcvTreeChart.ts';
24
+ export { default as CcvTreemapChart } from './CcvTreemapChart.ts';
25
+ export { default as CcvWordCloudChart } from './CcvWordCloudChart.ts';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { CcvAlluvialChart, CcvAreaChart, CcvBoxplotChart, CcvBubbleChart, CcvBulletChart, CcvCirclePackChart, CcvComboChart, ExperimentalCcvChoroplethChart, CcvDonutChart, CcvGaugeChart, CcvGroupedBarChart, CcvHeatmapChart, CcvHistogramChart, CcvLineChart, CcvLollipopChart, CcvMeterChart, CcvPieChart, CcvRadarChart, CcvScatterChart, CcvSimpleBarChart, CcvStackedAreaChart, CcvStackedBarChart, CcvTreeChart, CcvTreemapChart, CcvWordCloudChart } from './components';
2
- declare const _default: {
3
- install(Vue: any, options: any): void;
4
- };
5
- export default _default;
6
- export { CcvAlluvialChart, CcvAreaChart, CcvBoxplotChart, CcvBubbleChart, CcvBulletChart, ExperimentalCcvChoroplethChart, CcvCirclePackChart, CcvComboChart, CcvDonutChart, CcvGaugeChart, CcvGroupedBarChart, CcvHeatmapChart, CcvHistogramChart, CcvLineChart, CcvLollipopChart, CcvMeterChart, CcvPieChart, CcvRadarChart, CcvScatterChart, CcvSimpleBarChart, CcvStackedAreaChart, CcvStackedBarChart, CcvTreeChart, CcvTreemapChart, CcvWordCloudChart };
1
+ import { CcvAlluvialChart, CcvAreaChart, CcvBoxplotChart, CcvBubbleChart, CcvBulletChart, CcvCirclePackChart, CcvComboChart, ExperimentalCcvChoroplethChart, CcvDonutChart, CcvGaugeChart, CcvGroupedBarChart, CcvHeatmapChart, CcvHistogramChart, CcvLineChart, CcvLollipopChart, CcvMeterChart, CcvPieChart, CcvRadarChart, CcvScatterChart, CcvSimpleBarChart, CcvStackedAreaChart, CcvStackedBarChart, CcvTreeChart, CcvTreemapChart, CcvWordCloudChart } from './components';
2
+ declare const _default: {
3
+ install(app: any, options?: string[]): void;
4
+ };
5
+ export default _default;
6
+ export { CcvAlluvialChart, CcvAreaChart, CcvBoxplotChart, CcvBubbleChart, CcvBulletChart, ExperimentalCcvChoroplethChart, CcvCirclePackChart, CcvComboChart, CcvDonutChart, CcvGaugeChart, CcvGroupedBarChart, CcvHeatmapChart, CcvHistogramChart, CcvLineChart, CcvLollipopChart, CcvMeterChart, CcvPieChart, CcvRadarChart, CcvScatterChart, CcvSimpleBarChart, CcvStackedAreaChart, CcvStackedBarChart, CcvTreeChart, CcvTreemapChart, CcvWordCloudChart };