@sis-cc/dotstatsuite-visions 8.8.1 → 8.9.0

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.
@@ -20,6 +20,8 @@ import Typography from '@material-ui/core/Typography';
20
20
  import PlaylistAddCheckIcon from '@material-ui/icons/PlaylistAddCheck';
21
21
  import CloseIcon from '@material-ui/icons/Close';
22
22
  import HintIcon from '@material-ui/icons/EmojiObjects';
23
+ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
24
+ import ExpandLessIcon from '@material-ui/icons/ExpandLess';
23
25
  import Draggable from 'react-draggable';
24
26
  import { Button, Spotlight, VirtualizedTree } from '..';
25
27
  import { withExpansionTree } from '../VirtualizedTree/withExpansionTree';
@@ -90,8 +92,8 @@ var useStyles = makeStyles(function (theme) {
90
92
  },
91
93
  narrowSelectionButton: {
92
94
  height: 32,
93
- marginTop: 5,
94
- marginRight: 15
95
+ marginTop: 15,
96
+ marginRight: 10
95
97
  },
96
98
  selectionMenu: {
97
99
  width: '50%',
@@ -138,6 +140,11 @@ var useStyles = makeStyles(function (theme) {
138
140
  },
139
141
  actions: {
140
142
  justifyContent: 'space-between'
143
+ },
144
+ ellipsis: {
145
+ whiteSpace: 'nowrap',
146
+ overflow: 'hidden',
147
+ textOverflow: 'ellipsis'
141
148
  }
142
149
  };
143
150
  });
@@ -409,9 +416,16 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
409
416
  },
410
417
  color: 'primary',
411
418
  variant: 'contained',
412
- alternative: 'siscc'
419
+ alternative: 'siscc',
420
+ selected: isOpenSelectionMenu
413
421
  },
414
- R.prop('selectionMode', labels)
422
+ React.createElement(
423
+ Typography,
424
+ { variant: 'body2', className: classes.ellipsis },
425
+ R.prop('selectionMode', labels)
426
+ ),
427
+ '\xA0',
428
+ isOpenSelectionMenu ? React.createElement(ExpandLessIcon, { fontSize: 'small' }) : React.createElement(ExpandMoreIcon, { fontSize: 'small' })
415
429
  ),
416
430
  '\xA0',
417
431
  R.prop(selectionMode + 'Selection', labels),
@@ -75,6 +75,14 @@ var _EmojiObjects = require('@material-ui/icons/EmojiObjects');
75
75
 
76
76
  var _EmojiObjects2 = _interopRequireDefault(_EmojiObjects);
77
77
 
78
+ var _ExpandMore = require('@material-ui/icons/ExpandMore');
79
+
80
+ var _ExpandMore2 = _interopRequireDefault(_ExpandMore);
81
+
82
+ var _ExpandLess = require('@material-ui/icons/ExpandLess');
83
+
84
+ var _ExpandLess2 = _interopRequireDefault(_ExpandLess);
85
+
78
86
  var _reactDraggable = require('react-draggable');
79
87
 
80
88
  var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
@@ -186,8 +194,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
186
194
  },
187
195
  narrowSelectionButton: {
188
196
  height: 32,
189
- marginTop: 5,
190
- marginRight: 15
197
+ marginTop: 15,
198
+ marginRight: 10
191
199
  },
192
200
  selectionMenu: {
193
201
  width: '50%',
@@ -234,6 +242,11 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
234
242
  },
235
243
  actions: {
236
244
  justifyContent: 'space-between'
245
+ },
246
+ ellipsis: {
247
+ whiteSpace: 'nowrap',
248
+ overflow: 'hidden',
249
+ textOverflow: 'ellipsis'
237
250
  }
238
251
  };
239
252
  });
@@ -505,9 +518,16 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
505
518
  },
506
519
  color: 'primary',
507
520
  variant: 'contained',
508
- alternative: 'siscc'
521
+ alternative: 'siscc',
522
+ selected: isOpenSelectionMenu
509
523
  },
510
- R.prop('selectionMode', labels)
524
+ _react2.default.createElement(
525
+ _Typography2.default,
526
+ { variant: 'body2', className: classes.ellipsis },
527
+ R.prop('selectionMode', labels)
528
+ ),
529
+ '\xA0',
530
+ isOpenSelectionMenu ? _react2.default.createElement(_ExpandLess2.default, { fontSize: 'small' }) : _react2.default.createElement(_ExpandMore2.default, { fontSize: 'small' })
511
531
  ),
512
532
  '\xA0',
513
533
  R.prop(selectionMode + 'Selection', labels),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "8.8.1",
3
+ "version": "8.9.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",