UNPKG

@rero/rero-ils-ui

Version:

User interface for RERO integrated library system (RERO ILS).

18 lines (16 loc) 3.36 kB
import{wa as R}from"./chunk-MTJX6JRK.js";import{b as k}from"./chunk-GQ5FIRIY.js";import{c as x,d as P}from"./chunk-4A4J5SA3.js";import{Ba as H,Ea as L,Fa as V,Ga as d,ya as O}from"./chunk-FRI676LD.js";import{wa as _}from"./chunk-WKOKZ3JO.js";import{$b as S,Cb as b,Db as h,Dd as j,Fa as y,Fc as B,Gc as E,Hc as A,Jc as N,Vc as I,Yb as D,_b as C,ac as a,bb as v,bc as r,cc as s,da as f,dc as u,dd as T,ed as F,ga as g,gb as o,ia as c,tc as M,uc as z,vd as w,yb as m}from"./chunk-3WD6XLXL.js";function U(e){let l=(t,i)=>{i.push(t),e.filter(p=>p.parent!==void 0&&p.parent.pid===t.pid).forEach(p=>l(p,i))};e.sort((t,i)=>t.depth===i.depth?t.name.localeCompare(i.name):t.depth-i.depth);let n=[];return e.filter(t=>t.depth===0).forEach(t=>l(t,n)),n}function q(e,l){if(e&1&&(r(0,"dt",1),A(1),s(),u(2,"dd",2),T(3,"nl2br")),e&2){let n=l.$implicit;o(),N(" ",n.type," "),o(),a("innerHTML",F(3,2,n.content),v)}}var ne=(()=>{class e{constructor(){this.notes=w()}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=m({type:e,selectors:[["admin-notes"]],inputs:{notes:[1,"notes"]},decls:3,vars:0,consts:[[1,"metadata"],["translate",""],[3,"innerHTML"]],template:function(t,i){t&1&&(r(0,"dl",0),C(1,q,4,4,null,null,D),s()),t&2&&(o(),S(i.notes()))},dependencies:[k,R],encapsulation:2,changeDetection:0})}}return e})();var J=["*"],K=` .p-overlaybadge { position: relative; } .p-overlaybadge .p-badge { position: absolute; top: 0; right: 0; transform: translate(50%, -50%); transform-origin: 100% 0; margin: 0; outline-width: dt('overlaybadge.outline.width'); outline-style: solid; outline-color: dt('overlaybadge.outline.color'); } `,Q={root:"p-overlaybadge"},G=(()=>{class e extends H{name="overlaybadge";style=K;classes=Q;static \u0275fac=(()=>{let n;return function(i){return(n||(n=y(e)))(i||e)}})();static \u0275prov=f({token:e,factory:e.\u0275fac})}return e})(),Y=new g("OVERLAYBADGE_INSTANCE"),Se=(()=>{class e extends V{componentName="OverlayBadge";$pcOverlayBadge=c(Y,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=c(d,{self:!0});styleClass;style;badgeSize;severity;value;badgeDisabled=!1;set size(n){this._size=n,!this.badgeSize&&this.size&&console.log("size property is deprecated and will removed in v18, use badgeSize instead.")}get size(){return this._size}_size;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}_componentStyle=c(G);constructor(){super()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["p-overlayBadge"],["p-overlay-badge"],["p-overlaybadge"]],inputs:{styleClass:"styleClass",style:"style",badgeSize:"badgeSize",severity:"severity",value:"value",badgeDisabled:[2,"badgeDisabled","badgeDisabled",j],size:"size"},features:[I([G,{provide:Y,useExisting:e},{provide:L,useExisting:e}]),b([d]),h],ngContentSelectors:J,decls:3,vars:11,consts:[[3,"pBind"],[3,"pt","styleClass","badgeSize","severity","value","badgeDisabled"]],template:function(t,i){t&1&&(M(),r(0,"div",0),z(1),u(2,"p-badge",1),s()),t&2&&(E(i.cx("root")),a("pBind",i.ptm("root")),o(2),B(i.style),a("pt",i.ptm("pcBadge"))("styleClass",i.styleClass)("badgeSize",i.badgeSize)("severity",i.severity)("value",i.value)("badgeDisabled",i.badgeDisabled))},dependencies:[_,P,x,O,d],encapsulation:2,changeDetection:0})}return e})();export{U as a,ne as b,Se as c};