@reltio/components 1.4.1988 → 1.4.1990
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/ActionsPanel/ActionsPanel.test.js +1 -1
- package/cjs/ActionsPanel/types.d.ts +2 -1
- package/cjs/AttributesFiltersBuilder/components/AttributeSelector/AttributeSelector.js +1 -1
- package/cjs/AttributesFiltersButton/AttributesFiltersButton.js +3 -3
- package/cjs/AttributesFiltersButton/AttributesFiltersButton.test.js +2 -2
- package/cjs/AutoSizeList/AutoSizeList.js +6 -6
- package/cjs/BooleanRadioEditor/BooleanRadioEditor.test.js +2 -2
- package/cjs/DataTypeValueEditor/useEditorContext.test.js +17 -0
- package/cjs/DependentLookupEditor/DependentLookupEditor.js +2 -1
- package/cjs/DependentLookupEditor/DependentLookupEditor.test.js +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.js +6 -1
- package/cjs/DropDownSelector/DropDownSelector.test.js +0 -5
- package/cjs/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.test.js +1 -1
- package/cjs/EditModeAttributesList/EditModeAttributesList.test.js +1 -6
- package/cjs/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.test.js +2 -0
- package/cjs/EditModeComplexAttribute/EditModeComplexAttribute.test.js +2 -6
- package/cjs/EmptyState/EmptyState.test.js +1 -1
- package/cjs/EntitySelector/EntitySelector.test.js +237 -113
- package/cjs/ErrorBoundary/ErrorBoundary.test.js +2 -2
- package/cjs/HOCs/withFilter/components/ColumnFilter/ColumnFilter.js +6 -1
- package/cjs/ImageAttributesLine/types.d.ts +2 -1
- package/cjs/ImageDetailsView/helpers.test.js +0 -5
- package/cjs/ImportButton/ImportButton.test.js +1 -1
- package/cjs/InlineSimpleAttributeEditor/InlineSimpleAttributeEditor.test.js +1 -1
- package/cjs/MapChart/MapChart.js +1 -0
- package/cjs/Marginator/Marginator.d.ts +1 -1
- package/cjs/MultiSelect/MultiSelect.js +1 -1
- package/cjs/MultipliableSelect/MultipliableSelect.js +1 -3
- package/cjs/PivotingTooltip/components/PivotingTooltipContent/PivotingTooltipContent.test.js +1 -1
- package/cjs/ProfileBand/ProfileBand.js +1 -1
- package/cjs/ProfilesList/ProfilesList.spec.js +1 -2
- package/cjs/RCTree/RCTree.d.ts +2 -2
- package/cjs/RCTree/RCTree.js +0 -3
- package/cjs/ReactSortableTree/ReactSortableTree.js +2 -2
- package/cjs/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +1 -3
- package/cjs/ReactSortableTree/components/TreeNode/TreeNode.js +1 -3
- package/cjs/ReactSortableTree/components/TreePlaceholder/TreePlaceholder.js +0 -1
- package/cjs/ReactSortableTree/helpers/generic.js +0 -1
- package/cjs/ReactSortableTree/helpers/tree.js +1 -1
- package/cjs/ReadOnlyAttributeValuesBlock/ReadOnlyAttributeValuesBlock.d.ts +2 -2
- package/cjs/ReadOnlyAttributeValuesBlock/ReadOnlyAttributeValuesBlock.test.js +2 -2
- package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.test.js +1 -6
- package/cjs/ReadOnlyAttributesPager/ReadOnlyAttributesPager.test.js +3 -3
- package/cjs/RelationEditor/IntegrationRelationEditor.test.js +1 -1
- package/cjs/ReltioMap/ReltioMap.d.ts +1 -1
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.test.js +0 -1
- package/cjs/TableSkeleton/TableSkeleton.d.ts +1 -1
- package/cjs/TagsEditor/TagsEditor.test.js +16 -0
- package/cjs/TenantLabel/TenantLabel.spec.js +3 -3
- package/cjs/TypeaheadEditor/TypeaheadEditor.js +21 -6
- package/cjs/TypeaheadEditor/TypeaheadEditor.test.js +21 -0
- package/cjs/VirtualGroupedList/VirtualGroupedList.js +14 -5
- package/cjs/VirtualGroupedList/VirtualGroupedList.spec.js +2 -2
- package/cjs/VirtualGroupedList/useScrollToFocusItem.test.js +2 -2
- package/cjs/features/activity-log/utils/filters.test.js +1 -1
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.js +8 -2
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +2 -2
- package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +1 -1
- package/cjs/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.js +6 -1
- package/cjs/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.js +0 -3
- package/cjs/features/crosswalks/AttributesTable/types.d.ts +2 -1
- package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +1 -1
- package/cjs/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +1 -1
- package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.js +4 -5
- package/cjs/features/history/HistoryFilterButton/HistoryFilterButton.js +6 -3
- package/cjs/features/history/HistoryTree/HistoryTree.js +5 -1
- package/cjs/features/history/hooks/useHistoryTree.js +6 -3
- package/cjs/features/workflow/AddWorkflowButton/AddWorkflowButton.spec.js +2 -2
- package/cjs/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +1 -1
- package/cjs/features/workflow/WorkflowTaskCard/WorkflowTaskCard.test.js +8 -8
- package/cjs/features/workflow/WorkflowTaskCard/components/DataChangeRequestTaskCard/DataChangeRequestTaskCard.spec.js +0 -1
- package/cjs/features/workflow/WorkflowTaskCard/components/PotentialMatchTaskCard/PotentialMatchTaskCard.spec.js +2 -2
- package/cjs/features/workflow/hooks/useWorkflowAssignee.js +2 -1
- package/cjs/helpers/customScript.test.js +8 -8
- package/cjs/hooks/useKeyboardNavigation/useKeyboardNavigation.js +5 -3
- package/cjs/hooks/useMarkAsNotMatchRequest/useMarkAsNotMatchRequest.js +2 -1
- package/cjs/hooks/useMatchesColumnsData/helpers.js +3 -4
- package/cjs/hooks/useMergeAllRequest/useMergeAllRequest.js +2 -1
- package/cjs/hooks/usePagingSimulator/helpers.js +0 -1
- package/cjs/hooks/useSavedSearchesRequest/useSavedSearchesRequest.js +7 -2
- package/cjs/icons/AIPowered.d.ts +1 -2
- package/cjs/test-utils/TestStylesProvider.js +1 -2
- package/cjs/types/basicTable.d.ts +2 -2
- package/cjs/types/index.d.ts +1 -1
- package/esm/ActionsPanel/ActionsPanel.test.js +1 -1
- package/esm/ActionsPanel/types.d.ts +2 -1
- package/esm/AttributesFiltersBuilder/components/AttributeSelector/AttributeSelector.js +1 -1
- package/esm/AttributesFiltersButton/AttributesFiltersButton.js +3 -3
- package/esm/AttributesFiltersButton/AttributesFiltersButton.test.js +2 -2
- package/esm/AutoSizeList/AutoSizeList.js +6 -6
- package/esm/BooleanRadioEditor/BooleanRadioEditor.test.js +2 -2
- package/esm/DataTypeValueEditor/useEditorContext.test.js +17 -0
- package/esm/DependentLookupEditor/DependentLookupEditor.js +2 -1
- package/esm/DependentLookupEditor/DependentLookupEditor.test.js +1 -1
- package/esm/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/esm/DropDownMenuButton/DropDownMenuButton.js +6 -1
- package/esm/DropDownSelector/DropDownSelector.test.js +0 -5
- package/esm/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.test.js +1 -1
- package/esm/EditModeAttributesList/EditModeAttributesList.test.js +1 -6
- package/esm/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.test.js +2 -0
- package/esm/EditModeComplexAttribute/EditModeComplexAttribute.test.js +2 -6
- package/esm/EmptyState/EmptyState.test.js +1 -1
- package/esm/EntitySelector/EntitySelector.test.js +237 -113
- package/esm/ErrorBoundary/ErrorBoundary.test.js +2 -2
- package/esm/HOCs/withFilter/components/ColumnFilter/ColumnFilter.js +6 -1
- package/esm/ImageAttributesLine/types.d.ts +2 -1
- package/esm/ImageDetailsView/helpers.test.js +0 -5
- package/esm/ImportButton/ImportButton.test.js +1 -1
- package/esm/InlineSimpleAttributeEditor/InlineSimpleAttributeEditor.test.js +1 -1
- package/esm/MapChart/MapChart.js +1 -0
- package/esm/Marginator/Marginator.d.ts +1 -1
- package/esm/MultiSelect/MultiSelect.js +1 -1
- package/esm/MultipliableSelect/MultipliableSelect.js +1 -3
- package/esm/PivotingTooltip/components/PivotingTooltipContent/PivotingTooltipContent.test.js +1 -1
- package/esm/ProfileBand/ProfileBand.js +1 -1
- package/esm/ProfilesList/ProfilesList.spec.js +1 -2
- package/esm/RCTree/RCTree.d.ts +2 -2
- package/esm/RCTree/RCTree.js +0 -3
- package/esm/ReactSortableTree/ReactSortableTree.js +2 -2
- package/esm/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +1 -3
- package/esm/ReactSortableTree/components/TreeNode/TreeNode.js +1 -3
- package/esm/ReactSortableTree/components/TreePlaceholder/TreePlaceholder.js +0 -1
- package/esm/ReactSortableTree/helpers/generic.js +0 -1
- package/esm/ReactSortableTree/helpers/tree.js +1 -1
- package/esm/ReadOnlyAttributeValuesBlock/ReadOnlyAttributeValuesBlock.d.ts +2 -2
- package/esm/ReadOnlyAttributeValuesBlock/ReadOnlyAttributeValuesBlock.test.js +2 -2
- package/esm/ReadOnlyAttributesList/ReadOnlyAttributesList.test.js +1 -6
- package/esm/ReadOnlyAttributesPager/ReadOnlyAttributesPager.test.js +3 -3
- package/esm/RelationEditor/IntegrationRelationEditor.test.js +1 -1
- package/esm/ReltioMap/ReltioMap.d.ts +1 -1
- package/esm/SimpleAttributeEditor/SimpleAttributeEditor.test.js +0 -1
- package/esm/TableSkeleton/TableSkeleton.d.ts +1 -1
- package/esm/TagsEditor/TagsEditor.test.js +16 -0
- package/esm/TenantLabel/TenantLabel.spec.js +3 -3
- package/esm/TypeaheadEditor/TypeaheadEditor.js +21 -6
- package/esm/TypeaheadEditor/TypeaheadEditor.test.js +21 -0
- package/esm/VirtualGroupedList/VirtualGroupedList.js +14 -5
- package/esm/VirtualGroupedList/VirtualGroupedList.spec.js +2 -2
- package/esm/VirtualGroupedList/useScrollToFocusItem.test.js +2 -2
- package/esm/features/activity-log/utils/filters.test.js +1 -1
- package/esm/features/crosswalks/AttributesTable/AttributesTable.js +8 -2
- package/esm/features/crosswalks/AttributesTable/AttributesTable.test.js +2 -2
- package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +1 -1
- package/esm/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.js +6 -1
- package/esm/features/crosswalks/AttributesTable/components/RuleTypeInfoButton/RuleTypeInfoButton.js +0 -3
- package/esm/features/crosswalks/AttributesTable/types.d.ts +2 -1
- package/esm/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +1 -1
- package/esm/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +1 -1
- package/esm/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.js +2 -3
- package/esm/features/history/HistoryFilterButton/HistoryFilterButton.js +6 -3
- package/esm/features/history/HistoryTree/HistoryTree.js +5 -1
- package/esm/features/history/hooks/useHistoryTree.js +6 -3
- package/esm/features/workflow/AddWorkflowButton/AddWorkflowButton.spec.js +2 -2
- package/esm/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +1 -1
- package/esm/features/workflow/WorkflowTaskCard/WorkflowTaskCard.test.js +8 -8
- package/esm/features/workflow/WorkflowTaskCard/components/DataChangeRequestTaskCard/DataChangeRequestTaskCard.spec.js +0 -1
- package/esm/features/workflow/WorkflowTaskCard/components/PotentialMatchTaskCard/PotentialMatchTaskCard.spec.js +2 -2
- package/esm/features/workflow/hooks/useWorkflowAssignee.js +2 -1
- package/esm/helpers/customScript.test.js +8 -8
- package/esm/hooks/useKeyboardNavigation/useKeyboardNavigation.js +5 -3
- package/esm/hooks/useMarkAsNotMatchRequest/useMarkAsNotMatchRequest.js +2 -1
- package/esm/hooks/useMatchesColumnsData/helpers.js +1 -2
- package/esm/hooks/useMergeAllRequest/useMergeAllRequest.js +2 -1
- package/esm/hooks/usePagingSimulator/helpers.js +0 -1
- package/esm/hooks/useSavedSearchesRequest/useSavedSearchesRequest.js +7 -2
- package/esm/icons/AIPowered.d.ts +1 -2
- package/esm/test-utils/TestStylesProvider.js +1 -2
- package/esm/types/basicTable.d.ts +2 -2
- package/esm/types/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -51,9 +51,12 @@ export var HistoryFilterButton = function (_a) {
|
|
|
51
51
|
setIsOpen(function (open) { return !open; });
|
|
52
52
|
}, []);
|
|
53
53
|
var applyButtonHandler = useCallback(function () {
|
|
54
|
-
dateRange && isDateRangeValid(dateRange)
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
if (dateRange && isDateRangeValid(dateRange)) {
|
|
55
|
+
onApplyFilter(currentValue);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
onApplyFilter(dissoc('dateRange', currentValue));
|
|
59
|
+
}
|
|
57
60
|
togglePopup();
|
|
58
61
|
}, [currentValue, dateRange, onApplyFilter, togglePopup]);
|
|
59
62
|
var clearAllButtonHandler = useCallback(function () {
|
|
@@ -60,7 +60,8 @@ export var HistoryTree = function (_a) {
|
|
|
60
60
|
var handleHistoryCircleMouseOver = function (uri, timestamp, index) {
|
|
61
61
|
if (isNil(graphData.rows[index].label)) {
|
|
62
62
|
var options = { time: timestamp, select: 'crosswalks' };
|
|
63
|
-
getEntity(uri, options)
|
|
63
|
+
getEntity(uri, options)
|
|
64
|
+
.then(function (_a) {
|
|
64
65
|
var crosswalks = _a.crosswalks;
|
|
65
66
|
var label = crosswalks
|
|
66
67
|
? uniqBy(prop('type'), crosswalks)
|
|
@@ -72,6 +73,9 @@ export var HistoryTree = function (_a) {
|
|
|
72
73
|
.join(', ')
|
|
73
74
|
: i18n.text('No data');
|
|
74
75
|
setGraphData(function (prevGraphData) { return (__assign(__assign({}, prevGraphData), { rows: prevGraphData.rows.map(function (row) { return (row.index === index ? __assign(__assign({}, row), { label: label }) : row); }) })); });
|
|
76
|
+
})
|
|
77
|
+
.catch(function (error) {
|
|
78
|
+
console.warn(error);
|
|
75
79
|
});
|
|
76
80
|
}
|
|
77
81
|
};
|
|
@@ -65,9 +65,12 @@ export var useHistoryTree = function (_a) {
|
|
|
65
65
|
if (!relatedLane)
|
|
66
66
|
return;
|
|
67
67
|
var lifeTimeLength = relatedLane.lifeTime.length;
|
|
68
|
-
lifeTimeLength
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
if (lifeTimeLength) {
|
|
69
|
+
startNewLife(relatedLane.lifeTime, change);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
endLife(relatedLane.lifeTime, change);
|
|
73
|
+
}
|
|
71
74
|
rows.push({
|
|
72
75
|
uri: uri,
|
|
73
76
|
user: change.user,
|
|
@@ -50,7 +50,7 @@ describe('AddWorkflowButton tests', function () {
|
|
|
50
50
|
} }) });
|
|
51
51
|
var mdmValues = __assign(__assign({}, defaultMdmValues), { user: user });
|
|
52
52
|
var component = setUp(mdmValues);
|
|
53
|
-
expect(component.isEmptyRender());
|
|
53
|
+
expect(component.isEmptyRender()).toBeTruthy();
|
|
54
54
|
});
|
|
55
55
|
it('should not render button if "workflow:config.definition" permission is missing', function () {
|
|
56
56
|
var user = __assign(__assign({}, defaultUser), { userPermissions: __assign(__assign({}, defaultUser.userPermissions), { permissions: {
|
|
@@ -60,7 +60,7 @@ describe('AddWorkflowButton tests', function () {
|
|
|
60
60
|
} }) });
|
|
61
61
|
var mdmValues = __assign(__assign({}, defaultMdmValues), { user: user });
|
|
62
62
|
var component = setUp(mdmValues);
|
|
63
|
-
expect(component.isEmptyRender());
|
|
63
|
+
expect(component.isEmptyRender()).toBeTruthy();
|
|
64
64
|
});
|
|
65
65
|
it('should render main parts correctly if all permissions exists', function () {
|
|
66
66
|
var component = setUp();
|
|
@@ -160,7 +160,7 @@ describe('AssigneeSelector tests', function () {
|
|
|
160
160
|
return [4 /*yield*/, screen.findByText('user2')];
|
|
161
161
|
case 3:
|
|
162
162
|
_a.sent();
|
|
163
|
-
return [4 /*yield*/, user.
|
|
163
|
+
return [4 /*yield*/, user.paste('USER2')];
|
|
164
164
|
case 4:
|
|
165
165
|
_a.sent();
|
|
166
166
|
expect(screen.getByText('user2')).toBeInTheDocument();
|
|
@@ -168,9 +168,9 @@ describe('WorkflowTaskCard tests', function () {
|
|
|
168
168
|
return [4 /*yield*/, user.click(screen.getByRole('button'))];
|
|
169
169
|
case 1:
|
|
170
170
|
_a.sent();
|
|
171
|
-
|
|
171
|
+
screen.getByText('Data Change Request Review');
|
|
172
172
|
expect(screen.getByTestId('info-block')).toHaveTextContent('DCR ID: 123Created by: egorshkov on 01/14/2022Step: DCR Review');
|
|
173
|
-
|
|
173
|
+
screen.getByText('new1 new1 - 123111');
|
|
174
174
|
return [2 /*return*/];
|
|
175
175
|
}
|
|
176
176
|
});
|
|
@@ -178,24 +178,24 @@ describe('WorkflowTaskCard tests', function () {
|
|
|
178
178
|
it('should render card for potentialMatchReview', function () {
|
|
179
179
|
var task = __assign(__assign({}, defaultTask), { processType: PredefinedWorkflowProcessType.potentialMatchReview, displayName: 'Match Review', processDefinitionDisplayName: 'Potential Match Review' });
|
|
180
180
|
setUp(task);
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
screen.getByRole('button');
|
|
182
|
+
screen.getByText('Potential Match Review');
|
|
183
183
|
expect(screen.getByTestId('info-block')).toHaveTextContent('Created by: egorshkov on 01/14/2022Step: Match Review');
|
|
184
184
|
});
|
|
185
185
|
it('should render card for recommendForDelete', function () {
|
|
186
186
|
var task = __assign(__assign({}, defaultTask), { processType: PredefinedWorkflowProcessType.recommendForDelete, displayName: 'Delete Review', processDefinitionDisplayName: 'Recommend for Delete' });
|
|
187
187
|
setUp(task);
|
|
188
188
|
expect(screen.getByTestId('delete-request-task-icon')).toBeInTheDocument();
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
screen.getByRole('button');
|
|
190
|
+
screen.getByText('Recommend for Delete');
|
|
191
191
|
expect(screen.getByTestId('info-block')).toHaveTextContent('Created by: egorshkov on 01/14/2022Step: Delete Review');
|
|
192
192
|
});
|
|
193
193
|
it('should render GenericWorkflowTaskCard for all other cases', function () {
|
|
194
194
|
var task = __assign(__assign({}, defaultTask), { processType: 'some custom type', displayName: 'Some Custom Task', processDefinitionDisplayName: 'Some Custom Task Definition' });
|
|
195
195
|
setUp(task);
|
|
196
196
|
expect(screen.getByTestId('default-task-icon')).toBeInTheDocument();
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
screen.getByRole('button');
|
|
198
|
+
screen.getByText('Some Custom Task Definition');
|
|
199
199
|
expect(screen.getByTestId('info-block')).toHaveTextContent('Created by: egorshkov on 01/14/2022Step: Some Custom Task');
|
|
200
200
|
});
|
|
201
201
|
});
|
|
@@ -54,7 +54,6 @@ import DcrTaskIcon from '../../../../../icons/DcrTaskIcon';
|
|
|
54
54
|
import { LineDecorator } from '../../../LineDecorator';
|
|
55
55
|
import { AttributesChanges } from '../../../AttributesChanges';
|
|
56
56
|
import { DataChangeRequestTaskCard } from './DataChangeRequestTaskCard';
|
|
57
|
-
//eslint-disable-next-line
|
|
58
57
|
jest.mock('../GenericWorkflowTaskCard', function () { return ({
|
|
59
58
|
// eslint-disable-next-line
|
|
60
59
|
GenericWorkflowTaskCard: function (_a) {
|
|
@@ -119,8 +119,8 @@ describe('PotentialMatchTaskCard tests', function () {
|
|
|
119
119
|
_a = setUp(), user = _a.user, container = _a.container;
|
|
120
120
|
infos = container.querySelectorAll('.info');
|
|
121
121
|
expect(screen.getByText('Potential Match Review')).toBeInTheDocument();
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
screen.getByText('01/22/2022');
|
|
123
|
+
screen.queryByText('Test Entity');
|
|
124
124
|
expect(screen.queryByTestId('profile-match-card')).not.toBeInTheDocument();
|
|
125
125
|
expect(infos[0]).toHaveTextContent('Created by: egorshkov on 01/14/2022');
|
|
126
126
|
expect(infos[1]).toHaveTextContent('Step: PM review');
|
|
@@ -25,7 +25,8 @@ export var useWorkflowAssignee = function (_a) {
|
|
|
25
25
|
var checkWorkflowPermission = useWorkflowCheckPermission();
|
|
26
26
|
var canUpdateTask = checkWorkflowPermission('UPDATE_TASK') && isOpenTask(isOpen);
|
|
27
27
|
useEffect(function () {
|
|
28
|
-
|
|
28
|
+
if (showCurrentAssignee)
|
|
29
|
+
setCurrentAssignee(assigneeToValue(assignee));
|
|
29
30
|
}, [assignee]);
|
|
30
31
|
var getAssignees = useCallback(function (text) {
|
|
31
32
|
if (workflowPath && canUpdateTask && taskId) {
|
|
@@ -53,7 +53,7 @@ jest.mock('nanoid', function () {
|
|
|
53
53
|
var nanoid = jest.requireActual('nanoid');
|
|
54
54
|
return __assign(__assign({}, nanoid), { nanoid: jest.fn() });
|
|
55
55
|
});
|
|
56
|
-
describe('customScript helpers tests
|
|
56
|
+
describe('customScript helpers tests', function () {
|
|
57
57
|
beforeAll(function () {
|
|
58
58
|
nanoid.mockReturnValue('nanoid');
|
|
59
59
|
});
|
|
@@ -64,12 +64,12 @@ describe('customScript helpers tests ', function () {
|
|
|
64
64
|
var apiPath = '/nui/reltioAPI';
|
|
65
65
|
var reltioPath = 'https://tst-01.reltio.com/reltio';
|
|
66
66
|
var tenant = 'tenant';
|
|
67
|
-
describe('getWorkerURL tests
|
|
67
|
+
describe('getWorkerURL tests', function () {
|
|
68
68
|
it('should return correct worker url', function () {
|
|
69
69
|
expect(getWorkerURL(uiPath, tenant)).toBe('http://localhost:3000/nui/worker_api.js');
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
describe('getRequestFakeUrl tests
|
|
72
|
+
describe('getRequestFakeUrl tests', function () {
|
|
73
73
|
it('should return correct fake url if not starts with apiPath', function () {
|
|
74
74
|
var url = '/entities';
|
|
75
75
|
expect(getRequestFakeUrl(url, apiPath, reltioPath, tenant)).toBe('https://tst-01.reltio.com/reltio/api/tenant/entities');
|
|
@@ -79,13 +79,13 @@ describe('customScript helpers tests ', function () {
|
|
|
79
79
|
expect(getRequestFakeUrl(url, apiPath, reltioPath, tenant)).toBe('https://tst-01.reltio.com/reltio/entities');
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
describe('getResponseFakeUrl tests
|
|
82
|
+
describe('getResponseFakeUrl tests', function () {
|
|
83
83
|
it('should return correct fake url', function () {
|
|
84
84
|
var url = '/nui/reltioAPI/entities';
|
|
85
85
|
expect(getResponseFakeUrl(url, apiPath, reltioPath)).toBe('https://tst-01.reltio.com/reltio/entities');
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
|
-
describe('getProcessedTask tests
|
|
88
|
+
describe('getProcessedTask tests', function () {
|
|
89
89
|
it('should return same task if no url', function () {
|
|
90
90
|
var task = { action: CustomAction.REQUEST, params: {} };
|
|
91
91
|
expect(getProcessedTask(task, apiPath, reltioPath, tenant)).toBe(task);
|
|
@@ -120,7 +120,7 @@ describe('customScript helpers tests ', function () {
|
|
|
120
120
|
expect(getProcessedTask(task, apiPath, reltioPath, tenant)).toEqual(__assign(__assign({}, task), { params: __assign(__assign({}, task.params), { url: '/nui/reltioAPI/api/tenant/entities', validationUrl: task.params.url }) }));
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
describe('getFilesWithArrayBuffer tests
|
|
123
|
+
describe('getFilesWithArrayBuffer tests', function () {
|
|
124
124
|
var fileTxt = new File(['testTxt'], 'foo.txt', { type: 'text/plain' });
|
|
125
125
|
var filePng = new File(['testPng'], 'test.png', { type: 'png/image' });
|
|
126
126
|
var getResult = function (file) { return ({
|
|
@@ -175,7 +175,7 @@ describe('customScript helpers tests ', function () {
|
|
|
175
175
|
});
|
|
176
176
|
}); });
|
|
177
177
|
});
|
|
178
|
-
describe('isValidCustomScript tests
|
|
178
|
+
describe('isValidCustomScript tests', function () {
|
|
179
179
|
it('should return true if valid custom script', function () {
|
|
180
180
|
expect(isValidCustomScript({
|
|
181
181
|
files: ['https://retlio.com/file.js'],
|
|
@@ -196,7 +196,7 @@ describe('customScript helpers tests ', function () {
|
|
|
196
196
|
})).toBe(false);
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
|
-
describe('resetHtml tests
|
|
199
|
+
describe('resetHtml tests', function () {
|
|
200
200
|
var worker = {};
|
|
201
201
|
var html = '<div>html</div>';
|
|
202
202
|
var innerText = 'test';
|
|
@@ -26,7 +26,8 @@ export var useKeyboardNavigation = function (_a) {
|
|
|
26
26
|
var handleSelectFocusedItem = useCallback(function () {
|
|
27
27
|
if (!isNil(focusIndex)) {
|
|
28
28
|
var item = items[focusIndex].item;
|
|
29
|
-
!item.item.notSelectable
|
|
29
|
+
if (!item.item.notSelectable)
|
|
30
|
+
onSelectFocusedItem({ item: item.item, groupData: item });
|
|
30
31
|
}
|
|
31
32
|
}, [onSelectFocusedItem, items, focusIndex]);
|
|
32
33
|
var handleKeyDown = useCallback(function (event) {
|
|
@@ -49,7 +50,7 @@ export var useKeyboardNavigation = function (_a) {
|
|
|
49
50
|
handleSelectFocusedItem();
|
|
50
51
|
break;
|
|
51
52
|
case 'Tab':
|
|
52
|
-
onClose
|
|
53
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(event);
|
|
53
54
|
break;
|
|
54
55
|
default:
|
|
55
56
|
return;
|
|
@@ -59,7 +60,8 @@ export var useKeyboardNavigation = function (_a) {
|
|
|
59
60
|
if (restoreFocusIndex.current) {
|
|
60
61
|
restoreFocusIndex.current = false;
|
|
61
62
|
var moveIndex = items.findIndex(function (listItem) { return listItem.item.moveTo; });
|
|
62
|
-
moveIndex > -1
|
|
63
|
+
if (moveIndex > -1)
|
|
64
|
+
setFocusIndex(moveIndex);
|
|
63
65
|
}
|
|
64
66
|
else {
|
|
65
67
|
setFocusIndex(null);
|
|
@@ -20,7 +20,8 @@ export var useMarkAsNotMatchRequest = function (_a) {
|
|
|
20
20
|
.catch(onError)
|
|
21
21
|
.finally(function () {
|
|
22
22
|
onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
|
|
23
|
-
isMountedRef.current
|
|
23
|
+
if (isMountedRef.current)
|
|
24
|
+
setIsPending(false);
|
|
24
25
|
});
|
|
25
26
|
}, [dtssPath, entities, entity, isMountedRef, onFinishRequest, onStartRequest, onError, onSuccess, tenant]);
|
|
26
27
|
return { isPending: isPending, sendMarkAsNotMatchRequest: sendMarkAsNotMatchRequest };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import i18n from 'ui-i18n';
|
|
2
|
-
import { __, pipe, curry, either, includes } from 'ramda';
|
|
2
|
+
import { __, pipe, curry, either, includes, filter, partition, reject, map } from 'ramda';
|
|
3
3
|
import { attributeUriToSearchUri, getAttrDataTypeDefinition, getEntityAttributesFromMetadata, getLabel, isNested, isReference } from '@reltio/mdm-sdk';
|
|
4
|
-
import { filter, partition, reject, map } from 'ramda';
|
|
5
4
|
var getColumnsDataFromEntityAttributes = pipe(map(function (attr) { return ({
|
|
6
5
|
id: attributeUriToSearchUri(attr.uri),
|
|
7
6
|
label: getLabel(attr.label),
|
|
@@ -29,7 +29,8 @@ export var useMergeAllRequest = function (_a) {
|
|
|
29
29
|
.catch(onError)
|
|
30
30
|
.finally(function () {
|
|
31
31
|
onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
|
|
32
|
-
isMountedRef.current
|
|
32
|
+
if (isMountedRef.current)
|
|
33
|
+
setIsPending(false);
|
|
33
34
|
});
|
|
34
35
|
}, [
|
|
35
36
|
dtssPath,
|
|
@@ -67,7 +67,6 @@ export var createPagingSimulator = function (request) {
|
|
|
67
67
|
if (!shouldSendRequest) return [3 /*break*/, 2];
|
|
68
68
|
return [4 /*yield*/, request(requestParams)];
|
|
69
69
|
case 1:
|
|
70
|
-
// eslint-disable-next-line no-unused-vars
|
|
71
70
|
requestResponse = _b.sent();
|
|
72
71
|
previousValues = requestParams;
|
|
73
72
|
_b.label = 2;
|
|
@@ -122,7 +122,7 @@ export var useSavedSearchesRequest = function (_a) {
|
|
|
122
122
|
return [3 /*break*/, 6];
|
|
123
123
|
case 5:
|
|
124
124
|
error_1 = _c.sent();
|
|
125
|
-
console.warn(error_1);
|
|
125
|
+
console.warn(error_1);
|
|
126
126
|
if (!isAbortError(error_1)) {
|
|
127
127
|
updateRequestState('loading', RequestStates.ERROR);
|
|
128
128
|
setData([]);
|
|
@@ -171,7 +171,12 @@ export var useSavedSearchesRequest = function (_a) {
|
|
|
171
171
|
return [4 /*yield*/, createSavedSearch([__assign(__assign({}, savedSearch), { type: type })])];
|
|
172
172
|
case 2:
|
|
173
173
|
result = _a.sent();
|
|
174
|
-
page === 0
|
|
174
|
+
if (page === 0) {
|
|
175
|
+
loadSavedSearches();
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
setPage(0);
|
|
179
|
+
}
|
|
175
180
|
updateRequestState('creating', RequestStates.LOADED);
|
|
176
181
|
return [2 /*return*/, { success: true, result: result }];
|
|
177
182
|
case 3:
|
package/esm/icons/AIPowered.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { create } from 'jss';
|
|
3
3
|
import StylesProvider from '@mui/styles/StylesProvider';
|
|
4
|
-
import { ThemeProvider } from '@mui/material/styles';
|
|
5
|
-
import { createTheme } from '@mui/material/styles';
|
|
4
|
+
import { ThemeProvider, createTheme } from '@mui/material/styles';
|
|
6
5
|
export var TestStylesProvider = function (_a) {
|
|
7
6
|
var children = _a.children;
|
|
8
7
|
var jss = create();
|
|
@@ -82,9 +82,9 @@ export type RenderRowCellProps = {
|
|
|
82
82
|
rowValue: RowValue;
|
|
83
83
|
cellIndex: number;
|
|
84
84
|
cell: RowCell;
|
|
85
|
-
CellValueRenderer: (props: unknown) =>
|
|
85
|
+
CellValueRenderer: (props: unknown) => React.ReactElement;
|
|
86
86
|
};
|
|
87
|
-
export type RenderRowCell = ({ columnIndex, columnData, rowIndex, rowValue, cellIndex, cell, CellValueRenderer }: RenderRowCellProps) =>
|
|
87
|
+
export type RenderRowCell = ({ columnIndex, columnData, rowIndex, rowValue, cellIndex, cell, CellValueRenderer }: RenderRowCellProps) => React.ReactElement;
|
|
88
88
|
export type OnFilter = (event: {
|
|
89
89
|
columnId: string;
|
|
90
90
|
filter: ColumnFilter;
|
package/esm/types/index.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ export type ReactSelectMuiSkinProps = {
|
|
|
200
200
|
TextFieldProps?: TextFieldProps;
|
|
201
201
|
innerRef?: React.MutableRefObject<any>;
|
|
202
202
|
inputRef?: React.MutableRefObject<any>;
|
|
203
|
-
menuListFooter?:
|
|
203
|
+
menuListFooter?: React.ReactElement;
|
|
204
204
|
};
|
|
205
205
|
export type DropdownIndicatorWithMuiSkinProps<T> = DropdownIndicatorProps & {
|
|
206
206
|
selectProps: DropdownIndicatorProps['selectProps'] & ReactSelectMuiSkinProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1990",
|
|
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
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
10
|
"@react-sigma/core": "3.4.0",
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1888",
|
|
12
12
|
"d3-cloud": "^1.2.5",
|
|
13
13
|
"d3-geo": "^2.0.1",
|
|
14
14
|
"d3-hierarchy": "^2.0.0",
|