@omniumretail/component-library 1.2.80 → 1.2.82
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.
|
@@ -12,6 +12,26 @@ export declare enum sortByOption {
|
|
|
12
12
|
asc = "asc",
|
|
13
13
|
desc = "desc"
|
|
14
14
|
}
|
|
15
|
+
export interface SelectedCell {
|
|
16
|
+
rowKey: any;
|
|
17
|
+
columnKey: string;
|
|
18
|
+
value: any;
|
|
19
|
+
rowData: any;
|
|
20
|
+
}
|
|
21
|
+
export interface CellSelectionStyle {
|
|
22
|
+
firstCell?: {
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
borderColor?: string;
|
|
25
|
+
textColor?: string;
|
|
26
|
+
iconColor?: string;
|
|
27
|
+
};
|
|
28
|
+
secondCell?: {
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
borderColor?: string;
|
|
31
|
+
textColor?: string;
|
|
32
|
+
iconColor?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
15
35
|
export interface ResponsiveTableCustomProps extends TableProps<any> {
|
|
16
36
|
fieldsToSort?: any[];
|
|
17
37
|
selectPlaceholder?: string;
|
|
@@ -49,5 +69,12 @@ export interface ResponsiveTableCustomProps extends TableProps<any> {
|
|
|
49
69
|
getRowActions?: (record: any) => any;
|
|
50
70
|
customSelectAllButton?: string;
|
|
51
71
|
buttonActionIcon?: (record: any) => any | null;
|
|
72
|
+
enableCellSelection?: boolean;
|
|
73
|
+
selectableColumns?: string[];
|
|
74
|
+
onCellsSelected?: (cells: SelectedCell[]) => void;
|
|
75
|
+
maxCellSelection?: number;
|
|
76
|
+
cellSelectionMode?: 'single' | 'multiple';
|
|
77
|
+
cleanCellSelection?: boolean;
|
|
78
|
+
cellSelectionStyle?: CellSelectionStyle;
|
|
52
79
|
}
|
|
53
80
|
export declare const ResponsiveTable: (props: ResponsiveTableCustomProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TrainingVideoProps {
|
|
2
|
+
videoUrl: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
onProgressUpdate?: (progress: number) => void;
|
|
6
|
+
onComplete?: () => void;
|
|
7
|
+
initialProgress?: number;
|
|
8
|
+
autoSaveInterval?: number;
|
|
9
|
+
minWatchPercentage?: number;
|
|
10
|
+
allowSkip?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TrainingVideo: ({ videoUrl, title, description, onProgressUpdate, onComplete, initialProgress, autoSaveInterval, minWatchPercentage, allowSkip, }: TrainingVideoProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.82",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/component-library.umd.js",
|
|
6
6
|
"module": "dist/component-library.es.js",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"react-i18next": "^12.1.4"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@storybook/test": "^8.6.14",
|
|
21
22
|
"camelcase": "^8.0.0",
|
|
22
23
|
"classnames": "^2.3.2",
|
|
23
24
|
"lodash.merge": "^4.6.2"
|