@cc-openmrs/cc-esm-active-prescriptions 1.0.5 → 1.0.6

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/dist/477.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[477],{4477(e,c,t){t.r(c),t.d(c,{default:()=>o});var n=t(6072),r=t(5987),i=t(3335),s=t(8741),a=t(2076);const o=function(){var e=(0,(0,a.useTranslation)().t)("prescriptionsActionButton","Active prescriptions"),c=(0,n.useCallback)(function(){(0,r.launchWorkspace)("active-prescriptions-workspace")},[]);return n.createElement(s.ED,{getIcon:function(e){return n.createElement(i.KM,e)},label:e,iconDescription:e,handler:c,type:"active-prescriptions"})}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[477],{4477(c,e,n){n.r(e),n.d(e,{default:()=>o});var t=n(6072),i=n(5987),r=n(8741),s=n(2076);const o=function(){var c=(0,(0,s.useTranslation)().t)("prescriptionsActionButton","Active prescriptions"),e=(0,t.useCallback)(function(){(0,i.launchWorkspace)("active-prescriptions-workspace")},[]);return t.createElement(r.ED,{getIcon:function(){return null},label:c,iconDescription:c,handler:e,type:"active-prescriptions"})}}}]);
package/dist/91.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[91],{8091(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>p,brandBox:()=>m,importTranslation:()=>c,prescriptionsActionButton:()=>d,prescriptionsActionMenuItem:()=>f,redBox:()=>u,root:()=>l,startupApp:()=>a});var r=t(5987),o={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},i="@openmrs/esm-template-app",s={featureName:"root-world",moduleName:i},c=t(4767);function a(){(0,r.defineConfigSchema)(i,o)}var l=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(324),t.e(72),t.e(76),t.e(70)]).then(t.bind(t,6070))},s),u=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(970)]).then(t.bind(t,970))},s),p=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(389)]).then(t.bind(t,1389))},s),m=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(488)]).then(t.bind(t,488))},s),d=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(478),t.e(741),t.e(335),t.e(72),t.e(76),t.e(250),t.e(477)]).then(t.bind(t,4477))},s),f=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(335),t.e(72),t.e(76),t.e(941)]).then(t.bind(t,2941))},s)},4767(e,n,t){var r={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[6716,[716]]};function o(e){if(!t.o(r,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=r[e],o=n[0];return t.e(n[1][0]).then(()=>t(o))}o.keys=()=>Object.keys(r),o.id=4767,e.exports=o}}]);
1
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[91],{8091(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>p,brandBox:()=>m,importTranslation:()=>c,prescriptionsActionButton:()=>d,prescriptionsActionMenuItem:()=>f,redBox:()=>u,root:()=>l,startupApp:()=>a});var r=t(5987),o={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},i="@openmrs/esm-template-app",s={featureName:"root-world",moduleName:i},c=t(4767);function a(){(0,r.defineConfigSchema)(i,o)}var l=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(324),t.e(72),t.e(76),t.e(70)]).then(t.bind(t,6070))},s),u=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(970)]).then(t.bind(t,970))},s),p=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(389)]).then(t.bind(t,1389))},s),m=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(488)]).then(t.bind(t,488))},s),d=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(478),t.e(741),t.e(72),t.e(76),t.e(250),t.e(477)]).then(t.bind(t,4477))},s),f=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(335),t.e(72),t.e(76),t.e(941)]).then(t.bind(t,2941))},s)},4767(e,n,t){var r={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[6716,[716]]};function o(e){if(!t.o(r,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=r[e],o=n[0];return t.e(n[1][0]).then(()=>t(o))}o.keys=()=>Object.keys(r),o.id=4767,e.exports=o}}]);
package/dist/941.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[941],{9490(e,n,i){i.d(n,{A:()=>o});var s=i(2996),t=i.n(s),c=i(159),r=i.n(c)()(t());r.push([e.id,".-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB\\+io{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;line-height:0}.-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB\\+io svg{display:block}","",{version:3,sources:["webpack://./src/prescriptions-actions/prescriptions-action-menu-item.scss"],names:[],mappings:"AAAA,iFACE,mBAAA,CACA,kBAAA,CACA,sBAAA,CACA,YAAA,CACA,aAAA,CACA,aAAA,CAGF,qFACE,aAAA",sourcesContent:[".iconOnly {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n line-height: 0;\n}\n\n.iconOnly :global(svg) {\n display: block;\n}\n"],sourceRoot:""}]),r.locals={iconOnly:"-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB+io"};const o=r},2941(e,n,i){i.r(n),i.d(n,{default:()=>f});var s=i(6072),t=i(3351),c=i(3335),r=i(5987),o=i(2076),a=i(5072),l=i.n(a),A=i(7825),p=i.n(A),m=i(7659),_=i.n(m),u=i(5056),h=i.n(u),C=i(540),d=i.n(C),y=i(1113),v=i.n(y),g=i(9490),b={};b.styleTagTransform=v(),b.setAttributes=h(),b.insert=_().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=d(),l()(g.A,b);const k=g.A&&g.A.locals?g.A.locals:void 0,f=function(){var e=(0,o.useTranslation)().t,n=(0,s.useCallback)(function(){(0,r.launchWorkspace)("active-prescriptions-workspace")},[]),i=e("prescriptionsActionMenuItem","Active prescriptions");return s.createElement(t.XSD,{itemText:s.createElement("span",{className:k.iconOnly,"aria-label":i,title:i},s.createElement(c.KM,{size:16,"aria-hidden":"true"})),onClick:n})}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[941],{9490(e,n,i){i.d(n,{A:()=>o});var t=i(2996),s=i.n(t),c=i(159),r=i.n(c)()(s());r.push([e.id,".-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB\\+io{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;line-height:0}.-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB\\+io svg{display:block;width:1.5rem;height:1.5rem}","",{version:3,sources:["webpack://./src/prescriptions-actions/prescriptions-action-menu-item.scss"],names:[],mappings:"AAAA,iFACE,mBAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,aAAA,CAGF,qFACE,aAAA,CACA,YAAA,CACA,aAAA",sourcesContent:[".iconOnly {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n line-height: 0;\n}\n\n.iconOnly :global(svg) {\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n}\n"],sourceRoot:""}]),r.locals={iconOnly:"-cc-esm-active-prescriptions__prescriptions-action-menu-item__iconOnly___VB+io"};const o=r},2941(e,n,i){i.r(n),i.d(n,{default:()=>f});var t=i(6072),s=i(3351),c=i(3335),r=i(5987),o=i(2076),A=i(5072),a=i.n(A),l=i(7825),p=i.n(l),m=i(7659),_=i.n(m),h=i(5056),u=i.n(h),C=i(540),d=i.n(C),g=i(1113),y=i.n(g),v=i(9490),b={};b.styleTagTransform=y(),b.setAttributes=u(),b.insert=_().bind(null,"head"),b.domAPI=p(),b.insertStyleElement=d(),a()(v.A,b);const k=v.A&&v.A.locals?v.A.locals:void 0,f=function(){var e=(0,o.useTranslation)().t,n=(0,t.useCallback)(function(){(0,r.launchWorkspace)("active-prescriptions-workspace")},[]),i=e("prescriptionsActionMenuItem","Active prescriptions");return t.createElement(s.XSD,{itemText:t.createElement("span",{className:k.iconOnly,"aria-label":i,title:i},t.createElement(c.KM,{size:16,"aria-hidden":"true"})),onClick:n})}}}]);
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,r,t,n,o={8091(e,r,t){"use strict";var n=t(5987),o={featureName:"root-world",moduleName:(n.Type.Boolean,n.Type.Array,n.Type.String,(0,n.validator)(function(e){return e.length>0},"At least one person must be greeted."),"@openmrs/esm-template-app")};t(4767),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(324),t.e(72),t.e(76),t.e(70)]).then(t.bind(t,6070))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(970)]).then(t.bind(t,970))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(389)]).then(t.bind(t,1389))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(488)]).then(t.bind(t,488))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(478),t.e(741),t.e(335),t.e(72),t.e(76),t.e(250),t.e(477)]).then(t.bind(t,4477))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(335),t.e(72),t.e(76),t.e(941)]).then(t.bind(t,2941))},o)},4767(e,r,t){var n={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[6716,[716]]};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][0]).then(()=>t(o))}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return o[e].call(t.exports,t,t.exports,i),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 s=2&n&&t;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).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.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@cc-openmrs/cc-esm-active-prescriptions:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var f=c[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",n+o),s.src=e),t[e]=[r];var p=(r,n)=>{s.onerror=s.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{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],s="@cc-openmrs/cc-esm-active-prescriptions",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:s>i.from))&&(o[r]={get:t,from:s,eager:!!n})},c=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.0",()=>Promise.all([i.e(961),i.e(135),i.e(478),i.e(741),i.e(935),i.e(72),i.e(76),i.e(250),i.e(987)]).then(()=>()=>i(7935))),l("dayjs","1.11.19",()=>i.e(353).then(()=>()=>i(4353))),l("react-i18next","16.5.4",()=>Promise.all([i.e(478),i.e(311),i.e(72)]).then(()=>()=>i(3311))),l("react-router-dom","6.30.3",()=>Promise.all([i.e(961),i.e(282),i.e(72)]).then(()=>()=>i(282))),l("react","18.3.1",()=>i.e(540).then(()=>()=>i(6540))),l("rxjs","6.6.7",()=>i.e(184).then(()=>()=>i(3184)))),e[t]=c.length?Promise.all(c).then(()=>e[t]=1):1}}})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var r=globalThis.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(/\/[^\/]+$/,"/"),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(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return n}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():r(s))}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,s=1,l=!0;;s++,i++){var c,u,f=s<r.length?(typeof r[s])[0]:"";if(i>=n.length||"o"==(u=(typeof(c=n[i]))[0]))return!l||("u"==f?s>o&&!a:""==f!=a);if("u"==u){if(!l||"u"!=f)return!1}else if(l)if(f==u)if(s<=o){if(c!=r[s])return!1}else{if(a?c>r[s]:c<r[s])return!1;c!=r[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||u<f!=a)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var p=[],d=p.pop.bind(p);for(i=1;i<r.length;i++){var h=r[i];p.push(1==h?d()|d():2==h?d()&d():h?t(h,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],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;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 s=i.I(r);return s&&s.then&&!n?s.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})((e,a,s,l,c,u)=>{if(!((e,r)=>e&&i.o(e,r))(a,s))return o(e,s,u);var f,p,d=n(a,s,l);return t(c,d)||(p=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,s,d,c),"undefined"!=typeof console&&console.warn&&console.warn(p)),(f=a[s][d]).loaded=1,f.get()}),s={},l={5987:()=>a("default","@openmrs/esm-framework",!1,[0],()=>Promise.all([i.e(961),i.e(135),i.e(478),i.e(741),i.e(935),i.e(72),i.e(76),i.e(250)]).then(()=>()=>i(7935))),6072:()=>a("default","react",!1,[1,18],()=>i.e(540).then(()=>()=>i(6540))),2076:()=>a("default","react-i18next",!1,[1,16],()=>Promise.all([i.e(478),i.e(311)]).then(()=>()=>i(3311))),231:()=>a("default","dayjs",!1,[1,1],()=>i.e(353).then(()=>()=>i(4353))),3083:()=>a("default","rxjs",!1,[1,6],()=>i.e(184).then(()=>()=>i(3184))),7114:()=>a("default","react-router-dom",!1,[1,6],()=>i.e(282).then(()=>()=>i(282)))};[5987].forEach(e=>{i.m[e]=r=>{s[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 c={72:[6072],76:[2076],250:[231,3083,7114],792:[5987],987:[5987]},u={};i.f.consumes=(e,r)=>{i.o(c,e)&&c[e].forEach(e=>{if(i.o(s,e))return r.push(s[e]);if(!u[e]){var t=r=>{s[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};u[e]=!0;var n=r=>{delete s[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=l[e]();o.then?r.push(s[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})}})(),(()=>{var e={91:0,792:0,987: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(/^(250|72|76|987)$/.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),s=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;s.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,s,l]=t,c=0;if(a.some(r=>0!==e[r])){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);l&&l(i)}for(r&&r(t);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(8091)})();
1
+ (()=>{var e,r,t,n,o={8091(e,r,t){"use strict";var n=t(5987),o={featureName:"root-world",moduleName:(n.Type.Boolean,n.Type.Array,n.Type.String,(0,n.validator)(function(e){return e.length>0},"At least one person must be greeted."),"@openmrs/esm-template-app")};t(4767),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(324),t.e(72),t.e(76),t.e(70)]).then(t.bind(t,6070))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(970)]).then(t.bind(t,970))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(389)]).then(t.bind(t,1389))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(488)]).then(t.bind(t,488))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(478),t.e(741),t.e(72),t.e(76),t.e(250),t.e(477)]).then(t.bind(t,4477))},o),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(135),t.e(335),t.e(72),t.e(76),t.e(941)]).then(t.bind(t,2941))},o)},4767(e,r,t){var n={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[6716,[716]]};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][0]).then(()=>t(o))}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return o[e].call(t.exports,t,t.exports,i),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 s=2&n&&t;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).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.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@cc-openmrs/cc-esm-active-prescriptions:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var f=c[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",n+o),s.src=e),t[e]=[r];var p=(r,n)=>{s.onerror=s.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{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],s="@cc-openmrs/cc-esm-active-prescriptions",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:s>i.from))&&(o[r]={get:t,from:s,eager:!!n})},c=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.0",()=>Promise.all([i.e(961),i.e(135),i.e(478),i.e(741),i.e(935),i.e(72),i.e(76),i.e(250),i.e(987)]).then(()=>()=>i(7935))),l("dayjs","1.11.19",()=>i.e(353).then(()=>()=>i(4353))),l("react-i18next","16.5.4",()=>Promise.all([i.e(478),i.e(311),i.e(72)]).then(()=>()=>i(3311))),l("react-router-dom","6.30.3",()=>Promise.all([i.e(961),i.e(282),i.e(72)]).then(()=>()=>i(282))),l("react","18.3.1",()=>i.e(540).then(()=>()=>i(6540))),l("rxjs","6.6.7",()=>i.e(184).then(()=>()=>i(3184)))),e[t]=c.length?Promise.all(c).then(()=>e[t]=1):1}}})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var r=globalThis.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(/\/[^\/]+$/,"/"),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(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return n}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():r(s))}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,s=1,l=!0;;s++,i++){var c,u,f=s<r.length?(typeof r[s])[0]:"";if(i>=n.length||"o"==(u=(typeof(c=n[i]))[0]))return!l||("u"==f?s>o&&!a:""==f!=a);if("u"==u){if(!l||"u"!=f)return!1}else if(l)if(f==u)if(s<=o){if(c!=r[s])return!1}else{if(a?c>r[s]:c<r[s])return!1;c!=r[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||u<f!=a)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var p=[],d=p.pop.bind(p);for(i=1;i<r.length;i++){var h=r[i];p.push(1==h?d()|d():2==h?d()&d():h?t(h,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],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;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 s=i.I(r);return s&&s.then&&!n?s.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})((e,a,s,l,c,u)=>{if(!((e,r)=>e&&i.o(e,r))(a,s))return o(e,s,u);var f,p,d=n(a,s,l);return t(c,d)||(p=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,s,d,c),"undefined"!=typeof console&&console.warn&&console.warn(p)),(f=a[s][d]).loaded=1,f.get()}),s={},l={5987:()=>a("default","@openmrs/esm-framework",!1,[0],()=>Promise.all([i.e(961),i.e(135),i.e(478),i.e(741),i.e(935),i.e(72),i.e(76),i.e(250)]).then(()=>()=>i(7935))),6072:()=>a("default","react",!1,[1,18],()=>i.e(540).then(()=>()=>i(6540))),2076:()=>a("default","react-i18next",!1,[1,16],()=>Promise.all([i.e(478),i.e(311)]).then(()=>()=>i(3311))),231:()=>a("default","dayjs",!1,[1,1],()=>i.e(353).then(()=>()=>i(4353))),3083:()=>a("default","rxjs",!1,[1,6],()=>i.e(184).then(()=>()=>i(3184))),7114:()=>a("default","react-router-dom",!1,[1,6],()=>i.e(282).then(()=>()=>i(282)))};[5987].forEach(e=>{i.m[e]=r=>{s[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 c={72:[6072],76:[2076],250:[231,3083,7114],792:[5987],987:[5987]},u={};i.f.consumes=(e,r)=>{i.o(c,e)&&c[e].forEach(e=>{if(i.o(s,e))return r.push(s[e]);if(!u[e]){var t=r=>{s[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};u[e]=!0;var n=r=>{delete s[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=l[e]();o.then?r.push(s[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})}})(),(()=>{var e={91:0,792:0,987: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(/^(250|72|76|987)$/.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),s=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;s.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,s,l]=t,c=0;if(a.some(r=>0!==e[r])){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);l&&l(i)}for(r&&r(t);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(8091)})();
@@ -108,7 +108,7 @@
108
108
  "auxiliaryFiles": [
109
109
  "91.js.map"
110
110
  ],
111
- "hash": "58d415e2eab4af70",
111
+ "hash": "a45571e434c09091",
112
112
  "childrenByOrder": {}
113
113
  },
114
114
  {
@@ -440,9 +440,9 @@
440
440
  "initial": false,
441
441
  "entry": false,
442
442
  "recorded": false,
443
- "size": 931,
443
+ "size": 816,
444
444
  "sizes": {
445
- "javascript": 931
445
+ "javascript": 816
446
446
  },
447
447
  "names": [],
448
448
  "idHints": [],
@@ -456,7 +456,7 @@
456
456
  "auxiliaryFiles": [
457
457
  "477.js.map"
458
458
  ],
459
- "hash": "c11ed2240bb3d465",
459
+ "hash": "5cdca74701afb1af",
460
460
  "childrenByOrder": {}
461
461
  },
462
462
  {
@@ -630,7 +630,7 @@
630
630
  "auxiliaryFiles": [
631
631
  "main.js.map"
632
632
  ],
633
- "hash": "fc8953d7bec532ac",
633
+ "hash": "1e3460e955d69210",
634
634
  "childrenByOrder": {}
635
635
  },
636
636
  {
@@ -665,9 +665,9 @@
665
665
  "initial": false,
666
666
  "entry": false,
667
667
  "recorded": false,
668
- "size": 3921,
668
+ "size": 3997,
669
669
  "sizes": {
670
- "javascript": 3921
670
+ "javascript": 3997
671
671
  },
672
672
  "names": [],
673
673
  "idHints": [],
@@ -681,7 +681,7 @@
681
681
  "auxiliaryFiles": [
682
682
  "941.js.map"
683
683
  ],
684
- "hash": "9b1f3adb5ffc0844",
684
+ "hash": "5f87e88ee8e239bf",
685
685
  "childrenByOrder": {}
686
686
  },
687
687
  {
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":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"brandBox","slot":"Boxes"},{"name":"Prescriptions banner action","component":"prescriptionsActionButton","slot":"patient-actions-slot","order":50,"meta":{"label":"Active prescriptions","icon":"certificate"}},{"name":"Prescriptions action","component":"prescriptionsActionMenuItem","slot":"action-menu-patient-chart-items-slot","order":50,"meta":{"label":"Prescriptions","icon":"pill"}}],"pages":[{"component":"root","route":"root"}],"workspaces":[{"name":"active-prescriptions-workspace","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":true,"width":"wider"}],"version":"1.0.5"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"brandBox","slot":"Boxes"},{"name":"Prescriptions banner action","component":"prescriptionsActionButton","slot":"patient-actions-slot","order":50,"meta":{"label":"Active prescriptions","icon":"certificate"}},{"name":"Prescriptions action","component":"prescriptionsActionMenuItem","slot":"action-menu-patient-chart-items-slot","order":50,"meta":{"label":"Prescriptions","icon":"pill"}}],"pages":[{"component":"root","route":"root"}],"workspaces":[{"name":"active-prescriptions-workspace","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":true,"width":"wider"}],"version":"1.0.6"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-openmrs/cc-esm-active-prescriptions",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS seed application for building microfrontends",
6
6
  "browser": "dist/openmrs-esm-template-app.js",
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { launchWorkspace } from '@openmrs/esm-framework';
3
- import { CertificateCheck } from '@carbon/react/icons';
4
3
  import { ActionMenuButton } from '@openmrs/esm-styleguide';
5
4
  import { useTranslation } from 'react-i18next';
6
5
 
@@ -14,7 +13,7 @@ const PrescriptionsActionButton: React.FC = () => {
14
13
 
15
14
  return (
16
15
  <ActionMenuButton
17
- getIcon={(props) => <CertificateCheck {...props} />}
16
+ getIcon={() => null}
18
17
  label={label}
19
18
  iconDescription={label}
20
19
  handler={handleClick}
@@ -2,11 +2,13 @@
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
- width: 1.5rem;
6
- height: 1.5rem;
5
+ width: 2rem;
6
+ height: 2rem;
7
7
  line-height: 0;
8
8
  }
9
9
 
10
10
  .iconOnly :global(svg) {
11
11
  display: block;
12
+ width: 1.5rem;
13
+ height: 1.5rem;
12
14
  }