@openmrs/esm-patient-flags-app 11.3.1-patch.9064 → 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.
@@ -1,22 +1,23 @@
1
- assets by path *.js 2.73 MiB
1
+ assets by path *.js 2.7 MiB
2
2
  assets by chunk 2.47 MiB (id hint: vendors)
3
- assets by status 2.34 MiB [big]
4
- asset 102.js 2.04 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
5
- asset 1171.js 315 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
3
+ assets by status 2.33 MiB [big]
4
+ asset 3496.js 2.02 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
5
+ asset 8519.js 316 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
6
6
  asset 2913.js 67.8 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
7
7
  asset 2457.js 45.4 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
8
8
  asset 2894.js 15.3 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
+ asset 6336.js 13.6 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
10
  asset 2372.js 6.09 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
10
- + 53 assets
11
- assets by path *.json 30 KiB
12
- asset openmrs-esm-patient-flags-app.js.buildmanifest.json 29.1 KiB [emitted]
13
- asset routes.json 945 bytes [emitted] [from: src/routes.json] [copied]
14
- orphan modules 10.1 MiB [orphan] 3075 modules
11
+ + 54 assets
12
+ assets by path *.json 30.9 KiB
13
+ asset openmrs-esm-patient-flags-app.js.buildmanifest.json 30 KiB [emitted]
14
+ asset routes.json 946 bytes [emitted] [from: src/routes.json] [copied]
15
+ orphan modules 10 MiB [orphan] 3090 modules
15
16
  runtime modules 42.7 KiB 28 modules
16
- built modules 7.04 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [built]
17
- modules by path ../../node_modules/ 6.85 MiB 531 modules
18
- modules by path ./ 195 KiB
19
- optional modules 42.4 KiB [optional] 39 modules
17
+ built modules 7.02 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [built]
18
+ modules by path ../../node_modules/ 6.83 MiB 521 modules
19
+ modules by path ./ 198 KiB
20
+ optional modules 45.6 KiB [optional] 42 modules
20
21
  javascript modules 153 KiB 9 modules
21
22
  provide-module modules 378 bytes
22
23
  modules by path provide shared module (default) swr/ 126 bytes 3 modules
@@ -29,7 +30,7 @@ built modules 7.04 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-sh
29
30
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
30
31
  This can impact web performance.
31
32
  Assets:
32
- 1171.js (315 KiB)
33
- 102.js (2.04 MiB)
33
+ 8519.js (316 KiB)
34
+ 3496.js (2.02 MiB)
34
35
 
