@reltio/components 1.4.924 → 1.4.928

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.
Files changed (79) hide show
  1. package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +3 -1
  2. package/cjs/components/CommentsContainer/CommentsContainer.js +10 -1
  3. package/cjs/components/LinearLoadIndicator/LinearLoadIndicator.d.ts +2 -1
  4. package/cjs/components/LinearLoadIndicator/LinearLoadIndicator.js +7 -3
  5. package/cjs/components/LinearLoadIndicator/styles.d.ts +1 -1
  6. package/cjs/components/LinearLoadIndicator/styles.js +5 -0
  7. package/cjs/components/MergeButton/MergeButton.js +2 -2
  8. package/cjs/components/NotMatchButton/NotMatchButton.js +2 -2
  9. package/cjs/components/SidePanelEmptyState/SidePanelEmptyState.d.ts +8 -0
  10. package/cjs/components/SidePanelEmptyState/SidePanelEmptyState.js +19 -0
  11. package/cjs/components/SidePanelEmptyState/styles.d.ts +1 -0
  12. package/cjs/components/SidePanelEmptyState/styles.js +46 -0
  13. package/cjs/components/charts/MapChart/MapChart.js +23 -20
  14. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +3 -1
  15. package/cjs/components/history/ContributorsPanel/styles.js +0 -1
  16. package/cjs/components/history/HistoryPanelEmptyState/HistoryPanelEmptyState.d.ts +3 -0
  17. package/cjs/components/history/HistoryPanelEmptyState/HistoryPanelEmptyState.js +10 -0
  18. package/cjs/components/history/HistoryView/styles.js +2 -1
  19. package/cjs/components/history/index.d.ts +1 -0
  20. package/cjs/components/history/index.js +3 -1
  21. package/cjs/components/index.d.ts +1 -0
  22. package/cjs/components/index.js +4 -2
  23. package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.js +2 -1
  24. package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +9 -7
  25. package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +3 -2
  26. package/cjs/contexts/RelatedObjectUrisContext/index.d.ts +2 -0
  27. package/cjs/contexts/RelatedObjectUrisContext/index.js +9 -0
  28. package/cjs/contexts/index.d.ts +1 -0
  29. package/cjs/contexts/index.js +3 -1
  30. package/cjs/hooks/useCollaboration.d.ts +7 -1
  31. package/cjs/hooks/useCollaboration.js +9 -9
  32. package/cjs/icons/AttributesList.d.ts +3 -0
  33. package/cjs/icons/AttributesList.js +58 -0
  34. package/cjs/icons/MergeDark.d.ts +3 -0
  35. package/cjs/icons/MergeDark.js +27 -0
  36. package/cjs/icons/NotMatchDark.d.ts +3 -0
  37. package/cjs/icons/NotMatchDark.js +27 -0
  38. package/cjs/icons/index.d.ts +4 -3
  39. package/cjs/icons/index.js +9 -7
  40. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +3 -1
  41. package/esm/components/CommentsContainer/CommentsContainer.js +12 -3
  42. package/esm/components/LinearLoadIndicator/LinearLoadIndicator.d.ts +2 -1
  43. package/esm/components/LinearLoadIndicator/LinearLoadIndicator.js +7 -3
  44. package/esm/components/LinearLoadIndicator/styles.d.ts +1 -1
  45. package/esm/components/LinearLoadIndicator/styles.js +5 -0
  46. package/esm/components/MergeButton/MergeButton.js +1 -1
  47. package/esm/components/NotMatchButton/NotMatchButton.js +1 -1
  48. package/esm/components/SidePanelEmptyState/SidePanelEmptyState.d.ts +8 -0
  49. package/esm/components/SidePanelEmptyState/SidePanelEmptyState.js +14 -0
  50. package/esm/components/SidePanelEmptyState/styles.d.ts +1 -0
  51. package/esm/components/SidePanelEmptyState/styles.js +43 -0
  52. package/esm/components/charts/MapChart/MapChart.js +24 -21
  53. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +3 -1
  54. package/esm/components/history/ContributorsPanel/styles.js +0 -1
  55. package/esm/components/history/HistoryPanelEmptyState/HistoryPanelEmptyState.d.ts +3 -0
  56. package/esm/components/history/HistoryPanelEmptyState/HistoryPanelEmptyState.js +5 -0
  57. package/esm/components/history/HistoryView/styles.js +2 -1
  58. package/esm/components/history/index.d.ts +1 -0
  59. package/esm/components/history/index.js +1 -0
  60. package/esm/components/index.d.ts +1 -0
  61. package/esm/components/index.js +1 -0
  62. package/esm/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.js +2 -1
  63. package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +10 -8
  64. package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +4 -3
  65. package/esm/contexts/RelatedObjectUrisContext/index.d.ts +2 -0
  66. package/esm/contexts/RelatedObjectUrisContext/index.js +3 -0
  67. package/esm/contexts/index.d.ts +1 -0
  68. package/esm/contexts/index.js +1 -0
  69. package/esm/hooks/useCollaboration.d.ts +7 -1
  70. package/esm/hooks/useCollaboration.js +9 -9
  71. package/esm/icons/AttributesList.d.ts +3 -0
  72. package/esm/icons/AttributesList.js +53 -0
  73. package/esm/icons/MergeDark.d.ts +3 -0
  74. package/esm/icons/MergeDark.js +22 -0
  75. package/esm/icons/NotMatchDark.d.ts +3 -0
  76. package/esm/icons/NotMatchDark.js +22 -0
  77. package/esm/icons/index.d.ts +4 -3
  78. package/esm/icons/index.js +4 -3
  79. package/package.json +3 -3
@@ -0,0 +1,58 @@
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 SvgAttributesList = function (props) {
19
+ return (react_1.default.createElement("svg", __assign({ width: 256, height: 256, viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
20
+ react_1.default.createElement("circle", { cx: 128, cy: 128, r: 128, fill: "#0072CE", fillOpacity: 0.1 }),
21
+ react_1.default.createElement("mask", { id: "AttributesList_svg__a", style: {
22
+ maskType: 'alpha'
23
+ }, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 256, height: 256 },
24
+ react_1.default.createElement("circle", { cx: 128, cy: 128, r: 128, fill: "#fff" })),
25
+ react_1.default.createElement("g", { mask: "url(#AttributesList_svg__a)" },
26
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-16 9h256v247H-16V9z", fill: "url(#AttributesList_svg__b)" }),
27
+ react_1.default.createElement("path", { opacity: 0.05, fillRule: "evenodd", clipRule: "evenodd", d: "M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z", fill: "url(#AttributesList_svg__c)" }),
28
+ react_1.default.createElement("path", { opacity: 0.06, fillRule: "evenodd", clipRule: "evenodd", d: "M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z", fill: "#000" }),
29
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z", fill: "#fff" }),
30
+ react_1.default.createElement("path", { opacity: 0.8, fillRule: "evenodd", clipRule: "evenodd", d: "M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z", fill: "#B6C7DB" }),
31
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z", fill: "#979797" }),
32
+ react_1.default.createElement("path", { opacity: 0.8, fillRule: "evenodd", clipRule: "evenodd", d: "M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z", fill: "#B6C7DB" }),
33
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z", fill: "#979797" }),
34
+ react_1.default.createElement("path", { opacity: 0.8, fillRule: "evenodd", clipRule: "evenodd", d: "M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z", fill: "#B6C7DB" }),
35
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z", fill: "#979797" }),
36
+ react_1.default.createElement("path", { opacity: 0.8, fillRule: "evenodd", clipRule: "evenodd", d: "M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z", fill: "#B6C7DB" }),
37
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z", fill: "#979797" }),
38
+ react_1.default.createElement("circle", { cx: 67, cy: 79, r: 9, fill: "#B6C7DB" }),
39
+ react_1.default.createElement("circle", { cx: 67, cy: 79, r: 9, fill: "#B6C7DB" }),
40
+ react_1.default.createElement("circle", { cx: 120, cy: 106, r: 6, fill: "#B6C7DB" }),
41
+ react_1.default.createElement("circle", { cx: 120, cy: 136, r: 6, fill: "#B6C7DB" }),
42
+ react_1.default.createElement("circle", { cx: 67, cy: 169, r: 9, fill: "#B6C7DB" }),
43
+ react_1.default.createElement("circle", { cx: 67, cy: 199, r: 9, fill: "#B6C7DB" }),
44
+ react_1.default.createElement("path", { opacity: 0.8, fillRule: "evenodd", clipRule: "evenodd", d: "M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z", fill: "#B6C7DB" }),
45
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z", fill: "#979797" }),
46
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z", fill: "#2B98F0" }),
47
+ react_1.default.createElement("path", { opacity: 0.54, fillRule: "evenodd", clipRule: "evenodd", d: "M95.071 77l-3.535 3.535L88 77h7.071z", fill: "#000" }),
48
+ react_1.default.createElement("path", { opacity: 0.6, fillRule: "evenodd", clipRule: "evenodd", d: "M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z", fill: "#fff" }),
49
+ react_1.default.createElement("path", { opacity: 0.2, fillRule: "evenodd", clipRule: "evenodd", d: "M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z", fill: "#979797" })),
50
+ react_1.default.createElement("defs", null,
51
+ react_1.default.createElement("linearGradient", { id: "AttributesList_svg__b", x1: -16, y1: 9, x2: -16, y2: 256, gradientUnits: "userSpaceOnUse" },
52
+ react_1.default.createElement("stop", { stopColor: "#FAFAFA", stopOpacity: 0.01 }),
53
+ react_1.default.createElement("stop", { offset: 1, stopColor: "#F4F4F4" })),
54
+ react_1.default.createElement("linearGradient", { id: "AttributesList_svg__c", x1: 266.117, y1: 181.111, x2: 154.882, y2: 77.681, gradientUnits: "userSpaceOnUse" },
55
+ react_1.default.createElement("stop", { stopOpacity: 0.01 }),
56
+ react_1.default.createElement("stop", { offset: 1 })))));
57
+ };
58
+ exports.default = SvgAttributesList;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgMergeDark: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgMergeDark;
@@ -0,0 +1,27 @@
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 SvgMergeDark = 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: "M17.045 20.455l1.41-1.41-3.41-3.41-1.41 1.41 3.41 3.41zm-9.5-12.41h3.5v5.59l-5.41 5.41 1.41 1.41 6-6v-6.41h3.5l-4.5-4.5-4.5 4.5z", id: "MergeDark_svg__a" })),
22
+ react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" },
23
+ react_1.default.createElement("mask", { id: "MergeDark_svg__b", fill: "#fff" },
24
+ react_1.default.createElement("use", { xlinkHref: "#MergeDark_svg__a", transform: "rotate(90 12.045 12)" })),
25
+ react_1.default.createElement("path", { fillOpacity: 0.54, fill: "#000", mask: "url(#MergeDark_svg__b)", d: "M0 0h24v24H0z" }))));
26
+ };
27
+ exports.default = SvgMergeDark;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgNotMatchDark: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgNotMatchDark;
@@ -0,0 +1,27 @@
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 SvgNotMatchDark = 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: "M17 13.138l4.5 4.5-4.5 4.5V18.5h-1.247l-3.488-3.479 1.413-1.414 2.901 2.893H17v-3.362zM17 1.5L21.5 6 17 10.5V7.138h-.421l-11.03 11H2v-2h2.723l11.03-11H17V1.5zm-11.45 4l3.294 3.286-1.414 1.413L4.723 7.5H2v-2h3.55z", id: "NotMatchDark_svg__a" })),
22
+ react_1.default.createElement("g", { stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd" },
23
+ react_1.default.createElement("mask", { id: "NotMatchDark_svg__b", fill: "#fff" },
24
+ react_1.default.createElement("use", { xlinkHref: "#NotMatchDark_svg__a" })),
25
+ react_1.default.createElement("path", { fillOpacity: 0.54, fill: "#000", mask: "url(#NotMatchDark_svg__b)", d: "M0 0h24v24H0z" }))));
26
+ };
27
+ exports.default = SvgNotMatchDark;
@@ -1,5 +1,6 @@
1
1
  export { default as Add } from './Add';
