es-grid-template 1.9.32 → 1.9.36
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/Grid.js +1 -1
- package/es/ali-table/InternalTable.d.ts +2 -2
- package/es/ali-table/InternalTable.js +2 -1
- 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/empty.js +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/html-table.js +1 -1
- 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/renderFilter.js +5 -1
- 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/pipeline/features/ColumnsChoose.js +2 -1
- package/es/ali-table/pipeline/features/columnCustom.js +3 -1
- package/es/ali-table/pipeline/features/treeSelect.js +1 -1
- package/es/ali-table/utils/convertColumnsChoose.d.ts +2 -2
- package/es/collapse/index.d.ts +2 -2
- package/es/collapse/index.js +1 -1
- 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/grid-component/control/InputControl/InputControl.js +1 -1
- package/es/grid-component/hooks/utils.d.ts +2 -2
- package/es/grid-component/type.d.ts +5 -3
- package/es/group-component/ColumnsChoose.d.ts +2 -2
- package/es/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/es/group-component/ColumnsGroup/ColumnsGroup.js +1 -1
- package/es/group-component/InternalTable.d.ts +2 -2
- package/es/group-component/InternalTable.js +2 -1
- package/es/group-component/TableContainer.d.ts +1 -2
- package/es/group-component/TableContainer.js +1 -1
- package/es/group-component/TableContainerEdit.d.ts +1 -2
- package/es/group-component/TableContainerEdit.js +2 -1
- package/es/group-component/body/EditableCell.d.ts +2 -2
- package/es/group-component/body/EditableCell.js +5 -2
- package/es/group-component/body/TableBody.d.ts +2 -2
- package/es/group-component/body/TableBody.js +3 -1
- 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/ControlCheckbox.js +1 -1
- package/es/group-component/components/EditForm/EditForm.d.ts +1 -1
- package/es/group-component/components/EditForm/EditForm.js +1 -1
- package/es/group-component/components/InputControl/InputControl.d.ts +1 -2
- package/es/group-component/components/InputControl/InputControl.js +1 -1
- package/es/group-component/components/async-select/index.d.ts +2 -2
- package/es/group-component/components/async-select/index.js +1 -1
- package/es/group-component/components/async-table-select/index.d.ts +3 -3
- package/es/group-component/components/async-table-select/index.js +1 -1
- package/es/group-component/components/checkbox-control/index.d.ts +2 -2
- package/es/group-component/components/checkbox-control/index.js +1 -1
- package/es/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/es/group-component/components/checkbox-filter/CheckboxFilter.js +4 -1
- package/es/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/es/group-component/components/checkbox-filter/FilterSearch.js +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/index.js +1 -1
- package/es/group-component/components/number-range/index.d.ts +1 -2
- package/es/group-component/components/number-range/index.js +1 -1
- 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/TableHeadCell.js +3 -1
- package/es/group-component/header/TableHeadCell2.d.ts +3 -3
- package/es/group-component/header/TableHeadCell2.js +3 -1
- package/es/group-component/header/TableHeadGroupCell.d.ts +3 -3
- package/es/group-component/header/TableHeadGroupCell.js +1 -1
- package/es/group-component/header/TableHeadRow.d.ts +3 -3
- package/es/group-component/header/renderFilter.d.ts +2 -2
- package/es/group-component/header/renderFilter.js +5 -1
- package/es/group-component/hook/utils.d.ts +6 -6
- package/es/group-component/table/Grid.d.ts +1 -2
- package/es/group-component/table/TableWrapper.d.ts +2 -2
- package/es/locale/index.js +1 -1
- package/es/select/index.d.ts +2 -2
- package/es/select/index.js +1 -1
- package/es/splitter/index.d.ts +2 -2
- package/es/splitter/index.js +1 -1
- 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 +2 -1
- package/es/table-component/TableContainer.d.ts +1 -2
- package/es/table-component/TableContainer.js +1 -1
- package/es/table-component/TableContainerEdit.d.ts +1 -2
- package/es/table-component/TableContainerEdit.js +1 -1
- package/es/table-component/body/EditableCell.d.ts +2 -2
- package/es/table-component/body/EditableCell.js +6 -2
- package/es/table-component/body/TableBody.d.ts +2 -2
- package/es/table-component/body/TableBody.js +1 -3
- 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/ControlCheckbox.js +1 -1
- package/es/table-component/components/EditForm/EditForm.d.ts +1 -1
- package/es/table-component/components/EditForm/EditForm.js +1 -1
- package/es/table-component/components/InputControl/InputControl.d.ts +1 -2
- package/es/table-component/components/InputControl/InputControl.js +1 -1
- package/es/table-component/components/async-select/index.d.ts +2 -2
- package/es/table-component/components/async-select/index.js +1 -1
- package/es/table-component/components/async-table-select/index.d.ts +3 -3
- package/es/table-component/components/async-table-select/index.js +1 -1
- package/es/table-component/components/checkbox-control/index.d.ts +2 -2
- package/es/table-component/components/checkbox-control/index.js +1 -1
- package/es/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/es/table-component/components/checkbox-filter/CheckboxFilter.js +4 -1
- package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/es/table-component/components/checkbox-filter/FilterSearch.js +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/index.js +1 -1
- package/es/table-component/components/number-range/index.d.ts +1 -2
- package/es/table-component/components/number-range/index.js +1 -1
- 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/TableHeadCell.js +3 -1
- package/es/table-component/header/TableHeadCell2.d.ts +3 -3
- package/es/table-component/header/TableHeadCell2.js +3 -1
- package/es/table-component/header/TableHeadGroupCell.d.ts +3 -3
- package/es/table-component/header/TableHeadGroupCell.js +1 -1
- package/es/table-component/header/TableHeadRow.d.ts +3 -3
- package/es/table-component/header/renderFilter.d.ts +2 -2
- package/es/table-component/header/renderFilter.js +5 -1
- package/es/table-component/hook/utils.d.ts +3 -3
- 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/ColumnsGroup/ColumnsGroup.js +1 -1
- package/es/table-virtuoso/InternalTable.d.ts +2 -2
- package/es/table-virtuoso/InternalTable.js +2 -1
- 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/TableHeadCell.js +3 -1
- package/es/table-virtuoso/header/renderFilter.d.ts +2 -2
- package/es/table-virtuoso/header/renderFilter.js +6 -1
- package/es/table-virtuoso/hook/utils.d.ts +3 -3
- 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/TableContainer.js +1 -1
- package/es/table-virtuoso/table/TableWrapper.d.ts +1 -1
- package/es/tabs/index.d.ts +2 -2
- package/es/tabs/index.js +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/index.js +1 -1
- package/lib/ali-table/Grid.js +2 -2
- package/lib/ali-table/InternalTable.d.ts +2 -2
- package/lib/ali-table/InternalTable.js +4 -3
- 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/empty.js +3 -3
- 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/html-table.js +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/renderFilter.js +13 -9
- 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/pipeline/features/ColumnsChoose.js +4 -3
- package/lib/ali-table/pipeline/features/columnCustom.js +6 -4
- package/lib/ali-table/pipeline/features/treeSelect.js +4 -4
- package/lib/ali-table/utils/convertColumnsChoose.d.ts +2 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +3 -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/grid-component/control/InputControl/InputControl.js +2 -2
- package/lib/grid-component/hooks/utils.d.ts +2 -2
- package/lib/grid-component/type.d.ts +5 -3
- package/lib/group-component/ColumnsChoose.d.ts +2 -2
- package/lib/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
- package/lib/group-component/ColumnsGroup/ColumnsGroup.js +4 -4
- package/lib/group-component/InternalTable.d.ts +2 -2
- package/lib/group-component/InternalTable.js +4 -3
- package/lib/group-component/TableContainer.d.ts +1 -2
- package/lib/group-component/TableContainer.js +2 -2
- package/lib/group-component/TableContainerEdit.d.ts +1 -2
- package/lib/group-component/TableContainerEdit.js +8 -7
- package/lib/group-component/body/EditableCell.d.ts +2 -2
- package/lib/group-component/body/EditableCell.js +14 -10
- package/lib/group-component/body/TableBody.d.ts +2 -2
- package/lib/group-component/body/TableBody.js +5 -3
- package/lib/group-component/body/TableBodyCell.d.ts +2 -2
- package/lib/group-component/body/TableBodyCell.js +1 -1
- package/lib/group-component/body/TableBodyCellEdit.d.ts +2 -2
- package/lib/group-component/body/TableBodyCellEdit.js +1 -1
- 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/body/TableBodyRowGroupCell.js +1 -1
- package/lib/group-component/components/ControlCheckbox.d.ts +2 -2
- package/lib/group-component/components/ControlCheckbox.js +4 -3
- package/lib/group-component/components/EditForm/EditForm.d.ts +1 -1
- package/lib/group-component/components/EditForm/EditForm.js +2 -2
- package/lib/group-component/components/InputControl/InputControl.d.ts +1 -2
- package/lib/group-component/components/InputControl/InputControl.js +2 -2
- package/lib/group-component/components/async-select/index.d.ts +2 -2
- package/lib/group-component/components/async-select/index.js +2 -2
- package/lib/group-component/components/async-table-select/index.d.ts +3 -3
- package/lib/group-component/components/async-table-select/index.js +2 -2
- package/lib/group-component/components/checkbox-control/index.d.ts +2 -2
- package/lib/group-component/components/checkbox-control/index.js +3 -2
- package/lib/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/lib/group-component/components/checkbox-filter/CheckboxFilter.js +10 -7
- package/lib/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/lib/group-component/components/checkbox-filter/FilterSearch.js +2 -2
- 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/index.js +3 -2
- package/lib/group-component/components/number-range/index.d.ts +1 -2
- package/lib/group-component/components/number-range/index.js +4 -3
- 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/TableHeadCell.js +6 -4
- package/lib/group-component/header/TableHeadCell2.d.ts +3 -3
- package/lib/group-component/header/TableHeadCell2.js +6 -4
- package/lib/group-component/header/TableHeadGroupCell.d.ts +3 -3
- package/lib/group-component/header/TableHeadGroupCell.js +2 -2
- package/lib/group-component/header/TableHeadRow.d.ts +3 -3
- package/lib/group-component/header/renderFilter.d.ts +2 -2
- package/lib/group-component/header/renderFilter.js +13 -9
- package/lib/group-component/hook/utils.d.ts +3 -3
- package/lib/group-component/table/Grid.d.ts +1 -2
- package/lib/group-component/table/TableWrapper.d.ts +2 -2
- package/lib/locale/index.js +1 -1
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +3 -2
- package/lib/splitter/index.d.ts +2 -2
- package/lib/splitter/index.js +3 -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 +4 -3
- package/lib/table-component/TableContainer.d.ts +1 -2
- package/lib/table-component/TableContainer.js +2 -2
- package/lib/table-component/TableContainerEdit.d.ts +1 -2
- package/lib/table-component/TableContainerEdit.js +3 -3
- package/lib/table-component/body/EditableCell.d.ts +2 -2
- package/lib/table-component/body/EditableCell.js +16 -11
- package/lib/table-component/body/TableBody.d.ts +2 -2
- package/lib/table-component/body/TableBody.js +3 -7
- package/lib/table-component/body/TableBodyCell.d.ts +2 -2
- package/lib/table-component/body/TableBodyCell.js +1 -1
- package/lib/table-component/body/TableBodyCellEdit.d.ts +2 -2
- package/lib/table-component/body/TableBodyCellEdit.js +1 -1
- 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/ControlCheckbox.js +4 -3
- package/lib/table-component/components/EditForm/EditForm.d.ts +1 -1
- package/lib/table-component/components/EditForm/EditForm.js +2 -2
- package/lib/table-component/components/InputControl/InputControl.d.ts +1 -2
- package/lib/table-component/components/InputControl/InputControl.js +2 -2
- package/lib/table-component/components/async-select/index.d.ts +2 -2
- package/lib/table-component/components/async-select/index.js +2 -2
- package/lib/table-component/components/async-table-select/index.d.ts +3 -3
- package/lib/table-component/components/async-table-select/index.js +2 -2
- package/lib/table-component/components/checkbox-control/index.d.ts +2 -2
- package/lib/table-component/components/checkbox-control/index.js +3 -2
- package/lib/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
- package/lib/table-component/components/checkbox-filter/CheckboxFilter.js +10 -7
- package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
- package/lib/table-component/components/checkbox-filter/FilterSearch.js +2 -2
- 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/index.js +3 -2
- package/lib/table-component/components/number-range/index.d.ts +1 -2
- package/lib/table-component/components/number-range/index.js +4 -3
- 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/TableHeadCell.js +6 -4
- package/lib/table-component/header/TableHeadCell2.d.ts +3 -3
- package/lib/table-component/header/TableHeadCell2.js +6 -4
- package/lib/table-component/header/TableHeadGroupCell.d.ts +3 -3
- package/lib/table-component/header/TableHeadGroupCell.js +2 -2
- package/lib/table-component/header/TableHeadRow.d.ts +3 -3
- package/lib/table-component/header/renderFilter.d.ts +2 -2
- package/lib/table-component/header/renderFilter.js +13 -9
- package/lib/table-component/hook/utils.d.ts +3 -3
- 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/ColumnsGroup/ColumnsGroup.js +4 -4
- package/lib/table-virtuoso/InternalTable.d.ts +2 -2
- package/lib/table-virtuoso/InternalTable.js +4 -3
- package/lib/table-virtuoso/body/TableBodyCell.d.ts +2 -2
- package/lib/table-virtuoso/body/TableBodyCell.js +1 -1
- 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/TableHeadCell.js +6 -4
- package/lib/table-virtuoso/header/renderFilter.d.ts +2 -2
- package/lib/table-virtuoso/header/renderFilter.js +15 -10
- package/lib/table-virtuoso/hook/utils.d.ts +3 -3
- 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/TableContainer.js +2 -2
- package/lib/table-virtuoso/table/TableWrapper.d.ts +1 -1
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/index.js +3 -2
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/index.js +3 -2
- package/package.json +70 -67
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
|
-
import
|
|
2
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
3
3
|
import { TableContext } from "../useContext";
|
|
4
4
|
import { isEditable, isDisable, parseBooleanToValue } from "../hook/utils";
|
|
5
5
|
const ControlCheckbox = props => {
|
|
@@ -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 {};
|
|
@@ -4,7 +4,7 @@ import { useForm } from "react-hook-form";
|
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
5
|
import { Col, Row } from "rc-master-ui/es/grid";
|
|
6
6
|
import { isNullOrUndefined, isObjEmpty } from "../../hook/utils";
|
|
7
|
-
import
|
|
7
|
+
import Input from 'rc-master-ui/es/input';
|
|
8
8
|
import { Dropdown } from "antd";
|
|
9
9
|
import Divider from "rc-master-ui/es/divider";
|
|
10
10
|
import Button from "rc-master-ui/es/button";
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
|
-
import
|
|
3
|
+
import Input from 'rc-master-ui/es/input';
|
|
4
4
|
import { Typography } from "antd";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import React, { Fragment } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { BaseOptionType, DefaultOptionType } from "rc-select/lib/Select";
|
|
3
3
|
import type { SelectProps } from "rc-master-ui/es/select";
|
|
4
4
|
import type { LoadOptionsArgs } from '../../../grid-component/type';
|
|
@@ -8,4 +8,4 @@ export interface DebounceSelectProps<OptionType extends BaseOptionType = Default
|
|
|
8
8
|
defaultOptions?: OptionType[];
|
|
9
9
|
rowData?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare function AsyncSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, rowData, ...props }: DebounceSelectProps<OptionType>):
|
|
11
|
+
export declare function AsyncSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, rowData, ...props }: DebounceSelectProps<OptionType>): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
import
|
|
4
|
+
import Select from 'rc-master-ui/es/select';
|
|
5
5
|
export function AsyncSelect({
|
|
6
6
|
loadOptions,
|
|
7
7
|
debounceTimeout = 500,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { BaseOptionType, DefaultOptionType } from "rc-select/lib/Select";
|
|
3
|
-
import type { TableSelectProps } from
|
|
3
|
+
import type { TableSelectProps } from 'rc-master-ui/es/table-select';
|
|
4
4
|
import type { LoadOptionsArgs } from '../../../grid-component/type';
|
|
5
5
|
export interface DebounceSelectProps<OptionType extends BaseOptionType = DefaultOptionType> extends TableSelectProps {
|
|
6
6
|
loadOptions?: (search: string, callback: (newOptions: OptionType[]) => void, args?: LoadOptionsArgs) => void;
|
|
@@ -8,4 +8,4 @@ export interface DebounceSelectProps<OptionType extends BaseOptionType = Default
|
|
|
8
8
|
defaultOptions?: OptionType[];
|
|
9
9
|
rowData?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare function AsyncTableSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, columns, rowData, ...props }: DebounceSelectProps<OptionType>):
|
|
11
|
+
export declare function AsyncTableSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, columns, rowData, ...props }: DebounceSelectProps<OptionType>): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
import
|
|
4
|
+
import TableSelect from 'rc-master-ui/es/table-select';
|
|
5
5
|
export function AsyncTableSelect({
|
|
6
6
|
loadOptions,
|
|
7
7
|
debounceTimeout = 500,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type OptionType = {
|
|
3
3
|
value: any;
|
|
4
4
|
label: string;
|
|
@@ -9,5 +9,5 @@ type Props<T> = {
|
|
|
9
9
|
value: any[];
|
|
10
10
|
onChange?: (value: any[]) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const CheckboxControl: <T extends OptionType>(props: Props<T>) =>
|
|
12
|
+
declare const CheckboxControl: <T extends OptionType>(props: Props<T>) => JSX.Element;
|
|
13
13
|
export default CheckboxControl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TableLocale } from "rc-master-ui/es/table/interface";
|
|
3
3
|
type Props = {
|
|
4
4
|
options: any[];
|
|
@@ -14,5 +14,5 @@ type Props = {
|
|
|
14
14
|
locale?: TableLocale;
|
|
15
15
|
filterMode?: 'menu' | 'tree';
|
|
16
16
|
};
|
|
17
|
-
declare const CheckboxFilter: (props: Props) =>
|
|
17
|
+
declare const CheckboxFilter: (props: Props) => JSX.Element;
|
|
18
18
|
export default CheckboxFilter;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import
|
|
3
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
4
|
+
import Menu from 'rc-master-ui/es/menu';
|
|
5
|
+
import Radio from 'rc-master-ui/es/radio';
|
|
6
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
4
7
|
import { Tree } from "antd";
|
|
5
8
|
import { flattenKeys } from "rc-master-ui/es/table/hooks/useFilter";
|
|
6
9
|
import FilterSearch from "./FilterSearch";
|
|
@@ -8,5 +8,5 @@ interface FilterSearchProps<RecordType = AnyObject> {
|
|
|
8
8
|
tablePrefixCls: string;
|
|
9
9
|
locale?: TableLocale;
|
|
10
10
|
}
|
|
11
|
-
declare const FilterSearch: <RecordType extends AnyObject = AnyObject>(props: FilterSearchProps<RecordType>) =>
|
|
11
|
+
declare const FilterSearch: <RecordType extends AnyObject = AnyObject>(props: FilterSearchProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default FilterSearch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommandItem } from "../../../grid-component/type";
|
|
3
3
|
type Props<T> = {
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ type Props<T> = {
|
|
|
6
6
|
item: CommandItem;
|
|
7
7
|
onClick: (e: any) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const Command: <T extends object>(props: Props<T>) =>
|
|
9
|
+
declare const Command: <T extends object>(props: Props<T>) => JSX.Element;
|
|
10
10
|
export default Command;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyboardEventHandler } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { IFormat } from "../../../grid-component/type";
|
|
4
3
|
type Props = {
|
|
5
4
|
t?: any;
|
|
@@ -8,5 +7,5 @@ type Props = {
|
|
|
8
7
|
onChange?: (values: any[]) => void;
|
|
9
8
|
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
|
10
9
|
};
|
|
11
|
-
declare const NumberInput: (props: Props) =>
|
|
10
|
+
declare const NumberInput: (props: Props) => JSX.Element;
|
|
12
11
|
export default NumberInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import { NumericFormat } from "react-numeric-component";
|
|
3
|
-
import
|
|
3
|
+
import Input from 'rc-master-ui/es/input';
|
|
4
4
|
import { checkDecimalSeparator, checkThousandSeparator } from "../../hook/utils";
|
|
5
5
|
const NumberInput = props => {
|
|
6
6
|
const {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyboardEventHandler } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { IFormat } from "../../../grid-component/type";
|
|
4
3
|
type Props = {
|
|
5
4
|
t?: any;
|
|
@@ -9,5 +8,5 @@ type Props = {
|
|
|
9
8
|
onChange?: (values: any[]) => void;
|
|
10
9
|
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
|
11
10
|
};
|
|
12
|
-
declare const NumberRange: (props: Props) =>
|
|
11
|
+
declare const NumberRange: (props: Props) => JSX.Element;
|
|
13
12
|
export default NumberRange;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import { NumericFormat } from "react-numeric-component";
|
|
3
|
-
import
|
|
3
|
+
import Input from 'rc-master-ui/es/input';
|
|
4
4
|
import { checkDecimalSeparator, checkThousandSeparator } from "../../hook/utils";
|
|
5
5
|
const NumberRange = props => {
|
|
6
6
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterProps<T> {
|
|
4
4
|
table: Table<T>;
|
|
5
5
|
}
|
|
6
|
-
declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) =>
|
|
6
|
+
declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) => JSX.Element;
|
|
7
7
|
export default TableFooter;
|
|
@@ -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,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { HeaderGroup, Table } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterRowProps<T> {
|
|
4
4
|
table: Table<T>;
|
|
5
5
|
headerGroup: HeaderGroup<T>;
|
|
6
6
|
}
|
|
7
|
-
declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) =>
|
|
7
|
+
declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default TableFooterRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Column } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { Table } from '@tanstack/react-table';
|
|
3
|
+
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
interface TableHeadProps<T> {
|
|
6
6
|
tableContainerRef: React.RefObject<HTMLDivElement>;
|
|
@@ -11,5 +11,5 @@ interface TableHeadProps<T> {
|
|
|
11
11
|
fixedLeftColumns: Column<T, unknown>[];
|
|
12
12
|
fixedRightColumns: Column<T, unknown>[];
|
|
13
13
|
}
|
|
14
|
-
declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) =>
|
|
14
|
+
declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) => JSX.Element;
|
|
15
15
|
export default TableHead;
|
|
@@ -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
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -11,5 +11,5 @@ interface TableHeadCellProps<T> {
|
|
|
11
11
|
colSpan: any;
|
|
12
12
|
rowSpan: any;
|
|
13
13
|
}
|
|
14
|
-
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
14
|
+
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
15
15
|
export default TableHeadCell;
|
|
@@ -2,7 +2,9 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { Button, Space } from 'antd';
|
|
3
3
|
import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
6
|
+
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
7
|
+
import Select from 'rc-master-ui/es/select';
|
|
6
8
|
import { booleanOperator, nonActionColumn, numberOperator, stringOperator, translateOption } from "../../grid-component/hooks";
|
|
7
9
|
import { extendsObject, getCommonPinningStyles, getDefaultOperator, getTypeFilter } from "../hook/utils";
|
|
8
10
|
import { TableContext } from "../useContext";
|
|
@@ -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
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
|
|
|
13
13
|
rowSpan: number;
|
|
14
14
|
depth: number;
|
|
15
15
|
}
|
|
16
|
-
declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
16
|
+
declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableHeadCell2;
|
|
@@ -2,7 +2,9 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { Button, Space } from 'antd';
|
|
3
3
|
import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
6
|
+
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
7
|
+
import Select from 'rc-master-ui/es/select';
|
|
6
8
|
import { excludeItems, extendsObject, getCommonPinningStyles, getDefaultOperator, getTypeFilter, removeDuplicatesByKey } from "../hook/utils";
|
|
7
9
|
import { TableContext } from "../useContext";
|
|
8
10
|
import { renderFilter } from "./renderFilter";
|
|
@@ -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
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
|
|
|
13
13
|
rowSpan: number;
|
|
14
14
|
depth: number;
|
|
15
15
|
}
|
|
16
|
-
declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
16
|
+
declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableHeadGroupCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import
|
|
3
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
4
4
|
import { getCommonPinningStyles2 } from "../hook/utils";
|
|
5
5
|
import { TableContext } from "../useContext";
|
|
6
6
|
const TableHeadGroupCell = props => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Column } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { HeaderGroup, Table } from '@tanstack/react-table';
|
|
4
4
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadRowProps<T> {
|
|
6
6
|
headerGroup: HeaderGroup<T>;
|
|
@@ -11,5 +11,5 @@ interface TableHeadRowProps<T> {
|
|
|
11
11
|
fixedLeftColumns: Column<T, unknown>[];
|
|
12
12
|
fixedRightColumns: Column<T, unknown>[];
|
|
13
13
|
}
|
|
14
|
-
declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) =>
|
|
14
|
+
declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) => JSX.Element;
|
|
15
15
|
export default TableHeadRow;
|
|
@@ -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>;
|
|
@@ -17,5 +17,5 @@ type RenderFilterProps<RecordType> = {
|
|
|
17
17
|
doFilter?: (type: boolean) => void;
|
|
18
18
|
tableLocal: any;
|
|
19
19
|
};
|
|
20
|
-
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) =>
|
|
20
|
+
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { Fragment } from "react";
|
|
6
6
|
import moment from "moment/moment";
|
|
7
|
-
import
|
|
7
|
+
import DatePicker from 'rc-master-ui/es/date-picker';
|
|
8
|
+
import DateRangePicker from 'rc-master-ui/es/date-range-picker';
|
|
9
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
10
|
+
import Input from 'rc-master-ui/es/input';
|
|
11
|
+
import Select from 'rc-master-ui/es/select';
|
|
8
12
|
import dayjs from "dayjs";
|
|
9
13
|
import { convertDateToDayjs, convertDayjsToDate, convertFormat, getDatepickerFormat, getDateRangeFormat, getTypeFilter, isEmpty } from "../hook/utils";
|
|
10
14
|
import NumberInput from "../components/number";
|
|
@@ -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 { IPositionCell } from "../useContext";
|
|
9
9
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
@@ -84,7 +84,7 @@ export declare const customWeekStartEndFormat: (value: any, weekFormat: string)
|
|
|
84
84
|
export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
|
|
85
85
|
export declare const isNameColor: (strColor: string) => boolean;
|
|
86
86
|
export declare const isColor: (value: string) => boolean;
|
|
87
|
-
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/
|
|
87
|
+
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/es/color-picker/interface").PresetsItem[];
|
|
88
88
|
export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
|
|
89
89
|
export declare const getDefaultValue: (defaultValue: any) => AnyObject;
|
|
90
90
|
export declare const flattenData: <RecordType extends AnyObject = AnyObject>(childrenColumnName: string, data?: RecordType[]) => RecordType[];
|
|
@@ -194,10 +194,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
194
194
|
value: any;
|
|
195
195
|
rowData: RecordType;
|
|
196
196
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
|
|
197
|
-
onCellStyles?: Omit<CSSProperties, "
|
|
198
|
-
onCellHeaderStyles?: Omit<CSSProperties, "
|
|
197
|
+
onCellStyles?: Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width">);
|
|
198
|
+
onCellHeaderStyles?: Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width">);
|
|
199
199
|
onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
|
|
200
|
-
onCellFooterStyles?: Omit<CSSProperties, "
|
|
200
|
+
onCellFooterStyles?: Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "minWidth" | "position" | "width">);
|
|
201
201
|
getValue?: (row: any, rowIndex: number) => any;
|
|
202
202
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
203
203
|
headerCellProps?: import("./../../grid-component/type").CellProps;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ColumnDef, ColumnPinningState, ExpandedState, 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
|
rowKey: string;
|
|
@@ -29,5 +28,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
29
28
|
columnVisibility?: any;
|
|
30
29
|
setColumnVisibility?: Dispatch<SetStateAction<any>>;
|
|
31
30
|
};
|
|
32
|
-
declare const Grid: <RecordType extends object>(props: Props<RecordType>) =>
|
|
31
|
+
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
33
32
|
export default Grid;
|
|
@@ -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";
|
|
@@ -30,5 +30,5 @@ type Props<T> = {
|
|
|
30
30
|
fixedLeftColumns: Column<T, unknown>[];
|
|
31
31
|
fixedRightColumns: Column<T, unknown>[];
|
|
32
32
|
};
|
|
33
|
-
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) =>
|
|
33
|
+
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
34
34
|
export default TableWrapper;
|
package/es/locale/index.js
CHANGED
package/es/select/index.d.ts
CHANGED
package/es/select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Select from 'rc-master-ui/es/select';
|
|
2
2
|
export default Select;
|
package/es/splitter/index.d.ts
CHANGED
package/es/splitter/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Splitter from 'rc-master-ui/es/splitter';
|
|
2
2
|
export default Splitter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnsTable, ColumnTable, GridTableLocale, Locale } from "./../grid-component/type";
|
|
3
3
|
import type { ColumnDef, Table } from "@tanstack/react-table";
|
|
4
4
|
export type IColumnsChoose<RecordType> = {
|
|
@@ -14,4 +14,4 @@ export type IColumnsChoose<RecordType> = {
|
|
|
14
14
|
locale?: Locale;
|
|
15
15
|
tableLocal: GridTableLocale;
|
|
16
16
|
};
|
|
17
|
-
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) =>
|
|
17
|
+
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ContextInfo, ContextMenuItem } from "./../grid-component/type";
|
|
3
3
|
export declare const findItemByKey: (array: any[], key: string, value: any) => any;
|
|
4
4
|
type Props<RecordType> = {
|
|
@@ -15,5 +15,5 @@ type Props<RecordType> = {
|
|
|
15
15
|
viewportHeight: number;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) =>
|
|
18
|
+
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
19
19
|
export default ContextMenu;
|
|
@@ -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 './style.scss';
|
|
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;
|
|
@@ -13,7 +13,8 @@ import { addRowIdArray, convertFlatColumn1, convertToObj, convertToObjTrue, filt
|
|
|
13
13
|
import { convertToTanStackColumns } from "./hook/useColumns";
|
|
14
14
|
import { convertColumns } from "./hook/convert";
|
|
15
15
|
import { removeInvisibleColumns } from "../grid-component/hooks";
|
|
16
|
-
import
|
|
16
|
+
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
17
|
+
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
17
18
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
18
19
|
dayjs.extend(customParseFormat);
|
|
19
20
|
const InternalTable = props => {
|