@reltio/components 1.4.943 → 1.4.946
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.
|
@@ -64,6 +64,7 @@ var ProfileBand = function (_a) {
|
|
|
64
64
|
var isActive = mdm_sdk_1.isActiveObject(entity);
|
|
65
65
|
var scores = mdm_sdk_1.getScores(metadata, entity, scoresToShow);
|
|
66
66
|
var entityUri = entity.uri;
|
|
67
|
+
var entityId = mdm_sdk_1.getEntityId(entity);
|
|
67
68
|
return (react_1.default.createElement("div", { className: classnames_1.default(styles.profileBandWrapper, className) },
|
|
68
69
|
react_1.default.createElement("div", { className: classnames_1.default(styles.profileBand, (_b = {},
|
|
69
70
|
_b[styles.inactive] = !isActive,
|
|
@@ -78,11 +79,11 @@ var ProfileBand = function (_a) {
|
|
|
78
79
|
react_1.default.createElement("div", { className: styles.entityType },
|
|
79
80
|
react_1.default.createElement(EntityTypeBadge_1.default, { entity: entity, size: "medium", className: styles.badge }),
|
|
80
81
|
scores.length > 0 && (react_1.default.createElement("div", { className: styles.scores }, scores.map(function (score) { return (react_1.default.createElement(Score_1.default, __assign({ key: score.uri }, score, { rangeColorsConfig: rangeColorsConfig }))); }))),
|
|
81
|
-
react_1.default.createElement(Tooltip_1.default, { title: ui_i18n_1.default.text('Copy to clipboard') },
|
|
82
|
+
!mdm_sdk_1.isTempUri(entityUri) && (react_1.default.createElement(Tooltip_1.default, { title: ui_i18n_1.default.text('Copy to clipboard') },
|
|
82
83
|
react_1.default.createElement(Typography_1.default, { display: "inline", variant: "body2", className: styles.entityId, onClick: handleCopyEntityIdToClipboard },
|
|
83
84
|
ui_i18n_1.default.text('Entity ID'),
|
|
84
85
|
": ",
|
|
85
|
-
|
|
86
|
+
entityId)))))),
|
|
86
87
|
children && react_1.default.createElement("div", null, children))));
|
|
87
88
|
};
|
|
88
89
|
ProfileBand.propTypes = {
|
|
@@ -25,7 +25,8 @@ exports.useStyles = styles_1.makeStyles({
|
|
|
25
25
|
marginRight: '-4px' // AttributesPager padding compensation
|
|
26
26
|
},
|
|
27
27
|
attributeValue: {
|
|
28
|
-
flex: 1
|
|
28
|
+
flex: 1,
|
|
29
|
+
wordBreak: 'break-all'
|
|
29
30
|
},
|
|
30
31
|
updateAttribute: __assign({ width: 'fit-content', padding: '0 4px', marginLeft: '-4px' }, historyAppearance_1.historyPalettes[historyAppearance_1.HistoryOperations.updateAttribute]),
|
|
31
32
|
insertAttribute: __assign({ width: 'fit-content' }, historyAppearance_1.historyPalettes[historyAppearance_1.HistoryOperations.insertAttribute]),
|
|
@@ -17,7 +17,7 @@ import { isNil } from 'ramda';
|
|
|
17
17
|
import Typography from '@material-ui/core/Typography';
|
|
18
18
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
19
19
|
import i18n from 'ui-i18n';
|
|
20
|
-
import { getLabel, isActiveObject, getScores, getBusinessCardAttributesText, getEntityId } from '@reltio/mdm-sdk';
|
|
20
|
+
import { getLabel, isActiveObject, getScores, getBusinessCardAttributesText, getEntityId, isTempUri } from '@reltio/mdm-sdk';
|
|
21
21
|
import mdmModule from '@reltio/mdm-module';
|
|
22
22
|
import EntityAvatar from '../EntityAvatar/EntityAvatar';
|
|
23
23
|
import Score from '../Score/Score';
|
|
@@ -40,6 +40,7 @@ var ProfileBand = function (_a) {
|
|
|
40
40
|
var isActive = isActiveObject(entity);
|
|
41
41
|
var scores = getScores(metadata, entity, scoresToShow);
|
|
42
42
|
var entityUri = entity.uri;
|
|
43
|
+
var entityId = getEntityId(entity);
|
|
43
44
|
return (React.createElement("div", { className: classnames(styles.profileBandWrapper, className) },
|
|
44
45
|
React.createElement("div", { className: classnames(styles.profileBand, (_b = {},
|
|
45
46
|
_b[styles.inactive] = !isActive,
|
|
@@ -54,11 +55,11 @@ var ProfileBand = function (_a) {
|
|
|
54
55
|
React.createElement("div", { className: styles.entityType },
|
|
55
56
|
React.createElement(EntityTypeBadge, { entity: entity, size: "medium", className: styles.badge }),
|
|
56
57
|
scores.length > 0 && (React.createElement("div", { className: styles.scores }, scores.map(function (score) { return (React.createElement(Score, __assign({ key: score.uri }, score, { rangeColorsConfig: rangeColorsConfig }))); }))),
|
|
57
|
-
React.createElement(Tooltip, { title: i18n.text('Copy to clipboard') },
|
|
58
|
+
!isTempUri(entityUri) && (React.createElement(Tooltip, { title: i18n.text('Copy to clipboard') },
|
|
58
59
|
React.createElement(Typography, { display: "inline", variant: "body2", className: styles.entityId, onClick: handleCopyEntityIdToClipboard },
|
|
59
60
|
i18n.text('Entity ID'),
|
|
60
61
|
": ",
|
|
61
|
-
|
|
62
|
+
entityId)))))),
|
|
62
63
|
children && React.createElement("div", null, children))));
|
|
63
64
|
};
|
|
64
65
|
ProfileBand.propTypes = {
|
|
@@ -22,7 +22,8 @@ export var useStyles = makeStyles({
|
|
|
22
22
|
marginRight: '-4px' // AttributesPager padding compensation
|
|
23
23
|
},
|
|
24
24
|
attributeValue: {
|
|
25
|
-
flex: 1
|
|
25
|
+
flex: 1,
|
|
26
|
+
wordBreak: 'break-all'
|
|
26
27
|
},
|
|
27
28
|
updateAttribute: __assign({ width: 'fit-content', padding: '0 4px', marginLeft: '-4px' }, historyPalettes[HistoryOperations.updateAttribute]),
|
|
28
29
|
insertAttribute: __assign({ width: 'fit-content' }, historyPalettes[HistoryOperations.insertAttribute]),
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.946",
|
|
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.946",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.946",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|