2
2
  export { default as AddComment } from './AddComment';
3
+ export { default as AttributesList } from './AttributesList';
3
4
  export { default as Calendar } from './Calendar';
4
5
  export { default as CollaborationIcon } from './CollaborationIcon';
5
6
  export { default as Comment } from './Comment';
@@ -20,17 +21,17 @@ export { default as Ignored } from './Ignored';
20
21
  export { default as IgnoredOutlined } from './IgnoredOutlined';
21
22
  export { default as LogIn } from './LogIn';
22
23
  export { default as LogOut } from './LogOut';
23
- export { default as MlMatch } from './MlMatch';
24
24
  export { default as Merge } from './Merge';
25
+ export { default as MlMatch } from './MlMatch';
25
26
  export { default as NestedAttribute } from './NestedAttribute';
26
27
  export { default as NoData } from './NoData';
27
28
  export { default as NoDataSearch } from './NoDataSearch';
28
29
  export { default as NoMatches } from './NoMatches';
29
- export { default as PmIcon } from './PmIcon';
30
- export { default as PmTaskIcon } from './PmTaskIcon';
31
30
  export { default as Pin } from './Pin';
32
31
  export { default as PinOutlined } from './PinOutlined';
33
32
  export { default as PivotingIcon } from './PivotingIcon';
33
+ export { default as PmIcon } from './PmIcon';
34
+ export { default as PmTaskIcon } from './PmTaskIcon';
34
35
  export { default as Polygon } from './Polygon';
35
36
  export { default as PotentialMatch } from './PotentialMatch';
36
37
  export { default as Profile } from './Profile';
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UploadIcon = exports.UnMerge = exports.Table = exports.SimpleAttribute = exports.SelectAttributes = exports.Search = exports.ResizeIconInline = exports.Remove = exports.ReferenceAttribute = exports.Recommended = exports.Radius = exports.Profile = exports.PotentialMatch = exports.Polygon = exports.PivotingIcon = exports.PinOutlined = exports.Pin = exports.PmTaskIcon = exports.PmIcon = exports.NoMatches = exports.NoDataSearch = exports.NoData = exports.NestedAttribute = exports.Merge = exports.MlMatch = exports.LogOut = exports.LogIn = exports.IgnoredOutlined = exports.Ignored = exports.Filter = exports.Error = exports.EmptySearchResults = exports.Draw = exports.Download = exports.Details = exports.DeleteRequestTaskIcon = exports.DefaultTaskIcon = exports.DefaultImage = exports.DcrTaskIcon = exports.Create = exports.Copy = exports.CommentBubble = exports.Comment = exports.CollaborationIcon = exports.Calendar = exports.AddComment = exports.Add = void 0;
6
+ exports.UploadIcon = exports.UnMerge = exports.Table = exports.SimpleAttribute = exports.SelectAttributes = exports.Search = exports.ResizeIconInline = exports.Remove = exports.ReferenceAttribute = exports.Recommended = exports.Radius = exports.Profile = exports.PotentialMatch = exports.Polygon = exports.PmTaskIcon = exports.PmIcon = exports.PivotingIcon = exports.PinOutlined = exports.Pin = exports.NoMatches = exports.NoDataSearch = exports.NoData = exports.NestedAttribute = exports.MlMatch = exports.Merge = exports.LogOut = exports.LogIn = exports.IgnoredOutlined = exports.Ignored = exports.Filter = exports.Error = exports.EmptySearchResults = exports.Draw = exports.Download = exports.Details = exports.DeleteRequestTaskIcon = exports.DefaultTaskIcon = exports.DefaultImage = exports.DcrTaskIcon = exports.Create = exports.Copy = exports.CommentBubble = exports.Comment = exports.CollaborationIcon = exports.Calendar = exports.AttributesList = exports.AddComment = exports.Add = void 0;
7
7
  var Add_1 = require("./Add");
8
8
  Object.defineProperty(exports, "Add", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
9
9
  var AddComment_1 = require("./AddComment");
10
10
  Object.defineProperty(exports, "AddComment", { enumerable: true, get: function () { return __importDefault(AddComment_1).default; } });
11
+ var AttributesList_1 = require("./AttributesList");
12
+ Object.defineProperty(exports, "AttributesList", { enumerable: true, get: function () { return __importDefault(AttributesList_1).default; } });
11
13
  var Calendar_1 = require("./Calendar");
12
14
  Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return __importDefault(Calendar_1).default; } });
13
15
  var CollaborationIcon_1 = require("./CollaborationIcon");
@@ -48,10 +50,10 @@ var LogIn_1 = require("./LogIn");
48
50
  Object.defineProperty(exports, "LogIn", { enumerable: true, get: function () { return __importDefault(LogIn_1).default; } });
49
51
  var LogOut_1 = require("./LogOut");
50
52
  Object.defineProperty(exports, "LogOut", { enumerable: true, get: function () { return __importDefault(LogOut_1).default; } });
51
- var MlMatch_1 = require("./MlMatch");
52
- Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
53
53
  var Merge_1 = require("./Merge");
54
54
  Object.defineProperty(exports, "Merge", { enumerable: true, get: function () { return __importDefault(Merge_1).default; } });
55
+ var MlMatch_1 = require("./MlMatch");
56
+ Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
55
57
  var NestedAttribute_1 = require("./NestedAttribute");
56
58
  Object.defineProperty(exports, "NestedAttribute", { enumerable: true, get: function () { return __importDefault(NestedAttribute_1).default; } });
57
59
  var NoData_1 = require("./NoData");
@@ -60,16 +62,16 @@ var NoDataSearch_1 = require("./NoDataSearch");
60
62
  Object.defineProperty(exports, "NoDataSearch", { enumerable: true, get: function () { return __importDefault(NoDataSearch_1).default; } });
61
63
  var NoMatches_1 = require("./NoMatches");
62
64
  Object.defineProperty(exports, "NoMatches", { enumerable: true, get: function () { return __importDefault(NoMatches_1).default; } });
63
- var PmIcon_1 = require("./PmIcon");
64
- Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
65
- var PmTaskIcon_1 = require("./PmTaskIcon");
66
- Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
67
65
  var Pin_1 = require("./Pin");
68
66
  Object.defineProperty(exports, "Pin", { enumerable: true, get: function () { return __importDefault(Pin_1).default; } });
69
67
  var PinOutlined_1 = require("./PinOutlined");
70
68
  Object.defineProperty(exports, "PinOutlined", { enumerable: true, get: function () { return __importDefault(PinOutlined_1).default; } });
71
69
  var PivotingIcon_1 = require("./PivotingIcon");
72
70
  Object.defineProperty(exports, "PivotingIcon", { enumerable: true, get: function () { return __importDefault(PivotingIcon_1).default; } });
71
+ var PmIcon_1 = require("./PmIcon");
72
+ Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
73
+ var PmTaskIcon_1 = require("./PmTaskIcon");
74
+ Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
73
75
  var Polygon_1 = require("./Polygon");
74
76
  Object.defineProperty(exports, "Polygon", { enumerable: true, get: function () { return __importDefault(Polygon_1).default; } });
75
77
  var PotentialMatch_1 = require("./PotentialMatch");
@@ -10,6 +10,7 @@ import { Avatar } from '../Avatar/Avatar';
10
10
  import { CollaborationContext } from '../../../contexts';
11
11
  import { useStyles } from './styles';
12
12
  import { always, cond, T } from 'ramda';
13
+ import { useSafePromise } from '../../../hooks';
13
14
  var getPlaceholder = function (status) {
14
15
  switch (status) {
15
16
  case 'open':
@@ -38,6 +39,7 @@ export var SendMessageArea = function (_a) {
38
39
  var _d = useState(''), plainTextValue = _d[0], setPlainTextValue = _d[1];
39
40
  var _e = useState([]), mentions = _e[0], setMentions = _e[1];
40
41
  var _f = useState(false), focused = _f[0], setFocused = _f[1];
42
+ var safePromise = useSafePromise();
41
43
  var hasValue = value.trim() !== '';
42
44
  var shouldShowButtons = focused || hasValue;
43
45
  var status = comment === null || comment === void 0 ? void 0 : comment.status;
@@ -98,7 +100,7 @@ export var SendMessageArea = function (_a) {
98
100
  }
99
101
  ]
100
102
  ]);
