@cc-openmrs/cc-esm-active-prescriptions 1.0.2 → 1.0.3
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/296.js +1 -1
- package/dist/300.js +1 -1
- package/dist/91.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +13 -37
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -5
- package/src/prescriptions-actions/prescriptions-action-menu-item.component.tsx +2 -2
- package/src/routes.json +10 -6
- package/dist/477.js +0 -1
- package/src/prescriptions-actions/prescriptions-action-button.component.tsx +0 -20
package/dist/296.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[296],{4296(e,
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[296],{4296(c,e,s){s.r(e),s.d(e,{default:()=>a});var t=s(6072),i=s(3351),n=s(5987),r=s(2076);const a=function(){var c=(0,r.useTranslation)().t,e=(0,t.useCallback)(function(){(0,n.launchWorkspace)("active-prescriptions-workspace")},[]);return t.createElement(i.XSD,{itemText:c("prescriptionsActionMenuItem","Active prescriptions"),onClick:e})}}}]);
|
package/dist/300.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[300],{4300(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"Configuration system","configSystemExplainer":"The greeting shown below is driven by the configuration system. To change the configuration properties, click the spanner icon in the navbar to pull up the Implementer Tools panel. Then, type <2>template</2> into the <4>Search configuration</4> input. This should filter the configuration properties to show only those that are relevant to this module. You can change the values of these properties and click <6>Save</6> to see the changes reflected in the UI","connect":"Connect","connectExplainer":"Get in touch with the community","dataFetching":"Data fetching","designDocs":"Design docs","designDocsExplainer":"Read the O3 design documentation","explainer":"The following examples demonstrate some key features of the O3 framework","extensionExplainer":"Here are some colored boxes. Because they are attached as extensions within a slot, an admin can change what boxes are shown using configuration. These boxes happen to be defined in this module, but they could attach to this slot even if they were in a different module","extensionSystem":"Extension system","formalGreeting":"hello","frontendDocs":"Frontend docs","getPatient":"Get a patient named","getStarted":"Get started","getStartedExplainer":"Create a frontend module from this template","learnExplainer":"Learn how to use the O3 framework","loading":"Loading","patientGetterExplainer":"Try clicking the button below to fetch a patient from the backend","resources":"Resources","usefulLinks":"Below are some links to useful resources","welcomeText":"Welcome to the O3 Template app","prescriptionsActionButton":"Active prescriptions","prescriptionsActionMenuItem":"Active prescriptions"}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[300],{4300(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"Configuration system","configSystemExplainer":"The greeting shown below is driven by the configuration system. To change the configuration properties, click the spanner icon in the navbar to pull up the Implementer Tools panel. Then, type <2>template</2> into the <4>Search configuration</4> input. This should filter the configuration properties to show only those that are relevant to this module. You can change the values of these properties and click <6>Save</6> to see the changes reflected in the UI","connect":"Connect","connectExplainer":"Get in touch with the community","dataFetching":"Data fetching","designDocs":"Design docs","designDocsExplainer":"Read the O3 design documentation","explainer":"The following examples demonstrate some key features of the O3 framework","extensionExplainer":"Here are some colored boxes. Because they are attached as extensions within a slot, an admin can change what boxes are shown using configuration. These boxes happen to be defined in this module, but they could attach to this slot even if they were in a different module","extensionSystem":"Extension system","formalGreeting":"hello","frontendDocs":"Frontend docs","getPatient":"Get a patient named","getStarted":"Get started","getStartedExplainer":"Create a frontend module from this template","learnExplainer":"Learn how to use the O3 framework","loading":"Loading","patientGetterExplainer":"Try clicking the button below to fetch a patient from the backend","resources":"Resources","usefulLinks":"Below are some links to useful resources","welcomeText":"Welcome to the O3 Template app","prescriptionsActionButton":"Active prescriptions","prescriptionsActionMenuItem":"Active prescriptions","activePrescriptionsWorkspaceTitle":"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:()=>
|
|
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:()=>a,prescriptionsActionMenuItem:()=>d,redBox:()=>u,root:()=>l,startupApp:()=>c});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.")]}},s="@openmrs/esm-template-app",i={featureName:"root-world",moduleName:s},a=t(4767);function c(){(0,r.defineConfigSchema)(s,o)}var l=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(351),t.e(104),t.e(72),t.e(76),t.e(217)]).then(t.bind(t,6070))},i),u=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(970)]).then(t.bind(t,970))},i),p=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(389)]).then(t.bind(t,1389))},i),m=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(72),t.e(488)]).then(t.bind(t,488))},i),d=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(351),t.e(72),t.e(76),t.e(296)]).then(t.bind(t,4296))},i)},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,[335]]};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/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(351),t.e(104),t.e(72),t.e(76),t.e(217)]).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(351),t.e(72),t.e(76),t.e(
|
|
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(351),t.e(104),t.e(72),t.e(76),t.e(217)]).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(351),t.e(72),t.e(76),t.e(296)]).then(t.bind(t,4296))},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,[335]]};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 u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];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})},u=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.0",()=>Promise.all([i.e(961),i.e(351),i.e(478),i.e(104),i.e(329),i.e(72),i.e(76),i.e(250),i.e(987)]).then(()=>()=>i(329))),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]=u.length?Promise.all(u).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 u,c,f=s<r.length?(typeof r[s])[0]:"";if(i>=n.length||"o"==(c=(typeof(u=n[i]))[0]))return!l||("u"==f?s>o&&!a:""==f!=a);if("u"==c){if(!l||"u"!=f)return!1}else if(l)if(f==c)if(s<=o){if(u!=r[s])return!1}else{if(a?u>r[s]:u<r[s])return!1;u!=r[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||c<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,u,c)=>{if(!((e,r)=>e&&i.o(e,r))(a,s))return o(e,s,c);var f,p,d=n(a,s,l);return t(u,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,u),"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(351),i.e(478),i.e(104),i.e(329),i.e(72),i.e(76),i.e(250)]).then(()=>()=>i(329))),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 u={72:[6072],76:[2076],250:[231,3083,7114],792:[5987],987:[5987]},c={};i.f.consumes=(e,r)=>{i.o(u,e)&&u[e].forEach(e=>{if(i.o(s,e))return r.push(s[e]);if(!c[e]){var t=r=>{s[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};c[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,u=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);u<a.length;u++)o=a[u],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)})();
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"initial": false,
|
|
70
70
|
"entry": false,
|
|
71
71
|
"recorded": false,
|
|
72
|
-
"size":
|
|
72
|
+
"size": 3773,
|
|
73
73
|
"sizes": {
|
|
74
|
-
"javascript":
|
|
74
|
+
"javascript": 3773
|
|
75
75
|
},
|
|
76
76
|
"names": [],
|
|
77
77
|
"idHints": [],
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"auxiliaryFiles": [
|
|
85
85
|
"91.js.map"
|
|
86
86
|
],
|
|
87
|
-
"hash": "
|
|
87
|
+
"hash": "03ed148d0667e21e",
|
|
88
88
|
"childrenByOrder": {}
|
|
89
89
|
},
|
|
90
90
|
{
|
|
@@ -262,9 +262,9 @@
|
|
|
262
262
|
"initial": false,
|
|
263
263
|
"entry": false,
|
|
264
264
|
"recorded": false,
|
|
265
|
-
"size":
|
|
265
|
+
"size": 650,
|
|
266
266
|
"sizes": {
|
|
267
|
-
"javascript":
|
|
267
|
+
"javascript": 650
|
|
268
268
|
},
|
|
269
269
|
"names": [],
|
|
270
270
|
"idHints": [],
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
"auxiliaryFiles": [
|
|
279
279
|
"296.js.map"
|
|
280
280
|
],
|
|
281
|
-
"hash": "
|
|
281
|
+
"hash": "304812362196074c",
|
|
282
282
|
"childrenByOrder": {}
|
|
283
283
|
},
|
|
284
284
|
{
|
|
@@ -286,9 +286,9 @@
|
|
|
286
286
|
"initial": false,
|
|
287
287
|
"entry": false,
|
|
288
288
|
"recorded": false,
|
|
289
|
-
"size":
|
|
289
|
+
"size": 1806,
|
|
290
290
|
"sizes": {
|
|
291
|
-
"javascript":
|
|
291
|
+
"javascript": 1806
|
|
292
292
|
},
|
|
293
293
|
"names": [],
|
|
294
294
|
"idHints": [],
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"300.js"
|
|
301
301
|
],
|
|
302
302
|
"auxiliaryFiles": [],
|
|
303
|
-
"hash": "
|
|
303
|
+
"hash": "f7679ff13ca9ce9a",
|
|
304
304
|
"childrenByOrder": {}
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"auxiliaryFiles": [
|
|
404
404
|
"openmrs-esm-template-app.js.map"
|
|
405
405
|
],
|
|
406
|
-
"hash": "
|
|
406
|
+
"hash": "9ee0e3af260f52f5",
|
|
407
407
|
"childrenByOrder": {}
|
|
408
408
|
},
|
|
409
409
|
{
|
|
@@ -481,30 +481,6 @@
|
|
|
481
481
|
"hash": "b95235df99d1a2db",
|
|
482
482
|
"childrenByOrder": {}
|
|
483
483
|
},
|
|
484
|
-
{
|
|
485
|
-
"rendered": true,
|
|
486
|
-
"initial": false,
|
|
487
|
-
"entry": false,
|
|
488
|
-
"recorded": false,
|
|
489
|
-
"size": 655,
|
|
490
|
-
"sizes": {
|
|
491
|
-
"javascript": 655
|
|
492
|
-
},
|
|
493
|
-
"names": [],
|
|
494
|
-
"idHints": [],
|
|
495
|
-
"runtime": [
|
|
496
|
-
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
497
|
-
"main"
|
|
498
|
-
],
|
|
499
|
-
"files": [
|
|
500
|
-
"477.js"
|
|
501
|
-
],
|
|
502
|
-
"auxiliaryFiles": [
|
|
503
|
-
"477.js.map"
|
|
504
|
-
],
|
|
505
|
-
"hash": "2744b8c5ed1e4030",
|
|
506
|
-
"childrenByOrder": {}
|
|
507
|
-
},
|
|
508
484
|
{
|
|
509
485
|
"rendered": true,
|
|
510
486
|
"initial": false,
|
|
@@ -607,10 +583,10 @@
|
|
|
607
583
|
"initial": true,
|
|
608
584
|
"entry": true,
|
|
609
585
|
"recorded": false,
|
|
610
|
-
"size":
|
|
586
|
+
"size": 24912,
|
|
611
587
|
"sizes": {
|
|
612
588
|
"consume-shared": 42,
|
|
613
|
-
"javascript":
|
|
589
|
+
"javascript": 3773,
|
|
614
590
|
"share-init": 252,
|
|
615
591
|
"runtime": 20845
|
|
616
592
|
},
|
|
@@ -627,7 +603,7 @@
|
|
|
627
603
|
"auxiliaryFiles": [
|
|
628
604
|
"main.js.map"
|
|
629
605
|
],
|
|
630
|
-
"hash": "
|
|
606
|
+
"hash": "308f11c72ea3b774",
|
|
631
607
|
"childrenByOrder": {}
|
|
632
608
|
},
|
|
633
609
|
{
|
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
|
|
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 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.2"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -48,11 +48,6 @@ export const blueBox = getAsyncLifecycle(() => import('./boxes/extensions/blue-b
|
|
|
48
48
|
|
|
49
49
|
export const brandBox = getAsyncLifecycle(() => import('./boxes/extensions/brand-box.component'), options);
|
|
50
50
|
|
|
51
|
-
export const prescriptionsActionButton = getAsyncLifecycle(
|
|
52
|
-
() => import('./prescriptions-actions/prescriptions-action-button.component'),
|
|
53
|
-
options,
|
|
54
|
-
);
|
|
55
|
-
|
|
56
51
|
export const prescriptionsActionMenuItem = getAsyncLifecycle(
|
|
57
52
|
() => import('./prescriptions-actions/prescriptions-action-menu-item.component'),
|
|
58
53
|
options,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { OverflowMenuItem } from '@carbon/react';
|
|
3
|
-
import {
|
|
3
|
+
import { launchWorkspace } from '@openmrs/esm-framework';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
|
|
6
6
|
const PrescriptionsActionMenuItem: React.FC = () => {
|
|
7
7
|
const { t } = useTranslation();
|
|
8
8
|
|
|
9
9
|
const handleClick = useCallback(() => {
|
|
10
|
-
|
|
10
|
+
launchWorkspace('active-prescriptions-workspace');
|
|
11
11
|
}, []);
|
|
12
12
|
|
|
13
13
|
return (
|
package/src/routes.json
CHANGED
|
@@ -20,12 +20,6 @@
|
|
|
20
20
|
"component": "brandBox",
|
|
21
21
|
"slot": "Boxes"
|
|
22
22
|
},
|
|
23
|
-
{
|
|
24
|
-
"name": "Prescriptions",
|
|
25
|
-
"component": "prescriptionsActionButton",
|
|
26
|
-
"slot": "patient-actions-slot",
|
|
27
|
-
"order": 50
|
|
28
|
-
},
|
|
29
23
|
{
|
|
30
24
|
"name": "Prescriptions action",
|
|
31
25
|
"component": "prescriptionsActionMenuItem",
|
|
@@ -42,5 +36,15 @@
|
|
|
42
36
|
"component": "root",
|
|
43
37
|
"route": "root"
|
|
44
38
|
}
|
|
39
|
+
],
|
|
40
|
+
"workspaces": [
|
|
41
|
+
{
|
|
42
|
+
"name": "active-prescriptions-workspace",
|
|
43
|
+
"title": "activePrescriptionsWorkspaceTitle",
|
|
44
|
+
"component": "root",
|
|
45
|
+
"type": "active-prescriptions",
|
|
46
|
+
"canHide": true,
|
|
47
|
+
"width": "wider"
|
|
48
|
+
}
|
|
45
49
|
]
|
|
46
50
|
}
|
package/dist/477.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[477],{4477(e,t,c){c.r(t),c.d(t,{default:()=>a});var s=c(6072),n=c(3351),i=c(5987),r=c(2076);const a=function(){var e=(0,r.useTranslation)().t,t=(0,s.useCallback)(function(){(0,i.navigate)({to:"${openmrsSpaBase}root"})},[]);return s.createElement(n.$nd,{kind:"tertiary",size:"sm",onClick:t},e("prescriptionsActionButton","Active prescriptions"))}}}]);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { useCallback } from 'react';
|
|
2
|
-
import { Button } from '@carbon/react';
|
|
3
|
-
import { navigate } from '@openmrs/esm-framework';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
-
|
|
6
|
-
const PrescriptionsActionButton: React.FC = () => {
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
|
|
9
|
-
const handleClick = useCallback(() => {
|
|
10
|
-
navigate({ to: '${openmrsSpaBase}root' });
|
|
11
|
-
}, []);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Button kind="tertiary" size="sm" onClick={handleClick}>
|
|
15
|
-
{t('prescriptionsActionButton', 'Active prescriptions')}
|
|
16
|
-
</Button>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default PrescriptionsActionButton;
|