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
|
@@ -9,7 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _antd = require("antd");
|
|
10
10
|
var _becoxyIcons = require("becoxy-icons");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var
|
|
12
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
13
|
+
var _dropdown = _interopRequireDefault(require("rc-master-ui/es/dropdown"));
|
|
14
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
13
15
|
var _hooks = require("../../grid-component/hooks");
|
|
14
16
|
var _utils = require("../hook/utils");
|
|
15
17
|
var _useContext = require("../useContext");
|
|
@@ -146,7 +148,7 @@ const TableHeadCell = props => {
|
|
|
146
148
|
}
|
|
147
149
|
}, /*#__PURE__*/_react.default.createElement("div", null), column.meta?.hideOperator !== true && column.meta?.typeFilter !== 'DateRange' && column.meta?.typeFilter !== 'NumberRange' && /*#__PURE__*/_react.default.createElement("div", {
|
|
148
150
|
className: 'mb-1'
|
|
149
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default, {
|
|
150
152
|
options: (0, _hooks.translateOption)(operatorOptions, t),
|
|
151
153
|
style: {
|
|
152
154
|
width: '100%',
|
|
@@ -234,7 +236,7 @@ const TableHeadCell = props => {
|
|
|
234
236
|
[`${prefix}-grid-filter-column`]: header.column.id !== 'selection_column',
|
|
235
237
|
[`${prefix}-grid-selection-column`]: header.column.id === 'selection_column'
|
|
236
238
|
})
|
|
237
|
-
}, header.column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== false && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(
|
|
239
|
+
}, header.column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== false && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
238
240
|
checked: table.getIsAllRowsSelected(),
|
|
239
241
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
240
242
|
onChange: e => {
|
|
@@ -301,7 +303,7 @@ const TableHeadCell = props => {
|
|
|
301
303
|
className: (0, _classnames.default)(`ui-rc-table-column-sorter-cancel`, {
|
|
302
304
|
active: true
|
|
303
305
|
})
|
|
304
|
-
})), header.column.getCanFilter() && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(
|
|
306
|
+
})), header.column.getCanFilter() && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_dropdown.default, mergedDropdownProps)))), header.column.getCanResize() && /*#__PURE__*/_react.default.createElement("div", {
|
|
305
307
|
onDoubleClick: () => header.column.resetSize(),
|
|
306
308
|
onMouseDown: header.getResizeHandler(),
|
|
307
309
|
onTouchStart: header.getResizeHandler(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { Header } from '@tanstack/react-table';
|
|
4
4
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
|
|
|
13
13
|
rowSpan: number;
|
|
14
14
|
depth: number;
|
|
15
15
|
}
|
|
16
|
-
declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
16
|
+
declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableHeadCell2;
|
|
@@ -9,7 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _antd = require("antd");
|
|
10
10
|
var _becoxyIcons = require("becoxy-icons");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var
|
|
12
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
13
|
+
var _dropdown = _interopRequireDefault(require("rc-master-ui/es/dropdown"));
|
|
14
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
13
15
|
var _utils = require("../hook/utils");
|
|
14
16
|
var _useContext = require("../useContext");
|
|
15
17
|
var _renderFilter = require("./renderFilter");
|
|
@@ -147,7 +149,7 @@ const TableHeadCell2 = props => {
|
|
|
147
149
|
}
|
|
148
150
|
}, /*#__PURE__*/_react.default.createElement("div", null), column.columnDef?.meta?.hideOperator !== true && column.columnDef?.meta?.typeFilter !== 'DateRange' && column.columnDef?.meta?.typeFilter !== 'NumberRange' && /*#__PURE__*/_react.default.createElement("div", {
|
|
149
151
|
className: 'mb-1'
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
152
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default, {
|
|
151
153
|
options: (0, _hooks.translateOption)(operatorOptions, t),
|
|
152
154
|
style: {
|
|
153
155
|
width: '100%',
|
|
@@ -230,7 +232,7 @@ const TableHeadCell2 = props => {
|
|
|
230
232
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
|
231
233
|
[`${prefix}-grid-selection-column`]: column.id === 'selection_column'
|
|
232
234
|
})
|
|
233
|
-
}, column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== true && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(
|
|
235
|
+
}, column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== true && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
234
236
|
checked: table.getIsAllRowsSelected(),
|
|
235
237
|
indeterminate: table.getIsSomePageRowsSelected(),
|
|
236
238
|
onChange: e => {
|
|
@@ -302,7 +304,7 @@ const TableHeadCell2 = props => {
|
|
|
302
304
|
className: (0, _classnames.default)(`ui-rc-table-column-sorter-cancel toolbar-icon`, {
|
|
303
305
|
active: true
|
|
304
306
|
})
|
|
305
|
-
})), column.getCanFilter() && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(
|
|
307
|
+
})), column.getCanFilter() && /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_dropdown.default, mergedDropdownProps)))), column.getCanResize() && /*#__PURE__*/_react.default.createElement("div", {
|
|
306
308
|
onDoubleClick: () => column.resetSize(),
|
|
307
309
|
onMouseDown: header.getResizeHandler(),
|
|
308
310
|
onTouchStart: header.getResizeHandler(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Table } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { Header } from '@tanstack/react-table';
|
|
4
4
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadCellProps<T> {
|
|
6
6
|
t?: any;
|
|
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
|
|
|
13
13
|
rowSpan: number;
|
|
14
14
|
depth: number;
|
|
15
15
|
}
|
|
16
|
-
declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) =>
|
|
16
|
+
declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
|
|
17
17
|
export default TableHeadGroupCell;
|
|
@@ -7,7 +7,7 @@ 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
11
|
var _utils = require("../hook/utils");
|
|
12
12
|
var _useContext = require("../useContext");
|
|
13
13
|
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); }
|
|
@@ -70,7 +70,7 @@ const TableHeadGroupCell = props => {
|
|
|
70
70
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
|
71
71
|
[`${prefix}-grid-selection-column`]: column.id === 'selection_column'
|
|
72
72
|
})
|
|
73
|
-
}, column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== false && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(
|
|
73
|
+
}, column.id === 'selection_column' && selectionSettings && selectionSettings.hideSelectAll !== false && selectionSettings.type !== 'single' && selectionSettings.mode !== 'radio' && /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
74
74
|
checked: table.getIsAllRowsSelected(),
|
|
75
75
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
76
76
|
onChange: e => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Column } from '@tanstack/react-table';
|
|
2
|
-
import {
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import type { HeaderGroup, Table } from '@tanstack/react-table';
|
|
4
4
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
interface TableHeadRowProps<T> {
|
|
6
6
|
headerGroup: HeaderGroup<T>;
|
|
@@ -11,5 +11,5 @@ interface TableHeadRowProps<T> {
|
|
|
11
11
|
fixedLeftColumns: Column<T, unknown>[];
|
|
12
12
|
fixedRightColumns: Column<T, unknown>[];
|
|
13
13
|
}
|
|
14
|
-
declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) =>
|
|
14
|
+
declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) => JSX.Element;
|
|
15
15
|
export default TableHeadRow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import React from "react";
|
|
3
3
|
import type { IFormat } from "../../grid-component/type";
|
|
4
4
|
type RenderFilterProps<RecordType> = {
|
|
5
5
|
column: ColumnDef<RecordType, unknown>;
|
|
@@ -17,5 +17,5 @@ type RenderFilterProps<RecordType> = {
|
|
|
17
17
|
doFilter?: (type: boolean) => void;
|
|
18
18
|
tableLocal: any;
|
|
19
19
|
};
|
|
20
|
-
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) =>
|
|
20
|
+
export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -7,7 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.renderFilter = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _moment = _interopRequireDefault(require("moment/moment"));
|
|
10
|
-
var
|
|
10
|
+
var _datePicker = _interopRequireDefault(require("rc-master-ui/es/date-picker"));
|
|
11
|
+
var _dateRangePicker = _interopRequireDefault(require("rc-master-ui/es/date-range-picker"));
|
|
12
|
+
var _empty = _interopRequireDefault(require("rc-master-ui/es/empty"));
|
|
13
|
+
var _input = _interopRequireDefault(require("rc-master-ui/es/input"));
|
|
14
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
11
15
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
16
|
var _utils = require("../hook/utils");
|
|
13
17
|
var _number = _interopRequireDefault(require("../components/number"));
|
|
@@ -70,7 +74,7 @@ const renderFilter = args => {
|
|
|
70
74
|
const dateValue = selectedKeys[0] ? (0, _utils.convertDateToDayjs)(new Date(selectedKeys[0]), dateFormat) : null;
|
|
71
75
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
72
76
|
className: 'mb-1'
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
74
78
|
format: {
|
|
75
79
|
format: dateFormat,
|
|
76
80
|
type: 'mask'
|
|
@@ -91,7 +95,7 @@ const renderFilter = args => {
|
|
|
91
95
|
const dateRangeValue = selectedKeys && selectedKeys.length > 0 ? [selectedKeys[0] ? new Date(selectedKeys[0]) : '', selectedKeys[1] ? new Date(selectedKeys[1]) : ''] : null;
|
|
92
96
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
93
97
|
className: 'mb-1'
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(_dateRangePicker.default, {
|
|
95
99
|
style: {
|
|
96
100
|
width: 300
|
|
97
101
|
},
|
|
@@ -108,7 +112,7 @@ const renderFilter = args => {
|
|
|
108
112
|
const weekValue = !(0, _utils.isEmpty)(selectedKeys[0]) ? (0, _dayjs.default)(selectedKeys[0], dateFormat) : null;
|
|
109
113
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
110
114
|
className: 'mb-1'
|
|
111
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
112
116
|
format: {
|
|
113
117
|
format: dateFormat,
|
|
114
118
|
type: 'mask'
|
|
@@ -133,7 +137,7 @@ const renderFilter = args => {
|
|
|
133
137
|
const monthValue = !(0, _utils.isEmpty)(selectedKeys[0]) ? (0, _dayjs.default)(selectedKeys[0], dateFormat) : null;
|
|
134
138
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
135
139
|
className: 'mb-1'
|
|
136
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
137
141
|
format: {
|
|
138
142
|
format: dateFormat,
|
|
139
143
|
type: 'mask'
|
|
@@ -232,7 +236,7 @@ const renderFilter = args => {
|
|
|
232
236
|
case 'Dropdown':
|
|
233
237
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
234
238
|
className: 'mb-1'
|
|
235
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
239
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default
|
|
236
240
|
// options={translateOption(numberOperator, t)}
|
|
237
241
|
// options={find ? options : column.source ?? []}
|
|
238
242
|
, {
|
|
@@ -242,8 +246,8 @@ const renderFilter = args => {
|
|
|
242
246
|
marginBottom: 8
|
|
243
247
|
},
|
|
244
248
|
value: selectedKeys[0],
|
|
245
|
-
notFoundContent: /*#__PURE__*/_react.default.createElement(
|
|
246
|
-
image:
|
|
249
|
+
notFoundContent: /*#__PURE__*/_react.default.createElement(_empty.default, {
|
|
250
|
+
image: _empty.default.PRESENTED_IMAGE_SIMPLE,
|
|
247
251
|
description: locale?.emptyText
|
|
248
252
|
}),
|
|
249
253
|
onChange: val => {
|
|
@@ -274,7 +278,7 @@ const renderFilter = args => {
|
|
|
274
278
|
default:
|
|
275
279
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
276
280
|
className: 'mb-1'
|
|
277
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
281
|
+
}, /*#__PURE__*/_react.default.createElement(_input.default, {
|
|
278
282
|
className: "aaaa",
|
|
279
283
|
classNames: {
|
|
280
284
|
input: 'filter-input'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Row, Table } from "@tanstack/react-table";
|
|
2
|
-
import {
|
|
2
|
+
import type { Column } from "@tanstack/react-table";
|
|
3
3
|
import type { VirtualItem } from "@tanstack/react-virtual";
|
|
4
4
|
import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "./../../grid-component/type";
|
|
5
5
|
import type { Key } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import type { CSSProperties } from "react";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
8
|
import type { IPositionCell } from "../useContext";
|
|
9
9
|
import type { ColumnDef } from "@tanstack/react-table";
|
|
@@ -84,7 +84,7 @@ export declare const customWeekStartEndFormat: (value: any, weekFormat: string)
|
|
|
84
84
|
export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
|
|
85
85
|
export declare const isNameColor: (strColor: string) => boolean;
|
|
86
86
|
export declare const isColor: (value: string) => boolean;
|
|
87
|
-
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/
|
|
87
|
+
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/es/color-picker/interface").PresetsItem[];
|
|
88
88
|
export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
|
|
89
89
|
export declare const getDefaultValue: (defaultValue: any) => AnyObject;
|
|
90
90
|
export declare const flattenData: <RecordType extends AnyObject = AnyObject>(childrenColumnName: string, data?: RecordType[]) => RecordType[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ColumnDef, ColumnPinningState, ExpandedState, VisibilityState } from '@tanstack/react-table';
|
|
2
2
|
import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
|
|
3
3
|
import type { Dispatch, Key, SetStateAction } from 'react';
|
|
4
|
-
import React from 'react';
|
|
5
4
|
type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
6
5
|
id: string;
|
|
7
6
|
rowKey: string;
|
|
@@ -29,5 +28,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
|
|
|
29
28
|
columnVisibility?: any;
|
|
30
29
|
setColumnVisibility?: Dispatch<SetStateAction<any>>;
|
|
31
30
|
};
|
|
32
|
-
declare const Grid: <RecordType extends object>(props: Props<RecordType>) =>
|
|
31
|
+
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
33
32
|
export default Grid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Table } from "@tanstack/react-table";
|
|
2
2
|
import type { CommandClick, ContextInfo, ContextMenuItem, PaginationConfig } from "../../grid-component/type";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import type { Virtualizer } from "@tanstack/react-virtual";
|
|
@@ -30,5 +30,5 @@ type Props<T> = {
|
|
|
30
30
|
fixedLeftColumns: Column<T, unknown>[];
|
|
31
31
|
fixedRightColumns: Column<T, unknown>[];
|
|
32
32
|
};
|
|
33
|
-
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) =>
|
|
33
|
+
declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
34
34
|
export default TableWrapper;
|
package/lib/locale/index.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.ANT_MARK = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _context = _interopRequireDefault(require("./context"));
|
|
10
|
-
var _warning = require("rc-master-ui/
|
|
10
|
+
var _warning = require("rc-master-ui/es/_util/warning");
|
|
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
|
// export { default as useLocale } from './useLocale';
|
package/lib/select/index.d.ts
CHANGED
package/lib/select/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
-
var
|
|
8
|
-
var _default = exports.default =
|
|
8
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
9
|
+
var _default = exports.default = _select.default;
|
package/lib/splitter/index.d.ts
CHANGED
package/lib/splitter/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
-
var
|
|
8
|
-
var _default = exports.default =
|
|
8
|
+
var _splitter = _interopRequireDefault(require("rc-master-ui/es/splitter"));
|
|
9
|
+
var _default = exports.default = _splitter.default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnsTable, ColumnTable, GridTableLocale, Locale } from "./../grid-component/type";
|
|
3
3
|
import type { ColumnDef, Table } from "@tanstack/react-table";
|
|
4
4
|
export type IColumnsChoose<RecordType> = {
|
|
@@ -14,4 +14,4 @@ export type IColumnsChoose<RecordType> = {
|
|
|
14
14
|
locale?: Locale;
|
|
15
15
|
tableLocal: GridTableLocale;
|
|
16
16
|
};
|
|
17
|
-
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) =>
|
|
17
|
+
export declare const ColumnsChoose: <RecordType extends object>(props: IColumnsChoose<RecordType>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ContextInfo, ContextMenuItem } from "./../grid-component/type";
|
|
3
3
|
export declare const findItemByKey: (array: any[], key: string, value: any) => any;
|
|
4
4
|
type Props<RecordType> = {
|
|
@@ -15,5 +15,5 @@ type Props<RecordType> = {
|
|
|
15
15
|
viewportHeight: number;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) =>
|
|
18
|
+
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
|
|
19
19
|
export default ContextMenu;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import 'react-resizable/css/styles.css';
|
|
3
3
|
import 'dayjs/locale/es';
|
|
4
4
|
import 'dayjs/locale/vi';
|
|
5
5
|
import './style.scss';
|
|
6
6
|
import type { TableProps } from './../grid-component/type';
|
|
7
|
-
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) =>
|
|
7
|
+
declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
|
|
8
8
|
export default InternalTable;
|
|
@@ -20,7 +20,8 @@ var _utils = require("./hook/utils");
|
|
|
20
20
|
var _useColumns = require("./hook/useColumns");
|
|
21
21
|
var _convert = require("./hook/convert");
|
|
22
22
|
var _hooks = require("../grid-component/hooks");
|
|
23
|
-
var
|
|
23
|
+
var _CustomProvider = _interopRequireDefault(require("rc-master-ui/es/CustomProvider"));
|
|
24
|
+
var _configProvider = _interopRequireDefault(require("rc-master-ui/es/config-provider"));
|
|
24
25
|
var _useLocale = require("../locale/useLocale");
|
|
25
26
|
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); }
|
|
26
27
|
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; }
|
|
@@ -175,7 +176,7 @@ const InternalTable = props => {
|
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
178
|
};
|
|
178
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
179
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_configProvider.default, {
|
|
179
180
|
locale: language,
|
|
180
181
|
theme: {
|
|
181
182
|
token: {
|
|
@@ -213,7 +214,7 @@ const InternalTable = props => {
|
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
217
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomProvider.default, {
|
|
217
218
|
locale: languages
|
|
218
219
|
}, /*#__PURE__*/_react.default.createElement(_Grid.default, (0, _extends2.default)({}, rest, {
|
|
219
220
|
t: t,
|
|
@@ -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
|
columnSizingInfo: ColumnSizingInfoState;
|
|
46
45
|
columnSizing: ColumnSizingState;
|
|
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;
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _useContext = require("./useContext");
|
|
12
12
|
var _pagination = _interopRequireDefault(require("rc-master-ui/es/pagination"));
|
|
13
|
-
var
|
|
13
|
+
var _toolbar = _interopRequireDefault(require("rc-master-ui/es/toolbar"));
|
|
14
14
|
var _becoxyIcons = require("becoxy-icons");
|
|
15
15
|
var _ColumnsChoose = require("./ColumnsChoose");
|
|
16
16
|
var _reactNumericComponent = require("react-numeric-component");
|
|
@@ -233,7 +233,7 @@ const TableContainer = props => {
|
|
|
233
233
|
flex: 1,
|
|
234
234
|
overflow: 'hidden'
|
|
235
235
|
}
|
|
236
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
236
|
+
}, /*#__PURE__*/_react.default.createElement(_toolbar.default, {
|
|
237
237
|
items: (toolbarItems ?? []).filter(it => it.position !== 'Bottom')
|
|
238
238
|
// mode={'scroll'}
|
|
239
239
|
,
|
|
@@ -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
|
setIsExpandClick: Dispatch<SetStateAction<boolean>>;
|
|
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;
|
|
@@ -18,7 +18,7 @@ var _pagination = _interopRequireDefault(require("rc-master-ui/es/pagination"));
|
|
|
18
18
|
var _reactNumericComponent = require("react-numeric-component");
|
|
19
19
|
var _useContext = require("./useContext");
|
|
20
20
|
var _yup = require("@hookform/resolvers/yup");
|
|
21
|
-
var
|
|
21
|
+
var _toolbar = _interopRequireDefault(require("rc-master-ui/es/toolbar"));
|
|
22
22
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
23
|
var _becoxyIcons = require("becoxy-icons");
|
|
24
24
|
var _ColumnsChoose = require("./ColumnsChoose");
|
|
@@ -2023,7 +2023,7 @@ const TableContainerEdit = props => {
|
|
|
2023
2023
|
className: (0, _classnames.default)('ui-rc-toolbar-bottom border-0', {
|
|
2024
2024
|
'ui-rc-toolbar-bottom_border-bottom': !pagination || infiniteScroll
|
|
2025
2025
|
})
|
|
2026
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
2026
|
+
}, /*#__PURE__*/_react.default.createElement(_toolbar.default, {
|
|
2027
2027
|
style: {
|
|
2028
2028
|
width: '100%'
|
|
2029
2029
|
},
|
|
@@ -2177,7 +2177,7 @@ const TableContainerEdit = props => {
|
|
|
2177
2177
|
className: (0, _classnames.default)('ui-rc-toolbar-bottom', {
|
|
2178
2178
|
'ui-rc-toolbar-bottom_border-bottom': !pagination || infiniteScroll
|
|
2179
2179
|
})
|
|
2180
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
2180
|
+
}, /*#__PURE__*/_react.default.createElement(_toolbar.default, {
|
|
2181
2181
|
style: {
|
|
2182
2182
|
width: '100%'
|
|
2183
2183
|
},
|
|
@@ -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;
|
|
@@ -7,7 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _datePicker = _interopRequireDefault(require("rc-master-ui/es/date-picker"));
|
|
11
|
+
var _timePicker = _interopRequireDefault(require("rc-master-ui/es/time-picker"));
|
|
12
|
+
var _colorPicker = _interopRequireDefault(require("rc-master-ui/es/color-picker"));
|
|
11
13
|
var _antd = require("antd");
|
|
12
14
|
var _utils = require("../hook/utils");
|
|
13
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -15,6 +17,9 @@ var _reactNumericComponent = require("react-numeric-component");
|
|
|
15
17
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
16
18
|
var _moment = _interopRequireDefault(require("moment"));
|
|
17
19
|
var _reactHookForm = require("react-hook-form");
|
|
20
|
+
var _checkbox = _interopRequireDefault(require("rc-master-ui/es/checkbox"));
|
|
21
|
+
var _select = _interopRequireDefault(require("rc-master-ui/es/select"));
|
|
22
|
+
var _treeSelect = _interopRequireDefault(require("rc-master-ui/es/tree-select"));
|
|
18
23
|
var _asyncSelect = require("../components/async-select");
|
|
19
24
|
var _asyncTableSelect = require("../components/async-table-select");
|
|
20
25
|
var _colors = require("@ant-design/colors");
|
|
@@ -26,7 +31,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
26
31
|
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; }
|
|
27
32
|
const {
|
|
28
33
|
SHOW_PARENT
|
|
29
|
-
} =
|
|
34
|
+
} = _treeSelect.default;
|
|
30
35
|
const {
|
|
31
36
|
TextArea
|
|
32
37
|
} = _antd.Input;
|
|
@@ -111,7 +116,7 @@ const EditableCell = props => {
|
|
|
111
116
|
|
|
112
117
|
switch (editType) {
|
|
113
118
|
case 'date':
|
|
114
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
115
120
|
ref: datePickerRef,
|
|
116
121
|
format: {
|
|
117
122
|
format: dateFormat,
|
|
@@ -167,7 +172,7 @@ const EditableCell = props => {
|
|
|
167
172
|
"data-tooltip-id": `${id}-tooltip-error`
|
|
168
173
|
});
|
|
169
174
|
case 'datetime':
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
175
|
+
return /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
171
176
|
ref: dateTimePickerRef,
|
|
172
177
|
format: {
|
|
173
178
|
format: dateFormat,
|
|
@@ -267,7 +272,7 @@ const EditableCell = props => {
|
|
|
267
272
|
const pickerFormat = (0, _utils.getDatepickerFormat)(editType, cellFormat);
|
|
268
273
|
const maxDateValue1 = !(0, _utils.isEmpty)(column.maxDate) ? (0, _dayjs.default)(column.maxDate, pickerFormat) : undefined;
|
|
269
274
|
const minDateValue1 = !(0, _utils.isEmpty)(column.minDate) ? (0, _dayjs.default)(column.minDate, pickerFormat) : undefined;
|
|
270
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
275
|
+
return /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
271
276
|
id: `col${indexCol}-record${indexRow}`,
|
|
272
277
|
format: {
|
|
273
278
|
format: pickerFormat,
|
|
@@ -293,7 +298,7 @@ const EditableCell = props => {
|
|
|
293
298
|
const weekFormat = (0, _utils.getDatepickerFormat)(editType, cellFormat);
|
|
294
299
|
const maxWeekValue = !(0, _utils.isEmpty)(column.maxDate) ? (0, _dayjs.default)(column.maxDate, weekFormat) : undefined;
|
|
295
300
|
const minWeekValue = !(0, _utils.isEmpty)(column.minDate) ? (0, _dayjs.default)(column.minDate, weekFormat) : undefined;
|
|
296
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
301
|
+
return /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
297
302
|
format: val => (0, _utils.customWeekStartEndFormat)(val, weekFormat),
|
|
298
303
|
style: {
|
|
299
304
|
width: '100%',
|
|
@@ -321,7 +326,7 @@ const EditableCell = props => {
|
|
|
321
326
|
// const timeValue = !isEmpty(record[dataIndex]) ? dayjs(record[dataIndex], timeFormat) : null
|
|
322
327
|
const maxTime = maxTimeValue ? (0, _dayjs.default)(maxTimeValue, timeFormat) : undefined;
|
|
323
328
|
const minTime = minTimeValue ? (0, _dayjs.default)(minTimeValue, timeFormat) : undefined;
|
|
324
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
329
|
+
return /*#__PURE__*/_react.default.createElement(_timePicker.default, {
|
|
325
330
|
format: {
|
|
326
331
|
format: timeFormat,
|
|
327
332
|
type: 'mask'
|
|
@@ -539,7 +544,7 @@ const EditableCell = props => {
|
|
|
539
544
|
// @ts-ignore
|
|
540
545
|
valueSelect = record[fieldValue] ?? value;
|
|
541
546
|
}
|
|
542
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
547
|
+
return /*#__PURE__*/_react.default.createElement(_select.default, {
|
|
543
548
|
options: options,
|
|
544
549
|
value: valueSelect ?? undefined,
|
|
545
550
|
onChange: (val, option) => {
|
|
@@ -790,7 +795,7 @@ const EditableCell = props => {
|
|
|
790
795
|
// @ts-ignore
|
|
791
796
|
valueTreeSelect = record[fieldValue] ?? value;
|
|
792
797
|
}
|
|
793
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
798
|
+
return /*#__PURE__*/_react.default.createElement(_treeSelect.default, {
|
|
794
799
|
id: `col${indexCol}-record${indexRow}`,
|
|
795
800
|
className: 'be-tree-select',
|
|
796
801
|
style: {
|
|
@@ -854,7 +859,7 @@ const EditableCell = props => {
|
|
|
854
859
|
height: '100%',
|
|
855
860
|
width: '100%'
|
|
856
861
|
}
|
|
857
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
862
|
+
}, /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
858
863
|
checked: Boolean(value)
|
|
859
864
|
// style={{ textAlign: column.align ?? 'left' }}
|
|
860
865
|
,
|
|
@@ -956,7 +961,7 @@ const EditableCell = props => {
|
|
|
956
961
|
green: _colors.green,
|
|
957
962
|
cyan: _colors.cyan
|
|
958
963
|
});
|
|
959
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
964
|
+
return /*#__PURE__*/_react.default.createElement(_colorPicker.default, {
|
|
960
965
|
value: color,
|
|
961
966
|
allowClear: column.isClearable ?? true,
|
|
962
967
|
onChangeComplete: valueColor => {
|