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.
@@ -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 GroupIconProps {
3
+ color?: string;
4
+ className?: string;
5
+ size?: number;
6
+ onClick?: () => void;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const GroupIcon: React.FC<GroupIconProps>;
10
+ export default GroupIcon;
@@ -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 "react";
2
- import { ICellInfo, IColumnTable, IFFilterTable, IFOrderTable, IFTableEditButton, IFTableEditFormat, IFTableEditToolbar, IHeaderColumnTable } from "../type";
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?: ((newData: any, index: number) => void);
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 "../type";
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 { Dispatch, SetStateAction } from "react";
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, setOpenPopupSetupColumn }: IFDataProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const RenderToolbarTop: ({ toolbarTopOption }: IFDataProps) => import("react/jsx-runtime").JSX.Element;
8
6
  export default RenderToolbarTop;
@@ -1,4 +1,4 @@
1
- import { IColumnTable, IFTableEditFormat } from "../type";
1
+ import { IColumnTable, IFTableEditFormat } from '../type';
2
2
  type IContentColProps = {
3
3
  col: IColumnTable;
4
4
  row: any;
@@ -37,7 +37,7 @@ type TableViewProps = {
37
37
  resetDefaultColumns?: () => void;
38
38
  saveSettingColumn?: (data: IFSettingColumns[]) => void;
39
39
  setSelectedItem?: Dispatch<SetStateAction<any>>;
40
- setColumns?: (columns: IColumnTable[]) => void;
40
+ isMulti?: boolean;
41
41
  handleSelect?: (data: any) => void;
42
42
  };
43
43
  declare const TableView: React.FC<TableViewProps>;
@@ -32,7 +32,6 @@ export type ICommandItem = {
32
32
  };
33
33
  /** Cấu hình thanh công cụ (toolbar) */
34
34
  export type IFToolbarOptions = {
35
- id?: string;
36
35
  /** Vị trí hiển thị (trái, phải, giữa) */
37
36
  align: 'left' | 'right' | 'center';
38
37
  /** Template toolbar */
@@ -1,4 +1,4 @@
1
- import { IFFilterTable, IFSettingColumns } from "./type";
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
- setColumns?: (columns: IColumnTable[]) => void;
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 = {