@openmrs/esm-patient-programs-app 3.2.1-pre.201 → 3.2.1-pre.203
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 +36 -35
- package/dist/145.js +1 -1
- package/dist/186.js +1 -1
- package/dist/336.js +1 -1
- package/dist/435.js +1 -0
- package/dist/478.js +2 -0
- package/dist/478.js.LICENSE.txt +8 -0
- package/dist/574.js +1 -1
- package/dist/60.js +1 -0
- package/dist/692.js +1 -1
- package/dist/707.js +2 -0
- package/dist/{294.js.LICENSE.txt → 707.js.LICENSE.txt} +0 -9
- package/dist/963.js +2 -0
- package/dist/{252.js.LICENSE.txt → 963.js.LICENSE.txt} +0 -0
- package/dist/openmrs-esm-patient-programs-app.js +1 -1
- package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +101 -77
- package/dist/openmrs-esm-patient-programs-app.old +1 -1
- package/package.json +3 -3
- package/src/config-schema.ts +12 -0
- package/src/index.ts +2 -1
- package/src/programs/program-action-button/program-action-button.component.tsx +47 -0
- package/src/programs/programs-detailed-summary.component.tsx +35 -22
- package/src/programs/programs-overview.component.tsx +41 -21
- package/src/programs/programs.resource.tsx +61 -6
- package/src/types/index.ts +10 -0
- package/translations/en.json +3 -0
- package/dist/252.js +0 -2
- package/dist/294.js +0 -2
- package/dist/45.js +0 -1
- package/dist/76.js +0 -1
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-patient-programs-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={3959:(a,b,c)=>{(0,c(6907).s)(1)},6907:(a,b,c)=>{const d=c(3541).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5384:(a,b,c)=>{c(3959)},3541:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},9022:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[76],{3076:(b,c,d)=>{function a(){var a={featureName:"patient-programs",moduleName:"@openmrs/esm-patient-programs-app"};return(0,e.defineConfigSchema)("@openmrs/esm-patient-programs-app",{}),{extensions:[{name:"programs-overview-widget",slot:"patient-chart-summary-dashboard-slot",order:0,load:(0,e.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(252),d.e(902),d.e(739),d.e(692)]).then(d.bind(d,7692))},a),meta:{columnSpan:4}},{name:"programs-details-widget",slot:g.slot,load:(0,e.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(252),d.e(902),d.e(739),d.e(45)]).then(d.bind(d,9045))},a),meta:{columnSpan:1}},{name:"programs-summary-dashboard",slot:"patient-chart-dashboard-slot",order:10,load:(0,e.getSyncLifecycle)((0,f.createDashboardLink)(g),a),meta:g},{name:"programs-form-workspace",load:(0,e.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(701),d.e(186),d.e(902),d.e(739),d.e(145)]).then(d.bind(d,8145))},a),meta:{title:"Record Program enrollment"}}]}}d.r(c),d.d(c,{backendDependencies:()=>i,importTranslation:()=>h,setupOpenMRS:()=>a,assets:()=>["45.js","openmrs-esm-patient-programs-app.js","93.js","145.js","186.js","206.js","252.js","294.js","336.js","337.js","402.js","499.js","574.js","635.js","692.js","701.js","757.js","784.js","858.js","879.js"]});var e=d(3066),f=d(3771),g={slot:"patient-chart-programs-dashboard-slot",columns:1,title:"Programs"},h=d(3979),i={"webservices.rest":"^2.2.0"}},3979:(b,c,d)=>{function a(a){if(!d.o(f,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=f[a],c=b[0];return d.e(b[1]).then(()=>d(c))}var f={"./en.json":[3574,574],"./fr.json":[2757,757]};a.keys=()=>Object.keys(f),a.id=3979,b.exports=a}}]),b=Promise.all([f.e(383),f.e(76)]).then(()=>()=>f(3076))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-patient-programs-app:",k.l=(a,b,c)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==c)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+c){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+c),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];k.o(k.S,d)||(k.S[d]={});var g=k.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-patient-programs-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-patient-programs-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework","3.4.1-pre.156",()=>Promise.all([k.e(858),k.e(902)]).then(()=>()=>k(6858))),a("@openmrs/esm-patient-common-lib","3.2.0",()=>Promise.all([k.e(336),k.e(701),k.e(294),k.e(902),k.e(739),k.e(93),k.e(383)]).then(()=>()=>k(5093))),a("carbon-components","10.40.0",()=>k.e(635).then(()=>()=>k(9635))),a("carbon-icons","7.0.7",()=>k.e(402).then(()=>()=>k(5402))),a("dayjs","1.11.4",()=>k.e(879).then(()=>()=>k(8879))),a("react-i18next","11.18.1",()=>Promise.all([k.e(902),k.e(337)]).then(()=>()=>k(7337))),a("react","16.14.0",()=>k.e(784).then(()=>()=>k(2784))),a("rxjs","6.6.7",()=>k.e(206).then(()=>()=>k(5206)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},z=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],d=f.pop.bind(f);for(j=1;j<b.length;j++){var c=b[j];f.push(1==c?d()|d():2==c?d()&d():c?B(c,e):!d())}return!!d()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={3066:()=>I("default","@openmrs/esm-framework",[1,3],()=>Promise.all([k.e(858),k.e(902)]).then(()=>()=>k(6858))),3771:()=>I("default","@openmrs/esm-patient-common-lib",[1,3],()=>Promise.all([k.e(336),k.e(701),k.e(294),k.e(902),k.e(739),k.e(93)]).then(()=>()=>k(5093))),9902:()=>I("default","react",[1,16],()=>k.e(784).then(()=>()=>k(2784))),4924:()=>I("default","react-i18next",[1,11],()=>k.e(499).then(()=>()=>k(7337))),8479:()=>I("default","carbon-components",[1,10],()=>k.e(635).then(()=>()=>k(9635))),2444:()=>I("default","rxjs",[1,6],()=>k.e(206).then(()=>()=>k(5206))),6081:()=>H("default","@openmrs/esm-framework/src/internal",()=>k.e(858).then(()=>()=>k(6858))),3565:()=>I("default","dayjs",[1,1],()=>k.e(879).then(()=>()=>k(8879)))},L={93:[2444,6081],145:[3565],383:[3066,3771],739:[4924,8479],902:[9902]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={55:0};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(383|739|902)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),k.nc=void 0,k(5384),k(9022)})())}}});
|
|
1
|
+
System.register("@openmrs/esm-patient-programs-app",[],function(a,j){var b=void 0;return{execute:function(){a((()=>{function k(a){var b=y[a];if(void 0!==b)return b.exports;var c=y[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,k),c.loaded=!0,c.exports}var q,w,x,z,A,B,C,D,E,F,G,r,H,I,J,K,L,M={3959:(a,b,c)=>{(0,c(6907).s)(1)},6907:(a,b,c)=>{const d=c(3541).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5384:(a,b,c)=>{c(3959)},3541:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},9022:(c,d,f)=>{var g={app:()=>(b||((self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[435],{2435:(b,c,d)=>{function e(){var b={featureName:"patient-programs",moduleName:"@openmrs/esm-patient-programs-app"};return(0,f.defineConfigSchema)("@openmrs/esm-patient-programs-app",g),{extensions:[{name:"programs-overview-widget",slot:"patient-chart-summary-dashboard-slot",order:0,load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(478),d.e(963),d.e(902),d.e(739),d.e(692)]).then(d.bind(d,7692))},b),meta:{columnSpan:4}},{name:"programs-details-widget",slot:h.slot,load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(963),d.e(902),d.e(739),d.e(60)]).then(d.bind(d,1187))},b),meta:{columnSpan:1}},{name:"programs-summary-dashboard",slot:"patient-chart-dashboard-slot",order:10,load:(0,f.getSyncLifecycle)((0,a.createDashboardLink)(h),b),meta:h},{name:"programs-form-workspace",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(336),d.e(701),d.e(186),d.e(902),d.e(739),d.e(145)]).then(d.bind(d,8145))},b),meta:{title:"Record Program enrollment"}}]}}d.r(c),d.d(c,{backendDependencies:()=>k,importTranslation:()=>j,setupOpenMRS:()=>e,assets:()=>["openmrs-esm-patient-programs-app.js","60.js","93.js","145.js","186.js","206.js","336.js","337.js","402.js","478.js","499.js","574.js","635.js","692.js","701.js","707.js","757.js","784.js","858.js","879.js","963.js"]});var f=d(3066),a=d(3771),g={customUrl:{_type:f.Type.String,_default:""}},h={slot:"patient-chart-programs-dashboard-slot",columns:1,title:"Programs"},j=d(3979),k={"webservices.rest":"^2.2.0"}},3979:(b,c,d)=>{function e(a){if(!d.o(f,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=f[a],c=b[0];return d.e(b[1]).then(()=>d(c))}var f={"./en.json":[3574,574],"./fr.json":[2757,757]};e.keys=()=>Object.keys(f),e.id=3979,b.exports=e}}]),b=Promise.all([f.e(383),f.e(435)]).then(()=>()=>f(2435))),b)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},y={};return k.m=M,k.c=y,k.y=j,k.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return k.d(b,{a:b}),b},k.d=(a,b)=>{for(var c in b)k.o(b,c)&&!k.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},k.f={},k.e=a=>Promise.all(Object.keys(k.f).reduce((b,c)=>(k.f[c](a,b),b),[])),k.u=a=>a+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),k.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),q={},w="@openmrs/esm-patient-programs-app:",k.l=(a,b,c)=>{if(q[a])q[a].push(b);else{var e,g;if(void 0!==c)for(var h,j=document.getElementsByTagName("script"),l=0;l<j.length;l++)if(h=j[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==w+c){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,k.nc&&e.setAttribute("nonce",k.nc),e.setAttribute("data-webpack",w+c),e.src=a),q[a]=[b];var m=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=q[a];if(delete q[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=m.bind(null,e.onerror),e.onload=m.bind(null,e.onload),g&&document.head.appendChild(e)}},k.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},k.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{k.S={};var b={},c={};k.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];k.o(k.S,d)||(k.S[d]={});var g=k.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-patient-programs-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-patient-programs-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework","3.4.1-pre.156",()=>Promise.all([k.e(858),k.e(902)]).then(()=>()=>k(6858))),a("@openmrs/esm-patient-common-lib","3.2.0",()=>Promise.all([k.e(336),k.e(478),k.e(701),k.e(707),k.e(902),k.e(739),k.e(93),k.e(383)]).then(()=>()=>k(5093))),a("carbon-components","10.40.0",()=>k.e(635).then(()=>()=>k(9635))),a("carbon-icons","7.0.7",()=>k.e(402).then(()=>()=>k(5402))),a("dayjs","1.11.4",()=>k.e(879).then(()=>()=>k(8879))),a("react-i18next","11.18.1",()=>Promise.all([k.e(902),k.e(337)]).then(()=>()=>k(7337))),a("react","16.14.0",()=>k.e(784).then(()=>()=>k(2784))),a("rxjs","6.6.7",()=>k.e(206).then(()=>()=>k(5206)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),k.p="",x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},z=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},A=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():A(h))}return b()},B=(b,e)=>{if(0 in b){e=x(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,q=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==q?k>g&&!i:""==q!=i);if("u"==o){if(!m||"u"!=q)return!1;}else if(!m)"s"!=q&&"n"!=q&&(m=!1,k--);else if(q==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=q&&"n"!=q){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<q!=i)return!1;m=!1}}}var f=[],d=f.pop.bind(f);for(j=1;j<b.length;j++){var c=b[j];f.push(1==c?d()|d():2==c?d()&d():c?B(c,e):!d())}return!!d()},C=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!z(a,b))?a:b,0)},D=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+A(d)+")",E=(a,b,c)=>{var d=C(a,c);return G(a[c][d])},F=(a,b,c,d)=>{var e=C(a,c);return B(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(D(a,c,e,d)),G(a[c][e])},G=a=>(a.loaded=1,a.get()),H=(r=b=>function(c,d,e,f){var g=k.I(c);return g&&g.then?g.then(b.bind(b,c,k.S[c],d,e,f)):b(c,k.S[c],d,e,f)})((a,b,c,d)=>b&&k.o(b,c)?E(b,0,c):d()),I=r((a,b,c,d,e)=>b&&k.o(b,c)?F(b,0,c,d):e()),J={},K={3066:()=>I("default","@openmrs/esm-framework",[1,3],()=>Promise.all([k.e(858),k.e(902)]).then(()=>()=>k(6858))),3771:()=>I("default","@openmrs/esm-patient-common-lib",[1,3],()=>Promise.all([k.e(336),k.e(478),k.e(701),k.e(707),k.e(902),k.e(739),k.e(93)]).then(()=>()=>k(5093))),9902:()=>I("default","react",[1,16],()=>k.e(784).then(()=>()=>k(2784))),4924:()=>I("default","react-i18next",[1,11],()=>k.e(499).then(()=>()=>k(7337))),8479:()=>I("default","carbon-components",[1,10],()=>k.e(635).then(()=>()=>k(9635))),2444:()=>I("default","rxjs",[1,6],()=>k.e(206).then(()=>()=>k(5206))),6081:()=>H("default","@openmrs/esm-framework/src/internal",()=>k.e(858).then(()=>()=>k(6858))),3565:()=>I("default","dayjs",[1,1],()=>k.e(879).then(()=>()=>k(8879)))},L={93:[2444,6081],145:[3565],383:[3066,3771],739:[4924,8479],902:[9902]},k.f.consumes=(a,b)=>{k.o(L,a)&&L[a].forEach(a=>{if(k.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,k.m[a]=c=>{delete k.c[a],c.exports=b()}},d=b=>{delete J[a],k.m[a]=()=>{throw delete k.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={55:0};k.f.j=(c,d)=>{var e=k.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(383|739|902)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=k.p+k.u(c),h=new Error;k.l(g,d=>{if(k.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)k.o(a,e)&&(k.m[e]=a[e]);h&&h(k)}for(c&&c(d);i<g.length;i++)f=g[i],k.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),k.nc=void 0,k(5384),k(9022)})())}}});
|
|
@@ -1,36 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"chunks": [
|
|
3
|
-
{
|
|
4
|
-
"rendered": true,
|
|
5
|
-
"initial": false,
|
|
6
|
-
"entry": false,
|
|
7
|
-
"recorded": false,
|
|
8
|
-
"size": 17266,
|
|
9
|
-
"sizes": {
|
|
10
|
-
"javascript": 17266
|
|
11
|
-
},
|
|
12
|
-
"names": [],
|
|
13
|
-
"idHints": [],
|
|
14
|
-
"runtime": [
|
|
15
|
-
"@openmrs/esm-patient-programs-app"
|
|
16
|
-
],
|
|
17
|
-
"files": [
|
|
18
|
-
"45.js"
|
|
19
|
-
],
|
|
20
|
-
"auxiliaryFiles": [],
|
|
21
|
-
"hash": "056ba5aefc55e51ac6b8",
|
|
22
|
-
"childrenByOrder": {}
|
|
23
|
-
},
|
|
24
3
|
{
|
|
25
4
|
"rendered": true,
|
|
26
5
|
"initial": true,
|
|
27
6
|
"entry": true,
|
|
28
7
|
"recorded": false,
|
|
29
|
-
"size":
|
|
8
|
+
"size": 23819,
|
|
30
9
|
"sizes": {
|
|
31
10
|
"javascript": 3409,
|
|
32
11
|
"share-init": 336,
|
|
33
|
-
"runtime":
|
|
12
|
+
"runtime": 20074
|
|
34
13
|
},
|
|
35
14
|
"names": [
|
|
36
15
|
"@openmrs/esm-patient-programs-app"
|
|
@@ -43,7 +22,7 @@
|
|
|
43
22
|
"openmrs-esm-patient-programs-app.js"
|
|
44
23
|
],
|
|
45
24
|
"auxiliaryFiles": [],
|
|
46
|
-
"hash": "
|
|
25
|
+
"hash": "ed32755988755103b68a",
|
|
47
26
|
"childrenByOrder": {}
|
|
48
27
|
},
|
|
49
28
|
{
|
|
@@ -51,9 +30,9 @@
|
|
|
51
30
|
"initial": false,
|
|
52
31
|
"entry": false,
|
|
53
32
|
"recorded": false,
|
|
54
|
-
"size":
|
|
33
|
+
"size": 33870,
|
|
55
34
|
"sizes": {
|
|
56
|
-
"javascript":
|
|
35
|
+
"javascript": 33870
|
|
57
36
|
},
|
|
58
37
|
"names": [],
|
|
59
38
|
"idHints": [],
|
|
@@ -61,10 +40,10 @@
|
|
|
61
40
|
"@openmrs/esm-patient-programs-app"
|
|
62
41
|
],
|
|
63
42
|
"files": [
|
|
64
|
-
"
|
|
43
|
+
"60.js"
|
|
65
44
|
],
|
|
66
45
|
"auxiliaryFiles": [],
|
|
67
|
-
"hash": "
|
|
46
|
+
"hash": "5b2e5fdee3b2a5484281",
|
|
68
47
|
"childrenByOrder": {}
|
|
69
48
|
},
|
|
70
49
|
{
|
|
@@ -95,9 +74,9 @@
|
|
|
95
74
|
"initial": false,
|
|
96
75
|
"entry": false,
|
|
97
76
|
"recorded": false,
|
|
98
|
-
"size":
|
|
77
|
+
"size": 25990,
|
|
99
78
|
"sizes": {
|
|
100
|
-
"javascript":
|
|
79
|
+
"javascript": 25948,
|
|
101
80
|
"consume-shared": 42
|
|
102
81
|
},
|
|
103
82
|
"names": [],
|
|
@@ -109,7 +88,7 @@
|
|
|
109
88
|
"145.js"
|
|
110
89
|
],
|
|
111
90
|
"auxiliaryFiles": [],
|
|
112
|
-
"hash": "
|
|
91
|
+
"hash": "2af11a5e0e19a410e522",
|
|
113
92
|
"childrenByOrder": {}
|
|
114
93
|
},
|
|
115
94
|
{
|
|
@@ -133,7 +112,7 @@
|
|
|
133
112
|
"186.js"
|
|
134
113
|
],
|
|
135
114
|
"auxiliaryFiles": [],
|
|
136
|
-
"hash": "
|
|
115
|
+
"hash": "e02398d84e2640b2ad5a",
|
|
137
116
|
"childrenByOrder": {}
|
|
138
117
|
},
|
|
139
118
|
{
|
|
@@ -166,9 +145,9 @@
|
|
|
166
145
|
"entry": false,
|
|
167
146
|
"recorded": false,
|
|
168
147
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
169
|
-
"size":
|
|
148
|
+
"size": 672749,
|
|
170
149
|
"sizes": {
|
|
171
|
-
"javascript":
|
|
150
|
+
"javascript": 672749
|
|
172
151
|
},
|
|
173
152
|
"names": [],
|
|
174
153
|
"idHints": [
|
|
@@ -178,10 +157,10 @@
|
|
|
178
157
|
"@openmrs/esm-patient-programs-app"
|
|
179
158
|
],
|
|
180
159
|
"files": [
|
|
181
|
-
"
|
|
160
|
+
"336.js"
|
|
182
161
|
],
|
|
183
162
|
"auxiliaryFiles": [],
|
|
184
|
-
"hash": "
|
|
163
|
+
"hash": "9c2baa4f89150315966c",
|
|
185
164
|
"childrenByOrder": {}
|
|
186
165
|
},
|
|
187
166
|
{
|
|
@@ -189,47 +168,40 @@
|
|
|
189
168
|
"initial": false,
|
|
190
169
|
"entry": false,
|
|
191
170
|
"recorded": false,
|
|
192
|
-
"
|
|
193
|
-
"size": 906574,
|
|
171
|
+
"size": 39074,
|
|
194
172
|
"sizes": {
|
|
195
|
-
"javascript":
|
|
173
|
+
"javascript": 39074
|
|
196
174
|
},
|
|
197
175
|
"names": [],
|
|
198
|
-
"idHints": [
|
|
199
|
-
"vendors"
|
|
200
|
-
],
|
|
176
|
+
"idHints": [],
|
|
201
177
|
"runtime": [
|
|
202
178
|
"@openmrs/esm-patient-programs-app"
|
|
203
179
|
],
|
|
204
180
|
"files": [
|
|
205
|
-
"
|
|
181
|
+
"337.js"
|
|
206
182
|
],
|
|
207
183
|
"auxiliaryFiles": [],
|
|
208
|
-
"hash": "
|
|
184
|
+
"hash": "e17f9b3e6bd4a26a9f22",
|
|
209
185
|
"childrenByOrder": {}
|
|
210
186
|
},
|
|
211
187
|
{
|
|
212
|
-
"rendered":
|
|
188
|
+
"rendered": false,
|
|
213
189
|
"initial": false,
|
|
214
190
|
"entry": false,
|
|
215
191
|
"recorded": false,
|
|
216
|
-
"reason": "split chunk (cache group:
|
|
217
|
-
"size":
|
|
192
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
193
|
+
"size": 84,
|
|
218
194
|
"sizes": {
|
|
219
|
-
"
|
|
195
|
+
"consume-shared": 84
|
|
220
196
|
},
|
|
221
197
|
"names": [],
|
|
222
|
-
"idHints": [
|
|
223
|
-
"vendors"
|
|
224
|
-
],
|
|
198
|
+
"idHints": [],
|
|
225
199
|
"runtime": [
|
|
226
200
|
"@openmrs/esm-patient-programs-app"
|
|
227
201
|
],
|
|
228
|
-
"files": [
|
|
229
|
-
"336.js"
|
|
230
|
-
],
|
|
202
|
+
"files": [],
|
|
231
203
|
"auxiliaryFiles": [],
|
|
232
|
-
"hash": "
|
|
204
|
+
"hash": "88761fd7de935404e8c8",
|
|
233
205
|
"childrenByOrder": {}
|
|
234
206
|
},
|
|
235
207
|
{
|
|
@@ -237,40 +209,44 @@
|
|
|
237
209
|
"initial": false,
|
|
238
210
|
"entry": false,
|
|
239
211
|
"recorded": false,
|
|
240
|
-
"
|
|
212
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
213
|
+
"size": 109242,
|
|
241
214
|
"sizes": {
|
|
242
|
-
"javascript":
|
|
215
|
+
"javascript": 109242
|
|
243
216
|
},
|
|
244
217
|
"names": [],
|
|
245
|
-
"idHints": [
|
|
218
|
+
"idHints": [
|
|
219
|
+
"vendors"
|
|
220
|
+
],
|
|
246
221
|
"runtime": [
|
|
247
222
|
"@openmrs/esm-patient-programs-app"
|
|
248
223
|
],
|
|
249
224
|
"files": [
|
|
250
|
-
"
|
|
225
|
+
"402.js"
|
|
251
226
|
],
|
|
252
227
|
"auxiliaryFiles": [],
|
|
253
|
-
"hash": "
|
|
228
|
+
"hash": "585aacbe8876cdcfea1f",
|
|
254
229
|
"childrenByOrder": {}
|
|
255
230
|
},
|
|
256
231
|
{
|
|
257
|
-
"rendered":
|
|
232
|
+
"rendered": true,
|
|
258
233
|
"initial": false,
|
|
259
234
|
"entry": false,
|
|
260
235
|
"recorded": false,
|
|
261
|
-
"
|
|
262
|
-
"size": 84,
|
|
236
|
+
"size": 2578,
|
|
263
237
|
"sizes": {
|
|
264
|
-
"
|
|
238
|
+
"javascript": 2578
|
|
265
239
|
},
|
|
266
240
|
"names": [],
|
|
267
241
|
"idHints": [],
|
|
268
242
|
"runtime": [
|
|
269
243
|
"@openmrs/esm-patient-programs-app"
|
|
270
244
|
],
|
|
271
|
-
"files": [
|
|
245
|
+
"files": [
|
|
246
|
+
"435.js"
|
|
247
|
+
],
|
|
272
248
|
"auxiliaryFiles": [],
|
|
273
|
-
"hash": "
|
|
249
|
+
"hash": "e3ffbda63ca7e4abf176",
|
|
274
250
|
"childrenByOrder": {}
|
|
275
251
|
},
|
|
276
252
|
{
|
|
@@ -278,10 +254,10 @@
|
|
|
278
254
|
"initial": false,
|
|
279
255
|
"entry": false,
|
|
280
256
|
"recorded": false,
|
|
281
|
-
"reason": "
|
|
282
|
-
"size":
|
|
257
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
258
|
+
"size": 548211,
|
|
283
259
|
"sizes": {
|
|
284
|
-
"javascript":
|
|
260
|
+
"javascript": 548211
|
|
285
261
|
},
|
|
286
262
|
"names": [],
|
|
287
263
|
"idHints": [
|
|
@@ -291,10 +267,10 @@
|
|
|
291
267
|
"@openmrs/esm-patient-programs-app"
|
|
292
268
|
],
|
|
293
269
|
"files": [
|
|
294
|
-
"
|
|
270
|
+
"478.js"
|
|
295
271
|
],
|
|
296
272
|
"auxiliaryFiles": [],
|
|
297
|
-
"hash": "
|
|
273
|
+
"hash": "d30d159e7373c2e5fbd7",
|
|
298
274
|
"childrenByOrder": {}
|
|
299
275
|
},
|
|
300
276
|
{
|
|
@@ -323,9 +299,9 @@
|
|
|
323
299
|
"initial": false,
|
|
324
300
|
"entry": false,
|
|
325
301
|
"recorded": false,
|
|
326
|
-
"size":
|
|
302
|
+
"size": 1065,
|
|
327
303
|
"sizes": {
|
|
328
|
-
"javascript":
|
|
304
|
+
"javascript": 1065
|
|
329
305
|
},
|
|
330
306
|
"names": [],
|
|
331
307
|
"idHints": [],
|
|
@@ -336,7 +312,7 @@
|
|
|
336
312
|
"574.js"
|
|
337
313
|
],
|
|
338
314
|
"auxiliaryFiles": [],
|
|
339
|
-
"hash": "
|
|
315
|
+
"hash": "00f80bc1fc89c90b7957",
|
|
340
316
|
"childrenByOrder": {}
|
|
341
317
|
},
|
|
342
318
|
{
|
|
@@ -368,9 +344,9 @@
|
|
|
368
344
|
"initial": false,
|
|
369
345
|
"entry": false,
|
|
370
346
|
"recorded": false,
|
|
371
|
-
"size":
|
|
347
|
+
"size": 22266,
|
|
372
348
|
"sizes": {
|
|
373
|
-
"javascript":
|
|
349
|
+
"javascript": 22266
|
|
374
350
|
},
|
|
375
351
|
"names": [],
|
|
376
352
|
"idHints": [],
|
|
@@ -381,7 +357,7 @@
|
|
|
381
357
|
"692.js"
|
|
382
358
|
],
|
|
383
359
|
"auxiliaryFiles": [],
|
|
384
|
-
"hash": "
|
|
360
|
+
"hash": "1c18f05b94e3045e00b3",
|
|
385
361
|
"childrenByOrder": {}
|
|
386
362
|
},
|
|
387
363
|
{
|
|
@@ -408,6 +384,30 @@
|
|
|
408
384
|
"hash": "de5e42d58be1ec509d17",
|
|
409
385
|
"childrenByOrder": {}
|
|
410
386
|
},
|
|
387
|
+
{
|
|
388
|
+
"rendered": true,
|
|
389
|
+
"initial": false,
|
|
390
|
+
"entry": false,
|
|
391
|
+
"recorded": false,
|
|
392
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
393
|
+
"size": 358363,
|
|
394
|
+
"sizes": {
|
|
395
|
+
"javascript": 358363
|
|
396
|
+
},
|
|
397
|
+
"names": [],
|
|
398
|
+
"idHints": [
|
|
399
|
+
"vendors"
|
|
400
|
+
],
|
|
401
|
+
"runtime": [
|
|
402
|
+
"@openmrs/esm-patient-programs-app"
|
|
403
|
+
],
|
|
404
|
+
"files": [
|
|
405
|
+
"707.js"
|
|
406
|
+
],
|
|
407
|
+
"auxiliaryFiles": [],
|
|
408
|
+
"hash": "e1d5df376ecfddf9ebef",
|
|
409
|
+
"childrenByOrder": {}
|
|
410
|
+
},
|
|
411
411
|
{
|
|
412
412
|
"rendered": false,
|
|
413
413
|
"initial": false,
|
|
@@ -534,6 +534,30 @@
|
|
|
534
534
|
"auxiliaryFiles": [],
|
|
535
535
|
"hash": "68fdc1aacae75940af56",
|
|
536
536
|
"childrenByOrder": {}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"rendered": true,
|
|
540
|
+
"initial": false,
|
|
541
|
+
"entry": false,
|
|
542
|
+
"recorded": false,
|
|
543
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
544
|
+
"size": 2007869,
|
|
545
|
+
"sizes": {
|
|
546
|
+
"javascript": 2007869
|
|
547
|
+
},
|
|
548
|
+
"names": [],
|
|
549
|
+
"idHints": [
|
|
550
|
+
"vendors"
|
|
551
|
+
],
|
|
552
|
+
"runtime": [
|
|
553
|
+
"@openmrs/esm-patient-programs-app"
|
|
554
|
+
],
|
|
555
|
+
"files": [
|
|
556
|
+
"963.js"
|
|
557
|
+
],
|
|
558
|
+
"auxiliaryFiles": [],
|
|
559
|
+
"hash": "af4e85b834c313787703",
|
|
560
|
+
"childrenByOrder": {}
|
|
537
561
|
}
|
|
538
562
|
]
|
|
539
563
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-patient-programs-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,d,c,h,m,v,g,y={3959:(e,r,t)=>{(0,t(6907).s)(1)},6907:(e,r,t)=>{const n=t(3541).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5384:(e,r,t)=>{t(3959)},3541:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},9022:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(383),t.e(
|
|
1
|
+
System.register("@openmrs/esm-patient-programs-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,d,c,h,m,v,g,y={3959:(e,r,t)=>{(0,t(6907).s)(1)},6907:(e,r,t)=>{const n=t(3541).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5384:(e,r,t)=>{t(3959)},3541:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},9022:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(383),t.e(435)]).then((()=>()=>t(2435)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-patient-programs-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-patient-programs-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.156",(()=>Promise.all([w.e(858),w.e(902)]).then((()=>()=>w(6858))))),s("@openmrs/esm-patient-common-lib","3.2.0",(()=>Promise.all([w.e(336),w.e(478),w.e(701),w.e(707),w.e(902),w.e(739),w.e(93),w.e(383)]).then((()=>()=>w(5093))))),s("carbon-components","10.40.0",(()=>w.e(635).then((()=>()=>w(9635))))),s("carbon-icons","7.0.7",(()=>w.e(402).then((()=>()=>w(5402))))),s("dayjs","1.11.4",(()=>w.e(879).then((()=>()=>w(8879))))),s("react-i18next","11.18.1",(()=>Promise.all([w.e(902),w.e(337)]).then((()=>()=>w(7337))))),s("react","16.14.0",(()=>w.e(784).then((()=>()=>w(2784))))),s("rxjs","6.6.7",(()=>w.e(206).then((()=>()=>w(5206)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var h=e[a];d.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),c=(d=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=d(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),m={},v={3066:()=>h("default","@openmrs/esm-framework",[1,3],(()=>Promise.all([w.e(858),w.e(902)]).then((()=>()=>w(6858))))),3771:()=>h("default","@openmrs/esm-patient-common-lib",[1,3],(()=>Promise.all([w.e(336),w.e(478),w.e(701),w.e(707),w.e(902),w.e(739),w.e(93)]).then((()=>()=>w(5093))))),9902:()=>h("default","react",[1,16],(()=>w.e(784).then((()=>()=>w(2784))))),4924:()=>h("default","react-i18next",[1,11],(()=>w.e(499).then((()=>()=>w(7337))))),8479:()=>h("default","carbon-components",[1,10],(()=>w.e(635).then((()=>()=>w(9635))))),2444:()=>h("default","rxjs",[1,6],(()=>w.e(206).then((()=>()=>w(5206))))),6081:()=>c("default","@openmrs/esm-framework/src/internal",(()=>w.e(858).then((()=>()=>w(6858))))),3565:()=>h("default","dayjs",[1,1],(()=>w.e(879).then((()=>()=>w(8879)))))},g={93:[2444,6081],145:[3565],383:[3066,3771],739:[4924,8479],902:[9902]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={55:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(383|739|902)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w.nc=void 0,w(5384),w(9022)})())}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-programs-app",
|
|
3
|
-
"version": "3.2.1-pre.
|
|
3
|
+
"version": "3.2.1-pre.203",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient programs microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-programs-app.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@carbon/charts-react": "^0.49.4",
|
|
38
38
|
"@carbon/icons-react": "^10.18.0",
|
|
39
|
-
"@openmrs/esm-patient-common-lib": "^3.2.1-pre.
|
|
39
|
+
"@openmrs/esm-patient-common-lib": "^3.2.1-pre.203",
|
|
40
40
|
"carbon-components-react": "^7.25.0",
|
|
41
41
|
"d3": "^7.0.3",
|
|
42
42
|
"lodash-es": "^4.17.15"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react-router-dom": "5.x",
|
|
53
53
|
"rxjs": "6.x"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c60cce61d2eaa71dbe322a0724039e1c11374cd1"
|
|
56
56
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework';
|
|
2
2
|
import { createDashboardLink } from '@openmrs/esm-patient-common-lib';
|
|
3
|
+
import { configSchema } from './config-schema';
|
|
3
4
|
import { dashboardMeta } from './dashboard.meta';
|
|
4
5
|
|
|
5
6
|
const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
|
|
@@ -16,7 +17,7 @@ function setupOpenMRS() {
|
|
|
16
17
|
moduleName,
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
defineConfigSchema(moduleName,
|
|
20
|
+
defineConfigSchema(moduleName, configSchema);
|
|
20
21
|
|
|
21
22
|
return {
|
|
22
23
|
extensions: [
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from 'carbon-components-react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import TaskAdd20 from '@carbon/icons-react/es/task--add/20';
|
|
5
|
+
import { formEntrySub, launchPatientWorkspace } from '@openmrs/esm-patient-common-lib';
|
|
6
|
+
import { ConfigurableProgram } from '../../types';
|
|
7
|
+
|
|
8
|
+
interface ProgramActionButton {
|
|
9
|
+
enrollment: ConfigurableProgram;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const ProgramActionButton: React.FC<ProgramActionButton> = ({ enrollment }) => {
|
|
13
|
+
const { t } = useTranslation();
|
|
14
|
+
const formUuid =
|
|
15
|
+
enrollment.enrollmentStatus === 'eligible' ? enrollment.enrollmentFormUuid : enrollment.discontinuationFormUuid;
|
|
16
|
+
const launchEnrollmentForm = (enrollmentStatus: string) => {
|
|
17
|
+
formEntrySub.next({ formUuid, encounterUuid: '' });
|
|
18
|
+
launchPatientWorkspace('patient-form-entry-workspace', {
|
|
19
|
+
workspaceTitle: `${enrollment?.display} ${enrollmentStatus} Form`,
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
if (enrollment.enrollmentStatus === 'eligible') {
|
|
24
|
+
return (
|
|
25
|
+
<Button
|
|
26
|
+
onClick={() => launchEnrollmentForm(t('enrollment', 'Enrollment'))}
|
|
27
|
+
renderIcon={TaskAdd20}
|
|
28
|
+
kind="tertiary"
|
|
29
|
+
size="small"
|
|
30
|
+
>
|
|
31
|
+
{t('enroll', 'Enroll')}
|
|
32
|
+
</Button>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
return (
|
|
36
|
+
<Button
|
|
37
|
+
onClick={() => launchEnrollmentForm(t('discontinue', 'Discontinue'))}
|
|
38
|
+
renderIcon={TaskAdd20}
|
|
39
|
+
kind="danger--ghost"
|
|
40
|
+
size="small"
|
|
41
|
+
>
|
|
42
|
+
{t('discontinue', 'Discontinue')}
|
|
43
|
+
</Button>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default ProgramActionButton;
|
|
@@ -7,7 +7,7 @@ import map from 'lodash-es/map';
|
|
|
7
7
|
import styles from './programs-detailed-summary.scss';
|
|
8
8
|
import { CardHeader, EmptyState, ErrorState, launchPatientWorkspace } from '@openmrs/esm-patient-common-lib';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
10
|
-
import { useAvailablePrograms, useEnrollments } from './programs.resource';
|
|
10
|
+
import { useAvailablePrograms, useEnrollments, usePrograms } from './programs.resource';
|
|
11
11
|
import {
|
|
12
12
|
Button,
|
|
13
13
|
DataTable,
|
|
@@ -24,7 +24,11 @@ import {
|
|
|
24
24
|
DataTableRow,
|
|
25
25
|
InlineNotification,
|
|
26
26
|
} from 'carbon-components-react';
|
|
27
|
-
import { formatDate, formatDatetime } from '@openmrs/esm-framework';
|
|
27
|
+
import { formatDate, formatDatetime, useConfig, usePagination } from '@openmrs/esm-framework';
|
|
28
|
+
import { ConfigObject } from '../config-schema';
|
|
29
|
+
import { ConfigurableProgram } from '../types';
|
|
30
|
+
import capitalize from 'lodash-es/capitalize';
|
|
31
|
+
import ProgramActionButton from './program-action-button/program-action-button.component';
|
|
28
32
|
|
|
29
33
|
interface ProgramsDetailedSummaryProps {
|
|
30
34
|
patientUuid: string;
|
|
@@ -34,13 +38,18 @@ const ProgramsDetailedSummary: React.FC<ProgramsDetailedSummaryProps> = ({ patie
|
|
|
34
38
|
const { t } = useTranslation();
|
|
35
39
|
const displayText = t('programEnrollments', 'Program enrollments');
|
|
36
40
|
const headerTitle = t('carePrograms', 'Care Programs');
|
|
41
|
+
const config = useConfig() as ConfigObject;
|
|
42
|
+
const programsCount = 5;
|
|
43
|
+
const isConfigurable = config.customUrl ? true : false;
|
|
37
44
|
|
|
38
|
-
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
const { enrollments, isLoading, isError, isValidating, availablePrograms, eligiblePrograms, configurablePrograms } =
|
|
46
|
+
usePrograms(patientUuid);
|
|
47
|
+
|
|
48
|
+
const {
|
|
49
|
+
results: paginatedEnrollments,
|
|
50
|
+
goTo,
|
|
51
|
+
currentPage,
|
|
52
|
+
} = usePagination(isConfigurable ? configurablePrograms : enrollments ?? [], programsCount);
|
|
44
53
|
|
|
45
54
|
const tableHeaders: Array<DataTableHeader> = React.useMemo(
|
|
46
55
|
() => [
|
|
@@ -68,20 +77,24 @@ const ProgramsDetailedSummary: React.FC<ProgramsDetailedSummaryProps> = ({ patie
|
|
|
68
77
|
[t],
|
|
69
78
|
);
|
|
70
79
|
|
|
71
|
-
const tableRows
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
const tableRows = React.useMemo(() => {
|
|
81
|
+
return paginatedEnrollments?.map((enrollment: ConfigurableProgram) => ({
|
|
82
|
+
id: enrollment.uuid,
|
|
83
|
+
display: enrollment.display,
|
|
84
|
+
location: enrollment.location?.display,
|
|
85
|
+
dateEnrolled: enrollment.dateEnrolled ? formatDatetime(new Date(enrollment.dateEnrolled)) : '--',
|
|
86
|
+
status: isConfigurable
|
|
87
|
+
? capitalize(enrollment.enrollmentStatus)
|
|
88
|
+
: enrollment.dateCompleted
|
|
89
|
+
? `${t('completedOn', 'Completed On')} ${formatDate(new Date(enrollment.dateCompleted))}`
|
|
90
|
+
: t('active', 'Active'),
|
|
91
|
+
actions: isConfigurable ? (
|
|
92
|
+
<ProgramActionButton enrollment={enrollment} />
|
|
93
|
+
) : (
|
|
94
|
+
<ProgramEditButton programEnrollmentId={enrollment.uuid} />
|
|
95
|
+
),
|
|
96
|
+
}));
|
|
97
|
+
}, [isConfigurable, paginatedEnrollments, t]);
|
|
85
98
|
|
|
86
99
|
const launchProgramsForm = React.useCallback(() => launchPatientWorkspace('programs-form-workspace'), []);
|
|
87
100
|
|