@oliasoft-open-source/charts-library 3.5.4-beta-7 → 3.5.4
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/dist/index.js +2031 -2479
- package/dist/index.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +1 -1
- package/dist/src/components/bar-chart/bar-chart.d.ts +1 -1
- package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +1 -1
- package/dist/src/components/line-chart/controls/controls-portal.d.ts +1 -1
- package/dist/src/components/line-chart/controls/controls.d.ts +1 -1
- package/dist/src/components/line-chart/controls/drag-options.d.ts +1 -1
- package/dist/src/components/line-chart/controls/line-options.d.ts +1 -1
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +1 -3
- package/dist/src/components/line-chart/legend/legend-dropzone.d.ts +1 -1
- package/dist/src/components/line-chart/legend/legend-item.d.ts +1 -1
- package/dist/src/components/line-chart/legend/legend.d.ts +1 -1
- package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +4 -4
- package/dist/src/components/line-chart/line-chart.d.ts +1 -1
- package/dist/src/components/line-chart/line-chart.interface.d.ts +1 -1
- package/dist/src/components/pie-chart/pie-chart.d.ts +1 -1
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +1 -1
- package/package.json +40 -38
- package/dist/src/components/bar-chart/bar-chart.stories.d.ts +0 -657
- package/dist/src/components/common/helpers/container.d.ts +0 -18
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +0 -8
- package/dist/src/components/common/helpers/range/estimate-close-values.test.d.ts +0 -1
- package/dist/src/components/common/helpers/range/range.test.d.ts +0 -1
- package/dist/src/components/common/helpers/text.d.ts +0 -1
- package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +0 -1
- package/dist/src/components/line-chart/controls/legend-options.d.ts +0 -1
- package/dist/src/components/line-chart/initialize/initialize-line-chart.test.d.ts +0 -1
- package/dist/src/components/line-chart/line-chart.stories.d.ts +0 -1009
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-annotations-data.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/translations/get-translations.test.d.ts +0 -1
- package/dist/src/components/pie-chart/pie-chart.stories.d.ts +0 -263
- package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +0 -118
|
@@ -10,7 +10,7 @@ export declare const getDefaultProps: (props: IBarChartProps) => {
|
|
|
10
10
|
title: string | string[];
|
|
11
11
|
direction: "vertical" | "horizontal";
|
|
12
12
|
axes: {
|
|
13
|
-
x: [{}] | import("../common/common.interface").ICommonAxis<"
|
|
13
|
+
x: [{}] | import("../common/common.interface").ICommonAxis<"top" | "bottom">[];
|
|
14
14
|
y: [{}] | import("../common/common.interface").ICommonAxis<"left" | "right">[];
|
|
15
15
|
};
|
|
16
16
|
additionalAxesOptions: {
|
|
@@ -2,5 +2,5 @@ import { IAxesOptions } from './axes-options-interfaces';
|
|
|
2
2
|
interface IAxesOptionsWithTranslations extends IAxesOptions {
|
|
3
3
|
translations: Record<string, string>;
|
|
4
4
|
}
|
|
5
|
-
export declare const AxesOptions: (optionsPopover: IAxesOptionsWithTranslations) =>
|
|
5
|
+
export declare const AxesOptions: (optionsPopover: IAxesOptionsWithTranslations) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -3,5 +3,5 @@ interface ControlsPortalProps {
|
|
|
3
3
|
children: ReactElement;
|
|
4
4
|
controlsPortalId: string;
|
|
5
5
|
}
|
|
6
|
-
declare const ControlsPortal: ({ children, controlsPortalId, }: ControlsPortalProps) =>
|
|
6
|
+
declare const ControlsPortal: ({ children, controlsPortalId, }: ControlsPortalProps) => JSX.Element;
|
|
7
7
|
export default ControlsPortal;
|
|
@@ -2,5 +2,5 @@ import { IControls } from './controls-interfaces';
|
|
|
2
2
|
/**
|
|
3
3
|
* @param {import('./controls-interfaces').IControls} obj
|
|
4
4
|
*/
|
|
5
|
-
declare const Controls: ({ headerComponent, subheaderComponent, table, chartRef, state, options, dispatch, generatedDatasets, translations, controlsPortalId, }: IControls) =>
|
|
5
|
+
declare const Controls: ({ headerComponent, subheaderComponent, table, chartRef, state, options, dispatch, generatedDatasets, translations, controlsPortalId, }: IControls) => JSX.Element;
|
|
6
6
|
export default Controls;
|
|
@@ -2,4 +2,4 @@ import { IDragOptions } from './drag-options-interfaces';
|
|
|
2
2
|
/**
|
|
3
3
|
* @param {import('./drag-options-interfaces').IDragOptions} obj
|
|
4
4
|
*/
|
|
5
|
-
export declare const DragOptions: ({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, isDragDataAllowed, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, orDoubleClickToCanvas, dragToMovePoints, dragDisabled, }, }: IDragOptions) =>
|
|
5
|
+
export declare const DragOptions: ({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, isDragDataAllowed, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, orDoubleClickToCanvas, dragToMovePoints, dragDisabled, }, }: IDragOptions) => JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface ILineOptions {
|
|
|
5
5
|
pointsEnabled: boolean;
|
|
6
6
|
translations: Record<string, string>;
|
|
7
7
|
}
|
|
8
|
-
export declare const LineOptions: ({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions) =>
|
|
8
|
+
export declare const LineOptions: ({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -40,8 +40,6 @@ export declare const useChartFunctions: ({ chartRef, state, options, dispatch, g
|
|
|
40
40
|
}[];
|
|
41
41
|
updateAxesRangesFromChart: () => void;
|
|
42
42
|
onResetAxes: () => void;
|
|
43
|
-
onUpdateAxes: ({ axes }:
|
|
44
|
-
axes: any;
|
|
45
|
-
}) => void;
|
|
43
|
+
onUpdateAxes: ({ axes }: any) => void;
|
|
46
44
|
};
|
|
47
45
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILegendDropZones } from './legend-interface';
|
|
2
|
-
declare const LegendDropZones: (legendDropZonesProps: ILegendDropZones) =>
|
|
2
|
+
declare const LegendDropZones: (legendDropZonesProps: ILegendDropZones) => JSX.Element;
|
|
3
3
|
export default LegendDropZones;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILegendItem } from './legend-interface';
|
|
2
|
-
declare const LegendItem: ({ hidden, dataset, handleClick }: ILegendItem) =>
|
|
2
|
+
declare const LegendItem: ({ hidden, dataset, handleClick }: ILegendItem) => JSX.Element;
|
|
3
3
|
export default LegendItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILegend } from './legend-interface';
|
|
2
|
-
declare const Legend: ({ chartRef, state, options, dispatch, generatedDatasets, }: ILegend) =>
|
|
2
|
+
declare const Legend: ({ chartRef, state, options, dispatch, generatedDatasets, }: ILegend) => JSX.Element | null;
|
|
3
3
|
export default Legend;
|
|
@@ -11,8 +11,8 @@ export declare const getDefaultProps: (props: ILineChartProps) => {
|
|
|
11
11
|
title: string | string[];
|
|
12
12
|
scales: import("../common/common.interface").ICommonScales;
|
|
13
13
|
axes: {
|
|
14
|
-
x: import("./line-chart.interface").ILineChartAxis<"
|
|
15
|
-
y: import("./line-chart.interface").ILineChartAxis<"left" | "right">[]
|
|
14
|
+
x: import("./line-chart.interface").ILineChartAxis<"top" | "bottom">[];
|
|
15
|
+
y: import("./line-chart.interface").ILineChartAxis<"left" | "right">[];
|
|
16
16
|
};
|
|
17
17
|
additionalAxesOptions: {
|
|
18
18
|
chartScaleType: "linear" | "logarithmic";
|
|
@@ -21,7 +21,7 @@ export declare const getDefaultProps: (props: ILineChartProps) => {
|
|
|
21
21
|
stepSize: number | undefined;
|
|
22
22
|
suggestedMin: number | undefined;
|
|
23
23
|
suggestedMax: number | undefined;
|
|
24
|
-
range: import("./line-chart.interface").ILineRange |
|
|
24
|
+
range: import("./line-chart.interface").ILineRange | null;
|
|
25
25
|
autoAxisPadding: boolean;
|
|
26
26
|
};
|
|
27
27
|
chartStyling: {
|
|
@@ -30,7 +30,7 @@ export declare const getDefaultProps: (props: ILineChartProps) => {
|
|
|
30
30
|
maintainAspectRatio: boolean;
|
|
31
31
|
staticChartHeight: boolean;
|
|
32
32
|
performanceMode: boolean;
|
|
33
|
-
squareAspectRatio: number |
|
|
33
|
+
squareAspectRatio: number | undefined;
|
|
34
34
|
layoutPadding: string | number | {
|
|
35
35
|
top: number;
|
|
36
36
|
bottom: number;
|
|
@@ -4,5 +4,5 @@ import { IPieChartProps } from './pie-chart.interface';
|
|
|
4
4
|
* @param {props: IPieChartProps} IPieChartProps
|
|
5
5
|
* ./pie-chart.interface
|
|
6
6
|
*/
|
|
7
|
-
declare const PieChart: (props: IPieChartProps) =>
|
|
7
|
+
declare const PieChart: (props: IPieChartProps) => JSX.Element;
|
|
8
8
|
export { PieChart };
|
|
@@ -3,5 +3,5 @@ import { IScatterChartProps } from './scatter-chart.intefrace';
|
|
|
3
3
|
*
|
|
4
4
|
* @param {IScatterChartProps} props
|
|
5
5
|
*/
|
|
6
|
-
declare const ScatterChart: (props: IScatterChartProps) =>
|
|
6
|
+
declare const ScatterChart: (props: IScatterChartProps) => JSX.Element;
|
|
7
7
|
export default ScatterChart;
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "3.5.4
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "3.5.4",
|
|
5
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
6
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
|
+
"resolutions": {
|
|
7
|
+
"jackspeak": "2.1.1"
|
|
8
|
+
},
|
|
7
9
|
"bugs": {
|
|
8
10
|
"url": "https://gitlab.com/oliasoft-open-source/charts-library/issues"
|
|
9
11
|
},
|
|
@@ -40,64 +42,64 @@
|
|
|
40
42
|
]
|
|
41
43
|
},
|
|
42
44
|
"dependencies": {
|
|
43
|
-
"chart.js": "^4.
|
|
44
|
-
"chartjs-plugin-annotation": "^
|
|
45
|
+
"chart.js": "^4.2.1",
|
|
46
|
+
"chartjs-plugin-annotation": "^1.4.0",
|
|
45
47
|
"chartjs-plugin-datalabels": "^2.1.0",
|
|
46
48
|
"chartjs-plugin-dragdata": "^2.2.5",
|
|
47
|
-
"chartjs-plugin-zoom": "^2.
|
|
49
|
+
"chartjs-plugin-zoom": "^1.2.1",
|
|
48
50
|
"html-to-image": "^1.11.11",
|
|
49
51
|
"react-base64-downloader": "^2.1.7",
|
|
50
52
|
"react-chartjs-2": "^5.2.0",
|
|
51
|
-
"react-dnd": "^
|
|
53
|
+
"react-dnd": "^15.1.2",
|
|
52
54
|
"react-dnd-html5-backend": "^16.0.1",
|
|
53
|
-
"react-icons": "^4
|
|
55
|
+
"react-icons": "^4",
|
|
54
56
|
"react-use": "^17.4.0"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@oliasoft-open-source/react-ui-library": "^3.
|
|
58
|
-
"@oliasoft-open-source/units": "^3.
|
|
59
|
-
"@storybook/addon-actions": "^7.
|
|
60
|
-
"@storybook/addon-docs": "^7.
|
|
61
|
-
"@storybook/addon-mdx-gfm": "^7.
|
|
62
|
-
"@storybook/react": "^7.
|
|
63
|
-
"@storybook/react-vite": "^7.
|
|
64
|
-
"@storybook/testing-library": "^0.
|
|
65
|
-
"@types/react": "^
|
|
66
|
-
"@typescript-eslint/parser": "^
|
|
67
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
59
|
+
"@oliasoft-open-source/react-ui-library": "^3.6.5",
|
|
60
|
+
"@oliasoft-open-source/units": "^3.4.2",
|
|
61
|
+
"@storybook/addon-actions": "^7.0.18",
|
|
62
|
+
"@storybook/addon-docs": "^7.0.18",
|
|
63
|
+
"@storybook/addon-mdx-gfm": "^7.0.23",
|
|
64
|
+
"@storybook/react": "^7.0.18",
|
|
65
|
+
"@storybook/react-vite": "^7.0.18",
|
|
66
|
+
"@storybook/testing-library": "^0.0.14-next.2",
|
|
67
|
+
"@types/react": "^17.0.49",
|
|
68
|
+
"@typescript-eslint/parser": "^5.60.0",
|
|
69
|
+
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
68
70
|
"ajv": "^8.12.0",
|
|
69
71
|
"ajv-errors": "^3.0.0",
|
|
70
72
|
"ajv-keywords": "^5.1.0",
|
|
71
73
|
"classnames": "^2.3.2",
|
|
72
|
-
"eslint": "^8.
|
|
74
|
+
"eslint": "^8.23.0",
|
|
73
75
|
"eslint-config-airbnb": "^19.0.4",
|
|
74
|
-
"eslint-config-prettier": "^
|
|
76
|
+
"eslint-config-prettier": "^8.5.0",
|
|
75
77
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
76
|
-
"eslint-plugin-import": "^2.
|
|
78
|
+
"eslint-plugin-import": "^2.26.0",
|
|
77
79
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
78
|
-
"eslint-plugin-react": "^7.
|
|
80
|
+
"eslint-plugin-react": "^7.31.1",
|
|
79
81
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
80
|
-
"eslint-plugin-storybook": "^0.6.
|
|
81
|
-
"eslint-plugin-vitest": "^0.
|
|
82
|
-
"eslint-plugin-vitest-globals": "^1.
|
|
82
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
83
|
+
"eslint-plugin-vitest": "^0.2.5",
|
|
84
|
+
"eslint-plugin-vitest-globals": "^1.3.1",
|
|
83
85
|
"http-server": "^14.1.1",
|
|
84
86
|
"husky": "^8.0.1",
|
|
85
|
-
"immer": "^10.0.
|
|
87
|
+
"immer": "^10.0.2",
|
|
86
88
|
"jsdom": "^22.1.0",
|
|
87
|
-
"less": "^4.
|
|
88
|
-
"lint-staged": "^
|
|
89
|
+
"less": "^4.1.3",
|
|
90
|
+
"lint-staged": "^13.0.3",
|
|
89
91
|
"lodash": "^4.17.21",
|
|
90
|
-
"prettier": "
|
|
91
|
-
"react": "^
|
|
92
|
-
"react-dom": "^
|
|
92
|
+
"prettier": "2.7.1",
|
|
93
|
+
"react": "^17",
|
|
94
|
+
"react-dom": "^17",
|
|
93
95
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
94
|
-
"storybook": "^7.
|
|
95
|
-
"storybook-dark-mode": "^3.0.
|
|
96
|
-
"vite": "^4.
|
|
97
|
-
"vite-plugin-css-injected-by-js": "^3.
|
|
98
|
-
"vite-plugin-dts": "3.
|
|
99
|
-
"vite-tsconfig-paths": "^4.2.
|
|
100
|
-
"vitest": "^0.
|
|
96
|
+
"storybook": "^7.0.18",
|
|
97
|
+
"storybook-dark-mode": "^3.0.0",
|
|
98
|
+
"vite": "^4.3.9",
|
|
99
|
+
"vite-plugin-css-injected-by-js": "^3.1.1",
|
|
100
|
+
"vite-plugin-dts": "2.3.0",
|
|
101
|
+
"vite-tsconfig-paths": "^4.2.0",
|
|
102
|
+
"vitest": "^0.32.0"
|
|
101
103
|
},
|
|
102
104
|
"peerDependencies": {
|
|
103
105
|
"@oliasoft-open-source/react-ui-library": "^3.9.7",
|