@dhis2-ui/input 9.4.4 → 9.4.6
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/input/features/accepts_initial_focus/index.js +3 -3
- package/build/cjs/input/features/can_be_blurred/index.js +4 -4
- package/build/cjs/input/features/can_be_changed/index.js +4 -4
- package/build/cjs/input/features/can_be_disabled/index.js +4 -4
- package/build/cjs/input/features/can_be_focused/index.js +4 -4
- package/build/cjs/input-field/features/can_be_required/index.js +3 -3
- package/build/es/input/features/accepts_initial_focus/index.js +1 -1
- package/build/es/input/features/can_be_blurred/index.js +1 -1
- package/build/es/input/features/can_be_changed/index.js +1 -1
- package/build/es/input/features/can_be_disabled/index.js +1 -1
- package/build/es/input/features/can_be_focused/index.js +1 -1
- package/build/es/input-field/features/can_be_required/index.js +1 -1
- package/package.json +8 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a Input with initialFocus is rendered', () => {
|
|
6
6
|
cy.visitStory('Input', 'With initialFocus');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.Then)('the Input is focused', () => {
|
|
9
9
|
cy.focused().parent('[data-test="dhis2-uicore-input"]').should('exist');
|
|
10
10
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('an Input with initialFocus and onBlur handler is rendered', () => {
|
|
6
6
|
cy.visitStory('Input', 'With initialFocus and onBlur');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('the Input is blurred', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uicore-input"] input').blur();
|
|
10
10
|
});
|
|
11
|
-
(0,
|
|
11
|
+
(0, _cypressCucumberPreprocessor.Then)('the onBlur handler is called', () => {
|
|
12
12
|
cy.window().should(win => {
|
|
13
13
|
expect(win.onBlur).to.be.calledWith({
|
|
14
14
|
value: '',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a Input with onChange handler is rendered', () => {
|
|
6
6
|
cy.visitStory('Input', 'With onChange');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('the Input is filled with a character', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uicore-input"]').click().type('a');
|
|
10
10
|
});
|
|
11
|
-
(0,
|
|
11
|
+
(0, _cypressCucumberPreprocessor.Then)('the onChange handler is called', () => {
|
|
12
12
|
cy.window().should(win => {
|
|
13
13
|
expect(win.onChange).to.be.calledWith({
|
|
14
14
|
value: 'a',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a disabled Input is rendered', () => {
|
|
6
6
|
cy.visitStory('Input', 'With disabled');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('the user clicks the input', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uicore-input"] input').click({
|
|
10
10
|
force: true
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
|
-
(0,
|
|
13
|
+
(0, _cypressCucumberPreprocessor.Then)('the Input is not focused', () => {
|
|
14
14
|
cy.focused().should('not.exist');
|
|
15
15
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a Input with onFocus handler is rendered', () => {
|
|
6
6
|
cy.visitStory('Input', 'With onFocus');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('the Input is focused', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uicore-input"] input').focus();
|
|
10
10
|
});
|
|
11
|
-
(0,
|
|
11
|
+
(0, _cypressCucumberPreprocessor.Then)('the onFocus handler is called', () => {
|
|
12
12
|
cy.window().should(win => {
|
|
13
13
|
expect(win.onFocus).to.be.calledWith({
|
|
14
14
|
value: '',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a InputField with label and a required flag is rendered', () => {
|
|
6
6
|
cy.visitStory('InputField', 'With label and required');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.Then)('the required indicator is visible', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uiwidgets-inputfield-label-required"]').should('be.visible');
|
|
10
10
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Given, When, Then } from 'cypress-cucumber-preprocessor
|
|
1
|
+
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
|
2
2
|
Given('an Input with initialFocus and onBlur handler is rendered', () => {
|
|
3
3
|
cy.visitStory('Input', 'With initialFocus and onBlur');
|
|
4
4
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor
|
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
|
2
2
|
Given('a InputField with label and a required flag is rendered', () => {
|
|
3
3
|
cy.visitStory('InputField', 'With label and required');
|
|
4
4
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/input",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.6",
|
|
4
4
|
"description": "UI Input",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2-ui/box": "9.4.
|
|
37
|
-
"@dhis2-ui/field": "9.4.
|
|
38
|
-
"@dhis2-ui/input": "9.4.
|
|
39
|
-
"@dhis2-ui/loader": "9.4.
|
|
40
|
-
"@dhis2-ui/status-icon": "9.4.
|
|
41
|
-
"@dhis2/ui-constants": "9.4.
|
|
42
|
-
"@dhis2/ui-icons": "9.4.
|
|
36
|
+
"@dhis2-ui/box": "9.4.6",
|
|
37
|
+
"@dhis2-ui/field": "9.4.6",
|
|
38
|
+
"@dhis2-ui/input": "9.4.6",
|
|
39
|
+
"@dhis2-ui/loader": "9.4.6",
|
|
40
|
+
"@dhis2-ui/status-icon": "9.4.6",
|
|
41
|
+
"@dhis2/ui-constants": "9.4.6",
|
|
42
|
+
"@dhis2/ui-icons": "9.4.6",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"prop-types": "^15.7.2"
|
|
45
45
|
},
|