@reltio/components 1.4.1673 → 1.4.1675

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 (89) hide show
  1. package/cjs/components/BasicViewHeader/styles.js +1 -1
  2. package/cjs/components/ExpandableSearchInput/ExpandableSearchInput.js +1 -1
  3. package/cjs/components/ExpandableSearchInput/styles.d.ts +1 -1
  4. package/cjs/components/ExpandableSearchInput/styles.js +5 -4
  5. package/cjs/components/LinearLoadIndicator/styles.js +1 -2
  6. package/cjs/components/RelationEditor/RelationEditor.d.ts +11 -4
  7. package/cjs/components/RelationEditor/RelationEditor.js +2 -12
  8. package/cjs/components/RelationEditor/styles.d.ts +1 -1
  9. package/cjs/components/TableSkeleton/TableSkeleton.d.ts +9 -0
  10. package/cjs/components/TableSkeleton/TableSkeleton.js +74 -0
  11. package/cjs/components/TableSkeleton/styles.d.ts +1 -0
  12. package/cjs/components/TableSkeleton/styles.js +15 -0
  13. package/cjs/components/Title/styles.js +1 -1
  14. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -28
  15. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.js +4 -9
  16. package/cjs/components/attributes/DescriptionIcon/styles.d.ts +1 -1
  17. package/cjs/components/attributes/DescriptionIcon/styles.js +5 -19
  18. package/cjs/components/attributes/PivotingAttributes/styles.js +8 -4
  19. package/cjs/components/attributes/editMode/AttributesFactory/Attribute.js +1 -1
  20. package/cjs/components/attributes/editMode/AttributesPager/CardinalityMessage.d.ts +6 -9
  21. package/cjs/components/attributes/editMode/AttributesPager/CardinalityMessage.js +3 -6
  22. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +1 -1
  23. package/cjs/components/attributes/editMode/AttributesView/styles.d.ts +1 -1
  24. package/cjs/components/attributes/editMode/AttributesView/styles.js +1 -4
  25. package/cjs/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +1 -1
  26. package/cjs/components/attributes/editMode/MoreAttributesButton/styles.js +4 -1
  27. package/cjs/components/attributes/readMode/AttributesPager/styles.js +8 -12
  28. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +1 -1
  29. package/cjs/components/attributes/readMode/AttributesView/styles.d.ts +1 -1
  30. package/cjs/components/attributes/readMode/AttributesView/styles.js +1 -4
  31. package/cjs/components/attributes/readMode/ComplexAttribute/styles.d.ts +1 -1
  32. package/cjs/components/attributes/readMode/ComplexAttribute/styles.js +2 -2
  33. package/cjs/components/attributes/readMode/NestedAttribute/styles.d.ts +1 -1
  34. package/cjs/components/attributes/readMode/NestedAttribute/styles.js +2 -1
  35. package/cjs/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +3 -1
  36. package/cjs/components/attributes/readMode/SimpleAttribute/styles.js +1 -1
  37. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +5 -1
  38. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -1
  39. package/cjs/components/attributes/readMode/SpecialAttributes/styles.d.ts +1 -1
  40. package/cjs/components/attributes/readMode/SpecialAttributes/styles.js +3 -0
  41. package/cjs/components/index.d.ts +1 -0
  42. package/cjs/components/index.js +3 -1
  43. package/cjs/icons/index.d.ts +5 -3
  44. package/cjs/icons/index.js +12 -8
  45. package/esm/components/BasicViewHeader/styles.js +1 -1
  46. package/esm/components/ExpandableSearchInput/ExpandableSearchInput.js +1 -1
  47. package/esm/components/ExpandableSearchInput/styles.d.ts +1 -1
  48. package/esm/components/ExpandableSearchInput/styles.js +5 -4
  49. package/esm/components/LinearLoadIndicator/styles.js +1 -2
  50. package/esm/components/RelationEditor/RelationEditor.d.ts +11 -4
  51. package/esm/components/RelationEditor/RelationEditor.js +3 -13
  52. package/esm/components/RelationEditor/styles.d.ts +1 -1
  53. package/esm/components/TableSkeleton/TableSkeleton.d.ts +9 -0
  54. package/esm/components/TableSkeleton/TableSkeleton.js +44 -0
  55. package/esm/components/TableSkeleton/styles.d.ts +1 -0
  56. package/esm/components/TableSkeleton/styles.js +12 -0
  57. package/esm/components/Title/styles.js +1 -1
  58. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -28
  59. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.js +4 -8
  60. package/esm/components/attributes/DescriptionIcon/styles.d.ts +1 -1
  61. package/esm/components/attributes/DescriptionIcon/styles.js +5 -19
  62. package/esm/components/attributes/PivotingAttributes/styles.js +8 -4
  63. package/esm/components/attributes/editMode/AttributesFactory/Attribute.js +1 -1
  64. package/esm/components/attributes/editMode/AttributesPager/CardinalityMessage.d.ts +6 -9
  65. package/esm/components/attributes/editMode/AttributesPager/CardinalityMessage.js +3 -6
  66. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +1 -1
  67. package/esm/components/attributes/editMode/AttributesView/styles.d.ts +1 -1
  68. package/esm/components/attributes/editMode/AttributesView/styles.js +1 -4
  69. package/esm/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +1 -1
  70. package/esm/components/attributes/editMode/MoreAttributesButton/styles.js +4 -1
  71. package/esm/components/attributes/readMode/AttributesPager/styles.js +8 -12
  72. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +1 -1
  73. package/esm/components/attributes/readMode/AttributesView/styles.d.ts +1 -1
  74. package/esm/components/attributes/readMode/AttributesView/styles.js +1 -4
  75. package/esm/components/attributes/readMode/ComplexAttribute/styles.d.ts +1 -1
  76. package/esm/components/attributes/readMode/ComplexAttribute/styles.js +2 -2
  77. package/esm/components/attributes/readMode/NestedAttribute/styles.d.ts +1 -1
  78. package/esm/components/attributes/readMode/NestedAttribute/styles.js +2 -1
  79. package/esm/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +3 -1
  80. package/esm/components/attributes/readMode/SimpleAttribute/styles.js +1 -1
  81. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -1
  82. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -1
  83. package/esm/components/attributes/readMode/SpecialAttributes/styles.d.ts +1 -1
  84. package/esm/components/attributes/readMode/SpecialAttributes/styles.js +3 -0
  85. package/esm/components/index.d.ts +1 -0
  86. package/esm/components/index.js +1 -0
  87. package/esm/icons/index.d.ts +5 -3
  88. package/esm/icons/index.js +5 -3
  89. package/package.json +3 -3
