@sis-cc/dotstatsuite-visions 7.22.4 → 7.22.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.
@@ -14,7 +14,7 @@ import { getIsRtl } from '../utils';
14
14
 
15
15
  var getCounter = function getCounter(items, displayAccessor, tagAccessor) {
16
16
  var count = R.pipe(R.filter(R.prop('isSelected')), R.length)(items);
17
- var total = R.pipe(R.when(R.always(R.is(Function, displayAccessor)), R.filter(displayAccessor)), R.length)(items);
17
+ var total = R.pipe(R.when(R.always(R.is(Function, displayAccessor)), R.filter(displayAccessor)), R.map(R.ifElse(R.has('parentId'), R.map(R.prop('parentId')), R.prop('id'))), R.uniq, R.length)(items);
18
18
  if (R.is(Function, tagAccessor)) {
19
19
  return tagAccessor(count, total);
20
20
  }
@@ -42,7 +42,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
42
42
 
43
43
  var getCounter = function getCounter(items, displayAccessor, tagAccessor) {
44
44
  var count = R.pipe(R.filter(R.prop('isSelected')), R.length)(items);
45
- var total = R.pipe(R.when(R.always(R.is(Function, displayAccessor)), R.filter(displayAccessor)), R.length)(items);
45
+ var total = R.pipe(R.when(R.always(R.is(Function, displayAccessor)), R.filter(displayAccessor)), R.map(R.ifElse(R.has('parentId'), R.map(R.prop('parentId')), R.prop('id'))), R.uniq, R.length)(items);
46
46
  if (R.is(Function, tagAccessor)) {
47
47
  return tagAccessor(count, total);
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.22.4",
3
+ "version": "7.22.5",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",