@sis-cc/dotstatsuite-visions 7.17.8 → 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.
@@ -118,20 +118,18 @@ var Item = function Item(_ref) {
118
118
  title: R.or(R.isNil(HTMLRenderer), R.isEmpty(description)) ? description : React.createElement(HTMLRenderer, { html: description, onClick: function onClick(e) {
119
119
  return e.stopPropagation();
120
120
  } }),
121
- PopperProps: {
122
- onMouseEnter: function onMouseEnter() {
123
- return setIsTooltipShown(true);
124
- },
125
- onMouseLeave: function onMouseLeave() {
126
- return setIsTooltipShown(false);
127
- }
128
- },
129
121
  enterDelay: 400,
130
122
  tabIndex: 0,
131
123
  'aria-label': description,
132
124
  'aria-hidden': false,
133
125
  placement: 'top',
134
- interactive: Boolean(HTMLRenderer)
126
+ interactive: Boolean(HTMLRenderer),
127
+ onOpen: function onOpen() {
128
+ return setIsTooltipShown(true);
129
+ },
130
+ onClose: function onClose() {
131
+ return setIsTooltipShown(false);
132
+ }
135
133
  },
136
134
  React.createElement(
137
135
  Typography,
@@ -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',
@@ -156,20 +156,18 @@ var Item = function Item(_ref) {
156
156
  title: R.or(R.isNil(HTMLRenderer), R.isEmpty(description)) ? description : _react2.default.createElement(HTMLRenderer, { html: description, onClick: function onClick(e) {
157
157
  return e.stopPropagation();
158
158
  } }),
159
- PopperProps: {
160
- onMouseEnter: function onMouseEnter() {
161
- return setIsTooltipShown(true);
162
- },
163
- onMouseLeave: function onMouseLeave() {
164
- return setIsTooltipShown(false);
165
- }
166
- },
167
159
  enterDelay: 400,
168
160
  tabIndex: 0,
169
161
  'aria-label': description,
170
162
  'aria-hidden': false,
171
163
  placement: 'top',
172
- interactive: Boolean(HTMLRenderer)
164
+ interactive: Boolean(HTMLRenderer),
165
+ onOpen: function onOpen() {
166
+ return setIsTooltipShown(true);
167
+ },
168
+ onClose: function onClose() {
169
+ return setIsTooltipShown(false);
170
+ }
173
171
  },
174
172
  _react2.default.createElement(
175
173
  _Typography2.default,
@@ -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.8",
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",