@@ -22,8 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
29
  var react_1 = __importStar(require("react"));
30
+ var classnames_1 = __importDefault(require("classnames"));
27
31
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
28
32
  var HistoryAppearanceContext_1 = require("../../../../../contexts/HistoryAppearanceContext");
29
33
  var contexts_1 = require("../../../../../contexts");
@@ -35,6 +39,6 @@ var Role = function (_a) {
35
39
  var metadata = (0, contexts_1.useMdmMetadata)();
36
40
  var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('roles', value, appearance);
37
41
  var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
38
- return react_1.default.createElement("span", { className: styles[historyClassName] }, (0, mdm_sdk_1.getRoleLabel)(metadata, value));
42
+ return (react_1.default.createElement("span", { className: (0, classnames_1.default)(styles.attributeValue, styles[historyClassName]) }, (0, mdm_sdk_1.getRoleLabel)(metadata, value)));
39
43
  };
40
44
  exports.default = Role;
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
+ var classnames_1 = __importDefault(require("classnames"));
30
31
  var InternalLink_1 = __importDefault(require("../../../../InternalLink/InternalLink"));
31
32
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
32
33
  var contexts_1 = require("../../../../../contexts");
@@ -42,7 +43,7 @@ var Tag = function (_a) {
42
43
  var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('tags', value, appearance);
43
44
  var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
44
45
  var entity = ownEntity || currentEntity;
45
- return (react_1.default.createElement(InternalLink_1.default, { className: styles[historyClassName], href: generateTagUrl({
46
+ return (react_1.default.createElement(InternalLink_1.default, { className: (0, classnames_1.default)(styles.attributeValue, styles[historyClassName]), href: generateTagUrl({
46
47
  uiPath: uiPath,
47
48
  tag: value,
48
49
  entityUri: entity.dataTenant ? (0, mdm_sdk_1.getDataTenantEntityUri)(entity) : entity.uri
@@ -1 +1 @@
1
- export declare const useCommonStyles: (props?: any) => import("@mui/styles").ClassNameMap<"insertAttribute" | "deleteAttribute">;
1
+ export declare const useCommonStyles: (props?: any) => import("@mui/styles").ClassNameMap<"attributeValue" | "insertAttribute" | "deleteAttribute">;
@@ -15,6 +15,9 @@ exports.useCommonStyles = void 0;
15
15
  var styles_1 = require("@mui/styles");
16
16
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
17
17
  exports.useCommonStyles = (0, styles_1.makeStyles)({
18
+ attributeValue: {
19
+ verticalAlign: 'middle'
20
+ },
18
21
  insertAttribute: __assign({ width: 'fit-content' }, mdm_sdk_1.historyPalettes[mdm_sdk_1.HistoryOperations.insertAttribute]),
19
22
  deleteAttribute: __assign({ width: 'fit-content', textDecoration: 'line-through', padding: '0 4px' }, mdm_sdk_1.historyPalettes[mdm_sdk_1.HistoryOperations.deleteAttribute])
20
23
  });
@@ -153,3 +153,4 @@ export { RelevanceScoreBadge } from './RelevanceScoreBadge/RelevanceScoreBadge';
153
153
  export { default as MultilineMenuItem } from './MultilineMenuItem/MultilineMenuItem';
154
154
  export { default as TenantLabel } from './TenantLabel/TenantLabel';
155
155
  export { default as StepNavigation } from './StepNavigation/StepNavigation';
156
+ export { TableSkeleton } from './TableSkeleton/TableSkeleton';
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.EmptyState = exports.NoResults = exports.NoData = exports.DropDownSelector = exports.DropDownMenuButton = exports.Drawer = exports.DataTypeValue = exports.ConnectionRelationTypeSelector = exports.ConfigureColumnsPopup = exports.MenuWithPopper = exports.MenuList = exports.LoadMoreButton = exports.DropdownIndicatorWithIconButton = exports.DropdownIndicator = exports.CommentsContainer = exports.ColorBar = exports.CollapseButton = exports.CollaborationItem = exports.ClickAwayProvider = exports.BasicViewHeader = exports.BasicViewContent = exports.BasicView = exports.ScreenProfileBand = exports.ProfileBandNavigation = exports.AvatarWithFallback = exports.AutoSizeList = exports.ReadOnlyAttributesPager = exports.SimpleAttribute = exports.ReferenceAttribute = exports.NestedAttribute = exports.EditableImageAttributesLine = exports.ImageAttributesLine = exports.ReadOnlyAttributesList = exports.ReadOnlyAttributeValuesBlock = exports.EditableAttribute = exports.ReadOnlyAttribute = exports.CardinalityMessage = exports.AttributesPager = exports.SimpleAttributeEditor = exports.RelationTypeSelector = exports.ReferenceAttributeEditor = exports.NestedAttributeEditor = exports.MoreAttributesButton = exports.EntitySelector = exports.EntityCreator = exports.AttributesList = exports.BranchDecorator = exports.DescriptionIcon = exports.AttributesView = exports.AttributeListItem = void 0;
21
21
  exports.SelectionPopup = exports.useKeyboardNavigation = exports.WhiteSearchInput = exports.SearchInput = exports.ProfileResizablePanes = exports.ResizablePanes = exports.ReltioGridLayout = exports.ReactSortableTreeUtils = exports.ReactSortableTreeHandlers = exports.ReactSortableTree = exports.ReactSelectOptionFilters = exports.MultiSelect = exports.QueryBuilderRowsGroup = exports.QueryBuilderRow = exports.ProfileCard = exports.ProfileBand = exports.PotentialMatchReviewCard = exports.PopupWithArrow = exports.Popper = exports.MultipleInput = exports.ModeSwitcherSelect = exports.ModeSwitcher = exports.TransitiveMatchBlock = exports.SimpleMatchRulesBlock = exports.MatchRuleVariant = exports.MatchRulesBlock = exports.LoadingSpinner = exports.Link = exports.LinearLoadIndicator = exports.ImportModes = exports.ImportButton = exports.ImageGalleryDialog = exports.Highlighter = exports.HierarchicalAttributeTooltip = exports.HideOnShrink = exports.FlipCard = exports.FacetViewHeader = exports.ExpandedValueTooltip = exports.ErrorWrapper = exports.ErrorPopup = exports.AttributesErrorsPanel = exports.ErrorBoundary = exports.EntityUriLink = exports.RelationTypesSelector = exports.EntityTypesSelector = exports.EntityTypeIcon = exports.EntityTypeBadge = exports.EntityAvatar = exports.EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_ICONS = void 0;
22
22
  exports.RelevanceScoreBadge = exports.RequiredMark = exports.HierarchyNodeTitle = exports.DataTenantBadge = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = exports.DragAndDrop = exports.ConnectionEditor = exports.AttributesFiltersBuilder = exports.AttributesFiltersButton = exports.AttributeGroupIcon = exports.BasicAttributeSelector = exports.ProfilesList = exports.ActionButtonMode = exports.ActionButton = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.RelationEditor = exports.OvIcon = exports.ErrorMessage = exports.ReltioMap = exports.ConfirmDeleteDialog = exports.ConfirmationDialog = exports.Marginator = exports.LightArrowTooltip = exports.ArrowExpandButton = exports.ScrollableTabs = exports.ExpandableSearchInput = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.ColoredSourceIcon = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = exports.SideButtonsPanel = exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopupPopper = void 0;
23
- exports.StepNavigation = exports.TenantLabel = exports.MultilineMenuItem = void 0;
23
+ exports.TableSkeleton = exports.StepNavigation = exports.TenantLabel = exports.MultilineMenuItem = void 0;
24
24
  __exportStar(require("./activityLog"), exports);
25
25
  var AttributeListItem_1 = require("./AttributeListItem/AttributeListItem");
26
26
  Object.defineProperty(exports, "AttributeListItem", { enumerable: true, get: function () { return __importDefault(AttributeListItem_1).default; } });
@@ -329,3 +329,5 @@ var TenantLabel_1 = require("./TenantLabel/TenantLabel");
329
329
  Object.defineProperty(exports, "TenantLabel", { enumerable: true, get: function () { return __importDefault(TenantLabel_1).default; } });
330
330
  var StepNavigation_1 = require("./StepNavigation/StepNavigation");
331
331
  Object.defineProperty(exports, "StepNavigation", { enumerable: true, get: function () { return __importDefault(StepNavigation_1).default; } });
332
+ var TableSkeleton_1 = require("./TableSkeleton/TableSkeleton");
333
+ Object.defineProperty(exports, "TableSkeleton", { enumerable: true, get: function () { return TableSkeleton_1.TableSkeleton; } });
@@ -19,13 +19,14 @@ export { default as Duplicate } from './Duplicate';
19
19
  export { default as EmptySearchResults } from './EmptySearchResults';
20
20
  export { default as Error } from './Error';
21
21
  export { default as Filter } from './Filter';
22
+ export { default as Hyperlink } from './Hyperlink';
22
23
  export { default as Ignored } from './Ignored';
23
24
  export { default as IgnoredOutlined } from './IgnoredOutlined';
24
25
  export { default as LogIn } from './LogIn';
25
26
  export { default as LogOut } from './LogOut';
27
+ export { default as MlMatch } from './MlMatch';
26
28
  export { default as Merge } from './Merge';
27
29
  export { default as MergeDark } from './MergeDark';
28
- export { default as MlMatch } from './MlMatch';
29
30
  export { default as NegativeRuleIcon } from './NegativeRuleIcon';
30
31
  export { default as NegativeRuleTooltipIcon } from './NegativeRuleTooltipIcon';
31
32
  export { default as NestedAttribute } from './NestedAttribute';
@@ -34,11 +35,11 @@ export { default as NoDataSearch } from './NoDataSearch';
34
35
  export { default as NoMatches } from './NoMatches';
35
36
  export { default as NotMatchDark } from './NotMatchDark';
36
37
  export { default as NotMatchRule } from './NotMatchRule';
38
+ export { default as PmIcon } from './PmIcon';
39
+ export { default as PmTaskIcon } from './PmTaskIcon';
37
40
  export { default as Pin } from './Pin';
38
41
  export { default as PinOutlined } from './PinOutlined';
39
42
  export { default as PivotingIcon } from './PivotingIcon';
40
- export { default as PmIcon } from './PmIcon';
41
- export { default as PmTaskIcon } from './PmTaskIcon';
42
43
  export { default as Polygon } from './Polygon';
43
44
  export { default as PotentialMatch } from './PotentialMatch';
44
45
  export { default as Profile } from './Profile';
@@ -52,5 +53,6 @@ export { default as Search } from './Search';
52
53
  export { default as SelectAttributes } from './SelectAttributes';
53
54
  export { default as SimpleAttribute } from './SimpleAttribute';
54
55
  export { default as Table } from './Table';
56
+ export { default as Tenant } from './Tenant';
55
57
  export { default as UnMerge } from './UnMerge';
56
58
  export { default as UploadIcon } from './UploadIcon';
@@ -3,8 +3,8 @@ 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.ResizeIconInline = exports.Remove = exports.ReferenceAttribute = exports.Recommended = exports.Reassign = exports.Radius = exports.Profile = exports.PotentialMatch = exports.Polygon = exports.PmTaskIcon = exports.PmIcon = exports.PivotingIcon = exports.PinOutlined = exports.Pin = exports.NotMatchRule = exports.NotMatchDark = exports.NoMatches = exports.NoDataSearch = exports.NoData = exports.NestedAttribute = exports.NegativeRuleTooltipIcon = exports.NegativeRuleIcon = exports.MlMatch = exports.MergeDark = exports.Merge = exports.LogOut = exports.LogIn = exports.IgnoredOutlined = exports.Ignored = exports.Filter = exports.Error = exports.EmptySearchResults = exports.Duplicate = exports.Draw = exports.Download = exports.Details = exports.Description = 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
- exports.UploadIcon = exports.UnMerge = exports.Table = exports.SimpleAttribute = exports.SelectAttributes = exports.Search = void 0;
6
+ exports.Remove = exports.ReferenceAttribute = exports.Recommended = exports.Reassign = exports.Radius = exports.Profile = exports.PotentialMatch = exports.Polygon = exports.PivotingIcon = exports.PinOutlined = exports.Pin = exports.PmTaskIcon = exports.PmIcon = exports.NotMatchRule = exports.NotMatchDark = exports.NoMatches = exports.NoDataSearch = exports.NoData = exports.NestedAttribute = exports.NegativeRuleTooltipIcon = exports.NegativeRuleIcon = exports.MergeDark = exports.Merge = exports.MlMatch = exports.LogOut = exports.LogIn = exports.IgnoredOutlined = exports.Ignored = exports.Hyperlink = exports.Filter = exports.Error = exports.EmptySearchResults = exports.Duplicate = exports.Draw = exports.Download = exports.Details = exports.Description = 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
+ exports.UploadIcon = exports.UnMerge = exports.Tenant = exports.Table = exports.SimpleAttribute = exports.SelectAttributes = exports.Search = exports.ResizeIconInline = void 0;
8
8
  var Add_1 = require("./Add");
9
9
  Object.defineProperty(exports, "Add", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
10
10
  var AddComment_1 = require("./AddComment");
@@ -47,6 +47,8 @@ var Error_1 = require("./Error");
47
47
  Object.defineProperty(exports, "Error", { enumerable: true, get: function () { return __importDefault(Error_1).default; } });
48
48
  var Filter_1 = require("./Filter");
49
49
  Object.defineProperty(exports, "Filter", { enumerable: true, get: function () { return __importDefault(Filter_1).default; } });
50
+ var Hyperlink_1 = require("./Hyperlink");
51
+ Object.defineProperty(exports, "Hyperlink", { enumerable: true, get: function () { return __importDefault(Hyperlink_1).default; } });
50
52
  var Ignored_1 = require("./Ignored");
51
53
  Object.defineProperty(exports, "Ignored", { enumerable: true, get: function () { return __importDefault(Ignored_1).default; } });
52
54
  var IgnoredOutlined_1 = require("./IgnoredOutlined");
@@ -55,12 +57,12 @@ var LogIn_1 = require("./LogIn");
55
57
  Object.defineProperty(exports, "LogIn", { enumerable: true, get: function () { return __importDefault(LogIn_1).default; } });
56
58
  var LogOut_1 = require("./LogOut");
57
59
  Object.defineProperty(exports, "LogOut", { enumerable: true, get: function () { return __importDefault(LogOut_1).default; } });
60
+ var MlMatch_1 = require("./MlMatch");
61
+ Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
58
62
  var Merge_1 = require("./Merge");
59
63
  Object.defineProperty(exports, "Merge", { enumerable: true, get: function () { return __importDefault(Merge_1).default; } });
60
64
  var MergeDark_1 = require("./MergeDark");
61
65
  Object.defineProperty(exports, "MergeDark", { enumerable: true, get: function () { return __importDefault(MergeDark_1).default; } });
62
- var MlMatch_1 = require("./MlMatch");
63
- Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
64
66
  var NegativeRuleIcon_1 = require("./NegativeRuleIcon");
65
67
  Object.defineProperty(exports, "NegativeRuleIcon", { enumerable: true, get: function () { return __importDefault(NegativeRuleIcon_1).default; } });
66
68
  var NegativeRuleTooltipIcon_1 = require("./NegativeRuleTooltipIcon");
@@ -77,16 +79,16 @@ var NotMatchDark_1 = require("./NotMatchDark");
77
79
  Object.defineProperty(exports, "NotMatchDark", { enumerable: true, get: function () { return __importDefault(NotMatchDark_1).default; } });
78
80
  var NotMatchRule_1 = require("./NotMatchRule");
79
81
  Object.defineProperty(exports, "NotMatchRule", { enumerable: true, get: function () { return __importDefault(NotMatchRule_1).default; } });
82
+ var PmIcon_1 = require("./PmIcon");
83
+ Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
84
+ var PmTaskIcon_1 = require("./PmTaskIcon");
85
+ Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
80
86
  var Pin_1 = require("./Pin");
81
87
  Object.defineProperty(exports, "Pin", { enumerable: true, get: function () { return __importDefault(Pin_1).default; } });
82
88
  var PinOutlined_1 = require("./PinOutlined");
83
89
  Object.defineProperty(exports, "PinOutlined", { enumerable: true, get: function () { return __importDefault(PinOutlined_1).default; } });
84
90
  var PivotingIcon_1 = require("./PivotingIcon");
85
91
  Object.defineProperty(exports, "PivotingIcon", { enumerable: true, get: function () { return __importDefault(PivotingIcon_1).default; } });
86
- var PmIcon_1 = require("./PmIcon");
87
- Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
88
- var PmTaskIcon_1 = require("./PmTaskIcon");
89
- Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
90
92
  var Polygon_1 = require("./Polygon");
91
93
  Object.defineProperty(exports, "Polygon", { enumerable: true, get: function () { return __importDefault(Polygon_1).default; } });
92
94
  var PotentialMatch_1 = require("./PotentialMatch");
@@ -113,6 +115,8 @@ var SimpleAttribute_1 = require("./SimpleAttribute");
113
115
  Object.defineProperty(exports, "SimpleAttribute", { enumerable: true, get: function () { return __importDefault(SimpleAttribute_1).default; } });
114
116
  var Table_1 = require("./Table");
115
117
  Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
118
+ var Tenant_1 = require("./Tenant");
119
+ Object.defineProperty(exports, "Tenant", { enumerable: true, get: function () { return __importDefault(Tenant_1).default; } });
116
120
  var UnMerge_1 = require("./UnMerge");
117
121
  Object.defineProperty(exports, "UnMerge", { enumerable: true, get: function () { return __importDefault(UnMerge_1).default; } });
118
122
  var UploadIcon_1 = require("./UploadIcon");
@@ -7,7 +7,7 @@ export var useStyles = makeStyles({
7
7
  },
8
8
  title: {
9
9
  fontSize: '18px',
10
- minWidth: '50px',
10
+ minWidth: '20px',
11
11
  fontWeight: 'normal',
12
12
  lineHeight: 'inherit',
13
13
  whiteSpace: 'nowrap',
@@ -19,6 +19,6 @@ export var ExpandableSearchInput = function (_a) {
19
19
  var styles = useStyles();
20
20
  return isOpen ? (React.createElement(Input, { className: styles.input, value: value, autoFocus: true, placeholder: i18n.text('Search'), disableUnderline: true, onChange: pipe(getValue, setValue), startAdornment: React.createElement(InputAdornment, { position: "start" },
21
21
  React.createElement(SearchIcon, { className: styles.startAdornment })), endAdornment: React.createElement(InputAdornment, { position: "end" },
22
- React.createElement(SmallIconButton, { size: "S", icon: CloseIcon, onClick: pipe(F, setIsOpen, always(''), tap(onChange), setValue) })), onKeyPress: when(propEq('key', 'Enter'), pipe(always(value), trim, onChange)) })) : (React.createElement(IconButton, { className: styles.searchButton, onClick: pipe(T, setIsOpen), size: "large" },
22
+ React.createElement(SmallIconButton, { size: "S", icon: CloseIcon, className: styles.endAdornment, onClick: pipe(F, setIsOpen, always(''), tap(onChange), setValue) })), onKeyPress: when(propEq('key', 'Enter'), pipe(always(value), trim, onChange)) })) : (React.createElement(IconButton, { className: styles.searchButton, onClick: pipe(T, setIsOpen), size: "large" },
23
23
  React.createElement(SearchIcon, null)));
24
24
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"input" | "startAdornment" | "searchButton">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"input" | "endAdornment" | "startAdornment" | "searchButton">;
@@ -1,14 +1,12 @@
1
1
  import { makeStyles } from '@mui/styles';
2
2
  export var useStyles = makeStyles({
3
3
  searchButton: {
4
- marginLeft: 'auto !important',
5
- marginRight: '-4px',
6
4
  padding: '8px'
7
5
  },
8
6
  input: {
9
7
  maxWidth: '350px',
10
- flex: '1 0 200px',
11
- marginLeft: '20px',
8
+ flex: '1 1',
9
+ minWidth: '160px',
12
10
  fontSize: '14px',
13
11
  background: 'rgba(0,0,0,0.03) 2px',
14
12
  padding: '4px 0',
@@ -17,5 +15,8 @@ export var useStyles = makeStyles({
17
15
  startAdornment: {
18
16
  color: 'rgba(0,0,0,0.54)',
19
17
  paddingLeft: '8px'
18
+ },
19
+ endAdornment: {
20
+ marginRight: '4px'
20
21
  }
21
22
  });
@@ -6,9 +6,8 @@ export var useStyles = makeStyles({
6
6
  height: '100%',
7
7
  top: 0,
8
8
  left: 0,
9
- opacity: 0.37,
10
9
  zIndex: 10,
11
- backgroundColor: '#fff'
10
+ backgroundColor: 'rgba(255, 255, 255, 0.37)'
12
11
  },
13
12
  transparent: {
14
13
  backgroundColor: 'transparent'
@@ -1,5 +1,12 @@
1
- declare const _default: React.ComponentType<{
2
- [x: string]: unknown;
3
- }>;
4
- export default _default;
5
1
  import React from 'react';
2
+ import { Connection, RelationsViewConfig, Mode, Metadata } from '@reltio/mdm-sdk';
3
+ import { ScrollToElementContext } from '../../contexts';
4
+ type Props = {
5
+ connection: Connection;
6
+ config: RelationsViewConfig;
7
+ mode: Mode;
8
+ metadata: Metadata;
9
+ highlightedError?: React.ContextType<typeof ScrollToElementContext>;
10
+ };
11
+ declare const _default: React.ComponentType<Props>;
12
+ export default _default;
@@ -11,13 +11,11 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import React, { useCallback, useEffect, useMemo, useRef } from 'react';
13
13
  import i18n from 'ui-i18n';
14
- import PropTypes from 'prop-types';
15
14
  import classnames from 'classnames';
16
15
  import { always, concat, differenceWith, equals, forEach, omit, path, pick, pipe, prop, when, uniq, curry } from 'ramda';
17
16
  import Button from '@mui/material/Button';
18
- import Divider from '@mui/material/Divider';
19
17
  import Typography from '@mui/material/Typography';
20
- import { ConnectionType, createTemporaryEntity, findRelatedTemporaryEntities, getActivenessAttributes, getCreatableAttributeTypes, getEntityType, getErrorMessage, getErrorId, MetadataType, omitMarks, relationEditorAttributeTypesSelectionStrategy, RelationsConfigType, validateConnection, updateConnectionEntityLabel, isTempUri, isEmptyValue, getRelationAttributesList, getDefaultRelationTypeObject, getInOutRelations, isSuggestMode, isAttributeTypeError, getRelationUriFromConnection, getRelationEditorActiveError, getRelationAttributesFromConnection, getEntityUriFromConnection } from '@reltio/mdm-sdk';
18
+ import { createTemporaryEntity, findRelatedTemporaryEntities, getActivenessAttributes, getCreatableAttributeTypes, getEntityType, getErrorMessage, getErrorId, omitMarks, relationEditorAttributeTypesSelectionStrategy, validateConnection, updateConnectionEntityLabel, isTempUri, isEmptyValue, getRelationAttributesList, getDefaultRelationTypeObject, getInOutRelations, isSuggestMode, isAttributeTypeError, getRelationUriFromConnection, getRelationEditorActiveError, getRelationAttributesFromConnection, getEntityUriFromConnection } from '@reltio/mdm-sdk';
21
19
  import ConnectionRelationTypeSelector from '../ConnectionRelationTypeSelector/ConnectionRelationTypeSelector';
22
20
  import ErrorWrapper from '../ErrorWrapper/ErrorWrapper';
23
21
  import EntitySelector from '../attributes/editMode/EntitySelector/EntitySelector';
@@ -175,18 +173,10 @@ var RelationEditor = function (_a) {
175
173
  _b[styles.dense] = errorMessage ||
176
174
  (connection.entity && isTempUri(connection.entity.entityUri)),
177
175
  _b)), entity: connection.entity || {}, entityTypesUris: getEntityTypesUris() || [], max: config.max || 20, globalSearchRequestOptions: globalSearchRequestOptions, mode: mode, onChange: onChangeEntity, onCreate: isSuggestMode(mode) ? undefined : onCreateEntity, metadata: metadata, attributeTypesSelectionStrategy: relationEditorAttributeTypesSelectionStrategy }))),
178
- React.createElement(AttributesList, { className: styles.item, attrTypes: firstLevelRelationAttrTypes, entity: attributeListEntity, showEmptyEditors: true, crosswalks: connection.crosswalks, mode: mode, parentUri: relationUri, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })))),
176
+ React.createElement(AttributesList, { className: styles.item, attrTypes: firstLevelRelationAttrTypes, entity: attributeListEntity, showEmptyEditors: true, mode: mode, parentUri: relationUri, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })))),
179
177
  React.createElement("div", { className: styles.actionButtons },
180
178
  React.createElement(Button, { onClick: onCancel }, i18n.text('Cancel')),
181
- React.createElement(Button, { color: "primary", disabled: !hasChanges, onClick: onApply }, i18n.text('Apply'))),
182
- React.createElement(Divider, null)));
183
- };
184
- RelationEditor.propTypes = {
185
- connection: ConnectionType,
186
- config: RelationsConfigType,
187
- mode: PropTypes.string,
188
- metadata: MetadataType,
189
- highlightedError: PropTypes.object
179
+ React.createElement(Button, { color: "primary", disabled: !hasChanges, onClick: onApply }, i18n.text('Apply')))));
190
180
  };
191
181
  export default withContext(ScrollToElementContext, function (contextValue, _a) {
192
182
  var connection = _a.connection;
@@ -1 +1 @@
1
- export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "item" | "dense" | "editor" | "actionButtons">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "item" | "dense" | "editor" | "actionButtons">;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { BasicTable } from '../BasicTableView';
3
+ import { ColumnData, RenderRowCellProps } from '../BasicTableView/types';
4
+ type Props = Omit<React.ComponentProps<typeof BasicTable>, 'rowsData' | 'renderRowCell'> & {
5
+ tableColumnsData: ColumnData[];
6
+ RowCellRenderer?: (props: RenderRowCellProps) => JSX.Element;
7
+ };
8
+ export declare const TableSkeleton: ({ tableColumnsData, RowCellRenderer, ...props }: Props) => JSX.Element;
9
+ export {};
@@ -0,0 +1,44 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { useMemo } from 'react';
24
+ import Skeleton from '@mui/material/Skeleton';
25
+ import { BasicTable } from '../BasicTableView';
26
+ import { useStyles } from './styles';
27
+ var MAX_HEIGHT = 477;
28
+ var DefaultRowCellRenderer = function () {
29
+ var styles = useStyles();
30
+ return React.createElement(Skeleton, { className: styles.rowSkeleton });
31
+ };
32
+ export var TableSkeleton = function (_a) {
33
+ var tableColumnsData = _a.tableColumnsData, RowCellRenderer = _a.RowCellRenderer, props = __rest(_a, ["tableColumnsData", "RowCellRenderer"]);
34
+ var styles = useStyles();
35
+ var tableRowsData = useMemo(function () {
36
+ var entries = tableColumnsData.map(function (column) { return [column.id, []]; });
37
+ var skeletonRow = Object.fromEntries(entries);
38
+ return [__assign(__assign({}, skeletonRow), { value: { label: '', value: {}, uri: 'skeleton' } })];
39
+ }, [tableColumnsData]);
40
+ var renderRowCell = function (props) {
41
+ return RowCellRenderer ? React.createElement(RowCellRenderer, __assign({}, props)) : React.createElement(DefaultRowCellRenderer, null);
42
+ };
43
+ return (React.createElement(BasicTable, __assign({ autosizing: true, containerClassName: styles.container, columnsData: tableColumnsData, rowsData: tableRowsData, defaultColumnMinWidth: 200, defaultColumnWidth: 250, headRowHeight: 48, renderRowCell: renderRowCell, maxHeight: MAX_HEIGHT }, props)));
44
+ };
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"container" | "rowSkeleton">;
@@ -0,0 +1,12 @@
1
+ import { makeStyles } from '@mui/styles';
2
+ export var useStyles = makeStyles({
3
+ container: {
4
+ '&:last-child > div > div > div': {
5
+ overflow: 'hidden!important'
6
+ }
7
+ },
8
+ rowSkeleton: {
9
+ margin: '15px 25px',
10
+ width: '40%'
11
+ }
12
+ });
@@ -3,6 +3,6 @@ export var useStyles = makeStyles({
3
3
  label: {
4
4
  color: 'rgba(0,0,0,0.6)',
5
5
  fontSize: '13px',
6
- lineHeight: '15px'
6
+ lineHeight: '16px'
7
7
  }
8
8
  });
@@ -1,31 +1,4 @@
1
- import React from 'react';
2
- export declare const ChipWithTooltip: React.ForwardRefExoticComponent<import("prop-types").InferPropsInner<Pick<{
3
- tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
4
- tooltipPlacement: import("prop-types").Requireable<string>;
5
- showForDisabled: import("prop-types").Requireable<boolean>;
6
- }, never>> & Partial<import("prop-types").InferPropsInner<Pick<{
7
- tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
8
- tooltipPlacement: import("prop-types").Requireable<string>;
9
- showForDisabled: import("prop-types").Requireable<boolean>;
10
- }, "tooltipTitle" | "tooltipPlacement" | "showForDisabled">>> & {
11
- avatar?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
12
- children?: null;
13
- classes?: Partial<import("@mui/material/Chip").ChipClasses>;
14
- clickable?: boolean;
15
- color?: import("@mui/types").OverridableStringUnion<"default" | "error" | "success" | "primary" | "secondary" | "info" | "warning", import("@mui/material/Chip").ChipPropsColorOverrides>;
16
- deleteIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
17
- disabled?: boolean;
18
- icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
19
- label?: React.ReactNode;
20
- onDelete?: (event: any) => void;
21
- size?: import("@mui/types").OverridableStringUnion<"small" | "medium", import("@mui/material/Chip").ChipPropsSizeOverrides>;
22
- skipFocusWhenDisabled?: boolean;
23
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
24
- tabIndex?: number;
25
- variant?: import("@mui/types").OverridableStringUnion<"filled" | "outlined", import("@mui/material/Chip").ChipPropsVariantOverrides>;
26
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
27
- ref?: React.Ref<HTMLDivElement>;
28
- }, "label" | "icon" | "children" | "size" | "color" | "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "variant" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled">>;
1
+ /// <reference types="react" />
29
2
  type Props = {
30
3
  className?: string;
31
4
  description?: string;
@@ -1,11 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
2
  import classnames from 'classnames';
3
- import Chip from '@mui/material/Chip';
3
+ import Tooltip from '@mui/material/Tooltip';
4
4
  import { FeaturesContext } from '../../../contexts';
5
- import { withTooltip } from '../../../HOCs';
6
5
  import Description from '../../../icons/Description';
7
6
  import { useStyles } from './styles';
8
- export var ChipWithTooltip = withTooltip(Chip);
9
7
  var DescriptionIcon = function (_a) {
10
8
  var className = _a.className, description = _a.description;
11
9
  var showDescription = useContext(FeaturesContext).showDescription;
@@ -13,10 +11,8 @@ var DescriptionIcon = function (_a) {
13
11
  if (!description || !showDescription) {
14
12
  return null;
15
13
  }
16
- return (React.createElement(ChipWithTooltip, { tooltipTitle: description, tooltipPlacement: "bottom", icon: React.createElement(Description, null), classes: {
17
- root: classnames(styles.container, className),
18
- label: styles.label,
19
- icon: styles.icon
20
- } }));
14
+ return (React.createElement(Tooltip, { title: description, placement: "bottom" },
15
+ React.createElement("span", { "data-reltio-id": "reltio-description-icon", className: classnames(styles.icon, className) },
16
+ React.createElement(Description, null))));
21
17
  };
22
18
  export default DescriptionIcon;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "icon" | "container">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"icon">;
@@ -1,22 +1,8 @@
1
1
  import { makeStyles } from '@mui/styles';
2
2
  export var useStyles = makeStyles(function () { return ({
3
- container: {
4
- height: '15px',
5
- backgroundColor: 'transparent',
6
- '&:hover': {
7
- backgroundColor: 'transparent'
8
- },
9
- '& $icon': {
10
- width: '12px',
11
- height: '12px',
12
- marginRight: 0
13
- }
14
- },
15
- label: {
16
- paddingLeft: '4px',
17
- paddingRight: '4px',
18
- fontSize: '10px',
19
- lineHeight: '11px'
20
- },
21
- icon: {}
3
+ icon: {
4
+ display: 'inline-flex',
5
+ marginLeft: '8px',
6
+ verticalAlign: 'middle'
7
+ }
22
8
  }); });
@@ -45,12 +45,12 @@ export var useStyles = makeStyles(function (theme) { return ({
45
45
  footer: {
46
46
  display: 'flex',
47
47
  alignItems: 'center',
48
- height: '31px',
48
+ height: '32px',
49
49
  paddingLeft: '16px',
50
50
  color: theme.palette.primary.main,
51
51
  fontSize: '13px',
52
52
  letterSpacing: '0',
53
- lineHeight: '15px'
53
+ lineHeight: '16px'
54
54
  },
55
55
  profileIcon: {
56
56
  height: '16px',
@@ -71,11 +71,15 @@ export var useStyles = makeStyles(function (theme) { return ({
71
71
  wordBreak: 'break-word'
72
72
  },
73
73
  icon: {
74
- margin: 'auto 8px auto 0'
74
+ marginRight: '8px',
75
+ verticalAlign: 'middle',
76
+ width: '12px',
77
+ height: '12px'
75
78
  },
76
79
  content: {
77
80
  color: theme.palette.primary.main,
78
- cursor: 'pointer'
81
+ cursor: 'pointer',
82
+ lineHeight: '16px'
79
83
  },
80
84
  seeAllButton: {
81
85
  cursor: 'pointer'
@@ -13,7 +13,7 @@ import React, { forwardRef } from 'react';
13
13
  import EditModeAttributesFactory from './AttributesFactory';
14
14
  var Attribute = forwardRef(function (props, ref) {
15
15
  var className = props.className, otherProps = __rest(props, ["className"]);
16
- return (React.createElement("div", { ref: ref, className: className }, EditModeAttributesFactory.build(props.attributeType, otherProps)));
16
+ return (React.createElement("div", { ref: ref, "data-reltio-id": "reltio-edit-attribute", className: className }, EditModeAttributesFactory.build(props.attributeType, otherProps)));
17
17
  });
18
18
  Attribute.displayName = 'Attribute';
19
19
  export default Attribute;
@@ -1,10 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Cardinality } from '@reltio/mdm-sdk';
3
+ type Props = {
4
+ cardinality?: Cardinality;
5
+ };
6
+ declare const CardinalityMessage: ({ cardinality }: Props) => JSX.Element;
1
7
  export default CardinalityMessage;
2
- declare function CardinalityMessage({ cardinality }: {
3
- cardinality: any;
4
- }): JSX.Element;
5
- declare namespace CardinalityMessage {
6
- namespace propTypes {
7
- export { CardinalityType as cardinality };
8
- }
9
- }
10
- import { CardinalityType } from '@reltio/mdm-sdk';
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
- import { CardinalityType } from '@reltio/mdm-sdk';
2
+ import i18n from 'ui-i18n';
3
3
  import Typography from '@mui/material/Typography';
4
4
  import { allPass, always, cond, isNil, has, not, pipe, propSatisfies, T } from 'ramda';
5
5
  import { useStyles } from './styles';
6
- import i18n from 'ui-i18n';
7
6
  var valueCaption = function (value) {
8
7
  return i18n.text('${value}', {
9
8
  value: value === 1 ? i18n.text('value') : i18n.text('values')
@@ -59,9 +58,7 @@ var getCardinalityMessage = cond([
59
58
  var CardinalityMessage = function (_a) {
60
59
  var cardinality = _a.cardinality;
61
60
  var styles = useStyles();
62
- return (React.createElement(Typography, { variant: "caption", className: styles.caption }, getCardinalityMessage(cardinality)));
63
- };
64
- CardinalityMessage.propTypes = {
65
- cardinality: CardinalityType
61
+ var cardinalityMessage = getCardinalityMessage(cardinality);
62
+ return cardinalityMessage ? (React.createElement(Typography, { variant: "caption", className: styles.caption }, cardinalityMessage)) : null;
66
63
  };
67
64
  export default CardinalityMessage;
@@ -37,7 +37,7 @@ var AttributesView = function (_a) {
37
37
  var onChangeAttribute = useCallback(function (params) { return modifyAttribute(__assign(__assign({}, params), { viewId: viewId })); }, [viewId, modifyAttribute]);
38
38
  var onDeleteAttribute = useCallback(function (params) { return removeAttribute(__assign(__assign({}, params), { viewId: viewId })); }, [viewId, removeAttribute]);
39
39
  return (React.createElement(BasicView, { className: className },
40
- caption && React.createElement(FacetViewHeader, { className: styles.header, title: caption }),
40
+ caption && React.createElement(FacetViewHeader, { title: caption }),
41
41
  React.createElement(Box, { className: classnames(styles.attributesContainer, (_b = {}, _b[styles.noCaption] = !caption, _b)) },
42
42
  React.createElement(PinnedAttributesContext.Provider, { value: pinnedAttributeUris },
43
43
  React.createElement(AttributesList, { entity: modifiedEntity, attrTypes: filteredAttrTypes, parentUri: modifiedEntity.uri, drawLines: false, mode: mode, showEmptyEditors: isTempUri(modifiedEntity.uri), crosswalks: modifiedEntity.crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })))));
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"header" | "attributesContainer" | "noCaption">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"attributesContainer" | "noCaption">;
@@ -2,10 +2,7 @@ import { makeStyles } from '@mui/styles';
2
2
  export var useStyles = makeStyles({
3
3
  attributesContainer: {
4
4
  overflow: 'hidden',
5
- padding: '0 16px 16px 16px'
6
- },
7
- header: {
8
- marginBottom: '4px'
5
+ padding: '8px 16px'
9
6
  },
10
7
  noCaption: {
11
8
  paddingTop: '16px'
@@ -70,7 +70,7 @@ var MoreAttributesButton = function (_a) {
70
70
  React.createElement(AddIcon, { classes: { root: styles.icon } }),
71
71
  React.createElement("div", { className: styles.buttonLabel }, label)),
72
72
  React.createElement(SelectionPopup, { open: isOpen, className: classnames(styles.moreAttributesPopup, styles.popupContainer), anchorEl: inputRef.current, onClose: pipe(addSelectedAttributes, closePopup, clearFilter, clearSelectedItems), onSearch: setFilter, containerHeight: containerHeight, title: popupTitle, containerWidth: LIST_CONTAINER_WIDTH, searchInputOnKeyDown: handleKeyDown },
73
- React.createElement(VirtualGroupedList, { getItemSize: getItemSize, renderItem: listItemRenderer, renderGroupTitle: renderGroupTitle, items: items, height: listHeight, focusIndex: focusIndex }),
73
+ React.createElement(VirtualGroupedList, { getItemSize: getItemSize, renderItem: listItemRenderer, renderGroupTitle: renderGroupTitle, disableHorizontalScrollbar: true, items: items, height: listHeight, focusIndex: focusIndex }),
74
74
  items.length === 0 && (React.createElement("div", { className: styles.noResultsCaptionContainer },
75
75
  React.createElement(Typography, { variant: "caption", display: "block", gutterBottom: true }, i18n.text('No results found')))))));
76
76
  };