@reltio/components 1.4.1174 → 1.4.1177
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/AttributesFiltersBuilder/AttributesFiltersBuilder.d.ts +1 -1
- package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +1 -1
- package/cjs/components/AttributesFiltersBuilder/components/MatchRulesSelector/MatchRulesSelector.d.ts +20 -0
- package/cjs/components/AttributesFiltersBuilder/components/MatchRulesSelector/MatchRulesSelector.js +54 -0
- package/cjs/components/AttributesFiltersBuilder/components/MultiValueSelector/MultiValueSelector.d.ts +18 -0
- package/cjs/components/AttributesFiltersBuilder/components/MultiValueSelector/MultiValueSelector.js +73 -0
- package/cjs/components/AttributesFiltersBuilder/components/MultiValueSelector/styles.d.ts +7 -0
- package/cjs/components/AttributesFiltersBuilder/components/MultiValueSelector/styles.js +35 -0
- package/cjs/components/AttributesFiltersBuilder/components/ValuesEditor/ValuesEditor.js +14 -5
- package/cjs/components/AttributesFiltersBuilder/components/ValuesEditor/styles.js +2 -2
- package/cjs/components/AttributesFiltersBuilder/helpers.d.ts +1 -1
- package/cjs/components/AttributesFiltersBuilder/helpers.js +13 -8
- package/cjs/components/AttributesFiltersBuilder/types.d.ts +3 -2
- package/cjs/components/AttributesFiltersButton/AttributesFiltersButton.d.ts +1 -1
- package/cjs/components/ReactSelect/MultiSelect/MultiSelect.d.ts +3 -0
- package/cjs/components/ReactSelect/MultiSelect/MultiSelect.js +2 -1
- package/cjs/components/ReactSelect/styles.d.ts +1 -1
- package/cjs/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.d.ts +1 -1
- package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/cjs/components/SmallIconButton/index.d.ts +2 -2
- package/cjs/components/commonReactSelectComponents/OptionWithCheckIcon/OptionWithCheckIcon.d.ts +10 -0
- package/cjs/components/{editors/DependentLookupEditor → commonReactSelectComponents/OptionWithCheckIcon}/OptionWithCheckIcon.js +2 -6
- package/cjs/components/commonReactSelectComponents/OptionWithCheckIcon/styles.d.ts +1 -0
- package/cjs/components/commonReactSelectComponents/OptionWithCheckIcon/styles.js +11 -0
- package/cjs/components/editors/DependentLookupEditor/DependentLookupEditor.js +1 -1
- package/cjs/components/editors/DependentLookupEditor/styles.d.ts +1 -1
- package/cjs/components/editors/DependentLookupEditor/styles.js +0 -5
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/cjs/hooks/useAPI/API.d.ts +1 -1
- package/cjs/hooks/useAPI/API.js +105 -32
- package/cjs/hooks/useAPI/helpers.d.ts +1 -0
- package/cjs/hooks/useAPI/helpers.js +7 -3
- package/cjs/hooks/useAPI/types.d.ts +1 -0
- package/cjs/hooks/useAPI/useAPI.js +3 -1
- package/cjs/hooks/useCustomScripts.js +2 -0
- package/cjs/hooks/useMatchesLoader.d.ts +3 -2
- package/cjs/hooks/useMatchesLoader.js +7 -3
- package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.d.ts +1 -1
- package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +1 -1
- package/esm/components/AttributesFiltersBuilder/components/MatchRulesSelector/MatchRulesSelector.d.ts +20 -0
- package/esm/components/AttributesFiltersBuilder/components/MatchRulesSelector/MatchRulesSelector.js +29 -0
- package/esm/components/AttributesFiltersBuilder/components/MultiValueSelector/MultiValueSelector.d.ts +18 -0
- package/esm/components/AttributesFiltersBuilder/components/MultiValueSelector/MultiValueSelector.js +49 -0
- package/esm/components/AttributesFiltersBuilder/components/MultiValueSelector/styles.d.ts +7 -0
- package/esm/components/AttributesFiltersBuilder/components/MultiValueSelector/styles.js +32 -0
- package/esm/components/AttributesFiltersBuilder/components/ValuesEditor/ValuesEditor.js +15 -6
- package/esm/components/AttributesFiltersBuilder/components/ValuesEditor/styles.js +2 -2
- package/esm/components/AttributesFiltersBuilder/helpers.d.ts +1 -1
- package/esm/components/AttributesFiltersBuilder/helpers.js +13 -8
- package/esm/components/AttributesFiltersBuilder/types.d.ts +3 -2
- package/esm/components/AttributesFiltersButton/AttributesFiltersButton.d.ts +1 -1
- package/esm/components/ReactSelect/MultiSelect/MultiSelect.d.ts +3 -0
- package/esm/components/ReactSelect/MultiSelect/MultiSelect.js +2 -1
- package/esm/components/ReactSelect/styles.d.ts +1 -1
- package/esm/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.d.ts +1 -1
- package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/esm/components/SmallIconButton/index.d.ts +2 -2
- package/esm/components/commonReactSelectComponents/OptionWithCheckIcon/OptionWithCheckIcon.d.ts +10 -0
- package/esm/components/{editors/DependentLookupEditor → commonReactSelectComponents/OptionWithCheckIcon}/OptionWithCheckIcon.js +2 -6
- package/esm/components/commonReactSelectComponents/OptionWithCheckIcon/styles.d.ts +1 -0
- package/esm/components/commonReactSelectComponents/OptionWithCheckIcon/styles.js +8 -0
- package/esm/components/editors/DependentLookupEditor/DependentLookupEditor.js +1 -1
- package/esm/components/editors/DependentLookupEditor/styles.d.ts +1 -1
- package/esm/components/editors/DependentLookupEditor/styles.js +0 -5
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/esm/hooks/useAPI/API.d.ts +1 -1
- package/esm/hooks/useAPI/API.js +106 -33
- package/esm/hooks/useAPI/helpers.d.ts +1 -0
- package/esm/hooks/useAPI/helpers.js +5 -2
- package/esm/hooks/useAPI/types.d.ts +1 -0
- package/esm/hooks/useAPI/useAPI.js +3 -1
- package/esm/hooks/useCustomScripts.js +2 -0
- package/esm/hooks/useMatchesLoader.d.ts +3 -2
- package/esm/hooks/useMatchesLoader.js +7 -3
- package/package.json +3 -3
- package/cjs/components/editors/DependentLookupEditor/OptionWithCheckIcon.d.ts +0 -9
- package/esm/components/editors/DependentLookupEditor/OptionWithCheckIcon.d.ts +0 -9
|
@@ -57,6 +57,7 @@ export var useCustomScripts = function (config, _a) {
|
|
|
57
57
|
var metadata = useSelector(mdmModule.selectors.getMetadata) || {};
|
|
58
58
|
var entity = useSelector(mdmModule.selectors.getEntity) || {};
|
|
59
59
|
var uiPath = useSelector(mdmModule.selectors.getUIPath);
|
|
60
|
+
var servicesPath = useSelector(mdmModule.selectors.getServicesPath);
|
|
60
61
|
var reltioPath = useSelector(mdmModule.selectors.getReltioPath);
|
|
61
62
|
var tenant = useSelector(mdmModule.selectors.getTenant);
|
|
62
63
|
var workerUrl = getWorkerURL(uiPath, tenant);
|
|
@@ -92,6 +93,7 @@ export var useCustomScripts = function (config, _a) {
|
|
|
92
93
|
config: config,
|
|
93
94
|
user: user,
|
|
94
95
|
apiPath: apiPath,
|
|
96
|
+
servicesPath: servicesPath,
|
|
95
97
|
tenant: tenant,
|
|
96
98
|
workflowPath: workflowPath,
|
|
97
99
|
entity: entity,
|
|
@@ -3,6 +3,7 @@ declare type Props = {
|
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
entity: Entity;
|
|
5
5
|
filter: string;
|
|
6
|
+
rules?: string;
|
|
6
7
|
onFinishLoading?: () => void;
|
|
7
8
|
onStartLoading?: () => void;
|
|
8
9
|
options: {
|
|
@@ -17,11 +18,11 @@ declare type Props = {
|
|
|
17
18
|
};
|
|
18
19
|
markMatchedValues?: boolean;
|
|
19
20
|
};
|
|
20
|
-
export declare const useMatchesLoader: ({ enabled, entity, filter, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting, markMatchedValues }: Props) => {
|
|
21
|
+
export declare const useMatchesLoader: ({ enabled, entity, filter, rules, onFinishLoading, onStartLoading, options, page, rowsPerPage, sorting, markMatchedValues }: Props) => {
|
|
21
22
|
total: number;
|
|
22
23
|
matches: PotentialMatch[];
|
|
23
24
|
entitiesMap: {
|
|
24
|
-
[key: string]: Pick<Entity, "
|
|
25
|
+
[key: string]: Pick<Entity, "type" | "uri" | "label">;
|
|
25
26
|
};
|
|
26
27
|
loadMatches: () => void;
|
|
27
28
|
};
|
|
@@ -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, markMatchedValues = _a.markMatchedValues;
|
|
9
|
+
var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, rules = _a.rules, 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];
|
|
@@ -58,6 +58,7 @@ export var useMatchesLoader = function (_a) {
|
|
|
58
58
|
offset: page * rowsPerPage,
|
|
59
59
|
max: rowsPerPage,
|
|
60
60
|
filter: addGlobalFilterToQuery(globalFilter, filter) || '',
|
|
61
|
+
rules: rules,
|
|
61
62
|
sort: field,
|
|
62
63
|
order: order,
|
|
63
64
|
force: force,
|
|
@@ -77,7 +78,9 @@ export var useMatchesLoader = function (_a) {
|
|
|
77
78
|
.finally(function () {
|
|
78
79
|
onFinishLoading === null || onFinishLoading === void 0 ? void 0 : onFinishLoading();
|
|
79
80
|
});
|
|
80
|
-
},
|
|
81
|
+
},
|
|
82
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
83
|
+
[
|
|
81
84
|
globalFilter,
|
|
82
85
|
activeness,
|
|
83
86
|
dtssPath,
|
|
@@ -85,6 +88,7 @@ export var useMatchesLoader = function (_a) {
|
|
|
85
88
|
entityUri,
|
|
86
89
|
field,
|
|
87
90
|
filter,
|
|
91
|
+
rules,
|
|
88
92
|
markMatchedValues,
|
|
89
93
|
getPagedMatchesForDataTenantEntity,
|
|
90
94
|
getTransitiveMatchesWithPaging,
|
|
@@ -96,7 +100,7 @@ export var useMatchesLoader = function (_a) {
|
|
|
96
100
|
rowsPerPage,
|
|
97
101
|
safePromise,
|
|
98
102
|
tenant
|
|
99
|
-
]);
|
|
103
|
+
]);
|
|
100
104
|
useEffect(function () {
|
|
101
105
|
getMatches();
|
|
102
106
|
}, [getMatches]);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1177",
|
|
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.1177",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1177",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default OptionWithCheckIcon;
|
|
2
|
-
declare function OptionWithCheckIcon(props: any): JSX.Element;
|
|
3
|
-
declare namespace OptionWithCheckIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
const isSelected: PropTypes.Validator<boolean>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default OptionWithCheckIcon;
|
|
2
|
-
declare function OptionWithCheckIcon(props: any): JSX.Element;
|
|
3
|
-
declare namespace OptionWithCheckIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
const isSelected: PropTypes.Validator<boolean>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|