@sis-cc/dotstatsuite-visions 7.17.9 → 7.17.10

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.
@@ -9,6 +9,7 @@ import { makeStyles, useTheme } from '@material-ui/core/styles';
9
9
  import TableBody from '@material-ui/core/TableBody';
10
10
  import TableCell from '@material-ui/core/TableCell';
11
11
  import TableRow from '@material-ui/core/TableRow';
12
+ import { isTimePeriodDimension } from '@sis-cc/dotstatsuite-sdmxjs';
12
13
  import SectionHeader from './sectionHeader';
13
14
  import Cell from './cell';
14
15
  import { getLight, getIsRtl } from '../utils';
@@ -25,6 +26,9 @@ var useStyles = makeStyles(function (theme) {
25
26
  color: theme.palette.grey['A700'],
26
27
  verticalAlign: 'middle'
27
28
  },
29
+ timePeriodCells: {
30
+ whiteSpace: 'nowrap'
31
+ },
28
32
  fillerCell: {
29
33
  minWidth: '30px',
30
34
  backgroundColor: theme.palette.grey[200],
@@ -121,7 +125,7 @@ var Section = function Section(_ref) {
121
125
  TableCell,
122
126
  {
123
127
  key: id,
124
- className: cx(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx)),
128
+ className: cx(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = isTimePeriodDimension(R.prop('dimension', cell)), _cx)),
125
129
  id: id,
126
130
  headers: 'subHeader_' + index + ' ' + currentSection,
127
131
  component: 'th',
@@ -38,6 +38,8 @@ var _TableRow = require('@material-ui/core/TableRow');
38
38
 
39
39
  var _TableRow2 = _interopRequireDefault(_TableRow);
40
40
 
41
+ var _dotstatsuiteSdmxjs = require('@sis-cc/dotstatsuite-sdmxjs');
42
+
41
43
  var _sectionHeader = require('./sectionHeader');
42
44
 
43
45
  var _sectionHeader2 = _interopRequireDefault(_sectionHeader);
@@ -67,6 +69,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
67
69
  color: theme.palette.grey['A700'],
68
70
  verticalAlign: 'middle'
69
71
  },
72
+ timePeriodCells: {
73
+ whiteSpace: 'nowrap'
74
+ },
70
75
  fillerCell: {
71
76
  minWidth: '30px',
72
77
  backgroundColor: theme.palette.grey[200],
@@ -163,7 +168,7 @@ var Section = function Section(_ref) {
163
168
  _TableCell2.default,
164
169
  {
165
170
  key: id,
166
- className: (0, _classnames2.default)(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx)),
171
+ className: (0, _classnames2.default)(classes.rowTitle, classes.stickyHeader, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx[classes.timePeriodCells] = (0, _dotstatsuiteSdmxjs.isTimePeriodDimension)(R.prop('dimension', cell)), _cx)),
167
172
  id: id,
168
173
  headers: 'subHeader_' + index + ' ' + currentSection,
169
174
  component: 'th',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.17.9",
3
+ "version": "7.17.10",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",
@@ -51,10 +51,12 @@
51
51
  "@material-ui/core": "^4.9.5",
52
52
  "@material-ui/icons": "^4.5.1",
53
53
  "@material-ui/styles": "^4.5.0",
54
+ "@sis-cc/dotstatsuite-sdmxjs": "^8.x",
54
55
  "react": "16.x"
55
56
  },
56
57
  "devDependencies": {
57
58
  "@babel/plugin-syntax-dynamic-import": "^7.2.0",
59
+ "@sis-cc/dotstatsuite-sdmxjs": "*",
58
60
  "@testing-library/jest-dom": "^5.1.1",
59
61
  "@testing-library/react": "^9.4.1",
60
62
  "babel-eslint": "^10.0.3",