@reltio/components 1.4.1667 → 1.4.1668
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/ConnectionEditor/ConnectionEditor.js +2 -2
- package/cjs/components/EntityUriLink/EntityUriLink.d.ts +3 -5
- package/cjs/components/EntityUriLink/EntityUriLink.js +6 -8
- package/cjs/components/ValueChip/ValueChip.d.ts +7 -14
- package/cjs/components/ValueChip/ValueChip.js +1 -7
- package/cjs/components/ValueChip/styles.d.ts +2 -2
- package/cjs/components/attributes/editMode/NestedAttribute/NestedAttribute.d.ts +1 -1
- package/cjs/components/attributes/editMode/Tags/Tags.js +63 -19
- package/cjs/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +2 -2
- package/cjs/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +1 -1
- package/cjs/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +2 -2
- package/cjs/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +1 -1
- package/cjs/components/attributes/readMode/NestedAttribute/NestedAttribute.d.ts +1 -1
- package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +1 -1
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +1 -1
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.d.ts +20 -24
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +155 -83
- package/cjs/components/editors/TypeaheadEditor/styles.d.ts +1 -1
- package/cjs/components/editors/TypeaheadEditor/styles.js +17 -17
- package/cjs/components/history/ContributorsPanel/styles.d.ts +1 -1
- package/cjs/hooks/useCommentsEntitiesMap.js +1 -1
- package/cjs/hooks/useMatchesLoader.js +2 -2
- package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -3
- package/esm/components/EntityUriLink/EntityUriLink.d.ts +3 -5
- package/esm/components/EntityUriLink/EntityUriLink.js +6 -8
- package/esm/components/ValueChip/ValueChip.d.ts +7 -14
- package/esm/components/ValueChip/ValueChip.js +1 -7
- package/esm/components/ValueChip/styles.d.ts +2 -2
- package/esm/components/attributes/editMode/NestedAttribute/NestedAttribute.d.ts +1 -1
- package/esm/components/attributes/editMode/Tags/Tags.js +65 -21
- package/esm/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +3 -3
- package/esm/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +2 -2
- package/esm/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +3 -3
- package/esm/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +2 -2
- package/esm/components/attributes/readMode/NestedAttribute/NestedAttribute.d.ts +1 -1
- package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -2
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +1 -1
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.d.ts +20 -24
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +155 -83
- package/esm/components/editors/TypeaheadEditor/styles.d.ts +1 -1
- package/esm/components/editors/TypeaheadEditor/styles.js +17 -17
- package/esm/components/history/ContributorsPanel/styles.d.ts +1 -1
- package/esm/hooks/useCommentsEntitiesMap.js +2 -2
- package/esm/hooks/useMatchesLoader.js +3 -3
- package/package.json +2 -2
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { makeStyles } from '@mui/styles';
|
|
2
2
|
export var useStyles = makeStyles({
|
|
3
|
-
|
|
3
|
+
suggestionsPlaceholder: {
|
|
4
4
|
padding: '8px 16px',
|
|
5
5
|
textAlign: 'center'
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
suggestionsContainer: {
|
|
8
|
+
width: '100%'
|
|
9
|
+
},
|
|
10
|
+
suggestionsContainerOpen: {
|
|
8
11
|
maxHeight: '230px',
|
|
9
12
|
overflowY: 'auto'
|
|
10
13
|
},
|
|
11
|
-
|
|
14
|
+
suggestionsList: {
|
|
12
15
|
margin: 0,
|
|
13
16
|
padding: 0,
|
|
14
17
|
listStyleType: 'none'
|
|
15
18
|
},
|
|
16
|
-
|
|
19
|
+
suggestionsItem: {
|
|
17
20
|
color: 'rgba(0,0,0,0.87)',
|
|
18
21
|
fontSize: '14px'
|
|
19
22
|
},
|
|
20
|
-
|
|
23
|
+
suggestionsItemText: {
|
|
24
|
+
overflow: 'hidden',
|
|
25
|
+
textOverflow: 'ellipsis',
|
|
26
|
+
display: 'block'
|
|
27
|
+
},
|
|
28
|
+
inputRoot: {
|
|
21
29
|
color: 'rgba(0,0,0,0.87)',
|
|
22
30
|
fontSize: '14px'
|
|
23
31
|
},
|
|
@@ -45,29 +53,21 @@ export var useStyles = makeStyles({
|
|
|
45
53
|
isCrossedOut: {
|
|
46
54
|
textDecoration: 'line-through'
|
|
47
55
|
},
|
|
48
|
-
|
|
56
|
+
multipleTextField: {
|
|
49
57
|
flexWrap: 'wrap',
|
|
50
58
|
color: 'rgba(0,0,0,0.87)',
|
|
51
59
|
fontSize: '14px'
|
|
52
60
|
},
|
|
53
|
-
|
|
61
|
+
multipleTextFieldInput: {
|
|
54
62
|
flex: '1 0 25px',
|
|
55
63
|
flexWrap: 'wrap'
|
|
56
64
|
},
|
|
57
|
-
|
|
65
|
+
multipleTextFieldAdornedStart: {
|
|
58
66
|
paddingLeft: '8px'
|
|
59
67
|
},
|
|
60
|
-
|
|
68
|
+
underline: {
|
|
61
69
|
'&:before': {
|
|
62
70
|
display: 'none'
|
|
63
71
|
}
|
|
64
|
-
},
|
|
65
|
-
'typeahead__suggestions-container': {
|
|
66
|
-
width: '100%'
|
|
67
|
-
},
|
|
68
|
-
'menuItem--item': {
|
|
69
|
-
overflow: 'hidden',
|
|
70
|
-
textOverflow: 'ellipsis',
|
|
71
|
-
display: 'block'
|
|
72
72
|
}
|
|
73
73
|
});
|
|
@@ -2,5 +2,5 @@ export declare const useStyles: (props?: any) => import("@mui/styles").ClassName
|
|
|
2
2
|
type StylesProps = {
|
|
3
3
|
color: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const useContributorStyles: (props: StylesProps) => import("@mui/styles").ClassNameMap<"
|
|
5
|
+
export declare const useContributorStyles: (props: StylesProps) => import("@mui/styles").ClassNameMap<"icon" | "active" | "inactive" | "clickable">;
|
|
6
6
|
export {};
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { useCallback, useEffect, useState } from 'react';
|
|
13
13
|
import { concat, difference, isEmpty, map, pipe, prop, reduce, reject, uniq } from 'ramda';
|
|
14
|
-
import {
|
|
14
|
+
import { FilterOptions, getFilteredEntities, isEntityUri, getEntity, ActivityFilter } from '@reltio/mdm-sdk';
|
|
15
15
|
import { useSafePromise } from './useSafePromise';
|
|
16
16
|
import { useMdmEntityUriWithDataTenant } from '../contexts';
|
|
17
17
|
var SELECT_OPTION = 'uri,label,type';
|
|
@@ -29,7 +29,7 @@ export var useCommentsEntitiesMap = function (comments) {
|
|
|
29
29
|
];
|
|
30
30
|
var requestOptions = {
|
|
31
31
|
max: entitiesUris.length,
|
|
32
|
-
activeness:
|
|
32
|
+
activeness: ActivityFilter.ALL,
|
|
33
33
|
select: 'uri,label,type'
|
|
34
34
|
};
|
|
35
35
|
return safePromise(getFilteredEntities(requestFilters, requestOptions));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActivityFilter, collectAllTransitiveEntitiesUris, getEntitiesMapForTransitiveMatches, getMatchesForDataTenantEntity, getMatchesFromDataTenants, getTransitiveMatches, isDataTenantEntity, isTempUri, withDtssPotentialItems, addGlobalFilterToQuery } from '@reltio/mdm-sdk';
|
|
3
3
|
import { usePagingSimulator } from './usePagingSimulator';
|
|
4
4
|
import { useSafePromise } from './useSafePromise';
|
|
5
5
|
import { useMdmDataTenants, useMdmDtssPath, useMdmGlobalSearchRequestOptions, useMdmTenant } from '../contexts';
|
|
@@ -15,8 +15,8 @@ export var useMatchesLoader = function (_a) {
|
|
|
15
15
|
var _f = useMdmGlobalSearchRequestOptions() || {}, activityFilter = _f.activityFilter, globalFilter = _f.globalFilter;
|
|
16
16
|
var activeness = typeof options.showInactiveEntities === 'boolean'
|
|
17
17
|
? options.showInactiveEntities
|
|
18
|
-
?
|
|
19
|
-
:
|
|
18
|
+
? ActivityFilter.ALL
|
|
19
|
+
: ActivityFilter.ACTIVE_ONLY
|
|
20
20
|
: activityFilter;
|
|
21
21
|
var entityUri = entity === null || entity === void 0 ? void 0 : entity.uri;
|
|
22
22
|
var dtssParams = useMemo(function () { return ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1668",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
10
10
|
"@react-google-maps/api": "2.7.0",
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1668",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|