@kenyaemr/esm-bed-management-app 1.0.1-pre.4 → 8.1.1-pre.116
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/.turbo/turbo-build.log +36 -0
- package/README.md +6 -38
- package/dist/130.js +2 -0
- package/dist/{800.js.LICENSE.txt → 130.js.LICENSE.txt} +2 -0
- package/dist/130.js.map +1 -0
- package/dist/148.js +1 -0
- package/dist/148.js.map +1 -0
- package/dist/169.js +1 -0
- package/dist/169.js.map +1 -0
- package/dist/271.js +1 -0
- package/dist/319.js +1 -0
- package/dist/325.js +1 -0
- package/dist/325.js.map +1 -0
- package/dist/339.js +1 -0
- package/dist/339.js.map +1 -0
- package/dist/455.js +1 -1
- package/dist/455.js.LICENSE.txt +6 -0
- package/dist/455.js.map +1 -1
- package/dist/460.js +1 -0
- package/dist/501.js +1 -0
- package/dist/501.js.map +1 -0
- package/dist/542.js +1 -0
- package/dist/542.js.map +1 -0
- package/dist/574.js +1 -1
- package/dist/591.js +2 -0
- package/dist/{26.js.LICENSE.txt → 591.js.LICENSE.txt} +3 -3
- package/dist/591.js.map +1 -0
- package/dist/644.js +1 -0
- package/dist/757.js +1 -0
- package/dist/766.js +2 -0
- package/dist/{330.js.LICENSE.txt → 766.js.LICENSE.txt} +0 -9
- package/dist/766.js.map +1 -0
- package/dist/{294.js → 784.js} +2 -2
- package/dist/{294.js.map → 784.js.map} +1 -1
- package/dist/788.js +1 -0
- package/dist/807.js +1 -0
- package/dist/833.js +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-bed-management-app.js +1 -0
- package/dist/{esm-kenyaemr-bed-management-app.js.buildmanifest.json → openmrs-esm-bed-management-app.js.buildmanifest.json} +202 -155
- package/dist/openmrs-esm-bed-management-app.js.map +1 -0
- package/dist/routes.json +1 -1
- package/jest.config.js +3 -0
- package/package.json +25 -82
- package/src/__mocks__/react-i18next.js +18 -14
- package/src/admin-card-link.component.tsx +7 -10
- package/src/bed-administration/bed-administration-form.component.tsx +65 -99
- package/src/bed-administration/bed-administration-table.component.tsx +68 -127
- package/src/bed-administration/bed-administration-table.scss +12 -16
- package/src/bed-administration/bed-administration-types.ts +8 -0
- package/src/bed-administration/bed-administration.resource.ts +16 -18
- package/src/bed-administration/edit-bed-form.component.tsx +20 -31
- package/src/bed-administration/new-bed-form.component.tsx +28 -44
- package/src/bed-tag/bed-tag-administration-table.component.tsx +192 -0
- package/src/bed-tag/bed-tags-admin-form.component.tsx +127 -0
- package/src/bed-tag/edit-tag-form.component.tsx +72 -0
- package/src/bed-tag/new-tag-form.component.tsx +76 -0
- package/src/bed-type/bed-type-admin-form.component.tsx +166 -0
- package/src/bed-type/bed-type-administration-table.component.tsx +198 -0
- package/src/bed-type/edit-bed-type.component.tsx +72 -0
- package/src/bed-type/new-bed-type-form.component.tsx +80 -0
- package/src/card-header/card-header.component.tsx +20 -0
- package/src/card-header/card-header.scss +45 -0
- package/src/config-schema.ts +9 -17
- package/src/declarations.d.ts +5 -5
- package/src/empty-state/empty-state.component.tsx +6 -21
- package/src/empty-state/empty-state.scss +10 -10
- package/src/header/header.component.tsx +14 -23
- package/src/header/header.scss +11 -11
- package/src/header/illustration.component.tsx +3 -3
- package/src/home.component.tsx +4 -4
- package/src/index.ts +26 -40
- package/src/left-panel/left-panel.component.tsx +7 -17
- package/src/left-panel/left-panel.scss +8 -7
- package/src/left-panel-link.component.tsx +14 -24
- package/src/root.component.tsx +14 -10
- package/src/root.scss +2 -2
- package/src/routes.json +12 -2
- package/src/setup-tests.ts +1 -1
- package/src/summary/summary.component.tsx +16 -30
- package/src/summary/summary.resource.ts +169 -60
- package/src/summary/summary.scss +31 -29
- package/src/types.ts +50 -29
- package/src/ward-card/ward-card.component.tsx +5 -12
- package/src/ward-card/ward-card.scss +2 -2
- package/src/ward-with-beds/ward-with-beds.component.tsx +28 -47
- package/src/ward-with-beds/ward-with-beds.scss +5 -5
- package/translations/am.json +51 -0
- package/translations/ar.json +51 -0
- package/translations/en.json +48 -4
- package/translations/es.json +51 -0
- package/translations/fr.json +51 -0
- package/translations/he.json +51 -0
- package/translations/km.json +51 -0
- package/translations/zh.json +51 -0
- package/translations/zh_CN.json +51 -0
- package/tsconfig.json +3 -21
- package/webpack.config.js +1 -1
- package/.editorconfig +0 -12
- package/.eslintignore +0 -2
- package/.eslintrc +0 -37
- package/.husky/pre-commit +0 -4
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.prettierignore +0 -14
- package/.turbo.json +0 -18
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
- package/.yarn/versions/6816f0d4.yml +0 -0
- package/LICENSE +0 -373
- package/dist/187.js +0 -1
- package/dist/187.js.map +0 -1
- package/dist/207.js +0 -1
- package/dist/207.js.map +0 -1
- package/dist/26.js +0 -2
- package/dist/26.js.map +0 -1
- package/dist/283.js +0 -1
- package/dist/283.js.map +0 -1
- package/dist/330.js +0 -2
- package/dist/330.js.map +0 -1
- package/dist/352.js +0 -1
- package/dist/352.js.map +0 -1
- package/dist/404.js +0 -1
- package/dist/404.js.map +0 -1
- package/dist/558.js +0 -2
- package/dist/558.js.LICENSE.txt +0 -14
- package/dist/558.js.map +0 -1
- package/dist/629.js +0 -1
- package/dist/629.js.map +0 -1
- package/dist/707.js +0 -1
- package/dist/707.js.map +0 -1
- package/dist/800.js +0 -2
- package/dist/800.js.map +0 -1
- package/dist/884.js +0 -1
- package/dist/884.js.map +0 -1
- package/dist/933.js +0 -1
- package/dist/933.js.map +0 -1
- package/dist/959.js +0 -1
- package/dist/959.js.map +0 -1
- package/dist/esm-kenyaemr-bed-management-app.js +0 -1
- package/dist/esm-kenyaemr-bed-management-app.js.map +0 -1
- package/i18next-parser.config.js +0 -89
- package/src/assets/landing-page.png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/bed-admission/active-patients/active-patients-table.component.tsx +0 -299
- package/src/bed-admission/active-patients/active-visits.resource.ts +0 -171
- package/src/bed-admission/active-patients/admission-action-button-styles.scss +0 -0
- package/src/bed-admission/active-patients/admission-action-button.component.tsx +0 -26
- package/src/bed-admission/active-patients/index.tsx +0 -15
- package/src/bed-admission/active-patients/patient-queues.resource.ts +0 -136
- package/src/bed-admission/active-patients/styles.scss +0 -284
- package/src/bed-admission/active-patients/view-action-menu.component.tsx +0 -33
- package/src/bed-admission/admitted-patients/active-admissions.resource.ts +0 -121
- package/src/bed-admission/admitted-patients/admitted-patients-table.component.tsx +0 -280
- package/src/bed-admission/admitted-patients/admitted-patients.component.tsx +0 -22
- package/src/bed-admission/admitted-patients/location-combo-box.component.tsx +0 -55
- package/src/bed-admission/admitted-patients/styles.scss +0 -284
- package/src/bed-admission/bed-admission-tabs-styles.scss +0 -30
- package/src/bed-admission/bed-admission-tabs.component.tsx +0 -69
- package/src/bed-admission/bed-admission.component.tsx +0 -15
- package/src/bed-admission/bed-admission.resource.ts +0 -35
- package/src/bed-admission/bed-layout/bed-layout-list.component.tsx +0 -101
- package/src/bed-admission/bed-layout/bed-layout.component.tsx +0 -64
- package/src/bed-admission/bed-layout/bed-layout.scss +0 -118
- package/src/bed-admission/bed-layout/min-bed-layout.component.tsx +0 -26
- package/src/bed-admission/createDashboardLink.tsx +0 -47
- package/src/bed-admission/discharged-patients/discharged-patients.componet.tsx +0 -19
- package/src/bed-admission/helpers/functions.ts +0 -102
- package/src/bed-admission/types.ts +0 -133
- package/src/workspace/allocate-bed-workspace.component.tsx +0 -141
- package/src/workspace/allocate-bed.scss +0 -117
- package/src/workspace/overlay.component.tsx +0 -55
- package/src/workspace/overlay.scss +0 -96
- /package/dist/{294.js.LICENSE.txt → 784.js.LICENSE.txt} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Button, Header } from "@carbon/react";
|
|
3
|
-
import { ArrowLeft, Close } from "@carbon/react/icons";
|
|
4
|
-
import { isDesktop, useLayoutType } from "@openmrs/esm-framework";
|
|
5
|
-
import styles from "./overlay.scss";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
|
|
8
|
-
interface OverlayProps {
|
|
9
|
-
closePanel: () => void;
|
|
10
|
-
header: string;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const Overlay: React.FC<OverlayProps> = ({ closePanel, children, header }) => {
|
|
15
|
-
const layout = useLayoutType();
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div
|
|
20
|
-
className={
|
|
21
|
-
isDesktop(layout) ? styles.desktopOverlay : styles.tabletOverlay
|
|
22
|
-
}
|
|
23
|
-
>
|
|
24
|
-
{isDesktop(layout) ? (
|
|
25
|
-
<div className={styles.desktopHeader}>
|
|
26
|
-
<div className={styles.headerContent}>{header}</div>
|
|
27
|
-
<Button
|
|
28
|
-
className={styles.closePanelButton}
|
|
29
|
-
onClick={closePanel}
|
|
30
|
-
kind="ghost"
|
|
31
|
-
hasIconOnly
|
|
32
|
-
renderIcon={(props) => <Close size={16} {...props} />}
|
|
33
|
-
iconDescription={t("closeOverlay", "Close overlay")}
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
) : (
|
|
37
|
-
<Header
|
|
38
|
-
aria-label="Tablet overlay"
|
|
39
|
-
className={styles.tabletOverlayHeader}
|
|
40
|
-
>
|
|
41
|
-
<Button
|
|
42
|
-
onClick={closePanel}
|
|
43
|
-
hasIconOnly
|
|
44
|
-
renderIcon={(props) => <ArrowLeft size={16} {...props} />}
|
|
45
|
-
iconDescription={t("closeOverlay", "Close overlay")}
|
|
46
|
-
/>
|
|
47
|
-
<div className={styles.headerContent}>{header}</div>
|
|
48
|
-
</Header>
|
|
49
|
-
)}
|
|
50
|
-
{children}
|
|
51
|
-
</div>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default Overlay;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/spacing';
|
|
2
|
-
@use '@carbon/styles/scss/type';
|
|
3
|
-
@import '~@openmrs/esm-styleguide/src/vars';
|
|
4
|
-
@import '../root.scss';
|
|
5
|
-
|
|
6
|
-
.desktopOverlay {
|
|
7
|
-
position: fixed;
|
|
8
|
-
top: spacing.$spacing-09;
|
|
9
|
-
width: 37rem;
|
|
10
|
-
right: 0;
|
|
11
|
-
bottom: 0;
|
|
12
|
-
border-left: 1px solid $text-03;
|
|
13
|
-
background-color: $ui-01;
|
|
14
|
-
overflow-y: auto;
|
|
15
|
-
height: calc(100vh - 3rem);
|
|
16
|
-
z-index: 99999;
|
|
17
|
-
display: grid;
|
|
18
|
-
grid-template-rows: 1fr auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.desktopOverlay::after {
|
|
22
|
-
height: 100%;
|
|
23
|
-
border-left: 1px solid $text-03;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.tabletOverlay {
|
|
27
|
-
position: fixed;
|
|
28
|
-
top: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
right: 0;
|
|
32
|
-
z-index: 9999;
|
|
33
|
-
background-color: $ui-01;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
padding-top: spacing.$spacing-09;
|
|
36
|
-
display: grid;
|
|
37
|
-
grid-template-rows: 1fr auto;
|
|
38
|
-
overflow-y: auto;
|
|
39
|
-
height: 100vh;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.tabletOverlayHeader {
|
|
43
|
-
button {
|
|
44
|
-
@include brand-01(background-color);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.headerContent {
|
|
48
|
-
color: $ui-02;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.desktopHeader {
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
align-items: center;
|
|
56
|
-
background-color: $ui-03;
|
|
57
|
-
border-bottom: 1px solid $text-03;
|
|
58
|
-
position: absolute;
|
|
59
|
-
position: -webkit-sticky;
|
|
60
|
-
width: 100%;
|
|
61
|
-
z-index: 1000;
|
|
62
|
-
top: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.headerContent {
|
|
66
|
-
@include type.type-style('heading-compact-02');
|
|
67
|
-
padding: 0 spacing.$spacing-05;
|
|
68
|
-
color: $ui-05;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.closePanelButton {
|
|
72
|
-
background-color: $ui-background;
|
|
73
|
-
color: $ui-05;
|
|
74
|
-
fill: $ui-05;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Desktop */
|
|
78
|
-
:global(.omrs-breakpoint-gt-tablet) {
|
|
79
|
-
.overlayContent {
|
|
80
|
-
padding: 0 0 0 0;
|
|
81
|
-
overflow-y: auto;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Tablet */
|
|
86
|
-
:global(.omrs-breakpoint-lt-desktop) {
|
|
87
|
-
.overlayContent {
|
|
88
|
-
padding: 0 0 0 0;
|
|
89
|
-
overflow-y: auto;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.wardLabel {
|
|
94
|
-
@include type.type-style('label-01');
|
|
95
|
-
// color: colors.$gray-70;
|
|
96
|
-
}
|
|
File without changes
|