rsuite 5.6.2 → 5.6.5

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,18 @@
1
+ ## [5.6.5](https://github.com/rsuite/rsuite/compare/v5.6.4...v5.6.5) (2022-03-17)
2
+
3
+ ### Features
4
+
5
+ - **Pickers:** `groupBy` supports dot notation ([#2397](https://github.com/rsuite/rsuite/issues/2397)) ([2ba7c0b](https://github.com/rsuite/rsuite/commit/2ba7c0b622c68b2fc526aa7ad2feaa8e73767e9c))
6
+
7
+ ## [5.6.4](https://github.com/rsuite/rsuite/compare/v5.6.3...v5.6.4) (2022-03-10)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **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))
12
+ - **Sidenav:** remove underline from focused sidenav item ([#2387](https://github.com/rsuite/rsuite/issues/2387)) ([a22f569](https://github.com/rsuite/rsuite/commit/a22f569a8c3f2b71513af20b4be6607cd1825783))
13
+
14
+ ## [5.6.3](https://github.com/rsuite/rsuite/compare/v5.6.2...v5.6.3) (2022-03-05)
15
+
1
16
  ## [5.6.2](https://github.com/rsuite/rsuite/compare/v5.6.1...v5.6.2) (2022-02-24)
2
17
 
3
18
  ### Bug Fixes
@@ -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;
@@ -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,