@dhis2/ui-forms 9.5.0-alpha.1 → 9.6.0

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.
Files changed (51) hide show
  1. package/build/cjs/CheckboxFieldFF/features/can_toggle_a_boolean/index.js +5 -7
  2. package/build/cjs/CheckboxFieldFF/features/can_toggle_a_value/index.js +5 -7
  3. package/build/cjs/CheckboxFieldFF/features/common/index.js +2 -2
  4. package/build/cjs/CheckboxFieldFF/features/displays_error/index.js +4 -4
  5. package/build/cjs/FileInputFieldFF/features/accepts_file/index.js +6 -8
  6. package/build/cjs/FileInputFieldFF/features/common/index.js +3 -3
  7. package/build/cjs/FileInputFieldFF/features/displays_error/index.js +4 -6
  8. package/build/cjs/InputFieldFF/features/can_set_a_value/index.js +4 -4
  9. package/build/cjs/InputFieldFF/features/displays_error/index.js +4 -4
  10. package/build/cjs/MultiSelectFieldFF/features/can_set_a_value/index.js +6 -8
  11. package/build/cjs/MultiSelectFieldFF/features/common/index.js +2 -2
  12. package/build/cjs/MultiSelectFieldFF/features/displays_error/index.js +3 -5
  13. package/build/cjs/RadioFieldFF/features/can_set_a_value/index.js +4 -6
  14. package/build/cjs/RadioFieldFF/features/common/index.js +2 -2
  15. package/build/cjs/RadioFieldFF/features/displays_error/index.js +3 -5
  16. package/build/cjs/SingleSelectFieldFF/features/can_set_a_value/index.js +4 -6
  17. package/build/cjs/SingleSelectFieldFF/features/common/index.js +2 -2
  18. package/build/cjs/SingleSelectFieldFF/features/displays_error/index.js +3 -5
  19. package/build/cjs/SwitchFieldFF/features/can_toggle_a_boolean/index.js +5 -7
  20. package/build/cjs/SwitchFieldFF/features/can_toggle_a_value/index.js +5 -7
  21. package/build/cjs/SwitchFieldFF/features/common/index.js +2 -2
  22. package/build/cjs/SwitchFieldFF/features/displays_error/index.js +4 -4
  23. package/build/cjs/TextAreaFieldFF/features/can_set_a_value/index.js +4 -4
  24. package/build/cjs/TextAreaFieldFF/features/displays_error/index.js +4 -4
  25. package/build/cjs/locales/lo/translations.json +27 -27
  26. package/build/es/CheckboxFieldFF/features/can_toggle_a_boolean/index.js +1 -2
  27. package/build/es/CheckboxFieldFF/features/can_toggle_a_value/index.js +1 -2
  28. package/build/es/CheckboxFieldFF/features/common/index.js +1 -1
  29. package/build/es/CheckboxFieldFF/features/displays_error/index.js +1 -1
  30. package/build/es/FileInputFieldFF/features/accepts_file/index.js +1 -2
  31. package/build/es/FileInputFieldFF/features/common/index.js +1 -1
  32. package/build/es/FileInputFieldFF/features/displays_error/index.js +1 -2
  33. package/build/es/InputFieldFF/features/can_set_a_value/index.js +1 -1
  34. package/build/es/InputFieldFF/features/displays_error/index.js +1 -1
  35. package/build/es/MultiSelectFieldFF/features/can_set_a_value/index.js +1 -2
  36. package/build/es/MultiSelectFieldFF/features/common/index.js +1 -1
  37. package/build/es/MultiSelectFieldFF/features/displays_error/index.js +1 -2
  38. package/build/es/RadioFieldFF/features/can_set_a_value/index.js +1 -2
  39. package/build/es/RadioFieldFF/features/common/index.js +1 -1
  40. package/build/es/RadioFieldFF/features/displays_error/index.js +1 -2
  41. package/build/es/SingleSelectFieldFF/features/can_set_a_value/index.js +1 -2
  42. package/build/es/SingleSelectFieldFF/features/common/index.js +1 -1
  43. package/build/es/SingleSelectFieldFF/features/displays_error/index.js +1 -2
  44. package/build/es/SwitchFieldFF/features/can_toggle_a_boolean/index.js +1 -2
  45. package/build/es/SwitchFieldFF/features/can_toggle_a_value/index.js +1 -2
  46. package/build/es/SwitchFieldFF/features/common/index.js +1 -1
  47. package/build/es/SwitchFieldFF/features/displays_error/index.js +1 -1
  48. package/build/es/TextAreaFieldFF/features/can_set_a_value/index.js +1 -1
  49. package/build/es/TextAreaFieldFF/features/displays_error/index.js +1 -1
  50. package/build/es/locales/lo/translations.json +27 -27
  51. package/package.json +10 -10