101
- return request().then(clearValue).catch(console.log); //eslint-disable-line no-console
103
+ return safePromise(request()).then(clearValue).catch(console.log); //eslint-disable-line no-console
102
104
  };
103
105
  useEffect(function () {
104
106
  if (popperRef) {
@@ -1,8 +1,13 @@
1
- import React, { useContext, useState } from 'react';
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
2
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
3
+ to[j] = from[i];
4
+ return to;
5
+ };
6
+ import React, { useContext, useMemo, useState } from 'react';
2
7
  import classnames from 'classnames';
3
8
  import { useStyles } from './styles';
4
9
  import { useDidUpdateEffect } from '../../hooks';
5
- import { CollaborationContext } from '../../contexts';
10
+ import { CollaborationContext, RelatedObjectUrisContext } from '../../contexts';
6
11
  import CommentButton from './buttons/CommentButton';
7
12
  import AddCommentButton from './buttons/AddCommentButton';
8
13
  import { CollaborationPopup } from '../CollaborationPopup/CollaborationPopup';
@@ -39,6 +44,10 @@ var CommentsContainer = function (_a) {
39
44
  onChangePopupVisibility(isOpenPopup);
40
45
  }
41
46
  }, [isOpenPopup]);
47
+ var additionalRelatedObjectUris = useContext(RelatedObjectUrisContext);
48
+ var allRelatedObjectUris = useMemo(function () {
49
+ return additionalRelatedObjectUris ? __spreadArray(__spreadArray([], relatedObjectUris), additionalRelatedObjectUris) : relatedObjectUris;
50
+ }, [additionalRelatedObjectUris, relatedObjectUris]);
42
51
  return (showComments && (React.createElement("div", { className: classnames(styles.root, className) },
43
52
  shouldShowAddCommentButton && (React.createElement(AddCommentButton, { className: classnames(styles.addButton, (_b = {},
44
53
  _b[styles.showAlways] = showAlways || isOpenPopupWithNewComment,
@@ -47,6 +56,6 @@ var CommentsContainer = function (_a) {
47
56
  var replies = _a.replies, commentId = _a.commentId;
48
57
  return (React.createElement(CommentButton, { ref: commentId === (currentComment === null || currentComment === void 0 ? void 0 : currentComment.commentId) ? setAnchorEl : null, key: commentId, onClick: function () { return handleClickCommentButton(commentId); } }, 1 + replies));
49
58
  }),
50
- React.createElement(CollaborationPopup, { anchorEl: anchorEl, open: isOpenPopup, onClose: handleClose, uri: uri, relatedObjectUris: relatedObjectUris, objectType: objectType, comment: currentComment }))));
59
+ React.createElement(CollaborationPopup, { anchorEl: anchorEl, open: isOpenPopup, onClose: handleClose, uri: uri, relatedObjectUris: allRelatedObjectUris, objectType: objectType, comment: currentComment }))));
51
60
  };
52
61
  export default CommentsContainer;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare type Props = {
3
3
  transparent?: boolean;
4
+ relativePosition?: boolean;
4
5
  };
5
- declare const LinearLoadIndicator: ({ transparent }: Props) => JSX.Element;
6
+ declare const LinearLoadIndicator: ({ transparent, relativePosition }: Props) => JSX.Element;
6
7
  export default LinearLoadIndicator;
@@ -4,9 +4,13 @@ import LinearProgress from '@material-ui/core/LinearProgress';
4
4
  import { useStyles } from './styles';
5
5
  var LinearLoadIndicator = function (_a) {
6
6
  var _b;
7
- var _c = _a.transparent, transparent = _c === void 0 ? false : _c;
7
+ var _c = _a.transparent, transparent = _c === void 0 ? false : _c, _d = _a.relativePosition, relativePosition = _d === void 0 ? false : _d;
8
8
  var styles = useStyles();
9
- return (React.createElement("div", { className: classnames(styles.loadingOverlay, (_b = {}, _b[styles.transparent] = transparent, _b)) },
10
- React.createElement(LinearProgress, { color: "secondary" })));
9
+ return (React.createElement(React.Fragment, null,
10
+ React.createElement("div", { className: classnames(styles.loadingOverlay, (_b = {},
11
+ _b[styles.transparent] = transparent,
12
+ _b[styles.relativePosition] = relativePosition,
13
+ _b)) },
14
+ React.createElement(LinearProgress, { color: "secondary" }))));
11
15
  };
12
16
  export default LinearLoadIndicator;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"transparent" | "loadingOverlay">;
1
+ export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"transparent" | "loadingOverlay" | "relativePosition">;
@@ -12,5 +12,10 @@ export var useStyles = makeStyles({
12
12
  },
13
13
  transparent: {
14
14
  backgroundColor: 'transparent'
15
+ },
16
+ relativePosition: {
17
+ '&$loadingOverlay': {
18
+ position: 'relative'
19
+ }
15
20
  }
16
21
  });
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import i18n from 'ui-i18n';
25
- import MergeIcon from './mergeIcon.svg';
25
+ import MergeIcon from '../../icons/MergeDark';
26
26
  import { noop } from '../../core';
27
27
  import { ActionButton, ActionButtonMode } from '../ActionButton/ActionButton';
28
28
  import { useMergeAllRequest } from '../../hooks';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { ActionButton, ActionButtonMode } from '../ActionButton/ActionButton';
24
24
  import React, { forwardRef } from 'react';
25
- import NotMatchIcon from './notMatch.svg';
25
+ import NotMatchIcon from '../../icons/NotMatchDark';
26
26
  import { noop } from '../../core';
27
27
  import i18n from 'ui-i18n';
28
28
  import { useMarkAsNotMatchRequest } from '../../hooks/useMarkAsNotMatchRequest';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ IconRenderer?: React.ElementType;
4
+ text: string;
5
+ secondaryText?: string;
6
+ };
7
+ declare const SidePanelEmptyState: ({ IconRenderer, text, secondaryText }: Props) => JSX.Element;
8
+ export default SidePanelEmptyState;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import Typography from '@material-ui/core/Typography';
3
+ import { AttributesList as AttributesListIcon } from '../../icons';
4
+ import { useStyles } from './styles';
5
+ var SidePanelEmptyState = function (_a) {
6
+ var _b = _a.IconRenderer, IconRenderer = _b === void 0 ? AttributesListIcon : _b, text = _a.text, secondaryText = _a.secondaryText;
7
+ var styles = useStyles();
8
+ return (React.createElement("div", { className: styles.root },
9
+ React.createElement(IconRenderer, { className: styles.logo }),
10
+ React.createElement("div", { className: styles.textBox },
11
+ React.createElement(Typography, { className: styles.text }, text),
12
+ secondaryText && React.createElement(Typography, { className: styles.secondaryText }, secondaryText))));
13
+ };
14
+ export default SidePanelEmptyState;
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"text" | "root" | "textBox" | "secondaryText" | "logo">;
@@ -0,0 +1,43 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+ export var useStyles = makeStyles(function (theme) { return ({
3
+ root: {
4
+ display: 'flex',
5
+ flex: '1 1 auto',
6
+ flexWrap: 'nowrap',
7
+ flexDirection: 'column',
8
+ alignItems: 'center',
9
+ justifyContent: 'center',
10
+ overflow: 'auto',
11
+ height: '100%',
12
+ minHeight: '350px',
13
+ boxSizing: 'border-box',
14
+ padding: '40px'
15
+ },
16
+ logo: {
17
+ width: '190px',
18
+ height: '190px'
19
+ },
20
+ textBox: {
21
+ display: 'flex',
22
+ flexDirection: 'column',
23
+ alignItems: 'center',
24
+ maxWidth: 400,
25
+ marginTop: '24px'
26
+ },
27
+ text: {
28
+ color: theme.palette.text.primary,
29
+ fontSize: '20px',
30
+ fontWeight: 500,
31
+ lineHeight: '23px',
32
+ textAlign: 'center'
33
+ },
34
+ secondaryText: {
35
+ color: theme.palette.text.primary,
36
+ fontSize: '14px',
37
+ fontWeight: 'normal',
38
+ lineHeight: '16px',
39
+ letterSpacing: '0.24px',
40
+ textAlign: 'center',
41
+ paddingTop: '8px'
42
+ }
43
+ }); });
@@ -11,7 +11,9 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import React, { useMemo } from 'react';
13
13
  import withPercents from '../HOCs/withPercents';
14
- import { ComposableMap, Geographies, Geography } from 'react-simple-maps';
14
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15
+ // @ts-ignore
16
+ import { Geographies, Geography, MapProvider } from 'react-simple-maps';
15
17
  import { scaleQuantize } from 'd3-scale';
16
18
  import * as d3Geo from 'd3-geo';
17
19
  import { feature } from 'topojson-client';
