react-table-edit 1.5.28 → 1.5.29

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,6 +4,8 @@ export interface IFPropsDetail {
4
4
  setColumn: any;
5
5
  openSidebar: boolean;
6
6
  handleSidebar: any;
7
+ resetDefaultColumns?: () => void;
8
+ formatSetting?: any;
7
9
  }
8
10
  declare const SidebarSetColumn: (props: IFPropsDetail) => import("react/jsx-runtime").JSX.Element;
9
11
  export default SidebarSetColumn;
@@ -0,0 +1,6 @@
1
+ import { IColumnTable } from '../type';
2
+ type IFProps = {
3
+ contentColumns: IColumnTable[];
4
+ };
5
+ export declare const RenderColGroup: ({ contentColumns }: IFProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -24,10 +24,6 @@ type IFDataProps = {
24
24
  container: any;
25
25
  optionsFilter: any;
26
26
  formatSetting?: IFTableEditFormat;
27
- groupSetting?: {
28
- visibleGroupColumn?: boolean;
29
- groupColumns: string[];
30
- };
31
27
  setColumns?: (columns: IHeaderColumnTable[]) => void;
32
28
  changeFilter: (data: IFFilterTable[]) => void;
33
29
  setContentColumns: (col: any[]) => void;
@@ -16,10 +16,6 @@ type IContentColProps = {
16
16
  isMulti?: boolean;
17
17
  fieldKey: string;
18
18
  zeroVisiable?: boolean;
19
- groupSetting?: {
20
- visibleGroupColumn?: boolean;
21
- groupColumns: string[];
22
- };
23
19
  setSelectedRows: (value: any[]) => void;
24
20
  };
25
21
  export declare const RenderContentCol: (props: IContentColProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import 'react-resizable/css/styles.css';
3
- import { IColumnTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from '../type';
3
+ import { IColumnTable, IFFilterTable, IFOrderTable, IFTableEditFormat } from "../type";
4
4
  type IFDataProps = {
5
5
  idTable: string;
6
6
  selectEnable: boolean;
@@ -12,7 +12,7 @@ export interface KeyHandlerParams {
12
12
  pagingClient?: boolean;
13
13
  totalCount: number;
14
14
  columnLastEdit: number;
15
- addMoveNewCell: () => void;
15
+ moveIndexRowToNewPage: () => void;
16
16
  editDisable?: boolean;
17
17
  addDisable?: boolean;
18
18
  handleDuplicate: () => void;
@@ -22,10 +22,10 @@ export interface KeyHandlerParams {
22
22
  getNewParents: (parent: string, index: number) => string;
23
23
  fieldChildren?: string;
24
24
  }
25
- export declare const handleArrowRight: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
26
- export declare const handleArrowLeft: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
27
- export declare const handleArrowUp: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
28
- export declare const handleArrowDown: (e: KeyboardEvent<any>, params: KeyHandlerParams) => "" | undefined;
29
- export declare const handleTab: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
30
- export declare const handleEnter: (e: KeyboardEvent<any>, params: KeyHandlerParams) => "" | undefined;
31
- export declare const handleCtrlD: (e: KeyboardEvent<any>, params: KeyHandlerParams) => void;
25
+ export declare const handleArrowRight: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
26
+ export declare const handleArrowLeft: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
27
+ export declare const handleArrowUp: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
28
+ export declare const handleArrowDown: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
29
+ export declare const handleTab: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
30
+ export declare const handleEnter: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
31
+ export declare const handleCtrlD: (e: KeyboardEvent<any>, params: KeyHandlerParams) => string | undefined;
@@ -182,6 +182,8 @@ export type IColumnTable = {
182
182
  editEnable?: boolean;
183
183
  /** Có hiển thị không */
184
184
  visible?: boolean;
185
+ /** Có nhóm không */
186
+ isGroup?: boolean;
185
187
  /** Có cho cho phép điều chỉnh hiển thị không */
186
188
  visibleLocked?: boolean;
187
189
  /** Kiểu chỉnh sửa */
@@ -329,6 +331,7 @@ export type IHeaderColumnTable = {
329
331
  width?: number | string;
330
332
  /** Hiển thị/ẩn */
331
333
  visible?: boolean;
334
+ isGroup?: boolean;
332
335
  /** Số dòng chiếm (rowspan) */
333
336
  rowspan?: number;
334
337
  /** Cột con */
@@ -38,7 +38,7 @@ export declare const FindNodeByPath: (tree: any[], path: string) => {
38
38
  * fisrtObjWidthFixRight: number // Chỉ số cột đầu tiên fixed right
39
39
  * }
40
40
  */
41
- export declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[]) => {
41
+ export declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[], groupColumns?: string[]) => {
42
42
  levels: any[][];
43
43
  flat: any[];
44
44
  flatVisbleContent: any[];
package/dist/index.d.ts CHANGED
@@ -186,6 +186,8 @@ type IColumnTable = {
186
186
  editEnable?: boolean;
187
187
  /** Có hiển thị không */
188
188
  visible?: boolean;
189
+ /** Có nhóm không */
190
+ isGroup?: boolean;
189
191
  /** Có cho cho phép điều chỉnh hiển thị không */
190
192
  visibleLocked?: boolean;
191
193
  /** Kiểu chỉnh sửa */
@@ -333,6 +335,7 @@ type IHeaderColumnTable = {
333
335
  width?: number | string;
334
336
  /** Hiển thị/ẩn */
335
337
  visible?: boolean;
338
+ isGroup?: boolean;
336
339
  /** Số dòng chiếm (rowspan) */
337
340
  rowspan?: number;
338
341
  /** Cột con */
@@ -783,7 +786,7 @@ declare const FindNodeByPath: (tree: any[], path: string) => {
783
786
  * fisrtObjWidthFixRight: number // Chỉ số cột đầu tiên fixed right
784
787
  * }
785
788
  */
786
- declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[]) => {
789
+ declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[], groupColumns?: string[]) => {
787
790
  levels: any[][];
788
791
  flat: any[];
789
792
  flatVisbleContent: any[];