@sis-cc/dotstatsuite-visions 10.4.2 → 10.5.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.
- package/es/ExpansionPanel/ExpansionPanel.js +25 -2
- package/es/ExpansionPanel/index.js +55 -49
- package/es/UserRightForm/UserRightForm.js +7 -7
- package/lib/ExpansionPanel/ExpansionPanel.js +31 -2
- package/lib/UserRightForm/UserRightForm.js +7 -7
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +404 -375
- package/umd/@sis-cc/dotstatsuite-visions.min.js +6 -6
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
|
@@ -8,8 +8,10 @@ import AccordionDetails from '@material-ui/core/AccordionDetails';
|
|
|
8
8
|
import Typography from '@material-ui/core/Typography';
|
|
9
9
|
import Grid from '@material-ui/core/Grid';
|
|
10
10
|
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
|
|
11
|
+
import HelpIcon from '@material-ui/icons/EmojiObjects';
|
|
11
12
|
import { useStyles } from './styles';
|
|
12
13
|
import { withBlank } from '../utils';
|
|
14
|
+
import Tooltip from '../Tooltip';
|
|
13
15
|
|
|
14
16
|
var CustomExpansionPanel = function CustomExpansionPanel(_ref) {
|
|
15
17
|
var _cx, _cx2;
|
|
@@ -32,7 +34,11 @@ var CustomExpansionPanel = function CustomExpansionPanel(_ref) {
|
|
|
32
34
|
pinnedLabel = _ref.pinnedLabel,
|
|
33
35
|
moreFilters = _ref.moreFilters,
|
|
34
36
|
_ref$isNarrow = _ref.isNarrow,
|
|
35
|
-
isNarrow = _ref$isNarrow === undefined ? false : _ref$isNarrow
|
|
37
|
+
isNarrow = _ref$isNarrow === undefined ? false : _ref$isNarrow,
|
|
38
|
+
_ref$isPopper = _ref.isPopper,
|
|
39
|
+
isPopper = _ref$isPopper === undefined ? false : _ref$isPopper,
|
|
40
|
+
_ref$popperLabels = _ref.popperLabels,
|
|
41
|
+
popperLabels = _ref$popperLabels === undefined ? {} : _ref$popperLabels;
|
|
36
42
|
|
|
37
43
|
var classes = useStyles();
|
|
38
44
|
|
|
@@ -84,6 +90,18 @@ var CustomExpansionPanel = function CustomExpansionPanel(_ref) {
|
|
|
84
90
|
'div',
|
|
85
91
|
{ className: classes.pinnedIcon },
|
|
86
92
|
'\u2022'
|
|
93
|
+
),
|
|
94
|
+
isPopper && !R.isEmpty(R.propOr('', 'title', popperLabels)) && React.createElement(
|
|
95
|
+
Tooltip,
|
|
96
|
+
{
|
|
97
|
+
variant: 'light',
|
|
98
|
+
tabIndex: 0,
|
|
99
|
+
'aria-label': R.propOr('', 'ariaLabel', popperLabels),
|
|
100
|
+
'aria-hidden': false,
|
|
101
|
+
placement: 'bottom-start',
|
|
102
|
+
title: R.propOr('', 'title', popperLabels)
|
|
103
|
+
},
|
|
104
|
+
React.createElement(HelpIcon, { fontSize: 'small' })
|
|
87
105
|
)
|
|
88
106
|
),
|
|
89
107
|
R.isNil(tag) ? null : tag
|
|
@@ -115,7 +133,12 @@ CustomExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
115
133
|
fullWidth: PropTypes.bool,
|
|
116
134
|
isPinned: PropTypes.bool,
|
|
117
135
|
moreFilters: PropTypes.bool,
|
|
118
|
-
isNarrow: PropTypes.bool
|
|
136
|
+
isNarrow: PropTypes.bool,
|
|
137
|
+
isPopper: PropTypes.bool,
|
|
138
|
+
popperLabels: PropTypes.shape({
|
|
139
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
140
|
+
ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
141
|
+
})
|
|
119
142
|
} : {};
|
|
120
143
|
|
|
121
144
|
export default withBlank(function (_ref2) {
|
|
@@ -1,52 +1,58 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ExpansionPanel hide or show children
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name ExpansionPanel
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* ExpansionPanel.propTypes = {
|
|
10
|
-
* testId: PropTypes.string,
|
|
11
|
-
* id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
12
|
-
* topElementComponent: PropTypes.element,
|
|
13
|
-
* onChangeActivePanel: PropTypes.func,
|
|
14
|
-
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
15
|
-
* tag: PropTypes.element,
|
|
16
|
-
* overflow: PropTypes.bool,
|
|
17
|
-
* isOpen: PropTypes.bool,
|
|
18
|
-
* isBlank: PropTypes.bool,
|
|
19
|
-
* maxHeight: PropTypes.bool,
|
|
20
|
-
* children: PropTypes.oneOfType([
|
|
21
|
-
* PropTypes.arrayOf(PropTypes.node),
|
|
22
|
-
* PropTypes.node
|
|
23
|
-
* ]),
|
|
24
|
-
* fullWidth: PropTypes.bool,
|
|
25
|
-
* isPinned: PropTypes.bool,
|
|
26
|
-
* moreFilters: PropTypes.bool,
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* {
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* ExpansionPanel hide or show children
|
|
3
|
+
*
|
|
4
|
+
* @memberOf VISIONS
|
|
5
|
+
* @name ExpansionPanel
|
|
6
|
+
* @tag component
|
|
7
|
+
* @api public
|
|
8
|
+
* @props
|
|
9
|
+
* ExpansionPanel.propTypes = {
|
|
10
|
+
* testId: PropTypes.string,
|
|
11
|
+
* id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
12
|
+
* topElementComponent: PropTypes.element,
|
|
13
|
+
* onChangeActivePanel: PropTypes.func,
|
|
14
|
+
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
15
|
+
* tag: PropTypes.element,
|
|
16
|
+
* overflow: PropTypes.bool,
|
|
17
|
+
* isOpen: PropTypes.bool,
|
|
18
|
+
* isBlank: PropTypes.bool,
|
|
19
|
+
* maxHeight: PropTypes.bool,
|
|
20
|
+
* children: PropTypes.oneOfType([
|
|
21
|
+
* PropTypes.arrayOf(PropTypes.node),
|
|
22
|
+
* PropTypes.node
|
|
23
|
+
* ]),
|
|
24
|
+
* fullWidth: PropTypes.bool,
|
|
25
|
+
* isPinned: PropTypes.bool,
|
|
26
|
+
* moreFilters: PropTypes.bool,
|
|
27
|
+
* isNarrow: PropTypes.bool,
|
|
28
|
+
* isPopper: PropTypes.bool,
|
|
29
|
+
* popperLabels: PropTypes.shape({
|
|
30
|
+
* title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
31
|
+
* ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
32
|
+
* }),
|
|
33
|
+
* };
|
|
34
|
+
* @theme
|
|
35
|
+
* {
|
|
36
|
+
* palette: {
|
|
37
|
+
* primary: {
|
|
38
|
+
* main: // icon color open colapse/close colapse. global override: outerPalette.primaryMain
|
|
39
|
+
* },
|
|
40
|
+
* grey: {
|
|
41
|
+
* 700: // divider color, pinned icon, label
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* mixins: {
|
|
45
|
+
* expansionPanel: {
|
|
46
|
+
* title: {
|
|
47
|
+
* // color, font
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
* }
|
|
51
|
+
* }
|
|
52
|
+
* @testId
|
|
53
|
+
* @demoReady
|
|
54
|
+
* root: [testId]
|
|
55
|
+
* panel: [testId]_panel
|
|
50
56
|
*/
|
|
51
57
|
|
|
52
58
|
export { default } from './ExpansionPanel';
|
|
@@ -163,18 +163,18 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
163
163
|
{ item: true, container: true, xs: 12, md: 12, justifyContent: 'space-between' },
|
|
164
164
|
React.createElement(
|
|
165
165
|
Grid,
|
|
166
|
-
{ item: true, container: true, xs: 12, sm: 12, md:
|
|
166
|
+
{ item: true, container: true, xs: 12, sm: 12, md: 6, 'flex-direction': 'column' },
|
|
167
167
|
React.createElement(
|
|
168
168
|
Grid,
|
|
169
169
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
170
170
|
React.createElement(
|
|
171
171
|
Grid,
|
|
172
|
-
{ item: true, xs: 12, md:
|
|
172
|
+
{ item: true, xs: 12, md: 5, style: { marginTop: '4px' } },
|
|
173
173
|
React.createElement(Mode, { modes: modes, mode: mode, changeMode: onChange, isSmall: true })
|
|
174
174
|
),
|
|
175
175
|
React.createElement(
|
|
176
176
|
Grid,
|
|
177
|
-
{ item: true, xs: 12, md:
|
|
177
|
+
{ item: true, xs: 12, md: 7 },
|
|
178
178
|
React.createElement(Input, {
|
|
179
179
|
variant: 'outlined',
|
|
180
180
|
name: 'User',
|
|
@@ -194,7 +194,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
194
194
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
195
195
|
React.createElement(
|
|
196
196
|
Grid,
|
|
197
|
-
{ item: true, xs: 12, md:
|
|
197
|
+
{ item: true, xs: 12, md: 5 },
|
|
198
198
|
React.createElement(
|
|
199
199
|
Typography,
|
|
200
200
|
{ variant: 'h6', className: classes.contentLabel, style: { paddingTop: 8 } },
|
|
@@ -203,7 +203,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
203
203
|
),
|
|
204
204
|
React.createElement(
|
|
205
205
|
Grid,
|
|
206
|
-
{ item: true, xs: 12, md:
|
|
206
|
+
{ item: true, xs: 12, md: 7 },
|
|
207
207
|
React.createElement(Select, {
|
|
208
208
|
value: R.defaultTo('*', dataspaceValue),
|
|
209
209
|
items: dataSpaces,
|
|
@@ -220,7 +220,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
220
220
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
221
221
|
React.createElement(
|
|
222
222
|
Grid,
|
|
223
|
-
{ item: true, xs: 12, md:
|
|
223
|
+
{ item: true, xs: 12, md: 5 },
|
|
224
224
|
React.createElement(
|
|
225
225
|
Typography,
|
|
226
226
|
{ variant: 'h6', className: classes.contentLabel, style: { paddingTop: 8 } },
|
|
@@ -229,7 +229,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
229
229
|
),
|
|
230
230
|
React.createElement(
|
|
231
231
|
Grid,
|
|
232
|
-
{ item: true, xs: 12, md:
|
|
232
|
+
{ item: true, xs: 12, md: 7 },
|
|
233
233
|
React.createElement(Select, {
|
|
234
234
|
value: R.defaultTo('*', artefactTypeValue),
|
|
235
235
|
items: artefactTypes,
|
|
@@ -42,10 +42,18 @@ var _ExpandMore = require('@material-ui/icons/ExpandMore');
|
|
|
42
42
|
|
|
43
43
|
var _ExpandMore2 = _interopRequireDefault(_ExpandMore);
|
|
44
44
|
|
|
45
|
+
var _EmojiObjects = require('@material-ui/icons/EmojiObjects');
|
|
46
|
+
|
|
47
|
+
var _EmojiObjects2 = _interopRequireDefault(_EmojiObjects);
|
|
48
|
+
|
|
45
49
|
var _styles = require('./styles');
|
|
46
50
|
|
|
47
51
|
var _utils = require('../utils');
|
|
48
52
|
|
|
53
|
+
var _Tooltip = require('../Tooltip');
|
|
54
|
+
|
|
55
|
+
var _Tooltip2 = _interopRequireDefault(_Tooltip);
|
|
56
|
+
|
|
49
57
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
50
58
|
|
|
51
59
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -71,7 +79,11 @@ var CustomExpansionPanel = function CustomExpansionPanel(_ref) {
|
|
|
71
79
|
pinnedLabel = _ref.pinnedLabel,
|
|
72
80
|
moreFilters = _ref.moreFilters,
|
|
73
81
|
_ref$isNarrow = _ref.isNarrow,
|
|
74
|
-
isNarrow = _ref$isNarrow === undefined ? false : _ref$isNarrow
|
|
82
|
+
isNarrow = _ref$isNarrow === undefined ? false : _ref$isNarrow,
|
|
83
|
+
_ref$isPopper = _ref.isPopper,
|
|
84
|
+
isPopper = _ref$isPopper === undefined ? false : _ref$isPopper,
|
|
85
|
+
_ref$popperLabels = _ref.popperLabels,
|
|
86
|
+
popperLabels = _ref$popperLabels === undefined ? {} : _ref$popperLabels;
|
|
75
87
|
|
|
76
88
|
var classes = (0, _styles.useStyles)();
|
|
77
89
|
|
|
@@ -123,6 +135,18 @@ var CustomExpansionPanel = function CustomExpansionPanel(_ref) {
|
|
|
123
135
|
'div',
|
|
124
136
|
{ className: classes.pinnedIcon },
|
|
125
137
|
'\u2022'
|
|
138
|
+
),
|
|
139
|
+
isPopper && !R.isEmpty(R.propOr('', 'title', popperLabels)) && _react2.default.createElement(
|
|
140
|
+
_Tooltip2.default,
|
|
141
|
+
{
|
|
142
|
+
variant: 'light',
|
|
143
|
+
tabIndex: 0,
|
|
144
|
+
'aria-label': R.propOr('', 'ariaLabel', popperLabels),
|
|
145
|
+
'aria-hidden': false,
|
|
146
|
+
placement: 'bottom-start',
|
|
147
|
+
title: R.propOr('', 'title', popperLabels)
|
|
148
|
+
},
|
|
149
|
+
_react2.default.createElement(_EmojiObjects2.default, { fontSize: 'small' })
|
|
126
150
|
)
|
|
127
151
|
),
|
|
128
152
|
R.isNil(tag) ? null : tag
|
|
@@ -154,7 +178,12 @@ CustomExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
154
178
|
fullWidth: _propTypes2.default.bool,
|
|
155
179
|
isPinned: _propTypes2.default.bool,
|
|
156
180
|
moreFilters: _propTypes2.default.bool,
|
|
157
|
-
isNarrow: _propTypes2.default.bool
|
|
181
|
+
isNarrow: _propTypes2.default.bool,
|
|
182
|
+
isPopper: _propTypes2.default.bool,
|
|
183
|
+
popperLabels: _propTypes2.default.shape({
|
|
184
|
+
title: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
|
|
185
|
+
ariaLabel: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element])
|
|
186
|
+
})
|
|
158
187
|
} : {};
|
|
159
188
|
|
|
160
189
|
exports.default = (0, _utils.withBlank)(function (_ref2) {
|
|
@@ -194,18 +194,18 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
194
194
|
{ item: true, container: true, xs: 12, md: 12, justifyContent: 'space-between' },
|
|
195
195
|
_react2.default.createElement(
|
|
196
196
|
_core.Grid,
|
|
197
|
-
{ item: true, container: true, xs: 12, sm: 12, md:
|
|
197
|
+
{ item: true, container: true, xs: 12, sm: 12, md: 6, 'flex-direction': 'column' },
|
|
198
198
|
_react2.default.createElement(
|
|
199
199
|
_core.Grid,
|
|
200
200
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
201
201
|
_react2.default.createElement(
|
|
202
202
|
_core.Grid,
|
|
203
|
-
{ item: true, xs: 12, md:
|
|
203
|
+
{ item: true, xs: 12, md: 5, style: { marginTop: '4px' } },
|
|
204
204
|
_react2.default.createElement(_.Mode, { modes: modes, mode: mode, changeMode: onChange, isSmall: true })
|
|
205
205
|
),
|
|
206
206
|
_react2.default.createElement(
|
|
207
207
|
_core.Grid,
|
|
208
|
-
{ item: true, xs: 12, md:
|
|
208
|
+
{ item: true, xs: 12, md: 7 },
|
|
209
209
|
_react2.default.createElement(_Input2.default, {
|
|
210
210
|
variant: 'outlined',
|
|
211
211
|
name: 'User',
|
|
@@ -225,7 +225,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
225
225
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
226
226
|
_react2.default.createElement(
|
|
227
227
|
_core.Grid,
|
|
228
|
-
{ item: true, xs: 12, md:
|
|
228
|
+
{ item: true, xs: 12, md: 5 },
|
|
229
229
|
_react2.default.createElement(
|
|
230
230
|
_core.Typography,
|
|
231
231
|
{ variant: 'h6', className: classes.contentLabel, style: { paddingTop: 8 } },
|
|
@@ -234,7 +234,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
234
234
|
),
|
|
235
235
|
_react2.default.createElement(
|
|
236
236
|
_core.Grid,
|
|
237
|
-
{ item: true, xs: 12, md:
|
|
237
|
+
{ item: true, xs: 12, md: 7 },
|
|
238
238
|
_react2.default.createElement(_Select2.default, {
|
|
239
239
|
value: R.defaultTo('*', dataspaceValue),
|
|
240
240
|
items: dataSpaces,
|
|
@@ -251,7 +251,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
251
251
|
{ item: true, container: true, xs: 12, alignItems: 'center' },
|
|
252
252
|
_react2.default.createElement(
|
|
253
253
|
_core.Grid,
|
|
254
|
-
{ item: true, xs: 12, md:
|
|
254
|
+
{ item: true, xs: 12, md: 5 },
|
|
255
255
|
_react2.default.createElement(
|
|
256
256
|
_core.Typography,
|
|
257
257
|
{ variant: 'h6', className: classes.contentLabel, style: { paddingTop: 8 } },
|
|
@@ -260,7 +260,7 @@ var UserRightForm = function UserRightForm(_ref) {
|
|
|
260
260
|
),
|
|
261
261
|
_react2.default.createElement(
|
|
262
262
|
_core.Grid,
|
|
263
|
-
{ item: true, xs: 12, md:
|
|
263
|
+
{ item: true, xs: 12, md: 7 },
|
|
264
264
|
_react2.default.createElement(_Select2.default, {
|
|
265
265
|
value: R.defaultTo('*', artefactTypeValue),
|
|
266
266
|
items: artefactTypes,
|