@sis-cc/dotstatsuite-visions 7.17.9 → 7.17.11
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.
|
@@ -15,7 +15,7 @@ import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';
|
|
|
15
15
|
import CircularProgress from '@material-ui/core/CircularProgress';
|
|
16
16
|
import Grid from '@material-ui/core/Grid';
|
|
17
17
|
import Collapse, { VARIANT_BOLD } from './Collapse';
|
|
18
|
-
|
|
18
|
+
import cx from 'classnames';
|
|
19
19
|
var useStyles = makeStyles(function (theme) {
|
|
20
20
|
return {
|
|
21
21
|
title: _extends({
|
|
@@ -28,6 +28,10 @@ var useStyles = makeStyles(function (theme) {
|
|
|
28
28
|
marginLeft: theme.spacing(2),
|
|
29
29
|
marginRight: theme.spacing(2),
|
|
30
30
|
marginBottom: theme.spacing(2)
|
|
31
|
+
},
|
|
32
|
+
overflow: {
|
|
33
|
+
whiteSpace: 'pre-wrap',
|
|
34
|
+
overflowWrap: 'break-word'
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
});
|
|
@@ -133,7 +137,10 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
133
137
|
{ key: id, level: 0, label: label, isOpen: depthLevel >= 0 },
|
|
134
138
|
React.createElement(
|
|
135
139
|
Typography,
|
|
136
|
-
{
|
|
140
|
+
{
|
|
141
|
+
className: cx(classes.spacingValue, classes.overflow),
|
|
142
|
+
variant: 'body2'
|
|
143
|
+
},
|
|
137
144
|
getValue(_extends({ value: value, children: children }, handlerProps))
|
|
138
145
|
),
|
|
139
146
|
children && R.map(function (_ref5) {
|
|
@@ -154,7 +161,7 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
154
161
|
},
|
|
155
162
|
React.createElement(
|
|
156
163
|
Typography,
|
|
157
|
-
{ variant: 'body2' },
|
|
164
|
+
{ variant: 'body2', className: classes.overflow },
|
|
158
165
|
getValue(_extends({ value: value }, handlerProps))
|
|
159
166
|
)
|
|
160
167
|
);
|
package/es/TableHtml5/section.js
CHANGED
|
@@ -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',
|
|
@@ -54,6 +54,10 @@ var _Collapse = require('./Collapse');
|
|
|
54
54
|
|
|
55
55
|
var _Collapse2 = _interopRequireDefault(_Collapse);
|
|
56
56
|
|
|
57
|
+
var _classnames = require('classnames');
|
|
58
|
+
|
|
59
|
+
var _classnames2 = _interopRequireDefault(_classnames);
|
|
60
|
+
|
|
57
61
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
58
62
|
|
|
59
63
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -72,6 +76,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
72
76
|
marginLeft: theme.spacing(2),
|
|
73
77
|
marginRight: theme.spacing(2),
|
|
74
78
|
marginBottom: theme.spacing(2)
|
|
79
|
+
},
|
|
80
|
+
overflow: {
|
|
81
|
+
whiteSpace: 'pre-wrap',
|
|
82
|
+
overflowWrap: 'break-word'
|
|
75
83
|
}
|
|
76
84
|
};
|
|
77
85
|
});
|
|
@@ -177,7 +185,10 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
177
185
|
{ key: id, level: 0, label: label, isOpen: depthLevel >= 0 },
|
|
178
186
|
_react2.default.createElement(
|
|
179
187
|
_Typography2.default,
|
|
180
|
-
{
|
|
188
|
+
{
|
|
189
|
+
className: (0, _classnames2.default)(classes.spacingValue, classes.overflow),
|
|
190
|
+
variant: 'body2'
|
|
191
|
+
},
|
|
181
192
|
getValue(_extends({ value: value, children: children }, handlerProps))
|
|
182
193
|
),
|
|
183
194
|
children && R.map(function (_ref5) {
|
|
@@ -198,7 +209,7 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
198
209
|
},
|
|
199
210
|
_react2.default.createElement(
|
|
200
211
|
_Typography2.default,
|
|
201
|
-
{ variant: 'body2' },
|
|
212
|
+
{ variant: 'body2', className: classes.overflow },
|
|
202
213
|
getValue(_extends({ value: value }, handlerProps))
|
|
203
214
|
)
|
|
204
215
|
);
|
|
@@ -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.
|
|
3
|
+
"version": "7.17.11",
|
|
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",
|