orc-shared 5.7.0-dev.9 → 5.8.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/requestsApi.js +743 -140
- package/dist/actions/scopes.js +25 -1
- package/dist/buildStore.js +2 -0
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +7 -3
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +10 -4
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +3 -1
- package/dist/components/MaterialUI/Inputs/InputBase.js +6 -1
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +15 -8
- package/dist/components/Provision.js +2 -1
- package/dist/components/ScopeExtendedConfigurationLoader.js +83 -0
- package/dist/constants.js +11 -2
- package/dist/content/icons/orckestra-icon.svg +11 -5
- package/dist/reducers/scopesExtendedConfiguration.js +68 -0
- package/dist/selectors/metadata.js +11 -1
- package/dist/selectors/scopeExtendedConfiguration.js +56 -0
- package/dist/utils/propertyBagHelper.js +3 -0
- package/package.json +1 -1
- package/src/actions/requestsApi.js +511 -89
- package/src/actions/scopes.js +25 -1
- package/src/actions/scopes.test.js +34 -0
- package/src/buildStore.js +2 -0
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +9 -3
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +29 -0
- package/src/components/MaterialUI/Inputs/CheckboxGroup.js +5 -4
- package/src/components/MaterialUI/Inputs/CheckboxGroup.test.js +22 -0
- package/src/components/MaterialUI/Inputs/CheckboxGroupProps.js +2 -0
- package/src/components/MaterialUI/Inputs/CheckboxGroupProps.test.js +2 -2
- package/src/components/MaterialUI/Inputs/InputBase.js +8 -5
- package/src/components/MaterialUI/Inputs/InputBase.test.js +160 -110
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +13 -6
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +57 -0
- package/src/components/Provision.js +2 -0
- package/src/components/Provision.test.js +7 -0
- package/src/components/ScopeExtendedConfigurationLoader.js +22 -0
- package/src/components/ScopeExtendedConfigurationLoader.test.js +71 -0
- package/src/constants.js +8 -0
- package/src/content/icons/orckestra-icon.svg +11 -5
- package/src/reducers/scopesExtendedConfiguration.js +16 -0
- package/src/reducers/scopesExtendedConfiguration.test.js +31 -0
- package/src/selectors/metadata.js +9 -0
- package/src/selectors/metadata.test.js +90 -0
- package/src/selectors/scopeExtendedConfiguration.js +9 -0
- package/src/selectors/scopeExtendedConfiguration.test.js +45 -0
- package/src/utils/propertyBagHelper.js +3 -0
- package/src/utils/propertyBagHelper.test.js +7 -0
package/dist/actions/scopes.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.validateOvertureApplication = exports.getScopes = exports.getDefaultScope = exports.getAppModules = exports.applicationScopeHasChanged = exports.GET_SCOPES_SUCCESS = exports.GET_SCOPES_REQUEST = exports.GET_SCOPES_FAILURE = exports.GET_SCOPES = exports.GET_MY_SCOPE_SUCCESS = exports.GET_MY_SCOPE_REQUEST = exports.GET_MY_SCOPE_FAILURE = exports.GET_MY_SCOPE = exports.GET_APPLICATION_MODULES_SUCCESS = exports.GET_APPLICATION_MODULES_REQUEST = exports.GET_APPLICATION_MODULES_FAILURE = exports.GET_APPLICATION_MODULES = exports.APPLICATION_SCOPE_HAS_CHANGED = void 0;
|
|
4
|
+
exports.validateOvertureApplication = exports.getScopes = exports.getScopeExtendedConfiguration = exports.getDefaultScope = exports.getAppModules = exports.applicationScopeHasChanged = exports.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = exports.GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = exports.GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = exports.GET_SCOPE_EXTENDED_CONFIGURATION = exports.GET_SCOPES_SUCCESS = exports.GET_SCOPES_REQUEST = exports.GET_SCOPES_FAILURE = exports.GET_SCOPES = exports.GET_MY_SCOPE_SUCCESS = exports.GET_MY_SCOPE_REQUEST = exports.GET_MY_SCOPE_FAILURE = exports.GET_MY_SCOPE = exports.GET_APPLICATION_MODULES_SUCCESS = exports.GET_APPLICATION_MODULES_REQUEST = exports.GET_APPLICATION_MODULES_FAILURE = exports.GET_APPLICATION_MODULES = exports.APPLICATION_SCOPE_HAS_CHANGED = void 0;
|
|
5
5
|
var _makeApiAction = require("./makeApiAction");
|
|
6
6
|
var _makeOrcApiAction = _interopRequireDefault(require("./makeOrcApiAction"));
|
|
7
7
|
var _requestsApi = require("./requestsApi");
|
|
@@ -78,6 +78,20 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
var GET_SCOPE_EXTENDED_CONFIGURATION = exports.GET_SCOPE_EXTENDED_CONFIGURATION = "GET_SCOPE_EXTENDED_CONFIGURATION";
|
|
82
|
+
var _makeActionTypes7 = (0, _makeApiAction.makeActionTypes)(GET_SCOPE_EXTENDED_CONFIGURATION),
|
|
83
|
+
_makeActionTypes8 = _slicedToArray(_makeActionTypes7, 3),
|
|
84
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = exports.GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST = _makeActionTypes8[0],
|
|
85
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = exports.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS = _makeActionTypes8[1],
|
|
86
|
+
GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = exports.GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE = _makeActionTypes8[2];
|
|
87
|
+
var getScopeExtendedConfiguration = exports.getScopeExtendedConfiguration = function getScopeExtendedConfiguration(scope) {
|
|
88
|
+
return (0, _makeOrcApiAction.default)(GET_SCOPE_EXTENDED_CONFIGURATION, _requestsApi.getScopeExtendedConfigurationRequest.buildUrl(scope), _requestsApi.getScopeExtendedConfigurationRequest.verb, {
|
|
89
|
+
bailout: false,
|
|
90
|
+
meta: {
|
|
91
|
+
scope: scope
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
81
95
|
;
|
|
82
96
|
(function () {
|
|
83
97
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -102,6 +116,11 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
102
116
|
reactHotLoader.register(getDefaultScope, "getDefaultScope", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
103
117
|
reactHotLoader.register(APPLICATION_SCOPE_HAS_CHANGED, "APPLICATION_SCOPE_HAS_CHANGED", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
104
118
|
reactHotLoader.register(applicationScopeHasChanged, "applicationScopeHasChanged", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
119
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION, "GET_SCOPE_EXTENDED_CONFIGURATION", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
120
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST, "GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
121
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS, "GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
122
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE, "GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
123
|
+
reactHotLoader.register(getScopeExtendedConfiguration, "getScopeExtendedConfiguration", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
105
124
|
})();
|
|
106
125
|
;
|
|
107
126
|
(function () {
|
|
@@ -132,6 +151,11 @@ var applicationScopeHasChanged = exports.applicationScopeHasChanged = function a
|
|
|
132
151
|
reactHotLoader.register(getDefaultScope, "getDefaultScope", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
133
152
|
reactHotLoader.register(APPLICATION_SCOPE_HAS_CHANGED, "APPLICATION_SCOPE_HAS_CHANGED", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
134
153
|
reactHotLoader.register(applicationScopeHasChanged, "applicationScopeHasChanged", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
154
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION, "GET_SCOPE_EXTENDED_CONFIGURATION", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
155
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST, "GET_SCOPE_EXTENDED_CONFIGURATION_REQUEST", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
156
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS, "GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
157
|
+
reactHotLoader.register(GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE, "GET_SCOPE_EXTENDED_CONFIGURATION_FAILURE", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
158
|
+
reactHotLoader.register(getScopeExtendedConfiguration, "getScopeExtendedConfiguration", "/home/vsts/work/1/s/src/actions/scopes.js");
|
|
135
159
|
})();
|
|
136
160
|
;
|
|
137
161
|
(function () {
|
package/dist/buildStore.js
CHANGED
|
@@ -15,6 +15,7 @@ var _localeFactory = _interopRequireWildcard(require("./reducers/localeFactory")
|
|
|
15
15
|
var _navigation = _interopRequireDefault(require("./reducers/navigation"));
|
|
16
16
|
var _request = _interopRequireDefault(require("./reducers/request"));
|
|
17
17
|
var _scopes = _interopRequireDefault(require("./reducers/scopes"));
|
|
18
|
+
var _scopesExtendedConfiguration = _interopRequireDefault(require("./reducers/scopesExtendedConfiguration"));
|
|
18
19
|
var _settings = _interopRequireDefault(require("./reducers/settings"));
|
|
19
20
|
var _toasts = _interopRequireDefault(require("./reducers/toasts"));
|
|
20
21
|
var _view = _interopRequireDefault(require("./reducers/view"));
|
|
@@ -81,6 +82,7 @@ var buildStore = function buildStore(reducers, devOptions) {
|
|
|
81
82
|
router: (0, _immutable2.connectRouter)(history),
|
|
82
83
|
requests: _request.default,
|
|
83
84
|
scopes: _scopes.default,
|
|
85
|
+
scopesExtendedConfiguration: _scopesExtendedConfiguration.default,
|
|
84
86
|
settings: _settings.default,
|
|
85
87
|
toasts: _toasts.default,
|
|
86
88
|
versionInfo: _versionInfo.default,
|
|
@@ -110,7 +110,8 @@ var InformationItemHeader = function InformationItemHeader(_ref2) {
|
|
|
110
110
|
var _ref3;
|
|
111
111
|
var classes = _ref2.classes,
|
|
112
112
|
label = _ref2.label,
|
|
113
|
-
headerIcon = _ref2.headerIcon
|
|
113
|
+
headerIcon = _ref2.headerIcon,
|
|
114
|
+
headerIconClassName = _ref2.headerIconClassName;
|
|
114
115
|
var formattedLabel = typeof label === "object" ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label) : label;
|
|
115
116
|
var headerText = (_ref3 = formattedLabel && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
116
117
|
className: classes.title,
|
|
@@ -122,7 +123,7 @@ var InformationItemHeader = function InformationItemHeader(_ref2) {
|
|
|
122
123
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
124
|
className: classes.headerTextContainer
|
|
124
125
|
}, headerText), /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className: classes.headerIconContainer
|
|
126
|
+
className: (0, _classnames.default)(classes.headerIconContainer, headerIconClassName)
|
|
126
127
|
}, headerIcon));
|
|
127
128
|
}
|
|
128
129
|
return headerText;
|
|
@@ -134,6 +135,8 @@ var InformationItem = function InformationItem(_ref4) {
|
|
|
134
135
|
error = _ref4.error,
|
|
135
136
|
_ref4$headerIcon = _ref4.headerIcon,
|
|
136
137
|
headerIcon = _ref4$headerIcon === void 0 ? undefined : _ref4$headerIcon,
|
|
138
|
+
_ref4$headerIconClass = _ref4.headerIconClassName,
|
|
139
|
+
headerIconClassName = _ref4$headerIconClass === void 0 ? undefined : _ref4$headerIconClass,
|
|
137
140
|
_ref4$showNotAvailabl = _ref4.showNotAvailable,
|
|
138
141
|
showNotAvailable = _ref4$showNotAvailabl === void 0 ? false : _ref4$showNotAvailabl,
|
|
139
142
|
_ref4$marginTop = _ref4.marginTop,
|
|
@@ -151,7 +154,8 @@ var InformationItem = function InformationItem(_ref4) {
|
|
|
151
154
|
}, /*#__PURE__*/_react.default.createElement(InformationItemHeader, {
|
|
152
155
|
classes: classes,
|
|
153
156
|
label: label,
|
|
154
|
-
headerIcon: headerIcon
|
|
157
|
+
headerIcon: headerIcon,
|
|
158
|
+
headerIconClassName: headerIconClassName
|
|
155
159
|
}), /*#__PURE__*/_react.default.createElement(InformationItemChildren, {
|
|
156
160
|
classes: classes,
|
|
157
161
|
children: children,
|
|
@@ -36,7 +36,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
36
36
|
},
|
|
37
37
|
checkBoxContainer: {
|
|
38
38
|
display: "flex",
|
|
39
|
-
flexDirection:
|
|
39
|
+
flexDirection: function flexDirection(props) {
|
|
40
|
+
return props.row ? "row" : "column";
|
|
41
|
+
},
|
|
40
42
|
flexWrap: "wrap",
|
|
41
43
|
"& .MuiFormControlLabel-root": _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, theme.breakpoints.up("xs"), {}), theme.breakpoints.up("sm"), {}), theme.breakpoints.up("md"), {
|
|
42
44
|
width: "45%"
|
|
@@ -57,9 +59,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
57
59
|
};
|
|
58
60
|
});
|
|
59
61
|
var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
60
|
-
var _checkboxGroupProps$g;
|
|
62
|
+
var _checkboxGroupProps$g, _checkboxGroupProps$g2;
|
|
61
63
|
var checkboxGroupProps = _ref.checkboxGroupProps;
|
|
62
|
-
var classes = useStyles();
|
|
63
64
|
if ((0, _CheckboxGroupProps.isCheckboxGroupProps)(checkboxGroupProps) === false) {
|
|
64
65
|
throw new TypeError("checkboxGroupProps property is not of type CheckboxGroupProps");
|
|
65
66
|
}
|
|
@@ -70,6 +71,10 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
70
71
|
var readOnly = (checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.readOnly)) || false;
|
|
71
72
|
var disabled = (checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.disabled)) || false;
|
|
72
73
|
var options = (_checkboxGroupProps$g = checkboxGroupProps == null ? void 0 : checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.options)) != null ? _checkboxGroupProps$g : [];
|
|
74
|
+
var row = (_checkboxGroupProps$g2 = checkboxGroupProps.get(_CheckboxGroupProps.default.propNames.row)) != null ? _checkboxGroupProps$g2 : true;
|
|
75
|
+
var classes = useStyles({
|
|
76
|
+
row: row
|
|
77
|
+
});
|
|
73
78
|
var handleGroupUpdate = function handleGroupUpdate(checked, value, newValue) {
|
|
74
79
|
var values = value ? value.split("|") : [];
|
|
75
80
|
var position = values.indexOf(newValue);
|
|
@@ -84,7 +89,8 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
84
89
|
var checkBoxGroup = /*#__PURE__*/_react.default.createElement("div", {
|
|
85
90
|
className: classes.container
|
|
86
91
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className: classes.checkBoxContainer
|
|
92
|
+
className: classes.checkBoxContainer,
|
|
93
|
+
"data-qa": "checkboxgroup-container"
|
|
88
94
|
}, options.map(function (option, index) {
|
|
89
95
|
var _option$label;
|
|
90
96
|
var checkboxProps = new _CheckboxProps.default();
|
|
@@ -35,6 +35,7 @@ var CheckboxGroupProps = /*#__PURE__*/function (_ComponentProps) {
|
|
|
35
35
|
_this.componentProps.set(_this.constructor.propNames.disabled, null);
|
|
36
36
|
_this.componentProps.set(_this.constructor.propNames.options, null);
|
|
37
37
|
_this.componentProps.set(_this.constructor.propNames.error, null);
|
|
38
|
+
_this.componentProps.set(_this.constructor.propNames.row, null);
|
|
38
39
|
_this._isCheckboxGroupProps = true;
|
|
39
40
|
return _this;
|
|
40
41
|
}
|
|
@@ -53,7 +54,8 @@ _defineProperty(CheckboxGroupProps, "propNames", {
|
|
|
53
54
|
label: "label",
|
|
54
55
|
readOnly: "readOnly",
|
|
55
56
|
disabled: "disabled",
|
|
56
|
-
error: "error"
|
|
57
|
+
error: "error",
|
|
58
|
+
row: "row"
|
|
57
59
|
});
|
|
58
60
|
var isCheckboxGroupProps = exports.isCheckboxGroupProps = function isCheckboxGroupProps(value) {
|
|
59
61
|
if (value == null) return true;
|
|
@@ -175,14 +175,19 @@ var InputBase = function InputBase(_ref) {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
if (isAdvancedNumericInput) {
|
|
178
|
+
var _numericInputProps$de;
|
|
178
179
|
if (inputAttributes.max === undefined) {
|
|
179
180
|
inputAttributes.max = 2147483647;
|
|
180
181
|
}
|
|
181
182
|
if (inputAttributes.min === undefined) {
|
|
182
183
|
inputAttributes.min = -2147483648;
|
|
183
184
|
}
|
|
185
|
+
var decimalScale = (_numericInputProps$de = numericInputProps == null ? void 0 : numericInputProps.decimalScale) != null ? _numericInputProps$de : 0;
|
|
186
|
+
var lengthForMin = Math.trunc(inputAttributes.min).toString().length;
|
|
187
|
+
var lengthForMax = Math.trunc(inputAttributes.max).toString().length;
|
|
188
|
+
inputAttributes.maxLength = Math.max(lengthForMin, lengthForMax) + (decimalScale > 0 ? decimalScale + 1 : 0);
|
|
184
189
|
inputAttributes.isAllowed = function (val) {
|
|
185
|
-
return val.value === "" || val.value === "-" || val.
|
|
190
|
+
return val.value === "" || val.value === "-" || val.value !== null;
|
|
186
191
|
};
|
|
187
192
|
}
|
|
188
193
|
var defaultRows = 4;
|
|
@@ -177,14 +177,20 @@ var SearchControl = function SearchControl(_ref) {
|
|
|
177
177
|
_ref$focusAndSelectSe = _ref.focusAndSelectSearchFieldOnLoad,
|
|
178
178
|
focusAndSelectSearchFieldOnLoad = _ref$focusAndSelectSe === void 0 ? true : _ref$focusAndSelectSe,
|
|
179
179
|
_ref$focusSearchOnSea = _ref.focusSearchOnSearchOptionChange,
|
|
180
|
-
focusSearchOnSearchOptionChange = _ref$focusSearchOnSea === void 0 ? false : _ref$focusSearchOnSea
|
|
180
|
+
focusSearchOnSearchOptionChange = _ref$focusSearchOnSea === void 0 ? false : _ref$focusSearchOnSea,
|
|
181
|
+
_ref$trimSearchvalue = _ref.trimSearchvalue,
|
|
182
|
+
trimSearchvalue = _ref$trimSearchvalue === void 0 ? true : _ref$trimSearchvalue;
|
|
181
183
|
searchOptions = !((_searchOptions = searchOptions) != null && _searchOptions.length) ? null : searchOptions;
|
|
182
184
|
searchOption = getSearchOptionValue(searchOptions, searchOption);
|
|
183
185
|
var classes = useStyles();
|
|
184
186
|
var inputRef = (0, _react.useRef)();
|
|
185
|
-
var
|
|
187
|
+
var onSearchInternal = function onSearchInternal(newSearchOption, value) {
|
|
188
|
+
var searchValue = trimSearchvalue ? value == null ? void 0 : value.trim() : value;
|
|
189
|
+
onSearch(newSearchOption, searchValue);
|
|
190
|
+
};
|
|
191
|
+
var update = function update(newSearchOption) {
|
|
186
192
|
if (focusSearchOnSearchOptionChange && inputRef.current) {
|
|
187
|
-
|
|
193
|
+
onSearchInternal(newSearchOption, "");
|
|
188
194
|
setTimeout(function () {
|
|
189
195
|
/* istanbul ignore next */
|
|
190
196
|
if (inputRef.current) {
|
|
@@ -194,7 +200,8 @@ var SearchControl = function SearchControl(_ref) {
|
|
|
194
200
|
}
|
|
195
201
|
}, 0);
|
|
196
202
|
} else {
|
|
197
|
-
|
|
203
|
+
var _inputRef$current;
|
|
204
|
+
onSearchInternal(newSearchOption, (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.value);
|
|
198
205
|
}
|
|
199
206
|
};
|
|
200
207
|
var selectProps = new _SelectProps.default();
|
|
@@ -227,9 +234,9 @@ var SearchControl = function SearchControl(_ref) {
|
|
|
227
234
|
});
|
|
228
235
|
};
|
|
229
236
|
var onSubmit = function onSubmit(event) {
|
|
230
|
-
var _inputRef$
|
|
237
|
+
var _inputRef$current2;
|
|
231
238
|
// using form submit instead of a keydown (with key=enter) to allow the 'enter key' event to be canceled elsewhere to avoid the submit event
|
|
232
|
-
|
|
239
|
+
onSearchInternal(searchOption, (_inputRef$current2 = inputRef.current) == null ? void 0 : _inputRef$current2.value);
|
|
233
240
|
event.preventDefault();
|
|
234
241
|
};
|
|
235
242
|
var inputSection = /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -257,7 +264,7 @@ var SearchControl = function SearchControl(_ref) {
|
|
|
257
264
|
disabled: disabled,
|
|
258
265
|
onClick: function onClick() {
|
|
259
266
|
inputRef.current.value = null;
|
|
260
|
-
|
|
267
|
+
onSearchInternal(searchOption);
|
|
261
268
|
inputRef.current.focus();
|
|
262
269
|
},
|
|
263
270
|
className: classes.clearButton
|
|
@@ -273,7 +280,7 @@ var SearchControl = function SearchControl(_ref) {
|
|
|
273
280
|
root: classes.searchButton
|
|
274
281
|
},
|
|
275
282
|
onClick: function onClick() {
|
|
276
|
-
|
|
283
|
+
onSearchInternal(searchOption, inputRef.current.value);
|
|
277
284
|
}
|
|
278
285
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
279
286
|
id: "search"
|
|
@@ -15,6 +15,7 @@ var _Head = _interopRequireDefault(require("./Head"));
|
|
|
15
15
|
var _I18n = _interopRequireDefault(require("./I18n"));
|
|
16
16
|
var _InternetExplorerWarningMessage = _interopRequireDefault(require("./InternetExplorerWarningMessage"));
|
|
17
17
|
var _Culture = _interopRequireDefault(require("./Culture"));
|
|
18
|
+
var _ScopeExtendedConfigurationLoader = _interopRequireDefault(require("./ScopeExtendedConfigurationLoader"));
|
|
18
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
20
|
(function () {
|
|
20
21
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -46,7 +47,7 @@ var Provision = function Provision(_ref) {
|
|
|
46
47
|
theme: theme
|
|
47
48
|
}, /*#__PURE__*/_react.default.createElement(_styles.MuiThemeProvider, {
|
|
48
49
|
theme: muiTheme
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(_Culture.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))))))))));
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(_Culture.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))), /*#__PURE__*/_react.default.createElement(_ScopeExtendedConfigurationLoader.default, null))))))));
|
|
50
51
|
};
|
|
51
52
|
var _default = Provision;
|
|
52
53
|
var _default2 = _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = require("react");
|
|
6
|
+
var _useScopeData3 = _interopRequireDefault(require("./Scope/useScopeData"));
|
|
7
|
+
var _reactRedux = require("react-redux");
|
|
8
|
+
var _scopes = require("../actions/scopes");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
(function () {
|
|
11
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
+
enterModule && enterModule(module);
|
|
13
|
+
})();
|
|
14
|
+
(function () {
|
|
15
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
|
+
enterModule && enterModule(module);
|
|
17
|
+
})();
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
|
+
return a;
|
|
29
|
+
};
|
|
30
|
+
var ScopeExtendedConfigurationLoader = function ScopeExtendedConfigurationLoader() {
|
|
31
|
+
var _useScopeData = (0, _useScopeData3.default)(),
|
|
32
|
+
_useScopeData2 = _slicedToArray(_useScopeData, 1),
|
|
33
|
+
currentScope = _useScopeData2[0];
|
|
34
|
+
var dispatch = (0, _reactRedux.useDispatch)();
|
|
35
|
+
var _useState = (0, _react.useState)(),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
localScopeValue = _useState2[0],
|
|
38
|
+
setLocalScopeValue = _useState2[1];
|
|
39
|
+
(0, _react.useEffect)(function () {
|
|
40
|
+
if (currentScope.id !== localScopeValue) {
|
|
41
|
+
setLocalScopeValue(currentScope.id);
|
|
42
|
+
dispatch((0, _scopes.getScopeExtendedConfiguration)(currentScope.id));
|
|
43
|
+
}
|
|
44
|
+
}, [currentScope.id, dispatch, localScopeValue]);
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
__signature__(ScopeExtendedConfigurationLoader, "useScopeData{[currentScope]}\nuseDispatch{dispatch}\nuseState{[localScopeValue, setLocalScopeValue]}\nuseEffect{}", function () {
|
|
48
|
+
return [_useScopeData3.default, _reactRedux.useDispatch];
|
|
49
|
+
});
|
|
50
|
+
__signature__(ScopeExtendedConfigurationLoader, "useScopeData{[currentScope]}\nuseDispatch{dispatch}\nuseState{[localScopeValue, setLocalScopeValue]}\nuseEffect{}", function () {
|
|
51
|
+
return [_useScopeData3.default, _reactRedux.useDispatch];
|
|
52
|
+
});
|
|
53
|
+
var _default = ScopeExtendedConfigurationLoader;
|
|
54
|
+
var _default2 = _default;
|
|
55
|
+
var _default3 = exports.default = _default2;
|
|
56
|
+
;
|
|
57
|
+
(function () {
|
|
58
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
59
|
+
if (!reactHotLoader) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
reactHotLoader.register(ScopeExtendedConfigurationLoader, "ScopeExtendedConfigurationLoader", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
63
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
64
|
+
})();
|
|
65
|
+
;
|
|
66
|
+
(function () {
|
|
67
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
68
|
+
leaveModule && leaveModule(module);
|
|
69
|
+
})();
|
|
70
|
+
;
|
|
71
|
+
(function () {
|
|
72
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
73
|
+
if (!reactHotLoader) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
reactHotLoader.register(ScopeExtendedConfigurationLoader, "ScopeExtendedConfigurationLoader", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
77
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/ScopeExtendedConfigurationLoader.js");
|
|
78
|
+
})();
|
|
79
|
+
;
|
|
80
|
+
(function () {
|
|
81
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
|
+
leaveModule && leaveModule(module);
|
|
83
|
+
})();
|
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.validationErrorTypes = exports.taskStatuses = exports.serializationTypeKey = exports.scopeTypes = exports.scopeConfirmationDialogTypes = exports.roleGroups = exports.requestStates = exports.requestStateOperations = exports.requestStateOperationMap = exports.propertyBagPrimitiveDataType = exports.platformRoles = exports.overtureModule = exports.jsonCargoType = exports.infoBar = exports.dotNetDataTypes = exports.displayMode = exports.definitionType = exports.attributeDataType = exports.allValue = void 0;
|
|
4
|
+
exports.validationErrorTypes = exports.taskStatuses = exports.serializationTypeKey = exports.scopeTypes = exports.scopeConfirmationDialogTypes = exports.roleGroups = exports.requestStates = exports.requestStateOperations = exports.requestStateOperationMap = exports.propertyBagPrimitiveDataType = exports.platformRoles = exports.overtureModule = exports.jsonCargoType = exports.infoBar = exports.dotNetDataTypes = exports.displayMode = exports.definitionType = exports.choiceControlOrientation = exports.attributeDataType = exports.allValue = void 0;
|
|
5
5
|
(function () {
|
|
6
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
7
7
|
enterModule && enterModule(module);
|
|
@@ -83,7 +83,9 @@ var attributeDataType = exports.attributeDataType = {
|
|
|
83
83
|
dateTime: "DateTime",
|
|
84
84
|
lookup: "Lookup",
|
|
85
85
|
entityReference: "EntityReference",
|
|
86
|
-
customType: "CustomType"
|
|
86
|
+
customType: "CustomType",
|
|
87
|
+
singleChoice: "SingleChoice",
|
|
88
|
+
multipleChoice: "MultipleChoice"
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
// It is intended that some of them have a different value of its keys
|
|
@@ -169,9 +171,14 @@ var jsonCargoType = exports.jsonCargoType = {
|
|
|
169
171
|
double: "Double",
|
|
170
172
|
dateTime: "DateTime",
|
|
171
173
|
integer: "Int32",
|
|
174
|
+
stringArray: "String[]",
|
|
172
175
|
entityReferences: "Guid[]"
|
|
173
176
|
};
|
|
174
177
|
var allValue = exports.allValue = "#All#";
|
|
178
|
+
var choiceControlOrientation = exports.choiceControlOrientation = {
|
|
179
|
+
horizontal: "Horizontal",
|
|
180
|
+
vertical: "Vertical"
|
|
181
|
+
};
|
|
175
182
|
;
|
|
176
183
|
(function () {
|
|
177
184
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -197,6 +204,7 @@ var allValue = exports.allValue = "#All#";
|
|
|
197
204
|
reactHotLoader.register(serializationTypeKey, "serializationTypeKey", "/home/vsts/work/1/s/src/constants.js");
|
|
198
205
|
reactHotLoader.register(jsonCargoType, "jsonCargoType", "/home/vsts/work/1/s/src/constants.js");
|
|
199
206
|
reactHotLoader.register(allValue, "allValue", "/home/vsts/work/1/s/src/constants.js");
|
|
207
|
+
reactHotLoader.register(choiceControlOrientation, "choiceControlOrientation", "/home/vsts/work/1/s/src/constants.js");
|
|
200
208
|
})();
|
|
201
209
|
;
|
|
202
210
|
(function () {
|
|
@@ -228,6 +236,7 @@ var allValue = exports.allValue = "#All#";
|
|
|
228
236
|
reactHotLoader.register(serializationTypeKey, "serializationTypeKey", "/home/vsts/work/1/s/src/constants.js");
|
|
229
237
|
reactHotLoader.register(jsonCargoType, "jsonCargoType", "/home/vsts/work/1/s/src/constants.js");
|
|
230
238
|
reactHotLoader.register(allValue, "allValue", "/home/vsts/work/1/s/src/constants.js");
|
|
239
|
+
reactHotLoader.register(choiceControlOrientation, "choiceControlOrientation", "/home/vsts/work/1/s/src/constants.js");
|
|
231
240
|
})();
|
|
232
241
|
;
|
|
233
242
|
(function () {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
</
|
|
1
|
+
<svg width="354" height="354" viewBox="0 0 354 354" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2_1387)">
|
|
3
|
+
<path d="M0 241.41C0 175.92 50.53 129.43 119.66 129.43C188.79 129.43 238.91 175.92 238.91 241.41C238.91 306.9 188.78 353.38 119.66 353.38C50.54 353.38 0 306.9 0 241.41ZM175.04 241.41C175.04 203.81 151.19 181.18 119.66 181.18C88.13 181.18 63.87 203.82 63.87 241.41C63.87 279 88.13 301.64 119.66 301.64C151.19 301.64 175.04 279 175.04 241.41Z" fill="black"/>
|
|
4
|
+
<path d="M353.14 165.06H275.66C275.66 116.77 236.37 77.48 188.08 77.48V0C279.1 0 353.15 74.05 353.15 165.06H353.14Z" fill="#E00600"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_2_1387">
|
|
8
|
+
<rect width="353.14" height="353.38" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
+
var _scopes = require("../actions/scopes");
|
|
7
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
+
(function () {
|
|
9
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
+
enterModule && enterModule(module);
|
|
11
|
+
})();
|
|
12
|
+
(function () {
|
|
13
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
+
enterModule && enterModule(module);
|
|
15
|
+
})();
|
|
16
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var initialState = _immutable.default.fromJS({});
|
|
23
|
+
var scopesExtendedConfigurationReducer = function scopesExtendedConfigurationReducer(state, action) {
|
|
24
|
+
if (state === void 0) {
|
|
25
|
+
state = initialState;
|
|
26
|
+
}
|
|
27
|
+
switch (action.type) {
|
|
28
|
+
case _scopes.GET_SCOPE_EXTENDED_CONFIGURATION_SUCCESS:
|
|
29
|
+
{
|
|
30
|
+
return state.set(action.meta.scope, _immutable.default.fromJS(action.payload));
|
|
31
|
+
}
|
|
32
|
+
default:
|
|
33
|
+
return state;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var _default = scopesExtendedConfigurationReducer;
|
|
37
|
+
var _default2 = _default;
|
|
38
|
+
var _default3 = exports.default = _default2;
|
|
39
|
+
;
|
|
40
|
+
(function () {
|
|
41
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
42
|
+
if (!reactHotLoader) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
46
|
+
reactHotLoader.register(scopesExtendedConfigurationReducer, "scopesExtendedConfigurationReducer", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
47
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
48
|
+
})();
|
|
49
|
+
;
|
|
50
|
+
(function () {
|
|
51
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
52
|
+
leaveModule && leaveModule(module);
|
|
53
|
+
})();
|
|
54
|
+
;
|
|
55
|
+
(function () {
|
|
56
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
57
|
+
if (!reactHotLoader) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
61
|
+
reactHotLoader.register(scopesExtendedConfigurationReducer, "scopesExtendedConfigurationReducer", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
62
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/scopesExtendedConfiguration.js");
|
|
63
|
+
})();
|
|
64
|
+
;
|
|
65
|
+
(function () {
|
|
66
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
67
|
+
leaveModule && leaveModule(module);
|
|
68
|
+
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.variantPropertyMapKvaSelector = exports.variantPropertyKeyValuesSelector = exports.selectCurrentLookupDetails = exports.profileAttributeGroupsSelector = exports.productPropertyValuesSelector = exports.productPropertyValueSelector = exports.productPropertyMapSelector = exports.orderLookupsNextPageToLoad = exports.orderLookupsListCurrentInfo = exports.newProfileDefinitionNameSelector = exports.newProfileDefinitionInstanceSelector = exports.namedLookupValuesSelector = exports.namedLookupSelector = exports.namedLookupLocalizedValuesSelector = exports.namedLookupLocalizedSelector = exports.mappedOrderLookupsListSelector = exports.mappedLookupsListSelector = exports.mappedLookupListSelector = exports.mappedDefinitionsListSelector = exports.mappedDefinitionEntity = exports.mappedDefinitionAttributesSelector = exports.mappedCustomDefinitionsListSelector = exports.mappedBaseDefinitionsListSelector = exports.lookupsNextPageToLoad = exports.lookupsListSelector = exports.lookupsListCurrentInfo = exports.lookupSelector = exports.lookupByNameSelector = exports.groupedCustomAttributesDefinitionSelector = exports.definitionEntityCustomAttributesSelector = exports.definitionEntityBaseAttributesSelector = exports.definitionEntity = exports.customProfileTypesSelector = exports.customAttributesSelector = exports.customAttributesDefinitionSelector = exports.baseAttributesSelector = void 0;
|
|
4
|
+
exports.variantPropertyMapKvaSelector = exports.variantPropertyKeyValuesSelector = exports.selectCurrentLookupDetails = exports.profileAttributeGroupsSelector = exports.productPropertyValuesSelector = exports.productPropertyValueSelector = exports.productPropertyMapSelector = exports.orderLookupsNextPageToLoad = exports.orderLookupsListCurrentInfo = exports.newProfileDefinitionNameSelector = exports.newProfileDefinitionInstanceSelector = exports.namedLookupValuesSelector = exports.namedLookupSelector = exports.namedLookupLocalizedValuesSelector = exports.namedLookupLocalizedSelector = exports.mappedOrderLookupsListSelector = exports.mappedLookupsListSelector = exports.mappedLookupListSelector = exports.mappedDefinitionsListSelector = exports.mappedDefinitionEntity = exports.mappedDefinitionAttributesSelector = exports.mappedCustomDefinitionsListSelector = exports.mappedBaseDefinitionsListSelector = exports.lookupsNextPageToLoad = exports.lookupsListSelector = exports.lookupsListCurrentInfo = exports.lookupSelector = exports.lookupExistAndIsActiveSelector = exports.lookupByNameSelector = exports.groupedCustomAttributesDefinitionSelector = exports.definitionEntityCustomAttributesSelector = exports.definitionEntityBaseAttributesSelector = exports.definitionEntity = exports.customProfileTypesSelector = exports.customAttributesSelector = exports.customAttributesDefinitionSelector = exports.baseAttributesSelector = void 0;
|
|
5
5
|
var _reselect = require("reselect");
|
|
6
6
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
7
7
|
var _utils = require("../utils");
|
|
@@ -91,6 +91,14 @@ var namedLookupLocalizedSelector = exports.namedLookupLocalizedSelector = (0, _u
|
|
|
91
91
|
return (0, _localizationHelper.getLocalization)(value == null ? void 0 : value.displayName, locale, defaultValue);
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
+
var lookupExistAndIsActiveSelector = exports.lookupExistAndIsActiveSelector = (0, _utils.memoize)(function (moduleName, lookupName, key) {
|
|
95
|
+
return (0, _reselect.createSelector)(lookupValuesSelector(moduleName, lookupName), function (lookups) {
|
|
96
|
+
var values = lookups.get("values");
|
|
97
|
+
if (values == null || key == null) return false;
|
|
98
|
+
var value = values.get(key);
|
|
99
|
+
return (value == null ? void 0 : value.get("isActive")) === true;
|
|
100
|
+
});
|
|
101
|
+
});
|
|
94
102
|
var namedLookupLocalizedValuesSelector = exports.namedLookupLocalizedValuesSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
|
|
95
103
|
return (0, _reselect.createSelector)(lookupValuesSelector(moduleName, lookupName), _locale.currentLocaleOrDefault, function (lookup, locale) {
|
|
96
104
|
return (lookup.get("values") || _immutable.default.Map()).map(function (lookupValue) {
|
|
@@ -358,6 +366,7 @@ var resolveProductPropertyValue = function resolveProductPropertyValue(property,
|
|
|
358
366
|
reactHotLoader.register(namedLookupValuesSelector, "namedLookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
359
367
|
reactHotLoader.register(selectCurrentLookupDetails, "selectCurrentLookupDetails", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
360
368
|
reactHotLoader.register(namedLookupLocalizedSelector, "namedLookupLocalizedSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
369
|
+
reactHotLoader.register(lookupExistAndIsActiveSelector, "lookupExistAndIsActiveSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
361
370
|
reactHotLoader.register(namedLookupLocalizedValuesSelector, "namedLookupLocalizedValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
362
371
|
reactHotLoader.register(lookupsListCurrentInfo, "lookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
363
372
|
reactHotLoader.register(lookupsNextPageToLoad, "lookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
@@ -415,6 +424,7 @@ var resolveProductPropertyValue = function resolveProductPropertyValue(property,
|
|
|
415
424
|
reactHotLoader.register(namedLookupValuesSelector, "namedLookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
416
425
|
reactHotLoader.register(selectCurrentLookupDetails, "selectCurrentLookupDetails", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
417
426
|
reactHotLoader.register(namedLookupLocalizedSelector, "namedLookupLocalizedSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
427
|
+
reactHotLoader.register(lookupExistAndIsActiveSelector, "lookupExistAndIsActiveSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
418
428
|
reactHotLoader.register(namedLookupLocalizedValuesSelector, "namedLookupLocalizedValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
419
429
|
reactHotLoader.register(lookupsListCurrentInfo, "lookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
420
430
|
reactHotLoader.register(lookupsNextPageToLoad, "lookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.doesScopeHaveGeolocationProviderSelector = void 0;
|
|
5
|
+
var _reselect = require("reselect");
|
|
6
|
+
(function () {
|
|
7
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
|
+
enterModule && enterModule(module);
|
|
9
|
+
})();
|
|
10
|
+
(function () {
|
|
11
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
+
enterModule && enterModule(module);
|
|
13
|
+
})();
|
|
14
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var scopesExtendedConfigurationData = function scopesExtendedConfigurationData(state) {
|
|
21
|
+
return state.get("scopesExtendedConfiguration");
|
|
22
|
+
};
|
|
23
|
+
var doesScopeHaveGeolocationProviderSelector = exports.doesScopeHaveGeolocationProviderSelector = function doesScopeHaveGeolocationProviderSelector(scopeId) {
|
|
24
|
+
return (0, _reselect.createSelector)(scopesExtendedConfigurationData, function (scopesCfg) {
|
|
25
|
+
var _scopesCfg$get$get, _scopesCfg$get;
|
|
26
|
+
return (_scopesCfg$get$get = scopesCfg == null || (_scopesCfg$get = scopesCfg.get(scopeId)) == null ? void 0 : _scopesCfg$get.get("hasGeolocationProvider")) != null ? _scopesCfg$get$get : false;
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
;
|
|
30
|
+
(function () {
|
|
31
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
32
|
+
if (!reactHotLoader) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
reactHotLoader.register(scopesExtendedConfigurationData, "scopesExtendedConfigurationData", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
36
|
+
reactHotLoader.register(doesScopeHaveGeolocationProviderSelector, "doesScopeHaveGeolocationProviderSelector", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
37
|
+
})();
|
|
38
|
+
;
|
|
39
|
+
(function () {
|
|
40
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
41
|
+
leaveModule && leaveModule(module);
|
|
42
|
+
})();
|
|
43
|
+
;
|
|
44
|
+
(function () {
|
|
45
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
46
|
+
if (!reactHotLoader) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
reactHotLoader.register(scopesExtendedConfigurationData, "scopesExtendedConfigurationData", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
50
|
+
reactHotLoader.register(doesScopeHaveGeolocationProviderSelector, "doesScopeHaveGeolocationProviderSelector", "/home/vsts/work/1/s/src/selectors/scopeExtendedConfiguration.js");
|
|
51
|
+
})();
|
|
52
|
+
;
|
|
53
|
+
(function () {
|
|
54
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
55
|
+
leaveModule && leaveModule(module);
|
|
56
|
+
})();
|
|
@@ -59,7 +59,10 @@ var toJsonCargo = exports.toJsonCargo = function toJsonCargo(attribute, value) {
|
|
|
59
59
|
switch (attribute.dataType) {
|
|
60
60
|
case _constants.attributeDataType.text:
|
|
61
61
|
case _constants.attributeDataType.lookup:
|
|
62
|
+
case _constants.attributeDataType.singleChoice:
|
|
62
63
|
return value;
|
|
64
|
+
case _constants.attributeDataType.multipleChoice:
|
|
65
|
+
return createJsonCargo(_constants.jsonCargoType.stringArray, value);
|
|
63
66
|
case _constants.attributeDataType.boolean:
|
|
64
67
|
return createJsonCargo(_constants.jsonCargoType.boolean, value);
|
|
65
68
|
case _constants.attributeDataType.integer:
|