@kenyaemr/esm-morgue-app 5.3.7-pre.1349 → 5.3.7-pre.1352

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.
@@ -1,29 +1,5 @@
1
1
  {
2
2
  "chunks": [
3
- {
4
- "rendered": true,
5
- "initial": false,
6
- "entry": false,
7
- "recorded": false,
8
- "size": 170891,
9
- "sizes": {
10
- "javascript": 170891
11
- },
12
- "names": [],
13
- "idHints": [],
14
- "runtime": [
15
- "@kenyaemr/esm-morgue-app",
16
- "main"
17
- ],
18
- "files": [
19
- "20.js"
20
- ],
21
- "auxiliaryFiles": [
22
- "20.js.map"
23
- ],
24
- "hash": "7e9cd8cd59208a43",
25
- "childrenByOrder": {}
26
- },
27
3
  {
28
4
  "rendered": true,
29
5
  "initial": false,
@@ -54,9 +30,9 @@
54
30
  "entry": false,
55
31
  "recorded": false,
56
32
  "reason": "split chunk (cache group: defaultVendors)",
57
- "size": 137481,
33
+ "size": 581621,
58
34
  "sizes": {
59
- "javascript": 137481
35
+ "javascript": 581621
60
36
  },
61
37
  "names": [],
62
38
  "idHints": [
@@ -67,12 +43,12 @@
67
43
  "main"
68
44
  ],
69
45
  "files": [
70
- "144.js"
46
+ "47.js"
71
47
  ],
72
48
  "auxiliaryFiles": [
73
- "144.js.map"
49
+ "47.js.map"
74
50
  ],
75
- "hash": "614a619569bebb3c",
51
+ "hash": "29e400e0d1367e4d",
76
52
  "childrenByOrder": {}
77
53
  },
78
54
  {
@@ -81,9 +57,9 @@
81
57
  "entry": false,
82
58
  "recorded": false,
83
59
  "reason": "split chunk (cache group: defaultVendors)",
84
- "size": 422523,
60
+ "size": 137481,
85
61
  "sizes": {
86
- "javascript": 422523
62
+ "javascript": 137481
87
63
  },
88
64
  "names": [],
89
65
  "idHints": [
@@ -94,12 +70,12 @@
94
70
  "main"
95
71
  ],
96
72
  "files": [
97
- "214.js"
73
+ "144.js"
98
74
  ],
99
75
  "auxiliaryFiles": [
100
- "214.js.map"
76
+ "144.js.map"
101
77
  ],
102
- "hash": "cb14425b37a9f750",
78
+ "hash": "614a619569bebb3c",
103
79
  "childrenByOrder": {}
104
80
  },
105
81
  {
@@ -158,9 +134,9 @@
158
134
  "initial": false,
159
135
  "entry": false,
160
136
  "recorded": false,
161
- "size": 459,
137
+ "size": 693,
162
138
  "sizes": {
163
- "javascript": 459
139
+ "javascript": 693
164
140
  },
165
141
  "names": [],
166
142
  "idHints": [],
@@ -172,7 +148,7 @@
172
148
  "300.js"
173
149
  ],
174
150
  "auxiliaryFiles": [],
175
- "hash": "5fd954c1d83f65b4",
151
+ "hash": "463380c48a294a7f",
176
152
  "childrenByOrder": {}
177
153
  },
178
154
  {
@@ -292,6 +268,30 @@
292
268
  "hash": "1251170012b7bac7",
293
269
  "childrenByOrder": {}
294
270
  },
271
+ {
272
+ "rendered": true,
273
+ "initial": false,
274
+ "entry": false,
275
+ "recorded": false,
276
+ "size": 218020,
277
+ "sizes": {
278
+ "javascript": 218020
279
+ },
280
+ "names": [],
281
+ "idHints": [],
282
+ "runtime": [
283
+ "@kenyaemr/esm-morgue-app",
284
+ "main"
285
+ ],
286
+ "files": [
287
+ "620.js"
288
+ ],
289
+ "auxiliaryFiles": [
290
+ "620.js.map"
291
+ ],
292
+ "hash": "af5d7e27f15f1594",
293
+ "childrenByOrder": {}
294
+ },
295
295
  {
296
296
  "rendered": true,
297
297
  "initial": true,
@@ -317,7 +317,7 @@
317
317
  "auxiliaryFiles": [
318
318
  "main.js.map"
319
319
  ],
320
- "hash": "38777b55711ea617",
320
+ "hash": "d5cd200cfa0dc0a0",
321
321
  "childrenByOrder": {}
322
322
  },
323
323
  {
@@ -491,7 +491,7 @@
491
491
  "auxiliaryFiles": [
492
492
  "926.js.map"
493
493
  ],
494
- "hash": "2236f8389f322a49",
494
+ "hash": "5674dacb0d5a2f7b",
495
495
  "childrenByOrder": {}
496
496
  },
497
497
  {
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,r,t,n,o={7926:(e,r,t)=>{"use strict";var n=t(1083),o=(n.Type.String,n.Type.Object,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.UUID,t(380)),a=t.n(o),i=t(4441),u=t(8877);function l(e){var r=e.config,t=r.name,l=r.title,s=(0,u.useLocation)(),f=window.getOpenmrsSpaBase()+"home",c=(0,o.useMemo)((function(){return decodeURIComponent((0,i.A)(s.pathname.split("/")))}),[s.pathname]);return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(c)&&(c=s.pathname.split("/").at(-3)),a().createElement(n.ConfigurableLink,{to:f+"/"+t,className:"cds--side-nav__link ".concat(t===c&&"active-left-nav-link")},l)}var s,f={featureName:"esm-morgue-app",moduleName:"@kenyaemr/esm-morgue-app"};t(4767),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(144),t.e(864),t.e(214),t.e(434),t.e(921),t.e(20)]).then(t.bind(t,5020))}),f),(0,n.getSyncLifecycle)((s={name:"morgue",title:"Morgue"},function(){return a().createElement(u.BrowserRouter,null,a().createElement(l,{config:s}))}),f),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(144),t.e(864),t.e(999),t.e(434),t.e(921),t.e(870)]).then(t.bind(t,870))}),f)},4767:(e,r,t)=>{var n={"./en.json":[4300,300]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o},4441:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});const n=function(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}i.m=o,i.c=a,i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.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);i.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var u=2&n&&t;"object"==typeof u&&!~e.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,i.d(o,a),o},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@kenyaemr/esm-morgue-app:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var u,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var c=s[f];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==n+o){u=c;break}}u||(l=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.setAttribute("data-webpack",n+o),u.src=e),t[e]=[r];var p=(r,n)=>{u.onerror=u.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),l&&document.head.appendChild(u)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{i.S={};var e={},r={};i.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];i.o(i.S,t)||(i.S[t]={});var a=i.S[t],u="@kenyaemr/esm-morgue-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:u>i.from))&&(o[r]={get:t,from:u,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.8.2-pre.2394",(()=>Promise.all([i.e(831),i.e(380)]).then((()=>()=>i(831))))),l("react-i18next","11.18.6",(()=>Promise.all([i.e(380),i.e(225)]).then((()=>()=>i(1225))))),l("react-router-dom","6.26.2",(()=>Promise.all([i.e(144),i.e(913),i.e(380)]).then((()=>()=>i(2913))))),l("react","18.3.1",(()=>i.e(41).then((()=>()=>i(4041))))),l("swr/_internal","2.2.5",(()=>Promise.all([i.e(372),i.e(380)]).then((()=>()=>i(2372))))),l("swr/immutable","2.2.5",(()=>Promise.all([i.e(380),i.e(434),i.e(876)]).then((()=>()=>i(9876)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var r=i.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(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e=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},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(u=e[a]))[0]?"-":(o>0?".":"")+(o=2,u);return n}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():r(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,c=u<r.length?(typeof r[u])[0]:"";if(i>=n.length||"o"==(f=(typeof(s=n[i]))[0]))return!l||("u"==c?u>o&&!a:""==c!=a);if("u"==f){if(!l||"u"!=c)return!1}else if(l)if(c==f)if(u<=o){if(s!=r[u])return!1}else{if(a?s>r[u]:s<r[u])return!1;s!=r[u]&&(l=!1)}else if("s"!=c&&"n"!=c){if(a||u<=o)return!1;l=!1,u--}else{if(u<=o||f<c!=a)return!1;l=!1}else"s"!=c&&"n"!=c&&(l=!1,u--)}}var p=[],d=p.pop.bind(p);for(i=1;i<r.length;i++){var m=r[i];p.push(1==m?d()|d():2==m?d()&d():m?t(m,n):!d())}return!!d()},n=(r,t,n)=>{var o=n?(e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}))(r[t]):r[t];return Object.keys(o).reduce(((r,t)=>!r||!o[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},o=(e,r,t)=>t?t():((e,r)=>(e=>{throw new Error(e)})("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),a=(e=>function(r,t,n,o,a){var u=i.I(r);return u&&u.then&&!n?u.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})(((e,a,u,l,s,f)=>{if(!((e,r)=>e&&i.o(e,r))(a,u))return o(e,u,f);var c,p,d=n(a,u,l);return t(s,d)||(p=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,u,d,s),"undefined"!=typeof console&&console.warn&&console.warn(p)),(c=a[u][d]).loaded=1,c.get()})),u={},l={5434:()=>a("default","swr/_internal",!1,[1,2],(()=>i.e(372).then((()=>()=>i(2372))))),3150:()=>a("default","react-i18next",!1,[1,11],(()=>i.e(606).then((()=>()=>i(1225))))),8010:()=>a("default","swr/immutable",!1,[1,2],(()=>i.e(495).then((()=>()=>i(9876))))),380:()=>a("default","react",!1,[1,18,1,0],(()=>i.e(41).then((()=>()=>i(4041))))),1083:()=>a("default","@openmrs/esm-framework",!1,[1,5],(()=>i.e(831).then((()=>()=>i(831))))),8877:()=>a("default","react-router-dom",!1,[1,6],(()=>Promise.all([i.e(144),i.e(913)]).then((()=>()=>i(2913)))))};[1083,380,8877].forEach((e=>{i.m[e]=r=>{u[e]=0,delete i.c[e];var t=l[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var s={380:[380],434:[5434],921:[3150,8010]},f={};i.f.consumes=(e,r)=>{i.o(s,e)&&s[e].forEach((e=>{if(i.o(u,e))return r.push(u[e]);if(!f[e]){var t=r=>{u[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};f[e]=!0;var n=r=>{delete u[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=l[e]();o.then?r.push(u[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))}})(),(()=>{var e={792:0,380:0,926:0};i.f.j=(r,t)=>{var n=i.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(380|434|921)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=i.p+i.u(r),u=new Error;i.l(a,(t=>{if(i.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;u.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,u,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in u)i.o(u,n)&&(i.m[n]=u[n]);l&&l(i)}for(r&&r(t);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_kenyaemr_esm_morgue_app=globalThis.webpackChunk_kenyaemr_esm_morgue_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(7926)})();
1
+ (()=>{var e,r,t,n,o={7926:(e,r,t)=>{"use strict";var n=t(1083),o=(n.Type.String,n.Type.Object,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.String,n.Type.UUID,t(380)),a=t.n(o),i=t(4441),u=t(8877);function l(e){var r=e.config,t=r.name,l=r.title,s=(0,u.useLocation)(),f=window.getOpenmrsSpaBase()+"home",c=(0,o.useMemo)((function(){return decodeURIComponent((0,i.A)(s.pathname.split("/")))}),[s.pathname]);return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(c)&&(c=s.pathname.split("/").at(-3)),a().createElement(n.ConfigurableLink,{to:f+"/"+t,className:"cds--side-nav__link ".concat(t===c&&"active-left-nav-link")},l)}var s,f={featureName:"esm-morgue-app",moduleName:"@kenyaemr/esm-morgue-app"};t(4767),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(144),t.e(864),t.e(47),t.e(434),t.e(921),t.e(620)]).then(t.bind(t,4239))}),f),(0,n.getSyncLifecycle)((s={name:"morgue",title:"Morgue"},function(){return a().createElement(u.BrowserRouter,null,a().createElement(l,{config:s}))}),f),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(144),t.e(864),t.e(999),t.e(434),t.e(921),t.e(870)]).then(t.bind(t,870))}),f)},4767:(e,r,t)=>{var n={"./en.json":[4300,300]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o},4441:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});const n=function(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}i.m=o,i.c=a,i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.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);i.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var u=2&n&&t;"object"==typeof u&&!~e.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,i.d(o,a),o},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@kenyaemr/esm-morgue-app:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var u,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var c=s[f];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==n+o){u=c;break}}u||(l=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.setAttribute("data-webpack",n+o),u.src=e),t[e]=[r];var p=(r,n)=>{u.onerror=u.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),l&&document.head.appendChild(u)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{i.S={};var e={},r={};i.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];i.o(i.S,t)||(i.S[t]={});var a=i.S[t],u="@kenyaemr/esm-morgue-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:u>i.from))&&(o[r]={get:t,from:u,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.8.2-pre.2394",(()=>Promise.all([i.e(831),i.e(380)]).then((()=>()=>i(831))))),l("react-i18next","11.18.6",(()=>Promise.all([i.e(380),i.e(225)]).then((()=>()=>i(1225))))),l("react-router-dom","6.26.2",(()=>Promise.all([i.e(144),i.e(913),i.e(380)]).then((()=>()=>i(2913))))),l("react","18.3.1",(()=>i.e(41).then((()=>()=>i(4041))))),l("swr/_internal","2.2.5",(()=>Promise.all([i.e(372),i.e(380)]).then((()=>()=>i(2372))))),l("swr/immutable","2.2.5",(()=>Promise.all([i.e(380),i.e(434),i.e(876)]).then((()=>()=>i(9876)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var r=i.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(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e=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},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(u=e[a]))[0]?"-":(o>0?".":"")+(o=2,u);return n}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():r(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,c=u<r.length?(typeof r[u])[0]:"";if(i>=n.length||"o"==(f=(typeof(s=n[i]))[0]))return!l||("u"==c?u>o&&!a:""==c!=a);if("u"==f){if(!l||"u"!=c)return!1}else if(l)if(c==f)if(u<=o){if(s!=r[u])return!1}else{if(a?s>r[u]:s<r[u])return!1;s!=r[u]&&(l=!1)}else if("s"!=c&&"n"!=c){if(a||u<=o)return!1;l=!1,u--}else{if(u<=o||f<c!=a)return!1;l=!1}else"s"!=c&&"n"!=c&&(l=!1,u--)}}var p=[],d=p.pop.bind(p);for(i=1;i<r.length;i++){var m=r[i];p.push(1==m?d()|d():2==m?d()&d():m?t(m,n):!d())}return!!d()},n=(r,t,n)=>{var o=n?(e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}))(r[t]):r[t];return Object.keys(o).reduce(((r,t)=>!r||!o[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},o=(e,r,t)=>t?t():((e,r)=>(e=>{throw new Error(e)})("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),a=(e=>function(r,t,n,o,a){var u=i.I(r);return u&&u.then&&!n?u.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})(((e,a,u,l,s,f)=>{if(!((e,r)=>e&&i.o(e,r))(a,u))return o(e,u,f);var c,p,d=n(a,u,l);return t(s,d)||(p=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,u,d,s),"undefined"!=typeof console&&console.warn&&console.warn(p)),(c=a[u][d]).loaded=1,c.get()})),u={},l={5434:()=>a("default","swr/_internal",!1,[1,2],(()=>i.e(372).then((()=>()=>i(2372))))),3150:()=>a("default","react-i18next",!1,[1,11],(()=>i.e(606).then((()=>()=>i(1225))))),8010:()=>a("default","swr/immutable",!1,[1,2],(()=>i.e(495).then((()=>()=>i(9876))))),380:()=>a("default","react",!1,[1,18,1,0],(()=>i.e(41).then((()=>()=>i(4041))))),1083:()=>a("default","@openmrs/esm-framework",!1,[1,5],(()=>i.e(831).then((()=>()=>i(831))))),8877:()=>a("default","react-router-dom",!1,[1,6],(()=>Promise.all([i.e(144),i.e(913)]).then((()=>()=>i(2913)))))};[1083,380,8877].forEach((e=>{i.m[e]=r=>{u[e]=0,delete i.c[e];var t=l[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var s={380:[380],434:[5434],921:[3150,8010]},f={};i.f.consumes=(e,r)=>{i.o(s,e)&&s[e].forEach((e=>{if(i.o(u,e))return r.push(u[e]);if(!f[e]){var t=r=>{u[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};f[e]=!0;var n=r=>{delete u[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=l[e]();o.then?r.push(u[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))}})(),(()=>{var e={792:0,380:0,926:0};i.f.j=(r,t)=>{var n=i.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(380|434|921)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=i.p+i.u(r),u=new Error;i.l(a,(t=>{if(i.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;u.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,u,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in u)i.o(u,n)&&(i.m[n]=u[n]);l&&l(i)}for(r&&r(t);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_kenyaemr_esm_morgue_app=globalThis.webpackChunk_kenyaemr_esm_morgue_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(7926)})();
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"component":"morgueDashboardLink","name":"morgue-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"morgue","title":"morgue","slot":"morgue-dashboard-slot"}},{"component":"peerCalendarDashboardLink","name":"peer-calendar-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"peer-calendar","title":"Peer Calendar","slot":"peer-calendar-dashboard-slot","path":"peer-management"}},{"component":"root","name":"morgue-dashboard-root","slot":"morgue-dashboard-slot"}],"workspaces":[{"name":"patient-additional-info-form","component":"patientAdditionalInfoForm","title":"add more details","type":"other-form"},{"name":"autopsy-form-workspace","component":"morgueFormEntry","title":"Autopsy form entry","type":"form","width":"extra-wide","canMaximize":true,"canHide":true}],"pages":[{"component":"root","route":"morgue"}],"version":"5.3.7-pre.1349"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"component":"morgueDashboardLink","name":"morgue-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"morgue","title":"morgue","slot":"morgue-dashboard-slot"}},{"component":"peerCalendarDashboardLink","name":"peer-calendar-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"peer-calendar","title":"Peer Calendar","slot":"peer-calendar-dashboard-slot","path":"peer-management"}},{"component":"root","name":"morgue-dashboard-root","slot":"morgue-dashboard-slot"}],"workspaces":[{"name":"patient-additional-info-form","component":"patientAdditionalInfoForm","title":"add more details","type":"other-form"},{"name":"autopsy-form-workspace","component":"morgueFormEntry","title":"Autopsy form entry","type":"form","width":"extra-wide","canMaximize":true,"canHide":true}],"pages":[{"component":"root","route":"morgue"}],"version":"5.3.7-pre.1352"}
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-morgue-app",
3
- "version": "5.3.5",
3
+ "version": "5.3.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@kenyaemr/esm-morgue-app",
9
- "version": "5.3.5",
9
+ "version": "5.3.6",
10
10
  "license": "MPL-2.0",
