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
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _server = _interopRequireDefault(require("react-dom/server"));
|
|
9
8
|
var _utils = require("../hook/utils");
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _useContext = require("../useContext");
|
|
13
12
|
var _useColumns = require("../hook/useColumns");
|
|
13
|
+
// import ReactDOMServer from 'react-dom/server'
|
|
14
|
+
|
|
14
15
|
const TableBodyCellEmpty = props => {
|
|
15
16
|
const {
|
|
16
17
|
cell,
|
|
@@ -29,14 +30,19 @@ const TableBodyCellEmpty = props => {
|
|
|
29
30
|
setIsSelecting,
|
|
30
31
|
setIsPasting
|
|
31
32
|
} = _react.default.useContext(_useContext.TableContext);
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
// const [isOpenTooltip, setIsOpenTooltip] = React.useState(false)
|
|
35
|
+
|
|
33
36
|
const record = cell.row.original;
|
|
34
37
|
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
35
38
|
const cellStyles = typeof columnMeta.onCellStyles === 'function' ? columnMeta.onCellStyles(cell.getValue(), cell) : columnMeta.onCellStyles;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
// const tooltipContent = (isOpenTooltip === false)
|
|
41
|
+
// ? ''
|
|
42
|
+
// : columnMeta?.tooltipDescription
|
|
43
|
+
// ? (typeof columnMeta.tooltipDescription === 'function' ? columnMeta.tooltipDescription({ value: cell.getValue(), rowData:record }) : columnMeta.tooltipDescription)
|
|
44
|
+
// : (columnMeta.template && typeof columnMeta.template !== 'function') ? columnMeta.template : cell.getValue()
|
|
45
|
+
|
|
40
46
|
const allRows = table.getRowModel().flatRows;
|
|
41
47
|
const rowNumber = allRows.findIndex(it => it.id === cell.row.id);
|
|
42
48
|
const colIndex = cell.column.getIndex();
|
|
@@ -57,8 +63,8 @@ const TableBodyCellEmpty = props => {
|
|
|
57
63
|
"data-col-key": cell.column.id
|
|
58
64
|
// data-row-key={cell.row.id}
|
|
59
65
|
,
|
|
60
|
-
"data-tooltip-id": `${id}-tooltip-content
|
|
61
|
-
|
|
66
|
+
"data-tooltip-id": `${id}-tooltip-content`
|
|
67
|
+
// data-tooltip-html={ReactDOMServer.renderToStaticMarkup(<>{tooltipContent}</>)}
|
|
62
68
|
// data-tooltip-delay-show={500}
|
|
63
69
|
,
|
|
64
70
|
|
|
@@ -84,7 +90,8 @@ const TableBodyCellEmpty = props => {
|
|
|
84
90
|
},
|
|
85
91
|
onMouseEnter: e => {
|
|
86
92
|
if (e.target.firstChild?.clientWidth < e.target.firstChild?.scrollWidth) {
|
|
87
|
-
|
|
93
|
+
|
|
94
|
+
// setIsOpenTooltip(true)
|
|
88
95
|
}
|
|
89
96
|
setIsSelecting?.(false);
|
|
90
97
|
setIsPasting?.(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { VirtualItem, Virtualizer } from "@tanstack/react-virtual";
|
|
2
|
-
import {
|
|
3
|
+
import type { Column, Row, Table } from "@tanstack/react-table";
|
|
3
4
|
import type { CommandClick } from "../../grid-component/type";
|
|
4
|
-
import React from "react";
|
|
5
5
|
interface TableBodyRowProps<T> {
|
|
6
6
|
tableId: string;
|
|
7
7
|
table: Table<T>;
|
|
@@ -17,5 +17,5 @@ interface TableBodyRowProps<T> {
|
|
|
17
17
|
editAble?: boolean;
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}
|
|
20
|
-
declare const TableBodyRow: <RecordType extends object>({ tableId, table, columnVirtualizer, row, rowVirtualizer, virtualPaddingLeft, virtualPaddingRight, virtualRow, fixedLeftColumns, fixedRightColumns, commandClick, editAble, isEditing, contextMenuItems, onContextMenu, ...rest }: TableBodyRowProps<RecordType>) =>
|
|
20
|
+
declare const TableBodyRow: <RecordType extends object>({ tableId, table, columnVirtualizer, row, rowVirtualizer, virtualPaddingLeft, virtualPaddingRight, virtualRow, fixedLeftColumns, fixedRightColumns, commandClick, editAble, isEditing, contextMenuItems, onContextMenu, ...rest }: TableBodyRowProps<RecordType>) => JSX.Element;
|
|
21
21
|
export default TableBodyRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Cell, Table } from "@tanstack/react-table";
|
|
2
3
|
import type { CommandClick } from "../../grid-component/type";
|
|
3
|
-
import React from "react";
|
|
4
4
|
interface TableBodyCellProps<T> {
|
|
5
5
|
table: Table<T>;
|
|
6
6
|
tableId: string;
|
|
@@ -8,5 +8,5 @@ interface TableBodyCellProps<T> {
|
|
|
8
8
|
commandClick?: (args: CommandClick<T>) => void;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}
|
|
11
|
-
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) =>
|
|
11
|
+
declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default TableBodyCell;
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _space = _interopRequireDefault(require("rc-master-ui/es/space"));
|
|
9
9
|
var _Command = _interopRequireDefault(require("../components/command/Command"));
|
|
10
10
|
var _utils = require("../hook/utils");
|
|
11
|
-
var _Checkbox = _interopRequireDefault(require("rc-master-ui/
|
|
11
|
+
var _Checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox/Checkbox"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _useContext = require("../useContext");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnTable } from "../../grid-component/type";
|
|
3
3
|
type Props = {
|
|
4
4
|
column: ColumnTable;
|
|
@@ -9,5 +9,5 @@ type Props = {
|
|
|
9
9
|
checked: boolean;
|
|
10
10
|
editAble?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const ControlCheckbox: (props: Props) =>
|
|
12
|
+
declare const ControlCheckbox: (props: Props) => JSX.Element;
|
|
13
13
|
export default ControlCheckbox;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var
|
|
9
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
9
10
|
var _useContext = require("../useContext");
|
|
10
11
|
var _utils = require("../hook/utils");
|
|
11
12
|
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); }
|
|
@@ -31,7 +32,7 @@ const ControlCheckbox = props => {
|
|
|
31
32
|
// const [isHover, setIsHover] = useState(false)
|
|
32
33
|
|
|
33
34
|
const inputNode = value => {
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
35
36
|
checked: Boolean(value),
|
|
36
37
|
defaultChecked: Boolean(checked)
|
|
37
38
|
// style={{ textAlign: column.align ?? 'left' }}
|
|
@@ -79,7 +80,7 @@ const ControlCheckbox = props => {
|
|
|
79
80
|
height: '100%',
|
|
80
81
|
width: '100%'
|
|
81
82
|
}
|
|
82
|
-
}, editAble && isEdit !== false ? inputNode(checkValue) : /*#__PURE__*/_react.default.createElement(
|
|
83
|
+
}, editAble && isEdit !== false ? inputNode(checkValue) : /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
83
84
|
checked: checked,
|
|
84
85
|
onChange: e => {
|
|
85
86
|
e.preventDefault();
|
|
@@ -23,5 +23,5 @@ type Props = {
|
|
|
23
23
|
onKeyDown?: (event: any) => void;
|
|
24
24
|
};
|
|
25
25
|
export declare const SelectStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
-
export declare const EditForm: (props: Props) =>
|
|
26
|
+
export declare const EditForm: (props: Props) => JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -11,7 +11,7 @@ var _reactHookForm = require("react-hook-form");
|
|
|
11
11
|
var _yup = require("@hookform/resolvers/yup");
|
|
12
12
|
var _grid = require("rc-master-ui/es/grid");
|
|
13
13
|
var _utils = require("../../hook/utils");
|
|
14
|
-
var
|
|
14
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
15
15
|
var _antd = require("antd");
|
|
16
16
|
var _divider = _interopRequireDefault(require("rc-master-ui/es/divider"));
|
|
17
17
|
var _button = _interopRequireDefault(require("rc-master-ui/es/button"));
|
|
@@ -382,7 +382,7 @@ const EditForm = props => {
|
|
|
382
382
|
style: {
|
|
383
383
|
height: '100%'
|
|
384
384
|
}
|
|
385
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
385
|
+
}, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
386
386
|
style: {
|
|
387
387
|
borderRadius: 0,
|
|
388
388
|
height: '100%'
|
|
@@ -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;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _reactHookForm = require("react-hook-form");
|
|
10
|
-
var
|
|
10
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
11
11
|
var _antd = require("antd");
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -81,7 +81,7 @@ const InputControl = props => {
|
|
|
81
81
|
value,
|
|
82
82
|
onChange
|
|
83
83
|
}
|
|
84
|
-
}) => /*#__PURE__*/_react.default.createElement(
|
|
84
|
+
}) => /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({}, rest, {
|
|
85
85
|
id: id,
|
|
86
86
|
value: !(0, _utils.isNullOrUndefined)(value) ? value : '',
|
|
87
87
|
onChange: val => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { BaseOptionType, DefaultOptionType } from "rc-select/lib/Select";
|
|
3
3
|
import type { SelectProps } from "rc-master-ui/es/select";
|
|
4
4
|
import type { LoadOptionsArgs } from '../../../grid-component/type';
|
|
@@ -8,4 +8,4 @@ export interface DebounceSelectProps<OptionType extends BaseOptionType = Default
|
|
|
8
8
|
defaultOptions?: OptionType[];
|
|
9
9
|
rowData?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare function AsyncSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, rowData, ...props }: DebounceSelectProps<OptionType>):
|
|
11
|
+
export declare function AsyncSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, rowData, ...props }: DebounceSelectProps<OptionType>): JSX.Element;
|
|
@@ -8,7 +8,7 @@ exports.AsyncSelect = AsyncSelect;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
11
|
-
var
|
|
11
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
14
|
function AsyncSelect({
|
|
@@ -38,7 +38,7 @@ function AsyncSelect({
|
|
|
38
38
|
(0, _react.useEffect)(() => {
|
|
39
39
|
setOptions(defaultOptions ?? []);
|
|
40
40
|
}, [defaultOptions]);
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, props, {
|
|
42
42
|
filterOption: loadOptions ? false : props?.filterOption,
|
|
43
43
|
onSearch: debounceFetcher,
|
|
44
44
|
onSelect: () => setOptions(defaultOptions ?? []),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { BaseOptionType, DefaultOptionType } from "rc-select/lib/Select";
|
|
3
|
-
import type { TableSelectProps } from
|
|
3
|
+
import type { TableSelectProps } from 'rc-master-ui/es/table-select';
|
|
4
4
|
import type { LoadOptionsArgs } from '../../../grid-component/type';
|
|
5
5
|
export interface DebounceSelectProps<OptionType extends BaseOptionType = DefaultOptionType> extends TableSelectProps {
|
|
6
6
|
loadOptions?: (search: string, callback: (newOptions: OptionType[]) => void, args?: LoadOptionsArgs) => void;
|
|
@@ -8,4 +8,4 @@ export interface DebounceSelectProps<OptionType extends BaseOptionType = Default
|
|
|
8
8
|
defaultOptions?: OptionType[];
|
|
9
9
|
rowData?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare function AsyncTableSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, columns, rowData, ...props }: DebounceSelectProps<OptionType>):
|
|
11
|
+
export declare function AsyncTableSelect<OptionType extends BaseOptionType>({ loadOptions, debounceTimeout, defaultOptions, columns, rowData, ...props }: DebounceSelectProps<OptionType>): JSX.Element;
|
|
@@ -8,7 +8,7 @@ exports.AsyncTableSelect = AsyncTableSelect;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
11
|
-
var
|
|
11
|
+
var _tableSelect = _interopRequireDefault(require("rc-master-ui/es/table-select"));
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
14
|
function AsyncTableSelect({
|
|
@@ -39,7 +39,7 @@ function AsyncTableSelect({
|
|
|
39
39
|
(0, _react.useEffect)(() => {
|
|
40
40
|
setOptions(defaultOptions ?? []);
|
|
41
41
|
}, [defaultOptions]);
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_tableSelect.default, (0, _extends2.default)({}, props, {
|
|
43
43
|
filterOption: loadOptions ? false : props?.filterOption,
|
|
44
44
|
onSearch: debounceFetcher,
|
|
45
45
|
onSelect: () => setOptions(defaultOptions ?? []),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type OptionType = {
|
|
3
3
|
value: any;
|
|
4
4
|
label: string;
|
|
@@ -9,5 +9,5 @@ type Props<T> = {
|
|
|
9
9
|
value: any[];
|
|
10
10
|
onChange?: (value: any[]) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const CheckboxControl: <T extends OptionType>(props: Props<T>) =>
|
|
12
|
+
declare const CheckboxControl: <T extends OptionType>(props: Props<T>) => JSX.Element;
|
|
13
13
|
export default CheckboxControl;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var
|
|
9
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
9
10
|
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); }
|
|
10
11
|
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; }
|
|
11
12
|
const CheckboxControl = props => {
|
|
@@ -37,7 +38,7 @@ const CheckboxControl = props => {
|
|
|
37
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
39
|
key: index,
|
|
39
40
|
className: "d-flex align-items-center"
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
41
42
|
checked: selected.includes(it.value),
|
|
42
43
|
type: "checkbox",
|
|
43
44
|
className: "cursor-pointer me-50",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { TableLocale } from "rc-master-ui/es/table/interface";
|
|
3
3
|
type Props = {
|
|
4
4
|
options: any[];
|
|
@@ -14,5 +14,5 @@ type Props = {
|
|
|
14
14
|
locale?: TableLocale;
|
|
15
15
|
filterMode?: 'menu' | 'tree';
|
|
16
16
|
};
|
|
17
|
-
declare const CheckboxFilter: (props: Props) =>
|
|
17
|
+
declare const CheckboxFilter: (props: Props) => JSX.Element;
|
|
18
18
|
export default CheckboxFilter;
|
|
@@ -7,7 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var
|
|
10
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
11
|
+
var _menu = _interopRequireDefault(require("rc-master-ui/es/menu"));
|
|
12
|
+
var _radio = _interopRequireDefault(require("rc-master-ui/es/radio"));
|
|
13
|
+
var _empty = _interopRequireDefault(require("rc-master-ui/es/empty"));
|
|
11
14
|
var _antd = require("antd");
|
|
12
15
|
var _useFilter = require("rc-master-ui/es/table/hooks/useFilter");
|
|
13
16
|
var _FilterSearch = _interopRequireDefault(require("./FilterSearch"));
|
|
@@ -44,7 +47,7 @@ function renderFilterItems({
|
|
|
44
47
|
})
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
|
-
const Component = filterMultiple ?
|
|
50
|
+
const Component = filterMultiple ? _checkbox.default : _radio.default;
|
|
48
51
|
const item = {
|
|
49
52
|
key: filter.value !== undefined ? key : index,
|
|
50
53
|
label: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Component, {
|
|
@@ -115,8 +118,8 @@ const CheckboxFilter = props => {
|
|
|
115
118
|
// [`${dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column.filters || []),
|
|
116
119
|
[`${dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(options || [])
|
|
117
120
|
});
|
|
118
|
-
const empty = /*#__PURE__*/React.createElement(
|
|
119
|
-
image:
|
|
121
|
+
const empty = /*#__PURE__*/React.createElement(_empty.default, {
|
|
122
|
+
image: _empty.default.PRESENTED_IMAGE_SIMPLE,
|
|
120
123
|
description: locale?.filterEmptyText,
|
|
121
124
|
imageStyle: {
|
|
122
125
|
height: 24
|
|
@@ -199,7 +202,7 @@ const CheckboxFilter = props => {
|
|
|
199
202
|
locale: locale
|
|
200
203
|
}), /*#__PURE__*/React.createElement("div", {
|
|
201
204
|
className: `${tablePrefixCls}-filter-dropdown-tree`
|
|
202
|
-
}, filterMultiple && options.length > 0 ? /*#__PURE__*/React.createElement(
|
|
205
|
+
}, filterMultiple && options.length > 0 ? /*#__PURE__*/React.createElement(_checkbox.default
|
|
203
206
|
// checked={selectedKeys.length === flattenKeys(column.filters).length}
|
|
204
207
|
, {
|
|
205
208
|
checked: selectedKeys.length === (0, _useFilter.flattenKeys)(options).length
|
|
@@ -212,7 +215,7 @@ const CheckboxFilter = props => {
|
|
|
212
215
|
indeterminate: selectedKeys.length > 0 && selectedKeys.length < (0, _useFilter.flattenKeys)(options).length,
|
|
213
216
|
className: `${tablePrefixCls}-filter-dropdown-checkall`,
|
|
214
217
|
onChange: onCheckAll
|
|
215
|
-
}, locale?.filterCheckall) : /*#__PURE__*/React.createElement(
|
|
218
|
+
}, locale?.filterCheckall) : /*#__PURE__*/React.createElement(_empty.default, null), /*#__PURE__*/React.createElement(_antd.Tree, {
|
|
216
219
|
checkable: true,
|
|
217
220
|
selectable: false,
|
|
218
221
|
blockNode: true,
|
|
@@ -249,7 +252,7 @@ const CheckboxFilter = props => {
|
|
|
249
252
|
onChange: onSearch,
|
|
250
253
|
tablePrefixCls: tablePrefixCls,
|
|
251
254
|
locale: locale
|
|
252
|
-
}), isEmpty ? empty : /*#__PURE__*/React.createElement(
|
|
255
|
+
}), isEmpty ? empty : /*#__PURE__*/React.createElement(_menu.default, {
|
|
253
256
|
selectable: true,
|
|
254
257
|
multiple: filterMultiple,
|
|
255
258
|
prefixCls: `${dropdownPrefixCls}-menu`,
|
|
@@ -8,5 +8,5 @@ interface FilterSearchProps<RecordType = AnyObject> {
|
|
|
8
8
|
tablePrefixCls: string;
|
|
9
9
|
locale?: TableLocale;
|
|
10
10
|
}
|
|
11
|
-
declare const FilterSearch: <RecordType extends AnyObject = AnyObject>(props: FilterSearchProps<RecordType>) =>
|
|
11
|
+
declare const FilterSearch: <RecordType extends AnyObject = AnyObject>(props: FilterSearchProps<RecordType>) => JSX.Element;
|
|
12
12
|
export default FilterSearch;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/SearchOutlined"));
|
|
10
|
-
var
|
|
10
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
13
|
// import type {AnyObject} from "./../grid-component/type"
|
|
@@ -29,7 +29,7 @@ const FilterSearch = props => {
|
|
|
29
29
|
paddingLeft: 0,
|
|
30
30
|
paddingRight: 0
|
|
31
31
|
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(
|
|
32
|
+
}, /*#__PURE__*/React.createElement(_input.default, {
|
|
33
33
|
suffix: /*#__PURE__*/React.createElement(_SearchOutlined.default, null),
|
|
34
34
|
placeholder: locale?.filterSearchPlaceholder,
|
|
35
35
|
onChange: onChange,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CommandItem } from "../../../grid-component/type";
|
|
3
3
|
type Props<T> = {
|
|
4
4
|
id: string;
|
|
@@ -6,5 +6,5 @@ type Props<T> = {
|
|
|
6
6
|
item: CommandItem;
|
|
7
7
|
onClick: (e: any) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const Command: <T extends object>(props: Props<T>) =>
|
|
9
|
+
declare const Command: <T extends object>(props: Props<T>) => JSX.Element;
|
|
10
10
|
export default Command;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyboardEventHandler } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { IFormat } from "../../../grid-component/type";
|
|
4
3
|
type Props = {
|
|
5
4
|
t?: any;
|
|
@@ -8,5 +7,5 @@ type Props = {
|
|
|
8
7
|
onChange?: (values: any[]) => void;
|
|
9
8
|
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
|
10
9
|
};
|
|
11
|
-
declare const NumberInput: (props: Props) =>
|
|
10
|
+
declare const NumberInput: (props: Props) => JSX.Element;
|
|
12
11
|
export default NumberInput;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _reactNumericComponent = require("react-numeric-component");
|
|
9
|
-
var
|
|
10
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
10
11
|
var _utils = require("../../hook/utils");
|
|
11
12
|
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); }
|
|
12
13
|
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; }
|
|
@@ -26,7 +27,7 @@ const NumberInput = props => {
|
|
|
26
27
|
thousandSeparator: (0, _utils.checkThousandSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
27
28
|
decimalSeparator: (0, _utils.checkDecimalSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
28
29
|
allowNegative: true,
|
|
29
|
-
customInput:
|
|
30
|
+
customInput: _input.default,
|
|
30
31
|
className: 'input-element',
|
|
31
32
|
classNames: {
|
|
32
33
|
input: 'filter-input'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyboardEventHandler } from "react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import type { IFormat } from "../../../grid-component/type";
|
|
4
3
|
type Props = {
|
|
5
4
|
t?: any;
|
|
@@ -9,5 +8,5 @@ type Props = {
|
|
|
9
8
|
onChange?: (values: any[]) => void;
|
|
10
9
|
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
|
11
10
|
};
|
|
12
|
-
declare const NumberRange: (props: Props) =>
|
|
11
|
+
declare const NumberRange: (props: Props) => JSX.Element;
|
|
13
12
|
export default NumberRange;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _reactNumericComponent = require("react-numeric-component");
|
|
9
|
-
var
|
|
10
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
10
11
|
var _utils = require("../../hook/utils");
|
|
11
12
|
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); }
|
|
12
13
|
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; }
|
|
@@ -39,7 +40,7 @@ const NumberRange = props => {
|
|
|
39
40
|
thousandSeparator: (0, _utils.checkThousandSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
40
41
|
decimalSeparator: (0, _utils.checkDecimalSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
41
42
|
allowNegative: true,
|
|
42
|
-
customInput:
|
|
43
|
+
customInput: _input.default,
|
|
43
44
|
className: 'input-element',
|
|
44
45
|
onValueChange: vals => {
|
|
45
46
|
// onChangeValueFilter(type, values.floatValue, 'min')
|
|
@@ -69,7 +70,7 @@ const NumberRange = props => {
|
|
|
69
70
|
thousandSeparator: (0, _utils.checkThousandSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
70
71
|
decimalSeparator: (0, _utils.checkDecimalSeparator)(format?.thousandSeparator, format?.decimalSeparator),
|
|
71
72
|
allowNegative: true,
|
|
72
|
-
customInput:
|
|
73
|
+
customInput: _input.default,
|
|
73
74
|
className: 'input-element',
|
|
74
75
|
onValueChange: vals => {
|
|
75
76
|
// setValues([values[0], vals.floatValue])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterProps<T> {
|
|
4
4
|
table: Table<T>;
|
|
5
5
|
}
|
|
6
|
-
declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) =>
|
|
6
|
+
declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) => JSX.Element;
|
|
7
7
|
export default TableFooter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Column } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterCellProps<T> {
|
|
4
4
|
column: Column<T, any>;
|
|
5
5
|
}
|
|
6
|
-
declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) =>
|
|
6
|
+
declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => JSX.Element;
|
|
7
7
|
export default TableFooterCell;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { HeaderGroup, Table } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
interface TableFooterRowProps<T> {
|
|
4
4
|
table: Table<T>;
|
|
5
5
|
headerGroup: HeaderGroup<T>;
|
|
6
6
|
}
|
|
7
|
-
declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) =>
|
|
7
|
+
declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default TableFooterRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Column } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { Table } from '@tanstack/react-table';
|
|
3
|
+
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
interface TableHeadProps<T> {
|
|
6
6
|
tableContainerRef: React.RefObject<HTMLDivElement>;
|
|
@@ -11,5 +11,5 @@ interface TableHeadProps<T> {
|
|
|
11
11
|
fixedLeftColumns: Column<T, unknown>[];
|
|
12
12
|
fixedRightColumns: Column<T, unknown>[];
|
|
13
13
|
}
|
|
14
|
-
declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) =>
|
|
14
|
+
declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) => JSX.Element;
|
|
15
15
|
export default TableHead;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { Header } from '@tanstack/react-table';
|
|
4
4
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -11,5 +11,5 @@ interface TableHeadCellProps<T> {
|
|
|
11
11
|
colSpan: any;
|
|
12
12
|
rowSpan: any;
|
|
13
13
|
}
|
|
14
|
-
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
14
|
+
declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
15
15
|
export default TableHeadCell;
|