react-table-edit 1.5.28 → 1.5.30

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;
@@ -162,8 +162,6 @@ export type IColumnTable = {
162
162
  headerText?: string;
163
163
  /** Tiêu đề hiển thị trên giao diện */
164
164
  headerDisplay?: string;
165
- /** Tiêu đề hiển thị trên giao diện nhóm*/
166
- columnGroupText?: string;
167
165
  /** Khóa chính */
168
166
  isPrimarykey?: boolean;
169
167
  /** Duy nhất trong bảng */
@@ -182,6 +180,8 @@ export type IColumnTable = {
182
180
  editEnable?: boolean;
183
181
  /** Có hiển thị không */
184
182
  visible?: boolean;
183
+ /** Có nhóm không */
184
+ isGroup?: boolean;
185
185
  /** Có cho cho phép điều chỉnh hiển thị không */
186
186
  visibleLocked?: boolean;
187
187
  /** Kiểu chỉnh sửa */
@@ -329,6 +329,7 @@ export type IHeaderColumnTable = {
329
329
  width?: number | string;
330
330
  /** Hiển thị/ẩn */
331
331
  visible?: boolean;
332
+ isGroup?: boolean;
332
333
  /** Số dòng chiếm (rowspan) */
333
334
  rowspan?: number;
334
335
  /** 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
@@ -166,8 +166,6 @@ type IColumnTable = {
166
166
  headerText?: string;
167
167
  /** Tiêu đề hiển thị trên giao diện */
168
168
  headerDisplay?: string;
169
- /** Tiêu đề hiển thị trên giao diện nhóm*/
170
- columnGroupText?: string;
171
169
  /** Khóa chính */
172
170
  isPrimarykey?: boolean;
173
171
  /** Duy nhất trong bảng */
@@ -186,6 +184,8 @@ type IColumnTable = {
186
184
  editEnable?: boolean;
187
185
  /** Có hiển thị không */
188
186
  visible?: boolean;
187
+ /** Có nhóm không */
188
+ isGroup?: boolean;
189
189
  /** Có cho cho phép điều chỉnh hiển thị không */
190
190
  visibleLocked?: boolean;
191
191
  /** Kiểu chỉnh sửa */
@@ -333,6 +333,7 @@ type IHeaderColumnTable = {
333
333
  width?: number | string;
334
334
  /** Hiển thị/ẩn */
335
335
  visible?: boolean;
336
+ isGroup?: boolean;
336
337
  /** Số dòng chiếm (rowspan) */
337
338
  rowspan?: number;
338
339
  /** Cột con */
@@ -783,7 +784,7 @@ declare const FindNodeByPath: (tree: any[], path: string) => {
783
784
  * fisrtObjWidthFixRight: number // Chỉ số cột đầu tiên fixed right
784
785
  * }
785
786
  */
786
- declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[]) => {
787
+ declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[], groupColumns?: string[]) => {
787
788
  levels: any[][];
788
789
  flat: any[];
789
790
  flatVisbleContent: any[];