@sis-cc/dotstatsuite-visions 7.14.4 → 7.15.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.
@@ -16,7 +16,7 @@
16
16
  * user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
17
17
  * submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
18
18
  * }),
19
- * onClose: PropTypes.func.isRequired,
19
+ * onClose: PropTypes.func,
20
20
  * onSubmit: PropTypes.func.isRequired
21
21
  * };
22
22
  * @demoReady
@@ -124,7 +124,7 @@ var AuthDialog = function AuthDialog(_ref) {
124
124
  labels.header
125
125
  )
126
126
  ),
127
- React.createElement(
127
+ onClose && React.createElement(
128
128
  IconButton,
129
129
  { className: classes.closeButton, onClick: onClose },
130
130
  React.createElement(CloseIcon, null)
@@ -204,7 +204,7 @@ AuthDialog.propTypes = process.env.NODE_ENV !== "production" ? {
204
204
  user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
205
205
  submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
206
206
  }),
207
- onClose: PropTypes.func.isRequired,
207
+ onClose: PropTypes.func,
208
208
  onSubmit: PropTypes.func.isRequired
209
209
  } : {};
210
210
 
@@ -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
  )
@@ -66,7 +66,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
66
66
  * user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
67
67
  * submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
68
68
  * }),
69
- * onClose: PropTypes.func.isRequired,
69
+ * onClose: PropTypes.func,
70
70
  * onSubmit: PropTypes.func.isRequired
71
71
  * };
72
72
  * @demoReady
@@ -161,7 +161,7 @@ var AuthDialog = function AuthDialog(_ref) {
161
161
  labels.header
162
162
  )
163
163
  ),
164
- _react2.default.createElement(
164
+ onClose && _react2.default.createElement(
165
165
  _IconButton2.default,
166
166
  { className: classes.closeButton, onClick: onClose },
167
167
  _react2.default.createElement(_Close2.default, null)
@@ -241,7 +241,7 @@ AuthDialog.propTypes = process.env.NODE_ENV !== "production" ? {
241
241
  user: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),
242
242
  submit: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node])
243
243
  }),
244
- onClose: _propTypes2.default.func.isRequired,
244
+ onClose: _propTypes2.default.func,
245
245
  onSubmit: _propTypes2.default.func.isRequired
246
246
  } : {};
247
247
 
@@ -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
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.14.4",
3
+ "version": "7.15.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",