@cc-openmrs/cc-esm-active-prescriptions 1.0.62 → 1.0.63
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/279.js +1 -1
- package/dist/499.js +1 -1
- package/dist/68.js +2 -0
- package/dist/68.js.LICENSE.txt +9 -0
- package/dist/845.js +1 -1
- package/dist/866.js +2 -0
- package/dist/{795.js.LICENSE.txt → 866.js.LICENSE.txt} +0 -10
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +0 -31
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +56 -29
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/prescriptions-actions/prescriptions-action-button.component.tsx +9 -5
- package/dist/795.js +0 -2
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* tabbable 6.4.0
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-is.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react-jsx-runtime.production.min.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
1
|
/**
|
|
33
2
|
* @license React
|
|
34
3
|
* use-sync-external-store-shim.production.js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _cc_openmrs_cc_esm_active_prescriptions;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,c,u,f,p,d,h,m,v,g,b,y,_,w={6487(e,r,t){var n={"./start":()=>Promise.all([t.e(
|
|
1
|
+
var _cc_openmrs_cc_esm_active_prescriptions;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,c,u,f,p,d,h,m,v,g,b,y,_,w={6487(e,r,t){var n={"./start":()=>Promise.all([t.e(68),t.e(72),t.e(465),t.e(995),t.e(499)]).then(()=>()=>t(2499))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return w[e].call(t.exports,t,t.exports,S),t.exports}S.m=w,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.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);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>t[e]);return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce((r,t)=>(S.f[t](e,r),r),[])),S.u=e=>e+".js",S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@cc-openmrs/cc-esm-active-prescriptions:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+o){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{S.S={};var e={},r={};S.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];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@cc-openmrs/cc-esm-active-prescriptions",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","8.0.0",()=>Promise.all([S.e(635),S.e(866),S.e(279),S.e(68),S.e(72),S.e(465),S.e(995),S.e(561),S.e(920)]).then(()=>()=>S(2279))),s("dayjs","1.11.20",()=>S.e(353).then(()=>()=>S(6734))),s("react-dom","18.3.1",()=>Promise.all([S.e(961),S.e(72)]).then(()=>()=>S(961))),s("react-i18next","16.5.8",()=>Promise.all([S.e(635),S.e(72),S.e(692)]).then(()=>()=>S(3311))),s("react","18.3.1",()=>S.e(540).then(()=>()=>S(6540))),s("rxjs","6.6.7",()=>S.e(184).then(()=>()=>S(3184))),s("swr/_internal","2.2.5",()=>Promise.all([S.e(993),S.e(72)]).then(()=>()=>S(4993))),s("swr/immutable","2.2.5",()=>Promise.all([S.e(72),S.e(465),S.e(606)]).then(()=>()=>S(4225))),s("swr/infinite","2.2.5",()=>Promise.all([S.e(72),S.e(465),S.e(422)]).then(()=>()=>S(3041)))),e[t]=l.length?Promise.all(l).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(/\/[^\/]+$/,"/"),S.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,l=!0;;i++,a++){var c,u,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(u=(typeof(c=r[a]))[0]))return!l||("u"==f?i>t&&!n:""==f!=n);if("u"==u){if(!l||"u"!=f)return!1}else if(l)if(f==u)if(i<=t){if(c!=e[i])return!1}else{if(n?c>e[i]:c<e[i])return!1;c!=e[i]&&(l=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||u<f!=n)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,i--)}}var p=[],d=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?d()|d():2==h?d()&d():h?s(h,r):!d())}return!!d()},l=(e,r)=>e&&S.o(e,r),c=e=>(e.loaded=1,e.get()),u=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var n=t?u(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},p=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",d=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,o,a)):e(r,S.S[r],t,n,o,a)})((e,r,t,n,o,a)=>{if(!l(r,t))return m(e,t,a);var i=f(r,t,n);return s(o,i)||h(p(r,t,i,o)),c(r[t][i])}),g={},b={6072:()=>v("default","react",!1,[1,18],()=>S.e(540).then(()=>()=>S(6540))),8465:()=>v("default","swr/_internal",!1,[1,2],()=>S.e(993).then(()=>()=>S(4993))),2076:()=>v("default","react-i18next",!1,[1,16],()=>Promise.all([S.e(635),S.e(311)]).then(()=>()=>S(3311))),2646:()=>v("default","react-dom",!1,[1,18],()=>S.e(961).then(()=>()=>S(961))),3083:()=>v("default","rxjs",!1,[1,6],()=>S.e(184).then(()=>()=>S(3184))),231:()=>v("default","dayjs",!1,[1,1],()=>S.e(353).then(()=>()=>S(6734))),4209:()=>v("default","swr/immutable",!1,[1,2],()=>S.e(225).then(()=>()=>S(4225))),6339:()=>v("default","swr/infinite",!1,[1,2],()=>S.e(41).then(()=>()=>S(3041))),6920:()=>v("default","@openmrs/esm-framework",!1,[1,9],()=>Promise.all([S.e(635),S.e(866),S.e(279),S.e(561)]).then(()=>()=>S(2279)))},y={72:[6072],465:[8465],499:[6920],561:[231,4209,6339],920:[6920],995:[2076,2646,3083]},_={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach(e=>{if(S.o(g,e))return r.push(g[e]);if(!_[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};_[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={338:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(465|561|72|920|995)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=S.p+S.u(r),i=new Error;S.l(a,t=>{if(S.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;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some(r=>0!==e[r])){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);s&&s(S)}for(r&&r(t);l<a.length;l++)o=a[l],S.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))})(),S.nc=void 0;var j=S(6487);_cc_openmrs_cc_esm_active_prescriptions=j})();
|
|
@@ -46,6 +46,33 @@
|
|
|
46
46
|
"hash": "6ab7a8d81edef660",
|
|
47
47
|
"childrenByOrder": {}
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"rendered": true,
|
|
51
|
+
"initial": false,
|
|
52
|
+
"entry": false,
|
|
53
|
+
"recorded": false,
|
|
54
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
55
|
+
"size": 351969,
|
|
56
|
+
"sizes": {
|
|
57
|
+
"javascript": 351969
|
|
58
|
+
},
|
|
59
|
+
"names": [],
|
|
60
|
+
"idHints": [
|
|
61
|
+
"vendors"
|
|
62
|
+
],
|
|
63
|
+
"runtime": [
|
|
64
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
65
|
+
"main"
|
|
66
|
+
],
|
|
67
|
+
"files": [
|
|
68
|
+
"68.js"
|
|
69
|
+
],
|
|
70
|
+
"auxiliaryFiles": [
|
|
71
|
+
"68.js.map"
|
|
72
|
+
],
|
|
73
|
+
"hash": "a353dba8ad4288a7",
|
|
74
|
+
"childrenByOrder": {}
|
|
75
|
+
},
|
|
49
76
|
{
|
|
50
77
|
"rendered": false,
|
|
51
78
|
"initial": false,
|
|
@@ -168,9 +195,9 @@
|
|
|
168
195
|
"entry": false,
|
|
169
196
|
"recorded": false,
|
|
170
197
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
171
|
-
"size":
|
|
198
|
+
"size": 4479506,
|
|
172
199
|
"sizes": {
|
|
173
|
-
"javascript":
|
|
200
|
+
"javascript": 4479506
|
|
174
201
|
},
|
|
175
202
|
"names": [],
|
|
176
203
|
"idHints": [
|
|
@@ -186,7 +213,7 @@
|
|
|
186
213
|
"auxiliaryFiles": [
|
|
187
214
|
"279.js.map"
|
|
188
215
|
],
|
|
189
|
-
"hash": "
|
|
216
|
+
"hash": "9188bc7df5f43886",
|
|
190
217
|
"childrenByOrder": {}
|
|
191
218
|
},
|
|
192
219
|
{
|
|
@@ -286,11 +313,11 @@
|
|
|
286
313
|
"initial": true,
|
|
287
314
|
"entry": true,
|
|
288
315
|
"recorded": false,
|
|
289
|
-
"size":
|
|
316
|
+
"size": 21802,
|
|
290
317
|
"sizes": {
|
|
291
318
|
"javascript": 42,
|
|
292
319
|
"share-init": 378,
|
|
293
|
-
"runtime":
|
|
320
|
+
"runtime": 21382
|
|
294
321
|
},
|
|
295
322
|
"names": [
|
|
296
323
|
"@cc-openmrs/cc-esm-active-prescriptions"
|
|
@@ -305,7 +332,7 @@
|
|
|
305
332
|
"auxiliaryFiles": [
|
|
306
333
|
"openmrs-esm-template-app.js.map"
|
|
307
334
|
],
|
|
308
|
-
"hash": "
|
|
335
|
+
"hash": "35735dfffb3c41b6",
|
|
309
336
|
"childrenByOrder": {}
|
|
310
337
|
},
|
|
311
338
|
{
|
|
@@ -382,10 +409,10 @@
|
|
|
382
409
|
"initial": false,
|
|
383
410
|
"entry": false,
|
|
384
411
|
"recorded": false,
|
|
385
|
-
"size":
|
|
412
|
+
"size": 5703,
|
|
386
413
|
"sizes": {
|
|
387
414
|
"consume-shared": 42,
|
|
388
|
-
"javascript":
|
|
415
|
+
"javascript": 5661
|
|
389
416
|
},
|
|
390
417
|
"names": [],
|
|
391
418
|
"idHints": [],
|
|
@@ -398,7 +425,7 @@
|
|
|
398
425
|
"auxiliaryFiles": [
|
|
399
426
|
"499.js.map"
|
|
400
427
|
],
|
|
401
|
-
"hash": "
|
|
428
|
+
"hash": "dd3e08a5cebec944",
|
|
402
429
|
"childrenByOrder": {}
|
|
403
430
|
},
|
|
404
431
|
{
|
|
@@ -594,12 +621,12 @@
|
|
|
594
621
|
"initial": true,
|
|
595
622
|
"entry": true,
|
|
596
623
|
"recorded": false,
|
|
597
|
-
"size":
|
|
624
|
+
"size": 380138,
|
|
598
625
|
"sizes": {
|
|
599
626
|
"consume-shared": 252,
|
|
600
|
-
"javascript":
|
|
627
|
+
"javascript": 357630,
|
|
601
628
|
"share-init": 378,
|
|
602
|
-
"runtime":
|
|
629
|
+
"runtime": 21878
|
|
603
630
|
},
|
|
604
631
|
"names": [
|
|
605
632
|
"main"
|
|
@@ -614,7 +641,7 @@
|
|
|
614
641
|
"auxiliaryFiles": [
|
|
615
642
|
"main.js.map"
|
|
616
643
|
],
|
|
617
|
-
"hash": "
|
|
644
|
+
"hash": "a6ae7740a7a7ee6b",
|
|
618
645
|
"childrenByOrder": {}
|
|
619
646
|
},
|
|
620
647
|
{
|
|
@@ -622,26 +649,23 @@
|
|
|
622
649
|
"initial": false,
|
|
623
650
|
"entry": false,
|
|
624
651
|
"recorded": false,
|
|
625
|
-
"
|
|
626
|
-
"size": 2471132,
|
|
652
|
+
"size": 55232,
|
|
627
653
|
"sizes": {
|
|
628
|
-
"javascript":
|
|
654
|
+
"javascript": 55232
|
|
629
655
|
},
|
|
630
656
|
"names": [],
|
|
631
|
-
"idHints": [
|
|
632
|
-
"vendors"
|
|
633
|
-
],
|
|
657
|
+
"idHints": [],
|
|
634
658
|
"runtime": [
|
|
635
659
|
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
636
660
|
"main"
|
|
637
661
|
],
|
|
638
662
|
"files": [
|
|
639
|
-
"
|
|
663
|
+
"845.js"
|
|
640
664
|
],
|
|
641
665
|
"auxiliaryFiles": [
|
|
642
|
-
"
|
|
666
|
+
"845.js.map"
|
|
643
667
|
],
|
|
644
|
-
"hash": "
|
|
668
|
+
"hash": "f3a7c9efdf021458",
|
|
645
669
|
"childrenByOrder": {}
|
|
646
670
|
},
|
|
647
671
|
{
|
|
@@ -649,23 +673,26 @@
|
|
|
649
673
|
"initial": false,
|
|
650
674
|
"entry": false,
|
|
651
675
|
"recorded": false,
|
|
652
|
-
"
|
|
676
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
677
|
+
"size": 2129072,
|
|
653
678
|
"sizes": {
|
|
654
|
-
"javascript":
|
|
679
|
+
"javascript": 2129072
|
|
655
680
|
},
|
|
656
681
|
"names": [],
|
|
657
|
-
"idHints": [
|
|
682
|
+
"idHints": [
|
|
683
|
+
"vendors"
|
|
684
|
+
],
|
|
658
685
|
"runtime": [
|
|
659
686
|
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
660
687
|
"main"
|
|
661
688
|
],
|
|
662
689
|
"files": [
|
|
663
|
-
"
|
|
690
|
+
"866.js"
|
|
664
691
|
],
|
|
665
692
|
"auxiliaryFiles": [
|
|
666
|
-
"
|
|
693
|
+
"866.js.map"
|
|
667
694
|
],
|
|
668
|
-
"hash": "
|
|
695
|
+
"hash": "d852614ab74618d2",
|
|
669
696
|
"childrenByOrder": {}
|
|
670
697
|
},
|
|
671
698
|
{
|
|
@@ -685,7 +712,7 @@
|
|
|
685
712
|
],
|
|
686
713
|
"files": [],
|
|
687
714
|
"auxiliaryFiles": [],
|
|
688
|
-
"hash": "
|
|
715
|
+
"hash": "bbaf48b4225a1590",
|
|
689
716
|
"childrenByOrder": {}
|
|
690
717
|
},
|
|
691
718
|
{
|
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":"blueBox","slot":"Boxes"},{"name":"prescriptions-action-menu","component":"prescriptionsActionButton","slot":"action-menu-patient-chart-items-slot"}],"workspaces":[{"name":"active-prescriptions","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":false,"width":"wider"}],"version":"1.0.
|
|
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":"blueBox","slot":"Boxes"},{"name":"prescriptions-action-menu","component":"prescriptionsActionButton","slot":"action-menu-patient-chart-items-slot"}],"workspaces":[{"name":"active-prescriptions","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":false,"width":"wider"}],"version":"1.0.63"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { launchWorkspace } from '@openmrs/esm-framework';
|
|
2
|
+
import { ActionMenuButton, launchWorkspace } from '@openmrs/esm-framework';
|
|
4
3
|
import { Events } from '@carbon/react/icons';
|
|
5
4
|
import { useTranslation } from 'react-i18next';
|
|
6
5
|
|
|
7
6
|
const handleClick = () => launchWorkspace('active-prescriptions');
|
|
7
|
+
const getEventsIcon = (props: object) => <Events {...props} />;
|
|
8
8
|
|
|
9
9
|
const PrescriptionsActionButton: React.FC = () => {
|
|
10
10
|
const { t } = useTranslation();
|
|
11
11
|
const label = t('activePrescriptions', 'Active prescriptions');
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<
|
|
15
|
-
{
|
|
16
|
-
|
|
14
|
+
<ActionMenuButton
|
|
15
|
+
getIcon={getEventsIcon}
|
|
16
|
+
handler={handleClick}
|
|
17
|
+
iconDescription={label}
|
|
18
|
+
label={label}
|
|
19
|
+
type="active-prescriptions"
|
|
20
|
+
/>
|
|
17
21
|
);
|
|
18
22
|
};
|
|
19
23
|
|