orc-shared 1.2.2-dev.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,43 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
7
|
var _Modal = _interopRequireDefault(require("@material-ui/core/Modal"));
|
|
11
|
-
|
|
12
8
|
var _styles = require("@material-ui/core/styles");
|
|
13
|
-
|
|
14
9
|
var _modalProps = _interopRequireWildcard(require("./modalProps"));
|
|
15
|
-
|
|
16
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
13
|
(function () {
|
|
23
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
15
|
enterModule && enterModule(module);
|
|
25
16
|
})();
|
|
26
|
-
|
|
27
17
|
(function () {
|
|
28
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
29
19
|
enterModule && enterModule(module);
|
|
30
20
|
})();
|
|
31
|
-
|
|
32
21
|
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; }
|
|
33
|
-
|
|
34
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
23
|
return a;
|
|
36
24
|
};
|
|
37
|
-
|
|
38
25
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
39
26
|
return a;
|
|
40
27
|
};
|
|
41
|
-
|
|
42
28
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
43
29
|
return {
|
|
44
30
|
modal: {
|
|
@@ -112,18 +98,14 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
112
98
|
}
|
|
113
99
|
};
|
|
114
100
|
});
|
|
115
|
-
|
|
116
101
|
var Modal = function Modal(_ref) {
|
|
117
102
|
var _modalProps$get, _modalProps$get2, _classNames, _classNames2;
|
|
118
|
-
|
|
119
103
|
var message = _ref.message,
|
|
120
|
-
|
|
104
|
+
modalProps = _ref.modalProps;
|
|
121
105
|
var classes = useStyles();
|
|
122
|
-
|
|
123
106
|
if ((0, _modalProps.isModalProps)(modalProps) === false) {
|
|
124
107
|
throw new TypeError("modalProps property is not of type ModalProps");
|
|
125
108
|
}
|
|
126
|
-
|
|
127
109
|
var open = (_modalProps$get = modalProps == null ? void 0 : modalProps.get(_modalProps.default.propNames.open)) != null ? _modalProps$get : false;
|
|
128
110
|
var title = modalProps == null ? void 0 : modalProps.get(_modalProps.default.propNames.title);
|
|
129
111
|
var actionPanel = modalProps == null ? void 0 : modalProps.get(_modalProps.default.propNames.actionPanel);
|
|
@@ -131,13 +113,11 @@ var Modal = function Modal(_ref) {
|
|
|
131
113
|
var modalType = (_modalProps$get2 = modalProps == null ? void 0 : modalProps.get(_modalProps.default.propNames.type)) != null ? _modalProps$get2 : "normal";
|
|
132
114
|
var containerCls = (0, _classnames.default)((_classNames = {}, _defineProperty(_classNames, classes.containerNormal, modalType === "normal"), _defineProperty(_classNames, classes.containerWide, modalType === "wide"), _defineProperty(_classNames, classes.containerFullwidth, modalType === "fullwidth"), _classNames));
|
|
133
115
|
var messageCls = (0, _classnames.default)((_classNames2 = {}, _defineProperty(_classNames2, classes.message, modalType === "normal"), _defineProperty(_classNames2, classes.messageWide, modalType === "wide" || modalType === "fullwidth"), _classNames2));
|
|
134
|
-
|
|
135
116
|
var onCloseCallback = function onCloseCallback(e, reason) {
|
|
136
117
|
if (backdropClickCallback && reason === "backdropClick") {
|
|
137
118
|
backdropClickCallback(e);
|
|
138
119
|
}
|
|
139
120
|
};
|
|
140
|
-
|
|
141
121
|
var model = /*#__PURE__*/_react.default.createElement(_Modal.default, {
|
|
142
122
|
disablePortal: true,
|
|
143
123
|
disableEnforceFocus: true,
|
|
@@ -154,59 +134,44 @@ var Modal = function Modal(_ref) {
|
|
|
154
134
|
}, message), /*#__PURE__*/_react.default.createElement("div", {
|
|
155
135
|
className: classes.actionPanel
|
|
156
136
|
}, actionPanel)));
|
|
157
|
-
|
|
158
137
|
return model;
|
|
159
138
|
};
|
|
160
|
-
|
|
161
139
|
__signature__(Modal, "useStyles{classes}", function () {
|
|
162
140
|
return [useStyles];
|
|
163
141
|
});
|
|
164
|
-
|
|
165
142
|
__signature__(Modal, "useStyles{classes}", function () {
|
|
166
143
|
return [useStyles];
|
|
167
144
|
});
|
|
168
|
-
|
|
169
145
|
var _default = Modal;
|
|
170
146
|
var _default2 = _default;
|
|
171
147
|
var _default3 = _default2;
|
|
172
148
|
exports.default = _default3;
|
|
173
149
|
;
|
|
174
|
-
|
|
175
150
|
(function () {
|
|
176
151
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
177
|
-
|
|
178
152
|
if (!reactHotLoader) {
|
|
179
153
|
return;
|
|
180
154
|
}
|
|
181
|
-
|
|
182
155
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
183
156
|
reactHotLoader.register(Modal, "Modal", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
184
157
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
185
158
|
})();
|
|
186
|
-
|
|
187
159
|
;
|
|
188
|
-
|
|
189
160
|
(function () {
|
|
190
161
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
191
162
|
leaveModule && leaveModule(module);
|
|
192
163
|
})();
|
|
193
|
-
|
|
194
164
|
;
|
|
195
|
-
|
|
196
165
|
(function () {
|
|
197
166
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
198
|
-
|
|
199
167
|
if (!reactHotLoader) {
|
|
200
168
|
return;
|
|
201
169
|
}
|
|
202
|
-
|
|
203
170
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
204
171
|
reactHotLoader.register(Modal, "Modal", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
205
172
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Modal.js");
|
|
206
173
|
})();
|
|
207
|
-
|
|
208
174
|
;
|
|
209
|
-
|
|
210
175
|
(function () {
|
|
211
176
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
212
177
|
leaveModule && leaveModule(module);
|
|
@@ -2,61 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _styles = require("@material-ui/core/styles");
|
|
9
|
-
|
|
10
7
|
var _Snackbar = _interopRequireDefault(require("@material-ui/core/Snackbar"));
|
|
11
|
-
|
|
12
8
|
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
13
|
-
|
|
14
9
|
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
15
|
-
|
|
16
10
|
var _NotificationProps = _interopRequireDefault(require("./NotificationProps"));
|
|
17
|
-
|
|
18
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
14
|
(function () {
|
|
25
15
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
16
|
enterModule && enterModule(module);
|
|
27
17
|
})();
|
|
28
|
-
|
|
29
18
|
(function () {
|
|
30
19
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31
20
|
enterModule && enterModule(module);
|
|
32
21
|
})();
|
|
33
|
-
|
|
34
22
|
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; }
|
|
35
|
-
|
|
36
23
|
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; }
|
|
37
|
-
|
|
38
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; }
|
|
39
|
-
|
|
40
25
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
-
|
|
42
26
|
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."); }
|
|
43
|
-
|
|
44
27
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
45
|
-
|
|
46
28
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
|
-
|
|
48
29
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
49
|
-
|
|
50
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
-
|
|
52
31
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
53
32
|
return a;
|
|
54
33
|
};
|
|
55
|
-
|
|
56
34
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
57
35
|
return a;
|
|
58
36
|
};
|
|
59
|
-
|
|
60
37
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
61
38
|
return {
|
|
62
39
|
close: {
|
|
@@ -101,31 +78,25 @@ var defaultAnchorOrigin = {
|
|
|
101
78
|
vertical: "top",
|
|
102
79
|
horizontal: "right"
|
|
103
80
|
};
|
|
104
|
-
|
|
105
81
|
var getIconIdByType = function getIconIdByType(type) {
|
|
106
82
|
switch (type) {
|
|
107
83
|
case "success":
|
|
108
84
|
return "checkmark-filled";
|
|
109
|
-
|
|
110
85
|
case "error":
|
|
111
86
|
return "error-cross-filled";
|
|
112
|
-
|
|
113
87
|
default:
|
|
114
88
|
return "";
|
|
115
89
|
}
|
|
116
90
|
};
|
|
117
|
-
|
|
118
91
|
var useNotificationState = function useNotificationState(snackPack, setSnackPack, lastOnly) {
|
|
119
92
|
var _useState = (0, _react.useState)(false),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
93
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
94
|
+
open = _useState2[0],
|
|
95
|
+
setOpen = _useState2[1];
|
|
124
96
|
var _useState3 = (0, _react.useState)(undefined),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
97
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
98
|
+
messageInfo = _useState4[0],
|
|
99
|
+
setMessageInfo = _useState4[1];
|
|
129
100
|
(0, _react.useEffect)(function () {
|
|
130
101
|
if (snackPack.length && !messageInfo) {
|
|
131
102
|
// Set a new snack when we don't have an active one
|
|
@@ -140,19 +111,15 @@ var useNotificationState = function useNotificationState(snackPack, setSnackPack
|
|
|
140
111
|
setOpen(false);
|
|
141
112
|
}
|
|
142
113
|
}, [snackPack, messageInfo, open, lastOnly, setSnackPack]);
|
|
143
|
-
|
|
144
114
|
var handleClose = function handleClose(event, reason) {
|
|
145
115
|
if (reason === "clickaway") {
|
|
146
116
|
return;
|
|
147
117
|
}
|
|
148
|
-
|
|
149
118
|
setOpen(false);
|
|
150
119
|
};
|
|
151
|
-
|
|
152
120
|
var handleExited = function handleExited() {
|
|
153
121
|
setMessageInfo(undefined);
|
|
154
122
|
};
|
|
155
|
-
|
|
156
123
|
return {
|
|
157
124
|
open: open,
|
|
158
125
|
messageInfo: messageInfo,
|
|
@@ -160,28 +127,22 @@ var useNotificationState = function useNotificationState(snackPack, setSnackPack
|
|
|
160
127
|
handleExited: handleExited
|
|
161
128
|
};
|
|
162
129
|
};
|
|
163
|
-
|
|
164
130
|
__signature__(useNotificationState, "useState{[open, setOpen](false)}\nuseState{[messageInfo, setMessageInfo](undefined)}\nuseEffect{}");
|
|
165
|
-
|
|
166
131
|
__signature__(useNotificationState, "useState{[open, setOpen](false)}\nuseState{[messageInfo, setMessageInfo](undefined)}\nuseEffect{}");
|
|
167
|
-
|
|
168
132
|
var Notification = function Notification(_ref) {
|
|
169
133
|
var _notificationProps$ge;
|
|
170
|
-
|
|
171
134
|
var notificationProps = _ref.notificationProps,
|
|
172
|
-
|
|
173
|
-
|
|
135
|
+
snackPack = _ref.snackPack,
|
|
136
|
+
setSnackPack = _ref.setSnackPack;
|
|
174
137
|
var classes = useStyles();
|
|
175
138
|
var autoHideDuration = (notificationProps == null ? void 0 : notificationProps.get(_NotificationProps.default.propNames.autoHideDuration)) || 5000;
|
|
176
139
|
var anchorOrigin = (notificationProps == null ? void 0 : notificationProps.get(_NotificationProps.default.propNames.anchorOrigin)) || defaultAnchorOrigin;
|
|
177
140
|
var lastOnly = (_notificationProps$ge = notificationProps == null ? void 0 : notificationProps.get(_NotificationProps.default.propNames.lastOnly)) != null ? _notificationProps$ge : true;
|
|
178
|
-
|
|
179
141
|
var _useNotificationState = useNotificationState(snackPack, setSnackPack, lastOnly),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
142
|
+
open = _useNotificationState.open,
|
|
143
|
+
messageInfo = _useNotificationState.messageInfo,
|
|
144
|
+
handleClose = _useNotificationState.handleClose,
|
|
145
|
+
handleExited = _useNotificationState.handleExited;
|
|
185
146
|
return messageInfo ? /*#__PURE__*/_react.default.createElement(_Snackbar.default, {
|
|
186
147
|
key: messageInfo.key,
|
|
187
148
|
anchorOrigin: anchorOrigin,
|
|
@@ -209,29 +170,22 @@ var Notification = function Notification(_ref) {
|
|
|
209
170
|
className: classes.closeIcon
|
|
210
171
|
})))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
211
172
|
};
|
|
212
|
-
|
|
213
173
|
__signature__(Notification, "useStyles{classes}\nuseNotificationState{{ open, messageInfo, handleClose, handleExited }}", function () {
|
|
214
174
|
return [useStyles, useNotificationState];
|
|
215
175
|
});
|
|
216
|
-
|
|
217
176
|
__signature__(Notification, "useStyles{classes}\nuseNotificationState{{ open, messageInfo, handleClose, handleExited }}", function () {
|
|
218
177
|
return [useStyles, useNotificationState];
|
|
219
178
|
});
|
|
220
|
-
|
|
221
179
|
var _default = _react.default.memo(Notification);
|
|
222
|
-
|
|
223
180
|
var _default2 = _default;
|
|
224
181
|
var _default3 = _default2;
|
|
225
182
|
exports.default = _default3;
|
|
226
183
|
;
|
|
227
|
-
|
|
228
184
|
(function () {
|
|
229
185
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
230
|
-
|
|
231
186
|
if (!reactHotLoader) {
|
|
232
187
|
return;
|
|
233
188
|
}
|
|
234
|
-
|
|
235
189
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
236
190
|
reactHotLoader.register(defaultAnchorOrigin, "defaultAnchorOrigin", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
237
191
|
reactHotLoader.register(getIconIdByType, "getIconIdByType", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
@@ -239,23 +193,17 @@ exports.default = _default3;
|
|
|
239
193
|
reactHotLoader.register(Notification, "Notification", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
240
194
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
241
195
|
})();
|
|
242
|
-
|
|
243
196
|
;
|
|
244
|
-
|
|
245
197
|
(function () {
|
|
246
198
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
247
199
|
leaveModule && leaveModule(module);
|
|
248
200
|
})();
|
|
249
|
-
|
|
250
201
|
;
|
|
251
|
-
|
|
252
202
|
(function () {
|
|
253
203
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
254
|
-
|
|
255
204
|
if (!reactHotLoader) {
|
|
256
205
|
return;
|
|
257
206
|
}
|
|
258
|
-
|
|
259
207
|
reactHotLoader.register(useStyles, "useStyles", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
260
208
|
reactHotLoader.register(defaultAnchorOrigin, "defaultAnchorOrigin", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
261
209
|
reactHotLoader.register(getIconIdByType, "getIconIdByType", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
@@ -263,9 +211,7 @@ exports.default = _default3;
|
|
|
263
211
|
reactHotLoader.register(Notification, "Notification", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
264
212
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/Notification.js");
|
|
265
213
|
})();
|
|
266
|
-
|
|
267
214
|
;
|
|
268
|
-
|
|
269
215
|
(function () {
|
|
270
216
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
271
217
|
leaveModule && leaveModule(module);
|
|
@@ -2,117 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.isNotificationProps = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _componentProps = _interopRequireDefault(require("../componentProps"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
21
|
-
|
|
22
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
17
|
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
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var NotificationProps = /*#__PURE__*/function (_ComponentProps) {
|
|
35
25
|
_inheritsLoose(NotificationProps, _ComponentProps);
|
|
36
|
-
|
|
37
26
|
function NotificationProps() {
|
|
38
27
|
var _this;
|
|
39
|
-
|
|
40
28
|
_this = _ComponentProps.call(this) || this;
|
|
41
|
-
|
|
42
29
|
_this.componentProps.set(_this.constructor.propNames.autoHideDuration, null);
|
|
43
|
-
|
|
44
30
|
_this.componentProps.set(_this.constructor.propNames.anchorOrigin, null);
|
|
45
|
-
|
|
46
31
|
_this.componentProps.set(_this.constructor.propNames.lastOnly, null);
|
|
47
|
-
|
|
48
32
|
_this._isNotificationProps = true;
|
|
49
33
|
return _this;
|
|
50
34
|
}
|
|
51
|
-
|
|
52
35
|
var _proto = NotificationProps.prototype;
|
|
53
|
-
|
|
54
36
|
// @ts-ignore
|
|
55
37
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
56
38
|
// @ts-ignore
|
|
57
39
|
this[key] = eval(code);
|
|
58
40
|
};
|
|
59
|
-
|
|
60
41
|
return NotificationProps;
|
|
61
42
|
}(_componentProps.default);
|
|
62
|
-
|
|
63
43
|
_defineProperty(NotificationProps, "propNames", {
|
|
64
44
|
autoHideDuration: "autoHideDuration",
|
|
65
45
|
anchorOrigin: "anchorOrigin",
|
|
66
46
|
lastOnly: "lastOnly"
|
|
67
47
|
});
|
|
68
|
-
|
|
69
48
|
var isNotificationProps = function isNotificationProps(value) {
|
|
70
49
|
if (value == null) return true;
|
|
71
50
|
return typeof value === "object" && (value instanceof NotificationProps || value._isNotificationProps === true);
|
|
72
51
|
};
|
|
73
|
-
|
|
74
52
|
exports.isNotificationProps = isNotificationProps;
|
|
75
53
|
var _default = NotificationProps;
|
|
76
54
|
var _default2 = _default;
|
|
77
55
|
var _default3 = _default2;
|
|
78
56
|
exports.default = _default3;
|
|
79
57
|
;
|
|
80
|
-
|
|
81
58
|
(function () {
|
|
82
59
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
83
|
-
|
|
84
60
|
if (!reactHotLoader) {
|
|
85
61
|
return;
|
|
86
62
|
}
|
|
87
|
-
|
|
88
63
|
reactHotLoader.register(NotificationProps, "NotificationProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
89
64
|
reactHotLoader.register(isNotificationProps, "isNotificationProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
90
65
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
91
66
|
})();
|
|
92
|
-
|
|
93
67
|
;
|
|
94
|
-
|
|
95
68
|
(function () {
|
|
96
69
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
97
70
|
leaveModule && leaveModule(module);
|
|
98
71
|
})();
|
|
99
|
-
|
|
100
72
|
;
|
|
101
|
-
|
|
102
73
|
(function () {
|
|
103
74
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
104
|
-
|
|
105
75
|
if (!reactHotLoader) {
|
|
106
76
|
return;
|
|
107
77
|
}
|
|
108
|
-
|
|
109
78
|
reactHotLoader.register(NotificationProps, "NotificationProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
110
79
|
reactHotLoader.register(isNotificationProps, "isNotificationProps", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
111
80
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/NotificationProps.js");
|
|
112
81
|
})();
|
|
113
|
-
|
|
114
82
|
;
|
|
115
|
-
|
|
116
83
|
(function () {
|
|
117
84
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
118
85
|
leaveModule && leaveModule(module);
|
|
@@ -2,77 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _withDeferredPopper = _interopRequireDefault(require("../../hocs/withDeferredPopper"));
|
|
9
|
-
|
|
10
7
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var _default = (0, _withDeferredPopper.default)(_react.default.forwardRef(function (props, ref) {
|
|
35
25
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, _extends({
|
|
36
26
|
ref: ref
|
|
37
27
|
}, props));
|
|
38
28
|
}));
|
|
39
|
-
|
|
40
29
|
var _default2 = _default;
|
|
41
30
|
var _default3 = _default2;
|
|
42
31
|
exports.default = _default3;
|
|
43
32
|
;
|
|
44
|
-
|
|
45
33
|
(function () {
|
|
46
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
|
|
48
35
|
if (!reactHotLoader) {
|
|
49
36
|
return;
|
|
50
37
|
}
|
|
51
|
-
|
|
52
38
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js");
|
|
53
39
|
})();
|
|
54
|
-
|
|
55
40
|
;
|
|
56
|
-
|
|
57
41
|
(function () {
|
|
58
42
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
59
43
|
leaveModule && leaveModule(module);
|
|
60
44
|
})();
|
|
61
|
-
|
|
62
45
|
;
|
|
63
|
-
|
|
64
46
|
(function () {
|
|
65
47
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
66
|
-
|
|
67
48
|
if (!reactHotLoader) {
|
|
68
49
|
return;
|
|
69
50
|
}
|
|
70
|
-
|
|
71
51
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js");
|
|
72
52
|
})();
|
|
73
|
-
|
|
74
53
|
;
|
|
75
|
-
|
|
76
54
|
(function () {
|
|
77
55
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
78
56
|
leaveModule && leaveModule(module);
|