1import{d as oe,e as re}from"./chunk-V5NVHXAQ.js";import"./chunk-FEHXWC7P.js";import{a as b}from"./chunk-QP7OOQ5J.js";import{a as ae,b as pe}from"./chunk-LLXDBV5R.js";import{a as ne,b as ie}from"./chunk-DYB65TTY.js";import{b as ee,c as te}from"./chunk-3TLZ5TMP.js";import{Cd as H,Dd as J,Ed as W,Fd as K,Hd as Y,Id as Z,Lc as j,Qc as P,_a as $,ab as U,v as k,xd as X,y as Q,yd as q,zd as G}from"./chunk-BS5JWHVW.js";import{Aa as v,Ac as y,Bc as I,Fc as E,Gc as s,Hc as S,Ib as O,Ic as M,L as N,Ob as c,Vb as l,ad as A,cc as g,dc as C,fc as z,g as T,gc as x,hc as r,hd as V,ic as a,jc as m,nb as D,nc as L,qc as w,rb as o,sc as u,vc as R,wc as F,xb as h,xc as B,za as f,zc as _}from"./chunk-NACBYLXS.js";import"./chunk-EQDQRRRY.js";var ce=["componentsList"],le=["searchBox"];function ue(n,t){n&1&&(r(0,"p")(1,"span")(2,"code"),s(3,"ng-zorro-antd"),a()(),s(4," \u662F Ant Design \u7684 Angular \u5B9E\u73B0\uFF0C\u4E3A\u7F51\u9875\u5F00\u53D1\u63D0\u4F9B\u9AD8\u8D28\u91CF\u7684 UI \u7EC4\u4EF6\u3002 "),a())}function de(n,t){n&1&&(r(0,"p")(1,"span")(2,"code"),s(3,"ng-zorro-antd"),a()(),s(4," is an Angular UI lib, follow Ant Design specification, to provide high quantity UI components for web development. "),a())}function fe(n,t){n&1&&m(0,"nz-icon",7)}function ve(n,t){if(n&1&&(r(0,"div",11)(1,"a",12)(2,"nz-card",13)(3,"div",14),m(4,"img",15),a()()()()),n&2){let e=t.$implicit,i=u(3);o(),F("routerLink","/",e.path,""),o(),B("nzTitle","",e.label," ",i.language==="zh"?e.zh:"",""),o(2),l("alt",e.label)("src",e.cover,D)}}function he(n,t){if(n&1&&(r(0,"div",8)(1,"h3",9),s(2),r(3,"nz-tag"),s(4),a()(),r(5,"div",10),z(6,ve,5,7,"div",11,C),a()()),n&2){let e=u().$implicit;o(2),M(" ",e.name," "),o(2),S(e.children.length),o(2),x(e.children)}}function ge(n,t){if(n&1&&c(0,he,8,2,"div",8),n&2){let e=t.$implicit,i=u();g(e.language===i.language&&e.children.length>0?0:-1)}}var se=class n{constructor(t,e){this.route=t;this.cdr=e}routerList=b;language="en";affixed=!1;searchChange$=new T("");componentsList;searchBox;ngOnInit(){this.route.url.subscribe(t=>{this.language=t[0].path,this.cdr.detectChanges()}),this.searchChange$.asObservable().pipe(N(20)).subscribe(t=>{this.filterComponents(t),this.affixed&&this.scrollIntoView()}),Promise.resolve().then(()=>{this.searchBox.nativeElement.focus()})}onSearchAffixed(t){this.affixed=t}onSearch(t){this.searchChange$.next(t.toLowerCase())}filterComponents(t){if(this.routerList=JSON.parse(JSON.stringify(b)),t)for(let e of this.routerList.components)e.children=e.children.filter(i=>i.label.toLowerCase().includes(t)||i.zh.includes(t));this.cdr.detectChanges()}scrollIntoView(){this.componentsList&&this.componentsList.nativeElement.scrollIntoView({block:"start",behavior:"smooth"})}static \u0275fac=function(e){return new(e||n)(h(k),h(V))};static \u0275cmp=O({type:n,selectors:[["app-components-overview"]],viewQuery:function(e,i){if(e&1&&(_(ce,7),_(le,7)),e&2){let p;y(p=I())&&(i.componentsList=p.first),y(p=I())&&(i.searchBox=p.first)}},decls:18,vars:5,consts:[["componentsList",""],["searchBox",""],["suffixIconSearch",""],[1,"markdown"],[3,"nzChange","nzOffsetTop"],[1,"components-overview-search",3,"nzSuffix"],["type","text","nz-input","","nzSize","large",3,"input","placeholder"],["nzType","search"],[1,"components-overview"],["nz-typography","",1,"components-overview-group-title"],["nz-row",""],["nz-col","","nzXs","24","nzSm","12","nzMd","12","nzLg","8","nzXl","6","nzXXl","6",1,"components-overview-card"],[3,"routerLink"],["nzHoverable","",3,"nzTitle"],[1,"components-overview-img"],[3,"alt","src"]],template:function(e,i){if(e&1){let p=L();r(0,"section",3)(1,"h1"),s(2),a(),r(3,"section"),c(4,ue,5,0,"p")(5,de,5,0,"p"),a(),r(6,"section",null,0),m(8,"nz-divider"),r(9,"nz-affix",4),w("nzChange",function(d){return f(p),v(i.onSearchAffixed(d))}),r(10,"nz-input-group",5)(11,"input",6,1),w("input",function(){f(p);let d=E(12);return v(i.onSearch(d.value))}),a()()(),c(13,fe,1,0,"ng-template",null,2,A),m(15,"nz-divider"),z(16,ge,1,1,null,null,C),a()()}if(e&2){let p=E(14);o(2),S(i.language==="en"?"Components Overview":"\u7EC4\u4EF6\u603B\u89C8"),o(2),g(i.language==="zh"?4:5),o(5),l("nzOff
1setTop",10),o(),l("nzSuffix",p),o(),R("placeholder",i.language==="en"?"Search in components":"\u641C\u7D22\u7EC4\u4EF6"),o(5),x(i.routerList.components)}},dependencies:[Q,Z,Y,re,oe,P,j,pe,ae,K,W,J,te,ee,ie,ne,U,$,H,X,G,q],styles:[`.components-overview{padding:0}.components-overview-group-title{display:flex;gap:8px;align-items:center;margin-top:24px!important}.components-overview-img{display:flex;align-items:center;justify-content:center;height:152px}.components-overview-card{padding:12px;cursor:pointer}nz-input-group.components-overview-search{width:100%;padding:0;font-size:20px;border:0;box-shadow:none}nz-input-group.components-overview-search input{color:#000000d9;font-size:20px}nz-input-group.components-overview-search .anticon{color:#bbb}.ant-affix .components-overview-search{margin:-8px;padding:8px;border-radius:6px;box-shadow:#32325d40 0 6px 12px -2px,#0000004d 0 3px 7px -3px} 2`],encapsulation:2,changeDetection:0})};export{se as ComponentsOverviewComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.