rsuite 5.28.1 → 5.28.3
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/CHANGELOG.md +13 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +2 -0
- package/cjs/AutoComplete/AutoComplete.js +4 -1
- package/cjs/FormControl/FormControl.js +1 -1
- package/cjs/Table/Table.d.ts +8 -18
- package/cjs/Table/Table.js +8 -7
- package/cjs/Table/index.d.ts +2 -2
- package/dist/rsuite.js +764 -733
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/AutoComplete/AutoComplete.d.ts +2 -0
- package/esm/AutoComplete/AutoComplete.js +4 -1
- package/esm/FormControl/FormControl.js +1 -1
- package/esm/Table/Table.d.ts +8 -18
- package/esm/Table/Table.js +9 -9
- package/esm/Table/index.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [5.28.3](https://github.com/rsuite/rsuite/compare/v5.28.2...v5.28.3) (2023-03-17)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **AutoComplete:** add missing autoComplete prop ([#3108](https://github.com/rsuite/rsuite/issues/3108)) ([c855fab](https://github.com/rsuite/rsuite/commit/c855fab4488c6545ad567166007a6f6650db2849))
|
|
6
|
+
- **Form.Control:** fix not able to override checked prop ([#3120](https://github.com/rsuite/rsuite/issues/3120)) ([aac965e](https://github.com/rsuite/rsuite/commit/aac965e1fdc80bf67885c609021fa8e01b2f3576))
|
|
7
|
+
|
|
8
|
+
## [5.28.2](https://github.com/rsuite/rsuite/compare/v5.28.1...v5.28.2) (2023-03-10)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **AutoComplete:** fix readOnly not work ([#3107](https://github.com/rsuite/rsuite/issues/3107)) ([493bbdc](https://github.com/rsuite/rsuite/commit/493bbdcd4fcfbe271bc98108f3831f18ffda9353))
|
|
13
|
+
|
|
1
14
|
## [5.28.1](https://github.com/rsuite/rsuite/compare/v5.28.0...v5.28.1) (2023-03-03)
|
|
2
15
|
|
|
3
16
|
### Bug Fixes
|
|
@@ -17,6 +17,8 @@ export interface AutoCompleteProps<T = ValueType> extends WithAsProps, FormContr
|
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
/** The width of the menu will automatically follow the width of the input box */
|
|
19
19
|
menuAutoWidth?: boolean;
|
|
20
|
+
/** AutoComplete Content */
|
|
21
|
+
autoComplete?: string;
|
|
20
22
|
/** Custom filter function to determine whether the item will be displayed */
|
|
21
23
|
filterBy?: (value: string, item: ItemDataType) => boolean;
|
|
22
24
|
/** Called when a option is selected */
|
|
@@ -55,6 +55,7 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
55
55
|
size = props.size,
|
|
56
56
|
menuClassName = props.menuClassName,
|
|
57
57
|
id = props.id,
|
|
58
|
+
readOnly = props.readOnly,
|
|
58
59
|
renderMenu = props.renderMenu,
|
|
59
60
|
renderMenuItem = props.renderMenuItem,
|
|
60
61
|
onSelect = props.onSelect,
|
|
@@ -66,7 +67,7 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
66
67
|
onFocus = props.onFocus,
|
|
67
68
|
onBlur = props.onBlur,
|
|
68
69
|
onMenuFocus = props.onMenuFocus,
|
|
69
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "menuAutoWidth", "data", "value", "open", "style", "size", "menuClassName", "id", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
|
|
70
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "disabled", "className", "placement", "selectOnEnter", "classPrefix", "defaultValue", "menuAutoWidth", "data", "value", "open", "style", "size", "menuClassName", "id", "readOnly", "renderMenu", "renderMenuItem", "onSelect", "filterBy", "onKeyDown", "onChange", "onClose", "onOpen", "onFocus", "onBlur", "onMenuFocus"]);
|
|
70
71
|
var datalist = (0, _utils3.transformData)(data);
|
|
71
72
|
|
|
72
73
|
var _useControlled = (0, _utils.useControlled)(valueProp, defaultValue),
|
|
@@ -233,6 +234,7 @@ var AutoComplete = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
233
234
|
disabled: disabled,
|
|
234
235
|
value: value,
|
|
235
236
|
size: size,
|
|
237
|
+
readOnly: readOnly,
|
|
236
238
|
onBlur: handleInputBlur,
|
|
237
239
|
onFocus: handleInputFocus,
|
|
238
240
|
onChange: handleChange,
|
|
@@ -259,6 +261,7 @@ AutoComplete.propTypes = (0, _extends2.default)({}, _utils2.animationPropTypes,
|
|
|
259
261
|
onKeyDown: _propTypes.default.func,
|
|
260
262
|
onOpen: _propTypes.default.func,
|
|
261
263
|
onClose: _propTypes.default.func,
|
|
264
|
+
readOnly: _propTypes.default.bool,
|
|
262
265
|
renderMenu: _propTypes.default.func,
|
|
263
266
|
renderMenuItem: _propTypes.default.func,
|
|
264
267
|
style: _propTypes.default.object,
|
|
@@ -179,7 +179,7 @@ var FormControl = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
179
179
|
"aria-describedby": ariaDescribedby,
|
|
180
180
|
"aria-invalid": fieldHasError || undefined,
|
|
181
181
|
"aria-errormessage": ariaErrormessage
|
|
182
|
-
},
|
|
182
|
+
}, accepterProps, rest, {
|
|
183
183
|
readOnly: readOnly,
|
|
184
184
|
plaintext: plaintext,
|
|
185
185
|
disabled: disabled,
|
package/cjs/Table/Table.d.ts
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Column,
|
|
3
|
-
|
|
4
|
-
export interface TableInstance extends React.Component<TableProps> {
|
|
5
|
-
scrollTop: (top: number) => void;
|
|
6
|
-
scrollLeft: (left: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface CellProps<T = any> extends StandardProps {
|
|
2
|
+
import { Column, TableProps, RowDataType, TableInstance, CellProps as TableCellProps } from 'rsuite-table';
|
|
3
|
+
export interface CellProps<T = any> extends Omit<TableCellProps, 'rowData' | 'dataKey'> {
|
|
9
4
|
/** Data binding key, but also a sort of key */
|
|
10
5
|
dataKey?: string | keyof T;
|
|
11
|
-
/** Row Number */
|
|
12
|
-
rowIndex?: number;
|
|
13
6
|
/** Row Data */
|
|
14
7
|
rowData?: T;
|
|
15
8
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}> {
|
|
9
|
+
declare const _default: (<Row extends RowDataType, Key>(props: TableProps<Row, Key> & React.RefAttributes<TableInstance<Row, Key>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
+
Cell: React.ForwardRefExoticComponent<import("rsuite-table/lib/Cell").InnerCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
11
|
Column: typeof Column;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
declare const Table: TableComponent;
|
|
25
|
-
export default Table;
|
|
12
|
+
HeaderCell: React.ForwardRefExoticComponent<import("rsuite-table").HeaderCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
ColumnGroup: React.ForwardRefExoticComponent<import("rsuite-table").ColumnGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
package/cjs/Table/Table.js
CHANGED
|
@@ -15,7 +15,7 @@ var _rsuiteTable = require("rsuite-table");
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("../utils");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var CustomTable = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
19
19
|
var localeProp = props.locale,
|
|
20
20
|
_props$loadAnimation = props.loadAnimation,
|
|
21
21
|
loadAnimation = _props$loadAnimation === void 0 ? true : _props$loadAnimation,
|
|
@@ -33,10 +33,11 @@ var Table = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
33
33
|
}));
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
var _default = Object.assign(CustomTable, {
|
|
37
|
+
Cell: _rsuiteTable.Cell,
|
|
38
|
+
Column: _rsuiteTable.Column,
|
|
39
|
+
HeaderCell: _rsuiteTable.HeaderCell,
|
|
40
|
+
ColumnGroup: _rsuiteTable.ColumnGroup
|
|
41
|
+
});
|
|
42
|
+
|
|
42
43
|
exports.default = _default;
|
package/cjs/Table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Table from './Table';
|
|
2
|
-
export type { TableProps, ColumnProps, ColumnGroupProps, TableLocaleType } from 'rsuite-table';
|
|
3
|
-
export type {
|
|
2
|
+
export type { TableProps, ColumnProps, ColumnGroupProps, HeaderCellProps, SortType, RowDataType, RowKeyType, TableLocaleType, TableSizeChangeEventName, TableInstance } from 'rsuite-table';
|
|
3
|
+
export type { CellProps } from './Table';
|
|
4
4
|
export default Table;
|