orc-shared 1.3.0-pre.2 → 1.3.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 +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 +33 -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 +1 -17
- package/dist/actions/scopes.js +14 -56
- 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 +3 -53
- 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 +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 +17 -79
- 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 +7 -46
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +33 -82
- 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 +12 -50
- 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 +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 +18 -67
- 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 +22 -79
- 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 +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 +3 -29
- 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 +4 -35
- 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 +3 -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 +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 +35 -124
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +4 -50
- 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 +8 -47
- 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 +33 -98
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +4 -39
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +4 -38
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +4 -42
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +4 -37
- 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 +6 -45
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +4 -38
- 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 +4 -39
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +4 -40
- package/dist/components/MaterialUI/Inputs/DatePicker.js +19 -58
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +4 -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 +4 -42
- package/dist/components/MaterialUI/Inputs/Select.js +11 -73
- package/dist/components/MaterialUI/Inputs/SelectProps.js +4 -47
- 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 +4 -41
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -91
- package/dist/components/MaterialUI/Inputs/createInput.js +6 -31
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +4 -42
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +12 -56
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +4 -34
- 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 +23 -104
- 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 +4 -56
- package/dist/components/MaterialUI/Surfaces/paperProps.js +4 -37
- package/dist/components/MaterialUI/componentProps.js +3 -29
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +11 -60
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +8 -45
- package/dist/components/MaterialUI/muiThemes.js +5 -57
- package/dist/components/MaterialUI/textProps.js +4 -34
- 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 +22 -94
- package/dist/components/MultiSelector.js +22 -75
- package/dist/components/Navigation/Bar.js +29 -90
- package/dist/components/Navigation/Tab.js +22 -74
- package/dist/components/Navigation/index.js +1 -21
- package/dist/components/Navigation/useNavigationState.js +90 -175
- 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 +15 -52
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +27 -107
- package/dist/components/Routing/SubPage.js +7 -58
- package/dist/components/Routing/withWaypointing.js +7 -38
- 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 +35 -100
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +16 -77
- 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 +6 -50
- 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 +18 -56
- package/dist/components/Treeview/index.js +25 -66
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- 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 +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 +5 -32
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +6 -33
- package/dist/hocs/withScrollBox.js +3 -32
- 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 +6 -103
- 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 +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 +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/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 +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 +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 +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 +21 -88
- 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 +1 -5
- package/package.json +5 -5
- package/src/components/MaterialUI/Inputs/TimePicker.js +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,92 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useNavigationState = exports.getPageData = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _reactRedux = require("react-redux");
|
|
7
|
-
|
|
8
6
|
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
|
|
10
7
|
var _utils = require("../../utils");
|
|
11
|
-
|
|
12
8
|
var _navigation = require("../../actions/navigation");
|
|
13
|
-
|
|
14
9
|
var _navigation2 = require("../../selectors/navigation");
|
|
15
|
-
|
|
16
10
|
var _scope = require("../../selectors/scope");
|
|
17
|
-
|
|
18
11
|
var _parseHelper = require("../../utils/parseHelper");
|
|
19
|
-
|
|
20
12
|
(function () {
|
|
21
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
14
|
enterModule && enterModule(module);
|
|
23
15
|
})();
|
|
24
|
-
|
|
25
16
|
(function () {
|
|
26
17
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
27
18
|
enterModule && enterModule(module);
|
|
28
19
|
})();
|
|
29
|
-
|
|
30
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
21
|
+
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; } }
|
|
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
|
-
function
|
|
39
|
-
|
|
24
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
26
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40
27
|
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
41
|
-
|
|
42
28
|
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
29
|
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
|
-
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
|
-
|
|
30
|
+
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; }
|
|
48
31
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
49
|
-
|
|
50
32
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
-
|
|
52
33
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
53
34
|
return a;
|
|
54
35
|
};
|
|
55
|
-
|
|
56
36
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
57
37
|
return a;
|
|
58
38
|
};
|
|
59
|
-
|
|
60
39
|
var doesRestPathMatchParams = function doesRestPathMatchParams(params, paramPathSplit, restPath) {
|
|
61
40
|
var restPathMatchParams = true;
|
|
62
|
-
|
|
63
41
|
for (var i = 1; i < paramPathSplit.length; i++) {
|
|
64
42
|
if (restPath[i - 1] !== "/" + params[paramPathSplit[i]]) {
|
|
65
43
|
restPathMatchParams = false;
|
|
66
44
|
break;
|
|
67
45
|
}
|
|
68
46
|
}
|
|
69
|
-
|
|
70
47
|
return restPathMatchParams;
|
|
71
48
|
};
|
|
72
|
-
|
|
73
49
|
var getPageWithSplitPath = function getPageWithSplitPath(_ref, params, pages) {
|
|
74
50
|
var _ref2 = _toArray(_ref),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
51
|
+
pathStep = _ref2[0],
|
|
52
|
+
restPath = _ref2.slice(1);
|
|
78
53
|
var page = getPageFromPathSteps(pages, pathStep);
|
|
79
|
-
|
|
80
54
|
if (!page) {
|
|
81
|
-
var paramPath =
|
|
55
|
+
var paramPath =
|
|
56
|
+
// Only one should exist
|
|
82
57
|
Object.keys(pages).filter(function (path) {
|
|
83
58
|
return /^\/:/.test(path);
|
|
84
|
-
})[0] || "";
|
|
59
|
+
})[0] || "";
|
|
60
|
+
|
|
61
|
+
// removes the first '/:' from the URL
|
|
85
62
|
// remove the regex of the parameters, the part between parentheses (path to regex syntax)
|
|
86
63
|
// split on the remaining '/:'
|
|
87
|
-
|
|
88
64
|
var paramPathSplit = paramPath.replace(/^\/:/, "").replace(/(\([^/]+?\))/g, "").split("/:");
|
|
89
65
|
var firstStepMatchParams = pathStep === "/" + params[paramPathSplit[0]];
|
|
90
|
-
|
|
91
66
|
if (firstStepMatchParams) {
|
|
92
67
|
if (paramPathSplit.length === 1) {
|
|
93
68
|
page = pages[paramPath];
|
|
@@ -96,44 +71,35 @@ var getPageWithSplitPath = function getPageWithSplitPath(_ref, params, pages) {
|
|
|
96
71
|
}
|
|
97
72
|
}
|
|
98
73
|
}
|
|
99
|
-
|
|
100
74
|
if (restPath.length === 0 || !page) {
|
|
101
75
|
return page;
|
|
102
76
|
} else {
|
|
103
77
|
return getPageWithSplitPath(restPath, params, _objectSpread(_objectSpread(_objectSpread({}, page.pages), page.segments), page.subpages));
|
|
104
78
|
}
|
|
105
79
|
};
|
|
106
|
-
|
|
107
80
|
var getPageFromPathSteps = function getPageFromPathSteps(pages, pathStep) {
|
|
108
81
|
var page = pages[pathStep];
|
|
109
|
-
|
|
110
82
|
if (page) {
|
|
111
83
|
return page;
|
|
112
84
|
}
|
|
113
|
-
|
|
114
85
|
var rx = /^\/:[^(]+\(([^/]+?)\)/;
|
|
115
|
-
|
|
116
86
|
for (var _i = 0, _Object$keys = Object.keys(pages); _i < _Object$keys.length; _i++) {
|
|
117
87
|
var key = _Object$keys[_i];
|
|
118
88
|
var matches = key.match(rx);
|
|
119
|
-
|
|
120
89
|
if (matches !== null) {
|
|
121
90
|
if (new RegExp(matches[1]).test(pathStep)) {
|
|
122
91
|
return pages[key];
|
|
123
92
|
}
|
|
124
93
|
}
|
|
125
94
|
}
|
|
126
|
-
|
|
127
95
|
return undefined;
|
|
128
96
|
};
|
|
129
|
-
|
|
130
97
|
var redirectScopeWhenRequired = function redirectScopeWhenRequired(isPageTab, pageScopeSelector, rawPage, currentScope, scopeDefinitionGetter) {
|
|
131
98
|
var params = rawPage.params || {};
|
|
132
99
|
var scopeChanged = params.scope && params.scope !== currentScope;
|
|
133
100
|
var currentScopeDefinition = scopeDefinitionGetter(currentScope);
|
|
134
101
|
var currentScopePath = currentScopeDefinition ? currentScopeDefinition.scopePath : [];
|
|
135
102
|
var outsideScope = scopeChanged;
|
|
136
|
-
|
|
137
103
|
if (isPageTab && pageScopeSelector) {
|
|
138
104
|
if (scopeChanged) {
|
|
139
105
|
rawPage = _objectSpread(_objectSpread({}, rawPage), {}, {
|
|
@@ -142,46 +108,33 @@ var redirectScopeWhenRequired = function redirectScopeWhenRequired(isPageTab, pa
|
|
|
142
108
|
rawPage.href = rawPage.href.replace("/".concat(rawPage.params.scope, "/"), "/".concat(currentScope, "/"));
|
|
143
109
|
rawPage.params.scope = currentScope;
|
|
144
110
|
}
|
|
145
|
-
|
|
146
111
|
var scopeId = pageScopeSelector(params);
|
|
147
112
|
var scopeFromPageState = scopeId ? scopeDefinitionGetter(scopeId) : null;
|
|
148
|
-
|
|
149
113
|
if (scopeFromPageState) {
|
|
150
114
|
outsideScope = scopeFromPageState.id !== currentScope && currentScopePath.indexOf(scopeFromPageState.id) < 0 && scopeFromPageState.scopePath.indexOf(currentScope) < 0;
|
|
151
115
|
}
|
|
152
116
|
}
|
|
153
|
-
|
|
154
117
|
return [rawPage, outsideScope];
|
|
155
118
|
};
|
|
156
|
-
|
|
157
119
|
var getPageData = function getPageData(path, params, module) {
|
|
158
120
|
if (!path) return module;
|
|
159
121
|
var pathSteps = path.split(/(?=\/)/);
|
|
160
122
|
return getPageWithSplitPath(pathSteps, params, _objectSpread(_objectSpread(_objectSpread({}, module.pages), module.segments), module.subpages));
|
|
161
123
|
};
|
|
162
|
-
|
|
163
124
|
exports.getPageData = getPageData;
|
|
164
|
-
|
|
165
125
|
var useNavigationState = function useNavigationState(modules) {
|
|
166
126
|
var _moduleData$closingTa4;
|
|
167
|
-
|
|
168
127
|
var dispatch = (0, _reactRedux.useDispatch)();
|
|
169
|
-
|
|
170
128
|
var _useLocation = (0, _reactRouterDom.useLocation)(),
|
|
171
|
-
|
|
172
|
-
|
|
129
|
+
currentHref = _useLocation.pathname;
|
|
173
130
|
var store = (0, _reactRedux.useStore)();
|
|
174
131
|
var hrefMapper = (0, _reactRedux.useSelector)(_navigation2.selectSegmentHrefMapper);
|
|
175
132
|
var prependPath = (0, _reactRedux.useSelector)(_navigation2.selectPrependPathConfig);
|
|
176
|
-
|
|
177
133
|
var _getModuleNameFromHre = (0, _parseHelper.getModuleNameFromHref)(prependPath, currentHref),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var moduleData = modules[moduleName]
|
|
183
|
-
/* istanbul ignore next */
|
|
184
|
-
|| {};
|
|
134
|
+
_getModuleNameFromHre2 = _slicedToArray(_getModuleNameFromHre, 2),
|
|
135
|
+
moduleName = _getModuleNameFromHre2[0],
|
|
136
|
+
moduleHref = _getModuleNameFromHre2[1];
|
|
137
|
+
var moduleData = modules[moduleName] /* istanbul ignore next */ || {};
|
|
185
138
|
var rawModule = {
|
|
186
139
|
icon: moduleData.icon,
|
|
187
140
|
label: moduleData.label,
|
|
@@ -191,115 +144,92 @@ var useNavigationState = function useNavigationState(modules) {
|
|
|
191
144
|
var scopeDefinitionGetter = (0, _reactRedux.useSelector)(_scope.scopeGetter);
|
|
192
145
|
var rawPages = (0, _utils.unwrapImmutable)((0, _reactRedux.useSelector)(_navigation2.selectMappedCurrentModuleList)).filter(function (page) {
|
|
193
146
|
if (!page) return false;
|
|
194
|
-
|
|
195
147
|
var _getModuleNameFromHre3 = (0, _parseHelper.getModuleNameFromHref)(prependPath, page.href),
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
148
|
+
_getModuleNameFromHre4 = _slicedToArray(_getModuleNameFromHre3, 2),
|
|
149
|
+
pageModuleName = _getModuleNameFromHre4[0],
|
|
150
|
+
pageModuleHref = _getModuleNameFromHre4[1];
|
|
200
151
|
return page.href !== pageModuleHref || pageModuleName !== moduleName;
|
|
201
152
|
});
|
|
202
|
-
|
|
203
153
|
var _map = [rawModule].concat(rawPages).map(function (rawPage) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
var _redirectScopeWhenReq = redirectScopeWhenRequired(isPageTab, pageScopeSelector, rawPage, currentScope, scopeDefinitionGetter),
|
|
154
|
+
var isPageTab = !rawPage.icon;
|
|
155
|
+
var pageScopeSelector = moduleData.pageScopeSelector ? function (params) {
|
|
156
|
+
return moduleData.pageScopeSelector(store.getState(), params);
|
|
157
|
+
} : null;
|
|
158
|
+
var _redirectScopeWhenReq = redirectScopeWhenRequired(isPageTab, pageScopeSelector, rawPage, currentScope, scopeDefinitionGetter),
|
|
210
159
|
_redirectScopeWhenReq2 = _slicedToArray(_redirectScopeWhenReq, 2),
|
|
211
160
|
page = _redirectScopeWhenReq2[0],
|
|
212
161
|
outsideScope = _redirectScopeWhenReq2[1];
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
var _getModuleNameFromHre5 = (0, _parseHelper.getModuleNameFromHref)(prependPath, page.href),
|
|
162
|
+
var params = page.params || {};
|
|
163
|
+
var _getModuleNameFromHre5 = (0, _parseHelper.getModuleNameFromHref)(prependPath, page.href),
|
|
217
164
|
_getModuleNameFromHre6 = _slicedToArray(_getModuleNameFromHre5, 2),
|
|
218
165
|
pageBaseHref = _getModuleNameFromHre6[1];
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
166
|
+
var pageData = getPageData(page.href.replace(pageBaseHref, ""), params, moduleData) || {
|
|
167
|
+
label: "[Not found]"
|
|
168
|
+
};
|
|
169
|
+
var icon = pageData.icon;
|
|
170
|
+
var isDetails = pageData.isDetails;
|
|
171
|
+
var label = pageData.label;
|
|
172
|
+
if (label && label.id) {
|
|
173
|
+
label = _objectSpread({}, label);
|
|
174
|
+
if (pageData.labelValueSelector) {
|
|
175
|
+
label.values = pageData.labelValueSelector(params);
|
|
176
|
+
if (typeof label.values !== "function") {
|
|
177
|
+
delete label.values;
|
|
178
|
+
}
|
|
179
|
+
} else if (Array.isArray(pageData.dataPath)) {
|
|
180
|
+
console.warn("Using dataPath label value pointers is deprecated, use labelValueSelector instead");
|
|
181
|
+
var dataPath = [].concat(pageData.dataPath);
|
|
182
|
+
/* istanbul ignore else */
|
|
183
|
+
if (pageData.dataIdParam) {
|
|
184
|
+
dataPath.push(params[pageData.dataIdParam]);
|
|
185
|
+
}
|
|
186
|
+
label.values = function (state) {
|
|
187
|
+
return state.getIn(dataPath);
|
|
188
|
+
};
|
|
235
189
|
}
|
|
236
|
-
} else if (Array.isArray(pageData.dataPath)) {
|
|
237
|
-
console.warn("Using dataPath label value pointers is deprecated, use labelValueSelector instead");
|
|
238
|
-
var dataPath = [].concat(pageData.dataPath);
|
|
239
|
-
/* istanbul ignore else */
|
|
240
|
-
|
|
241
|
-
/* istanbul ignore else */
|
|
242
|
-
if (pageData.dataIdParam) {
|
|
243
|
-
dataPath.push(params[pageData.dataIdParam]);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
label.values = function (state) {
|
|
247
|
-
return state.getIn(dataPath);
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
var href = hrefMapper(page.href); // Modules do not have close functions
|
|
253
|
-
|
|
254
|
-
// Modules do not have close functions
|
|
255
|
-
var close = isPageTab ? function (event, executeHandlerOnly) {
|
|
256
|
-
var _moduleData$closingTa, _moduleData$closingTa2;
|
|
257
|
-
|
|
258
|
-
if (executeHandlerOnly === void 0) {
|
|
259
|
-
executeHandlerOnly = false;
|
|
260
190
|
}
|
|
191
|
+
var href = hrefMapper(page.href);
|
|
261
192
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var entityContext = (_moduleData$closingTa3 = moduleData.closingTabHandler.entitySelector(params, store.getState())) != null ? _moduleData$closingTa3 : null;
|
|
268
|
-
|
|
269
|
-
if ((entityContext == null ? void 0 : entityContext.entityId) != null && (entityContext == null ? void 0 : entityContext.entity) != null) {
|
|
270
|
-
result = moduleData.closingTabHandler.handler(dispatch, params, entityContext.entityId, entityContext.entity);
|
|
193
|
+
// Modules do not have close functions
|
|
194
|
+
var close = isPageTab ? function (event, executeHandlerOnly) {
|
|
195
|
+
var _moduleData$closingTa, _moduleData$closingTa2;
|
|
196
|
+
if (executeHandlerOnly === void 0) {
|
|
197
|
+
executeHandlerOnly = false;
|
|
271
198
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
199
|
+
var result = Promise.resolve();
|
|
200
|
+
if ((_moduleData$closingTa = moduleData.closingTabHandler) != null && _moduleData$closingTa.handler && (_moduleData$closingTa2 = moduleData.closingTabHandler) != null && _moduleData$closingTa2.entitySelector) {
|
|
201
|
+
var _moduleData$closingTa3;
|
|
202
|
+
var entityContext = (_moduleData$closingTa3 = moduleData.closingTabHandler.entitySelector(params, store.getState())) != null ? _moduleData$closingTa3 : null;
|
|
203
|
+
if ((entityContext == null ? void 0 : entityContext.entityId) != null && (entityContext == null ? void 0 : entityContext.entity) != null) {
|
|
204
|
+
result = moduleData.closingTabHandler.handler(dispatch, params, entityContext.entityId, entityContext.entity);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (executeHandlerOnly === false) {
|
|
208
|
+
dispatch((0, _navigation.removeTab)(moduleName, page.href));
|
|
209
|
+
}
|
|
210
|
+
if (event) {
|
|
211
|
+
event.stopPropagation();
|
|
212
|
+
event.preventDefault();
|
|
213
|
+
}
|
|
214
|
+
return result;
|
|
215
|
+
} : undefined;
|
|
216
|
+
return _objectSpread(_objectSpread({}, page), {}, {
|
|
217
|
+
outsideScope: isPageTab ? outsideScope : null,
|
|
218
|
+
scopeNotSupported: isPageTab ? pageScopeSelector != null && outsideScope : null,
|
|
219
|
+
label: label,
|
|
220
|
+
entityIdResolver: pageData.entityIdResolver,
|
|
221
|
+
mustTruncate: pageData.mustTruncate,
|
|
222
|
+
href: href,
|
|
223
|
+
mappedFrom: page.href,
|
|
224
|
+
active: href === currentHref,
|
|
225
|
+
close: close,
|
|
226
|
+
icon: icon,
|
|
227
|
+
isDetails: isDetails
|
|
228
|
+
});
|
|
229
|
+
}),
|
|
230
|
+
_map2 = _toArray(_map),
|
|
231
|
+
module = _map2[0],
|
|
232
|
+
pages = _map2.slice(1);
|
|
303
233
|
module.closingTabHandler = (_moduleData$closingTa4 = moduleData.closingTabHandler) != null ? _moduleData$closingTa4 : null;
|
|
304
234
|
return {
|
|
305
235
|
module: module,
|
|
@@ -308,30 +238,23 @@ var useNavigationState = function useNavigationState(modules) {
|
|
|
308
238
|
moduleHref: hrefMapper(moduleHref)
|
|
309
239
|
};
|
|
310
240
|
};
|
|
311
|
-
|
|
312
241
|
exports.useNavigationState = useNavigationState;
|
|
313
|
-
|
|
314
242
|
__signature__(useNavigationState, "useDispatch{dispatch}\nuseLocation{{ pathname: currentHref }}\nuseStore{store}\nuseSelector{hrefMapper}\nuseSelector{prependPath}\nuseSelector{currentScope}\nuseSelector{scopeDefinitionGetter}\nuseSelector{}", function () {
|
|
315
243
|
return [_reactRedux.useDispatch, _reactRouterDom.useLocation, _reactRedux.useStore, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
316
244
|
});
|
|
317
|
-
|
|
318
245
|
__signature__(useNavigationState, "useDispatch{dispatch}\nuseLocation{{ pathname: currentHref }}\nuseStore{store}\nuseSelector{hrefMapper}\nuseSelector{prependPath}\nuseSelector{currentScope}\nuseSelector{scopeDefinitionGetter}\nuseSelector{}", function () {
|
|
319
246
|
return [_reactRedux.useDispatch, _reactRouterDom.useLocation, _reactRedux.useStore, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector, _reactRedux.useSelector];
|
|
320
247
|
});
|
|
321
|
-
|
|
322
248
|
var _default = useNavigationState;
|
|
323
249
|
var _default2 = _default;
|
|
324
250
|
var _default3 = _default2;
|
|
325
251
|
exports.default = _default3;
|
|
326
252
|
;
|
|
327
|
-
|
|
328
253
|
(function () {
|
|
329
254
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
330
|
-
|
|
331
255
|
if (!reactHotLoader) {
|
|
332
256
|
return;
|
|
333
257
|
}
|
|
334
|
-
|
|
335
258
|
reactHotLoader.register(doesRestPathMatchParams, "doesRestPathMatchParams", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
336
259
|
reactHotLoader.register(getPageWithSplitPath, "getPageWithSplitPath", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
337
260
|
reactHotLoader.register(getPageFromPathSteps, "getPageFromPathSteps", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
@@ -340,23 +263,17 @@ exports.default = _default3;
|
|
|
340
263
|
reactHotLoader.register(useNavigationState, "useNavigationState", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
341
264
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
342
265
|
})();
|
|
343
|
-
|
|
344
266
|
;
|
|
345
|
-
|
|
346
267
|
(function () {
|
|
347
268
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
348
269
|
leaveModule && leaveModule(module);
|
|
349
270
|
})();
|
|
350
|
-
|
|
351
271
|
;
|
|
352
|
-
|
|
353
272
|
(function () {
|
|
354
273
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
355
|
-
|
|
356
274
|
if (!reactHotLoader) {
|
|
357
275
|
return;
|
|
358
276
|
}
|
|
359
|
-
|
|
360
277
|
reactHotLoader.register(doesRestPathMatchParams, "doesRestPathMatchParams", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
361
278
|
reactHotLoader.register(getPageWithSplitPath, "getPageWithSplitPath", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
362
279
|
reactHotLoader.register(getPageFromPathSteps, "getPageFromPathSteps", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
@@ -365,9 +282,7 @@ exports.default = _default3;
|
|
|
365
282
|
reactHotLoader.register(useNavigationState, "useNavigationState", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
366
283
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Navigation/useNavigationState.js");
|
|
367
284
|
})();
|
|
368
|
-
|
|
369
285
|
;
|
|
370
|
-
|
|
371
286
|
(function () {
|
|
372
287
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
373
288
|
leaveModule && leaveModule(module);
|
|
@@ -2,87 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.PlaceholderTitle = exports.PlaceholderSubtitle = exports.PlaceholderIcon = exports.PlaceholderBox = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
8
|
var _Text = _interopRequireWildcard(require("./Text"));
|
|
13
|
-
|
|
14
9
|
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
15
|
-
|
|
16
10
|
var _utils = require("../utils");
|
|
17
|
-
|
|
18
11
|
var _excluded = ["icon", "title", "subtitle", "animate", "warn"];
|
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
15
|
(function () {
|
|
27
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
17
|
enterModule && enterModule(module);
|
|
29
18
|
})();
|
|
30
|
-
|
|
31
19
|
(function () {
|
|
32
20
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
33
21
|
enterModule && enterModule(module);
|
|
34
22
|
})();
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
23
|
+
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); }
|
|
38
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
39
|
-
|
|
40
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41
|
-
|
|
42
26
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
43
27
|
return a;
|
|
44
28
|
};
|
|
45
|
-
|
|
46
29
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
47
30
|
return a;
|
|
48
31
|
};
|
|
49
|
-
|
|
50
32
|
var rotate = (0, _styledComponents.keyframes)(["to{transform:rotate(1turn);}"]);
|
|
51
|
-
|
|
52
33
|
var PlaceholderBox = _styledComponents.default.div.withConfig({
|
|
53
34
|
displayName: "Placeholder__PlaceholderBox",
|
|
54
35
|
componentId: "sc-1luw4x-0"
|
|
55
36
|
})(["display:flex;flex-direction:column;align-items:center;margin:auto;", ""], (0, _utils.ifFlag)("warn", "color: #ed2e0b; width: 33%; max-width:540px; text-align:center;", "color: #ababab;"));
|
|
56
|
-
|
|
57
37
|
exports.PlaceholderBox = PlaceholderBox;
|
|
58
38
|
var PlaceholderIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
59
39
|
displayName: "Placeholder__PlaceholderIcon",
|
|
60
40
|
componentId: "sc-1luw4x-1"
|
|
61
41
|
})(["font-size:140px;", ";"], (0, _utils.ifFlag)("animate", (0, _styledComponents.css)(["animation:", " 4s linear infinite;"], rotate)));
|
|
62
42
|
exports.PlaceholderIcon = PlaceholderIcon;
|
|
63
|
-
|
|
64
43
|
var PlaceholderTitle = _styledComponents.default.div.withConfig({
|
|
65
44
|
displayName: "Placeholder__PlaceholderTitle",
|
|
66
45
|
componentId: "sc-1luw4x-2"
|
|
67
46
|
})(["margin-top:5px;font-size:2em;"]);
|
|
68
|
-
|
|
69
47
|
exports.PlaceholderTitle = PlaceholderTitle;
|
|
70
|
-
|
|
71
48
|
var PlaceholderSubtitle = _styledComponents.default.div.withConfig({
|
|
72
49
|
displayName: "Placeholder__PlaceholderSubtitle",
|
|
73
50
|
componentId: "sc-1luw4x-3"
|
|
74
51
|
})(["font-size:1.3em;"]);
|
|
75
|
-
|
|
76
52
|
exports.PlaceholderSubtitle = PlaceholderSubtitle;
|
|
77
|
-
|
|
78
53
|
var Placeholder = function Placeholder(_ref) {
|
|
79
54
|
var icon = _ref.icon,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
55
|
+
title = _ref.title,
|
|
56
|
+
subtitle = _ref.subtitle,
|
|
57
|
+
animate = _ref.animate,
|
|
58
|
+
warn = _ref.warn,
|
|
59
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
86
60
|
return /*#__PURE__*/_react.default.createElement(PlaceholderBox, _extends({
|
|
87
61
|
warn: warn
|
|
88
62
|
}, props), icon ? /*#__PURE__*/_react.default.createElement(PlaceholderIcon, {
|
|
@@ -94,7 +68,6 @@ var Placeholder = function Placeholder(_ref) {
|
|
|
94
68
|
message: subtitle
|
|
95
69
|
})) : null);
|
|
96
70
|
};
|
|
97
|
-
|
|
98
71
|
Placeholder.propTypes = {
|
|
99
72
|
icon: _propTypes.default.string,
|
|
100
73
|
title: _Text.ptLabel,
|
|
@@ -107,14 +80,11 @@ var _default2 = _default;
|
|
|
107
80
|
var _default3 = _default2;
|
|
108
81
|
exports.default = _default3;
|
|
109
82
|
;
|
|
110
|
-
|
|
111
83
|
(function () {
|
|
112
84
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
113
|
-
|
|
114
85
|
if (!reactHotLoader) {
|
|
115
86
|
return;
|
|
116
87
|
}
|
|
117
|
-
|
|
118
88
|
reactHotLoader.register(rotate, "rotate", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
119
89
|
reactHotLoader.register(PlaceholderBox, "PlaceholderBox", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
120
90
|
reactHotLoader.register(PlaceholderIcon, "PlaceholderIcon", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
@@ -123,23 +93,17 @@ exports.default = _default3;
|
|
|
123
93
|
reactHotLoader.register(Placeholder, "Placeholder", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
124
94
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
125
95
|
})();
|
|
126
|
-
|
|
127
96
|
;
|
|
128
|
-
|
|
129
97
|
(function () {
|
|
130
98
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
131
99
|
leaveModule && leaveModule(module);
|
|
132
100
|
})();
|
|
133
|
-
|
|
134
101
|
;
|
|
135
|
-
|
|
136
102
|
(function () {
|
|
137
103
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
138
|
-
|
|
139
104
|
if (!reactHotLoader) {
|
|
140
105
|
return;
|
|
141
106
|
}
|
|
142
|
-
|
|
143
107
|
reactHotLoader.register(rotate, "rotate", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
144
108
|
reactHotLoader.register(PlaceholderBox, "PlaceholderBox", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
145
109
|
reactHotLoader.register(PlaceholderIcon, "PlaceholderIcon", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
@@ -148,9 +112,7 @@ exports.default = _default3;
|
|
|
148
112
|
reactHotLoader.register(Placeholder, "Placeholder", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
149
113
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Placeholder.js");
|
|
150
114
|
})();
|
|
151
|
-
|
|
152
115
|
;
|
|
153
|
-
|
|
154
116
|
(function () {
|
|
155
117
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
156
118
|
leaveModule && leaveModule(module);
|