@reltio/components 1.4.1768 → 1.4.1769
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/ReadableSearchQuery/ReadableSearchQuery.d.ts +8 -0
- package/cjs/components/ReadableSearchQuery/ReadableSearchQuery.js +63 -0
- package/cjs/components/ReadableSearchQuery/styles.d.ts +2 -0
- package/cjs/components/ReadableSearchQuery/styles.js +33 -0
- package/cjs/components/activityLog/activities/SearchActivity.js +2 -2
- package/cjs/components/index.d.ts +1 -0
- package/cjs/components/index.js +3 -1
- package/cjs/hooks/useReadableSearchState.d.ts +4 -1
- package/cjs/hooks/useReadableSearchState.js +4 -1
- package/esm/components/ReadableSearchQuery/ReadableSearchQuery.d.ts +8 -0
- package/esm/components/ReadableSearchQuery/ReadableSearchQuery.js +35 -0
- package/esm/components/ReadableSearchQuery/styles.d.ts +2 -0
- package/esm/components/ReadableSearchQuery/styles.js +30 -0
- package/esm/components/activityLog/activities/SearchActivity.js +2 -2
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.js +1 -0
- package/esm/hooks/useReadableSearchState.d.ts +4 -1
- package/esm/hooks/useReadableSearchState.js +5 -2
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReadableQueryPrimitive } from '@reltio/mdm-sdk';
|
|
3
|
+
type Props = {
|
|
4
|
+
readableQuery?: ReadableQueryPrimitive[];
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ReadableSearchQuery: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
export default ReadableSearchQuery;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
var react_1 = __importStar(require("react"));
|
|
52
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
53
|
+
var styles_1 = require("./styles");
|
|
54
|
+
var ReadableSearchQuery = (0, react_1.forwardRef)(function (_a, ref) {
|
|
55
|
+
var _b = _a.readableQuery, readableQuery = _b === void 0 ? [] : _b, className = _a.className, otherProps = __rest(_a, ["readableQuery", "className"]);
|
|
56
|
+
var styles = (0, styles_1.useStyles)();
|
|
57
|
+
return (react_1.default.createElement("span", __assign({ ref: ref, className: (0, classnames_1.default)(styles.query, className), "data-reltio-id": "search-readable-query" }, otherProps), readableQuery.map(function (_a, i) {
|
|
58
|
+
var type = _a.type, text = _a.text;
|
|
59
|
+
return (react_1.default.createElement("span", { key: i, className: styles[type] }, text));
|
|
60
|
+
})));
|
|
61
|
+
});
|
|
62
|
+
ReadableSearchQuery.displayName = 'ReadableSearchQuery';
|
|
63
|
+
exports.default = ReadableSearchQuery;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var styles_1 = require("@mui/styles");
|
|
5
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
6
|
+
var useStyles = (0, styles_1.makeStyles)(function (theme) {
|
|
7
|
+
var _a;
|
|
8
|
+
return (_a = {
|
|
9
|
+
query: {
|
|
10
|
+
color: theme.palette.text.secondary,
|
|
11
|
+
fontSize: '12px',
|
|
12
|
+
letterSpacing: 0,
|
|
13
|
+
lineHeight: '16px'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
_a[mdm_sdk_1.READABLE_QUERY_PRIMITIVE_TYPES.entityTypeLabel] = {
|
|
17
|
+
color: '#03904A'
|
|
18
|
+
},
|
|
19
|
+
_a[mdm_sdk_1.READABLE_QUERY_PRIMITIVE_TYPES.attributeLabel] = {
|
|
20
|
+
color: '#059BEA'
|
|
21
|
+
},
|
|
22
|
+
_a[mdm_sdk_1.READABLE_QUERY_PRIMITIVE_TYPES.specialAttributeLabel] = {
|
|
23
|
+
color: '#EA05CF'
|
|
24
|
+
},
|
|
25
|
+
_a[mdm_sdk_1.READABLE_QUERY_PRIMITIVE_TYPES.attributeFilter] = {
|
|
26
|
+
color: '#7F00FF'
|
|
27
|
+
},
|
|
28
|
+
_a[mdm_sdk_1.READABLE_QUERY_PRIMITIVE_TYPES.attributeValue] = {
|
|
29
|
+
color: '#000000'
|
|
30
|
+
},
|
|
31
|
+
_a);
|
|
32
|
+
});
|
|
33
|
+
exports.useStyles = useStyles;
|
|
@@ -43,8 +43,8 @@ var SearchActivity = function (_a) {
|
|
|
43
43
|
return searchData.version === '2.0' ? searchData.activity.uiState : searchData;
|
|
44
44
|
}, [data.description]);
|
|
45
45
|
var handleOpenSearch = (0, ramda_1.pipe)((0, ramda_1.always)(searchState), openSearch);
|
|
46
|
-
var
|
|
46
|
+
var readableQueryString = (0, hooks_1.useReadableSearchState)(searchState).readableQueryString;
|
|
47
47
|
return (react_1.default.createElement(ActivityTitle_1.default, { type: type },
|
|
48
|
-
react_1.default.createElement("span", { className: styles.link, onClick: handleOpenSearch },
|
|
48
|
+
react_1.default.createElement("span", { className: styles.link, onClick: handleOpenSearch }, readableQueryString || ui_i18n_1.default.text('all profiles'))));
|
|
49
49
|
};
|
|
50
50
|
exports.default = SearchActivity;
|
|
@@ -158,3 +158,4 @@ export { default as StepNavigation } from './StepNavigation/StepNavigation';
|
|
|
158
158
|
export { TableSkeleton } from './TableSkeleton/TableSkeleton';
|
|
159
159
|
export { default as LogicOperator } from './LogicOperator/LogicOperator';
|
|
160
160
|
export { default as ActionsPanel } from './ActionsPanel/ActionsPanel';
|
|
161
|
+
export { default as ReadableSearchQuery } from './ReadableSearchQuery/ReadableSearchQuery';
|
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.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.SimpleMatchRulesBuilder = exports.SimpleMatchRulesBlock = exports.SimpleMatchRules = 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.ExternalInvalidRelations = 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.HierarchyNodeTitle = exports.DataTenantBadge = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = 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 = exports.SelectionPopup = exports.useKeyboardNavigation = exports.WhiteSearchInput = void 0;
|
|
23
|
-
exports.ActionsPanel = exports.LogicOperator = exports.TableSkeleton = exports.StepNavigation = exports.TenantLabel = exports.MultilineMenuItem = exports.RelevanceScoreBadge = exports.RequiredMark = void 0;
|
|
23
|
+
exports.ReadableSearchQuery = exports.ActionsPanel = exports.LogicOperator = exports.TableSkeleton = exports.StepNavigation = exports.TenantLabel = exports.MultilineMenuItem = exports.RelevanceScoreBadge = exports.RequiredMark = 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; } });
|
|
@@ -339,3 +339,5 @@ var LogicOperator_1 = require("./LogicOperator/LogicOperator");
|
|
|
339
339
|
Object.defineProperty(exports, "LogicOperator", { enumerable: true, get: function () { return __importDefault(LogicOperator_1).default; } });
|
|
340
340
|
var ActionsPanel_1 = require("./ActionsPanel/ActionsPanel");
|
|
341
341
|
Object.defineProperty(exports, "ActionsPanel", { enumerable: true, get: function () { return __importDefault(ActionsPanel_1).default; } });
|
|
342
|
+
var ReadableSearchQuery_1 = require("./ReadableSearchQuery/ReadableSearchQuery");
|
|
343
|
+
Object.defineProperty(exports, "ReadableSearchQuery", { enumerable: true, get: function () { return __importDefault(ReadableSearchQuery_1).default; } });
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { SearchState } from '@reltio/mdm-sdk';
|
|
2
|
-
export declare const useReadableSearchState: (searchState: SearchState) =>
|
|
2
|
+
export declare const useReadableSearchState: (searchState: SearchState) => {
|
|
3
|
+
readableQuery: import("@reltio/mdm-sdk").ReadableQueryPrimitive[];
|
|
4
|
+
readableQueryString: string;
|
|
5
|
+
};
|
|
@@ -23,6 +23,9 @@ var useReadableSearchState = function (searchState) {
|
|
|
23
23
|
}), mdm_sdk_1.resolveLookupsList, (0, ramda_1.andThen)(lookupsListResolved))(unresolvedLookups);
|
|
24
24
|
}
|
|
25
25
|
}, [searchState]); // eslint-disable-line
|
|
26
|
-
return
|
|
26
|
+
return {
|
|
27
|
+
readableQuery: (0, mdm_sdk_1.buildReadableQuery)(metadata, attributesPresentation, lookups, groups, keyword, map),
|
|
28
|
+
readableQueryString: (0, mdm_sdk_1.buildReadableQueryToString)(metadata, attributesPresentation, lookups, groups, keyword, map)
|
|
29
|
+
};
|
|
27
30
|
};
|
|
28
31
|
exports.useReadableSearchState = useReadableSearchState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReadableQueryPrimitive } from '@reltio/mdm-sdk';
|
|
3
|
+
type Props = {
|
|
4
|
+
readableQuery?: ReadableQueryPrimitive[];
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ReadableSearchQuery: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
export default ReadableSearchQuery;
|
|
@@ -0,0 +1,35 @@
|
|
|
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, { forwardRef } from 'react';
|
|
24
|
+
import classnames from 'classnames';
|
|
25
|
+
import { useStyles } from './styles';
|
|
26
|
+
var ReadableSearchQuery = forwardRef(function (_a, ref) {
|
|
27
|
+
var _b = _a.readableQuery, readableQuery = _b === void 0 ? [] : _b, className = _a.className, otherProps = __rest(_a, ["readableQuery", "className"]);
|
|
28
|
+
var styles = useStyles();
|
|
29
|
+
return (React.createElement("span", __assign({ ref: ref, className: classnames(styles.query, className), "data-reltio-id": "search-readable-query" }, otherProps), readableQuery.map(function (_a, i) {
|
|
30
|
+
var type = _a.type, text = _a.text;
|
|
31
|
+
return (React.createElement("span", { key: i, className: styles[type] }, text));
|
|
32
|
+
})));
|
|
33
|
+
});
|
|
34
|
+
ReadableSearchQuery.displayName = 'ReadableSearchQuery';
|
|
35
|
+
export default ReadableSearchQuery;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { makeStyles } from '@mui/styles';
|
|
2
|
+
import { READABLE_QUERY_PRIMITIVE_TYPES } from '@reltio/mdm-sdk';
|
|
3
|
+
var useStyles = makeStyles(function (theme) {
|
|
4
|
+
var _a;
|
|
5
|
+
return (_a = {
|
|
6
|
+
query: {
|
|
7
|
+
color: theme.palette.text.secondary,
|
|
8
|
+
fontSize: '12px',
|
|
9
|
+
letterSpacing: 0,
|
|
10
|
+
lineHeight: '16px'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
_a[READABLE_QUERY_PRIMITIVE_TYPES.entityTypeLabel] = {
|
|
14
|
+
color: '#03904A'
|
|
15
|
+
},
|
|
16
|
+
_a[READABLE_QUERY_PRIMITIVE_TYPES.attributeLabel] = {
|
|
17
|
+
color: '#059BEA'
|
|
18
|
+
},
|
|
19
|
+
_a[READABLE_QUERY_PRIMITIVE_TYPES.specialAttributeLabel] = {
|
|
20
|
+
color: '#EA05CF'
|
|
21
|
+
},
|
|
22
|
+
_a[READABLE_QUERY_PRIMITIVE_TYPES.attributeFilter] = {
|
|
23
|
+
color: '#7F00FF'
|
|
24
|
+
},
|
|
25
|
+
_a[READABLE_QUERY_PRIMITIVE_TYPES.attributeValue] = {
|
|
26
|
+
color: '#000000'
|
|
27
|
+
},
|
|
28
|
+
_a);
|
|
29
|
+
});
|
|
30
|
+
export { useStyles };
|
|
@@ -15,8 +15,8 @@ var SearchActivity = function (_a) {
|
|
|
15
15
|
return searchData.version === '2.0' ? searchData.activity.uiState : searchData;
|
|
16
16
|
}, [data.description]);
|
|
17
17
|
var handleOpenSearch = pipe(always(searchState), openSearch);
|
|
18
|
-
var
|
|
18
|
+
var readableQueryString = useReadableSearchState(searchState).readableQueryString;
|
|
19
19
|
return (React.createElement(ActivityTitle, { type: type },
|
|
20
|
-
React.createElement("span", { className: styles.link, onClick: handleOpenSearch },
|
|
20
|
+
React.createElement("span", { className: styles.link, onClick: handleOpenSearch }, readableQueryString || i18n.text('all profiles'))));
|
|
21
21
|
};
|
|
22
22
|
export default SearchActivity;
|
|
@@ -158,3 +158,4 @@ export { default as StepNavigation } from './StepNavigation/StepNavigation';
|
|
|
158
158
|
export { TableSkeleton } from './TableSkeleton/TableSkeleton';
|
|
159
159
|
export { default as LogicOperator } from './LogicOperator/LogicOperator';
|
|
160
160
|
export { default as ActionsPanel } from './ActionsPanel/ActionsPanel';
|
|
161
|
+
export { default as ReadableSearchQuery } from './ReadableSearchQuery/ReadableSearchQuery';
|
package/esm/components/index.js
CHANGED
|
@@ -158,3 +158,4 @@ export { default as StepNavigation } from './StepNavigation/StepNavigation';
|
|
|
158
158
|
export { TableSkeleton } from './TableSkeleton/TableSkeleton';
|
|
159
159
|
export { default as LogicOperator } from './LogicOperator/LogicOperator';
|
|
160
160
|
export { default as ActionsPanel } from './ActionsPanel/ActionsPanel';
|
|
161
|
+
export { default as ReadableSearchQuery } from './ReadableSearchQuery/ReadableSearchQuery';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { SearchState } from '@reltio/mdm-sdk';
|
|
2
|
-
export declare const useReadableSearchState: (searchState: SearchState) =>
|
|
2
|
+
export declare const useReadableSearchState: (searchState: SearchState) => {
|
|
3
|
+
readableQuery: import("@reltio/mdm-sdk").ReadableQueryPrimitive[];
|
|
4
|
+
readableQueryString: string;
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { andThen, chain, pipe } from 'ramda';
|
|
3
|
-
import { buildReadableQueryToString, getKeywordFromSearchState, getUnresolvedLookupsListFromSearchGroups, resolveLookupsList, getGroupsFromSearchState } from '@reltio/mdm-sdk';
|
|
3
|
+
import { buildReadableQueryToString, getKeywordFromSearchState, getUnresolvedLookupsListFromSearchGroups, resolveLookupsList, getGroupsFromSearchState, buildReadableQuery } from '@reltio/mdm-sdk';
|
|
4
4
|
import { useMdmAction, useMdmAttributesPresentation, useMdmDataTenants, useMdmLookups, useMdmMetadata } from '../contexts';
|
|
5
5
|
export var useReadableSearchState = function (searchState) {
|
|
6
6
|
var lookupsListResolved = useMdmAction('lookupsListResolved');
|
|
@@ -20,5 +20,8 @@ export var useReadableSearchState = function (searchState) {
|
|
|
20
20
|
}), resolveLookupsList, andThen(lookupsListResolved))(unresolvedLookups);
|
|
21
21
|
}
|
|
22
22
|
}, [searchState]); // eslint-disable-line
|
|
23
|
-
return
|
|
23
|
+
return {
|
|
24
|
+
readableQuery: buildReadableQuery(metadata, attributesPresentation, lookups, groups, keyword, map),
|
|
25
|
+
readableQueryString: buildReadableQueryToString(metadata, attributesPresentation, lookups, groups, keyword, map)
|
|
26
|
+
};
|
|
24
27
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1769",
|
|
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
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.1745",
|
|
11
11
|
"classnames": "^2.2.5",
|
|
12
12
|
"d3-cloud": "^1.2.5",
|
|
13
13
|
"d3-geo": "^2.0.1",
|