orc-shared 1.2.2-dev.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/applications.js +14 -52
- package/dist/actions/authentication.js +10 -45
- package/dist/actions/countries.js +6 -36
- package/dist/actions/locale.js +14 -54
- package/dist/actions/makeApiAction.js +31 -79
- package/dist/actions/makeOrcApiAction.js +3 -26
- package/dist/actions/metadata.js +65 -174
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +3 -33
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +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 +1 -31
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +17 -70
- package/dist/components/AppFrame/Preferences.js +17 -79
- package/dist/components/AppFrame/Sidebar.js +8 -53
- 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 +3 -41
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +12 -50
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +6 -37
- package/dist/components/Form/FieldElements.js +9 -41
- package/dist/components/Form/FieldList.js +28 -92
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +17 -66
- package/dist/components/Form/Inputs/Button.js +5 -35
- package/dist/components/Form/Inputs/Date.js +2 -28
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +7 -46
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +6 -38
- package/dist/components/Form/Inputs/Text.js +8 -41
- package/dist/components/Form/Inputs/Time.js +4 -33
- package/dist/components/Form/Inputs/Toggles.js +5 -39
- package/dist/components/Form/Inputs/Translation.js +21 -78
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +0 -28
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +2 -42
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +3 -42
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +37 -107
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +3 -29
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +5 -48
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +7 -51
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +2 -28
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +4 -37
- package/dist/components/MaterialUI/DataDisplay/Notification.js +17 -69
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +3 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +0 -22
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +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 +34 -123
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +7 -46
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +0 -21
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +32 -97
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +3 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +3 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +3 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +3 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +5 -68
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +11 -48
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +5 -40
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +5 -44
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +5 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +3 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +3 -40
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +3 -43
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +3 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +3 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +16 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +3 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +12 -65
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +3 -41
- package/dist/components/MaterialUI/Inputs/Select.js +10 -72
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +3 -35
- package/dist/components/MaterialUI/Inputs/Switch.js +4 -38
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +3 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -91
- package/dist/components/MaterialUI/Inputs/createInput.js +5 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +3 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +12 -56
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +3 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +22 -103
- package/dist/components/MaterialUI/Navigation/TabLabel.js +7 -41
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +22 -62
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +16 -68
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +15 -55
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +19 -62
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +3 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +3 -36
- package/dist/components/MaterialUI/componentProps.js +3 -29
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +10 -59
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -44
- package/dist/components/MaterialUI/muiThemes.js +5 -57
- package/dist/components/MaterialUI/textProps.js +3 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +8 -44
- package/dist/components/Modules.js +21 -93
- package/dist/components/MultiSelector.js +21 -74
- package/dist/components/Navigation/Bar.js +29 -90
- package/dist/components/Navigation/Tab.js +22 -74
- package/dist/components/Navigation/index.js +1 -21
- package/dist/components/Navigation/useNavigationState.js +90 -173
- package/dist/components/Placeholder.js +5 -43
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +14 -51
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +26 -106
- package/dist/components/Routing/SubPage.js +6 -54
- package/dist/components/Routing/withWaypointing.js +6 -37
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +8 -49
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +29 -96
- package/dist/components/Scope/useScopeConfirmationModalState.js +33 -100
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +15 -76
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +11 -51
- package/dist/components/Text.js +6 -50
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +16 -74
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +17 -55
- package/dist/components/Treeview/index.js +25 -66
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +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 +2 -28
- package/dist/hocs/withErrorBoundary.js +2 -37
- package/dist/hocs/withId.js +1 -30
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +5 -32
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +6 -33
- package/dist/hocs/withScrollBox.js +2 -31
- package/dist/hocs/withToggle.js +9 -37
- package/dist/hocs/withUpdateHandler.js +3 -23
- package/dist/hocs/withViewState.js +5 -32
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +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 +14 -91
- package/dist/utils/timezoneHelper.js +4 -35
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +3 -28
- package/dist/whyDidYouRerender.js +1 -5
- package/package.json +3 -3
|
@@ -5,59 +5,44 @@ exports.default = void 0;
|
|
|
5
5
|
exports.findCorrespondingLocale = findCorrespondingLocale;
|
|
6
6
|
exports.getLocalization = getLocalization;
|
|
7
7
|
exports.getNotLocalizedString = getNotLocalizedString;
|
|
8
|
-
|
|
9
8
|
var _propertyHelper = require("./propertyHelper");
|
|
10
|
-
|
|
11
9
|
(function () {
|
|
12
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
11
|
enterModule && enterModule(module);
|
|
14
12
|
})();
|
|
15
|
-
|
|
16
13
|
(function () {
|
|
17
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
15
|
enterModule && enterModule(module);
|
|
19
16
|
})();
|
|
20
|
-
|
|
21
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
18
|
return a;
|
|
23
19
|
};
|
|
24
|
-
|
|
25
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
21
|
return a;
|
|
27
22
|
};
|
|
28
|
-
|
|
29
23
|
function getLocalization(localizations, locale, defaultValue, useDefaultForEmptyValue) {
|
|
30
24
|
var _localisation;
|
|
31
|
-
|
|
32
25
|
if (useDefaultForEmptyValue === void 0) {
|
|
33
26
|
useDefaultForEmptyValue = true;
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
var fallbackValue = getNotLocalizedString(defaultValue);
|
|
37
29
|
if (!localizations || !locale) return fallbackValue;
|
|
38
30
|
var localisation = (0, _propertyHelper.getPropertyOrDefault)(localizations, locale, fallbackValue, true);
|
|
39
|
-
|
|
40
31
|
if (localisation === fallbackValue) {
|
|
41
32
|
localisation = (0, _propertyHelper.getPropertyOrDefault)(localizations, locale.split("-")[0], fallbackValue, true, true);
|
|
42
33
|
}
|
|
43
|
-
|
|
44
34
|
if (useDefaultForEmptyValue && ((_localisation = localisation) == null ? void 0 : _localisation.trim()) === "") {
|
|
45
35
|
return fallbackValue;
|
|
46
36
|
}
|
|
47
|
-
|
|
48
37
|
return localisation;
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
function getNotLocalizedString(value) {
|
|
52
40
|
return value && "[".concat(value, "]");
|
|
53
41
|
}
|
|
54
|
-
|
|
55
42
|
function findCorrespondingLocale(locales, language) {
|
|
56
43
|
var _ref, _ref2, _ref3, _ref4, _locales$language;
|
|
57
|
-
|
|
58
44
|
return (_ref = (_ref2 = (_ref3 = (_ref4 = (_locales$language = locales[language]) != null ? _locales$language : locales[language.replace(/-/g, "")]) != null ? _ref4 : locales[language.toLowerCase()]) != null ? _ref3 : locales[language.toLowerCase().replace(/-/g, "")]) != null ? _ref2 : locales[language.substring(0, 2).toLowerCase()]) != null ? _ref : null;
|
|
59
45
|
}
|
|
60
|
-
|
|
61
46
|
var _default = {
|
|
62
47
|
getLocalization: getLocalization,
|
|
63
48
|
getNotLocalizedString: getNotLocalizedString,
|
|
@@ -67,44 +52,33 @@ var _default2 = _default;
|
|
|
67
52
|
var _default3 = _default2;
|
|
68
53
|
exports.default = _default3;
|
|
69
54
|
;
|
|
70
|
-
|
|
71
55
|
(function () {
|
|
72
56
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
73
|
-
|
|
74
57
|
if (!reactHotLoader) {
|
|
75
58
|
return;
|
|
76
59
|
}
|
|
77
|
-
|
|
78
60
|
reactHotLoader.register(getLocalization, "getLocalization", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
79
61
|
reactHotLoader.register(getNotLocalizedString, "getNotLocalizedString", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
80
62
|
reactHotLoader.register(findCorrespondingLocale, "findCorrespondingLocale", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
81
63
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
82
64
|
})();
|
|
83
|
-
|
|
84
65
|
;
|
|
85
|
-
|
|
86
66
|
(function () {
|
|
87
67
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
88
68
|
leaveModule && leaveModule(module);
|
|
89
69
|
})();
|
|
90
|
-
|
|
91
70
|
;
|
|
92
|
-
|
|
93
71
|
(function () {
|
|
94
72
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
95
|
-
|
|
96
73
|
if (!reactHotLoader) {
|
|
97
74
|
return;
|
|
98
75
|
}
|
|
99
|
-
|
|
100
76
|
reactHotLoader.register(getLocalization, "getLocalization", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
101
77
|
reactHotLoader.register(getNotLocalizedString, "getNotLocalizedString", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
102
78
|
reactHotLoader.register(findCorrespondingLocale, "findCorrespondingLocale", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
103
79
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/localizationHelper.js");
|
|
104
80
|
})();
|
|
105
|
-
|
|
106
81
|
;
|
|
107
|
-
|
|
108
82
|
(function () {
|
|
109
83
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
110
84
|
leaveModule && leaveModule(module);
|
package/dist/utils/logPass.js
CHANGED
|
@@ -2,79 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable4"));
|
|
7
|
-
|
|
8
6
|
var _unwrapImmutable = _interopRequireDefault(require("./unwrapImmutable"));
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
/* Logs a value and returns it, useful for debugging arrow
|
|
31
23
|
functions without blocks. */
|
|
32
|
-
var logPass =
|
|
33
|
-
/* istanbul ignore next */
|
|
24
|
+
var logPass = /* istanbul ignore next */
|
|
34
25
|
function logPass(x) {
|
|
35
26
|
console.log(_immutable.default.isImmutable(x) ? "Immutable" : "Object", (0, _unwrapImmutable.default)(x));
|
|
36
27
|
return x;
|
|
37
28
|
};
|
|
38
|
-
|
|
39
29
|
var _default = logPass;
|
|
40
30
|
var _default2 = _default;
|
|
41
31
|
var _default3 = _default2;
|
|
42
32
|
exports.default = _default3;
|
|
43
33
|
;
|
|
44
|
-
|
|
45
34
|
(function () {
|
|
46
35
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
|
|
48
36
|
if (!reactHotLoader) {
|
|
49
37
|
return;
|
|
50
38
|
}
|
|
51
|
-
|
|
52
39
|
reactHotLoader.register(logPass, "logPass", "/home/vsts/work/1/s/src/utils/logPass.js");
|
|
53
40
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/logPass.js");
|
|
54
41
|
})();
|
|
55
|
-
|
|
56
42
|
;
|
|
57
|
-
|
|
58
43
|
(function () {
|
|
59
44
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
60
45
|
leaveModule && leaveModule(module);
|
|
61
46
|
})();
|
|
62
|
-
|
|
63
47
|
;
|
|
64
|
-
|
|
65
48
|
(function () {
|
|
66
49
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
67
|
-
|
|
68
50
|
if (!reactHotLoader) {
|
|
69
51
|
return;
|
|
70
52
|
}
|
|
71
|
-
|
|
72
53
|
reactHotLoader.register(logPass, "logPass", "/home/vsts/work/1/s/src/utils/logPass.js");
|
|
73
54
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/logPass.js");
|
|
74
55
|
})();
|
|
75
|
-
|
|
76
56
|
;
|
|
77
|
-
|
|
78
57
|
(function () {
|
|
79
58
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
80
59
|
leaveModule && leaveModule(module);
|
package/dist/utils/mapHelper.js
CHANGED
|
@@ -2,36 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.mapModifiedData = exports.mapModel = void 0;
|
|
5
|
-
|
|
6
5
|
var _lodash = require("lodash");
|
|
7
|
-
|
|
8
6
|
(function () {
|
|
9
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
8
|
enterModule && enterModule(module);
|
|
11
9
|
})();
|
|
12
|
-
|
|
13
10
|
(function () {
|
|
14
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
12
|
enterModule && enterModule(module);
|
|
16
13
|
})();
|
|
17
|
-
|
|
18
14
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
15
|
return a;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
18
|
return a;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
var mapModifiedData = function mapModifiedData(model) {
|
|
27
21
|
var mapModifiedObj = function mapModifiedObj(obj) {
|
|
28
22
|
if (obj === null || obj === undefined) return obj;
|
|
29
23
|
if (obj.wasModified != null) return mapModifiedObj(obj.value);
|
|
30
24
|
return mapModifiedData(obj);
|
|
31
25
|
};
|
|
32
|
-
|
|
33
26
|
var result;
|
|
34
|
-
|
|
35
27
|
if (typeof model === "object" || Array.isArray(model)) {
|
|
36
28
|
result = Array.isArray(model) ? [] : {};
|
|
37
29
|
var modifiedFields = Object.keys(model);
|
|
@@ -41,17 +33,13 @@ var mapModifiedData = function mapModifiedData(model) {
|
|
|
41
33
|
} else {
|
|
42
34
|
result = model;
|
|
43
35
|
}
|
|
44
|
-
|
|
45
36
|
return result;
|
|
46
37
|
};
|
|
47
|
-
|
|
48
38
|
exports.mapModifiedData = mapModifiedData;
|
|
49
|
-
|
|
50
39
|
var mapModel = function mapModel(model, initialModel, mappingRules) {
|
|
51
40
|
if (mappingRules === void 0) {
|
|
52
41
|
mappingRules = [];
|
|
53
42
|
}
|
|
54
|
-
|
|
55
43
|
// if need to map fields with different model keys then
|
|
56
44
|
// mappingRules should be an array like
|
|
57
45
|
// [
|
|
@@ -62,56 +50,44 @@ var mapModel = function mapModel(model, initialModel, mappingRules) {
|
|
|
62
50
|
// },
|
|
63
51
|
// ]
|
|
64
52
|
// if you don't need this - just don't pass any value for that parameter
|
|
53
|
+
|
|
65
54
|
var mergedModel = (0, _lodash.cloneDeep)(initialModel);
|
|
66
55
|
var modifiedModel = mapModifiedData(model);
|
|
67
56
|
mergedModel = (0, _lodash.merge)(mergedModel, modifiedModel);
|
|
68
57
|
mappingRules.forEach(function (rule) {
|
|
69
58
|
var initialField = (0, _lodash.get)(mergedModel, rule.modelName);
|
|
70
59
|
var modifiedField = (0, _lodash.get)(modifiedModel, rule.modelName);
|
|
71
|
-
|
|
72
60
|
if (modifiedField !== undefined) {
|
|
73
61
|
rule.transform(initialField, modifiedField, mergedModel, modifiedModel);
|
|
74
62
|
}
|
|
75
63
|
});
|
|
76
64
|
return (0, _lodash.merge)({}, mergedModel);
|
|
77
65
|
};
|
|
78
|
-
|
|
79
66
|
exports.mapModel = mapModel;
|
|
80
67
|
;
|
|
81
|
-
|
|
82
68
|
(function () {
|
|
83
69
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
84
|
-
|
|
85
70
|
if (!reactHotLoader) {
|
|
86
71
|
return;
|
|
87
72
|
}
|
|
88
|
-
|
|
89
73
|
reactHotLoader.register(mapModifiedData, "mapModifiedData", "/home/vsts/work/1/s/src/utils/mapHelper.js");
|
|
90
74
|
reactHotLoader.register(mapModel, "mapModel", "/home/vsts/work/1/s/src/utils/mapHelper.js");
|
|
91
75
|
})();
|
|
92
|
-
|
|
93
76
|
;
|
|
94
|
-
|
|
95
77
|
(function () {
|
|
96
78
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
97
79
|
leaveModule && leaveModule(module);
|
|
98
80
|
})();
|
|
99
|
-
|
|
100
81
|
;
|
|
101
|
-
|
|
102
82
|
(function () {
|
|
103
83
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
104
|
-
|
|
105
84
|
if (!reactHotLoader) {
|
|
106
85
|
return;
|
|
107
86
|
}
|
|
108
|
-
|
|
109
87
|
reactHotLoader.register(mapModifiedData, "mapModifiedData", "/home/vsts/work/1/s/src/utils/mapHelper.js");
|
|
110
88
|
reactHotLoader.register(mapModel, "mapModel", "/home/vsts/work/1/s/src/utils/mapHelper.js");
|
|
111
89
|
})();
|
|
112
|
-
|
|
113
90
|
;
|
|
114
|
-
|
|
115
91
|
(function () {
|
|
116
92
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
117
93
|
leaveModule && leaveModule(module);
|
package/dist/utils/memoize.js
CHANGED
|
@@ -2,87 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
7
|
(function () {
|
|
11
8
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
9
|
enterModule && enterModule(module);
|
|
13
10
|
})();
|
|
14
|
-
|
|
15
11
|
(function () {
|
|
16
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
17
13
|
enterModule && enterModule(module);
|
|
18
14
|
})();
|
|
19
|
-
|
|
20
15
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
16
|
return a;
|
|
22
17
|
};
|
|
23
|
-
|
|
24
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
19
|
return a;
|
|
26
20
|
};
|
|
27
|
-
|
|
28
21
|
/* Memoizes a function, i.e. stores pairs of arguments and results */
|
|
29
22
|
var memoize = function memoize(func) {
|
|
30
23
|
var cache = _immutable.default.Map();
|
|
31
|
-
|
|
32
24
|
return function () {
|
|
33
25
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
26
|
args[_key] = arguments[_key];
|
|
35
27
|
}
|
|
36
|
-
|
|
37
28
|
var key = _immutable.default.fromJS(args);
|
|
38
|
-
|
|
39
29
|
if (!cache.has(key)) {
|
|
40
30
|
cache = cache.set(key, func.apply(void 0, args));
|
|
41
31
|
}
|
|
42
|
-
|
|
43
32
|
return cache.get(key);
|
|
44
33
|
};
|
|
45
34
|
};
|
|
46
|
-
|
|
47
35
|
var _default = memoize;
|
|
48
36
|
var _default2 = _default;
|
|
49
37
|
var _default3 = _default2;
|
|
50
38
|
exports.default = _default3;
|
|
51
39
|
;
|
|
52
|
-
|
|
53
40
|
(function () {
|
|
54
41
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
55
|
-
|
|
56
42
|
if (!reactHotLoader) {
|
|
57
43
|
return;
|
|
58
44
|
}
|
|
59
|
-
|
|
60
45
|
reactHotLoader.register(memoize, "memoize", "/home/vsts/work/1/s/src/utils/memoize.js");
|
|
61
46
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/memoize.js");
|
|
62
47
|
})();
|
|
63
|
-
|
|
64
48
|
;
|
|
65
|
-
|
|
66
49
|
(function () {
|
|
67
50
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
68
51
|
leaveModule && leaveModule(module);
|
|
69
52
|
})();
|
|
70
|
-
|
|
71
53
|
;
|
|
72
|
-
|
|
73
54
|
(function () {
|
|
74
55
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
75
|
-
|
|
76
56
|
if (!reactHotLoader) {
|
|
77
57
|
return;
|
|
78
58
|
}
|
|
79
|
-
|
|
80
59
|
reactHotLoader.register(memoize, "memoize", "/home/vsts/work/1/s/src/utils/memoize.js");
|
|
81
60
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/memoize.js");
|
|
82
61
|
})();
|
|
83
|
-
|
|
84
62
|
;
|
|
85
|
-
|
|
86
63
|
(function () {
|
|
87
64
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
88
65
|
leaveModule && leaveModule(module);
|
|
@@ -2,35 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.validationRules = exports.showError = exports.hasValidationErrors = exports.hasMultipleFieldValidationErrors = void 0;
|
|
5
|
-
|
|
6
5
|
var _propertyValidator = require("./propertyValidator");
|
|
7
|
-
|
|
8
6
|
var _constants = require("../constants");
|
|
9
|
-
|
|
10
7
|
var _lodash = require("lodash");
|
|
11
|
-
|
|
12
8
|
var _validationRules;
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
19
|
+
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); }
|
|
26
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
21
|
return a;
|
|
28
22
|
};
|
|
29
|
-
|
|
30
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
24
|
return a;
|
|
32
25
|
};
|
|
33
|
-
|
|
34
26
|
var validationRules = (_validationRules = {}, _defineProperty(_validationRules, _constants.validationErrorTypes.fieldIsRequired, function (value) {
|
|
35
27
|
if (value === null || value === undefined) return false;
|
|
36
28
|
if ((0, _propertyValidator.isString)(value) && (0, _propertyValidator.isStringNullOrWhitespace)(value)) return false;
|
|
@@ -49,26 +41,21 @@ var validationRules = (_validationRules = {}, _defineProperty(_validationRules,
|
|
|
49
41
|
return regexRule.test(value);
|
|
50
42
|
}), _validationRules);
|
|
51
43
|
exports.validationRules = validationRules;
|
|
52
|
-
|
|
53
44
|
var showError = function showError(field) {
|
|
54
45
|
if (field == null) return false;
|
|
55
46
|
return field.error != null;
|
|
56
47
|
};
|
|
57
|
-
|
|
58
48
|
exports.showError = showError;
|
|
59
|
-
|
|
60
49
|
var hasValidationErrors = function hasValidationErrors(editState, validationMap) {
|
|
61
50
|
if ((0, _lodash.isEmpty)(editState)) return true;
|
|
62
51
|
var fields = Object.keys(editState);
|
|
63
52
|
var hasAnyValidationErrors = false;
|
|
64
53
|
fields.forEach(function (field) {
|
|
65
54
|
var isValid = editState[field].isValid ? editState[field].isValid() : true;
|
|
66
|
-
|
|
67
55
|
if (isValid === false) {
|
|
68
56
|
hasAnyValidationErrors = true;
|
|
69
57
|
}
|
|
70
58
|
});
|
|
71
|
-
|
|
72
59
|
if (validationMap) {
|
|
73
60
|
var mapKeys = Object.keys(validationMap);
|
|
74
61
|
mapKeys.forEach(function (mapKey) {
|
|
@@ -77,38 +64,29 @@ var hasValidationErrors = function hasValidationErrors(editState, validationMap)
|
|
|
77
64
|
node.elements.forEach(function (element) {
|
|
78
65
|
var fullElementPath = [].concat(node.path, element.path);
|
|
79
66
|
var errorTypes = [];
|
|
80
|
-
|
|
81
67
|
if (validationMap[mapKey].errorTypes) {
|
|
82
68
|
errorTypes.push.apply(errorTypes, validationMap[mapKey].errorTypes);
|
|
83
69
|
}
|
|
84
|
-
|
|
85
70
|
if (node.errorTypes) {
|
|
86
71
|
errorTypes.push.apply(errorTypes, node.errorTypes);
|
|
87
72
|
}
|
|
88
|
-
|
|
89
73
|
if (element.errorTypes) {
|
|
90
74
|
errorTypes.push.apply(errorTypes, element.errorTypes);
|
|
91
75
|
}
|
|
92
|
-
|
|
93
76
|
var isValid = editState[mapKey].isValid(null, fullElementPath, errorTypes, element.dependencies);
|
|
94
|
-
|
|
95
77
|
if (isValid === false) {
|
|
96
78
|
hasAnyValidationErrors = true;
|
|
97
79
|
}
|
|
98
80
|
});
|
|
99
81
|
} else {
|
|
100
82
|
var errorTypes = [];
|
|
101
|
-
|
|
102
83
|
if (validationMap[mapKey].errorTypes) {
|
|
103
84
|
errorTypes.push(validationMap[mapKey].errorTypes);
|
|
104
85
|
}
|
|
105
|
-
|
|
106
86
|
if (node.errorTypes) {
|
|
107
87
|
errorTypes.push(node.errorTypes);
|
|
108
88
|
}
|
|
109
|
-
|
|
110
89
|
var isValid = editState[mapKey].isValid(null, node.path, errorTypes);
|
|
111
|
-
|
|
112
90
|
if (isValid === false) {
|
|
113
91
|
hasAnyValidationErrors = true;
|
|
114
92
|
}
|
|
@@ -116,67 +94,50 @@ var hasValidationErrors = function hasValidationErrors(editState, validationMap)
|
|
|
116
94
|
});
|
|
117
95
|
});
|
|
118
96
|
}
|
|
119
|
-
|
|
120
97
|
return hasAnyValidationErrors;
|
|
121
98
|
};
|
|
122
|
-
|
|
123
99
|
exports.hasValidationErrors = hasValidationErrors;
|
|
124
|
-
|
|
125
100
|
var hasMultipleFieldValidationErrors = function hasMultipleFieldValidationErrors(editStates) {
|
|
126
101
|
if (editStates) {
|
|
127
102
|
for (var _i = 0, _Object$keys = Object.keys(editStates); _i < _Object$keys.length; _i++) {
|
|
128
103
|
var id = _Object$keys[_i];
|
|
129
104
|
var groupedStates = editStates[id];
|
|
130
|
-
|
|
131
105
|
if (hasValidationErrors(groupedStates) !== false) {
|
|
132
106
|
return true;
|
|
133
107
|
}
|
|
134
108
|
}
|
|
135
109
|
}
|
|
136
|
-
|
|
137
110
|
return false;
|
|
138
111
|
};
|
|
139
|
-
|
|
140
112
|
exports.hasMultipleFieldValidationErrors = hasMultipleFieldValidationErrors;
|
|
141
113
|
;
|
|
142
|
-
|
|
143
114
|
(function () {
|
|
144
115
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
145
|
-
|
|
146
116
|
if (!reactHotLoader) {
|
|
147
117
|
return;
|
|
148
118
|
}
|
|
149
|
-
|
|
150
119
|
reactHotLoader.register(validationRules, "validationRules", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
151
120
|
reactHotLoader.register(showError, "showError", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
152
121
|
reactHotLoader.register(hasValidationErrors, "hasValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
153
122
|
reactHotLoader.register(hasMultipleFieldValidationErrors, "hasMultipleFieldValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
154
123
|
})();
|
|
155
|
-
|
|
156
124
|
;
|
|
157
|
-
|
|
158
125
|
(function () {
|
|
159
126
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
160
127
|
leaveModule && leaveModule(module);
|
|
161
128
|
})();
|
|
162
|
-
|
|
163
129
|
;
|
|
164
|
-
|
|
165
130
|
(function () {
|
|
166
131
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
167
|
-
|
|
168
132
|
if (!reactHotLoader) {
|
|
169
133
|
return;
|
|
170
134
|
}
|
|
171
|
-
|
|
172
135
|
reactHotLoader.register(validationRules, "validationRules", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
173
136
|
reactHotLoader.register(showError, "showError", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
174
137
|
reactHotLoader.register(hasValidationErrors, "hasValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
175
138
|
reactHotLoader.register(hasMultipleFieldValidationErrors, "hasMultipleFieldValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
176
139
|
})();
|
|
177
|
-
|
|
178
140
|
;
|
|
179
|
-
|
|
180
141
|
(function () {
|
|
181
142
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
182
143
|
leaveModule && leaveModule(module);
|
|
@@ -2,31 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
(function () {
|
|
7
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
7
|
enterModule && enterModule(module);
|
|
9
8
|
})();
|
|
10
|
-
|
|
11
9
|
(function () {
|
|
12
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
11
|
enterModule && enterModule(module);
|
|
14
12
|
})();
|
|
15
|
-
|
|
16
13
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
14
|
return a;
|
|
18
15
|
};
|
|
19
|
-
|
|
20
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
17
|
return a;
|
|
22
18
|
};
|
|
23
|
-
|
|
24
19
|
var normalizeForSearch;
|
|
25
20
|
/* istanbul ignore else */
|
|
26
|
-
|
|
27
21
|
if ("".normalize) {
|
|
28
22
|
normalizeForSearch = function normalizeForSearch(str) {
|
|
29
|
-
return str.toLowerCase()
|
|
23
|
+
return str.toLowerCase()
|
|
24
|
+
// Strip accents by normalizing to letters + combining chars, then strip all combining chars.
|
|
30
25
|
.normalize("NFKD").replace(/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/g, "");
|
|
31
26
|
};
|
|
32
27
|
} else {
|
|
@@ -35,46 +30,34 @@ if ("".normalize) {
|
|
|
35
30
|
return str.toLowerCase();
|
|
36
31
|
};
|
|
37
32
|
}
|
|
38
|
-
|
|
39
33
|
var _default = normalizeForSearch;
|
|
40
34
|
var _default2 = _default;
|
|
41
35
|
var _default3 = _default2;
|
|
42
36
|
exports.default = _default3;
|
|
43
37
|
;
|
|
44
|
-
|
|
45
38
|
(function () {
|
|
46
39
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
|
|
48
40
|
if (!reactHotLoader) {
|
|
49
41
|
return;
|
|
50
42
|
}
|
|
51
|
-
|
|
52
43
|
reactHotLoader.register(normalizeForSearch, "normalizeForSearch", "/home/vsts/work/1/s/src/utils/normalizeForSearch.js");
|
|
53
44
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/normalizeForSearch.js");
|
|
54
45
|
})();
|
|
55
|
-
|
|
56
46
|
;
|
|
57
|
-
|
|
58
47
|
(function () {
|
|
59
48
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
60
49
|
leaveModule && leaveModule(module);
|
|
61
50
|
})();
|
|
62
|
-
|
|
63
51
|
;
|
|
64
|
-
|
|
65
52
|
(function () {
|
|
66
53
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
67
|
-
|
|
68
54
|
if (!reactHotLoader) {
|
|
69
55
|
return;
|
|
70
56
|
}
|
|
71
|
-
|
|
72
57
|
reactHotLoader.register(normalizeForSearch, "normalizeForSearch", "/home/vsts/work/1/s/src/utils/normalizeForSearch.js");
|
|
73
58
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/normalizeForSearch.js");
|
|
74
59
|
})();
|
|
75
|
-
|
|
76
60
|
;
|
|
77
|
-
|
|
78
61
|
(function () {
|
|
79
62
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
80
63
|
leaveModule && leaveModule(module);
|