@esvndev/es-react-table-interface 1.3.0 → 1.3.2

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.
@@ -54,6 +54,23 @@ export interface IHeaderToolbar {
54
54
  * @param stateChildId Mã các bảng con vd ['Table1', 'Table2'], bảng con đính kém: 'AttachFile'
55
55
  * @param titleChild Tiêu đề của tabChild
56
56
  */
57
+ export type IOnGroup = {
58
+ columnGrouped: string[];
59
+ columns: ColumnTable[];
60
+ flattenColumns: ColumnTable[];
61
+ };
62
+ export type IGroupSetting = {
63
+ client?: boolean;
64
+ onGroup?: (props: IOnGroup) => void;
65
+ hiddenColumnGroup?: boolean;
66
+ showGroupIcon?: boolean;
67
+ unClearableLevel?: 1 | 2 | 3 | undefined;
68
+ };
69
+ interface IGroup {
70
+ groupAble?: boolean;
71
+ groupColumns?: string[];
72
+ groupSetting?: IGroupSetting;
73
+ }
57
74
  export interface IExternalInterface {
58
75
  windowSize?: any;
59
76
  stateId: string;
@@ -74,6 +91,8 @@ export interface IExternalInterface {
74
91
  rowClassName?: any;
75
92
  content?: any;
76
93
  typeCheckbox?: 'checkbox' | 'radio' | undefined;
94
+ onDataChange?: (data: any, setData: any) => void;
95
+ group?: IGroup;
77
96
  onChangeParam?: (item: {
78
97
  keyword?: string;
79
98
  pageSize?: number;
@@ -82,6 +101,8 @@ export interface IExternalInterface {
82
101
  queryOrder?: any[];
83
102
  }) => void;
84
103
  }[];
104
+ onDataChange?: (data: any[], setData: any) => void;
105
+ group?: IGroup;
85
106
  callback?: any;
86
107
  viewIdTable: string;
87
108
  currentPageDefault?: number;
@@ -262,3 +283,4 @@ export interface ITableConfigView {
262
283
  IsActive?: boolean;
263
284
  IsSumary?: boolean;
264
285
  }
286
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
5
5
  "license": "ESVN Limited Use License",
6
6
  "author": "dev@esvn.com.vn",
@@ -55,7 +55,7 @@
55
55
  "classnames": "^2.5.1",
56
56
  "es-grid-template": "1.5.0",
57
57
  "es-print-template": "0.0.7",
58
- "es-workflow-template": "^0.4.2",
58
+ "es-workflow-template": "^0.4.4",
59
59
  "eslint": "^8.25.0",
60
60
  "eslint-config-prettier": "^8.5.0",
61
61
  "eslint-plugin-prettier": "^4.2.1",