rsuite 5.6.3 → 5.6.6

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 CHANGED
@@ -1,3 +1,23 @@
1
+ ## [5.6.6](https://github.com/rsuite/rsuite/compare/v5.6.5...v5.6.6) (2022-03-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **InputNumber:** make plus/minus buttons unfocusable ([#2398](https://github.com/rsuite/rsuite/issues/2398)) ([ab4c721](https://github.com/rsuite/rsuite/commit/ab4c7218f20fd6aa6f4bad7818d403a3b6fd68df))
6
+ - **Uploader:** expose missing public types ([#2404](https://github.com/rsuite/rsuite/issues/2404)) ([5b1791f](https://github.com/rsuite/rsuite/commit/5b1791f0f0b23a230d03772178e9069bc16c8aa9))
7
+
8
+ ## [5.6.5](https://github.com/rsuite/rsuite/compare/v5.6.4...v5.6.5) (2022-03-17)
9
+
10
+ ### Features
11
+
12
+ - **Pickers:** `groupBy` supports dot notation ([#2397](https://github.com/rsuite/rsuite/issues/2397)) ([2ba7c0b](https://github.com/rsuite/rsuite/commit/2ba7c0b622c68b2fc526aa7ad2feaa8e73767e9c))
13
+
14
+ ## [5.6.4](https://github.com/rsuite/rsuite/compare/v5.6.3...v5.6.4) (2022-03-10)
15
+
16
+ ### Bug Fixes
17
+
18
+ - **CheckTree:** fix missing type definition [#2388](https://github.com/rsuite/rsuite/issues/2388) ([#2391](https://github.com/rsuite/rsuite/issues/2391)) ([0fe4e9f](https://github.com/rsuite/rsuite/commit/0fe4e9f34d7f07354541f4d23b0278cd1d892c2e))
19
+ - **Sidenav:** remove underline from focused sidenav item ([#2387](https://github.com/rsuite/rsuite/issues/2387)) ([a22f569](https://github.com/rsuite/rsuite/commit/a22f569a8c3f2b71513af20b4be6607cd1825783))
20
+
1
21
  ## [5.6.3](https://github.com/rsuite/rsuite/compare/v5.6.2...v5.6.3) (2022-03-05)
2
22
 
3
23
  ## [5.6.2](https://github.com/rsuite/rsuite/compare/v5.6.1...v5.6.2) (2022-02-24)
@@ -170,7 +170,8 @@
170
170
  outline: 0;
171
171
  overflow: hidden;
172
172
 
173
- &:hover {
173
+ &:hover,
174
+ &:focus {
174
175
  text-decoration: none;
175
176
  }
176
177
 
@@ -4,6 +4,8 @@ import { TreeBaseProps } from '../Tree/Tree';
4
4
  export interface CheckTreeProps extends TreeBaseProps<ValueType>, FormControlPickerProps<ValueType> {
5
5
  /** Tree node cascade */
6
6
  cascade?: boolean;
7
+ /** Set the option value for the check box not to be rendered */
8
+ uncheckableItemValues?: ValueType;
7
9
  }
8
10
  declare const CheckTree: RsRefForwardingComponent<'div', CheckTreeProps>;
9
11
  export default CheckTree;
@@ -288,11 +288,13 @@ var InputNumber = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
288
288
  }), prefixElement && /*#__PURE__*/_react.default.createElement(_InputGroupAddon.default, null, prefixElement), input, /*#__PURE__*/_react.default.createElement("span", {
289
289
  className: prefix('btn-group-vertical')
290
290
  }, /*#__PURE__*/_react.default.createElement(_Button.default, {
291
+ tabIndex: -1,
291
292
  appearance: buttonAppearance,
292
293
  className: prefix('touchspin-up'),
293
294
  onClick: handlePlus,
294
295
  disabled: disabledUpButton || disabled || readOnly
295
296
  }, /*#__PURE__*/_react.default.createElement(_AngleUp.default, null)), /*#__PURE__*/_react.default.createElement(_Button.default, {
297
+ tabIndex: -1,
296
298
  appearance: buttonAppearance,
297
299
  className: prefix('touchspin-down'),
298
300
  onClick: handleMinus,
@@ -1,3 +1,3 @@
1
1
  import Uploader from './Uploader';
2
- export type { UploaderProps } from './Uploader';
2
+ export type { UploaderProps, FileStatusType, FileType } from './Uploader';
3
3
  export default Uploader;
@@ -1,3 +1,3 @@
1
1
  export declare const KEY_GROUP: string | symbol;
2
2
  export declare const KEY_GROUP_TITLE = "groupTitle";
3
- export default function getDataGroupBy(data: any[] | undefined, key: string, sort: any): any[];
3
+ export default function getDataGroupBy(data: any[] | undefined, key: string, sort?: any): any[];
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  exports.__esModule = true;
4
6
  exports.default = getDataGroupBy;
5
7
  exports.KEY_GROUP_TITLE = exports.KEY_GROUP = void 0;
6
8
 
9
+ var _get2 = _interopRequireDefault(require("lodash/get"));
10
+
7
11
  var _treeUtils = require("../utils/treeUtils");
8
12
 
9
13
  var hasSymbol = typeof Symbol === 'function';
@@ -20,11 +24,17 @@ function getDataGroupBy(data, key, sort) {
20
24
  var tempData = {};
21
25
  var isSort = typeof sort === 'function';
22
26
  data.forEach(function (item) {
23
- if (!tempData[item[key]]) {
24
- tempData[item[key]] = [];
27
+ // this will allow getting data using dot notation
28
+ // i.e groupBy="country.name" as country will be a nested object
29
+ // to the item and the name will be nested key to the country object
30
+ // can be used with values in arrays, i.e groupBy="addresses.0.country.name"
31
+ var groupByValue = (0, _get2.default)(item, key, '');
32
+
33
+ if (!tempData[groupByValue]) {
34
+ tempData[groupByValue] = [];
25
35
  }
26
36
 
27
- tempData[item[key]].push(item);
37
+ tempData[groupByValue].push(item);
28
38
  });
29
39
  var nextData = Object.entries(tempData).map(function (_ref) {
30
40
  var _ref2;
@@ -12648,7 +12648,8 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
12648
12648
  outline: 0;
12649
12649
  overflow: hidden;
12650
12650
  }
12651
- .rs-sidenav-item:hover {
12651
+ .rs-sidenav-item:hover,
12652
+ .rs-sidenav-item:focus {
12652
12653
  text-decoration: none;
12653
12654
  }
12654
12655
  .rs-sidenav-item:focus-visible,