@skill-map/cli 0.37.0 → 0.39.0
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/cli/tutorial/sm-tutorial/SKILL.md +37 -7
- package/dist/cli.js +1587 -1392
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.d.ts +4 -4
- package/dist/conformance/index.js +48 -2
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +38 -29
- package/dist/kernel/index.js +14 -13
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-LTQTJU54.js → chunk-AALYQ3RG.js} +13 -13
- package/dist/ui/chunk-CR3AANNX.js +3 -0
- package/dist/ui/{chunk-5CFY2K3Y.js → chunk-JECPBFFX.js} +1 -1
- package/dist/ui/{chunk-S2NIJM7Z.js → chunk-LGLLRAJ6.js} +2 -2
- package/dist/ui/{chunk-UK5YFHL3.js → chunk-NHI5UPNK.js} +5 -5
- package/dist/ui/{chunk-YZ7KCL3G.js → chunk-PVVKVGJ6.js} +1 -1
- package/dist/ui/{chunk-2QZDJSJN.js → chunk-SKA7ZFUX.js} +1 -1
- package/dist/ui/chunk-VDMXHCXR.js +1 -0
- package/dist/ui/{chunk-GX2V3PSZ.js → chunk-VZIYRREA.js} +3 -3
- package/dist/ui/chunk-XRDZZC5F.js +123 -0
- package/dist/ui/chunk-YPO2DTMO.js +317 -0
- package/dist/ui/{chunk-UMCC32EJ.js → chunk-ZYIKNMFV.js} +1 -1
- package/dist/ui/index.html +6 -9
- package/dist/ui/main-TYWMNAII.js +2 -0
- package/package.json +3 -3
- package/dist/ui/chunk-5JBW2LUN.js +0 -2
- package/dist/ui/chunk-DGXHJVQN.js +0 -317
- package/dist/ui/chunk-O2N4CRRW.js +0 -123
- package/dist/ui/chunk-VFYNKTSB.js +0 -1
- package/dist/ui/main-YSELA4XD.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as wn,c as Tn,d as In,e as kn}from"./chunk-
|
|
1
|
+
import{a as wn,c as Tn,d as In,e as kn}from"./chunk-ZYIKNMFV.js";import{e as tn,j as mi,m as gn,n as bn,v as yn,x as fi,y as gi}from"./chunk-LGLLRAJ6.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-PVVKVGJ6.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,m as ct,o as mt,p as xn,q as Cn}from"./chunk-JECPBFFX.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-AALYQ3RG.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,K as lt,O as ln,P as qt,R as Li,S as di,U as Ne,V as Ke,W as st,X as sn,Y as pt,a as Ye,b as $t,ba as cn,ca as Qt,d as nn,da as pi,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-3SI3TVER.js";import{a as me,b as Ue}from"./chunk-VB56BUGO.js";var Vn=`
|
|
2
2
|
.p-datatable {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
@@ -2324,7 +2324,7 @@ p-sortIcon, p-sort-icon, p-sorticon {
|
|
|
2324
2324
|
stroke: dt('progressspinner.color.four');
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
2327
|
-
`;var Wm={root:()=>["p-progressspinner"],spin:"p-progressspinner-spin",circle:"p-progressspinner-circle"},Go=(()=>{class t extends Ie{name="progressspinner";style=$o;classes=Wm;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var jo=new pe("PROGRESSSPINNER_INSTANCE"),Wi=(()=>{class t extends Le{componentName="ProgressSpinner";$pcProgressSpinner=R(jo,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=R($,{self:!0});styleClass;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=R(Go);static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["p-progressSpinner"],["p-progress-spinner"],["p-progressspinner"]],hostVars:5,hostBindings:function(i,n){i&2&&(C("aria-label",n.ariaLabel)("role","progressbar")("aria-busy",!0),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},features:[se([Go,{provide:jo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],decls:2,vars:10,consts:[["viewBox","25 25 50 50",3,"pBind"],["cx","50","cy","50","r","20","stroke-miterlimit","10",3,"pBind"]],template:function(i,n){i&1&&(T(),u(0,"svg",0),F(1,"circle",1),m()),i&2&&(g(n.cx("spin")),Pe("animation-duration",n.animationDuration),r("pBind",n.ptm("spin")),c(),g(n.cx("circle")),r("pBind",n.ptm("circle")),C("fill",n.fill)("stroke-width",n.strokeWidth))},dependencies:[ue,W,$],encapsulation:2,changeDetection:0})}return t})(),qo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Wi,W,W]})}return t})();var Xt={title:"Nodes",subtitleDefault:"Flat view of the collection \xB7 click a row to inspect it on the graph.",showingPrefix:"Showing",showingSuffix:t=>` of ${t} nodes.`,loading:"Loading collection\u2026",columns:{kind:"Kind",name:"Name",path:"Path",version:"Version",stability:"Stability"},emptyFiltered:"No nodes match the current filters.",emptyAll:"No nodes loaded.",resetFilters:"Reset filters",rowAriaLabel:t=>`Inspect ${t}`,missing:"\
|
|
2327
|
+
`;var Wm={root:()=>["p-progressspinner"],spin:"p-progressspinner-spin",circle:"p-progressspinner-circle"},Go=(()=>{class t extends Ie{name="progressspinner";style=$o;classes=Wm;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var jo=new pe("PROGRESSSPINNER_INSTANCE"),Wi=(()=>{class t extends Le{componentName="ProgressSpinner";$pcProgressSpinner=R(jo,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=R($,{self:!0});styleClass;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=R(Go);static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["p-progressSpinner"],["p-progress-spinner"],["p-progressspinner"]],hostVars:5,hostBindings:function(i,n){i&2&&(C("aria-label",n.ariaLabel)("role","progressbar")("aria-busy",!0),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},features:[se([Go,{provide:jo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],decls:2,vars:10,consts:[["viewBox","25 25 50 50",3,"pBind"],["cx","50","cy","50","r","20","stroke-miterlimit","10",3,"pBind"]],template:function(i,n){i&1&&(T(),u(0,"svg",0),F(1,"circle",1),m()),i&2&&(g(n.cx("spin")),Pe("animation-duration",n.animationDuration),r("pBind",n.ptm("spin")),c(),g(n.cx("circle")),r("pBind",n.ptm("circle")),C("fill",n.fill)("stroke-width",n.strokeWidth))},dependencies:[ue,W,$],encapsulation:2,changeDetection:0})}return t})(),qo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Wi,W,W]})}return t})();var Xt={title:"Nodes",subtitleDefault:"Flat view of the collection \xB7 click a row to inspect it on the graph.",showingPrefix:"Showing",showingSuffix:t=>` of ${t} nodes.`,loading:"Loading collection\u2026",columns:{kind:"Kind",name:"Name",path:"Path",version:"Version",stability:"Stability"},emptyFiltered:"No nodes match the current filters.",emptyAll:"No nodes loaded.",resetFilters:"Reset filters",rowAriaLabel:t=>`Inspect ${t}`,missing:"\xB7"};var Qo=`
|
|
2328
2328
|
.p-multiselect {
|
|
2329
2329
|
display: inline-flex;
|
|
2330
2330
|
cursor: pointer;
|
|
@@ -2585,4 +2585,4 @@ p-sortIcon, p-sort-icon, p-sorticon {
|
|
|
2585
2585
|
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
|
2586
2586
|
color: dt('multiselect.invalid.placeholder.color');
|
|
2587
2587
|
}
|
|
2588
|
-
`,of={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},af={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Si=(()=>{class t extends Ie{name="multiselect";style=nf;classes=af;inlineStyles=of;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var Uo=new pe("MULTISELECT_INSTANCE"),rf=new pe("MULTISELECT_ITEM_INSTANCE"),lf={provide:qe,useExisting:Ge(()=>Ei),multi:!0},sf=(()=>{class t extends Le{$pcMultiSelectItem=R(rf,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new I;onMouseEnter=new I;_componentStyle=R(Si);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),i&2&&(C("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled)("aria-checked",n.selected),g(n.cx("option")),Pe("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",w],label:"label",disabled:[2,"disabled","disabled",w],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",w],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Si]),V],attrs:Zm,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(u(0,"p-checkbox",1),p(1,i0,3,0,"ng-container",2),m(),p(2,n0,2,1,"span",2)(3,o0,1,0,"ng-container",3)),i&2&&(r("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),r("ngIf",n.itemCheckboxIconTemplate),c(),r("ngIf",!n.template),c(),r("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Wo,n.option)))},dependencies:[ue,we,Te,Yt,ct,wt,Tt,W],encapsulation:2})}return t})(),Ei=(()=>{class t extends mt{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){di(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=Y();variant=Y();fluid=Y(void 0,{transform:w});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new I;onFilter=new I;onFocus=new I;onBlur=new I;onClick=new I;onClear=new I;onPanelShow=new I;onPanelHide=new I;onLazyLoad=new I;onRemove=new I;onSelectAllChange=new I;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Si);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Oe(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=ie(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=ie(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=R(Uo,{optional:!0,skipSelf:!0})??void 0;pcFluid=R(ui,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=Oe(null);_filterValue=Oe(null);_options=Oe([]);startRangeIndex=Oe(-1);focusedOptionIndex=Oe(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(De.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(De.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Ne(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(De.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=ie(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=cn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(i?n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):n=e.filter(o=>o.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let o=this.options||[],a=[];return o.forEach(d=>{let v=this.getOptionGroupChildren(d).filter(x=>n.includes(x));v.length>0&&a.push(Ue(me({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,i=this.modelValue();if(i&&i?.length&&this.displaySelectedLabel){if(Ne(this.maxSelectedLabels)&&i?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<i.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(i[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>Ne(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,n){super(),this.zone=e,this.filterService=i,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&Ne(a)&&(this.optionValue&&this.optionLabel&&o?this.selectedOptions=a.filter(d=>o.includes(d[this.optionLabel])||o.includes(d[this.optionValue])):this.selectedOptions=o,this.cd.markForCheck())})}onInit(){this.id=this.id||ce("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>i.push(d)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,n=-1){let{originalEvent:o,option:a}=e;if(this.$disabled()||this.isOptionDisabled(a))return;let d=this.isSelected(a),h=[];d?h=this.modelValue().filter(v=>!st(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),i&&Be(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:h,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,n=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(i)),i!==-1&&n!==-1){let o=Math.min(i,n),a=Math.max(i,n),d=this.visibleOptions().slice(o,a+1).filter(h=>this.isValidOption(h)).map(h=>this.getOptionValue(h));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let n=-1;return this.hasSelectedOption()&&(i?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ne(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?Ke(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>st(n,i,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let n=(this.group?this.flatOptions(this._options()):this._options()||[]).find(o=>!this.isOptionGroup(o)&&st(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?Ke(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Ke(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Ke(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Ke(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!i&&pi(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())Be(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(n)&&this.onOptionSelect({originalEvent:e,option:n})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onInputFocus(e){this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Ke(h,this.optionDisabled):h&&h.disabled!==void 0?h.disabled:!1)),n=this.allSelected()?this.visibleOptions().filter(h=>!this.isValidOption(h)&&this.isSelected(h)):this.visibleOptions().filter(h=>this.isSelected(h)||this.isValidOption(h)),a=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&this.isValidOption(h)):[],...i,...n].map(h=>this.getOptionValue(h)),d=[...new Set(a)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),U.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=ae(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:Ne(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Dt(),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=ae(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e)}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let n=this.modelValue().filter(o=>!st(o,e,this.equalityKey()||""));this.updateModel(n,i),this.onChange.emit({originalEvent:i,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),i&&i.stopPropagation()}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?pt(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return pt(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}hasFocusableElements(){return yt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,[this.size()]:this.size(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,i){this.value=e,i(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,i,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(i){return new(i||t)(_e(Ae),_e(Et),_e(ut))};static \u0275cmp=O({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,n,o){if(i&1&&Ve(o,un,5)(o,pn,5)(o,a0,4)(o,r0,4)(o,l0,4)(o,s0,4)(o,c0,4)(o,d0,4)(o,p0,4)(o,u0,4)(o,h0,4)(o,m0,4)(o,_0,4)(o,f0,4)(o,g0,4)(o,b0,4)(o,y0,4)(o,v0,4)(o,x0,4)(o,he,4),i&2){let a;b(a=y())&&(n.footerFacet=a.first),b(a=y())&&(n.headerFacet=a.first),b(a=y())&&(n.itemTemplate=a.first),b(a=y())&&(n.groupTemplate=a.first),b(a=y())&&(n.loaderTemplate=a.first),b(a=y())&&(n.headerTemplate=a.first),b(a=y())&&(n.filterTemplate=a.first),b(a=y())&&(n.footerTemplate=a.first),b(a=y())&&(n.emptyFilterTemplate=a.first),b(a=y())&&(n.emptyTemplate=a.first),b(a=y())&&(n.selectedItemsTemplate=a.first),b(a=y())&&(n.loadingIconTemplate=a.first),b(a=y())&&(n.filterIconTemplate=a.first),b(a=y())&&(n.removeTokenIconTemplate=a.first),b(a=y())&&(n.chipIconTemplate=a.first),b(a=y())&&(n.clearIconTemplate=a.first),b(a=y())&&(n.dropdownIconTemplate=a.first),b(a=y())&&(n.itemCheckboxIconTemplate=a.first),b(a=y())&&(n.headerCheckboxIconTemplate=a.first),b(a=y())&&(n.templates=a)}},viewQuery:function(i,n){if(i&1&&Fe(C0,5)(w0,5)(T0,5)(I0,5)(k0,5)(S0,5)(M0,5)(E0,5),i&2){let o;b(o=y())&&(n.overlayViewChild=o.first),b(o=y())&&(n.filterInputChild=o.first),b(o=y())&&(n.focusInputViewChild=o.first),b(o=y())&&(n.itemsViewChild=o.first),b(o=y())&&(n.scroller=o.first),b(o=y())&&(n.lastHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.firstHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.headerCheckboxViewChild=o.first)}},hostVars:6,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onContainerClick(a)}),i&2&&(C("id",n.id)("data-p",n.containerDataP),Ce(n.sx("root")),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",w],group:[2,"group","group",w],filter:[2,"filter","filter",w],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",w],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",w],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",w],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",w],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",w],virtualScroll:[2,"virtualScroll","virtualScroll",w],loading:[2,"loading","loading",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",w],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",w],autofocus:[2,"autofocus","autofocus",w],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",w],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",w],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",w],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[se([lf,Si,{provide:Uo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],ngContentSelectors:O0,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(i,n){if(i&1){let o=P();dt(D0),u(0,"div",16)(1,"input",17,0),k("focus",function(d){return n.onInputFocus(d)})("blur",function(d){return n.onInputBlur(d)})("keydown",function(d){return n.onKeyDown(d)}),m()(),u(3,"div",18),k("mouseleave",function(){return n.labelContainerMouseLeave()}),u(4,"div",19),p(5,U0,3,2,"ng-container",20)(6,Z0,3,6,"ng-container",20),m()(),p(7,i_,3,2,"ng-container",20),u(8,"div",19),p(9,s_,3,2,"ng-container",21)(10,__,2,2,"ng-template",null,1,J),m(),u(12,"p-overlay",22,2),bt("visibleChange",function(d){return _(o),gt(n.overlayVisible,d)||(n.overlayVisible=d),f(d)}),k("onBeforeEnter",function(d){return n.onOverlayBeforeEnter(d)})("onAfterLeave",function(d){return n.onOverlayAfterLeave(d)})("onHide",function(d){return n.onOverlayHide(d)}),p(14,tf,13,24,"ng-template",null,3,J),m()}if(i&2){let o=Me(11);r("pBind",n.ptm("hiddenInputContainer")),C("data-p-hidden-accessible",!0),c(),r("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),C("aria-disabled",n.$disabled())("id",n.inputId)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible??!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("tabindex",n.$disabled()?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("value",n.modelValue())("name",n.name())("required",n.required()?"":void 0)("disabled",n.$disabled()?"":void 0),c(2),g(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer"))("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipDisabled",n._disableTooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),c(),g(n.cx("label")),r("pBind",n.ptm("label")),C("data-p",n.labelDataP),c(),r("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),r("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),r("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),c(),r("ngIf",n.loading)("ngIfElse",o),c(3),r("hostAttrSelector",n.$attrSelector),ft("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[ue,Je,je,we,Te,He,sf,xi,W,mi,It,tt,Pt,yi,ht,zt,Lt,Rt,nt,wn,Yt,ct,wt,Tt,ze,$],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Ei,W,W]})}return t})();var Xo={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var ea={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function uf(t,l){if(t&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(t&2){let e=s();r("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function hf(t,l){if(t&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(t&2){let e=s();r("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function mf(t,l){if(t&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(t&2){let e=s();r("label",e.texts.reset)("text",!0)}}var Di=class t{store=R(gi);kindRegistry=R(fi);collection=R(_i);texts=Xo;showKinds=Y(!0);searchText=this.store.searchText;selectedKinds=this.store.selectedKinds;selectedStabilities=this.store.selectedStabilities;hasIssuesOnly=this.store.hasIssuesOnly;staleOnly=this.store.staleOnly;favoritesOnly=this.store.favoritesOnly;isActive=this.store.isActive;showFavoritesToggle=ie(()=>this.collection.hasAnyFavorites()||this.store.favoritesOnly());kindOptions=ie(()=>this.kindRegistry.kinds().map(l=>({label:l.label,value:l.name})));stabilityOptions=yn.map(l=>({label:ea[l],value:l}));onSearchChange(l){this.store.setSearchText(l)}onKindsChange(l){this.store.setKinds(l)}onStabilitiesChange(l){this.store.setStabilities(l)}onIssuesToggle(l){this.store.setHasIssuesOnly(l)}onStaleOnlyToggle(l){this.store.setStaleOnly(l)}onFavoritesOnlyToggle(l){this.store.setFavoritesOnly(l)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-filter-bar"]],inputs:{showKinds:[1,"showKinds"]},decls:10,vars:16,consts:[["data-testid","filter-bar",1,"filter-bar"],["iconPosition","left",1,"filter-bar__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","filter-search",3,"ngModelChange","placeholder","ngModel"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"options","ngModel","placeholder","showToggleAll","filter"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-stabilities",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-triangle-exclamation","offIcon","fa-solid fa-triangle-exclamation","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-clock","offIcon","fa-solid fa-clock","styleClass","filter-bar__toggle","data-testid","filter-stale-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"label","text"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"p-iconfield",1),F(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return i.onSearchChange(o)}),m()(),ye(4,uf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return i.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return i.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return i.onStaleOnlyToggle(o)}),m(),ye(8,hf,1,3,"p-togglebutton",8),ye(9,mf,1,2,"p-button",9),m()),e&2&&(c(3),r("placeholder",i.texts.searchPlaceholder)("ngModel",i.searchText()),c(),ve(i.showKinds()?4:-1),c(),r("options",i.stabilityOptions)("ngModel",i.selectedStabilities())("placeholder",i.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),r("ngModel",i.hasIssuesOnly())("onLabel",i.texts.hasIssues)("offLabel",i.texts.hasIssues),c(),r("ngModel",i.staleOnly())("onLabel",i.texts.staleOnly)("offLabel",i.texts.staleOnly),c(),ve(i.showFavoritesToggle()?8:-1),c(),ve(i.isActive()?9:-1))},dependencies:[ct,vn,wt,Tt,Sn,Lt,Mn,Rt,bi,nt,Jo,Ei,Vt,Ct,Cn,xn],styles:["[_nghost-%COMP%]{display:block}.filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 320px;min-width:280px}.filter-bar__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.filter-bar__ms[_ngcontent-%COMP%]{min-width:180px}.filter-bar__toggle[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1280px){.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 200px;min-width:200px}.filter-bar__ms[_ngcontent-%COMP%]{min-width:140px}}"],changeDetection:0})};function _f(t,l){if(t&1&&(H(0),u(1,"strong"),H(2),m(),H(3)),t&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function ff(t,l){if(t&1&&H(0),t&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function gf(t,l){if(t&1&&F(0,"p-message",3),t&2){let e=s();r("text",e.error())}}function bf(t,l){if(t&1&&(u(0,"div",4),F(1,"p-progressSpinner",6),u(2,"span"),H(3),m()()),t&2){let e=s();c(3),ee(e.texts.loading)}}function yf(t,l){if(t&1&&(u(0,"tr")(1,"th",10),H(2),F(3,"p-sortIcon",11),m(),u(4,"th",12),H(5),F(6,"p-sortIcon",13),m(),u(7,"th",14),H(8),F(9,"p-sortIcon",15),m(),u(10,"th",16),H(11),F(12,"p-sortIcon",17),m(),u(13,"th",18),H(14),F(15,"p-sortIcon",19),m()()),t&2){let e=s(2);c(2),le(" ",e.texts.columns.kind," "),c(3),le(" ",e.texts.columns.name," "),c(3),le(" ",e.texts.columns.path," "),c(3),le(" ",e.texts.columns.version," "),c(3),le(" ",e.texts.columns.stability," ")}}function vf(t,l){if(t&1&&(u(0,"span",23),H(1),m()),t&2){let e=s().$implicit;c(),ee(e.detail)}}function xf(t,l){if(t&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.enter",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.space",function(n){let o=_(e).$implicit,a=s(2);return n.preventDefault(),f(a.openNode(o))}),u(1,"td"),F(2,"p-tag",21),m(),u(3,"td",22),H(4),ye(5,vf,2,1,"span",23),m(),u(6,"td")(7,"code"),H(8),m()(),u(9,"td"),H(10),m(),u(11,"td"),F(12,"p-tag",24),m()()}if(t&2){let e=l.$implicit,i=s(2);C("aria-label",i.texts.rowAriaLabel(e.name))("data-testid","list-row-"+e.path),c(2),Ce(e.kindStyle),r("value",e.kindLabel),c(2),le(" ",e.name," "),c(),ve(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),r("value",e.stability)("severity",e.stabilitySeverity)("rounded",!0)}}function Cf(t,l){if(t&1){let e=P();u(0,"p",27),H(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(t&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),r("label",e.texts.resetFilters)("text",!0)}}function wf(t,l){if(t&1&&(u(0,"span",26),H(1),m()),t&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function Tf(t,l){if(t&1&&(u(0,"tr")(1,"td",25),ye(2,Cf,3,3)(3,wf,2,1,"span",26),m()()),t&2){let e=s(2);c(2),ve(e.filtersActive()?2:3)}}function If(t,l){if(t&1&&(u(0,"p-table",5),p(1,yf,16,5,"ng-template",7)(2,xf,13,12,"ng-template",8)(3,Tf,4,1,"ng-template",9),m()),t&2){let e=s();r("value",e.rows())("paginator",!1)("scrollable",!0)}}var ta=class t{loader=R(_i);filters=R(gi);router=R(tn);kindRegistry=R(fi);texts=Xt;loading=this.loader.loading;error=this.loader.error;total=this.loader.count;filtersActive=this.filters.isActive;rows=ie(()=>this.filters.apply(this.loader.nodes()).map(e=>{let i=Mf(e);return{path:e.path,kind:e.kind,kindLabel:this.kindRegistry.labelOf(e.kind),kindStyle:Ef(e.kind),name:e.frontmatter.name??Xt.missing,detail:kf(e),version:Sf(e),stability:i,stabilitySeverity:i==="\u2014"?"secondary":kn[i],node:e}}));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}openNode(l){this.router.navigate(["/graph"],{queryParams:{path:l.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-list-view"]],decls:12,vars:4,consts:[["data-testid","list-view",1,"list"],[1,"list__header"],[1,"list__sub"],["severity","error",3,"text"],[1,"list__loading"],["scrollHeight","calc(100dvh - 280px)","dataKey","path","sortMode","single","styleClass","p-datatable-sm list__table","data-testid","list-table",3,"value","paginator","scrollable"],["strokeWidth","3"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pSortableColumn","kind",2,"width","120px"],["field","kind"],["pSortableColumn","name"],["field","name"],["pSortableColumn","path"],["field","path"],["pSortableColumn","version",2,"width","100px"],["field","version"],["pSortableColumn","stability",2,"width","140px"],["field","stability"],["role","button","tabindex","0",1,"list__row",3,"click","keydown.enter","keydown.space"],[3,"value"],[1,"list__cell-name"],[1,"list__cell-detail"],[3,"value","severity","rounded"],["colspan","5",1,"list__empty"],["data-testid","list-empty-all"],["data-testid","list-empty-filtered"],["size","small","data-testid","list-reset-filters",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),H(4),m(),u(5,"p",2),ye(6,_f,4,3)(7,ff,1,1),m()()(),F(8,"sm-filter-bar"),ye(9,gf,1,1,"p-message",3),ye(10,bf,4,1,"div",4)(11,If,4,3,"p-table",5),m()),e&2&&(c(4),ee(i.texts.title),c(2),ve(i.filtersActive()?6:7),c(3),ve(i.error()?9:-1),c(),ve(i.loading()?10:i.error()?-1:11))},dependencies:[Di,Ko,Jt,he,Ho,No,In,Tn,qo,Wi,On,Dn,Vt,Ct],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto;box-sizing:border-box}@media(max-width:1280px){[_nghost-%COMP%]{padding:1rem}}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem}.list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600}.list__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--p-text-muted-color);font-size:.9rem}.list__loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:2rem;color:var(--p-text-muted-color)}.list__table[_ngcontent-%COMP%]{width:100%}.list__row[_ngcontent-%COMP%]{cursor:pointer}.list__row[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover)}.list__cell-name[_ngcontent-%COMP%]{font-weight:500}.list__cell-detail[_ngcontent-%COMP%]{display:block;font-size:.75rem;font-weight:400;color:var(--p-text-muted-color);font-family:var(--sm-font-mono)}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:var(--sm-font-mono);color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function kf(t){return t.kind==="agent"?t.frontmatter.model??null:null}function Sf(t){return gn(t)??Xt.missing}function Mf(t){return bn(t)??Xt.missing}function Ef(t){return{background:`var(--sm-kind-${t}-bg)`,color:`var(--sm-kind-${t}-fg)`}}export{ta as ListView};
|
|
2588
|
+
`,of={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},af={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Si=(()=>{class t extends Ie{name="multiselect";style=nf;classes=af;inlineStyles=of;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var Uo=new pe("MULTISELECT_INSTANCE"),rf=new pe("MULTISELECT_ITEM_INSTANCE"),lf={provide:qe,useExisting:Ge(()=>Ei),multi:!0},sf=(()=>{class t extends Le{$pcMultiSelectItem=R(rf,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new I;onMouseEnter=new I;_componentStyle=R(Si);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),i&2&&(C("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled)("aria-checked",n.selected),g(n.cx("option")),Pe("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",w],label:"label",disabled:[2,"disabled","disabled",w],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",w],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Si]),V],attrs:Zm,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(u(0,"p-checkbox",1),p(1,i0,3,0,"ng-container",2),m(),p(2,n0,2,1,"span",2)(3,o0,1,0,"ng-container",3)),i&2&&(r("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),r("ngIf",n.itemCheckboxIconTemplate),c(),r("ngIf",!n.template),c(),r("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Wo,n.option)))},dependencies:[ue,we,Te,Yt,ct,wt,Tt,W],encapsulation:2})}return t})(),Ei=(()=>{class t extends mt{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){di(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=Y();variant=Y();fluid=Y(void 0,{transform:w});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new I;onFilter=new I;onFocus=new I;onBlur=new I;onClick=new I;onClear=new I;onPanelShow=new I;onPanelHide=new I;onLazyLoad=new I;onRemove=new I;onSelectAllChange=new I;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Si);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Oe(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=ie(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=ie(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=R(Uo,{optional:!0,skipSelf:!0})??void 0;pcFluid=R(ui,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=Oe(null);_filterValue=Oe(null);_options=Oe([]);startRangeIndex=Oe(-1);focusedOptionIndex=Oe(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(De.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(De.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Ne(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(De.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=ie(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=cn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(i?n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):n=e.filter(o=>o.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let o=this.options||[],a=[];return o.forEach(d=>{let v=this.getOptionGroupChildren(d).filter(x=>n.includes(x));v.length>0&&a.push(Ue(me({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,i=this.modelValue();if(i&&i?.length&&this.displaySelectedLabel){if(Ne(this.maxSelectedLabels)&&i?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<i.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(i[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>Ne(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,n){super(),this.zone=e,this.filterService=i,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&Ne(a)&&(this.optionValue&&this.optionLabel&&o?this.selectedOptions=a.filter(d=>o.includes(d[this.optionLabel])||o.includes(d[this.optionValue])):this.selectedOptions=o,this.cd.markForCheck())})}onInit(){this.id=this.id||ce("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>i.push(d)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,n=-1){let{originalEvent:o,option:a}=e;if(this.$disabled()||this.isOptionDisabled(a))return;let d=this.isSelected(a),h=[];d?h=this.modelValue().filter(v=>!st(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),i&&Be(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:h,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,n=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(i)),i!==-1&&n!==-1){let o=Math.min(i,n),a=Math.max(i,n),d=this.visibleOptions().slice(o,a+1).filter(h=>this.isValidOption(h)).map(h=>this.getOptionValue(h));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let n=-1;return this.hasSelectedOption()&&(i?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ne(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?Ke(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>st(n,i,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let n=(this.group?this.flatOptions(this._options()):this._options()||[]).find(o=>!this.isOptionGroup(o)&&st(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?Ke(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Ke(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Ke(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Ke(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!i&&pi(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())Be(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(n)&&this.onOptionSelect({originalEvent:e,option:n})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onInputFocus(e){this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Ke(h,this.optionDisabled):h&&h.disabled!==void 0?h.disabled:!1)),n=this.allSelected()?this.visibleOptions().filter(h=>!this.isValidOption(h)&&this.isSelected(h)):this.visibleOptions().filter(h=>this.isSelected(h)||this.isValidOption(h)),a=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&this.isValidOption(h)):[],...i,...n].map(h=>this.getOptionValue(h)),d=[...new Set(a)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),U.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=ae(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:Ne(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Dt(),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=ae(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e)}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let n=this.modelValue().filter(o=>!st(o,e,this.equalityKey()||""));this.updateModel(n,i),this.onChange.emit({originalEvent:i,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),i&&i.stopPropagation()}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?pt(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return pt(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}hasFocusableElements(){return yt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,[this.size()]:this.size(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,i){this.value=e,i(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,i,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(i){return new(i||t)(_e(Ae),_e(Et),_e(ut))};static \u0275cmp=O({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,n,o){if(i&1&&Ve(o,un,5)(o,pn,5)(o,a0,4)(o,r0,4)(o,l0,4)(o,s0,4)(o,c0,4)(o,d0,4)(o,p0,4)(o,u0,4)(o,h0,4)(o,m0,4)(o,_0,4)(o,f0,4)(o,g0,4)(o,b0,4)(o,y0,4)(o,v0,4)(o,x0,4)(o,he,4),i&2){let a;b(a=y())&&(n.footerFacet=a.first),b(a=y())&&(n.headerFacet=a.first),b(a=y())&&(n.itemTemplate=a.first),b(a=y())&&(n.groupTemplate=a.first),b(a=y())&&(n.loaderTemplate=a.first),b(a=y())&&(n.headerTemplate=a.first),b(a=y())&&(n.filterTemplate=a.first),b(a=y())&&(n.footerTemplate=a.first),b(a=y())&&(n.emptyFilterTemplate=a.first),b(a=y())&&(n.emptyTemplate=a.first),b(a=y())&&(n.selectedItemsTemplate=a.first),b(a=y())&&(n.loadingIconTemplate=a.first),b(a=y())&&(n.filterIconTemplate=a.first),b(a=y())&&(n.removeTokenIconTemplate=a.first),b(a=y())&&(n.chipIconTemplate=a.first),b(a=y())&&(n.clearIconTemplate=a.first),b(a=y())&&(n.dropdownIconTemplate=a.first),b(a=y())&&(n.itemCheckboxIconTemplate=a.first),b(a=y())&&(n.headerCheckboxIconTemplate=a.first),b(a=y())&&(n.templates=a)}},viewQuery:function(i,n){if(i&1&&Fe(C0,5)(w0,5)(T0,5)(I0,5)(k0,5)(S0,5)(M0,5)(E0,5),i&2){let o;b(o=y())&&(n.overlayViewChild=o.first),b(o=y())&&(n.filterInputChild=o.first),b(o=y())&&(n.focusInputViewChild=o.first),b(o=y())&&(n.itemsViewChild=o.first),b(o=y())&&(n.scroller=o.first),b(o=y())&&(n.lastHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.firstHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.headerCheckboxViewChild=o.first)}},hostVars:6,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onContainerClick(a)}),i&2&&(C("id",n.id)("data-p",n.containerDataP),Ce(n.sx("root")),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",w],group:[2,"group","group",w],filter:[2,"filter","filter",w],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",w],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",w],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",w],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",w],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",w],virtualScroll:[2,"virtualScroll","virtualScroll",w],loading:[2,"loading","loading",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",w],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",w],autofocus:[2,"autofocus","autofocus",w],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",w],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",w],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",w],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[se([lf,Si,{provide:Uo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],ngContentSelectors:O0,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(i,n){if(i&1){let o=P();dt(D0),u(0,"div",16)(1,"input",17,0),k("focus",function(d){return n.onInputFocus(d)})("blur",function(d){return n.onInputBlur(d)})("keydown",function(d){return n.onKeyDown(d)}),m()(),u(3,"div",18),k("mouseleave",function(){return n.labelContainerMouseLeave()}),u(4,"div",19),p(5,U0,3,2,"ng-container",20)(6,Z0,3,6,"ng-container",20),m()(),p(7,i_,3,2,"ng-container",20),u(8,"div",19),p(9,s_,3,2,"ng-container",21)(10,__,2,2,"ng-template",null,1,J),m(),u(12,"p-overlay",22,2),bt("visibleChange",function(d){return _(o),gt(n.overlayVisible,d)||(n.overlayVisible=d),f(d)}),k("onBeforeEnter",function(d){return n.onOverlayBeforeEnter(d)})("onAfterLeave",function(d){return n.onOverlayAfterLeave(d)})("onHide",function(d){return n.onOverlayHide(d)}),p(14,tf,13,24,"ng-template",null,3,J),m()}if(i&2){let o=Me(11);r("pBind",n.ptm("hiddenInputContainer")),C("data-p-hidden-accessible",!0),c(),r("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),C("aria-disabled",n.$disabled())("id",n.inputId)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible??!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("tabindex",n.$disabled()?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("value",n.modelValue())("name",n.name())("required",n.required()?"":void 0)("disabled",n.$disabled()?"":void 0),c(2),g(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer"))("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipDisabled",n._disableTooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),c(),g(n.cx("label")),r("pBind",n.ptm("label")),C("data-p",n.labelDataP),c(),r("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),r("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),r("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),c(),r("ngIf",n.loading)("ngIfElse",o),c(3),r("hostAttrSelector",n.$attrSelector),ft("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[ue,Je,je,we,Te,He,sf,xi,W,mi,It,tt,Pt,yi,ht,zt,Lt,Rt,nt,wn,Yt,ct,wt,Tt,ze,$],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Ei,W,W]})}return t})();var Xo={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var ea={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function uf(t,l){if(t&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(t&2){let e=s();r("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function hf(t,l){if(t&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(t&2){let e=s();r("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function mf(t,l){if(t&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(t&2){let e=s();r("label",e.texts.reset)("text",!0)}}var Di=class t{store=R(fi);kindRegistry=R(gi);collection=R(_i);texts=Xo;showKinds=Y(!0);searchText=this.store.searchText;selectedKinds=this.store.selectedKinds;selectedStabilities=this.store.selectedStabilities;hasIssuesOnly=this.store.hasIssuesOnly;staleOnly=this.store.staleOnly;favoritesOnly=this.store.favoritesOnly;isActive=this.store.isActive;showFavoritesToggle=ie(()=>this.collection.hasAnyFavorites()||this.store.favoritesOnly());kindOptions=ie(()=>this.kindRegistry.kinds().map(l=>({label:l.label,value:l.name})));stabilityOptions=yn.map(l=>({label:ea[l],value:l}));onSearchChange(l){this.store.setSearchText(l)}onKindsChange(l){this.store.setKinds(l)}onStabilitiesChange(l){this.store.setStabilities(l)}onIssuesToggle(l){this.store.setHasIssuesOnly(l)}onStaleOnlyToggle(l){this.store.setStaleOnly(l)}onFavoritesOnlyToggle(l){this.store.setFavoritesOnly(l)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-filter-bar"]],inputs:{showKinds:[1,"showKinds"]},decls:10,vars:16,consts:[["data-testid","filter-bar",1,"filter-bar"],["iconPosition","left",1,"filter-bar__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","filter-search",3,"ngModelChange","placeholder","ngModel"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"options","ngModel","placeholder","showToggleAll","filter"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-stabilities",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-triangle-exclamation","offIcon","fa-solid fa-triangle-exclamation","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-clock","offIcon","fa-solid fa-clock","styleClass","filter-bar__toggle","data-testid","filter-stale-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"label","text"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"p-iconfield",1),F(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return i.onSearchChange(o)}),m()(),ye(4,uf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return i.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return i.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return i.onStaleOnlyToggle(o)}),m(),ye(8,hf,1,3,"p-togglebutton",8),ye(9,mf,1,2,"p-button",9),m()),e&2&&(c(3),r("placeholder",i.texts.searchPlaceholder)("ngModel",i.searchText()),c(),ve(i.showKinds()?4:-1),c(),r("options",i.stabilityOptions)("ngModel",i.selectedStabilities())("placeholder",i.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),r("ngModel",i.hasIssuesOnly())("onLabel",i.texts.hasIssues)("offLabel",i.texts.hasIssues),c(),r("ngModel",i.staleOnly())("onLabel",i.texts.staleOnly)("offLabel",i.texts.staleOnly),c(),ve(i.showFavoritesToggle()?8:-1),c(),ve(i.isActive()?9:-1))},dependencies:[ct,vn,wt,Tt,Sn,Lt,Mn,Rt,bi,nt,Jo,Ei,Vt,Ct,Cn,xn],styles:["[_nghost-%COMP%]{display:block}.filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 320px;min-width:280px}.filter-bar__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.filter-bar__ms[_ngcontent-%COMP%]{min-width:180px}.filter-bar__toggle[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1280px){.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 200px;min-width:200px}.filter-bar__ms[_ngcontent-%COMP%]{min-width:140px}}"],changeDetection:0})};function _f(t,l){if(t&1&&(H(0),u(1,"strong"),H(2),m(),H(3)),t&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function ff(t,l){if(t&1&&H(0),t&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function gf(t,l){if(t&1&&F(0,"p-message",3),t&2){let e=s();r("text",e.error())}}function bf(t,l){if(t&1&&(u(0,"div",4),F(1,"p-progressSpinner",6),u(2,"span"),H(3),m()()),t&2){let e=s();c(3),ee(e.texts.loading)}}function yf(t,l){if(t&1&&(u(0,"tr")(1,"th",10),H(2),F(3,"p-sortIcon",11),m(),u(4,"th",12),H(5),F(6,"p-sortIcon",13),m(),u(7,"th",14),H(8),F(9,"p-sortIcon",15),m(),u(10,"th",16),H(11),F(12,"p-sortIcon",17),m(),u(13,"th",18),H(14),F(15,"p-sortIcon",19),m()()),t&2){let e=s(2);c(2),le(" ",e.texts.columns.kind," "),c(3),le(" ",e.texts.columns.name," "),c(3),le(" ",e.texts.columns.path," "),c(3),le(" ",e.texts.columns.version," "),c(3),le(" ",e.texts.columns.stability," ")}}function vf(t,l){if(t&1&&(u(0,"span",23),H(1),m()),t&2){let e=s().$implicit;c(),ee(e.detail)}}function xf(t,l){if(t&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.enter",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.space",function(n){let o=_(e).$implicit,a=s(2);return n.preventDefault(),f(a.openNode(o))}),u(1,"td"),F(2,"p-tag",21),m(),u(3,"td",22),H(4),ye(5,vf,2,1,"span",23),m(),u(6,"td")(7,"code"),H(8),m()(),u(9,"td"),H(10),m(),u(11,"td"),F(12,"p-tag",24),m()()}if(t&2){let e=l.$implicit,i=s(2);C("aria-label",i.texts.rowAriaLabel(e.name))("data-testid","list-row-"+e.path),c(2),Ce(e.kindStyle),r("value",e.kindLabel),c(2),le(" ",e.name," "),c(),ve(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),r("value",e.stability)("severity",e.stabilitySeverity)("rounded",!0)}}function Cf(t,l){if(t&1){let e=P();u(0,"p",27),H(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(t&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),r("label",e.texts.resetFilters)("text",!0)}}function wf(t,l){if(t&1&&(u(0,"span",26),H(1),m()),t&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function Tf(t,l){if(t&1&&(u(0,"tr")(1,"td",25),ye(2,Cf,3,3)(3,wf,2,1,"span",26),m()()),t&2){let e=s(2);c(2),ve(e.filtersActive()?2:3)}}function If(t,l){if(t&1&&(u(0,"p-table",5),p(1,yf,16,5,"ng-template",7)(2,xf,13,12,"ng-template",8)(3,Tf,4,1,"ng-template",9),m()),t&2){let e=s();r("value",e.rows())("paginator",!1)("scrollable",!0)}}var ta=class t{loader=R(_i);filters=R(fi);router=R(tn);kindRegistry=R(gi);texts=Xt;loading=this.loader.loading;error=this.loader.error;total=this.loader.count;filtersActive=this.filters.isActive;rows=ie(()=>this.filters.apply(this.loader.nodes()).map(e=>{let i=Mf(e);return{path:e.path,kind:e.kind,kindLabel:this.kindRegistry.labelOf(e.kind),kindStyle:Ef(e.kind),name:e.frontmatter.name??Xt.missing,detail:kf(e),version:Sf(e),stability:i,stabilitySeverity:i==="\xB7"?"secondary":kn[i],node:e}}));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}openNode(l){this.router.navigate(["/graph"],{queryParams:{path:l.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-list-view"]],decls:12,vars:4,consts:[["data-testid","list-view",1,"list"],[1,"list__header"],[1,"list__sub"],["severity","error",3,"text"],[1,"list__loading"],["scrollHeight","calc(100dvh - 280px)","dataKey","path","sortMode","single","styleClass","p-datatable-sm list__table","data-testid","list-table",3,"value","paginator","scrollable"],["strokeWidth","3"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pSortableColumn","kind",2,"width","120px"],["field","kind"],["pSortableColumn","name"],["field","name"],["pSortableColumn","path"],["field","path"],["pSortableColumn","version",2,"width","100px"],["field","version"],["pSortableColumn","stability",2,"width","140px"],["field","stability"],["role","button","tabindex","0",1,"list__row",3,"click","keydown.enter","keydown.space"],[3,"value"],[1,"list__cell-name"],[1,"list__cell-detail"],[3,"value","severity","rounded"],["colspan","5",1,"list__empty"],["data-testid","list-empty-all"],["data-testid","list-empty-filtered"],["size","small","data-testid","list-reset-filters",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),H(4),m(),u(5,"p",2),ye(6,_f,4,3)(7,ff,1,1),m()()(),F(8,"sm-filter-bar"),ye(9,gf,1,1,"p-message",3),ye(10,bf,4,1,"div",4)(11,If,4,3,"p-table",5),m()),e&2&&(c(4),ee(i.texts.title),c(2),ve(i.filtersActive()?6:7),c(3),ve(i.error()?9:-1),c(),ve(i.loading()?10:i.error()?-1:11))},dependencies:[Di,Ko,Jt,he,Ho,No,In,Tn,qo,Wi,On,Dn,Vt,Ct],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto;box-sizing:border-box}@media(max-width:1280px){[_nghost-%COMP%]{padding:1rem}}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem}.list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600}.list__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--p-text-muted-color);font-size:.9rem}.list__loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:2rem;color:var(--p-text-muted-color)}.list__table[_ngcontent-%COMP%]{width:100%}.list__row[_ngcontent-%COMP%]{cursor:pointer}.list__row[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover)}.list__cell-name[_ngcontent-%COMP%]{font-weight:500}.list__cell-detail[_ngcontent-%COMP%]{display:block;font-size:.75rem;font-weight:400;color:var(--p-text-muted-color);font-family:var(--sm-font-mono)}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:var(--sm-font-mono);color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function kf(t){return t.kind==="agent"?t.frontmatter.model??null:null}function Sf(t){return gn(t)??Xt.missing}function Mf(t){return bn(t)??Xt.missing}function Ef(t){return{background:`var(--sm-kind-${t}-bg)`,color:`var(--sm-kind-${t}-fg)`}}export{ta as ListView};
|