@reltio/components 1.4.1123 → 1.4.1126
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/attributes/readMode/ComplexAttribute/ComplexAttribute.js +10 -3
- package/cjs/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +11 -5
- package/cjs/contexts/HighlightedValuesContext/index.d.ts +5 -0
- package/cjs/contexts/HighlightedValuesContext/index.js +12 -0
- package/cjs/contexts/index.d.ts +1 -0
- package/cjs/contexts/index.js +3 -1
- package/cjs/hooks/useMatchesLoader.d.ts +2 -1
- package/cjs/hooks/useMatchesLoader.js +3 -1
- package/esm/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +12 -5
- package/esm/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +11 -5
- package/esm/contexts/HighlightedValuesContext/index.d.ts +5 -0
- package/esm/contexts/HighlightedValuesContext/index.js +6 -0
- package/esm/contexts/index.d.ts +1 -0
- package/esm/contexts/index.js +1 -0
- package/esm/hooks/useMatchesLoader.d.ts +2 -1
- package/esm/hooks/useMatchesLoader.js +3 -1
- package/package.json +3 -3
|
@@ -32,11 +32,14 @@ var ArrowExpandButton_1 = __importDefault(require("../../../ArrowExpandButton/Ar
|
|
|
32
32
|
var CommentsContainer_1 = __importDefault(require("../../../CommentsContainer/CommentsContainer"));
|
|
33
33
|
var classnames_2 = require("../../../../constants/classnames");
|
|
34
34
|
var styles_1 = require("./styles");
|
|
35
|
+
var contexts_1 = require("../../../../contexts");
|
|
35
36
|
var ComplexAttribute = function (_a) {
|
|
36
|
-
var
|
|
37
|
+
var _b;
|
|
38
|
+
var attributeTypesList = _a.attributeTypesList, attributeValue = _a.attributeValue, label = _a.label, _c = _a.expanded, expandedProp = _c === void 0 ? false : _c, children = _a.children, showNonOv = _a.showNonOv, attributeType = _a.attributeType;
|
|
37
39
|
var styles = styles_1.useStyles();
|
|
38
40
|
var uri = attributeValue.uri;
|
|
39
|
-
var
|
|
41
|
+
var _d = react_1.useState(false), expanded = _d[0], setExpanded = _d[1];
|
|
42
|
+
var _e = react_1.useContext(contexts_1.HighlightedValuesContext), _f = _e.highlightedValuesUris, highlightedValuesUris = _f === void 0 ? [] : _f, highlightedClassName = _e.highlightedClassName;
|
|
40
43
|
react_1.useEffect(function () {
|
|
41
44
|
setExpanded(expandedProp);
|
|
42
45
|
}, [expandedProp]);
|
|
@@ -51,7 +54,11 @@ var ComplexAttribute = function (_a) {
|
|
|
51
54
|
return (react_1.default.createElement("div", { className: styles.complexContainer },
|
|
52
55
|
react_1.default.createElement("div", { className: classnames_1.default(styles.labelContainer, classnames_2.COMMENTS_CONTAINER_VISIBILITY_AREA) },
|
|
53
56
|
react_1.default.createElement(ArrowExpandButton_1.default, { onClick: function () { return setExpanded(function (value) { return !value; }); }, expanded: expanded }),
|
|
54
|
-
react_1.default.createElement(Typography_1.default, { component: "span", variant: "body2", classes: { body2: styles.label },
|
|
57
|
+
react_1.default.createElement(Typography_1.default, { component: "span", variant: "body2", classes: { body2: styles.label }, className: classnames_1.default((_b = {},
|
|
58
|
+
_b[highlightedClassName] = highlightedValuesUris.some(function (uri) {
|
|
59
|
+
return mdm_sdk_1.areOneHierarchyUris(uri, attributeValue.uri);
|
|
60
|
+
}),
|
|
61
|
+
_b)), "data-reltio-id": "reltio-attribute-complex-label" }, label),
|
|
55
62
|
react_1.default.createElement("div", { className: styles.spacer }),
|
|
56
63
|
react_1.default.createElement(CommentsContainer_1.default, { uri: attributeValue.uri, relatedObjectUris: mdm_sdk_1.createRelatedObjectUris(objectType, {
|
|
57
64
|
uri: attributeValue.uri
|
|
@@ -32,10 +32,12 @@ var DataTypeValue_1 = __importDefault(require("../../../DataTypeValue/DataTypeVa
|
|
|
32
32
|
var PivotingTooltip_1 = require("../../PivotingAttributes/PivotingTooltip");
|
|
33
33
|
var historyAppearance_1 = require("../helpers/historyAppearance");
|
|
34
34
|
var styles_1 = require("./styles");
|
|
35
|
+
var contexts_1 = require("../../../../contexts");
|
|
35
36
|
var SimpleAttribute = function (_a) {
|
|
36
|
-
var _b;
|
|
37
|
-
var className = _a.className,
|
|
37
|
+
var _b, _c, _d;
|
|
38
|
+
var className = _a.className, _e = _a.attributeType, attributeType = _e === void 0 ? null : _e, attributeValue = _a.attributeValue, inlined = _a.inlined;
|
|
38
39
|
var styles = styles_1.useStyles();
|
|
40
|
+
var _f = react_1.useContext(contexts_1.HighlightedValuesContext), _g = _f.highlightedValuesUris, highlightedValuesUris = _g === void 0 ? [] : _g, highlightedClassName = _f.highlightedClassName;
|
|
39
41
|
var appearance = react_1.useContext(HistoryAppearanceContext_1.HistoryDiffContext).appearance;
|
|
40
42
|
var attributeAppearance = historyAppearance_1.getHistoryAppearanceByUri(attributeValue.uri, appearance);
|
|
41
43
|
var historyClassName = historyAppearance_1.getHistoryAttributeClassName(attributeAppearance);
|
|
@@ -43,9 +45,13 @@ var SimpleAttribute = function (_a) {
|
|
|
43
45
|
var objectType = mdm_sdk_1.isRelationAttrType(attributeType)
|
|
44
46
|
? mdm_sdk_1.CollaborationObjectTypes.RELATION_ATTRIBUTE
|
|
45
47
|
: mdm_sdk_1.CollaborationObjectTypes.ENTITY_ATTRIBUTE;
|
|
46
|
-
return inlined || historyClassName ? (react_1.default.createElement("div", { className: className },
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
return inlined || historyClassName ? (react_1.default.createElement("div", { className: classnames_1.default(className, (_b = {},
|
|
49
|
+
_b[highlightedClassName] = highlightedValuesUris.includes(attributeValue.uri),
|
|
50
|
+
_b)) },
|
|
51
|
+
react_1.default.createElement(PivotingTooltip_1.PivotingTooltip, { value: attributeValue, attributeType: attributeType, key: attributeValue.uri, className: classnames_1.default((_c = {}, _c[styles.multilineAttribute] = !inlined, _c)) },
|
|
52
|
+
react_1.default.createElement("span", { className: styles[historyClassName], "data-reltio-id": "reltio-attribute-value" }, dataTypeValue)))) : (react_1.default.createElement("div", { className: classnames_1.default(className, styles.root, classnames_2.COMMENTS_CONTAINER_VISIBILITY_AREA, (_d = {},
|
|
53
|
+
_d[highlightedClassName] = highlightedValuesUris.includes(attributeValue.uri),
|
|
54
|
+
_d)) },
|
|
49
55
|
react_1.default.createElement(PivotingTooltip_1.PivotingTooltip, { value: attributeValue, attributeType: attributeType, key: attributeValue.uri },
|
|
50
56
|
react_1.default.createElement("span", { className: styles.attributeValue, "data-reltio-id": "reltio-attribute-value" }, dataTypeValue)),
|
|
51
57
|
react_1.default.createElement(CommentsContainer_1.default, { className: styles.commentsContainer, uri: attributeValue.uri, relatedObjectUris: mdm_sdk_1.createRelatedObjectUris(objectType, {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HighlightedValuesContext = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.HighlightedValuesContext = react_1.default.createContext({
|
|
9
|
+
highlightedValuesUris: [],
|
|
10
|
+
highlightedClassName: ''
|
|
11
|
+
});
|
|
12
|
+
exports.HighlightedValuesContext.displayName = 'HighlightedValuesContext';
|
package/cjs/contexts/index.d.ts
CHANGED
|
@@ -19,3 +19,4 @@ export { SandboxAPIContext } from './SandboxAPIContext';
|
|
|
19
19
|
export { useReloadAllFacets, ReloadFacetProvider, useReloadFacet } from './ReloadFacetContext';
|
|
20
20
|
export { SearchFiltersContext } from './SearchFiltersContext';
|
|
21
21
|
export { SnackbarContext } from './SnackbarContext';
|
|
22
|
+
export { HighlightedValuesContext } from './HighlightedValuesContext';
|
package/cjs/contexts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
3
|
+
exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
4
4
|
var AsyncMountContext_1 = require("./AsyncMountContext");
|
|
5
5
|
Object.defineProperty(exports, "AsyncMountContext", { enumerable: true, get: function () { return AsyncMountContext_1.AsyncMountContext; } });
|
|
6
6
|
var HistoryAppearanceContext_1 = require("./HistoryAppearanceContext");
|
|
@@ -50,3 +50,5 @@ var SearchFiltersContext_1 = require("./SearchFiltersContext");
|
|
|
50
50
|
Object.defineProperty(exports, "SearchFiltersContext", { enumerable: true, get: function () { return SearchFiltersContext_1.SearchFiltersContext; } });
|
|
51
51
|
var SnackbarContext_1 = require("./SnackbarContext");
|
|
52
52
|
Object.defineProperty(exports, "SnackbarContext", { enumerable: true, get: function () { return SnackbarContext_1.SnackbarContext; } });
|
|
53
|
+
var HighlightedValuesContext_1 = require("./HighlightedValuesContext");
|
|
54
|
+
Object.defineProperty(exports, "HighlightedValuesContext", { enumerable: true, get: function () { return HighlightedValuesContext_1.HighlightedValuesContext; } });
|
|
@@ -15,8 +15,9 @@ declare type Props = {
|
|
|
15
15
|
order: string;
|
|
16
16
|
field: string;
|
|
17
17
|
};
|
|
18
|
+
markMatchedValues?: boolean;
|
|
18
19
|
};
|
|
19
|
-
export declare const useMatchesLoader: ({ enabled, entity, filter, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting }: Props) => {
|
|
20
|
+
export declare const useMatchesLoader: ({ enabled, entity, filter, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting, markMatchedValues }: Props) => {
|
|
20
21
|
total: number;
|
|
21
22
|
matches: PotentialMatch[];
|
|
22
23
|
entitiesMap: {
|
|
@@ -12,7 +12,7 @@ var usePagingSimulator_1 = require("./usePagingSimulator");
|
|
|
12
12
|
var useSafePromise_1 = require("./useSafePromise");
|
|
13
13
|
var ramda_1 = require("ramda");
|
|
14
14
|
var useMatchesLoader = function (_a) {
|
|
15
|
-
var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting;
|
|
15
|
+
var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting, markMatchedValues = _a.markMatchedValues;
|
|
16
16
|
var _b = sorting || {}, order = _b.order, field = _b.field;
|
|
17
17
|
var _c = react_1.useState(0), total = _c[0], setTotal = _c[1];
|
|
18
18
|
var _d = react_1.useState([]), matches = _d[0], setMatches = _d[1];
|
|
@@ -67,6 +67,7 @@ var useMatchesLoader = function (_a) {
|
|
|
67
67
|
sort: field,
|
|
68
68
|
order: order,
|
|
69
69
|
force: force,
|
|
70
|
+
markMatchedValues: markMatchedValues,
|
|
70
71
|
deep: options.showTransitiveMatches ? undefined : 1,
|
|
71
72
|
activeness: activeness
|
|
72
73
|
}))
|
|
@@ -90,6 +91,7 @@ var useMatchesLoader = function (_a) {
|
|
|
90
91
|
entityUri,
|
|
91
92
|
field,
|
|
92
93
|
filter,
|
|
94
|
+
markMatchedValues,
|
|
93
95
|
getPagedMatchesForDataTenantEntity,
|
|
94
96
|
getTransitiveMatchesWithPaging,
|
|
95
97
|
onFinishLoading,
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import React, { useEffect, useMemo, useState } from 'react';
|
|
1
|
+
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import { AttributeTypeType, isAnalyticAttribute, NestedAttributeValueType, ReferenceAttributeValueType, CollaborationObjectTypes, createRelatedObjectUris, isRelationAttrType } from '@reltio/mdm-sdk';
|
|
4
|
+
import { AttributeTypeType, isAnalyticAttribute, NestedAttributeValueType, ReferenceAttributeValueType, CollaborationObjectTypes, createRelatedObjectUris, isRelationAttrType, areOneHierarchyUris } from '@reltio/mdm-sdk';
|
|
5
5
|
import Typography from '@material-ui/core/Typography';
|
|
6
6
|
import AttributesList from '../AttributesList/AttributesList';
|
|
7
7
|
import ArrowExpandButton from '../../../ArrowExpandButton/ArrowExpandButton';
|
|
8
8
|
import CommentsContainer from '../../../CommentsContainer/CommentsContainer';
|
|
9
9
|
import { COMMENTS_CONTAINER_VISIBILITY_AREA } from '../../../../constants/classnames';
|
|
10
10
|
import { useStyles } from './styles';
|
|
11
|
+
import { HighlightedValuesContext } from '../../../../contexts';
|
|
11
12
|
var ComplexAttribute = function (_a) {
|
|
12
|
-
var
|
|
13
|
+
var _b;
|
|
14
|
+
var attributeTypesList = _a.attributeTypesList, attributeValue = _a.attributeValue, label = _a.label, _c = _a.expanded, expandedProp = _c === void 0 ? false : _c, children = _a.children, showNonOv = _a.showNonOv, attributeType = _a.attributeType;
|
|
13
15
|
var styles = useStyles();
|
|
14
16
|
var uri = attributeValue.uri;
|
|
15
|
-
var
|
|
17
|
+
var _d = useState(false), expanded = _d[0], setExpanded = _d[1];
|
|
18
|
+
var _e = useContext(HighlightedValuesContext), _f = _e.highlightedValuesUris, highlightedValuesUris = _f === void 0 ? [] : _f, highlightedClassName = _e.highlightedClassName;
|
|
16
19
|
useEffect(function () {
|
|
17
20
|
setExpanded(expandedProp);
|
|
18
21
|
}, [expandedProp]);
|
|
@@ -27,7 +30,11 @@ var ComplexAttribute = function (_a) {
|
|
|
27
30
|
return (React.createElement("div", { className: styles.complexContainer },
|
|
28
31
|
React.createElement("div", { className: classnames(styles.labelContainer, COMMENTS_CONTAINER_VISIBILITY_AREA) },
|
|
29
32
|
React.createElement(ArrowExpandButton, { onClick: function () { return setExpanded(function (value) { return !value; }); }, expanded: expanded }),
|
|
30
|
-
React.createElement(Typography, { component: "span", variant: "body2", classes: { body2: styles.label },
|
|
33
|
+
React.createElement(Typography, { component: "span", variant: "body2", classes: { body2: styles.label }, className: classnames((_b = {},
|
|
34
|
+
_b[highlightedClassName] = highlightedValuesUris.some(function (uri) {
|
|
35
|
+
return areOneHierarchyUris(uri, attributeValue.uri);
|
|
36
|
+
}),
|
|
37
|
+
_b)), "data-reltio-id": "reltio-attribute-complex-label" }, label),
|
|
31
38
|
React.createElement("div", { className: styles.spacer }),
|
|
32
39
|
React.createElement(CommentsContainer, { uri: attributeValue.uri, relatedObjectUris: createRelatedObjectUris(objectType, {
|
|
33
40
|
uri: attributeValue.uri
|
|
@@ -8,10 +8,12 @@ import DataTypeValue from '../../../DataTypeValue/DataTypeValue';
|
|
|
8
8
|
import { PivotingTooltip } from '../../PivotingAttributes/PivotingTooltip';
|
|
9
9
|
import { getHistoryAppearanceByUri, getHistoryAttributeClassName } from '../helpers/historyAppearance';
|
|
10
10
|
import { useStyles } from './styles';
|
|
11
|
+
import { HighlightedValuesContext } from '../../../../contexts';
|
|
11
12
|
var SimpleAttribute = function (_a) {
|
|
12
|
-
var _b;
|
|
13
|
-
var className = _a.className,
|
|
13
|
+
var _b, _c, _d;
|
|
14
|
+
var className = _a.className, _e = _a.attributeType, attributeType = _e === void 0 ? null : _e, attributeValue = _a.attributeValue, inlined = _a.inlined;
|
|
14
15
|
var styles = useStyles();
|
|
16
|
+
var _f = useContext(HighlightedValuesContext), _g = _f.highlightedValuesUris, highlightedValuesUris = _g === void 0 ? [] : _g, highlightedClassName = _f.highlightedClassName;
|
|
15
17
|
var appearance = useContext(HistoryDiffContext).appearance;
|
|
16
18
|
var attributeAppearance = getHistoryAppearanceByUri(attributeValue.uri, appearance);
|
|
17
19
|
var historyClassName = getHistoryAttributeClassName(attributeAppearance);
|
|
@@ -19,9 +21,13 @@ var SimpleAttribute = function (_a) {
|
|
|
19
21
|
var objectType = isRelationAttrType(attributeType)
|
|
20
22
|
? CollaborationObjectTypes.RELATION_ATTRIBUTE
|
|
21
23
|
: CollaborationObjectTypes.ENTITY_ATTRIBUTE;
|
|
22
|
-
return inlined || historyClassName ? (React.createElement("div", { className: className },
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
return inlined || historyClassName ? (React.createElement("div", { className: classnames(className, (_b = {},
|
|
25
|
+
_b[highlightedClassName] = highlightedValuesUris.includes(attributeValue.uri),
|
|
26
|
+
_b)) },
|
|
27
|
+
React.createElement(PivotingTooltip, { value: attributeValue, attributeType: attributeType, key: attributeValue.uri, className: classnames((_c = {}, _c[styles.multilineAttribute] = !inlined, _c)) },
|
|
28
|
+
React.createElement("span", { className: styles[historyClassName], "data-reltio-id": "reltio-attribute-value" }, dataTypeValue)))) : (React.createElement("div", { className: classnames(className, styles.root, COMMENTS_CONTAINER_VISIBILITY_AREA, (_d = {},
|
|
29
|
+
_d[highlightedClassName] = highlightedValuesUris.includes(attributeValue.uri),
|
|
30
|
+
_d)) },
|
|
25
31
|
React.createElement(PivotingTooltip, { value: attributeValue, attributeType: attributeType, key: attributeValue.uri },
|
|
26
32
|
React.createElement("span", { className: styles.attributeValue, "data-reltio-id": "reltio-attribute-value" }, dataTypeValue)),
|
|
27
33
|
React.createElement(CommentsContainer, { className: styles.commentsContainer, uri: attributeValue.uri, relatedObjectUris: createRelatedObjectUris(objectType, {
|
package/esm/contexts/index.d.ts
CHANGED
|
@@ -19,3 +19,4 @@ export { SandboxAPIContext } from './SandboxAPIContext';
|
|
|
19
19
|
export { useReloadAllFacets, ReloadFacetProvider, useReloadFacet } from './ReloadFacetContext';
|
|
20
20
|
export { SearchFiltersContext } from './SearchFiltersContext';
|
|
21
21
|
export { SnackbarContext } from './SnackbarContext';
|
|
22
|
+
export { HighlightedValuesContext } from './HighlightedValuesContext';
|
package/esm/contexts/index.js
CHANGED
|
@@ -19,3 +19,4 @@ export { SandboxAPIContext } from './SandboxAPIContext';
|
|
|
19
19
|
export { useReloadAllFacets, ReloadFacetProvider, useReloadFacet } from './ReloadFacetContext';
|
|
20
20
|
export { SearchFiltersContext } from './SearchFiltersContext';
|
|
21
21
|
export { SnackbarContext } from './SnackbarContext';
|
|
22
|
+
export { HighlightedValuesContext } from './HighlightedValuesContext';
|
|
@@ -15,8 +15,9 @@ declare type Props = {
|
|
|
15
15
|
order: string;
|
|
16
16
|
field: string;
|
|
17
17
|
};
|
|
18
|
+
markMatchedValues?: boolean;
|
|
18
19
|
};
|
|
19
|
-
export declare const useMatchesLoader: ({ enabled, entity, filter, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting }: Props) => {
|
|
20
|
+
export declare const useMatchesLoader: ({ enabled, entity, filter, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting, markMatchedValues }: Props) => {
|
|
20
21
|
total: number;
|
|
21
22
|
matches: PotentialMatch[];
|
|
22
23
|
entitiesMap: {
|
|
@@ -6,7 +6,7 @@ import { usePagingSimulator } from './usePagingSimulator';
|
|
|
6
6
|
import { useSafePromise } from './useSafePromise';
|
|
7
7
|
import { prop } from 'ramda';
|
|
8
8
|
export var useMatchesLoader = function (_a) {
|
|
9
|
-
var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting;
|
|
9
|
+
var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting, markMatchedValues = _a.markMatchedValues;
|
|
10
10
|
var _b = sorting || {}, order = _b.order, field = _b.field;
|
|
11
11
|
var _c = useState(0), total = _c[0], setTotal = _c[1];
|
|
12
12
|
var _d = useState([]), matches = _d[0], setMatches = _d[1];
|
|
@@ -61,6 +61,7 @@ export var useMatchesLoader = function (_a) {
|
|
|
61
61
|
sort: field,
|
|
62
62
|
order: order,
|
|
63
63
|
force: force,
|
|
64
|
+
markMatchedValues: markMatchedValues,
|
|
64
65
|
deep: options.showTransitiveMatches ? undefined : 1,
|
|
65
66
|
activeness: activeness
|
|
66
67
|
}))
|
|
@@ -84,6 +85,7 @@ export var useMatchesLoader = function (_a) {
|
|
|
84
85
|
entityUri,
|
|
85
86
|
field,
|
|
86
87
|
filter,
|
|
88
|
+
markMatchedValues,
|
|
87
89
|
getPagedMatchesForDataTenantEntity,
|
|
88
90
|
getTransitiveMatchesWithPaging,
|
|
89
91
|
onFinishLoading,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1126",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1126",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1126",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|