@sis-cc/dotstatsuite-visions 8.8.0 → 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),
@@ -4,7 +4,7 @@ import React, { Fragment } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import * as R from 'ramda';
6
6
  import Container from '@material-ui/core/Container';
7
- import PlaylistAddCheckIcon from '@material-ui/icons/PlaylistAddCheck';
7
+ import ZoomOutMapIcon from '@material-ui/icons/ZoomOutMap';
8
8
  import { ExpansionPanel, Tag as InternalTag, VerticalButton, Spotlight, VirtualizedTree, Tooltip } from '../';
9
9
  import { withExpansionTree } from '../VirtualizedTree/withExpansionTree';
10
10
  import { withSpotlight } from '../VirtualizedTree/withSpotlight';
@@ -97,7 +97,7 @@ var HierarchicalFilter = function HierarchicalFilter(props) {
97
97
  classes: { root: classes.bulkSelectionIcon },
98
98
  onClick: onAdvancedToggle
99
99
  },
100
- React.createElement(PlaylistAddCheckIcon, { color: 'primary' })
100
+ React.createElement(ZoomOutMapIcon, { color: 'primary' })
101
101
  )
102
102
  )
103
103
  )
@@ -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),
@@ -20,9 +20,9 @@ var _Container = require('@material-ui/core/Container');
20
20
 
21
21
  var _Container2 = _interopRequireDefault(_Container);
22
22
 
23
- var _PlaylistAddCheck = require('@material-ui/icons/PlaylistAddCheck');
23
+ var _ZoomOutMap = require('@material-ui/icons/ZoomOutMap');
24
24
 
25
- var _PlaylistAddCheck2 = _interopRequireDefault(_PlaylistAddCheck);
25
+ var _ZoomOutMap2 = _interopRequireDefault(_ZoomOutMap);
26
26
 
27
27
  var _ = require('../');
28
28
 
@@ -125,7 +125,7 @@ var HierarchicalFilter = function HierarchicalFilter(props) {
125
125
  classes: { root: classes.bulkSelectionIcon },
126
126
  onClick: onAdvancedToggle
127
127
  },
128
- _react2.default.createElement(_PlaylistAddCheck2.default, { color: 'primary' })
128
+ _react2.default.createElement(_ZoomOutMap2.default, { color: 'primary' })
129
129
  )
130
130
  )
131
131
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "8.8.0",
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",