react-table-edit 1.3.2 → 1.3.4

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.
@@ -27,18 +27,15 @@ export type ISettingFormElement = {
27
27
  onFormSubmit?: (rowData: any, setValue: UseFormSetValue<any>, getValues: UseFormGetValues<any>, reset: UseFormReset<any>) => void;
28
28
  footerTemplate?: (rowData: any) => JSX.Element;
29
29
  onChangeField?: (rowData: any, field: string, setValue: UseFormSetValue<any>, getValues: UseFormGetValues<any>) => void;
30
- onChange: (rowData: any) => JSX.Element;
30
+ onChange?: (rowData: any) => void;
31
31
  };
32
32
  export type ISettingSelectElement = {
33
33
  isClearable?: boolean;
34
34
  isMulti?: boolean;
35
35
  noHeader?: boolean;
36
36
  showFooter?: boolean;
37
- footerComponent?: any;
38
- formatOptionLabel?: any;
39
37
  selectChilds?: boolean;
40
38
  allowCreate?: boolean;
41
- loadOptions?: any;
42
39
  defaultValue?: any;
43
40
  fieldValue?: string;
44
41
  fieldLabel?: string;
@@ -51,6 +48,9 @@ export type ISettingSelectElement = {
51
48
  validateOption?: any;
52
49
  optionsField?: string;
53
50
  columns?: IFColumnSelectTable[];
51
+ formatOptionLabel?: (ele: any) => JSX.Element;
52
+ footerComponent?: () => JSX.Element;
53
+ loadOptions?: (keyword: string, callback: (rs: any[]) => void) => void;
54
54
  onOpenMenu?: (row: any, col: IColumnTable, indexRow: number) => void;
55
55
  };
56
56
  export type ISettingNumericElement = {
package/dist/index.d.ts CHANGED
@@ -95,18 +95,15 @@ type ISettingFormElement = {
95
95
  onFormSubmit?: (rowData: any, setValue: UseFormSetValue<any>, getValues: UseFormGetValues<any>, reset: UseFormReset<any>) => void;
96
96
  footerTemplate?: (rowData: any) => JSX.Element;
97
97
  onChangeField?: (rowData: any, field: string, setValue: UseFormSetValue<any>, getValues: UseFormGetValues<any>) => void;
98
- onChange: (rowData: any) => JSX.Element;
98
+ onChange?: (rowData: any) => void;
99
99
  };
100
100
  type ISettingSelectElement = {
101
101
  isClearable?: boolean;
102
102
  isMulti?: boolean;
103
103
  noHeader?: boolean;
104
104
  showFooter?: boolean;
105
- footerComponent?: any;
106
- formatOptionLabel?: any;
107
105
  selectChilds?: boolean;
108
106
  allowCreate?: boolean;
109
- loadOptions?: any;
110
107
  defaultValue?: any;
111
108
  fieldValue?: string;
112
109
  fieldLabel?: string;
@@ -119,6 +116,9 @@ type ISettingSelectElement = {
119
116
  validateOption?: any;
120
117
  optionsField?: string;
121
118
  columns?: IFColumnSelectTable[];
119
+ formatOptionLabel?: (ele: any) => JSX.Element;
120
+ footerComponent?: () => JSX.Element;
121
+ loadOptions?: (keyword: string, callback: (rs: any[]) => void) => void;
122
122
  onOpenMenu?: (row: any, col: IColumnTable, indexRow: number) => void;
123
123
  };
124
124
  type ISettingNumericElement = {