@kenyaemr/esm-bed-management-app 1.0.1-pre.7 → 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.
Files changed (175) hide show
  1. package/.turbo/turbo-build.log +36 -0
  2. package/README.md +6 -38
  3. package/dist/130.js +2 -0
  4. package/dist/{800.js.LICENSE.txt → 130.js.LICENSE.txt} +2 -0
  5. package/dist/130.js.map +1 -0
  6. package/dist/148.js +1 -0
  7. package/dist/148.js.map +1 -0
  8. package/dist/169.js +1 -0
  9. package/dist/169.js.map +1 -0
  10. package/dist/271.js +1 -0
  11. package/dist/319.js +1 -0
  12. package/dist/325.js +1 -0
  13. package/dist/325.js.map +1 -0
  14. package/dist/339.js +1 -0
  15. package/dist/339.js.map +1 -0
  16. package/dist/455.js +1 -1
  17. package/dist/455.js.LICENSE.txt +6 -0
  18. package/dist/455.js.map +1 -1
  19. package/dist/460.js +1 -0
  20. package/dist/501.js +1 -0
  21. package/dist/501.js.map +1 -0
  22. package/dist/542.js +1 -0
  23. package/dist/542.js.map +1 -0
  24. package/dist/574.js +1 -1
  25. package/dist/591.js +2 -0
  26. package/dist/{26.js.LICENSE.txt → 591.js.LICENSE.txt} +3 -3
  27. package/dist/591.js.map +1 -0
  28. package/dist/644.js +1 -0
  29. package/dist/757.js +1 -0
  30. package/dist/766.js +2 -0
  31. package/dist/{330.js.LICENSE.txt → 766.js.LICENSE.txt} +0 -9
  32. package/dist/766.js.map +1 -0
  33. package/dist/{294.js → 784.js} +2 -2
  34. package/dist/{294.js.map → 784.js.map} +1 -1
  35. package/dist/788.js +1 -0
  36. package/dist/807.js +1 -0
  37. package/dist/833.js +1 -0
  38. package/dist/main.js +1 -1
  39. package/dist/main.js.map +1 -1
  40. package/dist/openmrs-esm-bed-management-app.js +1 -0
  41. package/dist/{esm-kenyaemr-bed-management-app.js.buildmanifest.json → openmrs-esm-bed-management-app.js.buildmanifest.json} +202 -155
  42. package/dist/openmrs-esm-bed-management-app.js.map +1 -0
  43. package/dist/routes.json +1 -1
  44. package/jest.config.js +3 -0
  45. package/package.json +25 -82
  46. package/src/__mocks__/react-i18next.js +18 -14
  47. package/src/admin-card-link.component.tsx +7 -10
  48. package/src/bed-administration/bed-administration-form.component.tsx +65 -99
  49. package/src/bed-administration/bed-administration-table.component.tsx +68 -127
  50. package/src/bed-administration/bed-administration-table.scss +12 -16
  51. package/src/bed-administration/bed-administration.resource.ts +16 -18
  52. package/src/bed-administration/edit-bed-form.component.tsx +20 -31
  53. package/src/bed-administration/new-bed-form.component.tsx +28 -44
  54. package/src/{bed-admission/bed-tag → bed-tag}/bed-tag-administration-table.component.tsx +35 -60
  55. package/src/{bed-admission/bed-tag → bed-tag}/bed-tags-admin-form.component.tsx +30 -34
  56. package/src/{bed-admission/bed-tag → bed-tag}/edit-tag-form.component.tsx +17 -25
  57. package/src/{bed-admission/bed-tag → bed-tag}/new-tag-form.component.tsx +20 -27
  58. package/src/{bed-admission/bed-type → bed-type}/bed-type-admin-form.component.tsx +37 -44
  59. package/src/{bed-admission/bed-type → bed-type}/bed-type-administration-table.component.tsx +36 -60
  60. package/src/{bed-admission/bed-type → bed-type}/edit-bed-type.component.tsx +17 -25
  61. package/src/{bed-admission/bed-type → bed-type}/new-bed-type-form.component.tsx +21 -28
  62. package/src/card-header/card-header.component.tsx +20 -0
  63. package/src/card-header/card-header.scss +45 -0
  64. package/src/config-schema.ts +9 -17
  65. package/src/declarations.d.ts +5 -5
  66. package/src/empty-state/empty-state.component.tsx +6 -21
  67. package/src/empty-state/empty-state.scss +10 -10
  68. package/src/header/header.component.tsx +14 -23
  69. package/src/header/header.scss +11 -11
  70. package/src/header/illustration.component.tsx +3 -3
  71. package/src/home.component.tsx +4 -4
  72. package/src/index.ts +21 -48
  73. package/src/left-panel/left-panel.component.tsx +7 -17
  74. package/src/left-panel/left-panel.scss +8 -7
  75. package/src/left-panel-link.component.tsx +14 -24
  76. package/src/root.component.tsx +12 -12
  77. package/src/root.scss +2 -2
  78. package/src/routes.json +12 -12
  79. package/src/setup-tests.ts +1 -1
  80. package/src/summary/summary.component.tsx +16 -30
  81. package/src/summary/summary.resource.ts +116 -95
  82. package/src/summary/summary.scss +31 -29
  83. package/src/types.ts +50 -40
  84. package/src/ward-card/ward-card.component.tsx +5 -12
  85. package/src/ward-card/ward-card.scss +2 -2
  86. package/src/ward-with-beds/ward-with-beds.component.tsx +28 -47
  87. package/src/ward-with-beds/ward-with-beds.scss +5 -5
  88. package/translations/am.json +51 -0
  89. package/translations/ar.json +51 -0
  90. package/translations/en.json +48 -4
  91. package/translations/es.json +51 -0
  92. package/translations/fr.json +51 -0
  93. package/translations/he.json +51 -0
  94. package/translations/km.json +51 -0
  95. package/translations/zh.json +51 -0
  96. package/translations/zh_CN.json +51 -0
  97. package/tsconfig.json +3 -21
  98. package/webpack.config.js +1 -1
  99. package/.editorconfig +0 -12
  100. package/.eslintignore +0 -2
  101. package/.eslintrc +0 -37
  102. package/.husky/pre-commit +0 -4
  103. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  104. package/.idea/modules.xml +0 -8
  105. package/.idea/vcs.xml +0 -6
  106. package/.prettierignore +0 -14
  107. package/.turbo.json +0 -18
  108. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  109. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  110. package/.yarn/versions/cb9a89ac.yml +0 -0
  111. package/LICENSE +0 -373
  112. package/dist/187.js +0 -1
  113. package/dist/187.js.map +0 -1
  114. package/dist/207.js +0 -1
  115. package/dist/207.js.map +0 -1
  116. package/dist/26.js +0 -2
  117. package/dist/26.js.map +0 -1
  118. package/dist/283.js +0 -1
  119. package/dist/283.js.map +0 -1
  120. package/dist/330.js +0 -2
  121. package/dist/330.js.map +0 -1
  122. package/dist/352.js +0 -1
  123. package/dist/352.js.map +0 -1
  124. package/dist/404.js +0 -1
  125. package/dist/404.js.map +0 -1
  126. package/dist/558.js +0 -2
  127. package/dist/558.js.LICENSE.txt +0 -14
  128. package/dist/558.js.map +0 -1
  129. package/dist/629.js +0 -1
  130. package/dist/629.js.map +0 -1
  131. package/dist/707.js +0 -1
  132. package/dist/707.js.map +0 -1
  133. package/dist/800.js +0 -2
  134. package/dist/800.js.map +0 -1
  135. package/dist/850.js +0 -1
  136. package/dist/850.js.map +0 -1
  137. package/dist/884.js +0 -1
  138. package/dist/884.js.map +0 -1
  139. package/dist/933.js +0 -1
  140. package/dist/933.js.map +0 -1
  141. package/dist/esm-kenyaemr-bed-management-app.js +0 -1
  142. package/dist/esm-kenyaemr-bed-management-app.js.map +0 -1
  143. package/i18next-parser.config.js +0 -89
  144. package/src/assets/landing-page.png +0 -0
  145. package/src/assets/logo.svg +0 -1
  146. package/src/bed-admission/active-patients/active-patients-table.component.tsx +0 -299
  147. package/src/bed-admission/active-patients/active-visits.resource.ts +0 -171
  148. package/src/bed-admission/active-patients/admission-action-button-styles.scss +0 -0
  149. package/src/bed-admission/active-patients/admission-action-button.component.tsx +0 -26
  150. package/src/bed-admission/active-patients/index.tsx +0 -15
  151. package/src/bed-admission/active-patients/patient-queues.resource.ts +0 -136
  152. package/src/bed-admission/active-patients/styles.scss +0 -284
  153. package/src/bed-admission/active-patients/view-action-menu.component.tsx +0 -33
  154. package/src/bed-admission/admitted-patients/active-admissions.resource.ts +0 -121
  155. package/src/bed-admission/admitted-patients/admitted-patients-table.component.tsx +0 -280
  156. package/src/bed-admission/admitted-patients/admitted-patients.component.tsx +0 -22
  157. package/src/bed-admission/admitted-patients/location-combo-box.component.tsx +0 -55
  158. package/src/bed-admission/admitted-patients/styles.scss +0 -284
  159. package/src/bed-admission/bed-admission-tabs-styles.scss +0 -30
  160. package/src/bed-admission/bed-admission-tabs.component.tsx +0 -69
  161. package/src/bed-admission/bed-admission.component.tsx +0 -15
  162. package/src/bed-admission/bed-admission.resource.ts +0 -35
  163. package/src/bed-admission/bed-layout/bed-layout-list.component.tsx +0 -101
  164. package/src/bed-admission/bed-layout/bed-layout.component.tsx +0 -64
  165. package/src/bed-admission/bed-layout/bed-layout.scss +0 -118
  166. package/src/bed-admission/bed-layout/min-bed-layout.component.tsx +0 -26
  167. package/src/bed-admission/createDashboardLink.tsx +0 -47
  168. package/src/bed-admission/discharged-patients/discharged-patients.componet.tsx +0 -19
  169. package/src/bed-admission/helpers/functions.ts +0 -102
  170. package/src/bed-admission/types.ts +0 -133
  171. package/src/workspace/allocate-bed-workspace.component.tsx +0 -141
  172. package/src/workspace/allocate-bed.scss +0 -117
  173. package/src/workspace/overlay.component.tsx +0 -55
  174. package/src/workspace/overlay.scss +0 -96
  175. /package/dist/{294.js.LICENSE.txt → 784.js.LICENSE.txt} +0 -0
