@reltio/components 1.4.1942 → 1.4.1943
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/AsyncReactSelect/AsyncReactSelect.d.ts +1 -1
- package/cjs/AttributeSelector/AttributeSelector.js +1 -2
- package/cjs/AttributeSelector/AttributeSelector.specs.js +1 -1
- package/cjs/AttributesFilterSelector/AttributesFilterSelector.test.js +2 -2
- package/cjs/AttributesFiltersBuilder/AttributesFiltersBuilder.test.js +3 -3
- package/cjs/ConnectionEditor/ConnectionEditor.test.js +4 -4
- package/cjs/CreatableReactSelect/CreatableReactSelect.d.ts +1 -1
- package/cjs/DependentLookupEditor/DependentLookupEditor.test.js +12 -12
- package/cjs/EditModeAttributesPager/components/SpecialRenderer/SpecialRenderer.test.js +1 -1
- package/cjs/EntitySelector/EntitySelector.test.js +2 -2
- package/cjs/EntitySelector/components/Group/Group.test.js +1 -0
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectClearIndicator/ReactSelectClearIndicator.d.ts +2 -10
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectClearIndicator/ReactSelectClearIndicator.js +2 -2
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.d.ts +3 -17
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +0 -28
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectDropdownIndicator/ReactSelectDropdownIndicator.d.ts +4 -14
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectDropdownIndicator/ReactSelectDropdownIndicator.js +1 -12
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectGroupHeading/ReactSelectGroupHeading.d.ts +3 -12
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectGroupHeading/ReactSelectGroupHeading.js +0 -9
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectMenu/ReactSelectMenu.d.ts +4 -11
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectMenu/ReactSelectMenu.js +0 -14
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectNoOptionsMessage/ReactSelectNoOptionsMessage.d.ts +9 -8
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectNoOptionsMessage/ReactSelectNoOptionsMessage.js +0 -5
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectPlaceholder/ReactSelectPlaceholder.d.ts +4 -9
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectPlaceholder/ReactSelectPlaceholder.js +2 -19
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectSingleValue/ReactSelectSingleValue.d.ts +4 -9
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectSingleValue/ReactSelectSingleValue.js +0 -6
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectValueContainer/ReactSelectValueContainer.d.ts +3 -9
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectValueContainer/ReactSelectValueContainer.js +0 -6
- package/cjs/HOCs/withReactSelectMuiSkin/helpers.d.ts +13 -88
- package/cjs/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/cjs/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +4 -3
- package/cjs/MatchRulesSelector/MatchRulesSelector.test.js +4 -4
- package/cjs/MultiSelect/MultiSelect.js +1 -1
- package/cjs/MultiValueSelector/MultiValueSelector.js +1 -1
- package/cjs/ReactSelect/ReactSelect.d.ts +1 -1
- package/cjs/ReactSelectMenuWithPopper/ReactSelectMenuWithPopper.js +1 -1
- package/cjs/RelationEditor/IntegrationRelationEditor.test.js +5 -5
- package/cjs/RolesEditor/RolesEditor.test.js +2 -2
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.test.js +2 -2
- package/cjs/SourceSystemsSelector/SourceSystemsSelector.test.js +2 -2
- package/cjs/UserSelector/UserSelector.js +1 -1
- package/cjs/UserSelector/UserSelector.specs.js +1 -1
- package/cjs/constants/reactSelect.d.ts +1 -1
- package/cjs/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +4 -4
- package/cjs/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.js +1 -1
- package/cjs/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.js +1 -1
- package/cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.js +1 -1
- package/cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +2 -2
- package/cjs/features/activity-log/RelationObject/styles.d.ts +1 -1
- package/cjs/features/history/HistoryActivitySelector/HistoryActivitySelector.js +1 -1
- package/cjs/features/history/HistoryActivitySelector/HistoryActivitySelector.specs.js +3 -3
- package/cjs/features/history/HistoryFilterButton/HistoryFilterButton.test.js +6 -6
- package/cjs/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +6 -6
- package/cjs/features/workflow/ReassignButton/ReassignButton.spec.js +2 -2
- package/cjs/types/index.d.ts +40 -0
- package/esm/AsyncReactSelect/AsyncReactSelect.d.ts +1 -1
- package/esm/AttributeSelector/AttributeSelector.js +1 -2
- package/esm/AttributeSelector/AttributeSelector.specs.js +1 -1
- package/esm/AttributesFilterSelector/AttributesFilterSelector.test.js +2 -2
- package/esm/AttributesFiltersBuilder/AttributesFiltersBuilder.test.js +3 -3
- package/esm/ConnectionEditor/ConnectionEditor.test.js +4 -4
- package/esm/CreatableReactSelect/CreatableReactSelect.d.ts +1 -1
- package/esm/DependentLookupEditor/DependentLookupEditor.test.js +12 -12
- package/esm/EditModeAttributesPager/components/SpecialRenderer/SpecialRenderer.test.js +1 -1
- package/esm/EntitySelector/EntitySelector.test.js +2 -2
- package/esm/EntitySelector/components/Group/Group.test.js +1 -0
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectClearIndicator/ReactSelectClearIndicator.d.ts +2 -10
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectClearIndicator/ReactSelectClearIndicator.js +2 -2
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.d.ts +3 -17
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +0 -28
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectDropdownIndicator/ReactSelectDropdownIndicator.d.ts +4 -14
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectDropdownIndicator/ReactSelectDropdownIndicator.js +1 -12
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectGroupHeading/ReactSelectGroupHeading.d.ts +3 -12
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectGroupHeading/ReactSelectGroupHeading.js +0 -9
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectMenu/ReactSelectMenu.d.ts +4 -11
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectMenu/ReactSelectMenu.js +0 -14
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectNoOptionsMessage/ReactSelectNoOptionsMessage.d.ts +9 -8
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectNoOptionsMessage/ReactSelectNoOptionsMessage.js +0 -5
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectPlaceholder/ReactSelectPlaceholder.d.ts +4 -9
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectPlaceholder/ReactSelectPlaceholder.js +2 -19
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectSingleValue/ReactSelectSingleValue.d.ts +4 -9
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectSingleValue/ReactSelectSingleValue.js +0 -6
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectValueContainer/ReactSelectValueContainer.d.ts +3 -9
- package/esm/HOCs/withReactSelectMuiSkin/components/ReactSelectValueContainer/ReactSelectValueContainer.js +0 -6
- package/esm/HOCs/withReactSelectMuiSkin/helpers.d.ts +13 -88
- package/esm/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/esm/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +4 -3
- package/esm/MatchRulesSelector/MatchRulesSelector.test.js +4 -4
- package/esm/MultiSelect/MultiSelect.js +2 -2
- package/esm/MultiValueSelector/MultiValueSelector.js +2 -2
- package/esm/ReactSelect/ReactSelect.d.ts +1 -1
- package/esm/ReactSelectMenuWithPopper/ReactSelectMenuWithPopper.js +1 -1
- package/esm/RelationEditor/IntegrationRelationEditor.test.js +5 -5
- package/esm/RolesEditor/RolesEditor.test.js +2 -2
- package/esm/SimpleAttributeEditor/SimpleAttributeEditor.test.js +2 -2
- package/esm/SourceSystemsSelector/SourceSystemsSelector.test.js +2 -2
- package/esm/UserSelector/UserSelector.js +2 -2
- package/esm/UserSelector/UserSelector.specs.js +1 -1
- package/esm/constants/reactSelect.d.ts +1 -1
- package/esm/features/activity-log/ActivityFilterEditor/ActivityFilterEditor.specs.js +4 -4
- package/esm/features/activity-log/ActivityFilterEditor/components/ActivitySelector/ActivitySelector.js +2 -2
- package/esm/features/activity-log/ActivityFilterEditor/components/EntityTypesSelector/EntityTypesSelector.js +2 -2
- package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.js +2 -2
- package/esm/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.specs.js +2 -2
- package/esm/features/activity-log/RelationObject/styles.d.ts +1 -1
- package/esm/features/history/HistoryActivitySelector/HistoryActivitySelector.js +2 -2
- package/esm/features/history/HistoryActivitySelector/HistoryActivitySelector.specs.js +3 -3
- package/esm/features/history/HistoryFilterButton/HistoryFilterButton.test.js +6 -6
- package/esm/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +6 -6
- package/esm/features/workflow/ReassignButton/ReassignButton.spec.js +2 -2
- package/esm/types/index.d.ts +40 -0
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReactSelectValueContainer = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
9
8
|
var classnames_1 = __importDefault(require("classnames"));
|
|
10
9
|
var ReactSelectValueContainer = function (props) {
|
|
11
10
|
var _a;
|
|
@@ -13,8 +12,3 @@ var ReactSelectValueContainer = function (props) {
|
|
|
13
12
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(classes.valueContainer, (_a = {}, _a[classes['valueContainer--multi']] = isMulti, _a)) }, children));
|
|
14
13
|
};
|
|
15
14
|
exports.ReactSelectValueContainer = ReactSelectValueContainer;
|
|
16
|
-
exports.ReactSelectValueContainer.propTypes = {
|
|
17
|
-
children: prop_types_1.default.node,
|
|
18
|
-
selectProps: prop_types_1.default.object.isRequired,
|
|
19
|
-
isMulti: prop_types_1.default.bool
|
|
20
|
-
};
|
|
@@ -1,63 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const reactSelectComponents: {
|
|
3
|
-
ClearIndicator: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
Control: {
|
|
12
|
-
(props: any): JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
15
|
-
innerProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
16
|
-
onMouseDown: import("prop-types").Validator<(...args: any[]) => any>;
|
|
17
|
-
}>>>;
|
|
18
|
-
innerRef: import("prop-types").Validator<any>;
|
|
19
|
-
selectProps: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
20
|
-
classes: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
21
|
-
control: import("prop-types").Validator<string>;
|
|
22
|
-
}>>;
|
|
23
|
-
TextFieldProps: import("prop-types").Requireable<object>;
|
|
24
|
-
}>>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
DropdownIndicator: {
|
|
28
|
-
(props: any): JSX.Element;
|
|
29
|
-
propTypes: {
|
|
30
|
-
innerProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
31
|
-
onMouseDown: import("prop-types").Validator<(...args: any[]) => any>;
|
|
32
|
-
onTouchEnd: import("prop-types").Validator<(...args: any[]) => any>;
|
|
33
|
-
'aria-hidden': import("prop-types").Validator<string>;
|
|
34
|
-
}>>>;
|
|
35
|
-
selectProps: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
36
|
-
classes: import("prop-types").Validator<object>;
|
|
37
|
-
}>>>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
GroupHeading: {
|
|
41
|
-
(props: any): JSX.Element;
|
|
42
|
-
propTypes: {
|
|
43
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
44
|
-
selectProps: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
45
|
-
classes: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
46
|
-
groupHeading: import("prop-types").Requireable<string>;
|
|
47
|
-
}>>;
|
|
48
|
-
}>>;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
Menu: {
|
|
52
|
-
(props: any): JSX.Element;
|
|
53
|
-
propTypes: {
|
|
54
|
-
children: import("prop-types").Validator<import("prop-types").ReactElementLike>;
|
|
55
|
-
innerProps: import("prop-types").Validator<object>;
|
|
56
|
-
selectProps: import("prop-types").Validator<object>;
|
|
57
|
-
innerRef: import("prop-types").Requireable<any>;
|
|
58
|
-
getStyles: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
3
|
+
ClearIndicator: (props: import("../..").ClearIndicatorWithMuiSkinProps<import("@mui/material").IconButtonProps>) => JSX.Element;
|
|
4
|
+
Control: (props: import("../..").ControlWithMuiSkinProps<import("react").HTMLAttributes<HTMLInputElement>>) => JSX.Element;
|
|
5
|
+
DropdownIndicator: (props: import("../..").DropdownIndicatorWithMuiSkinProps<import("@mui/material").IconButtonProps>) => JSX.Element;
|
|
6
|
+
GroupHeading: (props: import("../..").GroupHeadingWithMuiSkinProps) => JSX.Element;
|
|
7
|
+
Menu: (props: import("../..").MenuWithMuiSkinProps<import("@mui/material").PaperProps>) => JSX.Element;
|
|
61
8
|
MultiValue: {
|
|
62
9
|
(props: any): JSX.Element;
|
|
63
10
|
propTypes: {
|
|
@@ -71,13 +18,12 @@ export declare const reactSelectComponents: {
|
|
|
71
18
|
selectProps: import("prop-types").Validator<object>;
|
|
72
19
|
};
|
|
73
20
|
};
|
|
74
|
-
NoOptionsMessage: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
selectProps: import("prop-types").Validator<object>;
|
|
21
|
+
NoOptionsMessage: (props: {
|
|
22
|
+
children: import("react").ReactNode;
|
|
23
|
+
selectProps: {
|
|
24
|
+
classes: Record<string, string>;
|
|
79
25
|
};
|
|
80
|
-
};
|
|
26
|
+
}) => JSX.Element;
|
|
81
27
|
Option: {
|
|
82
28
|
(props: any): JSX.Element;
|
|
83
29
|
propTypes: {
|
|
@@ -102,28 +48,7 @@ export declare const reactSelectComponents: {
|
|
|
102
48
|
}>>;
|
|
103
49
|
};
|
|
104
50
|
};
|
|
105
|
-
Placeholder:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
109
|
-
innerProps: import("prop-types").Requireable<object>;
|
|
110
|
-
selectProps: import("prop-types").Validator<object>;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
SingleValue: {
|
|
114
|
-
(props: any): JSX.Element;
|
|
115
|
-
propTypes: {
|
|
116
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
117
|
-
innerProps: import("prop-types").Requireable<object>;
|
|
118
|
-
selectProps: import("prop-types").Validator<object>;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
ValueContainer: {
|
|
122
|
-
(props: any): JSX.Element;
|
|
123
|
-
propTypes: {
|
|
124
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
125
|
-
selectProps: import("prop-types").Validator<object>;
|
|
126
|
-
isMulti: import("prop-types").Requireable<boolean>;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
51
|
+
Placeholder: (props: import("../..").PlaceholderWithMuiSkinProps<import("@mui/material").TypographyProps>) => JSX.Element;
|
|
52
|
+
SingleValue: (props: import("../..").SingleValueWithMuiSkinProps<import("@mui/material").TypographyProps>) => JSX.Element;
|
|
53
|
+
ValueContainer: (props: import("../..").ValueContainerWithMuiSkinProps) => JSX.Element;
|
|
129
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menu" | "placeholder" | "option" | "singleValue" | "dropdownIndicator" | "control" | "option--selected" | "option--item" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menu" | "placeholder" | "option" | "singleValue" | "dropdownIndicator" | "control" | "option--selected" | "option--item" | "clearIndicator" | "groupHeading" | "multiValue" | "noOptionsMessage" | "valueContainer" | "multiValue__label" | "valueContainer--multi">;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { Props, GroupBase } from 'react-select';
|
|
3
|
+
import { ReactSelectMuiSkinProps } from '../../types';
|
|
4
|
+
export declare const withReactSelectMuiSkin: <Option, IsMulti extends boolean, Group extends GroupBase<Option> = GroupBase<Option>>(SelectComponent: any) => {
|
|
5
|
+
(props: Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>, "onChange" | "value" | "onMenuClose" | "onMenuOpen" | "menuIsOpen" | "inputValue" | "onInputChange"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<Option, IsMulti, Group>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<Option> & ReactSelectMuiSkinProps): JSX.Element;
|
|
5
6
|
displayName: string;
|
|
6
7
|
defaultProps: {
|
|
7
8
|
components: {};
|
|
@@ -106,10 +106,10 @@ describe('MatchRulesSelector tests', function () {
|
|
|
106
106
|
switch (_a.label) {
|
|
107
107
|
case 0:
|
|
108
108
|
user = setUp().user;
|
|
109
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
109
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
110
110
|
case 1:
|
|
111
111
|
_a.sent();
|
|
112
|
-
expect(react_2.screen.getAllByRole('
|
|
112
|
+
expect(react_2.screen.getAllByRole('option')).toHaveLength(2);
|
|
113
113
|
react_2.screen.getByText('matchRule1');
|
|
114
114
|
react_2.screen.getByText('matchRule2');
|
|
115
115
|
return [2 /*return*/];
|
|
@@ -123,10 +123,10 @@ describe('MatchRulesSelector tests', function () {
|
|
|
123
123
|
case 0:
|
|
124
124
|
props = __assign(__assign({}, defaultProps), { name: mdm_sdk_1.MatchRulesAttrNames.MLRecommendedMatch });
|
|
125
125
|
user = setUp(props).user;
|
|
126
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
126
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
127
127
|
case 1:
|
|
128
128
|
_a.sent();
|
|
129
|
-
expect(react_2.screen.getAllByRole('
|
|
129
|
+
expect(react_2.screen.getAllByRole('option')).toHaveLength(2);
|
|
130
130
|
react_2.screen.getByText('MLmatchRule1');
|
|
131
131
|
react_2.screen.getByText('MLmatchRule2');
|
|
132
132
|
return [2 /*return*/];
|
|
@@ -62,7 +62,7 @@ var styles_1 = require("./styles");
|
|
|
62
62
|
var getControlRef = function (innerRef) {
|
|
63
63
|
var controlRef = {};
|
|
64
64
|
if (innerRef.current) {
|
|
65
|
-
controlRef.current = (0, ramda_1.
|
|
65
|
+
controlRef.current = (0, ramda_1.prop)('controlRef', innerRef.current);
|
|
66
66
|
}
|
|
67
67
|
return controlRef;
|
|
68
68
|
};
|
|
@@ -62,7 +62,7 @@ var MultiValueSelector = function (_a) {
|
|
|
62
62
|
var valueToOption = (0, react_1.useCallback)(function (value) { return options.find(function (option) { return option.value === value; }) || { value: value, label: value }; }, [options]);
|
|
63
63
|
var preparedValues = (0, react_1.useMemo)(function () { return values.map(valueToOption); }, [valueToOption, values]);
|
|
64
64
|
var _d = TextFieldProps.InputProps, InputProps = _d === void 0 ? {} : _d, textFieldClassName = TextFieldProps.className, otherTextFieldProps = __rest(TextFieldProps, ["InputProps", "className"]);
|
|
65
|
-
return (react_1.default.createElement(MultiSelect_1.MultiSelect, { value: preparedValues, onChange: (0, ramda_1.pipe)((0, ramda_1.
|
|
65
|
+
return (react_1.default.createElement(MultiSelect_1.MultiSelect, { value: preparedValues, onChange: (0, ramda_1.pipe)((0, ramda_1.pluck)('value'), onChange), options: options, TextFieldProps: __assign({ InputProps: __assign({ disableUnderline: (0, mdm_sdk_1.isEmptyValue)(values) }, InputProps), variant: 'filled', className: textFieldClassName, ref: inputRef }, otherTextFieldProps), components: {
|
|
66
66
|
DropdownIndicator: ReactSelectDropdownIndicatorWithIconButton_1.ReactSelectDropdownIndicatorWithIconButton,
|
|
67
67
|
Option: ReactSelectOptionWithCheckIcon_1.ReactSelectOptionWithCheckIcon,
|
|
68
68
|
Menu: ReactSelectMenuWithPopper_1.ReactSelectMenuWithPopper,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ReactSelect: {
|
|
3
|
-
(props:
|
|
3
|
+
(props: Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "onMenuClose" | "onMenuOpen" | "menuIsOpen" | "inputValue" | "onInputChange"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("..").ReactSelectMuiSkinProps): JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
defaultProps: {
|
|
6
6
|
components: {};
|
|
@@ -87,7 +87,7 @@ exports.ReactSelectMenuWithPopper.propTypes = {
|
|
|
87
87
|
prop_types_1.default.oneOf([null]),
|
|
88
88
|
prop_types_1.default.func,
|
|
89
89
|
prop_types_1.default.shape({
|
|
90
|
-
current: prop_types_1.default.any
|
|
90
|
+
current: prop_types_1.default.any
|
|
91
91
|
})
|
|
92
92
|
]).isRequired,
|
|
93
93
|
innerProps: prop_types_1.default.object.isRequired
|
|
@@ -177,7 +177,7 @@ describe('RelationEditor behaviour', function () {
|
|
|
177
177
|
switch (_a.label) {
|
|
178
178
|
case 0:
|
|
179
179
|
user = setUp().user;
|
|
180
|
-
inputs = react_2.screen.getAllByRole('
|
|
180
|
+
inputs = react_2.screen.getAllByRole('combobox');
|
|
181
181
|
return [4 /*yield*/, user.click(inputs[0])];
|
|
182
182
|
case 1:
|
|
183
183
|
_a.sent();
|
|
@@ -200,7 +200,7 @@ describe('RelationEditor behaviour', function () {
|
|
|
200
200
|
props = __assign(__assign({}, defaultProps), { mode: mdm_sdk_1.Mode.Suggesting });
|
|
201
201
|
mdmValues = __assign(__assign({}, defaultMdmValues), { entity: __assign(__assign({}, defaultEntity), { uri: 'entities/123' }) });
|
|
202
202
|
user = setUp({ props: props, mdmValues: mdmValues }).user;
|
|
203
|
-
inputs = react_2.screen.getAllByRole('
|
|
203
|
+
inputs = react_2.screen.getAllByRole('combobox');
|
|
204
204
|
return [4 /*yield*/, user.click(inputs[0])];
|
|
205
205
|
case 1:
|
|
206
206
|
_a.sent();
|
|
@@ -238,7 +238,7 @@ describe('RelationEditor behaviour', function () {
|
|
|
238
238
|
props = __assign(__assign({}, defaultProps), { mode: mdm_sdk_1.Mode.Suggesting });
|
|
239
239
|
mdmValues = __assign(__assign({}, defaultMdmValues), { uiConfigProfile: uiConfigProfile });
|
|
240
240
|
user = setUp({ props: props, mdmValues: mdmValues }).user;
|
|
241
|
-
inputs = react_2.screen.getAllByRole('
|
|
241
|
+
inputs = react_2.screen.getAllByRole('combobox');
|
|
242
242
|
return [4 /*yield*/, user.click(inputs[0])];
|
|
243
243
|
case 1:
|
|
244
244
|
_a.sent();
|
|
@@ -254,7 +254,7 @@ describe('RelationEditor behaviour', function () {
|
|
|
254
254
|
case 0:
|
|
255
255
|
props = __assign(__assign({}, defaultProps), { mode: mdm_sdk_1.Mode.Suggesting });
|
|
256
256
|
user = setUp({ props: props }).user;
|
|
257
|
-
inputs = react_2.screen.getAllByRole('
|
|
257
|
+
inputs = react_2.screen.getAllByRole('combobox');
|
|
258
258
|
return [4 /*yield*/, user.click(inputs[0])];
|
|
259
259
|
case 1:
|
|
260
260
|
_a.sent();
|
|
@@ -272,7 +272,7 @@ describe('RelationEditor behaviour', function () {
|
|
|
272
272
|
'entities/uri$$123': ['configuration/relationTypes/HasAddress/attributes/Active']
|
|
273
273
|
};
|
|
274
274
|
user = setUp({ hiddenAttributes: hiddenAttributes }).user;
|
|
275
|
-
inputs = react_2.screen.getAllByRole('
|
|
275
|
+
inputs = react_2.screen.getAllByRole('combobox');
|
|
276
276
|
return [4 /*yield*/, user.click(inputs[0])];
|
|
277
277
|
case 1:
|
|
278
278
|
_a.sent();
|
|
@@ -132,7 +132,7 @@ describe('RolesEditor tests', function () {
|
|
|
132
132
|
switch (_a.label) {
|
|
133
133
|
case 0:
|
|
134
134
|
user = setUp().user;
|
|
135
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
135
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
136
136
|
case 1:
|
|
137
137
|
_a.sent();
|
|
138
138
|
expect(react_2.screen.queryByText('Pharmacy')).not.toBeInTheDocument();
|
|
@@ -177,7 +177,7 @@ describe('RolesEditor tests', function () {
|
|
|
177
177
|
onChange = defaultProps.onChange;
|
|
178
178
|
props = __assign(__assign({}, defaultProps), { values: [] });
|
|
179
179
|
user = setUp(props).user;
|
|
180
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
180
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
181
181
|
case 1:
|
|
182
182
|
_a.sent();
|
|
183
183
|
return [4 /*yield*/, user.click(react_2.screen.getByText('Practice Manager'))];
|
|
@@ -442,7 +442,7 @@ describe('SimpleAttributeEditor', function () {
|
|
|
442
442
|
case 1:
|
|
443
443
|
_a.sent();
|
|
444
444
|
expect(react_2.screen.getByText('Some placeholder')).toBeDefined();
|
|
445
|
-
input = react_2.screen.getByRole('
|
|
445
|
+
input = react_2.screen.getByRole('combobox');
|
|
446
446
|
expect(input).toBeDefined();
|
|
447
447
|
expect(input.getAttribute('value')).toBe('');
|
|
448
448
|
expect(input.hasAttribute('disabled')).toBe(true);
|
|
@@ -473,7 +473,7 @@ describe('SimpleAttributeEditor', function () {
|
|
|
473
473
|
return [4 /*yield*/, setUp()];
|
|
474
474
|
case 1:
|
|
475
475
|
user = (_a.sent()).user;
|
|
476
|
-
input = react_2.screen.getByRole('
|
|
476
|
+
input = react_2.screen.getByRole('combobox');
|
|
477
477
|
expect(input).toBeDefined();
|
|
478
478
|
return [4 /*yield*/, user.clear(input)];
|
|
479
479
|
case 2:
|
|
@@ -88,7 +88,7 @@ describe('SourceSystemsSelector tests', function () {
|
|
|
88
88
|
switch (_a.label) {
|
|
89
89
|
case 0:
|
|
90
90
|
user = setUp().user;
|
|
91
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
91
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
92
92
|
case 1:
|
|
93
93
|
_a.sent();
|
|
94
94
|
react_2.screen.getByText('A');
|
|
@@ -109,7 +109,7 @@ describe('SourceSystemsSelector tests', function () {
|
|
|
109
109
|
case 0:
|
|
110
110
|
onChange = defaultProps.onChange;
|
|
111
111
|
user = setUp().user;
|
|
112
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
112
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
113
113
|
case 1:
|
|
114
114
|
_a.sent();
|
|
115
115
|
return [4 /*yield*/, user.click(react_2.screen.getByText('A'))];
|
|
@@ -58,7 +58,7 @@ var UserSelector = function (_a) {
|
|
|
58
58
|
};
|
|
59
59
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.root, className), "data-reltio-id": "user-selector" },
|
|
60
60
|
react_1.default.createElement(Typography_1.default, { className: styles.title, variant: 'subtitle1' }, ui_i18n_1.default.text('User')),
|
|
61
|
-
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedUsers), onChange: (0, ramda_1.pipe)((0, ramda_1.
|
|
61
|
+
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedUsers), onChange: (0, ramda_1.pipe)((0, ramda_1.pluck)('value'), onChange), defaultOptions: true, getOptions: getOptions, TextFieldProps: {
|
|
62
62
|
InputProps: { disableUnderline: disableUnderline },
|
|
63
63
|
className: styles.dropDownInput,
|
|
64
64
|
ref: inputRef
|
|
@@ -92,7 +92,7 @@ describe('UserSelector tests', function () {
|
|
|
92
92
|
onChange = defaultProps.onChange;
|
|
93
93
|
user = setUp().user;
|
|
94
94
|
react_2.screen.getByText('User');
|
|
95
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
95
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
96
96
|
case 1:
|
|
97
97
|
_a.sent();
|
|
98
98
|
users.forEach(function (_a) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ReactSelectOptionFilters: {
|
|
2
|
-
BY_LABEL: (option: import("react-select/src/filters").
|
|
2
|
+
BY_LABEL: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
3
3
|
};
|
|
@@ -188,7 +188,7 @@ describe('ActivityFilterEditor tests', function () {
|
|
|
188
188
|
entityType = editor_test_data_1.metadata.entityTypes[1];
|
|
189
189
|
user = setUp({ value: filterValue, entityType: entityType }).user;
|
|
190
190
|
attributeSelector = react_2.screen.getByTestId('attribute-selector');
|
|
191
|
-
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('
|
|
191
|
+
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('combobox'))];
|
|
192
192
|
case 1:
|
|
193
193
|
_a.sent();
|
|
194
194
|
return [4 /*yield*/, user.click(react_2.screen.getByRole('menuitem', { name: 'Activity' }))];
|
|
@@ -210,10 +210,10 @@ describe('ActivityFilterEditor tests', function () {
|
|
|
210
210
|
filterValue = __assign(__assign({}, editor_test_data_1.value), { activities: [types_1.ActivityTypes.ENTITY_CHANGED] });
|
|
211
211
|
user = setUp({ value: filterValue }).user;
|
|
212
212
|
entityTypeSelector = react_2.screen.getByTestId('entity-types-selector');
|
|
213
|
-
return [4 /*yield*/, user.click((0, react_2.within)(entityTypeSelector).getByRole('
|
|
213
|
+
return [4 /*yield*/, user.click((0, react_2.within)(entityTypeSelector).getByRole('combobox'))];
|
|
214
214
|
case 1:
|
|
215
215
|
_a.sent();
|
|
216
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
216
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('option', { name: 'HCA' }))];
|
|
217
217
|
case 2:
|
|
218
218
|
_a.sent();
|
|
219
219
|
newEntityTypes = [editor_test_data_1.metadata.entityTypes[1]];
|
|
@@ -234,7 +234,7 @@ describe('ActivityFilterEditor tests', function () {
|
|
|
234
234
|
entityType = { uri: 'test', attributes: [] };
|
|
235
235
|
user = setUp({ value: filterValue, entityType: entityType }).user;
|
|
236
236
|
activitySelector = react_2.screen.getByTestId('activity-selector');
|
|
237
|
-
textbox = (0, react_2.within)(activitySelector).getByRole('
|
|
237
|
+
textbox = (0, react_2.within)(activitySelector).getByRole('combobox');
|
|
238
238
|
return [4 /*yield*/, user.click(textbox)];
|
|
239
239
|
case 1:
|
|
240
240
|
_a.sent();
|
|
@@ -23,7 +23,7 @@ var ActivitySelector = function (_a) {
|
|
|
23
23
|
var options = (0, ramda_1.pipe)((0, ramda_1.sortBy)(function (option) { return (0, activities_1.getActivityLabel)(option); }), prepareValues)(activityTypes);
|
|
24
24
|
return (react_1.default.createElement("div", { className: styles.selectorWrapper, "data-reltio-id": "activity-selector" },
|
|
25
25
|
react_1.default.createElement(Typography_1.default, { className: (0, classnames_1.default)(styles.filterSubtitle, styles.labels), variant: 'subtitle1' }, ui_i18n_1.default.text('Activity')),
|
|
26
|
-
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedActivityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.
|
|
26
|
+
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedActivityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.pluck)('value'), onChange), options: options, TextFieldProps: {
|
|
27
27
|
InputProps: { disableUnderline: true },
|
|
28
28
|
classes: { root: styles.dropDownInput }
|
|
29
29
|
}, components: {
|
|
@@ -20,7 +20,7 @@ var EntityTypesSelector = function (_a) {
|
|
|
20
20
|
var options = (0, ramda_1.pipe)((0, ramda_1.sortBy)(function (option) { return option.label; }), prepareValues)(entityTypes);
|
|
21
21
|
return (react_1.default.createElement("div", { className: styles.selectorWrapper, "data-reltio-id": "entity-types-selector" },
|
|
22
22
|
react_1.default.createElement(Typography_1.default, { className: (0, classnames_1.default)(styles.filterSubtitle, styles.labels), variant: 'subtitle1' }, ui_i18n_1.default.text('Type')),
|
|
23
|
-
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedEntityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.
|
|
23
|
+
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedEntityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.pluck)('entityType'), onChange), options: options, TextFieldProps: {
|
|
24
24
|
InputProps: { disableUnderline: true },
|
|
25
25
|
classes: { root: styles.dropDownInput }
|
|
26
26
|
}, components: {
|
package/cjs/features/activity-log/ActivityFilterEditor/components/SourceSelector/SourceSelector.js
CHANGED
|
@@ -20,7 +20,7 @@ var SourceSelector = function (_a) {
|
|
|
20
20
|
var options = (0, ramda_1.sortBy)(function (option) { return option.label; })(metadata.sources);
|
|
21
21
|
return (react_1.default.createElement("div", { className: styles.selectorWrapper, "data-reltio-id": "source-selector" },
|
|
22
22
|
react_1.default.createElement(Typography_1.default, { className: (0, classnames_1.default)(styles.filterSubtitle, styles.labels), variant: 'subtitle1' }, ui_i18n_1.default.text('Source')),
|
|
23
|
-
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: selectedSources, onChange:
|
|
23
|
+
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: selectedSources, onChange: onChange, options: options, TextFieldProps: {
|
|
24
24
|
InputProps: { disableUnderline: true },
|
|
25
25
|
classes: { root: styles.dropDownInput }
|
|
26
26
|
}, components: {
|
|
@@ -100,7 +100,7 @@ describe('Source selector tests', function () {
|
|
|
100
100
|
onChange = defaultProps.onChange;
|
|
101
101
|
user = setUp().user;
|
|
102
102
|
react_2.screen.getByText('Source');
|
|
103
|
-
input = react_2.screen.getByRole('
|
|
103
|
+
input = react_2.screen.getByRole('combobox');
|
|
104
104
|
return [4 /*yield*/, user.click(input)];
|
|
105
105
|
case 1:
|
|
106
106
|
_b.sent();
|
|
@@ -111,7 +111,7 @@ describe('Source selector tests', function () {
|
|
|
111
111
|
case 2:
|
|
112
112
|
_b.sent();
|
|
113
113
|
_a = defaultMetadata.sources, sources = _a === void 0 ? [] : _a;
|
|
114
|
-
expect(onChange).toHaveBeenCalledWith([sources[0]]);
|
|
114
|
+
expect(onChange).toHaveBeenCalledWith([sources[0]], expect.any(Object));
|
|
115
115
|
return [2 /*return*/];
|
|
116
116
|
}
|
|
117
117
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "delimiter" | "relationship">;
|
|
@@ -21,7 +21,7 @@ var HistoryActivitySelector = function (_a) {
|
|
|
21
21
|
var options = prepareValues(helpers_1.historyActivityOptions);
|
|
22
22
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.root, className), "data-reltio-id": "history-activity-selector" },
|
|
23
23
|
react_1.default.createElement(Typography_1.default, { className: styles.title, variant: 'subtitle1' }, ui_i18n_1.default.text('Activity')),
|
|
24
|
-
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedHistoryActivityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.
|
|
24
|
+
react_1.default.createElement(MultiSelect_1.MultiSelect, { value: prepareValues(selectedHistoryActivityTypes), onChange: (0, ramda_1.pipe)((0, ramda_1.pluck)('value'), onChange), options: options, TextFieldProps: {
|
|
25
25
|
InputProps: { disableUnderline: disableUnderline },
|
|
26
26
|
classes: { root: styles.dropDownInput }
|
|
27
27
|
}, components: {
|
|
@@ -77,10 +77,10 @@ describe('HistoryActivitySelector tests', function () {
|
|
|
77
77
|
user = user_event_1.default.setup();
|
|
78
78
|
(0, react_2.render)(react_1.default.createElement(HistoryActivitySelector_1.HistoryActivitySelector, __assign({}, props)));
|
|
79
79
|
expect(react_2.screen.getByText('Activity')).toBeInTheDocument();
|
|
80
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
80
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
81
81
|
case 1:
|
|
82
82
|
_a.sent();
|
|
83
|
-
menuItems = react_2.screen.getAllByRole('
|
|
83
|
+
menuItems = react_2.screen.getAllByRole('option');
|
|
84
84
|
expect(menuItems).toHaveLength(3);
|
|
85
85
|
menuItems.forEach(function (item, i) {
|
|
86
86
|
expect(item).toHaveTextContent(activityOptions[i].label);
|
|
@@ -88,7 +88,7 @@ describe('HistoryActivitySelector tests', function () {
|
|
|
88
88
|
return [4 /*yield*/, user.click(menuItems[1])];
|
|
89
89
|
case 2:
|
|
90
90
|
_a.sent();
|
|
91
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
91
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('combobox'))];
|
|
92
92
|
case 3:
|
|
93
93
|
_a.sent();
|
|
94
94
|
expect(props.onChange).toHaveBeenCalledWith([types_1.HistoryActivityType.UPDATE, types_1.HistoryActivityType.MERGE]);
|
|
@@ -196,7 +196,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
196
196
|
expect((0, react_2.within)(userSelectorBefore).getByText('User')).toBeInTheDocument();
|
|
197
197
|
expect((0, react_2.within)(userSelectorBefore).getByText('username1')).toBeInTheDocument();
|
|
198
198
|
expect((0, react_2.within)(userSelectorBefore).getByText('username3')).toBeInTheDocument();
|
|
199
|
-
return [4 /*yield*/, user.click((0, react_2.within)(userSelectorBefore).getByRole('
|
|
199
|
+
return [4 /*yield*/, user.click((0, react_2.within)(userSelectorBefore).getByRole('combobox'))];
|
|
200
200
|
case 2:
|
|
201
201
|
_a.sent();
|
|
202
202
|
return [4 /*yield*/, user.click(react_2.screen.getByText('username2'))];
|
|
@@ -288,7 +288,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
288
288
|
case 1:
|
|
289
289
|
_a.sent();
|
|
290
290
|
userSelector = react_2.screen.getByTestId('user-selector');
|
|
291
|
-
return [4 /*yield*/, user.click((0, react_2.within)(userSelector).getByRole('
|
|
291
|
+
return [4 /*yield*/, user.click((0, react_2.within)(userSelector).getByRole('combobox'))];
|
|
292
292
|
case 2:
|
|
293
293
|
_a.sent();
|
|
294
294
|
return [4 /*yield*/, user.click(react_2.screen.getByText('username2'))];
|
|
@@ -312,7 +312,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
312
312
|
case 1:
|
|
313
313
|
_a.sent();
|
|
314
314
|
historyActivitySelector = react_2.screen.getByTestId('history-activity-selector');
|
|
315
|
-
return [4 /*yield*/, user.click((0, react_2.within)(historyActivitySelector).getByRole('
|
|
315
|
+
return [4 /*yield*/, user.click((0, react_2.within)(historyActivitySelector).getByRole('combobox'))];
|
|
316
316
|
case 2:
|
|
317
317
|
_a.sent();
|
|
318
318
|
return [4 /*yield*/, user.click(react_2.screen.getByText('Merge'))];
|
|
@@ -336,7 +336,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
336
336
|
case 1:
|
|
337
337
|
_a.sent();
|
|
338
338
|
attributeSelector = react_2.screen.getByTestId('attribute-selector');
|
|
339
|
-
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('
|
|
339
|
+
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('combobox'))];
|
|
340
340
|
case 2:
|
|
341
341
|
_a.sent();
|
|
342
342
|
return [4 /*yield*/, user.click(react_2.screen.getByText('TenantID'))];
|
|
@@ -401,7 +401,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
401
401
|
});
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('
|
|
404
|
+
return [4 /*yield*/, user.click((0, react_2.within)(attributeSelector).getByRole('combobox'))];
|
|
405
405
|
case 2:
|
|
406
406
|
_a.sent();
|
|
407
407
|
return [4 /*yield*/, user.click(react_2.screen.getByText('TenantID'))];
|
|
@@ -437,7 +437,7 @@ describe('HistoryFilterButton tests', function () {
|
|
|
437
437
|
});
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
|
-
return [4 /*yield*/, user.click((0, react_2.within)(userSelector).getByRole('
|
|
440
|
+
return [4 /*yield*/, user.click((0, react_2.within)(userSelector).getByRole('combobox'))];
|
|
441
441
|
case 2:
|
|
442
442
|
_a.sent();
|
|
443
443
|
return [4 /*yield*/, user.click(react_2.screen.getByText('username2'))];
|
|
@@ -162,13 +162,13 @@ describe('AssigneeSelector tests', function () {
|
|
|
162
162
|
} }) });
|
|
163
163
|
var mdmValues = __assign(__assign({}, defaultMdmValues), { user: user });
|
|
164
164
|
setUp({ mdmValues: mdmValues });
|
|
165
|
-
expect(react_2.screen.getByRole('
|
|
165
|
+
expect(react_2.screen.getByRole('combobox')).toBeDisabled();
|
|
166
166
|
expect(mdm_sdk_1.getAssigneeForTask).not.toHaveBeenCalled();
|
|
167
167
|
});
|
|
168
168
|
it('should disable DropDownSelector if task is closed', function () {
|
|
169
169
|
var props = __assign(__assign({}, defaultProps), { isTaskOpen: false });
|
|
170
170
|
setUp({ props: props });
|
|
171
|
-
expect(react_2.screen.getByRole('
|
|
171
|
+
expect(react_2.screen.getByRole('combobox')).toBeDisabled();
|
|
172
172
|
expect(mdm_sdk_1.getAssigneeForTask).not.toHaveBeenCalled();
|
|
173
173
|
});
|
|
174
174
|
it('should filter options ignore case', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -180,7 +180,7 @@ describe('AssigneeSelector tests', function () {
|
|
|
180
180
|
return [4 /*yield*/, react_2.screen.findByText('Assigned to')];
|
|
181
181
|
case 1:
|
|
182
182
|
_a.sent();
|
|
183
|
-
input = react_2.screen.getByRole('
|
|
183
|
+
input = react_2.screen.getByRole('combobox');
|
|
184
184
|
return [4 /*yield*/, user.click(input)];
|
|
185
185
|
case 2:
|
|
186
186
|
_a.sent();
|
|
@@ -208,7 +208,7 @@ describe('AssigneeSelector tests', function () {
|
|
|
208
208
|
return [4 /*yield*/, react_2.screen.findByText('Assigned to')];
|
|
209
209
|
case 1:
|
|
210
210
|
_a.sent();
|
|
211
|
-
input = react_2.screen.getByRole('
|
|
211
|
+
input = react_2.screen.getByRole('combobox');
|
|
212
212
|
return [4 /*yield*/, user.click(input)];
|
|
213
213
|
case 2:
|
|
214
214
|
_a.sent();
|
|
@@ -243,7 +243,7 @@ describe('AssigneeSelector tests', function () {
|
|
|
243
243
|
return [4 /*yield*/, react_2.screen.findByText('Assigned to')];
|
|
244
244
|
case 1:
|
|
245
245
|
_a.sent();
|
|
246
|
-
input = react_2.screen.getByRole('
|
|
246
|
+
input = react_2.screen.getByRole('combobox');
|
|
247
247
|
return [4 /*yield*/, user.click(input)];
|
|
248
248
|
case 2:
|
|
249
249
|
_a.sent();
|
|
@@ -280,7 +280,7 @@ describe('AssigneeSelector tests', function () {
|
|
|
280
280
|
return [4 /*yield*/, react_2.screen.findByText('Assigned to')];
|
|
281
281
|
case 1:
|
|
282
282
|
_a.sent();
|
|
283
|
-
input = react_2.screen.getByRole('
|
|
283
|
+
input = react_2.screen.getByRole('combobox');
|
|
284
284
|
return [4 /*yield*/, user.click(input)];
|
|
285
285
|
case 2:
|
|
286
286
|
_a.sent();
|
|
@@ -144,7 +144,7 @@ describe('ReassignButton tests', function () {
|
|
|
144
144
|
return [4 /*yield*/, user.click(react_2.screen.getByTestId('select-dropdown-indicator'))];
|
|
145
145
|
case 2:
|
|
146
146
|
_a.sent();
|
|
147
|
-
return [4 /*yield*/, react_2.screen.findByRole('
|
|
147
|
+
return [4 /*yield*/, react_2.screen.findByRole('option', { name: 'firstUser' })];
|
|
148
148
|
case 3:
|
|
149
149
|
item = _a.sent();
|
|
150
150
|
return [4 /*yield*/, user.click(item)];
|
|
@@ -210,7 +210,7 @@ describe('ReassignButton tests', function () {
|
|
|
210
210
|
return [4 /*yield*/, user.click(react_2.screen.getByTestId('select-dropdown-indicator'))];
|
|
211
211
|
case 2:
|
|
212
212
|
_a.sent();
|
|
213
|
-
return [4 /*yield*/, react_2.screen.findByRole('
|
|
213
|
+
return [4 /*yield*/, react_2.screen.findByRole('option', { name: newAssigneeName })];
|
|
214
214
|
case 3:
|
|
215
215
|
item = _a.sent();
|
|
216
216
|
return [4 /*yield*/, user.click(item)];
|