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,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;
|
|
@@ -27,5 +26,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
27
26
|
isDataTree: boolean;
|
|
28
27
|
mergedSelectedKeys: Key[];
|
|
29
28
|
};
|
|
30
|
-
declare const Grid: <RecordType extends object>(props: Props<RecordType>) =>
|
|
29
|
+
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
31
30
|
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";
|
|
@@ -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 {};
|
|
@@ -8,7 +8,7 @@ import React, { useRef, useState } from "react";
|
|
|
8
8
|
|
|
9
9
|
import { Button, Popover } from "antd";
|
|
10
10
|
// import {SettingOutlined} from "@ant-design/icons";
|
|
11
|
-
import
|
|
11
|
+
import Select from 'rc-master-ui/es/select';
|
|
12
12
|
import styled from "styled-components";
|
|
13
13
|
import { customFilterOption } from "../../grid-component/hooks";
|
|
14
14
|
const BoxAction = styled.div.withConfig({
|
|
@@ -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;
|
|
@@ -15,7 +15,8 @@ import Grid from "./table/Grid";
|
|
|
15
15
|
import { removeColumns } from "../table-component/hook/utils";
|
|
16
16
|
import { OperatorFeature } from "../table-component/features/operator";
|
|
17
17
|
import { convertToTanStackColumns } from "../table-component/hook/useColumns";
|
|
18
|
-
import
|
|
18
|
+
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
19
|
+
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
19
20
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
20
21
|
dayjs.extend(customParseFormat);
|
|
21
22
|
export const SELECTION_COLUMN = {};
|
|
@@ -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;
|
|
@@ -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 { extendsObject, getCommonPinningHeaderStyles, getDefaultOperator, getTypeFilter } from "../hook/utils";
|
|
7
9
|
import { renderFilter } from "./renderFilter";
|
|
8
10
|
import { TableContext } from "../useContext";
|
|
@@ -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,6 +1,11 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import moment from "moment/moment";
|
|
3
|
-
import
|
|
3
|
+
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
4
|
+
import DatePicker from 'rc-master-ui/es/date-picker';
|
|
5
|
+
import DateRangePicker from 'rc-master-ui/es/date-range-picker';
|
|
6
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
7
|
+
import Input from 'rc-master-ui/es/input';
|
|
8
|
+
import Select from 'rc-master-ui/es/select';
|
|
4
9
|
import dayjs from "dayjs";
|
|
5
10
|
import { convertDateToDayjs, convertDayjsToDate, convertFormat, getDatepickerFormat, getDateRangeFormat, getTypeFilter, isEmpty } from "../hook/utils";
|
|
6
11
|
import CheckboxFilter from "../../table-component/components/checkbox-filter/CheckboxFilter";
|
|
@@ -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";
|
|
@@ -86,7 +86,7 @@ export declare const customWeekStartEndFormat: (value: any, weekFormat: string)
|
|
|
86
86
|
export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
|
|
87
87
|
export declare const isNameColor: (strColor: string) => boolean;
|
|
88
88
|
export declare const isColor: (value: string) => boolean;
|
|
89
|
-
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/
|
|
89
|
+
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/es/color-picker/interface").PresetsItem[];
|
|
90
90
|
export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
|
|
91
91
|
export declare const getDefaultValue: (defaultValue: any) => AnyObject;
|
|
92
92
|
export declare const flattenData: <RecordType extends AnyObject = AnyObject>(childrenColumnName: string, data?: RecordType[]) => RecordType[];
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Pagination from 'rc-master-ui/es/pagination';
|
|
5
|
-
import
|
|
5
|
+
import Toolbar from 'rc-master-ui/es/toolbar';
|
|
6
6
|
import { Collapse2, Expand2, Maximize, Minimize } from 'becoxy-icons';
|
|
7
7
|
import { numericFormatter } from 'react-numeric-component';
|
|
8
8
|
import TableWrapper from "./TableWrapper";
|
|
@@ -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;
|
package/es/tabs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { TabPaneProps, TabsProps } from 'rc-master-ui';
|
|
1
|
+
import Tabs from 'rc-master-ui/es/tabs';
|
|
2
|
+
import type { TabPaneProps, TabsProps } from 'rc-master-ui/es/tabs';
|
|
3
3
|
export type { TabPaneProps, TabsProps };
|
|
4
4
|
export default Tabs;
|
package/es/tabs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Tabs from 'rc-master-ui/es/tabs';
|
|
2
2
|
export default Tabs;
|
package/es/tree-select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import TreeSelect from 'rc-master-ui/es/tree-select';
|
|
2
2
|
export default TreeSelect;
|
package/lib/ali-table/Grid.js
CHANGED
|
@@ -11,7 +11,7 @@ var _locale = require("rc-master-ui/es/locale");
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactTooltip = require("react-tooltip");
|
|
13
13
|
require("./base-table/styles.scss");
|
|
14
|
-
var
|
|
14
|
+
var _toolbar = _interopRequireDefault(require("rc-master-ui/es/toolbar"));
|
|
15
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
16
|
var _pagination = _interopRequireDefault(require("rc-master-ui/es/pagination"));
|
|
17
17
|
var _becoxyIcons = require("becoxy-icons");
|
|
@@ -191,7 +191,7 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
191
191
|
flex: 1,
|
|
192
192
|
overflow: 'hidden'
|
|
193
193
|
}
|
|
194
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
194
|
+
}, /*#__PURE__*/_react.default.createElement(_toolbar.default, {
|
|
195
195
|
items: topToolbaritems,
|
|
196
196
|
mode: toolbarMode
|
|
197
197
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -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;
|
|
@@ -13,7 +13,8 @@ var _faker = require("@faker-js/faker");
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
require("./base-table/styles.scss");
|
|
15
15
|
var _utils = require("../table-component/hook/utils");
|
|
16
|
-
var
|
|
16
|
+
var _CustomProvider = _interopRequireDefault(require("rc-master-ui/es/CustomProvider"));
|
|
17
|
+
var _configProvider = _interopRequireDefault(require("rc-master-ui/es/config-provider"));
|
|
17
18
|
var _antd = require("antd");
|
|
18
19
|
var _useLocale = require("../locale/useLocale");
|
|
19
20
|
var _useContext = require("./useContext");
|
|
@@ -234,9 +235,9 @@ const InternalTable = props => {
|
|
|
234
235
|
|
|
235
236
|
// }
|
|
236
237
|
|
|
237
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
238
|
+
return /*#__PURE__*/_react.default.createElement(_configProvider.default, {
|
|
238
239
|
locale: language
|
|
239
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
240
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomProvider.default, {
|
|
240
241
|
locale: languages
|
|
241
242
|
}, /*#__PURE__*/_react.default.createElement(_useContext.TableContext.Provider, {
|
|
242
243
|
value: {
|
|
@@ -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;
|
|
@@ -9,11 +9,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _colgroup = require("./colgroup");
|
|
11
11
|
var _styles = require("./styles");
|
|
12
|
-
var
|
|
12
|
+
var _empty = _interopRequireDefault(require("rc-master-ui/es/empty"));
|
|
13
13
|
const DefaultEmptyContent = /*#__PURE__*/_react.default.memo(({
|
|
14
14
|
locale
|
|
15
|
-
}) => /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(
|
|
16
|
-
image:
|
|
15
|
+
}) => /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_empty.default, {
|
|
16
|
+
image: _empty.default.PRESENTED_IMAGE_SIMPLE,
|
|
17
17
|
description: locale?.table?.emptyText
|
|
18
18
|
})));
|
|
19
19
|
function EmptyHtmlTable({
|
|
@@ -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;
|
|
@@ -13,7 +13,7 @@ var _colgroup = require("./colgroup");
|
|
|
13
13
|
var _SpanManager = _interopRequireDefault(require("./helpers/SpanManager"));
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
var _hooks = require("../../grid-component/hooks");
|
|
16
|
-
var
|
|
16
|
+
var _space = _interopRequireDefault(require("rc-master-ui/es/space"));
|
|
17
17
|
var _Command = _interopRequireDefault(require("../../table-component/components/command/Command"));
|
|
18
18
|
var _useColumns = require("../../table-component/hook/useColumns");
|
|
19
19
|
function HtmlTable({
|
|
@@ -116,7 +116,7 @@ function HtmlTable({
|
|
|
116
116
|
}) : [];
|
|
117
117
|
cellContent = /*#__PURE__*/_react.default.createElement("div", {
|
|
118
118
|
className: "ui-rc_cell-content"
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, null, commands.filter(it => it.visible !== false).map(item => {
|
|
120
120
|
return /*#__PURE__*/_react.default.createElement(_Command.default, {
|
|
121
121
|
id: id,
|
|
122
122
|
key: item.id,
|
|
@@ -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 {};
|
|
@@ -7,7 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.renderFilter = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _moment = _interopRequireDefault(require("moment/moment"));
|
|
10
|
-
var
|
|
10
|
+
var _datePicker = _interopRequireDefault(require("rc-master-ui/es/date-picker"));
|
|
11
|
+
var _dateRangePicker = _interopRequireDefault(require("rc-master-ui/es/date-range-picker"));
|
|
12
|
+
var _empty = _interopRequireDefault(require("rc-master-ui/es/empty"));
|
|
13
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
14
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
11
15
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
16
|
var _utils = require("../../table-component/hook/utils");
|
|
13
17
|
var _number = _interopRequireDefault(require("../../table-component/components/number"));
|
|
@@ -66,7 +70,7 @@ const renderFilter = args => {
|
|
|
66
70
|
const dateValue = selectedKeys[0] ? (0, _utils.convertDateToDayjs)(new Date(selectedKeys[0]), dateFormat) : null;
|
|
67
71
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
68
72
|
className: 'mb-1'
|
|
69
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
70
74
|
format: {
|
|
71
75
|
format: dateFormat,
|
|
72
76
|
type: 'mask'
|
|
@@ -91,7 +95,7 @@ const renderFilter = args => {
|
|
|
91
95
|
const dateRangeValue = selectedKeys && selectedKeys.length > 0 ? [selectedKeys[0] ? new Date(selectedKeys[0]) : '', selectedKeys[1] ? new Date(selectedKeys[1]) : ''] : null;
|
|
92
96
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
93
97
|
className: 'mb-1'
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(_dateRangePicker.default
|
|
95
99
|
// placeholder={['Ngày bắt đầu', 'Ngày bắt đầu']}
|
|
96
100
|
, {
|
|
97
101
|
style: {
|
|
@@ -116,7 +120,7 @@ const renderFilter = args => {
|
|
|
116
120
|
const weekValue = !(0, _utils.isEmpty)(selectedKeys[0]) ? (0, _dayjs.default)(selectedKeys[0], dateFormat) : null;
|
|
117
121
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
118
122
|
className: 'mb-1'
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
123
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
120
124
|
format: {
|
|
121
125
|
format: dateFormat,
|
|
122
126
|
type: 'mask'
|
|
@@ -141,7 +145,7 @@ const renderFilter = args => {
|
|
|
141
145
|
const monthValue = !(0, _utils.isEmpty)(selectedKeys[0]) ? (0, _dayjs.default)(selectedKeys[0], dateFormat) : null;
|
|
142
146
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
143
147
|
className: 'mb-1'
|
|
144
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
148
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
145
149
|
format: {
|
|
146
150
|
format: dateFormat,
|
|
147
151
|
type: 'mask'
|
|
@@ -242,7 +246,7 @@ const renderFilter = args => {
|
|
|
242
246
|
case 'Dropdown':
|
|
243
247
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
244
248
|
className: 'mb-1'
|
|
245
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
249
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default
|
|
246
250
|
// options={translateOption(numberOperator, t)}
|
|
247
251
|
// options={find ? options : column.source ?? []}
|
|
248
252
|
, {
|
|
@@ -252,8 +256,8 @@ const renderFilter = args => {
|
|
|
252
256
|
marginBottom: 8
|
|
253
257
|
},
|
|
254
258
|
value: selectedKeys[0],
|
|
255
|
-
notFoundContent: /*#__PURE__*/_react.default.createElement(
|
|
256
|
-
image:
|
|
259
|
+
notFoundContent: /*#__PURE__*/_react.default.createElement(_empty.default, {
|
|
260
|
+
image: _empty.default.PRESENTED_IMAGE_SIMPLE,
|
|
257
261
|
description: locale?.emptyText
|
|
258
262
|
}),
|
|
259
263
|
onChange: val => {
|
|
@@ -284,7 +288,7 @@ const renderFilter = args => {
|
|
|
284
288
|
default:
|
|
285
289
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
286
290
|
className: 'mb-1'
|
|
287
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
291
|
+
}, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
288
292
|
className: "",
|
|
289
293
|
classNames: {
|
|
290
294
|
input: 'filter-input'
|
|
@@ -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;
|
|
@@ -13,7 +13,8 @@ var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/SearchOu
|
|
|
13
13
|
var _becoxyIcons = require("becoxy-icons");
|
|
14
14
|
var _utils = require("../../../table-component/hook/utils");
|
|
15
15
|
var _convertColumnsChoose = require("../../utils/convertColumnsChoose");
|
|
16
|
-
var
|
|
16
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
17
|
+
var _popover = _interopRequireDefault(require("rc-master-ui/es/popover"));
|
|
17
18
|
var _button = _interopRequireDefault(require("rc-master-ui/es/button"));
|
|
18
19
|
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); }
|
|
19
20
|
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; }
|
|
@@ -109,14 +110,14 @@ const ColumnsChoose = props => {
|
|
|
109
110
|
setMergedSelectedKeys(defaultSelectedKeys);
|
|
110
111
|
hide();
|
|
111
112
|
};
|
|
112
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
113
114
|
placement: 'bottomLeft',
|
|
114
115
|
content: /*#__PURE__*/_react.default.createElement(CustomStyle, {
|
|
115
116
|
style: {
|
|
116
117
|
minWidth: 250,
|
|
117
118
|
maxWidth: 320
|
|
118
119
|
}
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
120
|
+
}, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
120
121
|
style: {
|
|
121
122
|
marginBottom: 8
|
|
122
123
|
},
|