1import{a as q}from"./chunk-2QVSMAA2.js";import{a as gn,b as xn}from"./chunk-BAKGOENF.js";import{a as En}from"./chunk-B3B6JK5A.js";import{a as me,g as it,h as ot,m as rt,n as at}from"./chunk-BS6FJV6Q.js";import"./chunk-SCHSU5EN.js";import"./chunk-UZ6YQCVD.js";import{C as Le,Cc as Qe,Ed as Ye,Fd as mn,Gc as Ue,Gd as un,Ia as Dt,Jd as Je,Kd as pn,Ld as hn,Nd as fn,Od as zn,Pd as et,Qb as dn,Qd as tt,Tc as qe,Td as nt,ac as We,dd as ve,lb as C,nb as B,pb as on,qb as rn,rb as an,sc as Ze,vb as bt,wb as ln,xd as Xe,yc as sn,yd as cn}from"./chunk-5HXFPEER.js";import{$ as Y,$b as u,Ac as i,Bb as te,C as Be,Cc as N,Db as v,E as ft,F as Ke,Fb as _e,Fc as Jt,Gb as Nt,Gc as en,Hc as tn,I as zt,J as gt,Ka as $e,La as Ee,N as se,Na as ce,O as Ot,P as Ht,Pb as jt,Pc as U,Rb as fe,Tb as ze,Vb as Wt,Vc as Ct,Wb as Zt,Xb as Qt,Yb as m,Z as xt,Zb as t,Zc as Tt,_ as Ve,_b as n,_c as nn,ac as Ut,ba as he,bc as qt,cc as Ae,dc as O,ec as Xt,f as de,fb as _t,g as P,ga as W,i as At,ia as Et,j as Lt,jc as g,k as Rt,ka as Kt,lb as c,lc as f,ma as E,mc as vt,nb as $t,nc as Se,o as T,oc as Yt,pb as Gt,pc as J,q as Pt,qb as D,qc as Z,qd as ie,ra as _,rc as Q,rd as je,s as F,sa as S,sb as Me,t as pe,ta as b,ua as w,ud as G,vc as Ge,vd as Ne,w as ht,xb as z,xc as ne,yb as St,zb as I}from"./chunk-ZUWCBCQQ.js";import{a as Oe,b as He}from"./chunk-JNGVGNCT.js";var wt=class{dataNodes;expansionModel=new q(!0);trackBy;getLevel;isExpandable;getChildren;toggle(r){this.expansionModel.toggle(this._trackByValue(r))}expand(r){this.expansionModel.select(this._trackByValue(r))}collapse(r){this.expansionModel.deselect(this._trackByValue(r))}isExpanded(r){return this.expansionModel.isSelected(this._trackByValue(r))}toggleDescendants(r){this.expansionModel.isSelected(this._trackByValue(r))?this.collapseDescendants(r):this.expandDescendants(r)}collapseAll(){this.expansionModel.clear()}expandDescendants(r){let e=[r];e.push(...this.getDescendants(r)),this.expansionModel.select(...e.map(o=>this._trackByValue(o)))}collapseDescendants(r){let e=[r];e.push(...this.getDescendants(r)),this.expansionModel.deselect(...e.map(o=>this._trackByValue(o)))}_trackByValue(r){return this.trackBy?this.trackBy(r):r}},y=class extends wt{getLevel;isExpandable;options;constructor(r,e,o){super(),this.getLevel=r,this.isExpandable=e,this.options=o,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(r){let e=this.dataNodes.indexOf(r),o=[];for(let a=e+1;a<this.dataNodes.length&&this.getLevel(r)<this.getLevel(this.dataNodes[a]);a++)o.push(this.dataNodes[a]);return o}expandAll(){this.expansionModel.select(...this.dataNodes.map(r=>this._trackByValue(r)))}};var yt=new Kt("CDK_TREE_NODE_OUTLET_NODE"),lt=(()=>{class l{viewContainer=E(Me);_node=E(yt,{optional:!0});constructor(){}static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","cdkTreeNodeOutlet",""]]})}return l})(),Re=class{$implicit;level;index;count;constructor(r){this.$implicit=r}},dt=(()=>{class l{template=E($t);when;constructor(){}static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return l})();function _n(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var ge=(()=>{class l{_differs=E(je);_changeDetectorRef=E(ie);_elementRef=E(ce);_dir=E(Le);_onDestroy=new de;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new P({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new P([]);_nodeType=new P(null);_nodes=new P(new Map);_keyManagerNodes=new P([]);_keyManagerFactory=E(cn);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(o=>!o.when);e.length>1,this._defaultNodeDef=e[0]}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e)}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new q(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;rn(this._dataSource)?e=this._dataSource.connect(this):Pt(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=T(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(Y(this._onDestroy)).subscribe(o=>{this._renderDataChanges(o)}))}_getRenderData(e){let o=this._getExpansionModel();return pe([e,this._nodeType,o.changed.pipe(xt(null),he(a=>{this._emitExpansionChanges(a)}))]).pipe(Ve(([a,d])=>d===null?T({renderNodes:a,flattenedNodes:null,nodeType:d}):this._computeRenderingData(a,d).pipe(F(s=>He(Oe({},s),{nodeType:d})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes)}_emitExpansionChanges(e){if(!e)return;let o=this._nodes.value;for(let a of e.added)o.get(a)?._emitExpansionState(!0);for(let a of e.removed)o.get(a)?._emitExpansionState(!1)}_initializeKeyManager(){let e=pe([this._keyManagerNodes,this._nodes]).pipe(F(([a,d])=>a.reduce((s,p)=>{let h=d.get(this._getExpansionKey(p));return h&&s.push(h),s},[]))),o={trackBy:a=>this._getExpansionKey(a.data),skipPredicate:a=>!!a.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,o)}_initializeDataDiffer(){let e=this.trackBy??((o,a)=>this._getExpansionKey(a));this._dataDiffer=this._differs.find([]).create(e)}_checkTreeControlUsage(){}renderNodeChanges(e,o=this._dataDiffer,a=this._nodeOutlet.viewContainer,d){let s=o.diff(e);!s&&!this._viewInit||(s?.forEachOperation((p,h,x)=>
1{if(p.previousIndex==null)this.insertNode(e[x],x,a,d);else if(x==null)a.remove(h);else{let le=a.get(h);a.move(le,x)}}),s?.forEachIdentityChange(p=>{let h=p.item;if(p.currentIndex!=null){let x=a.get(p.currentIndex);x.context.$implicit=h}}),d?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(e,o){if(this._nodeDefs.length===1)return this._nodeDefs.first;let a=this._nodeDefs.find(d=>d.when&&d.when(o,e))||this._defaultNodeDef;return a}insertNode(e,o,a,d){let s=this._getLevelAccessor(),p=this._getNodeDef(e,o),h=this._getExpansionKey(e),x=new Re(e);d??=this._parents.get(h)??void 0,s?x.level=s(e):d!==void 0&&this._levels.has(this._getExpansionKey(d))?x.level=this._levels.get(this._getExpansionKey(d))+1:x.level=0,this._levels.set(h,x.level),(a||this._nodeOutlet.viewContainer).createEmbeddedView(p.template,x,o),oe.mostRecentTreeNode&&(oe.mostRecentTreeNode.data=e)}isExpanded(e){return!!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e))}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e))}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e))}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e))}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let o=this._expansionModel;o.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(se(1),Y(this._onDestroy)).subscribe(a=>{o.select(...a.map(d=>this._getExpansionKey(d)))})}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let o=this._expansionModel;o.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(se(1),Y(this._onDestroy)).subscribe(a=>{o.deselect(...a.map(d=>this._getExpansionKey(d)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.select(...e))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.deselect(...e))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let o=this._getLevelAccessor(),a=this._expansionModel??this.treeControl?.expansionModel;if(!a)return T([]);let d=this._getExpansionKey(e),s=a.changed.pipe(Ve(h=>h.added.includes(d)?T(!0):h.removed.includes(d)?T(!1):Rt),xt(this.isExpanded(e)));if(o)return pe([s,this._flattenedNodes]).pipe(F(([h,x])=>h?this._findChildrenByLevel(o,x,e,1):[]));let p=this._getChildrenAccessor();if(p)return Xe(p(e)??[]);throw _n()}_findChildrenByLevel(e,o,a,d){let s=this._getExpansionKey(a),p=o.findIndex(xe=>this._getExpansionKey(xe)===s),h=e(a),x=h+d,le=[];for(let xe=p+1;xe<o.length;xe++){let Mt=e(o[xe]);if(Mt<=h)break;Mt<=x&&le.push(o[xe])}return le}_registerNode(e){this._nodes.value.set(this._getExpansionKey(e.data),e),this._nodes.next(this._nodes.value)}_unregisterNode(e){this._nodes.value.delete(this._getExpansionKey(e.data)),this._nodes.next(this._nodes.value)}_getLevel(e){return this._levels.get(this._getExpansionKey(e))}_getSetSize(e){return this._getAriaSet(e).length}_getPositionInSet(e){let o=this._getAriaSet(e),a=this._getExpansionKey(e);return o.findIndex(d=>this._getExpansionKey(d)===a)+1}_getNodeParent(e){let o=this._parents.get(this._getExpansionKey(e.data));return o&&this._nodes.value.get(this._getExpansionKey(o))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(F(o=>o.reduce((a,d)=>{let s=this._nodes.value.get(this._getExpansionKey(d));return s&&a.push(s),a},[])))}_sendKeydownToKeyManager(e){if(e.target===this._elementRef.nativeElement)this._keyManager.onKeydown(e);else{let o=this._nodes.getValue();for(let[,a]of o)if(e.target===a._elementRef.nativeElement){this._keyManager.onKeydown(e);break}}}_getDescendants(e){if(this.treeControl)return T(this.treeControl.getDescendants(e));
1if(this.levelAccessor){let o=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return T(o)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(zt((o,a)=>(o.push(...a),o),[]));throw _n()}_getAllChildrenRecursively(e){return this.childrenAccessor?Xe(this.childrenAccessor(e)).pipe(se(1),Ve(o=>{for(let a of o)this._parents.set(this._getExpansionKey(a),e);return T(...o).pipe(gt(a=>ht(T([a]),this._getAllChildrenRecursively(a))))})):T([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let o=this._getExpansionKey(e),a=this._parents.get(o),d=a?this._getExpansionKey(a):null;return this._ariaSets.get(d)??[e]}_findParentForNode(e,o,a){if(!a.length)return null;let d=this._levels.get(this._getExpansionKey(e))??0;for(let s=o-1;s>=0;s--){let p=a[s];if((this._levels.get(this._getExpansionKey(p))??0)<d)return p}return null}_flattenNestedNodesWithExpansion(e,o=0){let a=this._getChildrenAccessor();return a?T(...e).pipe(gt(d=>{let s=this._getExpansionKey(d);this._parents.has(s)||this._parents.set(s,null),this._levels.set(s,o);let p=Xe(a(d));return ht(T([d]),p.pipe(se(1),he(h=>{this._ariaSets.set(s,[...h??[]]);for(let x of h??[]){let le=this._getExpansionKey(x);this._parents.set(le,d),this._levels.set(le,o+1)}}),Ve(h=>h?this._flattenNestedNodesWithExpansion(h,o+1).pipe(F(x=>this.isExpanded(d)?x:[])):T([]))))}),zt((d,s)=>(d.push(...s),d),[])):T([...e])}_computeRenderingData(e,o){if(this.childrenAccessor&&o==="flat")return this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(F(a=>({renderNodes:a,flattenedNodes:a})));if(this.levelAccessor&&o==="nested"){let a=this.levelAccessor;return T(e.filter(d=>a(d)===0)).pipe(F(d=>({renderNodes:d,flattenedNodes:e})),he(({flattenedNodes:d})=>{this._calculateParents(d)}))}else return o==="flat"?T({renderNodes:e,flattenedNodes:e}).pipe(he(({flattenedNodes:a})=>{this._calculateParents(a)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(F(a=>({renderNodes:e,flattenedNodes:a}))))}_updateCachedData(e){this._flattenedNodes.next(e)}_updateKeyManagerItems(e){this._keyManagerNodes.next(e)}_calculateParents(e){let o=this._getLevelAccessor();if(o){this._clearPreviousCache();for(let a=0;a<e.length;a++){let d=e[a],s=this._getExpansionKey(d);this._levels.set(s,o(d));let p=this._findParentForNode(d,a,e);this._parents.set(s,p);let h=p?this._getExpansionKey(p):null,x=this._ariaSets.get(h)??[];x.splice(a,0,d),this._ariaSets.set(h,x)}}}_forEachExpansionKey(e){let o=[],a=[];this._nodes.value.forEach(d=>{o.push(this._getExpansionKey(d.data)),a.push(this._getDescendants(d.data))}),a.length>0?pe(a).pipe(se(1),Y(this._onDestroy)).subscribe(d=>{d.forEach(s=>s.forEach(p=>o.push(this._getExpansionKey(p)))),e(o)}):e(o)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=z({type:l,selectors:[["cdk-tree"]],contentQueries:function(o,a,d){if(o&1&&Yt(d,dt,5),o&2){let s;Z(s=Q())&&(a._nodeDefs=s)}},viewQuery:function(o,a){if(o&1&&J(lt,7),o&2){let d;Z(d=Q())&&(a._nodeOutlet=d.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(o,a){o&1&&g("keydown",function(s){return a._sendKeydownToKeyManager(s)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(o,a){o&1&&Ae(0,0)},dependencies:[lt],encapsulation:2})}return l})(),oe=(()=>{class l{_elementRef=E(ce);_tree=E(ge);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new _e;expandedChange=new _e;static mostRecentTreeNode=null;_destroyed=new de;_dataChanges=new de;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next())}_data;
1get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=E(ie);constructor(){l.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=Dn(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(F(()=>this.isExpanded),Ht()).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){l.mostRecentTreeNode===this&&(l.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(e){this.expandedChange.emit(e)}static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(o,a){o&1&&g("click",function(){return a._setActiveItem()})("focus",function(){return a._focusItem()}),o&2&&(Xt("tabindex",a._tabindex),jt("aria-expanded",a._getAriaExpanded())("aria-level",a.level+1)("aria-posinset",a._getPositionInSet())("aria-setsize",a._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",G],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",G],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return l})();function Dn(l){let r=l.parentElement;for(;r&&!bn(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?Ne(r.getAttribute("aria-level")):0:-1}function bn(l){let r=l.classList;return!!(r?.contains("cdk-nested-tree-node")||r?.contains("cdk-tree"))}var wn=/([A-Za-z%]+)$/,Ft=(()=>{class l{_treeNode=E(oe);_tree=E(ge);_element=E(ce);_dir=E(Le,{optional:!0});_currentPadding;_destroyed=new de;indentUnits="px";get level(){return this._level}set level(e){this._setLevelInput(e)}_level;get indent(){return this._indent}set indent(e){this._setIndentInput(e)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe(Y(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,o=this._level==null?e:this._level;return typeof o=="number"?`${o*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){let o=this._paddingIndent();if(o!==this._currentPadding||e){let a=this._element.nativeElement,d=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",s=d==="paddingLeft"?"paddingRight":"paddingLeft";a.style[d]=o||"",a.style[s]="",this._currentPadding=o}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding()}_setIndentInput(e){let o=e,a="px";if(typeof e=="string"){let d=e.split(wn);o=d[0],a=d[1]||a}this.indentUnits=a,this._indent=Ne(o),this._setPadding()}static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",Ne],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return l})(),kt=(()=>{class l{_tree=E(ge);_treeNode=E(oe);recursive=!1;constructor(){}
1_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(o,a){o&1&&g("click",function(s){return a._toggle(),s.stopPropagation()})("keydown.Enter",function(s){return a._toggle(),s.preventDefault()})("keydown.Space",function(s){return a._toggle(),s.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",G]}})}return l})();function yn(l,r){if(l&1&&u(0,"span",1),l&2){let e=r.$implicit;ne("ant-tree-indent-unit-end",!e)}}var Fn=[[["nz-tree-node-toggle"],["","nz-tree-node-toggle",""]],[["nz-tree-node-checkbox"]],[["nz-tree-node-option"]],"*"],kn=["nz-tree-node-toggle, [nz-tree-node-toggle]","nz-tree-node-checkbox","nz-tree-node-option","*"];function In(l,r){if(l&1&&u(0,"nz-tree-node-indents",0),l&2){let e=f();m("indents",e.indents)}}function Bn(l,r){l&1&&(t(0,"nz-tree-node-toggle",1),u(1,"span",2),n())}var Vn=["*"];function Mn(l,r){}function An(l,r){if(l&1&&(Ut(0),v(1,Mn,0,0,"ng-template",4),qt()),l&2){let e=r.$implicit,o=f();c(),m("data",e)("compareBy",o.compareBy)}}var vn=(()=>{class l{ngZone;ref;host;destroy$;nzChecked;nzIndeterminate;nzDisabled;nzClick=new _e;constructor(e,o,a,d){this.ngZone=e,this.ref=o,this.host=a,this.destroy$=d}ngOnInit(){Dt(this.host.nativeElement,"click").pipe(Y(this.destroy$)).subscribe(e=>{!this.nzDisabled&&this.nzClick.observers.length&&this.ngZone.run(()=>{this.nzClick.emit(e),this.ref.markForCheck()})})}static \u0275fac=function(o){return new(o||l)(D(Nt),D(ie),D(ce),D(ve))};static \u0275cmp=z({type:l,selectors:[["nz-tree-node-checkbox",3,"builtin",""]],hostAttrs:[1,"ant-tree-checkbox"],hostVars:6,hostBindings:function(o,a){o&2&&ne("ant-tree-checkbox-checked",a.nzChecked)("ant-tree-checkbox-indeterminate",a.nzIndeterminate)("ant-tree-checkbox-disabled",a.nzDisabled)},inputs:{nzChecked:[2,"nzChecked","nzChecked",G],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",G],nzDisabled:[2,"nzDisabled","nzDisabled",G]},outputs:{nzClick:"nzClick"},features:[U([ve])],decls:1,vars:0,consts:[[1,"ant-tree-checkbox-inner"]],template:function(o,a){o&1&&u(0,"span",0)},encapsulation:2,changeDetection:0})}return l})(),Sn=(l,r,e)=>{let o=l.indexOf(r);if(o<0)return null;let a=e(r);for(o--;o>=0;o--){let d=e(l[o]);if(d+1===a)return l[o];if(d+1<a)return null}return null},Nn=(l,r,e,o)=>{let a=typeof o<"u"?o:l.indexOf(r);if(a<0)return null;let d=e(r);for(a++;a<l.length;a++){let s=e(l[a]);if(s<d)return null;if(s===d)return l[a]}return null},Pe=class extends oe{},Ce=(()=>{class l extends ge{differs;changeDetectorRef;directionality;destroy$=new de;dir="ltr";_dataSourceChanged=new de;treeControl=void 0;get dataSource(){return super.dataSource}set dataSource(e){super.dataSource=e}nzDirectoryTree=!1;nzBlockNode=!1;noAnimation=E(We,{host:!0,optional:!0});constructor(e,o,a){super(e,o,a),this.differs=e,this.changeDetectorRef=o,this.directionality=a}ngOnInit(){super.ngOnInit(),this.dir=this.directionality.value,this.directionality.change?.pipe(Y(this.destroy$)).subscribe(e=>{this.dir=e,this.changeDetectorRef.detectChanges()})}ngOnDestroy(){super.ngOnDestroy(),this.destroy$.next(!0),this.destroy$.complete()}renderNodeChanges(e,o,a,d){super.renderNodeChanges(e,o,a,d),this._dataSourceChanged.next()}static \u0275fac=function(o){return new(o||l)(D(je),D(ie),D(Le))};static \u0275cmp=z({type:l,selectors:[["ng-component"]],inputs:{treeControl:[0,"nzTreeControl","treeControl"],dataSource:[0,"nzDataSource","dataSource"],nzDirectoryTree:[2,"nzDirectoryTree","nzDirectoryTree",G],nzBlockNode:[2,"nzBlockNode","nzBlockNode",G]},features:[te],decls:0,vars:0,template:function(o,a){},encapsulation:2})}return l})();function Ln(l){return l.map(r=>r?1:0).join("")}var Rn=typeof requestAnimationFrame<"u"?Lt:At,Pn=(()=>{class l{indents=[];static \u0275fac=function(o){return new(o||l)};static \u0275cmp=z({type:l,selectors:[["nz-tree-node-indents"]],hostAttrs:[1,"ant-tree-indent"],inputs:{indents:"indents"},decls:2,vars:0,consts:[[1,"ant-tree-indent-unit",3,"ant-tree-indent-unit-end"],[1,"ant-tree-indent-unit"]],template:function(o,a){o&1&&Zt(0,yn,1,2,"span",0,Wt),o&2&&Qt(a.indents)},encapsulation:2,changeDetection:0})}return l})(),ct=(()=>{class l{treeNode;tree;cdr;isLast="unset";isLeaf=!1;preNodeRef=null;nextNodeRef=null;currentIndents="";changeSubscription;constructor(e,o,a){this.treeNode=e,this.tree=o,this.cdr=a,this.buildIndents(),this.checkLast(),this.changeSubscription=Be(this.treeNode._dataChanges,o._dataSourceChanged).pipe(Ke(0,Rn)).subscribe(()=>{this.buildIndents(),this.checkAdjacent(),this.cdr.markForCheck()})}getIndents(){let e=[];
1if(!this.tree.treeControl)return e;let o=this.tree.treeControl.dataNodes,a=this.tree.treeControl.getLevel,d=Sn(o,this.treeNode.data,a);for(;d;)Nn(o,d,a)?e.unshift(!0):e.unshift(!1),d=Sn(o,d,a);return e}buildIndents(){if(this.treeNode.data){let e=this.getIndents(),o=Ln(e);o!==this.currentIndents&&(this.treeNode.setIndents(this.getIndents()),this.currentIndents=o)}}checkAdjacent(){let e=this.tree.treeControl?.dataNodes||[],o=e.indexOf(this.treeNode.data),a=e[o-1]||null,d=e[o+1]||null;(this.nextNodeRef!==d||this.preNodeRef!==a)&&this.checkLast(o),this.preNodeRef=a,this.nextNodeRef=d}checkLast(e){let o=this.tree.treeControl?.dataNodes||[];this.isLeaf=this.treeNode.isLeaf,this.isLast=!!this.tree.treeControl&&!Nn(o,this.treeNode.data,this.tree.treeControl.getLevel,e)}ngOnDestroy(){this.preNodeRef=null,this.nextNodeRef=null,this.changeSubscription.unsubscribe()}static \u0275fac=function(o){return new(o||l)(D(Pe),D(Ce),D(ie))};static \u0275dir=I({type:l,selectors:[["nz-tree-node","nzTreeNodeIndentLine",""]],hostAttrs:[1,"ant-tree-show-line"],hostVars:2,hostBindings:function(o,a){o&2&&ne("ant-tree-treenode-leaf-last",a.isLast&&a.isLeaf)}})}return l})(),H=(()=>{class l{static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["nz-tree-node-toggle","nzTreeNodeNoopToggle",""],["","nzTreeNodeNoopToggle",""]],hostAttrs:[1,"ant-tree-switcher","ant-tree-switcher-noop"]})}return l})(),A=(()=>{class l extends kt{recursive=!1;get isExpanded(){return this._treeNode.isExpanded}static \u0275fac=(()=>{let e;return function(a){return(e||(e=Ee(l)))(a||l)}})();static \u0275dir=I({type:l,selectors:[["nz-tree-node-toggle",3,"nzTreeNodeNoopToggle",""],["","nzTreeNodeToggle",""]],hostAttrs:[1,"ant-tree-switcher"],hostVars:4,hostBindings:function(o,a){o&2&&ne("ant-tree-switcher_open",a.isExpanded)("ant-tree-switcher_close",!a.isExpanded)},inputs:{recursive:[2,"nzTreeNodeToggleRecursive","recursive",G]},features:[U([{provide:kt,useExisting:W(()=>l)}]),te]})}return l})(),K=(()=>{class l{static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","nzTreeNodeToggleRotateIcon",""]],hostAttrs:[1,"ant-tree-switcher-icon"]})}return l})(),Cn=(()=>{class l{static \u0275fac=function(o){return new(o||l)};static \u0275dir=I({type:l,selectors:[["","nzTreeNodeToggleActiveIcon",""]],hostAttrs:[1,"ant-tree-switcher-loading-icon"]})}return l})(),k=(()=>{class l extends Pe{elementRef;tree;indents=[];disabled=!1;selected=!1;isLeaf=!1;renderer=E(Gt);cdr=E(ie);constructor(e,o){super(e,o),this.elementRef=e,this.tree=o,this._elementRef.nativeElement.classList.add("ant-tree-treenode")}
1ngOnInit(){this.isLeaf=!this.tree.treeControl?.isExpandable(this.data)}disable(){this.disabled=!0,this.updateDisabledClass()}enable(){this.disabled=!1,this.updateDisabledClass()}select(){this.selected=!0,this.updateSelectedClass()}deselect(){this.selected=!1,this.updateSelectedClass()}setIndents(e){this.indents=e,this.cdr.markForCheck()}updateSelectedClass(){this.selected?this.renderer.addClass(this.elementRef.nativeElement,"ant-tree-treenode-selected"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-tree-treenode-selected")}updateDisabledClass(){this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"ant-tree-treenode-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-tree-treenode-disabled")}static \u0275fac=function(o){return new(o||l)(D(ce),D(Ce))};static \u0275cmp=z({type:l,selectors:[["nz-tree-node",3,"builtin",""]],hostVars:4,hostBindings:function(o,a){o&2&&ne("ant-tree-treenode-switcher-open",a.isExpanded)("ant-tree-treenode-switcher-close",!a.isExpanded)},exportAs:["nzTreeNode"],features:[U([{provide:oe,useExisting:W(()=>l)},{provide:Pe,useExisting:W(()=>l)}]),te],ngContentSelectors:kn,decls:6,vars:2,consts:[[3,"indents"],["nzTreeNodeNoopToggle","",1,"nz-tree-leaf-line-icon"],[1,"ant-tree-switcher-leaf-line"]],template:function(o,a){o&1&&(vt(Fn),fe(0,In,1,1,"nz-tree-node-indents",0),Se(1),fe(2,Bn,2,0,"nz-tree-node-toggle",1),Se(3,1),Se(4,2),Se(5,3)),o&2&&(ze(a.indents.length?0:-1),c(2),ze(a.indents.length&&a.isLeaf?2:-1))},dependencies:[Pn,H],encapsulation:2,changeDetection:0})}return l})(),L=(()=>{class l extends dt{when=null;static \u0275fac=(()=>{let e;return function(a){return(e||(e=Ee(l)))(a||l)}})();static \u0275dir=I({type:l,selectors:[["","nzTreeNodeDef",""]],inputs:{when:[0,"nzTreeNodeDefWhen","when"]},features:[U([{provide:dt,useExisting:W(()=>l)}]),te]})}return l})(),On=(()=>{class l{_viewContainerRef;_viewRef=null;data;compareBy;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this.shouldRecreateView(e)){let a=this._viewContainerRef;this._viewRef&&a.remove(a.indexOf(this._viewRef)),this._viewRef=this.data?a.createEmbeddedView(this.data.nodeDef.template,this.data.context):null,oe.mostRecentTreeNode&&this._viewRef&&(oe.mostRecentTreeNode.data=this.data.data)}else this._viewRef&&this.data.context&&this.updateExistingContext(this.data.context)}shouldRecreateView(e){let o=e.data;return o&&this.hasContextShapeChanged(o)}hasContextShapeChanged(e){let o=Object.keys(e.previousValue||{}),a=Object.keys(e.currentValue||{});if(o.length===a.length){for(let d of a)if(o.indexOf(d)===-1)return!0;return this.innerCompareBy(e.previousValue?.data??null)!==this.innerCompareBy(e.currentValue?.data??null)}return!0}get innerCompareBy(){return e=>e===null?e:this.compareBy?this.compareBy(e):e}updateExistingContext(e){for(let o of Object.keys(e))this._viewRef.context[o]=this.data.context[o]}static \u0275fac=function(o){return new(o||l)(D(Me))};static \u0275dir=I({type:l,selectors:[["","nzTreeVirtualScrollNodeOutlet",""]],inputs:{data:"data",compareBy:"compareBy"},features:[$e]})}return l})(),ee=(()=>{class l{ngZone;host;destroy$;treeNode;nzSelected=!1;nzDisabled=!1;nzClick=new _e;constructor(e,o,a,d){this.ngZone=e,this.host=o,this.destroy$=a,this.treeNode=d}get isExpanded(){return this.treeNode.isExpanded}ngOnChanges(e){let{nzDisabled:o,nzSelected:a}=e;o&&(o.currentValue?this.treeNode.disable():this.treeNode.enable()),a&&(a.currentValue?this.treeNode.select():this.treeNode.deselect())}ngOnInit(){Dt(this.host.nativeElement,"click").pipe(ft(()=>!this.nzDisabled&&this.nzClick.observers.length>0),Y(this.destroy$)).subscribe(e=>{this.ngZone.run(()=>this.nzClick.emit(e))})}static \u0275fac=function(o){return new(o||l)(D(Nt),D(ce),D(ve),D(k))};static \u0275cmp=z({type:l,selectors:[["nz-tree-node-option"]],hostAttrs:[1,"ant-tree-node-content-wrapper"],hostVars:4,hostBindings:function(o,a){o&2&&ne("ant-tree-node-content-wrapper-open",a.isExpanded)("ant-tree-node-selected",a.nzSelected)},inputs:{nzSelected:[2,"nzSelected","nzSelected",G],nzDisabled:[2,"nzDisabled","nzDisabled",G]},outputs:{nzClick:"nzClick"},features:[U([ve]),$e],ngContentSelectors:Vn,decls:2,vars:0,consts:[[1,"ant-tree-title"]],template:function(o,a){o&1&&(vt(),t(0,"span",0),Se(1),n())},encapsulation:2,changeDetection:0})}return l})(),st=(()=>{class l{viewContainer;_node=E(yt,{optional:!0});constructor(e){this.viewContainer=e}static \u0275fac=function(o){return new(o||l)(D(Me))};static \u0275dir=I({type:l,selectors:[["","nzTreeNodeOutlet",""]],features:[U([{provide:lt,useExisting:W(()=>l)}])]})}return l})(),j=(()=>{class l extends Ft{_indent=24;get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=Ee(l)))(a||l)}})();static \u0275dir=I({type:l,selectors:[["","nzTreeNodePadding",""]],inputs:{level:[2,"nzTreeNodePadding","level",Ne],indent:[0,"nzTreeNodePaddingIndent","indent"]},features:[U([{provide:Ft,useExisting:W(()=>l)}]),te]})}return l})(),$=(()=>{class l extends Ce{nodeOutlet;_afterViewInit=!1;ngAfterViewInit(){Promise.resolve().then(()=>{this._afterViewInit=!0,this.changeDetectorRef.markForCheck()})}static \u0275fac=(()=>{let e;return function(a){return(e||(e=Ee(l)))(a||l)}})();static \u0275cmp=z({type:l,selectors:[["nz-tree-view"]],viewQuery:function(o,a){if(o&1&&J(st,7),o&2){let d;Z(d=Q())&&(a.nodeOutlet=d.first)}},hostAttrs:[1,"ant-tree"],hostVars:6,hostBindings:function(o,a){o&2&&ne("ant-tree-block-node",a.nzDirectoryTree||a.nzBlockNode)("ant-tree-directory",a.nzDirectoryTree)("ant-tree-rtl",a.dir==="rtl")},exportAs:["nzTreeView"],features:[U([{provide:ge,useExisting:W(()=>l)},{provide:Ce,useExisting:W(()=>l)}]),te],decls:3,vars:2,consts:[[1,"ant-tree-list-holder"],[1,"ant-tree-list-holder-inner"],["nzTreeNodeOutlet",""]],template:function(o,a){o&1&&(t(0,"div",0)(1,"div",1),Ae(2,2),n()()),o&2&&(c(),m("@.disabled",!a._afterViewInit||!!(a.noAnimation!=null&&a.noAnimation.nzNoAnimation))("@treeCollapseMotion",a._nodeOutlet.viewContainer.length))},dependencies:[st],encapsulation:2,data:{animation:[dn]},changeDetection:0})}return l})(),It=28,Bt=(()=>{class l extends Ce{nodeOutlet;virtualScrollViewport;nzItemSize=It;nzMinBufferPx=It*5;nzMaxBufferPx=It*10;trackBy=null;nodes=[];innerTrackBy=e=>e;ngOnChanges({trackBy:e}){e&&(typeof e.currentValue=="function"?this.innerTrackBy=(o,a)=>this.trackBy(o,a.data):this.innerTrackBy=o=>o)}get compareBy(){let e=this.treeControl;return e.trackBy?e.trackBy:null}renderNodeChanges(e){this.nodes=new Array(...e).map((o,a)=>this.createNode(o,a)),this._dataSourceChanged.next(),this.changeDetectorRef.markForCheck()}_getLevel(e){if(this.treeControl?.getLevel)return this.treeControl.getLevel(e)}createNode(e,o){let a=this._getNodeDef(e,o),d=new Re(e);return this.treeControl?.getLevel?d.level=this.treeControl.getLevel(e):d.level=0,{data:e,context:d,nodeDef:a}}static \u0275fac=(()=>{let e;return function(a){return(e||(e=Ee(l)))(a||l)}})();static \u0275cmp=z({type:l,selectors:[["nz-tree-virtual-scroll-view"]],viewQuery:function(o,a){if(o&1&&(J(st,7),J(bt,7)),o&2){let d;Z(d=Q())&&(a.nodeOutlet=d.first),Z(d=Q())&&(a.virtualScrollViewport=d.first)}},hostAttrs:[1,"ant-tree"],hostVars:6,hostBindings:function(o,a){o&2&&ne("ant-tree-block-node",a.nzDirectoryTree||a.nzBlockNode)("ant-tree-directory",a.nzDirectoryTree)("ant-tree-rtl",a.dir==="rtl")},inputs:{nzItemSize:"nzItemSize",nzMinBufferPx:"nzMinBufferPx",nzMaxBufferPx:"nzMaxBufferPx",trackBy:"trackBy"},exportAs:["nzTreeVirtualScrollView"],features:[U([{provide:Ce,useExisting:W(()=>l)},{provide:ge,useExisting:W(()=>l)}]),te,$e],decls:4,vars:5,consts:[[1,"ant-tree-list"],[1,"ant-tree-list-holder",3,"itemSize","minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["nzTreeNodeOutlet",""],["nzTreeVirtualScrollNodeOutlet","",3,"data","compareBy"]],template:function(o,a){o&1&&(t(0,"div",0)(1,"cdk-virtual-scroll-viewport",1),v(2,An,2,2,"ng-container",2),n()(),Ae(3,3)),o&2&&(c(),m("itemSize",a.nzItemSize)("minBufferPx",a.nzMinBufferPx)("maxBufferPx",a.nzMaxBufferPx),c(),m("cdkVirtualForOf",a.nodes)("cdkVirtualForTrackBy",a.innerTrackBy))},dependencies:[On,ln,st,bt,an],encapsulation:2,changeDetection:0})}return l})();var R=(()=>{class l{static \u0275fac=function(o){return new(o||l)};static \u0275mod=St({type:l});static \u0275inj=Et({imports:[Bt]})}return l})(),V=class{transformFunction;getLevel;isExpandable;getChildren;constructor(r,e,o,a){this.transformFunction=r,this.getLevel=e,this.isExpandable=o,this.getChildren=a}flattenNode(r,e,o,a){let d=this.transformFunction(r,e);if(o.push(d),this.isExpandable(d)){let s=this.getChildren(r);
1s&&(Array.isArray(s)?this.flattenChildren(s,e,o,a):s.pipe(se(1)).subscribe(p=>{this.flattenChildren(p,e,o,a)}))}return o}flattenChildren(r,e,o,a){r.forEach((d,s)=>{let p=a.slice();p.push(s!==r.length-1),this.flattenNode(d,e+1,o,p)})}flattenNodes(r){let e=[];return r.forEach(o=>this.flattenNode(o,0,e,[])),e}expandFlattenedNodes(r,e){let o=[],a=[];return a[0]=!0,r.forEach(d=>{let s=!0;for(let p=0;p<=this.getLevel(d);p++)s=s&&a[p];s&&o.push(d),this.isExpandable(d)&&(a[this.getLevel(d)+1]=e.isExpanded(d))}),o}},M=class extends on{_treeControl;_treeFlattener;_flattenedData=new P([]);_expandedData=new P([]);_data;constructor(r,e,o=[]){super(),this._treeControl=r,this._treeFlattener=e,this._data=new P(o),this.flatNodes()}setData(r){this._data.next(r),this.flatNodes()}getData(){return this._data.getValue()}connect(r){let e=[r.viewChange,this._treeControl.expansionModel.changed.asObservable(),this._flattenedData.asObservable()];return Be(...e).pipe(F(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}flatNodes(){this._flattenedData.next(this._treeFlattener.flattenNodes(this.getData())),this._treeControl.dataNodes=this._flattenedData.value}};function Hn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3),u(1,"nz-tree-node-toggle",4),t(2,"nz-tree-node-option",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.selectListSelection.toggle(a))}),i(3),n()()}if(l&2){let e=r.$implicit,o=f();c(2),m("nzDisabled",e.disabled)("nzSelected",o.selectListSelection.isSelected(e)),c(),N(" ",e.name," ")}}function Kn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),u(2,"nz-icon",6),n(),t(3,"nz-tree-node-option",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.selectListSelection.toggle(a))}),i(4),n()()}if(l&2){let e=r.$implicit,o=f();c(3),m("nzDisabled",e.disabled)("nzSelected",o.selectListSelection.isSelected(e)),c(),N(" ",e.name," ")}}var $n=[{name:"parent 1",children:[{name:"parent 1-0",disabled:!0,children:[{name:"leaf"},{name:"leaf"}]},{name:"parent 1-1",children:[{name:"leaf"}]}]}],Te=class l{transformer=(r,e)=>({expandable:!!r.children&&r.children.length>0,name:r.name,level:e,disabled:!!r.disabled});selectListSelection=new q(!0);treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);constructor(){this.dataSource.setData($n),this.treeControl.expandAll()}hasChild=(r,e)=>e.expandable;static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-basic"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"nzClick","nzDisabled","nzSelected"],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(e,o){e&1&&(t(0,"nz-tree-view",0),v(1,Hn,4,3,"nz-tree-node",1)(2,Kn,5,3,"nz-tree-node",2),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[B,C,R,$,L,k,A,j,K,ee,H],encapsulation:2})};function Gn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3),u(1,"nz-tree-node-toggle",4),t(2,"nz-tree-node-checkbox",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.leafItemSelectionToggle(a))}),n(),t(3,"nz-tree-node-option",6),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.leafItemSelectionToggle(a))}),i(4),n()()}if(l&2){let e=r.$implicit,o=f();c(2),m("nzDisabled",e.disabled)("nzChecked",o.checklistSelection.isSelected(e)),c(),m("nzDisabled",e.disabled),c(),N(" ",e.name," ")}}function jn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),u(2,"nz-icon",7),n(),t(3,"nz-tree-node-checkbox",8),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.itemSelectionToggle(a))}),n(),t(4,"nz-tree-node-option",6),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.itemSelectionToggle(a))}),i(5),n()()}if(l&2){let e=r.$implicit,o=f();c(3),m("nzDisabled",e.disabled)("nzChecked",o.descendantsAllSelected(e))("nzIndeterminate",o.descendantsPartiallySelected(e)),c(),m("nzDisabled",e.disabled),c(),N(" ",e.name," ")}}var Wn=[{name:"0-0",disabled:!0,children:[{name:"0-0-0"},{name:"0-0-1"},{name:"0-0-2"}]},{name:"0-1",children:[{name:"0-1-0",children:[{name:"0-1-0-0"},{name:"0-1-0-1"}]},{name:"0-1-1",children:[{name:"0-1-1-0"},{name:"0-1-1-1"}]}]}],De=class l{transformer=(r,e)=>{let o=this.nestedNodeMap.get(r),a=o&&o.name===r.name?o:{expandable:!!r.children&&r.children.length>0,name:r.name,level:e,disabled:!!r.disabled};return this.flatNodeMap.set(a,r),this.nestedNodeMap.set(r,a),a};flatNodeMap=new Map;nestedNodeMap=new Map;checklistSelection=new q(!0);treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);constructor(){this.dataSource.setData(Wn)}hasChild=(r,e)=>e.expandable;descendantsAllSelected(r){let e=this.treeControl.getDescendants(r);return e.length>0&&e.every(o=>this.checklistSelection.isSelected(o))}descendantsPartiallySelected(r){return this.treeControl.getDescendants(r).some(a=>this.checklistSelection.isSelected(a))&&!this.descendantsAllSelected(r)}leafItemSelectionToggle(r){this.checklistSelection.toggle(r),this.checkAllParentsSelection(r)}itemSelectionToggle(r){this.checklistSelection.toggle(r);let e=this.treeControl.getDescendants(r);this.checklistSelection.isSelected(r)?this.checklistSelection.select(...e):this.checklistSelection.deselect(...e),e.forEach(o=>this.checklistSelection.isSelected(o)),this.checkAllParentsSelection(r)}checkAllParentsSelection(r){let e=this.getParentNode(r);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e)}checkRootNodeSelection(r){let e=this.checklistSelection.isSelected(r),o=this.treeControl.getDescendants(r),a=o.length>0&&o.every(d=>this.checklistSelection.isSelected(d));e&&!a?this.checklistSelection.deselect(r):!e&&a&&this.checklistSelection.select(r)}getParentNode(r){let e=r.level;if(e<1)return null;let o=this.treeControl.dataNodes.indexOf(r)-1;for(let a=o;a>=0;a--){let d=this.treeControl.dataNodes[a];if(d.level<e)return d}return null}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-checkbox"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"nzClick","nzDisabled","nzChecked"],[3,"nzClick","nzDisabled"],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""],[3,"nzClick","nzDisabled","nzChecked","nzIndeterminate"]],template:function(e,o){e&1&&(t(0,"nz-tree-view",0),v(1,Gn,5,4,"nz-tree-node",1)(2,jn,6,5,"nz-tree-node",2),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[B,C,R,$,L,k,A,j,K,ee,H,vn],encapsulation:2})};function Zn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3),u(1,"nz-tree-node-toggle",4),t(2,"nz-tree-node-option",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.selectListSelection.toggle(a))}),u(3,"nz-icon",6),i(4),n()()}if(l&2){let e=r.$implicit,o=f();c(2),m("nzDisabled",e.disabled)("nzSelected",o.selectListSelection.isSelected(e)),c(2),N(" ",e.name," ")}}function Qn(l,r){if(l&1){let e=O();t(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),u(2,"nz-icon",7),n(),t(3,"nz-tree-node-option",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.selectListSelection.toggle(a))}
1),u(4,"nz-icon",8),i(5),n()()}if(l&2){let e=r.$implicit,o=f();c(3),m("nzDisabled",e.disabled)("nzSelected",o.selectListSelection.isSelected(e)),c(),m("nzType",o.treeControl.isExpanded(e)?"folder-open":"folder"),c(),N(" ",e.name," ")}}var Un=[{name:"Fruit",children:[{name:"Apple"},{name:"Banana",disabled:!0},{name:"Fruit loops"}]},{name:"Vegetables",children:[{name:"Green",children:[{name:"Broccoli"},{name:"Brussels sprouts"}]},{name:"Orange",children:[{name:"Pumpkins"},{name:"Carrots"}]}]}],be=class l{transformer=(r,e)=>({expandable:!!r.children&&r.children.length>0,name:r.name,level:e,disabled:!!r.disabled});selectListSelection=new q;treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);constructor(){this.dataSource.setData(Un)}hasChild=(r,e)=>e.expandable;ngAfterViewInit(){setTimeout(()=>{this.treeControl.expand(this.getNode("Vegetables"))},300)}getNode(r){return this.treeControl.dataNodes.find(e=>e.name===r)||null}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-directory"]],decls:3,vars:4,consts:[[3,"nzTreeControl","nzDataSource","nzDirectoryTree"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"nzClick","nzDisabled","nzSelected"],["nzType","file","nzTheme","outline"],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nzTheme","outline",3,"nzType"]],template:function(e,o){e&1&&(t(0,"nz-tree-view",0),v(1,Zn,5,3,"nz-tree-node",1)(2,Qn,6,4,"nz-tree-node",2),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource)("nzDirectoryTree",!0),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[B,C,R,$,L,k,A,j,K,ee,H],encapsulation:2})};function qn(l,r){if(l&1&&(t(0,"nz-tree-node",3),i(1),n()),l&2){let e=r.$implicit;c(),N(" ",e.label," ")}}function Xn(l,r){l&1&&(t(0,"nz-tree-node-toggle"),u(1,"nz-icon",5),n())}function Yn(l,r){l&1&&(t(0,"nz-tree-node-toggle",4),u(1,"nz-icon",6),n())}function Jn(l,r){if(l&1&&(t(0,"nz-tree-node",3),fe(1,Xn,2,0,"nz-tree-node-toggle")(2,Yn,2,0,"nz-tree-node-toggle",4),i(3),n()),l&2){let e=r.$implicit;c(),ze(e.loading?2:1),c(2),N(" ",e.label," ")}}var ei=[{id:0,label:"Expand to load",level:0,expandable:!0},{id:1,label:"Expand to load",level:0,expandable:!0}];function ti(l){return T([{id:Date.now(),label:`Child Node (level-${l.level+1})`,level:l.level+1,expandable:!0},{id:Date.now(),label:`Child Node (level-${l.level+1})`,level:l.level+1,expandable:!0},{id:Date.now(),label:`Leaf Node (level-${l.level+1})`,level:l.level+1,expandable:!1}]).pipe(Ot(500))}var Vt=class{constructor(r,e){this.treeControl=r;this.flattenedData=new P(e),r.dataNodes=e}flattenedData;childrenLoadedSet=new Set;connect(r){let e=[r.viewChange,this.treeControl.expansionModel.changed.pipe(he(o=>this.handleExpansionChange(o))),this.flattenedData.asObservable()];return Be(...e).pipe(F(()=>this.expandFlattenedNodes(this.flattenedData.getValue())))}expandFlattenedNodes(r){let e=this.treeControl,o=[],a=[];return a[0]=!0,r.forEach(d=>{let s=!0;for(let p=0;p<=e.getLevel(d);p++)s=s&&a[p];s&&o.push(d),e.isExpandable(d)&&(a[e.getLevel(d)+1]=e.isExpanded(d))}),o}handleExpansionChange(r){r.added&&r.added.forEach(e=>this.loadChildren(e))}loadChildren(r){this.childrenLoadedSet.has(r)||(r.loading=!0,ti(r).subscribe(e=>{r.loading=!1;let o=this.flattenedData.getValue(),a=o.indexOf(r);a!==-1&&(o.splice(a+1,0,...e),this.childrenLoadedSet.add(r)),this.flattenedData.next(o)}))}disconnect(){this.flattenedData.complete()}},we=class l{treeControl=new y(r=>r.level,r=>r.expandable);dataSource=new Vt(this.treeControl,ei);hasChild=(r,e)=>e.expandable;static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-dynamic"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nzType","loading","nzTreeNodeToggleActiveIcon",""]],template:function(e,o){e&1&&(t(0,"nz-tree-view",0),v(1,qn,2,1,"nz-tree-node",1)(2,Jn,4,2,"nz-tree-node",2),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[B,C,R,$,L,k,A,j,K,Cn,H],encapsulation:2})};function ii(l,r){if(l&1){let e=O();t(0,"nz-tree-node",4)(1,"nz-tree-node-option",5),g("nzClick",function(){let a=b(e).$implicit,d=f();return w(d.selectListSelection.toggle(a))}),i(2),n(),t(3,"button",6),g("click",function(){let a=b(e).$implicit,d=f();return w(d.delete(a))}
1),u(4,"nz-icon",7),n()()}if(l&2){let e=r.$implicit,o=f();c(),m("nzDisabled",e.disabled)("nzSelected",o.selectListSelection.isSelected(e)),c(),N(" ",e.name," ")}}function oi(l,r){if(l&1){let e=O();t(0,"nz-tree-node",4),u(1,"input",8,0),i(3," \xA0 "),t(4,"button",9),g("click",function(){let a=b(e).$implicit,d=Ge(2),s=f();return w(s.saveNode(a,d.value))}),i(5,"Add"),n()()}}function ri(l,r){if(l&1){let e=O();t(0,"nz-tree-node",4)(1,"nz-tree-node-toggle"),u(2,"nz-icon",10),n(),i(3),t(4,"button",6),g("click",function(){let a=b(e).$implicit,d=f();return w(d.addNewNode(a))}),u(5,"nz-icon",11),n()()}if(l&2){let e=r.$implicit;c(3),N(" ",e.name," ")}}var ai=[{name:"parent 1",key:"1",children:[{name:"parent 1-0",key:"1-0",children:[{name:"leaf",key:"1-0-0"},{name:"leaf",key:"1-0-1"}]},{name:"parent 1-1",key:"1-1",children:[{name:"leaf",key:"1-1-0"}]}]},{key:"2",name:"parent 2",children:[{name:"leaf",key:"2-0"}]}],ye=class l{transformer=(r,e)=>{let o=this.nestedNodeMap.get(r),a=o&&o.key===r.key?o:{expandable:!!r.children&&r.children.length>0,name:r.name,level:e,key:r.key};return a.name=r.name,this.flatNodeMap.set(a,r),this.nestedNodeMap.set(r,a),a};treeData=ai;flatNodeMap=new Map;nestedNodeMap=new Map;selectListSelection=new q(!0);treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);constructor(){this.dataSource.setData(this.treeData),this.treeControl.expandAll()}hasChild=(r,e)=>e.expandable;hasNoContent=(r,e)=>e.name==="";trackBy=(r,e)=>`${e.key}-${e.name}`;delete(r){let e=this.flatNodeMap.get(r),a=(()=>{let d=[...this.treeData];for(;d.length>0;){let s=d.pop();if(s.children){if(s.children.find(p=>p===e))return s;for(let p=s.children.length-1;p>=0;p--)d.push(s.children[p])}}return null})();a&&a.children&&(a.children=a.children.filter(d=>d!==e)),this.dataSource.setData(this.treeData)}addNewNode(r){let e=this.flatNodeMap.get(r);e&&(e.children=e.children||[],e.children.push({name:"",key:`${e.key}-${e.children.length}`}),this.dataSource.setData(this.treeData),this.treeControl.expand(r))}saveNode(r,e){let o=this.flatNodeMap.get(r);o&&(o.name=e,this.dataSource.setData(this.treeData))}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-editable"]],decls:4,vars:5,consts:[["inputElement",""],[3,"nzTreeControl","nzDataSource","trackBy"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodeIndentLine",""],[3,"nzClick","nzDisabled","nzSelected"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","minus","nzTheme","outline"],["nz-input","","placeholder","Input node name","nzSize","small"],["nz-button","","nzSize","small",3,"click"],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nzType","plus","nzTheme","outline"]],template:function(e,o){e&1&&(t(0,"nz-tree-view",1),v(1,ii,5,3,"nz-tree-node",2)(2,oi,6,0,"nz-tree-node",3)(3,ri,6,1,"nz-tree-node",3),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource)("trackBy",o.trackBy),c(2),m("nzTreeNodeDefWhen",o.hasNoContent),c(),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[zn,fn,pn,hn,Je,Ye,B,C,R,$,L,k,A,K,ee,ct],encapsulation:2})};function di(l,r){l&1&&(t(0,"nz-tree-node-toggle",5),u(1,"nz-icon",6),n())}function si(l,r){if(l&1&&(t(0,"nz-tree-node",4),fe(1,di,2,0,"nz-tree-node-toggle",5),t(2,"nz-tree-node-option"),i(3),n()()),l&2){let e=r.$implicit,o=f();c(),ze(o.showLeafIcon?1:-1),c(2),N(" ",e.name," ")}}function ci(l,r){if(l&1&&(t(0,"nz-tree-node",4)(1,"nz-tree-node-toggle"),u(2,"nz-icon",7),n(),t(3,"nz-tree-node-option"),i(4),n()()),l&2){let e=r.$implicit,o=f();c(2),m("nzType",o.treeControl.isExpanded(e)?"minus-square":"plus-square"),c(2),N(" ",e.name," ")}}var mi=[{name:"parent 1",children:[{name:"parent 1-0",children:[{name:"leaf"},{name:"leaf"}]},{name:"parent 1-1",children:[{name:"leaf"},{name:"parent 1-1-0",children:[{name:"leaf"},{name:"leaf"}]},{name:"leaf"}]}]},{name:"parent 2",children:[{name:"leaf"},{name:"leaf"}]}],Fe=class l{transformer=(r,e)=>({expandable:!!r.children&&r.children.length>0,name:r.name,level:e});treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);showLeafIcon=!1;constructor(){this.dataSource.setData(mi)}hasChild=(r,e)=>e.expandable;
1ngAfterViewInit(){this.treeControl.expandAll()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-line"]],decls:5,vars:4,consts:[[3,"ngModelChange","ngModel"],[3,"nzTreeControl","nzDataSource"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodeIndentLine",""],["nzTreeNodeNoopToggle",""],["nzType","file","nzTheme","outline"],["nzTheme","outline",3,"nzType"]],template:function(e,o){e&1&&(i(0," Show Leaf Icon: "),t(1,"nz-switch",0),tn("ngModelChange",function(d){return en(o.showLeafIcon,d)||(o.showLeafIcon=d),d}),n(),t(2,"nz-tree-view",1),v(3,si,4,2,"nz-tree-node",2)(4,ci,5,2,"nz-tree-node",3),n()),e&2&&(c(),Jt("ngModel",o.showLeafIcon),c(),m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[qe,Qe,Ue,B,C,xn,gn,R,$,L,k,A,ee,H,ct],encapsulation:2})};function ui(l,r){l&1&&u(0,"nz-icon",6)}function pi(l,r){if(l&1&&(t(0,"nz-tree-node",7),u(1,"nz-tree-node-toggle",8)(2,"span",9),Ct(3,"nzHighlight"),n()),l&2){let e=r.$implicit,o=f();c(2),m("innerHTML",Tt(3,1,e.name,o.searchValue,"i","highlight"),_t)}}function hi(l,r){if(l&1&&(t(0,"nz-tree-node",7)(1,"nz-tree-node-toggle"),u(2,"nz-icon",10),n(),u(3,"span",9),Ct(4,"nzHighlight"),n()),l&2){let e=r.$implicit,o=f();c(3),m("innerHTML",Tt(4,1,e.name,o.searchValue,"i","highlight"),_t)}}var fi=[{name:"0-0",children:[{name:"0-0-0"},{name:"0-0-1"},{name:"0-0-2"}]},{name:"0-1",children:[{name:"0-1-0",children:[{name:"0-1-0-0"},{name:"0-1-0-1"}]},{name:"0-1-1",children:[{name:"0-1-1-0"},{name:"0-1-1-1"}]}]}],mt=class{constructor(r,e=[]){this.treeData=r;this.needsToExpanded=e}};function zi(l,r){let e=new Set,o=(d,s)=>{if(d.name.search(r)!==-1)return s.push(d),s;if(Array.isArray(d.children)){let p=d.children.reduce((h,x)=>o(x,h),[]);if(p.length){let h=He(Oe({},d),{children:p});e.add(h),s.push(h)}}return s},a=l.reduce((d,s)=>o(s,d),[]);return new mt(a,[...e])}var ke=class l{flatNodeMap=new Map;nestedNodeMap=new Map;expandedNodes=[];searchValue="";originData$=new P(fi);searchValue$=new P("");transformer=(r,e)=>{let o=this.nestedNodeMap.get(r),a=o&&o.name===r.name?o:{expandable:!!r.children&&r.children.length>0,name:r.name,level:e};return this.flatNodeMap.set(a,r),this.nestedNodeMap.set(r,a),a};treeControl=new y(r=>r.level,r=>r.expandable,{trackBy:r=>this.flatNodeMap.get(r)});treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);filteredData$=pe([this.originData$,this.searchValue$.pipe(Ke(300),F(r=>this.searchValue=r))]).pipe(F(([r,e])=>e?zi(r,e):new mt(r)));constructor(){this.filteredData$.subscribe(r=>{this.dataSource.setData(r.treeData),!!this.searchValue?(this.expandedNodes.length===0&&(this.expandedNodes=this.treeControl.expansionModel.selected,this.treeControl.expansionModel.clear()),this.treeControl.expansionModel.select(...r.needsToExpanded)):this.expandedNodes.length&&(this.treeControl.expansionModel.clear(),this.treeControl.expansionModel.select(...this.expandedNodes),this.expandedNodes=[])})}hasChild=(r,e)=>e.expandable;static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-search"]],decls:7,vars:4,consts:[["suffixIcon",""],[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search","ngModel","",3,"ngModelChange"],["nzNoAnimation","",3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzType","search"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"innerHTML"],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(e,o){if(e&1){let a=O();t(0,"nz-input-group",1)(1,"input",2),g("ngModelChange",function(s){return b(a),w(o.searchValue$.next(s))}),n()(),v(2,ui,1,0,"ng-template",null,0,nn),t(4,"nz-tree-view",3),v(5,pi,4,6,"nz-tree-node",4)(6,hi,5,6,"nz-tree-node",5),n()}if(e&2){let a=Ge(3);m("nzSuffix",a),c(4),m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild)}},dependencies:[qe,sn,Qe,Ue,Je,Ye,un,mn,B,C,R,$,L,k,A,j,K,H,We,En],styles:["nz-input-group[_ngcontent-%COMP%]{margin-bottom:8px} .highlight{color:#f50}"]})};function gi(l,r){if(l&1&&(t(0,"nz-tree-node",3),u(1,"nz-tree-node-toggle",4),i(2),n()),l&2){let e=r.$implicit;c(2),N(" ",e.name," ")}}function xi(l,r){if(l&1&&(t(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),u(2,"nz-icon",5),n(),i(3),n()),l&2){let e=r.$implicit;c(3),N(" ",e.name," ")}}function Tn(l="0",r=3){let e=[];for(let o=0;o<10;o+=1){let a=`${l}-${o}
1`,d={name:a};r>0&&(d.children=Tn(a,r-1)),e.push(d)}return e}var Ei=Tn(),Ie=class l{transformer=(r,e)=>({expandable:!!r.children&&r.children.length>0,name:r.name,level:e});treeControl=new y(r=>r.level,r=>r.expandable);treeFlattener=new V(this.transformer,r=>r.level,r=>r.expandable,r=>r.children);dataSource=new M(this.treeControl,this.treeFlattener);constructor(){this.dataSource.setData(Ei),this.treeControl.expandAll()}hasChild=(r,e)=>e.expandable;static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view-virtual-scroll"]],decls:3,vars:3,consts:[[1,"virtual-scroll-tree",3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],["nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(e,o){e&1&&(t(0,"nz-tree-virtual-scroll-view",0),v(1,gi,3,1,"nz-tree-node",1)(2,xi,4,1,"nz-tree-node",2),n()),e&2&&(m("nzTreeControl",o.treeControl)("nzDataSource",o.dataSource),c(2),m("nzTreeNodeDefWhen",o.hasChild))},dependencies:[B,C,R,L,k,A,j,K,H,Bt],styles:[".virtual-scroll-tree[_ngcontent-%COMP%]{height:200px}"]})};var ut=class l{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>r.expandCode(this.expanded))}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view"]],viewQuery:function(e,o){if(e&1&&J(me,5),e&2){let a;Z(a=Q())&&(o.codeBoxes=a)}},decls:692,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-tree-view-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-tree-view-demo-checkbox","nzTitle","\u9009\u62E9\u6846"],["nzHref","#components-tree-view-demo-directory","nzTitle","\u76EE\u5F55"],["nzHref","#components-tree-view-demo-dynamic","nzTitle","\u5F02\u6B65\u52A0\u8F7D\u6570\u636E"],["nzHref","#components-tree-view-demo-line","nzTitle","\u5E26\u8FDE\u63A5\u7EBF\u7684\u6811"],["nzHref","#components-tree-view-demo-editable","nzTitle","\u53EF\u7F16\u8F91"],["nzHref","#components-tree-view-demo-search","nzTitle","\u641C\u7D22"],["nzHref","#components-tree-view-demo-virtual-scroll","nzTitle","\u865A\u62DF\u6EDA\u52A8"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","tree-view","description","\u6811\u89C6\u56FE\u7EC4\u4EF6\uFF0C\u76F8\u6BD4\u5C01\u88C5\u597D\u7684 Tree \u7EC4\u4EF6\u5177\u6709\u66F4\u9AD8\u7684\u5B9A\u5236\u5EA6\u548C\u66F4\u597D\u7684\u6027\u80FD\u3002","language","zh"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-tree-view-basic","nzGenerateCommand","ng g ng-zorro-antd:tree-view-basic <name>","nzComponentName","NzDemoTreeViewBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u76EE\u5F55","nzSelector","nz-demo-tree-view-directory","nzGenerateCommand","ng g ng-zorro-antd:tree-view-directory <name>","nzComponentName","NzDemoTreeViewDirectoryComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5E26\u8FDE\u63A5\u7EBF\u7684\u6811","nzSelector","nz-demo-tree-view-line","nzGenerateCommand","ng g ng-zorro-antd:tree-view-line <name>","nzComponentName","NzDemoTreeViewLineComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u641C\u7D22","nzSelector","nz-demo-tree-view-search","nzGenerateCommand","ng g ng-zorro-antd:tree-view-search <name>","nzComponentName","NzDemoTreeViewSearchComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u9009\u62E9\u6846","nzSelector","nz-demo-tree-view-checkbox","nzGenerateCommand","ng g ng-zorro-antd:tree-view-checkbox <name>","nzComponentName","NzDemoTreeViewCheckboxComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5F02\u6B65\u52A0\u8F7D\u6570\u636E","nzSelector","nz-demo-tree-view-dynamic","nzGenerateCommand","ng g ng-zorro-antd:tree-view-dynamic <name>","nzComponentName","NzDemoTreeViewDynamicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u53EF\u7F16\u8F91","nzSelector","nz-demo-tree-view-editable","nzGenerateCommand","ng g ng-zorro-antd:tree-view-editable <name>","nzComponentName","NzDemoTreeViewEditableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u865A\u62DF\u6EDA\u52A8","nzSelector","nz-demo-tree-view-virtual-scroll","nzGenerateCommand","ng g ng-zorro-antd:tree-view-virtual-scroll <name>
1","nzComponentName","NzDemoTreeViewVirtualScrollComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-tree-view"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-tree-view'",1,"anchor"],["href","https://material.angular.io/cdk/tree/api#TreeControl","target","_blank","rel","noopener"],["href","https://material.angular.io/cdk/tree/overview#data-source","target","_blank","rel","noopener"],["id","nz-tree-virtual-scroll-view"],["onclick","window.location.hash = 'nz-tree-virtual-scroll-view'",1,"anchor"],["href","https://material.angular.io/cdk/scrolling/api#CdkVirtualScrollViewport","target","_blank","rel","noopener"],["id","nztreenodedef"],[1,"api-type-label","directive"],["onclick","window.location.hash = 'nztreenodedef'",1,"anchor"],["id","nz-tree-node"],["onclick","window.location.hash = 'nz-tree-node'",1,"anchor"],["id","nztreenodepadding"],["onclick","window.location.hash = 'nztreenodepadding'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],["id","nztreenodeindentline"],["onclick","window.location.hash = 'nztreenodeindentline'",1,"anchor"],["id","nz-tree-node-toggle"],["onclick","window.location.hash = 'nz-tree-node-toggle'",1,"anchor"],["id","nz-tree-node-togglenztreenodenooptoggle"],["onclick","window.location.hash = 'nz-tree-node-togglenztreenodenooptoggle'",1,"anchor"],["id","nztreenodetogglerotateicon"],["onclick","window.location.hash = 'nztreenodetogglerotateicon'",1,"anchor"],["id","nztreenodetoggleactiveicon"],["onclick","window.location.hash = 'nztreenodetoggleactiveicon'",1,"anchor"],["id","nz-tree-node-option"],["onclick","window.location.hash = 'nz-tree-node-option'",1,"anchor"],["id","nz-tree-node-checkbox"],["onclick","window.location.hash = 'nz-tree-node-checkbox'",1,"anchor"],["id","classes"],["onclick","window.location.hash = 'classes'",1,"anchor"],["id","nztreeflatdatasource_extends_datasource"],["onclick","window.location.hash = 'nztreeflatdatasource_extends_datasource'",1,"anchor"],["id","nztreeflattener"],["onclick","window.location.hash = 'nztreeflattener'",1,"anchor"]],template:function(e,o){e&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),g("nzClick",function(d){return o.goLink(d)}),u(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10),n()(),t(12,"section",11)(13,"h1"),i(14,"Tree View"),t(15,"span",12),i(16,"\u6811\u89C6\u56FE"),n(),u(17,"span",13),t(18,"a",14),u(19,"nz-icon",15),n()(),u(20,"component-meta",16),t(21,"section",11),S(),t(22,"h2",17)(23,"span"),i(24,"\u4F55\u65F6\u4F7F\u7528"),n(),t(25,"a",18),i(26,"#"),n()(),t(27,"p"),i(28,"\u66F4\u57FA\u7840\u7684 Tree \u7EC4\u4EF6\uFF0C\u5141\u8BB8\u5728\u6A21\u7248\u4E2D\u5B9A\u4E49\u6BCF\u4E2A\u7EC4\u6210\u90E8\u5206\uFF0C\u5E76\u624B\u52A8\u7BA1\u7406\u72B6\u6001\u3002"),n(),_(),n(),t(29,"h2")(30,"span"),i(31,"\u4EE3\u7801\u6F14\u793A"),n(),t(32,"nz-icon",19),g("click",function(){return o.expandAllCode()}),n()()(),t(33,"div",20)(34,"div",21)(35,"nz-code-box",22),u(36,"nz-demo-tree-view-basic",23),t(37,"div",24),S(),t(38,"p"),i(39,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\uFF0C\u9009\u4E2D\uFF0C\u7981\u7528\uFF0C\u5C55\u5F00\u7B49\u529F\u80FD\u3002"),n(),_(),n()(),t(40,"nz-code-box",25),u(41,"nz-demo-tree-view-directory",23),t(42,"div",24),S(),t(43,"p"),i(44,"\u76EE\u5F55\u6811"),n(),_(),n()(),t(45,"nz-code-box",26),u(46,"nz-demo-tree-view-line",23),t(47,"div",24),S(),t(48,"p"),i(49,"\u8282\u70B9\u4E4B\u95F4\u5E26\u8FDE\u63A5\u7EBF\u7684\u6811\uFF0C\u5E38\u7528\u4E8E\u6587\u4EF6\u76EE\u5F55\u7ED3\u6784\u5C55\u793A\u3002"),n(),_(),n()(),t(50,"nz-code-box",27),u(51,"nz-demo-tree-view-search",23),t(52,"div",24),S(),t(53,"p"),i(54,"\u53EF\u641C\u7D22\u7684\u6811\u3002"),n(),_(),n()()(),t(55,"div",21)(56,"nz-code-box",28),u(57,"nz-demo-tree-view-checkbox",23),t(58,"div",24),S(),t(59,"p"),i(60,"\u5E26\u9009\u62E9\u6846\u7684\u6811\u3002"),n(),_(),n()(),t(61,"nz-code-box",29),u(62,"nz-demo-tree-view-dynamic",23),t(63,"div",24),S(),t(64,"p"),i(65,"\u70B9\u51FB\u5C55\u5F00\u8282\u70B9\uFF0C\u52A8\u6001\u52A0\u8F7D\u6570\u636E\u3002"),n(),_(),n()(),t(66,"nz-code-box",30),u(67,"nz-demo-tree-view-editable",23),t(68,"div",24),S(),t(69,"p"),i(70,"\u5E26\u6DFB\u52A0\u548C\u5220\u9664\u529F\u80FD\u7684\u6811\u3002"),n(),_(),n()(),t(71,"nz-code-box",31),u(72,"nz-demo-tree-view-virtual-scroll",23),t(73,"div",24),S(),t(74,"p"),i(75,"\u4F7F\u7528\u865A\u62DF\u6EDA\u52A8\u3002"),n(),_(),n()()()(),t(76,"section",32),S(),t(77,"h2",33)(78,"span"),i(79,"API"),n(),t(80,"a",34),i(81,"#"),n()(),t(82,"h3",35)(83,"span"),i(84,"nz-tree-view"),n(),t(85,"label",36),i(86,"component"),n(),t(87,"a",37),i(88,"#"),n()(),t(89,"table")(90,"thead")(91,"tr")(92,"th"),i(93,"\u53C2\u6570"),n(),t(94,"th"),i(95,"\u8BF4\u660E"),n(),t(96,"th"),i(97,"\u7C7B\u578B"),n(),t(98,"th"),i(99,"\u9ED8\u8BA4\u503C"),n()()(),t(100,"tbody")(101,"tr")(102,"td"),i(103,"[nzTreeControl]"),n(),t(104,"td"),i(105,"\u6811\u63A7\u5236\u5668"),n(),t(106,"td")(107,"a",38),i(108,"TreeControl"),n()(),t(109,"td"),i(110,"-"),n()(),t(111,"tr")(112,"td"),i(113,"[nzDataSource]"),n(),t(114,"td"),i(115,"\u7528\u4E8E\u6E32\u67D3\u6811\u7684\u6570\u7EC4\u6570\u636E"),n(),t(116,"td")(117,"a",39),i(118,"DataSource"),n(),i(119,"<T>"),n(),t(120,"td"),i(121,"Observable<T[]>"),n()(),t(122,"tr")(123,"td"),i(124,"[nzDirectoryTree]"),n(),t(125,"td"),i(126,"\u8282\u70B9\u662F\u5426\u4EE5\u6587\u4EF6\u5939\u6837\u5F0F\u663E\u793A"),n(),t(127,"td"),i(128,"boolean"),n(),t(129,"td")(130,"code"),i(131,"false"),n()()(),t(132,"tr")(133,"td"),i(134,"[nzBlockNode]"),n(),t(135,"td"),i(136,"\u8282\u70B9\u662F\u5426\u5360\u636E\u6574\u884C"),n(),t(137,"td"),i(138,"boolean"),n(),t(139,"td")(140,"code"),i(141,"false"),n()()()()(),t(142,"h3",40)(143,"span"),i(144,"nz-tree-virtual-scroll-view"),n(),t(145,"label",36),i(146,"component"),n(),t(147,"a",41),i(148,"#"),n()(),t(149,"p"),i(150,"\u865A\u62DF\u6EDA\u52A8\u7684\u6811\u89C6\u56FE\uFF0C\u53EF\u4EE5\u901A\u8FC7\u7EC4\u4EF6\u5B9E\u4F8B\u4E0A\u7684 "),t(151,"code"),i(152,"virtualScrollViewport"),n(),i(153," \u6210\u5458\u8BBF\u95EE "),t(154,"a",42),i(155,"CdkVirtualScrollViewport"),n(),i(156," \u5B9E\u4F8B\u3002"),n(),t(157,"table")(158,"thead")(159,"tr")(160,"th"),i(161,"\u53C2\u6570"),n(),t(162,"th"),i(163,"\u8BF4\u660E"),n(),t(164,"th"),i(165,"\u7C7B\u578B"),n(),t(166,"th"),i(167,"\u9ED8\u8BA4\u503C"),n()()(),t(168,"tbody")(169,"tr")(170,"td"),i(171,"[nzTreeControl]"),n(),t(172,"td"),i(173,"\u6811\u63A7\u5236\u5668"),n(),t(174,"td")(175,"a",38),i(176,"TreeControl"),n()(),t(177,"td"),i(178,"-"),n()(),t(179,"tr")(180,"td"),i(181,"[nzDataSource]"),n(),t(182,"td"),i(183,"\u7528\u4E8E\u6E32\u67D3\u6811\u7684\u6570\u7EC4\u6570\u636E"),n(),t(184,"td")(185,"a",39),i(186,"DataSource"),n(),i(187,"<T>"),n(),t(188,"td"),i(189,"Observable<T[]>"),n()(),t(190,"tr")(191,"td"),i(192,"[nzDirectoryTree]"),n(),t(193,"td"),i(194,"\u8282\u70B9\u662F\u5426\u4EE5\u6587\u4EF6\u5939\u6837\u5F0F\u663E\u793A"),n(),t(195,"td")(196,"code"),i(197,"boolean"),n()(),t(198,"td")(199,"code"),i(200,"false"),n()()(),t(201,"tr")(202,"td"),i(203,"[nzBlockNode]"),n(),t(204,"td"),i(205,"\u8282\u70B9\u662F\u5426\u5360\u636E\u6574\u884C"),n(),t(206,"td")(207,"code"),i(208,"boolean"),n()(),t(209,"td")(210,"code"),i(211,"false"),n()()(),t(212,"tr")(213,"td"),i(214,"[nzItemSize]"),n(),t(215,"td"),i(216,"\u8282\u70B9\u7684\u5C3A\u5BF8(px)"),n(),t(217,"td")(218,"code"),i(219,"number"),n()(),t(220,"td")(221,"code"),i(222,"28"),n()()(),t(223,"tr")(224,"td"),i(225,"[nzMinBufferPx]"),n(),t(226,"td"),i(227,"\u8D85\u51FA\u6E32\u67D3\u533A\u7684\u6700\u5C0F\u7F13\u5B58\u533A\u5927\u5C0F(px)"),n(),t(228,"td")(229,"code"),i(230,"number"),n()(),t(231,"td")(232,"code"),i(233,"28 * 5"),n()()(),t(234,"tr")(235,"td"),i(236,"[nzMaxBufferPx]"),n(),t(237,"td"),i(238,"\u9700\u8981\u6E32\u67D3\u65B0\u8282\u70B9\u65F6\u7684\u7F13\u51B2\u533A\u5927\u5C0F(px)"),n(),t(239,"td")(240,"code"),i(241,"number"),n()(),t(242,"td")(243,"code"),i(244,"28 * 10"),n()()()()(),t(245,"h3",43)(246,"span"),i(247,"[nzTreeNodeDef]"),n(),t(248,"label",44),i(249,"directive"),n(),t(250,"a",45),i(251,"#"),n()(),t(252,"p"),i(253,"\u7528\u4E8E\u5B9A\u4E49 "),t(254,"code"),i(255,"nz-tree-node"),n(),i(256," \u7684\u6307\u4EE4\u3002"),n(),t(257,"table")(258,"thead")(259,"tr")(260,"th"),i(261,"\u53C2\u6570"),n(),t(262,"th"),i(263,"\u8BF4\u660E"),n(),t(264,"th"),i(265,"\u7C7B\u578B"),n(),t(266,"th"),i(267,"\u9ED8\u8BA4\u503C"),n()()(),t(268,"tbody")(269,"tr")(270,"td")(271,"code"),i(272,"[nzTreeNodeDefWhen]"),n()(),t(273,"td"),i(274,"\u7528\u4E8E\u5B9A\u4E49\u662F\u5426\u4F7F\u7528\u6B64\u8282\u70B9\u7684\u65B9\u6CD5\uFF0C\u4F18\u5148\u5339\u914D\u7B2C\u4E00\u4E2A\u8FD4\u56DE "),t(275,"code"),i(276,"true"),n(),i(277," \u7684\u8282\u70B9\u3002\u5982\u679C\u6CA1\u6709\u8FD4\u56DE "),t(278,"code"),i(279,"true"),n(),i(280," \u7684\u8282\u70B9\uFF0C\u5219\u5339\u914D\u672A\u5B9A\u4E49\u6B64\u65B9\u6CD5\u7684\u8282\u70B9\u3002"),n(),t(281,"td")(282,"code"),i(283,"(index: number, nodeData: T) => boolean"),n()(),t(284,"td"),i(285,"-"),n()()()(),t(286,"h3",46)(287,"span"),i(288,"nz-tree-node"),n(),t(289,"label",36),i(290,"component"),n(),t(291,"a",47),i(292,"#"),n()(),t(293,"p"),i(294,"\u6811\u8282\u70B9\u5BB9\u5668\u7EC4\u4EF6\uFF0C\u9700\u8981\u901A\u8FC7 "),t(295,"code"),i(296,"nzTreeNodeDef"),n(),i(297," \u6307\u4EE4\u5B9A\u4E49\u3002"),n(),t(298,"h3",48)(299,"span"),i(300,"[nzTreeNodePadding]"),n(),t(301,"label",44),i(302,"directive"),n(),t(303,"a",49),i(304,"#"),n()(),t(305,"pre")(306,"code",50)(307,"span",51)(308,"span",51)(309,"span",52),i(310,"<"),n(),i(311,"nz-tree-node"),n(),i(312," "),t(313,"span",53),i(314,"nzTreeNodePadding"),n(),t(315,"span",52),i(316,">"),n()(),t(317,"span",51)(318,"span",51)(319,"span",52),i(320,"</"),n(),i(321,"nz-tree-node"),n(),t(322,"span",52),i(323,">"),n()(),i(324,` 2`),n()(),t(325,"p"),i(326,"\u4EE5\u6DFB\u52A0 "),t(327,"code"),i(328,"padding"),n(),i(329," \u7684\u65B9\u5F0F\u663E\u793A\u8282\u70B9\u7F29\u8FDB "),t(330,"strong"),i(331,"\u6027\u80FD\u6700\u597D"),n(),i(332,"\u3002"),n(),t(333,"h3",54)(334,"span"),i(335,"nzTreeNodeIndentLine"),n(),t(336,"a",55),i(337,"#"),n()(),t(338,"pre")(339,"code",50)(340,"span",51)(341,"span",51)(342,"span",52),i(343,"<"),n(),i(344,"nz-tree-node"),n(),i(345," "),t(346,"span",53),i(347,"nzTreeNodeIndentLine"),n(),t(348,"span",52),i(349,">"),n()(),t(350,"span",51)(351,"span",51)(352,"span",52),i(353,"</"),n(),i(354,"nz-tree-node"),n(),t(355,"span",52),i(356,">"),n()(),i(357,` 3`),n()(),t(358,"p"),i(359,"\u4EE5\u6DFB\u52A0\u7F29\u8FDB\u7EBF\u7684\u65B9\u5F0F\u663E\u793A\u8282\u70B9\u7F29\u8FDB\u3002"),n(),t(360,"h3",56)(361,"span"),i(362,"nz-tree-node-toggle"),n(),t(363,"label",36),i(364,"component"),n(),t(365,"a",57),i(366,"#"),n()(),t(367,"p"),i(368,"\u5207\u6362\u90E8\u5206\uFF0C\u7528\u4E8E\u8282\u70B9\u7684\u5C55\u5F00/\u6536\u8D77\u3002"),n(),t(369,"table")(370,"thead")(371,"tr")(372,"th"),i(373,"\u53C2\u6570"),n(),t(374,"th"),i(375,"\u8BF4\u660E"),n(),t(376,"th"),i(377,"\u7C7B\u578B"),n(),t(378,"th"),i(379,"\u9ED8\u8BA4\u503C"),n()()(),t(380,"tbody")(381,"tr")(382,"td")(383,"code"),i(384,"[nzTreeNodeToggleRecursive]"),n()(),t(385,"td"),i(386,"\u662F\u5426\u4E3A\u9012\u5F52\u5C55\u5F00/\u6536\u8D77"),n(),t(387,"td")(388,"code"),i(389,"boolean"),n()(),t(390,"td")(391,"code"),i(392,"false"),n()()()()(),t(393,"h3",58)(394,"span"),i(395,"nz-tree-node-toggle[nzTreeNodeNoopToggle]"),n(),t(396,"label",36),i(397,"component"),n(),t(398,"a",59),i(399,"#"),n()(),t(400,"p"),i(401,"\u4E0D\u50
35A\u4EFB\u4F55\u64CD\u4F5C\u7684\u5207\u6362\u90E8\u5206\uFF0C\u53EF\u7528\u4E8E\u5360\u4F4D\u6216\u8005\u663E\u793A\u56FE\u6807\u3002"),n(),t(402,"h3",60)(403,"span"),i(404,"[nztreenodetogglerotateicon]"),n(),t(405,"label",44),i(406,"directive"),n(),t(407,"a",61),i(408,"#"),n()(),t(409,"p"),i(410,"\u5B9A\u4E49\u5207\u6362\u90E8\u5206\u4E2D\u7684\u56FE\u6807\uFF0C\u4F1A\u968F\u7740\u5C55\u5F00\u6536\u8D77\u72B6\u6001\u81EA\u52A8\u65CB\u8F6C\u3002"),n(),t(411,"h3",62)(412,"span"),i(413,"[nztreenodetoggleactiveicon]"),n(),t(414,"label",44),i(415,"directive"),n(),t(416,"a",63),i(417,"#"),n()(),t(418,"p"),i(419,"\u5B9A\u4E49\u5207\u6362\u90E8\u5206\u4E2D\u7684\u56FE\u6807\uFF0C\u4F7F\u5176\u5177\u6709\u6FC0\u6D3B\u72B6\u6001\u7684\u6837\u5F0F\uFF0C\u53EF\u7528\u4E8E loading \u56FE\u6807\u3002"),n(),t(420,"h3",64)(421,"span"),i(422,"nz-tree-node-option"),n(),t(423,"label",36),i(424,"component"),n(),t(425,"a",65),i(426,"#"),n()(),t(427,"p"),i(428,"\u5B9A\u4E49\u8282\u70B9\u4E2D\u7684\u53EF\u9009\u62E9\u90E8\u5206\u3002"),n(),t(429,"table")(430,"thead")(431,"tr")(432,"th"),i(433,"\u53C2\u6570"),n(),t(434,"th"),i(435,"\u8BF4\u660E"),n(),t(436,"th"),i(437,"\u7C7B\u578B"),n(),t(438,"th"),i(439,"\u9ED8\u8BA4\u503C"),n()()(),t(440,"tbody")(441,"tr")(442,"td")(443,"code"),i(444,"[nzSelected]"),n()(),t(445,"td"),i(446,"\u662F\u5426\u9009\u4E2D"),n(),t(447,"td")(448,"code"),i(449,"boolean"),n()(),t(450,"td")(451,"code"),i(452,"false"),n()()(),t(453,"tr")(454,"td")(455,"code"),i(456,"[nzDisabled]"),n()(),t(457,"td"),i(458,"\u662F\u5426\u7981\u7528"),n(),t(459,"td")(460,"code"),i(461,"boolean"),n()(),t(462,"td")(463,"code"),i(464,"false"),n()()(),t(465,"tr")(466,"td")(467,"code"),i(468,"(nzClick)"),n()(),t(469,"td"),i(470,"\u70B9\u51FB\u65F6\u7684\u4E8B\u4EF6"),n(),t(471,"td")(472,"code"),i(473,"EventEmitter<MouseEvent>"),n()(),t(474,"td"),i(475,"-"),n()()()(),t(476,"h3",66)(477,"span"),i(478,"nz-tree-node-checkbox"),n(),t(479,"label",36),i(480,"component"),n(),t(481,"a",67),i(482,"#"),n()(),t(483,"p"),i(484,"\u5B9A\u4E49\u8282\u70B9\u4E2D\u7684\u53EF\u52FE\u9009\u7684\u90E8\u5206\u3002"),n(),t(485,"table")(486,"thead")(487,"tr")(488,"th"),i(489,"\u53C2\u6570"),n(),t(490,"th"),i(491,"\u8BF4\u660E"),n(),t(492,"th"),i(493,"\u7C7B\u578B"),n(),t(494,"th"),i(495,"\u9ED8\u8BA4\u503C"),n()()(),t(496,"tbody")(497,"tr")(498,"td")(499,"code"),i(500,"[nzChecked]"),n()(),t(501,"td"),i(502,"\u662F\u5426\u52FE\u9009"),n(),t(503,"td")(504,"code"),i(505,"boolean"),n()(),t(506,"td")(507,"code"),i(508,"false"),n()()(),t(509,"tr")(510,"td")(511,"code"),i(512,"[nzIndeterminate]"),n()(),t(513,"td"),i(514,"\u662F\u5426\u4E3A\u534A\u9009"),n(),t(515,"td")(516,"code"),i(517,"boolean"),n()(),t(518,"td")(519,"code"),i(520,"false"),n()()(),t(521,"tr")(522,"td")(523,"code"),i(524,"[nzDisabled] "),n()(),t(525,"td"),i(526,"\u662F\u5426\u7981\u7528"),n(),t(527,"td")(528,"code"),i(529,"boolean"),n()(),t(530,"td")(531,"code"),i(532,"false"),n()()(),t(533,"tr")(534,"td")(535,"code"),i(536,"(nzClick)"),n()(),t(537,"td"),i(538,"\u70B9\u51FB\u65F6\u7684\u4E8B\u4EF6"),n(),t(539,"td")(540,"code"),i(541,"EventEmitter<MouseEvent>"),n()(),t(542,"td"),i(543,"-"),n()()()(),t(544,"h2",68)(545,"span"),i(546,"Classes"),n(),t(547,"a",69),i(548,"#"),n()(),t(549,"h3",70)(550,"span"),i(551,"NzTreeFlatDataSource extends DataSource"),n(),t(552,"a",71),i(553,"#"),n()(),t(554,"p")(555,"strong"),i(556,"\u6784\u9020\u53C2\u6570"),n()(),t(557,"table")(558,"thead")(559,"tr")(560,"th"),i(561,"\u540D\u79F0"),n(),t(562,"th"),i(563,"\u8BF4\u660E"),n()()(),t(564,"tbody")(565,"tr")(566,"td")(567,"code"),i(568,"treeControl: FlatTreeControl<F, K>"),n()(),t(569,"td"),i(570,"Tree \u63A7\u5236\u5668"),n()(),t(571,"tr")(572,"td")(573,"code"),i(574,"treeFlattener: NzTreeFlattener<T, F, K>"),n()(),t(575,"td"),i(576,"\u7528\u4E8E\u5C06\u5D4C\u5957\u8282\u70B9 "),t(577,"code"),i(578,"T"),n(),i(579," \u5904\u7406\u4E3A\u6241\u5E73\u8282\u70B9 "),t(580,"code"),i(581,"F"),n(),i(582," \u7684\u5C55\u5E73\u5668"),n()(),t(583,"tr")(584,"td")(585,"code"),i(586,"initialData: T[] = []"),n()(),t(587,"td"),i(588,"\u521D\u59CB\u5316\u6570\u636E"),n()()()(),t(589,"p")(590,"strong"),i(591,"\u65B9\u6CD5"),n()(),t(592,"table")(593,"thead")(594,"tr")(595,"th"),i(596,"\u540D\u79F0"),n(),t(597,"th"),i(598,"\u8BF4\u660E"),n()()(),t(599,"tbody")(600,"tr")(601,"td")(602,"code"),i(603,"connect(collectionViewer: CollectionViewer): Observable<F[]>"),n()(),t(604,"td"),i(605,"TreeView \u7EC4\u4EF6\u4E2D\u8C03\u7528\uFF0C\u7528\u4E8E\u83B7\u53D6\u6570\u636E\u7684\u66F4\u65B0"),n()(),t(606,"tr")(607,"td")(608,"code"),i(609,"disconnect(): void"),n()(),t(610,"td"),i(611,"TreeView \u7EC4\u4EF6\u9500\u6BC1\u65F6\u8C03\u7528"),n()(),t(612,"tr")(613,"td")(614,"code"),i(615,"setData(value: T[]): void"),n()(),t(616,"td"),i(617,"\u8BBE\u7F6E\u539F\u59CB\u6570\u636E"),n()(),t(618,"tr")(619,"td")(620,"code"),i(621,"getData(): T[]"),n()(),t(622,"td"),i(623,"\u83B7\u53D6\u539F\u59CB\u6570\u636E"),n()()()(),t(624,"h3",72)(625,"span"),i(626,"NzTreeFlattener"),n(),t(627,"a",73),i(628,"#"),n()(),t(629,"p"),i(630,"\u5C06\u5177\u6709\u5B50\u8282\u70B9\u7684\u5D4
3C\u5957\u6570\u636E\u8F6C\u6362\u4E3A\u5177\u6709\u7EA7\u522B\uFF08level\uFF09\u4FE1\u606F\u7684\u8F6C\u6362\u5668\u7C7B\u3002"),n(),t(631,"p")(632,"strong"),i(633,"\u6784\u9020\u53C2\u6570"),n()(),t(634,"table")(635,"thead")(636,"tr")(637,"th"),i(638,"\u540D\u79F0"),n(),t(639,"th"),i(640,"\u8BF4\u660E"),n()()(),t(641,"tbody")(642,"tr")(643,"td")(644,"code"),i(645,"transformFunction: (node: T, level: number) => F"),n()(),t(646,"td"),i(647,"\u63A5\u6536\u4E00\u4E2A\u5D4C\u5957\u8282\u70B9\uFF0C\u8FD4\u56DE\u6241\u5E73\u8282\u70B9"),n()(),t(648,"tr")(649,"td")(650,"code"),i(651,"getLevel: (node: F) => number"),n()(),t(652,"td"),i(653,"\u5B9A\u4E49\u83B7\u53D6 "),t(654,"code"),i(655,"level"),n(),i(656," \u5C5E\u6027\u7684\u65B9\u6CD5"),n()(),t(657,"tr")(658,"td")(659,"code"),i(660,"isExpandable: (node: F) => boolean"),n()(),t(661,"td"),i(662,"\u5B9A\u4E49\u662F\u5426\u4E3A\u53EF\u5C55\u5F00\u8282\u70B9\u7684\u65B9\u6CD5"),n()(),t(663,"tr")(664,"td")(665,"code"),i(666,"getChildren: (node: T) => Observable<T[]> | T[] | undefined | null"),n()(),t(667,"td"),i(668,"\u5B9A\u4E49\u4ECE\u5D4C\u5957\u6570\u636E\u4E2D\u83B7\u53D6\u5B50\u8282\u70B9\u7684\u65B9\u6CD5"),n()()()(),t(669,"p")(670,"strong"),i(671,"\u65B9\u6CD5"),n()(),t(672,"table")(673,"thead")(674,"tr")(675,"th"),i(676,"\u540D\u79F0"),n(),t(677,"th"),i(678,"\u8BF4\u660E"),n()()(),t(679,"tbody")(680,"tr")(681,"td")(682,"code"),i(683,"flattenNodes(structuredData: T[]): F[]"),n()(),t(684,"td"),i(685,"\u63A5\u6536\u5D4C\u5957\u6570\u636E\uFF0C\u8FD4\u56DE\u6241\u5E73\u6570\u636E"),n()(),t(686,"tr")(687,"td")(688,"code"),i(689,"expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[]"),n()(),t(690,"td"),i(691,"\u6309 TreeControl \u4E2D\u7684\u5C55\u5F00\u72B6\u6001\u83B7\u53D6\u8282\u70B9"),n()()()(),_(),n()()),e&2&&(c(),m("nzOffsetTop",16),c(),m("nzAffix",!1),c(31),m("nzGutter",16),c(),m("nzXl",12)("nzSpan",24),c(),m("nzId","components-tree-view-demo-basic")("nzLink","components-tree-view-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/basic.md"),c(5),m("nzId","components-tree-view-demo-directory")("nzLink","components-tree-view-demo-directory")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/directory.md"),c(5),m("nzId","components-tree-view-demo-line")("nzLink","components-tree-view-demo-line")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/line.md"),c(5),m("nzId","components-tree-view-demo-search")("nzLink","components-tree-view-demo-search")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/search.md"),c(5),m("nzXl",12)("nzSpan",24),c(),m("nzId","components-tree-view-demo-checkbox")("nzLink","components-tree-view-demo-checkbox")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/checkbox.md"),c(5),m("nzId","components-tree-view-demo-dynamic")("nzLink","components-tree-view-demo-dynamic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/dynamic.md"),c(5),m("nzId","components-tree-view-demo-editable")("nzLink","components-tree-view-demo-editable")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/editable.md"),c(5),m("nzId","components-tree-view-demo-virtual-scroll")("nzLink","components-tree-view-demo-virtual-scroll")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/virtual-scroll.md"))},dependencies:[at,me,rt,it,ot,nt,tt,et,Ze,C,Te,De,be,we,ye,Fe,ke,Ie],encapsulation:2})};var pt=class l{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>r.expandCode(this.expanded))}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=z({type:l,selectors:[["nz-demo-tree-view"]],viewQuery:function(e,o){if(e&1&&J(me,5),e&2){let a;Z(a=Q())&&(o.codeBoxes=a)}},decls:703,vars:47,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-tree-view-demo-basic","nzTitle","basic"],["nzHref","#components-tree-view-demo-checkbox","nzTitle","checkbox"],["nzHref","#components-tree-view-demo-directory","nzTitle","Directory"],["nzHref","#components-tree-view-demo-dynamic","nzTitle","Load data asynchronously"],["nzHref","#components-tree-view-demo-line","nzTitle","Tree with line"],["nzHref","#components-tree-view-demo-editable","nzTitle","editable"],["nzHref","#components-tree-view-demo-search","nzTitle","search"],["nzHref","#components-tree-view-demo-virtual-scroll","nzTitle","Virtual Scroll"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","tree-view","description","Tree view component with better performance and customizability.","language","en"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","basic","nzSelector","nz-demo-tree-view-basic","nzGenerateCommand","ng g ng-zorro-antd:tree-view-basic <name>","nzComponentName","NzDemoTreeViewBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Directory","nzSelector","nz-demo-tree-view-directory","nzGenerateCommand","ng g ng-zorro-antd:tree-view-directory <name>","nzComponentName","NzDemoTreeViewDirectoryComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Tree with line","nzSelector","nz-demo-tree-view-l
3ine","nzGenerateCommand","ng g ng-zorro-antd:tree-view-line <name>","nzComponentName","NzDemoTreeViewLineComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","search","nzSelector","nz-demo-tree-view-search","nzGenerateCommand","ng g ng-zorro-antd:tree-view-search <name>","nzComponentName","NzDemoTreeViewSearchComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","checkbox","nzSelector","nz-demo-tree-view-checkbox","nzGenerateCommand","ng g ng-zorro-antd:tree-view-checkbox <name>","nzComponentName","NzDemoTreeViewCheckboxComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Load data asynchronously","nzSelector","nz-demo-tree-view-dynamic","nzGenerateCommand","ng g ng-zorro-antd:tree-view-dynamic <name>","nzComponentName","NzDemoTreeViewDynamicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","editable","nzSelector","nz-demo-tree-view-editable","nzGenerateCommand","ng g ng-zorro-antd:tree-view-editable <name>","nzComponentName","NzDemoTreeViewEditableComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Virtual Scroll","nzSelector","nz-demo-tree-view-virtual-scroll","nzGenerateCommand","ng g ng-zorro-antd:tree-view-virtual-scroll <name>","nzComponentName","NzDemoTreeViewVirtualScrollComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-tree-view"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-tree-view'",1,"anchor"],["href","https://material.angular.io/cdk/tree/api#TreeControl","target","_blank","rel","noopener"],["href","https://material.angular.io/cdk/tree/overview#data-source","target","_blank","rel","noopener"],["id","nz-tree-virtual-scroll-view"],["onclick","window.location.hash = 'nz-tree-virtual-scroll-view'",1,"anchor"],["href","https://material.angular.io/cdk/scrolling/api#CdkVirtualScrollViewport","target","_blank","rel","noopener"],["id","nztreenodedef"],[1,"api-type-label","directive"],["onclick","window.location.hash = 'nztreenodedef'",1,"anchor"],["id","nz-tree-node"],["onclick","window.location.hash = 'nz-tree-node'",1,"anchor"],["id","nztreenodepadding"],["onclick","window.location.hash = 'nztreenodepadding'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],["id","nztreenodeindentline"],["onclick","window.location.hash = 'nztreenodeindentline'",1,"anchor"],["id","nz-tree-node-toggle"],["onclick","window.location.hash = 'nz-tree-node-toggle'",1,"anchor"],["id","nz-tree-node-togglenztreenodenooptoggle"],["onclick","window.location.hash = 'nz-tree-node-togglenztreenodenooptoggle'",1,"anchor"],["id","nztreenodetogglerotateicon"],["onclick","window.location.hash = 'nztreenodetogglerotateicon'",1,"anchor"],["id","nztreenodetoggleactiveicon"],["onclick","window.location.hash = 'nztreenodetoggleactiveicon'",1,"anchor"],["id","nz-tree-node-option"],["onclick","window.location.hash = 'nz-tree-node-option'",1,"anchor"],["id","nz-tree-node-checkbox"],["onclick","window.location.hash = 'nz-tree-node-checkbox'",1,"anchor"],["id","classes"],["onclick","window.location.hash = 'classes'",1,"anchor"],["id","nztreeflatdatasource_extends_datasource"],["onclick","window.location.hash = 'nztreeflatdatasource_extends_datasource'",1,"anchor"],["id","nztreeflattener"],["onclick","window.location.hash = 'nztreeflattener'",1,"anchor"]],template:function(e,o){e&1&&(t(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),g("nzClick",function(d){return o.goLink(d)}),u(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9)(11,"nz-link",10),n()(),t(12,"section",11)(13,"h1"),i(14,"Tree View"),u(15,"span",12)(16,"span",13),t(17,"a",14),u(18,"nz-icon",15),n()(),u(19,"component-meta",16),t(20,"section",11),S(),t(21,"h2",17)(22,"span"),i(23,"When To Use"),n(),t(24,"a",18),i(25,"#"),n()(),t(26,"p"),i(27,"More basic Tree component, allowing each of its parts to be defined in the template, and state to be managed manually."),n(),_(),n(),t(28,"h2")(29,"span"),i(30,"Examples"),n(),t(31,"nz-icon",19),g("click",function(){return o.expandAllCode()}),n()()(),t(32,"div",20)(33,"div",21)(34,"nz-code-box",22),u(35,"nz-demo-tree-view-basic",23),t(36,"div",24),S(),t(37,"p"),i(38,"The most basic usage including select, disable and expand features."),n(),_(),n()(),t(39,"nz-code-box",25),u(40,"nz-demo-tree-view-directory",23),t(41,"div",24),S(),t(42,"p"),i(43,"Directory tree."),n(),_(),n()(),t(44,"nz-code-box",26),u(45,"nz-demo-tree-view-l
3ine",23),t(46,"div",24),S(),t(47,"p"),i(48,"Tree with connected line between nodes."),n(),_(),n()(),t(49,"nz-code-box",27),u(50,"nz-demo-tree-view-search",23),t(51,"div",24),S(),t(52,"p"),i(53,"Searchable Tree."),n(),_(),n()()(),t(54,"div",21)(55,"nz-code-box",28),u(56,"nz-demo-tree-view-checkbox",23),t(57,"div",24),S(),t(58,"p"),i(59,"Tree with checkboxes."),n(),_(),n()(),t(60,"nz-code-box",29),u(61,"nz-demo-tree-view-dynamic",23),t(62,"div",24),S(),t(63,"p"),i(64,"To load data asynchronously when click to expand a treeNode."),n(),_(),n()(),t(65,"nz-code-box",30),u(66,"nz-demo-tree-view-editable",23),t(67,"div",24),S(),t(68,"p"),i(69,"Tree with add and delete actions."),n(),_(),n()(),t(70,"nz-code-box",31),u(71,"nz-demo-tree-view-virtual-scroll",23),t(72,"div",24),S(),t(73,"p"),i(74,"Use virtual scroll."),n(),_(),n()()()(),t(75,"section",32),S(),t(76,"h2",33)(77,"span"),i(78,"API"),n(),t(79,"a",34),i(80,"#"),n()(),t(81,"h3",35)(82,"span"),i(83,"nz-tree-view"),n(),t(84,"label",36),i(85,"component"),n(),t(86,"a",37),i(87,"#"),n()(),t(88,"table")(89,"thead")(90,"tr")(91,"th"),i(92,"Property"),n(),t(93,"th"),i(94,"Description"),n(),t(95,"th"),i(96,"Type"),n(),t(97,"th"),i(98,"Default"),n()()(),t(99,"tbody")(100,"tr")(101,"td")(102,"code"),i(103,"[nzTreeControl]"),n()(),t(104,"td"),i(105,"The tree controller"),n(),t(106,"td")(107,"a",38),i(108,"TreeControl"),n()(),t(109,"td"),i(110,"-"),n()(),t(111,"tr")(112,"td")(113,"code"),i(114,"[nzDataSource]"),n()(),t(115,"td"),i(116,"The data array to render"),n(),t(117,"td")(118,"a",39),i(119,"DataSource"),n(),i(120,"<T>"),n(),t(121,"td"),i(122,"Observable<T[]>"),n()(),t(123,"tr")(124,"td")(125,"code"),i(126,"[nzDirectoryTree]"),n()(),t(127,"td"),i(128,"Whether nodes are displayed as directory style"),n(),t(129,"td")(130,"code"),i(131,"boolean"),n()(),t(132,"td")(133,"code"),i(134,"false"),n()()(),t(135,"tr")(136,"td")(137,"code"),i(138,"[nzBlockNode]"),n()(),t(139,"td"),i(140,"Whether tree nodes fill remaining horizontal space"),n(),t(141,"td")(142,"code"),i(143,"boolean"),n()(),t(144,"td")(145,"code"),i(146,"false"),n()()()()(),t(147,"h3",40)(148,"span"),i(149,"nz-tree-virtual-scroll-view"),n(),t(150,"label",36),i(151,"component"),n(),t(152,"a",41),i(153,"#"),n()(),t(154,"p"),i(155,`The virtual scroll tree view, which can be accessed from 4the `),t(156,"a",42),i(157,"CdkVirtualScrollViewport"),n(),i(158,` instance through 5the `),t(159,"code"),i(160,"virtualScrollViewport"),n(),i(161," member of the component instance."),n(),t(162,"table")(163,"thead")(164,"tr")(165,"th"),i(166,"Property"),n(),t(167,"th"),i(168,"Description"),n(),t(169,"th"),i(170,"Type"),n(),t(171,"th"),i(172,"Default"),n()()(),t(173,"tbody")(174,"tr")(175,"td")(176,"code"),i(177,"[nzTreeControl]"),n()(),t(178,"td"),i(179,"The tree controller"),n(),t(180,"td")(181,"a",38),i(182,"TreeControl"),n()(),t(183,"td"),i(184,"-"),n()(),t(185,"tr")(186,"td")(187,"code"),i(188,"[nzDataSource]"),n()(),t(189,"td"),i(190,"The data array to render"),n(),t(191,"td")(192,"a",39),i(193,"DataSource"),n(),i(194,"<T>"),n(),t(195,"td"),i(196,"Observable<T[]>"),n()(),t(197,"tr")(198,"td")(199,"code"),i(200,"[nzDirectoryTree]"),n()(),t(201,"td"),i(202,"Whether nodes are displayed as directory style"),n(),t(203,"td")(204,"code"),i(205,"boolean"),n()(),t(206,"td")(207,"code"),i(208,"false"),n()()(),t(209,"tr")(210,"td")(211,"code"),i(212,"[nzBlockNode]"),n()(),t(213,"td"),i(214,"Whether tree nodes fill remaining horizontal space"),n(),t(215,"td")(216,"code"),i(217,"boolean"),n()(),t(218,"td")(219,"code"),i(220,"false"),n()()(),t(221,"tr")(222,"td")(223,"code"),i(224,"[nzItemSize]"),n()(),t(225,"td"),i(226,"The size of nodes in the tree (in pixels)"),n(),t(227,"td")(228,"code"),i(229,"number"),n()(),t(230,"td")(231,"code"),i(232,"28"),n()()(),t(233,"tr")(234,"td")(235,"code"),i(236,"[nzMinBufferPx]"),n()(),t(237,"td"),i(238,"The minimum amount of buffer rendered allowed outside the viewport (in pixels)"),n(),t(239,"td")(240,"code"),i(241,"number"),n()(),t(242,"td")(243,"code"),i(244,"28 * 5"),n()()(),t(245,"tr")(246,"td")(247,"code"),i(248,"[nzMaxBufferPx]"),n()(),t(249,"td"),i(250,"The amount of buffer required for rendering new nodes (in pixels)"),n(),t(251,"td")(252,"code"),i(253,"number"),n()(),t(254,"td")(255,"code"),i(256,"28 * 10"),n()()()()(),t(257,"h3",43)(258,"span"),i(259,"[nzTreeNodeDef]"),n(),t(260,"label",44),i(261,"directive"),n(),t(262,"a",45),i(263,"#"),n()(),t(264,"p"),i(265,"Directive to define "),t(266,"code"),i(267,"nz-tree-node"),n(),i(268,"."),n(),t(269,"table")(270,"thead")(271,"tr")(272,"th"),i(273,"Property"),n(),t(274,"th"),i(275,"Description"),n(),t(276,"th"),i(277,"Type"),n(),t(278,"th"),i(279,"Default"),n()()(),t(280,"tbody")(281,"tr")(282,"td")(283,"code"),i(284,"[nzTreeNodeDefWhen]"),n()(),t(285,"td"),i(286,"A matching function which indicates whether inputted node should be used. It matches the very first node that makes this function return "),t(287,"code"),i(288,"true"),n(),i(289,". If no nodes that makes this function return "),t(290,"code"),i(291,"true"),n(),i(292,", the node which does not define this function would be matched instead."),n(),t(293,"td")(294,"code"),i(295,"(index: number, nodeData: T) => boolean"),n()(),t(296,"td"),i(297,"-"),n()()()(),t(298,"h3",46)(299,"span"),i(300,"nz-tree-node"),n(),t(301,"label",36),i(302,"component"),n(),t(303,"a",47),i(304,"#"),n()(),t(305,"p"),i(306,"The tree node container component, which needs to be defined by the "),t(307,"code"),i(308,"nzTreeNodeDef"),n(),i(309," directive."),n(),t(310,"h3",48)(311,"span"),i(312,"[nzTreeNodePadding]"),n(),t(313,"label",44),i(314,"directive"),n(),t(315,"a",49),i(316,"#"),n()(),t(317,"pre")(318,"code",50)(319,"span",51)(320,"span",51)(321,"span",52),i(322,"<"),n(),i(323,"nz-tree-node"),n(),i(324," "),t(325,"span",53),i(326,"nzTreeNodePadding"),n(),t(327,"span",52),i(328,">"),n()(),t(329,"span",51)(330,"span",51)(331,"span",52),i(332,"</"),n(),i(333,"nz-tree-node"),n(),t(334,"span",52),i(335,">"),n()(),i(336,` 6`),n()(),t(337,"p"),i(338,"Show node indentation by adding "),t(339,"code"),i(340,"padding"),n(),t(341,"strong"),i(342,"Best Performance"),n(),i(343,"."),n(),t(344,"h3",54)(345,"span"),i(346,"nzTreeNodeIndentLine"),n(),t(347,"a",55),i(348,"#"),n()(),t(349,"pre")(350,"code",50)(351,"span",51)(352,"span",51)(353,"span",52),i(354,"<"),n(),i(355,"nz-tree-node"),n(),i(356," "),t(357,"span",53),i(358,"nzTreeNodeIndentLine"),n(),t(359,"span",52),i(360,">"),n()(),t(361,"span",51)(362,"span",51)(363,"span",52),i(364,"</"),n(),i(365,"nz-tree-node"),n(),t(366,"span",52),i(367,">"),n()(),i(368,` 7`),n()(),t(369,"p"),i(370,"Show node indentation by adding indent lines."),n(),t(371,"h3",56)(372,"span"),i(373,"nz-tree-node-toggle"),n(),t(374,"label",36),i(375,"component"),n(),t(376,"a",57),i(377,"#"),n()(),t(378,"p"),i(379,"A toggle which is used to expand / collapse the node."),n(),t(380,"table")(381,"thead")(382,"tr")(383,"th"),i(384,"Property"),n(),t(385,"th"),i(386,"Description"),n(),t(387,"th"),i(388,"Type"),n(),t(389,"th"),i(390,"Default"),n()()(),t(391,"tbody")(392,"tr")(393,"td")(394,"code"),i(395,"[nzTreeNodeToggleRecursive]"),n()(),t(396,"td"),i(397,"Is it recursively expand / collapse"),n(),t(398,"td")(399,"code"),i(400,"boolean"),n()(),t(401,"td")(402,"code"),i(403,"false"),n()()()()(),t(404,"h3",58)(405,"span"),i(406,"nz-tree-node-toggle[nzTreeNodeNoopToggle]"),n(),t(407,"label",36),i(408,"component"),n(),t(409,"a",59),i(410,"#"),n()(),t(411,"p"),i(412,"A toggle that does no actions. This can be used for placeholders or displays icons."),n(),t(413,"h3",60)(414,"span"),i(415,"[nzTreeNodeToggleRotateIcon]"),n(),t(416,"label",44),i(417,"directive"),n(),t(418,"a",61),i(419,"#"),n()(),t(420,"p"),i(421,"Define an icon in the toggle, which it will automatically rotate depending on the collapse/expand state."),n(),t(422,"h3",62)(423,"span"),i(424,"[nzTreeNodeToggleActiveIcon]"),n(),t(425,"label",44),i(426,"directive"),n(),t(427,"a",63),i(428,"#"),n()(),t(429,"p"),i(430,"Define an icon in the toggle for an active style, which it can be used for the loading state."),n(),t(431,"h3",64)(432,"span"),i(433,"nz-tree-node-option"),n(),t(434,"label",36),i(435,"component"),n(),t(436,"a",65),i(437,"#"),n()(),t(438,"p"),i(439,"Define the selectable feature of a node."),n(),t(440,"table")(441,"thead")(442,"tr")(443,"th"),i(444,"Property"),n(),t(445,"th"),i(446,"Description"),n(),t(447,"th"),i(448,"Type"),n(),t(449,"th"),i(450,"Default"),n()()(),t(451,"tbody")(452,"tr")(453,"td")(454,"code"),i(455,"[nzSelected]"),n()(),t(456,"td"),i(457,"Whether the option is selected"),n(),t(458,"td")(459,"code"),i(460,"boolean"),n()(),t(461,"td")(462,"code"),i(463,"false"),n()()(),t(464,"tr")(465,"td")(466,"code"),i(467,"[nzDisabled]"),n()(),t(468,"td"),i(469,"Whether the option is disabled"),n(),t(470,"td")(471,"code"),i(472,"boolean"),n()(),t(473,"td")(474,"code"),i(475,"false"),n()()(),t(476,"tr")(477,"td")(478,"code"),i(479,"(nzClick)"),n()(),t(480,"td"),i(481,"Event on click"),n(),t(482,"td")(483,"code"),i(484,"EventEmitter<MouseEvent>"),n()(),t(485,"td"),i(486,"-"),n()()()(),t(487,"h3",66)(488,"span"),i(489,"nz-tree-node-checkbox"),n(),t(490,"label",36),i(491,"component"),n(),t(492,"a",67),i(493,"#"),n()(),t(494,"p"),i(495,"Define the checkbox feature of a node."),n(),t(496,"table")(497,"thead")(498,"tr")(499,"th"),i(500,"Property"),n(),t(501,"th"),i(502,"Description"),n(),t(503,"th"),i(504,"Type"),n(),t(505,"th"),i(506,"Default"),n()()(),t(507,"tbody")(508,"tr")(509,"td")(510,"code"),i(511,"[
7nzChecked]"),n()(),t(512,"td"),i(513,"Whether the checkbox is checked"),n(),t(514,"td")(515,"code"),i(516,"boolean"),n()(),t(517,"td")(518,"code"),i(519,"false"),n()()(),t(520,"tr")(521,"td")(522,"code"),i(523,"[nzDisabled]"),n()(),t(524,"td"),i(525,"Whether the checkbox is disabled"),n(),t(526,"td")(527,"code"),i(528,"boolean"),n()(),t(529,"td")(530,"code"),i(531,"false"),n()()(),t(532,"tr")(533,"td")(534,"code"),i(535,"[nzIndeterminate]"),n()(),t(536,"td"),i(537,"Whether the checkbox is indeterminate"),n(),t(538,"td")(539,"code"),i(540,"boolean"),n()(),t(541,"td")(542,"code"),i(543,"false"),n()()(),t(544,"tr")(545,"td")(546,"code"),i(547,"(nzClick)"),n()(),t(548,"td"),i(549,"Event on click"),n(),t(550,"td")(551,"code"),i(552,"EventEmitter<MouseEvent>"),n()(),t(553,"td"),i(554,"-"),n()()()(),t(555,"h2",68)(556,"span"),i(557,"Classes"),n(),t(558,"a",69),i(559,"#"),n()(),t(560,"h3",70)(561,"span"),i(562,"NzTreeFlatDataSource extends DataSource"),n(),t(563,"a",71),i(564,"#"),n()(),t(565,"p")(566,"strong"),i(567,"Construction Parameters"),n()(),t(568,"table")(569,"thead")(570,"tr")(571,"th"),i(572,"Name"),n(),t(573,"th"),i(574,"Description"),n()()(),t(575,"tbody")(576,"tr")(577,"td")(578,"code"),i(579,"treeControl: FlatTreeControl<F, K>"),n()(),t(580,"td"),i(581,"The tree controller."),n()(),t(582,"tr")(583,"td")(584,"code"),i(585,"treeFlattener: NzTreeFlattener<T, F, K>"),n()(),t(586,"td"),i(587,"Flattener for convert nested nodes "),t(588,"code"),i(589,"T"),n(),i(590," into flattened nodes "),t(591,"code"),i(592,"F"),n(),i(593,"."),n()(),t(594,"tr")(595,"td")(596,"code"),i(597,"initialData: T[] = []"),n()(),t(598,"td"),i(599,"Initialized data."),n()()()(),t(600,"p")(601,"strong"),i(602,"Methods"),n()(),t(603,"table")(604,"thead")(605,"tr")(606,"th"),i(607,"Name"),n(),t(608,"th"),i(609,"Description"),n()()(),t(610,"tbody")(611,"tr")(612,"td")(613,"code"),i(614,"connect(collectionViewer: CollectionViewer): Observable<F[]>"),n()(),t(615,"td"),i(616,"Call from the TreeView component to listen for data updates."),n()(),t(617,"tr")(618,"td")(619,"code"),i(620,"disconnect(): void"),n()(),t(621,"td"),i(622,"Call when TreeView component is destroyed."),n()(),t(623,"tr")(624,"td")(625,"code"),i(626,"setData(value: T[]): void"),n()(),t(627,"td"),i(628,"Set the origin data"),n()(),t(629,"tr")(630,"td")(631,"code"),i(632,"getData(): T[]"),n()(),t(633,"td"),i(634,"Get the origin data"),n()()()(),t(635,"h3",72)(636,"span"),i(637,"NzTreeFlattener"),n(),t(638,"a",73),i(639,"#"),n()(),t(640,"p"),i(641,"Convert nested data with child nodes into node data with level information."),n(),t(642,"p")(643,"strong"),i(644,"Construction Parameters"),n()(),t(645,"table")(646,"thead")(647,"tr")(648,"th"),i(649,"Name"),n(),t(650,"th"),i(651,"Description"),n()()(),t(652,"tbody")(653,"tr")(654,"td")(655,"code"),i(656,"transformFunction: (node: T, level: number) => F"),n()(),t(657,"td"),i(658,"Receive a nested node and return a flattened node"),n()(),t(659,"tr")(660,"td")(661,"code"),i(662,"getLevel: (node: F) => number"),n()(),t(663,"td"),i(664,"Define the method to get the "),t(665,"code"),i(666,"level"),n(),i(667," property"),n()(),t(668,"tr")(669,"td")(670,"code"),i(671,"isExpandable: (node: F) => boolean"),n()(),t(672,"td"),i(673,"Methods for defining whether a node is expandable"),n()(),t(674,"tr")(675,"td")(676,"code"),i(677,"getChildren: (node: T) => Observable<T[]> | T[] | undefined | null"),n()(),t(678,"td"),i(679,"Define methods to get children nodes from nested node"),n()()()(),t(680,"p")(681,"strong"),i(682,"Methods"),n()(),t(683,"table")(684,"thead")(685,"tr")(686,"th"),i(687,"Name"),n(),t(688,"th"),i(689,"Description"),n()()(),t(690,"tbody")(691,"tr")(692,"td")(693,"code"),i(694,"flattenNodes(structuredData: T[]): F[]"),n()(),t(695,"td"),i(696,"Receive nested data and return flattened data"),n()(),t(697,"tr")(698,"td")(699,"code"),i(700,"expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[]"),n()(),t(701,"td"),i(702,"Get flattened node data based on expansion status"),n()()()(),_(),n()()),e&2&&(c(),m("nzOffsetTop",16),c(),m("nzAffix",!1),c(30),m("nzGutter",16),c(),m("nzXl",12)("nzSpan",24),c(),m("nzId","components-tree-view-demo-basic")("nzLink","components-tree-view-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/basic.md"),
7c(5),m("nzId","components-tree-view-demo-directory")("nzLink","components-tree-view-demo-directory")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/directory.md"),c(5),m("nzId","components-tree-view-demo-line")("nzLink","components-tree-view-demo-line")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/line.md"),c(5),m("nzId","components-tree-view-demo-search")("nzLink","components-tree-view-demo-search")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/search.md"),c(5),m("nzXl",12)("nzSpan",24),c(),m("nzId","components-tree-view-demo-checkbox")("nzLink","components-tree-view-demo-checkbox")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/checkbox.md"),c(5),m("nzId","components-tree-view-demo-dynamic")("nzLink","components-tree-view-demo-dynamic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/dynamic.md"),c(5),m("nzId","components-tree-view-demo-editable")("nzLink","components-tree-view-demo-editable")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/editable.md"),c(5),m("nzId","components-tree-view-demo-virtual-scroll")("nzLink","components-tree-view-demo-virtual-scroll")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/virtual-scroll.md"))},dependencies:[at,me,rt,it,ot,nt,tt,et,Ze,C,Te,De,be,we,ye,Fe,ke,Ie],encapsulation:2})};var Di=[{path:"en",component:pt},{path:"zh",component:ut}],Rr=Di;export{Rr as default};
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.