orc-shared 1.1.0-dev.9 → 1.2.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/actions/applications.js +1 -1
- package/dist/actions/authentication.js +1 -1
- package/dist/actions/countries.js +1 -1
- package/dist/actions/locale.js +1 -1
- package/dist/actions/makeApiAction.js +73 -3
- package/dist/actions/makeOrcApiAction.js +2 -2
- package/dist/actions/metadata.js +295 -31
- package/dist/actions/modules.js +63 -1
- package/dist/actions/navigation.js +3 -3
- package/dist/actions/requestState.js +78 -0
- package/dist/actions/requestsApi.js +58 -7
- package/dist/actions/scopes.js +59 -22
- package/dist/actions/timezones.js +1 -1
- package/dist/actions/toasts.js +1 -1
- package/dist/actions/versionInfo.js +1 -1
- package/dist/actions/view.js +1 -1
- package/dist/buildStore.js +7 -4
- package/dist/components/AppFrame/About.js +6 -5
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +115 -62
- package/dist/components/AppFrame/ApplicationSelector/index.js +45 -47
- package/dist/components/AppFrame/MenuItem.js +6 -15
- package/dist/components/AppFrame/Preferences.js +3 -3
- package/dist/components/AppFrame/Sidebar.js +20 -9
- package/dist/components/AppFrame/Topbar.js +1 -1
- package/dist/components/ApplicationModuleLoader.js +143 -0
- package/dist/components/Authenticate.js +13 -13
- package/dist/components/CategoryList.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/DropMenu/Menu.js +1 -1
- package/dist/components/DropMenu/index.js +1 -1
- package/dist/components/Form/FieldList.js +3 -3
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/Inputs/Button.js +1 -1
- package/dist/components/Form/Inputs/FieldButtons.js +1 -1
- package/dist/components/Form/Inputs/Number.js +1 -1
- package/dist/components/Form/Inputs/ReadOnly.js +1 -1
- package/dist/components/Form/Inputs/SmallButton.js +1 -1
- package/dist/components/Form/Inputs/Text.js +1 -1
- package/dist/components/Form/Inputs/Time.js +1 -1
- package/dist/components/Form/Inputs/Toggles.js +1 -1
- package/dist/components/Form/Inputs/Translation.js +3 -3
- package/dist/components/List/HeadCell.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/Row.js +1 -1
- package/dist/components/List/enhanceColumnDefs.js +2 -2
- package/dist/components/MaterialUI/DataDisplay/List.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/Notification.js +2 -2
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +3 -3
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +19 -6
- package/dist/components/MaterialUI/DataDisplay/Table.js +28 -10
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +5 -2
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +5 -2
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/index.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +3 -3
- package/dist/components/MaterialUI/Feedback/useNotification.js +1 -1
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +2 -2
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/DatePicker.js +11 -0
- package/dist/components/MaterialUI/Inputs/InputBase.js +3 -2
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/Select.js +2 -2
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/Switch.js +3 -3
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -1
- package/dist/components/MaterialUI/Inputs/TimePicker.js +19 -8
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -3
- package/dist/components/MaterialUI/Inputs/index.js +1 -1
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -1
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -1
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +113 -0
- package/dist/components/MaterialUI/Navigation/TabBar.js +38 -33
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +6 -4
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +8 -4
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +9 -6
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +11 -2
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +10 -2
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +5 -2
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -1
- package/dist/components/MaterialUI/muiThemes.js +26 -6
- package/dist/components/MaterialUI/textProps.js +1 -1
- package/dist/components/Modules.js +132 -25
- package/dist/components/MultiSelector.js +1 -1
- package/dist/components/Navigation/Bar.js +3 -3
- package/dist/components/Navigation/Tab.js +1 -1
- package/dist/components/Navigation/useNavigationState.js +30 -4
- package/dist/components/Placeholder.js +1 -1
- package/dist/components/Routing/FullPage.js +5 -1
- package/dist/components/Routing/Page.js +5 -3
- package/dist/components/Routing/Segment.js +4 -3
- package/dist/components/Routing/SegmentPage.js +8 -6
- package/dist/components/Routing/withWaypointing.js +14 -4
- package/dist/components/Scope/ScopeNode.js +1 -1
- package/dist/components/Scope/Selector.js +1 -1
- package/dist/components/Scope/index.js +11 -3
- package/dist/components/Scope/useScopeConfirmationModalState.js +7 -16
- package/dist/components/Scope/useScopeData.js +4 -13
- package/dist/components/Scope/useScopeSelect.js +1 -1
- package/dist/components/Selector.js +1 -1
- package/dist/components/Sidepanel.js +1 -2
- package/dist/components/Spritesheet.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/ToastList.js +1 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/Treeview/Label.js +1 -1
- package/dist/components/Treeview/Leaf.js +1 -1
- package/dist/components/Treeview/Node.js +3 -3
- package/dist/components/Treeview/index.js +2 -2
- package/dist/components/Treeview/settings.js +1 -1
- package/dist/constants.js +44 -2
- package/dist/content/icons/html-templates.svg +3 -0
- package/dist/content/icons/lock.svg +3 -0
- package/dist/content/icons/orckestra-icon.svg +5 -0
- package/dist/content/icons/unlock.svg +3 -0
- package/dist/content/iconsSheet.svg +14 -0
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/getThemeOverrides.js +2 -2
- package/dist/hocs/withInfiniteScroll.js +1 -1
- package/dist/hocs/withUpdateHandler.js +2 -2
- package/dist/hooks/useDispatchWithModulesData.js +1 -1
- package/dist/hooks/useEditState.js +3 -3
- package/dist/hooks/useEntityLoader.js +182 -0
- package/dist/hooks/useFullEntityEditState.js +3 -3
- package/dist/hooks/useInfiniteScroll.js +104 -0
- package/dist/hooks/useLabelMessage.js +3 -3
- package/dist/hooks/useLoader.js +1 -0
- package/dist/hooks/useMultipleFieldEditState.js +2 -2
- package/dist/hooks/useNavigationHandler.js +1 -1
- package/dist/hooks/useNotificationRequestState.js +159 -0
- package/dist/hooks/useRequestState.js +146 -0
- package/dist/hooks/useSelectorAndUnwrap.js +1 -1
- package/dist/reducers/metadata.js +52 -26
- package/dist/reducers/modules.js +39 -1
- package/dist/reducers/requestStates.js +181 -0
- package/dist/reducers/scopes.js +27 -0
- package/dist/reducers/settings.js +31 -2
- package/dist/schemas/countries.js +1 -1
- package/dist/schemas/definitions.js +1 -1
- package/dist/schemas/metadata.js +1 -1
- package/dist/schemas/productDefinitions.js +1 -1
- package/dist/schemas/timezones.js +1 -1
- package/dist/selectors/applications.js +1 -1
- package/dist/selectors/authentication.js +57 -19
- package/dist/selectors/countries.js +1 -1
- package/dist/selectors/locale.js +1 -1
- package/dist/selectors/metadata.js +104 -14
- package/dist/selectors/modules.js +15 -1
- package/dist/selectors/navigation.js +1 -1
- package/dist/selectors/requestStates.js +82 -0
- package/dist/selectors/requests.js +1 -1
- package/dist/selectors/scope.js +7 -1
- package/dist/selectors/settings.js +13 -1
- package/dist/selectors/versionInfo.js +1 -1
- package/dist/selectors/view.js +1 -1
- package/dist/sharedMessages.js +44 -0
- package/dist/spawnerMiddleware.js +1 -1
- package/dist/utils/displayModeHelper.js +1 -1
- package/dist/utils/flatten.js +2 -2
- package/dist/utils/localizationHelper.js +1 -1
- package/dist/utils/mapHelper.js +1 -1
- package/dist/utils/modelValidationHelper.js +2 -2
- package/dist/utils/parseHelper.js +1 -1
- package/dist/utils/propertyHelper.js +2 -2
- package/dist/utils/propertyValidator.js +1 -1
- package/dist/utils/setTranslationWithFallback.js +3 -2
- package/dist/utils/testUtils.js +6 -2
- package/dist/utils/timezoneHelper.js +111 -0
- package/dist/utils/unwrapImmutable.js +1 -1
- package/dist/utils/urlHelper.js +11 -1
- package/package.json +6 -9
- package/src/actions/makeApiAction.js +24 -1
- package/src/actions/makeApiAction.test.js +76 -3
- package/src/actions/metadata.js +130 -0
- package/src/actions/metadata.test.js +337 -5
- package/src/actions/modules.js +30 -0
- package/src/actions/modules.test.js +50 -1
- package/src/actions/requestState.js +8 -0
- package/src/actions/requestState.test.js +14 -0
- package/src/actions/requestsApi.js +30 -0
- package/src/actions/scopes.js +33 -7
- package/src/actions/scopes.test.js +84 -14
- package/src/buildStore.js +2 -0
- package/src/components/AppFrame/About.js +2 -2
- package/src/components/AppFrame/AppFrame.test.js +15 -16
- package/src/components/AppFrame/ApplicationSelector/ApplicationDialog.js +105 -82
- package/src/components/AppFrame/ApplicationSelector/ApplicationDialog.test.js +60 -23
- package/src/components/AppFrame/ApplicationSelector/ApplicationSelector.test.js +22 -89
- package/src/components/AppFrame/ApplicationSelector/index.js +34 -15
- package/src/components/AppFrame/MenuItem.js +3 -5
- package/src/components/AppFrame/MenuItem.test.js +2 -24
- package/src/components/AppFrame/Sidebar.js +11 -12
- package/src/components/AppFrame/Sidebar.test.js +18 -0
- package/src/components/AppFrame/Topbar.test.js +2 -4
- package/src/components/ApplicationModuleLoader.js +52 -0
- package/src/components/ApplicationModuleLoader.test.js +149 -0
- package/src/components/Authenticate.js +5 -4
- package/src/components/Authenticate.test.js +23 -4
- package/src/components/MaterialUI/DataDisplay/SelectionList.js +14 -6
- package/src/components/MaterialUI/DataDisplay/SelectionList.test.js +21 -11
- package/src/components/MaterialUI/DataDisplay/Table.js +29 -5
- package/src/components/MaterialUI/DataDisplay/Table.test.js +23 -0
- package/src/components/MaterialUI/DataDisplay/TableProps.js +2 -0
- package/src/components/MaterialUI/DataDisplay/TableProps.test.js +2 -0
- package/src/components/MaterialUI/DataDisplay/TransferList.js +3 -0
- package/src/components/MaterialUI/Inputs/DatePicker.js +11 -0
- package/src/components/MaterialUI/Inputs/InputBase.js +3 -1
- package/src/components/MaterialUI/Inputs/InputBase.test.js +38 -0
- package/src/components/MaterialUI/Inputs/TimePicker.js +9 -3
- package/src/components/MaterialUI/Inputs/TimePicker.test.js +263 -118
- package/src/components/MaterialUI/Navigation/ExternalLink.js +25 -0
- package/src/components/MaterialUI/Navigation/ExternalLink.test.js +26 -0
- package/src/components/MaterialUI/Navigation/TabBar.js +82 -78
- package/src/components/MaterialUI/Navigation/TabBar.test.js +129 -3
- package/src/components/MaterialUI/ScopeSelector/ScopeSelector.js +4 -2
- package/src/components/MaterialUI/ScopeSelector/ScopeSelector.test.js +29 -0
- package/src/components/MaterialUI/ScopeSelector/ScopeTreeView.js +4 -1
- package/src/components/MaterialUI/ScopeSelector/ScopeTreeView.test.js +52 -0
- package/src/components/MaterialUI/ScopeSelector/TreeItem.js +9 -6
- package/src/components/MaterialUI/ScopeSelector/TreeItem.test.js +63 -2
- package/src/components/MaterialUI/Surfaces/ExpansionPanel.js +14 -1
- package/src/components/MaterialUI/Surfaces/ExpansionPanel.test.js +16 -0
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +11 -2
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.test.js +36 -0
- package/src/components/MaterialUI/Surfaces/expansionPanelProps.js +2 -0
- package/src/components/MaterialUI/Surfaces/expansionPanelProps.test.js +2 -2
- package/src/components/MaterialUI/muiThemes.js +23 -3
- package/src/components/Modules.js +108 -13
- package/src/components/Modules.test.js +431 -12
- package/src/components/Navigation/Navigation.test.js +2 -0
- package/src/components/Navigation/useNavigationState.js +21 -1
- package/src/components/Navigation/useNavigationState.test.js +10 -0
- package/src/components/Provision.test.js +34 -0
- package/src/components/Routing/FullPage.js +4 -2
- package/src/components/Routing/FullPage.test.js +75 -0
- package/src/components/Routing/Page.js +2 -2
- package/src/components/Routing/Page.test.js +20 -0
- package/src/components/Routing/Segment.js +5 -2
- package/src/components/Routing/Segment.test.js +22 -1
- package/src/components/Routing/SegmentPage.js +12 -4
- package/src/components/Routing/SubPage.test.js +1 -1
- package/src/components/Routing/withWaypointing.js +19 -17
- package/src/components/Routing/withWaypointing.test.js +81 -3
- package/src/components/Scope/Scope.test.js +117 -0
- package/src/components/Scope/index.js +6 -10
- package/src/components/Scope/useScopeConfirmationModalState.js +5 -16
- package/src/components/Scope/useScopeConfirmationModalState.test.js +39 -13
- package/src/components/Scope/useScopeData.js +0 -3
- package/src/components/Scope/useScopeData.test.js +0 -27
- package/src/components/Sidepanel.js +0 -1
- package/src/components/Sidepanel.test.js +0 -3
- package/src/constants.js +33 -0
- package/src/content/icons/html-templates.svg +3 -0
- package/src/content/icons/lock.svg +3 -0
- package/src/content/icons/orckestra-icon.svg +5 -0
- package/src/content/icons/unlock.svg +3 -0
- package/src/content/iconsSheet.svg +14 -0
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hocs/withScopeData.test.js +0 -31
- package/src/hooks/useEntityLoader.js +68 -0
- package/src/hooks/useEntityLoader.test.js +266 -0
- package/src/hooks/useInfiniteScroll.js +25 -0
- package/src/hooks/useInfiniteScroll.test.js +87 -0
- package/src/hooks/useLoader.js +1 -0
- package/src/hooks/useNotificationRequestState.js +78 -0
- package/src/hooks/useNotificationRequestState.test.js +264 -0
- package/src/hooks/useRequestState.js +57 -0
- package/src/hooks/useRequestState.test.js +217 -0
- package/src/reducers/metadata.js +76 -16
- package/src/reducers/metadata.test.js +458 -4
- package/src/reducers/modules.js +48 -2
- package/src/reducers/modules.test.js +117 -2
- package/src/reducers/requestStates.js +98 -0
- package/src/reducers/requestStates.test.js +399 -0
- package/src/reducers/scopes.js +30 -0
- package/src/reducers/scopes.test.js +45 -1
- package/src/reducers/settings.js +26 -2
- package/src/reducers/settings.test.js +74 -6
- package/src/selectors/authentication.js +53 -28
- package/src/selectors/authentication.test.js +600 -12
- package/src/selectors/locale.test.js +0 -2
- package/src/selectors/metadata.js +73 -13
- package/src/selectors/metadata.test.js +479 -8
- package/src/selectors/modules.js +7 -0
- package/src/selectors/modules.test.js +16 -1
- package/src/selectors/requestStates.js +12 -0
- package/src/selectors/requestStates.test.js +83 -0
- package/src/selectors/scope.js +2 -0
- package/src/selectors/scope.test.js +5 -0
- package/src/selectors/settings.js +6 -0
- package/src/sharedMessages.js +44 -0
- package/src/translations/en-US.json +12 -1
- package/src/translations/fr-CA.json +13 -2
- package/src/utils/modelValidationHelper.js +1 -1
- package/src/utils/setTranslationWithFallback.js +1 -1
- package/src/utils/setTranslationWithFallback.test.js +4 -14
- package/src/utils/testUtils.js +3 -1
- package/src/utils/timezoneHelper.js +140 -0
- package/src/utils/timezoneHelper.test.js +33 -0
- package/src/utils/urlHelper.js +6 -0
- package/src/translations/it-IT.json +0 -54
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _Link = _interopRequireDefault(require("@material-ui/core/Link"));
|
|
9
|
+
|
|
10
|
+
var _Icon = _interopRequireDefault(require("../DataDisplay/Icon"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("@material-ui/core/styles");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
(function () {
|
|
17
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
|
+
enterModule && enterModule(module);
|
|
19
|
+
})();
|
|
20
|
+
|
|
21
|
+
(function () {
|
|
22
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
|
+
enterModule && enterModule(module);
|
|
24
|
+
})();
|
|
25
|
+
|
|
26
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
|
+
return a;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
|
+
return a;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
35
|
+
return {
|
|
36
|
+
icon: {
|
|
37
|
+
paddingLeft: theme.spacing(1),
|
|
38
|
+
width: theme.spacing(1.2),
|
|
39
|
+
color: theme.palette.primary.main
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
var ExternalLink = function ExternalLink(_ref) {
|
|
45
|
+
var id = _ref.id,
|
|
46
|
+
url = _ref.url,
|
|
47
|
+
children = _ref.children;
|
|
48
|
+
var classes = useStyles();
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_Link.default, {
|
|
50
|
+
id: id,
|
|
51
|
+
href: url,
|
|
52
|
+
rel: "noreferrer",
|
|
53
|
+
target: "_blank",
|
|
54
|
+
underline: "always"
|
|
55
|
+
}, children, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
56
|
+
id: "open-in-new-tab",
|
|
57
|
+
className: classes.icon
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
__signature__(ExternalLink, "useStyles{classes}", function () {
|
|
62
|
+
return [useStyles];
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
__signature__(ExternalLink, "useStyles{classes}", function () {
|
|
66
|
+
return [useStyles];
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
var _default = ExternalLink;
|
|
70
|
+
var _default2 = _default;
|
|
71
|
+
var _default3 = _default2;
|
|
72
|
+
exports.default = _default3;
|
|
73
|
+
;
|
|
74
|
+
|
|
75
|
+
(function () {
|
|
76
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
77
|
+
|
|
78
|
+
if (!reactHotLoader) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
83
|
+
reactHotLoader.register(ExternalLink, "ExternalLink", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
84
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
85
|
+
})();
|
|
86
|
+
|
|
87
|
+
;
|
|
88
|
+
|
|
89
|
+
(function () {
|
|
90
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
91
|
+
leaveModule && leaveModule(module);
|
|
92
|
+
})();
|
|
93
|
+
|
|
94
|
+
;
|
|
95
|
+
|
|
96
|
+
(function () {
|
|
97
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
98
|
+
|
|
99
|
+
if (!reactHotLoader) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
104
|
+
reactHotLoader.register(ExternalLink, "ExternalLink", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
105
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Navigation/ExternalLink.js");
|
|
106
|
+
})();
|
|
107
|
+
|
|
108
|
+
;
|
|
109
|
+
|
|
110
|
+
(function () {
|
|
111
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
112
|
+
leaveModule && leaveModule(module);
|
|
113
|
+
})();
|
|
@@ -229,22 +229,20 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
229
229
|
return newIndex;
|
|
230
230
|
};
|
|
231
231
|
|
|
232
|
-
var tabCloseHandler = function tabCloseHandler(event, closeCallback, isModified, href, path, entityIdKey, index) {
|
|
232
|
+
var tabCloseHandler = function tabCloseHandler(event, closeCallback, isModified, href, path, entityIdKey, entityId, index) {
|
|
233
233
|
event.stopPropagation();
|
|
234
234
|
event.preventDefault();
|
|
235
235
|
|
|
236
236
|
if (isModified) {
|
|
237
237
|
setCurrentCloseData({
|
|
238
238
|
closeCallback: closeCallback,
|
|
239
|
-
|
|
240
|
-
path: path,
|
|
241
|
-
entityIdKey: entityIdKey,
|
|
239
|
+
entityId: entityId,
|
|
242
240
|
index: index
|
|
243
241
|
});
|
|
244
242
|
setShowConfirmationModal(true);
|
|
245
243
|
} else {
|
|
246
244
|
closeCallback();
|
|
247
|
-
|
|
245
|
+
dispatch(_view2.removeEditNode, [entityId]);
|
|
248
246
|
handleChange(null, getNewIndex(index));
|
|
249
247
|
}
|
|
250
248
|
};
|
|
@@ -252,17 +250,10 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
252
250
|
var closeTab = function closeTab() {
|
|
253
251
|
setShowConfirmationModal(false);
|
|
254
252
|
currentCloseData.closeCallback();
|
|
255
|
-
|
|
253
|
+
dispatch(_view2.removeEditNode, [currentCloseData.entityId]);
|
|
256
254
|
handleChange(null, getNewIndex(currentCloseData.index));
|
|
257
255
|
};
|
|
258
256
|
|
|
259
|
-
var removeEditState = function removeEditState(href, entityIdKey, path) {
|
|
260
|
-
var newKey = (0, _urlHelper.tryGetNewEntityIdKey)(href);
|
|
261
|
-
var key = entityIdKey === newKey ? entityIdKey : ":".concat(entityIdKey);
|
|
262
|
-
var entityId = (0, _urlHelper.getValueFromUrlByKey)(href, path, key);
|
|
263
|
-
dispatch(_view2.removeEditNode, [entityId]);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
257
|
var moduleIcon = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
267
258
|
id: module.icon,
|
|
268
259
|
className: classes.moduleIcon
|
|
@@ -277,25 +268,9 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
277
268
|
resizeHandler();
|
|
278
269
|
}, [resizeHandler, module, pages]);
|
|
279
270
|
|
|
280
|
-
|
|
281
|
-
var _module$closingTabHan;
|
|
282
|
-
|
|
283
|
-
if ((_module$closingTabHan = module.closingTabHandler) != null && _module$closingTabHan.entitySelector) {
|
|
284
|
-
var actions = pages.map(function (p) {
|
|
285
|
-
var _module$closingTabHan2, _module$closingTabHan3;
|
|
286
|
-
|
|
287
|
-
return {
|
|
288
|
-
entityId: (_module$closingTabHan2 = (_module$closingTabHan3 = module.closingTabHandler.entitySelector(p.params)) == null ? void 0 : _module$closingTabHan3.entityId) != null ? _module$closingTabHan2 : null,
|
|
289
|
-
closeTab: p.close
|
|
290
|
-
};
|
|
291
|
-
}).filter(function (x) {
|
|
292
|
-
return x.entityId != null;
|
|
293
|
-
});
|
|
294
|
-
dispatchRedux((0, _navigation.setClosingTabHandlerActions)(moduleName, actions));
|
|
295
|
-
}
|
|
296
|
-
}, [dispatchRedux, moduleName, pages, module.closingTabHandler]);
|
|
271
|
+
var closingActions = [];
|
|
297
272
|
|
|
298
|
-
|
|
273
|
+
var allTabs = /*#__PURE__*/_react.default.createElement("div", {
|
|
299
274
|
className: classes.container
|
|
300
275
|
}, /*#__PURE__*/_react.default.createElement(_reactResizeDetector.default, {
|
|
301
276
|
onResize: resizeHandler
|
|
@@ -330,11 +305,17 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
330
305
|
params = _ref2.params,
|
|
331
306
|
mustTruncate = _ref2.mustTruncate,
|
|
332
307
|
icon = _ref2.icon,
|
|
333
|
-
isDetails = _ref2.isDetails
|
|
308
|
+
isDetails = _ref2.isDetails,
|
|
309
|
+
entityIdResolver = _ref2.entityIdResolver;
|
|
334
310
|
var entityIdKey = Object.keys(params).find(function (p) {
|
|
335
311
|
return p.toLowerCase().endsWith("id");
|
|
336
312
|
});
|
|
337
313
|
if (!entityIdKey) entityIdKey = (0, _urlHelper.tryGetNewEntityIdKey)(href);
|
|
314
|
+
var entityId = typeof entityIdResolver === "function" ? entityIdResolver({
|
|
315
|
+
match: {
|
|
316
|
+
params: params
|
|
317
|
+
}
|
|
318
|
+
}) : (0, _urlHelper.resolveEntityId)(href, path, entityIdKey);
|
|
338
319
|
var isModified = modifiedTabs.includes(href);
|
|
339
320
|
var isError = tabsWithErrors.includes(href);
|
|
340
321
|
|
|
@@ -366,7 +347,7 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
366
347
|
id: "close",
|
|
367
348
|
className: classes.closeIcon,
|
|
368
349
|
onClick: function onClick(event) {
|
|
369
|
-
return tabCloseHandler(event, close, isModified, href, path, entityIdKey, index);
|
|
350
|
+
return tabCloseHandler(event, close, isModified, href, path, entityIdKey, entityId, index);
|
|
370
351
|
}
|
|
371
352
|
});
|
|
372
353
|
|
|
@@ -375,6 +356,24 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
375
356
|
label: tabLabel,
|
|
376
357
|
sortOrder: index
|
|
377
358
|
});
|
|
359
|
+
|
|
360
|
+
if (entityId != null) {
|
|
361
|
+
closingActions.push({
|
|
362
|
+
entityId: entityId,
|
|
363
|
+
closeTab: function closeTab(event, executeHandlerOnly) {
|
|
364
|
+
if (executeHandlerOnly === void 0) {
|
|
365
|
+
executeHandlerOnly = false;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
close(event, executeHandlerOnly);
|
|
369
|
+
|
|
370
|
+
if (executeHandlerOnly === false) {
|
|
371
|
+
handleChange(null, getNewIndex(index));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
|
|
378
377
|
return /*#__PURE__*/_react.default.createElement(_Tab.default, {
|
|
379
378
|
classes: {
|
|
380
379
|
root: (0, _classnames.default)(classes.tab, !mustTruncate && classes.unsetMaxWidth)
|
|
@@ -401,6 +400,12 @@ var MuiBar = function MuiBar(_ref) {
|
|
|
401
400
|
return setShowConfirmationModal(false);
|
|
402
401
|
}
|
|
403
402
|
}));
|
|
403
|
+
|
|
404
|
+
_react.default.useEffect(function () {
|
|
405
|
+
dispatchRedux((0, _navigation.setClosingTabHandlerActions)(moduleName, closingActions));
|
|
406
|
+
}, [dispatchRedux, moduleName, closingActions]);
|
|
407
|
+
|
|
408
|
+
return allTabs;
|
|
404
409
|
};
|
|
405
410
|
|
|
406
411
|
__signature__(MuiBar, "useRef{tabs}\nuseStyles{classes}\nuseHistory{history}\nuseDispatchWithModulesData{dispatch}\nuseDispatch{dispatchRedux}\nuseState{[showSelect, setShowSelect](false)}\nuseState{[showConfirmationModal, setShowConfirmationModal](false)}\nuseState{[currentCloseData, setCurrentCloseData]}\nuseSelector{modifiedTabs}\nuseSelector{tabsWithErrors}\nuseCallback{resizeHandler}\nuseEffect{}\nuseEffect{}", function () {
|
|
@@ -48,7 +48,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
48
48
|
zIndex: 9999,
|
|
49
49
|
backgroundColor: theme.palette.grey.light,
|
|
50
50
|
border: "1px solid ".concat(theme.palette.grey.borders),
|
|
51
|
-
boxShadow: "0 2px 4px rgba(0,0,0,0.5)"
|
|
51
|
+
boxShadow: "0 2px 4px rgba(0,0,0,0.5)",
|
|
52
|
+
width: theme.spacing(50)
|
|
52
53
|
},
|
|
53
54
|
scopeSelector: {
|
|
54
55
|
display: "flex",
|
|
@@ -71,7 +72,8 @@ var ScopeSelector = function ScopeSelector(_ref) {
|
|
|
71
72
|
selectedScope = _ref.selectedScope,
|
|
72
73
|
closeSelector = _ref.closeSelector,
|
|
73
74
|
filter = _ref.filter,
|
|
74
|
-
updateFilter = _ref.updateFilter
|
|
75
|
+
updateFilter = _ref.updateFilter,
|
|
76
|
+
isScopeSelectable = _ref.isScopeSelectable;
|
|
75
77
|
var classes = useStyles();
|
|
76
78
|
|
|
77
79
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
@@ -94,13 +96,13 @@ var ScopeSelector = function ScopeSelector(_ref) {
|
|
|
94
96
|
getScope: getScope,
|
|
95
97
|
selected: selectedScope.id,
|
|
96
98
|
expanded: selectedScope.scopePath,
|
|
97
|
-
onSelected: closeSelector
|
|
99
|
+
onSelected: closeSelector,
|
|
100
|
+
isScopeSelectable: isScopeSelectable
|
|
98
101
|
})));
|
|
99
102
|
|
|
100
103
|
var scopeSelector = /*#__PURE__*/_react.default.createElement(_Sidepanel.default, {
|
|
101
104
|
className: classes.container,
|
|
102
105
|
in: show,
|
|
103
|
-
width: "27vw",
|
|
104
106
|
timeout: 300
|
|
105
107
|
}, /*#__PURE__*/_react.default.createElement(_ClickAwayListener.default, {
|
|
106
108
|
onClickAway: function onClickAway(e) {
|
|
@@ -49,7 +49,8 @@ var BaseScopeTreeView = function BaseScopeTreeView(_ref) {
|
|
|
49
49
|
initExpanded = _ref$initExpanded === void 0 ? [] : _ref$initExpanded,
|
|
50
50
|
selected = _ref.selected,
|
|
51
51
|
setSelected = _ref.setSelected,
|
|
52
|
-
multipleSelect = _ref.multipleSelect
|
|
52
|
+
multipleSelect = _ref.multipleSelect,
|
|
53
|
+
isScopeSelectable = _ref.isScopeSelectable;
|
|
53
54
|
|
|
54
55
|
var _React$useState = _react.default.useState(initExpanded),
|
|
55
56
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -75,7 +76,8 @@ var BaseScopeTreeView = function BaseScopeTreeView(_ref) {
|
|
|
75
76
|
key: "ScopeSelector-".concat(currentScope.id),
|
|
76
77
|
scope: currentScope,
|
|
77
78
|
rootId: rootId,
|
|
78
|
-
onScopeSelect: onScopeSelect
|
|
79
|
+
onScopeSelect: onScopeSelect,
|
|
80
|
+
isScopeSelectable: isScopeSelectable
|
|
79
81
|
}, currentScope.children.map(function (child) {
|
|
80
82
|
return renderTree(child);
|
|
81
83
|
}));
|
|
@@ -100,7 +102,8 @@ var ScopeTreeView = function ScopeTreeView(_ref2) {
|
|
|
100
102
|
selected = _ref2.selected,
|
|
101
103
|
expanded = _ref2.expanded,
|
|
102
104
|
onSelected = _ref2.onSelected,
|
|
103
|
-
multipleSelect = _ref2.multipleSelect
|
|
105
|
+
multipleSelect = _ref2.multipleSelect,
|
|
106
|
+
isScopeSelectable = _ref2.isScopeSelectable;
|
|
104
107
|
var initialSelected = Array.isArray(selected) ? selected : selected ? [selected] : [];
|
|
105
108
|
|
|
106
109
|
var _React$useState3 = _react.default.useState(initialSelected),
|
|
@@ -115,7 +118,8 @@ var ScopeTreeView = function ScopeTreeView(_ref2) {
|
|
|
115
118
|
initExpanded: expanded,
|
|
116
119
|
selected: currentSelected,
|
|
117
120
|
setSelected: setCurrentSelected,
|
|
118
|
-
multipleSelect: multipleSelect
|
|
121
|
+
multipleSelect: multipleSelect,
|
|
122
|
+
isScopeSelectable: isScopeSelectable
|
|
119
123
|
});
|
|
120
124
|
};
|
|
121
125
|
|
|
@@ -63,8 +63,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
63
63
|
// }
|
|
64
64
|
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
marginRight: 0
|
|
66
|
+
rootIconContainer: {
|
|
67
|
+
marginRight: 0,
|
|
68
|
+
display: "none"
|
|
68
69
|
},
|
|
69
70
|
scopeLabel: {
|
|
70
71
|
position: "relative",
|
|
@@ -215,10 +216,12 @@ var TreeItem = function TreeItem(_ref3) {
|
|
|
215
216
|
var scope = _ref3.scope,
|
|
216
217
|
rootId = _ref3.rootId,
|
|
217
218
|
onScopeSelect = _ref3.onScopeSelect,
|
|
219
|
+
isScopeSelectable = _ref3.isScopeSelectable,
|
|
218
220
|
children = _ref3.children;
|
|
219
221
|
var isRootScope = scope.id === rootId;
|
|
220
222
|
var isVirtualScope = scope.type === _constants.scopeTypes.virtual;
|
|
221
223
|
var hasChildren = scope.children.length > 0;
|
|
224
|
+
var isSelectable = !isVirtualScope && (!isScopeSelectable || isScopeSelectable(scope.id));
|
|
222
225
|
var classes = useStyles({
|
|
223
226
|
isRootScope: isRootScope
|
|
224
227
|
});
|
|
@@ -234,7 +237,7 @@ var TreeItem = function TreeItem(_ref3) {
|
|
|
234
237
|
var onLabelClickHandler = function onLabelClickHandler(event) {
|
|
235
238
|
event.preventDefault();
|
|
236
239
|
|
|
237
|
-
if (
|
|
240
|
+
if (isSelectable) {
|
|
238
241
|
onScopeSelect(event, scope.id);
|
|
239
242
|
}
|
|
240
243
|
};
|
|
@@ -255,9 +258,9 @@ var TreeItem = function TreeItem(_ref3) {
|
|
|
255
258
|
},
|
|
256
259
|
classes: {
|
|
257
260
|
group: classes.group,
|
|
258
|
-
iconContainer: (0, _classnames.default)(_defineProperty({}, classes.
|
|
259
|
-
content: (0, _classnames.default)(_defineProperty({}, classes.virtualScopeContent,
|
|
260
|
-
selected: (0, _classnames.default)(_defineProperty({}, classes.virtualScopeSelected,
|
|
261
|
+
iconContainer: (0, _classnames.default)(_defineProperty({}, classes.rootIconContainer, isRootScope)),
|
|
262
|
+
content: (0, _classnames.default)(_defineProperty({}, classes.virtualScopeContent, !isSelectable)),
|
|
263
|
+
selected: (0, _classnames.default)(_defineProperty({}, classes.virtualScopeSelected, !isSelectable))
|
|
261
264
|
}
|
|
262
265
|
}, children);
|
|
263
266
|
};
|
|
@@ -69,7 +69,14 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
69
69
|
hight: theme.spacing(1),
|
|
70
70
|
width: theme.spacing(1)
|
|
71
71
|
},
|
|
72
|
-
headerPanelExpanded: {}
|
|
72
|
+
headerPanelExpanded: {},
|
|
73
|
+
constrainedSummaryRoot: {
|
|
74
|
+
overflowX: "auto",
|
|
75
|
+
overflowY: "hidden"
|
|
76
|
+
},
|
|
77
|
+
constrainedSummaryContent: {
|
|
78
|
+
minWidth: theme.spacing(83)
|
|
79
|
+
}
|
|
73
80
|
};
|
|
74
81
|
});
|
|
75
82
|
|
|
@@ -94,6 +101,7 @@ var ExpansionPanel = function ExpansionPanel(_ref) {
|
|
|
94
101
|
|
|
95
102
|
var disabled = expansionPanelProps == null ? void 0 : expansionPanelProps.get(_expansionPanelProps.ExpansionPanelProps.propNames.disabled);
|
|
96
103
|
var defaultExpanded = (_expansionPanelProps$ = expansionPanelProps == null ? void 0 : expansionPanelProps.get(_expansionPanelProps.ExpansionPanelProps.propNames.defaultExpanded)) != null ? _expansionPanelProps$ : true;
|
|
104
|
+
var constrained = (expansionPanelProps == null ? void 0 : expansionPanelProps.get(_expansionPanelProps.ExpansionPanelProps.propNames.constrained)) || false;
|
|
97
105
|
|
|
98
106
|
var _React$useState = _react.default.useState(defaultExpanded),
|
|
99
107
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -126,7 +134,8 @@ var ExpansionPanel = function ExpansionPanel(_ref) {
|
|
|
126
134
|
className: classes.expandIcon
|
|
127
135
|
}),
|
|
128
136
|
classes: {
|
|
129
|
-
root: (0, _classnames.default)(classes.expansionPanelHeader, panelSummaryRootStyle),
|
|
137
|
+
root: (0, _classnames.default)(classes.expansionPanelHeader, panelSummaryRootStyle, constrained ? classes.constrainedSummaryRoot : ""),
|
|
138
|
+
content: (0, _classnames.default)(constrained ? classes.constrainedSummaryContent : ""),
|
|
130
139
|
expanded: (0, _classnames.default)(classes.headerPanelExpanded, panelSummaryExpandedStyle)
|
|
131
140
|
}
|
|
132
141
|
}, header), /*#__PURE__*/_react.default.createElement(_AccordionDetails.default, {
|
|
@@ -93,6 +93,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
93
93
|
summaryExpandIconRoot: {
|
|
94
94
|
color: theme.palette.grey.darker,
|
|
95
95
|
minWidth: "auto"
|
|
96
|
+
},
|
|
97
|
+
constrainedSummaryRoot: {
|
|
98
|
+
overflowX: "auto",
|
|
99
|
+
overflowY: "hidden"
|
|
100
|
+
},
|
|
101
|
+
constrainedSummaryContent: {
|
|
102
|
+
minWidth: theme.spacing(83)
|
|
96
103
|
}
|
|
97
104
|
};
|
|
98
105
|
});
|
|
@@ -147,6 +154,7 @@ var SectionExpansionPanel = function SectionExpansionPanel(_ref) {
|
|
|
147
154
|
}; // Expansion panel actions props
|
|
148
155
|
|
|
149
156
|
var disableSpacing = expansionPanelActionsProps == null ? void 0 : expansionPanelActionsProps.get(_expansionPanelProps.ExpansionPanelActionsProps.propNames.disableSpacing);
|
|
157
|
+
var constrained = (expansionPanelProps == null ? void 0 : expansionPanelProps.get(_expansionPanelProps.ExpansionPanelProps.propNames.constrained)) || false;
|
|
150
158
|
return /*#__PURE__*/_react.default.createElement(_Accordion.default, {
|
|
151
159
|
defaultExpanded: defaultExpanded,
|
|
152
160
|
disabled: disabled == null ? false : disabled,
|
|
@@ -162,9 +170,9 @@ var SectionExpansionPanel = function SectionExpansionPanel(_ref) {
|
|
|
162
170
|
}),
|
|
163
171
|
IconButtonProps: defaultSummaryStyles,
|
|
164
172
|
classes: {
|
|
165
|
-
root: (0, _classnames.default)(classes.summaryRoot),
|
|
173
|
+
root: (0, _classnames.default)(classes.summaryRoot, constrained ? classes.constrainedSummaryRoot : ""),
|
|
166
174
|
expanded: (0, _classnames.default)(classes.panelExpanded),
|
|
167
|
-
content: (0, _classnames.default)(classes.summaryContent),
|
|
175
|
+
content: (0, _classnames.default)(classes.summaryContent, constrained ? classes.constrainedSummaryContent : ""),
|
|
168
176
|
expandIcon: (0, _classnames.default)(classes.summaryExpandIconRoot)
|
|
169
177
|
}
|
|
170
178
|
}, header), /*#__PURE__*/_react.default.createElement(_AccordionDetails.default, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.isExpansionPanelProps = exports.isExpansionPanelActionsProps = exports.ExpansionPanelProps = exports.ExpansionPanelActionsProps = void 0;
|
|
5
5
|
|
|
6
6
|
var _componentProps = _interopRequireDefault(require("../componentProps"));
|
|
7
7
|
|
|
@@ -47,6 +47,8 @@ var ExpansionPanelProps = /*#__PURE__*/function (_ComponentProps) {
|
|
|
47
47
|
|
|
48
48
|
_this.componentProps.set(_this.constructor.propNames.onChange, null);
|
|
49
49
|
|
|
50
|
+
_this.componentProps.set(_this.constructor.propNames.constrained, false);
|
|
51
|
+
|
|
50
52
|
_this.componentClasses.set(_this.constructor.ruleNames.root, null);
|
|
51
53
|
|
|
52
54
|
_this.componentClasses.set(_this.constructor.ruleNames.summaryRoot, null);
|
|
@@ -78,7 +80,8 @@ _defineProperty(ExpansionPanelProps, "propNames", {
|
|
|
78
80
|
defaultExpanded: "defaultExpanded",
|
|
79
81
|
disabled: "disabled",
|
|
80
82
|
expanded: "expanded",
|
|
81
|
-
onChange: "onChange"
|
|
83
|
+
onChange: "onChange",
|
|
84
|
+
constrained: "constrained"
|
|
82
85
|
});
|
|
83
86
|
|
|
84
87
|
_defineProperty(ExpansionPanelProps, "ruleNames", {
|
|
@@ -17,9 +17,9 @@ var _colorManipulator = require("@material-ui/core/styles/colorManipulator");
|
|
|
17
17
|
enterModule && enterModule(module);
|
|
18
18
|
})();
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
23
|
|
|
24
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
|
|
@@ -123,7 +123,8 @@ var commonPalette = {
|
|
|
123
123
|
paper: "#FFF",
|
|
124
124
|
default: "#FFF",
|
|
125
125
|
tabs: "#EFEFEF",
|
|
126
|
-
app: "#333"
|
|
126
|
+
app: "#333",
|
|
127
|
+
selectedDate: "#216BA5"
|
|
127
128
|
},
|
|
128
129
|
action: {
|
|
129
130
|
disabledBackground: "#EFEFEF"
|
|
@@ -188,6 +189,11 @@ var setThemeOverrides = function setThemeOverrides(theme) {
|
|
|
188
189
|
}
|
|
189
190
|
})
|
|
190
191
|
}),
|
|
192
|
+
MuiLink: {
|
|
193
|
+
root: {
|
|
194
|
+
fontSize: theme.spacing(1.3)
|
|
195
|
+
}
|
|
196
|
+
},
|
|
191
197
|
MuiButton: _objectSpread(_objectSpread({}, theme.MuiButton), {}, {
|
|
192
198
|
root: {
|
|
193
199
|
padding: "".concat(theme.spacing(0.8), " ").concat(theme.spacing(1)),
|
|
@@ -956,9 +962,6 @@ var setThemeOverrides = function setThemeOverrides(theme) {
|
|
|
956
962
|
top: theme.spacing(1.2),
|
|
957
963
|
left: theme.spacing(-2.1),
|
|
958
964
|
width: theme.spacing(2)
|
|
959
|
-
},
|
|
960
|
-
"&.Mui-expanded:before": {
|
|
961
|
-
width: theme.spacing(1.5)
|
|
962
965
|
}
|
|
963
966
|
}),
|
|
964
967
|
label: _objectSpread(_objectSpread({}, theme.label), {}, {
|
|
@@ -999,6 +1002,23 @@ var setThemeOverrides = function setThemeOverrides(theme) {
|
|
|
999
1002
|
width: "auto",
|
|
1000
1003
|
"& svg": {
|
|
1001
1004
|
fontSize: "10px"
|
|
1005
|
+
},
|
|
1006
|
+
"&:before": {
|
|
1007
|
+
content: "\" \"",
|
|
1008
|
+
position: "absolute",
|
|
1009
|
+
height: theme.spacing(0.1),
|
|
1010
|
+
width: theme.spacing(0.5),
|
|
1011
|
+
left: theme.spacing(-0.5),
|
|
1012
|
+
backgroundColor: theme.palette.grey.light,
|
|
1013
|
+
top: theme.spacing(1.1)
|
|
1014
|
+
},
|
|
1015
|
+
"&:empty": {
|
|
1016
|
+
width: theme.spacing(1),
|
|
1017
|
+
"&:before": {
|
|
1018
|
+
backgroundColor: "transparent",
|
|
1019
|
+
borderTop: "1px solid ".concat(theme.palette.grey.icon),
|
|
1020
|
+
width: theme.spacing(1.5)
|
|
1021
|
+
}
|
|
1002
1022
|
}
|
|
1003
1023
|
})
|
|
1004
1024
|
}),
|