orc-shared 5.10.2 → 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 +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/Form/Inputs/MultiSelector.js +137 -0
- package/dist/components/Form/Inputs/Selector.js +13 -10
- 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 +1 -1
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
- 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/PredefinedElements/SearchControl.js +1 -1
- package/dist/components/MaterialUI/Inputs/Select.js +175 -109
- package/dist/components/MaterialUI/Inputs/SelectProps.js +11 -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 +3 -1
- package/dist/components/Provision.js +30 -13
- package/dist/components/Routing/SegmentPage.js +117 -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/{components/Modal/index.js → hooks/useWindowSize.js} +38 -36
- package/dist/sharedMessages.js +8 -0
- 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 +73 -0
- package/src/components/Form/Inputs/MultiSelector.test.js +332 -0
- package/src/components/Form/Inputs/Selector.js +12 -4
- package/src/components/Form/Inputs/Selector.test.js +27 -12
- 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 +1 -1
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
- 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/PredefinedElements/SearchControl.js +1 -1
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +1 -1
- package/src/components/MaterialUI/Inputs/Select.js +143 -83
- package/src/components/MaterialUI/Inputs/Select.test.js +199 -14
- package/src/components/MaterialUI/Inputs/SelectProps.js +10 -0
- package/src/components/MaterialUI/Inputs/SelectProps.test.js +10 -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 +4 -1
- 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/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
- 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/IconButton.js +0 -80
- 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/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
|
@@ -32,10 +32,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
32
32
|
positionedButton: {
|
|
33
33
|
width: "max-content",
|
|
34
34
|
position: "relative",
|
|
35
|
-
padding: "
|
|
35
|
+
padding: "".concat(theme.spacing(0.6, 1.4), " !important"),
|
|
36
36
|
"&:hover": {
|
|
37
37
|
borderColor: "#4fa1f0",
|
|
38
|
-
boxShadow: "0 0
|
|
38
|
+
boxShadow: "".concat(theme.spacing(0, 0, 0.4), " #4fa1f0"),
|
|
39
39
|
outline: "none",
|
|
40
40
|
backgroundColor: "#f7f7f7 !important"
|
|
41
41
|
},
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
var _reactIntl = require("react-intl");
|
|
7
|
+
var _Select = _interopRequireDefault(require("../../MaterialUI/Inputs/Select"));
|
|
8
|
+
var _SelectProps = _interopRequireDefault(require("../../MaterialUI/Inputs/SelectProps"));
|
|
9
|
+
var _sharedMessages = _interopRequireDefault(require("../../../sharedMessages"));
|
|
10
|
+
var _excluded = ["value", "width", "options", "update", "addClearSelectAll", "multipleRenderValue"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
(function () {
|
|
13
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
+
enterModule && enterModule(module);
|
|
15
|
+
})();
|
|
16
|
+
(function () {
|
|
17
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
|
+
enterModule && enterModule(module);
|
|
19
|
+
})();
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
var clearValue = "__#Clear#__";
|
|
29
|
+
var selectAllValue = "__#SelectAll#__";
|
|
30
|
+
var MultiSelector = function MultiSelector(_ref) {
|
|
31
|
+
var value = _ref.value,
|
|
32
|
+
_ref$width = _ref.width,
|
|
33
|
+
width = _ref$width === void 0 ? 700 : _ref$width,
|
|
34
|
+
options = _ref.options,
|
|
35
|
+
update = _ref.update,
|
|
36
|
+
addClearSelectAll = _ref.addClearSelectAll,
|
|
37
|
+
multipleRenderValue = _ref.multipleRenderValue,
|
|
38
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
40
|
+
formatMessage = _useIntl.formatMessage;
|
|
41
|
+
var valueUpdater = function valueUpdater(value) {
|
|
42
|
+
if (value.indexOf(clearValue) >= 0) {
|
|
43
|
+
update([]);
|
|
44
|
+
} else if (value.indexOf(selectAllValue) >= 0) {
|
|
45
|
+
update(options.map(function (x) {
|
|
46
|
+
return x.value;
|
|
47
|
+
}));
|
|
48
|
+
} else {
|
|
49
|
+
update(value);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var selectProps = new _SelectProps.default();
|
|
53
|
+
var selectionOptions = [];
|
|
54
|
+
if (addClearSelectAll) {
|
|
55
|
+
if (value.length > 0) {
|
|
56
|
+
selectionOptions.push({
|
|
57
|
+
label: formatMessage(_sharedMessages.default.clear),
|
|
58
|
+
value: clearValue
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (value.length !== options.length) {
|
|
62
|
+
selectionOptions.push({
|
|
63
|
+
label: formatMessage(_sharedMessages.default.selectAll),
|
|
64
|
+
value: selectAllValue
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var allOptions = [].concat(selectionOptions, options);
|
|
69
|
+
selectProps.set(_SelectProps.default.propNames.value, value);
|
|
70
|
+
selectProps.set(_SelectProps.default.propNames.onClose, props.onBlur);
|
|
71
|
+
selectProps.set(_SelectProps.default.propNames.disabled, props.disabled);
|
|
72
|
+
selectProps.set(_SelectProps.default.propNames.multiple, true);
|
|
73
|
+
selectProps.set(_SelectProps.default.propNames.multipleSelectWidth, width);
|
|
74
|
+
selectProps.set(_SelectProps.default.propNames.update, valueUpdater);
|
|
75
|
+
selectProps.set(_SelectProps.default.propNames.autoWidth, false);
|
|
76
|
+
selectProps.set(_SelectProps.default.propNames.autoFocus, false);
|
|
77
|
+
selectProps.set(_SelectProps.default.propNames.renderValue, multipleRenderValue ? function () {
|
|
78
|
+
return multipleRenderValue(value, options);
|
|
79
|
+
} : null);
|
|
80
|
+
selectProps.set(_SelectProps.default.propNames.positionOverride, {
|
|
81
|
+
anchorOrigin: {
|
|
82
|
+
vertical: "bottom",
|
|
83
|
+
horizontal: "left"
|
|
84
|
+
},
|
|
85
|
+
transformOrigin: {
|
|
86
|
+
vertical: "top",
|
|
87
|
+
horizontal: "left"
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var hasError = props.required && (!Array.isArray(value) || value.length === 0);
|
|
91
|
+
selectProps.set(_SelectProps.default.propNames.error, hasError);
|
|
92
|
+
return /*#__PURE__*/_react.default.createElement(_Select.default, {
|
|
93
|
+
options: allOptions,
|
|
94
|
+
selectProps: selectProps
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
__signature__(MultiSelector, "useIntl{{ formatMessage }}", function () {
|
|
98
|
+
return [_reactIntl.useIntl];
|
|
99
|
+
});
|
|
100
|
+
__signature__(MultiSelector, "useIntl{{ formatMessage }}", function () {
|
|
101
|
+
return [_reactIntl.useIntl];
|
|
102
|
+
});
|
|
103
|
+
var _default = MultiSelector;
|
|
104
|
+
var _default2 = _default;
|
|
105
|
+
var _default3 = exports.default = _default2;
|
|
106
|
+
;
|
|
107
|
+
(function () {
|
|
108
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
109
|
+
if (!reactHotLoader) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
reactHotLoader.register(clearValue, "clearValue", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
113
|
+
reactHotLoader.register(selectAllValue, "selectAllValue", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
114
|
+
reactHotLoader.register(MultiSelector, "MultiSelector", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
115
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
116
|
+
})();
|
|
117
|
+
;
|
|
118
|
+
(function () {
|
|
119
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
120
|
+
leaveModule && leaveModule(module);
|
|
121
|
+
})();
|
|
122
|
+
;
|
|
123
|
+
(function () {
|
|
124
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
125
|
+
if (!reactHotLoader) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
reactHotLoader.register(clearValue, "clearValue", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
129
|
+
reactHotLoader.register(selectAllValue, "selectAllValue", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
130
|
+
reactHotLoader.register(MultiSelector, "MultiSelector", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
131
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/MultiSelector.js");
|
|
132
|
+
})();
|
|
133
|
+
;
|
|
134
|
+
(function () {
|
|
135
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
136
|
+
leaveModule && leaveModule(module);
|
|
137
|
+
})();
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.default = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _Select = _interopRequireDefault(require("../../MaterialUI/Inputs/Select"));
|
|
7
|
-
var _utils = require("../../../utils");
|
|
8
7
|
var _SelectProps = _interopRequireDefault(require("../../MaterialUI/Inputs/SelectProps"));
|
|
9
8
|
var _excluded = ["value", "options", "update"];
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -24,11 +23,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
24
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
24
|
return a;
|
|
26
25
|
};
|
|
27
|
-
var selectEventUpdater = exports.selectEventUpdater = (0, _utils.memoize)(function (update) {
|
|
28
|
-
return function (value) {
|
|
29
|
-
return update(value);
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
26
|
var Selector = function Selector(_ref) {
|
|
33
27
|
var value = _ref.value,
|
|
34
28
|
options = _ref.options,
|
|
@@ -38,7 +32,18 @@ var Selector = function Selector(_ref) {
|
|
|
38
32
|
selectProps.set(_SelectProps.default.propNames.value, value);
|
|
39
33
|
selectProps.set(_SelectProps.default.propNames.onClose, props.onBlur);
|
|
40
34
|
selectProps.set(_SelectProps.default.propNames.disabled, props.disabled);
|
|
41
|
-
selectProps.set(_SelectProps.default.propNames.update,
|
|
35
|
+
selectProps.set(_SelectProps.default.propNames.update, update);
|
|
36
|
+
selectProps.set(_SelectProps.default.propNames.autoWidth, false);
|
|
37
|
+
selectProps.set(_SelectProps.default.propNames.positionOverride, {
|
|
38
|
+
anchorOrigin: {
|
|
39
|
+
vertical: "bottom",
|
|
40
|
+
horizontal: "left"
|
|
41
|
+
},
|
|
42
|
+
transformOrigin: {
|
|
43
|
+
vertical: "top",
|
|
44
|
+
horizontal: "left"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
42
47
|
var hasError = props.required && !value ? true : false;
|
|
43
48
|
selectProps.set(_SelectProps.default.propNames.error, hasError);
|
|
44
49
|
return /*#__PURE__*/_react.default.createElement(_Select.default, {
|
|
@@ -55,7 +60,6 @@ var _default3 = exports.default = _default2;
|
|
|
55
60
|
if (!reactHotLoader) {
|
|
56
61
|
return;
|
|
57
62
|
}
|
|
58
|
-
reactHotLoader.register(selectEventUpdater, "selectEventUpdater", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
59
63
|
reactHotLoader.register(Selector, "Selector", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
60
64
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
61
65
|
})();
|
|
@@ -70,7 +74,6 @@ var _default3 = exports.default = _default2;
|
|
|
70
74
|
if (!reactHotLoader) {
|
|
71
75
|
return;
|
|
72
76
|
}
|
|
73
|
-
reactHotLoader.register(selectEventUpdater, "selectEventUpdater", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
74
77
|
reactHotLoader.register(Selector, "Selector", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
75
78
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Form/Inputs/Selector.js");
|
|
76
79
|
})();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
var _Selector = _interopRequireDefault(require("./Selector"));
|
|
6
|
-
var _MultiSelector = _interopRequireDefault(require("
|
|
6
|
+
var _MultiSelector = _interopRequireDefault(require("./MultiSelector"));
|
|
7
7
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
8
8
|
var _ReadOnly = require("./ReadOnly");
|
|
9
9
|
var _Toggles = require("./Toggles");
|
|
@@ -27,29 +27,29 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
27
27
|
return {
|
|
28
28
|
container: {
|
|
29
29
|
fontFamily: "'Open Sans', sans-serif",
|
|
30
|
-
fontSize:
|
|
30
|
+
fontSize: theme.spacing(1.4),
|
|
31
31
|
background: "rgba(255,255,255,0.85)",
|
|
32
|
-
maxWidth:
|
|
33
|
-
width: "calc(100% -
|
|
32
|
+
maxWidth: theme.spacing(70),
|
|
33
|
+
width: "calc(100% - ".concat(theme.spacing(4), ")"),
|
|
34
34
|
display: "block",
|
|
35
35
|
top: "50%",
|
|
36
36
|
left: "50%",
|
|
37
37
|
position: "absolute",
|
|
38
|
-
boxShadow: "0
|
|
38
|
+
boxShadow: "".concat(theme.spacing(0, 0.4, 0.8, 0), " rgba(0, 0, 0, 0.2), ").concat(theme.spacing(0, 0.6, 2, 0), " rgba(0, 0, 0, 0.19)"),
|
|
39
39
|
transform: "translateY(-50%) translateX(-50%)",
|
|
40
|
-
padding:
|
|
41
|
-
borderRadius:
|
|
40
|
+
padding: theme.spacing(8),
|
|
41
|
+
borderRadius: theme.spacing(0.3),
|
|
42
42
|
"& header": {
|
|
43
|
-
paddingBottom:
|
|
44
|
-
marginBottom:
|
|
43
|
+
paddingBottom: theme.spacing(2),
|
|
44
|
+
marginBottom: theme.spacing(2),
|
|
45
45
|
borderBottom: "1px solid #999",
|
|
46
46
|
"& h1": {
|
|
47
47
|
fontWeight: 400,
|
|
48
|
-
fontWize:
|
|
48
|
+
fontWize: theme.spacing(3),
|
|
49
49
|
marginTop: 0,
|
|
50
|
-
marginBottom:
|
|
50
|
+
marginBottom: theme.spacing(0.5),
|
|
51
51
|
"& p": {
|
|
52
|
-
fontSize:
|
|
52
|
+
fontSize: theme.spacing(1.6),
|
|
53
53
|
margin: 0,
|
|
54
54
|
color: "#999",
|
|
55
55
|
fontWeight: 400
|
|
@@ -62,7 +62,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
62
62
|
flexWrap: "wrap",
|
|
63
63
|
width: "100%",
|
|
64
64
|
boxSizing: "border-box",
|
|
65
|
-
marginTop:
|
|
65
|
+
marginTop: theme.spacing(4)
|
|
66
66
|
},
|
|
67
67
|
gridItem: {
|
|
68
68
|
display: "flex",
|
|
@@ -71,16 +71,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
71
71
|
flexDirection: "column"
|
|
72
72
|
},
|
|
73
73
|
browserIconContainer: {
|
|
74
|
-
width:
|
|
74
|
+
width: theme.spacing(4.8),
|
|
75
75
|
textAlign: "center"
|
|
76
76
|
},
|
|
77
77
|
browserIconCaption: {
|
|
78
|
-
fontSize:
|
|
78
|
+
fontSize: theme.spacing(1.1),
|
|
79
79
|
color: "#999"
|
|
80
80
|
},
|
|
81
81
|
browserIcon: {
|
|
82
82
|
stroke: "none",
|
|
83
|
-
fontSize:
|
|
83
|
+
fontSize: theme.spacing(4.8)
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
});
|
|
@@ -1,13 +1,10 @@
|
|
|
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
|
|
8
|
-
var _Placeholder = _interopRequireDefault(require("./Placeholder"));
|
|
9
|
-
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); }
|
|
10
|
-
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 _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
|
|
7
|
+
var _core = require("@material-ui/core");
|
|
11
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
9
|
(function () {
|
|
13
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -23,15 +20,39 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
23
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
21
|
return a;
|
|
25
22
|
};
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
var useStyles = (0, _core.makeStyles)(function (theme) {
|
|
24
|
+
return {
|
|
25
|
+
progressContainer: {
|
|
26
|
+
top: 0,
|
|
27
|
+
left: 0,
|
|
28
|
+
right: 0,
|
|
29
|
+
bottom: 0,
|
|
30
|
+
display: "flex",
|
|
31
|
+
position: "fixed",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
zIndex: 999
|
|
35
|
+
},
|
|
36
|
+
progress: {
|
|
37
|
+
color: theme.palette.primary.main
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
var LoadingIcon = function LoadingIcon() {
|
|
42
|
+
var classes = useStyles();
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
className: classes.progressContainer
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
46
|
+
className: classes.progress,
|
|
47
|
+
size: 100,
|
|
48
|
+
color: "inherit"
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
__signature__(LoadingIcon, "useStyles{classes}", function () {
|
|
52
|
+
return [useStyles];
|
|
53
|
+
});
|
|
54
|
+
__signature__(LoadingIcon, "useStyles{classes}", function () {
|
|
55
|
+
return [useStyles];
|
|
35
56
|
});
|
|
36
57
|
var _default = LoadingIcon;
|
|
37
58
|
var _default2 = _default;
|
|
@@ -42,7 +63,7 @@ var _default3 = exports.default = _default2;
|
|
|
42
63
|
if (!reactHotLoader) {
|
|
43
64
|
return;
|
|
44
65
|
}
|
|
45
|
-
reactHotLoader.register(
|
|
66
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
46
67
|
reactHotLoader.register(LoadingIcon, "LoadingIcon", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
47
68
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
48
69
|
})();
|
|
@@ -57,7 +78,7 @@ var _default3 = exports.default = _default2;
|
|
|
57
78
|
if (!reactHotLoader) {
|
|
58
79
|
return;
|
|
59
80
|
}
|
|
60
|
-
reactHotLoader.register(
|
|
81
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
61
82
|
reactHotLoader.register(LoadingIcon, "LoadingIcon", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
62
83
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/LoadingIcon.js");
|
|
63
84
|
})();
|
|
@@ -48,12 +48,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
48
48
|
},
|
|
49
49
|
containerWide: {
|
|
50
50
|
width: theme.spacing(106.4),
|
|
51
|
-
height: "calc(100% -
|
|
51
|
+
height: "calc(100% - ".concat(theme.spacing(8), ")"),
|
|
52
52
|
maxHeight: theme.spacing(73)
|
|
53
53
|
},
|
|
54
54
|
containerFullwidth: {
|
|
55
|
-
width: "calc(100% -
|
|
56
|
-
height: "calc(100% -
|
|
55
|
+
width: "calc(100% - ".concat(theme.spacing(8), ")"),
|
|
56
|
+
height: "calc(100% - ".concat(theme.spacing(8), ")")
|
|
57
57
|
},
|
|
58
58
|
title: {
|
|
59
59
|
height: theme.spacing(4),
|
|
@@ -63,18 +63,18 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
63
63
|
},
|
|
64
64
|
textSkeleton: {
|
|
65
65
|
width: "100%",
|
|
66
|
-
height: 6,
|
|
66
|
+
height: theme.spacing(0.6),
|
|
67
67
|
animation: false
|
|
68
68
|
},
|
|
69
69
|
chipSkeleton: {
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
70
|
+
width: theme.spacing(6),
|
|
71
|
+
height: theme.spacing(2.5),
|
|
72
72
|
animation: false,
|
|
73
|
-
borderRadius:
|
|
73
|
+
borderRadius: theme.spacing(1.5)
|
|
74
74
|
},
|
|
75
75
|
radioSkeleton: {
|
|
76
|
-
width:
|
|
77
|
-
height:
|
|
76
|
+
width: theme.spacing(1.7),
|
|
77
|
+
height: theme.spacing(1.7),
|
|
78
78
|
animation: false
|
|
79
79
|
},
|
|
80
80
|
root: {
|
|
@@ -96,7 +96,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
96
96
|
},
|
|
97
97
|
active: {
|
|
98
98
|
backgroundColor: "".concat(theme.palette.primary.dark, " !important"),
|
|
99
|
-
boxShadow: "inset
|
|
99
|
+
boxShadow: "inset ".concat(theme.spacing(1, 0, 1, 0.1), " rgba(0,0,0,0.18)"),
|
|
100
100
|
"&:after": {
|
|
101
101
|
borderLeftColor: "".concat(theme.palette.primary.dark, " !important")
|
|
102
102
|
}
|
|
@@ -36,7 +36,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
36
36
|
label: {
|
|
37
37
|
fontSize: theme.typography.h2Size,
|
|
38
38
|
fontFamily: theme.typography.fontFamily,
|
|
39
|
-
fontWeight: theme.typography.
|
|
39
|
+
fontWeight: theme.typography.fontWeightRegular
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
});
|
|
@@ -60,7 +60,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
60
60
|
},
|
|
61
61
|
"&::-webkit-scrollbar-thumb": {
|
|
62
62
|
background: theme.palette.grey.borders,
|
|
63
|
-
border: "
|
|
63
|
+
border: "".concat(theme.spacing(0.5), " white solid"),
|
|
64
64
|
backgroundClip: "padding-box",
|
|
65
65
|
borderRadius: theme.spacing(1.5)
|
|
66
66
|
}
|
|
@@ -353,7 +353,7 @@ var DefaultFullTable = _react.default.forwardRef(function (props, ref) {
|
|
|
353
353
|
isEditingMode: props.isEditingMode,
|
|
354
354
|
context: props.context
|
|
355
355
|
})), props.tableRows.length > 0 ? null : /*#__PURE__*/_react.default.createElement("div", {
|
|
356
|
-
className: props.classes.placeholder
|
|
356
|
+
className: (0, _classnames.default)(props.classes.placeholder, props.customClasses.placeholderContainer)
|
|
357
357
|
}, props.placeholder));
|
|
358
358
|
});
|
|
359
359
|
var FullTableWithSavedScrollbar = _react.default.forwardRef(__signature__(__signature__(function (props, ref) {
|
|
@@ -452,6 +452,7 @@ var Table = _react.default.forwardRef(__signature__(__signature__(function (_ref
|
|
|
452
452
|
customClasses["tableCell"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.tableCell)) || null;
|
|
453
453
|
customClasses["headerCell"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.headerCell)) || null;
|
|
454
454
|
customClasses["tableContainer"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.tableContainer)) || null;
|
|
455
|
+
customClasses["placeholderContainer"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.placeholderContainer)) || null;
|
|
455
456
|
customClasses["container"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.container)) || null;
|
|
456
457
|
customClasses["table"] = (tableProps == null ? void 0 : tableProps.getStyle(_TableProps.default.ruleNames.table)) || null;
|
|
457
458
|
if (selectedRows && !selectedRowsChanged || !selectedRows && selectedRowsChanged) throw new Error("Both 'selectedRows' and 'selectedRowsChanged' need to be defined if one of them is.");
|
|
@@ -44,6 +44,7 @@ var TableProps = /*#__PURE__*/function (_ComponentProps) {
|
|
|
44
44
|
_this.componentClasses.set(_this.constructor.ruleNames.tableCell, null);
|
|
45
45
|
_this.componentClasses.set(_this.constructor.ruleNames.headerCell, null);
|
|
46
46
|
_this.componentClasses.set(_this.constructor.ruleNames.tableContainer, null);
|
|
47
|
+
_this.componentClasses.set(_this.constructor.ruleNames.placeholderContainer, null);
|
|
47
48
|
_this.componentClasses.set(_this.constructor.ruleNames.container, null);
|
|
48
49
|
_this.componentClasses.set(_this.constructor.ruleNames.table, null);
|
|
49
50
|
_this._isTableProps = true;
|
|
@@ -79,7 +80,8 @@ _defineProperty(TableProps, "ruleNames", {
|
|
|
79
80
|
headerCell: "headerCell",
|
|
80
81
|
tableContainer: "tableContainer",
|
|
81
82
|
container: "container",
|
|
82
|
-
table: "table"
|
|
83
|
+
table: "table",
|
|
84
|
+
placeholderContainer: "placeholderContainer"
|
|
83
85
|
});
|
|
84
86
|
var isTableProps = exports.isTableProps = function isTableProps(value) {
|
|
85
87
|
if (value == null) return true;
|
|
@@ -62,7 +62,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
62
62
|
},
|
|
63
63
|
"&::-webkit-scrollbar-thumb": {
|
|
64
64
|
background: theme.palette.grey.borders,
|
|
65
|
-
border: "
|
|
65
|
+
border: "".concat(theme.spacing(0.5), " white solid"),
|
|
66
66
|
backgroundClip: "padding-box",
|
|
67
67
|
borderRadius: theme.spacing(1.5)
|
|
68
68
|
}
|
|
@@ -49,7 +49,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
49
49
|
"&:focus, &:focus-within": {
|
|
50
50
|
borderRadius: theme.shape.borderRadius,
|
|
51
51
|
borderColor: theme.palette.focus,
|
|
52
|
-
boxShadow: "0 0
|
|
52
|
+
boxShadow: "0 0 ".concat(theme.spacing(0.4), " ").concat(theme.palette.focus),
|
|
53
53
|
outline: "none"
|
|
54
54
|
},
|
|
55
55
|
"& .react-datepicker": {
|
|
@@ -125,7 +125,7 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
125
125
|
"&:focus-within": {
|
|
126
126
|
zIndex: 99,
|
|
127
127
|
border: "".concat(theme.spacing(0.1), " solid ").concat(theme.palette.focus),
|
|
128
|
-
boxShadow: "0 0
|
|
128
|
+
boxShadow: "0 0 ".concat(theme.spacing(0.4), " ").concat(theme.palette.focus)
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
selectRoot: {
|