Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-angular-treeview

Package Overview
Dependencies
Maintainers
1
Versions
861
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-treeview - npm Package Compare versions

Comparing version 2.4.0-dev.201810182224 to 2.4.0

2

dist/systemjs/kendo-angular-treeview.js

@@ -1,1 +0,1 @@

System.register("@progress/kendo-angular-treeview",["tslib","@angular/core","rxjs/Subscription","rxjs/observable/of","rxjs/BehaviorSubject","rxjs/operators/take","rxjs/operators/filter","rxjs/operators/map","rxjs/operators/switchMap","rxjs/observable/merge","rxjs/Subject","@angular/common","@angular/animations","rxjs/observable/empty","rxjs/operators/catchError","rxjs/operators/tap","rxjs/operators/delay","rxjs/operators/takeUntil"],function(l){var n,i,r,o,s,a,d,c,p,u,h,f,y,v,m,g,_,b;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){s=t(e)},function(e){a=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){y=t(e)},function(e){v=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){_=t(e)},function(e){b=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=n,r.c=i,r.p="",r(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TreeViewComponent=i.TreeViewComponent;var r=n(21);t.TreeViewModule=r.TreeViewModule;var o=n(4);t.NodeTemplateDirective=o.NodeTemplateDirective;var s=n(30);t.CheckDirective=s.CheckDirective;var a=n(35);t.DisableDirective=a.DisableDirective;var d=n(36);t.ExpandDirective=d.ExpandDirective;var c=n(38);t.SelectDirective=c.SelectDirective;var p=n(39);t.HierarchyBindingDirective=p.HierarchyBindingDirective;var u=n(43);t.FlatDataBindingDirective=u.FlatDataBindingDirective,function(e){for(var t in e)l(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),p=n(3),r=n(4),o=n(5),s=n(7),a=n(8),d=n(9),c=n(10),u=n(14),l=n(15),h=n(12),f=n(16),y=n(17),v=n(18),m=n(19),g=n(20),_=[o.ExpandStateService,s.IndexBuilderService,l.TreeViewLookupService,a.LoadingNotificationService,d.NodeChildrenService,c.NavigationService,u.SelectionService,g.DataChangeNotificationService],b=function(){function e(e,t,n,i,r,o,s,a,d){var c=this;this.expandService=e,this.navigationService=t,this.nodeChildrenService=n,this.selectionService=i,this.treeViewLookupService=r,this.ngZone=o,this.renderer=s,this.element=a,this.dataChangeNotification=d,this.classNames=!0,this.fetchNodes=function(){return c.data},this.childrenLoaded=new p.EventEmitter,this.onBlur=new p.EventEmitter,this.onFocus=new p.EventEmitter,this.expand=new p.EventEmitter,this.collapse=new p.EventEmitter,this.checkedChange=new p.EventEmitter,this.selectionChange=new p.EventEmitter,this.nodeClick=new p.EventEmitter,this.isDisabled=f.isDisabled,this.navigable=!0,this.children=function(){return m.of([])},this.checkboxes=!1,this.expandIcons=!1,this.isActive=!1,this.data=new v.BehaviorSubject([]),this._animate=!0,this.subscriptions=new y.Subscription(function(){}),this.domSubscriptions=[]}return Object.defineProperty(e.prototype,"role",{get:function(){return"tree"},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,"nodes",{set:function(e){this.dataChangeNotification.notify(),this.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||f.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||f.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||f.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||f.isSelected},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})},e.prototype.ngOnInit=function(){var i=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(e){return i.childrenLoaded.emit(e)})),this.subscriptions.add(this.expandService.changes.subscribe(function(e){var t=e.index,n=e.dataItem;return e.expand?i.expand.emit({index:t,dataItem:n}):i.collapse.emit({index:t,dataItem:n})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(e){return i.checkedChange.emit(i.treeViewLookupService.itemLookup(e))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(e){return i.selectionChange.emit(e)})),this.element&&this.ngZone.runOutsideAngular(function(){i.attachDomHandlers()})},e.prototype.blur=function(){if(h.isDocumentAvailable()){var e=h.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){this.navigationService.activateIndex(e);var t=h.focusableNode(this.element);t&&t.focus()},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,"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,n=this;h.match(e.target,".k-treeview-item")?t=e.target:h.isFocusable(e.target)||(t=h.closestNode(e.target)),t&&(this.navigationService.activateIndex(h.nodeId(e.target)),!this.isActive&&h.hasObservers(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!h.match(e.target,".k-treeview-item")||e.relatedTarget&&h.match(e.relatedTarget,".k-treeview-item")&&h.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,h.hasObservers(this.onBlur)&&this.ngZone.run(function(){t.onBlur.emit()}))},e.prototype.clickHandler=function(t){var n=this,e=t.target;if(("click"===t.type||h.hasObservers(this.nodeClick))&&!h.isFocusable(e)&&h.isContent(e)&&h.hasParent(e,this.element.nativeElement)){var i=h.nodeId(h.closestNode(e));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run(function(){var e=n.treeViewLookupService.itemLookup(i);"click"===t.type&&n.navigationService.selectIndex(i),n.nodeClick.emit({item:e.item,originalEvent:t,type:t.type})})}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run(function(){t.navigationService.move(e)})},i.__decorate([p.HostBinding("class.k-widget"),p.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([p.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([p.Input(),p.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([p.Output("blur"),i.__metadata("design:type",p.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([p.Output("focus"),i.__metadata("design:type",p.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"nodeClick",void 0),i.__decorate([p.ContentChild(r.NodeTemplateDirective),i.__metadata("design:type",r.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([p.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([p.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([p.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),e=i.__decorate([p.Component({changeDetection:p.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:_,selector:"kendo-treeview",template:'\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n >\n </ul>\n '}),i.__metadata("design:paramtypes",[o.ExpandStateService,c.NavigationService,d.NodeChildrenService,u.SelectionService,l.TreeViewLookupService,p.NgZone,p.Renderer2,p.ElementRef,g.DataChangeNotificationService])],e)}();t.TreeViewComponent=b},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.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=i.__decorate([r.Injectable()],e)}();t.ExpandStateService=s},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=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=i.__decorate([r.Injectable()],e)}();t.IndexBuilderService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([r.Injectable()],e)}();t.LoadingNotificationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([r.Injectable()],e)}();t.NodeChildrenService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(11),s=n(12),a=n(13),d=n(6),c=function(e,t){return e[t]||e},p=function(){function e(){var e,t=this;this.expands=new d.Subject,this.moves=new d.Subject,this.checks=new d.Subject,this.selects=new d.Subject,this.navigable=!0,this.actions=((e={})[a.Keys.up]=function(){return t.activate(c(t.focusableItem,"prev"))},e[a.Keys.down]=function(){return t.activate(c(t.focusableItem,"next"))},e[a.Keys.left]=function(){return t.expand({expand:!1,intercept:t.moveToParent.bind(t)})},e[a.Keys.right]=function(){return t.expand({expand:!0,intercept:t.moveToChild.bind(t)})},e[a.Keys.home]=function(){return t.activate(t.model.firstNode())},e[a.Keys.end]=function(){return t.activate(t.model.lastNode())},e[a.Keys.enter]=function(){return t.navigable&&t.selectIndex(s.nodeIndex(t.activeItem))},e[a.Keys.space]=function(){return t.navigable&&t.checkIndex(s.nodeIndex(t.activeItem))},e),this.isFocused=!1,this._model=new o.NavigationModel}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 s.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&0<this.activeItem.children.length},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(s.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&&s.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstNode(),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.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return s.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t){this.model.registerItem(e,t)},e.prototype.unregisterItem=function(e){this.isActive(e)&&this.activateParent(e),this.model.unregisterItem(e)},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,n=e.intercept,i=s.nodeIndex(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(s.nodeIndex(this.activeItem))),!0)},e.prototype.moveToChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findChild(s.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:s.nodeIndex(this.activeItem),isFocused:this.isFocused}},e=i.__decorate([r.Injectable()],e)}();t.NavigationService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(e){return e[e.length-1]},o=function(e){return e||{}},s=function(e){return o(e).children||[]},a=function(e){for(var t=e,n=[].concat(s(e));n.length;)t=(n=n.concat(s(r(n)))).shift();return t},d=function(){function e(){this.ib=new i.IndexBuilderService,this.nodes=[]}return e.prototype.firstNode=function(){return this.nodes[0]||null},e.prototype.lastNode=function(){var e=this.nodes[this.nodes.length-1];return e?a(r(this.container(e)))||e:null},e.prototype.closestNode=function(e){var t=o(this.findNode(e)).prev||this.firstNode();return o(t).index===e?this.sibling(t,1):t},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.findChild=function(e){return s(this.findNode(e))[0]||null},e.prototype.registerItem=function(e,t){var n,i,r,o=this.ib.level(e),s=this.findParent(e);if(s||1===o){var a={children:[],index:e,parent:s,prev:this.prevNode(s,e),next:this.nextNode(s,e),disabled:t};i=(n=a).prev,r=n.next,i&&(i.next=n),r&&(r.prev=n),this.insert(a,s)}},e.prototype.unregisterItem=function(e){var t=this.find(e,this.nodes);if(t){var n,i;n=t.prev,i=this.nextNode(t.parent,t.index),n&&(n.next=i),i&&(i.prev=n);var r=this.container(t.parent);r.splice(r.indexOf(t),1)}},e.prototype.childLevel=function(e){return e&&e.length?this.ib.level(e[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),r=n===this.ib.level(e),o=t.find(function(e){return e.index===i});return o?r?o:this.find(e,o.children):null},e.prototype.closestIndexPosition=function(e,t){for(var n=this.ib.lastLevelIndex(t),i=0;i<e.length;){if(this.ib.lastLevelIndex(e[i].index)>n)return i;i+=1}return i},e.prototype.insert=function(e,t){var n=this.container(t);n.splice(this.closestIndexPosition(n,e.index),0,e)},e.prototype.prevNode=function(e,t){var n=this.container(e),i=n.slice(0,this.closestIndexPosition(n,t));return a(r(i))||e||null},e.prototype.nextNode=function(e,t){var n=this.container(e),i=this.findNode(t);if(!e&&i)return this.sibling(i,1);var r=this.closestIndexPosition(n,t),o=n.slice(r)[0];return o||this.sibling(e,1)},e.prototype.sibling=function(e,t){if(!e)return null;var n=this.findParent(e.index),i=this.container(n);return i[i.indexOf(e)+t]||this.sibling(n,t)||null},e}();t.NavigationModel=d},function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=/^(?:a|input|select|option|textarea|button|object)$/i;i.match=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)};i.noop=function(){},i.isPresent=function(e){return null!=e},i.isBlank=function(e){return null==e},i.isArray=function(e){return Array.isArray(e)},i.isNullOrEmptyString=function(e){return i.isBlank(e)||0===e.trim().length},i.isDocumentAvailable=function(){return"undefined"!=typeof document},i.hasObservers=function(e){return 0<e.observers.length},i.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},i.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return i.isChanged(e,t,n)})},i.closestNode=function(e){var t="li.k-treeview-item";return i.isDocumentAvailable()?e.closest?e.closest(t):function(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(i.match(n,t))return n;n=n.parentElement||n.parentNode}return null}(e,t):null},i.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1},i.isContent=function(e){if(!i.isDocumentAvailable())return null;for(var t=e;!i.match(t,".k-in,.k-treeview-item,.k-treeview");)t=t.parentNode;return i.match(t,".k-in")},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.hasParent=function(e,t){return Boolean(i.closest(e,function(e){return e===t}))},i.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},i.hasActiveNode=function(e,t){var n=t||i.closestNode(e);return n&&(n===e||e.tabIndex<0)},i.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},i.nodeIndex=function(e){return(e||{}).index},i.guid=function(){for(var e,t="",n=0;n<32;n++)e=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=(12===n?4:16===n?3&e|8:e).toString(16);return t}},function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.Keys||(t.Keys={}))[n.enter=13]="enter",n[n.shift=16]="shift",n[n.space=32]="space",n[n.end=35]="end",n[n.home=36]="home",n[n.left=37]="left",n[n.up=38]="up",n[n.right=39]="right",n[n.down=40]="down"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.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=i.__decorate([r.Injectable()],e)}();t.SelectionService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(12),s=/\d+$/,a=function(){function e(){this.map=new Map}return e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(o.nodeIndex(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter(function(e){return e.dataItem!==t})))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},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 n=this.item(t.index),i=parseInt(s.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var o=this;return void 0===e&&(e=[]),e.map(function(e){var t=o.item(e.index),n=t.item,i=t.parent,r=t.children;return{children:o.mapChildren(r),item:n,parent:i}})},e=i.__decorate([r.Injectable()],e)}();t.TreeViewLookupService=a},function(e,t){"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}},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=function(){function e(){this.changes=new i.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(22),a=n(4),d=n(30),c=n(35),p=n(36),u=n(38),l=n(39),h=n(43),f=[o.TreeViewComponent,a.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,p.ExpandDirective,u.SelectDirective,l.HierarchyBindingDirective,h.FlatDataBindingDirective],y=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[f],imports:[s.SharedModule]})],e)}();t.TreeViewModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(23),a=n(29),d=n(4),c=n(30),p=n(35),u=n(36),l=n(38),h=n(39),f=n(40),y=n(43),v=n(45),m=n(46),g=n(47),_=[o.TreeViewComponent,s.TreeViewGroupComponent,v.TreeViewItemDirective,m.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,p.DisableDirective,u.ExpandDirective,l.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,y.FlatDataBindingDirective],b=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[_],exports:[_],imports:[a.CommonModule,g.CheckBoxModule]})],e)}();t.SharedModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(24),s=n(5),a=n(7),d=n(15),c=n(10),p=n(9),u=n(12),l=n(25),h=n(8),f=n(26),y=n(19),v=n(27),m=n(28),g=n(20),_=function(){function e(e,t,n,i,r,o,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=r,this.nodeChildrenService=o,this.dataChangeNotification=s,this.kGroupClass=!0,this.textField="",this._data=[],this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isSelected=function(){return!1},this.children=function(){return y.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"role",{get:function(){return"group"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e;var t=this.mapToTreeItem(e);this.setNodeChildren(t),this.emitChildrenLoaded(t)},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,n){n?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 l.getter(t,!0)(e)},e.prototype.ngOnDestroy=function(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.dataChangeSubscription&&this.dataChangeSubscription.unsubscribe()},e.prototype.ngOnInit=function(){this.subscribeToNodesChange(),this.dataChangeSubscription=this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(v.catchError(function(){return n.loadingService.notifyLoaded(t),f.empty()}),m.tap(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?1<this.textField.length?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var n=this;return this.parentIndex?e.map(function(e,t){return{dataItem:e,index:n.nodeIndex(t)}}):[]},e.prototype.emitChildrenLoaded=function(e){this.parentIndex&&this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e)},e.prototype.subscribeToNodesChange=function(){var t=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(e){t.data=e})},i.__decorate([r.HostBinding("class.k-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"nodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([r.Component({animations:[o.trigger("toggle",[o.transition("void => *",[o.style({height:0}),o.animate("0.1s ease-in",o.style({height:"*"}))]),o.transition("* => void",[o.style({height:"*"}),o.animate("0.1s ease-in",o.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index" class="k-item k-treeview-item"\n kendoTreeViewItem\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\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 [checkState]="isChecked(node, nodeIndex(index))"\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 >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef" [ngTemplateOutletContext]="{$implicit: node, index: nodeIndex(index)}"\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 [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\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 [nodeTemplateRef]="nodeTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [@toggle]="true"\n >\n </ul>\n </li>\n '}),i.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,a.IndexBuilderService,d.TreeViewLookupService,c.NavigationService,p.NodeChildrenService,g.DataChangeNotificationService])],e)}();t.TreeViewGroupComponent=_},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,a={undefined:function(e){return e}};t.getter=function(e,i){var t=e+i;if(a[t])return a[t];var r=[];return e.replace(s,function(e,t,n,i){r.push(o.isPresent(t)?t:n||i)}),a[t]=function(e){for(var t=e,n=0;n<r.length;n++)if(t=t[r[n]],!o.isPresent(t)&&i)return t;return t},a[t]}},function(e,t){e.exports=v},function(e,t){e.exports=m},function(e,t){e.exports=g},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),a=n(12),s=n(17),d=n(31),c=n(32),p=n(33),u=n(34),l=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription(function(){}),this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe(function(e){return n.check(e)})),this.subscriptions.add(this.treeView.childrenLoaded.pipe(d.filter(function(){return n.options.checkChildren}),p.switchMap(function(e){return n.zone.onStable.pipe(c.take(1),u.map(function(){return e}))})).subscribe(function(e){return n.addChildrenKeys(e)})),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))return e;var t="boolean"==typeof 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)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isItemChecked=function(e,t){return this.checkKey?-1<this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var r,t,n=this.checkedKeys.filter((r=e,function(e){return r===e||!!e.split&&e.split("_").reduce(function(e,t){var n=e.key,i=e.result;return r===(n+=t)||i?{result:!0}:{key:n+="_",result:!1}},{key:"",result:!1}).result}));if(t=e,0<n.filter(function(e){return e===t}).length)return"checked";var i=this.options,o=i.mode,s=i.checkParents;return"multiple"===o&&s&&n.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return this.checkKey?"string"==typeof this.checkKey?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,r=this.checkActions[i]||a.noop;n&&r(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.checkNode=function(e,t){var n=this,i=this.itemKey(e.item),r=this.checkedKeys.indexOf(i),o=-1<r,s=void 0===t?!o:t;!a.isPresent(i)||o&&t||(o?this.checkedKeys.splice(r,1):this.checkedKeys.push(i),this.options.checkChildren&&e.children.map(function(e){return n.checkNode(e,s)}))},e.prototype.checkParents=function(e){for(var t=e;t;){var n=this.itemKey(t.item),i=this.checkedKeys.indexOf(n);this.allChildrenSelected(t.children)?-1===i&&this.checkedKeys.push(n):-1<i&&this.checkedKeys.splice(i,1),t=t.parent}},e.prototype.allChildrenSelected=function(e){var n=this;return e.reduce(function(e,t){return e&&"checked"===n.isItemChecked(t.dataItem,t.index)},!0)},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addChildrenKeys=function(e){var i=this;if(-1!==this.checkedKeys.indexOf(this.itemKey(e.item))){var t=e.children.reduce(function(e,t){var n=i.itemKey(t);return i.checkedKeys.find(function(e){return n===e})||e.push(n),e},[]);t.length&&(this.checkedKeys=this.checkedKeys.concat(t),this.zone.run(function(){i.notify()}))}},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([r.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),i.__decorate([r.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.NgZone])],e)}();t.CheckDirective=l},function(e,t){e.exports=d},function(e,t){e.exports=a},function(e,t){e.exports=p},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return-1<n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}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},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([r.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.ChangeDetectorRef])],e)}();t.DisableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(17),a=n(37),d=n(34),c=function(){function e(e){var n=this;this.treeView=e,this.expandedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription(function(){}),this._expandedKeys=[],this.subscriptions.add(a.merge(this.treeView.expand.pipe(d.map(function(e){return i.__assign({expand:!0},e)})),this.treeView.collapse.pipe(d.map(function(e){return i.__assign({expand:!1},e)}))).subscribe(this.toggleExpand.bind(this))),this.treeView.isExpanded=function(e,t){return-1<n.expandedKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.treeView.isExpanded=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,n=e.dataItem,i=e.expand,r=this.itemKey({index:t,dataItem:n}),o=this.expandedKeys.indexOf(r),s=!1;-1<o&&!i?(this.expandedKeys.splice(o,1),s=!0):-1===o&&i&&(this.expandedKeys.push(r),s=!0),s&&this.expandedKeysChange.emit(this.expandedKeys)},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([r.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.ExpandDirective=c},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(12),a=n(17),d=function(){function e(e){var n=this;this.treeView=e,this.selectedKeysChange=new r.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.selectActions={multiple:function(e){return n.selectMultiple(e)},single:function(e){return n.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,t){return-1<n.selectedKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}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(!s.isPresent(this.selection))return e;var t="boolean"==typeof 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,n=t.enabled,i=t.mode,r=this.selectActions[i]||s.noop;n&&r(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),n=this.selectedKeys.indexOf(t),i=-1<n;s.isPresent(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([r.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([r.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([r.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(25),a=n(12),d=n(19),c=function(){function e(e){this.treeView=e}return Object.defineProperty(e.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}),e.prototype.ngOnInit=function(){var t=this;a.isPresent(this.childrenField)&&(this.treeView.children=function(e){return d.of(s.getter(t.childrenField,!0)(e))},this.treeView.hasChildren=function(e){return e&&Boolean(e[t.childrenField])})},i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"childrenField",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.HierarchyBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(5),s=n(8),a=n(19),d=n(41),c=n(31),p=n(33),u=n(42),l=n(28),h=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,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 t=this,n=this.loadingService.changes.pipe(c.filter(function(e){return e===t.index}));this.subscription=this.expandService.changes.pipe(c.filter(function(e){return e.index===t.index}),l.tap(function(e){!e.expand&&t.loading&&(t.loading=!1)}),c.filter(function(e){return e.expand}),p.switchMap(function(e){return a.of(e).pipe(d.delay(100),u.takeUntil(n))})).subscribe(function(){return t.loading=!0}),this.subscription.add(n.subscribe(function(){return t.loading=!1}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([r.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([r.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[o.ExpandStateService,s.LoadingNotificationService,r.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=h},function(e,t){e.exports=_},function(e,t){e.exports=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(25),a=n(12),d=n(44),c=n(19),p=function(){function e(e){this.treeView=e,this.originalData=[]}return Object.defineProperty(e.prototype,"nodes",{set:function(e){if(this.originalData=e||[],a.isNullOrEmptyString(this.parentIdField))this.treeView.nodes=this.originalData.slice(0);else{var t=s.getter(this.parentIdField,!0);this.treeView.nodes=this.originalData.filter(d.compose(a.isBlank,t))}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var r=this;if(a.isPresent(this.parentIdField)&&a.isPresent(this.idField)){var t=function(e){return t=s.getter(r.parentIdField,!0),n=r.originalData||[],i=s.getter(r.idField,!0)(e),n.filter(function(e){return t(e)===i});var t,n,i};this.treeView.hasChildren=function(e){return 0<t(e).length},this.treeView.children=function(e){return c.of(t(e))}}},e.prototype.ngOnChanges=function(e){a.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData)},i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.FlatDataBindingDirective=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(10),s=n(14),a=n(5),d=n(7),c=n(15),p=n(12),u=n(31),l=function(e,t){return{dataItem:t,index:e}},h=function(){function e(e,t,n,i,r,o,s){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=r,this.renderer=o,this.ib=s,this.isDisabled=!1,this.ariaChecked="false",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,"treeItem",{get:function(){return l(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?l(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role","treeitem"),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;(t||e.isChecked||e.isExpanded||e.isSelected)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.moveLookupItem(e),this.moveNavigationItem(t),this.disableNavigationItem(n)},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.index),this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},e.prototype.subscribe=function(){var n=this;this.subscriptions=[this.navigationService.moves.subscribe(function(){n.updateTabIndex(),n.focusItem()}),this.navigationService.expands.pipe(u.filter(function(e){return e.index===n.index&&!n.isDisabled})).subscribe(function(e){var t=e.expand;return n.expand(t)})]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.index,this.isDisabled),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},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,n=e.index,i=e.parentDataItem,r=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||r)){var o=(n||{}).previousValue||this.index;this.lookupService.replaceItem(o,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&p.isPresent(t)&&p.isPresent(i)&&(this.navigationService.unregisterItem(i),this.navigationService.registerItem(t,this.isDisabled))},e.prototype.disableNavigationItem=function(e){if(e&&!e.firstChange){var t=this.navigationService;this.isDisabled?t.activateClosest(this.index):t.activateFocusable(),t.unregisterItem(this.index),t.registerItem(this.index,this.isDisabled)}},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.isExpanded.toString()),this.setAttribute("aria-selected",this.isSelected.toString()),this.setAttribute("aria-checked",this.ariaChecked)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[r.ElementRef,a.ExpandStateService,o.NavigationService,s.SelectionService,c.TreeViewLookupService,r.Renderer2,d.IndexBuilderService])],e)}();t.TreeViewItemDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(10),s=n(14),a=n(17),d=n(31),c=function(){function e(e,t,n,i){var r=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.subscriptions=new a.Subscription(function(){}),this.subscriptions.add(this.navigationService.moves.subscribe(this.updateItem.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(d.filter(function(e){return e===r.index})).subscribe(function(e){return r.selectionService.select(e,r.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){r.updateSelection(r.isSelected(r.dataItem,r.index))}))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelection(this.initialSelection)},e.prototype.ngOnInit=function(){this.updateSelection(this.initialSelection)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateItem=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelection=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[r.ElementRef,o.NavigationService,s.SelectionService,r.Renderer2])],e)}();t.TreeViewItemContentDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=[n(48).CheckBoxComponent],s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o],exports:[o]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(12),s=function(){function e(e,t){this.element=e,this.renderer=t,this.id="_"+o.guid(),this.checkState="none",this.tabindex=0,this.checkStateChange=new r.EventEmitter}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.handleChange=function(e){this.checkStateChange.emit(e.target.checked?"checked":"none")},i.__decorate([r.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"checkState",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([r.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 '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2])],e)}();t.CheckBoxComponent=s}])}}});
System.register("@progress/kendo-angular-treeview",["tslib","@angular/core","rxjs/Subscription","rxjs/BehaviorSubject","rxjs/observable/of","rxjs/operators/filter","rxjs/operators/take","rxjs/operators/switchMap","rxjs/operators/map","rxjs/observable/merge","rxjs/Subject","@angular/common","rxjs/operators/takeUntil","rxjs/operators/delay","rxjs/operators/tap","rxjs/observable/empty","@angular/animations","rxjs/operators/catchError"],function(l){var n,i,r,o,s,a,d,c,p,u,h,f,y,v,m,g,_,b;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){s=t(e)},function(e){a=t(e)},function(e){d=t(e)},function(e){c=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){h=t(e)},function(e){f=t(e)},function(e){y=t(e)},function(e){v=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){_=t(e)},function(e){b=t(e)}],execute:function(){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=n,r.c=i,r.p="",r(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TreeViewComponent=i.TreeViewComponent;var r=n(21);t.TreeViewModule=r.TreeViewModule;var o=n(4);t.NodeTemplateDirective=o.NodeTemplateDirective;var s=n(30);t.CheckDirective=s.CheckDirective;var a=n(35);t.DisableDirective=a.DisableDirective;var d=n(36);t.ExpandDirective=d.ExpandDirective;var c=n(38);t.SelectDirective=c.SelectDirective;var p=n(39);t.HierarchyBindingDirective=p.HierarchyBindingDirective;var u=n(43);t.FlatDataBindingDirective=u.FlatDataBindingDirective,function(e){for(var t in e)l(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),p=n(3),r=n(4),o=n(5),s=n(7),a=n(8),d=n(9),c=n(10),u=n(14),l=n(15),h=n(12),f=n(16),y=n(17),v=n(18),m=n(19),g=n(20),_=[o.ExpandStateService,s.IndexBuilderService,l.TreeViewLookupService,a.LoadingNotificationService,d.NodeChildrenService,c.NavigationService,u.SelectionService,g.DataChangeNotificationService],b=function(){function e(e,t,n,i,r,o,s,a,d){var c=this;this.expandService=e,this.navigationService=t,this.nodeChildrenService=n,this.selectionService=i,this.treeViewLookupService=r,this.ngZone=o,this.renderer=s,this.element=a,this.dataChangeNotification=d,this.classNames=!0,this.fetchNodes=function(){return c.data},this.childrenLoaded=new p.EventEmitter,this.onBlur=new p.EventEmitter,this.onFocus=new p.EventEmitter,this.expand=new p.EventEmitter,this.collapse=new p.EventEmitter,this.checkedChange=new p.EventEmitter,this.selectionChange=new p.EventEmitter,this.nodeClick=new p.EventEmitter,this.isDisabled=f.isDisabled,this.navigable=!0,this.children=function(){return m.of([])},this.checkboxes=!1,this.expandIcons=!1,this.isActive=!1,this.data=new v.BehaviorSubject([]),this._animate=!0,this.subscriptions=new y.Subscription(function(){}),this.domSubscriptions=[]}return Object.defineProperty(e.prototype,"role",{get:function(){return"tree"},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,"nodes",{set:function(e){this.dataChangeNotification.notify(),this.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||f.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||f.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||f.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||f.isSelected},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})},e.prototype.ngOnInit=function(){var i=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(e){return i.childrenLoaded.emit(e)})),this.subscriptions.add(this.expandService.changes.subscribe(function(e){var t=e.index,n=e.dataItem;return e.expand?i.expand.emit({index:t,dataItem:n}):i.collapse.emit({index:t,dataItem:n})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(e){return i.checkedChange.emit(i.treeViewLookupService.itemLookup(e))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(e){return i.selectionChange.emit(e)})),this.element&&this.ngZone.runOutsideAngular(function(){i.attachDomHandlers()})},e.prototype.blur=function(){if(h.isDocumentAvailable()){var e=h.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){this.navigationService.activateIndex(e);var t=h.focusableNode(this.element);t&&t.focus()},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,"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,n=this;h.match(e.target,".k-treeview-item")?t=e.target:h.isFocusable(e.target)||(t=h.closestNode(e.target)),t&&(this.navigationService.activateIndex(h.nodeId(e.target)),!this.isActive&&h.hasObservers(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!h.match(e.target,".k-treeview-item")||e.relatedTarget&&h.match(e.relatedTarget,".k-treeview-item")&&h.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,h.hasObservers(this.onBlur)&&this.ngZone.run(function(){t.onBlur.emit()}))},e.prototype.clickHandler=function(t){var n=this,e=t.target;if(("click"===t.type||h.hasObservers(this.nodeClick))&&!h.isFocusable(e)&&h.isContent(e)&&h.hasParent(e,this.element.nativeElement)){var i=h.nodeId(h.closestNode(e));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run(function(){var e=n.treeViewLookupService.itemLookup(i);"click"===t.type&&n.navigationService.selectIndex(i),n.nodeClick.emit({item:e.item,originalEvent:t,type:t.type})})}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run(function(){t.navigationService.move(e)})},i.__decorate([p.HostBinding("class.k-widget"),p.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([p.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([p.Input(),p.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([p.Output("blur"),i.__metadata("design:type",p.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([p.Output("focus"),i.__metadata("design:type",p.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([p.Output(),i.__metadata("design:type",p.EventEmitter)],e.prototype,"nodeClick",void 0),i.__decorate([p.ContentChild(r.NodeTemplateDirective),i.__metadata("design:type",r.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([p.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([p.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([p.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([p.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([p.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),e=i.__decorate([p.Component({changeDetection:p.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:_,selector:"kendo-treeview",template:'\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [nodeTemplateRef]="nodeTemplate?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n >\n </ul>\n '}),i.__metadata("design:paramtypes",[o.ExpandStateService,c.NavigationService,d.NodeChildrenService,u.SelectionService,l.TreeViewLookupService,p.NgZone,p.Renderer2,p.ElementRef,g.DataChangeNotificationService])],e)}();t.TreeViewComponent=b},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.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=i.__decorate([r.Injectable()],e)}();t.ExpandStateService=s},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=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=i.__decorate([r.Injectable()],e)}();t.IndexBuilderService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([r.Injectable()],e)}();t.LoadingNotificationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([r.Injectable()],e)}();t.NodeChildrenService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(11),s=n(12),a=n(13),d=n(6),c=function(e,t){return e[t]||e},p=function(){function e(){var e,t=this;this.expands=new d.Subject,this.moves=new d.Subject,this.checks=new d.Subject,this.selects=new d.Subject,this.navigable=!0,this.actions=((e={})[a.Keys.up]=function(){return t.activate(c(t.focusableItem,"prev"))},e[a.Keys.down]=function(){return t.activate(c(t.focusableItem,"next"))},e[a.Keys.left]=function(){return t.expand({expand:!1,intercept:t.moveToParent.bind(t)})},e[a.Keys.right]=function(){return t.expand({expand:!0,intercept:t.moveToChild.bind(t)})},e[a.Keys.home]=function(){return t.activate(t.model.firstNode())},e[a.Keys.end]=function(){return t.activate(t.model.lastNode())},e[a.Keys.enter]=function(){return t.navigable&&t.selectIndex(s.nodeIndex(t.activeItem))},e[a.Keys.space]=function(){return t.navigable&&t.checkIndex(s.nodeIndex(t.activeItem))},e),this.isFocused=!1,this._model=new o.NavigationModel}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 s.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&0<this.activeItem.children.length},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(s.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&&s.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstNode(),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.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return s.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t){this.model.registerItem(e,t)},e.prototype.unregisterItem=function(e){this.isActive(e)&&this.activateParent(e),this.model.unregisterItem(e)},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,n=e.intercept,i=s.nodeIndex(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(s.nodeIndex(this.activeItem))),!0)},e.prototype.moveToChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findChild(s.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:s.nodeIndex(this.activeItem),isFocused:this.isFocused}},e=i.__decorate([r.Injectable()],e)}();t.NavigationService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(e){return e[e.length-1]},o=function(e){return e||{}},s=function(e){return o(e).children||[]},a=function(e){for(var t=e,n=[].concat(s(e));n.length;)t=(n=n.concat(s(r(n)))).shift();return t},d=function(){function e(){this.ib=new i.IndexBuilderService,this.nodes=[]}return e.prototype.firstNode=function(){return this.nodes[0]||null},e.prototype.lastNode=function(){var e=this.nodes[this.nodes.length-1];return e?a(r(this.container(e)))||e:null},e.prototype.closestNode=function(e){var t=o(this.findNode(e)).prev||this.firstNode();return o(t).index===e?this.sibling(t,1):t},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.findChild=function(e){return s(this.findNode(e))[0]||null},e.prototype.registerItem=function(e,t){var n,i,r,o=this.ib.level(e),s=this.findParent(e);if(s||1===o){var a={children:[],index:e,parent:s,prev:this.prevNode(s,e),next:this.nextNode(s,e),disabled:t};i=(n=a).prev,r=n.next,i&&(i.next=n),r&&(r.prev=n),this.insert(a,s)}},e.prototype.unregisterItem=function(e){var t=this.find(e,this.nodes);if(t){var n,i;n=t.prev,i=this.nextNode(t.parent,t.index),n&&(n.next=i),i&&(i.prev=n);var r=this.container(t.parent);r.splice(r.indexOf(t),1)}},e.prototype.childLevel=function(e){return e&&e.length?this.ib.level(e[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),r=n===this.ib.level(e),o=t.find(function(e){return e.index===i});return o?r?o:this.find(e,o.children):null},e.prototype.closestIndexPosition=function(e,t){for(var n=this.ib.lastLevelIndex(t),i=0;i<e.length;){if(this.ib.lastLevelIndex(e[i].index)>n)return i;i+=1}return i},e.prototype.insert=function(e,t){var n=this.container(t);n.splice(this.closestIndexPosition(n,e.index),0,e)},e.prototype.prevNode=function(e,t){var n=this.container(e),i=n.slice(0,this.closestIndexPosition(n,t));return a(r(i))||e||null},e.prototype.nextNode=function(e,t){var n=this.container(e),i=this.findNode(t);if(!e&&i)return this.sibling(i,1);var r=this.closestIndexPosition(n,t),o=n.slice(r)[0];return o||this.sibling(e,1)},e.prototype.sibling=function(e,t){if(!e)return null;var n=this.findParent(e.index),i=this.container(n);return i[i.indexOf(e)+t]||this.sibling(n,t)||null},e}();t.NavigationModel=d},function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=/^(?:a|input|select|option|textarea|button|object)$/i;i.match=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)};i.noop=function(){},i.isPresent=function(e){return null!=e},i.isBlank=function(e){return null==e},i.isArray=function(e){return Array.isArray(e)},i.isNullOrEmptyString=function(e){return i.isBlank(e)||0===e.trim().length},i.isDocumentAvailable=function(){return"undefined"!=typeof document},i.hasObservers=function(e){return 0<e.observers.length},i.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},i.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return i.isChanged(e,t,n)})},i.closestNode=function(e){var t="li.k-treeview-item";return i.isDocumentAvailable()?e.closest?e.closest(t):function(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(i.match(n,t))return n;n=n.parentElement||n.parentNode}return null}(e,t):null},i.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1},i.isContent=function(e){if(!i.isDocumentAvailable())return null;for(var t=e;!i.match(t,".k-in,.k-treeview-item,.k-treeview");)t=t.parentNode;return i.match(t,".k-in")},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.hasParent=function(e,t){return Boolean(i.closest(e,function(e){return e===t}))},i.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},i.hasActiveNode=function(e,t){var n=t||i.closestNode(e);return n&&(n===e||e.tabIndex<0)},i.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},i.nodeIndex=function(e){return(e||{}).index},i.guid=function(){for(var e,t="",n=0;n<32;n++)e=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=(12===n?4:16===n?3&e|8:e).toString(16);return t}},function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.Keys||(t.Keys={}))[n.enter=13]="enter",n[n.shift=16]="shift",n[n.space=32]="space",n[n.end=35]="end",n[n.home=36]="home",n[n.left=37]="left",n[n.up=38]="up",n[n.right=39]="right",n[n.down=40]="down"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(6),s=function(){function e(){this.changes=new o.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=i.__decorate([r.Injectable()],e)}();t.SelectionService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(12),s=/\d+$/,a=function(){function e(){this.map=new Map}return e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(o.nodeIndex(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter(function(e){return e.dataItem!==t})))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},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 n=this.item(t.index),i=parseInt(s.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var o=this;return void 0===e&&(e=[]),e.map(function(e){var t=o.item(e.index),n=t.item,i=t.parent,r=t.children;return{children:o.mapChildren(r),item:n,parent:i}})},e=i.__decorate([r.Injectable()],e)}();t.TreeViewLookupService=a},function(e,t){"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}},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=function(){function e(){this.changes=new i.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(22),a=n(4),d=n(30),c=n(35),p=n(36),u=n(38),l=n(39),h=n(43),f=[o.TreeViewComponent,a.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,p.ExpandDirective,u.SelectDirective,l.HierarchyBindingDirective,h.FlatDataBindingDirective],y=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[f],imports:[s.SharedModule]})],e)}();t.TreeViewModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(23),a=n(29),d=n(4),c=n(30),p=n(35),u=n(36),l=n(38),h=n(39),f=n(40),y=n(43),v=n(45),m=n(46),g=n(47),_=[o.TreeViewComponent,s.TreeViewGroupComponent,v.TreeViewItemDirective,m.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,p.DisableDirective,u.ExpandDirective,l.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,y.FlatDataBindingDirective],b=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[_],exports:[_],imports:[a.CommonModule,g.CheckBoxModule]})],e)}();t.SharedModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(24),s=n(5),a=n(7),d=n(15),c=n(10),p=n(9),u=n(12),l=n(25),h=n(8),f=n(26),y=n(19),v=n(27),m=n(28),g=n(20),_=function(){function e(e,t,n,i,r,o,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=r,this.nodeChildrenService=o,this.dataChangeNotification=s,this.kGroupClass=!0,this.textField="",this._data=[],this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isSelected=function(){return!1},this.children=function(){return y.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"role",{get:function(){return"group"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e;var t=this.mapToTreeItem(e);this.setNodeChildren(t),this.emitChildrenLoaded(t)},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,n){n?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 l.getter(t,!0)(e)},e.prototype.ngOnDestroy=function(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.dataChangeSubscription&&this.dataChangeSubscription.unsubscribe()},e.prototype.ngOnInit=function(){this.subscribeToNodesChange(),this.dataChangeSubscription=this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(v.catchError(function(){return n.loadingService.notifyLoaded(t),f.empty()}),m.tap(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?1<this.textField.length?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var n=this;return this.parentIndex?e.map(function(e,t){return{dataItem:e,index:n.nodeIndex(t)}}):[]},e.prototype.emitChildrenLoaded=function(e){this.parentIndex&&this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e)},e.prototype.subscribeToNodesChange=function(){var t=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(e){t.data=e})},i.__decorate([r.HostBinding("class.k-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"nodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([r.Component({animations:[o.trigger("toggle",[o.transition("void => *",[o.style({height:0}),o.animate("0.1s ease-in",o.style({height:"*"}))]),o.transition("* => void",[o.style({height:"*"}),o.animate("0.1s ease-in",o.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index" class="k-item k-treeview-item"\n kendoTreeViewItem\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\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 [checkState]="isChecked(node, nodeIndex(index))"\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 >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef" [ngTemplateOutletContext]="{$implicit: node, index: nodeIndex(index)}"\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 [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\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 [nodeTemplateRef]="nodeTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [@toggle]="true"\n >\n </ul>\n </li>\n '}),i.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,a.IndexBuilderService,d.TreeViewLookupService,c.NavigationService,p.NodeChildrenService,g.DataChangeNotificationService])],e)}();t.TreeViewGroupComponent=_},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,a={undefined:function(e){return e}};t.getter=function(e,i){var t=e+i;if(a[t])return a[t];var r=[];return e.replace(s,function(e,t,n,i){r.push(o.isPresent(t)?t:n||i)}),a[t]=function(e){for(var t=e,n=0;n<r.length;n++)if(t=t[r[n]],!o.isPresent(t)&&i)return t;return t},a[t]}},function(e,t){e.exports=g},function(e,t){e.exports=b},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),a=n(12),s=n(17),d=n(31),c=n(32),p=n(33),u=n(34),l=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription(function(){}),this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe(function(e){return n.check(e)})),this.subscriptions.add(this.treeView.childrenLoaded.pipe(d.filter(function(){return n.options.checkChildren}),p.switchMap(function(e){return n.zone.onStable.pipe(c.take(1),u.map(function(){return e}))})).subscribe(function(e){return n.addChildrenKeys(e)})),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))return e;var t="boolean"==typeof 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)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isItemChecked=function(e,t){return this.checkKey?-1<this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var r,t,n=this.checkedKeys.filter((r=e,function(e){return r===e||!!e.split&&e.split("_").reduce(function(e,t){var n=e.key,i=e.result;return r===(n+=t)||i?{result:!0}:{key:n+="_",result:!1}},{key:"",result:!1}).result}));if(t=e,0<n.filter(function(e){return e===t}).length)return"checked";var i=this.options,o=i.mode,s=i.checkParents;return"multiple"===o&&s&&n.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return this.checkKey?"string"==typeof this.checkKey?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,r=this.checkActions[i]||a.noop;n&&r(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.checkNode=function(e,t){var n=this,i=this.itemKey(e.item),r=this.checkedKeys.indexOf(i),o=-1<r,s=void 0===t?!o:t;!a.isPresent(i)||o&&t||(o?this.checkedKeys.splice(r,1):this.checkedKeys.push(i),this.options.checkChildren&&e.children.map(function(e){return n.checkNode(e,s)}))},e.prototype.checkParents=function(e){for(var t=e;t;){var n=this.itemKey(t.item),i=this.checkedKeys.indexOf(n);this.allChildrenSelected(t.children)?-1===i&&this.checkedKeys.push(n):-1<i&&this.checkedKeys.splice(i,1),t=t.parent}},e.prototype.allChildrenSelected=function(e){var n=this;return e.reduce(function(e,t){return e&&"checked"===n.isItemChecked(t.dataItem,t.index)},!0)},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addChildrenKeys=function(e){var i=this;if(-1!==this.checkedKeys.indexOf(this.itemKey(e.item))){var t=e.children.reduce(function(e,t){var n=i.itemKey(t);return i.checkedKeys.find(function(e){return n===e})||e.push(n),e},[]);t.length&&(this.checkedKeys=this.checkedKeys.concat(t),this.zone.run(function(){i.notify()}))}},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([r.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),i.__decorate([r.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.NgZone])],e)}();t.CheckDirective=l},function(e,t){e.exports=a},function(e,t){e.exports=d},function(e,t){e.exports=c},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return-1<n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}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},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([r.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.ChangeDetectorRef])],e)}();t.DisableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(17),a=n(37),d=n(34),c=function(){function e(e){var n=this;this.treeView=e,this.expandedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription(function(){}),this._expandedKeys=[],this.subscriptions.add(a.merge(this.treeView.expand.pipe(d.map(function(e){return i.__assign({expand:!0},e)})),this.treeView.collapse.pipe(d.map(function(e){return i.__assign({expand:!1},e)}))).subscribe(this.toggleExpand.bind(this))),this.treeView.isExpanded=function(e,t){return-1<n.expandedKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.treeView.isExpanded=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,n=e.dataItem,i=e.expand,r=this.itemKey({index:t,dataItem:n}),o=this.expandedKeys.indexOf(r),s=!1;-1<o&&!i?(this.expandedKeys.splice(o,1),s=!0):-1===o&&i&&(this.expandedKeys.push(r),s=!0),s&&this.expandedKeysChange.emit(this.expandedKeys)},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([r.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.ExpandDirective=c},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(12),a=n(17),d=function(){function e(e){var n=this;this.treeView=e,this.selectedKeysChange=new r.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.selectActions={multiple:function(e){return n.selectMultiple(e)},single:function(e){return n.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,t){return-1<n.selectedKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}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(!s.isPresent(this.selection))return e;var t="boolean"==typeof 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,n=t.enabled,i=t.mode,r=this.selectActions[i]||s.noop;n&&r(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),n=this.selectedKeys.indexOf(t),i=-1<n;s.isPresent(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([r.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([r.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([r.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(25),a=n(12),d=n(19),c=function(){function e(e){this.treeView=e}return Object.defineProperty(e.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}),e.prototype.ngOnInit=function(){var t=this;a.isPresent(this.childrenField)&&(this.treeView.children=function(e){return d.of(s.getter(t.childrenField,!0)(e))},this.treeView.hasChildren=function(e){return e&&Boolean(e[t.childrenField])})},i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"childrenField",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.HierarchyBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(5),s=n(8),a=n(19),d=n(41),c=n(31),p=n(33),u=n(42),l=n(28),h=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,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 t=this,n=this.loadingService.changes.pipe(c.filter(function(e){return e===t.index}));this.subscription=this.expandService.changes.pipe(c.filter(function(e){return e.index===t.index}),l.tap(function(e){!e.expand&&t.loading&&(t.loading=!1)}),c.filter(function(e){return e.expand}),p.switchMap(function(e){return a.of(e).pipe(d.delay(100),u.takeUntil(n))})).subscribe(function(){return t.loading=!0}),this.subscription.add(n.subscribe(function(){return t.loading=!1}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([r.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([r.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[o.ExpandStateService,s.LoadingNotificationService,r.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=h},function(e,t){e.exports=v},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(1),s=n(25),a=n(12),d=n(44),c=n(19),p=function(){function e(e){this.treeView=e,this.originalData=[]}return Object.defineProperty(e.prototype,"nodes",{set:function(e){if(this.originalData=e||[],a.isNullOrEmptyString(this.parentIdField))this.treeView.nodes=this.originalData.slice(0);else{var t=s.getter(this.parentIdField,!0);this.treeView.nodes=this.originalData.filter(d.compose(a.isBlank,t))}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var r=this;if(a.isPresent(this.parentIdField)&&a.isPresent(this.idField)){var t=function(e){return t=s.getter(r.parentIdField,!0),n=r.originalData||[],i=s.getter(r.idField,!0)(e),n.filter(function(e){return t(e)===i});var t,n,i};this.treeView.hasChildren=function(e){return 0<t(e).length},this.treeView.children=function(e){return c.of(t(e))}}},e.prototype.ngOnChanges=function(e){a.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData)},i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.FlatDataBindingDirective=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(10),s=n(14),a=n(5),d=n(7),c=n(15),p=n(12),u=n(31),l=function(e,t){return{dataItem:t,index:e}},h=function(){function e(e,t,n,i,r,o,s){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=r,this.renderer=o,this.ib=s,this.isDisabled=!1,this.ariaChecked="false",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,"treeItem",{get:function(){return l(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?l(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role","treeitem"),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;(t||e.isChecked||e.isExpanded||e.isSelected)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.moveLookupItem(e),this.moveNavigationItem(t),this.disableNavigationItem(n)},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.index),this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},e.prototype.subscribe=function(){var n=this;this.subscriptions=[this.navigationService.moves.subscribe(function(){n.updateTabIndex(),n.focusItem()}),this.navigationService.expands.pipe(u.filter(function(e){return e.index===n.index&&!n.isDisabled})).subscribe(function(e){var t=e.expand;return n.expand(t)})]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.index,this.isDisabled),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},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,n=e.index,i=e.parentDataItem,r=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||r)){var o=(n||{}).previousValue||this.index;this.lookupService.replaceItem(o,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&p.isPresent(t)&&p.isPresent(i)&&(this.navigationService.unregisterItem(i),this.navigationService.registerItem(t,this.isDisabled))},e.prototype.disableNavigationItem=function(e){if(e&&!e.firstChange){var t=this.navigationService;this.isDisabled?t.activateClosest(this.index):t.activateFocusable(),t.unregisterItem(this.index),t.registerItem(this.index,this.isDisabled)}},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.isExpanded.toString()),this.setAttribute("aria-selected",this.isSelected.toString()),this.setAttribute("aria-checked",this.ariaChecked)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[r.ElementRef,a.ExpandStateService,o.NavigationService,s.SelectionService,c.TreeViewLookupService,r.Renderer2,d.IndexBuilderService])],e)}();t.TreeViewItemDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(10),s=n(14),a=n(17),d=n(31),c=function(){function e(e,t,n,i){var r=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.subscriptions=new a.Subscription(function(){}),this.subscriptions.add(this.navigationService.moves.subscribe(this.updateItem.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(d.filter(function(e){return e===r.index})).subscribe(function(e){return r.selectionService.select(e,r.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){r.updateSelection(r.isSelected(r.dataItem,r.index))}))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelection(this.initialSelection)},e.prototype.ngOnInit=function(){this.updateSelection(this.initialSelection)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateItem=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelection=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[r.ElementRef,o.NavigationService,s.SelectionService,r.Renderer2])],e)}();t.TreeViewItemContentDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=[n(48).CheckBoxComponent],s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o],exports:[o]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),o=n(12),s=function(){function e(e,t){this.element=e,this.renderer=t,this.id="_"+o.guid(),this.checkState="none",this.tabindex=0,this.checkStateChange=new r.EventEmitter}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.handleChange=function(e){this.checkStateChange.emit(e.target.checked?"checked":"none")},i.__decorate([r.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"checkState",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([r.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 '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2])],e)}();t.CheckBoxComponent=s}])}}});

@@ -6,3 +6,3 @@ {

"license": "SEE LICENSE IN LICENSE.md",
"version": "2.4.0-dev.201810182224",
"version": "2.4.0",
"main": "dist/npm/index.js",

@@ -9,0 +9,0 @@ "module": "dist/es/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc