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
package/assets/index.css
CHANGED
|
@@ -631,6 +631,9 @@
|
|
|
631
631
|
margin: 0;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
+
.ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination {
|
|
635
|
+
border-bottom: 1px solid #e0e0e0;
|
|
636
|
+
}
|
|
634
637
|
.ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination::before {
|
|
635
638
|
content: "";
|
|
636
639
|
position: absolute;
|
|
@@ -656,9 +659,6 @@
|
|
|
656
659
|
.ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination.top-pagination .ui-rc-pagination-total-text {
|
|
657
660
|
margin-left: auto;
|
|
658
661
|
}
|
|
659
|
-
.ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination {
|
|
660
|
-
border-bottom: 1px solid #e0e0e0;
|
|
661
|
-
}
|
|
662
662
|
|
|
663
663
|
.ui-rc-pagination .ui-rc-pagination-total-text {
|
|
664
664
|
white-space: nowrap;
|
package/es/ali-table/Grid.js
CHANGED
|
@@ -5,7 +5,7 @@ import React, { useContext } from "react";
|
|
|
5
5
|
import { Tooltip } from "react-tooltip";
|
|
6
6
|
import "./base-table/styles.scss";
|
|
7
7
|
// import type { TableProps } from "../table-component"
|
|
8
|
-
import
|
|
8
|
+
import Toolbar from 'rc-master-ui/es/toolbar';
|
|
9
9
|
import classNames from "classnames";
|
|
10
10
|
import Pagination from "rc-master-ui/es/pagination";
|
|
11
11
|
import { Maximize, Minimize } from "becoxy-icons";
|
|
@@ -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;
|
|
@@ -8,7 +8,8 @@ import "./base-table/styles.scss";
|
|
|
8
8
|
import { addRowIdArray, filterDataByColumns,
|
|
9
9
|
// getInvisibleColumns,
|
|
10
10
|
getVisibleFields, groupArrayByColumns, isTreeArray, revertConvertFilters, sortByType, sumFields } from "../table-component/hook/utils";
|
|
11
|
-
import
|
|
11
|
+
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
12
|
+
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
12
13
|
import { Modal } from 'antd';
|
|
13
14
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
14
15
|
import { TableContext } from "./useContext";
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import cx from 'classnames';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Colgroup } from "./colgroup";
|
|
4
4
|
import { Classes } from "./styles";
|
|
5
|
-
import
|
|
5
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
6
6
|
const DefaultEmptyContent = /*#__PURE__*/React.memo(({
|
|
7
7
|
locale
|
|
8
8
|
}) => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Empty, {
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ import { Colgroup } from "./colgroup";
|
|
|
6
6
|
import SpanManager from "./helpers/SpanManager";
|
|
7
7
|
import { Classes } from "./styles";
|
|
8
8
|
import { nonActionColumn } from "../../grid-component/hooks";
|
|
9
|
-
import
|
|
9
|
+
import Space from 'rc-master-ui/es/space';
|
|
10
10
|
import Command from "../../table-component/components/command/Command";
|
|
11
11
|
import { renderValueCell } from "../../table-component/hook/useColumns";
|
|
12
12
|
export function HtmlTable({
|
|
@@ -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 {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import moment from "moment/moment";
|
|
3
|
-
import
|
|
3
|
+
import DatePicker from 'rc-master-ui/es/date-picker';
|
|
4
|
+
import DateRangePicker from 'rc-master-ui/es/date-range-picker';
|
|
5
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
6
|
+
import Input from 'rc-master-ui/es/input';
|
|
7
|
+
import Select from 'rc-master-ui/es/select';
|
|
4
8
|
import dayjs from "dayjs";
|
|
5
9
|
import { convertDateToDayjs, convertDayjsToDate, convertFormat, getDatepickerFormat, getDateRangeFormat, getTypeFilter, isEmpty } from "../../table-component/hook/utils";
|
|
6
10
|
import NumberInput from "../../table-component/components/number";
|
|
@@ -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;
|
|
@@ -6,7 +6,8 @@ import SearchOutlined from "@ant-design/icons/SearchOutlined";
|
|
|
6
6
|
import { Settings } from "becoxy-icons";
|
|
7
7
|
import { updateColumns1 } from "../../../table-component/hook/utils";
|
|
8
8
|
import { convertColumnsToTreeData, filterColumnsByField } from "../../utils/convertColumnsChoose";
|
|
9
|
-
import
|
|
9
|
+
import Input from 'rc-master-ui/es/input';
|
|
10
|
+
import Popover from 'rc-master-ui/es/popover';
|
|
10
11
|
import Button from "rc-master-ui/es/button";
|
|
11
12
|
const CustomStyle = styled.div.withConfig({
|
|
12
13
|
displayName: "CustomStyle",
|
|
@@ -6,7 +6,9 @@ import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
|
6
6
|
import { booleanOperator, findItemPath, nonActionColumn, numberOperator, pageSizeOptions, stringOperator, translateOption, updateArrayByKey } from "../../../grid-component/hooks";
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import { Button } from 'antd';
|
|
9
|
-
import
|
|
9
|
+
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
10
|
+
import Select from 'rc-master-ui/es/select';
|
|
11
|
+
import Space from 'rc-master-ui/es/space';
|
|
10
12
|
import { convertFilters, extendsObject, getDefaultOperator, getTypeFilter } from "../../../table-component/hook/utils";
|
|
11
13
|
import { renderFilter } from "../../base-table/renderFilter";
|
|
12
14
|
import { renderValueCell } from "../../../table-component/hook/useColumns";
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { always } from "../../utils/others";
|
|
3
3
|
import { findItemByKey, updateArrayByKey } from "../../../table-component/hook/utils";
|
|
4
4
|
import { mergeCellProps } from "../../utils";
|
|
5
|
-
import
|
|
5
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
6
6
|
import { buildTreeIndex, getAllEnabledKeys, handleSelectOptimized,
|
|
7
7
|
// isRowChecked,
|
|
8
8
|
// isRowIndeterminate,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeDataNode } from "antd";
|
|
2
|
-
import { ColumnTable } from "../../grid-component";
|
|
1
|
+
import type { TreeDataNode } from "antd";
|
|
2
|
+
import type { ColumnTable } from "../../grid-component";
|
|
3
3
|
export declare function convertColumnsToTreeData(columns: ColumnTable[], groupColumns?: string[], t?: any): TreeDataNode[];
|
|
4
4
|
export declare function filterColumnsByField(columns: ColumnTable[], fieldList: string[]): ColumnTable[];
|
|
5
5
|
export declare function filterVisibleColumns(columns: ColumnTable[]): ColumnTable[];
|
package/es/collapse/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CollapseProps, CollapsePanelProps } from 'rc-master-ui';
|
|
1
|
+
import Collapse from 'rc-master-ui/es/collapse';
|
|
2
|
+
import type { CollapseProps, CollapsePanelProps } from 'rc-master-ui/es/collapse';
|
|
3
3
|
export type { CollapseProps, CollapsePanelProps };
|
|
4
4
|
export default Collapse;
|
package/es/collapse/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Collapse from 'rc-master-ui/es/collapse';
|
|
2
2
|
export default Collapse;
|
package/es/global.d.ts
ADDED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ComponentSpinner: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ComponentSpinner: () => JSX.Element;
|
|
3
3
|
export default ComponentSpinner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TableProps } from "../grid-component";
|
|
3
|
-
declare const TempTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
3
|
+
declare const TempTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
4
4
|
export default TempTable;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HTMLInputTypeAttribute } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface IFFormInput {
|
|
4
3
|
id?: any;
|
|
5
4
|
control: any;
|
|
@@ -23,5 +22,5 @@ interface IFFormInput {
|
|
|
23
22
|
t?: any;
|
|
24
23
|
onKeyDown?: (event: any) => void;
|
|
25
24
|
}
|
|
26
|
-
declare const InputControl: (props: IFFormInput) =>
|
|
25
|
+
declare const InputControl: (props: IFFormInput) => JSX.Element;
|
|
27
26
|
export default InputControl;
|
|
@@ -1,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,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import type { EditType, IColumnType, TypeFilter } from
|
|
3
|
+
import type { EditType, IColumnType, TypeFilter } from 'rc-master-ui/es/table/interface';
|
|
4
4
|
import type { Key } from "react";
|
|
5
5
|
import type { ColumnsTable } from "./../index";
|
|
6
6
|
import type { AnyObject, ColumnTable, GetRowKey, IFormat } from "../type";
|
|
@@ -53,7 +53,7 @@ export declare const isObjEmpty: (obj: any) => boolean;
|
|
|
53
53
|
export declare const getColumnsVisible: <T>(columns: ColumnsTable<T>, index: number) => ColumnTable<T>[];
|
|
54
54
|
export declare const updateData: <Record = AnyObject>(initData: Record[], rows: Record[], key: keyof Record) => Record[];
|
|
55
55
|
export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
|
|
56
|
-
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/
|
|
56
|
+
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/es/color-picker/interface").PresetsItem[];
|
|
57
57
|
export declare function findAllChildrenKeys<RecordType>(data: readonly RecordType[], getRowKey: GetRowKey<RecordType>, childrenColumnName: string): Key[];
|
|
58
58
|
export declare function findAllChildrenKeys2<RecordType>(data: readonly RecordType[], rowKey: any, childrenColumnName: string): Key[];
|
|
59
59
|
export declare const flattenArray: <RecordType extends AnyObject = AnyObject>(arr: any[]) => RecordType[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { CheckboxProps
|
|
1
|
+
import type { CheckboxProps } from 'rc-master-ui/es/checkbox';
|
|
2
|
+
import type { ColorPickerProps } from 'rc-master-ui/es/color-picker';
|
|
3
|
+
import type { TablePaginationConfig } from 'rc-master-ui/es/table/interface';
|
|
2
4
|
import type { ItemType } from 'rc-master-ui/es/menu/interface';
|
|
3
5
|
import type { Cell, Header, OnChangeFn } from '@tanstack/react-table';
|
|
4
6
|
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
5
|
-
import type { TableLocale } from "rc-master-ui/
|
|
6
|
-
import type { PaginationLocale } from 'rc-master-ui/
|
|
7
|
+
import type { TableLocale } from "rc-master-ui/es/table/interface";
|
|
8
|
+
import type { PaginationLocale } from 'rc-master-ui/es/pagination/Pagination';
|
|
7
9
|
import type { BaseTableCSSVariables } from '../ali-table/base-table/styles';
|
|
8
10
|
declare module "@tanstack/table-core" {
|
|
9
11
|
interface ColumnMeta<any, any> extends ColumnTable {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnsTable, ColumnTable } from "./../grid-component/type";
|
|
3
3
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
4
4
|
export type IColumnsChoose<RecordType> = {
|
|
@@ -11,4 +11,4 @@ export type IColumnsChoose<RecordType> = {
|
|
|
11
11
|
columnHidden: any;
|
|
12
12
|
id: any;
|
|
13
13
|
};
|
|
14
|
-
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) =>
|
|
14
|
+
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type IColumnsGroup = {
|
|
3
3
|
id: string;
|
|
4
4
|
tableLocal?: any;
|
|
@@ -10,5 +10,5 @@ type IColumnsGroup = {
|
|
|
10
10
|
unClearableLevel?: number;
|
|
11
11
|
defaultGroupColumns?: string[];
|
|
12
12
|
};
|
|
13
|
-
export declare const ColumnsGroup: (props: IColumnsGroup) =>
|
|
13
|
+
export declare const ColumnsGroup: (props: IColumnsGroup) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Group } from "becoxy-icons";
|
|
2
2
|
import React, { useRef, useState } from "react";
|
|
3
3
|
import { Button, Popover } from "antd";
|
|
4
|
-
import
|
|
4
|
+
import Select from 'rc-master-ui/es/select';
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { customFilterOption } from "../../grid-component/hooks";
|
|
7
7
|
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 '../table-component';
|
|
6
6
|
import type { TableProps } from './../grid-component/type';
|
|
7
|
-
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
7
|
+
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default InternalTable;
|
|
@@ -14,7 +14,8 @@ import { convertToTanStackColumns } from "./hook/useColumns";
|
|
|
14
14
|
import { convertColumns } from "./hook/convert";
|
|
15
15
|
import { removeInvisibleColumns } from "../grid-component/hooks";
|
|
16
16
|
import { groupArrayByColumns } from "../table-virtuoso/hook/utils";
|
|
17
|
-
import
|
|
17
|
+
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
18
|
+
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
18
19
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
19
20
|
dayjs.extend(customParseFormat);
|
|
20
21
|
const InternalTable = props => {
|
|
@@ -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;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { TableContext } from "./useContext";
|
|
5
5
|
import Pagination from 'rc-master-ui/es/pagination';
|
|
6
|
-
import
|
|
6
|
+
import Toolbar from 'rc-master-ui/es/toolbar';
|
|
7
7
|
import { Collapse2, Expand2, Maximize, Minimize } from 'becoxy-icons';
|
|
8
8
|
// import { ColumnsChoose } from './ColumnsChoose'
|
|
9
9
|
import { numericFormatter } from 'react-numeric-component';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from "@tanstack/react-table";
|
|
4
3
|
import type { ColumnsTable, TableProps } from "./../grid-component/type";
|
|
5
4
|
type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
@@ -44,5 +43,5 @@ type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
44
43
|
columnSizing: ColumnSizingState;
|
|
45
44
|
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
46
45
|
};
|
|
47
|
-
declare const TableContainerEdit: <RecordType extends object>(props: TableContainerProps<RecordType>) =>
|
|
46
|
+
declare const TableContainerEdit: <RecordType extends object>(props: TableContainerProps<RecordType>) => JSX.Element;
|
|
48
47
|
export default TableContainerEdit;
|
|
@@ -10,7 +10,8 @@ import Pagination from "rc-master-ui/es/pagination";
|
|
|
10
10
|
import { numericFormatter, removeNumericFormat } from "react-numeric-component";
|
|
11
11
|
import { TableContext } from "./useContext";
|
|
12
12
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
13
|
-
import
|
|
13
|
+
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
14
|
+
import Toolbar from 'rc-master-ui/es/toolbar';
|
|
14
15
|
import { Modal, Typography } from "antd";
|
|
15
16
|
import classNames from "classnames";
|
|
16
17
|
import { Collapse2, Expand2, Maximize, Minimize } from "becoxy-icons";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { EditType } from
|
|
2
|
+
import type { EditType } from 'rc-master-ui/es/table/interface';
|
|
3
3
|
import type { ColumnTable, IFormat } from "../../grid-component/type";
|
|
4
4
|
interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
t?: any;
|
|
@@ -12,5 +12,5 @@ interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement>
|
|
|
12
12
|
indexCol: number;
|
|
13
13
|
cellEditing?: any;
|
|
14
14
|
}
|
|
15
|
-
declare const EditableCell: <T>(props: EditableCellProps<T>) =>
|
|
15
|
+
declare const EditableCell: <T>(props: EditableCellProps<T>) => JSX.Element;
|
|
16
16
|
export default EditableCell;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
|
-
import
|
|
3
|
+
import DatePicker from 'rc-master-ui/es/date-picker';
|
|
4
|
+
import TimePicker from 'rc-master-ui/es/time-picker';
|
|
4
5
|
import { ColorPicker, Divider, Input, Row, Col } from "antd";
|
|
5
6
|
import { checkDecimalSeparator, checkThousandSeparator, checkFieldKey, convertArrayWithIndent, convertDateToDayjs, convertLabelToTitle, getDatepickerFormat, isDisable, isEmpty, isNullOrUndefined, customWeekStartEndFormat, convertDayjsToDate, parseBooleanToValue, isColor, genPresets, getFormat } from "../hook/utils";
|
|
6
7
|
import classNames from "classnames";
|
|
@@ -8,7 +9,9 @@ import { NumericFormat } from "react-numeric-component";
|
|
|
8
9
|
import dayjs from "dayjs";
|
|
9
10
|
import moment from "moment";
|
|
10
11
|
import { Controller } from "react-hook-form";
|
|
11
|
-
import
|
|
12
|
+
import Checkbox from 'rc-master-ui/es/checkbox';
|
|
13
|
+
import TreeSelect from 'rc-master-ui/es/tree-select';
|
|
14
|
+
import Select from 'rc-master-ui/es/select';
|
|
12
15
|
import { AsyncSelect } from "../components/async-select";
|
|
13
16
|
import { AsyncTableSelect } from "../components/async-table-select";
|
|
14
17
|
import { cyan, green, red, blue } from '@ant-design/colors';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
2
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
3
|
import React from "react";
|
|
4
4
|
interface TableBodyProps<T> {
|
|
@@ -10,5 +10,5 @@ interface TableBodyProps<T> {
|
|
|
10
10
|
showEmptyText?: boolean;
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
|
-
declare const TableBody: <RecordType extends object>({ columnVirtualizer, table, tableContainerRef, virtualPaddingLeft, virtualPaddingRight, fixedLeftColumns, fixedRightColumns, tableId, showEmptyText, ...rest }: TableBodyProps<RecordType>) =>
|
|
13
|
+
declare const TableBody: <RecordType extends object>({ columnVirtualizer, table, tableContainerRef, virtualPaddingLeft, virtualPaddingRight, fixedLeftColumns, fixedRightColumns, tableId, showEmptyText, ...rest }: TableBodyProps<RecordType>) => JSX.Element;
|
|
14
14
|
export default TableBody;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
// import { type Row, type Table } from "@tanstack/react-table"
|
|
3
|
+
|
|
2
4
|
import TableBodyRow from "./TableBodyRow";
|
|
3
5
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
4
6
|
import React, { Fragment } from "react";
|
|
5
7
|
import { TableContext } from "../useContext";
|
|
6
|
-
import
|
|
8
|
+
import Empty from 'rc-master-ui/es/empty';
|
|
7
9
|
const TableBody = ({
|
|
8
10
|
columnVirtualizer,
|
|
9
11
|
table,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
import type { VirtualItem, Virtualizer } from "@tanstack/react-virtual";
|
|
5
5
|
interface TableBodyCellProps<T> {
|
|
6
6
|
table: Table<T>;
|
|
@@ -13,5 +13,5 @@ interface TableBodyCellProps<T> {
|
|
|
13
13
|
isRowEditable?: boolean;
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
16
|
-
declare const TableBodyCellEdit: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
16
|
+
declare const TableBodyCellEdit: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableBodyCellEdit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCellEmpty: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCellEmpty: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCellEmpty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import ReactDOMServer from 'react-dom/server'
|
|
1
|
+
// import ReactDOMServer from 'react-dom/server'
|
|
2
|
+
|
|
2
3
|
import { getCommonPinningStyles } from "../hook/utils";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import React from "react";
|
|
@@ -22,14 +23,19 @@ const TableBodyCellEmpty = props => {
|
|
|
22
23
|
setIsSelecting,
|
|
23
24
|
setIsPasting
|
|
24
25
|
} = React.useContext(TableContext);
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
// const [isOpenTooltip, setIsOpenTooltip] = React.useState(false)
|
|
28
|
+
|
|
26
29
|
const record = cell.row.original;
|
|
27
30
|
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
28
31
|
const cellStyles = typeof columnMeta.onCellStyles === 'function' ? columnMeta.onCellStyles(cell.getValue(), cell) : columnMeta.onCellStyles;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
// const tooltipContent = (isOpenTooltip === false)
|
|
34
|
+
// ? ''
|
|
35
|
+
// : columnMeta?.tooltipDescription
|
|
36
|
+
// ? (typeof columnMeta.tooltipDescription === 'function' ? columnMeta.tooltipDescription({ value: cell.getValue(), rowData:record }) : columnMeta.tooltipDescription)
|
|
37
|
+
// : (columnMeta.template && typeof columnMeta.template !== 'function') ? columnMeta.template : cell.getValue()
|
|
38
|
+
|
|
33
39
|
const allRows = table.getRowModel().flatRows;
|
|
34
40
|
const rowNumber = allRows.findIndex(it => it.id === cell.row.id);
|
|
35
41
|
const colIndex = cell.column.getIndex();
|
|
@@ -50,8 +56,8 @@ const TableBodyCellEmpty = props => {
|
|
|
50
56
|
"data-col-key": cell.column.id
|
|
51
57
|
// data-row-key={cell.row.id}
|
|
52
58
|
,
|
|
53
|
-
"data-tooltip-id": `${id}-tooltip-content
|
|
54
|
-
|
|
59
|
+
"data-tooltip-id": `${id}-tooltip-content`
|
|
60
|
+
// data-tooltip-html={ReactDOMServer.renderToStaticMarkup(<>{tooltipContent}</>)}
|
|
55
61
|
// data-tooltip-delay-show={500}
|
|
56
62
|
,
|
|
57
63
|
|
|
@@ -77,7 +83,8 @@ const TableBodyCellEmpty = props => {
|
|
|
77
83
|
},
|
|
78
84
|
onMouseEnter: e => {
|
|
79
85
|
if (e.target.firstChild?.clientWidth < e.target.firstChild?.scrollWidth) {
|
|
80
|
-
|
|
86
|
+
|
|
87
|
+
// setIsOpenTooltip(true)
|
|
81
88
|
}
|
|
82
89
|
setIsSelecting?.(false);
|
|
83
90
|
setIsPasting?.(false);
|