react-table-edit 0.9.7 → 0.9.9

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, Dispatch, SetStateAction } from 'react';
2
+ import react__default, { 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
 
@@ -16,7 +16,7 @@ type IFColumnSelectTable = {
16
16
  maxWidth?: number;
17
17
  minWidth?: number;
18
18
  };
19
- type Props = {
19
+ type Props$1 = {
20
20
  id?: string;
21
21
  component?: any;
22
22
  footerComponent?: any;
@@ -46,7 +46,7 @@ type Props = {
46
46
  showFooter?: boolean;
47
47
  onPaste?: any;
48
48
  };
49
- declare const SelectTable: react.ForwardRefExoticComponent<Props & react.RefAttributes<unknown>>;
49
+ declare const SelectTable: react__default.ForwardRefExoticComponent<Props$1 & react__default.RefAttributes<unknown>>;
50
50
 
51
51
  type ITextAlign = 'center' | 'left' | 'right';
52
52
  type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
@@ -74,10 +74,15 @@ type ISettingSelectElement = {
74
74
  isClearable?: boolean;
75
75
  isMulti?: boolean;
76
76
  noHeader?: boolean;
77
+ showFooter?: boolean;
78
+ footerComponent?: any;
79
+ formatOptionLabel?: any;
80
+ selectChilds?: boolean;
77
81
  loadOptions?: any;
78
82
  defaultValue?: any;
79
83
  fieldValue?: string;
80
84
  fieldLabel?: string;
85
+ fieldChild?: string;
81
86
  options?: any[];
82
87
  widthPopup?: string | number;
83
88
  heightPopup?: string | number;
@@ -258,6 +263,53 @@ type IFDataProps = {
258
263
  };
259
264
  declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
260
265
 
266
+ type IFColumnSelectTableTree = {
267
+ field: string;
268
+ headerText: string;
269
+ visible?: boolean;
270
+ textAlign?: 'left' | 'right' | 'center';
271
+ type?: 'text' | 'numeric' | 'date' | 'datetime';
272
+ template?: any;
273
+ typeCondition?: any;
274
+ fraction?: number;
275
+ width?: number;
276
+ maxWidth?: number;
277
+ minWidth?: number;
278
+ };
279
+ type Props = {
280
+ id?: string;
281
+ component?: any;
282
+ footerComponent?: any;
283
+ fieldValue?: string;
284
+ fieldLabel?: string;
285
+ onChange: any;
286
+ textAlign?: 'left' | 'right' | 'center';
287
+ placeholder?: string;
288
+ invalid?: any;
289
+ loadOptions?: any;
290
+ menuWidth?: number;
291
+ width?: number;
292
+ rowData?: any;
293
+ value: any;
294
+ onKeyDown?: any;
295
+ formatOptionLabel?: any;
296
+ handleAdd?: any;
297
+ options: any[];
298
+ isMulti?: boolean;
299
+ noHeader?: boolean;
300
+ maxHeight?: number;
301
+ columns?: IFColumnSelectTableTree[];
302
+ decimalSeparator?: string;
303
+ fieldChildren?: string;
304
+ thousandSeparator?: string;
305
+ isClearable?: boolean;
306
+ isDisabled?: boolean;
307
+ showFooter?: boolean;
308
+ selectChilds?: boolean;
309
+ onPaste?: any;
310
+ };
311
+ declare const SelectTableTree: react__default.ForwardRefExoticComponent<Props & react__default.RefAttributes<unknown>>;
312
+
261
313
  interface IFDataStyleSetting {
262
314
  color: string;
263
315
  backgroundColor: string;
@@ -281,4 +333,4 @@ interface IFDataInputStyle {
281
333
  }
282
334
  declare const InputStyleComponent: (props: IFDataInputStyle) => react_jsx_runtime.JSX.Element;
283
335
 
284
- 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 IHeaderColumnTable, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, InputStyleComponent, SelectTable, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
336
+ export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFColumnSelectTableTree, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type IHeaderColumnTable, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, InputStyleComponent, SelectTable, SelectTableTree, 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
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, Dispatch, SetStateAction } from 'react';
2
+ import react__default, { 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
 
@@ -16,7 +16,7 @@ type IFColumnSelectTable = {
16
16
  maxWidth?: number;
17
17
  minWidth?: number;
18
18
  };
19
- type Props = {
19
+ type Props$1 = {
20
20
  id?: string;
21
21
  component?: any;
22
22
  footerComponent?: any;
@@ -46,7 +46,7 @@ type Props = {
46
46
  showFooter?: boolean;
47
47
  onPaste?: any;
48
48
  };
49
- declare const SelectTable: react.ForwardRefExoticComponent<Props & react.RefAttributes<unknown>>;
49
+ declare const SelectTable: react__default.ForwardRefExoticComponent<Props$1 & react__default.RefAttributes<unknown>>;
50
50
 
51
51
  type ITextAlign = 'center' | 'left' | 'right';
52
52
  type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
@@ -74,10 +74,15 @@ type ISettingSelectElement = {
74
74
  isClearable?: boolean;
75
75
  isMulti?: boolean;
76
76
  noHeader?: boolean;
77
+ showFooter?: boolean;
78
+ footerComponent?: any;
79
+ formatOptionLabel?: any;
80
+ selectChilds?: boolean;
77
81
  loadOptions?: any;
78
82
  defaultValue?: any;
79
83
  fieldValue?: string;
80
84
  fieldLabel?: string;
85
+ fieldChild?: string;
81
86
  options?: any[];
82
87
  widthPopup?: string | number;
83
88
  heightPopup?: string | number;
@@ -258,6 +263,53 @@ type IFDataProps = {
258
263
  };
259
264
  declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
260
265
 
266
+ type IFColumnSelectTableTree = {
267
+ field: string;
268
+ headerText: string;
269
+ visible?: boolean;
270
+ textAlign?: 'left' | 'right' | 'center';
271
+ type?: 'text' | 'numeric' | 'date' | 'datetime';
272
+ template?: any;
273
+ typeCondition?: any;
274
+ fraction?: number;
275
+ width?: number;
276
+ maxWidth?: number;
277
+ minWidth?: number;
278
+ };
279
+ type Props = {
280
+ id?: string;
281
+ component?: any;
282
+ footerComponent?: any;
283
+ fieldValue?: string;
284
+ fieldLabel?: string;
285
+ onChange: any;
286
+ textAlign?: 'left' | 'right' | 'center';
287
+ placeholder?: string;
288
+ invalid?: any;
289
+ loadOptions?: any;
290
+ menuWidth?: number;
291
+ width?: number;
292
+ rowData?: any;
293
+ value: any;
294
+ onKeyDown?: any;
295
+ formatOptionLabel?: any;
296
+ handleAdd?: any;
297
+ options: any[];
298
+ isMulti?: boolean;
299
+ noHeader?: boolean;
300
+ maxHeight?: number;
301
+ columns?: IFColumnSelectTableTree[];
302
+ decimalSeparator?: string;
303
+ fieldChildren?: string;
304
+ thousandSeparator?: string;
305
+ isClearable?: boolean;
306
+ isDisabled?: boolean;
307
+ showFooter?: boolean;
308
+ selectChilds?: boolean;
309
+ onPaste?: any;
310
+ };
311
+ declare const SelectTableTree: react__default.ForwardRefExoticComponent<Props & react__default.RefAttributes<unknown>>;
312
+
261
313
  interface IFDataStyleSetting {
262
314
  color: string;
263
315
  backgroundColor: string;
@@ -281,4 +333,4 @@ interface IFDataInputStyle {
281
333
  }
282
334
  declare const InputStyleComponent: (props: IFDataInputStyle) => react_jsx_runtime.JSX.Element;
283
335
 
284
- 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 IHeaderColumnTable, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, InputStyleComponent, SelectTable, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
336
+ export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFColumnSelectTableTree, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type IHeaderColumnTable, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, InputStyleComponent, SelectTable, SelectTableTree, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };