@digihmis/esm-primary-navigation-app 1.0.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/README.md +43 -0
- package/__mocks__/mock-session.ts +23 -0
- package/__mocks__/mock-user.ts +23 -0
- package/__mocks__/openmrs-esm-framework.mock.tsx +30 -0
- package/__mocks__/react-i18next.mock.js +49 -0
- package/dist/1480.js +1 -0
- package/dist/1480.js.map +1 -0
- package/dist/1646.js +1 -0
- package/dist/1646.js.map +1 -0
- package/dist/1716.js +1 -0
- package/dist/1716.js.map +1 -0
- package/dist/1797.js +1 -0
- package/dist/1797.js.map +1 -0
- package/dist/1869.js +1 -0
- package/dist/1869.js.map +1 -0
- package/dist/1877.js +1 -0
- package/dist/1877.js.map +1 -0
- package/dist/2317.js +1 -0
- package/dist/2317.js.map +1 -0
- package/dist/2416.js +1 -0
- package/dist/2416.js.map +1 -0
- package/dist/2711.js +1 -0
- package/dist/2711.js.map +1 -0
- package/dist/282.js +1 -0
- package/dist/282.js.map +1 -0
- package/dist/2881.js +1 -0
- package/dist/2881.js.map +1 -0
- package/dist/2939.js +15 -0
- package/dist/2939.js.map +1 -0
- package/dist/3378.js +1 -0
- package/dist/3378.js.map +1 -0
- package/dist/3963.js +1 -0
- package/dist/3963.js.map +1 -0
- package/dist/4106.js +1 -0
- package/dist/4106.js.map +1 -0
- package/dist/4111.js +1 -0
- package/dist/4111.js.map +1 -0
- package/dist/434.js +1 -0
- package/dist/434.js.map +1 -0
- package/dist/4348.js +1 -0
- package/dist/4348.js.map +1 -0
- package/dist/4383.js +1 -0
- package/dist/4383.js.map +1 -0
- package/dist/4658.js +1 -0
- package/dist/4658.js.map +1 -0
- package/dist/466.js +1 -0
- package/dist/466.js.map +1 -0
- package/dist/4928.js +1 -0
- package/dist/4928.js.map +1 -0
- package/dist/5117.js +1 -0
- package/dist/5117.js.map +1 -0
- package/dist/5132.js +1 -0
- package/dist/5132.js.map +1 -0
- package/dist/5145.js +1 -0
- package/dist/5145.js.map +1 -0
- package/dist/5503.js +1 -0
- package/dist/5503.js.map +1 -0
- package/dist/556.js +1 -0
- package/dist/556.js.map +1 -0
- package/dist/5644.js +1 -0
- package/dist/5644.js.map +1 -0
- package/dist/5867.js +12 -0
- package/dist/5867.js.map +1 -0
- package/dist/5940.js +1 -0
- package/dist/5940.js.map +1 -0
- package/dist/6047.js +1 -0
- package/dist/6047.js.map +1 -0
- package/dist/6371.js +1 -0
- package/dist/6371.js.map +1 -0
- package/dist/6377.js +1 -0
- package/dist/6377.js.map +1 -0
- package/dist/6444.js +1 -0
- package/dist/6444.js.map +1 -0
- package/dist/6508.js +1 -0
- package/dist/6508.js.map +1 -0
- package/dist/6724.js +1 -0
- package/dist/6724.js.map +1 -0
- package/dist/689.js +1 -0
- package/dist/689.js.map +1 -0
- package/dist/6904.js +1 -0
- package/dist/6904.js.map +1 -0
- package/dist/7044.js +1 -0
- package/dist/7044.js.map +1 -0
- package/dist/7045.js +1 -0
- package/dist/7045.js.map +1 -0
- package/dist/7175.js +1 -0
- package/dist/7175.js.map +1 -0
- package/dist/7182.js +1 -0
- package/dist/7182.js.map +1 -0
- package/dist/7302.js +1 -0
- package/dist/7302.js.map +1 -0
- package/dist/7587.js +1 -0
- package/dist/7587.js.map +1 -0
- package/dist/7742.js +1 -0
- package/dist/7742.js.map +1 -0
- package/dist/7786.js +1 -0
- package/dist/7786.js.map +1 -0
- package/dist/7912.js +1 -0
- package/dist/7912.js.map +1 -0
- package/dist/8349.js +1 -0
- package/dist/8349.js.map +1 -0
- package/dist/8358.js +1 -0
- package/dist/8358.js.map +1 -0
- package/dist/8359.js +1 -0
- package/dist/8359.js.map +1 -0
- package/dist/8695.js +1 -0
- package/dist/8695.js.map +1 -0
- package/dist/8924.js +1 -0
- package/dist/8924.js.map +1 -0
- package/dist/903.js +1 -0
- package/dist/903.js.map +1 -0
- package/dist/9072.js +1 -0
- package/dist/9072.js.map +1 -0
- package/dist/9105.js +1 -0
- package/dist/9105.js.map +1 -0
- package/dist/9712.js +1 -0
- package/dist/9712.js.map +1 -0
- package/dist/9806.js +1 -0
- package/dist/9806.js.map +1 -0
- package/dist/digihmis-esm-primary-navigation-app.js +6 -0
- package/dist/digihmis-esm-primary-navigation-app.js.buildmanifest.json +1542 -0
- package/dist/digihmis-esm-primary-navigation-app.js.map +1 -0
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -0
- package/dist/routes.json +1 -0
- package/jest.config.js +18 -0
- package/package.json +68 -0
- package/rspack.config.js +1 -0
- package/src/components/change-language/change-language-link.extension.tsx +37 -0
- package/src/components/change-language/change-language-link.scss +14 -0
- package/src/components/change-language/change-language.modal.tsx +115 -0
- package/src/components/change-language/change-language.resource.ts +35 -0
- package/src/components/change-language/change-language.scss +59 -0
- package/src/components/change-language/change-language.test.tsx +107 -0
- package/src/components/dashboard/dashboard.component.tsx +104 -0
- package/src/components/generic-link/generic-link.component.tsx +25 -0
- package/src/components/logo/logo.component.tsx +28 -0
- package/src/components/logo/logo.scss +11 -0
- package/src/components/logo/logo.test.tsx +79 -0
- package/src/components/nav-group/nav-group.component.tsx +52 -0
- package/src/components/navbar/app-menu-button.component.tsx +43 -0
- package/src/components/navbar/navbar.component.tsx +123 -0
- package/src/components/navbar/navbar.scss +51 -0
- package/src/components/navbar/types.ts +5 -0
- package/src/components/navbar/user-menu-button.component.tsx +44 -0
- package/src/components/navbar-header-panels/app-menu-panel.component.tsx +48 -0
- package/src/components/navbar-header-panels/app-menu-panel.scss +43 -0
- package/src/components/navbar-header-panels/notifications-menu-panel.component.tsx +23 -0
- package/src/components/navbar-header-panels/notifications-menu-panel.test.tsx +9 -0
- package/src/components/navbar-header-panels/notifications-menu.panel.scss +9 -0
- package/src/components/navbar-header-panels/side-menu-panel.component.tsx +37 -0
- package/src/components/navbar-header-panels/user-menu-panel.component.tsx +32 -0
- package/src/components/navbar-header-panels/user-menu-panel.scss +65 -0
- package/src/components/user-panel-switcher-item/user-panel-switcher.component.tsx +15 -0
- package/src/components/user-panel-switcher-item/user-panel-switcher.test.tsx +22 -0
- package/src/config-schema.ts +56 -0
- package/src/constants.ts +2 -0
- package/src/declarations.d.ts +1 -0
- package/src/index.ts +68 -0
- package/src/root.component.test.tsx +57 -0
- package/src/root.component.tsx +25 -0
- package/src/root.resource.tsx +13 -0
- package/src/root.scss +5 -0
- package/src/routes.json +78 -0
- package/src/setupTests.ts +7 -0
- package/src/utils.ts +3 -0
- package/translations/am.json +14 -0
- package/translations/ar.json +14 -0
- package/translations/ar_SY.json +14 -0
- package/translations/bn.json +14 -0
- package/translations/cs.json +14 -0
- package/translations/de.json +14 -0
- package/translations/en.json +14 -0
- package/translations/en_US.json +14 -0
- package/translations/es.json +14 -0
- package/translations/es_MX.json +14 -0
- package/translations/fr.json +14 -0
- package/translations/he.json +14 -0
- package/translations/hi.json +14 -0
- package/translations/hi_IN.json +14 -0
- package/translations/id.json +14 -0
- package/translations/it.json +14 -0
- package/translations/ka.json +14 -0
- package/translations/km.json +14 -0
- package/translations/ku.json +14 -0
- package/translations/ky.json +14 -0
- package/translations/lg.json +14 -0
- package/translations/ne.json +14 -0
- package/translations/pl.json +14 -0
- package/translations/pt.json +14 -0
- package/translations/pt_BR.json +14 -0
- package/translations/qu.json +14 -0
- package/translations/ro_RO.json +14 -0
- package/translations/ru_RU.json +14 -0
- package/translations/si.json +14 -0
- package/translations/sq.json +14 -0
- package/translations/sw.json +12 -0
- package/translations/sw_KE.json +14 -0
- package/translations/tr.json +14 -0
- package/translations/tr_TR.json +14 -0
- package/translations/uk.json +14 -0
- package/translations/uz.json +14 -0
- package/translations/uz@Latn.json +14 -0
- package/translations/uz_UZ.json +14 -0
- package/translations/vi.json +14 -0
- package/translations/zh.json +14 -0
- package/translations/zh_CN.json +14 -0
- package/translations/zh_TW.json +14 -0
- package/tsconfig.json +24 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "Menyu ya Programu",
|
|
3
|
+
"cancel": "Ghairi",
|
|
4
|
+
"change": "Badilisha",
|
|
5
|
+
"changeLanguage": "Badilisha lugha",
|
|
6
|
+
"changingLanguage": "Inabadilisha lugha",
|
|
7
|
+
"noPathInDashboardExtension": "Haiwezi kuonyesha kiendelezi cha dashibodi bila sifa ya \"njia\" kuwekwa katika mpangilio wa usanidi",
|
|
8
|
+
"notifications": "Arifa",
|
|
9
|
+
"userMenu": "Menyu ya mtumiaji",
|
|
10
|
+
"userMenuOptions": "Chaguo za menyu ya mtumiaji",
|
|
11
|
+
"userMenuTooltip": "Akaunti Yangu"
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Hủy",
|
|
4
|
+
"change": "Thay đổi",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Thay đổi ngôn ngữ",
|
|
8
|
+
"changingLanguage": "Đang thay đổi ngôn ngữ",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Thông báo",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "Tài khoản của tôi"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "取消",
|
|
4
|
+
"change": "更改",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "更改语言",
|
|
8
|
+
"changingLanguage": "正在更改语言",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "通知",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "我的账户"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "应用菜单",
|
|
3
|
+
"cancel": "取消",
|
|
4
|
+
"change": "更改",
|
|
5
|
+
"changeDefaultLocale": "更新您的默认语言环境",
|
|
6
|
+
"changeDefaultLocaleExplanation": "取消选中此项仅可更改本次会话的语言。",
|
|
7
|
+
"changeLanguage": "更改语言",
|
|
8
|
+
"changingLanguage": "正在更改语言",
|
|
9
|
+
"noPathInDashboardExtension": "如果配置架构中未设置“path”属性,则无法渲染仪表板扩展。",
|
|
10
|
+
"notifications": "通知",
|
|
11
|
+
"userMenu": "用户菜单",
|
|
12
|
+
"userMenuOptions": "用户菜单选项",
|
|
13
|
+
"userMenuTooltip": "我的账户"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AppMenuTooltip": "App Menu",
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"change": "Change",
|
|
5
|
+
"changeDefaultLocale": "Update your default locale",
|
|
6
|
+
"changeDefaultLocaleExplanation": "Leave this unchecked to change language for this session only",
|
|
7
|
+
"changeLanguage": "Change language",
|
|
8
|
+
"changingLanguage": "Changing language",
|
|
9
|
+
"noPathInDashboardExtension": "Cannot render the dashboard extension without the property \"path\" being set in the configuration schema",
|
|
10
|
+
"notifications": "Notifications",
|
|
11
|
+
"userMenu": "User menu",
|
|
12
|
+
"userMenuOptions": "User menu options",
|
|
13
|
+
"userMenuTooltip": "My Account"
|
|
14
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"esModuleInterop": true,
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"target": "es2015",
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"jsx": "react",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"lib": [
|
|
11
|
+
"dom",
|
|
12
|
+
"es5",
|
|
13
|
+
"scripthost",
|
|
14
|
+
"es2015",
|
|
15
|
+
"es2015.promise",
|
|
16
|
+
"es2016.array.include",
|
|
17
|
+
"es2018",
|
|
18
|
+
"es2020",
|
|
19
|
+
"es2022"
|
|
20
|
+
],
|
|
21
|
+
"noEmit": true
|
|
22
|
+
},
|
|
23
|
+
"include": ["src/**/*"]
|
|
24
|
+
}
|