@databrainhq/plugin 0.12.32 → 0.13.0-beta.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/components/Accordion/index.d.ts +27 -0
- package/dist/components/Badge/index.d.ts +9 -0
- package/dist/components/Button/index.d.ts +6 -3
- package/dist/components/Chart/SingleValueChart.d.ts +1 -1
- package/dist/components/Chart/index.d.ts +4 -2
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +2 -3
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +7 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +10 -3
- package/dist/components/ChartTypePanel/index.d.ts +15 -0
- package/dist/components/Checkbox/index.d.ts +10 -0
- package/dist/components/ColorField/{Index.d.ts → ColorField.d.ts} +2 -2
- package/dist/components/DateRangePicker/index.d.ts +3 -1
- package/dist/components/DrillBreadCrumb/index.d.ts +3 -1
- package/dist/components/FilterDropDown/index.d.ts +8 -4
- package/dist/components/FloatingDropDown/index.d.ts +10 -14
- package/dist/components/FullScreenChart/index.d.ts +1 -1
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +1 -1
- package/dist/components/GlobalFilters/Filters.d.ts +1 -1
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +1 -1
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +3 -1
- package/dist/components/GlobalFilters/index.d.ts +1 -2
- package/dist/components/Icons/Logos/index.d.ts +12 -0
- package/dist/components/Icons/index.d.ts +6 -4
- package/dist/components/InfoTooltip/index.d.ts +6 -2
- package/dist/components/InputField/index.d.ts +5 -6
- package/dist/components/List/index.d.ts +19 -0
- package/dist/components/Menu/index.d.ts +30 -0
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +6 -1
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +1 -1
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +4 -5
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +4 -3
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +28 -0
- package/dist/components/Panel/index.d.ts +15 -0
- package/dist/components/PopoverMenu/index.d.ts +21 -5
- package/dist/components/RadioButton/index.d.ts +16 -0
- package/dist/components/SearchTab/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +2 -12
- package/dist/components/{ToggleButton → Switch}/SwitchInput.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +10 -0
- package/dist/components/Table/index.d.ts +4 -1
- package/dist/components/Tabs/index.d.ts +37 -0
- package/dist/components/Text/index.d.ts +7 -6
- package/dist/components/TimeGrainField/index.d.ts +1 -1
- package/dist/components/index.d.ts +12 -1
- package/dist/consts/app.d.ts +4 -0
- package/dist/consts/metricOptions.d.ts +4 -0
- package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/timeseries.d.ts +2 -2
- package/dist/hooks/useMetricCard.d.ts +9 -7
- package/dist/hooks/useOutsideAlerter.d.ts +8 -1
- package/dist/queries/externalDashboard.mutation.d.ts +1 -1
- package/dist/queries/externalDashboard.query.d.ts +1 -1
- package/dist/queries/metric.mutation.d.ts +1 -1
- package/dist/queries/metric.query.d.ts +1 -1
- package/dist/types/app.d.ts +46 -6
- package/dist/types/metricCreate.d.ts +5 -0
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/getChartOptions.d.ts +1 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/webcomponents.es.js +84984 -91456
- package/dist/webcomponents.umd.js +270 -344
- package/package.json +108 -107
- package/dist/components/ChartModal/SelectField.d.ts +0 -2
- package/dist/components/Charts/AreaChart.d.ts +0 -3
- package/dist/components/Charts/BarChart.d.ts +0 -25
- package/dist/components/Charts/BoxPlot.d.ts +0 -3
- package/dist/components/Charts/BubbleChart.d.ts +0 -3
- package/dist/components/Charts/ComboChart.d.ts +0 -3
- package/dist/components/Charts/DoughnutChart.d.ts +0 -3
- package/dist/components/Charts/FunnelChart.d.ts +0 -3
- package/dist/components/Charts/GaugeChart.d.ts +0 -3
- package/dist/components/Charts/Histogram.d.ts +0 -3
- package/dist/components/Charts/LineChart.d.ts +0 -25
- package/dist/components/Charts/PieChart.d.ts +0 -3
- package/dist/components/Charts/RowChart.d.ts +0 -3
- package/dist/components/Charts/SankeyChart.d.ts +0 -3
- package/dist/components/Charts/ScatterChart.d.ts +0 -3
- package/dist/components/Charts/SingleValueChart/index.d.ts +0 -3
- package/dist/components/Charts/StackedBarChart.d.ts +0 -3
- package/dist/components/Charts/SteppedAreaChart.d.ts +0 -3
- package/dist/components/Charts/Table/TableChart.d.ts +0 -3
- package/dist/components/Charts/TimeSeriesChart.d.ts +0 -4
- package/dist/components/Charts/WaterfallChart.d.ts +0 -3
- package/dist/components/MetricChart/MetricChart.d.ts +0 -45
- package/dist/components/ToggleButton/ToggleInput.d.ts +0 -9
- package/dist/components/ToggleButton/index.d.ts +0 -14
- package/dist/containers/index.d.ts +0 -3
- package/dist/index.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Databrain app ui plugin.",
|
|
5
|
-
"author": "",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "databrainhq/plugin",
|
|
8
|
-
"main": "src/index.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./src/index.ts",
|
|
12
|
-
"require": "./src/index.ts"
|
|
13
|
-
},
|
|
14
|
-
"./web": {
|
|
15
|
-
"import": "./dist/webcomponents.es.js",
|
|
16
|
-
"require": "./dist/webcomponents.umd.js",
|
|
17
|
-
"types": "./dist/webcomponents.d.ts"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"start:repl": "vite --host 0.0.0.0",
|
|
22
|
-
"start": "vite --port 3005",
|
|
23
|
-
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
24
|
-
"build": "tsc && vite build",
|
|
25
|
-
"husky": "husky install",
|
|
26
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
27
|
-
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
28
|
-
"prepare": "npm run build",
|
|
29
|
-
"storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
|
|
30
|
-
"storybook": "storybook dev -p 6006",
|
|
31
|
-
"build-storybook": "storybook build"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@commitlint/cli": "^17.0.3",
|
|
35
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
-
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
-
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
-
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
-
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
-
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
-
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/addon-
|
|
47
|
-
"@storybook/addon-links": "^7.0.9",
|
|
48
|
-
"@storybook/blocks": "^7.0.9",
|
|
49
|
-
"@storybook/
|
|
50
|
-
"@storybook/react
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@types/react
|
|
58
|
-
"@types/react-
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"eslint
|
|
73
|
-
"eslint-config-
|
|
74
|
-
"eslint-
|
|
75
|
-
"eslint-
|
|
76
|
-
"eslint-plugin-
|
|
77
|
-
"eslint-plugin-
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"react
|
|
88
|
-
"react-
|
|
89
|
-
"react-
|
|
90
|
-
"react-
|
|
91
|
-
"react-
|
|
92
|
-
"react-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"vite
|
|
101
|
-
"vite-plugin-
|
|
102
|
-
"vite-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@databrainhq/plugin",
|
|
3
|
+
"version": "0.13.0-beta.0",
|
|
4
|
+
"description": "Databrain app ui plugin.",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "databrainhq/plugin",
|
|
8
|
+
"main": "src/index.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./src/index.ts",
|
|
12
|
+
"require": "./src/index.ts"
|
|
13
|
+
},
|
|
14
|
+
"./web": {
|
|
15
|
+
"import": "./dist/webcomponents.es.js",
|
|
16
|
+
"require": "./dist/webcomponents.umd.js",
|
|
17
|
+
"types": "./dist/webcomponents.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start:repl": "vite --host 0.0.0.0",
|
|
22
|
+
"start": "vite --port 3005",
|
|
23
|
+
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
24
|
+
"build": "tsc && vite build",
|
|
25
|
+
"husky": "husky install",
|
|
26
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
27
|
+
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
28
|
+
"prepare": "npm run build",
|
|
29
|
+
"storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"build-storybook": "storybook build"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@commitlint/cli": "^17.0.3",
|
|
35
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
+
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
+
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
+
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
+
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
+
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
+
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
+
"@iconify/json": "^2.2.6",
|
|
43
|
+
"@r2wc/react-to-web-component": "^2.0.2",
|
|
44
|
+
"@storybook/addon-essentials": "^7.0.9",
|
|
45
|
+
"@storybook/addon-interactions": "^7.0.9",
|
|
46
|
+
"@storybook/addon-knobs": "^7.0.2",
|
|
47
|
+
"@storybook/addon-links": "^7.0.9",
|
|
48
|
+
"@storybook/blocks": "^7.0.9",
|
|
49
|
+
"@storybook/manager-api": "^7.0.26",
|
|
50
|
+
"@storybook/react": "^7.0.9",
|
|
51
|
+
"@storybook/react-vite": "^7.0.9",
|
|
52
|
+
"@storybook/testing-library": "^0.0.14-next.2",
|
|
53
|
+
"@storybook/theming": "^7.0.26",
|
|
54
|
+
"@svgr/core": "^6.5.1",
|
|
55
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
56
|
+
"@tanstack/react-table": "^8.7.9",
|
|
57
|
+
"@types/react": "^18.0.26",
|
|
58
|
+
"@types/react-datepicker": "^4.11.2",
|
|
59
|
+
"@types/react-dom": "^18.0.10",
|
|
60
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
62
|
+
"@typescript-eslint/parser": "^4.31.1",
|
|
63
|
+
"@vitejs/plugin-react": "^4.0",
|
|
64
|
+
"ace-builds": "^1.17.0",
|
|
65
|
+
"autoprefixer": "^10.4.7",
|
|
66
|
+
"babel-eslint": "^10.0.3",
|
|
67
|
+
"babel-loader": "^9.1.2",
|
|
68
|
+
"classnames": "^2.3.2",
|
|
69
|
+
"cross-env": "^7.0.2",
|
|
70
|
+
"echarts": "^5.4.1",
|
|
71
|
+
"echarts-for-react": "^3.0.2",
|
|
72
|
+
"eslint": "^7.32.0",
|
|
73
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
74
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
75
|
+
"eslint-config-prettier": "^8.3.0",
|
|
76
|
+
"eslint-plugin-import": "^2.24.2",
|
|
77
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
78
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
79
|
+
"eslint-plugin-react": "^7.30.1",
|
|
80
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
81
|
+
"eslint-plugin-unicorn": "^36.0.0",
|
|
82
|
+
"graphql": "^16.6.0",
|
|
83
|
+
"husky": "^8.0.1",
|
|
84
|
+
"lint-staged": "^13.0.3",
|
|
85
|
+
"postcss": "^8.4.21",
|
|
86
|
+
"prettier": "^2.0.4",
|
|
87
|
+
"react": "^18.2.0",
|
|
88
|
+
"react-ace": "^10.1.0",
|
|
89
|
+
"react-datepicker": "^4.11.0",
|
|
90
|
+
"react-dom": "^18.2.0",
|
|
91
|
+
"react-error-boundary": "^3.1.4",
|
|
92
|
+
"react-grid-layout": "^1.3.4",
|
|
93
|
+
"react-hook-form": "^7.33.1",
|
|
94
|
+
"react-query": "^3.39.2",
|
|
95
|
+
"simplebar-react": "^3.2.4",
|
|
96
|
+
"storybook": "^7.0.9",
|
|
97
|
+
"tailwindcss": "^3.2.4",
|
|
98
|
+
"ts-node": "^10.9.1",
|
|
99
|
+
"typescript": "^4.6.3",
|
|
100
|
+
"vite": "^4.3",
|
|
101
|
+
"vite-plugin-css-injected-by-js": "^3.1.1",
|
|
102
|
+
"vite-plugin-dts": "^2.3",
|
|
103
|
+
"vite-tsconfig-paths": "^4.0.3"
|
|
104
|
+
},
|
|
105
|
+
"files": [
|
|
106
|
+
"dist"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import EChartsReact from 'echarts-for-react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Props = {
|
|
4
|
-
data: {
|
|
5
|
-
labels: string[] | undefined;
|
|
6
|
-
datasets: {
|
|
7
|
-
label: string;
|
|
8
|
-
data: any[] | undefined;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
}[] | undefined;
|
|
11
|
-
};
|
|
12
|
-
colors?: string[];
|
|
13
|
-
backGroundColor: any;
|
|
14
|
-
legendSettings: any;
|
|
15
|
-
labelSettings: any;
|
|
16
|
-
axisSettings: any;
|
|
17
|
-
margins: any;
|
|
18
|
-
customSettings: any;
|
|
19
|
-
chartRef: React.RefObject<EChartsReact>;
|
|
20
|
-
handleChartClick?: (params: any) => void;
|
|
21
|
-
setShowChartPopup?: any;
|
|
22
|
-
drilldown?: () => void;
|
|
23
|
-
};
|
|
24
|
-
declare const BarChart: ({ data, colors, backGroundColor, legendSettings, labelSettings, axisSettings, margins, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: Props) => React.JSX.Element;
|
|
25
|
-
export default BarChart;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import EChartsReact from 'echarts-for-react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
|
|
4
|
-
type Props = {
|
|
5
|
-
data: {
|
|
6
|
-
labels: string[] | undefined;
|
|
7
|
-
datasets: {
|
|
8
|
-
label: string;
|
|
9
|
-
data: any[] | undefined;
|
|
10
|
-
borderColor: string;
|
|
11
|
-
}[] | undefined;
|
|
12
|
-
};
|
|
13
|
-
margins: Record<string, number>;
|
|
14
|
-
legendSettings: LegendSettings;
|
|
15
|
-
labelSettings: LabelSettings;
|
|
16
|
-
axisSettings: AxisSettings;
|
|
17
|
-
colors?: string[];
|
|
18
|
-
customSettings: CustomSettings;
|
|
19
|
-
chartRef: React.RefObject<EChartsReact>;
|
|
20
|
-
handleChartClick?: (params: any) => void;
|
|
21
|
-
setShowChartPopup?: any;
|
|
22
|
-
drilldown?: () => void;
|
|
23
|
-
};
|
|
24
|
-
declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: Props) => React.JSX.Element;
|
|
25
|
-
export default LineChart;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, isEnableGroupBy, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
|
|
3
|
-
export default ScatterChart;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
|
|
3
|
-
export default StackedBarChart;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
|
|
3
|
-
export default SteppedAreaChart;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TimeSeriesChartProps } from '@/types';
|
|
3
|
-
declare const TimeSeriesChart: ({ dataArray, groupBy, timeStampKey, type, valuekeys, margins, colors, customSettings, axisSettings, labelSettings, legendSettings, backGroundColor, }: TimeSeriesChartProps) => React.JSX.Element;
|
|
4
|
-
export default TimeSeriesChart;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import EChartsReact from 'echarts-for-react';
|
|
3
|
-
import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
|
|
4
|
-
import { ClickActionsConfig, TimeSeriesSettingsType } from '@/types';
|
|
5
|
-
export type MetricChartProps = {
|
|
6
|
-
data: {
|
|
7
|
-
labels: string[] | undefined;
|
|
8
|
-
datasets: {
|
|
9
|
-
label: string;
|
|
10
|
-
data: any[] | undefined;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
}[] | undefined;
|
|
13
|
-
};
|
|
14
|
-
labels: string[] | undefined;
|
|
15
|
-
funnelData: ('' | {
|
|
16
|
-
value: any;
|
|
17
|
-
name: any;
|
|
18
|
-
} | undefined)[] | undefined;
|
|
19
|
-
chartType: string;
|
|
20
|
-
sankeyData: (any[] | undefined)[] | undefined;
|
|
21
|
-
singleValueData: ('' | {
|
|
22
|
-
value: any;
|
|
23
|
-
label: string;
|
|
24
|
-
} | undefined)[] | undefined;
|
|
25
|
-
margins: Record<string, number>;
|
|
26
|
-
legendSettings: LegendSettings;
|
|
27
|
-
labelSettings: LabelSettings;
|
|
28
|
-
axisSettings: AxisSettings;
|
|
29
|
-
customSettings: CustomSettings;
|
|
30
|
-
enableSaveAs: boolean;
|
|
31
|
-
colors?: string[];
|
|
32
|
-
backGroundColor: BackgroundSettings;
|
|
33
|
-
chartClickConfig: ClickActionsConfig['chart'];
|
|
34
|
-
tableSettings: TableSettings;
|
|
35
|
-
chartRef: React.RefObject<EChartsReact>;
|
|
36
|
-
tableName?: string;
|
|
37
|
-
handleChartClick?: (params: any) => void;
|
|
38
|
-
drilldown?: () => void;
|
|
39
|
-
setShowChartPopup?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
40
|
-
rawData: Record<string, any>[];
|
|
41
|
-
timeSeriesSettings: TimeSeriesSettingsType;
|
|
42
|
-
xAxis: string;
|
|
43
|
-
yAxisList: string[];
|
|
44
|
-
};
|
|
45
|
-
export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, backGroundColor, chartClickConfig, tableSettings, chartRef, tableName, handleChartClick, drilldown, setShowChartPopup, rawData, timeSeriesSettings, xAxis, yAxisList, }: MetricChartProps) => React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type SwitchButtonProps = {
|
|
3
|
-
onChange?: (enabled: boolean) => void;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
variant?: 'switch' | 'toggle';
|
|
6
|
-
label?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
placeholder?: string | [string, string];
|
|
9
|
-
labelClassName?: string;
|
|
10
|
-
defaultEnabled?: boolean;
|
|
11
|
-
name?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const ToggleButton: React.FC<SwitchButtonProps>;
|
|
14
|
-
export {};
|
package/dist/index.d.ts
DELETED