@sis-cc/dotstatsuite-visions 7.11.1 → 7.11.4

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.
@@ -170,8 +170,8 @@ var Dataflow = function Dataflow(_ref2) {
170
170
  });
171
171
  };
172
172
 
173
- //const collapsedSize = R.min(!isExpanded ? height : !collapsedSize ? height : collapsedSize, 70);
174
173
  var collapsedSize = R.min(height, 70);
174
+ var needEllipse = collapsedSize >= 70;
175
175
 
176
176
  return React.createElement(
177
177
  Card,
@@ -226,7 +226,7 @@ var Dataflow = function Dataflow(_ref2) {
226
226
  },
227
227
  React.createElement(HTMLRenderer, { html: description })
228
228
  ),
229
- !isExpanded && React.createElement('div', { className: classes.fading, style: { top: collapsedSize - 15 } })
229
+ !isExpanded && needEllipse && React.createElement('div', { className: classes.fading, style: { top: collapsedSize - 15 } })
230
230
  )
231
231
  ),
232
232
  R.not(R.empty(R.propOr('', 'highlightDescription')(body))) && React.createElement(
@@ -242,7 +242,7 @@ var ScopeList = function ScopeList(props) {
242
242
  index: index,
243
243
  style: style,
244
244
  testId: testId + '_' + id,
245
- key: item.id,
245
+ key: item.hierarchicalId || item.id,
246
246
  classes: classes,
247
247
  isRtl: isRtl,
248
248
  changeList: changeList,
@@ -27,7 +27,6 @@ var useStyles = makeStyles(function (theme) {
27
27
  display: 'inline',
28
28
  fontWeight: 'bold',
29
29
  fontStyle: 'normal',
30
- textTransform: 'uppercase',
31
30
  position: 'relative',
32
31
  top: '-4px'
33
32
  }, R.pathOr({}, ['mixins', 'table', 'flag'], theme)),
@@ -227,8 +227,8 @@ var Dataflow = function Dataflow(_ref2) {
227
227
  });
228
228
  };
229
229
 
230
- //const collapsedSize = R.min(!isExpanded ? height : !collapsedSize ? height : collapsedSize, 70);
231
230
  var collapsedSize = R.min(height, 70);
231
+ var needEllipse = collapsedSize >= 70;
232
232
 
233
233
  return _react2.default.createElement(
234
234
  _Card2.default,
@@ -283,7 +283,7 @@ var Dataflow = function Dataflow(_ref2) {
283
283
  },
284
284
  _react2.default.createElement(HTMLRenderer, { html: description })
285
285
  ),
286
- !isExpanded && _react2.default.createElement('div', { className: classes.fading, style: { top: collapsedSize - 15 } })
286
+ !isExpanded && needEllipse && _react2.default.createElement('div', { className: classes.fading, style: { top: collapsedSize - 15 } })
287
287
  )
288
288
  ),
289
289
  R.not(R.empty(R.propOr('', 'highlightDescription')(body))) && _react2.default.createElement(
@@ -295,7 +295,7 @@ var ScopeList = function ScopeList(props) {
295
295
  index: index,
296
296
  style: style,
297
297
  testId: testId + '_' + id,
298
- key: item.id,
298
+ key: item.hierarchicalId || item.id,
299
299
  classes: classes,
300
300
  isRtl: isRtl,
301
301
  changeList: changeList,
@@ -54,7 +54,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
54
54
  display: 'inline',
55
55
  fontWeight: 'bold',
56
56
  fontStyle: 'normal',
57
- textTransform: 'uppercase',
58
57
  position: 'relative',
59
58
  top: '-4px'
60
59
  }, R.pathOr({}, ['mixins', 'table', 'flag'], theme)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.11.1",
3
+ "version": "7.11.4",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",