@sis-cc/dotstatsuite-visions 7.20.11 → 7.20.13

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.
@@ -450,7 +450,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
450
450
  items: selectionItems,
451
451
  changeSelection: onChangeSelection,
452
452
  withExpandControl: true,
453
- maxTreeHeight: listHeight,
453
+ treeHeight: listHeight,
454
454
  getItemScope: R.prop(selectionMode, scopeGetters),
455
455
  expandedIds: expandedIds
456
456
  }))
@@ -322,7 +322,7 @@ var Dataflow = function Dataflow(_ref2) {
322
322
  mapIndexed(function (category, idx) {
323
323
  return R.is(Array)(category) ? React.createElement(
324
324
  Tooltip,
325
- { title: R.join(' > ', category) },
325
+ { key: 'category-tooltip-value-' + idx, title: R.join(' > ', category) },
326
326
  React.createElement(
327
327
  'span',
328
328
  null,
@@ -67,7 +67,9 @@ var VirtualizedTree = function VirtualizedTree(props) {
67
67
  _props$maxTreeHeight = props.maxTreeHeight,
68
68
  maxTreeHeight = _props$maxTreeHeight === undefined ? 250 : _props$maxTreeHeight,
69
69
  _props$getItemScope = props.getItemScope,
70
- getItemScope = _props$getItemScope === undefined ? getSingleItemScope : _props$getItemScope;
70
+ getItemScope = _props$getItemScope === undefined ? getSingleItemScope : _props$getItemScope,
71
+ _props$treeHeight = props.treeHeight,
72
+ treeHeight = _props$treeHeight === undefined ? 0 : _props$treeHeight;
71
73
 
72
74
  var theme = useTheme();
73
75
 
@@ -238,7 +240,7 @@ var VirtualizedTree = function VirtualizedTree(props) {
238
240
  current.removeEventListener('wheel', handler, { passive: false });
239
241
  };
240
242
  }, [scrollTop]);
241
- var maxHeight = R.pipe(R.length, R.multiply(rowHeight), R.ifElse(R.gt(maxTreeHeight), R.add(10), R.always(maxTreeHeight)))(list);
243
+ var maxHeight = treeHeight === 0 ? R.pipe(R.length, R.multiply(rowHeight), R.ifElse(R.gt(maxTreeHeight), R.add(10), R.always(maxTreeHeight)))(list) : treeHeight;
242
244
 
243
245
  if (R.isEmpty(list)) {
244
246
  return null;
@@ -324,7 +326,8 @@ VirtualizedTree.propTypes = process.env.NODE_ENV !== "production" ? {
324
326
  maxTreeHeight: PropTypes.number,
325
327
  expandedIds: PropTypes.object,
326
328
  expand: PropTypes.func,
327
- collapse: PropTypes.func
329
+ collapse: PropTypes.func,
330
+ treeHeight: PropTypes.number
328
331
  } : {};
329
332
 
330
333
  export default VirtualizedTree;
@@ -546,7 +546,7 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
546
546
  items: selectionItems,
547
547
  changeSelection: onChangeSelection,
548
548
  withExpandControl: true,
549
- maxTreeHeight: listHeight,
549
+ treeHeight: listHeight,
550
550
  getItemScope: R.prop(selectionMode, scopeGetters),
551
551
  expandedIds: expandedIds
552
552
  }))
@@ -383,7 +383,7 @@ var Dataflow = function Dataflow(_ref2) {
383
383
  mapIndexed(function (category, idx) {
384
384
  return R.is(Array)(category) ? _react2.default.createElement(
385
385
  _Tooltip2.default,
386
- { title: R.join(' > ', category) },
386
+ { key: 'category-tooltip-value-' + idx, title: R.join(' > ', category) },
387
387
  _react2.default.createElement(
388
388
  'span',
389
389
  null,
@@ -105,7 +105,9 @@ var VirtualizedTree = function VirtualizedTree(props) {
105
105
  _props$maxTreeHeight = props.maxTreeHeight,
106
106
  maxTreeHeight = _props$maxTreeHeight === undefined ? 250 : _props$maxTreeHeight,
107
107
  _props$getItemScope = props.getItemScope,
108
- getItemScope = _props$getItemScope === undefined ? getSingleItemScope : _props$getItemScope;
108
+ getItemScope = _props$getItemScope === undefined ? getSingleItemScope : _props$getItemScope,
109
+ _props$treeHeight = props.treeHeight,
110
+ treeHeight = _props$treeHeight === undefined ? 0 : _props$treeHeight;
109
111
 
110
112
  var theme = (0, _core.useTheme)();
111
113
 
@@ -276,7 +278,7 @@ var VirtualizedTree = function VirtualizedTree(props) {
276
278
  current.removeEventListener('wheel', handler, { passive: false });
277
279
  };
278
280
  }, [scrollTop]);
279
- var maxHeight = R.pipe(R.length, R.multiply(_styles.height), R.ifElse(R.gt(maxTreeHeight), R.add(10), R.always(maxTreeHeight)))(list);
281
+ var maxHeight = treeHeight === 0 ? R.pipe(R.length, R.multiply(_styles.height), R.ifElse(R.gt(maxTreeHeight), R.add(10), R.always(maxTreeHeight)))(list) : treeHeight;
280
282
 
281
283
  if (R.isEmpty(list)) {
282
284
  return null;
@@ -362,7 +364,8 @@ VirtualizedTree.propTypes = process.env.NODE_ENV !== "production" ? {
362
364
  maxTreeHeight: _propTypes2.default.number,
363
365
  expandedIds: _propTypes2.default.object,
364
366
  expand: _propTypes2.default.func,
365
- collapse: _propTypes2.default.func
367
+ collapse: _propTypes2.default.func,
368
+ treeHeight: _propTypes2.default.number
366
369
  } : {};
367
370
 
368
371
  exports.default = VirtualizedTree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.20.11",
3
+ "version": "7.20.13",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",