@reltio/components 1.4.1478 → 1.4.1480
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/cjs/components/attributes/editMode/EntitySelector/components/styles.js +2 -1
- package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +1 -1
- package/esm/components/attributes/editMode/EntitySelector/components/styles.js +2 -1
- package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +1 -1
- package/package.json +3 -3
|
@@ -52,7 +52,8 @@ exports.useSingleValueStyles = (0, styles_1.makeStyles)(function (theme) { retur
|
|
|
52
52
|
linkValue: {
|
|
53
53
|
cursor: 'pointer',
|
|
54
54
|
color: theme.palette.primary.main,
|
|
55
|
-
textDecoration: 'none'
|
|
55
|
+
textDecoration: 'none',
|
|
56
|
+
pointerEvents: 'all'
|
|
56
57
|
}
|
|
57
58
|
}); });
|
|
58
59
|
exports.useGroupStyles = (0, styles_1.makeStyles)(function (theme) { return ({
|
|
@@ -146,7 +146,7 @@ var ReferenceAttribute = function (props) {
|
|
|
146
146
|
react_1.default.createElement(index_1.ErrorWrapper, { errorMessage: errorMessage },
|
|
147
147
|
react_1.default.createElement(EntitySelector_1.default, { className: (0, classnames_1.default)(styles.item, (_a = {},
|
|
148
148
|
_a[styles.dense] = errorMessage || (selectedEntity && (0, mdm_sdk_1.isTempUri)(selectedEntity.entityUri)),
|
|
149
|
-
_a)), entity: selectedEntity || {}, entityTypesUris: entityTypesUris, max: 20, globalSearchRequestOptions: globalSearchRequestOptions, mode: mode,
|
|
149
|
+
_a)), entity: selectedEntity || {}, entityTypesUris: entityTypesUris, max: 20, globalSearchRequestOptions: globalSearchRequestOptions, mode: mode, isDisabled: !canChangeReferencedEntity, onChange: onChangeEntity, onCreate: canCreateReferencedEntity ? onCreateEntity : undefined, metadata: metadata, attributeTypesSelectionStrategy: newEntityAttrTypesSelectionStrategy })))));
|
|
150
150
|
};
|
|
151
151
|
ReferenceAttribute.propTypes = __assign(__assign({}, mdm_sdk_1.ReferenceAttributeType), { modifiedEntity: mdm_sdk_1.EntityType, metadata: mdm_sdk_1.MetadataType, globalSearchRequestOptions: prop_types_1.default.object, onDeleteModifiedEntity: prop_types_1.default.func, onUpdateModifiedEntity: prop_types_1.default.func, onDeactivateError: prop_types_1.default.func, highlightedError: prop_types_1.default.object });
|
|
152
152
|
exports.default = (0, HOCs_1.withContext)(contexts_1.ScrollToErrorContext, function (contextValue, _a) {
|
|
@@ -49,7 +49,8 @@ export var useSingleValueStyles = makeStyles(function (theme) { return ({
|
|
|
49
49
|
linkValue: {
|
|
50
50
|
cursor: 'pointer',
|
|
51
51
|
color: theme.palette.primary.main,
|
|
52
|
-
textDecoration: 'none'
|
|
52
|
+
textDecoration: 'none',
|
|
53
|
+
pointerEvents: 'all'
|
|
53
54
|
}
|
|
54
55
|
}); });
|
|
55
56
|
export var useGroupStyles = makeStyles(function (theme) { return ({
|
|
@@ -118,7 +118,7 @@ var ReferenceAttribute = function (props) {
|
|
|
118
118
|
React.createElement(ErrorWrapper, { errorMessage: errorMessage },
|
|
119
119
|
React.createElement(EntitySelector, { className: classnames(styles.item, (_a = {},
|
|
120
120
|
_a[styles.dense] = errorMessage || (selectedEntity && isTempUri(selectedEntity.entityUri)),
|
|
121
|
-
_a)), entity: selectedEntity || {}, entityTypesUris: entityTypesUris, max: 20, globalSearchRequestOptions: globalSearchRequestOptions, mode: mode,
|
|
121
|
+
_a)), entity: selectedEntity || {}, entityTypesUris: entityTypesUris, max: 20, globalSearchRequestOptions: globalSearchRequestOptions, mode: mode, isDisabled: !canChangeReferencedEntity, onChange: onChangeEntity, onCreate: canCreateReferencedEntity ? onCreateEntity : undefined, metadata: metadata, attributeTypesSelectionStrategy: newEntityAttrTypesSelectionStrategy })))));
|
|
122
122
|
};
|
|
123
123
|
ReferenceAttribute.propTypes = __assign(__assign({}, ReferenceAttributeType), { modifiedEntity: EntityType, metadata: MetadataType, globalSearchRequestOptions: PropTypes.object, onDeleteModifiedEntity: PropTypes.func, onUpdateModifiedEntity: PropTypes.func, onDeactivateError: PropTypes.func, highlightedError: PropTypes.object });
|
|
124
124
|
export default withContext(ScrollToErrorContext, function (contextValue, _a) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1480",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1480",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1480",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|