11
11
  "dependencies": {
12
12
  "@carbon/react": "^1.42.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-morgue-app",
3
- "version": "5.3.7-pre.1349",
3
+ "version": "5.3.7-pre.1352",
4
4
  "description": "morgue app for KenyaEMR",
5
5
  "browser": "dist/kenyaemr-esm-morgue-app.js",
6
6
  "main": "src/index.ts",
@@ -0,0 +1,32 @@
1
+ @use '@carbon/colors';
2
+ @use '@carbon/layout';
3
+ @use '@carbon/type';
4
+
5
+ .emptyStateContainer {
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: center;
9
+ justify-content: center;
10
+ min-height: 300px;
11
+ background-color: colors.$white;
12
+ row-gap: layout.$spacing-02;
13
+
14
+ & form {
15
+ border: none;
16
+ }
17
+
18
+ .title {
19
+ @include type.type-style('heading-01');
20
+ color: colors.$cool-gray-70;
21
+ }
22
+ .subTitle {
23
+ @include type.type-style('body-compact-01');
24
+ color: colors.$cool-gray-70;
25
+ }
26
+ }
27
+
28
+ svg.iconOverrides {
29
+ width: layout.$spacing-11;
30
+ height: layout.$spacing-11;
31
+ fill: var(--brand-03);
32
+ }
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import styles from './empty-deceased.scss';
4
+ import { EmptyDataIllustration } from '@openmrs/esm-patient-common-lib';
5
+ import { DocumentUnknown, IbmWatsonKnowledgeStudio } from '@carbon/react/icons';
6
+
7
+ interface EmptyDeceasedSearchProps {
8
+ title: string;
9
+ subTitle: string;
10
+ }
11
+
12
+ const EmptyDeceasedSearch: React.FC<EmptyDeceasedSearchProps> = ({ title, subTitle }) => {
13
+ const { t } = useTranslation();
14
+
15
+ return (
16
+ <div className={styles.emptyStateContainer}>
17
+ <IbmWatsonKnowledgeStudio className={styles.iconOverrides} />
18
+ <p className={styles.title}>{title}</p>
19
+ <p className={styles.subTitle}>{subTitle}</p>
20
+ </div>
21
+ );
22
+ };
23
+
24
+ export default EmptyDeceasedSearch;
@@ -1,13 +1,9 @@
1
1
  @use '@carbon/layout';
2
2
  @use '@carbon/type';
3
3
  @use '@carbon/colors';
4
- // @use '~@openmrs/esm-styleguide/src/vars' as *;
5
4
  .header {
6
5
  @include type.type-style('body-compact-02');
7
- // color: $text-02;
8
6
  height: layout.$spacing-12;
9
- // background-color: $ui-02;
10
- // border: 1px solid $ui-03;
11
7
  border-left: 0;
12
8
  display: flex;
13
9
  justify-content: space-between;
@@ -80,7 +76,6 @@ svg.iconOverrides {
80
76
  font-size: layout.$spacing-04;
81
77
  line-height: 1.33;
82
78
  letter-spacing: 0.32px;
83
- // color: $text-02;
84
79
  text-align: left;
85
80
  white-space: nowrap;
86
81
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useState } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import {
@@ -12,9 +12,10 @@ import {
12
12
  TableRow,
13
13
  Search,
14
14
  } from '@carbon/react';
15
- import { CardHeader, PatientChartPagination } from '@openmrs/esm-patient-common-lib';
15
+ import { CardHeader, EmptyState, PatientChartPagination } from '@openmrs/esm-patient-common-lib';
16
16
  import { useLayoutType, usePagination } from '@openmrs/esm-framework';
17
17
  import styles from './generic-table.scss';
18
+ import EmptyDeceasedSearch from '../empty-state/empty-search-deceased.component';
18
19
 
19
20
  interface GenericTableProps {
20
21
  rows: any[];
@@ -26,9 +27,16 @@ interface GenericTableProps {
26
27
  const GenericTable: React.FC<GenericTableProps> = ({ rows, headers, actionColumn, title }) => {
27
28
  const { t } = useTranslation();
28
29
  const pageSize = 10;
29
- const { results: paginatedData, currentPage, goTo } = usePagination(rows, pageSize);
30
30
  const isTablet = useLayoutType() === 'tablet';
31
31
 
32
+ const [searchTerm, setSearchTerm] = useState('');
33
+
34
+ const filteredRows = rows.filter((row) =>
35
+ headers.some((header) => row[header.key]?.toString().toLowerCase().includes(searchTerm.toLowerCase())),
36
+ );
37
+
38
+ const { results: paginatedData, currentPage, goTo } = usePagination(filteredRows, pageSize);
39
+
32
40
  return (
33
41
  <div className={styles.table}>
34
42
  <CardHeader title={title} children={''} />
@@ -39,54 +47,67 @@ const GenericTable: React.FC<GenericTableProps> = ({ rows, headers, actionColumn
39
47
  labelText="Search"
40
48
  closeButtonLabelText="Clear search input"
41
49
  id="search-deceased"
42
- onChange={() => {}}
43
- onKeyDown={() => {}}
50
+ value={searchTerm}
51
+ onChange={(e) => setSearchTerm(e.target.value)}
44
52
  className={styles.searchInput}
45
53
  />
46
54
  </div>
47
- <div className={styles.genericTable}>
48
- <DataTable rows={paginatedData} headers={headers} isSortable size={isTablet ? 'lg' : 'sm'} useZebraStyles>
49
- {({ rows, headers, getHeaderProps, getTableProps }) => (
50
- <TableContainer className={styles.tableContainer}>
51
- <Table {...getTableProps()}>
52
- <TableHead>
53
- <TableRow>
54
- {headers.map((header) => (
55
- <TableHeader
56
- key={header.key}
57
- className={classNames(styles.productiveHeading01, styles.text02)}
58
- {...getHeaderProps({
59
- header,
60
- isSortable: header.isSortable,
61
- })}>
62
- {header.header}
63
- </TableHeader>
64
- ))}
65
- {actionColumn && <TableHeader>Action</TableHeader>}
66
- </TableRow>
67
- </TableHead>
68
- <TableBody>
69
- {rows.map((row) => (
70
- <TableRow key={row.id}>
71
- {row.cells.map((cell) => (
72
- <TableCell key={cell.id}>{cell.value}</TableCell>
55
+
56
+ {rows.length === 0 ? (
57
+ <EmptyDeceasedSearch
58
+ title={t('noWaitingList', 'Waiting List')}
59
+ subTitle={t('noDeceasedPersons', 'There are no deceased persons on the waiting list')}
60
+ />
61
+ ) : searchTerm && filteredRows.length === 0 ? (
62
+ <EmptyDeceasedSearch
63
+ title={t('noResultFound', 'Sorry, no results found')}
64
+ subTitle={t('searchForADeceased', "Try to search again using the deceased patient's unique ID number")}
65
+ />
66
+ ) : (
67
+ <div className={styles.genericTable}>
68
+ <DataTable rows={paginatedData} headers={headers} isSortable size={isTablet ? 'lg' : 'sm'} useZebraStyles>
69
+ {({ rows, headers, getHeaderProps, getTableProps }) => (
70
+ <TableContainer className={styles.tableContainer}>
71
+ <Table {...getTableProps()}>
72
+ <TableHead>
73
+ <TableRow>
74
+ {headers.map((header) => (
75
+ <TableHeader
76
+ key={header.key}
77
+ className={classNames(styles.productiveHeading01, styles.text02)}
78
+ {...getHeaderProps({
79
+ header,
80
+ isSortable: header.isSortable,
81
+ })}>
82
+ {header.header}
83
+ </TableHeader>
73
84
  ))}
74
- {actionColumn && <TableCell>{actionColumn(row)}</TableCell>}
85
+ {actionColumn && <TableHeader>Action</TableHeader>}
75
86
  </TableRow>
76
- ))}
77
- </TableBody>
78
- </Table>
79
- </TableContainer>
80
- )}
81
- </DataTable>
82
- <PatientChartPagination
83
- currentItems={paginatedData.length}
84
- totalItems={rows.length}
85
- onPageNumberChange={({ page }) => goTo(page)}
86
- pageNumber={currentPage}
87
- pageSize={pageSize}
88
- />
89
- </div>
87
+ </TableHead>
88
+ <TableBody>
89
+ {rows.map((row) => (
90
+ <TableRow key={row.id}>
91
+ {row.cells.map((cell) => (
92
+ <TableCell key={cell.id}>{cell.value}</TableCell>
93
+ ))}
94
+ {actionColumn && <TableCell>{actionColumn(row)}</TableCell>}
95
+ </TableRow>
96
+ ))}
97
+ </TableBody>
98
+ </Table>
99
+ </TableContainer>
100
+ )}
101
+ </DataTable>
102
+ <PatientChartPagination
103
+ currentItems={paginatedData.length}
104
+ totalItems={filteredRows.length}
105
+ onPageNumberChange={({ page }) => goTo(page)}
106
+ pageNumber={currentPage}
107
+ pageSize={pageSize}
108
+ />
109
+ </div>
110
+ )}
90
111
  </div>
91
112
  );
92
113
  };
@@ -7,13 +7,10 @@
7
7
  }
8
8
 
9
9
  .searchContainer {
10
- display: flex;
11
- }
12
-
13
- .searchInput {
14
- width: 100%;
15
- margin: 0 layout.$spacing-05;
16
- box-shadow: var(--cds-shadow);
10
+ margin-bottom: layout.$spacing-05;
11
+ border: solid colors.$gray-30 0.1rem;
12
+ margin-left: layout.$spacing-06;
13
+ margin-right: layout.$spacing-06;
17
14
  }
18
15
 
19
16
  .tableContainer {
@@ -11,8 +11,12 @@
11
11
  "empty": "Empty",
12
12
  "fromHosp": "From Hospital",
13
13
  "morgue": "Morgue Management",
14
+ "noDeceasedPersons": "There are no deceased persons on the waiting list",
15
+ "noResultFound": "Sorry, no results found",
16
+ "noWaitingList": "Waiting List",
14
17
  "pullingCompartment": "Pulling compartments data.....",
15
18
  "releaseBody": "Release body",
19
+ "searchForADeceased": "Try to search again using the deceased patient's unique ID number",
16
20
  "waitingQueue": "Waiting queue",
17
21
  "waitQueue": "Waiting queue"
18
22
  }