@reltio/components 1.4.816 → 1.4.820
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/components/CollaborationItem/CollaborationItem.d.ts +1 -1
- package/components/CollaborationItem/CollaborationItem.js +2 -3
- package/components/ReltioMap/EntityMarker/EntityMarker.js +5 -3
- package/components/ReltioMap/EntityMarker/icons/marker-hover.inline.svg.d.ts +1 -0
- package/components/ReltioMap/EntityMarker/icons/marker-hover.inline.svg.js +4 -0
- package/components/ReltioMap/EntityMarker/icons/marker.inline.svg.d.ts +1 -0
- package/components/ReltioMap/EntityMarker/icons/marker.inline.svg.js +4 -0
- package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.js +4 -4
- package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +10 -3
- package/components/attributes/inline/SimpleAttribute/styles.d.ts +3 -2
- package/components/attributes/inline/SimpleAttribute/styles.js +33 -10
- package/components/crosswalks/ColoredBlock/ColoredBlock.d.ts +1 -0
- package/components/crosswalks/ColoredBlock/ColoredBlock.js +2 -2
- package/components/crosswalks/ColoredBlock/styles.d.ts +1 -0
- package/components/crosswalks/ColoredBlock/styles.js +13 -6
- package/components/crosswalks/CrosswalkRow/CrosswalkRow.js +4 -3
- package/contexts/CollaborationContext/index.d.ts +3 -0
- package/contexts/CollaborationContext/index.js +4 -1
- package/hooks/useCollaboration.d.ts +3 -0
- package/hooks/useCollaboration.js +42 -18
- package/icons/Draw.d.ts +3 -0
- package/icons/Draw.js +28 -0
- package/icons/Polygon.d.ts +3 -0
- package/icons/Polygon.js +22 -0
- package/icons/Radius.d.ts +3 -0
- package/icons/Radius.js +22 -0
- package/package.json +4 -3
|
@@ -11,5 +11,5 @@ declare type Props = {
|
|
|
11
11
|
messagesRef?: React.RefCallback<HTMLDivElement>;
|
|
12
12
|
comment?: CommentType;
|
|
13
13
|
};
|
|
14
|
-
export declare const CollaborationItem: ({ uri, relatedObjectUris, objectType, classes, popperRef, messagesRef, comment }: Props) => JSX.Element
|
|
14
|
+
export declare const CollaborationItem: React.MemoExoticComponent<({ uri, relatedObjectUris, objectType, classes, popperRef, messagesRef, comment }: Props) => JSX.Element>;
|
|
15
15
|
export {};
|
|
@@ -29,7 +29,7 @@ var Comment_1 = require("./Comment/Comment");
|
|
|
29
29
|
var RepliedComment_1 = require("./RepliedComment/RepliedComment");
|
|
30
30
|
var SendMessageArea_1 = require("./SendMessageArea/SendMessageArea");
|
|
31
31
|
var styles_1 = require("./styles");
|
|
32
|
-
|
|
32
|
+
exports.CollaborationItem = react_1.memo(function (_a) {
|
|
33
33
|
var uri = _a.uri, relatedObjectUris = _a.relatedObjectUris, objectType = _a.objectType, classes = _a.classes, popperRef = _a.popperRef, messagesRef = _a.messagesRef, comment = _a.comment;
|
|
34
34
|
var inputRef = react_1.useRef();
|
|
35
35
|
var styles = styles_1.useStyles({ classes: classes });
|
|
@@ -51,5 +51,4 @@ var CollaborationItem = function (_a) {
|
|
|
51
51
|
react_1.default.createElement(Box_1.default, { className: styles.replies }, comment.replies.map(function (reply) { return (react_1.default.createElement(RepliedComment_1.RepliedComment, { key: reply.replyId, className: styles.repliedComment, reply: reply })); }))),
|
|
52
52
|
sendMessageArea)),
|
|
53
53
|
!comment && sendMessageArea));
|
|
54
|
-
};
|
|
55
|
-
exports.CollaborationItem = CollaborationItem;
|
|
54
|
+
});
|
|
@@ -51,13 +51,15 @@ var ProfileCard_1 = __importDefault(require("../../ProfileCard/ProfileCard"));
|
|
|
51
51
|
var Popper_1 = __importDefault(require("../../Popper/Popper"));
|
|
52
52
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
53
53
|
var contexts_1 = require("../../../contexts");
|
|
54
|
-
var marker_inline_svg_1 =
|
|
55
|
-
var marker_hover_inline_svg_1 =
|
|
54
|
+
var marker_inline_svg_1 = require("./icons/marker.inline.svg");
|
|
55
|
+
var marker_hover_inline_svg_1 = require("./icons/marker-hover.inline.svg");
|
|
56
56
|
var styles_1 = require("./styles");
|
|
57
57
|
var HIDE_DEBOUNCE_INTERVAL = 50;
|
|
58
58
|
var MARKER_WIDTH = 22;
|
|
59
59
|
var MARKER_HEIGHT = 32;
|
|
60
60
|
var MARKER_CARD_MARGIN = 8;
|
|
61
|
+
var hoveredMarkerIcon = mdm_sdk_1.svg2Url(marker_hover_inline_svg_1.HOVERED_MARKER);
|
|
62
|
+
var markerIcon = mdm_sdk_1.svg2Url(marker_inline_svg_1.MARKER);
|
|
61
63
|
var EntityMarker = function (_a) {
|
|
62
64
|
var marker = _a.marker, onClick = _a.onClick, otherProps = __rest(_a, ["marker", "onClick"]);
|
|
63
65
|
var styles = styles_1.useStyles();
|
|
@@ -74,7 +76,7 @@ var EntityMarker = function (_a) {
|
|
|
74
76
|
react_1.default.createElement(Popper_1.default, { anchorEl: popperAnchor.current, open: hovered, className: styles.popper, modal: false, placement: "top" },
|
|
75
77
|
react_1.default.createElement(ProfileCard_1.default, { entity: marker.entity, onMouseOver: onMouseOver, onMouseOut: onMouseOut })),
|
|
76
78
|
react_1.default.createElement(api_1.Marker, __assign({ icon: {
|
|
77
|
-
url: hovered || isActive ?
|
|
79
|
+
url: hovered || isActive ? hoveredMarkerIcon : markerIcon,
|
|
78
80
|
// needed for IE:
|
|
79
81
|
scaledSize: new google.maps.Size(MARKER_WIDTH, MARKER_HEIGHT) //eslint-disable-line
|
|
80
82
|
}, position: position, onClick: handleClick, visible: marker.visible !== false, onMouseOver: onMouseOver, onMouseOut: onMouseOut }, otherProps)),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HOVERED_MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large (hover)</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large-(hover)\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.32\" cx=\"11\" cy=\"28.5\" rx=\"6\" ry=\"4.66666667\"></ellipse>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n <path d=\"M20,2 L20,20 L14.755,20 L14.6905172,20.0815309 C14.3562717,20.5012516 14.0578656,20.8886742 13.7817711,21.2616986 L13.5786724,21.5390469 C11.92787,23.8181606 11.079024,25.6311217 11.0052669,27.2674145 L11.0052669,27.2674145 L11,27.5 L10.9968324,27.3203844 C10.9285422,25.3781621 9.75347502,23.1598866 7.22124201,20.0010865 L2,20 L2,2 L20,2 Z\" id=\"Path\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" mask=\"url(#mask-3)\"></path>\n </g>\n</svg>";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HOVERED_MARKER = void 0;
|
|
4
|
+
exports.HOVERED_MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large (hover)</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large-(hover)\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.32\" cx=\"11\" cy=\"28.5\" rx=\"6\" ry=\"4.66666667\"></ellipse>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n <path d=\"M20,2 L20,20 L14.755,20 L14.6905172,20.0815309 C14.3562717,20.5012516 14.0578656,20.8886742 13.7817711,21.2616986 L13.5786724,21.5390469 C11.92787,23.8181606 11.079024,25.6311217 11.0052669,27.2674145 L11.0052669,27.2674145 L11,27.5 L10.9968324,27.3203844 C10.9285422,25.3781621 9.75347502,23.1598866 7.22124201,20.0010865 L2,20 L2,2 L20,2 Z\" id=\"Path\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" mask=\"url(#mask-3)\"></path>\n </g>\n</svg>";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M20,1 C20.5522847,1 21,1.44771525 21,2 L21,20 C21,20.5522847 20.5522847,21 20,21 L15.2374606,21.0021908 C14.9306693,21.3935449 14.6510143,21.7632851 14.3885453,22.1256523 C12.8309725,24.2760522 12,26.0137017 12,27.5 C12,28.0522847 11.5522847,28.5 11,28.5 C10.4477153,28.5 10,28.0522847 10,27.5 C10,25.7886708 8.84033182,23.6810997 6.73798027,21.0014567 L2,21 C1.44771525,21 1,20.5522847 1,20 L1,2 C1,1.44771525 1.44771525,1 2,1 L20,1 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.12\" cx=\"11\" cy=\"28.5\" rx=\"4.5\" ry=\"3.5\"></ellipse>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"Path-3\" fill=\"#FFFFFF\"></path>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n </g>\n</svg>";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MARKER = void 0;
|
|
4
|
+
exports.MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M20,1 C20.5522847,1 21,1.44771525 21,2 L21,20 C21,20.5522847 20.5522847,21 20,21 L15.2374606,21.0021908 C14.9306693,21.3935449 14.6510143,21.7632851 14.3885453,22.1256523 C12.8309725,24.2760522 12,26.0137017 12,27.5 C12,28.0522847 11.5522847,28.5 11,28.5 C10.4477153,28.5 10,28.0522847 10,27.5 C10,25.7886708 8.84033182,23.6810997 6.73798027,21.0014567 L2,21 C1.44771525,21 1,20.5522847 1,20 L1,2 C1,1.44771525 1.44771525,1 2,1 L20,1 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.12\" cx=\"11\" cy=\"28.5\" rx=\"4.5\" ry=\"3.5\"></ellipse>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"Path-3\" fill=\"#FFFFFF\"></path>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n </g>\n</svg>";
|
|
@@ -10,16 +10,16 @@ var Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
|
10
10
|
var HOCs_1 = require("../../../../HOCs");
|
|
11
11
|
var HighlightOff_1 = __importDefault(require("@material-ui/icons/HighlightOff"));
|
|
12
12
|
var constants_1 = require("../../constants");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var Radius_1 = __importDefault(require("../../../../icons/Radius"));
|
|
14
|
+
var Draw_1 = __importDefault(require("../../../../icons/Draw"));
|
|
15
15
|
var styles_1 = require("./styles");
|
|
16
16
|
exports.ButtonWithTooltip = HOCs_1.withTooltip(Button_1.default);
|
|
17
17
|
var getIcon = function (mode) {
|
|
18
18
|
switch (mode) {
|
|
19
19
|
case constants_1.MAP_DRAWING_MODES.CIRCLE:
|
|
20
|
-
return
|
|
20
|
+
return Radius_1.default;
|
|
21
21
|
case constants_1.MAP_DRAWING_MODES.POLYGON:
|
|
22
|
-
return
|
|
22
|
+
return Draw_1.default;
|
|
23
23
|
default:
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
@@ -44,14 +44,21 @@ var SimpleAttribute = function (_a) {
|
|
|
44
44
|
var _e = useAttributeState_1.useAttributeState(), isReadingMode = _e.isReadingMode, isEditingMode = _e.isEditingMode, isHovered = _e.isHovered, onMouseOver = _e.onMouseOver, onMouseOut = _e.onMouseOut, setReadingMode = _e.setReadingMode, setEditingMode = _e.setEditingMode;
|
|
45
45
|
var containerRef = react_1.useRef();
|
|
46
46
|
var id = mdm_sdk_1.getLastUriPart(attributeValue.uri);
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var crosswalkDisabled = mdm_sdk_1.isCrosswalkDisabled(crosswalk);
|
|
48
|
+
var canModifyAttribute = !attributeType.system && !crosswalkDisabled;
|
|
49
|
+
var canEdit = canModifyAttribute && allowEdit && mdm_sdk_1.checkMetadataForUpdate(mdm_sdk_1.ModeTypes.EDITING, attributeType);
|
|
50
|
+
var canDelete = canModifyAttribute && allowDelete && mdm_sdk_1.checkMetadataForDelete(mdm_sdk_1.ModeTypes.EDITING, attributeType);
|
|
49
51
|
var isTemporary = mdm_sdk_1.isTempUri(attributeValue.uri);
|
|
50
52
|
var showPin = !isTemporary && ((!isReadingMode && canEdit) || attributeValue.pin);
|
|
51
53
|
var showIgnore = !isTemporary && ((!isReadingMode && canEdit) || attributeValue.ignored);
|
|
52
54
|
var color = contexts_1.useCrosswalkColor(crosswalk);
|
|
53
55
|
var _f = contexts_1.useCrosswalkHighlight(crosswalk), isHighlighted = _f.isHighlighted, isDimmed = _f.isDimmed, highlightCrosswalk = _f.highlightCrosswalk, removeHighlight = _f.removeHighlight;
|
|
54
|
-
var styles = styles_1.useStyles({
|
|
56
|
+
var styles = styles_1.useStyles({
|
|
57
|
+
variant: crosswalkDisabled ? 'outlined' : 'filled',
|
|
58
|
+
opaque: !isDimmed,
|
|
59
|
+
fullyColored: isHighlighted,
|
|
60
|
+
color: color
|
|
61
|
+
});
|
|
55
62
|
var actions = [
|
|
56
63
|
{
|
|
57
64
|
crosswalk: crosswalk,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare type StylesProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
variant: 'filled' | 'outlined';
|
|
3
|
+
fullyColored: boolean;
|
|
4
|
+
opaque: boolean;
|
|
4
5
|
color: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const useStyles: (props: StylesProps) => import("@material-ui/core/styles/withStyles").ClassNameMap<"attributeValue" | "root" | "actions">;
|
|
@@ -1,20 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.useStyles = void 0;
|
|
4
15
|
var styles_1 = require("@material-ui/core/styles");
|
|
5
16
|
exports.useStyles = styles_1.makeStyles(function () { return ({
|
|
6
17
|
root: function (_a) {
|
|
7
|
-
var
|
|
8
|
-
return ({
|
|
9
|
-
height: '28px',
|
|
18
|
+
var fullyColored = _a.fullyColored, opaque = _a.opaque, color = _a.color, variant = _a.variant;
|
|
19
|
+
return (__assign(__assign(__assign({ height: '28px' }, (variant === 'filled' && {
|
|
10
20
|
borderRadius: '4px',
|
|
11
|
-
background:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
background: fullyColored ? color : "linear-gradient(to right, " + color + " 8px, rgba(0,0,0,0.05) 8px)"
|
|
22
|
+
})), (variant === 'outlined' && {
|
|
23
|
+
'&::after': {
|
|
24
|
+
content: '""',
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
background: color,
|
|
27
|
+
borderRadius: '4px 0px 0px 4px',
|
|
28
|
+
width: '8px',
|
|
29
|
+
height: '100%'
|
|
30
|
+
},
|
|
31
|
+
'&::before': {
|
|
32
|
+
content: '""',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
borderRadius: '4px',
|
|
36
|
+
border: fullyColored ? color + " solid 2px" : 'rgba(0,0,0,0.12) solid 1px',
|
|
37
|
+
width: '100%',
|
|
38
|
+
height: '100%'
|
|
39
|
+
}
|
|
40
|
+
})), { display: 'flex', alignItems: 'center', maxWidth: '230px', opacity: opaque ? 1 : 0.38, transition: 'opacity 0.3s', position: 'relative' }));
|
|
18
41
|
},
|
|
19
42
|
attributeValue: {
|
|
20
43
|
marginLeft: '16px',
|
|
@@ -2,5 +2,6 @@ import React from 'react';
|
|
|
2
2
|
declare const ColoredBlock: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
color: string;
|
|
4
4
|
opacity?: number;
|
|
5
|
+
variant?: 'filled' | 'outlined';
|
|
5
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
7
|
export default ColoredBlock;
|
|
@@ -48,8 +48,8 @@ var react_1 = __importStar(require("react"));
|
|
|
48
48
|
var classnames_1 = __importDefault(require("classnames"));
|
|
49
49
|
var styles_1 = require("./styles");
|
|
50
50
|
var ColoredBlock = react_1.forwardRef(function (_a, ref) {
|
|
51
|
-
var color = _a.color, opacity = _a.opacity, children = _a.children, className = _a.className, props = __rest(_a, ["color", "opacity", "children", "className"]);
|
|
52
|
-
var styles = styles_1.useColoredItemStyles({ color: color, opacity: opacity });
|
|
51
|
+
var color = _a.color, opacity = _a.opacity, _b = _a.variant, variant = _b === void 0 ? 'filled' : _b, children = _a.children, className = _a.className, props = __rest(_a, ["color", "opacity", "variant", "children", "className"]);
|
|
52
|
+
var styles = styles_1.useColoredItemStyles({ color: color, opacity: opacity, variant: variant });
|
|
53
53
|
return (react_1.default.createElement("div", __assign({ ref: ref, className: classnames_1.default(styles.item, className) }, props), children));
|
|
54
54
|
});
|
|
55
55
|
exports.default = ColoredBlock;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.useColoredItemStyles = void 0;
|
|
4
15
|
var styles_1 = require("@material-ui/core/styles");
|
|
5
16
|
exports.useColoredItemStyles = styles_1.makeStyles({
|
|
6
17
|
item: function (_a) {
|
|
7
|
-
var color = _a.color, opacity = _a.opacity;
|
|
8
|
-
return ({
|
|
9
|
-
backgroundColor: color,
|
|
10
|
-
opacity: opacity,
|
|
11
|
-
transition: 'opacity 0.3s'
|
|
12
|
-
});
|
|
18
|
+
var color = _a.color, opacity = _a.opacity, variant = _a.variant;
|
|
19
|
+
return (__assign(__assign(__assign({}, (variant === 'filled' && { backgroundColor: color })), (variant === 'outlined' && { border: color + " solid 2px" })), { opacity: opacity, transition: 'opacity 0.3s', boxSizing: 'border-box' }));
|
|
13
20
|
}
|
|
14
21
|
});
|
|
@@ -57,14 +57,15 @@ var CrosswalkRow = function (_a) {
|
|
|
57
57
|
var metadata = react_redux_1.useSelector(mdm_module_1.default.selectors.getMetadata);
|
|
58
58
|
var sourceSystemLabel = mdm_sdk_1.getSourceSystemLabel(metadata, crosswalk.type);
|
|
59
59
|
var crosswalkId = mdm_sdk_1.getLastUriPart(crosswalk.uri);
|
|
60
|
+
var crosswalkDisabled = mdm_sdk_1.isCrosswalkDisabled(crosswalk);
|
|
60
61
|
var _j = react_dnd_1.useDrag({
|
|
61
62
|
item: {
|
|
62
63
|
type: 'Crosswalk',
|
|
63
64
|
crosswalk: crosswalk
|
|
64
65
|
},
|
|
65
|
-
canDrag: !
|
|
66
|
+
canDrag: !crosswalkDisabled
|
|
66
67
|
}), drag = _j[1], preview = _j[2];
|
|
67
|
-
var canDelete = !
|
|
68
|
+
var canDelete = !crosswalkDisabled && crosswalk.ownerType !== 'relation';
|
|
68
69
|
react_1.useEffect(function () {
|
|
69
70
|
preview(react_dnd_html5_backend_1.getEmptyImage(), { captureDraggingState: true });
|
|
70
71
|
}, []);
|
|
@@ -85,7 +86,7 @@ var CrosswalkRow = function (_a) {
|
|
|
85
86
|
return (react_1.default.createElement("div", { className: styles.root, ref: ref },
|
|
86
87
|
react_1.default.createElement(SmallIconButton_1.SmallIconButtonWithTooltip, { size: "XXS", className: styles.focusedIcon, icon: focusable && Visibility_1.default, onClick: function () { return toggleCrosswalkFocus(); }, disabled: !focusable, tooltipTitle: focusable && ui_i18n_1.default.text('Focus') }),
|
|
87
88
|
react_1.default.createElement("div", { className: styles.crosswalkWrapper },
|
|
88
|
-
react_1.default.createElement(ColoredBlock_1.default, { ref: drag, className: styles.header, color: color, onMouseEnter: function () { return highlightCrosswalk(); }, onMouseLeave: function () { return removeHighlight(); } },
|
|
89
|
+
react_1.default.createElement(ColoredBlock_1.default, { ref: drag, className: styles.header, color: color, variant: crosswalkDisabled ? 'outlined' : 'filled', onMouseEnter: function () { return highlightCrosswalk(); }, onMouseLeave: function () { return removeHighlight(); } },
|
|
89
90
|
isDependent && react_1.default.createElement(NestedAttribute_1.default, { className: styles.dependentIcon }),
|
|
90
91
|
react_1.default.createElement(ArrowExpandButton_1.default, { onClick: function () { return setExpanded(function (value) { return !value; }); }, expanded: expanded }),
|
|
91
92
|
react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
|
|
@@ -3,7 +3,9 @@ import { CollaborationObjectTypes, Comment, CommentsMap, Reply } from '@reltio/m
|
|
|
3
3
|
export declare const CollaborationContext: React.Context<{
|
|
4
4
|
objectTypes?: CollaborationObjectTypes[];
|
|
5
5
|
commentsMap: CommentsMap;
|
|
6
|
+
comments: Comment[];
|
|
6
7
|
currentComment: Comment;
|
|
8
|
+
getComments: (uri: string, pageToken?: string) => void;
|
|
7
9
|
getComment: (commentId: Comment['commentId']) => void;
|
|
8
10
|
createComment: (params: Pick<Comment, 'content' | 'namedUsers' | 'objectType' | 'relatedObjectUris'> & {
|
|
9
11
|
uri: string;
|
|
@@ -29,4 +31,5 @@ export declare const CollaborationContext: React.Context<{
|
|
|
29
31
|
clearCurrentComment: () => void;
|
|
30
32
|
sending: boolean;
|
|
31
33
|
loading: boolean;
|
|
34
|
+
pageToken: string;
|
|
32
35
|
}>;
|
|
@@ -7,9 +7,11 @@ exports.CollaborationContext = void 0;
|
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
var noop = function () { };
|
|
9
9
|
exports.CollaborationContext = react_1.default.createContext({
|
|
10
|
+
comments: [],
|
|
10
11
|
commentsMap: null,
|
|
11
12
|
currentComment: null,
|
|
12
13
|
getComment: noop,
|
|
14
|
+
getComments: function () { return new Promise(noop); },
|
|
13
15
|
createComment: function () { return new Promise(noop); },
|
|
14
16
|
editComment: function () { return new Promise(noop); },
|
|
15
17
|
createReply: function () { return new Promise(noop); },
|
|
@@ -18,6 +20,7 @@ exports.CollaborationContext = react_1.default.createContext({
|
|
|
18
20
|
clearCurrentComment: noop,
|
|
19
21
|
deleteComment: noop,
|
|
20
22
|
sending: false,
|
|
21
|
-
loading: false
|
|
23
|
+
loading: false,
|
|
24
|
+
pageToken: null
|
|
22
25
|
});
|
|
23
26
|
exports.CollaborationContext.displayName = 'CollaborationContext';
|
|
@@ -2,6 +2,7 @@ import { CollaborationObjectTypes, Comment, CommentsMap } from '@reltio/mdm-sdk'
|
|
|
2
2
|
export declare const useCollaboration: (objectIds?: string[], objectTypes?: CollaborationObjectTypes[]) => {
|
|
3
3
|
commentsMap: CommentsMap;
|
|
4
4
|
currentComment: Comment;
|
|
5
|
+
comments: Comment[];
|
|
5
6
|
getComment: (commentId: string) => void;
|
|
6
7
|
createReply: ({ content, namedUsers, commentId, action, uri }: any) => Promise<void>;
|
|
7
8
|
editComment: ({ content, namedUsers, objectType, uri, relatedObjectUris, commentId, replies }: any) => Promise<void>;
|
|
@@ -13,4 +14,6 @@ export declare const useCollaboration: (objectIds?: string[], objectTypes?: Coll
|
|
|
13
14
|
sending: boolean;
|
|
14
15
|
loading: boolean;
|
|
15
16
|
objectTypes: CollaborationObjectTypes[];
|
|
17
|
+
getComments: (relatedObjectUri: string, pageToken?: string) => void;
|
|
18
|
+
pageToken: string;
|
|
16
19
|
};
|
|
@@ -33,10 +33,12 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
33
33
|
var tenant = react_redux_1.useSelector(mdm_module_1.default.selectors.getTenant);
|
|
34
34
|
var collaborationPath = react_redux_1.useSelector(mdm_module_1.default.selectors.getCollaborationPath);
|
|
35
35
|
var isCollaborationEnabled = react_redux_1.useSelector(mdm_module_1.default.selectors.isCollaborationEnabled);
|
|
36
|
-
var _a = react_1.useState(null),
|
|
37
|
-
var _b = react_1.useState(
|
|
38
|
-
var _c = react_1.useState(
|
|
39
|
-
var _d = react_1.useState(
|
|
36
|
+
var _a = react_1.useState(null), pageToken = _a[0], setPageToken = _a[1];
|
|
37
|
+
var _b = react_1.useState([]), comments = _b[0], setComments = _b[1];
|
|
38
|
+
var _c = react_1.useState(null), commentsMap = _c[0], setCommentsMap = _c[1];
|
|
39
|
+
var _d = react_1.useState(null), currentComment = _d[0], setCurrentComment = _d[1];
|
|
40
|
+
var _e = react_1.useState(false), sending = _e[0], setSending = _e[1];
|
|
41
|
+
var _f = react_1.useState(false), loading = _f[0], setLoading = _f[1];
|
|
40
42
|
react_1.useEffect(function () {
|
|
41
43
|
if (isCollaborationEnabled && entity) {
|
|
42
44
|
var onError = function (e) {
|
|
@@ -49,6 +51,20 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
49
51
|
setCommentsMap(null);
|
|
50
52
|
}
|
|
51
53
|
}, [entity, isCollaborationEnabled, tenant, collaborationPath, objectIds]);
|
|
54
|
+
var getComments = react_1.useCallback(function (relatedObjectUri, pageToken) {
|
|
55
|
+
mdm_sdk_1.getComments({ collaborationPath: collaborationPath, tenant: tenant, relatedObjectUri: relatedObjectUri, pageToken: pageToken })
|
|
56
|
+
.then(function (_a) {
|
|
57
|
+
var items = _a.items, nextPageToken = _a.nextPageToken;
|
|
58
|
+
setComments(function (prevComments) {
|
|
59
|
+
if (!pageToken) {
|
|
60
|
+
return items;
|
|
61
|
+
}
|
|
62
|
+
return ramda_1.uniqBy(ramda_1.prop('commentId'), __spreadArray(__spreadArray([], prevComments), items));
|
|
63
|
+
});
|
|
64
|
+
setPageToken(nextPageToken);
|
|
65
|
+
})
|
|
66
|
+
.catch(catchErrorInRequest);
|
|
67
|
+
}, [collaborationPath, tenant]);
|
|
52
68
|
var getComment = react_1.useCallback(function (commentId) {
|
|
53
69
|
setLoading(true);
|
|
54
70
|
mdm_sdk_1.getComment({ collaborationPath: collaborationPath, tenant: tenant, commentId: commentId })
|
|
@@ -62,17 +78,11 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
62
78
|
var _a;
|
|
63
79
|
return __assign(__assign({}, prevCommentsMap), (_a = {}, _a[uri] = __spreadArray(__spreadArray([], (prevCommentsMap[uri] || [])), [{ commentId: comment.commentId, replies: 0, status: 'open' }]), _a));
|
|
64
80
|
});
|
|
81
|
+
setComments(function (prevComments) { return __spreadArray([comment], prevComments); });
|
|
65
82
|
};
|
|
66
|
-
var updateCommentInState = function (comment
|
|
83
|
+
var updateCommentInState = function (comment) {
|
|
67
84
|
setCurrentComment(comment);
|
|
68
|
-
|
|
69
|
-
var _a;
|
|
70
|
-
var comments = (prevCommentsMap[uri] || []).map(function (c) {
|
|
71
|
-
return c.commentId === comment.commentId
|
|
72
|
-
? __assign(__assign({}, comment), { replies: (typeof comment.replies === 'number' ? comment.replies : comment.replies.length) || 0 }) : c;
|
|
73
|
-
});
|
|
74
|
-
return __assign(__assign({}, prevCommentsMap), (_a = {}, _a[uri] = comments, _a));
|
|
75
|
-
});
|
|
85
|
+
setComments(ramda_1.map(ramda_1.when(ramda_1.propEq('commentId', comment.commentId), ramda_1.always(comment))));
|
|
76
86
|
};
|
|
77
87
|
var deleteCommentFromState = function (commentId, uri) {
|
|
78
88
|
setCurrentComment(null);
|
|
@@ -81,6 +91,9 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
81
91
|
var comments = prevCommentsMap[uri] || [];
|
|
82
92
|
return __assign(__assign({}, prevCommentsMap), (_a = {}, _a[uri] = comments.filter(function (c) { return c.commentId !== commentId; }), _a));
|
|
83
93
|
});
|
|
94
|
+
setComments(function (prevComments) {
|
|
95
|
+
return prevComments.filter(function (comment) { return comment.commentId !== commentId; });
|
|
96
|
+
});
|
|
84
97
|
};
|
|
85
98
|
var createComment = react_1.useCallback(function (_a) {
|
|
86
99
|
var content = _a.content, namedUsers = _a.namedUsers, objectType = _a.objectType, uri = _a.uri, relatedObjectUris = _a.relatedObjectUris;
|
|
@@ -117,7 +130,7 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
117
130
|
replies: replies
|
|
118
131
|
};
|
|
119
132
|
return mdm_sdk_1.updateComment({ collaborationPath: collaborationPath, tenant: tenant, data: data })
|
|
120
|
-
.then(function (comment) { return updateCommentInState(__assign(__assign({}, comment), { replies: replies })
|
|
133
|
+
.then(function (comment) { return updateCommentInState(__assign(__assign({}, comment), { replies: replies })); })
|
|
121
134
|
.catch(catchErrorInRequest)
|
|
122
135
|
.finally(function () { return setSending(false); });
|
|
123
136
|
}, [collaborationPath, tenant]);
|
|
@@ -129,7 +142,7 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
129
142
|
.catch(catchErrorInRequest)
|
|
130
143
|
.finally(function () { return setSending(false); });
|
|
131
144
|
}, [collaborationPath, tenant]);
|
|
132
|
-
var
|
|
145
|
+
var updateReplyInState = react_1.useCallback(function (reply, uri, commentId) {
|
|
133
146
|
var newStatus = reply.action === 'resolve' ? 'resolved' : 'open';
|
|
134
147
|
if (newStatus === 'resolved') {
|
|
135
148
|
setCurrentComment(function (prevCurrentComment) {
|
|
@@ -154,6 +167,14 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
154
167
|
return comment;
|
|
155
168
|
}), _a)));
|
|
156
169
|
});
|
|
170
|
+
setComments(function (prevComments) {
|
|
171
|
+
return prevComments.map(function (comment) {
|
|
172
|
+
if (comment.commentId === commentId) {
|
|
173
|
+
return __assign(__assign({}, comment), { status: newStatus, replies: __spreadArray(__spreadArray([], comment.replies), [reply]) });
|
|
174
|
+
}
|
|
175
|
+
return comment;
|
|
176
|
+
});
|
|
177
|
+
});
|
|
157
178
|
}, []);
|
|
158
179
|
var createReply = react_1.useCallback(function (_a) {
|
|
159
180
|
var content = _a.content, namedUsers = _a.namedUsers, commentId = _a.commentId, action = _a.action, uri = _a.uri;
|
|
@@ -166,11 +187,11 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
166
187
|
return mdm_sdk_1.createReply({ collaborationPath: collaborationPath, tenant: tenant, commentId: commentId, data: data })
|
|
167
188
|
.then(function (_a) {
|
|
168
189
|
var reply = _a[0];
|
|
169
|
-
return
|
|
190
|
+
return updateReplyInState(reply, uri, commentId);
|
|
170
191
|
})
|
|
171
192
|
.catch(catchErrorInRequest)
|
|
172
193
|
.finally(function () { return setSending(false); });
|
|
173
|
-
}, [collaborationPath, tenant,
|
|
194
|
+
}, [collaborationPath, tenant, updateReplyInState]);
|
|
174
195
|
var resolveThread = react_1.useCallback(function (_a) {
|
|
175
196
|
var commentId = _a.commentId, uri = _a.uri;
|
|
176
197
|
createReply({ content: '', namedUsers: [], commentId: commentId, action: 'resolve', uri: uri });
|
|
@@ -185,6 +206,7 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
185
206
|
return {
|
|
186
207
|
commentsMap: commentsMap,
|
|
187
208
|
currentComment: currentComment,
|
|
209
|
+
comments: comments,
|
|
188
210
|
getComment: getComment,
|
|
189
211
|
createReply: createReply,
|
|
190
212
|
editComment: editComment,
|
|
@@ -195,7 +217,9 @@ var useCollaboration = function (objectIds, objectTypes) {
|
|
|
195
217
|
reOpenThread: reOpenThread,
|
|
196
218
|
sending: sending,
|
|
197
219
|
loading: loading,
|
|
198
|
-
objectTypes: objectTypes
|
|
220
|
+
objectTypes: objectTypes,
|
|
221
|
+
getComments: getComments,
|
|
222
|
+
pageToken: pageToken
|
|
199
223
|
};
|
|
200
224
|
};
|
|
201
225
|
exports.useCollaboration = useCollaboration;
|
package/icons/Draw.d.ts
ADDED
package/icons/Draw.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var SvgDraw = function (props) {
|
|
19
|
+
return (react_1.default.createElement("svg", __assign({ width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" }, props),
|
|
20
|
+
react_1.default.createElement("defs", null,
|
|
21
|
+
react_1.default.createElement("path", { d: "M18.29 11.44a1.49 1.49 0 012.12 0l1.15 1.15c.59.58.59 1.53 0 2.12L16.27 20H13v-3.27zM18.174 4c0 1.71-.26 3.285-.932 4.563-.946 1.798-2.609 2.724-4.906 2.46l-.855-.116c-4.382-.544-6.626.53-6.626 3.609 0 1.968 1.105 2.924 3.267 3.304.692.121 1.306.165 2.234.176L11 18v2l-.698-.003c-1.016-.013-1.71-.063-2.526-.206-3.018-.53-4.921-2.176-4.921-5.274 0-4.819 3.71-6.378 9.52-5.505 1.575.237 2.506-.255 3.098-1.38.451-.858.666-2.02.697-3.307L16.174 4h2zM18 13.97l-3.45 3.45v1.03h1.03L19.03 15 18 13.97z", id: "draw_svg__a" })),
|
|
22
|
+
react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" },
|
|
23
|
+
react_1.default.createElement("mask", { id: "draw_svg__b", fill: "#fff" },
|
|
24
|
+
react_1.default.createElement("use", { xlinkHref: "#draw_svg__a" })),
|
|
25
|
+
react_1.default.createElement("g", { mask: "url(#draw_svg__b)", fill: "#000", fillOpacity: 0.54 },
|
|
26
|
+
react_1.default.createElement("path", { d: "M0 0h24v24H0z" })))));
|
|
27
|
+
};
|
|
28
|
+
exports.default = SvgDraw;
|
package/icons/Polygon.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var SvgPolygon = function (props) {
|
|
19
|
+
return (react_1.default.createElement("svg", __assign({ width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
20
|
+
react_1.default.createElement("path", { d: "M3.796 11.99A2 2 0 114.855 8.19l5.19-3.77a2 2 0 113.911 0l5.19 3.77a2 2 0 111.058 3.798l-1.812 5.575a2 2 0 11-3.05 2.555H8.658a2 2 0 11-3.05-2.555L3.796 11.99zM5.987 9.77a1.991 1.991 0 01-.398 1.444l1.899 5.845c.596.15 1.086.566 1.334 1.115h6.356c.248-.55.738-.966 1.334-1.115l1.9-5.845a1.991 1.991 0 01-.4-1.444l-5.346-3.884a1.997 1.997 0 01-1.332 0L5.987 9.77z", fill: "#000", fillRule: "nonzero", stroke: "none", strokeWidth: 1, opacity: 0.54 })));
|
|
21
|
+
};
|
|
22
|
+
exports.default = SvgPolygon;
|
package/icons/Radius.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var SvgRadius = function (props) {
|
|
19
|
+
return (react_1.default.createElement("svg", __assign({ width: 18, height: 18, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
20
|
+
react_1.default.createElement("path", { d: "M10.61 8.568A1.666 1.666 0 119.432 7.39l3.656-3.657a6.668 6.668 0 101.179 1.179L10.61 8.568zm-7.503 6.325A8.333 8.333 0 1114.893 3.107 8.333 8.333 0 013.107 14.893z", fill: "#000", stroke: "none", strokeWidth: 1, fillRule: "evenodd", opacity: 0.54 })));
|
|
21
|
+
};
|
|
22
|
+
exports.default = SvgRadius;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.820",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@date-io/moment": "^1.3.5",
|
|
8
|
-
"@
|
|
9
|
-
"@reltio/mdm-
|
|
8
|
+
"@react-google-maps/api": "^2.7.0",
|
|
9
|
+
"@reltio/mdm-module": "^1.4.820",
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.820",
|
|
10
11
|
"classnames": "^2.2.5",
|
|
11
12
|
"frontend-collective-react-dnd-scrollzone": "^1.0.2",
|
|
12
13
|
"nanoid": "^2.0.0",
|