@uxland/primary-shell 7.35.5 → 7.35.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/{component-p9xkUhDo.js → component-CcAfjHyB.js} +2 -2
- package/dist/{component-p9xkUhDo.js.map → component-CcAfjHyB.js.map} +1 -1
- package/dist/{index-BRNyQKMi.js → index-BvcX6DDS.js} +9 -6
- package/dist/{index-BRNyQKMi.js.map → index-BvcX6DDS.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/features/navigate-to-ecap/navigate-to-ecap.ts +8 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as s, w as e, y as r, c as t, d as n, P as o, Q as l, o as c, p as g, n as p, e as m, u as P, g as v, q as u, f as E, v as h, j as R, l as y, a as S, m as d, x as w } from "./index-
|
|
1
|
+
import { E as s, w as e, y as r, c as t, d as n, P as o, Q as l, o as c, p as g, n as p, e as m, u as P, g as v, q as u, f as E, v as h, j as R, l as y, a as S, m as d, x as w } from "./index-BvcX6DDS.js";
|
|
2
2
|
export {
|
|
3
3
|
s as EcapEventManager,
|
|
4
4
|
e as PrimariaContentSwitcher,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -8513,7 +8513,7 @@ ${J.searchString?.length>1?ke$1`
|
|
|
8513
8513
|
></dss-alert>
|
|
8514
8514
|
`:D$5}};Zs.styles=i$R`
|
|
8515
8515
|
${r$O(styles$2)}
|
|
8516
|
-
`;let PrimariaCharacterLimitBadge=Zs;__decorateClass$4([n$y({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterCount"),__decorateClass$4([n$y({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterLimit"),__decorateClass$4([n$y({type:String})],PrimariaCharacterLimitBadge.prototype,"label");var __defProp$3=Object.defineProperty,__decorateClass$3=(J,W,X,te)=>{for(var re=void 0,oe=J.length-1,ne;oe>=0;oe--)(ne=J[oe])&&(re=ne(W,X,re)||re);return re&&__defProp$3(W,X,re),re};class PrimariaRegion extends PrimariaRegionHost(h$p){constructor(){super(),this.name="",this._instanceConstructor=Object.create(this.constructor),Object.defineProperty(this,"constructor",{get:()=>this._instanceConstructor,configurable:!0})}createRenderRoot(){return this}get shadowRoot(){return this}connectedCallback(){if(h$p.prototype.connectedCallback.call(this),this.name){const W=`${this.name}-container`,X=document.createElement("div");X.id=W,X.style.cssText="width: 100%; height: 100%; min-height: 1px",this.appendChild(X),this._instanceConstructor[o$13]={...this._instanceConstructor[o$13],region:{targetId:W,name:this.name}},this.create&&this.create();const te=Object.getPrototypeOf(this),re=Object.getPrototypeOf(te);re.connectedCallback&&re.connectedCallback.call(this)}}willUpdate(W){if(super.willUpdate(W),this.name&&W.has("name")){const X=`${this.name}-container`;this._instanceConstructor[o$13]={...this._instanceConstructor[o$13],region:{targetId:X,name:this.name}}}}render(){return ke$1``}}__decorateClass$3([n$y({type:String})],PrimariaRegion.prototype,"name");const useSharedUI=()=>{t$v("primaria-content-switcher")(PrimariaContentSwitcher),t$v("primaria-nav-item")(PrimariaNavItem),t$v("primaria-rich-text-editor")(PrimariaRichTextEditor),t$v("primaria-nav-tree-menu")(PrimariaNavTreeMenu),t$v("primaria-character-limit-badge")(PrimariaCharacterLimitBadge),t$v("primaria-region")(PrimariaRegion)},registerPdfViewerNavItem=()=>{shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:pdfViewerId,sortHint:"0110",factory:()=>{const J=new PrimariaNavItem({icon:"picture_as_pdf",label:translate$1("pdfManager.navButtonLabel"),callbackFn:()=>{shellApi.regionManager.activateMainView(pdfViewerId)}});return Promise.resolve(J)}})},registerPDFVisorMainView=()=>{shellApi.regionManager.registerMainView({id:pdfViewerId,factory:()=>{const J=new PdfVisor;return Promise.resolve(J)}})},getPatientCip=async J=>await J.broker.send("get_patient_cip"),navigateToEcap=async(J,W="NO_TANCAR",X={},te=!0)=>{const re={...X};if(te){const oe=await getPatientCip(shellApi);re.CIP=oe
|
|
8516
|
+
`;let PrimariaCharacterLimitBadge=Zs;__decorateClass$4([n$y({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterCount"),__decorateClass$4([n$y({type:Number})],PrimariaCharacterLimitBadge.prototype,"characterLimit"),__decorateClass$4([n$y({type:String})],PrimariaCharacterLimitBadge.prototype,"label");var __defProp$3=Object.defineProperty,__decorateClass$3=(J,W,X,te)=>{for(var re=void 0,oe=J.length-1,ne;oe>=0;oe--)(ne=J[oe])&&(re=ne(W,X,re)||re);return re&&__defProp$3(W,X,re),re};class PrimariaRegion extends PrimariaRegionHost(h$p){constructor(){super(),this.name="",this._instanceConstructor=Object.create(this.constructor),Object.defineProperty(this,"constructor",{get:()=>this._instanceConstructor,configurable:!0})}createRenderRoot(){return this}get shadowRoot(){return this}connectedCallback(){if(h$p.prototype.connectedCallback.call(this),this.name){const W=`${this.name}-container`,X=document.createElement("div");X.id=W,X.style.cssText="width: 100%; height: 100%; min-height: 1px",this.appendChild(X),this._instanceConstructor[o$13]={...this._instanceConstructor[o$13],region:{targetId:W,name:this.name}},this.create&&this.create();const te=Object.getPrototypeOf(this),re=Object.getPrototypeOf(te);re.connectedCallback&&re.connectedCallback.call(this)}}willUpdate(W){if(super.willUpdate(W),this.name&&W.has("name")){const X=`${this.name}-container`;this._instanceConstructor[o$13]={...this._instanceConstructor[o$13],region:{targetId:X,name:this.name}}}}render(){return ke$1``}}__decorateClass$3([n$y({type:String})],PrimariaRegion.prototype,"name");const useSharedUI=()=>{t$v("primaria-content-switcher")(PrimariaContentSwitcher),t$v("primaria-nav-item")(PrimariaNavItem),t$v("primaria-rich-text-editor")(PrimariaRichTextEditor),t$v("primaria-nav-tree-menu")(PrimariaNavTreeMenu),t$v("primaria-character-limit-badge")(PrimariaCharacterLimitBadge),t$v("primaria-region")(PrimariaRegion)},registerPdfViewerNavItem=()=>{shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.navigationMenu,{id:pdfViewerId,sortHint:"0110",factory:()=>{const J=new PrimariaNavItem({icon:"picture_as_pdf",label:translate$1("pdfManager.navButtonLabel"),callbackFn:()=>{shellApi.regionManager.activateMainView(pdfViewerId)}});return Promise.resolve(J)}})},registerPDFVisorMainView=()=>{shellApi.regionManager.registerMainView({id:pdfViewerId,factory:()=>{const J=new PdfVisor;return Promise.resolve(J)}})},getPatientCip=async J=>await J.broker.send("get_patient_cip"),navigateToEcap=async(J,W="NO_TANCAR",X={},te=!0)=>{const re={...X};try{if(te){const oe=await getPatientCip(shellApi);re.CIP=oe,shellApi.ecapEventManager.publish(J,W,re)}}catch(oe){console.error(oe)}},template$2=J=>ke$1`
|
|
8517
8517
|
<dss-action-menu-item @click=${J.callbackFn} notificationsstate="error" rightIcon=${J.icon} label=${J.label}></dss-action-menu-item>
|
|
8518
8518
|
`;var __defProp$2=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$2=(J,W,X,te)=>{for(var re=te>1?void 0:te?__getOwnPropDesc$1(W,X):W,oe=J.length-1,ne;oe>=0;oe--)(ne=J[oe])&&(re=(te?ne(W,X,re):ne(re))||re);return te&&re&&__defProp$2(W,X,re),re};exports.QuickActionItem=class extends h$p{constructor(W,X,te){super(),this.icon="",this.label="",this.callbackFn=()=>{},this.icon=W,this.label=X,this.callbackFn=te}render(){return ke$1`${template$2(this)}`}},__decorateClass$2([n$y({type:String})],exports.QuickActionItem.prototype,"icon",2),__decorateClass$2([n$y({type:String})],exports.QuickActionItem.prototype,"label",2),__decorateClass$2([n$y({attribute:!1})],exports.QuickActionItem.prototype,"callbackFn",2),exports.QuickActionItem=__decorateClass$2([t$v("quick-action-item")],exports.QuickActionItem);const styles$1=":host{display:block;width:100%}.divider-container{display:flex;justify-content:center}.divider-container hr{margin:0}.divider-opened{width:220px}.divider-closed{width:40px}",template$1=J=>ke$1`
|
|
8519
8519
|
<div class="divider-container">
|