react-table-edit 1.5.42 → 1.5.44

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.
@@ -4,8 +4,6 @@ export interface IFPropsDetail {
4
4
  setColumn: any;
5
5
  openSidebar: boolean;
6
6
  handleSidebar: any;
7
- resetDefaultColumns?: () => void;
8
- formatSetting?: any;
9
7
  }
10
8
  declare const SidebarSetColumn: (props: IFPropsDetail) => import("react/jsx-runtime").JSX.Element;
11
9
  export default SidebarSetColumn;
@@ -18,5 +18,5 @@ interface ToolbarBottomProps {
18
18
  toolbarSetting?: IFTableEditToolbar;
19
19
  headerColumns: any[][];
20
20
  }
21
- declare const ToolbarBottom: ({ handleAdd, handleDuplicate, handleInsertBefore, handleInsertAfter, handleDeleteAll, setOpenPopupSetupColumn, focusRow, editDisable, addDisable, buttonSetting, toolbarSetting }: ToolbarBottomProps) => import("react/jsx-runtime").JSX.Element;
21
+ declare const ToolbarBottom: ({ handleAdd, handleDuplicate, handleInsertBefore, handleInsertAfter, handleDeleteAll, setOpenPopupSetupColumn, focusRow, editDisable, addDisable, buttonSetting, toolbarSetting, }: ToolbarBottomProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export default ToolbarBottom;
@@ -19,6 +19,7 @@ type IContentColProps = {
19
19
  setSelectedRows: (value: any[]) => void;
20
20
  handleCloseContext: () => void;
21
21
  handleDoubleClick?: (row: any, col: IColumnTable) => void;
22
+ handleCellClick?: (row: any, col: IColumnTable) => void;
22
23
  };
23
24
  export declare const RenderContentCol: React.MemoExoticComponent<(props: IContentColProps) => import("react/jsx-runtime").JSX.Element>;
24
25
  export {};
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import 'react-resizable/css/styles.css';
3
2
  import { IColumnTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from "../type";
3
+ import 'react-resizable/css/styles.css';
4
4
  type IFDataProps = {
5
5
  idTable: string;
6
6
  selectEnable: boolean;
@@ -20,8 +20,8 @@ type IFDataProps = {
20
20
  fisrtObjWidthFixRight: number;
21
21
  selectedRows: any[];
22
22
  isMulti: boolean;
23
- allowFiltering?: boolean;
24
- allowSorting?: boolean;
23
+ allowFilter?: boolean;
24
+ allowOrder?: boolean;
25
25
  filterBy: IFFilterTable[];
26
26
  orderBy: IFOrderTable[];
27
27
  container: any;
@@ -39,6 +39,7 @@ type TableViewProps = {
39
39
  saveSettingColumn?: (data: IFSettingColumns[]) => void;
40
40
  setSelectedItem?: Dispatch<SetStateAction<any>>;
41
41
  handleDoubleClick?: (row: any, col: IColumnTable) => void;
42
+ handleCellClick?: (row: any, col: IColumnTable) => void;
42
43
  contextMenuItems?: IContextItem[];
43
44
  handleContextMenuClick?: (context: IContextItem, data: any) => void;
44
45
  isMulti?: boolean;
@@ -31,6 +31,7 @@ type ITableElementProps = {
31
31
  setSelectedRows: Dispatch<SetStateAction<any[]>>;
32
32
  setOrderBy: React.Dispatch<React.SetStateAction<IFOrderTable[]>>;
33
33
  handleDoubleClick?: (row: any, col: IColumnTable) => void;
34
+ handleCellClick?: (row: any, col: IColumnTable) => void;
34
35
  querySetting?: {
35
36
  client?: boolean;
36
37
  allowFiltering?: boolean;
package/dist/index.d.ts CHANGED
@@ -757,6 +757,7 @@ type TableViewProps = {
757
757
  saveSettingColumn?: (data: IFSettingColumns[]) => void;
758
758
  setSelectedItem?: Dispatch<SetStateAction<any>>;
759
759
  handleDoubleClick?: (row: any, col: IColumnTable) => void;
760
+ handleCellClick?: (row: any, col: IColumnTable) => void;
760
761
  contextMenuItems?: IContextItem[];
761
762
  handleContextMenuClick?: (context: IContextItem, data: any) => void;
762
763
  isMulti?: boolean;