@openmrs/esm-home-app 4.1.1-pre.218 → 4.2.0
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
CHANGED
package/dist/91.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{91:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>u,importTranslation:()=>m,setupOpenMRS:()=>h,version:()=>p});var o=n(906),a=n(268),i=n.n(a),r=n(744),s=function(e){var t=e.dashboardLinkConfig.name,n=(0,r.useLocation)(),s="".concat(window.spaBase,"/home"),l=(0,a.useMemo)((function(){var e=n.pathname.split("/"),t=e[e.length-1];return decodeURIComponent(t)}),[n.pathname]);return i().createElement(o.ConfigurableLink,{to:s,className:"cds--side-nav__link ".concat("home"===l&&"active-left-nav-link")},t)},l=function(e){return function(){return i().createElement(r.BrowserRouter,null,i().createElement(s,{dashboardLinkConfig:e}))}},c={name:"Home",slot:"home-dashboard-slot",title:""},d={buttons:{enabled:{_type:o.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:o.Type.Array,_elements:{label:{_type:o.Type.String},link:{_type:o.Type.String,_validators:[o.validators.isUrl]},requiredPrivilege:{_type:o.Type.String},spa:{_type:o.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},p="4.
|
|
1
|
+
(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{91:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>u,importTranslation:()=>m,setupOpenMRS:()=>h,version:()=>p});var o=n(906),a=n(268),i=n.n(a),r=n(744),s=function(e){var t=e.dashboardLinkConfig.name,n=(0,r.useLocation)(),s="".concat(window.spaBase,"/home"),l=(0,a.useMemo)((function(){var e=n.pathname.split("/"),t=e[e.length-1];return decodeURIComponent(t)}),[n.pathname]);return i().createElement(o.ConfigurableLink,{to:s,className:"cds--side-nav__link ".concat("home"===l&&"active-left-nav-link")},t)},l=function(e){return function(){return i().createElement(r.BrowserRouter,null,i().createElement(s,{dashboardLinkConfig:e}))}},c={name:"Home",slot:"home-dashboard-slot",title:""},d={buttons:{enabled:{_type:o.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:o.Type.Array,_elements:{label:{_type:o.Type.String},link:{_type:o.Type.String,_validators:[o.validators.isUrl]},requiredPrivilege:{_type:o.Type.String},spa:{_type:o.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},p="4.2.0",u={"webservices.rest":"^2.24.0"},m=n(979);function h(){var e="@openmrs/esm-home-app",t="home",a={featureName:t,moduleName:e};return(0,o.defineConfigSchema)(e,d),(0,o.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(t),title:"Home"}]),{pages:[{load:(0,o.getAsyncLifecycle)((function(){return n.e(361).then(n.bind(n,361))}),a),route:t,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"home-nav-menu",slot:"home-sidebar-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(679).then(n.bind(n,679))}),a),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,o.getSyncLifecycle)(l(c),a),meta:c,online:!0,offline:!0,order:0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(904).then(n.bind(n,904))}),a),online:!0,offline:!0}]}}},979:(e,t,n)=>{var o={"./en.json":[574,574],"./es.json":[319,319],"./fr.json":[757,757],"./he.json":[833,833]};function a(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],a=t[0];return n.e(t[1]).then((()=>n(a)))}a.keys=()=>Object.keys(o),a.id=979,e.exports=a}}]);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"91.js"
|
|
20
20
|
],
|
|
21
21
|
"auxiliaryFiles": [],
|
|
22
|
-
"hash": "
|
|
22
|
+
"hash": "38fe86f51e38dfa4c6f6",
|
|
23
23
|
"childrenByOrder": {}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"main.js"
|
|
71
71
|
],
|
|
72
72
|
"auxiliaryFiles": [],
|
|
73
|
-
"hash": "
|
|
73
|
+
"hash": "e2ede29e53f6ed33f0f5",
|
|
74
74
|
"childrenByOrder": {}
|
|
75
75
|
},
|
|
76
76
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-home-app",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
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": "96706950401d766f5e8395727f849544870f41f8"
|
|
49
49
|
}
|