@sis-cc/dotstatsuite-visions 7.20.10 → 7.20.12

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
  }))
@@ -124,6 +124,9 @@ var useStyles = makeStyles(function (theme) {
124
124
  whiteSpace: 'noWrap',
125
125
  overflow: 'hidden',
126
126
  textOverflow: 'ellipsis'
127
+ },
128
+ tooltipIndicator: {
129
+ borderBottom: '1px dotted ' + theme.palette.primary.main
127
130
  }
128
131
  };
129
132
  });
@@ -323,15 +326,19 @@ var Dataflow = function Dataflow(_ref2) {
323
326
  React.createElement(
324
327
  'span',
325
328
  null,
326
- ' ',
327
- '... > ' + R.last(category) + (isLast(idx, values) ? '' : ', ')
329
+ React.createElement(
330
+ 'span',
331
+ { className: classes.tooltipIndicator },
332
+ ' ',
333
+ '... > ' + R.last(category)
334
+ ),
335
+ isLast(idx, values) ? '' : ', '
328
336
  )
329
337
  ) : '' + R.identity(category) + (isLast(idx, values) ? '' : ', ');
330
338
  }, values)
331
339
  )
332
340
  );
333
341
  })(categories),
334
- R.not(R.isEmpty(categories)) && React.createElement(Divider, { className: classes.divider }),
335
342
  label && React.createElement(
336
343
  'div',
337
344
  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
  }))
@@ -185,6 +185,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
185
185
  whiteSpace: 'noWrap',
186
186
  overflow: 'hidden',
187
187
  textOverflow: 'ellipsis'
188
+ },
189
+ tooltipIndicator: {
190
+ borderBottom: '1px dotted ' + theme.palette.primary.main
188
191
  }
189
192
  };
190
193
  });
@@ -384,15 +387,19 @@ var Dataflow = function Dataflow(_ref2) {
384
387
  _react2.default.createElement(
385
388
  'span',
386
389
  null,
387
- ' ',
388
- '... > ' + R.last(category) + ((0, _utils2.isLast)(idx, values) ? '' : ', ')
390
+ _react2.default.createElement(
391
+ 'span',
392
+ { className: classes.tooltipIndicator },
393
+ ' ',
394
+ '... > ' + R.last(category)
395
+ ),
396
+ (0, _utils2.isLast)(idx, values) ? '' : ', '
389
397
  )
390
398
  ) : '' + R.identity(category) + ((0, _utils2.isLast)(idx, values) ? '' : ', ');
391
399
  }, values)
392
400
  )
393
401
  );
394
402
  })(categories),
395
- R.not(R.isEmpty(categories)) && _react2.default.createElement(_Divider2.default, { className: classes.divider }),
396
403
  label && _react2.default.createElement(
397
404
  'div',
398
405
  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.10",
3
+ "version": "7.20.12",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",