cecomponent 1.0.193 → 1.0.194
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,14 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Chart row data
|
|
3
|
+
*/
|
|
4
|
+
export interface StackedBarChartItem {
|
|
2
5
|
name: string;
|
|
3
6
|
[status: string]: string | number;
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Clicked bar JSON payload
|
|
10
|
+
* Example:
|
|
11
|
+
* { name: "January", Approved: 120 }
|
|
12
|
+
*/
|
|
13
|
+
export type ClickedBarData = {
|
|
14
|
+
name: string;
|
|
15
|
+
[status: string]: number | string;
|
|
16
|
+
};
|
|
5
17
|
interface CEStackedBarChartProps {
|
|
6
18
|
chartData: StackedBarChartItem[];
|
|
7
19
|
statusOrder: string[];
|
|
8
20
|
refreshKey?: number;
|
|
9
21
|
statusColor: Record<string, string>;
|
|
10
22
|
height?: number;
|
|
11
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Fired when a stacked bar segment is clicked
|
|
25
|
+
* Returns ONLY the clicked JSON object
|
|
26
|
+
*/
|
|
27
|
+
onBarClick?: (data: ClickedBarData) => void;
|
|
12
28
|
}
|
|
13
29
|
declare const CEStackedBarChart: React.FC<CEStackedBarChartProps>;
|
|
14
30
|
export default CEStackedBarChart;
|
|
@@ -18,6 +18,7 @@ interface CEFileUploadProps {
|
|
|
18
18
|
onDownload?: (file: UploadedFile) => void;
|
|
19
19
|
showPagination?: boolean;
|
|
20
20
|
pageSizeOptions?: Array<number>;
|
|
21
|
+
disabled?: boolean;
|
|
21
22
|
}
|
|
22
23
|
declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
|
|
23
24
|
export default CEFileUploadDocument;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.194",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/idex.d.ts",
|