@@ -1,133 +0,0 @@
1
- export interface PatientQueueResponse {
2
- results: Array<PatientQueue>;
3
- }
4
-
5
- export interface PatientQueue {
6
- uuid: string;
7
- creator: {
8
- uuid: string;
9
- display: string;
10
- username: string;
11
- systemId: string;
12
- person: UuidDisplay;
13
- privileges: [];
14
- roles: Array<UuidDisplay>;
15
- retired: boolean;
16
- };
17
- dateCreated: string;
18
- changedBy?: string;
19
- dateChanged?: string;
20
- voided: boolean;
21
- dateVoided: string;
22
- voidedBy: string;
23
- patient: {
24
- uuid: string;
25
- display: string;
26
- identifiers: Array<UuidDisplay>;
27
- person: {
28
- uuid: string;
29
- display: string;
30
- gender: string;
31
- age: number;
32
- birthdate: string;
33
- birthdateEstimated: boolean;
34
- dead: boolean;
35
- deathDate?: string;
36
- causeOfDeath?: string;
37
- preferredName: UuidDisplay;
38
- preferredAddress: UuidDisplay;
39
- attributes: [];
40
- voided: boolean;
41
- birthtime?: string;
42
- deathdateEstimated: boolean;
43
- };
44
- voided: boolean;
45
- };
46
- provider: {
47
- uuid: string;
48
- display: string;
49
- person: UuidDisplay;
50
- identifier: string;
51
- attributes: [];
52
- retired: boolean;
53
- };
54
- locationFrom: QueueLocation;
55
- locationTo: QueueLocation;
56
- encounter: {
57
- uuid: string;
58
- };
59
- status: string; // TODO add status enum
60
- priority: number; // TODO add priority enum
61
- priorityComment: string;
62
- visitNumber: string;
63
- comment: string;
64
- queueRoom: QueueRoom;
65
- datePicked: string;
66
- dateCompleted: string;
67
- }
68
-
69
- export interface QueueLocation {
70
- uuid: string;
71
- display: string;
72
- name: string;
73
- description: string;
74
- address1?: string;
75
- address2?: string;
76
- cityVillage?: string;
77
- stateProvince?: string;
78
- country: string;
79
- postalCode?: string;
80
- latitude?: string;
81
- longitude?: string;
82
- countyDistrict?: string;
83
- address3?: string;
84
- address4?: string;
85
- address5?: string;
86
- address6?: string;
87
- tags: Array<UuidDisplay>;
88
- parentLocation: UuidDisplay;
89
- childLocations: Array<UuidDisplay>;
90
- retired: boolean;
91
- attributes: [];
92
- }
93
-
94
- export interface QueueRoom {
95
- uuid: string;
96
- display: string;
97
- name: string;
98
- description: string;
99
- address1?: string;
100
- address2?: string;
101
- cityVillage?: string;
102
- stateProvince?: string;
103
- country?: string;
104
- postalCode?: string;
105
- latitude?: string;
106
- longitude?: string;
107
- countyDistrict?: string;
108
- address3?: string;
109
- address4?: string;
110
- address5?: string;
111
- address6?: string;
112
- tags: Array<UuidDisplay>;
113
- parentLocation: UuidDisplay;
114
- childLocations: Array<QueueLocation>;
115
- retired: boolean;
116
- }
117
-
118
- export interface UuidDisplay {
119
- uuid: string;
120
- display: string;
121
- }
122
-
123
- export interface patientDetailsProps {
124
- name: string;
125
- patientUuid: string;
126
- encounter: {
127
- uuid: string;
128
- };
129
- locationUuid: string;
130
- locationTo: string;
131
- locationFrom: string;
132
- queueUuid: string;
133
- }
@@ -1,141 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import classNames from "classnames";
3
- import { Stack, ButtonSet, Button } from "@carbon/react";
4
- import { useTranslation } from "react-i18next";
5
- import {
6
- showNotification,
7
- showToast,
8
- useConfig,
9
- useLayoutType,
10
- } from "@openmrs/esm-framework";
11
- import styles from "./allocate-bed.scss";
12
- import Overlay from "./overlay.component";
13
- import {
14
- assignPatientBed,
15
- endPatientQueue,
16
- } from "../bed-admission/bed-admission.resource";
17
- import BedLayoutList from "../bed-admission/bed-layout/bed-layout-list.component";
18
- import LocationComboBox from "../bed-admission/admitted-patients/location-combo-box.component";
19
- import { Bed } from "../types";
20
-
21
- interface WorkSpaceProps {
22
- closePanel: (e: boolean) => void;
23
- headerTitle?: string;
24
- queueStatus: string;
25
- patientDetails: {
26
- name: string;
27
- patientUuid: string;
28
- locationUuid: string;
29
- locationTo: string;
30
- locationFrom: string;
31
- queueUuid: string;
32
- encounter: {
33
- uuid: string;
34
- };
35
- };
36
- }
37
-
38
- const AllocateBedWorkSpace: React.FC<WorkSpaceProps> = ({
39
- headerTitle,
40
- closePanel,
41
- patientDetails,
42
- queueStatus,
43
- }) => {
44
- const { t } = useTranslation();
45
- const isTablet = useLayoutType() === "tablet";
46
- const [selectedBed, setSelectedBed] = useState<Bed>();
47
- const [isBedAssigned, setIsBedAssigned] = useState(false);
48
- const [isQueueEnded, setIsQueueEnded] = useState(false);
49
- const { restrictWardAdministrationToLoginLocation } = useConfig();
50
- const [locationUuid, setLocation] = useState(
51
- restrictWardAdministrationToLoginLocation ? patientDetails.locationUuid : ""
52
- );
53
-
54
- const handleClick = (bed) => {
55
- setSelectedBed(bed);
56
- };
57
-
58
- const handleAssignBedToPatient = useCallback(() => {
59
- const patientAndEncounterUuids = {
60
- encounterUuid:
61
- patientDetails?.encounter?.uuid ??
62
- "84d26085-da4c-461a-8481-7c95ed3f4558",
63
- patientUuid: patientDetails.patientUuid,
64
- };
65
-
66
- assignPatientBed(patientAndEncounterUuids, selectedBed.bedId)
67
- .then(() => {
68
- setIsBedAssigned(true);
69
- showToast({
70
- title: t("bedAssigned", "Bed Assigned"),
71
- kind: "success",
72
- critical: true,
73
- description: `Bed ${selectedBed.bedNumber} was assigned to ${patientDetails.name} successfully.`,
74
- });
75
- closePanel(false);
76
- })
77
- .catch((error) => {
78
- showNotification({
79
- title: t("errorAssigningBed", "Error assigning bed"),
80
- kind: "error",
81
- critical: true,
82
- description: error?.message,
83
- });
84
- });
85
- }, [patientDetails, selectedBed, t]);
86
-
87
- return (
88
- <>
89
- <Overlay header={headerTitle} closePanel={() => closePanel(false)}>
90
- <div className={styles.container}>
91
- <Stack gap={8} className={styles.container}>
92
- <section className={styles.section}>
93
- {restrictWardAdministrationToLoginLocation ? (
94
- <LocationComboBox setLocationUuid={setLocation} />
95
- ) : (
96
- <>
97
- <LocationComboBox setLocationUuid={setLocation} />
98
- </>
99
- )}
100
- <BedLayoutList
101
- locationUuid={locationUuid}
102
- handleClick={handleClick}
103
- patientDetails={patientDetails}
104
- />{" "}
105
- </section>
106
- </Stack>
107
- </div>
108
- {selectedBed && (
109
- <span className={styles.admitPatientInfo}>
110
- {" "}
111
- {t(
112
- "admittingPatientToBedText",
113
- `Click Save button to admit patient to Bed ${selectedBed.bedNumber}`
114
- )}
115
- </span>
116
- )}
117
- <ButtonSet className={isTablet ? styles.tablet : styles.desktop}>
118
- <Button
119
- className={styles.button}
120
- kind="secondary"
121
- onClick={closePanel}
122
- >
123
- {t("discard", "Discard")}
124
- </Button>
125
- <Button
126
- onClick={handleAssignBedToPatient}
127
- className={classNames(styles.button, {
128
- [styles.disabled]: !selectedBed,
129
- })}
130
- kind="primary"
131
- type="submit"
132
- >
133
- {t("save", "Save")}
134
- </Button>
135
- </ButtonSet>
136
- </Overlay>
137
- </>
138
- );
139
- };
140
-
141
- export default AllocateBedWorkSpace;
@@ -1,117 +0,0 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
4
-
5
- .container {
6
- // margin: spacing.$spacing-05 0rem;
7
- background-color: $ui-background;
8
- max-height: 100%;
9
-
10
-
11
- & section {
12
- margin: spacing.$spacing-09 0 0;
13
- // overflow-y: auto;
14
-
15
- }
16
-
17
- :global(.cds--text-input) {
18
- &:focus,
19
- &:hover {
20
- outline: 2px solid var(--cds-focus,#ff832b);
21
- }
22
- }
23
- }
24
-
25
- .admitPatientInfo {
26
- padding: 2rem;
27
- background-color: #fff;
28
- }
29
-
30
- .heading {
31
- @include type.type-style('heading-03');
32
- margin: spacing.$spacing-05;
33
- }
34
-
35
- .sectionTitle {
36
- @include type.type-style('heading-compact-02');
37
- color: $text-02;
38
- margin-bottom: spacing.$spacing-05;
39
- }
40
-
41
- .dateTimeSection {
42
- display: flex;
43
- }
44
-
45
- .radioButton {
46
- margin: spacing.$spacing-05 0;
47
- }
48
-
49
- .headerGridRow {
50
- border-bottom: 0.0625rem solid $grey-2;
51
- margin: 0;
52
- }
53
-
54
- .dataGridRow {
55
- display: grid;
56
- grid-template-columns: 50% 10% 1fr;
57
- margin: spacing.$spacing-03 spacing.$spacing-05;
58
- width: 100%;
59
- }
60
-
61
- .form {
62
- background-color: $ui-background;
63
- display: flex;
64
- flex-direction: column;
65
- justify-content: space-between;
66
- }
67
-
68
- .button {
69
- height: 4rem;
70
- display: flex;
71
- align-content: flex-start;
72
- align-items: baseline;
73
- min-width: 50%;
74
- }
75
-
76
- .tablet {
77
- padding: spacing.$spacing-06 spacing.$spacing-05;
78
- background-color: $ui-02;
79
- }
80
-
81
- .desktop {
82
- padding: 0rem;
83
- }
84
-
85
- @media screen and (max-width: 600px) {
86
- .dateTimeSection {
87
- flex-direction: column;
88
- }
89
- }
90
-
91
- .backButton {
92
- align-items: center;
93
- display: flex;
94
- justify-content: flex-start;
95
- margin: spacing.$spacing-03 0;
96
- padding: 0;
97
- @include type.type-style('body-compact-01');
98
-
99
- button {
100
- display: flex;
101
-
102
- svg {
103
- order: 1;
104
- margin-right: spacing.$spacing-03;
105
- margin-left: 0rem !important;
106
- }
107
-
108
- span {
109
- order: 2;
110
- }
111
- }
112
- }
113
-
114
- .disabled {
115
- opacity: 0.8;
116
- pointer-events: none;
117
- }
@@ -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