@sis-cc/dotstatsuite-visions 7.14.5 → 7.15.1

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.
@@ -18,7 +18,7 @@ var useStyles = makeStyles(function (theme) {
18
18
  borderBottom: 'thin solid ' + theme.palette.grey[500],
19
19
  borderRight: 'thin solid ' + theme.palette.grey[500],
20
20
  padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px',
21
- verticalAlign: 'middle',
21
+ verticalAlign: 'top',
22
22
  '&:focus ': {
23
23
  opacity: '.85'
24
24
  },
@@ -26,7 +26,10 @@ var useStyles = makeStyles(function (theme) {
26
26
  },
27
27
  cellContentCenter: {
28
28
  display: 'flex',
29
- justifyContent: 'center'
29
+ flexDirection: 'column',
30
+ justifyContent: 'center',
31
+ alignItems: 'center',
32
+ position: 'sticky'
30
33
  },
31
34
  cellContentRight: {
32
35
  display: 'flex',
@@ -93,6 +96,9 @@ var Header = function Header(_ref) {
93
96
  var _cx;
94
97
 
95
98
  var flags = R.prop('flags', headerItem);
99
+ var hierarchySpace = R.pipe(R.pathOr([], ['parents']), R.when(R.isNil, R.always([])), R.length, R.times(function () {
100
+ return '·';
101
+ }))(headerItem);
96
102
  return React.createElement(
97
103
  TableCell,
98
104
  {
@@ -117,6 +123,13 @@ var Header = function Header(_ref) {
117
123
  },
118
124
  variant: 'body1'
119
125
  },
126
+ !R.isEmpty(hierarchySpace) && mapIndexed(function (space, idx) {
127
+ return React.createElement(
128
+ 'div',
129
+ { key: idx },
130
+ space
131
+ );
132
+ })(hierarchySpace),
120
133
  R.prop('label', headerItem),
121
134
  React.createElement(Flags, { HTMLRenderer: HTMLRenderer, flags: flags, isHeader: true })
122
135
  )
@@ -55,7 +55,10 @@ export var useStyles = makeStyles(function (theme) {
55
55
  paddingRight: 0
56
56
  }, _ref.select = {
57
57
  padding: theme.spacing(0.5, 4, 0.5, 2),
58
- backgroundColor: theme.palette.common.white
58
+ backgroundColor: theme.palette.common.white,
59
+ '&:focus': {
60
+ backgroundColor: theme.palette.common.white
61
+ }
59
62
  }, _ref.spaceButton = {
60
63
  margin: theme.spacing(0, 1, 0, 0)
61
64
  }, _ref;
@@ -51,7 +51,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
51
51
  borderBottom: 'thin solid ' + theme.palette.grey[500],
52
52
  borderRight: 'thin solid ' + theme.palette.grey[500],
53
53
  padding: theme.spacing(0.5) + 'px ' + theme.spacing(1) + 'px',
54
- verticalAlign: 'middle',
54
+ verticalAlign: 'top',
55
55
  '&:focus ': {
56
56
  opacity: '.85'
57
57
  },
@@ -59,7 +59,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
59
59
  },
60
60
  cellContentCenter: {
61
61
  display: 'flex',
62
- justifyContent: 'center'
62
+ flexDirection: 'column',
63
+ justifyContent: 'center',
64
+ alignItems: 'center',
65
+ position: 'sticky'
63
66
  },
64
67
  cellContentRight: {
65
68
  display: 'flex',
@@ -126,6 +129,9 @@ var Header = function Header(_ref) {
126
129
  var _cx;
127
130
 
128
131
  var flags = R.prop('flags', headerItem);
132
+ var hierarchySpace = R.pipe(R.pathOr([], ['parents']), R.when(R.isNil, R.always([])), R.length, R.times(function () {
133
+ return '·';
134
+ }))(headerItem);
129
135
  return _react2.default.createElement(
130
136
  _TableCell2.default,
131
137
  {
@@ -150,6 +156,13 @@ var Header = function Header(_ref) {
150
156
  },
151
157
  variant: 'body1'
152
158
  },
159
+ !R.isEmpty(hierarchySpace) && mapIndexed(function (space, idx) {
160
+ return _react2.default.createElement(
161
+ 'div',
162
+ { key: idx },
163
+ space
164
+ );
165
+ })(hierarchySpace),
153
166
  R.prop('label', headerItem),
154
167
  _react2.default.createElement(_flags2.default, { HTMLRenderer: HTMLRenderer, flags: flags, isHeader: true })
155
168
  )
@@ -88,7 +88,10 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
88
88
  paddingRight: 0
89
89
  }, _ref.select = {
90
90
  padding: theme.spacing(0.5, 4, 0.5, 2),
91
- backgroundColor: theme.palette.common.white
91
+ backgroundColor: theme.palette.common.white,
92
+ '&:focus': {
93
+ backgroundColor: theme.palette.common.white
94
+ }
92
95
  }, _ref.spaceButton = {
93
96
  margin: theme.spacing(0, 1, 0, 0)
94
97
  }, _ref;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.14.5",
3
+ "version": "7.15.1",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",