orc-shared 5.10.2-dev.4 → 5.99.0-dev.2
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/dist/components/AppFrame/About.js +13 -13
- package/dist/components/AppFrame/Anchor.js +7 -7
- package/dist/components/AppFrame/AppFrame.js +3 -3
- package/dist/components/AppFrame/Help.js +4 -4
- package/dist/components/AppFrame/MenuItem.js +17 -26
- package/dist/components/AppFrame/Preferences.js +14 -14
- package/dist/components/AppFrame/Sidebar.js +6 -6
- package/dist/components/AppFrame/Topbar.js +6 -6
- package/dist/components/ApplicationModuleLoader.js +3 -2
- package/dist/components/Authenticate.js +29 -22
- package/dist/components/DropMenu/Menu.js +9 -9
- package/dist/components/ErrorPlaceholder.js +8 -24
- package/dist/components/Form/Field.js +4 -4
- package/dist/components/Form/Inputs/Button.js +2 -2
- package/dist/components/{IconButton.js → Form/Inputs/MultiSelector.js} +33 -31
- package/dist/components/Form/Inputs/index.js +1 -1
- package/dist/components/InternetExplorerWarningMessage.js +15 -15
- package/dist/components/LoadingIcon.js +38 -17
- package/dist/components/MaterialUI/DataDisplay/Modal.js +3 -3
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +4 -4
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/Table.js +2 -1
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -1
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +1 -1
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
- package/dist/components/MaterialUI/Inputs/DatePicker.js +1 -1
- package/dist/components/MaterialUI/Inputs/InputBase.js +20 -188
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/dist/components/MaterialUI/Inputs/Select.js +10 -0
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -1
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -1
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +2 -4
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -1
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +27 -42
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -1
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +3 -2
- package/dist/components/MaterialUI/muiThemes.js +2 -0
- package/dist/components/Provision.js +30 -13
- package/dist/components/Routing/SegmentPage.js +115 -56
- package/dist/components/Scope/ScopeNode.js +62 -57
- package/dist/components/Sidepanel.js +59 -23
- package/dist/components/Spritesheet.js +35 -17
- package/dist/components/Text.js +1 -60
- package/dist/components/ToastList.js +95 -64
- package/dist/components/Treeview/Branch.js +82 -20
- package/dist/components/Treeview/Label.js +108 -31
- package/dist/components/Treeview/Leaf.js +56 -12
- package/dist/components/Treeview/Node.js +22 -9
- package/dist/components/Treeview/index.js +7 -1
- package/dist/components/Treeview/settings.js +17 -6
- package/dist/utils/index.js +0 -4
- package/dist/utils/testUtils.js +1 -12
- package/dist/{components/Modal/Background.js → utils/toastHelper.js} +11 -14
- package/package.json +2 -2
- package/src/components/AppFrame/About.js +13 -13
- package/src/components/AppFrame/Anchor.js +7 -7
- package/src/components/AppFrame/AppFrame.js +3 -3
- package/src/components/AppFrame/Help.js +4 -4
- package/src/components/AppFrame/MenuItem.js +15 -23
- package/src/components/AppFrame/Preferences.js +14 -14
- package/src/components/AppFrame/Sidebar.js +6 -6
- package/src/components/AppFrame/Topbar.js +6 -6
- package/src/components/ApplicationModuleLoader.js +2 -2
- package/src/components/ApplicationModuleLoader.test.js +15 -28
- package/src/components/Authenticate.js +21 -23
- package/src/components/Authenticate.test.js +19 -27
- package/src/components/DropMenu/Menu.js +9 -9
- package/src/components/ErrorPlaceholder.js +4 -21
- package/src/components/ErrorPlaceholder.test.js +7 -14
- package/src/components/Form/Field.js +4 -4
- package/src/components/Form/InputField.test.js +2 -1
- package/src/components/Form/Inputs/Button.js +2 -2
- package/src/components/Form/Inputs/MultiSelector.js +23 -0
- package/src/components/Form/Inputs/MultiSelector.test.js +112 -0
- package/src/components/Form/Inputs/index.js +1 -1
- package/src/components/InternetExplorerWarningMessage.js +15 -15
- package/src/components/Loader.test.js +50 -59
- package/src/components/LoadingIcon.js +27 -14
- package/src/components/LoadingIcon.test.js +11 -15
- package/src/components/MaterialUI/DataDisplay/Modal.js +3 -3
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +3 -3
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.test.js +0 -74
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/Translations.test.js +6 -18
- package/src/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
- package/src/components/MaterialUI/DataDisplay/Table.js +6 -1
- package/src/components/MaterialUI/DataDisplay/Table.test.js +21 -1
- package/src/components/MaterialUI/DataDisplay/TableProps.js +2 -0
- package/src/components/MaterialUI/DataDisplay/TableProps.test.js +20 -2
- package/src/components/MaterialUI/DataDisplay/TransferList.js +1 -1
- package/src/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
- package/src/components/MaterialUI/Inputs/DatePicker.js +1 -1
- package/src/components/MaterialUI/Inputs/InputBase.js +31 -214
- package/src/components/MaterialUI/Inputs/InputBase.test.js +1 -460
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +1 -1
- package/src/components/MaterialUI/Inputs/Select.js +7 -0
- package/src/components/MaterialUI/Inputs/Select.test.js +45 -0
- package/src/components/MaterialUI/Inputs/SelectProps.js +2 -0
- package/src/components/MaterialUI/Inputs/SelectProps.test.js +2 -0
- package/src/components/MaterialUI/Inputs/Switch.js +1 -1
- package/src/components/MaterialUI/Navigation/DropDownMenu.js +2 -2
- package/src/components/MaterialUI/Navigation/DropDownMenu.test.js +5 -6
- package/src/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -2
- package/src/components/MaterialUI/ScopeSelector/TreeItem.js +8 -31
- package/src/components/MaterialUI/Surfaces/Paper.js +1 -1
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +2 -1
- package/src/components/MaterialUI/muiThemes.js +3 -0
- package/src/components/Navigation/Navigation.test.js +0 -5
- package/src/components/Navigation/useNavigationState.test.js +79 -222
- package/src/components/Provision.js +36 -42
- package/src/components/Provision.test.js +10 -26
- package/src/components/Routing/SegmentPage.js +68 -52
- package/src/components/Routing/SegmentPage.test.js +4 -12
- package/src/components/Scope/ScopeNode.js +44 -55
- package/src/components/Scope/ScopeNode.test.js +84 -163
- package/src/components/ScopeExtendedConfigurationLoader.test.js +1 -4
- package/src/components/Sidepanel.js +38 -32
- package/src/components/Sidepanel.test.js +54 -27
- package/src/components/Spritesheet.js +23 -21
- package/src/components/Spritesheet.test.js +10 -10
- package/src/components/Text.js +0 -49
- package/src/components/ToastList.js +79 -90
- package/src/components/ToastList.test.js +29 -103
- package/src/components/Treeview/Branch.js +65 -47
- package/src/components/Treeview/Branch.test.js +2 -43
- package/src/components/Treeview/Label.js +68 -54
- package/src/components/Treeview/Label.test.js +55 -63
- package/src/components/Treeview/Leaf.js +41 -22
- package/src/components/Treeview/Leaf.test.js +1 -15
- package/src/components/Treeview/Node.js +16 -9
- package/src/components/Treeview/Node.test.js +269 -200
- package/src/components/Treeview/Treeview.test.js +248 -248
- package/src/components/Treeview/index.js +6 -0
- package/src/components/Treeview/settings.js +10 -6
- package/src/utils/index.js +0 -4
- package/src/utils/testUtils.js +0 -10
- package/src/utils/testUtils.test.js +0 -68
- package/src/utils/toastHelper.js +8 -0
- package/src/utils/toastHelper.test.js +41 -0
- package/dist/components/Button.js +0 -70
- package/dist/components/CategoryList.js +0 -197
- package/dist/components/Checkbox.js +0 -103
- package/dist/components/Icon.js +0 -69
- package/dist/components/Input.js +0 -101
- package/dist/components/List/DataCell.js +0 -129
- package/dist/components/List/HeadCell.js +0 -125
- package/dist/components/List/HeadRow.js +0 -73
- package/dist/components/List/List.js +0 -274
- package/dist/components/List/Row.js +0 -109
- package/dist/components/List/enhanceColumnDefs.js +0 -111
- package/dist/components/List/index.js +0 -59
- package/dist/components/Modal/Dialog.js +0 -75
- package/dist/components/Modal/Wrapper.js +0 -69
- package/dist/components/Modal/index.js +0 -86
- package/dist/components/MultiSelector.js +0 -187
- package/dist/components/Navigation/Bar.js +0 -293
- package/dist/components/Navigation/Tab.js +0 -182
- package/dist/components/Placeholder.js +0 -114
- package/dist/components/Scope/Selector.js +0 -123
- package/dist/components/Selector.js +0 -185
- package/dist/components/Switch.js +0 -128
- package/dist/components/Toolbar.js +0 -227
- package/dist/components/Tooltip.js +0 -66
- package/dist/getTheme.js +0 -158
- package/dist/getThemeOverrides.js +0 -93
- package/dist/hocs/withAuthentication.js +0 -72
- package/dist/utils/styledPropFuncs.js +0 -88
- package/src/components/Button.js +0 -90
- package/src/components/Button.test.js +0 -49
- package/src/components/CategoryList.js +0 -140
- package/src/components/CategoryList.test.js +0 -667
- package/src/components/Checkbox.js +0 -63
- package/src/components/Checkbox.test.js +0 -122
- package/src/components/Icon.js +0 -18
- package/src/components/IconButton.js +0 -30
- package/src/components/IconButton.test.js +0 -61
- package/src/components/Input.js +0 -35
- package/src/components/Input.test.js +0 -34
- package/src/components/List/DataCell.js +0 -77
- package/src/components/List/DataCell.test.js +0 -357
- package/src/components/List/HeadCell.js +0 -105
- package/src/components/List/HeadCell.test.js +0 -331
- package/src/components/List/HeadRow.js +0 -21
- package/src/components/List/HeadRow.test.js +0 -27
- package/src/components/List/List.js +0 -162
- package/src/components/List/List.test.js +0 -705
- package/src/components/List/Row.js +0 -72
- package/src/components/List/Row.test.js +0 -194
- package/src/components/List/enhanceColumnDefs.js +0 -54
- package/src/components/List/enhanceColumnDefs.test.js +0 -179
- package/src/components/List/index.js +0 -6
- package/src/components/Modal/Background.js +0 -10
- package/src/components/Modal/Dialog.js +0 -27
- package/src/components/Modal/Dialog.test.js +0 -20
- package/src/components/Modal/Modal.test.js +0 -52
- package/src/components/Modal/Wrapper.js +0 -32
- package/src/components/Modal/Wrapper.test.js +0 -55
- package/src/components/Modal/index.js +0 -22
- package/src/components/MultiSelector.js +0 -104
- package/src/components/MultiSelector.test.js +0 -348
- package/src/components/Navigation/Bar.js +0 -212
- package/src/components/Navigation/Bar.test.js +0 -552
- package/src/components/Navigation/Tab.js +0 -156
- package/src/components/Navigation/Tab.test.js +0 -404
- package/src/components/Placeholder.js +0 -61
- package/src/components/Placeholder.test.js +0 -106
- package/src/components/Scope/Selector.js +0 -70
- package/src/components/Scope/Selector.test.js +0 -138
- package/src/components/Selector.js +0 -191
- package/src/components/Selector.test.js +0 -157
- package/src/components/Switch.js +0 -112
- package/src/components/Switch.test.js +0 -130
- package/src/components/Text.test.js +0 -132
- package/src/components/Toolbar.js +0 -178
- package/src/components/Toolbar.test.js +0 -478
- package/src/components/Tooltip.js +0 -51
- package/src/components/Tooltip.test.js +0 -21
- package/src/getTheme.js +0 -103
- package/src/getTheme.test.js +0 -92
- package/src/getThemeOverrides.js +0 -27
- package/src/hocs/withAuthentication.js +0 -18
- package/src/hocs/withAuthentication.test.js +0 -120
- package/src/utils/styledPropFuncs.js +0 -20
- package/src/utils/styledPropFuncs.test.js +0 -166
|
@@ -42,21 +42,21 @@ var ABOUT_NAME = exports.ABOUT_NAME = "__aboutBox";
|
|
|
42
42
|
var getModalRoot = function getModalRoot() {
|
|
43
43
|
return document.getElementById("modal");
|
|
44
44
|
};
|
|
45
|
-
var useStyles = (0, _styles.makeStyles)(function () {
|
|
45
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
46
46
|
return {
|
|
47
47
|
aboutBox: function aboutBox(props) {
|
|
48
48
|
return {
|
|
49
49
|
boxSizing: "border-box",
|
|
50
50
|
zIndex: 9999,
|
|
51
51
|
position: "absolute",
|
|
52
|
-
top: "calc(50% -
|
|
53
|
-
left: "calc(50% -
|
|
54
|
-
height:
|
|
55
|
-
width:
|
|
56
|
-
padding:
|
|
52
|
+
top: "calc(50% - ".concat(theme.spacing(21), ")"),
|
|
53
|
+
left: "calc(50% - ".concat(theme.spacing(21), ")"),
|
|
54
|
+
height: theme.spacing(42),
|
|
55
|
+
width: theme.spacing(42),
|
|
56
|
+
padding: theme.spacing(1.5, 2),
|
|
57
57
|
color: "#ffffff",
|
|
58
|
-
fontSize:
|
|
59
|
-
lineHeight:
|
|
58
|
+
fontSize: theme.spacing(1.3),
|
|
59
|
+
lineHeight: theme.spacing(1.6),
|
|
60
60
|
background: "#0a0a07 url(".concat(props.bgImage, ")"),
|
|
61
61
|
"&.enter-active": {
|
|
62
62
|
opacity: 1,
|
|
@@ -74,8 +74,8 @@ var useStyles = (0, _styles.makeStyles)(function () {
|
|
|
74
74
|
zIndex: 9999,
|
|
75
75
|
position: "absolute",
|
|
76
76
|
color: "#ffffff",
|
|
77
|
-
top:
|
|
78
|
-
right:
|
|
77
|
+
top: theme.spacing(1.5),
|
|
78
|
+
right: theme.spacing(2),
|
|
79
79
|
margin: "0",
|
|
80
80
|
cursor: "pointer",
|
|
81
81
|
opacity: "1",
|
|
@@ -88,13 +88,13 @@ var useStyles = (0, _styles.makeStyles)(function () {
|
|
|
88
88
|
textDecoration: "none"
|
|
89
89
|
},
|
|
90
90
|
aboutParagraph: {
|
|
91
|
-
marginTop:
|
|
91
|
+
marginTop: theme.spacing(2)
|
|
92
92
|
},
|
|
93
93
|
longAboutParagraph: function longAboutParagraph(props) {
|
|
94
94
|
var _props$lang;
|
|
95
95
|
return {
|
|
96
|
-
marginTop:
|
|
97
|
-
fontSize: (_props$lang = props.lang) != null && _props$lang.toLowerCase().startsWith("fr") ?
|
|
96
|
+
marginTop: theme.spacing(2),
|
|
97
|
+
fontSize: (_props$lang = props.lang) != null && _props$lang.toLowerCase().startsWith("fr") ? theme.spacing(1) : undefined
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
};
|
|
@@ -28,12 +28,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
28
28
|
cursor: "pointer",
|
|
29
29
|
boxSizing: "border-box",
|
|
30
30
|
fontFamily: theme.typography.button.fontFamily,
|
|
31
|
-
fontSize:
|
|
31
|
+
fontSize: theme.spacing(1.2),
|
|
32
32
|
textTransform: "uppercase",
|
|
33
|
-
height:
|
|
34
|
-
minWidth:
|
|
35
|
-
paddingTop:
|
|
36
|
-
paddingRight:
|
|
33
|
+
height: theme.spacing(4),
|
|
34
|
+
minWidth: theme.spacing(18),
|
|
35
|
+
paddingTop: theme.spacing(1.4),
|
|
36
|
+
paddingRight: theme.spacing(1.4),
|
|
37
37
|
color: props.open ? theme.palette.primary.light : theme.palette.text.disabled,
|
|
38
38
|
"&:hover": {
|
|
39
39
|
color: theme.palette.primary.light
|
|
@@ -42,8 +42,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
42
42
|
},
|
|
43
43
|
indicator: function indicator(props) {
|
|
44
44
|
return {
|
|
45
|
-
fontSize:
|
|
46
|
-
padding:
|
|
45
|
+
fontSize: theme.spacing(1.2),
|
|
46
|
+
padding: theme.spacing(0, 1.1),
|
|
47
47
|
color: props.open ? theme.palette.text.disabled : theme.palette.primary.light
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -65,15 +65,15 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
65
65
|
return {
|
|
66
66
|
overflow: "hidden",
|
|
67
67
|
backgroundColor: "white",
|
|
68
|
-
borderTopLeftRadius:
|
|
69
|
-
height: "calc(100% -
|
|
68
|
+
borderTopLeftRadius: theme.spacing(1),
|
|
69
|
+
height: "calc(100% - ".concat(theme.spacing(4), ")"),
|
|
70
70
|
position: "absolute",
|
|
71
71
|
bottom: 0,
|
|
72
72
|
right: 0,
|
|
73
73
|
display: "flex",
|
|
74
74
|
flexDirection: "column",
|
|
75
75
|
transition: "width 0.3s ease-out",
|
|
76
|
-
width: props.toggleOpen ? "calc(100% -
|
|
76
|
+
width: props.toggleOpen ? "calc(100% - ".concat(theme.spacing(20), ")") : "calc(100% - ".concat(theme.spacing(5), ")")
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -25,13 +25,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
25
25
|
return {
|
|
26
26
|
helpLink: {
|
|
27
27
|
fontFamily: theme.typography.button.fontFamily,
|
|
28
|
-
fontSize:
|
|
28
|
+
fontSize: theme.spacing(1.2),
|
|
29
29
|
textTransform: "uppercase",
|
|
30
30
|
color: theme.palette.grey.borders,
|
|
31
|
-
width:
|
|
31
|
+
width: theme.spacing(4),
|
|
32
32
|
cursor: "pointer",
|
|
33
|
-
paddingTop:
|
|
34
|
-
paddingRight:
|
|
33
|
+
paddingTop: theme.spacing(1.4),
|
|
34
|
+
paddingRight: theme.spacing(1),
|
|
35
35
|
textDecoration: "none",
|
|
36
36
|
"&:hover": {
|
|
37
37
|
color: theme.palette.primary.light
|
|
@@ -7,6 +7,7 @@ var _styles = require("@material-ui/core/styles");
|
|
|
7
7
|
var _reactRouterDom = require("react-router-dom");
|
|
8
8
|
var _reactIntl = require("react-intl");
|
|
9
9
|
var _Icon = _interopRequireDefault(require("../MaterialUI/DataDisplay/Icon"));
|
|
10
|
+
var _toastHelper = require("../../utils/toastHelper");
|
|
10
11
|
var _excluded = ["staticContext", "dispatch", "component"],
|
|
11
12
|
_excluded2 = ["open", "label", "icon", "alert", "isHidden", "href", "menuToggle", "active"];
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -29,22 +30,14 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
29
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30
31
|
return a;
|
|
31
32
|
};
|
|
32
|
-
var getToastColor = function getToastColor(theme, alertType) {
|
|
33
|
-
var toastBorderColors = {
|
|
34
|
-
error: theme.palette.error.main,
|
|
35
|
-
warn: theme.palette.warning.main,
|
|
36
|
-
confirm: theme.palette.success.main
|
|
37
|
-
};
|
|
38
|
-
return toastBorderColors[alertType] || "red";
|
|
39
|
-
};
|
|
40
33
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
41
34
|
return {
|
|
42
35
|
block: function block(props) {
|
|
43
36
|
return {
|
|
44
37
|
display: "block",
|
|
45
38
|
position: "relative",
|
|
46
|
-
padding:
|
|
47
|
-
marginBottom:
|
|
39
|
+
padding: theme.spacing(0, 1),
|
|
40
|
+
marginBottom: theme.spacing(3.5),
|
|
48
41
|
textDecoration: "none",
|
|
49
42
|
cursor: "pointer",
|
|
50
43
|
color: props.active ? theme.palette.primary.light : theme.palette.text.hint,
|
|
@@ -54,13 +47,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
54
47
|
};
|
|
55
48
|
},
|
|
56
49
|
alert: function alert(props) {
|
|
57
|
-
var toastColor = getToastColor(theme, props.alertType);
|
|
50
|
+
var toastColor = (0, _toastHelper.getToastColor)(theme, props.alertType);
|
|
58
51
|
return {
|
|
59
52
|
borderRadius: "50%",
|
|
60
|
-
border: "
|
|
53
|
+
border: "".concat(theme.spacing(0.4), " solid ").concat(toastColor),
|
|
61
54
|
position: "absolute",
|
|
62
55
|
top: 0,
|
|
63
|
-
left:
|
|
56
|
+
left: theme.spacing(2.7),
|
|
64
57
|
visibility: "hidden",
|
|
65
58
|
"&.show": {
|
|
66
59
|
visibility: "visible"
|
|
@@ -68,19 +61,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
68
61
|
};
|
|
69
62
|
},
|
|
70
63
|
alertMessage: function alertMessage(props) {
|
|
71
|
-
var toastColor = getToastColor(theme, props.alertType);
|
|
64
|
+
var toastColor = (0, _toastHelper.getToastColor)(theme, props.alertType);
|
|
72
65
|
return {
|
|
73
66
|
position: "absolute",
|
|
74
67
|
zIndex: 10000,
|
|
75
|
-
top: "calc(-
|
|
76
|
-
left:
|
|
68
|
+
top: "calc(".concat(theme.spacing(-1), " - 0.7em)"),
|
|
69
|
+
left: theme.spacing(2.2),
|
|
77
70
|
width: "max-content",
|
|
78
|
-
borderRadius:
|
|
79
|
-
padding:
|
|
80
|
-
boxShadow: "0
|
|
71
|
+
borderRadius: theme.spacing(0.5),
|
|
72
|
+
padding: theme.spacing(1, 1.5),
|
|
73
|
+
boxShadow: "".concat(theme.spacing(0, 0.2, 0.4, 0), " rgba(0, 0, 0, 0.5)"),
|
|
81
74
|
color: theme.palette.grey.light,
|
|
82
75
|
backgroundColor: toastColor,
|
|
83
|
-
fontSize:
|
|
76
|
+
fontSize: theme.spacing(1.1),
|
|
84
77
|
fontWeight: "bold",
|
|
85
78
|
lineHeight: 1.2,
|
|
86
79
|
transition: "transform 200ms cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 100ms 50ms ease-out",
|
|
@@ -89,7 +82,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
89
82
|
"&::before": {
|
|
90
83
|
content: "",
|
|
91
84
|
position: "absolute",
|
|
92
|
-
top: "calc(
|
|
85
|
+
top: "calc(".concat(theme.spacing(1), " + 0.2em)"),
|
|
93
86
|
left: "-0.9em",
|
|
94
87
|
border: "solid transparent",
|
|
95
88
|
borderWidth: "0.4em 0.9em 0.4em 0",
|
|
@@ -103,7 +96,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
103
96
|
},
|
|
104
97
|
menuIcon: function menuIcon(props) {
|
|
105
98
|
return {
|
|
106
|
-
fontSize:
|
|
99
|
+
fontSize: theme.spacing(2.4),
|
|
107
100
|
verticalAlign: "middle",
|
|
108
101
|
color: props.active ? theme.palette.primary.light : theme.palette.text.hint
|
|
109
102
|
};
|
|
@@ -111,10 +104,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
111
104
|
label: function label(props) {
|
|
112
105
|
return {
|
|
113
106
|
fontFamily: theme.typography.button.fontFamily,
|
|
114
|
-
fontSize:
|
|
107
|
+
fontSize: theme.spacing(1.3),
|
|
115
108
|
verticalAlign: "middle",
|
|
116
109
|
textTransform: "uppercase",
|
|
117
|
-
paddingLeft:
|
|
110
|
+
paddingLeft: theme.spacing(1),
|
|
118
111
|
transition: "opacity 0.3s ease-out",
|
|
119
112
|
opacity: props.showLabel ? 1 : 0
|
|
120
113
|
};
|
|
@@ -186,7 +179,6 @@ var _default3 = exports.default = _default2;
|
|
|
186
179
|
if (!reactHotLoader) {
|
|
187
180
|
return;
|
|
188
181
|
}
|
|
189
|
-
reactHotLoader.register(getToastColor, "getToastColor", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
190
182
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
191
183
|
reactHotLoader.register(FilteredLink, "FilteredLink", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
192
184
|
reactHotLoader.register(MenuItem, "MenuItem", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
@@ -203,7 +195,6 @@ var _default3 = exports.default = _default2;
|
|
|
203
195
|
if (!reactHotLoader) {
|
|
204
196
|
return;
|
|
205
197
|
}
|
|
206
|
-
reactHotLoader.register(getToastColor, "getToastColor", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
207
198
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
208
199
|
reactHotLoader.register(FilteredLink, "FilteredLink", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
209
200
|
reactHotLoader.register(MenuItem, "MenuItem", "/home/vsts/work/1/s/src/components/AppFrame/MenuItem.js");
|
|
@@ -50,19 +50,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
50
50
|
backgroundColor: "#f7f7f7",
|
|
51
51
|
borderLeft: "1px solid ".concat(theme.palette.grey.borders),
|
|
52
52
|
borderTop: "1px solid ".concat(theme.palette.grey.borders),
|
|
53
|
-
borderTopLeftRadius:
|
|
54
|
-
top:
|
|
55
|
-
boxShadow: "-
|
|
53
|
+
borderTopLeftRadius: theme.spacing(0.5),
|
|
54
|
+
top: theme.spacing(4),
|
|
55
|
+
boxShadow: "".concat(theme.spacing(-0.3, 0.2, 0.5, 0), " rgba(0, 0, 0, 0.2)"),
|
|
56
56
|
zIndex: 9998,
|
|
57
57
|
transition: "right 400ms ease-out"
|
|
58
58
|
},
|
|
59
59
|
header: {
|
|
60
60
|
flex: "0 0 auto",
|
|
61
61
|
borderBottom: "1px solid ".concat(theme.palette.grey.borders),
|
|
62
|
-
borderTopLeftRadius:
|
|
63
|
-
padding:
|
|
64
|
-
height:
|
|
65
|
-
fontSize:
|
|
62
|
+
borderTopLeftRadius: theme.spacing(0.5),
|
|
63
|
+
padding: theme.spacing(1.5, 3),
|
|
64
|
+
height: theme.spacing(1.8),
|
|
65
|
+
fontSize: theme.spacing(1.5),
|
|
66
66
|
fontFamily: theme.typography.button.fontFamily,
|
|
67
67
|
textTransform: "uppercase",
|
|
68
68
|
color: theme.palette.primary.main,
|
|
@@ -72,8 +72,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
72
72
|
flex: "1 1 auto",
|
|
73
73
|
display: "flex",
|
|
74
74
|
flexDirection: "column",
|
|
75
|
-
padding:
|
|
76
|
-
fontSize:
|
|
75
|
+
padding: theme.spacing(2, 3),
|
|
76
|
+
fontSize: theme.spacing(1.2)
|
|
77
77
|
},
|
|
78
78
|
footer: {
|
|
79
79
|
flex: "0 0 auto",
|
|
@@ -82,12 +82,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
82
82
|
justifyContent: "flex-end",
|
|
83
83
|
backgroundColor: "#ffffff",
|
|
84
84
|
borderTop: "1px solid ".concat(theme.palette.grey.borders),
|
|
85
|
-
paddingRight:
|
|
86
|
-
height:
|
|
85
|
+
paddingRight: theme.spacing(1),
|
|
86
|
+
height: theme.spacing(6)
|
|
87
87
|
},
|
|
88
88
|
prefButton: {
|
|
89
|
-
marginRight:
|
|
90
|
-
minWidth:
|
|
89
|
+
marginRight: theme.spacing(2),
|
|
90
|
+
minWidth: theme.spacing(11)
|
|
91
91
|
},
|
|
92
92
|
wrapper: {
|
|
93
93
|
display: "flex",
|
|
@@ -185,7 +185,7 @@ var Preferences = exports.Preferences = function Preferences() {
|
|
|
185
185
|
applicationSelectProps = _usePreferenceSetup.applicationSelectProps;
|
|
186
186
|
return /*#__PURE__*/_react.default.createElement(_Sidepanel.default, {
|
|
187
187
|
in: show,
|
|
188
|
-
|
|
188
|
+
widthSpacing: 38,
|
|
189
189
|
timeout: 400,
|
|
190
190
|
className: classes.prefPanel
|
|
191
191
|
}, /*#__PURE__*/_react.default.createElement(Wrapper, {
|
|
@@ -32,9 +32,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
32
32
|
return {
|
|
33
33
|
bar: {
|
|
34
34
|
boxSizing: "border-box",
|
|
35
|
-
paddingTop:
|
|
36
|
-
height: "calc(100% -
|
|
37
|
-
width:
|
|
35
|
+
paddingTop: theme.spacing(6),
|
|
36
|
+
height: "calc(100% - ".concat(theme.spacing(4), ")"),
|
|
37
|
+
width: theme.spacing(20),
|
|
38
38
|
display: "flex",
|
|
39
39
|
flexDirection: "column",
|
|
40
40
|
justifyContent: "flex-start",
|
|
@@ -42,9 +42,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
42
42
|
},
|
|
43
43
|
logoSvg: {
|
|
44
44
|
flex: "0 0 auto",
|
|
45
|
-
margin: "auto
|
|
46
|
-
height:
|
|
47
|
-
width:
|
|
45
|
+
margin: "auto ".concat(theme.spacing(1.25, 0.7)),
|
|
46
|
+
height: theme.spacing(2.5),
|
|
47
|
+
width: theme.spacing(2.5),
|
|
48
48
|
fillRule: "evenodd",
|
|
49
49
|
clipRule: "evenodd",
|
|
50
50
|
fill: "#666666"
|
|
@@ -48,7 +48,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
48
48
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
49
49
|
return {
|
|
50
50
|
wrapper: {
|
|
51
|
-
height:
|
|
51
|
+
height: theme.spacing(4),
|
|
52
52
|
color: theme.palette.text.hint,
|
|
53
53
|
display: "flex",
|
|
54
54
|
justifyContent: "space-between"
|
|
@@ -63,16 +63,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
63
63
|
backgroundColor: "#000000",
|
|
64
64
|
color: theme.palette.primary.light,
|
|
65
65
|
fontFamily: theme.typography.button.fontFamily,
|
|
66
|
-
fontSize:
|
|
66
|
+
fontSize: theme.spacing(1.4),
|
|
67
67
|
textTransform: "uppercase",
|
|
68
|
-
paddingRight:
|
|
69
|
-
paddingLeft:
|
|
68
|
+
paddingRight: theme.spacing(2),
|
|
69
|
+
paddingLeft: theme.spacing(0.6),
|
|
70
70
|
display: "flex",
|
|
71
71
|
alignItems: "center"
|
|
72
72
|
},
|
|
73
73
|
appLogo: {
|
|
74
|
-
height:
|
|
75
|
-
marginRight:
|
|
74
|
+
height: theme.spacing(3),
|
|
75
|
+
marginRight: theme.spacing(1)
|
|
76
76
|
},
|
|
77
77
|
qaContainerColor: {
|
|
78
78
|
backgroundColor: "#9F0F18",
|
|
@@ -6,9 +6,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
6
6
|
var _reactRedux = require("react-redux");
|
|
7
7
|
var _scopes = require("../actions/scopes");
|
|
8
8
|
var _settings = require("../selectors/settings");
|
|
9
|
-
var _Authenticate = require("./Authenticate");
|
|
10
9
|
var _constants = require("../constants");
|
|
11
10
|
var _modules = require("../actions/modules");
|
|
11
|
+
var _LoadingIcon = _interopRequireDefault(require("./LoadingIcon"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
15
|
(function () {
|
|
@@ -60,7 +61,7 @@ var ApplicationModuleLoader = function ApplicationModuleLoader(_ref) {
|
|
|
60
61
|
}, true);
|
|
61
62
|
var applicationModuleReady = scopeLoadedFromAllModules && defaultScope != null;
|
|
62
63
|
if (!applicationModuleReady) {
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingIcon.default, null);
|
|
64
65
|
}
|
|
65
66
|
return _react.default.Children.only(children);
|
|
66
67
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.useAuthenticationData = exports.default = exports.
|
|
4
|
+
exports.useAuthenticationData = exports.default = exports.Error = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var
|
|
6
|
+
var _styles = require("@material-ui/core/styles");
|
|
7
7
|
var _utils = require("../utils");
|
|
8
|
-
var _Placeholder = _interopRequireDefault(require("../components/Placeholder"));
|
|
9
8
|
var _reactRedux = require("react-redux");
|
|
10
9
|
var _authentication = require("../actions/authentication");
|
|
11
10
|
var _request = require("../reducers/request");
|
|
12
11
|
var _ApplicationModuleLoader = _interopRequireDefault(require("./ApplicationModuleLoader"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
var _LoadingIcon = _interopRequireDefault(require("./LoadingIcon"));
|
|
15
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
14
|
(function () {
|
|
17
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -27,6 +25,16 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
27
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
26
|
return a;
|
|
29
27
|
};
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)({
|
|
29
|
+
wrapper: {
|
|
30
|
+
display: "flex",
|
|
31
|
+
width: "60%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
padding: "0 20vw",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
justifyContent: "center"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
30
38
|
var useAuthenticationData = exports.useAuthenticationData = function useAuthenticationData() {
|
|
31
39
|
return {
|
|
32
40
|
loading: (0, _reactRedux.useSelector)(function (state) {
|
|
@@ -49,24 +57,25 @@ __signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{
|
|
|
49
57
|
__signature__(useAuthenticationData, "useSelector{}\nuseSelector{}\nuseSelector{}\nuseSelector{}", function () {
|
|
50
58
|
return [_reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
51
59
|
});
|
|
52
|
-
var Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
53
|
-
displayName: "Authenticate__Wrapper",
|
|
54
|
-
componentId: "sc-cw6rn1-0"
|
|
55
|
-
})(["display:flex;width:60%;height:100%;padding:0 20vw;flex-direction:column;justify-content:center;"]);
|
|
56
|
-
var Loader = exports.Loader = (0, _styledComponents.withTheme)(function (props) {
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(Wrapper, null, /*#__PURE__*/_react.default.createElement(_Placeholder.default, {
|
|
58
|
-
icon: (0, _utils.getThemeProp)(["icons", "loading"], "loading")(props),
|
|
59
|
-
animate: true
|
|
60
|
-
}));
|
|
61
|
-
});
|
|
62
60
|
var Error = exports.Error = function Error(_ref) {
|
|
63
61
|
var requestError = _ref.requestError,
|
|
64
62
|
needLogin = _ref.needLogin;
|
|
63
|
+
var classes = useStyles();
|
|
65
64
|
if (needLogin) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
+
className: classes.wrapper
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement("h1", null, "Not logged in"));
|
|
67
68
|
}
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
70
|
+
className: classes.wrapper
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement("h1", null, (0, _utils.safeGet)(requestError, "payload", "message") || "An error occurred"), "Last failing action: ", /*#__PURE__*/_react.default.createElement("pre", null, JSON.stringify(requestError, null, 2)));
|
|
69
72
|
};
|
|
73
|
+
__signature__(Error, "useStyles{classes}", function () {
|
|
74
|
+
return [useStyles];
|
|
75
|
+
});
|
|
76
|
+
__signature__(Error, "useStyles{classes}", function () {
|
|
77
|
+
return [useStyles];
|
|
78
|
+
});
|
|
70
79
|
var Authenticate = function Authenticate(_ref2) {
|
|
71
80
|
var children = _ref2.children;
|
|
72
81
|
var _useAuthenticationDat = useAuthenticationData(),
|
|
@@ -75,7 +84,7 @@ var Authenticate = function Authenticate(_ref2) {
|
|
|
75
84
|
requestError = _useAuthenticationDat.requestError,
|
|
76
85
|
needLogin = _useAuthenticationDat.needLogin;
|
|
77
86
|
if (loading) {
|
|
78
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingIcon.default, null);
|
|
79
88
|
}
|
|
80
89
|
if (!authedUser) {
|
|
81
90
|
return /*#__PURE__*/_react.default.createElement(Error, {
|
|
@@ -103,9 +112,8 @@ var _default3 = exports.default = _default2;
|
|
|
103
112
|
if (!reactHotLoader) {
|
|
104
113
|
return;
|
|
105
114
|
}
|
|
115
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
106
116
|
reactHotLoader.register(useAuthenticationData, "useAuthenticationData", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
107
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
108
|
-
reactHotLoader.register(Loader, "Loader", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
109
117
|
reactHotLoader.register(Error, "Error", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
110
118
|
reactHotLoader.register(Authenticate, "Authenticate", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
111
119
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
@@ -121,9 +129,8 @@ var _default3 = exports.default = _default2;
|
|
|
121
129
|
if (!reactHotLoader) {
|
|
122
130
|
return;
|
|
123
131
|
}
|
|
132
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
124
133
|
reactHotLoader.register(useAuthenticationData, "useAuthenticationData", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
125
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
126
|
-
reactHotLoader.register(Loader, "Loader", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
127
134
|
reactHotLoader.register(Error, "Error", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
128
135
|
reactHotLoader.register(Authenticate, "Authenticate", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
129
136
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Authenticate.js");
|
|
@@ -26,7 +26,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
26
26
|
drawer: {
|
|
27
27
|
position: "absolute",
|
|
28
28
|
zIndex: 19999,
|
|
29
|
-
margin:
|
|
29
|
+
margin: theme.spacing(0.4, 0, 0),
|
|
30
30
|
left: function left(props) {
|
|
31
31
|
return props.alignRight ? "auto" : "0";
|
|
32
32
|
},
|
|
@@ -47,19 +47,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
47
47
|
color: theme.palette.text.primary,
|
|
48
48
|
backgroundColor: "white",
|
|
49
49
|
border: "1px solid ".concat(theme.palette.text.hint),
|
|
50
|
-
borderRadius:
|
|
50
|
+
borderRadius: theme.spacing(0.5),
|
|
51
51
|
listStyleType: "none",
|
|
52
|
-
padding:
|
|
52
|
+
padding: theme.spacing(0.5, 0),
|
|
53
53
|
margin: "0",
|
|
54
54
|
fontFamily: "Open Sans, sans-serif",
|
|
55
|
-
fontSize:
|
|
55
|
+
fontSize: theme.spacing(1.2),
|
|
56
56
|
width: "max-content"
|
|
57
57
|
},
|
|
58
58
|
item: {
|
|
59
59
|
boxSizing: "border-box",
|
|
60
|
-
height:
|
|
61
|
-
minWidth:
|
|
62
|
-
padding:
|
|
60
|
+
height: theme.spacing(3),
|
|
61
|
+
minWidth: theme.spacing(17.8),
|
|
62
|
+
padding: theme.spacing(0.9, 1.2),
|
|
63
63
|
display: "flex",
|
|
64
64
|
alignItems: "center",
|
|
65
65
|
cursor: "pointer",
|
|
@@ -69,8 +69,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
itemIcon: {
|
|
72
|
-
paddingRight:
|
|
73
|
-
fontSize:
|
|
72
|
+
paddingRight: theme.spacing(1.1),
|
|
73
|
+
fontSize: theme.spacing(1.7)
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
});
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default =
|
|
4
|
+
exports.default = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var
|
|
7
|
-
var _utils = require("../utils");
|
|
8
|
-
var _Placeholder = _interopRequireDefault(require("./Placeholder"));
|
|
9
|
-
var _excluded = ["message", "description", "onClick"];
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
6
|
+
var _Placeholder = _interopRequireDefault(require("./MaterialUI/DataDisplay/PredefinedElements/Placeholder"));
|
|
12
7
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
8
|
(function () {
|
|
14
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -18,31 +13,22 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
23
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
17
|
return a;
|
|
25
18
|
};
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
var
|
|
30
|
-
displayName: "ErrorPlaceholder__Wrapper",
|
|
31
|
-
componentId: "sc-1qmr4g4-0"
|
|
32
|
-
})(["display:flex;width:60%;height:100%;padding:0 20vw;flex-direction:column;justify-content:center;"]);
|
|
33
|
-
var ErrorPlaceholder = (0, _styledComponents.withTheme)(function (_ref) {
|
|
22
|
+
var ErrorPlaceholder = function ErrorPlaceholder(_ref) {
|
|
34
23
|
var message = _ref.message,
|
|
35
|
-
description = _ref.description
|
|
36
|
-
onClick = _ref.onClick,
|
|
37
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
description = _ref.description;
|
|
38
25
|
return /*#__PURE__*/_react.default.createElement(_Placeholder.default, {
|
|
39
|
-
icon:
|
|
40
|
-
|
|
26
|
+
icon: "report-problem-triangle",
|
|
27
|
+
error: true,
|
|
41
28
|
title: message,
|
|
42
|
-
subtitle: description
|
|
43
|
-
onClick: onClick
|
|
29
|
+
subtitle: description
|
|
44
30
|
});
|
|
45
|
-
}
|
|
31
|
+
};
|
|
46
32
|
var _default = ErrorPlaceholder;
|
|
47
33
|
var _default2 = _default;
|
|
48
34
|
var _default3 = exports.default = _default2;
|
|
@@ -52,7 +38,6 @@ var _default3 = exports.default = _default2;
|
|
|
52
38
|
if (!reactHotLoader) {
|
|
53
39
|
return;
|
|
54
40
|
}
|
|
55
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
56
41
|
reactHotLoader.register(ErrorPlaceholder, "ErrorPlaceholder", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
57
42
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
58
43
|
})();
|
|
@@ -67,7 +52,6 @@ var _default3 = exports.default = _default2;
|
|
|
67
52
|
if (!reactHotLoader) {
|
|
68
53
|
return;
|
|
69
54
|
}
|
|
70
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
71
55
|
reactHotLoader.register(ErrorPlaceholder, "ErrorPlaceholder", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
72
56
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/ErrorPlaceholder.js");
|
|
73
57
|
})();
|
|
@@ -26,13 +26,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
26
26
|
flex: "0 1 auto",
|
|
27
27
|
display: "flex",
|
|
28
28
|
flexDirection: "column",
|
|
29
|
-
marginTop:
|
|
29
|
+
marginTop: theme.spacing(2),
|
|
30
30
|
position: "relative"
|
|
31
31
|
},
|
|
32
32
|
label: {
|
|
33
|
-
minHeight:
|
|
33
|
+
minHeight: theme.spacing(1.7),
|
|
34
34
|
color: theme.palette.text.hint,
|
|
35
|
-
marginBottom:
|
|
35
|
+
marginBottom: theme.spacing(1)
|
|
36
36
|
},
|
|
37
37
|
invalidLabel: {
|
|
38
38
|
color: theme.palette.error.main
|
|
@@ -41,7 +41,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
41
41
|
textAlign: "center"
|
|
42
42
|
},
|
|
43
43
|
labelOnly: {
|
|
44
|
-
marginBottom:
|
|
44
|
+
marginBottom: 0
|
|
45
45
|
},
|
|
46
46
|
requiredLabel: {
|
|
47
47
|
"&::after": {
|