react-table-edit 1.4.31 → 1.4.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
- "version": "1.4.31",
3
+ "version": "1.4.33",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -1,24 +0,0 @@
1
- export interface IFDataExcel {
2
- step: number;
3
- file?: any;
4
- sheetId?: string;
5
- headerRow?: number;
6
- dataMap: IFDataMapExcel[];
7
- }
8
- export interface IFDataMapExcel {
9
- field: string;
10
- headerDefault: string[];
11
- header: string;
12
- dataType: 'numeric' | 'string' | 'date' | 'datetime' | 'boolean';
13
- column?: string;
14
- disableEdit?: boolean;
15
- isRequired?: boolean;
16
- }
17
- export type IFNumberFormat = {
18
- dateFormat?: string;
19
- decimalSeparator?: string;
20
- thousandSeparator?: string;
21
- colorNegative?: string;
22
- prefixNegative?: string;
23
- suffixNegative?: string;
24
- };
@@ -1,10 +0,0 @@
1
- type IFDataProps = {
2
- onChangePage?: any;
3
- onChangePageSize?: any;
4
- pageOptions: number[];
5
- currentPage: number;
6
- pageSize: number;
7
- totalItem: number;
8
- };
9
- declare const PagingComponent: ({ totalItem, pageSize, currentPage, onChangePage, pageOptions, onChangePageSize }: IFDataProps) => import("react/jsx-runtime").JSX.Element;
10
- export { PagingComponent };
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { IColumnTable, IFTableEditToolbar } from '.';
3
- interface RenderEditProps {
4
- row: any;
5
- col: IColumnTable;
6
- indexRow: number;
7
- indexCol: number;
8
- idTable: string;
9
- toolbarSetting?: IFTableEditToolbar;
10
- pasteDataFromExcel: any;
11
- editDisable?: boolean;
12
- addDisable?: boolean;
13
- thousandSeparator: string;
14
- decimalSeparator: string;
15
- tableElement: any;
16
- checkKeyDown: any;
17
- handleDataChange: (row: any, col: IColumnTable, indexRow: number) => void;
18
- }
19
- export declare const RenderEdit: React.NamedExoticComponent<RenderEditProps>;
20
- export {};
@@ -1,158 +0,0 @@
1
- import { Dispatch, ReactNode, SetStateAction } from "react";
2
- import { IFColumnSelectTable } from "../select-table";
3
- type ITextAlign = 'center' | 'left' | 'right';
4
- type IEditType = 'text' | 'numeric' | 'datetime' | 'selectTree' | 'date' | 'select' | 'checkbox' | 'form' | 'color';
5
- export type ICommandItem = {
6
- id: string;
7
- color?: string;
8
- tooltip?: string;
9
- icon?: string;
10
- commandTemplate?: ReactNode;
11
- };
12
- export type ISettingFormElement = {
13
- schema: any;
14
- labelSize?: 'label-small' | 'label-medium' | 'label-large';
15
- menuWidth?: number;
16
- menuHeight?: number;
17
- onFormOpen?: any;
18
- onFormSubmit?: any;
19
- displayValue?: any;
20
- footerTemplate?: any;
21
- onChangeField?: any;
22
- openOnFocus?: boolean;
23
- isClearable?: boolean;
24
- };
25
- export type ISettingSelectElement = {
26
- isClearable?: boolean;
27
- isMulti?: boolean;
28
- loadOptions?: any;
29
- defaultValue?: any;
30
- fieldValue?: string;
31
- fieldLabel?: string;
32
- options?: any[];
33
- widthPopup?: string | number;
34
- heightPopup?: string | number;
35
- iconGroup?: string;
36
- handAddNew?: any;
37
- validateOption?: any;
38
- optionsField?: string;
39
- columns?: IFColumnSelectTable[];
40
- };
41
- export type ISettingNumericElement = {
42
- min?: number;
43
- max?: number;
44
- fraction?: number;
45
- };
46
- export type IColumnTable = {
47
- field: string;
48
- headerText?: string;
49
- isPrimarykey?: boolean;
50
- isUnikey?: boolean;
51
- haveSum?: boolean;
52
- haveToolTip?: boolean;
53
- validate?: any;
54
- disabledCondition?: any;
55
- callback?: any;
56
- width?: string | number;
57
- minWidth?: string | number;
58
- maxWidth?: string | number;
59
- editEnable?: boolean;
60
- visible?: boolean;
61
- invisibleDisable?: boolean;
62
- editType?: IEditType;
63
- textAlign?: ITextAlign;
64
- fixedType?: 'left' | 'right' | undefined;
65
- template?: any;
66
- commandItems?: ICommandItem[];
67
- editTypeCondition?: any;
68
- onPaste?: any;
69
- onPasteValidate?: any;
70
- placeholder?: string;
71
- numericSettings?: ISettingNumericElement;
72
- selectSettings?: ISettingSelectElement;
73
- formSettings?: ISettingFormElement;
74
- columns?: IColumnTable[];
75
- };
76
- export type IFToolbarOptions = {
77
- align: 'left' | 'right' | 'center';
78
- template: any;
79
- };
80
- export type IFTableEditPaging = {
81
- allowPaging?: boolean;
82
- pagingClient?: boolean;
83
- currentPage?: number;
84
- setCurrentPage?: Dispatch<SetStateAction<number>>;
85
- setPageSize?: Dispatch<SetStateAction<number>>;
86
- pageSize?: number;
87
- totalItem?: number;
88
- };
89
- export type IFTableEditButton = {
90
- deleteAllDisable?: boolean;
91
- insertAfterDisable?: boolean;
92
- insertBeforeDisable?: boolean;
93
- duplicateDisable?: boolean;
94
- };
95
- export type IFTableEditToolbar = {
96
- showTopToolbar?: boolean;
97
- toolbarOptions?: IFToolbarOptions[];
98
- toolbarBottomOptions?: IFToolbarOptions[];
99
- showBottomToolbar?: boolean;
100
- };
101
- export type IFTableEditSearchSetting = {
102
- searchEnable?: boolean;
103
- searchClient?: boolean;
104
- searchTerm?: string;
105
- keyField?: string[];
106
- setSearchTerm?: Dispatch<SetStateAction<string>>;
107
- };
108
- export type IFTableEditProps = {
109
- idTable?: string;
110
- dataSource: any[];
111
- selectEnable?: boolean;
112
- defaultValue?: any;
113
- columns: IColumnTable[];
114
- setDataSource?: any;
115
- commandClick?: any;
116
- rowChange?: any;
117
- handleSelect?: any;
118
- dataSourceChange?: any;
119
- height?: number;
120
- maxHeight?: number;
121
- minHeight?: number;
122
- selectedItem?: any;
123
- setSelectedItem?: Dispatch<SetStateAction<any>>;
124
- isMulti?: boolean;
125
- haveSum?: boolean;
126
- editDisable?: boolean;
127
- addDisable?: boolean;
128
- decimalSeparator?: string;
129
- thousandSeparator?: string;
130
- pagingSetting?: IFTableEditPaging;
131
- buttonSetting?: IFTableEditButton;
132
- toolbarSetting?: IFTableEditToolbar;
133
- searchSetting?: IFTableEditSearchSetting;
134
- };
135
- export type IFPageSize = {
136
- pageSize: number;
137
- };
138
- export type IFCurrentPage = {
139
- currentPage: number;
140
- };
141
- export type IFCurrentPageConfig = {
142
- currentPage: number;
143
- oldPage: number;
144
- };
145
- export type IHeaderColumnTable = {
146
- field: string;
147
- headerText?: string;
148
- width?: string | number;
149
- minWidth?: string | number;
150
- maxWidth?: string | number;
151
- visible?: boolean;
152
- rowspan?: number;
153
- columns?: IColumnTable[];
154
- textAlign?: ITextAlign;
155
- fixedType?: 'left' | 'right' | undefined;
156
- index?: number;
157
- };
158
- export {};
@@ -1,12 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { ICommandItem } from '../table';
3
- type IFDataProps = {
4
- commandItems: ICommandItem[];
5
- rowData: any;
6
- indexRow: number;
7
- indexFocus?: number;
8
- setIndexFocus: Dispatch<SetStateAction<number | undefined>>;
9
- handleCommandClick: any;
10
- };
11
- declare const CommandElement: (props: IFDataProps) => import("react/jsx-runtime").JSX.Element;
12
- export default CommandElement;
@@ -1,22 +0,0 @@
1
- import { IColumnVirtualizedTable, IFTableEditFormat } from "../type";
2
- type IContentColProps = {
3
- col: IColumnVirtualizedTable;
4
- row: any;
5
- indexRow: number;
6
- indexCol: number;
7
- isSelected: boolean;
8
- formatSetting?: IFTableEditFormat;
9
- idTable: string;
10
- selectedRows: any[];
11
- objWidthFixLeft: any;
12
- objWidthFixRight: any;
13
- lastObjWidthFixLeft: number;
14
- fisrtObjWidthFixRight: number;
15
- selectEnable?: boolean;
16
- isMulti?: boolean;
17
- fieldKey: string;
18
- setSelectedRows: (value: any[]) => void;
19
- handleCommandClick: (id: string, rowData: any, index: number) => void;
20
- };
21
- export declare const RenderContentCol: (props: IContentColProps) => false | import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,6 +0,0 @@
1
- import { IColumnVirtualizedTable } from "../type";
2
- type IFProps = {
3
- contentColumns: IColumnVirtualizedTable[];
4
- };
5
- export declare const RenderColGroup: ({ contentColumns }: IFProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,32 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { IColumnVirtualizedTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from "../type";
3
- import 'react-resizable/css/styles.css';
4
- type IFDataProps = {
5
- idTable: string;
6
- selectEnable: boolean;
7
- dataSource: any[];
8
- setSelectedRows: Dispatch<SetStateAction<any[]>>;
9
- col: IColumnVirtualizedTable;
10
- columns: IColumnVirtualizedTable[];
11
- setColumns?: (columns: IColumnVirtualizedTable[]) => void;
12
- changeFilter: (data: IFFilterTable[]) => void;
13
- changeOrder: (data: IFOrderTable[]) => void;
14
- indexCol: number;
15
- indexParent: number;
16
- objWidthFixLeft: any;
17
- objWidthFixRight: any;
18
- totalCount: number;
19
- lastObjWidthFixLeft: number;
20
- fisrtObjWidthFixRight: number;
21
- selectedRows: any[];
22
- isMulti: boolean;
23
- allowFilter?: boolean;
24
- allowOrder?: boolean;
25
- filterBy: IFFilterTable[];
26
- orderBy: IFOrderTable[];
27
- container: any;
28
- optionsFilter: any;
29
- formatSetting?: IFTableEditFormat;
30
- };
31
- declare const HeaderTableCol: (props: IFDataProps) => import("react/jsx-runtime").JSX.Element;
32
- export default HeaderTableCol;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { IColumnsVirtualizedAgg, IColumnVirtualizedTable, IFFilterTable, IFOrderTable, IFTableEditFormat, IFTableEditPaging, IFTableEditSearchSetting, IFTableEditToolbar } from '../type';
3
- type VirtualTableProps = {
4
- idTable: string;
5
- dataSource: any[];
6
- rowHeight?: number;
7
- height?: number;
8
- columns: IColumnVirtualizedTable[];
9
- selectEnable?: boolean;
10
- isMutil?: boolean;
11
- isLoading?: boolean;
12
- formatSetting?: IFTableEditFormat;
13
- allowFilter?: boolean;
14
- allowOrder?: boolean;
15
- optionsFilter?: any;
16
- pagingSetting?: IFTableEditPaging;
17
- toolbarSetting?: IFTableEditToolbar;
18
- searchSetting?: IFTableEditSearchSetting;
19
- columnsAggregate?: IColumnsVirtualizedAgg[];
20
- setColumns?: (columns: IColumnVirtualizedTable[]) => void;
21
- commandClick?: (data: any) => void;
22
- changeFilter?: (data: IFFilterTable[]) => void;
23
- changeOrder?: (data: IFOrderTable[]) => void;
24
- };
25
- declare const VirtualTable: React.FC<VirtualTableProps>;
26
- export { VirtualTable };
@@ -1,4 +0,0 @@
1
- export declare const SkeletonRow: ({ columns, rowHeight }: {
2
- columns: number;
3
- rowHeight: number;
4
- }) => import("react/jsx-runtime").JSX.Element;