@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.
Files changed (91) hide show
  1. package/dist/components/Accordion/index.d.ts +27 -0
  2. package/dist/components/Badge/index.d.ts +9 -0
  3. package/dist/components/Button/index.d.ts +6 -3
  4. package/dist/components/Chart/SingleValueChart.d.ts +1 -1
  5. package/dist/components/Chart/index.d.ts +4 -2
  6. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +2 -3
  7. package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +7 -0
  8. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +10 -3
  9. package/dist/components/ChartTypePanel/index.d.ts +15 -0
  10. package/dist/components/Checkbox/index.d.ts +10 -0
  11. package/dist/components/ColorField/{Index.d.ts → ColorField.d.ts} +2 -2
  12. package/dist/components/DateRangePicker/index.d.ts +3 -1
  13. package/dist/components/DrillBreadCrumb/index.d.ts +3 -1
  14. package/dist/components/FilterDropDown/index.d.ts +8 -4
  15. package/dist/components/FloatingDropDown/index.d.ts +10 -14
  16. package/dist/components/FullScreenChart/index.d.ts +1 -1
  17. package/dist/components/GlobalFilters/AppliedFilter.d.ts +1 -1
  18. package/dist/components/GlobalFilters/Filters.d.ts +1 -1
  19. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +1 -1
  20. package/dist/components/GlobalFilters/NumberFilterField.d.ts +3 -1
  21. package/dist/components/GlobalFilters/index.d.ts +1 -2
  22. package/dist/components/Icons/Logos/index.d.ts +12 -0
  23. package/dist/components/Icons/index.d.ts +6 -4
  24. package/dist/components/InfoTooltip/index.d.ts +6 -2
  25. package/dist/components/InputField/index.d.ts +5 -6
  26. package/dist/components/List/index.d.ts +19 -0
  27. package/dist/components/Menu/index.d.ts +30 -0
  28. package/dist/components/MetricChart/CsvDownloadButton.d.ts +2 -1
  29. package/dist/components/MetricList/MetricList.d.ts +6 -1
  30. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +1 -1
  31. package/dist/components/MetricList/components/FullScreenView/index.d.ts +4 -5
  32. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +4 -3
  33. package/dist/components/Modal/Modal.d.ts +1 -0
  34. package/dist/components/MultiSelectDropdown/index.d.ts +28 -0
  35. package/dist/components/Panel/index.d.ts +15 -0
  36. package/dist/components/PopoverMenu/index.d.ts +21 -5
  37. package/dist/components/RadioButton/index.d.ts +16 -0
  38. package/dist/components/SearchTab/index.d.ts +1 -1
  39. package/dist/components/Select/index.d.ts +2 -12
  40. package/dist/components/{ToggleButton → Switch}/SwitchInput.d.ts +1 -1
  41. package/dist/components/Switch/index.d.ts +10 -0
  42. package/dist/components/Table/index.d.ts +4 -1
  43. package/dist/components/Tabs/index.d.ts +37 -0
  44. package/dist/components/Text/index.d.ts +7 -6
  45. package/dist/components/TimeGrainField/index.d.ts +1 -1
  46. package/dist/components/index.d.ts +12 -1
  47. package/dist/consts/app.d.ts +4 -0
  48. package/dist/consts/metricOptions.d.ts +4 -0
  49. package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
  50. package/dist/helpers/index.d.ts +2 -0
  51. package/dist/helpers/timeseries.d.ts +2 -2
  52. package/dist/hooks/useMetricCard.d.ts +9 -7
  53. package/dist/hooks/useOutsideAlerter.d.ts +8 -1
  54. package/dist/queries/externalDashboard.mutation.d.ts +1 -1
  55. package/dist/queries/externalDashboard.query.d.ts +1 -1
  56. package/dist/queries/metric.mutation.d.ts +1 -1
  57. package/dist/queries/metric.query.d.ts +1 -1
  58. package/dist/types/app.d.ts +46 -6
  59. package/dist/types/metricCreate.d.ts +5 -0
  60. package/dist/utils/colors.d.ts +1 -0
  61. package/dist/utils/getChartOptions.d.ts +1 -2
  62. package/dist/utils/index.d.ts +1 -0
  63. package/dist/webcomponents.es.js +84984 -91456
  64. package/dist/webcomponents.umd.js +270 -344
  65. package/package.json +108 -107
  66. package/dist/components/ChartModal/SelectField.d.ts +0 -2
  67. package/dist/components/Charts/AreaChart.d.ts +0 -3
  68. package/dist/components/Charts/BarChart.d.ts +0 -25
  69. package/dist/components/Charts/BoxPlot.d.ts +0 -3
  70. package/dist/components/Charts/BubbleChart.d.ts +0 -3
  71. package/dist/components/Charts/ComboChart.d.ts +0 -3
  72. package/dist/components/Charts/DoughnutChart.d.ts +0 -3
  73. package/dist/components/Charts/FunnelChart.d.ts +0 -3
  74. package/dist/components/Charts/GaugeChart.d.ts +0 -3
  75. package/dist/components/Charts/Histogram.d.ts +0 -3
  76. package/dist/components/Charts/LineChart.d.ts +0 -25
  77. package/dist/components/Charts/PieChart.d.ts +0 -3
  78. package/dist/components/Charts/RowChart.d.ts +0 -3
  79. package/dist/components/Charts/SankeyChart.d.ts +0 -3
  80. package/dist/components/Charts/ScatterChart.d.ts +0 -3
  81. package/dist/components/Charts/SingleValueChart/index.d.ts +0 -3
  82. package/dist/components/Charts/StackedBarChart.d.ts +0 -3
  83. package/dist/components/Charts/SteppedAreaChart.d.ts +0 -3
  84. package/dist/components/Charts/Table/TableChart.d.ts +0 -3
  85. package/dist/components/Charts/TimeSeriesChart.d.ts +0 -4
  86. package/dist/components/Charts/WaterfallChart.d.ts +0 -3
  87. package/dist/components/MetricChart/MetricChart.d.ts +0 -45
  88. package/dist/components/ToggleButton/ToggleInput.d.ts +0 -9
  89. package/dist/components/ToggleButton/index.d.ts +0 -14
  90. package/dist/containers/index.d.ts +0 -3
  91. package/dist/index.d.ts +0 -7
package/package.json CHANGED
@@ -1,107 +1,108 @@
1
- {
2
- "name": "@databrainhq/plugin",
3
- "version": "0.12.32",
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
- "@headlessui/react": "^1.7.2",
43
- "@iconify/json": "^2.2.6",
44
- "@r2wc/react-to-web-component": "^2.0.2",
45
- "@storybook/addon-essentials": "^7.0.9",
46
- "@storybook/addon-interactions": "^7.0.9",
47
- "@storybook/addon-links": "^7.0.9",
48
- "@storybook/blocks": "^7.0.9",
49
- "@storybook/react": "^7.0.9",
50
- "@storybook/react-vite": "^7.0.9",
51
- "@storybook/testing-library": "^0.0.14-next.2",
52
- "@svgr/core": "^6.5.1",
53
- "@tanstack/match-sorter-utils": "^8.8.4",
54
- "@tanstack/react-table": "^8.7.9",
55
- "@types/react": "^18.0.26",
56
- "@types/react-datepicker": "^4.11.2",
57
- "@types/react-dom": "^18.0.10",
58
- "@types/react-grid-layout": "^1.3.2",
59
- "@typescript-eslint/eslint-plugin": "^4.31.1",
60
- "@typescript-eslint/parser": "^4.31.1",
61
- "@vitejs/plugin-react": "^4.0",
62
- "ace-builds": "^1.17.0",
63
- "autoprefixer": "^10.4.7",
64
- "babel-eslint": "^10.0.3",
65
- "babel-loader": "^9.1.2",
66
- "classnames": "^2.3.2",
67
- "cross-env": "^7.0.2",
68
- "echarts": "^5.4.1",
69
- "echarts-for-react": "^3.0.2",
70
- "eslint": "^7.32.0",
71
- "eslint-config-airbnb": "^18.2.1",
72
- "eslint-config-airbnb-typescript": "^14.0.0",
73
- "eslint-config-prettier": "^8.3.0",
74
- "eslint-plugin-import": "^2.24.2",
75
- "eslint-plugin-jsx-a11y": "^6.6.0",
76
- "eslint-plugin-prettier": "^4.0.0",
77
- "eslint-plugin-react": "^7.30.1",
78
- "eslint-plugin-react-hooks": "^4.6.0",
79
- "eslint-plugin-unicorn": "^36.0.0",
80
- "graphql": "^16.6.0",
81
- "husky": "^8.0.1",
82
- "lint-staged": "^13.0.3",
83
- "postcss": "^8.4.21",
84
- "prettier": "^2.0.4",
85
- "react": "^18.2.0",
86
- "react-ace": "^10.1.0",
87
- "react-datepicker": "^4.11.0",
88
- "react-dom": "^18.2.0",
89
- "react-error-boundary": "^3.1.4",
90
- "react-grid-layout": "^1.3.4",
91
- "react-hook-form": "^7.33.1",
92
- "react-query": "^3.39.2",
93
- "simplebar-react": "^3.2.4",
94
- "storybook": "^7.0.9",
95
- "tailwindcss": "^3.2.4",
96
- "ts-node": "^10.9.1",
97
- "typescript": "^4.6.3",
98
- "unplugin-icons": "^0.14.7",
99
- "vite": "^4.3",
100
- "vite-plugin-css-injected-by-js": "^3.1.1",
101
- "vite-plugin-dts": "^2.3",
102
- "vite-tsconfig-paths": "^4.0.3"
103
- },
104
- "files": [
105
- "dist"
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,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SelectField: ({ value, options, control }: any) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, backGroundColor, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default AreaChart;
@@ -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,3 +0,0 @@
1
- import React from 'react';
2
- declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, colors, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default BoxPlot;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default BubbleChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ComboChart: ({ data, margins, legendSettings, labelSettings, colors, backGroundColor, customSettings, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default ComboChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, colors, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default DoughnutChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors, chartRef, handleChartClick, setShowChartPopup, drilldown, customSettings, }: any) => React.JSX.Element;
3
- export default FunnelChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const GaugeChart: ({ gaugeData, margins, legendSettings, colors, chartRef, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default GaugeChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default Histogram;
@@ -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 PieChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default PieChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const RowChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default RowChart;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const SankeyChart: ({ data, margins, chartRef, colors, backGroundColor, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default SankeyChart;
@@ -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 SingleValueChart: ({ data, customSettings, chartClickConfig, hideBorder, }: any) => React.JSX.Element;
3
- export default SingleValueChart;
@@ -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,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ data, chartClickConfig, tableSettings, tableName, }: any) => React.JSX.Element>;
3
- export default _default;
@@ -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,3 +0,0 @@
1
- import React from 'react';
2
- declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartClick, setShowChartPopup, drilldown, }: any) => React.JSX.Element;
3
- export default WaterFallChart;
@@ -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,9 +0,0 @@
1
- import React from 'react';
2
- type ToggleProps = {
3
- name?: string;
4
- styles: Record<string, string>;
5
- placeholder?: string | [string, string];
6
- enabled?: boolean;
7
- };
8
- export declare const Toggle: React.FC<ToggleProps>;
9
- export {};
@@ -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 {};
@@ -1,3 +0,0 @@
1
- export * from './Dashboard';
2
- export * from './PluginProvider';
3
- export * from './Metric';
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './containers';
2
- export * as utils from './utils';
3
- export * as consts from './consts';
4
- export * as helpers from './helpers';
5
- export * as hooks from './hooks';
6
- export * as types from './types';
7
- export * as Ui from './components';