react-table-edit 1.4.0 → 1.4.1
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/component/paging/index.d.ts +10 -0
- package/dist/component/sidebar-setting-column/index.d.ts +1 -1
- package/dist/component/table/button-handle.d.ts +7 -6
- package/dist/component/table/command.d.ts +3 -4
- package/dist/component/table/footer.d.ts +1 -1
- package/dist/component/table/header.d.ts +1 -1
- package/dist/component/table/index.d.ts +2 -153
- package/dist/component/table/key-handlers.d.ts +3 -7
- package/dist/component/table/toolbar-bottom.d.ts +1 -1
- package/dist/component/tree-table/button-handle.d.ts +9 -0
- package/dist/component/tree-table/command.d.ts +13 -0
- package/dist/component/tree-table/footer.d.ts +13 -0
- package/dist/component/tree-table/header.d.ts +19 -0
- package/dist/component/tree-table/index.d.ts +37 -0
- package/dist/component/tree-table/key-handlers.d.ts +31 -0
- package/dist/component/tree-table/toolbar-bottom.d.ts +2 -0
- package/dist/component/tree-table/toolbar-top.d.ts +9 -0
- package/dist/component/type/index.d.ts +154 -0
- package/dist/index.d.ts +36 -35
- package/dist/index.js +5295 -5420
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5295 -5420
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,17 +4,6 @@ import { UseFormSetValue, UseFormGetValues, UseFormReset, Control, UseFormWatch,
|
|
|
4
4
|
import { TFunction } from 'react-i18next';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
type FromItemsField = {
|
|
8
|
-
name: string;
|
|
9
|
-
label: string;
|
|
10
|
-
type: 'text' | 'numeric' | 'select' | 'selectCreatable';
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
fraction?: number;
|
|
13
|
-
min?: number;
|
|
14
|
-
max?: number;
|
|
15
|
-
options?: any[];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
7
|
type IFColumnSelectTable = {
|
|
19
8
|
field: string;
|
|
20
9
|
headerText: string;
|
|
@@ -70,6 +59,17 @@ type Props$1 = {
|
|
|
70
59
|
};
|
|
71
60
|
declare const SelectTable: React__default.ForwardRefExoticComponent<Props$1 & React__default.RefAttributes<unknown>>;
|
|
72
61
|
|
|
62
|
+
type FromItemsField = {
|
|
63
|
+
name: string;
|
|
64
|
+
label: string;
|
|
65
|
+
type: 'text' | 'numeric' | 'select' | 'selectCreatable';
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
fraction?: number;
|
|
68
|
+
min?: number;
|
|
69
|
+
max?: number;
|
|
70
|
+
options?: any[];
|
|
71
|
+
};
|
|
72
|
+
|
|
73
73
|
type ITextAlign = 'center' | 'left' | 'right';
|
|
74
74
|
type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
|
|
75
75
|
type ICommandItem = {
|
|
@@ -196,6 +196,30 @@ type IFTableEditFormat = {
|
|
|
196
196
|
prefixNegative?: string;
|
|
197
197
|
suffixNegative?: string;
|
|
198
198
|
};
|
|
199
|
+
type IFPageSize = {
|
|
200
|
+
pageSize: number;
|
|
201
|
+
};
|
|
202
|
+
type IFCurrentPage = {
|
|
203
|
+
currentPage: number;
|
|
204
|
+
};
|
|
205
|
+
type IFCurrentPageConfig = {
|
|
206
|
+
currentPage: number;
|
|
207
|
+
oldPage: number;
|
|
208
|
+
};
|
|
209
|
+
type IHeaderColumnTable = {
|
|
210
|
+
field: string;
|
|
211
|
+
headerText?: string;
|
|
212
|
+
width?: number | string;
|
|
213
|
+
minWidth?: number | string;
|
|
214
|
+
maxWidth?: number | string;
|
|
215
|
+
visible?: boolean;
|
|
216
|
+
rowspan?: number;
|
|
217
|
+
columns?: IColumnTable[];
|
|
218
|
+
textAlign?: ITextAlign;
|
|
219
|
+
fixedType?: 'left' | 'right' | undefined;
|
|
220
|
+
index?: number;
|
|
221
|
+
};
|
|
222
|
+
|
|
199
223
|
type IFTableEditProps = {
|
|
200
224
|
idTable?: string;
|
|
201
225
|
dataSource: any[];
|
|
@@ -226,32 +250,9 @@ type IFTableEditProps = {
|
|
|
226
250
|
rowChange?: (row: any, indexRow: number, field: string) => void;
|
|
227
251
|
onDuplicate?: (newData: any, index: number) => void;
|
|
228
252
|
};
|
|
229
|
-
type IFPageSize = {
|
|
230
|
-
pageSize: number;
|
|
231
|
-
};
|
|
232
|
-
type IFCurrentPage = {
|
|
233
|
-
currentPage: number;
|
|
234
|
-
};
|
|
235
|
-
type IFCurrentPageConfig = {
|
|
236
|
-
currentPage: number;
|
|
237
|
-
oldPage: number;
|
|
238
|
-
};
|
|
239
253
|
type IFRef = {
|
|
240
254
|
refeshFocusRow: any;
|
|
241
255
|
};
|
|
242
|
-
type IHeaderColumnTable = {
|
|
243
|
-
field: string;
|
|
244
|
-
headerText?: string;
|
|
245
|
-
width?: number | string;
|
|
246
|
-
minWidth?: number | string;
|
|
247
|
-
maxWidth?: number | string;
|
|
248
|
-
visible?: boolean;
|
|
249
|
-
rowspan?: number;
|
|
250
|
-
columns?: IColumnTable[];
|
|
251
|
-
textAlign?: ITextAlign;
|
|
252
|
-
fixedType?: 'left' | 'right' | undefined;
|
|
253
|
-
index?: number;
|
|
254
|
-
};
|
|
255
256
|
declare const TableEdit: React.ForwardRefExoticComponent<IFTableEditProps & React.RefAttributes<IFRef>>;
|
|
256
257
|
|
|
257
258
|
declare const messageHtmlBoxConfirm: (t: TFunction<"translation", undefined>, message: any[], handle: any, data: any, title?: string, btnOk?: string, btnCancel?: string) => void;
|
|
@@ -437,4 +438,4 @@ interface IFPropsDetail {
|
|
|
437
438
|
}
|
|
438
439
|
declare const ImportExcelComponent: (props: IFPropsDetail) => react_jsx_runtime.JSX.Element;
|
|
439
440
|
|
|
440
|
-
export { ExportExcelComponent, FindNodeByPath, type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFColumnSelectTableTree, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFPropsDetail, type IFTableEditButton, type IFTableEditFormat, type IFTableEditPaging, type
|
|
441
|
+
export { ExportExcelComponent, FindNodeByPath, type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFColumnSelectTableTree, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFPropsDetail, type IFTableEditButton, type IFTableEditFormat, type IFTableEditPaging, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFTableSelectFormat, type IFTableTreeSelectFormat, type IFToolbarOptions, type IHeaderColumnTable, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TabsMenuComponent, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, roundNumber, useOnClickOutside };
|