@sis-cc/dotstatsuite-visions 6.7.0 → 7.2.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.
- package/es/DataHeader/DataHeader.js +10 -1
- package/es/TableHtml5/TableHtml5.js +4 -4
- package/es/TableHtml5/cell.js +3 -4
- package/es/TableHtml5/flags.js +2 -0
- package/es/TableHtml5/index.js +1 -0
- package/es/TableHtml5/section.js +6 -7
- package/es/TableHtml5/sectionHeader.js +8 -9
- package/es/TableHtml5/subHeader.js +3 -4
- package/es/index.js +0 -1
- package/lib/DataHeader/DataHeader.js +10 -1
- package/lib/TableHtml5/TableHtml5.js +4 -4
- package/lib/TableHtml5/cell.js +3 -7
- package/lib/TableHtml5/flags.js +2 -0
- package/lib/TableHtml5/section.js +5 -9
- package/lib/TableHtml5/sectionHeader.js +8 -12
- package/lib/TableHtml5/subHeader.js +3 -7
- package/lib/index.js +1 -10
- package/package.json +6 -6
- package/es/Table/Table.js +0 -170
- package/es/Table/header.js +0 -91
- package/es/Table/index.js +0 -56
- package/es/Table/itemCell.js +0 -54
- package/es/Table/row-header.js +0 -84
- package/es/Table/section-header.js +0 -115
- package/es/Table/section-rows.js +0 -101
- package/es/Table/styles.js +0 -52
- package/es/Table/tableCell.js +0 -29
- package/es/Table/tooltip.js +0 -85
- package/es/Table/useStyles.js +0 -34
- package/es/Table/valueCell.js +0 -63
- package/es/TableHtml5/sideIcon.js +0 -44
- package/lib/Table/Table.js +0 -203
- package/lib/Table/header.js +0 -116
- package/lib/Table/index.js +0 -16
- package/lib/Table/itemCell.js +0 -74
- package/lib/Table/row-header.js +0 -113
- package/lib/Table/section-header.js +0 -145
- package/lib/Table/section-rows.js +0 -134
- package/lib/Table/styles.js +0 -69
- package/lib/Table/tableCell.js +0 -50
- package/lib/Table/tooltip.js +0 -104
- package/lib/Table/useStyles.js +0 -41
- package/lib/Table/valueCell.js +0 -86
- package/lib/TableHtml5/sideIcon.js +0 -68
|
@@ -103,7 +103,9 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
103
103
|
_ref4$subtitle = _ref4.subtitle,
|
|
104
104
|
subtitle = _ref4$subtitle === undefined ? [] : _ref4$subtitle,
|
|
105
105
|
uprs = _ref4.uprs,
|
|
106
|
-
disclaimer = _ref4.disclaimer
|
|
106
|
+
disclaimer = _ref4.disclaimer,
|
|
107
|
+
sideProps = _ref4.sideProps,
|
|
108
|
+
SideIcon = _ref4.SideIcon;
|
|
107
109
|
|
|
108
110
|
var target = React.useRef(null);
|
|
109
111
|
|
|
@@ -133,6 +135,11 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
133
135
|
Typography,
|
|
134
136
|
{ variant: 'h1', className: classes.title },
|
|
135
137
|
title.label,
|
|
138
|
+
!R.isNil(SideIcon) && React.createElement(
|
|
139
|
+
'span',
|
|
140
|
+
{ style: { 'margin-left': '10px' } },
|
|
141
|
+
React.createElement(SideIcon, { sideProps: sideProps })
|
|
142
|
+
),
|
|
136
143
|
React.createElement(Flags, { classes: classes, content: R.propOr([], 'flags', title) }),
|
|
137
144
|
disclaimer && React.createElement(
|
|
138
145
|
Tooltip,
|
|
@@ -222,6 +229,8 @@ DataHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
222
229
|
header: PropTypes.string,
|
|
223
230
|
label: PropTypes.string
|
|
224
231
|
}),
|
|
232
|
+
sideProps: PropTypes.object,
|
|
233
|
+
SideIcon: PropTypes.func,
|
|
225
234
|
disclaimer: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
226
235
|
children: PropTypes.node
|
|
227
236
|
} : {};
|
|
@@ -69,7 +69,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
69
69
|
cellHandler = _ref.cellHandler,
|
|
70
70
|
activeCellIds = _ref.activeCellIds,
|
|
71
71
|
activeCellHandler = _ref.activeCellHandler,
|
|
72
|
-
|
|
72
|
+
SideIcon = _ref.SideIcon,
|
|
73
73
|
_ref$testId = _ref.testId,
|
|
74
74
|
testId = _ref$testId === undefined ? 'vis-table' : _ref$testId;
|
|
75
75
|
|
|
@@ -135,7 +135,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
135
135
|
headerData: headerData,
|
|
136
136
|
xLayoutData: xLayoutData,
|
|
137
137
|
activeCellIds: activeCellIds,
|
|
138
|
-
|
|
138
|
+
SideIcon: SideIcon,
|
|
139
139
|
ref: subHeadCellsRef,
|
|
140
140
|
subHeadCellsWidth: subHeadCellsWidth
|
|
141
141
|
})
|
|
@@ -153,7 +153,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
153
153
|
cellHandler: cellHandler,
|
|
154
154
|
activeCellIds: activeCellIds,
|
|
155
155
|
activeCellHandler: activeCellHandler,
|
|
156
|
-
|
|
156
|
+
SideIcon: SideIcon,
|
|
157
157
|
subHeadCellsWidth: subHeadCellsWidth
|
|
158
158
|
});
|
|
159
159
|
}, sectionsData)
|
|
@@ -167,7 +167,7 @@ TableHtml5.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
167
167
|
cellHandler: PropTypes.func,
|
|
168
168
|
activeCellHandler: PropTypes.func,
|
|
169
169
|
activeCellIds: PropTypes.object,
|
|
170
|
-
|
|
170
|
+
SideIcon: PropTypes.func,
|
|
171
171
|
testId: PropTypes.string
|
|
172
172
|
} : {};
|
|
173
173
|
|
package/es/TableHtml5/cell.js
CHANGED
|
@@ -6,7 +6,6 @@ import { makeStyles } from '@material-ui/core/styles';
|
|
|
6
6
|
import TableCell from '@material-ui/core/TableCell';
|
|
7
7
|
import Typography from '@material-ui/core/Typography';
|
|
8
8
|
import Link from '@material-ui/core/Link';
|
|
9
|
-
import SideIcon from './sideIcon';
|
|
10
9
|
import Flags from './flags';
|
|
11
10
|
|
|
12
11
|
var useStyles = makeStyles(function (theme) {
|
|
@@ -50,7 +49,7 @@ var Cell = function Cell(_ref) {
|
|
|
50
49
|
isActive = _ref.isActive,
|
|
51
50
|
isHighlight = _ref.isHighlight,
|
|
52
51
|
sideProps = _ref.sideProps,
|
|
53
|
-
|
|
52
|
+
SideIcon = _ref.SideIcon;
|
|
54
53
|
|
|
55
54
|
var classes = useStyles();
|
|
56
55
|
var hasFlag = R.not(R.isEmpty(flags));
|
|
@@ -83,7 +82,7 @@ var Cell = function Cell(_ref) {
|
|
|
83
82
|
React.createElement(
|
|
84
83
|
Typography,
|
|
85
84
|
{ variant: 'body1', tabIndex: 0, noWrap: hasFlag },
|
|
86
|
-
React.createElement(SideIcon, { sideProps: sideProps
|
|
85
|
+
!R.isNil(SideIcon) && React.createElement(SideIcon, { sideProps: sideProps }),
|
|
87
86
|
hasFlag && React.createElement(Flags, { flags: flags }),
|
|
88
87
|
uiValue
|
|
89
88
|
)
|
|
@@ -102,7 +101,7 @@ Cell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
102
101
|
isHighlight: PropTypes.bool,
|
|
103
102
|
activeCellHandler: PropTypes.func,
|
|
104
103
|
sideProps: PropTypes.object,
|
|
105
|
-
|
|
104
|
+
SideIcon: PropTypes.func
|
|
106
105
|
} : {};
|
|
107
106
|
|
|
108
107
|
export default Cell;
|
package/es/TableHtml5/flags.js
CHANGED
|
@@ -25,6 +25,7 @@ var useStyles = makeStyles(function (theme) {
|
|
|
25
25
|
borderColor: 'inherit',
|
|
26
26
|
margin: theme.spacing(0, 0.5),
|
|
27
27
|
whiteSpace: 'nowrap',
|
|
28
|
+
display: 'inline',
|
|
28
29
|
fontWeight: 'bold',
|
|
29
30
|
fontStyle: 'normal',
|
|
30
31
|
textTransform: 'uppercase'
|
|
@@ -87,6 +88,7 @@ var Flags = function Flags(_ref) {
|
|
|
87
88
|
hasUncoded && React.createElement(
|
|
88
89
|
Fragment,
|
|
89
90
|
null,
|
|
91
|
+
'\xA0',
|
|
90
92
|
React.createElement(Asterisk, { className: classes.svg, style: { fontSize: 11 } }),
|
|
91
93
|
React.createElement(
|
|
92
94
|
Typography,
|
package/es/TableHtml5/index.js
CHANGED
package/es/TableHtml5/section.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { Fragment } from 'react';
|
|
4
4
|
import * as R from 'ramda';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import cx from 'classnames';
|
|
@@ -11,7 +11,6 @@ import TableCell from '@material-ui/core/TableCell';
|
|
|
11
11
|
import TableRow from '@material-ui/core/TableRow';
|
|
12
12
|
import SectionHeader from './sectionHeader';
|
|
13
13
|
import Cell from './cell';
|
|
14
|
-
import SideIcon from './sideIcon';
|
|
15
14
|
import { getLight, getIsRtl } from '../utils';
|
|
16
15
|
import Flags from './flags';
|
|
17
16
|
|
|
@@ -71,7 +70,7 @@ var Section = function Section(_ref) {
|
|
|
71
70
|
headerHeight = _ref.headerHeight,
|
|
72
71
|
sectionIndex = _ref.sectionIndex,
|
|
73
72
|
nbColumnsByRows = _ref.nbColumnsByRows,
|
|
74
|
-
|
|
73
|
+
SideIcon = _ref.SideIcon,
|
|
75
74
|
subHeadCellsWidth = _ref.subHeadCellsWidth;
|
|
76
75
|
|
|
77
76
|
var classes = useStyles();
|
|
@@ -90,7 +89,7 @@ var Section = function Section(_ref) {
|
|
|
90
89
|
currentSection: currentSection,
|
|
91
90
|
xLayoutDataLength: xLayoutDataLength,
|
|
92
91
|
headerHeight: headerHeight,
|
|
93
|
-
|
|
92
|
+
SideIcon: SideIcon
|
|
94
93
|
}),
|
|
95
94
|
R.map(function (sectionbody) {
|
|
96
95
|
var _cx2;
|
|
@@ -151,7 +150,7 @@ var Section = function Section(_ref) {
|
|
|
151
150
|
React.createElement(
|
|
152
151
|
'div',
|
|
153
152
|
{ className: classes.flagContainer },
|
|
154
|
-
React.createElement(SideIcon, { sideProps: R.prop('sideProps', sectionbody)
|
|
153
|
+
!R.isNil(SideIcon) && React.createElement(SideIcon, { sideProps: R.prop('sideProps', sectionbody) }),
|
|
155
154
|
React.createElement(Flags, { flags: R.prop('flags', sectionbody) })
|
|
156
155
|
)
|
|
157
156
|
),
|
|
@@ -168,7 +167,7 @@ var Section = function Section(_ref) {
|
|
|
168
167
|
}, R.pathOr({ value: '..' }, [item.key, currentSection, sectionbody.key, 0], cells), {
|
|
169
168
|
headers: rowIds + ' ' + columnIds + ' ' + currentSection,
|
|
170
169
|
cellHandler: cellHandler,
|
|
171
|
-
|
|
170
|
+
SideIcon: SideIcon,
|
|
172
171
|
isActive: isActive,
|
|
173
172
|
isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
|
|
174
173
|
activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
|
|
@@ -196,7 +195,7 @@ Section.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
196
195
|
headerNumberRows: PropTypes.number,
|
|
197
196
|
nbColumnsByRows: PropTypes.array,
|
|
198
197
|
maxColumns: PropTypes.number,
|
|
199
|
-
|
|
198
|
+
SideIcon: PropTypes.func,
|
|
200
199
|
subHeadCellsWidth: PropTypes.arrayOf(PropTypes.number)
|
|
201
200
|
} : {};
|
|
202
201
|
|
|
@@ -8,7 +8,6 @@ import { makeStyles } from '@material-ui/core/styles';
|
|
|
8
8
|
import Lens from '@material-ui/icons/Lens';
|
|
9
9
|
import TableCell from '@material-ui/core/TableCell';
|
|
10
10
|
import TableRow from '@material-ui/core/TableRow';
|
|
11
|
-
import SideIcon from './sideIcon';
|
|
12
11
|
import Flags from './flags';
|
|
13
12
|
import { getDark } from '../utils';
|
|
14
13
|
|
|
@@ -33,8 +32,8 @@ var useStyles = makeStyles(function (theme) {
|
|
|
33
32
|
marginRight: theme.spacing(0.5)
|
|
34
33
|
},
|
|
35
34
|
containerSection: {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
alignItems: 'baseline',
|
|
36
|
+
display: 'flex'
|
|
38
37
|
},
|
|
39
38
|
stickyHeaderSection: {
|
|
40
39
|
position: 'sticky'
|
|
@@ -43,8 +42,8 @@ var useStyles = makeStyles(function (theme) {
|
|
|
43
42
|
display: 'flex',
|
|
44
43
|
alignItems: 'center'
|
|
45
44
|
},
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
flags: {
|
|
46
|
+
paddingLeft: 12
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
});
|
|
@@ -56,7 +55,7 @@ var SectionHeader = function SectionHeader(_ref) {
|
|
|
56
55
|
currentSection = _ref.currentSection,
|
|
57
56
|
xLayoutDataLength = _ref.xLayoutDataLength,
|
|
58
57
|
headerHeight = _ref.headerHeight,
|
|
59
|
-
|
|
58
|
+
SideIcon = _ref.SideIcon;
|
|
60
59
|
|
|
61
60
|
var classes = useStyles();
|
|
62
61
|
if (R.compose(R.anyPass([R.isNil, R.isEmpty]), R.path([0, 'data']))(section)) return null;
|
|
@@ -110,8 +109,8 @@ var SectionHeader = function SectionHeader(_ref) {
|
|
|
110
109
|
),
|
|
111
110
|
React.createElement(
|
|
112
111
|
'div',
|
|
113
|
-
{ className: classes.
|
|
114
|
-
React.createElement(SideIcon, { sideProps: R.path([0, 'sideProps'], section)
|
|
112
|
+
{ className: classes.flags },
|
|
113
|
+
!R.isNil(SideIcon) && React.createElement(SideIcon, { sideProps: R.path([0, 'sideProps'], section) }),
|
|
115
114
|
React.createElement(Flags, { flags: R.path([0, 'flags'], section) })
|
|
116
115
|
)
|
|
117
116
|
)
|
|
@@ -125,7 +124,7 @@ SectionHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
125
124
|
currentSection: PropTypes.string,
|
|
126
125
|
xLayoutDataLength: PropTypes.number,
|
|
127
126
|
headerHeight: PropTypes.number,
|
|
128
|
-
|
|
127
|
+
SideIcon: PropTypes.func
|
|
129
128
|
} : {};
|
|
130
129
|
|
|
131
130
|
export default SectionHeader;
|
|
@@ -8,7 +8,6 @@ import TableCell from '@material-ui/core/TableCell';
|
|
|
8
8
|
import TableRow from '@material-ui/core/TableRow';
|
|
9
9
|
import { getLight, getIsRtl } from '../utils';
|
|
10
10
|
import Flags from './flags';
|
|
11
|
-
import SideIcon from './sideIcon';
|
|
12
11
|
|
|
13
12
|
var useStyles = makeStyles(function (theme) {
|
|
14
13
|
return {
|
|
@@ -52,7 +51,7 @@ var SubHeader = React.forwardRef(function (_ref, refs) {
|
|
|
52
51
|
xLayoutData = _ref.xLayoutData,
|
|
53
52
|
activeCellIds = _ref.activeCellIds,
|
|
54
53
|
subHeadCellsWidth = _ref.subHeadCellsWidth,
|
|
55
|
-
|
|
54
|
+
SideIcon = _ref.SideIcon;
|
|
56
55
|
|
|
57
56
|
var classes = useStyles();
|
|
58
57
|
var theme = useTheme();
|
|
@@ -98,7 +97,7 @@ var SubHeader = React.forwardRef(function (_ref, refs) {
|
|
|
98
97
|
key: index,
|
|
99
98
|
className: cx(classes.fillerCell, (_cx = {}, _cx[classes.highlight] = R.prop(index)(activeCellIds), _cx))
|
|
100
99
|
},
|
|
101
|
-
React.createElement(SideIcon, { sideProps: R.prop('sideProps', item)
|
|
100
|
+
!R.isNil(SideIcon) && React.createElement(SideIcon, { sideProps: R.prop('sideProps', item) }),
|
|
102
101
|
React.createElement(Flags, { flags: R.prop('flags', item) })
|
|
103
102
|
);
|
|
104
103
|
}, headerData)
|
|
@@ -109,7 +108,7 @@ SubHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
109
108
|
activeCellIds: PropTypes.object,
|
|
110
109
|
headerData: PropTypes.array,
|
|
111
110
|
xLayoutData: PropTypes.array,
|
|
112
|
-
|
|
111
|
+
SideIcon: PropTypes.func,
|
|
113
112
|
subHeadCellsWidth: PropTypes.arrayOf(PropTypes.number)
|
|
114
113
|
} : {};
|
|
115
114
|
|
package/es/index.js
CHANGED
|
@@ -31,7 +31,6 @@ export { default as Select } from './Select';
|
|
|
31
31
|
export { default as Share } from './Share';
|
|
32
32
|
export { default as SisccFooter } from './SisccFooter';
|
|
33
33
|
export { default as Spotlight } from './Spotlight';
|
|
34
|
-
export { default as Table } from './Table';
|
|
35
34
|
export { default as TableFooter } from './TableFooter';
|
|
36
35
|
export { default as TableHeader } from './TableHeader';
|
|
37
36
|
export { default as TableHtml5, Cell } from './TableHtml5';
|
|
@@ -143,7 +143,9 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
143
143
|
_ref4$subtitle = _ref4.subtitle,
|
|
144
144
|
subtitle = _ref4$subtitle === undefined ? [] : _ref4$subtitle,
|
|
145
145
|
uprs = _ref4.uprs,
|
|
146
|
-
disclaimer = _ref4.disclaimer
|
|
146
|
+
disclaimer = _ref4.disclaimer,
|
|
147
|
+
sideProps = _ref4.sideProps,
|
|
148
|
+
SideIcon = _ref4.SideIcon;
|
|
147
149
|
|
|
148
150
|
var target = _react2.default.useRef(null);
|
|
149
151
|
|
|
@@ -173,6 +175,11 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
173
175
|
_Typography2.default,
|
|
174
176
|
{ variant: 'h1', className: classes.title },
|
|
175
177
|
title.label,
|
|
178
|
+
!R.isNil(SideIcon) && _react2.default.createElement(
|
|
179
|
+
'span',
|
|
180
|
+
{ style: { 'margin-left': '10px' } },
|
|
181
|
+
_react2.default.createElement(SideIcon, { sideProps: sideProps })
|
|
182
|
+
),
|
|
176
183
|
_react2.default.createElement(_Flags2.default, { classes: classes, content: R.propOr([], 'flags', title) }),
|
|
177
184
|
disclaimer && _react2.default.createElement(
|
|
178
185
|
_.Tooltip,
|
|
@@ -262,6 +269,8 @@ DataHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
262
269
|
header: _propTypes2.default.string,
|
|
263
270
|
label: _propTypes2.default.string
|
|
264
271
|
}),
|
|
272
|
+
sideProps: _propTypes2.default.object,
|
|
273
|
+
SideIcon: _propTypes2.default.func,
|
|
265
274
|
disclaimer: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
|
|
266
275
|
children: _propTypes2.default.node
|
|
267
276
|
} : {};
|
|
@@ -102,7 +102,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
102
102
|
cellHandler = _ref.cellHandler,
|
|
103
103
|
activeCellIds = _ref.activeCellIds,
|
|
104
104
|
activeCellHandler = _ref.activeCellHandler,
|
|
105
|
-
|
|
105
|
+
SideIcon = _ref.SideIcon,
|
|
106
106
|
_ref$testId = _ref.testId,
|
|
107
107
|
testId = _ref$testId === undefined ? 'vis-table' : _ref$testId;
|
|
108
108
|
|
|
@@ -168,7 +168,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
168
168
|
headerData: headerData,
|
|
169
169
|
xLayoutData: xLayoutData,
|
|
170
170
|
activeCellIds: activeCellIds,
|
|
171
|
-
|
|
171
|
+
SideIcon: SideIcon,
|
|
172
172
|
ref: subHeadCellsRef,
|
|
173
173
|
subHeadCellsWidth: subHeadCellsWidth
|
|
174
174
|
})
|
|
@@ -186,7 +186,7 @@ var TableHtml5 = function TableHtml5(_ref) {
|
|
|
186
186
|
cellHandler: cellHandler,
|
|
187
187
|
activeCellIds: activeCellIds,
|
|
188
188
|
activeCellHandler: activeCellHandler,
|
|
189
|
-
|
|
189
|
+
SideIcon: SideIcon,
|
|
190
190
|
subHeadCellsWidth: subHeadCellsWidth
|
|
191
191
|
});
|
|
192
192
|
}, sectionsData)
|
|
@@ -200,7 +200,7 @@ TableHtml5.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
200
200
|
cellHandler: _propTypes2.default.func,
|
|
201
201
|
activeCellHandler: _propTypes2.default.func,
|
|
202
202
|
activeCellIds: _propTypes2.default.object,
|
|
203
|
-
|
|
203
|
+
SideIcon: _propTypes2.default.func,
|
|
204
204
|
testId: _propTypes2.default.string
|
|
205
205
|
} : {};
|
|
206
206
|
|
package/lib/TableHtml5/cell.js
CHANGED
|
@@ -32,10 +32,6 @@ var _Link = require('@material-ui/core/Link');
|
|
|
32
32
|
|
|
33
33
|
var _Link2 = _interopRequireDefault(_Link);
|
|
34
34
|
|
|
35
|
-
var _sideIcon = require('./sideIcon');
|
|
36
|
-
|
|
37
|
-
var _sideIcon2 = _interopRequireDefault(_sideIcon);
|
|
38
|
-
|
|
39
35
|
var _flags = require('./flags');
|
|
40
36
|
|
|
41
37
|
var _flags2 = _interopRequireDefault(_flags);
|
|
@@ -85,7 +81,7 @@ var Cell = function Cell(_ref) {
|
|
|
85
81
|
isActive = _ref.isActive,
|
|
86
82
|
isHighlight = _ref.isHighlight,
|
|
87
83
|
sideProps = _ref.sideProps,
|
|
88
|
-
|
|
84
|
+
SideIcon = _ref.SideIcon;
|
|
89
85
|
|
|
90
86
|
var classes = useStyles();
|
|
91
87
|
var hasFlag = R.not(R.isEmpty(flags));
|
|
@@ -118,7 +114,7 @@ var Cell = function Cell(_ref) {
|
|
|
118
114
|
_react2.default.createElement(
|
|
119
115
|
_Typography2.default,
|
|
120
116
|
{ variant: 'body1', tabIndex: 0, noWrap: hasFlag },
|
|
121
|
-
_react2.default.createElement(
|
|
117
|
+
!R.isNil(SideIcon) && _react2.default.createElement(SideIcon, { sideProps: sideProps }),
|
|
122
118
|
hasFlag && _react2.default.createElement(_flags2.default, { flags: flags }),
|
|
123
119
|
uiValue
|
|
124
120
|
)
|
|
@@ -137,7 +133,7 @@ Cell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
137
133
|
isHighlight: _propTypes2.default.bool,
|
|
138
134
|
activeCellHandler: _propTypes2.default.func,
|
|
139
135
|
sideProps: _propTypes2.default.object,
|
|
140
|
-
|
|
136
|
+
SideIcon: _propTypes2.default.func
|
|
141
137
|
} : {};
|
|
142
138
|
|
|
143
139
|
exports.default = Cell;
|
package/lib/TableHtml5/flags.js
CHANGED
|
@@ -52,6 +52,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
52
52
|
borderColor: 'inherit',
|
|
53
53
|
margin: theme.spacing(0, 0.5),
|
|
54
54
|
whiteSpace: 'nowrap',
|
|
55
|
+
display: 'inline',
|
|
55
56
|
fontWeight: 'bold',
|
|
56
57
|
fontStyle: 'normal',
|
|
57
58
|
textTransform: 'uppercase'
|
|
@@ -114,6 +115,7 @@ var Flags = function Flags(_ref) {
|
|
|
114
115
|
hasUncoded && _react2.default.createElement(
|
|
115
116
|
_react.Fragment,
|
|
116
117
|
null,
|
|
118
|
+
'\xA0',
|
|
117
119
|
_react2.default.createElement(_.Asterisk, { className: classes.svg, style: { fontSize: 11 } }),
|
|
118
120
|
_react2.default.createElement(
|
|
119
121
|
_Typography2.default,
|
|
@@ -46,10 +46,6 @@ var _cell = require('./cell');
|
|
|
46
46
|
|
|
47
47
|
var _cell2 = _interopRequireDefault(_cell);
|
|
48
48
|
|
|
49
|
-
var _sideIcon = require('./sideIcon');
|
|
50
|
-
|
|
51
|
-
var _sideIcon2 = _interopRequireDefault(_sideIcon);
|
|
52
|
-
|
|
53
49
|
var _utils = require('../utils');
|
|
54
50
|
|
|
55
51
|
var _flags = require('./flags');
|
|
@@ -116,7 +112,7 @@ var Section = function Section(_ref) {
|
|
|
116
112
|
headerHeight = _ref.headerHeight,
|
|
117
113
|
sectionIndex = _ref.sectionIndex,
|
|
118
114
|
nbColumnsByRows = _ref.nbColumnsByRows,
|
|
119
|
-
|
|
115
|
+
SideIcon = _ref.SideIcon,
|
|
120
116
|
subHeadCellsWidth = _ref.subHeadCellsWidth;
|
|
121
117
|
|
|
122
118
|
var classes = useStyles();
|
|
@@ -135,7 +131,7 @@ var Section = function Section(_ref) {
|
|
|
135
131
|
currentSection: currentSection,
|
|
136
132
|
xLayoutDataLength: xLayoutDataLength,
|
|
137
133
|
headerHeight: headerHeight,
|
|
138
|
-
|
|
134
|
+
SideIcon: SideIcon
|
|
139
135
|
}),
|
|
140
136
|
R.map(function (sectionbody) {
|
|
141
137
|
var _cx2;
|
|
@@ -196,7 +192,7 @@ var Section = function Section(_ref) {
|
|
|
196
192
|
_react2.default.createElement(
|
|
197
193
|
'div',
|
|
198
194
|
{ className: classes.flagContainer },
|
|
199
|
-
_react2.default.createElement(
|
|
195
|
+
!R.isNil(SideIcon) && _react2.default.createElement(SideIcon, { sideProps: R.prop('sideProps', sectionbody) }),
|
|
200
196
|
_react2.default.createElement(_flags2.default, { flags: R.prop('flags', sectionbody) })
|
|
201
197
|
)
|
|
202
198
|
),
|
|
@@ -213,7 +209,7 @@ var Section = function Section(_ref) {
|
|
|
213
209
|
}, R.pathOr({ value: '..' }, [item.key, currentSection, sectionbody.key, 0], cells), {
|
|
214
210
|
headers: rowIds + ' ' + columnIds + ' ' + currentSection,
|
|
215
211
|
cellHandler: cellHandler,
|
|
216
|
-
|
|
212
|
+
SideIcon: SideIcon,
|
|
217
213
|
isActive: isActive,
|
|
218
214
|
isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
|
|
219
215
|
activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
|
|
@@ -241,7 +237,7 @@ Section.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
241
237
|
headerNumberRows: _propTypes2.default.number,
|
|
242
238
|
nbColumnsByRows: _propTypes2.default.array,
|
|
243
239
|
maxColumns: _propTypes2.default.number,
|
|
244
|
-
|
|
240
|
+
SideIcon: _propTypes2.default.func,
|
|
245
241
|
subHeadCellsWidth: _propTypes2.default.arrayOf(_propTypes2.default.number)
|
|
246
242
|
} : {};
|
|
247
243
|
|
|
@@ -34,10 +34,6 @@ var _TableRow = require('@material-ui/core/TableRow');
|
|
|
34
34
|
|
|
35
35
|
var _TableRow2 = _interopRequireDefault(_TableRow);
|
|
36
36
|
|
|
37
|
-
var _sideIcon = require('./sideIcon');
|
|
38
|
-
|
|
39
|
-
var _sideIcon2 = _interopRequireDefault(_sideIcon);
|
|
40
|
-
|
|
41
37
|
var _flags = require('./flags');
|
|
42
38
|
|
|
43
39
|
var _flags2 = _interopRequireDefault(_flags);
|
|
@@ -69,8 +65,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
69
65
|
marginRight: theme.spacing(0.5)
|
|
70
66
|
},
|
|
71
67
|
containerSection: {
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
alignItems: 'baseline',
|
|
69
|
+
display: 'flex'
|
|
74
70
|
},
|
|
75
71
|
stickyHeaderSection: {
|
|
76
72
|
position: 'sticky'
|
|
@@ -79,8 +75,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
79
75
|
display: 'flex',
|
|
80
76
|
alignItems: 'center'
|
|
81
77
|
},
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
flags: {
|
|
79
|
+
paddingLeft: 12
|
|
84
80
|
}
|
|
85
81
|
};
|
|
86
82
|
});
|
|
@@ -92,7 +88,7 @@ var SectionHeader = function SectionHeader(_ref) {
|
|
|
92
88
|
currentSection = _ref.currentSection,
|
|
93
89
|
xLayoutDataLength = _ref.xLayoutDataLength,
|
|
94
90
|
headerHeight = _ref.headerHeight,
|
|
95
|
-
|
|
91
|
+
SideIcon = _ref.SideIcon;
|
|
96
92
|
|
|
97
93
|
var classes = useStyles();
|
|
98
94
|
if (R.compose(R.anyPass([R.isNil, R.isEmpty]), R.path([0, 'data']))(section)) return null;
|
|
@@ -146,8 +142,8 @@ var SectionHeader = function SectionHeader(_ref) {
|
|
|
146
142
|
),
|
|
147
143
|
_react2.default.createElement(
|
|
148
144
|
'div',
|
|
149
|
-
{ className: classes.
|
|
150
|
-
_react2.default.createElement(
|
|
145
|
+
{ className: classes.flags },
|
|
146
|
+
!R.isNil(SideIcon) && _react2.default.createElement(SideIcon, { sideProps: R.path([0, 'sideProps'], section) }),
|
|
151
147
|
_react2.default.createElement(_flags2.default, { flags: R.path([0, 'flags'], section) })
|
|
152
148
|
)
|
|
153
149
|
)
|
|
@@ -161,7 +157,7 @@ SectionHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
161
157
|
currentSection: _propTypes2.default.string,
|
|
162
158
|
xLayoutDataLength: _propTypes2.default.number,
|
|
163
159
|
headerHeight: _propTypes2.default.number,
|
|
164
|
-
|
|
160
|
+
SideIcon: _propTypes2.default.func
|
|
165
161
|
} : {};
|
|
166
162
|
|
|
167
163
|
exports.default = SectionHeader;
|
|
@@ -38,10 +38,6 @@ var _flags = require('./flags');
|
|
|
38
38
|
|
|
39
39
|
var _flags2 = _interopRequireDefault(_flags);
|
|
40
40
|
|
|
41
|
-
var _sideIcon = require('./sideIcon');
|
|
42
|
-
|
|
43
|
-
var _sideIcon2 = _interopRequireDefault(_sideIcon);
|
|
44
|
-
|
|
45
41
|
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; } }
|
|
46
42
|
|
|
47
43
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -88,7 +84,7 @@ var SubHeader = _react2.default.forwardRef(function (_ref, refs) {
|
|
|
88
84
|
xLayoutData = _ref.xLayoutData,
|
|
89
85
|
activeCellIds = _ref.activeCellIds,
|
|
90
86
|
subHeadCellsWidth = _ref.subHeadCellsWidth,
|
|
91
|
-
|
|
87
|
+
SideIcon = _ref.SideIcon;
|
|
92
88
|
|
|
93
89
|
var classes = useStyles();
|
|
94
90
|
var theme = (0, _styles.useTheme)();
|
|
@@ -134,7 +130,7 @@ var SubHeader = _react2.default.forwardRef(function (_ref, refs) {
|
|
|
134
130
|
key: index,
|
|
135
131
|
className: (0, _classnames2.default)(classes.fillerCell, (_cx = {}, _cx[classes.highlight] = R.prop(index)(activeCellIds), _cx))
|
|
136
132
|
},
|
|
137
|
-
_react2.default.createElement(
|
|
133
|
+
!R.isNil(SideIcon) && _react2.default.createElement(SideIcon, { sideProps: R.prop('sideProps', item) }),
|
|
138
134
|
_react2.default.createElement(_flags2.default, { flags: R.prop('flags', item) })
|
|
139
135
|
);
|
|
140
136
|
}, headerData)
|
|
@@ -145,7 +141,7 @@ SubHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
145
141
|
activeCellIds: _propTypes2.default.object,
|
|
146
142
|
headerData: _propTypes2.default.array,
|
|
147
143
|
xLayoutData: _propTypes2.default.array,
|
|
148
|
-
|
|
144
|
+
SideIcon: _propTypes2.default.func,
|
|
149
145
|
subHeadCellsWidth: _propTypes2.default.arrayOf(_propTypes2.default.number)
|
|
150
146
|
} : {};
|
|
151
147
|
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.T4_BREAKPOINTS = exports.innerPalette = exports.sisccTheme = exports.AuthDialog = exports.VerticalButton = exports.Tooltip = exports.ToggleButton = exports.Tag = exports.TablePreview = exports.TableLayout = exports.Cell = exports.TableHtml5 = exports.TableHeader = exports.TableFooter = exports.
|
|
4
|
+
exports.T4_BREAKPOINTS = exports.innerPalette = exports.sisccTheme = exports.AuthDialog = exports.VerticalButton = exports.Tooltip = exports.ToggleButton = exports.Tag = exports.TablePreview = exports.TableLayout = exports.Cell = exports.TableHtml5 = exports.TableHeader = exports.TableFooter = exports.Spotlight = exports.SisccFooter = exports.Share = exports.Select = exports.ScopeList = exports.reduceChildren = exports.spotlightScopeListEngine = exports.PeriodPicker = exports.Pagination = exports.NoData = exports.Logo = exports.Loading = exports.LabelDivider = exports.InputNumber = exports.Input = exports.ExpansionPanel = exports.DataFooter = exports.DataHeader = exports.Dataflow = exports.DataEdit = exports.CollapsibleTree = exports.CollapseButtons = exports.Chips = exports.ChartsConfig = exports.Button = exports.Breadcrumbs = exports.ApiQueries = exports.Alert = undefined;
|
|
5
5
|
|
|
6
6
|
var _Alert = require('./Alert');
|
|
7
7
|
|
|
@@ -264,15 +264,6 @@ Object.defineProperty(exports, 'Spotlight', {
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
var _Table = require('./Table');
|
|
268
|
-
|
|
269
|
-
Object.defineProperty(exports, 'Table', {
|
|
270
|
-
enumerable: true,
|
|
271
|
-
get: function get() {
|
|
272
|
-
return _interopRequireDefault(_Table).default;
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
|
|
276
267
|
var _TableFooter = require('./TableFooter');
|
|
277
268
|
|
|
278
269
|
Object.defineProperty(exports, 'TableFooter', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sis-cc/dotstatsuite-visions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Library of visual components",
|
|
5
5
|
"author": "OECD",
|
|
6
6
|
"homepage": "https://visions-qa.siscc.org/#o",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "nwb build-react-component --no-demo && node scripts/doc && nwb build-demo",
|
|
22
|
+
"build:dev": "nwb build-react-component --no-demo",
|
|
22
23
|
"clean": "nwb clean-module && nwb clean-demo",
|
|
23
24
|
"prepublishOnly": "npm run build",
|
|
24
25
|
"start": "nwb serve-react-demo",
|
|
@@ -35,8 +36,6 @@
|
|
|
35
36
|
"@react-hook/size": "^2.1.1",
|
|
36
37
|
"classnames": "^2.2.6",
|
|
37
38
|
"date-fns": "^1.30.1",
|
|
38
|
-
"glamor": "^2.20.40",
|
|
39
|
-
"glamorous": "^5.0.0",
|
|
40
39
|
"numeral": "^2.0.6",
|
|
41
40
|
"prop-types": "^15.7.2",
|
|
42
41
|
"ramda": "^0.27.0",
|
|
@@ -44,8 +43,6 @@
|
|
|
44
43
|
"react-beautiful-dnd": "^13.0.0",
|
|
45
44
|
"react-dom": "^16.8.6",
|
|
46
45
|
"react-router-dom": "^5.0.1",
|
|
47
|
-
"react-select": "^2.0.0",
|
|
48
|
-
"react-sizeme": "^2.6.12",
|
|
49
46
|
"react-virtualized": "^9.21.2",
|
|
50
47
|
"recompose": "^0.30.0"
|
|
51
48
|
},
|
|
@@ -82,7 +79,10 @@
|
|
|
82
79
|
"react-a11y": "^1.1.0",
|
|
83
80
|
"react-helmet": "^5.2.1",
|
|
84
81
|
"react-scrollable-anchor": "^0.6.1",
|
|
85
|
-
"react-syntax-highlighter": "^10.2.1"
|
|
82
|
+
"react-syntax-highlighter": "^10.2.1",
|
|
83
|
+
"webpack": "^5.68.0",
|
|
84
|
+
"webpack-cli": "^4.9.2",
|
|
85
|
+
"webpack-dev-server": "^4.7.4"
|
|
86
86
|
},
|
|
87
87
|
"jest": {
|
|
88
88
|
"verbose": true,
|