es-grid-template 1.9.31 → 1.9.33
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.
- package/assets/index.css +3 -3
- package/es/ali-table/InternalTable.d.ts +2 -2
- package/es/ali-table/base-table/colgroup.d.ts +2 -2
- package/es/ali-table/base-table/empty.d.ts +1 -1
- package/es/ali-table/base-table/header.d.ts +2 -2
- package/es/ali-table/base-table/html-table.d.ts +2 -2
- package/es/ali-table/base-table/loading.d.ts +1 -1
- package/es/ali-table/base-table/renderFilter.d.ts +2 -2
- package/es/ali-table/base-table/table.d.ts +1 -1
- package/es/ali-table/common-views.d.ts +5 -5
- package/es/ali-table/pipeline/features/ColumnsChoose.d.ts +2 -2
- package/es/ali-table/utils/convertColumnsChoose.d.ts +2 -2
- package/es/global.d.ts +3 -0
- package/es/grid-component/LoadingSpinner.d.ts +2 -2
- package/es/grid-component/TempTable.d.ts +2 -2
- package/es/grid-component/control/InputControl/InputControl.d.ts +1 -2
- package/es/group-component/ColumnsChoose.d.ts +2 -2
- package/es/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/es/group-component/InternalTable.d.ts +2 -2
- package/es/group-component/TableContainer.d.ts +1 -2
- package/es/group-component/TableContainerEdit.d.ts +1 -2
- package/es/group-component/body/EditableCell.d.ts +1 -1
- package/es/group-component/body/TableBody.d.ts +2 -2
- package/es/group-component/body/TableBody.js +2 -0
- package/es/group-component/body/TableBodyCell.d.ts +2 -2
- package/es/group-component/body/TableBodyCellEdit.d.ts +2 -2
- package/es/group-component/body/TableBodyCellEmpty.d.ts +2 -2
- package/es/group-component/body/TableBodyCellEmpty.js +16 -9
- package/es/group-component/body/TableBodyRow.d.ts +3 -3
- package/es/group-component/body/TableBodyRowGroupCell.d.ts +2 -2
- package/es/group-component/components/ControlCheckbox.d.ts +2 -2
- package/es/group-component/components/EditForm/EditForm.d.ts +1 -1
- package/es/group-component/components/InputControl/InputControl.d.ts +1 -2
- package/es/group-component/components/async-select/index.d.ts +2 -2
- package/es/group-component/components/async-table-select/index.d.ts +2 -2
- package/es/group-component/components/checkbox-control/index.d.ts +2 -2
- package/es/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/es/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/es/group-component/components/command/Command.d.ts +2 -2
- package/es/group-component/components/number/index.d.ts +1 -2
- package/es/group-component/components/number-range/index.d.ts +1 -2
- package/es/group-component/footer/TableFooter.d.ts +2 -2
- package/es/group-component/footer/TableFooterCell.d.ts +2 -2
- package/es/group-component/footer/TableFooterRow.d.ts +2 -2
- package/es/group-component/header/TableHead.d.ts +3 -3
- package/es/group-component/header/TableHeadCell.d.ts +3 -3
- package/es/group-component/header/TableHeadCell2.d.ts +3 -3
- package/es/group-component/header/TableHeadGroupCell.d.ts +3 -3
- package/es/group-component/header/TableHeadRow.d.ts +3 -3
- package/es/group-component/header/renderFilter.d.ts +2 -2
- package/es/group-component/hook/utils.d.ts +5 -5
- package/es/group-component/table/Grid.d.ts +1 -2
- package/es/group-component/table/TableWrapper.d.ts +2 -2
- package/es/table-component/ColumnsChoose.d.ts +2 -2
- package/es/table-component/ContextMenu.d.ts +2 -2
- package/es/table-component/InternalTable.d.ts +2 -2
- package/es/table-component/InternalTable.js +6 -0
- package/es/table-component/TableContainer.d.ts +1 -2
- package/es/table-component/TableContainerEdit.d.ts +1 -2
- package/es/table-component/body/EditableCell.d.ts +1 -1
- package/es/table-component/body/EditableCell.js +2 -2
- package/es/table-component/body/TableBody.d.ts +2 -2
- package/es/table-component/body/TableBody.js +0 -2
- package/es/table-component/body/TableBodyCell.d.ts +2 -2
- package/es/table-component/body/TableBodyCellEdit.d.ts +2 -2
- package/es/table-component/body/TableBodyRow.d.ts +3 -3
- package/es/table-component/components/ControlCheckbox.d.ts +2 -2
- package/es/table-component/components/EditForm/EditForm.d.ts +1 -1
- package/es/table-component/components/InputControl/InputControl.d.ts +1 -2
- package/es/table-component/components/async-select/index.d.ts +2 -2
- package/es/table-component/components/async-table-select/index.d.ts +2 -2
- package/es/table-component/components/checkbox-control/index.d.ts +2 -2
- package/es/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/es/table-component/components/command/Command.d.ts +2 -2
- package/es/table-component/components/number/index.d.ts +1 -2
- package/es/table-component/components/number-range/index.d.ts +1 -2
- package/es/table-component/footer/TableFooter.d.ts +2 -2
- package/es/table-component/footer/TableFooterCell.d.ts +2 -2
- package/es/table-component/footer/TableFooterRow.d.ts +2 -2
- package/es/table-component/header/TableHead.d.ts +3 -3
- package/es/table-component/header/TableHeadCell.d.ts +3 -3
- package/es/table-component/header/TableHeadCell2.d.ts +3 -3
- package/es/table-component/header/TableHeadGroupCell.d.ts +3 -3
- package/es/table-component/header/TableHeadRow.d.ts +3 -3
- package/es/table-component/header/renderFilter.d.ts +2 -2
- package/es/table-component/hook/utils.d.ts +2 -2
- package/es/table-component/style.scss +8 -0
- package/es/table-component/table/Grid.d.ts +1 -2
- package/es/table-component/table/TableWrapper.d.ts +2 -2
- package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/es/table-virtuoso/InternalTable.d.ts +2 -2
- package/es/table-virtuoso/body/TableBodyCell.d.ts +2 -2
- package/es/table-virtuoso/body/TableBodyCellRowGroup.d.ts +2 -2
- package/es/table-virtuoso/body/TableBodyRow.d.ts +3 -3
- package/es/table-virtuoso/footer/TableFooterCell.d.ts +2 -2
- package/es/table-virtuoso/header/TableHeadCell.d.ts +3 -3
- package/es/table-virtuoso/header/renderFilter.d.ts +2 -2
- package/es/table-virtuoso/hook/utils.d.ts +2 -2
- package/es/table-virtuoso/table/Grid.d.ts +1 -2
- package/es/table-virtuoso/table/TableContainer.d.ts +1 -2
- package/es/table-virtuoso/table/TableWrapper.d.ts +1 -1
- package/lib/ali-table/InternalTable.d.ts +2 -2
- package/lib/ali-table/base-table/colgroup.d.ts +2 -2
- package/lib/ali-table/base-table/empty.d.ts +1 -1
- package/lib/ali-table/base-table/header.d.ts +2 -2
- package/lib/ali-table/base-table/html-table.d.ts +2 -2
- package/lib/ali-table/base-table/loading.d.ts +1 -1
- package/lib/ali-table/base-table/renderFilter.d.ts +2 -2
- package/lib/ali-table/base-table/table.d.ts +1 -1
- package/lib/ali-table/common-views.d.ts +5 -5
- package/lib/ali-table/pipeline/features/ColumnsChoose.d.ts +2 -2
- package/lib/ali-table/utils/convertColumnsChoose.d.ts +2 -2
- package/lib/global.d.ts +3 -0
- package/lib/grid-component/LoadingSpinner.d.ts +2 -2
- package/lib/grid-component/TempTable.d.ts +2 -2
- package/lib/grid-component/control/InputControl/InputControl.d.ts +1 -2
- package/lib/group-component/ColumnsChoose.d.ts +2 -2
- package/lib/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/lib/group-component/InternalTable.d.ts +2 -2
- package/lib/group-component/TableContainer.d.ts +1 -2
- package/lib/group-component/TableContainerEdit.d.ts +1 -2
- package/lib/group-component/body/EditableCell.d.ts +1 -1
- package/lib/group-component/body/TableBody.d.ts +2 -2
- package/lib/group-component/body/TableBody.js +2 -0
- package/lib/group-component/body/TableBodyCell.d.ts +2 -2
- package/lib/group-component/body/TableBodyCellEdit.d.ts +2 -2
- package/lib/group-component/body/TableBodyCellEmpty.d.ts +2 -2
- package/lib/group-component/body/TableBodyCellEmpty.js +16 -9
- package/lib/group-component/body/TableBodyRow.d.ts +3 -3
- package/lib/group-component/body/TableBodyRowGroupCell.d.ts +2 -2
- package/lib/group-component/components/ControlCheckbox.d.ts +2 -2
- package/lib/group-component/components/EditForm/EditForm.d.ts +1 -1
- package/lib/group-component/components/InputControl/InputControl.d.ts +1 -2
- package/lib/group-component/components/async-select/index.d.ts +2 -2
- package/lib/group-component/components/async-table-select/index.d.ts +2 -2
- package/lib/group-component/components/checkbox-control/index.d.ts +2 -2
- package/lib/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/lib/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/lib/group-component/components/command/Command.d.ts +2 -2
- package/lib/group-component/components/number/index.d.ts +1 -2
- package/lib/group-component/components/number-range/index.d.ts +1 -2
- package/lib/group-component/footer/TableFooter.d.ts +2 -2
- package/lib/group-component/footer/TableFooterCell.d.ts +2 -2
- package/lib/group-component/footer/TableFooterRow.d.ts +2 -2
- package/lib/group-component/header/TableHead.d.ts +3 -3
- package/lib/group-component/header/TableHeadCell.d.ts +3 -3
- package/lib/group-component/header/TableHeadCell2.d.ts +3 -3
- package/lib/group-component/header/TableHeadGroupCell.d.ts +3 -3
- package/lib/group-component/header/TableHeadRow.d.ts +3 -3
- package/lib/group-component/header/renderFilter.d.ts +2 -2
- package/lib/group-component/hook/utils.d.ts +10 -10
- package/lib/group-component/table/Grid.d.ts +1 -2
- package/lib/group-component/table/TableWrapper.d.ts +2 -2
- package/lib/table-component/ColumnsChoose.d.ts +2 -2
- package/lib/table-component/ContextMenu.d.ts +2 -2
- package/lib/table-component/InternalTable.d.ts +2 -2
- package/lib/table-component/InternalTable.js +6 -0
- package/lib/table-component/TableContainer.d.ts +1 -2
- package/lib/table-component/TableContainerEdit.d.ts +1 -2
- package/lib/table-component/body/EditableCell.d.ts +1 -1
- package/lib/table-component/body/EditableCell.js +1 -1
- package/lib/table-component/body/TableBody.d.ts +2 -2
- package/lib/table-component/body/TableBody.js +0 -4
- package/lib/table-component/body/TableBodyCell.d.ts +2 -2
- package/lib/table-component/body/TableBodyCellEdit.d.ts +2 -2
- package/lib/table-component/body/TableBodyRow.d.ts +3 -3
- package/lib/table-component/components/ControlCheckbox.d.ts +2 -2
- package/lib/table-component/components/EditForm/EditForm.d.ts +1 -1
- package/lib/table-component/components/InputControl/InputControl.d.ts +1 -2
- package/lib/table-component/components/async-select/index.d.ts +2 -2
- package/lib/table-component/components/async-table-select/index.d.ts +2 -2
- package/lib/table-component/components/checkbox-control/index.d.ts +2 -2
- package/lib/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/lib/table-component/components/command/Command.d.ts +2 -2
- package/lib/table-component/components/number/index.d.ts +1 -2
- package/lib/table-component/components/number-range/index.d.ts +1 -2
- package/lib/table-component/footer/TableFooter.d.ts +2 -2
- package/lib/table-component/footer/TableFooterCell.d.ts +2 -2
- package/lib/table-component/footer/TableFooterRow.d.ts +2 -2
- package/lib/table-component/header/TableHead.d.ts +3 -3
- package/lib/table-component/header/TableHeadCell.d.ts +3 -3
- package/lib/table-component/header/TableHeadCell2.d.ts +3 -3
- package/lib/table-component/header/TableHeadGroupCell.d.ts +3 -3
- package/lib/table-component/header/TableHeadRow.d.ts +3 -3
- package/lib/table-component/header/renderFilter.d.ts +2 -2
- package/lib/table-component/hook/utils.d.ts +2 -2
- package/lib/table-component/style.scss +8 -0
- package/lib/table-component/table/Grid.d.ts +1 -2
- package/lib/table-component/table/TableWrapper.d.ts +2 -2
- package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/lib/table-virtuoso/InternalTable.d.ts +2 -2
- package/lib/table-virtuoso/body/TableBodyCell.d.ts +2 -2
- package/lib/table-virtuoso/body/TableBodyCellRowGroup.d.ts +2 -2
- package/lib/table-virtuoso/body/TableBodyRow.d.ts +3 -3
- package/lib/table-virtuoso/footer/TableFooterCell.d.ts +2 -2
- package/lib/table-virtuoso/header/TableHeadCell.d.ts +3 -3
- package/lib/table-virtuoso/header/renderFilter.d.ts +2 -2
- package/lib/table-virtuoso/hook/utils.d.ts +2 -2
- package/lib/table-virtuoso/table/Grid.d.ts +1 -2
- package/lib/table-virtuoso/table/TableContainer.d.ts +1 -2
- package/lib/table-virtuoso/table/TableWrapper.d.ts +1 -1
- package/package.json +66 -64
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
2
|
import type { CommandClick, ContextInfo, ContextMenuItem, PaginationConfig } from "../../grid-component/type";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
@@ -31,5 +31,5 @@ type Props<T> = {
|
|
|
31
31
|
fixedLeftColumns: Column<T, unknown>[];
|
|
32
32
|
fixedRightColumns: Column<T, unknown>[];
|
|
33
33
|
};
|
|
34
|
-
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) =>
|
|
34
|
+
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
35
35
|
export default TableWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type IColumnsGroup = {
|
|
3
3
|
columns: any[];
|
|
4
4
|
dataSource?: string[];
|
|
@@ -9,5 +9,5 @@ type IColumnsGroup = {
|
|
|
9
9
|
defaultGroupColumns?: string[];
|
|
10
10
|
id: any;
|
|
11
11
|
};
|
|
12
|
-
export declare const ColumnsGroup: (props: IColumnsGroup) =>
|
|
12
|
+
export declare const ColumnsGroup: (props: IColumnsGroup) => JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import 'react-resizable/css/styles.css';
|
|
3
3
|
import 'dayjs/locale/es';
|
|
4
4
|
import 'dayjs/locale/vi';
|
|
5
5
|
import type { TableProps } from '../grid-component/type';
|
|
6
6
|
export declare const SELECTION_COLUMN: {};
|
|
7
|
-
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
7
|
+
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default InternalTable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
import type { VirtualItem } from "@tanstack/react-virtual";
|
|
5
5
|
interface TableBodyCellProps<T> {
|
|
6
6
|
table: Table<T>;
|
|
@@ -10,5 +10,5 @@ interface TableBodyCellProps<T> {
|
|
|
10
10
|
virtualRow: VirtualItem;
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
|
-
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
13
|
+
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
14
14
|
export default TableBodyCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
import type { VirtualItem } from "@tanstack/react-virtual";
|
|
5
5
|
interface TableBodyCellProps<T> {
|
|
6
6
|
table: Table<T>;
|
|
@@ -10,5 +10,5 @@ interface TableBodyCellProps<T> {
|
|
|
10
10
|
virtualRow: VirtualItem;
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
|
-
declare const TableBodyCellRowGroup: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
13
|
+
declare const TableBodyCellRowGroup: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
14
14
|
export default TableBodyCellRowGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Row, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyRowProps<T> {
|
|
5
5
|
tableId: string;
|
|
6
6
|
table: Table<T>;
|
|
@@ -9,5 +9,5 @@ interface TableBodyRowProps<T> {
|
|
|
9
9
|
editAble?: boolean;
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
12
|
-
declare const TableBodyRow: <RecordType extends object>({ tableId, table, row, virtualRow, commandClick, contextMenuItems, onContextMenu, rowheight, editAble, isEditing, isRowEditable, ...rest }: TableBodyRowProps<RecordType>) =>
|
|
12
|
+
declare const TableBodyRow: <RecordType extends object>({ tableId, table, row, virtualRow, commandClick, contextMenuItems, onContextMenu, rowheight, editAble, isEditing, isRowEditable, ...rest }: TableBodyRowProps<RecordType>) => JSX.Element;
|
|
13
13
|
export default TableBodyRow;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Column } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterCellProps<T> {
|
|
4
4
|
column: Column<T, any>;
|
|
5
5
|
}
|
|
6
|
-
declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) =>
|
|
6
|
+
declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => JSX.Element;
|
|
7
7
|
export default TableFooterCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { Header } from '@tanstack/react-table';
|
|
4
4
|
interface TableHeadCellProps<T> {
|
|
5
5
|
t?: any;
|
|
6
6
|
table: Table<T>;
|
|
@@ -10,5 +10,5 @@ interface TableHeadCellProps<T> {
|
|
|
10
10
|
rowSpan: any;
|
|
11
11
|
rowIndex: number;
|
|
12
12
|
}
|
|
13
|
-
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
13
|
+
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
14
14
|
export default TableHeadCell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
import type { IFormat } from "../../grid-component/type";
|
|
4
4
|
type RenderFilterProps<RecordType> = {
|
|
5
5
|
column: ColumnDef<RecordType, unknown>;
|
|
@@ -16,5 +16,5 @@ type RenderFilterProps<RecordType> = {
|
|
|
16
16
|
dateRangeLocale?: any;
|
|
17
17
|
doFilter?: (type: boolean) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) =>
|
|
19
|
+
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Row, Table } from "@tanstack/react-table";
|
|
2
|
-
import {
|
|
2
|
+
import type { Column } from "@tanstack/react-table";
|
|
3
3
|
import type { VirtualItem } from "@tanstack/react-virtual";
|
|
4
4
|
import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "../../grid-component/type";
|
|
5
5
|
import type { Key } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import type { CSSProperties } from "react";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
8
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
9
9
|
import type { TreeDataNode } from "antd";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ColumnDef, ColumnFiltersState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, Table, VisibilityState } from '@tanstack/react-table';
|
|
2
2
|
import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
|
|
3
3
|
import type { Dispatch, Key, SetStateAction } from 'react';
|
|
4
|
-
import React from 'react';
|
|
5
4
|
type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
6
5
|
id: string;
|
|
7
6
|
table: Table<T>;
|
|
@@ -33,5 +32,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
33
32
|
columnFilters: ColumnFiltersState;
|
|
34
33
|
setColumnOrder?: Dispatch<SetStateAction<string[]>>;
|
|
35
34
|
};
|
|
36
|
-
declare const Grid: <RecordType extends object>(props: Props<RecordType>) =>
|
|
35
|
+
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
37
36
|
export default Grid;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from '@tanstack/react-table';
|
|
4
3
|
import type { ColumnsTable, TableProps } from '../../grid-component/type';
|
|
5
4
|
type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
@@ -45,5 +44,5 @@ type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
45
44
|
columnSizing: ColumnSizingState;
|
|
46
45
|
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
47
46
|
};
|
|
48
|
-
declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) =>
|
|
47
|
+
declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) => JSX.Element;
|
|
49
48
|
export default TableContainer;
|
|
@@ -24,5 +24,5 @@ type Props<T> = {
|
|
|
24
24
|
pagination?: false | PaginationConfig;
|
|
25
25
|
infiniteScroll?: boolean;
|
|
26
26
|
};
|
|
27
|
-
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) =>
|
|
27
|
+
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
28
28
|
export default TableWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import './base-table/styles.scss';
|
|
3
3
|
import type { TableProps } from "../grid-component/type";
|
|
4
|
-
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
4
|
+
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
5
5
|
export default InternalTable;
|
|
@@ -9,4 +9,4 @@ export interface EmptyTableProps {
|
|
|
9
9
|
}>;
|
|
10
10
|
locale?: any;
|
|
11
11
|
}
|
|
12
|
-
export declare function EmptyHtmlTable({ descriptors, isLoading, emptyCellHeight, EmptyContent, locale, }: EmptyTableProps):
|
|
12
|
+
export declare function EmptyHtmlTable({ descriptors, isLoading, emptyCellHeight, EmptyContent, locale, }: EmptyTableProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { RenderInfo } from './interfaces';
|
|
3
3
|
import type { BaseTableProps } from './table';
|
|
4
4
|
import type { CommandClick, IFormat } from '../../grid-component/type';
|
|
@@ -17,4 +17,4 @@ export interface HtmlTableProps extends Required<Pick<BaseTableProps, 'getRowPro
|
|
|
17
17
|
limit: number;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
export declare function HtmlTable({ tbodyHtmlTag, getRowProps, primaryKey, data, originData, format, commandClick, id, verticalRenderInfo: verInfo, horizontalRenderInfo: hozInfo, components: { Row, Cell, TableBody }, }: HtmlTableProps):
|
|
20
|
+
export declare function HtmlTable({ tbodyHtmlTag, getRowProps, primaryKey, data, originData, format, commandClick, id, verticalRenderInfo: verInfo, horizontalRenderInfo: hozInfo, components: { Row, Cell, TableBody }, }: HtmlTableProps): JSX.Element;
|
|
@@ -10,5 +10,5 @@ interface LoadingProps {
|
|
|
10
10
|
LoadingContentWrapper?: React.ComponentType<LoadingContentWrapperProps>;
|
|
11
11
|
LoadingIcon?: React.ComponentType;
|
|
12
12
|
}
|
|
13
|
-
export default function Loading({ visible, children, LoadingContentWrapper, LoadingIcon, }: LoadingProps):
|
|
13
|
+
export default function Loading({ visible, children, LoadingContentWrapper, LoadingIcon, }: LoadingProps): JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { IFormat } from "../../grid-component/type";
|
|
3
3
|
import type { ArtColumn } from "../interfaces";
|
|
4
4
|
type RenderFilterProps = {
|
|
@@ -17,5 +17,5 @@ type RenderFilterProps = {
|
|
|
17
17
|
doFilter?: (type: boolean) => void;
|
|
18
18
|
tableLocal: any;
|
|
19
19
|
};
|
|
20
|
-
export declare const renderFilter: (args: RenderFilterProps) =>
|
|
20
|
+
export declare const renderFilter: (args: RenderFilterProps) => JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -166,7 +166,7 @@ export declare class BaseTable extends React.Component<BaseTableProps, BaseTable
|
|
|
166
166
|
private renderTableFooter;
|
|
167
167
|
private renderLockShadows;
|
|
168
168
|
private renderStickyScroll;
|
|
169
|
-
render():
|
|
169
|
+
render(): JSX.Element;
|
|
170
170
|
componentDidMount(): void;
|
|
171
171
|
componentDidUpdate(prevProps: Readonly<BaseTableProps>, prevState: Readonly<BaseTableState>): void;
|
|
172
172
|
private didMountOrUpdate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const InlineFlexCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const ExpansionCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<
|
|
3
|
+
export declare const ExpansionCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
4
4
|
ref?: React.Ref<HTMLDivElement>;
|
|
5
5
|
}, never>> & string;
|
|
6
6
|
interface IconProps extends React.SVGProps<SVGElement> {
|
|
@@ -12,10 +12,10 @@ interface IconProps extends React.SVGProps<SVGElement> {
|
|
|
12
12
|
xmlns?: string;
|
|
13
13
|
ref?: any;
|
|
14
14
|
}
|
|
15
|
-
declare function CaretDownIcon(props: IconProps):
|
|
16
|
-
declare function InfoIcon(props: IconProps):
|
|
17
|
-
declare function CaretRightIcon(props: IconProps):
|
|
18
|
-
declare function LoadingIcon(props: IconProps):
|
|
15
|
+
declare function CaretDownIcon(props: IconProps): JSX.Element;
|
|
16
|
+
declare function InfoIcon(props: IconProps): JSX.Element;
|
|
17
|
+
declare function CaretRightIcon(props: IconProps): JSX.Element;
|
|
18
|
+
declare function LoadingIcon(props: IconProps): JSX.Element;
|
|
19
19
|
export declare const icons: {
|
|
20
20
|
Loading: typeof LoadingIcon;
|
|
21
21
|
CaretDown: typeof CaretDownIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnsTable, ColumnTable, GridTableLocale, Locale } from "../../../grid-component/type";
|
|
3
3
|
export type IColumnsChoose<RecordType> = {
|
|
4
4
|
id: string;
|
|
@@ -11,4 +11,4 @@ export type IColumnsChoose<RecordType> = {
|
|
|
11
11
|
locale?: Locale;
|
|
12
12
|
tableLocal: GridTableLocale;
|
|
13
13
|
};
|
|
14
|
-
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) =>
|
|
14
|
+
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeDataNode } from "antd";
|
|
2
|
-
import { ColumnTable } from "../../grid-component";
|
|
1
|
+
import type { TreeDataNode } from "antd";
|
|
2
|
+
import type { ColumnTable } from "../../grid-component";
|
|
3
3
|
export declare function convertColumnsToTreeData(columns: ColumnTable[], groupColumns?: string[], t?: any): TreeDataNode[];
|
|
4
4
|
export declare function filterColumnsByField(columns: ColumnTable[], fieldList: string[]): ColumnTable[];
|
|
5
5
|
export declare function filterVisibleColumns(columns: ColumnTable[]): ColumnTable[];
|
package/lib/global.d.ts
ADDED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ComponentSpinner: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ComponentSpinner: () => JSX.Element;
|
|
3
3
|
export default ComponentSpinner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TableProps } from "../grid-component";
|
|
3
|
-
declare const TempTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
3
|
+
declare const TempTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
4
4
|
export default TempTable;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HTMLInputTypeAttribute } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface IFFormInput {
|
|
4
3
|
id?: any;
|
|
5
4
|
control: any;
|
|
@@ -23,5 +22,5 @@ interface IFFormInput {
|
|
|
23
22
|
t?: any;
|
|
24
23
|
onKeyDown?: (event: any) => void;
|
|
25
24
|
}
|
|
26
|
-
declare const InputControl: (props: IFFormInput) =>
|
|
25
|
+
declare const InputControl: (props: IFFormInput) => JSX.Element;
|
|
27
26
|
export default InputControl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnsTable, ColumnTable } from "./../grid-component/type";
|
|
3
3
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
4
4
|
export type IColumnsChoose<RecordType> = {
|
|
@@ -11,4 +11,4 @@ export type IColumnsChoose<RecordType> = {
|
|
|
11
11
|
columnHidden: any;
|
|
12
12
|
id: any;
|
|
13
13
|
};
|
|
14
|
-
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) =>
|
|
14
|
+
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type IColumnsGroup = {
|
|
3
3
|
id: string;
|
|
4
4
|
tableLocal?: any;
|
|
@@ -10,5 +10,5 @@ type IColumnsGroup = {
|
|
|
10
10
|
unClearableLevel?: number;
|
|
11
11
|
defaultGroupColumns?: string[];
|
|
12
12
|
};
|
|
13
|
-
export declare const ColumnsGroup: (props: IColumnsGroup) =>
|
|
13
|
+
export declare const ColumnsGroup: (props: IColumnsGroup) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import 'react-resizable/css/styles.css';
|
|
3
3
|
import 'dayjs/locale/es';
|
|
4
4
|
import 'dayjs/locale/vi';
|
|
5
5
|
import '../table-component';
|
|
6
6
|
import type { TableProps } from './../grid-component/type';
|
|
7
|
-
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
7
|
+
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default InternalTable;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from '@tanstack/react-table';
|
|
4
3
|
import type { ColumnsTable, TableProps } from './../grid-component/type';
|
|
5
4
|
type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
@@ -45,5 +44,5 @@ type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
45
44
|
columnSizing: ColumnSizingState;
|
|
46
45
|
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
47
46
|
};
|
|
48
|
-
declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) =>
|
|
47
|
+
declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) => JSX.Element;
|
|
49
48
|
export default TableContainer;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from "@tanstack/react-table";
|
|
4
3
|
import type { ColumnsTable, TableProps } from "./../grid-component/type";
|
|
5
4
|
type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
@@ -44,5 +43,5 @@ type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
44
43
|
columnSizing: ColumnSizingState;
|
|
45
44
|
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
46
45
|
};
|
|
47
|
-
declare const TableContainerEdit: <RecordType extends object>(props: TableContainerProps<RecordType>) =>
|
|
46
|
+
declare const TableContainerEdit: <RecordType extends object>(props: TableContainerProps<RecordType>) => JSX.Element;
|
|
48
47
|
export default TableContainerEdit;
|
|
@@ -12,5 +12,5 @@ interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement>
|
|
|
12
12
|
indexCol: number;
|
|
13
13
|
cellEditing?: any;
|
|
14
14
|
}
|
|
15
|
-
declare const EditableCell: <T>(props: EditableCellProps<T>) =>
|
|
15
|
+
declare const EditableCell: <T>(props: EditableCellProps<T>) => JSX.Element;
|
|
16
16
|
export default EditableCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
2
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
3
|
import React from "react";
|
|
4
4
|
interface TableBodyProps<T> {
|
|
@@ -10,5 +10,5 @@ interface TableBodyProps<T> {
|
|
|
10
10
|
showEmptyText?: boolean;
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
|
-
declare const TableBody: <RecordType extends object>({ columnVirtualizer, table, tableContainerRef, virtualPaddingLeft, virtualPaddingRight, fixedLeftColumns, fixedRightColumns, tableId, showEmptyText, ...rest }: TableBodyProps<RecordType>) =>
|
|
13
|
+
declare const TableBody: <RecordType extends object>({ columnVirtualizer, table, tableContainerRef, virtualPaddingLeft, virtualPaddingRight, fixedLeftColumns, fixedRightColumns, tableId, showEmptyText, ...rest }: TableBodyProps<RecordType>) => JSX.Element;
|
|
14
14
|
export default TableBody;
|
|
@@ -13,6 +13,8 @@ var _useContext = require("../useContext");
|
|
|
13
13
|
var _rcMasterUi = require("rc-master-ui");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
// import { type Row, type Table } from "@tanstack/react-table"
|
|
17
|
+
|
|
16
18
|
const TableBody = ({
|
|
17
19
|
columnVirtualizer,
|
|
18
20
|
table,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
import type { VirtualItem, Virtualizer } from "@tanstack/react-virtual";
|
|
5
5
|
interface TableBodyCellProps<T> {
|
|
6
6
|
table: Table<T>;
|
|
@@ -13,5 +13,5 @@ interface TableBodyCellProps<T> {
|
|
|
13
13
|
isRowEditable?: boolean;
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
16
|
-
declare const TableBodyCellEdit: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
16
|
+
declare const TableBodyCellEdit: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableBodyCellEdit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCellEmpty: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCellEmpty: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCellEmpty;
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _server = _interopRequireDefault(require("react-dom/server"));
|
|
9
8
|
var _utils = require("../hook/utils");
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _useContext = require("../useContext");
|
|
13
12
|
var _useColumns = require("../hook/useColumns");
|
|
13
|
+
// import ReactDOMServer from 'react-dom/server'
|
|
14
|
+
|
|
14
15
|
const TableBodyCellEmpty = props => {
|
|
15
16
|
const {
|
|
16
17
|
cell,
|
|
@@ -29,14 +30,19 @@ const TableBodyCellEmpty = props => {
|
|
|
29
30
|
setIsSelecting,
|
|
30
31
|
setIsPasting
|
|
31
32
|
} = _react.default.useContext(_useContext.TableContext);
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
// const [isOpenTooltip, setIsOpenTooltip] = React.useState(false)
|
|
35
|
+
|
|
33
36
|
const record = cell.row.original;
|
|
34
37
|
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
35
38
|
const cellStyles = typeof columnMeta.onCellStyles === 'function' ? columnMeta.onCellStyles(cell.getValue(), cell) : columnMeta.onCellStyles;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
// const tooltipContent = (isOpenTooltip === false)
|
|
41
|
+
// ? ''
|
|
42
|
+
// : columnMeta?.tooltipDescription
|
|
43
|
+
// ? (typeof columnMeta.tooltipDescription === 'function' ? columnMeta.tooltipDescription({ value: cell.getValue(), rowData:record }) : columnMeta.tooltipDescription)
|
|
44
|
+
// : (columnMeta.template && typeof columnMeta.template !== 'function') ? columnMeta.template : cell.getValue()
|
|
45
|
+
|
|
40
46
|
const allRows = table.getRowModel().flatRows;
|
|
41
47
|
const rowNumber = allRows.findIndex(it => it.id === cell.row.id);
|
|
42
48
|
const colIndex = cell.column.getIndex();
|
|
@@ -57,8 +63,8 @@ const TableBodyCellEmpty = props => {
|
|
|
57
63
|
"data-col-key": cell.column.id
|
|
58
64
|
// data-row-key={cell.row.id}
|
|
59
65
|
,
|
|
60
|
-
"data-tooltip-id": `${id}-tooltip-content
|
|
61
|
-
|
|
66
|
+
"data-tooltip-id": `${id}-tooltip-content`
|
|
67
|
+
// data-tooltip-html={ReactDOMServer.renderToStaticMarkup(<>{tooltipContent}</>)}
|
|
62
68
|
// data-tooltip-delay-show={500}
|
|
63
69
|
,
|
|
64
70
|
|
|
@@ -84,7 +90,8 @@ const TableBodyCellEmpty = props => {
|
|
|
84
90
|
},
|
|
85
91
|
onMouseEnter: e => {
|
|
86
92
|
if (e.target.firstChild?.clientWidth < e.target.firstChild?.scrollWidth) {
|
|
87
|
-
|
|
93
|
+
|
|
94
|
+
// setIsOpenTooltip(true)
|
|
88
95
|
}
|
|
89
96
|
setIsSelecting?.(false);
|
|
90
97
|
setIsPasting?.(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { VirtualItem, Virtualizer } from "@tanstack/react-virtual";
|
|
2
|
-
import {
|
|
3
|
+
import type { Column, Row, Table } from "@tanstack/react-table";
|
|
3
4
|
import type { CommandClick } from "../../grid-component/type";
|
|
4
|
-
import React from "react";
|
|
5
5
|
interface TableBodyRowProps<T> {
|
|
6
6
|
tableId: string;
|
|
7
7
|
table: Table<T>;
|
|
@@ -17,5 +17,5 @@ interface TableBodyRowProps<T> {
|
|
|
17
17
|
editAble?: boolean;
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}
|
|
20
|
-
declare const TableBodyRow: <RecordType extends object>({ tableId, table, columnVirtualizer, row, rowVirtualizer, virtualPaddingLeft, virtualPaddingRight, virtualRow, fixedLeftColumns, fixedRightColumns, commandClick, editAble, isEditing, contextMenuItems, onContextMenu, ...rest }: TableBodyRowProps<RecordType>) =>
|
|
20
|
+
declare const TableBodyRow: <RecordType extends object>({ tableId, table, columnVirtualizer, row, rowVirtualizer, virtualPaddingLeft, virtualPaddingRight, virtualRow, fixedLeftColumns, fixedRightColumns, commandClick, editAble, isEditing, contextMenuItems, onContextMenu, ...rest }: TableBodyRowProps<RecordType>) => JSX.Element;
|
|
21
21
|
export default TableBodyRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnTable } from "../../grid-component/type";
|
|
3
3
|
type Props = {
|
|
4
4
|
column: ColumnTable;
|
|
@@ -9,5 +9,5 @@ type Props = {
|
|
|
9
9
|
checked: boolean;
|
|
10
10
|
editAble?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const ControlCheckbox: (props: Props) =>
|
|
12
|
+
declare const ControlCheckbox: (props: Props) => JSX.Element;
|
|
13
13
|
export default ControlCheckbox;
|
|
@@ -23,5 +23,5 @@ type Props = {
|
|
|
23
23
|
onKeyDown?: (event: any) => void;
|
|
24
24
|
};
|
|
25
25
|
export declare const SelectStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
-
export declare const EditForm: (props: Props) =>
|
|
26
|
+
export declare const EditForm: (props: Props) => JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HTMLInputTypeAttribute } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface IFFormInput {
|
|
4
3
|
id?: any;
|
|
5
4
|
control: any;
|
|
@@ -23,5 +22,5 @@ interface IFFormInput {
|
|
|
23
22
|
t?: any;
|
|
24
23
|
onKeyDown?: (event: any) => void;
|
|
25
24
|
}
|
|
26
|
-
declare const InputControl: (props: IFFormInput) =>
|
|
25
|
+
declare const InputControl: (props: IFFormInput) => JSX.Element;
|
|
27
26
|
export default InputControl;
|