@@ -1,20 +1,18 @@
1
1
  "use strict";
2
2
 
3
- require("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.Then)('the form value that corresponds to the checkbox will be true', () => {
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, _steps.Given)('a checked Checkbox without value is rendered', () => {
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, _steps.Then)('the form value that corresponds to the checkbox will be false', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.Then)('the form value that corresponds to the checkbox will be yes', () => {
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, _steps.Given)('a checked Checkbox with a value is rendered', () => {
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, _steps.Then)('the form value that corresponds to the checkbox will be correct', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.When)('the user clicks on the Checkbox', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
5
  var _hasValue = require("../../../validators/hasValue.js");
6
6
 
7
- (0, _steps.Given)('an unchecked Checkbox is rendered', () => {
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, _steps.When)('the user submits the form', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
12
12
  cy.get('button[type="submit"]').click();
13
13
  });
14
- (0, _steps.Then)('an error message is shown', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.When)('a file is provided', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('a file is provided', () => {
11
9
  cy.get('[name="fileTxt"]').uploadSingleFile('txt', 'FileInput/file.txt');
12
10
  });
13
- (0, _steps.When)('more than one files are provided', () => {
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, _steps.Then)('the form state contains that file', () => {
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, _steps.Then)('the form state contains those files', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a single-file FileInput is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a single-file FileInput is rendered', () => {
6
6
  cy.visitStory('Testing:FileInput', 'Standard form');
7
7
  });
8
- (0, _steps.Given)('the InputField does not contain any files', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.When)('the user submits the form', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
11
9
  cy.get('button[type="submit"]').click();
12
10
  });
13
- (0, _steps.Then)('an error message is shown', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Input with no text is rendered', () => {
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, _steps.When)('the user types something in the Input', () => {
9
+ (0, _cypressCucumberPreprocessor.When)('the user types something in the Input', () => {
10
10
  cy.get('input').type('something');
11
11
  });
12
- (0, _steps.Then)("the form state's value equals the written text", () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
5
  var _hasValue = require("../../../validators/hasValue.js");
6
6
 
7
- (0, _steps.Given)('an empty, required Input is rendered', () => {
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, _steps.When)('the user submits the form', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
12
12
  cy.get('button[type="submit"]').click();
13
13
  });
14
- (0, _steps.Then)('an error message is shown', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.When)('the user selects the first option', () => {
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, _steps.When)('the user selects the second option', () => {
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, _steps.Then)("the form state's value equals the first option's value", () => {
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, _steps.Then)("the form state's value contains both options", () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a required MultiSelect with no selected value', () => {
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("../common/index.js");
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, _steps.When)('the user submits the form', () => {
7
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
10
8
  cy.get('button[type="submit"]').click();
11
9
  });
12
- (0, _steps.Then)('an error message is shown', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.When)('the user selects the last option', () => {
23
+ (0, _cypressCucumberPreprocessor.When)('the user selects the last option', () => {
26
24
  cy.get('label:last').click();
27
25
  });
28
- (0, _steps.Then)("the form state's value equals the last option's value", () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a FieldGroupFF with required RadioFieldFFs and no selected value', () => {
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("../common/index.js");
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, _steps.When)('the user submits the form', () => {
7
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
10
8
  cy.get('button[type="submit"]').click();
11
9
  });
12
- (0, _steps.Then)('an error message is shown', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.When)('the user selects the first option', () => {
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, _steps.Then)("the form state's value equals the first option's value", () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a required SingleSelect with no selected value', () => {
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("../common/index.js");
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, _steps.When)('the user submits the form', () => {
7
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
10
8
  cy.get('button[type="submit"]').click();
11
9
  });
12
- (0, _steps.Then)('an error message is shown', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.Then)('the form value that corresponds to the switch will be true', () => {
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, _steps.Given)('a checked Switch without value is rendered', () => {
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, _steps.Then)('the form value that corresponds to the switch will be false', () => {
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("../common/index.js");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- var _steps = require("cypress-cucumber-preprocessor/steps");
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, _steps.Then)('the form value that corresponds to the switch will be yes', () => {
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, _steps.Given)('a checked Switch with a value is rendered', () => {
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, _steps.Then)('the form value that corresponds to the switch will be correct', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.When)('the user clicks on the Switch', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
5
  var _hasValue = require("../../../validators/hasValue.js");
6
6
 
7
- (0, _steps.Given)('an unchecked Switch is rendered', () => {
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, _steps.When)('the user submits the form', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
12
12
  cy.get('button[type="submit"]').click();
13
13
  });
14
- (0, _steps.Then)('an error message is shown', () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a TextArea with no text is rendered', () => {
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, _steps.When)('the user types something in the TextArea', () => {
9
+ (0, _cypressCucumberPreprocessor.When)('the user types something in the TextArea', () => {
10
10
  cy.get('textarea').type('something');
11
11
  });
12
- (0, _steps.Then)("the form state's value equals the written text", () => {
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 _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
5
  var _hasValue = require("../../../validators/hasValue.js");
6
6
 
7
- (0, _steps.Given)('an empty, required TextArea is rendered', () => {
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, _steps.When)('the user submits the form', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user submits the form', () => {
12
12
  cy.get('button[type="submit"]').click();
13
13
  });
14
- (0, _steps.Then)('an error message is shown', () => {
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 username between 4 and 255 characters": "",
23
- "Please provide a valid email address": "",
24
- "Please provide a value": "",
25
- "Please provide a round number without decimals": "",
26
- "Please provide a valid international phone number.": "",
27
- "Please provide a number": "",
28
- "Please provide a string": "",
29
- "Please provide a valid url": ""
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 '../common/index.js';
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 '../common/index.js';
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 { When } from 'cypress-cucumber-preprocessor/steps';
1
+ import { When } from '@badeball/cypress-cucumber-preprocessor';
2
2
  When('the user clicks on the Checkbox', () => {
3
3
  cy.get('[data-test="dhis2-uicore-checkbox"]').click();
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
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 '../common/index.js';
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,4 +1,4 @@
1
- import { Given } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a single-file FileInput is rendered', () => {
3
3
  cy.visitStory('Testing:FileInput', 'Standard form');
4
4
  });
@@ -1,5 +1,4 @@
1
- import '../common/index.js';
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/steps';
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/steps';
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 '../common/index.js';
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/steps';
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 '../common/index.js';
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 '../common/index.js';
2
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
3
2
  Given('there are three options', () => {
4
3
  const options = [{
5
4
  value: 'one',
@@ -1,4 +1,4 @@
1
- import { Given } from 'cypress-cucumber-preprocessor/steps';
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 '../common/index.js';
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 '../common/index.js';
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/steps';
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 '../common/index.js';
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 '../common/index.js';
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 '../common/index.js';
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 { When } from 'cypress-cucumber-preprocessor/steps';
1
+ import { When } from '@badeball/cypress-cucumber-preprocessor';
2
2
  When('the user clicks on the Switch', () => {
3
3
  cy.get('[data-test="dhis2-uicore-switch"]').click();
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
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/steps';
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/steps';
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 username between 4 and 255 characters": "",
23
- "Please provide a valid email address": "",
24
- "Please provide a value": "",
25
- "Please provide a round number without decimals": "",
26
- "Please provide a valid international phone number.": "",
27
- "Please provide a number": "",
28
- "Please provide a string": "",
29
- "Please provide a valid url": ""
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-alpha.1",
3
+ "version": "9.6.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-alpha.1",
39
- "@dhis2-ui/checkbox": "9.5.0-alpha.1",
40
- "@dhis2-ui/field": "9.5.0-alpha.1",
41
- "@dhis2-ui/file-input": "9.5.0-alpha.1",
42
- "@dhis2-ui/input": "9.5.0-alpha.1",
43
- "@dhis2-ui/radio": "9.5.0-alpha.1",
44
- "@dhis2-ui/select": "9.5.0-alpha.1",
45
- "@dhis2-ui/switch": "9.5.0-alpha.1",
46
- "@dhis2-ui/text-area": "9.5.0-alpha.1",
38
+ "@dhis2-ui/button": "9.6.0",
39
+ "@dhis2-ui/checkbox": "9.6.0",
40
+ "@dhis2-ui/field": "9.6.0",
41
+ "@dhis2-ui/file-input": "9.6.0",
42
+ "@dhis2-ui/input": "9.6.0",
43
+ "@dhis2-ui/radio": "9.6.0",
44
+ "@dhis2-ui/select": "9.6.0",
45
+ "@dhis2-ui/switch": "9.6.0",
46
+ "@dhis2-ui/text-area": "9.6.0",
47
47
  "classnames": "^2.3.1",
48
48
  "final-form": "^4.20.2",
49
49
  "prop-types": "^15.7.2",