@pih/esm-commons-app 2.1.1-pre.32 → 2.1.1-pre.34

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,9 +1,9 @@
1
1
  Browserslist: caniuse-lite is outdated. Please run:
2
2
  npx update-browserslist-db@latest
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 1.67 MiB
4
+ assets by path *.js 1.68 MiB
5
5
  assets by chunk 1.61 MiB (id hint: vendors)
6
- asset 831.js 1.32 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
6
+ asset 831.js 1.33 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
7
7
  asset 974.js 206 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
8
8
  asset 291.js 56.5 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
9
  asset 641.js 20 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
@@ -13,15 +13,15 @@ assets by path *.js 1.67 MiB
13
13
  assets by path *.json 11 KiB
14
14
  asset pih-esm-commons-app.js.buildmanifest.json 10.1 KiB [emitted]
15
15
  asset routes.json 960 bytes [emitted] [from: src/routes.json] [copied]
16
- orphan modules 3.86 MiB [orphan] 559 modules
16
+ orphan modules 3.87 MiB [orphan] 559 modules
17
17
  runtime modules 39.1 KiB 28 modules
18
- built modules 6.06 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
19
- modules by path ../../node_modules/ 6.01 MiB 55 modules
18
+ built modules 6.07 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
19
+ modules by path ../../node_modules/ 6.03 MiB 55 modules
20
20
  modules by path ./ 46.2 KiB
21
21
  modules by path ./src/ 45.3 KiB 11 modules
22
22
  modules by path ./translations/ 917 bytes 4 modules
23
23
  provide-module modules 210 bytes
24
- provide shared module (default) @openmrs/esm-framework@5.8.2-pre.2488 = ../../no...(truncated) 42 bytes [built] [code generated]
24
+ provide shared module (default) @openmrs/esm-framework@6.0.3-pre.2634 = ../../no...(truncated) 42 bytes [built] [code generated]
25
25
  + 4 modules
26
26
  consume-shared-module modules 210 bytes
