@dhis2-ui/header-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.
Files changed (75) hide show
  1. package/build/cjs/__e2e__/stories/common.js +10 -199
  2. package/build/cjs/__e2e__/stories/modulesWithSpecialCharacters.js +204 -0
  3. package/build/cjs/features/common/index.js +3 -3
  4. package/build/cjs/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +21 -23
  5. package/build/cjs/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +10 -10
  6. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/common.js +2 -2
  7. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +3 -5
  8. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +2 -4
  9. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js +4 -4
  10. package/build/cjs/features/the_headerbar_contains_a_profile_menu/common.js +3 -3
  11. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +5 -7
  12. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js +5 -5
  13. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +2 -3
  14. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +3 -5
  15. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +2 -4
  16. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +2 -4
  17. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +2 -4
  18. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +2 -4
  19. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +2 -4
  20. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +2 -4
  21. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +7 -7
  22. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +3 -5
  23. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js +2 -4
  24. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +3 -5
  25. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +2 -4
  26. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js +2 -4
  27. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +3 -5
  28. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +2 -4
  29. package/build/cjs/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +3 -3
  30. package/build/cjs/features/the_headerbar_should_display_app_update_notification/index.js +11 -11
  31. package/build/cjs/features/the_headerbar_should_display_debug_version_infos/index.js +20 -20
  32. package/build/cjs/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js +3 -3
  33. package/build/cjs/features/the_search_should_escape_regexp_character/common.js +2 -2
  34. package/build/cjs/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +3 -5
  35. package/build/cjs/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +5 -7
  36. package/build/cjs/locales/lo/translations.json +11 -11
  37. package/build/es/__e2e__/stories/common.js +1 -197
  38. package/build/es/__e2e__/stories/modulesWithSpecialCharacters.js +197 -0
  39. package/build/es/features/common/index.js +1 -1
  40. package/build/es/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +4 -5
  41. package/build/es/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +1 -1
  42. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/common.js +1 -1
  43. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +1 -2
  44. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +1 -2
  45. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js +1 -1
  46. package/build/es/features/the_headerbar_contains_a_profile_menu/common.js +1 -1
  47. package/build/es/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +1 -2
  48. package/build/es/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js +1 -1
  49. package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +1 -1
  50. package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +1 -2
  51. package/build/es/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +1 -2
  52. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +1 -2
  53. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +1 -2
  54. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +1 -2
  55. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +1 -2
  56. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +1 -2
  57. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +3 -3
  58. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +1 -2
  59. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js +1 -2
  60. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +1 -2
  61. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +1 -2
  62. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js +1 -2
  63. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +1 -2
  64. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +1 -2
  65. package/build/es/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +1 -1
  66. package/build/es/features/the_headerbar_should_display_app_update_notification/index.js +1 -1
  67. package/build/es/features/the_headerbar_should_display_debug_version_infos/index.js +1 -1
  68. package/build/es/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js +1 -1
  69. package/build/es/features/the_search_should_escape_regexp_character/common.js +1 -1
  70. package/build/es/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +1 -2
  71. package/build/es/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +2 -3
  72. package/build/es/locales/lo/translations.json +11 -11
  73. package/package.json +15 -15
  74. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_menu_is_closed_by_default.js +0 -11
  75. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_menu_is_closed_by_default.js +0 -6
