@pih/esm-commons-app 2.1.1-pre.65 → 2.1.1-pre.79

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 (58) hide show
  1. package/.turbo/turbo-build.log +18 -20
  2. package/dist/157.js +1 -1
  3. package/dist/157.js.LICENSE.txt +20 -0
  4. package/dist/157.js.map +1 -1
  5. package/dist/300.js +1 -1
  6. package/dist/400.js +1 -1
  7. package/dist/400.js.map +1 -1
  8. package/dist/421.js +1 -0
  9. package/dist/421.js.map +1 -0
  10. package/dist/481.js +1 -1
  11. package/dist/481.js.map +1 -1
  12. package/dist/659.js +1 -1
  13. package/dist/659.js.map +1 -1
  14. package/dist/685.js +1 -1
  15. package/dist/685.js.map +1 -1
  16. package/dist/704.js +1 -0
  17. package/dist/704.js.map +1 -0
  18. package/dist/737.js +2 -0
  19. package/dist/{879.js.LICENSE.txt → 737.js.LICENSE.txt} +1 -1
  20. package/dist/737.js.map +1 -0
  21. package/dist/773.js +1 -1
  22. package/dist/773.js.map +1 -1
  23. package/dist/main.js +1 -1
  24. package/dist/main.js.map +1 -1
  25. package/dist/pih-esm-commons-app.js +1 -1
  26. package/dist/pih-esm-commons-app.js.buildmanifest.json +64 -190
  27. package/dist/pih-esm-commons-app.js.map +1 -1
  28. package/dist/routes.json +1 -1
  29. package/package.json +1 -1
  30. package/src/index.ts +2 -6
  31. package/src/routes.json +24 -27
  32. package/src/service-queues-app/maternal-triage-form.workspace.tsx +12 -6
  33. package/src/service-queues-app/maternal-triage-queue-actions.extension.tsx +3 -3
  34. package/src/ward-app/o2-visit-summary-action-button.component.tsx +17 -0
  35. package/src/ward-app/o2-visit-summary-workspace.component.tsx +5 -6
  36. package/src/ward-app/o2-vital-signs-action-button.component.tsx +17 -0
  37. package/src/ward-app/o2-vital-signs-workspace.component.tsx +5 -6
  38. package/src/ward-app/types.ts +2 -4
  39. package/translations/en.json +1 -2
  40. package/dist/144.js +0 -2
  41. package/dist/144.js.LICENSE.txt +0 -19
  42. package/dist/144.js.map +0 -1
  43. package/dist/246.js +0 -1
  44. package/dist/246.js.map +0 -1
  45. package/dist/657.js +0 -1
  46. package/dist/657.js.map +0 -1
  47. package/dist/680.js +0 -1
  48. package/dist/680.js.map +0 -1
  49. package/dist/690.js +0 -2
  50. package/dist/690.js.LICENSE.txt +0 -21
  51. package/dist/690.js.map +0 -1
  52. package/dist/807.js +0 -1
  53. package/dist/807.js.map +0 -1
  54. package/dist/879.js +0 -2
  55. package/dist/879.js.map +0 -1
  56. package/src/root.component.tsx +0 -59
  57. package/src/ward-app/o2-visit-summary-action-button.extension.tsx +0 -18
  58. package/src/ward-app/o2-vital-signs-action-button.extension.tsx +0 -18
@@ -1,59 +0,0 @@
1
- import { ExtensionSlot, WorkspaceContainer } from '@openmrs/esm-framework';
2
- import React from 'react';
3
- import { BrowserRouter, Routes, Route, useParams } from 'react-router-dom';
4
-
5
- export default function Root() {
6
- return (
7
- <div>
8
- <BrowserRouter basename={window.spaBase}>
9
- <Routes>
10
- <Route path="/appointments" element={<Appointments />} />
11
- <Route path="/dispensing2" element={<Dispensing />} />
12
- <Route path="/service-queues/queue-table-by-status/:queueUuid" element={<QueueTableByStatus />} />
13
- <Route path="/ward" element={<Ward />} />
14
- </Routes>
15
- </BrowserRouter>
16
- </div>
17
- );
18
- }
19
-
20
- function Appointments() {
21
- return (
22
- <>
23
- <WorkspaceContainer overlay contextKey="appointments" />
24
- <ExtensionSlot name={'appointments-dashboard-slot'} />
25
- </>
26
- );
27
- }
28
-
29
- /**
30
- * This is mounted at /dispensing2 instead of /dispensing. It's basically the same thing
31
- * but without the collapsed left nav.
32
- */
33
- function Dispensing() {
34
- return (
35
- <>
36
- <WorkspaceContainer overlay contextKey="dispensing2" />
37
- <ExtensionSlot name={'dispensing-dashboard-slot'} />
38
- </>
39
- );
40
- }
41
-
42
- function QueueTableByStatus() {
43
- const { queueUuid } = useParams();
44
- return (
45
- <>
46
- <WorkspaceContainer overlay contextKey="service-queues" />
47
- <ExtensionSlot name={'queue-table-by-status-view-slot'} state={{ queueUuid }} />
48
- </>
49
- );
50
- }
51
-
52
- function Ward() {
53
- return (
54
- <>
55
- <WorkspaceContainer overlay contextKey="ward" />
56
- <ExtensionSlot name={'ward-view-slot'} />
57
- </>
58
- );
59
- }
@@ -1,18 +0,0 @@
1
- import { ActionMenuButton, CalendarHeatMapIcon, launchWorkspace } from '@openmrs/esm-framework';
2
- import React from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import type { WardPatientWorkspaceProps } from './types';
5
-
6
- export default function WardPatientActionButton() {
7
- const { t } = useTranslation();
8
-
9
- return (
10
- <ActionMenuButton
11
- getIcon={(props) => <CalendarHeatMapIcon {...props} />}
12
- label={t('visitSummary', 'Visit summary')}
13
- iconDescription={t('patientVisitSummary', 'Patient visit summary')}
14
- handler={() => launchWorkspace<WardPatientWorkspaceProps>('o2-visit-summary-workspace')}
15
- type={'o2-visit-summary'}
16
- />
17
- );
18
- }
@@ -1,18 +0,0 @@
1
- import { ActionMenuButton, launchWorkspace, ActivityIcon } from '@openmrs/esm-framework';
2
- import React from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import type { WardPatientWorkspaceProps } from './types';
5
-
6
- export default function WardPatientActionButton() {
7
- const { t } = useTranslation();
8
-
9
- return (
10
- <ActionMenuButton
11
- getIcon={(props) => <ActivityIcon {...props} />}
12
- label={t('vitalSigns', 'Vital signs')}
13
- iconDescription={t('inpatientVitalSigns', 'Inpatient vital signs')}
14
- handler={() => launchWorkspace<WardPatientWorkspaceProps>('o2-vital-signs-workspace')}
15
- type={'o2-vital-signs'}
16
- />
17
- );
18
- }