react-table-edit 0.5.5 → 0.5.7
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 +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +758 -189
- package/dist/index.mjs +759 -182
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,22 @@ import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import { TFunction } from 'react-i18next';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
+
type IFColumnSelectTable = {
|
|
7
|
+
field: string;
|
|
8
|
+
headerText: string;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
11
|
+
type?: 'text' | 'numeric' | 'date' | 'datetime';
|
|
12
|
+
template?: any;
|
|
13
|
+
typeCondition?: any;
|
|
14
|
+
fraction?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
6
20
|
type ITextAlign = 'center' | 'left' | 'right';
|
|
7
|
-
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
|
|
21
|
+
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'selectTable' | 'checkbox' | 'form' | 'color';
|
|
8
22
|
type ICommandItem = {
|
|
9
23
|
id: string;
|
|
10
24
|
color?: string;
|
|
@@ -30,12 +44,15 @@ type ISettingSelectElement = {
|
|
|
30
44
|
loadOptions?: any;
|
|
31
45
|
defaultValue?: any;
|
|
32
46
|
fieldValue?: string;
|
|
47
|
+
fieldLabel?: string;
|
|
33
48
|
options?: any[];
|
|
34
49
|
widthPopup?: string | number;
|
|
50
|
+
heightPopup?: string | number;
|
|
35
51
|
iconGroup?: string;
|
|
36
|
-
|
|
52
|
+
handAddNew?: any;
|
|
37
53
|
validateOption?: any;
|
|
38
54
|
optionsField?: string;
|
|
55
|
+
columns?: IFColumnSelectTable[];
|
|
39
56
|
};
|
|
40
57
|
type ISettingNumericElement = {
|
|
41
58
|
min?: number;
|
|
@@ -193,4 +210,4 @@ type IFDataProps = {
|
|
|
193
210
|
};
|
|
194
211
|
declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
|
|
195
212
|
|
|
196
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
213
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,22 @@ import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import { TFunction } from 'react-i18next';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
+
type IFColumnSelectTable = {
|
|
7
|
+
field: string;
|
|
8
|
+
headerText: string;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
11
|
+
type?: 'text' | 'numeric' | 'date' | 'datetime';
|
|
12
|
+
template?: any;
|
|
13
|
+
typeCondition?: any;
|
|
14
|
+
fraction?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
6
20
|
type ITextAlign = 'center' | 'left' | 'right';
|
|
7
|
-
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
|
|
21
|
+
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'selectTable' | 'checkbox' | 'form' | 'color';
|
|
8
22
|
type ICommandItem = {
|
|
9
23
|
id: string;
|
|
10
24
|
color?: string;
|
|
@@ -30,12 +44,15 @@ type ISettingSelectElement = {
|
|
|
30
44
|
loadOptions?: any;
|
|
31
45
|
defaultValue?: any;
|
|
32
46
|
fieldValue?: string;
|
|
47
|
+
fieldLabel?: string;
|
|
33
48
|
options?: any[];
|
|
34
49
|
widthPopup?: string | number;
|
|
50
|
+
heightPopup?: string | number;
|
|
35
51
|
iconGroup?: string;
|
|
36
|
-
|
|
52
|
+
handAddNew?: any;
|
|
37
53
|
validateOption?: any;
|
|
38
54
|
optionsField?: string;
|
|
55
|
+
columns?: IFColumnSelectTable[];
|
|
39
56
|
};
|
|
40
57
|
type ISettingNumericElement = {
|
|
41
58
|
min?: number;
|
|
@@ -193,4 +210,4 @@ type IFDataProps = {
|
|
|
193
210
|
};
|
|
194
211
|
declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
|
|
195
212
|
|
|
196
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
213
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|