react-table-edit 1.5.11 → 1.5.13
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/icon/ExpandAll.d.ts +10 -0
- package/dist/component/icon/GroupIcon.d.ts +10 -0
- package/dist/component/icon/UnExpandAll.d.ts +10 -0
- package/dist/component/table/data-table.d.ts +3 -3
- package/dist/component/table/header.d.ts +1 -1
- package/dist/component/table/toolbar-top.d.ts +2 -4
- package/dist/component/table-view/content.d.ts +1 -1
- package/dist/component/table-view/index.d.ts +1 -1
- package/dist/component/type/index.d.ts +0 -1
- package/dist/component/utils.d.ts +3 -3
- package/dist/index.d.ts +3 -4
- package/dist/index.js +592 -547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +592 -547
- package/dist/index.mjs.map +1 -1
- package/dist/styles/date-picker.css +2 -2
- package/dist/styles/index.css +42 -2
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ExpandAllProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const ExpandAllIcon: React.FC<ExpandAllProps>;
|
|
10
|
+
export default ExpandAllIcon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface UnExpandAllProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const UnExpandAllIcon: React.FC<UnExpandAllProps>;
|
|
10
|
+
export default UnExpandAllIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { Dispatch, MutableRefObject, SetStateAction } from
|
|
2
|
-
import { ICellInfo, IColumnTable, IFFilterTable, IFOrderTable, IFTableEditButton, IFTableEditFormat, IFTableEditToolbar, IHeaderColumnTable } from
|
|
1
|
+
import React, { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
+
import { ICellInfo, IColumnTable, IFFilterTable, IFOrderTable, IFTableEditButton, IFTableEditFormat, IFTableEditToolbar, IHeaderColumnTable } from '../type';
|
|
3
3
|
interface TableComponentProps {
|
|
4
4
|
idTable?: string;
|
|
5
5
|
dataSource: any[];
|
|
@@ -56,7 +56,7 @@ interface TableComponentProps {
|
|
|
56
56
|
handleCommandClick: (id: string, rowData: any, index: number) => void;
|
|
57
57
|
handleDuplicate: () => void;
|
|
58
58
|
handleKeyDown: (e: React.KeyboardEvent<HTMLDivElement>, row: any) => void;
|
|
59
|
-
onDuplicate?: (
|
|
59
|
+
onDuplicate?: (newData: any, index: number) => void;
|
|
60
60
|
setSelectedCell: Dispatch<SetStateAction<{
|
|
61
61
|
minRow: number;
|
|
62
62
|
maxRow: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import 'react-resizable/css/styles.css';
|
|
3
|
-
import { IFFilterTable, IFOrderTable, IFTableEditFormat, IHeaderColumnTable } from
|
|
3
|
+
import { IFFilterTable, IFOrderTable, IFTableEditFormat, IHeaderColumnTable } from '../type';
|
|
4
4
|
type IFDataProps = {
|
|
5
5
|
idTable: string;
|
|
6
6
|
selectEnable: boolean;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IFToolbarOptions } from "../type";
|
|
1
|
+
import { IFToolbarOptions } from '../type';
|
|
3
2
|
type IFDataProps = {
|
|
4
3
|
toolbarTopOption?: IFToolbarOptions[];
|
|
5
|
-
setOpenPopupSetupColumn: Dispatch<SetStateAction<boolean>>;
|
|
6
4
|
};
|
|
7
|
-
declare const RenderToolbarTop: ({ toolbarTopOption
|
|
5
|
+
declare const RenderToolbarTop: ({ toolbarTopOption }: IFDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
6
|
export default RenderToolbarTop;
|
|
@@ -37,7 +37,7 @@ type TableViewProps = {
|
|
|
37
37
|
resetDefaultColumns?: () => void;
|
|
38
38
|
saveSettingColumn?: (data: IFSettingColumns[]) => void;
|
|
39
39
|
setSelectedItem?: Dispatch<SetStateAction<any>>;
|
|
40
|
-
|
|
40
|
+
isMulti?: boolean;
|
|
41
41
|
handleSelect?: (data: any) => void;
|
|
42
42
|
};
|
|
43
43
|
declare const TableView: React.FC<TableViewProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFFilterTable, IFSettingColumns } from
|
|
1
|
+
import { IFFilterTable, IFSettingColumns } from './type';
|
|
2
2
|
export declare const useOnClickOutside: (ref: any, handler: any) => void;
|
|
3
3
|
export declare const checkThousandSeparator: (thousandSeparator: any, decimalSeparator: any) => any;
|
|
4
4
|
export declare const checkDecimalSeparator: (thousandSeparator: any, decimalSeparator: any) => any;
|
|
@@ -53,6 +53,6 @@ export declare const calculateTableStructure: (columns: any[], settingColumns?:
|
|
|
53
53
|
indexLastEdit: number;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
* Kiểm tra row có thỏa mãn tất cả filter và chứa từ khóa tìm kiếm hay không
|
|
57
|
-
*/
|
|
56
|
+
* Kiểm tra row có thỏa mãn tất cả filter và chứa từ khóa tìm kiếm hay không
|
|
57
|
+
*/
|
|
58
58
|
export declare const CheckRowMatch: (row: Record<string, any>, filters: IFFilterTable[], keyword: string, searchKeys: string[]) => boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ type ICommandItem = {
|
|
|
36
36
|
};
|
|
37
37
|
/** Cấu hình thanh công cụ (toolbar) */
|
|
38
38
|
type IFToolbarOptions = {
|
|
39
|
-
id?: string;
|
|
40
39
|
/** Vị trí hiển thị (trái, phải, giữa) */
|
|
41
40
|
align: 'left' | 'right' | 'center';
|
|
42
41
|
/** Template toolbar */
|
|
@@ -717,7 +716,7 @@ type TableViewProps = {
|
|
|
717
716
|
resetDefaultColumns?: () => void;
|
|
718
717
|
saveSettingColumn?: (data: IFSettingColumns[]) => void;
|
|
719
718
|
setSelectedItem?: Dispatch<SetStateAction<any>>;
|
|
720
|
-
|
|
719
|
+
isMulti?: boolean;
|
|
721
720
|
handleSelect?: (data: any) => void;
|
|
722
721
|
};
|
|
723
722
|
declare const TableView: React__default.FC<TableViewProps>;
|
|
@@ -776,8 +775,8 @@ declare const calculateTableStructure: (columns: any[], settingColumns?: IFSetti
|
|
|
776
775
|
indexLastEdit: number;
|
|
777
776
|
};
|
|
778
777
|
/**
|
|
779
|
-
* Kiểm tra row có thỏa mãn tất cả filter và chứa từ khóa tìm kiếm hay không
|
|
780
|
-
*/
|
|
778
|
+
* Kiểm tra row có thỏa mãn tất cả filter và chứa từ khóa tìm kiếm hay không
|
|
779
|
+
*/
|
|
781
780
|
declare const CheckRowMatch: (row: Record<string, any>, filters: IFFilterTable[], keyword: string, searchKeys: string[]) => boolean;
|
|
782
781
|
|
|
783
782
|
type IFSteps = {
|