@openmrs/esm-home-app 4.0.3-pre.198 → 4.0.3-pre.200
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 +1 -1
- package/dist/361.js +1 -1
- package/dist/91.js +1 -1
- package/dist/openmrs-esm-home-app.js.buildmanifest.json +9 -9
- package/package.json +2 -2
- package/src/dashboard/home-dashboard.component.tsx +0 -1
- package/src/dashboard/home-dashboard.scss +14 -1
- package/src/dashboard.meta.ts +1 -1
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/361.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[361],{5795:(e,t,n)=>{n.d(t,{Z:()=>i});var
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[361],{5795:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9601),o=n.n(a),r=n(2609),s=n.n(r)()(o());s.push([e.id,".-esm-home__dashboard-view__dashboardView___nFcbS{background-color:#fff;flex:1}",""]),s.locals={dashboardView:"-esm-home__dashboard-view__dashboardView___nFcbS"};const i=s},9137:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9601),o=n.n(a),r=n(2609),s=n.n(r)()(o());s.push([e.id,".-esm-home__home-dashboard__dashboardContainer___P4IFK{display:flex;flex-direction:column;margin:0;height:100vh;margin-left:16rem;background-color:#fff}.-esm-home__home-dashboard__dashboardContainer___P4IFK li{display:flex}.-esm-home__home-dashboard__dashboardContainer___P4IFK a{width:100%}li::marker{font-size:0px}.-esm-home__home-dashboard__logoSection___mKcOF{display:flex;justify-content:center}",""]),s.locals={dashboardContainer:"-esm-home__home-dashboard__dashboardContainer___P4IFK",logoSection:"-esm-home__home-dashboard__logoSection___mKcOF"};const i=s},2609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(a)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);a&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},9601:e=>{e.exports=function(e){return e[1]}},1354:e=>{var t=[];function n(e){for(var n=-1,a=0;a<t.length;a++)if(t[a].identifier===e){n=a;break}return n}function a(e,a){for(var r={},s=[],i=0;i<e.length;i++){var c=e[i],l=a.base?c[0]+a.base:c[0],d=r[l]||0,u="".concat(l," ").concat(d);r[l]=d+1;var m=n(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==m)t[m].references++,t[m].updater(h);else{var f=o(h,a);a.byIndex=i,t.splice(i,0,{identifier:u,updater:f,references:1})}s.push(u)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var r=a(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var i=n(r[s]);t[i].references--}for(var c=a(e,o),l=0;l<r.length;l++){var d=n(r[l]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=c}}},7378:e=>{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},4154:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5993:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1583:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,o&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},8141:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>F,spaBasePath:()=>k});var a=n(906),o=n(268),r=n.n(o),s=n(8744),i=n(1354),c=n.n(i),l=n(1583),d=n.n(l),u=n(7378),m=n.n(u),h=n(5993),f=n.n(h),p=n(4154),_=n.n(p),v=n(8141),b=n.n(v),y=n(9137),g={};g.styleTagTransform=b(),g.setAttributes=f(),g.insert=m().bind(null,"head"),g.domAPI=d(),g.insertStyleElement=_(),c()(y.Z,g);const E=y.Z&&y.Z.locals?y.Z.locals:void 0;var x=n(5795),w={};w.styleTagTransform=b(),w.setAttributes=f(),w.insert=m().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=_(),c()(x.Z,w);const S=x.Z&&x.Z.locals?x.Z.locals:void 0,C=function(e){var t=e.dashboardSlot,n=e.title;return r().createElement(a.ExtensionSlot,{className:S.dashboardView,extensionSlotName:t,state:{dashboardTitle:n}})};function T(){var e,t=(0,s.useParams)(),n=(0,a.useExtensionStore)(),o=(0,a.useLayoutType)(),i=(null===(e=n.slots["homepage-dashboard-slot"])||void 0===e?void 0:e.assignedExtensions.map((function(e){return e.meta})).filter((function(e){return Object.keys(e).length})))||[],c=i.find((function(e){return e.name===(null==t?void 0:t.view)}))||i[0];return r().createElement(r().Fragment,null,r().createElement("section",{className:(0,a.isDesktop)(o)&&E.dashboardContainer},(0,a.isDesktop)(o)&&r().createElement(a.ExtensionSlot,{extensionSlotName:"home-sidebar-slot",key:o}),r().createElement(C,{title:null==c?void 0:c.name,dashboardSlot:null==c?void 0:c.slot})))}var k="".concat(window.spaBase);const F=function(){return(0,o.useEffect)((function(){return(0,a.setLeftNav)({name:"homepage-dashboard-slot",basePath:k}),function(){return(0,a.unsetLeftNav)("homepage-dashboard-slot")}}),[]),r().createElement(s.BrowserRouter,{basename:window.spaBase},r().createElement("main",{className:"omrs-main-content"},r().createElement(s.Routes,null,r().createElement(s.Route,{path:"home"},r().createElement(s.Route,{index:!0,element:r().createElement(T,null)}),r().createElement(s.Route,{path:":view",element:r().createElement(T,null)})))))}}}]);
|
package/dist/91.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{8091:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>d,importTranslation:()=>f,setupOpenMRS:()=>m,version:()=>p});var i=t(906),o=t(268),a=t.n(o),r=t(9122),l="".concat(window.spaBase,"/home"),s={name:"Home",slot:"home-dashboard-slot",title:""},c={buttons:{enabled:{_type:i.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:i.Type.Array,_elements:{label:{_type:i.Type.String},link:{_type:i.Type.String,_validators:[i.validators.isUrl]},requiredPrivilege:{_type:i.Type.String},spa:{_type:i.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},p="4.0.2",d={"webservices.rest":"^2.24.0"},f=t(3979);function m(){var e,n="@openmrs/esm-home-app",o="home",p={featureName:o,moduleName:n};return(0,i.defineConfigSchema)(n,c),(0,i.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(o),title:"Home"}]),{pages:[{load:(0,i.getAsyncLifecycle)((function(){return t.e(361).then(t.bind(t,4361))}),p),route:o,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(631)]).then(t.bind(t,2631))}),p),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(444)]).then(t.bind(t,2444))}),p),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(572)]).then(t.bind(t,9572))}),p),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(423)]).then(t.bind(t,9423))}),p),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(787)]).then(t.bind(t,8787))}),p),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(193)]).then(t.bind(t,8193))}),p),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(81)]).then(t.bind(t,5081))}),p),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1},{id:"home-sidebar-slot-ext",slot:"home-sidebar-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(184).then(t.bind(t,7184))}),p),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,i.getSyncLifecycle)((e=s,function(){return a().createElement(r.yTF,{key:e.name,renderIcon:e.renderIcon,href:"".concat(l,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,i.navigate)({to:"".concat(l,"/").concat(e.title)})}},e.name)}),p),meta:s,online:!0,offline:!0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(904).then(t.bind(t,8904))}),p),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var i={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function o(e){if(!t.o(i,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],o=n[0];return t.e(n[1]).then((()=>t(o)))}o.keys=()=>Object.keys(i),o.id=3979,e.exports=o}}]);
|
|
1
|
+
(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{8091:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>d,importTranslation:()=>f,setupOpenMRS:()=>m,version:()=>p});var i=t(906),o=t(268),a=t.n(o),r=t(9122),l="".concat(window.spaBase,"/home"),s={name:"Home",slot:"home-dashboard-slot",title:"home"},c={buttons:{enabled:{_type:i.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:i.Type.Array,_elements:{label:{_type:i.Type.String},link:{_type:i.Type.String,_validators:[i.validators.isUrl]},requiredPrivilege:{_type:i.Type.String},spa:{_type:i.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},p="4.0.2",d={"webservices.rest":"^2.24.0"},f=t(3979);function m(){var e,n="@openmrs/esm-home-app",o="home",p={featureName:o,moduleName:n};return(0,i.defineConfigSchema)(n,c),(0,i.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(o),title:"Home"}]),{pages:[{load:(0,i.getAsyncLifecycle)((function(){return t.e(361).then(t.bind(t,4361))}),p),route:o,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(631)]).then(t.bind(t,2631))}),p),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(444)]).then(t.bind(t,2444))}),p),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(572)]).then(t.bind(t,9572))}),p),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(423)]).then(t.bind(t,9423))}),p),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(787)]).then(t.bind(t,8787))}),p),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(193)]).then(t.bind(t,8193))}),p),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(81)]).then(t.bind(t,5081))}),p),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1},{id:"home-sidebar-slot-ext",slot:"home-sidebar-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(184).then(t.bind(t,7184))}),p),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,i.getSyncLifecycle)((e=s,function(){return a().createElement(r.yTF,{key:e.name,renderIcon:e.renderIcon,href:"".concat(l,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,i.navigate)({to:"".concat(l,"/").concat(e.title)})}},e.name)}),p),meta:s,online:!0,offline:!0,order:0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(904).then(t.bind(t,8904))}),p),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var i={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function o(e){if(!t.o(i,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],o=n[0];return t.e(n[1]).then((()=>t(o)))}o.keys=()=>Object.keys(i),o.id=3979,e.exports=o}}]);
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"initial": false,
|
|
28
28
|
"entry": false,
|
|
29
29
|
"recorded": false,
|
|
30
|
-
"size":
|
|
30
|
+
"size": 7439,
|
|
31
31
|
"sizes": {
|
|
32
32
|
"consume-shared": 84,
|
|
33
|
-
"javascript":
|
|
33
|
+
"javascript": 7355
|
|
34
34
|
},
|
|
35
35
|
"names": [],
|
|
36
36
|
"idHints": [],
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"91.js"
|
|
42
42
|
],
|
|
43
43
|
"auxiliaryFiles": [],
|
|
44
|
-
"hash": "
|
|
44
|
+
"hash": "83331fab6622b2da7447",
|
|
45
45
|
"childrenByOrder": {}
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"initial": true,
|
|
99
99
|
"entry": true,
|
|
100
100
|
"recorded": false,
|
|
101
|
-
"size":
|
|
101
|
+
"size": 55154,
|
|
102
102
|
"sizes": {
|
|
103
103
|
"consume-shared": 84,
|
|
104
|
-
"javascript":
|
|
104
|
+
"javascript": 35329,
|
|
105
105
|
"share-init": 168,
|
|
106
106
|
"runtime": 19573
|
|
107
107
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"main.js"
|
|
117
117
|
],
|
|
118
118
|
"auxiliaryFiles": [],
|
|
119
|
-
"hash": "
|
|
119
|
+
"hash": "8b151b1657594519b6f2",
|
|
120
120
|
"childrenByOrder": {}
|
|
121
121
|
},
|
|
122
122
|
{
|
|
@@ -211,9 +211,9 @@
|
|
|
211
211
|
"initial": false,
|
|
212
212
|
"entry": false,
|
|
213
213
|
"recorded": false,
|
|
214
|
-
"size":
|
|
214
|
+
"size": 16400,
|
|
215
215
|
"sizes": {
|
|
216
|
-
"javascript":
|
|
216
|
+
"javascript": 16358,
|
|
217
217
|
"consume-shared": 42
|
|
218
218
|
},
|
|
219
219
|
"names": [],
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"361.js"
|
|
227
227
|
],
|
|
228
228
|
"auxiliaryFiles": [],
|
|
229
|
-
"hash": "
|
|
229
|
+
"hash": "74930380a3916fcadf45",
|
|
230
230
|
"childrenByOrder": {}
|
|
231
231
|
},
|
|
232
232
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-home-app",
|
|
3
|
-
"version": "4.0.3-pre.
|
|
3
|
+
"version": "4.0.3-pre.200",
|
|
4
4
|
"description": "Homepage microfrontend for the OpenMRS SPA",
|
|
5
5
|
"browser": "dist/openmrs-esm-home-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react-i18next": "11.x",
|
|
46
46
|
"react-router-dom": "6.x"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6424492cf95f438cbe608a1f776ec8c2bfc815e6"
|
|
49
49
|
}
|
|
@@ -6,7 +6,6 @@ import { DashboardConfig } from '../types/index';
|
|
|
6
6
|
import DashboardView from './dashboard-view.component';
|
|
7
7
|
|
|
8
8
|
export default function HomeDashboard() {
|
|
9
|
-
const config = useConfig();
|
|
10
9
|
const params = useParams();
|
|
11
10
|
const extensionStore = useExtensionStore();
|
|
12
11
|
const layout = useLayoutType();
|
|
@@ -8,9 +8,22 @@
|
|
|
8
8
|
height: 100vh;
|
|
9
9
|
margin-left: 16rem;
|
|
10
10
|
background-color: colors.$white-0;
|
|
11
|
+
|
|
12
|
+
/*TO BE REMOVED ONCE WE IMPROVE LEFT SIDE NAVIGATION*/
|
|
13
|
+
& li {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& a {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/*TO BE REMOVED ONCE WE IMPROVE LEFT SIDE NAVIGATION*/
|
|
22
|
+
li::marker{
|
|
23
|
+
font-size: 0px;
|
|
11
24
|
}
|
|
12
25
|
|
|
13
26
|
.logoSection {
|
|
14
27
|
display: flex;
|
|
15
28
|
justify-content: center;
|
|
16
|
-
}
|
|
29
|
+
}
|
package/src/dashboard.meta.ts
CHANGED