@esvndev/es-react-table-interface 1.2.2 → 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;
@@ -111,7 +114,6 @@ export interface IExternalInterface {
111
114
  querySelectDefault?: IQueryFilter[];
112
115
  t: TFunction;
113
116
  localeLanguage?: any;
114
- pageSizeOptions?: number[];
115
117
  api?: {
116
118
  apiGetColumns: any;
117
119
  apiGetOption: any;
@@ -206,6 +208,7 @@ export interface IExternalInterface {
206
208
  renderCell?: (value: boolean, record: any, index: number, originNode: React.ReactNode) => React.ReactNode | any;
207
209
  onCell?: any;
208
210
  };
211
+ initAbility?: any;
209
212
  }
210
213
  export interface IQueryFilter {
211
214
  key: string;
@@ -245,4 +248,5 @@ export interface ITableConfigView {
245
248
  RowMerge?: number;
246
249
  IsHidden?: boolean;
247
250
  IsActive?: boolean;
251
+ IsSumary?: boolean;
248
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.2",
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",