@sis-cc/dotstatsuite-visions 6.4.3 → 6.6.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/Alert/Alert.js +66 -135
- package/es/Alert/index.js +0 -1
- package/es/ApiQueries/ApiQueries.js +45 -79
- package/es/ApiQueries/Query.js +65 -105
- package/es/ApiQueries/index.js +0 -1
- package/es/AuthDialog/index.js +169 -0
- package/es/Breadcrumbs/Breadcrumbs.js +21 -38
- package/es/Breadcrumbs/index.js +0 -1
- package/es/Button/Button.js +11 -28
- package/es/Button/index.js +0 -1
- package/es/ChartsConfig/Axis.js +72 -76
- package/es/ChartsConfig/ButtonGroup.js +29 -51
- package/es/ChartsConfig/ChartsConfig.js +87 -187
- package/es/ChartsConfig/ContainerTitle.js +15 -36
- package/es/ChartsConfig/Focus.js +37 -48
- package/es/ChartsConfig/Frequency.js +24 -36
- package/es/ChartsConfig/Series.js +28 -43
- package/es/ChartsConfig/Size.js +36 -50
- package/es/ChartsConfig/index.js +0 -1
- package/es/ChartsConfig/styles.js +4 -4
- package/es/ChartsConfig/utils.js +1 -5
- package/es/Chips/Chips.js +99 -154
- package/es/Chips/index.js +0 -1
- package/es/CollapseButtons/CollapseButtons.js +63 -99
- package/es/CollapseButtons/Item.js +45 -70
- package/es/CollapseButtons/Paper.js +7 -21
- package/es/CollapseButtons/index.js +3 -1
- package/es/DataEdit/DataEdit.js +67 -124
- package/es/DataEdit/Input.js +27 -58
- package/es/DataEdit/index.js +0 -1
- package/es/DataFooter/DataFooter.js +68 -115
- package/es/DataFooter/index.js +0 -1
- package/es/DataHeader/DataHeader.js +75 -113
- package/es/DataHeader/Flags.js +8 -21
- package/es/DataHeader/Title.js +2 -15
- package/es/DataHeader/TooltipHeader.js +33 -63
- package/es/DataHeader/index.js +0 -1
- package/es/DataHeader/utils.js +8 -8
- package/es/Dataflow/Dataflow.js +132 -226
- package/es/Dataflow/index.js +0 -1
- package/es/ExpansionPanel/ExpansionPanel.js +42 -79
- package/es/ExpansionPanel/index.js +0 -1
- package/es/ExpansionPanel/styles.js +3 -5
- package/es/Icons/AccessibilityFilled.js +6 -8
- package/es/Icons/AccessibilityOutlined.js +6 -8
- package/es/Icons/AccountFilled.js +6 -8
- package/es/Icons/AccountOutlined.js +6 -8
- package/es/Icons/Api.js +6 -8
- package/es/Icons/Asterisk.js +6 -8
- package/es/Icons/Bar.js +6 -8
- package/es/Icons/CopyContent.js +6 -8
- package/es/Icons/Cross.js +6 -8
- package/es/Icons/HSymbol.js +6 -8
- package/es/Icons/Row.js +6 -8
- package/es/Icons/Scatter.js +6 -8
- package/es/Icons/StackedBar.js +6 -8
- package/es/Icons/StackedRow.js +6 -8
- package/es/Icons/Timeline.js +6 -8
- package/es/Icons/VSymbol.js +6 -8
- package/es/Icons/Warning.js +11 -14
- package/es/Icons/index.js +0 -1
- package/es/Input/Input.js +26 -56
- package/es/Input/index.js +0 -1
- package/es/Input/with-input.js +30 -25
- package/es/InputNumber/InputNumber.js +31 -51
- package/es/InputNumber/index.js +0 -1
- package/es/LabelDivider/LabelDivider.js +7 -18
- package/es/LabelDivider/index.js +0 -1
- package/es/Loading/Loading.js +9 -18
- package/es/Loading/index.js +0 -1
- package/es/Logo/Logo.js +11 -17
- package/es/Logo/index.js +0 -1
- package/es/NoData/NoData.js +17 -25
- package/es/NoData/index.js +0 -1
- package/es/Pagination/Pagination.js +70 -114
- package/es/Pagination/index.js +0 -1
- package/es/PeriodPicker/PeriodPicker.js +101 -124
- package/es/PeriodPicker/constants.js +78 -13
- package/es/PeriodPicker/index.js +0 -1
- package/es/PeriodPicker/lib.js +37 -23
- package/es/PeriodPicker/styles.js +0 -1
- package/es/ScopeList/Header.js +41 -60
- package/es/ScopeList/Item.js +98 -144
- package/es/ScopeList/ScopeList.js +132 -184
- package/es/ScopeList/Selection.js +51 -93
- package/es/ScopeList/index.js +0 -1
- package/es/ScopeList/styles.js +2 -3
- package/es/ScopeList/with-scope-list.js +151 -88
- package/es/Select/Select.js +44 -60
- package/es/Select/index.js +0 -1
- package/es/Share/Form.js +58 -88
- package/es/Share/Mode.js +30 -46
- package/es/Share/Share.js +41 -64
- package/es/Share/index.js +0 -1
- package/es/SisccFooter/SisccFooter.js +29 -36
- package/es/SisccFooter/index.js +0 -1
- package/es/Spotlight/Fields.js +37 -71
- package/es/Spotlight/Spotlight.js +51 -92
- package/es/Spotlight/index.js +0 -1
- package/es/Spotlight/useSpotlight.js +33 -13
- package/es/Spotlight/useStyles.js +2 -4
- package/es/Table/Table.js +50 -71
- package/es/Table/header.js +36 -50
- package/es/Table/index.js +0 -1
- package/es/Table/itemCell.js +13 -25
- package/es/Table/row-header.js +31 -50
- package/es/Table/section-header.js +30 -55
- package/es/Table/section-rows.js +38 -62
- package/es/Table/styles.js +2 -8
- package/es/Table/tableCell.js +7 -17
- package/es/Table/tooltip.js +21 -41
- package/es/Table/useStyles.js +2 -3
- package/es/Table/valueCell.js +26 -41
- package/es/TableFooter/TableFooter.js +42 -70
- package/es/TableFooter/index.js +0 -1
- package/es/TableHeader/TableHeader.js +18 -36
- package/es/TableHeader/index.js +0 -1
- package/es/TableHtml5/TableHtml5.js +71 -68
- package/es/TableHtml5/cell.js +35 -55
- package/es/TableHtml5/flags.js +29 -58
- package/es/TableHtml5/header.js +48 -66
- package/es/TableHtml5/index.js +0 -1
- package/es/TableHtml5/section.js +86 -120
- package/es/TableHtml5/sectionHeader.js +45 -72
- package/es/TableHtml5/subHeader.js +48 -58
- package/es/TableLayout/Box.js +33 -66
- package/es/TableLayout/DnDItem.js +37 -68
- package/es/TableLayout/TableLayout.js +105 -177
- package/es/TableLayout/constants.js +0 -2
- package/es/TableLayout/index.js +0 -1
- package/es/TableLayout/lib.js +1 -3
- package/es/TablePreview/TablePreview.js +99 -176
- package/es/TablePreview/index.js +0 -1
- package/es/TablePreview/lib.js +5 -4
- package/es/TablePreview/styles.js +0 -1
- package/es/Tag/Tag.js +5 -21
- package/es/Tag/index.js +0 -1
- package/es/ToggleButton/ToggleButton.js +28 -34
- package/es/ToggleButton/index.js +3 -1
- package/es/Tooltip/Tooltip.js +20 -32
- package/es/Tooltip/index.js +0 -1
- package/es/VerticalButton/VerticalButton.js +17 -22
- package/es/VerticalButton/index.js +0 -1
- package/es/index.js +3 -4
- package/es/theme.js +32 -14
- package/es/utils.js +16 -14
- package/lib/Alert/Alert.js +87 -168
- package/lib/Alert/index.js +7 -12
- package/lib/ApiQueries/ApiQueries.js +61 -105
- package/lib/ApiQueries/Query.js +85 -132
- package/lib/ApiQueries/index.js +7 -12
- package/lib/AuthDialog/index.js +193 -0
- package/lib/Breadcrumbs/Breadcrumbs.js +39 -68
- package/lib/Breadcrumbs/index.js +7 -12
- package/lib/Button/Button.js +28 -47
- package/lib/Button/index.js +7 -12
- package/lib/ChartsConfig/Axis.js +88 -100
- package/lib/ChartsConfig/ButtonGroup.js +43 -74
- package/lib/ChartsConfig/ChartsConfig.js +113 -236
- package/lib/ChartsConfig/ContainerTitle.js +30 -59
- package/lib/ChartsConfig/Focus.js +53 -71
- package/lib/ChartsConfig/Frequency.js +39 -59
- package/lib/ChartsConfig/Series.js +45 -70
- package/lib/ChartsConfig/Size.js +53 -77
- package/lib/ChartsConfig/index.js +7 -12
- package/lib/ChartsConfig/styles.js +16 -11
- package/lib/ChartsConfig/utils.js +14 -13
- package/lib/Chips/Chips.js +122 -192
- package/lib/Chips/index.js +7 -12
- package/lib/CollapseButtons/CollapseButtons.js +86 -132
- package/lib/CollapseButtons/Item.js +64 -98
- package/lib/CollapseButtons/Paper.js +19 -41
- package/lib/CollapseButtons/index.js +7 -12
- package/lib/DataEdit/DataEdit.js +88 -156
- package/lib/DataEdit/Input.js +42 -82
- package/lib/DataEdit/index.js +7 -12
- package/lib/DataFooter/DataFooter.js +88 -144
- package/lib/DataFooter/index.js +7 -12
- package/lib/DataHeader/DataHeader.js +106 -158
- package/lib/DataHeader/Flags.js +18 -34
- package/lib/DataHeader/Title.js +11 -27
- package/lib/DataHeader/TooltipHeader.js +48 -79
- package/lib/DataHeader/index.js +7 -12
- package/lib/DataHeader/utils.js +16 -10
- package/lib/Dataflow/Dataflow.js +159 -277
- package/lib/Dataflow/index.js +7 -12
- package/lib/ExpansionPanel/ExpansionPanel.js +63 -116
- package/lib/ExpansionPanel/index.js +7 -12
- package/lib/ExpansionPanel/styles.js +15 -12
- package/lib/Icons/AccessibilityFilled.js +15 -17
- package/lib/Icons/AccessibilityOutlined.js +15 -17
- package/lib/Icons/AccountFilled.js +15 -17
- package/lib/Icons/AccountOutlined.js +15 -17
- package/lib/Icons/Api.js +15 -17
- package/lib/Icons/Asterisk.js +15 -17
- package/lib/Icons/Bar.js +15 -17
- package/lib/Icons/CopyContent.js +15 -17
- package/lib/Icons/Cross.js +15 -17
- package/lib/Icons/HSymbol.js +15 -17
- package/lib/Icons/Row.js +15 -17
- package/lib/Icons/Scatter.js +15 -17
- package/lib/Icons/StackedBar.js +15 -17
- package/lib/Icons/StackedRow.js +15 -17
- package/lib/Icons/Timeline.js +15 -17
- package/lib/Icons/VSymbol.js +15 -17
- package/lib/Icons/Warning.js +27 -31
- package/lib/Icons/index.js +68 -152
- package/lib/Input/Input.js +47 -85
- package/lib/Input/index.js +7 -12
- package/lib/Input/with-input.js +38 -35
- package/lib/InputNumber/InputNumber.js +50 -80
- package/lib/InputNumber/index.js +7 -12
- package/lib/LabelDivider/LabelDivider.js +23 -37
- package/lib/LabelDivider/index.js +7 -12
- package/lib/Loading/Loading.js +20 -35
- package/lib/Loading/index.js +7 -12
- package/lib/Logo/Logo.js +20 -28
- package/lib/Logo/index.js +7 -12
- package/lib/NoData/NoData.js +28 -42
- package/lib/NoData/index.js +7 -12
- package/lib/Pagination/Pagination.js +91 -150
- package/lib/Pagination/index.js +7 -12
- package/lib/PeriodPicker/PeriodPicker.js +121 -150
- package/lib/PeriodPicker/constants.js +126 -37
- package/lib/PeriodPicker/index.js +7 -12
- package/lib/PeriodPicker/lib.js +99 -61
- package/lib/PeriodPicker/styles.js +7 -4
- package/lib/ScopeList/Header.js +58 -88
- package/lib/ScopeList/Item.js +116 -177
- package/lib/ScopeList/ScopeList.js +160 -234
- package/lib/ScopeList/Selection.js +70 -131
- package/lib/ScopeList/index.js +7 -12
- package/lib/ScopeList/styles.js +10 -9
- package/lib/ScopeList/with-scope-list.js +199 -108
- package/lib/Select/Select.js +59 -80
- package/lib/Select/index.js +7 -12
- package/lib/Share/Form.js +77 -119
- package/lib/Share/Mode.js +49 -78
- package/lib/Share/Share.js +59 -91
- package/lib/Share/index.js +7 -12
- package/lib/SisccFooter/SisccFooter.js +44 -63
- package/lib/SisccFooter/index.js +7 -12
- package/lib/Spotlight/Fields.js +54 -100
- package/lib/Spotlight/Spotlight.js +75 -136
- package/lib/Spotlight/index.js +7 -12
- package/lib/Spotlight/useSpotlight.js +44 -20
- package/lib/Spotlight/useStyles.js +15 -12
- package/lib/Table/Table.js +69 -102
- package/lib/Table/header.js +51 -70
- package/lib/Table/index.js +7 -12
- package/lib/Table/itemCell.js +25 -41
- package/lib/Table/row-header.js +49 -75
- package/lib/Table/section-header.js +50 -82
- package/lib/Table/section-rows.js +60 -94
- package/lib/Table/styles.js +23 -25
- package/lib/Table/tableCell.js +19 -37
- package/lib/Table/tooltip.js +36 -54
- package/lib/Table/useStyles.js +11 -8
- package/lib/Table/valueCell.js +39 -59
- package/lib/TableFooter/TableFooter.js +57 -93
- package/lib/TableFooter/index.js +7 -12
- package/lib/TableHeader/TableHeader.js +32 -56
- package/lib/TableHeader/index.js +7 -12
- package/lib/TableHtml5/TableHtml5.js +90 -97
- package/lib/TableHtml5/cell.js +52 -84
- package/lib/TableHtml5/flags.js +48 -82
- package/lib/TableHtml5/header.js +66 -96
- package/lib/TableHtml5/index.js +8 -17
- package/lib/TableHtml5/section.js +111 -162
- package/lib/TableHtml5/sectionHeader.js +64 -102
- package/lib/TableHtml5/subHeader.js +68 -88
- package/lib/TableLayout/Box.js +54 -97
- package/lib/TableLayout/DnDItem.js +58 -98
- package/lib/TableLayout/TableLayout.js +140 -232
- package/lib/TableLayout/constants.js +8 -6
- package/lib/TableLayout/index.js +7 -12
- package/lib/TableLayout/lib.js +14 -9
- package/lib/TablePreview/TablePreview.js +118 -205
- package/lib/TablePreview/index.js +7 -12
- package/lib/TablePreview/lib.js +30 -19
- package/lib/TablePreview/styles.js +7 -6
- package/lib/Tag/Tag.js +19 -38
- package/lib/Tag/index.js +7 -12
- package/lib/ToggleButton/ToggleButton.js +44 -60
- package/lib/ToggleButton/index.js +7 -12
- package/lib/Tooltip/Tooltip.js +34 -50
- package/lib/Tooltip/index.js +7 -12
- package/lib/VerticalButton/VerticalButton.js +40 -46
- package/lib/VerticalButton/index.js +7 -12
- package/lib/index.js +138 -296
- package/lib/theme.js +41 -17
- package/lib/utils.js +46 -31
- package/package.json +2 -10
package/es/TableHtml5/cell.js
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import cx from 'classnames';
|
|
5
4
|
import { makeStyles } from '@material-ui/core/styles';
|
|
6
5
|
import TableCell from '@material-ui/core/TableCell';
|
|
7
6
|
import Typography from '@material-ui/core/Typography';
|
|
8
7
|
import Link from '@material-ui/core/Link';
|
|
9
8
|
import Flags from './flags';
|
|
10
|
-
|
|
11
9
|
var useStyles = makeStyles(function (theme) {
|
|
12
10
|
return {
|
|
13
11
|
cell: {
|
|
14
|
-
borderBottom:
|
|
15
|
-
borderRight:
|
|
16
|
-
padding: theme.spacing(0.5) +
|
|
12
|
+
borderBottom: "1px solid " + theme.palette.grey[500],
|
|
13
|
+
borderRight: "1px solid " + theme.palette.grey[500],
|
|
14
|
+
padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
|
|
17
15
|
verticalAlign: 'baseline',
|
|
18
16
|
color: theme.palette.grey['A700'],
|
|
19
17
|
'&:hover': {
|
|
20
|
-
boxShadow:
|
|
18
|
+
boxShadow: "inset 0 0 0 2px " + theme.palette.primary.main
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
active: {
|
|
24
|
-
boxShadow:
|
|
22
|
+
boxShadow: "inset 0 0 0 2px " + theme.palette.primary.main
|
|
25
23
|
},
|
|
26
24
|
highlight: theme.mixins.table.cellHighlight,
|
|
27
25
|
oneCell: {
|
|
28
|
-
border:
|
|
26
|
+
border: "1px solid " + theme.palette.grey[500],
|
|
29
27
|
display: 'block' // MUI TableCell is inline-block
|
|
28
|
+
|
|
30
29
|
},
|
|
31
30
|
link: {
|
|
32
31
|
position: 'inherit',
|
|
@@ -43,60 +42,41 @@ var Cell = function Cell(_ref) {
|
|
|
43
42
|
headers = _ref.headers,
|
|
44
43
|
isOne = _ref.isOne,
|
|
45
44
|
_ref$indexedDimValIds = _ref.indexedDimValIds,
|
|
46
|
-
indexedDimValIds = _ref$indexedDimValIds ===
|
|
45
|
+
indexedDimValIds = _ref$indexedDimValIds === void 0 ? {} : _ref$indexedDimValIds,
|
|
47
46
|
cellHandler = _ref.cellHandler,
|
|
48
47
|
activeCellHandler = _ref.activeCellHandler,
|
|
49
48
|
isActive = _ref.isActive,
|
|
50
49
|
isHighlight = _ref.isHighlight;
|
|
51
|
-
|
|
52
50
|
var classes = useStyles();
|
|
53
51
|
var hasFlag = R.not(R.isEmpty(flags));
|
|
54
|
-
var uiValue = R.is(Function, cellHandler) && !R.isEmpty(indexedDimValIds) ? React.createElement(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
className: classes.link
|
|
52
|
+
var uiValue = R.is(Function, cellHandler) && !R.isEmpty(indexedDimValIds) ? /*#__PURE__*/React.createElement(Link, {
|
|
53
|
+
component: "button",
|
|
54
|
+
variant: "body1",
|
|
55
|
+
color: "inherit",
|
|
56
|
+
underline: "always",
|
|
57
|
+
onClick: function onClick() {
|
|
58
|
+
return cellHandler({
|
|
59
|
+
indexedDimValIds: indexedDimValIds
|
|
60
|
+
});
|
|
65
61
|
},
|
|
66
|
-
|
|
67
|
-
) : value;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
uiValue
|
|
85
|
-
)
|
|
86
|
-
)
|
|
87
|
-
);
|
|
62
|
+
className: classes.link
|
|
63
|
+
}, value) : value;
|
|
64
|
+
return /*#__PURE__*/React.createElement(TableCell, {
|
|
65
|
+
component: isOne ? 'div' : undefined,
|
|
66
|
+
className: cx(classes.cell, (_cx = {}, _cx[classes.oneCell] = isOne, _cx[classes.active] = isActive, _cx[classes.highlight] = isHighlight, _cx)),
|
|
67
|
+
headers: headers,
|
|
68
|
+
onClick: activeCellHandler
|
|
69
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
style: {
|
|
71
|
+
textAlign: 'right'
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
74
|
+
variant: "body1",
|
|
75
|
+
tabIndex: 0,
|
|
76
|
+
noWrap: hasFlag
|
|
77
|
+
}, hasFlag && /*#__PURE__*/React.createElement(Flags, {
|
|
78
|
+
flags: flags
|
|
79
|
+
}), uiValue)));
|
|
88
80
|
};
|
|
89
81
|
|
|
90
|
-
Cell.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
91
|
-
flags: PropTypes.array,
|
|
92
|
-
isOne: PropTypes.bool,
|
|
93
|
-
value: PropTypes.string,
|
|
94
|
-
headers: PropTypes.string,
|
|
95
|
-
indexedDimValIds: PropTypes.object,
|
|
96
|
-
cellHandler: PropTypes.func,
|
|
97
|
-
isActive: PropTypes.bool,
|
|
98
|
-
isHighlight: PropTypes.bool,
|
|
99
|
-
activeCellHandler: PropTypes.func
|
|
100
|
-
} : {};
|
|
101
|
-
|
|
102
82
|
export default Cell;
|
package/es/TableHtml5/flags.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import React, { Fragment } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import * as R from 'ramda';
|
|
6
4
|
import cx from 'classnames';
|
|
7
5
|
import { makeStyles } from '@material-ui/core/styles';
|
|
8
6
|
import Typography from '@material-ui/core/Typography';
|
|
9
7
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
10
8
|
import { Asterisk } from '../';
|
|
11
|
-
|
|
12
9
|
var useStyles = makeStyles(function (theme) {
|
|
13
10
|
return {
|
|
14
11
|
content: _extends({
|
|
@@ -42,68 +39,42 @@ var Flags = function Flags(_ref) {
|
|
|
42
39
|
var _cx;
|
|
43
40
|
|
|
44
41
|
var _ref$flags = _ref.flags,
|
|
45
|
-
flags = _ref$flags ===
|
|
42
|
+
flags = _ref$flags === void 0 ? [] : _ref$flags,
|
|
46
43
|
isHeader = _ref.isHeader;
|
|
47
|
-
|
|
48
44
|
var classes = useStyles();
|
|
49
45
|
var noFlags = R.isNil(flags) || R.isEmpty(flags);
|
|
50
46
|
if (noFlags) return null;
|
|
51
|
-
|
|
52
47
|
var hasUncoded = R.any(R.complement(R.has('code')), flags);
|
|
53
48
|
var codedIcons = R.pipe(R.reduce(function (acc, flag) {
|
|
54
49
|
return R.when(R.always(R.has('code', flag)), R.append(flag.code))(acc);
|
|
55
50
|
}, []), R.join(','))(flags);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
React.Fragment,
|
|
84
|
-
null,
|
|
85
|
-
','
|
|
86
|
-
),
|
|
87
|
-
hasUncoded && React.createElement(
|
|
88
|
-
Fragment,
|
|
89
|
-
null,
|
|
90
|
-
React.createElement(Asterisk, { className: classes.svg, style: { fontSize: 11 } }),
|
|
91
|
-
React.createElement(
|
|
92
|
-
Typography,
|
|
93
|
-
{ variant: 'srOnly' },
|
|
94
|
-
'* ' + R.addIndex(R.map)(function (_ref3) {
|
|
95
|
-
var label = _ref3.label;
|
|
96
|
-
return label;
|
|
97
|
-
}, flags)
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
)
|
|
101
|
-
);
|
|
51
|
+
var content = /*#__PURE__*/React.createElement("ul", {
|
|
52
|
+
className: classes.content
|
|
53
|
+
}, R.addIndex(R.map)(function (_ref2, index) {
|
|
54
|
+
var label = _ref2.label;
|
|
55
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
56
|
+
key: index
|
|
57
|
+
}, label);
|
|
58
|
+
}, flags));
|
|
59
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
60
|
+
tabIndex: 0,
|
|
61
|
+
"aria-label": R.pipe(R.pluck('label'), R.join(', '))(flags),
|
|
62
|
+
"aria-hidden": false,
|
|
63
|
+
title: content,
|
|
64
|
+
placement: "top"
|
|
65
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
66
|
+
className: cx(classes.flags, (_cx = {}, _cx[classes.header] = isHeader, _cx))
|
|
67
|
+
}, R.not(R.isEmpty(codedIcons)) && codedIcons, R.and(R.not(R.isEmpty(codedIcons)), hasUncoded) && /*#__PURE__*/React.createElement(React.Fragment, null, ","), hasUncoded && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Asterisk, {
|
|
68
|
+
className: classes.svg,
|
|
69
|
+
style: {
|
|
70
|
+
fontSize: 11
|
|
71
|
+
}
|
|
72
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
73
|
+
variant: "srOnly"
|
|
74
|
+
}, "* " + R.addIndex(R.map)(function (_ref3) {
|
|
75
|
+
var label = _ref3.label;
|
|
76
|
+
return label;
|
|
77
|
+
}, flags)))));
|
|
102
78
|
};
|
|
103
79
|
|
|
104
|
-
Flags.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
105
|
-
flags: PropTypes.array,
|
|
106
|
-
isHeader: PropTypes.bool
|
|
107
|
-
} : {};
|
|
108
|
-
|
|
109
80
|
export default Flags;
|
package/es/TableHtml5/header.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import cx from 'classnames';
|
|
5
4
|
import Typography from '@material-ui/core/Typography';
|
|
6
5
|
import { makeStyles } from '@material-ui/core/styles';
|
|
7
6
|
import TableCell from '@material-ui/core/TableCell';
|
|
8
7
|
import TableRow from '@material-ui/core/TableRow';
|
|
9
8
|
import Flags from './flags';
|
|
10
|
-
|
|
11
9
|
var useStyles = makeStyles(function (theme) {
|
|
12
10
|
return {
|
|
13
11
|
tableHeadCell: {
|
|
14
12
|
color: theme.palette.getContrastText(theme.palette.primary.main),
|
|
15
13
|
backgroundColor: theme.palette.primary.main,
|
|
16
14
|
border: 'inherit',
|
|
17
|
-
borderBottom:
|
|
18
|
-
borderRight:
|
|
19
|
-
padding: theme.spacing(0.5) +
|
|
15
|
+
borderBottom: "1px solid " + theme.palette.grey[500],
|
|
16
|
+
borderRight: "1px solid " + theme.palette.grey[500],
|
|
17
|
+
padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
|
|
20
18
|
verticalAlign: 'middle',
|
|
21
19
|
'&:focus ': {
|
|
22
20
|
opacity: '.85'
|
|
@@ -46,7 +44,6 @@ var useStyles = makeStyles(function (theme) {
|
|
|
46
44
|
}
|
|
47
45
|
};
|
|
48
46
|
});
|
|
49
|
-
|
|
50
47
|
var timesIndexed = R.addIndex(R.times);
|
|
51
48
|
var mapIndexed = R.addIndex(R.map);
|
|
52
49
|
|
|
@@ -54,74 +51,59 @@ var Header = function Header(_ref) {
|
|
|
54
51
|
var headerData = _ref.headerData,
|
|
55
52
|
valuesHeaderData = _ref.valuesHeaderData,
|
|
56
53
|
xLayoutDataLength = _ref.xLayoutDataLength;
|
|
57
|
-
|
|
58
54
|
var classes = useStyles();
|
|
59
55
|
if (R.compose(R.anyPass([R.isNil, R.isEmpty]), R.path([0, 'data']))(headerData)) return null;
|
|
60
56
|
return timesIndexed(function (index) {
|
|
61
57
|
var _cx;
|
|
62
58
|
|
|
63
59
|
var flags = R.path([0, 'data', index, 'dimension', 'flags'], headerData);
|
|
64
|
-
var id =
|
|
65
|
-
return React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
mapIndexed(function (headerItem, idx) {
|
|
91
|
-
var _cx2;
|
|
60
|
+
var id = "header_" + index;
|
|
61
|
+
return /*#__PURE__*/React.createElement(TableRow, {
|
|
62
|
+
key: id
|
|
63
|
+
}, /*#__PURE__*/React.createElement(TableCell, {
|
|
64
|
+
component: "th",
|
|
65
|
+
padding: "none",
|
|
66
|
+
align: "center",
|
|
67
|
+
className: cx(classes.tableHeadCell, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx)),
|
|
68
|
+
colSpan: R.inc(xLayoutDataLength),
|
|
69
|
+
id: id,
|
|
70
|
+
tabIndex: 0,
|
|
71
|
+
style: {
|
|
72
|
+
position: 'sticky',
|
|
73
|
+
left: 0,
|
|
74
|
+
zIndex: 1
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: classes.cellContentRight
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
79
|
+
variant: "body1",
|
|
80
|
+
className: classes.cellLabelHeader
|
|
81
|
+
}, R.path([0, 'data', index, 'dimension', 'label'], headerData), /*#__PURE__*/React.createElement(Flags, {
|
|
82
|
+
flags: flags,
|
|
83
|
+
isHeader: true
|
|
84
|
+
})))), mapIndexed(function (headerItem, idx) {
|
|
85
|
+
var _cx2;
|
|
92
86
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
React.createElement(Flags, { flags: flags, isHeader: true })
|
|
113
|
-
)
|
|
114
|
-
)
|
|
115
|
-
);
|
|
116
|
-
}, R.nth(index, valuesHeaderData))
|
|
117
|
-
);
|
|
87
|
+
var flags = R.prop('flags', headerItem);
|
|
88
|
+
return /*#__PURE__*/React.createElement(TableCell, {
|
|
89
|
+
key: R.prop('id', headerItem) + "-" + idx,
|
|
90
|
+
component: "th",
|
|
91
|
+
className: cx(classes.tableHeadCell, (_cx2 = {}, _cx2[classes.topCell] = R.not(R.isEmpty(flags)), _cx2)),
|
|
92
|
+
id: idx + "_" + index,
|
|
93
|
+
headers: "header_" + index,
|
|
94
|
+
colSpan: R.prop('spanCount', headerItem),
|
|
95
|
+
tabIndex: 0
|
|
96
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: classes.cellContentCenter
|
|
98
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
99
|
+
className: classes.stickyLabel,
|
|
100
|
+
variant: "body1"
|
|
101
|
+
}, R.prop('label', headerItem), /*#__PURE__*/React.createElement(Flags, {
|
|
102
|
+
flags: flags,
|
|
103
|
+
isHeader: true
|
|
104
|
+
}))));
|
|
105
|
+
}, R.nth(index, valuesHeaderData)));
|
|
118
106
|
}, R.compose(R.length, R.pathOr([], [0, 'data']))(headerData));
|
|
119
107
|
};
|
|
120
108
|
|
|
121
|
-
Header.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
122
|
-
headerData: PropTypes.array,
|
|
123
|
-
valuesHeaderData: PropTypes.array,
|
|
124
|
-
xLayoutDataLength: PropTypes.number
|
|
125
|
-
} : {};
|
|
126
|
-
|
|
127
109
|
export default Header;
|
package/es/TableHtml5/index.js
CHANGED
package/es/TableHtml5/section.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import * as R from 'ramda';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
4
|
import cx from 'classnames';
|
|
7
5
|
import Typography from '@material-ui/core/Typography';
|
|
8
6
|
import { makeStyles } from '@material-ui/core/styles';
|
|
@@ -13,26 +11,25 @@ import SectionHeader from './sectionHeader';
|
|
|
13
11
|
import Cell from './cell';
|
|
14
12
|
import { getLight } from '../utils';
|
|
15
13
|
import Flags from './flags';
|
|
16
|
-
|
|
17
14
|
var useStyles = makeStyles(function (theme) {
|
|
18
15
|
return {
|
|
19
16
|
rowTitle: {
|
|
20
17
|
backgroundColor: getLight(theme) || theme.palette.secondary.light,
|
|
21
18
|
border: 'inherit',
|
|
22
|
-
borderBottom:
|
|
23
|
-
borderRight:
|
|
24
|
-
padding: theme.spacing(0.5) +
|
|
19
|
+
borderBottom: "1px solid " + theme.palette.grey[500],
|
|
20
|
+
borderRight: "1px solid " + theme.palette.grey[500],
|
|
21
|
+
padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px",
|
|
25
22
|
color: theme.palette.grey['A700'],
|
|
26
23
|
verticalAlign: 'middle'
|
|
27
24
|
},
|
|
28
25
|
fillerCell: {
|
|
29
|
-
|
|
26
|
+
minWidth: '30px',
|
|
30
27
|
backgroundColor: theme.palette.grey[200],
|
|
31
28
|
verticalAlign: 'top',
|
|
32
29
|
border: 'inherit',
|
|
33
|
-
borderBottom:
|
|
34
|
-
borderRight:
|
|
35
|
-
padding: theme.spacing(0.5) +
|
|
30
|
+
borderBottom: "1px solid " + theme.palette.grey[500],
|
|
31
|
+
borderRight: "1px solid " + theme.palette.grey[500],
|
|
32
|
+
padding: theme.spacing(0.5) + "px " + theme.spacing(1) + "px"
|
|
36
33
|
},
|
|
37
34
|
cellContent: {
|
|
38
35
|
display: 'flex',
|
|
@@ -64,123 +61,92 @@ var Section = function Section(_ref) {
|
|
|
64
61
|
activeCellIds = _ref.activeCellIds,
|
|
65
62
|
headerHeight = _ref.headerHeight,
|
|
66
63
|
sectionIndex = _ref.sectionIndex,
|
|
67
|
-
nbColumnsByRows = _ref.nbColumnsByRows
|
|
68
|
-
|
|
64
|
+
nbColumnsByRows = _ref.nbColumnsByRows,
|
|
65
|
+
subHeadCellsWidth = _ref.subHeadCellsWidth;
|
|
69
66
|
var classes = useStyles();
|
|
70
67
|
var currentSection = R.path([0, 'key'], section);
|
|
71
68
|
var headerNumberRows = R.length(nbColumnsByRows);
|
|
72
69
|
var maxColumns = R.last(nbColumnsByRows);
|
|
70
|
+
return /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(SectionHeader, {
|
|
71
|
+
headerData: headerData,
|
|
72
|
+
section: section,
|
|
73
|
+
currentSection: currentSection,
|
|
74
|
+
xLayoutDataLength: xLayoutDataLength,
|
|
75
|
+
headerHeight: headerHeight
|
|
76
|
+
}), R.map(function (sectionbody) {
|
|
77
|
+
var _cx2;
|
|
73
78
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
headerHeight: headerHeight
|
|
83
|
-
}),
|
|
84
|
-
R.map(function (sectionbody) {
|
|
85
|
-
var _cx2;
|
|
86
|
-
|
|
87
|
-
var rowId = sectionbody.key + '_' + sectionIndex;
|
|
88
|
-
var rowIds = R.pipe(R.map(function (index) {
|
|
89
|
-
return sectionbody.key + '_' + sectionIndex + '_' + index;
|
|
90
|
-
}), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
|
|
91
|
-
return React.createElement(
|
|
92
|
-
TableRow,
|
|
93
|
-
{ key: sectionbody.key },
|
|
94
|
-
mapIndexed(function (cell, index) {
|
|
95
|
-
var _cx;
|
|
79
|
+
var rowId = sectionbody.key + "_" + sectionIndex;
|
|
80
|
+
var rowIds = R.pipe(R.map(function (index) {
|
|
81
|
+
return sectionbody.key + "_" + sectionIndex + "_" + index;
|
|
82
|
+
}), R.join(' '))(R.times(R.identity, R.length(R.prop('data', sectionbody))));
|
|
83
|
+
return /*#__PURE__*/React.createElement(TableRow, {
|
|
84
|
+
key: sectionbody.key
|
|
85
|
+
}, mapIndexed(function (cell, index) {
|
|
86
|
+
var _cx;
|
|
96
87
|
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
var flags = R.path(['value', 'flags'], cell);
|
|
89
|
+
var id = rowId + "_" + index; // special space is used for hierarchy U+2007    
|
|
99
90
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
var hierarchySpace = R.pipe(R.pathOr([], ['value', 'parents']), R.when(R.isNil, R.always([])), R.length, // eslint-disable-next-line no-irregular-whitespace
|
|
92
|
+
R.times(function () {
|
|
93
|
+
return '· ';
|
|
94
|
+
}))(cell);
|
|
95
|
+
return /*#__PURE__*/React.createElement(TableCell, {
|
|
96
|
+
key: id,
|
|
97
|
+
className: cx(classes.rowTitle, (_cx = {}, _cx[classes.topCell] = R.not(R.isEmpty(flags)), _cx[classes.highlight] = R.prop(rowId)(activeCellIds), _cx)),
|
|
98
|
+
id: id,
|
|
99
|
+
headers: "subHeader_" + index + " " + currentSection,
|
|
100
|
+
component: "th",
|
|
101
|
+
style: {
|
|
102
|
+
position: 'sticky',
|
|
103
|
+
left: subHeadCellsWidth[index],
|
|
104
|
+
zIndex: 1
|
|
105
|
+
}
|
|
106
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: classes.cellContent
|
|
108
|
+
}, !R.isEmpty(hierarchySpace) && /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: classes.hierarchySpace
|
|
110
|
+
}, hierarchySpace), /*#__PURE__*/React.createElement(Typography, {
|
|
111
|
+
variant: "body1",
|
|
112
|
+
tabIndex: 0
|
|
113
|
+
}, R.path(['value', 'label'], cell), /*#__PURE__*/React.createElement(Flags, {
|
|
114
|
+
flags: flags
|
|
115
|
+
}))));
|
|
116
|
+
}, R.prop('data', sectionbody)), /*#__PURE__*/React.createElement(TableCell, {
|
|
117
|
+
className: cx(classes.fillerCell, (_cx2 = {}, _cx2[classes.highlight] = R.prop(rowId)(activeCellIds), _cx2)),
|
|
118
|
+
style: {
|
|
119
|
+
position: 'sticky',
|
|
120
|
+
left: R.last(subHeadCellsWidth)
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
className: classes.flagContainer
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Flags, {
|
|
125
|
+
flags: R.prop('flags', sectionbody)
|
|
126
|
+
}))), mapIndexed(function (item, columnIndex) {
|
|
127
|
+
var columnIds = R.pipe(R.times(R.identity), R.map(function (rowIndex) {
|
|
128
|
+
var columnId = R.divide(columnIndex, R.divide(maxColumns, R.nth(rowIndex, nbColumnsByRows)));
|
|
129
|
+
return Math.floor(columnId || 0) + "_" + rowIndex;
|
|
130
|
+
}), R.join(' '))(headerNumberRows);
|
|
131
|
+
var intersectionCellId = rowId + "/" + columnIndex;
|
|
132
|
+
var isActive = R.pipe(R.propOr({}, 'intersectionCellId'), R.equals(intersectionCellId))(activeCellIds);
|
|
133
|
+
return /*#__PURE__*/React.createElement(Cell, _extends({
|
|
134
|
+
key: intersectionCellId
|
|
135
|
+
}, R.pathOr({
|
|
136
|
+
value: '..'
|
|
137
|
+
}, [item.key, currentSection, sectionbody.key, 0], cells), {
|
|
138
|
+
headers: rowIds + " " + columnIds + " " + currentSection,
|
|
139
|
+
cellHandler: cellHandler,
|
|
140
|
+
isActive: isActive,
|
|
141
|
+
isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
|
|
142
|
+
activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
|
|
143
|
+
var _activeCellHandler;
|
|
106
144
|
|
|
107
|
-
return
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
id: id,
|
|
113
|
-
headers: 'subHeader_' + index + ' ' + currentSection,
|
|
114
|
-
component: 'th'
|
|
115
|
-
},
|
|
116
|
-
React.createElement(
|
|
117
|
-
'div',
|
|
118
|
-
{ className: classes.cellContent },
|
|
119
|
-
!R.isEmpty(hierarchySpace) && React.createElement(
|
|
120
|
-
'div',
|
|
121
|
-
{ className: classes.hierarchySpace },
|
|
122
|
-
hierarchySpace
|
|
123
|
-
),
|
|
124
|
-
React.createElement(
|
|
125
|
-
Typography,
|
|
126
|
-
{ variant: 'body1', tabIndex: 0 },
|
|
127
|
-
R.path(['value', 'label'], cell),
|
|
128
|
-
React.createElement(Flags, { flags: flags })
|
|
129
|
-
)
|
|
130
|
-
)
|
|
131
|
-
);
|
|
132
|
-
}, R.prop('data', sectionbody)),
|
|
133
|
-
React.createElement(
|
|
134
|
-
TableCell,
|
|
135
|
-
{
|
|
136
|
-
className: cx(classes.fillerCell, (_cx2 = {}, _cx2[classes.highlight] = R.prop(rowId)(activeCellIds), _cx2))
|
|
137
|
-
},
|
|
138
|
-
React.createElement(
|
|
139
|
-
'div',
|
|
140
|
-
{ className: classes.flagContainer },
|
|
141
|
-
React.createElement(Flags, { flags: R.prop('flags', sectionbody) })
|
|
142
|
-
)
|
|
143
|
-
),
|
|
144
|
-
mapIndexed(function (item, columnIndex) {
|
|
145
|
-
var columnIds = R.pipe(R.times(R.identity), R.map(function (rowIndex) {
|
|
146
|
-
var columnId = R.divide(columnIndex, R.divide(maxColumns, R.nth(rowIndex, nbColumnsByRows)));
|
|
147
|
-
return Math.floor(columnId || 0) + '_' + rowIndex;
|
|
148
|
-
}), R.join(' '))(headerNumberRows);
|
|
149
|
-
|
|
150
|
-
var intersectionCellId = rowId + '/' + columnIndex;
|
|
151
|
-
var isActive = R.pipe(R.propOr({}, 'intersectionCellId'), R.equals(intersectionCellId))(activeCellIds);
|
|
152
|
-
return React.createElement(Cell, _extends({
|
|
153
|
-
key: intersectionCellId
|
|
154
|
-
}, R.pathOr({ value: '..' }, [item.key, currentSection, sectionbody.key, 0], cells), {
|
|
155
|
-
headers: rowIds + ' ' + columnIds + ' ' + currentSection,
|
|
156
|
-
cellHandler: cellHandler,
|
|
157
|
-
isActive: isActive,
|
|
158
|
-
isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]),
|
|
159
|
-
activeCellHandler: R.is(Function)(activeCellHandler) ? function () {
|
|
160
|
-
var _activeCellHandler;
|
|
161
|
-
|
|
162
|
-
return activeCellHandler((_activeCellHandler = {}, _activeCellHandler[rowId] = R.not(isActive), _activeCellHandler[columnIndex] = R.not(isActive), _activeCellHandler.intersectionCellId = isActive ? null : intersectionCellId, _activeCellHandler));
|
|
163
|
-
} : null
|
|
164
|
-
}));
|
|
165
|
-
}, headerData)
|
|
166
|
-
);
|
|
167
|
-
}, R.nth(1, section))
|
|
168
|
-
);
|
|
145
|
+
return activeCellHandler((_activeCellHandler = {}, _activeCellHandler[rowId] = R.not(isActive), _activeCellHandler[columnIndex] = R.not(isActive), _activeCellHandler.intersectionCellId = isActive ? null : intersectionCellId, _activeCellHandler));
|
|
146
|
+
} : null
|
|
147
|
+
}));
|
|
148
|
+
}, headerData));
|
|
149
|
+
}, R.nth(1, section)));
|
|
169
150
|
};
|
|
170
151
|
|
|
171
|
-
Section.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
172
|
-
cells: PropTypes.object,
|
|
173
|
-
headerData: PropTypes.array,
|
|
174
|
-
section: PropTypes.array,
|
|
175
|
-
xLayoutDataLength: PropTypes.number,
|
|
176
|
-
cellHandler: PropTypes.func,
|
|
177
|
-
activeCellHandler: PropTypes.func,
|
|
178
|
-
activeCellIds: PropTypes.object,
|
|
179
|
-
headerHeight: PropTypes.number,
|
|
180
|
-
sectionIndex: PropTypes.number,
|
|
181
|
-
headerNumberRows: PropTypes.number,
|
|
182
|
-
nbColumnsByRows: PropTypes.array,
|
|
183
|
-
maxColumns: PropTypes.number
|
|
184
|
-
} : {};
|
|
185
|
-
|
|
186
152
|
export default Section;
|