@oliasoft-open-source/charts-library 5.1.1 → 5.1.2-beta-1
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/assets/{Color-YHDXOIA2-BMZgyHAN.js → Color-YHDXOIA2-8hNoYBPi.js} +1 -1
- package/dist/assets/{DocsRenderer-CFRXHY34-CbvfojdO.js → DocsRenderer-CFRXHY34-Bd20xJW7.js} +4 -4
- package/dist/assets/bar-chart.stories-5CuN6VFG.js +136 -0
- package/dist/assets/chunk-XP5HYGXS-D5tuasO7.js +1 -0
- package/dist/assets/{client-9BU5HM4U.js → client-DnE3718B.js} +1 -1
- package/dist/assets/entry-preview-CQOU2nEt.js +2 -0
- package/dist/assets/{entry-preview-docs-z3mMcuG4.js → entry-preview-docs-Cet2djRm.js} +1 -1
- package/dist/assets/{get-draggableData-6sYCK0Sg.js → get-draggableData-eD2Xdq-6.js} +2 -2
- package/dist/assets/{iframe-BMP-xuj2.js → iframe-BquS-aDh.js} +15 -15
- package/dist/assets/{index-D3-0uUTW.js → index-BhTLYoCu.js} +1 -1
- package/dist/assets/{index-B-BONL6g.js → index-CgYGpm1H.js} +1 -1
- package/dist/assets/index-DHw5ixvP.js +1 -0
- package/dist/assets/index-YTOF1_EJ.js +9 -0
- package/dist/assets/{index-CVdx34fM.js → index-uDG1oqxT.js} +1 -1
- package/dist/assets/jsx-runtime-W3oueGCa.js +9 -0
- package/dist/assets/legend-Cgq98xea.js +1367 -0
- package/dist/assets/{legend-context-CuYQJx0k.js → legend-context-PSa8HhGj.js} +22 -22
- package/dist/assets/line-chart-CJuXSMXo.js +1 -0
- package/dist/assets/{line-chart.stories-CCmSDSVh.js → line-chart.stories-HZFxAQ1Z.js} +16 -13
- package/dist/assets/{line-chart.test-case.stories-tBreUWeJ.js → line-chart.test-case.stories-CW_K3vXh.js} +1 -1
- package/dist/assets/{pie-chart.stories-cGmfyrjX.js → pie-chart.stories-C3l9VGYJ.js} +1 -1
- package/dist/assets/{preview-DjxCxm3j.js → preview-CrOr4qI2.js} +2 -2
- package/dist/assets/{preview-cjTsgsnd.js → preview-DfGccH5s.js} +1 -1
- package/dist/assets/{react-18-DZY5LW1V.js → react-18-BdgjDjvZ.js} +1 -1
- package/dist/assets/{scatter-chart.stories-BK0zwTCK.js → scatter-chart.stories-U-tLziOZ.js} +6 -6
- package/dist/assets/test-utils-BBHUGUfi.js +9 -0
- package/dist/iframe.html +1 -1
- package/dist/index.js +22 -100
- package/dist/line-chart/hooks/use-chart-state.d.ts +1 -5
- package/dist/line-chart/state/initial-state.d.ts +0 -3
- package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +1 -3
- package/dist/line-chart/utils/line-chart-utils.d.ts +6 -1
- package/dist/project.json +1 -1
- package/dist/sb-manager/globals-runtime.js +1 -1
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +1 -5
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +1 -3
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +6 -1
- package/package.json +1 -1
- package/dist/assets/bar-chart.stories-BxoeoHbp.js +0 -153
- package/dist/assets/entry-preview-BsyjCx5f.js +0 -10
- package/dist/assets/index-BGqSdrBK.js +0 -1
- package/dist/assets/index-eCxJ45ll.js +0 -9
- package/dist/assets/jsx-runtime-Y5Ju2SGo.js +0 -9
- package/dist/assets/legend-DOpGXAxK.js +0 -1346
- package/dist/assets/line-chart-BWgI7lqL.js +0 -1
- package/dist/assets/react-CxVRKATl.js +0 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { Chart } from 'chart.js';
|
|
3
1
|
import { ILineChartOptions, TGeneratedLineChartDatasets } from '../../line-chart.interface';
|
|
4
2
|
import { IState } from '../../state/state.interfaces';
|
|
5
3
|
/**
|
|
@@ -8,4 +6,4 @@ import { IState } from '../../state/state.interfaces';
|
|
|
8
6
|
* - supports optional padding when `autoAxisPadding` is set
|
|
9
7
|
* - otherwise does not set min/max (falls back to chart.js default)
|
|
10
8
|
*/
|
|
11
|
-
export declare const autoScale: (options: ILineChartOptions, state: IState, generatedDatasets: TGeneratedLineChartDatasets
|
|
9
|
+
export declare const autoScale: (options: ILineChartOptions, state: IState, generatedDatasets: TGeneratedLineChartDatasets) => {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ILineRange } from '../line-chart.interface';
|
|
1
|
+
import { ILineChartOptions, ILineRange } from '../line-chart.interface';
|
|
2
2
|
import { TPrimitive } from '../../common/common.interface';
|
|
3
|
+
import { IState } from '../state/state.interfaces';
|
|
3
4
|
export declare const toNum: (value: string | number) => any;
|
|
4
5
|
export declare const isLessThanMax: (value: string | number, max: string | number) => boolean;
|
|
5
6
|
export declare const isGreaterThanMin: (value: string | number, min: string | number) => boolean;
|
|
@@ -30,3 +31,7 @@ export declare const isPrimitiveValue: (value: TPrimitive) => value is string |
|
|
|
30
31
|
* Validates a range object to ensure none of its properties are null, undefined, or empty strings.
|
|
31
32
|
*/
|
|
32
33
|
export declare const isRangeValid: (r?: ILineRange) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Generates a unique key for the LineChart component based on dynamic chart state and language.
|
|
36
|
+
*/
|
|
37
|
+
export declare const getChartKey: (state: IState, options: ILineChartOptions, languageKey: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "5.1.1",
|
|
3
|
+
"version": "5.1.2-beta-1",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"resolutions": {
|