@kenyaemr/esm-care-panel-app 5.4.1-pre.2039 → 5.4.1-pre.2049
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 +83 -35
- package/dist/144.js +1 -1
- package/dist/144.js.map +1 -1
- package/dist/216.js +2 -0
- package/dist/{165.js.LICENSE.txt → 216.js.LICENSE.txt} +2 -2
- package/dist/216.js.map +1 -0
- package/dist/225.js +1 -1
- package/dist/225.js.map +1 -1
- package/dist/41.js +1 -1
- package/dist/41.js.map +1 -1
- package/dist/495.js +1 -1
- package/dist/495.js.map +1 -1
- package/dist/75.js +2 -0
- package/dist/{675.js.LICENSE.txt → 75.js.LICENSE.txt} +29 -0
- package/dist/75.js.map +1 -0
- package/dist/805.js +2 -0
- package/dist/805.js.LICENSE.txt +7 -0
- package/dist/805.js.map +1 -0
- package/dist/831.js +1 -1
- package/dist/831.js.LICENSE.txt +2 -0
- package/dist/831.js.map +1 -1
- package/dist/876.js +1 -2
- package/dist/876.js.map +1 -1
- package/dist/913.js +1 -1
- package/dist/913.js.LICENSE.txt +3 -3
- package/dist/913.js.map +1 -1
- package/dist/916.js +1 -0
- package/dist/916.js.map +1 -0
- package/dist/982.js +2 -0
- package/dist/982.js.map +1 -0
- package/dist/kenyaemr-esm-care-panel-app.js +1 -1
- package/dist/kenyaemr-esm-care-panel-app.js.buildmanifest.json +91 -193
- package/dist/kenyaemr-esm-care-panel-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +3 -13
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/declarations.d.ts +12 -1
- package/src/index.ts +2 -2
- package/src/program-enrollment/program-enrollment.component.tsx +2 -2
- package/dist/102.js +0 -2
- package/dist/102.js.map +0 -1
- package/dist/122.js +0 -2
- package/dist/122.js.LICENSE.txt +0 -27
- package/dist/122.js.map +0 -1
- package/dist/165.js +0 -2
- package/dist/165.js.map +0 -1
- package/dist/196.js +0 -1
- package/dist/196.js.map +0 -1
- package/dist/287.js +0 -1
- package/dist/287.js.map +0 -1
- package/dist/372.js +0 -1
- package/dist/372.js.map +0 -1
- package/dist/675.js +0 -2
- package/dist/675.js.map +0 -1
- package/dist/876.js.LICENSE.txt +0 -9
- package/dist/893.js +0 -2
- package/dist/893.js.LICENSE.txt +0 -20
- package/dist/893.js.map +0 -1
- /package/dist/{102.js.LICENSE.txt → 982.js.LICENSE.txt} +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[],"extensions":[{"name":"care-panel-patient-summary","component":"carePanelPatientSummary","slot":"patient-chart-care-panel-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"care-panel-summary-dashboard-link","component":"carePanelSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":3,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-care-panel-dashboard-slot","layoutMode":"anchored","path":"Care panel"}},{"name":"delete-regimen-confirmation-dialog","component":"deleteRegimenConfirmationDialog"},{"name":"hiv-patient-visit-summary-dashboard-link","component":"hivPatientSummaryDashboardLink","slot":"hiv-care-and-treatment-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-hiv-patient-summary-slot","path":"HIV Patient Summary","layoutMode":"anchored"}},{"name":"hiv-patient-visit-summary","slot":"patient-chart-hiv-patient-summary-slot","component":"hivPatientSummary","order":3,"online":true,"offline":false},{"name":"dispensing-patient-vitals","component":"dispensingPaentientVitals","slot":"dispensing-condition-and-diagnoses","order":1,"online":true,"offline":true}],"workspaces":[{"name":"patient-regimen-workspace","title":"Patient Regimen","component":"regimenFormWorkspace","type":"form","canMaximize":true,"canHide":true,"width":"wider"}],"version":"5.4.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[],"extensions":[{"name":"care-panel-patient-summary","component":"carePanelPatientSummary","slot":"patient-chart-care-panel-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"care-panel-summary-dashboard-link","component":"carePanelSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":3,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-care-panel-dashboard-slot","layoutMode":"anchored","path":"Care panel"}},{"name":"delete-regimen-confirmation-dialog","component":"deleteRegimenConfirmationDialog"},{"name":"hiv-patient-visit-summary-dashboard-link","component":"hivPatientSummaryDashboardLink","slot":"hiv-care-and-treatment-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-hiv-patient-summary-slot","path":"HIV Patient Summary","layoutMode":"anchored"}},{"name":"hiv-patient-visit-summary","slot":"patient-chart-hiv-patient-summary-slot","component":"hivPatientSummary","order":3,"online":true,"offline":false},{"name":"dispensing-patient-vitals","component":"dispensingPaentientVitals","slot":"dispensing-condition-and-diagnoses","order":1,"online":true,"offline":true}],"workspaces":[{"name":"patient-regimen-workspace","title":"Patient Regimen","component":"regimenFormWorkspace","type":"form","canMaximize":true,"canHide":true,"width":"wider"}],"version":"5.4.1-pre.2049"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenyaemr/esm-care-panel-app",
|
|
3
|
-
"version": "5.4.1-pre.
|
|
3
|
+
"version": "5.4.1-pre.2049",
|
|
4
4
|
"description": "Patient care panels microfrontend for the OpenMRS SPA",
|
|
5
5
|
"browser": "dist/kenyaemr-esm-care-panel-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@carbon/react": "1.x",
|
|
45
|
-
"@openmrs/esm-framework": "
|
|
45
|
+
"@openmrs/esm-framework": "6.x",
|
|
46
46
|
"react": "^18.1.0",
|
|
47
47
|
"react-i18next": "11.x",
|
|
48
48
|
"react-router-dom": "6.x",
|
package/src/declarations.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
declare module '*.css';
|
|
2
2
|
declare module '*.scss';
|
|
3
3
|
declare module '@carbon/react';
|
|
4
|
-
declare
|
|
4
|
+
declare module 'react-aria' {
|
|
5
|
+
export const I18nProvider: (...args: any) => JSX.Element;
|
|
6
|
+
export { DateValue } from '@react-types/datepicker';
|
|
7
|
+
export const mergeProps: any;
|
|
8
|
+
export const useLocale: any;
|
|
9
|
+
export const useDateField: any;
|
|
10
|
+
export const useDatePicker: any;
|
|
11
|
+
export const useDateSegment: any;
|
|
12
|
+
export const useFocusRing: any;
|
|
13
|
+
export const useHover: any;
|
|
14
|
+
export const useObjectRef: any;
|
|
15
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -37,11 +37,11 @@ export const patientCareProgram = getSyncLifecycle(careProgramsComponent, {
|
|
|
37
37
|
|
|
38
38
|
// t('carePanel', 'Care panel')
|
|
39
39
|
export const carePanelSummaryDashboardLink = getSyncLifecycle(
|
|
40
|
-
createDashboardLink({ ...dashboardMeta, moduleName }),
|
|
40
|
+
createDashboardLink({ ...dashboardMeta, icon: '', moduleName }),
|
|
41
41
|
options,
|
|
42
42
|
);
|
|
43
43
|
export const hivPatientSummaryDashboardLink = getSyncLifecycle(
|
|
44
|
-
createDashboardLink({ ...hivPatientSummaryDashboardMeta, moduleName }),
|
|
44
|
+
createDashboardLink({ ...hivPatientSummaryDashboardMeta, icon: '', moduleName }),
|
|
45
45
|
options,
|
|
46
46
|
);
|
|
47
47
|
export const hivPatientSummary = getSyncLifecycle(PatientSummary, options);
|
|
@@ -19,7 +19,7 @@ import dayjs from 'dayjs';
|
|
|
19
19
|
import { formatDate, restBaseUrl, useVisit } from '@openmrs/esm-framework';
|
|
20
20
|
import orderBy from 'lodash/orderBy';
|
|
21
21
|
import { mutate } from 'swr';
|
|
22
|
-
import {
|
|
22
|
+
import { getPatientUuidFromStore, launchPatientWorkspace } from '@openmrs/esm-patient-common-lib';
|
|
23
23
|
import { useHeiOutcome } from '../hooks/useHeiOutcome';
|
|
24
24
|
|
|
25
25
|
export interface ProgramEnrollmentProps {
|
|
@@ -65,7 +65,7 @@ const programDetailsMap = {
|
|
|
65
65
|
|
|
66
66
|
const ProgramEnrollment: React.FC<ProgramEnrollmentProps> = ({ enrollments = [], programName }) => {
|
|
67
67
|
const { t } = useTranslation();
|
|
68
|
-
const { currentVisit } = useVisit(
|
|
68
|
+
const { currentVisit } = useVisit(getPatientUuidFromStore());
|
|
69
69
|
const { heiOutcome } = useHeiOutcome(currentVisit?.patient?.uuid);
|
|
70
70
|
const orderedEnrollments = orderBy(enrollments, 'dateEnrolled', 'desc');
|
|
71
71
|
const headers = useMemo(
|
package/dist/102.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 102.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_kenyaemr_esm_care_panel_app=globalThis.webpackChunk_kenyaemr_esm_care_panel_app||[]).push([[102],{8282:(e,r,t)=>{"use strict";t.d(r,{a:()=>p,ly:()=>h,xj:()=>f});var n,a,i,o,l=t(380),c=t.n(l),u=t(9247);const f=c().forwardRef((function(e,r){let{children:t,size:a=16,...i}=e;return c().createElement(u.A,{width:a,height:a,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},n||(n=c().createElement("path",{d:"M28,9H25V3H7V9H4a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2H7v6H25V23h3a2,2,0,0,0,2-2V11A2,2,0,0,0,28,9ZM9,5H23V9H9ZM23,27H9V17H23Zm5-6H25V15H7v6H4V11H28Z"})),t)})),p=c().forwardRef((function(e,r){let{children:t,size:n=16,...i}=e;return c().createElement(u.A,{width:n,height:n,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},a||(a=c().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),t)})),h=c().forwardRef((function(e,r){let{children:t,size:n=16,...a}=e;return c().createElement(u.A,{width:n,height:n,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},i||(i=c().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),o||(o=c().createElement("path",{d:"M16,10a6,6,0,1,0,6,6A6,6,0,0,0,16,10Z"})),t)}))},3373:(e,r)=>{var t;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=o(e,i(t)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)n.call(e,t)&&e[t]&&(r=o(r,t));return r}function o(e,r){return r?e?e+" "+r:e+r:e}e.exports?(a.default=a,e.exports=a):void 0===(t=function(){return a}.apply(r,[]))||(e.exports=t)}()}}]);
|
package/dist/102.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"102.js","mappings":";8LAcsGA,EAAwrBC,EAASC,EAASC,8BAwKhzB,MAAMC,EAAuB,gBAAiB,SAAiBC,EAAOC,GACpE,IAAI,SACFC,EAAQ,KACRC,EAAO,MACJC,GACDJ,EACJ,OAAoB,kBAAoB,IAAM,CAC5CK,MAAOF,EACPG,OAAQH,EACRF,IAAKA,EACLM,MAAO,6BACPC,QAAS,YACTC,KAAM,kBACHL,GACFT,IAAYA,EAAuB,kBAAoB,OAAQ,CAChEe,EAAG,oJACAR,EACP,IAwsBMS,EAA2B,gBAAiB,SAAqBC,EAAQX,GAC7E,IAAI,SACFC,EAAQ,KACRC,EAAO,MACJC,GACDQ,EACJ,O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3CpB,EAAWqB,QAAUrB,EACrBmB,EAAOC,QAAUpB,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIH,CArEA","sources":["webpack://@kenyaemr/esm-care-panel-app/../../node_modules/@carbon/icons-react/es/generated/bucket-13.js","webpack://@kenyaemr/esm-care-panel-app/../../node_modules/classnames/index.js"],"names":["_path13","_path67","_path68","_path69","Printer","_ref8","ref","children","size","rest","width","height","xmlns","viewBox","fill","d","RadioButton","_ref36","RadioButtonChecked","_ref37","hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","Object","prototype","includes","key","call","value","newClass","module","exports","default"],"sourceRoot":""}
|