@oliasoft-open-source/charts-library 4.6.1 → 4.6.2-beta-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.
@@ -1,5 +1,23 @@
1
+ import { IMenuSection } from '@oliasoft-open-source/react-ui-library';
1
2
  import { IDragOptions } from './drag-options-interfaces';
3
+ export declare function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, dragToMovePoints, dragDisabled, dragToMoveAnnotation, }, }: IDragOptions): ({
4
+ label: string;
5
+ description: string;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
+ selected: boolean;
8
+ type: string;
9
+ onClick: () => void;
10
+ } | {
11
+ label: string;
12
+ icon: import("react/jsx-runtime").JSX.Element;
13
+ selected: boolean | undefined;
14
+ type: string;
15
+ onClick: () => void;
16
+ description?: undefined;
17
+ })[];
2
18
  /**
3
19
  * @param {import('./drag-options-interfaces').IDragOptions} obj
4
20
  */
5
- export declare const DragOptions: ({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, orDoubleClickToCanvas, dragToMovePoints, dragDisabled, dragToMoveAnnotation, }, }: IDragOptions) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const DragOptions: ({ options }: {
22
+ options: IMenuSection[];
23
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { IMenuSection } from '@oliasoft-open-source/react-ui-library';
1
2
  interface ILineOptions {
2
3
  lineEnabled: boolean;
3
4
  onToggleLine: () => void;
@@ -5,5 +6,14 @@ interface ILineOptions {
5
6
  pointsEnabled: boolean;
6
7
  translations: Record<string, string>;
7
8
  }
8
- export declare const LineOptions: ({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions) => import("react/jsx-runtime").JSX.Element;
9
+ export declare function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions): {
10
+ type: string;
11
+ label: string;
12
+ icon: import("react/jsx-runtime").JSX.Element;
13
+ selected: boolean;
14
+ onClick: () => void;
15
+ }[];
16
+ export declare const LineOptions: ({ options }: {
17
+ options: IMenuSection[];
18
+ }) => import("react/jsx-runtime").JSX.Element;
9
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.6.1",
3
+ "version": "4.6.2-beta-2",
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": {
@@ -59,7 +59,7 @@
59
59
  "react-use": "^17.4.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@oliasoft-open-source/react-ui-library": "^4.10.4",
62
+ "@oliasoft-open-source/react-ui-library": "^4.14.1",
63
63
  "@oliasoft-open-source/units": "^3.14.0",
64
64
  "@storybook/addon-actions": "^7.0.18",
65
65
  "@storybook/addon-docs": "^7.0.18",