@@ -57,27 +59,28 @@ export var MapChart = function (_a) {
57
59
  var _d = useTooltipState(), tooltipState = _d.tooltipState, showTooltip = _d.showTooltip, hideTooltip = _d.hideTooltip;
58
60
  var clickable = useClickableStyle(onItemClick);
59
61
  return (React.createElement("div", { className: styles.mapChart, style: { width: width, height: height } },
60
- React.createElement(ComposableMap, { width: mapWidth, height: height, projection: projectionFunc },
61
- React.createElement(Geographies, { geography: geography }, function (_a) {
62
- var geographies = _a.geographies;
63
- return geographies.map(function (geo) {
64
- var geoId = geo.properties[geoIdName || 'name'];
65
- var geoLabel = geo.properties.name;
66
- var cur = data.find(function (_a) {
67
- var group = _a.group;
68
- return group === geoId;
62
+ React.createElement(MapProvider, { width: mapWidth, height: height, projection: projectionFunc, projectionConfig: {} },
63
+ React.createElement("svg", { width: mapWidth, height: height, viewBox: "0 0 " + mapWidth + " " + height, className: 'rsm-svg' },
64
+ React.createElement(Geographies, { geography: geography }, function (_a) {
65
+ var geographies = _a.geographies;
66
+ return geographies.map(function (geo) {
67
+ var geoId = geo.properties[geoIdName || 'name'];
68
+ var geoLabel = geo.properties.name;
69
+ var cur = data.find(function (_a) {
70
+ var group = _a.group;
71
+ return group === geoId;
72
+ });
73
+ return (React.createElement(Geography, { key: geo.rsmKey, geography: geo, fill: cur ? colorScale(cur.value) : '#EEE', stroke: '#FFF', className: classnames(styles.geography, clickable), onMouseEnter: function (event) {
74
+ var data = cur || { label: geoLabel, value: 0, percent: 0, group: geoId };
75
+ var mapRect = event.target.parentElement.parentElement.getBoundingClientRect();
76
+ var coordinate = {
77
+ x: event.clientX - mapRect.x,
78
+ y: event.clientY - mapRect.y
79
+ };
80
+ showTooltip(data, coordinate);
81
+ }, onMouseLeave: function () { return hideTooltip(); }, onClick: onItemClick && (function () { return onItemClick(geoId); }) }));
69
82
  });
70
- return (React.createElement(Geography, { key: geo.rsmKey, geography: geo, fill: cur ? colorScale(cur.value) : '#EEE', stroke: '#FFF', className: classnames(styles.geography, clickable), onMouseEnter: function (event) {
71
- var data = cur || { label: geoLabel, value: 0, percent: 0, group: geoId };
72
- var mapRect = event.target.parentElement.parentElement.getBoundingClientRect();
73
- var coordinate = {
74
- x: event.clientX - mapRect.x,
75
- y: event.clientY - mapRect.y
76
- };
77
- showTooltip(data, coordinate);
78
- }, onMouseLeave: function () { return hideTooltip(); }, onClick: onItemClick && (function () { return onItemClick(geoId); }) }));
79
- });
80
- })),
83
+ }))),
81
84
  showLegend && React.createElement(Legend, { width: LEGEND_WIDTH, minValue: minValue, maxValue: maxValue, colors: MAP_COLORS }),
82
85
  React.createElement(Tooltip, __assign({ viewBox: {
83
86
  x: 0,
@@ -73,7 +73,9 @@ var CrosswalkRow = function (_a) {
73
73
  React.createElement(Typography, { variant: 'body2', className: styles.labelValue, noWrap: true }, crosswalk.value))),
74
74
  expanded && (React.createElement("div", { className: styles.attributesWrapper },
75
75
  canDelete && (React.createElement("div", { className: styles.deleteCrosswalkButton },
76
- React.createElement(SmallIconButtonWithTooltip, { icon: DeleteIcon, disabled: disableDelete, onClick: function () { return setDeleteDialogOpen(true); }, size: "XS", tooltipTitle: i18n.text('Delete crosswalk'), showForDisabled: true }),
76
+ React.createElement(SmallIconButtonWithTooltip, { icon: DeleteIcon, disabled: disableDelete, onClick: function () { return setDeleteDialogOpen(true); }, size: "XS", tooltipTitle: disableDelete
77
+ ? i18n.text("You don't have permissions to delete")
78
+ : i18n.text('Delete crosswalk'), showForDisabled: true }),
77
79
  React.createElement(ConfirmDeleteDialog, { open: isDeleteDialogOpen, onConfirm: handleDeleteCrosswalk, onClose: function () { return setDeleteDialogOpen(false); } }))),
78
80
  React.createElement(CrosswalkAttributes, { crosswalk: crosswalk, canEditAttribute: !disableEdit, onEditAttribute: function (attributeName, value) {
79
81
  onEdit({
@@ -1,7 +1,6 @@
1
1
  import { makeStyles } from '@material-ui/core/styles';
2
2
  export var useStyles = makeStyles({
3
3
  root: {
4
- flex: 1,
5
4
  display: 'flex',
6
5
  flexWrap: 'wrap',
7
6
  padding: '10px 15px'
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const HistoryPanelEmptyState: () => JSX.Element;
3
+ export default HistoryPanelEmptyState;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import i18n from 'ui-i18n';
3
+ import SidePanelEmptyState from '../../SidePanelEmptyState/SidePanelEmptyState';
4
+ var HistoryPanelEmptyState = function () { return (React.createElement(SidePanelEmptyState, { text: i18n.text('History in the making'), secondaryText: i18n.text('When you create an event or perform an activity, it will show up here.') })); };
5
+ export default HistoryPanelEmptyState;
@@ -4,7 +4,8 @@ export var useStyles = makeStyles({
4
4
  display: 'flex',
5
5
  flexDirection: 'column',
6
6
  overflow: 'hidden',
7
- position: 'relative'
7
+ position: 'relative',
8
+ height: '100%'
8
9
  },
9
10
  borderBottom: {
10
11
  borderBottom: '1px solid rgba(0, 0, 0, 0.12)'
@@ -4,4 +4,5 @@ export { useHistoryDiff } from './hooks/useHistoryDiff';
4
4
  export { default as HistoryView } from './HistoryView/HistoryView';
5
5
  export { default as HistoryHeader } from './HistoryHeader/HistoryHeader';
6
6
  export { default as ProfileBandHistory } from './ProfileBandHistory/ProfileBandHistory';
7
+ export { default as HistoryPanelEmptyState } from './HistoryPanelEmptyState/HistoryPanelEmptyState';
7
8
  export * from './types';
@@ -4,4 +4,5 @@ export { useHistoryDiff } from './hooks/useHistoryDiff';
4
4
  export { default as HistoryView } from './HistoryView/HistoryView';
5
5
  export { default as HistoryHeader } from './HistoryHeader/HistoryHeader';
6
6
  export { default as ProfileBandHistory } from './ProfileBandHistory/ProfileBandHistory';
7
+ export { default as HistoryPanelEmptyState } from './HistoryPanelEmptyState/HistoryPanelEmptyState';
7
8
  export * from './types';
@@ -96,6 +96,7 @@ export { default as SelectionPopup } from './SelectionPopup/SelectionPopup';
96
96
  export { default as SelectionPopupPopper } from './SelectionPopup/SelectionPopupPopper/SelectionPopupPopper';
97
97
  export { default as SelectorWithOnlyOptionAutoSelect } from './SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect';
98
98
  export { SideButtonsPanel } from './SideIconPanel/SideButtonsPanel';
99
+ export { default as SidePanelEmptyState } from './SidePanelEmptyState/SidePanelEmptyState';
99
100
  export { SidePanel } from './SidePanel/SidePanel';
100
101
  export { SidePanelContentHeader } from './SidePanel/SidePanelContentHeader/SidePanelContentHeader';
101
102
  export { default as SimpleDropDownSelector } from './SimpleDropDownSelector/SimpleDropDownSelector';
@@ -95,6 +95,7 @@ export { default as SelectionPopup } from './SelectionPopup/SelectionPopup';
95
95
  export { default as SelectionPopupPopper } from './SelectionPopup/SelectionPopupPopper/SelectionPopupPopper';
96
96
  export { default as SelectorWithOnlyOptionAutoSelect } from './SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect';
97
97
  export { SideButtonsPanel } from './SideIconPanel/SideButtonsPanel';
98
+ export { default as SidePanelEmptyState } from './SidePanelEmptyState/SidePanelEmptyState';
98
99
  export { SidePanel } from './SidePanel/SidePanel';
99
100
  export { SidePanelContentHeader } from './SidePanel/SidePanelContentHeader/SidePanelContentHeader';
100
101
  export { default as SimpleDropDownSelector } from './SimpleDropDownSelector/SimpleDropDownSelector';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import classnames from 'classnames';
3
+ import { isNil } from 'ramda';
3
4
  import ArrowRightAltIcon from '@material-ui/icons/ArrowRightAlt';
4
5
  import Chip from '@material-ui/core/Chip';
5
6
  import { getOperationLabel } from '../../helpers/helpers';
@@ -12,7 +13,7 @@ var ChangeView = function (_a) {
12
13
  React.createElement("span", { className: styles.fieldName },
13
14
  label,
14
15
  ":"),
15
- React.createElement("span", { className: styles.difference },
16
+ !isNil(value) && React.createElement("span", { className: styles.difference },
16
17
  value,
17
18
  newValue && oldValue && (React.createElement(React.Fragment, null,
18
19
  React.createElement(ArrowRightAltIcon, { className: styles.arrow }),
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { complement, curry, flatten, is, isEmpty, pathOr, propOr, times } from 'ramda';
13
- import { DataTypes, getAttributeTypeSubAttributes, getLabel, getRelationAttributesList, getRelationType, isSpecialAttribute } from '@reltio/mdm-sdk';
13
+ import { DataTypes, getAttributeTypeSubAttributes, getLabel, getRelationAttributesList, getRelationType, isEmptyValue, isSpecialAttribute } from '@reltio/mdm-sdk';
14
14
  import { getFilteredAttrTypes } from '../../../../attributes/helpers/attributesView';
15
15
  import { getOperationType } from './helpers';
16
16
  import { DCRTypes } from '../../../constants/operations';
@@ -36,16 +36,18 @@ var getEntityChanges = curry(function (metadata, entityInfo, changes) {
36
36
  var attrTypes = getFilteredAttrTypes(metadata, entityInfo.type, [], []);
37
37
  return getAttributesList(metadata, attrTypes, changes);
38
38
  });
39
- var getRelationChanges = curry(function (metadata, relationInfo, changes) {
39
+ var getRelationChanges = curry(function (metadata, relationInfo, changes, changeType) {
40
+ var addRelationOperationIfNeeded = function (changes, changeType) {
41
+ if (changeType === DCRTypes.CREATE_RELATIONSHIP || isEmptyValue(changes)) {
42
+ var operation = getOperationType(changeType);
43
+ return operation ? { operation: operation } : {};
44
+ }
45
+ return {};
46
+ };
40
47
  var relationType = getRelationType(metadata, relationInfo.type);
41
48
  var attrTypes = getRelationAttributesList(metadata, relationInfo.type);
42
49
  return flatten([
43
- {
44
- level: 1,
45
- label: propOr('', 'label', relationType),
46
- attributeType: relationType,
47
- attributeValue: __assign(__assign({}, relationInfo), changes)
48
- },
50
+ __assign({ level: 1, label: propOr('', 'label', relationType), attributeType: relationType, attributeValue: __assign(__assign({}, relationInfo), changes) }, addRelationOperationIfNeeded(changes, changeType)),
49
51
  getAttributesList(metadata, attrTypes, changes, 2)
50
52
  ]);
51
53
  });