@sis-cc/dotstatsuite-visions 8.8.1 → 8.10.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.
@@ -17,9 +17,10 @@ import CardContent from '@material-ui/core/CardContent';
17
17
  import Paper from '@material-ui/core/Paper';
18
18
  import Grid from '@material-ui/core/Grid';
19
19
  import Typography from '@material-ui/core/Typography';
20
- import PlaylistAddCheckIcon from '@material-ui/icons/PlaylistAddCheck';
21
20
  import CloseIcon from '@material-ui/icons/Close';
22
21
  import HintIcon from '@material-ui/icons/EmojiObjects';
22
+ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
23
+ import ExpandLessIcon from '@material-ui/icons/ExpandLess';
23
24
  import Draggable from 'react-draggable';
24
25
  import { Button, Spotlight, VirtualizedTree } from '..';
25
26
  import { withExpansionTree } from '../VirtualizedTree/withExpansionTree';
@@ -90,8 +91,8 @@ var useStyles = makeStyles(function (theme) {
90
91
  },
91
92
  narrowSelectionButton: {
92
93
  height: 32,
93
- marginTop: 5,
94
- marginRight: 15
94
+ marginTop: 15,
95
+ marginRight: 10
95
96
  },
96
97
  selectionMenu: {
97
98
  width: '50%',
@@ -138,6 +139,11 @@ var useStyles = makeStyles(function (theme) {
138
139
  },
139
140
  actions: {
140
141
  justifyContent: 'space-between'
142
+ },
143
+ ellipsis: {
144
+ whiteSpace: 'nowrap',
145
+ overflow: 'hidden',
146
+ textOverflow: 'ellipsis'
141
147
  }
142
148
  };
143
149
  });
@@ -364,7 +370,6 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
364
370
  React.createElement(
365
371
  'div',
366
372
  { className: classes.headerLabel },
367
- React.createElement(PlaylistAddCheckIcon, { color: 'primary' }),
368
373
  '\xA0',
369
374
  title
370
375
  ),
@@ -409,9 +414,16 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
409
414
  },
410
415
  color: 'primary',
411
416
  variant: 'contained',
412
- alternative: 'siscc'
417
+ alternative: 'siscc',
418
+ selected: isOpenSelectionMenu
413
419
  },
414
- R.prop('selectionMode', labels)
420
+ React.createElement(
421
+ Typography,
422
+ { variant: 'body2', className: classes.ellipsis },
423
+ R.prop('selectionMode', labels)
424
+ ),
425
+ '\xA0',
426
+ isOpenSelectionMenu ? React.createElement(ExpandLessIcon, { fontSize: 'small' }) : React.createElement(ExpandMoreIcon, { fontSize: 'small' })
415
427
  ),
416
428
  '\xA0',
417
429
  R.prop(selectionMode + 'Selection', labels),
@@ -63,10 +63,6 @@ var _Typography = require('@material-ui/core/Typography');
63
63
 
64
64
  var _Typography2 = _interopRequireDefault(_Typography);
65
65
 
66
- var _PlaylistAddCheck = require('@material-ui/icons/PlaylistAddCheck');
67
-
68
- var _PlaylistAddCheck2 = _interopRequireDefault(_PlaylistAddCheck);
69
-
70
66
  var _Close = require('@material-ui/icons/Close');
71
67
 
72
68
  var _Close2 = _interopRequireDefault(_Close);
@@ -75,6 +71,14 @@ var _EmojiObjects = require('@material-ui/icons/EmojiObjects');
75
71
 
76
72
  var _EmojiObjects2 = _interopRequireDefault(_EmojiObjects);
77
73
 
74
+ var _ExpandMore = require('@material-ui/icons/ExpandMore');
75
+
76
+ var _ExpandMore2 = _interopRequireDefault(_ExpandMore);
77
+
78
+ var _ExpandLess = require('@material-ui/icons/ExpandLess');
79
+
80
+ var _ExpandLess2 = _interopRequireDefault(_ExpandLess);
81
+
78
82
  var _reactDraggable = require('react-draggable');
79
83
 
80
84
  var _reactDraggable2 = _interopRequireDefault(_reactDraggable);
@@ -186,8 +190,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
186
190
  },
187
191
  narrowSelectionButton: {
188
192
  height: 32,
189
- marginTop: 5,
190
- marginRight: 15
193
+ marginTop: 15,
194
+ marginRight: 10
191
195
  },
192
196
  selectionMenu: {
193
197
  width: '50%',
@@ -234,6 +238,11 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
234
238
  },
235
239
  actions: {
236
240
  justifyContent: 'space-between'
241
+ },
242
+ ellipsis: {
243
+ whiteSpace: 'nowrap',
244
+ overflow: 'hidden',
245
+ textOverflow: 'ellipsis'
237
246
  }
238
247
  };
239
248
  });
@@ -460,7 +469,6 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
460
469
  _react2.default.createElement(
461
470
  'div',
462
471
  { className: classes.headerLabel },
463
- _react2.default.createElement(_PlaylistAddCheck2.default, { color: 'primary' }),
464
472
  '\xA0',
465
473
  title
466
474
  ),
@@ -505,9 +513,16 @@ var AdvancedFilterDialog = function AdvancedFilterDialog(props) {
505
513
  },
506
514
  color: 'primary',
507
515
  variant: 'contained',
508
- alternative: 'siscc'
516
+ alternative: 'siscc',
517
+ selected: isOpenSelectionMenu
509
518
  },
510
- R.prop('selectionMode', labels)
519
+ _react2.default.createElement(
520
+ _Typography2.default,
521
+ { variant: 'body2', className: classes.ellipsis },
522
+ R.prop('selectionMode', labels)
523
+ ),
524
+ '\xA0',
525
+ isOpenSelectionMenu ? _react2.default.createElement(_ExpandLess2.default, { fontSize: 'small' }) : _react2.default.createElement(_ExpandMore2.default, { fontSize: 'small' })
511
526
  ),
512
527
  '\xA0',
513
528
  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.10.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",