orc-shared 1.2.2-dev.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -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,25 @@
|
|
|
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
17
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
var validationRules = (_validationRules = {}, _defineProperty(_validationRules, _constants.validationErrorTypes.fieldIsRequired, function (value) {
|
|
35
25
|
if (value === null || value === undefined) return false;
|
|
36
26
|
if ((0, _propertyValidator.isString)(value) && (0, _propertyValidator.isStringNullOrWhitespace)(value)) return false;
|
|
@@ -49,26 +39,21 @@ var validationRules = (_validationRules = {}, _defineProperty(_validationRules,
|
|
|
49
39
|
return regexRule.test(value);
|
|
50
40
|
}), _validationRules);
|
|
51
41
|
exports.validationRules = validationRules;
|
|
52
|
-
|
|
53
42
|
var showError = function showError(field) {
|
|
54
43
|
if (field == null) return false;
|
|
55
44
|
return field.error != null;
|
|
56
45
|
};
|
|
57
|
-
|
|
58
46
|
exports.showError = showError;
|
|
59
|
-
|
|
60
47
|
var hasValidationErrors = function hasValidationErrors(editState, validationMap) {
|
|
61
48
|
if ((0, _lodash.isEmpty)(editState)) return true;
|
|
62
49
|
var fields = Object.keys(editState);
|
|
63
50
|
var hasAnyValidationErrors = false;
|
|
64
51
|
fields.forEach(function (field) {
|
|
65
52
|
var isValid = editState[field].isValid ? editState[field].isValid() : true;
|
|
66
|
-
|
|
67
53
|
if (isValid === false) {
|
|
68
54
|
hasAnyValidationErrors = true;
|
|
69
55
|
}
|
|
70
56
|
});
|
|
71
|
-
|
|
72
57
|
if (validationMap) {
|
|
73
58
|
var mapKeys = Object.keys(validationMap);
|
|
74
59
|
mapKeys.forEach(function (mapKey) {
|
|
@@ -77,38 +62,29 @@ var hasValidationErrors = function hasValidationErrors(editState, validationMap)
|
|
|
77
62
|
node.elements.forEach(function (element) {
|
|
78
63
|
var fullElementPath = [].concat(node.path, element.path);
|
|
79
64
|
var errorTypes = [];
|
|
80
|
-
|
|
81
65
|
if (validationMap[mapKey].errorTypes) {
|
|
82
66
|
errorTypes.push.apply(errorTypes, validationMap[mapKey].errorTypes);
|
|
83
67
|
}
|
|
84
|
-
|
|
85
68
|
if (node.errorTypes) {
|
|
86
69
|
errorTypes.push.apply(errorTypes, node.errorTypes);
|
|
87
70
|
}
|
|
88
|
-
|
|
89
71
|
if (element.errorTypes) {
|
|
90
72
|
errorTypes.push.apply(errorTypes, element.errorTypes);
|
|
91
73
|
}
|
|
92
|
-
|
|
93
74
|
var isValid = editState[mapKey].isValid(null, fullElementPath, errorTypes, element.dependencies);
|
|
94
|
-
|
|
95
75
|
if (isValid === false) {
|
|
96
76
|
hasAnyValidationErrors = true;
|
|
97
77
|
}
|
|
98
78
|
});
|
|
99
79
|
} else {
|
|
100
80
|
var errorTypes = [];
|
|
101
|
-
|
|
102
81
|
if (validationMap[mapKey].errorTypes) {
|
|
103
82
|
errorTypes.push(validationMap[mapKey].errorTypes);
|
|
104
83
|
}
|
|
105
|
-
|
|
106
84
|
if (node.errorTypes) {
|
|
107
85
|
errorTypes.push(node.errorTypes);
|
|
108
86
|
}
|
|
109
|
-
|
|
110
87
|
var isValid = editState[mapKey].isValid(null, node.path, errorTypes);
|
|
111
|
-
|
|
112
88
|
if (isValid === false) {
|
|
113
89
|
hasAnyValidationErrors = true;
|
|
114
90
|
}
|
|
@@ -116,67 +92,50 @@ var hasValidationErrors = function hasValidationErrors(editState, validationMap)
|
|
|
116
92
|
});
|
|
117
93
|
});
|
|
118
94
|
}
|
|
119
|
-
|
|
120
95
|
return hasAnyValidationErrors;
|
|
121
96
|
};
|
|
122
|
-
|
|
123
97
|
exports.hasValidationErrors = hasValidationErrors;
|
|
124
|
-
|
|
125
98
|
var hasMultipleFieldValidationErrors = function hasMultipleFieldValidationErrors(editStates) {
|
|
126
99
|
if (editStates) {
|
|
127
100
|
for (var _i = 0, _Object$keys = Object.keys(editStates); _i < _Object$keys.length; _i++) {
|
|
128
101
|
var id = _Object$keys[_i];
|
|
129
102
|
var groupedStates = editStates[id];
|
|
130
|
-
|
|
131
103
|
if (hasValidationErrors(groupedStates) !== false) {
|
|
132
104
|
return true;
|
|
133
105
|
}
|
|
134
106
|
}
|
|
135
107
|
}
|
|
136
|
-
|
|
137
108
|
return false;
|
|
138
109
|
};
|
|
139
|
-
|
|
140
110
|
exports.hasMultipleFieldValidationErrors = hasMultipleFieldValidationErrors;
|
|
141
111
|
;
|
|
142
|
-
|
|
143
112
|
(function () {
|
|
144
113
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
145
|
-
|
|
146
114
|
if (!reactHotLoader) {
|
|
147
115
|
return;
|
|
148
116
|
}
|
|
149
|
-
|
|
150
117
|
reactHotLoader.register(validationRules, "validationRules", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
151
118
|
reactHotLoader.register(showError, "showError", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
152
119
|
reactHotLoader.register(hasValidationErrors, "hasValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
153
120
|
reactHotLoader.register(hasMultipleFieldValidationErrors, "hasMultipleFieldValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
154
121
|
})();
|
|
155
|
-
|
|
156
122
|
;
|
|
157
|
-
|
|
158
123
|
(function () {
|
|
159
124
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
160
125
|
leaveModule && leaveModule(module);
|
|
161
126
|
})();
|
|
162
|
-
|
|
163
127
|
;
|
|
164
|
-
|
|
165
128
|
(function () {
|
|
166
129
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
167
|
-
|
|
168
130
|
if (!reactHotLoader) {
|
|
169
131
|
return;
|
|
170
132
|
}
|
|
171
|
-
|
|
172
133
|
reactHotLoader.register(validationRules, "validationRules", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
173
134
|
reactHotLoader.register(showError, "showError", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
174
135
|
reactHotLoader.register(hasValidationErrors, "hasValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
175
136
|
reactHotLoader.register(hasMultipleFieldValidationErrors, "hasMultipleFieldValidationErrors", "/home/vsts/work/1/s/src/utils/modelValidationHelper.js");
|
|
176
137
|
})();
|
|
177
|
-
|
|
178
138
|
;
|
|
179
|
-
|
|
180
139
|
(function () {
|
|
181
140
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
182
141
|
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);
|