27
27
  consume shared module (default) @openmrs/esm-framework@^5 (singleton) (fallback:...(truncated) 42 bytes [built] [code generated]
@@ -32,6 +32,6 @@ built modules 6.06 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-sh
32
32
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
33
33
  This can impact web performance.
34
34
  Assets:
35
- 831.js (1.32 MiB)
35
+ 831.js (1.33 MiB)
36
36
 
37
- webpack 5.90.3 compiled with 1 warning in 38676 ms
37
+ webpack 5.90.3 compiled with 1 warning in 39512 ms
package/dist/660.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_pih_esm_commons_app=globalThis.webpackChunk_pih_esm_commons_app||[]).push([[660],{1429:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(977),a=t.n(r),o=t(5924),i=t.n(o)()(a());i.push([e.id,'div[data-extension-id="o2-pregnancy-infant-dashboard"]{flex:1}.-esm-commons__o2-iframe__iframeWrapper___FM34u{height:100%;width:100%;display:flex;flex-direction:column}.-esm-commons__o2-iframe__o2Iframe___1ClRV{height:100%;width:100%}.-esm-commons__o2-iframe__navigation___AidJo{display:flex;flex:1}',"",{version:3,sources:["webpack://./src/ward-app/o2-iframe.scss"],names:[],mappings:"AAAA,uDACE,MAAA,CAGF,gDACE,WAAA,CACA,UAAA,CACA,YAAA,CACA,qBAAA,CAGF,2CACE,WAAA,CACA,UAAA,CAGF,6CACE,YAAA,CACA,MAAA",sourcesContent:[":global(div[data-extension-id='o2-pregnancy-infant-dashboard']) {\n flex: 1;\n}\n\n.iframeWrapper {\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.o2Iframe {\n height: 100%;\n width: 100%;\n}\n\n.navigation {\n display: flex;\n flex: 1;\n}\n"],sourceRoot:""}]),i.locals={iframeWrapper:"-esm-commons__o2-iframe__iframeWrapper___FM34u",o2Iframe:"-esm-commons__o2-iframe__o2Iframe___1ClRV",navigation:"-esm-commons__o2-iframe__navigation___AidJo"};const c=i},1885:(e,n,t)=>{t.d(n,{A:()=>x});var r=t(5848),a=t(7602),o=t(1343),i=t.n(o),c=t(3150),s=t(2591),l=t.n(s),u=t(1740),m=t.n(u),d=t(8128),f=t.n(d),A=t(855),p=t.n(A),v=t(3051),_=t.n(v),h=t(3656),y=t.n(h),b=t(1429),C={};C.styleTagTransform=y(),C.setAttributes=p(),C.insert=f().bind(null,"head"),C.domAPI=m(),C.insertStyleElement=_(),l()(b.A,C);const g=b.A&&b.A.locals?b.A.locals:void 0;function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw a}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const x=function(e){var n=e.src,t=e.elementsToHide,s=e.elementsToDisable,l=e.customJavaScript,u=void 0===l?"":l,m=(0,o.useRef)(),d=E((0,o.useState)(!0),2),f=d[0],A=d[1],p=E((0,o.useState)(!1),2),v=p[0],_=p[1],h=E((0,o.useState)(0),2),y=h[0],b=h[1],C=(0,c.useTranslation)().t,w=(0,o.useMemo)((function(){var e,n,r,a,o=null!==(r=null==t||null===(e=t.map((function(e){return"".concat(e," {display: none !important;}")})))||void 0===e?void 0:e.join("\n"))&&void 0!==r?r:"",i=null!==(a=null==s||null===(n=s.map((function(e){return"".concat(e," {pointer-events: none; cursor: not-allowed;}")})))||void 0===n?void 0:n.join("\n"))&&void 0!==a?a:"";return"@media screen {\n ".concat(o,"\n ").concat(i," \n }")}),[t,s]);return i().createElement("div",{className:g.iframeWrapper},i().createElement("div",{className:g.navigation},i().createElement(a.K0,{align:"top-start",label:C("back","Back"),onClick:function(){m.current.contentWindow.history.back(),b(y-1),A(!0),_(!0)},disabled:f||y<=1},i().createElement(r.nk,null)),f&&i().createElement(a.OuH,null)),i().createElement("iframe",{ref:m,src:n,onLoad:function(){A(!1),v||b(y+1),_(!1),m.current.contentWindow.addEventListener("beforeunload",(function(){return A(!0)}));var e=m.current.contentDocument,n=e.createElement("style");n.innerHTML=w,e.head.appendChild(n);var t=e.createElement("script");t.innerHTML=u,e.body.appendChild(t)},className:g.o2Iframe}))}},7660:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(1343),a=t.n(r),o=t(3150),i=t(1885),c=function(e){return".encounterType-"+e};const s=function(e){var n=e.wardPatient,t=null!=n?n:{},r=t.patient,s=t.visit,l=(0,o.useTranslation)().t,u=["header",".patient-header","#breadcrumbs",".visit-actions","#choose-another-visit",c("fec2cc56-e35f-42e1-8ae3-017142c1ca59"),c("0ef67d23-0cf4-4a3e-8617-ac9d55bdd005"),c("37f04ddf-9653-4a02-98b4-1c23734c2f15")];if(r&&s){var m="".concat(window.openmrsBase,"/pihcore/visit/visit.page?patient=").concat(r.uuid,"&visit=").concat(s.uuid);return a().createElement(i.A,{src:m,elementsToHide:u,customJavaScript:"\n jQuery('#formBreadcrumb').show();\n jQuery('.simple-form-ui form section').width(300);\n jQuery('#nav-buttons').hide();\n "})}return a().createElement("div",null,l("patientHasNoActiveVisit","Patient has no active visit"))}}}]);
1
+ "use strict";(globalThis.webpackChunk_pih_esm_commons_app=globalThis.webpackChunk_pih_esm_commons_app||[]).push([[660],{1429:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(977),a=t.n(r),o=t(5924),i=t.n(o)()(a());i.push([e.id,'div[data-extension-id="o2-pregnancy-infant-dashboard"]{flex:1}.-esm-commons__o2-iframe__iframeWrapper___FM34u{height:100%;width:100%;display:flex;flex-direction:column}.-esm-commons__o2-iframe__o2Iframe___1ClRV{height:100%;width:100%}.-esm-commons__o2-iframe__navigation___AidJo{display:flex;flex:1}',"",{version:3,sources:["webpack://./src/ward-app/o2-iframe.scss"],names:[],mappings:"AAAA,uDACE,MAAA,CAGF,gDACE,WAAA,CACA,UAAA,CACA,YAAA,CACA,qBAAA,CAGF,2CACE,WAAA,CACA,UAAA,CAGF,6CACE,YAAA,CACA,MAAA",sourcesContent:[":global(div[data-extension-id='o2-pregnancy-infant-dashboard']) {\n flex: 1;\n}\n\n.iframeWrapper {\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.o2Iframe {\n height: 100%;\n width: 100%;\n}\n\n.navigation {\n display: flex;\n flex: 1;\n}\n"],sourceRoot:""}]),i.locals={iframeWrapper:"-esm-commons__o2-iframe__iframeWrapper___FM34u",o2Iframe:"-esm-commons__o2-iframe__o2Iframe___1ClRV",navigation:"-esm-commons__o2-iframe__navigation___AidJo"};const c=i},1885:(e,n,t)=>{t.d(n,{A:()=>x});var r=t(5848),a=t(7602),o=t(1343),i=t.n(o),c=t(3150),s=t(2591),l=t.n(s),u=t(1740),m=t.n(u),d=t(8128),f=t.n(d),A=t(855),p=t.n(A),v=t(3051),_=t.n(v),h=t(3656),y=t.n(h),b=t(1429),C={};C.styleTagTransform=y(),C.setAttributes=p(),C.insert=f().bind(null,"head"),C.domAPI=m(),C.insertStyleElement=_(),l()(b.A,C);const g=b.A&&b.A.locals?b.A.locals:void 0;function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw a}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const x=function(e){var n=e.src,t=e.elementsToHide,s=e.elementsToDisable,l=e.customJavaScript,u=void 0===l?"":l,m=(0,o.useRef)(),d=E((0,o.useState)(!0),2),f=d[0],A=d[1],p=E((0,o.useState)(!1),2),v=p[0],_=p[1],h=E((0,o.useState)(0),2),y=h[0],b=h[1],C=(0,c.useTranslation)().t,w=(0,o.useMemo)((function(){var e,n,r,a,o=null!==(r=null==t||null===(e=t.map((function(e){return"".concat(e," {display: none !important;}")})))||void 0===e?void 0:e.join("\n"))&&void 0!==r?r:"",i=null!==(a=null==s||null===(n=s.map((function(e){return"".concat(e," {pointer-events: none; cursor: not-allowed;}")})))||void 0===n?void 0:n.join("\n"))&&void 0!==a?a:"";return"@media screen {\n ".concat(o,"\n ").concat(i," \n }")}),[t,s]);return i().createElement("div",{className:g.iframeWrapper},i().createElement("div",{className:g.navigation},i().createElement(a.K0,{align:"top-start",label:C("back","Back"),onClick:function(){m.current.contentWindow.history.back(),b(y-1),A(!0),_(!0)},disabled:f||y<=1},i().createElement(r.nk,null)),f&&i().createElement(a.OuH,null)),i().createElement("iframe",{ref:m,src:n,onLoad:function(){A(!1),v||b(y+1),_(!1),m.current.contentWindow.addEventListener("beforeunload",(function(){return A(!0)}));var e=m.current.contentDocument,n=e.createElement("style");n.innerHTML=w,e.head.appendChild(n);var t=e.createElement("script");t.innerHTML=u,e.body.appendChild(t)},className:g.o2Iframe}))}},7660:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var r=t(1343),a=t.n(r),o=t(3150),i=t(1885),c=function(e){return".encounterType-"+e};const s=function(e){var n=e.wardPatient,t=null!=n?n:{},r=t.patient,s=t.visit,l=(0,o.useTranslation)().t,u=["header",".patient-header","#breadcrumbs",".visit-actions","#choose-another-visit",c("fec2cc56-e35f-42e1-8ae3-017142c1ca59"),c("0ef67d23-0cf4-4a3e-8617-ac9d55bdd005"),c("37f04ddf-9653-4a02-98b4-1c23734c2f15")];if(r&&s){var m="".concat(window.openmrsBase,"/pihcore/visit/visit.page?patient=").concat(r.uuid,"&visit=").concat(s.uuid);return a().createElement(i.A,{src:m,elementsToHide:u,customJavaScript:"\n jQuery('#formBreadcrumb').show();\n jQuery('.simple-form-ui form section').width(425);\n jQuery('#nav-buttons').hide();\n "})}return a().createElement("div",null,l("patientHasNoActiveVisit","Patient has no active visit"))}}}]);