@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/ApiQueries/Query.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import Typography from '@material-ui/core/Typography';
|
|
5
4
|
import TextareaAutosize from '@material-ui/core/TextareaAutosize';
|
|
6
5
|
import Grid from '@material-ui/core/Grid';
|
|
7
6
|
import { makeStyles } from '@material-ui/core/styles';
|
|
8
7
|
import { Button } from '../';
|
|
9
|
-
|
|
10
8
|
var useStyles = makeStyles(function (theme) {
|
|
11
9
|
return {
|
|
12
10
|
header: {
|
|
@@ -27,7 +25,6 @@ var Query = function Query(_ref) {
|
|
|
27
25
|
selectedId = _ref.selectedId,
|
|
28
26
|
labels = _ref.labels,
|
|
29
27
|
delay = _ref.delay;
|
|
30
|
-
|
|
31
28
|
var classes = useStyles();
|
|
32
29
|
var ref = React.useRef();
|
|
33
30
|
|
|
@@ -51,110 +48,73 @@ var Query = function Query(_ref) {
|
|
|
51
48
|
}, delay);
|
|
52
49
|
}
|
|
53
50
|
};
|
|
51
|
+
|
|
54
52
|
var labelActionCopy = isCopied ? R.prop('copied')(labels) : R.prop('copy')(labels);
|
|
55
|
-
return React.createElement(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
53
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
54
|
+
item: true,
|
|
55
|
+
xs: 12,
|
|
56
|
+
md: 6,
|
|
57
|
+
container: true
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
59
|
+
item: true,
|
|
60
|
+
container: true,
|
|
61
|
+
justifyContent: "space-between",
|
|
62
|
+
alignItems: "flex-start",
|
|
63
|
+
className: classes.header
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
65
|
+
item: true
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
67
|
+
className: classes.title,
|
|
68
|
+
variant: "h6"
|
|
69
|
+
}, title)), R.pipe(R.length, R.flip(R.gt)(1))(contents) && /*#__PURE__*/React.createElement(Grid, {
|
|
70
|
+
container: true,
|
|
71
|
+
alignItems: "center"
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
73
|
+
item: true
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
75
|
+
variant: "body2"
|
|
76
|
+
}, labels.buttonsLabel, ":\xA0")), /*#__PURE__*/React.createElement(Grid, {
|
|
77
|
+
item: true
|
|
78
|
+
}, R.map(function (_ref2) {
|
|
79
|
+
var id = _ref2.id,
|
|
80
|
+
label = _ref2.label;
|
|
81
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
82
|
+
"aria-label": label,
|
|
83
|
+
"aria-pressed": R.equals(value, id),
|
|
84
|
+
key: id,
|
|
85
|
+
size: "small",
|
|
86
|
+
variant: "text",
|
|
87
|
+
color: "primary",
|
|
88
|
+
onClick: function onClick() {
|
|
89
|
+
return setSelected(id);
|
|
66
90
|
},
|
|
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
|
-
label = _ref2.label;
|
|
95
|
-
return React.createElement(
|
|
96
|
-
Button,
|
|
97
|
-
{
|
|
98
|
-
'aria-label': label,
|
|
99
|
-
'aria-pressed': R.equals(value, id),
|
|
100
|
-
key: id,
|
|
101
|
-
size: 'small',
|
|
102
|
-
variant: 'text',
|
|
103
|
-
color: 'primary',
|
|
104
|
-
onClick: function onClick() {
|
|
105
|
-
return setSelected(id);
|
|
106
|
-
},
|
|
107
|
-
selected: R.equals(value, id)
|
|
108
|
-
},
|
|
109
|
-
label
|
|
110
|
-
);
|
|
111
|
-
})(contents)
|
|
112
|
-
)
|
|
113
|
-
)
|
|
114
|
-
),
|
|
115
|
-
React.createElement(
|
|
116
|
-
Grid,
|
|
117
|
-
{ item: true, container: true, xs: 12, style: { alignSelf: 'flex-end' }, justifyContent: 'flex-end' },
|
|
118
|
-
React.createElement(TextareaAutosize, {
|
|
119
|
-
ref: ref,
|
|
120
|
-
'aria-label': title,
|
|
121
|
-
className: classes.textarea,
|
|
122
|
-
minRows: 5,
|
|
123
|
-
maxRows: 5,
|
|
124
|
-
readOnly: true,
|
|
125
|
-
value: contentValue
|
|
126
|
-
}),
|
|
127
|
-
React.createElement(
|
|
128
|
-
Button,
|
|
129
|
-
{
|
|
130
|
-
'aria-label': labelActionCopy,
|
|
131
|
-
size: 'small',
|
|
132
|
-
variant: 'contained',
|
|
133
|
-
alternative: 'siscc',
|
|
134
|
-
color: 'primary',
|
|
135
|
-
onClick: copyToClipboard,
|
|
136
|
-
className: classes.sisccButton
|
|
137
|
-
},
|
|
138
|
-
labelActionCopy
|
|
139
|
-
)
|
|
140
|
-
)
|
|
141
|
-
);
|
|
91
|
+
selected: R.equals(value, id)
|
|
92
|
+
}, label);
|
|
93
|
+
})(contents)))), /*#__PURE__*/React.createElement(Grid, {
|
|
94
|
+
item: true,
|
|
95
|
+
container: true,
|
|
96
|
+
xs: 12,
|
|
97
|
+
style: {
|
|
98
|
+
alignSelf: 'flex-end'
|
|
99
|
+
},
|
|
100
|
+
justifyContent: "flex-end"
|
|
101
|
+
}, /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
102
|
+
ref: ref,
|
|
103
|
+
"aria-label": title,
|
|
104
|
+
className: classes.textarea,
|
|
105
|
+
minRows: 5,
|
|
106
|
+
maxRows: 5,
|
|
107
|
+
readOnly: true,
|
|
108
|
+
value: contentValue
|
|
109
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
110
|
+
"aria-label": labelActionCopy,
|
|
111
|
+
size: "small",
|
|
112
|
+
variant: "contained",
|
|
113
|
+
alternative: "siscc",
|
|
114
|
+
color: "primary",
|
|
115
|
+
onClick: copyToClipboard,
|
|
116
|
+
className: classes.sisccButton
|
|
117
|
+
}, labelActionCopy)));
|
|
142
118
|
};
|
|
143
119
|
|
|
144
|
-
Query.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
145
|
-
labels: PropTypes.shape({
|
|
146
|
-
copy: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
147
|
-
copied: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
148
|
-
buttonsLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
149
|
-
}),
|
|
150
|
-
contents: PropTypes.arrayOf(PropTypes.shape({
|
|
151
|
-
id: PropTypes.string,
|
|
152
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
153
|
-
value: PropTypes.string
|
|
154
|
-
})),
|
|
155
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
156
|
-
selectedId: PropTypes.string,
|
|
157
|
-
delay: PropTypes.number
|
|
158
|
-
} : {};
|
|
159
|
-
|
|
160
120
|
export default Query;
|
package/es/ApiQueries/index.js
CHANGED
package/es/AuthDialog/index.js
CHANGED
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
* onSubmit: PropTypes.func.isRequired
|
|
21
21
|
* };
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
23
|
import React, { useState } from 'react';
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
24
|
import { isEmpty } from 'ramda';
|
|
27
25
|
import Button from '../Button';
|
|
28
26
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
@@ -33,7 +31,6 @@ import PersonIcon from '@material-ui/icons/Person';
|
|
|
33
31
|
import TextField from '@material-ui/core/TextField';
|
|
34
32
|
import Typography from '@material-ui/core/Typography';
|
|
35
33
|
import { makeStyles } from '@material-ui/core/styles';
|
|
36
|
-
|
|
37
34
|
var useStyles = makeStyles(function (theme) {
|
|
38
35
|
return {
|
|
39
36
|
header: {
|
|
@@ -78,7 +75,6 @@ var AuthDialog = function AuthDialog(_ref) {
|
|
|
78
75
|
labels = _ref.labels,
|
|
79
76
|
onClose = _ref.onClose,
|
|
80
77
|
onSubmit = _ref.onSubmit;
|
|
81
|
-
|
|
82
78
|
var classes = useStyles();
|
|
83
79
|
|
|
84
80
|
var _useState = useState(''),
|
|
@@ -95,6 +91,7 @@ var AuthDialog = function AuthDialog(_ref) {
|
|
|
95
91
|
|
|
96
92
|
var onChangeAnonymous = function onChangeAnonymous() {
|
|
97
93
|
setIsAnonymous(!isAnonymous);
|
|
94
|
+
|
|
98
95
|
if (!isAnonymous) {
|
|
99
96
|
setUser('');
|
|
100
97
|
setPassword('');
|
|
@@ -104,107 +101,69 @@ var AuthDialog = function AuthDialog(_ref) {
|
|
|
104
101
|
var canSubmit = isAnonymous || !isEmpty(user) && !isEmpty(password);
|
|
105
102
|
|
|
106
103
|
var onClickSubmit = function onClickSubmit() {
|
|
107
|
-
return onSubmit({
|
|
104
|
+
return onSubmit({
|
|
105
|
+
user: user,
|
|
106
|
+
password: password,
|
|
107
|
+
isAnonymous: isAnonymous
|
|
108
|
+
});
|
|
108
109
|
};
|
|
109
110
|
|
|
110
|
-
return React.createElement(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
onChange: function onChange(e) {
|
|
167
|
-
return setPassword(e.target.value);
|
|
168
|
-
},
|
|
169
|
-
disabled: isAnonymous,
|
|
170
|
-
type: 'password'
|
|
171
|
-
}),
|
|
172
|
-
React.createElement(
|
|
173
|
-
'div',
|
|
174
|
-
null,
|
|
175
|
-
React.createElement(Checkbox, { checked: isAnonymous, onChange: onChangeAnonymous }),
|
|
176
|
-
labels.anonymous
|
|
177
|
-
),
|
|
178
|
-
labels.error && React.createElement(
|
|
179
|
-
'div',
|
|
180
|
-
{ className: classes.error },
|
|
181
|
-
labels.error
|
|
182
|
-
),
|
|
183
|
-
React.createElement(
|
|
184
|
-
Button,
|
|
185
|
-
{ color: 'primary', disabled: !canSubmit, onClick: onClickSubmit, variant: 'contained' },
|
|
186
|
-
React.createElement(
|
|
187
|
-
'div',
|
|
188
|
-
{ style: { width: '100%' } },
|
|
189
|
-
labels.submit
|
|
190
|
-
)
|
|
191
|
-
)
|
|
192
|
-
)
|
|
193
|
-
);
|
|
111
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
|
112
|
+
open: isOpen,
|
|
113
|
+
onClose: onClose
|
|
114
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: classes.header
|
|
116
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: classes.headerLabel
|
|
118
|
+
}, /*#__PURE__*/React.createElement(PersonIcon, null), /*#__PURE__*/React.createElement(Typography, null, labels.header)), /*#__PURE__*/React.createElement(IconButton, {
|
|
119
|
+
className: classes.closeButton,
|
|
120
|
+
onClick: onClose
|
|
121
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null))), /*#__PURE__*/React.createElement("form", {
|
|
122
|
+
className: classes.content
|
|
123
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
124
|
+
htmlFor: "login"
|
|
125
|
+
}, labels.user), /*#__PURE__*/React.createElement(TextField, {
|
|
126
|
+
inputProps: {
|
|
127
|
+
className: classes.input,
|
|
128
|
+
id: 'login',
|
|
129
|
+
autoComplete: 'username',
|
|
130
|
+
name: 'username'
|
|
131
|
+
},
|
|
132
|
+
value: user,
|
|
133
|
+
onChange: function onChange(e) {
|
|
134
|
+
return setUser(e.target.value);
|
|
135
|
+
},
|
|
136
|
+
disabled: isAnonymous
|
|
137
|
+
}), /*#__PURE__*/React.createElement("label", {
|
|
138
|
+
htmlFor: "password"
|
|
139
|
+
}, labels.password), /*#__PURE__*/React.createElement(TextField, {
|
|
140
|
+
inputProps: {
|
|
141
|
+
className: classes.input,
|
|
142
|
+
id: 'password',
|
|
143
|
+
autoComplete: 'current-password',
|
|
144
|
+
name: 'password'
|
|
145
|
+
},
|
|
146
|
+
value: password,
|
|
147
|
+
onChange: function onChange(e) {
|
|
148
|
+
return setPassword(e.target.value);
|
|
149
|
+
},
|
|
150
|
+
disabled: isAnonymous,
|
|
151
|
+
type: "password"
|
|
152
|
+
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
153
|
+
checked: isAnonymous,
|
|
154
|
+
onChange: onChangeAnonymous
|
|
155
|
+
}), labels.anonymous), labels.error && /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: classes.error
|
|
157
|
+
}, labels.error), /*#__PURE__*/React.createElement(Button, {
|
|
158
|
+
color: "primary",
|
|
159
|
+
disabled: !canSubmit,
|
|
160
|
+
onClick: onClickSubmit,
|
|
161
|
+
variant: "contained"
|
|
162
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
163
|
+
style: {
|
|
164
|
+
width: '100%'
|
|
165
|
+
}
|
|
166
|
+
}, labels.submit))));
|
|
194
167
|
};
|
|
195
168
|
|
|
196
|
-
AuthDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
197
|
-
isOpen: PropTypes.bool,
|
|
198
|
-
labels: PropTypes.shape({
|
|
199
|
-
anonymous: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
200
|
-
error: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
201
|
-
header: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
202
|
-
password: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
203
|
-
user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
204
|
-
submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
205
|
-
}),
|
|
206
|
-
onClose: PropTypes.func.isRequired,
|
|
207
|
-
onSubmit: PropTypes.func.isRequired
|
|
208
|
-
} : {};
|
|
209
|
-
|
|
210
169
|
export default AuthDialog;
|
|
@@ -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 { makeStyles } from '@material-ui/core/styles';
|
|
5
4
|
import Breadcrumbs from '@material-ui/core/Breadcrumbs';
|
|
@@ -7,7 +6,6 @@ import Typography from '@material-ui/core/Typography';
|
|
|
7
6
|
import NavigateNextIcon from '@material-ui/icons/NavigateNext';
|
|
8
7
|
import NavigateBeforeIcon from '@material-ui/icons/NavigateBefore';
|
|
9
8
|
import cx from 'classnames';
|
|
10
|
-
|
|
11
9
|
var useStyles = makeStyles(function (theme) {
|
|
12
10
|
return {
|
|
13
11
|
action: {
|
|
@@ -28,45 +26,30 @@ var useStyles = makeStyles(function (theme) {
|
|
|
28
26
|
|
|
29
27
|
var CustomBreadcrumbs = function CustomBreadcrumbs(_ref) {
|
|
30
28
|
var _ref$items = _ref.items,
|
|
31
|
-
items = _ref$items ===
|
|
29
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
32
30
|
isRtl = _ref.isRtl;
|
|
33
|
-
|
|
34
31
|
var classes = useStyles();
|
|
32
|
+
return /*#__PURE__*/React.createElement(Breadcrumbs, {
|
|
33
|
+
separator: isRtl ? /*#__PURE__*/React.createElement(NavigateBeforeIcon, {
|
|
34
|
+
fontSize: "small"
|
|
35
|
+
}) : /*#__PURE__*/React.createElement(NavigateNextIcon, {
|
|
36
|
+
fontSize: "small"
|
|
37
|
+
}),
|
|
38
|
+
"aria-label": "breadcrumb"
|
|
39
|
+
}, R.addIndex(R.map)(function (_ref2, index) {
|
|
40
|
+
var _cx;
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
isDisabled = _ref2.isDisabled;
|
|
48
|
-
return React.createElement(
|
|
49
|
-
Typography,
|
|
50
|
-
{
|
|
51
|
-
key: text + '-' + index,
|
|
52
|
-
color: 'textPrimary',
|
|
53
|
-
onClick: action,
|
|
54
|
-
variant: 'subtitle1',
|
|
55
|
-
className: cx((_cx = {}, _cx[classes.action] = R.is(Function)(action), _cx[classes.disabled] = isDisabled, _cx))
|
|
56
|
-
},
|
|
57
|
-
text
|
|
58
|
-
);
|
|
59
|
-
})(items)
|
|
60
|
-
);
|
|
42
|
+
var text = _ref2.text,
|
|
43
|
+
action = _ref2.action,
|
|
44
|
+
isDisabled = _ref2.isDisabled;
|
|
45
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
46
|
+
key: text + "-" + index,
|
|
47
|
+
color: "textPrimary",
|
|
48
|
+
onClick: action,
|
|
49
|
+
variant: "subtitle1",
|
|
50
|
+
className: cx((_cx = {}, _cx[classes.action] = R.is(Function)(action), _cx[classes.disabled] = isDisabled, _cx))
|
|
51
|
+
}, text);
|
|
52
|
+
})(items));
|
|
61
53
|
};
|
|
62
54
|
|
|
63
|
-
CustomBreadcrumbs.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
64
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
|
65
|
-
text: PropTypes.string.isRequired,
|
|
66
|
-
action: PropTypes.func,
|
|
67
|
-
isDisabled: PropTypes.bool
|
|
68
|
-
})),
|
|
69
|
-
isRtl: PropTypes.bool
|
|
70
|
-
} : {};
|
|
71
|
-
|
|
72
55
|
export default CustomBreadcrumbs;
|
package/es/Breadcrumbs/index.js
CHANGED
package/es/Button/Button.js
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import _objectWithoutPropertiesLoose from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "/builds/sis-cc/.stat-suite/dotstatsuite-visions/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends";
|
|
3
|
+
var _excluded = ["className", "selected", "alternative"];
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import * as R from 'ramda';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
6
|
import cx from 'classnames';
|
|
9
7
|
import Button from '@material-ui/core/Button';
|
|
10
8
|
import { makeStyles } from '@material-ui/core/styles';
|
|
11
|
-
|
|
12
9
|
var useStyles = makeStyles(function (theme) {
|
|
13
10
|
var color1 = R.path(['palette', 'highlight', 'hl1'], theme) || theme.palette.primary.dark;
|
|
14
|
-
|
|
15
11
|
return {
|
|
16
12
|
defaultSelected: {
|
|
17
13
|
backgroundColor: theme.palette.action.hover,
|
|
18
14
|
'&:hover': {
|
|
19
|
-
backgroundColor: theme.palette.action.selected +
|
|
15
|
+
backgroundColor: theme.palette.action.selected + " !important"
|
|
20
16
|
}
|
|
21
17
|
},
|
|
22
18
|
sisccRoot: {
|
|
@@ -31,33 +27,20 @@ var useStyles = makeStyles(function (theme) {
|
|
|
31
27
|
}, R.path(['mixins', 'toggleButton', 'selected'])(theme))
|
|
32
28
|
};
|
|
33
29
|
});
|
|
34
|
-
|
|
35
30
|
var MyButton = React.forwardRef(function (_ref, ref) {
|
|
36
31
|
var _cx;
|
|
37
32
|
|
|
38
33
|
var className = _ref.className,
|
|
39
34
|
selected = _ref.selected,
|
|
40
35
|
_ref$alternative = _ref.alternative,
|
|
41
|
-
alternative = _ref$alternative ===
|
|
42
|
-
props =
|
|
36
|
+
alternative = _ref$alternative === void 0 ? 'default' : _ref$alternative,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
43
38
|
|
|
44
39
|
var classes = useStyles();
|
|
45
|
-
return React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
ref: ref
|
|
51
|
-
}, props),
|
|
52
|
-
props.children
|
|
53
|
-
);
|
|
40
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
41
|
+
className: cx(className, R.prop(alternative + "Root")(classes), (_cx = {}, _cx[R.prop(alternative + "Selected")(classes)] = selected, _cx)),
|
|
42
|
+
"aria-pressed": selected,
|
|
43
|
+
ref: ref
|
|
44
|
+
}, props), props.children);
|
|
54
45
|
});
|
|
55
|
-
|
|
56
|
-
MyButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
57
|
-
className: PropTypes.string,
|
|
58
|
-
alternative: PropTypes.string,
|
|
59
|
-
selected: PropTypes.bool,
|
|
60
|
-
children: PropTypes.node
|
|
61
|
-
} : {};
|
|
62
|
-
|
|
63
46
|
export default MyButton;
|