35
- webpack 5.99.9 compiled with 1 warning in 131021 ms
36
+ webpack 5.99.9 compiled with 1 warning in 135233 ms
package/dist/1837.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_flags_app=globalThis.webpackChunk_openmrs_esm_patient_flags_app||[]).push([[1837],{73620:(n,a,e)=>{e.d(a,{A:()=>s});var t=e(30977),r=e.n(t),i=e(95924),l=e.n(i)()(r());l.push([n.id,".-esm-patient-flags__flags-highlight-bar__flagSummary___wDNxG{padding:.5rem;border-bottom:1px solid #e0e0e0}.-esm-patient-flags__flags-highlight-bar__flagIcon___RKyxN{margin-right:.25rem}.-esm-patient-flags__flags-highlight-bar__arrow___88B1J{margin-left:1rem;fill:currentColor}.-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1{padding:0 .5rem;border:none}.-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1 span{display:flex;justify-content:space-between;align-items:center}.-esm-patient-flags__flags-highlight-bar__highlightBarContainer___UVL6W{padding-left:.5rem;border-bottom:1px solid #e0e0e0}.-esm-patient-flags__flags-highlight-bar__loader___KHzJK{align-items:center;display:flex;min-height:1rem;padding:1rem;width:100%}","",{version:3,sources:["webpack://./src/flags/flags-highlight-bar.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,8DACE,aCiBW,CDhBX,+BAAA,CAGF,2DACE,mBCOW,CDJb,wDACE,gBCkBW,CDjBX,iBAAA,CAGF,oEACE,eAAA,CACA,WAAA,CACA,yEACE,YAAA,CACA,6BAAA,CACA,kBAAA,CAIJ,wEACE,kBCPW,CDQX,+BAAA,CAGF,yDACE,kBAAA,CACA,YAAA,CACA,eCJW,CDKX,YCLW,CDMX,UAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.flagSummary {\n padding: layout.$spacing-03;\n border-bottom: 1px solid colors.$gray-20;\n}\n\n.flagIcon {\n margin-right: layout.$spacing-02;\n}\n\n.arrow {\n margin-left: layout.$spacing-05;\n fill: currentColor;\n}\n\n.flagsHighlightTag {\n padding: 0 layout.$spacing-03;\n border: none;\n span {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n}\n\n.highlightBarContainer {\n padding-left: layout.$spacing-03;\n border-bottom: 1px solid colors.$gray-20;\n}\n\n.loader {\n align-items: center;\n display: flex;\n min-height: layout.$spacing-05;\n padding: layout.$spacing-05;\n width: 100%;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),l.locals={flagSummary:"-esm-patient-flags__flags-highlight-bar__flagSummary___wDNxG",flagIcon:"-esm-patient-flags__flags-highlight-bar__flagIcon___RKyxN",arrow:"-esm-patient-flags__flags-highlight-bar__arrow___88B1J",flagsHighlightTag:"-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1",highlightBarContainer:"-esm-patient-flags__flags-highlight-bar__highlightBarContainer___UVL6W",loader:"-esm-patient-flags__flags-highlight-bar__loader___KHzJK"};const s=l},91837:(n,a,e)=>{e.r(a),e.d(a,{default:()=>B});var t=e(1343),r=e.n(t),i=e(86215),l=e(93150),s=e(54440),g=e(43926),o=e(26138),c=e(72591),p=e.n(c),u=e(1740),m=e.n(u),h=e(88128),f=e.n(h),_=e(30855),d=e.n(_),b=e(93051),y=e.n(b),A=e(73656),C=e.n(A),$=e(73620),E={};E.styleTagTransform=C(),E.setAttributes=d(),E.insert=f().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=y(),p()($.A,E);const N=$.A&&$.A.locals?$.A.locals:void 0;function w(n,a){(null==a||a>n.length)&&(a=n.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=n[e];return t}const B=function(n){var a,e,c=n.patientUuid,p=(0,g.GL)(),u=(0,l.useTranslation)().t,m=(0,g.Il)(c),h=m.flags,f=m.isLoading,_=m.error,d=h.filter((function(n){return!n.voided})),b=(0,t.useMemo)((function(){return d.filter((function(n){var a,e,t=null===(e=n.flagWithPriority)||void 0===e||null===(a=e.priority)||void 0===a?void 0:a.name;return!!t&&"risk"===t.toLowerCase()}))}),[d]),y=(a=(0,t.useState)(!1),e=2,function(n){if(Array.isArray(n))return n}(a)||function(n,a){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var t,r,i=[],l=!0,s=!1;try{for(e=e.call(n);!(l=(t=e.next()).done)&&(i.push(t.value),!a||i.length!==a);l=!0);}catch(n){s=!0,r=n}finally{try{l||null==e.return||e.return()}finally{if(s)throw r}}return i}}(a,e)||function(n,a){if(n){if("string"==typeof n)return w(n,a);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(n,a):void 0}}(a,e)||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.")}()),A=y[0],C=y[1],$=(0,t.useCallback)((function(){C(!0)}),[]),E=(0,t.useCallback)((function(){C(!1)}),[]);return"Patient Summary"===decodeURI(p).split("/").filter(Boolean).pop()?null:f?r().createElement(i.OuH,{className:N.loader,description:"".concat(u("loading","Loading")," ...")}):_?r().createElement("div",null,_.message):r().createElement(r().Fragment,null,b.length>0&&r().createElement(r().Fragment,null,r().createElement("div",{className:N.flagSummary},r().createElement(i.vwO,{className:N.flagsHighlightTag,type:"high-contrast",onClick:$},r().createElement("span",{className:N.flagIcon},"🚩"),r().createElement("span",{className:N.flagText},u("flagCount","{{count}} risk flags",{count:b.length})),!A&&r().createElement(s.ArrowRightIcon,{className:N.arrow,size:16}))),A&&r().createElement("div",{className:N.highlightBarContainer},r().createElement(o.default,{onHandleCloseHighlightBar:E,showHighlightBar:A,patientUuid:c}))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_flags_app=globalThis.webpackChunk_openmrs_esm_patient_flags_app||[]).push([[1837],{73620:(n,a,e)=>{e.d(a,{A:()=>s});var t=e(30977),r=e.n(t),i=e(95924),l=e.n(i)()(r());l.push([n.id,".-esm-patient-flags__flags-highlight-bar__flagSummary___wDNxG{padding:.5rem;border-bottom:1px solid #e0e0e0}.-esm-patient-flags__flags-highlight-bar__flagIcon___RKyxN{margin-right:.25rem}.-esm-patient-flags__flags-highlight-bar__arrow___88B1J{margin-left:1rem;fill:currentColor}.-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1{padding:0 .5rem;border:none}.-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1 span{display:flex;justify-content:space-between;align-items:center}.-esm-patient-flags__flags-highlight-bar__highlightBarContainer___UVL6W{padding-left:.5rem;border-bottom:1px solid #e0e0e0}.-esm-patient-flags__flags-highlight-bar__loader___KHzJK{align-items:center;display:flex;min-height:1rem;padding:1rem;width:100%}","",{version:3,sources:["webpack://./src/flags/flags-highlight-bar.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,8DACE,aCiBW,CDhBX,+BAAA,CAGF,2DACE,mBCOW,CDJb,wDACE,gBCkBW,CDjBX,iBAAA,CAGF,oEACE,eAAA,CACA,WAAA,CACA,yEACE,YAAA,CACA,6BAAA,CACA,kBAAA,CAIJ,wEACE,kBCPW,CDQX,+BAAA,CAGF,yDACE,kBAAA,CACA,YAAA,CACA,eCJW,CDKX,YCLW,CDMX,UAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.flagSummary {\n padding: layout.$spacing-03;\n border-bottom: 1px solid colors.$gray-20;\n}\n\n.flagIcon {\n margin-right: layout.$spacing-02;\n}\n\n.arrow {\n margin-left: layout.$spacing-05;\n fill: currentColor;\n}\n\n.flagsHighlightTag {\n padding: 0 layout.$spacing-03;\n border: none;\n span {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n}\n\n.highlightBarContainer {\n padding-left: layout.$spacing-03;\n border-bottom: 1px solid colors.$gray-20;\n}\n\n.loader {\n align-items: center;\n display: flex;\n min-height: layout.$spacing-05;\n padding: layout.$spacing-05;\n width: 100%;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),l.locals={flagSummary:"-esm-patient-flags__flags-highlight-bar__flagSummary___wDNxG",flagIcon:"-esm-patient-flags__flags-highlight-bar__flagIcon___RKyxN",arrow:"-esm-patient-flags__flags-highlight-bar__arrow___88B1J",flagsHighlightTag:"-esm-patient-flags__flags-highlight-bar__flagsHighlightTag___ZVgC1",highlightBarContainer:"-esm-patient-flags__flags-highlight-bar__highlightBarContainer___UVL6W",loader:"-esm-patient-flags__flags-highlight-bar__loader___KHzJK"};const s=l},91837:(n,a,e)=>{e.r(a),e.d(a,{default:()=>B});var t=e(1343),r=e.n(t),i=e(97795),l=e(72339),s=e(54440),g=e(43926),o=e(26138),c=e(72591),p=e.n(c),u=e(1740),m=e.n(u),h=e(88128),f=e.n(h),_=e(30855),d=e.n(_),b=e(93051),y=e.n(b),A=e(73656),C=e.n(A),$=e(73620),E={};E.styleTagTransform=C(),E.setAttributes=d(),E.insert=f().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=y(),p()($.A,E);const N=$.A&&$.A.locals?$.A.locals:void 0;function w(n,a){(null==a||a>n.length)&&(a=n.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=n[e];return t}const B=function(n){var a,e,c=n.patientUuid,p=(0,g.GL)(),u=(0,l.useTranslation)().t,m=(0,g.Il)(c),h=m.flags,f=m.isLoading,_=m.error,d=h.filter((function(n){return!n.voided})),b=(0,t.useMemo)((function(){return d.filter((function(n){var a,e,t=null===(e=n.flagWithPriority)||void 0===e||null===(a=e.priority)||void 0===a?void 0:a.name;return!!t&&"risk"===t.toLowerCase()}))}),[d]),y=(a=(0,t.useState)(!1),e=2,function(n){if(Array.isArray(n))return n}(a)||function(n,a){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var t,r,i=[],l=!0,s=!1;try{for(e=e.call(n);!(l=(t=e.next()).done)&&(i.push(t.value),!a||i.length!==a);l=!0);}catch(n){s=!0,r=n}finally{try{l||null==e.return||e.return()}finally{if(s)throw r}}return i}}(a,e)||function(n,a){if(n){if("string"==typeof n)return w(n,a);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(n,a):void 0}}(a,e)||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.")}()),A=y[0],C=y[1],$=(0,t.useCallback)((function(){C(!0)}),[]),E=(0,t.useCallback)((function(){C(!1)}),[]);return"Patient Summary"===decodeURI(p).split("/").filter(Boolean).pop()?null:f?r().createElement(i.OuH,{className:N.loader,description:"".concat(u("loading","Loading")," ...")}):_?r().createElement("div",null,_.message):r().createElement(r().Fragment,null,b.length>0&&r().createElement(r().Fragment,null,r().createElement("div",{className:N.flagSummary},r().createElement(i.vwO,{className:N.flagsHighlightTag,type:"high-contrast",onClick:$},r().createElement("span",{className:N.flagIcon},"🚩"),r().createElement("span",{className:N.flagText},u("flagCount","{{count}} risk flags",{count:b.length})),!A&&r().createElement(s.ArrowRightIcon,{className:N.arrow,size:16}))),A&&r().createElement("div",{className:N.highlightBarContainer},r().createElement(o.default,{onHandleCloseHighlightBar:E,showHighlightBar:A,patientUuid:c}))))}}}]);