@ampath/esm-dha-workflow-app 4.0.0-next.7 → 4.0.0-next.9
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/dist/161.js +1 -1
- package/dist/161.js.map +1 -1
- package/dist/198.js +1 -1
- package/dist/198.js.map +1 -1
- package/dist/860.js +1 -0
- package/dist/860.js.map +1 -0
- package/dist/91.js +1 -1
- package/dist/91.js.map +1 -1
- package/dist/916.js +2 -0
- package/dist/916.js.map +1 -0
- package/dist/93.js +2 -0
- package/dist/93.js.LICENSE.txt +5 -0
- package/dist/93.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-home-app.js +1 -1
- package/dist/openmrs-esm-home-app.js.buildmanifest.json +67 -67
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/consultation/consultation.tsx +7 -0
- package/src/index.ts +1 -1
- package/src/left-panel/left-panel.component.tsx +22 -0
- package/src/left-panel/left-panel.scss +42 -0
- package/src/registry/registry.component.scss +1 -6
- package/src/registry/registry.component.tsx +0 -5
- package/src/root.component.tsx +12 -23
- package/src/root.scss +5 -9
- package/src/routes.json +3 -3
- package/src/side-nav-menu/nav-link-config.ts +38 -0
- package/src/side-nav-menu/nav-links.tsx +13 -14
- package/dist/244.js +0 -1
- package/dist/244.js.map +0 -1
- package/dist/274.js +0 -1
- package/dist/274.js.map +0 -1
- package/dist/802.js +0 -2
- package/dist/802.js.map +0 -1
- package/src/boxes/extensions/blue-box.component.tsx +0 -15
- package/src/boxes/extensions/box.scss +0 -23
- package/src/boxes/extensions/brand-box.component.tsx +0 -15
- package/src/boxes/extensions/red-box.component.tsx +0 -15
- package/src/boxes/slot/boxes.component.tsx +0 -25
- package/src/boxes/slot/boxes.scss +0 -29
- package/src/greeter/greeter.component.tsx +0 -42
- package/src/greeter/greeter.scss +0 -20
- package/src/greeter/greeter.test.tsx +0 -28
- package/src/patient-getter/patient-getter.component.tsx +0 -40
- package/src/patient-getter/patient-getter.resource.ts +0 -39
- package/src/patient-getter/patient-getter.scss +0 -16
- package/src/patient-getter/patient-getter.test.tsx +0 -40
- /package/dist/{802.js.LICENSE.txt → 916.js.LICENSE.txt} +0 -0
package/src/routes.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"pages": [
|
|
5
5
|
{
|
|
6
6
|
"component": "root",
|
|
7
|
-
"route": "
|
|
7
|
+
"route": "home",
|
|
8
8
|
"online": true,
|
|
9
9
|
"offline": true
|
|
10
10
|
}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"component": "navLinks",
|
|
22
|
-
"name": "side-nav-workflow-
|
|
23
|
-
"slot": "
|
|
22
|
+
"name": "side-nav-workflow-links",
|
|
23
|
+
"slot": "dha-workflow-slot",
|
|
24
24
|
"online": true,
|
|
25
25
|
"offline": true
|
|
26
26
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const navLinksConfig = [
|
|
2
|
+
{
|
|
3
|
+
to: 'dashboard',
|
|
4
|
+
title: 'Dashboard',
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
to: 'registry',
|
|
8
|
+
title: 'Registry',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
to: 'appointments',
|
|
12
|
+
title: 'Appointments',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
to: 'triage',
|
|
16
|
+
title: 'Triage',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
to: 'consultation',
|
|
20
|
+
title: 'Consultation',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
to: 'laboratory',
|
|
24
|
+
title: 'Laboratoty',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
to: 'bookings',
|
|
28
|
+
title: 'Bookings',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
to: 'reports',
|
|
32
|
+
title: 'Reports',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
to: 'registers',
|
|
36
|
+
title: 'Registers',
|
|
37
|
+
},
|
|
38
|
+
];
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { SideNavMenuItem } from '@carbon/react';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { ConfigurableLink } from '@openmrs/esm-framework';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { navLinksConfig } from './nav-link-config';
|
|
3
5
|
|
|
4
6
|
interface NavLinksProps {}
|
|
5
7
|
const NavLinks: React.FC<NavLinksProps> = () => {
|
|
6
8
|
return (
|
|
7
9
|
<>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<SideNavMenuItem href="workflow/registry">Bookings</SideNavMenuItem>
|
|
19
|
-
<SideNavMenuItem href="workflow/registry">Reports</SideNavMenuItem>
|
|
20
|
-
<SideNavMenuItem href="workflow/registry">Registers</SideNavMenuItem>
|
|
10
|
+
{navLinksConfig.map((n) => {
|
|
11
|
+
return (
|
|
12
|
+
<ConfigurableLink
|
|
13
|
+
to={`${window.getOpenmrsSpaBase()}home/${n.to}`}
|
|
14
|
+
className={classNames('cds--side-nav__link', '')}
|
|
15
|
+
>
|
|
16
|
+
{n.title}
|
|
17
|
+
</ConfigurableLink>
|
|
18
|
+
);
|
|
19
|
+
})}
|
|
21
20
|
</>
|
|
22
21
|
);
|
|
23
22
|
};
|
package/dist/244.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[244],{49244:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var l=t(26802),o=t(16072),n=t.n(o);const a=function(){return n().createElement(n().Fragment,null,n().createElement(l.ldn,{id:"1",href:"workflow/registry"},"Dashboard"),n().createElement(l.ldn,{id:"2",href:"workflow/registry"},"Registration"),n().createElement(l.ldn,{href:"workflow/registry"},"Appointments"),n().createElement(l.ldn,{href:"workflow/registry"},"Triage"),n().createElement(l.ldn,{href:"workflow/registry"},"Consultation"),n().createElement(l.ldn,{href:"workflow/registry"},"Laboratory"),n().createElement(l.ldn,{href:"workflow/registry"},"Bookings"),n().createElement(l.ldn,{href:"workflow/registry"},"Reports"),n().createElement(l.ldn,{href:"workflow/registry"},"Registers"))}}}]);
|
package/dist/244.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"244.js","mappings":"yNAwBA,QApB0C,WACxC,OACE,oCACE,kBAACA,EAAAA,IAAeA,CAACC,GAAG,IAAIC,KAAK,qBAAoB,aAGjD,kBAACF,EAAAA,IAAeA,CAACC,GAAG,IAAIC,KAAK,qBAAoB,gBAGjD,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,gBAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,UAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,gBAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,cAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,YAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,WAC1C,kBAACF,EAAAA,IAAeA,CAACE,KAAK,qBAAoB,aAGhD,C","sources":["webpack://@ampath/esm-dha-workflow-app/./src/side-nav-menu/nav-links.tsx"],"names":["SideNavMenuItem","id","href"],"sourceRoot":""}
|
package/dist/274.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[274],{21274:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var l=a(16072),n=a.n(l),r=a(2076),o=a(27114),s=a(78161);const m=function(){return(0,r.useTranslation)().t,n().createElement("main",{className:"omrs-main-content"},n().createElement(o.BrowserRouter,{basename:window.spaBase},n().createElement(o.Routes,null,n().createElement(o.Route,{path:"/workflow",element:n().createElement(s.default,null)}),n().createElement(o.Route,{path:"/workflow/registry",element:n().createElement(s.default,null)}))))}}}]);
|
package/dist/274.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"274.js","mappings":"8OAmCA,QAduB,WAErB,OADcA,EAAAA,EAAAA,kBAANC,EAEN,kBAACC,OAAAA,CAAKC,UAAU,qBACd,kBAACC,EAAAA,cAAaA,CAACC,SAAUC,OAAOC,SAC9B,kBAACC,EAAAA,OAAMA,KACL,kBAACC,EAAAA,MAAKA,CAACC,KAAK,YAAYC,QAAS,kBAACC,EAAAA,QAAiBA,QACnD,kBAACH,EAAAA,MAAKA,CAACC,KAAK,qBAAqBC,QAAS,kBAACC,EAAAA,QAAiBA,UAKtE,C","sources":["webpack://@ampath/esm-dha-workflow-app/./src/root.component.tsx"],"names":["useTranslation","t","main","className","BrowserRouter","basename","window","spaBase","Routes","Route","path","element","RegistryComponent"],"sourceRoot":""}
|