react-table-edit 0.3.5 → 0.3.8
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.
- package/dist/index.d.mts +27 -18
- package/dist/index.d.ts +27 -18
- package/dist/index.js +246 -127
- package/dist/index.mjs +246 -127
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -73,45 +73,54 @@ type IFToolbarOptions = {
|
|
|
73
73
|
align: 'left' | 'right' | 'center';
|
|
74
74
|
template: any;
|
|
75
75
|
};
|
|
76
|
+
type IFTableEditPaging = {
|
|
77
|
+
allowPaging?: boolean;
|
|
78
|
+
currentPage?: number;
|
|
79
|
+
setCurrentPage?: any;
|
|
80
|
+
setPageSize?: any;
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
totalItem?: number;
|
|
83
|
+
};
|
|
84
|
+
type IFTableEditButton = {
|
|
85
|
+
deleteAllDisable?: boolean;
|
|
86
|
+
insertAfterDisable?: boolean;
|
|
87
|
+
insertBeforeDisable?: boolean;
|
|
88
|
+
duplicateDisable?: boolean;
|
|
89
|
+
};
|
|
90
|
+
type IFTableEditToolbar = {
|
|
91
|
+
showTopToolbar?: boolean;
|
|
92
|
+
toolbarOptions?: IFToolbarOptions[];
|
|
93
|
+
toolbarBottomOptions?: IFToolbarOptions[];
|
|
94
|
+
showBottomToolbar?: boolean;
|
|
95
|
+
};
|
|
76
96
|
type IFTableEditProps = {
|
|
97
|
+
idTable?: string;
|
|
77
98
|
dataSource: any[];
|
|
78
99
|
haveSum?: boolean;
|
|
79
100
|
selectEnable?: boolean;
|
|
80
|
-
showTopToolbar?: boolean;
|
|
81
|
-
showBottomToolbar?: boolean;
|
|
82
101
|
defaultValue?: any;
|
|
83
|
-
toolbarOptions?: IFToolbarOptions[];
|
|
84
|
-
toolbarBottomOptions?: IFToolbarOptions[];
|
|
85
102
|
columns: IColumnTable[];
|
|
103
|
+
pagingSetting?: IFTableEditPaging;
|
|
104
|
+
buttonSetting?: IFTableEditButton;
|
|
105
|
+
toolbarSetting?: IFTableEditToolbar;
|
|
86
106
|
setDataSource?: any;
|
|
87
107
|
commandClick?: any;
|
|
88
108
|
rowChange?: any;
|
|
89
109
|
handleSelect?: any;
|
|
90
110
|
dataSourceChange?: any;
|
|
91
|
-
allowPaging?: boolean;
|
|
92
|
-
pageSize?: number;
|
|
93
|
-
totalItem?: number;
|
|
94
111
|
height?: number;
|
|
95
112
|
maxHeight?: number;
|
|
96
113
|
minHeight?: number;
|
|
97
|
-
currentPage?: number;
|
|
98
|
-
setCurrentPage?: any;
|
|
99
|
-
setPageSize?: any;
|
|
100
114
|
searchTerm?: string;
|
|
101
|
-
idTable?: string;
|
|
102
115
|
setSearchTerm?: any;
|
|
103
116
|
selectedItem?: any;
|
|
104
117
|
setSelectedItem?: any;
|
|
105
118
|
searchEnable?: boolean;
|
|
106
|
-
editDisable?: boolean;
|
|
107
|
-
addDisable?: boolean;
|
|
108
|
-
deleteAllDisable?: boolean;
|
|
109
|
-
insertAfterDisable?: boolean;
|
|
110
|
-
insertBeforeDisable?: boolean;
|
|
111
|
-
duplicateDisable?: boolean;
|
|
112
119
|
isMulti?: boolean;
|
|
113
120
|
decimalSeparator?: string;
|
|
114
121
|
thousandSeparator?: string;
|
|
122
|
+
editDisable?: boolean;
|
|
123
|
+
addDisable?: boolean;
|
|
115
124
|
};
|
|
116
125
|
type IFPageSize = {
|
|
117
126
|
pageSize: number;
|
|
@@ -169,4 +178,4 @@ declare const objSymbolThousand: any;
|
|
|
169
178
|
declare const formartNumberic: (str: string | number, decimalSeparator: string, thousandSeparator: string, fraction?: number, isDone?: boolean) => string;
|
|
170
179
|
declare const roundNumber: (num: number, fraction: number) => number;
|
|
171
180
|
|
|
172
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditProps, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
181
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -73,45 +73,54 @@ type IFToolbarOptions = {
|
|
|
73
73
|
align: 'left' | 'right' | 'center';
|
|
74
74
|
template: any;
|
|
75
75
|
};
|
|
76
|
+
type IFTableEditPaging = {
|
|
77
|
+
allowPaging?: boolean;
|
|
78
|
+
currentPage?: number;
|
|
79
|
+
setCurrentPage?: any;
|
|
80
|
+
setPageSize?: any;
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
totalItem?: number;
|
|
83
|
+
};
|
|
84
|
+
type IFTableEditButton = {
|
|
85
|
+
deleteAllDisable?: boolean;
|
|
86
|
+
insertAfterDisable?: boolean;
|
|
87
|
+
insertBeforeDisable?: boolean;
|
|
88
|
+
duplicateDisable?: boolean;
|
|
89
|
+
};
|
|
90
|
+
type IFTableEditToolbar = {
|
|
91
|
+
showTopToolbar?: boolean;
|
|
92
|
+
toolbarOptions?: IFToolbarOptions[];
|
|
93
|
+
toolbarBottomOptions?: IFToolbarOptions[];
|
|
94
|
+
showBottomToolbar?: boolean;
|
|
95
|
+
};
|
|
76
96
|
type IFTableEditProps = {
|
|
97
|
+
idTable?: string;
|
|
77
98
|
dataSource: any[];
|
|
78
99
|
haveSum?: boolean;
|
|
79
100
|
selectEnable?: boolean;
|
|
80
|
-
showTopToolbar?: boolean;
|
|
81
|
-
showBottomToolbar?: boolean;
|
|
82
101
|
defaultValue?: any;
|
|
83
|
-
toolbarOptions?: IFToolbarOptions[];
|
|
84
|
-
toolbarBottomOptions?: IFToolbarOptions[];
|
|
85
102
|
columns: IColumnTable[];
|
|
103
|
+
pagingSetting?: IFTableEditPaging;
|
|
104
|
+
buttonSetting?: IFTableEditButton;
|
|
105
|
+
toolbarSetting?: IFTableEditToolbar;
|
|
86
106
|
setDataSource?: any;
|
|
87
107
|
commandClick?: any;
|
|
88
108
|
rowChange?: any;
|
|
89
109
|
handleSelect?: any;
|
|
90
110
|
dataSourceChange?: any;
|
|
91
|
-
allowPaging?: boolean;
|
|
92
|
-
pageSize?: number;
|
|
93
|
-
totalItem?: number;
|
|
94
111
|
height?: number;
|
|
95
112
|
maxHeight?: number;
|
|
96
113
|
minHeight?: number;
|
|
97
|
-
currentPage?: number;
|
|
98
|
-
setCurrentPage?: any;
|
|
99
|
-
setPageSize?: any;
|
|
100
114
|
searchTerm?: string;
|
|
101
|
-
idTable?: string;
|
|
102
115
|
setSearchTerm?: any;
|
|
103
116
|
selectedItem?: any;
|
|
104
117
|
setSelectedItem?: any;
|
|
105
118
|
searchEnable?: boolean;
|
|
106
|
-
editDisable?: boolean;
|
|
107
|
-
addDisable?: boolean;
|
|
108
|
-
deleteAllDisable?: boolean;
|
|
109
|
-
insertAfterDisable?: boolean;
|
|
110
|
-
insertBeforeDisable?: boolean;
|
|
111
|
-
duplicateDisable?: boolean;
|
|
112
119
|
isMulti?: boolean;
|
|
113
120
|
decimalSeparator?: string;
|
|
114
121
|
thousandSeparator?: string;
|
|
122
|
+
editDisable?: boolean;
|
|
123
|
+
addDisable?: boolean;
|
|
115
124
|
};
|
|
116
125
|
type IFPageSize = {
|
|
117
126
|
pageSize: number;
|
|
@@ -169,4 +178,4 @@ declare const objSymbolThousand: any;
|
|
|
169
178
|
declare const formartNumberic: (str: string | number, decimalSeparator: string, thousandSeparator: string, fraction?: number, isDone?: boolean) => string;
|
|
170
179
|
declare const roundNumber: (num: number, fraction: number) => number;
|
|
171
180
|
|
|
172
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditProps, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
181
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|