@@ -1,4 +1,4 @@
1
- import { Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  import { baseUrl } from '../common/index.js';
3
3
  Then('the HeaderBar should display the dhis2 logo', () => {
4
4
  cy.get('[data-test="headerbar-logo"]').should('be.visible');
@@ -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('the HeaderBar is rendered without an available update', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'default');
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('the HeaderBar is rendered without an instance version in runtime context', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'With Unknown Instance Version');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Then, Given } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Then, Given } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('the custom title is "Barbaz" and the app title is "Example!"', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'Custom Application Title');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given(/the search contains a (.*)/, character => {
3
3
  cy.get('[data-test="headerbar-apps-icon"]').click();
4
4
  cy.get('#filter').type(character);
@@ -1,5 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
2
- import '../common/index.js';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
3
2
  Given(/no app name contains a (.*)/, character => {
4
3
  // Needs to be wrapped, otherwise for some reason the wrong char is in the scope
5
4
  cy.all(() => cy.window(), () => cy.wrap(character)).then(_ref => {
@@ -1,6 +1,5 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
2
- import { modulesWithSpecialCharacters } from '../../__e2e__/stories/common.js';
3
- import '../common/index.js';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
+ import { modulesWithSpecialCharacters } from '../../__e2e__/stories/modulesWithSpecialCharacters.js';
4
3
  Given(/some app names contain a (.*)/, character => {
5
4
  // Needs to be wrapped, otherwise for some reason the wrong char is in the scope
6
5
  cy.wrap(character).then(char => {
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "Search apps": "ຄົ້ນຫາແອັບ",
3
- "DHIS2 {{dhis2Version}}": "",
4
- "DHIS2 version unknown": "",
5
- "{{appName}} version unknown": "",
6
- "App {{appVersion}}": "",
7
- "App version unknown": "",
8
- "Debug info": "",
3
+ "DHIS2 {{dhis2Version}}": "DHIS2 {{dhis2Version}}",
4
+ "DHIS2 version unknown": "DHIS2 ບໍ່ຮູ້ເວີຊັນ",
5
+ "{{appName}} version unknown": "{{appName}} ບໍ່ຮູ້ເວີຊັນ",
6
+ "App {{appVersion}}": "ແອັບ {{appVersion}}",
7
+ "App version unknown": "ບໍ່ຮູ້ເວີຊັນແອັບ",
8
+ "Debug info": "ຂໍ້ມູນການແກ້ໄຂ",
9
9
  "Close": "ປິດ",
10
- "Copy debug info": "",
10
+ "Copy debug info": "ກ໋ອບປີ້ຂໍ້ມູນການແກ້ໄຂ",
11
11
  "Online": "ມີການເຊື່ອມຕໍ່",
12
12
  "Offline": "ບໍ່ມີການເຊື່ອມຕໍ່",
13
13
  "Edit profile": "ແກ້ໄຂຂໍ້ມູນ",
14
14
  "Settings": "ຕັ້ງຄ່າ",
15
15
  "Account": "ບັນຊີ",
16
16
  "Help": "ຊ່ວຍ",
17
- "About DHIS2": "",
17
+ "About DHIS2": "ກ່ຽວກັບ DHIS2",
18
18
  "Logout": "ອອກຈາກລະບົບ",
19
- "New {{appName}} version available": "",
20
- "New app version available": "",
21
- "Click to reload": ""
19
+ "New {{appName}} version available": "ມີເວີຊັນໃໝ່ {{appName}} ",
20
+ "New app version available": "ມີແອັບເວີຊັນໃໝ່",
21
+ "Click to reload": "ຄລິກເພື່ອໂຫຼດຄືນໃໝ່"
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/header-bar",
3
- "version": "9.5.0-alpha.1",
3
+ "version": "9.5.0",
4
4
  "description": "UI HeaderBar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,21 +34,21 @@
34
34
  "styled-jsx": "^4"
35
35
  },
36
36
  "dependencies": {
37
- "@dhis2-ui/box": "9.5.0-alpha.1",
38
- "@dhis2-ui/button": "9.5.0-alpha.1",
39
- "@dhis2-ui/card": "9.5.0-alpha.1",
40
- "@dhis2-ui/center": "9.5.0-alpha.1",
41
- "@dhis2-ui/divider": "9.5.0-alpha.1",
42
- "@dhis2-ui/input": "9.5.0-alpha.1",
43
- "@dhis2-ui/layer": "9.5.0-alpha.1",
44
- "@dhis2-ui/loader": "9.5.0-alpha.1",
45
- "@dhis2-ui/logo": "9.5.0-alpha.1",
46
- "@dhis2-ui/menu": "9.5.0-alpha.1",
47
- "@dhis2-ui/modal": "9.5.0-alpha.1",
48
- "@dhis2-ui/user-avatar": "9.5.0-alpha.1",
37
+ "@dhis2-ui/box": "9.5.0",
38
+ "@dhis2-ui/button": "9.5.0",
39
+ "@dhis2-ui/card": "9.5.0",
40
+ "@dhis2-ui/center": "9.5.0",
41
+ "@dhis2-ui/divider": "9.5.0",
42
+ "@dhis2-ui/input": "9.5.0",
43
+ "@dhis2-ui/layer": "9.5.0",
44
+ "@dhis2-ui/loader": "9.5.0",
45
+ "@dhis2-ui/logo": "9.5.0",
46
+ "@dhis2-ui/menu": "9.5.0",
47
+ "@dhis2-ui/modal": "9.5.0",
48
+ "@dhis2-ui/user-avatar": "9.5.0",
49
49
  "@dhis2/prop-types": "^3.1.2",
50
- "@dhis2/ui-constants": "9.5.0-alpha.1",
51
- "@dhis2/ui-icons": "9.5.0-alpha.1",
50
+ "@dhis2/ui-constants": "9.5.0",
51
+ "@dhis2/ui-icons": "9.5.0",
52
52
  "classnames": "^2.3.1",
53
53
  "moment": "^2.29.1",
54
54
  "prop-types": "^15.7.2"
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- require("../common/index.js");
4
-
5
- require("./common.js");
6
-
7
- var _steps = require("cypress-cucumber-preprocessor/steps");
8
-
9
- (0, _steps.Then)('the HeaderBar dos not display the app menu', () => {
10
- cy.get('[data-test="headerbar-apps-menu"]').should('not.exist');
11
- });
@@ -1,6 +0,0 @@
1
- import '../common/index.js';
2
- import './common.js';
3
- import { Then } from 'cypress-cucumber-preprocessor/steps';
4
- Then('the HeaderBar dos not display the app menu', () => {
5
- cy.get('[data-test="headerbar-apps-menu"]').should('not.exist');
6
- });