@oliasoft-open-source/charts-library 3.5.5 → 3.6.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/dist/index.js +2421 -1990
- 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/bar-chart/bar-chart.stories.d.ts +657 -0
- package/dist/src/components/common/helpers/container.d.ts +18 -0
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +8 -0
- package/dist/src/components/common/helpers/range/estimate-close-values.test.d.ts +1 -0
- package/dist/src/components/common/helpers/range/range.test.d.ts +1 -0
- package/dist/src/components/common/helpers/text.d.ts +1 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +1 -0
- 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/legend-options.d.ts +1 -0
- 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 +3 -1
- package/dist/src/components/line-chart/initialize/initialize-line-chart.test.d.ts +1 -0
- 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 +1 -1
- package/dist/src/components/line-chart/line-chart.d.ts +1 -1
- package/dist/src/components/line-chart/line-chart.stories.d.ts +1009 -0
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/__tests__/get-annotations-data.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.test.d.ts +1 -0
- package/dist/src/components/line-chart/utils/translations/get-translations.test.d.ts +1 -0
- package/dist/src/components/pie-chart/pie-chart.d.ts +1 -1
- package/dist/src/components/pie-chart/pie-chart.stories.d.ts +263 -0
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +1 -1
- package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +118 -0
- package/package.json +15 -15
package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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) => JSX.Element;
|
|
5
|
+
export declare const AxesOptions: (optionsPopover: IAxesOptionsWithTranslations) => import("react/jsx-runtime").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) => JSX.Element;
|
|
6
|
+
declare const ControlsPortal: ({ children, controlsPortalId, }: ControlsPortalProps) => import("react/jsx-runtime").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) => JSX.Element;
|
|
5
|
+
declare const Controls: ({ headerComponent, subheaderComponent, table, chartRef, state, options, dispatch, generatedDatasets, translations, controlsPortalId, }: IControls) => import("react/jsx-runtime").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) => JSX.Element;
|
|
5
|
+
export declare const DragOptions: ({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, isDragDataAllowed, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, orDoubleClickToCanvas, dragToMovePoints, dragDisabled, }, }: IDragOptions) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LegendOptions: ({ legendEnabled, onToggleLegend, translations: { hideLegend, showLegend }, }: any) => import("react/jsx-runtime").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) => JSX.Element;
|
|
8
|
+
export declare const LineOptions: ({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -40,6 +40,8 @@ export declare const useChartFunctions: ({ chartRef, state, options, dispatch, g
|
|
|
40
40
|
}[];
|
|
41
41
|
updateAxesRangesFromChart: () => void;
|
|
42
42
|
onResetAxes: () => void;
|
|
43
|
-
onUpdateAxes: ({ axes }:
|
|
43
|
+
onUpdateAxes: ({ axes }: {
|
|
44
|
+
axes: any;
|
|
45
|
+
}) => void;
|
|
44
46
|
};
|
|
45
47
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILegendDropZones } from './legend-interface';
|
|
2
|
-
declare const LegendDropZones: (legendDropZonesProps: ILegendDropZones) => JSX.Element;
|
|
2
|
+
declare const LegendDropZones: (legendDropZonesProps: ILegendDropZones) => import("react/jsx-runtime").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) => JSX.Element;
|
|
2
|
+
declare const LegendItem: ({ hidden, dataset, handleClick }: ILegendItem) => import("react/jsx-runtime").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) => JSX.Element | null;
|
|
2
|
+
declare const Legend: ({ chartRef, state, options, dispatch, generatedDatasets, }: ILegend) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default Legend;
|
|
@@ -11,7 +11,7 @@ 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<"
|
|
14
|
+
x: import("./line-chart.interface").ILineChartAxis<"bottom" | "top">[] | {}[];
|
|
15
15
|
y: import("./line-chart.interface").ILineChartAxis<"left" | "right">[] | {}[];
|
|
16
16
|
};
|
|
17
17
|
additionalAxesOptions: {
|