-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-DUTG_LQs.js
1 lines (1 loc) · 12.9 KB
/
chunk-DUTG_LQs.js
1
import {w,o as ot,P as Pk,b as Vn,k as kk,p as pu,H as Ho,e as ey,d as Zr,V as Vk,S as Sn,T as Tn,M as Mi,J as Jp,_ as _p,f as pR,h as Tp,G as Gw,F as Fw,X as Xk,K as Kk,D as Dk,z as zw,i as eR,u as uR,j as dR,t,q as n,r as H,c as ck,s as Tn$1,l as lw,v as Pp,U as Uw,Q as Qk,$ as $k,x as tR,a as Cw,y as DR,n as nR,A as dw,B as bR,C as CE,E as QE,Y as Yk,I as tk,L as nk,N as hR}from'./main-BP72IIBJ.js';var r=function(e){return e.BLOCK="block",e.CLASS="undecorated_class",e.CONST="constant",e.DECORATOR="decorator",e.DIRECTIVE="directive",e.ELEMENT="element",e.ENUM="enum",e.FUNCTION="function",e.INTERFACE="interface",e.PIPE="pipe",e.NG_MODULE="ng_module",e.TYPE_ALIAS="type_alias",e.INITIALIZER_API_FUNCTION="initializer_api_function",e}(r||{});var oe=(()=>{class e{transform(n,t){return t==="full"?se[n]:N[n]}static \u0275fac=function(t){return new(t||e)};static \u0275pipe=$k({name:"adevApiLabel",type:e,pure:true})}return e})(),N={[r.BLOCK]:"B",[r.CLASS]:"C",[r.CONST]:"K",[r.DECORATOR]:"@",[r.DIRECTIVE]:"D",[r.ELEMENT]:"El",[r.ENUM]:"E",[r.FUNCTION]:"F",[r.INTERFACE]:"I",[r.PIPE]:"P",[r.NG_MODULE]:"M",[r.TYPE_ALIAS]:"T",[r.INITIALIZER_API_FUNCTION]:"IA"},se={[r.BLOCK]:"\u63A7\u5236\u5757",[r.CLASS]:"\u7C7B",[r.CONST]:"\u5E38\u91CF",[r.DECORATOR]:"\u88C5\u9970\u5668",[r.DIRECTIVE]:"\u6307\u4EE4",[r.ELEMENT]:"\u5143\u7D20",[r.ENUM]:"\u679A\u4E3E",[r.FUNCTION]:"\u51FD\u6570",[r.INTERFACE]:"\u63A5\u53E3",[r.PIPE]:"\u7BA1\u9053",[r.NG_MODULE]:"\u6A21\u5757",[r.TYPE_ALIAS]:"\u7C7B\u578B\u522B\u540D",[r.INITIALIZER_API_FUNCTION]:"\u521D\u59CB\u5316 API"};var x=(()=>{class e{type=ck.required();label=Zr(()=>N[this.type()]);clazz=Zr(()=>`type-${this.type()}`);static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Vk({type:e,selectors:[["docs-api-item-label"]],hostVars:2,hostBindings:function(t,i){t&2&&Qk(i.clazz());},inputs:{type:[1,"type"]},decls:1,vars:1,template:function(t,i){t&1&&pR(0),t&2&&Uw(i.label());},encapsulation:2,changeDetection:0})}return e})();var pe=(e,c)=>c.url;function de(e,c){e&1&&(_p(0,"span",8),pR(1," <!> "),Tp());}function me(e,c){if(e&1&&(_p(0,"li")(1,"a",5),Cw(2,"docs-api-item-label",6),_p(3,"span",7),pR(4),Tp()(),CE(5,de,2,0,"span",8),Tp()),e&2){let n=c.$implicit;dw("adev-api-items-section-item-deprecated",n.isDeprecated),Dk(),lw("routerLink","/"+n.url),QE("aria-describedby",n.isDeprecated?"deprecated-description":null),Dk(),lw("type",n.itemType),Dk(),QE("title",n.title),Dk(),Uw(n.title),Dk(),Yk(n.isDeprecated?5:-1);}}var le=(()=>{class e{group=ck.required();static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Vk({type:e,selectors:[["adev-api-items-section"]],inputs:{group:[1,"group"]},decls:7,vars:3,consts:[[1,"adev-api-items-section-header"],[3,"id"],["routerLink","/api","queryParamsHandling","preserve","tabindex","-1",1,"adev-api-anchor",3,"fragment"],[1,"adev-api-items-section-grid"],[3,"adev-api-items-section-item-deprecated"],[1,"adev-api-items-section-item",3,"routerLink"],["mode","short","aria-hidden","true",1,"docs-api-item-label",3,"type"],[1,"adev-item-title"],[1,"adev-deprecated"]],template:function(t,i){t&1&&(_p(0,"header",0)(1,"h3",1)(2,"a",2),pR(3),Tp()()(),_p(4,"ul",3),Xk(5,me,6,8,"li",4,pe),Tp()),t&2&&(Dk(),lw("id",i.group().id),Dk(),lw("fragment",i.group().id),Dk(),Pp(" ",i.group().title," "),Dk(2),eR(i.group().items));},dependencies:[x,Tn$1],styles:['.adev-api-items-section-header[_ngcontent-%COMP%]{display:flex}.adev-api-items-section-header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:var(--primary-contrast)}.adev-api-items-section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{flex:1;display:flex;gap:.75em;align-items:flex-start;margin-top:1.43rem;font-size:1.25rem}.adev-api-items-section-header[_ngcontent-%COMP%] .adev-link-icon[_ngcontent-%COMP%]{color:var(--quinary-contrast);cursor:pointer}.adev-api-items-section-header[_ngcontent-%COMP%] .adev-link-icon[_ngcontent-%COMP%]:hover{color:var(--primary-contrast)}.adev-api-items-section-grid[_ngcontent-%COMP%]{column-count:3;column-gap:.5rem;padding:0}@container api-ref-page (max-width: 798px){.adev-api-items-section-grid[_ngcontent-%COMP%]{column-count:2}}@container api-ref-page (max-width: 600px){.adev-api-items-section-grid[_ngcontent-%COMP%]{column-count:1}}.adev-api-items-section-grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-inline-start:1px solid var(--senary-contrast);padding:.3rem;padding-inline-start:.75rem;font-size:.875rem;text-overflow:ellipsis;box-sizing:border-box;width:100%}.adev-api-items-section-grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--quaternary-contrast);display:flex;align-items:center;overflow:hidden;padding-block:2px}.adev-api-items-section-grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .adev-item-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.adev-api-items-section-grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{border-inline-start:1px solid var(--quaternary-contrast);background-color:var(--septenary-contrast)}.adev-api-items-section-grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]{color:var(--primary-contrast)}.adev-api-items-section-item[_ngcontent-%COMP%]{display:flex;flex:1;gap:1em}.adev-deprecated[_ngcontent-%COMP%]{font-family:var(--code-font);background-color:var(--senary-contrast);color:var(--tertiary-contrast);width:max-content;border-radius:.25rem;padding:.001rem .2rem .005rem;margin-inline-start:.5rem}.adev-api-anchor[_ngcontent-%COMP%]{color:inherit}.adev-api-anchor[_ngcontent-%COMP%]:after{content:"\\e157";font-family:Material Symbols Outlined;opacity:0;margin-left:8px;vertical-align:middle;color:var(--quaternary-contrast);font-size:clamp(18px,1.25em,30px);transition:opacity .3s ease}.adev-api-anchor[_ngcontent-%COMP%]:hover:after{opacity:1}'],changeDetection:0})}return e})();var fe=t,ce=(()=>{class e{apiGroups=Vn(this.mapManifestToApiGroups());mapManifestToApiGroups(){let n$1=[];for(let t of fe)n$1.push({title:t.moduleLabel.replace("@angular/",""),id:t.normalizedModuleName,items:t.entries.map(i=>{let m=n(t,i.name);return {itemType:i.type,title:i.name,isDeprecated:!!i.isDeprecated,url:m}})});return n$1}static \u0275fac=function(t){return new(t||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ge=(e,c)=>c.id;function ue(e,c){if(e&1){let n=tR();_p(0,"li",9),Fw("click",function(){let i=tk(n).$implicit,m=nR();return nk(m.filterByItemType(i))}),Cw(1,"docs-api-item-label",10),_p(2,"span",11),pR(3),DR(4,"adevApiLabel"),Tp()();}if(e&2){let n=c.$implicit,t=nR();dw("adev-reference-list-type-filter-item-active",t.type()===n),Dk(),lw("type",n),Dk(2),Uw(bR(4,4,n,"full"));}}function _e(e,c){if(e&1&&Cw(0,"adev-api-items-section",7),e&2){let n=c.$implicit;lw("group",n);}}function ve(e,c){e&1&&(_p(0,"div",8)(1,"p"),pR(2,"\u672A\u627E\u5230 API \u6761\u76EE\u3002"),Tp()());}var R="All",$e=(()=>{class e{apiReferenceManager=w(ce);router=w(ot);query=Pk("");type=Pk(R);itemTypes=Object.values(r);includeDeprecated=Vn(false);filterInput=kk.required(pu,{read:Ho});constructor(){ey(()=>{matchMedia("(hover: hover) and (pointer:fine)").matches&&Ce(()=>{this.filterInput().nativeElement.querySelector("input").focus({preventScroll:true});});});}filteredGroups=Zr(()=>{let n=this.query()?.toLocaleLowerCase();return this.apiReferenceManager.apiGroups().map(t=>({title:t.title,id:t.id,items:t.items.filter(i=>(n!==void 0?i.title.toLocaleLowerCase().includes(n):true)&&(this.includeDeprecated()?true:i.isDeprecated===this.includeDeprecated())&&(this.type()===void 0||this.type()===R||i.itemType===this.type()))})).filter(t=>t.items.length>0)});filterByItemType(n){this.type.update(t=>t===n?R:n),this.syncUrlWithFilters();}syncUrlWithFilters(){let n={query:this.query()??null,type:this.type()??null};this.router.navigate([],{queryParams:n,replaceUrl:true,preserveFragment:true,info:{disableScrolling:true}});}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=Vk({type:e,selectors:[["adev-reference-list"]],viewQuery:function(t,i){t&1&&uR(i.filterInput,pu,5,Ho),t&2&&dR();},inputs:{query:[1,"query"],type:[1,"type"]},outputs:{query:"queryChange",type:"typeChange"},decls:15,vars:3,consts:[[1,"adev-reference-list-filter"],[1,"adev-reference-list-query-filter"],["name","query","placeholder","\u8FC7\u6EE4\u5668",3,"ngModelChange","ngModel"],["buttonId","includeDeprecated","label","\u663E\u793A @deprecated","name","includeDeprecated",3,"ngModelChange","ngModel"],[1,"adev-reference-list-type-filter-label"],[1,"adev-reference-list-type-filter"],[1,"adev-reference-list-type-filter-item",3,"adev-reference-list-type-filter-item-active"],[3,"group"],[1,"adev-reference-list-empty"],[1,"adev-reference-list-type-filter-item",3,"click"],["mode","short",1,"docs-api-item-label",3,"type"],[1,"docs-api-item-label-full"]],template:function(t,i){t&1&&(_p(0,"header")(1,"h1"),pR(2,"API \u53C2\u8003\u624B\u518C"),Tp()(),_p(3,"div",0)(4,"div",1)(5,"docs-text-field",2),Gw("ngModelChange",function(d){return hR(i.query,d)||(i.query=d),d}),Fw("ngModelChange",function(){return i.syncUrlWithFilters()}),Tp(),_p(6,"docs-slide-toggle",3),Gw("ngModelChange",function(d){return hR(i.includeDeprecated,d)||(i.includeDeprecated=d),d}),Tp()(),_p(7,"p",4),pR(8,"\u6309\u6807\u8BC6\u7B26\u7C7B\u578B\u7B5B\u9009"),Tp(),_p(9,"ul",5),Xk(10,ue,5,7,"li",6,Kk),Tp()(),Xk(12,_e,1,1,"adev-api-items-section",7,ge,false,ve,3,0,"div",8)),t&2&&(Dk(5),zw("ngModel",i.query),Dk(),zw("ngModel",i.includeDeprecated),Dk(4),eR(i.itemTypes),Dk(2),eR(i.filteredGroups()));},dependencies:[le,x,Sn,Tn,Mi,Jp,pu,oe],styles:["[_nghost-%COMP%]{padding:var(--layout-padding);max-width:var(--page-width);display:block;container:api-ref-page/inline-size}[_nghost-%COMP%] header[_ngcontent-%COMP%]{margin-block-end:2.75rem}[_nghost-%COMP%] header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:var(--quaternary-contrast);font-weight:500;font-size:.875rem;margin:0}[_nghost-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:78ch;color:var(--secondary-contrast)}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%]{border-block-end:1px solid var(--senary-contrast);padding-block-end:2rem;margin-block-end:1rem}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter-label[_ngcontent-%COMP%]{margin-block:2.5rem 1rem}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(6,1fr);margin-block:0;padding-inline:0;cursor:pointer;width:100%;gap:.5rem}@container api-ref-page (max-width: 775px){[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}}@container api-ref-page (max-width: 600px){[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}}@container api-ref-page (max-width: 500px){[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@container api-ref-page (max-width: 350px){[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;padding:.3rem;font-size:.875rem;color:var(--quaternary-contrast);font-weight:500;text-transform:capitalize;border:1px solid transparent;border-radius:.25rem;transition:color .3s ease,background .3s ease,border .3s ease}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{color:var(--primary-contrast);border:1px solid var(--senary-contrast)}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%] li.adev-reference-list-type-filter-item-active[_ngcontent-%COMP%]{background:var(--septenary-contrast);border:1px solid var(--quinary-contrast);color:var(--primary-contrast)}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-type-filter[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .docs-api-item-label-full[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] .adev-reference-list-filter[_ngcontent-%COMP%] .adev-reference-list-query-filter[_ngcontent-%COMP%]{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center}[_nghost-%COMP%] .adev-reference-list-empty[_ngcontent-%COMP%]{text-align:center;margin-block-start:2rem}[_nghost-%COMP%] .adev-reference-list-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}[_nghost-%COMP%] adev-api-items-section[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}return e})();function Ce(e){typeof requestIdleCallback<"u"?requestIdleCallback(e):setTimeout(e,0);}export{R as ALL_TYPES_KEY,$e as default};