@sis-cc/dotstatsuite-visions 6.5.2 → 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 +62 -103
- 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 +61 -101
- package/es/CollapseButtons/Item.js +45 -70
- package/es/CollapseButtons/Paper.js +7 -21
- package/es/CollapseButtons/index.js +0 -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 +17 -29
- package/es/ToggleButton/index.js +0 -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 +2 -4
- package/es/theme.js +22 -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 +82 -137
- 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 +84 -134
- 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 +33 -55
- 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 +137 -304
- package/lib/theme.js +31 -17
- package/lib/utils.js +46 -31
- package/package.json +2 -10
package/es/ChartsConfig/Axis.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
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
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import * as R from 'ramda';
|
|
6
4
|
import Grid from '@material-ui/core/Grid';
|
|
7
5
|
import Input from '../DataEdit/Input';
|
|
@@ -17,80 +15,78 @@ var AxisConfig = function AxisConfig(_ref) {
|
|
|
17
15
|
min = _ref.min,
|
|
18
16
|
pivot = _ref.pivot,
|
|
19
17
|
step = _ref.step;
|
|
20
|
-
|
|
21
18
|
var classes = useStyles();
|
|
22
|
-
return React.createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
19
|
+
return /*#__PURE__*/React.createElement(ContainerTitle, {
|
|
20
|
+
variant: "grey",
|
|
21
|
+
icon: icon,
|
|
22
|
+
label: label,
|
|
23
|
+
gridItemProps: {
|
|
24
|
+
xs: 12
|
|
25
|
+
}
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
27
|
+
container: true,
|
|
28
|
+
spacing: 1
|
|
29
|
+
}, isActive(min) && /*#__PURE__*/React.createElement(Grid, {
|
|
30
|
+
item: true,
|
|
31
|
+
xs: 12,
|
|
32
|
+
sm: 12,
|
|
33
|
+
md: 6,
|
|
34
|
+
lg: 3,
|
|
35
|
+
className: classes.axis
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({}, min, {
|
|
37
|
+
value: R.when(R.isNil, R.always(''))(min.value),
|
|
38
|
+
type: "number",
|
|
39
|
+
label: R.prop('min', labels),
|
|
40
|
+
fullWidth: true,
|
|
41
|
+
InputProps: {
|
|
42
|
+
endAdornment: null
|
|
43
|
+
}
|
|
44
|
+
}))), isActive(max) && /*#__PURE__*/React.createElement(Grid, {
|
|
45
|
+
item: true,
|
|
46
|
+
xs: 12,
|
|
47
|
+
sm: 12,
|
|
48
|
+
md: 6,
|
|
49
|
+
lg: 3,
|
|
50
|
+
className: classes.axis
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({}, max, {
|
|
52
|
+
value: R.when(R.isNil, R.always(''))(max.value),
|
|
53
|
+
type: "number",
|
|
54
|
+
label: R.prop('max', labels),
|
|
55
|
+
fullWidth: true,
|
|
56
|
+
InputProps: {
|
|
57
|
+
endAdornment: null
|
|
58
|
+
}
|
|
59
|
+
}))), isActive(pivot) && /*#__PURE__*/React.createElement(Grid, {
|
|
60
|
+
item: true,
|
|
61
|
+
xs: 12,
|
|
62
|
+
sm: 12,
|
|
63
|
+
md: 6,
|
|
64
|
+
lg: 3,
|
|
65
|
+
className: classes.axis
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({}, pivot, {
|
|
67
|
+
value: R.when(R.isNil, R.always(''))(pivot.value),
|
|
68
|
+
type: "number",
|
|
69
|
+
label: R.prop('pivot', labels),
|
|
70
|
+
fullWidth: true,
|
|
71
|
+
InputProps: {
|
|
72
|
+
endAdornment: null
|
|
73
|
+
}
|
|
74
|
+
}))), isActive(step) && /*#__PURE__*/React.createElement(Grid, {
|
|
75
|
+
item: true,
|
|
76
|
+
xs: 12,
|
|
77
|
+
sm: 12,
|
|
78
|
+
md: 6,
|
|
79
|
+
lg: 3,
|
|
80
|
+
className: classes.axis
|
|
81
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({}, step, {
|
|
82
|
+
value: R.when(R.isNil, R.always(''))(step.value),
|
|
83
|
+
type: "number",
|
|
84
|
+
label: R.prop('step', labels),
|
|
85
|
+
fullWidth: true,
|
|
86
|
+
InputProps: {
|
|
87
|
+
endAdornment: null
|
|
88
|
+
}
|
|
89
|
+
})))));
|
|
82
90
|
};
|
|
83
91
|
|
|
84
|
-
AxisConfig.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
85
|
-
icon: PropTypes.node,
|
|
86
|
-
label: PropTypes.string,
|
|
87
|
-
labels: PropTypes.object,
|
|
88
|
-
max: PropTypes.object,
|
|
89
|
-
min: PropTypes.object,
|
|
90
|
-
pivot: PropTypes.object,
|
|
91
|
-
step: PropTypes.object,
|
|
92
|
-
hasOnSubmit: PropTypes.bool,
|
|
93
|
-
onChange: PropTypes.func
|
|
94
|
-
} : {};
|
|
95
|
-
|
|
96
92
|
export default AxisConfig;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import * as R from 'ramda';
|
|
4
3
|
import Grid from '@material-ui/core/Grid';
|
|
5
4
|
import Typography from '@material-ui/core/Typography';
|
|
@@ -11,56 +10,35 @@ var ButtonGroup = function ButtonGroup(_ref) {
|
|
|
11
10
|
onChange = _ref.onChange,
|
|
12
11
|
options = _ref.options,
|
|
13
12
|
value = _ref.value;
|
|
14
|
-
return React.createElement(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
color: 'primary'
|
|
44
|
-
},
|
|
45
|
-
React.createElement(
|
|
46
|
-
Typography,
|
|
47
|
-
{ variant: 'body2' },
|
|
48
|
-
R.prop(option.value, labels)
|
|
49
|
-
)
|
|
50
|
-
)
|
|
51
|
-
);
|
|
52
|
-
})(options)
|
|
53
|
-
)
|
|
54
|
-
)
|
|
55
|
-
);
|
|
13
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
14
|
+
container: true,
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
17
|
+
item: true,
|
|
18
|
+
xs: 6
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
20
|
+
variant: "body2"
|
|
21
|
+
}, label)), /*#__PURE__*/React.createElement(Grid, {
|
|
22
|
+
item: true,
|
|
23
|
+
xs: 6
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
25
|
+
container: true,
|
|
26
|
+
spacing: 1,
|
|
27
|
+
justifyContent: "flex-end"
|
|
28
|
+
}, R.map(function (option) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
30
|
+
item: true,
|
|
31
|
+
key: option.value
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
33
|
+
variant: option.value === value ? 'contained' : 'outlined',
|
|
34
|
+
onClick: function onClick() {
|
|
35
|
+
return onChange(option.value);
|
|
36
|
+
},
|
|
37
|
+
color: "primary"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
39
|
+
variant: "body2"
|
|
40
|
+
}, R.prop(option.value, labels))));
|
|
41
|
+
})(options))));
|
|
56
42
|
};
|
|
57
43
|
|
|
58
|
-
ButtonGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
|
-
label: PropTypes.string,
|
|
60
|
-
labels: PropTypes.object,
|
|
61
|
-
onChange: PropTypes.func,
|
|
62
|
-
options: PropTypes.array,
|
|
63
|
-
value: PropTypes.string
|
|
64
|
-
} : {};
|
|
65
|
-
|
|
66
44
|
export default ButtonGroup;
|
|
@@ -1,7 +1,5 @@
|
|
|
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 Grid from '@material-ui/core/Grid';
|
|
7
5
|
import Divider from '@material-ui/core/Divider';
|
|
@@ -21,196 +19,98 @@ import { withBlank } from '../utils';
|
|
|
21
19
|
var ChartsConfig = function ChartsConfig(_ref) {
|
|
22
20
|
var labels = _ref.labels,
|
|
23
21
|
properties = _ref.properties;
|
|
24
|
-
|
|
25
22
|
var classes = useStyles();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
React.createElement(AxisConfig, {
|
|
112
|
-
icon: React.createElement(ArrowUpwardIcon, null),
|
|
113
|
-
label: R.prop('axisY', labels),
|
|
114
|
-
labels: labels,
|
|
115
|
-
max: R.prop('maxY', properties),
|
|
116
|
-
min: R.prop('minY', properties),
|
|
117
|
-
pivot: R.prop('pivotY', properties),
|
|
118
|
-
step: R.prop('stepY', properties)
|
|
119
|
-
})
|
|
120
|
-
),
|
|
121
|
-
isActive(R.prop('display', properties)) && React.createElement(
|
|
122
|
-
Grid,
|
|
123
|
-
{ item: true, xs: 12, className: classes.gridItemSpace },
|
|
124
|
-
React.createElement(ButtonGroup, _extends({}, R.prop('display', properties), {
|
|
125
|
-
label: R.prop('display', labels),
|
|
126
|
-
labels: R.prop('displayOptions', labels)
|
|
127
|
-
}))
|
|
128
|
-
)
|
|
129
|
-
),
|
|
130
|
-
isActivePanel(['title', 'subtitle', 'source', 'logo', 'copyright'], properties) && React.createElement(
|
|
131
|
-
Fragment,
|
|
132
|
-
null,
|
|
133
|
-
React.createElement(Divider, { className: classes.divider }),
|
|
134
|
-
React.createElement(DataEdit, { labels: labels, properties: properties })
|
|
135
|
-
)
|
|
136
|
-
);
|
|
23
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
24
|
+
"data-testid": "charts-config-test-id",
|
|
25
|
+
spacing: 2,
|
|
26
|
+
container: true,
|
|
27
|
+
className: classes.root
|
|
28
|
+
}, isActivePanel(seriesProperties, properties) && /*#__PURE__*/React.createElement(Grid, {
|
|
29
|
+
item: true,
|
|
30
|
+
xs: 12,
|
|
31
|
+
sm: 12,
|
|
32
|
+
md: 12,
|
|
33
|
+
lg: isActivePanel(['highlight', 'baseline', 'width', 'height'], properties) ? 6 : 12
|
|
34
|
+
}, /*#__PURE__*/React.createElement(SeriesConfig, {
|
|
35
|
+
labels: labels,
|
|
36
|
+
properties: R.pick(seriesProperties, properties)
|
|
37
|
+
})), isActivePanel(['highlight', 'baseline', 'width', 'height'], properties) && /*#__PURE__*/React.createElement(Grid, {
|
|
38
|
+
item: true,
|
|
39
|
+
xs: 12,
|
|
40
|
+
sm: 12,
|
|
41
|
+
md: 12,
|
|
42
|
+
lg: isActivePanel(seriesProperties, properties) ? 6 : 12
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
44
|
+
container: true,
|
|
45
|
+
spacing: 2
|
|
46
|
+
}, isActivePanel(['highlight', 'baseline'], properties) && /*#__PURE__*/React.createElement(FocusConfig, {
|
|
47
|
+
baseline: R.prop('baseline', properties),
|
|
48
|
+
highlight: R.prop('highlight', properties),
|
|
49
|
+
labels: labels
|
|
50
|
+
}), isActivePanel(['width', 'height'], properties) && /*#__PURE__*/React.createElement(SizeConfig, {
|
|
51
|
+
height: R.prop('height', properties),
|
|
52
|
+
labels: labels,
|
|
53
|
+
width: R.prop('width', properties)
|
|
54
|
+
}))), /*#__PURE__*/React.createElement(Grid, {
|
|
55
|
+
container: true,
|
|
56
|
+
spacing: 2
|
|
57
|
+
}, isActivePanel(['maxX', 'minX', 'pivotX', 'stepX'], properties) && /*#__PURE__*/React.createElement(Grid, {
|
|
58
|
+
item: true,
|
|
59
|
+
xs: 12,
|
|
60
|
+
sm: 12,
|
|
61
|
+
md: 12,
|
|
62
|
+
lg: isActivePanel(['maxY', 'minY', 'pivotY', 'stepY'], properties) ? 6 : 12
|
|
63
|
+
}, /*#__PURE__*/React.createElement(AxisConfig, {
|
|
64
|
+
icon: /*#__PURE__*/React.createElement(ArrowForwardIcon, null),
|
|
65
|
+
label: R.prop('axisX', labels),
|
|
66
|
+
labels: labels,
|
|
67
|
+
max: R.prop('maxX', properties),
|
|
68
|
+
min: R.prop('minX', properties),
|
|
69
|
+
pivot: R.prop('pivotX', properties),
|
|
70
|
+
step: R.prop('stepX', properties)
|
|
71
|
+
})), isActivePanel(['freqStep'], properties) && /*#__PURE__*/React.createElement(Grid, {
|
|
72
|
+
item: true,
|
|
73
|
+
xs: 12,
|
|
74
|
+
sm: 12,
|
|
75
|
+
md: 12,
|
|
76
|
+
lg: isActivePanel(['maxY', 'minY', 'pivotY', 'stepY'], properties) ? 6 : 12
|
|
77
|
+
}, /*#__PURE__*/React.createElement(FrequencyConfig, {
|
|
78
|
+
freqStep: R.prop('freqStep', properties),
|
|
79
|
+
icon: /*#__PURE__*/React.createElement(ArrowForwardIcon, null),
|
|
80
|
+
labels: labels
|
|
81
|
+
})), isActivePanel(['maxY', 'minY', 'pivotY', 'stepY'], properties) && /*#__PURE__*/React.createElement(Grid, {
|
|
82
|
+
item: true,
|
|
83
|
+
xs: 12,
|
|
84
|
+
sm: 12,
|
|
85
|
+
md: 12,
|
|
86
|
+
lg: isActivePanel(['maxX', 'minX', 'pivotX', 'stepX', 'freqStep'], properties) ? 6 : 12
|
|
87
|
+
}, /*#__PURE__*/React.createElement(AxisConfig, {
|
|
88
|
+
icon: /*#__PURE__*/React.createElement(ArrowUpwardIcon, null),
|
|
89
|
+
label: R.prop('axisY', labels),
|
|
90
|
+
labels: labels,
|
|
91
|
+
max: R.prop('maxY', properties),
|
|
92
|
+
min: R.prop('minY', properties),
|
|
93
|
+
pivot: R.prop('pivotY', properties),
|
|
94
|
+
step: R.prop('stepY', properties)
|
|
95
|
+
})), isActive(R.prop('display', properties)) && /*#__PURE__*/React.createElement(Grid, {
|
|
96
|
+
item: true,
|
|
97
|
+
xs: 12,
|
|
98
|
+
className: classes.gridItemSpace
|
|
99
|
+
}, /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, R.prop('display', properties), {
|
|
100
|
+
label: R.prop('display', labels),
|
|
101
|
+
labels: R.prop('displayOptions', labels)
|
|
102
|
+
})))), isActivePanel(['title', 'subtitle', 'source', 'logo', 'copyright'], properties) && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
103
|
+
className: classes.divider
|
|
104
|
+
}), /*#__PURE__*/React.createElement(DataEdit, {
|
|
105
|
+
labels: labels,
|
|
106
|
+
properties: properties
|
|
107
|
+
})));
|
|
137
108
|
};
|
|
138
109
|
|
|
139
|
-
var submitableInputProptypes = PropTypes.shape({
|
|
140
|
-
id: PropTypes.string,
|
|
141
|
-
isActive: PropTypes.bool,
|
|
142
|
-
onSubmit: PropTypes.func,
|
|
143
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
var selectableInputProptypes = PropTypes.shape({
|
|
147
|
-
id: PropTypes.string,
|
|
148
|
-
isActive: PropTypes.bool,
|
|
149
|
-
onChange: PropTypes.func,
|
|
150
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
151
|
-
value: PropTypes.string,
|
|
152
|
-
label: PropTypes.string
|
|
153
|
-
})),
|
|
154
|
-
value: PropTypes.shape({
|
|
155
|
-
value: PropTypes.string,
|
|
156
|
-
label: PropTypes.string
|
|
157
|
-
})
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
var multiSelectableInputProptypes = PropTypes.shape({
|
|
161
|
-
id: PropTypes.string,
|
|
162
|
-
isActive: PropTypes.bool,
|
|
163
|
-
onChange: PropTypes.func,
|
|
164
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
165
|
-
value: PropTypes.string,
|
|
166
|
-
label: PropTypes.string
|
|
167
|
-
})),
|
|
168
|
-
value: PropTypes.arrayOf(PropTypes.shape({
|
|
169
|
-
value: PropTypes.string,
|
|
170
|
-
label: PropTypes.string
|
|
171
|
-
}))
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
ChartsConfig.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
175
|
-
labels: PropTypes.object,
|
|
176
|
-
properties: PropTypes.shape({
|
|
177
|
-
highlight: multiSelectableInputProptypes,
|
|
178
|
-
baseline: multiSelectableInputProptypes,
|
|
179
|
-
width: submitableInputProptypes,
|
|
180
|
-
height: submitableInputProptypes,
|
|
181
|
-
scatterDimension: selectableInputProptypes,
|
|
182
|
-
scatterX: selectableInputProptypes,
|
|
183
|
-
scatterY: selectableInputProptypes,
|
|
184
|
-
symbolDimension: selectableInputProptypes,
|
|
185
|
-
stackedDimension: selectableInputProptypes,
|
|
186
|
-
stackedMode: PropTypes.shape({
|
|
187
|
-
id: PropTypes.string,
|
|
188
|
-
isActive: PropTypes.bool,
|
|
189
|
-
onChange: PropTypes.func,
|
|
190
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
191
|
-
value: PropTypes.string
|
|
192
|
-
})),
|
|
193
|
-
value: PropTypes.string
|
|
194
|
-
}),
|
|
195
|
-
freqStep: submitableInputProptypes,
|
|
196
|
-
maxX: submitableInputProptypes,
|
|
197
|
-
minX: submitableInputProptypes,
|
|
198
|
-
pivotX: submitableInputProptypes,
|
|
199
|
-
stepX: submitableInputProptypes,
|
|
200
|
-
maxY: submitableInputProptypes,
|
|
201
|
-
minY: submitableInputProptypes,
|
|
202
|
-
pivotY: submitableInputProptypes,
|
|
203
|
-
stepY: submitableInputProptypes,
|
|
204
|
-
title: submitableInputProptypes,
|
|
205
|
-
subtitle: submitableInputProptypes,
|
|
206
|
-
source: submitableInputProptypes
|
|
207
|
-
})
|
|
208
|
-
} : {};
|
|
209
|
-
|
|
210
110
|
export default withBlank(function (_ref2) {
|
|
211
111
|
var isBlank = _ref2.isBlank,
|
|
212
112
|
_ref2$properties = _ref2.properties,
|
|
213
|
-
properties = _ref2$properties ===
|
|
113
|
+
properties = _ref2$properties === void 0 ? {} : _ref2$properties;
|
|
214
114
|
return {
|
|
215
115
|
isBlank: R.or(isBlank, R.isEmpty(properties))
|
|
216
116
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
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
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import * as R from 'ramda';
|
|
6
4
|
import cx from 'classnames';
|
|
7
5
|
import Grid from '@material-ui/core/Grid';
|
|
@@ -16,40 +14,21 @@ var ContainerTitle = function ContainerTitle(_ref) {
|
|
|
16
14
|
icon = _ref.icon,
|
|
17
15
|
label = _ref.label,
|
|
18
16
|
gridItemProps = _ref.gridItemProps;
|
|
19
|
-
|
|
20
17
|
var classes = useStyles();
|
|
21
|
-
return React.createElement(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
React.createElement(
|
|
36
|
-
Typography,
|
|
37
|
-
{ variant: 'h6', className: classes.title },
|
|
38
|
-
label
|
|
39
|
-
)
|
|
40
|
-
)
|
|
41
|
-
),
|
|
42
|
-
children
|
|
43
|
-
);
|
|
18
|
+
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
19
|
+
item: true
|
|
20
|
+
}, gridItemProps, {
|
|
21
|
+
className: cx((_cx = {}, _cx[classes.greyVariant] = R.equals(variant, 'grey'), _cx))
|
|
22
|
+
}), /*#__PURE__*/React.createElement(Grid, {
|
|
23
|
+
container: true
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
25
|
+
item: true,
|
|
26
|
+
xs: 12,
|
|
27
|
+
className: cx(classes.gridItemSpace, classes.containerTitle)
|
|
28
|
+
}, R.not(R.isNil(icon)) && icon, /*#__PURE__*/React.createElement(Typography, {
|
|
29
|
+
variant: "h6",
|
|
30
|
+
className: classes.title
|
|
31
|
+
}, label))), children);
|
|
44
32
|
};
|
|
45
33
|
|
|
46
|
-
ContainerTitle.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
47
|
-
label: PropTypes.string,
|
|
48
|
-
variant: PropTypes.string,
|
|
49
|
-
icon: PropTypes.node,
|
|
50
|
-
gridItemProps: PropTypes.object,
|
|
51
|
-
onSubmit: PropTypes.func,
|
|
52
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
|
|
53
|
-
} : {};
|
|
54
|
-
|
|
55
34
|
export default ContainerTitle;
|