@esvndev/es-react-table-interface 1.0.14 → 1.1.0

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.
@@ -55,20 +55,6 @@ export interface IHeaderToolbar {
55
55
  * @param stateChildId Mã các bảng con vd ['Table1', 'Table2'], bảng con đính kém: 'AttachFile'
56
56
  * @param titleChild Tiêu đề của tabChild
57
57
  */
58
- export interface IBreadCrumbsNotLinkProps {
59
- breadCrumbTitle?: string;
60
- breadCrumbActive: string;
61
- breadCrumbParent?: {
62
- link?: string;
63
- title: string;
64
- }[];
65
- }
66
- export interface IHeaderToolbar {
67
- breadCrumb: IBreadCrumbsNotLinkProps;
68
- buttons?: IButtonToolbar[];
69
- CanPer: any;
70
- t: TFunction;
71
- }
72
58
  export interface IExternalInterface {
73
59
  windowSize?: any;
74
60
  rowDataBound?: any;
@@ -83,6 +69,10 @@ export interface IExternalInterface {
83
69
  totalCount?: number;
84
70
  allowPaging?: boolean;
85
71
  allowResizing?: boolean;
72
+ buttons?: IButtonToolbar[];
73
+ rowSelected?: any;
74
+ rowClassName?: any;
75
+ typeCheckbox?: 'checkbox' | 'radio' | undefined;
86
76
  }[];
87
77
  viewIdTable: string;
88
78
  currentPageDefault?: number;
@@ -159,6 +149,7 @@ export interface IExternalInterface {
159
149
  showUltilities?: boolean;
160
150
  allowPaging?: boolean;
161
151
  allowResizing?: boolean;
152
+ allowFilterClient?: boolean;
162
153
  summary?: boolean;
163
154
  hasWorkflow?: boolean;
164
155
  rowClassName?: any;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { InputType } from "reactstrap/types/lib/Input";
3
+ interface IFFormInput {
4
+ control: any;
5
+ name: string;
6
+ type?: InputType;
7
+ label: string;
8
+ labelSize?: string;
9
+ required?: boolean;
10
+ errors?: any;
11
+ classes?: string;
12
+ height?: number | string;
13
+ disabled?: boolean;
14
+ row?: number;
15
+ isLabel?: boolean;
16
+ inLine?: boolean;
17
+ autoFocus?: boolean;
18
+ placeholder?: string;
19
+ callback?: any;
20
+ readOnly?: boolean;
21
+ isUppercaseAll?: boolean;
22
+ onBlur?: any;
23
+ templateValue?: any;
24
+ }
25
+ declare const TextInput: (props: IFFormInput) => React.JSX.Element;
26
+ export default TextInput;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ModalHeader: (props: any) => React.JSX.Element;
3
+ export default ModalHeader;
@@ -3,12 +3,13 @@ import { TFunction } from "i18next";
3
3
  export interface IButtonToolbar {
4
4
  userAction: string;
5
5
  userSubject: string;
6
- actionClick: () => void;
6
+ actionClick: ({ rowData }: any) => void;
7
7
  title: string;
8
8
  color?: string;
9
9
  fontSize?: number;
10
10
  icon?: keyof typeof Icon;
11
11
  disabled?: boolean;
12
+ align?: 'left' | 'right';
12
13
  }
13
14
  export interface IToolbarTemplate {
14
15
  width?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.0.14",
3
+ "version": "1.1.0",
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",
@@ -28,6 +28,7 @@
28
28
  ],
29
29
  "devDependencies": {
30
30
  "@esvndev/es-react-import-export": "1.0.88",
31
+ "@hookform/resolvers": "^2.8.10",
31
32
  "@rollup/plugin-commonjs": "^20.0.0",
32
33
  "@rollup/plugin-json": "^6.1.0",
33
34
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -93,7 +94,8 @@
93
94
  "sweetalert2-react-content": "^5.0.0",
94
95
  "ts-jest": "^29.1.2",
95
96
  "tslib": "^2.6.2",
96
- "typescript": "^5.3.3"
97
+ "typescript": "^5.3.3",
98
+ "yup": "^0.32.11"
97
99
  },
98
100
  "peerDependencies": {
99
101
  "react": ">=16.8.6",