orc-shared 5.99.0-dev.1 → 5.99.0-dev.10
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 +14 -14
- 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/DropMenu/Menu.js +9 -9
- package/dist/components/Form/Field.js +4 -4
- package/dist/components/Form/Inputs/Button.js +2 -2
- package/dist/components/Form/Inputs/MultiSelector.js +67 -12
- package/dist/components/Form/Inputs/Selector.js +13 -10
- package/dist/components/InternetExplorerWarningMessage.js +15 -15
- 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/PredefinedElements/TableInfoBar.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -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 +209 -24
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/dist/components/MaterialUI/Inputs/Select.js +170 -114
- package/dist/components/MaterialUI/Inputs/SelectProps.js +10 -2
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -1
- 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/muiThemes.js +1 -1
- package/dist/components/Routing/SegmentPage.js +9 -7
- package/dist/components/Scope/ScopeNode.js +7 -9
- package/dist/components/Sidepanel.js +29 -27
- package/dist/components/Spritesheet.js +17 -15
- package/dist/components/ToastList.js +11 -11
- package/dist/components/Treeview/Branch.js +9 -9
- package/dist/components/Treeview/Label.js +8 -8
- package/dist/components/Treeview/Leaf.js +2 -2
- package/dist/components/Treeview/settings.js +10 -1
- package/dist/hocs/withScrollBox.js +3 -8
- package/dist/hooks/useWindowSize.js +88 -0
- package/dist/sharedMessages.js +8 -0
- package/package.json +1 -1
- 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 +14 -14
- 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/DropMenu/Menu.js +9 -9
- package/src/components/Form/Field.js +4 -4
- package/src/components/Form/Inputs/Button.js +2 -2
- package/src/components/Form/Inputs/MultiSelector.js +55 -5
- package/src/components/Form/Inputs/MultiSelector.test.js +259 -39
- package/src/components/Form/Inputs/Selector.js +12 -4
- package/src/components/Form/Inputs/Selector.test.js +27 -12
- package/src/components/InternetExplorerWarningMessage.js +15 -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 +74 -0
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
- package/src/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
- 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 +209 -8
- package/src/components/MaterialUI/Inputs/InputBase.test.js +481 -3
- 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 +140 -87
- package/src/components/MaterialUI/Inputs/Select.test.js +170 -30
- package/src/components/MaterialUI/Inputs/SelectProps.js +9 -1
- package/src/components/MaterialUI/Inputs/SelectProps.test.js +8 -0
- package/src/components/MaterialUI/Inputs/Switch.js +1 -1
- 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/muiThemes.js +1 -1
- package/src/components/Routing/SegmentPage.js +7 -7
- package/src/components/Scope/ScopeNode.js +7 -8
- package/src/components/Sidepanel.js +7 -7
- package/src/components/Sidepanel.test.js +9 -4
- package/src/components/Spritesheet.js +5 -5
- package/src/components/ToastList.js +11 -11
- package/src/components/Treeview/Branch.js +10 -10
- package/src/components/Treeview/Branch.test.js +2 -40
- package/src/components/Treeview/Label.js +9 -9
- package/src/components/Treeview/Label.test.js +13 -3
- package/src/components/Treeview/Leaf.js +3 -3
- package/src/components/Treeview/Leaf.test.js +1 -20
- package/src/components/Treeview/settings.js +3 -0
- package/src/hocs/withScrollBox.js +2 -8
- package/src/hooks/useMultipleFieldEditState.test.js +0 -1
- package/src/hooks/useWindowSize.js +39 -0
- package/src/hooks/useWindowSize.test.js +68 -0
- package/src/sharedMessages.js +8 -0
- package/src/translations/en-US.json +2 -0
- package/src/translations/fr-CA.json +2 -0
|
@@ -29,10 +29,10 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
29
29
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
30
30
|
return {
|
|
31
31
|
scopeIcon: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
paddingRight: theme.spacing(0.8),
|
|
33
|
+
marginRight: theme.spacing(0),
|
|
34
|
+
height: theme.spacing(2),
|
|
35
|
+
width: theme.spacing(2)
|
|
36
36
|
},
|
|
37
37
|
scopeText: {
|
|
38
38
|
overflowWrap: "break-word"
|
|
@@ -42,9 +42,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
42
42
|
boxSizing: "border-box",
|
|
43
43
|
display: "flex",
|
|
44
44
|
alignItems: "center",
|
|
45
|
-
padding:
|
|
46
|
-
width: "100%"
|
|
47
|
-
textTransform: props.isGlobal ? "uppercase" : "none"
|
|
45
|
+
padding: theme.spacing(1),
|
|
46
|
+
width: "100%"
|
|
48
47
|
}, props.isClickable ? {
|
|
49
48
|
"&:hover": {
|
|
50
49
|
backgroundColor: "#222"
|
|
@@ -62,7 +61,6 @@ var ScopeNode = exports.ScopeNode = function ScopeNode(_ref) {
|
|
|
62
61
|
scopeId = _ref.scopeId,
|
|
63
62
|
name = _ref.name,
|
|
64
63
|
contentLabelClassName = _ref.contentLabelClassName,
|
|
65
|
-
iconClassName = _ref.iconClassName,
|
|
66
64
|
onClick = _ref.onClick,
|
|
67
65
|
children = _ref.children;
|
|
68
66
|
var classes = useStyles({
|
|
@@ -77,7 +75,7 @@ var ScopeNode = exports.ScopeNode = function ScopeNode(_ref) {
|
|
|
77
75
|
"data-qa": "content-label"
|
|
78
76
|
}, /*#__PURE__*/_react.default.createElement(_TreeItem.ScopeIcon, {
|
|
79
77
|
type: type,
|
|
80
|
-
|
|
78
|
+
scopeIconClass: classes.scopeIcon
|
|
81
79
|
}), displayValue && /*#__PURE__*/_react.default.createElement("div", {
|
|
82
80
|
className: classes.scopeText
|
|
83
81
|
}, displayValue), children);
|
|
@@ -25,41 +25,43 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
25
25
|
var getModalRoot = function getModalRoot() {
|
|
26
26
|
return document.getElementById("modal");
|
|
27
27
|
};
|
|
28
|
-
var useStyles = (0, _styles.makeStyles)({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
28
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
29
|
+
return {
|
|
30
|
+
panel: function panel(props) {
|
|
31
|
+
return {
|
|
32
|
+
position: "absolute",
|
|
33
|
+
top: 0,
|
|
34
|
+
bottom: 0,
|
|
35
|
+
right: 0,
|
|
36
|
+
width: theme.spacing(props.widthSpacing),
|
|
37
|
+
"&.enter": {
|
|
38
|
+
transform: "translateX(".concat(theme.spacing(props.widthSpacing), ")")
|
|
39
|
+
},
|
|
40
|
+
"&.enter-active": {
|
|
41
|
+
transform: "translateX(0)",
|
|
42
|
+
transition: "transform ".concat(props.timeout, "ms ease-out")
|
|
43
|
+
},
|
|
44
|
+
"&.exit": {
|
|
45
|
+
transform: "translateX(0)"
|
|
46
|
+
},
|
|
47
|
+
"&.exit-active": {
|
|
48
|
+
transform: "translateX(".concat(theme.spacing(props.widthSpacing), ")"),
|
|
49
|
+
transition: "transform ".concat(props.timeout, "ms ease-out")
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
52
54
|
});
|
|
53
55
|
var Sidepanel = function Sidepanel(_ref) {
|
|
54
56
|
var inProp = _ref.in,
|
|
55
|
-
_ref$
|
|
56
|
-
|
|
57
|
+
_ref$widthSpacing = _ref.widthSpacing,
|
|
58
|
+
widthSpacing = _ref$widthSpacing === void 0 ? 30 : _ref$widthSpacing,
|
|
57
59
|
_ref$timeout = _ref.timeout,
|
|
58
60
|
timeout = _ref$timeout === void 0 ? 1000 : _ref$timeout,
|
|
59
61
|
children = _ref.children,
|
|
60
62
|
className = _ref.className;
|
|
61
63
|
var classes = useStyles({
|
|
62
|
-
|
|
64
|
+
widthSpacing: widthSpacing,
|
|
63
65
|
timeout: timeout
|
|
64
66
|
});
|
|
65
67
|
var panel = /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
@@ -20,21 +20,23 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
20
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
|
-
var useStyles = (0, _core.makeStyles)({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
var useStyles = (0, _core.makeStyles)(function (theme) {
|
|
24
|
+
return {
|
|
25
|
+
wrapper: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexWrap: "wrap",
|
|
28
|
+
justifyContent: "space-around",
|
|
29
|
+
overflowY: "auto",
|
|
30
|
+
height: "100%"
|
|
31
|
+
},
|
|
32
|
+
iconBlock: {
|
|
33
|
+
flex: "0 0 30%",
|
|
34
|
+
border: "1px solid #999",
|
|
35
|
+
margin: theme.spacing(0.5),
|
|
36
|
+
padding: theme.spacing(0.5, 1),
|
|
37
|
+
fontSize: theme.spacing(2.4)
|
|
38
|
+
}
|
|
39
|
+
};
|
|
38
40
|
});
|
|
39
41
|
var arrify = function arrify(thing) {
|
|
40
42
|
return [].slice.call(thing);
|
|
@@ -40,11 +40,11 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
40
40
|
var toastColor = (0, _toastHelper.getToastColor)(theme, props.toastType);
|
|
41
41
|
return {
|
|
42
42
|
display: "flex",
|
|
43
|
-
width:
|
|
44
|
-
marginTop:
|
|
45
|
-
padding:
|
|
46
|
-
borderRadius:
|
|
47
|
-
fontSize:
|
|
43
|
+
width: theme.spacing(39),
|
|
44
|
+
marginTop: theme.spacing(1),
|
|
45
|
+
padding: theme.spacing(1.7),
|
|
46
|
+
borderRadius: theme.spacing(0.5),
|
|
47
|
+
fontSize: theme.spacing(1.4),
|
|
48
48
|
color: "white",
|
|
49
49
|
backgroundColor: toastColor,
|
|
50
50
|
zIndex: 10000,
|
|
@@ -78,18 +78,18 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
78
78
|
},
|
|
79
79
|
listWrapper: {
|
|
80
80
|
position: "absolute",
|
|
81
|
-
top:
|
|
82
|
-
right:
|
|
81
|
+
top: theme.spacing(4),
|
|
82
|
+
right: theme.spacing(1.6),
|
|
83
83
|
display: "flex",
|
|
84
84
|
flexDirection: "column"
|
|
85
85
|
},
|
|
86
86
|
closeIcon: {
|
|
87
|
-
padding:
|
|
88
|
-
borderRadius:
|
|
89
|
-
strokeWidth:
|
|
87
|
+
padding: theme.spacing(0.2),
|
|
88
|
+
borderRadius: theme.spacing(0.2),
|
|
89
|
+
strokeWidth: theme.spacing(0.2),
|
|
90
90
|
cursor: "pointer",
|
|
91
91
|
marginLeft: "auto",
|
|
92
|
-
fontSize:
|
|
92
|
+
fontSize: theme.spacing(2)
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
});
|
|
@@ -29,7 +29,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
29
29
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
30
30
|
var base = {
|
|
31
31
|
margin: 0,
|
|
32
|
-
fontSize:
|
|
32
|
+
fontSize: theme.spacing(1.3),
|
|
33
33
|
listStyleType: "none",
|
|
34
34
|
borderWidth: 0,
|
|
35
35
|
borderStyle: "solid",
|
|
@@ -39,19 +39,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
39
39
|
return {
|
|
40
40
|
branch: function branch(props) {
|
|
41
41
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
42
|
-
marginLeft: "".concat(_settings.
|
|
42
|
+
marginLeft: "".concat(theme.spacing(_settings.branchIndentSpacing)),
|
|
43
43
|
padding: "0",
|
|
44
|
-
paddingLeft: "".concat(_settings.
|
|
45
|
-
borderLeftWidth:
|
|
44
|
+
paddingLeft: "".concat(theme.spacing(_settings.branchLengthSpacing)),
|
|
45
|
+
borderLeftWidth: theme.spacing(0.1),
|
|
46
46
|
"&:last-child::after": {
|
|
47
47
|
/* blocker - hides lowest part of vertical branch */
|
|
48
48
|
content: '""',
|
|
49
49
|
backgroundColor: props.dark ? theme.palette.grey.dark : "#fff",
|
|
50
50
|
position: "absolute",
|
|
51
|
-
left: "-".concat(_settings.
|
|
51
|
+
left: "-".concat(theme.spacing(_settings.branchIndentSpacing + _settings.branchLengthSpacing + 0.2)),
|
|
52
52
|
bottom: 0,
|
|
53
|
-
top: "-".concat(_settings.
|
|
54
|
-
width:
|
|
53
|
+
top: "-".concat(theme.spacing(_settings.branchHeightSpacing)),
|
|
54
|
+
width: theme.spacing(0.1)
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
},
|
|
@@ -59,10 +59,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
59
59
|
overflowY: "auto",
|
|
60
60
|
overflowX: "hidden",
|
|
61
61
|
marginLeft: 0,
|
|
62
|
-
padding: "".concat(_settings.
|
|
62
|
+
padding: "".concat(theme.spacing(_settings.branchLengthSpacing - 0.5)),
|
|
63
63
|
"& > $branch": {
|
|
64
64
|
/* First Branch immediately under Wrapper needs margin adjusted to look right */
|
|
65
|
-
marginLeft: "".concat(
|
|
65
|
+
marginLeft: "".concat(theme.spacing(_settings.branchIndentSpacing * 1.5))
|
|
66
66
|
}
|
|
67
67
|
})
|
|
68
68
|
};
|
|
@@ -26,16 +26,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
26
26
|
return {
|
|
27
27
|
beforeIndicator: {
|
|
28
28
|
backgroundColor: "#666",
|
|
29
|
-
marginLeft: "-".concat(_settings.
|
|
30
|
-
width: "".concat(_settings.
|
|
31
|
-
height:
|
|
29
|
+
marginLeft: "-".concat(theme.spacing(_settings.branchLengthSpacing + 0.1)),
|
|
30
|
+
width: "".concat(theme.spacing(_settings.branchLengthSpacing + 0.1)),
|
|
31
|
+
height: theme.spacing(0.1),
|
|
32
32
|
zIndex: 99,
|
|
33
33
|
position: "absolute"
|
|
34
34
|
},
|
|
35
35
|
nonIndicator: {
|
|
36
|
-
height:
|
|
37
|
-
width: "".concat(_settings.
|
|
38
|
-
margin: "auto 0 auto -".concat(_settings.
|
|
36
|
+
height: theme.spacing(0.1),
|
|
37
|
+
width: "".concat(theme.spacing(_settings.branchLengthSpacing + 2.1)),
|
|
38
|
+
margin: "auto 0 auto -".concat(theme.spacing(_settings.branchLengthSpacing + 0.1)),
|
|
39
39
|
backgroundColor: "#666",
|
|
40
40
|
alignSelf: "stretch",
|
|
41
41
|
flex: "0 0 auto",
|
|
@@ -52,8 +52,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
52
52
|
},
|
|
53
53
|
indicator: function indicator(props) {
|
|
54
54
|
return {
|
|
55
|
-
fontSize:
|
|
56
|
-
padding:
|
|
55
|
+
fontSize: theme.spacing(1),
|
|
56
|
+
padding: theme.spacing(1, 0, 1, 1),
|
|
57
57
|
cursor: "pointer",
|
|
58
58
|
flex: "0 0 auto",
|
|
59
59
|
color: props.open ? props.dark ? theme.palette.primary.light : theme.palette.text.primary : theme.palette.primary.main
|
|
@@ -36,9 +36,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
36
36
|
backgroundColor: props.dark ? theme.palette.grey.dark : "#fff",
|
|
37
37
|
position: "absolute",
|
|
38
38
|
top: "calc(50%)",
|
|
39
|
-
left: "-".concat(_settings.
|
|
39
|
+
left: "-".concat(theme.spacing(_settings.branchLengthSpacing + 0.1)),
|
|
40
40
|
bottom: 0,
|
|
41
|
-
width:
|
|
41
|
+
width: theme.spacing(0.1),
|
|
42
42
|
height: "50%"
|
|
43
43
|
}
|
|
44
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.branchLength = exports.branchIndent = exports.branchHeight = void 0;
|
|
4
|
+
exports.branchLengthSpacing = exports.branchLength = exports.branchIndentSpacing = exports.branchIndent = exports.branchHeightSpacing = exports.branchHeight = void 0;
|
|
5
5
|
(function () {
|
|
6
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
7
7
|
enterModule && enterModule(module);
|
|
@@ -19,10 +19,13 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
19
19
|
// in px
|
|
20
20
|
// How far from parent left edge to vertical branch under it
|
|
21
21
|
var branchIndent = exports.branchIndent = 14;
|
|
22
|
+
var branchIndentSpacing = exports.branchIndentSpacing = 1.4;
|
|
22
23
|
// How far from vertical branch to children's left edge
|
|
23
24
|
var branchLength = exports.branchLength = 15;
|
|
25
|
+
var branchLengthSpacing = exports.branchLengthSpacing = 1.5;
|
|
24
26
|
// How far up from bottom edge of node should horizontal branch sit
|
|
25
27
|
var branchHeight = exports.branchHeight = 20;
|
|
28
|
+
var branchHeightSpacing = exports.branchHeightSpacing = 2;
|
|
26
29
|
;
|
|
27
30
|
(function () {
|
|
28
31
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -30,8 +33,11 @@ var branchHeight = exports.branchHeight = 20;
|
|
|
30
33
|
return;
|
|
31
34
|
}
|
|
32
35
|
reactHotLoader.register(branchIndent, "branchIndent", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
36
|
+
reactHotLoader.register(branchIndentSpacing, "branchIndentSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
33
37
|
reactHotLoader.register(branchLength, "branchLength", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
38
|
+
reactHotLoader.register(branchLengthSpacing, "branchLengthSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
34
39
|
reactHotLoader.register(branchHeight, "branchHeight", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
40
|
+
reactHotLoader.register(branchHeightSpacing, "branchHeightSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
35
41
|
})();
|
|
36
42
|
;
|
|
37
43
|
(function () {
|
|
@@ -45,8 +51,11 @@ var branchHeight = exports.branchHeight = 20;
|
|
|
45
51
|
return;
|
|
46
52
|
}
|
|
47
53
|
reactHotLoader.register(branchIndent, "branchIndent", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
54
|
+
reactHotLoader.register(branchIndentSpacing, "branchIndentSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
48
55
|
reactHotLoader.register(branchLength, "branchLength", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
56
|
+
reactHotLoader.register(branchLengthSpacing, "branchLengthSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
49
57
|
reactHotLoader.register(branchHeight, "branchHeight", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
58
|
+
reactHotLoader.register(branchHeightSpacing, "branchHeightSpacing", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
50
59
|
})();
|
|
51
60
|
;
|
|
52
61
|
(function () {
|
|
@@ -37,21 +37,16 @@ var withScrollBox = function withScrollBox(WrappedComp) {
|
|
|
37
37
|
var onScroll = _ref.onScroll,
|
|
38
38
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
39
39
|
var classes = useStyles();
|
|
40
|
-
var mergeRef = function mergeRef(node, measureRef) {
|
|
41
|
-
measureRef(node);
|
|
42
|
-
if (externalRef) externalRef.current = node;
|
|
43
|
-
};
|
|
44
40
|
return /*#__PURE__*/_react.default.createElement(_reactMeasure.default, {
|
|
45
|
-
bounds: true
|
|
41
|
+
bounds: true,
|
|
42
|
+
innerRef: externalRef
|
|
46
43
|
}, function (_ref2) {
|
|
47
44
|
var measureRef = _ref2.measureRef,
|
|
48
45
|
contentRect = _ref2.contentRect;
|
|
49
46
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
50
47
|
className: classes.scrollbox,
|
|
51
48
|
onScroll: onScroll,
|
|
52
|
-
ref:
|
|
53
|
-
return mergeRef(node, measureRef);
|
|
54
|
-
}
|
|
49
|
+
ref: measureRef
|
|
55
50
|
}, /*#__PURE__*/_react.default.createElement(WrappedComp, _extends({}, otherProps, {
|
|
56
51
|
height: (0, _utils.safeGet)(contentRect, "bounds", "height"),
|
|
57
52
|
width: (0, _utils.safeGet)(contentRect, "bounds", "width")
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.useWindowSize = exports.default = void 0;
|
|
5
|
+
var _react = require("react");
|
|
6
|
+
(function () {
|
|
7
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
|
+
enterModule && enterModule(module);
|
|
9
|
+
})();
|
|
10
|
+
(function () {
|
|
11
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
+
enterModule && enterModule(module);
|
|
13
|
+
})();
|
|
14
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
17
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
var useWindowSize = exports.useWindowSize = function useWindowSize() {
|
|
27
|
+
var _useState = (0, _react.useState)({
|
|
28
|
+
innerWidth: window.innerWidth,
|
|
29
|
+
innerHeight: window.innerHeight,
|
|
30
|
+
outerWidth: window.outerWidth,
|
|
31
|
+
outerHeight: window.outerHeight
|
|
32
|
+
}),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
windowSize = _useState2[0],
|
|
35
|
+
setWindowSize = _useState2[1];
|
|
36
|
+
(0, _react.useEffect)(function () {
|
|
37
|
+
var handleResize = function handleResize() {
|
|
38
|
+
var haveChanged = windowSize.innerWidth !== window.innerWidth || windowSize.innerHeight !== window.innerHeight || windowSize.outerWidth !== window.outerWidth || windowSize.outerHeight !== window.outerHeight;
|
|
39
|
+
if (haveChanged) {
|
|
40
|
+
setWindowSize({
|
|
41
|
+
innerWidth: window.innerWidth,
|
|
42
|
+
innerHeight: window.innerHeight,
|
|
43
|
+
outerWidth: window.outerWidth,
|
|
44
|
+
outerHeight: window.outerHeight
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
handleResize();
|
|
49
|
+
window.addEventListener("resize", handleResize);
|
|
50
|
+
return function () {
|
|
51
|
+
return window.removeEventListener("resize", handleResize);
|
|
52
|
+
};
|
|
53
|
+
}, [windowSize]);
|
|
54
|
+
return windowSize;
|
|
55
|
+
};
|
|
56
|
+
__signature__(useWindowSize, "useState{[windowSize, setWindowSize]({\n\t\tinnerWidth: window.innerWidth,\n\t\tinnerHeight: window.innerHeight,\n\t\touterWidth: window.outerWidth,\n\t\touterHeight: window.outerHeight,\n\t})}\nuseEffect{}");
|
|
57
|
+
__signature__(useWindowSize, "useState{[windowSize, setWindowSize]({\n\t\tinnerWidth: window.innerWidth,\n\t\tinnerHeight: window.innerHeight,\n\t\touterWidth: window.outerWidth,\n\t\touterHeight: window.outerHeight,\n\t})}\nuseEffect{}");
|
|
58
|
+
var _default = useWindowSize;
|
|
59
|
+
var _default2 = _default;
|
|
60
|
+
var _default3 = exports.default = _default2;
|
|
61
|
+
;
|
|
62
|
+
(function () {
|
|
63
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
64
|
+
if (!reactHotLoader) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
reactHotLoader.register(useWindowSize, "useWindowSize", "/home/vsts/work/1/s/src/hooks/useWindowSize.js");
|
|
68
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useWindowSize.js");
|
|
69
|
+
})();
|
|
70
|
+
;
|
|
71
|
+
(function () {
|
|
72
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
73
|
+
leaveModule && leaveModule(module);
|
|
74
|
+
})();
|
|
75
|
+
;
|
|
76
|
+
(function () {
|
|
77
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
78
|
+
if (!reactHotLoader) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
reactHotLoader.register(useWindowSize, "useWindowSize", "/home/vsts/work/1/s/src/hooks/useWindowSize.js");
|
|
82
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useWindowSize.js");
|
|
83
|
+
})();
|
|
84
|
+
;
|
|
85
|
+
(function () {
|
|
86
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
87
|
+
leaveModule && leaveModule(module);
|
|
88
|
+
})();
|
package/dist/sharedMessages.js
CHANGED
|
@@ -497,6 +497,14 @@ var sharedMessages = (0, _reactIntl.defineMessages)({
|
|
|
497
497
|
december: {
|
|
498
498
|
id: "orc-shared.december",
|
|
499
499
|
defaultMessage: "December"
|
|
500
|
+
},
|
|
501
|
+
selectAll: {
|
|
502
|
+
id: "orc-shared.selectAll",
|
|
503
|
+
defaultMessage: "Select All"
|
|
504
|
+
},
|
|
505
|
+
clear: {
|
|
506
|
+
id: "orc-shared.clear",
|
|
507
|
+
defaultMessage: "Clear"
|
|
500
508
|
}
|
|
501
509
|
});
|
|
502
510
|
var _default = sharedMessages;
|
package/package.json
CHANGED
|
@@ -17,19 +17,19 @@ export const ABOUT_NAME = "__aboutBox";
|
|
|
17
17
|
|
|
18
18
|
const getModalRoot = () => document.getElementById("modal");
|
|
19
19
|
|
|
20
|
-
const useStyles = makeStyles(
|
|
20
|
+
const useStyles = makeStyles(theme => ({
|
|
21
21
|
aboutBox: props => ({
|
|
22
22
|
boxSizing: "border-box",
|
|
23
23
|
zIndex: 9999,
|
|
24
24
|
position: "absolute",
|
|
25
|
-
top:
|
|
26
|
-
left:
|
|
27
|
-
height:
|
|
28
|
-
width:
|
|
29
|
-
padding:
|
|
25
|
+
top: `calc(50% - ${theme.spacing(21)})`,
|
|
26
|
+
left: `calc(50% - ${theme.spacing(21)})`,
|
|
27
|
+
height: theme.spacing(42),
|
|
28
|
+
width: theme.spacing(42),
|
|
29
|
+
padding: theme.spacing(1.5, 2),
|
|
30
30
|
color: "#ffffff",
|
|
31
|
-
fontSize:
|
|
32
|
-
lineHeight:
|
|
31
|
+
fontSize: theme.spacing(1.3),
|
|
32
|
+
lineHeight: theme.spacing(1.6),
|
|
33
33
|
background: `#0a0a07 url(${props.bgImage})`,
|
|
34
34
|
|
|
35
35
|
"&.enter-active": {
|
|
@@ -47,8 +47,8 @@ const useStyles = makeStyles(() => ({
|
|
|
47
47
|
zIndex: 9999,
|
|
48
48
|
position: "absolute",
|
|
49
49
|
color: "#ffffff",
|
|
50
|
-
top:
|
|
51
|
-
right:
|
|
50
|
+
top: theme.spacing(1.5),
|
|
51
|
+
right: theme.spacing(2),
|
|
52
52
|
margin: "0",
|
|
53
53
|
cursor: "pointer",
|
|
54
54
|
opacity: "1",
|
|
@@ -62,11 +62,11 @@ const useStyles = makeStyles(() => ({
|
|
|
62
62
|
textDecoration: "none",
|
|
63
63
|
},
|
|
64
64
|
aboutParagraph: {
|
|
65
|
-
marginTop:
|
|
65
|
+
marginTop: theme.spacing(2),
|
|
66
66
|
},
|
|
67
67
|
longAboutParagraph: props => ({
|
|
68
|
-
marginTop:
|
|
69
|
-
fontSize: props.lang?.toLowerCase().startsWith("fr") ?
|
|
68
|
+
marginTop: theme.spacing(2),
|
|
69
|
+
fontSize: props.lang?.toLowerCase().startsWith("fr") ? theme.spacing(1) : undefined,
|
|
70
70
|
}),
|
|
71
71
|
}));
|
|
72
72
|
|
|
@@ -8,12 +8,12 @@ const useStyles = makeStyles(theme => ({
|
|
|
8
8
|
cursor: "pointer",
|
|
9
9
|
boxSizing: "border-box",
|
|
10
10
|
fontFamily: theme.typography.button.fontFamily,
|
|
11
|
-
fontSize:
|
|
11
|
+
fontSize: theme.spacing(1.2),
|
|
12
12
|
textTransform: "uppercase",
|
|
13
|
-
height:
|
|
14
|
-
minWidth:
|
|
15
|
-
paddingTop:
|
|
16
|
-
paddingRight:
|
|
13
|
+
height: theme.spacing(4),
|
|
14
|
+
minWidth: theme.spacing(18),
|
|
15
|
+
paddingTop: theme.spacing(1.4),
|
|
16
|
+
paddingRight: theme.spacing(1.4),
|
|
17
17
|
color: props.open ? theme.palette.primary.light : theme.palette.text.disabled,
|
|
18
18
|
|
|
19
19
|
"&:hover": {
|
|
@@ -21,8 +21,8 @@ const useStyles = makeStyles(theme => ({
|
|
|
21
21
|
},
|
|
22
22
|
}),
|
|
23
23
|
indicator: props => ({
|
|
24
|
-
fontSize:
|
|
25
|
-
padding:
|
|
24
|
+
fontSize: theme.spacing(1.2),
|
|
25
|
+
padding: theme.spacing(0, 1.1),
|
|
26
26
|
color: props.open ? theme.palette.text.disabled : theme.palette.primary.light,
|
|
27
27
|
}),
|
|
28
28
|
}));
|
|
@@ -35,15 +35,15 @@ const useStyles = makeStyles(theme => ({
|
|
|
35
35
|
viewPort: props => ({
|
|
36
36
|
overflow: "hidden",
|
|
37
37
|
backgroundColor: "white",
|
|
38
|
-
borderTopLeftRadius:
|
|
39
|
-
height:
|
|
38
|
+
borderTopLeftRadius: theme.spacing(1),
|
|
39
|
+
height: `calc(100% - ${theme.spacing(4)})`,
|
|
40
40
|
position: "absolute",
|
|
41
41
|
bottom: 0,
|
|
42
42
|
right: 0,
|
|
43
43
|
display: "flex",
|
|
44
44
|
flexDirection: "column",
|
|
45
45
|
transition: "width 0.3s ease-out",
|
|
46
|
-
width: props.toggleOpen ?
|
|
46
|
+
width: props.toggleOpen ? `calc(100% - ${theme.spacing(20)})` : `calc(100% - ${theme.spacing(5)})`,
|
|
47
47
|
}),
|
|
48
48
|
}));
|
|
49
49
|
|
|
@@ -6,13 +6,13 @@ import sharedMessages from "./../../sharedMessages";
|
|
|
6
6
|
const useStyles = makeStyles(theme => ({
|
|
7
7
|
helpLink: {
|
|
8
8
|
fontFamily: theme.typography.button.fontFamily,
|
|
9
|
-
fontSize:
|
|
9
|
+
fontSize: theme.spacing(1.2),
|
|
10
10
|
textTransform: "uppercase",
|
|
11
11
|
color: theme.palette.grey.borders,
|
|
12
|
-
width:
|
|
12
|
+
width: theme.spacing(4),
|
|
13
13
|
cursor: "pointer",
|
|
14
|
-
paddingTop:
|
|
15
|
-
paddingRight:
|
|
14
|
+
paddingTop: theme.spacing(1.4),
|
|
15
|
+
paddingRight: theme.spacing(1),
|
|
16
16
|
textDecoration: "none",
|
|
17
17
|
"&:hover": {
|
|
18
18
|
color: theme.palette.primary.light,
|