@reltio/components 1.4.1942 → 1.4.1944
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/activity-log/hooks/useActivitiesLoader.js +5 -2
- 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/activity-log/hooks/useActivitiesLoader.js +6 -3
- 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 +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const AsyncReactSelect: {
|
|
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: {};
|
|
@@ -52,7 +52,6 @@ exports.AttributeSelector = void 0;
|
|
|
52
52
|
var react_1 = __importStar(require("react"));
|
|
53
53
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
54
54
|
var classnames_1 = __importDefault(require("classnames"));
|
|
55
|
-
var ramda_1 = require("ramda");
|
|
56
55
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
57
56
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
58
57
|
var MultiSelect_1 = require("../MultiSelect");
|
|
@@ -102,6 +101,6 @@ var AttributeSelector = function (_a) {
|
|
|
102
101
|
DropdownIndicator: ReactSelectDropdownIndicatorWithIconButton_1.ReactSelectDropdownIndicatorWithIconButton,
|
|
103
102
|
MultiValue: CustomMultiValue,
|
|
104
103
|
Option: CustomOption
|
|
105
|
-
}, onChange:
|
|
104
|
+
}, onChange: onChange, styles: styles_1.customStyles, classes: styles, menuPlacement: menuPlacement, menuPortalTarget: document.body, menuShouldBlockScroll: true, captureMenuScroll: false })));
|
|
106
105
|
};
|
|
107
106
|
exports.AttributeSelector = AttributeSelector;
|
|
@@ -175,7 +175,7 @@ describe('AttributeSelector tests', function () {
|
|
|
175
175
|
return [4 /*yield*/, user.click(react_2.screen.getByText('Activity'))];
|
|
176
176
|
case 2:
|
|
177
177
|
_a.sent();
|
|
178
|
-
expect(onChangeSpy).toHaveBeenCalledWith(newAttributes);
|
|
178
|
+
expect(onChangeSpy).toHaveBeenCalledWith(newAttributes, expect.any(Object));
|
|
179
179
|
return [2 /*return*/];
|
|
180
180
|
}
|
|
181
181
|
});
|
|
@@ -109,7 +109,7 @@ describe('AttributesFilterSelector tests', function () {
|
|
|
109
109
|
return [4 /*yield*/, user.click(react_2.screen.getByTestId('filter-selector'))];
|
|
110
110
|
case 1:
|
|
111
111
|
_a.sent();
|
|
112
|
-
menuItems = react_2.screen.getAllByRole('
|
|
112
|
+
menuItems = react_2.screen.getAllByRole('option');
|
|
113
113
|
expect(menuItems.map(function (item) { return item.textContent; })).toEqual(['Equals', 'Not', 'Exists', 'Missing value']);
|
|
114
114
|
return [2 /*return*/];
|
|
115
115
|
}
|
|
@@ -154,7 +154,7 @@ describe('AttributesFilterSelector tests', function () {
|
|
|
154
154
|
return [4 /*yield*/, user.click(react_2.screen.getByTestId('filter-selector'))];
|
|
155
155
|
case 1:
|
|
156
156
|
_a.sent();
|
|
157
|
-
menuItems = react_2.screen.getAllByRole('
|
|
157
|
+
menuItems = react_2.screen.getAllByRole('option');
|
|
158
158
|
expect(menuItems.map(function (item) { return item.textContent; })).toEqual(['In']);
|
|
159
159
|
return [2 /*return*/];
|
|
160
160
|
}
|
|
@@ -112,7 +112,7 @@ describe('AttributesFiltersBuilder tests', function () {
|
|
|
112
112
|
user = setUp({ filters: [] }).user;
|
|
113
113
|
expect(react_2.screen.getByText('Select attribute')).toBeInTheDocument();
|
|
114
114
|
expect(react_2.screen.getByText('Equals')).toBeInTheDocument();
|
|
115
|
-
expect(react_2.screen.getByRole('
|
|
115
|
+
expect(react_2.screen.getByRole('combobox')).toBeDisabled();
|
|
116
116
|
expect(react_2.screen.queryByRole('button', { name: 'Add' })).not.toBeInTheDocument();
|
|
117
117
|
expect(react_2.screen.queryByRole('button', { name: 'Duplicate' })).not.toBeInTheDocument();
|
|
118
118
|
expect(react_2.screen.queryByRole('button', { name: 'Delete' })).not.toBeInTheDocument();
|
|
@@ -136,7 +136,7 @@ describe('AttributesFiltersBuilder tests', function () {
|
|
|
136
136
|
expect((0, react_2.within)(intRow).getByTestId('filter-value-editor')).toHaveTextContent('99');
|
|
137
137
|
expect((0, react_2.within)(dateRow).getByTestId('attribute-selector')).toHaveTextContent('Nested Test / Nested Test Level 2 / Date Level 2');
|
|
138
138
|
expect((0, react_2.within)(dateRow).getByText('On')).toBeInTheDocument();
|
|
139
|
-
expect((0, react_2.within)(dateRow).
|
|
139
|
+
expect((0, react_2.within)(dateRow).getByRole('textbox')).toHaveValue('05/09/2023');
|
|
140
140
|
expect((0, react_2.within)(emptyRow).getByTestId('attribute-selector')).toHaveTextContent('Select attribute');
|
|
141
141
|
expect((0, react_2.within)(emptyRow).getByText('Equals')).toBeInTheDocument();
|
|
142
142
|
expect((0, react_2.within)(emptyRow).queryByTestId('filter-value-editor')).not.toBeInTheDocument();
|
|
@@ -194,7 +194,7 @@ describe('AttributesFiltersBuilder tests', function () {
|
|
|
194
194
|
return [4 /*yield*/, user.click(selector)];
|
|
195
195
|
case 1:
|
|
196
196
|
_a.sent();
|
|
197
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
197
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('option', { name: 'Not' }))];
|
|
198
198
|
case 2:
|
|
199
199
|
_a.sent();
|
|
200
200
|
expect(onChangeSpy).toBeCalledWith([
|
|
@@ -329,12 +329,12 @@ describe('ConnectionEditor test', function () {
|
|
|
329
329
|
};
|
|
330
330
|
mdm_sdk_1.typeAheadSearch.mockResolvedValueOnce([newEntity]);
|
|
331
331
|
user = setUp(propsWithRelations).user;
|
|
332
|
-
profileSelector = react_2.screen.getAllByRole('
|
|
332
|
+
profileSelector = react_2.screen.getAllByRole('combobox')[1];
|
|
333
333
|
return [4 /*yield*/, user.click(profileSelector)];
|
|
334
334
|
case 1:
|
|
335
335
|
_a.sent();
|
|
336
336
|
expect(react_2.screen.queryByText(wrongEntity.label)).not.toBeInTheDocument();
|
|
337
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
337
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('option', { name: 'C Committee' }))];
|
|
338
338
|
case 2:
|
|
339
339
|
_a.sent();
|
|
340
340
|
expect(onChangeEntity).toHaveBeenCalledWith(__assign(__assign({}, newEntity), { entityType: metadata.entityTypes[2] }));
|
|
@@ -349,11 +349,11 @@ describe('ConnectionEditor test', function () {
|
|
|
349
349
|
case 0:
|
|
350
350
|
user = setUp(propsWithRelations).user;
|
|
351
351
|
expect(onChangeRelationType).not.toHaveBeenCalled();
|
|
352
|
-
relationshipTypeSelector = react_2.screen.getAllByRole('
|
|
352
|
+
relationshipTypeSelector = react_2.screen.getAllByRole('combobox')[0];
|
|
353
353
|
return [4 /*yield*/, user.click(relationshipTypeSelector)];
|
|
354
354
|
case 1:
|
|
355
355
|
_a.sent();
|
|
356
|
-
return [4 /*yield*/, user.click(react_2.screen.getByRole('
|
|
356
|
+
return [4 /*yield*/, user.click(react_2.screen.getByRole('option', { name: 'H L has address undefined ↔ undefined' }))];
|
|
357
357
|
case 2:
|
|
358
358
|
_a.sent();
|
|
359
359
|
expect(onChangeRelationType).toHaveBeenCalledWith({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const CreatableReactSelect: {
|
|
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: {};
|
|
@@ -132,7 +132,7 @@ describe('DependentLookupEditor', function () {
|
|
|
132
132
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
133
133
|
});
|
|
134
134
|
wrapper.update();
|
|
135
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
135
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
136
136
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
137
137
|
expect(props.getLookups).toBeCalledWith({
|
|
138
138
|
type: 'COUNTRY_CD',
|
|
@@ -145,7 +145,7 @@ describe('DependentLookupEditor', function () {
|
|
|
145
145
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')('', { action: 'input-blur' });
|
|
146
146
|
});
|
|
147
147
|
wrapper.update();
|
|
148
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
148
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe('');
|
|
149
149
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
150
150
|
expect(props.getLookups).toBeCalledWith({
|
|
151
151
|
type: 'COUNTRY_CD',
|
|
@@ -170,13 +170,13 @@ describe('DependentLookupEditor', function () {
|
|
|
170
170
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
171
171
|
});
|
|
172
172
|
wrapper.update();
|
|
173
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
173
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
174
174
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
175
175
|
(0, test_utils_1.act)(function () {
|
|
176
176
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')('', { action: 'menu-close' });
|
|
177
177
|
});
|
|
178
178
|
wrapper.update();
|
|
179
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
179
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe('u');
|
|
180
180
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
181
181
|
return [2 /*return*/];
|
|
182
182
|
});
|
|
@@ -191,7 +191,7 @@ describe('DependentLookupEditor', function () {
|
|
|
191
191
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
192
192
|
});
|
|
193
193
|
wrapper.update();
|
|
194
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
194
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
195
195
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
196
196
|
expect(props.getLookups).toBeCalledWith({
|
|
197
197
|
type: 'COUNTRY_CD',
|
|
@@ -204,7 +204,7 @@ describe('DependentLookupEditor', function () {
|
|
|
204
204
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')('', { action: 'input-blur' });
|
|
205
205
|
});
|
|
206
206
|
wrapper.update();
|
|
207
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
207
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe((0, helpers_1.getOptionLabel)(value));
|
|
208
208
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
209
209
|
expect(props.getLookups).toBeCalledWith({
|
|
210
210
|
type: 'COUNTRY_CD',
|
|
@@ -226,7 +226,7 @@ describe('DependentLookupEditor', function () {
|
|
|
226
226
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
227
227
|
});
|
|
228
228
|
wrapper.update();
|
|
229
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
229
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
230
230
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
231
231
|
expect(props.getLookups).toBeCalledWith({
|
|
232
232
|
type: 'COUNTRY_CD',
|
|
@@ -239,7 +239,7 @@ describe('DependentLookupEditor', function () {
|
|
|
239
239
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')('', { action: 'menu-close' });
|
|
240
240
|
});
|
|
241
241
|
wrapper.update();
|
|
242
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
242
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe((0, helpers_1.getOptionLabel)(value));
|
|
243
243
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
244
244
|
expect(props.getLookups).toBeCalledWith({
|
|
245
245
|
type: 'COUNTRY_CD',
|
|
@@ -769,7 +769,7 @@ describe('DependentLookupEditor', function () {
|
|
|
769
769
|
}));
|
|
770
770
|
value = { lookupCode: 'US', value: 'USA' };
|
|
771
771
|
wrapper = (0, enzyme_1.mount)(react_1.default.createElement(DependentLookupEditor_1.DependentLookupEditor, __assign({}, props, { getLookups: getLookups, value: value, multiple: false })));
|
|
772
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
772
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe('USA (US)');
|
|
773
773
|
newInputValue = 'u';
|
|
774
774
|
(0, test_utils_1.act)(function () {
|
|
775
775
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
@@ -778,7 +778,7 @@ describe('DependentLookupEditor', function () {
|
|
|
778
778
|
case 1:
|
|
779
779
|
_a.sent();
|
|
780
780
|
wrapper.update();
|
|
781
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
781
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
782
782
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
783
783
|
expect(getLookups).toBeCalledWith({
|
|
784
784
|
type: 'COUNTRY_CD',
|
|
@@ -803,7 +803,7 @@ describe('DependentLookupEditor', function () {
|
|
|
803
803
|
}));
|
|
804
804
|
value = { lookupCode: 'US', value: 'USA' };
|
|
805
805
|
wrapper = (0, enzyme_1.mount)(react_1.default.createElement(DependentLookupEditor_1.DependentLookupEditor, __assign({}, props, { getLookups: getLookups, value: value, multiple: false })));
|
|
806
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
806
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe('USA (US)');
|
|
807
807
|
newInputValue = '';
|
|
808
808
|
(0, test_utils_1.act)(function () {
|
|
809
809
|
wrapper.find(ReactSelect_1.ReactSelect).prop('onInputChange')(newInputValue, { action: 'input-change' });
|
|
@@ -812,7 +812,7 @@ describe('DependentLookupEditor', function () {
|
|
|
812
812
|
case 1:
|
|
813
813
|
_a.sent();
|
|
814
814
|
wrapper.update();
|
|
815
|
-
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().
|
|
815
|
+
expect(wrapper.find(ReactSelect_1.ReactSelect).find('Input').last().prop('value')).toBe(newInputValue);
|
|
816
816
|
expect(props.onChange).toHaveBeenCalledWith('');
|
|
817
817
|
expect(getLookups).toBeCalledWith({
|
|
818
818
|
type: 'COUNTRY_CD',
|
|
@@ -104,7 +104,7 @@ describe('SpecialRenderer tests', function () {
|
|
|
104
104
|
setUp({ attributeType: attributeType, values: ['configuration/roles/OfficeStaff'] });
|
|
105
105
|
expect(react_2.screen.getByTestId('reltio-attribute-label')).toHaveTextContent(attributeType.label);
|
|
106
106
|
expect(react_2.screen.getAllByTestId('reltio-attribute-value')).toHaveLength(1);
|
|
107
|
-
expect(react_2.screen.getByRole('
|
|
107
|
+
expect(react_2.screen.getByRole('combobox')).toBeInTheDocument();
|
|
108
108
|
expect(react_2.screen.getByText('Office Staff')).toBeInTheDocument();
|
|
109
109
|
});
|
|
110
110
|
it('should render Tags component for tags and special icon before title', function () {
|
|
@@ -489,7 +489,7 @@ describe('EntitySelector', function () {
|
|
|
489
489
|
});
|
|
490
490
|
wrapper.update();
|
|
491
491
|
expect(mockOnChange).toBeCalledWith('newValue');
|
|
492
|
-
expect(wrapper.find('
|
|
492
|
+
expect(wrapper.find('Input').prop('value')).toBe('');
|
|
493
493
|
});
|
|
494
494
|
it('should run onClear', function () {
|
|
495
495
|
var entityTypesUris = ['configuration/entityTypes/HCP'];
|
|
@@ -500,6 +500,6 @@ describe('EntitySelector', function () {
|
|
|
500
500
|
});
|
|
501
501
|
wrapper.update();
|
|
502
502
|
expect(mockOnChange).toBeCalled();
|
|
503
|
-
expect(wrapper.find('
|
|
503
|
+
expect(wrapper.find('Input').prop('value')).toBe('');
|
|
504
504
|
});
|
|
505
505
|
});
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
selectProps: {
|
|
6
|
-
classes: {
|
|
7
|
-
clearIndicator: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const ReactSelectClearIndicator: ({ selectProps: { classes }, innerProps }: Props) => JSX.Element;
|
|
12
|
-
export {};
|
|
3
|
+
import { ClearIndicatorWithMuiSkinProps } from '../../../../types';
|
|
4
|
+
export declare const ReactSelectClearIndicator: (props: ClearIndicatorWithMuiSkinProps<IconButtonProps>) => JSX.Element;
|
|
@@ -18,8 +18,8 @@ exports.ReactSelectClearIndicator = void 0;
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var HighlightOff_1 = __importDefault(require("@mui/icons-material/HighlightOff"));
|
|
20
20
|
var IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
21
|
-
var ReactSelectClearIndicator = function (
|
|
22
|
-
var
|
|
21
|
+
var ReactSelectClearIndicator = function (props) {
|
|
22
|
+
var innerProps = props.innerProps, classes = props.selectProps.classes;
|
|
23
23
|
return (react_1.default.createElement(IconButton_1.default, __assign({}, innerProps, { className: classes.clearIndicator, size: "large" }),
|
|
24
24
|
react_1.default.createElement(HighlightOff_1.default, null)));
|
|
25
25
|
};
|
package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
let innerProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
6
|
-
onMouseDown: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
-
}>>>;
|
|
8
|
-
let innerRef: PropTypes.Validator<any>;
|
|
9
|
-
let selectProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
-
control: PropTypes.Validator<string>;
|
|
12
|
-
}>>;
|
|
13
|
-
TextFieldProps: PropTypes.Requireable<object>;
|
|
14
|
-
}>>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ControlWithMuiSkinProps } from '../../../../types';
|
|
3
|
+
export declare const ReactSelectControl: (props: ControlWithMuiSkinProps<React.HTMLAttributes<HTMLInputElement>>) => JSX.Element;
|
|
@@ -16,41 +16,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ReactSelectControl = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
20
19
|
var TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
21
20
|
var InputComponent = react_1.default.forwardRef(function (props, ref) {
|
|
22
21
|
return react_1.default.createElement("div", __assign({ ref: ref }, props));
|
|
23
22
|
});
|
|
24
23
|
InputComponent.displayName = 'InputComponent';
|
|
25
|
-
InputComponent.propTypes = {
|
|
26
|
-
inputRef: prop_types_1.default.oneOfType([
|
|
27
|
-
prop_types_1.default.func,
|
|
28
|
-
prop_types_1.default.shape({
|
|
29
|
-
current: prop_types_1.default.any.isRequired
|
|
30
|
-
})
|
|
31
|
-
])
|
|
32
|
-
};
|
|
33
24
|
var ReactSelectControl = function (props) {
|
|
34
25
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, _a = props.selectProps, classes = _a.classes, _b = _a.TextFieldProps, TextFieldProps = _b === void 0 ? {} : _b;
|
|
35
26
|
return (react_1.default.createElement(TextField_1.default, __assign({ variant: "standard", fullWidth: true }, TextFieldProps, { InputProps: __assign(__assign({ inputComponent: InputComponent }, TextFieldProps.InputProps), { inputProps: __assign(__assign({ className: classes.control, ref: innerRef, children: children }, innerProps), TextFieldProps.inputProps) }) })));
|
|
36
27
|
};
|
|
37
28
|
exports.ReactSelectControl = ReactSelectControl;
|
|
38
|
-
exports.ReactSelectControl.propTypes = {
|
|
39
|
-
children: prop_types_1.default.node,
|
|
40
|
-
innerProps: prop_types_1.default.shape({
|
|
41
|
-
onMouseDown: prop_types_1.default.func.isRequired
|
|
42
|
-
}).isRequired,
|
|
43
|
-
innerRef: prop_types_1.default.oneOfType([
|
|
44
|
-
prop_types_1.default.oneOf([null]),
|
|
45
|
-
prop_types_1.default.func,
|
|
46
|
-
prop_types_1.default.shape({
|
|
47
|
-
current: prop_types_1.default.any.isRequired
|
|
48
|
-
})
|
|
49
|
-
]).isRequired,
|
|
50
|
-
selectProps: prop_types_1.default.shape({
|
|
51
|
-
classes: prop_types_1.default.shape({
|
|
52
|
-
control: prop_types_1.default.string.isRequired
|
|
53
|
-
}),
|
|
54
|
-
TextFieldProps: prop_types_1.default.object
|
|
55
|
-
})
|
|
56
|
-
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onMouseDown: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
|
-
onTouchEnd: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
-
'aria-hidden': PropTypes.Validator<string>;
|
|
8
|
-
}>>>;
|
|
9
|
-
let selectProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
10
|
-
classes: PropTypes.Validator<object>;
|
|
11
|
-
}>>>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
+
import { DropdownIndicatorWithMuiSkinProps } from '../../../../types';
|
|
4
|
+
export declare const ReactSelectDropdownIndicator: (props: DropdownIndicatorWithMuiSkinProps<IconButtonProps>) => JSX.Element;
|
|
@@ -16,22 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ReactSelectDropdownIndicator = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
20
19
|
var ArrowDropDown_1 = __importDefault(require("@mui/icons-material/ArrowDropDown"));
|
|
21
20
|
var IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
22
21
|
var ReactSelectDropdownIndicator = function (props) {
|
|
23
|
-
var
|
|
22
|
+
var innerProps = props.innerProps, classes = props.selectProps.classes;
|
|
24
23
|
return (react_1.default.createElement(IconButton_1.default, __assign({}, innerProps, { className: classes.dropdownIndicator, size: "large" }),
|
|
25
24
|
react_1.default.createElement(ArrowDropDown_1.default, null)));
|
|
26
25
|
};
|
|
27
26
|
exports.ReactSelectDropdownIndicator = ReactSelectDropdownIndicator;
|
|
28
|
-
exports.ReactSelectDropdownIndicator.propTypes = {
|
|
29
|
-
innerProps: prop_types_1.default.shape({
|
|
30
|
-
onMouseDown: prop_types_1.default.func.isRequired,
|
|
31
|
-
onTouchEnd: prop_types_1.default.func.isRequired,
|
|
32
|
-
'aria-hidden': prop_types_1.default.string.isRequired
|
|
33
|
-
}).isRequired,
|
|
34
|
-
selectProps: prop_types_1.default.shape({
|
|
35
|
-
classes: prop_types_1.default.object.isRequired
|
|
36
|
-
}).isRequired
|
|
37
|
-
};
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
let selectProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
-
groupHeading: PropTypes.Requireable<string>;
|
|
8
|
-
}>>;
|
|
9
|
-
}>>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GroupHeadingWithMuiSkinProps } from '../../../../types';
|
|
3
|
+
export declare const ReactSelectGroupHeading: (props: GroupHeadingWithMuiSkinProps) => JSX.Element;
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReactSelectGroupHeading = 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 Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
10
|
var ReactSelectGroupHeading = function (props) {
|
|
@@ -13,11 +12,3 @@ var ReactSelectGroupHeading = function (props) {
|
|
|
13
12
|
return (react_1.default.createElement(Typography_1.default, { variant: "subtitle2", className: (0, classnames_1.default)(classes.groupHeading) }, children));
|
|
14
13
|
};
|
|
15
14
|
exports.ReactSelectGroupHeading = ReactSelectGroupHeading;
|
|
16
|
-
exports.ReactSelectGroupHeading.propTypes = {
|
|
17
|
-
children: prop_types_1.default.node,
|
|
18
|
-
selectProps: prop_types_1.default.shape({
|
|
19
|
-
classes: prop_types_1.default.shape({
|
|
20
|
-
groupHeading: prop_types_1.default.string
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let innerProps: PropTypes.Validator<object>;
|
|
6
|
-
let selectProps: PropTypes.Validator<object>;
|
|
7
|
-
let innerRef: PropTypes.Requireable<any>;
|
|
8
|
-
let getStyles: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
3
|
+
import { MenuWithMuiSkinProps } from '../../../../types';
|
|
4
|
+
export declare const ReactSelectMenu: (props: MenuWithMuiSkinProps<PaperProps>) => JSX.Element;
|
|
@@ -16,23 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ReactSelectMenu = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
20
19
|
var Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
21
20
|
var ReactSelectMenu = function (props) {
|
|
22
21
|
var classes = props.selectProps.classes, innerProps = props.innerProps, innerRef = props.innerRef, getStyles = props.getStyles, children = props.children;
|
|
23
22
|
return (react_1.default.createElement(Paper_1.default, __assign({ ref: innerRef, style: getStyles('menu', props), className: classes.menu }, innerProps), children));
|
|
24
23
|
};
|
|
25
24
|
exports.ReactSelectMenu = ReactSelectMenu;
|
|
26
|
-
exports.ReactSelectMenu.propTypes = {
|
|
27
|
-
children: prop_types_1.default.element.isRequired,
|
|
28
|
-
innerProps: prop_types_1.default.object.isRequired,
|
|
29
|
-
selectProps: prop_types_1.default.object.isRequired,
|
|
30
|
-
innerRef: prop_types_1.default.oneOfType([
|
|
31
|
-
prop_types_1.default.oneOf([null]),
|
|
32
|
-
prop_types_1.default.func,
|
|
33
|
-
prop_types_1.default.shape({
|
|
34
|
-
current: prop_types_1.default.any.isRequired
|
|
35
|
-
})
|
|
36
|
-
]),
|
|
37
|
-
getStyles: prop_types_1.default.func
|
|
38
|
-
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
selectProps: {
|
|
5
|
+
classes: Record<string, string>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const ReactSelectNoOptionsMessage: (props: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -5,14 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ReactSelectNoOptionsMessage = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
9
8
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
9
|
var ReactSelectNoOptionsMessage = function (props) {
|
|
11
10
|
var classes = props.selectProps.classes, children = props.children;
|
|
12
11
|
return (react_1.default.createElement(Typography_1.default, { color: "textSecondary", className: classes.noOptionsMessage }, children));
|
|
13
12
|
};
|
|
14
13
|
exports.ReactSelectNoOptionsMessage = ReactSelectNoOptionsMessage;
|
|
15
|
-
exports.ReactSelectNoOptionsMessage.propTypes = {
|
|
16
|
-
children: prop_types_1.default.node,
|
|
17
|
-
selectProps: prop_types_1.default.object.isRequired
|
|
18
|
-
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let innerProps: PropTypes.Requireable<object>;
|
|
6
|
-
let selectProps: PropTypes.Validator<object>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { PlaceholderWithMuiSkinProps } from '../../../../types';
|
|
4
|
+
export declare const ReactSelectPlaceholder: (props: PlaceholderWithMuiSkinProps<TypographyProps>) => JSX.Element;
|
package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectPlaceholder/ReactSelectPlaceholder.js
CHANGED
|
@@ -1,30 +1,13 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
6
|
exports.ReactSelectPlaceholder = void 0;
|
|
18
7
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
20
8
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
21
9
|
var ReactSelectPlaceholder = function (props) {
|
|
22
|
-
var classes = props.selectProps.classes,
|
|
23
|
-
return (react_1.default.createElement(Typography_1.default,
|
|
10
|
+
var classes = props.selectProps.classes, children = props.children;
|
|
11
|
+
return (react_1.default.createElement(Typography_1.default, { color: "textSecondary", className: classes.placeholder }, children));
|
|
24
12
|
};
|
|
25
13
|
exports.ReactSelectPlaceholder = ReactSelectPlaceholder;
|
|
26
|
-
exports.ReactSelectPlaceholder.propTypes = {
|
|
27
|
-
children: prop_types_1.default.node,
|
|
28
|
-
innerProps: prop_types_1.default.object,
|
|
29
|
-
selectProps: prop_types_1.default.object.isRequired
|
|
30
|
-
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let innerProps: PropTypes.Requireable<object>;
|
|
6
|
-
let selectProps: PropTypes.Validator<object>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
import { SingleValueWithMuiSkinProps } from '../../../../types';
|
|
4
|
+
export declare const ReactSelectSingleValue: (props: SingleValueWithMuiSkinProps<TypographyProps>) => JSX.Element;
|
package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectSingleValue/ReactSelectSingleValue.js
CHANGED
|
@@ -16,15 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ReactSelectSingleValue = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
20
19
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
21
20
|
var ReactSelectSingleValue = function (props) {
|
|
22
21
|
var classes = props.selectProps.classes, innerProps = props.innerProps, children = props.children;
|
|
23
22
|
return (react_1.default.createElement(Typography_1.default, __assign({ className: classes.singleValue }, innerProps), children));
|
|
24
23
|
};
|
|
25
24
|
exports.ReactSelectSingleValue = ReactSelectSingleValue;
|
|
26
|
-
exports.ReactSelectSingleValue.propTypes = {
|
|
27
|
-
children: prop_types_1.default.node,
|
|
28
|
-
innerProps: prop_types_1.default.object,
|
|
29
|
-
selectProps: prop_types_1.default.object.isRequired
|
|
30
|
-
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
let selectProps: PropTypes.Validator<object>;
|
|
6
|
-
let isMulti: PropTypes.Requireable<boolean>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ValueContainerWithMuiSkinProps } from '../../../../types';
|
|
3
|
+
export declare const ReactSelectValueContainer: (props: ValueContainerWithMuiSkinProps) => JSX.Element;
|