@dhis2/ui-forms 9.5.0-alpha.1 → 9.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/cjs/CheckboxFieldFF/features/can_toggle_a_boolean/index.js +5 -7
- package/build/cjs/CheckboxFieldFF/features/can_toggle_a_value/index.js +5 -7
- package/build/cjs/CheckboxFieldFF/features/common/index.js +2 -2
- package/build/cjs/CheckboxFieldFF/features/displays_error/index.js +4 -4
- package/build/cjs/FileInputFieldFF/features/accepts_file/index.js +6 -8
- package/build/cjs/FileInputFieldFF/features/common/index.js +3 -3
- package/build/cjs/FileInputFieldFF/features/displays_error/index.js +4 -6
- package/build/cjs/InputFieldFF/features/can_set_a_value/index.js +4 -4
- package/build/cjs/InputFieldFF/features/displays_error/index.js +4 -4
- package/build/cjs/MultiSelectFieldFF/features/can_set_a_value/index.js +6 -8
- package/build/cjs/MultiSelectFieldFF/features/common/index.js +2 -2
- package/build/cjs/MultiSelectFieldFF/features/displays_error/index.js +3 -5
- package/build/cjs/RadioFieldFF/features/can_set_a_value/index.js +4 -6
- package/build/cjs/RadioFieldFF/features/common/index.js +2 -2
- package/build/cjs/RadioFieldFF/features/displays_error/index.js +3 -5
- package/build/cjs/SingleSelectFieldFF/features/can_set_a_value/index.js +4 -6
- package/build/cjs/SingleSelectFieldFF/features/common/index.js +2 -2
- package/build/cjs/SingleSelectFieldFF/features/displays_error/index.js +3 -5
- package/build/cjs/SwitchFieldFF/features/can_toggle_a_boolean/index.js +5 -7
- package/build/cjs/SwitchFieldFF/features/can_toggle_a_value/index.js +5 -7
- package/build/cjs/SwitchFieldFF/features/common/index.js +2 -2
- package/build/cjs/SwitchFieldFF/features/displays_error/index.js +4 -4
- package/build/cjs/TextAreaFieldFF/features/can_set_a_value/index.js +4 -4
- package/build/cjs/TextAreaFieldFF/features/displays_error/index.js +4 -4
- package/build/cjs/locales/lo/translations.json +27 -27
- package/build/es/CheckboxFieldFF/features/can_toggle_a_boolean/index.js +1 -2
- package/build/es/CheckboxFieldFF/features/can_toggle_a_value/index.js +1 -2
- package/build/es/CheckboxFieldFF/features/common/index.js +1 -1
- package/build/es/CheckboxFieldFF/features/displays_error/index.js +1 -1
- package/build/es/FileInputFieldFF/features/accepts_file/index.js +1 -2
- package/build/es/FileInputFieldFF/features/common/index.js +1 -1
- package/build/es/FileInputFieldFF/features/displays_error/index.js +1 -2
- package/build/es/InputFieldFF/features/can_set_a_value/index.js +1 -1
- package/build/es/InputFieldFF/features/displays_error/index.js +1 -1
- package/build/es/MultiSelectFieldFF/features/can_set_a_value/index.js +1 -2
- package/build/es/MultiSelectFieldFF/features/common/index.js +1 -1
- package/build/es/MultiSelectFieldFF/features/displays_error/index.js +1 -2
- package/build/es/RadioFieldFF/features/can_set_a_value/index.js +1 -2
- package/build/es/RadioFieldFF/features/common/index.js +1 -1
- package/build/es/RadioFieldFF/features/displays_error/index.js +1 -2
- package/build/es/SingleSelectFieldFF/features/can_set_a_value/index.js +1 -2
- package/build/es/SingleSelectFieldFF/features/common/index.js +1 -1
- package/build/es/SingleSelectFieldFF/features/displays_error/index.js +1 -2
- package/build/es/SwitchFieldFF/features/can_toggle_a_boolean/index.js +1 -2
- package/build/es/SwitchFieldFF/features/can_toggle_a_value/index.js +1 -2
- package/build/es/SwitchFieldFF/features/common/index.js +1 -1
- package/build/es/SwitchFieldFF/features/displays_error/index.js +1 -1
- package/build/es/TextAreaFieldFF/features/can_set_a_value/index.js +1 -1
- package/build/es/TextAreaFieldFF/features/displays_error/index.js +1 -1
- package/build/es/locales/lo/translations.json +27 -27
- package/package.json +10 -10
@@ -1,20 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('an unchecked Checkbox without value is rendered', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Checkbox without value is rendered', () => {
|
8
6
|
cy.visitStory('Testing:Checkbox', 'Unchecked');
|
9
7
|
cy.verifyFormValue('checkbox', undefined);
|
10
8
|
});
|
11
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the checkbox will be true', () => {
|
12
10
|
cy.verifyFormValue('checkbox', true);
|
13
11
|
});
|
14
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Given)('a checked Checkbox without value is rendered', () => {
|
15
13
|
cy.visitStory('Testing:Checkbox', 'Checked');
|
16
14
|
cy.verifyFormValue('checkbox', true);
|
17
15
|
});
|
18
|
-
(0,
|
16
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the checkbox will be false', () => {
|
19
17
|
cy.verifyFormValue('checkbox', false);
|
20
18
|
});
|
@@ -1,21 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('an unchecked Checkbox with a value is rendered', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Checkbox with a value is rendered', () => {
|
8
6
|
cy.visitStory('Testing:Checkbox', 'Unchecked with value');
|
9
7
|
cy.verifyFormValue('checkbox', undefined);
|
10
8
|
});
|
11
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the checkbox will be yes', () => {
|
12
10
|
cy.verifyFormArrayValue('checkbox', 'yes');
|
13
11
|
});
|
14
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Given)('a checked Checkbox with a value is rendered', () => {
|
15
13
|
cy.visitStory('Testing:Checkbox', 'Checked with value');
|
16
14
|
cy.verifyFormArrayValue('checkbox', 'yes');
|
17
15
|
});
|
18
|
-
(0,
|
16
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the checkbox will be correct', () => {
|
19
17
|
cy.window().then(win => {
|
20
18
|
expect(win.formValues.checkbox).to.deep.equal([]);
|
21
19
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
(0,
|
5
|
+
(0, _cypressCucumberPreprocessor.When)('the user clicks on the Checkbox', () => {
|
6
6
|
cy.get('[data-test="dhis2-uicore-checkbox"]').click();
|
7
7
|
});
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
6
6
|
|
7
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Checkbox is rendered', () => {
|
8
8
|
cy.visitStory('Testing:Checkbox', 'Unchecked');
|
9
9
|
cy.verifyFormValue('checkbox', undefined);
|
10
10
|
});
|
11
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
12
12
|
cy.get('button[type="submit"]').click();
|
13
13
|
});
|
14
|
-
(0,
|
14
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
15
15
|
cy.get('[data-test="dhis2-uiwidgets-checkboxfield-validation"]').should('contain', _hasValue.hasValueMessage);
|
16
16
|
});
|
@@ -1,16 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('a multi-file IputField is rendered', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a multi-file IputField is rendered', () => {
|
8
6
|
cy.visitStory('Testing:FileInput', 'Standard form');
|
9
7
|
});
|
10
|
-
(0,
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('a file is provided', () => {
|
11
9
|
cy.get('[name="fileTxt"]').uploadSingleFile('txt', 'FileInput/file.txt');
|
12
10
|
});
|
13
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('more than one files are provided', () => {
|
14
12
|
cy.get('[name="fileJpgs"]').uploadMultipleFiles([{
|
15
13
|
fileType: 'txt',
|
16
14
|
fixture: 'FileInput/file.txt'
|
@@ -19,7 +17,7 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
19
17
|
fixture: 'FileInput/file.md'
|
20
18
|
}], true);
|
21
19
|
});
|
22
|
-
(0,
|
20
|
+
(0, _cypressCucumberPreprocessor.Then)('the form state contains that file', () => {
|
23
21
|
cy.window().then(win => {
|
24
22
|
const {
|
25
23
|
fileTxt
|
@@ -29,7 +27,7 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
29
27
|
expect(file.name).to.equal('file.txt');
|
30
28
|
});
|
31
29
|
});
|
32
|
-
(0,
|
30
|
+
(0, _cypressCucumberPreprocessor.Then)('the form state contains those files', () => {
|
33
31
|
cy.window().then(win => {
|
34
32
|
const {
|
35
33
|
fileJpgs
|
@@ -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 single-file FileInput is rendered', () => {
|
6
6
|
cy.visitStory('Testing:FileInput', 'Standard form');
|
7
7
|
});
|
8
|
-
(0,
|
8
|
+
(0, _cypressCucumberPreprocessor.Given)('the InputField does not contain any files', () => {
|
9
9
|
cy.verifyFormValue('fileTxt', undefined);
|
10
10
|
});
|
@@ -1,15 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.When)('a file with the wrong file type is provided', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.When)('a file with the wrong file type is provided', () => {
|
8
6
|
cy.get('[name="fileTxt"]').uploadSingleFile('md', 'FileInput/file.md');
|
9
7
|
});
|
10
|
-
(0,
|
8
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
11
9
|
cy.get('button[type="submit"]').click();
|
12
10
|
});
|
13
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
14
12
|
cy.get('.fileTxt').get('[data-test="dhis2-uiwidgets-fileinputfield-validation"]').should('contain', 'The file you provided is not a txt file, received "md"');
|
15
13
|
});
|
@@ -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 no text is rendered', () => {
|
6
6
|
cy.visitStory('Testing:InputFieldFF', 'Default');
|
7
7
|
cy.verifyFormValue('agree', undefined);
|
8
8
|
});
|
9
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.When)('the user types something in the Input', () => {
|
10
10
|
cy.get('input').type('something');
|
11
11
|
});
|
12
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value equals the written text", () => {
|
13
13
|
cy.verifyFormValue('agree', 'something');
|
14
14
|
});
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
6
6
|
|
7
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.Given)('an empty, required Input is rendered', () => {
|
8
8
|
cy.visitStory('Testing:InputFieldFF', 'Required');
|
9
9
|
cy.verifyFormValue('agree', undefined);
|
10
10
|
});
|
11
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
12
12
|
cy.get('button[type="submit"]').click();
|
13
13
|
});
|
14
|
-
(0,
|
14
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
15
15
|
cy.get('.error').should('contain', _hasValue.hasValueMessage);
|
16
16
|
});
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('the MultiSelect has two options', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('the MultiSelect has two options', () => {
|
8
6
|
const options = [{
|
9
7
|
value: 'value1',
|
10
8
|
label: 'Label 1'
|
@@ -19,20 +17,20 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
19
17
|
});
|
20
18
|
});
|
21
19
|
});
|
22
|
-
(0,
|
20
|
+
(0, _cypressCucumberPreprocessor.When)('the user selects the first option', () => {
|
23
21
|
cy.get('[data-test="dhis2-uicore-multiselect"]').click();
|
24
22
|
cy.get('[data-test="dhis2-uicore-checkbox"]').first().click();
|
25
23
|
});
|
26
|
-
(0,
|
24
|
+
(0, _cypressCucumberPreprocessor.When)('the user selects the second option', () => {
|
27
25
|
cy.get('[data-test="dhis2-uicore-checkbox"]').last().click();
|
28
26
|
});
|
29
|
-
(0,
|
27
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value equals the first option's value", () => {
|
30
28
|
cy.getFormValue('multiSelect').then(selected => {
|
31
29
|
expect(selected).to.have.lengthOf(1);
|
32
30
|
expect(selected).to.deep.equal(['value1']);
|
33
31
|
});
|
34
32
|
});
|
35
|
-
(0,
|
33
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value contains both options", () => {
|
36
34
|
cy.get('@options').then(options => {
|
37
35
|
cy.getFormValue('multiSelect').then(selected => {
|
38
36
|
expect(selected).to.have.lengthOf(options.length);
|
@@ -1,8 +1,8 @@
|
|
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 required MultiSelect with no selected value', () => {
|
6
6
|
cy.visitStory('Testing:MultiSelectFieldFF', 'Required');
|
7
7
|
cy.getFormValue('multiSelect');
|
8
8
|
cy.verifyFormValue('multiSelect', undefined);
|
@@ -1,14 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
4
|
-
|
5
|
-
var _steps = require("cypress-cucumber-preprocessor/steps");
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
6
4
|
|
7
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
8
6
|
|
9
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
10
8
|
cy.get('button[type="submit"]').click();
|
11
9
|
});
|
12
|
-
(0,
|
10
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
13
11
|
cy.get('.error').should('contain', _hasValue.hasValueMessage);
|
14
12
|
});
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('there are three options', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('there are three options', () => {
|
8
6
|
const options = [{
|
9
7
|
value: 'one',
|
10
8
|
label: 'One'
|
@@ -22,10 +20,10 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
22
20
|
});
|
23
21
|
});
|
24
22
|
});
|
25
|
-
(0,
|
23
|
+
(0, _cypressCucumberPreprocessor.When)('the user selects the last option', () => {
|
26
24
|
cy.get('label:last').click();
|
27
25
|
});
|
28
|
-
(0,
|
26
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value equals the last option's value", () => {
|
29
27
|
cy.get('@options').then(options => {
|
30
28
|
cy.verifyFormValue('choice', options[2].value);
|
31
29
|
});
|
@@ -1,8 +1,8 @@
|
|
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 FieldGroupFF with required RadioFieldFFs and no selected value', () => {
|
6
6
|
cy.visitStory('Testing:RadioFieldFF', 'Required and no selected value');
|
7
7
|
cy.verifyFormValue('choice', undefined);
|
8
8
|
});
|
@@ -1,14 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
4
|
-
|
5
|
-
var _steps = require("cypress-cucumber-preprocessor/steps");
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
6
4
|
|
7
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
8
6
|
|
9
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
10
8
|
cy.get('button[type="submit"]').click();
|
11
9
|
});
|
12
|
-
(0,
|
10
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
13
11
|
cy.get('[data-test="dhis2-uicore-field-validation"]').should('contain', _hasValue.hasValueMessage);
|
14
12
|
});
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('the SingleSelect has one option', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('the SingleSelect has one option', () => {
|
8
6
|
const options = [{
|
9
7
|
value: 'Value',
|
10
8
|
label: 'Label'
|
@@ -16,10 +14,10 @@ var _steps = require("cypress-cucumber-preprocessor/steps");
|
|
16
14
|
});
|
17
15
|
});
|
18
16
|
});
|
19
|
-
(0,
|
17
|
+
(0, _cypressCucumberPreprocessor.When)('the user selects the first option', () => {
|
20
18
|
cy.get('[data-test="dhis2-uicore-select-input"]').selectSelectNthOption(0);
|
21
19
|
});
|
22
|
-
(0,
|
20
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value equals the first option's value", () => {
|
23
21
|
cy.get('@options').then(options => {
|
24
22
|
cy.getFormValue('singleSelect').then(actualValue => {
|
25
23
|
expect(actualValue).to.deep.equal(options[0].value);
|
@@ -1,8 +1,8 @@
|
|
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 required SingleSelect with no selected value', () => {
|
6
6
|
cy.visitStory('Testing:SingleSelectFieldFF', 'Required');
|
7
7
|
cy.verifyFormValue('singleSelect', undefined);
|
8
8
|
});
|
@@ -1,14 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
4
|
-
|
5
|
-
var _steps = require("cypress-cucumber-preprocessor/steps");
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
6
4
|
|
7
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
8
6
|
|
9
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
10
8
|
cy.get('button[type="submit"]').click();
|
11
9
|
});
|
12
|
-
(0,
|
10
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
13
11
|
cy.get('.error').should('contain', _hasValue.hasValueMessage);
|
14
12
|
});
|
@@ -1,20 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('an unchecked Switch without value is rendered', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Switch without value is rendered', () => {
|
8
6
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked');
|
9
7
|
cy.verifyFormValue('switch', undefined);
|
10
8
|
});
|
11
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the switch will be true', () => {
|
12
10
|
cy.verifyFormValue('switch', true);
|
13
11
|
});
|
14
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Given)('a checked Switch without value is rendered', () => {
|
15
13
|
cy.visitStory('Testing:SwitchFieldFF', 'Checked');
|
16
14
|
cy.verifyFormValue('switch', true);
|
17
15
|
});
|
18
|
-
(0,
|
16
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the switch will be false', () => {
|
19
17
|
cy.verifyFormValue('switch', false);
|
20
18
|
});
|
@@ -1,21 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
require("
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
(0, _steps.Given)('an unchecked Switch with a value is rendered', () => {
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Switch with a value is rendered', () => {
|
8
6
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked with value');
|
9
7
|
cy.verifyFormValue('switch', undefined);
|
10
8
|
});
|
11
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the switch will be yes', () => {
|
12
10
|
cy.verifyFormArrayValue('switch', 'yes');
|
13
11
|
});
|
14
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Given)('a checked Switch with a value is rendered', () => {
|
15
13
|
cy.visitStory('Testing:SwitchFieldFF', 'Checked with value');
|
16
14
|
cy.verifyFormArrayValue('switch', 'yes');
|
17
15
|
});
|
18
|
-
(0,
|
16
|
+
(0, _cypressCucumberPreprocessor.Then)('the form value that corresponds to the switch will be correct', () => {
|
19
17
|
cy.window().then(win => {
|
20
18
|
expect(win.formValues.switch).to.deep.equal([]);
|
21
19
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
|
-
(0,
|
5
|
+
(0, _cypressCucumberPreprocessor.When)('the user clicks on the Switch', () => {
|
6
6
|
cy.get('[data-test="dhis2-uicore-switch"]').click();
|
7
7
|
});
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
6
6
|
|
7
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.Given)('an unchecked Switch is rendered', () => {
|
8
8
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked');
|
9
9
|
cy.verifyFormValue('switch', undefined);
|
10
10
|
});
|
11
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
12
12
|
cy.get('button[type="submit"]').click();
|
13
13
|
});
|
14
|
-
(0,
|
14
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
15
15
|
cy.get('[data-test="dhis2-uiwidgets-switchfield-validation"]').should('contain', _hasValue.hasValueMessage);
|
16
16
|
});
|
@@ -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 TextArea with no text is rendered', () => {
|
6
6
|
cy.visitStory('TextArea', 'Default');
|
7
7
|
cy.verifyFormValue('comment', undefined);
|
8
8
|
});
|
9
|
-
(0,
|
9
|
+
(0, _cypressCucumberPreprocessor.When)('the user types something in the TextArea', () => {
|
10
10
|
cy.get('textarea').type('something');
|
11
11
|
});
|
12
|
-
(0,
|
12
|
+
(0, _cypressCucumberPreprocessor.Then)("the form state's value equals the written text", () => {
|
13
13
|
cy.verifyFormValue('comment', 'something');
|
14
14
|
});
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
4
4
|
|
5
5
|
var _hasValue = require("../../../validators/hasValue.js");
|
6
6
|
|
7
|
-
(0,
|
7
|
+
(0, _cypressCucumberPreprocessor.Given)('an empty, required TextArea is rendered', () => {
|
8
8
|
cy.visitStory('TextArea', 'Required');
|
9
9
|
cy.verifyFormValue('agree', undefined);
|
10
10
|
});
|
11
|
-
(0,
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
|
12
12
|
cy.get('button[type="submit"]').click();
|
13
13
|
});
|
14
|
-
(0,
|
14
|
+
(0, _cypressCucumberPreprocessor.Then)('an error message is shown', () => {
|
15
15
|
cy.get('.error').should('contain', _hasValue.hasValueMessage);
|
16
16
|
});
|
@@ -1,30 +1,30 @@
|
|
1
1
|
{
|
2
|
-
"Upload file": "
|
3
|
-
"Upload files": "",
|
2
|
+
"Upload file": "ອັບໂຫຼດເອກະສານ",
|
3
|
+
"Upload files": "ອັບໂຫຼດເອກະສານ",
|
4
4
|
"Remove": "ລົບອອກ",
|
5
|
-
"Please provide an alpha-numeric value": "",
|
6
|
-
"Please provide a boolean value": "",
|
7
|
-
"Please enter between {{lowerBound}} and {{upperBound}} characters": "",
|
8
|
-
"Please make sure the value of this input matches the value in \"{{otherField}}\".": "",
|
9
|
-
"Please enter a maximum of {{upperBound}} characters": "",
|
10
|
-
"Please enter a number with a maximum of {{upperBound}}": "",
|
11
|
-
"Please enter at least {{lowerBound}} characters": "",
|
12
|
-
"Please enter a number of at least {{lowerBound}}": "",
|
13
|
-
"Number cannot be less than {{lowerBound}} or more than {{upperBound}}": "",
|
14
|
-
"Please make sure the value of this input matches the pattern {{patternString}}.": "",
|
15
|
-
"Password should be a string": "",
|
16
|
-
"Password should be at least 8 characters long": "",
|
17
|
-
"Password should be no longer than 34 characters": "",
|
18
|
-
"Password should contain at least one lowercase letter": "",
|
19
|
-
"Password should contain at least one UPPERCASE letter": "",
|
20
|
-
"Password should contain at least one number": "",
|
21
|
-
"Password should have at least one special character": "",
|
22
|
-
"Please provide a
|
23
|
-
"Please provide a
|
24
|
-
"Please provide a
|
25
|
-
"Please provide a
|
26
|
-
"Please provide a
|
27
|
-
"Please provide a
|
28
|
-
"Please provide a
|
29
|
-
"Please provide a
|
5
|
+
"Please provide an alpha-numeric value": "ກະລຸນາລະບຸຄ່າທີ່ເປັນຕົວອັກສອນ ແລະ ຕົວເລກ",
|
6
|
+
"Please provide a boolean value": "ກະລຸນາລະບຸຄ່າທີ່ເປັນສູນ",
|
7
|
+
"Please enter between {{lowerBound}} and {{upperBound}} characters": "ກະລຸນາຕື່ມລະຫວ່າງຕົວອັກສອນ {{lowerBound}} ແລະ {{upperBound}} ",
|
8
|
+
"Please make sure the value of this input matches the value in \"{{otherField}}\".": "ກະລຸນາກວດສອບໃຫ້ແນ່ໃຈວ່າຄ່າຂອງຂໍ້ມູນນີ້ກົງກັບຄ່າໃນ \" {{otherField}} \"",
|
9
|
+
"Please enter a maximum of {{upperBound}} characters": "ກະລຸນາຕື່ມຕົວອັກສອນສູງສຸດ {{upperBound}}",
|
10
|
+
"Please enter a number with a maximum of {{upperBound}}": "ກະລຸນາຕື່ມຕົວເລກທີ່ມີຈຳນວນສູງສຸດ {{upperBound}}",
|
11
|
+
"Please enter at least {{lowerBound}} characters": "ກະລຸນາຕື່ມຕົວອັກສອນຢ່າງໜ້ອຍ {{lowerBound}} ",
|
12
|
+
"Please enter a number of at least {{lowerBound}}": "ກະລຸນາຕື່ມຈຳນວນຢ່າງໜ້ອຍ {{lowerBound}}",
|
13
|
+
"Number cannot be less than {{lowerBound}} or more than {{upperBound}}": "ຕົວເລກບໍ່ສາມາດໜ້ອຍກວ່າ {{lowerBound}} ຫຼືຫຼາຍກວ່າ {{upperBound}}",
|
14
|
+
"Please make sure the value of this input matches the pattern {{patternString}}.": "ກະລຸນາກວດສອບໃຫ້ແນ່ໃຈວ່າຄ່າຂອງຂໍ້ມູນນີ້ກົງກັບຮູບແບບ {{patternString}} .",
|
15
|
+
"Password should be a string": "ລະຫັດຜ່ານຄວນເປັນຕົວອັກສອນ",
|
16
|
+
"Password should be at least 8 characters long": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍ 8 ຕົວອັກສອນ",
|
17
|
+
"Password should be no longer than 34 characters": "ລະຫັດຜ່ານຄວນຈະບໍ່ເກີນ 34 ຕົວອັກສອນ",
|
18
|
+
"Password should contain at least one lowercase letter": "ລະຫັດຜ່ານຄວນມີຕົວພິມນ້ອຍຢ່າງໜ້ອຍໜຶ່ງຕົວ",
|
19
|
+
"Password should contain at least one UPPERCASE letter": "ລະຫັດຜ່ານຄວນມີຕົວພິມໃຫຍ່ຢ່າງໜ້ອຍໜຶ່ງຕົວ",
|
20
|
+
"Password should contain at least one number": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍໜຶ່ງຕົວເລກ",
|
21
|
+
"Password should have at least one special character": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍໜຶ່ງຕົວອັກສອນພິເສດ",
|
22
|
+
"Please provide a valid email address": "ກະລຸນາລະບຸທີ່ຢູ່ອີເມວທີ່ຖືກຕ້ອງ",
|
23
|
+
"Please provide a value": "ກະລຸນາລະບຸຄ່າ",
|
24
|
+
"Please provide a round number without decimals": "ກະລຸນາປ້ອນຈໍານວນມົນໂດຍບໍ່ມີຈຸດ",
|
25
|
+
"Please provide a valid international phone number.": "ກະລຸນາປ້ອນເບີໂທລະສັບທີ່ຖືກຕ້ອງ",
|
26
|
+
"Please provide a number": "ກະລຸນາປ້ອນຕົວເລກ",
|
27
|
+
"Please provide a string": "ກະລຸນາປ້ອນຕົວອັກສອນ",
|
28
|
+
"Please provide a valid url": "ກະລຸນາປ້ອນ URL ທີ່ຖືກຕ້ອງ",
|
29
|
+
"Please provide a username between 4 and 255 characters long and possibly separated by . _ - or @": "ກະລຸນາປ້ອນຊື່ຜູ້ໃຊ້ລະຫວ່າງ 4 ແລະ 255 ຕົວອັກສອນ ແລະ ແຍກອອກ . _ - ຫຼື @"
|
30
30
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('an unchecked Checkbox without value is rendered', () => {
|
4
3
|
cy.visitStory('Testing:Checkbox', 'Unchecked');
|
5
4
|
cy.verifyFormValue('checkbox', undefined);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('an unchecked Checkbox with a value is rendered', () => {
|
4
3
|
cy.visitStory('Testing:Checkbox', 'Unchecked with value');
|
5
4
|
cy.verifyFormValue('checkbox', undefined);
|
@@ -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
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
3
3
|
Given('an unchecked Checkbox is rendered', () => {
|
4
4
|
cy.visitStory('Testing:Checkbox', 'Unchecked');
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('a multi-file IputField is rendered', () => {
|
4
3
|
cy.visitStory('Testing:FileInput', 'Standard form');
|
5
4
|
});
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
When('a file with the wrong file type is provided', () => {
|
4
3
|
cy.get('[name="fileTxt"]').uploadSingleFile('md', 'FileInput/file.md');
|
5
4
|
});
|
@@ -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('a Input with no text is rendered', () => {
|
3
3
|
cy.visitStory('Testing:InputFieldFF', 'Default');
|
4
4
|
cy.verifyFormValue('agree', undefined);
|
@@ -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
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
3
3
|
Given('an empty, required Input is rendered', () => {
|
4
4
|
cy.visitStory('Testing:InputFieldFF', 'Required');
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('the MultiSelect has two options', () => {
|
4
3
|
const options = [{
|
5
4
|
value: 'value1',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Given } from 'cypress-cucumber-preprocessor
|
1
|
+
import { Given } from '@badeball/cypress-cucumber-preprocessor';
|
2
2
|
Given('a required MultiSelect with no selected value', () => {
|
3
3
|
cy.visitStory('Testing:MultiSelectFieldFF', 'Required');
|
4
4
|
cy.getFormValue('multiSelect');
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
4
3
|
When('the user submits the form', () => {
|
5
4
|
cy.get('button[type="submit"]').click();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Given } from 'cypress-cucumber-preprocessor
|
1
|
+
import { Given } from '@badeball/cypress-cucumber-preprocessor';
|
2
2
|
Given('a FieldGroupFF with required RadioFieldFFs and no selected value', () => {
|
3
3
|
cy.visitStory('Testing:RadioFieldFF', 'Required and no selected value');
|
4
4
|
cy.verifyFormValue('choice', undefined);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
4
3
|
When('the user submits the form', () => {
|
5
4
|
cy.get('button[type="submit"]').click();
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('the SingleSelect has one option', () => {
|
4
3
|
const options = [{
|
5
4
|
value: 'Value',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Given } from 'cypress-cucumber-preprocessor
|
1
|
+
import { Given } from '@badeball/cypress-cucumber-preprocessor';
|
2
2
|
Given('a required SingleSelect with no selected value', () => {
|
3
3
|
cy.visitStory('Testing:SingleSelectFieldFF', 'Required');
|
4
4
|
cy.verifyFormValue('singleSelect', undefined);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { When, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { When, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
4
3
|
When('the user submits the form', () => {
|
5
4
|
cy.get('button[type="submit"]').click();
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('an unchecked Switch without value is rendered', () => {
|
4
3
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked');
|
5
4
|
cy.verifyFormValue('switch', undefined);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import '
|
2
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
3
2
|
Given('an unchecked Switch with a value is rendered', () => {
|
4
3
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked with value');
|
5
4
|
cy.verifyFormValue('switch', undefined);
|
@@ -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
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
3
3
|
Given('an unchecked Switch is rendered', () => {
|
4
4
|
cy.visitStory('Testing:SwitchFieldFF', 'Unchecked');
|
@@ -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('a TextArea with no text is rendered', () => {
|
3
3
|
cy.visitStory('TextArea', 'Default');
|
4
4
|
cy.verifyFormValue('comment', undefined);
|
@@ -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
|
import { hasValueMessage } from '../../../validators/hasValue.js';
|
3
3
|
Given('an empty, required TextArea is rendered', () => {
|
4
4
|
cy.visitStory('TextArea', 'Required');
|
@@ -1,30 +1,30 @@
|
|
1
1
|
{
|
2
|
-
"Upload file": "
|
3
|
-
"Upload files": "",
|
2
|
+
"Upload file": "ອັບໂຫຼດເອກະສານ",
|
3
|
+
"Upload files": "ອັບໂຫຼດເອກະສານ",
|
4
4
|
"Remove": "ລົບອອກ",
|
5
|
-
"Please provide an alpha-numeric value": "",
|
6
|
-
"Please provide a boolean value": "",
|
7
|
-
"Please enter between {{lowerBound}} and {{upperBound}} characters": "",
|
8
|
-
"Please make sure the value of this input matches the value in \"{{otherField}}\".": "",
|
9
|
-
"Please enter a maximum of {{upperBound}} characters": "",
|
10
|
-
"Please enter a number with a maximum of {{upperBound}}": "",
|
11
|
-
"Please enter at least {{lowerBound}} characters": "",
|
12
|
-
"Please enter a number of at least {{lowerBound}}": "",
|
13
|
-
"Number cannot be less than {{lowerBound}} or more than {{upperBound}}": "",
|
14
|
-
"Please make sure the value of this input matches the pattern {{patternString}}.": "",
|
15
|
-
"Password should be a string": "",
|
16
|
-
"Password should be at least 8 characters long": "",
|
17
|
-
"Password should be no longer than 34 characters": "",
|
18
|
-
"Password should contain at least one lowercase letter": "",
|
19
|
-
"Password should contain at least one UPPERCASE letter": "",
|
20
|
-
"Password should contain at least one number": "",
|
21
|
-
"Password should have at least one special character": "",
|
22
|
-
"Please provide a
|
23
|
-
"Please provide a
|
24
|
-
"Please provide a
|
25
|
-
"Please provide a
|
26
|
-
"Please provide a
|
27
|
-
"Please provide a
|
28
|
-
"Please provide a
|
29
|
-
"Please provide a
|
5
|
+
"Please provide an alpha-numeric value": "ກະລຸນາລະບຸຄ່າທີ່ເປັນຕົວອັກສອນ ແລະ ຕົວເລກ",
|
6
|
+
"Please provide a boolean value": "ກະລຸນາລະບຸຄ່າທີ່ເປັນສູນ",
|
7
|
+
"Please enter between {{lowerBound}} and {{upperBound}} characters": "ກະລຸນາຕື່ມລະຫວ່າງຕົວອັກສອນ {{lowerBound}} ແລະ {{upperBound}} ",
|
8
|
+
"Please make sure the value of this input matches the value in \"{{otherField}}\".": "ກະລຸນາກວດສອບໃຫ້ແນ່ໃຈວ່າຄ່າຂອງຂໍ້ມູນນີ້ກົງກັບຄ່າໃນ \" {{otherField}} \"",
|
9
|
+
"Please enter a maximum of {{upperBound}} characters": "ກະລຸນາຕື່ມຕົວອັກສອນສູງສຸດ {{upperBound}}",
|
10
|
+
"Please enter a number with a maximum of {{upperBound}}": "ກະລຸນາຕື່ມຕົວເລກທີ່ມີຈຳນວນສູງສຸດ {{upperBound}}",
|
11
|
+
"Please enter at least {{lowerBound}} characters": "ກະລຸນາຕື່ມຕົວອັກສອນຢ່າງໜ້ອຍ {{lowerBound}} ",
|
12
|
+
"Please enter a number of at least {{lowerBound}}": "ກະລຸນາຕື່ມຈຳນວນຢ່າງໜ້ອຍ {{lowerBound}}",
|
13
|
+
"Number cannot be less than {{lowerBound}} or more than {{upperBound}}": "ຕົວເລກບໍ່ສາມາດໜ້ອຍກວ່າ {{lowerBound}} ຫຼືຫຼາຍກວ່າ {{upperBound}}",
|
14
|
+
"Please make sure the value of this input matches the pattern {{patternString}}.": "ກະລຸນາກວດສອບໃຫ້ແນ່ໃຈວ່າຄ່າຂອງຂໍ້ມູນນີ້ກົງກັບຮູບແບບ {{patternString}} .",
|
15
|
+
"Password should be a string": "ລະຫັດຜ່ານຄວນເປັນຕົວອັກສອນ",
|
16
|
+
"Password should be at least 8 characters long": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍ 8 ຕົວອັກສອນ",
|
17
|
+
"Password should be no longer than 34 characters": "ລະຫັດຜ່ານຄວນຈະບໍ່ເກີນ 34 ຕົວອັກສອນ",
|
18
|
+
"Password should contain at least one lowercase letter": "ລະຫັດຜ່ານຄວນມີຕົວພິມນ້ອຍຢ່າງໜ້ອຍໜຶ່ງຕົວ",
|
19
|
+
"Password should contain at least one UPPERCASE letter": "ລະຫັດຜ່ານຄວນມີຕົວພິມໃຫຍ່ຢ່າງໜ້ອຍໜຶ່ງຕົວ",
|
20
|
+
"Password should contain at least one number": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍໜຶ່ງຕົວເລກ",
|
21
|
+
"Password should have at least one special character": "ລະຫັດຜ່ານຄວນມີຢ່າງໜ້ອຍໜຶ່ງຕົວອັກສອນພິເສດ",
|
22
|
+
"Please provide a valid email address": "ກະລຸນາລະບຸທີ່ຢູ່ອີເມວທີ່ຖືກຕ້ອງ",
|
23
|
+
"Please provide a value": "ກະລຸນາລະບຸຄ່າ",
|
24
|
+
"Please provide a round number without decimals": "ກະລຸນາປ້ອນຈໍານວນມົນໂດຍບໍ່ມີຈຸດ",
|
25
|
+
"Please provide a valid international phone number.": "ກະລຸນາປ້ອນເບີໂທລະສັບທີ່ຖືກຕ້ອງ",
|
26
|
+
"Please provide a number": "ກະລຸນາປ້ອນຕົວເລກ",
|
27
|
+
"Please provide a string": "ກະລຸນາປ້ອນຕົວອັກສອນ",
|
28
|
+
"Please provide a valid url": "ກະລຸນາປ້ອນ URL ທີ່ຖືກຕ້ອງ",
|
29
|
+
"Please provide a username between 4 and 255 characters long and possibly separated by . _ - or @": "ກະລຸນາປ້ອນຊື່ຜູ້ໃຊ້ລະຫວ່າງ 4 ແລະ 255 ຕົວອັກສອນ ແລະ ແຍກອອກ . _ - ຫຼື @"
|
30
30
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2/ui-forms",
|
3
|
-
"version": "9.5.0
|
3
|
+
"version": "9.5.0",
|
4
4
|
"main": "./build/cjs/index.js",
|
5
5
|
"module": "./build/es/index.js",
|
6
6
|
"sideEffects": [
|
@@ -35,15 +35,15 @@
|
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"@dhis2/prop-types": "^3.1.2",
|
38
|
-
"@dhis2-ui/button": "9.5.0
|
39
|
-
"@dhis2-ui/checkbox": "9.5.0
|
40
|
-
"@dhis2-ui/field": "9.5.0
|
41
|
-
"@dhis2-ui/file-input": "9.5.0
|
42
|
-
"@dhis2-ui/input": "9.5.0
|
43
|
-
"@dhis2-ui/radio": "9.5.0
|
44
|
-
"@dhis2-ui/select": "9.5.0
|
45
|
-
"@dhis2-ui/switch": "9.5.0
|
46
|
-
"@dhis2-ui/text-area": "9.5.0
|
38
|
+
"@dhis2-ui/button": "9.5.0",
|
39
|
+
"@dhis2-ui/checkbox": "9.5.0",
|
40
|
+
"@dhis2-ui/field": "9.5.0",
|
41
|
+
"@dhis2-ui/file-input": "9.5.0",
|
42
|
+
"@dhis2-ui/input": "9.5.0",
|
43
|
+
"@dhis2-ui/radio": "9.5.0",
|
44
|
+
"@dhis2-ui/select": "9.5.0",
|
45
|
+
"@dhis2-ui/switch": "9.5.0",
|
46
|
+
"@dhis2-ui/text-area": "9.5.0",
|
47
47
|
"classnames": "^2.3.1",
|
48
48
|
"final-form": "^4.20.2",
|
49
49
|
"prop-types": "^15.7.2",
|