orc-shared 1.5.0-dev.1 → 1.5.0-dev.11
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 +14 -52
- package/dist/actions/authentication.js +10 -45
- package/dist/actions/countries.js +6 -36
- package/dist/actions/locale.js +14 -54
- package/dist/actions/makeApiAction.js +31 -79
- package/dist/actions/makeOrcApiAction.js +3 -26
- package/dist/actions/metadata.js +65 -174
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +3 -33
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +14 -56
- package/dist/actions/tasks.js +190 -0
- package/dist/actions/timezones.js +6 -36
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +6 -39
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +6 -54
- package/dist/components/AppFrame/About.js +8 -70
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +23 -92
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +1 -31
- 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 +17 -70
- package/dist/components/AppFrame/Preferences.js +17 -79
- package/dist/components/AppFrame/Sidebar.js +12 -61
- 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 +7 -46
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +27 -82
- package/dist/components/Checkbox.js +3 -41
- 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 +12 -50
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +6 -37
- package/dist/components/Form/FieldElements.js +9 -41
- package/dist/components/Form/FieldList.js +28 -92
- 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 +17 -66
- package/dist/components/Form/Inputs/Button.js +5 -35
- package/dist/components/Form/Inputs/Date.js +2 -28
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +7 -46
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +6 -38
- package/dist/components/Form/Inputs/Text.js +8 -41
- package/dist/components/Form/Inputs/Time.js +4 -33
- package/dist/components/Form/Inputs/Toggles.js +5 -39
- package/dist/components/Form/Inputs/Translation.js +21 -78
- 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 +0 -28
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +2 -42
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +3 -42
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +37 -107
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +3 -29
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +5 -48
- 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 +7 -51
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +2 -28
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +4 -37
- package/dist/components/MaterialUI/DataDisplay/Notification.js +17 -69
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +3 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +0 -22
- 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 +17 -57
- 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 +14 -60
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +15 -59
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +23 -70
- package/dist/components/MaterialUI/DataDisplay/Table.js +34 -123
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -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 +7 -46
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +0 -21
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +32 -97
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +3 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +3 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +3 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +3 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +5 -68
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +11 -48
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +5 -40
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +5 -44
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +5 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +3 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +3 -40
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +3 -43
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +3 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +3 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +18 -57
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +3 -51
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +12 -65
- 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 +3 -41
- package/dist/components/MaterialUI/Inputs/Select.js +10 -72
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +3 -35
- package/dist/components/MaterialUI/Inputs/Switch.js +4 -38
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +3 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -91
- package/dist/components/MaterialUI/Inputs/createInput.js +5 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +3 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +12 -56
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +3 -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 +22 -103
- package/dist/components/MaterialUI/Navigation/TabLabel.js +7 -41
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +22 -62
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +16 -68
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +15 -55
- 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 +19 -62
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +3 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +3 -36
- package/dist/components/MaterialUI/componentProps.js +3 -29
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +10 -59
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +8 -44
- package/dist/components/MaterialUI/muiThemes.js +5 -57
- package/dist/components/MaterialUI/textProps.js +3 -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 +8 -44
- package/dist/components/Modules.js +21 -93
- package/dist/components/MultiSelector.js +21 -74
- package/dist/components/Navigation/Bar.js +29 -90
- package/dist/components/Navigation/Tab.js +22 -74
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +90 -173
- package/dist/components/Placeholder.js +5 -43
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +14 -51
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +26 -106
- package/dist/components/Routing/SubPage.js +22 -59
- package/dist/components/Routing/withWaypointing.js +5 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +8 -49
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +29 -96
- package/dist/components/Scope/useScopeConfirmationModalState.js +33 -100
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +15 -76
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +11 -51
- package/dist/components/TaskDetailsModal.js +193 -0
- package/dist/components/Text.js +6 -50
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +16 -74
- 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 +17 -55
- package/dist/components/Treeview/index.js +25 -66
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +21 -19
- package/dist/content/iconsSheet.svg +22 -0
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +3 -22
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +2 -28
- package/dist/hocs/withErrorBoundary.js +2 -37
- package/dist/hocs/withId.js +1 -30
- 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 +5 -32
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +6 -33
- package/dist/hocs/withScrollBox.js +2 -31
- package/dist/hocs/withToggle.js +9 -37
- package/dist/hocs/withUpdateHandler.js +3 -23
- package/dist/hocs/withViewState.js +5 -32
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +10 -105
- package/dist/hooks/useEntityLoader.js +18 -67
- package/dist/hooks/useFullEntityEditState.js +9 -56
- package/dist/hooks/useInfiniteScroll.js +5 -33
- package/dist/hooks/useLabelMessage.js +3 -42
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +3 -40
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +17 -47
- 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 +5 -35
- 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 +6 -37
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +3 -63
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +4 -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/tasks.js +99 -0
- 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 +17 -41
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +4 -45
- package/dist/selectors/modules.js +3 -22
- 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/tasks.js +66 -0
- 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 +17 -18
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +7 -38
- 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 +7 -38
- 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 +3 -42
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +2 -24
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +36 -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 +1 -28
- package/dist/utils/setTranslationWithFallback.js +1 -33
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +14 -91
- package/dist/utils/timezoneHelper.js +8 -46
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +3 -28
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +3 -3
- package/src/actions/tasks.js +77 -0
- package/src/actions/tasks.test.js +169 -0
- package/src/buildStore.js +2 -0
- package/src/components/AppFrame/About.test.js +3 -3
- package/src/components/AppFrame/Sidebar.js +4 -3
- package/src/components/Routing/SubPage.js +17 -2
- package/src/components/Routing/SubPage.test.js +168 -1
- package/src/components/TaskDetailsModal.js +132 -0
- package/src/components/TaskDetailsModal.test.js +317 -0
- package/src/components/Text.test.js +44 -59
- package/src/constants.js +15 -0
- package/src/content/iconsSheet.svg +22 -0
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hooks/useEditState.js +12 -2
- package/src/hooks/useEditState.test.js +1 -1
- package/src/hooks/useLabelMessage.test.js +16 -10
- package/src/reducers/request.js +4 -0
- package/src/reducers/request.test.js +11 -0
- package/src/reducers/tasks.js +56 -0
- package/src/reducers/tasks.test.js +404 -0
- package/src/selectors/authentication.js +13 -0
- package/src/selectors/authentication.test.js +322 -0
- package/src/selectors/tasks.js +16 -0
- package/src/selectors/tasks.test.js +60 -0
- package/src/sharedMessages.js +17 -1
- package/src/translations/en-US.json +16 -12
- package/src/translations/fr-CA.json +16 -12
- package/src/utils/propertyHelper.js +38 -0
- package/src/utils/propertyHelper.test.js +160 -0
- package/src/utils/timezoneHelper.test.js +4 -2
|
@@ -2,37 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _useSelectorAndUnwrap2 = _interopRequireDefault(require("./useSelectorAndUnwrap"));
|
|
7
|
-
|
|
8
6
|
var _requestStates = require("../selectors/requestStates");
|
|
9
|
-
|
|
10
7
|
var _react = require("react");
|
|
11
|
-
|
|
12
8
|
var _reactRedux = require("react-redux");
|
|
13
|
-
|
|
14
9
|
var _requestState = require("../actions/requestState");
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
(function () {
|
|
19
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
13
|
enterModule && enterModule(module);
|
|
21
14
|
})();
|
|
22
|
-
|
|
23
15
|
(function () {
|
|
24
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
25
17
|
enterModule && enterModule(module);
|
|
26
18
|
})();
|
|
27
|
-
|
|
28
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
20
|
return a;
|
|
30
21
|
};
|
|
31
|
-
|
|
32
22
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
23
|
return a;
|
|
34
24
|
};
|
|
35
|
-
|
|
36
25
|
/*
|
|
37
26
|
This hook is used to handle custom action after deletes and updates requests. We can add additional operation if required.
|
|
38
27
|
We have a reducer scanning every request for a special payload (meta.requestState).
|
|
@@ -54,92 +43,73 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
54
43
|
}
|
|
55
44
|
}
|
|
56
45
|
*/
|
|
46
|
+
|
|
57
47
|
var useRequestState = function useRequestState(_ref) {
|
|
58
48
|
var keys = _ref.keys,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
operation = _ref.operation,
|
|
50
|
+
successAction = _ref.successAction,
|
|
51
|
+
errorAction = _ref.errorAction;
|
|
63
52
|
var _useSelectorAndUnwrap = (0, _useSelectorAndUnwrap2.default)((0, _requestStates.getRequestStateInfo)(operation, keys)),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
53
|
+
inProgress = _useSelectorAndUnwrap.inProgress,
|
|
54
|
+
value = _useSelectorAndUnwrap.value,
|
|
55
|
+
error = _useSelectorAndUnwrap.error,
|
|
56
|
+
errorResponse = _useSelectorAndUnwrap.errorResponse;
|
|
69
57
|
var dispatch = (0, _reactRedux.useDispatch)();
|
|
70
58
|
(0, _react.useEffect)(function () {
|
|
71
59
|
if (value && !inProgress && !error) {
|
|
72
60
|
dispatch((0, _requestState.resetRequestState)(keys, operation));
|
|
73
|
-
|
|
74
61
|
if (successAction) {
|
|
75
62
|
successAction();
|
|
76
63
|
}
|
|
77
64
|
} else if (!value && !inProgress && error) {
|
|
78
65
|
dispatch((0, _requestState.resetRequestState)(keys, operation));
|
|
79
|
-
|
|
80
66
|
if (errorAction) {
|
|
81
67
|
errorAction(errorResponse);
|
|
82
68
|
}
|
|
83
69
|
}
|
|
84
70
|
}, [dispatch, keys, operation, successAction, errorAction, errorResponse, inProgress, value, error]);
|
|
85
|
-
|
|
86
71
|
var buildRequestState = function buildRequestState() {
|
|
87
72
|
return {
|
|
88
73
|
keys: keys,
|
|
89
74
|
operation: operation
|
|
90
75
|
};
|
|
91
76
|
};
|
|
92
|
-
|
|
93
77
|
return [buildRequestState];
|
|
94
78
|
};
|
|
95
|
-
|
|
96
79
|
__signature__(useRequestState, "useSelectorAndUnwrap{{ inProgress, value, error, errorResponse }}\nuseDispatch{dispatch}\nuseEffect{}", function () {
|
|
97
80
|
return [_useSelectorAndUnwrap2.default, _reactRedux.useDispatch];
|
|
98
81
|
});
|
|
99
|
-
|
|
100
82
|
__signature__(useRequestState, "useSelectorAndUnwrap{{ inProgress, value, error, errorResponse }}\nuseDispatch{dispatch}\nuseEffect{}", function () {
|
|
101
83
|
return [_useSelectorAndUnwrap2.default, _reactRedux.useDispatch];
|
|
102
84
|
});
|
|
103
|
-
|
|
104
85
|
var _default = useRequestState;
|
|
105
86
|
var _default2 = _default;
|
|
106
87
|
var _default3 = _default2;
|
|
107
88
|
exports.default = _default3;
|
|
108
89
|
;
|
|
109
|
-
|
|
110
90
|
(function () {
|
|
111
91
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
112
|
-
|
|
113
92
|
if (!reactHotLoader) {
|
|
114
93
|
return;
|
|
115
94
|
}
|
|
116
|
-
|
|
117
95
|
reactHotLoader.register(useRequestState, "useRequestState", "/home/vsts/work/1/s/src/hooks/useRequestState.js");
|
|
118
96
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useRequestState.js");
|
|
119
97
|
})();
|
|
120
|
-
|
|
121
98
|
;
|
|
122
|
-
|
|
123
99
|
(function () {
|
|
124
100
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
125
101
|
leaveModule && leaveModule(module);
|
|
126
102
|
})();
|
|
127
|
-
|
|
128
103
|
;
|
|
129
|
-
|
|
130
104
|
(function () {
|
|
131
105
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
132
|
-
|
|
133
106
|
if (!reactHotLoader) {
|
|
134
107
|
return;
|
|
135
108
|
}
|
|
136
|
-
|
|
137
109
|
reactHotLoader.register(useRequestState, "useRequestState", "/home/vsts/work/1/s/src/hooks/useRequestState.js");
|
|
138
110
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useRequestState.js");
|
|
139
111
|
})();
|
|
140
|
-
|
|
141
112
|
;
|
|
142
|
-
|
|
143
113
|
(function () {
|
|
144
114
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
145
115
|
leaveModule && leaveModule(module);
|
|
@@ -2,84 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useSelectorAndUnwrap = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _unwrapImmutable = _interopRequireDefault(require("./../utils/unwrapImmutable"));
|
|
7
|
-
|
|
8
6
|
var _reactRedux = require("react-redux");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
var useSelectorAndUnwrap = function useSelectorAndUnwrap(selector) {
|
|
31
23
|
return (0, _unwrapImmutable.default)((0, _reactRedux.useSelector)(selector));
|
|
32
24
|
};
|
|
33
|
-
|
|
34
25
|
exports.useSelectorAndUnwrap = useSelectorAndUnwrap;
|
|
35
|
-
|
|
36
26
|
__signature__(useSelectorAndUnwrap, "useSelector{}", function () {
|
|
37
27
|
return [_reactRedux.useSelector];
|
|
38
28
|
});
|
|
39
|
-
|
|
40
29
|
__signature__(useSelectorAndUnwrap, "useSelector{}", function () {
|
|
41
30
|
return [_reactRedux.useSelector];
|
|
42
31
|
});
|
|
43
|
-
|
|
44
32
|
var _default = useSelectorAndUnwrap;
|
|
45
33
|
var _default2 = _default;
|
|
46
34
|
var _default3 = _default2;
|
|
47
35
|
exports.default = _default3;
|
|
48
36
|
;
|
|
49
|
-
|
|
50
37
|
(function () {
|
|
51
38
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
52
|
-
|
|
53
39
|
if (!reactHotLoader) {
|
|
54
40
|
return;
|
|
55
41
|
}
|
|
56
|
-
|
|
57
42
|
reactHotLoader.register(useSelectorAndUnwrap, "useSelectorAndUnwrap", "/home/vsts/work/1/s/src/hooks/useSelectorAndUnwrap.js");
|
|
58
43
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useSelectorAndUnwrap.js");
|
|
59
44
|
})();
|
|
60
|
-
|
|
61
45
|
;
|
|
62
|
-
|
|
63
46
|
(function () {
|
|
64
47
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
65
48
|
leaveModule && leaveModule(module);
|
|
66
49
|
})();
|
|
67
|
-
|
|
68
50
|
;
|
|
69
|
-
|
|
70
51
|
(function () {
|
|
71
52
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
72
|
-
|
|
73
53
|
if (!reactHotLoader) {
|
|
74
54
|
return;
|
|
75
55
|
}
|
|
76
|
-
|
|
77
56
|
reactHotLoader.register(useSelectorAndUnwrap, "useSelectorAndUnwrap", "/home/vsts/work/1/s/src/hooks/useSelectorAndUnwrap.js");
|
|
78
57
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useSelectorAndUnwrap.js");
|
|
79
58
|
})();
|
|
80
|
-
|
|
81
59
|
;
|
|
82
|
-
|
|
83
60
|
(function () {
|
|
84
61
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
85
62
|
leaveModule && leaveModule(module);
|
package/dist/hooks/useToggle.js
CHANGED
|
@@ -2,103 +2,73 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("react");
|
|
7
|
-
|
|
8
6
|
(function () {
|
|
9
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
8
|
enterModule && enterModule(module);
|
|
11
9
|
})();
|
|
12
|
-
|
|
13
10
|
(function () {
|
|
14
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
12
|
enterModule && enterModule(module);
|
|
16
13
|
})();
|
|
17
|
-
|
|
18
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
-
|
|
20
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
-
|
|
22
16
|
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); }
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
17
|
+
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; }
|
|
18
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
28
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
|
-
|
|
30
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
21
|
return a;
|
|
32
22
|
};
|
|
33
|
-
|
|
34
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
24
|
return a;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
26
|
var useToggle = function useToggle(init) {
|
|
39
27
|
if (init === void 0) {
|
|
40
28
|
init = false;
|
|
41
29
|
}
|
|
42
|
-
|
|
43
30
|
var _useState = (0, _react.useState)(!!init),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
flag = _useState2[0],
|
|
33
|
+
setFlag = _useState2[1];
|
|
48
34
|
var toggle = function toggle() {
|
|
49
35
|
return setFlag(!flag);
|
|
50
36
|
};
|
|
51
|
-
|
|
52
37
|
var reset = function reset() {
|
|
53
38
|
return setFlag(!!init);
|
|
54
39
|
};
|
|
55
|
-
|
|
56
40
|
return [flag, toggle, reset];
|
|
57
41
|
};
|
|
58
|
-
|
|
59
42
|
__signature__(useToggle, "useState{[flag, setFlag](!!init)}");
|
|
60
|
-
|
|
61
43
|
__signature__(useToggle, "useState{[flag, setFlag](!!init)}");
|
|
62
|
-
|
|
63
44
|
var _default = useToggle;
|
|
64
45
|
var _default2 = _default;
|
|
65
46
|
var _default3 = _default2;
|
|
66
47
|
exports.default = _default3;
|
|
67
48
|
;
|
|
68
|
-
|
|
69
49
|
(function () {
|
|
70
50
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
71
|
-
|
|
72
51
|
if (!reactHotLoader) {
|
|
73
52
|
return;
|
|
74
53
|
}
|
|
75
|
-
|
|
76
54
|
reactHotLoader.register(useToggle, "useToggle", "/home/vsts/work/1/s/src/hooks/useToggle.js");
|
|
77
55
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useToggle.js");
|
|
78
56
|
})();
|
|
79
|
-
|
|
80
57
|
;
|
|
81
|
-
|
|
82
58
|
(function () {
|
|
83
59
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
84
60
|
leaveModule && leaveModule(module);
|
|
85
61
|
})();
|
|
86
|
-
|
|
87
62
|
;
|
|
88
|
-
|
|
89
63
|
(function () {
|
|
90
64
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
91
|
-
|
|
92
65
|
if (!reactHotLoader) {
|
|
93
66
|
return;
|
|
94
67
|
}
|
|
95
|
-
|
|
96
68
|
reactHotLoader.register(useToggle, "useToggle", "/home/vsts/work/1/s/src/hooks/useToggle.js");
|
|
97
69
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useToggle.js");
|
|
98
70
|
})();
|
|
99
|
-
|
|
100
71
|
;
|
|
101
|
-
|
|
102
72
|
(function () {
|
|
103
73
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
104
74
|
leaveModule && leaveModule(module);
|
|
@@ -2,33 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("react");
|
|
7
|
-
|
|
8
6
|
var _reactRedux = require("react-redux");
|
|
9
|
-
|
|
10
7
|
var _utils = require("../utils");
|
|
11
|
-
|
|
12
8
|
var _view = require("../actions/view");
|
|
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
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
18
|
return a;
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
21
|
return a;
|
|
30
22
|
};
|
|
31
|
-
|
|
32
23
|
var useViewState = function useViewState(name) {
|
|
33
24
|
var viewState = (0, _utils.unwrapImmutable)((0, _reactRedux.useSelector)(function (state) {
|
|
34
25
|
return state.getIn(["view", name]);
|
|
@@ -42,54 +33,40 @@ var useViewState = function useViewState(name) {
|
|
|
42
33
|
}, [dispatch, name]);
|
|
43
34
|
return [viewState, updateViewState, resetViewState];
|
|
44
35
|
};
|
|
45
|
-
|
|
46
36
|
__signature__(useViewState, "useSelector{}\nuseDispatch{dispatch}\nuseCallback{updateViewState}\nuseCallback{resetViewState}", function () {
|
|
47
37
|
return [_reactRedux.useSelector, _reactRedux.useDispatch];
|
|
48
38
|
});
|
|
49
|
-
|
|
50
39
|
__signature__(useViewState, "useSelector{}\nuseDispatch{dispatch}\nuseCallback{updateViewState}\nuseCallback{resetViewState}", function () {
|
|
51
40
|
return [_reactRedux.useSelector, _reactRedux.useDispatch];
|
|
52
41
|
});
|
|
53
|
-
|
|
54
42
|
var _default = useViewState;
|
|
55
43
|
var _default2 = _default;
|
|
56
44
|
var _default3 = _default2;
|
|
57
45
|
exports.default = _default3;
|
|
58
46
|
;
|
|
59
|
-
|
|
60
47
|
(function () {
|
|
61
48
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
62
|
-
|
|
63
49
|
if (!reactHotLoader) {
|
|
64
50
|
return;
|
|
65
51
|
}
|
|
66
|
-
|
|
67
52
|
reactHotLoader.register(useViewState, "useViewState", "/home/vsts/work/1/s/src/hooks/useViewState.js");
|
|
68
53
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useViewState.js");
|
|
69
54
|
})();
|
|
70
|
-
|
|
71
55
|
;
|
|
72
|
-
|
|
73
56
|
(function () {
|
|
74
57
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
75
58
|
leaveModule && leaveModule(module);
|
|
76
59
|
})();
|
|
77
|
-
|
|
78
60
|
;
|
|
79
|
-
|
|
80
61
|
(function () {
|
|
81
62
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
82
|
-
|
|
83
63
|
if (!reactHotLoader) {
|
|
84
64
|
return;
|
|
85
65
|
}
|
|
86
|
-
|
|
87
66
|
reactHotLoader.register(useViewState, "useViewState", "/home/vsts/work/1/s/src/hooks/useViewState.js");
|
|
88
67
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useViewState.js");
|
|
89
68
|
})();
|
|
90
|
-
|
|
91
69
|
;
|
|
92
|
-
|
|
93
70
|
(function () {
|
|
94
71
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
95
72
|
leaveModule && leaveModule(module);
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
4
4
|
return a;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
8
7
|
return a;
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
// this is temporar fix which is applied because after last changes in dep packages
|
|
12
10
|
// callBound.js in call-bind packages (which is dependancy of object.assign which is dep of enzyme)
|
|
13
11
|
// does not resolves require('./') relatively itself
|
|
@@ -15,5 +13,6 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
15
13
|
// this behavior most likely comes from jest resolved
|
|
16
14
|
// also maybe it will be fixed in future as part of enzyme
|
|
17
15
|
module.exports = require("call-bind");
|
|
16
|
+
|
|
18
17
|
/* istanbul ignore next */
|
|
19
18
|
//throw new Error("Import files directly from this package's subdirectories");
|
|
@@ -2,92 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _applications = require("../actions/applications");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
var initialState = _immutable.default.fromJS({
|
|
31
23
|
list: []
|
|
32
24
|
});
|
|
33
|
-
|
|
34
25
|
var applicationReducer = function applicationReducer(state, action) {
|
|
35
26
|
if (state === void 0) {
|
|
36
27
|
state = initialState;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
29
|
switch (action.type) {
|
|
40
30
|
case _applications.GET_APPLICATIONS_SUCCESS:
|
|
41
31
|
{
|
|
42
32
|
return state.set("list", _immutable.default.fromJS(action.payload));
|
|
43
33
|
}
|
|
44
|
-
|
|
45
34
|
default:
|
|
46
35
|
return state;
|
|
47
36
|
}
|
|
48
37
|
};
|
|
49
|
-
|
|
50
38
|
var _default = applicationReducer;
|
|
51
39
|
var _default2 = _default;
|
|
52
40
|
var _default3 = _default2;
|
|
53
41
|
exports.default = _default3;
|
|
54
42
|
;
|
|
55
|
-
|
|
56
43
|
(function () {
|
|
57
44
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
58
|
-
|
|
59
45
|
if (!reactHotLoader) {
|
|
60
46
|
return;
|
|
61
47
|
}
|
|
62
|
-
|
|
63
48
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
64
49
|
reactHotLoader.register(applicationReducer, "applicationReducer", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
65
50
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
66
51
|
})();
|
|
67
|
-
|
|
68
52
|
;
|
|
69
|
-
|
|
70
53
|
(function () {
|
|
71
54
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
72
55
|
leaveModule && leaveModule(module);
|
|
73
56
|
})();
|
|
74
|
-
|
|
75
57
|
;
|
|
76
|
-
|
|
77
58
|
(function () {
|
|
78
59
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
79
|
-
|
|
80
60
|
if (!reactHotLoader) {
|
|
81
61
|
return;
|
|
82
62
|
}
|
|
83
|
-
|
|
84
63
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
85
64
|
reactHotLoader.register(applicationReducer, "applicationReducer", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
86
65
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/applications.js");
|
|
87
66
|
})();
|
|
88
|
-
|
|
89
67
|
;
|
|
90
|
-
|
|
91
68
|
(function () {
|
|
92
69
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
93
70
|
leaveModule && leaveModule(module);
|
|
@@ -2,54 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
var _authentication = require("../actions/authentication");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
-
|
|
24
17
|
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."); }
|
|
25
|
-
|
|
26
18
|
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); }
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
19
|
+
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; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
32
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
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 initialState = _immutable.default.fromJS({
|
|
43
29
|
upn: null,
|
|
44
30
|
name: null,
|
|
45
31
|
rolesClaimsValues: {}
|
|
46
32
|
});
|
|
47
|
-
|
|
48
33
|
var authenticationReducer = function authenticationReducer(state, action) {
|
|
49
34
|
if (state === void 0) {
|
|
50
35
|
state = initialState;
|
|
51
36
|
}
|
|
52
|
-
|
|
53
37
|
switch (action.type) {
|
|
54
38
|
case _authentication.GET_AUTHENTICATION_PROFILE_SUCCESS:
|
|
55
39
|
return state.withMutations(function (s) {
|
|
@@ -58,65 +42,50 @@ var authenticationReducer = function authenticationReducer(state, action) {
|
|
|
58
42
|
var claims = action.payload.rolesClaimsValues;
|
|
59
43
|
claims.forEach(function (claim) {
|
|
60
44
|
var _claim$split = claim.split("/"),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
45
|
+
_claim$split2 = _slicedToArray(_claim$split, 3),
|
|
46
|
+
app = _claim$split2[0],
|
|
47
|
+
scope = _claim$split2[1],
|
|
48
|
+
role = _claim$split2[2];
|
|
66
49
|
s.setIn(["rolesClaimsValues", app, scope, role], true);
|
|
67
50
|
});
|
|
68
51
|
});
|
|
69
|
-
|
|
70
52
|
case _authentication.SIGN_OUT_SUCCESS:
|
|
71
53
|
window.location.assign(action.payload);
|
|
72
54
|
return state;
|
|
73
|
-
|
|
74
55
|
default:
|
|
75
56
|
return state;
|
|
76
57
|
}
|
|
77
58
|
};
|
|
78
|
-
|
|
79
59
|
var _default = authenticationReducer;
|
|
80
60
|
var _default2 = _default;
|
|
81
61
|
var _default3 = _default2;
|
|
82
62
|
exports.default = _default3;
|
|
83
63
|
;
|
|
84
|
-
|
|
85
64
|
(function () {
|
|
86
65
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
87
|
-
|
|
88
66
|
if (!reactHotLoader) {
|
|
89
67
|
return;
|
|
90
68
|
}
|
|
91
|
-
|
|
92
69
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
93
70
|
reactHotLoader.register(authenticationReducer, "authenticationReducer", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
94
71
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
95
72
|
})();
|
|
96
|
-
|
|
97
73
|
;
|
|
98
|
-
|
|
99
74
|
(function () {
|
|
100
75
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
101
76
|
leaveModule && leaveModule(module);
|
|
102
77
|
})();
|
|
103
|
-
|
|
104
78
|
;
|
|
105
|
-
|
|
106
79
|
(function () {
|
|
107
80
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
108
|
-
|
|
109
81
|
if (!reactHotLoader) {
|
|
110
82
|
return;
|
|
111
83
|
}
|
|
112
|
-
|
|
113
84
|
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
114
85
|
reactHotLoader.register(authenticationReducer, "authenticationReducer", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
115
86
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/authentication.js");
|
|
116
87
|
})();
|
|
117
|
-
|
|
118
88
|
;
|
|
119
|
-
|
|
120
89
|
(function () {
|
|
121
90
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122
91
|
leaveModule && leaveModule(module);
|