@dhis2-ui/table 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.
@@ -1,44 +1,44 @@
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 scrolling datatable is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a scrolling datatable is rendered', () => {
6
6
  cy.visitStory('DataTable', 'Fixed Header And Columns');
7
7
  });
8
- (0, _steps.When)('the user scrolls down', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls down', () => {
9
9
  cy.get('[data-test="dhis2-uicore-datatable-scrollbox"]').scrollTo('bottomLeft');
10
10
  });
11
- (0, _steps.When)('the user scrolls right', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls right', () => {
12
12
  cy.get('[data-test="dhis2-uicore-datatable-scrollbox"]').scrollTo('topRight');
13
13
  });
14
- (0, _steps.When)('the user scrolls down and right', () => {
14
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls down and right', () => {
15
15
  cy.get('[data-test="dhis2-uicore-datatable-scrollbox"]').scrollTo('bottomRight');
16
16
  });
17
- (0, _steps.Then)('the header row is visible', () => {
17
+ (0, _cypressCucumberPreprocessor.Then)('the header row is visible', () => {
18
18
  cy.get('thead > tr > th').should('be.visible');
19
19
  });
20
- (0, _steps.Then)('the first two datatable columns are visible', () => {
20
+ (0, _cypressCucumberPreprocessor.Then)('the first two datatable columns are visible', () => {
21
21
  cy.get('tbody > tr > th:nth-child(1)').should('be.visible');
22
22
  cy.get('tbody > tr > th:nth-child(2)').should('be.visible');
23
23
  });
24
- (0, _steps.Then)('the bottom right scrolling datatable cell is visible', () => {
24
+ (0, _cypressCucumberPreprocessor.Then)('the bottom right scrolling datatable cell is visible', () => {
25
25
  cy.get('td').contains('scrolling bottom-right').should('be.visible');
26
26
  });
27
- (0, _steps.Then)('the top left scrolling datatable cell is not visible', () => {
27
+ (0, _cypressCucumberPreprocessor.Then)('the top left scrolling datatable cell is not visible', () => {
28
28
  cy.get('td').contains('scrolling top-left').should('not.be.visible');
29
29
  });
30
- (0, _steps.Then)('the bottom left scrolling datatable cell is not visible', () => {
30
+ (0, _cypressCucumberPreprocessor.Then)('the bottom left scrolling datatable cell is not visible', () => {
31
31
  cy.get('td').contains('scrolling bottom-left').should('not.be.visible');
32
32
  });
33
- (0, _steps.Then)('the top right scrolling datatable cell is not visible', () => {
33
+ (0, _cypressCucumberPreprocessor.Then)('the top right scrolling datatable cell is not visible', () => {
34
34
  cy.get('td').contains('scrolling top-right').should('not.be.visible');
35
35
  });
36
- (0, _steps.Then)('the top right scrolling datatable cell is visible', () => {
36
+ (0, _cypressCucumberPreprocessor.Then)('the top right scrolling datatable cell is visible', () => {
37
37
  cy.get('td').contains('scrolling top-right').should('be.visible');
38
38
  });
39
- (0, _steps.Then)('the bottom left scrolling datatable cell is visible', () => {
39
+ (0, _cypressCucumberPreprocessor.Then)('the bottom left scrolling datatable cell is visible', () => {
40
40
  cy.get('td').contains('scrolling bottom-left').should('be.visible');
41
41
  });
42
- (0, _steps.Then)('the bottom right scrolling datatable cell is not visible', () => {
42
+ (0, _cypressCucumberPreprocessor.Then)('the bottom right scrolling datatable cell is not visible', () => {
43
43
  cy.get('td').contains('scrolling bottom-right').should('not.be.visible');
44
44
  });
@@ -1,44 +1,44 @@
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 scrolling table is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a scrolling table is rendered', () => {
6
6
  cy.visitStory('Table', 'Fixed Header And Columns');
7
7
  });
8
- (0, _steps.When)('the user scrolls down', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls down', () => {
9
9
  cy.get('[data-test="dhis2-uicore-tablescrollbox"]').scrollTo('bottomLeft');
10
10
  });
11
- (0, _steps.When)('the user scrolls right', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls right', () => {
12
12
  cy.get('[data-test="dhis2-uicore-tablescrollbox"]').scrollTo('topRight');
13
13
  });
14
- (0, _steps.When)('the user scrolls down and right', () => {
14
+ (0, _cypressCucumberPreprocessor.When)('the user scrolls down and right', () => {
15
15
  cy.get('[data-test="dhis2-uicore-tablescrollbox"]').scrollTo('bottomRight');
16
16
  });
17
- (0, _steps.Then)('the header row is visible', () => {
17
+ (0, _cypressCucumberPreprocessor.Then)('the header row is visible', () => {
18
18
  cy.get('thead > tr > th').should('be.visible');
19
19
  });
20
- (0, _steps.Then)('the first two table columns are visible', () => {
20
+ (0, _cypressCucumberPreprocessor.Then)('the first two table columns are visible', () => {
21
21
  cy.get('tbody > tr > th:nth-child(1)').should('be.visible');
22
22
  cy.get('tbody > tr > th:nth-child(2)').should('be.visible');
23
23
  });
24
- (0, _steps.Then)('the bottom right scrolling table cell is visible', () => {
24
+ (0, _cypressCucumberPreprocessor.Then)('the bottom right scrolling table cell is visible', () => {
25
25
  cy.get('td').contains('scrolling bottom-right').should('be.visible');
26
26
  });
27
- (0, _steps.Then)('the top left scrolling table cell is not visible', () => {
27
+ (0, _cypressCucumberPreprocessor.Then)('the top left scrolling table cell is not visible', () => {
28
28
  cy.get('td').contains('scrolling top-left').should('not.be.visible');
29
29
  });
30
- (0, _steps.Then)('the bottom left scrolling table cell is not visible', () => {
30
+ (0, _cypressCucumberPreprocessor.Then)('the bottom left scrolling table cell is not visible', () => {
31
31
  cy.get('td').contains('scrolling bottom-left').should('not.be.visible');
32
32
  });
33
- (0, _steps.Then)('the top right scrolling table cell is not visible', () => {
33
+ (0, _cypressCucumberPreprocessor.Then)('the top right scrolling table cell is not visible', () => {
34
34
  cy.get('td').contains('scrolling top-right').should('not.be.visible');
35
35
  });
36
- (0, _steps.Then)('the top right scrolling table cell is visible', () => {
36
+ (0, _cypressCucumberPreprocessor.Then)('the top right scrolling table cell is visible', () => {
37
37
  cy.get('td').contains('scrolling top-right').should('be.visible');
38
38
  });
39
- (0, _steps.Then)('the bottom left scrolling table cell is visible', () => {
39
+ (0, _cypressCucumberPreprocessor.Then)('the bottom left scrolling table cell is visible', () => {
40
40
  cy.get('td').contains('scrolling bottom-left').should('be.visible');
41
41
  });
42
- (0, _steps.Then)('the bottom right scrolling table cell is not visible', () => {
42
+ (0, _cypressCucumberPreprocessor.Then)('the bottom right scrolling table cell is not visible', () => {
43
43
  cy.get('td').contains('scrolling bottom-right').should('not.be.visible');
44
44
  });
@@ -17,15 +17,17 @@ var _translations4 = _interopRequireDefault(require("./es/translations.json"));
17
17
 
18
18
  var _translations5 = _interopRequireDefault(require("./km/translations.json"));
19
19
 
20
- var _translations6 = _interopRequireDefault(require("./nb/translations.json"));
20
+ var _translations6 = _interopRequireDefault(require("./lo/translations.json"));
21
21
 
22
- var _translations7 = _interopRequireDefault(require("./nl/translations.json"));
22
+ var _translations7 = _interopRequireDefault(require("./nb/translations.json"));
23
23
 
24
- var _translations8 = _interopRequireDefault(require("./uk/translations.json"));
24
+ var _translations8 = _interopRequireDefault(require("./nl/translations.json"));
25
25
 
26
- var _translations9 = _interopRequireDefault(require("./uz_UZ_Cyrl/translations.json"));
26
+ var _translations9 = _interopRequireDefault(require("./uk/translations.json"));
27
27
 
28
- var _translations10 = _interopRequireDefault(require("./zh/translations.json"));
28
+ var _translations10 = _interopRequireDefault(require("./uz_UZ_Cyrl/translations.json"));
29
+
30
+ var _translations11 = _interopRequireDefault(require("./zh/translations.json"));
29
31
 
30
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
33
 
@@ -49,15 +51,17 @@ _d2I18n.default.addResources('es', namespace, _translations4.default);
49
51
 
50
52
  _d2I18n.default.addResources('km', namespace, _translations5.default);
51
53
 
52
- _d2I18n.default.addResources('nb', namespace, _translations6.default);
54
+ _d2I18n.default.addResources('lo', namespace, _translations6.default);
55
+
56
+ _d2I18n.default.addResources('nb', namespace, _translations7.default);
53
57
 
54
- _d2I18n.default.addResources('nl', namespace, _translations7.default);
58
+ _d2I18n.default.addResources('nl', namespace, _translations8.default);
55
59
 
56
- _d2I18n.default.addResources('uk', namespace, _translations8.default);
60
+ _d2I18n.default.addResources('uk', namespace, _translations9.default);
57
61
 
58
- _d2I18n.default.addResources('uz_UZ_Cyrl', namespace, _translations9.default);
62
+ _d2I18n.default.addResources('uz_UZ_Cyrl', namespace, _translations10.default);
59
63
 
60
- _d2I18n.default.addResources('zh', namespace, _translations10.default);
64
+ _d2I18n.default.addResources('zh', namespace, _translations11.default);
61
65
 
62
66
  var _default = _d2I18n.default;
63
67
  exports.default = _default;
@@ -0,0 +1,4 @@
1
+ {
2
+ "Toggle filter": "ສະຫຼັບຕົວກອງ",
3
+ "Sort items": "ຈັດຮຽງລາຍການ"
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 scrolling datatable is rendered', () => {
3
3
  cy.visitStory('DataTable', 'Fixed Header And Columns');
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
  Given('a scrolling table is rendered', () => {
3
3
  cy.visitStory('Table', 'Fixed Header And Columns');
4
4
  });
@@ -12,6 +12,7 @@ import csTranslations from './cs/translations.json';
12
12
  import enTranslations from './en/translations.json';
13
13
  import esTranslations from './es/translations.json';
14
14
  import kmTranslations from './km/translations.json';
15
+ import loTranslations from './lo/translations.json';
15
16
  import nbTranslations from './nb/translations.json';
16
17
  import nlTranslations from './nl/translations.json';
17
18
  import ukTranslations from './uk/translations.json';
@@ -23,6 +24,7 @@ i18n.addResources('cs', namespace, csTranslations);
23
24
  i18n.addResources('en', namespace, enTranslations);
24
25
  i18n.addResources('es', namespace, esTranslations);
25
26
  i18n.addResources('km', namespace, kmTranslations);
27
+ i18n.addResources('lo', namespace, loTranslations);
26
28
  i18n.addResources('nb', namespace, nbTranslations);
27
29
  i18n.addResources('nl', namespace, nlTranslations);
28
30
  i18n.addResources('uk', namespace, ukTranslations);
@@ -0,0 +1,4 @@
1
+ {
2
+ "Toggle filter": "ສະຫຼັບຕົວກອງ",
3
+ "Sort items": "ຈັດຮຽງລາຍການ"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/table",
3
- "version": "9.5.0-alpha.1",
3
+ "version": "9.6.0",
4
4
  "description": "UI Table",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@dhis2/prop-types": "^3.1.2",
37
- "@dhis2/ui-constants": "9.5.0-alpha.1",
38
- "@dhis2/ui-icons": "9.5.0-alpha.1",
37
+ "@dhis2/ui-constants": "9.6.0",
38
+ "@dhis2/ui-icons": "9.6.0",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },