@cc-openmrs/cc-esm-active-prescriptions 1.0.47 → 1.0.48
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/762.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[762],{9762(e,
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[762],{9762(e,c,s){s.r(c),s.d(c,{default:()=>n});var a=s(6072),r=s(9564),t=s(5987);const n=(0,a.forwardRef)(function(e,c){var s=e.className,n=(0,a.useCallback)(function(e){e.stopPropagation(),(0,t.launchWorkspace)("cc-active-prescriptions-workspace")},[]);return a.createElement("span",{ref:c,className:s,onClick:n,style:{display:"flex",cursor:"pointer"}},a.createElement(r.Nt,{size:20}))})}}]);
|
|
@@ -596,9 +596,9 @@
|
|
|
596
596
|
"initial": false,
|
|
597
597
|
"entry": false,
|
|
598
598
|
"recorded": false,
|
|
599
|
-
"size":
|
|
599
|
+
"size": 768,
|
|
600
600
|
"sizes": {
|
|
601
|
-
"javascript":
|
|
601
|
+
"javascript": 768
|
|
602
602
|
},
|
|
603
603
|
"names": [],
|
|
604
604
|
"idHints": [],
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
"auxiliaryFiles": [
|
|
613
613
|
"762.js.map"
|
|
614
614
|
],
|
|
615
|
-
"hash": "
|
|
615
|
+
"hash": "0a50cba89b177c6b",
|
|
616
616
|
"childrenByOrder": {}
|
|
617
617
|
},
|
|
618
618
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"pages":[{"component":"root","route":"root"}],"workspaces2":[{"name":"cc-active-prescriptions-workspace","component":"root","window":"cc-active-prescriptions-window"}],"workspaceWindows2":[{"name":"cc-active-prescriptions-window","group":"patient-chart","icon":"prescriptionsSiderailIcon","order":50}],"version":"1.0.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"pages":[{"component":"root","route":"root"}],"workspaces2":[{"name":"cc-active-prescriptions-workspace","component":"root","window":"cc-active-prescriptions-window"}],"workspaceWindows2":[{"name":"cc-active-prescriptions-window","group":"patient-chart","icon":"prescriptionsSiderailIcon","order":50}],"version":"1.0.48"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { forwardRef, useCallback } from 'react';
|
|
2
2
|
import { Pills } from '@carbon/icons-react';
|
|
3
3
|
import { launchWorkspace } from '@openmrs/esm-framework';
|
|
4
4
|
|
|
5
5
|
const PrescriptionsSiderailIcon = forwardRef<any, any>((props, ref) => {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
);
|
|
6
|
+
const { className } = props;
|
|
7
|
+
|
|
8
|
+
const handleClick = useCallback((e) => {
|
|
9
|
+
e.stopPropagation();
|
|
10
|
+
launchWorkspace('cc-active-prescriptions-workspace');
|
|
11
|
+
}, []);
|
|
13
12
|
|
|
14
13
|
return (
|
|
15
|
-
<
|
|
14
|
+
<span
|
|
16
15
|
ref={ref}
|
|
17
|
-
{
|
|
18
|
-
size={20}
|
|
16
|
+
className={className}
|
|
19
17
|
onClick={handleClick}
|
|
20
|
-
style={{ cursor: 'pointer' }}
|
|
21
|
-
|
|
18
|
+
style={{ display: 'flex', cursor: 'pointer' }}
|
|
19
|
+
>
|
|
20
|
+
<Pills size={20} />
|
|
21
|
+
</span>
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
|