orc-shared 1.7.0-dev.1 → 1.7.0-dev.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 +15 -30
- package/dist/actions/authentication.js +10 -20
- package/dist/actions/countries.js +4 -8
- package/dist/actions/globalErrorMessages.js +4 -8
- package/dist/actions/locale.js +17 -34
- package/dist/actions/makeApiAction.js +4 -8
- package/dist/actions/makeOrcApiAction.js +1 -2
- package/dist/actions/metadata.js +73 -146
- package/dist/actions/modules.js +10 -20
- package/dist/actions/navigation.js +14 -28
- package/dist/actions/requestState.js +2 -4
- package/dist/actions/requestsApi.js +703 -1406
- package/dist/actions/scopes.js +18 -36
- package/dist/actions/tasks.js +20 -40
- package/dist/actions/timezones.js +4 -8
- package/dist/actions/toasts.js +4 -8
- package/dist/actions/versionInfo.js +7 -14
- package/dist/actions/view.js +22 -44
- package/dist/buildStore.js +3 -7
- package/dist/components/AppFrame/About.js +8 -16
- package/dist/components/AppFrame/Anchor.js +3 -6
- package/dist/components/AppFrame/AppFrame.js +3 -6
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +2 -4
- package/dist/components/AppFrame/ApplicationSelector/Header.js +3 -6
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -2
- package/dist/components/AppFrame/ConnectedToastList.js +3 -4
- package/dist/components/AppFrame/Help.js +2 -4
- package/dist/components/AppFrame/MenuItem.js +7 -14
- package/dist/components/AppFrame/Preferences.js +11 -22
- package/dist/components/AppFrame/Sidebar.js +5 -10
- package/dist/components/AppFrame/Topbar.js +8 -16
- package/dist/components/AppFrame/index.js +1 -2
- package/dist/components/AppFrame/useApplicationHelpUrl.js +1 -2
- package/dist/components/ApplicationModuleLoader.js +1 -2
- package/dist/components/Authenticate.js +5 -10
- package/dist/components/Button.js +1 -2
- package/dist/components/CategoryList.js +5 -10
- package/dist/components/Checkbox.js +5 -10
- package/dist/components/ColumnWrapper.js +1 -2
- package/dist/components/Culture.js +1 -2
- package/dist/components/DevPages.js +1 -2
- package/dist/components/DropMenu/Menu.js +5 -10
- package/dist/components/DropMenu/index.js +4 -8
- package/dist/components/ErrorPlaceholder.js +2 -4
- package/dist/components/Form/Combination.js +2 -4
- package/dist/components/Form/Field.js +4 -8
- package/dist/components/Form/FieldElements.js +1 -2
- package/dist/components/Form/FieldList.js +4 -8
- package/dist/components/Form/Fieldset.js +3 -6
- package/dist/components/Form/Form.js +4 -8
- package/dist/components/Form/FormElement.js +1 -2
- package/dist/components/Form/InputField.js +2 -4
- package/dist/components/Form/Inputs/Button.js +3 -6
- package/dist/components/Form/Inputs/Date.js +1 -2
- package/dist/components/Form/Inputs/FieldButtons.js +3 -6
- package/dist/components/Form/Inputs/Number.js +2 -4
- package/dist/components/Form/Inputs/ReadOnly.js +5 -10
- package/dist/components/Form/Inputs/SmallButton.js +4 -8
- package/dist/components/Form/Inputs/Text.js +5 -8
- package/dist/components/Form/Inputs/Time.js +3 -6
- package/dist/components/Form/Inputs/Toggles.js +5 -10
- package/dist/components/Form/Inputs/Translation.js +7 -14
- package/dist/components/Form/Inputs/index.js +1 -2
- package/dist/components/Form/index.js +1 -2
- package/dist/components/Head.js +1 -2
- package/dist/components/I18n.js +1 -2
- package/dist/components/Icon.js +1 -2
- package/dist/components/IconButton.js +3 -6
- package/dist/components/Input.js +2 -4
- package/dist/components/InternetExplorerWarningMessage.js +2 -4
- package/dist/components/List/DataCell.js +2 -4
- package/dist/components/List/HeadCell.js +7 -14
- package/dist/components/List/HeadRow.js +2 -4
- package/dist/components/List/List.js +9 -18
- package/dist/components/List/Row.js +4 -8
- package/dist/components/List/enhanceColumnDefs.js +1 -2
- package/dist/components/List/index.js +1 -2
- package/dist/components/Loader.js +2 -4
- package/dist/components/LoadingIcon.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/Badge.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Divider.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Icon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/List.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Notification.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/Table.js +4 -8
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +3 -6
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +3 -6
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -6
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +1 -2
- package/dist/components/MaterialUI/Feedback/useNotification.js +2 -4
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +1 -2
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/Checkbox.js +1 -2
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +1 -2
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/DatePicker.js +2 -4
- package/dist/components/MaterialUI/Inputs/InputBase.js +3 -6
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +3 -6
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +1 -2
- package/dist/components/MaterialUI/Inputs/Radio.js +1 -2
- package/dist/components/MaterialUI/Inputs/RadioProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/Select.js +2 -4
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -6
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +1 -2
- package/dist/components/MaterialUI/Inputs/Switch.js +2 -4
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +2 -4
- package/dist/components/MaterialUI/Inputs/TimePicker.js +5 -10
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -6
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +2 -4
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +1 -2
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +2 -4
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +1 -2
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +1 -2
- package/dist/components/MaterialUI/Navigation/TabBar.js +2 -4
- package/dist/components/MaterialUI/Navigation/TabLabel.js +1 -2
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -2
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +2 -4
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +3 -6
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +1 -2
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -2
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +1 -2
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +1 -2
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +4 -8
- package/dist/components/MaterialUI/Surfaces/paperProps.js +2 -4
- package/dist/components/MaterialUI/componentProps.js +1 -2
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +2 -4
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +1 -2
- package/dist/components/MaterialUI/muiThemes.js +1 -2
- package/dist/components/MaterialUI/textProps.js +2 -4
- package/dist/components/Modal/Background.js +1 -2
- package/dist/components/Modal/Dialog.js +2 -4
- package/dist/components/Modal/Wrapper.js +2 -4
- package/dist/components/Modal/index.js +2 -4
- package/dist/components/Modules.js +3 -6
- package/dist/components/MultiSelector.js +3 -6
- package/dist/components/Navigation/Bar.js +7 -14
- package/dist/components/Navigation/Tab.js +8 -14
- package/dist/components/Navigation/index.js +1 -2
- package/dist/components/Navigation/useNavigationState.js +3 -6
- package/dist/components/Placeholder.js +5 -10
- package/dist/components/Provision.js +1 -2
- package/dist/components/Routing/FullPage.js +1 -2
- package/dist/components/Routing/Page.js +1 -2
- package/dist/components/Routing/Segment.js +1 -2
- package/dist/components/Routing/SegmentPage.js +5 -10
- package/dist/components/Routing/SubPage.js +2 -4
- package/dist/components/Routing/withWaypointing.js +1 -2
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +1 -2
- package/dist/components/Scope/ScopeNode.js +5 -10
- package/dist/components/Scope/Selector.js +6 -12
- package/dist/components/Scope/index.js +5 -10
- package/dist/components/Scope/useScopeConfirmationModalState.js +1 -2
- package/dist/components/Scope/useScopeData.js +1 -2
- package/dist/components/Scope/useScopeSelect.js +2 -4
- package/dist/components/Selector.js +9 -18
- package/dist/components/Sidepanel.js +2 -4
- package/dist/components/Spritesheet.js +3 -6
- package/dist/components/Switch.js +5 -10
- package/dist/components/TaskDetailsModal.js +2 -4
- package/dist/components/Text.js +3 -6
- package/dist/components/ToastList.js +6 -12
- package/dist/components/Toolbar.js +12 -24
- package/dist/components/Tooltip.js +2 -4
- package/dist/components/Treeview/Branch.js +2 -4
- package/dist/components/Treeview/Label.js +4 -8
- package/dist/components/Treeview/Leaf.js +2 -4
- package/dist/components/Treeview/Node.js +5 -10
- package/dist/components/Treeview/index.js +2 -4
- package/dist/components/Treeview/settings.js +3 -6
- package/dist/constants.js +14 -28
- package/dist/content/icons/inventory.svg +4 -0
- package/dist/content/iconsSheet.svg +117 -731
- package/dist/getTheme.js +1 -2
- package/dist/getThemeOverrides.js +1 -2
- package/dist/hocs/routingConnector.js +1 -2
- package/dist/hocs/withAuthentication.js +1 -2
- package/dist/hocs/withClickOutside.js +1 -2
- package/dist/hocs/withErrorBoundary.js +1 -2
- package/dist/hocs/withId.js +1 -2
- package/dist/hocs/withInfiniteScroll.js +3 -6
- package/dist/hocs/withInitialLoad.js +1 -2
- package/dist/hocs/withLocaleSwitch.js +1 -2
- package/dist/hocs/withNavigationLink.js +1 -2
- package/dist/hocs/withRequestActivity.js +1 -2
- package/dist/hocs/withScopeData.js +1 -2
- package/dist/hocs/withScrollBox.js +2 -4
- package/dist/hocs/withToggle.js +1 -2
- package/dist/hocs/withUpdateHandler.js +1 -2
- package/dist/hocs/withViewState.js +1 -2
- package/dist/hooks/useDispatchWithErrorHandling.js +3 -6
- package/dist/hooks/useDispatchWithModulesData.js +2 -4
- package/dist/hooks/useEditState.js +3 -6
- package/dist/hooks/useEntityLoader.js +1 -2
- package/dist/hooks/useFullEntityEditState.js +2 -4
- package/dist/hooks/useInfiniteScroll.js +1 -2
- package/dist/hooks/useLabelMessage.js +2 -4
- package/dist/hooks/useLoader.js +1 -2
- package/dist/hooks/useMultipleFieldEditState.js +1 -2
- package/dist/hooks/useNavigationHandler.js +2 -4
- package/dist/hooks/useNotificationRequestState.js +1 -2
- package/dist/hooks/usePreviousModified.js +1 -2
- package/dist/hooks/useRequestState.js +1 -2
- package/dist/hooks/useSelectorAndUnwrap.js +2 -4
- package/dist/hooks/useToggle.js +1 -2
- package/dist/hooks/useViewState.js +1 -2
- package/dist/reducers/applications.js +1 -2
- package/dist/reducers/authentication.js +1 -2
- package/dist/reducers/countries.js +1 -2
- package/dist/reducers/globalErrorMessages.js +1 -2
- package/dist/reducers/localeFactory.js +2 -4
- package/dist/reducers/metadata.js +4 -8
- package/dist/reducers/modules.js +1 -2
- package/dist/reducers/navigation.js +1 -2
- package/dist/reducers/request.js +3 -6
- package/dist/reducers/requestStates.js +1 -2
- package/dist/reducers/scopes.js +1 -2
- package/dist/reducers/settings.js +1 -2
- package/dist/reducers/tasks.js +1 -2
- package/dist/reducers/timezones.js +1 -2
- package/dist/reducers/toasts.js +1 -2
- package/dist/reducers/versionInfo.js +1 -2
- package/dist/reducers/view.js +1 -2
- package/dist/schemas/countries.js +3 -6
- package/dist/schemas/definitions.js +3 -6
- package/dist/schemas/metadata.js +3 -6
- package/dist/schemas/productDefinitions.js +3 -6
- package/dist/schemas/scopes.js +1 -2
- package/dist/schemas/timezones.js +3 -6
- package/dist/selectors/applications.js +2 -4
- package/dist/selectors/authentication.js +11 -22
- package/dist/selectors/countries.js +2 -4
- package/dist/selectors/globalErrorMessages.js +1 -2
- package/dist/selectors/locale.js +9 -18
- package/dist/selectors/metadata.js +36 -72
- package/dist/selectors/modules.js +2 -4
- package/dist/selectors/navigation.js +16 -32
- package/dist/selectors/requestStates.js +1 -2
- package/dist/selectors/requests.js +3 -6
- package/dist/selectors/route.js +2 -4
- package/dist/selectors/scope.js +8 -16
- package/dist/selectors/settings.js +4 -8
- package/dist/selectors/tasks.js +2 -4
- package/dist/selectors/timezones.js +2 -4
- package/dist/selectors/versionInfo.js +3 -6
- package/dist/selectors/view.js +9 -18
- package/dist/sharedMessages.js +1 -2
- package/dist/spawnerMiddleware.js +2 -4
- package/dist/utils/buildUrl.js +3 -6
- package/dist/utils/countryHelper.js +1 -2
- package/dist/utils/curry.js +1 -2
- package/dist/utils/debounce.js +1 -2
- package/dist/utils/displayModeHelper.js +4 -8
- package/dist/utils/domHelper.js +1 -2
- package/dist/utils/flatten.js +2 -4
- package/dist/utils/insertIcons.js +1 -2
- package/dist/utils/localizationHelper.js +1 -2
- package/dist/utils/logPass.js +1 -2
- package/dist/utils/mapHelper.js +2 -4
- package/dist/utils/memoize.js +1 -2
- package/dist/utils/modelValidationHelper.js +4 -8
- package/dist/utils/normalizeForSearch.js +1 -2
- package/dist/utils/objectHelper.js +1 -2
- package/dist/utils/parseHelper.js +5 -10
- package/dist/utils/profilerHelper.js +1 -2
- package/dist/utils/propertyHelper.js +4 -8
- package/dist/utils/propertyValidator.js +4 -8
- package/dist/utils/requestProcessingHelper.js +2 -4
- package/dist/utils/responseProcessingHelper.js +1 -2
- package/dist/utils/safeGet.js +1 -2
- package/dist/utils/setTranslation.js +1 -2
- package/dist/utils/setTranslationWithFallback.js +2 -4
- package/dist/utils/stripKey.js +1 -2
- package/dist/utils/styledPropFuncs.js +3 -6
- package/dist/utils/testUtils.js +11 -22
- package/dist/utils/timezoneHelper.js +6 -12
- package/dist/utils/unwrapImmutable.js +2 -4
- package/dist/utils/urlHelper.js +4 -8
- package/package.json +1 -1
- package/src/content/icons/inventory.svg +4 -0
- package/src/content/iconsSheet.svg +117 -731
package/dist/selectors/tasks.js
CHANGED
|
@@ -22,18 +22,16 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
22
22
|
var tasksData = function tasksData(state) {
|
|
23
23
|
return state.get("tasks");
|
|
24
24
|
};
|
|
25
|
-
var taskInfo = function taskInfo(taskId) {
|
|
25
|
+
var taskInfo = exports.taskInfo = function taskInfo(taskId) {
|
|
26
26
|
return (0, _reselect.createSelector)(tasksData, function (tasks) {
|
|
27
27
|
return tasks.getIn(["taskInfos", taskId]) || null;
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
var taskLogs = function taskLogs(taskId) {
|
|
30
|
+
var taskLogs = exports.taskLogs = function taskLogs(taskId) {
|
|
32
31
|
return (0, _reselect.createSelector)(tasksData, function (tasks) {
|
|
33
32
|
return tasks.getIn(["logs", taskId]) || _immutable.default.List();
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
|
-
exports.taskLogs = taskLogs;
|
|
37
35
|
;
|
|
38
36
|
(function () {
|
|
39
37
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -20,17 +20,15 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
20
20
|
var timezonesData = function timezonesData(state) {
|
|
21
21
|
return state.get("timezones");
|
|
22
22
|
};
|
|
23
|
-
var localizedTimezone = function localizedTimezone(timezoneId) {
|
|
23
|
+
var localizedTimezone = exports.localizedTimezone = function localizedTimezone(timezoneId) {
|
|
24
24
|
return (0, _reselect.createSelector)(timezonesData, function (timezones) {
|
|
25
25
|
var timezoneDisplayName = timezones.getIn([timezoneId, "displayName"]);
|
|
26
26
|
return timezoneDisplayName || null;
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var timezonesSelector = (0, _reselect.createSelector)(timezonesData, function (timezones) {
|
|
29
|
+
var timezonesSelector = exports.timezonesSelector = (0, _reselect.createSelector)(timezonesData, function (timezones) {
|
|
31
30
|
return timezones.valueSeq().toArray();
|
|
32
31
|
});
|
|
33
|
-
exports.timezonesSelector = timezonesSelector;
|
|
34
32
|
;
|
|
35
33
|
(function () {
|
|
36
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -20,18 +20,15 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
20
20
|
var versionInfo = function versionInfo(state) {
|
|
21
21
|
return state.get("versionInfo");
|
|
22
22
|
};
|
|
23
|
-
var getVersionSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
23
|
+
var getVersionSelector = exports.getVersionSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
24
24
|
return data.get("version");
|
|
25
25
|
});
|
|
26
|
-
exports.
|
|
27
|
-
var getHelpUrlDefaultSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
26
|
+
var getHelpUrlDefaultSelector = exports.getHelpUrlDefaultSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
28
27
|
return data.get("defaultHelpUrl");
|
|
29
28
|
});
|
|
30
|
-
exports.
|
|
31
|
-
var getApplicationHelpUrlSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
29
|
+
var getApplicationHelpUrlSelector = exports.getApplicationHelpUrlSelector = (0, _reselect.createSelector)(versionInfo, function (data) {
|
|
32
30
|
return data.get("moduleHelpUrls");
|
|
33
31
|
});
|
|
34
|
-
exports.getApplicationHelpUrlSelector = getApplicationHelpUrlSelector;
|
|
35
32
|
;
|
|
36
33
|
(function () {
|
|
37
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/selectors/view.js
CHANGED
|
@@ -26,7 +26,7 @@ var modulesData = function modulesData(state) {
|
|
|
26
26
|
var editData = (0, _reselect.createSelector)(modulesData, function (data) {
|
|
27
27
|
return data.get("edit");
|
|
28
28
|
});
|
|
29
|
-
var isEntityUnderEditing = function isEntityUnderEditing(entityId) {
|
|
29
|
+
var isEntityUnderEditing = exports.isEntityUnderEditing = function isEntityUnderEditing(entityId) {
|
|
30
30
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
31
31
|
if (data != null) {
|
|
32
32
|
var _dataJS$moduleName;
|
|
@@ -39,13 +39,11 @@ var isEntityUnderEditing = function isEntityUnderEditing(entityId) {
|
|
|
39
39
|
return false;
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
exports.
|
|
43
|
-
var getModifiedSections = function getModifiedSections(entityId) {
|
|
42
|
+
var getModifiedSections = exports.getModifiedSections = function getModifiedSections(entityId) {
|
|
44
43
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
45
44
|
return getModifiedSectionsFromModule(data, moduleName, entityId);
|
|
46
45
|
});
|
|
47
46
|
};
|
|
48
|
-
exports.getModifiedSections = getModifiedSections;
|
|
49
47
|
var getModifiedSectionsFromModule = function getModifiedSectionsFromModule(editData, moduleName, entityId) {
|
|
50
48
|
var modifiedSections = [];
|
|
51
49
|
if (editData != null) {
|
|
@@ -68,12 +66,11 @@ var getModifiedSectionsFromModule = function getModifiedSectionsFromModule(editD
|
|
|
68
66
|
}
|
|
69
67
|
return modifiedSections;
|
|
70
68
|
};
|
|
71
|
-
var getSectionsWithErrors = function getSectionsWithErrors(entityId) {
|
|
69
|
+
var getSectionsWithErrors = exports.getSectionsWithErrors = function getSectionsWithErrors(entityId) {
|
|
72
70
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
73
71
|
return getSectionsWithErrorsFromModule(data, moduleName, entityId);
|
|
74
72
|
});
|
|
75
73
|
};
|
|
76
|
-
exports.getSectionsWithErrors = getSectionsWithErrors;
|
|
77
74
|
var getSectionsWithErrorsFromModule = function getSectionsWithErrorsFromModule(editData, moduleName, entityId) {
|
|
78
75
|
var errorSections = [];
|
|
79
76
|
if (editData != null) {
|
|
@@ -96,7 +93,7 @@ var getSectionsWithErrorsFromModule = function getSectionsWithErrorsFromModule(e
|
|
|
96
93
|
}
|
|
97
94
|
return errorSections;
|
|
98
95
|
};
|
|
99
|
-
var getInstanceKeysWithErrors = function getInstanceKeysWithErrors(entityId, sectionName, path) {
|
|
96
|
+
var getInstanceKeysWithErrors = exports.getInstanceKeysWithErrors = function getInstanceKeysWithErrors(entityId, sectionName, path) {
|
|
100
97
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
101
98
|
var errorKeys = [];
|
|
102
99
|
var sectionData = data == null ? void 0 : data.getIn([moduleName, entityId, sectionName, "model"].concat(path));
|
|
@@ -113,8 +110,7 @@ var getInstanceKeysWithErrors = function getInstanceKeysWithErrors(entityId, sec
|
|
|
113
110
|
return errorKeys;
|
|
114
111
|
});
|
|
115
112
|
};
|
|
116
|
-
exports.
|
|
117
|
-
var getModifiedTabs = function getModifiedTabs(tabsParams) {
|
|
113
|
+
var getModifiedTabs = exports.getModifiedTabs = function getModifiedTabs(tabsParams) {
|
|
118
114
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
119
115
|
var modifiedTabs = [];
|
|
120
116
|
tabsParams.forEach(function (tabParams) {
|
|
@@ -131,8 +127,7 @@ var getModifiedTabs = function getModifiedTabs(tabsParams) {
|
|
|
131
127
|
return modifiedTabs;
|
|
132
128
|
});
|
|
133
129
|
};
|
|
134
|
-
exports.
|
|
135
|
-
var getTabsWithErrors = function getTabsWithErrors(tabsParams) {
|
|
130
|
+
var getTabsWithErrors = exports.getTabsWithErrors = function getTabsWithErrors(tabsParams) {
|
|
136
131
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
137
132
|
var tabsWithErrors = [];
|
|
138
133
|
tabsParams.forEach(function (tabParams) {
|
|
@@ -149,8 +144,7 @@ var getTabsWithErrors = function getTabsWithErrors(tabsParams) {
|
|
|
149
144
|
return tabsWithErrors;
|
|
150
145
|
});
|
|
151
146
|
};
|
|
152
|
-
exports.
|
|
153
|
-
var getModifiedModels = function getModifiedModels(entityId) {
|
|
147
|
+
var getModifiedModels = exports.getModifiedModels = function getModifiedModels(entityId) {
|
|
154
148
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
155
149
|
var models = {};
|
|
156
150
|
if (data != null) {
|
|
@@ -171,8 +165,7 @@ var getModifiedModels = function getModifiedModels(entityId) {
|
|
|
171
165
|
// the difference between this one and getModifiedModels (with 's' at the end) is that
|
|
172
166
|
// this selector will retrieve you modified model for all the sections
|
|
173
167
|
// so, the result won't be grouped by sections
|
|
174
|
-
exports.
|
|
175
|
-
var getModifiedModel = function getModifiedModel(entityId) {
|
|
168
|
+
var getModifiedModel = exports.getModifiedModel = function getModifiedModel(entityId) {
|
|
176
169
|
return (0, _reselect.createSelector)(editData, _navigation.selectCurrentModuleName, function (data, moduleName) {
|
|
177
170
|
var model = {};
|
|
178
171
|
if (data != null) {
|
|
@@ -189,8 +182,7 @@ var getModifiedModel = function getModifiedModel(entityId) {
|
|
|
189
182
|
return model;
|
|
190
183
|
});
|
|
191
184
|
};
|
|
192
|
-
exports.
|
|
193
|
-
var hasUnsavedDataSelector = (0, _reselect.createSelector)(editData, function (data) {
|
|
185
|
+
var hasUnsavedDataSelector = exports.hasUnsavedDataSelector = (0, _reselect.createSelector)(editData, function (data) {
|
|
194
186
|
if (!data) {
|
|
195
187
|
return false;
|
|
196
188
|
}
|
|
@@ -200,7 +192,6 @@ var hasUnsavedDataSelector = (0, _reselect.createSelector)(editData, function (d
|
|
|
200
192
|
});
|
|
201
193
|
});
|
|
202
194
|
});
|
|
203
|
-
exports.hasUnsavedDataSelector = hasUnsavedDataSelector;
|
|
204
195
|
;
|
|
205
196
|
(function () {
|
|
206
197
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/sharedMessages.js
CHANGED
|
@@ -289,8 +289,7 @@ var sharedMessages = (0, _reactIntl.defineMessages)({
|
|
|
289
289
|
});
|
|
290
290
|
var _default = sharedMessages;
|
|
291
291
|
var _default2 = _default;
|
|
292
|
-
var _default3 = _default2;
|
|
293
|
-
exports.default = _default3;
|
|
292
|
+
var _default3 = exports.default = _default2;
|
|
294
293
|
;
|
|
295
294
|
(function () {
|
|
296
295
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -17,7 +17,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var spawners = {};
|
|
20
|
-
var spawnerMiddleware = function spawnerMiddleware(store) {
|
|
20
|
+
var spawnerMiddleware = exports.spawnerMiddleware = function spawnerMiddleware(store) {
|
|
21
21
|
return function (next) {
|
|
22
22
|
return function (action) {
|
|
23
23
|
var actionSpawner = spawners[action.type];
|
|
@@ -31,7 +31,6 @@ var spawnerMiddleware = function spawnerMiddleware(store) {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
exports.spawnerMiddleware = spawnerMiddleware;
|
|
35
34
|
var addSpawner = function addSpawner(type, mapper) {
|
|
36
35
|
if (spawners[type]) {
|
|
37
36
|
throw new Error("Action spawner for type " + type + " was attempted overwritten.");
|
|
@@ -40,8 +39,7 @@ var addSpawner = function addSpawner(type, mapper) {
|
|
|
40
39
|
};
|
|
41
40
|
var _default = addSpawner;
|
|
42
41
|
var _default2 = _default;
|
|
43
|
-
var _default3 = _default2;
|
|
44
|
-
exports.default = _default3;
|
|
42
|
+
var _default3 = exports.default = _default2;
|
|
45
43
|
;
|
|
46
44
|
(function () {
|
|
47
45
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/buildUrl.js
CHANGED
|
@@ -36,12 +36,11 @@ var buildParamString = function buildParamString(params) {
|
|
|
36
36
|
var placeholder = function placeholder() {
|
|
37
37
|
throw new Error("Config not yet loaded. Please call util.js#loadConfig() and await resolution of the returned Promise.");
|
|
38
38
|
};
|
|
39
|
-
var buildUrl = placeholder;
|
|
39
|
+
var buildUrl = exports.buildUrl = placeholder;
|
|
40
40
|
|
|
41
41
|
/* Loads the local /config.json and sets up a real buildUrl() function
|
|
42
42
|
from the acquired information */
|
|
43
|
-
exports.
|
|
44
|
-
var loadConfig = function loadConfig() {
|
|
43
|
+
var loadConfig = exports.loadConfig = function loadConfig() {
|
|
45
44
|
return fetch("/config.json").then(function (response) {
|
|
46
45
|
return response.json();
|
|
47
46
|
}).catch(function () {
|
|
@@ -63,11 +62,9 @@ var loadConfig = function loadConfig() {
|
|
|
63
62
|
};
|
|
64
63
|
|
|
65
64
|
/* Reset function for testing, never use this in actual code */
|
|
66
|
-
exports.
|
|
67
|
-
var resetConfig = function resetConfig() {
|
|
65
|
+
var resetConfig = exports.resetConfig = function resetConfig() {
|
|
68
66
|
exports.buildUrl = buildUrl = placeholder;
|
|
69
67
|
};
|
|
70
|
-
exports.resetConfig = resetConfig;
|
|
71
68
|
;
|
|
72
69
|
(function () {
|
|
73
70
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -17,7 +17,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
17
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
|
-
var getLocalizedCountryByCode = function getLocalizedCountryByCode(countries, countryCode, locale) {
|
|
20
|
+
var getLocalizedCountryByCode = exports.getLocalizedCountryByCode = function getLocalizedCountryByCode(countries, countryCode, locale) {
|
|
21
21
|
var country = countries.find(function (value) {
|
|
22
22
|
return value.isoCode === countryCode;
|
|
23
23
|
});
|
|
@@ -25,7 +25,6 @@ var getLocalizedCountryByCode = function getLocalizedCountryByCode(countries, co
|
|
|
25
25
|
var countryLocalized = (0, _localizationHelper.getLocalization)(countryDisplayName, locale, countryCode);
|
|
26
26
|
return countryLocalized;
|
|
27
27
|
};
|
|
28
|
-
exports.getLocalizedCountryByCode = getLocalizedCountryByCode;
|
|
29
28
|
;
|
|
30
29
|
(function () {
|
|
31
30
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/curry.js
CHANGED
|
@@ -32,8 +32,7 @@ var curry = function curry(func) {
|
|
|
32
32
|
};
|
|
33
33
|
var _default = curry;
|
|
34
34
|
var _default2 = _default;
|
|
35
|
-
var _default3 = _default2;
|
|
36
|
-
exports.default = _default3;
|
|
35
|
+
var _default3 = exports.default = _default2;
|
|
37
36
|
;
|
|
38
37
|
(function () {
|
|
39
38
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/debounce.js
CHANGED
|
@@ -36,8 +36,7 @@ function debounce(func, wait, immediate) {
|
|
|
36
36
|
}
|
|
37
37
|
var _default = debounce;
|
|
38
38
|
var _default2 = _default;
|
|
39
|
-
var _default3 = _default2;
|
|
40
|
-
exports.default = _default3;
|
|
39
|
+
var _default3 = exports.default = _default2;
|
|
41
40
|
;
|
|
42
41
|
(function () {
|
|
43
42
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -17,22 +17,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
17
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
|
-
var isReadMode = function isReadMode(modeToCheck) {
|
|
20
|
+
var isReadMode = exports.isReadMode = function isReadMode(modeToCheck) {
|
|
21
21
|
return modeToCheck === _constants.displayMode.read;
|
|
22
22
|
};
|
|
23
|
-
exports.
|
|
24
|
-
var isEditMode = function isEditMode(modeToCheck) {
|
|
23
|
+
var isEditMode = exports.isEditMode = function isEditMode(modeToCheck) {
|
|
25
24
|
return modeToCheck === _constants.displayMode.edit;
|
|
26
25
|
};
|
|
27
|
-
exports.
|
|
28
|
-
var isCreateMode = function isCreateMode(modeToCheck) {
|
|
26
|
+
var isCreateMode = exports.isCreateMode = function isCreateMode(modeToCheck) {
|
|
29
27
|
return modeToCheck === _constants.displayMode.create;
|
|
30
28
|
};
|
|
31
|
-
exports.
|
|
32
|
-
var isMutationMode = function isMutationMode(modeToCheck) {
|
|
29
|
+
var isMutationMode = exports.isMutationMode = function isMutationMode(modeToCheck) {
|
|
33
30
|
return isEditMode(modeToCheck) || isCreateMode(modeToCheck);
|
|
34
31
|
};
|
|
35
|
-
exports.isMutationMode = isMutationMode;
|
|
36
32
|
;
|
|
37
33
|
(function () {
|
|
38
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/domHelper.js
CHANGED
|
@@ -16,12 +16,11 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
16
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
|
-
var isScrollVisible = function isScrollVisible(target) {
|
|
19
|
+
var isScrollVisible = exports.isScrollVisible = function isScrollVisible(target) {
|
|
20
20
|
var clientWidth = target.clientWidth;
|
|
21
21
|
var scrollWidth = target.scrollWidth;
|
|
22
22
|
return scrollWidth - 1 > clientWidth; // -1 because of rounding in IE
|
|
23
23
|
};
|
|
24
|
-
exports.isScrollVisible = isScrollVisible;
|
|
25
24
|
;
|
|
26
25
|
(function () {
|
|
27
26
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/flatten.js
CHANGED
|
@@ -28,13 +28,12 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
28
28
|
return a;
|
|
29
29
|
};
|
|
30
30
|
/* Flattens nested arrays */
|
|
31
|
-
var flatten = function flatten(array) {
|
|
31
|
+
var flatten = exports.flatten = function flatten(array) {
|
|
32
32
|
return array.reduce(function (flatArray, item) {
|
|
33
33
|
return Array.isArray(item) ? flatArray.concat(flatten(item)) : flatArray.concat([item]);
|
|
34
34
|
}, []);
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var flattenObj = function flattenObj(obj, separator, prefix) {
|
|
36
|
+
var flattenObj = exports.flattenObj = function flattenObj(obj, separator, prefix) {
|
|
38
37
|
if (separator === void 0) {
|
|
39
38
|
separator = ".";
|
|
40
39
|
}
|
|
@@ -54,7 +53,6 @@ var flattenObj = function flattenObj(obj, separator, prefix) {
|
|
|
54
53
|
return flatObj;
|
|
55
54
|
}, {});
|
|
56
55
|
};
|
|
57
|
-
exports.flattenObj = flattenObj;
|
|
58
56
|
;
|
|
59
57
|
(function () {
|
|
60
58
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -38,8 +38,7 @@ var insertIcons = function insertIcons(svgString) {
|
|
|
38
38
|
};
|
|
39
39
|
var _default = insertIcons;
|
|
40
40
|
var _default2 = _default;
|
|
41
|
-
var _default3 = _default2;
|
|
42
|
-
exports.default = _default3;
|
|
41
|
+
var _default3 = exports.default = _default2;
|
|
43
42
|
;
|
|
44
43
|
(function () {
|
|
45
44
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -49,8 +49,7 @@ var _default = {
|
|
|
49
49
|
findCorrespondingLocale: findCorrespondingLocale
|
|
50
50
|
};
|
|
51
51
|
var _default2 = _default;
|
|
52
|
-
var _default3 = _default2;
|
|
53
|
-
exports.default = _default3;
|
|
52
|
+
var _default3 = exports.default = _default2;
|
|
54
53
|
;
|
|
55
54
|
(function () {
|
|
56
55
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/logPass.js
CHANGED
|
@@ -28,8 +28,7 @@ function logPass(x) {
|
|
|
28
28
|
};
|
|
29
29
|
var _default = logPass;
|
|
30
30
|
var _default2 = _default;
|
|
31
|
-
var _default3 = _default2;
|
|
32
|
-
exports.default = _default3;
|
|
31
|
+
var _default3 = exports.default = _default2;
|
|
33
32
|
;
|
|
34
33
|
(function () {
|
|
35
34
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/mapHelper.js
CHANGED
|
@@ -17,7 +17,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
17
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
|
-
var mapModifiedData = function mapModifiedData(model) {
|
|
20
|
+
var mapModifiedData = exports.mapModifiedData = function mapModifiedData(model) {
|
|
21
21
|
var mapModifiedObj = function mapModifiedObj(obj) {
|
|
22
22
|
if (obj === null || obj === undefined) return obj;
|
|
23
23
|
if (obj.wasModified != null) return mapModifiedObj(obj.value);
|
|
@@ -35,8 +35,7 @@ var mapModifiedData = function mapModifiedData(model) {
|
|
|
35
35
|
}
|
|
36
36
|
return result;
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
var mapModel = function mapModel(model, initialModel, mappingRules) {
|
|
38
|
+
var mapModel = exports.mapModel = function mapModel(model, initialModel, mappingRules) {
|
|
40
39
|
if (mappingRules === void 0) {
|
|
41
40
|
mappingRules = [];
|
|
42
41
|
}
|
|
@@ -63,7 +62,6 @@ var mapModel = function mapModel(model, initialModel, mappingRules) {
|
|
|
63
62
|
});
|
|
64
63
|
return (0, _lodash.merge)({}, mergedModel);
|
|
65
64
|
};
|
|
66
|
-
exports.mapModel = mapModel;
|
|
67
65
|
;
|
|
68
66
|
(function () {
|
|
69
67
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
package/dist/utils/memoize.js
CHANGED
|
@@ -34,8 +34,7 @@ var memoize = function memoize(func) {
|
|
|
34
34
|
};
|
|
35
35
|
var _default = memoize;
|
|
36
36
|
var _default2 = _default;
|
|
37
|
-
var _default3 = _default2;
|
|
38
|
-
exports.default = _default3;
|
|
37
|
+
var _default3 = exports.default = _default2;
|
|
39
38
|
;
|
|
40
39
|
(function () {
|
|
41
40
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -23,7 +23,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
23
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
24
|
return a;
|
|
25
25
|
};
|
|
26
|
-
var validationRules = (_validationRules = {}, _defineProperty(_validationRules, _constants.validationErrorTypes.fieldIsRequired, function (value) {
|
|
26
|
+
var validationRules = exports.validationRules = (_validationRules = {}, _defineProperty(_validationRules, _constants.validationErrorTypes.fieldIsRequired, function (value) {
|
|
27
27
|
if (value === null || value === undefined) return false;
|
|
28
28
|
if ((0, _propertyValidator.isString)(value) && (0, _propertyValidator.isStringNullOrWhitespace)(value)) return false;
|
|
29
29
|
return true;
|
|
@@ -40,13 +40,11 @@ var validationRules = (_validationRules = {}, _defineProperty(_validationRules,
|
|
|
40
40
|
var regexRule = new RegExp("^(\\-?\\*?\\#?[ 0-9])*$");
|
|
41
41
|
return regexRule.test(value);
|
|
42
42
|
}), _validationRules);
|
|
43
|
-
exports.
|
|
44
|
-
var showError = function showError(field) {
|
|
43
|
+
var showError = exports.showError = function showError(field) {
|
|
45
44
|
if (field == null) return false;
|
|
46
45
|
return field.error != null;
|
|
47
46
|
};
|
|
48
|
-
exports.
|
|
49
|
-
var hasValidationErrors = function hasValidationErrors(editState, validationMap) {
|
|
47
|
+
var hasValidationErrors = exports.hasValidationErrors = function hasValidationErrors(editState, validationMap) {
|
|
50
48
|
if ((0, _lodash.isEmpty)(editState)) return true;
|
|
51
49
|
var fields = Object.keys(editState);
|
|
52
50
|
var hasAnyValidationErrors = false;
|
|
@@ -96,8 +94,7 @@ var hasValidationErrors = function hasValidationErrors(editState, validationMap)
|
|
|
96
94
|
}
|
|
97
95
|
return hasAnyValidationErrors;
|
|
98
96
|
};
|
|
99
|
-
exports.
|
|
100
|
-
var hasMultipleFieldValidationErrors = function hasMultipleFieldValidationErrors(editStates) {
|
|
97
|
+
var hasMultipleFieldValidationErrors = exports.hasMultipleFieldValidationErrors = function hasMultipleFieldValidationErrors(editStates) {
|
|
101
98
|
if (editStates) {
|
|
102
99
|
for (var _i = 0, _Object$keys = Object.keys(editStates); _i < _Object$keys.length; _i++) {
|
|
103
100
|
var id = _Object$keys[_i];
|
|
@@ -109,7 +106,6 @@ var hasMultipleFieldValidationErrors = function hasMultipleFieldValidationErrors
|
|
|
109
106
|
}
|
|
110
107
|
return false;
|
|
111
108
|
};
|
|
112
|
-
exports.hasMultipleFieldValidationErrors = hasMultipleFieldValidationErrors;
|
|
113
109
|
;
|
|
114
110
|
(function () {
|
|
115
111
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -32,8 +32,7 @@ if ("".normalize) {
|
|
|
32
32
|
}
|
|
33
33
|
var _default = normalizeForSearch;
|
|
34
34
|
var _default2 = _default;
|
|
35
|
-
var _default3 = _default2;
|
|
36
|
-
exports.default = _default3;
|
|
35
|
+
var _default3 = exports.default = _default2;
|
|
37
36
|
;
|
|
38
37
|
(function () {
|
|
39
38
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -16,7 +16,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
16
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
|
-
var createObjectWithKeysAndValues = function createObjectWithKeysAndValues(keys, values, defaultValue) {
|
|
19
|
+
var createObjectWithKeysAndValues = exports.createObjectWithKeysAndValues = function createObjectWithKeysAndValues(keys, values, defaultValue) {
|
|
20
20
|
if (keys === void 0) {
|
|
21
21
|
keys = [];
|
|
22
22
|
}
|
|
@@ -38,7 +38,6 @@ var createObjectWithKeysAndValues = function createObjectWithKeysAndValues(keys,
|
|
|
38
38
|
}
|
|
39
39
|
return result;
|
|
40
40
|
};
|
|
41
|
-
exports.createObjectWithKeysAndValues = createObjectWithKeysAndValues;
|
|
42
41
|
;
|
|
43
42
|
(function () {
|
|
44
43
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -16,7 +16,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
16
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
|
-
var parseGuid = function parseGuid(guid) {
|
|
19
|
+
var parseGuid = exports.parseGuid = function parseGuid(guid) {
|
|
20
20
|
if ((guid == null ? void 0 : guid.length) === 32) {
|
|
21
21
|
return guid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
22
22
|
}
|
|
@@ -25,8 +25,7 @@ var parseGuid = function parseGuid(guid) {
|
|
|
25
25
|
}
|
|
26
26
|
return "";
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var concatObjectPropsWithDelimeter = function concatObjectPropsWithDelimeter(object, propsToUse, delimeter, useSpace) {
|
|
28
|
+
var concatObjectPropsWithDelimeter = exports.concatObjectPropsWithDelimeter = function concatObjectPropsWithDelimeter(object, propsToUse, delimeter, useSpace) {
|
|
30
29
|
if (delimeter === void 0) {
|
|
31
30
|
delimeter = ",";
|
|
32
31
|
}
|
|
@@ -54,24 +53,20 @@ var concatObjectPropsWithDelimeter = function concatObjectPropsWithDelimeter(obj
|
|
|
54
53
|
});
|
|
55
54
|
return concatedString;
|
|
56
55
|
};
|
|
57
|
-
exports.
|
|
58
|
-
var getAllAfterPrependHref = function getAllAfterPrependHref(prependHref, href) {
|
|
56
|
+
var getAllAfterPrependHref = exports.getAllAfterPrependHref = function getAllAfterPrependHref(prependHref, href) {
|
|
59
57
|
var prependSlashCount = ((prependHref == null ? void 0 : prependHref.match(/\//g)) || []).length;
|
|
60
58
|
return href.split("/").slice(prependSlashCount).join("/");
|
|
61
59
|
};
|
|
62
|
-
exports.
|
|
63
|
-
var getModuleNameFromHref = function getModuleNameFromHref(prependPath, href) {
|
|
60
|
+
var getModuleNameFromHref = exports.getModuleNameFromHref = function getModuleNameFromHref(prependPath, href) {
|
|
64
61
|
var pathArray = href.split("/");
|
|
65
62
|
var moduleNamePosition = ((prependPath == null ? void 0 : prependPath.match(/\//g)) || []).length;
|
|
66
63
|
var moduleName = moduleNamePosition < pathArray.length ? pathArray[moduleNamePosition] : "";
|
|
67
64
|
var moduleHref = moduleNamePosition < pathArray.length ? pathArray.slice(0, moduleNamePosition + 1).join("/") : "";
|
|
68
65
|
return [moduleName, moduleHref];
|
|
69
66
|
};
|
|
70
|
-
exports.
|
|
71
|
-
var stringifyWithoutQuotes = function stringifyWithoutQuotes(obj) {
|
|
67
|
+
var stringifyWithoutQuotes = exports.stringifyWithoutQuotes = function stringifyWithoutQuotes(obj) {
|
|
72
68
|
return JSON.stringify(obj).replace(/"/g, "");
|
|
73
69
|
};
|
|
74
|
-
exports.stringifyWithoutQuotes = stringifyWithoutQuotes;
|
|
75
70
|
;
|
|
76
71
|
(function () {
|
|
77
72
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -16,7 +16,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
16
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
|
-
var logProfiler = function logProfiler(profilerId, phase, actualTime, baseTime, startTime, commitTime, interactions) {
|
|
19
|
+
var logProfiler = exports.logProfiler = function logProfiler(profilerId, phase, actualTime, baseTime, startTime, commitTime, interactions) {
|
|
20
20
|
console.log({
|
|
21
21
|
_title: profilerId,
|
|
22
22
|
// Renamed the property to be the first one to be displayed
|
|
@@ -30,7 +30,6 @@ var logProfiler = function logProfiler(profilerId, phase, actualTime, baseTime,
|
|
|
30
30
|
interactions: interactions // this is gotten from the rapping API
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
exports.logProfiler = logProfiler;
|
|
34
33
|
;
|
|
35
34
|
(function () {
|
|
36
35
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -58,7 +58,7 @@ function getPropertyOrDefault(obj, property, defaultValue, ignoreCase, startWith
|
|
|
58
58
|
}
|
|
59
59
|
return defaultValue;
|
|
60
60
|
}
|
|
61
|
-
var isObjectContainsPropertyWithValue = function isObjectContainsPropertyWithValue(obj, propertyName, value) {
|
|
61
|
+
var isObjectContainsPropertyWithValue = exports.isObjectContainsPropertyWithValue = function isObjectContainsPropertyWithValue(obj, propertyName, value) {
|
|
62
62
|
if (obj === null || obj === undefined) return false;
|
|
63
63
|
if (obj.hasOwnProperty(propertyName) && obj[propertyName] === value) {
|
|
64
64
|
return true;
|
|
@@ -70,8 +70,7 @@ var isObjectContainsPropertyWithValue = function isObjectContainsPropertyWithVal
|
|
|
70
70
|
}
|
|
71
71
|
return false;
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
74
|
-
var isObjectContainsPropertyWithAnyValue = function isObjectContainsPropertyWithAnyValue(obj, propertyName) {
|
|
73
|
+
var isObjectContainsPropertyWithAnyValue = exports.isObjectContainsPropertyWithAnyValue = function isObjectContainsPropertyWithAnyValue(obj, propertyName) {
|
|
75
74
|
if (!obj) return false;
|
|
76
75
|
if (obj.hasOwnProperty(propertyName) && obj[propertyName]) {
|
|
77
76
|
return true;
|
|
@@ -83,8 +82,7 @@ var isObjectContainsPropertyWithAnyValue = function isObjectContainsPropertyWith
|
|
|
83
82
|
}
|
|
84
83
|
return false;
|
|
85
84
|
};
|
|
86
|
-
exports.
|
|
87
|
-
var compareObjectProperty = function compareObjectProperty(obj1, obj2, propertyName) {
|
|
85
|
+
var compareObjectProperty = exports.compareObjectProperty = function compareObjectProperty(obj1, obj2, propertyName) {
|
|
88
86
|
if (propertyName == null || propertyName === "") {
|
|
89
87
|
return 0;
|
|
90
88
|
}
|
|
@@ -98,8 +96,7 @@ var compareObjectProperty = function compareObjectProperty(obj1, obj2, propertyN
|
|
|
98
96
|
}
|
|
99
97
|
return 1;
|
|
100
98
|
};
|
|
101
|
-
exports.
|
|
102
|
-
var compareObjectPropertyDescending = function compareObjectPropertyDescending(obj1, obj2, propertyName) {
|
|
99
|
+
var compareObjectPropertyDescending = exports.compareObjectPropertyDescending = function compareObjectPropertyDescending(obj1, obj2, propertyName) {
|
|
103
100
|
if (propertyName == null || propertyName === "") {
|
|
104
101
|
return 0;
|
|
105
102
|
}
|
|
@@ -113,7 +110,6 @@ var compareObjectPropertyDescending = function compareObjectPropertyDescending(o
|
|
|
113
110
|
}
|
|
114
111
|
return 1;
|
|
115
112
|
};
|
|
116
|
-
exports.compareObjectPropertyDescending = compareObjectPropertyDescending;
|
|
117
113
|
;
|
|
118
114
|
(function () {
|
|
119
115
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -18,22 +18,18 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
18
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
19
|
return a;
|
|
20
20
|
};
|
|
21
|
-
var isString = function isString(property) {
|
|
21
|
+
var isString = exports.isString = function isString(property) {
|
|
22
22
|
return typeof property === "string";
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
25
|
-
var isObject = function isObject(property) {
|
|
24
|
+
var isObject = exports.isObject = function isObject(property) {
|
|
26
25
|
return typeof property === "object";
|
|
27
26
|
};
|
|
28
|
-
exports.
|
|
29
|
-
var isStringNullOrWhitespace = function isStringNullOrWhitespace(string) {
|
|
27
|
+
var isStringNullOrWhitespace = exports.isStringNullOrWhitespace = function isStringNullOrWhitespace(string) {
|
|
30
28
|
return string == null || string.trim().length === 0;
|
|
31
29
|
};
|
|
32
|
-
exports.
|
|
33
|
-
var isReactComponent = function isReactComponent(component) {
|
|
30
|
+
var isReactComponent = exports.isReactComponent = function isReactComponent(component) {
|
|
34
31
|
return _react.default.isValidElement(component);
|
|
35
32
|
};
|
|
36
|
-
exports.isReactComponent = isReactComponent;
|
|
37
33
|
;
|
|
38
34
|
(function () {
|
|
39
35
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -17,7 +17,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
|
|
|
17
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
|
-
var computeFinalRequestProcessingState = function computeFinalRequestProcessingState() {
|
|
20
|
+
var computeFinalRequestProcessingState = exports.computeFinalRequestProcessingState = function computeFinalRequestProcessingState() {
|
|
21
21
|
var states = arguments;
|
|
22
22
|
var idleCount = 0;
|
|
23
23
|
for (var i = 0; i < states.length; i++) {
|
|
@@ -37,11 +37,9 @@ var computeFinalRequestProcessingState = function computeFinalRequestProcessingS
|
|
|
37
37
|
}
|
|
38
38
|
return idleCount === states.length ? _constants.requestStates.idle : _constants.requestStates.success;
|
|
39
39
|
};
|
|
40
|
-
exports.computeFinalRequestProcessingState = computeFinalRequestProcessingState;
|
|
41
40
|
var _default = computeFinalRequestProcessingState;
|
|
42
41
|
var _default2 = _default;
|
|
43
|
-
var _default3 = _default2;
|
|
44
|
-
exports.default = _default3;
|
|
42
|
+
var _default3 = exports.default = _default2;
|
|
45
43
|
;
|
|
46
44
|
(function () {
|
|
47
45
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|