@progress/kendo-angular-treeview 5.4.0 → 5.4.2-dev.202111011443
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-treeview.js +12 -12
- package/dist/cdn/main.js +1 -1
- package/dist/es/expand.directive.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/treeview-group.component.js +1 -1
- package/dist/es/treeview.component.js +1 -1
- package/dist/es2015/expand.directive.js +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/treeview-group.component.js +1 -1
- package/dist/es2015/treeview.component.js +1 -1
- package/dist/fesm2015/index.js +4 -4
- package/dist/fesm5/index.js +4 -4
- package/dist/npm/expand.directive.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/treeview-group.component.js +1 -1
- package/dist/npm/treeview.component.js +1 -1
- package/dist/systemjs/kendo-angular-treeview.js +1 -1
- package/package.json +5 -5
package/dist/cdn/main.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@progress/kendo-angular-common","rxjs/operators","@progress/kendo-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/animations","@angular/common","@telerik/kendo-draggable","@progress/kendo-angular-inputs"],t):"object"==typeof exports?exports.KendoAngularTreeview=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs")):e.KendoAngularTreeview=t(e.tslib,e["@angular/core"],e.rxjs,e["@progress/kendo-angular-common"],e["rxjs/operators"],e["@progress/kendo-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/animations"],e["@angular/common"],e["@telerik/kendo-draggable"],e["@progress/kendo-angular-inputs"])}(window,(function(e,t,i,n,o,r,a,s,d,c,l,p){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=46)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),o=i(8),r=/^(?:a|input|select|option|textarea|button|object)$/i;t.match=function(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!i&&i.call(e,t)},t.closestWithMatch=function(e,i){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(t.match(n,i))return n;n=n.parentElement||n.parentNode}return null},t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isBoolean=function(e){return"boolean"==typeof e},t.closestNode=function(e){return n.isDocumentAvailable()?e.closest?e.closest("li.k-treeview-item"):t.closestWithMatch(e,"li.k-treeview-item"):null},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),n="-1"===i,o=null!==i&&!n;return r.test(t)&&(o=!e.disabled&&!n),o}return!1},t.isContent=function(e){if(!n.isDocumentAvailable())return null;for(var i=e;i&&!t.match(i,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)i=i.parentNode;return i?t.match(i,".k-in:not(.k-treeview-load-more-button)"):void 0},t.getContentElement=function(e){if(!t.isPresent(e))return null;var i=".k-in:not(.k-treeview-load-more-button)";return t.match(e,i)?e:e.querySelector(i)},t.isLoadMoreButton=function(e){return t.isPresent(t.closestWithMatch(e,".k-in.k-treeview-load-more-button"))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.hasParent=function(e,i){return Boolean(t.closest(e,(function(e){return e===i})))},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,i){var n=i||t.closestNode(e);return n&&(n===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.dataItemsEqual=function(e,i){return!t.isPresent(e)&&!t.isPresent(i)||t.isPresent(e)&&t.isPresent(i)&&e.item.dataItem===i.item.dataItem},t.getDataItem=function(e){return t.isPresent(e)?e.item.dataItem:e},t.isArrayWithAtLeastOneItem=function(e){return e&&Array.isArray(e)&&0!==e.length},t.filterTree=function(e,i,n,o,r){var d=n.operator,l=n.ignoreCase,p=n.mode;void 0===r&&(r=0);var u="string"==typeof o?o:o[r];e.forEach((function(e){var n=("string"==typeof d?c(u,d,l):d)(e.dataItem,i);e.isMatch=n,e.visible=n,e.containsMatches=!1,n&&a(e.parent),e.children&&e.children.length>0&&("strict"!==p&&n?s(e.children):t.filterTree(e.children,i,{operator:d,ignoreCase:l,mode:p},o,r+1))}))};var a=function(e){t.isPresent(e)&&(e.containsMatches=!0,e.visible=!0,t.isPresent(e.parent)&&!e.parent.containsMatches&&a(e.parent))},s=function(e){e.forEach((function(e){e.visible=!0,e.children&&s(e.children)}))},d={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},c=function(e,t,i){return function(n,r){return function(e,t){return function(i,n){return t?e(i.toLowerCase(),n.toLowerCase()):e(i,n)}}(d[t],i)(o.getter(e)(n),r)}};t.buildTreeIndex=function(e,i){return[e,i].filter((function(e){return t.isPresent(e)})).join("_")},t.buildTreeItem=function(e,i,n){return t.isPresent(e)?{dataItem:e,index:t.buildTreeIndex(n,i)}:null},t.fetchLoadedDescendants=function(e,i){if(!t.isPresent(e)||0===e.children.length)return[];var n=e.children;return t.isPresent(i)&&(n=n.filter(i)),n.forEach((function(e){return n=n.concat(t.fetchLoadedDescendants(e,i))})),n},t.sameValues=function(e,t){if(e.length!==t.length)return!1;var i=new Set(t);return e.every((function(e){return i.has(e)}))}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(33),s=i(3),d=i(47),c=i(48),l=i(34),p=i(19),u=i(10),h=i(7),f=i(20),m=i(11),g=i(35),v=i(12),y=i(13),_=i(14),b=i(21),I=i(22),x=i(23),D=i(2),S=[u.ExpandStateService,h.IndexBuilderService,x.TreeViewLookupService,f.LoadingNotificationService,g.NodeChildrenService,m.NavigationService,I.SelectionService,l.DataChangeNotificationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.treeview"},{provide:_.DataBoundComponent,useExisting:o.forwardRef((function(){return C}))},{provide:b.ExpandableComponent,useExisting:o.forwardRef((function(){return C}))}],C=function(){function e(e,t,i,n,r,a,l,u,h,f,m){var g=this;this.element=e,this.changeDetectorRef=t,this.expandService=i,this.navigationService=n,this.nodeChildrenService=r,this.selectionService=a,this.treeViewLookupService=l,this.ngZone=u,this.renderer=h,this.dataChangeNotification=f,this.localization=m,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return g.data},this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.nodeDragStart=new o.EventEmitter,this.nodeDrag=new o.EventEmitter,this.filterStateChange=new o.EventEmitter,this.nodeDrop=new o.EventEmitter,this.nodeDragEnd=new o.EventEmitter,this.addItem=new o.EventEmitter,this.removeItem=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.nodeClick=new o.EventEmitter,this.nodeDblClick=new o.EventEmitter,this.trackBy=p.trackBy,this.isDisabled=p.isDisabled,this.isVisible=p.isVisible,this.navigable=!0,this.children=function(){return s.of([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new s.BehaviorSubject([]),this._animate=!0,this.subscriptions=new s.Subscription,this.domSubscriptions=[],d.validatePackage(c.packageMetadata)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{set:function(e){this.nodeTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{set:function(e){this.loadMoreButtonTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.dataChangeNotification.notify(),this.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||p.hasChildren},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||p.isChecked},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||p.isExpanded},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||p.isSelected},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),r.anyChanged(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var i=t.index,n=t.dataItem;return t.expand?e.expand.emit({index:i,dataItem:n}):e.collapse.emit({index:i,dataItem:n})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){r.hasObservers(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(r.isDocumentAvailable()){var e=D.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||D.nodeIndex(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var i=D.focusableNode(this.element);i&&i.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,i=this;D.match(e.target,".k-treeview-item")?t=e.target:D.isFocusable(e.target)||(t=D.closestNode(e.target)),t&&(this.navigationService.activateIndex(D.nodeId(e.target)),!this.isActive&&r.hasObservers(this.onFocus)&&this.ngZone.run((function(){i.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!D.match(e.target,".k-treeview-item")||e.relatedTarget&&D.match(e.relatedTarget,".k-treeview-item")&&D.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,r.hasObservers(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,i=e.target;if(("contextmenu"!==e.type||r.hasObservers(this.nodeClick))&&("click"!==e.type||r.hasObservers(this.nodeClick)||r.hasObservers(this.selectionChange)||D.isLoadMoreButton(i))&&("dblclick"!==e.type||r.hasObservers(this.nodeDblClick))&&!D.isFocusable(i)&&(D.isContent(i)||D.isLoadMoreButton(i))&&D.hasParent(i,this.element.nativeElement)){var n=D.nodeId(D.closestNode(i));n&&!this.navigationService.isDisabled(n)&&this.ngZone.run((function(){var i=t.treeViewLookupService.itemLookup(n);if("click"===e.type){if(t.navigationService.model.findNode(n).loadMoreButton)return void t.navigationService.notifyLoadMore(n);t.navigationService.selectIndex(n)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:i.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(o.isDevMode()&&!D.isPresent(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},e.prototype.registerLookupItems=function(e,t){var i=this;if(void 0===t&&(t=null),D.isPresent(e)&&0!==e.length){var n=D.nodeIndex(t),o=e.map((function(e,t){return D.buildTreeItem(e,t,n)}));D.isPresent(t)&&this.treeViewLookupService.registerChildren(n,o),o.forEach((function(e){i.treeViewLookupService.registerItem(e,t),i.hasChildren(e.dataItem)&&i.children(e.dataItem).subscribe((function(t){return i.registerLookupItems(t,e)}))}))}},n.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-treeview"),n.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),n.__decorate([o.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"direction",null),n.__decorate([o.ViewChild("assetsContainer",{read:o.ViewContainerRef,static:!0}),n.__metadata("design:type",o.ViewContainerRef)],e.prototype,"assetsContainer",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),n.__decorate([o.Input(),o.HostBinding("@.disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),n.__decorate([o.Output("blur"),n.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([o.Output("focus"),n.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"expand",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragStart",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrag",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"filterStateChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrop",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragEnd",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"addItem",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"removeItem",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeClick",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDblClick",void 0),n.__decorate([o.ContentChild(v.NodeTemplateDirective,{static:!0}),n.__metadata("design:type",v.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([o.Input("nodeTemplate"),n.__metadata("design:type",v.NodeTemplateDirective),n.__metadata("design:paramtypes",[v.NodeTemplateDirective])],e.prototype,"nodeTemplateRef",null),n.__decorate([o.ContentChild(y.LoadMoreButtonTemplateDirective,{static:!0}),n.__metadata("design:type",y.LoadMoreButtonTemplateDirective)],e.prototype,"loadMoreButtonTemplate",void 0),n.__decorate([o.Input("loadMoreButtonTemplate"),n.__metadata("design:type",y.LoadMoreButtonTemplateDirective),n.__metadata("design:paramtypes",[y.LoadMoreButtonTemplateDirective])],e.prototype,"loadMoreButtonTemplateRef",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"children",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:S,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),n.__metadata("design:paramtypes",[o.ElementRef,o.ChangeDetectorRef,u.ExpandStateService,m.NavigationService,g.NodeChildrenService,I.SelectionService,x.TreeViewLookupService,o.NgZone,o.Renderer2,l.DataChangeNotificationService,a.LocalizationService])],e)}();t.TreeViewComponent=C},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=n.__decorate([o.Injectable()],e)}();t.IndexBuilderService=r},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(36),t),n.__exportStar(i(37),t),n.__exportStar(i(56),t),n.__exportStar(i(29),t),n.__exportStar(i(38),t),n.__exportStar(i(39),t),n.__exportStar(i(40),t)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=n.__decorate([o.Injectable()],e)}();t.ExpandStateService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(33),s=i(3),d=i(49),c=i(2),l=function(){function e(e){var t,i=this;this.localization=e,this.expands=new s.Subject,this.moves=new s.Subject,this.checks=new s.Subject,this.selects=new s.Subject,this.loadMore=new s.Subject,this.navigable=!0,this.actions=((t={})[r.Keys.ArrowUp]=function(){return i.activate(i.model.findVisiblePrev(i.focusableItem))},t[r.Keys.ArrowDown]=function(){return i.activate(i.model.findVisibleNext(i.focusableItem))},t[r.Keys.ArrowLeft]=function(){return!i.isLoadMoreButton&&i.expand({expand:i.localization.rtl,intercept:i.localization.rtl?i.moveToFirstVisibleChild:i.moveToParent})},t[r.Keys.ArrowRight]=function(){return!i.isLoadMoreButton&&i.expand({expand:!i.localization.rtl,intercept:i.localization.rtl?i.moveToParent:i.moveToFirstVisibleChild})},t[r.Keys.Home]=function(){return i.activate(i.model.firstVisibleNode())},t[r.Keys.End]=function(){return i.activate(i.model.lastVisibleNode())},t[r.Keys.Enter]=function(){return i.handleEnter()},t[r.Keys.Space]=function(){return i.handleSpace()},t),this.isFocused=!1,this._model=new d.NavigationModel,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return c.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(c.nodeIndex(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&c.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){c.isPresent(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return c.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,i,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);var r=this.model.findNode(t);c.isPresent(r)&&(this.model.unregisterItem(r.id,r.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,i,n,o)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,i=e.intercept,n=c.nodeIndex(this.activeItem);n&&!i(n)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(c.nodeIndex(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(c.nodeIndex(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.NavigationService=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewNodeTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.NodeTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.LoadMoreButtonTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){}return e=n.__decorate([o.Injectable()],e)}();t.DataBoundComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,r,a=i(4),s=i(2),d=i(9),c=(n=function(){if(!a.isDocumentAvailable()||!s.isPresent(document.body))return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},r=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r||(o=n.apply(void 0,e),r=!0),o});t.getContainerOffset=function(e){if(!e||!c())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var i=t.getBoundingClientRect();return{left:i.left-t.scrollLeft,top:i.top-t.scrollTop}}return{left:0,top:0}},t.getDropAction=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return d.DropAction.Invalid;switch(e){case d.DropPosition.Over:return d.DropAction.Add;case d.DropPosition.Before:return s.isPresent(s.closestNode(t).previousElementSibling)?d.DropAction.InsertMiddle:d.DropAction.InsertTop;case d.DropPosition.After:return s.isPresent(s.closestNode(t).nextElementSibling)?d.DropAction.InsertMiddle:d.DropAction.InsertBottom;default:return d.DropAction.Invalid}},t.getDropPosition=function(e,t,i,n,o){if(s.isPresent(e)&&s.isPresent(t)&&s.isPresent(n)&&s.isPresent(o)){var r=s.closestWithMatch(t,".k-mid");if(s.isPresent(r)){var a=s.getContentElement(r),c=s.hasParent(r,s.closestNode(e));if(s.isPresent(a)&&a!==e&&!c){var l=a.getBoundingClientRect(),p=l.height/(s.isContent(t)?4:2),u=i-o.top,h=l.top-o.top;return u<h+p?d.DropPosition.Before:u>=h+l.height-p?d.DropPosition.After:d.DropPosition.Over}}}},t.treeItemFromEventTarget=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return null;var i=s.closestNode(t),n=s.nodeId(i),o=e.itemLookup(n);return s.isPresent(o)&&s.isPresent(o.item.dataItem)?o:null},t.collapseEmptyParent=function(e,t,i){s.isPresent(e)&&0===t.length&&i.isExpanded(e.item.dataItem,e.item.index)&&i.collapseNode(e.item.dataItem,e.item.index)},t.expandDropTarget=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},t.getDropTarget=function(e){return a.isDocumentAvailable()&&s.isPresent(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},t.updateMovedItemIndex=function(e,t){var i=e.split("_"),n=t.split("_");if(i.length<n.length)return e;var o=n.length-1,r=n.slice(0,o).join("_"),a=i.slice(0,o).join("_"),s=n.length-1,d=Number(n[s]),c=Number(i[s]);return r===a&&c>d?(i[s]=String(c-1),i.join("_")):e};var l=new RegExp("(auto|scroll)");t.getScrollableContainer=function(e){for(;s.isPresent(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,i=l.test(getComputedStyle(e).overflowY);if(t&&i)return e;e=e.parentNode}return e};var p=function(e){return Math.floor(e.scrollTop)<=0},u=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight};t.scrollElementBy=function(e,t,i){if(s.isPresent(e)&&a.isDocumentAvailable())for(var n=e.scrollTop,o=t,r=0;n===e.scrollTop&&(i!==d.ScrollDirection.Up||!p(e))&&(i!==d.ScrollDirection.Down||!u(e))&&r<20;)e.scrollTop+=o*i,o+=1,r+=1}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(57),s=i(58),d=i(59),c=i(17),l=i(18),p=i(15),u=i(2),h=i(5),f=i(9),m={enabled:!0,step:1,interval:1},g=function(){function e(e,t,i,n,o){this.element=e,this.zone=t,this.treeview=i,this.dragClueService=n,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},m,e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;u.isContent(t.target)&&(this.draggedItem=u.closestWithMatch(t.target,".k-in"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,i=e.originalEvent,n=e.clientX,o=e.clientY;if(this.shouldInitiateDragStart({clientX:n,clientY:o})&&this.initiateDragStart(),u.isPresent(this.draggedItem)&&!u.isPresent(this.pendingDragStartEvent)){var a=p.getDropTarget(i);r.hasObservers(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(i,a)}));var s=this.getTargetTreeView(a),d=p.getDropPosition(this.draggedItem,a,o,s,this.containerOffset),c=u.closestWithMatch(a,".k-mid"),l=p.getDropAction(d,a),h=p.treeItemFromEventTarget(this.treeview,this.draggedItem),f=p.treeItemFromEventTarget(s,a);this.updateDropHintState(d,c,l,h,f),this.updateDragClueState(l,n,o,h,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,i=e.originalEvent,n=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!u.isPresent(this.draggedItem)||u.isPresent(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var o=p.getDropTarget(i),a=this.treeview,s=this.getTargetTreeView(o),d=p.getDropPosition(this.draggedItem,o,n,this.getTargetTreeView(o),this.containerOffset),c=p.treeItemFromEventTarget(a,this.draggedItem),l=p.treeItemFromEventTarget(s,o);u.isPresent(l)&&u.isPresent(d)?this.zone.run((function(){return t.notifyDrop({sourceItem:c,destinationItem:l,dropPosition:d,sourceTree:a,destinationTree:s},i)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),r.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:c,destinationItem:l,originalEvent:i})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,i,n,o){if(u.isPresent(t)&&e!==f.DropPosition.Over&&u.isPresent(e)){var r=t.getBoundingClientRect(),a=e===f.DropPosition.Before?r.top:r.top+r.height;this.dropHintService.updateDropHintData(i,n,o),this.dropHintService.move(r.left-this.containerOffset.left,a-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,i,n,o){this.dragClueService.move(t-this.containerOffset.left,i-this.containerOffset.top),this.dragClueService.updateDragClueData(e,n,o),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new a.default({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var i=p.treeItemFromEventTarget(this.treeview,t),n=new f.TreeItemDragStartEvent({sourceItem:i,originalEvent:e});return this.treeview.nodeDragStart.emit(n),n},e.prototype.notifyDrag=function(e,t){var i={sourceItem:p.treeItemFromEventTarget(this.treeview,this.draggedItem),destinationItem:p.treeItemFromEventTarget(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(i)},e.prototype.notifyDrop=function(e,t){var i=new f.TreeItemDropEvent(e,t);e.destinationTree.nodeDrop.emit(i),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!i.isDefaultPrevented()&&i.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):i.isDefaultPrevented()?this.dragClueService.hide():i.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,i=u.closestWithMatch(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return u.isPresent(e)&&e.element.nativeElement===i}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!u.isPresent(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(r.hasObservers(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,p.getDropTarget(e.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=p.getContainerOffset(this.draggedItem),this.pendingDragStartEvent=null},n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCopy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"startDragAfter",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"autoScroll",void 0),n.__decorate([o.ContentChild(c.DragClueTemplateDirective,{static:!1}),n.__metadata("design:type",c.DragClueTemplateDirective)],e.prototype,"dragClueTemplate",void 0),n.__decorate([o.ContentChild(l.DropHintTemplateDirective,{static:!1}),n.__metadata("design:type",l.DropHintTemplateDirective)],e.prototype,"dropHintTemplate",void 0),n.__decorate([o.HostBinding("style.user-select"),o.HostBinding("style.-ms-user-select"),o.HostBinding("style.-moz-user-select"),o.HostBinding("style.-webkit-user-select"),n.__metadata("design:type",String)],e.prototype,"userSelectStyle",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDrop]",providers:[s.DragClueService,d.DropHintService]}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,h.TreeViewComponent,s.DragClueService,d.DropHintService])],e)}();t.DragAndDropDirective=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragClueTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DragClueTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewDropHintTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DropHintTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=function(){return!1},t.isChecked=function(){return"none"},t.isDisabled=function(){return!1},t.isExpanded=function(){return!0},t.isSelected=function(){return!1},t.isVisible=function(){return!0},t.trackBy=function(e,t){return t}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=n.__decorate([o.Injectable()],e)}();t.LoadingNotificationService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){}return e=n.__decorate([o.Injectable()],e)}();t.ExpandableComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=n.__decorate([o.Injectable()],e)}();t.SelectionService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=/\d+$/,s=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var i={children:[],item:e,parent:this.item(r.nodeIndex(t))};this.map.set(e.index,i)},e.prototype.registerChildren=function(e,t){var i=this.item(e);i&&(i.children=t)},e.prototype.unregisterItem=function(e,t){var i=this.item(e);i&&i.item.dataItem===t&&(this.map.delete(e),i.parent&&i.parent.children&&(i.parent.children=i.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,i){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,i),this.addToParent(t,i))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var i=this.item(t.index),n=parseInt(a.exec(e.index)[0],10);i.children=i.children||[],i.children.splice(n,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var i=t.item(e.index),n=i.item,o=i.parent,r=i.children;return{children:t.mapChildren(r),item:n,parent:o}}))},e=n.__decorate([o.Injectable()],e)}();t.TreeViewLookupService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(2),s=i(3),d=i(6),c=function(){function e(e,t){var i=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.checkActions={multiple:function(e){return i.checkMultiple(e)},single:function(e){return i.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return i.check(e)})));var n=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(d.filter((function(){return i.options.checkChildren&&i.treeView.loadOnDemand})),d.tap((function(e){return n.push(e)})),d.switchMap((function(){return i.zone.onStable.pipe(d.take(1))}))).subscribe((function(){return i.addCheckedItemsChildren(n)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!a.isPresent(this.checkable)||"string"==typeof this.checkable)return e;var t=a.isBoolean(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,i){var n=t.key,o=t.result;return e===(n+=i)||o?{result:!0}:{key:n+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var i=this.options,n=i.mode,o=i.checkParents;return"multiple"===n&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return a.isPresent(this.checkKey)?"string"==typeof this.checkKey&&a.isPresent(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,i=t.enabled,n=t.mode,o=this.checkActions[n]||a.noop;i&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var i=e.treeView.itemLookup(t.item.index);e.check(i)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(a.isPresent(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var i=this.itemKey(e.item);if(a.isPresent(i)){var n=new Set(this.checkedKeys),o=[i];if(this.options.checkChildren){var r=a.fetchLoadedDescendants(e,(function(e){var i=e.item;return t.treeView.isVisible(i.dataItem,i.index)&&!t.treeView.isDisabled(i.dataItem,i.index)})).map((function(e){var i=e.item;return t.itemKey(i)}));o.push.apply(o,r)}var s=!n.has(i);o.forEach((function(e){s?n.add(e):n.delete(e)})),this.checkedKeys=Array.from(n)}}},e.prototype.checkParents=function(e){var t=this;if(a.isPresent(e)){for(var i=new Set(this.checkedKeys),n=e;n;){var o=this.itemKey(n.item);n.children.every((function(e){return i.has(t.itemKey(e))}))?i.add(o):i.delete(o),n=n.parent}this.checkedKeys=Array.from(i)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(a.isPresent(e)&&0!==e.length){var i=this.checkedKeys.length,n=new Set(this.checkedKeys);e.forEach((function(e){var i=t.itemKey(e.item);n.has(i)&&e.children.forEach((function(i){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(i.dataItem,i.index)||n.add(t.itemKey(i))}))})),i!==n.size&&(this.checkedKeys=Array.from(n),this.zone.run((function(){return t.notify()})))}},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),n.__decorate([o.Input("checkBy"),n.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),n.__decorate([o.Input("kendoTreeViewCheckable"),n.__metadata("design:type",Object)],e.prototype,"checkable",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewCheckable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent,o.NgZone])],e)}();t.CheckDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=function(){function e(e,t){var i=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return i.disabledKeys.indexOf(i.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),n.__decorate([o.Input("kendoTreeViewDisable"),n.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDisable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.DisableDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(21),a=i(3),s=i(6),d=i(2),c={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},l=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(e,i,n){(i.containsMatches||i.isMatch&&n&&d.isArrayWithAtLeastOneItem(i.children))&&e.push(t.itemKey({dataItem:i.dataItem,index:i.index})),d.isArrayWithAtLeastOneItem(i.children)&&i.children.forEach((function(i){t.updateExpandedNodes(e,i,n)}))},this.getEveryExpandKey=function(e,i){d.isArrayWithAtLeastOneItem(i.children)&&e.push(t.itemKey({dataItem:i.dataItem,index:i.index})),d.isArrayWithAtLeastOneItem(i.children)&&i.children.forEach((function(i){t.getEveryExpandKey(e,i)}))},this.subscriptions.add(a.merge(this.component.expand.pipe(s.map((function(e){return n.__assign({expand:!0},e)}))),this.component.collapse.pipe(s.map((function(e){return n.__assign({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,i){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:i}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=d.isBoolean(this.expandOnFilter)?{enabled:this.expandOnFilter}:n.__assign({},this.expandOnFilter,{enabled:!0});return Object.assign({},c,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=Array.from(new Set(e))},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,i=e.dataItem,n=e.expand,o=this.itemKey({index:t,dataItem:i}),r=this.expandedKeys.indexOf(o),a=!1;r>-1&&!n?(this.expandedKeys.splice(r,1),a=!0):-1===r&&n&&(this.expandedKeys.push(o),a=!0),a&&this.expandedKeysChange.emit(this.expandedKeys)},e.prototype.handleAutoExpand=function(e){var t=this,i=e.nodes,n=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var r=this.filterExpandSettings,a=r.maxAutoExpandResults,s=r.expandMatches,c=r.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!o||-1!==a&&n>a){switch(c){case"initial":d.sameValues(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=i.reduce((function(e,i){return t.getEveryExpandKey(e,i),e}),[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;case"none":default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{var l=i.reduce((function(e,i){return t.updateExpandedNodes(e,i,s),e}),[]);d.sameValues(this.expandedKeys,l)||(this.expandedKeys=l,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),n.__decorate([o.Input("expandBy"),n.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"expandOnFilter",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewExpandable]"}),n.__metadata("design:paramtypes",[r.ExpandableComponent])],e)}();t.ExpandDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(2),s=i(3),d=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,i){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:i}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!a.isPresent(this.selection)||"string"==typeof this.selection)return e;var t=a.isBoolean(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,i=t.enabled,n=t.mode,o=this.selectActions[n]||a.noop;i&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),i=this.selectedKeys.indexOf(t),n=i>-1;a.isPresent(t)&&(n?this.selectedKeys.splice(i,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),n.__decorate([o.Input("selectBy"),n.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),n.__decorate([o.Input("kendoTreeViewSelectable"),n.__metadata("design:type",Object)],e.prototype,"selection",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),n.__decorate([o.HostBinding("attr.aria-multiselectable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewSelectable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(8),a=i(4),s=i(14),d=i(2),c=i(3),l=i(55),p=i(16),u=i(19),h=i(7),f=i(45),m=new h.IndexBuilderService,g=function(e,t,i,n){return void 0===i&&(i=null),void 0===n&&(n=""),d.isArrayWithAtLeastOneItem(e)?e.map((function(e,o){var a=m.nodeIndex(o.toString(),n),s={dataItem:e,index:a,parent:i,visible:!0};return s.children=g(r.getter(t)(e),t,s,a),s})):[]},v=function(e){function t(t,i){var n=e.call(this,t)||this;n.component=t,n.dragAndDropDirective=i,n.loadOnDemand=!0,n.originalData=[];var o=!d.isPresent(n.dragAndDropDirective);return n.component.isVisible=o?function(e){return n.visibleNodes.has(e)}:u.isVisible,n}return n.__extends(t,e),Object.defineProperty(t.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=g(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;d.isPresent(this.childrenField)&&(this.component.children=function(t){return c.of(r.getter(e.childrenField)(t))},this.component.hasChildren=function(t){var i=r.getter(e.childrenField)(t);return Boolean(i&&i.length)},this.component.editService=new l.HierarchyEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){a.isChanged("childrenField",e,!1)&&(this.nodes=this.originalData),a.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"childrenField",null),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=n.__decorate([o.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),n.__param(1,o.Optional()),n.__param(1,o.Host()),n.__metadata("design:paramtypes",[s.DataBoundComponent,p.DragAndDropDirective])],t)}(f.FilteringBase);t.HierarchyBindingDirective=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),a=i(8),s=i(3),d=i(62),c=i(14),l=i(2),p=i(63),u=i(7),h=i(45),f=function(e,t,i){return t.filter((function(t){return e(t)===i}))},m=new u.IndexBuilderService,g=function(e,t,i,n,o,r){return void 0===o&&(o=null),void 0===r&&(r=""),l.isArrayWithAtLeastOneItem(e)?e.map((function(e,s){var d=m.nodeIndex(s.toString(),r),c={dataItem:e,index:d,parent:o,visible:!0};return c.children=g(f(a.getter(i),t||[],a.getter(n)(e)),t,i,n,c,d),c})):[]},v=function(e){function t(t){var i=e.call(this,t)||this;return i.component=t,i.loadOnDemand=!0,i.originalData=[],i.component.isVisible=function(e){return i.visibleNodes.has(e)},i}return n.__extends(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],l.isNullOrEmptyString(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{var t=a.getter(this.parentIdField);this.component.nodes=this.originalData.filter(d.compose(l.isBlank,t)),this.filterData=g(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(l.isPresent(this.parentIdField)&&l.isPresent(this.idField)){var t=function(t){return f(a.getter(e.parentIdField),e.originalData||[],a.getter(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return s.of(t(e))},this.component.editService=new p.FlatEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&l.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){o.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData),o.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&l.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"idField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=n.__decorate([r.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),n.__metadata("design:paramtypes",[c.DataBoundComponent])],t)}(h.FilteringBase);t.FlatDataBindingDirective=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=i(5),s=i(2),d=function(){function e(e){this.treeview=e,this.subscriptions=new r.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDropEditing]"}),n.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.DragAndDropEditingDirective=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(5),s=i(2),d="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",c=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=r.guid(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(o.isDevMode()){if(!s.isPresent(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+d+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(s.isPresent(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+d+".");if(s.isPresent(e)&&!s.isPresent(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+d+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var i=e||this.rootLevelId,n=t>0?t:0;this.pageSizes.set(i,n)},e.prototype.getTotalNodesCount=function(e,t){return s.isPresent(e)&&s.isPresent(this.totalField)?e[this.totalField]:!s.isPresent(e)&&s.isPresent(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},n.__decorate([o.Input("kendoTreeViewLoadMore"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"totalRootNodes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"totalField",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoadMore]"}),n.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.LoadMoreDirective=c},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=function(){function e(){this.changes=new n.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=n.__decorate([o.Injectable()],e)}();t.NodeChildrenService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(t.DropAction||(t.DropAction={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(t.DropPosition||(t.DropPosition={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=function(e){function t(t,i){var n=e.call(this)||this;return n.isValid=!0,Object.assign(n,t),n.originalEvent=i,n}return n.__extends(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(i(29).PreventableEvent);t.TreeItemDropEvent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=function(e){function t(t){var i=e.call(this)||this;return Object.assign(i,t),i}return n.__extends(t,e),t}(i(29).PreventableEvent);t.TreeItemDragStartEvent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.TreeItemDragEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.copyPageSize=function(e,t,i){if(n.isPresent(e.loadMoreService)){var o=e.getNodePageSize(t);e.setNodePageSize(i,o)}},t.incrementPageSize=function(e,t){if(n.isPresent(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(t,i+1)}},t.decrementPageSize=function(e,t){if(n.isPresent(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(t,i-1)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(9),a=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case r.DropAction.Add:return"k-i-plus";case r.DropAction.InsertTop:return"k-i-insert-up";case r.DropAction.InsertBottom:return"k-i-insert-down";case r.DropAction.InsertMiddle:return"k-i-insert-middle";case r.DropAction.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},n.__decorate([o.HostBinding("class.k-header"),o.HostBinding("class.k-drag-clue"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([o.HostBinding("style.position"),n.__metadata("design:type",String)],e.prototype,"posistionStyle",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),n.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DragClueComponent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!n.isPresent(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){n.isPresent(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,i){void 0===i&&(i=0),this.element.style.left=e+i+"px",this.element.style.top=t+i+"px"},e}();t.DragAndDropAssetService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},n.__decorate([o.HostBinding("class.k-drop-hint-container"),n.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),n.__decorate([o.HostBinding("style.position"),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([o.HostBinding("style.pointer-events"),n.__metadata("design:type",String)],e.prototype,"pointerEvents",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),n.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DropHintComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(60),a=i(2),s=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=r.DEFAULT_FILTER_SETTINGS}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=n.__assign({},r.DEFAULT_FILTER_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&a.filterTree(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),a.isPresent(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"filterSettings",null),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"filter",null),e}();t.FilteringBase=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.TreeViewComponent=n.TreeViewComponent;var o=i(50);t.TreeViewModule=o.TreeViewModule;var r=i(12);t.NodeTemplateDirective=r.NodeTemplateDirective;var a=i(24);t.CheckDirective=a.CheckDirective;var s=i(25);t.DisableDirective=s.DisableDirective;var d=i(26);t.ExpandDirective=d.ExpandDirective;var c=i(27);t.SelectDirective=c.SelectDirective;var l=i(14);t.DataBoundComponent=l.DataBoundComponent;var p=i(21);t.ExpandableComponent=p.ExpandableComponent;var u=i(28);t.HierarchyBindingDirective=u.HierarchyBindingDirective;var h=i(30);t.FlatDataBindingDirective=h.FlatDataBindingDirective;var f=i(16);t.DragAndDropDirective=f.DragAndDropDirective;var m=i(31);t.DragAndDropEditingDirective=m.DragAndDropEditingDirective;var g=i(18);t.DropHintTemplateDirective=g.DropHintTemplateDirective;var v=i(17);t.DragClueTemplateDirective=v.DragClueTemplateDirective;var y=i(36);t.DropAction=y.DropAction;var _=i(37);t.DropPosition=_.DropPosition;var b=i(38);t.TreeItemDropEvent=b.TreeItemDropEvent;var I=i(39);t.TreeItemDragStartEvent=I.TreeItemDragStartEvent;var x=i(40);t.TreeItemDragEvent=x.TreeItemDragEvent;var D=i(32);t.LoadMoreDirective=D.LoadMoreDirective;var S=i(13);t.LoadMoreButtonTemplateDirective=S.LoadMoreButtonTemplateDirective},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1626259226,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),o=i(2),r=function(e){return e||{}},a=function(e){return r(e).children||[]},s=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var i=e[t];if(i.visible)return i}return null},d=function(){function e(){this.ib=new n.IndexBuilderService,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=s(this.nodes);o.isPresent(e)&&a(e).length>0;){var t=a(e),i=s(t);if(!o.isPresent(i))return e;e=i}return e},e.prototype.closestNode=function(e){var t=r(this.findNode(e)).prev||this.firstVisibleNode();return r(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return a(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,i=this.findParent(t),n=this.ib.lastLevelIndex(t),o=this.container(i).slice(0,n).every((function(e){return!e.visible}));if(0===n||o)return i;var r=this.findNode(t),a=this.visibleSibling(r,-1);if(a)for(var d=this.container(a);d.length>0&&d.some((function(e){return e.visible}));)a=s(d),d=this.container(a);return a},e.prototype.findVisibleNext=function(e){var t=this.container(e),i=t.some((function(e){return e.visible}));return 0!==t.length&&i?t.find((function(e){return e.visible})):this.visibleSibling(e,1)},e.prototype.registerItem=function(e,t,i,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);var r=this.ib.level(t),a=this.findParent(t);if(a||1===r){var s={id:e,children:[],index:t,parent:a,disabled:i,loadMoreButton:n,visible:o};this.insert(s,a)}},e.prototype.unregisterItem=function(e,t){var i=this.find(t,this.nodes);if(i&&i.id===e){var n=this.container(i.parent);n.splice(n.indexOf(i),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return o.isPresent(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var i=this.childLevel(t),n=this.ib.indexForLevel(e,i),o=i===this.ib.level(e),r=t.find((function(e){return e&&e.index===n}));return r?o?r:this.find(e,r.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.visibleSibling=function(e,t){if(!e)return null;for(var i=this.findParent(e.index),n=this.container(i),r=n.indexOf(e)+t,a=n[r];o.isPresent(a);){if(a.visible)return a;a=n[r+=t]}return this.visibleSibling(i,t)},e}();t.NavigationModel=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(51),s=i(12),d=i(24),c=i(25),l=i(26),p=i(27),u=i(28),h=i(30),f=i(16),m=i(17),g=i(18),v=i(31),y=i(32),_=i(13),b=[r.TreeViewComponent,s.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,l.ExpandDirective,p.SelectDirective,u.HierarchyBindingDirective,h.FlatDataBindingDirective,f.DragAndDropDirective,m.DragClueTemplateDirective,g.DropHintTemplateDirective,v.DragAndDropEditingDirective,y.LoadMoreDirective,_.LoadMoreButtonTemplateDirective],I=function(){function e(){}return e=n.__decorate([o.NgModule({exports:[b],imports:[a.SharedModule]})],e)}();t.TreeViewModule=I},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(52),s=i(54),d=i(12),c=i(24),l=i(25),p=i(26),u=i(27),h=i(28),f=i(61),m=i(30),g=i(64),v=i(65),y=i(66),_=i(16),b=i(17),I=i(18),x=i(42),D=i(44),S=i(31),C=i(32),k=i(13),O=i(68),E=[r.TreeViewComponent,a.TreeViewGroupComponent,g.TreeViewItemDirective,v.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,l.DisableDirective,p.ExpandDirective,u.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,m.FlatDataBindingDirective,_.DragAndDropDirective,b.DragClueTemplateDirective,x.DragClueComponent,I.DropHintTemplateDirective,D.DropHintComponent,S.DragAndDropEditingDirective,C.LoadMoreDirective,k.LoadMoreButtonTemplateDirective],P=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[E],exports:[E],imports:[s.CommonModule,y.CheckBoxModule,O.InputsModule],entryComponents:[x.DragClueComponent,D.DropHintComponent]})],e)}();t.SharedModule=P},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(53),a=i(8),s=i(10),d=i(7),c=i(23),l=i(11),p=i(35),u=i(2),h=i(20),f=i(3),m=i(6),g=i(34),v=function(){function e(e,t,i,n,o,r,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=i,this.treeViewLookupService=n,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new f.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return f.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!!u.isPresent(this.loadMoreService)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return u.isPresent(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(u.isPresent(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return u.isPresent(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,i){i?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=u.isArray(this.textField)?this.textField[0]:this.textField;return a.getter(t)(e)},e.prototype.ngOnDestroy=function(){u.isPresent(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),u.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(m.filter((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var i=this;return this.children(e).pipe(m.catchError((function(){return i.loadingService.notifyLoaded(t),f.EMPTY})),m.tap((function(){return i.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){u.isPresent(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,u.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(m.finalize((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var i=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(i)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(i))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,i){return{dataItem:e,index:t.nodeIndex(i)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){u.isPresent(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},n.__decorate([o.HostBinding("class.k-group"),n.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),n.__decorate([o.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"touchActions",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"nodes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"loadMoreService",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"children",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=n.__decorate([o.Component({animations:[r.trigger("toggle",[r.transition("void => *",[r.style({height:0}),r.animate("0.1s ease-in",r.style({height:"*"}))]),r.transition("* => void",[r.style({height:"*"}),r.animate("0.1s ease-in",r.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),n.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,d.IndexBuilderService,c.TreeViewLookupService,l.NavigationService,p.NodeChildrenService,g.DataChangeNotificationService,o.ChangeDetectorRef])],e)}();t.TreeViewGroupComponent=v},function(e,t){e.exports=d},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),o=i(9),r=i(15),a=i(41),s=i(2),d=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,i=e.destinationItem,d=e.dropPosition,c=e.sourceTree,l=e.destinationTree,p=Object.assign({},s.getDataItem(t));if(d===o.DropPosition.Over){r.expandDropTarget(i,l);var u=this.childrenFor(s.getDataItem(i)),h=s.isPresent(l.loadMoreService)?Math.min(l.loadMoreService.getGroupSize(s.getDataItem(i)),u.length):u.length;u.splice(h,0,p),n.setter(this.hierarchyBinding.childrenField)(s.getDataItem(i),u),this.movedItemNewIndex=s.buildTreeIndex(i.item.index,h)}else{var f=this.getParentNodes(i,l),m=d===o.DropPosition.After?1:0;h=f.indexOf(s.getDataItem(i))+m;f.splice(h,0,p);var g=i.parent?i.parent.item.index:null;this.movedItemNewIndex=s.buildTreeIndex(g,h)}var v=d===o.DropPosition.Over?s.getDataItem(i):s.getDataItem(i.parent);a.incrementPageSize(l,v),a.copyPageSize(l,s.getDataItem(t),p),c===l||l.loadOnDemand||l.preloadChildNodes(),c!==l&&(l.changeDetectorRef.detectChanges(),l.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,i=e.sourceTree,n=e.destinationTree,o=this.getParentNodes(t,i),d=o.indexOf(s.getDataItem(t));if(o.splice(d,1),r.collapseEmptyParent(t.parent,o,i),a.decrementPageSize(i,s.getDataItem(t.parent)),i.loadOnDemand||i.preloadChildNodes(),i===n){n.changeDetectorRef.detectChanges();var c=r.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);n.focus(c)}},e.prototype.getParentNodes=function(e,t){return s.isPresent(e.parent)?this.childrenFor(s.getDataItem(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return n.getter(this.hierarchyBinding.childrenField)(e)||[]},e}();t.HierarchyEditingService=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(t.ScrollDirection||(t.ScrollDirection={}))},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(42),a=i(9),s=i(2),d=i(43),c=i(15);t.CLUE_OFFSET=10,t.RETURN_ANIMATION_DURATION=200;var l=function(e){function i(t){var i=e.call(this)||this;return i.componentFactoryResolver=t,i}return n.__extends(i,e),i.prototype.initialize=function(e,t){s.isPresent(this._componentRef)&&this.ngOnDestroy();var i=this.componentFactoryResolver.resolveComponentFactory(r.DragClueComponent);this.componentRef=e.createComponent(i),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},i.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},i.prototype.move=function(i,n){e.prototype.move.call(this,i,n,t.CLUE_OFFSET)},i.prototype.animateDragClueToElementPosition=function(e){var i=this;if(s.isPresent(e)&&s.isPresent(this.element.animate)){var n=e.getBoundingClientRect(),o=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(n.left-o.left)+"px, "+(n.top-o.top)+"px)"}],t.RETURN_ANIMATION_DURATION),this.returnAnimation.onfinish=function(){return i.hide()}}else this.hide()},i.prototype.cancelReturnAnimation=function(){s.isPresent(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},i.prototype.updateDragClueData=function(e,t,i){var n=this.componentRef.instance;e===n.action&&s.dataItemsEqual(t,n.sourceItem)&&s.dataItemsEqual(i,n.destinationItem)||(n.action=e,n.sourceItem=t,n.destinationItem=i,n.detectChanges())},i.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},i.prototype.scrollIntoView=function(e){var t=e.step,i=e.interval;this.cancelScroll();var n=c.getScrollableContainer(this.element);if(s.isPresent(n)){var o=n.getBoundingClientRect(),r=this.element.getBoundingClientRect(),d=Math.max(o.top,0),l=d+r.height,p=d+Math.min(o.bottom,n.clientHeight);r.top<l?this.scrollInterval=setInterval((function(){return c.scrollElementBy(n,t,a.ScrollDirection.Up)}),i):r.bottom>p&&(this.scrollInterval=setInterval((function(){return c.scrollElementBy(n,t,a.ScrollDirection.Down)}),i))}},i.prototype.cancelScroll=function(){s.isPresent(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},i=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],i)}(d.DragAndDropAssetService);t.DragClueService=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=i(44),s=function(e){function t(t){var i=e.call(this)||this;return i.componentFactoryResolver=t,i}return n.__extends(t,e),t.prototype.initialize=function(e,t){r.isPresent(this._componentRef)&&this.ngOnDestroy();var i=this.componentFactoryResolver.resolveComponentFactory(a.DropHintComponent);this.componentRef=e.createComponent(i),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,i){var n=this.componentRef.instance;e===n.action&&r.dataItemsEqual(t,n.sourceItem)&&r.dataItemsEqual(i,n.destinationItem)||(n.action=e,n.sourceItem=t,n.destinationItem=i,n.detectChanges())},t=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],t)}(i(43).DragAndDropAssetService);t.DropHintService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILTER_SETTINGS={operator:"contains",ignoreCase:!0,mode:"lenient"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(10),a=i(20),s=i(3),d=i(6),c=function(){function e(e,t,i){this.expandService=e,this.loadingService=t,this.cd=i,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(d.filter((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(d.filter((function(t){return t.index===e.index})),d.tap((function(t){!t.expand&&e.loading&&(e.loading=!1)})),d.filter((function(e){return e.expand})),d.switchMap((function(e){return s.of(e).pipe(d.delay(100),d.takeUntil(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},n.__decorate([o.HostBinding("class.k-i-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),n.__decorate([o.Input("kendoTreeViewLoading"),n.__metadata("design:type",String)],e.prototype,"index",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoading]"}),n.__metadata("design:paramtypes",[r.ExpandStateService,a.LoadingNotificationService,o.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),o=i(6),r=i(9),a=i(15),s=i(41),d=i(2),c=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,i=e.destinationItem,o=e.dropPosition,c=e.sourceTree,l=e.destinationTree,p=Object.assign({},d.getDataItem(t));if(o===r.DropPosition.Over){a.expandDropTarget(i,l);var u=n.getter(this.flatBinding.idField)(d.getDataItem(i));n.setter(this.flatBinding.parentIdField)(p,u);var h=this.getLastVisibleChildNodeIndex(l,this.flatBinding.originalData,d.getDataItem(i))+1;this.flatBinding.originalData.splice(h,0,p),this.rebindData();var f=this.fetchChildNodes(d.getDataItem(i),l).indexOf(p);this.movedItemNewIndex=d.buildTreeIndex(i.item.index,f)}else{var m=o===r.DropPosition.After?1:0;h=this.flatBinding.originalData.indexOf(d.getDataItem(i))+m;this.flatBinding.originalData.splice(h,0,p);var g=n.getter(this.flatBinding.parentIdField)(d.getDataItem(i));n.setter(this.flatBinding.parentIdField)(p,g),this.rebindData();var v=i.parent?i.parent.item.index:null;f=(i.parent?this.fetchChildNodes(d.getDataItem(i.parent),l):l.nodes).indexOf(p);this.movedItemNewIndex=d.buildTreeIndex(v,f)}c!==l&&this.addChildNodes(p,c);var y=o===r.DropPosition.Over?d.getDataItem(i):d.getDataItem(i.parent);s.incrementPageSize(l,y),s.copyPageSize(l,d.getDataItem(t),p),c===l||l.loadOnDemand||l.preloadChildNodes(),c!==l&&(l.changeDetectorRef.detectChanges(),l.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,i=e.sourceTree,n=e.destinationTree,o=d.getDataItem(t),r=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(r,1),i!==n&&this.removeChildNodes(o,i),this.rebindData();var c=t.parent?t.parent.children:[];if(a.collapseEmptyParent(t.parent,c,i),s.decrementPageSize(i,d.getDataItem(t.parent)),i.loadOnDemand||i.preloadChildNodes(),i===n){n.changeDetectorRef.detectChanges();var l=a.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);n.focus(l)}},e.prototype.addChildNodes=function(e,t){var i,n=this.fetchAllDescendantNodes(e,t);(i=this.flatBinding.originalData).push.apply(i,n)},e.prototype.removeChildNodes=function(e,t){var i=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=i.flatBinding.originalData.indexOf(e);i.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var i=this,n=this.fetchChildNodes(e,t);return n.forEach((function(e){return n=n.concat(i.fetchAllDescendantNodes(e,t)||[])})),n},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var i=[];return t.children(e).pipe(o.take(1)).subscribe((function(e){return i=i.concat(e||[])})),i},e.prototype.getLastVisibleChildNodeIndex=function(e,t,i){if(!d.isPresent(e.loadMoreService)||!e.hasChildren(i))return t.length;var n=e.loadMoreService.getGroupSize(i),o=this.fetchChildNodes(i,e).slice(0,n),r=o[o.length-1];return t.indexOf(r)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}();t.FlatEditingService=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(11),s=i(22),d=i(10),c=i(7),l=i(23),p=i(2),u=i(6),h=function(e,t){return{dataItem:t,index:e}},f=0,m=function(){function e(e,t,i,n,o,r,a){this.element=e,this.expandService=t,this.navigationService=i,this.selectionService=n,this.lookupService=o,this.renderer=r,this.ib=a,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=f++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,i=e.isDisabled;r.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),i&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),r.anyChanged(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(u.filter((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var i=t.expand;return e.expand(i)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,i=this.index;t.setFirstSelected(i,this.isSelected),!e.isActive(i)&&t.isFirstSelected(i)&&e.activateIndex(i)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,i=e.index,n=e.parentDataItem,o=e.parentIndex;if((!i||!i.firstChange)&&(t||i||n||o)){var r=(i||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,i=e.firstChange,n=e.previousValue;!i&&p.isPresent(t)&&p.isPresent(n)&&(this.navigationService.unregisterItem(this.id,n),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var i=t?"addClass":"removeClass";this.renderer[i](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){p.isPresent(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"expandable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewItem]"}),n.__metadata("design:paramtypes",[o.ElementRef,d.ExpandStateService,a.NavigationService,s.SelectionService,l.TreeViewLookupService,o.Renderer2,c.IndexBuilderService])],e)}();t.TreeViewItemDirective=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(11),a=i(22),s=i(19),d=i(3),c=i(6),l=function(){function e(e,t,i,n){var o=this;this.element=e,this.navigationService=t,this.selectionService=i,this.renderer=n,this.initialSelection=!1,this.isSelected=s.isSelected,this.subscriptions=new d.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(c.filter((function(e){return e===o.index}))).subscribe((function(e){return o.selectionService.select(e,o.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var i=e?"addClass":"removeClass";this.renderer[i](this.element.nativeElement,t)},n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewItemContent]"}),n.__metadata("design:paramtypes",[o.ElementRef,r.NavigationService,a.SelectionService,o.Renderer2])],e)}();t.TreeViewItemContentDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=[i(67).CheckBoxComponent],a=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[r],exports:[r]})],e)}();t.CheckBoxModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=function(){function e(e,t,i){this.element=e,this.renderer=t,this.changeDetector=i,this.id="_"+r.guid(),this.tabindex=0,this.checkStateChange=new o.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},n.__decorate([o.HostBinding("class.k-checkbox-wrapper"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"isChecked",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"node",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"labelText",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=n.__decorate([o.Component({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef])],e)}();t.CheckBoxComponent=a},function(e,t){e.exports=p}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","rxjs","@progress/kendo-angular-common","rxjs/operators","@progress/kendo-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/animations","@angular/common","@telerik/kendo-draggable","@progress/kendo-angular-inputs"],t):"object"==typeof exports?exports.KendoAngularTreeview=t(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("@progress/kendo-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs")):e.KendoAngularTreeview=t(e.tslib,e["@angular/core"],e.rxjs,e["@progress/kendo-angular-common"],e["rxjs/operators"],e["@progress/kendo-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/animations"],e["@angular/common"],e["@telerik/kendo-draggable"],e["@progress/kendo-angular-inputs"])}(window,(function(e,t,i,n,o,r,a,s,d,c,l,p){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=46)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),o=i(8),r=/^(?:a|input|select|option|textarea|button|object)$/i;t.match=function(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!i&&i.call(e,t)},t.closestWithMatch=function(e,i){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(t.match(n,i))return n;n=n.parentElement||n.parentNode}return null},t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isBoolean=function(e){return"boolean"==typeof e},t.closestNode=function(e){return n.isDocumentAvailable()?e.closest?e.closest("li.k-treeview-item"):t.closestWithMatch(e,"li.k-treeview-item"):null},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),i=e.getAttribute("tabIndex"),n="-1"===i,o=null!==i&&!n;return r.test(t)&&(o=!e.disabled&&!n),o}return!1},t.isContent=function(e){if(!n.isDocumentAvailable())return null;for(var i=e;i&&!t.match(i,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)i=i.parentNode;return i?t.match(i,".k-in:not(.k-treeview-load-more-button)"):void 0},t.getContentElement=function(e){if(!t.isPresent(e))return null;var i=".k-in:not(.k-treeview-load-more-button)";return t.match(e,i)?e:e.querySelector(i)},t.isLoadMoreButton=function(e){return t.isPresent(t.closestWithMatch(e,".k-in.k-treeview-load-more-button"))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.hasParent=function(e,i){return Boolean(t.closest(e,(function(e){return e===i})))},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,i){var n=i||t.closestNode(e);return n&&(n===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.dataItemsEqual=function(e,i){return!t.isPresent(e)&&!t.isPresent(i)||t.isPresent(e)&&t.isPresent(i)&&e.item.dataItem===i.item.dataItem},t.getDataItem=function(e){return t.isPresent(e)?e.item.dataItem:e},t.isArrayWithAtLeastOneItem=function(e){return e&&Array.isArray(e)&&0!==e.length},t.filterTree=function(e,i,n,o,r){var d=n.operator,l=n.ignoreCase,p=n.mode;void 0===r&&(r=0);var u="string"==typeof o?o:o[r];e.forEach((function(e){var n=("string"==typeof d?c(u,d,l):d)(e.dataItem,i);e.isMatch=n,e.visible=n,e.containsMatches=!1,n&&a(e.parent),e.children&&e.children.length>0&&("strict"!==p&&n?s(e.children):t.filterTree(e.children,i,{operator:d,ignoreCase:l,mode:p},o,r+1))}))};var a=function(e){t.isPresent(e)&&(e.containsMatches=!0,e.visible=!0,t.isPresent(e.parent)&&!e.parent.containsMatches&&a(e.parent))},s=function(e){e.forEach((function(e){e.visible=!0,e.children&&s(e.children)}))},d={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},c=function(e,t,i){return function(n,r){return function(e,t){return function(i,n){return t?e(i.toLowerCase(),n.toLowerCase()):e(i,n)}}(d[t],i)(o.getter(e)(n),r)}};t.buildTreeIndex=function(e,i){return[e,i].filter((function(e){return t.isPresent(e)})).join("_")},t.buildTreeItem=function(e,i,n){return t.isPresent(e)?{dataItem:e,index:t.buildTreeIndex(n,i)}:null},t.fetchLoadedDescendants=function(e,i){if(!t.isPresent(e)||0===e.children.length)return[];var n=e.children;return t.isPresent(i)&&(n=n.filter(i)),n.forEach((function(e){return n=n.concat(t.fetchLoadedDescendants(e,i))})),n},t.sameValues=function(e,t){if(e.length!==t.length)return!1;var i=new Set(t);return e.every((function(e){return i.has(e)}))}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(33),s=i(3),d=i(47),c=i(48),l=i(34),p=i(19),u=i(10),h=i(7),f=i(20),m=i(11),g=i(35),v=i(12),y=i(13),_=i(14),b=i(21),I=i(22),x=i(23),D=i(2),S=[u.ExpandStateService,h.IndexBuilderService,x.TreeViewLookupService,f.LoadingNotificationService,g.NodeChildrenService,m.NavigationService,I.SelectionService,l.DataChangeNotificationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.treeview"},{provide:_.DataBoundComponent,useExisting:o.forwardRef((function(){return C}))},{provide:b.ExpandableComponent,useExisting:o.forwardRef((function(){return C}))}],C=function(){function e(e,t,i,n,r,a,l,u,h,f,m){var g=this;this.element=e,this.changeDetectorRef=t,this.expandService=i,this.navigationService=n,this.nodeChildrenService=r,this.selectionService=a,this.treeViewLookupService=l,this.ngZone=u,this.renderer=h,this.dataChangeNotification=f,this.localization=m,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return g.data},this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.nodeDragStart=new o.EventEmitter,this.nodeDrag=new o.EventEmitter,this.filterStateChange=new o.EventEmitter,this.nodeDrop=new o.EventEmitter,this.nodeDragEnd=new o.EventEmitter,this.addItem=new o.EventEmitter,this.removeItem=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.nodeClick=new o.EventEmitter,this.nodeDblClick=new o.EventEmitter,this.trackBy=p.trackBy,this.isDisabled=p.isDisabled,this.isVisible=p.isVisible,this.navigable=!0,this.children=function(){return s.of([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new s.BehaviorSubject([]),this._animate=!0,this.subscriptions=new s.Subscription,this.domSubscriptions=[],d.validatePackage(c.packageMetadata)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{set:function(e){this.nodeTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{set:function(e){this.loadMoreButtonTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||p.hasChildren},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||p.isChecked},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||p.isExpanded},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||p.isSelected},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),r.anyChanged(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var i=t.index,n=t.dataItem;return t.expand?e.expand.emit({index:i,dataItem:n}):e.collapse.emit({index:i,dataItem:n})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){r.hasObservers(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(r.isDocumentAvailable()){var e=D.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||D.nodeIndex(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var i=D.focusableNode(this.element);i&&i.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,i=this;D.match(e.target,".k-treeview-item")?t=e.target:D.isFocusable(e.target)||(t=D.closestNode(e.target)),t&&(this.navigationService.activateIndex(D.nodeId(e.target)),!this.isActive&&r.hasObservers(this.onFocus)&&this.ngZone.run((function(){i.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!D.match(e.target,".k-treeview-item")||e.relatedTarget&&D.match(e.relatedTarget,".k-treeview-item")&&D.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,r.hasObservers(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,i=e.target;if(("contextmenu"!==e.type||r.hasObservers(this.nodeClick))&&("click"!==e.type||r.hasObservers(this.nodeClick)||r.hasObservers(this.selectionChange)||D.isLoadMoreButton(i))&&("dblclick"!==e.type||r.hasObservers(this.nodeDblClick))&&!D.isFocusable(i)&&(D.isContent(i)||D.isLoadMoreButton(i))&&D.hasParent(i,this.element.nativeElement)){var n=D.nodeId(D.closestNode(i));n&&!this.navigationService.isDisabled(n)&&this.ngZone.run((function(){var i=t.treeViewLookupService.itemLookup(n);if("click"===e.type){if(t.navigationService.model.findNode(n).loadMoreButton)return void t.navigationService.notifyLoadMore(n);t.navigationService.selectIndex(n)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:i.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(o.isDevMode()&&!D.isPresent(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},e.prototype.registerLookupItems=function(e,t){var i=this;if(void 0===t&&(t=null),D.isPresent(e)&&0!==e.length){var n=D.nodeIndex(t),o=e.map((function(e,t){return D.buildTreeItem(e,t,n)}));D.isPresent(t)&&this.treeViewLookupService.registerChildren(n,o),o.forEach((function(e){i.treeViewLookupService.registerItem(e,t),i.hasChildren(e.dataItem)&&i.children(e.dataItem).subscribe((function(t){return i.registerLookupItems(t,e)}))}))}},n.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-treeview"),n.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),n.__decorate([o.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"direction",null),n.__decorate([o.ViewChild("assetsContainer",{read:o.ViewContainerRef,static:!0}),n.__metadata("design:type",o.ViewContainerRef)],e.prototype,"assetsContainer",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),n.__decorate([o.Input(),o.HostBinding("@.disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),n.__decorate([o.Output("blur"),n.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([o.Output("focus"),n.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"expand",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragStart",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrag",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"filterStateChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrop",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragEnd",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"addItem",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"removeItem",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeClick",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDblClick",void 0),n.__decorate([o.ContentChild(v.NodeTemplateDirective,{static:!0}),n.__metadata("design:type",v.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),n.__decorate([o.Input("nodeTemplate"),n.__metadata("design:type",v.NodeTemplateDirective),n.__metadata("design:paramtypes",[v.NodeTemplateDirective])],e.prototype,"nodeTemplateRef",null),n.__decorate([o.ContentChild(y.LoadMoreButtonTemplateDirective,{static:!0}),n.__metadata("design:type",y.LoadMoreButtonTemplateDirective)],e.prototype,"loadMoreButtonTemplate",void 0),n.__decorate([o.Input("loadMoreButtonTemplate"),n.__metadata("design:type",y.LoadMoreButtonTemplateDirective),n.__metadata("design:paramtypes",[y.LoadMoreButtonTemplateDirective])],e.prototype,"loadMoreButtonTemplateRef",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"children",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:S,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),n.__metadata("design:paramtypes",[o.ElementRef,o.ChangeDetectorRef,u.ExpandStateService,m.NavigationService,g.NodeChildrenService,I.SelectionService,x.TreeViewLookupService,o.NgZone,o.Renderer2,l.DataChangeNotificationService,a.LocalizationService])],e)}();t.TreeViewComponent=C},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=n.__decorate([o.Injectable()],e)}();t.IndexBuilderService=r},function(e,t){e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0);n.__exportStar(i(36),t),n.__exportStar(i(37),t),n.__exportStar(i(56),t),n.__exportStar(i(29),t),n.__exportStar(i(38),t),n.__exportStar(i(39),t),n.__exportStar(i(40),t)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=n.__decorate([o.Injectable()],e)}();t.ExpandStateService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(33),s=i(3),d=i(49),c=i(2),l=function(){function e(e){var t,i=this;this.localization=e,this.expands=new s.Subject,this.moves=new s.Subject,this.checks=new s.Subject,this.selects=new s.Subject,this.loadMore=new s.Subject,this.navigable=!0,this.actions=((t={})[r.Keys.ArrowUp]=function(){return i.activate(i.model.findVisiblePrev(i.focusableItem))},t[r.Keys.ArrowDown]=function(){return i.activate(i.model.findVisibleNext(i.focusableItem))},t[r.Keys.ArrowLeft]=function(){return!i.isLoadMoreButton&&i.expand({expand:i.localization.rtl,intercept:i.localization.rtl?i.moveToFirstVisibleChild:i.moveToParent})},t[r.Keys.ArrowRight]=function(){return!i.isLoadMoreButton&&i.expand({expand:!i.localization.rtl,intercept:i.localization.rtl?i.moveToParent:i.moveToFirstVisibleChild})},t[r.Keys.Home]=function(){return i.activate(i.model.firstVisibleNode())},t[r.Keys.End]=function(){return i.activate(i.model.lastVisibleNode())},t[r.Keys.Enter]=function(){return i.handleEnter()},t[r.Keys.Space]=function(){return i.handleSpace()},t),this.isFocused=!1,this._model=new d.NavigationModel,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return c.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(c.nodeIndex(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&c.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){c.isPresent(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return c.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,i,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);var r=this.model.findNode(t);c.isPresent(r)&&(this.model.unregisterItem(r.id,r.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,i,n,o)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,i=e.intercept,n=c.nodeIndex(this.activeItem);n&&!i(n)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(c.nodeIndex(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(c.nodeIndex(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.NavigationService=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewNodeTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.NodeTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.LoadMoreButtonTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){}return e=n.__decorate([o.Injectable()],e)}();t.DataBoundComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o,r,a=i(4),s=i(2),d=i(9),c=(n=function(){if(!a.isDocumentAvailable()||!s.isPresent(document.body))return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},r=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r||(o=n.apply(void 0,e),r=!0),o});t.getContainerOffset=function(e){if(!e||!c())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var i=t.getBoundingClientRect();return{left:i.left-t.scrollLeft,top:i.top-t.scrollTop}}return{left:0,top:0}},t.getDropAction=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return d.DropAction.Invalid;switch(e){case d.DropPosition.Over:return d.DropAction.Add;case d.DropPosition.Before:return s.isPresent(s.closestNode(t).previousElementSibling)?d.DropAction.InsertMiddle:d.DropAction.InsertTop;case d.DropPosition.After:return s.isPresent(s.closestNode(t).nextElementSibling)?d.DropAction.InsertMiddle:d.DropAction.InsertBottom;default:return d.DropAction.Invalid}},t.getDropPosition=function(e,t,i,n,o){if(s.isPresent(e)&&s.isPresent(t)&&s.isPresent(n)&&s.isPresent(o)){var r=s.closestWithMatch(t,".k-mid");if(s.isPresent(r)){var a=s.getContentElement(r),c=s.hasParent(r,s.closestNode(e));if(s.isPresent(a)&&a!==e&&!c){var l=a.getBoundingClientRect(),p=l.height/(s.isContent(t)?4:2),u=i-o.top,h=l.top-o.top;return u<h+p?d.DropPosition.Before:u>=h+l.height-p?d.DropPosition.After:d.DropPosition.Over}}}},t.treeItemFromEventTarget=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return null;var i=s.closestNode(t),n=s.nodeId(i),o=e.itemLookup(n);return s.isPresent(o)&&s.isPresent(o.item.dataItem)?o:null},t.collapseEmptyParent=function(e,t,i){s.isPresent(e)&&0===t.length&&i.isExpanded(e.item.dataItem,e.item.index)&&i.collapseNode(e.item.dataItem,e.item.index)},t.expandDropTarget=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},t.getDropTarget=function(e){return a.isDocumentAvailable()&&s.isPresent(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},t.updateMovedItemIndex=function(e,t){var i=e.split("_"),n=t.split("_");if(i.length<n.length)return e;var o=n.length-1,r=n.slice(0,o).join("_"),a=i.slice(0,o).join("_"),s=n.length-1,d=Number(n[s]),c=Number(i[s]);return r===a&&c>d?(i[s]=String(c-1),i.join("_")):e};var l=new RegExp("(auto|scroll)");t.getScrollableContainer=function(e){for(;s.isPresent(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,i=l.test(getComputedStyle(e).overflowY);if(t&&i)return e;e=e.parentNode}return e};var p=function(e){return Math.floor(e.scrollTop)<=0},u=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight};t.scrollElementBy=function(e,t,i){if(s.isPresent(e)&&a.isDocumentAvailable())for(var n=e.scrollTop,o=t,r=0;n===e.scrollTop&&(i!==d.ScrollDirection.Up||!p(e))&&(i!==d.ScrollDirection.Down||!u(e))&&r<20;)e.scrollTop+=o*i,o+=1,r+=1}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(57),s=i(58),d=i(59),c=i(17),l=i(18),p=i(15),u=i(2),h=i(5),f=i(9),m={enabled:!0,step:1,interval:1},g=function(){function e(e,t,i,n,o){this.element=e,this.zone=t,this.treeview=i,this.dragClueService=n,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},m,e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;u.isContent(t.target)&&(this.draggedItem=u.closestWithMatch(t.target,".k-in"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,i=e.originalEvent,n=e.clientX,o=e.clientY;if(this.shouldInitiateDragStart({clientX:n,clientY:o})&&this.initiateDragStart(),u.isPresent(this.draggedItem)&&!u.isPresent(this.pendingDragStartEvent)){var a=p.getDropTarget(i);r.hasObservers(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(i,a)}));var s=this.getTargetTreeView(a),d=p.getDropPosition(this.draggedItem,a,o,s,this.containerOffset),c=u.closestWithMatch(a,".k-mid"),l=p.getDropAction(d,a),h=p.treeItemFromEventTarget(this.treeview,this.draggedItem),f=p.treeItemFromEventTarget(s,a);this.updateDropHintState(d,c,l,h,f),this.updateDragClueState(l,n,o,h,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,i=e.originalEvent,n=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!u.isPresent(this.draggedItem)||u.isPresent(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var o=p.getDropTarget(i),a=this.treeview,s=this.getTargetTreeView(o),d=p.getDropPosition(this.draggedItem,o,n,this.getTargetTreeView(o),this.containerOffset),c=p.treeItemFromEventTarget(a,this.draggedItem),l=p.treeItemFromEventTarget(s,o);u.isPresent(l)&&u.isPresent(d)?this.zone.run((function(){return t.notifyDrop({sourceItem:c,destinationItem:l,dropPosition:d,sourceTree:a,destinationTree:s},i)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),r.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:c,destinationItem:l,originalEvent:i})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,i,n,o){if(u.isPresent(t)&&e!==f.DropPosition.Over&&u.isPresent(e)){var r=t.getBoundingClientRect(),a=e===f.DropPosition.Before?r.top:r.top+r.height;this.dropHintService.updateDropHintData(i,n,o),this.dropHintService.move(r.left-this.containerOffset.left,a-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,i,n,o){this.dragClueService.move(t-this.containerOffset.left,i-this.containerOffset.top),this.dragClueService.updateDragClueData(e,n,o),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new a.default({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var i=p.treeItemFromEventTarget(this.treeview,t),n=new f.TreeItemDragStartEvent({sourceItem:i,originalEvent:e});return this.treeview.nodeDragStart.emit(n),n},e.prototype.notifyDrag=function(e,t){var i={sourceItem:p.treeItemFromEventTarget(this.treeview,this.draggedItem),destinationItem:p.treeItemFromEventTarget(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(i)},e.prototype.notifyDrop=function(e,t){var i=new f.TreeItemDropEvent(e,t);e.destinationTree.nodeDrop.emit(i),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!i.isDefaultPrevented()&&i.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):i.isDefaultPrevented()?this.dragClueService.hide():i.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,i=u.closestWithMatch(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return u.isPresent(e)&&e.element.nativeElement===i}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!u.isPresent(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(r.hasObservers(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,p.getDropTarget(e.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=p.getContainerOffset(this.draggedItem),this.pendingDragStartEvent=null},n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"allowCopy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"startDragAfter",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"autoScroll",void 0),n.__decorate([o.ContentChild(c.DragClueTemplateDirective,{static:!1}),n.__metadata("design:type",c.DragClueTemplateDirective)],e.prototype,"dragClueTemplate",void 0),n.__decorate([o.ContentChild(l.DropHintTemplateDirective,{static:!1}),n.__metadata("design:type",l.DropHintTemplateDirective)],e.prototype,"dropHintTemplate",void 0),n.__decorate([o.HostBinding("style.user-select"),o.HostBinding("style.-ms-user-select"),o.HostBinding("style.-moz-user-select"),o.HostBinding("style.-webkit-user-select"),n.__metadata("design:type",String)],e.prototype,"userSelectStyle",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDrop]",providers:[s.DragClueService,d.DropHintService]}),n.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,h.TreeViewComponent,s.DragClueService,d.DropHintService])],e)}();t.DragAndDropDirective=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragClueTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DragClueTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([o.Directive({selector:"[kendoTreeViewDropHintTemplate]"}),n.__param(0,o.Optional()),n.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DropHintTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=function(){return!1},t.isChecked=function(){return"none"},t.isDisabled=function(){return!1},t.isExpanded=function(){return!0},t.isSelected=function(){return!1},t.isVisible=function(){return!0},t.trackBy=function(e,t){return t}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=n.__decorate([o.Injectable()],e)}();t.LoadingNotificationService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(){}return e=n.__decorate([o.Injectable()],e)}();t.ExpandableComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=n.__decorate([o.Injectable()],e)}();t.SelectionService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=/\d+$/,s=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var i={children:[],item:e,parent:this.item(r.nodeIndex(t))};this.map.set(e.index,i)},e.prototype.registerChildren=function(e,t){var i=this.item(e);i&&(i.children=t)},e.prototype.unregisterItem=function(e,t){var i=this.item(e);i&&i.item.dataItem===t&&(this.map.delete(e),i.parent&&i.parent.children&&(i.parent.children=i.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,i){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,i),this.addToParent(t,i))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var i=this.item(t.index),n=parseInt(a.exec(e.index)[0],10);i.children=i.children||[],i.children.splice(n,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var i=t.item(e.index),n=i.item,o=i.parent,r=i.children;return{children:t.mapChildren(r),item:n,parent:o}}))},e=n.__decorate([o.Injectable()],e)}();t.TreeViewLookupService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(2),s=i(3),d=i(6),c=function(){function e(e,t){var i=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.checkActions={multiple:function(e){return i.checkMultiple(e)},single:function(e){return i.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return i.check(e)})));var n=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(d.filter((function(){return i.options.checkChildren&&i.treeView.loadOnDemand})),d.tap((function(e){return n.push(e)})),d.switchMap((function(){return i.zone.onStable.pipe(d.take(1))}))).subscribe((function(){return i.addCheckedItemsChildren(n)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!a.isPresent(this.checkable)||"string"==typeof this.checkable)return e;var t=a.isBoolean(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,i){var n=t.key,o=t.result;return e===(n+=i)||o?{result:!0}:{key:n+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var i=this.options,n=i.mode,o=i.checkParents;return"multiple"===n&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return a.isPresent(this.checkKey)?"string"==typeof this.checkKey&&a.isPresent(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,i=t.enabled,n=t.mode,o=this.checkActions[n]||a.noop;i&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var i=e.treeView.itemLookup(t.item.index);e.check(i)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(a.isPresent(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var i=this.itemKey(e.item);if(a.isPresent(i)){var n=new Set(this.checkedKeys),o=[i];if(this.options.checkChildren){var r=a.fetchLoadedDescendants(e,(function(e){var i=e.item;return t.treeView.isVisible(i.dataItem,i.index)&&!t.treeView.isDisabled(i.dataItem,i.index)})).map((function(e){var i=e.item;return t.itemKey(i)}));o.push.apply(o,r)}var s=!n.has(i);o.forEach((function(e){s?n.add(e):n.delete(e)})),this.checkedKeys=Array.from(n)}}},e.prototype.checkParents=function(e){var t=this;if(a.isPresent(e)){for(var i=new Set(this.checkedKeys),n=e;n;){var o=this.itemKey(n.item);n.children.every((function(e){return i.has(t.itemKey(e))}))?i.add(o):i.delete(o),n=n.parent}this.checkedKeys=Array.from(i)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(a.isPresent(e)&&0!==e.length){var i=this.checkedKeys.length,n=new Set(this.checkedKeys);e.forEach((function(e){var i=t.itemKey(e.item);n.has(i)&&e.children.forEach((function(i){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(i.dataItem,i.index)||n.add(t.itemKey(i))}))})),i!==n.size&&(this.checkedKeys=Array.from(n),this.zone.run((function(){return t.notify()})))}},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),n.__decorate([o.Input("checkBy"),n.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),n.__decorate([o.Input("kendoTreeViewCheckable"),n.__metadata("design:type",Object)],e.prototype,"checkable",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewCheckable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent,o.NgZone])],e)}();t.CheckDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=function(){function e(e,t){var i=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return i.disabledKeys.indexOf(i.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),n.__decorate([o.Input("kendoTreeViewDisable"),n.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDisable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.DisableDirective=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(21),a=i(3),s=i(6),d=i(2),c={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},l=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(e,i,n){(i.containsMatches||i.isMatch&&n&&d.isArrayWithAtLeastOneItem(i.children))&&e.push(t.itemKey({dataItem:i.dataItem,index:i.index})),d.isArrayWithAtLeastOneItem(i.children)&&i.children.forEach((function(i){t.updateExpandedNodes(e,i,n)}))},this.getEveryExpandKey=function(e,i){d.isArrayWithAtLeastOneItem(i.children)&&e.push(t.itemKey({dataItem:i.dataItem,index:i.index})),d.isArrayWithAtLeastOneItem(i.children)&&i.children.forEach((function(i){t.getEveryExpandKey(e,i)}))},this.subscriptions.add(a.merge(this.component.expand.pipe(s.map((function(e){return n.__assign({expand:!0},e)}))),this.component.collapse.pipe(s.map((function(e){return n.__assign({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,i){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:i}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=d.isBoolean(this.expandOnFilter)?{enabled:this.expandOnFilter}:n.__assign({},this.expandOnFilter,{enabled:!0});return Object.assign({},c,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,i=e.dataItem,n=e.expand,o=this.itemKey({index:t,dataItem:i}),r=this.expandedKeys.indexOf(o),a=!1;r>-1&&!n?(this.expandedKeys.splice(r,1),a=!0):-1===r&&n&&(this.expandedKeys.push(o),a=!0),a&&this.expandedKeysChange.emit(this.expandedKeys)},e.prototype.handleAutoExpand=function(e){var t=this,i=e.nodes,n=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var r=this.filterExpandSettings,a=r.maxAutoExpandResults,s=r.expandMatches,c=r.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!o||-1!==a&&n>a){switch(c){case"initial":d.sameValues(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=i.reduce((function(e,i){return t.getEveryExpandKey(e,i),e}),[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;case"none":default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{var l=i.reduce((function(e,i){return t.updateExpandedNodes(e,i,s),e}),[]);d.sameValues(this.expandedKeys,l)||(this.expandedKeys=l,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),n.__decorate([o.Input("expandBy"),n.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"expandOnFilter",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewExpandable]"}),n.__metadata("design:paramtypes",[r.ExpandableComponent])],e)}();t.ExpandDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(2),s=i(3),d=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,i){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:i}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!a.isPresent(this.selection)||"string"==typeof this.selection)return e;var t=a.isBoolean(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,i=t.enabled,n=t.mode,o=this.selectActions[n]||a.noop;i&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),i=this.selectedKeys.indexOf(t),n=i>-1;a.isPresent(t)&&(n?this.selectedKeys.splice(i,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),n.__decorate([o.Input("selectBy"),n.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),n.__decorate([o.Input("kendoTreeViewSelectable"),n.__metadata("design:type",Object)],e.prototype,"selection",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),n.__decorate([o.HostBinding("attr.aria-multiselectable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewSelectable]"}),n.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(8),a=i(4),s=i(14),d=i(2),c=i(3),l=i(55),p=i(16),u=i(19),h=i(7),f=i(45),m=new h.IndexBuilderService,g=function(e,t,i,n){return void 0===i&&(i=null),void 0===n&&(n=""),d.isArrayWithAtLeastOneItem(e)?e.map((function(e,o){var a=m.nodeIndex(o.toString(),n),s={dataItem:e,index:a,parent:i,visible:!0};return s.children=g(r.getter(t)(e),t,s,a),s})):[]},v=function(e){function t(t,i){var n=e.call(this,t)||this;n.component=t,n.dragAndDropDirective=i,n.loadOnDemand=!0,n.originalData=[];var o=!d.isPresent(n.dragAndDropDirective);return n.component.isVisible=o?function(e){return n.visibleNodes.has(e)}:u.isVisible,n}return n.__extends(t,e),Object.defineProperty(t.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=g(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;d.isPresent(this.childrenField)&&(this.component.children=function(t){return c.of(r.getter(e.childrenField)(t))},this.component.hasChildren=function(t){var i=r.getter(e.childrenField)(t);return Boolean(i&&i.length)},this.component.editService=new l.HierarchyEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){a.isChanged("childrenField",e,!1)&&(this.nodes=this.originalData),a.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"childrenField",null),n.__decorate([o.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=n.__decorate([o.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),n.__param(1,o.Optional()),n.__param(1,o.Host()),n.__metadata("design:paramtypes",[s.DataBoundComponent,p.DragAndDropDirective])],t)}(f.FilteringBase);t.HierarchyBindingDirective=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),a=i(8),s=i(3),d=i(62),c=i(14),l=i(2),p=i(63),u=i(7),h=i(45),f=function(e,t,i){return t.filter((function(t){return e(t)===i}))},m=new u.IndexBuilderService,g=function(e,t,i,n,o,r){return void 0===o&&(o=null),void 0===r&&(r=""),l.isArrayWithAtLeastOneItem(e)?e.map((function(e,s){var d=m.nodeIndex(s.toString(),r),c={dataItem:e,index:d,parent:o,visible:!0};return c.children=g(f(a.getter(i),t||[],a.getter(n)(e)),t,i,n,c,d),c})):[]},v=function(e){function t(t){var i=e.call(this,t)||this;return i.component=t,i.loadOnDemand=!0,i.originalData=[],i.component.isVisible=function(e){return i.visibleNodes.has(e)},i}return n.__extends(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],l.isNullOrEmptyString(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{var t=a.getter(this.parentIdField);this.component.nodes=this.originalData.filter(d.compose(l.isBlank,t)),this.filterData=g(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(l.isPresent(this.parentIdField)&&l.isPresent(this.idField)){var t=function(t){return f(a.getter(e.parentIdField),e.originalData||[],a.getter(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return s.of(t(e))},this.component.editService=new p.FlatEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&l.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){o.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData),o.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&l.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"idField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=n.__decorate([r.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),n.__metadata("design:paramtypes",[c.DataBoundComponent])],t)}(h.FilteringBase);t.FlatDataBindingDirective=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=i(5),s=i(2),d=function(){function e(e){this.treeview=e,this.subscriptions=new r.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDropEditing]"}),n.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.DragAndDropEditingDirective=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(5),s=i(2),d="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",c=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=r.guid(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(o.isDevMode()){if(!s.isPresent(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+d+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(s.isPresent(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+d+".");if(s.isPresent(e)&&!s.isPresent(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+d+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var i=e||this.rootLevelId,n=t>0?t:0;this.pageSizes.set(i,n)},e.prototype.getTotalNodesCount=function(e,t){return s.isPresent(e)&&s.isPresent(this.totalField)?e[this.totalField]:!s.isPresent(e)&&s.isPresent(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},n.__decorate([o.Input("kendoTreeViewLoadMore"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"totalRootNodes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"totalField",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoadMore]"}),n.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.LoadMoreDirective=c},function(e,t){e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=function(){function e(){this.changes=new n.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(3),a=function(){function e(){this.changes=new r.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=n.__decorate([o.Injectable()],e)}();t.NodeChildrenService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(t.DropAction||(t.DropAction={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(t.DropPosition||(t.DropPosition={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=function(e){function t(t,i){var n=e.call(this)||this;return n.isValid=!0,Object.assign(n,t),n.originalEvent=i,n}return n.__extends(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(i(29).PreventableEvent);t.TreeItemDropEvent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=function(e){function t(t){var i=e.call(this)||this;return Object.assign(i,t),i}return n.__extends(t,e),t}(i(29).PreventableEvent);t.TreeItemDragStartEvent=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.TreeItemDragEvent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);t.copyPageSize=function(e,t,i){if(n.isPresent(e.loadMoreService)){var o=e.getNodePageSize(t);e.setNodePageSize(i,o)}},t.incrementPageSize=function(e,t){if(n.isPresent(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(t,i+1)}},t.decrementPageSize=function(e,t){if(n.isPresent(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(t,i-1)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(9),a=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case r.DropAction.Add:return"k-i-plus";case r.DropAction.InsertTop:return"k-i-insert-up";case r.DropAction.InsertBottom:return"k-i-insert-down";case r.DropAction.InsertMiddle:return"k-i-insert-middle";case r.DropAction.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},n.__decorate([o.HostBinding("class.k-header"),o.HostBinding("class.k-drag-clue"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([o.HostBinding("style.position"),n.__metadata("design:type",String)],e.prototype,"posistionStyle",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),n.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DragClueComponent=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!n.isPresent(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){n.isPresent(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,i){void 0===i&&(i=0),this.element.style.left=e+i+"px",this.element.style.top=t+i+"px"},e}();t.DragAndDropAssetService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},n.__decorate([o.HostBinding("class.k-drop-hint-container"),n.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),n.__decorate([o.HostBinding("style.position"),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([o.HostBinding("style.pointer-events"),n.__metadata("design:type",String)],e.prototype,"pointerEvents",void 0),e=n.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),n.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DropHintComponent=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(60),a=i(2),s=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=r.DEFAULT_FILTER_SETTINGS}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=n.__assign({},r.DEFAULT_FILTER_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&a.filterTree(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),a.isPresent(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"filterSettings",null),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"filter",null),e}();t.FilteringBase=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5);t.TreeViewComponent=n.TreeViewComponent;var o=i(50);t.TreeViewModule=o.TreeViewModule;var r=i(12);t.NodeTemplateDirective=r.NodeTemplateDirective;var a=i(24);t.CheckDirective=a.CheckDirective;var s=i(25);t.DisableDirective=s.DisableDirective;var d=i(26);t.ExpandDirective=d.ExpandDirective;var c=i(27);t.SelectDirective=c.SelectDirective;var l=i(14);t.DataBoundComponent=l.DataBoundComponent;var p=i(21);t.ExpandableComponent=p.ExpandableComponent;var u=i(28);t.HierarchyBindingDirective=u.HierarchyBindingDirective;var h=i(30);t.FlatDataBindingDirective=h.FlatDataBindingDirective;var f=i(16);t.DragAndDropDirective=f.DragAndDropDirective;var m=i(31);t.DragAndDropEditingDirective=m.DragAndDropEditingDirective;var g=i(18);t.DropHintTemplateDirective=g.DropHintTemplateDirective;var v=i(17);t.DragClueTemplateDirective=v.DragClueTemplateDirective;var y=i(36);t.DropAction=y.DropAction;var _=i(37);t.DropPosition=_.DropPosition;var b=i(38);t.TreeItemDropEvent=b.TreeItemDropEvent;var I=i(39);t.TreeItemDragStartEvent=I.TreeItemDragStartEvent;var x=i(40);t.TreeItemDragEvent=x.TreeItemDragEvent;var D=i(32);t.LoadMoreDirective=D.LoadMoreDirective;var S=i(13);t.LoadMoreButtonTemplateDirective=S.LoadMoreButtonTemplateDirective},function(e,t){e.exports=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635777660,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),o=i(2),r=function(e){return e||{}},a=function(e){return r(e).children||[]},s=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var i=e[t];if(i.visible)return i}return null},d=function(){function e(){this.ib=new n.IndexBuilderService,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=s(this.nodes);o.isPresent(e)&&a(e).length>0;){var t=a(e),i=s(t);if(!o.isPresent(i))return e;e=i}return e},e.prototype.closestNode=function(e){var t=r(this.findNode(e)).prev||this.firstVisibleNode();return r(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return a(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,i=this.findParent(t),n=this.ib.lastLevelIndex(t),o=this.container(i).slice(0,n).every((function(e){return!e.visible}));if(0===n||o)return i;var r=this.findNode(t),a=this.visibleSibling(r,-1);if(a)for(var d=this.container(a);d.length>0&&d.some((function(e){return e.visible}));)a=s(d),d=this.container(a);return a},e.prototype.findVisibleNext=function(e){var t=this.container(e),i=t.some((function(e){return e.visible}));return 0!==t.length&&i?t.find((function(e){return e.visible})):this.visibleSibling(e,1)},e.prototype.registerItem=function(e,t,i,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);var r=this.ib.level(t),a=this.findParent(t);if(a||1===r){var s={id:e,children:[],index:t,parent:a,disabled:i,loadMoreButton:n,visible:o};this.insert(s,a)}},e.prototype.unregisterItem=function(e,t){var i=this.find(t,this.nodes);if(i&&i.id===e){var n=this.container(i.parent);n.splice(n.indexOf(i),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return o.isPresent(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var i=this.childLevel(t),n=this.ib.indexForLevel(e,i),o=i===this.ib.level(e),r=t.find((function(e){return e&&e.index===n}));return r?o?r:this.find(e,r.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.visibleSibling=function(e,t){if(!e)return null;for(var i=this.findParent(e.index),n=this.container(i),r=n.indexOf(e)+t,a=n[r];o.isPresent(a);){if(a.visible)return a;a=n[r+=t]}return this.visibleSibling(i,t)},e}();t.NavigationModel=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(51),s=i(12),d=i(24),c=i(25),l=i(26),p=i(27),u=i(28),h=i(30),f=i(16),m=i(17),g=i(18),v=i(31),y=i(32),_=i(13),b=[r.TreeViewComponent,s.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,l.ExpandDirective,p.SelectDirective,u.HierarchyBindingDirective,h.FlatDataBindingDirective,f.DragAndDropDirective,m.DragClueTemplateDirective,g.DropHintTemplateDirective,v.DragAndDropEditingDirective,y.LoadMoreDirective,_.LoadMoreButtonTemplateDirective],I=function(){function e(){}return e=n.__decorate([o.NgModule({exports:[b],imports:[a.SharedModule]})],e)}();t.TreeViewModule=I},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(5),a=i(52),s=i(54),d=i(12),c=i(24),l=i(25),p=i(26),u=i(27),h=i(28),f=i(61),m=i(30),g=i(64),v=i(65),y=i(66),_=i(16),b=i(17),I=i(18),x=i(42),D=i(44),S=i(31),C=i(32),k=i(13),O=i(68),E=[r.TreeViewComponent,a.TreeViewGroupComponent,g.TreeViewItemDirective,v.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,l.DisableDirective,p.ExpandDirective,u.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,m.FlatDataBindingDirective,_.DragAndDropDirective,b.DragClueTemplateDirective,x.DragClueComponent,I.DropHintTemplateDirective,D.DropHintComponent,S.DragAndDropEditingDirective,C.LoadMoreDirective,k.LoadMoreButtonTemplateDirective],P=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[E],exports:[E],imports:[s.CommonModule,y.CheckBoxModule,O.InputsModule],entryComponents:[x.DragClueComponent,D.DropHintComponent]})],e)}();t.SharedModule=P},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(53),a=i(8),s=i(10),d=i(7),c=i(23),l=i(11),p=i(35),u=i(2),h=i(20),f=i(3),m=i(6),g=i(34),v=function(){function e(e,t,i,n,o,r,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=i,this.treeViewLookupService=n,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new f.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return f.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!(!u.isPresent(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return u.isPresent(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(u.isPresent(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return u.isPresent(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,i){i?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=u.isArray(this.textField)?this.textField[0]:this.textField;return a.getter(t)(e)},e.prototype.ngOnDestroy=function(){u.isPresent(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),u.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(m.filter((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var i=this;return this.children(e).pipe(m.catchError((function(){return i.loadingService.notifyLoaded(t),f.EMPTY})),m.tap((function(){return i.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){u.isPresent(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,u.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(m.finalize((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var i=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(i)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(i))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,i){return{dataItem:e,index:t.nodeIndex(i)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){u.isPresent(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},n.__decorate([o.HostBinding("class.k-group"),n.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),n.__decorate([o.HostBinding("attr.role"),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"touchActions",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"nodes",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"textField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),n.__decorate([o.Input(),n.__metadata("design:type",o.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"loadMoreService",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"children",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=n.__decorate([o.Component({animations:[r.trigger("toggle",[r.transition("void => *",[r.style({height:0}),r.animate("0.1s ease-in",r.style({height:"*"}))]),r.transition("* => void",[r.style({height:"*"}),r.animate("0.1s ease-in",r.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),n.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,d.IndexBuilderService,c.TreeViewLookupService,l.NavigationService,p.NodeChildrenService,g.DataChangeNotificationService,o.ChangeDetectorRef])],e)}();t.TreeViewGroupComponent=v},function(e,t){e.exports=d},function(e,t){e.exports=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),o=i(9),r=i(15),a=i(41),s=i(2),d=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,i=e.destinationItem,d=e.dropPosition,c=e.sourceTree,l=e.destinationTree,p=Object.assign({},s.getDataItem(t));if(d===o.DropPosition.Over){r.expandDropTarget(i,l);var u=this.childrenFor(s.getDataItem(i)),h=s.isPresent(l.loadMoreService)?Math.min(l.loadMoreService.getGroupSize(s.getDataItem(i)),u.length):u.length;u.splice(h,0,p),n.setter(this.hierarchyBinding.childrenField)(s.getDataItem(i),u),this.movedItemNewIndex=s.buildTreeIndex(i.item.index,h)}else{var f=this.getParentNodes(i,l),m=d===o.DropPosition.After?1:0;h=f.indexOf(s.getDataItem(i))+m;f.splice(h,0,p);var g=i.parent?i.parent.item.index:null;this.movedItemNewIndex=s.buildTreeIndex(g,h)}var v=d===o.DropPosition.Over?s.getDataItem(i):s.getDataItem(i.parent);a.incrementPageSize(l,v),a.copyPageSize(l,s.getDataItem(t),p),c===l||l.loadOnDemand||l.preloadChildNodes(),c!==l&&(l.changeDetectorRef.detectChanges(),l.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,i=e.sourceTree,n=e.destinationTree,o=this.getParentNodes(t,i),d=o.indexOf(s.getDataItem(t));if(o.splice(d,1),r.collapseEmptyParent(t.parent,o,i),a.decrementPageSize(i,s.getDataItem(t.parent)),i.loadOnDemand||i.preloadChildNodes(),i===n){n.changeDetectorRef.detectChanges();var c=r.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);n.focus(c)}},e.prototype.getParentNodes=function(e,t){return s.isPresent(e.parent)?this.childrenFor(s.getDataItem(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return n.getter(this.hierarchyBinding.childrenField)(e)||[]},e}();t.HierarchyEditingService=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(t.ScrollDirection||(t.ScrollDirection={}))},function(e,t){e.exports=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(42),a=i(9),s=i(2),d=i(43),c=i(15);t.CLUE_OFFSET=10,t.RETURN_ANIMATION_DURATION=200;var l=function(e){function i(t){var i=e.call(this)||this;return i.componentFactoryResolver=t,i}return n.__extends(i,e),i.prototype.initialize=function(e,t){s.isPresent(this._componentRef)&&this.ngOnDestroy();var i=this.componentFactoryResolver.resolveComponentFactory(r.DragClueComponent);this.componentRef=e.createComponent(i),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},i.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},i.prototype.move=function(i,n){e.prototype.move.call(this,i,n,t.CLUE_OFFSET)},i.prototype.animateDragClueToElementPosition=function(e){var i=this;if(s.isPresent(e)&&s.isPresent(this.element.animate)){var n=e.getBoundingClientRect(),o=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(n.left-o.left)+"px, "+(n.top-o.top)+"px)"}],t.RETURN_ANIMATION_DURATION),this.returnAnimation.onfinish=function(){return i.hide()}}else this.hide()},i.prototype.cancelReturnAnimation=function(){s.isPresent(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},i.prototype.updateDragClueData=function(e,t,i){var n=this.componentRef.instance;e===n.action&&s.dataItemsEqual(t,n.sourceItem)&&s.dataItemsEqual(i,n.destinationItem)||(n.action=e,n.sourceItem=t,n.destinationItem=i,n.detectChanges())},i.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},i.prototype.scrollIntoView=function(e){var t=e.step,i=e.interval;this.cancelScroll();var n=c.getScrollableContainer(this.element);if(s.isPresent(n)){var o=n.getBoundingClientRect(),r=this.element.getBoundingClientRect(),d=Math.max(o.top,0),l=d+r.height,p=d+Math.min(o.bottom,n.clientHeight);r.top<l?this.scrollInterval=setInterval((function(){return c.scrollElementBy(n,t,a.ScrollDirection.Up)}),i):r.bottom>p&&(this.scrollInterval=setInterval((function(){return c.scrollElementBy(n,t,a.ScrollDirection.Down)}),i))}},i.prototype.cancelScroll=function(){s.isPresent(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},i=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],i)}(d.DragAndDropAssetService);t.DragClueService=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(2),a=i(44),s=function(e){function t(t){var i=e.call(this)||this;return i.componentFactoryResolver=t,i}return n.__extends(t,e),t.prototype.initialize=function(e,t){r.isPresent(this._componentRef)&&this.ngOnDestroy();var i=this.componentFactoryResolver.resolveComponentFactory(a.DropHintComponent);this.componentRef=e.createComponent(i),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,i){var n=this.componentRef.instance;e===n.action&&r.dataItemsEqual(t,n.sourceItem)&&r.dataItemsEqual(i,n.destinationItem)||(n.action=e,n.sourceItem=t,n.destinationItem=i,n.detectChanges())},t=n.__decorate([o.Injectable(),n.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],t)}(i(43).DragAndDropAssetService);t.DropHintService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILTER_SETTINGS={operator:"contains",ignoreCase:!0,mode:"lenient"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(10),a=i(20),s=i(3),d=i(6),c=function(){function e(e,t,i){this.expandService=e,this.loadingService=t,this.cd=i,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(d.filter((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(d.filter((function(t){return t.index===e.index})),d.tap((function(t){!t.expand&&e.loading&&(e.loading=!1)})),d.filter((function(e){return e.expand})),d.switchMap((function(e){return s.of(e).pipe(d.delay(100),d.takeUntil(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},n.__decorate([o.HostBinding("class.k-i-loading"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),n.__decorate([o.Input("kendoTreeViewLoading"),n.__metadata("design:type",String)],e.prototype,"index",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewLoading]"}),n.__metadata("design:paramtypes",[r.ExpandStateService,a.LoadingNotificationService,o.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),o=i(6),r=i(9),a=i(15),s=i(41),d=i(2),c=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,i=e.destinationItem,o=e.dropPosition,c=e.sourceTree,l=e.destinationTree,p=Object.assign({},d.getDataItem(t));if(o===r.DropPosition.Over){a.expandDropTarget(i,l);var u=n.getter(this.flatBinding.idField)(d.getDataItem(i));n.setter(this.flatBinding.parentIdField)(p,u);var h=this.getLastVisibleChildNodeIndex(l,this.flatBinding.originalData,d.getDataItem(i))+1;this.flatBinding.originalData.splice(h,0,p),this.rebindData();var f=this.fetchChildNodes(d.getDataItem(i),l).indexOf(p);this.movedItemNewIndex=d.buildTreeIndex(i.item.index,f)}else{var m=o===r.DropPosition.After?1:0;h=this.flatBinding.originalData.indexOf(d.getDataItem(i))+m;this.flatBinding.originalData.splice(h,0,p);var g=n.getter(this.flatBinding.parentIdField)(d.getDataItem(i));n.setter(this.flatBinding.parentIdField)(p,g),this.rebindData();var v=i.parent?i.parent.item.index:null;f=(i.parent?this.fetchChildNodes(d.getDataItem(i.parent),l):l.nodes).indexOf(p);this.movedItemNewIndex=d.buildTreeIndex(v,f)}c!==l&&this.addChildNodes(p,c);var y=o===r.DropPosition.Over?d.getDataItem(i):d.getDataItem(i.parent);s.incrementPageSize(l,y),s.copyPageSize(l,d.getDataItem(t),p),c===l||l.loadOnDemand||l.preloadChildNodes(),c!==l&&(l.changeDetectorRef.detectChanges(),l.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,i=e.sourceTree,n=e.destinationTree,o=d.getDataItem(t),r=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(r,1),i!==n&&this.removeChildNodes(o,i),this.rebindData();var c=t.parent?t.parent.children:[];if(a.collapseEmptyParent(t.parent,c,i),s.decrementPageSize(i,d.getDataItem(t.parent)),i.loadOnDemand||i.preloadChildNodes(),i===n){n.changeDetectorRef.detectChanges();var l=a.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);n.focus(l)}},e.prototype.addChildNodes=function(e,t){var i,n=this.fetchAllDescendantNodes(e,t);(i=this.flatBinding.originalData).push.apply(i,n)},e.prototype.removeChildNodes=function(e,t){var i=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=i.flatBinding.originalData.indexOf(e);i.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var i=this,n=this.fetchChildNodes(e,t);return n.forEach((function(e){return n=n.concat(i.fetchAllDescendantNodes(e,t)||[])})),n},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var i=[];return t.children(e).pipe(o.take(1)).subscribe((function(e){return i=i.concat(e||[])})),i},e.prototype.getLastVisibleChildNodeIndex=function(e,t,i){if(!d.isPresent(e.loadMoreService)||!e.hasChildren(i))return t.length;var n=e.loadMoreService.getGroupSize(i),o=this.fetchChildNodes(i,e).slice(0,n),r=o[o.length-1];return t.indexOf(r)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}();t.FlatEditingService=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=i(11),s=i(22),d=i(10),c=i(7),l=i(23),p=i(2),u=i(6),h=function(e,t){return{dataItem:t,index:e}},f=0,m=function(){function e(e,t,i,n,o,r,a){this.element=e,this.expandService=t,this.navigationService=i,this.selectionService=n,this.lookupService=o,this.renderer=r,this.ib=a,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=f++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,i=e.isDisabled;r.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),i&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),r.anyChanged(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(u.filter((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var i=t.expand;return e.expand(i)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,i=this.index;t.setFirstSelected(i,this.isSelected),!e.isActive(i)&&t.isFirstSelected(i)&&e.activateIndex(i)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,i=e.index,n=e.parentDataItem,o=e.parentIndex;if((!i||!i.firstChange)&&(t||i||n||o)){var r=(i||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,i=e.firstChange,n=e.previousValue;!i&&p.isPresent(t)&&p.isPresent(n)&&(this.navigationService.unregisterItem(this.id,n),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var i=t?"addClass":"removeClass";this.renderer[i](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){p.isPresent(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"checkable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"expandable",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"isVisible",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=n.__decorate([o.Directive({selector:"[kendoTreeViewItem]"}),n.__metadata("design:paramtypes",[o.ElementRef,d.ExpandStateService,a.NavigationService,s.SelectionService,l.TreeViewLookupService,o.Renderer2,c.IndexBuilderService])],e)}();t.TreeViewItemDirective=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(11),a=i(22),s=i(19),d=i(3),c=i(6),l=function(){function e(e,t,i,n){var o=this;this.element=e,this.navigationService=t,this.selectionService=i,this.renderer=n,this.initialSelection=!1,this.isSelected=s.isSelected,this.subscriptions=new d.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(c.filter((function(e){return e===o.index}))).subscribe((function(e){return o.selectionService.select(e,o.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var i=e?"addClass":"removeClass";this.renderer[i](this.element.nativeElement,t)},n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=n.__decorate([o.Directive({selector:"[kendoTreeViewItemContent]"}),n.__metadata("design:paramtypes",[o.ElementRef,r.NavigationService,a.SelectionService,o.Renderer2])],e)}();t.TreeViewItemContentDirective=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=[i(67).CheckBoxComponent],a=function(){function e(){}return e=n.__decorate([o.NgModule({declarations:[r],exports:[r]})],e)}();t.CheckBoxModule=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),o=i(1),r=i(4),a=function(){function e(e,t,i){this.element=e,this.renderer=t,this.changeDetector=i,this.id="_"+r.guid(),this.tabindex=0,this.checkStateChange=new o.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},n.__decorate([o.HostBinding("class.k-checkbox-wrapper"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"isChecked",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],e.prototype,"node",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"index",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],e.prototype,"labelText",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=n.__decorate([o.Component({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef])],e)}();t.CheckBoxComponent=a},function(e,t){e.exports=p}])}));
|