@dhis2-ui/selector-bar 9.5.0-alpha.1 → 9.5.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.
- package/build/cjs/locales/index.js +16 -12
- package/build/cjs/locales/lo/translations.json +3 -0
- package/build/cjs/selector-bar-item/features/toggle-children/index.js +7 -7
- package/build/es/locales/index.js +2 -0
- package/build/es/locales/lo/translations.json +3 -0
- package/build/es/selector-bar-item/features/toggle-children/index.js +1 -1
- package/package.json +11 -11
|
@@ -19,17 +19,19 @@ var _translations5 = _interopRequireDefault(require("./fr/translations.json"));
|
|
|
19
19
|
|
|
20
20
|
var _translations6 = _interopRequireDefault(require("./id/translations.json"));
|
|
21
21
|
|
|
22
|
-
var _translations7 = _interopRequireDefault(require("./
|
|
22
|
+
var _translations7 = _interopRequireDefault(require("./lo/translations.json"));
|
|
23
23
|
|
|
24
|
-
var _translations8 = _interopRequireDefault(require("./
|
|
24
|
+
var _translations8 = _interopRequireDefault(require("./nb/translations.json"));
|
|
25
25
|
|
|
26
|
-
var _translations9 = _interopRequireDefault(require("./
|
|
26
|
+
var _translations9 = _interopRequireDefault(require("./uz_UZ_Cyrl/translations.json"));
|
|
27
27
|
|
|
28
|
-
var _translations10 = _interopRequireDefault(require("./
|
|
28
|
+
var _translations10 = _interopRequireDefault(require("./uz_UZ_Latn/translations.json"));
|
|
29
29
|
|
|
30
|
-
var _translations11 = _interopRequireDefault(require("./
|
|
30
|
+
var _translations11 = _interopRequireDefault(require("./vi/translations.json"));
|
|
31
31
|
|
|
32
|
-
var _translations12 = _interopRequireDefault(require("./
|
|
32
|
+
var _translations12 = _interopRequireDefault(require("./zh/translations.json"));
|
|
33
|
+
|
|
34
|
+
var _translations13 = _interopRequireDefault(require("./zh_CN/translations.json"));
|
|
33
35
|
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
37
|
|
|
@@ -55,17 +57,19 @@ _d2I18n.default.addResources('fr', namespace, _translations5.default);
|
|
|
55
57
|
|
|
56
58
|
_d2I18n.default.addResources('id', namespace, _translations6.default);
|
|
57
59
|
|
|
58
|
-
_d2I18n.default.addResources('
|
|
60
|
+
_d2I18n.default.addResources('lo', namespace, _translations7.default);
|
|
61
|
+
|
|
62
|
+
_d2I18n.default.addResources('nb', namespace, _translations8.default);
|
|
59
63
|
|
|
60
|
-
_d2I18n.default.addResources('uz_UZ_Cyrl', namespace,
|
|
64
|
+
_d2I18n.default.addResources('uz_UZ_Cyrl', namespace, _translations9.default);
|
|
61
65
|
|
|
62
|
-
_d2I18n.default.addResources('uz_UZ_Latn', namespace,
|
|
66
|
+
_d2I18n.default.addResources('uz_UZ_Latn', namespace, _translations10.default);
|
|
63
67
|
|
|
64
|
-
_d2I18n.default.addResources('vi', namespace,
|
|
68
|
+
_d2I18n.default.addResources('vi', namespace, _translations11.default);
|
|
65
69
|
|
|
66
|
-
_d2I18n.default.addResources('zh', namespace,
|
|
70
|
+
_d2I18n.default.addResources('zh', namespace, _translations12.default);
|
|
67
71
|
|
|
68
|
-
_d2I18n.default.addResources('zh_CN', namespace,
|
|
72
|
+
_d2I18n.default.addResources('zh_CN', namespace, _translations13.default);
|
|
69
73
|
|
|
70
74
|
var _default = _d2I18n.default;
|
|
71
75
|
exports.default = _default;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('the selector bar item is closed', () => {
|
|
6
6
|
cy.visitStory('SelectorBarItem', 'closed no value');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.Given)('the selector bar item is open', () => {
|
|
9
9
|
cy.visitStory('SelectorBarItem', 'open no value');
|
|
10
10
|
});
|
|
11
|
-
(0,
|
|
11
|
+
(0, _cypressCucumberPreprocessor.When)('the user opens the selector bar item', () => {
|
|
12
12
|
cy.contains('Selection bar item', {
|
|
13
13
|
selector: 'button'
|
|
14
14
|
}).click();
|
|
15
15
|
});
|
|
16
|
-
(0,
|
|
16
|
+
(0, _cypressCucumberPreprocessor.When)('the user closes the selector bar item', () => {
|
|
17
17
|
cy.get('body').click('topLeft');
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, _cypressCucumberPreprocessor.Then)('the children should be displayed', () => {
|
|
20
20
|
cy.get('[data-test="dhis2-uiwidgets-singleselectfield"]').should('exist');
|
|
21
21
|
});
|
|
22
|
-
(0,
|
|
22
|
+
(0, _cypressCucumberPreprocessor.Then)('the children should not be displayed', () => {
|
|
23
23
|
cy.get('[data-test="dhis2-uiwidgets-singleselectfield"]').should('not.exist');
|
|
24
24
|
});
|
|
@@ -13,6 +13,7 @@ import enTranslations from './en/translations.json';
|
|
|
13
13
|
import esTranslations from './es/translations.json';
|
|
14
14
|
import frTranslations from './fr/translations.json';
|
|
15
15
|
import idTranslations from './id/translations.json';
|
|
16
|
+
import loTranslations from './lo/translations.json';
|
|
16
17
|
import nbTranslations from './nb/translations.json';
|
|
17
18
|
import uz_UZ_CyrlTranslations from './uz_UZ_Cyrl/translations.json';
|
|
18
19
|
import uz_UZ_LatnTranslations from './uz_UZ_Latn/translations.json';
|
|
@@ -26,6 +27,7 @@ i18n.addResources('en', namespace, enTranslations);
|
|
|
26
27
|
i18n.addResources('es', namespace, esTranslations);
|
|
27
28
|
i18n.addResources('fr', namespace, frTranslations);
|
|
28
29
|
i18n.addResources('id', namespace, idTranslations);
|
|
30
|
+
i18n.addResources('lo', namespace, loTranslations);
|
|
29
31
|
i18n.addResources('nb', namespace, nbTranslations);
|
|
30
32
|
i18n.addResources('uz_UZ_Cyrl', namespace, uz_UZ_CyrlTranslations);
|
|
31
33
|
i18n.addResources('uz_UZ_Latn', namespace, uz_UZ_LatnTranslations);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/selector-bar",
|
|
3
|
-
"version": "9.5.0
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "UI Select",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"styled-jsx": "^4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dhis2-ui/button": "9.5.0
|
|
37
|
-
"@dhis2-ui/card": "9.5.0
|
|
38
|
-
"@dhis2-ui/popper": "9.5.0
|
|
39
|
-
"@dhis2-ui/layer": "9.5.0
|
|
40
|
-
"@dhis2/ui-constants": "9.5.0
|
|
41
|
-
"@dhis2/ui-icons": "9.5.0
|
|
36
|
+
"@dhis2-ui/button": "9.5.0",
|
|
37
|
+
"@dhis2-ui/card": "9.5.0",
|
|
38
|
+
"@dhis2-ui/popper": "9.5.0",
|
|
39
|
+
"@dhis2-ui/layer": "9.5.0",
|
|
40
|
+
"@dhis2/ui-constants": "9.5.0",
|
|
41
|
+
"@dhis2/ui-icons": "9.5.0",
|
|
42
42
|
"@testing-library/react": "^12.1.2",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"prop-types": "^15.7.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@dhis2-ui/css": "9.5.0
|
|
48
|
-
"@dhis2-ui/menu": "9.5.0
|
|
49
|
-
"@dhis2-ui/organisation-unit-tree": "9.5.0
|
|
50
|
-
"@dhis2-ui/select": "9.5.0
|
|
47
|
+
"@dhis2-ui/css": "9.5.0",
|
|
48
|
+
"@dhis2-ui/menu": "9.5.0",
|
|
49
|
+
"@dhis2-ui/organisation-unit-tree": "9.5.0",
|
|
50
|
+
"@dhis2-ui/select": "9.5.0",
|
|
51
51
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
52
52
|
"@testing-library/jest-dom": "^5.16.1",
|
|
53
53
|
"react": "16.13",
|