@cc-openmrs/cc-esm-active-prescriptions 1.0.63 → 1.0.65
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/cc-openmrs-cc-esm-active-prescriptions-1.0.63.tgz +0 -0
- package/dist/177.js +2 -0
- package/dist/184.js +1 -2
- package/dist/197.js +1 -1
- package/dist/225.js +1 -1
- package/dist/237.js +2 -0
- package/dist/{606.js.LICENSE.txt → 237.js.LICENSE.txt} +2 -2
- package/dist/300.js +1 -1
- package/dist/31.js +2 -0
- package/dist/{68.js.LICENSE.txt → 31.js.LICENSE.txt} +2 -2
- package/dist/311.js +2 -1
- package/dist/{184.js.LICENSE.txt → 311.js.LICENSE.txt} +37 -0
- package/dist/319.js +1 -1
- package/dist/335.js +1 -1
- package/dist/41.js +1 -1
- package/dist/422.js +1 -2
- package/dist/437.js +1 -0
- package/dist/533.js +1 -0
- package/dist/537.js +1 -1
- package/dist/540.js +1 -1
- package/dist/55.js +1 -1
- package/dist/606.js +1 -2
- package/dist/618.js +2 -0
- package/dist/618.js.LICENSE.txt +9 -0
- package/dist/635.js +1 -1
- package/dist/647.js +2 -0
- package/dist/647.js.LICENSE.txt +9 -0
- package/dist/652.js +1 -1
- package/dist/679.js +1 -1
- package/dist/692.js +1 -1
- package/dist/761.js +2 -0
- package/dist/761.js.LICENSE.txt +29 -0
- package/dist/875.js +2 -0
- package/dist/875.js.LICENSE.txt +5 -0
- package/dist/961.js +1 -1
- package/dist/966.js +1 -1
- package/dist/99.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +221 -166
- package/dist/routes.json +1 -1
- package/package.json +26 -47
- package/src/carbon-react.d.ts +9 -0
- package/src/index.ts +6 -30
- package/src/prescriptions-actions/prescriptions-action-button.component.tsx +10 -8
- package/dist/279.js +0 -2
- package/dist/279.js.LICENSE.txt +0 -14
- package/dist/353.js +0 -1
- package/dist/499.js +0 -1
- package/dist/68.js +0 -2
- package/dist/845.js +0 -1
- package/dist/866.js +0 -2
- package/dist/866.js.LICENSE.txt +0 -30
- package/dist/993.js +0 -1
- package/src/prescriptions-actions/prescriptions-action-menu-item.component.tsx +0 -29
- package/src/prescriptions-actions/prescriptions-action-menu-item.scss +0 -12
- /package/dist/{422.js.LICENSE.txt → 177.js.LICENSE.txt} +0 -0
package/dist/993.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([[993],{4993(e,t,n){n.r(t),n.d(t,{INFINITE_PREFIX:()=>H,IS_REACT_LEGACY:()=>S,IS_SERVER:()=>k,OBJECT:()=>s,SWRConfig:()=>G,SWRGlobalState:()=>p,UNDEFINED:()=>i,cache:()=>$,compare:()=>U,createCacheHelper:()=>y,defaultConfig:()=>J,defaultConfigOptions:()=>O,getTimestamp:()=>V,hasRequestAnimationFrame:()=>v,initCache:()=>P,internalMutate:()=>M,isDocumentDefined:()=>g,isFunction:()=>a,isPromiseLike:()=>l,isUndefined:()=>c,isWindowDefined:()=>w,mergeConfigs:()=>j,mergeObjects:()=>u,mutate:()=>q,noop:()=>r,normalize:()=>Y,preload:()=>Q,preset:()=>T,rAF:()=>I,revalidateEvents:()=>W,serialize:()=>F,slowConnection:()=>L,stableHash:()=>_,subscribeCallback:()=>te,useIsomorphicLayoutEffect:()=>A,useSWRConfig:()=>K,withArgs:()=>ee,withMiddleware:()=>ne});var o=n(6072);const r=()=>{},i=r(),s=Object,c=e=>e===i,a=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=e=>a(e.then),f=new WeakMap;let d=0;const _=e=>{const t=typeof e,n=e&&e.constructor,o=n==Date;let r,i;if(s(e)!==e||o||n==RegExp)r=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(r=f.get(e),r)return r;if(r=++d+"~",f.set(e,r),n==Array){for(r="@",i=0;i<e.length;i++)r+=_(e[i])+",";f.set(e,r)}if(n==s){r="#";const t=s.keys(e).sort();for(;!c(i=t.pop());)c(e[i])||(r+=i+":"+_(e[i])+",");f.set(e,r)}}return r},p=new WeakMap,h={},E={},m="undefined",w=typeof window!=m,g=typeof document!=m,v=()=>w&&typeof window.requestAnimationFrame!=m,y=(e,t)=>{const n=p.get(e);return[()=>!c(t)&&e.get(t)||h,o=>{if(!c(t)){const r=e.get(t);t in E||(E[t]=r),n[5](t,u(r,o),r||h)}},n[6],()=>!c(t)&&t in E?E[t]:!c(t)&&e.get(t)||h]};let b=!0;const[R,C]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[r,r],T={isOnline:()=>b,isVisible:()=>{const e=g&&document.visibilityState;return c(e)||"hidden"!==e}},O={initFocus:e=>(g&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{b=!0,e()},n=()=>{b=!1};return R("online",t),R("offline",n),()=>{C("online",t),C("offline",n)}}},S=!o.useId,k=!w||"Deno"in window,I=e=>v()?window.requestAnimationFrame(e):setTimeout(e,1),A=k?o.useEffect:o.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,L=!k&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),F=e=>{if(a(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?_(e):"",t]};let N=0;const V=()=>++N;var W={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){const[t,n,o,r]=e,s=u({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{});let f=s.populateCache;const d=s.rollbackOnError;let _=s.optimisticData;const h=s.throwOnError;if(a(n)){const e=n,o=[],r=t.keys();for(const n of r)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&o.push(n);return Promise.all(o.map(E))}return E(n);async function E(n){const[r]=F(n);if(!r)return;const[u,E]=y(t,r),[m,w,g,v]=p.get(t),b=()=>{const e=m[r];return(a(s.revalidate)?s.revalidate(u().data,n):!1!==s.revalidate)&&(delete g[r],delete v[r],e&&e[0])?e[0](2).then(()=>u().data):u().data};if(e.length<3)return b();let R,C=o;const T=V();w[r]=[T,0];const O=!c(_),S=u(),k=S.data,I=S._c,A=c(I)?k:I;if(O&&(_=a(_)?_(A,k):_,E({data:_,_c:A})),a(C))try{C=C(A)}catch(e){R=e}if(C&&l(C)){if(C=await C.catch(e=>{R=e}),T!==w[r][0]){if(R)throw R;return C}R&&O&&(e=>"function"==typeof d?d(e):!1!==d)(R)&&(f=!0,E({data:A,_c:i}))}if(f&&!R)if(a(f)){const e=f(C,A);E({data:e,error:i,_c:i})}else E({data:C,error:i,_c:i});if(w[r][1]=V(),Promise.resolve(b()).then(()=>{E({_c:i})}),!R)return C;if(h)throw R}}const x=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},P=(e,t)=>{if(!p.has(e)){const n=u(O,t),o={},s=M.bind(i,e);let c=r;const a={},l=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,o)=>{e.set(t,n);const r=a[t];if(r)for(const e of r)e(n,o)},d=()=>{if(!p.has(e)&&(p.set(e,[o,{},{},{},s,f,l]),!k)){const t=n.initFocus(setTimeout.bind(i,x.bind(i,o,0))),r=n.initReconnect(setTimeout.bind(i,x.bind(i,o,1)));c=()=>{t&&t(),r&&r(),p.delete(e)}}};return d(),[e,s,d,c]}return[e,p.get(e)[4]]},U=(e,t)=>_(e)==_(t),[$,q]=P(new Map),J=u({onLoadingSlow:r,onSuccess:r,onError:r,onErrorRetry:(e,t,n,o,r)=>{const i=n.errorRetryCount,s=r.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!c(i)&&s>i||setTimeout(o,a,r)},onDiscarded:r,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:U,isPaused:()=>!1,cache:$,mutate:q,fallback:{}},T),j=(e,t)=>{const n=u(e,t);if(t){const{use:o,fallback:r}=e,{use:i,fallback:s}=t;o&&i&&(n.use=o.concat(i)),r&&s&&(n.fallback=u(r,s))}return n},z=(0,o.createContext)({}),G=e=>{const{value:t}=e,n=(0,o.useContext)(z),r=a(t),s=(0,o.useMemo)(()=>r?t(n):t,[r,n,t]),c=(0,o.useMemo)(()=>r?s:j(n,s),[r,n,s]),l=s&&s.provider,f=(0,o.useRef)(i);l&&!f.current&&(f.current=P(l(c.cache||$),s));const d=f.current;return d&&(c.cache=d[0],c.mutate=d[1]),A(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,o.createElement)(z.Provider,u(e,{value:c}))},H="$inf$",B=w&&window.__SWR_DEVTOOLS_USE__,X=B?window.__SWR_DEVTOOLS_USE__:[],Y=e=>a(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>u(J,(0,o.useContext)(z)),Q=(e,t)=>{const[n,o]=F(e),[,,,r]=p.get($);if(r[n])return r[n];const i=t(o);return r[n]=i,i},Z=X.concat(e=>(t,n,o)=>e(t,n&&((...e)=>{const[o]=F(t),[,,,r]=p.get($);if(o.startsWith(H))return n(...e);const i=r[o];return c(i)?n(...e):(delete r[o],i)}),o)),ee=e=>function(...t){const n=K(),[o,r,i]=Y(t),s=j(n,i);let c=e;const{use:a}=s,u=(a||[]).concat(Z);for(let e=u.length;e--;)c=u[e](c);return c(o,r||s.fetcher||null,s)},te=(e,t,n)=>{const o=t[e]||(t[e]=[]);return o.push(n),()=>{const e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},ne=(e,t)=>(...n)=>{const[o,r,i]=Y(n),s=(i.use||[]).concat(t);return e(o,r,{...i,use:s})};B&&(window.__SWR_DEVTOOLS_REACT__=o)}}]);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { useCallback } from 'react';
|
|
2
|
-
import { OverflowMenuItem } from '@carbon/react';
|
|
3
|
-
import { CertificateCheck } from '@carbon/react/icons';
|
|
4
|
-
import { launchWorkspace } from '@openmrs/esm-framework';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import styles from './prescriptions-action-menu-item.scss';
|
|
7
|
-
|
|
8
|
-
const PrescriptionsActionMenuItem: React.FC = () => {
|
|
9
|
-
const { t } = useTranslation();
|
|
10
|
-
|
|
11
|
-
const handleClick = useCallback(() => {
|
|
12
|
-
launchWorkspace('active-prescriptions-workspace');
|
|
13
|
-
}, []);
|
|
14
|
-
|
|
15
|
-
const label = t('prescriptionsActionMenuItem', 'Active prescriptions');
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<OverflowMenuItem
|
|
19
|
-
itemText={
|
|
20
|
-
<span className={styles.iconOnly} aria-label={label} title={label}>
|
|
21
|
-
<CertificateCheck size={16} aria-hidden="true" />
|
|
22
|
-
</span>
|
|
23
|
-
}
|
|
24
|
-
onClick={handleClick}
|
|
25
|
-
/>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// export default PrescriptionsActionMenuItem;
|
|
File without changes
|