@esvndev/es-react-table-interface 1.2.1 → 1.2.3

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.
@@ -60,6 +60,7 @@ export interface IExternalInterface {
60
60
  titleChild?: string;
61
61
  stateChildId?: {
62
62
  stateId: string;
63
+ total?: number;
63
64
  stateName: string;
64
65
  querySelectDefault?: IQueryFilter[];
65
66
  dataSource?: any[];
@@ -71,6 +72,7 @@ export interface IExternalInterface {
71
72
  buttons?: IButtonToolbar[];
72
73
  rowSelected?: any;
73
74
  rowClassName?: any;
75
+ content?: any;
74
76
  typeCheckbox?: 'checkbox' | 'radio' | undefined;
75
77
  onChangeParam?: (item: {
76
78
  keyword?: string;
@@ -80,6 +82,7 @@ export interface IExternalInterface {
80
82
  queryOrder?: any[];
81
83
  }) => void;
82
84
  }[];
85
+ callback?: any;
83
86
  viewIdTable: string;
84
87
  currentPageDefault?: number;
85
88
  rowsPerPageDefault?: number;
@@ -205,6 +208,7 @@ export interface IExternalInterface {
205
208
  renderCell?: (value: boolean, record: any, index: number, originNode: React.ReactNode) => React.ReactNode | any;
206
209
  onCell?: any;
207
210
  };
211
+ initAbility?: any;
208
212
  }
209
213
  export interface IQueryFilter {
210
214
  key: string;
@@ -244,4 +248,5 @@ export interface ITableConfigView {
244
248
  RowMerge?: number;
245
249
  IsHidden?: boolean;
246
250
  IsActive?: boolean;
251
+ IsSumary?: boolean;
247
252
  }
@@ -27,4 +27,5 @@ export interface IToolbarTemplate {
27
27
  isMulti?: boolean;
28
28
  t: TFunction;
29
29
  position?: string;
30
+ loadOption?: (a: any, b: any) => void;
30
31
  }
@@ -5,3 +5,12 @@ export declare const apiGetOption: (data?: Record<string, any>, config?: Request
5
5
  export declare const apiTableConfig: (data?: any, config?: any, timeout?: number) => Promise<any>;
6
6
  export declare const apiGetDataView: (data?: any, config?: any, timeout?: number) => Promise<any>;
7
7
  export declare const apiTableconfigAddEditDelete: (data?: any, config?: any, timeout?: number) => Promise<any>;
8
+ export declare const apiAddResource: (data?: any, config?: any, timeout?: number) => Promise<any>;
9
+ export declare const apiEditResource: (data?: any, config?: any, timeout?: number) => Promise<any>;
10
+ export declare const apiDeleteResource: (listId: string[], config?: any, timeout?: number) => Promise<any>;
11
+ export declare const apiGetViewPermission: (data: {
12
+ productCode: string;
13
+ code: string;
14
+ type?: string;
15
+ organizationId?: string;
16
+ }, config?: RequestInit, timeout?: number) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
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",
@@ -53,7 +53,7 @@
53
53
  "axios": "^1.7.2",
54
54
  "becoxy-icons": "1.9.9",
55
55
  "classnames": "^2.5.1",
56
- "es-grid-template": "1.4.0",
56
+ "es-grid-template": "1.4.2",
57
57
  "es-print-template": "0.0.7",
58
58
  "es-workflow-template": "^0.4.2",
59
59
  "eslint": "^8.25.0",