@reltio/components 1.4.1672 → 1.4.1674
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/BasicViewHeader/styles.js +1 -1
- package/cjs/components/ExpandableSearchInput/ExpandableSearchInput.js +1 -1
- package/cjs/components/ExpandableSearchInput/styles.d.ts +1 -1
- package/cjs/components/ExpandableSearchInput/styles.js +5 -4
- package/cjs/components/LinearLoadIndicator/styles.js +1 -2
- package/cjs/components/RelationEditor/RelationEditor.d.ts +11 -4
- package/cjs/components/RelationEditor/RelationEditor.js +2 -12
- package/cjs/components/RelationEditor/styles.d.ts +1 -1
- package/cjs/components/TableSkeleton/TableSkeleton.d.ts +9 -0
- package/cjs/components/TableSkeleton/TableSkeleton.js +74 -0
- package/cjs/components/TableSkeleton/styles.d.ts +1 -0
- package/cjs/components/TableSkeleton/styles.js +15 -0
- package/cjs/components/Title/styles.js +1 -1
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -28
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.js +4 -9
- package/cjs/components/attributes/DescriptionIcon/styles.d.ts +1 -1
- package/cjs/components/attributes/DescriptionIcon/styles.js +5 -19
- package/cjs/components/attributes/PivotingAttributes/styles.js +8 -4
- package/cjs/components/attributes/editMode/AttributesFactory/Attribute.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/CardinalityMessage.d.ts +6 -9
- package/cjs/components/attributes/editMode/AttributesPager/CardinalityMessage.js +3 -6
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +1 -1
- package/cjs/components/attributes/editMode/AttributesView/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesView/styles.js +1 -4
- package/cjs/components/attributes/editMode/MoreAttributesButton/styles.js +4 -1
- package/cjs/components/attributes/readMode/AttributesPager/styles.js +8 -12
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +1 -1
- package/cjs/components/attributes/readMode/AttributesView/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/AttributesView/styles.js +1 -4
- package/cjs/components/attributes/readMode/ComplexAttribute/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/ComplexAttribute/styles.js +2 -2
- package/cjs/components/attributes/readMode/NestedAttribute/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/NestedAttribute/styles.js +2 -1
- package/cjs/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +3 -1
- package/cjs/components/attributes/readMode/SimpleAttribute/styles.js +1 -1
- package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +5 -1
- package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -1
- package/cjs/components/attributes/readMode/SpecialAttributes/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/SpecialAttributes/styles.js +3 -0
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.d.ts +2 -2
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +2 -2
- package/cjs/components/index.d.ts +1 -0
- package/cjs/components/index.js +3 -1
- package/cjs/icons/index.d.ts +5 -3
- package/cjs/icons/index.js +12 -8
- package/esm/components/BasicViewHeader/styles.js +1 -1
- package/esm/components/ExpandableSearchInput/ExpandableSearchInput.js +1 -1
- package/esm/components/ExpandableSearchInput/styles.d.ts +1 -1
- package/esm/components/ExpandableSearchInput/styles.js +5 -4
- package/esm/components/LinearLoadIndicator/styles.js +1 -2
- package/esm/components/RelationEditor/RelationEditor.d.ts +11 -4
- package/esm/components/RelationEditor/RelationEditor.js +3 -13
- package/esm/components/RelationEditor/styles.d.ts +1 -1
- package/esm/components/TableSkeleton/TableSkeleton.d.ts +9 -0
- package/esm/components/TableSkeleton/TableSkeleton.js +44 -0
- package/esm/components/TableSkeleton/styles.d.ts +1 -0
- package/esm/components/TableSkeleton/styles.js +12 -0
- package/esm/components/Title/styles.js +1 -1
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -28
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.js +4 -8
- package/esm/components/attributes/DescriptionIcon/styles.d.ts +1 -1
- package/esm/components/attributes/DescriptionIcon/styles.js +5 -19
- package/esm/components/attributes/PivotingAttributes/styles.js +8 -4
- package/esm/components/attributes/editMode/AttributesFactory/Attribute.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/CardinalityMessage.d.ts +6 -9
- package/esm/components/attributes/editMode/AttributesPager/CardinalityMessage.js +3 -6
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +1 -1
- package/esm/components/attributes/editMode/AttributesView/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesView/styles.js +1 -4
- package/esm/components/attributes/editMode/MoreAttributesButton/styles.js +4 -1
- package/esm/components/attributes/readMode/AttributesPager/styles.js +8 -12
- package/esm/components/attributes/readMode/AttributesView/AttributesView.js +1 -1
- package/esm/components/attributes/readMode/AttributesView/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/AttributesView/styles.js +1 -4
- package/esm/components/attributes/readMode/ComplexAttribute/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/ComplexAttribute/styles.js +2 -2
- package/esm/components/attributes/readMode/NestedAttribute/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/NestedAttribute/styles.js +2 -1
- package/esm/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +3 -1
- package/esm/components/attributes/readMode/SimpleAttribute/styles.js +1 -1
- package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -1
- package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -1
- package/esm/components/attributes/readMode/SpecialAttributes/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/SpecialAttributes/styles.js +3 -0
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.d.ts +2 -2
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +2 -2
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.js +1 -0
- package/esm/icons/index.d.ts +5 -3
- package/esm/icons/index.js +5 -3
- package/package.json +3 -3
|
@@ -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
|
});
|
|
@@ -8,12 +8,12 @@ type CommonProps = Omit<TextFieldProps, 'onChange' | 'value'> & {
|
|
|
8
8
|
isCrossedOut?: boolean;
|
|
9
9
|
};
|
|
10
10
|
type MultipleProps = CommonProps & {
|
|
11
|
-
value
|
|
11
|
+
value?: string[];
|
|
12
12
|
onChange: (values: string[]) => void;
|
|
13
13
|
multiple: true;
|
|
14
14
|
};
|
|
15
15
|
type SingleProps = CommonProps & {
|
|
16
|
-
value
|
|
16
|
+
value?: string;
|
|
17
17
|
onChange: (value: string) => void;
|
|
18
18
|
multiple?: false;
|
|
19
19
|
};
|
|
@@ -201,7 +201,7 @@ var TypeaheadEditor = function (_a) {
|
|
|
201
201
|
case ChangeMethod.Enter: {
|
|
202
202
|
if (multiple === true) {
|
|
203
203
|
if (newValue)
|
|
204
|
-
onChange((0, ramda_1.uniq)(__spreadArray(__spreadArray([], value, true), [newValue], false)));
|
|
204
|
+
onChange((0, ramda_1.uniq)(__spreadArray(__spreadArray([], (value || []), true), [newValue], false)));
|
|
205
205
|
setInputValue('');
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
@@ -242,7 +242,7 @@ var TypeaheadEditor = function (_a) {
|
|
|
242
242
|
underline: (0, classnames_1.default)((_b = {}, _b[styles.underline] = (0, mdm_sdk_1.isEmptyValue)(value), _b)),
|
|
243
243
|
input: (0, classnames_1.default)(styles['rawInput'], (0, ramda_1.path)(['classes', 'input'], InputProps))
|
|
244
244
|
};
|
|
245
|
-
return multiple === true ? (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, InputProps: __assign(__assign({}, InputProps), { startAdornment: value.map(function (item, index) { return (react_1.default.createElement(ValueChip_1.default, { key: item, label: item, onDelete: function () { return onChange((0, ramda_1.remove)(index, 1, value)); } })); }), inputComponent: react_input_autosize_1.default, classes: __assign(__assign({ root: (0, classnames_1.default)(styles.multipleTextFieldInput, (0, ramda_1.path)(['classes', 'root'], InputProps)) }, commonClasses), { input: (0, classnames_1.default)(styles.autosizeInput, commonClasses.input), adornedStart: styles.multipleTextFieldAdornedStart }) }), classes: { root: styles.multipleTextField } }))) : (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, InputProps: __assign(__assign({}, InputProps), { classes: __assign({ root: (0, classnames_1.default)(styles.inputRoot, (0, ramda_1.path)(['classes', 'root'], InputProps), (_c = {},
|
|
245
|
+
return multiple === true ? (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, InputProps: __assign(__assign({}, InputProps), { startAdornment: value === null || value === void 0 ? void 0 : value.map(function (item, index) { return (react_1.default.createElement(ValueChip_1.default, { key: item, label: item, onDelete: function () { return onChange((0, ramda_1.remove)(index, 1, value)); } })); }), inputComponent: react_input_autosize_1.default, classes: __assign(__assign({ root: (0, classnames_1.default)(styles.multipleTextFieldInput, (0, ramda_1.path)(['classes', 'root'], InputProps)) }, commonClasses), { input: (0, classnames_1.default)(styles.autosizeInput, commonClasses.input), adornedStart: styles.multipleTextFieldAdornedStart }) }), classes: { root: styles.multipleTextField } }))) : (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, InputProps: __assign(__assign({}, InputProps), { classes: __assign({ root: (0, classnames_1.default)(styles.inputRoot, (0, ramda_1.path)(['classes', 'root'], InputProps), (_c = {},
|
|
246
246
|
_c[styles.isCrossedOut] = isCrossedOut,
|
|
247
247
|
_c)) }, commonClasses) }) })));
|
|
248
248
|
}, renderSuggestionsContainer: function (_a) {
|
|
@@ -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';
|
package/cjs/components/index.js
CHANGED
|
@@ -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; } });
|
package/cjs/icons/index.d.ts
CHANGED
|
@@ -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';
|
package/cjs/icons/index.js
CHANGED
|
@@ -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.
|
|
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");
|
|
@@ -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
|
|
11
|
-
|
|
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
|
});
|
|
@@ -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 {
|
|
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,
|
|
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">;
|
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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(
|
|
17
|
-
|
|
18
|
-
|
|
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<"
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
|
|
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: '
|
|
48
|
+
height: '32px',
|
|
49
49
|
paddingLeft: '16px',
|
|
50
50
|
color: theme.palette.primary.main,
|
|
51
51
|
fontSize: '13px',
|
|
52
52
|
letterSpacing: '0',
|
|
53
|
-
lineHeight: '
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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, {
|
|
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<"
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"attributesContainer" | "noCaption">;
|