es-grid-template 1.9.36 → 1.9.37
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/es/ali-table/Grid.js +1 -1
- package/es/ali-table/InternalTable.js +19 -5
- package/es/ali-table/base-table/empty.js +1 -1
- package/es/ali-table/base-table/html-table.js +2 -2
- package/es/ali-table/base-table/renderFilter.js +1 -5
- package/es/ali-table/interfaces.d.ts +1 -0
- package/es/ali-table/pipeline/features/ColumnsChoose.js +1 -2
- package/es/ali-table/pipeline/features/columnCustom.js +1 -3
- 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/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 +3 -5
- package/es/group-component/ColumnsGroup/ColumnsGroup.js +1 -1
- package/es/group-component/InternalTable.js +1 -2
- package/es/group-component/TableContainer.js +1 -1
- package/es/group-component/TableContainerEdit.js +1 -2
- package/es/group-component/body/EditableCell.d.ts +1 -1
- package/es/group-component/body/EditableCell.js +2 -5
- package/es/group-component/body/TableBody.js +1 -1
- package/es/group-component/components/ControlCheckbox.js +1 -1
- package/es/group-component/components/EditForm/EditForm.js +1 -1
- package/es/group-component/components/InputControl/InputControl.js +1 -1
- package/es/group-component/components/async-select/index.js +1 -1
- package/es/group-component/components/async-table-select/index.d.ts +1 -1
- package/es/group-component/components/async-table-select/index.js +1 -1
- package/es/group-component/components/checkbox-control/index.js +1 -1
- package/es/group-component/components/checkbox-filter/CheckboxFilter.js +1 -4
- package/es/group-component/components/checkbox-filter/FilterSearch.js +1 -1
- package/es/group-component/components/number/index.js +1 -1
- package/es/group-component/components/number-range/index.js +1 -1
- package/es/group-component/header/TableHeadCell.js +1 -3
- package/es/group-component/header/TableHeadCell2.js +1 -3
- package/es/group-component/header/TableHeadGroupCell.js +1 -1
- package/es/group-component/header/renderFilter.js +1 -5
- package/es/group-component/hook/utils.d.ts +4 -4
- 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/InternalTable.js +1 -2
- package/es/table-component/TableContainer.js +1 -1
- package/es/table-component/TableContainerEdit.js +1 -1
- package/es/table-component/body/EditableCell.d.ts +1 -1
- package/es/table-component/body/EditableCell.js +2 -6
- package/es/table-component/body/TableBody.js +1 -1
- package/es/table-component/components/ControlCheckbox.js +1 -1
- package/es/table-component/components/EditForm/EditForm.js +1 -1
- package/es/table-component/components/InputControl/InputControl.js +1 -1
- package/es/table-component/components/async-select/index.js +1 -1
- package/es/table-component/components/async-table-select/index.d.ts +1 -1
- package/es/table-component/components/async-table-select/index.js +1 -1
- package/es/table-component/components/checkbox-control/index.js +1 -1
- package/es/table-component/components/checkbox-filter/CheckboxFilter.js +1 -4
- package/es/table-component/components/checkbox-filter/FilterSearch.js +1 -1
- package/es/table-component/components/number/index.js +1 -1
- package/es/table-component/components/number-range/index.js +1 -1
- package/es/table-component/header/TableHeadCell.js +1 -3
- package/es/table-component/header/TableHeadCell2.js +1 -3
- package/es/table-component/header/TableHeadGroupCell.js +1 -1
- package/es/table-component/header/renderFilter.js +1 -5
- package/es/table-component/hook/utils.d.ts +1 -1
- package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.js +1 -1
- package/es/table-virtuoso/InternalTable.js +1 -2
- package/es/table-virtuoso/header/TableHeadCell.js +1 -3
- package/es/table-virtuoso/header/renderFilter.js +1 -6
- package/es/table-virtuoso/hook/utils.d.ts +1 -1
- package/es/table-virtuoso/table/TableContainer.js +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.js +20 -6
- package/lib/ali-table/base-table/empty.js +3 -3
- package/lib/ali-table/base-table/html-table.js +3 -3
- package/lib/ali-table/base-table/renderFilter.js +9 -13
- package/lib/ali-table/interfaces.d.ts +1 -0
- package/lib/ali-table/pipeline/features/ColumnsChoose.js +3 -4
- package/lib/ali-table/pipeline/features/columnCustom.js +4 -6
- 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 +2 -3
- 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 +3 -5
- package/lib/group-component/ColumnsGroup/ColumnsGroup.js +4 -4
- package/lib/group-component/InternalTable.js +3 -4
- package/lib/group-component/TableContainer.js +2 -2
- package/lib/group-component/TableContainerEdit.js +7 -8
- package/lib/group-component/body/EditableCell.d.ts +1 -1
- package/lib/group-component/body/EditableCell.js +10 -14
- package/lib/group-component/body/TableBody.js +3 -3
- package/lib/group-component/body/TableBodyCell.js +1 -1
- package/lib/group-component/body/TableBodyCellEdit.js +1 -1
- package/lib/group-component/body/TableBodyRowGroupCell.js +1 -1
- package/lib/group-component/components/ControlCheckbox.js +3 -4
- package/lib/group-component/components/EditForm/EditForm.js +2 -2
- package/lib/group-component/components/InputControl/InputControl.js +2 -2
- package/lib/group-component/components/async-select/index.js +2 -2
- package/lib/group-component/components/async-table-select/index.d.ts +1 -1
- package/lib/group-component/components/async-table-select/index.js +2 -2
- package/lib/group-component/components/checkbox-control/index.js +2 -3
- package/lib/group-component/components/checkbox-filter/CheckboxFilter.js +7 -10
- package/lib/group-component/components/checkbox-filter/FilterSearch.js +2 -2
- package/lib/group-component/components/number/index.js +2 -3
- package/lib/group-component/components/number-range/index.js +3 -4
- package/lib/group-component/header/TableHeadCell.js +4 -6
- package/lib/group-component/header/TableHeadCell2.js +4 -6
- package/lib/group-component/header/TableHeadGroupCell.js +2 -2
- package/lib/group-component/header/renderFilter.js +9 -13
- package/lib/group-component/hook/utils.d.ts +9 -9
- package/lib/locale/index.js +1 -1
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +2 -3
- package/lib/splitter/index.d.ts +2 -2
- package/lib/splitter/index.js +2 -3
- package/lib/table-component/InternalTable.js +3 -4
- package/lib/table-component/TableContainer.js +2 -2
- package/lib/table-component/TableContainerEdit.js +3 -3
- package/lib/table-component/body/EditableCell.d.ts +1 -1
- package/lib/table-component/body/EditableCell.js +11 -16
- package/lib/table-component/body/TableBody.js +3 -3
- package/lib/table-component/body/TableBodyCell.js +1 -1
- package/lib/table-component/body/TableBodyCellEdit.js +1 -1
- package/lib/table-component/components/ControlCheckbox.js +3 -4
- package/lib/table-component/components/EditForm/EditForm.js +2 -2
- package/lib/table-component/components/InputControl/InputControl.js +2 -2
- package/lib/table-component/components/async-select/index.js +2 -2
- package/lib/table-component/components/async-table-select/index.d.ts +1 -1
- package/lib/table-component/components/async-table-select/index.js +2 -2
- package/lib/table-component/components/checkbox-control/index.js +2 -3
- package/lib/table-component/components/checkbox-filter/CheckboxFilter.js +7 -10
- package/lib/table-component/components/checkbox-filter/FilterSearch.js +2 -2
- package/lib/table-component/components/number/index.js +2 -3
- package/lib/table-component/components/number-range/index.js +3 -4
- package/lib/table-component/header/TableHeadCell.js +4 -6
- package/lib/table-component/header/TableHeadCell2.js +4 -6
- package/lib/table-component/header/TableHeadGroupCell.js +2 -2
- package/lib/table-component/header/renderFilter.js +9 -13
- package/lib/table-component/hook/utils.d.ts +1 -1
- package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.js +4 -4
- package/lib/table-virtuoso/InternalTable.js +3 -4
- package/lib/table-virtuoso/body/TableBodyCell.js +1 -1
- package/lib/table-virtuoso/header/TableHeadCell.js +4 -6
- package/lib/table-virtuoso/header/renderFilter.js +10 -15
- package/lib/table-virtuoso/hook/utils.d.ts +1 -1
- package/lib/table-virtuoso/table/TableContainer.js +2 -2
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/index.js +2 -3
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/index.js +2 -3
- package/package.json +1 -1
package/es/ali-table/Grid.js
CHANGED
|
@@ -5,7 +5,7 @@ import React, { useContext } from "react";
|
|
|
5
5
|
import { Tooltip } from "react-tooltip";
|
|
6
6
|
import "./base-table/styles.scss";
|
|
7
7
|
// import type { TableProps } from "../table-component"
|
|
8
|
-
import Toolbar from 'rc-master-ui
|
|
8
|
+
import { Toolbar } from 'rc-master-ui';
|
|
9
9
|
import classNames from "classnames";
|
|
10
10
|
import Pagination from "rc-master-ui/es/pagination";
|
|
11
11
|
import { Maximize, Minimize } from "becoxy-icons";
|
|
@@ -5,11 +5,10 @@ import { useLocale } from "rc-master-ui/es/locale";
|
|
|
5
5
|
import { faker } from "@faker-js/faker";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import "./base-table/styles.scss";
|
|
8
|
-
import { addRowIdArray, filterDataByColumns,
|
|
8
|
+
import { addRowIdArray, filterDataByColumns, flatColumns2,
|
|
9
9
|
// getInvisibleColumns,
|
|
10
10
|
getVisibleFields, groupArrayByColumns, isTreeArray, revertConvertFilters, sortByType, sumFields } from "../table-component/hook/utils";
|
|
11
|
-
import CustomProvider from 'rc-master-ui
|
|
12
|
-
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
11
|
+
import { CustomProvider, ConfigProvider } from 'rc-master-ui';
|
|
13
12
|
import { Modal } from 'antd';
|
|
14
13
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
15
14
|
import { TableContext } from "./useContext";
|
|
@@ -107,7 +106,8 @@ const InternalTable = props => {
|
|
|
107
106
|
if (footerDataSource) {
|
|
108
107
|
return footerDataSource;
|
|
109
108
|
}
|
|
110
|
-
const
|
|
109
|
+
const flatColumns = flatColumns2(columns);
|
|
110
|
+
const a = sumFields(flatColumns, dataSource, childrenKey);
|
|
111
111
|
return [a];
|
|
112
112
|
}, [columns, dataSource, footerDataSource, summary]);
|
|
113
113
|
const expandAllKeys = React.useMemo(() => {
|
|
@@ -229,7 +229,21 @@ const InternalTable = props => {
|
|
|
229
229
|
// }
|
|
230
230
|
|
|
231
231
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
232
|
-
locale: language
|
|
232
|
+
locale: language,
|
|
233
|
+
theme: {
|
|
234
|
+
token: {
|
|
235
|
+
// colorPrimary: '#eb4619',
|
|
236
|
+
// colorLink: '#eb4619',
|
|
237
|
+
},
|
|
238
|
+
components: {
|
|
239
|
+
Dropdown: {
|
|
240
|
+
zIndexPopup: 1158
|
|
241
|
+
},
|
|
242
|
+
Popover: {
|
|
243
|
+
zIndexPopup: 1158
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
233
247
|
}, /*#__PURE__*/React.createElement(CustomProvider, {
|
|
234
248
|
locale: languages
|
|
235
249
|
}, /*#__PURE__*/React.createElement(TableContext.Provider, {
|
|
@@ -2,7 +2,7 @@ import cx from 'classnames';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Colgroup } from "./colgroup";
|
|
4
4
|
import { Classes } from "./styles";
|
|
5
|
-
import Empty from 'rc-master-ui
|
|
5
|
+
import { Empty } from 'rc-master-ui';
|
|
6
6
|
const DefaultEmptyContent = /*#__PURE__*/React.memo(({
|
|
7
7
|
locale
|
|
8
8
|
}) => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Empty, {
|
|
@@ -6,7 +6,7 @@ import { Colgroup } from "./colgroup";
|
|
|
6
6
|
import SpanManager from "./helpers/SpanManager";
|
|
7
7
|
import { Classes } from "./styles";
|
|
8
8
|
import { nonActionColumn } from "../../grid-component/hooks";
|
|
9
|
-
import Space from 'rc-master-ui
|
|
9
|
+
import { Space } from 'rc-master-ui';
|
|
10
10
|
import Command from "../../table-component/components/command/Command";
|
|
11
11
|
import { renderValueCell } from "../../table-component/hook/useColumns";
|
|
12
12
|
export function HtmlTable({
|
|
@@ -196,7 +196,7 @@ export function HtmlTable({
|
|
|
196
196
|
// },
|
|
197
197
|
};
|
|
198
198
|
if (tbodyHtmlTag === 'tfoot') {
|
|
199
|
-
if (!nonActionColumn.includes(column.field)) {
|
|
199
|
+
if (!nonActionColumn.includes(column.field) && column.isSummary !== false) {
|
|
200
200
|
return /*#__PURE__*/React.createElement("td", _extends({
|
|
201
201
|
key: colIndex
|
|
202
202
|
}, tdProps));
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import moment from "moment/moment";
|
|
3
|
-
import DatePicker from
|
|
4
|
-
import DateRangePicker from 'rc-master-ui/es/date-range-picker';
|
|
5
|
-
import Empty from 'rc-master-ui/es/empty';
|
|
6
|
-
import Input from 'rc-master-ui/es/input';
|
|
7
|
-
import Select from 'rc-master-ui/es/select';
|
|
3
|
+
import { DatePicker, DateRangePicker, Empty, Input, Select } from "rc-master-ui";
|
|
8
4
|
import dayjs from "dayjs";
|
|
9
5
|
import { convertDateToDayjs, convertDayjsToDate, convertFormat, getDatepickerFormat, getDateRangeFormat, getTypeFilter, isEmpty } from "../../table-component/hook/utils";
|
|
10
6
|
import NumberInput from "../../table-component/components/number";
|
|
@@ -6,8 +6,7 @@ import SearchOutlined from "@ant-design/icons/SearchOutlined";
|
|
|
6
6
|
import { Settings } from "becoxy-icons";
|
|
7
7
|
import { updateColumns1 } from "../../../table-component/hook/utils";
|
|
8
8
|
import { convertColumnsToTreeData, filterColumnsByField } from "../../utils/convertColumnsChoose";
|
|
9
|
-
import Input from
|
|
10
|
-
import Popover from 'rc-master-ui/es/popover';
|
|
9
|
+
import { Input, Popover } from "rc-master-ui";
|
|
11
10
|
import Button from "rc-master-ui/es/button";
|
|
12
11
|
const CustomStyle = styled.div.withConfig({
|
|
13
12
|
displayName: "CustomStyle",
|
|
@@ -6,9 +6,7 @@ import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
|
6
6
|
import { booleanOperator, findItemPath, nonActionColumn, numberOperator, pageSizeOptions, stringOperator, translateOption, updateArrayByKey } from "../../../grid-component/hooks";
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import { Button } from 'antd';
|
|
9
|
-
import Dropdown from 'rc-master-ui
|
|
10
|
-
import Select from 'rc-master-ui/es/select';
|
|
11
|
-
import Space from 'rc-master-ui/es/space';
|
|
9
|
+
import { Dropdown, Select, Space } from 'rc-master-ui';
|
|
12
10
|
import { convertFilters, extendsObject, getDefaultOperator, getTypeFilter } from "../../../table-component/hook/utils";
|
|
13
11
|
import { renderFilter } from "../../base-table/renderFilter";
|
|
14
12
|
import { renderValueCell } from "../../../table-component/hook/useColumns";
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { always } from "../../utils/others";
|
|
3
3
|
import { findItemByKey, updateArrayByKey } from "../../../table-component/hook/utils";
|
|
4
4
|
import { mergeCellProps } from "../../utils";
|
|
5
|
-
import Checkbox from 'rc-master-ui
|
|
5
|
+
import { Checkbox } from 'rc-master-ui';
|
|
6
6
|
import { buildTreeIndex, getAllEnabledKeys, handleSelectOptimized,
|
|
7
7
|
// isRowChecked,
|
|
8
8
|
// isRowIndeterminate,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TreeDataNode } from "antd";
|
|
2
|
+
import { ColumnTable } from "../../grid-component";
|
|
3
3
|
export declare function convertColumnsToTreeData(columns: ColumnTable[], groupColumns?: string[], t?: any): TreeDataNode[];
|
|
4
4
|
export declare function filterColumnsByField(columns: ColumnTable[], fieldList: string[]): ColumnTable[];
|
|
5
5
|
export declare function filterVisibleColumns(columns: ColumnTable[]): ColumnTable[];
|
package/es/collapse/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Collapse from 'rc-master-ui
|
|
2
|
-
import type { CollapseProps, CollapsePanelProps } from 'rc-master-ui
|
|
1
|
+
import { Collapse } from 'rc-master-ui';
|
|
2
|
+
import type { CollapseProps, CollapsePanelProps } from 'rc-master-ui';
|
|
3
3
|
export type { CollapseProps, CollapsePanelProps };
|
|
4
4
|
export default Collapse;
|
package/es/collapse/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Collapse from 'rc-master-ui
|
|
1
|
+
import { Collapse } from 'rc-master-ui';
|
|
2
2
|
export default Collapse;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
|
-
import Input from
|
|
3
|
+
import { Input } from "rc-master-ui";
|
|
4
4
|
import { Typography } from "antd";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import React, { Fragment } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import type { EditType, IColumnType, TypeFilter } from
|
|
3
|
+
import type { EditType, IColumnType, TypeFilter } from "rc-master-ui";
|
|
4
4
|
import type { Key } from "react";
|
|
5
5
|
import type { ColumnsTable } from "./../index";
|
|
6
6
|
import type { AnyObject, ColumnTable, GetRowKey, IFormat } from "../type";
|
|
@@ -53,7 +53,7 @@ export declare const isObjEmpty: (obj: any) => boolean;
|
|
|
53
53
|
export declare const getColumnsVisible: <T>(columns: ColumnsTable<T>, index: number) => ColumnTable<T>[];
|
|
54
54
|
export declare const updateData: <Record = AnyObject>(initData: Record[], rows: Record[], key: keyof Record) => Record[];
|
|
55
55
|
export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
|
|
56
|
-
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/
|
|
56
|
+
export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("rc-master-ui/lib/color-picker/interface").PresetsItem[];
|
|
57
57
|
export declare function findAllChildrenKeys<RecordType>(data: readonly RecordType[], getRowKey: GetRowKey<RecordType>, childrenColumnName: string): Key[];
|
|
58
58
|
export declare function findAllChildrenKeys2<RecordType>(data: readonly RecordType[], rowKey: any, childrenColumnName: string): Key[];
|
|
59
59
|
export declare const flattenArray: <RecordType extends AnyObject = AnyObject>(arr: any[]) => RecordType[];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { CheckboxProps } from 'rc-master-ui
|
|
2
|
-
import type { ColorPickerProps } from 'rc-master-ui/es/color-picker';
|
|
3
|
-
import type { TablePaginationConfig } from 'rc-master-ui/es/table/interface';
|
|
1
|
+
import type { CheckboxProps, ColorPickerProps, TablePaginationConfig } from 'rc-master-ui';
|
|
4
2
|
import type { ItemType } from 'rc-master-ui/es/menu/interface';
|
|
5
3
|
import type { Cell, Header, OnChangeFn } from '@tanstack/react-table';
|
|
6
4
|
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
7
|
-
import type { TableLocale } from "rc-master-ui/
|
|
8
|
-
import type { PaginationLocale } from 'rc-master-ui/
|
|
5
|
+
import type { TableLocale } from "rc-master-ui/lib/table/interface";
|
|
6
|
+
import type { PaginationLocale } from 'rc-master-ui/lib/pagination/Pagination';
|
|
9
7
|
import type { BaseTableCSSVariables } from '../ali-table/base-table/styles';
|
|
10
8
|
declare module "@tanstack/table-core" {
|
|
11
9
|
interface ColumnMeta<any, any> extends ColumnTable {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Group } from "becoxy-icons";
|
|
2
2
|
import React, { useRef, useState } from "react";
|
|
3
3
|
import { Button, Popover } from "antd";
|
|
4
|
-
import Select from
|
|
4
|
+
import { Select } from "rc-master-ui";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { customFilterOption } from "../../grid-component/hooks";
|
|
7
7
|
const BoxAction = styled.div.withConfig({
|
|
@@ -14,8 +14,7 @@ import { convertToTanStackColumns } from "./hook/useColumns";
|
|
|
14
14
|
import { convertColumns } from "./hook/convert";
|
|
15
15
|
import { removeInvisibleColumns } from "../grid-component/hooks";
|
|
16
16
|
import { groupArrayByColumns } from "../table-virtuoso/hook/utils";
|
|
17
|
-
import ConfigProvider from 'rc-master-ui
|
|
18
|
-
import CustomProvider from 'rc-master-ui/es/CustomProvider';
|
|
17
|
+
import { ConfigProvider, CustomProvider } from 'rc-master-ui';
|
|
19
18
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
20
19
|
dayjs.extend(customParseFormat);
|
|
21
20
|
const InternalTable = props => {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { TableContext } from "./useContext";
|
|
5
5
|
import Pagination from 'rc-master-ui/es/pagination';
|
|
6
|
-
import Toolbar from 'rc-master-ui
|
|
6
|
+
import { Toolbar } from 'rc-master-ui';
|
|
7
7
|
import { Collapse2, Expand2, Maximize, Minimize } from 'becoxy-icons';
|
|
8
8
|
// import { ColumnsChoose } from './ColumnsChoose'
|
|
9
9
|
import { numericFormatter } from 'react-numeric-component';
|
|
@@ -10,8 +10,7 @@ import Pagination from "rc-master-ui/es/pagination";
|
|
|
10
10
|
import { numericFormatter, removeNumericFormat } from "react-numeric-component";
|
|
11
11
|
import { TableContext } from "./useContext";
|
|
12
12
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
13
|
-
import Dropdown from
|
|
14
|
-
import Toolbar from 'rc-master-ui/es/toolbar';
|
|
13
|
+
import { Dropdown, Toolbar } from "rc-master-ui";
|
|
15
14
|
import { Modal, Typography } from "antd";
|
|
16
15
|
import classNames from "classnames";
|
|
17
16
|
import { Collapse2, Expand2, Maximize, Minimize } from "becoxy-icons";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { EditType } from
|
|
2
|
+
import type { EditType } from "rc-master-ui";
|
|
3
3
|
import type { ColumnTable, IFormat } from "../../grid-component/type";
|
|
4
4
|
interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
t?: any;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
|
-
import DatePicker from
|
|
4
|
-
import TimePicker from 'rc-master-ui/es/time-picker';
|
|
3
|
+
import { DatePicker, TimePicker } from "rc-master-ui";
|
|
5
4
|
import { ColorPicker, Divider, Input, Row, Col } from "antd";
|
|
6
5
|
import { checkDecimalSeparator, checkThousandSeparator, checkFieldKey, convertArrayWithIndent, convertDateToDayjs, convertLabelToTitle, getDatepickerFormat, isDisable, isEmpty, isNullOrUndefined, customWeekStartEndFormat, convertDayjsToDate, parseBooleanToValue, isColor, genPresets, getFormat } from "../hook/utils";
|
|
7
6
|
import classNames from "classnames";
|
|
@@ -9,9 +8,7 @@ import { NumericFormat } from "react-numeric-component";
|
|
|
9
8
|
import dayjs from "dayjs";
|
|
10
9
|
import moment from "moment";
|
|
11
10
|
import { Controller } from "react-hook-form";
|
|
12
|
-
import Checkbox from
|
|
13
|
-
import TreeSelect from 'rc-master-ui/es/tree-select';
|
|
14
|
-
import Select from 'rc-master-ui/es/select';
|
|
11
|
+
import { Checkbox, TreeSelect, Select } from "rc-master-ui";
|
|
15
12
|
import { AsyncSelect } from "../components/async-select";
|
|
16
13
|
import { AsyncTableSelect } from "../components/async-table-select";
|
|
17
14
|
import { cyan, green, red, blue } from '@ant-design/colors';
|
|
@@ -5,7 +5,7 @@ import TableBodyRow from "./TableBodyRow";
|
|
|
5
5
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
6
6
|
import React, { Fragment } from "react";
|
|
7
7
|
import { TableContext } from "../useContext";
|
|
8
|
-
import Empty from
|
|
8
|
+
import { Empty } from "rc-master-ui";
|
|
9
9
|
const TableBody = ({
|
|
10
10
|
columnVirtualizer,
|
|
11
11
|
table,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
|
-
import Checkbox from
|
|
2
|
+
import { Checkbox } from "rc-master-ui";
|
|
3
3
|
import { TableContext } from "../useContext";
|
|
4
4
|
import { isEditable, isDisable, parseBooleanToValue } from "../hook/utils";
|
|
5
5
|
const ControlCheckbox = props => {
|
|
@@ -4,7 +4,7 @@ import { useForm } from "react-hook-form";
|
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
5
|
import { Col, Row } from "rc-master-ui/es/grid";
|
|
6
6
|
import { isNullOrUndefined, isObjEmpty } from "../../hook/utils";
|
|
7
|
-
import Input from
|
|
7
|
+
import { Input } from "rc-master-ui";
|
|
8
8
|
import { Dropdown } from "antd";
|
|
9
9
|
import Divider from "rc-master-ui/es/divider";
|
|
10
10
|
import Button from "rc-master-ui/es/button";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { Controller } from "react-hook-form";
|
|
3
|
-
import Input from
|
|
3
|
+
import { Input } from "rc-master-ui";
|
|
4
4
|
import { Typography } from "antd";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import React, { Fragment } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
import Select from
|
|
4
|
+
import { Select } from "rc-master-ui";
|
|
5
5
|
export function AsyncSelect({
|
|
6
6
|
loadOptions,
|
|
7
7
|
debounceTimeout = 500,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { BaseOptionType, DefaultOptionType } from "rc-select/lib/Select";
|
|
3
|
-
import type { TableSelectProps } from
|
|
3
|
+
import type { TableSelectProps } from "rc-master-ui";
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
import TableSelect from
|
|
4
|
+
import { TableSelect } from "rc-master-ui";
|
|
5
5
|
export function AsyncTableSelect({
|
|
6
6
|
loadOptions,
|
|
7
7
|
debounceTimeout = 500,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import Checkbox from
|
|
4
|
-
import Menu from 'rc-master-ui/es/menu';
|
|
5
|
-
import Radio from 'rc-master-ui/es/radio';
|
|
6
|
-
import Empty from 'rc-master-ui/es/empty';
|
|
3
|
+
import { Checkbox, Menu, Radio, Empty } from "rc-master-ui";
|
|
7
4
|
import { Tree } from "antd";
|
|
8
5
|
import { flattenKeys } from "rc-master-ui/es/table/hooks/useFilter";
|
|
9
6
|
import FilterSearch from "./FilterSearch";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import { NumericFormat } from "react-numeric-component";
|
|
3
|
-
import Input from
|
|
3
|
+
import { Input } from "rc-master-ui";
|
|
4
4
|
import { checkDecimalSeparator, checkThousandSeparator } from "../../hook/utils";
|
|
5
5
|
const NumberInput = props => {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import { NumericFormat } from "react-numeric-component";
|
|
3
|
-
import Input from
|
|
3
|
+
import { Input } from "rc-master-ui";
|
|
4
4
|
import { checkDecimalSeparator, checkThousandSeparator } from "../../hook/utils";
|
|
5
5
|
const NumberRange = props => {
|
|
6
6
|
const {
|
|
@@ -2,9 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { Button, Space } from 'antd';
|
|
3
3
|
import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import Checkbox from 'rc-master-ui
|
|
6
|
-
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
7
|
-
import Select from 'rc-master-ui/es/select';
|
|
5
|
+
import { Checkbox, Dropdown, Select } from 'rc-master-ui';
|
|
8
6
|
import { booleanOperator, nonActionColumn, numberOperator, stringOperator, translateOption } from "../../grid-component/hooks";
|
|
9
7
|
import { extendsObject, getCommonPinningStyles, getDefaultOperator, getTypeFilter } from "../hook/utils";
|
|
10
8
|
import { TableContext } from "../useContext";
|
|
@@ -2,9 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { Button, Space } from 'antd';
|
|
3
3
|
import { ArrowDown, ArrowUp, FilterFill, SortCancel } from 'becoxy-icons';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import Checkbox from 'rc-master-ui
|
|
6
|
-
import Dropdown from 'rc-master-ui/es/dropdown';
|
|
7
|
-
import Select from 'rc-master-ui/es/select';
|
|
5
|
+
import { Checkbox, Dropdown, Select } from 'rc-master-ui';
|
|
8
6
|
import { excludeItems, extendsObject, getCommonPinningStyles, getDefaultOperator, getTypeFilter, removeDuplicatesByKey } from "../hook/utils";
|
|
9
7
|
import { TableContext } from "../useContext";
|
|
10
8
|
import { renderFilter } from "./renderFilter";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import Checkbox from 'rc-master-ui
|
|
3
|
+
import { Checkbox } from 'rc-master-ui';
|
|
4
4
|
import { getCommonPinningStyles2 } from "../hook/utils";
|
|
5
5
|
import { TableContext } from "../useContext";
|
|
6
6
|
const TableHeadGroupCell = props => {
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { Fragment } from "react";
|
|
6
6
|
import moment from "moment/moment";
|
|
7
|
-
import DatePicker from
|
|
8
|
-
import DateRangePicker from 'rc-master-ui/es/date-range-picker';
|
|
9
|
-
import Empty from 'rc-master-ui/es/empty';
|
|
10
|
-
import Input from 'rc-master-ui/es/input';
|
|
11
|
-
import Select from 'rc-master-ui/es/select';
|
|
7
|
+
import { DatePicker, DateRangePicker, Empty, Input, Select } from "rc-master-ui";
|
|
12
8
|
import dayjs from "dayjs";
|
|
13
9
|
import { convertDateToDayjs, convertDayjsToDate, convertFormat, getDatepickerFormat, getDateRangeFormat, getTypeFilter, isEmpty } from "../hook/utils";
|
|
14
10
|
import NumberInput from "../components/number";
|
|
@@ -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/lib/color-picker/interface").PresetsItem[];
|
|
88
88
|
export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
|
|
89
89
|
export declare const getDefaultValue: (defaultValue: any) => AnyObject;
|
|
90
90
|
export declare const flattenData: <RecordType extends AnyObject = AnyObject>(childrenColumnName: string, data?: RecordType[]) => RecordType[];
|
|
@@ -194,10 +194,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
194
194
|
value: any;
|
|
195
195
|
rowData: RecordType;
|
|
196
196
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
|
|
197
|
-
onCellStyles?: Omit<CSSProperties, "
|
|
198
|
-
onCellHeaderStyles?: Omit<CSSProperties, "
|
|
197
|
+
onCellStyles?: Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display">);
|
|
198
|
+
onCellHeaderStyles?: Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display">);
|
|
199
199
|
onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
|
|
200
|
-
onCellFooterStyles?: Omit<CSSProperties, "
|
|
200
|
+
onCellFooterStyles?: Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "right" | "left" | "position" | "display">);
|
|
201
201
|
getValue?: (row: any, rowIndex: number) => any;
|
|
202
202
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
203
203
|
headerCellProps?: import("./../../grid-component/type").CellProps;
|
package/es/locale/index.js
CHANGED
package/es/select/index.d.ts
CHANGED
package/es/select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Select from 'rc-master-ui
|
|
1
|
+
import { Select } from 'rc-master-ui';
|
|
2
2
|
export default Select;
|
package/es/splitter/index.d.ts
CHANGED
package/es/splitter/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Splitter from 'rc-master-ui
|
|
1
|
+
import { Splitter } from 'rc-master-ui';
|
|
2
2
|
export default Splitter;
|
|
@@ -13,8 +13,7 @@ import { addRowIdArray, convertFlatColumn1, convertToObj, convertToObjTrue, filt
|
|
|
13
13
|
import { convertToTanStackColumns } from "./hook/useColumns";
|
|
14
14
|
import { convertColumns } from "./hook/convert";
|
|
15
15
|
import { removeInvisibleColumns } from "../grid-component/hooks";
|
|
16
|
-
import CustomProvider from 'rc-master-ui
|
|
17
|
-
import ConfigProvider from 'rc-master-ui/es/config-provider';
|
|
16
|
+
import { CustomProvider, ConfigProvider } from 'rc-master-ui';
|
|
18
17
|
import { getLocale, getLocales } from "../locale/useLocale";
|
|
19
18
|
dayjs.extend(customParseFormat);
|
|
20
19
|
const InternalTable = props => {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { TableContext } from "./useContext";
|
|
5
5
|
import Pagination from 'rc-master-ui/es/pagination';
|
|
6
|
-
import Toolbar from 'rc-master-ui
|
|
6
|
+
import { Toolbar } from 'rc-master-ui';
|
|
7
7
|
import { Maximize, Minimize } from 'becoxy-icons';
|
|
8
8
|
import { ColumnsChoose } from "./ColumnsChoose";
|
|
9
9
|
import { numericFormatter } from 'react-numeric-component';
|
|
@@ -15,7 +15,7 @@ import Pagination from "rc-master-ui/es/pagination";
|
|
|
15
15
|
import { numericFormatter, removeNumericFormat } from "react-numeric-component";
|
|
16
16
|
import { TableContext } from "./useContext";
|
|
17
17
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
18
|
-
import Toolbar from
|
|
18
|
+
import { Toolbar } from "rc-master-ui";
|
|
19
19
|
import classNames from "classnames";
|
|
20
20
|
import { Maximize, Minimize } from "becoxy-icons";
|
|
21
21
|
import { ColumnsChoose } from "./ColumnsChoose";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { EditType } from
|
|
2
|
+
import type { EditType } from "rc-master-ui";
|
|
3
3
|
import type { ColumnTable, IFormat } from "../../grid-component/type";
|
|
4
4
|
interface EditableCellProps<DataType> extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
t?: any;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
|
-
import DatePicker from
|
|
4
|
-
import TimePicker from 'rc-master-ui/es/time-picker';
|
|
5
|
-
import ColorPicker from 'rc-master-ui/es/color-picker';
|
|
3
|
+
import { DatePicker, TimePicker, ColorPicker } from "rc-master-ui";
|
|
6
4
|
import { Divider, Row, Col, Input, Button } from "antd";
|
|
7
5
|
import { checkDecimalSeparator, checkThousandSeparator, checkFieldKey, convertArrayWithIndent, convertDateToDayjs, convertLabelToTitle, getDatepickerFormat, isDisable, isEmpty, isNullOrUndefined, customWeekStartEndFormat, convertDayjsToDate, parseBooleanToValue, isColor, genPresets, getFormat, removeVietnameseTones } from "../hook/utils";
|
|
8
6
|
import classNames from "classnames";
|
|
@@ -10,9 +8,7 @@ import { NumericFormat } from "react-numeric-component";
|
|
|
10
8
|
import dayjs from "dayjs";
|
|
11
9
|
import moment from "moment";
|
|
12
10
|
import { Controller } from "react-hook-form";
|
|
13
|
-
import Checkbox from
|
|
14
|
-
import Select from 'rc-master-ui/es/select';
|
|
15
|
-
import TreeSelect from 'rc-master-ui/es/tree-select';
|
|
11
|
+
import { Checkbox, Select, TreeSelect } from "rc-master-ui";
|
|
16
12
|
import { AsyncSelect } from "../components/async-select";
|
|
17
13
|
import { AsyncTableSelect } from "../components/async-table-select";
|
|
18
14
|
import { cyan, green, red, blue } from '@ant-design/colors';
|
|
@@ -3,7 +3,7 @@ import TableBodyRow from "./TableBodyRow";
|
|
|
3
3
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
4
4
|
import React, { Fragment } from "react";
|
|
5
5
|
import { TableContext } from "../useContext";
|
|
6
|
-
import Empty from
|
|
6
|
+
import { Empty } from "rc-master-ui";
|
|
7
7
|
const TableBody = ({
|
|
8
8
|
columnVirtualizer,
|
|
9
9
|
table,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
|
-
import Checkbox from
|
|
2
|
+
import { Checkbox } from "rc-master-ui";
|
|
3
3
|
import { TableContext } from "../useContext";
|
|
4
4
|
import { isEditable, isDisable, parseBooleanToValue } from "../hook/utils";
|
|
5
5
|
const ControlCheckbox = props => {
|
|
@@ -4,7 +4,7 @@ import { useForm } from "react-hook-form";
|
|
|
4
4
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
5
5
|
import { Col, Row } from "rc-master-ui/es/grid";
|
|
6
6
|
import { isNullOrUndefined, isObjEmpty } from "../../hook/utils";
|
|
7
|
-
import Input from
|
|
7
|
+
import { Input } from "rc-master-ui";
|
|
8
8
|
import { Dropdown } from "antd";
|
|
9
9
|
import Divider from "rc-master-ui/es/divider";
|
|
10
10
|
import Button from "rc-master-ui/es/button";
|