@dhis2-ui/select 7.15.0 → 7.15.1
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/build/cjs/multi-select/features/position/index.js +2 -2
- package/build/cjs/multi-select/features/position.feature +2 -2
- package/build/cjs/multi-select/selection-list.js +3 -0
- package/build/es/multi-select/features/position/index.js +2 -2
- package/build/es/multi-select/features/position.feature +2 -2
- package/build/es/multi-select/selection-list.js +3 -0
- package/package.json +14 -14
|
@@ -33,14 +33,14 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
|
33
33
|
(0, _steps.When)('an option is clicked', () => {
|
|
34
34
|
cy.contains('option one').click();
|
|
35
35
|
});
|
|
36
|
-
(0, _steps.Then)('the Input
|
|
36
|
+
(0, _steps.Then)('the Input remains the same height', () => {
|
|
37
37
|
const emptyInputHeight = '@emptyInputHeight';
|
|
38
38
|
const inputDataTest = '[data-test="dhis2-uicore-select-input"]';
|
|
39
39
|
cy.getAll(emptyInputHeight, inputDataTest).should(([emptyInputHeight, inputs]) => {
|
|
40
40
|
expect(inputs.length).to.equal(1);
|
|
41
41
|
const $input = inputs[0];
|
|
42
42
|
const inputRect = $input.getBoundingClientRect();
|
|
43
|
-
expect(inputRect.height).to.
|
|
43
|
+
expect(inputRect.height).to.equal(emptyInputHeight);
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
(0, _steps.Then)('the top of the menu is aligned with the bottom of the input', () => {
|
|
@@ -34,14 +34,14 @@ Feature: Position of MultiSelect menu dropdown
|
|
|
34
34
|
Then the left of the Menu is aligned with the left of the Input
|
|
35
35
|
And the Menu and the Input have an equal width
|
|
36
36
|
|
|
37
|
-
Scenario:
|
|
37
|
+
Scenario: Positioning the menu when an option is selected
|
|
38
38
|
Given a MultiSelect is rendered to which options can be added
|
|
39
39
|
And the input is empty
|
|
40
40
|
When the MultiSelect is clicked
|
|
41
41
|
Then the top of the menu is aligned with the bottom of the input
|
|
42
42
|
And the left of the Menu is aligned with the left of the Input
|
|
43
43
|
When an option is clicked
|
|
44
|
-
Then the Input
|
|
44
|
+
Then the Input remains the same height
|
|
45
45
|
And the top of the menu is aligned with the bottom of the input
|
|
46
46
|
And the left of the Menu is aligned with the left of the Input
|
|
47
47
|
|
|
@@ -29,14 +29,14 @@ When('the window is resized to a greater width', () => {
|
|
|
29
29
|
When('an option is clicked', () => {
|
|
30
30
|
cy.contains('option one').click();
|
|
31
31
|
});
|
|
32
|
-
Then('the Input
|
|
32
|
+
Then('the Input remains the same height', () => {
|
|
33
33
|
const emptyInputHeight = '@emptyInputHeight';
|
|
34
34
|
const inputDataTest = '[data-test="dhis2-uicore-select-input"]';
|
|
35
35
|
cy.getAll(emptyInputHeight, inputDataTest).should(([emptyInputHeight, inputs]) => {
|
|
36
36
|
expect(inputs.length).to.equal(1);
|
|
37
37
|
const $input = inputs[0];
|
|
38
38
|
const inputRect = $input.getBoundingClientRect();
|
|
39
|
-
expect(inputRect.height).to.
|
|
39
|
+
expect(inputRect.height).to.equal(emptyInputHeight);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
Then('the top of the menu is aligned with the bottom of the input', () => {
|
|
@@ -34,14 +34,14 @@ Feature: Position of MultiSelect menu dropdown
|
|
|
34
34
|
Then the left of the Menu is aligned with the left of the Input
|
|
35
35
|
And the Menu and the Input have an equal width
|
|
36
36
|
|
|
37
|
-
Scenario:
|
|
37
|
+
Scenario: Positioning the menu when an option is selected
|
|
38
38
|
Given a MultiSelect is rendered to which options can be added
|
|
39
39
|
And the input is empty
|
|
40
40
|
When the MultiSelect is clicked
|
|
41
41
|
Then the top of the menu is aligned with the bottom of the input
|
|
42
42
|
And the left of the Menu is aligned with the left of the Input
|
|
43
43
|
When an option is clicked
|
|
44
|
-
Then the Input
|
|
44
|
+
Then the Input remains the same height
|
|
45
45
|
And the top of the menu is aligned with the bottom of the input
|
|
46
46
|
And the left of the Menu is aligned with the left of the Input
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/select",
|
|
3
|
-
"version": "7.15.
|
|
3
|
+
"version": "7.15.1",
|
|
4
4
|
"description": "UI Select",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
|
36
|
-
"@dhis2-ui/box": "7.15.
|
|
37
|
-
"@dhis2-ui/button": "7.15.
|
|
38
|
-
"@dhis2-ui/card": "7.15.
|
|
39
|
-
"@dhis2-ui/checkbox": "7.15.
|
|
40
|
-
"@dhis2-ui/chip": "7.15.
|
|
41
|
-
"@dhis2-ui/field": "7.15.
|
|
42
|
-
"@dhis2-ui/input": "7.15.
|
|
43
|
-
"@dhis2-ui/layer": "7.15.
|
|
44
|
-
"@dhis2-ui/loader": "7.15.
|
|
45
|
-
"@dhis2-ui/popper": "7.15.
|
|
46
|
-
"@dhis2-ui/status-icon": "7.15.
|
|
47
|
-
"@dhis2/ui-constants": "7.15.
|
|
48
|
-
"@dhis2/ui-icons": "7.15.
|
|
36
|
+
"@dhis2-ui/box": "7.15.1",
|
|
37
|
+
"@dhis2-ui/button": "7.15.1",
|
|
38
|
+
"@dhis2-ui/card": "7.15.1",
|
|
39
|
+
"@dhis2-ui/checkbox": "7.15.1",
|
|
40
|
+
"@dhis2-ui/chip": "7.15.1",
|
|
41
|
+
"@dhis2-ui/field": "7.15.1",
|
|
42
|
+
"@dhis2-ui/input": "7.15.1",
|
|
43
|
+
"@dhis2-ui/layer": "7.15.1",
|
|
44
|
+
"@dhis2-ui/loader": "7.15.1",
|
|
45
|
+
"@dhis2-ui/popper": "7.15.1",
|
|
46
|
+
"@dhis2-ui/status-icon": "7.15.1",
|
|
47
|
+
"@dhis2/ui-constants": "7.15.1",
|
|
48
|
+
"@dhis2/ui-icons": "7.15.1",
|
|
49
49
|
"classnames": "^2.3.1",
|
|
50
50
|
"prop-types": "^15.7.2"
|
|
51
51
|
},
|