react-table-edit 1.5.21 → 1.5.23

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.
@@ -5,7 +5,6 @@ interface TableComponentProps {
5
5
  dataSource: any[];
6
6
  contentColumns: IColumnTable[];
7
7
  headerColumns: IHeaderColumnTable[][];
8
- visibleColumns: IColumnTable[];
9
8
  selectedRows: any[];
10
9
  selectedCell?: {
11
10
  minRow: number;
@@ -0,0 +1,8 @@
1
+ import { IColumnTable } from '../type';
2
+ type IFProps = {
3
+ contentColumns: IColumnTable[];
4
+ groupColumns?: string[];
5
+ visibleGroupColumn?: boolean;
6
+ };
7
+ export declare const RenderColGroup: ({ contentColumns, groupColumns, visibleGroupColumn }: IFProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -24,6 +24,8 @@ type IFDataProps = {
24
24
  container: any;
25
25
  optionsFilter: any;
26
26
  formatSetting?: IFTableEditFormat;
27
+ groupColumns?: string[];
28
+ visibleGroupColumn?: boolean;
27
29
  setColumns?: (columns: IHeaderColumnTable[]) => void;
28
30
  changeFilter: (data: IFFilterTable[]) => void;
29
31
  setContentColumns: (col: any[]) => void;
@@ -1,4 +1,4 @@
1
- import { IColumnTable, IFSettingColumns } from "../type";
1
+ import { IColumnTable, IFSettingColumns } from '../type';
2
2
  export interface IFPropsDetail {
3
3
  gridRef: any;
4
4
  column: IColumnTable[];
@@ -16,6 +16,8 @@ type IContentColProps = {
16
16
  isMulti?: boolean;
17
17
  fieldKey: string;
18
18
  zeroVisiable?: boolean;
19
+ groupColumns?: string[];
20
+ visibleGroupColumn?: boolean;
19
21
  setSelectedRows: (value: any[]) => void;
20
22
  };
21
23
  export declare const RenderContentCol: (props: IContentColProps) => import("react/jsx-runtime").JSX.Element;
@@ -24,6 +24,7 @@ type TableViewProps = {
24
24
  zeroVisiable?: boolean;
25
25
  groupSetting?: {
26
26
  client?: boolean;
27
+ visibleGroupColumn?: boolean;
27
28
  groupColumns: string[];
28
29
  onGroup: (props: any) => void;
29
30
  };
@@ -151,6 +151,8 @@ export type IColumnTable = {
151
151
  headerText?: string;
152
152
  /** Tiêu đề hiển thị trên giao diện */
153
153
  headerDisplay?: string;
154
+ /** Tiêu đề hiển thị trên giao diện nhóm*/
155
+ columnGroupText?: string;
154
156
  /** Khóa chính */
155
157
  isPrimarykey?: boolean;
156
158
  /** Duy nhất trong bảng */
@@ -41,7 +41,6 @@ export declare const FindNodeByPath: (tree: any[], path: string) => {
41
41
  export declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[]) => {
42
42
  levels: any[][];
43
43
  flat: any[];
44
- flatVisble: any[];
45
44
  flatVisbleContent: any[];
46
45
  objWidthFixLeft: Record<number, number>;
47
46
  objWidthFixRight: Record<number, number>;
@@ -9,7 +9,7 @@ type IFSteps = {
9
9
  done?: boolean;
10
10
  loading?: boolean;
11
11
  disable?: boolean;
12
- visiable?: boolean;
12
+ visible?: boolean;
13
13
  };
14
14
  type IFProps = {
15
15
  steps: IFSteps[];
package/dist/index.d.ts CHANGED
@@ -155,6 +155,8 @@ type IColumnTable = {
155
155
  headerText?: string;
156
156
  /** Tiêu đề hiển thị trên giao diện */
157
157
  headerDisplay?: string;
158
+ /** Tiêu đề hiển thị trên giao diện nhóm*/
159
+ columnGroupText?: string;
158
160
  /** Khóa chính */
159
161
  isPrimarykey?: boolean;
160
162
  /** Duy nhất trong bảng */
@@ -709,6 +711,7 @@ type TableViewProps = {
709
711
  zeroVisiable?: boolean;
710
712
  groupSetting?: {
711
713
  client?: boolean;
714
+ visibleGroupColumn?: boolean;
712
715
  groupColumns: string[];
713
716
  onGroup: (props: any) => void;
714
717
  };
@@ -770,7 +773,6 @@ declare const FindNodeByPath: (tree: any[], path: string) => {
770
773
  declare const calculateTableStructure: (columns: any[], settingColumns?: IFSettingColumns[]) => {
771
774
  levels: any[][];
772
775
  flat: any[];
773
- flatVisble: any[];
774
776
  flatVisbleContent: any[];
775
777
  objWidthFixLeft: Record<number, number>;
776
778
  objWidthFixRight: Record<number, number>;
@@ -795,7 +797,7 @@ type IFSteps = {
795
797
  done?: boolean;
796
798
  loading?: boolean;
797
799
  disable?: boolean;
798
- visiable?: boolean;
800
+ visible?: boolean;
799
801
  };
800
802
  type IFProps = {
801
803
  steps: IFSteps[];