@openmrs/esm-patient-conditions-app 11.3.1-patch.9310 → 11.3.1-patch.9508
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 +14 -17
- package/dist/3278.js +1 -1
- package/dist/3278.js.map +1 -1
- package/dist/3595.js +1 -1
- package/dist/3595.js.map +1 -1
- package/dist/439.js +1 -0
- package/dist/5670.js +1 -1
- package/dist/6589.js +1 -0
- package/dist/7087.js.map +1 -1
- package/dist/8371.js +1 -0
- package/dist/8555.js +2 -0
- package/dist/8555.js.map +1 -0
- package/dist/8803.js +1 -0
- package/dist/8803.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-conditions-app.js +1 -1
- package/dist/openmrs-esm-patient-conditions-app.js.buildmanifest.json +124 -58
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/conditions/conditions-action-menu.component.tsx +2 -2
- package/src/conditions/conditions-detailed-summary.component.tsx +2 -2
- package/src/conditions/conditions-detailed-summary.test.tsx +2 -2
- package/src/conditions/conditions-form.test.tsx +13 -27
- package/src/conditions/conditions-form.workspace.tsx +66 -65
- package/src/conditions/conditions-overview.component.tsx +2 -2
- package/src/conditions/conditions-overview.test.tsx +8 -4
- package/src/conditions/conditions-widget.component.tsx +2 -1
- package/src/routes.json +3 -9
- package/translations/cs.json +45 -0
- package/translations/sq.json +45 -0
- package/translations/zh_TW.json +45 -0
- package/dist/4341.js +0 -1
- package/dist/4341.js.map +0 -1
- package/dist/9540.js +0 -2
- package/dist/9540.js.map +0 -1
- /package/dist/{9540.js.LICENSE.txt → 8555.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_patient_conditions_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,h,m,v,g,b,y,w,_={93801:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(466),t.e(1343),t.e(5434),t.e(600),t.e(3278)]).then((()=>()=>t(23278)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);j.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-conditions-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);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")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(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)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-conditions-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","8.0.1-pre.
|
|
1
|
+
var _openmrs_esm_patient_conditions_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,h,m,v,g,b,y,w,_={93801:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(466),t.e(1343),t.e(5434),t.e(600),t.e(3278)]).then((()=>()=>t(23278)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);j.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-conditions-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);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")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(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)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-conditions-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","8.0.1-pre.3554",(()=>Promise.all([j.e(8555),j.e(466),j.e(5670),j.e(1343),j.e(6372),j.e(5434),j.e(6730),j.e(600)]).then((()=>()=>j(55670))))),s("@openmrs/esm-patient-common-lib","11.3.1-patch.9508",(()=>Promise.all([j.e(8555),j.e(466),j.e(1343),j.e(6372),j.e(5434),j.e(6730),j.e(600),j.e(8803)]).then((()=>()=>j(18803))))),s("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),s("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(1343)]).then((()=>()=>j(16336))))),s("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(1343)]).then((()=>()=>j(52913))))),s("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),s("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),s("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(1343)]).then((()=>()=>j(42372))))),s("swr/immutable","2.2.5",(()=>Promise.all([j.e(1343),j.e(5434),j.e(7495)]).then((()=>()=>j(29876))))),s("swr/infinite","2.2.5",(()=>Promise.all([j.e(1343),j.e(5434),j.e(89)]).then((()=>()=>j(52470)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[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&&n!=i)return n<i;t++}},i=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 a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,l=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(l=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||p<f!=n)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,i--)}}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?s(h,r):!c())}return!!c()},l=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!l(r,t))return m(e,t,a);var i=f(r,t,n);return s(o,i)||h(d(r,t,i,o)),u(r[t][i])})),g={},b={1343:()=>v("default","react",!1,[1,18],(()=>j.e(4041).then((()=>()=>j(14041))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>j.e(9876).then((()=>()=>j(29876))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>j.e(2470).then((()=>()=>j(52470))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(8555),j.e(5670),j.e(6372),j.e(6730)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(8555),j.e(6372),j.e(6730),j.e(8803)]).then((()=>()=>j(18803)))))},y={600:[54440,72339],1343:[1343],3278:[36274],5434:[55434],6372:[46372],6730:[8877,24818,88010,98394]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={6e3:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(6(00|372|730)|1343|5434)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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)j.o(i,n)&&(j.m[n]=i[n]);s&&s(j)}for(r&&r(t);l<a.length;l++)o=a[l],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_conditions_app=globalThis.webpackChunk_openmrs_esm_patient_conditions_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(93801);_openmrs_esm_patient_conditions_app=S})();
|
|
@@ -24,6 +24,28 @@
|
|
|
24
24
|
"hash": "97c8396ddcdf4898",
|
|
25
25
|
"childrenByOrder": {}
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
"rendered": true,
|
|
29
|
+
"initial": false,
|
|
30
|
+
"entry": false,
|
|
31
|
+
"recorded": false,
|
|
32
|
+
"size": 1438,
|
|
33
|
+
"sizes": {
|
|
34
|
+
"javascript": 1438
|
|
35
|
+
},
|
|
36
|
+
"names": [],
|
|
37
|
+
"idHints": [],
|
|
38
|
+
"runtime": [
|
|
39
|
+
"@openmrs/esm-patient-conditions-app",
|
|
40
|
+
"main"
|
|
41
|
+
],
|
|
42
|
+
"files": [
|
|
43
|
+
"439.js"
|
|
44
|
+
],
|
|
45
|
+
"auxiliaryFiles": [],
|
|
46
|
+
"hash": "2c39afa28849629b",
|
|
47
|
+
"childrenByOrder": {}
|
|
48
|
+
},
|
|
27
49
|
{
|
|
28
50
|
"rendered": true,
|
|
29
51
|
"initial": false,
|
|
@@ -69,7 +91,7 @@
|
|
|
69
91
|
],
|
|
70
92
|
"files": [],
|
|
71
93
|
"auxiliaryFiles": [],
|
|
72
|
-
"hash": "
|
|
94
|
+
"hash": "8befa0b3db954ec1",
|
|
73
95
|
"childrenByOrder": {}
|
|
74
96
|
},
|
|
75
97
|
{
|
|
@@ -425,10 +447,10 @@
|
|
|
425
447
|
"initial": false,
|
|
426
448
|
"entry": false,
|
|
427
449
|
"recorded": false,
|
|
428
|
-
"size":
|
|
450
|
+
"size": 123251,
|
|
429
451
|
"sizes": {
|
|
430
452
|
"consume-shared": 42,
|
|
431
|
-
"javascript":
|
|
453
|
+
"javascript": 123209
|
|
432
454
|
},
|
|
433
455
|
"names": [],
|
|
434
456
|
"idHints": [],
|
|
@@ -441,7 +463,7 @@
|
|
|
441
463
|
"auxiliaryFiles": [
|
|
442
464
|
"3278.js.map"
|
|
443
465
|
],
|
|
444
|
-
"hash": "
|
|
466
|
+
"hash": "511961800ea87e10",
|
|
445
467
|
"childrenByOrder": {}
|
|
446
468
|
},
|
|
447
469
|
{
|
|
@@ -495,9 +517,9 @@
|
|
|
495
517
|
"initial": false,
|
|
496
518
|
"entry": false,
|
|
497
519
|
"recorded": false,
|
|
498
|
-
"size":
|
|
520
|
+
"size": 8903,
|
|
499
521
|
"sizes": {
|
|
500
|
-
"javascript":
|
|
522
|
+
"javascript": 8903
|
|
501
523
|
},
|
|
502
524
|
"names": [],
|
|
503
525
|
"idHints": [],
|
|
@@ -511,7 +533,7 @@
|
|
|
511
533
|
"auxiliaryFiles": [
|
|
512
534
|
"3595.js.map"
|
|
513
535
|
],
|
|
514
|
-
"hash": "
|
|
536
|
+
"hash": "94a14bfa24019473",
|
|
515
537
|
"childrenByOrder": {}
|
|
516
538
|
},
|
|
517
539
|
{
|
|
@@ -626,31 +648,6 @@
|
|
|
626
648
|
"hash": "6a20de434385c263",
|
|
627
649
|
"childrenByOrder": {}
|
|
628
650
|
},
|
|
629
|
-
{
|
|
630
|
-
"rendered": true,
|
|
631
|
-
"initial": false,
|
|
632
|
-
"entry": false,
|
|
633
|
-
"recorded": false,
|
|
634
|
-
"reason": "reused as split chunk (cache group: default)",
|
|
635
|
-
"size": 256608,
|
|
636
|
-
"sizes": {
|
|
637
|
-
"javascript": 256608
|
|
638
|
-
},
|
|
639
|
-
"names": [],
|
|
640
|
-
"idHints": [],
|
|
641
|
-
"runtime": [
|
|
642
|
-
"@openmrs/esm-patient-conditions-app",
|
|
643
|
-
"main"
|
|
644
|
-
],
|
|
645
|
-
"files": [
|
|
646
|
-
"4341.js"
|
|
647
|
-
],
|
|
648
|
-
"auxiliaryFiles": [
|
|
649
|
-
"4341.js.map"
|
|
650
|
-
],
|
|
651
|
-
"hash": "6a63e2682fd8d871",
|
|
652
|
-
"childrenByOrder": {}
|
|
653
|
-
},
|
|
654
651
|
{
|
|
655
652
|
"rendered": true,
|
|
656
653
|
"initial": false,
|
|
@@ -850,7 +847,7 @@
|
|
|
850
847
|
"auxiliaryFiles": [
|
|
851
848
|
"5670.js.map"
|
|
852
849
|
],
|
|
853
|
-
"hash": "
|
|
850
|
+
"hash": "8d44178d11063845",
|
|
854
851
|
"childrenByOrder": {}
|
|
855
852
|
},
|
|
856
853
|
{
|
|
@@ -877,7 +874,7 @@
|
|
|
877
874
|
"auxiliaryFiles": [
|
|
878
875
|
"openmrs-esm-patient-conditions-app.js.map"
|
|
879
876
|
],
|
|
880
|
-
"hash": "
|
|
877
|
+
"hash": "263f78bddfa1bf4f",
|
|
881
878
|
"childrenByOrder": {}
|
|
882
879
|
},
|
|
883
880
|
{
|
|
@@ -999,6 +996,28 @@
|
|
|
999
996
|
"hash": "e118f1c0abb9b181",
|
|
1000
997
|
"childrenByOrder": {}
|
|
1001
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"rendered": true,
|
|
1001
|
+
"initial": false,
|
|
1002
|
+
"entry": false,
|
|
1003
|
+
"recorded": false,
|
|
1004
|
+
"size": 1438,
|
|
1005
|
+
"sizes": {
|
|
1006
|
+
"javascript": 1438
|
|
1007
|
+
},
|
|
1008
|
+
"names": [],
|
|
1009
|
+
"idHints": [],
|
|
1010
|
+
"runtime": [
|
|
1011
|
+
"@openmrs/esm-patient-conditions-app",
|
|
1012
|
+
"main"
|
|
1013
|
+
],
|
|
1014
|
+
"files": [
|
|
1015
|
+
"6589.js"
|
|
1016
|
+
],
|
|
1017
|
+
"auxiliaryFiles": [],
|
|
1018
|
+
"hash": "eb0d1ee0b641cb3a",
|
|
1019
|
+
"childrenByOrder": {}
|
|
1020
|
+
},
|
|
1002
1021
|
{
|
|
1003
1022
|
"rendered": true,
|
|
1004
1023
|
"initial": false,
|
|
@@ -1135,7 +1154,7 @@
|
|
|
1135
1154
|
"auxiliaryFiles": [
|
|
1136
1155
|
"7087.js.map"
|
|
1137
1156
|
],
|
|
1138
|
-
"hash": "
|
|
1157
|
+
"hash": "41781ae013f1cdb5",
|
|
1139
1158
|
"childrenByOrder": {}
|
|
1140
1159
|
},
|
|
1141
1160
|
{
|
|
@@ -1272,6 +1291,55 @@
|
|
|
1272
1291
|
"hash": "cd71bbf31ab67125",
|
|
1273
1292
|
"childrenByOrder": {}
|
|
1274
1293
|
},
|
|
1294
|
+
{
|
|
1295
|
+
"rendered": true,
|
|
1296
|
+
"initial": false,
|
|
1297
|
+
"entry": false,
|
|
1298
|
+
"recorded": false,
|
|
1299
|
+
"size": 1438,
|
|
1300
|
+
"sizes": {
|
|
1301
|
+
"javascript": 1438
|
|
1302
|
+
},
|
|
1303
|
+
"names": [],
|
|
1304
|
+
"idHints": [],
|
|
1305
|
+
"runtime": [
|
|
1306
|
+
"@openmrs/esm-patient-conditions-app",
|
|
1307
|
+
"main"
|
|
1308
|
+
],
|
|
1309
|
+
"files": [
|
|
1310
|
+
"8371.js"
|
|
1311
|
+
],
|
|
1312
|
+
"auxiliaryFiles": [],
|
|
1313
|
+
"hash": "5c2cce2ef74b67c6",
|
|
1314
|
+
"childrenByOrder": {}
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"rendered": true,
|
|
1318
|
+
"initial": false,
|
|
1319
|
+
"entry": false,
|
|
1320
|
+
"recorded": false,
|
|
1321
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
1322
|
+
"size": 4336472,
|
|
1323
|
+
"sizes": {
|
|
1324
|
+
"javascript": 4336472
|
|
1325
|
+
},
|
|
1326
|
+
"names": [],
|
|
1327
|
+
"idHints": [
|
|
1328
|
+
"vendors"
|
|
1329
|
+
],
|
|
1330
|
+
"runtime": [
|
|
1331
|
+
"@openmrs/esm-patient-conditions-app",
|
|
1332
|
+
"main"
|
|
1333
|
+
],
|
|
1334
|
+
"files": [
|
|
1335
|
+
"8555.js"
|
|
1336
|
+
],
|
|
1337
|
+
"auxiliaryFiles": [
|
|
1338
|
+
"8555.js.map"
|
|
1339
|
+
],
|
|
1340
|
+
"hash": "aa710875bab40b9c",
|
|
1341
|
+
"childrenByOrder": {}
|
|
1342
|
+
},
|
|
1275
1343
|
{
|
|
1276
1344
|
"rendered": true,
|
|
1277
1345
|
"initial": false,
|
|
@@ -1299,10 +1367,10 @@
|
|
|
1299
1367
|
"initial": true,
|
|
1300
1368
|
"entry": true,
|
|
1301
1369
|
"recorded": false,
|
|
1302
|
-
"size":
|
|
1370
|
+
"size": 2791294,
|
|
1303
1371
|
"sizes": {
|
|
1304
1372
|
"consume-shared": 210,
|
|
1305
|
-
"javascript":
|
|
1373
|
+
"javascript": 2767897,
|
|
1306
1374
|
"share-init": 420,
|
|
1307
1375
|
"runtime": 22767
|
|
1308
1376
|
},
|
|
@@ -1319,7 +1387,7 @@
|
|
|
1319
1387
|
"auxiliaryFiles": [
|
|
1320
1388
|
"main.js.map"
|
|
1321
1389
|
],
|
|
1322
|
-
"hash": "
|
|
1390
|
+
"hash": "fb7a18caa3b15e3a",
|
|
1323
1391
|
"childrenByOrder": {}
|
|
1324
1392
|
},
|
|
1325
1393
|
{
|
|
@@ -1327,9 +1395,10 @@
|
|
|
1327
1395
|
"initial": false,
|
|
1328
1396
|
"entry": false,
|
|
1329
1397
|
"recorded": false,
|
|
1330
|
-
"
|
|
1398
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
1399
|
+
"size": 252024,
|
|
1331
1400
|
"sizes": {
|
|
1332
|
-
"javascript":
|
|
1401
|
+
"javascript": 252024
|
|
1333
1402
|
},
|
|
1334
1403
|
"names": [],
|
|
1335
1404
|
"idHints": [],
|
|
@@ -1338,10 +1407,12 @@
|
|
|
1338
1407
|
"main"
|
|
1339
1408
|
],
|
|
1340
1409
|
"files": [
|
|
1341
|
-
"
|
|
1410
|
+
"8803.js"
|
|
1342
1411
|
],
|
|
1343
|
-
"auxiliaryFiles": [
|
|
1344
|
-
|
|
1412
|
+
"auxiliaryFiles": [
|
|
1413
|
+
"8803.js.map"
|
|
1414
|
+
],
|
|
1415
|
+
"hash": "848e616b1dfdbb76",
|
|
1345
1416
|
"childrenByOrder": {}
|
|
1346
1417
|
},
|
|
1347
1418
|
{
|
|
@@ -1349,9 +1420,9 @@
|
|
|
1349
1420
|
"initial": false,
|
|
1350
1421
|
"entry": false,
|
|
1351
1422
|
"recorded": false,
|
|
1352
|
-
"size":
|
|
1423
|
+
"size": 1517,
|
|
1353
1424
|
"sizes": {
|
|
1354
|
-
"javascript":
|
|
1425
|
+
"javascript": 1517
|
|
1355
1426
|
},
|
|
1356
1427
|
"names": [],
|
|
1357
1428
|
"idHints": [],
|
|
@@ -1360,10 +1431,10 @@
|
|
|
1360
1431
|
"main"
|
|
1361
1432
|
],
|
|
1362
1433
|
"files": [
|
|
1363
|
-
"
|
|
1434
|
+
"9214.js"
|
|
1364
1435
|
],
|
|
1365
1436
|
"auxiliaryFiles": [],
|
|
1366
|
-
"hash": "
|
|
1437
|
+
"hash": "1536c95da7685b3e",
|
|
1367
1438
|
"childrenByOrder": {}
|
|
1368
1439
|
},
|
|
1369
1440
|
{
|
|
@@ -1371,26 +1442,21 @@
|
|
|
1371
1442
|
"initial": false,
|
|
1372
1443
|
"entry": false,
|
|
1373
1444
|
"recorded": false,
|
|
1374
|
-
"
|
|
1375
|
-
"size": 4327993,
|
|
1445
|
+
"size": 1624,
|
|
1376
1446
|
"sizes": {
|
|
1377
|
-
"javascript":
|
|
1447
|
+
"javascript": 1624
|
|
1378
1448
|
},
|
|
1379
1449
|
"names": [],
|
|
1380
|
-
"idHints": [
|
|
1381
|
-
"vendors"
|
|
1382
|
-
],
|
|
1450
|
+
"idHints": [],
|
|
1383
1451
|
"runtime": [
|
|
1384
1452
|
"@openmrs/esm-patient-conditions-app",
|
|
1385
1453
|
"main"
|
|
1386
1454
|
],
|
|
1387
1455
|
"files": [
|
|
1388
|
-
"
|
|
1389
|
-
],
|
|
1390
|
-
"auxiliaryFiles": [
|
|
1391
|
-
"9540.js.map"
|
|
1456
|
+
"9538.js"
|
|
1392
1457
|
],
|
|
1393
|
-
"
|
|
1458
|
+
"auxiliaryFiles": [],
|
|
1459
|
+
"hash": "f80177fb52e7f475",
|
|
1394
1460
|
"childrenByOrder": {}
|
|
1395
1461
|
},
|
|
1396
1462
|
{
|
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":"conditions-overview-widget","slot":"patient-chart-summary-dashboard-slot","component":"conditionsOverview","order":3,"meta":{"fullWidth":false}},{"name":"conditions-details-widget","slot":"patient-chart-conditions-dashboard-slot","component":"conditionsDetailedSummary","meta":{"fullWidth":false}},{"name":"conditions-summary-dashboard","component":"conditionsDashboardLink","slot":"patient-chart-dashboard-slot","order":7,"meta":{"slot":"patient-chart-conditions-dashboard-slot","path":"Conditions"}},{"name":"conditions-widget","component":"conditionsWidget"},{"name":"condition-delete-confirmation-dialog","component":"conditionDeleteConfirmationDialog"}],"
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"conditions-overview-widget","slot":"patient-chart-summary-dashboard-slot","component":"conditionsOverview","order":3,"meta":{"fullWidth":false}},{"name":"conditions-details-widget","slot":"patient-chart-conditions-dashboard-slot","component":"conditionsDetailedSummary","meta":{"fullWidth":false}},{"name":"conditions-summary-dashboard","component":"conditionsDashboardLink","slot":"patient-chart-dashboard-slot","order":7,"meta":{"slot":"patient-chart-conditions-dashboard-slot","path":"Conditions"}},{"name":"conditions-widget","component":"conditionsWidget"},{"name":"condition-delete-confirmation-dialog","component":"conditionDeleteConfirmationDialog"}],"workspaces":[{"name":"conditions-form-workspace","title":"recordCondition","component":"conditionsFormWorkspace"}],"version":"11.3.1-patch.9508"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-conditions-app",
|
|
3
|
-
"version": "11.3.1-patch.
|
|
3
|
+
"version": "11.3.1-patch.9508",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient conditions microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-conditions-app.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"swr": "2.x"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@openmrs/esm-patient-common-lib": "11.3.1-patch.
|
|
55
|
+
"@openmrs/esm-patient-common-lib": "11.3.1-patch.9508",
|
|
56
56
|
"webpack": "^5.99.9"
|
|
57
57
|
},
|
|
58
58
|
"stableVersion": "11.3.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Layer, OverflowMenu, OverflowMenuItem } from '@carbon/react';
|
|
4
|
-
import {
|
|
4
|
+
import { launchWorkspace, showModal, useLayoutType } from '@openmrs/esm-framework';
|
|
5
5
|
import { type Condition } from './conditions.resource';
|
|
6
6
|
import styles from './conditions-action-menu.scss';
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ export const ConditionsActionMenu = ({ condition, patientUuid }: conditionsActio
|
|
|
16
16
|
|
|
17
17
|
const launchEditConditionsForm = useCallback(
|
|
18
18
|
() =>
|
|
19
|
-
|
|
19
|
+
launchWorkspace('conditions-form-workspace', {
|
|
20
20
|
workspaceTitle: t('editCondition', 'Edit a Condition'),
|
|
21
21
|
condition,
|
|
22
22
|
formContext: 'editing',
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TableRow,
|
|
17
17
|
Tile,
|
|
18
18
|
} from '@carbon/react';
|
|
19
|
-
import { AddIcon, formatDate,
|
|
19
|
+
import { AddIcon, formatDate, launchWorkspace, parseDate, useLayoutType } from '@openmrs/esm-framework';
|
|
20
20
|
import { CardHeader, EmptyState, ErrorState } from '@openmrs/esm-patient-common-lib';
|
|
21
21
|
import { ConditionsActionMenu } from './conditions-action-menu.component';
|
|
22
22
|
import { type Condition, type ConditionTableHeader, useConditions, useConditionsSorting } from './conditions.resource';
|
|
@@ -91,7 +91,7 @@ function ConditionsDetailedSummary({ patient }) {
|
|
|
91
91
|
|
|
92
92
|
const launchConditionsForm = useCallback(
|
|
93
93
|
() =>
|
|
94
|
-
|
|
94
|
+
launchWorkspace('conditions-form-workspace', {
|
|
95
95
|
formContext: 'creating',
|
|
96
96
|
}),
|
|
97
97
|
[],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import userEvent from '@testing-library/user-event';
|
|
3
3
|
import { screen } from '@testing-library/react';
|
|
4
|
-
import {
|
|
4
|
+
import { launchWorkspace, openmrsFetch } from '@openmrs/esm-framework';
|
|
5
5
|
import { mockFhirConditionsResponse } from '__mocks__';
|
|
6
6
|
import { mockPatient, renderWithSwr, waitForLoadingToFinish } from 'tools';
|
|
7
7
|
import ConditionsDetailedSummary from './conditions-detailed-summary.component';
|
|
8
8
|
|
|
9
9
|
const mockOpenmrsFetch = openmrsFetch as jest.Mock;
|
|
10
|
-
const mockLaunchWorkspace = jest.mocked(
|
|
10
|
+
const mockLaunchWorkspace = jest.mocked(launchWorkspace);
|
|
11
11
|
|
|
12
12
|
it('renders an empty state view if conditions data is unavailable', async () => {
|
|
13
13
|
mockOpenmrsFetch.mockReturnValueOnce({ data: [] });
|
|
@@ -6,40 +6,26 @@ import { type FetchResponse, openmrsFetch, showSnackbar } from '@openmrs/esm-fra
|
|
|
6
6
|
import { mockFhirConditionsResponse, searchedCondition } from '__mocks__';
|
|
7
7
|
import { getByTextWithMarkup, mockPatient } from 'tools';
|
|
8
8
|
import { createCondition, useConditionsSearch } from './conditions.resource';
|
|
9
|
-
import ConditionsForm
|
|
10
|
-
import { type PatientWorkspace2DefinitionProps } from '@openmrs/esm-patient-common-lib';
|
|
9
|
+
import ConditionsForm from './conditions-form.workspace';
|
|
11
10
|
|
|
12
11
|
const utc = require('dayjs/plugin/utc');
|
|
13
12
|
dayjs.extend(utc);
|
|
14
13
|
|
|
15
|
-
const defaultProps
|
|
14
|
+
const defaultProps = {
|
|
15
|
+
condition: null,
|
|
16
16
|
closeWorkspace: jest.fn(),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
workspaceProps: {
|
|
26
|
-
condition: null,
|
|
27
|
-
formContext: 'creating' as 'creating' | 'editing',
|
|
28
|
-
},
|
|
29
|
-
windowProps: {},
|
|
30
|
-
windowName: '',
|
|
31
|
-
isRootWorkspace: false,
|
|
17
|
+
closeWorkspaceWithSavedChanges: jest.fn(),
|
|
18
|
+
patientUuid: mockPatient.id,
|
|
19
|
+
patient: mockPatient,
|
|
20
|
+
promptBeforeClosing: jest.fn(),
|
|
21
|
+
formContext: 'creating' as 'creating' | 'editing',
|
|
22
|
+
setTitle: jest.fn(),
|
|
23
|
+
visitContext: null,
|
|
24
|
+
mutateVisitContext: null,
|
|
32
25
|
};
|
|
33
26
|
|
|
34
|
-
function renderConditionsForm(
|
|
35
|
-
|
|
36
|
-
...defaultProps,
|
|
37
|
-
workspaceProps: {
|
|
38
|
-
...defaultProps.workspaceProps,
|
|
39
|
-
...workspaceProps,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
render(<ConditionsForm {...props} />);
|
|
27
|
+
function renderConditionsForm(props = {}) {
|
|
28
|
+
render(<ConditionsForm {...defaultProps} {...props} />);
|
|
43
29
|
}
|
|
44
30
|
|
|
45
31
|
const mockCreateCondition = jest.mocked(createCondition);
|