@ampath/esm-dha-workflow-app 4.0.0-next.11 → 4.0.0-next.12
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/16.js +1 -0
- package/dist/16.js.map +1 -0
- package/dist/198.js +1 -1
- package/dist/860.js +1 -1
- package/dist/860.js.map +1 -1
- package/dist/91.js +1 -1
- package/dist/91.js.map +1 -1
- package/dist/970.js +2 -0
- package/dist/970.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 +43 -43
- package/dist/openmrs-esm-home-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/registry/modal/client-details-modal/client-details-modal.tsx +11 -5
- package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +24 -0
- package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +258 -0
- package/src/registry/registry.component.tsx +37 -4
- package/src/registry/registry.resource.ts +1 -2
- package/src/registry/types/index.ts +63 -0
- package/src/registry/utils/error-handler.ts +4 -0
- package/src/resources/patient-search.resource.ts +22 -0
- package/src/resources/queue.resource.ts +37 -0
- package/src/resources/visit.resource.ts +20 -0
- package/src/root.component.tsx +1 -0
- package/src/shared/constants/concepts.ts +17 -0
- package/src/shared/constants/index.ts +2 -0
- package/dist/161.js +0 -1
- package/dist/161.js.map +0 -1
- package/dist/916.js +0 -2
- package/dist/916.js.map +0 -1
- package/src/resources/resources.component.tsx +0 -56
- package/src/resources/resources.scss +0 -68
- /package/dist/{916.js.LICENSE.txt → 970.js.LICENSE.txt} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ClickableTile } from '@carbon/react';
|
|
3
|
-
import { ChevronRight } from '@carbon/react/icons';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import styles from './resources.scss';
|
|
6
|
-
|
|
7
|
-
function Resources() {
|
|
8
|
-
const { t } = useTranslation();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div className={styles.resources}>
|
|
12
|
-
<h4 className={styles.heading}>{t('resources', 'Resources')}</h4>
|
|
13
|
-
<span className={styles.explainer}>{t('usefulLinks', 'Below are some links to useful resources')}:</span>
|
|
14
|
-
<div className={styles.cardsContainer}>
|
|
15
|
-
<Card
|
|
16
|
-
title={t('getStarted', 'Get started')}
|
|
17
|
-
subtitle={t('getStartedExplainer', 'Create a frontend module from this template') + '.'}
|
|
18
|
-
link="https://github.com/openmrs/openmrs-esm-home-app/generate"
|
|
19
|
-
/>
|
|
20
|
-
<Card
|
|
21
|
-
title={t('frontendDocs', 'Frontend docs')}
|
|
22
|
-
subtitle={t('learnExplainer', 'Learn how to use the O3 framework') + '.'}
|
|
23
|
-
link="https://openmrs.atlassian.net/wiki/spaces/docs/pages/151093495/Introduction+to+O3+for+Developers"
|
|
24
|
-
/>
|
|
25
|
-
<Card
|
|
26
|
-
title={t('designDocs', 'Design docs')}
|
|
27
|
-
subtitle={t('designDocsExplainer', 'Read the O3 design documentation') + '.'}
|
|
28
|
-
link="https://zeroheight.com/23a080e38/p/880723-introduction"
|
|
29
|
-
/>
|
|
30
|
-
<Card
|
|
31
|
-
title={t('connect', 'Connect')}
|
|
32
|
-
subtitle={t('connectExplainer', 'Get in touch with the community') + '.'}
|
|
33
|
-
link="https://slack.openmrs.org/"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function Card({ title, subtitle, link }: { title: string; subtitle: string; link: string }) {
|
|
41
|
-
return (
|
|
42
|
-
<a href={link} target="_blank" rel="noopener noreferrer" className={styles.cardLink}>
|
|
43
|
-
<ClickableTile className={styles.card}>
|
|
44
|
-
<div className={styles.cardContent}>
|
|
45
|
-
<div className={styles.title}>
|
|
46
|
-
<h4>{title}</h4>
|
|
47
|
-
<ChevronRight />
|
|
48
|
-
</div>
|
|
49
|
-
<span className={styles.subtitle}>{subtitle}</span>
|
|
50
|
-
</div>
|
|
51
|
-
</ClickableTile>
|
|
52
|
-
</a>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export default Resources;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@use '@carbon/layout';
|
|
2
|
-
@use '@carbon/type';
|
|
3
|
-
|
|
4
|
-
.container {
|
|
5
|
-
padding: layout.$spacing-07;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.heading {
|
|
9
|
-
@include type.type-style('heading-04');
|
|
10
|
-
margin: layout.$spacing-05 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.explainer {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.resources {
|
|
18
|
-
margin-top: layout.$spacing-10;
|
|
19
|
-
margin-bottom: layout.$spacing-09;
|
|
20
|
-
|
|
21
|
-
> * + * {
|
|
22
|
-
margin-right: layout.$spacing-05;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.cardsContainer {
|
|
27
|
-
display: grid;
|
|
28
|
-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
29
|
-
column-gap: layout.$spacing-06;
|
|
30
|
-
margin-top: layout.$spacing-07;
|
|
31
|
-
max-width: 75%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.card {
|
|
35
|
-
margin: layout.$spacing-03 0;
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
border: 1px solid lightgray;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
svg {
|
|
44
|
-
margin-left: layout.$spacing-02;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cardLink {
|
|
49
|
-
text-decoration: none;
|
|
50
|
-
color: inherit;
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cardContent {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.title {
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
margin-bottom: layout.$spacing-05;
|
|
63
|
-
|
|
64
|
-
h4 {
|
|
65
|
-
@include type.type-style('heading-02');
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
File without changes
|