@oliasoft-open-source/charts-library 3.4.5 → 3.4.7-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.
Files changed (63) hide show
  1. package/dist/declaration.d.ts +2 -0
  2. package/dist/index.js +677 -669
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +30 -26
  5. package/dist/src/components/bar-chart/bar-chart.interface.d.ts +37 -70
  6. package/dist/src/components/bar-chart/get-bar-chart-data-labels.d.ts +11 -14
  7. package/dist/src/components/bar-chart/get-bar-chart-scales.d.ts +3 -2
  8. package/dist/src/components/bar-chart/get-bar-chart-tooltips.d.ts +3 -16
  9. package/dist/src/components/common/common.interface.d.ts +139 -0
  10. package/dist/src/components/common/helpers/chart-border-plugin.d.ts +8 -0
  11. package/dist/src/{helpers → components/common/helpers}/enums.d.ts +2 -1
  12. package/dist/src/components/common/helpers/get-chart-annotation.d.ts +27 -0
  13. package/dist/src/components/common/helpers/get-draggableData.d.ts +18 -0
  14. package/dist/src/{helpers → components/common/helpers}/range/range.d.ts +6 -6
  15. package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.d.ts +8 -3
  16. package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +52 -0
  17. package/dist/src/components/{controls → line-chart/controls}/axes-options/axes-options.d.ts +1 -1
  18. package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +18 -32
  19. package/dist/src/components/line-chart/controls/controls-portal.d.ts +6 -1
  20. package/dist/src/components/line-chart/controls/controls.d.ts +1 -1
  21. package/dist/src/components/line-chart/controls/drag-options-interfaces.d.ts +5 -5
  22. package/dist/src/components/line-chart/controls/line-options.d.ts +9 -1
  23. package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +28 -6
  24. package/dist/src/components/line-chart/{state → hooks}/use-chart-state.d.ts +13 -1
  25. package/dist/src/components/line-chart/hooks/use-toggle-handler.d.ts +2 -1
  26. package/dist/src/components/line-chart/initialize/config.d.ts +2 -2
  27. package/dist/src/components/line-chart/legend/legend-interface.d.ts +24 -18
  28. package/dist/src/components/line-chart/legend/legend-panel.d.ts +2 -2
  29. package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +38 -30
  30. package/dist/src/components/line-chart/line-chart.interface.d.ts +48 -61
  31. package/dist/src/components/line-chart/plugins/chart-area-text-plugin.d.ts +14 -1
  32. package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +5 -4
  33. package/dist/src/components/line-chart/plugins/plugins.interface.d.ts +2 -2
  34. package/dist/src/components/line-chart/state/initial-state.d.ts +20 -2
  35. package/dist/src/components/line-chart/state/line-chart-reducer.d.ts +2 -1
  36. package/dist/src/components/line-chart/state/manage-state-in-local-storage.d.ts +3 -2
  37. package/dist/src/components/line-chart/state/state.interfaces.d.ts +32 -7
  38. package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +1 -1
  39. package/dist/src/components/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +1 -1
  40. package/dist/src/components/line-chart/utils/generate-line-chart-datasets.d.ts +3 -1
  41. package/dist/src/components/line-chart/utils/get-annotations-data.d.ts +1 -0
  42. package/dist/src/components/line-chart/utils/get-axes-data-from-metasets.d.ts +1 -0
  43. package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +9 -2
  44. package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +3 -2
  45. package/dist/src/components/line-chart/utils/get-line-chart-scales.d.ts +4 -4
  46. package/dist/src/components/line-chart/utils/get-line-chart-tooltips.d.ts +2 -2
  47. package/dist/src/components/line-chart/utils/translations/get-translations.d.ts +2 -1
  48. package/dist/src/components/pie-chart/pie-chart-get-default-props.d.ts +12 -8
  49. package/dist/src/components/pie-chart/pie-chart.d.ts +1 -2
  50. package/dist/src/components/pie-chart/pie-chart.interface.d.ts +52 -51
  51. package/dist/src/components/scatter-chart/scatter-chart.d.ts +1 -1
  52. package/dist/src/components/scatter-chart/scatter-chart.intefrace.d.ts +6 -16
  53. package/package.json +1 -1
  54. package/dist/src/components/controls/axes-options/axes-options-interfaces.d.ts +0 -19
  55. package/dist/src/components/line-chart/hooks/hooks.interface.d.ts +0 -13
  56. package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +0 -37
  57. package/dist/src/components/pie-chart/pie-chart-utils.d.ts +0 -2
  58. package/dist/src/helpers/chart-border-plugin.d.ts +0 -7
  59. package/dist/src/helpers/chart-interface.d.ts +0 -85
  60. package/dist/src/helpers/get-chart-annotation.d.ts +0 -12
  61. package/dist/src/helpers/get-draggableData.d.ts +0 -18
  62. /package/dist/src/{helpers → components/common/helpers}/chart-consts.d.ts +0 -0
  63. /package/dist/src/{helpers → components/common/helpers}/range/estimate-data-series-have-close-values.d.ts +0 -0
@@ -1,6 +1,13 @@
1
- export declare const getAxesRangesFromChart: (chartRef: any, axes: any) => {
2
- unit?: any;
1
+ import { Chart } from 'chart.js';
2
+ import { RefObject } from 'react';
3
+ import { IInitAxisRange } from '../state/state.interfaces';
4
+ interface IAxes {
5
+ [key: string]: IInitAxisRange[];
6
+ }
7
+ export declare const getAxesRangesFromChart: (chartRef: RefObject<Chart>, axes: IAxes) => {
8
+ unit?: string | undefined;
3
9
  id: any;
4
10
  min: any;
5
11
  max: any;
6
12
  }[];
13
+ export {};
@@ -1,3 +1,4 @@
1
+ import { TooltipItem } from 'chart.js';
1
2
  import { ILineChartOptions } from '../line-chart.interface';
2
3
  /**
3
4
  * adjusts the position of the label depends on chart area
@@ -7,8 +8,8 @@ import { ILineChartOptions } from '../line-chart.interface';
7
8
  */
8
9
  declare const getLineChartDataLabels: (options: ILineChartOptions) => {
9
10
  display: string;
10
- align: (context: any) => import("../../../helpers/enums").AlignOptions.End | import("../../../helpers/enums").AlignOptions.Start | import("../../../helpers/enums").AlignOptions.Right | import("../../../helpers/enums").AlignOptions.Left;
11
- formatter: (_value: any, context: any) => any;
11
+ align: (context: any) => import("../../common/helpers/enums").AlignOptions.End | import("../../common/helpers/enums").AlignOptions.Start | import("../../common/helpers/enums").AlignOptions.Right | import("../../common/helpers/enums").AlignOptions.Left;
12
+ formatter: (_value: any, context: TooltipItem<any>) => any;
12
13
  } | {
13
14
  display: boolean;
14
15
  align?: undefined;
@@ -1,9 +1,9 @@
1
+ import { IState } from '../state/state.interfaces';
1
2
  import { ILineChartOptions } from '../line-chart.interface';
2
- import { IInitialState } from '../../../helpers/chart-interface';
3
3
  /**
4
4
  *
5
- * @param {import('../line-chart.interface').ILineChartOptions} options - line chart options object
6
- * @param {import('../../../helpers/chart-interface').IInitialState} state - chart state object controlled by useReducer or similar
5
+ * @param {ILineChartOptions} options - line chart options object
6
+ * @param {IState} state - chart state object controlled by useReducer or similar
7
7
  */
8
- declare const getLineChartScales: (options: ILineChartOptions, state: IInitialState) => any;
8
+ declare const getLineChartScales: (options: ILineChartOptions, state: IState) => any;
9
9
  export default getLineChartScales;
@@ -1,4 +1,4 @@
1
- import { ChartHoverMode } from '../../../helpers/enums';
1
+ import { ChartHoverMode } from '../../common/helpers/enums';
2
2
  import { ILineChartOptions } from '../line-chart.interface';
3
3
  export declare const getUnitsFromLabel: (label: string) => string;
4
4
  /**
@@ -16,7 +16,7 @@ declare const getLineChartToolTips: (options: ILineChartOptions) => {
16
16
  callbacks: {
17
17
  title: (tooltipItem: any, _data: any) => string;
18
18
  label: (tooltipItem: any) => string;
19
- afterLabel: (tooltipItem: any) => string;
19
+ afterLabel: (tooltipItem: Record<string, any>) => string;
20
20
  };
21
21
  };
22
22
  export default getLineChartToolTips;
@@ -1,7 +1,8 @@
1
+ import { defaultTranslations } from '../../constants/default-translations';
1
2
  /**
2
3
  * Merges custom getTranslations with the default getTranslations.
3
4
  * If a custom translation is provided for a key, it will override the default one.
4
5
  * @param {object} translations - Custom getTranslations.
5
6
  * @returns {object} - The resulting getTranslations object, containing both default and custom getTranslations.
6
7
  */
7
- export declare const getTranslations: (translations?: any) => {};
8
+ export declare const getTranslations: (translations?: Partial<Record<keyof typeof defaultTranslations, string>>) => {};
@@ -1,12 +1,16 @@
1
1
  import { IPieChartProps } from './pie-chart.interface';
2
+ import { AlignOptions, Position } from '../common/helpers/enums';
2
3
  export declare const getDefaultProps: (props: IPieChartProps) => {
3
4
  testId: string | null;
4
- data: import("./pie-chart.interface").IChartData;
5
+ data: {
6
+ labels: string[];
7
+ datasets: import("./pie-chart.interface").IPieChartDataset[];
8
+ };
5
9
  options: {
6
10
  title: string | string[];
7
11
  chartStyling: {
8
- width: string | number;
9
- height: string | number;
12
+ width: string | number | undefined;
13
+ height: string | number | undefined;
10
14
  maintainAspectRatio: boolean;
11
15
  staticChartHeight: boolean;
12
16
  performanceMode: boolean;
@@ -23,17 +27,17 @@ export declare const getDefaultProps: (props: IPieChartProps) => {
23
27
  legend: {
24
28
  display: boolean;
25
29
  useDataset: boolean;
26
- position: "top" | "bottom" | "right";
27
- align: "start" | "center" | "end";
30
+ position: Position;
31
+ align: AlignOptions;
28
32
  };
29
33
  chartOptions: {
30
34
  enableZoom: boolean;
31
35
  enablePan: boolean;
32
36
  };
33
37
  interactions: {
34
- onLegendClick: (legendItem: string, hidden: boolean) => any;
35
- onPieHover: (evt: Event, datasetIndex: string | number, index: string | number, generatedDataset: any) => any;
36
- onPieUnhover: (evt: Event) => any;
38
+ onLegendClick: ((text: string, hidden: boolean) => void) | undefined;
39
+ onHover: ((event?: import("chart.js").ChartEvent | undefined, datasetIndex?: number | undefined, index?: number | undefined, generatedDataset?: any[] | undefined) => void) | undefined;
40
+ onUnhover: ((event?: import("chart.js").ChartEvent | undefined, datasetIndex?: number | undefined, index?: number | undefined, generatedDataset?: any[] | undefined) => void) | undefined;
37
41
  };
38
42
  };
39
43
  };
@@ -1,8 +1,7 @@
1
1
  import { IPieChartProps } from './pie-chart.interface';
2
2
  /**
3
3
  * this is a pie chart component
4
- * @param {} props
5
- * @param {import('./pie-chart.interface').IPieChartProps} IPieChartProps
4
+ * @param {props: IPieChartProps} IPieChartProps
6
5
  * ./pie-chart.interface
7
6
  */
8
7
  declare const PieChart: (props: IPieChartProps) => JSX.Element;
@@ -1,54 +1,55 @@
1
- export interface IChartInteractions {
2
- onLegendClick: (legendItem: string, hidden: boolean) => any;
3
- onPointHover: () => any;
4
- onPointUnhover: () => any;
5
- onPieHover: (evt: Event, datasetIndex: string | number, index: string | number, generatedDataset: any) => any;
6
- onPieUnhover: (evt: Event) => any;
7
- }
8
- export interface IChartOptions {
9
- enableZoom: boolean;
10
- enablePan: boolean;
11
- }
12
- export interface IChartLegend {
13
- display: boolean;
14
- position: 'top' | 'bottom' | 'right';
15
- align: 'start' | 'center' | 'end';
16
- useDataset: boolean;
17
- }
18
- export interface IChartGraph {
19
- showDataLabels: boolean;
20
- stacked: boolean;
21
- cutout: number | string;
22
- }
23
- export interface IChartTooltip {
24
- tooltips: boolean;
25
- showLabelsInTooltips: boolean;
26
- }
27
- export interface IChartStyling {
28
- width: number | string;
29
- height: number | string;
30
- maintainAspectRatio: boolean;
31
- staticChartHeight: boolean;
32
- performanceMode: boolean;
33
- }
34
- export interface IOptions {
35
- title: string | string[];
36
- chartStyling: IChartStyling;
37
- tooltip: IChartTooltip;
38
- graph: IChartGraph;
39
- legend: IChartLegend;
40
- chartOptions: IChartOptions;
41
- interactions: IChartInteractions;
42
- }
43
- export interface IChartData {
44
- labels: string;
45
- datasets: any[];
46
- }
47
- export interface IChartProps {
48
- testId: string | null;
49
- data: IChartData;
50
- options: IOptions;
1
+ import { ICommonData, ICommonDataset, ICommonDataValue, ICommonLegend, ICommonOptions } from '../common/common.interface';
2
+ export interface IPieLegend extends ICommonLegend {
3
+ useDataset?: boolean;
4
+ }
5
+ export interface IPieGraph {
6
+ showDataLabels?: boolean;
7
+ stacked?: boolean;
8
+ cutout?: number | string;
9
+ }
10
+ export interface IPieOptions extends ICommonOptions {
11
+ graph?: IPieGraph;
12
+ legend?: IPieLegend;
13
+ }
14
+ export interface IPieDataValue extends ICommonDataValue {
15
+ label: string;
16
+ borderWidth: string | number;
17
+ value: number;
18
+ backgroundColor?: string | string[];
19
+ borderColor?: string;
20
+ labels: string[];
21
+ }
22
+ export interface IPieChartDataset extends ICommonDataset {
23
+ data: IPieDataValue[];
24
+ hideLegend?: boolean;
25
+ }
26
+ export interface IPieData {
27
+ labels?: string[];
28
+ datasets?: IPieChartDataset[];
29
+ xUnit?: string;
30
+ yUnit?: string;
31
+ }
32
+ export interface IPieChartData extends ICommonData {
33
+ data?: IPieData;
34
+ options: IPieOptions;
51
35
  }
52
36
  export interface IPieChartProps {
53
- chart: IChartProps;
37
+ chart: IPieChartData;
38
+ }
39
+ export interface IPieGeneratedLabel {
40
+ text: string;
41
+ fillStyle: string;
42
+ strokeStyle: string;
43
+ index: number;
44
+ }
45
+ export interface IPieLegendItemFilter {
46
+ index: number;
47
+ datasetIndex: number;
48
+ hidden: boolean;
49
+ }
50
+ export interface IPiesDataLabelsOptions {
51
+ display?: 'auto' | boolean;
52
+ align?: 'center';
53
+ anchor?: 'center';
54
+ formatter?: (_value: any, context: any) => any;
54
55
  }
@@ -1,7 +1,7 @@
1
1
  import { IScatterChartProps } from './scatter-chart.intefrace';
2
2
  /**
3
3
  *
4
- * @param {import('./scatter-chart.intefrace').IScatterChartProps} props
4
+ * @param {IScatterChartProps} props
5
5
  */
6
6
  declare const ScatterChart: (props: IScatterChartProps) => JSX.Element;
7
7
  export default ScatterChart;
@@ -1,23 +1,13 @@
1
- import { IChartPlugins } from '../../helpers/chart-interface';
2
- export interface IScatterChartOptions {
1
+ import { ICommonChartPlugins, ICommonData, ICommonDataset, ICommonOptions } from '../common/common.interface';
2
+ export interface IScatterChartOptions extends Partial<ICommonOptions> {
3
3
  responsive: boolean;
4
4
  maintainAspectRatio: boolean;
5
- plugins: IChartPlugins;
5
+ plugins: ICommonChartPlugins;
6
6
  }
7
- export interface IScatterChartPoint {
8
- x: number | string;
9
- y: number | string;
10
- label?: string;
7
+ export interface IScatterChartDataset extends ICommonDataset {
8
+ showLine: boolean;
11
9
  }
12
- export interface IScatterChartDataset {
13
- label: string;
14
- data: IScatterChartPoint[];
15
- borderColor: string;
16
- backgroundColor: string;
17
- showLine: Boolean;
18
- }
19
- export interface IScatterChartData {
20
- testId: string | null;
10
+ export interface IScatterChartData extends ICommonData {
21
11
  data: {
22
12
  datasets: IScatterChartDataset[];
23
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "3.4.5",
3
+ "version": "3.4.7-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
  "bugs": {
@@ -1,19 +0,0 @@
1
- export interface IDepthType {
2
- selectedDepthType: string;
3
- setSelectedDepthType: (obj: any) => any;
4
- options: Array<string>;
5
- }
6
- export interface IAxesOptions {
7
- initialAxesRanges: Array<Object>;
8
- axes: Array<any>;
9
- controlsAxesLabels: Array<Object>;
10
- onUpdateAxes: (obj: any) => any;
11
- onResetAxes: () => any;
12
- depthType: IDepthType;
13
- close?: () => any;
14
- }
15
- export interface IOnEdit {
16
- name: string;
17
- value: string;
18
- id: string;
19
- }
@@ -1,13 +0,0 @@
1
- export interface IHooksInterface {
2
- chartRef: {
3
- current: any;
4
- };
5
- state: any;
6
- options: any;
7
- dispatch: (obj: object) => any;
8
- generatedDatasets: Array<Object>;
9
- }
10
- export interface IUseChartPluginsInterface {
11
- options: any;
12
- resetZoom: any;
13
- }
@@ -1,37 +0,0 @@
1
- import { ChartHoverMode, Events, PointStyle } from '../../../helpers/enums';
2
- import { IHooksInterface } from './hooks.interface';
3
- /**
4
- * Custom hook to generate chart options.
5
- * @function
6
- * @param {Object} chartRef - The chart reference.
7
- * @param {Object} state - The chart state.
8
- * @param {Object} options - The chart options.
9
- * @param {Function} dispatch - The dispatch function for state management.
10
- * @param {Array} generatedDatasets - The generated datasets.
11
- * @returns {Object} The chart options object.
12
- */
13
- export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, }: IHooksInterface) => {
14
- layout: {
15
- padding: any;
16
- };
17
- onHover: (evt: Event, hoveredItems: any[]) => void;
18
- maintainAspectRatio: any;
19
- aspectRatio: number | null;
20
- animation: boolean | {
21
- duration: number;
22
- onComplete: any;
23
- };
24
- hover: {
25
- mode: ChartHoverMode;
26
- intersect: boolean;
27
- };
28
- elements: {
29
- line: {
30
- pointStyle: PointStyle;
31
- showLine: any;
32
- };
33
- };
34
- scales: any;
35
- plugins: any;
36
- events: Events[];
37
- };
@@ -1,2 +0,0 @@
1
- export declare const colors: string[];
2
- export declare const generateRandomColor: () => string;
@@ -1,7 +0,0 @@
1
- /**
2
- * Chart border plugin config
3
- */
4
- export declare const chartAreaBorderPlugin: {
5
- id: string;
6
- beforeDraw(chart: any, args: any, options: any): void;
7
- };
@@ -1,85 +0,0 @@
1
- import { Plugin } from 'chart.js';
2
- export interface IChartDraggableData {
3
- enableDragData: boolean;
4
- showTooltip: boolean;
5
- roundPoints: boolean;
6
- dragX: boolean;
7
- dragY: boolean;
8
- onDragStart: () => any;
9
- onDrag: () => any;
10
- onDragEnd: () => any;
11
- }
12
- export interface IChartAnnotationsData {
13
- adjustScaleRange: boolean;
14
- annotationAxis: 'x' | 'y';
15
- color: string;
16
- endValue: number;
17
- label: string;
18
- type: string;
19
- value: number;
20
- xMin: number;
21
- xMax: number;
22
- yMin: number;
23
- yMax: number;
24
- }
25
- export interface ILabelAnnotation {
26
- showLabel: boolean;
27
- text: string | string[];
28
- position?: string;
29
- fontSize?: number;
30
- xOffset?: number;
31
- yOffset?: number;
32
- maxWidth?: number;
33
- lineHeight?: number;
34
- }
35
- export interface IChartAnnotations {
36
- showAnnotations: boolean;
37
- controlAnnotation: boolean;
38
- annotationsData: IChartAnnotationsData[];
39
- labelAnnotation: ILabelAnnotation;
40
- }
41
- export interface IChartStyling {
42
- width: number | string;
43
- height: number | string;
44
- maintainAspectRatio: boolean;
45
- squareAspectRatio?: boolean;
46
- staticChartHeight: boolean;
47
- performanceMode: boolean;
48
- layoutPadding: any;
49
- }
50
- export interface ICustomLegend {
51
- customLegendPlugin: Plugin | null;
52
- customLegendContainerID: string;
53
- }
54
- export interface IChartLegend {
55
- display: boolean;
56
- position: 'top' | 'bottom' | 'right';
57
- align: 'start' | 'center' | 'end';
58
- customLegend?: ICustomLegend;
59
- usePointStyle: boolean;
60
- }
61
- export interface IChartInteractions {
62
- onLegendClick: () => any;
63
- onPointHover: () => any;
64
- onPointUnhover: () => any;
65
- onAnimationComplete: () => any;
66
- }
67
- export interface IInitialState {
68
- zoomEnabled?: boolean;
69
- panEnabled?: boolean;
70
- pointsEnabled?: boolean;
71
- lineEnabled?: boolean;
72
- legendEnabled?: boolean;
73
- axes?: any;
74
- showAnnotationLineIndex: [];
75
- enableDragData?: boolean;
76
- }
77
- export interface IChartPlugins {
78
- legend: {
79
- position: 'top' | 'right' | 'bottom' | 'left';
80
- };
81
- title: {
82
- display: boolean;
83
- text: string;
84
- };
85
- }
@@ -1,12 +0,0 @@
1
- import { ILineChartOptions } from '../components/line-chart/line-chart.interface';
2
- import { IInitialState } from './chart-interface';
3
- /**
4
- * @param {import('../components/bar-chart/bar-chart.interface').IBarChartOptions |
5
- * import('../components/line-chart/line-chart.interface').ILineChartOptions} options - chart options object
6
- * @param {import('./chart-interface').IInitialState} state - chart state object controlled by useReducer or similar
7
- * @return {{annotations: []}}
8
- */
9
- declare const getAnnotation: (options: ILineChartOptions, state: IInitialState) => {
10
- annotations: {} | null;
11
- };
12
- export default getAnnotation;
@@ -1,18 +0,0 @@
1
- import { ILineChartOptions } from '../components/line-chart/line-chart.interface';
2
- /**
3
- * @param {import('./line-chart.interface').ILineChartOptions} options - line chart options object
4
- */
5
- declare const getDraggableData: (options: ILineChartOptions) => {
6
- dragData: {
7
- dragX: any;
8
- dragY: any;
9
- round: any;
10
- showTooltip: any;
11
- onDragStart: any;
12
- onDrag: any;
13
- onDragEnd: any;
14
- };
15
- } | {
16
- dragData?: undefined;
17
- };
18
- export default getDraggableData;