PageSourceSearch

https://preview-8231-ng-zorro-antd.surge.sh/5147.e0a08a2870027864.js

js preview-8231-ng-zorro-antd.surge.sh collected 2026-10-03 14:58:21 UTC 119,794 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[5147],{5147:(ue,L,d)=>{d.r(L),d.d(L,{NzDemoTreeViewModule:()=>Vt});var A=d(4190),c=d(6242),l=d(4119),P=d(2907),S=d(1076),v=d(8381),m=d(227),f=d(337),U=d(4854),N=d(9388),C=d(3584),x=d(6814),e=d(9212),E=d(7582),I=d(2438),k=d(8645),ee=d(927),oe=d(6410),$=d(3019),_=d(5619),q=d(9773),u=d(9028),p=d(2181),z=d(8180),g=d(7398),w=d(2189),h=d(6700),Z=d(8337),D=d(2664),M=d(2096),W=d(2495);class he{constructor(){this.expansionModel=new Z.Ov(!0)}toggle(s){this.expansionModel.toggle(this._trackByValue(s))}expand(s){this.expansionModel.select(this._trackByValue(s))}collapse(s){this.expansionModel.deselect(this._trackByValue(s))}isExpanded(s){return this.expansionModel.isSelected(this._trackByValue(s))}toggleDescendants(s){this.expansionModel.isSelected(this._trackByValue(s))?this.collapseDescendants(s):this.expandDescendants(s)}collapseAll(){this.expansionModel.clear()}expandDescendants(s){let t=[s];t.push(...this.getDescendants(s)),this.expansionModel.select(...t.map(n=>this._trackByValue(n)))}collapseDescendants(s){let t=[s];t.push(...this.getDescendants(s)),this.expansionModel.deselect(...t.map(n=>this._trackByValue(n)))}_trackByValue(s){return this.trackBy?this.trackBy(s):s}}class H extends he{constructor(s,t,n){super(),this.getLevel=s,this.isExpandable=t,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(s){const n=[];for(let i=this.dataNodes.indexOf(s)+1;i<this.dataNodes.length&&this.getLevel(s)<this.getLevel(this.dataNodes[i]);i++)n.push(this.dataNodes[i]);return n}expandAll(){this.expansionModel.select(...this.dataNodes.map(s=>this._trackByValue(s)))}}const ge=new e.OlP("CDK_TREE_NODE_OUTLET_NODE");let ie=(()=>{class o{constructor(t,n){this.viewContainer=t,this._node=n}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.s_b),e.Y36(ge,8))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","cdkTreeNodeOutlet",""]]})}return o})();class me{constructor(s){this.$implicit=s}}let ae=(()=>{class o{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}})}return o})(),Q=(()=>{class o{get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}constructor(t,n){this._differs=t,this._changeDetectorRef=n,this._onDestroy=new k.x,this._levels=new Map,this.viewChange=new _.X({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(n=>!n.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,Z.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,D.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,M.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,q.R)(this._onDestroy)).subscribe(n=>this.renderNodeChanges(n)))}renderNodeChanges(t,n=this._dataDiffer,i=this._nodeOutlet.viewContainer,r){const a=n.diff(t);a&&(a.forEachOperation((T,b,ne)=>{if(null==T.previousIndex)this.insertNode(t[ne],ne,i,r);else if(null==ne)i.remove(b),this._levels.delete(T.item);else{const Rt=i.get(b);i.move(Rt,ne)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,n){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(r=>r.when&&r.when(n,t))||this._defaultNodeDef}insertNode(t,n,i,r){const a=this._getNodeDef(t,n),T=new me(t);T.level=this.treeControl.getLevel?this.treeControl.getLevel(t):typeof r<"u"&&this._levels.has(r)?this._levels.get(r)+1:0,this._levels.set(t,T.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,T,n),y.mostRecentTreeNode&&(y.mostRecentTreeNode.data=t)}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.ZZ4),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["cdk-tree"]],c
1ontentQueries:function(n,i,r){if(1&n&&e.Suo(r,ae,5),2&n){let a;e.iGM(a=e.CRH())&&(i._nodeDefs=a)}},viewQuery:function(n,i){if(1&n&&e.Gf(ie,7),2&n){let r;e.iGM(r=e.CRH())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,i){1&n&&e.GkF(0,0)},dependencies:[ie],encapsulation:2})}return o})(),y=(()=>{class o{get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}static#e=this.mostRecentTreeNode=null;get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(t,n){this._elementRef=t,this._tree=n,this._destroyed=new k.x,this._dataChanges=new k.x,o.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function Oe(o){let s=o.parentElement;for(;s&&!Ve(s);)s=s.parentElement;return s?s.classList.contains("cdk-nested-tree-node")?(0,W.su)(s.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){o.mostRecentTreeNode===this&&(o.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}static#t=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.SBq),e.Y36(Q))};static#n=this.\u0275dir=e.lG2({type:o,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,i){2&n&&e.uIk("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]})}return o})();function Ve(o){const s=o.classList;return!(!s?.contains("cdk-nested-tree-node")&&!s?.contains("cdk-tree"))}const Le=/([A-Za-z%]+)$/;let pe=(()=>{class o{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}constructor(t,n,i,r){this._treeNode=t,this._tree=n,this._element=i,this._dir=r,this._destroyed=new k.x,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe((0,q.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,n=null==this._level?t:this._level;return"number"==typeof n?`${n*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const n=this._paddingIndent();if(n!==this._currentPadding||t){const i=this._element.nativeElement,r=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===r?"paddingRight":"paddingLeft";i.style[r]=n||"",i.style[a]="",this._currentPadding=n}}_setLevelInput(t){this._level=(0,W.su)(t,null),this._setPadding()}_setIndentInput(t){let n=t,i="px";if("string"==typeof t){const r=t.split(Le);n=r[0],i=r[1]||i}this.indentUnits=i,this._indent=(0,W.su)(n),this._setPadding()}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(y),e.Y36(Q),e.Y36(e.SBq),e.Y36(N.Is,8))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}})}return o})(),_e=(()=>{class o{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,W.Ig)(t)}constructor(t,n){this._tree=t,this._treeNode=n,this._recursive=!1}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(Q),e.Y36(y))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,i){1&n&&e.NdJ("click",function(a){return i._toggle(a)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}})}return o}
1)();var Pe=d(8923);function He(o,s){1&o&&e._UZ(0,"span",1),2&o&&e.ekj("ant-tree-indent-unit-end",!s.$implicit)}function Qe(o,s){if(1&o&&e._UZ(0,"nz-tree-node-indents",2),2&o){const t=e.oxw();e.Q6J("indents",t.indents)}}function Je(o,s){1&o&&(e.TgZ(0,"nz-tree-node-toggle",3),e._UZ(1,"span",4),e.qZA())}const Ge=[[["nz-tree-node-toggle"],["","nz-tree-node-toggle",""]],[["nz-tree-node-checkbox"]],[["nz-tree-node-option"]],"*"],$e=["nz-tree-node-toggle, [nz-tree-node-toggle]","nz-tree-node-checkbox","nz-tree-node-option","*"],We=["*"];function Ye(o,s){}function je(o,s){if(1&o&&(e.ynx(0),e.YNc(1,Ye,0,0,"ng-template",4),e.BQk()),2&o){const t=s.$implicit,n=e.oxw();e.xp6(1),e.Q6J("data",t)("compareBy",n.compareBy)}}let fe=(()=>{class o{constructor(t,n,i,r){this.ngZone=t,this.ref=n,this.host=i,this.destroy$=r,this.nzClick=new e.vpe}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,I.R)(this.host.nativeElement,"click").pipe((0,q.R)(this.destroy$)).subscribe(t=>{!this.nzDisabled&&this.nzClick.observers.length&&this.ngZone.run(()=>{this.nzClick.emit(t),this.ref.markForCheck()})}))}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(w.kn))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-node-checkbox",3,"builtin",""]],hostAttrs:[1,"ant-tree-checkbox"],hostVars:6,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-checkbox-checked",i.nzChecked)("ant-tree-checkbox-indeterminate",i.nzIndeterminate)("ant-tree-checkbox-disabled",i.nzDisabled)},inputs:{nzChecked:"nzChecked",nzIndeterminate:"nzIndeterminate",nzDisabled:"nzDisabled"},outputs:{nzClick:"nzClick"},features:[e._Bn([w.kn])],decls:1,vars:0,consts:[[1,"ant-tree-checkbox-inner"]],template:function(n,i){1&n&&e._UZ(0,"span",0)},encapsulation:2,changeDetection:0})}return(0,E.gn)([(0,h.yF)()],o.prototype,"nzDisabled",void 0),o})();const Ce=(o,s,t)=>{let n=o.indexOf(s);if(n<0)return null;const i=t(s);for(n--;n>=0;n--){const r=t(o[n]);if(r+1===i)return o[n];if(r+1<i)return null}return null},Ae=(o,s,t,n)=>{let i=typeof n<"u"?n:o.indexOf(s);if(i<0)return null;const r=t(s);for(i++;i<o.length;i++){const a=t(o[i]);if(a<r)return null;if(a===r)return o[i]}return null};class ze extends y{}let Y=(()=>{class o extends Q{get dataSource(){return super.dataSource}set dataSource(t){super.dataSource=t}constructor(t,n,i,r){super(t,n),this.differs=t,this.changeDetectorRef=n,this.noAnimation=i,this.directionality=r,this.destroy$=new k.x,this.dir="ltr",this._dataSourceChanged=new k.x,this.nzDirectoryTree=!1,this.nzBlockNode=!1}ngOnInit(){super.ngOnInit(),this.directionality&&(this.dir=this.directionality.value,this.directionality.change?.pipe((0,q.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.changeDetectorRef.detectChanges()}))}ngOnDestroy(){super.ngOnDestroy(),this.destroy$.next(!0),this.destroy$.complete()}renderNodeChanges(t,n,i,r){super.renderNodeChanges(t,n,i,r),this._dataSourceChanged.next()}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(v.P,9),e.Y36(N.Is,8))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],inputs:{treeControl:["nzTreeControl","treeControl"],dataSource:["nzDataSource","dataSource"],nzDirectoryTree:"nzDirectoryTree",nzBlockNode:"nzBlockNode"},features:[e.qOj],decls:0,vars:0,template:function(n,i){},encapsulation:2})}return(0,E.gn)([(0,h.yF)()],o.prototype,"nzDirectoryTree",void 0),(0,E.gn)([(0,h.yF)()],o.prototype,"nzBlockNode",void 0),o})();const Xe=typeof requestAnimationFrame<"u"?ee.Z:oe.E;let ve=(()=>{class o{constructor(){this.indents=[]}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-node-indents"]],hostAttrs:[1,"ant-tree-indent"],inputs:{indents:"indents"},decls:1,vars:1,consts:[["class","ant-tree-indent-unit",3,"ant-tree-indent-unit-end",4,"ngFor","ngForOf"],[1,"ant-tree-indent-unit"]],template:function(n,i){1&n&&e.YNc(0,He,1,2,"span",0),2&n&&e.Q6J("ngForOf",i.indents)},dependencies:[x.sg],encapsulation:2,changeDetection:0})}return o})(),Te=(()=>{class o{constructor(t,n,i){this.treeNode=t,this.tree=n,this.cdr=i,this.isLast="unset",this.isLeaf=!1,this.preNodeRef=null,this.nextNodeRef=null,this.currentIndents="",this.buildIndents(),this.checkLast(),this.changeSubscription=(0,$.T)(this.treeNode._dataChanges,n._dataSourceChanged).pipe((0,u.e)(0,Xe)).subscribe(()=>{this.buildIndents(),this.checkAdjacent(),this.cdr.markForCheck()})}
1getIndents(){const t=[],n=this.tree.treeControl.dataNodes,i=this.tree.treeControl.getLevel;let r=Ce(n,this.treeNode.data,i);for(;r;)Ae(n,r,i)?t.unshift(!0):t.unshift(!1),r=Ce(n,r,i);return t}buildIndents(){if(this.treeNode.data){const n=function Ke(o){return o.map(s=>s?1:0).join("")}(this.getIndents());n!==this.currentIndents&&(this.treeNode.setIndents(this.getIndents()),this.currentIndents=n)}}checkAdjacent(){const t=this.tree.treeControl.dataNodes,n=t.indexOf(this.treeNode.data),i=t[n-1]||null,r=t[n+1]||null;(this.nextNodeRef!==r||this.preNodeRef!==i)&&this.checkLast(n),this.preNodeRef=i,this.nextNodeRef=r}checkLast(t){const n=this.tree.treeControl.dataNodes;this.isLeaf=this.treeNode.isLeaf,this.isLast=!Ae(n,this.treeNode.data,this.tree.treeControl.getLevel,t)}ngOnDestroy(){this.preNodeRef=null,this.nextNodeRef=null,this.changeSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(ze),e.Y36(Y),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["nz-tree-node","nzTreeNodeIndentLine",""]],hostAttrs:[1,"ant-tree-show-line"],hostVars:2,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-treenode-leaf-last",i.isLast&&i.isLeaf)}})}return o})(),O=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["nz-tree-node-toggle","nzTreeNodeNoopToggle",""],["","nzTreeNodeNoopToggle",""]],hostAttrs:[1,"ant-tree-switcher","ant-tree-switcher-noop"]})}return o})(),V=(()=>{class o extends _e{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,W.Ig)(t)}get isExpanded(){return this._treeNode.isExpanded}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.n5z(o)))(i||o)}})();static#t=this.\u0275dir=e.lG2({type:o,selectors:[["nz-tree-node-toggle",3,"nzTreeNodeNoopToggle",""],["","nzTreeNodeToggle",""]],hostAttrs:[1,"ant-tree-switcher"],hostVars:4,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-switcher_open",i.isExpanded)("ant-tree-switcher_close",!i.isExpanded)},inputs:{recursive:["nzTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:_e,useExisting:o}]),e.qOj]})}return o})(),J=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nz-icon","","nzTreeNodeToggleRotateIcon",""]],hostAttrs:[1,"ant-tree-switcher-icon"]})}return o})(),De=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nz-icon","","nzTreeNodeToggleActiveIcon",""]],hostAttrs:[1,"ant-tree-switcher-loading-icon"]})}return o})(),F=(()=>{class o extends ze{constructor(t,n,i,r){super(t,n),this.elementRef=t,this.tree=n,this.renderer=i,this.cdr=r,this.indents=[],this.disabled=!1,this.selected=!1,this.isLeaf=!1,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(t){this.indents=t,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#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.SBq),e.Y36(Y),e.Y36(e.Qsj),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-node",3,"builtin",""]],hostVars:4,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-treenode-switcher-open",i.isExpanded)("ant-tree-treenode-switcher-close",!i.isExpanded)},exportAs:["nzTreeNode"],features:[e._Bn([{provide:y,useExisting:o},{provide:ze,useExisting:o}]),e.qOj],ngContentSelectors:$e,decls:6,vars:2,consts:[[3,"indents",4,"ngIf"],["class","nz-tree-leaf-line-icon","nzTreeNodeNoopToggle","",4,"ngIf"],[3,"indents"],["nzTreeNodeNoopToggle","",1,"nz-tree-leaf-line-icon"],[1,"ant-tree-switcher-leaf-line"]],template:function(n,i){1&n&&(e.F$t(Ge),e.YNc(0,Qe,1,1,"nz-tree-node-indents",0),e.Hsn(1),e.YNc(2,Je,2,0,"nz-tree-node-toggle",1),e.Hsn(3,1),e.Hsn(4,2),e.Hsn(5,3)),2&n&&(e.Q6J("ngIf",i.indents.length),e.xp6(2),e.Q6J("ngIf",i.indents.length&&i.isLeaf))},dependencies:[x.O5,O,ve],encapsulation:2,changeDetection:0})}return o})(),R=(()=>{class o extends ae{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.n5z(o)))(i||o)}})();static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nzTreeNodeDef",""]],inputs:{when:["nzTreeNodeDefWhen","when"]},features:[e._Bn([{provide:ae,useExisting:o}]),e.qOj]})}return o})(),Ue=(()=>{class o{constructor(t){this._viewContainerRef=t,this._viewRef=null}ngOnChanges(t){if(this.shouldRecreateView(t)){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.data?i.createEmbeddedView(this.data.nodeDef.template,this.data.context):null,y.mostRecentTreeNode&&this._viewRef&&(y.mostRecentTreeNode.data=this.data.data)}else this._viewRef&&this.data.context&&this.updateExistingContext(this.data.context)}shouldRecreateView(t){const n=t.data;return n&&this.hasContextShapeChanged(n)}hasContextShapeChanged(t){const n=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(n.length===i.length){for(const r of i)if(-1===n.indexOf(r))return!0;return this.innerCompareBy(t.previousValue?.data??null)!==this.innerCompareBy(t.currentValue?.data??null)}return!0}get innerCompareBy(){return t=>null===t?t:this.compareBy?this.compareBy(t):t}updateExistingContext(t){for(const n of Object.keys(t))this._viewRef.context[n]=this.data.context[n]}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nzTreeVirtualScrollNodeOutlet",""]],inputs:{data:"data",compareBy:"compareBy"},features:[e.TTD]})}return o})(),te=(()=>{class o{constructor(t,n,i,r){this.ngZone=t,this.host=n,this.destroy$=i,this.treeNode=r,this.nzSelected=!1,this.nzDisabled=!1,this.nzClick=new e.vpe}get isExpanded(){return this.treeNode.isExpanded}ngOnChanges(t){const{nzDisabled:n,nzSelected:i}=t;n&&(n.currentValue?this.treeNode.disable():this.treeNode.enable()),i&&(i.currentValue?this.treeNode.select():this.treeNode.deselect())}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,I.R)(this.host.nativeElement,"click").pipe((0,p.h)(()=>!this.nzDisabled&&this.nzClick.observers.length>0),(0,q.R)(this.destroy$)).subscribe(t=>{this.ngZone.run(()=>this.nzClick.emit(t))}))}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(w.kn),e.Y36(F))};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-node-option"]],hostAttrs:[1,"ant-tree-node-content-wrapper"],hostVars:4,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-node-content-wrapper-open",i.isExpanded)("ant-tree-node-selected",i.nzSelected)},inputs:{nzSelected:"nzSelected",nzDisabled:"nzDisabled"},outputs:{nzClick:"nzClick"},features:[e._Bn([w.kn]),e.TTD],ngContentSelectors:We,decls:2,vars:0,consts:[[1,"ant-tree-title"]],template:function(n,i){1&n&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA())},encapsulation:2,changeDetection:0})}return(0,E.gn)([(0,h.yF)()],o.prototype,"nzSelected",void 0),(0,E.gn)([(0,h.yF)()],o.prototype,"nzDisabled",void 0),o})(),re=(()=>{class o{constructor(t,n){this.viewContainer=t,this._node=n}static#e=this.\u0275fac=function(n){return new(n||o)(e.Y36(e.s_b),e.Y36(ge,8))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nzTreeNodeOutlet",""]],features:[e._Bn([{provide:ie,useExisting:o}])]})}return o}
1)(),j=(()=>{class o extends pe{constructor(){super(...arguments),this._indent=24}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.n5z(o)))(i||o)}})();static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","nzTreeNodePadding",""]],inputs:{level:["nzTreeNodePadding","level"],indent:["nzTreeNodePaddingIndent","indent"]},features:[e._Bn([{provide:pe,useExisting:o}]),e.qOj]})}return o})(),G=(()=>{class o extends Y{constructor(){super(...arguments),this._afterViewInit=!1}ngAfterViewInit(){Promise.resolve().then(()=>{this._afterViewInit=!0,this.changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.n5z(o)))(i||o)}})();static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-view"]],viewQuery:function(n,i){if(1&n&&e.Gf(re,7),2&n){let r;e.iGM(r=e.CRH())&&(i.nodeOutlet=r.first)}},hostAttrs:[1,"ant-tree"],hostVars:6,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-block-node",i.nzDirectoryTree||i.nzBlockNode)("ant-tree-directory",i.nzDirectoryTree)("ant-tree-rtl","rtl"===i.dir)},exportAs:["nzTreeView"],features:[e._Bn([{provide:Q,useExisting:o},{provide:Y,useExisting:o}]),e.qOj],decls:3,vars:2,consts:[[1,"ant-tree-list-holder"],[1,"ant-tree-list-holder-inner"],["nzTreeNodeOutlet",""]],template:function(n,i){1&n&&(e.TgZ(0,"div",0)(1,"div",1),e.GkF(2,2),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("@.disabled",!i._afterViewInit||!(null==i.noAnimation||!i.noAnimation.nzNoAnimation))("@treeCollapseMotion",i._nodeOutlet.viewContainer.length))},dependencies:[re],encapsulation:2,data:{animation:[Pe.lx]},changeDetection:0})}return o})(),we=(()=>{class o extends Y{constructor(){super(...arguments),this.nzItemSize=28,this.nzMinBufferPx=140,this.nzMaxBufferPx=280,this.nodes=[],this.innerTrackBy=t=>t}ngOnChanges(t){t.trackBy&&(this.innerTrackBy="function"==typeof t.trackBy.currentValue?(n,i)=>this.trackBy(n,i.data):n=>n)}get compareBy(){const t=this.treeControl;return t.trackBy?t.trackBy:null}renderNodeChanges(t){this.nodes=new Array(...t).map((n,i)=>this.createNode(n,i)),this._dataSourceChanged.next(),this.changeDetectorRef.markForCheck()}createNode(t,n){const i=this._getNodeDef(t,n),r=new me(t);return r.level=this.treeControl.getLevel?this.treeControl.getLevel(t):0,{data:t,context:r,nodeDef:i}}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.n5z(o)))(i||o)}})();static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-tree-virtual-scroll-view"]],viewQuery:function(n,i){if(1&n&&(e.Gf(re,7),e.Gf(C.N7,7)),2&n){let r;e.iGM(r=e.CRH())&&(i.nodeOutlet=r.first),e.iGM(r=e.CRH())&&(i.virtualScrollViewport=r.first)}},hostAttrs:[1,"ant-tree"],hostVars:6,hostBindings:function(n,i){2&n&&e.ekj("ant-tree-block-node",i.nzDirectoryTree||i.nzBlockNode)("ant-tree-directory",i.nzDirectoryTree)("ant-tree-rtl","rtl"===i.dir)},inputs:{nzItemSize:"nzItemSize",nzMinBufferPx:"nzMinBufferPx",nzMaxBufferPx:"nzMaxBufferPx",trackBy:"trackBy"},exportAs:["nzTreeVirtualScrollView"],features:[e._Bn([{provide:Y,useExisting:o},{provide:Q,useExisting:o}]),e.qOj,e.TTD],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(n,i){1&n&&(e.TgZ(0,"div",0)(1,"cdk-virtual-scroll-viewport",1),e.YNc(2,je,2,2,"ng-container",2),e.qZA()(),e.GkF(3,3)),2&n&&(e.xp6(1),e.Q6J("itemSize",i.nzItemSize)("minBufferPx",i.nzMinBufferPx)("maxBufferPx",i.nzMaxBufferPx),e.xp6(1),e.Q6J("cdkVirtualForOf",i.nodes)("cdkVirtualForTrackBy",i.innerTrackBy))},dependencies:[C.xd,C.x0,C.N7,re,Ue],encapsulation:2,changeDetection:0})}return o})(),et=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({imports:[N.vT,x.ez,v.g,C.Cl]})}return o})();class K{constructor(s,t,n,i){this.transformFunction=s,this.getLevel=t,this.isExpandable=n,this.getChildren=i}flattenNode(s,t,n,i){const r=this.transformFunction(s,t);if(n.push(r),this.isExpandable(r)){const a=this.getChildren(s);a&&(Array.isArray(a)?this.flattenChildren(a,t,n,i):a.pipe((0,z.q)(1)).subscribe(T=>{this.flattenChildren(T,t,n,i)}))}return n}
1flattenChildren(s,t,n,i){s.forEach((r,a)=>{const T=i.slice();T.push(a!==s.length-1),this.flattenNode(r,t+1,n,T)})}flattenNodes(s){const t=[];return s.forEach(n=>this.flattenNode(n,0,t,[])),t}expandFlattenedNodes(s,t){const n=[],i=[];return i[0]=!0,s.forEach(r=>{let a=!0;for(let T=0;T<=this.getLevel(r);T++)a=a&&i[T];a&&n.push(r),this.isExpandable(r)&&(i[this.getLevel(r)+1]=t.isExpanded(r))}),n}}class X extends Z.o2{constructor(s,t,n=[]){super(),this._treeControl=s,this._treeFlattener=t,this._flattenedData=new _.X([]),this._expandedData=new _.X([]),this._data=new _.X(n),this.flatNodes()}setData(s){this._data.next(s),this.flatNodes()}getData(){return this._data.getValue()}connect(s){const t=[s.viewChange,this._treeControl.expansionModel.changed.asObservable(),this._flattenedData.asObservable()];return(0,$.T)(...t).pipe((0,g.U)(()=>(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}}const tt=[et,m.PV,P.Wr,f.o7,U.m,l.sL,v.g,S.C];var de=d(379),ce=d(5393),Ne=d(8101),le=d(3185),be=d(8332),B=d(1687);function nt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3),e._UZ(1,"nz-tree-node-toggle",4),e.TgZ(2,"nz-tree-node-option",5),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.selectListSelection.toggle(r))}),e._uU(3),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Q6J("nzDisabled",t.disabled)("nzSelected",n.selectListSelection.isSelected(t)),e.xp6(1),e.hij(" ",t.name," ")}}function ot(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),e._UZ(2,"span",6),e.qZA(),e.TgZ(3,"nz-tree-node-option",5),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.selectListSelection.toggle(r))}),e._uU(4),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(3),e.Q6J("nzDisabled",t.disabled)("nzSelected",n.selectListSelection.isSelected(t)),e.xp6(1),e.hij(" ",t.name," ")}}const it=[{name:"parent 1",children:[{name:"parent 1-0",disabled:!0,children:[{name:"leaf"},{name:"leaf"}]},{name:"parent 1-1",children:[{name:"leaf"}]}]}];let xe=(()=>{class o{constructor(){this.transformer=(t,n)=>({expandable:!!t.children&&t.children.length>0,name:t.name,level:n,disabled:!!t.disabled}),this.selectListSelection=new Z.Ov(!0),this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.dataSource.setData(it),this.treeControl.expandAll()}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-basic"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"nzDisabled","nzSelected","nzClick"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-view",0),e.YNc(1,nt,4,3,"nz-tree-node",1)(2,ot,5,3,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[m.Ls,G,R,F,V,j,J,te,O,B.w],encapsulation:2})}return o})();function rt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3),e._UZ(1,"nz-tree-node-toggle",4),e.TgZ(2,"nz-tree-node-checkbox",5),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.leafItemSelectionToggle(r))}),e.qZA(),e.TgZ(3,"nz-tree-node-option",6),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.leafItemSelectionToggle(r))}),e._uU(4),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Q6J("nzDisabled",t.disabled)("nzChecked",n.checklistSelection.isSelected(t)),e.xp6(1),e.Q6J("nzDisabled",t.disabled),e.xp6(1),e.hij(" ",t.name," ")}}function st(o,s){if(1&o){const t=e.EpF();
1e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),e._UZ(2,"span",7),e.qZA(),e.TgZ(3,"nz-tree-node-checkbox",8),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.itemSelectionToggle(r))}),e.qZA(),e.TgZ(4,"nz-tree-node-option",6),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.itemSelectionToggle(r))}),e._uU(5),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(3),e.Q6J("nzDisabled",t.disabled)("nzChecked",n.descendantsAllSelected(t))("nzIndeterminate",n.descendantsPartiallySelected(t)),e.xp6(1),e.Q6J("nzDisabled",t.disabled),e.xp6(1),e.hij(" ",t.name," ")}}const at=[{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"}]}]}];let Ee=(()=>{class o{constructor(){this.transformer=(t,n)=>{const i=this.nestedNodeMap.get(t),r=i&&i.name===t.name?i:{expandable:!!t.children&&t.children.length>0,name:t.name,level:n,disabled:!!t.disabled};return this.flatNodeMap.set(r,t),this.nestedNodeMap.set(t,r),r},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.checklistSelection=new Z.Ov(!0),this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.dataSource.setData(at)}descendantsAllSelected(t){const n=this.treeControl.getDescendants(t);return n.length>0&&n.every(i=>this.checklistSelection.isSelected(i))}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(r=>this.checklistSelection.isSelected(r))&&!this.descendantsAllSelected(t)}leafItemSelectionToggle(t){this.checklistSelection.toggle(t),this.checkAllParentsSelection(t)}itemSelectionToggle(t){this.checklistSelection.toggle(t);const n=this.treeControl.getDescendants(t);this.checklistSelection.isSelected(t)?this.checklistSelection.select(...n):this.checklistSelection.deselect(...n),n.forEach(i=>this.checklistSelection.isSelected(i)),this.checkAllParentsSelection(t)}checkAllParentsSelection(t){let n=this.getParentNode(t);for(;n;)this.checkRootNodeSelection(n),n=this.getParentNode(n)}checkRootNodeSelection(t){const n=this.checklistSelection.isSelected(t),i=this.treeControl.getDescendants(t),r=i.length>0&&i.every(a=>this.checklistSelection.isSelected(a));n&&!r?this.checklistSelection.deselect(t):!n&&r&&this.checklistSelection.select(t)}getParentNode(t){const n=t.level;if(n<1)return null;for(let r=this.treeControl.dataNodes.indexOf(t)-1;r>=0;r--){const a=this.treeControl.dataNodes[r];if(a.level<n)return a}return null}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-checkbox"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"nzDisabled","nzChecked","nzClick"],[3,"nzDisabled","nzClick"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""],[3,"nzDisabled","nzChecked","nzIndeterminate","nzClick"]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-view",0),e.YNc(1,rt,5,4,"nz-tree-node",1)(2,st,6,5,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[m.Ls,G,R,F,V,j,J,te,O,fe,B.w],encapsulation:2})}return o})();function dt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3),e._UZ(1,"nz-tree-node-toggle",4),e.TgZ(2,"nz-tree-node-option",5),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.selectListSelection.toggle(r))}),e._UZ(3,"span",6),e._uU(4),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Q6J("nzDisabled",t.disabled)("nzSelected",n.selectListSelection.isSelected(t)),e.xp6(2),e.hij(" ",t.name," ")}}function ct(o,s){if(1&o){const t=e.EpF();
1e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),e._UZ(2,"span",7),e.qZA(),e.TgZ(3,"nz-tree-node-option",5),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.selectListSelection.toggle(r))}),e._UZ(4,"span",8),e._uU(5),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(3),e.Q6J("nzDisabled",t.disabled)("nzSelected",n.selectListSelection.isSelected(t)),e.xp6(1),e.Q6J("nzType",n.treeControl.isExpanded(t)?"folder-open":"folder"),e.xp6(1),e.hij(" ",t.name," ")}}const lt=[{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"}]}]}];let ke=(()=>{class o{constructor(){this.transformer=(t,n)=>({expandable:!!t.children&&t.children.length>0,name:t.name,level:n,disabled:!!t.disabled}),this.selectListSelection=new Z.Ov,this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.dataSource.setData(lt)}ngAfterViewInit(){setTimeout(()=>{this.treeControl.expand(this.getNode("Vegetables"))},300)}getNode(t){return this.treeControl.dataNodes.find(n=>n.name===t)||null}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,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,"nzDisabled","nzSelected","nzClick"],["nz-icon","","nzType","file","nzTheme","outline"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-view",0),e.YNc(1,dt,5,3,"nz-tree-node",1)(2,ct,6,4,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource)("nzDirectoryTree",!0),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[m.Ls,G,R,F,V,j,J,te,O,B.w],encapsulation:2})}return o})();var ut=d(5177),ht=d(9397);function gt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",3),e._uU(1),e.qZA()),2&o){const t=s.$implicit;e.xp6(1),e.hij(" ",t.label," ")}}function pt(o,s){1&o&&(e.TgZ(0,"nz-tree-node-toggle"),e._UZ(1,"span",6),e.qZA())}function _t(o,s){1&o&&(e.TgZ(0,"nz-tree-node-toggle",7),e._UZ(1,"span",8),e.qZA())}function zt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",3),e.YNc(1,pt,2,0,"nz-tree-node-toggle",4)(2,_t,2,0,"nz-tree-node-toggle",5),e._uU(3),e.qZA()),2&o){const t=s.$implicit;e.xp6(1),e.Q6J("ngIf",!t.loading),e.xp6(1),e.Q6J("ngIf",t.loading),e.xp6(1),e.hij(" ",t.label," ")}}const Tt=[{id:0,label:"Expand to load",level:0,expandable:!0},{id:1,label:"Expand to load",level:0,expandable:!0}];class mt{constructor(s,t){this.treeControl=s,this.childrenLoadedSet=new Set,this.flattenedData=new _.X(t),s.dataNodes=t}connect(s){const t=[s.viewChange,this.treeControl.expansionModel.changed.pipe((0,ht.b)(n=>this.handleExpansionChange(n))),this.flattenedData.asObservable()];return(0,$.T)(...t).pipe((0,g.U)(()=>this.expandFlattenedNodes(this.flattenedData.getValue())))}expandFlattenedNodes(s){const t=this.treeControl,n=[],i=[];return i[0]=!0,s.forEach(r=>{let a=!0;for(let T=0;T<=t.getLevel(r);T++)a=a&&i[T];a&&n.push(r),t.isExpandable(r)&&(i[t.getLevel(r)+1]=t.isExpanded(r))}),n}handleExpansionChange(s){s.added&&s.added.forEach(t=>this.loadChildren(t))}loadChildren(s){this.childrenLoadedSet.has(s)||(s.loading=!0,function Zt(o){return(0,M.of)([{id:Date.now(),label:`Child Node (level-${o.level+1})`,level:o.level+1,expandable:!0},{id:Date.now(),label:`Child Node (level-${o.level+1})`,level:o.level+1,expandable:!0},{id:Date.now(),label:`Leaf Node (level-${o.level+1})`,level:o.level+1,expandable:!1}]).pipe((0,ut.g)(500))}(s).subscribe(t=>{s.loading=!1;const n=this.flattenedData.getValue(),i=n.indexOf(s);-1!==i&&(n.splice(i+1,0,...t),this.childrenLoadedSet.add(s)),this.flattenedData.next(n)}))}disconnect(){this.flattenedData.complete()}}let qe=(()=>{class o{constructor(){this.treeControl=new H(t=>t.level,t=>t.expandable),this.dataSource=new mt(this.treeControl,Tt),this.hasChild=(t,n)=>n.expandable}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-dynamic"]],decls:3,vars:3,consts:[[3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodePadding",""],[4,"ngIf"],["nzTreeNodeNoopToggle","",4,"ngIf"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nzTreeNodeNoopToggle",""],["nz-icon","","nzType","loading","nzTreeNodeToggleActiveIcon",""]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-view",0),e.YNc(1,gt,2,1,"nz-tree-node",1)(2,zt,4,3,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[x.O5,m.Ls,G,R,F,V,j,J,De,O,B.w],encapsulation:2})}return o}
1)();var ft=d(2987);function Ct(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-option",4),e.NdJ("nzClick",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.selectListSelection.toggle(r))}),e._uU(2),e.qZA(),e.TgZ(3,"button",5),e.NdJ("click",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.delete(r))}),e._UZ(4,"span",6),e.qZA()()}if(2&o){const t=s.$implicit,n=e.oxw();e.xp6(1),e.Q6J("nzDisabled",t.disabled)("nzSelected",n.selectListSelection.isSelected(t)),e.xp6(1),e.hij(" ",t.name," ")}}function At(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3),e._UZ(1,"input",7,8),e._uU(3," \xa0 "),e.TgZ(4,"button",9),e.NdJ("click",function(){const r=e.CHM(t).$implicit,a=e.MAs(2),T=e.oxw();return e.KtG(T.saveNode(r,a.value))}),e._uU(5,"Add"),e.qZA()()}}function vt(o,s){if(1&o){const t=e.EpF();e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),e._UZ(2,"span",10),e.qZA(),e._uU(3),e.TgZ(4,"button",5),e.NdJ("click",function(){const r=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.addNewNode(r))}),e._UZ(5,"span",11),e.qZA()()}if(2&o){const t=s.$implicit;e.xp6(3),e.hij(" ",t.name," ")}}const Dt=[{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"}]}];let ye=(()=>{class o{constructor(){this.transformer=(t,n)=>{const i=this.nestedNodeMap.get(t),r=i&&i.key===t.key?i:{expandable:!!t.children&&t.children.length>0,name:t.name,level:n,key:t.key};return r.name=t.name,this.flatNodeMap.set(r,t),this.nestedNodeMap.set(t,r),r},this.treeData=Dt,this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectListSelection=new Z.Ov(!0),this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.hasNoContent=(t,n)=>""===n.name,this.trackBy=(t,n)=>`${n.key}-${n.name}`,this.dataSource.setData(this.treeData),this.treeControl.expandAll()}delete(t){const n=this.flatNodeMap.get(t),r=(()=>{const a=[...this.treeData];for(;a.length>0;){const T=a.pop();if(T.children){if(T.children.find(b=>b===n))return T;for(let b=T.children.length-1;b>=0;b--)a.push(T.children[b])}}return null})();r&&r.children&&(r.children=r.children.filter(a=>a!==n)),this.dataSource.setData(this.treeData)}addNewNode(t){const n=this.flatNodeMap.get(t);n&&(n.children=n.children||[],n.children.push({name:"",key:`${n.key}-${n.children.length}`}),this.dataSource.setData(this.treeData),this.treeControl.expand(t))}saveNode(t,n){const i=this.flatNodeMap.get(t);i&&(i.name=n,this.dataSource.setData(this.treeData))}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-editable"]],decls:4,vars:5,consts:[[3,"nzTreeControl","nzDataSource","trackBy"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodeIndentLine",""],[3,"nzDisabled","nzSelected","nzClick"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nz-icon","","nzType","minus","nzTheme","outline"],["nz-input","","placeholder","Input node name","nzSize","small"],["inputElement",""],["nz-button","","nzSize","small",3,"click"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-view",0),e.YNc(1,Ct,5,3,"nz-tree-node",1)(2,At,6,0,"nz-tree-node",2)(3,vt,6,1,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource)("trackBy",i.trackBy),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasNoContent),e.xp6(1),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[m.Ls,G,R,F,V,J,te,Te,f.Zp,l.ix,B.w,ft.dQ]})}return o})();var se=d(6223);function Ut(o,s){1&o&&(e.TgZ(0,"nz-tree-node-toggle",6),e._UZ(1,"span",7),e.qZA())}function wt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",4),e.YNc(1,Ut,2,0,"nz-tree-node-toggle",5),e.TgZ(2,"
1nz-tree-node-option"),e._uU(3),e.qZA()()),2&o){const t=s.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showLeafIcon),e.xp6(2),e.hij(" ",t.name," ")}}function Nt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",4)(1,"nz-tree-node-toggle"),e._UZ(2,"span",8),e.qZA(),e.TgZ(3,"nz-tree-node-option"),e._uU(4),e.qZA()()),2&o){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Q6J("nzType",n.treeControl.isExpanded(t)?"minus-square":"plus-square"),e.xp6(2),e.hij(" ",t.name," ")}}const bt=[{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"}]}];let Fe=(()=>{class o{constructor(){this.transformer=(t,n)=>({expandable:!!t.children&&t.children.length>0,name:t.name,level:n}),this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.showLeafIcon=!1,this.hasChild=(t,n)=>n.expandable,this.dataSource.setData(bt)}ngAfterViewInit(){this.treeControl.expandAll()}getNode(t){return this.treeControl.dataNodes.find(n=>n.name===t)||null}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-line"]],decls:5,vars:4,consts:[[3,"ngModel","ngModelChange"],[3,"nzTreeControl","nzDataSource"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef"],["nzTreeNodeIndentLine","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nzTreeNodeIndentLine",""],["nzTreeNodeNoopToggle","",4,"ngIf"],["nzTreeNodeNoopToggle",""],["nz-icon","","nzType","file","nzTheme","outline"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(n,i){1&n&&(e._uU(0," Show Leaf Icon: "),e.TgZ(1,"nz-switch",0),e.NdJ("ngModelChange",function(a){return i.showLeafIcon=a}),e.qZA(),e.TgZ(2,"nz-tree-view",1),e.YNc(3,wt,4,2,"nz-tree-node",2)(4,Nt,5,2,"nz-tree-node",3),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngModel",i.showLeafIcon),e.xp6(1),e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[x.O5,se.JJ,se.On,m.Ls,G,R,F,V,te,O,Te,U.i,B.w],encapsulation:2})}return o})();var xt=d(2572);function Et(o,s){1&o&&e._UZ(0,"span",6)}function kt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",7),e._UZ(1,"nz-tree-node-toggle",8)(2,"span",9),e.ALo(3,"nzHighlight"),e.qZA()),2&o){const t=s.$implicit,n=e.oxw();e.xp6(2),e.Q6J("innerHTML",e.gM2(3,1,t.name,n.searchValue,"i","highlight"),e.oJD)}}function qt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",7)(1,"nz-tree-node-toggle"),e._UZ(2,"span",10),e.qZA(),e._UZ(3,"span",9),e.ALo(4,"nzHighlight"),e.qZA()),2&o){const t=s.$implicit,n=e.oxw();e.xp6(3),e.Q6J("innerHTML",e.gM2(4,1,t.name,n.searchValue,"i","highlight"),e.oJD)}}const yt=[{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"}]}]}];class Be{constructor(s,t=[]){this.treeData=s,this.needsToExpanded=t}}let Se=(()=>{class o{constructor(){this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.expandedNodes=[],this.searchValue="",this.originData$=new _.X(yt),this.searchValue$=new _.X(""),this.transformer=(t,n)=>{const i=this.nestedNodeMap.get(t),r=i&&i.name===t.name?i:{expandable:!!t.children&&t.children.length>0,name:t.name,level:n};return this.flatNodeMap.set(r,t),this.nestedNodeMap.set(t,r),r},this.treeControl=new H(t=>t.level,t=>t.expandable,{trackBy:t=>this.flatNodeMap.get(t)}),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.filteredData$=(0,xt.a)([this.originData$,this.searchValue$.pipe((0,u.e)(300),(0,g.U)(t=>this.searchValue=t))]).pipe((0,g.U)(([t,n])=>n?function Ft(o,s){const t=new Set,n=(r,a)=>{if(-1!==r.name.search(s))return a.push(r),a;if(Array.isArray(r.children)){const T=r.children.reduce((b,ne)=>n(ne,b),[]);if(T.length){const b={...r,children:T};t.add(b),a.push(b)}}return a},i=o.reduce((r,a)=>n(a,r),[]);return new Be(i,[...t])}(t,n):new Be(t))),this.hasChild=(t,n)=>n.expandable,this.filteredData$.subscribe(t=>{this.dataSource.setData(t.treeData),this.searchValue?(0===this.expandedNodes.length&&(this.expandedNodes=this.treeControl.expansionModel.selected,this.treeControl.expansionModel.clear()),this.treeControl.expansionModel.select(...t.needsToExpanded)):this.expandedNodes.length&&(this.treeControl.expansionModel.clear(),this.treeControl.expansionModel.select(...this.expandedNodes),this.expandedNodes=[])})}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view-search"]],decls:7,vars:4,consts:[[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search","ngModel","",3,"ngModelChange"],["suffixIcon",""],["nzNoAnimation","",3,"nzTreeControl","nzDataSource"],["nzTreeNodePadding","",4,"nzTreeNodeDef"],["nzTreeNodePadding","",4,"nzTreeNodeDef","nzTreeNodeDefWhen"],["nz-icon","","nzType","search"],["nzTreeNodePadding",""],["nzTreeNodeNoopToggle",""],[3,"innerHTML"],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(n,i){if
1(1&n&&(e.TgZ(0,"nz-input-group",0)(1,"input",1),e.NdJ("ngModelChange",function(a){return i.searchValue$.next(a)}),e.qZA()(),e.YNc(2,Et,1,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-tree-view",3),e.YNc(5,kt,4,6,"nz-tree-node",4)(6,qt,5,6,"nz-tree-node",5),e.qZA()),2&n){const r=e.MAs(3);e.Q6J("nzSuffix",r),e.xp6(4),e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild)}},dependencies:[se.Fj,se.JJ,se.On,m.Ls,G,R,F,V,j,J,O,f.Zp,f.gB,f.ke,B.w,v.P,S.U],styles:["nz-input-group[_ngcontent-%COMP%]{margin-bottom:8px}  .highlight{color:red}"]})}return o})();function Bt(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",3),e._UZ(1,"nz-tree-node-toggle",4),e._uU(2),e.qZA()),2&o){const t=s.$implicit;e.xp6(2),e.hij(" ",t.name," ")}}function St(o,s){if(1&o&&(e.TgZ(0,"nz-tree-node",3)(1,"nz-tree-node-toggle"),e._UZ(2,"span",5),e.qZA(),e._uU(3),e.qZA()),2&o){const t=s.$implicit;e.xp6(3),e.hij(" ",t.name," ")}}const It=function Ie(o="0",s=3){const t=[];for(let n=0;n<10;n+=1){const i=`${o}-${n}`,r={name:i};s>0&&(r.children=Ie(i,s-1)),t.push(r)}return t}();let Me=(()=>{class o{constructor(){this.transformer=(t,n)=>({expandable:!!t.children&&t.children.length>0,name:t.name,level:n}),this.treeControl=new H(t=>t.level,t=>t.expandable),this.treeFlattener=new K(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new X(this.treeControl,this.treeFlattener),this.hasChild=(t,n)=>n.expandable,this.dataSource.setData(It),this.treeControl.expandAll()}getNode(t){return this.treeControl.dataNodes.find(n=>n.name===t)||null}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,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",""],["nz-icon","","nzType","caret-down","nzTreeNodeToggleRotateIcon",""]],template:function(n,i){1&n&&(e.TgZ(0,"nz-tree-virtual-scroll-view",0),e.YNc(1,Bt,3,1,"nz-tree-node",1)(2,St,4,1,"nz-tree-node",2),e.qZA()),2&n&&(e.Q6J("nzTreeControl",i.treeControl)("nzDataSource",i.dataSource),e.xp6(2),e.Q6J("nzTreeNodeDefWhen",i.hasChild))},dependencies:[m.Ls,R,F,V,j,J,O,we,B.w],styles:[".virtual-scroll-tree[_ngcontent-%COMP%]{height:200px}"]})}return o})(),Mt=(()=>{class o{constructor(){this.expanded=!1}goLink(t){window&&(window.location.hash=t)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(t=>{t.nzExpanded=this.expanded,t.expandCode(this.expanded),t.check()})}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view"]],viewQuery:function(n,i){if(1&n&&e.Gf(de.G,5),2&n){let r;e.iGM(r=e.CRH())&&(i.codeBoxes=r)}},decls:708,vars:39,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["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"],["nz-icon","","nzType","edit"],["id","\u4f55\u65f6\u4f7f\u7528"],["onclick","window.location.hash = '\u4f55\u65f6\u4f7f\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","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","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","nzIframeHeight","nzHref"],["nzTitle","\u5e26\u8fde\u63a5\u7ebf\u7684\u6811","nzSelector","nz-demo-tree-view-l
1ine","nzGenerateCommand","ng g ng-zorro-antd:tree-view-line <name>","nzComponentName","NzDemoTreeViewLineComponent","nzIframeSource","null",3,"nzId","nzLink","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","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","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","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","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>","nzComponentName","NzDemoTreeViewVirtualScrollComponent","nzIframeSource","null",3,"nzId","nzLink","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","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-toggle[nztreenodenooptoggle]"],["onclick","window.location.hash = 'nz-tree-node-toggle[nztreenodenooptoggle]'",1,"anchor"],["id","[nz-icon][nztreenodetogglerotateicon]"],["onclick","window.location.hash = '[nz-icon][nztreenodetogglerotateicon]'",1,"anchor"],["id","[nz-icon][nztreenodetoggleactiveicon]"],["onclick","window.location.hash = '[nz-icon][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","<strong>nztreeflatdatasource-extends-datasource</strong>"],["onclick","window.location.hash = '<strong>nztreeflatdatasource-extends-datasource</strong>'",1,"anchor"],["id","\u6784\u9020\u53c2\u6570"],["onclick","window.location.hash = '\u6784\u9020\u53c2\u6570'",1,"anchor"],["id","\u65b9\u6cd5"],["onclick","window.location.hash = '\u65b9\u6cd5'",1,"anchor"],["id","<strong>nztreeflattener</strong>"],["onclick","window.location.hash = '<strong>nztreeflattener</strong>'",1,"anchor"]],template:function(n,i){1&n&&(e.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),e.NdJ("nzClick",function(a){return i.goLink(a)}),e._UZ(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),e.qZA()(),e.TgZ(12,"section",11)(13,"h1"),e._uU(14,"Tree View"),e.TgZ(15,"span",12),e._uU(16,"\u6811\u89c6\u56fe"),e.qZA(),e._UZ(17,"span",13),e.TgZ(18,"a",14),e._UZ(19,"span",15),e.qZA()(),e.TgZ(20,"section",11),e.IAx(),e.TgZ(21,"h2",16)(22,"span"),e._uU(23,"\u4f55\u65f6\u4f7f\u7528"),e.qZA(),e.TgZ(24,"a",17),e._uU(25,"#"),e.qZA()(),e.TgZ(26,"p"),e._uU(27,"\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\u76f8\u6bd4\u5c01\u88c5\u597d\u7684 Tree \u7ec4\u4ef6\u5177\u6709\u66f4\u9ad8\u7684\u5b9a\u5236\u5ea6\u548c\u66f4\u597d\u7684\u6027\u80fd\u3002"),e.qZA(),e.TgZ(28,"pre",18)(29,"code")(30,"span",19),e._uU(31,"import"),e.qZA(),e._uU(32," "),e.TgZ(33,"span",20),e._uU(34,"{"),e.qZA(),e._uU(35," NzTreeViewModule "),e.TgZ(36,"span",20),e._uU(37,"}"),e.qZA(),e._uU(38," "),e.TgZ(39,"span",19),e._uU(40,"from"),e.qZA(),e._uU(41," "),e.TgZ(42,"span",21),e._uU(43,"'ng-zorro-antd/tree-view'"),e.qZA(),e.TgZ(44,"span",20),e._uU(45,";"),e.qZA()()(),e.fQ9(),e.qZA(),e.TgZ(46,"h2")(47,"span"),e._uU(48,"\u4ee3\u7801\u6f14\u793a"),e.qZA(),e.TgZ(49,"span",22),e.NdJ("click",function(){return i.expandAllCode()}),e.qZA()()(),e.TgZ(50,"div",23)(51,"div",24)(52,"nz-code-box",25),e._UZ(53,"nz-demo-tree-view-basic",26),e.TgZ(54,"div",27),e.IAx(),e.TgZ(55,"p"),e._uU(56,"\u6700\u7b80\u5355\u7684\u7528\u6cd5\uff0c\u9009\u4e2d\uff0c\u7981\u7528\uff0c\u5c55\u5f00\u7b49\u529f\u80fd\u3002"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(57,"nz-code-box",28),e._UZ(58,"nz-demo-tree-view-directory",26),e.TgZ(59,"div",27),e.IAx(),e.TgZ(60,"p"),e._uU(61,"\u76ee\u5f55\u6811"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(62,"nz-code-box",29),e._UZ(63,"nz-demo-tree-view-l
1ine",26),e.TgZ(64,"div",27),e.IAx(),e.TgZ(65,"p"),e._uU(66,"\u8282\u70b9\u4e4b\u95f4\u5e26\u8fde\u63a5\u7ebf\u7684\u6811\uff0c\u5e38\u7528\u4e8e\u6587\u4ef6\u76ee\u5f55\u7ed3\u6784\u5c55\u793a\u3002"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(67,"nz-code-box",30),e._UZ(68,"nz-demo-tree-view-search",26),e.TgZ(69,"div",27),e.IAx(),e.TgZ(70,"p"),e._uU(71,"\u53ef\u641c\u7d22\u7684\u6811\u3002"),e.qZA(),e.fQ9(),e.qZA()()(),e.TgZ(72,"div",24)(73,"nz-code-box",31),e._UZ(74,"nz-demo-tree-view-checkbox",26),e.TgZ(75,"div",27),e.IAx(),e.TgZ(76,"p"),e._uU(77,"\u5e26\u9009\u62e9\u6846\u7684\u6811\u3002"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(78,"nz-code-box",32),e._UZ(79,"nz-demo-tree-view-dynamic",26),e.TgZ(80,"div",27),e.IAx(),e.TgZ(81,"p"),e._uU(82,"\u70b9\u51fb\u5c55\u5f00\u8282\u70b9\uff0c\u52a8\u6001\u52a0\u8f7d\u6570\u636e\u3002"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(83,"nz-code-box",33),e._UZ(84,"nz-demo-tree-view-editable",26),e.TgZ(85,"div",27),e.IAx(),e.TgZ(86,"p"),e._uU(87,"\u5e26\u6dfb\u52a0\u548c\u5220\u9664\u529f\u80fd\u7684\u6811\u3002"),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(88,"nz-code-box",34),e._UZ(89,"nz-demo-tree-view-virtual-scroll",26),e.TgZ(90,"div",27),e.IAx(),e.TgZ(91,"p"),e._uU(92,"\u4f7f\u7528\u865a\u62df\u6eda\u52a8\u3002"),e.qZA(),e.fQ9(),e.qZA()()()(),e.TgZ(93,"section",35),e.IAx(),e.TgZ(94,"h2",36)(95,"span"),e._uU(96,"API"),e.qZA(),e.TgZ(97,"a",37),e._uU(98,"#"),e.qZA()(),e.TgZ(99,"h3",38)(100,"span"),e._uU(101,"nz-tree-view"),e.qZA(),e.TgZ(102,"label",39),e._uU(103,"component"),e.qZA(),e.TgZ(104,"a",40),e._uU(105,"#"),e.qZA()(),e.TgZ(106,"table")(107,"thead")(108,"tr")(109,"th"),e._uU(110,"\u53c2\u6570"),e.qZA(),e.TgZ(111,"th"),e._uU(112,"\u8bf4\u660e"),e.qZA(),e.TgZ(113,"th"),e._uU(114,"\u7c7b\u578b"),e.qZA(),e.TgZ(115,"th"),e._uU(116,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(117,"tbody")(118,"tr")(119,"td"),e._uU(120,"[nzTreeControl]"),e.qZA(),e.TgZ(121,"td"),e._uU(122,"\u6811\u63a7\u5236\u5668"),e.qZA(),e.TgZ(123,"td")(124,"a",41),e._uU(125,"TreeControl"),e.qZA()(),e.TgZ(126,"td"),e._uU(127,"-"),e.qZA()(),e.TgZ(128,"tr")(129,"td"),e._uU(130,"[nzDataSource]"),e.qZA(),e.TgZ(131,"td"),e._uU(132,"\u7528\u4e8e\u6e32\u67d3\u6811\u7684\u6570\u7ec4\u6570\u636e"),e.qZA(),e.TgZ(133,"td")(134,"a",42),e._uU(135,"DataSource"),e.qZA(),e._uU(136,"<T>"),e.qZA(),e.TgZ(137,"td"),e._uU(138,"Observable<T[]>"),e.qZA()(),e.TgZ(139,"tr")(140,"td"),e._uU(141,"[nzDirectoryTree]"),e.qZA(),e.TgZ(142,"td"),e._uU(143,"\u8282\u70b9\u662f\u5426\u4ee5\u6587\u4ef6\u5939\u6837\u5f0f\u663e\u793a"),e.qZA(),e.TgZ(144,"td"),e._uU(145,"boolean"),e.qZA(),e.TgZ(146,"td")(147,"code"),e._uU(148,"false"),e.qZA()()(),e.TgZ(149,"tr")(150,"td"),e._uU(151,"[nzBlockNode]"),e.qZA(),e.TgZ(152,"td"),e._uU(153,"\u8282\u70b9\u662f\u5426\u5360\u636e\u6574\u884c"),e.qZA(),e.TgZ(154,"td"),e._uU(155,"boolean"),e.qZA(),e.TgZ(156,"td")(157,"code"),e._uU(158,"false"),e.qZA()()()()(),e.TgZ(159,"h3",43)(160,"span"),e._uU(161,"nz-tree-virtual-scroll-view"),e.qZA(),e.TgZ(162,"label",39),e._uU(163,"component"),e.qZA(),e.TgZ(164,"a",44),e._uU(165,"#"),e.qZA()(),e.TgZ(166,"p"),e._uU(167,"\u865a\u62df\u6eda\u52a8\u7684\u6811\u89c6\u56fe\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec4\u4ef6\u5b9e\u4f8b\u4e0a\u7684 "),e.TgZ(168,"code"),e._uU(169,"virtualScrollViewport"),e.qZA(),e._uU(170," \u6210\u5458\u8bbf\u95ee "),e.TgZ(171,"a",45),e._uU(172,"CdkVirtualScrollViewport"),e.qZA(),e._uU(173," \u5b9e\u4f8b\u3002"),e.qZA(),e.TgZ(174,"table")(175,"thead")(176,"tr")(177,"th"),e._uU(178,"\u53c2\u6570"),e.qZA(),e.TgZ(179,"th"),e._uU(180,"\u8bf4\u660e"),e.qZA(),e.TgZ(181,"th"),e._uU(182,"\u7c7b\u578b"),e.qZA(),e.TgZ(183,"th"),e._uU(184,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(185,"tbody")(186,"tr")(187,"td"),e._uU(188,"[nzTreeControl]"),e.qZA(),e.TgZ(189,"td"),e._uU(190,"\u6811\u63a7\u5236\u5668"),e.qZA(),e.TgZ(191,"td")(192,"a",41),e._uU(193,"TreeControl"),e.qZA()(),e.TgZ(194,"td"),e._uU(195,"-"),e.qZA()(),e.TgZ(196,"tr")(197,"td"),e._uU(198,"[nzDataSource]"),e.qZA(),e.TgZ(199,"td"),e._uU(200,"\u7528\u4e8e\u6e32\u67d3\u6811\u7684\u6570\u7ec4\u6570\u636e"),e.qZA(),e.TgZ(201,"td")(202,"a",42),e._uU(203,"DataSource"),e.qZA(),e._uU(204,"<T>"),e.qZA(),e.TgZ(205,"td"),e._uU(206,"Observable<T[]>"),e.qZA()(),e.TgZ(207,"tr")(208,"td"),e._uU(209,"[nzDirectoryTree]"),e.qZA(),e.TgZ(210,"td"),e._uU(211,"\u8282\u70b9\u662f\u5426\u4ee5\u6587\u4ef6\u5939\u6837\u5f0f\u663e\u793a"),e.qZA(),e.TgZ(212,"td")(213,"code"),e._uU(214,"boolean"),e.qZA()(),e.TgZ(215,"td")(216,"code"),e._uU(217,"false"),e.qZA()()(),e.TgZ(218,"tr")(219,"td"),e._uU(220,"[nzBlockNode]"),e.qZA(),e.TgZ(221,"td"),e._uU(222,"\u8282\u70b9\u662f\u5426\u5360\u636e\u6574\u884c"),e.qZA(),e.TgZ(223,"td")(224,"code"),e._uU(225,"boolean"),e.qZA()(),e.TgZ(226,"td")(227,"code"),e._uU(228,"false"),e.qZA()()(),e.TgZ(229,"tr")(230,"td"),e._uU(231,"[nzItemSize]"),e.qZA(),e.TgZ(232,"td"),e._uU(233,"\u8282\u70b9\u7684\u5c3a\u5bf8(px)"),e.qZA(),e.TgZ(234,"td")(235,"code"),e._uU(236,"number"),e.qZA()(),e.TgZ(237,"td")(238,"code"),e._uU(239,"28"),e.qZA()()(),e.TgZ(240,"tr")(241,"td"),e._uU(242,"[nzMinBufferPx]"),e.qZA(),e.TgZ(243,"td"),e._uU(244,"\u8d85\u51fa\u6e32\u67d3\u533a\u7684\u6700\u5c0f\u7f13\u5b58\u533a\u5927\u5c0f(px)"),e.qZA(),e.TgZ(245,"td")(246,"code"),e._uU(247,"number"),e.qZA()(),e.TgZ(248,"td")(249,"code"),e._uU(250,"28 * 5"),e.qZA()()(),e.TgZ(251,"tr")(252,"td"),e._uU(253,"[nzMaxBufferPx]"),e.qZA(),e.TgZ(254,"td"),e._uU(255,"\u9700\u8981\u6e32\u67d3\u65b0\u8282\u70b9\u65f6\u7684\u7f13\u51b2\u533a\u5927\u5c0f(px)"),e.qZA(),e.TgZ(256,"td")(257,"code"),e._uU(258,"number"),e.qZA()(),e.TgZ(259,"td")(260,"code"),e._uU(261,"28 * 10"),e.qZA()()()()(),e.TgZ(262,"h3",46)(263,"span"),e._uU(264,"[nzTreeNodeDef]"),e.qZA(),e.TgZ(265,"label",47),e._uU(266,"directive"),e.qZA(),e.TgZ(267,"a",48),e._uU(268,"#"),e.qZA()(),e.TgZ(269,"p"),e._uU(270,"\u7528\u4e8e\u5b9a\u4e49 "),e.TgZ(271,"code"),e._uU(272,"nz-tree-node"),e.qZA(),e._uU(273," \u7684\u6307\u4ee4\u3002"),e.qZA(),e.TgZ(274,"table")(275,"thead")(276,"tr")(277,"th"),e._uU(278,"\u53c2\u6570"),e.qZA(),e.TgZ(279,"th"),e._uU(280,"\u8bf4\u660e"),e.qZA(),e.TgZ(281,"th"),e._uU(282,"\u7c7b\u578b"),e.qZA(),e.TgZ(283,"th"),e._uU(284,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(285,"tbody")(286,"tr")(287,"td"),e._uU(288,"[nzTreeNodeDefWhen]"),e.qZA(),e.TgZ(289,"td"),e._uU(290,"\u7528\u4e8e\u5b9a\u4e49\u662f\u5426\u4f7f\u7528\u6b64\u8282\u70b9\u7684\u65b9\u6cd5\uff0c\u4f18\u5148\u5339\u914d\u7b2c\u4e00\u4e2a\u8fd4\u56de "),e.TgZ(291,"code"),e._uU(292,"true"),e.qZA(),e._uU(293," \u7684\u8282\u70b9\u3002\u5982\u679c\u6ca1\u6709\u8fd4\u56de "),e.TgZ(294,"code"),e._uU(295,"true"),e.qZA(),e._uU(296," \u7684\u8282\u70b9\uff0c\u5219\u5339\u914d\u672a\u5b9a\u4e49\u6b64\u65b9\u6cd5\u7684\u8282\u70b9\u3002"),e.qZA(),e.TgZ(297,"td")(298,"code"),e._uU(299,"(index: number, nodeData: T) => boolean"),e.qZA()(),e.TgZ(300,"td"),e._uU(301,"-"),e.qZA()()()(),e.TgZ(302,"h3",49)(303,"span"),e._uU(304,"nz-tree-node"),e.qZA(),e.TgZ(305,"label",39),e._uU(306,"component"),e.qZA(),e.TgZ(307,"a",50),e._uU(308,"#"),e.qZA()(),e.TgZ(309,"p"),e._uU(310,"\u6811\u8282\u70b9\u5bb9\u5668\u7ec4\u4ef6\uff0c\u9700\u8981\u901a\u8fc7 "),e.TgZ(311,"code"),e._uU(312,"nzTreeNodeDef"),e.qZA(),e._uU(313," \u6307\u4ee4\u5b9a\u4e49\u3002"),e.qZA(),e.TgZ(314,"h3",51)(315,"span"),e._uU(316,"[nzTreeNodePadding]"),e.qZA(),e.TgZ(317,"label",47),e._uU(318,"directive"),e.qZA(),e.TgZ(319,"a",52),e._uU(320,"#"),e.qZA()(),e.TgZ(321,"pre",53)(322,"code")(323,"span",54)(324,"span",54)(325,"span",20),e._uU(326,"<"),e.qZA(),e._uU(327,"nz-tree-node"),e.qZA(),e._uU(328," "),e.TgZ(329,"span",55),e._uU(330,"nzTreeNodePadding"),e.qZA(),e.TgZ(331,"span",20),e._uU(332,">"),e.qZA()(),e.TgZ(333,"span",54)(334,"span",54)(335,"span",20),e._uU(336,"</"),e.qZA(),e._uU(337,"nz-tree-node"),e.qZA(),e.TgZ(338,"span",20),e._uU(339,">"),e.qZA()()()(),e.TgZ(340,"p"),e._uU(341,"\u4ee5\u6dfb\u52a0 "),e.TgZ(342,"code"),e._uU(343,"padding"),e.qZA(),e._uU(344," \u7684\u65b9\u5f0f\u663e\u793a\u8282\u70b9\u7f29\u8fdb "),e.TgZ(345,"strong"),e._uU(346,"\u6027\u80fd\u6700\u597d"),e.qZA(),e._uU(347,"\u3002"),e.qZA(),e.TgZ(348,"h3",56)(349,"span"),e._uU(350,"nzTreeNodeIndentLine"),e.qZA(),e.TgZ(351,"a",57),e._uU(352,"#"),e.qZA()(),e.TgZ(353,"pre",53)(354,"code")(355,"span",54)(356,"span",54)(357,"span",20),e._uU(358,"<"),e.qZA(),e._uU(359,"nz-tree-node"),e.qZA(),e._uU(360," "),e.TgZ(361,"span",55),e._uU(362,"nzTreeNodeIndentLine"),e.qZA(),e.TgZ(363,"span",20),e._uU(364,">"),e.qZA()(),e.TgZ(365,"span",54)(366,"span",54)(367,"span",20),e._uU(368,"</"),e.qZA(),e._uU(369,"nz-tree-node"),e.qZA(),e.TgZ(370,"span",20),e._uU(371,">"),e.qZA()()()(),e.TgZ(372,"p"),e._uU(373,"\u4ee5\u6dfb\u52a0\u7f29\u8fdb\u7ebf\u7684\u65b9\u5f0f\u663e\u793a\u8282\u70b9\u7f29\u8fdb\u3002"),e.qZA(),e.TgZ(374,"h3",58)(375,"span"),e._uU(376,"nz-tree-node-toggle"),e.qZA(),e.TgZ(377,"label",39),e._uU(378,"component"),e.qZA(),e.TgZ(379,"a",59),e._uU(380,"#"),e.qZA()(),e.TgZ(381,"p"),e._uU(382,"\u5207\u6362\u90e8\u5206\uff0c\u7528\u4e8e\u8282\u70b9\u7684\u5c55\u5f00/\u6536\u8d77\u3002"),e.qZA(),e.TgZ(383,"table")(384,"thead")(385,"tr")(386,"th"),e._uU(387,"\u53c2\u6570"),e.qZA(),e.TgZ(388,"th"),e._uU(389,"\u8bf4\u660e"),e.qZA(),e.TgZ(390,"th"),e._uU(391,"\u7c7b\u578b"),e.qZA(),e.TgZ(392,"th"),e._uU(393,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(394,"tbody")(395,"tr")(396,"td"),e._uU(397,"[nzTreeNodeToggleRecursive]"),e.qZA(),e.TgZ(398,"td"),e._uU(399,"\u
1662f\u5426\u4e3a\u9012\u5f52\u5c55\u5f00/\u6536\u8d77"),e.qZA(),e.TgZ(400,"td")(401,"code"),e._uU(402,"boolean"),e.qZA()(),e.TgZ(403,"td")(404,"code"),e._uU(405,"false"),e.qZA()()()()(),e.TgZ(406,"h3",60)(407,"span"),e._uU(408,"nz-tree-node-toggle[nzTreeNodeNoopToggle]"),e.qZA(),e.TgZ(409,"label",39),e._uU(410,"component"),e.qZA(),e.TgZ(411,"a",61),e._uU(412,"#"),e.qZA()(),e.TgZ(413,"p"),e._uU(414,"\u4e0d\u505a\u4efb\u4f55\u64cd\u4f5c\u7684\u5207\u6362\u90e8\u5206\uff0c\u53ef\u7528\u4e8e\u5360\u4f4d\u6216\u8005\u663e\u793a\u56fe\u6807\u3002"),e.qZA(),e.TgZ(415,"h3",62)(416,"span"),e._uU(417,"[nz-icon][nzTreeNodeToggleRotateIcon]"),e.qZA(),e.TgZ(418,"label",47),e._uU(419,"directive"),e.qZA(),e.TgZ(420,"a",63),e._uU(421,"#"),e.qZA()(),e.TgZ(422,"p"),e._uU(423,"\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"),e.qZA(),e.TgZ(424,"h3",64)(425,"span"),e._uU(426,"[nz-icon][nzTreeNodeToggleActiveIcon]"),e.qZA(),e.TgZ(427,"label",47),e._uU(428,"directive"),e.qZA(),e.TgZ(429,"a",65),e._uU(430,"#"),e.qZA()(),e.TgZ(431,"p"),e._uU(432,"\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"),e.qZA(),e.TgZ(433,"h3",66)(434,"span"),e._uU(435,"nz-tree-node-option"),e.qZA(),e.TgZ(436,"label",39),e._uU(437,"component"),e.qZA(),e.TgZ(438,"a",67),e._uU(439,"#"),e.qZA()(),e.TgZ(440,"p"),e._uU(441,"\u5b9a\u4e49\u8282\u70b9\u4e2d\u7684\u53ef\u9009\u62e9\u90e8\u5206\u3002"),e.qZA(),e.TgZ(442,"table")(443,"thead")(444,"tr")(445,"th"),e._uU(446,"\u53c2\u6570"),e.qZA(),e.TgZ(447,"th"),e._uU(448,"\u8bf4\u660e"),e.qZA(),e.TgZ(449,"th"),e._uU(450,"\u7c7b\u578b"),e.qZA(),e.TgZ(451,"th"),e._uU(452,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(453,"tbody")(454,"tr")(455,"td"),e._uU(456,"[nzSelected]"),e.qZA(),e.TgZ(457,"td"),e._uU(458,"\u662f\u5426\u9009\u4e2d"),e.qZA(),e.TgZ(459,"td")(460,"code"),e._uU(461,"boolean"),e.qZA()(),e.TgZ(462,"td")(463,"code"),e._uU(464,"false"),e.qZA()()(),e.TgZ(465,"tr")(466,"td"),e._uU(467,"[nzDisabled]"),e.qZA(),e.TgZ(468,"td"),e._uU(469,"\u662f\u5426\u7981\u7528"),e.qZA(),e.TgZ(470,"td")(471,"code"),e._uU(472,"boolean"),e.qZA()(),e.TgZ(473,"td")(474,"code"),e._uU(475,"false"),e.qZA()()(),e.TgZ(476,"tr")(477,"td"),e._uU(478,"(nzClick)"),e.qZA(),e.TgZ(479,"td"),e._uU(480,"\u70b9\u51fb\u65f6\u7684\u4e8b\u4ef6"),e.qZA(),e.TgZ(481,"td")(482,"code"),e._uU(483,"EventEmitter<MouseEvent>"),e.qZA()(),e.TgZ(484,"td"),e._uU(485,"-"),e.qZA()()()(),e.TgZ(486,"h3",68)(487,"span"),e._uU(488,"nz-tree-node-checkbox"),e.qZA(),e.TgZ(489,"label",39),e._uU(490,"component"),e.qZA(),e.TgZ(491,"a",69),e._uU(492,"#"),e.qZA()(),e.TgZ(493,"p"),e._uU(494,"\u5b9a\u4e49\u8282\u70b9\u4e2d\u7684\u53ef\u52fe\u9009\u7684\u90e8\u5206\u3002"),e.qZA(),e.TgZ(495,"table")(496,"thead")(497,"tr")(498,"th"),e._uU(499,"\u53c2\u6570"),e.qZA(),e.TgZ(500,"th"),e._uU(501,"\u8bf4\u660e"),e.qZA(),e.TgZ(502,"th"),e._uU(503,"\u7c7b\u578b"),e.qZA(),e.TgZ(504,"th"),e._uU(505,"\u9ed8\u8ba4\u503c"),e.qZA()()(),e.TgZ(506,"tbody")(507,"tr")(508,"td"),e._uU(509,"[nzChecked]"),e.qZA(),e.TgZ(510,"td"),e._uU(511,"\u662f\u5426\u52fe\u9009"),e.qZA(),e.TgZ(512,"td")(513,"code"),e._uU(514,"boolean"),e.qZA()(),e.TgZ(515,"td")(516,"code"),e._uU(517,"false"),e.qZA()()(),e.TgZ(518,"tr")(519,"td"),e._uU(520,"[nzIndeterminate]"),e.qZA(),e.TgZ(521,"td"),e._uU(522,"\u662f\u5426\u4e3a\u534a\u9009"),e.qZA(),e.TgZ(523,"td")(524,"code"),e._uU(525,"boolean"),e.qZA()(),e.TgZ(526,"td")(527,"code"),e._uU(528,"false"),e.qZA()()(),e.TgZ(529,"tr")(530,"td"),e._uU(531,"[nzDisabled]"),e.qZA(),e.TgZ(532,"td"),e._uU(533,"\u662f\u5426\u7981\u7528"),e.qZA(),e.TgZ(534,"td")(535,"code"),e._uU(536,"boolean"),e.qZA()(),e.TgZ(537,"td")(538,"code"),e._uU(539,"false"),e.qZA()()(),e.TgZ(540,"tr")(541,"td"),e._uU(542,"(nzClick)"),e.qZA(),e.TgZ(543,"td"),e._uU(544,"\u70b9\u51fb\u65f6\u7684\u4e8b\u4ef6"),e.qZA(),e.TgZ(545,"td")(546,"code"),e._uU(547,"EventEmitter<MouseEvent>"),e.qZA()(),e.TgZ(548,"td"),e._uU(549,"-"),e.qZA()()()(),e.TgZ(550,"h2",70)(551,"span"),e._uU(552,"Classes"),e.qZA(),e.TgZ(553,"a",71),e._uU(554,"#"),e.qZA()(),e.TgZ(555,"h3",72)(556,"span")(557,"strong"),e._uU(558,"NzTreeFlatDataSource extends DataSource"),e.qZA()(),e.TgZ(559,"a",73),e._uU(560,"#"),e.qZA()(),e.TgZ(561,"h3",74)(562,"span"),e._uU(563,"\u6784\u9020\u53c2\u6570"),e.qZA(),e.TgZ(564,"a",75),e._uU(565,"#"),e.qZA()(),e.TgZ(566,"table")(567,"thead")(568,"tr")(569,"th"),e._uU(570,"\u540d\u79f0"),e.qZA(),e.TgZ(571,"th"),e._uU(572,"\u8bf4\u660e"),e.qZA()()(),e.TgZ(573,"tbody")(574,"tr")(
1575,"td")(576,"code"),e._uU(577,"treeControl: FlatTreeControl<F, K>"),e.qZA()(),e.TgZ(578,"td"),e._uU(579,"Tree \u63a7\u5236\u5668"),e.qZA()(),e.TgZ(580,"tr")(581,"td")(582,"code"),e._uU(583,"treeFlattener: NzTreeFlattener<T, F, K>"),e.qZA()(),e.TgZ(584,"td"),e._uU(585,"\u7528\u4e8e\u5c06\u5d4c\u5957\u8282\u70b9 "),e.TgZ(586,"code"),e._uU(587,"T"),e.qZA(),e._uU(588," \u5904\u7406\u4e3a\u6241\u5e73\u8282\u70b9 "),e.TgZ(589,"code"),e._uU(590,"F"),e.qZA(),e._uU(591," \u7684\u5c55\u5e73\u5668"),e.qZA()(),e.TgZ(592,"tr")(593,"td")(594,"code"),e._uU(595,"initialData: T[] = []"),e.qZA()(),e.TgZ(596,"td"),e._uU(597,"\u521d\u59cb\u5316\u6570\u636e"),e.qZA()()()(),e.TgZ(598,"h3",76)(599,"span"),e._uU(600,"\u65b9\u6cd5"),e.qZA(),e.TgZ(601,"a",77),e._uU(602,"#"),e.qZA()(),e.TgZ(603,"table")(604,"thead")(605,"tr")(606,"th"),e._uU(607,"\u540d\u79f0"),e.qZA(),e.TgZ(608,"th"),e._uU(609,"\u8bf4\u660e"),e.qZA()()(),e.TgZ(610,"tbody")(611,"tr")(612,"td")(613,"code"),e._uU(614,"connect(collectionViewer: CollectionViewer): Observable<F[]>"),e.qZA()(),e.TgZ(615,"td"),e._uU(616,"TreeView \u7ec4\u4ef6\u4e2d\u8c03\u7528\uff0c\u7528\u4e8e\u83b7\u53d6\u6570\u636e\u7684\u66f4\u65b0"),e.qZA()(),e.TgZ(617,"tr")(618,"td")(619,"code"),e._uU(620,"disconnect(): void"),e.qZA()(),e.TgZ(621,"td"),e._uU(622,"TreeView \u7ec4\u4ef6\u9500\u6bc1\u65f6\u8c03\u7528"),e.qZA()(),e.TgZ(623,"tr")(624,"td")(625,"code"),e._uU(626,"setData(value: T[]): void"),e.qZA()(),e.TgZ(627,"td"),e._uU(628,"\u8bbe\u7f6e\u539f\u59cb\u6570\u636e"),e.qZA()(),e.TgZ(629,"tr")(630,"td")(631,"code"),e._uU(632,"getData(): T[]"),e.qZA()(),e.TgZ(633,"td"),e._uU(634,"\u83b7\u53d6\u539f\u59cb\u6570\u636e"),e.qZA()()()(),e.TgZ(635,"h3",78)(636,"span")(637,"strong"),e._uU(638,"NzTreeFlattener"),e.qZA()(),e.TgZ(639,"a",79),e._uU(640,"#"),e.qZA()(),e.TgZ(641,"p"),e._uU(642,"\u5c06\u5177\u6709\u5b50\u8282\u70b9\u7684\u5d4c\u5957\u6570\u636e\u8f6c\u6362\u4e3a\u5177\u6709\u7ea7\u522b\uff08level\uff09\u4fe1\u606f\u7684\u8f6c\u6362\u5668\u7c7b\u3002"),e.qZA(),e.TgZ(643,"h3",74)(644,"span"),e._uU(645,"\u6784\u9020\u53c2\u6570"),e.qZA(),e.TgZ(646,"a",75),e._uU(647,"#"),e.qZA()(),e.TgZ(648,"table")(649,"thead")(650,"tr")(651,"th"),e._uU(652,"\u540d\u79f0"),e.qZA(),e.TgZ(653,"th"),e._uU(654,"\u8bf4\u660e"),e.qZA()()(),e.TgZ(655,"tbody")(656,"tr")(657,"td")(658,"code"),e._uU(659,"transformFunction: (node: T, level: number) => F"),e.qZA()(),e.TgZ(660,"td"),e._uU(661,"\u63a5\u6536\u4e00\u4e2a\u5d4c\u5957\u8282\u70b9\uff0c\u8fd4\u56de\u6241\u5e73\u8282\u70b9"),e.qZA()(),e.TgZ(662,"tr")(663,"td")(664,"code"),e._uU(665,"getLevel: (node: F) => number"),e.qZA()(),e.TgZ(666,"td"),e._uU(667,"\u5b9a\u4e49\u83b7\u53d6 "),e.TgZ(668,"code"),e._uU(669,"level"),e.qZA(),e._uU(670," \u5c5e\u6027\u7684\u65b9\u6cd5"),e.qZA()(),e.TgZ(671,"tr")(672,"td")(673,"code"),e._uU(674,"isExpandable: (node: F) => boolean"),e.qZA()(),e.TgZ(675,"td"),e._uU(676,"\u5b9a\u4e49\u662f\u5426\u4e3a\u53ef\u5c55\u5f00\u8282\u70b9\u7684\u65b9\u6cd5"),e.qZA()(),e.TgZ(677,"tr")(678,"td")(679,"code"),e._uU(680,"getChildren: (node: T) => Observable<T[]> | T[] | undefined | null"),e.qZA()(),e.TgZ(681,"td"),e._uU(682,"\u5b9a\u4e49\u4ece\u5d4c\u5957\u6570\u636e\u4e2d\u83b7\u53d6\u5b50\u8282\u70b9\u7684\u65b9\u6cd5"),e.qZA()()()(),e.TgZ(683,"h3",76)(684,"span"),e._uU(685,"\u65b9\u6cd5"),e.qZA(),e.TgZ(686,"a",77),e._uU(687,"#"),e.qZA()(),e.TgZ(688,"table")(689,"thead")(690,"tr")(691,"th"),e._uU(692,"\u540d\u79f0"),e.qZA(),e.TgZ(693,"th"),e._uU(694,"\u8bf4\u660e"),e.qZA()()(),e.TgZ(695,"tbody")(696,"tr")(697,"td")(698,"code"),e._uU(699,"flattenNodes(structuredData: T[]): F[]"),e.qZA()(),e.TgZ(700,"td"),e._uU(701,"\u63a5\u6536\u5d4c\u5957\u6570\u636e\uff0c\u8fd4\u56de\u6241\u5e73\u6570\u636e"),e.qZA()(),e.TgZ(702,"tr")(703,"td")(704,"code"),e._uU(705,"expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[]"),e.qZA()(),e.TgZ(706,"td"),e._uU(707,"\u6309 TreeControl \u4e2d\u7684\u5c55\u5f00\u72b6\u6001\u83b7\u53d6\u8282\u70b9"),e.qZA()()()(),e.fQ9(),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("nzOffsetTop",16),e.xp6(1),e.Q6J("nzAffix",!1),e.xp6(48),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzXl",12)("nzSpan",24),e.xp6(1),e.Q6J("nzId","components-tree-view-demo-basic")("nzLink","components-tree-view-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/basic.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-directory")("nzLink","components-tree-view-demo-directory")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/directory.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-line")("nzLink","components-tree-view-demo-line")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/line.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-search")("nzLink","components-tree-view-demo-search")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/search.md"),e.xp6(5),e.Q6J("nzXl",12)("nzSpan",24),e.xp6(1),e.Q6J("nzId","components-tree-view-demo-checkbox")("nzLink","components-tree-view-demo-checkbox")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/checkbox.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-dynamic")("nzLink","components-tree-view-demo-dynamic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/dynamic.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-editable")("nzLink","components-tree-view-demo-editable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/editable.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-virtual-scroll")("nzLink","components-tree-view-demo-virtual-scroll")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/virtual-scroll.md"))},dependencies:[de.G,ce.IT,ce.Fp,Ne.$,le.t3,le.SK,be.SY,m.Ls,B.w,xe,Ee,ke,qe,ye,Fe,Se,Me],encapsulation:2})}return o}
1)(),Ot=(()=>{class o{constructor(){this.expanded=!1}goLink(t){window&&(window.location.hash=t)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(t=>{t.nzExpanded=this.expanded,t.expandCode(this.expanded),t.check()})}static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275cmp=e.Xpm({type:o,selectors:[["nz-demo-tree-view"]],viewQuery:function(n,i){if(1&n&&e.Gf(de.G,5),2&n){let r;e.iGM(r=e.CRH())&&(i.codeBoxes=r)}},decls:710,vars:39,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["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"],["nz-icon","","nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","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","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","nzIframeHeight","nzHref"],["nzTitle","Tree with line","nzSelector","nz-demo-tree-view-line","nzGenerateCommand","ng g ng-zorro-antd:tree-view-line <name>","nzComponentName","NzDemoTreeViewLineComponent","nzIframeSource","null",3,"nzId","nzLink","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","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","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","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","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","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","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-toggle[nztreenodenooptoggle]"],["onclick","window.location.hash = 'nz-tree-node-toggle[nztreenodenooptoggle]'",1,"anchor"],["id","[nz-icon][nztreenodetogglerotateicon]"],["onclick","window.location.hash = '[nz-icon][nztreenodetogglerotateicon]'",1,"anchor"],["id","[nz-icon][nztreenodetoggleactiveicon]"],["onclick","window.location.hash = '[nz-icon][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","<strong>nztreeflatdatasource-extends-datasource</strong>"],["onclick","window.location.hash = '<strong>nztreeflatdatasource-extends-datasource</strong>'",1,"anchor"],["id","construction-parameters"],["onclick","window.location.hash = 'construction-parameters'",1,"anchor"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"],["id","<strong>nztreeflattener</strong>"],["onclick","window.location.hash = '<strong>nztreeflattener</strong>'",1,"anchor"]],template:function(n,i){1&n&&(e.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),e.NdJ("nzClick",function(a){return i.goLink(a)}),e._UZ(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),e.qZA()(),e.TgZ(12,"section",11)(13,"h1"),e._uU(14,"Tree View"),e._UZ(15,"span",12)(16,"span",13),e.TgZ(17,"a",14),e._UZ(18,"span",15),e.qZA()(),e.TgZ(19,"section",11),e.IAx(),e.TgZ(20,"h2",16)(21,"span"),e._uU(22,"When To Use"),e.qZA(),e.TgZ(23,"a",17),e._uU(24,"#"),e.qZA()(),e.TgZ(25,"p"),e._uU(26,"More basic Tree component, allowing each of its parts to be defined in the template, and state to be managed manually.\nWith better performance and customizability."),e.qZA(),e.TgZ(27,"pre",18)(28,"code")(29,"span",19),e._uU(30,"import"),e.qZA(),e._uU(31," "),e.TgZ(32,"span",20),e._uU(33,"{"),e.qZA(),e._uU(34," NzTreeViewModule "),e.TgZ(35,"span",20),e._uU(36,"}"),e.qZA(),e._uU(37," "),e.TgZ(38,"span",19),e._uU(39,"from"),e.qZA(),e._uU(40," "),e.TgZ(41,"span",21),e._uU(42,"'ng-zorro-antd/tree-view'"),e.qZA(),e.TgZ(43,"span",20),e._uU(44,";"),e.qZA()()(),e.fQ9(),e.qZA(),e.TgZ(45,"h2")(46,"span"),e._uU(47,"Examples"),e.qZA(),e.TgZ(48,"span",22),e.NdJ("click",function(){return i.expandAllCode()}),e.qZA()()(),e.TgZ(49,"div",23)(50,"div",24)(51,"nz-code-box",25),e._UZ(52,"nz-demo-tree-view-basic",26),e.TgZ(53,"div",27),e.IAx(),e.TgZ(54,"p"),e._uU(55,"The most basic usage including select, disable and expand features."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(56,"nz-code-box",28),e._UZ(57,"nz-demo-tree-view-directory",26),e.TgZ(58,"div",27),e.IAx(),e.TgZ(59,"p"),e._uU(60,"Directory tree."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(61,"nz-code-box",29),e._UZ(62,"nz-demo-tree-view-l
1ine",26),e.TgZ(63,"div",27),e.IAx(),e.TgZ(64,"p"),e._uU(65,"Tree with connected line between nodes."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(66,"nz-code-box",30),e._UZ(67,"nz-demo-tree-view-search",26),e.TgZ(68,"div",27),e.IAx(),e.TgZ(69,"p"),e._uU(70,"Searchable Tree."),e.qZA(),e.fQ9(),e.qZA()()(),e.TgZ(71,"div",24)(72,"nz-code-box",31),e._UZ(73,"nz-demo-tree-view-checkbox",26),e.TgZ(74,"div",27),e.IAx(),e.TgZ(75,"p"),e._uU(76,"Tree with checkboxes."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(77,"nz-code-box",32),e._UZ(78,"nz-demo-tree-view-dynamic",26),e.TgZ(79,"div",27),e.IAx(),e.TgZ(80,"p"),e._uU(81,"To load data asynchronously when click to expand a treeNode."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(82,"nz-code-box",33),e._UZ(83,"nz-demo-tree-view-editable",26),e.TgZ(84,"div",27),e.IAx(),e.TgZ(85,"p"),e._uU(86,"Tree with add and delete actions."),e.qZA(),e.fQ9(),e.qZA()(),e.TgZ(87,"nz-code-box",34),e._UZ(88,"nz-demo-tree-view-virtual-scroll",26),e.TgZ(89,"div",27),e.IAx(),e.TgZ(90,"p"),e._uU(91,"Use virtual scroll."),e.qZA(),e.fQ9(),e.qZA()()()(),e.TgZ(92,"section",35),e.IAx(),e.TgZ(93,"h2",36)(94,"span"),e._uU(95,"API"),e.qZA(),e.TgZ(96,"a",37),e._uU(97,"#"),e.qZA()(),e.TgZ(98,"h3",38)(99,"span"),e._uU(100,"nz-tree-view"),e.qZA(),e.TgZ(101,"label",39),e._uU(102,"component"),e.qZA(),e.TgZ(103,"a",40),e._uU(104,"#"),e.qZA()(),e.TgZ(105,"table")(106,"thead")(107,"tr")(108,"th"),e._uU(109,"Property"),e.qZA(),e.TgZ(110,"th"),e._uU(111,"Description"),e.qZA(),e.TgZ(112,"th"),e._uU(113,"Type"),e.qZA(),e.TgZ(114,"th"),e._uU(115,"Default"),e.qZA()()(),e.TgZ(116,"tbody")(117,"tr")(118,"td"),e._uU(119,"[nzTreeControl]"),e.qZA(),e.TgZ(120,"td"),e._uU(121,"The tree controller"),e.qZA(),e.TgZ(122,"td")(123,"a",41),e._uU(124,"TreeControl"),e.qZA()(),e.TgZ(125,"td"),e._uU(126,"-"),e.qZA()(),e.TgZ(127,"tr")(128,"td"),e._uU(129,"[nzDataSource]"),e.qZA(),e.TgZ(130,"td"),e._uU(131,"The data array to render"),e.qZA(),e.TgZ(132,"td")(133,"a",42),e._uU(134,"DataSource"),e.qZA(),e._uU(135,"<T>"),e.qZA(),e.TgZ(136,"td"),e._uU(137,"Observable<T[]>"),e.qZA()(),e.TgZ(138,"tr")(139,"td"),e._uU(140,"[nzDirectoryTree]"),e.qZA(),e.TgZ(141,"td"),e._uU(142,"Whether nodes are displayed as directory style"),e.qZA(),e.TgZ(143,"td")(144,"code"),e._uU(145,"boolean"),e.qZA()(),e.TgZ(146,"td")(147,"code"),e._uU(148,"false"),e.qZA()()(),e.TgZ(149,"tr")(150,"td"),e._uU(151,"[nzBlockNode]"),e.qZA(),e.TgZ(152,"td"),e._uU(153,"Whether tree nodes fill remaining horizontal space"),e.qZA(),e.TgZ(154,"td")(155,"code"),e._uU(156,"boolean"),e.qZA()(),e.TgZ(157,"td")(158,"code"),e._uU(159,"false"),e.qZA()()()()(),e.TgZ(160,"h3",43)(161,"span"),e._uU(162,"nz-tree-virtual-scroll-view"),e.qZA(),e.TgZ(163,"label",39),e._uU(164,"component"),e.qZA(),e.TgZ(165,"a",44),e._uU(166,"#"),e.qZA()(),e.TgZ(167,"p"),e._uU(168,"The virtual scroll tree view, which can be accessed from\nthe "),e.TgZ(169,"a",45),e._uU(170,"CdkVirtualScrollViewport"),e.qZA(),e._uU(171," instance through\nthe "),e.TgZ(172,"code"),e._uU(173,"virtualScrollViewport"),e.qZA(),e._uU(174," member of the component instance."),e.qZA(),e.TgZ(175,"table")(176,"thead")(177,"tr")(178,"th"),e._uU(179,"Property"),e.qZA(),e.TgZ(180,"th"),e._uU(181,"Description"),e.qZA(),e.TgZ(182,"th"),e._uU(183,"Type"),e.qZA(),e.TgZ(184,"th"),e._uU(185,"Default"),e.qZA()()(),e.TgZ(186,"tbody")(187,"tr")(188,"td"),e._uU(189,"[nzTreeControl]"),e.qZA(),e.TgZ(190,"td"),e._uU(191,"The tree controller"),e.qZA(),e.TgZ(192,"td")(193,"a",41),e._uU(194,"TreeControl"),e.qZA()(),e.TgZ(195,"td"),e._uU(196,"-"),e.qZA()(),e.TgZ(197,"tr")(198,"td"),e._uU(199,"[nzDataSource]"),e.qZA(),e.TgZ(200,"td"),e._uU(201,"The data array to render"),e.qZA(),e.TgZ(202,"td")(203,"a",42),e._uU(204,"DataSource"),e.qZA(),e._uU(205,"<T>"),e.qZA(),e.TgZ(206,"td"),e._uU(207,"Observable<T[]>"),e.qZA()(),e.TgZ(208,"tr")(209,"td"),e._uU(210,"[nzDirectoryTree]"),e.qZA(),e.TgZ(211,"td"),e._uU(212,"Whether nodes are displayed as directory style"),e.qZA(),e.TgZ(213,"td")(214,"code"),e._uU(215,"boolean"),e.qZA()(),e.TgZ(216,"td")(217,"code"),e._uU(218,"false"),e.qZA()()(),e.TgZ(219,"tr")(220,"td"),e._uU(221,"[nzBlockNode]"),e.qZA(),e.TgZ(222,"td"),e._uU(223,"Whether tree nodes fill remaining horizontal space"),e.qZA(),e.TgZ(224,"td")(225,"code"),e._uU(226,"boolean"),e.qZA()(),e.TgZ(227,"td")(228,"code"),e._uU(229,"fal
1se"),e.qZA()()(),e.TgZ(230,"tr")(231,"td"),e._uU(232,"[nzItemSize]"),e.qZA(),e.TgZ(233,"td"),e._uU(234,"The size of nodes in the tree (in pixels)"),e.qZA(),e.TgZ(235,"td")(236,"code"),e._uU(237,"number"),e.qZA()(),e.TgZ(238,"td")(239,"code"),e._uU(240,"28"),e.qZA()()(),e.TgZ(241,"tr")(242,"td"),e._uU(243,"[nzMinBufferPx]"),e.qZA(),e.TgZ(244,"td"),e._uU(245,"The minimum amount of buffer rendered allowed outside the viewport (in pixels)"),e.qZA(),e.TgZ(246,"td")(247,"code"),e._uU(248,"number"),e.qZA()(),e.TgZ(249,"td")(250,"code"),e._uU(251,"28 * 5"),e.qZA()()(),e.TgZ(252,"tr")(253,"td"),e._uU(254,"[nzMaxBufferPx]"),e.qZA(),e.TgZ(255,"td"),e._uU(256,"The amount of buffer required for rendering new nodes (in pixels)"),e.qZA(),e.TgZ(257,"td")(258,"code"),e._uU(259,"number"),e.qZA()(),e.TgZ(260,"td")(261,"code"),e._uU(262,"28 * 10"),e.qZA()()()()(),e.TgZ(263,"h3",46)(264,"span"),e._uU(265,"[nzTreeNodeDef]"),e.qZA(),e.TgZ(266,"label",47),e._uU(267,"directive"),e.qZA(),e.TgZ(268,"a",48),e._uU(269,"#"),e.qZA()(),e.TgZ(270,"p"),e._uU(271,"Directive to define "),e.TgZ(272,"code"),e._uU(273,"nz-tree-node"),e.qZA(),e._uU(274,"."),e.qZA(),e.TgZ(275,"table")(276,"thead")(277,"tr")(278,"th"),e._uU(279,"Property"),e.qZA(),e.TgZ(280,"th"),e._uU(281,"Description"),e.qZA(),e.TgZ(282,"th"),e._uU(283,"Type"),e.qZA(),e.TgZ(284,"th"),e._uU(285,"Default"),e.qZA()()(),e.TgZ(286,"tbody")(287,"tr")(288,"td"),e._uU(289,"[nzTreeNodeDefWhen]"),e.qZA(),e.TgZ(290,"td"),e._uU(291,"A matching function which indicates whether inputted node should be used. It matches the very first node that makes this function return "),e.TgZ(292,"code"),e._uU(293,"true"),e.qZA(),e._uU(294,". If no nodes that makes this function return "),e.TgZ(295,"code"),e._uU(296,"true"),e.qZA(),e._uU(297,", the node which does not define this function would be matched instead."),e.qZA(),e.TgZ(298,"td")(299,"code"),e._uU(300,"(index: number, nodeData: T) => boolean"),e.qZA()(),e.TgZ(301,"td"),e._uU(302,"-"),e.qZA()()()(),e.TgZ(303,"h3",49)(304,"span"),e._uU(305,"nz-tree-node"),e.qZA(),e.TgZ(306,"label",39),e._uU(307,"component"),e.qZA(),e.TgZ(308,"a",50),e._uU(309,"#"),e.qZA()(),e.TgZ(310,"p"),e._uU(311,"The tree node container component, which needs to be defined by the "),e.TgZ(312,"code"),e._uU(313,"nzTreeNodeDef"),e.qZA(),e._uU(314," directive."),e.qZA(),e.TgZ(315,"h3",51)(316,"span"),e._uU(317,"[nzTreeNodePadding]"),e.qZA(),e.TgZ(318,"label",47),e._uU(319,"directive"),e.qZA(),e.TgZ(320,"a",52),e._uU(321,"#"),e.qZA()(),e.TgZ(322,"pre",53)(323,"code"),e._uU(324,"\n"),e.TgZ(325,"span",54)(326,"span",54)(327,"span",20),e._uU(328,"<"),e.qZA(),e._uU(329,"nz-tree-node"),e.qZA(),e._uU(330," "),e.TgZ(331,"span",55),e._uU(332,"nzTreeNodePadding"),e.qZA(),e.TgZ(333,"span",20),e._uU(334,">"),e.qZA()(),e.TgZ(335,"span",54)(336,"span",54)(337,"span",20),e._uU(338,"</"),e.qZA(),e._uU(339,"nz-tree-node"),e.qZA(),e.TgZ(340,"span",20),e._uU(341,">"),e.qZA()()()(),e.TgZ(342,"p"),e._uU(343,"Show node indentation by adding "),e.TgZ(344,"code"),e._uU(345,"padding"),e.qZA(),e.TgZ(346,"strong"),e._uU(347,"Best Performance"),e.qZA(),e._uU(348,"."),e.qZA(),e.TgZ(349,"h3",56)(350,"span"),e._uU(351,"nzTreeNodeIndentLine"),e.qZA(),e.TgZ(352,"a",57),e._uU(353,"#"),e.qZA()(),e.TgZ(354,"pre",53)(355,"code"),e._uU(356,"\n"),e.TgZ(357,"span",54)(358,"span",54)(359,"span",20),e._uU(360,"<"),e.qZA(),e._uU(361,"nz-tree-node"),e.qZA(),e._uU(362," "),e.TgZ(363,"span",55),e._uU(364,"nzTreeNodeIndentLine"),e.qZA(),e.TgZ(365,"span",20),e._uU(366,">"),e.qZA()(),e.TgZ(367,"span",54)(368,"span",54)(369,"span",20),e._uU(370,"</"),e.qZA(),e._uU(371,"nz-tree-node"),e.qZA(),e.TgZ(372,"span",20),e._uU(373,">"),e.qZA()()()(),e.TgZ(374,"p"),e._uU(375,"Show node indentation by adding indent lines."),e.qZA(),e.TgZ(376,"h3",58)(377,"span"),e._uU(378,"nz-tree-node-toggle"),e.qZA(),e.TgZ(379,"label",39),e._uU(380,"component"),e.qZA(),e.TgZ(381,"a",59),e._uU(382,"#"),e.qZA()(),e.TgZ(383,"p"),e._uU(384,"A toggle which is used to expand / collapse the node."),e.qZA(),e.TgZ(385,"table")(386,"thead")(387,"tr")(388,"th"),e._uU(389,"Property"),e.qZA(),e.TgZ(390,"th"),e._uU(391,"Description"),e.qZA(),e.TgZ(392,"th"),e._uU(393,"Type"),e.qZA(),e.TgZ(394,"th"),e._uU(395,"Default"),e.qZA()()(),e.TgZ(396,"tbody")(397,"tr")(398,"td"),e._uU(399,"[nzTreeNodeToggleRecursive]"),e.qZA(),e.TgZ(400,"td"),e._uU(401,"Is it recursively expand / collapse"),e.qZA(),e.TgZ(402,"td")(403,"code"),e._uU(404,"boolean"),e.qZA()(),e.TgZ(405,"td")(406,"code"),e._uU(407,"false"),e.qZA()()()()(),e.TgZ(408,"h3",60)(409,"span"),e._uU(410,"nz-tree-node-toggle[nzTreeNodeNoopToggle]"),e.qZA(),e.TgZ(411,"label",39),e._uU(412,"component"),e.qZA(),e.TgZ(413,"a",61),e._uU(414,"#"),e.qZA()(),e.TgZ(415,"p"),e._uU(416,"A toggle that does no actions. This can be used for placeholders or displays icons."),e.qZA(),e.TgZ(417,"h3",62)(418,"span"),e._uU(419,"[nz-icon][nzTreeNodeToggleRotateIcon]"),e.qZA(),e.TgZ(420,"label",47),e._uU(421,"directive"),e.qZA(),e.TgZ(422,"a",63),e._uU(423,"#"),e.qZA()(),e.TgZ(424,"p"),e._uU(425,"Define an icon in the toggle, which it will automatically rotate depending on the collapse/expand state."),e.qZA(),e.TgZ(426,"h3",64)(427,"span"),e._uU(428,"[nz-icon][nzTreeNodeToggleActiveIcon]"),e.qZA(),e.TgZ(429,"label",47),e._uU(430,"directive"),e.qZA(),e.TgZ(431,"a",65),e._uU(432,"#"),e.qZA()(),e.TgZ(433,"p"),e._uU(434,"Define an icon in the toggle for an active style, which it can be used for the loading state."),e.qZA(),e.TgZ(435,"h3",66)(436,"span"),e._uU(437,"nz-tree-node-option"),e.qZA(),e.TgZ(438,"label",39),e._uU(439,"component"),e.qZA(),e.TgZ(440,"a",67),e._uU(441,"#"),e.qZA()(),e.TgZ(442,"p"),e._uU(443,"Define the selectable feature of a node."),e.qZA(),e.TgZ(444,"table")(445,"thead")(446,"tr")(447,"th"),e._uU(448,"Property"),e.qZA(),e.TgZ(449,"th"),e._uU(450,"Description"),e.qZA(),e.TgZ(451,"th"),e._uU(452,"Type"),e.qZA(),e.TgZ(453,"th"),e._uU(454,"Default"),e.qZA()()(),e.TgZ(455,"tbody")(456,"tr")(457,"td"),e._uU(458,"[nzSelected]"),e.qZA(),e.TgZ(459,"td"),e._uU(460,"Whether the option is selected"),e.qZA(),e.TgZ(461,"td")(462,"code"),e._uU(463,"boolean"),e.qZA()(),e.TgZ(464,"td")(465,"code"),e._uU(466,"false"),e.qZA()()(),e.TgZ(467,"tr")(468,"td"),e._uU(469,"[nzDisabled]"),e.qZA(),e.TgZ(470,"td"),e._uU(471,"Whether the option is disabled"),e.qZA(),e.TgZ(472,"td")(473,"code"),e._uU(474,"boolean"),e.qZA()(),e.TgZ(475,"td")(476,"code"),e._uU(477,"false"),e.qZA()()(),e.TgZ(478,"tr")(479,"td"),e._uU(480,"(nzClick)"),e.qZA(),e.TgZ(481,"td"),e._uU(482,"Event on click"),e.qZA(),e.TgZ(483,"td")(484,"code"),e._uU(485,"EventEmitter<MouseEvent>"),e.qZA()(),e.TgZ(486,"td"),e._uU(487,"-"),e.qZA()()()(),e.TgZ(488,"h3",68)(489,"span"),e._uU(490,"nz-tree-node-checkbox"),e.qZA(),e.TgZ(491,"label",39),e._uU(492,"component"),e.qZA(),e.TgZ(493,"a",69),e._uU(494,"#"),e.qZA()(),e.TgZ(495,"p"),e._uU(496,"Define the checkbox feature of a node."),e.qZA(),e.TgZ(497,"table")(498,"thead")(499,"tr")(
1500,"th"),e._uU(501,"Property"),e.qZA(),e.TgZ(502,"th"),e._uU(503,"Description"),e.qZA(),e.TgZ(504,"th"),e._uU(505,"Type"),e.qZA(),e.TgZ(506,"th"),e._uU(507,"Default"),e.qZA()()(),e.TgZ(508,"tbody")(509,"tr")(510,"td"),e._uU(511,"[nzChecked]"),e.qZA(),e.TgZ(512,"td"),e._uU(513,"Whether the checkbox is checked"),e.qZA(),e.TgZ(514,"td")(515,"code"),e._uU(516,"boolean"),e.qZA()(),e.TgZ(517,"td")(518,"code"),e._uU(519,"false"),e.qZA()()(),e.TgZ(520,"tr")(521,"td"),e._uU(522,"[nzDisabled]"),e.qZA(),e.TgZ(523,"td"),e._uU(524,"Whether the checkbox is disabled"),e.qZA(),e.TgZ(525,"td")(526,"code"),e._uU(527,"boolean"),e.qZA()(),e.TgZ(528,"td")(529,"code"),e._uU(530,"false"),e.qZA()()(),e.TgZ(531,"tr")(532,"td"),e._uU(533,"[nzIndeterminate]"),e.qZA(),e.TgZ(534,"td"),e._uU(535,"Whether the checkbox is indeterminate"),e.qZA(),e.TgZ(536,"td")(537,"code"),e._uU(538,"boolean"),e.qZA()(),e.TgZ(539,"td")(540,"code"),e._uU(541,"false"),e.qZA()()(),e.TgZ(542,"tr")(543,"td"),e._uU(544,"(nzClick)"),e.qZA(),e.TgZ(545,"td"),e._uU(546,"Event on click"),e.qZA(),e.TgZ(547,"td")(548,"code"),e._uU(549,"EventEmitter<MouseEvent>"),e.qZA()(),e.TgZ(550,"td"),e._uU(551,"-"),e.qZA()()()(),e.TgZ(552,"h2",70)(553,"span"),e._uU(554,"Classes"),e.qZA(),e.TgZ(555,"a",71),e._uU(556,"#"),e.qZA()(),e.TgZ(557,"h3",72)(558,"span")(559,"strong"),e._uU(560,"NzTreeFlatDataSource extends DataSource"),e.qZA()(),e.TgZ(561,"a",73),e._uU(562,"#"),e.qZA()(),e.TgZ(563,"h3",74)(564,"span"),e._uU(565,"Construction Parameters"),e.qZA(),e.TgZ(566,"a",75),e._uU(567,"#"),e.qZA()(),e.TgZ(568,"table")(569,"thead")(570,"tr")(571,"th"),e._uU(572,"Name"),e.qZA(),e.TgZ(573,"th"),e._uU(574,"Description"),e.qZA()()(),e.TgZ(575,"tbody")(576,"tr")(577,"td")(578,"code"),e._uU(579,"treeControl: FlatTreeControl<F, K>"),e.qZA()(),e.TgZ(580,"td"),e._uU(581,"The tree controller."),e.qZA()(),e.TgZ(582,"tr")(583,"td")(584,"code"),e._uU(585,"treeFlattener: NzTreeFlattener<T, F, K>"),e.qZA()(),e.TgZ(586,"td"),e._uU(587,"Flattener for convert nested nodes "),e.TgZ(588,"code"),e._uU(589,"T"),e.qZA(),e._uU(590," into flattened nodes "),e.TgZ(591,"code"),e._uU(592,"F"),e.qZA(),e._uU(593,"."),e.qZA()(),e.TgZ(594,"tr")(595,"td")(596,"code"),e._uU(597,"initialData: T[] = []"),e.qZA()(),e.TgZ(598,"td"),e._uU(599,"Initialized data."),e.qZA()()()(),e.TgZ(600,"h3",76)(601,"span"),e._uU(602,"Methods"),e.qZA(),e.TgZ(603,"a",77),e._uU(604,"#"),e.qZA()(),e.TgZ(605,"table")(606,"thead")(607,"tr")(608,"th"),e._uU(609,"Name"),e.qZA(),e.TgZ(610,"th"),e._uU(611,"Description"),e.qZA()()(),e.TgZ(612,"tbody")(613,"tr")(614,"td")(615,"code"),e._uU(616,"connect(collectionViewer: CollectionViewer): Observable<F[]>"),e.qZA()(),e.TgZ(617,"td"),e._uU(618,"Call from the TreeView component to listen for data updates."),e.qZA()(),e.TgZ(619,"tr")(620,"td")(621,"code"),e._uU(622,"disconnect(): void"),e.qZA()(),e.TgZ(623,"td"),e._uU(624,"Call when TreeView component is destroyed."),e.qZA()(),e.TgZ(625,"tr")(626,"td")(627,"code"),e._uU(628,"setData(value: T[]): void"),e.qZA()(),e.TgZ(629,"td"),e._uU(630,"Set the origin data"),e.qZA()(),e.TgZ(631,"tr")(632,"td")(633,"code"),e._uU(634,"getData(): T[]"),e.qZA()(),e.TgZ(635,"td"),e._uU(636,"Get the origin data"),e.qZA()()()(),e.TgZ(637,"h3",78)(638,"span")(639,"strong"),e._uU(640,"NzTreeFlattener"),e.qZA()(),e.TgZ(641,"a",79),e._uU(642,"#"),e.qZA()(),e.TgZ(643,"p"),e._uU(644,"Convert nested data with child nodes into node data with level information."),e.qZA(),e.TgZ(645,"h3",74)(646,"span"),e._uU(647,"Construction Parameters"),e.qZA(),e.TgZ(648,"a",75),e._uU(649,"#"),e.qZA()(),e.TgZ(650,"table")(651,"thead")(652,"tr")(653,"th"),e._uU(654,"Name"),e.qZA(),e.TgZ(655,"th"),e._uU(656,"Description"),e.qZA()()(),e.TgZ(657,"tbody")(658,"tr")(659,"td")(660,"code"),e._uU(661,"transformFunction: (node: T, level: number) => F"),e.qZA()(),e.TgZ(662,"td"),e._uU(663,"Receive a nested node and return a flattened node"),e.qZA()(),e.TgZ(664,"tr")(665,"td")(666,"code"),e._uU(667,"getLevel: (node: F) => number"),e.qZA()(),e.TgZ(668,"td"),e._uU(669,"Define the method to get the "),e.TgZ(670,"code"),e._uU(671,"level"),e.qZA(),e._uU(672," property"),e.qZA()(),e.TgZ(673,"tr")(674,"td")(675,"code"),e._uU(676,"isExpandable: (node: F) => boolean"),e.qZA()(),e.TgZ(677,"td"),e._uU(678,"Methods for defining whether a node is expandable"),e.qZA()(),e.TgZ(679,"tr")(680,"td")(681,"code"),e._uU(682,"getChildren: (node: T) => Observable<T[]> | T[] | undefined | null"),e.qZA()(),e.TgZ(683,"td"),e._uU(684,"Define methods to get children nodes from nested node"),e.qZA()()()(),e.TgZ(685,"h3",76)(686,"span"),e._uU(687,"Methods"),e.qZA(),e.TgZ(688,"a",77),e._uU(689,"#"),e.qZA()(),e.TgZ(690,"table")(691,"thead")(692,"tr")(693,"th"),e._uU(694,"Name"),e.qZA(),e.TgZ(695,"th"),e._uU(696,"Description"),e.qZA()()(),e.TgZ(697,"tbody")(698,"tr")(699,"td")(700,"code"),e._uU(701,"flattenNodes(stru
1cturedData: T[]): F[]"),e.qZA()(),e.TgZ(702,"td"),e._uU(703,"Receive nested data and return flattened data"),e.qZA()(),e.TgZ(704,"tr")(705,"td")(706,"code"),e._uU(707,"expandFlattenedNodes(nodes: F[], treeControl: TreeControl<F, K>): F[]"),e.qZA()(),e.TgZ(708,"td"),e._uU(709,"Get flattened node data based on expansion status"),e.qZA()()()(),e.fQ9(),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("nzOffsetTop",16),e.xp6(1),e.Q6J("nzAffix",!1),e.xp6(47),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzXl",12)("nzSpan",24),e.xp6(1),e.Q6J("nzId","components-tree-view-demo-basic")("nzLink","components-tree-view-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/basic.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-directory")("nzLink","components-tree-view-demo-directory")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/directory.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-line")("nzLink","components-tree-view-demo-line")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/line.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-search")("nzLink","components-tree-view-demo-search")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/search.md"),e.xp6(5),e.Q6J("nzXl",12)("nzSpan",24),e.xp6(1),e.Q6J("nzId","components-tree-view-demo-checkbox")("nzLink","components-tree-view-demo-checkbox")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/checkbox.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-dynamic")("nzLink","components-tree-view-demo-dynamic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/dynamic.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-editable")("nzLink","components-tree-view-demo-editable")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/editable.md"),e.xp6(5),e.Q6J("nzId","components-tree-view-demo-virtual-scroll")("nzLink","components-tree-view-demo-virtual-scroll")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/tree-view/demo/virtual-scroll.md"))},dependencies:[de.G,ce.IT,ce.Fp,Ne.$,le.t3,le.SK,be.SY,m.Ls,B.w,xe,Ee,ke,qe,ye,Fe,Se,Me],encapsulation:2})}return o})(),Vt=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({imports:[c.G,tt,A.Bz.forChild([{path:"en",component:Ot},{path:"zh",component:Mt}])]})}return o})()},2907:(ue,L,d)=>{d.d(L,{EZ:()=>k,Ie:()=>ee,Wr:()=>$,ub:()=>oe});var A=d(7582),c=d(9212),l=d(6223),P=d(8645),S=d(2438),v=d(9773),m=d(6700),f=d(4300),U=d(9388),N=d(8188),C=d(6814);const x=["*"],e=["inputElement"],E=["nz-checkbox",""];function I(_,q){if(1&_){const u=c.EpF();c.TgZ(0,"label",1),c.NdJ("nzCheckedChange",function(z){const w=c.CHM(u).$implicit,h=c.oxw();return c.KtG(h.onCheckedChange(w,z))}),c.TgZ(1,"span"),c._uU(2),c.qZA()()}if(2&_){const u=q.$implicit,p=c.oxw();c.Q6J("nzDisabled",u.disabled||p.nzDisabled)("nzChecked",u.checked),c.xp6(2),c.Oqu(u.label)}}let k=(()=>{class _{constructor(){this.nzOnChange=new c.vpe,this.checkboxList=[]}addCheckbox(u){this.checkboxList.push(u)}removeCheckbox(u){this.checkboxList.splice(this.checkboxList.indexOf(u),1)}onChange(){const u=this.checkboxList.filter(p=>p.nzChecked).map(p=>p.nzValue);this.nzOnChange.emit(u)}static#e=this.\u0275fac=function(p){return new(p||_)};static#t=this.\u0275cmp=c.Xpm({type:_,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:x,decls:1,vars:0,template:function(p,z){1&p&&(c.F$t(),c.Hsn(0))},encapsulation:2,changeDetection:0})}return _})(),ee=(()=>{class _{innerCheckedChange(u){this.nzDisabled||(this.nzChecked=u,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(u){this.nzChecked=u,this.cdr.markForCheck()}registerOnChange(u){this.onChange=u}registerOnTouched(u){this.onTouched=u}setDisabledState(u){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||u,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(u,p,z,g,w,h,Z){this.ngZone=u,this.elementRef=p,this.nzCheckboxWrapperComponent=z,this.cdr=g,this.focusMonitor=w,this.directionality=h,this.nzFormStatusService=Z,this.dir="ltr",this.destroy$=new P.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new c.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,v.R)(this.destroy$)).subscribe(u=>{u||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,v.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,S.R)(this.elementRef.nativeElement,"click").pipe((0,v.R)(this.destroy$)).subscribe(u=>{u.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,S.R)(this.inputElement.nativeElement,"click").pipe((0,v.R)(this.destroy$)).subscribe(u=>u.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(p){return new(p||_)(c.Y36(c.R0b),c.Y36(c.SBq),c.Y36(k,8),c.Y36(c.sBO),c.Y36(f.tE),c.Y36(U.Is,8),c.Y36(N.kH,8))};static#t=this.\u0275cmp=c.Xpm({type:_,selectors:[["","nz-checkbox",""]],viewQuery:function(p,z){if(1&p&&c.Gf(e,7),2&p){let g;c.iGM(g=c.CRH())&&(z.inputElement=g.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(p,z){2&p&&c.ekj("ant-checkbox-wrapper-in-form-item",!!z.nzFormStatusService)("ant-checkbox-wrapper-checked",z.nzChecked)("ant-checkbox-rtl","rtl"===z.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[c._Bn([{provide:l.JU,useExisting:(0,c.Gpc)(()=>_),multi:!0}])],attrs:E,ngContentSelectors:x,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(p,z){1&p&&(c.F$t(),c.TgZ(0,"span",0)(1,"input",1,2),c.NdJ("ngModelChange",function(w){return z.innerCheckedChange(w)}),c.qZA(),c._UZ(3,"span",3),c.qZA(),c.TgZ(4,"span"),c.Hsn(5),c.qZA()),2&p&&(c.ekj("ant-checkbox-checked",z.nzChecked&&!z.nzIndeterminate)("ant-checkbox-disabled",z.nzDisabled)("ant-checkbox-indeterminate",z.nzIndeterminate),c.xp6(1),c.Q6J("checked",z.nzChecked)("ngModel",z.nzChecked)("disabled",z.nzDisabled),c.uIk("autofocus",z.nzAutoFocus?"autofocus":null)("id",z.nzId))},dependencies:[l.Wl,l.JJ,l.On],encapsulation:2,changeDetection:0})}return(0,A.gn)([(0,m.yF)()],_.prototype,"nzAutoFocus",void 0),(0,A.gn)([(0,m.yF)()],_.prototype,"nzDisabled",void 0),(0,A.gn)([(0,m.yF)()],_.prototype,"nzIndeterminate",void 0),(0,A.gn)([(0,m.yF)()],_.prototype,"nzChecked",void 0),_})(),oe=(()=>{class _{trackByOption(u,p){return p.value}onCheckedChange(u,p){u.checked=p,this.onChange(this.options)}constructor(u,p,z,g){this.elementRef=u,this.focusMonitor=p,this.cdr=z,this.directionality=g,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new P.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,v.R)(this.destroy$)).subscribe(u=>{u||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,v.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(u){this.options=u,this.cdr.markForCheck()}registerOnChange(u){this.onChange=u}registerOnTouched(u){this.onTouched=u}setDisabledState(u){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||u,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#e=this.\u0275fac=function(p){return new(p||_)(c.Y36(c.SBq),c.Y36(f.tE),c.Y36(c.sBO),c.Y36(U.Is,8))};static#t=this.\u0275cmp=c.Xpm({type:_,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(p,z){2&p&&c.ekj("ant-checkbox-group-rtl","rtl"===z.dir)},inputs:{nzDisabled:"nzDisabled"},exportAs:["nzCheckboxGroup"],features:[c._Bn([{provide:l.JU,useExisting:(0,c.Gpc)(()=>_),multi:!0}])],decls:1,vars:2,consts:[["nz-checkbox","","class","ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange",4,"ngFor","ngForOf","ngForTrackBy"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange"]],template:function(p,z){1&p&&c.YNc(0,I,3,3,"label",0),2&p&&c.Q6J("ngForOf",z.options)("ngForTrackBy",z.trackByOption)},dependencies:[C.sg,ee],encapsulation:2})}return(0,A.gn)([(0,m.yF)()],_.prototype,"nzDisabled",void 0),_})(),$=(()=>{class _{static#e=this.\u0275fac=function(p){return new(p||_)};static#t=this.\u0275mod=c.oAB({type:_});static#n=this.\u0275inj=c.cJS({imports:[U.vT,C.ez,l.u5,f.rt]})}return _})()},1076:(ue,L,d)=>{d.d(L,{C:()=>m,U:()=>v});var A=d(9212),c=d(6814);const l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P=/([^\#-~ |!])/g;let v=(()=>{class f{constructor(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}transform(N,C,x,e){if(!C)return N;const E=new RegExp(C.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),x);return function S(f){return f.replace(/&/g,"&amp;").replace(l,U=>`&#${1024*(U.charCodeAt(0)-55296)+(U.charCodeAt(1)-56320)+65536};`).replace(P,U=>
1`&#${U.charCodeAt(0)};`).replace(/</g,"&lt;").replace(/>/g,"&gt;")}(N.replace(E,`${this.UNIQUE_WRAPPERS[0]}$&${this.UNIQUE_WRAPPERS[1]}`)).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),e?`<span class="${e}">`:"<span>").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"</span>")}static#e=this.\u0275fac=function(C){return new(C||f)};static#t=this.\u0275pipe=A.Yjl({name:"nzHighlight",type:f,pure:!0})}return f})(),m=(()=>{class f{static#e=this.\u0275fac=function(C){return new(C||f)};static#t=this.\u0275mod=A.oAB({type:f});static#n=this.\u0275inj=A.cJS({imports:[c.ez]})}return f})()},4854:(ue,L,d)=>{d.d(L,{i:()=>p,m:()=>z});var A=d(7582),c=d(6028),l=d(9212),P=d(6223),S=d(8645),v=d(2438),m=d(9773),f=d(2196),U=d(6700),N=d(4300),C=d(9388),x=d(6814),e=d(2987),E=d(227),I=d(2755);const k=["switchElement"];function ee(g,w){1&g&&l._UZ(0,"span",8)}function oe(g,w){if(1&g&&(l.ynx(0),l._uU(1),l.BQk()),2&g){const h=l.oxw(2);l.xp6(1),l.Oqu(h.nzCheckedChildren)}}function $(g,w){if(1&g&&(l.ynx(0),l.YNc(1,oe,2,1,"ng-container",9),l.BQk()),2&g){const h=l.oxw();l.xp6(1),l.Q6J("nzStringTemplateOutlet",h.nzCheckedChildren)}}function _(g,w){if(1&g&&(l.ynx(0),l._uU(1),l.BQk()),2&g){const h=l.oxw(2);l.xp6(1),l.Oqu(h.nzUnCheckedChildren)}}function q(g,w){if(1&g&&l.YNc(0,_,2,1,"ng-container",9),2&g){const h=l.oxw();l.Q6J("nzStringTemplateOutlet",h.nzUnCheckedChildren)}}let p=(()=>{class g{updateValue(h){this.isChecked!==h&&(this.isChecked=h,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(h,Z,D,M,W,he){this.nzConfigService=h,this.host=Z,this.ngZone=D,this.cdr=M,this.focusMonitor=W,this.directionality=he,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new S.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,m.R)(this.destroy$)).subscribe(h=>{this.dir=h,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,v.R)(this.host.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(h=>{h.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,v.R)(this.switchElement.nativeElement,"keydown").pipe((0,m.R)(this.destroy$)).subscribe(h=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:Z}=h;Z!==c.oh&&Z!==c.SV&&Z!==c.L_&&Z!==c.K5||(h.preventDefault(),this.ngZone.run(()=>{Z===c.oh?this.updateValue(!1):Z===c.SV?this.updateValue(!0):(Z===c.L_||Z===c.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,m.R)(this.destroy$)).subscribe(h=>{h||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(h){this.isChecked=h,this.cdr.markForCheck()}registerOnChange(h){this.onChange=h}registerOnTouched(h){this.onTouched=h}setDisabledState(h){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||h,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#e=this.\u0275fac=function(Z){return new(Z||g)(l.Y36(f.jY),l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(l.sBO),l.Y36(N.tE),l.Y36(C.Is,8))};static#t=this.\u0275cmp=l.Xpm({type:g,selectors:[["nz-switch"]],viewQuery:function(Z,D){if(1&Z&&l.Gf(k,7),2&Z){let M;l.iGM(M=l.CRH())&&(D.switchElement=M.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[l._Bn([{provide:P.JU,useExisting:(0,l.Gpc)(()=>g),multi:!0}])],decls:9,vars:16,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(Z,D){if(1&Z&&(l.TgZ(0,"button",0,1)(2,"span",2),l.YNc(3,ee,1,0,"span",3),l.qZA(),l.TgZ(4,"span",4),l.YNc(5,$,2,1,"ng-container",5)(6,q,1,1,"ng-template",null,6,l.W1O),l.qZA(),l._UZ(8,"div",7),l.qZA()),2&Z){const M=l.MAs(7);l.ekj("ant-switch-checked",D.isChecked)("ant-switch-loading",D.nzLoading)("ant-switch-disabled",D.nzDisabled)("ant-switch-small","small"===D.nzSize)("ant-switch-rtl","rtl"===D.dir),l.Q6J("disabled",D.nzDisabled)("nzWaveExtraNode",!0),l.uIk("id",D.nzId),l.xp6(3),l.Q6J("ngIf",D.nzLoading),l.xp6(2),l.Q6J("ngIf",D.isChecked)("ngIfElse",M)}},dependencies:[x.O5,e.dQ,E.Ls,I.f],encapsulation:2,changeDetection:0})}return(0,A.gn)([(0,U.yF)()],g.prototype,"nzLoading",void 0),(0,A.gn)([(0,U.yF)()],g.prototype,"nzDisabled",void 0),(0,A.gn)([(0,U.yF)()],g.prototype,"nzControl",void 0),(0,A.gn)([(0,f.oS)()],g.prototype,"nzSize",void 0),g})(),z=(()=>{class g{static#e=this.\u0275fac=function(Z){return new(Z||g)};static#t=this.\u0275mod=l.oAB({type:g});static#n=this.\u0275inj=l.cJS({imports:[C.vT,x.ez,e.vG,E.PV,I.T]})}return g})()}}]);

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.